@ckeditor/ckeditor5-comments 0.0.0-nightly-20230822.0 → 0.0.0-nightly-20230823.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "0.0.0-nightly-20230822.0",
3
+ "version": "0.0.0-nightly-20230823.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -43,8 +43,8 @@
43
43
  "CHANGELOG.md"
44
44
  ],
45
45
  "dependencies": {
46
- "ckeditor5": "0.0.0-nightly-20230822.0",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20230822.0",
46
+ "ckeditor5": "0.0.0-nightly-20230823.0",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20230823.0",
48
48
  "lodash-es": "4.17.21"
49
49
  },
50
50
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x381c=['_getNormalizedTarget','refreshVisibility','mainView','_id','add','every','filter','target','_assertCorrectTarget','remove','view','type','updateTargetRect','set','element','focusableElements','isVisible','getClientRects','_target','item','_type','isActive','length','render','nodeType','function','focusTracker','targetRect','object'];(function(_0x293829,_0x381cc5){const _0x53d3c0=function(_0x5dbb1a){while(--_0x5dbb1a){_0x293829['push'](_0x293829['shift']());}};_0x53d3c0(++_0x381cc5);}(_0x381c,0x111));const _0x53d3=function(_0x293829,_0x381cc5){_0x293829=_0x293829-0x0;let _0x53d3c0=_0x381c[_0x293829];return _0x53d3c0;};import{CKEditorError as _0x41ad01,Rect as _0x2c239e,Collection as _0xf3cdd5,ObservableMixin as _0x55649a}from'ckeditor5/src/utils';export default class d extends _0x55649a(){constructor({view:_0x227b9e,target:_0x389c57,type:_0x15b111,isVisible:_0x2764e1=!0x0}){super(),this['view']=_0x227b9e,this['view'][_0x53d3('0x2')]||this[_0x53d3('0x1b')][_0x53d3('0xb')](),this[_0x53d3('0x8')]=_0x15b111,this[_0x53d3('0x6')]=_0x389c57,d[_0x53d3('0x19')](this[_0x53d3('0x11')]()),this[_0x53d3('0x3')]=new _0xf3cdd5([this[_0x53d3('0x1b')][_0x53d3('0x2')]],{'idProperty':_0x53d3('0x14')}),this['focusableElements']['on']('add',(_0x4b3618,_0x5bbdd3)=>{this[_0x53d3('0x1b')][_0x53d3('0xe')][_0x53d3('0x15')](_0x5bbdd3);}),this['focusableElements']['on'](_0x53d3('0x1a'),(_0x2e7596,_0x50e1fa)=>{this[_0x53d3('0x1b')]['focusTracker']['remove'](_0x50e1fa);}),this[_0x53d3('0x1')]('isVisible',_0x2764e1);}get[_0x53d3('0x1c')](){return _0x53d3('0xd')==typeof this[_0x53d3('0x8')]?this[_0x53d3('0x8')]():this[_0x53d3('0x8')];}get['innerView'](){return this['view'][_0x53d3('0x13')];}get[_0x53d3('0x18')](){const _0xecdedf=this[_0x53d3('0x11')]();return d['_assertCorrectTarget'](_0xecdedf),_0xecdedf;}get[_0x53d3('0xf')](){const _0x1588e3=this[_0x53d3('0x18')];if(null===_0x1588e3)return null;if(_0x1588e3 instanceof _0x2c239e)return _0x1588e3;const _0x4ad322=_0x1588e3[_0x53d3('0x17')](_0x14f07b=>function(_0x1a7361){const _0x29b18e=_0x1a7361['offsetParent'];if(_0x29b18e)return!0x0;const _0x1d1005=_0x1a7361['getClientRects']()['item'](0x0);return!!_0x1d1005;}(_0x14f07b));return 0x0===_0x4ad322[_0x53d3('0xa')]?null:new _0x2c239e(_0x4ad322[0x0][_0x53d3('0x5')]()[_0x53d3('0x7')](0x0));}get[_0x53d3('0x9')](){return this['view']['isActive'];}set[_0x53d3('0x9')](_0x336444){this['view'][_0x53d3('0x9')]=_0x336444,this[_0x53d3('0x1b')][_0x53d3('0x13')][_0x53d3('0x9')]=_0x336444;}[_0x53d3('0x0')](){this['view'][_0x53d3('0xf')]=this[_0x53d3('0xf')];}['destroy'](){this[_0x53d3('0x3')]['stopListening'](),this[_0x53d3('0x3')]['clear'](),this['stopListening']();}[_0x53d3('0x12')](){this[_0x53d3('0x4')]=!!this[_0x53d3('0xf')];}static[_0x53d3('0x19')](_0x5963aa){if(!(null===_0x5963aa||_0x5963aa instanceof _0x2c239e||Array['isArray'](_0x5963aa)&&_0x5963aa[_0x53d3('0x16')](_0x1cf352=>y(_0x1cf352))))throw new _0x41ad01('annotation-invalid-target',null,{'target':_0x5963aa});}['_getNormalizedTarget'](){const _0x3ebbf1=_0x53d3('0xd')==typeof this[_0x53d3('0x6')]?this['_target']():this[_0x53d3('0x6')];return y(_0x3ebbf1)?[_0x3ebbf1]:_0x3ebbf1;}}function y(_0x14326c){return null!==_0x14326c&&_0x53d3('0x10')==typeof _0x14326c&&_0x53d3('0xc')in _0x14326c&&0x1===_0x14326c[_0x53d3('0xc')];}
23
+ const _0x2fe7=['getClientRects','filter','targetRect','_target','isVisible','render','focusableElements','type','remove','_id','length','nodeType','_getNormalizedTarget','_type','object','clear','every','_assertCorrectTarget','focusTracker','offsetParent','item','innerView','mainView','isActive','function','target','view','set','destroy','updateTargetRect','stopListening','isArray','refreshVisibility','element'];(function(_0x585ad0,_0x2fe77d){const _0x153039=function(_0xd8039b){while(--_0xd8039b){_0x585ad0['push'](_0x585ad0['shift']());}};_0x153039(++_0x2fe77d);}(_0x2fe7,0x1d7));const _0x1530=function(_0x585ad0,_0x2fe77d){_0x585ad0=_0x585ad0-0x0;let _0x153039=_0x2fe7[_0x585ad0];return _0x153039;};import{CKEditorError as _0x4012e8,Rect as _0x178420,Collection as _0x1f9e57,ObservableMixin as _0x445c62}from'ckeditor5/src/utils';export default class d extends _0x445c62(){constructor({view:_0x21c08c,target:_0x21c161,type:_0x23b917,isVisible:_0x3bae05=!0x0}){super(),this[_0x1530('0x1f')]=_0x21c08c,this[_0x1530('0x1f')]['element']||this[_0x1530('0x1f')][_0x1530('0xa')](),this[_0x1530('0x12')]=_0x23b917,this[_0x1530('0x8')]=_0x21c161,d['_assertCorrectTarget'](this[_0x1530('0x11')]()),this['focusableElements']=new _0x1f9e57([this[_0x1530('0x1f')][_0x1530('0x4')]],{'idProperty':_0x1530('0xe')}),this['focusableElements']['on']('add',(_0x32f811,_0x302ce5)=>{this[_0x1530('0x1f')][_0x1530('0x17')]['add'](_0x302ce5);}),this[_0x1530('0xb')]['on'](_0x1530('0xd'),(_0x15f819,_0x2dfda8)=>{this[_0x1530('0x1f')][_0x1530('0x17')][_0x1530('0xd')](_0x2dfda8);}),this[_0x1530('0x20')](_0x1530('0x9'),_0x3bae05);}get[_0x1530('0xc')](){return _0x1530('0x1d')==typeof this[_0x1530('0x12')]?this['_type']():this[_0x1530('0x12')];}get[_0x1530('0x1a')](){return this[_0x1530('0x1f')][_0x1530('0x1b')];}get[_0x1530('0x1e')](){const _0x33542d=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x33542d),_0x33542d;}get[_0x1530('0x7')](){const _0x1ed360=this[_0x1530('0x1e')];if(null===_0x1ed360)return null;if(_0x1ed360 instanceof _0x178420)return _0x1ed360;const _0x446545=_0x1ed360[_0x1530('0x6')](_0x245f2a=>function(_0x3507fa){const _0x1f1ca6=_0x3507fa[_0x1530('0x18')];if(_0x1f1ca6)return!0x0;const _0x599947=_0x3507fa[_0x1530('0x5')]()['item'](0x0);return!!_0x599947;}(_0x245f2a));return 0x0===_0x446545[_0x1530('0xf')]?null:new _0x178420(_0x446545[0x0][_0x1530('0x5')]()[_0x1530('0x19')](0x0));}get['isActive'](){return this[_0x1530('0x1f')][_0x1530('0x1c')];}set[_0x1530('0x1c')](_0xf40834){this[_0x1530('0x1f')][_0x1530('0x1c')]=_0xf40834,this[_0x1530('0x1f')]['mainView'][_0x1530('0x1c')]=_0xf40834;}[_0x1530('0x0')](){this[_0x1530('0x1f')]['targetRect']=this[_0x1530('0x7')];}[_0x1530('0x21')](){this[_0x1530('0xb')][_0x1530('0x1')](),this[_0x1530('0xb')][_0x1530('0x14')](),this['stopListening']();}[_0x1530('0x3')](){this[_0x1530('0x9')]=!!this[_0x1530('0x7')];}static[_0x1530('0x16')](_0x17ecf4){if(!(null===_0x17ecf4||_0x17ecf4 instanceof _0x178420||Array[_0x1530('0x2')](_0x17ecf4)&&_0x17ecf4[_0x1530('0x15')](_0x139a05=>y(_0x139a05))))throw new _0x4012e8('annotation-invalid-target',null,{'target':_0x17ecf4});}[_0x1530('0x11')](){const _0x479ef0='function'==typeof this[_0x1530('0x8')]?this[_0x1530('0x8')]():this[_0x1530('0x8')];return y(_0x479ef0)?[_0x479ef0]:_0x479ef0;}}function y(_0x4c0e19){return null!==_0x4c0e19&&_0x1530('0x13')==typeof _0x4c0e19&&_0x1530('0x10')in _0x4c0e19&&0x1===_0x4c0e19[_0x1530('0x10')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x479e=['getByView','targetRect','blur','_focusTracker','_sort','focusableElements','refreshPositioning','destroy','change:isFocused','view','length','getByInnerView','delete','set','stopListening','_viewToAnnotation','annotationcollection-not-existing-item','add','fire','clear','isFocused','_getOrderInContent','updateTargetRect','getIndex','top','remove','sort','_innerViewToAnnotation','focusTracker','has','listenTo','get','focus','left'];(function(_0x5c3fb2,_0x479e15){const _0x27166c=function(_0x2da90f){while(--_0x2da90f){_0x5c3fb2['push'](_0x5c3fb2['shift']());}};_0x27166c(++_0x479e15);}(_0x479e,0x1e7));const _0x2716=function(_0x5c3fb2,_0x479e15){_0x5c3fb2=_0x5c3fb2-0x0;let _0x27166c=_0x479e[_0x5c3fb2];return _0x27166c;};import{CKEditorError as _0x5dd25a,Collection as _0x1db688,FocusTracker as _0x7f6043}from'ckeditor5/src/utils';export default class x extends _0x1db688{constructor(_0x1500aa=[]){super(),this[_0x2716('0x10')]=new Map(),this[_0x2716('0x4')]=new Map(),this[_0x2716('0x1a')]=new _0x7f6043(),this[_0x2716('0x1a')]['on'](_0x2716('0x1f'),(_0x136088,_0x3c8556,_0x20e2fc)=>{_0x20e2fc||this['fire'](_0x2716('0x19'));});for(const _0x154162 of _0x1500aa)this['add'](_0x154162);}get[_0x2716('0x9')](){return this['_focusTracker'][_0x2716('0x9')];}[_0x2716('0x6')](_0x1d5e00){if(this['has'](_0x1d5e00))throw new _0x5dd25a('annotationcollection-duplicated-item',null);this[_0x2716('0x10')][_0x2716('0x2')](_0x1d5e00['innerView'],_0x1d5e00),this[_0x2716('0x4')][_0x2716('0x2')](_0x1d5e00[_0x2716('0x20')],_0x1d5e00);for(const _0x1e9e55 of _0x1d5e00[_0x2716('0x1c')])this[_0x2716('0x1a')][_0x2716('0x6')](_0x1e9e55);this[_0x2716('0x13')](_0x1d5e00[_0x2716('0x1c')],_0x2716('0x6'),(_0x38b049,_0x37ac28)=>{this[_0x2716('0x1a')][_0x2716('0x6')](_0x37ac28);}),this[_0x2716('0x13')](_0x1d5e00[_0x2716('0x1c')],_0x2716('0xe'),(_0x11565f,_0x2cbb81)=>{this[_0x2716('0x1a')][_0x2716('0xe')](_0x2cbb81);}),this[_0x2716('0x13')](_0x1d5e00[_0x2716('0x20')]['focusTracker'],_0x2716('0x1f'),(_0x374d98,_0x5c5016,_0x552509)=>{_0x552509&&this[_0x2716('0x7')](_0x2716('0x15'),_0x1d5e00);}),_0x1d5e00[_0x2716('0xb')]();const _0x22ff3d=this['_getOrderInContent'](_0x1d5e00['view'][_0x2716('0x18')]);return super['add'](_0x1d5e00,_0x22ff3d);}[_0x2716('0xe')](_0x23b63c){if(!this[_0x2716('0x12')](_0x23b63c))throw new _0x5dd25a(_0x2716('0x5'),null);this[_0x2716('0x3')](_0x23b63c[_0x2716('0x20')][_0x2716('0x11')]),this[_0x2716('0x3')](_0x23b63c[_0x2716('0x1c')]);for(const _0x395a35 of _0x23b63c[_0x2716('0x1c')])this[_0x2716('0x1a')][_0x2716('0xe')](_0x395a35);return this[_0x2716('0x4')][_0x2716('0x1')](_0x23b63c[_0x2716('0x20')]),this[_0x2716('0x10')][_0x2716('0x1')](_0x23b63c['innerView']),super[_0x2716('0xe')](_0x23b63c);}[_0x2716('0x0')](_0x24241d){return this[_0x2716('0x10')][_0x2716('0x14')](_0x24241d);}[_0x2716('0x17')](_0x62311d){return this[_0x2716('0x4')]['get'](_0x62311d);}['destroy'](){super[_0x2716('0x8')](),this[_0x2716('0x3')](),this[_0x2716('0x10')][_0x2716('0x8')](),this['_viewToAnnotation']['clear'](),this[_0x2716('0x1a')][_0x2716('0x1e')]();}[_0x2716('0x1d')](){for(const _0x348a31 of this)_0x348a31[_0x2716('0xb')]();this['_sort']();}[_0x2716('0x1b')](){const _0x158f95=Array['from'](this)[_0x2716('0xf')]((_0x598547,_0x4cceb7)=>v(_0x598547[_0x2716('0x20')][_0x2716('0x18')],_0x4cceb7['view']['targetRect']));for(let _0x48c220=_0x158f95[_0x2716('0x21')]-0x1;_0x48c220>0x0;_0x48c220--){const _0x4d36cd=_0x158f95[_0x48c220];_0x48c220!==this[_0x2716('0xc')](_0x4d36cd)&&(this[_0x2716('0xe')](_0x4d36cd),this[_0x2716('0x6')](_0x4d36cd));}}[_0x2716('0xa')](_0x25e1b7){let _0x364712=0x0;if(!_0x25e1b7)return this[_0x2716('0x21')];for(const _0x1cc985 of this){const _0x446e30=_0x1cc985[_0x2716('0x20')][_0x2716('0x18')];if(_0x446e30){if(v(_0x25e1b7,_0x446e30)<0x0)return _0x364712;_0x364712++;}}return _0x364712;}}export function bindAnnotationCollections({source:_0x14ee36,target:_0x2084b7,filter:_0x3805be}){for(const _0x4a4435 of _0x14ee36)_0x3805be(_0x4a4435)&&_0x2084b7[_0x2716('0x6')](_0x4a4435);_0x2084b7[_0x2716('0x13')](_0x14ee36,_0x2716('0x6'),(_0x43d344,_0x201c28)=>{_0x3805be(_0x201c28)&&_0x2084b7[_0x2716('0x6')](_0x201c28);}),_0x2084b7[_0x2716('0x13')](_0x14ee36,'remove',(_0x3c1dcc,_0x2ceb3a)=>{_0x2084b7[_0x2716('0x12')](_0x2ceb3a)&&_0x2084b7['remove'](_0x2ceb3a);});}function v(_0x1fa645,_0x46d3b1){if(null===_0x1fa645&&null===_0x46d3b1)return 0x0;if(null===_0x1fa645)return-0x1;if(null===_0x46d3b1)return 0x1;const _0x10f830=_0x1fa645[_0x2716('0xd')]-_0x46d3b1['top'];return 0x0==_0x10f830?_0x1fa645[_0x2716('0x16')]-_0x46d3b1['left']:_0x10f830;}
23
+ const _0x253d=['getByView','change:isFocused','sort','focusableElements','has','_focusTracker','isFocused','_getOrderInContent','blur','updateTargetRect','focusTracker','delete','getIndex','_viewToAnnotation','_innerViewToAnnotation','stopListening','_sort','get','add','clear','view','left','from','innerView','targetRect','annotationcollection-not-existing-item','length','top','getByInnerView','remove','set','listenTo'];(function(_0x55cd7b,_0x253de7){const _0x2fe116=function(_0x112ccc){while(--_0x112ccc){_0x55cd7b['push'](_0x55cd7b['shift']());}};_0x2fe116(++_0x253de7);}(_0x253d,0x1cc));const _0x2fe1=function(_0x55cd7b,_0x253de7){_0x55cd7b=_0x55cd7b-0x0;let _0x2fe116=_0x253d[_0x55cd7b];return _0x2fe116;};import{CKEditorError as _0x20a019,Collection as _0x30a023,FocusTracker as _0xf204d3}from'ckeditor5/src/utils';export default class x extends _0x30a023{constructor(_0x3af1ce=[]){super(),this[_0x2fe1('0x2')]=new Map(),this[_0x2fe1('0x1')]=new Map(),this[_0x2fe1('0x19')]=new _0xf204d3(),this[_0x2fe1('0x19')]['on']('change:isFocused',(_0x28d4b4,_0x3b6988,_0x37175f)=>{_0x37175f||this['fire'](_0x2fe1('0x1c'));});for(const _0x395a1b of _0x3af1ce)this[_0x2fe1('0x6')](_0x395a1b);}get[_0x2fe1('0x1a')](){return this['_focusTracker'][_0x2fe1('0x1a')];}[_0x2fe1('0x6')](_0x329aa2){if(this[_0x2fe1('0x18')](_0x329aa2))throw new _0x20a019('annotationcollection-duplicated-item',null);this[_0x2fe1('0x2')][_0x2fe1('0x12')](_0x329aa2[_0x2fe1('0xb')],_0x329aa2),this['_viewToAnnotation'][_0x2fe1('0x12')](_0x329aa2[_0x2fe1('0x8')],_0x329aa2);for(const _0x3f2a3d of _0x329aa2['focusableElements'])this[_0x2fe1('0x19')][_0x2fe1('0x6')](_0x3f2a3d);this[_0x2fe1('0x13')](_0x329aa2['focusableElements'],_0x2fe1('0x6'),(_0x49fdb9,_0x6d61c3)=>{this[_0x2fe1('0x19')][_0x2fe1('0x6')](_0x6d61c3);}),this[_0x2fe1('0x13')](_0x329aa2[_0x2fe1('0x17')],'remove',(_0x5c34ab,_0xc13c98)=>{this[_0x2fe1('0x19')][_0x2fe1('0x11')](_0xc13c98);}),this[_0x2fe1('0x13')](_0x329aa2[_0x2fe1('0x8')][_0x2fe1('0x1e')],_0x2fe1('0x15'),(_0x40215c,_0x103370,_0x1e0f38)=>{_0x1e0f38&&this['fire']('focus',_0x329aa2);}),_0x329aa2['updateTargetRect']();const _0xe45df7=this['_getOrderInContent'](_0x329aa2[_0x2fe1('0x8')]['targetRect']);return super[_0x2fe1('0x6')](_0x329aa2,_0xe45df7);}['remove'](_0x43e5bf){if(!this[_0x2fe1('0x18')](_0x43e5bf))throw new _0x20a019(_0x2fe1('0xd'),null);this[_0x2fe1('0x3')](_0x43e5bf[_0x2fe1('0x8')]['focusTracker']),this[_0x2fe1('0x3')](_0x43e5bf['focusableElements']);for(const _0x3865dd of _0x43e5bf[_0x2fe1('0x17')])this[_0x2fe1('0x19')][_0x2fe1('0x11')](_0x3865dd);return this[_0x2fe1('0x1')][_0x2fe1('0x1f')](_0x43e5bf['view']),this[_0x2fe1('0x2')]['delete'](_0x43e5bf[_0x2fe1('0xb')]),super[_0x2fe1('0x11')](_0x43e5bf);}[_0x2fe1('0x10')](_0x1342e4){return this['_innerViewToAnnotation'][_0x2fe1('0x5')](_0x1342e4);}[_0x2fe1('0x14')](_0x3d1817){return this[_0x2fe1('0x1')][_0x2fe1('0x5')](_0x3d1817);}['destroy'](){super['clear'](),this[_0x2fe1('0x3')](),this['_innerViewToAnnotation'][_0x2fe1('0x7')](),this[_0x2fe1('0x1')][_0x2fe1('0x7')](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x543925 of this)_0x543925[_0x2fe1('0x1d')]();this['_sort']();}[_0x2fe1('0x4')](){const _0x3a25cf=Array[_0x2fe1('0xa')](this)[_0x2fe1('0x16')]((_0x61f9cb,_0x394094)=>v(_0x61f9cb[_0x2fe1('0x8')][_0x2fe1('0xc')],_0x394094[_0x2fe1('0x8')][_0x2fe1('0xc')]));for(let _0x492d63=_0x3a25cf[_0x2fe1('0xe')]-0x1;_0x492d63>0x0;_0x492d63--){const _0x1da7a3=_0x3a25cf[_0x492d63];_0x492d63!==this[_0x2fe1('0x0')](_0x1da7a3)&&(this[_0x2fe1('0x11')](_0x1da7a3),this[_0x2fe1('0x6')](_0x1da7a3));}}[_0x2fe1('0x1b')](_0x32544b){let _0x57127e=0x0;if(!_0x32544b)return this[_0x2fe1('0xe')];for(const _0x22207b of this){const _0x5da167=_0x22207b[_0x2fe1('0x8')]['targetRect'];if(_0x5da167){if(v(_0x32544b,_0x5da167)<0x0)return _0x57127e;_0x57127e++;}}return _0x57127e;}}export function bindAnnotationCollections({source:_0x4c7f00,target:_0x26b1a8,filter:_0x53f5e3}){for(const _0x399113 of _0x4c7f00)_0x53f5e3(_0x399113)&&_0x26b1a8[_0x2fe1('0x6')](_0x399113);_0x26b1a8['listenTo'](_0x4c7f00,'add',(_0x192675,_0x2cf0cb)=>{_0x53f5e3(_0x2cf0cb)&&_0x26b1a8['add'](_0x2cf0cb);}),_0x26b1a8[_0x2fe1('0x13')](_0x4c7f00,_0x2fe1('0x11'),(_0x4ce602,_0x2a5249)=>{_0x26b1a8[_0x2fe1('0x18')](_0x2a5249)&&_0x26b1a8['remove'](_0x2a5249);});}function v(_0x49115a,_0x440b68){if(null===_0x49115a&&null===_0x440b68)return 0x0;if(null===_0x49115a)return-0x1;if(null===_0x440b68)return 0x1;const _0x4f4fca=_0x49115a[_0x2fe1('0xf')]-_0x440b68[_0x2fe1('0xf')];return 0x0==_0x4f4fca?_0x49115a[_0x2fe1('0x9')]-_0x440b68['left']:_0x4f4fca;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3846=['_visibleAnnotations','createAnnotationView','view','source','set','focusTracker','refreshVisibility','remove','element','has','_deactivateAllAnnotations','fire','add','refreshPositioning','destroy','_bindAnnotationsToVisibleAnnotations','_removeActiveAnnotation','activate','createAnnotation','getByInnerView','delete','listenTo','deactivateAll','_activateAnnotation','change:isVisible','_addActiveAnnotation','isVisible','collection','pluginName','activeAnnotations'];(function(_0xbf94c9,_0x384611){const _0x215eb5=function(_0x1bc650){while(--_0x1bc650){_0xbf94c9['push'](_0xbf94c9['shift']());}};_0x215eb5(++_0x384611);}(_0x3846,0x96));const _0x215e=function(_0xbf94c9,_0x384611){_0xbf94c9=_0xbf94c9-0x0;let _0x215eb5=_0x3846[_0xbf94c9];return _0x215eb5;};import{ContextPlugin as _0x262ecb}from'ckeditor5/src/core';import _0x42fcbd from'./annotation';import _0x52b615 from'./annotationcollection';import _0x53656b from'./view/annotationview';export default class b extends _0x262ecb{static get[_0x215e('0x1c')](){return'Annotations';}constructor(_0xd5a52d){super(_0xd5a52d),this[_0x215e('0x1b')]=new _0x52b615(),this[_0x215e('0x0')]=new _0x52b615(),this[_0x215e('0x4')](_0x215e('0x1d'),new Set()),this[_0x215e('0xf')]();}['add'](_0x2330d2){this[_0x215e('0x1b')][_0x215e('0xc')](_0x2330d2);}[_0x215e('0x7')](_0x1e90a2){this[_0x215e('0x1b')][_0x215e('0x7')](_0x1e90a2),_0x1e90a2['destroy']();}[_0x215e('0x6')](){for(const _0x3d8706 of this[_0x215e('0x1b')])_0x3d8706[_0x215e('0x6')]();}[_0x215e('0xd')](){this[_0x215e('0x0')]['refreshPositioning']();}[_0x215e('0x13')](_0x5013b3){return this[_0x215e('0x1b')][_0x215e('0x13')](_0x5013b3);}[_0x215e('0x16')](){this[_0x215e('0xb')](_0x215e('0xa'));}[_0x215e('0xe')](){for(const _0x2c2b3e of this[_0x215e('0x1b')])_0x2c2b3e[_0x215e('0xe')]();this[_0x215e('0x0')][_0x215e('0xe')](),this['collection'][_0x215e('0xe')](),super[_0x215e('0xe')]();}[_0x215e('0x11')](_0x55af72){this['fire'](_0x215e('0x17'),_0x55af72);}[_0x215e('0x12')](_0x4ffa45){return new _0x42fcbd(_0x4ffa45);}[_0x215e('0x1')](_0x1c8645,_0x16f983){return new _0x53656b(_0x1c8645,_0x16f983);}[_0x215e('0x19')](_0x16ffbc){const _0x1093aa=new Set(this['activeAnnotations']);_0x1093aa[_0x215e('0xc')](_0x16ffbc),this[_0x215e('0x1d')]=_0x1093aa;}[_0x215e('0x10')](_0x185a50){const _0x43f97c=new Set(this[_0x215e('0x1d')]);_0x43f97c[_0x215e('0x14')](_0x185a50),this[_0x215e('0x1d')]=_0x43f97c;}[_0x215e('0xf')](){const _0x4c0866=this[_0x215e('0x1b')],_0x1d9c13=this['_visibleAnnotations'];function _0x29574a(_0x1b3365){const _0x2b5290=_0x1b3365[_0x215e('0x3')];_0x2b5290['isVisible']&&!_0x1d9c13[_0x215e('0x9')](_0x2b5290)?_0x1d9c13['add'](_0x2b5290):!_0x2b5290[_0x215e('0x1a')]&&_0x1d9c13[_0x215e('0x9')](_0x2b5290)&&_0x1d9c13[_0x215e('0x7')](_0x2b5290),_0x2b5290[_0x215e('0x2')][_0x215e('0x5')][_0x215e('0x7')](_0x2b5290[_0x215e('0x2')][_0x215e('0x8')]),_0x2b5290['view']['focusTracker'][_0x215e('0xc')](_0x2b5290[_0x215e('0x2')][_0x215e('0x8')]);}this[_0x215e('0x15')](_0x4c0866,'add',(_0x53d9fb,_0xe91e31)=>{_0xe91e31[_0x215e('0x1a')]&&_0x1d9c13[_0x215e('0xc')](_0xe91e31),this[_0x215e('0x15')](_0xe91e31,_0x215e('0x18'),_0x29574a);}),this[_0x215e('0x15')](_0x4c0866,'remove',(_0x28fe1f,_0x3a26c0)=>{_0x1d9c13[_0x215e('0x9')](_0x3a26c0)&&_0x1d9c13[_0x215e('0x7')](_0x3a26c0),this['stopListening'](_0x3a26c0,_0x215e('0x18'),_0x29574a);});}}
23
+ const _0x2768=['isVisible','source','element','remove','has','createAnnotationView','collection','change:isVisible','fire','getByInnerView','add','Annotations','_deactivateAllAnnotations','_addActiveAnnotation','activeAnnotations','view','_activateAnnotation','_visibleAnnotations','refreshPositioning','_bindAnnotationsToVisibleAnnotations','listenTo','destroy','refreshVisibility','stopListening','pluginName','delete'];(function(_0x1b601f,_0x2768ca){const _0x27bb64=function(_0xe5bc32){while(--_0xe5bc32){_0x1b601f['push'](_0x1b601f['shift']());}};_0x27bb64(++_0x2768ca);}(_0x2768,0xd7));const _0x27bb=function(_0x1b601f,_0x2768ca){_0x1b601f=_0x1b601f-0x0;let _0x27bb64=_0x2768[_0x1b601f];return _0x27bb64;};import{ContextPlugin as _0xd25993}from'ckeditor5/src/core';import _0x9972ff from'./annotation';import _0x6b2875 from'./annotationcollection';import _0xc87dfb from'./view/annotationview';export default class b extends _0xd25993{static get[_0x27bb('0x11')](){return _0x27bb('0x4');}constructor(_0x400036){super(_0x400036),this[_0x27bb('0x19')]=new _0x6b2875(),this[_0x27bb('0xa')]=new _0x6b2875(),this['set'](_0x27bb('0x7'),new Set()),this[_0x27bb('0xc')]();}[_0x27bb('0x3')](_0xbfc4b8){this['collection'][_0x27bb('0x3')](_0xbfc4b8);}[_0x27bb('0x16')](_0x242746){this[_0x27bb('0x19')][_0x27bb('0x16')](_0x242746),_0x242746['destroy']();}['refreshVisibility'](){for(const _0x1a8b33 of this[_0x27bb('0x19')])_0x1a8b33[_0x27bb('0xf')]();}[_0x27bb('0xb')](){this[_0x27bb('0xa')][_0x27bb('0xb')]();}[_0x27bb('0x2')](_0x1f72c5){return this[_0x27bb('0x19')][_0x27bb('0x2')](_0x1f72c5);}['deactivateAll'](){this[_0x27bb('0x1')](_0x27bb('0x5'));}[_0x27bb('0xe')](){for(const _0x200651 of this['collection'])_0x200651[_0x27bb('0xe')]();this[_0x27bb('0xa')][_0x27bb('0xe')](),this[_0x27bb('0x19')][_0x27bb('0xe')](),super[_0x27bb('0xe')]();}['activate'](_0x5523ca){this[_0x27bb('0x1')](_0x27bb('0x9'),_0x5523ca);}['createAnnotation'](_0x372ff9){return new _0x9972ff(_0x372ff9);}[_0x27bb('0x18')](_0x48a2f8,_0x2b4333){return new _0xc87dfb(_0x48a2f8,_0x2b4333);}[_0x27bb('0x6')](_0x2b32b2){const _0x3e8421=new Set(this[_0x27bb('0x7')]);_0x3e8421['add'](_0x2b32b2),this[_0x27bb('0x7')]=_0x3e8421;}['_removeActiveAnnotation'](_0xd2de35){const _0x297ed7=new Set(this[_0x27bb('0x7')]);_0x297ed7[_0x27bb('0x12')](_0xd2de35),this['activeAnnotations']=_0x297ed7;}['_bindAnnotationsToVisibleAnnotations'](){const _0x3c6a48=this[_0x27bb('0x19')],_0x4478be=this[_0x27bb('0xa')];function _0x4fb01e(_0x588786){const _0x3bbb77=_0x588786[_0x27bb('0x14')];_0x3bbb77[_0x27bb('0x13')]&&!_0x4478be['has'](_0x3bbb77)?_0x4478be[_0x27bb('0x3')](_0x3bbb77):!_0x3bbb77['isVisible']&&_0x4478be[_0x27bb('0x17')](_0x3bbb77)&&_0x4478be[_0x27bb('0x16')](_0x3bbb77),_0x3bbb77['view']['focusTracker']['remove'](_0x3bbb77[_0x27bb('0x8')][_0x27bb('0x15')]),_0x3bbb77[_0x27bb('0x8')]['focusTracker'][_0x27bb('0x3')](_0x3bbb77['view'][_0x27bb('0x15')]);}this[_0x27bb('0xd')](_0x3c6a48,'add',(_0x1c653c,_0x449b56)=>{_0x449b56['isVisible']&&_0x4478be['add'](_0x449b56),this[_0x27bb('0xd')](_0x449b56,_0x27bb('0x0'),_0x4fb01e);}),this[_0x27bb('0xd')](_0x3c6a48,_0x27bb('0x16'),(_0x12674e,_0x18e88e)=>{_0x4478be[_0x27bb('0x17')](_0x18e88e)&&_0x4478be['remove'](_0x18e88e),this[_0x27bb('0x10')](_0x18e88e,_0x27bb('0x0'),_0x4fb01e);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x23f7=['length','deactivate','plugins','remove','annotationsuis-register-invalid-interface','activeAnnotations','function','stopListening','has','refilterAnnotations','_uisData','find','_deactivateAllAnnotations','add','listenTo','annotationsuis-annotation-mismatch','detach','init','pluginName','requires','_assertAnnotationDoesNotBelongToMultipleUIs','set','AnnotationsUIs','type','deactivateAll','context','attach','_setSelectedAnnotations','annotationsuis-missing-ui','size','get','filter','_visibleAnnotations','hasActive','destroy','push','activeUIs','_addActiveAnnotation','delete','collection','_uis','annotationsuis-register-already-registered','setActiveAnnotation','from','activate','change:activeAnnotation'];(function(_0x5cd4e3,_0x23f70e){const _0x3a3a93=function(_0x5621c1){while(--_0x5621c1){_0x5cd4e3['push'](_0x5cd4e3['shift']());}};_0x3a3a93(++_0x23f70e);}(_0x23f7,0x1ea));const _0x3a3a=function(_0x5cd4e3,_0x23f70e){_0x5cd4e3=_0x5cd4e3-0x0;let _0x3a3a93=_0x23f7[_0x5cd4e3];return _0x3a3a93;};import{ContextPlugin as _0x12b4e5}from'ckeditor5/src/core';import{CKEditorError as _0xd74db6}from'ckeditor5/src/utils';import _0x46895d,{bindAnnotationCollections as _0x54aa60}from'./annotationcollection';import _0x3a5f2a from'./annotations';export default class M extends _0x12b4e5{static get[_0x3a3a('0x23')](){return[_0x3a5f2a];}static get[_0x3a3a('0x22')](){return _0x3a3a('0x26');}constructor(_0x23e0c2){super(_0x23e0c2),this[_0x3a3a('0x6')]=new Set(),this['_uis']=new Map(),this[_0x3a3a('0x1a')]=new Map();}[_0x3a3a('0x21')](){const _0x566fca=this[_0x3a3a('0x29')][_0x3a3a('0x12')][_0x3a3a('0x0')](_0x3a5f2a);this['listenTo'](_0x566fca,'_activateAnnotation',(_0x5b848d,_0x2f584a)=>{for(const _0x150df2 of this['activeUIs']){const _0x54af16=this['_uis'][_0x3a3a('0x0')](_0x150df2);(0x0,this[_0x3a3a('0x1a')][_0x3a3a('0x0')](_0x150df2)[_0x3a3a('0x1')])(_0x2f584a)&&_0x54af16[_0x3a3a('0xc')](_0x2f584a);}}),this['listenTo'](_0x566fca,_0x3a3a('0x1c'),()=>{for(const _0x2a245c of this[_0x3a3a('0x6')]){this[_0x3a3a('0xa')][_0x3a3a('0x0')](_0x2a245c)[_0x3a3a('0xc')](null);}}),this[_0x3a3a('0x1e')](_0x566fca[_0x3a3a('0x2')],'add',(_0x4793ed,_0x1652ac)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1652ac);});}[_0x3a3a('0x3')](){return this[_0x3a3a('0x6')][_0x3a3a('0x2d')]>0x0;}['isActive'](_0x54e48c){return this[_0x3a3a('0x6')][_0x3a3a('0x18')](_0x54e48c);}[_0x3a3a('0xe')](_0x1315ad,_0x1f4626=()=>!0x0){const _0x4ea09e=this[_0x3a3a('0x29')]['plugins'][_0x3a3a('0x0')](_0x3a5f2a);if(!this['_uis']['has'](_0x1315ad))throw new _0xd74db6(_0x3a3a('0x2c'),this,{'uiName':_0x1315ad});this['isActive'](_0x1315ad)&&this[_0x3a3a('0x11')](_0x1315ad),this[_0x3a3a('0x6')][_0x3a3a('0x1d')](_0x1315ad);const _0x3a5330=new _0x46895d(),_0xad62c0=_0x4ea09e[_0x3a3a('0x2')];_0x54aa60({'source':_0xad62c0,'target':_0x3a5330,'filter':_0x1f4626}),this[_0x3a3a('0x1a')][_0x3a3a('0x25')](_0x1315ad,{'collection':_0x3a5330,'filter':_0x1f4626});const _0x437d3d=this[_0x3a3a('0xa')][_0x3a3a('0x0')](_0x1315ad);_0x437d3d['attach'](_0x3a5330),this[_0x3a3a('0x1e')](_0x437d3d,_0x3a3a('0xf'),(_0x37f65b,_0x53cfc1,_0x18afe4,_0x2e8fdf)=>{_0x2e8fdf&&_0x4ea09e['_removeActiveAnnotation'](_0x2e8fdf),_0x18afe4&&_0x4ea09e[_0x3a3a('0x7')](_0x18afe4);});}[_0x3a3a('0x11')](_0x32cd06){if(this['activeUIs'][_0x3a3a('0x8')](_0x32cd06),!this[_0x3a3a('0xa')][_0x3a3a('0x18')](_0x32cd06))throw new _0xd74db6(_0x3a3a('0x2c'),this,{'uiName':_0x32cd06});const _0x162167=this['_uis'][_0x3a3a('0x0')](_0x32cd06);_0x162167['detach'](),this[_0x3a3a('0x17')](_0x162167),this['_uisData'][_0x3a3a('0x0')](_0x32cd06)['collection']['destroy'](),this['_uisData'][_0x3a3a('0x8')](_0x32cd06);}['switchTo'](_0x3faeae){if(!this[_0x3a3a('0xa')]['has'](_0x3faeae))throw new _0xd74db6(_0x3a3a('0x2c'),this,{'uiName':_0x3faeae});const _0x4af753=this['context'][_0x3a3a('0x12')]['get'](_0x3a5f2a),_0x5ec22d=Array[_0x3a3a('0xd')](_0x4af753[_0x3a3a('0x15')])[0x0]||null;this[_0x3a3a('0x28')](),this[_0x3a3a('0xe')](_0x3faeae);const _0x2e9efa=this[_0x3a3a('0xa')][_0x3a3a('0x0')](_0x3faeae);_0x2e9efa[_0x3a3a('0xc')](_0x5ec22d),_0x2e9efa[_0x3a3a('0x2b')]&&_0x5ec22d&&_0x2e9efa[_0x3a3a('0x2b')]([_0x5ec22d]);}[_0x3a3a('0x28')](){for(const _0x4384f4 of this[_0x3a3a('0x6')])this['deactivate'](_0x4384f4);}['register'](_0x59e4ac,_0x4b2591){if(this[_0x3a3a('0xa')][_0x3a3a('0x18')](_0x59e4ac))throw new _0xd74db6(_0x3a3a('0xb'));if(_0x3a3a('0x16')!=typeof _0x4b2591[_0x3a3a('0x2a')]||_0x3a3a('0x16')!=typeof _0x4b2591[_0x3a3a('0x20')]||_0x3a3a('0x16')!=typeof _0x4b2591[_0x3a3a('0xc')])throw new _0xd74db6(_0x3a3a('0x14'),null);this[_0x3a3a('0xa')][_0x3a3a('0x25')](_0x59e4ac,_0x4b2591);}[_0x3a3a('0x19')](){const _0x369e39=this['context'][_0x3a3a('0x12')][_0x3a3a('0x0')](_0x3a5f2a)[_0x3a3a('0x9')],_0x5e9fcf=new Map(),_0x3f952b=Array['from'](this['activeUIs']);for(const _0x43cc4b of this[_0x3a3a('0x6')]){const _0x501aa0=this[_0x3a3a('0x1a')][_0x3a3a('0x0')](_0x43cc4b)['collection'];for(const _0x4ee9ce of _0x501aa0)_0x5e9fcf['set'](_0x4ee9ce,_0x43cc4b);}for(const _0x38e72c of _0x369e39){const _0x521e3c=_0x5e9fcf[_0x3a3a('0x0')](_0x38e72c);this[_0x3a3a('0x24')](_0x38e72c);const _0x5ce927=_0x3f952b[_0x3a3a('0x1b')](_0x193a7f=>this[_0x3a3a('0x1a')][_0x3a3a('0x0')](_0x193a7f)['filter'](_0x38e72c));_0x521e3c!==_0x5ce927&&(_0x521e3c&&this['_uisData'][_0x3a3a('0x0')](_0x521e3c)['collection'][_0x3a3a('0x13')](_0x38e72c),_0x5ce927&&this[_0x3a3a('0x1a')][_0x3a3a('0x0')](_0x5ce927)['collection'][_0x3a3a('0x1d')](_0x38e72c));}}[_0x3a3a('0x4')](){this[_0x3a3a('0x28')](),super[_0x3a3a('0x4')]();}[_0x3a3a('0x24')](_0x219633){const _0x1f991c=[];for(const _0x2d1286 of this[_0x3a3a('0x6')]){(0x0,this[_0x3a3a('0x1a')][_0x3a3a('0x0')](_0x2d1286)[_0x3a3a('0x1')])(_0x219633)&&_0x1f991c[_0x3a3a('0x5')](_0x2d1286);}if(_0x1f991c[_0x3a3a('0x10')]>0x1)throw new _0xd74db6(_0x3a3a('0x1f'),null,{'matchedUIs':_0x1f991c,'annotationType':_0x219633[_0x3a3a('0x27')]});}}
23
+ const _0x4dcd=['delete','collection','_removeActiveAnnotation','change:activeAnnotation','_setSelectedAnnotations','hasActive','find','size','_assertAnnotationDoesNotBelongToMultipleUIs','activeUIs','context','from','set','listenTo','annotationsuis-missing-ui','destroy','_deactivateAllAnnotations','add','AnnotationsUIs','pluginName','stopListening','setActiveAnnotation','deactivate','function','deactivateAll','type','_uis','_activateAnnotation','filter','requires','_uisData','annotationsuis-register-invalid-interface','activate','attach','plugins','_visibleAnnotations','get','annotationsuis-register-already-registered','has','activeAnnotations','_addActiveAnnotation','length','switchTo'];(function(_0x5775a9,_0x4dcd81){const _0x54c532=function(_0x233337){while(--_0x233337){_0x5775a9['push'](_0x5775a9['shift']());}};_0x54c532(++_0x4dcd81);}(_0x4dcd,0x1d3));const _0x54c5=function(_0x5775a9,_0x4dcd81){_0x5775a9=_0x5775a9-0x0;let _0x54c532=_0x4dcd[_0x5775a9];return _0x54c532;};import{ContextPlugin as _0x8b0f12}from'ckeditor5/src/core';import{CKEditorError as _0x243337}from'ckeditor5/src/utils';import _0x38a6d9,{bindAnnotationCollections as _0x54c4df}from'./annotationcollection';import _0x2103ca from'./annotations';export default class M extends _0x8b0f12{static get[_0x54c5('0x23')](){return[_0x2103ca];}static get[_0x54c5('0x19')](){return _0x54c5('0x18');}constructor(_0x24914a){super(_0x24914a),this[_0x54c5('0xf')]=new Set(),this[_0x54c5('0x20')]=new Map(),this[_0x54c5('0x24')]=new Map();}['init'](){const _0x24d396=this[_0x54c5('0x10')][_0x54c5('0x28')][_0x54c5('0x2a')](_0x2103ca);this['listenTo'](_0x24d396,_0x54c5('0x21'),(_0x164e73,_0xbe2290)=>{for(const _0x31dc83 of this[_0x54c5('0xf')]){const _0x4029ec=this['_uis'][_0x54c5('0x2a')](_0x31dc83);(0x0,this[_0x54c5('0x24')][_0x54c5('0x2a')](_0x31dc83)[_0x54c5('0x22')])(_0xbe2290)&&_0x4029ec[_0x54c5('0x1b')](_0xbe2290);}}),this[_0x54c5('0x13')](_0x24d396,_0x54c5('0x16'),()=>{for(const _0x3ebc28 of this[_0x54c5('0xf')]){this[_0x54c5('0x20')][_0x54c5('0x2a')](_0x3ebc28)[_0x54c5('0x1b')](null);}}),this['listenTo'](_0x24d396[_0x54c5('0x29')],_0x54c5('0x17'),(_0x5090d6,_0x294e01)=>{this[_0x54c5('0xe')](_0x294e01);});}[_0x54c5('0xb')](){return this[_0x54c5('0xf')][_0x54c5('0xd')]>0x0;}['isActive'](_0xd9a118){return this[_0x54c5('0xf')][_0x54c5('0x1')](_0xd9a118);}[_0x54c5('0x26')](_0x33c9a7,_0xdb5094=()=>!0x0){const _0x395306=this[_0x54c5('0x10')][_0x54c5('0x28')][_0x54c5('0x2a')](_0x2103ca);if(!this['_uis']['has'](_0x33c9a7))throw new _0x243337('annotationsuis-missing-ui',this,{'uiName':_0x33c9a7});this['isActive'](_0x33c9a7)&&this[_0x54c5('0x1c')](_0x33c9a7),this[_0x54c5('0xf')][_0x54c5('0x17')](_0x33c9a7);const _0x36ad49=new _0x38a6d9(),_0x768ea8=_0x395306['_visibleAnnotations'];_0x54c4df({'source':_0x768ea8,'target':_0x36ad49,'filter':_0xdb5094}),this[_0x54c5('0x24')][_0x54c5('0x12')](_0x33c9a7,{'collection':_0x36ad49,'filter':_0xdb5094});const _0xe81262=this[_0x54c5('0x20')][_0x54c5('0x2a')](_0x33c9a7);_0xe81262[_0x54c5('0x27')](_0x36ad49),this[_0x54c5('0x13')](_0xe81262,_0x54c5('0x9'),(_0x923c59,_0x2f505a,_0x34a127,_0x6e57e6)=>{_0x6e57e6&&_0x395306[_0x54c5('0x8')](_0x6e57e6),_0x34a127&&_0x395306[_0x54c5('0x3')](_0x34a127);});}[_0x54c5('0x1c')](_0x27be38){if(this[_0x54c5('0xf')][_0x54c5('0x6')](_0x27be38),!this['_uis'][_0x54c5('0x1')](_0x27be38))throw new _0x243337(_0x54c5('0x14'),this,{'uiName':_0x27be38});const _0x4d263e=this[_0x54c5('0x20')]['get'](_0x27be38);_0x4d263e['detach'](),this[_0x54c5('0x1a')](_0x4d263e),this[_0x54c5('0x24')]['get'](_0x27be38)['collection'][_0x54c5('0x15')](),this[_0x54c5('0x24')][_0x54c5('0x6')](_0x27be38);}[_0x54c5('0x5')](_0x131245){if(!this[_0x54c5('0x20')][_0x54c5('0x1')](_0x131245))throw new _0x243337(_0x54c5('0x14'),this,{'uiName':_0x131245});const _0x152161=this[_0x54c5('0x10')][_0x54c5('0x28')][_0x54c5('0x2a')](_0x2103ca),_0x1eafe1=Array[_0x54c5('0x11')](_0x152161[_0x54c5('0x2')])[0x0]||null;this[_0x54c5('0x1e')](),this[_0x54c5('0x26')](_0x131245);const _0x3af344=this[_0x54c5('0x20')]['get'](_0x131245);_0x3af344[_0x54c5('0x1b')](_0x1eafe1),_0x3af344[_0x54c5('0xa')]&&_0x1eafe1&&_0x3af344['_setSelectedAnnotations']([_0x1eafe1]);}[_0x54c5('0x1e')](){for(const _0x48f8c2 of this['activeUIs'])this['deactivate'](_0x48f8c2);}['register'](_0x36392,_0x4b041a){if(this[_0x54c5('0x20')][_0x54c5('0x1')](_0x36392))throw new _0x243337(_0x54c5('0x0'));if('function'!=typeof _0x4b041a[_0x54c5('0x27')]||_0x54c5('0x1d')!=typeof _0x4b041a['detach']||_0x54c5('0x1d')!=typeof _0x4b041a[_0x54c5('0x1b')])throw new _0x243337(_0x54c5('0x25'),null);this[_0x54c5('0x20')][_0x54c5('0x12')](_0x36392,_0x4b041a);}['refilterAnnotations'](){const _0x42f536=this[_0x54c5('0x10')][_0x54c5('0x28')]['get'](_0x2103ca)[_0x54c5('0x7')],_0x14ef3c=new Map(),_0x2cbba1=Array[_0x54c5('0x11')](this['activeUIs']);for(const _0x1b0734 of this[_0x54c5('0xf')]){const _0xf1f7c7=this[_0x54c5('0x24')][_0x54c5('0x2a')](_0x1b0734)[_0x54c5('0x7')];for(const _0x532f0c of _0xf1f7c7)_0x14ef3c[_0x54c5('0x12')](_0x532f0c,_0x1b0734);}for(const _0x1a2434 of _0x42f536){const _0x32a63b=_0x14ef3c[_0x54c5('0x2a')](_0x1a2434);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1a2434);const _0x5b94d6=_0x2cbba1[_0x54c5('0xc')](_0xdb7100=>this[_0x54c5('0x24')]['get'](_0xdb7100)[_0x54c5('0x22')](_0x1a2434));_0x32a63b!==_0x5b94d6&&(_0x32a63b&&this[_0x54c5('0x24')][_0x54c5('0x2a')](_0x32a63b)[_0x54c5('0x7')]['remove'](_0x1a2434),_0x5b94d6&&this['_uisData']['get'](_0x5b94d6)[_0x54c5('0x7')]['add'](_0x1a2434));}}[_0x54c5('0x15')](){this[_0x54c5('0x1e')](),super[_0x54c5('0x15')]();}[_0x54c5('0xe')](_0x1c1260){const _0x8ba194=[];for(const _0x1fe5a1 of this[_0x54c5('0xf')]){(0x0,this['_uisData'][_0x54c5('0x2a')](_0x1fe5a1)[_0x54c5('0x22')])(_0x1c1260)&&_0x8ba194['push'](_0x1fe5a1);}if(_0x8ba194[_0x54c5('0x4')]>0x1)throw new _0x243337('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x8ba194,'annotationType':_0x1c1260[_0x54c5('0x1f')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5343=['delete','refresh','element','selection','listenTo','document','pluginName','set','_editorAnnotationsData','model','_dataCollectors','range','blur','from','editor','fire','_editorAnnotations','editorannotations-invalid-source-callback','view','sort','annotation','focusTracker','editing','change:isFocused','EditorAnnotations','change:range','getByInnerView','requires','refreshSelectedViews','uiUpdate','registerAnnotation','function','directChange','getOrderedSelectedAnnotations','push','isCollapsed','containsRange','has','remove','add','get','map'];(function(_0x20af44,_0x5343c6){const _0x1a02f7=function(_0x483093){while(--_0x483093){_0x20af44['push'](_0x20af44['shift']());}};_0x1a02f7(++_0x5343c6);}(_0x5343,0xed));const _0x1a02=function(_0x20af44,_0x5343c6){_0x20af44=_0x20af44-0x0;let _0x1a02f7=_0x5343[_0x20af44];return _0x1a02f7;};import{Plugin as _0x52ee4e}from'ckeditor5/src/core';import{CKEditorError as _0x1f2837}from'ckeditor5/src/utils';import{debounce as _0xd09388}from'lodash-es';import _0x3e1364 from'./annotations';export default class k extends _0x52ee4e{static get[_0x1a02('0x0')](){return[_0x3e1364];}static get[_0x1a02('0x15')](){return _0x1a02('0x27');}constructor(_0x2a3a1c){super(_0x2a3a1c),this[_0x1a02('0x19')]=new Set(),this[_0x1a02('0x1f')]=new Set();}['init'](){const _0x422ebc=this['editor'],_0x344a0e=_0x422ebc[_0x1a02('0x18')][_0x1a02('0x14')][_0x1a02('0x12')],_0x1b3c95=_0xd09388(()=>this[_0x1a02('0x1')](),0xa);_0x344a0e['on'](_0x1a02('0x28'),(_0x41b794,_0x44095c)=>{_0x44095c[_0x1a02('0x5')]&&(_0x1b3c95['cancel'](),this['refreshSelectedViews']());}),this[_0x1a02('0x13')](_0x422ebc['editing'][_0x1a02('0x21')]['document'],_0x1a02('0x26'),(_0x42f755,_0x58a780,_0x15993c)=>{_0x15993c&&_0x1b3c95();}),this[_0x1a02('0x13')](_0x422ebc['ui'][_0x1a02('0x24')],_0x1a02('0x26'),(_0x4cdf21,_0x4e18bb,_0x2d32be)=>{_0x2d32be||_0x422ebc['isReadOnly']||this[_0x1a02('0x1e')](_0x1a02('0x1b'),{'isAnnotationTracked':_0x5ac0a9=>this[_0x1a02('0x17')][_0x1a02('0xa')](_0x5ac0a9['innerView'])});}),this['listenTo'](this[_0x1a02('0x1d')]['ui'],'update',()=>this[_0x1a02('0x1e')](_0x1a02('0x2')));}[_0x1a02('0x3')](_0x3a46df){if(this[_0x1a02('0x1f')][_0x1a02('0xa')](_0x3a46df[_0x1a02('0x21')]))return;this[_0x1a02('0x1f')][_0x1a02('0xc')](_0x3a46df['view']),this[_0x1a02('0x1d')]['ui'][_0x1a02('0x24')][_0x1a02('0xc')](_0x3a46df[_0x1a02('0x21')][_0x1a02('0x11')]);const _0x2d6dd4=this[_0x1a02('0x1d')]['plugins'][_0x1a02('0xd')](_0x3e1364);this[_0x1a02('0x13')](_0x2d6dd4['collection'],_0x1a02('0xb'),(_0x62ebe,_0x4bb0ad)=>{this[_0x1a02('0x1d')]['ui']['focusTracker'][_0x1a02('0xb')](_0x4bb0ad[_0x1a02('0x21')][_0x1a02('0x11')]),this[_0x1a02('0x1f')][_0x1a02('0xf')](_0x4bb0ad['view']);});}['hasDomSelection'](){return this[_0x1a02('0x1d')][_0x1a02('0x25')][_0x1a02('0x21')]['hasDomSelection'];}['addSourceCollector'](_0x3b621b){if(_0x1a02('0x4')!=typeof _0x3b621b)throw new _0x1f2837(_0x1a02('0x20'));this[_0x1a02('0x19')]['add'](_0x3b621b);}[_0x1a02('0x1')](){this[_0x1a02('0x1e')](_0x1a02('0x10'));}[_0x1a02('0x6')]({activeAnnotation:_0x2491f9,annotations:_0x5b37f2}){const _0x4aab4f=[],_0x54d612=this[_0x1a02('0x1d')][_0x1a02('0x18')][_0x1a02('0x14')][_0x1a02('0x12')],_0x49be58=Array[_0x1a02('0x1c')](_0x54d612['getRanges']());for(const [_0x41ed8d,_0x56a696]of this[_0x1a02('0x17')]){const _0x1a25ec=_0x59f382(_0x56a696),_0x35a49e=_0x5b37f2[_0x1a02('0x29')](_0x41ed8d);_0x1a25ec&&_0x35a49e&&_0x4aab4f[_0x1a02('0x7')]({'annotation':_0x35a49e,'range':_0x1a25ec});}function _0x59f382(_0x3d8bf4){for(const _0x271e44 of _0x3d8bf4)for(const _0x3affe3 of _0x49be58)if(_0x271e44[_0x1a02('0x9')](_0x3affe3,!_0x54d612[_0x1a02('0x8')]))return _0x271e44;return null;}return _0x4aab4f[_0x1a02('0x22')]((_0x35517f,_0x2fed1f)=>{const _0x315026=_0x35517f[_0x1a02('0x1a')],_0x2ba4a6=_0x2fed1f['range'];if(!_0x315026['isEqual'](_0x2ba4a6)){if(_0x315026[_0x1a02('0x9')](_0x2ba4a6,!0x0))return 0x1;if(_0x2ba4a6[_0x1a02('0x9')](_0x315026,!0x0))return-0x1;}return _0x35517f[_0x1a02('0x23')]==_0x2491f9?-0x1:_0x2fed1f['annotation']==_0x2491f9?0x1:0x0;})[_0x1a02('0xe')](_0x330c3e=>_0x330c3e[_0x1a02('0x23')]);}get['_editorAnnotationsData'](){const _0x5c03cf=new Map();for(const _0x934e66 of Array[_0x1a02('0x1c')](this['_dataCollectors']))for(const [_0x5b492d,_0x410443]of _0x934e66())_0x5c03cf[_0x1a02('0x16')](_0x5b492d,_0x410443);return _0x5c03cf;}}
23
+ const _0x43d9=['delete','update','editing','map','blur','uiUpdate','collection','range','_editorAnnotationsData','pluginName','document','addSourceCollector','element','focusTracker','listenTo','fire','annotation','plugins','getByInnerView','innerView','_dataCollectors','selection','view','push','requires','init','_editorAnnotations','refreshSelectedViews','change:range','cancel','directChange','has','get','model','registerAnnotation','from','refresh','editor','change:isFocused','add','hasDomSelection','set','remove','EditorAnnotations','isCollapsed','containsRange','getOrderedSelectedAnnotations'];(function(_0x2e89a0,_0x43d901){const _0x58ba8c=function(_0x11c08b){while(--_0x11c08b){_0x2e89a0['push'](_0x2e89a0['shift']());}};_0x58ba8c(++_0x43d901);}(_0x43d9,0x127));const _0x58ba=function(_0x2e89a0,_0x43d901){_0x2e89a0=_0x2e89a0-0x0;let _0x58ba8c=_0x43d9[_0x2e89a0];return _0x58ba8c;};import{Plugin as _0x5cabc6}from'ckeditor5/src/core';import{CKEditorError as _0x4247d3}from'ckeditor5/src/utils';import{debounce as _0x4b48ef}from'lodash-es';import _0x1cac6c from'./annotations';export default class k extends _0x5cabc6{static get[_0x58ba('0xb')](){return[_0x1cac6c];}static get[_0x58ba('0x2b')](){return _0x58ba('0x1e');}constructor(_0x416c53){super(_0x416c53),this[_0x58ba('0x7')]=new Set(),this[_0x58ba('0xd')]=new Set();}[_0x58ba('0xc')](){const _0x1295b5=this[_0x58ba('0x18')],_0x24340c=_0x1295b5[_0x58ba('0x14')][_0x58ba('0x2c')][_0x58ba('0x8')],_0xfea2d1=_0x4b48ef(()=>this[_0x58ba('0xe')](),0xa);_0x24340c['on'](_0x58ba('0xf'),(_0x3c1baa,_0x347386)=>{_0x347386[_0x58ba('0x11')]&&(_0xfea2d1[_0x58ba('0x10')](),this['refreshSelectedViews']());}),this[_0x58ba('0x1')](_0x1295b5[_0x58ba('0x24')][_0x58ba('0x9')][_0x58ba('0x2c')],_0x58ba('0x19'),(_0x188ffe,_0x1e71e2,_0x2d3cb7)=>{_0x2d3cb7&&_0xfea2d1();}),this['listenTo'](_0x1295b5['ui']['focusTracker'],'change:isFocused',(_0x11d1d0,_0x4514c2,_0x55a7a8)=>{_0x55a7a8||_0x1295b5['isReadOnly']||this['fire'](_0x58ba('0x26'),{'isAnnotationTracked':_0x51f5c8=>this[_0x58ba('0x2a')]['has'](_0x51f5c8[_0x58ba('0x6')])});}),this[_0x58ba('0x1')](this[_0x58ba('0x18')]['ui'],_0x58ba('0x23'),()=>this[_0x58ba('0x2')](_0x58ba('0x27')));}[_0x58ba('0x15')](_0x297c08){if(this[_0x58ba('0xd')][_0x58ba('0x12')](_0x297c08['view']))return;this[_0x58ba('0xd')][_0x58ba('0x1a')](_0x297c08['view']),this[_0x58ba('0x18')]['ui'][_0x58ba('0x0')]['add'](_0x297c08[_0x58ba('0x9')][_0x58ba('0x2e')]);const _0x20399c=this['editor'][_0x58ba('0x4')][_0x58ba('0x13')](_0x1cac6c);this['listenTo'](_0x20399c[_0x58ba('0x28')],_0x58ba('0x1d'),(_0x405dc1,_0x154c54)=>{this[_0x58ba('0x18')]['ui']['focusTracker']['remove'](_0x154c54[_0x58ba('0x9')][_0x58ba('0x2e')]),this[_0x58ba('0xd')][_0x58ba('0x22')](_0x154c54[_0x58ba('0x9')]);});}[_0x58ba('0x1b')](){return this[_0x58ba('0x18')][_0x58ba('0x24')][_0x58ba('0x9')][_0x58ba('0x1b')];}[_0x58ba('0x2d')](_0x6dc788){if('function'!=typeof _0x6dc788)throw new _0x4247d3('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x6dc788);}[_0x58ba('0xe')](){this[_0x58ba('0x2')](_0x58ba('0x17'));}[_0x58ba('0x21')]({activeAnnotation:_0x209ab2,annotations:_0x1cbfba}){const _0x1b63a2=[],_0x5e8096=this[_0x58ba('0x18')][_0x58ba('0x14')]['document'][_0x58ba('0x8')],_0x1a4054=Array[_0x58ba('0x16')](_0x5e8096['getRanges']());for(const [_0x58542f,_0x2582fc]of this[_0x58ba('0x2a')]){const _0x114ce7=_0x50757d(_0x2582fc),_0x29d983=_0x1cbfba[_0x58ba('0x5')](_0x58542f);_0x114ce7&&_0x29d983&&_0x1b63a2[_0x58ba('0xa')]({'annotation':_0x29d983,'range':_0x114ce7});}function _0x50757d(_0x101ecf){for(const _0x4d3737 of _0x101ecf)for(const _0x5a1282 of _0x1a4054)if(_0x4d3737[_0x58ba('0x20')](_0x5a1282,!_0x5e8096[_0x58ba('0x1f')]))return _0x4d3737;return null;}return _0x1b63a2['sort']((_0x598eae,_0x10ae02)=>{const _0x119302=_0x598eae['range'],_0x1e56fe=_0x10ae02[_0x58ba('0x29')];if(!_0x119302['isEqual'](_0x1e56fe)){if(_0x119302[_0x58ba('0x20')](_0x1e56fe,!0x0))return 0x1;if(_0x1e56fe[_0x58ba('0x20')](_0x119302,!0x0))return-0x1;}return _0x598eae[_0x58ba('0x3')]==_0x209ab2?-0x1:_0x10ae02[_0x58ba('0x3')]==_0x209ab2?0x1:0x0;})[_0x58ba('0x25')](_0x28ff53=>_0x28ff53['annotation']);}get[_0x58ba('0x2a')](){const _0x4bc864=new Map();for(const _0x4d6c19 of Array[_0x58ba('0x16')](this[_0x58ba('0x7')]))for(const [_0x57cc62,_0x19c3bc]of _0x4d6c19())_0x4bc864[_0x58ba('0x1c')](_0x57cc62,_0x19c3bc);return _0x4bc864;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9996=['remove','change:height','blur','target','has','delete','hasView','_manuallyClosed','viewRangeToDom','editor','_balloon','map','collapse','set','addObserver','selection','clear','pluginName','refresh','top','get','left','switchTo','showStack','domConverter','right','stopListening','targetRect','push','getByView','update','InlineAnnotations','change:isFocused','includes','find','_forceRefresh','_getBalloonTargetForAnnotation','keystrokes','_selectedAnnotations','updatePosition','activeAnnotation','width','init','focusTracker','bottom','isAttached','isActive','destroy','fromRect','plugins','visibleView','view','Esc','document','inlineannotations-not-allowed-with-context','add','from','_addedAnnotations','_closeAnnotation','listenTo','change:visibleView','every','_addAnnotationToBalloon','isFocused','setActiveAnnotation','editing','_setSelectedAnnotations','length','_removeAnnotationFromBalloon','inline','annotations','context','hasActive'];(function(_0x6170a9,_0x9996d0){const _0x5c2e45=function(_0x26692c){while(--_0x26692c){_0x6170a9['push'](_0x6170a9['shift']());}};_0x5c2e45(++_0x9996d0);}(_0x9996,0x7d));const _0x5c2e=function(_0x6170a9,_0x9996d0){_0x6170a9=_0x6170a9-0x0;let _0x5c2e45=_0x9996[_0x6170a9];return _0x5c2e45;};import{Plugin as _0x9422c7}from'ckeditor5/src/core';import _0x3940b1 from'./annotationsuis';import _0x42f587 from'./editorannotations';import{ContextualBalloon as _0x298b9e}from'ckeditor5/src/ui';import{MouseObserver as _0x1ea93b}from'ckeditor5/src/engine';import{CKEditorError as _0x37f6aa,Rect as _0x4e4bd7}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x9422c7{static get['requires'](){return[_0x42f587,_0x298b9e,_0x3940b1];}static get[_0x5c2e('0x26')](){return _0x5c2e('0x34');}constructor(_0x41a7fe){super(_0x41a7fe),_0x41a7fe[_0x5c2e('0xd')][_0x5c2e('0x48')][_0x5c2e('0x23')](_0x1ea93b),this[_0x5c2e('0x42')]=!0x1,this[_0x5c2e('0x22')](_0x5c2e('0x3d'),null),this[_0x5c2e('0x12')]=null,this[_0x5c2e('0x1c')]=new Set(),this['_balloon']=_0x41a7fe[_0x5c2e('0x46')][_0x5c2e('0x29')](_0x298b9e),this['_addedAnnotations']=new Set(),this[_0x5c2e('0x3b')]=[],this[_0x5c2e('0x38')]=!0x1;}[_0x5c2e('0x3f')](){const _0x42dd2a=this[_0x5c2e('0x1e')][_0x5c2e('0x46')][_0x5c2e('0x29')](_0x3940b1);_0x42dd2a[_0x5c2e('0x13')]===this[_0x5c2e('0x1e')]&&(_0x42dd2a['register'](_0x5c2e('0x11'),this),this[_0x5c2e('0x1e')][_0x5c2e('0x3a')]['set'](_0x5c2e('0x0'),(_0x26cff7,_0x425c7e)=>{const _0x22edc1=this[_0x5c2e('0x1f')];if(this[_0x5c2e('0x42')]&&_0x22edc1[_0x5c2e('0x47')]){const _0x4eaee8=this['annotations']['getByView'](_0x22edc1[_0x5c2e('0x47')]);_0x4eaee8&&this[_0x5c2e('0x6')](_0x4eaee8),_0x425c7e();}}));}['afterInit'](){const _0x2f8a2c=this[_0x5c2e('0x1e')][_0x5c2e('0x46')][_0x5c2e('0x29')](_0x3940b1);_0x2f8a2c['context']===this[_0x5c2e('0x1e')]&&(_0x2f8a2c[_0x5c2e('0x14')]()||_0x2f8a2c[_0x5c2e('0x2b')]('inline'));}['setActiveAnnotation'](_0x2a0fdc){_0x2a0fdc!==this[_0x5c2e('0x3d')]&&(this[_0x5c2e('0x3d')]&&(this[_0x5c2e('0x3d')][_0x5c2e('0x43')]=!0x1),_0x2a0fdc&&this[_0x5c2e('0x1e')]['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x2a0fdc)&&this[_0x5c2e('0xa')](_0x2a0fdc,!0x0),_0x2a0fdc['isActive']=!0x0),_0x2a0fdc||this['_setSelectedAnnotations']([]),this[_0x5c2e('0x3d')]=_0x2a0fdc);}['attach'](_0x3607a2){this[_0x5c2e('0x12')]=_0x3607a2;const _0x27395a=this[_0x5c2e('0x1e')]['plugins'][_0x5c2e('0x29')](_0x3940b1),_0x4345b5=this[_0x5c2e('0x1f')];if(this['isAttached'])throw new _0x37f6aa('inlineannotations-attach-already-attached',this);if(_0x27395a[_0x5c2e('0x13')]!==this[_0x5c2e('0x1e')])throw new _0x37f6aa(_0x5c2e('0x2'),this);const _0x20e01c=this[_0x5c2e('0x1e')][_0x5c2e('0x46')]['get'](_0x42f587);this[_0x5c2e('0x7')](_0x20e01c,_0x5c2e('0x27'),()=>{const _0x2a279a=_0x20e01c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this[_0x5c2e('0x3d')]});var _0x3f5698,_0x3b18e8;!this['_forceRefresh']&&(_0x3f5698=_0x2a279a,_0x3b18e8=this[_0x5c2e('0x3b')],_0x3f5698['length']===_0x3b18e8[_0x5c2e('0xf')]&&_0x3f5698[_0x5c2e('0x9')](_0x3840d4=>_0x3b18e8['includes'](_0x3840d4)))||(this[_0x5c2e('0x38')]=!0x1,this['_setSelectedAnnotations'](_0x2a279a),this[_0x5c2e('0xc')](_0x2a279a[0x0]||null));}),this[_0x5c2e('0x7')](_0x20e01c,_0x5c2e('0x17'),(_0x515ca0,{isAnnotationTracked:_0x57be63})=>{this[_0x5c2e('0x3d')]&&_0x57be63(this[_0x5c2e('0x3d')])&&(this[_0x5c2e('0xe')]([]),this[_0x5c2e('0xc')](null));}),this[_0x5c2e('0x7')](this[_0x5c2e('0x1e')]['ui'][_0x5c2e('0x40')],_0x5c2e('0x35'),(_0x515ddf,_0x494fe9,_0x496524)=>{_0x496524||this[_0x5c2e('0xc')](null);}),this[_0x5c2e('0x7')](_0x3607a2,_0x5c2e('0x15'),(_0x2a6e21,_0x221cea)=>{this[_0x5c2e('0x10')](_0x221cea),_0x221cea===this[_0x5c2e('0x3d')]&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4345b5,_0x5c2e('0x8'),(_0x2e83ee,_0x1caad7,_0x228183,_0x32ce15)=>{_0x32ce15&&this[_0x5c2e('0x2f')](_0x32ce15);const _0x4b29bf=_0x3607a2[_0x5c2e('0x32')](_0x228183);_0x228183&&_0x4b29bf&&(this[_0x5c2e('0x7')](_0x228183,_0x5c2e('0x16'),()=>{_0x4345b5['updatePosition']();}),this[_0x5c2e('0x7')](_0x228183,'Esc',()=>{this[_0x5c2e('0x6')](_0x4b29bf),this[_0x5c2e('0x1e')][_0x5c2e('0xd')]['view']['focus']();}),this[_0x5c2e('0x3d')]!==_0x4b29bf&&this[_0x5c2e('0xc')](_0x4b29bf));}),this[_0x5c2e('0x7')](this[_0x5c2e('0x1e')]['ui'],_0x5c2e('0x33'),()=>{_0x4345b5[_0x5c2e('0x47')]&&(_0x3607a2['getByView'](_0x4345b5[_0x5c2e('0x47')])&&_0x4345b5[_0x5c2e('0x3c')]());}),this['listenTo'](this[_0x5c2e('0x1e')][_0x5c2e('0xd')][_0x5c2e('0x48')][_0x5c2e('0x1')],'mousedown',()=>{this[_0x5c2e('0x38')]=!0x0,this['_manuallyClosed'][_0x5c2e('0x25')]();}),this['editor']['editing'][_0x5c2e('0x48')][_0x5c2e('0x1')][_0x5c2e('0x24')]['editableElement']&&this['editor']['editing'][_0x5c2e('0x48')]['focus'](),this[_0x5c2e('0x42')]=!0x0;}['detach'](){if(!this[_0x5c2e('0x42')])throw new _0x37f6aa('inlineannotations-detach-not-attached',this);this[_0x5c2e('0xc')](null);for(const _0x4824a1 of this[_0x5c2e('0x5')])this[_0x5c2e('0x10')](_0x4824a1);this[_0x5c2e('0x2f')](),this[_0x5c2e('0x42')]=!0x1,this[_0x5c2e('0x12')]=null;}[_0x5c2e('0x44')](){this[_0x5c2e('0x42')]&&this['detach']();}[_0x5c2e('0xe')](_0x810a27){for(const _0x180924 of this[_0x5c2e('0x3b')])_0x810a27['includes'](_0x180924)||this[_0x5c2e('0x1c')][_0x5c2e('0x1a')](_0x180924);for(const _0x1a34ed of this[_0x5c2e('0x12')])_0x810a27[_0x5c2e('0x36')](_0x1a34ed)||this[_0x5c2e('0x10')](_0x1a34ed);if(this[_0x5c2e('0x1e')]['ui'][_0x5c2e('0x40')][_0x5c2e('0xb')])for(const _0x568663 of _0x810a27)this[_0x5c2e('0xa')](_0x568663);this[_0x5c2e('0x3b')]=_0x810a27;}[_0x5c2e('0xa')](_0x52eef2,_0x2c8038=!0x1){this[_0x5c2e('0x1c')][_0x5c2e('0x19')](_0x52eef2)||(this['_addedAnnotations']['has'](_0x52eef2)||this[_0x5c2e('0x1f')]['hasView'](_0x52eef2[_0x5c2e('0x48')])||(this[_0x5c2e('0x5')][_0x5c2e('0x3')](_0x52eef2),this[_0x5c2e('0x1f')][_0x5c2e('0x3')]({'stackId':_0x52eef2[_0x5c2e('0x48')]['id'],'view':_0x52eef2[_0x5c2e('0x48')],'position':{'target':()=>this[_0x5c2e('0x39')](_0x52eef2)}})),_0x2c8038&&this[_0x5c2e('0x1f')][_0x5c2e('0x2c')](_0x52eef2[_0x5c2e('0x48')]['id']));}['_getBalloonTargetForAnnotation'](_0xd55527){const _0x2ab7f2=_0xd55527[_0x5c2e('0x18')],_0xd64027=this['editor']['editing'][_0x5c2e('0x48')],_0x5a6976=_0xd64027[_0x5c2e('0x1')][_0x5c2e('0x24')]['getFirstRange'](),_0x8a423d=_0xd64027[_0x5c2e('0x2d')][_0x5c2e('0x1d')](_0x5a6976);if(_0x8a423d[_0x5c2e('0x21')](!0x0),_0x2ab7f2){if(_0x2ab7f2 instanceof _0x4e4bd7)return _0x2ab7f2;let _0x3eed55=[];for(const _0x1628c4 of _0x2ab7f2)_0x3eed55['push'](...(_0x2715a2=_0x1628c4['getClientRects'](),Array[_0x5c2e('0x4')](_0x2715a2)[_0x5c2e('0x20')](DOMRect[_0x5c2e('0x45')])));_0x3eed55=function(_0x49f38a){const _0x377776=[];let _0x37f281=_0x49f38a[0x0];for(let _0x5aeaf4=0x1;_0x5aeaf4<_0x49f38a[_0x5c2e('0xf')];_0x5aeaf4++)F(_0x37f281,_0x49f38a[_0x5aeaf4])?_0x37f281[_0x5c2e('0x3e')]+=_0x49f38a[_0x5aeaf4]['width']:(_0x377776[_0x5c2e('0x31')](_0x37f281),_0x37f281=_0x49f38a[_0x5aeaf4]);return _0x377776[_0x5c2e('0x31')](_0x37f281),_0x377776;}(_0x3eed55);const _0x15c895=_0x8a423d['getBoundingClientRect']();return _0x3eed55[_0x5c2e('0x37')](_0x15ca91=>_0x15ca91[_0x5c2e('0x28')]<=_0x15c895[_0x5c2e('0x28')]&&_0x15ca91[_0x5c2e('0x41')]>=_0x15c895['bottom']&&_0x15ca91[_0x5c2e('0x2a')]<=_0x15c895[_0x5c2e('0x2a')]&&_0x15ca91[_0x5c2e('0x2e')]>=_0x15c895[_0x5c2e('0x2e')])||_0x3eed55[0x0];}var _0x2715a2;return _0xd55527[_0x5c2e('0x30')]||_0x8a423d;}[_0x5c2e('0x10')](_0xa4bf9){this[_0x5c2e('0x5')][_0x5c2e('0x19')](_0xa4bf9)&&this[_0x5c2e('0x1f')][_0x5c2e('0x1b')](_0xa4bf9[_0x5c2e('0x48')])&&(this[_0x5c2e('0x5')][_0x5c2e('0x1a')](_0xa4bf9),this['_balloon'][_0x5c2e('0x15')](_0xa4bf9[_0x5c2e('0x48')]));}[_0x5c2e('0x6')](_0x5d7a54){this['_manuallyClosed'][_0x5c2e('0x3')](_0x5d7a54),this['_removeAnnotationFromBalloon'](_0x5d7a54);}}function F(_0x1c9664,_0x134b37){return _0x1c9664[_0x5c2e('0x28')]===_0x134b37[_0x5c2e('0x28')]&&_0x1c9664[_0x5c2e('0x41')]===_0x134b37[_0x5c2e('0x41')]&&_0x1c9664[_0x5c2e('0x2e')]===_0x134b37[_0x5c2e('0x2a')];}
23
+ const _0xeb85=['_setSelectedAnnotations','top','getFirstRange','blur','set','includes','destroy','updatePosition','has','isFocused','getOrderedSelectedAnnotations','isActive','target','context','selection','change:isFocused','_forceRefresh','change:visibleView','hasActive','register','inlineannotations-not-allowed-with-context','delete','_selectedAnnotations','_getBalloonTargetForAnnotation','stopListening','keystrokes','right','visibleView','get','afterInit','isAttached','width','mousedown','attach','Esc','focus','editing','_balloon','init','listenTo','annotations','map','_addAnnotationToBalloon','viewRangeToDom','showStack','plugins','InlineAnnotations','clear','inline','activeAnnotation','add','focusTracker','inlineannotations-detach-not-attached','_manuallyClosed','_addedAnnotations','_closeAnnotation','_removeAnnotationFromBalloon','hasView','document','addObserver','detach','left','length','targetRect','from','view','push','editor','setActiveAnnotation','bottom','getBoundingClientRect'];(function(_0x1d9d83,_0xeb85b7){const _0x5a68c2=function(_0x8daf2b){while(--_0x8daf2b){_0x1d9d83['push'](_0x1d9d83['shift']());}};_0x5a68c2(++_0xeb85b7);}(_0xeb85,0xe0));const _0x5a68=function(_0x1d9d83,_0xeb85b7){_0x1d9d83=_0x1d9d83-0x0;let _0x5a68c2=_0xeb85[_0x1d9d83];return _0x5a68c2;};import{Plugin as _0x1fdabf}from'ckeditor5/src/core';import _0x4231e4 from'./annotationsuis';import _0x30a295 from'./editorannotations';import{ContextualBalloon as _0x4d2289}from'ckeditor5/src/ui';import{MouseObserver as _0x1a43f6}from'ckeditor5/src/engine';import{CKEditorError as _0x4a0b44,Rect as _0xc62522}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x1fdabf{static get['requires'](){return[_0x30a295,_0x4d2289,_0x4231e4];}static get['pluginName'](){return _0x5a68('0x23');}constructor(_0x10a2ab){super(_0x10a2ab),_0x10a2ab[_0x5a68('0x19')][_0x5a68('0x36')][_0x5a68('0x30')](_0x1a43f6),this['isAttached']=!0x1,this[_0x5a68('0x40')](_0x5a68('0x26'),null),this[_0x5a68('0x1d')]=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x10a2ab[_0x5a68('0x22')][_0x5a68('0x11')](_0x4d2289),this[_0x5a68('0x2b')]=new Set(),this[_0x5a68('0xb')]=[],this[_0x5a68('0x5')]=!0x1;}[_0x5a68('0x1b')](){const _0x1f6914=this['editor'][_0x5a68('0x22')][_0x5a68('0x11')](_0x4231e4);_0x1f6914[_0x5a68('0x2')]===this[_0x5a68('0x38')]&&(_0x1f6914[_0x5a68('0x8')]('inline',this),this['editor'][_0x5a68('0xe')][_0x5a68('0x40')](_0x5a68('0x17'),(_0x2c403,_0x12355b)=>{const _0x188faa=this[_0x5a68('0x1a')];if(this['isAttached']&&_0x188faa['visibleView']){const _0x58ba75=this[_0x5a68('0x1d')]['getByView'](_0x188faa[_0x5a68('0x10')]);_0x58ba75&&this['_closeAnnotation'](_0x58ba75),_0x12355b();}}));}[_0x5a68('0x12')](){const _0x59c026=this[_0x5a68('0x38')][_0x5a68('0x22')][_0x5a68('0x11')](_0x4231e4);_0x59c026['context']===this[_0x5a68('0x38')]&&(_0x59c026[_0x5a68('0x7')]()||_0x59c026['switchTo'](_0x5a68('0x25')));}[_0x5a68('0x39')](_0x197b21){_0x197b21!==this['activeAnnotation']&&(this[_0x5a68('0x26')]&&(this[_0x5a68('0x26')][_0x5a68('0x0')]=!0x1),_0x197b21&&this[_0x5a68('0x38')]['ui'][_0x5a68('0x28')][_0x5a68('0x45')]&&(this[_0x5a68('0x1d')][_0x5a68('0x44')](_0x197b21)&&this['_addAnnotationToBalloon'](_0x197b21,!0x0),_0x197b21[_0x5a68('0x0')]=!0x0),_0x197b21||this[_0x5a68('0x3c')]([]),this[_0x5a68('0x26')]=_0x197b21);}[_0x5a68('0x16')](_0x8d2bb0){this[_0x5a68('0x1d')]=_0x8d2bb0;const _0x589202=this[_0x5a68('0x38')]['plugins'][_0x5a68('0x11')](_0x4231e4),_0x33b6d9=this[_0x5a68('0x1a')];if(this[_0x5a68('0x13')])throw new _0x4a0b44('inlineannotations-attach-already-attached',this);if(_0x589202['context']!==this[_0x5a68('0x38')])throw new _0x4a0b44(_0x5a68('0x9'),this);const _0xe429af=this[_0x5a68('0x38')][_0x5a68('0x22')]['get'](_0x30a295);this[_0x5a68('0x1c')](_0xe429af,'refresh',()=>{const _0xa765cd=_0xe429af[_0x5a68('0x46')]({'annotations':this['annotations'],'activeAnnotation':this[_0x5a68('0x26')]});var _0x278ad2,_0x1791d0;!this['_forceRefresh']&&(_0x278ad2=_0xa765cd,_0x1791d0=this['_selectedAnnotations'],_0x278ad2[_0x5a68('0x33')]===_0x1791d0[_0x5a68('0x33')]&&_0x278ad2['every'](_0x4be115=>_0x1791d0[_0x5a68('0x41')](_0x4be115)))||(this[_0x5a68('0x5')]=!0x1,this[_0x5a68('0x3c')](_0xa765cd),this[_0x5a68('0x39')](_0xa765cd[0x0]||null));}),this[_0x5a68('0x1c')](_0xe429af,_0x5a68('0x3f'),(_0x27aaa8,{isAnnotationTracked:_0x23ff1f})=>{this[_0x5a68('0x26')]&&_0x23ff1f(this[_0x5a68('0x26')])&&(this[_0x5a68('0x3c')]([]),this[_0x5a68('0x39')](null));}),this[_0x5a68('0x1c')](this[_0x5a68('0x38')]['ui'][_0x5a68('0x28')],_0x5a68('0x4'),(_0x483321,_0x4c2eb6,_0x4a03a2)=>{_0x4a03a2||this[_0x5a68('0x39')](null);}),this[_0x5a68('0x1c')](_0x8d2bb0,'remove',(_0x4ff79b,_0x5d4fa9)=>{this['_removeAnnotationFromBalloon'](_0x5d4fa9),_0x5d4fa9===this[_0x5a68('0x26')]&&this['setActiveAnnotation'](null);}),this[_0x5a68('0x1c')](_0x33b6d9,_0x5a68('0x6'),(_0xd0965c,_0x1bd196,_0x4afed4,_0xd7d91e)=>{_0xd7d91e&&this[_0x5a68('0xd')](_0xd7d91e);const _0x4f434e=_0x8d2bb0['getByView'](_0x4afed4);_0x4afed4&&_0x4f434e&&(this[_0x5a68('0x1c')](_0x4afed4,'change:height',()=>{_0x33b6d9['updatePosition']();}),this[_0x5a68('0x1c')](_0x4afed4,'Esc',()=>{this['_closeAnnotation'](_0x4f434e),this[_0x5a68('0x38')][_0x5a68('0x19')][_0x5a68('0x36')]['focus']();}),this['activeAnnotation']!==_0x4f434e&&this[_0x5a68('0x39')](_0x4f434e));}),this[_0x5a68('0x1c')](this[_0x5a68('0x38')]['ui'],'update',()=>{_0x33b6d9[_0x5a68('0x10')]&&(_0x8d2bb0['getByView'](_0x33b6d9['visibleView'])&&_0x33b6d9[_0x5a68('0x43')]());}),this[_0x5a68('0x1c')](this[_0x5a68('0x38')]['editing'][_0x5a68('0x36')][_0x5a68('0x2f')],_0x5a68('0x15'),()=>{this[_0x5a68('0x5')]=!0x0,this[_0x5a68('0x2a')][_0x5a68('0x24')]();}),this[_0x5a68('0x38')][_0x5a68('0x19')][_0x5a68('0x36')][_0x5a68('0x2f')]['selection']['editableElement']&&this[_0x5a68('0x38')][_0x5a68('0x19')]['view'][_0x5a68('0x18')](),this[_0x5a68('0x13')]=!0x0;}[_0x5a68('0x31')](){if(!this[_0x5a68('0x13')])throw new _0x4a0b44(_0x5a68('0x29'),this);this['setActiveAnnotation'](null);for(const _0x37efcb of this['_addedAnnotations'])this[_0x5a68('0x2d')](_0x37efcb);this[_0x5a68('0xd')](),this[_0x5a68('0x13')]=!0x1,this[_0x5a68('0x1d')]=null;}[_0x5a68('0x42')](){this[_0x5a68('0x13')]&&this[_0x5a68('0x31')]();}[_0x5a68('0x3c')](_0xee3215){for(const _0x47389a of this[_0x5a68('0xb')])_0xee3215[_0x5a68('0x41')](_0x47389a)||this[_0x5a68('0x2a')][_0x5a68('0xa')](_0x47389a);for(const _0xfa7f8c of this['annotations'])_0xee3215[_0x5a68('0x41')](_0xfa7f8c)||this[_0x5a68('0x2d')](_0xfa7f8c);if(this[_0x5a68('0x38')]['ui'][_0x5a68('0x28')]['isFocused'])for(const _0x2cd205 of _0xee3215)this[_0x5a68('0x1f')](_0x2cd205);this[_0x5a68('0xb')]=_0xee3215;}[_0x5a68('0x1f')](_0x48e320,_0x61027f=!0x1){this[_0x5a68('0x2a')][_0x5a68('0x44')](_0x48e320)||(this['_addedAnnotations'][_0x5a68('0x44')](_0x48e320)||this[_0x5a68('0x1a')][_0x5a68('0x2e')](_0x48e320[_0x5a68('0x36')])||(this['_addedAnnotations'][_0x5a68('0x27')](_0x48e320),this[_0x5a68('0x1a')][_0x5a68('0x27')]({'stackId':_0x48e320[_0x5a68('0x36')]['id'],'view':_0x48e320['view'],'position':{'target':()=>this[_0x5a68('0xc')](_0x48e320)}})),_0x61027f&&this[_0x5a68('0x1a')][_0x5a68('0x21')](_0x48e320['view']['id']));}[_0x5a68('0xc')](_0x4da01e){const _0x200d40=_0x4da01e[_0x5a68('0x1')],_0x424faa=this[_0x5a68('0x38')][_0x5a68('0x19')]['view'],_0x62486e=_0x424faa['document'][_0x5a68('0x3')][_0x5a68('0x3e')](),_0x418e50=_0x424faa['domConverter'][_0x5a68('0x20')](_0x62486e);if(_0x418e50['collapse'](!0x0),_0x200d40){if(_0x200d40 instanceof _0xc62522)return _0x200d40;let _0xe0b2ab=[];for(const _0x379e5e of _0x200d40)_0xe0b2ab['push'](...(_0x2bfceb=_0x379e5e['getClientRects'](),Array[_0x5a68('0x35')](_0x2bfceb)[_0x5a68('0x1e')](DOMRect['fromRect'])));_0xe0b2ab=function(_0x5b6c4d){const _0x3902a1=[];let _0x5a2361=_0x5b6c4d[0x0];for(let _0x37c8f3=0x1;_0x37c8f3<_0x5b6c4d['length'];_0x37c8f3++)F(_0x5a2361,_0x5b6c4d[_0x37c8f3])?_0x5a2361[_0x5a68('0x14')]+=_0x5b6c4d[_0x37c8f3][_0x5a68('0x14')]:(_0x3902a1[_0x5a68('0x37')](_0x5a2361),_0x5a2361=_0x5b6c4d[_0x37c8f3]);return _0x3902a1[_0x5a68('0x37')](_0x5a2361),_0x3902a1;}(_0xe0b2ab);const _0x32ec85=_0x418e50[_0x5a68('0x3b')]();return _0xe0b2ab['find'](_0x1cbe54=>_0x1cbe54[_0x5a68('0x3d')]<=_0x32ec85['top']&&_0x1cbe54['bottom']>=_0x32ec85[_0x5a68('0x3a')]&&_0x1cbe54[_0x5a68('0x32')]<=_0x32ec85[_0x5a68('0x32')]&&_0x1cbe54[_0x5a68('0xf')]>=_0x32ec85[_0x5a68('0xf')])||_0xe0b2ab[0x0];}var _0x2bfceb;return _0x4da01e[_0x5a68('0x34')]||_0x418e50;}[_0x5a68('0x2d')](_0x226d77){this[_0x5a68('0x2b')][_0x5a68('0x44')](_0x226d77)&&this[_0x5a68('0x1a')][_0x5a68('0x2e')](_0x226d77[_0x5a68('0x36')])&&(this[_0x5a68('0x2b')][_0x5a68('0xa')](_0x226d77),this[_0x5a68('0x1a')]['remove'](_0x226d77[_0x5a68('0x36')]));}[_0x5a68('0x2c')](_0x435112){this[_0x5a68('0x2a')][_0x5a68('0x27')](_0x435112),this[_0x5a68('0x2d')](_0x435112);}}function F(_0x5aab71,_0x5d5aab){return _0x5aab71['top']===_0x5d5aab[_0x5a68('0x3d')]&&_0x5aab71[_0x5a68('0x3a')]===_0x5d5aab['bottom']&&_0x5aab71[_0x5a68('0xf')]===_0x5d5aab[_0x5a68('0x32')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f44=['activeAnnotation','resize','off','isAttached','narrowsidebar-attach-already-attached','isVisible','remove','_annotations','add','mousedown','_refreshPositioningDebounced','removeEventListener','destroy','_integrateWithEditorAnnotations','contains','length','view','stopPropagation','set','_destroyEditorAnnotationsIntegration','has','execute','_selectedAnnotations','content','_attachToContainer','first','stop','values','clear','keydown','locale','annotations','northArrowSouth','detachFromDom','_manuallyClosedAnnotationViews','_updateBalloonPosition','_showBalloon','unpin','focus','attach','number','southArrowNorthWest','stopListening','attachToDom','EditorAnnotations','rearrange','setActiveAnnotation','_attachListeners','_setSelectedAnnotations','esc','requires','preventClosingBalloon','editors','set:container','init','_editorAnnotations','bodyCollection','delete','preventDefault','isDirty','hasDomSelection','_annotationToNarrowView','context','keyCode','uiUpdate','plugins','listenTo','_refreshPositioning','pin','detach','low','_hideBalloon','includes','balloonPanelView','_detachListeners','Esc','northArrowSouthEast','_detachFromContainer','blur','narrowSidebar','change:container','get','northArrowSouthWest','addEventListener','addAnnotation','_domEmitter','ready','cancel','getOrderedSelectedAnnotations','NarrowSidebar','focusableElements','from','element','getSidebarItemView','refreshPositioning','target','find'];(function(_0x20d100,_0x2f448d){const _0x3e34a6=function(_0x11913e){while(--_0x11913e){_0x20d100['push'](_0x20d100['shift']());}};_0x3e34a6(++_0x2f448d);}(_0x2f44,0x6c));const _0x3e34=function(_0x20d100,_0x2f448d){_0x20d100=_0x20d100-0x0;let _0x3e34a6=_0x2f44[_0x20d100];return _0x3e34a6;};import{ContextPlugin as _0x4de14e,Context as _0x273ba1}from'ckeditor5/src/core';import _0x1d892a from'./annotationsuis';import _0x38be78 from'./sidebar';import _0x110d0f from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x187163,BodyCollection as _0x4ccc20}from'ckeditor5/src/ui';import{CKEditorError as _0x529af4,DomEmitterMixin as _0x46b769,keyCodes as _0x3c5743,Collection as _0x393794}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x2c7367}from'lodash-es';import _0x59a40c from'./editorannotations';export default class s extends _0x4de14e{static get[_0x3e34('0x27')](){return[_0x38be78,_0x1d892a];}static get['pluginName'](){return _0x3e34('0x4e');}constructor(_0x37137f){super(_0x37137f),this[_0x3e34('0x59')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x46b769),this[_0x3e34('0x32')]=new Map(),this[_0x3e34('0x7')](_0x3e34('0x56'),null),this[_0x3e34('0x14')]=null,this['_selectedAnnotations']=[],this[_0x3e34('0x2c')]=new _0x393794(),this[_0x3e34('0x60')]=_0x2c7367(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x3e34('0x2b')](){this[_0x3e34('0x33')][_0x3e34('0x36')][_0x3e34('0x46')](_0x1d892a)['register'](_0x3e34('0x44'),this),this[_0x3e34('0x2d')]=new _0x4ccc20(this['context'][_0x3e34('0x13')]),this['balloonPanelView']=new _0x187163(this[_0x3e34('0x33')]['locale']),this['bodyCollection'][_0x3e34('0x20')](),this[_0x3e34('0x2d')][_0x3e34('0x5e')](this['balloonPanelView']);}['attach'](_0x2888c7){this['annotations']=_0x2888c7;const _0x478e47=this[_0x3e34('0x33')][_0x3e34('0x36')]['get'](_0x38be78),_0x1f7b5f=this[_0x3e34('0x3e')];if(_0x478e47[_0x3e34('0x5d')]=_0x2888c7,this['isAttached'])throw new _0x529af4(_0x3e34('0x5a'),this);this[_0x3e34('0x59')]=!0x0,this['listenTo'](_0x478e47,_0x3e34('0x2a'),()=>{this[_0x3e34('0x3a')](),this['listenTo'](_0x478e47,_0x3e34('0x45'),_0x7fb301=>{_0x7fb301[_0x3e34('0x58')](),this[_0x3e34('0x1c')](_0x2888c7);});}),_0x478e47[_0x3e34('0xd')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2459e0=_0x3f6122=>{const _0x12c92e=new _0x110d0f(this[_0x3e34('0x33')]['locale']);_0x478e47[_0x3e34('0x49')](_0x3f6122,_0x12c92e),this[_0x3e34('0x32')]['set'](_0x3f6122,_0x12c92e),_0x12c92e['bind']('isDirty','annotationType',_0x3e34('0x1d'))['to'](_0x3f6122['view'],_0x3e34('0x30'),'type',_0x3e34('0x4')),_0x12c92e['on'](_0x3e34('0xa'),()=>{this[_0x3e34('0x17')][_0x3e34('0x11')](),_0x1f7b5f[_0x3e34('0xc')][_0x3e34('0xe')]!==_0x3f6122[_0x3e34('0x5')]?(this[_0x3e34('0x19')](_0x3f6122),_0x3f6122['view'][_0x3e34('0x51')][_0x3e34('0x1b')](),this[_0x3e34('0x23')](_0x3f6122)):this[_0x3e34('0x23')](null);});};for(const _0x58d65d of _0x2888c7)_0x2459e0(_0x58d65d);this[_0x3e34('0x37')](_0x2888c7,_0x3e34('0x5e'),(_0x45f6f9,_0x5155e7)=>{_0x2459e0(_0x5155e7);}),this[_0x3e34('0x37')](_0x2888c7,_0x3e34('0x5c'),(_0x13715e,_0x2b7278,_0x412b7c)=>{this[_0x3e34('0x32')][_0x3e34('0x46')](_0x2b7278)[_0x3e34('0x1')](),this[_0x3e34('0x32')][_0x3e34('0x2e')](_0x2b7278),_0x478e47[_0x3e34('0x22')]({'removedAnnotation':_0x2b7278,'previousAnnotation':_0x2888c7['get'](_0x412b7c-0x1),'nextAnnotation':_0x2888c7[_0x3e34('0x46')](_0x412b7c+0x1)}),_0x2b7278===this[_0x3e34('0x56')]&&this[_0x3e34('0x23')](null);},{'priority':_0x3e34('0x3b')}),this[_0x3e34('0x37')](_0x2888c7,_0x3e34('0x1b'),(_0x44be5a,_0x103a9f)=>{this[_0x3e34('0x23')](_0x103a9f);}),this[_0x3e34('0x37')](_0x2888c7,_0x3e34('0x43'),()=>{this['setActiveAnnotation'](null);}),this[_0x3e34('0x4a')][_0x3e34('0x37')](document,_0x3e34('0x12'),(_0x1d1574,_0x501643)=>{_0x501643[_0x3e34('0x34')]===_0x3c5743[_0x3e34('0x26')]&&_0x1f7b5f[_0x3e34('0x5b')]&&(this[_0x3e34('0x17')][_0x3e34('0x5e')](_0x1f7b5f[_0x3e34('0xc')][_0x3e34('0xe')]),this['_hideBalloon'](),_0x501643[_0x3e34('0x6')](),_0x501643[_0x3e34('0x2f')]());}),this[_0x3e34('0x4a')][_0x3e34('0x37')](document,_0x3e34('0x5f'),(_0x1e7693,_0x2f5afe)=>{const _0x5253ca=_0x2f5afe[_0x3e34('0x54')];_0x1f7b5f[_0x3e34('0x5b')]&&_0x1f7b5f[_0x3e34('0x51')][_0x3e34('0x3')](_0x5253ca)||_0x478e47[_0x3e34('0x5')][_0x3e34('0x51')][_0x3e34('0x3')](_0x5253ca)||_0x1e7693[_0x3e34('0x28')]||this[_0x3e34('0x56')]&&this[_0x3e34('0x56')][_0x3e34('0x4f')][_0x3e34('0x55')](_0x431fae=>_0x431fae[_0x3e34('0x3')](_0x5253ca))||(this['_manuallyClosedAnnotationViews']['clear'](),this[_0x3e34('0x3c')](),this[_0x3e34('0x23')](null));});const _0x4e523=this['context']instanceof _0x273ba1?this['context'][_0x3e34('0x29')]:new _0x393794([this[_0x3e34('0x33')]]);for(const _0x57139b of _0x4e523)this[_0x3e34('0x2')](_0x57139b);this['listenTo'](_0x4e523,_0x3e34('0x5e'),(_0xe27482,_0x54b679)=>{this[_0x3e34('0x37')](_0x54b679,_0x3e34('0x4b'),()=>{this[_0x3e34('0x2')](_0x54b679);});}),this[_0x3e34('0x37')](_0x4e523,_0x3e34('0x5c'),(_0x2b02ac,_0x516595)=>{_0x516595[_0x3e34('0x36')]['has'](_0x3e34('0x21'))&&this[_0x3e34('0x8')](_0x516595[_0x3e34('0x36')][_0x3e34('0x46')](_0x3e34('0x21')));}),window[_0x3e34('0x48')](_0x3e34('0x57'),this[_0x3e34('0x60')]),this['_refreshPositioning']();}['setActiveAnnotation'](_0x51059c){if(_0x51059c===this['activeAnnotation'])return;const _0x38c8fa=this[_0x3e34('0x33')][_0x3e34('0x36')]['get'](_0x38be78);if(_0x38c8fa['refresh']({'blurredAnnotation':this[_0x3e34('0x56')],'activatedAnnotation':_0x51059c,'disableAnimationOnActivatedAnnotation':!0x0}),_0x51059c)_0x38c8fa[_0x3e34('0x52')](_0x51059c)?this[_0x3e34('0x19')](_0x51059c):this[_0x3e34('0x3c')]();else this[_0x3e34('0x3c')]();this['activeAnnotation']=_0x51059c;}[_0x3e34('0x3a')](){if(!this[_0x3e34('0x59')])throw new _0x529af4('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1210ea=this[_0x3e34('0x33')][_0x3e34('0x36')][_0x3e34('0x46')](_0x38be78);this[_0x3e34('0x3c')](),Array['from'](this['_annotationToNarrowView'][_0x3e34('0x10')](),_0x32aa49=>_0x32aa49[_0x3e34('0x1')]()),this[_0x3e34('0x32')]['clear'](),_0x1210ea[_0x3e34('0x42')](this[_0x3e34('0x14')]),this['stopListening'](),this[_0x3e34('0x4a')][_0x3e34('0x1f')](),this[_0x3e34('0x33')]instanceof _0x273ba1&&this['stopListening'](this['context'][_0x3e34('0x29')]);for(const _0x3a37cf of Array[_0x3e34('0x50')](this[_0x3e34('0x2c')]))this[_0x3e34('0x8')](_0x3a37cf);window[_0x3e34('0x0')]('resize',this[_0x3e34('0x60')]),this['_refreshPositioningDebounced'][_0x3e34('0x4c')](),this['_selectedAnnotations']=[],this[_0x3e34('0x59')]=!0x1,this['annotations']=null;}[_0x3e34('0x1')](){this[_0x3e34('0x59')]&&this[_0x3e34('0x3a')](),this[_0x3e34('0x2d')][_0x3e34('0x16')]();}[_0x3e34('0x2')](_0x59b07b){const _0x2e62f4=_0x59b07b['plugins'][_0x3e34('0x46')](_0x59a40c),_0x507378=this[_0x3e34('0x33')][_0x3e34('0x36')][_0x3e34('0x46')](_0x38be78),_0x3d0a90=this[_0x3e34('0x14')],_0x5125a0=this['balloonPanelView'],_0x2dfdf7=()=>{const _0x1e94d8=_0x2e62f4[_0x3e34('0x4d')]({'annotations':this[_0x3e34('0x14')],'activeAnnotation':this[_0x3e34('0x56')]});this[_0x3e34('0x25')](_0x1e94d8),this[_0x3e34('0x23')](_0x1e94d8[0x0]||null);};this[_0x3e34('0x37')](_0x2e62f4,'refresh',_0x2dfdf7),this['listenTo'](_0x2e62f4,_0x3e34('0x43'),(_0x2fec27,{isAnnotationTracked:_0x5a7a21})=>{this[_0x3e34('0x56')]&&_0x5a7a21(this['activeAnnotation'])&&(this[_0x3e34('0x25')]([]),this[_0x3e34('0x23')](null));}),this[_0x3e34('0x37')](_0x2e62f4,_0x3e34('0x35'),()=>{this[_0x3e34('0x60')]();}),this[_0x3e34('0x37')](_0x3d0a90,_0x3e34('0x43'),_0x3702ef=>{_0x2e62f4[_0x3e34('0x31')]()&&_0x3702ef[_0x3e34('0xf')]();},{'priority':'high'}),this[_0x3e34('0x37')](this[_0x3e34('0x4a')],'mousedown',(_0x349faa,_0x368980)=>{const _0x2b729d=_0x368980[_0x3e34('0x54')];_0x5125a0[_0x3e34('0x5b')]&&_0x5125a0[_0x3e34('0x51')][_0x3e34('0x3')](_0x2b729d)||_0x507378[_0x3e34('0x5')][_0x3e34('0x51')]['contains'](_0x2b729d)||this[_0x3e34('0x56')]&&_0x2e62f4[_0x3e34('0x31')]()&&(_0x2dfdf7(),_0x349faa[_0x3e34('0x28')]=!0x0);},{'priority':'high'}),this[_0x3e34('0x2c')][_0x3e34('0x5e')](_0x2e62f4);}['_destroyEditorAnnotationsIntegration'](_0x50d696){_0x50d696&&(this[_0x3e34('0x1f')](_0x50d696),this[_0x3e34('0x2c')]['remove'](_0x50d696));}[_0x3e34('0x25')](_0x26ea35){for(const _0x2d7ec5 of this[_0x3e34('0xb')])_0x26ea35[_0x3e34('0x3d')](_0x2d7ec5)||this[_0x3e34('0x17')][_0x3e34('0x2e')](_0x2d7ec5['view']);this['_selectedAnnotations']=_0x26ea35;}[_0x3e34('0x38')](){const _0x2c8792=this[_0x3e34('0x3e')];this[_0x3e34('0x14')][_0x3e34('0x53')](),_0x2c8792[_0x3e34('0x5b')]&&this[_0x3e34('0x18')]();}[_0x3e34('0x19')](_0x56db4a){if(this[_0x3e34('0x17')][_0x3e34('0x9')](_0x56db4a[_0x3e34('0x5')]))return;const _0x2236ec=this['balloonPanelView'][_0x3e34('0xc')][_0x3e34('0xe')];_0x2236ec!==_0x56db4a[_0x3e34('0x5')]?(_0x2236ec&&this[_0x3e34('0x3f')](_0x2236ec),this['_attachListeners'](_0x56db4a[_0x3e34('0x5')]),this[_0x3e34('0x3e')][_0x3e34('0xc')][_0x3e34('0x11')](),this[_0x3e34('0x3e')][_0x3e34('0xc')][_0x3e34('0x5e')](_0x56db4a[_0x3e34('0x5')]),this[_0x3e34('0x18')]()):this[_0x3e34('0x18')]();}[_0x3e34('0x18')](){const _0x2d26d1=this['balloonPanelView']['content'][_0x3e34('0xe')],_0x49fb69=_0x2d26d1&&this[_0x3e34('0x14')]['getByView'](_0x2d26d1);if(!_0x49fb69||!this[_0x3e34('0x32')][_0x3e34('0x9')](_0x49fb69))return;const _0x8968c1=this[_0x3e34('0x32')]['get'](_0x49fb69)[_0x3e34('0x51')],_0x50eedd=function(){const _0x5caa33=_0x187163['defaultPositions'];return[_0x5caa33['southArrowNorthEast'],_0x5caa33[_0x3e34('0x41')],_0x5caa33['southArrowNorth'],_0x5caa33[_0x3e34('0x15')],_0x5caa33[_0x3e34('0x1e')],_0x5caa33[_0x3e34('0x47')]];}();this[_0x3e34('0x3e')][_0x3e34('0x39')]({'target':_0x8968c1,'positions':_0x50eedd});}[_0x3e34('0x3c')](){const _0x56bb9f=this[_0x3e34('0x3e')],_0x9e82a2=_0x56bb9f[_0x3e34('0xc')]['first'];_0x9e82a2&&(this[_0x3e34('0x3f')](_0x9e82a2),_0x56bb9f[_0x3e34('0x1a')](),_0x56bb9f['content']['clear']());}[_0x3e34('0x24')](_0x88baf3){this['listenTo'](_0x88baf3,'change:height',()=>this[_0x3e34('0x18')]()),this[_0x3e34('0x37')](_0x88baf3,_0x3e34('0x40'),(_0x560ebf,_0x2a655f)=>{this[_0x3e34('0x17')]['add'](_0x88baf3),this[_0x3e34('0x3c')](),_0x2a655f();});}[_0x3e34('0x3f')](_0x127fa6){this['stopListening'](_0x127fa6);}}
23
+ const _0x4431=['get','northArrowSouthEast','stopPropagation','_destroyEditorAnnotationsIntegration','listenTo','isAttached','northArrowSouth','setActiveAnnotation','includes','getOrderedSelectedAnnotations','blur','focusableElements','balloonPanelView','plugins','contains','esc','stopListening','_domEmitter','uiUpdate','_attachToContainer','detachFromDom','addEventListener','remove','unpin','_manuallyClosedAnnotationViews','change:height','removeEventListener','delete','narrowSidebar','defaultPositions','content','number','mousedown','northArrowSouthWest','find','southArrowNorthWest','editors','narrowsidebar-detach-not-attached','target','_refreshPositioning','isDirty','bind','keydown','_attachListeners','destroy','high','init','NarrowSidebar','add','clear','element','addAnnotation','bodyCollection','register','isVisible','rearrange','_refreshPositioningDebounced','view','first','_setSelectedAnnotations','preventClosingBalloon','resize','has','pin','stop','locale','context','_annotationToNarrowView','from','set','_selectedAnnotations','EditorAnnotations','narrowsidebar-attach-already-attached','Esc','detach','create','_annotations','cancel','_detachListeners','refresh','ready','_showBalloon','southArrowNorthEast','annotations','_integrateWithEditorAnnotations','hasDomSelection','refreshPositioning','set:container','focus','_hideBalloon','low','change:container','pluginName','_editorAnnotations','attachToDom','activeAnnotation','_updateBalloonPosition','southArrowNorth'];(function(_0x3c8475,_0x443140){const _0x52cf65=function(_0x2f9784){while(--_0x2f9784){_0x3c8475['push'](_0x3c8475['shift']());}};_0x52cf65(++_0x443140);}(_0x4431,0x162));const _0x52cf=function(_0x3c8475,_0x443140){_0x3c8475=_0x3c8475-0x0;let _0x52cf65=_0x4431[_0x3c8475];return _0x52cf65;};import{ContextPlugin as _0x166dab,Context as _0x1954d5}from'ckeditor5/src/core';import _0x3b0f29 from'./annotationsuis';import _0x38e112 from'./sidebar';import _0x55ce9c from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4ce67c,BodyCollection as _0x4fb36d}from'ckeditor5/src/ui';import{CKEditorError as _0x164b60,DomEmitterMixin as _0x1b2b1b,keyCodes as _0x351887,Collection as _0x5a2ed6}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x11cb1f}from'lodash-es';import _0x1f6922 from'./editorannotations';export default class s extends _0x166dab{static get['requires'](){return[_0x38e112,_0x3b0f29];}static get[_0x52cf('0x20')](){return _0x52cf('0x55');}constructor(_0x3d2eed){super(_0x3d2eed),this[_0x52cf('0x2b')]=!0x1,this[_0x52cf('0x3e')]=new Set(),this['_domEmitter']=Object[_0x52cf('0xf')](_0x1b2b1b),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this[_0x52cf('0xa')]=[],this[_0x52cf('0x21')]=new _0x5a2ed6(),this[_0x52cf('0x5e')]=_0x11cb1f(()=>{this[_0x52cf('0x4d')]();},0xfa,{'leading':!0x1});}[_0x52cf('0x54')](){this[_0x52cf('0x6')][_0x52cf('0x33')][_0x52cf('0x26')](_0x3b0f29)[_0x52cf('0x5b')](_0x52cf('0x42'),this),this[_0x52cf('0x5a')]=new _0x4fb36d(this[_0x52cf('0x6')][_0x52cf('0x5')]),this['balloonPanelView']=new _0x4ce67c(this[_0x52cf('0x6')][_0x52cf('0x5')]),this[_0x52cf('0x5a')][_0x52cf('0x22')](),this[_0x52cf('0x5a')]['add'](this[_0x52cf('0x32')]);}['attach'](_0x773e04){this['annotations']=_0x773e04;const _0x1ba813=this[_0x52cf('0x6')][_0x52cf('0x33')][_0x52cf('0x26')](_0x38e112),_0x1933a1=this[_0x52cf('0x32')];if(_0x1ba813[_0x52cf('0x10')]=_0x773e04,this[_0x52cf('0x2b')])throw new _0x164b60(_0x52cf('0xc'),this);this[_0x52cf('0x2b')]=!0x0,this['listenTo'](_0x1ba813,_0x52cf('0x1b'),()=>{this[_0x52cf('0xe')](),this[_0x52cf('0x2a')](_0x1ba813,_0x52cf('0x1f'),_0x128329=>{_0x128329['off'](),this['attach'](_0x773e04);});}),_0x1ba813[_0x52cf('0x39')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x4ed286=_0x4bc59d=>{const _0x237210=new _0x55ce9c(this[_0x52cf('0x6')]['locale']);_0x1ba813[_0x52cf('0x59')](_0x4bc59d,_0x237210),this[_0x52cf('0x7')][_0x52cf('0x9')](_0x4bc59d,_0x237210),_0x237210[_0x52cf('0x4f')](_0x52cf('0x4e'),'annotationType',_0x52cf('0x45'))['to'](_0x4bc59d[_0x52cf('0x5f')],_0x52cf('0x4e'),'type','length'),_0x237210['on']('execute',()=>{this[_0x52cf('0x3e')][_0x52cf('0x57')](),_0x1933a1[_0x52cf('0x44')][_0x52cf('0x60')]!==_0x4bc59d[_0x52cf('0x5f')]?(this[_0x52cf('0x15')](_0x4bc59d),_0x4bc59d[_0x52cf('0x5f')][_0x52cf('0x58')]['focus'](),this[_0x52cf('0x2d')](_0x4bc59d)):this['setActiveAnnotation'](null);});};for(const _0x340649 of _0x773e04)_0x4ed286(_0x340649);this['listenTo'](_0x773e04,'add',(_0x5ac710,_0x44a7f2)=>{_0x4ed286(_0x44a7f2);}),this['listenTo'](_0x773e04,_0x52cf('0x3c'),(_0x2767f0,_0x54547b,_0x547593)=>{this[_0x52cf('0x7')][_0x52cf('0x26')](_0x54547b)[_0x52cf('0x52')](),this[_0x52cf('0x7')][_0x52cf('0x41')](_0x54547b),_0x1ba813[_0x52cf('0x5d')]({'removedAnnotation':_0x54547b,'previousAnnotation':_0x773e04['get'](_0x547593-0x1),'nextAnnotation':_0x773e04[_0x52cf('0x26')](_0x547593+0x1)}),_0x54547b===this[_0x52cf('0x23')]&&this[_0x52cf('0x2d')](null);},{'priority':_0x52cf('0x1e')}),this[_0x52cf('0x2a')](_0x773e04,_0x52cf('0x1c'),(_0x52c1b4,_0x1016a8)=>{this[_0x52cf('0x2d')](_0x1016a8);}),this[_0x52cf('0x2a')](_0x773e04,_0x52cf('0x30'),()=>{this[_0x52cf('0x2d')](null);}),this[_0x52cf('0x37')]['listenTo'](document,_0x52cf('0x50'),(_0x10a494,_0x584d85)=>{_0x584d85['keyCode']===_0x351887[_0x52cf('0x35')]&&_0x1933a1[_0x52cf('0x5c')]&&(this[_0x52cf('0x3e')][_0x52cf('0x56')](_0x1933a1[_0x52cf('0x44')]['first']),this['_hideBalloon'](),_0x584d85[_0x52cf('0x28')](),_0x584d85['preventDefault']());}),this['_domEmitter'][_0x52cf('0x2a')](document,_0x52cf('0x46'),(_0x17eaca,_0x380353)=>{const _0x1ad99b=_0x380353['target'];_0x1933a1[_0x52cf('0x5c')]&&_0x1933a1[_0x52cf('0x58')]['contains'](_0x1ad99b)||_0x1ba813[_0x52cf('0x5f')]['element'][_0x52cf('0x34')](_0x1ad99b)||_0x17eaca[_0x52cf('0x0')]||this[_0x52cf('0x23')]&&this[_0x52cf('0x23')][_0x52cf('0x31')][_0x52cf('0x48')](_0x18fb79=>_0x18fb79['contains'](_0x1ad99b))||(this['_manuallyClosedAnnotationViews'][_0x52cf('0x57')](),this['_hideBalloon'](),this[_0x52cf('0x2d')](null));});const _0x2a097a=this[_0x52cf('0x6')]instanceof _0x1954d5?this[_0x52cf('0x6')][_0x52cf('0x4a')]:new _0x5a2ed6([this[_0x52cf('0x6')]]);for(const _0x9f9a59 of _0x2a097a)this[_0x52cf('0x18')](_0x9f9a59);this[_0x52cf('0x2a')](_0x2a097a,'add',(_0x59e738,_0xdc6631)=>{this[_0x52cf('0x2a')](_0xdc6631,_0x52cf('0x14'),()=>{this[_0x52cf('0x18')](_0xdc6631);});}),this['listenTo'](_0x2a097a,_0x52cf('0x3c'),(_0x17c519,_0x2ac816)=>{_0x2ac816[_0x52cf('0x33')][_0x52cf('0x2')]('EditorAnnotations')&&this[_0x52cf('0x29')](_0x2ac816['plugins'][_0x52cf('0x26')](_0x52cf('0xb')));}),window[_0x52cf('0x3b')](_0x52cf('0x1'),this[_0x52cf('0x5e')]),this['_refreshPositioning']();}[_0x52cf('0x2d')](_0x1e009c){if(_0x1e009c===this[_0x52cf('0x23')])return;const _0x4ef16d=this['context'][_0x52cf('0x33')]['get'](_0x38e112);if(_0x4ef16d[_0x52cf('0x13')]({'blurredAnnotation':this[_0x52cf('0x23')],'activatedAnnotation':_0x1e009c,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1e009c)_0x4ef16d['getSidebarItemView'](_0x1e009c)?this[_0x52cf('0x15')](_0x1e009c):this[_0x52cf('0x1d')]();else this[_0x52cf('0x1d')]();this[_0x52cf('0x23')]=_0x1e009c;}[_0x52cf('0xe')](){if(!this[_0x52cf('0x2b')])throw new _0x164b60(_0x52cf('0x4b'),this);this[_0x52cf('0x2d')](null);const _0x1ceb75=this[_0x52cf('0x6')][_0x52cf('0x33')][_0x52cf('0x26')](_0x38e112);this[_0x52cf('0x1d')](),Array[_0x52cf('0x8')](this[_0x52cf('0x7')]['values'](),_0x1cdf09=>_0x1cdf09[_0x52cf('0x52')]()),this[_0x52cf('0x7')]['clear'](),_0x1ceb75['_detachFromContainer'](this['annotations']),this[_0x52cf('0x36')](),this[_0x52cf('0x37')][_0x52cf('0x36')](),this[_0x52cf('0x6')]instanceof _0x1954d5&&this[_0x52cf('0x36')](this[_0x52cf('0x6')]['editors']);for(const _0x3b9881 of Array[_0x52cf('0x8')](this[_0x52cf('0x21')]))this['_destroyEditorAnnotationsIntegration'](_0x3b9881);window[_0x52cf('0x40')](_0x52cf('0x1'),this[_0x52cf('0x5e')]),this['_refreshPositioningDebounced'][_0x52cf('0x11')](),this[_0x52cf('0xa')]=[],this[_0x52cf('0x2b')]=!0x1,this[_0x52cf('0x17')]=null;}[_0x52cf('0x52')](){this[_0x52cf('0x2b')]&&this[_0x52cf('0xe')](),this[_0x52cf('0x5a')][_0x52cf('0x3a')]();}['_integrateWithEditorAnnotations'](_0x508627){const _0x5735c7=_0x508627[_0x52cf('0x33')]['get'](_0x1f6922),_0x3bdf11=this[_0x52cf('0x6')][_0x52cf('0x33')][_0x52cf('0x26')](_0x38e112),_0x25b05=this['annotations'],_0x5ba580=this[_0x52cf('0x32')],_0x24dac0=()=>{const _0x1a2c57=_0x5735c7[_0x52cf('0x2f')]({'annotations':this[_0x52cf('0x17')],'activeAnnotation':this[_0x52cf('0x23')]});this['_setSelectedAnnotations'](_0x1a2c57),this['setActiveAnnotation'](_0x1a2c57[0x0]||null);};this[_0x52cf('0x2a')](_0x5735c7,_0x52cf('0x13'),_0x24dac0),this[_0x52cf('0x2a')](_0x5735c7,_0x52cf('0x30'),(_0x478fe0,{isAnnotationTracked:_0x4be3f5})=>{this[_0x52cf('0x23')]&&_0x4be3f5(this[_0x52cf('0x23')])&&(this[_0x52cf('0x61')]([]),this[_0x52cf('0x2d')](null));}),this[_0x52cf('0x2a')](_0x5735c7,_0x52cf('0x38'),()=>{this[_0x52cf('0x5e')]();}),this[_0x52cf('0x2a')](_0x25b05,'blur',_0x18fd0f=>{_0x5735c7[_0x52cf('0x19')]()&&_0x18fd0f[_0x52cf('0x4')]();},{'priority':_0x52cf('0x53')}),this[_0x52cf('0x2a')](this['_domEmitter'],'mousedown',(_0x4e03df,_0x5a6204)=>{const _0x53b454=_0x5a6204[_0x52cf('0x4c')];_0x5ba580[_0x52cf('0x5c')]&&_0x5ba580[_0x52cf('0x58')][_0x52cf('0x34')](_0x53b454)||_0x3bdf11[_0x52cf('0x5f')][_0x52cf('0x58')][_0x52cf('0x34')](_0x53b454)||this['activeAnnotation']&&_0x5735c7[_0x52cf('0x19')]()&&(_0x24dac0(),_0x4e03df[_0x52cf('0x0')]=!0x0);},{'priority':_0x52cf('0x53')}),this[_0x52cf('0x21')][_0x52cf('0x56')](_0x5735c7);}[_0x52cf('0x29')](_0xa9a6e5){_0xa9a6e5&&(this['stopListening'](_0xa9a6e5),this[_0x52cf('0x21')]['remove'](_0xa9a6e5));}[_0x52cf('0x61')](_0x4b552a){for(const _0x3bacfe of this[_0x52cf('0xa')])_0x4b552a[_0x52cf('0x2e')](_0x3bacfe)||this[_0x52cf('0x3e')][_0x52cf('0x41')](_0x3bacfe[_0x52cf('0x5f')]);this['_selectedAnnotations']=_0x4b552a;}[_0x52cf('0x4d')](){const _0xb1a692=this[_0x52cf('0x32')];this[_0x52cf('0x17')][_0x52cf('0x1a')](),_0xb1a692[_0x52cf('0x5c')]&&this[_0x52cf('0x24')]();}[_0x52cf('0x15')](_0x3ce2d4){if(this['_manuallyClosedAnnotationViews'][_0x52cf('0x2')](_0x3ce2d4[_0x52cf('0x5f')]))return;const _0x4f0282=this[_0x52cf('0x32')][_0x52cf('0x44')][_0x52cf('0x60')];_0x4f0282!==_0x3ce2d4['view']?(_0x4f0282&&this['_detachListeners'](_0x4f0282),this[_0x52cf('0x51')](_0x3ce2d4[_0x52cf('0x5f')]),this[_0x52cf('0x32')][_0x52cf('0x44')][_0x52cf('0x57')](),this[_0x52cf('0x32')][_0x52cf('0x44')][_0x52cf('0x56')](_0x3ce2d4[_0x52cf('0x5f')]),this[_0x52cf('0x24')]()):this[_0x52cf('0x24')]();}['_updateBalloonPosition'](){const _0x2d9f94=this[_0x52cf('0x32')]['content'][_0x52cf('0x60')],_0x555961=_0x2d9f94&&this[_0x52cf('0x17')]['getByView'](_0x2d9f94);if(!_0x555961||!this['_annotationToNarrowView'][_0x52cf('0x2')](_0x555961))return;const _0x3f65ae=this[_0x52cf('0x7')][_0x52cf('0x26')](_0x555961)[_0x52cf('0x58')],_0x41b5be=function(){const _0x4989df=_0x4ce67c[_0x52cf('0x43')];return[_0x4989df[_0x52cf('0x16')],_0x4989df[_0x52cf('0x27')],_0x4989df[_0x52cf('0x25')],_0x4989df[_0x52cf('0x2c')],_0x4989df[_0x52cf('0x49')],_0x4989df[_0x52cf('0x47')]];}();this[_0x52cf('0x32')][_0x52cf('0x3')]({'target':_0x3f65ae,'positions':_0x41b5be});}[_0x52cf('0x1d')](){const _0x2b9118=this[_0x52cf('0x32')],_0x23abf2=_0x2b9118[_0x52cf('0x44')][_0x52cf('0x60')];_0x23abf2&&(this['_detachListeners'](_0x23abf2),_0x2b9118[_0x52cf('0x3d')](),_0x2b9118[_0x52cf('0x44')][_0x52cf('0x57')]());}['_attachListeners'](_0x30609c){this[_0x52cf('0x2a')](_0x30609c,_0x52cf('0x3f'),()=>this[_0x52cf('0x24')]()),this[_0x52cf('0x2a')](_0x30609c,_0x52cf('0xd'),(_0x3ed8be,_0x332837)=>{this[_0x52cf('0x3e')]['add'](_0x30609c),this[_0x52cf('0x1d')](),_0x332837();});}[_0x52cf('0x12')](_0x4d4c9b){this['stopListening'](_0x4d4c9b);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x57e6=['length','addAnnotation','_getMaxAvailableTop','Sidebar','listenTo','_setItemTop','get','top','_detachFromContainer','minHeight','change:top','sidebar.preventScrollOutOfView','config','change:_lastItem','target','render','class','nodeType','_getItemBefore','sidebar.container','bottom','setContainer','height','remove','content','context','_annotationToSidebarItemView','last','_alignForBottomChange','_alignToTargetRect','delete','_sidebarItemViewToAnnotation','list','object','getSidebarItemView','_annotations','_alignForTopChange','view','_createSidebarView','push','locale','sidebar-setcontainer-invalid-element','_recalculate','change:targetRect','updateHeight','_lastItem','_activeAnnotation','_alignBeforeItem','_updateLastItem','isAnimationDisabled','isActive','_alignAfterItem','targetRect','_attachToContainer','pluginName','change:bottom','_getItemAfter','refresh','_destroySidebarItemView','_recalculateBuffer','stopListening','_targetTop','element','_getTargetTop','destroy','define','_spaceBetweenItems','container','rearrange','set','getIndex','add'];(function(_0x13ecf4,_0x57e649){const _0x4921b5=function(_0x130c5a){while(--_0x130c5a){_0x13ecf4['push'](_0x13ecf4['shift']());}};_0x4921b5(++_0x57e649);}(_0x57e6,0xb7));const _0x4921=function(_0x13ecf4,_0x57e649){_0x13ecf4=_0x13ecf4-0x0;let _0x4921b5=_0x57e6[_0x13ecf4];return _0x4921b5;};import{ContextPlugin as _0x43a69}from'ckeditor5/src/core';import{Rect as _0x2256b8,CKEditorError as _0x549218}from'ckeditor5/src/utils';import _0x3aa91b from'./view/sidebarview';import _0x1817e7 from'./view/sidebaritemview';export default class z extends _0x43a69{static get[_0x4921('0xf')](){return _0x4921('0x24');}constructor(_0x1b05c8){super(_0x1b05c8),this[_0x4921('0x1e')](_0x4921('0x6'),void 0x0),this[_0x4921('0x46')]=this[_0x4921('0x47')](),this[_0x4921('0x1e')](_0x4921('0x1c'),null),this[_0x4921('0x1b')]=0x19,this[_0x4921('0x40')]=new Map(),this[_0x4921('0x3b')]=new Map(),this[_0x4921('0x3a')][_0x4921('0x2d')][_0x4921('0x1a')](_0x4921('0x2c'),!0x1),this[_0x4921('0x44')]=null,this[_0x4921('0x7')]=null,this['_recalculateBuffer']=[];}['init'](){const _0x223d39=this['context'][_0x4921('0x2d')][_0x4921('0x27')](_0x4921('0x34'));_0x223d39&&this['setContainer'](_0x223d39);}[_0x4921('0x36')](_0x176e61){if(!y(_0x176e61))throw new _0x549218(_0x4921('0x2'));this['container']=_0x176e61;}[_0x4921('0xe')]({viewClass:_0x3bac11='',spaceBetweenItems:_0x4d0f91=0x19}={}){if(!y(this[_0x4921('0x1c')]))throw new _0x549218('sidebar-attachtocontainer-missing-container',this);this[_0x4921('0x1c')]['appendChild'](this[_0x4921('0x46')]['element']),this[_0x4921('0x46')][_0x4921('0x31')]=_0x3bac11,this['_spaceBetweenItems']=_0x4d0f91;}[_0x4921('0x1d')]({removedAnnotation:_0x4fa89d,previousAnnotation:_0x24b287,nextAnnotation:_0x204cae}){const _0x113c98=this[_0x4921('0x43')](_0x4fa89d);this[_0x4921('0x46')][_0x4921('0x41')][_0x4921('0x38')](_0x113c98),this[_0x4921('0x13')](_0x4fa89d),_0x24b287&&this[_0x4921('0x3e')](this[_0x4921('0x43')](_0x24b287)),_0x204cae&&this['_alignToTargetRect'](this[_0x4921('0x43')](_0x204cae)),this[_0x4921('0x9')]();}[_0x4921('0x12')]({blurredAnnotation:_0x2ead7f,activatedAnnotation:_0x56e088,disableAnimationOnActivatedAnnotation:_0x184f53}){if(this[_0x4921('0x7')]=_0x56e088,_0x2ead7f){_0x2ead7f[_0x4921('0xb')]=!0x1;const _0x250263=this[_0x4921('0x43')](_0x2ead7f);_0x250263&&_0x184f53&&(_0x250263['isAnimationDisabled']=!0x1);}if(_0x56e088){const _0x5e6836=this[_0x4921('0x43')](_0x56e088);_0x5e6836&&(_0x56e088[_0x4921('0xb')]=!0x0,_0x184f53&&(_0x5e6836[_0x4921('0xa')]=!0x0,_0x5e6836[_0x4921('0x28')]+=0x1),this[_0x4921('0x3e')](_0x5e6836));}}[_0x4921('0x29')](_0x3858c2){if(this[_0x4921('0x46')]['element'][_0x4921('0x38')](),_0x3858c2)for(const _0x17f9fc of _0x3858c2)this['_destroySidebarItemView'](_0x17f9fc);this['view']['list']['clear'](),this[_0x4921('0x46')][_0x4921('0x31')]='',this[_0x4921('0x6')]=null;}[_0x4921('0x22')](_0xe2d324,_0x546e41){_0x546e41||(_0x546e41=_0xe2d324[_0x4921('0x46')]);const _0xc44ccf=new _0x1817e7(this['context'][_0x4921('0x1')]);this[_0x4921('0x40')][_0x4921('0x1e')](_0xc44ccf,_0xe2d324),this[_0x4921('0x3b')][_0x4921('0x1e')](_0xe2d324,_0xc44ccf),_0xc44ccf[_0x4921('0x39')][_0x4921('0x20')](_0x546e41),this[_0x4921('0x25')](_0xe2d324[_0x4921('0x46')],_0x4921('0x4'),(_0x51cf35,_0x1c5174,_0x5360a5)=>{const _0x297188=this[_0x4921('0x18')](_0xe2d324,_0x5360a5);_0xc44ccf[_0x4921('0x16')]!=_0x297188&&(_0xc44ccf[_0x4921('0x16')]=_0x297188,this[_0x4921('0x26')](_0xc44ccf,_0x297188));}),this[_0x4921('0x25')](_0xc44ccf,_0x4921('0x2b'),()=>{this[_0x4921('0x3')](_0xc44ccf,_0x4921('0x28'));}),this[_0x4921('0x25')](_0xc44ccf,_0x4921('0x10'),()=>{this[_0x4921('0x3')](_0xc44ccf,_0x4921('0x35'));}),this[_0x4921('0x3e')](_0xc44ccf);const _0x515fca=this[_0x4921('0x33')](_0xc44ccf);if(_0x515fca)this[_0x4921('0xc')](_0x515fca,_0xc44ccf)||this['_alignToTargetRect'](_0xc44ccf);else this[_0x4921('0x3e')](_0xc44ccf);return this[_0x4921('0x9')](),this['view'][_0x4921('0x41')]['add'](_0xc44ccf),_0xc44ccf;}['_alignForTopChange'](_0x546d2f){if(!_0x546d2f['content'][_0x4921('0x21')])return;const _0x419165=this[_0x4921('0x33')](_0x546d2f);if(!_0x419165)return;const _0x507520=this['_sidebarItemViewToAnnotation'][_0x4921('0x27')](_0x419165),_0x22f1af=this[_0x4921('0x7')];_0x22f1af&&_0x22f1af===_0x507520?this['_alignAfterItem'](_0x419165,_0x546d2f):this[_0x4921('0x8')](_0x546d2f,_0x419165);}[_0x4921('0x3d')](_0x5221f5){if(!_0x5221f5[_0x4921('0x39')][_0x4921('0x21')])return;const _0x150c06=this[_0x4921('0x11')](_0x5221f5);if(!_0x150c06)return;const _0x4df37a=this[_0x4921('0x40')][_0x4921('0x27')](_0x150c06),_0x419715=this[_0x4921('0x3a')][_0x4921('0x2d')][_0x4921('0x27')](_0x4921('0x2c')),_0x55e381=this['_activeAnnotation'];_0x55e381&&_0x55e381===_0x4df37a&&_0x419715?(this[_0x4921('0x8')](_0x150c06,_0x5221f5),this[_0x4921('0xc')](_0x5221f5,_0x150c06)):_0x55e381&&_0x55e381===_0x4df37a?this[_0x4921('0x8')](_0x150c06,_0x5221f5):this[_0x4921('0xc')](_0x5221f5,_0x150c06);}['_recalculate'](_0x337064,_0x90817e){0x0===this[_0x4921('0x14')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x52f452,changedProp:_0x588dab}of this[_0x4921('0x14')])_0x4921('0x28')===_0x588dab?this[_0x4921('0x45')](_0x52f452):this['_alignForBottomChange'](_0x52f452);this['_recalculateBuffer']=[];},0xa),this[_0x4921('0x14')][_0x4921('0x0')]({'sidebarItemView':_0x337064,'changedProp':_0x90817e});}[_0x4921('0x43')](_0x4df3b9){return this[_0x4921('0x3b')]['get'](_0x4df3b9);}['destroy'](){this['stopListening'](),this[_0x4921('0x46')][_0x4921('0x19')]();}[_0x4921('0x13')](_0x1efe70){const _0x467fa9=this[_0x4921('0x43')](_0x1efe70);this[_0x4921('0x15')](_0x467fa9),this['stopListening'](_0x1efe70[_0x4921('0x46')]),_0x467fa9[_0x4921('0x19')](),this[_0x4921('0x3b')]['delete'](_0x1efe70),this['_sidebarItemViewToAnnotation'][_0x4921('0x3f')](_0x467fa9);}[_0x4921('0x47')](){const _0x122e6e=new _0x3aa91b(this[_0x4921('0x3a')]['locale']);return _0x122e6e[_0x4921('0x30')](),this['on'](_0x4921('0x2e'),(_0x4200d6,_0x446136,_0x4a9f99,_0x52ad79)=>{_0x52ad79&&_0x122e6e['unbind'](_0x4921('0x2a')),_0x4a9f99?_0x122e6e['bind'](_0x4921('0x2a'))['to'](_0x4a9f99,_0x4921('0x35')):_0x122e6e[_0x4921('0x2a')]=null;}),_0x122e6e;}['_updateLastItem'](){var _0xea0ff5;this[_0x4921('0x6')]=(null===(_0xea0ff5=this['_annotations'])||void 0x0===_0xea0ff5?void 0x0:_0xea0ff5[_0x4921('0x3c')])?this[_0x4921('0x43')](this['_annotations']['last']):null;}[_0x4921('0x33')](_0x4d7655){var _0x30b67a;const _0x334d64=this[_0x4921('0x40')]['get'](_0x4d7655),_0x21aaa8=_0x334d64&&(null===(_0x30b67a=this[_0x4921('0x44')])||void 0x0===_0x30b67a?void 0x0:_0x30b67a[_0x4921('0x27')](this[_0x4921('0x44')][_0x4921('0x1f')](_0x334d64)-0x1));return _0x21aaa8&&this[_0x4921('0x43')](_0x21aaa8)||null;}['_getItemAfter'](_0x3995fb){var _0x531cbe;const _0x1887db=this[_0x4921('0x40')][_0x4921('0x27')](_0x3995fb),_0x25ac17=_0x1887db&&(null===(_0x531cbe=this[_0x4921('0x44')])||void 0x0===_0x531cbe?void 0x0:_0x531cbe['get'](this[_0x4921('0x44')][_0x4921('0x1f')](_0x1887db)+0x1));return _0x25ac17&&this[_0x4921('0x43')](_0x25ac17)||null;}[_0x4921('0x8')](_0x1b1600,_0x4d647b){_0x1b1600['updateHeight']();const _0x2bbff0=H(_0x4d647b[_0x4921('0x35')]+this['_spaceBetweenItems'],_0x1b1600[_0x4921('0x28')]);return!!_0x2bbff0&&(this[_0x4921('0x26')](_0x4d647b,_0x4d647b[_0x4921('0x28')]-_0x2bbff0),!0x0);}['_alignAfterItem'](_0x52bdc0,_0x34efe0){_0x52bdc0[_0x4921('0x5')]();const _0x3d2b8a=H(_0x52bdc0[_0x4921('0x35')]+this[_0x4921('0x1b')],_0x34efe0[_0x4921('0x28')]);return!!_0x3d2b8a&&(this[_0x4921('0x26')](_0x34efe0,_0x34efe0['top']+_0x3d2b8a,!0x1),!0x0);}[_0x4921('0x3e')](_0x1a38da){const _0x4b795a=this[_0x4921('0x40')]['get'](_0x1a38da);if(!_0x4b795a||!_0x4b795a[_0x4921('0x2f')]||!_0x4b795a[_0x4921('0xd')])return;const _0xac0d6d=this[_0x4921('0x18')](_0x4b795a,_0x4b795a[_0x4921('0xd')]);this[_0x4921('0x26')](_0x1a38da,_0xac0d6d);}[_0x4921('0x18')](_0x132e5c,_0x6d8fde){if(null===_0x6d8fde)return 0x0;if(_0x132e5c[_0x4921('0x2f')]instanceof _0x2256b8)return _0x6d8fde[_0x4921('0x28')];{const _0x4641e3=new _0x2256b8(this['view'][_0x4921('0x17')])['top'];return _0x6d8fde[_0x4921('0x28')]-_0x4641e3;}}['_setItemTop'](_0x30e26b,_0x1df2f5,_0x4957ea=this[_0x4921('0x3a')][_0x4921('0x2d')]['get'](_0x4921('0x2c'))){_0x4957ea&&(_0x1df2f5=Math['max'](_0x1df2f5,this[_0x4921('0x23')](_0x30e26b))),_0x30e26b[_0x4921('0x28')]=_0x1df2f5;}[_0x4921('0x23')](_0x61b851){let _0x26c35f=this[_0x4921('0x33')](_0x61b851),_0x4b414c=0x0;for(;_0x26c35f;)_0x26c35f[_0x4921('0x5')](),_0x4b414c+=this[_0x4921('0x1b')]+_0x26c35f[_0x4921('0x37')],_0x26c35f=this[_0x4921('0x33')](_0x26c35f);return _0x4b414c;}}function H(_0x5bf3bf,_0x4eec01){return Math['max'](_0x5bf3bf-_0x4eec01,0x0);}function y(_0x5b624a){return null!==_0x5b624a&&_0x4921('0x42')==typeof _0x5b624a&&0x1===_0x5b624a[_0x4921('0x32')];}
23
+ const _0x3192=['isAnimationDisabled','locale','sidebar.preventScrollOutOfView','getSidebarItemView','render','getIndex','set','top','rearrange','_alignForTopChange','get','_targetTop','setContainer','change:targetRect','define','bottom','list','stopListening','targetRect','_getItemAfter','context','updateHeight','last','addAnnotation','add','nodeType','_getTargetTop','_sidebarItemViewToAnnotation','_updateLastItem','_createSidebarView','_annotationToSidebarItemView','_getMaxAvailableTop','_alignForBottomChange','change:_lastItem','minHeight','change:top','length','content','config','_alignAfterItem','_annotations','destroy','_lastItem','_recalculate','listenTo','change:bottom','sidebar.container','container','max','_spaceBetweenItems','target','sidebar-attachtocontainer-missing-container','refresh','view','remove','_alignBeforeItem','object','isActive','_alignToTargetRect','Sidebar','clear','class','element','_getItemBefore','_recalculateBuffer','sidebar-setcontainer-invalid-element','push','_setItemTop','bind','_destroySidebarItemView','_activeAnnotation','_attachToContainer'];(function(_0x5be2a4,_0x31928e){const _0x4d31c3=function(_0x3c98c4){while(--_0x3c98c4){_0x5be2a4['push'](_0x5be2a4['shift']());}};_0x4d31c3(++_0x31928e);}(_0x3192,0x1e6));const _0x4d31=function(_0x5be2a4,_0x31928e){_0x5be2a4=_0x5be2a4-0x0;let _0x4d31c3=_0x3192[_0x5be2a4];return _0x4d31c3;};import{ContextPlugin as _0xc11ca3}from'ckeditor5/src/core';import{Rect as _0x42d376,CKEditorError as _0xfe0a75}from'ckeditor5/src/utils';import _0x368a48 from'./view/sidebarview';import _0x1ba18b from'./view/sidebaritemview';export default class z extends _0xc11ca3{static get['pluginName'](){return _0x4d31('0x5');}constructor(_0x36a906){super(_0x36a906),this[_0x4d31('0x18')](_0x4d31('0x3c'),void 0x0),this['view']=this[_0x4d31('0x2f')](),this[_0x4d31('0x18')](_0x4d31('0x41'),null),this[_0x4d31('0x43')]=0x19,this[_0x4d31('0x2d')]=new Map(),this[_0x4d31('0x30')]=new Map(),this[_0x4d31('0x26')]['config'][_0x4d31('0x20')](_0x4d31('0x14'),!0x1),this[_0x4d31('0x3a')]=null,this[_0x4d31('0x10')]=null,this[_0x4d31('0xa')]=[];}['init'](){const _0x13a68b=this[_0x4d31('0x26')][_0x4d31('0x38')][_0x4d31('0x1c')](_0x4d31('0x40'));_0x13a68b&&this[_0x4d31('0x1e')](_0x13a68b);}[_0x4d31('0x1e')](_0x253d78){if(!y(_0x253d78))throw new _0xfe0a75(_0x4d31('0xb'));this[_0x4d31('0x41')]=_0x253d78;}[_0x4d31('0x11')]({viewClass:_0x5a1fcc='',spaceBetweenItems:_0x4ca3ac=0x19}={}){if(!y(this[_0x4d31('0x41')]))throw new _0xfe0a75(_0x4d31('0x45'),this);this['container']['appendChild'](this[_0x4d31('0x47')][_0x4d31('0x8')]),this[_0x4d31('0x47')]['class']=_0x5a1fcc,this['_spaceBetweenItems']=_0x4ca3ac;}[_0x4d31('0x1a')]({removedAnnotation:_0x40b166,previousAnnotation:_0x3b5f3e,nextAnnotation:_0x2fe1a5}){const _0x375837=this[_0x4d31('0x15')](_0x40b166);this['view'][_0x4d31('0x22')][_0x4d31('0x0')](_0x375837),this[_0x4d31('0xf')](_0x40b166),_0x3b5f3e&&this[_0x4d31('0x4')](this[_0x4d31('0x15')](_0x3b5f3e)),_0x2fe1a5&&this[_0x4d31('0x4')](this['getSidebarItemView'](_0x2fe1a5)),this[_0x4d31('0x2e')]();}[_0x4d31('0x46')]({blurredAnnotation:_0x2c4c0a,activatedAnnotation:_0x4f107b,disableAnimationOnActivatedAnnotation:_0x1a7568}){if(this['_activeAnnotation']=_0x4f107b,_0x2c4c0a){_0x2c4c0a[_0x4d31('0x3')]=!0x1;const _0x4230c8=this[_0x4d31('0x15')](_0x2c4c0a);_0x4230c8&&_0x1a7568&&(_0x4230c8[_0x4d31('0x12')]=!0x1);}if(_0x4f107b){const _0x56af1a=this[_0x4d31('0x15')](_0x4f107b);_0x56af1a&&(_0x4f107b[_0x4d31('0x3')]=!0x0,_0x1a7568&&(_0x56af1a['isAnimationDisabled']=!0x0,_0x56af1a[_0x4d31('0x19')]+=0x1),this[_0x4d31('0x4')](_0x56af1a));}}['_detachFromContainer'](_0x4fc5e1){if(this['view']['element'][_0x4d31('0x0')](),_0x4fc5e1)for(const _0x2536d1 of _0x4fc5e1)this[_0x4d31('0xf')](_0x2536d1);this[_0x4d31('0x47')][_0x4d31('0x22')][_0x4d31('0x6')](),this['view'][_0x4d31('0x7')]='',this[_0x4d31('0x3c')]=null;}[_0x4d31('0x29')](_0x55eee4,_0x57e08e){_0x57e08e||(_0x57e08e=_0x55eee4[_0x4d31('0x47')]);const _0x328dce=new _0x1ba18b(this[_0x4d31('0x26')][_0x4d31('0x13')]);this['_sidebarItemViewToAnnotation'][_0x4d31('0x18')](_0x328dce,_0x55eee4),this[_0x4d31('0x30')][_0x4d31('0x18')](_0x55eee4,_0x328dce),_0x328dce[_0x4d31('0x37')]['add'](_0x57e08e),this['listenTo'](_0x55eee4[_0x4d31('0x47')],_0x4d31('0x1f'),(_0x3f1eba,_0x2a14c7,_0x388b98)=>{const _0x5e8ff8=this[_0x4d31('0x2c')](_0x55eee4,_0x388b98);_0x328dce[_0x4d31('0x1d')]!=_0x5e8ff8&&(_0x328dce['_targetTop']=_0x5e8ff8,this['_setItemTop'](_0x328dce,_0x5e8ff8));}),this[_0x4d31('0x3e')](_0x328dce,_0x4d31('0x35'),()=>{this[_0x4d31('0x3d')](_0x328dce,_0x4d31('0x19'));}),this[_0x4d31('0x3e')](_0x328dce,_0x4d31('0x3f'),()=>{this['_recalculate'](_0x328dce,'bottom');}),this[_0x4d31('0x4')](_0x328dce);const _0x5551b3=this[_0x4d31('0x9')](_0x328dce);if(_0x5551b3)this[_0x4d31('0x39')](_0x5551b3,_0x328dce)||this[_0x4d31('0x4')](_0x328dce);else this[_0x4d31('0x4')](_0x328dce);return this[_0x4d31('0x2e')](),this['view']['list'][_0x4d31('0x2a')](_0x328dce),_0x328dce;}[_0x4d31('0x1b')](_0x499ede){if(!_0x499ede[_0x4d31('0x37')][_0x4d31('0x36')])return;const _0x544ad6=this['_getItemBefore'](_0x499ede);if(!_0x544ad6)return;const _0x1b5290=this['_sidebarItemViewToAnnotation'][_0x4d31('0x1c')](_0x544ad6),_0x57b241=this[_0x4d31('0x10')];_0x57b241&&_0x57b241===_0x1b5290?this[_0x4d31('0x39')](_0x544ad6,_0x499ede):this['_alignBeforeItem'](_0x499ede,_0x544ad6);}[_0x4d31('0x32')](_0x3989ae){if(!_0x3989ae[_0x4d31('0x37')][_0x4d31('0x36')])return;const _0x436be6=this['_getItemAfter'](_0x3989ae);if(!_0x436be6)return;const _0x52d7b0=this[_0x4d31('0x2d')][_0x4d31('0x1c')](_0x436be6),_0x20bbf3=this[_0x4d31('0x26')]['config'][_0x4d31('0x1c')](_0x4d31('0x14')),_0x317b58=this['_activeAnnotation'];_0x317b58&&_0x317b58===_0x52d7b0&&_0x20bbf3?(this[_0x4d31('0x1')](_0x436be6,_0x3989ae),this[_0x4d31('0x39')](_0x3989ae,_0x436be6)):_0x317b58&&_0x317b58===_0x52d7b0?this[_0x4d31('0x1')](_0x436be6,_0x3989ae):this[_0x4d31('0x39')](_0x3989ae,_0x436be6);}[_0x4d31('0x3d')](_0x292e3a,_0x596ecd){0x0===this[_0x4d31('0xa')][_0x4d31('0x36')]&&setTimeout(()=>{for(const {sidebarItemView:_0x539f86,changedProp:_0x118bf0}of this[_0x4d31('0xa')])_0x4d31('0x19')===_0x118bf0?this['_alignForTopChange'](_0x539f86):this[_0x4d31('0x32')](_0x539f86);this[_0x4d31('0xa')]=[];},0xa),this[_0x4d31('0xa')][_0x4d31('0xc')]({'sidebarItemView':_0x292e3a,'changedProp':_0x596ecd});}[_0x4d31('0x15')](_0x7dbc52){return this[_0x4d31('0x30')][_0x4d31('0x1c')](_0x7dbc52);}[_0x4d31('0x3b')](){this[_0x4d31('0x23')](),this['view']['destroy']();}['_destroySidebarItemView'](_0x97b82f){const _0x385642=this['getSidebarItemView'](_0x97b82f);this['stopListening'](_0x385642),this[_0x4d31('0x23')](_0x97b82f[_0x4d31('0x47')]),_0x385642[_0x4d31('0x3b')](),this['_annotationToSidebarItemView']['delete'](_0x97b82f),this['_sidebarItemViewToAnnotation']['delete'](_0x385642);}[_0x4d31('0x2f')](){const _0x27b7f7=new _0x368a48(this[_0x4d31('0x26')][_0x4d31('0x13')]);return _0x27b7f7[_0x4d31('0x16')](),this['on'](_0x4d31('0x33'),(_0x4245de,_0x3599ca,_0x47a10,_0x32eecd)=>{_0x32eecd&&_0x27b7f7['unbind'](_0x4d31('0x34')),_0x47a10?_0x27b7f7[_0x4d31('0xe')](_0x4d31('0x34'))['to'](_0x47a10,'bottom'):_0x27b7f7[_0x4d31('0x34')]=null;}),_0x27b7f7;}[_0x4d31('0x2e')](){var _0x2e6ce6;this[_0x4d31('0x3c')]=(null===(_0x2e6ce6=this[_0x4d31('0x3a')])||void 0x0===_0x2e6ce6?void 0x0:_0x2e6ce6[_0x4d31('0x28')])?this[_0x4d31('0x15')](this[_0x4d31('0x3a')][_0x4d31('0x28')]):null;}[_0x4d31('0x9')](_0x16688c){var _0xbd6419;const _0x281f42=this['_sidebarItemViewToAnnotation']['get'](_0x16688c),_0x68fcd4=_0x281f42&&(null===(_0xbd6419=this[_0x4d31('0x3a')])||void 0x0===_0xbd6419?void 0x0:_0xbd6419[_0x4d31('0x1c')](this[_0x4d31('0x3a')][_0x4d31('0x17')](_0x281f42)-0x1));return _0x68fcd4&&this['getSidebarItemView'](_0x68fcd4)||null;}[_0x4d31('0x25')](_0xce9ad){var _0x435a9f;const _0x341b70=this[_0x4d31('0x2d')][_0x4d31('0x1c')](_0xce9ad),_0xe850b7=_0x341b70&&(null===(_0x435a9f=this[_0x4d31('0x3a')])||void 0x0===_0x435a9f?void 0x0:_0x435a9f['get'](this[_0x4d31('0x3a')][_0x4d31('0x17')](_0x341b70)+0x1));return _0xe850b7&&this['getSidebarItemView'](_0xe850b7)||null;}[_0x4d31('0x1')](_0x382b97,_0x515ed7){_0x382b97[_0x4d31('0x27')]();const _0x580b29=H(_0x515ed7[_0x4d31('0x21')]+this[_0x4d31('0x43')],_0x382b97['top']);return!!_0x580b29&&(this['_setItemTop'](_0x515ed7,_0x515ed7[_0x4d31('0x19')]-_0x580b29),!0x0);}[_0x4d31('0x39')](_0x2629ee,_0x1ab088){_0x2629ee[_0x4d31('0x27')]();const _0xc1d3ed=H(_0x2629ee[_0x4d31('0x21')]+this[_0x4d31('0x43')],_0x1ab088[_0x4d31('0x19')]);return!!_0xc1d3ed&&(this[_0x4d31('0xd')](_0x1ab088,_0x1ab088['top']+_0xc1d3ed,!0x1),!0x0);}[_0x4d31('0x4')](_0x1f3ea7){const _0xad6cb8=this['_sidebarItemViewToAnnotation'][_0x4d31('0x1c')](_0x1f3ea7);if(!_0xad6cb8||!_0xad6cb8[_0x4d31('0x44')]||!_0xad6cb8[_0x4d31('0x24')])return;const _0x3ad36e=this['_getTargetTop'](_0xad6cb8,_0xad6cb8[_0x4d31('0x24')]);this[_0x4d31('0xd')](_0x1f3ea7,_0x3ad36e);}['_getTargetTop'](_0x6eac79,_0x21d3f6){if(null===_0x21d3f6)return 0x0;if(_0x6eac79[_0x4d31('0x44')]instanceof _0x42d376)return _0x21d3f6['top'];{const _0x54e404=new _0x42d376(this[_0x4d31('0x47')]['element'])[_0x4d31('0x19')];return _0x21d3f6[_0x4d31('0x19')]-_0x54e404;}}['_setItemTop'](_0x1640f3,_0xcf6a30,_0xbf1bb7=this[_0x4d31('0x26')][_0x4d31('0x38')][_0x4d31('0x1c')](_0x4d31('0x14'))){_0xbf1bb7&&(_0xcf6a30=Math[_0x4d31('0x42')](_0xcf6a30,this['_getMaxAvailableTop'](_0x1640f3))),_0x1640f3[_0x4d31('0x19')]=_0xcf6a30;}[_0x4d31('0x31')](_0x14410c){let _0x4d6d98=this['_getItemBefore'](_0x14410c),_0x5ccc5a=0x0;for(;_0x4d6d98;)_0x4d6d98[_0x4d31('0x27')](),_0x5ccc5a+=this[_0x4d31('0x43')]+_0x4d6d98['height'],_0x4d6d98=this[_0x4d31('0x9')](_0x4d6d98);return _0x5ccc5a;}}function H(_0x9f24eb,_0x30284f){return Math['max'](_0x9f24eb-_0x30284f,0x0);}function y(_0x231de6){return null!==_0x231de6&&_0x4d31('0x2')==typeof _0x231de6&&0x1===_0x231de6[_0x4d31('0x2b')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e84=['isDirty','set','icon','ck-annotation-counter__badge--edit-mode','number','children','extendTemplate','ck-annotation-counter__badge','bind','...','ck-annotation-counter__badge--','bindTemplate','toString','span','setTemplate','counterView','_badge'];(function(_0x173172,_0x4e8469){const _0x4af415=function(_0x404af9){while(--_0x404af9){_0x173172['push'](_0x173172['shift']());}};_0x4af415(++_0x4e8469);}(_0x4e84,0xc5));const _0x4af4=function(_0x173172,_0x4e8469){_0x173172=_0x173172-0x0;let _0x4af415=_0x4e84[_0x173172];return _0x4af415;};import{ButtonView as _0x122dff,View as _0x14bb3c}from'ckeditor5/src/ui';import _0x13beac from'../../../theme/icons/add-comment.svg';export default class D extends _0x122dff{constructor(_0x527348){super(_0x527348);const _0x51468b=this[_0x4af4('0x1')];this[_0x4af4('0x8')](_0x4af4('0x7'),!0x1),this[_0x4af4('0x8')](_0x4af4('0xb'),0x0),this[_0x4af4('0xf')](_0x4af4('0x6'))['to'](this,_0x4af4('0x7'),this,_0x4af4('0xb'),(_0x2e6af3,_0x16c7ea)=>_0x2e6af3?_0x4af4('0x10'):_0x16c7ea[_0x4af4('0x2')]()),this[_0x4af4('0x8')]('annotationType',''),this[_0x4af4('0x9')]=_0x13beac,this[_0x4af4('0xd')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x4af4('0x5')]=new _0x14bb3c(),this[_0x4af4('0x5')][_0x4af4('0x4')]({'tag':_0x4af4('0x3'),'attributes':{'class':[_0x4af4('0xe'),_0x51468b['to']('annotationType',_0x42c4b0=>_0x4af4('0x0')+_0x42c4b0),_0x51468b['if'](_0x4af4('0x7'),_0x4af4('0xa'))]},'children':[{'text':_0x51468b['to'](_0x4af4('0x6'))}]}),this[_0x4af4('0xc')]['add'](this[_0x4af4('0x5')]);}}
23
+ const _0x1a7b=['ck-annotation-counter__badge--edit-mode','ck-annotation-counter__badge','counterView','bind','children','ck-annotation-counter','_badge','add','set','isDirty','toString','span','extendTemplate','setTemplate','...','annotationType','bindTemplate','number'];(function(_0x4a9727,_0x1a7b09){const _0x2c54e9=function(_0x1d2621){while(--_0x1d2621){_0x4a9727['push'](_0x4a9727['shift']());}};_0x2c54e9(++_0x1a7b09);}(_0x1a7b,0x19d));const _0x2c54=function(_0x4a9727,_0x1a7b09){_0x4a9727=_0x4a9727-0x0;let _0x2c54e9=_0x1a7b[_0x4a9727];return _0x2c54e9;};import{ButtonView as _0x32d46c,View as _0x27ae6d}from'ckeditor5/src/ui';import _0x722b41 from'../../../theme/icons/add-comment.svg';export default class D extends _0x32d46c{constructor(_0x11339c){super(_0x11339c);const _0x593539=this[_0x2c54('0x11')];this[_0x2c54('0x9')](_0x2c54('0xa'),!0x1),this[_0x2c54('0x9')](_0x2c54('0x0'),0x0),this[_0x2c54('0x4')](_0x2c54('0x7'))['to'](this,_0x2c54('0xa'),this,'number',(_0x432f0d,_0x347a21)=>_0x432f0d?_0x2c54('0xf'):_0x347a21[_0x2c54('0xb')]()),this['set'](_0x2c54('0x10'),''),this['icon']=_0x722b41,this[_0x2c54('0xd')]({'attributes':{'class':[_0x2c54('0x6')]}}),this[_0x2c54('0x3')]=new _0x27ae6d(),this[_0x2c54('0x3')][_0x2c54('0xe')]({'tag':_0x2c54('0xc'),'attributes':{'class':[_0x2c54('0x2'),_0x593539['to'](_0x2c54('0x10'),_0x315ee9=>'ck-annotation-counter__badge--'+_0x315ee9),_0x593539['if'](_0x2c54('0xa'),_0x2c54('0x1'))]},'children':[{'text':_0x593539['to'](_0x2c54('0x7'))}]}),this[_0x2c54('0x5')][_0x2c54('0x8')](this['counterView']);}}