@ckeditor/ckeditor5-comments 29.1.0 → 31.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/lang/translations/da.po +79 -0
  2. package/lang/translations/id.po +78 -0
  3. package/package.json +8 -8
  4. package/src/annotations/annotation.js +1 -1
  5. package/src/annotations/annotationcollection.js +1 -1
  6. package/src/annotations/annotations.js +1 -1
  7. package/src/annotations/annotationsuis.js +1 -1
  8. package/src/annotations/editorannotations.js +1 -1
  9. package/src/annotations/inlineannotations.js +1 -1
  10. package/src/annotations/narrowsidebar.js +1 -1
  11. package/src/annotations/sidebar.js +1 -1
  12. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  13. package/src/annotations/view/annotationview.js +1 -1
  14. package/src/annotations/view/sidebaritemview.js +1 -1
  15. package/src/annotations/view/sidebarview.js +1 -1
  16. package/src/annotations/widesidebar.js +1 -1
  17. package/src/comments/addcommentthreadcommand.js +1 -1
  18. package/src/comments/commentsediting.js +1 -1
  19. package/src/comments/commentsrepository.js +1 -1
  20. package/src/comments/commentsui.js +1 -1
  21. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  22. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  23. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  25. package/src/comments/ui/commentthreadcontroller.js +1 -1
  26. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  27. package/src/comments/ui/view/basecommentview.js +1 -1
  28. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  29. package/src/comments/ui/view/commentcontentview.js +1 -1
  30. package/src/comments/ui/view/commentinputview.js +1 -1
  31. package/src/comments/ui/view/commentslistview.js +1 -1
  32. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  33. package/src/comments/ui/view/commentthreadview.js +1 -1
  34. package/src/comments/ui/view/commentview.js +1 -1
  35. package/src/comments/ui/view/confirmmixin.js +1 -1
  36. package/src/comments/ui/view/confirmview.js +1 -1
  37. package/src/comments.js +1 -1
  38. package/src/commentsonly.js +1 -1
  39. package/src/utils/common-translations.js +1 -1
  40. package/src/utils/createmutationobserver.js +1 -1
  41. package/src/utils/getdatetimeformatter.js +1 -1
  42. package/src/utils/getmarkerdomelement.js +1 -1
  43. package/src/utils/trim-html.js +1 -1
  44. package/theme/icons/add-comment.svg +1 -1
  45. package/theme/sidebar-narrow.css +2 -2
  46. package/theme/icons/add-comment-inverted.svg +0 -11
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2498=['max','sidebar-setcontainer-invalid-element','view','bottom','_alignBeforeItem','_updateLastItem','_lastItem','_sidebarItemViewToAnnotation','Sidebar','sidebar.preventScrollOutOfView','top','last','_activeAnnotation','config','locale','delete','_setItemTop','rearrange','context','change:_lastItem','refresh','_getItemBefore','container','addAnnotation','_annotations','_destroySidebarItemView','class','_spaceBetweenItems','bind','init','remove','_detachFromContainer','sidebar-attachtocontainer-missing-container','change:targetRect','getIndex','_annotationToSidebarItemView','_alignAfterItem','_targetTop','isActive','_getTargetTop','destroy','define','set','content','target','_alignToTargetRect','_createSidebarView','_getItemAfter','get','change:top','getSidebarItemView','render','_getMaxAvailableTop','updateHeight','add','element','height','listenTo','setContainer','minHeight','isAnimationDisabled','unbind','appendChild','list','stopListening','length','targetRect'];(function(_0x208b4d,_0x2498a7){const _0x3df104=function(_0xa56eb5){while(--_0xa56eb5){_0x208b4d['push'](_0x208b4d['shift']());}};_0x3df104(++_0x2498a7);}(_0x2498,0xec));const _0x3df1=function(_0x208b4d,_0x2498a7){_0x208b4d=_0x208b4d-0x0;let _0x3df104=_0x2498[_0x208b4d];return _0x3df104;};import{ContextPlugin as _0x2e96e7}from'ckeditor5/src/core';import _0x590c40 from'./view/sidebarview';import _0x40204e from'./view/sidebaritemview';import{Rect as _0x2dd11f,CKEditorError as _0x72f6e3}from'ckeditor5/src/utils';import{isElement as _0x1e7b32,throttle as _0x5e178b}from'lodash-es';export default class b extends _0x2e96e7{static get['pluginName'](){return _0x3df1('0x28');}constructor(_0x5b8f53){super(_0x5b8f53),this['set'](_0x3df1('0x26')),this['view']=this['_createSidebarView'](),this[_0x3df1('0x7')]('container',null),this[_0x3df1('0x3b')]=0x19,this[_0x3df1('0x27')]=new Map(),this[_0x3df1('0x0')]=new Map(),this[_0x3df1('0x32')][_0x3df1('0x2d')][_0x3df1('0x6')](_0x3df1('0x29'),!0x1),this[_0x3df1('0x38')]=null,this[_0x3df1('0x2c')]=null;}[_0x3df1('0x3d')](){const _0x4626da=this[_0x3df1('0x32')][_0x3df1('0x2d')]['get']('sidebar.container');_0x4626da&&this[_0x3df1('0x17')](_0x4626da);}[_0x3df1('0x17')](_0x25aaaf){if(!_0x1e7b32(_0x25aaaf))throw new _0x72f6e3(_0x3df1('0x21'));this[_0x3df1('0x36')]=_0x25aaaf;}['_attachToContainer']({viewClass:_0x21a252='',spaceBetweenItems:_0x497e8a=0x19}={}){if(!_0x1e7b32(this[_0x3df1('0x36')]))throw new _0x72f6e3(_0x3df1('0x40'),this);this[_0x3df1('0x36')][_0x3df1('0x1b')](this[_0x3df1('0x22')][_0x3df1('0x14')]),this['view'][_0x3df1('0x3a')]=_0x21a252,this[_0x3df1('0x3b')]=_0x497e8a;}[_0x3df1('0x31')]({removedAnnotation:_0x4bc9f4,previousAnnotation:_0x3308b9,nextAnnotation:_0x154b2a}){const _0x40b65c=this[_0x3df1('0xf')](_0x4bc9f4);this['view'][_0x3df1('0x1c')][_0x3df1('0x3e')](_0x40b65c),this[_0x3df1('0x39')](_0x4bc9f4),_0x3308b9&&this[_0x3df1('0xa')](this[_0x3df1('0xf')](_0x3308b9)),_0x154b2a&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x154b2a)),this['_updateLastItem']();}[_0x3df1('0x34')]({blurredAnnotation:_0x30c577,activatedAnnotation:_0x4f0516,disableAnimationOnActivatedAnnotation:_0xe572c6}){if(this[_0x3df1('0x2c')]=_0x4f0516,_0x30c577){_0x30c577[_0x3df1('0x3')]=!0x1;const _0x2a0ee0=this[_0x3df1('0xf')](_0x30c577);_0x2a0ee0&&_0xe572c6&&(_0x2a0ee0[_0x3df1('0x19')]=!0x1);}if(_0x4f0516){const _0x4223ab=this['getSidebarItemView'](_0x4f0516);_0x4223ab&&(_0x4f0516[_0x3df1('0x3')]=!0x0,_0xe572c6&&(_0x4223ab[_0x3df1('0x19')]=!0x0,_0x4223ab[_0x3df1('0x2a')]+=0x1),this[_0x3df1('0xa')](_0x4223ab));}}[_0x3df1('0x3f')](_0xf7cd2e){this['stopListening'](),this[_0x3df1('0x22')][_0x3df1('0x14')][_0x3df1('0x3e')]();for(const _0x16910e of _0xf7cd2e)this[_0x3df1('0x39')](_0x16910e);this['view'][_0x3df1('0x1c')]['clear'](),this['view'][_0x3df1('0x3a')]='',this[_0x3df1('0x26')]=null;}[_0x3df1('0x37')](_0x5eb3e2,_0x441e37){_0x441e37||(_0x441e37=_0x5eb3e2[_0x3df1('0x22')]);const _0x2a66d6=new _0x40204e(this[_0x3df1('0x32')][_0x3df1('0x2e')]);this['_sidebarItemViewToAnnotation'][_0x3df1('0x7')](_0x2a66d6,_0x5eb3e2),this[_0x3df1('0x0')][_0x3df1('0x7')](_0x5eb3e2,_0x2a66d6),_0x2a66d6[_0x3df1('0x8')]['add'](_0x441e37),this[_0x3df1('0xa')](_0x2a66d6),this[_0x3df1('0x16')](_0x5eb3e2[_0x3df1('0x22')],_0x3df1('0x41'),()=>{const _0x35ab42=this[_0x3df1('0x4')](_0x2a66d6);_0x2a66d6['_targetTop']!=_0x35ab42&&(_0x2a66d6[_0x3df1('0x2')]=_0x35ab42,this[_0x3df1('0x30')](_0x2a66d6,_0x35ab42));}),this[_0x3df1('0x16')](_0x2a66d6,_0x3df1('0xe'),_0x5e178b(()=>{if(!_0x2a66d6[_0x3df1('0x8')]['length'])return;const _0x1c1e40=this[_0x3df1('0x35')](_0x2a66d6);if(!_0x1c1e40)return;const _0x2ebd10=this[_0x3df1('0x27')][_0x3df1('0xd')](_0x1c1e40),_0x2d0ebf=this[_0x3df1('0x2c')];_0x2d0ebf&&_0x2d0ebf===_0x2ebd10?this[_0x3df1('0x1')](_0x1c1e40,_0x2a66d6):this[_0x3df1('0x24')](_0x2a66d6,_0x1c1e40);},0xa,{'leading':!0x1})),this['listenTo'](_0x2a66d6,'change:bottom',_0x5e178b(()=>{if(!_0x2a66d6[_0x3df1('0x8')][_0x3df1('0x1e')])return;const _0x1940a6=this[_0x3df1('0xc')](_0x2a66d6);if(!_0x1940a6)return;const _0x4b9ea8=this[_0x3df1('0x27')][_0x3df1('0xd')](_0x1940a6),_0x5b7098=this[_0x3df1('0x32')]['config']['get'](_0x3df1('0x29')),_0x152a46=this[_0x3df1('0x2c')];_0x152a46&&_0x152a46===_0x4b9ea8&&_0x5b7098?(this[_0x3df1('0x24')](_0x1940a6,_0x2a66d6),this[_0x3df1('0x1')](_0x2a66d6,_0x1940a6)):_0x152a46&&_0x152a46===_0x4b9ea8?this[_0x3df1('0x24')](_0x1940a6,_0x2a66d6):this[_0x3df1('0x1')](_0x2a66d6,_0x1940a6);},0xa,{'leading':!0x1}));const _0x94e837=this[_0x3df1('0x35')](_0x2a66d6);if(_0x94e837)this['_alignAfterItem'](_0x94e837,_0x2a66d6)||this['_alignToTargetRect'](_0x2a66d6);else this[_0x3df1('0xa')](_0x2a66d6);return this[_0x3df1('0x25')](),this[_0x3df1('0x22')][_0x3df1('0x1c')][_0x3df1('0x13')](_0x2a66d6),_0x2a66d6;}[_0x3df1('0xf')](_0x16140e){return this[_0x3df1('0x0')][_0x3df1('0xd')](_0x16140e);}['destroy'](){this[_0x3df1('0x22')][_0x3df1('0x5')]();}[_0x3df1('0x39')](_0x6de38b){const _0x556c0e=this[_0x3df1('0xf')](_0x6de38b);this['stopListening'](_0x556c0e),this[_0x3df1('0x1d')](_0x6de38b['view']),_0x556c0e[_0x3df1('0x5')](),this[_0x3df1('0x0')][_0x3df1('0x2f')](_0x6de38b),this[_0x3df1('0x27')][_0x3df1('0x2f')](_0x556c0e);}[_0x3df1('0xb')](){const _0x35d729=new _0x590c40(this[_0x3df1('0x32')][_0x3df1('0x2e')]);return _0x35d729[_0x3df1('0x10')](),this['on'](_0x3df1('0x33'),(_0x30d56c,_0x436449,_0xb696ae,_0x596c45)=>{_0x596c45&&_0x35d729[_0x3df1('0x1a')]('minHeight'),_0xb696ae?_0x35d729[_0x3df1('0x3c')](_0x3df1('0x18'))['to'](_0xb696ae,_0x3df1('0x23')):_0x35d729[_0x3df1('0x18')]=null;}),_0x35d729;}['_updateLastItem'](){this['_lastItem']=this['getSidebarItemView'](this[_0x3df1('0x38')][_0x3df1('0x2b')]);}[_0x3df1('0x35')](_0x551070){const _0x302427=this[_0x3df1('0x27')][_0x3df1('0xd')](_0x551070),_0x3fc704=this['_annotations']['get'](this[_0x3df1('0x38')][_0x3df1('0x42')](_0x302427)-0x1);return _0x3fc704&&this[_0x3df1('0xf')](_0x3fc704);}[_0x3df1('0xc')](_0x47fed6){const _0x2bd238=this[_0x3df1('0x27')][_0x3df1('0xd')](_0x47fed6),_0x4aa8cc=this[_0x3df1('0x38')][_0x3df1('0xd')](this[_0x3df1('0x38')][_0x3df1('0x42')](_0x2bd238)+0x1);return _0x4aa8cc&&this[_0x3df1('0xf')](_0x4aa8cc);}[_0x3df1('0x24')](_0x15ac26,_0x33090c){_0x15ac26[_0x3df1('0x12')]();const _0xb683d0=V(_0x33090c[_0x3df1('0x23')]+this[_0x3df1('0x3b')],_0x15ac26[_0x3df1('0x2a')]);return!!_0xb683d0&&(this['_setItemTop'](_0x33090c,_0x33090c[_0x3df1('0x2a')]-_0xb683d0),!0x0);}[_0x3df1('0x1')](_0x5052cd,_0x22f4f7){_0x5052cd[_0x3df1('0x12')]();const _0x2bbcfc=V(_0x5052cd[_0x3df1('0x23')]+this['_spaceBetweenItems'],_0x22f4f7[_0x3df1('0x2a')]);return!!_0x2bbcfc&&(this[_0x3df1('0x30')](_0x22f4f7,_0x22f4f7[_0x3df1('0x2a')]+_0x2bbcfc,!0x1),!0x0);}['_alignToTargetRect'](_0xfe3839){const _0x504998=this[_0x3df1('0x27')][_0x3df1('0xd')](_0xfe3839);if(!_0x504998||!_0x504998[_0x3df1('0x9')])return;const _0x19b658=this[_0x3df1('0x4')](_0xfe3839);this[_0x3df1('0x30')](_0xfe3839,_0x19b658);}['_getTargetTop'](_0x4a487b){const _0x3df076=this['_sidebarItemViewToAnnotation'][_0x3df1('0xd')](_0x4a487b);if(_0x3df076['target']instanceof _0x2dd11f)return _0x3df076[_0x3df1('0x1f')][_0x3df1('0x2a')];{const _0x14f251=new _0x2dd11f(this['view'][_0x3df1('0x14')])[_0x3df1('0x2a')];return _0x3df076[_0x3df1('0x1f')][_0x3df1('0x2a')]-_0x14f251;}}[_0x3df1('0x30')](_0x242974,_0x44b0aa,_0x376ff3=this[_0x3df1('0x32')][_0x3df1('0x2d')]['get'](_0x3df1('0x29'))){_0x376ff3&&(_0x44b0aa=Math[_0x3df1('0x20')](_0x44b0aa,this[_0x3df1('0x11')](_0x242974))),_0x242974[_0x3df1('0x2a')]=_0x44b0aa;}[_0x3df1('0x11')](_0x17c713){let _0x1ffa41=this[_0x3df1('0x35')](_0x17c713),_0x53a359=0x0;for(;_0x1ffa41;)_0x1ffa41['updateHeight'](),_0x53a359+=this[_0x3df1('0x3b')]+_0x1ffa41[_0x3df1('0x15')],_0x1ffa41=this['_getItemBefore'](_0x1ffa41);return _0x53a359;}}function V(_0x246236,_0xf994ac){return Math['max'](_0x246236-_0xf994ac,0x0);}
23
+ const _0x4ece=['getIndex','bottom','class','_annotationToSidebarItemView','change:_lastItem','sidebar.preventScrollOutOfView','targetRect','_updateLastItem','_alignBeforeItem','_setItemTop','last','destroy','updateHeight','_attachToContainer','locale','set','remove','content','_getItemAfter','length','sidebar.container','_getMaxAvailableTop','_detachFromContainer','rearrange','clear','isAnimationDisabled','appendChild','pluginName','_destroySidebarItemView','get','setContainer','listenTo','stopListening','add','_targetTop','render','_alignToTargetRect','_sidebarItemViewToAnnotation','_activeAnnotation','_spaceBetweenItems','change:targetRect','target','_getItemBefore','_alignAfterItem','context','_lastItem','top','getSidebarItemView','height','container','addAnnotation','view','list','config','_createSidebarView','refresh','isActive','delete','_annotations','max','element','minHeight','change:top','sidebar-attachtocontainer-missing-container','_getTargetTop','change:bottom'];(function(_0x384d97,_0x4ecead){const _0x5ce96c=function(_0x3dc31f){while(--_0x3dc31f){_0x384d97['push'](_0x384d97['shift']());}};_0x5ce96c(++_0x4ecead);}(_0x4ece,0x150));const _0x5ce9=function(_0x384d97,_0x4ecead){_0x384d97=_0x384d97-0x0;let _0x5ce96c=_0x4ece[_0x384d97];return _0x5ce96c;};import{ContextPlugin as _0x389435}from'ckeditor5/src/core';import _0x2cfea1 from'./view/sidebarview';import _0x1257e0 from'./view/sidebaritemview';import{Rect as _0x37058d,CKEditorError as _0x39b225}from'ckeditor5/src/utils';import{isElement as _0x4eeb5d,throttle as _0x60280b}from'lodash-es';export default class b extends _0x389435{static get[_0x5ce9('0x15')](){return'Sidebar';}constructor(_0x27a256){super(_0x27a256),this[_0x5ce9('0x9')](_0x5ce9('0x27')),this[_0x5ce9('0x2d')]=this[_0x5ce9('0x30')](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x5ce9('0x3f')]=new Map(),this[_0x5ce9('0x26')][_0x5ce9('0x2f')]['define'](_0x5ce9('0x41'),!0x1),this['_annotations']=null,this['_activeAnnotation']=null;}['init'](){const _0x1abb8d=this['context'][_0x5ce9('0x2f')][_0x5ce9('0x17')](_0x5ce9('0xe'));_0x1abb8d&&this[_0x5ce9('0x18')](_0x1abb8d);}[_0x5ce9('0x18')](_0x179f51){if(!_0x4eeb5d(_0x179f51))throw new _0x39b225('sidebar-setcontainer-invalid-element');this[_0x5ce9('0x2b')]=_0x179f51;}[_0x5ce9('0x7')]({viewClass:_0x4aeb0c='',spaceBetweenItems:_0x259bfd=0x19}={}){if(!_0x4eeb5d(this['container']))throw new _0x39b225(_0x5ce9('0x39'),this);this[_0x5ce9('0x2b')][_0x5ce9('0x14')](this[_0x5ce9('0x2d')][_0x5ce9('0x36')]),this[_0x5ce9('0x2d')][_0x5ce9('0x3e')]=_0x4aeb0c,this['_spaceBetweenItems']=_0x259bfd;}[_0x5ce9('0x11')]({removedAnnotation:_0x295d2e,previousAnnotation:_0x7e4af6,nextAnnotation:_0x2d76e5}){const _0x441a0b=this['getSidebarItemView'](_0x295d2e);this[_0x5ce9('0x2d')][_0x5ce9('0x2e')][_0x5ce9('0xa')](_0x441a0b),this[_0x5ce9('0x16')](_0x295d2e),_0x7e4af6&&this[_0x5ce9('0x1e')](this[_0x5ce9('0x29')](_0x7e4af6)),_0x2d76e5&&this[_0x5ce9('0x1e')](this[_0x5ce9('0x29')](_0x2d76e5)),this['_updateLastItem']();}[_0x5ce9('0x31')]({blurredAnnotation:_0xee2698,activatedAnnotation:_0x2bba7e,disableAnimationOnActivatedAnnotation:_0x4585ef}){if(this['_activeAnnotation']=_0x2bba7e,_0xee2698){_0xee2698[_0x5ce9('0x32')]=!0x1;const _0x4fcc03=this['getSidebarItemView'](_0xee2698);_0x4fcc03&&_0x4585ef&&(_0x4fcc03[_0x5ce9('0x13')]=!0x1);}if(_0x2bba7e){const _0x2f6727=this[_0x5ce9('0x29')](_0x2bba7e);_0x2f6727&&(_0x2bba7e[_0x5ce9('0x32')]=!0x0,_0x4585ef&&(_0x2f6727[_0x5ce9('0x13')]=!0x0,_0x2f6727[_0x5ce9('0x28')]+=0x1),this['_alignToTargetRect'](_0x2f6727));}}[_0x5ce9('0x10')](_0x48c492){this[_0x5ce9('0x1a')](),this[_0x5ce9('0x2d')][_0x5ce9('0x36')][_0x5ce9('0xa')]();for(const _0x168808 of _0x48c492)this[_0x5ce9('0x16')](_0x168808);this['view'][_0x5ce9('0x2e')][_0x5ce9('0x12')](),this['view'][_0x5ce9('0x3e')]='',this[_0x5ce9('0x27')]=null;}[_0x5ce9('0x2c')](_0x5b6ba0,_0xbb7fed){_0xbb7fed||(_0xbb7fed=_0x5b6ba0[_0x5ce9('0x2d')]);const _0x2be544=new _0x1257e0(this[_0x5ce9('0x26')][_0x5ce9('0x8')]);this['_sidebarItemViewToAnnotation'][_0x5ce9('0x9')](_0x2be544,_0x5b6ba0),this[_0x5ce9('0x3f')][_0x5ce9('0x9')](_0x5b6ba0,_0x2be544),_0x2be544[_0x5ce9('0xb')][_0x5ce9('0x1b')](_0xbb7fed),this[_0x5ce9('0x1e')](_0x2be544),this[_0x5ce9('0x19')](_0x5b6ba0[_0x5ce9('0x2d')],_0x5ce9('0x22'),()=>{const _0x15be26=this[_0x5ce9('0x3a')](_0x2be544);_0x2be544['_targetTop']!=_0x15be26&&(_0x2be544[_0x5ce9('0x1c')]=_0x15be26,this['_setItemTop'](_0x2be544,_0x15be26));}),this[_0x5ce9('0x19')](_0x2be544,_0x5ce9('0x38'),_0x60280b(()=>{if(!_0x2be544[_0x5ce9('0xb')][_0x5ce9('0xd')])return;const _0x3e9fd3=this[_0x5ce9('0x24')](_0x2be544);if(!_0x3e9fd3)return;const _0x3a9209=this[_0x5ce9('0x1f')][_0x5ce9('0x17')](_0x3e9fd3),_0x265bac=this[_0x5ce9('0x20')];_0x265bac&&_0x265bac===_0x3a9209?this[_0x5ce9('0x25')](_0x3e9fd3,_0x2be544):this[_0x5ce9('0x2')](_0x2be544,_0x3e9fd3);},0xa,{'leading':!0x1})),this['listenTo'](_0x2be544,_0x5ce9('0x3b'),_0x60280b(()=>{if(!_0x2be544[_0x5ce9('0xb')][_0x5ce9('0xd')])return;const _0x833930=this[_0x5ce9('0xc')](_0x2be544);if(!_0x833930)return;const _0x4f1437=this[_0x5ce9('0x1f')][_0x5ce9('0x17')](_0x833930),_0x2442c5=this[_0x5ce9('0x26')]['config'][_0x5ce9('0x17')]('sidebar.preventScrollOutOfView'),_0x852dac=this['_activeAnnotation'];_0x852dac&&_0x852dac===_0x4f1437&&_0x2442c5?(this[_0x5ce9('0x2')](_0x833930,_0x2be544),this[_0x5ce9('0x25')](_0x2be544,_0x833930)):_0x852dac&&_0x852dac===_0x4f1437?this[_0x5ce9('0x2')](_0x833930,_0x2be544):this['_alignAfterItem'](_0x2be544,_0x833930);},0xa,{'leading':!0x1}));const _0x4cd86b=this[_0x5ce9('0x24')](_0x2be544);if(_0x4cd86b)this[_0x5ce9('0x25')](_0x4cd86b,_0x2be544)||this[_0x5ce9('0x1e')](_0x2be544);else this['_alignToTargetRect'](_0x2be544);return this[_0x5ce9('0x1')](),this['view']['list'][_0x5ce9('0x1b')](_0x2be544),_0x2be544;}[_0x5ce9('0x29')](_0x523bf9){return this['_annotationToSidebarItemView']['get'](_0x523bf9);}[_0x5ce9('0x5')](){this['view']['destroy']();}[_0x5ce9('0x16')](_0x5e17b8){const _0x3d85aa=this[_0x5ce9('0x29')](_0x5e17b8);this['stopListening'](_0x3d85aa),this[_0x5ce9('0x1a')](_0x5e17b8[_0x5ce9('0x2d')]),_0x3d85aa[_0x5ce9('0x5')](),this[_0x5ce9('0x3f')]['delete'](_0x5e17b8),this[_0x5ce9('0x1f')][_0x5ce9('0x33')](_0x3d85aa);}[_0x5ce9('0x30')](){const _0x8b8f03=new _0x2cfea1(this['context'][_0x5ce9('0x8')]);return _0x8b8f03[_0x5ce9('0x1d')](),this['on'](_0x5ce9('0x40'),(_0x4ef33c,_0x1fd508,_0x4af3fa,_0x29a0da)=>{_0x29a0da&&_0x8b8f03['unbind'](_0x5ce9('0x37')),_0x4af3fa?_0x8b8f03['bind']('minHeight')['to'](_0x4af3fa,_0x5ce9('0x3d')):_0x8b8f03[_0x5ce9('0x37')]=null;}),_0x8b8f03;}['_updateLastItem'](){this[_0x5ce9('0x27')]=this[_0x5ce9('0x29')](this[_0x5ce9('0x34')][_0x5ce9('0x4')]);}[_0x5ce9('0x24')](_0x36fbd3){const _0x40c73a=this[_0x5ce9('0x1f')][_0x5ce9('0x17')](_0x36fbd3),_0x4b1fee=this[_0x5ce9('0x34')][_0x5ce9('0x17')](this[_0x5ce9('0x34')][_0x5ce9('0x3c')](_0x40c73a)-0x1);return _0x4b1fee&&this[_0x5ce9('0x29')](_0x4b1fee);}['_getItemAfter'](_0x2b7cd7){const _0x5827ff=this['_sidebarItemViewToAnnotation'][_0x5ce9('0x17')](_0x2b7cd7),_0x24c4ff=this['_annotations'][_0x5ce9('0x17')](this[_0x5ce9('0x34')][_0x5ce9('0x3c')](_0x5827ff)+0x1);return _0x24c4ff&&this[_0x5ce9('0x29')](_0x24c4ff);}[_0x5ce9('0x2')](_0x5cefd4,_0x37e788){_0x5cefd4[_0x5ce9('0x6')]();const _0x134511=V(_0x37e788[_0x5ce9('0x3d')]+this[_0x5ce9('0x21')],_0x5cefd4[_0x5ce9('0x28')]);return!!_0x134511&&(this['_setItemTop'](_0x37e788,_0x37e788[_0x5ce9('0x28')]-_0x134511),!0x0);}[_0x5ce9('0x25')](_0x3d354e,_0x419171){_0x3d354e[_0x5ce9('0x6')]();const _0x59e5aa=V(_0x3d354e[_0x5ce9('0x3d')]+this['_spaceBetweenItems'],_0x419171[_0x5ce9('0x28')]);return!!_0x59e5aa&&(this[_0x5ce9('0x3')](_0x419171,_0x419171['top']+_0x59e5aa,!0x1),!0x0);}['_alignToTargetRect'](_0x812388){const _0x10ca8b=this[_0x5ce9('0x1f')][_0x5ce9('0x17')](_0x812388);if(!_0x10ca8b||!_0x10ca8b[_0x5ce9('0x23')])return;const _0x43402f=this['_getTargetTop'](_0x812388);this[_0x5ce9('0x3')](_0x812388,_0x43402f);}['_getTargetTop'](_0x4b3b1b){const _0x43a682=this[_0x5ce9('0x1f')]['get'](_0x4b3b1b);if(_0x43a682[_0x5ce9('0x23')]instanceof _0x37058d)return _0x43a682[_0x5ce9('0x0')][_0x5ce9('0x28')];{const _0x21f239=new _0x37058d(this[_0x5ce9('0x2d')][_0x5ce9('0x36')])[_0x5ce9('0x28')];return _0x43a682[_0x5ce9('0x0')][_0x5ce9('0x28')]-_0x21f239;}}['_setItemTop'](_0x1ec95e,_0x19f6c7,_0x4ddae6=this[_0x5ce9('0x26')][_0x5ce9('0x2f')][_0x5ce9('0x17')]('sidebar.preventScrollOutOfView')){_0x4ddae6&&(_0x19f6c7=Math[_0x5ce9('0x35')](_0x19f6c7,this['_getMaxAvailableTop'](_0x1ec95e))),_0x1ec95e[_0x5ce9('0x28')]=_0x19f6c7;}[_0x5ce9('0xf')](_0xf4c3f9){let _0x26cefd=this['_getItemBefore'](_0xf4c3f9),_0x4ab82a=0x0;for(;_0x26cefd;)_0x26cefd[_0x5ce9('0x6')](),_0x4ab82a+=this[_0x5ce9('0x21')]+_0x26cefd[_0x5ce9('0x2a')],_0x26cefd=this['_getItemBefore'](_0x26cefd);return _0x4ab82a;}}function V(_0x33373d,_0x47ff05){return Math[_0x5ce9('0x35')](_0x33373d-_0x47ff05,0x0);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c9d=['number','span','bindTemplate','isDirty','...','_badge','setTemplate','extendTemplate','icon','ck-annotation-counter__badge--edit-mode','bind','set','annotationType','counterView','children','ck-annotation-counter__badge'];(function(_0x2e8b8d,_0x3c9d12){const _0x158b30=function(_0x2f6eef){while(--_0x2f6eef){_0x2e8b8d['push'](_0x2e8b8d['shift']());}};_0x158b30(++_0x3c9d12);}(_0x3c9d,0x127));const _0x158b=function(_0x2e8b8d,_0x3c9d12){_0x2e8b8d=_0x2e8b8d-0x0;let _0x158b30=_0x3c9d[_0x2e8b8d];return _0x158b30;};import{ButtonView as _0x256305,View as _0x2399b4}from'ckeditor5/src/ui';import _0x2c4b8e from'../../../theme/icons/add-comment-inverted.svg';export default class _ extends _0x256305{constructor(_0x38866d){super(_0x38866d);const _0x4eef47=this[_0x158b('0xb')];this['set'](_0x158b('0xc'),!0x1),this[_0x158b('0x4')](_0x158b('0x9'),0x0),this[_0x158b('0x3')](_0x158b('0xe'))['to'](this,_0x158b('0xc'),this,_0x158b('0x9'),(_0x2ba7ec,_0x651304)=>_0x2ba7ec?_0x158b('0xd'):_0x651304),this['set'](_0x158b('0x5'),''),this[_0x158b('0x1')]=_0x2c4b8e,this[_0x158b('0x0')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x158b('0x6')]=new _0x2399b4(),this[_0x158b('0x6')][_0x158b('0xf')]({'tag':_0x158b('0xa'),'attributes':{'class':[_0x158b('0x8'),_0x4eef47['to'](_0x158b('0x5'),_0x16adad=>'ck-annotation-counter__badge--'+_0x16adad),_0x4eef47['if'](_0x158b('0xc'),_0x158b('0x2'))]},'children':[{'text':_0x4eef47['to'](_0x158b('0xe'))}]}),this[_0x158b('0x7')]['add'](this[_0x158b('0x6')]);}}
23
+ const _0x2dee=['extendTemplate','add','counterView','set','ck-annotation-counter__badge--edit-mode','children','...','annotationType','ck-annotation-counter__badge','isDirty','_badge','number','setTemplate','ck-annotation-counter'];(function(_0x17ab87,_0x2deedf){const _0x42d909=function(_0x49c2c7){while(--_0x49c2c7){_0x17ab87['push'](_0x17ab87['shift']());}};_0x42d909(++_0x2deedf);}(_0x2dee,0xc7));const _0x42d9=function(_0x17ab87,_0x2deedf){_0x17ab87=_0x17ab87-0x0;let _0x42d909=_0x2dee[_0x17ab87];return _0x42d909;};import{ButtonView as _0xbf4ef7,View as _0x4f6cb8}from'ckeditor5/src/ui';import _0x47cb7d from'../../../theme/icons/add-comment.svg';export default class _ extends _0xbf4ef7{constructor(_0x4d4dd5){super(_0x4d4dd5);const _0x273259=this['bindTemplate'];this[_0x42d9('0x0')](_0x42d9('0x6'),!0x1),this[_0x42d9('0x0')]('number',0x0),this['bind'](_0x42d9('0x7'))['to'](this,_0x42d9('0x6'),this,_0x42d9('0x8'),(_0x2a0d42,_0x5951c9)=>_0x2a0d42?_0x42d9('0x3'):_0x5951c9),this[_0x42d9('0x0')](_0x42d9('0x4'),''),this['icon']=_0x47cb7d,this[_0x42d9('0xb')]({'attributes':{'class':[_0x42d9('0xa')]}}),this[_0x42d9('0xd')]=new _0x4f6cb8(),this[_0x42d9('0xd')][_0x42d9('0x9')]({'tag':'span','attributes':{'class':[_0x42d9('0x5'),_0x273259['to']('annotationType',_0x660a7a=>'ck-annotation-counter__badge--'+_0x660a7a),_0x273259['if']('isDirty',_0x42d9('0x1'))]},'children':[{'text':_0x273259['to'](_0x42d9('0x7'))}]}),this[_0x42d9('0x2')][_0x42d9('0xc')](this[_0x42d9('0xd')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e27=['attach','isDirty','type','mainView','ck-rounded-corners','destroy','div','focus','_updateHeight','content','render','createCollection','focusTracker','height','length','add','ck-annotation-wrapper','fire','bindTemplate','clear','keystrokes','element','Esc','setTemplate','clientHeight','set','detach','listenTo','isActive','_mutationObserver'];(function(_0x50b6e0,_0x4e2710){const _0x169c5f=function(_0x3dac06){while(--_0x3dac06){_0x50b6e0['push'](_0x50b6e0['shift']());}};_0x169c5f(++_0x4e2710);}(_0x4e27,0x1b7));const _0x169c=function(_0x50b6e0,_0x4e2710){_0x50b6e0=_0x50b6e0-0x0;let _0x169c5f=_0x4e27[_0x50b6e0];return _0x169c5f;};import{View as _0x53d42b}from'ckeditor5/src/ui';import{FocusTracker as _0x1cc9b1,KeystrokeHandler as _0x70ec49,uid as _0x26178a}from'ckeditor5/src/utils';import _0x54e046 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class rt extends _0x53d42b{constructor(_0x3d862b,_0x461b58){super(_0x3d862b),this['id']=_0x26178a(),this[_0x169c('0x17')]=new _0x1cc9b1(),this[_0x169c('0x1')]=new _0x70ec49(),this[_0x169c('0x1')]['set'](_0x169c('0x3'),(_0xbc8baa,_0x15cecf)=>this[_0x169c('0x1c')](_0x169c('0x3'),_0x15cecf)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x169c('0x6')](_0x169c('0x18'),0x0),this[_0x169c('0x6')](_0x169c('0x9'),!0x1),this[_0x169c('0x6')](_0x169c('0xc'),!0x1),this[_0x169c('0x6')](_0x169c('0x19'),0x0),this[_0x169c('0x6')](_0x169c('0xd'),''),this[_0x169c('0xa')]=_0x54e046(()=>this[_0x169c('0x13')]()),this[_0x169c('0x14')]=this[_0x169c('0x16')](),this[_0x169c('0x14')][_0x169c('0x1a')](_0x461b58),this[_0x169c('0xe')]=_0x461b58;const _0x21c3c2=this[_0x169c('0x1d')];this[_0x169c('0x4')]({'tag':_0x169c('0x11'),'attributes':{'class':['ck',_0x169c('0x1b'),_0x169c('0xf'),_0x21c3c2['if'](_0x169c('0x9'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x169c('0x14')]});}[_0x169c('0x15')](){super[_0x169c('0x15')](),this[_0x169c('0x17')]['add'](this[_0x169c('0x2')]),this[_0x169c('0x1')][_0x169c('0x8')](this[_0x169c('0x2')]),this[_0x169c('0xa')][_0x169c('0xb')](this[_0x169c('0x2')]);}['destroy'](){this[_0x169c('0x14')][_0x169c('0x0')](),this['keystrokes']['destroy'](),this[_0x169c('0x17')][_0x169c('0x10')](),this[_0x169c('0xa')][_0x169c('0x7')](),super['destroy']();}[_0x169c('0x12')](){this['element'][_0x169c('0x12')]();}[_0x169c('0x13')](){const _0x12f7b7=this[_0x169c('0x2')][_0x169c('0x5')];_0x12f7b7&&(this['height']=_0x12f7b7);}}
23
+ const _0x6c73=['keystrokes','focusTracker','ck-annotation-wrapper','destroy','Esc','div','targetRect','clear','set','content','height','setTemplate','focus','mainView','render','_mutationObserver','fire','type','_updateHeight','isDirty','listenTo','detach','add','attach','createCollection','ck-rounded-corners','element','ck-annotation-wrapper--active','length','clientHeight'];(function(_0x167cda,_0x6c737c){const _0x342098=function(_0x5469a0){while(--_0x5469a0){_0x167cda['push'](_0x167cda['shift']());}};_0x342098(++_0x6c737c);}(_0x6c73,0xc2));const _0x3420=function(_0x167cda,_0x6c737c){_0x167cda=_0x167cda-0x0;let _0x342098=_0x6c73[_0x167cda];return _0x342098;};import{View as _0x4e6208}from'ckeditor5/src/ui';import{FocusTracker as _0x52cca7,KeystrokeHandler as _0x387940,uid as _0x1d891c}from'ckeditor5/src/utils';import _0x4b5bc5 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class rt extends _0x4e6208{constructor(_0x38a1d1,_0x1b9340){super(_0x38a1d1),this['id']=_0x1d891c(),this[_0x3420('0x11')]=new _0x52cca7(),this['keystrokes']=new _0x387940(),this[_0x3420('0x10')][_0x3420('0x18')]('Esc',(_0x47eff6,_0x1f4bb3)=>this[_0x3420('0x2')](_0x3420('0x14'),_0x1f4bb3)),this[_0x3420('0x18')](_0x3420('0x16'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3420('0x18')](_0x3420('0x1a'),0x0),this[_0x3420('0x18')]('isActive',!0x1),this[_0x3420('0x18')](_0x3420('0x5'),!0x1),this[_0x3420('0x18')](_0x3420('0xe'),0x0),this[_0x3420('0x18')](_0x3420('0x3'),''),this[_0x3420('0x1')]=_0x4b5bc5(()=>this[_0x3420('0x4')]()),this[_0x3420('0x19')]=this[_0x3420('0xa')](),this[_0x3420('0x19')][_0x3420('0x8')](_0x1b9340),this[_0x3420('0x1d')]=_0x1b9340;const _0x3a2086=this['bindTemplate'];this[_0x3420('0x1b')]({'tag':_0x3420('0x15'),'attributes':{'class':['ck',_0x3420('0x12'),_0x3420('0xb'),_0x3a2086['if']('isActive',_0x3420('0xd'))],'tabindex':-0x1},'children':this[_0x3420('0x19')]});}[_0x3420('0x0')](){super[_0x3420('0x0')](),this['focusTracker']['add'](this[_0x3420('0xc')]),this[_0x3420('0x10')][_0x3420('0x6')](this[_0x3420('0xc')]),this[_0x3420('0x1')][_0x3420('0x9')](this['element']);}['destroy'](){this['content'][_0x3420('0x17')](),this[_0x3420('0x10')]['destroy'](),this[_0x3420('0x11')][_0x3420('0x13')](),this[_0x3420('0x1')][_0x3420('0x7')](),super[_0x3420('0x13')]();}['focus'](){this[_0x3420('0xc')][_0x3420('0x1c')]();}[_0x3420('0x4')](){const _0x4cdb70=this[_0x3420('0xc')][_0x3420('0xf')];_0x4cdb70&&(this['height']=_0x4cdb70);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ff8=['updateHeight','bottom','setTemplate','div','_targetTop','clear','set','element','height','render','top','destroy','content','isAnimationDisabled','attach','clientHeight','ck-sidebar-item','_mutationObserver','createCollection','bind'];(function(_0x17b685,_0x1ff89f){const _0x24be45=function(_0x1e2f50){while(--_0x1e2f50){_0x17b685['push'](_0x17b685['shift']());}};_0x24be45(++_0x1ff89f);}(_0x1ff8,0xc7));const _0x24be=function(_0x17b685,_0x1ff89f){_0x17b685=_0x17b685-0x0;let _0x24be45=_0x1ff8[_0x17b685];return _0x24be45;};import{View as _0x34d039}from'ckeditor5/src/ui';import{toUnit as _0x1b2973}from'ckeditor5/src/utils';import _0x55341e from'../../utils/createmutationobserver';const gt=_0x1b2973('px');export default class T extends _0x34d039{constructor(_0x4ecdbd){super(_0x4ecdbd),this[_0x24be('0x7')](_0x24be('0xb')),this['set'](_0x24be('0x9'),0x0),this[_0x24be('0x0')](_0x24be('0x2'))['to'](this,_0x24be('0xb'),this,_0x24be('0x9'),(_0x4ef11d,_0x24f369)=>(_0x4ef11d||0x0)+_0x24f369),this[_0x24be('0x7')]('isAnimationDisabled',!0x1),this[_0x24be('0x12')]=_0x55341e(()=>this[_0x24be('0x1')]()),this[_0x24be('0x5')]=null,this['content']=this[_0x24be('0x13')]();const _0x443aa9=this['bindTemplate'];this[_0x24be('0x3')]({'tag':_0x24be('0x4'),'attributes':{'class':[_0x24be('0x11'),_0x443aa9['to'](_0x24be('0xe'),_0x5ad305=>_0x5ad305?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x443aa9['to'](_0x24be('0xb'),gt)}},'children':this[_0x24be('0xd')]});}[_0x24be('0xa')](){super['render'](),this[_0x24be('0x12')][_0x24be('0xf')](this[_0x24be('0x8')]);}[_0x24be('0x1')](){const _0x19771e=this[_0x24be('0x8')][_0x24be('0x10')];_0x19771e&&(this[_0x24be('0x9')]=_0x19771e);}['destroy'](){this[_0x24be('0xd')][_0x24be('0x6')](),this[_0x24be('0x12')]['detach'](),super[_0x24be('0xc')]();}}
23
+ const _0x5a71=['render','height','clear','set','updateHeight','clientHeight','_mutationObserver','attach','isAnimationDisabled','bottom','div','ck-sidebar-item--no-animation','bind','content','ck-sidebar-item','_targetTop','setTemplate','element','destroy','detach','createCollection','top'];(function(_0x3189df,_0x5a71e1){const _0x1c48cf=function(_0x122508){while(--_0x122508){_0x3189df['push'](_0x3189df['shift']());}};_0x1c48cf(++_0x5a71e1);}(_0x5a71,0x134));const _0x1c48=function(_0x3189df,_0x5a71e1){_0x3189df=_0x3189df-0x0;let _0x1c48cf=_0x5a71[_0x3189df];return _0x1c48cf;};import{View as _0x43aa8d}from'ckeditor5/src/ui';import{toUnit as _0x140a2f}from'ckeditor5/src/utils';import _0x96f7cc from'../../utils/createmutationobserver';const gt=_0x140a2f('px');export default class T extends _0x43aa8d{constructor(_0x572355){super(_0x572355),this['set']('top'),this[_0x1c48('0x3')](_0x1c48('0x1'),0x0),this[_0x1c48('0xc')](_0x1c48('0x9'))['to'](this,_0x1c48('0x15'),this,'height',(_0x5de237,_0x3acdce)=>(_0x5de237||0x0)+_0x3acdce),this[_0x1c48('0x3')](_0x1c48('0x8'),!0x1),this['_mutationObserver']=_0x96f7cc(()=>this[_0x1c48('0x4')]()),this[_0x1c48('0xf')]=null,this[_0x1c48('0xd')]=this[_0x1c48('0x14')]();const _0x599ddb=this['bindTemplate'];this[_0x1c48('0x10')]({'tag':_0x1c48('0xa'),'attributes':{'class':[_0x1c48('0xe'),_0x599ddb['to'](_0x1c48('0x8'),_0x107e68=>_0x107e68?_0x1c48('0xb'):'')],'style':{'top':_0x599ddb['to']('top',gt)}},'children':this['content']});}[_0x1c48('0x0')](){super[_0x1c48('0x0')](),this['_mutationObserver'][_0x1c48('0x7')](this[_0x1c48('0x11')]);}[_0x1c48('0x4')](){const _0x537356=this['element'][_0x1c48('0x5')];_0x537356&&(this['height']=_0x537356);}['destroy'](){this[_0x1c48('0xd')][_0x1c48('0x2')](),this[_0x1c48('0x6')][_0x1c48('0x13')](),super[_0x1c48('0x12')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b65=['setTemplate','list','class','set','bindTemplate','createCollection','ck-sidebar','minHeight'];(function(_0x4602c8,_0x1b6514){const _0x30bf97=function(_0x9b0725){while(--_0x9b0725){_0x4602c8['push'](_0x4602c8['shift']());}};_0x30bf97(++_0x1b6514);}(_0x1b65,0x18a));const _0x30bf=function(_0x4602c8,_0x1b6514){_0x4602c8=_0x4602c8-0x0;let _0x30bf97=_0x1b65[_0x4602c8];return _0x30bf97;};import{View as _0x5ee776}from'ckeditor5/src/ui';import{toUnit as _0x1bc0ac}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x1bc0ac('px');export default class O extends _0x5ee776{constructor(_0x4123b3){super(_0x4123b3);const _0x201a91=this[_0x30bf('0x2')];this[_0x30bf('0x1')]('minHeight',0x0),this[_0x30bf('0x1')]('class',''),this[_0x30bf('0x7')]=this[_0x30bf('0x3')](),this[_0x30bf('0x6')]({'tag':'div','attributes':{'class':['ck',_0x30bf('0x4'),'ck-reset',_0x201a91['to'](_0x30bf('0x0'))],'style':{'minHeight':_0x201a91['to'](_0x30bf('0x5'),_0x2b49d5=>_0x2b49d5?gt(_0x2b49d5+0xa):null)}},'children':this[_0x30bf('0x7')]});}}
23
+ const _0x3e76=['set','bindTemplate','minHeight','class','list','ck-sidebar','createCollection'];(function(_0x4d032a,_0x3e7695){const _0x359616=function(_0xb19adb){while(--_0xb19adb){_0x4d032a['push'](_0x4d032a['shift']());}};_0x359616(++_0x3e7695);}(_0x3e76,0x1a7));const _0x3596=function(_0x4d032a,_0x3e7695){_0x4d032a=_0x4d032a-0x0;let _0x359616=_0x3e76[_0x4d032a];return _0x359616;};import{View as _0x2e2264}from'ckeditor5/src/ui';import{toUnit as _0x41f9e6}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x41f9e6('px');export default class O extends _0x2e2264{constructor(_0x21f4f8){super(_0x21f4f8);const _0x3abc97=this[_0x3596('0x5')];this[_0x3596('0x4')]('minHeight',0x0),this[_0x3596('0x4')](_0x3596('0x0'),''),this[_0x3596('0x1')]=this[_0x3596('0x3')](),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x3596('0x2'),'ck-reset',_0x3abc97['to'](_0x3596('0x0'))],'style':{'minHeight':_0x3abc97['to'](_0x3596('0x6'),_0x5b1a4f=>_0x5b1a4f?gt(_0x5b1a4f+0xa):null)}},'children':this[_0x3596('0x1')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x454a=['set:container','container','_destroyEditorAnnotationsIntegration','wideSidebar','getOrderedSelectedAnnotations','from','high','_detachFromContainer','editors','addEventListener','WideSidebar','resize','off','change:container','requires','EditorAnnotations','register','isAttached','_annotations','cancel','widesidebar-attach-already-attached','get','remove','refresh','_activeAnnotation','setActiveAnnotation','_throttledPositioningRefresh','refreshPositioning','attach','activeAnnotation','updateTargetRect','detach','stop','stopListening','_editorAnnotations','focus','blur','context','add','switchTo','_attachToContainer','_integrateWithEditorAnnotations','listenTo','removeEventListener','init','hasDomSelection','widesidebar-detach-not-attached','plugins','uiUpdate','addAnnotation'];(function(_0x24782d,_0x454a09){const _0x2f17df=function(_0x153eb2){while(--_0x153eb2){_0x24782d['push'](_0x24782d['shift']());}};_0x2f17df(++_0x454a09);}(_0x454a,0xfd));const _0x2f17=function(_0x24782d,_0x454a09){_0x24782d=_0x24782d-0x0;let _0x2f17df=_0x454a[_0x24782d];return _0x2f17df;};import{ContextPlugin as _0x53c475}from'ckeditor5/src/core';import _0x48831f from'./annotationsuis';import _0x3525e2 from'./sidebar';import{CKEditorError as _0x23af57,Collection as _0x5ac63f}from'ckeditor5/src/utils';import{throttle as _0x3224b1}from'lodash-es';export default class i extends _0x53c475{static get[_0x2f17('0xb')](){return[_0x3525e2,_0x48831f];}static get['pluginName'](){return _0x2f17('0x7');}constructor(_0x4405d0){super(_0x4405d0),this[_0x2f17('0xe')]=!0x1,this['set'](_0x2f17('0x1a'),null),this['_annotations']=null,this[_0x2f17('0x1f')]=new _0x5ac63f(),this['_throttledPositioningRefresh']=_0x3224b1(()=>{this['_annotations']['refreshPositioning']();},0x190,{'leading':!0x1});}[_0x2f17('0x29')](){const _0x202f50=this[_0x2f17('0x22')][_0x2f17('0x2c')]['get'](_0x48831f),_0x4ef975=this[_0x2f17('0x22')]['plugins']['get'](_0x3525e2);_0x202f50[_0x2f17('0xd')](_0x2f17('0x0'),this),_0x4ef975[_0x2f17('0x30')]&&_0x202f50[_0x2f17('0x24')](_0x2f17('0x0'));}[_0x2f17('0x16')](_0x50fb5a){if(_0x50fb5a===this[_0x2f17('0x1a')])return;const _0x38b9b9=this['context'][_0x2f17('0x2c')]['get'](_0x3525e2);_0x38b9b9[_0x2f17('0x15')]=_0x50fb5a;const _0x34ce30=this[_0x2f17('0x1a')];this['activeAnnotation']=_0x50fb5a,_0x38b9b9['refresh']({'blurredAnnotation':_0x34ce30,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x44f63c){this[_0x2f17('0xf')]=_0x44f63c;const _0x1dfb84=this[_0x2f17('0x22')]['plugins'][_0x2f17('0x12')]('Sidebar');if(_0x1dfb84[_0x2f17('0xf')]=_0x44f63c,this[_0x2f17('0xe')])throw new _0x23af57(_0x2f17('0x11'),this);this['isAttached']=!0x0,this[_0x2f17('0x27')](_0x1dfb84,_0x2f17('0x2f'),()=>{this[_0x2f17('0x1c')](),this['listenTo'](_0x1dfb84,_0x2f17('0xa'),_0x1d9598=>{_0x1d9598[_0x2f17('0x9')](),this[_0x2f17('0x19')](_0x44f63c);});}),_0x1dfb84[_0x2f17('0x25')]({'viewClass':'ck-sidebar--wide'});const _0x3566d4=_0x2057d3=>{_0x2057d3[_0x2f17('0x1b')](),_0x1dfb84[_0x2f17('0x2e')](_0x2057d3);};for(const _0x40d541 of _0x44f63c)_0x3566d4(_0x40d541);this['listenTo'](_0x44f63c,_0x2f17('0x23'),(_0x41adb6,_0x3b01b0)=>{_0x3566d4(_0x3b01b0);}),this['listenTo'](_0x44f63c,_0x2f17('0x13'),(_0x3b9012,_0x200aaf,_0x5647f7)=>{_0x1dfb84['rearrange']({'removedAnnotation':_0x200aaf,'previousAnnotation':_0x44f63c['get'](_0x5647f7-0x1),'nextAnnotation':_0x44f63c['get'](_0x5647f7+0x1)}),_0x200aaf===this[_0x2f17('0x1a')]&&this[_0x2f17('0x16')](null);},{'priority':_0x2f17('0x3')}),this['listenTo'](_0x44f63c,_0x2f17('0x20'),(_0x913ef9,_0x54769d)=>{this[_0x2f17('0x16')](_0x54769d);}),this[_0x2f17('0x27')](_0x44f63c,'blur',()=>{this[_0x2f17('0x16')](null);});const _0x4a398c=this['context']['editors']?this[_0x2f17('0x22')][_0x2f17('0x5')]:new _0x5ac63f([this[_0x2f17('0x22')]]);for(const _0xf37038 of _0x4a398c)this[_0x2f17('0x26')](_0xf37038);this[_0x2f17('0x27')](_0x4a398c,'add',(_0x3d88d6,_0x1f6dc9)=>{this[_0x2f17('0x27')](_0x1f6dc9,'ready',()=>{this[_0x2f17('0x26')](_0x1f6dc9);});}),this[_0x2f17('0x27')](_0x4a398c,_0x2f17('0x13'),(_0x4ac87e,_0x59e665)=>{_0x59e665[_0x2f17('0x2c')]['has'](_0x2f17('0xc'))&&this[_0x2f17('0x31')](_0x59e665[_0x2f17('0x2c')][_0x2f17('0x12')](_0x2f17('0xc')));}),window[_0x2f17('0x6')](_0x2f17('0x8'),this[_0x2f17('0x17')]),this[_0x2f17('0xf')][_0x2f17('0x18')]();}[_0x2f17('0x1c')](){if(!this[_0x2f17('0xe')])throw new _0x23af57(_0x2f17('0x2b'),this);this[_0x2f17('0x16')](null);const _0xc0ad80=this[_0x2f17('0x22')][_0x2f17('0x2c')][_0x2f17('0x12')](_0x3525e2);_0xc0ad80[_0x2f17('0x4')](this[_0x2f17('0xf')]),this['stopListening'](_0xc0ad80),this['stopListening'](this[_0x2f17('0xf')]),this[_0x2f17('0x1e')](this[_0x2f17('0x22')][_0x2f17('0x5')]);for(const _0x2d8b9e of Array[_0x2f17('0x2')](this[_0x2f17('0x1f')]))this[_0x2f17('0x31')](_0x2d8b9e);window[_0x2f17('0x28')](_0x2f17('0x8'),this[_0x2f17('0x17')]),this[_0x2f17('0x17')][_0x2f17('0x10')](),this[_0x2f17('0x1a')]=null,this[_0x2f17('0xe')]=!0x1;}['destroy'](){this[_0x2f17('0xe')]&&this[_0x2f17('0x1c')]();}[_0x2f17('0x26')](_0x4ea3fb){const _0xb64df8=_0x4ea3fb[_0x2f17('0x2c')][_0x2f17('0x12')](_0x2f17('0xc'));if(!_0xb64df8)return;const _0x2a17c0=()=>{const _0x536d23=_0xb64df8[_0x2f17('0x1')]({'annotations':this[_0x2f17('0xf')],'activeAnnotation':this['activeAnnotation']});this[_0x2f17('0x16')](_0x536d23[0x0]||null);};this['listenTo'](_0xb64df8,_0x2f17('0x14'),_0x2a17c0),this['listenTo'](_0xb64df8,_0x2f17('0x21'),(_0x38b035,{isAnnotationTracked:_0xfa4c5e})=>{this[_0x2f17('0x1a')]&&_0xfa4c5e(this['activeAnnotation'])&&this[_0x2f17('0x16')](null);}),this[_0x2f17('0x27')](_0xb64df8,_0x2f17('0x2d'),()=>{this[_0x2f17('0xf')][_0x2f17('0x18')]();}),this[_0x2f17('0x27')](this[_0x2f17('0xf')],'blur',_0x251f2f=>{_0xb64df8[_0x2f17('0x2a')]()&&(_0x2a17c0(),_0x251f2f[_0x2f17('0x1d')]());},{'priority':'high'}),this[_0x2f17('0x1f')][_0x2f17('0x23')](_0xb64df8);}[_0x2f17('0x31')](_0x1663d2){_0x1663d2&&(this[_0x2f17('0x1e')](_0x1663d2),this['_editorAnnotations'][_0x2f17('0x13')](_0x1663d2));}}
23
+ const _0x47c3=['set:container','uiUpdate','isAttached','rearrange','_destroyEditorAnnotationsIntegration','_integrateWithEditorAnnotations','refresh','_annotations','refreshPositioning','focus','high','blur','addAnnotation','EditorAnnotations','off','container','wideSidebar','_editorAnnotations','register','init','stopListening','detach','ck-sidebar--wide','destroy','updateTargetRect','pluginName','has','attach','get','removeEventListener','stop','Sidebar','add','ready','remove','_activeAnnotation','editors','_throttledPositioningRefresh','listenTo','plugins','requires','context','cancel','set','activeAnnotation','change:container','setActiveAnnotation','widesidebar-detach-not-attached','WideSidebar'];(function(_0x51733b,_0x47c3eb){const _0x5f284b=function(_0x4d453b){while(--_0x4d453b){_0x51733b['push'](_0x51733b['shift']());}};_0x5f284b(++_0x47c3eb);}(_0x47c3,0x1ba));const _0x5f28=function(_0x51733b,_0x47c3eb){_0x51733b=_0x51733b-0x0;let _0x5f284b=_0x47c3[_0x51733b];return _0x5f284b;};import{ContextPlugin as _0x25bd1d}from'ckeditor5/src/core';import _0x3aadfa from'./annotationsuis';import _0x4841af from'./sidebar';import{CKEditorError as _0x49d77e,Collection as _0x159986}from'ckeditor5/src/utils';import{throttle as _0x1ccf74}from'lodash-es';export default class i extends _0x25bd1d{static get[_0x5f28('0x27')](){return[_0x4841af,_0x3aadfa];}static get[_0x5f28('0x18')](){return _0x5f28('0x2f');}constructor(_0x2909c5){super(_0x2909c5),this[_0x5f28('0x1')]=!0x1,this[_0x5f28('0x2a')](_0x5f28('0x2b'),null),this[_0x5f28('0x6')]=null,this[_0x5f28('0x10')]=new _0x159986(),this[_0x5f28('0x24')]=_0x1ccf74(()=>{this[_0x5f28('0x6')][_0x5f28('0x7')]();},0x190,{'leading':!0x1});}[_0x5f28('0x12')](){const _0x11433b=this[_0x5f28('0x28')][_0x5f28('0x26')]['get'](_0x3aadfa),_0x27d65d=this['context'][_0x5f28('0x26')]['get'](_0x4841af);_0x11433b[_0x5f28('0x11')](_0x5f28('0xf'),this),_0x27d65d[_0x5f28('0xe')]&&_0x11433b['switchTo']('wideSidebar');}[_0x5f28('0x2d')](_0x480bea){if(_0x480bea===this['activeAnnotation'])return;const _0x345b9e=this[_0x5f28('0x28')][_0x5f28('0x26')]['get'](_0x4841af);_0x345b9e[_0x5f28('0x22')]=_0x480bea;const _0x59eeb8=this[_0x5f28('0x2b')];this[_0x5f28('0x2b')]=_0x480bea,_0x345b9e[_0x5f28('0x5')]({'blurredAnnotation':_0x59eeb8,'activatedAnnotation':this[_0x5f28('0x2b')]});}[_0x5f28('0x1a')](_0x43ae49){this[_0x5f28('0x6')]=_0x43ae49;const _0x2487ce=this[_0x5f28('0x28')][_0x5f28('0x26')][_0x5f28('0x1b')](_0x5f28('0x1e'));if(_0x2487ce['_annotations']=_0x43ae49,this[_0x5f28('0x1')])throw new _0x49d77e('widesidebar-attach-already-attached',this);this[_0x5f28('0x1')]=!0x0,this[_0x5f28('0x25')](_0x2487ce,_0x5f28('0x30'),()=>{this['detach'](),this[_0x5f28('0x25')](_0x2487ce,_0x5f28('0x2c'),_0x3fa018=>{_0x3fa018[_0x5f28('0xd')](),this[_0x5f28('0x1a')](_0x43ae49);});}),_0x2487ce['_attachToContainer']({'viewClass':_0x5f28('0x15')});const _0x3e6340=_0x269e83=>{_0x269e83[_0x5f28('0x17')](),_0x2487ce[_0x5f28('0xb')](_0x269e83);};for(const _0x1f37a0 of _0x43ae49)_0x3e6340(_0x1f37a0);this['listenTo'](_0x43ae49,_0x5f28('0x1f'),(_0x301908,_0x51d7e5)=>{_0x3e6340(_0x51d7e5);}),this['listenTo'](_0x43ae49,_0x5f28('0x21'),(_0x39f117,_0x3bd129,_0x941a55)=>{_0x2487ce[_0x5f28('0x2')]({'removedAnnotation':_0x3bd129,'previousAnnotation':_0x43ae49[_0x5f28('0x1b')](_0x941a55-0x1),'nextAnnotation':_0x43ae49[_0x5f28('0x1b')](_0x941a55+0x1)}),_0x3bd129===this[_0x5f28('0x2b')]&&this['setActiveAnnotation'](null);},{'priority':_0x5f28('0x9')}),this[_0x5f28('0x25')](_0x43ae49,_0x5f28('0x8'),(_0x35c867,_0x907d23)=>{this[_0x5f28('0x2d')](_0x907d23);}),this['listenTo'](_0x43ae49,_0x5f28('0xa'),()=>{this[_0x5f28('0x2d')](null);});const _0x467b6a=this['context'][_0x5f28('0x23')]?this[_0x5f28('0x28')][_0x5f28('0x23')]:new _0x159986([this[_0x5f28('0x28')]]);for(const _0x418a4a of _0x467b6a)this[_0x5f28('0x4')](_0x418a4a);this[_0x5f28('0x25')](_0x467b6a,_0x5f28('0x1f'),(_0x120e12,_0x2e47f2)=>{this[_0x5f28('0x25')](_0x2e47f2,_0x5f28('0x20'),()=>{this[_0x5f28('0x4')](_0x2e47f2);});}),this[_0x5f28('0x25')](_0x467b6a,'remove',(_0x3e451f,_0x109700)=>{_0x109700['plugins'][_0x5f28('0x19')](_0x5f28('0xc'))&&this[_0x5f28('0x3')](_0x109700[_0x5f28('0x26')][_0x5f28('0x1b')](_0x5f28('0xc')));}),window['addEventListener']('resize',this[_0x5f28('0x24')]),this[_0x5f28('0x6')][_0x5f28('0x7')]();}['detach'](){if(!this['isAttached'])throw new _0x49d77e(_0x5f28('0x2e'),this);this[_0x5f28('0x2d')](null);const _0x44be1c=this[_0x5f28('0x28')][_0x5f28('0x26')][_0x5f28('0x1b')](_0x4841af);_0x44be1c['_detachFromContainer'](this['_annotations']),this[_0x5f28('0x13')](_0x44be1c),this[_0x5f28('0x13')](this['_annotations']),this[_0x5f28('0x13')](this['context'][_0x5f28('0x23')]);for(const _0x3ddc19 of Array['from'](this['_editorAnnotations']))this[_0x5f28('0x3')](_0x3ddc19);window[_0x5f28('0x1c')]('resize',this[_0x5f28('0x24')]),this['_throttledPositioningRefresh'][_0x5f28('0x29')](),this['activeAnnotation']=null,this[_0x5f28('0x1')]=!0x1;}[_0x5f28('0x16')](){this[_0x5f28('0x1')]&&this[_0x5f28('0x14')]();}[_0x5f28('0x4')](_0xfd8213){const _0x374069=_0xfd8213[_0x5f28('0x26')]['get'](_0x5f28('0xc'));if(!_0x374069)return;const _0x2ae6eb=()=>{const _0x397a52=_0x374069['getOrderedSelectedAnnotations']({'annotations':this['_annotations'],'activeAnnotation':this[_0x5f28('0x2b')]});this[_0x5f28('0x2d')](_0x397a52[0x0]||null);};this[_0x5f28('0x25')](_0x374069,'refresh',_0x2ae6eb),this[_0x5f28('0x25')](_0x374069,_0x5f28('0xa'),(_0x432fb0,{isAnnotationTracked:_0x5b5236})=>{this[_0x5f28('0x2b')]&&_0x5b5236(this[_0x5f28('0x2b')])&&this[_0x5f28('0x2d')](null);}),this[_0x5f28('0x25')](_0x374069,_0x5f28('0x0'),()=>{this[_0x5f28('0x6')][_0x5f28('0x7')]();}),this[_0x5f28('0x25')](this[_0x5f28('0x6')],_0x5f28('0xa'),_0x5cc232=>{_0x374069['hasDomSelection']()&&(_0x2ae6eb(),_0x5cc232[_0x5f28('0x1d')]());},{'priority':_0x5f28('0x9')}),this[_0x5f28('0x10')][_0x5f28('0x1f')](_0x374069);}['_destroyEditorAnnotationsIntegration'](_0x5e6c43){_0x5e6c43&&(this[_0x5f28('0x13')](_0x5e6c43),this[_0x5f28('0x10')][_0x5f28('0x21')](_0x5e6c43));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5305=['model','getLastMatchingPosition','selection','isObject','createRange','change','editor','end','_trimToContent','execute','getItems','_itemIsContent','element','addMarker','item','_hasContent','getRanges','isEnabled','document','refresh','comment:','tableCell','start'];(function(_0x3426c2,_0x530559){const _0xca821b=function(_0x55c270){while(--_0x55c270){_0x3426c2['push'](_0x3426c2['shift']());}};_0xca821b(++_0x530559);}(_0x5305,0x13f));const _0xca82=function(_0x3426c2,_0x530559){_0x3426c2=_0x3426c2-0x0;let _0xca821b=_0x5305[_0x3426c2];return _0xca821b;};import{Command as _0x3de807}from'ckeditor5/src/core';import{uid as _0x25dde8}from'ckeditor5/src/utils';export default class P extends _0x3de807{[_0xca82('0x16')](){const _0x572366=this[_0xca82('0x9')]['model'][_0xca82('0x15')][_0xca82('0x5')];for(const _0x1bb640 of _0x572366['getRanges']())if(this[_0xca82('0x12')](_0x1bb640))return void(this[_0xca82('0x14')]=!0x0);this[_0xca82('0x14')]=!0x1;}[_0xca82('0xc')]({threadId:_0x4dc4df=_0x25dde8()}={}){const _0x1f4436=this[_0xca82('0x9')][_0xca82('0x3')],_0x4909ff=[];for(const _0x469bd8 of _0x1f4436[_0xca82('0x15')][_0xca82('0x5')][_0xca82('0x13')]())this[_0xca82('0x12')](_0x469bd8)&&_0x4909ff['push'](this[_0xca82('0xb')](_0x469bd8));_0x1f4436[_0xca82('0x8')](_0x573f15=>{for(const _0x5df7c7 of _0x4909ff){const _0xacad0d=_0x25dde8()['substr'](0x1,0x5),_0x1aea4b=_0xca82('0x0')+_0x4dc4df+':'+_0xacad0d;_0x573f15[_0xca82('0x10')](_0x1aea4b,{'range':_0x5df7c7,'usingOperation':!0x1,'affectData':!0x1});}});}['_hasContent'](_0x318b5e){for(const _0x2fb289 of _0x318b5e[_0xca82('0xd')]())if(this[_0xca82('0xe')](_0x2fb289))return!0x0;return!0x1;}[_0xca82('0xe')](_0x299c2f){return _0x299c2f['is']('textProxy')||this[_0xca82('0x9')][_0xca82('0x3')]['schema'][_0xca82('0x6')](_0x299c2f)&&!_0x299c2f['is'](_0xca82('0xf'),_0xca82('0x1'));}['_trimToContent'](_0x3e0dae){const _0x147aa1=_0x3c22b9=>!this['_itemIsContent'](_0x3c22b9[_0xca82('0x11')]),_0x4a08f4=_0x3e0dae[_0xca82('0x2')][_0xca82('0x4')](_0x147aa1),_0x5c6866=_0x3e0dae[_0xca82('0xa')]['getLastMatchingPosition'](_0x147aa1,{'direction':'backward'});return this[_0xca82('0x9')][_0xca82('0x3')][_0xca82('0x7')](_0x4a08f4,_0x5c6866);}}
23
+ const _0x75a4=['textProxy','execute','_trimToContent','model','getLastMatchingPosition','selection','_hasContent','tableCell','start','isObject','_itemIsContent','element','comment:','item','backward','addMarker','createRange','change','editor','isEnabled','getRanges','getItems'];(function(_0x3df52f,_0x75a4f5){const _0x1a0e36=function(_0x34546c){while(--_0x34546c){_0x3df52f['push'](_0x3df52f['shift']());}};_0x1a0e36(++_0x75a4f5);}(_0x75a4,0x168));const _0x1a0e=function(_0x3df52f,_0x75a4f5){_0x3df52f=_0x3df52f-0x0;let _0x1a0e36=_0x75a4[_0x3df52f];return _0x1a0e36;};import{Command as _0x3a0969}from'ckeditor5/src/core';import{uid as _0x37852d}from'ckeditor5/src/utils';export default class P extends _0x3a0969{['refresh'](){const _0x143fab=this[_0x1a0e('0xa')][_0x1a0e('0x11')]['document'][_0x1a0e('0x13')];for(const _0xfb11c0 of _0x143fab[_0x1a0e('0xc')]())if(this[_0x1a0e('0x14')](_0xfb11c0))return void(this[_0x1a0e('0xb')]=!0x0);this['isEnabled']=!0x1;}[_0x1a0e('0xf')]({threadId:_0x3805c5=_0x37852d()}={}){const _0x28b41f=this[_0x1a0e('0xa')]['model'],_0x5e98e7=[];for(const _0x53ef2a of _0x28b41f['document']['selection']['getRanges']())this[_0x1a0e('0x14')](_0x53ef2a)&&_0x5e98e7['push'](this['_trimToContent'](_0x53ef2a));_0x28b41f[_0x1a0e('0x9')](_0x31dbc4=>{for(const _0x109def of _0x5e98e7){const _0x4dab43=_0x37852d()['substr'](0x1,0x5),_0x5737b0=_0x1a0e('0x4')+_0x3805c5+':'+_0x4dab43;_0x31dbc4[_0x1a0e('0x7')](_0x5737b0,{'range':_0x109def,'usingOperation':!0x1,'affectData':!0x1});}});}['_hasContent'](_0x104307){for(const _0x3a4d60 of _0x104307[_0x1a0e('0xd')]())if(this[_0x1a0e('0x2')](_0x3a4d60))return!0x0;return!0x1;}['_itemIsContent'](_0x268d61){return _0x268d61['is'](_0x1a0e('0xe'))||this[_0x1a0e('0xa')][_0x1a0e('0x11')]['schema'][_0x1a0e('0x1')](_0x268d61)&&!_0x268d61['is'](_0x1a0e('0x3'),_0x1a0e('0x15'));}[_0x1a0e('0x10')](_0x55ed59){const _0x453a2e=_0x44ee7c=>!this['_itemIsContent'](_0x44ee7c[_0x1a0e('0x5')]),_0x4aa48b=_0x55ed59[_0x1a0e('0x0')][_0x1a0e('0x12')](_0x453a2e),_0x39268d=_0x55ed59['end'][_0x1a0e('0x12')](_0x453a2e,{'direction':_0x1a0e('0x6')});return this[_0x1a0e('0xa')][_0x1a0e('0x11')][_0x1a0e('0x8')](_0x4aa48b,_0x39268d);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x456e=['rootName','updateMarker','change:isReadOnly','registerPostFixer','upcast','destroyed','high','pluginName','top','getAllMarkersForId','left','_attachThreadToMarker','low','attachTo','createPositionBefore','hasCommentThread','getWalker','length','document','hasContent','switchReadOnly','has','change:isThreadsLoadingPaused','config','hasMarkerForId','destroy','set','markerToData','markerName','text','_handleMarkerAddAndRemove','stop','commands','createRange','from','init','requires','split','_detachCommentThread','$graveyard','isObject','isEqual','for','get','view','editing','createElement','isThreadsLoadingPaused','getAttribute','schema','isCollapsed','dataToMarker','activeMarker','markers','delete','_attachedThreads','plugins','add','push','newRange','_changedMarkers','comment','ck-comment-marker--active','start','_threads','_initializeMarkerConverters','ck-comment-marker','model','end','getCommentThread','editor','change:activeMarker','removeMarker','managedUsingOperations','CommentsRepository','affectsData','collaboration.channelId','ready','openNewCommentThread','once','CommentsEditing','state','fetchCommentThread','conversion','change','update:comment','comment:','listenTo'];(function(_0x39179e,_0x456e00){const _0x1522c9=function(_0xe3462){while(--_0xe3462){_0x39179e['push'](_0x39179e['shift']());}};_0x1522c9(++_0x456e00);}(_0x456e,0x154));const _0x1522=function(_0x39179e,_0x456e00){_0x39179e=_0x39179e-0x0;let _0x1522c9=_0x456e[_0x39179e];return _0x1522c9;};import{Plugin as _0x48d685}from'ckeditor5/src/core';import{Rect as _0x32f9b2}from'ckeditor5/src/utils';import _0x3a9efc from'./commentsrepository';import _0x116c02 from'./addcommentthreadcommand';import _0x227a16 from'../utils/getmarkerdomelement';import _0x194c8a from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x48d685{static get[_0x1522('0x30')](){return[_0x3a9efc,_0x194c8a];}static get[_0x1522('0x13')](){return _0x1522('0x4');}constructor(_0x4db652){super(_0x4db652),this[_0x1522('0x26')](_0x1522('0x3b'),!0x0),_0x4db652['data'][_0x1522('0x3')](_0x1522('0x1'),()=>this[_0x1522('0x3b')]=!0x1),this[_0x1522('0x26')](_0x1522('0x40'),null),this['on'](_0x1522('0x53'),(_0x5557f4,_0x39e521,_0x502f0a,_0x7abbed)=>{_0x4db652[_0x1522('0x4f')][_0x1522('0x8')](_0x4c5a9d=>{if(_0x502f0a){const {id:_0x5f4b2b}=q(_0x502f0a),_0xc394b5=this[_0x1522('0x15')](_0x5f4b2b);for(const _0x252b78 of _0xc394b5)_0x4c5a9d[_0x1522('0xd')](_0x252b78);}if(_0x7abbed){const {id:_0x46a7d5}=q(_0x7abbed),_0x3b4eba=this[_0x1522('0x15')](_0x46a7d5);for(const _0x232cb5 of _0x3b4eba)_0x4c5a9d[_0x1522('0xd')](_0x232cb5);}});}),this[_0x1522('0x43')]=new Set();}[_0x1522('0x2f')](){const _0x538e09=this[_0x1522('0x52')],_0x222d50=_0x538e09[_0x1522('0x44')][_0x1522('0x37')]('CommentsRepository'),_0x18cfdd=_0x538e09['config']['get'](_0x1522('0x0'));_0x538e09[_0x1522('0x2c')]['add']('addCommentThread',new _0x116c02(_0x538e09)),this[_0x1522('0xb')](_0x538e09,_0x1522('0xe'),(_0x20cf86,_0x5c02a9,_0x2d4f31)=>{_0x222d50[_0x1522('0x20')](_0x2d4f31,_0x538e09[_0x1522('0x23')][_0x1522('0x37')]('collaboration.channelId'));}),this['listenTo'](_0x222d50,F('removeCommentThread',_0x18cfdd),(_0x182aa2,{threadId:_0x1d4752})=>{_0x538e09['model']['change'](_0x112a8d=>{for(const _0x20c299 of this[_0x1522('0x15')](_0x1d4752))_0x112a8d[_0x1522('0x54')](_0x20c299);});const _0x4b5f58=_0x222d50[_0x1522('0x51')](_0x1d4752);_0x222d50[_0x1522('0x1b')](_0x1d4752)&&!_0x4b5f58[_0x1522('0x1d')]||_0x182aa2[_0x1522('0x2b')]();},{'priority':_0x1522('0x12')}),this[_0x1522('0xb')](_0x222d50,F('addComment',_0x18cfdd),(_0x1b8428,{threadId:_0x2f908c,isFromAdapter:_0xa9fc61})=>{const _0x3d0b08=this[_0x1522('0x15')](_0x2f908c);if(_0xa9fc61||0x0==_0x3d0b08[_0x1522('0x1d')]||!_0x222d50['hasCommentThread'](_0x2f908c))return;0x1===_0x222d50[_0x1522('0x51')](_0x2f908c)[_0x1522('0x1d')]&&_0x538e09['model']['change'](_0x173749=>{for(const _0x75994a of _0x3d0b08)_0x173749[_0x1522('0xd')](_0x75994a,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x1522('0x18')}),this[_0x1522('0x4d')](),this[_0x1522('0x2a')]();}[_0x1522('0x25')](){const _0x1e137b=this[_0x1522('0x52')][_0x1522('0x44')][_0x1522('0x37')](_0x1522('0x56')),_0x505bca=this[_0x1522('0x52')][_0x1522('0x23')][_0x1522('0x37')](_0x1522('0x0'));for(const _0x4e9b37 of _0x1e137b['getCommentThreads']({'channelId':_0x505bca}))_0x1e137b[_0x1522('0x32')](_0x4e9b37['id']),_0x1e137b[_0x1522('0x4c')][_0x1522('0x42')](_0x4e9b37['id']);super['destroy']();}[_0x1522('0x24')](_0x3f66f6){return this[_0x1522('0x15')](_0x3f66f6)[_0x1522('0x1d')]>0x0;}['getAllMarkersForId'](_0xea59f5){const _0x2b902c=this[_0x1522('0x52')][_0x1522('0x4f')][_0x1522('0x41')][_0x1522('0x37')]('comment:'+_0xea59f5);return _0x2b902c?[_0x2b902c]:Array[_0x1522('0x2e')](this['editor']['model'][_0x1522('0x41')]['getMarkersGroup']('comment:'+_0xea59f5));}[_0x1522('0x4d')](){const _0x28c8d9=this[_0x1522('0x52')];_0x28c8d9[_0x1522('0x7')][_0x1522('0x36')]('editingDowncast')['markerToHighlight']({'model':_0x1522('0x49'),'view':_0x31cd31=>{const {id:_0x48ca1c}=q(_0x31cd31[_0x1522('0x28')]),_0x5ee92d=[_0x1522('0x4e')];return this[_0x1522('0x40')]&&q(this[_0x1522('0x40')])['id']===_0x48ca1c&&_0x5ee92d[_0x1522('0x46')](_0x1522('0x4a')),{'classes':_0x5ee92d,'attributes':{'data-comment':_0x48ca1c}};}}),_0x28c8d9[_0x1522('0x7')][_0x1522('0x36')]('dataDowncast')[_0x1522('0x27')]({'model':_0x1522('0x49'),'view':_0x4c28b0=>{const _0xb9749e=_0x28c8d9['model'][_0x1522('0x41')]['get'](_0x4c28b0),{id:_0x1e8d0d,part:_0x34a835}=q(_0x4c28b0);return _0xb9749e&&!_0xb9749e[_0x1522('0x57')]?null:{'group':_0x1522('0x49'),'name':_0x34a835?_0x1e8d0d+':'+_0x34a835:_0x1e8d0d};}}),_0x28c8d9[_0x1522('0x7')][_0x1522('0x36')](_0x1522('0x10'))['elementToElement']({'view':{'name':'comment','attribute':{'id':/^\w/}},'model':(_0xa820d2,{writer:_0x3baff1})=>_0x3baff1[_0x1522('0x3a')]('$marker',{'data-name':_0x1522('0xa')+_0xa820d2[_0x1522('0x3c')]('id')})}),_0x28c8d9['conversion'][_0x1522('0x36')]('upcast')[_0x1522('0x3f')]({'view':_0x1522('0x49')});}[_0x1522('0x2a')](){const _0x182cf9=this[_0x1522('0x52')],_0x390282=_0x182cf9['plugins'][_0x1522('0x37')](_0x1522('0x56')),_0x1363c0=new Set();_0x182cf9[_0x1522('0x4f')][_0x1522('0x1e')][_0x1522('0xf')](_0x281c64=>{let _0x53c651=!0x1;for(const [_0x3a6c71,_0x38e134]of _0x182cf9[_0x1522('0x4f')][_0x1522('0x1e')]['differ'][_0x1522('0x48')]){const {group:_0x1e7e20,id:_0x7a5c37}=q(_0x3a6c71);let _0x126891=_0x38e134[_0x1522('0x47')];if(_0x1522('0x49')!==_0x1e7e20||!_0x126891)continue;const _0x355595=_0x1522('0x33')===_0x126891['root'][_0x1522('0xc')];_0x355595||(_0x126891=j(_0x126891,_0x182cf9['model']),!_0x126891||_0x126891[_0x1522('0x35')](_0x38e134[_0x1522('0x47')]))?!_0x126891||!_0x182cf9[_0x1522('0x4f')][_0x1522('0x1f')](_0x126891)||this[_0x1522('0x43')]['has'](_0x7a5c37)&&_0x355595?(_0x281c64[_0x1522('0x54')](_0x3a6c71),_0x53c651=!0x0):_0x355595||(this[_0x1522('0x3b')]?_0x1363c0[_0x1522('0x45')](_0x7a5c37):this[_0x1522('0x17')](_0x7a5c37)):(_0x281c64[_0x1522('0xd')](_0x3a6c71,{'range':_0x126891}),_0x53c651=!0x0);}return _0x53c651;}),this['on'](_0x1522('0x22'),(_0x519ef4,_0x219f58,_0x155780)=>{if(!_0x155780&&_0x1363c0['size'])for(const _0x2f7161 of _0x1363c0)this[_0x1522('0x17')](_0x2f7161),_0x1363c0['delete'](_0x2f7161);}),this['listenTo'](_0x182cf9[_0x1522('0x4f')][_0x1522('0x41')],_0x1522('0x9'),(_0x511d87,_0x9e0a74,_0x1cff2d,_0x339886)=>{if(_0x339886)return;const {id:_0x16995d}=q(_0x9e0a74['name']),_0xda56d3=_0x182cf9[_0x1522('0x44')][_0x1522('0x37')](_0x1522('0x56'))[_0x1522('0x51')](_0x16995d);_0x1363c0[_0x1522('0x42')](_0x16995d),_0xda56d3&&!this[_0x1522('0x24')](_0x16995d)&&(this[_0x1522('0x43')]['delete'](_0x16995d),_0x390282[_0x1522('0x32')](_0x16995d));});}['_attachThreadToMarker'](_0xb41928){if(this[_0x1522('0x43')][_0x1522('0x21')](_0xb41928))return;this['_attachedThreads'][_0x1522('0x45')](_0xb41928);const _0x25df53=this[_0x1522('0x52')],_0x45ae31=_0x25df53['plugins'][_0x1522('0x37')](_0x1522('0x56')),_0x189626=_0x25df53[_0x1522('0x23')][_0x1522('0x37')](_0x1522('0x0')),_0x1b7191=()=>{const _0x5d3b29=this[_0x1522('0x15')](_0xb41928);if(0x0==_0x5d3b29[_0x1522('0x1d')])return null;const _0x1e445a=_0x5d3b29['map'](_0x3d4c6d=>_0x227a16(_0x25df53[_0x1522('0x39')],_0x3d4c6d));return _0x1e445a['sort']((_0x4add4c,_0x4d228b)=>{const _0x5e44b3=new _0x32f9b2(_0x4add4c),_0x2d3536=new _0x32f9b2(_0x4d228b),_0x50d7e0=_0x5e44b3['top']-_0x2d3536[_0x1522('0x14')];return 0x0==_0x50d7e0?_0x5e44b3[_0x1522('0x16')]-_0x2d3536[_0x1522('0x16')]:_0x50d7e0;}),_0x1e445a[0x0];};!this[_0x1522('0x15')](_0xb41928)[0x0][_0x1522('0x55')]?_0x25df53[_0x1522('0x39')][_0x1522('0x38')][_0x1522('0x3')]('render',()=>{_0x45ae31[_0x1522('0x2')]({'channelId':_0x189626,'threadId':_0xb41928,'target':_0x1b7191});},{'priority':_0x1522('0x18')}):_0x45ae31[_0x1522('0x6')]({'channelId':_0x189626,'threadId':_0xb41928})['then'](_0x9493d7=>{if(_0x1522('0x11')!==_0x25df53[_0x1522('0x5')]){if(_0x9493d7)_0x9493d7[_0x1522('0x19')](_0x1b7191);else{const _0xff625=this[_0x1522('0x15')](_0xb41928);_0x25df53['model'][_0x1522('0x8')](_0x99039e=>{for(const _0x21aa91 of _0xff625)_0x99039e[_0x1522('0x54')](_0x21aa91);});}}});}}function F(_0x269474,_0x59ff16){return _0x59ff16?_0x269474+':'+_0x59ff16:_0x269474;}function q(_0x148adf){const _0x79d302=_0x148adf[_0x1522('0x31')](':');return{'group':_0x79d302[0x0],'id':_0x79d302[0x1],'part':_0x79d302[0x2]};}function j(_0x3f16a8,_0xa132f0){const _0x10a464=_0xa132f0[_0x1522('0x3d')],_0x4ef4f0=_0xa132f0[_0x1522('0x2d')](_0x3f16a8[_0x1522('0x4b')]);for(const _0x57d7ca of _0x3f16a8[_0x1522('0x1c')]()){const {type:_0x5d8b30,item:_0x53c840,nextPosition:_0x5981a9}=_0x57d7ca;if(_0x1522('0x29')===_0x5d8b30||_0x10a464[_0x1522('0x34')](_0x53c840)){const _0x595fbd=_0xa132f0[_0x1522('0x1a')](_0x53c840);_0x4ef4f0[_0x1522('0x3e')]&&(_0x4ef4f0[_0x1522('0x4b')]=_0x595fbd),_0x4ef4f0[_0x1522('0x50')]=_0x5981a9;}}return _0x4ef4f0['isCollapsed']?null:_0x4ef4f0;}
23
+ const _0x21b9=['openNewCommentThread','_attachedThreads','once','_threads','map','update:comment','isObject','comment','addComment','elementToElement','_initializeMarkerConverters','config','hasCommentThread','removeMarker','collaboration.channelId','change','for','data','pluginName','getCommentThread','_handleMarkerAddAndRemove','hasContent','upcast','ck-comment-marker','comment:','$graveyard','_changedMarkers','ready','get','set','_attachThreadToMarker','then','destroyed','CommentsEditing','from','switchReadOnly','updateMarker','render','getWalker','destroy','top','requires','_detachCommentThread','plugins','getCommentThreads','$marker','split','isCollapsed','conversion','start','registerPostFixer','length','listenTo','schema','delete','init','managedUsingOperations','isEqual','high','newRange','isThreadsLoadingPaused','left','editingDowncast','affectsData','change:activeMarker','addCommentThread','attachTo','markerName','dataToMarker','change:isThreadsLoadingPaused','rootName','model','has','hasMarkerForId','CommentsRepository','low','ck-comment-marker--active','markerToData','change:isReadOnly','document','stop','push','name','removeCommentThread','markers','createRange','editor','editing','getAllMarkersForId','text','add','activeMarker'];(function(_0x56378c,_0x21b9d8){const _0x36df78=function(_0x2ed52c){while(--_0x2ed52c){_0x56378c['push'](_0x56378c['shift']());}};_0x36df78(++_0x21b9d8);}(_0x21b9,0x1ce));const _0x36df=function(_0x56378c,_0x21b9d8){_0x56378c=_0x56378c-0x0;let _0x36df78=_0x21b9[_0x56378c];return _0x36df78;};import{Plugin as _0x81e6f0}from'ckeditor5/src/core';import{Rect as _0x3fb9dc}from'ckeditor5/src/utils';import _0xd04c1e from'./commentsrepository';import _0x13b865 from'./addcommentthreadcommand';import _0x247cfe from'../utils/getmarkerdomelement';import _0x2779d7 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x81e6f0{static get[_0x36df('0x27')](){return[_0xd04c1e,_0x2779d7];}static get[_0x36df('0x10')](){return _0x36df('0x1f');}constructor(_0x314abd){super(_0x314abd),this['set'](_0x36df('0x3a'),!0x0),_0x314abd[_0x36df('0xf')][_0x36df('0x0')](_0x36df('0x19'),()=>this[_0x36df('0x3a')]=!0x1),this[_0x36df('0x1b')](_0x36df('0x59'),null),this['on'](_0x36df('0x3e'),(_0x321941,_0x34bb0b,_0x96284e,_0x3795c1)=>{_0x314abd[_0x36df('0x45')][_0x36df('0xd')](_0x311f08=>{if(_0x96284e){const {id:_0x40aaa8}=N(_0x96284e),_0x41e710=this['getAllMarkersForId'](_0x40aaa8);for(const _0x4459c4 of _0x41e710)_0x311f08[_0x36df('0x22')](_0x4459c4);}if(_0x3795c1){const {id:_0x448be6}=N(_0x3795c1),_0x4087a1=this[_0x36df('0x56')](_0x448be6);for(const _0x49233c of _0x4087a1)_0x311f08[_0x36df('0x22')](_0x49233c);}});}),this[_0x36df('0x5b')]=new Set();}[_0x36df('0x35')](){const _0x109697=this[_0x36df('0x54')],_0x4156c6=_0x109697[_0x36df('0x29')][_0x36df('0x1a')]('CommentsRepository'),_0x58332a=_0x109697['config']['get']('collaboration.channelId');_0x109697['commands'][_0x36df('0x58')](_0x36df('0x3f'),new _0x13b865(_0x109697)),this[_0x36df('0x32')](_0x109697,_0x36df('0x4c'),(_0x5b9b0b,_0x5eb50b,_0x149369)=>{_0x4156c6[_0x36df('0x21')](_0x149369,_0x109697['config'][_0x36df('0x1a')](_0x36df('0xc')));}),this[_0x36df('0x32')](_0x4156c6,q(_0x36df('0x51'),_0x58332a),(_0x1330da,{threadId:_0x57e8fa})=>{_0x109697[_0x36df('0x45')]['change'](_0x44ebdd=>{for(const _0x90542e of this['getAllMarkersForId'](_0x57e8fa))_0x44ebdd[_0x36df('0xb')](_0x90542e);});const _0x2f2969=_0x4156c6[_0x36df('0x11')](_0x57e8fa);_0x4156c6[_0x36df('0xa')](_0x57e8fa)&&!_0x2f2969['length']||_0x1330da[_0x36df('0x4e')]();},{'priority':_0x36df('0x38')}),this[_0x36df('0x32')](_0x4156c6,q(_0x36df('0x6'),_0x58332a),(_0x2a1c4e,{threadId:_0x49745b,isFromAdapter:_0x110606})=>{const _0x29e749=this['getAllMarkersForId'](_0x49745b);if(_0x110606||0x0==_0x29e749[_0x36df('0x31')]||!_0x4156c6[_0x36df('0xa')](_0x49745b))return;0x1===_0x4156c6[_0x36df('0x11')](_0x49745b)['length']&&_0x109697[_0x36df('0x45')][_0x36df('0xd')](_0xf8b316=>{for(const _0x3ae783 of _0x29e749)_0xf8b316[_0x36df('0x22')](_0x3ae783,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x36df('0x49')}),this[_0x36df('0x8')](),this[_0x36df('0x12')]();}['destroy'](){const _0x1aed60=this[_0x36df('0x54')][_0x36df('0x29')]['get'](_0x36df('0x48')),_0xc87a2a=this['editor'][_0x36df('0x9')][_0x36df('0x1a')]('collaboration.channelId');for(const _0x365ec0 of _0x1aed60[_0x36df('0x2a')]({'channelId':_0xc87a2a}))_0x1aed60[_0x36df('0x28')](_0x365ec0['id']),_0x1aed60[_0x36df('0x1')][_0x36df('0x34')](_0x365ec0['id']);super[_0x36df('0x25')]();}['hasMarkerForId'](_0x3487fb){return this[_0x36df('0x56')](_0x3487fb)[_0x36df('0x31')]>0x0;}[_0x36df('0x56')](_0x2877a0){const _0x51ecbc=this[_0x36df('0x54')]['model'][_0x36df('0x52')][_0x36df('0x1a')]('comment:'+_0x2877a0);return _0x51ecbc?[_0x51ecbc]:Array[_0x36df('0x20')](this[_0x36df('0x54')]['model']['markers']['getMarkersGroup']('comment:'+_0x2877a0));}[_0x36df('0x8')](){const _0x4ac562=this['editor'];_0x4ac562['conversion'][_0x36df('0xe')](_0x36df('0x3c'))['markerToHighlight']({'model':_0x36df('0x5'),'view':_0x381f3a=>{const {id:_0x3862d9}=N(_0x381f3a[_0x36df('0x41')]),_0x33c4b8=[_0x36df('0x15')];return this[_0x36df('0x59')]&&N(this['activeMarker'])['id']===_0x3862d9&&_0x33c4b8[_0x36df('0x4f')](_0x36df('0x4a')),{'classes':_0x33c4b8,'attributes':{'data-comment':_0x3862d9}};}}),_0x4ac562[_0x36df('0x2e')][_0x36df('0xe')]('dataDowncast')[_0x36df('0x4b')]({'model':_0x36df('0x5'),'view':_0x2bde06=>{const _0x195dc5=_0x4ac562[_0x36df('0x45')]['markers'][_0x36df('0x1a')](_0x2bde06),{id:_0x68e716,part:_0x102285}=N(_0x2bde06);return _0x195dc5&&!_0x195dc5[_0x36df('0x3d')]?null:{'group':_0x36df('0x5'),'name':_0x102285?_0x68e716+':'+_0x102285:_0x68e716};}}),_0x4ac562[_0x36df('0x2e')]['for'](_0x36df('0x14'))[_0x36df('0x7')]({'view':{'name':'comment','attribute':{'id':/^\w/}},'model':(_0x319baf,{writer:_0x524bc9})=>_0x524bc9['createElement'](_0x36df('0x2b'),{'data-name':_0x36df('0x16')+_0x319baf['getAttribute']('id')})}),_0x4ac562['conversion'][_0x36df('0xe')]('upcast')[_0x36df('0x42')]({'view':_0x36df('0x5')});}[_0x36df('0x12')](){const _0x160fd3=this['editor'],_0x1d212e=_0x160fd3['plugins']['get'](_0x36df('0x48')),_0x3e3a73=new Set();_0x160fd3[_0x36df('0x45')][_0x36df('0x4d')][_0x36df('0x30')](_0x282901=>{let _0x2b0709=!0x1;for(const [_0x43cd98,_0x193edb]of _0x160fd3['model'][_0x36df('0x4d')]['differ'][_0x36df('0x18')]){const {group:_0x3c73c2,id:_0x12f95b}=N(_0x43cd98);let _0x53012c=_0x193edb[_0x36df('0x39')];if('comment'!==_0x3c73c2||!_0x53012c)continue;const _0x14c24f=_0x36df('0x17')===_0x53012c['root'][_0x36df('0x44')];_0x14c24f||(_0x53012c=j(_0x53012c,_0x160fd3['model']),!_0x53012c||_0x53012c[_0x36df('0x37')](_0x193edb['newRange']))?!_0x53012c||!_0x160fd3['model'][_0x36df('0x13')](_0x53012c)||this[_0x36df('0x5b')]['has'](_0x12f95b)&&_0x14c24f?(_0x282901[_0x36df('0xb')](_0x43cd98),_0x2b0709=!0x0):_0x14c24f||(this[_0x36df('0x3a')]?_0x3e3a73[_0x36df('0x58')](_0x12f95b):this[_0x36df('0x1c')](_0x12f95b)):(_0x282901[_0x36df('0x22')](_0x43cd98,{'range':_0x53012c}),_0x2b0709=!0x0);}return _0x2b0709;}),this['on'](_0x36df('0x43'),(_0x4ce252,_0x4a93af,_0x176c09)=>{if(!_0x176c09&&_0x3e3a73['size'])for(const _0x33b8de of _0x3e3a73)this[_0x36df('0x1c')](_0x33b8de),_0x3e3a73[_0x36df('0x34')](_0x33b8de);}),this[_0x36df('0x32')](_0x160fd3[_0x36df('0x45')][_0x36df('0x52')],_0x36df('0x3'),(_0x1ffd17,_0x1b604c,_0x333877,_0x3cd037)=>{if(_0x3cd037)return;const {id:_0x2d040f}=N(_0x1b604c[_0x36df('0x50')]),_0x4f16b5=_0x160fd3[_0x36df('0x29')][_0x36df('0x1a')](_0x36df('0x48'))[_0x36df('0x11')](_0x2d040f);_0x3e3a73[_0x36df('0x34')](_0x2d040f),_0x4f16b5&&!this[_0x36df('0x47')](_0x2d040f)&&(this[_0x36df('0x5b')]['delete'](_0x2d040f),_0x1d212e[_0x36df('0x28')](_0x2d040f));});}[_0x36df('0x1c')](_0x4ef7a5){if(this[_0x36df('0x5b')][_0x36df('0x46')](_0x4ef7a5))return;this[_0x36df('0x5b')]['add'](_0x4ef7a5);const _0x3a3c5b=this[_0x36df('0x54')],_0x37d52c=_0x3a3c5b[_0x36df('0x29')][_0x36df('0x1a')](_0x36df('0x48')),_0x2a4428=_0x3a3c5b[_0x36df('0x9')][_0x36df('0x1a')](_0x36df('0xc')),_0x425718=()=>{const _0x568fd2=this[_0x36df('0x56')](_0x4ef7a5);if(0x0==_0x568fd2['length'])return null;const _0x545d4d=_0x568fd2[_0x36df('0x2')](_0x213cb3=>_0x247cfe(_0x3a3c5b['editing'],_0x213cb3));return _0x545d4d['sort']((_0x5baa45,_0x2f76db)=>{const _0x4e8de2=new _0x3fb9dc(_0x5baa45),_0x28e8c5=new _0x3fb9dc(_0x2f76db),_0x3cfbe4=_0x4e8de2[_0x36df('0x26')]-_0x28e8c5[_0x36df('0x26')];return 0x0==_0x3cfbe4?_0x4e8de2[_0x36df('0x3b')]-_0x28e8c5['left']:_0x3cfbe4;}),_0x545d4d[0x0];};!this[_0x36df('0x56')](_0x4ef7a5)[0x0][_0x36df('0x36')]?_0x3a3c5b[_0x36df('0x55')]['view'][_0x36df('0x0')](_0x36df('0x23'),()=>{_0x37d52c[_0x36df('0x5a')]({'channelId':_0x2a4428,'threadId':_0x4ef7a5,'target':_0x425718});},{'priority':_0x36df('0x49')}):_0x37d52c['fetchCommentThread']({'channelId':_0x2a4428,'threadId':_0x4ef7a5})[_0x36df('0x1d')](_0x450234=>{if(_0x36df('0x1e')!==_0x3a3c5b['state']){if(_0x450234)_0x450234[_0x36df('0x40')](_0x425718);else{const _0x22a696=this[_0x36df('0x56')](_0x4ef7a5);_0x3a3c5b[_0x36df('0x45')]['change'](_0x10afc2=>{for(const _0x1bade6 of _0x22a696)_0x10afc2[_0x36df('0xb')](_0x1bade6);});}}});}}function q(_0x107b50,_0x3fec3c){return _0x3fec3c?_0x107b50+':'+_0x3fec3c:_0x107b50;}function N(_0x2e8ccf){const _0x4bc95e=_0x2e8ccf[_0x36df('0x2c')](':');return{'group':_0x4bc95e[0x0],'id':_0x4bc95e[0x1],'part':_0x4bc95e[0x2]};}function j(_0x5be085,_0x65c397){const _0x20a38a=_0x65c397[_0x36df('0x33')],_0x54f347=_0x65c397[_0x36df('0x53')](_0x5be085[_0x36df('0x2f')]);for(const _0x21f4bf of _0x5be085[_0x36df('0x24')]()){const {type:_0xe009b9,item:_0x339ea8,nextPosition:_0x5d4e78}=_0x21f4bf;if(_0x36df('0x57')===_0xe009b9||_0x20a38a[_0x36df('0x4')](_0x339ea8)){const _0x6930b2=_0x65c397['createPositionBefore'](_0x339ea8);_0x54f347[_0x36df('0x2d')]&&(_0x54f347[_0x36df('0x2f')]=_0x6930b2),_0x54f347['end']=_0x5d4e78;}}return _0x54f347[_0x36df('0x2d')]?null:_0x54f347;}