@ckeditor/ckeditor5-comments 39.0.0 → 39.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE.md +5 -5
  3. package/README.md +13 -13
  4. package/build/comments.js +1 -1
  5. package/build/translations/fa.js +1 -1
  6. package/lang/translations/af.po +1 -0
  7. package/lang/translations/ar.po +1 -0
  8. package/lang/translations/bg.po +1 -0
  9. package/lang/translations/bn.po +1 -0
  10. package/lang/translations/bs.po +1 -0
  11. package/lang/translations/ca.po +1 -0
  12. package/lang/translations/cs.po +1 -0
  13. package/lang/translations/da.po +1 -0
  14. package/lang/translations/de-ch.po +1 -0
  15. package/lang/translations/de.po +1 -0
  16. package/lang/translations/el.po +1 -0
  17. package/lang/translations/en-au.po +1 -0
  18. package/lang/translations/en.po +1 -0
  19. package/lang/translations/es-co.po +1 -0
  20. package/lang/translations/es.po +1 -0
  21. package/lang/translations/et.po +1 -0
  22. package/lang/translations/fa.po +10 -9
  23. package/lang/translations/fi.po +1 -0
  24. package/lang/translations/fr.po +1 -0
  25. package/lang/translations/gl.po +1 -0
  26. package/lang/translations/he.po +1 -0
  27. package/lang/translations/hi.po +1 -0
  28. package/lang/translations/hr.po +1 -0
  29. package/lang/translations/hu.po +1 -0
  30. package/lang/translations/id.po +1 -0
  31. package/lang/translations/it.po +1 -0
  32. package/lang/translations/ja.po +1 -0
  33. package/lang/translations/jv.po +1 -0
  34. package/lang/translations/ko.po +1 -0
  35. package/lang/translations/lt.po +1 -0
  36. package/lang/translations/lv.po +1 -0
  37. package/lang/translations/ms.po +1 -0
  38. package/lang/translations/nl.po +1 -0
  39. package/lang/translations/no.po +1 -0
  40. package/lang/translations/pl.po +1 -0
  41. package/lang/translations/pt-br.po +1 -0
  42. package/lang/translations/pt.po +1 -0
  43. package/lang/translations/ro.po +1 -0
  44. package/lang/translations/ru.po +1 -0
  45. package/lang/translations/sk.po +1 -0
  46. package/lang/translations/sq.po +1 -0
  47. package/lang/translations/sr-latn.po +1 -0
  48. package/lang/translations/sr.po +1 -0
  49. package/lang/translations/sv.po +1 -0
  50. package/lang/translations/th.po +1 -0
  51. package/lang/translations/tk.po +1 -0
  52. package/lang/translations/tr.po +1 -0
  53. package/lang/translations/tt.po +1 -0
  54. package/lang/translations/ug.po +1 -0
  55. package/lang/translations/uk.po +1 -0
  56. package/lang/translations/ur.po +1 -0
  57. package/lang/translations/vi.po +1 -0
  58. package/lang/translations/zh-cn.po +1 -0
  59. package/lang/translations/zh.po +1 -0
  60. package/package.json +3 -7
  61. package/src/annotations/annotation.js +1 -1
  62. package/src/annotations/annotationcollection.js +1 -1
  63. package/src/annotations/annotations.js +1 -1
  64. package/src/annotations/annotationsuis.js +1 -1
  65. package/src/annotations/editorannotations.js +1 -1
  66. package/src/annotations/inlineannotations.js +1 -1
  67. package/src/annotations/narrowsidebar.js +1 -1
  68. package/src/annotations/sidebar.js +1 -1
  69. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  70. package/src/annotations/view/annotationview.js +1 -1
  71. package/src/annotations/view/sidebaritemview.js +1 -1
  72. package/src/annotations/view/sidebarview.js +1 -1
  73. package/src/annotations/widesidebar.js +1 -1
  74. package/src/comments/addcommentthreadcommand.js +1 -1
  75. package/src/comments/commentsarchive.js +1 -1
  76. package/src/comments/commentsarchiveui.js +1 -1
  77. package/src/comments/commentsediting.js +1 -1
  78. package/src/comments/commentsrepository.js +1 -1
  79. package/src/comments/commentsui.js +1 -1
  80. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  81. package/src/comments/integrations/importword.js +1 -1
  82. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  83. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  84. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  85. package/src/comments/ui/commentthreadcontroller.js +1 -1
  86. package/src/comments/ui/view/basecommentthreadview.d.ts +1 -1
  87. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  88. package/src/comments/ui/view/basecommentview.js +1 -1
  89. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  90. package/src/comments/ui/view/commentcontentview.js +1 -1
  91. package/src/comments/ui/view/commentinputview.js +1 -1
  92. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  93. package/src/comments/ui/view/commentslistview.js +1 -1
  94. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  95. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  96. package/src/comments/ui/view/commentthreadview.js +1 -1
  97. package/src/comments/ui/view/commentview.js +1 -1
  98. package/src/comments.js +1 -1
  99. package/src/commentsonly.js +1 -1
  100. package/src/utils/common-translations.js +1 -1
  101. package/src/utils/createmutationobserver.js +1 -1
  102. package/theme/annotation.css +0 -2
  103. package/theme/comment.css +37 -37
  104. package/theme/commentmarker.css +5 -5
  105. package/theme/commentthread.css +56 -56
  106. package/theme/sidebar-narrow.css +2 -2
  107. package/theme/sidebar.css +11 -11
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x317b=['isVisible','every','mainView','element','_assertCorrectTarget','focusTracker','offsetParent','getClientRects','targetRect','focusableElements','view','remove','item','isArray','_type','length','render','innerView','_getNormalizedTarget','type','isActive','stopListening','_id','destroy','_target','annotation-invalid-target','clear','function','updateTargetRect','filter','refreshVisibility','target'];(function(_0x54fee5,_0x317bd7){const _0x518130=function(_0x51639c){while(--_0x51639c){_0x54fee5['push'](_0x54fee5['shift']());}};_0x518130(++_0x317bd7);}(_0x317b,0x1c9));const _0x5181=function(_0x54fee5,_0x317bd7){_0x54fee5=_0x54fee5-0x0;let _0x518130=_0x317b[_0x54fee5];return _0x518130;};import{CKEditorError as _0x5e5a3c,Rect as _0x3f9836,Collection as _0x41dd5c,ObservableMixin as _0x5958a7}from'ckeditor5/src/utils';export default class d extends _0x5958a7(){constructor({view:_0x3170ec,target:_0x119036,type:_0x34812b,isVisible:_0x2356ba=!0x0}){super(),this['view']=_0x3170ec,this[_0x5181('0x1')][_0x5181('0x1a')]||this[_0x5181('0x1')][_0x5181('0x7')](),this['_type']=_0x34812b,this[_0x5181('0xf')]=_0x119036,d[_0x5181('0x1b')](this[_0x5181('0x9')]()),this[_0x5181('0x0')]=new _0x41dd5c([this['view'][_0x5181('0x1a')]],{'idProperty':_0x5181('0xd')}),this[_0x5181('0x0')]['on']('add',(_0xf4383b,_0x329c2f)=>{this[_0x5181('0x1')][_0x5181('0x1c')]['add'](_0x329c2f);}),this[_0x5181('0x0')]['on'](_0x5181('0x2'),(_0x5a1799,_0x4539fc)=>{this['view'][_0x5181('0x1c')]['remove'](_0x4539fc);}),this['set']('isVisible',_0x2356ba);}get[_0x5181('0xa')](){return _0x5181('0x12')==typeof this[_0x5181('0x5')]?this[_0x5181('0x5')]():this[_0x5181('0x5')];}get[_0x5181('0x8')](){return this[_0x5181('0x1')][_0x5181('0x19')];}get[_0x5181('0x16')](){const _0x1b3a21=this[_0x5181('0x9')]();return d['_assertCorrectTarget'](_0x1b3a21),_0x1b3a21;}get[_0x5181('0x1f')](){const _0x59e800=this[_0x5181('0x16')];if(null===_0x59e800)return null;if(_0x59e800 instanceof _0x3f9836)return _0x59e800;const _0x27215a=_0x59e800[_0x5181('0x14')](_0x477085=>function(_0x1dbbbb){const _0x5997c1=_0x1dbbbb[_0x5181('0x1d')];if(_0x5997c1)return!0x0;const _0x1a7322=_0x1dbbbb[_0x5181('0x1e')]()[_0x5181('0x3')](0x0);return!!_0x1a7322;}(_0x477085));return 0x0===_0x27215a[_0x5181('0x6')]?null:new _0x3f9836(_0x27215a[0x0]['getClientRects']()[_0x5181('0x3')](0x0));}get[_0x5181('0xb')](){return this[_0x5181('0x1')]['isActive'];}set['isActive'](_0x5c07eb){this[_0x5181('0x1')]['isActive']=_0x5c07eb,this[_0x5181('0x1')][_0x5181('0x19')]['isActive']=_0x5c07eb;}[_0x5181('0x13')](){this[_0x5181('0x1')][_0x5181('0x1f')]=this[_0x5181('0x1f')];}[_0x5181('0xe')](){this[_0x5181('0x0')][_0x5181('0xc')](),this['focusableElements'][_0x5181('0x11')](),this[_0x5181('0xc')]();}[_0x5181('0x15')](){this[_0x5181('0x17')]=!!this[_0x5181('0x1f')];}static[_0x5181('0x1b')](_0x22d073){if(!(null===_0x22d073||_0x22d073 instanceof _0x3f9836||Array[_0x5181('0x4')](_0x22d073)&&_0x22d073[_0x5181('0x18')](_0xe413c4=>y(_0xe413c4))))throw new _0x5e5a3c(_0x5181('0x10'),null,{'target':_0x22d073});}['_getNormalizedTarget'](){const _0x1c5120=_0x5181('0x12')==typeof this[_0x5181('0xf')]?this[_0x5181('0xf')]():this[_0x5181('0xf')];return y(_0x1c5120)?[_0x1c5120]:_0x1c5120;}}function y(_0x322a87){return null!==_0x322a87&&'object'==typeof _0x322a87&&'nodeType'in _0x322a87&&0x1===_0x322a87['nodeType'];}
23
+ const _0x1dbc=['add','nodeType','isActive','_id','isArray','focusableElements','item','_assertCorrectTarget','innerView','remove','view','getClientRects','updateTargetRect','function','destroy','isVisible','focusTracker','_getNormalizedTarget','set','targetRect','stopListening','_type','annotation-invalid-target','filter','mainView','element','clear','_target'];(function(_0x3c0d50,_0x1dbcc6){const _0x4725d3=function(_0x11b84b){while(--_0x11b84b){_0x3c0d50['push'](_0x3c0d50['shift']());}};_0x4725d3(++_0x1dbcc6);}(_0x1dbc,0x160));const _0x4725=function(_0x3c0d50,_0x1dbcc6){_0x3c0d50=_0x3c0d50-0x0;let _0x4725d3=_0x1dbc[_0x3c0d50];return _0x4725d3;};import{CKEditorError as _0x1db29c,Rect as _0xcb6314,Collection as _0x4e6fc0,ObservableMixin as _0x52a241}from'ckeditor5/src/utils';export default class d extends _0x52a241(){constructor({view:_0x46791d,target:_0x7e4034,type:_0x164624,isVisible:_0x5e41ba=!0x0}){super(),this['view']=_0x46791d,this['view'][_0x4725('0x9')]||this[_0x4725('0x16')]['render'](),this[_0x4725('0x5')]=_0x164624,this[_0x4725('0xb')]=_0x7e4034,d[_0x4725('0x13')](this[_0x4725('0x1')]()),this[_0x4725('0x11')]=new _0x4e6fc0([this[_0x4725('0x16')]['element']],{'idProperty':_0x4725('0xf')}),this[_0x4725('0x11')]['on'](_0x4725('0xc'),(_0x3d9ef7,_0x146bbb)=>{this[_0x4725('0x16')][_0x4725('0x0')][_0x4725('0xc')](_0x146bbb);}),this[_0x4725('0x11')]['on'](_0x4725('0x15'),(_0x2e1e74,_0x5db11c)=>{this['view'][_0x4725('0x0')][_0x4725('0x15')](_0x5db11c);}),this[_0x4725('0x2')](_0x4725('0x1b'),_0x5e41ba);}get['type'](){return'function'==typeof this['_type']?this[_0x4725('0x5')]():this[_0x4725('0x5')];}get[_0x4725('0x14')](){return this[_0x4725('0x16')]['mainView'];}get['target'](){const _0x4b3a11=this[_0x4725('0x1')]();return d[_0x4725('0x13')](_0x4b3a11),_0x4b3a11;}get['targetRect'](){const _0x944a2c=this['target'];if(null===_0x944a2c)return null;if(_0x944a2c instanceof _0xcb6314)return _0x944a2c;const _0x17ffbc=_0x944a2c[_0x4725('0x7')](_0x40ecc1=>function(_0x110d6a){const _0x9f8b08=_0x110d6a['offsetParent'];if(_0x9f8b08)return!0x0;const _0x342091=_0x110d6a[_0x4725('0x17')]()[_0x4725('0x12')](0x0);return!!_0x342091;}(_0x40ecc1));return 0x0===_0x17ffbc['length']?null:new _0xcb6314(_0x17ffbc[0x0][_0x4725('0x17')]()[_0x4725('0x12')](0x0));}get[_0x4725('0xe')](){return this[_0x4725('0x16')][_0x4725('0xe')];}set['isActive'](_0x886171){this['view']['isActive']=_0x886171,this[_0x4725('0x16')][_0x4725('0x8')]['isActive']=_0x886171;}[_0x4725('0x18')](){this['view'][_0x4725('0x3')]=this[_0x4725('0x3')];}[_0x4725('0x1a')](){this[_0x4725('0x11')][_0x4725('0x4')](),this[_0x4725('0x11')][_0x4725('0xa')](),this['stopListening']();}['refreshVisibility'](){this[_0x4725('0x1b')]=!!this[_0x4725('0x3')];}static[_0x4725('0x13')](_0x31a8b0){if(!(null===_0x31a8b0||_0x31a8b0 instanceof _0xcb6314||Array[_0x4725('0x10')](_0x31a8b0)&&_0x31a8b0['every'](_0x450d34=>y(_0x450d34))))throw new _0x1db29c(_0x4725('0x6'),null,{'target':_0x31a8b0});}[_0x4725('0x1')](){const _0x561415=_0x4725('0x19')==typeof this[_0x4725('0xb')]?this[_0x4725('0xb')]():this[_0x4725('0xb')];return y(_0x561415)?[_0x561415]:_0x561415;}}function y(_0x2bbfe9){return null!==_0x2bbfe9&&'object'==typeof _0x2bbfe9&&_0x4725('0xd')in _0x2bbfe9&&0x1===_0x2bbfe9[_0x4725('0xd')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b23=['set','remove','getByView','annotationcollection-duplicated-item','stopListening','from','view','fire','targetRect','focus','blur','_sort','_viewToAnnotation','updateTargetRect','_innerViewToAnnotation','add','get','isFocused','innerView','getByInnerView','focusTracker','destroy','left','sort','listenTo','focusableElements','refreshPositioning','change:isFocused','_focusTracker','clear','annotationcollection-not-existing-item','length','delete','has','top','_getOrderInContent'];(function(_0x3642a9,_0x5b23f){const _0x58a8c7=function(_0x43496e){while(--_0x43496e){_0x3642a9['push'](_0x3642a9['shift']());}};_0x58a8c7(++_0x5b23f);}(_0x5b23,0x148));const _0x58a8=function(_0x3642a9,_0x5b23f){_0x3642a9=_0x3642a9-0x0;let _0x58a8c7=_0x5b23[_0x3642a9];return _0x58a8c7;};import{CKEditorError as _0x10c59a,Collection as _0x46c175,FocusTracker as _0xbe9477}from'ckeditor5/src/utils';export default class x extends _0x46c175{constructor(_0x488207=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this[_0x58a8('0x18')]=new _0xbe9477(),this[_0x58a8('0x18')]['on']('change:isFocused',(_0x419948,_0x3e6836,_0xfdf3d0)=>{_0xfdf3d0||this[_0x58a8('0x3')](_0x58a8('0x6'));});for(const _0x110af2 of _0x488207)this[_0x58a8('0xb')](_0x110af2);}get['isFocused'](){return this[_0x58a8('0x18')][_0x58a8('0xd')];}['add'](_0x5e5f79){if(this[_0x58a8('0x1d')](_0x5e5f79))throw new _0x10c59a(_0x58a8('0x23'),null);this['_innerViewToAnnotation']['set'](_0x5e5f79[_0x58a8('0xe')],_0x5e5f79),this[_0x58a8('0x8')][_0x58a8('0x20')](_0x5e5f79[_0x58a8('0x2')],_0x5e5f79);for(const _0x2c4bae of _0x5e5f79['focusableElements'])this['_focusTracker'][_0x58a8('0xb')](_0x2c4bae);this[_0x58a8('0x14')](_0x5e5f79[_0x58a8('0x15')],_0x58a8('0xb'),(_0x578a43,_0x3e9d9d)=>{this[_0x58a8('0x18')][_0x58a8('0xb')](_0x3e9d9d);}),this[_0x58a8('0x14')](_0x5e5f79[_0x58a8('0x15')],_0x58a8('0x21'),(_0x5ea45e,_0x380f08)=>{this['_focusTracker'][_0x58a8('0x21')](_0x380f08);}),this[_0x58a8('0x14')](_0x5e5f79[_0x58a8('0x2')][_0x58a8('0x10')],_0x58a8('0x17'),(_0x2f0851,_0x4f6c24,_0x51fee5)=>{_0x51fee5&&this['fire'](_0x58a8('0x5'),_0x5e5f79);}),_0x5e5f79['updateTargetRect']();const _0xe1477a=this['_getOrderInContent'](_0x5e5f79[_0x58a8('0x2')][_0x58a8('0x4')]);return super['add'](_0x5e5f79,_0xe1477a);}['remove'](_0x18a4d6){if(!this['has'](_0x18a4d6))throw new _0x10c59a(_0x58a8('0x1a'),null);this[_0x58a8('0x0')](_0x18a4d6['view'][_0x58a8('0x10')]),this['stopListening'](_0x18a4d6[_0x58a8('0x15')]);for(const _0x15445b of _0x18a4d6[_0x58a8('0x15')])this['_focusTracker'][_0x58a8('0x21')](_0x15445b);return this['_viewToAnnotation'][_0x58a8('0x1c')](_0x18a4d6[_0x58a8('0x2')]),this[_0x58a8('0xa')][_0x58a8('0x1c')](_0x18a4d6[_0x58a8('0xe')]),super[_0x58a8('0x21')](_0x18a4d6);}[_0x58a8('0xf')](_0x1ca694){return this[_0x58a8('0xa')][_0x58a8('0xc')](_0x1ca694);}[_0x58a8('0x22')](_0x338039){return this[_0x58a8('0x8')]['get'](_0x338039);}[_0x58a8('0x11')](){super[_0x58a8('0x19')](),this[_0x58a8('0x0')](),this['_innerViewToAnnotation'][_0x58a8('0x19')](),this[_0x58a8('0x8')][_0x58a8('0x19')](),this['_focusTracker'][_0x58a8('0x11')]();}[_0x58a8('0x16')](){for(const _0x51151b of this)_0x51151b[_0x58a8('0x9')]();this[_0x58a8('0x7')]();}[_0x58a8('0x7')](){const _0x3e9438=Array[_0x58a8('0x1')](this)[_0x58a8('0x13')]((_0x30e1cd,_0x19b6b7)=>v(_0x30e1cd[_0x58a8('0x2')][_0x58a8('0x4')],_0x19b6b7['view']['targetRect']));for(let _0x5a8e8a=_0x3e9438[_0x58a8('0x1b')]-0x1;_0x5a8e8a>0x0;_0x5a8e8a--){const _0x551d69=_0x3e9438[_0x5a8e8a];_0x5a8e8a!==this['getIndex'](_0x551d69)&&(this['remove'](_0x551d69),this[_0x58a8('0xb')](_0x551d69));}}[_0x58a8('0x1f')](_0x5d8d5e){let _0x2e3b32=0x0;if(!_0x5d8d5e)return this['length'];for(const _0x38b9f2 of this){const _0x371e2f=_0x38b9f2['view'][_0x58a8('0x4')];if(_0x371e2f){if(v(_0x5d8d5e,_0x371e2f)<0x0)return _0x2e3b32;_0x2e3b32++;}}return _0x2e3b32;}}export function bindAnnotationCollections({source:_0x2643f1,target:_0x5964db,filter:_0x4c3091}){for(const _0x4314ca of _0x2643f1)_0x4c3091(_0x4314ca)&&_0x5964db[_0x58a8('0xb')](_0x4314ca);_0x5964db['listenTo'](_0x2643f1,_0x58a8('0xb'),(_0x110954,_0x2793ab)=>{_0x4c3091(_0x2793ab)&&_0x5964db[_0x58a8('0xb')](_0x2793ab);}),_0x5964db['listenTo'](_0x2643f1,_0x58a8('0x21'),(_0x358075,_0x44e3ce)=>{_0x5964db[_0x58a8('0x1d')](_0x44e3ce)&&_0x5964db['remove'](_0x44e3ce);});}function v(_0x5b10b8,_0x453262){if(null===_0x5b10b8&&null===_0x453262)return 0x0;if(null===_0x5b10b8)return-0x1;if(null===_0x453262)return 0x1;const _0xb22f82=_0x5b10b8['top']-_0x453262[_0x58a8('0x1e')];return 0x0==_0xb22f82?_0x5b10b8[_0x58a8('0x12')]-_0x453262[_0x58a8('0x12')]:_0xb22f82;}
23
+ const _0x3b25=['stopListening','top','getIndex','change:isFocused','blur','updateTargetRect','refreshPositioning','_focusTracker','targetRect','innerView','annotationcollection-duplicated-item','length','getByView','add','_getOrderInContent','clear','view','has','remove','left','_sort','set','get','focusableElements','focusTracker','destroy','from','isFocused','annotationcollection-not-existing-item','_viewToAnnotation','getByInnerView','listenTo','_innerViewToAnnotation','delete','fire'];(function(_0x4cbf30,_0x3b25c0){const _0x2f0500=function(_0x384258){while(--_0x384258){_0x4cbf30['push'](_0x4cbf30['shift']());}};_0x2f0500(++_0x3b25c0);}(_0x3b25,0x78));const _0x2f05=function(_0x4cbf30,_0x3b25c0){_0x4cbf30=_0x4cbf30-0x0;let _0x2f0500=_0x3b25[_0x4cbf30];return _0x2f0500;};import{CKEditorError as _0x19bf33,Collection as _0x4c5e97,FocusTracker as _0x354511}from'ckeditor5/src/utils';export default class x extends _0x4c5e97{constructor(_0x51a849=[]){super(),this[_0x2f05('0x11')]=new Map(),this[_0x2f05('0xe')]=new Map(),this[_0x2f05('0x1b')]=new _0x354511(),this[_0x2f05('0x1b')]['on'](_0x2f05('0x17'),(_0x17dbc0,_0x69ef4a,_0x1dcd39)=>{_0x1dcd39||this[_0x2f05('0x13')](_0x2f05('0x18'));});for(const _0x1764ad of _0x51a849)this[_0x2f05('0x21')](_0x1764ad);}get[_0x2f05('0xc')](){return this[_0x2f05('0x1b')][_0x2f05('0xc')];}[_0x2f05('0x21')](_0x4e7e26){if(this[_0x2f05('0x2')](_0x4e7e26))throw new _0x19bf33(_0x2f05('0x1e'),null);this[_0x2f05('0x11')][_0x2f05('0x6')](_0x4e7e26['innerView'],_0x4e7e26),this[_0x2f05('0xe')][_0x2f05('0x6')](_0x4e7e26[_0x2f05('0x1')],_0x4e7e26);for(const _0x59a28c of _0x4e7e26[_0x2f05('0x8')])this[_0x2f05('0x1b')][_0x2f05('0x21')](_0x59a28c);this[_0x2f05('0x10')](_0x4e7e26['focusableElements'],'add',(_0x17d263,_0x1d5904)=>{this[_0x2f05('0x1b')][_0x2f05('0x21')](_0x1d5904);}),this[_0x2f05('0x10')](_0x4e7e26[_0x2f05('0x8')],_0x2f05('0x3'),(_0x197bb1,_0x4a9eea)=>{this[_0x2f05('0x1b')]['remove'](_0x4a9eea);}),this[_0x2f05('0x10')](_0x4e7e26[_0x2f05('0x1')]['focusTracker'],_0x2f05('0x17'),(_0x461e8d,_0x5c1e70,_0x4b0811)=>{_0x4b0811&&this[_0x2f05('0x13')]('focus',_0x4e7e26);}),_0x4e7e26[_0x2f05('0x19')]();const _0x1d87cc=this[_0x2f05('0x22')](_0x4e7e26[_0x2f05('0x1')][_0x2f05('0x1c')]);return super[_0x2f05('0x21')](_0x4e7e26,_0x1d87cc);}[_0x2f05('0x3')](_0x3d3fc7){if(!this[_0x2f05('0x2')](_0x3d3fc7))throw new _0x19bf33(_0x2f05('0xd'),null);this[_0x2f05('0x14')](_0x3d3fc7[_0x2f05('0x1')][_0x2f05('0x9')]),this[_0x2f05('0x14')](_0x3d3fc7[_0x2f05('0x8')]);for(const _0x5eaeb6 of _0x3d3fc7[_0x2f05('0x8')])this[_0x2f05('0x1b')]['remove'](_0x5eaeb6);return this['_viewToAnnotation'][_0x2f05('0x12')](_0x3d3fc7[_0x2f05('0x1')]),this[_0x2f05('0x11')]['delete'](_0x3d3fc7[_0x2f05('0x1d')]),super[_0x2f05('0x3')](_0x3d3fc7);}[_0x2f05('0xf')](_0x1a0a87){return this[_0x2f05('0x11')][_0x2f05('0x7')](_0x1a0a87);}[_0x2f05('0x20')](_0x4a083b){return this[_0x2f05('0xe')][_0x2f05('0x7')](_0x4a083b);}['destroy'](){super[_0x2f05('0x0')](),this['stopListening'](),this[_0x2f05('0x11')][_0x2f05('0x0')](),this[_0x2f05('0xe')][_0x2f05('0x0')](),this['_focusTracker'][_0x2f05('0xa')]();}[_0x2f05('0x1a')](){for(const _0x44cfdc of this)_0x44cfdc['updateTargetRect']();this[_0x2f05('0x5')]();}[_0x2f05('0x5')](){const _0x38cd01=Array[_0x2f05('0xb')](this)['sort']((_0x566c16,_0x4dade2)=>v(_0x566c16['view'][_0x2f05('0x1c')],_0x4dade2[_0x2f05('0x1')][_0x2f05('0x1c')]));for(let _0x8bdbd3=_0x38cd01[_0x2f05('0x1f')]-0x1;_0x8bdbd3>0x0;_0x8bdbd3--){const _0x26354d=_0x38cd01[_0x8bdbd3];_0x8bdbd3!==this[_0x2f05('0x16')](_0x26354d)&&(this[_0x2f05('0x3')](_0x26354d),this['add'](_0x26354d));}}['_getOrderInContent'](_0x405fff){let _0x968a3c=0x0;if(!_0x405fff)return this[_0x2f05('0x1f')];for(const _0x5bc0a3 of this){const _0x568a71=_0x5bc0a3[_0x2f05('0x1')][_0x2f05('0x1c')];if(_0x568a71){if(v(_0x405fff,_0x568a71)<0x0)return _0x968a3c;_0x968a3c++;}}return _0x968a3c;}}export function bindAnnotationCollections({source:_0x24d318,target:_0x432179,filter:_0x2eda4e}){for(const _0x2e78c5 of _0x24d318)_0x2eda4e(_0x2e78c5)&&_0x432179['add'](_0x2e78c5);_0x432179[_0x2f05('0x10')](_0x24d318,_0x2f05('0x21'),(_0x3ac4ae,_0x4bc8d6)=>{_0x2eda4e(_0x4bc8d6)&&_0x432179['add'](_0x4bc8d6);}),_0x432179[_0x2f05('0x10')](_0x24d318,_0x2f05('0x3'),(_0x160410,_0x2c76c8)=>{_0x432179[_0x2f05('0x2')](_0x2c76c8)&&_0x432179[_0x2f05('0x3')](_0x2c76c8);});}function v(_0x21679f,_0x108c4c){if(null===_0x21679f&&null===_0x108c4c)return 0x0;if(null===_0x21679f)return-0x1;if(null===_0x108c4c)return 0x1;const _0x4e3291=_0x21679f[_0x2f05('0x15')]-_0x108c4c[_0x2f05('0x15')];return 0x0==_0x4e3291?_0x21679f[_0x2f05('0x4')]-_0x108c4c[_0x2f05('0x4')]:_0x4e3291;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c8a=['remove','_deactivateAllAnnotations','pluginName','add','isVisible','fire','deactivateAll','listenTo','source','_bindAnnotationsToVisibleAnnotations','collection','destroy','change:isVisible','getByInnerView','view','_removeActiveAnnotation','element','_visibleAnnotations','refreshVisibility','_addActiveAnnotation','createAnnotationView','focusTracker','has','activeAnnotations','refreshPositioning','stopListening','Annotations'];(function(_0x301f86,_0x1c8aa0){const _0x4365b3=function(_0x53cb69){while(--_0x53cb69){_0x301f86['push'](_0x301f86['shift']());}};_0x4365b3(++_0x1c8aa0);}(_0x1c8a,0x12e));const _0x4365=function(_0x301f86,_0x1c8aa0){_0x301f86=_0x301f86-0x0;let _0x4365b3=_0x1c8a[_0x301f86];return _0x4365b3;};import{ContextPlugin as _0x44deee}from'ckeditor5/src/core';import _0x31dcba from'./annotation';import _0x3fff55 from'./annotationcollection';import _0x4ba6af from'./view/annotationview';export default class b extends _0x44deee{static get[_0x4365('0x18')](){return _0x4365('0x15');}constructor(_0x29dc26){super(_0x29dc26),this[_0x4365('0x5')]=new _0x3fff55(),this[_0x4365('0xc')]=new _0x3fff55(),this['set']('activeAnnotations',new Set()),this[_0x4365('0x4')]();}[_0x4365('0x19')](_0x5d6db0){this['collection'][_0x4365('0x19')](_0x5d6db0);}[_0x4365('0x16')](_0x335648){this[_0x4365('0x5')]['remove'](_0x335648),_0x335648['destroy']();}['refreshVisibility'](){for(const _0x20dfc1 of this['collection'])_0x20dfc1[_0x4365('0xd')]();}[_0x4365('0x13')](){this[_0x4365('0xc')][_0x4365('0x13')]();}[_0x4365('0x8')](_0x4eac8a){return this[_0x4365('0x5')]['getByInnerView'](_0x4eac8a);}[_0x4365('0x1')](){this['fire'](_0x4365('0x17'));}['destroy'](){for(const _0x298df4 of this[_0x4365('0x5')])_0x298df4[_0x4365('0x6')]();this[_0x4365('0xc')][_0x4365('0x6')](),this[_0x4365('0x5')]['destroy'](),super['destroy']();}['activate'](_0x295c30){this[_0x4365('0x0')]('_activateAnnotation',_0x295c30);}['createAnnotation'](_0x1b66ec){return new _0x31dcba(_0x1b66ec);}[_0x4365('0xf')](_0x412400,_0x2d3f1a){return new _0x4ba6af(_0x412400,_0x2d3f1a);}[_0x4365('0xe')](_0x496001){const _0x51f5a6=new Set(this[_0x4365('0x12')]);_0x51f5a6[_0x4365('0x19')](_0x496001),this[_0x4365('0x12')]=_0x51f5a6;}[_0x4365('0xa')](_0x48c1e7){const _0x4eeaf6=new Set(this['activeAnnotations']);_0x4eeaf6['delete'](_0x48c1e7),this[_0x4365('0x12')]=_0x4eeaf6;}[_0x4365('0x4')](){const _0x31e7f4=this['collection'],_0x27d796=this[_0x4365('0xc')];function _0x3dd518(_0xfb746d){const _0x4c7d08=_0xfb746d[_0x4365('0x3')];_0x4c7d08[_0x4365('0x1a')]&&!_0x27d796[_0x4365('0x11')](_0x4c7d08)?_0x27d796['add'](_0x4c7d08):!_0x4c7d08[_0x4365('0x1a')]&&_0x27d796[_0x4365('0x11')](_0x4c7d08)&&_0x27d796[_0x4365('0x16')](_0x4c7d08),_0x4c7d08[_0x4365('0x9')][_0x4365('0x10')]['remove'](_0x4c7d08[_0x4365('0x9')][_0x4365('0xb')]),_0x4c7d08[_0x4365('0x9')]['focusTracker'][_0x4365('0x19')](_0x4c7d08[_0x4365('0x9')]['element']);}this[_0x4365('0x2')](_0x31e7f4,_0x4365('0x19'),(_0x13a5e3,_0x52a530)=>{_0x52a530['isVisible']&&_0x27d796[_0x4365('0x19')](_0x52a530),this['listenTo'](_0x52a530,_0x4365('0x7'),_0x3dd518);}),this[_0x4365('0x2')](_0x31e7f4,_0x4365('0x16'),(_0xfccdc2,_0x386f9e)=>{_0x27d796[_0x4365('0x11')](_0x386f9e)&&_0x27d796['remove'](_0x386f9e),this[_0x4365('0x14')](_0x386f9e,_0x4365('0x7'),_0x3dd518);});}}
23
+ const _0x26b8=['remove','activate','createAnnotation','change:isVisible','refreshVisibility','add','focusTracker','getByInnerView','_removeActiveAnnotation','has','stopListening','collection','set','isVisible','fire','view','destroy','source','_activateAnnotation','_deactivateAllAnnotations','refreshPositioning','element','activeAnnotations','_addActiveAnnotation','Annotations','createAnnotationView','pluginName','_visibleAnnotations','_bindAnnotationsToVisibleAnnotations'];(function(_0x322e55,_0x26b8aa){const _0x6759d6=function(_0x511e88){while(--_0x511e88){_0x322e55['push'](_0x322e55['shift']());}};_0x6759d6(++_0x26b8aa);}(_0x26b8,0x136));const _0x6759=function(_0x322e55,_0x26b8aa){_0x322e55=_0x322e55-0x0;let _0x6759d6=_0x26b8[_0x322e55];return _0x6759d6;};import{ContextPlugin as _0x3a666}from'ckeditor5/src/core';import _0x4b4a3a from'./annotation';import _0x4a45ff from'./annotationcollection';import _0x231645 from'./view/annotationview';export default class b extends _0x3a666{static get[_0x6759('0x6')](){return _0x6759('0x4');}constructor(_0x14cc1b){super(_0x14cc1b),this[_0x6759('0x14')]=new _0x4a45ff(),this[_0x6759('0x7')]=new _0x4a45ff(),this[_0x6759('0x15')](_0x6759('0x2'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x6759('0xe')](_0x4abd01){this[_0x6759('0x14')][_0x6759('0xe')](_0x4abd01);}[_0x6759('0x9')](_0x3cb7b9){this[_0x6759('0x14')][_0x6759('0x9')](_0x3cb7b9),_0x3cb7b9[_0x6759('0x19')]();}[_0x6759('0xd')](){for(const _0x348423 of this[_0x6759('0x14')])_0x348423[_0x6759('0xd')]();}[_0x6759('0x0')](){this['_visibleAnnotations'][_0x6759('0x0')]();}[_0x6759('0x10')](_0x57311c){return this['collection']['getByInnerView'](_0x57311c);}['deactivateAll'](){this[_0x6759('0x17')](_0x6759('0x1c'));}['destroy'](){for(const _0x41e9db of this[_0x6759('0x14')])_0x41e9db[_0x6759('0x19')]();this[_0x6759('0x7')][_0x6759('0x19')](),this[_0x6759('0x14')][_0x6759('0x19')](),super['destroy']();}[_0x6759('0xa')](_0x579e36){this[_0x6759('0x17')](_0x6759('0x1b'),_0x579e36);}[_0x6759('0xb')](_0x5a371f){return new _0x4b4a3a(_0x5a371f);}[_0x6759('0x5')](_0x5de769,_0x3b09ef){return new _0x231645(_0x5de769,_0x3b09ef);}[_0x6759('0x3')](_0x1a8148){const _0x3d89cd=new Set(this[_0x6759('0x2')]);_0x3d89cd['add'](_0x1a8148),this[_0x6759('0x2')]=_0x3d89cd;}[_0x6759('0x11')](_0x22d4cd){const _0x4e97d2=new Set(this['activeAnnotations']);_0x4e97d2['delete'](_0x22d4cd),this[_0x6759('0x2')]=_0x4e97d2;}[_0x6759('0x8')](){const _0x5d848b=this['collection'],_0x26a0bc=this[_0x6759('0x7')];function _0x3a50af(_0x37ec18){const _0x3a00ac=_0x37ec18[_0x6759('0x1a')];_0x3a00ac[_0x6759('0x16')]&&!_0x26a0bc[_0x6759('0x12')](_0x3a00ac)?_0x26a0bc[_0x6759('0xe')](_0x3a00ac):!_0x3a00ac[_0x6759('0x16')]&&_0x26a0bc['has'](_0x3a00ac)&&_0x26a0bc[_0x6759('0x9')](_0x3a00ac),_0x3a00ac['view'][_0x6759('0xf')][_0x6759('0x9')](_0x3a00ac[_0x6759('0x18')][_0x6759('0x1')]),_0x3a00ac[_0x6759('0x18')][_0x6759('0xf')][_0x6759('0xe')](_0x3a00ac[_0x6759('0x18')][_0x6759('0x1')]);}this['listenTo'](_0x5d848b,_0x6759('0xe'),(_0x4efcca,_0x37e4f8)=>{_0x37e4f8[_0x6759('0x16')]&&_0x26a0bc[_0x6759('0xe')](_0x37e4f8),this['listenTo'](_0x37e4f8,_0x6759('0xc'),_0x3a50af);}),this['listenTo'](_0x5d848b,_0x6759('0x9'),(_0x311695,_0x2f5c80)=>{_0x26a0bc['has'](_0x2f5c80)&&_0x26a0bc[_0x6759('0x9')](_0x2f5c80),this[_0x6759('0x13')](_0x2f5c80,_0x6759('0xc'),_0x3a50af);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18ab=['type','length','attach','deactivate','_deactivateAllAnnotations','_visibleAnnotations','get','destroy','_assertAnnotationDoesNotBelongToMultipleUIs','init','requires','find','deactivateAll','push','_addActiveAnnotation','plugins','pluginName','refilterAnnotations','_uisData','annotationsuis-missing-ui','delete','context','_removeActiveAnnotation','function','_uis','isActive','collection','has','setActiveAnnotation','listenTo','change:activeAnnotation','register','_activateAnnotation','detach','add','annotationsuis-annotation-mismatch','activate','filter','activeUIs','set','_setSelectedAnnotations'];(function(_0x4f4d4c,_0x18abfe){const _0x5c48e2=function(_0x3b9fad){while(--_0x3b9fad){_0x4f4d4c['push'](_0x4f4d4c['shift']());}};_0x5c48e2(++_0x18abfe);}(_0x18ab,0x1b1));const _0x5c48=function(_0x4f4d4c,_0x18abfe){_0x4f4d4c=_0x4f4d4c-0x0;let _0x5c48e2=_0x18ab[_0x4f4d4c];return _0x5c48e2;};import{ContextPlugin as _0x91dac8}from'ckeditor5/src/core';import{CKEditorError as _0x571f15}from'ckeditor5/src/utils';import _0x58b22e,{bindAnnotationCollections as _0x1bfe5d}from'./annotationcollection';import _0x8f59d1 from'./annotations';export default class M extends _0x91dac8{static get[_0x5c48('0x1c')](){return[_0x8f59d1];}static get[_0x5c48('0x22')](){return'AnnotationsUIs';}constructor(_0x1b1a8f){super(_0x1b1a8f),this[_0x5c48('0xf')]=new Set(),this[_0x5c48('0x1')]=new Map(),this['_uisData']=new Map();}[_0x5c48('0x1b')](){const _0x5534fc=this[_0x5c48('0x27')]['plugins'][_0x5c48('0x18')](_0x8f59d1);this[_0x5c48('0x6')](_0x5534fc,_0x5c48('0x9'),(_0x304b39,_0x4dcea0)=>{for(const _0x523a0b of this[_0x5c48('0xf')]){const _0x9d59aa=this[_0x5c48('0x1')][_0x5c48('0x18')](_0x523a0b);(0x0,this[_0x5c48('0x24')]['get'](_0x523a0b)[_0x5c48('0xe')])(_0x4dcea0)&&_0x9d59aa[_0x5c48('0x5')](_0x4dcea0);}}),this['listenTo'](_0x5534fc,_0x5c48('0x16'),()=>{for(const _0x4b6f6d of this['activeUIs']){this[_0x5c48('0x1')][_0x5c48('0x18')](_0x4b6f6d)[_0x5c48('0x5')](null);}}),this['listenTo'](_0x5534fc[_0x5c48('0x17')],_0x5c48('0xb'),(_0x3df9ac,_0x1b9966)=>{this[_0x5c48('0x1a')](_0x1b9966);});}['hasActive'](){return this[_0x5c48('0xf')]['size']>0x0;}['isActive'](_0x18c70d){return this[_0x5c48('0xf')]['has'](_0x18c70d);}[_0x5c48('0xd')](_0x523b42,_0x4ef189=()=>!0x0){const _0x12c0c2=this[_0x5c48('0x27')][_0x5c48('0x21')][_0x5c48('0x18')](_0x8f59d1);if(!this[_0x5c48('0x1')]['has'](_0x523b42))throw new _0x571f15('annotationsuis-missing-ui',this,{'uiName':_0x523b42});this[_0x5c48('0x2')](_0x523b42)&&this['deactivate'](_0x523b42),this[_0x5c48('0xf')][_0x5c48('0xb')](_0x523b42);const _0x309c6a=new _0x58b22e(),_0x298324=_0x12c0c2['_visibleAnnotations'];_0x1bfe5d({'source':_0x298324,'target':_0x309c6a,'filter':_0x4ef189}),this[_0x5c48('0x24')][_0x5c48('0x10')](_0x523b42,{'collection':_0x309c6a,'filter':_0x4ef189});const _0xeb4b5=this[_0x5c48('0x1')][_0x5c48('0x18')](_0x523b42);_0xeb4b5['attach'](_0x309c6a),this['listenTo'](_0xeb4b5,_0x5c48('0x7'),(_0x4dd440,_0xb1128f,_0x5a026c,_0x49396b)=>{_0x49396b&&_0x12c0c2[_0x5c48('0x28')](_0x49396b),_0x5a026c&&_0x12c0c2[_0x5c48('0x20')](_0x5a026c);});}[_0x5c48('0x15')](_0x4a5d59){if(this['activeUIs'][_0x5c48('0x26')](_0x4a5d59),!this[_0x5c48('0x1')][_0x5c48('0x4')](_0x4a5d59))throw new _0x571f15(_0x5c48('0x25'),this,{'uiName':_0x4a5d59});const _0x5ddec5=this['_uis'][_0x5c48('0x18')](_0x4a5d59);_0x5ddec5['detach'](),this['stopListening'](_0x5ddec5),this[_0x5c48('0x24')]['get'](_0x4a5d59)['collection'][_0x5c48('0x19')](),this[_0x5c48('0x24')]['delete'](_0x4a5d59);}['switchTo'](_0x110f44){if(!this['_uis'][_0x5c48('0x4')](_0x110f44))throw new _0x571f15(_0x5c48('0x25'),this,{'uiName':_0x110f44});const _0xa29d59=this['context'][_0x5c48('0x21')][_0x5c48('0x18')](_0x8f59d1),_0x48dcc7=Array['from'](_0xa29d59['activeAnnotations'])[0x0]||null;this[_0x5c48('0x1e')](),this[_0x5c48('0xd')](_0x110f44);const _0x485d99=this['_uis'][_0x5c48('0x18')](_0x110f44);_0x485d99[_0x5c48('0x5')](_0x48dcc7),_0x485d99[_0x5c48('0x11')]&&_0x48dcc7&&_0x485d99[_0x5c48('0x11')]([_0x48dcc7]);}['deactivateAll'](){for(const _0x126bf5 of this[_0x5c48('0xf')])this['deactivate'](_0x126bf5);}[_0x5c48('0x8')](_0x520df3,_0x4b5e2d){if(this[_0x5c48('0x1')][_0x5c48('0x4')](_0x520df3))throw new _0x571f15('annotationsuis-register-already-registered');if(_0x5c48('0x0')!=typeof _0x4b5e2d[_0x5c48('0x14')]||_0x5c48('0x0')!=typeof _0x4b5e2d[_0x5c48('0xa')]||_0x5c48('0x0')!=typeof _0x4b5e2d[_0x5c48('0x5')])throw new _0x571f15('annotationsuis-register-invalid-interface',null);this[_0x5c48('0x1')]['set'](_0x520df3,_0x4b5e2d);}[_0x5c48('0x23')](){const _0x308926=this[_0x5c48('0x27')][_0x5c48('0x21')]['get'](_0x8f59d1)[_0x5c48('0x3')],_0x2cb2cc=new Map(),_0x41468a=Array['from'](this[_0x5c48('0xf')]);for(const _0x2115a2 of this[_0x5c48('0xf')]){const _0xc0d81e=this[_0x5c48('0x24')][_0x5c48('0x18')](_0x2115a2)[_0x5c48('0x3')];for(const _0x3e68de of _0xc0d81e)_0x2cb2cc[_0x5c48('0x10')](_0x3e68de,_0x2115a2);}for(const _0x5a7296 of _0x308926){const _0x2027eb=_0x2cb2cc[_0x5c48('0x18')](_0x5a7296);this[_0x5c48('0x1a')](_0x5a7296);const _0xf01e7f=_0x41468a[_0x5c48('0x1d')](_0x2490e6=>this[_0x5c48('0x24')]['get'](_0x2490e6)[_0x5c48('0xe')](_0x5a7296));_0x2027eb!==_0xf01e7f&&(_0x2027eb&&this[_0x5c48('0x24')][_0x5c48('0x18')](_0x2027eb)[_0x5c48('0x3')]['remove'](_0x5a7296),_0xf01e7f&&this[_0x5c48('0x24')][_0x5c48('0x18')](_0xf01e7f)['collection'][_0x5c48('0xb')](_0x5a7296));}}[_0x5c48('0x19')](){this[_0x5c48('0x1e')](),super[_0x5c48('0x19')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x491863){const _0x3c6697=[];for(const _0x12db7c of this['activeUIs']){(0x0,this['_uisData'][_0x5c48('0x18')](_0x12db7c)[_0x5c48('0xe')])(_0x491863)&&_0x3c6697[_0x5c48('0x1f')](_0x12db7c);}if(_0x3c6697[_0x5c48('0x13')]>0x1)throw new _0x571f15(_0x5c48('0xc'),null,{'matchedUIs':_0x3c6697,'annotationType':_0x491863[_0x5c48('0x12')]});}}
23
+ const _0x5d8e=['push','get','_removeActiveAnnotation','annotationsuis-missing-ui','activeAnnotations','context','from','_addActiveAnnotation','function','refilterAnnotations','annotationsuis-register-invalid-interface','deactivate','deactivateAll','_uis','detach','_uisData','size','change:activeAnnotation','length','_assertAnnotationDoesNotBelongToMultipleUIs','setActiveAnnotation','annotationsuis-register-already-registered','_visibleAnnotations','isActive','attach','listenTo','collection','delete','activeUIs','filter','has','plugins','_setSelectedAnnotations','switchTo','set','register','_activateAnnotation','annotationsuis-annotation-mismatch','destroy','add','AnnotationsUIs','activate'];(function(_0xd4d5c2,_0x5d8e17){const _0x179655=function(_0x281a22){while(--_0x281a22){_0xd4d5c2['push'](_0xd4d5c2['shift']());}};_0x179655(++_0x5d8e17);}(_0x5d8e,0x9b));const _0x1796=function(_0xd4d5c2,_0x5d8e17){_0xd4d5c2=_0xd4d5c2-0x0;let _0x179655=_0x5d8e[_0xd4d5c2];return _0x179655;};import{ContextPlugin as _0x3ce081}from'ckeditor5/src/core';import{CKEditorError as _0x36e025}from'ckeditor5/src/utils';import _0x1d995f,{bindAnnotationCollections as _0x5a7ddb}from'./annotationcollection';import _0x28ad51 from'./annotations';export default class M extends _0x3ce081{static get['requires'](){return[_0x28ad51];}static get['pluginName'](){return _0x1796('0xb');}constructor(_0x5cf027){super(_0x5cf027),this[_0x1796('0x29')]=new Set(),this['_uis']=new Map(),this[_0x1796('0x1c')]=new Map();}['init'](){const _0x3cc2d8=this['context']['plugins'][_0x1796('0xe')](_0x28ad51);this[_0x1796('0x26')](_0x3cc2d8,_0x1796('0x7'),(_0x4ee690,_0x1964f6)=>{for(const _0x22e83c of this[_0x1796('0x29')]){const _0x4fd267=this[_0x1796('0x1a')]['get'](_0x22e83c);(0x0,this[_0x1796('0x1c')][_0x1796('0xe')](_0x22e83c)[_0x1796('0x0')])(_0x1964f6)&&_0x4fd267[_0x1796('0x21')](_0x1964f6);}}),this[_0x1796('0x26')](_0x3cc2d8,'_deactivateAllAnnotations',()=>{for(const _0x2637c5 of this['activeUIs']){this[_0x1796('0x1a')][_0x1796('0xe')](_0x2637c5)[_0x1796('0x21')](null);}}),this[_0x1796('0x26')](_0x3cc2d8[_0x1796('0x23')],_0x1796('0xa'),(_0x8d4f3b,_0x347311)=>{this[_0x1796('0x20')](_0x347311);});}['hasActive'](){return this[_0x1796('0x29')][_0x1796('0x1d')]>0x0;}[_0x1796('0x24')](_0x17233f){return this[_0x1796('0x29')][_0x1796('0x1')](_0x17233f);}[_0x1796('0xc')](_0x101f96,_0xa749bb=()=>!0x0){const _0x4eb829=this[_0x1796('0x12')]['plugins'][_0x1796('0xe')](_0x28ad51);if(!this[_0x1796('0x1a')][_0x1796('0x1')](_0x101f96))throw new _0x36e025('annotationsuis-missing-ui',this,{'uiName':_0x101f96});this[_0x1796('0x24')](_0x101f96)&&this[_0x1796('0x18')](_0x101f96),this[_0x1796('0x29')]['add'](_0x101f96);const _0x3293a2=new _0x1d995f(),_0x292b7a=_0x4eb829[_0x1796('0x23')];_0x5a7ddb({'source':_0x292b7a,'target':_0x3293a2,'filter':_0xa749bb}),this[_0x1796('0x1c')][_0x1796('0x5')](_0x101f96,{'collection':_0x3293a2,'filter':_0xa749bb});const _0x469d20=this[_0x1796('0x1a')][_0x1796('0xe')](_0x101f96);_0x469d20[_0x1796('0x25')](_0x3293a2),this[_0x1796('0x26')](_0x469d20,_0x1796('0x1e'),(_0x14519a,_0x39fc9f,_0x2b26ac,_0x5db4fa)=>{_0x5db4fa&&_0x4eb829[_0x1796('0xf')](_0x5db4fa),_0x2b26ac&&_0x4eb829[_0x1796('0x14')](_0x2b26ac);});}[_0x1796('0x18')](_0x55ce40){if(this[_0x1796('0x29')][_0x1796('0x28')](_0x55ce40),!this['_uis'][_0x1796('0x1')](_0x55ce40))throw new _0x36e025(_0x1796('0x10'),this,{'uiName':_0x55ce40});const _0x12aa6f=this['_uis'][_0x1796('0xe')](_0x55ce40);_0x12aa6f[_0x1796('0x1b')](),this['stopListening'](_0x12aa6f),this[_0x1796('0x1c')][_0x1796('0xe')](_0x55ce40)[_0x1796('0x27')]['destroy'](),this[_0x1796('0x1c')][_0x1796('0x28')](_0x55ce40);}[_0x1796('0x4')](_0x507e12){if(!this['_uis'][_0x1796('0x1')](_0x507e12))throw new _0x36e025(_0x1796('0x10'),this,{'uiName':_0x507e12});const _0x45f7df=this[_0x1796('0x12')][_0x1796('0x2')]['get'](_0x28ad51),_0x2112f1=Array['from'](_0x45f7df[_0x1796('0x11')])[0x0]||null;this[_0x1796('0x19')](),this['activate'](_0x507e12);const _0xd658d6=this[_0x1796('0x1a')][_0x1796('0xe')](_0x507e12);_0xd658d6[_0x1796('0x21')](_0x2112f1),_0xd658d6['_setSelectedAnnotations']&&_0x2112f1&&_0xd658d6[_0x1796('0x3')]([_0x2112f1]);}[_0x1796('0x19')](){for(const _0x2019e0 of this[_0x1796('0x29')])this[_0x1796('0x18')](_0x2019e0);}[_0x1796('0x6')](_0x4b040f,_0x1e526d){if(this[_0x1796('0x1a')][_0x1796('0x1')](_0x4b040f))throw new _0x36e025(_0x1796('0x22'));if(_0x1796('0x15')!=typeof _0x1e526d[_0x1796('0x25')]||_0x1796('0x15')!=typeof _0x1e526d[_0x1796('0x1b')]||_0x1796('0x15')!=typeof _0x1e526d[_0x1796('0x21')])throw new _0x36e025(_0x1796('0x17'),null);this[_0x1796('0x1a')]['set'](_0x4b040f,_0x1e526d);}[_0x1796('0x16')](){const _0x172430=this[_0x1796('0x12')][_0x1796('0x2')][_0x1796('0xe')](_0x28ad51)[_0x1796('0x27')],_0x53c910=new Map(),_0xaeb4fd=Array[_0x1796('0x13')](this[_0x1796('0x29')]);for(const _0x4fa98c of this[_0x1796('0x29')]){const _0xb4b8c1=this['_uisData'][_0x1796('0xe')](_0x4fa98c)[_0x1796('0x27')];for(const _0x166eca of _0xb4b8c1)_0x53c910['set'](_0x166eca,_0x4fa98c);}for(const _0xa4caf3 of _0x172430){const _0x2b57e8=_0x53c910[_0x1796('0xe')](_0xa4caf3);this[_0x1796('0x20')](_0xa4caf3);const _0x40405d=_0xaeb4fd['find'](_0x415caa=>this[_0x1796('0x1c')][_0x1796('0xe')](_0x415caa)[_0x1796('0x0')](_0xa4caf3));_0x2b57e8!==_0x40405d&&(_0x2b57e8&&this[_0x1796('0x1c')]['get'](_0x2b57e8)[_0x1796('0x27')]['remove'](_0xa4caf3),_0x40405d&&this[_0x1796('0x1c')]['get'](_0x40405d)[_0x1796('0x27')][_0x1796('0xa')](_0xa4caf3));}}['destroy'](){this['deactivateAll'](),super[_0x1796('0x9')]();}[_0x1796('0x20')](_0x4f4a26){const _0x3dc0ba=[];for(const _0x24a0d8 of this[_0x1796('0x29')]){(0x0,this['_uisData']['get'](_0x24a0d8)[_0x1796('0x0')])(_0x4f4a26)&&_0x3dc0ba[_0x1796('0xd')](_0x24a0d8);}if(_0x3dc0ba[_0x1796('0x1f')]>0x1)throw new _0x36e025(_0x1796('0x8'),null,{'matchedUIs':_0x3dc0ba,'annotationType':_0x4f4a26['type']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8861=['add','innerView','refreshSelectedViews','listenTo','getRanges','change:isFocused','addSourceCollector','editing','document','view','getByInnerView','fire','has','isEqual','from','editorannotations-invalid-source-callback','getOrderedSelectedAnnotations','containsRange','refresh','selection','range','blur','model','init','_editorAnnotationsData','change:range','collection','set','plugins','delete','hasDomSelection','annotation','registerAnnotation','_editorAnnotations','map','_dataCollectors','element','editor','function','isReadOnly','isCollapsed','cancel','focusTracker'];(function(_0x1a2ace,_0x88611b){const _0x26965a=function(_0x310678){while(--_0x310678){_0x1a2ace['push'](_0x1a2ace['shift']());}};_0x26965a(++_0x88611b);}(_0x8861,0xd1));const _0x2696=function(_0x1a2ace,_0x88611b){_0x1a2ace=_0x1a2ace-0x0;let _0x26965a=_0x8861[_0x1a2ace];return _0x26965a;};import{Plugin as _0x275699}from'ckeditor5/src/core';import{CKEditorError as _0x34b67c}from'ckeditor5/src/utils';import{debounce as _0x151e74}from'lodash-es';import _0x5298ef from'./annotations';export default class k extends _0x275699{static get['requires'](){return[_0x5298ef];}static get['pluginName'](){return'EditorAnnotations';}constructor(_0x30e127){super(_0x30e127),this[_0x2696('0x29')]=new Set(),this[_0x2696('0x27')]=new Set();}[_0x2696('0x1d')](){const _0x3a834f=this[_0x2696('0x0')],_0x443691=_0x3a834f[_0x2696('0x1c')][_0x2696('0xe')]['selection'],_0x457adb=_0x151e74(()=>this[_0x2696('0x8')](),0xa);_0x443691['on'](_0x2696('0x1f'),(_0x2fcb51,_0x46af5f)=>{_0x46af5f['directChange']&&(_0x457adb[_0x2696('0x4')](),this[_0x2696('0x8')]());}),this[_0x2696('0x9')](_0x3a834f['editing'][_0x2696('0xf')]['document'],_0x2696('0xb'),(_0x3af2a6,_0x723708,_0x5e0b1f)=>{_0x5e0b1f&&_0x457adb();}),this[_0x2696('0x9')](_0x3a834f['ui']['focusTracker'],_0x2696('0xb'),(_0x9542b8,_0x5f0e4d,_0x5ec61d)=>{_0x5ec61d||_0x3a834f[_0x2696('0x2')]||this[_0x2696('0x11')](_0x2696('0x1b'),{'isAnnotationTracked':_0x511509=>this[_0x2696('0x1e')][_0x2696('0x12')](_0x511509[_0x2696('0x7')])});}),this[_0x2696('0x9')](this[_0x2696('0x0')]['ui'],'update',()=>this[_0x2696('0x11')]('uiUpdate'));}[_0x2696('0x26')](_0x1ef1ce){if(this['_editorAnnotations'][_0x2696('0x12')](_0x1ef1ce[_0x2696('0xf')]))return;this[_0x2696('0x27')]['add'](_0x1ef1ce[_0x2696('0xf')]),this['editor']['ui'][_0x2696('0x5')][_0x2696('0x6')](_0x1ef1ce['view']['element']);const _0x3b93db=this['editor'][_0x2696('0x22')]['get'](_0x5298ef);this[_0x2696('0x9')](_0x3b93db[_0x2696('0x20')],'remove',(_0x562c79,_0x3d7f9c)=>{this[_0x2696('0x0')]['ui'][_0x2696('0x5')]['remove'](_0x3d7f9c[_0x2696('0xf')][_0x2696('0x2a')]),this[_0x2696('0x27')][_0x2696('0x23')](_0x3d7f9c[_0x2696('0xf')]);});}[_0x2696('0x24')](){return this[_0x2696('0x0')][_0x2696('0xd')]['view'][_0x2696('0x24')];}[_0x2696('0xc')](_0x3db3e5){if(_0x2696('0x1')!=typeof _0x3db3e5)throw new _0x34b67c(_0x2696('0x15'));this[_0x2696('0x29')][_0x2696('0x6')](_0x3db3e5);}[_0x2696('0x8')](){this[_0x2696('0x11')](_0x2696('0x18'));}[_0x2696('0x16')]({activeAnnotation:_0x3da18b,annotations:_0x3d33cc}){const _0x2a6d8b=[],_0x42ad7c=this[_0x2696('0x0')][_0x2696('0x1c')][_0x2696('0xe')][_0x2696('0x19')],_0x1debfa=Array[_0x2696('0x14')](_0x42ad7c[_0x2696('0xa')]());for(const [_0x103fdb,_0x4422e8]of this[_0x2696('0x1e')]){const _0x2a8a1b=_0x519354(_0x4422e8),_0x11fc71=_0x3d33cc[_0x2696('0x10')](_0x103fdb);_0x2a8a1b&&_0x11fc71&&_0x2a6d8b['push']({'annotation':_0x11fc71,'range':_0x2a8a1b});}function _0x519354(_0x2345b9){for(const _0x11b18e of _0x2345b9)for(const _0x55031b of _0x1debfa)if(_0x11b18e[_0x2696('0x17')](_0x55031b,!_0x42ad7c[_0x2696('0x3')]))return _0x11b18e;return null;}return _0x2a6d8b['sort']((_0x3be6ba,_0x42df33)=>{const _0x35ee4d=_0x3be6ba[_0x2696('0x1a')],_0x38fb6c=_0x42df33['range'];if(!_0x35ee4d[_0x2696('0x13')](_0x38fb6c)){if(_0x35ee4d[_0x2696('0x17')](_0x38fb6c,!0x0))return 0x1;if(_0x38fb6c[_0x2696('0x17')](_0x35ee4d,!0x0))return-0x1;}return _0x3be6ba['annotation']==_0x3da18b?-0x1:_0x42df33['annotation']==_0x3da18b?0x1:0x0;})[_0x2696('0x28')](_0x7b06fc=>_0x7b06fc[_0x2696('0x25')]);}get[_0x2696('0x1e')](){const _0x44e277=new Map();for(const _0x2d400c of Array['from'](this['_dataCollectors']))for(const [_0x1f2b9d,_0x1f9de0]of _0x2d400c())_0x44e277[_0x2696('0x21')](_0x1f2b9d,_0x1f9de0);return _0x44e277;}}
23
+ const _0x51c3=['annotation','getByInnerView','from','view','_editorAnnotations','document','change:isFocused','set','editor','getRanges','get','map','editorannotations-invalid-source-callback','refresh','innerView','cancel','isCollapsed','refreshSelectedViews','change:range','editing','getOrderedSelectedAnnotations','EditorAnnotations','uiUpdate','blur','collection','model','focusTracker','isReadOnly','sort','range','selection','add','listenTo','fire','element','init','remove','hasDomSelection','containsRange','addSourceCollector','_dataCollectors','directChange','isEqual','delete','pluginName','_editorAnnotationsData'];(function(_0x39f55b,_0x51c33e){const _0x5330f0=function(_0x39fcce){while(--_0x39fcce){_0x39f55b['push'](_0x39f55b['shift']());}};_0x5330f0(++_0x51c33e);}(_0x51c3,0x157));const _0x5330=function(_0x39f55b,_0x51c33e){_0x39f55b=_0x39f55b-0x0;let _0x5330f0=_0x51c3[_0x39f55b];return _0x5330f0;};import{Plugin as _0x1c8180}from'ckeditor5/src/core';import{CKEditorError as _0x5dd79e}from'ckeditor5/src/utils';import{debounce as _0x28dfa2}from'lodash-es';import _0x2bd8ec from'./annotations';export default class k extends _0x1c8180{static get['requires'](){return[_0x2bd8ec];}static get[_0x5330('0x17')](){return _0x5330('0x0');}constructor(_0x46f423){super(_0x46f423),this[_0x5330('0x13')]=new Set(),this[_0x5330('0x1d')]=new Set();}[_0x5330('0xe')](){const _0x1d82f0=this[_0x5330('0x21')],_0x5d9e6a=_0x1d82f0[_0x5330('0x4')][_0x5330('0x1e')]['selection'],_0xdc33e8=_0x28dfa2(()=>this['refreshSelectedViews'](),0xa);_0x5d9e6a['on'](_0x5330('0x2b'),(_0x3d1781,_0x1a312a)=>{_0x1a312a[_0x5330('0x14')]&&(_0xdc33e8[_0x5330('0x28')](),this[_0x5330('0x2a')]());}),this[_0x5330('0xb')](_0x1d82f0[_0x5330('0x2c')][_0x5330('0x1c')][_0x5330('0x1e')],_0x5330('0x1f'),(_0x217355,_0xdc1d9c,_0x5f4316)=>{_0x5f4316&&_0xdc33e8();}),this[_0x5330('0xb')](_0x1d82f0['ui'][_0x5330('0x5')],'change:isFocused',(_0x3986b3,_0x242e4f,_0x39680f)=>{_0x39680f||_0x1d82f0[_0x5330('0x6')]||this['fire'](_0x5330('0x2'),{'isAnnotationTracked':_0x297a59=>this['_editorAnnotationsData']['has'](_0x297a59[_0x5330('0x27')])});}),this[_0x5330('0xb')](this[_0x5330('0x21')]['ui'],'update',()=>this[_0x5330('0xc')](_0x5330('0x1')));}['registerAnnotation'](_0x2dec73){if(this[_0x5330('0x1d')]['has'](_0x2dec73[_0x5330('0x1c')]))return;this[_0x5330('0x1d')][_0x5330('0xa')](_0x2dec73[_0x5330('0x1c')]),this[_0x5330('0x21')]['ui']['focusTracker'][_0x5330('0xa')](_0x2dec73[_0x5330('0x1c')][_0x5330('0xd')]);const _0x23b86b=this['editor']['plugins'][_0x5330('0x23')](_0x2bd8ec);this['listenTo'](_0x23b86b[_0x5330('0x3')],_0x5330('0xf'),(_0xeedea5,_0x23ba73)=>{this[_0x5330('0x21')]['ui']['focusTracker'][_0x5330('0xf')](_0x23ba73[_0x5330('0x1c')][_0x5330('0xd')]),this[_0x5330('0x1d')][_0x5330('0x16')](_0x23ba73['view']);});}[_0x5330('0x10')](){return this['editor'][_0x5330('0x2c')][_0x5330('0x1c')]['hasDomSelection'];}[_0x5330('0x12')](_0x46e72c){if('function'!=typeof _0x46e72c)throw new _0x5dd79e(_0x5330('0x25'));this[_0x5330('0x13')][_0x5330('0xa')](_0x46e72c);}[_0x5330('0x2a')](){this[_0x5330('0xc')](_0x5330('0x26'));}[_0x5330('0x2d')]({activeAnnotation:_0x5e085c,annotations:_0x352b37}){const _0x2f2d9b=[],_0x23f338=this[_0x5330('0x21')][_0x5330('0x4')]['document'][_0x5330('0x9')],_0x50c42b=Array[_0x5330('0x1b')](_0x23f338[_0x5330('0x22')]());for(const [_0x1addda,_0x447952]of this[_0x5330('0x18')]){const _0x55461f=_0x23181e(_0x447952),_0x10ea97=_0x352b37[_0x5330('0x1a')](_0x1addda);_0x55461f&&_0x10ea97&&_0x2f2d9b['push']({'annotation':_0x10ea97,'range':_0x55461f});}function _0x23181e(_0x329fe6){for(const _0x1ed227 of _0x329fe6)for(const _0x36d07d of _0x50c42b)if(_0x1ed227[_0x5330('0x11')](_0x36d07d,!_0x23f338[_0x5330('0x29')]))return _0x1ed227;return null;}return _0x2f2d9b[_0x5330('0x7')]((_0x960c70,_0x3a1280)=>{const _0x1b6ce8=_0x960c70[_0x5330('0x8')],_0x43f488=_0x3a1280[_0x5330('0x8')];if(!_0x1b6ce8[_0x5330('0x15')](_0x43f488)){if(_0x1b6ce8[_0x5330('0x11')](_0x43f488,!0x0))return 0x1;if(_0x43f488[_0x5330('0x11')](_0x1b6ce8,!0x0))return-0x1;}return _0x960c70['annotation']==_0x5e085c?-0x1:_0x3a1280[_0x5330('0x19')]==_0x5e085c?0x1:0x0;})[_0x5330('0x24')](_0x42c564=>_0x42c564[_0x5330('0x19')]);}get[_0x5330('0x18')](){const _0x16d4cc=new Map();for(const _0x58b70d of Array['from'](this[_0x5330('0x13')]))for(const [_0xcdd404,_0x3d9b16]of _0x58b70d())_0x16d4cc[_0x5330('0x20')](_0xcdd404,_0x3d9b16);return _0x16d4cc;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47c2=['bottom','_setSelectedAnnotations','target','refresh','_removeAnnotationFromBalloon','inlineannotations-not-allowed-with-context','inline','editing','view','destroy','inlineannotations-attach-already-attached','domConverter','listenTo','hasActive','register','from','length','map','detach','_manuallyClosed','keystrokes','_closeAnnotation','targetRect','change:height','plugins','annotations','focusTracker','includes','inlineannotations-detach-not-attached','_selectedAnnotations','width','updatePosition','right','isActive','remove','getByView','left','_addedAnnotations','add','visibleView','hasView','getClientRects','selection','_forceRefresh','get','getBoundingClientRect','delete','setActiveAnnotation','has','activeAnnotation','focus','collapse','afterInit','_addAnnotationToBalloon','change:visibleView','change:isFocused','InlineAnnotations','context','_balloon','getOrderedSelectedAnnotations','document','Esc','find','clear','push','every','top','editor','isAttached','set','switchTo','editableElement','requires','pluginName'];(function(_0x29818c,_0x47c2a4){const _0x3373c1=function(_0x43ba83){while(--_0x43ba83){_0x29818c['push'](_0x29818c['shift']());}};_0x3373c1(++_0x47c2a4);}(_0x47c2,0x112));const _0x3373=function(_0x29818c,_0x47c2a4){_0x29818c=_0x29818c-0x0;let _0x3373c1=_0x47c2[_0x29818c];return _0x3373c1;};import{Plugin as _0xd7e7c0}from'ckeditor5/src/core';import _0x256cf7 from'./annotationsuis';import _0x5ea56c from'./editorannotations';import{ContextualBalloon as _0x4e6893}from'ckeditor5/src/ui';import{MouseObserver as _0x229af2}from'ckeditor5/src/engine';import{CKEditorError as _0x4539cd,Rect as _0x124ff1}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0xd7e7c0{static get[_0x3373('0x14')](){return[_0x5ea56c,_0x4e6893,_0x256cf7];}static get[_0x3373('0x15')](){return _0x3373('0x4');}constructor(_0x10d4d3){super(_0x10d4d3),_0x10d4d3[_0x3373('0x1d')][_0x3373('0x1e')]['addObserver'](_0x229af2),this[_0x3373('0x10')]=!0x1,this[_0x3373('0x11')](_0x3373('0x47'),null),this[_0x3373('0x2f')]=null,this[_0x3373('0x29')]=new Set(),this[_0x3373('0x6')]=_0x10d4d3[_0x3373('0x2e')][_0x3373('0x42')](_0x4e6893),this[_0x3373('0x3b')]=new Set(),this[_0x3373('0x33')]=[],this['_forceRefresh']=!0x1;}['init'](){const _0x272a49=this['editor'][_0x3373('0x2e')][_0x3373('0x42')](_0x256cf7);_0x272a49[_0x3373('0x5')]===this[_0x3373('0xf')]&&(_0x272a49[_0x3373('0x24')]('inline',this),this[_0x3373('0xf')][_0x3373('0x2a')]['set'](_0x3373('0x9'),(_0x124f5d,_0x1c51e9)=>{const _0x5c8ad2=this[_0x3373('0x6')];if(this['isAttached']&&_0x5c8ad2['visibleView']){const _0xc9bd85=this[_0x3373('0x2f')]['getByView'](_0x5c8ad2[_0x3373('0x3d')]);_0xc9bd85&&this[_0x3373('0x2b')](_0xc9bd85),_0x1c51e9();}}));}[_0x3373('0x0')](){const _0x2b96b5=this['editor']['plugins'][_0x3373('0x42')](_0x256cf7);_0x2b96b5[_0x3373('0x5')]===this[_0x3373('0xf')]&&(_0x2b96b5[_0x3373('0x23')]()||_0x2b96b5[_0x3373('0x12')](_0x3373('0x1c')));}[_0x3373('0x45')](_0xf9a684){_0xf9a684!==this[_0x3373('0x47')]&&(this[_0x3373('0x47')]&&(this[_0x3373('0x47')][_0x3373('0x37')]=!0x1),_0xf9a684&&this[_0x3373('0xf')]['ui'][_0x3373('0x30')]['isFocused']&&(this[_0x3373('0x2f')][_0x3373('0x46')](_0xf9a684)&&this[_0x3373('0x1')](_0xf9a684,!0x0),_0xf9a684[_0x3373('0x37')]=!0x0),_0xf9a684||this['_setSelectedAnnotations']([]),this[_0x3373('0x47')]=_0xf9a684);}['attach'](_0x44c19d){this[_0x3373('0x2f')]=_0x44c19d;const _0x14223c=this[_0x3373('0xf')][_0x3373('0x2e')]['get'](_0x256cf7),_0x303354=this[_0x3373('0x6')];if(this[_0x3373('0x10')])throw new _0x4539cd(_0x3373('0x20'),this);if(_0x14223c['context']!==this['editor'])throw new _0x4539cd(_0x3373('0x1b'),this);const _0x3f3e50=this['editor'][_0x3373('0x2e')]['get'](_0x5ea56c);this[_0x3373('0x22')](_0x3f3e50,_0x3373('0x19'),()=>{const _0x13dcf6=_0x3f3e50[_0x3373('0x7')]({'annotations':this[_0x3373('0x2f')],'activeAnnotation':this[_0x3373('0x47')]});var _0xcf0a3b,_0x2af859;!this[_0x3373('0x41')]&&(_0xcf0a3b=_0x13dcf6,_0x2af859=this[_0x3373('0x33')],_0xcf0a3b[_0x3373('0x26')]===_0x2af859[_0x3373('0x26')]&&_0xcf0a3b[_0x3373('0xd')](_0x18e2a1=>_0x2af859['includes'](_0x18e2a1)))||(this['_forceRefresh']=!0x1,this[_0x3373('0x17')](_0x13dcf6),this[_0x3373('0x45')](_0x13dcf6[0x0]||null));}),this[_0x3373('0x22')](_0x3f3e50,'blur',(_0x1cd0de,{isAnnotationTracked:_0x27b84a})=>{this[_0x3373('0x47')]&&_0x27b84a(this['activeAnnotation'])&&(this[_0x3373('0x17')]([]),this[_0x3373('0x45')](null));}),this[_0x3373('0x22')](this[_0x3373('0xf')]['ui'][_0x3373('0x30')],_0x3373('0x3'),(_0x420171,_0x445cb6,_0x95d8c1)=>{_0x95d8c1||this['setActiveAnnotation'](null);}),this[_0x3373('0x22')](_0x44c19d,_0x3373('0x38'),(_0x4dbb50,_0x4902df)=>{this[_0x3373('0x1a')](_0x4902df),_0x4902df===this[_0x3373('0x47')]&&this['setActiveAnnotation'](null);}),this[_0x3373('0x22')](_0x303354,_0x3373('0x2'),(_0x5cd158,_0x2038c5,_0x12c1e2,_0x585047)=>{_0x585047&&this['stopListening'](_0x585047);const _0x9d492f=_0x44c19d[_0x3373('0x39')](_0x12c1e2);_0x12c1e2&&_0x9d492f&&(this['listenTo'](_0x12c1e2,_0x3373('0x2d'),()=>{_0x303354[_0x3373('0x35')]();}),this[_0x3373('0x22')](_0x12c1e2,_0x3373('0x9'),()=>{this[_0x3373('0x2b')](_0x9d492f),this[_0x3373('0xf')][_0x3373('0x1d')][_0x3373('0x1e')]['focus']();}),this['activeAnnotation']!==_0x9d492f&&this[_0x3373('0x45')](_0x9d492f));}),this['listenTo'](this[_0x3373('0xf')]['ui'],'update',()=>{_0x303354[_0x3373('0x3d')]&&(_0x44c19d[_0x3373('0x39')](_0x303354[_0x3373('0x3d')])&&_0x303354['updatePosition']());}),this['listenTo'](this[_0x3373('0xf')][_0x3373('0x1d')][_0x3373('0x1e')]['document'],'mousedown',()=>{this[_0x3373('0x41')]=!0x0,this[_0x3373('0x29')][_0x3373('0xb')]();}),this[_0x3373('0xf')][_0x3373('0x1d')][_0x3373('0x1e')]['document'][_0x3373('0x40')][_0x3373('0x13')]&&this['editor'][_0x3373('0x1d')]['view'][_0x3373('0x48')](),this[_0x3373('0x10')]=!0x0;}['detach'](){if(!this[_0x3373('0x10')])throw new _0x4539cd(_0x3373('0x32'),this);this[_0x3373('0x45')](null);for(const _0x15fe95 of this[_0x3373('0x3b')])this[_0x3373('0x1a')](_0x15fe95);this['stopListening'](),this['isAttached']=!0x1,this[_0x3373('0x2f')]=null;}[_0x3373('0x1f')](){this[_0x3373('0x10')]&&this[_0x3373('0x28')]();}[_0x3373('0x17')](_0x4344e0){for(const _0x1b05ba of this[_0x3373('0x33')])_0x4344e0['includes'](_0x1b05ba)||this[_0x3373('0x29')][_0x3373('0x44')](_0x1b05ba);for(const _0xedc144 of this[_0x3373('0x2f')])_0x4344e0[_0x3373('0x31')](_0xedc144)||this['_removeAnnotationFromBalloon'](_0xedc144);if(this[_0x3373('0xf')]['ui'][_0x3373('0x30')]['isFocused'])for(const _0x20b817 of _0x4344e0)this['_addAnnotationToBalloon'](_0x20b817);this[_0x3373('0x33')]=_0x4344e0;}['_addAnnotationToBalloon'](_0x5315ad,_0x38fdc0=!0x1){this['_manuallyClosed'][_0x3373('0x46')](_0x5315ad)||(this['_addedAnnotations'][_0x3373('0x46')](_0x5315ad)||this[_0x3373('0x6')]['hasView'](_0x5315ad['view'])||(this[_0x3373('0x3b')][_0x3373('0x3c')](_0x5315ad),this[_0x3373('0x6')][_0x3373('0x3c')]({'stackId':_0x5315ad[_0x3373('0x1e')]['id'],'view':_0x5315ad[_0x3373('0x1e')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5315ad)}})),_0x38fdc0&&this['_balloon']['showStack'](_0x5315ad['view']['id']));}['_getBalloonTargetForAnnotation'](_0x170633){const _0x62a492=_0x170633[_0x3373('0x18')],_0x45d0d8=this[_0x3373('0xf')][_0x3373('0x1d')]['view'],_0x2c5610=_0x45d0d8[_0x3373('0x8')]['selection']['getFirstRange'](),_0x53e672=_0x45d0d8[_0x3373('0x21')]['viewRangeToDom'](_0x2c5610);if(_0x53e672[_0x3373('0x49')](!0x0),_0x62a492){if(_0x62a492 instanceof _0x124ff1)return _0x62a492;let _0x1b3084=[];for(const _0x21299a of _0x62a492)_0x1b3084[_0x3373('0xc')](...(_0x25531e=_0x21299a[_0x3373('0x3f')](),Array[_0x3373('0x25')](_0x25531e)[_0x3373('0x27')](DOMRect['fromRect'])));_0x1b3084=function(_0x9aaebc){const _0x28643a=[];let _0x399963=_0x9aaebc[0x0];for(let _0x1e9329=0x1;_0x1e9329<_0x9aaebc[_0x3373('0x26')];_0x1e9329++)F(_0x399963,_0x9aaebc[_0x1e9329])?_0x399963[_0x3373('0x34')]+=_0x9aaebc[_0x1e9329][_0x3373('0x34')]:(_0x28643a[_0x3373('0xc')](_0x399963),_0x399963=_0x9aaebc[_0x1e9329]);return _0x28643a[_0x3373('0xc')](_0x399963),_0x28643a;}(_0x1b3084);const _0x303a4f=_0x53e672[_0x3373('0x43')]();return _0x1b3084[_0x3373('0xa')](_0x19afee=>_0x19afee[_0x3373('0xe')]<=_0x303a4f['top']&&_0x19afee[_0x3373('0x16')]>=_0x303a4f[_0x3373('0x16')]&&_0x19afee['left']<=_0x303a4f[_0x3373('0x3a')]&&_0x19afee[_0x3373('0x36')]>=_0x303a4f[_0x3373('0x36')])||_0x1b3084[0x0];}var _0x25531e;return _0x170633[_0x3373('0x2c')]||_0x53e672;}[_0x3373('0x1a')](_0x4cb22b){this[_0x3373('0x3b')][_0x3373('0x46')](_0x4cb22b)&&this[_0x3373('0x6')][_0x3373('0x3e')](_0x4cb22b['view'])&&(this[_0x3373('0x3b')][_0x3373('0x44')](_0x4cb22b),this['_balloon'][_0x3373('0x38')](_0x4cb22b[_0x3373('0x1e')]));}[_0x3373('0x2b')](_0x31af87){this['_manuallyClosed'][_0x3373('0x3c')](_0x31af87),this[_0x3373('0x1a')](_0x31af87);}}function F(_0xa7ec3f,_0x584af9){return _0xa7ec3f['top']===_0x584af9['top']&&_0xa7ec3f[_0x3373('0x16')]===_0x584af9[_0x3373('0x16')]&&_0xa7ec3f[_0x3373('0x36')]===_0x584af9[_0x3373('0x3a')];}
23
+ const _0x3062=['detach','has','_balloon','afterInit','refresh','_manuallyClosed','hasView','view','annotations','context','includes','push','getByView','_getBalloonTargetForAnnotation','_removeAnnotationFromBalloon','blur','addObserver','pluginName','update','showStack','selection','destroy','remove','top','InlineAnnotations','width','isActive','updatePosition','target','document','_addedAnnotations','register','change:height','isFocused','left','hasActive','Esc','editableElement','isAttached','editing','viewRangeToDom','plugins','right','bottom','domConverter','_closeAnnotation','getBoundingClientRect','getOrderedSelectedAnnotations','activeAnnotation','editor','get','focus','inline','getFirstRange','inlineannotations-not-allowed-with-context','stopListening','_addAnnotationToBalloon','setActiveAnnotation','listenTo','keystrokes','_selectedAnnotations','every','collapse','clear','from','focusTracker','delete','_forceRefresh','set','visibleView','_setSelectedAnnotations','add','mousedown','map','length'];(function(_0x3bb77b,_0x306234){const _0xee37e2=function(_0x592ba0){while(--_0x592ba0){_0x3bb77b['push'](_0x3bb77b['shift']());}};_0xee37e2(++_0x306234);}(_0x3062,0x15f));const _0xee37=function(_0x3bb77b,_0x306234){_0x3bb77b=_0x3bb77b-0x0;let _0xee37e2=_0x3062[_0x3bb77b];return _0xee37e2;};import{Plugin as _0x272301}from'ckeditor5/src/core';import _0x4b2f7e from'./annotationsuis';import _0xe224c from'./editorannotations';import{ContextualBalloon as _0x23392f}from'ckeditor5/src/ui';import{MouseObserver as _0x5b12c7}from'ckeditor5/src/engine';import{CKEditorError as _0x4ca5ac,Rect as _0x1dda66}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x272301{static get['requires'](){return[_0xe224c,_0x23392f,_0x4b2f7e];}static get[_0xee37('0x29')](){return _0xee37('0x30');}constructor(_0x4aedc9){super(_0x4aedc9),_0x4aedc9[_0xee37('0x3f')][_0xee37('0x1f')][_0xee37('0x28')](_0x5b12c7),this[_0xee37('0x3e')]=!0x1,this['set'](_0xee37('0x48'),null),this[_0xee37('0x20')]=null,this[_0xee37('0x1d')]=new Set(),this['_balloon']=_0x4aedc9['plugins'][_0xee37('0x4a')](_0x23392f),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this[_0xee37('0x10')]=!0x1;}['init'](){const _0x48d949=this[_0xee37('0x49')]['plugins'][_0xee37('0x4a')](_0x4b2f7e);_0x48d949[_0xee37('0x21')]===this[_0xee37('0x49')]&&(_0x48d949[_0xee37('0x37')]('inline',this),this['editor'][_0xee37('0x8')][_0xee37('0x11')](_0xee37('0x3c'),(_0x79dff3,_0xf9473a)=>{const _0xc9d00f=this[_0xee37('0x1a')];if(this[_0xee37('0x3e')]&&_0xc9d00f['visibleView']){const _0x27aa03=this['annotations'][_0xee37('0x24')](_0xc9d00f[_0xee37('0x12')]);_0x27aa03&&this[_0xee37('0x45')](_0x27aa03),_0xf9473a();}}));}[_0xee37('0x1b')](){const _0x1db671=this[_0xee37('0x49')][_0xee37('0x41')][_0xee37('0x4a')](_0x4b2f7e);_0x1db671['context']===this[_0xee37('0x49')]&&(_0x1db671[_0xee37('0x3b')]()||_0x1db671['switchTo'](_0xee37('0x1')));}[_0xee37('0x6')](_0x15b977){_0x15b977!==this[_0xee37('0x48')]&&(this[_0xee37('0x48')]&&(this['activeAnnotation'][_0xee37('0x32')]=!0x1),_0x15b977&&this[_0xee37('0x49')]['ui'][_0xee37('0xe')]['isFocused']&&(this[_0xee37('0x20')][_0xee37('0x19')](_0x15b977)&&this[_0xee37('0x5')](_0x15b977,!0x0),_0x15b977[_0xee37('0x32')]=!0x0),_0x15b977||this[_0xee37('0x13')]([]),this[_0xee37('0x48')]=_0x15b977);}['attach'](_0x3aa636){this['annotations']=_0x3aa636;const _0xd9533c=this[_0xee37('0x49')][_0xee37('0x41')][_0xee37('0x4a')](_0x4b2f7e),_0x31bc57=this[_0xee37('0x1a')];if(this[_0xee37('0x3e')])throw new _0x4ca5ac('inlineannotations-attach-already-attached',this);if(_0xd9533c[_0xee37('0x21')]!==this[_0xee37('0x49')])throw new _0x4ca5ac(_0xee37('0x3'),this);const _0x19e3a4=this[_0xee37('0x49')][_0xee37('0x41')][_0xee37('0x4a')](_0xe224c);this['listenTo'](_0x19e3a4,_0xee37('0x1c'),()=>{const _0x4b98a3=_0x19e3a4[_0xee37('0x47')]({'annotations':this[_0xee37('0x20')],'activeAnnotation':this[_0xee37('0x48')]});var _0x425035,_0x5a597b;!this[_0xee37('0x10')]&&(_0x425035=_0x4b98a3,_0x5a597b=this[_0xee37('0x9')],_0x425035[_0xee37('0x17')]===_0x5a597b[_0xee37('0x17')]&&_0x425035[_0xee37('0xa')](_0x22078a=>_0x5a597b[_0xee37('0x22')](_0x22078a)))||(this[_0xee37('0x10')]=!0x1,this[_0xee37('0x13')](_0x4b98a3),this[_0xee37('0x6')](_0x4b98a3[0x0]||null));}),this[_0xee37('0x7')](_0x19e3a4,_0xee37('0x27'),(_0x20a37d,{isAnnotationTracked:_0x2cb3b9})=>{this[_0xee37('0x48')]&&_0x2cb3b9(this[_0xee37('0x48')])&&(this['_setSelectedAnnotations']([]),this[_0xee37('0x6')](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x1cc82d,_0x34acdf,_0x2a2f0c)=>{_0x2a2f0c||this[_0xee37('0x6')](null);}),this[_0xee37('0x7')](_0x3aa636,'remove',(_0x7087e,_0x45995e)=>{this['_removeAnnotationFromBalloon'](_0x45995e),_0x45995e===this['activeAnnotation']&&this[_0xee37('0x6')](null);}),this[_0xee37('0x7')](_0x31bc57,'change:visibleView',(_0x2988d5,_0x2ffe4d,_0x5a7c15,_0x33a6b3)=>{_0x33a6b3&&this[_0xee37('0x4')](_0x33a6b3);const _0x4477dc=_0x3aa636[_0xee37('0x24')](_0x5a7c15);_0x5a7c15&&_0x4477dc&&(this['listenTo'](_0x5a7c15,_0xee37('0x38'),()=>{_0x31bc57[_0xee37('0x33')]();}),this[_0xee37('0x7')](_0x5a7c15,_0xee37('0x3c'),()=>{this['_closeAnnotation'](_0x4477dc),this[_0xee37('0x49')][_0xee37('0x3f')]['view'][_0xee37('0x0')]();}),this['activeAnnotation']!==_0x4477dc&&this[_0xee37('0x6')](_0x4477dc));}),this[_0xee37('0x7')](this['editor']['ui'],_0xee37('0x2a'),()=>{_0x31bc57[_0xee37('0x12')]&&(_0x3aa636[_0xee37('0x24')](_0x31bc57[_0xee37('0x12')])&&_0x31bc57[_0xee37('0x33')]());}),this[_0xee37('0x7')](this[_0xee37('0x49')][_0xee37('0x3f')]['view'][_0xee37('0x35')],_0xee37('0x15'),()=>{this[_0xee37('0x10')]=!0x0,this[_0xee37('0x1d')][_0xee37('0xc')]();}),this[_0xee37('0x49')]['editing'][_0xee37('0x1f')][_0xee37('0x35')][_0xee37('0x2c')][_0xee37('0x3d')]&&this['editor'][_0xee37('0x3f')][_0xee37('0x1f')][_0xee37('0x0')](),this[_0xee37('0x3e')]=!0x0;}[_0xee37('0x18')](){if(!this['isAttached'])throw new _0x4ca5ac('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x5ec1a0 of this['_addedAnnotations'])this[_0xee37('0x26')](_0x5ec1a0);this[_0xee37('0x4')](),this[_0xee37('0x3e')]=!0x1,this[_0xee37('0x20')]=null;}[_0xee37('0x2d')](){this[_0xee37('0x3e')]&&this[_0xee37('0x18')]();}[_0xee37('0x13')](_0x5ba391){for(const _0x12a492 of this[_0xee37('0x9')])_0x5ba391[_0xee37('0x22')](_0x12a492)||this[_0xee37('0x1d')][_0xee37('0xf')](_0x12a492);for(const _0x1dc0cb of this['annotations'])_0x5ba391[_0xee37('0x22')](_0x1dc0cb)||this[_0xee37('0x26')](_0x1dc0cb);if(this[_0xee37('0x49')]['ui'][_0xee37('0xe')][_0xee37('0x39')])for(const _0x40ee02 of _0x5ba391)this['_addAnnotationToBalloon'](_0x40ee02);this[_0xee37('0x9')]=_0x5ba391;}[_0xee37('0x5')](_0x5e1eb6,_0x199c3c=!0x1){this['_manuallyClosed'][_0xee37('0x19')](_0x5e1eb6)||(this[_0xee37('0x36')][_0xee37('0x19')](_0x5e1eb6)||this[_0xee37('0x1a')][_0xee37('0x1e')](_0x5e1eb6['view'])||(this[_0xee37('0x36')][_0xee37('0x14')](_0x5e1eb6),this['_balloon'][_0xee37('0x14')]({'stackId':_0x5e1eb6[_0xee37('0x1f')]['id'],'view':_0x5e1eb6[_0xee37('0x1f')],'position':{'target':()=>this[_0xee37('0x25')](_0x5e1eb6)}})),_0x199c3c&&this[_0xee37('0x1a')][_0xee37('0x2b')](_0x5e1eb6[_0xee37('0x1f')]['id']));}['_getBalloonTargetForAnnotation'](_0x4dc0fd){const _0x227344=_0x4dc0fd[_0xee37('0x34')],_0x48d5ab=this['editor'][_0xee37('0x3f')][_0xee37('0x1f')],_0x185b14=_0x48d5ab[_0xee37('0x35')][_0xee37('0x2c')][_0xee37('0x2')](),_0x3998ec=_0x48d5ab[_0xee37('0x44')][_0xee37('0x40')](_0x185b14);if(_0x3998ec[_0xee37('0xb')](!0x0),_0x227344){if(_0x227344 instanceof _0x1dda66)return _0x227344;let _0x382a10=[];for(const _0x4d22ef of _0x227344)_0x382a10[_0xee37('0x23')](...(_0x48e515=_0x4d22ef['getClientRects'](),Array[_0xee37('0xd')](_0x48e515)[_0xee37('0x16')](DOMRect['fromRect'])));_0x382a10=function(_0xf8e937){const _0x14bc6f=[];let _0x5a6b58=_0xf8e937[0x0];for(let _0x21bf5a=0x1;_0x21bf5a<_0xf8e937['length'];_0x21bf5a++)F(_0x5a6b58,_0xf8e937[_0x21bf5a])?_0x5a6b58[_0xee37('0x31')]+=_0xf8e937[_0x21bf5a][_0xee37('0x31')]:(_0x14bc6f['push'](_0x5a6b58),_0x5a6b58=_0xf8e937[_0x21bf5a]);return _0x14bc6f[_0xee37('0x23')](_0x5a6b58),_0x14bc6f;}(_0x382a10);const _0x33ea9a=_0x3998ec[_0xee37('0x46')]();return _0x382a10['find'](_0x29ed0d=>_0x29ed0d[_0xee37('0x2f')]<=_0x33ea9a['top']&&_0x29ed0d[_0xee37('0x43')]>=_0x33ea9a[_0xee37('0x43')]&&_0x29ed0d[_0xee37('0x3a')]<=_0x33ea9a['left']&&_0x29ed0d[_0xee37('0x42')]>=_0x33ea9a[_0xee37('0x42')])||_0x382a10[0x0];}var _0x48e515;return _0x4dc0fd['targetRect']||_0x3998ec;}[_0xee37('0x26')](_0xd02a71){this['_addedAnnotations'][_0xee37('0x19')](_0xd02a71)&&this['_balloon'][_0xee37('0x1e')](_0xd02a71[_0xee37('0x1f')])&&(this[_0xee37('0x36')][_0xee37('0xf')](_0xd02a71),this['_balloon'][_0xee37('0x2e')](_0xd02a71[_0xee37('0x1f')]));}[_0xee37('0x45')](_0x1ea8e1){this[_0xee37('0x1d')][_0xee37('0x14')](_0x1ea8e1),this[_0xee37('0x26')](_0x1ea8e1);}}function F(_0x4f5480,_0x35ba30){return _0x4f5480[_0xee37('0x2f')]===_0x35ba30['top']&&_0x4f5480[_0xee37('0x43')]===_0x35ba30['bottom']&&_0x4f5480[_0xee37('0x42')]===_0x35ba30['left'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4380=['find','mousedown','execute','target','requires','esc','attach','context','stop','keydown','removeEventListener','EditorAnnotations','detach','NarrowSidebar','_hideBalloon','blur','_updateBalloonPosition','contains','locale','ready','_annotationToNarrowView','_refreshPositioning','from','annotationType','pluginName','add','stopListening','type','set:container','isAttached','balloonPanelView','pin','addAnnotation','getSidebarItemView','first','_manuallyClosedAnnotationViews','keyCode','getByView','preventDefault','_destroyEditorAnnotationsIntegration','set','cancel','_setSelectedAnnotations','element','number','listenTo','_domEmitter','remove','_editorAnnotations','has','_detachFromContainer','register','length','detachFromDom','_selectedAnnotations','unpin','stopPropagation','get','_refreshPositioningDebounced','focusableElements','refresh','preventClosingBalloon','resize','narrowsidebar-attach-already-attached','destroy','_attachToContainer','includes','southArrowNorthEast','isVisible','focus','_showBalloon','change:height','setActiveAnnotation','hasDomSelection','delete','northArrowSouth','low','off','_integrateWithEditorAnnotations','activeAnnotation','getOrderedSelectedAnnotations','content','northArrowSouthEast','view','rearrange','plugins','high','_attachListeners','_annotations','bodyCollection','values','annotations','_detachListeners','refreshPositioning','isDirty','editors','clear'];(function(_0x2a6294,_0x438071){const _0x17e610=function(_0x1e0039){while(--_0x1e0039){_0x2a6294['push'](_0x2a6294['shift']());}};_0x17e610(++_0x438071);}(_0x4380,0x116));const _0x17e6=function(_0x2a6294,_0x438071){_0x2a6294=_0x2a6294-0x0;let _0x17e610=_0x4380[_0x2a6294];return _0x17e610;};import{ContextPlugin as _0x32ec45,Context as _0x572eb2}from'ckeditor5/src/core';import _0x2c9ae3 from'./annotationsuis';import _0x11478e from'./sidebar';import _0x4b0c1e from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x3ef573,BodyCollection as _0xca30ee}from'ckeditor5/src/ui';import{CKEditorError as _0x3fb1ce,DomEmitterMixin as _0x3e3cf0,keyCodes as _0x1cf54e,Collection as _0x104934}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x37612f}from'lodash-es';import _0x186fde from'./editorannotations';export default class s extends _0x32ec45{static get[_0x17e6('0x11')](){return[_0x11478e,_0x2c9ae3];}static get[_0x17e6('0x25')](){return _0x17e6('0x1a');}constructor(_0x29cbe5){super(_0x29cbe5),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x17e6('0x3b')]=Object['create'](_0x3e3cf0),this[_0x17e6('0x21')]=new Map(),this['set'](_0x17e6('0x5c'),null),this[_0x17e6('0x7')]=null,this[_0x17e6('0x43')]=[],this[_0x17e6('0x3d')]=new _0x104934(),this[_0x17e6('0x47')]=_0x37612f(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins'][_0x17e6('0x46')](_0x2c9ae3)[_0x17e6('0x40')]('narrowSidebar',this),this[_0x17e6('0x5')]=new _0xca30ee(this[_0x17e6('0x14')]['locale']),this[_0x17e6('0x2b')]=new _0x3ef573(this['context'][_0x17e6('0x1f')]),this[_0x17e6('0x5')]['attachToDom'](),this[_0x17e6('0x5')][_0x17e6('0x26')](this[_0x17e6('0x2b')]);}[_0x17e6('0x13')](_0x7b780f){this['annotations']=_0x7b780f;const _0x54a706=this['context']['plugins']['get'](_0x11478e),_0x130058=this[_0x17e6('0x2b')];if(_0x54a706[_0x17e6('0x4')]=_0x7b780f,this[_0x17e6('0x2a')])throw new _0x3fb1ce(_0x17e6('0x4c'),this);this[_0x17e6('0x2a')]=!0x0,this[_0x17e6('0x3a')](_0x54a706,_0x17e6('0x29'),()=>{this['detach'](),this[_0x17e6('0x3a')](_0x54a706,'change:container',_0x59a98a=>{_0x59a98a[_0x17e6('0x5a')](),this[_0x17e6('0x13')](_0x7b780f);});}),_0x54a706[_0x17e6('0x4e')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2d52e1=_0x37124b=>{const _0x3a5e0d=new _0x4b0c1e(this['context'][_0x17e6('0x1f')]);_0x54a706[_0x17e6('0x2d')](_0x37124b,_0x3a5e0d),this['_annotationToNarrowView'][_0x17e6('0x35')](_0x37124b,_0x3a5e0d),_0x3a5e0d['bind'](_0x17e6('0xa'),_0x17e6('0x24'),_0x17e6('0x39'))['to'](_0x37124b[_0x17e6('0x60')],_0x17e6('0xa'),_0x17e6('0x28'),_0x17e6('0x41')),_0x3a5e0d['on'](_0x17e6('0xf'),()=>{this[_0x17e6('0x30')]['clear'](),_0x130058[_0x17e6('0x5e')]['first']!==_0x37124b['view']?(this[_0x17e6('0x53')](_0x37124b),_0x37124b[_0x17e6('0x60')][_0x17e6('0x38')][_0x17e6('0x52')](),this['setActiveAnnotation'](_0x37124b)):this[_0x17e6('0x55')](null);});};for(const _0x58d426 of _0x7b780f)_0x2d52e1(_0x58d426);this[_0x17e6('0x3a')](_0x7b780f,'add',(_0x2149d9,_0x57bf66)=>{_0x2d52e1(_0x57bf66);}),this[_0x17e6('0x3a')](_0x7b780f,_0x17e6('0x3c'),(_0x150729,_0x2887fc,_0x4e45da)=>{this[_0x17e6('0x21')][_0x17e6('0x46')](_0x2887fc)[_0x17e6('0x4d')](),this[_0x17e6('0x21')][_0x17e6('0x57')](_0x2887fc),_0x54a706[_0x17e6('0x0')]({'removedAnnotation':_0x2887fc,'previousAnnotation':_0x7b780f[_0x17e6('0x46')](_0x4e45da-0x1),'nextAnnotation':_0x7b780f[_0x17e6('0x46')](_0x4e45da+0x1)}),_0x2887fc===this[_0x17e6('0x5c')]&&this[_0x17e6('0x55')](null);},{'priority':_0x17e6('0x59')}),this[_0x17e6('0x3a')](_0x7b780f,_0x17e6('0x52'),(_0x26dc13,_0x105c43)=>{this[_0x17e6('0x55')](_0x105c43);}),this[_0x17e6('0x3a')](_0x7b780f,'blur',()=>{this[_0x17e6('0x55')](null);}),this[_0x17e6('0x3b')][_0x17e6('0x3a')](document,_0x17e6('0x16'),(_0x1145da,_0x5019e6)=>{_0x5019e6[_0x17e6('0x31')]===_0x1cf54e[_0x17e6('0x12')]&&_0x130058[_0x17e6('0x51')]&&(this['_manuallyClosedAnnotationViews'][_0x17e6('0x26')](_0x130058['content']['first']),this['_hideBalloon'](),_0x5019e6[_0x17e6('0x45')](),_0x5019e6[_0x17e6('0x33')]());}),this['_domEmitter']['listenTo'](document,_0x17e6('0xe'),(_0x3fb343,_0x106545)=>{const _0x56271d=_0x106545[_0x17e6('0x10')];_0x130058[_0x17e6('0x51')]&&_0x130058[_0x17e6('0x38')]['contains'](_0x56271d)||_0x54a706[_0x17e6('0x60')][_0x17e6('0x38')][_0x17e6('0x1e')](_0x56271d)||_0x3fb343['preventClosingBalloon']||this['activeAnnotation']&&this[_0x17e6('0x5c')][_0x17e6('0x48')][_0x17e6('0xd')](_0x19086b=>_0x19086b[_0x17e6('0x1e')](_0x56271d))||(this['_manuallyClosedAnnotationViews'][_0x17e6('0xc')](),this[_0x17e6('0x1b')](),this['setActiveAnnotation'](null));});const _0xe1fe32=this[_0x17e6('0x14')]instanceof _0x572eb2?this[_0x17e6('0x14')][_0x17e6('0xb')]:new _0x104934([this[_0x17e6('0x14')]]);for(const _0x363075 of _0xe1fe32)this[_0x17e6('0x5b')](_0x363075);this[_0x17e6('0x3a')](_0xe1fe32,'add',(_0xecae46,_0x4e657e)=>{this['listenTo'](_0x4e657e,_0x17e6('0x20'),()=>{this[_0x17e6('0x5b')](_0x4e657e);});}),this[_0x17e6('0x3a')](_0xe1fe32,'remove',(_0x1b2fd3,_0x148b1b)=>{_0x148b1b[_0x17e6('0x1')]['has'](_0x17e6('0x18'))&&this[_0x17e6('0x34')](_0x148b1b['plugins'][_0x17e6('0x46')](_0x17e6('0x18')));}),window['addEventListener'](_0x17e6('0x4b'),this[_0x17e6('0x47')]),this['_refreshPositioning']();}[_0x17e6('0x55')](_0x253465){if(_0x253465===this[_0x17e6('0x5c')])return;const _0x16eb58=this['context'][_0x17e6('0x1')][_0x17e6('0x46')](_0x11478e);if(_0x16eb58[_0x17e6('0x49')]({'blurredAnnotation':this[_0x17e6('0x5c')],'activatedAnnotation':_0x253465,'disableAnimationOnActivatedAnnotation':!0x0}),_0x253465)_0x16eb58[_0x17e6('0x2e')](_0x253465)?this[_0x17e6('0x53')](_0x253465):this[_0x17e6('0x1b')]();else this[_0x17e6('0x1b')]();this['activeAnnotation']=_0x253465;}[_0x17e6('0x19')](){if(!this[_0x17e6('0x2a')])throw new _0x3fb1ce('narrowsidebar-detach-not-attached',this);this[_0x17e6('0x55')](null);const _0x4521d2=this[_0x17e6('0x14')]['plugins']['get'](_0x11478e);this[_0x17e6('0x1b')](),Array[_0x17e6('0x23')](this[_0x17e6('0x21')][_0x17e6('0x6')](),_0x3dacdf=>_0x3dacdf[_0x17e6('0x4d')]()),this[_0x17e6('0x21')][_0x17e6('0xc')](),_0x4521d2[_0x17e6('0x3f')](this[_0x17e6('0x7')]),this[_0x17e6('0x27')](),this['_domEmitter'][_0x17e6('0x27')](),this[_0x17e6('0x14')]instanceof _0x572eb2&&this['stopListening'](this[_0x17e6('0x14')][_0x17e6('0xb')]);for(const _0x140432 of Array[_0x17e6('0x23')](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x140432);window[_0x17e6('0x17')](_0x17e6('0x4b'),this[_0x17e6('0x47')]),this[_0x17e6('0x47')][_0x17e6('0x36')](),this[_0x17e6('0x43')]=[],this[_0x17e6('0x2a')]=!0x1,this['annotations']=null;}[_0x17e6('0x4d')](){this[_0x17e6('0x2a')]&&this[_0x17e6('0x19')](),this[_0x17e6('0x5')][_0x17e6('0x42')]();}[_0x17e6('0x5b')](_0x419007){const _0x2528d3=_0x419007[_0x17e6('0x1')][_0x17e6('0x46')](_0x186fde),_0x114ae2=this[_0x17e6('0x14')][_0x17e6('0x1')][_0x17e6('0x46')](_0x11478e),_0x4de010=this[_0x17e6('0x7')],_0x5ada98=this[_0x17e6('0x2b')],_0x20e484=()=>{const _0x4dd0c4=_0x2528d3[_0x17e6('0x5d')]({'annotations':this['annotations'],'activeAnnotation':this[_0x17e6('0x5c')]});this[_0x17e6('0x37')](_0x4dd0c4),this[_0x17e6('0x55')](_0x4dd0c4[0x0]||null);};this[_0x17e6('0x3a')](_0x2528d3,_0x17e6('0x49'),_0x20e484),this[_0x17e6('0x3a')](_0x2528d3,_0x17e6('0x1c'),(_0x402e2b,{isAnnotationTracked:_0x44e08d})=>{this[_0x17e6('0x5c')]&&_0x44e08d(this[_0x17e6('0x5c')])&&(this[_0x17e6('0x37')]([]),this[_0x17e6('0x55')](null));}),this[_0x17e6('0x3a')](_0x2528d3,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x17e6('0x3a')](_0x4de010,_0x17e6('0x1c'),_0x1ada9d=>{_0x2528d3[_0x17e6('0x56')]()&&_0x1ada9d[_0x17e6('0x15')]();},{'priority':_0x17e6('0x2')}),this['listenTo'](this['_domEmitter'],_0x17e6('0xe'),(_0x3883a5,_0x194d89)=>{const _0x17fb68=_0x194d89[_0x17e6('0x10')];_0x5ada98[_0x17e6('0x51')]&&_0x5ada98[_0x17e6('0x38')][_0x17e6('0x1e')](_0x17fb68)||_0x114ae2['view']['element'][_0x17e6('0x1e')](_0x17fb68)||this[_0x17e6('0x5c')]&&_0x2528d3[_0x17e6('0x56')]()&&(_0x20e484(),_0x3883a5[_0x17e6('0x4a')]=!0x0);},{'priority':'high'}),this[_0x17e6('0x3d')]['add'](_0x2528d3);}['_destroyEditorAnnotationsIntegration'](_0xf9977){_0xf9977&&(this[_0x17e6('0x27')](_0xf9977),this[_0x17e6('0x3d')]['remove'](_0xf9977));}[_0x17e6('0x37')](_0x276591){for(const _0x37585e of this[_0x17e6('0x43')])_0x276591[_0x17e6('0x4f')](_0x37585e)||this['_manuallyClosedAnnotationViews'][_0x17e6('0x57')](_0x37585e['view']);this[_0x17e6('0x43')]=_0x276591;}[_0x17e6('0x22')](){const _0x1f2a89=this[_0x17e6('0x2b')];this[_0x17e6('0x7')][_0x17e6('0x9')](),_0x1f2a89['isVisible']&&this[_0x17e6('0x1d')]();}[_0x17e6('0x53')](_0x4734f1){if(this[_0x17e6('0x30')][_0x17e6('0x3e')](_0x4734f1[_0x17e6('0x60')]))return;const _0x290734=this[_0x17e6('0x2b')][_0x17e6('0x5e')][_0x17e6('0x2f')];_0x290734!==_0x4734f1[_0x17e6('0x60')]?(_0x290734&&this[_0x17e6('0x8')](_0x290734),this[_0x17e6('0x3')](_0x4734f1[_0x17e6('0x60')]),this[_0x17e6('0x2b')]['content'][_0x17e6('0xc')](),this['balloonPanelView']['content']['add'](_0x4734f1[_0x17e6('0x60')]),this[_0x17e6('0x1d')]()):this['_updateBalloonPosition']();}[_0x17e6('0x1d')](){const _0x598a0f=this[_0x17e6('0x2b')][_0x17e6('0x5e')]['first'],_0x58362a=_0x598a0f&&this[_0x17e6('0x7')][_0x17e6('0x32')](_0x598a0f);if(!_0x58362a||!this[_0x17e6('0x21')]['has'](_0x58362a))return;const _0x4926be=this[_0x17e6('0x21')][_0x17e6('0x46')](_0x58362a)[_0x17e6('0x38')],_0x41e415=function(){const _0x32d8f7=_0x3ef573['defaultPositions'];return[_0x32d8f7[_0x17e6('0x50')],_0x32d8f7[_0x17e6('0x5f')],_0x32d8f7['southArrowNorth'],_0x32d8f7[_0x17e6('0x58')],_0x32d8f7['southArrowNorthWest'],_0x32d8f7['northArrowSouthWest']];}();this[_0x17e6('0x2b')][_0x17e6('0x2c')]({'target':_0x4926be,'positions':_0x41e415});}[_0x17e6('0x1b')](){const _0x11283d=this[_0x17e6('0x2b')],_0x180e78=_0x11283d['content'][_0x17e6('0x2f')];_0x180e78&&(this['_detachListeners'](_0x180e78),_0x11283d[_0x17e6('0x44')](),_0x11283d[_0x17e6('0x5e')][_0x17e6('0xc')]());}[_0x17e6('0x3')](_0x54ceac){this[_0x17e6('0x3a')](_0x54ceac,_0x17e6('0x54'),()=>this[_0x17e6('0x1d')]()),this[_0x17e6('0x3a')](_0x54ceac,'Esc',(_0x1e2f1a,_0x55f581)=>{this[_0x17e6('0x30')][_0x17e6('0x26')](_0x54ceac),this[_0x17e6('0x1b')](),_0x55f581();});}[_0x17e6('0x8')](_0x58db7f){this[_0x17e6('0x27')](_0x58db7f);}}
23
+ const _0xdbb6=['plugins','stopListening','clear','annotations','listenTo','stop','southArrowNorthWest','_selectedAnnotations','_showBalloon','create','find','element','isAttached','keydown','view','destroy','off','_attachToContainer','narrowsidebar-attach-already-attached','requires','narrowSidebar','_manuallyClosedAnnotationViews','northArrowSouthEast','refreshPositioning','_hideBalloon','_annotations','has','values','stopPropagation','EditorAnnotations','activeAnnotation','_refreshPositioning','init','hasDomSelection','_refreshPositioningDebounced','focus','change:height','delete','Esc','content','_editorAnnotations','narrowsidebar-detach-not-attached','detachFromDom','balloonPanelView','addAnnotation','mousedown','get','blur','add','set','isVisible','NarrowSidebar','defaultPositions','bind','preventDefault','contains','focusableElements','_updateBalloonPosition','_setSelectedAnnotations','register','resize','high','_attachListeners','setActiveAnnotation','from','target','detach','preventClosingBalloon','uiUpdate','low','locale','_annotationToNarrowView','refresh','southArrowNorth','_integrateWithEditorAnnotations','isDirty','_domEmitter','number','remove','esc','southArrowNorthEast','attach','_detachListeners','annotationType','cancel','context','_destroyEditorAnnotationsIntegration','length','change:container','first','bodyCollection','keyCode'];(function(_0x31adaa,_0xdbb601){const _0x4e1197=function(_0x4916ca){while(--_0x4916ca){_0x31adaa['push'](_0x31adaa['shift']());}};_0x4e1197(++_0xdbb601);}(_0xdbb6,0x134));const _0x4e11=function(_0x31adaa,_0xdbb601){_0x31adaa=_0x31adaa-0x0;let _0x4e1197=_0xdbb6[_0x31adaa];return _0x4e1197;};import{ContextPlugin as _0x4383e1,Context as _0x360811}from'ckeditor5/src/core';import _0x1d0aab from'./annotationsuis';import _0x525883 from'./sidebar';import _0x847a64 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x35ae86,BodyCollection as _0x170d9e}from'ckeditor5/src/ui';import{CKEditorError as _0x46865d,DomEmitterMixin as _0x58cf32,keyCodes as _0x362211,Collection as _0x21be6e}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1a3432}from'lodash-es';import _0xe0d9e5 from'./editorannotations';export default class s extends _0x4383e1{static get[_0x4e11('0x4f')](){return[_0x525883,_0x1d0aab];}static get['pluginName'](){return _0x4e11('0x13');}constructor(_0xe94f49){super(_0xe94f49),this[_0x4e11('0x48')]=!0x1,this[_0x4e11('0x51')]=new Set(),this[_0x4e11('0x2c')]=Object[_0x4e11('0x45')](_0x58cf32),this[_0x4e11('0x27')]=new Map(),this['set']('activeAnnotation',null),this[_0x4e11('0x3f')]=null,this[_0x4e11('0x43')]=[],this[_0x4e11('0x8')]=new _0x21be6e(),this[_0x4e11('0x2')]=_0x1a3432(()=>{this[_0x4e11('0x5b')]();},0xfa,{'leading':!0x1});}[_0x4e11('0x0')](){this[_0x4e11('0x35')][_0x4e11('0x3c')][_0x4e11('0xe')](_0x1d0aab)[_0x4e11('0x1b')](_0x4e11('0x50'),this),this['bodyCollection']=new _0x170d9e(this[_0x4e11('0x35')][_0x4e11('0x26')]),this[_0x4e11('0xb')]=new _0x35ae86(this[_0x4e11('0x35')][_0x4e11('0x26')]),this['bodyCollection']['attachToDom'](),this[_0x4e11('0x3a')][_0x4e11('0x10')](this[_0x4e11('0xb')]);}[_0x4e11('0x31')](_0x44be61){this[_0x4e11('0x3f')]=_0x44be61;const _0x3e3b7e=this[_0x4e11('0x35')][_0x4e11('0x3c')]['get'](_0x525883),_0x2fc2fc=this[_0x4e11('0xb')];if(_0x3e3b7e[_0x4e11('0x55')]=_0x44be61,this[_0x4e11('0x48')])throw new _0x46865d(_0x4e11('0x4e'),this);this['isAttached']=!0x0,this[_0x4e11('0x40')](_0x3e3b7e,'set:container',()=>{this[_0x4e11('0x22')](),this[_0x4e11('0x40')](_0x3e3b7e,_0x4e11('0x38'),_0x11994f=>{_0x11994f[_0x4e11('0x4c')](),this[_0x4e11('0x31')](_0x44be61);});}),_0x3e3b7e[_0x4e11('0x4d')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x41b600=_0x2a5262=>{const _0x76610d=new _0x847a64(this[_0x4e11('0x35')]['locale']);_0x3e3b7e[_0x4e11('0xc')](_0x2a5262,_0x76610d),this['_annotationToNarrowView'][_0x4e11('0x11')](_0x2a5262,_0x76610d),_0x76610d[_0x4e11('0x15')](_0x4e11('0x2b'),_0x4e11('0x33'),_0x4e11('0x2d'))['to'](_0x2a5262[_0x4e11('0x4a')],_0x4e11('0x2b'),'type',_0x4e11('0x37')),_0x76610d['on']('execute',()=>{this[_0x4e11('0x51')][_0x4e11('0x3e')](),_0x2fc2fc[_0x4e11('0x7')]['first']!==_0x2a5262[_0x4e11('0x4a')]?(this[_0x4e11('0x44')](_0x2a5262),_0x2a5262[_0x4e11('0x4a')][_0x4e11('0x47')]['focus'](),this[_0x4e11('0x1f')](_0x2a5262)):this[_0x4e11('0x1f')](null);});};for(const _0x54d1d1 of _0x44be61)_0x41b600(_0x54d1d1);this[_0x4e11('0x40')](_0x44be61,_0x4e11('0x10'),(_0x343598,_0x41d012)=>{_0x41b600(_0x41d012);}),this['listenTo'](_0x44be61,_0x4e11('0x2e'),(_0x48ec88,_0x3d873f,_0x76abf7)=>{this[_0x4e11('0x27')][_0x4e11('0xe')](_0x3d873f)[_0x4e11('0x4b')](),this['_annotationToNarrowView'][_0x4e11('0x5')](_0x3d873f),_0x3e3b7e['rearrange']({'removedAnnotation':_0x3d873f,'previousAnnotation':_0x44be61[_0x4e11('0xe')](_0x76abf7-0x1),'nextAnnotation':_0x44be61['get'](_0x76abf7+0x1)}),_0x3d873f===this[_0x4e11('0x5a')]&&this[_0x4e11('0x1f')](null);},{'priority':_0x4e11('0x25')}),this['listenTo'](_0x44be61,_0x4e11('0x3'),(_0x12583c,_0x56e3de)=>{this[_0x4e11('0x1f')](_0x56e3de);}),this['listenTo'](_0x44be61,_0x4e11('0xf'),()=>{this[_0x4e11('0x1f')](null);}),this['_domEmitter'][_0x4e11('0x40')](document,_0x4e11('0x49'),(_0x574d4a,_0x184c5d)=>{_0x184c5d[_0x4e11('0x3b')]===_0x362211[_0x4e11('0x2f')]&&_0x2fc2fc[_0x4e11('0x12')]&&(this[_0x4e11('0x51')][_0x4e11('0x10')](_0x2fc2fc[_0x4e11('0x7')]['first']),this[_0x4e11('0x54')](),_0x184c5d[_0x4e11('0x58')](),_0x184c5d[_0x4e11('0x16')]());}),this['_domEmitter'][_0x4e11('0x40')](document,'mousedown',(_0x45cfba,_0x28bc51)=>{const _0x5580cd=_0x28bc51['target'];_0x2fc2fc[_0x4e11('0x12')]&&_0x2fc2fc['element'][_0x4e11('0x17')](_0x5580cd)||_0x3e3b7e['view'][_0x4e11('0x47')][_0x4e11('0x17')](_0x5580cd)||_0x45cfba[_0x4e11('0x23')]||this[_0x4e11('0x5a')]&&this['activeAnnotation'][_0x4e11('0x18')][_0x4e11('0x46')](_0x3b393a=>_0x3b393a['contains'](_0x5580cd))||(this['_manuallyClosedAnnotationViews'][_0x4e11('0x3e')](),this[_0x4e11('0x54')](),this[_0x4e11('0x1f')](null));});const _0x45b12a=this['context']instanceof _0x360811?this[_0x4e11('0x35')]['editors']:new _0x21be6e([this[_0x4e11('0x35')]]);for(const _0x3d75a9 of _0x45b12a)this[_0x4e11('0x2a')](_0x3d75a9);this[_0x4e11('0x40')](_0x45b12a,_0x4e11('0x10'),(_0x523c65,_0x853599)=>{this[_0x4e11('0x40')](_0x853599,'ready',()=>{this[_0x4e11('0x2a')](_0x853599);});}),this[_0x4e11('0x40')](_0x45b12a,'remove',(_0x17804f,_0x2d8c28)=>{_0x2d8c28[_0x4e11('0x3c')][_0x4e11('0x56')](_0x4e11('0x59'))&&this['_destroyEditorAnnotationsIntegration'](_0x2d8c28['plugins'][_0x4e11('0xe')](_0x4e11('0x59')));}),window['addEventListener'](_0x4e11('0x1c'),this[_0x4e11('0x2')]),this[_0x4e11('0x5b')]();}[_0x4e11('0x1f')](_0x5131c6){if(_0x5131c6===this[_0x4e11('0x5a')])return;const _0x3907e1=this['context']['plugins']['get'](_0x525883);if(_0x3907e1[_0x4e11('0x28')]({'blurredAnnotation':this[_0x4e11('0x5a')],'activatedAnnotation':_0x5131c6,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5131c6)_0x3907e1['getSidebarItemView'](_0x5131c6)?this[_0x4e11('0x44')](_0x5131c6):this[_0x4e11('0x54')]();else this[_0x4e11('0x54')]();this[_0x4e11('0x5a')]=_0x5131c6;}[_0x4e11('0x22')](){if(!this[_0x4e11('0x48')])throw new _0x46865d(_0x4e11('0x9'),this);this['setActiveAnnotation'](null);const _0x1791e7=this['context']['plugins'][_0x4e11('0xe')](_0x525883);this['_hideBalloon'](),Array[_0x4e11('0x20')](this['_annotationToNarrowView'][_0x4e11('0x57')](),_0xb8c9c3=>_0xb8c9c3[_0x4e11('0x4b')]()),this['_annotationToNarrowView'][_0x4e11('0x3e')](),_0x1791e7['_detachFromContainer'](this[_0x4e11('0x3f')]),this['stopListening'](),this[_0x4e11('0x2c')][_0x4e11('0x3d')](),this[_0x4e11('0x35')]instanceof _0x360811&&this[_0x4e11('0x3d')](this[_0x4e11('0x35')]['editors']);for(const _0x4b1920 of Array[_0x4e11('0x20')](this[_0x4e11('0x8')]))this['_destroyEditorAnnotationsIntegration'](_0x4b1920);window['removeEventListener'](_0x4e11('0x1c'),this[_0x4e11('0x2')]),this['_refreshPositioningDebounced'][_0x4e11('0x34')](),this[_0x4e11('0x43')]=[],this['isAttached']=!0x1,this['annotations']=null;}[_0x4e11('0x4b')](){this[_0x4e11('0x48')]&&this[_0x4e11('0x22')](),this[_0x4e11('0x3a')][_0x4e11('0xa')]();}['_integrateWithEditorAnnotations'](_0xe1be85){const _0x50d279=_0xe1be85[_0x4e11('0x3c')][_0x4e11('0xe')](_0xe0d9e5),_0x1ab4af=this[_0x4e11('0x35')][_0x4e11('0x3c')][_0x4e11('0xe')](_0x525883),_0x20b889=this[_0x4e11('0x3f')],_0x1e8d05=this[_0x4e11('0xb')],_0x175c91=()=>{const _0x3e1572=_0x50d279['getOrderedSelectedAnnotations']({'annotations':this[_0x4e11('0x3f')],'activeAnnotation':this['activeAnnotation']});this[_0x4e11('0x1a')](_0x3e1572),this['setActiveAnnotation'](_0x3e1572[0x0]||null);};this[_0x4e11('0x40')](_0x50d279,_0x4e11('0x28'),_0x175c91),this[_0x4e11('0x40')](_0x50d279,_0x4e11('0xf'),(_0x29faab,{isAnnotationTracked:_0x37a90c})=>{this[_0x4e11('0x5a')]&&_0x37a90c(this['activeAnnotation'])&&(this[_0x4e11('0x1a')]([]),this[_0x4e11('0x1f')](null));}),this[_0x4e11('0x40')](_0x50d279,_0x4e11('0x24'),()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x20b889,_0x4e11('0xf'),_0xe0d005=>{_0x50d279[_0x4e11('0x1')]()&&_0xe0d005[_0x4e11('0x41')]();},{'priority':_0x4e11('0x1d')}),this[_0x4e11('0x40')](this['_domEmitter'],_0x4e11('0xd'),(_0x336488,_0x5b280a)=>{const _0x59829f=_0x5b280a[_0x4e11('0x21')];_0x1e8d05['isVisible']&&_0x1e8d05[_0x4e11('0x47')][_0x4e11('0x17')](_0x59829f)||_0x1ab4af[_0x4e11('0x4a')][_0x4e11('0x47')][_0x4e11('0x17')](_0x59829f)||this[_0x4e11('0x5a')]&&_0x50d279[_0x4e11('0x1')]()&&(_0x175c91(),_0x336488['preventClosingBalloon']=!0x0);},{'priority':_0x4e11('0x1d')}),this[_0x4e11('0x8')][_0x4e11('0x10')](_0x50d279);}[_0x4e11('0x36')](_0x58a322){_0x58a322&&(this[_0x4e11('0x3d')](_0x58a322),this[_0x4e11('0x8')][_0x4e11('0x2e')](_0x58a322));}[_0x4e11('0x1a')](_0x4b0ed1){for(const _0x36362c of this[_0x4e11('0x43')])_0x4b0ed1['includes'](_0x36362c)||this['_manuallyClosedAnnotationViews'][_0x4e11('0x5')](_0x36362c[_0x4e11('0x4a')]);this[_0x4e11('0x43')]=_0x4b0ed1;}[_0x4e11('0x5b')](){const _0x2299bb=this[_0x4e11('0xb')];this[_0x4e11('0x3f')][_0x4e11('0x53')](),_0x2299bb[_0x4e11('0x12')]&&this[_0x4e11('0x19')]();}['_showBalloon'](_0x523982){if(this['_manuallyClosedAnnotationViews'][_0x4e11('0x56')](_0x523982[_0x4e11('0x4a')]))return;const _0x5eb3e6=this['balloonPanelView'][_0x4e11('0x7')][_0x4e11('0x39')];_0x5eb3e6!==_0x523982[_0x4e11('0x4a')]?(_0x5eb3e6&&this[_0x4e11('0x32')](_0x5eb3e6),this[_0x4e11('0x1e')](_0x523982[_0x4e11('0x4a')]),this[_0x4e11('0xb')][_0x4e11('0x7')][_0x4e11('0x3e')](),this[_0x4e11('0xb')][_0x4e11('0x7')][_0x4e11('0x10')](_0x523982[_0x4e11('0x4a')]),this[_0x4e11('0x19')]()):this[_0x4e11('0x19')]();}['_updateBalloonPosition'](){const _0x12cd67=this['balloonPanelView'][_0x4e11('0x7')][_0x4e11('0x39')],_0x5a51bb=_0x12cd67&&this[_0x4e11('0x3f')]['getByView'](_0x12cd67);if(!_0x5a51bb||!this[_0x4e11('0x27')][_0x4e11('0x56')](_0x5a51bb))return;const _0x4aaa93=this[_0x4e11('0x27')]['get'](_0x5a51bb)[_0x4e11('0x47')],_0x5b6f68=function(){const _0x196fe2=_0x35ae86[_0x4e11('0x14')];return[_0x196fe2[_0x4e11('0x30')],_0x196fe2[_0x4e11('0x52')],_0x196fe2[_0x4e11('0x29')],_0x196fe2['northArrowSouth'],_0x196fe2[_0x4e11('0x42')],_0x196fe2['northArrowSouthWest']];}();this['balloonPanelView']['pin']({'target':_0x4aaa93,'positions':_0x5b6f68});}['_hideBalloon'](){const _0x38116a=this[_0x4e11('0xb')],_0x7f9772=_0x38116a[_0x4e11('0x7')][_0x4e11('0x39')];_0x7f9772&&(this[_0x4e11('0x32')](_0x7f9772),_0x38116a['unpin'](),_0x38116a[_0x4e11('0x7')][_0x4e11('0x3e')]());}[_0x4e11('0x1e')](_0x50e122){this['listenTo'](_0x50e122,_0x4e11('0x4'),()=>this[_0x4e11('0x19')]()),this[_0x4e11('0x40')](_0x50e122,_0x4e11('0x6'),(_0x4c10cf,_0x5c9bc9)=>{this[_0x4e11('0x51')]['add'](_0x50e122),this[_0x4e11('0x54')](),_0x5c9bc9();});}[_0x4e11('0x32')](_0x2e38fe){this[_0x4e11('0x3d')](_0x2e38fe);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2af5=['setContainer','stopListening','_alignBeforeItem','_createSidebarView','change:top','_getItemBefore','remove','change:targetRect','define','_recalculateBuffer','_spaceBetweenItems','_alignForBottomChange','object','_updateLastItem','getSidebarItemView','minHeight','view','list','_activeAnnotation','bind','element','nodeType','_annotations','class','last','push','_alignToTargetRect','init','_getMaxAvailableTop','appendChild','listenTo','_annotationToSidebarItemView','sidebar-setcontainer-invalid-element','_getTargetTop','_detachFromContainer','container','content','max','render','updateHeight','unbind','sidebar-attachtocontainer-missing-container','set','refresh','_getItemAfter','sidebar.preventScrollOutOfView','_alignForTopChange','rearrange','isAnimationDisabled','_recalculate','top','_destroySidebarItemView','destroy','add','_setItemTop','locale','config','get','bottom','change:_lastItem','_alignAfterItem','targetRect','context','isActive','_sidebarItemViewToAnnotation','delete','Sidebar','change:bottom','_lastItem','sidebar.container','length','_attachToContainer'];(function(_0x46fdb1,_0x2af59d){const _0x47aeb0=function(_0x107070){while(--_0x107070){_0x46fdb1['push'](_0x46fdb1['shift']());}};_0x47aeb0(++_0x2af59d);}(_0x2af5,0x18e));const _0x47ae=function(_0x46fdb1,_0x2af59d){_0x46fdb1=_0x46fdb1-0x0;let _0x47aeb0=_0x2af5[_0x46fdb1];return _0x47aeb0;};import{ContextPlugin as _0x4f3db3}from'ckeditor5/src/core';import{Rect as _0x30e527,CKEditorError as _0x68a7a4}from'ckeditor5/src/utils';import _0x420efe from'./view/sidebarview';import _0xde322a from'./view/sidebaritemview';export default class z extends _0x4f3db3{static get['pluginName'](){return _0x47ae('0x1c');}constructor(_0x365cac){super(_0x365cac),this[_0x47ae('0x4')]('_lastItem',void 0x0),this[_0x47ae('0x32')]=this['_createSidebarView'](),this[_0x47ae('0x4')]('container',null),this[_0x47ae('0x2c')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x47ae('0x41')]=new Map(),this[_0x47ae('0x18')][_0x47ae('0x12')][_0x47ae('0x2a')](_0x47ae('0x7'),!0x1),this[_0x47ae('0x38')]=null,this[_0x47ae('0x34')]=null,this[_0x47ae('0x2b')]=[];}[_0x47ae('0x3d')](){const _0x5373f5=this[_0x47ae('0x18')][_0x47ae('0x12')][_0x47ae('0x13')](_0x47ae('0x1f'));_0x5373f5&&this[_0x47ae('0x22')](_0x5373f5);}[_0x47ae('0x22')](_0x566df9){if(!y(_0x566df9))throw new _0x68a7a4(_0x47ae('0x42'));this[_0x47ae('0x45')]=_0x566df9;}[_0x47ae('0x21')]({viewClass:_0x5b38b7='',spaceBetweenItems:_0x563857=0x19}={}){if(!y(this[_0x47ae('0x45')]))throw new _0x68a7a4(_0x47ae('0x3'),this);this[_0x47ae('0x45')][_0x47ae('0x3f')](this[_0x47ae('0x32')][_0x47ae('0x36')]),this[_0x47ae('0x32')]['class']=_0x5b38b7,this[_0x47ae('0x2c')]=_0x563857;}[_0x47ae('0x9')]({removedAnnotation:_0x8595ce,previousAnnotation:_0xb60b9a,nextAnnotation:_0x52f929}){const _0x9b5b3c=this['getSidebarItemView'](_0x8595ce);this[_0x47ae('0x32')][_0x47ae('0x33')][_0x47ae('0x28')](_0x9b5b3c),this[_0x47ae('0xd')](_0x8595ce),_0xb60b9a&&this[_0x47ae('0x3c')](this[_0x47ae('0x30')](_0xb60b9a)),_0x52f929&&this[_0x47ae('0x3c')](this['getSidebarItemView'](_0x52f929)),this[_0x47ae('0x2f')]();}[_0x47ae('0x5')]({blurredAnnotation:_0x2701f4,activatedAnnotation:_0x13a058,disableAnimationOnActivatedAnnotation:_0x52aa3b}){if(this[_0x47ae('0x34')]=_0x13a058,_0x2701f4){_0x2701f4['isActive']=!0x1;const _0x20df8f=this[_0x47ae('0x30')](_0x2701f4);_0x20df8f&&_0x52aa3b&&(_0x20df8f[_0x47ae('0xa')]=!0x1);}if(_0x13a058){const _0x5b02ca=this[_0x47ae('0x30')](_0x13a058);_0x5b02ca&&(_0x13a058[_0x47ae('0x19')]=!0x0,_0x52aa3b&&(_0x5b02ca['isAnimationDisabled']=!0x0,_0x5b02ca[_0x47ae('0xc')]+=0x1),this[_0x47ae('0x3c')](_0x5b02ca));}}[_0x47ae('0x44')](_0x305f78){if(this[_0x47ae('0x32')][_0x47ae('0x36')][_0x47ae('0x28')](),_0x305f78)for(const _0x36e725 of _0x305f78)this[_0x47ae('0xd')](_0x36e725);this['view']['list']['clear'](),this['view'][_0x47ae('0x39')]='',this[_0x47ae('0x1e')]=null;}['addAnnotation'](_0xb89e12,_0x5bae11){_0x5bae11||(_0x5bae11=_0xb89e12[_0x47ae('0x32')]);const _0x26e46a=new _0xde322a(this[_0x47ae('0x18')][_0x47ae('0x11')]);this[_0x47ae('0x1a')][_0x47ae('0x4')](_0x26e46a,_0xb89e12),this[_0x47ae('0x41')]['set'](_0xb89e12,_0x26e46a),_0x26e46a[_0x47ae('0x46')][_0x47ae('0xf')](_0x5bae11),this[_0x47ae('0x40')](_0xb89e12[_0x47ae('0x32')],_0x47ae('0x29'),(_0x5dad26,_0x2850cf,_0x36cd26)=>{const _0x1224f7=this[_0x47ae('0x43')](_0xb89e12,_0x36cd26);_0x26e46a['_targetTop']!=_0x1224f7&&(_0x26e46a['_targetTop']=_0x1224f7,this[_0x47ae('0x10')](_0x26e46a,_0x1224f7));}),this['listenTo'](_0x26e46a,_0x47ae('0x26'),()=>{this[_0x47ae('0xb')](_0x26e46a,'top');}),this[_0x47ae('0x40')](_0x26e46a,_0x47ae('0x1d'),()=>{this['_recalculate'](_0x26e46a,_0x47ae('0x14'));}),this[_0x47ae('0x3c')](_0x26e46a);const _0x15e94e=this[_0x47ae('0x27')](_0x26e46a);if(_0x15e94e)this['_alignAfterItem'](_0x15e94e,_0x26e46a)||this['_alignToTargetRect'](_0x26e46a);else this[_0x47ae('0x3c')](_0x26e46a);return this[_0x47ae('0x2f')](),this[_0x47ae('0x32')][_0x47ae('0x33')][_0x47ae('0xf')](_0x26e46a),_0x26e46a;}['_alignForTopChange'](_0x5c4a53){if(!_0x5c4a53['content'][_0x47ae('0x20')])return;const _0x458ebb=this[_0x47ae('0x27')](_0x5c4a53);if(!_0x458ebb)return;const _0x4ec8eb=this['_sidebarItemViewToAnnotation']['get'](_0x458ebb),_0x49554c=this[_0x47ae('0x34')];_0x49554c&&_0x49554c===_0x4ec8eb?this[_0x47ae('0x16')](_0x458ebb,_0x5c4a53):this[_0x47ae('0x24')](_0x5c4a53,_0x458ebb);}[_0x47ae('0x2d')](_0x49e72c){if(!_0x49e72c[_0x47ae('0x46')][_0x47ae('0x20')])return;const _0x43645e=this[_0x47ae('0x6')](_0x49e72c);if(!_0x43645e)return;const _0x4de01c=this[_0x47ae('0x1a')][_0x47ae('0x13')](_0x43645e),_0x131d4d=this[_0x47ae('0x18')][_0x47ae('0x12')][_0x47ae('0x13')](_0x47ae('0x7')),_0x25a3ca=this[_0x47ae('0x34')];_0x25a3ca&&_0x25a3ca===_0x4de01c&&_0x131d4d?(this[_0x47ae('0x24')](_0x43645e,_0x49e72c),this[_0x47ae('0x16')](_0x49e72c,_0x43645e)):_0x25a3ca&&_0x25a3ca===_0x4de01c?this['_alignBeforeItem'](_0x43645e,_0x49e72c):this[_0x47ae('0x16')](_0x49e72c,_0x43645e);}['_recalculate'](_0x366bd8,_0x1a4847){0x0===this[_0x47ae('0x2b')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x346cea,changedProp:_0x96a1c2}of this['_recalculateBuffer'])_0x47ae('0xc')===_0x96a1c2?this[_0x47ae('0x8')](_0x346cea):this[_0x47ae('0x2d')](_0x346cea);this[_0x47ae('0x2b')]=[];},0xa),this[_0x47ae('0x2b')][_0x47ae('0x3b')]({'sidebarItemView':_0x366bd8,'changedProp':_0x1a4847});}[_0x47ae('0x30')](_0x2e482e){return this[_0x47ae('0x41')]['get'](_0x2e482e);}[_0x47ae('0xe')](){this[_0x47ae('0x23')](),this[_0x47ae('0x32')][_0x47ae('0xe')]();}['_destroySidebarItemView'](_0x532897){const _0x5e35f0=this[_0x47ae('0x30')](_0x532897);this[_0x47ae('0x23')](_0x5e35f0),this[_0x47ae('0x23')](_0x532897[_0x47ae('0x32')]),_0x5e35f0[_0x47ae('0xe')](),this[_0x47ae('0x41')][_0x47ae('0x1b')](_0x532897),this[_0x47ae('0x1a')][_0x47ae('0x1b')](_0x5e35f0);}[_0x47ae('0x25')](){const _0x417df1=new _0x420efe(this[_0x47ae('0x18')][_0x47ae('0x11')]);return _0x417df1[_0x47ae('0x0')](),this['on'](_0x47ae('0x15'),(_0x573e09,_0x32df05,_0x1fb5b2,_0x33bfad)=>{_0x33bfad&&_0x417df1[_0x47ae('0x2')]('minHeight'),_0x1fb5b2?_0x417df1[_0x47ae('0x35')](_0x47ae('0x31'))['to'](_0x1fb5b2,_0x47ae('0x14')):_0x417df1['minHeight']=null;}),_0x417df1;}[_0x47ae('0x2f')](){var _0x5108fe;this[_0x47ae('0x1e')]=(null===(_0x5108fe=this[_0x47ae('0x38')])||void 0x0===_0x5108fe?void 0x0:_0x5108fe['last'])?this['getSidebarItemView'](this['_annotations'][_0x47ae('0x3a')]):null;}[_0x47ae('0x27')](_0x380e2a){var _0x56cd18;const _0x3317e1=this[_0x47ae('0x1a')][_0x47ae('0x13')](_0x380e2a),_0x196f2c=_0x3317e1&&(null===(_0x56cd18=this['_annotations'])||void 0x0===_0x56cd18?void 0x0:_0x56cd18['get'](this['_annotations']['getIndex'](_0x3317e1)-0x1));return _0x196f2c&&this[_0x47ae('0x30')](_0x196f2c)||null;}[_0x47ae('0x6')](_0x41b4d9){var _0x437ab8;const _0x4fcf80=this[_0x47ae('0x1a')][_0x47ae('0x13')](_0x41b4d9),_0x22a956=_0x4fcf80&&(null===(_0x437ab8=this[_0x47ae('0x38')])||void 0x0===_0x437ab8?void 0x0:_0x437ab8['get'](this[_0x47ae('0x38')]['getIndex'](_0x4fcf80)+0x1));return _0x22a956&&this[_0x47ae('0x30')](_0x22a956)||null;}['_alignBeforeItem'](_0x22aa4f,_0x2b7365){_0x22aa4f[_0x47ae('0x1')]();const _0x3d44bb=H(_0x2b7365['bottom']+this[_0x47ae('0x2c')],_0x22aa4f[_0x47ae('0xc')]);return!!_0x3d44bb&&(this['_setItemTop'](_0x2b7365,_0x2b7365['top']-_0x3d44bb),!0x0);}['_alignAfterItem'](_0x5f4397,_0x12c9c){_0x5f4397['updateHeight']();const _0x901885=H(_0x5f4397[_0x47ae('0x14')]+this[_0x47ae('0x2c')],_0x12c9c[_0x47ae('0xc')]);return!!_0x901885&&(this[_0x47ae('0x10')](_0x12c9c,_0x12c9c['top']+_0x901885,!0x1),!0x0);}['_alignToTargetRect'](_0xb456e5){const _0x26d796=this['_sidebarItemViewToAnnotation']['get'](_0xb456e5);if(!_0x26d796||!_0x26d796['target']||!_0x26d796[_0x47ae('0x17')])return;const _0x346009=this[_0x47ae('0x43')](_0x26d796,_0x26d796['targetRect']);this[_0x47ae('0x10')](_0xb456e5,_0x346009);}[_0x47ae('0x43')](_0x561644,_0x4fab96){if(null===_0x4fab96)return 0x0;if(_0x561644['target']instanceof _0x30e527)return _0x4fab96['top'];{const _0x1ffb22=new _0x30e527(this['view'][_0x47ae('0x36')])[_0x47ae('0xc')];return _0x4fab96[_0x47ae('0xc')]-_0x1ffb22;}}[_0x47ae('0x10')](_0x3bdf4a,_0x2eb706,_0x4973e5=this[_0x47ae('0x18')]['config']['get'](_0x47ae('0x7'))){_0x4973e5&&(_0x2eb706=Math[_0x47ae('0x47')](_0x2eb706,this[_0x47ae('0x3e')](_0x3bdf4a))),_0x3bdf4a[_0x47ae('0xc')]=_0x2eb706;}[_0x47ae('0x3e')](_0x1e0392){let _0x5183af=this[_0x47ae('0x27')](_0x1e0392),_0x12d620=0x0;for(;_0x5183af;)_0x5183af['updateHeight'](),_0x12d620+=this[_0x47ae('0x2c')]+_0x5183af['height'],_0x5183af=this[_0x47ae('0x27')](_0x5183af);return _0x12d620;}}function H(_0x1bfaa0,_0x542a34){return Math[_0x47ae('0x47')](_0x1bfaa0-_0x542a34,0x0);}function y(_0x534910){return null!==_0x534910&&_0x47ae('0x2e')==typeof _0x534910&&0x1===_0x534910[_0x47ae('0x37')];}
23
+ const _0xc8fc=['listenTo','_alignBeforeItem','view','class','locale','_alignForBottomChange','updateHeight','get','context','length','destroy','Sidebar','content','_annotationToSidebarItemView','delete','set','_sidebarItemViewToAnnotation','pluginName','bind','nodeType','_recalculate','_getMaxAvailableTop','rearrange','isAnimationDisabled','_alignForTopChange','_getItemBefore','_recalculateBuffer','_activeAnnotation','change:top','refresh','targetRect','sidebar.container','config','bottom','change:bottom','add','_lastItem','remove','_alignAfterItem','target','_spaceBetweenItems','list','render','_alignToTargetRect','_updateLastItem','_getTargetTop','_annotations','define','max','stopListening','_destroySidebarItemView','push','sidebar-setcontainer-invalid-element','getSidebarItemView','minHeight','element','setContainer','sidebar-attachtocontainer-missing-container','_createSidebarView','last','appendChild','_attachToContainer','_targetTop','_getItemAfter','_setItemTop','init','container','change:targetRect','sidebar.preventScrollOutOfView','top'];(function(_0x1cfca1,_0xc8fc8b){const _0x5855f1=function(_0x3c2d76){while(--_0x3c2d76){_0x1cfca1['push'](_0x1cfca1['shift']());}};_0x5855f1(++_0xc8fc8b);}(_0xc8fc,0xdd));const _0x5855=function(_0x1cfca1,_0xc8fc8b){_0x1cfca1=_0x1cfca1-0x0;let _0x5855f1=_0xc8fc[_0x1cfca1];return _0x5855f1;};import{ContextPlugin as _0x545a91}from'ckeditor5/src/core';import{Rect as _0x55276f,CKEditorError as _0x35b55a}from'ckeditor5/src/utils';import _0x5c9c97 from'./view/sidebarview';import _0x3a0225 from'./view/sidebaritemview';export default class z extends _0x545a91{static get[_0x5855('0x6')](){return _0x5855('0x0');}constructor(_0x4abea0){super(_0x4abea0),this[_0x5855('0x4')]('_lastItem',void 0x0),this[_0x5855('0x3d')]=this[_0x5855('0x2f')](),this[_0x5855('0x4')]('container',null),this[_0x5855('0x1d')]=0x19,this[_0x5855('0x5')]=new Map(),this[_0x5855('0x2')]=new Map(),this['context'][_0x5855('0x15')][_0x5855('0x24')](_0x5855('0x39'),!0x1),this[_0x5855('0x23')]=null,this[_0x5855('0x10')]=null,this[_0x5855('0xf')]=[];}[_0x5855('0x36')](){const _0x2df2d9=this[_0x5855('0x43')]['config'][_0x5855('0x42')](_0x5855('0x14'));_0x2df2d9&&this[_0x5855('0x2d')](_0x2df2d9);}[_0x5855('0x2d')](_0x26f670){if(!y(_0x26f670))throw new _0x35b55a(_0x5855('0x29'));this[_0x5855('0x37')]=_0x26f670;}[_0x5855('0x32')]({viewClass:_0x19e34b='',spaceBetweenItems:_0x15865f=0x19}={}){if(!y(this['container']))throw new _0x35b55a(_0x5855('0x2e'),this);this[_0x5855('0x37')][_0x5855('0x31')](this[_0x5855('0x3d')][_0x5855('0x2c')]),this[_0x5855('0x3d')][_0x5855('0x3e')]=_0x19e34b,this[_0x5855('0x1d')]=_0x15865f;}[_0x5855('0xb')]({removedAnnotation:_0x531f68,previousAnnotation:_0x34d7f8,nextAnnotation:_0x1a7560}){const _0x547289=this[_0x5855('0x2a')](_0x531f68);this[_0x5855('0x3d')][_0x5855('0x1e')][_0x5855('0x1a')](_0x547289),this[_0x5855('0x27')](_0x531f68),_0x34d7f8&&this[_0x5855('0x20')](this[_0x5855('0x2a')](_0x34d7f8)),_0x1a7560&&this[_0x5855('0x20')](this[_0x5855('0x2a')](_0x1a7560)),this[_0x5855('0x21')]();}[_0x5855('0x12')]({blurredAnnotation:_0x10f2c2,activatedAnnotation:_0x27c6ee,disableAnimationOnActivatedAnnotation:_0x5e1d0e}){if(this[_0x5855('0x10')]=_0x27c6ee,_0x10f2c2){_0x10f2c2['isActive']=!0x1;const _0x48056a=this[_0x5855('0x2a')](_0x10f2c2);_0x48056a&&_0x5e1d0e&&(_0x48056a[_0x5855('0xc')]=!0x1);}if(_0x27c6ee){const _0x597fd9=this['getSidebarItemView'](_0x27c6ee);_0x597fd9&&(_0x27c6ee['isActive']=!0x0,_0x5e1d0e&&(_0x597fd9[_0x5855('0xc')]=!0x0,_0x597fd9[_0x5855('0x3a')]+=0x1),this[_0x5855('0x20')](_0x597fd9));}}['_detachFromContainer'](_0x4e5c30){if(this[_0x5855('0x3d')][_0x5855('0x2c')][_0x5855('0x1a')](),_0x4e5c30)for(const _0x3ebc16 of _0x4e5c30)this[_0x5855('0x27')](_0x3ebc16);this[_0x5855('0x3d')][_0x5855('0x1e')]['clear'](),this[_0x5855('0x3d')]['class']='',this['_lastItem']=null;}['addAnnotation'](_0x3be7f2,_0x1e51b6){_0x1e51b6||(_0x1e51b6=_0x3be7f2[_0x5855('0x3d')]);const _0x431815=new _0x3a0225(this[_0x5855('0x43')][_0x5855('0x3f')]);this[_0x5855('0x5')][_0x5855('0x4')](_0x431815,_0x3be7f2),this[_0x5855('0x2')][_0x5855('0x4')](_0x3be7f2,_0x431815),_0x431815[_0x5855('0x1')][_0x5855('0x18')](_0x1e51b6),this['listenTo'](_0x3be7f2[_0x5855('0x3d')],_0x5855('0x38'),(_0x56112a,_0x153d7b,_0x54a848)=>{const _0x28514b=this[_0x5855('0x22')](_0x3be7f2,_0x54a848);_0x431815[_0x5855('0x33')]!=_0x28514b&&(_0x431815[_0x5855('0x33')]=_0x28514b,this[_0x5855('0x35')](_0x431815,_0x28514b));}),this[_0x5855('0x3b')](_0x431815,_0x5855('0x11'),()=>{this[_0x5855('0x9')](_0x431815,_0x5855('0x3a'));}),this[_0x5855('0x3b')](_0x431815,_0x5855('0x17'),()=>{this[_0x5855('0x9')](_0x431815,'bottom');}),this[_0x5855('0x20')](_0x431815);const _0x43ab26=this[_0x5855('0xe')](_0x431815);if(_0x43ab26)this[_0x5855('0x1b')](_0x43ab26,_0x431815)||this[_0x5855('0x20')](_0x431815);else this[_0x5855('0x20')](_0x431815);return this[_0x5855('0x21')](),this[_0x5855('0x3d')][_0x5855('0x1e')][_0x5855('0x18')](_0x431815),_0x431815;}[_0x5855('0xd')](_0x1e9e7d){if(!_0x1e9e7d[_0x5855('0x1')]['length'])return;const _0x4f4e46=this[_0x5855('0xe')](_0x1e9e7d);if(!_0x4f4e46)return;const _0x5dcfb5=this[_0x5855('0x5')][_0x5855('0x42')](_0x4f4e46),_0x75f3ab=this[_0x5855('0x10')];_0x75f3ab&&_0x75f3ab===_0x5dcfb5?this[_0x5855('0x1b')](_0x4f4e46,_0x1e9e7d):this[_0x5855('0x3c')](_0x1e9e7d,_0x4f4e46);}[_0x5855('0x40')](_0x277c43){if(!_0x277c43[_0x5855('0x1')][_0x5855('0x44')])return;const _0x47df08=this[_0x5855('0x34')](_0x277c43);if(!_0x47df08)return;const _0x5dc44f=this[_0x5855('0x5')][_0x5855('0x42')](_0x47df08),_0x10b6ec=this[_0x5855('0x43')][_0x5855('0x15')]['get'](_0x5855('0x39')),_0x12ea9b=this[_0x5855('0x10')];_0x12ea9b&&_0x12ea9b===_0x5dc44f&&_0x10b6ec?(this['_alignBeforeItem'](_0x47df08,_0x277c43),this['_alignAfterItem'](_0x277c43,_0x47df08)):_0x12ea9b&&_0x12ea9b===_0x5dc44f?this[_0x5855('0x3c')](_0x47df08,_0x277c43):this['_alignAfterItem'](_0x277c43,_0x47df08);}[_0x5855('0x9')](_0x4ea377,_0x2f577e){0x0===this[_0x5855('0xf')][_0x5855('0x44')]&&setTimeout(()=>{for(const {sidebarItemView:_0x32b907,changedProp:_0x2572d0}of this[_0x5855('0xf')])_0x5855('0x3a')===_0x2572d0?this[_0x5855('0xd')](_0x32b907):this[_0x5855('0x40')](_0x32b907);this['_recalculateBuffer']=[];},0xa),this[_0x5855('0xf')][_0x5855('0x28')]({'sidebarItemView':_0x4ea377,'changedProp':_0x2f577e});}[_0x5855('0x2a')](_0x4e3825){return this[_0x5855('0x2')][_0x5855('0x42')](_0x4e3825);}[_0x5855('0x45')](){this[_0x5855('0x26')](),this['view'][_0x5855('0x45')]();}[_0x5855('0x27')](_0x494dcd){const _0x1d904c=this[_0x5855('0x2a')](_0x494dcd);this[_0x5855('0x26')](_0x1d904c),this['stopListening'](_0x494dcd[_0x5855('0x3d')]),_0x1d904c[_0x5855('0x45')](),this[_0x5855('0x2')][_0x5855('0x3')](_0x494dcd),this[_0x5855('0x5')][_0x5855('0x3')](_0x1d904c);}[_0x5855('0x2f')](){const _0x3641bb=new _0x5c9c97(this[_0x5855('0x43')][_0x5855('0x3f')]);return _0x3641bb[_0x5855('0x1f')](),this['on']('change:_lastItem',(_0x5d5fb7,_0x187432,_0x43430f,_0x1ea4ec)=>{_0x1ea4ec&&_0x3641bb['unbind']('minHeight'),_0x43430f?_0x3641bb[_0x5855('0x7')](_0x5855('0x2b'))['to'](_0x43430f,_0x5855('0x16')):_0x3641bb[_0x5855('0x2b')]=null;}),_0x3641bb;}['_updateLastItem'](){var _0x46c0cf;this[_0x5855('0x19')]=(null===(_0x46c0cf=this['_annotations'])||void 0x0===_0x46c0cf?void 0x0:_0x46c0cf[_0x5855('0x30')])?this['getSidebarItemView'](this[_0x5855('0x23')]['last']):null;}['_getItemBefore'](_0x693c0d){var _0x15850d;const _0x68c1c2=this[_0x5855('0x5')]['get'](_0x693c0d),_0x15eca6=_0x68c1c2&&(null===(_0x15850d=this[_0x5855('0x23')])||void 0x0===_0x15850d?void 0x0:_0x15850d[_0x5855('0x42')](this[_0x5855('0x23')]['getIndex'](_0x68c1c2)-0x1));return _0x15eca6&&this[_0x5855('0x2a')](_0x15eca6)||null;}['_getItemAfter'](_0x1ff5f3){var _0x24badc;const _0x3fa9d8=this['_sidebarItemViewToAnnotation'][_0x5855('0x42')](_0x1ff5f3),_0x253fbc=_0x3fa9d8&&(null===(_0x24badc=this[_0x5855('0x23')])||void 0x0===_0x24badc?void 0x0:_0x24badc[_0x5855('0x42')](this[_0x5855('0x23')]['getIndex'](_0x3fa9d8)+0x1));return _0x253fbc&&this[_0x5855('0x2a')](_0x253fbc)||null;}[_0x5855('0x3c')](_0x2fc442,_0x51ece5){_0x2fc442[_0x5855('0x41')]();const _0x58c22c=H(_0x51ece5[_0x5855('0x16')]+this[_0x5855('0x1d')],_0x2fc442[_0x5855('0x3a')]);return!!_0x58c22c&&(this['_setItemTop'](_0x51ece5,_0x51ece5['top']-_0x58c22c),!0x0);}[_0x5855('0x1b')](_0x59ad37,_0x2a68c7){_0x59ad37['updateHeight']();const _0x38c5ac=H(_0x59ad37[_0x5855('0x16')]+this[_0x5855('0x1d')],_0x2a68c7[_0x5855('0x3a')]);return!!_0x38c5ac&&(this[_0x5855('0x35')](_0x2a68c7,_0x2a68c7[_0x5855('0x3a')]+_0x38c5ac,!0x1),!0x0);}[_0x5855('0x20')](_0xf5963f){const _0x121069=this[_0x5855('0x5')][_0x5855('0x42')](_0xf5963f);if(!_0x121069||!_0x121069[_0x5855('0x1c')]||!_0x121069['targetRect'])return;const _0x378db5=this[_0x5855('0x22')](_0x121069,_0x121069[_0x5855('0x13')]);this['_setItemTop'](_0xf5963f,_0x378db5);}['_getTargetTop'](_0x2692bc,_0x534102){if(null===_0x534102)return 0x0;if(_0x2692bc[_0x5855('0x1c')]instanceof _0x55276f)return _0x534102[_0x5855('0x3a')];{const _0x4d095c=new _0x55276f(this[_0x5855('0x3d')][_0x5855('0x2c')])['top'];return _0x534102['top']-_0x4d095c;}}[_0x5855('0x35')](_0x32f724,_0x5f5180,_0x55c552=this['context'][_0x5855('0x15')]['get'](_0x5855('0x39'))){_0x55c552&&(_0x5f5180=Math[_0x5855('0x25')](_0x5f5180,this[_0x5855('0xa')](_0x32f724))),_0x32f724[_0x5855('0x3a')]=_0x5f5180;}[_0x5855('0xa')](_0x34d4f6){let _0x9205b=this[_0x5855('0xe')](_0x34d4f6),_0x40a55e=0x0;for(;_0x9205b;)_0x9205b[_0x5855('0x41')](),_0x40a55e+=this[_0x5855('0x1d')]+_0x9205b['height'],_0x9205b=this[_0x5855('0xe')](_0x9205b);return _0x40a55e;}}function H(_0x14d1ad,_0x3e13e1){return Math['max'](_0x14d1ad-_0x3e13e1,0x0);}function y(_0x328c9a){return null!==_0x328c9a&&'object'==typeof _0x328c9a&&0x1===_0x328c9a[_0x5855('0x8')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c36=['toString','bind','ck-annotation-counter__badge--edit-mode','ck-annotation-counter__badge--','isDirty','...','span','children','set','add','annotationType','counterView','setTemplate'];(function(_0x189fea,_0x4c3628){const _0x4f7aa7=function(_0x21b5cc){while(--_0x21b5cc){_0x189fea['push'](_0x189fea['shift']());}};_0x4f7aa7(++_0x4c3628);}(_0x4c36,0xcb));const _0x4f7a=function(_0x189fea,_0x4c3628){_0x189fea=_0x189fea-0x0;let _0x4f7aa7=_0x4c36[_0x189fea];return _0x4f7aa7;};import{ButtonView as _0x4cdb56,View as _0x503cb3}from'ckeditor5/src/ui';import _0x105f87 from'../../../theme/icons/add-comment.svg';export default class D extends _0x4cdb56{constructor(_0x5c735f){super(_0x5c735f);const _0x56a732=this['bindTemplate'];this[_0x4f7a('0x0')](_0x4f7a('0x9'),!0x1),this['set']('number',0x0),this[_0x4f7a('0x6')]('_badge')['to'](this,_0x4f7a('0x9'),this,'number',(_0x50ccb3,_0x5a6b8f)=>_0x50ccb3?_0x4f7a('0xa'):_0x5a6b8f[_0x4f7a('0x5')]()),this[_0x4f7a('0x0')](_0x4f7a('0x2'),''),this['icon']=_0x105f87,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this[_0x4f7a('0x3')]=new _0x503cb3(),this[_0x4f7a('0x3')][_0x4f7a('0x4')]({'tag':_0x4f7a('0xb'),'attributes':{'class':['ck-annotation-counter__badge',_0x56a732['to'](_0x4f7a('0x2'),_0x16c1d0=>_0x4f7a('0x8')+_0x16c1d0),_0x56a732['if'](_0x4f7a('0x9'),_0x4f7a('0x7'))]},'children':[{'text':_0x56a732['to']('_badge')}]}),this[_0x4f7a('0xc')][_0x4f7a('0x1')](this['counterView']);}}
23
+ const _0x2d1a=['children','set','_badge','ck-annotation-counter__badge--','ck-annotation-counter__badge--edit-mode','add','bind','ck-annotation-counter','annotationType','toString','number','isDirty','counterView','ck-annotation-counter__badge','setTemplate'];(function(_0x17aa43,_0x2d1a0f){const _0x1e8755=function(_0x4a740d){while(--_0x4a740d){_0x17aa43['push'](_0x17aa43['shift']());}};_0x1e8755(++_0x2d1a0f);}(_0x2d1a,0xc7));const _0x1e87=function(_0x17aa43,_0x2d1a0f){_0x17aa43=_0x17aa43-0x0;let _0x1e8755=_0x2d1a[_0x17aa43];return _0x1e8755;};import{ButtonView as _0x2498f3,View as _0x22d871}from'ckeditor5/src/ui';import _0x1c27bb from'../../../theme/icons/add-comment.svg';export default class D extends _0x2498f3{constructor(_0xa2c9cc){super(_0xa2c9cc);const _0xc3d8e0=this['bindTemplate'];this['set'](_0x1e87('0x7'),!0x1),this[_0x1e87('0xc')](_0x1e87('0x6'),0x0),this[_0x1e87('0x2')](_0x1e87('0xd'))['to'](this,'isDirty',this,'number',(_0xf94919,_0x52ce97)=>_0xf94919?'...':_0x52ce97[_0x1e87('0x5')]()),this[_0x1e87('0xc')](_0x1e87('0x4'),''),this['icon']=_0x1c27bb,this['extendTemplate']({'attributes':{'class':[_0x1e87('0x3')]}}),this['counterView']=new _0x22d871(),this[_0x1e87('0x8')][_0x1e87('0xa')]({'tag':'span','attributes':{'class':[_0x1e87('0x9'),_0xc3d8e0['to'](_0x1e87('0x4'),_0x502d28=>_0x1e87('0xe')+_0x502d28),_0xc3d8e0['if'](_0x1e87('0x7'),_0x1e87('0x0'))]},'children':[{'text':_0xc3d8e0['to'](_0x1e87('0xd'))}]}),this[_0x1e87('0xb')][_0x1e87('0x1')](this[_0x1e87('0x8')]);}}