@ckeditor/ckeditor5-comments 45.2.1-alpha.6 → 45.2.1-alpha.7

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/dist/index.js CHANGED
@@ -20,12 +20,12 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0xbd62b2,ContextPlugin as _0x45eb44,PendingActions as lt,Command as _0x27d889,Plugin as _0xab089d,Context as _0x444925}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x255461,uid as _0x54d623,KeystrokeHandler as jt,FocusTracker as _0x1f4456,diff as _0x295303,Collection as _0x3a28a9,Rect as _0x52468a,CKEditorError as _0x2868b4,first as _0x20767d,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as xt,DomEmitterMixin as _0x539255,keyCodes as _0x5848b2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x1a83b5,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x19ddf2,trimHtml as _0x14bf3a,LateFocusDropdownButtonView as _0x3b7fbc,Users as st,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x1b4f5c}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x5e61f5}from'es-toolkit/compat';import{IconUndo as _0x531fcb,IconCheck as _0x17f4fe,IconPencil as _0x1a103b,IconRemoveComment as _0x5974b1,IconThreeVerticalDots as _0xaa07e5,IconAddComment as _0x5ece7c,IconCommentsArchive as _0x1062b6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as _0xc22f23,ButtonView as _0x2ab1c0,ViewCollection as _0x577beb,createDropdown as _0xa02bc1,ListView as _0x18088f,focusChildOnDropdownOpen as _0x3c3ae9,ListItemView as _0x2ece1c,MenuBarMenuListItemButtonView as _0x515bee,BodyCollection as _0x471327,BalloonPanelView as _0x5c28ed,ContextualBalloon as _0x399079,Dialog as _0x266ae4,DialogViewPosition as tt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as St,enablePlaceholder as Ft,MouseObserver as _0x18f5f4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Et}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Gt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Jt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Kt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x28170a}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0xad214d}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
- _0x255461(){['model'];['view'];constructor(_0x313de7,_0x412e2d){super(),this['model']=_0x313de7,this['model']['_isAttached']=!0x0,this['view']=_0x412e2d,this['listenTo'](_0x412e2d,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x412e2d,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x412e2d,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x412e2d,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x412e2d,'addComment',(_0x2ebbdc,_0x58ba4c)=>this['addComment'](_0x58ba4c)),this['listenTo'](_0x412e2d,'updateComment',(_0x55b92a,_0xd9972e,_0x3142e4)=>this['updateComment'](_0xd9972e,_0x3142e4)),this['listenTo'](_0x412e2d,'removeComment',(_0x587d91,_0x5ee891)=>this['removeComment'](_0x5ee891));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x227b0e){this['model']['addComment']({'content':_0x227b0e,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x53ff53,_0x31cc48){this['model']['getComment'](_0x53ff53)['update']({'content':_0x31cc48});}['removeComment'](_0x1da279){this['model']['getComment'](_0x1da279)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function E(_0x20defd,_0x46c40c,_0x437557){const t=_0x20defd['t'];switch(_0x46c40c){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'},_0x437557);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'},_0x437557);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'},_0x437557);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'},_0x437557);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x437557);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'},_0x437557);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'},_0x437557);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'},_0x437557);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(_0x2c0b4b,_0x181ded){super(_0x2c0b4b);const _0x350ec4=_0x54d623();this['main']=this['createCollection'](),this['editable']=new $t(_0x2c0b4b,_0x181ded,void 0x0,{'label':()=>E(_0x2c0b4b,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x2c0b4b['uiLanguageDirection'],'lang':_0x2c0b4b['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x350ec4},'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(_0x1af05e){super(_0x1af05e),this['view']=new Vt(_0x1af05e['locale'],_0x1af05e['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x4184c9=this['editor']['editing']['view'],_0x3d379a=this['view']['editable'],_0x3effb7=_0x4184c9['document']['getRoot']();_0x3d379a['name']=_0x3effb7['rootName'],this['view']['render']();const _0x3590a2=_0x3d379a['element'];this['setEditableElement'](_0x3d379a['name'],_0x3590a2),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4184c9['attachDomRoot'](_0x3590a2),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Et,Gt,Jt,Kt];class Rt extends/* #__PURE__ -- @preserve */
25
- _0x255461(_0xbd62b2){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x29fea3={}){function _0x2865ef(_0x2b9a64){return _0x2b9a64['map'](_0x18e8ca=>String['fromCharCode'](_0x18e8ca))['join']('');}(_0x29fea3=Object['assign']({},_0x29fea3))['plugins']||(_0x29fea3['plugins']=Rt['defaultPlugins']),super(_0x29fea3),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[_0x2865ef([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2865ef([0x76,0x69,0x65,0x77])][_0x2865ef([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2865ef([0x61,0x75,0x74,0x6f]),this[_0x2865ef([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2865ef([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2865ef([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2865ef([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2865ef([0x6f,0x6b])});}['create'](){const _0x4a4ddc=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x4a4ddc))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x1b3b90=>{const _0x372339=this['model']['document']['getRoot'](),_0x17e850=_0x372339&&_0x372339['getChild'](_0x372339['childCount']-0x1);_0x1b3b90['setSelection'](_0x17e850,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x2d71e8=this['editing']['view'],_0x314dcd=_0x2d71e8['document']['getRoot'](),_0x274b94=_0x314dcd['getChild'](0x0);_0x314dcd['childCount']>0x1||!_0x274b94||'p'!=_0x274b94['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x2d71e8,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x274b94['placeholder']=this['placeholder']),Ft({'view':_0x2d71e8,'element':_0x274b94,'keepOnFocus':!0x0}),this['placeholderElement']=_0x274b94);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x3a232f,_0x548403={}){super(_0x3a232f),this['editor']=null,this['_editorConfig']=_0x548403,this['set']('value',_0x548403['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',E(_0x3a232f,'Reply...')),this['set']('submitLabel',E(_0x3a232f,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x1f4456(),this['focusCycler']=new _0xc22f23({'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',(_0x632ea1,_0x2fe845)=>{this['cancelButtonView']['fire']('execute'),_0x2fe845();}),this['keystrokes']['set']('Ctrl+Enter',(_0x3f2348,_0x1d95d7)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x1d95d7());}),this['on']('submit',(_0x2fcd6d,_0x1ce64f)=>{_0x1ce64f['length']>0xfde8?(alert(E(_0x3a232f,'TOO_LONG_COMMENT_ALERT',[_0x1ce64f['length'],0xfde8])),_0x2fcd6d['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 _0x4da81f=this['editor'];this['element']['insertBefore'](_0x4da81f['ui']['element'],this['element']['firstChild']),_0x4da81f['model']['document']['on']('change',()=>this['value']=_0x4da81f['getData']()),_0x4da81f['bind']('placeholder')['to'](this),this['focusables']['add'](_0x4da81f['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x22a09a){-0x1===_0x22a09a?(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:_0x3ec620}=this,_0x536191=new _0x2ab1c0(_0x3ec620);return _0x536191['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x536191['withText']=!0x0,_0x536191['bind']('label')['to'](this,'submitLabel'),_0x536191['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x536191['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x1360f8,_0x15d4b9)=>!_0x15d4b9&&!!_0x1360f8['trim']()),_0x536191;}['_createCancelButton'](){const {locale:_0x2462ca}=this,_0x180b85=new _0x2ab1c0(_0x2462ca);return _0x180b85['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x180b85['label']=E(_0x2462ca,'Cancel'),_0x180b85['withText']=!0x0,_0x180b85['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x180b85;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x420a56=>{this['focusTracker']['add'](_0x420a56['element']);}),this['focusables']['on']('change',(_0x394fe0,_0x95c43d)=>{for(const _0x414261 of Array['from'](_0x95c43d['added'])['reverse']())this['focusTracker']['add'](_0x414261['element']);});}}class ie extends kt{constructor(_0x2cf56b,_0x15ce6b,_0x475ed5){super(_0x2cf56b),this['commentInputView']=new hs(_0x2cf56b,_0x475ed5),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x5baddb,_0x4ef642)=>_0x5baddb||!!_0x4ef642),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 _0x1a83b5(_0x2cf56b,_0x15ce6b),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'](_0x341acf){this['commentInputView']['focus'](_0x341acf);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x325651,_0x2ed813)=>{const {submitButtonView:_0x277960,cancelButtonView:_0x36fb5a,editor:_0x5c4558}=this['commentInputView'];[_0x277960['element'],_0x36fb5a['element'],_0x5c4558?_0x5c4558['editing']['view']['getDomRoot']():null]['filter'](_0x34206e=>_0x34206e)['some'](_0x3c35b9=>_0x3c35b9['contains'](_0x2ed813['target']))||(this['focus'](),_0x2ed813['preventDefault']());});}}class cs extends kt{constructor(_0x126697){super(_0x126697);const _0x31233e=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x31233e['to']('count',_0x1ec5af=>E(_0x126697,'NUMBER_OF_COMMENTS',_0x1ec5af))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x558635,_0x58f9e0,_0x42e347){super(_0x558635);const _0x34d4d7=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x58f9e0['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x58f9e0,this['_config']=_0x42e347,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x1f4456(),this['keystrokes']=new jt(),this['focusCycler']=new _0xc22f23({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5811b4=>this['commentViews']['map'](_0x4d29df=>_0x4d29df['element'])['includes'](_0x5811b4['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x558635),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x133aa3=>_0x133aa3-this['_config']['maxCommentsWhenCollapsed']);for(const _0x11c6ae of _0x58f9e0['comments'])this['_handleNewCommentModel'](_0x11c6ae);this['_handleInfoComment'](),this['listenTo'](_0x58f9e0['comments'],'add',(_0xa88519,_0x45023c)=>{const _0xb0e4a1=this['_calculatePosition'](_0x45023c);this['length']++,this['_handleNewCommentModel'](_0x45023c,_0xb0e4a1),this['refreshVisibleViews']();}),this['listenTo'](_0x58f9e0['comments'],'remove',(_0x3f7e1b,_0x4e271c)=>{this['length']--,this['_handleRemoveCommentModel'](_0x4e271c),this['refreshVisibleViews']();}),this['listenTo'](_0x58f9e0,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x58f9e0,'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',_0x34d4d7['if']('length','ck-hidden',_0x10961c=>!_0x10961c)],'aria-label':E(_0x558635,'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'](_0x40eaf2){-0x1===_0x40eaf2?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x269a66 of this['commentViews'])_0x269a66['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x53a22f,_0x4ba96c){const _0x15b1ed=new this['_config']['CommentView'](this['locale'],_0x53a22f,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x15b1ed['viewUid']=_0x53a22f['id'],_0x15b1ed['delegate']('removeComment')['to'](this),_0x15b1ed['delegate']('updateComment')['to'](this),_0x15b1ed['delegate']('resolveCommentThread')['to'](this),_0x15b1ed['delegate']('editorReady')['to'](this),_0x15b1ed['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x15b1ed,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x15b1ed,_0x4ba96c);}['_calculatePosition'](_0x26da71){const _0x29bf34=this['_model']['_findOptimalIndex'](_0x26da71);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x26da71['authoredAt']?_0x29bf34-0x1:_0x29bf34:_0x29bf34-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x2f24f3={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':E(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x2f24f3,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x2f24f3));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x21ce79){const _0x23fec9=this['commentViews']['remove'](_0x21ce79['id']);this['stopListening'](_0x23fec9),_0x23fec9['isEditMode']&&this['_updateHasDirtyComment'](),_0x23fec9['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x41649c=>_0x41649c['isEditMode']);}['_rearrangeCollapse'](){const _0x19c91f=function(_0x498f2f){const _0x4d676d=new _0x3a28a9();for(const _0x3efed3 of _0x498f2f)_0x4d676d['add'](_0x3efed3);return _0x4d676d;}(this['commentViews']),_0x26e49=this['_collapsedCommentsView']['count'];for(let _0x3666e5=0x1;_0x3666e5<=_0x26e49;_0x3666e5++)_0x19c91f['remove'](0x1);for(const _0x5dea17 of _0x19c91f)_0x5dea17['collapse']();_0x26e49>0x0&&_0x19c91f['add'](this['_collapsedCommentsView'],0x1),as(_0x295303(Array['from'](this['visibleViews']),Array['from'](_0x19c91f)),this['visibleViews'],_0x19c91f);}['_rearrangeExpand'](){as(_0x295303(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x324a48 of this['visibleViews'])_0x324a48['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x57fb82=>{this['focusTracker']['add'](_0x57fb82['element']),this['keystrokes']['listenTo'](_0x57fb82['element']);}),this['commentViews']['on']('change',(_0x24c0b8,_0x5d65c0)=>{for(const _0x21ac42 of _0x5d65c0['removed'])this['focusTracker']['remove'](_0x21ac42['element']),this['keystrokes']['stopListening'](_0x21ac42['element']);for(const _0x404837 of Array['from'](_0x5d65c0['added'])['reverse']())this['focusTracker']['add'](_0x404837['element']),this['keystrokes']['listenTo'](_0x404837['element']);});}}function as(_0x4568ba,_0x58d1c7,_0x25db20){let _0xbfcacd=0x0;for(const _0x389af6 of _0x4568ba)switch(_0x389af6){case'insert':_0x58d1c7['add'](_0x25db20['get'](_0xbfcacd),_0xbfcacd),_0xbfcacd++;break;case'delete':_0x58d1c7['remove'](_0xbfcacd);break;case'equal':_0xbfcacd++;}}class ls extends kt{constructor(_0x4d0d27){super(_0x4d0d27);const _0x4db2cb=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x4db2cb['to']('contextValue',_0x1b9e11=>E(_0x4d0d27,'THREAD_CONTEXT_LABEL',_0x1b9e11)),'tabindex':-0x1},'children':[{'text':_0x4db2cb['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1e618f,_0x49e17d){super(_0x1e618f);const _0x1c0e5c=this['bindTemplate'];this['_model']=_0x49e17d,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x1f4456(),this['keystrokes']=new jt(),this['focusCycler']=new _0xc22f23({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x67ecc=>!!_0x67ecc),this['bind']('contextValue')['to'](this['_model'],'context',_0x6260a3=>_0x6260a3&&_0x6260a3['value']?this['_trimContextValue'](_0x6260a3['value']):E(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',_0x1c0e5c['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 _0x19b1e9=new _0x2ab1c0(this['locale']);return _0x19b1e9['label']=E(this['locale'],'Reopen'),_0x19b1e9['tooltip']=E(this['locale'],'Reopen'),_0x19b1e9['icon']=_0x531fcb,_0x19b1e9['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x57a094=>!_0x57a094),_0x19b1e9['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4b9ffd,_0x110123)=>_0x4b9ffd&&_0x110123),_0x19b1e9['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x19b1e9;}['_trimContextValue'](_0x388751){if(_0x388751['length']<0x96)return _0x388751;const _0x47cb0d=_0x388751['lastIndexOf']('\x20',0x93);return _0x388751['substring'](0x0,_0x47cb0d>-0x1?_0x47cb0d:0x93)+'...';}['_attachContextActions'](){const _0x3ae787=this['element']['querySelector']('.ck-context'),_0x2e0b0b=_0x3ae787['querySelector']('.ck-context__value');this['listenTo'](_0x3ae787,'mouseenter',()=>{_0x2e0b0b['offsetWidth']<_0x2e0b0b['scrollWidth']&&_0x3ae787['classList']['add']('overlay');}),this['listenTo'](_0x3ae787,'mouseleave',()=>{_0x3ae787['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0xd7f00a of this['focusables'])this['focusTracker']['add'](_0xd7f00a['element']),this['keystrokes']['listenTo'](_0xd7f00a['element']);}['_createContextView'](){const _0x3de093=new ls(this['locale']);return _0x3de093['bind']('contextValue')['to'](this),_0x3de093;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x9bb538,_0x944ba4,_0x5de7bd,_0x58aaa9){super(_0x9bb538),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x944ba4,this['_localUser']=_0x5de7bd,this['_config']=_0x58aaa9,this['commentThreadHeaderView']=new Yt(_0x9bb538,_0x944ba4),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x9bb538,E(_0x9bb538,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x9bb538,_0x944ba4,Object['assign']({'CommentView':this['_config']['CommentView']},_0x58aaa9)),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',(_0x3fe59b,_0x4eaa90)=>_0x3fe59b||!!_0x4eaa90),this['bind']('isUnlinked')['to'](_0x944ba4,'unlinkedAt',_0x241c66=>!!_0x241c66),this['bind']('ariaLabel')['to'](this,'length',_0x23b3e8=>{const _0x497eda=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return E(this['locale'],'COMMENT_THREAD_LABEL',[_0x23b3e8,_0x497eda]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x1f4456(),this['keystrokes']=new jt(),this['focusCycler']=new _0xc22f23({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x579e78=>_0x579e78['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 _0x7ccfe7=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x51b233=_0x7ccfe7['commentInputView'];return _0x7ccfe7['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x51b233,'value',(_0x33b614,_0x522284,_0x261478,_0x6e9829,_0x1628bb)=>!!_0x1628bb||!!_0x6e9829&&_0x261478&&!_0x522284||_0x33b614&&_0x261478&&!_0x522284),_0x51b233['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x41df01,_0x3660c3,_0x18f634)=>{let _0x53886f;return _0x53886f=_0x18f634&&_0x3660c3?'Reply\x20to\x20reopen\x20discussion...':_0x41df01?'Reply...':'Write\x20a\x20comment...',E(this['locale'],_0x53886f);}),_0x51b233['bind']('submitLabel')['to'](this,'length',_0x19a67e=>E(this['locale'],_0x19a67e?'Reply':'Comment')),_0x51b233['on']('submit',(_0x1e57cc,_0x24cfcf)=>{this['fire']('addComment',_0x24cfcf),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x51b233['on']('cancel',()=>{this['focus']();}),_0x51b233['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x51b233['on']('cancel',_0xd52548=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0xd52548['stop']());}),this['on']('change:isActive',(_0x39658d,_0x36e77a,_0xf99a6b)=>{_0xf99a6b||this['length']||_0x51b233['value']||this['fire']('removeCommentThread');}),_0x7ccfe7;}}class gt extends/* #__PURE__ -- @preserve */
27
- ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x559e9c,_0x3515a9,_0x2a0b2f,_0x11e6e1){super(_0x559e9c,_0x3515a9,_0x2a0b2f,_0x11e6e1),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x559e9c,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x336eeb,_0x1dbd9e,_0x2727db)=>{_0x2727db||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x35b1fb,_0x5896a2,_0x3240a0)=>{_0x3240a0&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x23ab99=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x23ab99['if']('isActive','ck-thread--active'),_0x23ab99['if']('isUnlinked','ck-thread--unlinked'),_0x23ab99['if']('isConfirm','ck-thread--remove-confirmation'),_0x23ab99['to']('actionIndicator',_0x2decc2=>_0x2decc2?'ck-thread--'+_0x2decc2:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x23ab99['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 _0x1b5da2 of this['commentsListView']['commentViews'])_0x1b5da2['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x57fc8d}=this,_0x8ec7ea=this['commentsListView']['commentViews']['get'](0x0);_0x8ec7ea===this['_boundFirstCommentView']||_0x8ec7ea['isSystemComment']||(this['_boundFirstCommentView']=_0x8ec7ea,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x8ec7ea,'actionIndicator',_0x439b5d=>'remove'===_0x439b5d?'remove':null),_0x8ec7ea['placeholder']=E(_0x57fc8d,'Write\x20a\x20comment...'),_0x8ec7ea['removeButton']['on']('execute',_0x430b58=>{_0x430b58['stop'](),this['showConfirm'](E(_0x57fc8d,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x8ec7ea['focus']();}),_0x8ec7ea['actionBar']['add'](this['resolveButton'],0x0),_0x8ec7ea['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x2c03f9=new _0x19ddf2(this['locale']);return _0x2c03f9['label']=E(this['locale'],'Resolve'),_0x2c03f9['tooltip']=E(this['locale'],'Resolve'),_0x2c03f9['icon']=_0x17f4fe,_0x2c03f9['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x2c03f9['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2bd694=>!_0x2bd694),_0x2c03f9['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x33979b,_0x54db42)=>_0x33979b&&!_0x54db42),_0x2c03f9['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x2c03f9;}['_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 os extends kt{constructor(_0x3da7b4){super(_0x3da7b4),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x5df5aa,_0x1992a9,_0x502e44)=>{this['element']['innerHTML']=_0x502e44;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4c9689,_0x4f2bfa,_0x7b6187){super(_0x4c9689),this['_model']=_0x4f2bfa,this['_config']=_0x7b6187,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x4f2bfa,'content',_0x4f2bfa,'authoredAt',(_0x5c716a,_0x1e74d6)=>E(_0x4c9689,'COMMENT_ARIA_LABEL',[_0x4f2bfa['author']['name'],_0x7b6187['formatDateTime'](_0x1e74d6),new DOMParser()['parseFromString'](_0x5c716a,'text/html')['body']['textContent'],_0x4f2bfa['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x4c9689,E(_0x4c9689,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x577beb(),this['focusTracker']=new _0x1f4456(),this['keystrokes']=new jt(),this['focusCycler']=new _0xc22f23({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xabdc47=>_0xabdc47['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']?E(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):E(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?E(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):E(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x40047a=new os(this['locale']);return _0x40047a['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x1cb292,_0x5e18e6)=>_0x5e18e6?_0x14bf3a(_0x1cb292,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x1cb292),_0x40047a;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x377f21=new hs(this['locale'],this['_config']['editorConfig']);return _0x377f21['value']=this['_model']['content'],_0x377f21['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x377f21['submitLabel']=E(this['locale'],'Save'),_0x377f21['on']('submit',(_0x32272b,_0x4f60f9)=>{this['fire']('updateComment',this['_model']['id'],_0x4f60f9),this['switchToDisplayMode'](),this['focus']();}),_0x377f21['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x377f21['once']('editorReady',()=>{_0x377f21['focus']();}),_0x377f21['createEditor'](),_0x377f21['delegate']('editorReady')['to'](this),_0x377f21['delegate']('editorDestroyed')['to'](this),_0x377f21;}['_setupKeyboardNavigation'](){const _0x2985bf=this['element'];this['keystrokes']['listenTo'](_0x2985bf);for(const _0x39b67c of this['focusables'])this['focusTracker']['add'](_0x39b67c['element']),this['keystrokes']['listenTo'](_0x39b67c['element']);this['focusables']['on']('change',(_0x53c2de,_0x391b2d)=>{for(const _0x1a8919 of _0x391b2d['removed'])this['focusTracker']['remove'](_0x1a8919['element']),this['keystrokes']['stopListening'](_0x1a8919['element']);for(const _0x1de8b5 of _0x391b2d['added'])this['focusTracker']['add'](_0x1de8b5['element']),this['keystrokes']['listenTo'](_0x1de8b5['element']);}),this['keystrokes']['set']('enter',(_0x49f049,_0x4eb0d4)=>{_0x2985bf===_0x49f049['target']&&(this['focusCycler']['focusFirst'](),_0x4eb0d4());}),this['keystrokes']['set']('esc',(_0x5c4eeb,_0x435358)=>{_0x2985bf!==_0x5c4eeb['target']&&(this['focus'](),_0x435358());});}}class Tt extends/* #__PURE__ -- @preserve */
28
- ti(rs){['actionBar'];['userView'];constructor(_0x3d8da3,_0x31b5ef,_0x16549d){super(_0x3d8da3,_0x31b5ef,_0x16549d),this['set']('actionIndicator',null),this['set']('placeholder',E(_0x3d8da3,'Reply...')),this['bind']('authoredAt')['to'](_0x31b5ef),this['bind']('resolvedAt')['to'](_0x31b5ef),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 _0x1a83b5(_0x3d8da3,_0x31b5ef['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x31b5ef,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x8df3fb=this['bindTemplate'],_0x31e696=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x8df3fb['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x8df3fb['to']('authoredAt',_0x5ba0cc=>this['_config']['formatDateTime'](_0x5ba0cc))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x8df3fb['if']('isEditMode','ck-comment__actions--hidden'),_0x8df3fb['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']&&_0x31e696['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x8df3fb['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x8df3fb['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x8df3fb['if']('isEditMode','ck-comment--edit'),_0x8df3fb['if']('isSystemComment','ck-comment--info'),_0x8df3fb['to']('actionIndicator',_0xd0b6f9=>_0xd0b6f9?'ck-comment--'+_0xd0b6f9:'')],'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':_0x31e696}]}]};}['_createEditButton'](){const _0x104520=new _0x2ab1c0(this['locale']);return _0x104520['label']=E(this['locale'],'Edit'),_0x104520['icon']=_0x1a103b,_0x104520['withText']=!0x0,_0x104520['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x104520['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2ebc5d=>!_0x2ebc5d),_0x104520['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x104520['on']('execute',()=>this['switchToEditMode']()),_0x104520;}['_createRemoveButton'](){const _0x274fad=new _0x2ab1c0(this['locale']);return _0x274fad['label']=E(this['locale'],'Remove'),_0x274fad['icon']=_0x5974b1,_0x274fad['withText']=!0x0,_0x274fad['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x274fad['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4f2d32=>!_0x4f2d32),_0x274fad['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x274fad['on']('execute',()=>{this['showConfirm'](E(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x274fad;}['_createDropdown'](){const _0x242bd1=_0xa02bc1(this['locale'],_0x3b7fbc),_0x24956f=_0x242bd1['panelView']['children'],_0x1b58ec=new _0x18088f(this['locale']),_0x4b01d1=_0x242bd1['bindTemplate'];_0x3c3ae9(_0x242bd1,()=>this['items']['find'](_0x4a9add=>_0x4a9add['isVisible'])),_0x242bd1['extendTemplate']({'attributes':{'class':[_0x4b01d1['if']('isVisible','ck-hidden',_0xf6d98f=>!_0xf6d98f)]}});const _0x282061=(_0x487db6,_0x48f2bc=-0x1)=>{const _0x56f4b4=new _0x2ece1c(this['locale']);_0x56f4b4['children']['add'](_0x487db6);const _0x529c64=_0x48f2bc>-0x1?_0x48f2bc:_0x1b58ec['items']['length'];_0x1b58ec['items']['add'](_0x56f4b4,_0x529c64);const _0x22cd5e=Array['from'](this['items']);_0x242bd1['unbind']('isEnabled','isVisible'),_0x242bd1['bind']('isEnabled')['toMany'](_0x22cd5e,'isEnabled',(..._0x1c67ca)=>_0x1c67ca['some'](_0x2eab01=>_0x2eab01)),_0x242bd1['bind']('isVisible')['toMany'](_0x22cd5e,'isVisible',(..._0x4b7dd4)=>_0x4b7dd4['some'](_0x21e60f=>_0x21e60f));};_0x242bd1['panelPosition']='sw',_0x242bd1['buttonView']['set']({'label':E(this['locale'],'Show\x20more\x20items'),'icon':_0xaa07e5});for(const _0x33cd77 of this['items'])_0x282061(_0x33cd77);return _0x24956f['add'](_0x1b58ec),_0x242bd1['listenTo'](this['items'],'add',(_0x208e62,_0x36941b,_0x23d29d)=>{_0x282061(_0x36941b,_0x23d29d);}),_0x242bd1['listenTo'](this['items'],'remove',(_0x1104ea,_0x2505f5,_0x27e03a)=>{_0x1b58ec['items']['remove'](_0x27e03a);}),_0x242bd1;}['_attachActions'](_0x1a4a47,_0x1b371f){const _0x1cf0fa=_0x1a4a47&&_0x1a4a47['element'];_0x1cf0fa&&(this['listenTo'](_0x1cf0fa,'mouseenter',()=>this['actionIndicator']=_0x1b371f),this['listenTo'](_0x1cf0fa,'focus',()=>this['actionIndicator']=_0x1b371f),this['listenTo'](_0x1cf0fa,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x1cf0fa,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x4a7c26=super['_createCommentInputView']();return _0x4a7c26['bind']('placeholder')['to'](this),_0x4a7c26;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x1cea4f){const _0xc52446=Dt(_0x1cea4f,0x1e),_0x5de3a2=new MutationObserver(_0x5d8094=>{for(const _0x96e8 of _0x5d8094)('attributes'==_0x96e8['type']&&'class'==_0x96e8['attributeName']||'childList'==_0x96e8['type']||'characterData'==_0x96e8['type'])&&_0xc52446();});return{'attach'(_0x3a4c4e){_0x5de3a2['observe'](_0x3a4c4e,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x5de3a2['disconnect'](),_0xc52446['cancel']();}};}class S extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x18ceff,_0x2a1289){super(_0x18ceff),this['id']=_0x54d623(),this['focusTracker']=new _0x1f4456(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x2eae7a,_0x11e7fb)=>this['fire']('Esc',_0x11e7fb)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Lt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x2a1289),this['mainView']=_0x2a1289;const _0x2c9c46=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x2c9c46['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 _0x1301ff=this['element']['clientHeight'];_0x1301ff&&(this['height']=_0x1301ff);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x255461(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x47f1da,target:_0xde70dc,type:_0x31a44d,isVisible:_0x2a2f6e=!0x0}){super(),this['view']=_0x47f1da,this['view']['element']||this['view']['render'](),this['_type']=_0x31a44d,this['_target']=_0xde70dc,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x3a28a9([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x4efd75,_0x1adb7c)=>{this['view']['focusTracker']['add'](_0x1adb7c);}),this['focusableElements']['on']('remove',(_0x4744d9,_0x117582)=>{this['view']['focusTracker']['remove'](_0x117582);}),this['set']('isVisible',_0x2a2f6e);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x5e27d3=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x5e27d3),_0x5e27d3;}get['targetRect'](){const _0x2a5ae8=this['target'];if(null===_0x2a5ae8)return null;if(_0x2a5ae8 instanceof _0x52468a)return _0x2a5ae8;const _0x5d1d4e=_0x2a5ae8['filter'](_0x1109a1=>function(_0x55fe55){const _0xd1653f=_0x55fe55['offsetParent'];if(_0xd1653f)return!0x0;const _0x4de997=_0x55fe55['getClientRects']()['item'](0x0);return!!_0x4de997;}(_0x1109a1));return 0x0===_0x5d1d4e['length']?null:new _0x52468a(_0x5d1d4e[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5e9276){this['view']['isActive']=_0x5e9276,this['view']['mainView']['isActive']=_0x5e9276;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x589c85){if(!(null===_0x589c85||_0x589c85 instanceof _0x52468a||Array['isArray'](_0x589c85)&&_0x589c85['every'](_0x1b5fcb=>li(_0x1b5fcb))))throw new _0x2868b4('annotation-invalid-target',null,{'target':_0x589c85});}['_getNormalizedTarget'](){const _0x212fd3='function'==typeof this['_target']?this['_target']():this['_target'];return li(_0x212fd3)?[_0x212fd3]:_0x212fd3;}}function li(_0x4ad93f){return null!==_0x4ad93f&&'object'==typeof _0x4ad93f&&'nodeType'in _0x4ad93f&&0x1===_0x4ad93f['nodeType'];}class _ extends _0x3a28a9{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x349976=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x1f4456(),this['_focusTracker']['on']('change:isFocused',(_0x34f997,_0x1180f0,_0xf4187d)=>{_0xf4187d||this['fire']('blur');});for(const _0x2b3bed of _0x349976)this['add'](_0x2b3bed);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x6106fe){if(this['has'](_0x6106fe))throw new _0x2868b4('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x6106fe['innerView'],_0x6106fe),this['_viewToAnnotation']['set'](_0x6106fe['view'],_0x6106fe);for(const _0x2d079e of _0x6106fe['focusableElements'])this['_focusTracker']['add'](_0x2d079e);this['listenTo'](_0x6106fe['focusableElements'],'add',(_0x2cf73b,_0x27886c)=>{this['_focusTracker']['add'](_0x27886c);}),this['listenTo'](_0x6106fe['focusableElements'],'remove',(_0x3b68b7,_0x2c106f)=>{this['_focusTracker']['remove'](_0x2c106f);}),this['listenTo'](_0x6106fe['view']['focusTracker'],'change:isFocused',(_0x1ae28f,_0x2ce992,_0x4cc51a)=>{_0x4cc51a&&this['fire']('focus',_0x6106fe);}),_0x6106fe['updateTargetRect']();const _0xf418ef=this['_getOrderInContent'](_0x6106fe['view']['targetRect']);return super['add'](_0x6106fe,_0xf418ef);}['remove'](_0x11cb1f){if(!this['has'](_0x11cb1f))throw new _0x2868b4('annotationcollection-not-existing-item',null);this['stopListening'](_0x11cb1f['view']['focusTracker']),this['stopListening'](_0x11cb1f['focusableElements']);for(const _0x2eab73 of _0x11cb1f['focusableElements'])this['_focusTracker']['remove'](_0x2eab73);return this['_viewToAnnotation']['delete'](_0x11cb1f['view']),this['_innerViewToAnnotation']['delete'](_0x11cb1f['innerView']),super['remove'](_0x11cb1f);}['getByInnerView'](_0xc93477){return this['_innerViewToAnnotation']['get'](_0xc93477);}['getByView'](_0x3d64e4){return this['_viewToAnnotation']['get'](_0x3d64e4);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x27ff1b of this)_0x27ff1b['updateTargetRect']();this['_sort']();}['_sort'](){const _0x3a8479=Array['from'](this)['sort']((_0x278da4,_0x3bdbd3)=>v(_0x278da4['view']['targetRect'],_0x3bdbd3['view']['targetRect']));for(let _0x22a6d2=_0x3a8479['length']-0x1;_0x22a6d2>0x0;_0x22a6d2--){const _0x5122d8=_0x3a8479[_0x22a6d2];_0x22a6d2!==this['getIndex'](_0x5122d8)&&(this['remove'](_0x5122d8),this['add'](_0x5122d8));}}['_getOrderInContent'](_0x6c596b){let _0x3a9794=0x0;if(!_0x6c596b)return this['length'];for(const _0xa2caf0 of this){const _0x1a7a4=_0xa2caf0['view']['targetRect'];if(_0x1a7a4){if(v(_0x6c596b,_0x1a7a4)<0x0)return _0x3a9794;_0x3a9794++;}}return _0x3a9794;}}function v(_0x347104,_0x31765b){if(null===_0x347104&&null===_0x31765b)return 0x0;if(null===_0x347104)return-0x1;if(null===_0x31765b)return 0x1;const _0x58d277=_0x347104['top']-_0x31765b['top'];return 0x0==_0x58d277?_0x347104['left']-_0x31765b['left']:_0x58d277;}class O extends _0x45eb44{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31b59a){if(super(_0x31b59a),this['collection']=new _(),this['_visibleAnnotations']=new _(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x31b59a instanceof _0xbd62b2){const _0x2f88be=_0x31b59a['locale'];_0x31b59a['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':E(_0x2f88be,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':E(_0x2f88be,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':E(_0x2f88be,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':E(_0x2f88be,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':E(_0x2f88be,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':E(_0x2f88be,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':E(_0x2f88be,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x7c9c7a){this['collection']['add'](_0x7c9c7a);}['remove'](_0x2b1c64){this['collection']['remove'](_0x2b1c64),_0x2b1c64['destroy']();}['refreshVisibility'](){for(const _0x2fff6d of this['collection'])_0x2fff6d['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x411405){return this['collection']['getByInnerView'](_0x411405);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1fe125 of this['collection'])_0x1fe125['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x41b9f7){this['fire']('_activateAnnotation',_0x41b9f7);}['createAnnotation'](_0x1ad387){return new d(_0x1ad387);}['createAnnotationView'](_0x24ba28,_0x274912){return new S(_0x24ba28,_0x274912);}['_addActiveAnnotation'](_0xdc2687){const _0x288049=new Set(this['activeAnnotations']);_0x288049['add'](_0xdc2687),this['activeAnnotations']=_0x288049;}['_removeActiveAnnotation'](_0x449764){const _0xbfb778=new Set(this['activeAnnotations']);_0xbfb778['delete'](_0x449764),this['activeAnnotations']=_0xbfb778;}['_bindAnnotationsToVisibleAnnotations'](){const _0x314a41=this['collection'],_0x25a86b=this['_visibleAnnotations'];function _0x197c87(_0x572d69){const _0x35c63d=_0x572d69['source'];_0x35c63d['isVisible']&&!_0x25a86b['has'](_0x35c63d)?_0x25a86b['add'](_0x35c63d):!_0x35c63d['isVisible']&&_0x25a86b['has'](_0x35c63d)&&_0x25a86b['remove'](_0x35c63d),_0x35c63d['view']['focusTracker']['remove'](_0x35c63d['view']['element']),_0x35c63d['view']['focusTracker']['add'](_0x35c63d['view']['element']);}this['listenTo'](_0x314a41,'add',(_0x206f0d,_0x1e1baf)=>{_0x1e1baf['isVisible']&&_0x25a86b['add'](_0x1e1baf),this['listenTo'](_0x1e1baf,'change:isVisible',_0x197c87);}),this['listenTo'](_0x314a41,'remove',(_0x4c28bb,_0x3df45a)=>{_0x25a86b['has'](_0x3df45a)&&_0x25a86b['remove'](_0x3df45a),this['stopListening'](_0x3df45a,'change:isVisible',_0x197c87);});}['_setupEnterAnnotationKeystroke'](){const _0x523de2=_0x2d26d6=>{_0x2d26d6['on']('ready',()=>{_0x2d26d6['keystrokes']['set'](_0x28170a,(_0x3addd9,_0x2785ca)=>{const _0xc55e55=_0x20767d(this['activeAnnotations']['values']());_0xc55e55&&(_0xc55e55['view']['focus'](),_0x2785ca());});});};this['context']instanceof _0xbd62b2?_0x523de2(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x3bb2a3,_0x2a8069)=>{_0x523de2(_0x2a8069);});}['_setupEscapeAnnotationHandling'](){const _0x2197c1=_0x4894cc=>{const _0x5bab08=_0x4894cc['source'],_0xe66594=[];let _0x29079e;if(Array['isArray'](_0x5bab08['target'])){_0x29079e=_0x5bab08['target'][0x0],this['context']instanceof _0xbd62b2?_0xe66594['push'](this['context']):this['context']['editors']&&_0xe66594['push'](...this['context']['editors']);for(const _0x1e3207 of _0xe66594)for(const _0x26a4e9 of _0x1e3207['editing']['view']['domRoots']['values']())if(_0x26a4e9['contains'](_0x29079e))return void _0x1e3207['editing']['view']['focus']();_0x29079e['focus']();}};this['listenTo'](this['collection'],'add',(_0x28d8db,_0x3b32ed)=>{this['listenTo'](_0x3b32ed,'escape',_0x2197c1,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x5b3136,_0x30f01b)=>{this['stopListening'](_0x30f01b,'escape',_0x2197c1);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x45eb44{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[O,lt,st];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe97cb9){super(_0xe97cb9),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x57be6b=this['context']['config'];_0x57be6b['define']('comments.maxCommentsWhenCollapsed',0x2),_0x57be6b['define']('comments.maxThreadTotalWeight',0x1f4),_0x57be6b['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x57be6b['define']('comments.CommentThreadView',gt),_0x57be6b['define']('comments.CommentView',Tt),_0x57be6b['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x48849d=this['context']['plugins']['get'](O);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x460811,_0x20d6b4)=>this['_addCommentThread'](_0x20d6b4)),this['on']('submitCommentThread',(_0x4f1434,_0x38a438)=>this['_submitCommentThread'](_0x38a438)),this['on']('resolveCommentThread',(_0x113689,_0x40d4e7)=>this['_resolveCommentThread'](_0x40d4e7)),this['on']('resolveCommentThread',(_0x264166,_0x42343c)=>this['_updateActiveAnnotation'](_0x42343c),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x3f0faf,_0x2305e6)=>this['_reopenCommentThread'](_0x2305e6)),this['on']('reopenCommentThread',(_0x26bd4c,_0x3c5f92)=>this['_updateActiveAnnotation'](_0x3c5f92),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x155b76,_0x409988)=>this['_removeCommentThread'](_0x409988)),this['on']('updateCommentThread',(_0x49ed19,_0x1a8b3c)=>this['_updateCommentThread'](_0x1a8b3c)),this['on']('updateCommentThread',(_0x3fa41b,_0x1cc1c1)=>this['_updateActiveAnnotation'](_0x1cc1c1),{'priority':'lowest'}),this['on']('addComment',(_0x48156b,_0x24559d)=>this['_addComment'](_0x24559d)),this['on']('updateComment',(_0x3253be,_0x4acb8c)=>this['_updateComment'](_0x4acb8c)),this['on']('removeComment',(_0x2919ef,_0x28bb29)=>this['_removeComment'](_0x28bb29)),this['on']('addComment',(_0x4f9744,{threadId:_0xd5681b,isFromAdapter:_0x8d5e54})=>{if(_0x8d5e54)return;const _0x26c4f3=this['getCommentThread'](_0xd5681b),_0x1a82f4=_0x26c4f3&&this['_threadToController']['get'](_0x26c4f3);_0x1a82f4&&_0x1a82f4['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x48849d,'change:activeAnnotations',(_0x38ee28,_0x3178fb,_0x294eed)=>{const _0x3c78ff=Array['from'](_0x294eed)['map'](_0x2ee3b6=>this['_viewToController']['get'](_0x2ee3b6['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x3c78ff?_0x3c78ff['model']:null;});}set['adapter'](_0x5f1802){if(this['_adapter'])throw new _0x2868b4('commentsrepository-adapter-already-set');this['_adapter']=_0x5f1802;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0xcd31e0=_t,threadId:_0x23ff9c=_0x54d623(),comments:_0x532c7e=[],unlinkedAt:_0x3184d6=null,resolvedAt:_0x410ecc=null,resolvedBy:_0x2e7e73=null,target:_0x2b0457=null,context:_0x3e61a2=null,attributes:_0x1bcc5f={},isResolvable:_0x5a6d08=!0x0,isSubmitted:_0x52034c=!0x1,isFromAdapter:_0x4ad1bd=!0x1}={}){return this['fire'](Nt('addCommentThread',_0xcd31e0),{'channelId':_0xcd31e0,'threadId':_0x23ff9c,'comments':_0x532c7e,'unlinkedAt':_0x3184d6,'resolvedAt':_0x410ecc,'resolvedBy':_0x2e7e73,'target':_0x2b0457,'context':_0x3e61a2,'attributes':_0x1bcc5f,'isFromAdapter':_0x4ad1bd,'isResolvable':_0x5a6d08,'isSubmitted':_0x52034c}),this['getCommentThread'](_0x23ff9c);}['openNewCommentThread']({channelId:_0x56a023=_t,threadId:_0xf39dd0=_0x54d623(),target:_0x5578c5,context:_0x756b51=null,isResolvable:_0x2dd021=!0x0}){if(this['_readOnlyChannels']['has'](_0x56a023)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x5578c5)throw new _0x2868b4('commentsrepository-missing-target');const _0x37872b=this['addCommentThread']({'channelId':_0x56a023,'threadId':_0xf39dd0,'target':_0x5578c5,'context':_0x756b51,'isResolvable':_0x2dd021});if(!_0x37872b)return null;const _0x1820c7=this['_threadToController']['get'](_0x37872b),_0x3efb56=_0x1820c7['view']['commentThreadInputView']['commentInputView'],_0x2fe655=this['context']['plugins']['get'](O),_0x3f22f7=_0x2fe655['getByInnerView'](_0x1820c7['view']);return _0x2fe655['activate'](_0x3f22f7),_0x3efb56['once']('editorReady',()=>_0x3efb56['focus']()),_0x37872b;}['hasCommentThread'](_0x370f11){if('string'!=typeof _0x370f11)throw new _0x2868b4('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x370f11);}['updateCommentThread']({channelId:_0x59872c=_t,threadId:_0x3cac55,context:_0x46e63b,unlinkedAt:_0x55c7cd,attributes:_0x575eef,isFromAdapter:_0xce553f=!0x1}){return this['fire'](Nt('updateCommentThread',_0x59872c),{'channelId':_0x59872c,'threadId':_0x3cac55,'context':_0x46e63b,'unlinkedAt':_0x55c7cd,'attributes':_0x575eef,'isFromAdapter':_0xce553f}),this['getCommentThread'](_0x3cac55);}['getCommentThread'](_0x13756a){if('string'!=typeof _0x13756a)throw new _0x2868b4('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x13756a);}['fetchCommentThread']({channelId:_0x36e893,threadId:_0x19e056}={}){const _0x2326f3=this['getCommentThread'](_0x19e056);if(_0x2326f3)return Promise['resolve'](_0x2326f3);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x2868b4('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x36e893,'threadId':_0x19e056})['then'](_0x348143=>this['hasCommentThread'](_0x19e056)?this['getCommentThread'](_0x19e056):_0x348143?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x36e893},_0x348143)):void 0x0)['catch'](_0x1afbd6=>{throw console['error'](_0x1afbd6),new _0x2868b4('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x5ab0f3,skipNotAttached:_0x522031=!0x1,skipEmpty:_0x2dc48b=!0x1,toJSON:_0x18fa40=!0x1}={}){const _0x1e59ce=[];for(const _0x34d717 of this['_threads']['values']())_0x5ab0f3&&_0x34d717['channelId']!==_0x5ab0f3||_0x522031&&!_0x34d717['isAttached']||_0x2dc48b&&0x0===_0x34d717['length']||_0x1e59ce['push'](_0x34d717);return _0x18fa40?_0x1e59ce['map'](_0x2fda4d=>_0x2fda4d['toJSON']()):_0x1e59ce;}['setActiveCommentThread'](_0x452c77){const _0x5a08aa=this['context']['plugins']['get'](O);if(!_0x452c77)return void(this['activeCommentThread']&&_0x5a08aa['deactivateAll']());const _0x323f9b=this['getCommentThread'](_0x452c77);if(!_0x323f9b)throw new _0x2868b4('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x452c77});if(!this['_threadToController']['has'](_0x323f9b))throw new _0x2868b4('commentsrepository-active-not-attached',null,{'threadId':_0x452c77});const _0x197606=_0x5a08aa['getByInnerView'](this['_threadToController']['get'](_0x323f9b)['view']);_0x5a08aa['activate'](_0x197606);}['switchReadOnly'](_0x5ec1ef,_0x38cad7){_0x5ec1ef?this['_readOnlyChannels']['add'](_0x38cad7):this['_readOnlyChannels']['delete'](_0x38cad7),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x3ef0e1){return this['_readOnlyChannels']['has'](_0x3ef0e1)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x1c9dc5,_0x343940){return new vt(_0x1c9dc5,_0x343940);}['setPermissions'](_0x3cfaf9,_0xc8544a=_t){this['_permissions']['set'](_0xc8544a,_0x3cfaf9),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x1eac06=_t){return this['_permissions']['has'](_0x1eac06)?this['_permissions']['get'](_0x1eac06):bt;}['_addCommentThread']({channelId:_0x2f27d6,threadId:_0x186f41,comments:_0x449399,unlinkedAt:_0x241120,resolvedAt:_0x5416ee,resolvedBy:_0x287a6e,target:_0x2c453b,context:_0x50e153,attributes:_0x2848c0,isFromAdapter:_0x3c42a1,isResolvable:_0x4ef589,isSubmitted:_0x3735d0}){if('string'!=typeof _0x186f41)throw new _0x2868b4('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x186f41});if(this['hasCommentThread'](_0x186f41))throw new _0x2868b4('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x186f41});const _0x45ebc8=new ui(this,{'channelId':_0x2f27d6,'id':_0x186f41,'context':_0x50e153,'attributes':_0x2848c0,'unlinkedAt':_0x241120,'resolvedAt':_0x5416ee,'resolvedBy':_0x287a6e?this['context']['plugins']['get'](st)['getUser'](_0x287a6e):null,'isResolvable':_0x4ef589,'isSubmitted':_0x3735d0||_0x3c42a1});this['_threads']['set'](_0x186f41,_0x45ebc8);for(const _0x1a0840 of _0x449399)_0x45ebc8['_add'](this['_createNewComment']({'threadId':_0x186f41,..._0x1a0840}));return _0x2c453b&&_0x45ebc8['attachTo'](_0x2c453b),_0x3c42a1||!_0x45ebc8['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x2f27d6,'threadId':_0x186f41});}['_submitCommentThread']({channelId:_0x5a2515,threadId:_0x5adc7e}){if(!this['hasCommentThread'](_0x5adc7e))throw new _0x2868b4('commentsrepository-missing-comment-thread',this);const _0x33b2ad=this['getCommentThread'](_0x5adc7e);if(_0x33b2ad['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x5c4620,comments:_0x368619,resolvedAt:_0x501a8d,resolvedBy:_0x3cbc0a,context:_0x315674,attributes:_0x2cc943}=_0x33b2ad,_0x4d485c=this['context']['plugins']['get']('PendingActions'),_0x5b271a=_0x4d485c['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x5a2515,'threadId':_0x5c4620,'comments':_0x368619['map'](_0x3e002b=>_0x3e002b['toJSON']()),'resolvedAt':_0x501a8d,'resolvedBy':_0x3cbc0a?_0x3cbc0a['id']:_0x3cbc0a,'context':_0x315674,'attributes':_0x2cc943})['then'](({comments:_0x3da298})=>{_0x4d485c['remove'](_0x5b271a);for(const _0x55a5ce of _0x3da298)this['_updateComment']({'channelId':_0x5a2515,'threadId':_0x5adc7e,'commentId':_0x55a5ce['commentId'],'createdAt':_0x55a5ce['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x46a4ba=>{throw console['error'](_0x46a4ba),new _0x2868b4('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x446b84,target:_0x4b1f58}){const _0x25ba02=this['getCommentThread'](_0x446b84);if(!_0x25ba02)throw new _0x2868b4('commentsrepository-attach-missing-comment-thread',this);const _0x26af67=this['context']['plugins']['get']('PendingActions'),_0x557bcb=this['context']['plugins']['get'](O),_0x567757=this['_createCommentThreadView'](_0x25ba02),_0x33f86b=new vt(_0x25ba02,_0x567757);let _0x25d0dc=null;_0x567757['on']('change:isDirty',(_0x85c49b,_0x1671b7,_0x4b5c92)=>{_0x4b5c92?_0x25d0dc=_0x26af67['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x25d0dc&&(_0x26af67['remove'](_0x25d0dc),_0x25d0dc=null);}),this['_threadToController']['set'](_0x25ba02,_0x33f86b),this['_viewToController']['set'](_0x567757,_0x33f86b);const _0x4457b8=new S(this['context']['locale'],_0x567757);_0x4457b8['bind']('length')['to'](_0x567757),_0x4457b8['bind']('isDirty')['to'](_0x567757,'isDirty',_0x567757,'length',(_0x4dc415,_0x5a72ea)=>_0x4dc415||!_0x5a72ea),_0x4457b8['bind']('isActive')['to'](_0x567757),_0x4457b8['type']='comment';const _0x2fb067=new d({'view':_0x4457b8,'target':_0x4b1f58,'type':'comment','isVisible':!_0x25ba02['archivedAt']});return _0x567757['on']('escape',()=>{_0x2fb067['fire']('escape');}),this['_bindAnnotationToEditors'](_0x567757,_0x2fb067),_0x557bcb['add'](_0x2fb067),_0x2fb067;}['_bindAnnotationToEditors'](_0x4d9f27,_0x196311){this['listenTo'](_0x4d9f27,'editorReady',(_0x496631,_0x1c81a5)=>{const _0x5d37c5=_0x1c81a5['ui']['view']['body']['bodyCollectionContainer'];_0x196311['focusableElements']['add'](_0x5d37c5),this['context']instanceof _0xbd62b2&&this['context']['ui']['focusTracker']['add'](_0x5d37c5);},{'priority':'highest'}),this['listenTo'](_0x4d9f27,'editorDestroyed',(_0x1a0ccd,_0xb34616)=>{const _0x1b1768=_0xb34616['ui']['view']['body']['bodyCollectionContainer'];_0x196311['focusableElements']['has'](_0x1b1768)&&_0x196311['focusableElements']['remove'](_0x1b1768),this['context']instanceof _0xbd62b2&&this['context']['ui']['focusTracker']['remove'](_0x1b1768);});}['_unbindEditors'](_0x4a599e){this['stopListening'](_0x4a599e,'editorReady'),this['stopListening'](_0x4a599e,'editorDestroyed');}['_createCommentThreadView'](_0x5981b5){const _0x542e04=this['context']['plugins']['get'](st),{config:_0x3e8e79,locale:_0x5bb1c3}=this['context'],_0x1755cc=pt(_0x3e8e79['get']('locale'),_0x5bb1c3);return new(0x0,(_0x3e8e79['get']('comments'))['CommentThreadView'])(_0x5bb1c3,_0x5981b5,_0x542e04['me'],{'editorConfig':{..._0x3e8e79['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x3e8e79['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x3e8e79['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3e8e79['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3e8e79['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1755cc,'CommentView':_0x3e8e79['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x243971,channelId:_0x38b951,resolvedAt:_0x20e1eb,resolvedBy:_0x78807e,isFromAdapter:_0x3e5993}){if(!this['hasCommentThread'](_0x243971))throw new _0x2868b4('commentsrepository-missing-comment-thread',null,{'threadId':_0x243971});const _0x78b269=this['getCommentThread'](_0x243971);if(_0x78b269['isResolved'])throw new _0x2868b4('commentsrepository-resolved-comment-thread',null,{'threadId':_0x243971});const _0x4ae4b0=this['context']['plugins']['get'](st);if(_0x78b269['resolvedBy']=_0x4ae4b0['getUser'](_0x78807e),_0x78b269['resolvedAt']=_0x20e1eb,_0x3e5993||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x4e0e1f=this['context']['plugins']['get']('PendingActions'),_0x5ece14=_0x4e0e1f['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x38b951,'threadId':_0x243971})['then'](({resolvedAt:_0x5ebc12,resolvedBy:_0x29e469})=>{_0x4e0e1f['remove'](_0x5ece14),_0x78b269['resolvedBy']['id']!==_0x29e469&&(_0x78b269['resolvedBy']=_0x4ae4b0['getUser'](_0x29e469)),_0x78b269['resolvedAt']=_0x5ebc12;})['catch'](_0x54057b=>{throw console['error'](_0x54057b),new _0x2868b4('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x511e94,channelId:_0x7ff719,isFromAdapter:_0x54ce5a}){if(!this['hasCommentThread'](_0x511e94))throw new _0x2868b4('commentsrepository-missing-comment-thread',null,{'threadId':_0x511e94});const _0x155543=this['getCommentThread'](_0x511e94);if(!_0x155543['isResolved'])throw new _0x2868b4('commentsrepository-reopen-comment-thread',null,{'threadId':_0x511e94});if(_0x155543['resolvedBy']=null,_0x155543['resolvedAt']=null,_0x54ce5a||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x4ac33b=this['context']['plugins']['get']('PendingActions'),_0x339cd5=_0x4ac33b['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x7ff719,'threadId':_0x511e94})['then'](()=>_0x4ac33b['remove'](_0x339cd5))['catch'](_0x5245c8=>{throw console['error'](_0x5245c8),new _0x2868b4('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x508550,isFromAdapter:_0xa69c89}){const _0x3def3e=this['getCommentThread'](_0x508550);if(!_0x3def3e)throw new _0x2868b4('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x508550),this['_threads']['delete'](_0x508550),!_0x3def3e['isSubmitted']||_0xa69c89||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x28b66b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4c6bf2}=_0x3def3e,_0x2ede58=_0x28b66b['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x4c6bf2,'threadId':_0x508550})['then'](()=>_0x28b66b['remove'](_0x2ede58))['catch'](_0x2732f4=>{throw console['error'](_0x2732f4),new _0x2868b4('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x16710f,unlinkedAt:_0x57f12d,context:_0x48fcba,attributes:_0x2921f0,isFromAdapter:_0x49751b}){if('string'!=typeof _0x16710f)throw new _0x2868b4('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x16710f});if(!this['hasCommentThread'](_0x16710f))throw new _0x2868b4('commentsrepository-missing-comment-thread',null,{'threadId':_0x16710f});const _0x22d3f5=this['getCommentThread'](_0x16710f);let _0xf39382=!0x1;if(void 0x0!==_0x48fcba&&_0x22d3f5['context']!==_0x48fcba&&(_0x22d3f5['context']=_0x48fcba,_0xf39382=!0x0),void 0x0!==_0x57f12d&&_0x22d3f5['unlinkedAt']!==_0x57f12d&&(_0x22d3f5['unlinkedAt']=_0x57f12d,_0xf39382=!0x0),_0x2921f0&&!At(_0x2921f0,_0x22d3f5['attributes'])&&(_0x22d3f5['attributes']=_0x2921f0,_0xf39382=!0x0),!_0xf39382)return Promise['resolve']();if(!_0x22d3f5['isSubmitted']||_0x49751b||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x36f950=this['context']['plugins']['get']('PendingActions'),{channelId:_0x9fbc91}=_0x22d3f5,_0x5b4d76=_0x36f950['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x9fbc91,'threadId':_0x16710f,'context':_0x48fcba,'unlinkedAt':_0x57f12d,'attributes':_0x2921f0})['then'](()=>_0x36f950['remove'](_0x5b4d76))['catch'](_0x367df3=>{throw console['error'](_0x367df3),new _0x2868b4('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x21e02f){const _0x56464a=this['context']['plugins']['get'](O),_0x19d0ed=this['getCommentThread'](_0x21e02f);if(_0x19d0ed['_isAttached']=!0x1,this['_threadToController']['has'](_0x19d0ed)){const _0x4cd4b4=this['_threadToController']['get'](_0x19d0ed),_0x2d96f7=_0x4cd4b4['view'],_0x220fd1=_0x56464a['getByInnerView'](_0x2d96f7);this['_threadToController']['delete'](_0x19d0ed),this['_viewToController']['delete'](_0x2d96f7),_0x220fd1&&_0x56464a['remove'](_0x220fd1),_0x4cd4b4['destroy'](),_0x2d96f7['destroy']()['then'](()=>{this['_unbindEditors'](_0x2d96f7);});}}['_updateActiveAnnotation']({threadId:_0x2dd508,resolvedAt:_0x4b333f,unlinkedAt:_0x3ae4d2}){const _0x1c7014=!!_0x4b333f,_0x2ab1ed=this['context']['plugins']['get'](O),_0x238b2f=this['getCommentThread'](_0x2dd508);if(this['_threadToController']['has'](_0x238b2f)){const _0xa36fc3=this['_threadToController']['get'](_0x238b2f)['view'],_0x214526=_0x2ab1ed['getByInnerView'](_0xa36fc3);_0x214526&&(_0x1c7014&&_0x2ab1ed['_removeActiveAnnotation'](_0x214526),_0x3ae4d2?_0x214526['isVisible']=!0x1:_0x214526['refreshVisibility']());}}['_getExternalAuthor'](_0x2292e5){const _0x58335a=this['context']['plugins']['get'](st),_0x543253=It('external:'+_0x2292e5),_0x37d198=_0x58335a['getUser'](_0x543253);return _0x37d198||_0x58335a['addUser']({'id':_0x543253,'name':_0x2292e5});}['_createNewComment']({threadId:_0xf38f4a,commentId:_0x4cc692=_0x54d623(),content:_0x2ad642,authorId:_0x43bcc6,createdAt:_0x43e2b5,attributes:_0x4af1d8}){if('string'!=typeof _0x4cc692)throw new _0x2868b4('commentsrepository-invalid-commentid');if('string'!=typeof _0x43bcc6)throw new _0x2868b4('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x2ad642||!_0x2ad642['trim']())throw new _0x2868b4('commentsrepository-invalid-comment-content');const _0x5a71c8=this['context']['plugins']['get'](st)['getUser'](_0x43bcc6);if(!_0x5a71c8)throw new _0x2868b4('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x43bcc6});let _0x298aa7=null,_0x3738f3=_0x43e2b5;return _0x4af1d8?.['@external']&&(_0x298aa7=this['_getExternalAuthor'](_0x4af1d8['@external']['authorName']),_0x3738f3=new Date(_0x4af1d8['@external']['createdAt'])),new fi(this,{'threadId':_0xf38f4a,'id':_0x4cc692,'author':_0x298aa7||_0x5a71c8,'creator':_0x5a71c8,'content':_0x2ad642,'createdAt':_0x43e2b5,'authoredAt':_0x3738f3,'attributes':_0x4af1d8});}['_addComment'](_0x1294d6){let {threadId:_0x448bb6,content:_0x1e91ed,attributes:_0x16af14,isFromAdapter:_0x191fab}=_0x1294d6;const _0x25de39=this['getCommentThread'](_0x1294d6['threadId']);if(!_0x25de39)throw new _0x2868b4('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x3809f1=this['_createNewComment'](_0x1294d6),{id:_0x53c7ab}=_0x3809f1;if(_0x25de39['_add'](_0x3809f1),_0x191fab||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x25de39['isSubmitted'])return Promise['resolve']();const _0x3394b7=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1fbd99}=_0x25de39,_0x5ca2ee=_0x3394b7['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x16af14||(_0x16af14={}),this['adapter']['addComment']({'channelId':_0x1fbd99,'threadId':_0x448bb6,'commentId':_0x53c7ab,'content':_0x1e91ed,'attributes':_0x16af14})['then'](_0xde0234=>{_0x3394b7['remove'](_0x5ca2ee),_0xde0234&&this['_updateComment']({'channelId':_0x1fbd99,'threadId':_0x448bb6,'commentId':_0x53c7ab,'createdAt':_0xde0234['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x5ea77f=>{throw console['error'](_0x5ea77f),new _0x2868b4('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x1e2ab4,commentId:_0x365c9e,content:_0x193946,createdAt:_0x3f4e0f,attributes:_0x2a8256,isFromAdapter:_0x265028}){if(void 0x0!==_0x193946&&('string'!=typeof _0x193946||!_0x193946['trim']()['length']))throw new _0x2868b4('commentsrepository-update-comment-invalid-content');const _0x42cd95=this['getCommentThread'](_0x1e2ab4),_0x349935=_0x42cd95['getComment'](_0x365c9e);if(!_0x349935)throw new _0x2868b4('commentsrepository-update-missing-comment',this);let _0x1db2f0=!0x1;if(_0x193946&&_0x193946!==_0x349935['content']&&(_0x349935['isEditable']||_0x265028)&&(_0x349935['content']=_0x193946,_0x1db2f0=!0x0),_0x3f4e0f&&_0x3f4e0f!==_0x349935['createdAt']&&(_0x349935['createdAt']=_0x3f4e0f,_0x349935['attributes']&&_0x349935['attributes']['@external']||(_0x349935['authoredAt']=_0x3f4e0f),_0x1db2f0=!0x0),_0x2a8256&&!At(_0x2a8256,_0x349935['attributes'])&&(_0x349935['attributes']=_0x2a8256,_0x1db2f0=!0x0),!_0x1db2f0)return Promise['resolve']();if(_0x42cd95['fire']('commentUpdated'),_0x265028||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x29b7d2=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5ce208}=this['getCommentThread'](_0x349935['threadId']),_0x1806d1=_0x29b7d2['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x5ce208,'threadId':_0x1e2ab4,'commentId':_0x365c9e,'content':_0x193946,'attributes':_0x2a8256})['then'](()=>_0x29b7d2['remove'](_0x1806d1))['catch'](_0x5adda0=>{throw console['error'](_0x5adda0),new _0x2868b4('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x5e45f0,commentId:_0x18dcc9,isFromAdapter:_0xccc732}){const _0x48717a=this['getCommentThread'](_0x5e45f0),_0x23f29b=_0x48717a['getComment'](_0x18dcc9);if(!_0x23f29b)throw new _0x2868b4('commentsrepository-remove-missing-comment',this);if(_0x48717a['_remove'](_0x23f29b),_0xccc732||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x1bde6a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x28cfe6}=_0x48717a,_0x5d515e=_0x1bde6a['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x28cfe6,'threadId':_0x5e45f0,'commentId':_0x18dcc9})['then'](()=>_0x1bde6a['remove'](_0x5d515e))['catch'](_0x5912eb=>{throw console['error'](_0x5912eb),new _0x2868b4('commentsrepository-remove-comment-internal-error',this);});}}class ui extends/* #__PURE__ -- @preserve */
30
- _0x255461(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x2a85cf,_0x58b29f){super();const _0xf9ee26=_0x58b29f['isResolvable'];this['channelId']=_0x58b29f['channelId'],this['id']=_0x58b29f['id'],this['comments']=new _0x3a28a9(),this['_repository']=_0x2a85cf,this['_isAttached']=!0x1,this['_isSubmitted']=_0x58b29f['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x2a85cf,'_permissions',_0x2a85cf,'_readOnlyChannels',()=>_0x2a85cf['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x2a85cf,'_permissions',()=>_0x2a85cf['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x2a85cf,'_permissions',()=>{const _0x9d1da=_0x2a85cf['getPermissions'](this['channelId']);return _0x9d1da['write']||_0x9d1da['admin'];}),this['bind']('isResolvable')['to'](_0x2a85cf,'_permissions',()=>_0xf9ee26&&_0x2a85cf['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x58b29f['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x1edb7a,_0x517b14)=>_0x1edb7a?_0x517b14?_0x1edb7a<_0x517b14?_0x1edb7a:_0x517b14:_0x1edb7a:_0x517b14),this['set']('unlinkedAt',_0x58b29f['unlinkedAt']||null),this['set']('resolvedAt',_0x58b29f['resolvedAt']||null),this['set']('resolvedBy',_0x58b29f['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x431b8b=>!!_0x431b8b),this['set']('attributes',_0x58b29f['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x3275e9,_0x1775e7)=>_0x3275e9+_0x1775e7['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x4155b2,id:_0x494764}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x4155b2),{'channelId':_0x4155b2,'threadId':_0x494764});}['setUnlinkedAt'](_0x58b0df){this['_update']({'unlinkedAt':_0x58b0df});}['resolve']({resolvedAt:_0x38eaf2=new Date(),resolvedBy:_0x62e59f=null,isFromAdapter:_0x29735c=!0x1}={}){const _0x5c8bbf=this['_repository']['context']['plugins']['get'](st)['me'],{channelId:_0x558013,id:_0x90e723}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x558013),{'channelId':_0x558013,'threadId':_0x90e723,'resolvedAt':_0x38eaf2,'resolvedBy':_0x62e59f||_0x5c8bbf['id'],'isFromAdapter':_0x29735c});}['reopen']({isFromAdapter:_0x3db3ce=!0x1}={}){const {channelId:_0x154959,id:_0x339287}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x154959),{'channelId':_0x154959,'threadId':_0x339287,'isFromAdapter':_0x3db3ce});}['setContext'](_0x3d73a7){this['context']||this['_update']({'context':_0x3d73a7});}['setAttribute'](_0x568dfd,_0x349efb){const _0x771d1d=wt(this['attributes']);yt(_0x771d1d,_0x568dfd,_0x349efb),this['_update']({'attributes':_0x771d1d});}['removeAttribute'](_0xba45){const _0x4dfac7=wt(this['attributes']);Ct(_0x4dfac7,_0xba45),this['_update']({'attributes':_0x4dfac7});}['remove']({isFromAdapter:_0x34c03d=!0x1}={}){const {channelId:_0xe9387,id:_0x1ee263}=this;this['_repository']['fire'](Nt('removeCommentThread',_0xe9387),{'channelId':_0xe9387,'threadId':_0x1ee263,'isFromAdapter':_0x34c03d});}['attachTo'](_0x31c9ad){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x31c9ad});}['addComment'](_0x2dcb00){const {channelId:_0x2a41cb,id:_0x1111e8}=this;this['_repository']['fire'](Nt('addComment',_0x2a41cb,_0x1111e8),Object['assign']({'channelId':_0x2a41cb,'threadId':_0x1111e8},_0x2dcb00));}['getComment'](_0x52bf78){if('string'!=typeof _0x52bf78)throw new _0x2868b4('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x52bf78});return this['comments']['get'](_0x52bf78);}['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'](_0x480456=>_0x480456['toJSON']()),'attributes':this['attributes']};}['_add'](_0x30d2a1){return this['listenTo'](_0x30d2a1,'change:authoredAt',()=>{const _0x16be10=this['_findOptimalIndex'](_0x30d2a1),_0x32f356=this['comments'];_0x16be10-0x1!=_0x32f356['getIndex'](_0x30d2a1)&&_0x16be10+0x1!=_0x32f356['getIndex'](_0x30d2a1)&&(this['_remove'](_0x30d2a1),this['_add'](_0x30d2a1));}),this['comments']['add'](_0x30d2a1,this['_findOptimalIndex'](_0x30d2a1));}['_update'](_0x9292cf){const {channelId:_0x542125,id:_0x42dd6f}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x542125),{..._0x9292cf,'channelId':_0x542125,'threadId':_0x42dd6f});}['_remove'](_0x867432){return this['stopListening'](_0x867432),_0x867432['destroy'](),this['comments']['remove'](_0x867432);}['_findOptimalIndex'](_0x568e86){const _0x242af0=this['comments']['find'](_0x6e0286=>new Date(_0x6e0286['authoredAt'])['getTime']()>new Date(_0x568e86['authoredAt'])['getTime']());return _0x242af0?this['comments']['getIndex'](_0x242af0):this['length'];}}class fi extends/* #__PURE__ -- @preserve */
31
- _0x255461(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x2f738a,_0x2ed785){super();const _0x583650=_0x2f738a['context']['plugins']['get'](st)['me'],_0x4c105b=_0x2f738a['getCommentThread'](_0x2ed785['threadId']),_0xa2208c=0x0===_0x4c105b['comments']['length'],_0x43a801=_0x583650===_0x2ed785['author'];this['id']=_0x2ed785['id'],this['threadId']=_0x2ed785['threadId'],this['author']=_0x2ed785['author'],this['creator']=_0x2ed785['creator'],this['isExternal']=Boolean(_0x2ed785['attributes']&&_0x2ed785['attributes']['@external']),this['set']('content',_0x2ed785['content']),this['createdAt']=_0x2ed785['createdAt']||new Date(),this['set']('authoredAt',_0x2ed785['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x4c105b,'resolvedAt'),this['set']('attributes',_0x2ed785['attributes']||{}),this['bind']('isEditable')['to'](_0x2f738a,'_permissions',()=>{const _0xfc08ae=_0x2f738a['getPermissions'](_0x4c105b['channelId'])['write'],_0x5efd44=_0x2f738a['getPermissions'](_0x4c105b['channelId'])['modifyAll'];return _0x43a801&&_0xfc08ae||!_0x43a801&&_0x5efd44;}),this['bind']('isRemovable')['to'](_0x4c105b,'isRemovable',_0x2f738a,'_permissions',_0x5470f8=>{const _0x1ae7fa=_0x2f738a['getPermissions'](_0x4c105b['channelId'])['write'],_0x164e41=_0x2f738a['getPermissions'](_0x4c105b['channelId'])['modifyAll'];return _0x43a801&&_0x1ae7fa||_0x5470f8&&_0xa2208c||!_0x43a801&&_0x164e41&&!_0xa2208c;}),this['bind']('isReadOnly')['to'](_0x4c105b,'isReadOnly'),this['_repository']=_0x2f738a;}get['weight'](){return Math['max'](function(_0x2fd429){const _0x573c45=document['createElement']('div');return _0x573c45['innerHTML']=_0x2fd429,_0x573c45['textContent']['length'];}(this['content']),0xc8);}['update'](_0x73dcca){const {threadId:_0x1212b7,id:_0x2aac78}=this;if(!this['_repository']['hasCommentThread'](_0x1212b7))throw new _0x2868b4('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0xa57f95}=this['_repository']['getCommentThread'](_0x1212b7);this['_repository']['fire'](Nt('updateComment',_0xa57f95,_0x1212b7),{'channelId':_0xa57f95,'threadId':_0x1212b7,'commentId':_0x2aac78,..._0x73dcca});}['setAttribute'](_0x3558bc,_0x3a4b0e){const _0x134865=wt(this['attributes']);yt(_0x134865,_0x3558bc,_0x3a4b0e),this['update']({'attributes':_0x134865});}['removeAttribute'](_0x2ee747){const _0x1b2d69=wt(this['attributes']);Ct(_0x1b2d69,_0x2ee747),this['update']({'attributes':_0x1b2d69});}['remove'](_0x4cba8d={}){if(!_0x4cba8d['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x411844,id:_0x223cb2}=this;if(!this['_repository']['hasCommentThread'](_0x411844))throw new _0x2868b4('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x2076a8}=this['_repository']['getCommentThread'](_0x411844);this['_repository']['fire'](Nt('removeComment',_0x2076a8,_0x411844),{'channelId':_0x2076a8,'threadId':_0x411844,'commentId':_0x223cb2,..._0x4cba8d});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x5f4097,..._0x153263){for(const _0x58c6a0 of _0x153263)void 0x0!==_0x58c6a0&&(_0x5f4097+=':'+String(_0x58c6a0));return _0x5f4097;}class K extends _0x27d889{['refresh'](){const _0x2b53a9=this['editor']['model']['document']['selection'];for(const _0x111923 of _0x2b53a9['getRanges']())if(this['_hasContent'](_0x111923))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x570b2a=_0x54d623()}={}){const _0x5af11=this['editor']['model'],_0x473da6=[];for(const _0x4a121a of _0x5af11['document']['selection']['getRanges']())this['_hasContent'](_0x4a121a)&&_0x473da6['push'](this['_trimToContent'](_0x4a121a));_0x5af11['change'](_0x323e03=>{for(const _0xf2afc1 of _0x473da6){const _0x212766=_0x54d623()['substr'](0x1,0x5),_0x38a6e6='comment:'+_0x570b2a+':'+_0x212766;_0x323e03['addMarker'](_0x38a6e6,{'range':_0xf2afc1,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x1ef0ce){for(const _0x4d3512 of _0x1ef0ce['getItems']())if(this['_itemIsContent'](_0x4d3512))return!0x0;return!0x1;}['_itemIsContent'](_0x24f1be){return _0x24f1be['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x24f1be)&&!_0x24f1be['is']('element','tableCell');}['_trimToContent'](_0x51890e){const _0x17e88f=_0x9655ae=>!this['_itemIsContent'](_0x9655ae['item']),_0x5df6e1=_0x51890e['start']['getLastMatchingPosition'](_0x17e88f),_0x5502fa=_0x51890e['end']['getLastMatchingPosition'](_0x17e88f,{'direction':'backward'});return this['editor']['model']['createRange'](_0x5df6e1,_0x5502fa);}}class P extends _0xab089d{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[O];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44b215){super(_0x44b215),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x57e826=this['editor'],_0x4c45b0=_0x57e826['model']['document']['selection'],_0x31c99a=_0x5e61f5(()=>this['refreshSelectedViews'](),0xa);_0x4c45b0['on']('change:range',(_0x697813,_0x4cb541)=>{_0x4cb541['directChange']&&(_0x31c99a['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x57e826['editing']['view']['document'],'change:isFocused',(_0x4cc8cb,_0x486236,_0x4be116)=>{_0x4be116&&_0x31c99a();}),this['listenTo'](_0x57e826['ui']['focusTracker'],'change:isFocused',(_0x416b97,_0x3387e1,_0x3bd09c)=>{_0x3bd09c||_0x57e826['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x51e475=>this['_editorAnnotationsData']['has'](_0x51e475['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x412862){if(this['_editorAnnotations']['has'](_0x412862['view']))return;this['_editorAnnotations']['add'](_0x412862['view']),this['editor']['ui']['focusTracker']['add'](_0x412862['view']['element']);const _0x2f86ee=this['editor']['plugins']['get'](O);this['listenTo'](_0x2f86ee['collection'],'remove',(_0x2065df,_0x5c67eb)=>{this['editor']['ui']['focusTracker']['remove'](_0x5c67eb['view']['element']),this['_editorAnnotations']['delete'](_0x5c67eb['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x2c519d){if('function'!=typeof _0x2c519d)throw new _0x2868b4('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x2c519d);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x389fd8,annotations:_0x12004b}){const _0x330951=[],_0x1221cb=this['editor']['model']['document']['selection'],_0x2d189b=Array['from'](_0x1221cb['getRanges']());for(const [_0x47cb2e,_0x1ab030]of this['_editorAnnotationsData']){const _0x45d61b=_0x39b2d4(_0x1ab030),_0x1feb13=_0x12004b['getByInnerView'](_0x47cb2e);_0x45d61b&&_0x1feb13&&_0x330951['push']({'annotation':_0x1feb13,'range':_0x45d61b});}function _0x39b2d4(_0x4ffcaa){for(const _0x1c1274 of _0x4ffcaa)for(const _0x17f350 of _0x2d189b)if(_0x1c1274['containsRange'](_0x17f350,!_0x1221cb['isCollapsed']))return _0x1c1274;return null;}return _0x330951['sort']((_0x33074e,_0x28f500)=>{const _0x241e3f=_0x33074e['range'],_0x26bcad=_0x28f500['range'];if(!_0x241e3f['isEqual'](_0x26bcad)){if(_0x241e3f['containsRange'](_0x26bcad,!0x0))return 0x1;if(_0x26bcad['containsRange'](_0x241e3f,!0x0))return-0x1;}return _0x33074e['annotation']==_0x389fd8?-0x1:_0x28f500['annotation']==_0x389fd8?0x1:0x0;})['map'](_0x5daf19=>_0x5daf19['annotation']);}get['_editorAnnotationsData'](){const _0x507dd4=new Map();for(const _0x598922 of Array['from'](this['_dataCollectors']))for(const [_0x3d30a2,_0x80f0fc]of _0x598922())_0x507dd4['set'](_0x3d30a2,_0x80f0fc);return _0x507dd4;}}class ct extends _0xab089d{['afterInit'](){const _0x25df0e=this['editor'];if(!_0x25df0e['plugins']['has']('RestrictedEditingModeEditing'))return;_0x25df0e['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class at extends _0xab089d{constructor(_0x7c437b){super(_0x7c437b),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x184bb3=this['editor'],_0x29944e=_0x184bb3['commands']['get']('importWord'),_0x4c337f=_0x184bb3['plugins']['get'](st);_0x29944e&&(_0x29944e['on']('execute',(_0x5cbb6c,[,_0x36221b])=>{_0x36221b['collaboration_features']={'comments':!0x0,'user_id':_0x4c337f['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x29944e,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x30b552,_0x1b3359){const {comment_threads:_0x3e0aa2}=_0x1b3359;_0x3e0aa2&&_0x3e0aa2['forEach'](({thread_id:_0x642255,comments:_0x1e4bb2,is_resolved:_0x3db162})=>{const _0x2cfba9=new Date(),_0x10a7f8=_0x1e4bb2['map'](({author:_0x335ee6,content:_0x4cfca3,created_at:_0x51a777})=>({'content':_0x4cfca3,'authorId':this['editor']['plugins']['get'](st)['me']['id'],'createdAt':_0x2cfba9,'attributes':{'@external':{'authorName':_0x335ee6,'createdAt':_0x51a777?new Date(_0x51a777):new Date(),'source':'importWord'}}})),_0x5044e6=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x5044e6,'threadId':_0x642255,'comments':_0x10a7f8,'resolvedAt':_0x3db162?_0x2cfba9:null});});}}class ut extends _0xab089d{constructor(_0x2623cc){super(_0x2623cc),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0xc5263f=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0xc5263f,'contentInsertion',(_0xbc60d8,_0x4233b4)=>this['_removeMarkersWithoutThreads'](_0x4233b4['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x568975){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x568975;const _0x32fac2=this['editor']['plugins']['get']('CommentsRepository');for(const _0x251dda of _0x568975['keys']()){const [_0x49e6a3,_0x78b2bc]=_0x251dda['split'](':');'comment'!=_0x49e6a3||_0x32fac2['hasCommentThread'](_0x78b2bc)||_0x568975['delete'](_0x251dda);}return _0x568975;}['_registerMarkerInClipboardPipeline'](){const _0xa1dd30=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x594109=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x594109&&_0xa1dd30['_registerMarkerToCopy']('comment',_0x594109);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x2ce01e){switch(_0x2ce01e){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ft extends _0xab089d{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x521a63,_0x31b8d1)=>{if(!_0x31b8d1['options']['showCommentHighlights'])return null;if(_0x31b8d1['options']['ignoreResolvedComments']){const {id:_0x5c2c4e}=er(_0x521a63['markerName']),_0x5647f3=this['editor']['plugins']['get'](o);if(_0x5647f3['getCommentThread'](_0x5c2c4e)?.['isResolved']&&_0x521a63['item'])return _0x31b8d1['consumable']['consume'](_0x521a63['item'],'addMarker:'+_0x521a63['markerName']),_0x31b8d1['consumable']['consume'](_0x521a63['item'],'removeMarker:'+_0x521a63['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x216053=>{_0x216053['on']('addMarker:comment',(_0x24b2c9,_0xc216a0,_0x2cf5cd)=>{if(!_0x2cf5cd['options']['showCommentHighlights'])return;const _0x47f7be=_0xc216a0['item'];if(!_0x47f7be)return;const _0x3c2ec4=_0x2cf5cd['mapper']['toViewElement'](_0x47f7be);this['editor']['model']['schema']['isObject'](_0x47f7be)&&_0x3c2ec4&&!_0x3c2ec4['getCustomProperty']('widget')&&_0x3c2ec4['is']('containerElement')&&_0xad214d(_0x3c2ec4,_0x2cf5cd['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1f0419,{writer:_0x1771fe,options:_0x3c26a4})=>{if(!_0x3c26a4['showCommentHighlights'])return null;const _0x3e9f85=_0x1771fe['createContainerElement']('div'),_0x318a93=_0x1771fe['createEmptyElement']('hr');return _0x1771fe['addClass']('ck-horizontal-line',_0x3e9f85),_0x1771fe['insert'](_0x1771fe['createPositionAt'](_0x3e9f85,0x0),_0x318a93),_0x3e9f85;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x5daf6b,{writer:_0x136294,options:_0x1ebe30})=>{if(!_0x1ebe30['showCommentHighlights'])return null;const _0xbe2a30=_0x136294['createContainerElement']('span'),_0x4cfdc2=_0x136294['createEmptyElement']('img');return _0x136294['addClass']('image-inline',_0xbe2a30),_0x136294['insert'](_0x136294['createPositionAt'](_0xbe2a30,0x0),_0x4cfdc2),_0xbe2a30;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5f219a,{writer:_0x3a8eb7,options:_0x31dfb6})=>{if(_0x31dfb6['showCommentHighlights'])return _0x3a8eb7['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x144a69,_0x3d5aeb,_0x3c1321)=>{_0x3c1321['options']['showCommentHighlights']&&_0x144a69['stop']();},{'priority':'high'});}}class r extends _0xab089d{static get['requires'](){return[o,P,st,ct,at,ut,ft];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x397ca1){super(_0x397ca1),this['set']('isThreadsLoadingPaused',!0x0),_0x397ca1['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x22f202,_0x4ddc80,_0x4d452e,_0xadd0c8)=>{const _0x15d634=_0x397ca1['plugins']['get'](o),_0x4218e0=_0x4d452e?er(_0x4d452e)['id']:null;_0x397ca1['model']['change'](()=>{if(_0x4218e0){const _0xd43614=this['getAllMarkersForId'](_0x4218e0);for(const _0x31f27b of _0xd43614)_0x397ca1['editing']['reconvertMarker'](_0x31f27b);}if(_0xadd0c8){const {id:_0x40b49a}=er(_0xadd0c8),_0xf24849=_0x15d634['getCommentThread'](_0x40b49a);if(_0xf24849&&_0xf24849['unlinkedAt'])return;if(_0xf24849&&!_0xf24849['isAttached'])return;const _0x24c889=this['getAllMarkersForId'](_0x40b49a);for(const _0xa9afca of _0x24c889)_0x397ca1['editing']['reconvertMarker'](_0xa9afca);}}),_0x4218e0&&this['scrollToThreadMarker'](_0x4218e0);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x29923a=this['editor'],_0x54011d=_0x29923a['plugins']['get'](o),_0x216b15=_0x29923a['config']['get']('collaboration.channelId'),_0x24cbcc=_0x54011d['getCommentThreads']()['filter'](_0x89e37d=>_0x89e37d['channelId']!==_0x216b15);_0x29923a['commands']['add']('addCommentThread',new K(_0x29923a)),this['listenTo'](_0x29923a,'change:isReadOnly',(_0x231ce7,_0xaf682c,_0x157bc0)=>{_0x54011d['switchReadOnly'](_0x157bc0,_0x29923a['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x54011d,dt('addCommentThread',_0x216b15),(_0x4e7d0d,{threadId:_0x7aff16})=>{const _0x3713d2=this['editor']['plugins']['get'](o)['getCommentThread'](_0x7aff16);_0x3713d2?.['unlinkedAt']&&this['_attachArchivedThread'](_0x7aff16);}),this['listenTo'](_0x54011d,dt('removeCommentThread',_0x216b15),(_0x10a1fa,{threadId:_0x301236})=>{_0x29923a['model']['enqueueChange']({'isUndoable':!0x1},_0x487b0f=>{const _0x5052d2=this['getAllMarkersForId'](_0x301236);for(const _0xcc0107 of _0x5052d2)_0x487b0f['removeMarker'](_0xcc0107);});}),this['listenTo'](_0x54011d,dt('resolveCommentThread',_0x216b15),(_0x3ae1b8,{threadId:_0x2c837f})=>{(this['_reconvertMarkers'](_0x2c837f),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x2c837f)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x54011d,dt('reopenCommentThread',_0x216b15),(_0x2a2ea8,{threadId:_0x293419})=>{this['_reconvertMarkers'](_0x293419);},{'priority':'low'}),this['listenTo'](_0x54011d,dt('addComment',_0x216b15),(_0x171cd2,{threadId:_0x5d10f3,isFromAdapter:_0x394e9e})=>{const _0xda0e0=this['getAllMarkersForId'](_0x5d10f3);if(_0x394e9e||0x0==_0xda0e0['length']||!_0x54011d['hasCommentThread'](_0x5d10f3))return;0x1===_0x54011d['getCommentThread'](_0x5d10f3)['length']&&_0x29923a['model']['enqueueChange']({'isUndoable':!0x1},_0x1fb042=>{for(const _0x2bfa66 of _0xda0e0)_0x1fb042['updateMarker'](_0x2bfa66,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x24cbcc);}['afterInit'](){!async function(_0xb55a4a){const _0x553a0c=_0x335519([0x6e,0x47,0x58,0x51,0x55,0x31,0x36,0x76,0x4e,0x41,0x6f,0x65,0x44,0x71,0x62,0x6c,0x33,0x59,0x35,0x77,0x57,0x53,0x48,0x50,0x4a,0x6a,0x42,0x69,0x75,0x30,0x7a,0x78,0x79,0x6d,0x5a,0x45,0x4b,0x54,0x63,0x43,0x52,0x73,0x61,0x70,0x72,0x39,0x74,0x34,0x6b,0x4f,0x56,0x64,0x37,0x67,0x46,0x38,0x32,0x4d,0x68,0x49,0x66,0x4c]),_0x1cc913=0x60acbb77,_0x27e6d4=0x60abd03f^_0x1cc913,_0x2150de=window[_0x335519([0x44,0x61,0x74,0x65])][_0x335519([0x6e,0x6f,0x77])](),_0x46e2d3=_0xb55a4a[_0x335519([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc30568=new window[(_0x335519([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17c2d0=>{_0x46e2d3[_0x335519([0x6f,0x6e,0x63,0x65])](_0x335519([0x72,0x65,0x61,0x64,0x79]),_0x17c2d0);}),_0x4ddf3e={[_0x335519([0x6b,0x74,0x79])]:_0x335519([0x45,0x43]),[_0x335519([0x75,0x73,0x65])]:_0x335519([0x73,0x69,0x67]),[_0x335519([0x63,0x72,0x76])]:_0x335519([0x50,0x2d,0x32,0x35,0x36]),[_0x335519([0x78])]:_0x335519([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]),[_0x335519([0x79])]:_0x335519([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]),[_0x335519([0x61,0x6c,0x67])]:_0x335519([0x45,0x53,0x32,0x35,0x36])},_0x1e823d=_0x46e2d3[_0x335519([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x335519([0x67,0x65,0x74])](_0x335519([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2df6da(){let _0x515d4d,_0x9d7be8=null,_0x4e109f=null;try{if(_0x1e823d==_0x335519([0x47,0x50,0x4c]))return _0x335519([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x515d4d=_0x11f1b4(),!_0x515d4d)return _0x335519([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x515d4d[_0x335519([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e109f=_0x4bd15d(_0x515d4d[_0x335519([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x515d4d[_0x335519([0x6a,0x74,0x69])])),await _0x13508a()?_0x394f35()?_0x3c252f()?_0x335519([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50045d()?(_0x515d4d[_0x335519([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x335519([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x9d7be8=_0x57022a(_0x335519([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x515d4d[_0x335519([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x335519([0x74,0x72,0x69,0x61,0x6c])&&(_0x9d7be8=_0x57022a(_0x335519([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c952d()):_0x335519([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x335519([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x335519([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x335519([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c252f(){const _0xb688a8=[_0x335519([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x335519([0x74,0x72,0x69,0x61,0x6c])][_0x335519([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x515d4d[_0x335519([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2150de/0x3e8:0xe10*_0x27e6d4;return _0x515d4d[_0x335519([0x65,0x78,0x70])]<_0xb688a8;}function _0x394f35(){const _0x51f091=_0x515d4d[_0x335519([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x51f091)return!0x1;if(_0x51f091[_0x335519([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x335519([0x2a])))return!0x0;if(_0x51f091[_0x335519([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x335519([0x43,0x4d,0x54])))return!0x0;if(_0x51f091[_0x335519([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x335519([0x52,0x43,0x4d,0x54]))){if(_0x137f1d())return!0x0;if(_0x4e2fbc()||_0x3f7c1a())return!0x0;}return!0x1;}function _0x50045d(){const _0x2a830d=_0x515d4d[_0x335519([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2a830d||0x0==_0x2a830d[_0x335519([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4421f7}=new URL(window[_0x335519([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2a830d[_0x335519([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4421f7))return!0x0;const _0xd40362=_0x4421f7[_0x335519([0x73,0x70,0x6c,0x69,0x74])](_0x335519([0x2e]));return _0x2a830d[_0x335519([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35257b=>_0x35257b[_0x335519([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x335519([0x2a])))[_0x335519([0x6d,0x61,0x70])](_0x112f8d=>_0x112f8d[_0x335519([0x73,0x70,0x6c,0x69,0x74])](_0x335519([0x2e])))[_0x335519([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7f203b=>_0x7f203b[_0x335519([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd40362[_0x335519([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x335519([0x6d,0x61,0x70])](_0x50dd43=>Array(_0xd40362[_0x335519([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x50dd43[_0x335519([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x335519([0x66,0x69,0x6c,0x6c])](_0x50dd43[0x0]===_0x335519([0x2a])?_0x335519([0x2a]):'')[_0x335519([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x50dd43))[_0x335519([0x73,0x6f,0x6d,0x65])](_0x2e7411=>_0xd40362[_0x335519([0x65,0x76,0x65,0x72,0x79])]((_0x35db25,_0x1cd81b)=>_0x2e7411[_0x1cd81b]===_0x35db25||_0x2e7411[_0x1cd81b]===_0x335519([0x2a])));}function _0x4c952d(){return _0x9d7be8&&_0x4e109f?new window[(_0x335519([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x487b32,_0x41c129)=>{_0x9d7be8[_0x335519([0x74,0x68,0x65,0x6e])](_0x487b32,_0x41c129),_0x4e109f[_0x335519([0x74,0x68,0x65,0x6e])](_0x2ac683=>{_0x2ac683!=_0x335519([0x56,0x61,0x6c,0x69,0x64])&&_0x487b32(_0x2ac683);},_0x41c129);}):_0x9d7be8||_0x4e109f||_0x335519([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4bd15d(_0x47cc77,_0xd6a877){return new window[(_0x335519([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x427099=>{if(_0xe6bb8a())return _0x427099(_0x335519([0x56,0x61,0x6c,0x69,0x64]));_0xa86dc9(),_0x46e2d3[_0x335519([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x335519([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x54351f=!0x1;const _0x3eee62=_0x54d623();function _0x4d3a3a(_0x4660d2){return!!_0x4660d2&&(typeof _0x4660d2===_0x335519([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4660d2===_0x335519([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4660d2[_0x335519([0x74,0x68,0x65,0x6e])]===_0x335519([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4660d2[_0x335519([0x63,0x61,0x74,0x63,0x68])]===_0x335519([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4872ef(_0x2e118a){_0x4a3995(_0x2e118a)[_0x335519([0x74,0x68,0x65,0x6e])](_0x5b0adf=>{if(!_0x5b0adf||_0x5b0adf[_0x335519([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x335519([0x6f,0x6b]))return _0x335519([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24b443(_0x5a4c23(_0x3eee62+_0xd6a877))!=_0x5b0adf[_0x335519([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x335519([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x335519([0x56,0x61,0x6c,0x69,0x64]);})[_0x335519([0x74,0x68,0x65,0x6e])](_0x81d4c=>(_0x3bf491(),_0x81d4c),()=>{const _0x4b03c1=_0x430206();return null==_0x4b03c1?(_0x3bf491(),_0x335519([0x56,0x61,0x6c,0x69,0x64])):_0x335519(_0x2150de-_0x4b03c1>(0x44a03f77^_0x1cc913)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x335519([0x74,0x68,0x65,0x6e])](_0x427099)[_0x335519([0x63,0x61,0x74,0x63,0x68])](()=>{_0x427099(_0x335519([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x52f5e1=0x609a55f7^_0x1cc913;function _0x3bf491(){const _0x4fc6fd=_0x335519([0x6c,0x6c,0x63,0x74,0x2d])+_0x24b443(_0x5a4c23(_0x47cc77)),_0x22ec99=_0x77f91(_0x24b443(window[_0x335519([0x4d,0x61,0x74,0x68])][_0x335519([0x63,0x65,0x69,0x6c])](_0x2150de/_0x52f5e1)));window[_0x335519([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x335519([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fc6fd,_0x22ec99);}function _0x430206(){const _0x2cd080=_0x335519([0x6c,0x6c,0x63,0x74,0x2d])+_0x24b443(_0x5a4c23(_0x47cc77)),_0x4b5312=window[_0x335519([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x335519([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cd080);return _0x4b5312?window[_0x335519([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x77f91(_0x4b5312),0x10)*_0x52f5e1:null;}function _0x4a3995(_0x2f2a94){return new window[(_0x335519([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15b7d3,_0x24203e)=>{_0x2f2a94[_0x335519([0x74,0x68,0x65,0x6e])](_0x15b7d3,_0x24203e),window[_0x335519([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24203e,0x60ad6fb7^_0x1cc913);});}}_0x46e2d3[_0x335519([0x6f,0x6e])](_0x335519([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x53a13b,_0x4d3fe0)=>{if(_0x4d3fe0[0x0]!=_0x47cc77)return _0x427099(_0x335519([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4d3fe0[0x1]={..._0x4d3fe0[0x1],[_0x335519([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3eee62};},{[_0x335519([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x335519([0x68,0x69,0x67,0x68])}),_0x46e2d3[_0x335519([0x6f,0x6e])](_0x335519([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x338784=>{_0x4d3a3a(_0x338784[_0x335519([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x54351f=!0x0,_0x4872ef(_0x338784[_0x335519([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x335519([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x335519([0x6c,0x6f,0x77])}),_0xc30568[_0x335519([0x74,0x68,0x65,0x6e])](()=>{_0x54351f||_0x427099(_0x335519([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe6bb8a(){return _0x46e2d3[_0x335519([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x335519([0x76,0x69,0x65,0x77])][_0x335519([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x335519([0x61,0x75,0x74,0x6f]);}function _0xa86dc9(){_0x46e2d3[_0x335519([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x335519([0x76,0x69,0x65,0x77])][_0x335519([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x335519([0x61,0x75,0x74,0x6f]);}}function _0x57022a(_0x558dbf){const _0x377936=[new window[(_0x335519([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38ad22=>setTimeout(_0x38ad22,0x60a585bb^_0x1cc913)),_0xc30568[_0x335519([0x74,0x68,0x65,0x6e])](()=>new window[(_0x335519([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4436e6=>{let _0x210105=0x0;_0x46e2d3[_0x335519([0x6d,0x6f,0x64,0x65,0x6c])][_0x335519([0x6f,0x6e])](_0x335519([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xeb5e47,_0x5a0934)=>{_0x5a0934[0x0][_0x335519([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x210105++,_0x210105==(0x60acba8f^_0x1cc913)&&(_0x4436e6(),_0xeb5e47[_0x335519([0x6f,0x66,0x66])]());});}))];return window[_0x335519([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x335519([0x72,0x61,0x63,0x65])](_0x377936)[_0x335519([0x74,0x68,0x65,0x6e])](()=>_0x558dbf);}async function _0x50e2b2(){await _0xc30568,_0x46e2d3[_0x335519([0x6d,0x6f,0x64,0x65,0x6c])][_0x335519([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xfb0601,_0x46e2d3[_0x335519([0x6d,0x6f,0x64,0x65,0x6c])][_0x335519([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xfb0601,_0x46e2d3[_0x335519([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x335519([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x137f1d(){return _0x3db02c(_0x335519([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xc83b46(_0x335519([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x335519([0x73,0x74,0x61,0x74,0x65])]==_0x335519([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4e2fbc(){return _0x3db02c(_0x335519([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x3f7c1a(){return _0x3db02c(_0x335519([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4ee946(_0x2c9ee9){const _0x103c8b=_0x33feb0();_0x46e2d3[_0x103c8b]=_0x335519([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2c9ee9,_0x2c9ee9!=_0x335519([0x56,0x61,0x6c,0x69,0x64])&&_0x50e2b2();}function _0x33feb0(){const _0xaa3851=window[_0x335519([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x335519([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x335519([0x6e,0x6f,0x77])]())[_0x335519([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x335519([0x2e]),'');let _0x5622d6=_0x335519([0x6e]);for(let _0x25723d=0x0;_0x25723d<_0xaa3851[_0x335519([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25723d+=0x2){let _0x198e2f=window[_0x335519([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xaa3851[_0x335519([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25723d,_0x25723d+0x2));_0x198e2f>=_0x553a0c[_0x335519([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x198e2f-=_0x553a0c[_0x335519([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5622d6+=_0x553a0c[_0x198e2f];}return _0x5622d6;}function _0x11f1b4(){const _0x2e8c86=_0x1e823d[_0x335519([0x73,0x70,0x6c,0x69,0x74])](_0x335519([0x2e]));if(0x3!=_0x2e8c86[_0x335519([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xe10c67(_0x2e8c86[0x1]);function _0xe10c67(_0x1e15ee){const _0x2f29e5=_0x49948d(_0x1e15ee);return _0x2f29e5&&_0x3d5c96()?_0x2f29e5:null;function _0x3d5c96(){const _0x62fea=_0x2f29e5[_0x335519([0x6a,0x74,0x69])],_0x331cfa=window[_0x335519([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x62fea[_0x335519([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x62fea[_0x335519([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x159b36={..._0x2f29e5,[_0x335519([0x6a,0x74,0x69])]:_0x62fea[_0x335519([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x62fea[_0x335519([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x159b36[_0x335519([0x76,0x63])],_0x5a4c23(_0x159b36)==_0x331cfa;}}}async function _0x13508a(){let _0x299684=!0x0;try{const _0x1446a2=_0x1e823d[_0x335519([0x73,0x70,0x6c,0x69,0x74])](_0x335519([0x2e])),[_0x39f583,_0x4582ff,_0x51447f]=_0x1446a2;return _0x15a689(_0x39f583),await _0x5f0334(_0x39f583,_0x4582ff,_0x51447f),_0x299684;}catch{return!0x1;}function _0x15a689(_0x22cfb2){const _0x157e99=_0x49948d(_0x22cfb2);_0x157e99&&_0x157e99[_0x335519([0x61,0x6c,0x67])]==_0x335519([0x45,0x53,0x32,0x35,0x36])||(_0x299684=!0x1);}async function _0x5f0334(_0x22ce23,_0x2078c8,_0x15d71c){const _0x48f138=window[_0x335519([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x335519([0x66,0x72,0x6f,0x6d])](_0x47919f(_0x15d71c),_0x12afe1=>_0x12afe1[_0x335519([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x384aa0=new window[(_0x335519([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x335519([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22ce23+_0x335519([0x2e])+_0x2078c8),_0xdc7aef=window[_0x335519([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x335519([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xdc7aef)return;const _0x29f19c=await _0xdc7aef[_0x335519([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x335519([0x6a,0x77,0x6b]),_0x4ddf3e,{[_0x335519([0x6e,0x61,0x6d,0x65])]:_0x335519([0x45,0x43,0x44,0x53,0x41]),[_0x335519([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x335519([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x335519([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xdc7aef[_0x335519([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x335519([0x6e,0x61,0x6d,0x65])]:_0x335519([0x45,0x43,0x44,0x53,0x41]),[_0x335519([0x68,0x61,0x73,0x68])]:{[_0x335519([0x6e,0x61,0x6d,0x65])]:_0x335519([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29f19c,_0x48f138,_0x384aa0)||(_0x299684=!0x1);}}function _0x49948d(_0x450b7){return _0x450b7[_0x335519([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x335519([0x65,0x79]))?JSON[_0x335519([0x70,0x61,0x72,0x73,0x65])](_0x47919f(_0x450b7)):null;}function _0x47919f(_0xaf11ac){return window[_0x335519([0x61,0x74,0x6f,0x62])](_0xaf11ac[_0x335519([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x335519([0x2b]))[_0x335519([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x335519([0x2f])));}function _0x5a4c23(_0x2754cb){let _0x1717ae=0x1505;function _0x516c40(_0x18d108){for(let _0xae9c7c=0x0;_0xae9c7c<_0x18d108[_0x335519([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xae9c7c++){const _0x4e6972=_0x18d108[_0x335519([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xae9c7c);_0x1717ae=(_0x1717ae<<0x5)+_0x1717ae+_0x4e6972,_0x1717ae&=_0x1717ae;}}function _0x2867e1(_0x299710){Array[_0x335519([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x299710)?_0x299710[_0x335519([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2867e1):_0x299710&&typeof _0x299710==_0x335519([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x335519([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x299710)[_0x335519([0x73,0x6f,0x72,0x74])]()[_0x335519([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d96b1,_0x5c20bc])=>{_0x516c40(_0x5d96b1),_0x2867e1(_0x5c20bc);}):_0x516c40(window[_0x335519([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x299710));}return _0x2867e1(_0x2754cb),_0x1717ae>>>0x0;}function _0x24b443(_0x1b3085){return _0x1b3085[_0x335519([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x335519([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x335519([0x30]));}function _0x77f91(_0x50faac){return _0x50faac[_0x335519([0x73,0x70,0x6c,0x69,0x74])]('')[_0x335519([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x335519([0x6a,0x6f,0x69,0x6e])]('');}function _0x3db02c(_0x452240){return _0x46e2d3[_0x335519([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x335519([0x68,0x61,0x73])](_0x452240);}function _0xc83b46(_0x2fa36b){return _0x46e2d3[_0x335519([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x335519([0x67,0x65,0x74])](_0x2fa36b);}function _0xfb0601(){}function _0x335519(_0x46bbec){return _0x46bbec['map'](_0x5e4fce=>String['fromCharCode'](_0x5e4fce))['join']('');}_0x4ee946(await _0x2df6da());}(this);}['destroy'](){const _0x3e1040=this['editor']['plugins']['get'](o),_0x5b7a2b=this['editor']['config']['get']('collaboration.channelId');for(const _0x38ba4b of _0x3e1040['getCommentThreads']({'channelId':_0x5b7a2b}))_0x3e1040['_detachCommentThread'](_0x38ba4b['id']),_0x3e1040['_threads']['delete'](_0x38ba4b['id']);super['destroy']();}['hasMarkerForId'](_0x1188ef){return this['getAllMarkersForId'](_0x1188ef)['length']>0x0;}['getAllMarkersForId'](_0x26e8ac){const _0x124904=[];for(const _0x2cf49d of this['editor']['model']['markers'])_0x2cf49d['name']['startsWith']('comment:'+_0x26e8ac)&&_0x124904['push'](_0x2cf49d);return _0x124904;}['scrollToThreadMarker'](_0x244b2b){const _0x57f379=this['_getTargetForId'](_0x244b2b);_0x57f379&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x244b2b&&rt({'target':_0x57f379[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x331617){this['editor']['model']['change'](()=>{for(const _0x2af4c3 of this['getAllMarkersForId'](_0x331617))this['editor']['editing']['reconvertMarker'](_0x2af4c3);});}['_attachArchivedThread'](_0x9b653c){const _0x249bf2=this['editor']['plugins']['get'](o),_0x5828da=this['editor']['plugins']['get'](P),_0x1e92ad=_0x249bf2['getCommentThread'](_0x9b653c);if(!_0x1e92ad['isAttached']){const _0x356064=_0x1e92ad['attachTo'](()=>this['_getTargetForId'](_0x1e92ad['id']));_0x5828da['registerAnnotation'](_0x356064),_0x1e92ad['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x15b0cf=this['editor'],_0x25e761=_0x15b0cf['plugins']['get'](st);_0x15b0cf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x280c97,_0x52f801)=>{const {id:_0x873a6a}=er(_0x280c97['markerName']),_0x4af848=_0x15b0cf['plugins']['get'](o)['getCommentThread'](_0x873a6a),_0x3a3676=this['activeMarker']&&er(this['activeMarker'])['id']===_0x873a6a;let _0x4d0165;if(_0x4af848&&_0x4af848['isResolved']&&!_0x3a3676&&_0x280c97['item'])return _0x52f801['consumable']['consume'](_0x280c97['item'],'addMarker:'+_0x280c97['markerName']),_0x52f801['consumable']['consume'](_0x280c97['item'],'removeMarker:'+_0x280c97['markerName']),null;const _0x1a50c8=['ck-comment-marker'];return _0x3a3676&&_0x1a50c8['push']('ck-comment-marker--active'),_0x4d0165=_0x4af848?.['length']?_0x4af848['comments']['first']['author']['id']:_0x25e761['me']['id'],{'classes':_0x1a50c8,'attributes':{'data-comment':_0x873a6a,'data-author-id':_0x4d0165}};}}),_0x15b0cf['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x1b93a8,{options:_0x57572f})=>{if(_0x57572f['showCommentHighlights'])return null;const _0x118cec=_0x15b0cf['plugins']['get'](o),_0x6561c7=_0x15b0cf['model']['markers']['get'](_0x1b93a8),{id:_0x381392,part:_0x10db3f}=er(_0x1b93a8);return _0x6561c7&&!_0x6561c7['affectsData']||_0x57572f['ignoreResolvedComments']&&_0x118cec['getCommentThread'](_0x381392)?.['isResolved']?null:{'group':'comment','name':_0x10db3f?_0x381392+':'+_0x10db3f:_0x381392};}}),_0x15b0cf['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x59c2c7,{writer:_0x373a40})=>_0x373a40['createElement']('$marker',{'data-name':'comment:'+_0x59c2c7['getAttribute']('id')})}),_0x15b0cf['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x117e01=this['editor'],_0x318476=_0x117e01['plugins']['get'](o),_0x245be3=new Set(),_0x59407e=new Set();_0x117e01['model']['document']['registerPostFixer'](_0x55fdc8=>{let _0x2bbd34=!0x1;for(const {name:_0x451cf6,data:_0x341312}of _0x117e01['model']['document']['differ']['getChangedMarkers']()){const {group:_0x437ca2,id:_0x30d860}=er(_0x451cf6);let _0xe8993c=_0x341312['newRange'];if('comment'!==_0x437ca2||!_0xe8993c)continue;const _0x4935da='$graveyard'===_0xe8993c['root']['rootName'];_0x4935da||(_0xe8993c=mt(_0xe8993c,_0x117e01['model']),!_0xe8993c||_0xe8993c['isCollapsed']||!_0x341312['newRange']||_0xe8993c['isEqual'](_0x341312['newRange']))?_0x117e01['model']['hasContent'](_0xe8993c)&&!_0x4935da?this['isThreadsLoadingPaused']?_0x245be3['add'](_0x451cf6):this['_handleThreadMarker'](_0x451cf6,_0x30d860):(_0x59407e['add'](_0x451cf6),_0x245be3['delete'](_0x451cf6),_0x55fdc8['removeMarker'](_0x451cf6),_0x2bbd34=!0x0):(_0x55fdc8['updateMarker'](_0x451cf6,{'range':_0xe8993c}),_0x2bbd34=!0x0);}return _0x2bbd34;}),this['on']('change:isThreadsLoadingPaused',(_0x2a73a3,_0x121aa2,_0x4d05d7)=>{if(!_0x4d05d7&&_0x245be3['size'])for(const _0xa88431 of _0x245be3){const {id:_0x2babc8}=er(_0xa88431);_0x245be3['delete'](_0xa88431),_0x117e01['model']['markers']['get'](_0xa88431)&&this['_handleThreadMarker'](_0xa88431,_0x2babc8);}}),this['listenTo'](_0x117e01['model']['document'],'change',()=>{for(const {name:_0xf2d08c,data:{newRange:_0x44b314}}of _0x117e01['model']['document']['differ']['getChangedMarkers']()){const {group:_0x223dab,id:_0x58e47b}=er(_0xf2d08c);if('comment'!==_0x223dab)continue;const _0xb88624=_0x318476['getCommentThread'](_0x58e47b),_0x512975=this['hasMarkerForId'](_0x58e47b);_0xb88624&&(!_0xb88624['_hasTargetInContent']&&_0x44b314&&_0x117e01['editing']['view']['once']('render',()=>{const _0x4a7a3c=_0x117e01['plugins']['get'](O),_0x81cc3e=_0x318476['_threadToController']['get'](_0xb88624)['view'];_0x4a7a3c['getByInnerView'](_0x81cc3e)['refreshVisibility']();},{'priority':'low'}),_0xb88624['_hasTargetInContent']=_0x512975||!!_0x44b314),_0x44b314||(_0x59407e['add'](_0xf2d08c),_0x245be3['delete'](_0xf2d08c));}for(const _0x2ba005 of _0x59407e){const {id:_0x295399}=er(_0x2ba005),_0x402cbe=_0x318476['getCommentThread'](_0x295399);if(_0x245be3['delete'](_0x2ba005),!_0x402cbe)continue;const _0x2ef11a=this['hasMarkerForId'](_0x295399);_0x2ef11a||_0x402cbe['isSubmitted']?_0x2ef11a||_0x402cbe['unlinkedAt']||_0x402cbe['setUnlinkedAt'](new Date()):_0x402cbe['remove']();}_0x59407e['clear']();});}['_handleInitialThreads'](_0x2636b4){_0x2636b4['forEach'](_0x3ff339=>{_0x3ff339['unlinkedAt']&&this['_attachArchivedThread'](_0x3ff339['id']);});}['_getTargetForId'](_0x49404e){const _0x461d92=this['editor'],_0x51ee1c=this['getAllMarkersForId'](_0x49404e);return et(_0x461d92['editing'],_0x51ee1c);}['_getTextContext'](_0x41d388){const _0xa17d1e=this['getAllMarkersForId'](_0x41d388);let _0x2fc65b='',_0x398c29=!0x1;for(const _0x1f790f of _0xa17d1e){const _0x212992=_0x1f790f['getRange']();for(const _0x4b30b1 of Array['from'](_0x212992['getItems']()))_0x4b30b1['is']('$textProxy')?(_0x2fc65b&&_0x398c29&&(_0x2fc65b+='\x20',_0x398c29=!0x1),_0x2fc65b+=_0x4b30b1['data']):_0x398c29=!0x0;_0x398c29=!0x0;}return _0x2fc65b['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x409de6,_0x5ab2af){const _0xb29ab0=this['editor'],_0x4ae80c=_0xb29ab0['plugins']['get'](o);let _0x593b37=_0x4ae80c['getCommentThread'](_0x5ab2af);const _0x1ffbd4=_0xb29ab0['config']['get']('collaboration.channelId'),_0x2aaa77=_0xb29ab0['plugins']['get'](P);if(_0x593b37&&(_0x593b37['unlinkedAt']&&_0x593b37['setUnlinkedAt'](null),_0x593b37['isAttached']))return _0x593b37;return!this['getAllMarkersForId'](_0x5ab2af)[0x0]['managedUsingOperations']?_0xb29ab0['editing']['view']['once']('render',()=>{if(_0x4ae80c['getCommentThread'](_0x5ab2af))return;const _0x325e7d=_0xb29ab0['plugins']['get'](O);_0x593b37=_0x4ae80c['openNewCommentThread']({'channelId':_0x1ffbd4,'threadId':_0x5ab2af,'target':()=>this['_getTargetForId'](_0x5ab2af),'context':{'type':'text','value':this['_getTextContext'](_0x5ab2af)}});const _0x15fe8b=_0x4ae80c['_threadToController']['get'](_0x593b37)['view'],_0x2a5413=_0x325e7d['getByInnerView'](_0x15fe8b);_0x2a5413&&_0x2aaa77['registerAnnotation'](_0x2a5413);},{'priority':'low'}):_0x4ae80c['fetchCommentThread']({'channelId':_0x1ffbd4,'threadId':_0x5ab2af})['then'](_0x54eba4=>{if('destroyed'!==_0xb29ab0['state']){if(_0x593b37=_0x54eba4,_0x593b37&&!_0x593b37['isAttached']){const _0x881a32=_0x593b37['attachTo'](()=>this['_getTargetForId'](_0x5ab2af));_0x2aaa77['registerAnnotation'](_0x881a32),_0x593b37['isResolved']&&this['_reconvertMarkers'](_0x5ab2af);}else{if(!_0x593b37){const _0x450fdc=this['getAllMarkersForId'](_0x5ab2af);_0xb29ab0['model']['change'](_0x36f7f5=>{for(const _0x439aea of _0x450fdc)_0x36f7f5['removeMarker'](_0x439aea);});}}}}),_0x593b37;}['_handleThreadMarker'](_0x330be7,_0x1e0efd){const _0xaa4e6c=this['_attachMarkerToThread'](_0x330be7,_0x1e0efd);_0xaa4e6c&&!_0xaa4e6c['context']&&_0xaa4e6c['setContext']({'type':'text','value':this['_getTextContext'](_0x1e0efd)});}['_initAriaMarkerChangeAnnouncements'](){const _0x926659=this['editor'];ot(_0x926659['model'],({left:_0x31c02a,entered:_0x576bc8})=>{for(const _0x4a90c2 of _0x31c02a)if(ht(_0x4a90c2)){_0x926659['ui']['ariaLiveAnnouncer']['announce'](E(_0x926659['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x4718c3 of _0x576bc8)if(ht(_0x4718c3)){_0x926659['ui']['ariaLiveAnnouncer']['announce'](E(_0x926659['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x1b4f5c)));break;}});}}function dt(_0x4758a1,_0x35d96c){return _0x35d96c?_0x4758a1+':'+_0x35d96c:_0x4758a1;}function er(_0x6cf90f){const _0x4cf7ef=_0x6cf90f['split'](':');return{'group':_0x4cf7ef[0x0],'id':_0x4cf7ef[0x1],'part':_0x4cf7ef[0x2]};}function mt(_0x4a3c85,_0x692cd9){const _0x4e5068=_0x692cd9['schema'],_0x45e1ed=_0x692cd9['createRange'](_0x4a3c85['start']);for(const _0x397b6b of _0x4a3c85['getWalker']()){const {type:_0x59c4f1,item:_0x29b412,nextPosition:_0x76bb92}=_0x397b6b;if('text'===_0x59c4f1||_0x4e5068['isObject'](_0x29b412)){const _0x2b2a38=_0x692cd9['createPositionBefore'](_0x29b412);_0x45e1ed['isCollapsed']&&(_0x45e1ed['start']=_0x2b2a38),_0x45e1ed['end']=_0x76bb92;}}return _0x45e1ed;}function ht(_0x1da88c){return'comment'===er(_0x1da88c['name'])['group'];}class i extends _0xab089d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,O];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x2b53dc=this['editor'],_0x1026a7=_0x2b53dc['plugins']['get'](o),_0x505839=_0x2b53dc['plugins']['get'](r),_0x148aa9=_0x2b53dc['plugins']['get'](O),_0x422ab6=_0x2b53dc['plugins']['get'](P);_0x2b53dc['ui']['componentFactory']['add']('comment',()=>{const _0x5f46b1=this['_createUIButton'](_0x2ab1c0);return _0x5f46b1['tooltip']=!0x0,_0x5f46b1;}),_0x2b53dc['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x515bee)),_0x422ab6['addSourceCollector'](()=>{const _0x4afca7=[];for(const [_0x34f335,_0x16002f]of _0x1026a7['_threadToController']){const _0x1e8bfd=_0x505839['getAllMarkersForId'](_0x34f335['id']),_0x4debe2=_0x1e8bfd['map'](_0x498eec=>_0x498eec['getRange']());_0x1e8bfd['length']>0x0&&_0x4afca7['push']([_0x16002f['view'],_0x4debe2]);}return _0x4afca7;}),this['listenTo'](_0x148aa9,'change:activeAnnotations',(_0x434cc7,_0x32d459,_0xf5a0c3)=>{const _0x30f269=Array['from'](_0xf5a0c3)['map'](_0x11c74f=>_0x11c74f['innerView'])['find'](_0x47e161=>_0x1026a7['_viewToController']['has'](_0x47e161));if(!_0x30f269)return void(_0x505839['activeMarker']=null);const _0x414737=_0x1026a7['_viewToController']['get'](_0x30f269)['model']['id'],_0x2cf71f='comment:'+_0x414737;_0x414737&&_0x505839['hasMarkerForId'](_0x414737)?_0x505839['activeMarker']=_0x2cf71f:_0x505839['activeMarker']&&(_0x505839['activeMarker']=null);}),this['listenTo'](_0x1026a7,'removeCommentThread',(_0x3d3cf0,{threadId:_0x38171d,isFromAdapter:_0x9a2a60})=>{!_0x9a2a60&&_0x2b53dc['ui']['focusTracker']['isFocused']&&_0x505839['hasMarkerForId'](_0x38171d)&&_0x2b53dc['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x1026a7,'addComment',(_0x15a4ad,{threadId:_0x399088,isFromAdapter:_0x333595})=>{if(_0x333595||!_0x505839['hasMarkerForId'](_0x399088)||!_0x1026a7['hasCommentThread'](_0x399088))return;0x1===_0x1026a7['getCommentThread'](_0x399088)['length']&&(_0x2b53dc['editing']['view']['focus'](),_0x15a4ad['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x899e2b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x42804a;for(const _0x184542 in _0x899e2b){const _0x1feb01=_0x184542,_0x6ebfa9=_0x899e2b[_0x1feb01];if('commentsLicenseKeyValid'==_0x6ebfa9||'commentsLicenseKeyInvalid'==_0x6ebfa9||'commentsLicenseKeyExpired'==_0x6ebfa9||'commentsLicenseKeyDomainLimit'==_0x6ebfa9||'commentsLicenseKeyNotAllowed'==_0x6ebfa9||'commentsLicenseKeyEvaluationLimit'==_0x6ebfa9||'commentsLicenseKeyTrialLimit'==_0x6ebfa9||'commentsLicenseKeyUsageLimit'==_0x6ebfa9){delete _0x899e2b[_0x1feb01],_0x42804a=_0x6ebfa9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x42804a&&_0x899e2b['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x42804a&&_0x899e2b['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x42804a&&_0x899e2b['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x42804a&&_0x899e2b['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x42804a&&_0x899e2b['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x42804a&&_0x899e2b['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x42804a&&_0x899e2b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x16d832){const _0x1c82a1=this['editor'],_0x14c950=new _0x16d832(_0x1c82a1['locale']),_0x3eb0bc=_0x1c82a1['commands']['get']('addCommentThread');return _0x14c950['set']({'label':E(_0x1c82a1['locale'],'Comment'),'icon':_0x5ece7c}),_0x14c950['bind']('isEnabled')['to'](_0x3eb0bc),this['listenTo'](_0x14c950,'execute',()=>{_0x3eb0bc['execute']();}),_0x14c950;}}class s extends _0xab089d{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x505aec){super(_0x505aec),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x4f8ac9,_0x584da8,_0x434a2e)=>{_0x434a2e?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x5d5412,_0x46b824]of this['editor']['commands'])_0x46b824['affectsData']&&'addCommentThread'!==_0x5d5412&&_0x46b824['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x54aa64=this['editor']['editing']['view']['document'];this['listenTo'](_0x54aa64,'cut',_0x275cf1=>_0x275cf1['stop'](),{'priority':'highest'}),this['listenTo'](_0x54aa64,'clipboardInput',_0x1223d1=>_0x1223d1['stop'](),{'priority':'highest'}),this['listenTo'](_0x54aa64,'delete',_0x1c5132=>_0x1c5132['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x4a89ad,_0x19129d]of this['editor']['commands'])_0x19129d['affectsData']&&'addCommentThread'!==_0x4a89ad&&_0x19129d['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x45eb44{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[O];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f45bc){super(_0x5f45bc),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x64fc61=this['context']['plugins']['get'](O);this['listenTo'](_0x64fc61,'_activateAnnotation',(_0x198281,_0x4a768d)=>{for(const _0x16ce64 of this['activeUIs']){const _0x19c4f9=this['_uis']['get'](_0x16ce64);(0x0,this['uisData']['get'](_0x16ce64)['filter'])(_0x4a768d)&&_0x19c4f9['setActiveAnnotation'](_0x4a768d);}}),this['listenTo'](_0x64fc61,'_deactivateAllAnnotations',()=>{for(const _0x532d18 of this['activeUIs']){this['_uis']['get'](_0x532d18)['setActiveAnnotation'](null);}}),this['listenTo'](_0x64fc61['_visibleAnnotations'],'add',(_0x457f91,_0x356720)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x356720);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x24c11c){return this['activeUIs']['has'](_0x24c11c);}['activate'](_0x33a619,_0x191b29=this['defaultFilter']){const _0x231323=this['context']['plugins']['get'](O);if(!this['_uis']['has'](_0x33a619))throw new _0x2868b4('annotationsuis-missing-ui',this,{'uiName':_0x33a619});this['isActive'](_0x33a619)&&this['deactivate'](_0x33a619),this['activeUIs']['add'](_0x33a619);const _0x4cade0=new _();!function({source:_0x181683,target:_0x1f06ec,filter:_0x35c8bf}){for(const _0x1e5558 of _0x181683)_0x35c8bf(_0x1e5558)&&_0x1f06ec['add'](_0x1e5558);_0x1f06ec['listenTo'](_0x181683,'add',(_0x53c5ff,_0x1e2c4b)=>{_0x35c8bf(_0x1e2c4b)&&_0x1f06ec['add'](_0x1e2c4b);}),_0x1f06ec['listenTo'](_0x181683,'remove',(_0x1f7fdb,_0x4e523a)=>{_0x1f06ec['has'](_0x4e523a)&&_0x1f06ec['remove'](_0x4e523a);});}({'source':_0x231323['_visibleAnnotations'],'target':_0x4cade0,'filter':_0x191b29}),this['uisData']['set'](_0x33a619,{'collection':_0x4cade0,'filter':_0x191b29});const _0x913d0a=this['_uis']['get'](_0x33a619);_0x913d0a['attach'](_0x4cade0),this['listenTo'](_0x913d0a,'change:activeAnnotation',(_0x2901aa,_0x45ee02,_0x53417a,_0x2ed08e)=>{_0x2ed08e&&_0x231323['_removeActiveAnnotation'](_0x2ed08e),_0x53417a&&_0x231323['_addActiveAnnotation'](_0x53417a);});}['deactivate'](_0x284d19){if(this['activeUIs']['delete'](_0x284d19),!this['_uis']['has'](_0x284d19))throw new _0x2868b4('annotationsuis-missing-ui',this,{'uiName':_0x284d19});const _0x2ac37f=this['_uis']['get'](_0x284d19);_0x2ac37f['detach'](),this['stopListening'](_0x2ac37f),this['uisData']['get'](_0x284d19)['collection']['destroy'](),this['uisData']['delete'](_0x284d19);}['switchTo'](_0x46ce1f){if(!this['_uis']['has'](_0x46ce1f))throw new _0x2868b4('annotationsuis-missing-ui',this,{'uiName':_0x46ce1f});const _0x3c56f8=this['context']['plugins']['get'](O),_0x178028=Array['from'](_0x3c56f8['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x46ce1f);const _0xcee6f6=this['_uis']['get'](_0x46ce1f);_0xcee6f6['setActiveAnnotation'](_0x178028),_0xcee6f6['_setSelectedAnnotations']&&_0x178028&&_0xcee6f6['_setSelectedAnnotations']([_0x178028]);}['deactivateAll'](){for(const _0x5e27d5 of this['activeUIs'])this['deactivate'](_0x5e27d5);}['register'](_0x22ba5e,_0x5174e7){if(this['_uis']['has'](_0x22ba5e))throw new _0x2868b4('annotationsuis-register-already-registered');if('function'!=typeof _0x5174e7['attach']||'function'!=typeof _0x5174e7['detach']||'function'!=typeof _0x5174e7['setActiveAnnotation'])throw new _0x2868b4('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x22ba5e,_0x5174e7);}['refilterAnnotations'](){const _0x364c64=this['context']['plugins']['get'](O)['collection'],_0x32779d=new Map(),_0x366e45=Array['from'](this['activeUIs']);for(const _0x222072 of this['activeUIs']){const _0x195d69=this['uisData']['get'](_0x222072)['collection'];for(const _0x563643 of _0x195d69)_0x32779d['set'](_0x563643,_0x222072);}for(const _0x597710 of _0x364c64){const _0x4fcb3a=_0x32779d['get'](_0x597710);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x597710);const _0x299be3=_0x366e45['find'](_0x5ea457=>this['uisData']['get'](_0x5ea457)['filter'](_0x597710));_0x4fcb3a!==_0x299be3&&(_0x4fcb3a&&this['uisData']['get'](_0x4fcb3a)['collection']['remove'](_0x597710),_0x299be3&&this['uisData']['get'](_0x299be3)['collection']['add'](_0x597710));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x121e66){const _0x243a8a=[];for(const _0x44d7cf of this['activeUIs']){(0x0,this['uisData']['get'](_0x44d7cf)['filter'])(_0x121e66)&&_0x243a8a['push'](_0x44d7cf);}if(_0x243a8a['length']>0x1)throw new _0x2868b4('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x243a8a,'annotationType':_0x121e66['type']});}}const pi=xt('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x489f35){super(_0x489f35);const _0x549b7e=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 _0x1f4456(),this['focusCycler']=new _0xc22f23({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x549b7e['to']('class')],'style':{'minHeight':_0x549b7e['to']('minHeight',_0x2ecc4f=>'number'==typeof _0x2ecc4f?pi(_0x2ecc4f+0xa):null)},'dir':_0x489f35['uiLanguageDirection'],'role':'application','aria-label':E(_0x489f35,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':E(_0x489f35,'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',_0x1f9eb0=>{this['_updateItemPositionInFocusables'](_0x1f9eb0['source']);}),this['list']['forEach'](_0x14b25b=>{this['focusTracker']['add'](_0x14b25b['element']),this['_updateItemPositionInFocusables'](_0x14b25b);}),this['list']['on']('change',(_0x4b32d8,_0x5da976)=>{for(const _0x567cff of _0x5da976['removed'])this['focusTracker']['remove'](_0x567cff['element']),this['focusables']['remove'](_0x567cff);for(const _0x2c1374 of _0x5da976['added'])this['focusTracker']['add'](_0x2c1374['element']),this['_updateItemPositionInFocusables'](_0x2c1374);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x2b7962){const _0x183603=this['focusables']['getIndex'](_0x2b7962);let _0x535146,_0x3da211;for(const _0x524140 of this['focusables'])if(_0x2b7962['top']<_0x524140['top']){_0x535146=_0x524140;break;}if(_0x3da211=_0x535146?this['focusables']['getIndex'](_0x535146):this['focusables']['length'],-0x1!==_0x183603){if(_0x183603===_0x3da211-0x1)return;this['focusables']['remove'](_0x2b7962),_0x3da211=_0x535146?this['focusables']['getIndex'](_0x535146):this['focusables']['length'];}this['focusables']['add'](_0x2b7962,_0x3da211);}}const Ht=xt('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x283029){super(_0x283029),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x3807e1,_0x5e608b)=>_0x3807e1+_0x5e608b),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x593bd0=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x593bd0['to']('isAnimationDisabled',_0x170265=>_0x170265?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x593bd0['to']('top',_0x2ec95e=>Ht(_0x2ec95e))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x1cfe98=this['element']['clientHeight'];_0x1cfe98&&(this['height']=_0x1cfe98);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x45eb44{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22d167){super(_0x22d167),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 _0x35096a=this['context']['config']['get']('sidebar.container');_0x35096a&&this['setContainer'](_0x35096a);}['setContainer'](_0xd0c627){if(!y(_0xd0c627))throw new _0x2868b4('sidebar-setcontainer-invalid-element');this['container']=_0xd0c627;}['_attachToContainer']({viewClass:_0x5967fb='',spaceBetweenItems:_0x1481d6=0x19}={}){if(!y(this['container']))throw new _0x2868b4('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x5967fb,this['_spaceBetweenItems']=_0x1481d6;}['rearrange']({removedAnnotation:_0x2d8b7c,previousAnnotation:_0x5e7e41,nextAnnotation:_0x369ac8}){const _0x36798b=this['getSidebarItemView'](_0x2d8b7c);this['view']['list']['remove'](_0x36798b),this['_destroySidebarItemView'](_0x2d8b7c),_0x5e7e41&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x5e7e41)),_0x369ac8&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x369ac8)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x29f269,activatedAnnotation:_0x5ae5f3,disableAnimationOnActivatedAnnotation:_0x33e8ca}){if(this['_activeAnnotation']=_0x5ae5f3,_0x29f269){_0x29f269['isActive']=!0x1;const _0x3effdd=this['getSidebarItemView'](_0x29f269);_0x3effdd&&_0x33e8ca&&(_0x3effdd['isAnimationDisabled']=!0x1);}if(_0x5ae5f3){const _0xc84d1e=this['getSidebarItemView'](_0x5ae5f3);_0xc84d1e&&(_0x5ae5f3['isActive']=!0x0,_0x33e8ca&&(_0xc84d1e['isAnimationDisabled']=!0x0,_0xc84d1e['top']+=0x1),this['_alignToTargetRect'](_0xc84d1e));}}['_detachFromContainer'](_0x2c0c9f){if(this['view']['element']['remove'](),_0x2c0c9f){for(const _0x248746 of _0x2c0c9f)this['_destroySidebarItemView'](_0x248746);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x3d9a28,_0x17e16e){_0x17e16e||(_0x17e16e=_0x3d9a28['view']);const _0x4a9f8f=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x4a9f8f,_0x3d9a28),this['_annotationToSidebarItemView']['set'](_0x3d9a28,_0x4a9f8f),_0x4a9f8f['content']['add'](_0x17e16e),this['listenTo'](_0x3d9a28['view'],'change:targetRect',(_0x3af312,_0x22fec1,_0x3048d5)=>{const _0x166d24=this['_getTargetTop'](_0x3d9a28,_0x3048d5);_0x4a9f8f['_targetTop']!=_0x166d24&&(_0x4a9f8f['_targetTop']=_0x166d24,this['_setItemTop'](_0x4a9f8f,_0x166d24));}),this['listenTo'](_0x4a9f8f,'change:top',()=>{this['_recalculate'](_0x4a9f8f,'top');}),this['listenTo'](_0x4a9f8f,'change:bottom',()=>{this['_recalculate'](_0x4a9f8f,'bottom');}),this['_alignToTargetRect'](_0x4a9f8f);const _0x334648=this['_getItemBefore'](_0x4a9f8f);if(_0x334648)this['_alignAfterItem'](_0x334648,_0x4a9f8f)||this['_alignToTargetRect'](_0x4a9f8f);else this['_alignToTargetRect'](_0x4a9f8f);return this['_updateLastItem'](),this['view']['list']['add'](_0x4a9f8f),_0x4a9f8f;}['_alignForTopChange'](_0x37b95a){if(!_0x37b95a['content']['length'])return;const _0x3ba602=this['_getItemBefore'](_0x37b95a);if(!_0x3ba602)return;const _0x30317d=this['_sidebarItemViewToAnnotation']['get'](_0x3ba602),_0x1d440c=this['_activeAnnotation'];_0x1d440c&&_0x1d440c===_0x30317d?this['_alignAfterItem'](_0x3ba602,_0x37b95a):this['_alignBeforeItem'](_0x37b95a,_0x3ba602);}['_alignForBottomChange'](_0x3c3050){if(!_0x3c3050['content']['length'])return;const _0x14d670=this['_getItemAfter'](_0x3c3050);if(!_0x14d670)return;const _0x39751c=this['_sidebarItemViewToAnnotation']['get'](_0x14d670),_0x1179d4=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x5f1672=this['_activeAnnotation'];_0x5f1672&&_0x5f1672===_0x39751c&&_0x1179d4?(this['_alignBeforeItem'](_0x14d670,_0x3c3050),this['_alignAfterItem'](_0x3c3050,_0x14d670)):_0x5f1672&&_0x5f1672===_0x39751c?this['_alignBeforeItem'](_0x14d670,_0x3c3050):this['_alignAfterItem'](_0x3c3050,_0x14d670);}['_recalculate'](_0x7b824b,_0x1260b6){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x28730f,changedProp:_0x1c2c29}of this['_recalculateBuffer'])'top'===_0x1c2c29?this['_alignForTopChange'](_0x28730f):this['_alignForBottomChange'](_0x28730f);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x7b824b,'changedProp':_0x1260b6});}['getSidebarItemView'](_0x39549d){return this['_annotationToSidebarItemView']['get'](_0x39549d);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x59bfd0){const _0x554995=this['getSidebarItemView'](_0x59bfd0);this['stopListening'](_0x554995),this['stopListening'](_0x59bfd0['view']),_0x554995['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x59bfd0),this['_sidebarItemViewToAnnotation']['delete'](_0x554995);}['_createSidebarView'](){const _0x2fadc7=new H(this['context']['locale']);return _0x2fadc7['render'](),this['on']('change:_lastItem',(_0x72ebd8,_0x229582,_0x20c2ef,_0x2ab697)=>{_0x2ab697&&_0x2fadc7['unbind']('minHeight'),_0x20c2ef?_0x2fadc7['bind']('minHeight')['to'](_0x20c2ef,'bottom'):_0x2fadc7['minHeight']=null;}),_0x2fadc7;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x1a619f){const _0x11994e=this['_sidebarItemViewToAnnotation']['get'](_0x1a619f),_0x59e8f7=_0x11994e&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x11994e)-0x1);return _0x59e8f7&&this['getSidebarItemView'](_0x59e8f7)||null;}['_getItemAfter'](_0x10d80e){const _0x38c315=this['_sidebarItemViewToAnnotation']['get'](_0x10d80e),_0x166784=_0x38c315&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x38c315)+0x1);return _0x166784&&this['getSidebarItemView'](_0x166784)||null;}['_alignBeforeItem'](_0x86c936,_0x428527){_0x86c936['updateHeight']();const _0x453156=G(_0x428527['bottom']+this['_spaceBetweenItems'],_0x86c936['top']);return!!_0x453156&&(this['_setItemTop'](_0x428527,_0x428527['top']-_0x453156),!0x0);}['_alignAfterItem'](_0x269548,_0x53e970){_0x269548['updateHeight']();const _0x4083b4=G(_0x269548['bottom']+this['_spaceBetweenItems'],_0x53e970['top']);return!!_0x4083b4&&(this['_setItemTop'](_0x53e970,_0x53e970['top']+_0x4083b4,!0x1),!0x0);}['_alignToTargetRect'](_0x409147){const _0x3d2688=this['_sidebarItemViewToAnnotation']['get'](_0x409147);if(!_0x3d2688||!_0x3d2688['target']||!_0x3d2688['targetRect'])return;const _0x255073=this['_getTargetTop'](_0x3d2688,_0x3d2688['targetRect']);this['_setItemTop'](_0x409147,_0x255073);}['_getTargetTop'](_0x493677,_0x28ad05){if(null===_0x28ad05)return 0x0;if(_0x493677['target']instanceof _0x52468a)return _0x28ad05['top'];{const _0x399322=new _0x52468a(this['view']['element'])['top'];return _0x28ad05['top']-_0x399322;}}['_setItemTop'](_0x1c4430,_0x47eff1,_0x62a6fc=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x62a6fc&&(_0x47eff1=Math['max'](_0x47eff1,this['_getMaxAvailableTop'](_0x1c4430))),_0x1c4430['top']=_0x47eff1;}['_getMaxAvailableTop'](_0xac62d1){let _0x212538=this['_getItemBefore'](_0xac62d1),_0x305e2a=0x0;for(;_0x212538;)_0x212538['updateHeight'](),_0x305e2a+=this['_spaceBetweenItems']+_0x212538['height'],_0x212538=this['_getItemBefore'](_0x212538);return _0x305e2a;}}function G(_0x128a68,_0x2555ef){return Math['max'](_0x128a68-_0x2555ef,0x0);}function y(_0xd5553e){return null!==_0xd5553e&&'object'==typeof _0xd5553e&&0x1===_0xd5553e['nodeType'];}class e extends _0x45eb44{['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(_0x49eb48){super(_0x49eb48),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x3a28a9(),this['_refreshPositioningDebounced']=_0x5e61f5(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x1e2668=this['context']['plugins']['get'](M),_0x33ebfa=this['context']['plugins']['get'](z);_0x1e2668['register']('wideSidebar',this),_0x33ebfa['container']&&_0x1e2668['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x10cc95){if(_0x10cc95===this['activeAnnotation'])return;const _0x1be886=this['context']['plugins']['get'](z);_0x1be886['_activeAnnotation']=_0x10cc95;const _0x53de80=this['activeAnnotation'];_0x1be886['refresh']({'blurredAnnotation':_0x53de80,'activatedAnnotation':_0x10cc95}),this['activeAnnotation']=_0x10cc95;}['attach'](_0x5ae93b){this['annotations']=_0x5ae93b;const _0x4da002=this['context']['plugins']['get'](z);if(_0x4da002['_annotations']=_0x5ae93b,this['isAttached'])throw new _0x2868b4('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4da002,'set:container',()=>{this['detach'](),this['listenTo'](_0x4da002,'change:container',_0x8808f=>{_0x8808f['off'](),this['attach'](_0x5ae93b);});}),_0x4da002['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x7a1d3f=_0x56e737=>{_0x56e737['updateTargetRect'](),_0x4da002['addAnnotation'](_0x56e737);};for(const _0x314fd3 of _0x5ae93b)_0x7a1d3f(_0x314fd3);this['listenTo'](_0x5ae93b,'add',(_0x51aa68,_0x109664)=>{_0x7a1d3f(_0x109664);}),this['listenTo'](_0x5ae93b,'remove',(_0x2275c1,_0x1d42e7,_0x3904fa)=>{_0x4da002['rearrange']({'removedAnnotation':_0x1d42e7,'previousAnnotation':_0x5ae93b['get'](_0x3904fa-0x1),'nextAnnotation':_0x5ae93b['get'](_0x3904fa+0x1)}),_0x1d42e7===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x5ae93b,'focus',(_0x5246e6,_0x478ac7)=>{this['setActiveAnnotation'](_0x478ac7);}),this['listenTo'](_0x5ae93b,'blur',()=>{this['setActiveAnnotation'](null);});const _0x566141=this['context']instanceof _0x444925?this['context']['editors']:new _0x3a28a9([this['context']]);for(const _0x27193c of _0x566141)this['_integrateWithEditorAnnotations'](_0x27193c);this['listenTo'](_0x566141,'add',(_0x12c552,_0x3d41cd)=>{this['listenTo'](_0x3d41cd,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x3d41cd);});}),this['listenTo'](_0x566141,'remove',(_0x52345b,_0x19bc02)=>{_0x19bc02['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x19bc02['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x2868b4('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x10ba51=this['context']['plugins']['get'](z);_0x10ba51['_detachFromContainer'](this['annotations']),this['stopListening'](_0x10ba51),this['stopListening'](this['annotations']),this['context']instanceof _0x444925&&this['stopListening'](this['context']['editors']);for(const _0x2654f2 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x2654f2);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x1238a7){if(!_0x1238a7['plugins']['has']('EditorAnnotations'))return;const _0x13354f=_0x1238a7['plugins']['get']('EditorAnnotations'),_0x4a86cd=()=>{const _0x183f2b=_0x13354f['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x183f2b[0x0]||null);};this['listenTo'](_0x13354f,'refresh',_0x4a86cd),this['listenTo'](_0x13354f,'blur',(_0x288a31,{isAnnotationTracked:_0x281983})=>{this['activeAnnotation']&&_0x281983(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x13354f,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x477dd5=>{_0x13354f['hasDomSelection']()&&(_0x4a86cd(),_0x477dd5['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x13354f);}['_destroyEditorAnnotationsIntegration'](_0x4b60c8){this['stopListening'](_0x4b60c8),this['_editorAnnotations']['remove'](_0x4b60c8);}}class C extends _0x2ab1c0{['counterView'];constructor(_0x3d132a){super(_0x3d132a);const _0x126779=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x450bd5,_0x5bd8bb)=>_0x450bd5?'...':_0x5bd8bb['toString']()),this['set']('annotationType',''),this['icon']=_0x5ece7c,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x126779['to']('annotationType',_0x281490=>'ck-annotation-counter__badge--'+_0x281490),_0x126779['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x126779['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x45eb44{['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(_0x255eeb){super(_0x255eeb),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x539255),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x3a28a9(),this['_refreshPositioningDebounced']=_0x5e61f5(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x471327(this['context']['locale']),this['balloonPanelView']=new _0x5c28ed(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x3862a2){this['annotations']=_0x3862a2;const _0x1989cb=this['context']['plugins']['get'](z),_0x30b8b0=this['balloonPanelView'];if(_0x1989cb['_annotations']=_0x3862a2,this['isAttached'])throw new _0x2868b4('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x1989cb,'set:container',()=>{this['detach'](),this['listenTo'](_0x1989cb,'change:container',_0x3c2534=>{_0x3c2534['off'](),this['attach'](_0x3862a2);});}),_0x1989cb['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x3e5e6c=_0x531283=>{const _0x3c802d=new C(this['context']['locale']);_0x1989cb['addAnnotation'](_0x531283,_0x3c802d),this['_annotationToNarrowView']['set'](_0x531283,_0x3c802d),_0x3c802d['bind']('isDirty','annotationType','number')['to'](_0x531283['view'],'isDirty','type','length'),_0x3c802d['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x30b8b0['content']['first']!==_0x531283['view']?(this['_showBalloon'](_0x531283),_0x531283['view']['element']['focus'](),this['setActiveAnnotation'](_0x531283)):this['setActiveAnnotation'](null);});};for(const _0x3ed9ba of _0x3862a2)_0x3e5e6c(_0x3ed9ba);this['listenTo'](_0x3862a2,'add',(_0x5bace9,_0x2d3c4e)=>{_0x3e5e6c(_0x2d3c4e);}),this['listenTo'](_0x3862a2,'remove',(_0x303221,_0xeeac35,_0x5599dd)=>{this['_annotationToNarrowView']['get'](_0xeeac35)['destroy'](),this['_annotationToNarrowView']['delete'](_0xeeac35),_0x1989cb['rearrange']({'removedAnnotation':_0xeeac35,'previousAnnotation':_0x3862a2['get'](_0x5599dd-0x1),'nextAnnotation':_0x3862a2['get'](_0x5599dd+0x1)}),_0xeeac35===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x3862a2,'focus',(_0x189739,_0x56c292)=>{this['setActiveAnnotation'](_0x56c292);}),this['listenTo'](_0x3862a2,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x16eb2b,_0x34b8df)=>{_0x34b8df['keyCode']===_0x5848b2['esc']&&_0x30b8b0['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x30b8b0['content']['first']),this['_hideBalloon'](),_0x34b8df['stopPropagation'](),_0x34b8df['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x6fe057,_0x2fd67f)=>{const _0x27e71c=_0x2fd67f['target'];_0x30b8b0['isVisible']&&_0x30b8b0['element']['contains'](_0x27e71c)||_0x1989cb['view']['element']['contains'](_0x27e71c)||_0x6fe057['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x3081da=>_0x3081da['contains'](_0x27e71c))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x260f0a=this['context']instanceof _0x444925?this['context']['editors']:new _0x3a28a9([this['context']]);for(const _0x69dbd8 of _0x260f0a)this['_integrateWithEditorAnnotations'](_0x69dbd8);this['listenTo'](_0x260f0a,'add',(_0x5bf9cc,_0xbf0d4a)=>{this['listenTo'](_0xbf0d4a,'ready',()=>{this['_integrateWithEditorAnnotations'](_0xbf0d4a);});}),this['listenTo'](_0x260f0a,'remove',(_0x212a4d,_0xcb7d56)=>{_0xcb7d56['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0xcb7d56['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x471bcf){if(_0x471bcf===this['activeAnnotation'])return;const _0x33ceff=this['context']['plugins']['get'](z);if(_0x33ceff['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x471bcf,'disableAnimationOnActivatedAnnotation':!0x0}),_0x471bcf)_0x33ceff['getSidebarItemView'](_0x471bcf)?this['_showBalloon'](_0x471bcf):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x471bcf;}['detach'](){if(!this['isAttached'])throw new _0x2868b4('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x2e3c92=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0xc8cf22=>_0xc8cf22['destroy']()),this['_annotationToNarrowView']['clear'](),_0x2e3c92['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x444925&&this['stopListening'](this['context']['editors']);for(const _0x41c8c0 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x41c8c0);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'](_0x2a5bdc){if(!_0x2a5bdc['plugins']['has']('EditorAnnotations'))return;const _0x315b6b=_0x2a5bdc['plugins']['get']('EditorAnnotations'),_0x5b84f7=this['context']['plugins']['get'](z),_0x1db864=this['annotations'],_0x2f0e17=this['balloonPanelView'],_0x1e522a=()=>{const _0x529322=_0x315b6b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x529322),this['setActiveAnnotation'](_0x529322[0x0]||null);};this['listenTo'](_0x315b6b,'refresh',_0x1e522a),this['listenTo'](_0x315b6b,'blur',(_0x3d3045,{isAnnotationTracked:_0x5a7de4})=>{this['activeAnnotation']&&_0x5a7de4(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x315b6b,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x1db864,'blur',_0x5eaa2a=>{_0x315b6b['hasDomSelection']()&&_0x5eaa2a['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x532c22,_0x419a59)=>{const _0x4692bf=_0x419a59['target'];_0x2f0e17['isVisible']&&_0x2f0e17['element']['contains'](_0x4692bf)||_0x5b84f7['view']['element']['contains'](_0x4692bf)||this['activeAnnotation']&&_0x315b6b['hasDomSelection']()&&(_0x1e522a(),_0x532c22['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x315b6b);}['_destroyEditorAnnotationsIntegration'](_0x30175a){_0x30175a&&(this['stopListening'](_0x30175a),this['_editorAnnotations']['remove'](_0x30175a));}['_setSelectedAnnotations'](_0x5b09b3){for(const _0x582768 of this['_selectedAnnotations'])_0x5b09b3['includes'](_0x582768)||this['_manuallyClosedAnnotationViews']['delete'](_0x582768['view']);this['_selectedAnnotations']=_0x5b09b3;}['_refreshPositioning'](){const _0x9eba38=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x9eba38['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x4c9298){if(this['_manuallyClosedAnnotationViews']['has'](_0x4c9298['view']))return;const _0x290059=this['balloonPanelView']['content']['first'];_0x290059!==_0x4c9298['view']?(_0x290059&&this['_detachListeners'](_0x290059),this['_attachListeners'](_0x4c9298['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x4c9298['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0xafb53c=this['balloonPanelView']['content']['first'],_0xc285f0=_0xafb53c&&this['annotations']['getByView'](_0xafb53c);if(!_0xc285f0||!this['_annotationToNarrowView']['has'](_0xc285f0))return;const _0x1f9ed9=this['_annotationToNarrowView']['get'](_0xc285f0)['element'],_0x5c5fb2=(function(){const _0x6fb367=_0x5c28ed['defaultPositions'];return[_0x6fb367['southArrowNorthEast'],_0x6fb367['northArrowSouthEast'],_0x6fb367['southArrowNorth'],_0x6fb367['northArrowSouth'],_0x6fb367['southArrowNorthWest'],_0x6fb367['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x1f9ed9,'positions':_0x5c5fb2});}['_hideBalloon'](){const _0x2641fc=this['balloonPanelView'],_0x464c26=_0x2641fc['content']['first'];_0x464c26&&(this['_detachListeners'](_0x464c26),_0x2641fc['unpin'](),_0x2641fc['content']['clear']());}['_attachListeners'](_0x36ab53){this['listenTo'](_0x36ab53,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x36ab53,'Esc',(_0xf9fd86,_0x4cbd46)=>{this['_manuallyClosedAnnotationViews']['add'](_0x36ab53),this['_hideBalloon'](),_0x4cbd46();});}['_detachListeners'](_0x3def64){this['stopListening'](_0x3def64);}}class c extends _0xab089d{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x399079,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x289f8b){super(_0x289f8b),_0x289f8b['editing']['view']['addObserver'](_0x18f5f4),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x289f8b['plugins']['get'](_0x399079),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x5b5d6e=this['editor']['plugins']['get'](M);_0x5b5d6e['context']===this['editor']&&(_0x5b5d6e['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x3c012b,_0x6b5387)=>{const _0x407519=this['_balloon'];if(this['isAttached']&&_0x407519['visibleView']){const _0xa19603=this['annotations']['getByView'](_0x407519['visibleView']);_0xa19603&&this['_closeAnnotation'](_0xa19603),_0x6b5387();}}));}['afterInit'](){const _0x166ea9=this['editor']['plugins']['get'](M);_0x166ea9['context']===this['editor']&&(_0x166ea9['hasActive']()||_0x166ea9['switchTo']('inline'));}['setActiveAnnotation'](_0x979a6f){_0x979a6f!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x979a6f&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x979a6f)&&this['_addAnnotationToBalloon'](_0x979a6f,!0x0),_0x979a6f['isActive']=!0x0),_0x979a6f||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x979a6f);}['attach'](_0xd68dff){this['annotations']=_0xd68dff;const _0x197aaa=this['editor']['plugins']['get'](M),_0x5c2c57=this['_balloon'];if(this['isAttached'])throw new _0x2868b4('inlineannotations-attach-already-attached',this);if(_0x197aaa['context']!==this['editor'])throw new _0x2868b4('inlineannotations-not-allowed-with-context',this);const _0x5b5f07=this['editor']['plugins']['get'](P);this['listenTo'](_0x5b5f07,'refresh',()=>{const _0x11273c=_0x5b5f07['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x2d82a3,_0x30870c;!this['_forceRefresh']&&(_0x2d82a3=_0x11273c,_0x30870c=this['_selectedAnnotations'],_0x2d82a3['length']===_0x30870c['length']&&_0x2d82a3['every'](_0x2224d9=>_0x30870c['includes'](_0x2224d9)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x11273c),this['setActiveAnnotation'](_0x11273c[0x0]||null));}),this['listenTo'](_0x5b5f07,'blur',(_0xd63ae8,{isAnnotationTracked:_0x265fb6})=>{this['activeAnnotation']&&_0x265fb6(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x1d14a2,_0x3ec384,_0x37a7a7)=>{_0x37a7a7||this['setActiveAnnotation'](null);}),this['listenTo'](_0xd68dff,'remove',(_0x1de3ea,_0x5df176)=>{this['_removeAnnotationFromBalloon'](_0x5df176),_0x5df176===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5c2c57,'change:visibleView',(_0x456e2c,_0x42d052,_0x3da7b0,_0x3ad39b)=>{_0x3ad39b&&this['stopListening'](_0x3ad39b);const _0x46f52e=_0xd68dff['getByView'](_0x3da7b0);_0x3da7b0&&_0x46f52e&&(this['listenTo'](_0x3da7b0,'change:height',()=>{_0x5c2c57['updatePosition']();}),this['listenTo'](_0x3da7b0,'Esc',()=>{this['_closeAnnotation'](_0x46f52e),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x46f52e&&this['setActiveAnnotation'](_0x46f52e));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5c2c57['visibleView']&&(_0xd68dff['getByView'](_0x5c2c57['visibleView'])&&_0x5c2c57['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 _0x2868b4('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x4d2047 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x4d2047);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x102a21){for(const _0x26bf18 of this['_selectedAnnotations'])_0x102a21['includes'](_0x26bf18)||this['_manuallyClosed']['delete'](_0x26bf18);for(const _0x2b37fe of this['annotations'])_0x102a21['includes'](_0x2b37fe)||this['_removeAnnotationFromBalloon'](_0x2b37fe);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0xeaeebd of _0x102a21)this['_addAnnotationToBalloon'](_0xeaeebd);}this['_selectedAnnotations']=_0x102a21;}['_addAnnotationToBalloon'](_0x3e2b1f,_0x507dc2=!0x1){this['_manuallyClosed']['has'](_0x3e2b1f)||(this['_addedAnnotations']['has'](_0x3e2b1f)||this['_balloon']['hasView'](_0x3e2b1f['view'])||(this['_addedAnnotations']['add'](_0x3e2b1f),this['_balloon']['add']({'stackId':_0x3e2b1f['view']['id'],'view':_0x3e2b1f['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x3e2b1f)}})),_0x507dc2&&this['_balloon']['showStack'](_0x3e2b1f['view']['id']));}['_getBalloonTargetForAnnotation'](_0x5544a6){const _0x58a13f=_0x5544a6['target'],_0x4c5493=this['editor']['editing']['view'],_0x138e57=_0x4c5493['document']['selection']['getFirstRange'](),_0x1a7d95=_0x4c5493['domConverter']['viewRangeToDom'](_0x138e57);if(_0x1a7d95['collapse'](!0x0),_0x58a13f){if(_0x58a13f instanceof _0x52468a)return _0x58a13f;let _0x2aaa55=[];for(const _0x165759 of _0x58a13f)_0x2aaa55['push'](...B(_0x165759['getClientRects']()));_0x2aaa55=function(_0x1f2893){const _0xb368e9=[];let _0x82f989=_0x1f2893[0x0];for(let _0x10ca2c=0x1;_0x10ca2c<_0x1f2893['length'];_0x10ca2c++)F(_0x82f989,_0x1f2893[_0x10ca2c])?_0x82f989['width']+=_0x1f2893[_0x10ca2c]['width']:(_0xb368e9['push'](_0x82f989),_0x82f989=_0x1f2893[_0x10ca2c]);return _0xb368e9['push'](_0x82f989),_0xb368e9;}(_0x2aaa55);const _0x345a94=_0x1a7d95['getBoundingClientRect']();return _0x2aaa55['find'](_0x2db839=>_0x2db839['top']<=_0x345a94['top']&&_0x2db839['bottom']>=_0x345a94['bottom']&&_0x2db839['left']<=_0x345a94['left']&&_0x2db839['right']>=_0x345a94['right'])||_0x2aaa55[0x0];}return _0x5544a6['targetRect']||_0x1a7d95;}['_removeAnnotationFromBalloon'](_0xe9285b){this['_addedAnnotations']['has'](_0xe9285b)&&this['_balloon']['hasView'](_0xe9285b['view'])&&(this['_addedAnnotations']['delete'](_0xe9285b),this['_balloon']['remove'](_0xe9285b['view']));}['_closeAnnotation'](_0x2b139c){this['_manuallyClosed']['add'](_0x2b139c),this['_removeAnnotationFromBalloon'](_0x2b139c);}}function B(_0x4c5c7a){return Array['from'](_0x4c5c7a)['map'](DOMRect['fromRect']);}function F(_0x343bf9,_0x40e7f4){return _0x343bf9['top']===_0x40e7f4['top']&&_0x343bf9['bottom']===_0x40e7f4['bottom']&&_0x343bf9['right']===_0x40e7f4['left'];}class it extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x5059c6,_0x4596df){super(_0x5059c6),this['set']('isEmpty',!_0x4596df['length']),this['focusTracker']=new _0x1f4456(),this['_annotationViews']=_0x4596df,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0xc22f23({'focusables':_0x4596df,'focusTracker':this['focusTracker']}),this['listenTo'](_0x4596df,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x4596df,'remove',(_0x129215,_0x1e14fe)=>{_0x1e14fe['isActive']&&this['focus'](),_0x4596df['length']||(this['isEmpty']=!0x0);});const _0x2dc597=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':E(_0x5059c6,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x4596df},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2dc597['if']('isEmpty','ck-hidden',_0x56a093=>!_0x56a093)]},'children':[{'text':E(_0x5059c6,'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 _0x19b1e1 of this['_annotationViews'])this['focusTracker']['add'](_0x19b1e1['element']);this['_annotationViews']['on']('change',(_0x18ec7b,{added:_0x195309,removed:_0x1fd024})=>{for(const _0x1dc231 of _0x195309)this['focusTracker']['add'](_0x1dc231['element']);for(const _0x7a6a66 of _0x1fd024)this['focusTracker']['remove'](_0x7a6a66['element']);});}}class f extends _0x45eb44{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,O];}constructor(_0x5c6c67){super(_0x5c6c67),this['archivedThreads']=new _0x3a28a9();}['init'](){const _0x16dcb1=this['context'],_0x3854fb=_0x16dcb1['plugins']['get'](o),_0x1338a3=_0x16dcb1['plugins']['get'](O);this['listenTo'](_0x3854fb,'addCommentThread',(_0x51017d,{threadId:_0x165c84})=>{const _0x2c927c=_0x3854fb['getCommentThread'](_0x165c84);_0x2c927c['archivedAt']&&this['archivedThreads']['add'](_0x2c927c,this['_calculatePosition'](_0x2c927c['archivedAt'])),this['listenTo'](_0x2c927c,'change:archivedAt',(_0x3ae191,_0x3688a9,_0x4620d8)=>{_0x4620d8?this['archivedThreads']['has'](_0x2c927c)||this['archivedThreads']['add'](_0x2c927c,this['_calculatePosition'](_0x2c927c['archivedAt'])):this['archivedThreads']['has'](_0x2c927c)&&this['archivedThreads']['remove'](_0x2c927c);});}),this['listenTo'](_0x3854fb,'removeCommentThread',(_0x14c551,{threadId:_0x457665})=>{const _0x152ea4=_0x3854fb['getCommentThread'](_0x457665);this['stopListening'](_0x152ea4),this['archivedThreads']['has'](_0x152ea4)&&this['archivedThreads']['remove'](_0x152ea4);},{'priority':'highest'}),this['listenTo'](_0x1338a3['collection'],'focus',(_0x3ef939,_0x54a960)=>{_0x54a960['isVisible']||(_0x54a960['isActive']=!0x0,_0x1338a3['activate'](_0x54a960));});}['_calculatePosition'](_0x564e34){const _0x3f0797=[...this['archivedThreads']]['findIndex'](_0x453919=>_0x453919['archivedAt']<_0x564e34);return _0x3f0797>-0x1?_0x3f0797:this['archivedThreads']['length'];}}class a extends _0xab089d{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x266ae4];}constructor(_0x38da70){super(_0x38da70),this['annotationViews']=new _0x577beb(),this['_pendingThreads']=[];}['init'](){const _0x4c471a=this['editor'],_0x5ef345=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x4c471a['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x2ab1c0,!0x0)),_0x4c471a['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x2d4d1b=this['_createCommentsArchiveButton'](_0x515bee);return _0x2d4d1b['set']({'role':'menuitemcheckbox'}),_0x2d4d1b;});const _0x2059c9=_0x4c471a['plugins']['get'](f),_0x2fe679=_0x4c471a['plugins']['get']('Annotations'),_0x2a70a4=_0x4c471a['plugins']['get']('CommentsRepository');_0x2059c9['archivedThreads']['forEach'](_0x4aeaad=>{this['_handleNewThread'](_0x4aeaad);}),this['listenTo'](_0x2059c9['archivedThreads'],'add',(_0x2a5d9e,_0x47758d)=>{this['_handleNewThread'](_0x47758d);}),this['listenTo'](_0x2fe679['collection'],'add',(_0x3b23fc,_0x45317b)=>{const _0x5e3a4d=this['_pendingThreads']['find'](_0x2c92b4=>{const _0x9e5584=_0x2a70a4['_threadToController']['get'](_0x2c92b4);return _0x9e5584&&_0x45317b['innerView']===_0x9e5584['view'];});if(_0x5e3a4d){const _0x516e89=this['_calculatePosition'](_0x5e3a4d['archivedAt']);this['annotationViews']['add'](_0x45317b['view'],_0x516e89),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x5e3a4d),0x1);}}),this['listenTo'](_0x2059c9['archivedThreads'],'remove',(_0x2f2b20,_0xa9c7e1)=>{const _0x2925ce=_0x4c471a['config']['get']('collaboration.channelId');if(!_0x2925ce||_0xa9c7e1['channelId']===_0x2925ce){if(this['_pendingThreads']['includes'](_0xa9c7e1))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xa9c7e1),0x1);else{const _0x2143f2=_0x2a70a4['_threadToController']['get'](_0xa9c7e1),_0xf5dffa=_0x2fe679['getByInnerView'](_0x2143f2['view']);this['annotationViews']['remove'](_0xf5dffa['view']),this['stopListening'](_0xf5dffa['focusableElements']);}}}),this['listenTo'](_0x2fe679['collection'],'add',(_0x3e8c87,_0x1ab446)=>{this['listenTo'](_0x1ab446,'escape',_0x5ef345);}),this['listenTo'](_0x2fe679['collection'],'remove',(_0x224fad,_0x42f8b0)=>{this['stopListening'](_0x42f8b0,'escape',_0x5ef345);});}['_handleNewThread'](_0x285ef0){const _0x5ffac0=this['editor']['plugins']['get']('CommentsRepository'),_0x343522=this['editor']['plugins']['get']('Annotations'),_0x1c8769=this['editor']['config']['get']('collaboration.channelId');if(!_0x1c8769||_0x285ef0['channelId']===_0x1c8769){const _0x536c56=_0x5ffac0['_threadToController']['get'](_0x285ef0);if(!_0x536c56)return void this['_pendingThreads']['push'](_0x285ef0);const _0x534edc=this['_calculatePosition'](_0x285ef0['archivedAt']),_0xb4908c=_0x343522['getByInnerView'](_0x536c56['view']);_0xb4908c['isVisible']&&_0x343522['_visibleAnnotations']['remove'](_0xb4908c),this['annotationViews']['add'](_0xb4908c['view'],_0x534edc);}}['_calculatePosition'](_0x4256b4){const _0x1b2f70=this['editor']['config']['get']('collaboration.channelId'),_0x2c58e6=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x702db6=>_0x702db6['channelId']===_0x1b2f70)['findIndex'](_0x595f35=>_0x595f35['archivedAt']<_0x4256b4);return _0x2c58e6<0x0||_0x2c58e6>this['annotationViews']['length']?this['annotationViews']['length']:_0x2c58e6-0x1;}['_toggleDialog'](){const _0x3f1ab7=this['editor'],_0x13fbcc=_0x3f1ab7['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new it(_0x3f1ab7['locale'],this['annotationViews'])),'commentsArchive'===_0x13fbcc['id']?_0x13fbcc['hide']():_0x13fbcc['show']({'id':'commentsArchive','title':E(_0x3f1ab7['locale'],'COMMENTS_ARCHIVE'),'icon':_0x1062b6,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':tt['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x5c1657,_0xeedd04=!0x1){const _0x4963ec=this['editor']['locale'],_0x4ecac1=this['editor']['plugins']['get']('Dialog'),_0x11f069=new _0x5c1657(_0x4963ec);return _0x11f069['bind']('isEnabled')['to'](this,'isEnabled'),_0x11f069['bind']('isOn')['to'](_0x4ecac1,'id',_0x3cf637=>'commentsArchive'===_0x3cf637),_0x11f069['set']({'label':E(_0x4963ec,'COMMENTS_ARCHIVE'),'icon':_0x1062b6,'isToggleable':!0x0}),_0xeedd04&&(_0x11f069['tooltip']=!0x0),this['listenTo'](_0x11f069,'execute',()=>this['_toggleDialog']()),_0x11f069;}['_hideDialogOnAnnotationEscape']=_0x3d82c5=>{const _0x2f5a8a=_0x3d82c5['source'];if(!this['annotationViews']['has'](_0x2f5a8a['view']))return;const _0x5a90e6=this['editor']['plugins']['get']('Dialog');_0x5a90e6['isOpen']&&'commentsArchive'===_0x5a90e6['id']&&(_0x5a90e6['hide'](),_0x3d82c5['stop']());};}class p extends _0xab089d{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,_ as AnnotationCollection,S as AnnotationView,O as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,fi as Comment,ui as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt 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,z as Sidebar,e as WideSidebar};
23
+ import{Editor as _0x243d1d,ContextPlugin as _0x57c986,PendingActions as lt,Command as _0x429836,Plugin as _0x3f67cf,Context as _0xce4252}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x19e9b6,uid as _0x2415f3,KeystrokeHandler as jt,FocusTracker as _0x1f412d,diff as _0x301362,Collection as _0x28495a,Rect as _0x16772f,CKEditorError as _0x43099f,first as _0x142d43,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as xt,DomEmitterMixin as _0x10824e,keyCodes as _0x2aab7d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x8e27e6,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x5eb2c0,trimHtml as _0x247a0e,LateFocusDropdownButtonView as _0x4a0552,Users as st,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x1bc2cd}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0xd145ad}from'es-toolkit/compat';import{IconUndo as _0x4d28c0,IconCheck as _0x40e06f,IconPencil as _0x92ad00,IconRemoveComment as _0x109784,IconThreeVerticalDots as _0x7b8604,IconAddComment as _0x4c19ee,IconCommentsArchive as _0x3a4089}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as _0x45831b,ButtonView as _0x151fe8,ViewCollection as _0xa4c1a7,createDropdown as _0xd73cdb,ListView as _0xe1f410,focusChildOnDropdownOpen as _0x1bd353,ListItemView as _0x22db09,MenuBarMenuListItemButtonView as _0x2ffab1,BodyCollection as _0x3e4dca,BalloonPanelView as _0x404ba8,ContextualBalloon as _0x3b8509,Dialog as _0x23eebf,DialogViewPosition as tt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as St,enablePlaceholder as Ft,MouseObserver as _0x37beaf}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Et}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Gt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Jt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Kt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x306a71}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x259056}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x19e9b6(){['model'];['view'];constructor(_0x2b241e,_0x294e60){super(),this['model']=_0x2b241e,this['model']['_isAttached']=!0x0,this['view']=_0x294e60,this['listenTo'](_0x294e60,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x294e60,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x294e60,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x294e60,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x294e60,'addComment',(_0x2e8f7b,_0x391c62)=>this['addComment'](_0x391c62)),this['listenTo'](_0x294e60,'updateComment',(_0x55bb5d,_0x38e19f,_0x5ecc27)=>this['updateComment'](_0x38e19f,_0x5ecc27)),this['listenTo'](_0x294e60,'removeComment',(_0x529e5c,_0xf4f713)=>this['removeComment'](_0xf4f713));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x1849a0){this['model']['addComment']({'content':_0x1849a0,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x2fee09,_0x4a827f){this['model']['getComment'](_0x2fee09)['update']({'content':_0x4a827f});}['removeComment'](_0x150624){this['model']['getComment'](_0x150624)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function E(_0x4f69a4,_0x212dc5,_0x546a44){const t=_0x4f69a4['t'];switch(_0x212dc5){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'},_0x546a44);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'},_0x546a44);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'},_0x546a44);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'},_0x546a44);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x546a44);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'},_0x546a44);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'},_0x546a44);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'},_0x546a44);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(_0x1202e7,_0x2d80ba){super(_0x1202e7);const _0x5e34ba=_0x2415f3();this['main']=this['createCollection'](),this['editable']=new $t(_0x1202e7,_0x2d80ba,void 0x0,{'label':()=>E(_0x1202e7,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x1202e7['uiLanguageDirection'],'lang':_0x1202e7['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x5e34ba},'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(_0x5172d4){super(_0x5172d4),this['view']=new Vt(_0x5172d4['locale'],_0x5172d4['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x32666d=this['editor']['editing']['view'],_0x1dbfb9=this['view']['editable'],_0x23ebaf=_0x32666d['document']['getRoot']();_0x1dbfb9['name']=_0x23ebaf['rootName'],this['view']['render']();const _0x4fadf2=_0x1dbfb9['element'];this['setEditableElement'](_0x1dbfb9['name'],_0x4fadf2),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x32666d['attachDomRoot'](_0x4fadf2),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Et,Gt,Jt,Kt];class Rt extends/* #__PURE__ -- @preserve */
25
+ _0x19e9b6(_0x243d1d){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x18d4ee={}){function _0x13df30(_0x3ee707){return _0x3ee707['map'](_0x3226d7=>String['fromCharCode'](_0x3226d7))['join']('');}(_0x18d4ee=Object['assign']({},_0x18d4ee))['plugins']||(_0x18d4ee['plugins']=Rt['defaultPlugins']),super(_0x18d4ee),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[_0x13df30([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13df30([0x76,0x69,0x65,0x77])][_0x13df30([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13df30([0x61,0x75,0x74,0x6f]),this[_0x13df30([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x13df30([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13df30([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x13df30([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x13df30([0x6f,0x6b])});}['create'](){const _0x14759d=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x14759d))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x5e1a98=>{const _0x4d839c=this['model']['document']['getRoot'](),_0x5c1c17=_0x4d839c&&_0x4d839c['getChild'](_0x4d839c['childCount']-0x1);_0x5e1a98['setSelection'](_0x5c1c17,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x5ca7dc=this['editing']['view'],_0x21b71d=_0x5ca7dc['document']['getRoot'](),_0x3bce32=_0x21b71d['getChild'](0x0);_0x21b71d['childCount']>0x1||!_0x3bce32||'p'!=_0x3bce32['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x5ca7dc,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3bce32['placeholder']=this['placeholder']),Ft({'view':_0x5ca7dc,'element':_0x3bce32,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3bce32);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x426032,_0x2103fc={}){super(_0x426032),this['editor']=null,this['_editorConfig']=_0x2103fc,this['set']('value',_0x2103fc['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',E(_0x426032,'Reply...')),this['set']('submitLabel',E(_0x426032,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x1f412d(),this['focusCycler']=new _0x45831b({'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',(_0x12779b,_0x417691)=>{this['cancelButtonView']['fire']('execute'),_0x417691();}),this['keystrokes']['set']('Ctrl+Enter',(_0x33df36,_0xc10476)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0xc10476());}),this['on']('submit',(_0x435bfa,_0x46d092)=>{_0x46d092['length']>0xfde8?(alert(E(_0x426032,'TOO_LONG_COMMENT_ALERT',[_0x46d092['length'],0xfde8])),_0x435bfa['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 _0x2a7d1a=this['editor'];this['element']['insertBefore'](_0x2a7d1a['ui']['element'],this['element']['firstChild']),_0x2a7d1a['model']['document']['on']('change',()=>this['value']=_0x2a7d1a['getData']()),_0x2a7d1a['bind']('placeholder')['to'](this),this['focusables']['add'](_0x2a7d1a['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x2f844e){-0x1===_0x2f844e?(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:_0x35eb3a}=this,_0x5dcd6f=new _0x151fe8(_0x35eb3a);return _0x5dcd6f['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x5dcd6f['withText']=!0x0,_0x5dcd6f['bind']('label')['to'](this,'submitLabel'),_0x5dcd6f['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x5dcd6f['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x1a1052,_0x96bc98)=>!_0x96bc98&&!!_0x1a1052['trim']()),_0x5dcd6f;}['_createCancelButton'](){const {locale:_0x118cb5}=this,_0x528a9b=new _0x151fe8(_0x118cb5);return _0x528a9b['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x528a9b['label']=E(_0x118cb5,'Cancel'),_0x528a9b['withText']=!0x0,_0x528a9b['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x528a9b;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x503d03=>{this['focusTracker']['add'](_0x503d03['element']);}),this['focusables']['on']('change',(_0x58bda7,_0x2407be)=>{for(const _0x4ac6f1 of Array['from'](_0x2407be['added'])['reverse']())this['focusTracker']['add'](_0x4ac6f1['element']);});}}class ie extends kt{constructor(_0x2cde65,_0x34dd86,_0x6e01){super(_0x2cde65),this['commentInputView']=new hs(_0x2cde65,_0x6e01),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x38ce11,_0x2c3e1c)=>_0x38ce11||!!_0x2c3e1c),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 _0x8e27e6(_0x2cde65,_0x34dd86),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'](_0x180b53){this['commentInputView']['focus'](_0x180b53);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x209c3f,_0x2cd9c0)=>{const {submitButtonView:_0x114539,cancelButtonView:_0x24c8c1,editor:_0x211388}=this['commentInputView'];[_0x114539['element'],_0x24c8c1['element'],_0x211388?_0x211388['editing']['view']['getDomRoot']():null]['filter'](_0x13b6ad=>_0x13b6ad)['some'](_0x15e032=>_0x15e032['contains'](_0x2cd9c0['target']))||(this['focus'](),_0x2cd9c0['preventDefault']());});}}class cs extends kt{constructor(_0x2b3fc9){super(_0x2b3fc9);const _0x50c75e=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x50c75e['to']('count',_0x19f309=>E(_0x2b3fc9,'NUMBER_OF_COMMENTS',_0x19f309))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x1d6ed2,_0x5f2951,_0x3b3988){super(_0x1d6ed2);const _0x5da32a=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x5f2951['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x5f2951,this['_config']=_0x3b3988,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x1f412d(),this['keystrokes']=new jt(),this['focusCycler']=new _0x45831b({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x48d791=>this['commentViews']['map'](_0x1a113f=>_0x1a113f['element'])['includes'](_0x48d791['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x1d6ed2),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x5dede6=>_0x5dede6-this['_config']['maxCommentsWhenCollapsed']);for(const _0x4da818 of _0x5f2951['comments'])this['_handleNewCommentModel'](_0x4da818);this['_handleInfoComment'](),this['listenTo'](_0x5f2951['comments'],'add',(_0x33a2cf,_0x434b69)=>{const _0x55f039=this['_calculatePosition'](_0x434b69);this['length']++,this['_handleNewCommentModel'](_0x434b69,_0x55f039),this['refreshVisibleViews']();}),this['listenTo'](_0x5f2951['comments'],'remove',(_0x3be63a,_0x428353)=>{this['length']--,this['_handleRemoveCommentModel'](_0x428353),this['refreshVisibleViews']();}),this['listenTo'](_0x5f2951,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x5f2951,'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',_0x5da32a['if']('length','ck-hidden',_0x104f77=>!_0x104f77)],'aria-label':E(_0x1d6ed2,'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'](_0x7843f5){-0x1===_0x7843f5?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x4747db of this['commentViews'])_0x4747db['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x3dafc1,_0x2e44b4){const _0x5920a7=new this['_config']['CommentView'](this['locale'],_0x3dafc1,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x5920a7['viewUid']=_0x3dafc1['id'],_0x5920a7['delegate']('removeComment')['to'](this),_0x5920a7['delegate']('updateComment')['to'](this),_0x5920a7['delegate']('resolveCommentThread')['to'](this),_0x5920a7['delegate']('editorReady')['to'](this),_0x5920a7['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x5920a7,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x5920a7,_0x2e44b4);}['_calculatePosition'](_0x14c302){const _0x5bb645=this['_model']['_findOptimalIndex'](_0x14c302);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x14c302['authoredAt']?_0x5bb645-0x1:_0x5bb645:_0x5bb645-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x368a2f={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':E(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x368a2f,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x368a2f));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x244a79){const _0x332a99=this['commentViews']['remove'](_0x244a79['id']);this['stopListening'](_0x332a99),_0x332a99['isEditMode']&&this['_updateHasDirtyComment'](),_0x332a99['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x1120e2=>_0x1120e2['isEditMode']);}['_rearrangeCollapse'](){const _0x5788b3=function(_0x1d14b3){const _0x52a0b0=new _0x28495a();for(const _0x4f6243 of _0x1d14b3)_0x52a0b0['add'](_0x4f6243);return _0x52a0b0;}(this['commentViews']),_0x51416e=this['_collapsedCommentsView']['count'];for(let _0x1ddc1b=0x1;_0x1ddc1b<=_0x51416e;_0x1ddc1b++)_0x5788b3['remove'](0x1);for(const _0x4056eb of _0x5788b3)_0x4056eb['collapse']();_0x51416e>0x0&&_0x5788b3['add'](this['_collapsedCommentsView'],0x1),as(_0x301362(Array['from'](this['visibleViews']),Array['from'](_0x5788b3)),this['visibleViews'],_0x5788b3);}['_rearrangeExpand'](){as(_0x301362(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x491541 of this['visibleViews'])_0x491541['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x54bbc7=>{this['focusTracker']['add'](_0x54bbc7['element']),this['keystrokes']['listenTo'](_0x54bbc7['element']);}),this['commentViews']['on']('change',(_0x290e1e,_0x3676ad)=>{for(const _0x47e60f of _0x3676ad['removed'])this['focusTracker']['remove'](_0x47e60f['element']),this['keystrokes']['stopListening'](_0x47e60f['element']);for(const _0x43e534 of Array['from'](_0x3676ad['added'])['reverse']())this['focusTracker']['add'](_0x43e534['element']),this['keystrokes']['listenTo'](_0x43e534['element']);});}}function as(_0x35dbcc,_0x1d6c18,_0x5b6b0c){let _0x2cdb37=0x0;for(const _0x3ae6cc of _0x35dbcc)switch(_0x3ae6cc){case'insert':_0x1d6c18['add'](_0x5b6b0c['get'](_0x2cdb37),_0x2cdb37),_0x2cdb37++;break;case'delete':_0x1d6c18['remove'](_0x2cdb37);break;case'equal':_0x2cdb37++;}}class ls extends kt{constructor(_0x409609){super(_0x409609);const _0x4b99c1=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x4b99c1['to']('contextValue',_0x499a03=>E(_0x409609,'THREAD_CONTEXT_LABEL',_0x499a03)),'tabindex':-0x1},'children':[{'text':_0x4b99c1['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x40cf42,_0x3ee98b){super(_0x40cf42);const _0xc02e95=this['bindTemplate'];this['_model']=_0x3ee98b,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x1f412d(),this['keystrokes']=new jt(),this['focusCycler']=new _0x45831b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x281cb4=>!!_0x281cb4),this['bind']('contextValue')['to'](this['_model'],'context',_0x5456fe=>_0x5456fe&&_0x5456fe['value']?this['_trimContextValue'](_0x5456fe['value']):E(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',_0xc02e95['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 _0x3532e5=new _0x151fe8(this['locale']);return _0x3532e5['label']=E(this['locale'],'Reopen'),_0x3532e5['tooltip']=E(this['locale'],'Reopen'),_0x3532e5['icon']=_0x4d28c0,_0x3532e5['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x393af7=>!_0x393af7),_0x3532e5['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x37baa3,_0x4cb30b)=>_0x37baa3&&_0x4cb30b),_0x3532e5['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x3532e5;}['_trimContextValue'](_0x26696f){if(_0x26696f['length']<0x96)return _0x26696f;const _0x3a1603=_0x26696f['lastIndexOf']('\x20',0x93);return _0x26696f['substring'](0x0,_0x3a1603>-0x1?_0x3a1603:0x93)+'...';}['_attachContextActions'](){const _0x3bd6f0=this['element']['querySelector']('.ck-context'),_0x5d382c=_0x3bd6f0['querySelector']('.ck-context__value');this['listenTo'](_0x3bd6f0,'mouseenter',()=>{_0x5d382c['offsetWidth']<_0x5d382c['scrollWidth']&&_0x3bd6f0['classList']['add']('overlay');}),this['listenTo'](_0x3bd6f0,'mouseleave',()=>{_0x3bd6f0['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x571b60 of this['focusables'])this['focusTracker']['add'](_0x571b60['element']),this['keystrokes']['listenTo'](_0x571b60['element']);}['_createContextView'](){const _0x26acbc=new ls(this['locale']);return _0x26acbc['bind']('contextValue')['to'](this),_0x26acbc;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5fb521,_0x271736,_0x564b73,_0x26919c){super(_0x5fb521),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x271736,this['_localUser']=_0x564b73,this['_config']=_0x26919c,this['commentThreadHeaderView']=new Yt(_0x5fb521,_0x271736),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x5fb521,E(_0x5fb521,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x5fb521,_0x271736,Object['assign']({'CommentView':this['_config']['CommentView']},_0x26919c)),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',(_0x3a89fb,_0x4193ae)=>_0x3a89fb||!!_0x4193ae),this['bind']('isUnlinked')['to'](_0x271736,'unlinkedAt',_0x21246a=>!!_0x21246a),this['bind']('ariaLabel')['to'](this,'length',_0x114777=>{const _0x3b8991=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return E(this['locale'],'COMMENT_THREAD_LABEL',[_0x114777,_0x3b8991]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x1f412d(),this['keystrokes']=new jt(),this['focusCycler']=new _0x45831b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xff8770=>_0xff8770['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 _0x462ff6=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x22d8bc=_0x462ff6['commentInputView'];return _0x462ff6['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x22d8bc,'value',(_0x53ff08,_0x1cffc5,_0x7055c0,_0x20c7e0,_0x2ffc18)=>!!_0x2ffc18||!!_0x20c7e0&&_0x7055c0&&!_0x1cffc5||_0x53ff08&&_0x7055c0&&!_0x1cffc5),_0x22d8bc['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x242e08,_0x3aaa05,_0x4b599c)=>{let _0x5d48d3;return _0x5d48d3=_0x4b599c&&_0x3aaa05?'Reply\x20to\x20reopen\x20discussion...':_0x242e08?'Reply...':'Write\x20a\x20comment...',E(this['locale'],_0x5d48d3);}),_0x22d8bc['bind']('submitLabel')['to'](this,'length',_0x55f433=>E(this['locale'],_0x55f433?'Reply':'Comment')),_0x22d8bc['on']('submit',(_0x4fe123,_0x5acb6e)=>{this['fire']('addComment',_0x5acb6e),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x22d8bc['on']('cancel',()=>{this['focus']();}),_0x22d8bc['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x22d8bc['on']('cancel',_0x59ab4e=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x59ab4e['stop']());}),this['on']('change:isActive',(_0x51ebb4,_0x19d79b,_0x3b5517)=>{_0x3b5517||this['length']||_0x22d8bc['value']||this['fire']('removeCommentThread');}),_0x462ff6;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x49a705,_0x1f39ad,_0x5489ee,_0x53ea4e){super(_0x49a705,_0x1f39ad,_0x5489ee,_0x53ea4e),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x49a705,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x5a3ff2,_0x1a4e9e,_0x3183f6)=>{_0x3183f6||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0xcd1206,_0x53ae48,_0xd0a4bb)=>{_0xd0a4bb&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x24e44e=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x24e44e['if']('isActive','ck-thread--active'),_0x24e44e['if']('isUnlinked','ck-thread--unlinked'),_0x24e44e['if']('isConfirm','ck-thread--remove-confirmation'),_0x24e44e['to']('actionIndicator',_0x484593=>_0x484593?'ck-thread--'+_0x484593:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x24e44e['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 _0x14c0fa of this['commentsListView']['commentViews'])_0x14c0fa['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x4d1eb8}=this,_0x2a653e=this['commentsListView']['commentViews']['get'](0x0);_0x2a653e===this['_boundFirstCommentView']||_0x2a653e['isSystemComment']||(this['_boundFirstCommentView']=_0x2a653e,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x2a653e,'actionIndicator',_0x58114c=>'remove'===_0x58114c?'remove':null),_0x2a653e['placeholder']=E(_0x4d1eb8,'Write\x20a\x20comment...'),_0x2a653e['removeButton']['on']('execute',_0x3da2bf=>{_0x3da2bf['stop'](),this['showConfirm'](E(_0x4d1eb8,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x2a653e['focus']();}),_0x2a653e['actionBar']['add'](this['resolveButton'],0x0),_0x2a653e['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0xf639db=new _0x5eb2c0(this['locale']);return _0xf639db['label']=E(this['locale'],'Resolve'),_0xf639db['tooltip']=E(this['locale'],'Resolve'),_0xf639db['icon']=_0x40e06f,_0xf639db['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0xf639db['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x7f7ffd=>!_0x7f7ffd),_0xf639db['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x286d3d,_0x1e42ae)=>_0x286d3d&&!_0x1e42ae),_0xf639db['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0xf639db;}['_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 os extends kt{constructor(_0x3f35c3){super(_0x3f35c3),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x592609,_0x1adff5,_0x356b35)=>{this['element']['innerHTML']=_0x356b35;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1294aa,_0x107324,_0x284133){super(_0x1294aa),this['_model']=_0x107324,this['_config']=_0x284133,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x107324,'content',_0x107324,'authoredAt',(_0x51dbb5,_0x1ca98d)=>E(_0x1294aa,'COMMENT_ARIA_LABEL',[_0x107324['author']['name'],_0x284133['formatDateTime'](_0x1ca98d),new DOMParser()['parseFromString'](_0x51dbb5,'text/html')['body']['textContent'],_0x107324['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x1294aa,E(_0x1294aa,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0xa4c1a7(),this['focusTracker']=new _0x1f412d(),this['keystrokes']=new jt(),this['focusCycler']=new _0x45831b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x34cab1=>_0x34cab1['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']?E(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):E(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?E(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):E(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x2afb2d=new os(this['locale']);return _0x2afb2d['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x2851be,_0x23ed57)=>_0x23ed57?_0x247a0e(_0x2851be,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x2851be),_0x2afb2d;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x432ba1=new hs(this['locale'],this['_config']['editorConfig']);return _0x432ba1['value']=this['_model']['content'],_0x432ba1['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x432ba1['submitLabel']=E(this['locale'],'Save'),_0x432ba1['on']('submit',(_0x5e6845,_0x150d81)=>{this['fire']('updateComment',this['_model']['id'],_0x150d81),this['switchToDisplayMode'](),this['focus']();}),_0x432ba1['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x432ba1['once']('editorReady',()=>{_0x432ba1['focus']();}),_0x432ba1['createEditor'](),_0x432ba1['delegate']('editorReady')['to'](this),_0x432ba1['delegate']('editorDestroyed')['to'](this),_0x432ba1;}['_setupKeyboardNavigation'](){const _0x58016c=this['element'];this['keystrokes']['listenTo'](_0x58016c);for(const _0x2157fb of this['focusables'])this['focusTracker']['add'](_0x2157fb['element']),this['keystrokes']['listenTo'](_0x2157fb['element']);this['focusables']['on']('change',(_0x5cb944,_0x48cc44)=>{for(const _0x5e1481 of _0x48cc44['removed'])this['focusTracker']['remove'](_0x5e1481['element']),this['keystrokes']['stopListening'](_0x5e1481['element']);for(const _0x3014fe of _0x48cc44['added'])this['focusTracker']['add'](_0x3014fe['element']),this['keystrokes']['listenTo'](_0x3014fe['element']);}),this['keystrokes']['set']('enter',(_0x2a53a9,_0x1f5b9b)=>{_0x58016c===_0x2a53a9['target']&&(this['focusCycler']['focusFirst'](),_0x1f5b9b());}),this['keystrokes']['set']('esc',(_0x564f0c,_0x14b3b3)=>{_0x58016c!==_0x564f0c['target']&&(this['focus'](),_0x14b3b3());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(rs){['actionBar'];['userView'];constructor(_0x14bb76,_0x5b1658,_0x4050cc){super(_0x14bb76,_0x5b1658,_0x4050cc),this['set']('actionIndicator',null),this['set']('placeholder',E(_0x14bb76,'Reply...')),this['bind']('authoredAt')['to'](_0x5b1658),this['bind']('resolvedAt')['to'](_0x5b1658),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 _0x8e27e6(_0x14bb76,_0x5b1658['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x5b1658,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x17e192=this['bindTemplate'],_0x511668=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x17e192['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x17e192['to']('authoredAt',_0x36da3b=>this['_config']['formatDateTime'](_0x36da3b))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x17e192['if']('isEditMode','ck-comment__actions--hidden'),_0x17e192['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']&&_0x511668['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x17e192['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x17e192['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x17e192['if']('isEditMode','ck-comment--edit'),_0x17e192['if']('isSystemComment','ck-comment--info'),_0x17e192['to']('actionIndicator',_0x52bb67=>_0x52bb67?'ck-comment--'+_0x52bb67:'')],'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':_0x511668}]}]};}['_createEditButton'](){const _0x2955c5=new _0x151fe8(this['locale']);return _0x2955c5['label']=E(this['locale'],'Edit'),_0x2955c5['icon']=_0x92ad00,_0x2955c5['withText']=!0x0,_0x2955c5['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x2955c5['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x10e1cf=>!_0x10e1cf),_0x2955c5['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x2955c5['on']('execute',()=>this['switchToEditMode']()),_0x2955c5;}['_createRemoveButton'](){const _0x5339f4=new _0x151fe8(this['locale']);return _0x5339f4['label']=E(this['locale'],'Remove'),_0x5339f4['icon']=_0x109784,_0x5339f4['withText']=!0x0,_0x5339f4['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x5339f4['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x9c201c=>!_0x9c201c),_0x5339f4['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x5339f4['on']('execute',()=>{this['showConfirm'](E(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x5339f4;}['_createDropdown'](){const _0x3a0c59=_0xd73cdb(this['locale'],_0x4a0552),_0x241824=_0x3a0c59['panelView']['children'],_0x4373c0=new _0xe1f410(this['locale']),_0x35ae5b=_0x3a0c59['bindTemplate'];_0x1bd353(_0x3a0c59,()=>this['items']['find'](_0x4b72ba=>_0x4b72ba['isVisible'])),_0x3a0c59['extendTemplate']({'attributes':{'class':[_0x35ae5b['if']('isVisible','ck-hidden',_0x250615=>!_0x250615)]}});const _0x33a2fb=(_0x2cca08,_0x3f554c=-0x1)=>{const _0x59d841=new _0x22db09(this['locale']);_0x59d841['children']['add'](_0x2cca08);const _0x446f4d=_0x3f554c>-0x1?_0x3f554c:_0x4373c0['items']['length'];_0x4373c0['items']['add'](_0x59d841,_0x446f4d);const _0x2a8f55=Array['from'](this['items']);_0x3a0c59['unbind']('isEnabled','isVisible'),_0x3a0c59['bind']('isEnabled')['toMany'](_0x2a8f55,'isEnabled',(..._0x50eb13)=>_0x50eb13['some'](_0x32e2b7=>_0x32e2b7)),_0x3a0c59['bind']('isVisible')['toMany'](_0x2a8f55,'isVisible',(..._0x3fb179)=>_0x3fb179['some'](_0x15b410=>_0x15b410));};_0x3a0c59['panelPosition']='sw',_0x3a0c59['buttonView']['set']({'label':E(this['locale'],'Show\x20more\x20items'),'icon':_0x7b8604});for(const _0x45a6c6 of this['items'])_0x33a2fb(_0x45a6c6);return _0x241824['add'](_0x4373c0),_0x3a0c59['listenTo'](this['items'],'add',(_0x5252ca,_0x4dd7fc,_0x316668)=>{_0x33a2fb(_0x4dd7fc,_0x316668);}),_0x3a0c59['listenTo'](this['items'],'remove',(_0x7bbc3c,_0x2ce848,_0x4029fd)=>{_0x4373c0['items']['remove'](_0x4029fd);}),_0x3a0c59;}['_attachActions'](_0x5f0d2f,_0xbf1893){const _0x1ae603=_0x5f0d2f&&_0x5f0d2f['element'];_0x1ae603&&(this['listenTo'](_0x1ae603,'mouseenter',()=>this['actionIndicator']=_0xbf1893),this['listenTo'](_0x1ae603,'focus',()=>this['actionIndicator']=_0xbf1893),this['listenTo'](_0x1ae603,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x1ae603,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x71b0fd=super['_createCommentInputView']();return _0x71b0fd['bind']('placeholder')['to'](this),_0x71b0fd;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x443ef9){const _0x1533c9=Dt(_0x443ef9,0x1e),_0x5f0f7e=new MutationObserver(_0x3d7308=>{for(const _0x26442a of _0x3d7308)('attributes'==_0x26442a['type']&&'class'==_0x26442a['attributeName']||'childList'==_0x26442a['type']||'characterData'==_0x26442a['type'])&&_0x1533c9();});return{'attach'(_0x3331ff){_0x5f0f7e['observe'](_0x3331ff,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x5f0f7e['disconnect'](),_0x1533c9['cancel']();}};}class S extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x1957af,_0x246904){super(_0x1957af),this['id']=_0x2415f3(),this['focusTracker']=new _0x1f412d(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0xeb5a8c,_0x468f70)=>this['fire']('Esc',_0x468f70)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Lt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x246904),this['mainView']=_0x246904;const _0x19baba=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x19baba['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 _0x3afe6b=this['element']['clientHeight'];_0x3afe6b&&(this['height']=_0x3afe6b);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x19e9b6(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x197d26,target:_0x2b7ffa,type:_0x36cfe7,isVisible:_0x54b350=!0x0}){super(),this['view']=_0x197d26,this['view']['element']||this['view']['render'](),this['_type']=_0x36cfe7,this['_target']=_0x2b7ffa,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x28495a([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x1e8c80,_0x1e1ebb)=>{this['view']['focusTracker']['add'](_0x1e1ebb);}),this['focusableElements']['on']('remove',(_0x4ee603,_0x1bd411)=>{this['view']['focusTracker']['remove'](_0x1bd411);}),this['set']('isVisible',_0x54b350);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0xcbdaf1=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0xcbdaf1),_0xcbdaf1;}get['targetRect'](){const _0x147198=this['target'];if(null===_0x147198)return null;if(_0x147198 instanceof _0x16772f)return _0x147198;const _0x1c9717=_0x147198['filter'](_0x4e077c=>function(_0x4d7b10){const _0x4605df=_0x4d7b10['offsetParent'];if(_0x4605df)return!0x0;const _0x56cd41=_0x4d7b10['getClientRects']()['item'](0x0);return!!_0x56cd41;}(_0x4e077c));return 0x0===_0x1c9717['length']?null:new _0x16772f(_0x1c9717[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x54077b){this['view']['isActive']=_0x54077b,this['view']['mainView']['isActive']=_0x54077b;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x3dc001){if(!(null===_0x3dc001||_0x3dc001 instanceof _0x16772f||Array['isArray'](_0x3dc001)&&_0x3dc001['every'](_0x223980=>li(_0x223980))))throw new _0x43099f('annotation-invalid-target',null,{'target':_0x3dc001});}['_getNormalizedTarget'](){const _0x1f2ecc='function'==typeof this['_target']?this['_target']():this['_target'];return li(_0x1f2ecc)?[_0x1f2ecc]:_0x1f2ecc;}}function li(_0x24c909){return null!==_0x24c909&&'object'==typeof _0x24c909&&'nodeType'in _0x24c909&&0x1===_0x24c909['nodeType'];}class _ extends _0x28495a{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x1d274a=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x1f412d(),this['_focusTracker']['on']('change:isFocused',(_0x225f64,_0x2416f1,_0x30d672)=>{_0x30d672||this['fire']('blur');});for(const _0x33ed20 of _0x1d274a)this['add'](_0x33ed20);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x45d101){if(this['has'](_0x45d101))throw new _0x43099f('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x45d101['innerView'],_0x45d101),this['_viewToAnnotation']['set'](_0x45d101['view'],_0x45d101);for(const _0x575aa0 of _0x45d101['focusableElements'])this['_focusTracker']['add'](_0x575aa0);this['listenTo'](_0x45d101['focusableElements'],'add',(_0x1e745b,_0xbd8b88)=>{this['_focusTracker']['add'](_0xbd8b88);}),this['listenTo'](_0x45d101['focusableElements'],'remove',(_0x1c9fc0,_0x3dd25a)=>{this['_focusTracker']['remove'](_0x3dd25a);}),this['listenTo'](_0x45d101['view']['focusTracker'],'change:isFocused',(_0x3e31df,_0x38702e,_0x32775b)=>{_0x32775b&&this['fire']('focus',_0x45d101);}),_0x45d101['updateTargetRect']();const _0x377ab4=this['_getOrderInContent'](_0x45d101['view']['targetRect']);return super['add'](_0x45d101,_0x377ab4);}['remove'](_0x42f1a7){if(!this['has'](_0x42f1a7))throw new _0x43099f('annotationcollection-not-existing-item',null);this['stopListening'](_0x42f1a7['view']['focusTracker']),this['stopListening'](_0x42f1a7['focusableElements']);for(const _0x36eef3 of _0x42f1a7['focusableElements'])this['_focusTracker']['remove'](_0x36eef3);return this['_viewToAnnotation']['delete'](_0x42f1a7['view']),this['_innerViewToAnnotation']['delete'](_0x42f1a7['innerView']),super['remove'](_0x42f1a7);}['getByInnerView'](_0x10b16e){return this['_innerViewToAnnotation']['get'](_0x10b16e);}['getByView'](_0x435993){return this['_viewToAnnotation']['get'](_0x435993);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x245954 of this)_0x245954['updateTargetRect']();this['_sort']();}['_sort'](){const _0xeaa013=Array['from'](this)['sort']((_0x4c1fd7,_0x54065a)=>v(_0x4c1fd7['view']['targetRect'],_0x54065a['view']['targetRect']));for(let _0x5c7c72=_0xeaa013['length']-0x1;_0x5c7c72>0x0;_0x5c7c72--){const _0x47abba=_0xeaa013[_0x5c7c72];_0x5c7c72!==this['getIndex'](_0x47abba)&&(this['remove'](_0x47abba),this['add'](_0x47abba));}}['_getOrderInContent'](_0xf4c987){let _0x51671b=0x0;if(!_0xf4c987)return this['length'];for(const _0x1863fb of this){const _0x15d5ba=_0x1863fb['view']['targetRect'];if(_0x15d5ba){if(v(_0xf4c987,_0x15d5ba)<0x0)return _0x51671b;_0x51671b++;}}return _0x51671b;}}function v(_0x2d8b3e,_0xb13abd){if(null===_0x2d8b3e&&null===_0xb13abd)return 0x0;if(null===_0x2d8b3e)return-0x1;if(null===_0xb13abd)return 0x1;const _0x2ea7e3=_0x2d8b3e['top']-_0xb13abd['top'];return 0x0==_0x2ea7e3?_0x2d8b3e['left']-_0xb13abd['left']:_0x2ea7e3;}class O extends _0x57c986{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x599975){if(super(_0x599975),this['collection']=new _(),this['_visibleAnnotations']=new _(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x599975 instanceof _0x243d1d){const _0x5dfd00=_0x599975['locale'];_0x599975['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':E(_0x5dfd00,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':E(_0x5dfd00,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':E(_0x5dfd00,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':E(_0x5dfd00,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':E(_0x5dfd00,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':E(_0x5dfd00,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':E(_0x5dfd00,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x43ba78){this['collection']['add'](_0x43ba78);}['remove'](_0x5a6839){this['collection']['remove'](_0x5a6839),_0x5a6839['destroy']();}['refreshVisibility'](){for(const _0xebca12 of this['collection'])_0xebca12['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x1fa2da){return this['collection']['getByInnerView'](_0x1fa2da);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0xaead75 of this['collection'])_0xaead75['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x558dd8){this['fire']('_activateAnnotation',_0x558dd8);}['createAnnotation'](_0x254052){return new d(_0x254052);}['createAnnotationView'](_0x56d022,_0x2e9869){return new S(_0x56d022,_0x2e9869);}['_addActiveAnnotation'](_0x52598e){const _0xf53f07=new Set(this['activeAnnotations']);_0xf53f07['add'](_0x52598e),this['activeAnnotations']=_0xf53f07;}['_removeActiveAnnotation'](_0x31d3d3){const _0x2a854a=new Set(this['activeAnnotations']);_0x2a854a['delete'](_0x31d3d3),this['activeAnnotations']=_0x2a854a;}['_bindAnnotationsToVisibleAnnotations'](){const _0x5a28b5=this['collection'],_0x5a5113=this['_visibleAnnotations'];function _0x30e1d4(_0x23a6c3){const _0x37abd8=_0x23a6c3['source'];_0x37abd8['isVisible']&&!_0x5a5113['has'](_0x37abd8)?_0x5a5113['add'](_0x37abd8):!_0x37abd8['isVisible']&&_0x5a5113['has'](_0x37abd8)&&_0x5a5113['remove'](_0x37abd8),_0x37abd8['view']['focusTracker']['remove'](_0x37abd8['view']['element']),_0x37abd8['view']['focusTracker']['add'](_0x37abd8['view']['element']);}this['listenTo'](_0x5a28b5,'add',(_0x1bff5a,_0x9f3f88)=>{_0x9f3f88['isVisible']&&_0x5a5113['add'](_0x9f3f88),this['listenTo'](_0x9f3f88,'change:isVisible',_0x30e1d4);}),this['listenTo'](_0x5a28b5,'remove',(_0x18068c,_0x2c82a2)=>{_0x5a5113['has'](_0x2c82a2)&&_0x5a5113['remove'](_0x2c82a2),this['stopListening'](_0x2c82a2,'change:isVisible',_0x30e1d4);});}['_setupEnterAnnotationKeystroke'](){const _0x487f9f=_0x2bbd73=>{_0x2bbd73['on']('ready',()=>{_0x2bbd73['keystrokes']['set'](_0x306a71,(_0x3f69c5,_0x1c6817)=>{const _0x4ac7fa=_0x142d43(this['activeAnnotations']['values']());_0x4ac7fa&&(_0x4ac7fa['view']['focus'](),_0x1c6817());});});};this['context']instanceof _0x243d1d?_0x487f9f(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x45afbb,_0x4e96c0)=>{_0x487f9f(_0x4e96c0);});}['_setupEscapeAnnotationHandling'](){const _0x96be22=_0x3ec6b7=>{const _0x27a0ee=_0x3ec6b7['source'],_0x2cb028=[];let _0x5f0ee8;if(Array['isArray'](_0x27a0ee['target'])){_0x5f0ee8=_0x27a0ee['target'][0x0],this['context']instanceof _0x243d1d?_0x2cb028['push'](this['context']):this['context']['editors']&&_0x2cb028['push'](...this['context']['editors']);for(const _0x42214e of _0x2cb028)for(const _0x254127 of _0x42214e['editing']['view']['domRoots']['values']())if(_0x254127['contains'](_0x5f0ee8))return void _0x42214e['editing']['view']['focus']();_0x5f0ee8['focus']();}};this['listenTo'](this['collection'],'add',(_0x4581fd,_0x2dcaa6)=>{this['listenTo'](_0x2dcaa6,'escape',_0x96be22,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x3dde8d,_0x4e310d)=>{this['stopListening'](_0x4e310d,'escape',_0x96be22);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x57c986{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[O,lt,st];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42ff39){super(_0x42ff39),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x1e6596=this['context']['config'];_0x1e6596['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1e6596['define']('comments.maxThreadTotalWeight',0x1f4),_0x1e6596['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1e6596['define']('comments.CommentThreadView',gt),_0x1e6596['define']('comments.CommentView',Tt),_0x1e6596['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x3d3598=this['context']['plugins']['get'](O);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x23387c,_0x4c35aa)=>this['_addCommentThread'](_0x4c35aa)),this['on']('submitCommentThread',(_0x25b78e,_0x560089)=>this['_submitCommentThread'](_0x560089)),this['on']('resolveCommentThread',(_0x118b01,_0x398a20)=>this['_resolveCommentThread'](_0x398a20)),this['on']('resolveCommentThread',(_0x5e1fb7,_0x5ca650)=>this['_updateActiveAnnotation'](_0x5ca650),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x11cedb,_0x1aac18)=>this['_reopenCommentThread'](_0x1aac18)),this['on']('reopenCommentThread',(_0x4990a4,_0x44f20e)=>this['_updateActiveAnnotation'](_0x44f20e),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x14ecbd,_0x4c921a)=>this['_removeCommentThread'](_0x4c921a)),this['on']('updateCommentThread',(_0x227060,_0x3f6bbf)=>this['_updateCommentThread'](_0x3f6bbf)),this['on']('updateCommentThread',(_0x1a675a,_0x1ecefc)=>this['_updateActiveAnnotation'](_0x1ecefc),{'priority':'lowest'}),this['on']('addComment',(_0x4a33f6,_0x3e66fe)=>this['_addComment'](_0x3e66fe)),this['on']('updateComment',(_0x143f1d,_0x298ed3)=>this['_updateComment'](_0x298ed3)),this['on']('removeComment',(_0x40afa2,_0x3f5047)=>this['_removeComment'](_0x3f5047)),this['on']('addComment',(_0x12649c,{threadId:_0x4922a3,isFromAdapter:_0xf98115})=>{if(_0xf98115)return;const _0x547cb1=this['getCommentThread'](_0x4922a3),_0x290595=_0x547cb1&&this['_threadToController']['get'](_0x547cb1);_0x290595&&_0x290595['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x3d3598,'change:activeAnnotations',(_0x58fee8,_0xfcef20,_0xc0e046)=>{const _0x5b8bff=Array['from'](_0xc0e046)['map'](_0x32a0b4=>this['_viewToController']['get'](_0x32a0b4['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x5b8bff?_0x5b8bff['model']:null;});}set['adapter'](_0x31218e){if(this['_adapter'])throw new _0x43099f('commentsrepository-adapter-already-set');this['_adapter']=_0x31218e;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0xabbafb=_t,threadId:_0x2f8514=_0x2415f3(),comments:_0x3199ba=[],unlinkedAt:_0x334982=null,resolvedAt:_0x1e982e=null,resolvedBy:_0xbd6f73=null,target:_0x2bf6e2=null,context:_0x530e08=null,attributes:_0xc8b6c2={},isResolvable:_0x553662=!0x0,isSubmitted:_0x37e482=!0x1,isFromAdapter:_0x2c5048=!0x1}={}){return this['fire'](Nt('addCommentThread',_0xabbafb),{'channelId':_0xabbafb,'threadId':_0x2f8514,'comments':_0x3199ba,'unlinkedAt':_0x334982,'resolvedAt':_0x1e982e,'resolvedBy':_0xbd6f73,'target':_0x2bf6e2,'context':_0x530e08,'attributes':_0xc8b6c2,'isFromAdapter':_0x2c5048,'isResolvable':_0x553662,'isSubmitted':_0x37e482}),this['getCommentThread'](_0x2f8514);}['openNewCommentThread']({channelId:_0x6bb07c=_t,threadId:_0x129ea8=_0x2415f3(),target:_0x9a9be0,context:_0x3670ed=null,isResolvable:_0x82d8ef=!0x0}){if(this['_readOnlyChannels']['has'](_0x6bb07c)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x9a9be0)throw new _0x43099f('commentsrepository-missing-target');const _0x20c091=this['addCommentThread']({'channelId':_0x6bb07c,'threadId':_0x129ea8,'target':_0x9a9be0,'context':_0x3670ed,'isResolvable':_0x82d8ef});if(!_0x20c091)return null;const _0x49b289=this['_threadToController']['get'](_0x20c091),_0x1071e7=_0x49b289['view']['commentThreadInputView']['commentInputView'],_0x419069=this['context']['plugins']['get'](O),_0x9c1f30=_0x419069['getByInnerView'](_0x49b289['view']);return _0x419069['activate'](_0x9c1f30),_0x1071e7['once']('editorReady',()=>_0x1071e7['focus']()),_0x20c091;}['hasCommentThread'](_0x13904a){if('string'!=typeof _0x13904a)throw new _0x43099f('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x13904a);}['updateCommentThread']({channelId:_0x49fc0f=_t,threadId:_0x5b60db,context:_0x21d4b2,unlinkedAt:_0x140c31,attributes:_0x3eac4d,isFromAdapter:_0x28ac03=!0x1}){return this['fire'](Nt('updateCommentThread',_0x49fc0f),{'channelId':_0x49fc0f,'threadId':_0x5b60db,'context':_0x21d4b2,'unlinkedAt':_0x140c31,'attributes':_0x3eac4d,'isFromAdapter':_0x28ac03}),this['getCommentThread'](_0x5b60db);}['getCommentThread'](_0x25794a){if('string'!=typeof _0x25794a)throw new _0x43099f('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x25794a);}['fetchCommentThread']({channelId:_0x3ecdf7,threadId:_0x5d7189}={}){const _0xe65fe1=this['getCommentThread'](_0x5d7189);if(_0xe65fe1)return Promise['resolve'](_0xe65fe1);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x43099f('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x3ecdf7,'threadId':_0x5d7189})['then'](_0xcb98d7=>this['hasCommentThread'](_0x5d7189)?this['getCommentThread'](_0x5d7189):_0xcb98d7?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x3ecdf7},_0xcb98d7)):void 0x0)['catch'](_0x3ed8f0=>{throw console['error'](_0x3ed8f0),new _0x43099f('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x251254,skipNotAttached:_0x40a1d5=!0x1,skipEmpty:_0x43bb92=!0x1,toJSON:_0x163a9b=!0x1}={}){const _0xf85f07=[];for(const _0xfb1b66 of this['_threads']['values']())_0x251254&&_0xfb1b66['channelId']!==_0x251254||_0x40a1d5&&!_0xfb1b66['isAttached']||_0x43bb92&&0x0===_0xfb1b66['length']||_0xf85f07['push'](_0xfb1b66);return _0x163a9b?_0xf85f07['map'](_0x2e7f26=>_0x2e7f26['toJSON']()):_0xf85f07;}['setActiveCommentThread'](_0xbbc160){const _0x38e79a=this['context']['plugins']['get'](O);if(!_0xbbc160)return void(this['activeCommentThread']&&_0x38e79a['deactivateAll']());const _0x1082d2=this['getCommentThread'](_0xbbc160);if(!_0x1082d2)throw new _0x43099f('commentsrepository-active-missing-comment-thread',null,{'threadId':_0xbbc160});if(!this['_threadToController']['has'](_0x1082d2))throw new _0x43099f('commentsrepository-active-not-attached',null,{'threadId':_0xbbc160});const _0x599413=_0x38e79a['getByInnerView'](this['_threadToController']['get'](_0x1082d2)['view']);_0x38e79a['activate'](_0x599413);}['switchReadOnly'](_0x28a969,_0x415d68){_0x28a969?this['_readOnlyChannels']['add'](_0x415d68):this['_readOnlyChannels']['delete'](_0x415d68),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x2c6a54){return this['_readOnlyChannels']['has'](_0x2c6a54)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x1a3bcb,_0x1e923c){return new vt(_0x1a3bcb,_0x1e923c);}['setPermissions'](_0x2645d7,_0x35a529=_t){this['_permissions']['set'](_0x35a529,_0x2645d7),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x38709b=_t){return this['_permissions']['has'](_0x38709b)?this['_permissions']['get'](_0x38709b):bt;}['_addCommentThread']({channelId:_0x5cc17e,threadId:_0x554f8a,comments:_0x1536e5,unlinkedAt:_0x2e9577,resolvedAt:_0x5f1dd1,resolvedBy:_0x3be7dc,target:_0x15f7fb,context:_0x76e7bb,attributes:_0x5780f1,isFromAdapter:_0x49d2c0,isResolvable:_0x3427bc,isSubmitted:_0x394d61}){if('string'!=typeof _0x554f8a)throw new _0x43099f('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x554f8a});if(this['hasCommentThread'](_0x554f8a))throw new _0x43099f('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x554f8a});const _0x284f1b=new ui(this,{'channelId':_0x5cc17e,'id':_0x554f8a,'context':_0x76e7bb,'attributes':_0x5780f1,'unlinkedAt':_0x2e9577,'resolvedAt':_0x5f1dd1,'resolvedBy':_0x3be7dc?this['context']['plugins']['get'](st)['getUser'](_0x3be7dc):null,'isResolvable':_0x3427bc,'isSubmitted':_0x394d61||_0x49d2c0});this['_threads']['set'](_0x554f8a,_0x284f1b);for(const _0x51f9cb of _0x1536e5)_0x284f1b['_add'](this['_createNewComment']({'threadId':_0x554f8a,..._0x51f9cb}));return _0x15f7fb&&_0x284f1b['attachTo'](_0x15f7fb),_0x49d2c0||!_0x284f1b['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x5cc17e,'threadId':_0x554f8a});}['_submitCommentThread']({channelId:_0x3c3f46,threadId:_0x514109}){if(!this['hasCommentThread'](_0x514109))throw new _0x43099f('commentsrepository-missing-comment-thread',this);const _0x32730c=this['getCommentThread'](_0x514109);if(_0x32730c['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x263153,comments:_0x4351fb,resolvedAt:_0x31759b,resolvedBy:_0xe6b9c5,context:_0xa0c081,attributes:_0x57ebc2}=_0x32730c,_0x2e08a6=this['context']['plugins']['get']('PendingActions'),_0x5ef95b=_0x2e08a6['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x3c3f46,'threadId':_0x263153,'comments':_0x4351fb['map'](_0x2eae30=>_0x2eae30['toJSON']()),'resolvedAt':_0x31759b,'resolvedBy':_0xe6b9c5?_0xe6b9c5['id']:_0xe6b9c5,'context':_0xa0c081,'attributes':_0x57ebc2})['then'](({comments:_0xb17404})=>{_0x2e08a6['remove'](_0x5ef95b);for(const _0x39dc9e of _0xb17404)this['_updateComment']({'channelId':_0x3c3f46,'threadId':_0x514109,'commentId':_0x39dc9e['commentId'],'createdAt':_0x39dc9e['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x51afee=>{throw console['error'](_0x51afee),new _0x43099f('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x15c7eb,target:_0x1cb96c}){const _0x2f460d=this['getCommentThread'](_0x15c7eb);if(!_0x2f460d)throw new _0x43099f('commentsrepository-attach-missing-comment-thread',this);const _0x1d0971=this['context']['plugins']['get']('PendingActions'),_0x4ee005=this['context']['plugins']['get'](O),_0x123e9a=this['_createCommentThreadView'](_0x2f460d),_0x113df5=new vt(_0x2f460d,_0x123e9a);let _0x3ae95d=null;_0x123e9a['on']('change:isDirty',(_0x134227,_0x3ca446,_0x533ba4)=>{_0x533ba4?_0x3ae95d=_0x1d0971['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x3ae95d&&(_0x1d0971['remove'](_0x3ae95d),_0x3ae95d=null);}),this['_threadToController']['set'](_0x2f460d,_0x113df5),this['_viewToController']['set'](_0x123e9a,_0x113df5);const _0xcd6c48=new S(this['context']['locale'],_0x123e9a);_0xcd6c48['bind']('length')['to'](_0x123e9a),_0xcd6c48['bind']('isDirty')['to'](_0x123e9a,'isDirty',_0x123e9a,'length',(_0x3d787b,_0x3067df)=>_0x3d787b||!_0x3067df),_0xcd6c48['bind']('isActive')['to'](_0x123e9a),_0xcd6c48['type']='comment';const _0x3f48d0=new d({'view':_0xcd6c48,'target':_0x1cb96c,'type':'comment','isVisible':!_0x2f460d['archivedAt']});return _0x123e9a['on']('escape',()=>{_0x3f48d0['fire']('escape');}),this['_bindAnnotationToEditors'](_0x123e9a,_0x3f48d0),_0x4ee005['add'](_0x3f48d0),_0x3f48d0;}['_bindAnnotationToEditors'](_0x32ebf9,_0x46f7d4){this['listenTo'](_0x32ebf9,'editorReady',(_0x514325,_0x33df75)=>{const _0x6b0422=_0x33df75['ui']['view']['body']['bodyCollectionContainer'];_0x46f7d4['focusableElements']['add'](_0x6b0422),this['context']instanceof _0x243d1d&&this['context']['ui']['focusTracker']['add'](_0x6b0422);},{'priority':'highest'}),this['listenTo'](_0x32ebf9,'editorDestroyed',(_0x5c797d,_0x2ad753)=>{const _0xc3b138=_0x2ad753['ui']['view']['body']['bodyCollectionContainer'];_0x46f7d4['focusableElements']['has'](_0xc3b138)&&_0x46f7d4['focusableElements']['remove'](_0xc3b138),this['context']instanceof _0x243d1d&&this['context']['ui']['focusTracker']['remove'](_0xc3b138);});}['_unbindEditors'](_0x59c114){this['stopListening'](_0x59c114,'editorReady'),this['stopListening'](_0x59c114,'editorDestroyed');}['_createCommentThreadView'](_0x3db812){const _0x21ece0=this['context']['plugins']['get'](st),{config:_0x478b05,locale:_0x2d84c7}=this['context'],_0x466ba9=pt(_0x478b05['get']('locale'),_0x2d84c7);return new(0x0,(_0x478b05['get']('comments'))['CommentThreadView'])(_0x2d84c7,_0x3db812,_0x21ece0['me'],{'editorConfig':{..._0x478b05['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x478b05['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x478b05['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x478b05['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x478b05['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x466ba9,'CommentView':_0x478b05['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x22c6cd,channelId:_0x473f22,resolvedAt:_0x3e75b0,resolvedBy:_0x225179,isFromAdapter:_0x50bf22}){if(!this['hasCommentThread'](_0x22c6cd))throw new _0x43099f('commentsrepository-missing-comment-thread',null,{'threadId':_0x22c6cd});const _0x32cf6c=this['getCommentThread'](_0x22c6cd);if(_0x32cf6c['isResolved'])throw new _0x43099f('commentsrepository-resolved-comment-thread',null,{'threadId':_0x22c6cd});const _0x422818=this['context']['plugins']['get'](st);if(_0x32cf6c['resolvedBy']=_0x422818['getUser'](_0x225179),_0x32cf6c['resolvedAt']=_0x3e75b0,_0x50bf22||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x20ac3b=this['context']['plugins']['get']('PendingActions'),_0x36105e=_0x20ac3b['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x473f22,'threadId':_0x22c6cd})['then'](({resolvedAt:_0x12af78,resolvedBy:_0x3f4814})=>{_0x20ac3b['remove'](_0x36105e),_0x32cf6c['resolvedBy']['id']!==_0x3f4814&&(_0x32cf6c['resolvedBy']=_0x422818['getUser'](_0x3f4814)),_0x32cf6c['resolvedAt']=_0x12af78;})['catch'](_0x45b7ec=>{throw console['error'](_0x45b7ec),new _0x43099f('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x50b4be,channelId:_0x387e36,isFromAdapter:_0x33b745}){if(!this['hasCommentThread'](_0x50b4be))throw new _0x43099f('commentsrepository-missing-comment-thread',null,{'threadId':_0x50b4be});const _0x35b013=this['getCommentThread'](_0x50b4be);if(!_0x35b013['isResolved'])throw new _0x43099f('commentsrepository-reopen-comment-thread',null,{'threadId':_0x50b4be});if(_0x35b013['resolvedBy']=null,_0x35b013['resolvedAt']=null,_0x33b745||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x4ed77f=this['context']['plugins']['get']('PendingActions'),_0x396f95=_0x4ed77f['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x387e36,'threadId':_0x50b4be})['then'](()=>_0x4ed77f['remove'](_0x396f95))['catch'](_0x242071=>{throw console['error'](_0x242071),new _0x43099f('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x152014,isFromAdapter:_0x522820}){const _0x16fe0e=this['getCommentThread'](_0x152014);if(!_0x16fe0e)throw new _0x43099f('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x152014),this['_threads']['delete'](_0x152014),!_0x16fe0e['isSubmitted']||_0x522820||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5c0a08=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4dd755}=_0x16fe0e,_0x5b4d12=_0x5c0a08['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x4dd755,'threadId':_0x152014})['then'](()=>_0x5c0a08['remove'](_0x5b4d12))['catch'](_0x1c2edf=>{throw console['error'](_0x1c2edf),new _0x43099f('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x736a56,unlinkedAt:_0x200531,context:_0x5eaee0,attributes:_0x3738ef,isFromAdapter:_0xd94896}){if('string'!=typeof _0x736a56)throw new _0x43099f('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x736a56});if(!this['hasCommentThread'](_0x736a56))throw new _0x43099f('commentsrepository-missing-comment-thread',null,{'threadId':_0x736a56});const _0x5731b1=this['getCommentThread'](_0x736a56);let _0x2c0958=!0x1;if(void 0x0!==_0x5eaee0&&_0x5731b1['context']!==_0x5eaee0&&(_0x5731b1['context']=_0x5eaee0,_0x2c0958=!0x0),void 0x0!==_0x200531&&_0x5731b1['unlinkedAt']!==_0x200531&&(_0x5731b1['unlinkedAt']=_0x200531,_0x2c0958=!0x0),_0x3738ef&&!At(_0x3738ef,_0x5731b1['attributes'])&&(_0x5731b1['attributes']=_0x3738ef,_0x2c0958=!0x0),!_0x2c0958)return Promise['resolve']();if(!_0x5731b1['isSubmitted']||_0xd94896||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0xa9b9cc=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2609c2}=_0x5731b1,_0x3c1be1=_0xa9b9cc['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x2609c2,'threadId':_0x736a56,'context':_0x5eaee0,'unlinkedAt':_0x200531,'attributes':_0x3738ef})['then'](()=>_0xa9b9cc['remove'](_0x3c1be1))['catch'](_0x39ea1b=>{throw console['error'](_0x39ea1b),new _0x43099f('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0xc4db98){const _0x4b25ee=this['context']['plugins']['get'](O),_0x4c08c9=this['getCommentThread'](_0xc4db98);if(_0x4c08c9['_isAttached']=!0x1,this['_threadToController']['has'](_0x4c08c9)){const _0x37c365=this['_threadToController']['get'](_0x4c08c9),_0x34d78a=_0x37c365['view'],_0x33078a=_0x4b25ee['getByInnerView'](_0x34d78a);this['_threadToController']['delete'](_0x4c08c9),this['_viewToController']['delete'](_0x34d78a),_0x33078a&&_0x4b25ee['remove'](_0x33078a),_0x37c365['destroy'](),_0x34d78a['destroy']()['then'](()=>{this['_unbindEditors'](_0x34d78a);});}}['_updateActiveAnnotation']({threadId:_0x3eb569,resolvedAt:_0x1493f2,unlinkedAt:_0x4e49d4}){const _0x5ac5d9=!!_0x1493f2,_0x260828=this['context']['plugins']['get'](O),_0x1856b6=this['getCommentThread'](_0x3eb569);if(this['_threadToController']['has'](_0x1856b6)){const _0x196a3e=this['_threadToController']['get'](_0x1856b6)['view'],_0x497122=_0x260828['getByInnerView'](_0x196a3e);_0x497122&&(_0x5ac5d9&&_0x260828['_removeActiveAnnotation'](_0x497122),_0x4e49d4?_0x497122['isVisible']=!0x1:_0x497122['refreshVisibility']());}}['_getExternalAuthor'](_0xb1e0dc){const _0xfacbd1=this['context']['plugins']['get'](st),_0x2346e3=It('external:'+_0xb1e0dc),_0x27edf3=_0xfacbd1['getUser'](_0x2346e3);return _0x27edf3||_0xfacbd1['addUser']({'id':_0x2346e3,'name':_0xb1e0dc});}['_createNewComment']({threadId:_0x81e2d1,commentId:_0x3e8964=_0x2415f3(),content:_0x5a615c,authorId:_0x4f7774,createdAt:_0x479219,attributes:_0x37d532}){if('string'!=typeof _0x3e8964)throw new _0x43099f('commentsrepository-invalid-commentid');if('string'!=typeof _0x4f7774)throw new _0x43099f('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x5a615c||!_0x5a615c['trim']())throw new _0x43099f('commentsrepository-invalid-comment-content');const _0x579d9b=this['context']['plugins']['get'](st)['getUser'](_0x4f7774);if(!_0x579d9b)throw new _0x43099f('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x4f7774});let _0x2d06f2=null,_0x4cf84a=_0x479219;return _0x37d532?.['@external']&&(_0x2d06f2=this['_getExternalAuthor'](_0x37d532['@external']['authorName']),_0x4cf84a=new Date(_0x37d532['@external']['createdAt'])),new fi(this,{'threadId':_0x81e2d1,'id':_0x3e8964,'author':_0x2d06f2||_0x579d9b,'creator':_0x579d9b,'content':_0x5a615c,'createdAt':_0x479219,'authoredAt':_0x4cf84a,'attributes':_0x37d532});}['_addComment'](_0x52a300){let {threadId:_0x4d9b48,content:_0x5e53a8,attributes:_0x4039f0,isFromAdapter:_0x567985}=_0x52a300;const _0x112b2e=this['getCommentThread'](_0x52a300['threadId']);if(!_0x112b2e)throw new _0x43099f('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x2ded1d=this['_createNewComment'](_0x52a300),{id:_0x47f48c}=_0x2ded1d;if(_0x112b2e['_add'](_0x2ded1d),_0x567985||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x112b2e['isSubmitted'])return Promise['resolve']();const _0x193665=this['context']['plugins']['get']('PendingActions'),{channelId:_0x333bab}=_0x112b2e,_0x3e9fdb=_0x193665['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x4039f0||(_0x4039f0={}),this['adapter']['addComment']({'channelId':_0x333bab,'threadId':_0x4d9b48,'commentId':_0x47f48c,'content':_0x5e53a8,'attributes':_0x4039f0})['then'](_0x513665=>{_0x193665['remove'](_0x3e9fdb),_0x513665&&this['_updateComment']({'channelId':_0x333bab,'threadId':_0x4d9b48,'commentId':_0x47f48c,'createdAt':_0x513665['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3e33e0=>{throw console['error'](_0x3e33e0),new _0x43099f('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x7aafb1,commentId:_0x479ef7,content:_0x2d1610,createdAt:_0x54b0a4,attributes:_0x4b33ba,isFromAdapter:_0x1e0afc}){if(void 0x0!==_0x2d1610&&('string'!=typeof _0x2d1610||!_0x2d1610['trim']()['length']))throw new _0x43099f('commentsrepository-update-comment-invalid-content');const _0x5a95e1=this['getCommentThread'](_0x7aafb1),_0x446bd7=_0x5a95e1['getComment'](_0x479ef7);if(!_0x446bd7)throw new _0x43099f('commentsrepository-update-missing-comment',this);let _0x167db1=!0x1;if(_0x2d1610&&_0x2d1610!==_0x446bd7['content']&&(_0x446bd7['isEditable']||_0x1e0afc)&&(_0x446bd7['content']=_0x2d1610,_0x167db1=!0x0),_0x54b0a4&&_0x54b0a4!==_0x446bd7['createdAt']&&(_0x446bd7['createdAt']=_0x54b0a4,_0x446bd7['attributes']&&_0x446bd7['attributes']['@external']||(_0x446bd7['authoredAt']=_0x54b0a4),_0x167db1=!0x0),_0x4b33ba&&!At(_0x4b33ba,_0x446bd7['attributes'])&&(_0x446bd7['attributes']=_0x4b33ba,_0x167db1=!0x0),!_0x167db1)return Promise['resolve']();if(_0x5a95e1['fire']('commentUpdated'),_0x1e0afc||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x2deef0=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4bb5fa}=this['getCommentThread'](_0x446bd7['threadId']),_0x2bbd99=_0x2deef0['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x4bb5fa,'threadId':_0x7aafb1,'commentId':_0x479ef7,'content':_0x2d1610,'attributes':_0x4b33ba})['then'](()=>_0x2deef0['remove'](_0x2bbd99))['catch'](_0x3b74f2=>{throw console['error'](_0x3b74f2),new _0x43099f('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x3ba7f0,commentId:_0x3d75f0,isFromAdapter:_0x192868}){const _0x264cba=this['getCommentThread'](_0x3ba7f0),_0x4dd48c=_0x264cba['getComment'](_0x3d75f0);if(!_0x4dd48c)throw new _0x43099f('commentsrepository-remove-missing-comment',this);if(_0x264cba['_remove'](_0x4dd48c),_0x192868||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x485e93=this['context']['plugins']['get']('PendingActions'),{channelId:_0x16dbb1}=_0x264cba,_0x35abbb=_0x485e93['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x16dbb1,'threadId':_0x3ba7f0,'commentId':_0x3d75f0})['then'](()=>_0x485e93['remove'](_0x35abbb))['catch'](_0x2272bb=>{throw console['error'](_0x2272bb),new _0x43099f('commentsrepository-remove-comment-internal-error',this);});}}class ui extends/* #__PURE__ -- @preserve */
30
+ _0x19e9b6(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x57dd8a,_0x28c43f){super();const _0x1a7164=_0x28c43f['isResolvable'];this['channelId']=_0x28c43f['channelId'],this['id']=_0x28c43f['id'],this['comments']=new _0x28495a(),this['_repository']=_0x57dd8a,this['_isAttached']=!0x1,this['_isSubmitted']=_0x28c43f['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x57dd8a,'_permissions',_0x57dd8a,'_readOnlyChannels',()=>_0x57dd8a['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x57dd8a,'_permissions',()=>_0x57dd8a['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x57dd8a,'_permissions',()=>{const _0x3691b4=_0x57dd8a['getPermissions'](this['channelId']);return _0x3691b4['write']||_0x3691b4['admin'];}),this['bind']('isResolvable')['to'](_0x57dd8a,'_permissions',()=>_0x1a7164&&_0x57dd8a['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x28c43f['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x4772ef,_0x7f446f)=>_0x4772ef?_0x7f446f?_0x4772ef<_0x7f446f?_0x4772ef:_0x7f446f:_0x4772ef:_0x7f446f),this['set']('unlinkedAt',_0x28c43f['unlinkedAt']||null),this['set']('resolvedAt',_0x28c43f['resolvedAt']||null),this['set']('resolvedBy',_0x28c43f['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x5c7ea8=>!!_0x5c7ea8),this['set']('attributes',_0x28c43f['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x62d4c4,_0x2954e3)=>_0x62d4c4+_0x2954e3['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x36ea16,id:_0x3b7edc}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x36ea16),{'channelId':_0x36ea16,'threadId':_0x3b7edc});}['setUnlinkedAt'](_0x53539d){this['_update']({'unlinkedAt':_0x53539d});}['resolve']({resolvedAt:_0x14020e=new Date(),resolvedBy:_0x4569d6=null,isFromAdapter:_0x43f2dd=!0x1}={}){const _0x556918=this['_repository']['context']['plugins']['get'](st)['me'],{channelId:_0x210edd,id:_0x490c2f}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x210edd),{'channelId':_0x210edd,'threadId':_0x490c2f,'resolvedAt':_0x14020e,'resolvedBy':_0x4569d6||_0x556918['id'],'isFromAdapter':_0x43f2dd});}['reopen']({isFromAdapter:_0x1592ee=!0x1}={}){const {channelId:_0x5bd44c,id:_0x47ec2f}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x5bd44c),{'channelId':_0x5bd44c,'threadId':_0x47ec2f,'isFromAdapter':_0x1592ee});}['setContext'](_0x4d1532){this['context']||this['_update']({'context':_0x4d1532});}['setAttribute'](_0x5560fe,_0x4ca69d){const _0x1c34c5=wt(this['attributes']);yt(_0x1c34c5,_0x5560fe,_0x4ca69d),this['_update']({'attributes':_0x1c34c5});}['removeAttribute'](_0x9f8b6d){const _0x237f77=wt(this['attributes']);Ct(_0x237f77,_0x9f8b6d),this['_update']({'attributes':_0x237f77});}['remove']({isFromAdapter:_0x5dcb3c=!0x1}={}){const {channelId:_0xd960e2,id:_0x328113}=this;this['_repository']['fire'](Nt('removeCommentThread',_0xd960e2),{'channelId':_0xd960e2,'threadId':_0x328113,'isFromAdapter':_0x5dcb3c});}['attachTo'](_0x7925b2){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x7925b2});}['addComment'](_0x1c4b85){const {channelId:_0x14060e,id:_0xd218b6}=this;this['_repository']['fire'](Nt('addComment',_0x14060e,_0xd218b6),Object['assign']({'channelId':_0x14060e,'threadId':_0xd218b6},_0x1c4b85));}['getComment'](_0x449a71){if('string'!=typeof _0x449a71)throw new _0x43099f('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x449a71});return this['comments']['get'](_0x449a71);}['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'](_0x55bce0=>_0x55bce0['toJSON']()),'attributes':this['attributes']};}['_add'](_0x2037cf){return this['listenTo'](_0x2037cf,'change:authoredAt',()=>{const _0x28ce29=this['_findOptimalIndex'](_0x2037cf),_0x511325=this['comments'];_0x28ce29-0x1!=_0x511325['getIndex'](_0x2037cf)&&_0x28ce29+0x1!=_0x511325['getIndex'](_0x2037cf)&&(this['_remove'](_0x2037cf),this['_add'](_0x2037cf));}),this['comments']['add'](_0x2037cf,this['_findOptimalIndex'](_0x2037cf));}['_update'](_0x5400cf){const {channelId:_0x4a4294,id:_0x47d304}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x4a4294),{..._0x5400cf,'channelId':_0x4a4294,'threadId':_0x47d304});}['_remove'](_0xf73081){return this['stopListening'](_0xf73081),_0xf73081['destroy'](),this['comments']['remove'](_0xf73081);}['_findOptimalIndex'](_0x2ebfdb){const _0x4a1497=this['comments']['find'](_0xc0085b=>new Date(_0xc0085b['authoredAt'])['getTime']()>new Date(_0x2ebfdb['authoredAt'])['getTime']());return _0x4a1497?this['comments']['getIndex'](_0x4a1497):this['length'];}}class fi extends/* #__PURE__ -- @preserve */
31
+ _0x19e9b6(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x4dd14f,_0x207c45){super();const _0x227cf8=_0x4dd14f['context']['plugins']['get'](st)['me'],_0x2eda77=_0x4dd14f['getCommentThread'](_0x207c45['threadId']),_0x4f6b0b=0x0===_0x2eda77['comments']['length'],_0x5bdfe4=_0x227cf8===_0x207c45['author'];this['id']=_0x207c45['id'],this['threadId']=_0x207c45['threadId'],this['author']=_0x207c45['author'],this['creator']=_0x207c45['creator'],this['isExternal']=Boolean(_0x207c45['attributes']&&_0x207c45['attributes']['@external']),this['set']('content',_0x207c45['content']),this['createdAt']=_0x207c45['createdAt']||new Date(),this['set']('authoredAt',_0x207c45['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x2eda77,'resolvedAt'),this['set']('attributes',_0x207c45['attributes']||{}),this['bind']('isEditable')['to'](_0x4dd14f,'_permissions',()=>{const _0x31eb49=_0x4dd14f['getPermissions'](_0x2eda77['channelId'])['write'],_0x39be97=_0x4dd14f['getPermissions'](_0x2eda77['channelId'])['modifyAll'];return _0x5bdfe4&&_0x31eb49||!_0x5bdfe4&&_0x39be97;}),this['bind']('isRemovable')['to'](_0x2eda77,'isRemovable',_0x4dd14f,'_permissions',_0x65e4d9=>{const _0x59f2f8=_0x4dd14f['getPermissions'](_0x2eda77['channelId'])['write'],_0x4eb46a=_0x4dd14f['getPermissions'](_0x2eda77['channelId'])['modifyAll'];return _0x5bdfe4&&_0x59f2f8||_0x65e4d9&&_0x4f6b0b||!_0x5bdfe4&&_0x4eb46a&&!_0x4f6b0b;}),this['bind']('isReadOnly')['to'](_0x2eda77,'isReadOnly'),this['_repository']=_0x4dd14f;}get['weight'](){return Math['max'](function(_0x559ba9){const _0x23e3c2=document['createElement']('div');return _0x23e3c2['innerHTML']=_0x559ba9,_0x23e3c2['textContent']['length'];}(this['content']),0xc8);}['update'](_0x2ce784){const {threadId:_0x30dece,id:_0x579ab4}=this;if(!this['_repository']['hasCommentThread'](_0x30dece))throw new _0x43099f('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x3a1b84}=this['_repository']['getCommentThread'](_0x30dece);this['_repository']['fire'](Nt('updateComment',_0x3a1b84,_0x30dece),{'channelId':_0x3a1b84,'threadId':_0x30dece,'commentId':_0x579ab4,..._0x2ce784});}['setAttribute'](_0x4b6d13,_0x191835){const _0x18f919=wt(this['attributes']);yt(_0x18f919,_0x4b6d13,_0x191835),this['update']({'attributes':_0x18f919});}['removeAttribute'](_0x13d6ef){const _0x190ccc=wt(this['attributes']);Ct(_0x190ccc,_0x13d6ef),this['update']({'attributes':_0x190ccc});}['remove'](_0x330abd={}){if(!_0x330abd['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x59cc8a,id:_0x3844a7}=this;if(!this['_repository']['hasCommentThread'](_0x59cc8a))throw new _0x43099f('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x592dc8}=this['_repository']['getCommentThread'](_0x59cc8a);this['_repository']['fire'](Nt('removeComment',_0x592dc8,_0x59cc8a),{'channelId':_0x592dc8,'threadId':_0x59cc8a,'commentId':_0x3844a7,..._0x330abd});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x3d03f7,..._0x5596bb){for(const _0x11f0a5 of _0x5596bb)void 0x0!==_0x11f0a5&&(_0x3d03f7+=':'+String(_0x11f0a5));return _0x3d03f7;}class K extends _0x429836{['refresh'](){const _0x555c86=this['editor']['model']['document']['selection'];for(const _0x1ac460 of _0x555c86['getRanges']())if(this['_hasContent'](_0x1ac460))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x455391=_0x2415f3()}={}){const _0x59ff57=this['editor']['model'],_0x4958a0=[];for(const _0x49ace7 of _0x59ff57['document']['selection']['getRanges']())this['_hasContent'](_0x49ace7)&&_0x4958a0['push'](this['_trimToContent'](_0x49ace7));_0x59ff57['change'](_0x1deb08=>{for(const _0x49eef9 of _0x4958a0){const _0x1636d4=_0x2415f3()['substr'](0x1,0x5),_0x3e175b='comment:'+_0x455391+':'+_0x1636d4;_0x1deb08['addMarker'](_0x3e175b,{'range':_0x49eef9,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x5aeee9){for(const _0x26ac64 of _0x5aeee9['getItems']())if(this['_itemIsContent'](_0x26ac64))return!0x0;return!0x1;}['_itemIsContent'](_0xd7494c){return _0xd7494c['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0xd7494c)&&!_0xd7494c['is']('element','tableCell');}['_trimToContent'](_0x5ee94d){const _0x46df3d=_0x57e1c5=>!this['_itemIsContent'](_0x57e1c5['item']),_0x5f39bd=_0x5ee94d['start']['getLastMatchingPosition'](_0x46df3d),_0x4b8cc8=_0x5ee94d['end']['getLastMatchingPosition'](_0x46df3d,{'direction':'backward'});return this['editor']['model']['createRange'](_0x5f39bd,_0x4b8cc8);}}class P extends _0x3f67cf{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[O];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5de908){super(_0x5de908),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x10a22f=this['editor'],_0x24cd25=_0x10a22f['model']['document']['selection'],_0x4cfdd6=_0xd145ad(()=>this['refreshSelectedViews'](),0xa);_0x24cd25['on']('change:range',(_0x32661a,_0x5ac4aa)=>{_0x5ac4aa['directChange']&&(_0x4cfdd6['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x10a22f['editing']['view']['document'],'change:isFocused',(_0x174e4f,_0x4f15bd,_0x20c1aa)=>{_0x20c1aa&&_0x4cfdd6();}),this['listenTo'](_0x10a22f['ui']['focusTracker'],'change:isFocused',(_0x14cd1c,_0x4b391e,_0x304306)=>{_0x304306||_0x10a22f['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x4bed0a=>this['_editorAnnotationsData']['has'](_0x4bed0a['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x435af9){if(this['_editorAnnotations']['has'](_0x435af9['view']))return;this['_editorAnnotations']['add'](_0x435af9['view']),this['editor']['ui']['focusTracker']['add'](_0x435af9['view']['element']);const _0x40f357=this['editor']['plugins']['get'](O);this['listenTo'](_0x40f357['collection'],'remove',(_0x34c370,_0x424263)=>{this['editor']['ui']['focusTracker']['remove'](_0x424263['view']['element']),this['_editorAnnotations']['delete'](_0x424263['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x10e555){if('function'!=typeof _0x10e555)throw new _0x43099f('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x10e555);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x153593,annotations:_0x4fcb28}){const _0x2f71ba=[],_0x1750cf=this['editor']['model']['document']['selection'],_0x415be2=Array['from'](_0x1750cf['getRanges']());for(const [_0x472660,_0x4b3bb0]of this['_editorAnnotationsData']){const _0x31c92d=_0x23bfca(_0x4b3bb0),_0x1207b0=_0x4fcb28['getByInnerView'](_0x472660);_0x31c92d&&_0x1207b0&&_0x2f71ba['push']({'annotation':_0x1207b0,'range':_0x31c92d});}function _0x23bfca(_0x505e24){for(const _0x3c8b85 of _0x505e24)for(const _0x484a2a of _0x415be2)if(_0x3c8b85['containsRange'](_0x484a2a,!_0x1750cf['isCollapsed']))return _0x3c8b85;return null;}return _0x2f71ba['sort']((_0x13a4f9,_0x1f3312)=>{const _0x135ad4=_0x13a4f9['range'],_0x2269a9=_0x1f3312['range'];if(!_0x135ad4['isEqual'](_0x2269a9)){if(_0x135ad4['containsRange'](_0x2269a9,!0x0))return 0x1;if(_0x2269a9['containsRange'](_0x135ad4,!0x0))return-0x1;}return _0x13a4f9['annotation']==_0x153593?-0x1:_0x1f3312['annotation']==_0x153593?0x1:0x0;})['map'](_0x7fe9db=>_0x7fe9db['annotation']);}get['_editorAnnotationsData'](){const _0x561ec5=new Map();for(const _0x436736 of Array['from'](this['_dataCollectors']))for(const [_0x4982e1,_0x114695]of _0x436736())_0x561ec5['set'](_0x4982e1,_0x114695);return _0x561ec5;}}class ct extends _0x3f67cf{['afterInit'](){const _0x1825ca=this['editor'];if(!_0x1825ca['plugins']['has']('RestrictedEditingModeEditing'))return;_0x1825ca['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class at extends _0x3f67cf{constructor(_0x2445f0){super(_0x2445f0),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x1661e7=this['editor'],_0x2e0426=_0x1661e7['commands']['get']('importWord'),_0x1a1e1b=_0x1661e7['plugins']['get'](st);_0x2e0426&&(_0x2e0426['on']('execute',(_0xee3ffa,[,_0x15b8d0])=>{_0x15b8d0['collaboration_features']={'comments':!0x0,'user_id':_0x1a1e1b['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x2e0426,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x52aa14,_0x1f57d1){const {comment_threads:_0x50fb36}=_0x1f57d1;_0x50fb36&&_0x50fb36['forEach'](({thread_id:_0x4e64b9,comments:_0x2975e1,is_resolved:_0x545953})=>{const _0x1883fc=new Date(),_0x2ecbb6=_0x2975e1['map'](({author:_0x2092e0,content:_0x362278,created_at:_0xcf8d7f})=>({'content':_0x362278,'authorId':this['editor']['plugins']['get'](st)['me']['id'],'createdAt':_0x1883fc,'attributes':{'@external':{'authorName':_0x2092e0,'createdAt':_0xcf8d7f?new Date(_0xcf8d7f):new Date(),'source':'importWord'}}})),_0x809aa8=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x809aa8,'threadId':_0x4e64b9,'comments':_0x2ecbb6,'resolvedAt':_0x545953?_0x1883fc:null});});}}class ut extends _0x3f67cf{constructor(_0x480c32){super(_0x480c32),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x427b59=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x427b59,'contentInsertion',(_0x505f2c,_0x3bbe0f)=>this['_removeMarkersWithoutThreads'](_0x3bbe0f['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x1a0401){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x1a0401;const _0x3f4efc=this['editor']['plugins']['get']('CommentsRepository');for(const _0x6e978a of _0x1a0401['keys']()){const [_0x4cbc42,_0x7095a7]=_0x6e978a['split'](':');'comment'!=_0x4cbc42||_0x3f4efc['hasCommentThread'](_0x7095a7)||_0x1a0401['delete'](_0x6e978a);}return _0x1a0401;}['_registerMarkerInClipboardPipeline'](){const _0x21e1fc=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x5373a4=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x5373a4&&_0x21e1fc['_registerMarkerToCopy']('comment',_0x5373a4);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x35e5ca){switch(_0x35e5ca){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ft extends _0x3f67cf{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x59b960,_0x3d5057)=>{if(!_0x3d5057['options']['showCommentHighlights'])return null;if(_0x3d5057['options']['ignoreResolvedComments']){const {id:_0x55df9a}=er(_0x59b960['markerName']),_0x1e5389=this['editor']['plugins']['get'](o);if(_0x1e5389['getCommentThread'](_0x55df9a)?.['isResolved']&&_0x59b960['item'])return _0x3d5057['consumable']['consume'](_0x59b960['item'],'addMarker:'+_0x59b960['markerName']),_0x3d5057['consumable']['consume'](_0x59b960['item'],'removeMarker:'+_0x59b960['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5992a6=>{_0x5992a6['on']('addMarker:comment',(_0x45c88d,_0x186499,_0x4eae4b)=>{if(!_0x4eae4b['options']['showCommentHighlights'])return;const _0x18487b=_0x186499['item'];if(!_0x18487b)return;const _0x5d592b=_0x4eae4b['mapper']['toViewElement'](_0x18487b);this['editor']['model']['schema']['isObject'](_0x18487b)&&_0x5d592b&&!_0x5d592b['getCustomProperty']('widget')&&_0x5d592b['is']('containerElement')&&_0x259056(_0x5d592b,_0x4eae4b['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x28f459,{writer:_0x3e3f11,options:_0x40620d})=>{if(!_0x40620d['showCommentHighlights'])return null;const _0x14c025=_0x3e3f11['createContainerElement']('div'),_0xe8cd94=_0x3e3f11['createEmptyElement']('hr');return _0x3e3f11['addClass']('ck-horizontal-line',_0x14c025),_0x3e3f11['insert'](_0x3e3f11['createPositionAt'](_0x14c025,0x0),_0xe8cd94),_0x14c025;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x242b99,{writer:_0x5715a8,options:_0x299e7e})=>{if(!_0x299e7e['showCommentHighlights'])return null;const _0x480974=_0x5715a8['createContainerElement']('span'),_0x1090da=_0x5715a8['createEmptyElement']('img');return _0x5715a8['addClass']('image-inline',_0x480974),_0x5715a8['insert'](_0x5715a8['createPositionAt'](_0x480974,0x0),_0x1090da),_0x480974;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x21495a,{writer:_0x6562ae,options:_0x4d9142})=>{if(_0x4d9142['showCommentHighlights'])return _0x6562ae['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x7852b1,_0x22ae8c,_0x4988cd)=>{_0x4988cd['options']['showCommentHighlights']&&_0x7852b1['stop']();},{'priority':'high'});}}class r extends _0x3f67cf{static get['requires'](){return[o,P,st,ct,at,ut,ft];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4575d0){super(_0x4575d0),this['set']('isThreadsLoadingPaused',!0x0),_0x4575d0['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x50b2bd,_0x8b013d,_0xa2ca75,_0x380fb7)=>{const _0x115940=_0x4575d0['plugins']['get'](o),_0x1a7591=_0xa2ca75?er(_0xa2ca75)['id']:null;_0x4575d0['model']['change'](()=>{if(_0x1a7591){const _0x535df2=this['getAllMarkersForId'](_0x1a7591);for(const _0x551433 of _0x535df2)_0x4575d0['editing']['reconvertMarker'](_0x551433);}if(_0x380fb7){const {id:_0x4c458e}=er(_0x380fb7),_0x11c8d6=_0x115940['getCommentThread'](_0x4c458e);if(_0x11c8d6&&_0x11c8d6['unlinkedAt'])return;if(_0x11c8d6&&!_0x11c8d6['isAttached'])return;const _0x1151ee=this['getAllMarkersForId'](_0x4c458e);for(const _0x281ff0 of _0x1151ee)_0x4575d0['editing']['reconvertMarker'](_0x281ff0);}}),_0x1a7591&&this['scrollToThreadMarker'](_0x1a7591);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x13cf67=this['editor'],_0x57a48d=_0x13cf67['plugins']['get'](o),_0x46e099=_0x13cf67['config']['get']('collaboration.channelId'),_0x4ed049=_0x57a48d['getCommentThreads']()['filter'](_0x109e26=>_0x109e26['channelId']!==_0x46e099);_0x13cf67['commands']['add']('addCommentThread',new K(_0x13cf67)),this['listenTo'](_0x13cf67,'change:isReadOnly',(_0x3aac3a,_0x5915ad,_0x63ec14)=>{_0x57a48d['switchReadOnly'](_0x63ec14,_0x13cf67['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x57a48d,dt('addCommentThread',_0x46e099),(_0x48c7bc,{threadId:_0xd1cbc5})=>{const _0x2e63d3=this['editor']['plugins']['get'](o)['getCommentThread'](_0xd1cbc5);_0x2e63d3?.['unlinkedAt']&&this['_attachArchivedThread'](_0xd1cbc5);}),this['listenTo'](_0x57a48d,dt('removeCommentThread',_0x46e099),(_0x34425f,{threadId:_0x4d24ce})=>{_0x13cf67['model']['enqueueChange']({'isUndoable':!0x1},_0x114e95=>{const _0x313e11=this['getAllMarkersForId'](_0x4d24ce);for(const _0x3106ef of _0x313e11)_0x114e95['removeMarker'](_0x3106ef);});}),this['listenTo'](_0x57a48d,dt('resolveCommentThread',_0x46e099),(_0x2786a6,{threadId:_0x325f41})=>{(this['_reconvertMarkers'](_0x325f41),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x325f41)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x57a48d,dt('reopenCommentThread',_0x46e099),(_0x4363da,{threadId:_0x301c29})=>{this['_reconvertMarkers'](_0x301c29);},{'priority':'low'}),this['listenTo'](_0x57a48d,dt('addComment',_0x46e099),(_0x593bb2,{threadId:_0x588f84,isFromAdapter:_0xded09a})=>{const _0x24d356=this['getAllMarkersForId'](_0x588f84);if(_0xded09a||0x0==_0x24d356['length']||!_0x57a48d['hasCommentThread'](_0x588f84))return;0x1===_0x57a48d['getCommentThread'](_0x588f84)['length']&&_0x13cf67['model']['enqueueChange']({'isUndoable':!0x1},_0x411685=>{for(const _0x163a3b of _0x24d356)_0x411685['updateMarker'](_0x163a3b,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x4ed049);}['afterInit'](){!async function(_0x57496a){const _0x267f92=_0x18a196([0x67,0x76,0x57,0x73,0x49,0x4d,0x71,0x35,0x61,0x4b,0x6c,0x4c,0x72,0x62,0x6b,0x59,0x70,0x41,0x53,0x56,0x50,0x30,0x31,0x33,0x32,0x36,0x48,0x79,0x46,0x52,0x47,0x43,0x6a,0x66,0x34,0x68,0x5a,0x74,0x38,0x75,0x6d,0x54,0x4e,0x69,0x64,0x78,0x39,0x6f,0x51,0x6e,0x63,0x42,0x45,0x58,0x4a,0x4f,0x44,0x65,0x37,0x77,0x55,0x7a]),_0x3b1f58=0x210f428d,_0x57003b=0x210829ed^_0x3b1f58,_0x3b84db=window[_0x18a196([0x44,0x61,0x74,0x65])][_0x18a196([0x6e,0x6f,0x77])](),_0x1aa524=_0x57496a[_0x18a196([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x13da0d=new window[(_0x18a196([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d0f8d=>{_0x1aa524[_0x18a196([0x6f,0x6e,0x63,0x65])](_0x18a196([0x72,0x65,0x61,0x64,0x79]),_0x1d0f8d);}),_0x51995b={[_0x18a196([0x6b,0x74,0x79])]:_0x18a196([0x45,0x43]),[_0x18a196([0x75,0x73,0x65])]:_0x18a196([0x73,0x69,0x67]),[_0x18a196([0x63,0x72,0x76])]:_0x18a196([0x50,0x2d,0x32,0x35,0x36]),[_0x18a196([0x78])]:_0x18a196([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]),[_0x18a196([0x79])]:_0x18a196([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]),[_0x18a196([0x61,0x6c,0x67])]:_0x18a196([0x45,0x53,0x32,0x35,0x36])},_0x45889a=_0x1aa524[_0x18a196([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x18a196([0x67,0x65,0x74])](_0x18a196([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8cbeba(){let _0x365789,_0x41a753=null,_0x2d708c=null;try{if(_0x45889a==_0x18a196([0x47,0x50,0x4c]))return _0x18a196([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x365789=_0x73c3ee(),!_0x365789)return _0x18a196([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x365789[_0x18a196([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d708c=_0x2285e7(_0x365789[_0x18a196([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x365789[_0x18a196([0x6a,0x74,0x69])])),await _0x1d975d()?_0x503c69()?_0x1b0bb9()?_0x18a196([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a626f()?(_0x365789[_0x18a196([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18a196([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41a753=_0x41f169(_0x18a196([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x365789[_0x18a196([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18a196([0x74,0x72,0x69,0x61,0x6c])&&(_0x41a753=_0x41f169(_0x18a196([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x47156d()):_0x18a196([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x18a196([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x18a196([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x18a196([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1b0bb9(){const _0x407472=[_0x18a196([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x18a196([0x74,0x72,0x69,0x61,0x6c])][_0x18a196([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x365789[_0x18a196([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3b84db/0x3e8:0xe10*_0x57003b;return _0x365789[_0x18a196([0x65,0x78,0x70])]<_0x407472;}function _0x503c69(){const _0x506ec1=_0x365789[_0x18a196([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x506ec1)return!0x1;if(_0x506ec1[_0x18a196([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18a196([0x2a])))return!0x0;if(_0x506ec1[_0x18a196([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18a196([0x43,0x4d,0x54])))return!0x0;if(_0x506ec1[_0x18a196([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18a196([0x52,0x43,0x4d,0x54]))){if(_0x5a6b58())return!0x0;if(_0x1cb14f()||_0x14b99d())return!0x0;}return!0x1;}function _0x4a626f(){const _0xc0a2b4=_0x365789[_0x18a196([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc0a2b4||0x0==_0xc0a2b4[_0x18a196([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d9aab}=new URL(window[_0x18a196([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xc0a2b4[_0x18a196([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d9aab))return!0x0;const _0x100632=_0x2d9aab[_0x18a196([0x73,0x70,0x6c,0x69,0x74])](_0x18a196([0x2e]));return _0xc0a2b4[_0x18a196([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33df3f=>_0x33df3f[_0x18a196([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18a196([0x2a])))[_0x18a196([0x6d,0x61,0x70])](_0x25537c=>_0x25537c[_0x18a196([0x73,0x70,0x6c,0x69,0x74])](_0x18a196([0x2e])))[_0x18a196([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5310ec=>_0x5310ec[_0x18a196([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x100632[_0x18a196([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18a196([0x6d,0x61,0x70])](_0x55edd3=>Array(_0x100632[_0x18a196([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x55edd3[_0x18a196([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18a196([0x66,0x69,0x6c,0x6c])](_0x55edd3[0x0]===_0x18a196([0x2a])?_0x18a196([0x2a]):'')[_0x18a196([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x55edd3))[_0x18a196([0x73,0x6f,0x6d,0x65])](_0x11a188=>_0x100632[_0x18a196([0x65,0x76,0x65,0x72,0x79])]((_0x18a34b,_0x5e36ba)=>_0x11a188[_0x5e36ba]===_0x18a34b||_0x11a188[_0x5e36ba]===_0x18a196([0x2a])));}function _0x47156d(){return _0x41a753&&_0x2d708c?new window[(_0x18a196([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b58d1,_0x46113a)=>{_0x41a753[_0x18a196([0x74,0x68,0x65,0x6e])](_0x1b58d1,_0x46113a),_0x2d708c[_0x18a196([0x74,0x68,0x65,0x6e])](_0x11e2e1=>{_0x11e2e1!=_0x18a196([0x56,0x61,0x6c,0x69,0x64])&&_0x1b58d1(_0x11e2e1);},_0x46113a);}):_0x41a753||_0x2d708c||_0x18a196([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2285e7(_0x5af12c,_0x34c396){return new window[(_0x18a196([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x594505=>{if(_0x4e814d())return _0x594505(_0x18a196([0x56,0x61,0x6c,0x69,0x64]));_0x230e39(),_0x1aa524[_0x18a196([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x18a196([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c09c3=!0x1;const _0x2f1718=_0x2415f3();function _0x41a679(_0x228cc0){return!!_0x228cc0&&(typeof _0x228cc0===_0x18a196([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x228cc0===_0x18a196([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x228cc0[_0x18a196([0x74,0x68,0x65,0x6e])]===_0x18a196([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x228cc0[_0x18a196([0x63,0x61,0x74,0x63,0x68])]===_0x18a196([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5322b2(_0x31be5b){_0xc898f5(_0x31be5b)[_0x18a196([0x74,0x68,0x65,0x6e])](_0x5d5513=>{if(!_0x5d5513||_0x5d5513[_0x18a196([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x18a196([0x6f,0x6b]))return _0x18a196([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x539c61(_0x58f150(_0x2f1718+_0x34c396))!=_0x5d5513[_0x18a196([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x18a196([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x18a196([0x56,0x61,0x6c,0x69,0x64]);})[_0x18a196([0x74,0x68,0x65,0x6e])](_0x5ea480=>(_0x2ad39d(),_0x5ea480),()=>{const _0x10e9bb=_0xd215fd();return null==_0x10e9bb?(_0x2ad39d(),_0x18a196([0x56,0x61,0x6c,0x69,0x64])):_0x18a196(_0x3b84db-_0x10e9bb>(0x503c68d^_0x3b1f58)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x18a196([0x74,0x68,0x65,0x6e])](_0x594505)[_0x18a196([0x63,0x61,0x74,0x63,0x68])](()=>{_0x594505(_0x18a196([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x25fb3a=0x2139ac0d^_0x3b1f58;function _0x2ad39d(){const _0x40c949=_0x18a196([0x6c,0x6c,0x63,0x74,0x2d])+_0x539c61(_0x58f150(_0x5af12c)),_0x5f3c5b=_0x249de9(_0x539c61(window[_0x18a196([0x4d,0x61,0x74,0x68])][_0x18a196([0x63,0x65,0x69,0x6c])](_0x3b84db/_0x25fb3a)));window[_0x18a196([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18a196([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40c949,_0x5f3c5b);}function _0xd215fd(){const _0x30e0e7=_0x18a196([0x6c,0x6c,0x63,0x74,0x2d])+_0x539c61(_0x58f150(_0x5af12c)),_0x32eaa3=window[_0x18a196([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18a196([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30e0e7);return _0x32eaa3?window[_0x18a196([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x249de9(_0x32eaa3),0x10)*_0x25fb3a:null;}function _0xc898f5(_0x2b71cf){return new window[(_0x18a196([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27cf2b,_0x5a5432)=>{_0x2b71cf[_0x18a196([0x74,0x68,0x65,0x6e])](_0x27cf2b,_0x5a5432),window[_0x18a196([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a5432,0x210e964d^_0x3b1f58);});}}_0x1aa524[_0x18a196([0x6f,0x6e])](_0x18a196([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x16e1ed,_0x15bab3)=>{if(_0x15bab3[0x0]!=_0x5af12c)return _0x594505(_0x18a196([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x15bab3[0x1]={..._0x15bab3[0x1],[_0x18a196([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f1718};},{[_0x18a196([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18a196([0x68,0x69,0x67,0x68])}),_0x1aa524[_0x18a196([0x6f,0x6e])](_0x18a196([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe8cb7a=>{_0x41a679(_0xe8cb7a[_0x18a196([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c09c3=!0x0,_0x5322b2(_0xe8cb7a[_0x18a196([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x18a196([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18a196([0x6c,0x6f,0x77])}),_0x13da0d[_0x18a196([0x74,0x68,0x65,0x6e])](()=>{_0x4c09c3||_0x594505(_0x18a196([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e814d(){return _0x1aa524[_0x18a196([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18a196([0x76,0x69,0x65,0x77])][_0x18a196([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x18a196([0x61,0x75,0x74,0x6f]);}function _0x230e39(){_0x1aa524[_0x18a196([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18a196([0x76,0x69,0x65,0x77])][_0x18a196([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18a196([0x61,0x75,0x74,0x6f]);}}function _0x41f169(_0x5358f4){const _0x402426=[new window[(_0x18a196([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d8d06=>setTimeout(_0x1d8d06,0x21067c41^_0x3b1f58)),_0x13da0d[_0x18a196([0x74,0x68,0x65,0x6e])](()=>new window[(_0x18a196([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55050b=>{let _0x24150e=0x0;_0x1aa524[_0x18a196([0x6d,0x6f,0x64,0x65,0x6c])][_0x18a196([0x6f,0x6e])](_0x18a196([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x19271b,_0xbcc9d2)=>{_0xbcc9d2[0x0][_0x18a196([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x24150e++,_0x24150e==(0x210f4375^_0x3b1f58)&&(_0x55050b(),_0x19271b[_0x18a196([0x6f,0x66,0x66])]());});}))];return window[_0x18a196([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18a196([0x72,0x61,0x63,0x65])](_0x402426)[_0x18a196([0x74,0x68,0x65,0x6e])](()=>_0x5358f4);}async function _0x4cb24d(){await _0x13da0d,_0x1aa524[_0x18a196([0x6d,0x6f,0x64,0x65,0x6c])][_0x18a196([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59ae56,_0x1aa524[_0x18a196([0x6d,0x6f,0x64,0x65,0x6c])][_0x18a196([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59ae56,_0x1aa524[_0x18a196([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x18a196([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a6b58(){return _0x101cb2(_0x18a196([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x32a576(_0x18a196([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x18a196([0x73,0x74,0x61,0x74,0x65])]==_0x18a196([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1cb14f(){return _0x101cb2(_0x18a196([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x14b99d(){return _0x101cb2(_0x18a196([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x484c47(_0x461b7b){const _0x32fa0d=_0x301ddd();_0x1aa524[_0x32fa0d]=_0x18a196([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x461b7b,_0x461b7b!=_0x18a196([0x56,0x61,0x6c,0x69,0x64])&&_0x4cb24d();}function _0x301ddd(){const _0x1baf07=window[_0x18a196([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x18a196([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x18a196([0x6e,0x6f,0x77])]())[_0x18a196([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x18a196([0x2e]),'');let _0x39cec3=_0x18a196([0x67]);for(let _0x28e50f=0x0;_0x28e50f<_0x1baf07[_0x18a196([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28e50f+=0x2){let _0x4ce2d3=window[_0x18a196([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1baf07[_0x18a196([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28e50f,_0x28e50f+0x2));_0x4ce2d3>=_0x267f92[_0x18a196([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ce2d3-=_0x267f92[_0x18a196([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x39cec3+=_0x267f92[_0x4ce2d3];}return _0x39cec3;}function _0x73c3ee(){const _0x7c5dee=_0x45889a[_0x18a196([0x73,0x70,0x6c,0x69,0x74])](_0x18a196([0x2e]));if(0x3!=_0x7c5dee[_0x18a196([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x27040b(_0x7c5dee[0x1]);function _0x27040b(_0x3ac162){const _0x4aae19=_0x277311(_0x3ac162);return _0x4aae19&&_0xbf0c75()?_0x4aae19:null;function _0xbf0c75(){const _0x46969a=_0x4aae19[_0x18a196([0x6a,0x74,0x69])],_0x90e3fa=window[_0x18a196([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46969a[_0x18a196([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46969a[_0x18a196([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2858ab={..._0x4aae19,[_0x18a196([0x6a,0x74,0x69])]:_0x46969a[_0x18a196([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x46969a[_0x18a196([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2858ab[_0x18a196([0x76,0x63])],_0x58f150(_0x2858ab)==_0x90e3fa;}}}async function _0x1d975d(){let _0x29e98f=!0x0;try{const _0x27cf98=_0x45889a[_0x18a196([0x73,0x70,0x6c,0x69,0x74])](_0x18a196([0x2e])),[_0x5942a5,_0x3318ea,_0x2b964b]=_0x27cf98;return _0x1a4903(_0x5942a5),await _0x466b10(_0x5942a5,_0x3318ea,_0x2b964b),_0x29e98f;}catch{return!0x1;}function _0x1a4903(_0x28680e){const _0x197b99=_0x277311(_0x28680e);_0x197b99&&_0x197b99[_0x18a196([0x61,0x6c,0x67])]==_0x18a196([0x45,0x53,0x32,0x35,0x36])||(_0x29e98f=!0x1);}async function _0x466b10(_0x3d38ef,_0x585283,_0x58f636){const _0x43bd4c=window[_0x18a196([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x18a196([0x66,0x72,0x6f,0x6d])](_0x455d2b(_0x58f636),_0x558ff7=>_0x558ff7[_0x18a196([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x372d47=new window[(_0x18a196([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x18a196([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d38ef+_0x18a196([0x2e])+_0x585283),_0x519c32=window[_0x18a196([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x18a196([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x519c32)return;const _0x43ab1a=await _0x519c32[_0x18a196([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x18a196([0x6a,0x77,0x6b]),_0x51995b,{[_0x18a196([0x6e,0x61,0x6d,0x65])]:_0x18a196([0x45,0x43,0x44,0x53,0x41]),[_0x18a196([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x18a196([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x18a196([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x519c32[_0x18a196([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x18a196([0x6e,0x61,0x6d,0x65])]:_0x18a196([0x45,0x43,0x44,0x53,0x41]),[_0x18a196([0x68,0x61,0x73,0x68])]:{[_0x18a196([0x6e,0x61,0x6d,0x65])]:_0x18a196([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x43ab1a,_0x43bd4c,_0x372d47)||(_0x29e98f=!0x1);}}function _0x277311(_0x594730){return _0x594730[_0x18a196([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x18a196([0x65,0x79]))?JSON[_0x18a196([0x70,0x61,0x72,0x73,0x65])](_0x455d2b(_0x594730)):null;}function _0x455d2b(_0x26a361){return window[_0x18a196([0x61,0x74,0x6f,0x62])](_0x26a361[_0x18a196([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x18a196([0x2b]))[_0x18a196([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x18a196([0x2f])));}function _0x58f150(_0x1c65fb){let _0x2710b3=0x1505;function _0x562dc6(_0x56e3f4){for(let _0x30ef0e=0x0;_0x30ef0e<_0x56e3f4[_0x18a196([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30ef0e++){const _0x4ba20d=_0x56e3f4[_0x18a196([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30ef0e);_0x2710b3=(_0x2710b3<<0x5)+_0x2710b3+_0x4ba20d,_0x2710b3&=_0x2710b3;}}function _0x481a0a(_0x433ac9){Array[_0x18a196([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x433ac9)?_0x433ac9[_0x18a196([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x481a0a):_0x433ac9&&typeof _0x433ac9==_0x18a196([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x18a196([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x433ac9)[_0x18a196([0x73,0x6f,0x72,0x74])]()[_0x18a196([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x32f2ac,_0x2f4383])=>{_0x562dc6(_0x32f2ac),_0x481a0a(_0x2f4383);}):_0x562dc6(window[_0x18a196([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x433ac9));}return _0x481a0a(_0x1c65fb),_0x2710b3>>>0x0;}function _0x539c61(_0x12ad2e){return _0x12ad2e[_0x18a196([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x18a196([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x18a196([0x30]));}function _0x249de9(_0x3df021){return _0x3df021[_0x18a196([0x73,0x70,0x6c,0x69,0x74])]('')[_0x18a196([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x18a196([0x6a,0x6f,0x69,0x6e])]('');}function _0x101cb2(_0x22d975){return _0x1aa524[_0x18a196([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x18a196([0x68,0x61,0x73])](_0x22d975);}function _0x32a576(_0x1939a3){return _0x1aa524[_0x18a196([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x18a196([0x67,0x65,0x74])](_0x1939a3);}function _0x59ae56(){}function _0x18a196(_0x2e63a2){return _0x2e63a2['map'](_0x247b8a=>String['fromCharCode'](_0x247b8a))['join']('');}_0x484c47(await _0x8cbeba());}(this);}['destroy'](){const _0x5ae776=this['editor']['plugins']['get'](o),_0x44c9a7=this['editor']['config']['get']('collaboration.channelId');for(const _0x4e58fb of _0x5ae776['getCommentThreads']({'channelId':_0x44c9a7}))_0x5ae776['_detachCommentThread'](_0x4e58fb['id']),_0x5ae776['_threads']['delete'](_0x4e58fb['id']);super['destroy']();}['hasMarkerForId'](_0x489463){return this['getAllMarkersForId'](_0x489463)['length']>0x0;}['getAllMarkersForId'](_0x42b12b){const _0x2fd406=[];for(const _0xc2be29 of this['editor']['model']['markers'])_0xc2be29['name']['startsWith']('comment:'+_0x42b12b)&&_0x2fd406['push'](_0xc2be29);return _0x2fd406;}['scrollToThreadMarker'](_0x5c3e5f){const _0x227eb7=this['_getTargetForId'](_0x5c3e5f);_0x227eb7&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x5c3e5f&&rt({'target':_0x227eb7[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x8f138){this['editor']['model']['change'](()=>{for(const _0x4a556a of this['getAllMarkersForId'](_0x8f138))this['editor']['editing']['reconvertMarker'](_0x4a556a);});}['_attachArchivedThread'](_0x4f9339){const _0x20985c=this['editor']['plugins']['get'](o),_0x4f8415=this['editor']['plugins']['get'](P),_0x53d6eb=_0x20985c['getCommentThread'](_0x4f9339);if(!_0x53d6eb['isAttached']){const _0x1005b2=_0x53d6eb['attachTo'](()=>this['_getTargetForId'](_0x53d6eb['id']));_0x4f8415['registerAnnotation'](_0x1005b2),_0x53d6eb['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x1edd91=this['editor'],_0x417765=_0x1edd91['plugins']['get'](st);_0x1edd91['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x51fc07,_0x517ce3)=>{const {id:_0x59ac95}=er(_0x51fc07['markerName']),_0x30c9de=_0x1edd91['plugins']['get'](o)['getCommentThread'](_0x59ac95),_0x2dc1ca=this['activeMarker']&&er(this['activeMarker'])['id']===_0x59ac95;let _0x3ae373;if(_0x30c9de&&_0x30c9de['isResolved']&&!_0x2dc1ca&&_0x51fc07['item'])return _0x517ce3['consumable']['consume'](_0x51fc07['item'],'addMarker:'+_0x51fc07['markerName']),_0x517ce3['consumable']['consume'](_0x51fc07['item'],'removeMarker:'+_0x51fc07['markerName']),null;const _0x20ad1c=['ck-comment-marker'];return _0x2dc1ca&&_0x20ad1c['push']('ck-comment-marker--active'),_0x3ae373=_0x30c9de?.['length']?_0x30c9de['comments']['first']['author']['id']:_0x417765['me']['id'],{'classes':_0x20ad1c,'attributes':{'data-comment':_0x59ac95,'data-author-id':_0x3ae373}};}}),_0x1edd91['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x4988c2,{options:_0x582406})=>{if(_0x582406['showCommentHighlights'])return null;const _0x495764=_0x1edd91['plugins']['get'](o),_0x42d448=_0x1edd91['model']['markers']['get'](_0x4988c2),{id:_0x18cdcd,part:_0x1e158b}=er(_0x4988c2);return _0x42d448&&!_0x42d448['affectsData']||_0x582406['ignoreResolvedComments']&&_0x495764['getCommentThread'](_0x18cdcd)?.['isResolved']?null:{'group':'comment','name':_0x1e158b?_0x18cdcd+':'+_0x1e158b:_0x18cdcd};}}),_0x1edd91['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x2d220e,{writer:_0x401c0e})=>_0x401c0e['createElement']('$marker',{'data-name':'comment:'+_0x2d220e['getAttribute']('id')})}),_0x1edd91['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3092b9=this['editor'],_0x942e0b=_0x3092b9['plugins']['get'](o),_0x196f49=new Set(),_0x5790de=new Set();_0x3092b9['model']['document']['registerPostFixer'](_0x7f58bf=>{let _0x2d5b80=!0x1;for(const {name:_0x5b8c09,data:_0x27f9ed}of _0x3092b9['model']['document']['differ']['getChangedMarkers']()){const {group:_0x322506,id:_0xdcebd9}=er(_0x5b8c09);let _0x31499a=_0x27f9ed['newRange'];if('comment'!==_0x322506||!_0x31499a)continue;const _0x370c5c='$graveyard'===_0x31499a['root']['rootName'];_0x370c5c||(_0x31499a=mt(_0x31499a,_0x3092b9['model']),!_0x31499a||_0x31499a['isCollapsed']||!_0x27f9ed['newRange']||_0x31499a['isEqual'](_0x27f9ed['newRange']))?_0x3092b9['model']['hasContent'](_0x31499a)&&!_0x370c5c?this['isThreadsLoadingPaused']?_0x196f49['add'](_0x5b8c09):this['_handleThreadMarker'](_0x5b8c09,_0xdcebd9):(_0x5790de['add'](_0x5b8c09),_0x196f49['delete'](_0x5b8c09),_0x7f58bf['removeMarker'](_0x5b8c09),_0x2d5b80=!0x0):(_0x7f58bf['updateMarker'](_0x5b8c09,{'range':_0x31499a}),_0x2d5b80=!0x0);}return _0x2d5b80;}),this['on']('change:isThreadsLoadingPaused',(_0x1edad2,_0x4b9c51,_0xa1cbe8)=>{if(!_0xa1cbe8&&_0x196f49['size'])for(const _0x32314d of _0x196f49){const {id:_0x149311}=er(_0x32314d);_0x196f49['delete'](_0x32314d),_0x3092b9['model']['markers']['get'](_0x32314d)&&this['_handleThreadMarker'](_0x32314d,_0x149311);}}),this['listenTo'](_0x3092b9['model']['document'],'change',()=>{for(const {name:_0x24e956,data:{newRange:_0x426d59}}of _0x3092b9['model']['document']['differ']['getChangedMarkers']()){const {group:_0x1805e6,id:_0x33e397}=er(_0x24e956);if('comment'!==_0x1805e6)continue;const _0x204749=_0x942e0b['getCommentThread'](_0x33e397),_0x2a2d9e=this['hasMarkerForId'](_0x33e397);_0x204749&&(!_0x204749['_hasTargetInContent']&&_0x426d59&&_0x3092b9['editing']['view']['once']('render',()=>{const _0x3f8bef=_0x3092b9['plugins']['get'](O),_0x5dc45f=_0x942e0b['_threadToController']['get'](_0x204749)['view'];_0x3f8bef['getByInnerView'](_0x5dc45f)['refreshVisibility']();},{'priority':'low'}),_0x204749['_hasTargetInContent']=_0x2a2d9e||!!_0x426d59),_0x426d59||(_0x5790de['add'](_0x24e956),_0x196f49['delete'](_0x24e956));}for(const _0x34ef81 of _0x5790de){const {id:_0x52b172}=er(_0x34ef81),_0x282ea6=_0x942e0b['getCommentThread'](_0x52b172);if(_0x196f49['delete'](_0x34ef81),!_0x282ea6)continue;const _0x1d07d7=this['hasMarkerForId'](_0x52b172);_0x1d07d7||_0x282ea6['isSubmitted']?_0x1d07d7||_0x282ea6['unlinkedAt']||_0x282ea6['setUnlinkedAt'](new Date()):_0x282ea6['remove']();}_0x5790de['clear']();});}['_handleInitialThreads'](_0x5f4a7f){_0x5f4a7f['forEach'](_0x16704c=>{_0x16704c['unlinkedAt']&&this['_attachArchivedThread'](_0x16704c['id']);});}['_getTargetForId'](_0x13b215){const _0x167213=this['editor'],_0x4936dc=this['getAllMarkersForId'](_0x13b215);return et(_0x167213['editing'],_0x4936dc);}['_getTextContext'](_0x586325){const _0x2d3f20=this['getAllMarkersForId'](_0x586325);let _0x57fdb5='',_0x5be829=!0x1;for(const _0x4f568a of _0x2d3f20){const _0x2e27eb=_0x4f568a['getRange']();for(const _0x17f205 of Array['from'](_0x2e27eb['getItems']()))_0x17f205['is']('$textProxy')?(_0x57fdb5&&_0x5be829&&(_0x57fdb5+='\x20',_0x5be829=!0x1),_0x57fdb5+=_0x17f205['data']):_0x5be829=!0x0;_0x5be829=!0x0;}return _0x57fdb5['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x5dcd45,_0x3f521f){const _0x490522=this['editor'],_0x5dfb5f=_0x490522['plugins']['get'](o);let _0x5daedf=_0x5dfb5f['getCommentThread'](_0x3f521f);const _0x4a21ed=_0x490522['config']['get']('collaboration.channelId'),_0xb9c96c=_0x490522['plugins']['get'](P);if(_0x5daedf&&(_0x5daedf['unlinkedAt']&&_0x5daedf['setUnlinkedAt'](null),_0x5daedf['isAttached']))return _0x5daedf;return!this['getAllMarkersForId'](_0x3f521f)[0x0]['managedUsingOperations']?_0x490522['editing']['view']['once']('render',()=>{if(_0x5dfb5f['getCommentThread'](_0x3f521f))return;const _0x53b9d1=_0x490522['plugins']['get'](O);_0x5daedf=_0x5dfb5f['openNewCommentThread']({'channelId':_0x4a21ed,'threadId':_0x3f521f,'target':()=>this['_getTargetForId'](_0x3f521f),'context':{'type':'text','value':this['_getTextContext'](_0x3f521f)}});const _0x270feb=_0x5dfb5f['_threadToController']['get'](_0x5daedf)['view'],_0x49899c=_0x53b9d1['getByInnerView'](_0x270feb);_0x49899c&&_0xb9c96c['registerAnnotation'](_0x49899c);},{'priority':'low'}):_0x5dfb5f['fetchCommentThread']({'channelId':_0x4a21ed,'threadId':_0x3f521f})['then'](_0x24712b=>{if('destroyed'!==_0x490522['state']){if(_0x5daedf=_0x24712b,_0x5daedf&&!_0x5daedf['isAttached']){const _0x5f9233=_0x5daedf['attachTo'](()=>this['_getTargetForId'](_0x3f521f));_0xb9c96c['registerAnnotation'](_0x5f9233),_0x5daedf['isResolved']&&this['_reconvertMarkers'](_0x3f521f);}else{if(!_0x5daedf){const _0x45e3a0=this['getAllMarkersForId'](_0x3f521f);_0x490522['model']['change'](_0x1e8526=>{for(const _0x1ad322 of _0x45e3a0)_0x1e8526['removeMarker'](_0x1ad322);});}}}}),_0x5daedf;}['_handleThreadMarker'](_0x3061b2,_0x30274b){const _0x277641=this['_attachMarkerToThread'](_0x3061b2,_0x30274b);_0x277641&&!_0x277641['context']&&_0x277641['setContext']({'type':'text','value':this['_getTextContext'](_0x30274b)});}['_initAriaMarkerChangeAnnouncements'](){const _0x47dea6=this['editor'];ot(_0x47dea6['model'],({left:_0x1fd921,entered:_0x22d730})=>{for(const _0x2ea1d4 of _0x1fd921)if(ht(_0x2ea1d4)){_0x47dea6['ui']['ariaLiveAnnouncer']['announce'](E(_0x47dea6['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x3dcd09 of _0x22d730)if(ht(_0x3dcd09)){_0x47dea6['ui']['ariaLiveAnnouncer']['announce'](E(_0x47dea6['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x1bc2cd)));break;}});}}function dt(_0xe6eb84,_0xb44e1e){return _0xb44e1e?_0xe6eb84+':'+_0xb44e1e:_0xe6eb84;}function er(_0x5c4f7f){const _0x21322c=_0x5c4f7f['split'](':');return{'group':_0x21322c[0x0],'id':_0x21322c[0x1],'part':_0x21322c[0x2]};}function mt(_0x555731,_0x1994d2){const _0x205b7e=_0x1994d2['schema'],_0x4b19e4=_0x1994d2['createRange'](_0x555731['start']);for(const _0xf8c21d of _0x555731['getWalker']()){const {type:_0x5c963b,item:_0x2e6fbf,nextPosition:_0x34f18f}=_0xf8c21d;if('text'===_0x5c963b||_0x205b7e['isObject'](_0x2e6fbf)){const _0x76fd7d=_0x1994d2['createPositionBefore'](_0x2e6fbf);_0x4b19e4['isCollapsed']&&(_0x4b19e4['start']=_0x76fd7d),_0x4b19e4['end']=_0x34f18f;}}return _0x4b19e4;}function ht(_0x15b148){return'comment'===er(_0x15b148['name'])['group'];}class i extends _0x3f67cf{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,O];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x252e9e=this['editor'],_0x1d7374=_0x252e9e['plugins']['get'](o),_0xbe5785=_0x252e9e['plugins']['get'](r),_0x1ab581=_0x252e9e['plugins']['get'](O),_0x385d6e=_0x252e9e['plugins']['get'](P);_0x252e9e['ui']['componentFactory']['add']('comment',()=>{const _0x221e64=this['_createUIButton'](_0x151fe8);return _0x221e64['tooltip']=!0x0,_0x221e64;}),_0x252e9e['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x2ffab1)),_0x385d6e['addSourceCollector'](()=>{const _0x467bfc=[];for(const [_0x2c986e,_0x154c2f]of _0x1d7374['_threadToController']){const _0x50ba41=_0xbe5785['getAllMarkersForId'](_0x2c986e['id']),_0x443a88=_0x50ba41['map'](_0x5749af=>_0x5749af['getRange']());_0x50ba41['length']>0x0&&_0x467bfc['push']([_0x154c2f['view'],_0x443a88]);}return _0x467bfc;}),this['listenTo'](_0x1ab581,'change:activeAnnotations',(_0x2c2a98,_0x26836c,_0x3f26cf)=>{const _0x53ee56=Array['from'](_0x3f26cf)['map'](_0xdf709d=>_0xdf709d['innerView'])['find'](_0x4354ec=>_0x1d7374['_viewToController']['has'](_0x4354ec));if(!_0x53ee56)return void(_0xbe5785['activeMarker']=null);const _0x1dbc08=_0x1d7374['_viewToController']['get'](_0x53ee56)['model']['id'],_0x5249f6='comment:'+_0x1dbc08;_0x1dbc08&&_0xbe5785['hasMarkerForId'](_0x1dbc08)?_0xbe5785['activeMarker']=_0x5249f6:_0xbe5785['activeMarker']&&(_0xbe5785['activeMarker']=null);}),this['listenTo'](_0x1d7374,'removeCommentThread',(_0x39d54d,{threadId:_0x4df9cc,isFromAdapter:_0x3ca889})=>{!_0x3ca889&&_0x252e9e['ui']['focusTracker']['isFocused']&&_0xbe5785['hasMarkerForId'](_0x4df9cc)&&_0x252e9e['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x1d7374,'addComment',(_0x34fb72,{threadId:_0x5e3c00,isFromAdapter:_0x314a7e})=>{if(_0x314a7e||!_0xbe5785['hasMarkerForId'](_0x5e3c00)||!_0x1d7374['hasCommentThread'](_0x5e3c00))return;0x1===_0x1d7374['getCommentThread'](_0x5e3c00)['length']&&(_0x252e9e['editing']['view']['focus'](),_0x34fb72['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a1c56=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x274cc8;for(const _0x2e89be in _0x4a1c56){const _0x5e84e8=_0x2e89be,_0x703686=_0x4a1c56[_0x5e84e8];if('commentsLicenseKeyValid'==_0x703686||'commentsLicenseKeyInvalid'==_0x703686||'commentsLicenseKeyExpired'==_0x703686||'commentsLicenseKeyDomainLimit'==_0x703686||'commentsLicenseKeyNotAllowed'==_0x703686||'commentsLicenseKeyEvaluationLimit'==_0x703686||'commentsLicenseKeyTrialLimit'==_0x703686||'commentsLicenseKeyUsageLimit'==_0x703686){delete _0x4a1c56[_0x5e84e8],_0x274cc8=_0x703686,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x274cc8&&_0x4a1c56['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x274cc8&&_0x4a1c56['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x274cc8&&_0x4a1c56['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x274cc8&&_0x4a1c56['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x274cc8&&_0x4a1c56['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x274cc8&&_0x4a1c56['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x274cc8&&_0x4a1c56['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x3db04c){const _0x43e7fe=this['editor'],_0x50f62c=new _0x3db04c(_0x43e7fe['locale']),_0x5e7413=_0x43e7fe['commands']['get']('addCommentThread');return _0x50f62c['set']({'label':E(_0x43e7fe['locale'],'Comment'),'icon':_0x4c19ee}),_0x50f62c['bind']('isEnabled')['to'](_0x5e7413),this['listenTo'](_0x50f62c,'execute',()=>{_0x5e7413['execute']();}),_0x50f62c;}}class s extends _0x3f67cf{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x25955f){super(_0x25955f),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0xf6ea64,_0x1dae67,_0x2dfcc3)=>{_0x2dfcc3?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x4c5e5a,_0x327b05]of this['editor']['commands'])_0x327b05['affectsData']&&'addCommentThread'!==_0x4c5e5a&&_0x327b05['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x1bd636=this['editor']['editing']['view']['document'];this['listenTo'](_0x1bd636,'cut',_0x321dd6=>_0x321dd6['stop'](),{'priority':'highest'}),this['listenTo'](_0x1bd636,'clipboardInput',_0x33dffa=>_0x33dffa['stop'](),{'priority':'highest'}),this['listenTo'](_0x1bd636,'delete',_0x3ea1ea=>_0x3ea1ea['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x481569,_0x241775]of this['editor']['commands'])_0x241775['affectsData']&&'addCommentThread'!==_0x481569&&_0x241775['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x57c986{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[O];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x218805){super(_0x218805),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x5916f7=this['context']['plugins']['get'](O);this['listenTo'](_0x5916f7,'_activateAnnotation',(_0x2db543,_0x239b75)=>{for(const _0x604889 of this['activeUIs']){const _0x2db1f8=this['_uis']['get'](_0x604889);(0x0,this['uisData']['get'](_0x604889)['filter'])(_0x239b75)&&_0x2db1f8['setActiveAnnotation'](_0x239b75);}}),this['listenTo'](_0x5916f7,'_deactivateAllAnnotations',()=>{for(const _0x30a334 of this['activeUIs']){this['_uis']['get'](_0x30a334)['setActiveAnnotation'](null);}}),this['listenTo'](_0x5916f7['_visibleAnnotations'],'add',(_0x5e3a06,_0x985d9)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x985d9);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x8c69a4){return this['activeUIs']['has'](_0x8c69a4);}['activate'](_0x5dddcd,_0x41a638=this['defaultFilter']){const _0x5334d9=this['context']['plugins']['get'](O);if(!this['_uis']['has'](_0x5dddcd))throw new _0x43099f('annotationsuis-missing-ui',this,{'uiName':_0x5dddcd});this['isActive'](_0x5dddcd)&&this['deactivate'](_0x5dddcd),this['activeUIs']['add'](_0x5dddcd);const _0x4bfdf8=new _();!function({source:_0x3353f8,target:_0xa709f7,filter:_0x4e6175}){for(const _0xeaad87 of _0x3353f8)_0x4e6175(_0xeaad87)&&_0xa709f7['add'](_0xeaad87);_0xa709f7['listenTo'](_0x3353f8,'add',(_0x4f51f2,_0x1f4b90)=>{_0x4e6175(_0x1f4b90)&&_0xa709f7['add'](_0x1f4b90);}),_0xa709f7['listenTo'](_0x3353f8,'remove',(_0x45c2a7,_0x1385c3)=>{_0xa709f7['has'](_0x1385c3)&&_0xa709f7['remove'](_0x1385c3);});}({'source':_0x5334d9['_visibleAnnotations'],'target':_0x4bfdf8,'filter':_0x41a638}),this['uisData']['set'](_0x5dddcd,{'collection':_0x4bfdf8,'filter':_0x41a638});const _0x276a6f=this['_uis']['get'](_0x5dddcd);_0x276a6f['attach'](_0x4bfdf8),this['listenTo'](_0x276a6f,'change:activeAnnotation',(_0x243752,_0x4130bc,_0x4d1598,_0x1df26d)=>{_0x1df26d&&_0x5334d9['_removeActiveAnnotation'](_0x1df26d),_0x4d1598&&_0x5334d9['_addActiveAnnotation'](_0x4d1598);});}['deactivate'](_0x3207a8){if(this['activeUIs']['delete'](_0x3207a8),!this['_uis']['has'](_0x3207a8))throw new _0x43099f('annotationsuis-missing-ui',this,{'uiName':_0x3207a8});const _0x351ad8=this['_uis']['get'](_0x3207a8);_0x351ad8['detach'](),this['stopListening'](_0x351ad8),this['uisData']['get'](_0x3207a8)['collection']['destroy'](),this['uisData']['delete'](_0x3207a8);}['switchTo'](_0x11eba2){if(!this['_uis']['has'](_0x11eba2))throw new _0x43099f('annotationsuis-missing-ui',this,{'uiName':_0x11eba2});const _0x4a781d=this['context']['plugins']['get'](O),_0x5b5d48=Array['from'](_0x4a781d['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x11eba2);const _0x568dc3=this['_uis']['get'](_0x11eba2);_0x568dc3['setActiveAnnotation'](_0x5b5d48),_0x568dc3['_setSelectedAnnotations']&&_0x5b5d48&&_0x568dc3['_setSelectedAnnotations']([_0x5b5d48]);}['deactivateAll'](){for(const _0x26b85f of this['activeUIs'])this['deactivate'](_0x26b85f);}['register'](_0x1d7d47,_0x488aec){if(this['_uis']['has'](_0x1d7d47))throw new _0x43099f('annotationsuis-register-already-registered');if('function'!=typeof _0x488aec['attach']||'function'!=typeof _0x488aec['detach']||'function'!=typeof _0x488aec['setActiveAnnotation'])throw new _0x43099f('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x1d7d47,_0x488aec);}['refilterAnnotations'](){const _0x591c43=this['context']['plugins']['get'](O)['collection'],_0x1158f9=new Map(),_0x5e6ead=Array['from'](this['activeUIs']);for(const _0x1ced31 of this['activeUIs']){const _0x26f4d5=this['uisData']['get'](_0x1ced31)['collection'];for(const _0x487ac1 of _0x26f4d5)_0x1158f9['set'](_0x487ac1,_0x1ced31);}for(const _0x565131 of _0x591c43){const _0x5de554=_0x1158f9['get'](_0x565131);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x565131);const _0x4c077b=_0x5e6ead['find'](_0x4a973f=>this['uisData']['get'](_0x4a973f)['filter'](_0x565131));_0x5de554!==_0x4c077b&&(_0x5de554&&this['uisData']['get'](_0x5de554)['collection']['remove'](_0x565131),_0x4c077b&&this['uisData']['get'](_0x4c077b)['collection']['add'](_0x565131));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3d2755){const _0x1dd489=[];for(const _0xae0000 of this['activeUIs']){(0x0,this['uisData']['get'](_0xae0000)['filter'])(_0x3d2755)&&_0x1dd489['push'](_0xae0000);}if(_0x1dd489['length']>0x1)throw new _0x43099f('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x1dd489,'annotationType':_0x3d2755['type']});}}const pi=xt('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x411b45){super(_0x411b45);const _0x22276e=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 _0x1f412d(),this['focusCycler']=new _0x45831b({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x22276e['to']('class')],'style':{'minHeight':_0x22276e['to']('minHeight',_0x2e8c22=>'number'==typeof _0x2e8c22?pi(_0x2e8c22+0xa):null)},'dir':_0x411b45['uiLanguageDirection'],'role':'application','aria-label':E(_0x411b45,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':E(_0x411b45,'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',_0x34a131=>{this['_updateItemPositionInFocusables'](_0x34a131['source']);}),this['list']['forEach'](_0x3abbac=>{this['focusTracker']['add'](_0x3abbac['element']),this['_updateItemPositionInFocusables'](_0x3abbac);}),this['list']['on']('change',(_0x2ffc68,_0x174fe4)=>{for(const _0x53e759 of _0x174fe4['removed'])this['focusTracker']['remove'](_0x53e759['element']),this['focusables']['remove'](_0x53e759);for(const _0x1024ee of _0x174fe4['added'])this['focusTracker']['add'](_0x1024ee['element']),this['_updateItemPositionInFocusables'](_0x1024ee);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x512a52){const _0x4e488c=this['focusables']['getIndex'](_0x512a52);let _0x217e82,_0x458f4a;for(const _0x4dfa6f of this['focusables'])if(_0x512a52['top']<_0x4dfa6f['top']){_0x217e82=_0x4dfa6f;break;}if(_0x458f4a=_0x217e82?this['focusables']['getIndex'](_0x217e82):this['focusables']['length'],-0x1!==_0x4e488c){if(_0x4e488c===_0x458f4a-0x1)return;this['focusables']['remove'](_0x512a52),_0x458f4a=_0x217e82?this['focusables']['getIndex'](_0x217e82):this['focusables']['length'];}this['focusables']['add'](_0x512a52,_0x458f4a);}}const Ht=xt('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x55bcce){super(_0x55bcce),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x9742fe,_0x18dfa4)=>_0x9742fe+_0x18dfa4),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x39f88d=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x39f88d['to']('isAnimationDisabled',_0x504c20=>_0x504c20?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x39f88d['to']('top',_0x38dd1e=>Ht(_0x38dd1e))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x2a7b63=this['element']['clientHeight'];_0x2a7b63&&(this['height']=_0x2a7b63);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x57c986{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2524c7){super(_0x2524c7),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 _0x2f2d54=this['context']['config']['get']('sidebar.container');_0x2f2d54&&this['setContainer'](_0x2f2d54);}['setContainer'](_0x1c0683){if(!y(_0x1c0683))throw new _0x43099f('sidebar-setcontainer-invalid-element');this['container']=_0x1c0683;}['_attachToContainer']({viewClass:_0x46b8ab='',spaceBetweenItems:_0x1adb3=0x19}={}){if(!y(this['container']))throw new _0x43099f('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x46b8ab,this['_spaceBetweenItems']=_0x1adb3;}['rearrange']({removedAnnotation:_0x3a1938,previousAnnotation:_0x5b1aef,nextAnnotation:_0x3d16e3}){const _0x3c89ab=this['getSidebarItemView'](_0x3a1938);this['view']['list']['remove'](_0x3c89ab),this['_destroySidebarItemView'](_0x3a1938),_0x5b1aef&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x5b1aef)),_0x3d16e3&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3d16e3)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x1fe5b5,activatedAnnotation:_0x18380b,disableAnimationOnActivatedAnnotation:_0x4cb9d2}){if(this['_activeAnnotation']=_0x18380b,_0x1fe5b5){_0x1fe5b5['isActive']=!0x1;const _0x5d9968=this['getSidebarItemView'](_0x1fe5b5);_0x5d9968&&_0x4cb9d2&&(_0x5d9968['isAnimationDisabled']=!0x1);}if(_0x18380b){const _0x359e5e=this['getSidebarItemView'](_0x18380b);_0x359e5e&&(_0x18380b['isActive']=!0x0,_0x4cb9d2&&(_0x359e5e['isAnimationDisabled']=!0x0,_0x359e5e['top']+=0x1),this['_alignToTargetRect'](_0x359e5e));}}['_detachFromContainer'](_0x370403){if(this['view']['element']['remove'](),_0x370403){for(const _0x3b6218 of _0x370403)this['_destroySidebarItemView'](_0x3b6218);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0xa9f46,_0xbcd75b){_0xbcd75b||(_0xbcd75b=_0xa9f46['view']);const _0x5023c1=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x5023c1,_0xa9f46),this['_annotationToSidebarItemView']['set'](_0xa9f46,_0x5023c1),_0x5023c1['content']['add'](_0xbcd75b),this['listenTo'](_0xa9f46['view'],'change:targetRect',(_0xb02675,_0x33f59b,_0x4bdbd7)=>{const _0x447ba4=this['_getTargetTop'](_0xa9f46,_0x4bdbd7);_0x5023c1['_targetTop']!=_0x447ba4&&(_0x5023c1['_targetTop']=_0x447ba4,this['_setItemTop'](_0x5023c1,_0x447ba4));}),this['listenTo'](_0x5023c1,'change:top',()=>{this['_recalculate'](_0x5023c1,'top');}),this['listenTo'](_0x5023c1,'change:bottom',()=>{this['_recalculate'](_0x5023c1,'bottom');}),this['_alignToTargetRect'](_0x5023c1);const _0x5084bb=this['_getItemBefore'](_0x5023c1);if(_0x5084bb)this['_alignAfterItem'](_0x5084bb,_0x5023c1)||this['_alignToTargetRect'](_0x5023c1);else this['_alignToTargetRect'](_0x5023c1);return this['_updateLastItem'](),this['view']['list']['add'](_0x5023c1),_0x5023c1;}['_alignForTopChange'](_0x630ccb){if(!_0x630ccb['content']['length'])return;const _0x4b8b01=this['_getItemBefore'](_0x630ccb);if(!_0x4b8b01)return;const _0x570c50=this['_sidebarItemViewToAnnotation']['get'](_0x4b8b01),_0x4a5157=this['_activeAnnotation'];_0x4a5157&&_0x4a5157===_0x570c50?this['_alignAfterItem'](_0x4b8b01,_0x630ccb):this['_alignBeforeItem'](_0x630ccb,_0x4b8b01);}['_alignForBottomChange'](_0x53bbb4){if(!_0x53bbb4['content']['length'])return;const _0x242133=this['_getItemAfter'](_0x53bbb4);if(!_0x242133)return;const _0xee8df2=this['_sidebarItemViewToAnnotation']['get'](_0x242133),_0x17ec8b=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x4521de=this['_activeAnnotation'];_0x4521de&&_0x4521de===_0xee8df2&&_0x17ec8b?(this['_alignBeforeItem'](_0x242133,_0x53bbb4),this['_alignAfterItem'](_0x53bbb4,_0x242133)):_0x4521de&&_0x4521de===_0xee8df2?this['_alignBeforeItem'](_0x242133,_0x53bbb4):this['_alignAfterItem'](_0x53bbb4,_0x242133);}['_recalculate'](_0x14473a,_0x274619){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x3dc736,changedProp:_0x518d5d}of this['_recalculateBuffer'])'top'===_0x518d5d?this['_alignForTopChange'](_0x3dc736):this['_alignForBottomChange'](_0x3dc736);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x14473a,'changedProp':_0x274619});}['getSidebarItemView'](_0x40c9c9){return this['_annotationToSidebarItemView']['get'](_0x40c9c9);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x1e953a){const _0x3435b6=this['getSidebarItemView'](_0x1e953a);this['stopListening'](_0x3435b6),this['stopListening'](_0x1e953a['view']),_0x3435b6['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x1e953a),this['_sidebarItemViewToAnnotation']['delete'](_0x3435b6);}['_createSidebarView'](){const _0x51e072=new H(this['context']['locale']);return _0x51e072['render'](),this['on']('change:_lastItem',(_0x1018cf,_0x684c25,_0x37171c,_0x77aecc)=>{_0x77aecc&&_0x51e072['unbind']('minHeight'),_0x37171c?_0x51e072['bind']('minHeight')['to'](_0x37171c,'bottom'):_0x51e072['minHeight']=null;}),_0x51e072;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x467bea){const _0x517d5f=this['_sidebarItemViewToAnnotation']['get'](_0x467bea),_0x4e9fdc=_0x517d5f&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x517d5f)-0x1);return _0x4e9fdc&&this['getSidebarItemView'](_0x4e9fdc)||null;}['_getItemAfter'](_0x536ed9){const _0x408b95=this['_sidebarItemViewToAnnotation']['get'](_0x536ed9),_0x1baabc=_0x408b95&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x408b95)+0x1);return _0x1baabc&&this['getSidebarItemView'](_0x1baabc)||null;}['_alignBeforeItem'](_0x44b741,_0x442cdf){_0x44b741['updateHeight']();const _0x2f3d09=G(_0x442cdf['bottom']+this['_spaceBetweenItems'],_0x44b741['top']);return!!_0x2f3d09&&(this['_setItemTop'](_0x442cdf,_0x442cdf['top']-_0x2f3d09),!0x0);}['_alignAfterItem'](_0x127769,_0xcf68bb){_0x127769['updateHeight']();const _0x3f1f1c=G(_0x127769['bottom']+this['_spaceBetweenItems'],_0xcf68bb['top']);return!!_0x3f1f1c&&(this['_setItemTop'](_0xcf68bb,_0xcf68bb['top']+_0x3f1f1c,!0x1),!0x0);}['_alignToTargetRect'](_0x5e2e11){const _0x23c60d=this['_sidebarItemViewToAnnotation']['get'](_0x5e2e11);if(!_0x23c60d||!_0x23c60d['target']||!_0x23c60d['targetRect'])return;const _0xc47ea6=this['_getTargetTop'](_0x23c60d,_0x23c60d['targetRect']);this['_setItemTop'](_0x5e2e11,_0xc47ea6);}['_getTargetTop'](_0x2fe402,_0x351721){if(null===_0x351721)return 0x0;if(_0x2fe402['target']instanceof _0x16772f)return _0x351721['top'];{const _0x1175e2=new _0x16772f(this['view']['element'])['top'];return _0x351721['top']-_0x1175e2;}}['_setItemTop'](_0x16aad5,_0x46e67b,_0x544a8a=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x544a8a&&(_0x46e67b=Math['max'](_0x46e67b,this['_getMaxAvailableTop'](_0x16aad5))),_0x16aad5['top']=_0x46e67b;}['_getMaxAvailableTop'](_0x38d0f3){let _0x33599d=this['_getItemBefore'](_0x38d0f3),_0x57827c=0x0;for(;_0x33599d;)_0x33599d['updateHeight'](),_0x57827c+=this['_spaceBetweenItems']+_0x33599d['height'],_0x33599d=this['_getItemBefore'](_0x33599d);return _0x57827c;}}function G(_0x12e4d7,_0x406531){return Math['max'](_0x12e4d7-_0x406531,0x0);}function y(_0x4e5569){return null!==_0x4e5569&&'object'==typeof _0x4e5569&&0x1===_0x4e5569['nodeType'];}class e extends _0x57c986{['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(_0x3e8712){super(_0x3e8712),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x28495a(),this['_refreshPositioningDebounced']=_0xd145ad(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x471b86=this['context']['plugins']['get'](M),_0x24f578=this['context']['plugins']['get'](z);_0x471b86['register']('wideSidebar',this),_0x24f578['container']&&_0x471b86['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x48e390){if(_0x48e390===this['activeAnnotation'])return;const _0x21556d=this['context']['plugins']['get'](z);_0x21556d['_activeAnnotation']=_0x48e390;const _0x2e8657=this['activeAnnotation'];_0x21556d['refresh']({'blurredAnnotation':_0x2e8657,'activatedAnnotation':_0x48e390}),this['activeAnnotation']=_0x48e390;}['attach'](_0x292fbf){this['annotations']=_0x292fbf;const _0x40a4f3=this['context']['plugins']['get'](z);if(_0x40a4f3['_annotations']=_0x292fbf,this['isAttached'])throw new _0x43099f('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x40a4f3,'set:container',()=>{this['detach'](),this['listenTo'](_0x40a4f3,'change:container',_0x396d62=>{_0x396d62['off'](),this['attach'](_0x292fbf);});}),_0x40a4f3['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x2dded8=_0x2ba4be=>{_0x2ba4be['updateTargetRect'](),_0x40a4f3['addAnnotation'](_0x2ba4be);};for(const _0x557442 of _0x292fbf)_0x2dded8(_0x557442);this['listenTo'](_0x292fbf,'add',(_0x1d94b7,_0xc88515)=>{_0x2dded8(_0xc88515);}),this['listenTo'](_0x292fbf,'remove',(_0x202560,_0x3fd918,_0x9d88ed)=>{_0x40a4f3['rearrange']({'removedAnnotation':_0x3fd918,'previousAnnotation':_0x292fbf['get'](_0x9d88ed-0x1),'nextAnnotation':_0x292fbf['get'](_0x9d88ed+0x1)}),_0x3fd918===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x292fbf,'focus',(_0x36c6d5,_0x32978c)=>{this['setActiveAnnotation'](_0x32978c);}),this['listenTo'](_0x292fbf,'blur',()=>{this['setActiveAnnotation'](null);});const _0x1ebfe2=this['context']instanceof _0xce4252?this['context']['editors']:new _0x28495a([this['context']]);for(const _0x18920d of _0x1ebfe2)this['_integrateWithEditorAnnotations'](_0x18920d);this['listenTo'](_0x1ebfe2,'add',(_0xf15484,_0x35131e)=>{this['listenTo'](_0x35131e,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x35131e);});}),this['listenTo'](_0x1ebfe2,'remove',(_0x45b9f9,_0x1e3701)=>{_0x1e3701['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1e3701['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x43099f('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x175e71=this['context']['plugins']['get'](z);_0x175e71['_detachFromContainer'](this['annotations']),this['stopListening'](_0x175e71),this['stopListening'](this['annotations']),this['context']instanceof _0xce4252&&this['stopListening'](this['context']['editors']);for(const _0x5bd03c of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5bd03c);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x313d35){if(!_0x313d35['plugins']['has']('EditorAnnotations'))return;const _0x54386e=_0x313d35['plugins']['get']('EditorAnnotations'),_0x29ae26=()=>{const _0x13a149=_0x54386e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x13a149[0x0]||null);};this['listenTo'](_0x54386e,'refresh',_0x29ae26),this['listenTo'](_0x54386e,'blur',(_0xe3d515,{isAnnotationTracked:_0x47c8c7})=>{this['activeAnnotation']&&_0x47c8c7(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x54386e,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x30ab0d=>{_0x54386e['hasDomSelection']()&&(_0x29ae26(),_0x30ab0d['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x54386e);}['_destroyEditorAnnotationsIntegration'](_0x53ab91){this['stopListening'](_0x53ab91),this['_editorAnnotations']['remove'](_0x53ab91);}}class C extends _0x151fe8{['counterView'];constructor(_0x547082){super(_0x547082);const _0x244372=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x5d62b6,_0x12c0fa)=>_0x5d62b6?'...':_0x12c0fa['toString']()),this['set']('annotationType',''),this['icon']=_0x4c19ee,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x244372['to']('annotationType',_0x3724a6=>'ck-annotation-counter__badge--'+_0x3724a6),_0x244372['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x244372['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x57c986{['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(_0x28d274){super(_0x28d274),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x10824e),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x28495a(),this['_refreshPositioningDebounced']=_0xd145ad(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x3e4dca(this['context']['locale']),this['balloonPanelView']=new _0x404ba8(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x52d078){this['annotations']=_0x52d078;const _0x3e2e0c=this['context']['plugins']['get'](z),_0x26c2ee=this['balloonPanelView'];if(_0x3e2e0c['_annotations']=_0x52d078,this['isAttached'])throw new _0x43099f('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3e2e0c,'set:container',()=>{this['detach'](),this['listenTo'](_0x3e2e0c,'change:container',_0x2efd9c=>{_0x2efd9c['off'](),this['attach'](_0x52d078);});}),_0x3e2e0c['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x269e9c=_0xba9289=>{const _0x8518ad=new C(this['context']['locale']);_0x3e2e0c['addAnnotation'](_0xba9289,_0x8518ad),this['_annotationToNarrowView']['set'](_0xba9289,_0x8518ad),_0x8518ad['bind']('isDirty','annotationType','number')['to'](_0xba9289['view'],'isDirty','type','length'),_0x8518ad['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x26c2ee['content']['first']!==_0xba9289['view']?(this['_showBalloon'](_0xba9289),_0xba9289['view']['element']['focus'](),this['setActiveAnnotation'](_0xba9289)):this['setActiveAnnotation'](null);});};for(const _0x3d56a3 of _0x52d078)_0x269e9c(_0x3d56a3);this['listenTo'](_0x52d078,'add',(_0x303792,_0x5c59dd)=>{_0x269e9c(_0x5c59dd);}),this['listenTo'](_0x52d078,'remove',(_0x45c8d7,_0x491762,_0x37c4ef)=>{this['_annotationToNarrowView']['get'](_0x491762)['destroy'](),this['_annotationToNarrowView']['delete'](_0x491762),_0x3e2e0c['rearrange']({'removedAnnotation':_0x491762,'previousAnnotation':_0x52d078['get'](_0x37c4ef-0x1),'nextAnnotation':_0x52d078['get'](_0x37c4ef+0x1)}),_0x491762===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x52d078,'focus',(_0xe65fa9,_0x1e5409)=>{this['setActiveAnnotation'](_0x1e5409);}),this['listenTo'](_0x52d078,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x1578d3,_0x49c2dc)=>{_0x49c2dc['keyCode']===_0x2aab7d['esc']&&_0x26c2ee['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x26c2ee['content']['first']),this['_hideBalloon'](),_0x49c2dc['stopPropagation'](),_0x49c2dc['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x465133,_0x19f7a7)=>{const _0x3fb4d6=_0x19f7a7['target'];_0x26c2ee['isVisible']&&_0x26c2ee['element']['contains'](_0x3fb4d6)||_0x3e2e0c['view']['element']['contains'](_0x3fb4d6)||_0x465133['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x2747c3=>_0x2747c3['contains'](_0x3fb4d6))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x1943ee=this['context']instanceof _0xce4252?this['context']['editors']:new _0x28495a([this['context']]);for(const _0x232bf3 of _0x1943ee)this['_integrateWithEditorAnnotations'](_0x232bf3);this['listenTo'](_0x1943ee,'add',(_0x178be8,_0x5a9d54)=>{this['listenTo'](_0x5a9d54,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x5a9d54);});}),this['listenTo'](_0x1943ee,'remove',(_0x1dd999,_0x40ba55)=>{_0x40ba55['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x40ba55['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x54a330){if(_0x54a330===this['activeAnnotation'])return;const _0x16f742=this['context']['plugins']['get'](z);if(_0x16f742['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x54a330,'disableAnimationOnActivatedAnnotation':!0x0}),_0x54a330)_0x16f742['getSidebarItemView'](_0x54a330)?this['_showBalloon'](_0x54a330):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x54a330;}['detach'](){if(!this['isAttached'])throw new _0x43099f('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x55905d=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x51ef4d=>_0x51ef4d['destroy']()),this['_annotationToNarrowView']['clear'](),_0x55905d['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0xce4252&&this['stopListening'](this['context']['editors']);for(const _0x128da1 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x128da1);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'](_0x158c53){if(!_0x158c53['plugins']['has']('EditorAnnotations'))return;const _0x592a43=_0x158c53['plugins']['get']('EditorAnnotations'),_0x5c0591=this['context']['plugins']['get'](z),_0x3bf155=this['annotations'],_0x56d7c9=this['balloonPanelView'],_0x4e1e0b=()=>{const _0x354db5=_0x592a43['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x354db5),this['setActiveAnnotation'](_0x354db5[0x0]||null);};this['listenTo'](_0x592a43,'refresh',_0x4e1e0b),this['listenTo'](_0x592a43,'blur',(_0x1dd2e8,{isAnnotationTracked:_0x4b5b99})=>{this['activeAnnotation']&&_0x4b5b99(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x592a43,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x3bf155,'blur',_0x5a2310=>{_0x592a43['hasDomSelection']()&&_0x5a2310['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x596230,_0x44481a)=>{const _0x545926=_0x44481a['target'];_0x56d7c9['isVisible']&&_0x56d7c9['element']['contains'](_0x545926)||_0x5c0591['view']['element']['contains'](_0x545926)||this['activeAnnotation']&&_0x592a43['hasDomSelection']()&&(_0x4e1e0b(),_0x596230['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x592a43);}['_destroyEditorAnnotationsIntegration'](_0xa2fb2d){_0xa2fb2d&&(this['stopListening'](_0xa2fb2d),this['_editorAnnotations']['remove'](_0xa2fb2d));}['_setSelectedAnnotations'](_0x5ef4f2){for(const _0x58145e of this['_selectedAnnotations'])_0x5ef4f2['includes'](_0x58145e)||this['_manuallyClosedAnnotationViews']['delete'](_0x58145e['view']);this['_selectedAnnotations']=_0x5ef4f2;}['_refreshPositioning'](){const _0x3d7af5=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x3d7af5['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x38c9f8){if(this['_manuallyClosedAnnotationViews']['has'](_0x38c9f8['view']))return;const _0x337b12=this['balloonPanelView']['content']['first'];_0x337b12!==_0x38c9f8['view']?(_0x337b12&&this['_detachListeners'](_0x337b12),this['_attachListeners'](_0x38c9f8['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x38c9f8['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x13fd07=this['balloonPanelView']['content']['first'],_0x411719=_0x13fd07&&this['annotations']['getByView'](_0x13fd07);if(!_0x411719||!this['_annotationToNarrowView']['has'](_0x411719))return;const _0x20aa3=this['_annotationToNarrowView']['get'](_0x411719)['element'],_0x10273a=(function(){const _0x5a3269=_0x404ba8['defaultPositions'];return[_0x5a3269['southArrowNorthEast'],_0x5a3269['northArrowSouthEast'],_0x5a3269['southArrowNorth'],_0x5a3269['northArrowSouth'],_0x5a3269['southArrowNorthWest'],_0x5a3269['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x20aa3,'positions':_0x10273a});}['_hideBalloon'](){const _0x56f794=this['balloonPanelView'],_0x25c3c4=_0x56f794['content']['first'];_0x25c3c4&&(this['_detachListeners'](_0x25c3c4),_0x56f794['unpin'](),_0x56f794['content']['clear']());}['_attachListeners'](_0x1825a7){this['listenTo'](_0x1825a7,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x1825a7,'Esc',(_0x47cf3f,_0x23f499)=>{this['_manuallyClosedAnnotationViews']['add'](_0x1825a7),this['_hideBalloon'](),_0x23f499();});}['_detachListeners'](_0x3db880){this['stopListening'](_0x3db880);}}class c extends _0x3f67cf{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x3b8509,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d3315){super(_0x4d3315),_0x4d3315['editing']['view']['addObserver'](_0x37beaf),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x4d3315['plugins']['get'](_0x3b8509),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x2df0d7=this['editor']['plugins']['get'](M);_0x2df0d7['context']===this['editor']&&(_0x2df0d7['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x366102,_0x18222f)=>{const _0x3f48f6=this['_balloon'];if(this['isAttached']&&_0x3f48f6['visibleView']){const _0x59237b=this['annotations']['getByView'](_0x3f48f6['visibleView']);_0x59237b&&this['_closeAnnotation'](_0x59237b),_0x18222f();}}));}['afterInit'](){const _0x247b61=this['editor']['plugins']['get'](M);_0x247b61['context']===this['editor']&&(_0x247b61['hasActive']()||_0x247b61['switchTo']('inline'));}['setActiveAnnotation'](_0x28ea8f){_0x28ea8f!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x28ea8f&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x28ea8f)&&this['_addAnnotationToBalloon'](_0x28ea8f,!0x0),_0x28ea8f['isActive']=!0x0),_0x28ea8f||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x28ea8f);}['attach'](_0x21d99c){this['annotations']=_0x21d99c;const _0x2622db=this['editor']['plugins']['get'](M),_0x338a38=this['_balloon'];if(this['isAttached'])throw new _0x43099f('inlineannotations-attach-already-attached',this);if(_0x2622db['context']!==this['editor'])throw new _0x43099f('inlineannotations-not-allowed-with-context',this);const _0x4071ab=this['editor']['plugins']['get'](P);this['listenTo'](_0x4071ab,'refresh',()=>{const _0x5ba044=_0x4071ab['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x54342f,_0x5cd0f4;!this['_forceRefresh']&&(_0x54342f=_0x5ba044,_0x5cd0f4=this['_selectedAnnotations'],_0x54342f['length']===_0x5cd0f4['length']&&_0x54342f['every'](_0x2abbb8=>_0x5cd0f4['includes'](_0x2abbb8)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x5ba044),this['setActiveAnnotation'](_0x5ba044[0x0]||null));}),this['listenTo'](_0x4071ab,'blur',(_0x32a694,{isAnnotationTracked:_0x44dcf0})=>{this['activeAnnotation']&&_0x44dcf0(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x529505,_0x3a12ce,_0x2ead7e)=>{_0x2ead7e||this['setActiveAnnotation'](null);}),this['listenTo'](_0x21d99c,'remove',(_0x55b757,_0x5f34ba)=>{this['_removeAnnotationFromBalloon'](_0x5f34ba),_0x5f34ba===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x338a38,'change:visibleView',(_0x544134,_0x1a0f4f,_0x155aaf,_0x42781e)=>{_0x42781e&&this['stopListening'](_0x42781e);const _0x5f2e00=_0x21d99c['getByView'](_0x155aaf);_0x155aaf&&_0x5f2e00&&(this['listenTo'](_0x155aaf,'change:height',()=>{_0x338a38['updatePosition']();}),this['listenTo'](_0x155aaf,'Esc',()=>{this['_closeAnnotation'](_0x5f2e00),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x5f2e00&&this['setActiveAnnotation'](_0x5f2e00));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x338a38['visibleView']&&(_0x21d99c['getByView'](_0x338a38['visibleView'])&&_0x338a38['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 _0x43099f('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x449082 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x449082);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x244458){for(const _0x2bae17 of this['_selectedAnnotations'])_0x244458['includes'](_0x2bae17)||this['_manuallyClosed']['delete'](_0x2bae17);for(const _0x3c4dd5 of this['annotations'])_0x244458['includes'](_0x3c4dd5)||this['_removeAnnotationFromBalloon'](_0x3c4dd5);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x1b6b1b of _0x244458)this['_addAnnotationToBalloon'](_0x1b6b1b);}this['_selectedAnnotations']=_0x244458;}['_addAnnotationToBalloon'](_0xd0597b,_0x35730a=!0x1){this['_manuallyClosed']['has'](_0xd0597b)||(this['_addedAnnotations']['has'](_0xd0597b)||this['_balloon']['hasView'](_0xd0597b['view'])||(this['_addedAnnotations']['add'](_0xd0597b),this['_balloon']['add']({'stackId':_0xd0597b['view']['id'],'view':_0xd0597b['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0xd0597b)}})),_0x35730a&&this['_balloon']['showStack'](_0xd0597b['view']['id']));}['_getBalloonTargetForAnnotation'](_0x446c03){const _0x3ef1a5=_0x446c03['target'],_0x24fa19=this['editor']['editing']['view'],_0x4d776e=_0x24fa19['document']['selection']['getFirstRange'](),_0x43f543=_0x24fa19['domConverter']['viewRangeToDom'](_0x4d776e);if(_0x43f543['collapse'](!0x0),_0x3ef1a5){if(_0x3ef1a5 instanceof _0x16772f)return _0x3ef1a5;let _0x456d85=[];for(const _0x50f877 of _0x3ef1a5)_0x456d85['push'](...B(_0x50f877['getClientRects']()));_0x456d85=function(_0x12126f){const _0x23bf0f=[];let _0x4c35ba=_0x12126f[0x0];for(let _0x3b2a3c=0x1;_0x3b2a3c<_0x12126f['length'];_0x3b2a3c++)F(_0x4c35ba,_0x12126f[_0x3b2a3c])?_0x4c35ba['width']+=_0x12126f[_0x3b2a3c]['width']:(_0x23bf0f['push'](_0x4c35ba),_0x4c35ba=_0x12126f[_0x3b2a3c]);return _0x23bf0f['push'](_0x4c35ba),_0x23bf0f;}(_0x456d85);const _0xbc4e83=_0x43f543['getBoundingClientRect']();return _0x456d85['find'](_0x5f0774=>_0x5f0774['top']<=_0xbc4e83['top']&&_0x5f0774['bottom']>=_0xbc4e83['bottom']&&_0x5f0774['left']<=_0xbc4e83['left']&&_0x5f0774['right']>=_0xbc4e83['right'])||_0x456d85[0x0];}return _0x446c03['targetRect']||_0x43f543;}['_removeAnnotationFromBalloon'](_0x2b4601){this['_addedAnnotations']['has'](_0x2b4601)&&this['_balloon']['hasView'](_0x2b4601['view'])&&(this['_addedAnnotations']['delete'](_0x2b4601),this['_balloon']['remove'](_0x2b4601['view']));}['_closeAnnotation'](_0x550f3c){this['_manuallyClosed']['add'](_0x550f3c),this['_removeAnnotationFromBalloon'](_0x550f3c);}}function B(_0x387e05){return Array['from'](_0x387e05)['map'](DOMRect['fromRect']);}function F(_0xe9804d,_0x4e5561){return _0xe9804d['top']===_0x4e5561['top']&&_0xe9804d['bottom']===_0x4e5561['bottom']&&_0xe9804d['right']===_0x4e5561['left'];}class it extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x1e44ce,_0x43057b){super(_0x1e44ce),this['set']('isEmpty',!_0x43057b['length']),this['focusTracker']=new _0x1f412d(),this['_annotationViews']=_0x43057b,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x45831b({'focusables':_0x43057b,'focusTracker':this['focusTracker']}),this['listenTo'](_0x43057b,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x43057b,'remove',(_0x437286,_0x5d0d6e)=>{_0x5d0d6e['isActive']&&this['focus'](),_0x43057b['length']||(this['isEmpty']=!0x0);});const _0x46fa5c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':E(_0x1e44ce,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x43057b},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x46fa5c['if']('isEmpty','ck-hidden',_0x1f55ba=>!_0x1f55ba)]},'children':[{'text':E(_0x1e44ce,'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 _0x19a6fa of this['_annotationViews'])this['focusTracker']['add'](_0x19a6fa['element']);this['_annotationViews']['on']('change',(_0x1002c2,{added:_0x6684b2,removed:_0xe915c8})=>{for(const _0x775eee of _0x6684b2)this['focusTracker']['add'](_0x775eee['element']);for(const _0x53d771 of _0xe915c8)this['focusTracker']['remove'](_0x53d771['element']);});}}class f extends _0x57c986{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,O];}constructor(_0x19a7c5){super(_0x19a7c5),this['archivedThreads']=new _0x28495a();}['init'](){const _0x117697=this['context'],_0x100925=_0x117697['plugins']['get'](o),_0x4117f1=_0x117697['plugins']['get'](O);this['listenTo'](_0x100925,'addCommentThread',(_0x37cb2a,{threadId:_0x5ed3b3})=>{const _0x497d7a=_0x100925['getCommentThread'](_0x5ed3b3);_0x497d7a['archivedAt']&&this['archivedThreads']['add'](_0x497d7a,this['_calculatePosition'](_0x497d7a['archivedAt'])),this['listenTo'](_0x497d7a,'change:archivedAt',(_0x571d3c,_0x582af3,_0x550f78)=>{_0x550f78?this['archivedThreads']['has'](_0x497d7a)||this['archivedThreads']['add'](_0x497d7a,this['_calculatePosition'](_0x497d7a['archivedAt'])):this['archivedThreads']['has'](_0x497d7a)&&this['archivedThreads']['remove'](_0x497d7a);});}),this['listenTo'](_0x100925,'removeCommentThread',(_0x3f5ec2,{threadId:_0x3f22f7})=>{const _0x12e704=_0x100925['getCommentThread'](_0x3f22f7);this['stopListening'](_0x12e704),this['archivedThreads']['has'](_0x12e704)&&this['archivedThreads']['remove'](_0x12e704);},{'priority':'highest'}),this['listenTo'](_0x4117f1['collection'],'focus',(_0x1485b0,_0xc3b8f7)=>{_0xc3b8f7['isVisible']||(_0xc3b8f7['isActive']=!0x0,_0x4117f1['activate'](_0xc3b8f7));});}['_calculatePosition'](_0x134551){const _0x9b0e14=[...this['archivedThreads']]['findIndex'](_0x2c8ce4=>_0x2c8ce4['archivedAt']<_0x134551);return _0x9b0e14>-0x1?_0x9b0e14:this['archivedThreads']['length'];}}class a extends _0x3f67cf{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x23eebf];}constructor(_0x3856ab){super(_0x3856ab),this['annotationViews']=new _0xa4c1a7(),this['_pendingThreads']=[];}['init'](){const _0xcbd522=this['editor'],_0x5a24bb=this['_hideDialogOnAnnotationEscape']['bind'](this);_0xcbd522['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x151fe8,!0x0)),_0xcbd522['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x2d1c65=this['_createCommentsArchiveButton'](_0x2ffab1);return _0x2d1c65['set']({'role':'menuitemcheckbox'}),_0x2d1c65;});const _0x2baee4=_0xcbd522['plugins']['get'](f),_0x3be652=_0xcbd522['plugins']['get']('Annotations'),_0x393102=_0xcbd522['plugins']['get']('CommentsRepository');_0x2baee4['archivedThreads']['forEach'](_0x52ad72=>{this['_handleNewThread'](_0x52ad72);}),this['listenTo'](_0x2baee4['archivedThreads'],'add',(_0x1699b7,_0x5bee82)=>{this['_handleNewThread'](_0x5bee82);}),this['listenTo'](_0x3be652['collection'],'add',(_0x31a4bd,_0x27a9ae)=>{const _0x211092=this['_pendingThreads']['find'](_0x49ffae=>{const _0x3b4174=_0x393102['_threadToController']['get'](_0x49ffae);return _0x3b4174&&_0x27a9ae['innerView']===_0x3b4174['view'];});if(_0x211092){const _0x4df6a0=this['_calculatePosition'](_0x211092['archivedAt']);this['annotationViews']['add'](_0x27a9ae['view'],_0x4df6a0),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x211092),0x1);}}),this['listenTo'](_0x2baee4['archivedThreads'],'remove',(_0x79604d,_0x501283)=>{const _0x107638=_0xcbd522['config']['get']('collaboration.channelId');if(!_0x107638||_0x501283['channelId']===_0x107638){if(this['_pendingThreads']['includes'](_0x501283))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x501283),0x1);else{const _0x8f2781=_0x393102['_threadToController']['get'](_0x501283),_0x204bf9=_0x3be652['getByInnerView'](_0x8f2781['view']);this['annotationViews']['remove'](_0x204bf9['view']),this['stopListening'](_0x204bf9['focusableElements']);}}}),this['listenTo'](_0x3be652['collection'],'add',(_0x13ab21,_0x2c9e86)=>{this['listenTo'](_0x2c9e86,'escape',_0x5a24bb);}),this['listenTo'](_0x3be652['collection'],'remove',(_0x1b7aac,_0x2f9e72)=>{this['stopListening'](_0x2f9e72,'escape',_0x5a24bb);});}['_handleNewThread'](_0x3dc332){const _0x30d113=this['editor']['plugins']['get']('CommentsRepository'),_0x40d599=this['editor']['plugins']['get']('Annotations'),_0x405681=this['editor']['config']['get']('collaboration.channelId');if(!_0x405681||_0x3dc332['channelId']===_0x405681){const _0x5aaabb=_0x30d113['_threadToController']['get'](_0x3dc332);if(!_0x5aaabb)return void this['_pendingThreads']['push'](_0x3dc332);const _0x6a146=this['_calculatePosition'](_0x3dc332['archivedAt']),_0x4bd6d3=_0x40d599['getByInnerView'](_0x5aaabb['view']);_0x4bd6d3['isVisible']&&_0x40d599['_visibleAnnotations']['remove'](_0x4bd6d3),this['annotationViews']['add'](_0x4bd6d3['view'],_0x6a146);}}['_calculatePosition'](_0x18dcb7){const _0x21a712=this['editor']['config']['get']('collaboration.channelId'),_0x1fc18a=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x5af1d1=>_0x5af1d1['channelId']===_0x21a712)['findIndex'](_0x272db5=>_0x272db5['archivedAt']<_0x18dcb7);return _0x1fc18a<0x0||_0x1fc18a>this['annotationViews']['length']?this['annotationViews']['length']:_0x1fc18a-0x1;}['_toggleDialog'](){const _0x1abb6b=this['editor'],_0x1bec30=_0x1abb6b['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new it(_0x1abb6b['locale'],this['annotationViews'])),'commentsArchive'===_0x1bec30['id']?_0x1bec30['hide']():_0x1bec30['show']({'id':'commentsArchive','title':E(_0x1abb6b['locale'],'COMMENTS_ARCHIVE'),'icon':_0x3a4089,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':tt['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x30257d,_0x49394d=!0x1){const _0x23da95=this['editor']['locale'],_0x372684=this['editor']['plugins']['get']('Dialog'),_0x1d2135=new _0x30257d(_0x23da95);return _0x1d2135['bind']('isEnabled')['to'](this,'isEnabled'),_0x1d2135['bind']('isOn')['to'](_0x372684,'id',_0x47bd70=>'commentsArchive'===_0x47bd70),_0x1d2135['set']({'label':E(_0x23da95,'COMMENTS_ARCHIVE'),'icon':_0x3a4089,'isToggleable':!0x0}),_0x49394d&&(_0x1d2135['tooltip']=!0x0),this['listenTo'](_0x1d2135,'execute',()=>this['_toggleDialog']()),_0x1d2135;}['_hideDialogOnAnnotationEscape']=_0x872a04=>{const _0x2989d9=_0x872a04['source'];if(!this['annotationViews']['has'](_0x2989d9['view']))return;const _0x7ed741=this['editor']['plugins']['get']('Dialog');_0x7ed741['isOpen']&&'commentsArchive'===_0x7ed741['id']&&(_0x7ed741['hide'](),_0x872a04['stop']());};}class p extends _0x3f67cf{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,_ as AnnotationCollection,S as AnnotationView,O as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,fi as Comment,ui as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt 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,z as Sidebar,e as WideSidebar};