@ckeditor/ckeditor5-comments 0.0.0-nightly-20240125.0 → 0.0.0-nightly-20240126.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-20240125.0",
3
+ "version": "0.0.0-nightly-20240126.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/)",
@@ -44,8 +44,8 @@
44
44
  "CHANGELOG.md"
45
45
  ],
46
46
  "dependencies": {
47
- "ckeditor5": "0.0.0-nightly-20240125.0",
48
- "ckeditor5-collaboration": "0.0.0-nightly-20240125.0",
47
+ "ckeditor5": "0.0.0-nightly-20240126.0",
48
+ "ckeditor5-collaboration": "0.0.0-nightly-20240126.0",
49
49
  "lodash-es": "4.17.21"
50
50
  },
51
51
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1938=['set','focusableElements','refreshVisibility','filter','offsetParent','_type','isActive','remove','_assertCorrectTarget','focusTracker','type','view','element','mainView','isArray','targetRect','isVisible','_getNormalizedTarget','stopListening','clear','annotation-invalid-target','getClientRects','render','add','function','every','_id','target','item','innerView','_target'];(function(_0x25201d,_0x193870){const _0x600685=function(_0x176521){while(--_0x176521){_0x25201d['push'](_0x25201d['shift']());}};_0x600685(++_0x193870);}(_0x1938,0x100));const _0x6006=function(_0x25201d,_0x193870){_0x25201d=_0x25201d-0x0;let _0x600685=_0x1938[_0x25201d];return _0x600685;};import{CKEditorError as _0x5abdb2,Rect as _0x3b6527,Collection as _0x5410da,ObservableMixin as _0x2ae5a8}from'ckeditor5/src/utils.js';export default class d extends _0x2ae5a8(){constructor({view:_0x30d907,target:_0x228946,type:_0xaf3fae,isVisible:_0x18de23=!0x0}){super(),this['view']=_0x30d907,this[_0x6006('0x3')][_0x6006('0x4')]||this['view'][_0x6006('0xe')](),this['_type']=_0xaf3fae,this[_0x6006('0x16')]=_0x228946,d[_0x6006('0x0')](this[_0x6006('0x9')]()),this[_0x6006('0x18')]=new _0x5410da([this[_0x6006('0x3')]['element']],{'idProperty':_0x6006('0x12')}),this[_0x6006('0x18')]['on'](_0x6006('0xf'),(_0x20f6e7,_0x328fb4)=>{this['view'][_0x6006('0x1')]['add'](_0x328fb4);}),this[_0x6006('0x18')]['on'](_0x6006('0x1e'),(_0xd3d844,_0x4e6b38)=>{this[_0x6006('0x3')][_0x6006('0x1')]['remove'](_0x4e6b38);}),this[_0x6006('0x17')](_0x6006('0x8'),_0x18de23);}get[_0x6006('0x2')](){return _0x6006('0x10')==typeof this['_type']?this[_0x6006('0x1c')]():this['_type'];}get[_0x6006('0x15')](){return this[_0x6006('0x3')][_0x6006('0x5')];}get['target'](){const _0x17a231=this[_0x6006('0x9')]();return d[_0x6006('0x0')](_0x17a231),_0x17a231;}get[_0x6006('0x7')](){const _0x36feb6=this[_0x6006('0x13')];if(null===_0x36feb6)return null;if(_0x36feb6 instanceof _0x3b6527)return _0x36feb6;const _0x1724d0=_0x36feb6[_0x6006('0x1a')](_0x318af3=>function(_0x497efc){const _0x4e711d=_0x497efc[_0x6006('0x1b')];if(_0x4e711d)return!0x0;const _0x2c941b=_0x497efc[_0x6006('0xd')]()[_0x6006('0x14')](0x0);return!!_0x2c941b;}(_0x318af3));return 0x0===_0x1724d0['length']?null:new _0x3b6527(_0x1724d0[0x0][_0x6006('0xd')]()[_0x6006('0x14')](0x0));}get[_0x6006('0x1d')](){return this[_0x6006('0x3')][_0x6006('0x1d')];}set[_0x6006('0x1d')](_0x5700eb){this[_0x6006('0x3')][_0x6006('0x1d')]=_0x5700eb,this[_0x6006('0x3')][_0x6006('0x5')][_0x6006('0x1d')]=_0x5700eb;}['updateTargetRect'](){this['view']['targetRect']=this[_0x6006('0x7')];}['destroy'](){this[_0x6006('0x18')][_0x6006('0xa')](),this['focusableElements'][_0x6006('0xb')](),this[_0x6006('0xa')]();}[_0x6006('0x19')](){this[_0x6006('0x8')]=!!this[_0x6006('0x7')];}static[_0x6006('0x0')](_0x1b1b1b){if(!(null===_0x1b1b1b||_0x1b1b1b instanceof _0x3b6527||Array[_0x6006('0x6')](_0x1b1b1b)&&_0x1b1b1b[_0x6006('0x11')](_0x36b33e=>y(_0x36b33e))))throw new _0x5abdb2(_0x6006('0xc'),null,{'target':_0x1b1b1b});}[_0x6006('0x9')](){const _0x41166e=_0x6006('0x10')==typeof this[_0x6006('0x16')]?this['_target']():this['_target'];return y(_0x41166e)?[_0x41166e]:_0x41166e;}}function y(_0x4b3dd2){return null!==_0x4b3dd2&&'object'==typeof _0x4b3dd2&&'nodeType'in _0x4b3dd2&&0x1===_0x4b3dd2['nodeType'];}
23
+ const _0x1d02=['set','focusableElements','refreshVisibility','targetRect','item','stopListening','filter','render','function','view','nodeType','add','_target','mainView','_id','target','isArray','updateTargetRect','destroy','_assertCorrectTarget','focusTracker','remove','element','isActive','getClientRects','innerView','every','type','object','isVisible','clear','_type','_getNormalizedTarget','annotation-invalid-target'];(function(_0x2d459a,_0x1d02b3){const _0x344b36=function(_0xc99b06){while(--_0xc99b06){_0x2d459a['push'](_0x2d459a['shift']());}};_0x344b36(++_0x1d02b3);}(_0x1d02,0x122));const _0x344b=function(_0x2d459a,_0x1d02b3){_0x2d459a=_0x2d459a-0x0;let _0x344b36=_0x1d02[_0x2d459a];return _0x344b36;};import{CKEditorError as _0xf67982,Rect as _0x1f2580,Collection as _0x345724,ObservableMixin as _0x5aaafe}from'ckeditor5/src/utils.js';export default class d extends _0x5aaafe(){constructor({view:_0x118086,target:_0x137a1b,type:_0x5bfba4,isVisible:_0x3186bc=!0x0}){super(),this[_0x344b('0x19')]=_0x118086,this[_0x344b('0x19')][_0x344b('0x4')]||this[_0x344b('0x19')][_0x344b('0x17')](),this[_0x344b('0xd')]=_0x5bfba4,this[_0x344b('0x1c')]=_0x137a1b,d[_0x344b('0x1')](this[_0x344b('0xe')]()),this[_0x344b('0x11')]=new _0x345724([this[_0x344b('0x19')][_0x344b('0x4')]],{'idProperty':_0x344b('0x1e')}),this[_0x344b('0x11')]['on']('add',(_0x2c8665,_0x135596)=>{this[_0x344b('0x19')][_0x344b('0x2')][_0x344b('0x1b')](_0x135596);}),this[_0x344b('0x11')]['on'](_0x344b('0x3'),(_0x241a93,_0x9eb40d)=>{this[_0x344b('0x19')][_0x344b('0x2')][_0x344b('0x3')](_0x9eb40d);}),this[_0x344b('0x10')](_0x344b('0xb'),_0x3186bc);}get[_0x344b('0x9')](){return _0x344b('0x18')==typeof this['_type']?this['_type']():this[_0x344b('0xd')];}get[_0x344b('0x7')](){return this[_0x344b('0x19')][_0x344b('0x1d')];}get[_0x344b('0x1f')](){const _0x5aee1e=this[_0x344b('0xe')]();return d[_0x344b('0x1')](_0x5aee1e),_0x5aee1e;}get[_0x344b('0x13')](){const _0x2a20f0=this['target'];if(null===_0x2a20f0)return null;if(_0x2a20f0 instanceof _0x1f2580)return _0x2a20f0;const _0x2315ea=_0x2a20f0[_0x344b('0x16')](_0x362560=>function(_0x141c7f){const _0x50a01c=_0x141c7f['offsetParent'];if(_0x50a01c)return!0x0;const _0x2778f3=_0x141c7f[_0x344b('0x6')]()[_0x344b('0x14')](0x0);return!!_0x2778f3;}(_0x362560));return 0x0===_0x2315ea['length']?null:new _0x1f2580(_0x2315ea[0x0][_0x344b('0x6')]()[_0x344b('0x14')](0x0));}get[_0x344b('0x5')](){return this[_0x344b('0x19')]['isActive'];}set[_0x344b('0x5')](_0x1c0729){this[_0x344b('0x19')][_0x344b('0x5')]=_0x1c0729,this['view'][_0x344b('0x1d')][_0x344b('0x5')]=_0x1c0729;}[_0x344b('0x21')](){this[_0x344b('0x19')][_0x344b('0x13')]=this[_0x344b('0x13')];}[_0x344b('0x0')](){this[_0x344b('0x11')]['stopListening'](),this['focusableElements'][_0x344b('0xc')](),this[_0x344b('0x15')]();}[_0x344b('0x12')](){this[_0x344b('0xb')]=!!this['targetRect'];}static[_0x344b('0x1')](_0x4897e4){if(!(null===_0x4897e4||_0x4897e4 instanceof _0x1f2580||Array[_0x344b('0x20')](_0x4897e4)&&_0x4897e4[_0x344b('0x8')](_0x4f7b3c=>y(_0x4f7b3c))))throw new _0xf67982(_0x344b('0xf'),null,{'target':_0x4897e4});}['_getNormalizedTarget'](){const _0x4e5804='function'==typeof this[_0x344b('0x1c')]?this[_0x344b('0x1c')]():this[_0x344b('0x1c')];return y(_0x4e5804)?[_0x4e5804]:_0x4e5804;}}function y(_0x168134){return null!==_0x168134&&_0x344b('0xa')==typeof _0x168134&&_0x344b('0x1a')in _0x168134&&0x1===_0x168134[_0x344b('0x1a')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5dee=['delete','change:isFocused','listenTo','_innerViewToAnnotation','_getOrderInContent','getIndex','view','focusableElements','from','annotationcollection-not-existing-item','fire','length','left','top','getByInnerView','_viewToAnnotation','_focusTracker','set','focusTracker','blur','get','_sort','innerView','has','stopListening','sort','refreshPositioning','destroy','add','remove','targetRect','clear'];(function(_0x2b12bf,_0x5deeac){const _0x10de3c=function(_0x13abb6){while(--_0x13abb6){_0x2b12bf['push'](_0x2b12bf['shift']());}};_0x10de3c(++_0x5deeac);}(_0x5dee,0x119));const _0x10de=function(_0x2b12bf,_0x5deeac){_0x2b12bf=_0x2b12bf-0x0;let _0x10de3c=_0x5dee[_0x2b12bf];return _0x10de3c;};import{CKEditorError as _0x14fb32,Collection as _0x5091aa,FocusTracker as _0x2d1ca8}from'ckeditor5/src/utils.js';export default class x extends _0x5091aa{constructor(_0x39bf7c=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x10de('0x16')]=new Map(),this[_0x10de('0x17')]=new _0x2d1ca8(),this['_focusTracker']['on'](_0x10de('0x8'),(_0x361c32,_0x3ed5b1,_0x3138e4)=>{_0x3138e4||this[_0x10de('0x11')](_0x10de('0x1a'));});for(const _0x30cefa of _0x39bf7c)this[_0x10de('0x3')](_0x30cefa);}get['isFocused'](){return this['_focusTracker']['isFocused'];}[_0x10de('0x3')](_0x256989){if(this[_0x10de('0x1e')](_0x256989))throw new _0x14fb32('annotationcollection-duplicated-item',null);this[_0x10de('0xa')][_0x10de('0x18')](_0x256989[_0x10de('0x1d')],_0x256989),this[_0x10de('0x16')][_0x10de('0x18')](_0x256989[_0x10de('0xd')],_0x256989);for(const _0x13b1ee of _0x256989[_0x10de('0xe')])this['_focusTracker'][_0x10de('0x3')](_0x13b1ee);this[_0x10de('0x9')](_0x256989[_0x10de('0xe')],_0x10de('0x3'),(_0x2ca508,_0x1aaf7e)=>{this[_0x10de('0x17')][_0x10de('0x3')](_0x1aaf7e);}),this['listenTo'](_0x256989[_0x10de('0xe')],_0x10de('0x4'),(_0xc40f71,_0x5c3655)=>{this['_focusTracker'][_0x10de('0x4')](_0x5c3655);}),this[_0x10de('0x9')](_0x256989['view'][_0x10de('0x19')],_0x10de('0x8'),(_0x344299,_0x4ce351,_0x3cc0fc)=>{_0x3cc0fc&&this[_0x10de('0x11')]('focus',_0x256989);}),_0x256989['updateTargetRect']();const _0x533df4=this[_0x10de('0xb')](_0x256989['view']['targetRect']);return super[_0x10de('0x3')](_0x256989,_0x533df4);}[_0x10de('0x4')](_0x548d8d){if(!this['has'](_0x548d8d))throw new _0x14fb32(_0x10de('0x10'),null);this[_0x10de('0x1f')](_0x548d8d[_0x10de('0xd')][_0x10de('0x19')]),this[_0x10de('0x1f')](_0x548d8d['focusableElements']);for(const _0x3b0065 of _0x548d8d['focusableElements'])this['_focusTracker'][_0x10de('0x4')](_0x3b0065);return this[_0x10de('0x16')][_0x10de('0x7')](_0x548d8d[_0x10de('0xd')]),this[_0x10de('0xa')][_0x10de('0x7')](_0x548d8d['innerView']),super[_0x10de('0x4')](_0x548d8d);}[_0x10de('0x15')](_0x30f998){return this[_0x10de('0xa')][_0x10de('0x1b')](_0x30f998);}['getByView'](_0x4fccfb){return this['_viewToAnnotation'][_0x10de('0x1b')](_0x4fccfb);}['destroy'](){super[_0x10de('0x6')](),this[_0x10de('0x1f')](),this[_0x10de('0xa')][_0x10de('0x6')](),this[_0x10de('0x16')][_0x10de('0x6')](),this[_0x10de('0x17')][_0x10de('0x2')]();}[_0x10de('0x1')](){for(const _0x1ea11b of this)_0x1ea11b['updateTargetRect']();this[_0x10de('0x1c')]();}[_0x10de('0x1c')](){const _0x27d5c1=Array[_0x10de('0xf')](this)[_0x10de('0x0')]((_0x122364,_0x46719e)=>v(_0x122364[_0x10de('0xd')][_0x10de('0x5')],_0x46719e['view']['targetRect']));for(let _0x5e1a0c=_0x27d5c1['length']-0x1;_0x5e1a0c>0x0;_0x5e1a0c--){const _0x544af3=_0x27d5c1[_0x5e1a0c];_0x5e1a0c!==this[_0x10de('0xc')](_0x544af3)&&(this[_0x10de('0x4')](_0x544af3),this[_0x10de('0x3')](_0x544af3));}}[_0x10de('0xb')](_0x11c4b4){let _0x507b5d=0x0;if(!_0x11c4b4)return this[_0x10de('0x12')];for(const _0x45057b of this){const _0x3ce9fc=_0x45057b['view'][_0x10de('0x5')];if(_0x3ce9fc){if(v(_0x11c4b4,_0x3ce9fc)<0x0)return _0x507b5d;_0x507b5d++;}}return _0x507b5d;}}export function bindAnnotationCollections({source:_0x4668f,target:_0x4d3b1a,filter:_0x216a84}){for(const _0x1d3535 of _0x4668f)_0x216a84(_0x1d3535)&&_0x4d3b1a[_0x10de('0x3')](_0x1d3535);_0x4d3b1a['listenTo'](_0x4668f,_0x10de('0x3'),(_0x4a4ad2,_0x10f8ee)=>{_0x216a84(_0x10f8ee)&&_0x4d3b1a['add'](_0x10f8ee);}),_0x4d3b1a[_0x10de('0x9')](_0x4668f,'remove',(_0x336ede,_0x4cef37)=>{_0x4d3b1a[_0x10de('0x1e')](_0x4cef37)&&_0x4d3b1a['remove'](_0x4cef37);});}function v(_0x2f391f,_0x5da755){if(null===_0x2f391f&&null===_0x5da755)return 0x0;if(null===_0x2f391f)return-0x1;if(null===_0x5da755)return 0x1;const _0x3fd507=_0x2f391f[_0x10de('0x14')]-_0x5da755[_0x10de('0x14')];return 0x0==_0x3fd507?_0x2f391f[_0x10de('0x13')]-_0x5da755[_0x10de('0x13')]:_0x3fd507;}
23
+ const _0x3b07=['destroy','fire','innerView','focusTracker','listenTo','annotationcollection-duplicated-item','_getOrderInContent','_viewToAnnotation','clear','_focusTracker','remove','updateTargetRect','getByInnerView','view','getByView','stopListening','sort','targetRect','delete','_innerViewToAnnotation','set','change:isFocused','focusableElements','annotationcollection-not-existing-item','getIndex','focus','add','length','_sort','left','isFocused','get','has','top'];(function(_0x3fcf5e,_0x3b0757){const _0x38976c=function(_0x526d48){while(--_0x526d48){_0x3fcf5e['push'](_0x3fcf5e['shift']());}};_0x38976c(++_0x3b0757);}(_0x3b07,0x74));const _0x3897=function(_0x3fcf5e,_0x3b0757){_0x3fcf5e=_0x3fcf5e-0x0;let _0x38976c=_0x3b07[_0x3fcf5e];return _0x38976c;};import{CKEditorError as _0x14fe74,Collection as _0x4be33c,FocusTracker as _0x47ebef}from'ckeditor5/src/utils.js';export default class x extends _0x4be33c{constructor(_0x3a5806=[]){super(),this[_0x3897('0x5')]=new Map(),this[_0x3897('0x1b')]=new Map(),this[_0x3897('0x1d')]=new _0x47ebef(),this[_0x3897('0x1d')]['on'](_0x3897('0x7'),(_0x33d99e,_0x443aef,_0x335ced)=>{_0x335ced||this[_0x3897('0x15')]('blur');});for(const _0x11e8a3 of _0x3a5806)this[_0x3897('0xc')](_0x11e8a3);}get[_0x3897('0x10')](){return this['_focusTracker'][_0x3897('0x10')];}[_0x3897('0xc')](_0x1f2be1){if(this['has'](_0x1f2be1))throw new _0x14fe74(_0x3897('0x19'),null);this['_innerViewToAnnotation']['set'](_0x1f2be1['innerView'],_0x1f2be1),this[_0x3897('0x1b')][_0x3897('0x6')](_0x1f2be1['view'],_0x1f2be1);for(const _0x38e1aa of _0x1f2be1[_0x3897('0x8')])this[_0x3897('0x1d')][_0x3897('0xc')](_0x38e1aa);this[_0x3897('0x18')](_0x1f2be1[_0x3897('0x8')],'add',(_0x456780,_0x20306d)=>{this['_focusTracker'][_0x3897('0xc')](_0x20306d);}),this[_0x3897('0x18')](_0x1f2be1[_0x3897('0x8')],_0x3897('0x1e'),(_0x1bc92e,_0x106f63)=>{this[_0x3897('0x1d')][_0x3897('0x1e')](_0x106f63);}),this[_0x3897('0x18')](_0x1f2be1['view'][_0x3897('0x17')],'change:isFocused',(_0x4ffd68,_0x5a05cd,_0xc8cf49)=>{_0xc8cf49&&this[_0x3897('0x15')](_0x3897('0xb'),_0x1f2be1);}),_0x1f2be1[_0x3897('0x1f')]();const _0x1c046d=this[_0x3897('0x1a')](_0x1f2be1[_0x3897('0x21')][_0x3897('0x3')]);return super[_0x3897('0xc')](_0x1f2be1,_0x1c046d);}[_0x3897('0x1e')](_0x53de21){if(!this[_0x3897('0x12')](_0x53de21))throw new _0x14fe74(_0x3897('0x9'),null);this[_0x3897('0x1')](_0x53de21[_0x3897('0x21')][_0x3897('0x17')]),this[_0x3897('0x1')](_0x53de21[_0x3897('0x8')]);for(const _0x204877 of _0x53de21[_0x3897('0x8')])this[_0x3897('0x1d')]['remove'](_0x204877);return this['_viewToAnnotation'][_0x3897('0x4')](_0x53de21['view']),this[_0x3897('0x5')][_0x3897('0x4')](_0x53de21[_0x3897('0x16')]),super[_0x3897('0x1e')](_0x53de21);}[_0x3897('0x20')](_0x13da2c){return this[_0x3897('0x5')]['get'](_0x13da2c);}[_0x3897('0x0')](_0x1715d8){return this['_viewToAnnotation'][_0x3897('0x11')](_0x1715d8);}['destroy'](){super[_0x3897('0x1c')](),this['stopListening'](),this[_0x3897('0x5')][_0x3897('0x1c')](),this['_viewToAnnotation'][_0x3897('0x1c')](),this[_0x3897('0x1d')][_0x3897('0x14')]();}['refreshPositioning'](){for(const _0x19da6a of this)_0x19da6a[_0x3897('0x1f')]();this[_0x3897('0xe')]();}[_0x3897('0xe')](){const _0x22dda0=Array['from'](this)[_0x3897('0x2')]((_0xf991e3,_0x4b30fc)=>v(_0xf991e3[_0x3897('0x21')][_0x3897('0x3')],_0x4b30fc[_0x3897('0x21')][_0x3897('0x3')]));for(let _0x970787=_0x22dda0[_0x3897('0xd')]-0x1;_0x970787>0x0;_0x970787--){const _0x77b1b=_0x22dda0[_0x970787];_0x970787!==this[_0x3897('0xa')](_0x77b1b)&&(this['remove'](_0x77b1b),this['add'](_0x77b1b));}}[_0x3897('0x1a')](_0x5513e3){let _0x38b0be=0x0;if(!_0x5513e3)return this[_0x3897('0xd')];for(const _0x1e3ab4 of this){const _0x6609bb=_0x1e3ab4['view'][_0x3897('0x3')];if(_0x6609bb){if(v(_0x5513e3,_0x6609bb)<0x0)return _0x38b0be;_0x38b0be++;}}return _0x38b0be;}}export function bindAnnotationCollections({source:_0x4b4342,target:_0x3ff37d,filter:_0x2276b2}){for(const _0x50d854 of _0x4b4342)_0x2276b2(_0x50d854)&&_0x3ff37d['add'](_0x50d854);_0x3ff37d[_0x3897('0x18')](_0x4b4342,_0x3897('0xc'),(_0x4a3efd,_0xcfa99a)=>{_0x2276b2(_0xcfa99a)&&_0x3ff37d[_0x3897('0xc')](_0xcfa99a);}),_0x3ff37d[_0x3897('0x18')](_0x4b4342,'remove',(_0x54d665,_0x21db31)=>{_0x3ff37d[_0x3897('0x12')](_0x21db31)&&_0x3ff37d[_0x3897('0x1e')](_0x21db31);});}function v(_0xacdbb3,_0x2282bf){if(null===_0xacdbb3&&null===_0x2282bf)return 0x0;if(null===_0xacdbb3)return-0x1;if(null===_0x2282bf)return 0x1;const _0x32466f=_0xacdbb3[_0x3897('0x13')]-_0x2282bf[_0x3897('0x13')];return 0x0==_0x32466f?_0xacdbb3[_0x3897('0xf')]-_0x2282bf[_0x3897('0xf')]:_0x32466f;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1950=['view','delete','activate','focusTracker','activeAnnotations','refreshPositioning','set','listenTo','collection','_visibleAnnotations','stopListening','element','isVisible','fire','destroy','add','remove','_removeActiveAnnotation','_bindAnnotationsToVisibleAnnotations','has','deactivateAll','_activateAnnotation','refreshVisibility'];(function(_0x8d4ba8,_0x195074){const _0x265a38=function(_0x4c17d2){while(--_0x4c17d2){_0x8d4ba8['push'](_0x8d4ba8['shift']());}};_0x265a38(++_0x195074);}(_0x1950,0x89));const _0x265a=function(_0x8d4ba8,_0x195074){_0x8d4ba8=_0x8d4ba8-0x0;let _0x265a38=_0x1950[_0x8d4ba8];return _0x265a38;};import{ContextPlugin as _0x24f8e2}from'ckeditor5/src/core.js';import _0x9a63b8 from'./annotation.js';import _0x2be56c from'./annotationcollection.js';import _0x1488a4 from'./view/annotationview.js';export default class b extends _0x24f8e2{static get['pluginName'](){return'Annotations';}constructor(_0x532bff){super(_0x532bff),this[_0x265a('0x9')]=new _0x2be56c(),this[_0x265a('0xa')]=new _0x2be56c(),this[_0x265a('0x7')](_0x265a('0x5'),new Set()),this[_0x265a('0x13')]();}['add'](_0x48e376){this['collection'][_0x265a('0x10')](_0x48e376);}[_0x265a('0x11')](_0x53c32d){this[_0x265a('0x9')]['remove'](_0x53c32d),_0x53c32d[_0x265a('0xf')]();}['refreshVisibility'](){for(const _0xf7594 of this[_0x265a('0x9')])_0xf7594[_0x265a('0x0')]();}[_0x265a('0x6')](){this[_0x265a('0xa')][_0x265a('0x6')]();}['getByInnerView'](_0x5a519e){return this[_0x265a('0x9')]['getByInnerView'](_0x5a519e);}[_0x265a('0x15')](){this[_0x265a('0xe')]('_deactivateAllAnnotations');}[_0x265a('0xf')](){for(const _0x5418cc of this['collection'])_0x5418cc[_0x265a('0xf')]();this[_0x265a('0xa')][_0x265a('0xf')](),this[_0x265a('0x9')]['destroy'](),super[_0x265a('0xf')]();}[_0x265a('0x3')](_0x3bc2d4){this[_0x265a('0xe')](_0x265a('0x16'),_0x3bc2d4);}['createAnnotation'](_0xc1290a){return new _0x9a63b8(_0xc1290a);}['createAnnotationView'](_0x41707e,_0x3f10ae){return new _0x1488a4(_0x41707e,_0x3f10ae);}['_addActiveAnnotation'](_0x2fa0e0){const _0x1e31fc=new Set(this[_0x265a('0x5')]);_0x1e31fc[_0x265a('0x10')](_0x2fa0e0),this['activeAnnotations']=_0x1e31fc;}[_0x265a('0x12')](_0x3156d8){const _0x59c49c=new Set(this[_0x265a('0x5')]);_0x59c49c[_0x265a('0x2')](_0x3156d8),this[_0x265a('0x5')]=_0x59c49c;}[_0x265a('0x13')](){const _0x48626e=this['collection'],_0x2971b5=this[_0x265a('0xa')];function _0x3fd143(_0x4d5687){const _0x52526c=_0x4d5687['source'];_0x52526c[_0x265a('0xd')]&&!_0x2971b5[_0x265a('0x14')](_0x52526c)?_0x2971b5[_0x265a('0x10')](_0x52526c):!_0x52526c[_0x265a('0xd')]&&_0x2971b5[_0x265a('0x14')](_0x52526c)&&_0x2971b5[_0x265a('0x11')](_0x52526c),_0x52526c['view'][_0x265a('0x4')][_0x265a('0x11')](_0x52526c[_0x265a('0x1')][_0x265a('0xc')]),_0x52526c[_0x265a('0x1')][_0x265a('0x4')][_0x265a('0x10')](_0x52526c[_0x265a('0x1')][_0x265a('0xc')]);}this['listenTo'](_0x48626e,_0x265a('0x10'),(_0x2706d2,_0x1ea0be)=>{_0x1ea0be['isVisible']&&_0x2971b5[_0x265a('0x10')](_0x1ea0be),this[_0x265a('0x8')](_0x1ea0be,'change:isVisible',_0x3fd143);}),this[_0x265a('0x8')](_0x48626e,_0x265a('0x11'),(_0x1e8b29,_0x5dcd43)=>{_0x2971b5[_0x265a('0x14')](_0x5dcd43)&&_0x2971b5[_0x265a('0x11')](_0x5dcd43),this[_0x265a('0xb')](_0x5dcd43,'change:isVisible',_0x3fd143);});}}
23
+ const _0x1b82=['deactivateAll','collection','view','_visibleAnnotations','pluginName','destroy','has','delete','remove','_bindAnnotationsToVisibleAnnotations','set','source','listenTo','change:isVisible','_addActiveAnnotation','refreshPositioning','refreshVisibility','activate','getByInnerView','_deactivateAllAnnotations','fire','add','createAnnotation','activeAnnotations','isVisible','element','focusTracker'];(function(_0x327ae9,_0x1b8219){const _0x561cef=function(_0x28a4ac){while(--_0x28a4ac){_0x327ae9['push'](_0x327ae9['shift']());}};_0x561cef(++_0x1b8219);}(_0x1b82,0x138));const _0x561c=function(_0x327ae9,_0x1b8219){_0x327ae9=_0x327ae9-0x0;let _0x561cef=_0x1b82[_0x327ae9];return _0x561cef;};import{ContextPlugin as _0x10e69b}from'ckeditor5/src/core.js';import _0x1ac764 from'./annotation.js';import _0x3e9d1a from'./annotationcollection.js';import _0x519a14 from'./view/annotationview.js';export default class b extends _0x10e69b{static get[_0x561c('0x10')](){return'Annotations';}constructor(_0x159ef5){super(_0x159ef5),this[_0x561c('0xd')]=new _0x3e9d1a(),this['_visibleAnnotations']=new _0x3e9d1a(),this[_0x561c('0x16')](_0x561c('0x8'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x561c('0x6')](_0x153388){this[_0x561c('0xd')][_0x561c('0x6')](_0x153388);}[_0x561c('0x14')](_0x3d5474){this['collection'][_0x561c('0x14')](_0x3d5474),_0x3d5474[_0x561c('0x11')]();}[_0x561c('0x1')](){for(const _0x18b3a9 of this[_0x561c('0xd')])_0x18b3a9[_0x561c('0x1')]();}[_0x561c('0x0')](){this[_0x561c('0xf')][_0x561c('0x0')]();}[_0x561c('0x3')](_0x18ad33){return this['collection'][_0x561c('0x3')](_0x18ad33);}[_0x561c('0xc')](){this[_0x561c('0x5')](_0x561c('0x4'));}[_0x561c('0x11')](){for(const _0x526a49 of this[_0x561c('0xd')])_0x526a49['destroy']();this[_0x561c('0xf')][_0x561c('0x11')](),this[_0x561c('0xd')][_0x561c('0x11')](),super['destroy']();}[_0x561c('0x2')](_0x53d73f){this[_0x561c('0x5')]('_activateAnnotation',_0x53d73f);}[_0x561c('0x7')](_0x496bfa){return new _0x1ac764(_0x496bfa);}['createAnnotationView'](_0x40e5c1,_0x2d634d){return new _0x519a14(_0x40e5c1,_0x2d634d);}[_0x561c('0x1a')](_0xeb94){const _0x535eb1=new Set(this[_0x561c('0x8')]);_0x535eb1[_0x561c('0x6')](_0xeb94),this['activeAnnotations']=_0x535eb1;}['_removeActiveAnnotation'](_0x3dde10){const _0x598638=new Set(this[_0x561c('0x8')]);_0x598638[_0x561c('0x13')](_0x3dde10),this[_0x561c('0x8')]=_0x598638;}[_0x561c('0x15')](){const _0x51efa1=this[_0x561c('0xd')],_0x9187de=this[_0x561c('0xf')];function _0x1c0745(_0x368818){const _0x1e86f6=_0x368818[_0x561c('0x17')];_0x1e86f6[_0x561c('0x9')]&&!_0x9187de['has'](_0x1e86f6)?_0x9187de[_0x561c('0x6')](_0x1e86f6):!_0x1e86f6[_0x561c('0x9')]&&_0x9187de[_0x561c('0x12')](_0x1e86f6)&&_0x9187de['remove'](_0x1e86f6),_0x1e86f6['view'][_0x561c('0xb')][_0x561c('0x14')](_0x1e86f6[_0x561c('0xe')][_0x561c('0xa')]),_0x1e86f6[_0x561c('0xe')][_0x561c('0xb')]['add'](_0x1e86f6['view'][_0x561c('0xa')]);}this[_0x561c('0x18')](_0x51efa1,_0x561c('0x6'),(_0x339ba2,_0x4b7d63)=>{_0x4b7d63[_0x561c('0x9')]&&_0x9187de['add'](_0x4b7d63),this[_0x561c('0x18')](_0x4b7d63,_0x561c('0x19'),_0x1c0745);}),this['listenTo'](_0x51efa1,_0x561c('0x14'),(_0xeb1486,_0xf569f8)=>{_0x9187de['has'](_0xf569f8)&&_0x9187de[_0x561c('0x14')](_0xf569f8),this['stopListening'](_0xf569f8,'change:isVisible',_0x1c0745);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x257c=['requires','annotationsuis-annotation-mismatch','_uis','filter','remove','add','pluginName','stopListening','_visibleAnnotations','type','length','deactivateAll','detach','plugins','delete','function','deactivate','annotationsuis-register-already-registered','_activateAnnotation','AnnotationsUIs','collection','hasActive','_setSelectedAnnotations','destroy','set','change:activeAnnotation','find','_assertAnnotationDoesNotBelongToMultipleUIs','isActive','activate','annotationsuis-missing-ui','refilterAnnotations','register','_deactivateAllAnnotations','get','setActiveAnnotation','from','_uisData','init','_removeActiveAnnotation','activeUIs','attach','has','switchTo','size','annotationsuis-register-invalid-interface','listenTo','push','context'];(function(_0x9a740,_0x257c1c){const _0x362397=function(_0x473fa2){while(--_0x473fa2){_0x9a740['push'](_0x9a740['shift']());}};_0x362397(++_0x257c1c);}(_0x257c,0x66));const _0x3623=function(_0x9a740,_0x257c1c){_0x9a740=_0x9a740-0x0;let _0x362397=_0x257c[_0x9a740];return _0x362397;};import{ContextPlugin as _0x2bc07c}from'ckeditor5/src/core.js';import{CKEditorError as _0x5435aa}from'ckeditor5/src/utils.js';import _0x544a48,{bindAnnotationCollections as _0x26f2de}from'./annotationcollection.js';import _0x46cc42 from'./annotations.js';export default class j extends _0x2bc07c{static get[_0x3623('0x2d')](){return[_0x46cc42];}static get[_0x3623('0x2')](){return _0x3623('0xf');}constructor(_0x579eed){super(_0x579eed),this[_0x3623('0x24')]=new Set(),this[_0x3623('0x2f')]=new Map(),this[_0x3623('0x21')]=new Map();}[_0x3623('0x22')](){const _0x2db7d8=this[_0x3623('0x2c')][_0x3623('0x9')]['get'](_0x46cc42);this[_0x3623('0x2a')](_0x2db7d8,_0x3623('0xe'),(_0xd420bd,_0x5eeafb)=>{for(const _0x133f6a of this[_0x3623('0x24')]){const _0x5d9acb=this[_0x3623('0x2f')][_0x3623('0x1e')](_0x133f6a);(0x0,this[_0x3623('0x21')][_0x3623('0x1e')](_0x133f6a)['filter'])(_0x5eeafb)&&_0x5d9acb['setActiveAnnotation'](_0x5eeafb);}}),this[_0x3623('0x2a')](_0x2db7d8,_0x3623('0x1d'),()=>{for(const _0x40c296 of this[_0x3623('0x24')]){this[_0x3623('0x2f')][_0x3623('0x1e')](_0x40c296)[_0x3623('0x1f')](null);}}),this['listenTo'](_0x2db7d8[_0x3623('0x4')],'add',(_0x1f0029,_0x577d02)=>{this[_0x3623('0x17')](_0x577d02);});}[_0x3623('0x11')](){return this[_0x3623('0x24')][_0x3623('0x28')]>0x0;}[_0x3623('0x18')](_0x380c38){return this[_0x3623('0x24')]['has'](_0x380c38);}[_0x3623('0x19')](_0x1e288b,_0x20fa14=()=>!0x0){const _0x27a72b=this[_0x3623('0x2c')][_0x3623('0x9')][_0x3623('0x1e')](_0x46cc42);if(!this[_0x3623('0x2f')][_0x3623('0x26')](_0x1e288b))throw new _0x5435aa('annotationsuis-missing-ui',this,{'uiName':_0x1e288b});this[_0x3623('0x18')](_0x1e288b)&&this[_0x3623('0xc')](_0x1e288b),this[_0x3623('0x24')][_0x3623('0x1')](_0x1e288b);const _0x1b7031=new _0x544a48(),_0x25e69b=_0x27a72b['_visibleAnnotations'];_0x26f2de({'source':_0x25e69b,'target':_0x1b7031,'filter':_0x20fa14}),this[_0x3623('0x21')][_0x3623('0x14')](_0x1e288b,{'collection':_0x1b7031,'filter':_0x20fa14});const _0x418c02=this[_0x3623('0x2f')]['get'](_0x1e288b);_0x418c02[_0x3623('0x25')](_0x1b7031),this['listenTo'](_0x418c02,_0x3623('0x15'),(_0x373b4e,_0x4d188a,_0x44bcf8,_0x2967c6)=>{_0x2967c6&&_0x27a72b[_0x3623('0x23')](_0x2967c6),_0x44bcf8&&_0x27a72b['_addActiveAnnotation'](_0x44bcf8);});}['deactivate'](_0x543762){if(this[_0x3623('0x24')][_0x3623('0xa')](_0x543762),!this[_0x3623('0x2f')]['has'](_0x543762))throw new _0x5435aa('annotationsuis-missing-ui',this,{'uiName':_0x543762});const _0x4d4d63=this[_0x3623('0x2f')][_0x3623('0x1e')](_0x543762);_0x4d4d63[_0x3623('0x8')](),this[_0x3623('0x3')](_0x4d4d63),this[_0x3623('0x21')]['get'](_0x543762)[_0x3623('0x10')][_0x3623('0x13')](),this[_0x3623('0x21')][_0x3623('0xa')](_0x543762);}[_0x3623('0x27')](_0x3c36bc){if(!this[_0x3623('0x2f')][_0x3623('0x26')](_0x3c36bc))throw new _0x5435aa(_0x3623('0x1a'),this,{'uiName':_0x3c36bc});const _0x4c2be9=this[_0x3623('0x2c')][_0x3623('0x9')]['get'](_0x46cc42),_0x336a9e=Array[_0x3623('0x20')](_0x4c2be9['activeAnnotations'])[0x0]||null;this[_0x3623('0x7')](),this[_0x3623('0x19')](_0x3c36bc);const _0xa8bf8e=this['_uis'][_0x3623('0x1e')](_0x3c36bc);_0xa8bf8e[_0x3623('0x1f')](_0x336a9e),_0xa8bf8e[_0x3623('0x12')]&&_0x336a9e&&_0xa8bf8e['_setSelectedAnnotations']([_0x336a9e]);}[_0x3623('0x7')](){for(const _0x426382 of this[_0x3623('0x24')])this[_0x3623('0xc')](_0x426382);}[_0x3623('0x1c')](_0x10402e,_0x55e945){if(this[_0x3623('0x2f')][_0x3623('0x26')](_0x10402e))throw new _0x5435aa(_0x3623('0xd'));if('function'!=typeof _0x55e945[_0x3623('0x25')]||_0x3623('0xb')!=typeof _0x55e945['detach']||_0x3623('0xb')!=typeof _0x55e945[_0x3623('0x1f')])throw new _0x5435aa(_0x3623('0x29'),null);this[_0x3623('0x2f')][_0x3623('0x14')](_0x10402e,_0x55e945);}[_0x3623('0x1b')](){const _0xfeda5c=this['context'][_0x3623('0x9')][_0x3623('0x1e')](_0x46cc42)['collection'],_0x566237=new Map(),_0x1f2c26=Array[_0x3623('0x20')](this[_0x3623('0x24')]);for(const _0x2a991d of this['activeUIs']){const _0x518478=this[_0x3623('0x21')]['get'](_0x2a991d)[_0x3623('0x10')];for(const _0x361923 of _0x518478)_0x566237['set'](_0x361923,_0x2a991d);}for(const _0x2d024f of _0xfeda5c){const _0x31d503=_0x566237[_0x3623('0x1e')](_0x2d024f);this[_0x3623('0x17')](_0x2d024f);const _0x4ba425=_0x1f2c26[_0x3623('0x16')](_0x2da7ae=>this[_0x3623('0x21')][_0x3623('0x1e')](_0x2da7ae)[_0x3623('0x30')](_0x2d024f));_0x31d503!==_0x4ba425&&(_0x31d503&&this['_uisData'][_0x3623('0x1e')](_0x31d503)[_0x3623('0x10')][_0x3623('0x0')](_0x2d024f),_0x4ba425&&this['_uisData'][_0x3623('0x1e')](_0x4ba425)[_0x3623('0x10')][_0x3623('0x1')](_0x2d024f));}}[_0x3623('0x13')](){this[_0x3623('0x7')](),super[_0x3623('0x13')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x31b157){const _0x5ccaaa=[];for(const _0x4384c4 of this[_0x3623('0x24')]){(0x0,this[_0x3623('0x21')][_0x3623('0x1e')](_0x4384c4)[_0x3623('0x30')])(_0x31b157)&&_0x5ccaaa[_0x3623('0x2b')](_0x4384c4);}if(_0x5ccaaa[_0x3623('0x6')]>0x1)throw new _0x5435aa(_0x3623('0x2e'),null,{'matchedUIs':_0x5ccaaa,'annotationType':_0x31b157[_0x3623('0x5')]});}}
23
+ const _0x1bee=['_activateAnnotation','add','deactivate','get','delete','filter','_visibleAnnotations','refilterAnnotations','push','from','length','AnnotationsUIs','destroy','_deactivateAllAnnotations','annotationsuis-register-already-registered','set','context','_uis','_setSelectedAnnotations','annotationsuis-register-invalid-interface','requires','remove','register','_assertAnnotationDoesNotBelongToMultipleUIs','listenTo','_uisData','collection','annotationsuis-missing-ui','_removeActiveAnnotation','pluginName','activate','annotationsuis-annotation-mismatch','activeAnnotations','deactivateAll','_addActiveAnnotation','setActiveAnnotation','stopListening','has','activeUIs','change:activeAnnotation','plugins','isActive','type','function'];(function(_0x1ddbc9,_0x1bee14){const _0x56bb8e=function(_0x591908){while(--_0x591908){_0x1ddbc9['push'](_0x1ddbc9['shift']());}};_0x56bb8e(++_0x1bee14);}(_0x1bee,0xe1));const _0x56bb=function(_0x1ddbc9,_0x1bee14){_0x1ddbc9=_0x1ddbc9-0x0;let _0x56bb8e=_0x1bee[_0x1ddbc9];return _0x56bb8e;};import{ContextPlugin as _0x7fcd24}from'ckeditor5/src/core.js';import{CKEditorError as _0x4e1269}from'ckeditor5/src/utils.js';import _0x582745,{bindAnnotationCollections as _0x3c3104}from'./annotationcollection.js';import _0x233589 from'./annotations.js';export default class j extends _0x7fcd24{static get[_0x56bb('0xf')](){return[_0x233589];}static get[_0x56bb('0x18')](){return _0x56bb('0x6');}constructor(_0x5b0b67){super(_0x5b0b67),this[_0x56bb('0x21')]=new Set(),this[_0x56bb('0xc')]=new Map(),this[_0x56bb('0x14')]=new Map();}['init'](){const _0x381be4=this['context'][_0x56bb('0x23')][_0x56bb('0x2a')](_0x233589);this[_0x56bb('0x13')](_0x381be4,_0x56bb('0x27'),(_0x5df786,_0x20dbb5)=>{for(const _0x282562 of this[_0x56bb('0x21')]){const _0x3bc118=this['_uis'][_0x56bb('0x2a')](_0x282562);(0x0,this[_0x56bb('0x14')][_0x56bb('0x2a')](_0x282562)[_0x56bb('0x0')])(_0x20dbb5)&&_0x3bc118[_0x56bb('0x1e')](_0x20dbb5);}}),this[_0x56bb('0x13')](_0x381be4,_0x56bb('0x8'),()=>{for(const _0x5cdbe3 of this[_0x56bb('0x21')]){this['_uis']['get'](_0x5cdbe3)['setActiveAnnotation'](null);}}),this['listenTo'](_0x381be4['_visibleAnnotations'],'add',(_0x24f0c5,_0xd79812)=>{this[_0x56bb('0x12')](_0xd79812);});}['hasActive'](){return this['activeUIs']['size']>0x0;}[_0x56bb('0x24')](_0x338c45){return this['activeUIs'][_0x56bb('0x20')](_0x338c45);}[_0x56bb('0x19')](_0x40832d,_0x2610b8=()=>!0x0){const _0x4f27d4=this[_0x56bb('0xb')][_0x56bb('0x23')][_0x56bb('0x2a')](_0x233589);if(!this[_0x56bb('0xc')][_0x56bb('0x20')](_0x40832d))throw new _0x4e1269(_0x56bb('0x16'),this,{'uiName':_0x40832d});this[_0x56bb('0x24')](_0x40832d)&&this[_0x56bb('0x29')](_0x40832d),this[_0x56bb('0x21')][_0x56bb('0x28')](_0x40832d);const _0x7b7863=new _0x582745(),_0x1abb5a=_0x4f27d4[_0x56bb('0x1')];_0x3c3104({'source':_0x1abb5a,'target':_0x7b7863,'filter':_0x2610b8}),this[_0x56bb('0x14')][_0x56bb('0xa')](_0x40832d,{'collection':_0x7b7863,'filter':_0x2610b8});const _0x1b8d4f=this[_0x56bb('0xc')][_0x56bb('0x2a')](_0x40832d);_0x1b8d4f['attach'](_0x7b7863),this[_0x56bb('0x13')](_0x1b8d4f,_0x56bb('0x22'),(_0x517e4b,_0x4bc9f8,_0x210179,_0x445f0e)=>{_0x445f0e&&_0x4f27d4[_0x56bb('0x17')](_0x445f0e),_0x210179&&_0x4f27d4[_0x56bb('0x1d')](_0x210179);});}[_0x56bb('0x29')](_0x4fe489){if(this[_0x56bb('0x21')]['delete'](_0x4fe489),!this[_0x56bb('0xc')][_0x56bb('0x20')](_0x4fe489))throw new _0x4e1269(_0x56bb('0x16'),this,{'uiName':_0x4fe489});const _0xa48e23=this[_0x56bb('0xc')]['get'](_0x4fe489);_0xa48e23['detach'](),this[_0x56bb('0x1f')](_0xa48e23),this[_0x56bb('0x14')][_0x56bb('0x2a')](_0x4fe489)[_0x56bb('0x15')][_0x56bb('0x7')](),this['_uisData'][_0x56bb('0x2b')](_0x4fe489);}['switchTo'](_0x36d1d1){if(!this[_0x56bb('0xc')][_0x56bb('0x20')](_0x36d1d1))throw new _0x4e1269('annotationsuis-missing-ui',this,{'uiName':_0x36d1d1});const _0x4d9e5b=this[_0x56bb('0xb')][_0x56bb('0x23')][_0x56bb('0x2a')](_0x233589),_0x48fe24=Array[_0x56bb('0x4')](_0x4d9e5b[_0x56bb('0x1b')])[0x0]||null;this['deactivateAll'](),this[_0x56bb('0x19')](_0x36d1d1);const _0x586ef5=this[_0x56bb('0xc')][_0x56bb('0x2a')](_0x36d1d1);_0x586ef5['setActiveAnnotation'](_0x48fe24),_0x586ef5['_setSelectedAnnotations']&&_0x48fe24&&_0x586ef5[_0x56bb('0xd')]([_0x48fe24]);}[_0x56bb('0x1c')](){for(const _0x962916 of this['activeUIs'])this[_0x56bb('0x29')](_0x962916);}[_0x56bb('0x11')](_0x59e740,_0x36cef8){if(this[_0x56bb('0xc')][_0x56bb('0x20')](_0x59e740))throw new _0x4e1269(_0x56bb('0x9'));if('function'!=typeof _0x36cef8['attach']||_0x56bb('0x26')!=typeof _0x36cef8['detach']||_0x56bb('0x26')!=typeof _0x36cef8['setActiveAnnotation'])throw new _0x4e1269(_0x56bb('0xe'),null);this[_0x56bb('0xc')][_0x56bb('0xa')](_0x59e740,_0x36cef8);}[_0x56bb('0x2')](){const _0x5bb1e5=this[_0x56bb('0xb')][_0x56bb('0x23')][_0x56bb('0x2a')](_0x233589)[_0x56bb('0x15')],_0x3f1b20=new Map(),_0x39df3f=Array[_0x56bb('0x4')](this[_0x56bb('0x21')]);for(const _0x1fc00f of this[_0x56bb('0x21')]){const _0x135e33=this[_0x56bb('0x14')][_0x56bb('0x2a')](_0x1fc00f)['collection'];for(const _0x5a62e6 of _0x135e33)_0x3f1b20[_0x56bb('0xa')](_0x5a62e6,_0x1fc00f);}for(const _0x9e6ff2 of _0x5bb1e5){const _0x527906=_0x3f1b20[_0x56bb('0x2a')](_0x9e6ff2);this[_0x56bb('0x12')](_0x9e6ff2);const _0x56097f=_0x39df3f['find'](_0x260112=>this[_0x56bb('0x14')]['get'](_0x260112)[_0x56bb('0x0')](_0x9e6ff2));_0x527906!==_0x56097f&&(_0x527906&&this[_0x56bb('0x14')][_0x56bb('0x2a')](_0x527906)[_0x56bb('0x15')][_0x56bb('0x10')](_0x9e6ff2),_0x56097f&&this['_uisData'][_0x56bb('0x2a')](_0x56097f)[_0x56bb('0x15')][_0x56bb('0x28')](_0x9e6ff2));}}[_0x56bb('0x7')](){this['deactivateAll'](),super[_0x56bb('0x7')]();}[_0x56bb('0x12')](_0x34c37f){const _0x35a0b7=[];for(const _0x2098b2 of this[_0x56bb('0x21')]){(0x0,this[_0x56bb('0x14')][_0x56bb('0x2a')](_0x2098b2)[_0x56bb('0x0')])(_0x34c37f)&&_0x35a0b7[_0x56bb('0x3')](_0x2098b2);}if(_0x35a0b7[_0x56bb('0x5')]>0x1)throw new _0x4e1269(_0x56bb('0x1a'),null,{'matchedUIs':_0x35a0b7,'annotationType':_0x34c37f[_0x56bb('0x25')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c4d=['editing','add','getOrderedSelectedAnnotations','getByInnerView','getRanges','collection','listenTo','selection','has','model','refreshSelectedViews','_editorAnnotationsData','init','update','editor','fire','get','from','_dataCollectors','annotation','uiUpdate','range','_editorAnnotations','containsRange','focusTracker','directChange','document','editorannotations-invalid-source-callback','view','addSourceCollector','registerAnnotation','blur','hasDomSelection','EditorAnnotations','remove','sort','element','delete','change:range','function','map'];(function(_0x493690,_0x1c4d9d){const _0x4de0c0=function(_0x1c0c3e){while(--_0x1c0c3e){_0x493690['push'](_0x493690['shift']());}};_0x4de0c0(++_0x1c4d9d);}(_0x1c4d,0x77));const _0x4de0=function(_0x493690,_0x1c4d9d){_0x493690=_0x493690-0x0;let _0x4de0c0=_0x1c4d[_0x493690];return _0x4de0c0;};import{Plugin as _0x5d547f}from'ckeditor5/src/core.js';import{CKEditorError as _0x559165}from'ckeditor5/src/utils.js';import{debounce as _0x4035a9}from'lodash-es';import _0x2706e6 from'./annotations.js';export default class k extends _0x5d547f{static get['requires'](){return[_0x2706e6];}static get['pluginName'](){return _0x4de0('0x25');}constructor(_0x248a9e){super(_0x248a9e),this[_0x4de0('0x16')]=new Set(),this[_0x4de0('0x1a')]=new Set();}[_0x4de0('0x10')](){const _0x159717=this['editor'],_0x1f2a0d=_0x159717['model']['document'][_0x4de0('0xb')],_0x34c7ec=_0x4035a9(()=>this[_0x4de0('0xe')](),0xa);_0x1f2a0d['on'](_0x4de0('0x1'),(_0xd08cb8,_0xdec263)=>{_0xdec263[_0x4de0('0x1d')]&&(_0x34c7ec['cancel'](),this[_0x4de0('0xe')]());}),this[_0x4de0('0xa')](_0x159717[_0x4de0('0x4')][_0x4de0('0x20')]['document'],'change:isFocused',(_0x3089ae,_0x23954a,_0x2c4550)=>{_0x2c4550&&_0x34c7ec();}),this[_0x4de0('0xa')](_0x159717['ui']['focusTracker'],'change:isFocused',(_0x250d22,_0x116671,_0xaf8eb3)=>{_0xaf8eb3||_0x159717['isReadOnly']||this[_0x4de0('0x13')](_0x4de0('0x23'),{'isAnnotationTracked':_0x2057e3=>this['_editorAnnotationsData'][_0x4de0('0xc')](_0x2057e3['innerView'])});}),this[_0x4de0('0xa')](this['editor']['ui'],_0x4de0('0x11'),()=>this[_0x4de0('0x13')](_0x4de0('0x18')));}[_0x4de0('0x22')](_0x4f6f95){if(this[_0x4de0('0x1a')][_0x4de0('0xc')](_0x4f6f95['view']))return;this[_0x4de0('0x1a')][_0x4de0('0x5')](_0x4f6f95['view']),this[_0x4de0('0x12')]['ui'][_0x4de0('0x1c')][_0x4de0('0x5')](_0x4f6f95['view'][_0x4de0('0x28')]);const _0x43373a=this[_0x4de0('0x12')]['plugins'][_0x4de0('0x14')](_0x2706e6);this[_0x4de0('0xa')](_0x43373a[_0x4de0('0x9')],_0x4de0('0x26'),(_0xdc16a6,_0x70b8ae)=>{this[_0x4de0('0x12')]['ui'][_0x4de0('0x1c')][_0x4de0('0x26')](_0x70b8ae[_0x4de0('0x20')]['element']),this[_0x4de0('0x1a')][_0x4de0('0x0')](_0x70b8ae[_0x4de0('0x20')]);});}['hasDomSelection'](){return this[_0x4de0('0x12')][_0x4de0('0x4')][_0x4de0('0x20')][_0x4de0('0x24')];}[_0x4de0('0x21')](_0x56ca64){if(_0x4de0('0x2')!=typeof _0x56ca64)throw new _0x559165(_0x4de0('0x1f'));this[_0x4de0('0x16')][_0x4de0('0x5')](_0x56ca64);}['refreshSelectedViews'](){this[_0x4de0('0x13')]('refresh');}[_0x4de0('0x6')]({activeAnnotation:_0x5a31ae,annotations:_0x36ce01}){const _0x59cc80=[],_0x2dc759=this[_0x4de0('0x12')][_0x4de0('0xd')][_0x4de0('0x1e')]['selection'],_0x522b14=Array[_0x4de0('0x15')](_0x2dc759[_0x4de0('0x8')]());for(const [_0x1445b1,_0x64d97a]of this[_0x4de0('0xf')]){const _0x42e70e=_0x437b4a(_0x64d97a),_0x63c7f8=_0x36ce01[_0x4de0('0x7')](_0x1445b1);_0x42e70e&&_0x63c7f8&&_0x59cc80['push']({'annotation':_0x63c7f8,'range':_0x42e70e});}function _0x437b4a(_0x5dfd98){for(const _0x10f168 of _0x5dfd98)for(const _0x49e441 of _0x522b14)if(_0x10f168[_0x4de0('0x1b')](_0x49e441,!_0x2dc759['isCollapsed']))return _0x10f168;return null;}return _0x59cc80[_0x4de0('0x27')]((_0x36b753,_0x55a179)=>{const _0x45d860=_0x36b753['range'],_0x47ad31=_0x55a179[_0x4de0('0x19')];if(!_0x45d860['isEqual'](_0x47ad31)){if(_0x45d860['containsRange'](_0x47ad31,!0x0))return 0x1;if(_0x47ad31['containsRange'](_0x45d860,!0x0))return-0x1;}return _0x36b753['annotation']==_0x5a31ae?-0x1:_0x55a179[_0x4de0('0x17')]==_0x5a31ae?0x1:0x0;})[_0x4de0('0x3')](_0x1b8295=>_0x1b8295[_0x4de0('0x17')]);}get[_0x4de0('0xf')](){const _0x2a6736=new Map();for(const _0x4a3499 of Array[_0x4de0('0x15')](this[_0x4de0('0x16')]))for(const [_0xb23a3f,_0x56c7c8]of _0x4a3499())_0x2a6736['set'](_0xb23a3f,_0x56c7c8);return _0x2a6736;}}
23
+ const _0x2bf9=['listenTo','function','get','directChange','delete','range','_dataCollectors','plugins','requires','blur','EditorAnnotations','_editorAnnotations','addSourceCollector','fire','uiUpdate','innerView','getByInnerView','remove','model','from','hasDomSelection','focusTracker','has','_editorAnnotationsData','view','add','refreshSelectedViews','annotation','change:range','isEqual','pluginName','document','selection','sort','editorannotations-invalid-source-callback','map','containsRange','refresh','editor','update','isCollapsed','push'];(function(_0x13ee8f,_0x2bf997){const _0x581dba=function(_0x57d004){while(--_0x57d004){_0x13ee8f['push'](_0x13ee8f['shift']());}};_0x581dba(++_0x2bf997);}(_0x2bf9,0xb7));const _0x581d=function(_0x13ee8f,_0x2bf997){_0x13ee8f=_0x13ee8f-0x0;let _0x581dba=_0x2bf9[_0x13ee8f];return _0x581dba;};import{Plugin as _0x7463a3}from'ckeditor5/src/core.js';import{CKEditorError as _0xff62ee}from'ckeditor5/src/utils.js';import{debounce as _0x2f744f}from'lodash-es';import _0x58c3a6 from'./annotations.js';export default class k extends _0x7463a3{static get[_0x581d('0x23')](){return[_0x58c3a6];}static get[_0x581d('0xf')](){return _0x581d('0x25');}constructor(_0x5c2b2b){super(_0x5c2b2b),this[_0x581d('0x21')]=new Set(),this[_0x581d('0x26')]=new Set();}['init'](){const _0x36a456=this['editor'],_0xc10416=_0x36a456[_0x581d('0x3')][_0x581d('0x10')][_0x581d('0x11')],_0x326c19=_0x2f744f(()=>this[_0x581d('0xb')](),0xa);_0xc10416['on'](_0x581d('0xd'),(_0x1cecc5,_0x3f7acb)=>{_0x3f7acb[_0x581d('0x1e')]&&(_0x326c19['cancel'](),this[_0x581d('0xb')]());}),this['listenTo'](_0x36a456['editing'][_0x581d('0x9')][_0x581d('0x10')],'change:isFocused',(_0xf4f744,_0x49a7e9,_0x3f3aa0)=>{_0x3f3aa0&&_0x326c19();}),this[_0x581d('0x1b')](_0x36a456['ui']['focusTracker'],'change:isFocused',(_0x508ee1,_0x305fb5,_0x359ddb)=>{_0x359ddb||_0x36a456['isReadOnly']||this['fire'](_0x581d('0x24'),{'isAnnotationTracked':_0x2316c1=>this[_0x581d('0x8')][_0x581d('0x7')](_0x2316c1[_0x581d('0x0')])});}),this[_0x581d('0x1b')](this['editor']['ui'],_0x581d('0x18'),()=>this[_0x581d('0x28')](_0x581d('0x29')));}['registerAnnotation'](_0x2c4631){if(this[_0x581d('0x26')][_0x581d('0x7')](_0x2c4631[_0x581d('0x9')]))return;this['_editorAnnotations']['add'](_0x2c4631[_0x581d('0x9')]),this['editor']['ui'][_0x581d('0x6')][_0x581d('0xa')](_0x2c4631['view']['element']);const _0x37be3b=this[_0x581d('0x17')][_0x581d('0x22')][_0x581d('0x1d')](_0x58c3a6);this['listenTo'](_0x37be3b['collection'],'remove',(_0x5d964a,_0x525e81)=>{this['editor']['ui']['focusTracker'][_0x581d('0x2')](_0x525e81[_0x581d('0x9')]['element']),this[_0x581d('0x26')][_0x581d('0x1f')](_0x525e81[_0x581d('0x9')]);});}[_0x581d('0x5')](){return this[_0x581d('0x17')]['editing'][_0x581d('0x9')]['hasDomSelection'];}[_0x581d('0x27')](_0x16f519){if(_0x581d('0x1c')!=typeof _0x16f519)throw new _0xff62ee(_0x581d('0x13'));this['_dataCollectors'][_0x581d('0xa')](_0x16f519);}[_0x581d('0xb')](){this[_0x581d('0x28')](_0x581d('0x16'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x3a1eac,annotations:_0x494089}){const _0x1409e2=[],_0x5a7c12=this[_0x581d('0x17')][_0x581d('0x3')][_0x581d('0x10')][_0x581d('0x11')],_0x1f283f=Array[_0x581d('0x4')](_0x5a7c12['getRanges']());for(const [_0x817866,_0x1cc1ae]of this[_0x581d('0x8')]){const _0x1d1598=_0x3b4ce0(_0x1cc1ae),_0x21c010=_0x494089[_0x581d('0x1')](_0x817866);_0x1d1598&&_0x21c010&&_0x1409e2[_0x581d('0x1a')]({'annotation':_0x21c010,'range':_0x1d1598});}function _0x3b4ce0(_0x238cc3){for(const _0x4f1715 of _0x238cc3)for(const _0x444ade of _0x1f283f)if(_0x4f1715[_0x581d('0x15')](_0x444ade,!_0x5a7c12[_0x581d('0x19')]))return _0x4f1715;return null;}return _0x1409e2[_0x581d('0x12')]((_0xfded66,_0x2e195d)=>{const _0x29a471=_0xfded66[_0x581d('0x20')],_0x551e57=_0x2e195d[_0x581d('0x20')];if(!_0x29a471[_0x581d('0xe')](_0x551e57)){if(_0x29a471[_0x581d('0x15')](_0x551e57,!0x0))return 0x1;if(_0x551e57[_0x581d('0x15')](_0x29a471,!0x0))return-0x1;}return _0xfded66[_0x581d('0xc')]==_0x3a1eac?-0x1:_0x2e195d[_0x581d('0xc')]==_0x3a1eac?0x1:0x0;})[_0x581d('0x14')](_0x3daf52=>_0x3daf52[_0x581d('0xc')]);}get['_editorAnnotationsData'](){const _0x120d3a=new Map();for(const _0x2a2433 of Array[_0x581d('0x4')](this[_0x581d('0x21')]))for(const [_0x5d1fe9,_0x37df34]of _0x2a2433())_0x120d3a['set'](_0x5d1fe9,_0x37df34);return _0x120d3a;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13c7=['context','updatePosition','_removeAnnotationFromBalloon','_closeAnnotation','refresh','stopListening','from','Esc','focusTracker','getOrderedSelectedAnnotations','width','hasActive','editableElement','inlineannotations-detach-not-attached','isActive','_balloon','isFocused','switchTo','keystrokes','_manuallyClosed','left','change:visibleView','editor','set','targetRect','hasView','add','domConverter','_addAnnotationToBalloon','requires','_getBalloonTargetForAnnotation','change:isFocused','showStack','plugins','getFirstRange','view','document','afterInit','editing','_selectedAnnotations','activeAnnotation','setActiveAnnotation','inline','attach','destroy','length','target','init','delete','blur','pluginName','addObserver','getClientRects','_forceRefresh','listenTo','get','push','mousedown','includes','remove','clear','top','map','viewRangeToDom','isAttached','fromRect','getByView','_addedAnnotations','_setSelectedAnnotations','register','visibleView','right','has','bottom','annotations'];(function(_0x45312c,_0x13c72f){const _0x4b7666=function(_0x361df8){while(--_0x361df8){_0x45312c['push'](_0x45312c['shift']());}};_0x4b7666(++_0x13c72f);}(_0x13c7,0x186));const _0x4b76=function(_0x45312c,_0x13c72f){_0x45312c=_0x45312c-0x0;let _0x4b7666=_0x13c7[_0x45312c];return _0x4b7666;};import{Plugin as _0x3e2a45}from'ckeditor5/src/core.js';import _0x338435 from'./annotationsuis.js';import _0x116fb1 from'./editorannotations.js';import{ContextualBalloon as _0x24094e}from'ckeditor5/src/ui.js';import{MouseObserver as _0x361d9e}from'ckeditor5/src/engine.js';import{CKEditorError as _0x137a36,Rect as _0x2bf1d0}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x3e2a45{static get[_0x4b76('0xe')](){return[_0x116fb1,_0x24094e,_0x338435];}static get[_0x4b76('0x23')](){return'InlineAnnotations';}constructor(_0x34cd19){super(_0x34cd19),_0x34cd19[_0x4b76('0x17')]['view'][_0x4b76('0x24')](_0x361d9e),this[_0x4b76('0x31')]=!0x1,this[_0x4b76('0x8')](_0x4b76('0x19'),null),this[_0x4b76('0x3b')]=null,this[_0x4b76('0x4')]=new Set(),this[_0x4b76('0x0')]=_0x34cd19[_0x4b76('0x12')][_0x4b76('0x28')](_0x24094e),this[_0x4b76('0x34')]=new Set(),this[_0x4b76('0x18')]=[],this[_0x4b76('0x26')]=!0x1;}[_0x4b76('0x20')](){const _0x52e319=this[_0x4b76('0x7')][_0x4b76('0x12')][_0x4b76('0x28')](_0x338435);_0x52e319[_0x4b76('0x3c')]===this['editor']&&(_0x52e319[_0x4b76('0x36')](_0x4b76('0x1b'),this),this[_0x4b76('0x7')][_0x4b76('0x3')]['set'](_0x4b76('0x43'),(_0x167c04,_0x42a619)=>{const _0x13c72d=this[_0x4b76('0x0')];if(this[_0x4b76('0x31')]&&_0x13c72d[_0x4b76('0x37')]){const _0x3ec00f=this[_0x4b76('0x3b')][_0x4b76('0x33')](_0x13c72d[_0x4b76('0x37')]);_0x3ec00f&&this[_0x4b76('0x3f')](_0x3ec00f),_0x42a619();}}));}[_0x4b76('0x16')](){const _0x1c93b7=this[_0x4b76('0x7')][_0x4b76('0x12')][_0x4b76('0x28')](_0x338435);_0x1c93b7[_0x4b76('0x3c')]===this[_0x4b76('0x7')]&&(_0x1c93b7[_0x4b76('0x47')]()||_0x1c93b7[_0x4b76('0x2')](_0x4b76('0x1b')));}[_0x4b76('0x1a')](_0x3e773f){_0x3e773f!==this[_0x4b76('0x19')]&&(this[_0x4b76('0x19')]&&(this[_0x4b76('0x19')][_0x4b76('0x4a')]=!0x1),_0x3e773f&&this['editor']['ui'][_0x4b76('0x44')][_0x4b76('0x1')]&&(this['annotations'][_0x4b76('0x39')](_0x3e773f)&&this[_0x4b76('0xd')](_0x3e773f,!0x0),_0x3e773f['isActive']=!0x0),_0x3e773f||this[_0x4b76('0x35')]([]),this[_0x4b76('0x19')]=_0x3e773f);}[_0x4b76('0x1c')](_0x18cef3){this[_0x4b76('0x3b')]=_0x18cef3;const _0x13295d=this['editor']['plugins'][_0x4b76('0x28')](_0x338435),_0x2c102a=this['_balloon'];if(this[_0x4b76('0x31')])throw new _0x137a36('inlineannotations-attach-already-attached',this);if(_0x13295d['context']!==this[_0x4b76('0x7')])throw new _0x137a36('inlineannotations-not-allowed-with-context',this);const _0x2ac657=this[_0x4b76('0x7')]['plugins'][_0x4b76('0x28')](_0x116fb1);this[_0x4b76('0x27')](_0x2ac657,_0x4b76('0x40'),()=>{const _0x90ed4d=_0x2ac657[_0x4b76('0x45')]({'annotations':this[_0x4b76('0x3b')],'activeAnnotation':this[_0x4b76('0x19')]});var _0x5db71d,_0x2344cc;!this[_0x4b76('0x26')]&&(_0x5db71d=_0x90ed4d,_0x2344cc=this['_selectedAnnotations'],_0x5db71d[_0x4b76('0x1e')]===_0x2344cc['length']&&_0x5db71d['every'](_0x4c71e1=>_0x2344cc[_0x4b76('0x2b')](_0x4c71e1)))||(this[_0x4b76('0x26')]=!0x1,this['_setSelectedAnnotations'](_0x90ed4d),this[_0x4b76('0x1a')](_0x90ed4d[0x0]||null));}),this[_0x4b76('0x27')](_0x2ac657,_0x4b76('0x22'),(_0x424bc9,{isAnnotationTracked:_0x5ef490})=>{this['activeAnnotation']&&_0x5ef490(this[_0x4b76('0x19')])&&(this[_0x4b76('0x35')]([]),this[_0x4b76('0x1a')](null));}),this[_0x4b76('0x27')](this['editor']['ui']['focusTracker'],_0x4b76('0x10'),(_0x42d925,_0x1e6ffd,_0x474e1c)=>{_0x474e1c||this['setActiveAnnotation'](null);}),this[_0x4b76('0x27')](_0x18cef3,'remove',(_0x5d00d2,_0xc640b)=>{this[_0x4b76('0x3e')](_0xc640b),_0xc640b===this[_0x4b76('0x19')]&&this[_0x4b76('0x1a')](null);}),this[_0x4b76('0x27')](_0x2c102a,_0x4b76('0x6'),(_0x3a9984,_0x16eedc,_0x2981d4,_0x2cc75c)=>{_0x2cc75c&&this[_0x4b76('0x41')](_0x2cc75c);const _0x380c92=_0x18cef3[_0x4b76('0x33')](_0x2981d4);_0x2981d4&&_0x380c92&&(this['listenTo'](_0x2981d4,'change:height',()=>{_0x2c102a[_0x4b76('0x3d')]();}),this['listenTo'](_0x2981d4,_0x4b76('0x43'),()=>{this[_0x4b76('0x3f')](_0x380c92),this[_0x4b76('0x7')]['editing'][_0x4b76('0x14')]['focus']();}),this[_0x4b76('0x19')]!==_0x380c92&&this[_0x4b76('0x1a')](_0x380c92));}),this[_0x4b76('0x27')](this[_0x4b76('0x7')]['ui'],'update',()=>{_0x2c102a[_0x4b76('0x37')]&&(_0x18cef3[_0x4b76('0x33')](_0x2c102a['visibleView'])&&_0x2c102a['updatePosition']());}),this[_0x4b76('0x27')](this['editor'][_0x4b76('0x17')][_0x4b76('0x14')]['document'],_0x4b76('0x2a'),()=>{this[_0x4b76('0x26')]=!0x0,this[_0x4b76('0x4')][_0x4b76('0x2d')]();}),this['editor'][_0x4b76('0x17')][_0x4b76('0x14')][_0x4b76('0x15')]['selection'][_0x4b76('0x48')]&&this['editor'][_0x4b76('0x17')][_0x4b76('0x14')]['focus'](),this[_0x4b76('0x31')]=!0x0;}['detach'](){if(!this[_0x4b76('0x31')])throw new _0x137a36(_0x4b76('0x49'),this);this['setActiveAnnotation'](null);for(const _0x15b265 of this[_0x4b76('0x34')])this['_removeAnnotationFromBalloon'](_0x15b265);this[_0x4b76('0x41')](),this[_0x4b76('0x31')]=!0x1,this['annotations']=null;}[_0x4b76('0x1d')](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x580d24){for(const _0x2369e4 of this[_0x4b76('0x18')])_0x580d24['includes'](_0x2369e4)||this[_0x4b76('0x4')][_0x4b76('0x21')](_0x2369e4);for(const _0x4d18d3 of this['annotations'])_0x580d24[_0x4b76('0x2b')](_0x4d18d3)||this[_0x4b76('0x3e')](_0x4d18d3);if(this[_0x4b76('0x7')]['ui'][_0x4b76('0x44')][_0x4b76('0x1')])for(const _0x5b4933 of _0x580d24)this[_0x4b76('0xd')](_0x5b4933);this['_selectedAnnotations']=_0x580d24;}[_0x4b76('0xd')](_0x52a2b8,_0x53bb54=!0x1){this[_0x4b76('0x4')][_0x4b76('0x39')](_0x52a2b8)||(this[_0x4b76('0x34')][_0x4b76('0x39')](_0x52a2b8)||this[_0x4b76('0x0')][_0x4b76('0xa')](_0x52a2b8[_0x4b76('0x14')])||(this[_0x4b76('0x34')][_0x4b76('0xb')](_0x52a2b8),this[_0x4b76('0x0')][_0x4b76('0xb')]({'stackId':_0x52a2b8[_0x4b76('0x14')]['id'],'view':_0x52a2b8[_0x4b76('0x14')],'position':{'target':()=>this[_0x4b76('0xf')](_0x52a2b8)}})),_0x53bb54&&this[_0x4b76('0x0')][_0x4b76('0x11')](_0x52a2b8['view']['id']));}['_getBalloonTargetForAnnotation'](_0x19bf6f){const _0x521442=_0x19bf6f[_0x4b76('0x1f')],_0x154002=this[_0x4b76('0x7')]['editing'][_0x4b76('0x14')],_0x193164=_0x154002['document']['selection'][_0x4b76('0x13')](),_0x374c01=_0x154002[_0x4b76('0xc')][_0x4b76('0x30')](_0x193164);if(_0x374c01['collapse'](!0x0),_0x521442){if(_0x521442 instanceof _0x2bf1d0)return _0x521442;let _0x5e4a00=[];for(const _0x502a0e of _0x521442)_0x5e4a00['push'](...(_0x5e7ad9=_0x502a0e[_0x4b76('0x25')](),Array[_0x4b76('0x42')](_0x5e7ad9)[_0x4b76('0x2f')](DOMRect[_0x4b76('0x32')])));_0x5e4a00=function(_0x4a4f55){const _0xaa8a4f=[];let _0x32e8af=_0x4a4f55[0x0];for(let _0x34ef81=0x1;_0x34ef81<_0x4a4f55[_0x4b76('0x1e')];_0x34ef81++)F(_0x32e8af,_0x4a4f55[_0x34ef81])?_0x32e8af[_0x4b76('0x46')]+=_0x4a4f55[_0x34ef81][_0x4b76('0x46')]:(_0xaa8a4f[_0x4b76('0x29')](_0x32e8af),_0x32e8af=_0x4a4f55[_0x34ef81]);return _0xaa8a4f[_0x4b76('0x29')](_0x32e8af),_0xaa8a4f;}(_0x5e4a00);const _0x16ba50=_0x374c01['getBoundingClientRect']();return _0x5e4a00['find'](_0x12bfac=>_0x12bfac[_0x4b76('0x2e')]<=_0x16ba50[_0x4b76('0x2e')]&&_0x12bfac[_0x4b76('0x3a')]>=_0x16ba50[_0x4b76('0x3a')]&&_0x12bfac[_0x4b76('0x5')]<=_0x16ba50['left']&&_0x12bfac[_0x4b76('0x38')]>=_0x16ba50['right'])||_0x5e4a00[0x0];}var _0x5e7ad9;return _0x19bf6f[_0x4b76('0x9')]||_0x374c01;}[_0x4b76('0x3e')](_0x52a088){this[_0x4b76('0x34')][_0x4b76('0x39')](_0x52a088)&&this[_0x4b76('0x0')][_0x4b76('0xa')](_0x52a088[_0x4b76('0x14')])&&(this[_0x4b76('0x34')][_0x4b76('0x21')](_0x52a088),this[_0x4b76('0x0')][_0x4b76('0x2c')](_0x52a088[_0x4b76('0x14')]));}['_closeAnnotation'](_0x2d5320){this[_0x4b76('0x4')]['add'](_0x2d5320),this[_0x4b76('0x3e')](_0x2d5320);}}function F(_0x578e09,_0x4cc539){return _0x578e09[_0x4b76('0x2e')]===_0x4cc539[_0x4b76('0x2e')]&&_0x578e09['bottom']===_0x4cc539[_0x4b76('0x3a')]&&_0x578e09[_0x4b76('0x38')]===_0x4cc539[_0x4b76('0x5')];}
23
+ const _0x4d0b=['change:isFocused','focusTracker','hasActive','_forceRefresh','init','_addedAnnotations','annotations','right','_selectedAnnotations','push','domConverter','activeAnnotation','visibleView','getClientRects','setActiveAnnotation','set','focus','listenTo','_removeAnnotationFromBalloon','fromRect','register','_setSelectedAnnotations','requires','plugins','clear','change:height','editing','get','inlineannotations-attach-already-attached','editor','bottom','collapse','addObserver','target','isAttached','editableElement','_manuallyClosed','_addAnnotationToBalloon','delete','_closeAnnotation','view','left','getBoundingClientRect','getOrderedSelectedAnnotations','selection','map','length','width','_balloon','mousedown','stopListening','document','Esc','showStack','inline','isFocused','inlineannotations-not-allowed-with-context','detach','hasView','keystrokes','every','InlineAnnotations','attach','change:visibleView','updatePosition','includes','getByView','top','remove','from','context','has','add','targetRect','switchTo','isActive','pluginName','_getBalloonTargetForAnnotation'];(function(_0x4669bb,_0x4d0bbd){const _0x44727c=function(_0x4277c7){while(--_0x4277c7){_0x4669bb['push'](_0x4669bb['shift']());}};_0x44727c(++_0x4d0bbd);}(_0x4d0b,0x18c));const _0x4472=function(_0x4669bb,_0x4d0bbd){_0x4669bb=_0x4669bb-0x0;let _0x44727c=_0x4d0b[_0x4669bb];return _0x44727c;};import{Plugin as _0x3c5c6c}from'ckeditor5/src/core.js';import _0x3626d7 from'./annotationsuis.js';import _0xd8d130 from'./editorannotations.js';import{ContextualBalloon as _0x485e33}from'ckeditor5/src/ui.js';import{MouseObserver as _0x51619f}from'ckeditor5/src/engine.js';import{CKEditorError as _0x70466c,Rect as _0x19822c}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x3c5c6c{static get[_0x4472('0x10')](){return[_0xd8d130,_0x485e33,_0x3626d7];}static get[_0x4472('0x46')](){return _0x4472('0x37');}constructor(_0x1187d4){super(_0x1187d4),_0x1187d4[_0x4472('0x14')][_0x4472('0x22')][_0x4472('0x1a')](_0x51619f),this[_0x4472('0x1c')]=!0x1,this[_0x4472('0x9')]('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this[_0x4472('0x2a')]=_0x1187d4['plugins']['get'](_0x485e33),this[_0x4472('0x4d')]=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}[_0x4472('0x4c')](){const _0x416933=this['editor'][_0x4472('0x11')][_0x4472('0x15')](_0x3626d7);_0x416933['context']===this[_0x4472('0x17')]&&(_0x416933[_0x4472('0xe')](_0x4472('0x30'),this),this[_0x4472('0x17')][_0x4472('0x35')][_0x4472('0x9')](_0x4472('0x2e'),(_0x478ad0,_0x1271ab)=>{const _0x4bc605=this['_balloon'];if(this['isAttached']&&_0x4bc605[_0x4472('0x6')]){const _0x42f00c=this[_0x4472('0x0')][_0x4472('0x3c')](_0x4bc605[_0x4472('0x6')]);_0x42f00c&&this[_0x4472('0x21')](_0x42f00c),_0x1271ab();}}));}['afterInit'](){const _0x17b9b5=this[_0x4472('0x17')][_0x4472('0x11')][_0x4472('0x15')](_0x3626d7);_0x17b9b5[_0x4472('0x40')]===this[_0x4472('0x17')]&&(_0x17b9b5[_0x4472('0x4a')]()||_0x17b9b5[_0x4472('0x44')](_0x4472('0x30')));}[_0x4472('0x8')](_0x3656c4){_0x3656c4!==this['activeAnnotation']&&(this[_0x4472('0x5')]&&(this[_0x4472('0x5')][_0x4472('0x45')]=!0x1),_0x3656c4&&this[_0x4472('0x17')]['ui'][_0x4472('0x49')][_0x4472('0x31')]&&(this[_0x4472('0x0')]['has'](_0x3656c4)&&this[_0x4472('0x1f')](_0x3656c4,!0x0),_0x3656c4['isActive']=!0x0),_0x3656c4||this[_0x4472('0xf')]([]),this[_0x4472('0x5')]=_0x3656c4);}[_0x4472('0x38')](_0x2ad3a8){this[_0x4472('0x0')]=_0x2ad3a8;const _0x5b3603=this[_0x4472('0x17')][_0x4472('0x11')][_0x4472('0x15')](_0x3626d7),_0x27fab8=this['_balloon'];if(this['isAttached'])throw new _0x70466c(_0x4472('0x16'),this);if(_0x5b3603['context']!==this[_0x4472('0x17')])throw new _0x70466c(_0x4472('0x32'),this);const _0x3a91ba=this[_0x4472('0x17')][_0x4472('0x11')][_0x4472('0x15')](_0xd8d130);this['listenTo'](_0x3a91ba,'refresh',()=>{const _0x35b524=_0x3a91ba[_0x4472('0x25')]({'annotations':this[_0x4472('0x0')],'activeAnnotation':this[_0x4472('0x5')]});var _0x4d539c,_0x2584b6;!this[_0x4472('0x4b')]&&(_0x4d539c=_0x35b524,_0x2584b6=this[_0x4472('0x2')],_0x4d539c[_0x4472('0x28')]===_0x2584b6[_0x4472('0x28')]&&_0x4d539c[_0x4472('0x36')](_0x5128a2=>_0x2584b6['includes'](_0x5128a2)))||(this['_forceRefresh']=!0x1,this[_0x4472('0xf')](_0x35b524),this['setActiveAnnotation'](_0x35b524[0x0]||null));}),this[_0x4472('0xb')](_0x3a91ba,'blur',(_0x3f3a74,{isAnnotationTracked:_0x53a523})=>{this[_0x4472('0x5')]&&_0x53a523(this[_0x4472('0x5')])&&(this[_0x4472('0xf')]([]),this[_0x4472('0x8')](null));}),this[_0x4472('0xb')](this['editor']['ui']['focusTracker'],_0x4472('0x48'),(_0x2d658e,_0x5d605c,_0x3ccae0)=>{_0x3ccae0||this['setActiveAnnotation'](null);}),this[_0x4472('0xb')](_0x2ad3a8,_0x4472('0x3e'),(_0x257998,_0x573409)=>{this['_removeAnnotationFromBalloon'](_0x573409),_0x573409===this['activeAnnotation']&&this[_0x4472('0x8')](null);}),this['listenTo'](_0x27fab8,_0x4472('0x39'),(_0x4ff083,_0x13344d,_0x8e08a7,_0x42132f)=>{_0x42132f&&this[_0x4472('0x2c')](_0x42132f);const _0x500aa6=_0x2ad3a8[_0x4472('0x3c')](_0x8e08a7);_0x8e08a7&&_0x500aa6&&(this[_0x4472('0xb')](_0x8e08a7,_0x4472('0x13'),()=>{_0x27fab8[_0x4472('0x3a')]();}),this[_0x4472('0xb')](_0x8e08a7,'Esc',()=>{this[_0x4472('0x21')](_0x500aa6),this[_0x4472('0x17')][_0x4472('0x14')][_0x4472('0x22')]['focus']();}),this['activeAnnotation']!==_0x500aa6&&this[_0x4472('0x8')](_0x500aa6));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x27fab8['visibleView']&&(_0x2ad3a8['getByView'](_0x27fab8[_0x4472('0x6')])&&_0x27fab8[_0x4472('0x3a')]());}),this[_0x4472('0xb')](this[_0x4472('0x17')][_0x4472('0x14')][_0x4472('0x22')][_0x4472('0x2d')],_0x4472('0x2b'),()=>{this[_0x4472('0x4b')]=!0x0,this[_0x4472('0x1e')][_0x4472('0x12')]();}),this[_0x4472('0x17')][_0x4472('0x14')]['view'][_0x4472('0x2d')][_0x4472('0x26')][_0x4472('0x1d')]&&this[_0x4472('0x17')][_0x4472('0x14')][_0x4472('0x22')][_0x4472('0xa')](),this[_0x4472('0x1c')]=!0x0;}[_0x4472('0x33')](){if(!this['isAttached'])throw new _0x70466c('inlineannotations-detach-not-attached',this);this[_0x4472('0x8')](null);for(const _0x42f85a of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x42f85a);this[_0x4472('0x2c')](),this[_0x4472('0x1c')]=!0x1,this[_0x4472('0x0')]=null;}['destroy'](){this[_0x4472('0x1c')]&&this[_0x4472('0x33')]();}['_setSelectedAnnotations'](_0x3afc53){for(const _0x3d6128 of this['_selectedAnnotations'])_0x3afc53[_0x4472('0x3b')](_0x3d6128)||this[_0x4472('0x1e')][_0x4472('0x20')](_0x3d6128);for(const _0x1425a8 of this['annotations'])_0x3afc53['includes'](_0x1425a8)||this[_0x4472('0xc')](_0x1425a8);if(this[_0x4472('0x17')]['ui']['focusTracker']['isFocused'])for(const _0x40e2f3 of _0x3afc53)this['_addAnnotationToBalloon'](_0x40e2f3);this[_0x4472('0x2')]=_0x3afc53;}[_0x4472('0x1f')](_0x27eeff,_0x490b0c=!0x1){this[_0x4472('0x1e')][_0x4472('0x41')](_0x27eeff)||(this[_0x4472('0x4d')][_0x4472('0x41')](_0x27eeff)||this[_0x4472('0x2a')][_0x4472('0x34')](_0x27eeff['view'])||(this[_0x4472('0x4d')][_0x4472('0x42')](_0x27eeff),this[_0x4472('0x2a')][_0x4472('0x42')]({'stackId':_0x27eeff[_0x4472('0x22')]['id'],'view':_0x27eeff['view'],'position':{'target':()=>this[_0x4472('0x47')](_0x27eeff)}})),_0x490b0c&&this[_0x4472('0x2a')][_0x4472('0x2f')](_0x27eeff[_0x4472('0x22')]['id']));}['_getBalloonTargetForAnnotation'](_0x46f27d){const _0x5b54e4=_0x46f27d[_0x4472('0x1b')],_0x3e8036=this['editor'][_0x4472('0x14')]['view'],_0x2811fe=_0x3e8036[_0x4472('0x2d')][_0x4472('0x26')]['getFirstRange'](),_0x2cd1ad=_0x3e8036[_0x4472('0x4')]['viewRangeToDom'](_0x2811fe);if(_0x2cd1ad[_0x4472('0x19')](!0x0),_0x5b54e4){if(_0x5b54e4 instanceof _0x19822c)return _0x5b54e4;let _0x421653=[];for(const _0x39c89c of _0x5b54e4)_0x421653[_0x4472('0x3')](...(_0x59f5ce=_0x39c89c[_0x4472('0x7')](),Array[_0x4472('0x3f')](_0x59f5ce)[_0x4472('0x27')](DOMRect[_0x4472('0xd')])));_0x421653=function(_0x3675ce){const _0x5471b2=[];let _0x4c04a7=_0x3675ce[0x0];for(let _0x5df5bc=0x1;_0x5df5bc<_0x3675ce[_0x4472('0x28')];_0x5df5bc++)F(_0x4c04a7,_0x3675ce[_0x5df5bc])?_0x4c04a7[_0x4472('0x29')]+=_0x3675ce[_0x5df5bc][_0x4472('0x29')]:(_0x5471b2['push'](_0x4c04a7),_0x4c04a7=_0x3675ce[_0x5df5bc]);return _0x5471b2[_0x4472('0x3')](_0x4c04a7),_0x5471b2;}(_0x421653);const _0x15f480=_0x2cd1ad[_0x4472('0x24')]();return _0x421653['find'](_0xecce7f=>_0xecce7f[_0x4472('0x3d')]<=_0x15f480['top']&&_0xecce7f[_0x4472('0x18')]>=_0x15f480[_0x4472('0x18')]&&_0xecce7f[_0x4472('0x23')]<=_0x15f480['left']&&_0xecce7f[_0x4472('0x1')]>=_0x15f480[_0x4472('0x1')])||_0x421653[0x0];}var _0x59f5ce;return _0x46f27d[_0x4472('0x43')]||_0x2cd1ad;}[_0x4472('0xc')](_0x151262){this[_0x4472('0x4d')][_0x4472('0x41')](_0x151262)&&this['_balloon']['hasView'](_0x151262[_0x4472('0x22')])&&(this[_0x4472('0x4d')][_0x4472('0x20')](_0x151262),this[_0x4472('0x2a')][_0x4472('0x3e')](_0x151262['view']));}[_0x4472('0x21')](_0x5c5b94){this['_manuallyClosed'][_0x4472('0x42')](_0x5c5b94),this[_0x4472('0xc')](_0x5c5b94);}}function F(_0x9e6233,_0x2d358c){return _0x9e6233['top']===_0x2d358c[_0x4472('0x3d')]&&_0x9e6233[_0x4472('0x18')]===_0x2d358c[_0x4472('0x18')]&&_0x9e6233['right']===_0x2d358c[_0x4472('0x23')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4650=['clear','pin','_editorAnnotations','northArrowSouth','context','first','plugins','keyCode','pluginName','_refreshPositioning','attachToDom','_destroyEditorAnnotationsIntegration','getSidebarItemView','detach','contains','content','detachFromDom','bodyCollection','northArrowSouthWest','_annotations','execute','_setSelectedAnnotations','_refreshPositioningDebounced','annotations','add','set:container','low','has','getOrderedSelectedAnnotations','_annotationToNarrowView','removeEventListener','target','requires','southArrowNorthWest','esc','getByView','view','preventClosingBalloon','rearrange','setActiveAnnotation','listenTo','from','stopPropagation','defaultPositions','number','destroy','keydown','bind','type','register','mousedown','focusableElements','editors','_attachToContainer','attach','set','balloonPanelView','stopListening','southArrowNorth','activeAnnotation','locale','element','blur','EditorAnnotations','addEventListener','hasDomSelection','init','values','_showBalloon','create','isAttached','_updateBalloonPosition','focus','refresh','_attachListeners','off','NarrowSidebar','get','narrowSidebar','_domEmitter','_manuallyClosedAnnotationViews','addAnnotation','ready','_selectedAnnotations','refreshPositioning','Esc','resize','remove','_hideBalloon','_integrateWithEditorAnnotations','high','isVisible','delete','_detachListeners'];(function(_0x1adc3e,_0x46506e){const _0x540255=function(_0x42e481){while(--_0x42e481){_0x1adc3e['push'](_0x1adc3e['shift']());}};_0x540255(++_0x46506e);}(_0x4650,0xd4));const _0x5402=function(_0x1adc3e,_0x46506e){_0x1adc3e=_0x1adc3e-0x0;let _0x540255=_0x4650[_0x1adc3e];return _0x540255;};import{ContextPlugin as _0x131720,Context as _0x88b345}from'ckeditor5/src/core.js';import _0x4231c8 from'./annotationsuis.js';import _0x14ac71 from'./sidebar.js';import _0x5def53 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x21767d,BodyCollection as _0x593556}from'ckeditor5/src/ui.js';import{CKEditorError as _0x49bd96,DomEmitterMixin as _0xe0c08d,keyCodes as _0x7a74de,Collection as _0x5784c4}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x1bb5cd}from'lodash-es';import _0x36ee9a from'./editorannotations.js';export default class i extends _0x131720{static get[_0x5402('0x8')](){return[_0x14ac71,_0x4231c8];}static get[_0x5402('0x4e')](){return _0x5402('0x34');}constructor(_0x392613){super(_0x392613),this[_0x5402('0x2e')]=!0x1,this[_0x5402('0x38')]=new Set(),this['_domEmitter']=Object[_0x5402('0x2d')](_0xe0c08d),this['_annotationToNarrowView']=new Map(),this[_0x5402('0x1f')](_0x5402('0x23'),null),this['annotations']=null,this[_0x5402('0x3b')]=[],this[_0x5402('0x48')]=new _0x5784c4(),this[_0x5402('0x5c')]=_0x1bb5cd(()=>{this[_0x5402('0x4f')]();},0xfa,{'leading':!0x1});}[_0x5402('0x2a')](){this[_0x5402('0x4a')]['plugins']['get'](_0x4231c8)[_0x5402('0x19')](_0x5402('0x36'),this),this[_0x5402('0x57')]=new _0x593556(this['context']['locale']),this[_0x5402('0x20')]=new _0x21767d(this[_0x5402('0x4a')][_0x5402('0x24')]),this['bodyCollection'][_0x5402('0x50')](),this[_0x5402('0x57')][_0x5402('0x0')](this[_0x5402('0x20')]);}[_0x5402('0x1e')](_0x29a39a){this[_0x5402('0x5d')]=_0x29a39a;const _0x45ab0b=this[_0x5402('0x4a')][_0x5402('0x4c')]['get'](_0x14ac71),_0x468170=this[_0x5402('0x20')];if(_0x45ab0b[_0x5402('0x59')]=_0x29a39a,this['isAttached'])throw new _0x49bd96('narrowsidebar-attach-already-attached',this);this[_0x5402('0x2e')]=!0x0,this[_0x5402('0x10')](_0x45ab0b,_0x5402('0x1'),()=>{this[_0x5402('0x53')](),this[_0x5402('0x10')](_0x45ab0b,'change:container',_0x4c91e0=>{_0x4c91e0[_0x5402('0x33')](),this['attach'](_0x29a39a);});}),_0x45ab0b[_0x5402('0x1d')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x51cbbf=_0x282fee=>{const _0x454ff6=new _0x5def53(this['context'][_0x5402('0x24')]);_0x45ab0b[_0x5402('0x39')](_0x282fee,_0x454ff6),this[_0x5402('0x5')][_0x5402('0x1f')](_0x282fee,_0x454ff6),_0x454ff6[_0x5402('0x17')]('isDirty','annotationType',_0x5402('0x14'))['to'](_0x282fee[_0x5402('0xc')],'isDirty',_0x5402('0x18'),'length'),_0x454ff6['on'](_0x5402('0x5a'),()=>{this[_0x5402('0x38')][_0x5402('0x46')](),_0x468170[_0x5402('0x55')][_0x5402('0x4b')]!==_0x282fee['view']?(this['_showBalloon'](_0x282fee),_0x282fee[_0x5402('0xc')][_0x5402('0x25')][_0x5402('0x30')](),this['setActiveAnnotation'](_0x282fee)):this[_0x5402('0xf')](null);});};for(const _0x5b7541 of _0x29a39a)_0x51cbbf(_0x5b7541);this['listenTo'](_0x29a39a,_0x5402('0x0'),(_0x3b841b,_0x71877e)=>{_0x51cbbf(_0x71877e);}),this[_0x5402('0x10')](_0x29a39a,'remove',(_0x5e3ec3,_0xf351b6,_0x5f4757)=>{this[_0x5402('0x5')][_0x5402('0x35')](_0xf351b6)['destroy'](),this[_0x5402('0x5')][_0x5402('0x44')](_0xf351b6),_0x45ab0b[_0x5402('0xe')]({'removedAnnotation':_0xf351b6,'previousAnnotation':_0x29a39a[_0x5402('0x35')](_0x5f4757-0x1),'nextAnnotation':_0x29a39a[_0x5402('0x35')](_0x5f4757+0x1)}),_0xf351b6===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':_0x5402('0x2')}),this[_0x5402('0x10')](_0x29a39a,_0x5402('0x30'),(_0x102361,_0x3e646a)=>{this[_0x5402('0xf')](_0x3e646a);}),this[_0x5402('0x10')](_0x29a39a,_0x5402('0x26'),()=>{this[_0x5402('0xf')](null);}),this[_0x5402('0x37')][_0x5402('0x10')](document,_0x5402('0x16'),(_0x2ab798,_0x2449e8)=>{_0x2449e8[_0x5402('0x4d')]===_0x7a74de[_0x5402('0xa')]&&_0x468170['isVisible']&&(this[_0x5402('0x38')][_0x5402('0x0')](_0x468170[_0x5402('0x55')]['first']),this[_0x5402('0x40')](),_0x2449e8[_0x5402('0x12')](),_0x2449e8['preventDefault']());}),this['_domEmitter']['listenTo'](document,_0x5402('0x1a'),(_0x234797,_0x22b694)=>{const _0x43ae41=_0x22b694[_0x5402('0x7')];_0x468170[_0x5402('0x43')]&&_0x468170[_0x5402('0x25')]['contains'](_0x43ae41)||_0x45ab0b[_0x5402('0xc')][_0x5402('0x25')]['contains'](_0x43ae41)||_0x234797[_0x5402('0xd')]||this[_0x5402('0x23')]&&this[_0x5402('0x23')][_0x5402('0x1b')]['find'](_0x110d9c=>_0x110d9c[_0x5402('0x54')](_0x43ae41))||(this[_0x5402('0x38')]['clear'](),this[_0x5402('0x40')](),this[_0x5402('0xf')](null));});const _0x105322=this['context']instanceof _0x88b345?this[_0x5402('0x4a')][_0x5402('0x1c')]:new _0x5784c4([this[_0x5402('0x4a')]]);for(const _0x2d0023 of _0x105322)this['_integrateWithEditorAnnotations'](_0x2d0023);this[_0x5402('0x10')](_0x105322,_0x5402('0x0'),(_0x5c7a75,_0x2a208d)=>{this[_0x5402('0x10')](_0x2a208d,_0x5402('0x3a'),()=>{this[_0x5402('0x41')](_0x2a208d);});}),this[_0x5402('0x10')](_0x105322,_0x5402('0x3f'),(_0x59c2bb,_0x128f29)=>{_0x128f29[_0x5402('0x4c')][_0x5402('0x3')](_0x5402('0x27'))&&this['_destroyEditorAnnotationsIntegration'](_0x128f29[_0x5402('0x4c')]['get']('EditorAnnotations'));}),window[_0x5402('0x28')]('resize',this[_0x5402('0x5c')]),this['_refreshPositioning']();}[_0x5402('0xf')](_0xafb468){if(_0xafb468===this['activeAnnotation'])return;const _0x5efa94=this[_0x5402('0x4a')][_0x5402('0x4c')][_0x5402('0x35')](_0x14ac71);if(_0x5efa94['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0xafb468,'disableAnimationOnActivatedAnnotation':!0x0}),_0xafb468)_0x5efa94[_0x5402('0x52')](_0xafb468)?this[_0x5402('0x2c')](_0xafb468):this[_0x5402('0x40')]();else this[_0x5402('0x40')]();this[_0x5402('0x23')]=_0xafb468;}[_0x5402('0x53')](){if(!this[_0x5402('0x2e')])throw new _0x49bd96('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0xd6b9bc=this[_0x5402('0x4a')][_0x5402('0x4c')][_0x5402('0x35')](_0x14ac71);this[_0x5402('0x40')](),Array[_0x5402('0x11')](this[_0x5402('0x5')][_0x5402('0x2b')](),_0x147fc6=>_0x147fc6[_0x5402('0x15')]()),this[_0x5402('0x5')][_0x5402('0x46')](),_0xd6b9bc['_detachFromContainer'](this[_0x5402('0x5d')]),this['stopListening'](),this[_0x5402('0x37')][_0x5402('0x21')](),this[_0x5402('0x4a')]instanceof _0x88b345&&this[_0x5402('0x21')](this[_0x5402('0x4a')][_0x5402('0x1c')]);for(const _0x347773 of Array[_0x5402('0x11')](this[_0x5402('0x48')]))this[_0x5402('0x51')](_0x347773);window[_0x5402('0x6')](_0x5402('0x3e'),this[_0x5402('0x5c')]),this[_0x5402('0x5c')]['cancel'](),this[_0x5402('0x3b')]=[],this[_0x5402('0x2e')]=!0x1,this[_0x5402('0x5d')]=null;}[_0x5402('0x15')](){this[_0x5402('0x2e')]&&this[_0x5402('0x53')](),this[_0x5402('0x57')][_0x5402('0x56')]();}['_integrateWithEditorAnnotations'](_0x2cf810){const _0x465364=_0x2cf810[_0x5402('0x4c')][_0x5402('0x35')](_0x36ee9a),_0x1198c6=this[_0x5402('0x4a')][_0x5402('0x4c')][_0x5402('0x35')](_0x14ac71),_0x59bff0=this[_0x5402('0x5d')],_0x4ddebe=this[_0x5402('0x20')],_0x4fbcb7=()=>{const _0x2804c9=_0x465364[_0x5402('0x4')]({'annotations':this[_0x5402('0x5d')],'activeAnnotation':this[_0x5402('0x23')]});this['_setSelectedAnnotations'](_0x2804c9),this['setActiveAnnotation'](_0x2804c9[0x0]||null);};this['listenTo'](_0x465364,_0x5402('0x31'),_0x4fbcb7),this[_0x5402('0x10')](_0x465364,_0x5402('0x26'),(_0x18fefd,{isAnnotationTracked:_0x423875})=>{this[_0x5402('0x23')]&&_0x423875(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this[_0x5402('0xf')](null));}),this[_0x5402('0x10')](_0x465364,'uiUpdate',()=>{this[_0x5402('0x5c')]();}),this['listenTo'](_0x59bff0,_0x5402('0x26'),_0x11fcb4=>{_0x465364['hasDomSelection']()&&_0x11fcb4['stop']();},{'priority':'high'}),this[_0x5402('0x10')](this[_0x5402('0x37')],'mousedown',(_0x2784d7,_0x4bcd77)=>{const _0x213e09=_0x4bcd77[_0x5402('0x7')];_0x4ddebe[_0x5402('0x43')]&&_0x4ddebe[_0x5402('0x25')][_0x5402('0x54')](_0x213e09)||_0x1198c6[_0x5402('0xc')]['element'][_0x5402('0x54')](_0x213e09)||this[_0x5402('0x23')]&&_0x465364[_0x5402('0x29')]()&&(_0x4fbcb7(),_0x2784d7[_0x5402('0xd')]=!0x0);},{'priority':_0x5402('0x42')}),this[_0x5402('0x48')][_0x5402('0x0')](_0x465364);}[_0x5402('0x51')](_0x265de5){_0x265de5&&(this[_0x5402('0x21')](_0x265de5),this[_0x5402('0x48')]['remove'](_0x265de5));}[_0x5402('0x5b')](_0x27ec2c){for(const _0x41ec50 of this[_0x5402('0x3b')])_0x27ec2c['includes'](_0x41ec50)||this['_manuallyClosedAnnotationViews'][_0x5402('0x44')](_0x41ec50['view']);this[_0x5402('0x3b')]=_0x27ec2c;}[_0x5402('0x4f')](){const _0x1dd871=this[_0x5402('0x20')];this['annotations'][_0x5402('0x3c')](),_0x1dd871[_0x5402('0x43')]&&this[_0x5402('0x2f')]();}[_0x5402('0x2c')](_0x27e1af){if(this[_0x5402('0x38')][_0x5402('0x3')](_0x27e1af[_0x5402('0xc')]))return;const _0x3c9d28=this[_0x5402('0x20')][_0x5402('0x55')]['first'];_0x3c9d28!==_0x27e1af[_0x5402('0xc')]?(_0x3c9d28&&this[_0x5402('0x45')](_0x3c9d28),this[_0x5402('0x32')](_0x27e1af['view']),this['balloonPanelView'][_0x5402('0x55')][_0x5402('0x46')](),this[_0x5402('0x20')][_0x5402('0x55')][_0x5402('0x0')](_0x27e1af['view']),this[_0x5402('0x2f')]()):this['_updateBalloonPosition']();}[_0x5402('0x2f')](){const _0x332b07=this[_0x5402('0x20')][_0x5402('0x55')][_0x5402('0x4b')],_0x5b9867=_0x332b07&&this['annotations'][_0x5402('0xb')](_0x332b07);if(!_0x5b9867||!this['_annotationToNarrowView']['has'](_0x5b9867))return;const _0x472045=this['_annotationToNarrowView'][_0x5402('0x35')](_0x5b9867)[_0x5402('0x25')],_0x49a65a=function(){const _0x5c99f4=_0x21767d[_0x5402('0x13')];return[_0x5c99f4['southArrowNorthEast'],_0x5c99f4['northArrowSouthEast'],_0x5c99f4[_0x5402('0x22')],_0x5c99f4[_0x5402('0x49')],_0x5c99f4[_0x5402('0x9')],_0x5c99f4[_0x5402('0x58')]];}();this[_0x5402('0x20')][_0x5402('0x47')]({'target':_0x472045,'positions':_0x49a65a});}[_0x5402('0x40')](){const _0x6092b2=this[_0x5402('0x20')],_0x26b7eb=_0x6092b2[_0x5402('0x55')][_0x5402('0x4b')];_0x26b7eb&&(this[_0x5402('0x45')](_0x26b7eb),_0x6092b2['unpin'](),_0x6092b2[_0x5402('0x55')][_0x5402('0x46')]());}[_0x5402('0x32')](_0x423f14){this[_0x5402('0x10')](_0x423f14,'change:height',()=>this[_0x5402('0x2f')]()),this['listenTo'](_0x423f14,_0x5402('0x3d'),(_0xca6ea2,_0x279e09)=>{this[_0x5402('0x38')]['add'](_0x423f14),this['_hideBalloon'](),_0x279e09();});}['_detachListeners'](_0x33af3d){this[_0x5402('0x21')](_0x33af3d);}}
23
+ const _0xe109=['view','refreshPositioning','content','activeAnnotation','annotations','_hideBalloon','Esc','isDirty','preventClosingBalloon','init','cancel','change:height','stopListening','defaultPositions','isAttached','change:container','_refreshPositioning','unpin','_showBalloon','stopPropagation','keyCode','southArrowNorth','bind','_annotationToNarrowView','listenTo','isVisible','remove','_attachListeners','detach','setActiveAnnotation','keydown','element','focusableElements','resize','context','attachToDom','rearrange','_destroyEditorAnnotationsIntegration','high','plugins','register','ready','_domEmitter','length','getByView','bodyCollection','_integrateWithEditorAnnotations','attach','create','_setSelectedAnnotations','delete','hasDomSelection','_updateBalloonPosition','detachFromDom','narrowSidebar','values','get','_manuallyClosedAnnotationViews','first','destroy','contains','_selectedAnnotations','EditorAnnotations','_detachListeners','refresh','northArrowSouthEast','_annotations','balloonPanelView','addAnnotation','target','locale','getOrderedSelectedAnnotations','stop','_editorAnnotations','_refreshPositioningDebounced','editors','_detachFromContainer','NarrowSidebar','focus','uiUpdate','has','ck-sidebar--narrow','getSidebarItemView','addEventListener','from','southArrowNorthEast','number','blur','removeEventListener','clear','set','add'];(function(_0x150705,_0xe109c0){const _0x3184b7=function(_0x3af11f){while(--_0x3af11f){_0x150705['push'](_0x150705['shift']());}};_0x3184b7(++_0xe109c0);}(_0xe109,0xbc));const _0x3184=function(_0x150705,_0xe109c0){_0x150705=_0x150705-0x0;let _0x3184b7=_0xe109[_0x150705];return _0x3184b7;};import{ContextPlugin as _0x5a8ea9,Context as _0x4a5fc6}from'ckeditor5/src/core.js';import _0x11e238 from'./annotationsuis.js';import _0x1c1083 from'./sidebar.js';import _0x124d4d from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x486bd9,BodyCollection as _0x10248a}from'ckeditor5/src/ui.js';import{CKEditorError as _0x486fd5,DomEmitterMixin as _0xf61baf,keyCodes as _0x5c4e4d,Collection as _0x251f9c}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x59a0a7}from'lodash-es';import _0x1069e4 from'./editorannotations.js';export default class i extends _0x5a8ea9{static get['requires'](){return[_0x1c1083,_0x11e238];}static get['pluginName'](){return _0x3184('0x49');}constructor(_0x5ea3e8){super(_0x5ea3e8),this['isAttached']=!0x1,this[_0x3184('0x35')]=new Set(),this[_0x3184('0x26')]=Object[_0x3184('0x2c')](_0xf61baf),this[_0x3184('0x13')]=new Map(),this['set'](_0x3184('0x5b'),null),this[_0x3184('0x0')]=null,this[_0x3184('0x39')]=[],this['_editorAnnotations']=new _0x251f9c(),this[_0x3184('0x46')]=_0x59a0a7(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x3184('0x5')](){this[_0x3184('0x1e')][_0x3184('0x23')][_0x3184('0x34')](_0x11e238)[_0x3184('0x24')](_0x3184('0x32'),this),this[_0x3184('0x29')]=new _0x10248a(this[_0x3184('0x1e')]['locale']),this[_0x3184('0x3f')]=new _0x486bd9(this[_0x3184('0x1e')][_0x3184('0x42')]),this['bodyCollection'][_0x3184('0x1f')](),this[_0x3184('0x29')][_0x3184('0x57')](this[_0x3184('0x3f')]);}[_0x3184('0x2b')](_0x5e0e54){this[_0x3184('0x0')]=_0x5e0e54;const _0x600311=this[_0x3184('0x1e')]['plugins'][_0x3184('0x34')](_0x1c1083),_0x104c55=this[_0x3184('0x3f')];if(_0x600311[_0x3184('0x3e')]=_0x5e0e54,this[_0x3184('0xa')])throw new _0x486fd5('narrowsidebar-attach-already-attached',this);this[_0x3184('0xa')]=!0x0,this[_0x3184('0x14')](_0x600311,'set:container',()=>{this['detach'](),this[_0x3184('0x14')](_0x600311,_0x3184('0xb'),_0x5f51eb=>{_0x5f51eb['off'](),this[_0x3184('0x2b')](_0x5e0e54);});}),_0x600311['_attachToContainer']({'viewClass':_0x3184('0x4d'),'spaceBetweenItems':0x5});const _0x582d38=_0x4e108c=>{const _0x66068a=new _0x124d4d(this[_0x3184('0x1e')][_0x3184('0x42')]);_0x600311[_0x3184('0x40')](_0x4e108c,_0x66068a),this[_0x3184('0x13')][_0x3184('0x56')](_0x4e108c,_0x66068a),_0x66068a[_0x3184('0x12')](_0x3184('0x3'),'annotationType',_0x3184('0x52'))['to'](_0x4e108c[_0x3184('0x58')],_0x3184('0x3'),'type',_0x3184('0x27')),_0x66068a['on']('execute',()=>{this[_0x3184('0x35')][_0x3184('0x55')](),_0x104c55['content'][_0x3184('0x36')]!==_0x4e108c[_0x3184('0x58')]?(this[_0x3184('0xe')](_0x4e108c),_0x4e108c['view'][_0x3184('0x1b')][_0x3184('0x4a')](),this[_0x3184('0x19')](_0x4e108c)):this[_0x3184('0x19')](null);});};for(const _0x183680 of _0x5e0e54)_0x582d38(_0x183680);this[_0x3184('0x14')](_0x5e0e54,_0x3184('0x57'),(_0x568acc,_0x406427)=>{_0x582d38(_0x406427);}),this[_0x3184('0x14')](_0x5e0e54,'remove',(_0x25610c,_0x5bd17d,_0x59b041)=>{this[_0x3184('0x13')][_0x3184('0x34')](_0x5bd17d)[_0x3184('0x37')](),this[_0x3184('0x13')][_0x3184('0x2e')](_0x5bd17d),_0x600311[_0x3184('0x20')]({'removedAnnotation':_0x5bd17d,'previousAnnotation':_0x5e0e54['get'](_0x59b041-0x1),'nextAnnotation':_0x5e0e54[_0x3184('0x34')](_0x59b041+0x1)}),_0x5bd17d===this['activeAnnotation']&&this[_0x3184('0x19')](null);},{'priority':'low'}),this[_0x3184('0x14')](_0x5e0e54,'focus',(_0x4cca15,_0x5d5b4c)=>{this[_0x3184('0x19')](_0x5d5b4c);}),this['listenTo'](_0x5e0e54,_0x3184('0x53'),()=>{this[_0x3184('0x19')](null);}),this['_domEmitter'][_0x3184('0x14')](document,_0x3184('0x1a'),(_0x591972,_0xd9cacc)=>{_0xd9cacc[_0x3184('0x10')]===_0x5c4e4d['esc']&&_0x104c55[_0x3184('0x15')]&&(this['_manuallyClosedAnnotationViews'][_0x3184('0x57')](_0x104c55[_0x3184('0x5a')]['first']),this['_hideBalloon'](),_0xd9cacc[_0x3184('0xf')](),_0xd9cacc['preventDefault']());}),this['_domEmitter'][_0x3184('0x14')](document,'mousedown',(_0x173df5,_0x39a9e6)=>{const _0x243870=_0x39a9e6[_0x3184('0x41')];_0x104c55[_0x3184('0x15')]&&_0x104c55['element'][_0x3184('0x38')](_0x243870)||_0x600311[_0x3184('0x58')]['element'][_0x3184('0x38')](_0x243870)||_0x173df5[_0x3184('0x4')]||this[_0x3184('0x5b')]&&this[_0x3184('0x5b')][_0x3184('0x1c')]['find'](_0x380864=>_0x380864[_0x3184('0x38')](_0x243870))||(this[_0x3184('0x35')][_0x3184('0x55')](),this[_0x3184('0x1')](),this[_0x3184('0x19')](null));});const _0x1f4335=this[_0x3184('0x1e')]instanceof _0x4a5fc6?this[_0x3184('0x1e')][_0x3184('0x47')]:new _0x251f9c([this['context']]);for(const _0x2cecae of _0x1f4335)this[_0x3184('0x2a')](_0x2cecae);this[_0x3184('0x14')](_0x1f4335,'add',(_0x54d766,_0x30eec4)=>{this[_0x3184('0x14')](_0x30eec4,_0x3184('0x25'),()=>{this[_0x3184('0x2a')](_0x30eec4);});}),this[_0x3184('0x14')](_0x1f4335,_0x3184('0x16'),(_0x493ecf,_0x2891b0)=>{_0x2891b0[_0x3184('0x23')]['has'](_0x3184('0x3a'))&&this['_destroyEditorAnnotationsIntegration'](_0x2891b0[_0x3184('0x23')][_0x3184('0x34')](_0x3184('0x3a')));}),window[_0x3184('0x4f')](_0x3184('0x1d'),this[_0x3184('0x46')]),this[_0x3184('0xc')]();}[_0x3184('0x19')](_0x2dec95){if(_0x2dec95===this['activeAnnotation'])return;const _0x2e48c4=this[_0x3184('0x1e')][_0x3184('0x23')][_0x3184('0x34')](_0x1c1083);if(_0x2e48c4[_0x3184('0x3c')]({'blurredAnnotation':this[_0x3184('0x5b')],'activatedAnnotation':_0x2dec95,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2dec95)_0x2e48c4[_0x3184('0x4e')](_0x2dec95)?this[_0x3184('0xe')](_0x2dec95):this[_0x3184('0x1')]();else this[_0x3184('0x1')]();this[_0x3184('0x5b')]=_0x2dec95;}[_0x3184('0x18')](){if(!this['isAttached'])throw new _0x486fd5('narrowsidebar-detach-not-attached',this);this[_0x3184('0x19')](null);const _0x2b0b81=this[_0x3184('0x1e')][_0x3184('0x23')][_0x3184('0x34')](_0x1c1083);this[_0x3184('0x1')](),Array[_0x3184('0x50')](this[_0x3184('0x13')][_0x3184('0x33')](),_0x3ba140=>_0x3ba140[_0x3184('0x37')]()),this[_0x3184('0x13')]['clear'](),_0x2b0b81[_0x3184('0x48')](this[_0x3184('0x0')]),this[_0x3184('0x8')](),this[_0x3184('0x26')][_0x3184('0x8')](),this[_0x3184('0x1e')]instanceof _0x4a5fc6&&this['stopListening'](this[_0x3184('0x1e')][_0x3184('0x47')]);for(const _0x553aba of Array['from'](this[_0x3184('0x45')]))this[_0x3184('0x21')](_0x553aba);window[_0x3184('0x54')](_0x3184('0x1d'),this['_refreshPositioningDebounced']),this[_0x3184('0x46')][_0x3184('0x6')](),this[_0x3184('0x39')]=[],this[_0x3184('0xa')]=!0x1,this['annotations']=null;}[_0x3184('0x37')](){this[_0x3184('0xa')]&&this[_0x3184('0x18')](),this[_0x3184('0x29')][_0x3184('0x31')]();}['_integrateWithEditorAnnotations'](_0x33c817){const _0x1debf6=_0x33c817['plugins'][_0x3184('0x34')](_0x1069e4),_0x35a57d=this[_0x3184('0x1e')][_0x3184('0x23')]['get'](_0x1c1083),_0x496b65=this[_0x3184('0x0')],_0xb02b8e=this[_0x3184('0x3f')],_0x4d35ab=()=>{const _0x46e26f=_0x1debf6[_0x3184('0x43')]({'annotations':this[_0x3184('0x0')],'activeAnnotation':this[_0x3184('0x5b')]});this[_0x3184('0x2d')](_0x46e26f),this[_0x3184('0x19')](_0x46e26f[0x0]||null);};this[_0x3184('0x14')](_0x1debf6,'refresh',_0x4d35ab),this['listenTo'](_0x1debf6,_0x3184('0x53'),(_0x53259d,{isAnnotationTracked:_0x4cfeb6})=>{this['activeAnnotation']&&_0x4cfeb6(this[_0x3184('0x5b')])&&(this[_0x3184('0x2d')]([]),this[_0x3184('0x19')](null));}),this[_0x3184('0x14')](_0x1debf6,_0x3184('0x4b'),()=>{this[_0x3184('0x46')]();}),this[_0x3184('0x14')](_0x496b65,_0x3184('0x53'),_0x1978f2=>{_0x1debf6[_0x3184('0x2f')]()&&_0x1978f2[_0x3184('0x44')]();},{'priority':'high'}),this['listenTo'](this[_0x3184('0x26')],'mousedown',(_0x17484a,_0x24c1e5)=>{const _0xa86a71=_0x24c1e5[_0x3184('0x41')];_0xb02b8e['isVisible']&&_0xb02b8e['element'][_0x3184('0x38')](_0xa86a71)||_0x35a57d[_0x3184('0x58')][_0x3184('0x1b')][_0x3184('0x38')](_0xa86a71)||this['activeAnnotation']&&_0x1debf6[_0x3184('0x2f')]()&&(_0x4d35ab(),_0x17484a[_0x3184('0x4')]=!0x0);},{'priority':_0x3184('0x22')}),this['_editorAnnotations']['add'](_0x1debf6);}[_0x3184('0x21')](_0x18b98f){_0x18b98f&&(this['stopListening'](_0x18b98f),this[_0x3184('0x45')][_0x3184('0x16')](_0x18b98f));}['_setSelectedAnnotations'](_0x3634d0){for(const _0x1b4a36 of this[_0x3184('0x39')])_0x3634d0['includes'](_0x1b4a36)||this[_0x3184('0x35')]['delete'](_0x1b4a36[_0x3184('0x58')]);this[_0x3184('0x39')]=_0x3634d0;}[_0x3184('0xc')](){const _0x3056c0=this[_0x3184('0x3f')];this[_0x3184('0x0')][_0x3184('0x59')](),_0x3056c0[_0x3184('0x15')]&&this['_updateBalloonPosition']();}[_0x3184('0xe')](_0x424be1){if(this[_0x3184('0x35')][_0x3184('0x4c')](_0x424be1[_0x3184('0x58')]))return;const _0x22b601=this[_0x3184('0x3f')]['content'][_0x3184('0x36')];_0x22b601!==_0x424be1[_0x3184('0x58')]?(_0x22b601&&this[_0x3184('0x3b')](_0x22b601),this[_0x3184('0x17')](_0x424be1[_0x3184('0x58')]),this[_0x3184('0x3f')][_0x3184('0x5a')]['clear'](),this[_0x3184('0x3f')][_0x3184('0x5a')]['add'](_0x424be1[_0x3184('0x58')]),this[_0x3184('0x30')]()):this[_0x3184('0x30')]();}[_0x3184('0x30')](){const _0x233e8e=this[_0x3184('0x3f')][_0x3184('0x5a')][_0x3184('0x36')],_0x155b00=_0x233e8e&&this[_0x3184('0x0')][_0x3184('0x28')](_0x233e8e);if(!_0x155b00||!this[_0x3184('0x13')][_0x3184('0x4c')](_0x155b00))return;const _0x4d829a=this[_0x3184('0x13')][_0x3184('0x34')](_0x155b00)[_0x3184('0x1b')],_0x175b93=function(){const _0x1b0d2a=_0x486bd9[_0x3184('0x9')];return[_0x1b0d2a[_0x3184('0x51')],_0x1b0d2a[_0x3184('0x3d')],_0x1b0d2a[_0x3184('0x11')],_0x1b0d2a['northArrowSouth'],_0x1b0d2a['southArrowNorthWest'],_0x1b0d2a['northArrowSouthWest']];}();this[_0x3184('0x3f')]['pin']({'target':_0x4d829a,'positions':_0x175b93});}[_0x3184('0x1')](){const _0x118976=this['balloonPanelView'],_0xb3470d=_0x118976[_0x3184('0x5a')][_0x3184('0x36')];_0xb3470d&&(this[_0x3184('0x3b')](_0xb3470d),_0x118976[_0x3184('0xd')](),_0x118976[_0x3184('0x5a')][_0x3184('0x55')]());}[_0x3184('0x17')](_0x439cee){this['listenTo'](_0x439cee,_0x3184('0x7'),()=>this['_updateBalloonPosition']()),this['listenTo'](_0x439cee,_0x3184('0x2'),(_0xd15b44,_0x205424)=>{this[_0x3184('0x35')]['add'](_0x439cee),this[_0x3184('0x1')](),_0x205424();});}[_0x3184('0x3b')](_0x11905f){this[_0x3184('0x8')](_0x11905f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c5c=['length','define','_alignBeforeItem','setContainer','_getItemAfter','sidebar.preventScrollOutOfView','change:_lastItem','_detachFromContainer','remove','_targetTop','getIndex','add','Sidebar','bottom','view','minHeight','_alignAfterItem','clear','destroy','_destroySidebarItemView','stopListening','_annotations','_activeAnnotation','_updateLastItem','_getTargetTop','_sidebarItemViewToAnnotation','last','_recalculate','unbind','_attachToContainer','render','push','addAnnotation','rearrange','_annotationToSidebarItemView','isActive','sidebar-setcontainer-invalid-element','element','_alignForTopChange','list','change:targetRect','_alignForBottomChange','isAnimationDisabled','listenTo','set','_createSidebarView','class','_lastItem','appendChild','delete','_recalculateBuffer','_alignToTargetRect','_getItemBefore','_setItemTop','config','_spaceBetweenItems','top','container','getSidebarItemView','targetRect','context','updateHeight','content','nodeType','get','max','_getMaxAvailableTop','sidebar-attachtocontainer-missing-container','locale','init'];(function(_0x3cbd58,_0x2c5cb9){const _0x521751=function(_0x31dc3b){while(--_0x31dc3b){_0x3cbd58['push'](_0x3cbd58['shift']());}};_0x521751(++_0x2c5cb9);}(_0x2c5c,0x163));const _0x5217=function(_0x3cbd58,_0x2c5cb9){_0x3cbd58=_0x3cbd58-0x0;let _0x521751=_0x2c5c[_0x3cbd58];return _0x521751;};import{ContextPlugin as _0x465558}from'ckeditor5/src/core.js';import{Rect as _0xad7c8a,CKEditorError as _0x5f2b2a}from'ckeditor5/src/utils.js';import _0x3eb341 from'./view/sidebarview.js';import _0xc498b7 from'./view/sidebaritemview.js';export default class z extends _0x465558{static get['pluginName'](){return _0x5217('0x7');}constructor(_0x2532d7){super(_0x2532d7),this[_0x5217('0x27')](_0x5217('0x2a'),void 0x0),this[_0x5217('0x9')]=this[_0x5217('0x28')](),this['set'](_0x5217('0x34'),null),this[_0x5217('0x32')]=0x19,this[_0x5217('0x14')]=new Map(),this[_0x5217('0x1d')]=new Map(),this['context'][_0x5217('0x31')][_0x5217('0x42')](_0x5217('0x0'),!0x1),this[_0x5217('0x10')]=null,this[_0x5217('0x11')]=null,this[_0x5217('0x2d')]=[];}[_0x5217('0x40')](){const _0x40f978=this[_0x5217('0x37')]['config'][_0x5217('0x3b')]('sidebar.container');_0x40f978&&this[_0x5217('0x44')](_0x40f978);}[_0x5217('0x44')](_0xabe7ab){if(!y(_0xabe7ab))throw new _0x5f2b2a(_0x5217('0x1f'));this[_0x5217('0x34')]=_0xabe7ab;}[_0x5217('0x18')]({viewClass:_0x18a5d1='',spaceBetweenItems:_0x5c60cd=0x19}={}){if(!y(this[_0x5217('0x34')]))throw new _0x5f2b2a(_0x5217('0x3e'),this);this[_0x5217('0x34')][_0x5217('0x2b')](this[_0x5217('0x9')][_0x5217('0x20')]),this[_0x5217('0x9')][_0x5217('0x29')]=_0x18a5d1,this[_0x5217('0x32')]=_0x5c60cd;}[_0x5217('0x1c')]({removedAnnotation:_0x3cefe7,previousAnnotation:_0x559bd2,nextAnnotation:_0x5ab208}){const _0x549869=this['getSidebarItemView'](_0x3cefe7);this[_0x5217('0x9')][_0x5217('0x22')][_0x5217('0x3')](_0x549869),this[_0x5217('0xe')](_0x3cefe7),_0x559bd2&&this['_alignToTargetRect'](this[_0x5217('0x35')](_0x559bd2)),_0x5ab208&&this[_0x5217('0x2e')](this[_0x5217('0x35')](_0x5ab208)),this[_0x5217('0x12')]();}['refresh']({blurredAnnotation:_0x317fb3,activatedAnnotation:_0x131a9d,disableAnimationOnActivatedAnnotation:_0x5a816d}){if(this[_0x5217('0x11')]=_0x131a9d,_0x317fb3){_0x317fb3[_0x5217('0x1e')]=!0x1;const _0x10a79e=this['getSidebarItemView'](_0x317fb3);_0x10a79e&&_0x5a816d&&(_0x10a79e['isAnimationDisabled']=!0x1);}if(_0x131a9d){const _0x299607=this['getSidebarItemView'](_0x131a9d);_0x299607&&(_0x131a9d[_0x5217('0x1e')]=!0x0,_0x5a816d&&(_0x299607[_0x5217('0x25')]=!0x0,_0x299607['top']+=0x1),this[_0x5217('0x2e')](_0x299607));}}[_0x5217('0x2')](_0x148f3c){if(this['view'][_0x5217('0x20')]['remove'](),_0x148f3c)for(const _0x29660b of _0x148f3c)this['_destroySidebarItemView'](_0x29660b);this[_0x5217('0x9')][_0x5217('0x22')][_0x5217('0xc')](),this['view']['class']='',this[_0x5217('0x2a')]=null;}[_0x5217('0x1b')](_0x5ef24e,_0x544cd4){_0x544cd4||(_0x544cd4=_0x5ef24e[_0x5217('0x9')]);const _0x1b3e82=new _0xc498b7(this[_0x5217('0x37')][_0x5217('0x3f')]);this['_sidebarItemViewToAnnotation'][_0x5217('0x27')](_0x1b3e82,_0x5ef24e),this[_0x5217('0x1d')][_0x5217('0x27')](_0x5ef24e,_0x1b3e82),_0x1b3e82[_0x5217('0x39')][_0x5217('0x6')](_0x544cd4),this['listenTo'](_0x5ef24e[_0x5217('0x9')],_0x5217('0x23'),(_0x4844e2,_0x5ae62e,_0x257b32)=>{const _0xc814ed=this[_0x5217('0x13')](_0x5ef24e,_0x257b32);_0x1b3e82[_0x5217('0x4')]!=_0xc814ed&&(_0x1b3e82[_0x5217('0x4')]=_0xc814ed,this[_0x5217('0x30')](_0x1b3e82,_0xc814ed));}),this[_0x5217('0x26')](_0x1b3e82,'change:top',()=>{this[_0x5217('0x16')](_0x1b3e82,'top');}),this[_0x5217('0x26')](_0x1b3e82,'change:bottom',()=>{this[_0x5217('0x16')](_0x1b3e82,'bottom');}),this['_alignToTargetRect'](_0x1b3e82);const _0x19767c=this[_0x5217('0x2f')](_0x1b3e82);if(_0x19767c)this[_0x5217('0xb')](_0x19767c,_0x1b3e82)||this['_alignToTargetRect'](_0x1b3e82);else this['_alignToTargetRect'](_0x1b3e82);return this['_updateLastItem'](),this[_0x5217('0x9')][_0x5217('0x22')][_0x5217('0x6')](_0x1b3e82),_0x1b3e82;}['_alignForTopChange'](_0x20149f){if(!_0x20149f[_0x5217('0x39')][_0x5217('0x41')])return;const _0x4dd79e=this[_0x5217('0x2f')](_0x20149f);if(!_0x4dd79e)return;const _0x6ef12b=this['_sidebarItemViewToAnnotation'][_0x5217('0x3b')](_0x4dd79e),_0x109383=this[_0x5217('0x11')];_0x109383&&_0x109383===_0x6ef12b?this[_0x5217('0xb')](_0x4dd79e,_0x20149f):this['_alignBeforeItem'](_0x20149f,_0x4dd79e);}[_0x5217('0x24')](_0x4934a9){if(!_0x4934a9[_0x5217('0x39')][_0x5217('0x41')])return;const _0x4b7149=this[_0x5217('0x45')](_0x4934a9);if(!_0x4b7149)return;const _0x3f7a46=this[_0x5217('0x14')][_0x5217('0x3b')](_0x4b7149),_0x13abcb=this[_0x5217('0x37')][_0x5217('0x31')][_0x5217('0x3b')](_0x5217('0x0')),_0x5b36c0=this[_0x5217('0x11')];_0x5b36c0&&_0x5b36c0===_0x3f7a46&&_0x13abcb?(this[_0x5217('0x43')](_0x4b7149,_0x4934a9),this[_0x5217('0xb')](_0x4934a9,_0x4b7149)):_0x5b36c0&&_0x5b36c0===_0x3f7a46?this[_0x5217('0x43')](_0x4b7149,_0x4934a9):this['_alignAfterItem'](_0x4934a9,_0x4b7149);}[_0x5217('0x16')](_0x571384,_0x34799c){0x0===this[_0x5217('0x2d')][_0x5217('0x41')]&&setTimeout(()=>{for(const {sidebarItemView:_0x3697d7,changedProp:_0x1c7afc}of this[_0x5217('0x2d')])_0x5217('0x33')===_0x1c7afc?this[_0x5217('0x21')](_0x3697d7):this[_0x5217('0x24')](_0x3697d7);this[_0x5217('0x2d')]=[];},0xa),this[_0x5217('0x2d')][_0x5217('0x1a')]({'sidebarItemView':_0x571384,'changedProp':_0x34799c});}[_0x5217('0x35')](_0x3cd544){return this[_0x5217('0x1d')][_0x5217('0x3b')](_0x3cd544);}[_0x5217('0xd')](){this[_0x5217('0xf')](),this['view'][_0x5217('0xd')]();}[_0x5217('0xe')](_0x3edf66){const _0x4ad981=this[_0x5217('0x35')](_0x3edf66);this[_0x5217('0xf')](_0x4ad981),this[_0x5217('0xf')](_0x3edf66[_0x5217('0x9')]),_0x4ad981['destroy'](),this[_0x5217('0x1d')][_0x5217('0x2c')](_0x3edf66),this[_0x5217('0x14')][_0x5217('0x2c')](_0x4ad981);}[_0x5217('0x28')](){const _0x236b16=new _0x3eb341(this[_0x5217('0x37')]['locale']);return _0x236b16[_0x5217('0x19')](),this['on'](_0x5217('0x1'),(_0x1d11a3,_0x4cfaad,_0x213027,_0x14bcc5)=>{_0x14bcc5&&_0x236b16[_0x5217('0x17')]('minHeight'),_0x213027?_0x236b16['bind'](_0x5217('0xa'))['to'](_0x213027,_0x5217('0x8')):_0x236b16['minHeight']=null;}),_0x236b16;}[_0x5217('0x12')](){var _0x34cded;this['_lastItem']=(null===(_0x34cded=this[_0x5217('0x10')])||void 0x0===_0x34cded?void 0x0:_0x34cded[_0x5217('0x15')])?this[_0x5217('0x35')](this[_0x5217('0x10')][_0x5217('0x15')]):null;}[_0x5217('0x2f')](_0xdbaabf){var _0x1db550;const _0x26cf37=this[_0x5217('0x14')][_0x5217('0x3b')](_0xdbaabf),_0x575139=_0x26cf37&&(null===(_0x1db550=this['_annotations'])||void 0x0===_0x1db550?void 0x0:_0x1db550[_0x5217('0x3b')](this['_annotations']['getIndex'](_0x26cf37)-0x1));return _0x575139&&this['getSidebarItemView'](_0x575139)||null;}[_0x5217('0x45')](_0x5a2cb3){var _0x13748a;const _0x3314c7=this['_sidebarItemViewToAnnotation']['get'](_0x5a2cb3),_0x430faa=_0x3314c7&&(null===(_0x13748a=this[_0x5217('0x10')])||void 0x0===_0x13748a?void 0x0:_0x13748a['get'](this['_annotations'][_0x5217('0x5')](_0x3314c7)+0x1));return _0x430faa&&this['getSidebarItemView'](_0x430faa)||null;}[_0x5217('0x43')](_0x56728d,_0x4a0015){_0x56728d[_0x5217('0x38')]();const _0x4d55fc=M(_0x4a0015[_0x5217('0x8')]+this[_0x5217('0x32')],_0x56728d[_0x5217('0x33')]);return!!_0x4d55fc&&(this[_0x5217('0x30')](_0x4a0015,_0x4a0015['top']-_0x4d55fc),!0x0);}[_0x5217('0xb')](_0x9b0a3d,_0x4a238b){_0x9b0a3d[_0x5217('0x38')]();const _0x1194ea=M(_0x9b0a3d[_0x5217('0x8')]+this['_spaceBetweenItems'],_0x4a238b['top']);return!!_0x1194ea&&(this[_0x5217('0x30')](_0x4a238b,_0x4a238b[_0x5217('0x33')]+_0x1194ea,!0x1),!0x0);}[_0x5217('0x2e')](_0x44b75b){const _0x54964e=this[_0x5217('0x14')]['get'](_0x44b75b);if(!_0x54964e||!_0x54964e['target']||!_0x54964e[_0x5217('0x36')])return;const _0x3369e2=this['_getTargetTop'](_0x54964e,_0x54964e[_0x5217('0x36')]);this[_0x5217('0x30')](_0x44b75b,_0x3369e2);}[_0x5217('0x13')](_0x3cbfac,_0x3e0b95){if(null===_0x3e0b95)return 0x0;if(_0x3cbfac['target']instanceof _0xad7c8a)return _0x3e0b95[_0x5217('0x33')];{const _0x4ea6aa=new _0xad7c8a(this[_0x5217('0x9')][_0x5217('0x20')])['top'];return _0x3e0b95['top']-_0x4ea6aa;}}['_setItemTop'](_0x1833b5,_0x1c65c1,_0x2710ad=this['context'][_0x5217('0x31')][_0x5217('0x3b')](_0x5217('0x0'))){_0x2710ad&&(_0x1c65c1=Math[_0x5217('0x3c')](_0x1c65c1,this[_0x5217('0x3d')](_0x1833b5))),_0x1833b5[_0x5217('0x33')]=_0x1c65c1;}['_getMaxAvailableTop'](_0x46c4a1){let _0x82acb0=this[_0x5217('0x2f')](_0x46c4a1),_0x52b76e=0x0;for(;_0x82acb0;)_0x82acb0['updateHeight'](),_0x52b76e+=this['_spaceBetweenItems']+_0x82acb0['height'],_0x82acb0=this['_getItemBefore'](_0x82acb0);return _0x52b76e;}}function M(_0x31fb48,_0x6cc292){return Math[_0x5217('0x3c')](_0x31fb48-_0x6cc292,0x0);}function y(_0x5435d0){return null!==_0x5435d0&&'object'==typeof _0x5435d0&&0x1===_0x5435d0[_0x5217('0x3a')];}
23
+ const _0x42f6=['_getItemBefore','appendChild','sidebar.preventScrollOutOfView','sidebar-attachtocontainer-missing-container','container','_annotations','_spaceBetweenItems','updateHeight','_updateLastItem','add','getSidebarItemView','top','refresh','set','_alignForTopChange','change:targetRect','listenTo','isActive','init','bottom','_setItemTop','_getItemAfter','_alignAfterItem','_sidebarItemViewToAnnotation','view','_createSidebarView','_alignBeforeItem','getIndex','locale','_getTargetTop','last','_lastItem','element','config','_destroySidebarItemView','clear','pluginName','get','target','_getMaxAvailableTop','nodeType','Sidebar','sidebar.container','change:_lastItem','_annotationToSidebarItemView','render','stopListening','rearrange','_recalculate','content','change:top','_recalculateBuffer','max','context','destroy','remove','targetRect','unbind','_activeAnnotation','define','_alignForBottomChange','addAnnotation','list','_alignToTargetRect','push','_targetTop','class','_detachFromContainer','length','minHeight'];(function(_0x7b6757,_0x42f65a){const _0x38d5e1=function(_0x39ccf7){while(--_0x39ccf7){_0x7b6757['push'](_0x7b6757['shift']());}};_0x38d5e1(++_0x42f65a);}(_0x42f6,0x84));const _0x38d5=function(_0x7b6757,_0x42f65a){_0x7b6757=_0x7b6757-0x0;let _0x38d5e1=_0x42f6[_0x7b6757];return _0x38d5e1;};import{ContextPlugin as _0x2fc423}from'ckeditor5/src/core.js';import{Rect as _0x5c5b9f,CKEditorError as _0x33a764}from'ckeditor5/src/utils.js';import _0x52bcdb from'./view/sidebarview.js';import _0x3e0c0f from'./view/sidebaritemview.js';export default class z extends _0x2fc423{static get[_0x38d5('0x2c')](){return _0x38d5('0x31');}constructor(_0x3e6c9d){super(_0x3e6c9d),this[_0x38d5('0x15')]('_lastItem',void 0x0),this[_0x38d5('0x20')]=this['_createSidebarView'](),this[_0x38d5('0x15')](_0x38d5('0xc'),null),this['_spaceBetweenItems']=0x19,this[_0x38d5('0x1f')]=new Map(),this[_0x38d5('0x34')]=new Map(),this['context'][_0x38d5('0x29')][_0x38d5('0x43')](_0x38d5('0xa'),!0x1),this[_0x38d5('0xd')]=null,this['_activeAnnotation']=null,this[_0x38d5('0x3b')]=[];}[_0x38d5('0x1a')](){const _0x58a33a=this[_0x38d5('0x3d')][_0x38d5('0x29')][_0x38d5('0x2d')](_0x38d5('0x32'));_0x58a33a&&this['setContainer'](_0x58a33a);}['setContainer'](_0x8bed1f){if(!y(_0x8bed1f))throw new _0x33a764('sidebar-setcontainer-invalid-element');this['container']=_0x8bed1f;}['_attachToContainer']({viewClass:_0x16041b='',spaceBetweenItems:_0x3c00c3=0x19}={}){if(!y(this['container']))throw new _0x33a764(_0x38d5('0xb'),this);this[_0x38d5('0xc')][_0x38d5('0x9')](this[_0x38d5('0x20')][_0x38d5('0x28')]),this[_0x38d5('0x20')][_0x38d5('0x4')]=_0x16041b,this[_0x38d5('0xe')]=_0x3c00c3;}[_0x38d5('0x37')]({removedAnnotation:_0x25c3fa,previousAnnotation:_0x264a46,nextAnnotation:_0x2492fd}){const _0x2bef40=this[_0x38d5('0x12')](_0x25c3fa);this['view'][_0x38d5('0x0')][_0x38d5('0x3f')](_0x2bef40),this['_destroySidebarItemView'](_0x25c3fa),_0x264a46&&this[_0x38d5('0x1')](this[_0x38d5('0x12')](_0x264a46)),_0x2492fd&&this['_alignToTargetRect'](this[_0x38d5('0x12')](_0x2492fd)),this[_0x38d5('0x10')]();}[_0x38d5('0x14')]({blurredAnnotation:_0x52a32c,activatedAnnotation:_0x10761f,disableAnimationOnActivatedAnnotation:_0xad13d8}){if(this[_0x38d5('0x42')]=_0x10761f,_0x52a32c){_0x52a32c[_0x38d5('0x19')]=!0x1;const _0xe12e04=this['getSidebarItemView'](_0x52a32c);_0xe12e04&&_0xad13d8&&(_0xe12e04['isAnimationDisabled']=!0x1);}if(_0x10761f){const _0x5eaa57=this[_0x38d5('0x12')](_0x10761f);_0x5eaa57&&(_0x10761f[_0x38d5('0x19')]=!0x0,_0xad13d8&&(_0x5eaa57['isAnimationDisabled']=!0x0,_0x5eaa57['top']+=0x1),this['_alignToTargetRect'](_0x5eaa57));}}[_0x38d5('0x5')](_0x5443b4){if(this['view'][_0x38d5('0x28')]['remove'](),_0x5443b4)for(const _0x5628b6 of _0x5443b4)this[_0x38d5('0x2a')](_0x5628b6);this[_0x38d5('0x20')]['list'][_0x38d5('0x2b')](),this['view'][_0x38d5('0x4')]='',this[_0x38d5('0x27')]=null;}[_0x38d5('0x45')](_0x595441,_0xf9ad98){_0xf9ad98||(_0xf9ad98=_0x595441['view']);const _0x4deb4b=new _0x3e0c0f(this[_0x38d5('0x3d')][_0x38d5('0x24')]);this[_0x38d5('0x1f')][_0x38d5('0x15')](_0x4deb4b,_0x595441),this[_0x38d5('0x34')][_0x38d5('0x15')](_0x595441,_0x4deb4b),_0x4deb4b[_0x38d5('0x39')][_0x38d5('0x11')](_0xf9ad98),this['listenTo'](_0x595441[_0x38d5('0x20')],_0x38d5('0x17'),(_0x1122db,_0x5b73c2,_0x71515)=>{const _0x5deb93=this[_0x38d5('0x25')](_0x595441,_0x71515);_0x4deb4b[_0x38d5('0x3')]!=_0x5deb93&&(_0x4deb4b['_targetTop']=_0x5deb93,this[_0x38d5('0x1c')](_0x4deb4b,_0x5deb93));}),this[_0x38d5('0x18')](_0x4deb4b,_0x38d5('0x3a'),()=>{this['_recalculate'](_0x4deb4b,_0x38d5('0x13'));}),this[_0x38d5('0x18')](_0x4deb4b,'change:bottom',()=>{this[_0x38d5('0x38')](_0x4deb4b,_0x38d5('0x1b'));}),this['_alignToTargetRect'](_0x4deb4b);const _0x5b9390=this[_0x38d5('0x8')](_0x4deb4b);if(_0x5b9390)this[_0x38d5('0x1e')](_0x5b9390,_0x4deb4b)||this[_0x38d5('0x1')](_0x4deb4b);else this[_0x38d5('0x1')](_0x4deb4b);return this[_0x38d5('0x10')](),this[_0x38d5('0x20')][_0x38d5('0x0')]['add'](_0x4deb4b),_0x4deb4b;}[_0x38d5('0x16')](_0x141968){if(!_0x141968[_0x38d5('0x39')]['length'])return;const _0x2cb324=this[_0x38d5('0x8')](_0x141968);if(!_0x2cb324)return;const _0x262681=this[_0x38d5('0x1f')]['get'](_0x2cb324),_0x335209=this['_activeAnnotation'];_0x335209&&_0x335209===_0x262681?this[_0x38d5('0x1e')](_0x2cb324,_0x141968):this[_0x38d5('0x22')](_0x141968,_0x2cb324);}['_alignForBottomChange'](_0xcc0e41){if(!_0xcc0e41[_0x38d5('0x39')][_0x38d5('0x6')])return;const _0x579ceb=this[_0x38d5('0x1d')](_0xcc0e41);if(!_0x579ceb)return;const _0xd19a=this[_0x38d5('0x1f')]['get'](_0x579ceb),_0x4d6c39=this[_0x38d5('0x3d')][_0x38d5('0x29')][_0x38d5('0x2d')](_0x38d5('0xa')),_0x59f6a4=this[_0x38d5('0x42')];_0x59f6a4&&_0x59f6a4===_0xd19a&&_0x4d6c39?(this[_0x38d5('0x22')](_0x579ceb,_0xcc0e41),this[_0x38d5('0x1e')](_0xcc0e41,_0x579ceb)):_0x59f6a4&&_0x59f6a4===_0xd19a?this[_0x38d5('0x22')](_0x579ceb,_0xcc0e41):this[_0x38d5('0x1e')](_0xcc0e41,_0x579ceb);}[_0x38d5('0x38')](_0x350fad,_0x37192b){0x0===this[_0x38d5('0x3b')][_0x38d5('0x6')]&&setTimeout(()=>{for(const {sidebarItemView:_0x1977f2,changedProp:_0x24d6f0}of this[_0x38d5('0x3b')])'top'===_0x24d6f0?this[_0x38d5('0x16')](_0x1977f2):this[_0x38d5('0x44')](_0x1977f2);this[_0x38d5('0x3b')]=[];},0xa),this[_0x38d5('0x3b')][_0x38d5('0x2')]({'sidebarItemView':_0x350fad,'changedProp':_0x37192b});}[_0x38d5('0x12')](_0x37175b){return this[_0x38d5('0x34')][_0x38d5('0x2d')](_0x37175b);}['destroy'](){this[_0x38d5('0x36')](),this[_0x38d5('0x20')]['destroy']();}[_0x38d5('0x2a')](_0x1c056e){const _0x30386b=this[_0x38d5('0x12')](_0x1c056e);this[_0x38d5('0x36')](_0x30386b),this[_0x38d5('0x36')](_0x1c056e[_0x38d5('0x20')]),_0x30386b[_0x38d5('0x3e')](),this[_0x38d5('0x34')]['delete'](_0x1c056e),this[_0x38d5('0x1f')]['delete'](_0x30386b);}[_0x38d5('0x21')](){const _0x429f69=new _0x52bcdb(this[_0x38d5('0x3d')][_0x38d5('0x24')]);return _0x429f69[_0x38d5('0x35')](),this['on'](_0x38d5('0x33'),(_0x1d22f7,_0x1b50a8,_0x15fc13,_0x238ae5)=>{_0x238ae5&&_0x429f69[_0x38d5('0x41')]('minHeight'),_0x15fc13?_0x429f69['bind'](_0x38d5('0x7'))['to'](_0x15fc13,_0x38d5('0x1b')):_0x429f69['minHeight']=null;}),_0x429f69;}['_updateLastItem'](){var _0x1b66ee;this[_0x38d5('0x27')]=(null===(_0x1b66ee=this[_0x38d5('0xd')])||void 0x0===_0x1b66ee?void 0x0:_0x1b66ee['last'])?this[_0x38d5('0x12')](this['_annotations'][_0x38d5('0x26')]):null;}['_getItemBefore'](_0x557b9f){var _0x3a076a;const _0x26a8b1=this[_0x38d5('0x1f')][_0x38d5('0x2d')](_0x557b9f),_0x4149f6=_0x26a8b1&&(null===(_0x3a076a=this[_0x38d5('0xd')])||void 0x0===_0x3a076a?void 0x0:_0x3a076a[_0x38d5('0x2d')](this[_0x38d5('0xd')][_0x38d5('0x23')](_0x26a8b1)-0x1));return _0x4149f6&&this['getSidebarItemView'](_0x4149f6)||null;}['_getItemAfter'](_0x459656){var _0x47d444;const _0x3f7a93=this[_0x38d5('0x1f')][_0x38d5('0x2d')](_0x459656),_0x43b5d8=_0x3f7a93&&(null===(_0x47d444=this[_0x38d5('0xd')])||void 0x0===_0x47d444?void 0x0:_0x47d444[_0x38d5('0x2d')](this[_0x38d5('0xd')][_0x38d5('0x23')](_0x3f7a93)+0x1));return _0x43b5d8&&this[_0x38d5('0x12')](_0x43b5d8)||null;}[_0x38d5('0x22')](_0x393438,_0x185908){_0x393438[_0x38d5('0xf')]();const _0x3e1d9c=M(_0x185908['bottom']+this[_0x38d5('0xe')],_0x393438[_0x38d5('0x13')]);return!!_0x3e1d9c&&(this['_setItemTop'](_0x185908,_0x185908[_0x38d5('0x13')]-_0x3e1d9c),!0x0);}[_0x38d5('0x1e')](_0x4348c2,_0x490fab){_0x4348c2[_0x38d5('0xf')]();const _0x51b06c=M(_0x4348c2[_0x38d5('0x1b')]+this[_0x38d5('0xe')],_0x490fab['top']);return!!_0x51b06c&&(this[_0x38d5('0x1c')](_0x490fab,_0x490fab[_0x38d5('0x13')]+_0x51b06c,!0x1),!0x0);}[_0x38d5('0x1')](_0x1df72d){const _0x3e372b=this['_sidebarItemViewToAnnotation'][_0x38d5('0x2d')](_0x1df72d);if(!_0x3e372b||!_0x3e372b['target']||!_0x3e372b[_0x38d5('0x40')])return;const _0x2924a2=this[_0x38d5('0x25')](_0x3e372b,_0x3e372b[_0x38d5('0x40')]);this[_0x38d5('0x1c')](_0x1df72d,_0x2924a2);}[_0x38d5('0x25')](_0xc64d61,_0x37ebdb){if(null===_0x37ebdb)return 0x0;if(_0xc64d61[_0x38d5('0x2e')]instanceof _0x5c5b9f)return _0x37ebdb['top'];{const _0x4598f4=new _0x5c5b9f(this['view']['element'])[_0x38d5('0x13')];return _0x37ebdb[_0x38d5('0x13')]-_0x4598f4;}}['_setItemTop'](_0x330962,_0x272f7e,_0x4ccb7b=this[_0x38d5('0x3d')]['config'][_0x38d5('0x2d')](_0x38d5('0xa'))){_0x4ccb7b&&(_0x272f7e=Math[_0x38d5('0x3c')](_0x272f7e,this['_getMaxAvailableTop'](_0x330962))),_0x330962['top']=_0x272f7e;}[_0x38d5('0x2f')](_0x4fc921){let _0xba4338=this[_0x38d5('0x8')](_0x4fc921),_0x29af13=0x0;for(;_0xba4338;)_0xba4338[_0x38d5('0xf')](),_0x29af13+=this[_0x38d5('0xe')]+_0xba4338['height'],_0xba4338=this[_0x38d5('0x8')](_0xba4338);return _0x29af13;}}function M(_0xd2f859,_0x39e014){return Math['max'](_0xd2f859-_0x39e014,0x0);}function y(_0x2f131f){return null!==_0x2f131f&&'object'==typeof _0x2f131f&&0x1===_0x2f131f[_0x38d5('0x30')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x368a=['setTemplate','toString','ck-annotation-counter','set','_badge','ck-annotation-counter__badge','annotationType','ck-annotation-counter__badge--','add','icon','counterView','isDirty','number','bind'];(function(_0x3e8b0b,_0x368a84){const _0x251258=function(_0x849c4a){while(--_0x849c4a){_0x3e8b0b['push'](_0x3e8b0b['shift']());}};_0x251258(++_0x368a84);}(_0x368a,0x16a));const _0x2512=function(_0x3e8b0b,_0x368a84){_0x3e8b0b=_0x3e8b0b-0x0;let _0x251258=_0x368a[_0x3e8b0b];return _0x251258;};import{ButtonView as _0x1e1fa5,View as _0x4d21df}from'ckeditor5/src/ui.js';import _0x26911e from'../../../theme/icons/add-comment.svg';export default class D extends _0x1e1fa5{constructor(_0x237f2a){super(_0x237f2a);const _0x5b66dc=this['bindTemplate'];this['set'](_0x2512('0xd'),!0x1),this[_0x2512('0x5')]('number',0x0),this[_0x2512('0x1')](_0x2512('0x6'))['to'](this,'isDirty',this,_0x2512('0x0'),(_0x2a4a4e,_0x24e01a)=>_0x2a4a4e?'...':_0x24e01a[_0x2512('0x3')]()),this[_0x2512('0x5')](_0x2512('0x8'),''),this[_0x2512('0xb')]=_0x26911e,this['extendTemplate']({'attributes':{'class':[_0x2512('0x4')]}}),this[_0x2512('0xc')]=new _0x4d21df(),this['counterView'][_0x2512('0x2')]({'tag':'span','attributes':{'class':[_0x2512('0x7'),_0x5b66dc['to']('annotationType',_0x4a145e=>_0x2512('0x9')+_0x4a145e),_0x5b66dc['if'](_0x2512('0xd'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x5b66dc['to'](_0x2512('0x6'))}]}),this['children'][_0x2512('0xa')](this[_0x2512('0xc')]);}}
23
+ const _0x1ece=['counterView','ck-annotation-counter__badge--','bindTemplate','_badge','children','ck-annotation-counter__badge--edit-mode','icon','...','number','ck-annotation-counter','setTemplate','isDirty','toString','bind','add','annotationType','extendTemplate','set','ck-annotation-counter__badge','span'];(function(_0x425fcc,_0x1ece41){const _0x3449a4=function(_0x29edeb){while(--_0x29edeb){_0x425fcc['push'](_0x425fcc['shift']());}};_0x3449a4(++_0x1ece41);}(_0x1ece,0x17b));const _0x3449=function(_0x425fcc,_0x1ece41){_0x425fcc=_0x425fcc-0x0;let _0x3449a4=_0x1ece[_0x425fcc];return _0x3449a4;};import{ButtonView as _0x343a47,View as _0x3c236a}from'ckeditor5/src/ui.js';import _0x5b85d6 from'../../../theme/icons/add-comment.svg';export default class D extends _0x343a47{constructor(_0x1ef360){super(_0x1ef360);const _0x3fff18=this[_0x3449('0x3')];this[_0x3449('0x12')](_0x3449('0xc'),!0x1),this[_0x3449('0x12')](_0x3449('0x9'),0x0),this[_0x3449('0xe')](_0x3449('0x4'))['to'](this,_0x3449('0xc'),this,'number',(_0x1a0503,_0x541a51)=>_0x1a0503?_0x3449('0x8'):_0x541a51[_0x3449('0xd')]()),this[_0x3449('0x12')](_0x3449('0x10'),''),this[_0x3449('0x7')]=_0x5b85d6,this[_0x3449('0x11')]({'attributes':{'class':[_0x3449('0xa')]}}),this[_0x3449('0x1')]=new _0x3c236a(),this[_0x3449('0x1')][_0x3449('0xb')]({'tag':_0x3449('0x0'),'attributes':{'class':[_0x3449('0x13'),_0x3fff18['to'](_0x3449('0x10'),_0x29ad2e=>_0x3449('0x2')+_0x29ad2e),_0x3fff18['if'](_0x3449('0xc'),_0x3449('0x6'))]},'children':[{'text':_0x3fff18['to'](_0x3449('0x4'))}]}),this[_0x3449('0x5')][_0x3449('0xf')](this[_0x3449('0x1')]);}}