@ckeditor/ckeditor5-comments 0.0.0-nightly-20231029.0 → 0.0.0-nightly-20231031.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-20231029.0",
3
+ "version": "0.0.0-nightly-20231031.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -43,8 +43,8 @@
43
43
  "CHANGELOG.md"
44
44
  ],
45
45
  "dependencies": {
46
- "ckeditor5": "0.0.0-nightly-20231029.0",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20231029.0",
46
+ "ckeditor5": "0.0.0-nightly-20231031.0",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20231031.0",
48
48
  "lodash-es": "4.17.21"
49
49
  },
50
50
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7183=['_getNormalizedTarget','every','_id','targetRect','destroy','getClientRects','item','add','innerView','mainView','function','target','_target','focusableElements','element','nodeType','length','focusTracker','isVisible','view','annotation-invalid-target','object','render','_assertCorrectTarget','stopListening','filter','clear','_type','set','remove','isActive'];(function(_0x23d31c,_0x7183e6){const _0x2f0b84=function(_0x363b80){while(--_0x363b80){_0x23d31c['push'](_0x23d31c['shift']());}};_0x2f0b84(++_0x7183e6);}(_0x7183,0xfa));const _0x2f0b=function(_0x23d31c,_0x7183e6){_0x23d31c=_0x23d31c-0x0;let _0x2f0b84=_0x7183[_0x23d31c];return _0x2f0b84;};import{CKEditorError as _0x4b40ff,Rect as _0x30fdc6,Collection as _0x123aae,ObservableMixin as _0x4a4341}from'ckeditor5/src/utils';export default class d extends _0x4a4341(){constructor({view:_0x30a58a,target:_0x318471,type:_0x383e58,isVisible:_0x5e1b4e=!0x0}){super(),this[_0x2f0b('0x11')]=_0x30a58a,this[_0x2f0b('0x11')]['element']||this['view'][_0x2f0b('0x14')](),this[_0x2f0b('0x19')]=_0x383e58,this[_0x2f0b('0xa')]=_0x318471,d[_0x2f0b('0x15')](this[_0x2f0b('0x1d')]()),this['focusableElements']=new _0x123aae([this['view'][_0x2f0b('0xc')]],{'idProperty':_0x2f0b('0x0')}),this[_0x2f0b('0xb')]['on'](_0x2f0b('0x5'),(_0x45fc05,_0x47792f)=>{this[_0x2f0b('0x11')]['focusTracker']['add'](_0x47792f);}),this[_0x2f0b('0xb')]['on'](_0x2f0b('0x1b'),(_0x38c274,_0xe18d92)=>{this[_0x2f0b('0x11')][_0x2f0b('0xf')][_0x2f0b('0x1b')](_0xe18d92);}),this[_0x2f0b('0x1a')](_0x2f0b('0x10'),_0x5e1b4e);}get['type'](){return _0x2f0b('0x8')==typeof this[_0x2f0b('0x19')]?this[_0x2f0b('0x19')]():this['_type'];}get[_0x2f0b('0x6')](){return this[_0x2f0b('0x11')][_0x2f0b('0x7')];}get[_0x2f0b('0x9')](){const _0x535d6e=this[_0x2f0b('0x1d')]();return d[_0x2f0b('0x15')](_0x535d6e),_0x535d6e;}get[_0x2f0b('0x1')](){const _0xe8ac73=this[_0x2f0b('0x9')];if(null===_0xe8ac73)return null;if(_0xe8ac73 instanceof _0x30fdc6)return _0xe8ac73;const _0x15c864=_0xe8ac73[_0x2f0b('0x17')](_0x3a43db=>function(_0x3b2ff4){const _0x25ab61=_0x3b2ff4['offsetParent'];if(_0x25ab61)return!0x0;const _0xd11eff=_0x3b2ff4[_0x2f0b('0x3')]()[_0x2f0b('0x4')](0x0);return!!_0xd11eff;}(_0x3a43db));return 0x0===_0x15c864[_0x2f0b('0xe')]?null:new _0x30fdc6(_0x15c864[0x0][_0x2f0b('0x3')]()[_0x2f0b('0x4')](0x0));}get[_0x2f0b('0x1c')](){return this[_0x2f0b('0x11')]['isActive'];}set[_0x2f0b('0x1c')](_0x54683e){this[_0x2f0b('0x11')][_0x2f0b('0x1c')]=_0x54683e,this['view'][_0x2f0b('0x7')][_0x2f0b('0x1c')]=_0x54683e;}['updateTargetRect'](){this['view']['targetRect']=this[_0x2f0b('0x1')];}[_0x2f0b('0x2')](){this[_0x2f0b('0xb')][_0x2f0b('0x16')](),this[_0x2f0b('0xb')][_0x2f0b('0x18')](),this[_0x2f0b('0x16')]();}['refreshVisibility'](){this[_0x2f0b('0x10')]=!!this[_0x2f0b('0x1')];}static['_assertCorrectTarget'](_0x2f5b24){if(!(null===_0x2f5b24||_0x2f5b24 instanceof _0x30fdc6||Array['isArray'](_0x2f5b24)&&_0x2f5b24[_0x2f0b('0x1e')](_0x17837f=>y(_0x17837f))))throw new _0x4b40ff(_0x2f0b('0x12'),null,{'target':_0x2f5b24});}[_0x2f0b('0x1d')](){const _0x337e2=_0x2f0b('0x8')==typeof this[_0x2f0b('0xa')]?this['_target']():this['_target'];return y(_0x337e2)?[_0x337e2]:_0x337e2;}}function y(_0x1d6a3e){return null!==_0x1d6a3e&&_0x2f0b('0x13')==typeof _0x1d6a3e&&_0x2f0b('0xd')in _0x1d6a3e&&0x1===_0x1d6a3e[_0x2f0b('0xd')];}
23
+ const _0x2d03=['element','function','length','item','every','focusableElements','_getNormalizedTarget','getClientRects','offsetParent','render','type','view','object','add','isActive','innerView','isArray','_assertCorrectTarget','stopListening','mainView','set','remove','nodeType','isVisible','_target','focusTracker','_type','filter','target'];(function(_0x15d643,_0x2d0322){const _0x300cba=function(_0x35028e){while(--_0x35028e){_0x15d643['push'](_0x15d643['shift']());}};_0x300cba(++_0x2d0322);}(_0x2d03,0xbf));const _0x300c=function(_0x15d643,_0x2d0322){_0x15d643=_0x15d643-0x0;let _0x300cba=_0x2d03[_0x15d643];return _0x300cba;};import{CKEditorError as _0x1219dd,Rect as _0x2803ee,Collection as _0x36a491,ObservableMixin as _0xe64f68}from'ckeditor5/src/utils';export default class d extends _0xe64f68(){constructor({view:_0x533ea8,target:_0x34579e,type:_0x58de5a,isVisible:_0xedc03d=!0x0}){super(),this['view']=_0x533ea8,this[_0x300c('0x17')][_0x300c('0xc')]||this[_0x300c('0x17')][_0x300c('0x15')](),this[_0x300c('0x9')]=_0x58de5a,this[_0x300c('0x7')]=_0x34579e,d[_0x300c('0x0')](this[_0x300c('0x12')]()),this['focusableElements']=new _0x36a491([this[_0x300c('0x17')][_0x300c('0xc')]],{'idProperty':'_id'}),this[_0x300c('0x11')]['on'](_0x300c('0x19'),(_0xd99711,_0x2c3770)=>{this[_0x300c('0x17')][_0x300c('0x8')]['add'](_0x2c3770);}),this['focusableElements']['on'](_0x300c('0x4'),(_0x52af02,_0x10ad11)=>{this[_0x300c('0x17')][_0x300c('0x8')][_0x300c('0x4')](_0x10ad11);}),this[_0x300c('0x3')]('isVisible',_0xedc03d);}get[_0x300c('0x16')](){return'function'==typeof this['_type']?this[_0x300c('0x9')]():this[_0x300c('0x9')];}get[_0x300c('0x1b')](){return this[_0x300c('0x17')][_0x300c('0x2')];}get[_0x300c('0xb')](){const _0x560e85=this['_getNormalizedTarget']();return d[_0x300c('0x0')](_0x560e85),_0x560e85;}get['targetRect'](){const _0x4175ff=this[_0x300c('0xb')];if(null===_0x4175ff)return null;if(_0x4175ff instanceof _0x2803ee)return _0x4175ff;const _0x3da424=_0x4175ff[_0x300c('0xa')](_0x5c8ac7=>function(_0x10e3ee){const _0x4fbbfd=_0x10e3ee[_0x300c('0x14')];if(_0x4fbbfd)return!0x0;const _0x565e34=_0x10e3ee[_0x300c('0x13')]()[_0x300c('0xf')](0x0);return!!_0x565e34;}(_0x5c8ac7));return 0x0===_0x3da424[_0x300c('0xe')]?null:new _0x2803ee(_0x3da424[0x0][_0x300c('0x13')]()['item'](0x0));}get[_0x300c('0x1a')](){return this[_0x300c('0x17')][_0x300c('0x1a')];}set['isActive'](_0x4a5bda){this[_0x300c('0x17')][_0x300c('0x1a')]=_0x4a5bda,this[_0x300c('0x17')][_0x300c('0x2')][_0x300c('0x1a')]=_0x4a5bda;}['updateTargetRect'](){this[_0x300c('0x17')]['targetRect']=this['targetRect'];}['destroy'](){this[_0x300c('0x11')]['stopListening'](),this['focusableElements']['clear'](),this[_0x300c('0x1')]();}['refreshVisibility'](){this[_0x300c('0x6')]=!!this['targetRect'];}static['_assertCorrectTarget'](_0xa1924b){if(!(null===_0xa1924b||_0xa1924b instanceof _0x2803ee||Array[_0x300c('0x1c')](_0xa1924b)&&_0xa1924b[_0x300c('0x10')](_0x57e685=>y(_0x57e685))))throw new _0x1219dd('annotation-invalid-target',null,{'target':_0xa1924b});}[_0x300c('0x12')](){const _0x3a311d=_0x300c('0xd')==typeof this[_0x300c('0x7')]?this[_0x300c('0x7')]():this[_0x300c('0x7')];return y(_0x3a311d)?[_0x3a311d]:_0x3a311d;}}function y(_0x34016f){return null!==_0x34016f&&_0x300c('0x18')==typeof _0x34016f&&_0x300c('0x5')in _0x34016f&&0x1===_0x34016f[_0x300c('0x5')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3255=['_viewToAnnotation','refreshPositioning','_innerViewToAnnotation','targetRect','_getOrderInContent','destroy','has','focusTracker','from','isFocused','getIndex','length','set','focusableElements','innerView','listenTo','fire','get','getByInnerView','add','delete','view','_focusTracker','remove','_sort','clear','getByView','top','blur','annotationcollection-not-existing-item','left','change:isFocused','stopListening','annotationcollection-duplicated-item','updateTargetRect','focus'];(function(_0x442988,_0x3255df){const _0x4b7fac=function(_0x49dc8a){while(--_0x49dc8a){_0x442988['push'](_0x442988['shift']());}};_0x4b7fac(++_0x3255df);}(_0x3255,0x182));const _0x4b7f=function(_0x442988,_0x3255df){_0x442988=_0x442988-0x0;let _0x4b7fac=_0x3255[_0x442988];return _0x4b7fac;};import{CKEditorError as _0x514ebd,Collection as _0x1d7128,FocusTracker as _0x19a4d3}from'ckeditor5/src/utils';export default class x extends _0x1d7128{constructor(_0x38864b=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x4b7f('0xa')]=new Map(),this[_0x4b7f('0x20')]=new _0x19a4d3(),this[_0x4b7f('0x20')]['on'](_0x4b7f('0x5'),(_0x3405a1,_0x22ea59,_0x21050e)=>{_0x21050e||this[_0x4b7f('0x1a')](_0x4b7f('0x2'));});for(const _0xd368ba of _0x38864b)this[_0x4b7f('0x1d')](_0xd368ba);}get[_0x4b7f('0x13')](){return this['_focusTracker'][_0x4b7f('0x13')];}[_0x4b7f('0x1d')](_0x1fd58c){if(this[_0x4b7f('0x10')](_0x1fd58c))throw new _0x514ebd(_0x4b7f('0x7'),null);this['_innerViewToAnnotation'][_0x4b7f('0x16')](_0x1fd58c[_0x4b7f('0x18')],_0x1fd58c),this[_0x4b7f('0xa')][_0x4b7f('0x16')](_0x1fd58c['view'],_0x1fd58c);for(const _0x492795 of _0x1fd58c[_0x4b7f('0x17')])this[_0x4b7f('0x20')][_0x4b7f('0x1d')](_0x492795);this[_0x4b7f('0x19')](_0x1fd58c[_0x4b7f('0x17')],_0x4b7f('0x1d'),(_0x20979e,_0x55ef0d)=>{this[_0x4b7f('0x20')][_0x4b7f('0x1d')](_0x55ef0d);}),this[_0x4b7f('0x19')](_0x1fd58c[_0x4b7f('0x17')],'remove',(_0x32781f,_0x541fb9)=>{this[_0x4b7f('0x20')][_0x4b7f('0x21')](_0x541fb9);}),this[_0x4b7f('0x19')](_0x1fd58c['view'][_0x4b7f('0x11')],'change:isFocused',(_0x1ae7d0,_0x1f3caa,_0x33f83f)=>{_0x33f83f&&this[_0x4b7f('0x1a')](_0x4b7f('0x9'),_0x1fd58c);}),_0x1fd58c[_0x4b7f('0x8')]();const _0xe2f74d=this[_0x4b7f('0xe')](_0x1fd58c[_0x4b7f('0x1f')][_0x4b7f('0xd')]);return super[_0x4b7f('0x1d')](_0x1fd58c,_0xe2f74d);}[_0x4b7f('0x21')](_0x20e75f){if(!this[_0x4b7f('0x10')](_0x20e75f))throw new _0x514ebd(_0x4b7f('0x3'),null);this[_0x4b7f('0x6')](_0x20e75f[_0x4b7f('0x1f')][_0x4b7f('0x11')]),this['stopListening'](_0x20e75f[_0x4b7f('0x17')]);for(const _0x3d7b26 of _0x20e75f['focusableElements'])this[_0x4b7f('0x20')][_0x4b7f('0x21')](_0x3d7b26);return this['_viewToAnnotation'][_0x4b7f('0x1e')](_0x20e75f[_0x4b7f('0x1f')]),this[_0x4b7f('0xc')][_0x4b7f('0x1e')](_0x20e75f[_0x4b7f('0x18')]),super[_0x4b7f('0x21')](_0x20e75f);}[_0x4b7f('0x1c')](_0x579b4a){return this[_0x4b7f('0xc')][_0x4b7f('0x1b')](_0x579b4a);}[_0x4b7f('0x0')](_0x2f9886){return this[_0x4b7f('0xa')][_0x4b7f('0x1b')](_0x2f9886);}[_0x4b7f('0xf')](){super[_0x4b7f('0x23')](),this['stopListening'](),this[_0x4b7f('0xc')][_0x4b7f('0x23')](),this[_0x4b7f('0xa')]['clear'](),this['_focusTracker'][_0x4b7f('0xf')]();}[_0x4b7f('0xb')](){for(const _0x4219b5 of this)_0x4219b5[_0x4b7f('0x8')]();this['_sort']();}[_0x4b7f('0x22')](){const _0x3941f0=Array[_0x4b7f('0x12')](this)['sort']((_0x42c729,_0x1a1b69)=>v(_0x42c729[_0x4b7f('0x1f')][_0x4b7f('0xd')],_0x1a1b69[_0x4b7f('0x1f')][_0x4b7f('0xd')]));for(let _0x525a67=_0x3941f0['length']-0x1;_0x525a67>0x0;_0x525a67--){const _0x5d7d93=_0x3941f0[_0x525a67];_0x525a67!==this[_0x4b7f('0x14')](_0x5d7d93)&&(this['remove'](_0x5d7d93),this[_0x4b7f('0x1d')](_0x5d7d93));}}[_0x4b7f('0xe')](_0x10d7f1){let _0x19165d=0x0;if(!_0x10d7f1)return this[_0x4b7f('0x15')];for(const _0x158137 of this){const _0xb373ff=_0x158137[_0x4b7f('0x1f')][_0x4b7f('0xd')];if(_0xb373ff){if(v(_0x10d7f1,_0xb373ff)<0x0)return _0x19165d;_0x19165d++;}}return _0x19165d;}}export function bindAnnotationCollections({source:_0x29dd11,target:_0x1b2064,filter:_0x3e5c12}){for(const _0xa8bee5 of _0x29dd11)_0x3e5c12(_0xa8bee5)&&_0x1b2064[_0x4b7f('0x1d')](_0xa8bee5);_0x1b2064[_0x4b7f('0x19')](_0x29dd11,_0x4b7f('0x1d'),(_0x3b8d32,_0x5e9042)=>{_0x3e5c12(_0x5e9042)&&_0x1b2064[_0x4b7f('0x1d')](_0x5e9042);}),_0x1b2064[_0x4b7f('0x19')](_0x29dd11,_0x4b7f('0x21'),(_0x4b11d4,_0xede50b)=>{_0x1b2064[_0x4b7f('0x10')](_0xede50b)&&_0x1b2064[_0x4b7f('0x21')](_0xede50b);});}function v(_0x560b05,_0x241da7){if(null===_0x560b05&&null===_0x241da7)return 0x0;if(null===_0x560b05)return-0x1;if(null===_0x241da7)return 0x1;const _0x2b1776=_0x560b05[_0x4b7f('0x1')]-_0x241da7[_0x4b7f('0x1')];return 0x0==_0x2b1776?_0x560b05[_0x4b7f('0x4')]-_0x241da7[_0x4b7f('0x4')]:_0x2b1776;}
23
+ const _0x3c44=['getByInnerView','delete','add','left','_sort','isFocused','view','remove','_innerViewToAnnotation','set','_focusTracker','blur','change:isFocused','clear','_getOrderInContent','targetRect','getByView','updateTargetRect','getIndex','listenTo','has','length','_viewToAnnotation','from','focusableElements','innerView','fire','get','focusTracker','annotationcollection-not-existing-item','destroy','annotationcollection-duplicated-item','refreshPositioning','top','stopListening'];(function(_0x2c4b80,_0x3c4450){const _0x29c6f7=function(_0x3ca016){while(--_0x3ca016){_0x2c4b80['push'](_0x2c4b80['shift']());}};_0x29c6f7(++_0x3c4450);}(_0x3c44,0x11e));const _0x29c6=function(_0x2c4b80,_0x3c4450){_0x2c4b80=_0x2c4b80-0x0;let _0x29c6f7=_0x3c44[_0x2c4b80];return _0x29c6f7;};import{CKEditorError as _0x393bd9,Collection as _0x16726b,FocusTracker as _0x502bac}from'ckeditor5/src/utils';export default class x extends _0x16726b{constructor(_0x503327=[]){super(),this[_0x29c6('0x2')]=new Map(),this[_0x29c6('0x10')]=new Map(),this[_0x29c6('0x4')]=new _0x502bac(),this[_0x29c6('0x4')]['on']('change:isFocused',(_0x171726,_0x28afdc,_0x178f41)=>{_0x178f41||this[_0x29c6('0x14')](_0x29c6('0x5'));});for(const _0x5a6b22 of _0x503327)this[_0x29c6('0x1f')](_0x5a6b22);}get[_0x29c6('0x22')](){return this['_focusTracker'][_0x29c6('0x22')];}['add'](_0x4989c8){if(this[_0x29c6('0xe')](_0x4989c8))throw new _0x393bd9(_0x29c6('0x19'),null);this['_innerViewToAnnotation'][_0x29c6('0x3')](_0x4989c8[_0x29c6('0x13')],_0x4989c8),this[_0x29c6('0x10')][_0x29c6('0x3')](_0x4989c8[_0x29c6('0x0')],_0x4989c8);for(const _0x2b2083 of _0x4989c8['focusableElements'])this[_0x29c6('0x4')][_0x29c6('0x1f')](_0x2b2083);this['listenTo'](_0x4989c8[_0x29c6('0x12')],_0x29c6('0x1f'),(_0x44cafc,_0x3c7122)=>{this[_0x29c6('0x4')][_0x29c6('0x1f')](_0x3c7122);}),this[_0x29c6('0xd')](_0x4989c8[_0x29c6('0x12')],_0x29c6('0x1'),(_0x44966f,_0x5cf695)=>{this[_0x29c6('0x4')][_0x29c6('0x1')](_0x5cf695);}),this['listenTo'](_0x4989c8[_0x29c6('0x0')][_0x29c6('0x16')],_0x29c6('0x6'),(_0x3cccb8,_0x14144a,_0x507a28)=>{_0x507a28&&this['fire']('focus',_0x4989c8);}),_0x4989c8['updateTargetRect']();const _0x1f1265=this[_0x29c6('0x8')](_0x4989c8[_0x29c6('0x0')][_0x29c6('0x9')]);return super[_0x29c6('0x1f')](_0x4989c8,_0x1f1265);}[_0x29c6('0x1')](_0x5396c7){if(!this[_0x29c6('0xe')](_0x5396c7))throw new _0x393bd9(_0x29c6('0x17'),null);this[_0x29c6('0x1c')](_0x5396c7[_0x29c6('0x0')][_0x29c6('0x16')]),this['stopListening'](_0x5396c7[_0x29c6('0x12')]);for(const _0x9eee0d of _0x5396c7[_0x29c6('0x12')])this['_focusTracker'][_0x29c6('0x1')](_0x9eee0d);return this[_0x29c6('0x10')][_0x29c6('0x1e')](_0x5396c7[_0x29c6('0x0')]),this[_0x29c6('0x2')][_0x29c6('0x1e')](_0x5396c7['innerView']),super['remove'](_0x5396c7);}[_0x29c6('0x1d')](_0x570d3f){return this['_innerViewToAnnotation'][_0x29c6('0x15')](_0x570d3f);}[_0x29c6('0xa')](_0x1d35ec){return this['_viewToAnnotation'][_0x29c6('0x15')](_0x1d35ec);}[_0x29c6('0x18')](){super['clear'](),this[_0x29c6('0x1c')](),this[_0x29c6('0x2')]['clear'](),this[_0x29c6('0x10')][_0x29c6('0x7')](),this[_0x29c6('0x4')][_0x29c6('0x18')]();}[_0x29c6('0x1a')](){for(const _0x33db1a of this)_0x33db1a[_0x29c6('0xb')]();this['_sort']();}[_0x29c6('0x21')](){const _0x33d37a=Array[_0x29c6('0x11')](this)['sort']((_0x5b1532,_0x4394ae)=>v(_0x5b1532[_0x29c6('0x0')]['targetRect'],_0x4394ae[_0x29c6('0x0')][_0x29c6('0x9')]));for(let _0x2182c4=_0x33d37a[_0x29c6('0xf')]-0x1;_0x2182c4>0x0;_0x2182c4--){const _0x398887=_0x33d37a[_0x2182c4];_0x2182c4!==this[_0x29c6('0xc')](_0x398887)&&(this[_0x29c6('0x1')](_0x398887),this[_0x29c6('0x1f')](_0x398887));}}[_0x29c6('0x8')](_0x59c465){let _0x4134e3=0x0;if(!_0x59c465)return this['length'];for(const _0x21fdfc of this){const _0x135efa=_0x21fdfc[_0x29c6('0x0')][_0x29c6('0x9')];if(_0x135efa){if(v(_0x59c465,_0x135efa)<0x0)return _0x4134e3;_0x4134e3++;}}return _0x4134e3;}}export function bindAnnotationCollections({source:_0x2c7faf,target:_0x502643,filter:_0x5425b0}){for(const _0x8a930b of _0x2c7faf)_0x5425b0(_0x8a930b)&&_0x502643['add'](_0x8a930b);_0x502643[_0x29c6('0xd')](_0x2c7faf,_0x29c6('0x1f'),(_0x437443,_0x17459f)=>{_0x5425b0(_0x17459f)&&_0x502643[_0x29c6('0x1f')](_0x17459f);}),_0x502643['listenTo'](_0x2c7faf,_0x29c6('0x1'),(_0x1de433,_0x23171a)=>{_0x502643[_0x29c6('0xe')](_0x23171a)&&_0x502643['remove'](_0x23171a);});}function v(_0x12adc5,_0x51fe07){if(null===_0x12adc5&&null===_0x51fe07)return 0x0;if(null===_0x12adc5)return-0x1;if(null===_0x51fe07)return 0x1;const _0x3d6606=_0x12adc5[_0x29c6('0x1b')]-_0x51fe07['top'];return 0x0==_0x3d6606?_0x12adc5[_0x29c6('0x20')]-_0x51fe07['left']:_0x3d6606;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c5a=['has','destroy','activate','Annotations','collection','change:isVisible','isVisible','_bindAnnotationsToVisibleAnnotations','deactivateAll','getByInnerView','add','_addActiveAnnotation','listenTo','_removeActiveAnnotation','remove','view','stopListening','activeAnnotations','fire','refreshVisibility','refreshPositioning','element','createAnnotationView','_visibleAnnotations','createAnnotation','focusTracker','_activateAnnotation'];(function(_0x2ae827,_0x4c5aad){const _0x2e111b=function(_0x14f3df){while(--_0x14f3df){_0x2ae827['push'](_0x2ae827['shift']());}};_0x2e111b(++_0x4c5aad);}(_0x4c5a,0x118));const _0x2e11=function(_0x2ae827,_0x4c5aad){_0x2ae827=_0x2ae827-0x0;let _0x2e111b=_0x4c5a[_0x2ae827];return _0x2e111b;};import{ContextPlugin as _0x4c4239}from'ckeditor5/src/core';import _0x5be185 from'./annotation';import _0x2aa789 from'./annotationcollection';import _0x1ccca1 from'./view/annotationview';export default class b extends _0x4c4239{static get['pluginName'](){return _0x2e11('0x14');}constructor(_0x41e8c5){super(_0x41e8c5),this['collection']=new _0x2aa789(),this[_0x2e11('0xd')]=new _0x2aa789(),this['set'](_0x2e11('0x7'),new Set()),this[_0x2e11('0x18')]();}[_0x2e11('0x0')](_0x40243b){this['collection'][_0x2e11('0x0')](_0x40243b);}[_0x2e11('0x4')](_0x175b2f){this[_0x2e11('0x15')][_0x2e11('0x4')](_0x175b2f),_0x175b2f['destroy']();}['refreshVisibility'](){for(const _0x59a61d of this[_0x2e11('0x15')])_0x59a61d[_0x2e11('0x9')]();}[_0x2e11('0xa')](){this[_0x2e11('0xd')][_0x2e11('0xa')]();}['getByInnerView'](_0xb5fec4){return this[_0x2e11('0x15')][_0x2e11('0x1a')](_0xb5fec4);}[_0x2e11('0x19')](){this[_0x2e11('0x8')]('_deactivateAllAnnotations');}['destroy'](){for(const _0x2ce224 of this['collection'])_0x2ce224[_0x2e11('0x12')]();this[_0x2e11('0xd')][_0x2e11('0x12')](),this[_0x2e11('0x15')][_0x2e11('0x12')](),super[_0x2e11('0x12')]();}[_0x2e11('0x13')](_0x149fd8){this[_0x2e11('0x8')](_0x2e11('0x10'),_0x149fd8);}[_0x2e11('0xe')](_0xec8192){return new _0x5be185(_0xec8192);}[_0x2e11('0xc')](_0x458d07,_0x228858){return new _0x1ccca1(_0x458d07,_0x228858);}[_0x2e11('0x1')](_0x54d7d1){const _0x1391e1=new Set(this['activeAnnotations']);_0x1391e1[_0x2e11('0x0')](_0x54d7d1),this[_0x2e11('0x7')]=_0x1391e1;}[_0x2e11('0x3')](_0x4864cc){const _0x594b90=new Set(this[_0x2e11('0x7')]);_0x594b90['delete'](_0x4864cc),this['activeAnnotations']=_0x594b90;}[_0x2e11('0x18')](){const _0x1d2ed2=this[_0x2e11('0x15')],_0x561e63=this[_0x2e11('0xd')];function _0xe0a877(_0x551633){const _0x2514a5=_0x551633['source'];_0x2514a5[_0x2e11('0x17')]&&!_0x561e63[_0x2e11('0x11')](_0x2514a5)?_0x561e63[_0x2e11('0x0')](_0x2514a5):!_0x2514a5[_0x2e11('0x17')]&&_0x561e63[_0x2e11('0x11')](_0x2514a5)&&_0x561e63[_0x2e11('0x4')](_0x2514a5),_0x2514a5[_0x2e11('0x5')][_0x2e11('0xf')]['remove'](_0x2514a5[_0x2e11('0x5')][_0x2e11('0xb')]),_0x2514a5[_0x2e11('0x5')][_0x2e11('0xf')][_0x2e11('0x0')](_0x2514a5[_0x2e11('0x5')][_0x2e11('0xb')]);}this[_0x2e11('0x2')](_0x1d2ed2,'add',(_0x2bbf4e,_0x26e6d1)=>{_0x26e6d1[_0x2e11('0x17')]&&_0x561e63[_0x2e11('0x0')](_0x26e6d1),this['listenTo'](_0x26e6d1,_0x2e11('0x16'),_0xe0a877);}),this[_0x2e11('0x2')](_0x1d2ed2,_0x2e11('0x4'),(_0x2046b3,_0x1504bb)=>{_0x561e63['has'](_0x1504bb)&&_0x561e63[_0x2e11('0x4')](_0x1504bb),this[_0x2e11('0x6')](_0x1504bb,'change:isVisible',_0xe0a877);});}}
23
+ const _0x3c4e=['deactivateAll','destroy','fire','add','isVisible','createAnnotationView','createAnnotation','getByInnerView','source','view','pluginName','refreshPositioning','activate','_removeActiveAnnotation','refreshVisibility','Annotations','remove','_activateAnnotation','has','focusTracker','_visibleAnnotations','element','_deactivateAllAnnotations','set','listenTo','collection','change:isVisible','_addActiveAnnotation','activeAnnotations','stopListening'];(function(_0x44b916,_0x3c4e6a){const _0x5eca17=function(_0x5ab0b4){while(--_0x5ab0b4){_0x44b916['push'](_0x44b916['shift']());}};_0x5eca17(++_0x3c4e6a);}(_0x3c4e,0x184));const _0x5eca=function(_0x44b916,_0x3c4e6a){_0x44b916=_0x44b916-0x0;let _0x5eca17=_0x3c4e[_0x44b916];return _0x5eca17;};import{ContextPlugin as _0x3d623b}from'ckeditor5/src/core';import _0x44c6e3 from'./annotation';import _0x44439f from'./annotationcollection';import _0x2a25db from'./view/annotationview';export default class b extends _0x3d623b{static get[_0x5eca('0xc')](){return _0x5eca('0x11');}constructor(_0x37369b){super(_0x37369b),this[_0x5eca('0x1b')]=new _0x44439f(),this[_0x5eca('0x16')]=new _0x44439f(),this[_0x5eca('0x19')]('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x5eca('0x5')](_0x51024d){this['collection']['add'](_0x51024d);}[_0x5eca('0x12')](_0x4011b6){this[_0x5eca('0x1b')][_0x5eca('0x12')](_0x4011b6),_0x4011b6[_0x5eca('0x3')]();}['refreshVisibility'](){for(const _0x526b74 of this[_0x5eca('0x1b')])_0x526b74[_0x5eca('0x10')]();}[_0x5eca('0xd')](){this['_visibleAnnotations']['refreshPositioning']();}[_0x5eca('0x9')](_0x410a27){return this[_0x5eca('0x1b')][_0x5eca('0x9')](_0x410a27);}[_0x5eca('0x2')](){this[_0x5eca('0x4')](_0x5eca('0x18'));}[_0x5eca('0x3')](){for(const _0x379563 of this[_0x5eca('0x1b')])_0x379563[_0x5eca('0x3')]();this[_0x5eca('0x16')][_0x5eca('0x3')](),this[_0x5eca('0x1b')][_0x5eca('0x3')](),super['destroy']();}[_0x5eca('0xe')](_0x5e4d15){this[_0x5eca('0x4')](_0x5eca('0x13'),_0x5e4d15);}[_0x5eca('0x8')](_0x275ac4){return new _0x44c6e3(_0x275ac4);}[_0x5eca('0x7')](_0x33404c,_0x38873){return new _0x2a25db(_0x33404c,_0x38873);}[_0x5eca('0x1d')](_0xf2583b){const _0x7ccf50=new Set(this['activeAnnotations']);_0x7ccf50[_0x5eca('0x5')](_0xf2583b),this['activeAnnotations']=_0x7ccf50;}[_0x5eca('0xf')](_0x4b5cc3){const _0x2cdee6=new Set(this[_0x5eca('0x0')]);_0x2cdee6['delete'](_0x4b5cc3),this[_0x5eca('0x0')]=_0x2cdee6;}['_bindAnnotationsToVisibleAnnotations'](){const _0x10dfc7=this[_0x5eca('0x1b')],_0x32727c=this[_0x5eca('0x16')];function _0x3c0991(_0x47208a){const _0x306733=_0x47208a[_0x5eca('0xa')];_0x306733['isVisible']&&!_0x32727c[_0x5eca('0x14')](_0x306733)?_0x32727c['add'](_0x306733):!_0x306733[_0x5eca('0x6')]&&_0x32727c[_0x5eca('0x14')](_0x306733)&&_0x32727c[_0x5eca('0x12')](_0x306733),_0x306733['view'][_0x5eca('0x15')][_0x5eca('0x12')](_0x306733[_0x5eca('0xb')][_0x5eca('0x17')]),_0x306733[_0x5eca('0xb')][_0x5eca('0x15')]['add'](_0x306733[_0x5eca('0xb')]['element']);}this['listenTo'](_0x10dfc7,_0x5eca('0x5'),(_0x46687c,_0x4c3050)=>{_0x4c3050[_0x5eca('0x6')]&&_0x32727c[_0x5eca('0x5')](_0x4c3050),this[_0x5eca('0x1a')](_0x4c3050,_0x5eca('0x1c'),_0x3c0991);}),this[_0x5eca('0x1a')](_0x10dfc7,_0x5eca('0x12'),(_0x38fe2b,_0x46920c)=>{_0x32727c[_0x5eca('0x14')](_0x46920c)&&_0x32727c['remove'](_0x46920c),this[_0x5eca('0x1')](_0x46920c,_0x5eca('0x1c'),_0x3c0991);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf781=['annotationsuis-annotation-mismatch','type','_removeActiveAnnotation','init','activeAnnotations','detach','collection','deactivateAll','plugins','_assertAnnotationDoesNotBelongToMultipleUIs','function','activate','_setSelectedAnnotations','size','destroy','add','remove','annotationsuis-register-invalid-interface','_uisData','refilterAnnotations','filter','requires','_visibleAnnotations','setActiveAnnotation','_activateAnnotation','switchTo','_uis','annotationsuis-missing-ui','register','push','activeUIs','from','context','has','attach','stopListening','pluginName','isActive','length','change:activeAnnotation','set','find','deactivate','get','listenTo'];(function(_0x333619,_0xf781a0){const _0x478c32=function(_0x59a95b){while(--_0x59a95b){_0x333619['push'](_0x333619['shift']());}};_0x478c32(++_0xf781a0);}(_0xf781,0x13b));const _0x478c=function(_0x333619,_0xf781a0){_0x333619=_0x333619-0x0;let _0x478c32=_0xf781[_0x333619];return _0x478c32;};import{ContextPlugin as _0x3f342a}from'ckeditor5/src/core';import{CKEditorError as _0x1307f8}from'ckeditor5/src/utils';import _0x57cce3,{bindAnnotationCollections as _0x3727dc}from'./annotationcollection';import _0x29f0d8 from'./annotations';export default class M extends _0x3f342a{static get[_0x478c('0x15')](){return[_0x29f0d8];}static get[_0x478c('0x24')](){return'AnnotationsUIs';}constructor(_0x20663c){super(_0x20663c),this[_0x478c('0x1e')]=new Set(),this[_0x478c('0x1a')]=new Map(),this[_0x478c('0x12')]=new Map();}[_0x478c('0x3')](){const _0x51812c=this[_0x478c('0x20')][_0x478c('0x8')]['get'](_0x29f0d8);this['listenTo'](_0x51812c,_0x478c('0x18'),(_0x5227dc,_0x48485d)=>{for(const _0x215c11 of this['activeUIs']){const _0x434097=this[_0x478c('0x1a')]['get'](_0x215c11);(0x0,this[_0x478c('0x12')]['get'](_0x215c11)[_0x478c('0x14')])(_0x48485d)&&_0x434097[_0x478c('0x17')](_0x48485d);}}),this[_0x478c('0x2c')](_0x51812c,'_deactivateAllAnnotations',()=>{for(const _0x1b8725 of this[_0x478c('0x1e')]){this[_0x478c('0x1a')][_0x478c('0x2b')](_0x1b8725)[_0x478c('0x17')](null);}}),this['listenTo'](_0x51812c[_0x478c('0x16')],_0x478c('0xf'),(_0x18ca37,_0x457ced)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x457ced);});}['hasActive'](){return this[_0x478c('0x1e')][_0x478c('0xd')]>0x0;}[_0x478c('0x25')](_0x5325f9){return this[_0x478c('0x1e')][_0x478c('0x21')](_0x5325f9);}[_0x478c('0xb')](_0xe3a9a0,_0x3d06bd=()=>!0x0){const _0x23b647=this[_0x478c('0x20')][_0x478c('0x8')][_0x478c('0x2b')](_0x29f0d8);if(!this['_uis'][_0x478c('0x21')](_0xe3a9a0))throw new _0x1307f8(_0x478c('0x1b'),this,{'uiName':_0xe3a9a0});this[_0x478c('0x25')](_0xe3a9a0)&&this[_0x478c('0x2a')](_0xe3a9a0),this[_0x478c('0x1e')]['add'](_0xe3a9a0);const _0x561ceb=new _0x57cce3(),_0x468d4b=_0x23b647[_0x478c('0x16')];_0x3727dc({'source':_0x468d4b,'target':_0x561ceb,'filter':_0x3d06bd}),this[_0x478c('0x12')][_0x478c('0x28')](_0xe3a9a0,{'collection':_0x561ceb,'filter':_0x3d06bd});const _0x24ad66=this['_uis'][_0x478c('0x2b')](_0xe3a9a0);_0x24ad66['attach'](_0x561ceb),this[_0x478c('0x2c')](_0x24ad66,_0x478c('0x27'),(_0x1ce359,_0x19c8e0,_0x150b68,_0xc63529)=>{_0xc63529&&_0x23b647[_0x478c('0x2')](_0xc63529),_0x150b68&&_0x23b647['_addActiveAnnotation'](_0x150b68);});}[_0x478c('0x2a')](_0x5b6570){if(this[_0x478c('0x1e')]['delete'](_0x5b6570),!this[_0x478c('0x1a')]['has'](_0x5b6570))throw new _0x1307f8(_0x478c('0x1b'),this,{'uiName':_0x5b6570});const _0x101ccd=this[_0x478c('0x1a')][_0x478c('0x2b')](_0x5b6570);_0x101ccd['detach'](),this[_0x478c('0x23')](_0x101ccd),this[_0x478c('0x12')]['get'](_0x5b6570)[_0x478c('0x6')][_0x478c('0xe')](),this[_0x478c('0x12')]['delete'](_0x5b6570);}[_0x478c('0x19')](_0x480884){if(!this[_0x478c('0x1a')]['has'](_0x480884))throw new _0x1307f8(_0x478c('0x1b'),this,{'uiName':_0x480884});const _0x52b35c=this['context']['plugins'][_0x478c('0x2b')](_0x29f0d8),_0x1ba071=Array[_0x478c('0x1f')](_0x52b35c[_0x478c('0x4')])[0x0]||null;this[_0x478c('0x7')](),this[_0x478c('0xb')](_0x480884);const _0x2e408c=this[_0x478c('0x1a')][_0x478c('0x2b')](_0x480884);_0x2e408c['setActiveAnnotation'](_0x1ba071),_0x2e408c[_0x478c('0xc')]&&_0x1ba071&&_0x2e408c[_0x478c('0xc')]([_0x1ba071]);}[_0x478c('0x7')](){for(const _0x3de07b of this[_0x478c('0x1e')])this['deactivate'](_0x3de07b);}[_0x478c('0x1c')](_0x28595d,_0x5e0f4b){if(this[_0x478c('0x1a')][_0x478c('0x21')](_0x28595d))throw new _0x1307f8('annotationsuis-register-already-registered');if('function'!=typeof _0x5e0f4b[_0x478c('0x22')]||'function'!=typeof _0x5e0f4b[_0x478c('0x5')]||_0x478c('0xa')!=typeof _0x5e0f4b['setActiveAnnotation'])throw new _0x1307f8(_0x478c('0x11'),null);this[_0x478c('0x1a')][_0x478c('0x28')](_0x28595d,_0x5e0f4b);}[_0x478c('0x13')](){const _0x4a3de7=this[_0x478c('0x20')]['plugins'][_0x478c('0x2b')](_0x29f0d8)[_0x478c('0x6')],_0x3cfc52=new Map(),_0x195349=Array[_0x478c('0x1f')](this['activeUIs']);for(const _0xef7524 of this['activeUIs']){const _0x37f8da=this[_0x478c('0x12')][_0x478c('0x2b')](_0xef7524)[_0x478c('0x6')];for(const _0x453dd0 of _0x37f8da)_0x3cfc52['set'](_0x453dd0,_0xef7524);}for(const _0x3179d0 of _0x4a3de7){const _0x265728=_0x3cfc52[_0x478c('0x2b')](_0x3179d0);this[_0x478c('0x9')](_0x3179d0);const _0x24bafd=_0x195349[_0x478c('0x29')](_0x3b2d13=>this['_uisData'][_0x478c('0x2b')](_0x3b2d13)[_0x478c('0x14')](_0x3179d0));_0x265728!==_0x24bafd&&(_0x265728&&this['_uisData'][_0x478c('0x2b')](_0x265728)[_0x478c('0x6')][_0x478c('0x10')](_0x3179d0),_0x24bafd&&this[_0x478c('0x12')]['get'](_0x24bafd)['collection'][_0x478c('0xf')](_0x3179d0));}}['destroy'](){this[_0x478c('0x7')](),super[_0x478c('0xe')]();}[_0x478c('0x9')](_0x2e15fa){const _0x1f5285=[];for(const _0x3f3120 of this[_0x478c('0x1e')]){(0x0,this['_uisData'][_0x478c('0x2b')](_0x3f3120)[_0x478c('0x14')])(_0x2e15fa)&&_0x1f5285[_0x478c('0x1d')](_0x3f3120);}if(_0x1f5285[_0x478c('0x26')]>0x1)throw new _0x1307f8(_0x478c('0x0'),null,{'matchedUIs':_0x1f5285,'annotationType':_0x2e15fa[_0x478c('0x1')]});}}
23
+ const _0x5f27=['from','annotationsuis-register-invalid-interface','collection','remove','activeUIs','switchTo','filter','_deactivateAllAnnotations','function','deactivate','_visibleAnnotations','annotationsuis-annotation-mismatch','refilterAnnotations','pluginName','context','detach','init','register','listenTo','find','stopListening','_uisData','_removeActiveAnnotation','destroy','delete','setActiveAnnotation','length','annotationsuis-missing-ui','attach','add','plugins','_addActiveAnnotation','_setSelectedAnnotations','_assertAnnotationDoesNotBelongToMultipleUIs','requires','has','change:activeAnnotation','get','_uis','set','type','push','isActive','deactivateAll'];(function(_0x46318d,_0x5f2797){const _0x53cc23=function(_0x472fdc){while(--_0x472fdc){_0x46318d['push'](_0x46318d['shift']());}};_0x53cc23(++_0x5f2797);}(_0x5f27,0x18b));const _0x53cc=function(_0x46318d,_0x5f2797){_0x46318d=_0x46318d-0x0;let _0x53cc23=_0x5f27[_0x46318d];return _0x53cc23;};import{ContextPlugin as _0x16e077}from'ckeditor5/src/core';import{CKEditorError as _0x342195}from'ckeditor5/src/utils';import _0x555fba,{bindAnnotationCollections as _0x1f919d}from'./annotationcollection';import _0xc20c98 from'./annotations';export default class M extends _0x16e077{static get[_0x53cc('0x23')](){return[_0xc20c98];}static get[_0x53cc('0xe')](){return'AnnotationsUIs';}constructor(_0x53d8b7){super(_0x53d8b7),this[_0x53cc('0x5')]=new Set(),this['_uis']=new Map(),this[_0x53cc('0x16')]=new Map();}[_0x53cc('0x11')](){const _0x4fa85c=this[_0x53cc('0xf')][_0x53cc('0x1f')][_0x53cc('0x26')](_0xc20c98);this[_0x53cc('0x13')](_0x4fa85c,'_activateAnnotation',(_0x41e3ee,_0x26d54d)=>{for(const _0x201a88 of this['activeUIs']){const _0x6ce98a=this['_uis'][_0x53cc('0x26')](_0x201a88);(0x0,this[_0x53cc('0x16')]['get'](_0x201a88)['filter'])(_0x26d54d)&&_0x6ce98a['setActiveAnnotation'](_0x26d54d);}}),this[_0x53cc('0x13')](_0x4fa85c,_0x53cc('0x8'),()=>{for(const _0x3b8614 of this[_0x53cc('0x5')]){this[_0x53cc('0x27')]['get'](_0x3b8614)[_0x53cc('0x1a')](null);}}),this[_0x53cc('0x13')](_0x4fa85c[_0x53cc('0xb')],'add',(_0x375cca,_0x5c6ce7)=>{this[_0x53cc('0x22')](_0x5c6ce7);});}['hasActive'](){return this[_0x53cc('0x5')]['size']>0x0;}[_0x53cc('0x2b')](_0x42e700){return this[_0x53cc('0x5')][_0x53cc('0x24')](_0x42e700);}['activate'](_0x11e5d2,_0x4750f0=()=>!0x0){const _0x100c96=this[_0x53cc('0xf')]['plugins'][_0x53cc('0x26')](_0xc20c98);if(!this[_0x53cc('0x27')]['has'](_0x11e5d2))throw new _0x342195('annotationsuis-missing-ui',this,{'uiName':_0x11e5d2});this[_0x53cc('0x2b')](_0x11e5d2)&&this[_0x53cc('0xa')](_0x11e5d2),this['activeUIs'][_0x53cc('0x1e')](_0x11e5d2);const _0x42f549=new _0x555fba(),_0x2e4712=_0x100c96['_visibleAnnotations'];_0x1f919d({'source':_0x2e4712,'target':_0x42f549,'filter':_0x4750f0}),this[_0x53cc('0x16')][_0x53cc('0x28')](_0x11e5d2,{'collection':_0x42f549,'filter':_0x4750f0});const _0x51e62b=this[_0x53cc('0x27')][_0x53cc('0x26')](_0x11e5d2);_0x51e62b[_0x53cc('0x1d')](_0x42f549),this[_0x53cc('0x13')](_0x51e62b,_0x53cc('0x25'),(_0x50e769,_0x3656a4,_0x37a79a,_0x14660a)=>{_0x14660a&&_0x100c96[_0x53cc('0x17')](_0x14660a),_0x37a79a&&_0x100c96[_0x53cc('0x20')](_0x37a79a);});}['deactivate'](_0x8774be){if(this['activeUIs'][_0x53cc('0x19')](_0x8774be),!this['_uis']['has'](_0x8774be))throw new _0x342195('annotationsuis-missing-ui',this,{'uiName':_0x8774be});const _0x555b36=this[_0x53cc('0x27')]['get'](_0x8774be);_0x555b36[_0x53cc('0x10')](),this[_0x53cc('0x15')](_0x555b36),this['_uisData'][_0x53cc('0x26')](_0x8774be)[_0x53cc('0x3')][_0x53cc('0x18')](),this[_0x53cc('0x16')]['delete'](_0x8774be);}[_0x53cc('0x6')](_0x291966){if(!this[_0x53cc('0x27')]['has'](_0x291966))throw new _0x342195(_0x53cc('0x1c'),this,{'uiName':_0x291966});const _0x2c06e3=this['context'][_0x53cc('0x1f')][_0x53cc('0x26')](_0xc20c98),_0x50969f=Array[_0x53cc('0x1')](_0x2c06e3['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x291966);const _0x19b2fc=this[_0x53cc('0x27')][_0x53cc('0x26')](_0x291966);_0x19b2fc[_0x53cc('0x1a')](_0x50969f),_0x19b2fc[_0x53cc('0x21')]&&_0x50969f&&_0x19b2fc['_setSelectedAnnotations']([_0x50969f]);}[_0x53cc('0x0')](){for(const _0x442ab6 of this['activeUIs'])this[_0x53cc('0xa')](_0x442ab6);}[_0x53cc('0x12')](_0xed7d99,_0x44e50e){if(this[_0x53cc('0x27')][_0x53cc('0x24')](_0xed7d99))throw new _0x342195('annotationsuis-register-already-registered');if(_0x53cc('0x9')!=typeof _0x44e50e['attach']||_0x53cc('0x9')!=typeof _0x44e50e[_0x53cc('0x10')]||_0x53cc('0x9')!=typeof _0x44e50e[_0x53cc('0x1a')])throw new _0x342195(_0x53cc('0x2'),null);this[_0x53cc('0x27')]['set'](_0xed7d99,_0x44e50e);}[_0x53cc('0xd')](){const _0x456572=this[_0x53cc('0xf')][_0x53cc('0x1f')][_0x53cc('0x26')](_0xc20c98)[_0x53cc('0x3')],_0x37dc1f=new Map(),_0x4b8a7c=Array[_0x53cc('0x1')](this[_0x53cc('0x5')]);for(const _0x2d9411 of this[_0x53cc('0x5')]){const _0x2e04cf=this[_0x53cc('0x16')][_0x53cc('0x26')](_0x2d9411)[_0x53cc('0x3')];for(const _0x4266ae of _0x2e04cf)_0x37dc1f[_0x53cc('0x28')](_0x4266ae,_0x2d9411);}for(const _0xaa58c4 of _0x456572){const _0x12736d=_0x37dc1f[_0x53cc('0x26')](_0xaa58c4);this[_0x53cc('0x22')](_0xaa58c4);const _0x1ddb6f=_0x4b8a7c[_0x53cc('0x14')](_0xdfba67=>this[_0x53cc('0x16')]['get'](_0xdfba67)[_0x53cc('0x7')](_0xaa58c4));_0x12736d!==_0x1ddb6f&&(_0x12736d&&this[_0x53cc('0x16')][_0x53cc('0x26')](_0x12736d)[_0x53cc('0x3')][_0x53cc('0x4')](_0xaa58c4),_0x1ddb6f&&this['_uisData'][_0x53cc('0x26')](_0x1ddb6f)['collection'][_0x53cc('0x1e')](_0xaa58c4));}}[_0x53cc('0x18')](){this['deactivateAll'](),super[_0x53cc('0x18')]();}[_0x53cc('0x22')](_0x2bd5b1){const _0x1f4e72=[];for(const _0x57a0a9 of this[_0x53cc('0x5')]){(0x0,this['_uisData'][_0x53cc('0x26')](_0x57a0a9)['filter'])(_0x2bd5b1)&&_0x1f4e72[_0x53cc('0x2a')](_0x57a0a9);}if(_0x1f4e72[_0x53cc('0x1b')]>0x1)throw new _0x342195(_0x53cc('0xc'),null,{'matchedUIs':_0x1f4e72,'annotationType':_0x2bd5b1[_0x53cc('0x29')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b0b=['push','document','editing','_dataCollectors','init','from','range','listenTo','uiUpdate','innerView','getByInnerView','add','selection','has','_editorAnnotations','remove','plugins','annotation','containsRange','update','_editorAnnotationsData','blur','refresh','model','change:isFocused','isReadOnly','editor','getOrderedSelectedAnnotations','get','map','focusTracker','editorannotations-invalid-source-callback','view','registerAnnotation','refreshSelectedViews','requires','cancel','addSourceCollector','sort','EditorAnnotations','delete','element','fire','hasDomSelection'];(function(_0x53c75b,_0x3b0b29){const _0xc32a58=function(_0x399bbf){while(--_0x399bbf){_0x53c75b['push'](_0x53c75b['shift']());}};_0xc32a58(++_0x3b0b29);}(_0x3b0b,0x1c4));const _0xc32a=function(_0x53c75b,_0x3b0b29){_0x53c75b=_0x53c75b-0x0;let _0xc32a58=_0x3b0b[_0x53c75b];return _0xc32a58;};import{Plugin as _0xe33cd4}from'ckeditor5/src/core';import{CKEditorError as _0x1236eb}from'ckeditor5/src/utils';import{debounce as _0x513e40}from'lodash-es';import _0x137c66 from'./annotations';export default class k extends _0xe33cd4{static get[_0xc32a('0x17')](){return[_0x137c66];}static get['pluginName'](){return _0xc32a('0x1b');}constructor(_0x195c76){super(_0x195c76),this['_dataCollectors']=new Set(),this[_0xc32a('0x2')]=new Set();}[_0xc32a('0x24')](){const _0x11d14b=this[_0xc32a('0xe')],_0x20131e=_0x11d14b[_0xc32a('0xb')][_0xc32a('0x21')][_0xc32a('0x0')],_0x492646=_0x513e40(()=>this[_0xc32a('0x16')](),0xa);_0x20131e['on']('change:range',(_0x41a589,_0x2c6941)=>{_0x2c6941['directChange']&&(_0x492646[_0xc32a('0x18')](),this[_0xc32a('0x16')]());}),this['listenTo'](_0x11d14b[_0xc32a('0x22')][_0xc32a('0x14')][_0xc32a('0x21')],'change:isFocused',(_0x2b8646,_0x2f8701,_0x11f906)=>{_0x11f906&&_0x492646();}),this[_0xc32a('0x27')](_0x11d14b['ui']['focusTracker'],_0xc32a('0xc'),(_0x5ac5bd,_0x1531c8,_0x44d7d7)=>{_0x44d7d7||_0x11d14b[_0xc32a('0xd')]||this[_0xc32a('0x1e')](_0xc32a('0x9'),{'isAnnotationTracked':_0x72050a=>this[_0xc32a('0x8')][_0xc32a('0x1')](_0x72050a[_0xc32a('0x29')])});}),this['listenTo'](this[_0xc32a('0xe')]['ui'],_0xc32a('0x7'),()=>this['fire'](_0xc32a('0x28')));}[_0xc32a('0x15')](_0xf2d9c2){if(this['_editorAnnotations'][_0xc32a('0x1')](_0xf2d9c2[_0xc32a('0x14')]))return;this['_editorAnnotations']['add'](_0xf2d9c2[_0xc32a('0x14')]),this['editor']['ui'][_0xc32a('0x12')][_0xc32a('0x2b')](_0xf2d9c2[_0xc32a('0x14')][_0xc32a('0x1d')]);const _0x2f82fc=this[_0xc32a('0xe')][_0xc32a('0x4')][_0xc32a('0x10')](_0x137c66);this[_0xc32a('0x27')](_0x2f82fc['collection'],'remove',(_0x4d7d63,_0xe9846d)=>{this[_0xc32a('0xe')]['ui'][_0xc32a('0x12')][_0xc32a('0x3')](_0xe9846d[_0xc32a('0x14')]['element']),this[_0xc32a('0x2')][_0xc32a('0x1c')](_0xe9846d[_0xc32a('0x14')]);});}['hasDomSelection'](){return this[_0xc32a('0xe')][_0xc32a('0x22')][_0xc32a('0x14')][_0xc32a('0x1f')];}[_0xc32a('0x19')](_0x109ebf){if('function'!=typeof _0x109ebf)throw new _0x1236eb(_0xc32a('0x13'));this[_0xc32a('0x23')][_0xc32a('0x2b')](_0x109ebf);}[_0xc32a('0x16')](){this[_0xc32a('0x1e')](_0xc32a('0xa'));}[_0xc32a('0xf')]({activeAnnotation:_0xd52d37,annotations:_0x3da2e0}){const _0x23009c=[],_0x5427ea=this['editor'][_0xc32a('0xb')][_0xc32a('0x21')]['selection'],_0x476694=Array[_0xc32a('0x25')](_0x5427ea['getRanges']());for(const [_0x370809,_0x477e51]of this[_0xc32a('0x8')]){const _0x4cbb7f=_0x4626db(_0x477e51),_0x556af0=_0x3da2e0[_0xc32a('0x2a')](_0x370809);_0x4cbb7f&&_0x556af0&&_0x23009c[_0xc32a('0x20')]({'annotation':_0x556af0,'range':_0x4cbb7f});}function _0x4626db(_0x29ee05){for(const _0x11765d of _0x29ee05)for(const _0x35275b of _0x476694)if(_0x11765d['containsRange'](_0x35275b,!_0x5427ea['isCollapsed']))return _0x11765d;return null;}return _0x23009c[_0xc32a('0x1a')]((_0x5afdeb,_0x108a30)=>{const _0x133a38=_0x5afdeb['range'],_0x75d48=_0x108a30[_0xc32a('0x26')];if(!_0x133a38['isEqual'](_0x75d48)){if(_0x133a38[_0xc32a('0x6')](_0x75d48,!0x0))return 0x1;if(_0x75d48[_0xc32a('0x6')](_0x133a38,!0x0))return-0x1;}return _0x5afdeb[_0xc32a('0x5')]==_0xd52d37?-0x1:_0x108a30['annotation']==_0xd52d37?0x1:0x0;})[_0xc32a('0x11')](_0x3390af=>_0x3390af['annotation']);}get[_0xc32a('0x8')](){const _0x221590=new Map();for(const _0x58ccea of Array[_0xc32a('0x25')](this['_dataCollectors']))for(const [_0x4b49c0,_0xc75597]of _0x58ccea())_0x221590['set'](_0x4b49c0,_0xc75597);return _0x221590;}}
23
+ const _0x2a86=['cancel','getRanges','EditorAnnotations','refreshSelectedViews','_dataCollectors','directChange','pluginName','sort','from','editing','containsRange','blur','change:isFocused','requires','map','focusTracker','view','addSourceCollector','isEqual','model','change:range','add','element','uiUpdate','annotation','fire','selection','_editorAnnotations','has','editorannotations-invalid-source-callback','registerAnnotation','_editorAnnotationsData','push','isCollapsed','range','editor','listenTo','init','collection','plugins','refresh','remove','getOrderedSelectedAnnotations','isReadOnly','document'];(function(_0x174fed,_0x2a86ec){const _0x78c997=function(_0x35acf9){while(--_0x35acf9){_0x174fed['push'](_0x174fed['shift']());}};_0x78c997(++_0x2a86ec);}(_0x2a86,0xc5));const _0x78c9=function(_0x174fed,_0x2a86ec){_0x174fed=_0x174fed-0x0;let _0x78c997=_0x2a86[_0x174fed];return _0x78c997;};import{Plugin as _0x79333b}from'ckeditor5/src/core';import{CKEditorError as _0x19ecd4}from'ckeditor5/src/utils';import{debounce as _0x20db35}from'lodash-es';import _0x3c0978 from'./annotations';export default class k extends _0x79333b{static get[_0x78c9('0x29')](){return[_0x3c0978];}static get[_0x78c9('0x22')](){return _0x78c9('0x1e');}constructor(_0xa0452){super(_0xa0452),this[_0x78c9('0x20')]=new Set(),this[_0x78c9('0xa')]=new Set();}[_0x78c9('0x14')](){const _0x388ece=this[_0x78c9('0x12')],_0x4ebb23=_0x388ece[_0x78c9('0x2')]['document'][_0x78c9('0x9')],_0x466196=_0x20db35(()=>this[_0x78c9('0x1f')](),0xa);_0x4ebb23['on'](_0x78c9('0x3'),(_0x466d1e,_0x5b6187)=>{_0x5b6187[_0x78c9('0x21')]&&(_0x466196[_0x78c9('0x1c')](),this['refreshSelectedViews']());}),this[_0x78c9('0x13')](_0x388ece[_0x78c9('0x25')][_0x78c9('0x2c')]['document'],_0x78c9('0x28'),(_0x4485de,_0x2c34b7,_0x3a6571)=>{_0x3a6571&&_0x466196();}),this[_0x78c9('0x13')](_0x388ece['ui'][_0x78c9('0x2b')],_0x78c9('0x28'),(_0x40bc25,_0x2c9ddc,_0xeb4a36)=>{_0xeb4a36||_0x388ece[_0x78c9('0x1a')]||this[_0x78c9('0x8')](_0x78c9('0x27'),{'isAnnotationTracked':_0x3cf80d=>this['_editorAnnotationsData'][_0x78c9('0xb')](_0x3cf80d['innerView'])});}),this['listenTo'](this[_0x78c9('0x12')]['ui'],'update',()=>this[_0x78c9('0x8')](_0x78c9('0x6')));}[_0x78c9('0xd')](_0x193116){if(this[_0x78c9('0xa')][_0x78c9('0xb')](_0x193116[_0x78c9('0x2c')]))return;this[_0x78c9('0xa')][_0x78c9('0x4')](_0x193116['view']),this[_0x78c9('0x12')]['ui'][_0x78c9('0x2b')][_0x78c9('0x4')](_0x193116[_0x78c9('0x2c')][_0x78c9('0x5')]);const _0x1e18f0=this['editor'][_0x78c9('0x16')]['get'](_0x3c0978);this[_0x78c9('0x13')](_0x1e18f0[_0x78c9('0x15')],_0x78c9('0x18'),(_0x9c79c2,_0x4fc0b5)=>{this[_0x78c9('0x12')]['ui']['focusTracker'][_0x78c9('0x18')](_0x4fc0b5['view'][_0x78c9('0x5')]),this[_0x78c9('0xa')]['delete'](_0x4fc0b5[_0x78c9('0x2c')]);});}['hasDomSelection'](){return this[_0x78c9('0x12')][_0x78c9('0x25')][_0x78c9('0x2c')]['hasDomSelection'];}[_0x78c9('0x0')](_0x2f4bef){if('function'!=typeof _0x2f4bef)throw new _0x19ecd4(_0x78c9('0xc'));this['_dataCollectors']['add'](_0x2f4bef);}[_0x78c9('0x1f')](){this[_0x78c9('0x8')](_0x78c9('0x17'));}[_0x78c9('0x19')]({activeAnnotation:_0x26552,annotations:_0x4c0558}){const _0x3a7187=[],_0x37fdc4=this[_0x78c9('0x12')][_0x78c9('0x2')][_0x78c9('0x1b')][_0x78c9('0x9')],_0x37a663=Array[_0x78c9('0x24')](_0x37fdc4[_0x78c9('0x1d')]());for(const [_0x526aac,_0x3b3319]of this[_0x78c9('0xe')]){const _0x3e0940=_0x39379a(_0x3b3319),_0xdfbe3b=_0x4c0558['getByInnerView'](_0x526aac);_0x3e0940&&_0xdfbe3b&&_0x3a7187[_0x78c9('0xf')]({'annotation':_0xdfbe3b,'range':_0x3e0940});}function _0x39379a(_0x241f1e){for(const _0x586170 of _0x241f1e)for(const _0x3c8a99 of _0x37a663)if(_0x586170[_0x78c9('0x26')](_0x3c8a99,!_0x37fdc4[_0x78c9('0x10')]))return _0x586170;return null;}return _0x3a7187[_0x78c9('0x23')]((_0x506ae9,_0x5a7d85)=>{const _0x7ff0be=_0x506ae9['range'],_0x1c8485=_0x5a7d85[_0x78c9('0x11')];if(!_0x7ff0be[_0x78c9('0x1')](_0x1c8485)){if(_0x7ff0be['containsRange'](_0x1c8485,!0x0))return 0x1;if(_0x1c8485[_0x78c9('0x26')](_0x7ff0be,!0x0))return-0x1;}return _0x506ae9[_0x78c9('0x7')]==_0x26552?-0x1:_0x5a7d85[_0x78c9('0x7')]==_0x26552?0x1:0x0;})[_0x78c9('0x2a')](_0x48a725=>_0x48a725[_0x78c9('0x7')]);}get[_0x78c9('0xe')](){const _0x1ca528=new Map();for(const _0x9e5a2e of Array['from'](this['_dataCollectors']))for(const [_0xa16aa0,_0x1a5f33]of _0x9e5a2e())_0x1ca528['set'](_0xa16aa0,_0x1a5f33);return _0x1ca528;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2fea=['_addAnnotationToBalloon','annotations','inlineannotations-detach-not-attached','left','_manuallyClosed','isFocused','viewRangeToDom','plugins','right','_removeAnnotationFromBalloon','document','switchTo','inlineannotations-attach-already-attached','afterInit','_forceRefresh','width','isAttached','collapse','getOrderedSelectedAnnotations','setActiveAnnotation','requires','remove','Esc','update','editing','context','view','getBoundingClientRect','targetRect','listenTo','bottom','delete','register','keystrokes','focus','visibleView','addObserver','mousedown','change:isFocused','push','updatePosition','getByView','includes','_closeAnnotation','destroy','inline','_setSelectedAnnotations','_addedAnnotations','selection','fromRect','find','hasActive','has','_balloon','getClientRects','init','inlineannotations-not-allowed-with-context','isActive','_selectedAnnotations','activeAnnotation','editor','get','focusTracker','blur','_getBalloonTargetForAnnotation','clear','add','length','InlineAnnotations','change:visibleView','refresh','stopListening','top','from','pluginName','detach','set'];(function(_0x8ec61c,_0x2feadf){const _0x41d1a7=function(_0x1d6e9d){while(--_0x1d6e9d){_0x8ec61c['push'](_0x8ec61c['shift']());}};_0x41d1a7(++_0x2feadf);}(_0x2fea,0x89));const _0x41d1=function(_0x8ec61c,_0x2feadf){_0x8ec61c=_0x8ec61c-0x0;let _0x41d1a7=_0x2fea[_0x8ec61c];return _0x41d1a7;};import{Plugin as _0x42f6c6}from'ckeditor5/src/core';import _0xf21110 from'./annotationsuis';import _0x27f501 from'./editorannotations';import{ContextualBalloon as _0x5224ad}from'ckeditor5/src/ui';import{MouseObserver as _0x86ae90}from'ckeditor5/src/engine';import{CKEditorError as _0x2f14f1,Rect as _0x51cea1}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x42f6c6{static get[_0x41d1('0x25')](){return[_0x27f501,_0x5224ad,_0xf21110];}static get[_0x41d1('0xe')](){return _0x41d1('0x8');}constructor(_0x3f2e70){super(_0x3f2e70),_0x3f2e70[_0x41d1('0x29')]['view'][_0x41d1('0x35')](_0x86ae90),this['isAttached']=!0x1,this[_0x41d1('0x10')]('activeAnnotation',null),this['annotations']=null,this[_0x41d1('0x15')]=new Set(),this['_balloon']=_0x3f2e70[_0x41d1('0x18')][_0x41d1('0x1')](_0x5224ad),this[_0x41d1('0x40')]=new Set(),this[_0x41d1('0x4b')]=[],this[_0x41d1('0x1f')]=!0x1;}[_0x41d1('0x48')](){const _0x3eb903=this[_0x41d1('0x0')]['plugins']['get'](_0xf21110);_0x3eb903[_0x41d1('0x2a')]===this['editor']&&(_0x3eb903[_0x41d1('0x31')](_0x41d1('0x3e'),this),this['editor'][_0x41d1('0x32')][_0x41d1('0x10')](_0x41d1('0x27'),(_0x31ca65,_0x3db661)=>{const _0x32d8c0=this[_0x41d1('0x46')];if(this[_0x41d1('0x21')]&&_0x32d8c0[_0x41d1('0x34')]){const _0x42d96e=this['annotations'][_0x41d1('0x3a')](_0x32d8c0[_0x41d1('0x34')]);_0x42d96e&&this['_closeAnnotation'](_0x42d96e),_0x3db661();}}));}[_0x41d1('0x1e')](){const _0x2d5e0b=this[_0x41d1('0x0')][_0x41d1('0x18')][_0x41d1('0x1')](_0xf21110);_0x2d5e0b['context']===this[_0x41d1('0x0')]&&(_0x2d5e0b[_0x41d1('0x44')]()||_0x2d5e0b[_0x41d1('0x1c')](_0x41d1('0x3e')));}[_0x41d1('0x24')](_0x57d02a){_0x57d02a!==this[_0x41d1('0x4c')]&&(this[_0x41d1('0x4c')]&&(this[_0x41d1('0x4c')][_0x41d1('0x4a')]=!0x1),_0x57d02a&&this['editor']['ui'][_0x41d1('0x2')]['isFocused']&&(this['annotations'][_0x41d1('0x45')](_0x57d02a)&&this['_addAnnotationToBalloon'](_0x57d02a,!0x0),_0x57d02a['isActive']=!0x0),_0x57d02a||this[_0x41d1('0x3f')]([]),this[_0x41d1('0x4c')]=_0x57d02a);}['attach'](_0x3b53f3){this['annotations']=_0x3b53f3;const _0x113a71=this[_0x41d1('0x0')][_0x41d1('0x18')]['get'](_0xf21110),_0x2f33ba=this[_0x41d1('0x46')];if(this[_0x41d1('0x21')])throw new _0x2f14f1(_0x41d1('0x1d'),this);if(_0x113a71[_0x41d1('0x2a')]!==this['editor'])throw new _0x2f14f1(_0x41d1('0x49'),this);const _0x206d1c=this[_0x41d1('0x0')][_0x41d1('0x18')][_0x41d1('0x1')](_0x27f501);this[_0x41d1('0x2e')](_0x206d1c,_0x41d1('0xa'),()=>{const _0x4f09fa=_0x206d1c[_0x41d1('0x23')]({'annotations':this[_0x41d1('0x12')],'activeAnnotation':this['activeAnnotation']});var _0x4420e1,_0x523478;!this['_forceRefresh']&&(_0x4420e1=_0x4f09fa,_0x523478=this[_0x41d1('0x4b')],_0x4420e1[_0x41d1('0x7')]===_0x523478[_0x41d1('0x7')]&&_0x4420e1['every'](_0x1cf1c7=>_0x523478[_0x41d1('0x3b')](_0x1cf1c7)))||(this[_0x41d1('0x1f')]=!0x1,this[_0x41d1('0x3f')](_0x4f09fa),this[_0x41d1('0x24')](_0x4f09fa[0x0]||null));}),this[_0x41d1('0x2e')](_0x206d1c,_0x41d1('0x3'),(_0x3f9756,{isAnnotationTracked:_0x1b01b5})=>{this[_0x41d1('0x4c')]&&_0x1b01b5(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this[_0x41d1('0x24')](null));}),this[_0x41d1('0x2e')](this[_0x41d1('0x0')]['ui']['focusTracker'],_0x41d1('0x37'),(_0x5a9b12,_0x5594eb,_0x41bb20)=>{_0x41bb20||this[_0x41d1('0x24')](null);}),this[_0x41d1('0x2e')](_0x3b53f3,'remove',(_0x6c9bde,_0x366724)=>{this[_0x41d1('0x1a')](_0x366724),_0x366724===this[_0x41d1('0x4c')]&&this[_0x41d1('0x24')](null);}),this[_0x41d1('0x2e')](_0x2f33ba,_0x41d1('0x9'),(_0x7f558b,_0x14b319,_0x4394ea,_0x575296)=>{_0x575296&&this[_0x41d1('0xb')](_0x575296);const _0x3f2548=_0x3b53f3['getByView'](_0x4394ea);_0x4394ea&&_0x3f2548&&(this[_0x41d1('0x2e')](_0x4394ea,'change:height',()=>{_0x2f33ba[_0x41d1('0x39')]();}),this['listenTo'](_0x4394ea,'Esc',()=>{this[_0x41d1('0x3c')](_0x3f2548),this[_0x41d1('0x0')][_0x41d1('0x29')][_0x41d1('0x2b')][_0x41d1('0x33')]();}),this['activeAnnotation']!==_0x3f2548&&this[_0x41d1('0x24')](_0x3f2548));}),this['listenTo'](this[_0x41d1('0x0')]['ui'],_0x41d1('0x28'),()=>{_0x2f33ba[_0x41d1('0x34')]&&(_0x3b53f3[_0x41d1('0x3a')](_0x2f33ba[_0x41d1('0x34')])&&_0x2f33ba[_0x41d1('0x39')]());}),this[_0x41d1('0x2e')](this['editor']['editing'][_0x41d1('0x2b')][_0x41d1('0x1b')],_0x41d1('0x36'),()=>{this[_0x41d1('0x1f')]=!0x0,this['_manuallyClosed'][_0x41d1('0x5')]();}),this[_0x41d1('0x0')][_0x41d1('0x29')][_0x41d1('0x2b')][_0x41d1('0x1b')][_0x41d1('0x41')]['editableElement']&&this[_0x41d1('0x0')][_0x41d1('0x29')]['view'][_0x41d1('0x33')](),this[_0x41d1('0x21')]=!0x0;}[_0x41d1('0xf')](){if(!this[_0x41d1('0x21')])throw new _0x2f14f1(_0x41d1('0x13'),this);this['setActiveAnnotation'](null);for(const _0xcdaab9 of this[_0x41d1('0x40')])this['_removeAnnotationFromBalloon'](_0xcdaab9);this[_0x41d1('0xb')](),this[_0x41d1('0x21')]=!0x1,this['annotations']=null;}[_0x41d1('0x3d')](){this[_0x41d1('0x21')]&&this['detach']();}[_0x41d1('0x3f')](_0x49318c){for(const _0x566997 of this[_0x41d1('0x4b')])_0x49318c[_0x41d1('0x3b')](_0x566997)||this[_0x41d1('0x15')][_0x41d1('0x30')](_0x566997);for(const _0x16832c of this[_0x41d1('0x12')])_0x49318c[_0x41d1('0x3b')](_0x16832c)||this[_0x41d1('0x1a')](_0x16832c);if(this[_0x41d1('0x0')]['ui'][_0x41d1('0x2')][_0x41d1('0x16')])for(const _0x49a9b6 of _0x49318c)this[_0x41d1('0x11')](_0x49a9b6);this[_0x41d1('0x4b')]=_0x49318c;}['_addAnnotationToBalloon'](_0x479f58,_0x1ce030=!0x1){this[_0x41d1('0x15')][_0x41d1('0x45')](_0x479f58)||(this[_0x41d1('0x40')][_0x41d1('0x45')](_0x479f58)||this[_0x41d1('0x46')]['hasView'](_0x479f58[_0x41d1('0x2b')])||(this[_0x41d1('0x40')][_0x41d1('0x6')](_0x479f58),this[_0x41d1('0x46')]['add']({'stackId':_0x479f58[_0x41d1('0x2b')]['id'],'view':_0x479f58[_0x41d1('0x2b')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x479f58)}})),_0x1ce030&&this[_0x41d1('0x46')]['showStack'](_0x479f58[_0x41d1('0x2b')]['id']));}[_0x41d1('0x4')](_0x137474){const _0x5c658e=_0x137474['target'],_0x5b2ff1=this['editor']['editing']['view'],_0x3fbcdc=_0x5b2ff1[_0x41d1('0x1b')][_0x41d1('0x41')]['getFirstRange'](),_0x3bebd0=_0x5b2ff1['domConverter'][_0x41d1('0x17')](_0x3fbcdc);if(_0x3bebd0[_0x41d1('0x22')](!0x0),_0x5c658e){if(_0x5c658e instanceof _0x51cea1)return _0x5c658e;let _0x3fcd62=[];for(const _0x556b1e of _0x5c658e)_0x3fcd62[_0x41d1('0x38')](...(_0x58b2aa=_0x556b1e[_0x41d1('0x47')](),Array[_0x41d1('0xd')](_0x58b2aa)['map'](DOMRect[_0x41d1('0x42')])));_0x3fcd62=function(_0x2a2739){const _0x3714a3=[];let _0x55115c=_0x2a2739[0x0];for(let _0x27023b=0x1;_0x27023b<_0x2a2739[_0x41d1('0x7')];_0x27023b++)F(_0x55115c,_0x2a2739[_0x27023b])?_0x55115c['width']+=_0x2a2739[_0x27023b][_0x41d1('0x20')]:(_0x3714a3[_0x41d1('0x38')](_0x55115c),_0x55115c=_0x2a2739[_0x27023b]);return _0x3714a3[_0x41d1('0x38')](_0x55115c),_0x3714a3;}(_0x3fcd62);const _0x36936d=_0x3bebd0[_0x41d1('0x2c')]();return _0x3fcd62[_0x41d1('0x43')](_0x17962e=>_0x17962e[_0x41d1('0xc')]<=_0x36936d[_0x41d1('0xc')]&&_0x17962e[_0x41d1('0x2f')]>=_0x36936d['bottom']&&_0x17962e[_0x41d1('0x14')]<=_0x36936d['left']&&_0x17962e[_0x41d1('0x19')]>=_0x36936d['right'])||_0x3fcd62[0x0];}var _0x58b2aa;return _0x137474[_0x41d1('0x2d')]||_0x3bebd0;}[_0x41d1('0x1a')](_0x1b937c){this[_0x41d1('0x40')][_0x41d1('0x45')](_0x1b937c)&&this[_0x41d1('0x46')]['hasView'](_0x1b937c[_0x41d1('0x2b')])&&(this['_addedAnnotations'][_0x41d1('0x30')](_0x1b937c),this[_0x41d1('0x46')][_0x41d1('0x26')](_0x1b937c['view']));}[_0x41d1('0x3c')](_0x40f52e){this['_manuallyClosed'][_0x41d1('0x6')](_0x40f52e),this[_0x41d1('0x1a')](_0x40f52e);}}function F(_0xc8395f,_0x1863f5){return _0xc8395f[_0x41d1('0xc')]===_0x1863f5[_0x41d1('0xc')]&&_0xc8395f[_0x41d1('0x2f')]===_0x1863f5[_0x41d1('0x2f')]&&_0xc8395f['right']===_0x1863f5[_0x41d1('0x14')];}
23
+ const _0x5b4b=['switchTo','targetRect','set','selection','register','document','getFirstRange','inlineannotations-detach-not-attached','afterInit','_addedAnnotations','inline','updatePosition','hasView','change:height','_forceRefresh','Esc','addObserver','add','stopListening','editableElement','_closeAnnotation','inlineannotations-attach-already-attached','editor','inlineannotations-not-allowed-with-context','_getBalloonTargetForAnnotation','mousedown','remove','InlineAnnotations','has','getByView','viewRangeToDom','get','change:visibleView','editing','collapse','destroy','isFocused','context','push','detach','_removeAnnotationFromBalloon','setActiveAnnotation','requires','_manuallyClosed','keystrokes','length','_selectedAnnotations','getBoundingClientRect','isActive','width','left','plugins','_balloon','target','view','focusTracker','visibleView','blur','change:isFocused','every','isAttached','clear','right','getOrderedSelectedAnnotations','annotations','focus','includes','find','map','delete','_setSelectedAnnotations','bottom','activeAnnotation','refresh','top','listenTo'];(function(_0x5f2fb0,_0x5b4bcd){const _0x10b20e=function(_0x197108){while(--_0x197108){_0x5f2fb0['push'](_0x5f2fb0['shift']());}};_0x10b20e(++_0x5b4bcd);}(_0x5b4b,0x1f4));const _0x10b2=function(_0x5f2fb0,_0x5b4bcd){_0x5f2fb0=_0x5f2fb0-0x0;let _0x10b20e=_0x5b4b[_0x5f2fb0];return _0x10b20e;};import{Plugin as _0x280d0e}from'ckeditor5/src/core';import _0x5f416d from'./annotationsuis';import _0x5bee24 from'./editorannotations';import{ContextualBalloon as _0xac3af}from'ckeditor5/src/ui';import{MouseObserver as _0x398be9}from'ckeditor5/src/engine';import{CKEditorError as _0x5aa2bd,Rect as _0x4db65b}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x280d0e{static get[_0x10b2('0x4a')](){return[_0x5bee24,_0xac3af,_0x5f416d];}static get['pluginName'](){return _0x10b2('0x3b');}constructor(_0x5cad39){super(_0x5cad39),_0x5cad39[_0x10b2('0x41')][_0x10b2('0xa')][_0x10b2('0x30')](_0x398be9),this[_0x10b2('0x10')]=!0x1,this[_0x10b2('0x22')]('activeAnnotation',null),this[_0x10b2('0x14')]=null,this['_manuallyClosed']=new Set(),this[_0x10b2('0x8')]=_0x5cad39[_0x10b2('0x7')][_0x10b2('0x3f')](_0xac3af),this[_0x10b2('0x29')]=new Set(),this[_0x10b2('0x2')]=[],this[_0x10b2('0x2e')]=!0x1;}['init'](){const _0x47580e=this[_0x10b2('0x36')][_0x10b2('0x7')][_0x10b2('0x3f')](_0x5f416d);_0x47580e[_0x10b2('0x45')]===this[_0x10b2('0x36')]&&(_0x47580e[_0x10b2('0x24')](_0x10b2('0x2a'),this),this[_0x10b2('0x36')][_0x10b2('0x0')][_0x10b2('0x22')](_0x10b2('0x2f'),(_0x4abf08,_0x3e60dd)=>{const _0x2605c4=this[_0x10b2('0x8')];if(this[_0x10b2('0x10')]&&_0x2605c4[_0x10b2('0xc')]){const _0x53159e=this[_0x10b2('0x14')][_0x10b2('0x3d')](_0x2605c4[_0x10b2('0xc')]);_0x53159e&&this[_0x10b2('0x34')](_0x53159e),_0x3e60dd();}}));}[_0x10b2('0x28')](){const _0x4f7d4a=this['editor'][_0x10b2('0x7')][_0x10b2('0x3f')](_0x5f416d);_0x4f7d4a[_0x10b2('0x45')]===this[_0x10b2('0x36')]&&(_0x4f7d4a['hasActive']()||_0x4f7d4a[_0x10b2('0x20')](_0x10b2('0x2a')));}[_0x10b2('0x49')](_0x5cac79){_0x5cac79!==this[_0x10b2('0x1c')]&&(this[_0x10b2('0x1c')]&&(this['activeAnnotation'][_0x10b2('0x4')]=!0x1),_0x5cac79&&this[_0x10b2('0x36')]['ui'][_0x10b2('0xb')][_0x10b2('0x44')]&&(this[_0x10b2('0x14')][_0x10b2('0x3c')](_0x5cac79)&&this['_addAnnotationToBalloon'](_0x5cac79,!0x0),_0x5cac79[_0x10b2('0x4')]=!0x0),_0x5cac79||this[_0x10b2('0x1a')]([]),this[_0x10b2('0x1c')]=_0x5cac79);}['attach'](_0xb0b0b1){this[_0x10b2('0x14')]=_0xb0b0b1;const _0x405b0d=this['editor'][_0x10b2('0x7')][_0x10b2('0x3f')](_0x5f416d),_0x28a935=this[_0x10b2('0x8')];if(this['isAttached'])throw new _0x5aa2bd(_0x10b2('0x35'),this);if(_0x405b0d[_0x10b2('0x45')]!==this[_0x10b2('0x36')])throw new _0x5aa2bd(_0x10b2('0x37'),this);const _0x2a5823=this[_0x10b2('0x36')][_0x10b2('0x7')][_0x10b2('0x3f')](_0x5bee24);this['listenTo'](_0x2a5823,_0x10b2('0x1d'),()=>{const _0x152170=_0x2a5823[_0x10b2('0x13')]({'annotations':this[_0x10b2('0x14')],'activeAnnotation':this[_0x10b2('0x1c')]});var _0x230896,_0x5c854f;!this['_forceRefresh']&&(_0x230896=_0x152170,_0x5c854f=this['_selectedAnnotations'],_0x230896[_0x10b2('0x1')]===_0x5c854f[_0x10b2('0x1')]&&_0x230896[_0x10b2('0xf')](_0x1ba95b=>_0x5c854f[_0x10b2('0x16')](_0x1ba95b)))||(this[_0x10b2('0x2e')]=!0x1,this[_0x10b2('0x1a')](_0x152170),this[_0x10b2('0x49')](_0x152170[0x0]||null));}),this[_0x10b2('0x1f')](_0x2a5823,_0x10b2('0xd'),(_0x203f22,{isAnnotationTracked:_0x4dba97})=>{this[_0x10b2('0x1c')]&&_0x4dba97(this[_0x10b2('0x1c')])&&(this[_0x10b2('0x1a')]([]),this[_0x10b2('0x49')](null));}),this[_0x10b2('0x1f')](this['editor']['ui'][_0x10b2('0xb')],_0x10b2('0xe'),(_0x16e63a,_0x2beb9b,_0x38016d)=>{_0x38016d||this[_0x10b2('0x49')](null);}),this[_0x10b2('0x1f')](_0xb0b0b1,_0x10b2('0x3a'),(_0x4f317c,_0x220c0d)=>{this[_0x10b2('0x48')](_0x220c0d),_0x220c0d===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this[_0x10b2('0x1f')](_0x28a935,_0x10b2('0x40'),(_0x50e7b5,_0x27842b,_0x22a42a,_0x5d27e5)=>{_0x5d27e5&&this[_0x10b2('0x32')](_0x5d27e5);const _0xfae5fd=_0xb0b0b1[_0x10b2('0x3d')](_0x22a42a);_0x22a42a&&_0xfae5fd&&(this['listenTo'](_0x22a42a,_0x10b2('0x2d'),()=>{_0x28a935[_0x10b2('0x2b')]();}),this['listenTo'](_0x22a42a,'Esc',()=>{this[_0x10b2('0x34')](_0xfae5fd),this[_0x10b2('0x36')][_0x10b2('0x41')][_0x10b2('0xa')][_0x10b2('0x15')]();}),this[_0x10b2('0x1c')]!==_0xfae5fd&&this[_0x10b2('0x49')](_0xfae5fd));}),this[_0x10b2('0x1f')](this[_0x10b2('0x36')]['ui'],'update',()=>{_0x28a935[_0x10b2('0xc')]&&(_0xb0b0b1[_0x10b2('0x3d')](_0x28a935['visibleView'])&&_0x28a935[_0x10b2('0x2b')]());}),this['listenTo'](this[_0x10b2('0x36')][_0x10b2('0x41')]['view'][_0x10b2('0x25')],_0x10b2('0x39'),()=>{this[_0x10b2('0x2e')]=!0x0,this['_manuallyClosed'][_0x10b2('0x11')]();}),this[_0x10b2('0x36')][_0x10b2('0x41')]['view'][_0x10b2('0x25')][_0x10b2('0x23')][_0x10b2('0x33')]&&this[_0x10b2('0x36')][_0x10b2('0x41')][_0x10b2('0xa')][_0x10b2('0x15')](),this[_0x10b2('0x10')]=!0x0;}[_0x10b2('0x47')](){if(!this[_0x10b2('0x10')])throw new _0x5aa2bd(_0x10b2('0x27'),this);this[_0x10b2('0x49')](null);for(const _0x464a46 of this[_0x10b2('0x29')])this[_0x10b2('0x48')](_0x464a46);this[_0x10b2('0x32')](),this[_0x10b2('0x10')]=!0x1,this['annotations']=null;}[_0x10b2('0x43')](){this['isAttached']&&this[_0x10b2('0x47')]();}[_0x10b2('0x1a')](_0x4413f1){for(const _0x54a55c of this[_0x10b2('0x2')])_0x4413f1[_0x10b2('0x16')](_0x54a55c)||this['_manuallyClosed'][_0x10b2('0x19')](_0x54a55c);for(const _0x1dc01f of this[_0x10b2('0x14')])_0x4413f1[_0x10b2('0x16')](_0x1dc01f)||this[_0x10b2('0x48')](_0x1dc01f);if(this['editor']['ui'][_0x10b2('0xb')][_0x10b2('0x44')])for(const _0x2cb006 of _0x4413f1)this['_addAnnotationToBalloon'](_0x2cb006);this[_0x10b2('0x2')]=_0x4413f1;}['_addAnnotationToBalloon'](_0x452cda,_0x542e3c=!0x1){this['_manuallyClosed'][_0x10b2('0x3c')](_0x452cda)||(this['_addedAnnotations'][_0x10b2('0x3c')](_0x452cda)||this['_balloon'][_0x10b2('0x2c')](_0x452cda['view'])||(this[_0x10b2('0x29')][_0x10b2('0x31')](_0x452cda),this['_balloon'][_0x10b2('0x31')]({'stackId':_0x452cda[_0x10b2('0xa')]['id'],'view':_0x452cda['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x452cda)}})),_0x542e3c&&this[_0x10b2('0x8')]['showStack'](_0x452cda['view']['id']));}[_0x10b2('0x38')](_0x41ec54){const _0x3c6283=_0x41ec54[_0x10b2('0x9')],_0x2e4c7f=this['editor']['editing']['view'],_0x3d5b35=_0x2e4c7f[_0x10b2('0x25')][_0x10b2('0x23')][_0x10b2('0x26')](),_0xbed79c=_0x2e4c7f['domConverter'][_0x10b2('0x3e')](_0x3d5b35);if(_0xbed79c[_0x10b2('0x42')](!0x0),_0x3c6283){if(_0x3c6283 instanceof _0x4db65b)return _0x3c6283;let _0x3e8089=[];for(const _0x1528e2 of _0x3c6283)_0x3e8089[_0x10b2('0x46')](...(_0x252c59=_0x1528e2['getClientRects'](),Array['from'](_0x252c59)[_0x10b2('0x18')](DOMRect['fromRect'])));_0x3e8089=function(_0x590a69){const _0x346148=[];let _0xc4054f=_0x590a69[0x0];for(let _0x332663=0x1;_0x332663<_0x590a69['length'];_0x332663++)F(_0xc4054f,_0x590a69[_0x332663])?_0xc4054f[_0x10b2('0x5')]+=_0x590a69[_0x332663][_0x10b2('0x5')]:(_0x346148[_0x10b2('0x46')](_0xc4054f),_0xc4054f=_0x590a69[_0x332663]);return _0x346148['push'](_0xc4054f),_0x346148;}(_0x3e8089);const _0x59a3e4=_0xbed79c[_0x10b2('0x3')]();return _0x3e8089[_0x10b2('0x17')](_0x1cee00=>_0x1cee00[_0x10b2('0x1e')]<=_0x59a3e4[_0x10b2('0x1e')]&&_0x1cee00[_0x10b2('0x1b')]>=_0x59a3e4[_0x10b2('0x1b')]&&_0x1cee00[_0x10b2('0x6')]<=_0x59a3e4['left']&&_0x1cee00[_0x10b2('0x12')]>=_0x59a3e4[_0x10b2('0x12')])||_0x3e8089[0x0];}var _0x252c59;return _0x41ec54[_0x10b2('0x21')]||_0xbed79c;}[_0x10b2('0x48')](_0x3a0120){this['_addedAnnotations']['has'](_0x3a0120)&&this[_0x10b2('0x8')]['hasView'](_0x3a0120[_0x10b2('0xa')])&&(this[_0x10b2('0x29')][_0x10b2('0x19')](_0x3a0120),this['_balloon'][_0x10b2('0x3a')](_0x3a0120[_0x10b2('0xa')]));}[_0x10b2('0x34')](_0x953698){this[_0x10b2('0x4b')][_0x10b2('0x31')](_0x953698),this[_0x10b2('0x48')](_0x953698);}}function F(_0x31fcbd,_0x8dc93b){return _0x31fcbd[_0x10b2('0x1e')]===_0x8dc93b[_0x10b2('0x1e')]&&_0x31fcbd['bottom']===_0x8dc93b[_0x10b2('0x1b')]&&_0x31fcbd['right']===_0x8dc93b[_0x10b2('0x6')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30db=['mousedown','content','_showBalloon','remove','uiUpdate','attachToDom','destroy','from','defaultPositions','_refreshPositioning','southArrowNorthEast','ready','isVisible','find','set:container','execute','_refreshPositioningDebounced','balloonPanelView','bind','NarrowSidebar','_editorAnnotations','context','register','_destroyEditorAnnotationsIntegration','off','addAnnotation','_updateBalloonPosition','pluginName','_hideBalloon','_setSelectedAnnotations','resize','_attachListeners','northArrowSouthWest','includes','has','unpin','stopPropagation','_detachListeners','setActiveAnnotation','esc','preventClosingBalloon','activeAnnotation','blur','length','change:height','first','EditorAnnotations','requires','pin','bodyCollection','add','type','getSidebarItemView','element','stopListening','low','_manuallyClosedAnnotationViews','plugins','target','hasDomSelection','get','northArrowSouthEast','focusableElements','refresh','locale','clear','_domEmitter','stop','_detachFromContainer','_selectedAnnotations','preventDefault','detach','values','editors','annotations','narrowsidebar-detach-not-attached','view','detachFromDom','keydown','_integrateWithEditorAnnotations','focus','delete','rearrange','cancel','attach','_annotationToNarrowView','_annotations','getOrderedSelectedAnnotations','addEventListener','annotationType','change:container','isAttached','isDirty','number','_attachToContainer','contains','create','listenTo','set','high','removeEventListener','northArrowSouth'];(function(_0x445d4a,_0x30db98){const _0x1f0144=function(_0x52df9e){while(--_0x52df9e){_0x445d4a['push'](_0x445d4a['shift']());}};_0x1f0144(++_0x30db98);}(_0x30db,0x183));const _0x1f01=function(_0x445d4a,_0x30db98){_0x445d4a=_0x445d4a-0x0;let _0x1f0144=_0x30db[_0x445d4a];return _0x1f0144;};import{ContextPlugin as _0x513acb,Context as _0x240c54}from'ckeditor5/src/core';import _0x1b42a3 from'./annotationsuis';import _0x3cc104 from'./sidebar';import _0x4259e3 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x39383a,BodyCollection as _0x1f0228}from'ckeditor5/src/ui';import{CKEditorError as _0x981081,DomEmitterMixin as _0x4e583d,keyCodes as _0x4dd325,Collection as _0x2af6c9}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x4ea0c9}from'lodash-es';import _0x436930 from'./editorannotations';export default class s extends _0x513acb{static get[_0x1f01('0x44')](){return[_0x3cc104,_0x1b42a3];}static get[_0x1f01('0x30')](){return _0x1f01('0x28');}constructor(_0x572a9e){super(_0x572a9e),this['isAttached']=!0x1,this[_0x1f01('0x4d')]=new Set(),this[_0x1f01('0x57')]=Object[_0x1f01('0xf')](_0x4e583d),this['_annotationToNarrowView']=new Map(),this[_0x1f01('0x11')]('activeAnnotation',null),this[_0x1f01('0x5f')]=null,this[_0x1f01('0x5a')]=[],this[_0x1f01('0x29')]=new _0x2af6c9(),this[_0x1f01('0x25')]=_0x4ea0c9(()=>{this[_0x1f01('0x1e')]();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins'][_0x1f01('0x51')](_0x1b42a3)[_0x1f01('0x2b')]('narrowSidebar',this),this['bodyCollection']=new _0x1f0228(this['context'][_0x1f01('0x55')]),this['balloonPanelView']=new _0x39383a(this[_0x1f01('0x2a')]['locale']),this[_0x1f01('0x46')][_0x1f01('0x1a')](),this['bodyCollection'][_0x1f01('0x47')](this[_0x1f01('0x26')]);}[_0x1f01('0x3')](_0x3541fc){this[_0x1f01('0x5f')]=_0x3541fc;const _0x23ef38=this[_0x1f01('0x2a')][_0x1f01('0x4e')][_0x1f01('0x51')](_0x3cc104),_0x47f997=this['balloonPanelView'];if(_0x23ef38[_0x1f01('0x5')]=_0x3541fc,this[_0x1f01('0xa')])throw new _0x981081('narrowsidebar-attach-already-attached',this);this[_0x1f01('0xa')]=!0x0,this[_0x1f01('0x10')](_0x23ef38,_0x1f01('0x23'),()=>{this[_0x1f01('0x5c')](),this[_0x1f01('0x10')](_0x23ef38,_0x1f01('0x9'),_0x2d956e=>{_0x2d956e[_0x1f01('0x2d')](),this[_0x1f01('0x3')](_0x3541fc);});}),_0x23ef38[_0x1f01('0xd')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x17bfe8=_0x1eab12=>{const _0x2f8447=new _0x4259e3(this[_0x1f01('0x2a')][_0x1f01('0x55')]);_0x23ef38[_0x1f01('0x2e')](_0x1eab12,_0x2f8447),this[_0x1f01('0x4')]['set'](_0x1eab12,_0x2f8447),_0x2f8447[_0x1f01('0x27')](_0x1f01('0xb'),_0x1f01('0x8'),_0x1f01('0xc'))['to'](_0x1eab12[_0x1f01('0x61')],_0x1f01('0xb'),_0x1f01('0x48'),_0x1f01('0x40')),_0x2f8447['on'](_0x1f01('0x24'),()=>{this[_0x1f01('0x4d')][_0x1f01('0x56')](),_0x47f997['content'][_0x1f01('0x42')]!==_0x1eab12[_0x1f01('0x61')]?(this[_0x1f01('0x17')](_0x1eab12),_0x1eab12['view']['element'][_0x1f01('0x65')](),this['setActiveAnnotation'](_0x1eab12)):this[_0x1f01('0x3b')](null);});};for(const _0x35d4fe of _0x3541fc)_0x17bfe8(_0x35d4fe);this[_0x1f01('0x10')](_0x3541fc,_0x1f01('0x47'),(_0x43603f,_0x17670a)=>{_0x17bfe8(_0x17670a);}),this[_0x1f01('0x10')](_0x3541fc,_0x1f01('0x18'),(_0x370a85,_0x4995e6,_0xb0c7ad)=>{this[_0x1f01('0x4')][_0x1f01('0x51')](_0x4995e6)[_0x1f01('0x1b')](),this[_0x1f01('0x4')][_0x1f01('0x0')](_0x4995e6),_0x23ef38[_0x1f01('0x1')]({'removedAnnotation':_0x4995e6,'previousAnnotation':_0x3541fc[_0x1f01('0x51')](_0xb0c7ad-0x1),'nextAnnotation':_0x3541fc[_0x1f01('0x51')](_0xb0c7ad+0x1)}),_0x4995e6===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':_0x1f01('0x4c')}),this[_0x1f01('0x10')](_0x3541fc,_0x1f01('0x65'),(_0x1ec5e3,_0x1d83ec)=>{this[_0x1f01('0x3b')](_0x1d83ec);}),this[_0x1f01('0x10')](_0x3541fc,'blur',()=>{this[_0x1f01('0x3b')](null);}),this[_0x1f01('0x57')][_0x1f01('0x10')](document,_0x1f01('0x63'),(_0x5285a1,_0x4f49a3)=>{_0x4f49a3['keyCode']===_0x4dd325[_0x1f01('0x3c')]&&_0x47f997[_0x1f01('0x21')]&&(this[_0x1f01('0x4d')][_0x1f01('0x47')](_0x47f997[_0x1f01('0x16')][_0x1f01('0x42')]),this[_0x1f01('0x31')](),_0x4f49a3[_0x1f01('0x39')](),_0x4f49a3[_0x1f01('0x5b')]());}),this['_domEmitter']['listenTo'](document,_0x1f01('0x15'),(_0x42e4f5,_0x198ce5)=>{const _0x52738b=_0x198ce5['target'];_0x47f997[_0x1f01('0x21')]&&_0x47f997[_0x1f01('0x4a')][_0x1f01('0xe')](_0x52738b)||_0x23ef38[_0x1f01('0x61')][_0x1f01('0x4a')][_0x1f01('0xe')](_0x52738b)||_0x42e4f5[_0x1f01('0x3d')]||this[_0x1f01('0x3e')]&&this[_0x1f01('0x3e')][_0x1f01('0x53')][_0x1f01('0x22')](_0x28ea04=>_0x28ea04[_0x1f01('0xe')](_0x52738b))||(this[_0x1f01('0x4d')]['clear'](),this[_0x1f01('0x31')](),this[_0x1f01('0x3b')](null));});const _0x4649be=this['context']instanceof _0x240c54?this[_0x1f01('0x2a')][_0x1f01('0x5e')]:new _0x2af6c9([this[_0x1f01('0x2a')]]);for(const _0x3a273d of _0x4649be)this[_0x1f01('0x64')](_0x3a273d);this[_0x1f01('0x10')](_0x4649be,_0x1f01('0x47'),(_0x35c143,_0x48d20b)=>{this[_0x1f01('0x10')](_0x48d20b,_0x1f01('0x20'),()=>{this[_0x1f01('0x64')](_0x48d20b);});}),this[_0x1f01('0x10')](_0x4649be,_0x1f01('0x18'),(_0x75bbe,_0x42df06)=>{_0x42df06[_0x1f01('0x4e')][_0x1f01('0x37')]('EditorAnnotations')&&this[_0x1f01('0x2c')](_0x42df06[_0x1f01('0x4e')][_0x1f01('0x51')](_0x1f01('0x43')));}),window[_0x1f01('0x7')](_0x1f01('0x33'),this[_0x1f01('0x25')]),this[_0x1f01('0x1e')]();}[_0x1f01('0x3b')](_0x1f6b54){if(_0x1f6b54===this[_0x1f01('0x3e')])return;const _0x388d6b=this[_0x1f01('0x2a')][_0x1f01('0x4e')][_0x1f01('0x51')](_0x3cc104);if(_0x388d6b['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x1f6b54,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1f6b54)_0x388d6b[_0x1f01('0x49')](_0x1f6b54)?this['_showBalloon'](_0x1f6b54):this[_0x1f01('0x31')]();else this[_0x1f01('0x31')]();this[_0x1f01('0x3e')]=_0x1f6b54;}[_0x1f01('0x5c')](){if(!this[_0x1f01('0xa')])throw new _0x981081(_0x1f01('0x60'),this);this[_0x1f01('0x3b')](null);const _0xc813fb=this[_0x1f01('0x2a')][_0x1f01('0x4e')][_0x1f01('0x51')](_0x3cc104);this[_0x1f01('0x31')](),Array['from'](this['_annotationToNarrowView'][_0x1f01('0x5d')](),_0x3cb204=>_0x3cb204['destroy']()),this[_0x1f01('0x4')][_0x1f01('0x56')](),_0xc813fb[_0x1f01('0x59')](this[_0x1f01('0x5f')]),this[_0x1f01('0x4b')](),this[_0x1f01('0x57')][_0x1f01('0x4b')](),this[_0x1f01('0x2a')]instanceof _0x240c54&&this[_0x1f01('0x4b')](this[_0x1f01('0x2a')]['editors']);for(const _0x39befa of Array[_0x1f01('0x1c')](this[_0x1f01('0x29')]))this['_destroyEditorAnnotationsIntegration'](_0x39befa);window[_0x1f01('0x13')]('resize',this[_0x1f01('0x25')]),this[_0x1f01('0x25')][_0x1f01('0x2')](),this['_selectedAnnotations']=[],this[_0x1f01('0xa')]=!0x1,this[_0x1f01('0x5f')]=null;}['destroy'](){this['isAttached']&&this['detach'](),this[_0x1f01('0x46')][_0x1f01('0x62')]();}[_0x1f01('0x64')](_0xd67e0d){const _0x197022=_0xd67e0d['plugins'][_0x1f01('0x51')](_0x436930),_0x45f9e5=this[_0x1f01('0x2a')][_0x1f01('0x4e')][_0x1f01('0x51')](_0x3cc104),_0x2b7c49=this[_0x1f01('0x5f')],_0x41f328=this['balloonPanelView'],_0x4fc524=()=>{const _0x220f90=_0x197022[_0x1f01('0x6')]({'annotations':this[_0x1f01('0x5f')],'activeAnnotation':this['activeAnnotation']});this[_0x1f01('0x32')](_0x220f90),this[_0x1f01('0x3b')](_0x220f90[0x0]||null);};this[_0x1f01('0x10')](_0x197022,_0x1f01('0x54'),_0x4fc524),this[_0x1f01('0x10')](_0x197022,_0x1f01('0x3f'),(_0x25baf2,{isAnnotationTracked:_0x38bdf1})=>{this['activeAnnotation']&&_0x38bdf1(this[_0x1f01('0x3e')])&&(this[_0x1f01('0x32')]([]),this['setActiveAnnotation'](null));}),this[_0x1f01('0x10')](_0x197022,_0x1f01('0x19'),()=>{this['_refreshPositioningDebounced']();}),this[_0x1f01('0x10')](_0x2b7c49,_0x1f01('0x3f'),_0x3768d9=>{_0x197022['hasDomSelection']()&&_0x3768d9[_0x1f01('0x58')]();},{'priority':'high'}),this[_0x1f01('0x10')](this[_0x1f01('0x57')],_0x1f01('0x15'),(_0x1aac02,_0x3e26b9)=>{const _0x3b237d=_0x3e26b9[_0x1f01('0x4f')];_0x41f328[_0x1f01('0x21')]&&_0x41f328[_0x1f01('0x4a')][_0x1f01('0xe')](_0x3b237d)||_0x45f9e5[_0x1f01('0x61')][_0x1f01('0x4a')]['contains'](_0x3b237d)||this[_0x1f01('0x3e')]&&_0x197022[_0x1f01('0x50')]()&&(_0x4fc524(),_0x1aac02[_0x1f01('0x3d')]=!0x0);},{'priority':_0x1f01('0x12')}),this['_editorAnnotations']['add'](_0x197022);}['_destroyEditorAnnotationsIntegration'](_0x4850a5){_0x4850a5&&(this[_0x1f01('0x4b')](_0x4850a5),this[_0x1f01('0x29')][_0x1f01('0x18')](_0x4850a5));}[_0x1f01('0x32')](_0x31afac){for(const _0x332948 of this['_selectedAnnotations'])_0x31afac[_0x1f01('0x36')](_0x332948)||this[_0x1f01('0x4d')]['delete'](_0x332948['view']);this[_0x1f01('0x5a')]=_0x31afac;}[_0x1f01('0x1e')](){const _0x30725a=this[_0x1f01('0x26')];this['annotations']['refreshPositioning'](),_0x30725a[_0x1f01('0x21')]&&this[_0x1f01('0x2f')]();}[_0x1f01('0x17')](_0x5aa7e1){if(this[_0x1f01('0x4d')][_0x1f01('0x37')](_0x5aa7e1[_0x1f01('0x61')]))return;const _0x3088a2=this[_0x1f01('0x26')][_0x1f01('0x16')][_0x1f01('0x42')];_0x3088a2!==_0x5aa7e1[_0x1f01('0x61')]?(_0x3088a2&&this[_0x1f01('0x3a')](_0x3088a2),this[_0x1f01('0x34')](_0x5aa7e1[_0x1f01('0x61')]),this[_0x1f01('0x26')][_0x1f01('0x16')][_0x1f01('0x56')](),this[_0x1f01('0x26')][_0x1f01('0x16')][_0x1f01('0x47')](_0x5aa7e1[_0x1f01('0x61')]),this[_0x1f01('0x2f')]()):this[_0x1f01('0x2f')]();}[_0x1f01('0x2f')](){const _0x1c1662=this[_0x1f01('0x26')]['content'][_0x1f01('0x42')],_0x57352c=_0x1c1662&&this['annotations']['getByView'](_0x1c1662);if(!_0x57352c||!this[_0x1f01('0x4')][_0x1f01('0x37')](_0x57352c))return;const _0x58a691=this[_0x1f01('0x4')][_0x1f01('0x51')](_0x57352c)[_0x1f01('0x4a')],_0x4fc7d1=function(){const _0x3402b4=_0x39383a[_0x1f01('0x1d')];return[_0x3402b4[_0x1f01('0x1f')],_0x3402b4[_0x1f01('0x52')],_0x3402b4['southArrowNorth'],_0x3402b4[_0x1f01('0x14')],_0x3402b4['southArrowNorthWest'],_0x3402b4[_0x1f01('0x35')]];}();this[_0x1f01('0x26')][_0x1f01('0x45')]({'target':_0x58a691,'positions':_0x4fc7d1});}[_0x1f01('0x31')](){const _0x395e8a=this[_0x1f01('0x26')],_0x5c7e81=_0x395e8a[_0x1f01('0x16')][_0x1f01('0x42')];_0x5c7e81&&(this[_0x1f01('0x3a')](_0x5c7e81),_0x395e8a[_0x1f01('0x38')](),_0x395e8a[_0x1f01('0x16')][_0x1f01('0x56')]());}['_attachListeners'](_0x2733b5){this[_0x1f01('0x10')](_0x2733b5,_0x1f01('0x41'),()=>this[_0x1f01('0x2f')]()),this[_0x1f01('0x10')](_0x2733b5,'Esc',(_0x8404f2,_0x1e09d3)=>{this[_0x1f01('0x4d')][_0x1f01('0x47')](_0x2733b5),this['_hideBalloon'](),_0x1e09d3();});}['_detachListeners'](_0x7d520d){this[_0x1f01('0x4b')](_0x7d520d);}}
23
+ const _0x2f83=['plugins','target','setActiveAnnotation','view','delete','refreshPositioning','clear','northArrowSouthEast','isVisible','listenTo','execute','values','preventClosingBalloon','_refreshPositioningDebounced','off','has','first','_updateBalloonPosition','from','length','_editorAnnotations','high','find','blur','Esc','_manuallyClosedAnnotationViews','set','content','low','addAnnotation','getOrderedSelectedAnnotations','activeAnnotation','stopListening','mousedown','_detachListeners','_attachListeners','change:container','editors','requires','EditorAnnotations','unpin','attachToDom','remove','hasDomSelection','keydown','NarrowSidebar','defaultPositions','change:height','type','attach','get','locale','_domEmitter','annotations','register','narrowsidebar-attach-already-attached','refresh','northArrowSouthWest','context','init','focus','getSidebarItemView','addEventListener','_integrateWithEditorAnnotations','create','isDirty','annotationType','ck-sidebar--narrow','southArrowNorthWest','detach','pin','resize','cancel','bodyCollection','southArrowNorth','rearrange','southArrowNorthEast','element','_refreshPositioning','stopPropagation','_setSelectedAnnotations','isAttached','_hideBalloon','_selectedAnnotations','uiUpdate','destroy','_destroyEditorAnnotationsIntegration','_showBalloon','detachFromDom','_annotationToNarrowView','number','includes','_annotations','add','balloonPanelView','contains'];(function(_0x396390,_0x2f83e3){const _0x406646=function(_0x460aa2){while(--_0x460aa2){_0x396390['push'](_0x396390['shift']());}};_0x406646(++_0x2f83e3);}(_0x2f83,0x155));const _0x4066=function(_0x396390,_0x2f83e3){_0x396390=_0x396390-0x0;let _0x406646=_0x2f83[_0x396390];return _0x406646;};import{ContextPlugin as _0x5f41cb,Context as _0x1ea3ea}from'ckeditor5/src/core';import _0x1f6810 from'./annotationsuis';import _0x17c80e from'./sidebar';import _0x246f1c from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x5b6ed3,BodyCollection as _0x462a07}from'ckeditor5/src/ui';import{CKEditorError as _0x457b23,DomEmitterMixin as _0x4b75d3,keyCodes as _0x48e861,Collection as _0x31685e}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x20cf74}from'lodash-es';import _0x4a59f4 from'./editorannotations';export default class s extends _0x5f41cb{static get[_0x4066('0x51')](){return[_0x17c80e,_0x1f6810];}static get['pluginName'](){return _0x4066('0x58');}constructor(_0x2ccba9){super(_0x2ccba9),this[_0x4066('0x1c')]=!0x1,this[_0x4066('0x44')]=new Set(),this['_domEmitter']=Object[_0x4066('0xb')](_0x4b75d3),this['_annotationToNarrowView']=new Map(),this['set'](_0x4066('0x4a'),null),this[_0x4066('0x0')]=null,this['_selectedAnnotations']=[],this[_0x4066('0x3f')]=new _0x31685e(),this[_0x4066('0x38')]=_0x20cf74(()=>{this[_0x4066('0x19')]();},0xfa,{'leading':!0x1});}[_0x4066('0x6')](){this['context'][_0x4066('0x2b')][_0x4066('0x5d')](_0x1f6810)[_0x4066('0x1')]('narrowSidebar',this),this[_0x4066('0x14')]=new _0x462a07(this[_0x4066('0x5')][_0x4066('0x5e')]),this[_0x4066('0x29')]=new _0x5b6ed3(this[_0x4066('0x5')][_0x4066('0x5e')]),this[_0x4066('0x14')][_0x4066('0x54')](),this[_0x4066('0x14')][_0x4066('0x28')](this[_0x4066('0x29')]);}[_0x4066('0x5c')](_0x3b2ec6){this[_0x4066('0x0')]=_0x3b2ec6;const _0x5c16e1=this[_0x4066('0x5')][_0x4066('0x2b')][_0x4066('0x5d')](_0x17c80e),_0x2c53ca=this['balloonPanelView'];if(_0x5c16e1[_0x4066('0x27')]=_0x3b2ec6,this[_0x4066('0x1c')])throw new _0x457b23(_0x4066('0x2'),this);this[_0x4066('0x1c')]=!0x0,this[_0x4066('0x34')](_0x5c16e1,'set:container',()=>{this[_0x4066('0x10')](),this[_0x4066('0x34')](_0x5c16e1,_0x4066('0x4f'),_0x11b453=>{_0x11b453[_0x4066('0x39')](),this['attach'](_0x3b2ec6);});}),_0x5c16e1['_attachToContainer']({'viewClass':_0x4066('0xe'),'spaceBetweenItems':0x5});const _0x3115d7=_0x1275af=>{const _0x6626aa=new _0x246f1c(this['context']['locale']);_0x5c16e1[_0x4066('0x48')](_0x1275af,_0x6626aa),this[_0x4066('0x24')][_0x4066('0x45')](_0x1275af,_0x6626aa),_0x6626aa['bind'](_0x4066('0xc'),_0x4066('0xd'),_0x4066('0x25'))['to'](_0x1275af[_0x4066('0x2e')],'isDirty',_0x4066('0x5b'),_0x4066('0x3e')),_0x6626aa['on'](_0x4066('0x35'),()=>{this[_0x4066('0x44')][_0x4066('0x31')](),_0x2c53ca[_0x4066('0x46')][_0x4066('0x3b')]!==_0x1275af['view']?(this[_0x4066('0x22')](_0x1275af),_0x1275af[_0x4066('0x2e')][_0x4066('0x18')][_0x4066('0x7')](),this[_0x4066('0x2d')](_0x1275af)):this[_0x4066('0x2d')](null);});};for(const _0x1b15da of _0x3b2ec6)_0x3115d7(_0x1b15da);this[_0x4066('0x34')](_0x3b2ec6,_0x4066('0x28'),(_0x57b4ba,_0x3c9349)=>{_0x3115d7(_0x3c9349);}),this[_0x4066('0x34')](_0x3b2ec6,_0x4066('0x55'),(_0x3e4a5f,_0x340487,_0x16e81d)=>{this['_annotationToNarrowView']['get'](_0x340487)[_0x4066('0x20')](),this[_0x4066('0x24')][_0x4066('0x2f')](_0x340487),_0x5c16e1[_0x4066('0x16')]({'removedAnnotation':_0x340487,'previousAnnotation':_0x3b2ec6[_0x4066('0x5d')](_0x16e81d-0x1),'nextAnnotation':_0x3b2ec6['get'](_0x16e81d+0x1)}),_0x340487===this[_0x4066('0x4a')]&&this[_0x4066('0x2d')](null);},{'priority':_0x4066('0x47')}),this['listenTo'](_0x3b2ec6,'focus',(_0x1ffe03,_0xf80bd)=>{this[_0x4066('0x2d')](_0xf80bd);}),this[_0x4066('0x34')](_0x3b2ec6,'blur',()=>{this[_0x4066('0x2d')](null);}),this[_0x4066('0x5f')]['listenTo'](document,_0x4066('0x57'),(_0x20dd2e,_0x3522f3)=>{_0x3522f3['keyCode']===_0x48e861['esc']&&_0x2c53ca[_0x4066('0x33')]&&(this['_manuallyClosedAnnotationViews'][_0x4066('0x28')](_0x2c53ca[_0x4066('0x46')][_0x4066('0x3b')]),this['_hideBalloon'](),_0x3522f3[_0x4066('0x1a')](),_0x3522f3['preventDefault']());}),this[_0x4066('0x5f')]['listenTo'](document,_0x4066('0x4c'),(_0x430f3d,_0x3124de)=>{const _0x5a629f=_0x3124de[_0x4066('0x2c')];_0x2c53ca['isVisible']&&_0x2c53ca[_0x4066('0x18')][_0x4066('0x2a')](_0x5a629f)||_0x5c16e1['view']['element'][_0x4066('0x2a')](_0x5a629f)||_0x430f3d[_0x4066('0x37')]||this['activeAnnotation']&&this[_0x4066('0x4a')]['focusableElements'][_0x4066('0x41')](_0x540c0f=>_0x540c0f[_0x4066('0x2a')](_0x5a629f))||(this[_0x4066('0x44')][_0x4066('0x31')](),this[_0x4066('0x1d')](),this[_0x4066('0x2d')](null));});const _0x38a24e=this[_0x4066('0x5')]instanceof _0x1ea3ea?this[_0x4066('0x5')][_0x4066('0x50')]:new _0x31685e([this[_0x4066('0x5')]]);for(const _0x3c2629 of _0x38a24e)this['_integrateWithEditorAnnotations'](_0x3c2629);this[_0x4066('0x34')](_0x38a24e,_0x4066('0x28'),(_0x4c9929,_0x210ffc)=>{this[_0x4066('0x34')](_0x210ffc,'ready',()=>{this[_0x4066('0xa')](_0x210ffc);});}),this['listenTo'](_0x38a24e,_0x4066('0x55'),(_0x15e24a,_0x17fbb6)=>{_0x17fbb6[_0x4066('0x2b')][_0x4066('0x3a')](_0x4066('0x52'))&&this[_0x4066('0x21')](_0x17fbb6[_0x4066('0x2b')][_0x4066('0x5d')]('EditorAnnotations'));}),window[_0x4066('0x9')](_0x4066('0x12'),this['_refreshPositioningDebounced']),this[_0x4066('0x19')]();}[_0x4066('0x2d')](_0x2877c9){if(_0x2877c9===this[_0x4066('0x4a')])return;const _0x5c1590=this['context'][_0x4066('0x2b')]['get'](_0x17c80e);if(_0x5c1590[_0x4066('0x3')]({'blurredAnnotation':this[_0x4066('0x4a')],'activatedAnnotation':_0x2877c9,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2877c9)_0x5c1590[_0x4066('0x8')](_0x2877c9)?this['_showBalloon'](_0x2877c9):this[_0x4066('0x1d')]();else this[_0x4066('0x1d')]();this['activeAnnotation']=_0x2877c9;}[_0x4066('0x10')](){if(!this['isAttached'])throw new _0x457b23('narrowsidebar-detach-not-attached',this);this[_0x4066('0x2d')](null);const _0x40a9c8=this['context'][_0x4066('0x2b')][_0x4066('0x5d')](_0x17c80e);this[_0x4066('0x1d')](),Array[_0x4066('0x3d')](this[_0x4066('0x24')][_0x4066('0x36')](),_0x5ca3ba=>_0x5ca3ba[_0x4066('0x20')]()),this['_annotationToNarrowView'][_0x4066('0x31')](),_0x40a9c8['_detachFromContainer'](this[_0x4066('0x0')]),this[_0x4066('0x4b')](),this[_0x4066('0x5f')][_0x4066('0x4b')](),this['context']instanceof _0x1ea3ea&&this[_0x4066('0x4b')](this['context']['editors']);for(const _0x3cde1e of Array[_0x4066('0x3d')](this[_0x4066('0x3f')]))this[_0x4066('0x21')](_0x3cde1e);window['removeEventListener'](_0x4066('0x12'),this['_refreshPositioningDebounced']),this[_0x4066('0x38')][_0x4066('0x13')](),this[_0x4066('0x1e')]=[],this[_0x4066('0x1c')]=!0x1,this[_0x4066('0x0')]=null;}[_0x4066('0x20')](){this[_0x4066('0x1c')]&&this[_0x4066('0x10')](),this[_0x4066('0x14')][_0x4066('0x23')]();}[_0x4066('0xa')](_0x5e6f99){const _0x242e5a=_0x5e6f99[_0x4066('0x2b')][_0x4066('0x5d')](_0x4a59f4),_0x1a5bdc=this[_0x4066('0x5')][_0x4066('0x2b')]['get'](_0x17c80e),_0xa720db=this[_0x4066('0x0')],_0x402fb9=this['balloonPanelView'],_0xfe09f7=()=>{const _0xb88b98=_0x242e5a[_0x4066('0x49')]({'annotations':this[_0x4066('0x0')],'activeAnnotation':this[_0x4066('0x4a')]});this[_0x4066('0x1b')](_0xb88b98),this[_0x4066('0x2d')](_0xb88b98[0x0]||null);};this[_0x4066('0x34')](_0x242e5a,_0x4066('0x3'),_0xfe09f7),this[_0x4066('0x34')](_0x242e5a,_0x4066('0x42'),(_0x13b642,{isAnnotationTracked:_0xa3411a})=>{this[_0x4066('0x4a')]&&_0xa3411a(this[_0x4066('0x4a')])&&(this[_0x4066('0x1b')]([]),this[_0x4066('0x2d')](null));}),this[_0x4066('0x34')](_0x242e5a,_0x4066('0x1f'),()=>{this[_0x4066('0x38')]();}),this[_0x4066('0x34')](_0xa720db,'blur',_0x2e9864=>{_0x242e5a[_0x4066('0x56')]()&&_0x2e9864['stop']();},{'priority':_0x4066('0x40')}),this[_0x4066('0x34')](this['_domEmitter'],_0x4066('0x4c'),(_0x37ae39,_0x5a9af3)=>{const _0x2930da=_0x5a9af3['target'];_0x402fb9[_0x4066('0x33')]&&_0x402fb9[_0x4066('0x18')][_0x4066('0x2a')](_0x2930da)||_0x1a5bdc['view']['element'][_0x4066('0x2a')](_0x2930da)||this[_0x4066('0x4a')]&&_0x242e5a[_0x4066('0x56')]()&&(_0xfe09f7(),_0x37ae39['preventClosingBalloon']=!0x0);},{'priority':_0x4066('0x40')}),this[_0x4066('0x3f')]['add'](_0x242e5a);}[_0x4066('0x21')](_0x4a31f0){_0x4a31f0&&(this['stopListening'](_0x4a31f0),this[_0x4066('0x3f')][_0x4066('0x55')](_0x4a31f0));}['_setSelectedAnnotations'](_0x270b70){for(const _0x5935e6 of this[_0x4066('0x1e')])_0x270b70[_0x4066('0x26')](_0x5935e6)||this[_0x4066('0x44')]['delete'](_0x5935e6[_0x4066('0x2e')]);this[_0x4066('0x1e')]=_0x270b70;}[_0x4066('0x19')](){const _0x422a15=this[_0x4066('0x29')];this[_0x4066('0x0')][_0x4066('0x30')](),_0x422a15[_0x4066('0x33')]&&this[_0x4066('0x3c')]();}['_showBalloon'](_0x5eb24b){if(this[_0x4066('0x44')][_0x4066('0x3a')](_0x5eb24b['view']))return;const _0x3351cb=this[_0x4066('0x29')][_0x4066('0x46')][_0x4066('0x3b')];_0x3351cb!==_0x5eb24b[_0x4066('0x2e')]?(_0x3351cb&&this[_0x4066('0x4d')](_0x3351cb),this[_0x4066('0x4e')](_0x5eb24b[_0x4066('0x2e')]),this['balloonPanelView'][_0x4066('0x46')][_0x4066('0x31')](),this[_0x4066('0x29')]['content'][_0x4066('0x28')](_0x5eb24b[_0x4066('0x2e')]),this[_0x4066('0x3c')]()):this[_0x4066('0x3c')]();}[_0x4066('0x3c')](){const _0x54bf75=this[_0x4066('0x29')][_0x4066('0x46')][_0x4066('0x3b')],_0x30f378=_0x54bf75&&this['annotations']['getByView'](_0x54bf75);if(!_0x30f378||!this[_0x4066('0x24')][_0x4066('0x3a')](_0x30f378))return;const _0x47bc50=this[_0x4066('0x24')][_0x4066('0x5d')](_0x30f378)[_0x4066('0x18')],_0x3ddf1c=function(){const _0x22d03b=_0x5b6ed3[_0x4066('0x59')];return[_0x22d03b[_0x4066('0x17')],_0x22d03b[_0x4066('0x32')],_0x22d03b[_0x4066('0x15')],_0x22d03b['northArrowSouth'],_0x22d03b[_0x4066('0xf')],_0x22d03b[_0x4066('0x4')]];}();this[_0x4066('0x29')][_0x4066('0x11')]({'target':_0x47bc50,'positions':_0x3ddf1c});}[_0x4066('0x1d')](){const _0x51d814=this[_0x4066('0x29')],_0x478cbd=_0x51d814['content'][_0x4066('0x3b')];_0x478cbd&&(this[_0x4066('0x4d')](_0x478cbd),_0x51d814[_0x4066('0x53')](),_0x51d814[_0x4066('0x46')][_0x4066('0x31')]());}[_0x4066('0x4e')](_0x24efb3){this['listenTo'](_0x24efb3,_0x4066('0x5a'),()=>this[_0x4066('0x3c')]()),this[_0x4066('0x34')](_0x24efb3,_0x4066('0x43'),(_0x18d7f7,_0xc9cc03)=>{this[_0x4066('0x44')][_0x4066('0x28')](_0x24efb3),this[_0x4066('0x1d')](),_0xc9cc03();});}[_0x4066('0x4d')](_0x3c302c){this[_0x4066('0x4b')](_0x3c302c);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x28da=['height','_destroySidebarItemView','init','target','change:targetRect','_alignAfterItem','_getMaxAvailableTop','bind','_annotationToSidebarItemView','_alignToTargetRect','appendChild','view','nodeType','_recalculate','sidebar-attachtocontainer-missing-container','_updateLastItem','push','_alignForBottomChange','stopListening','element','isActive','isAnimationDisabled','delete','change:top','_setItemTop','last','top','define','_alignForTopChange','_recalculateBuffer','clear','_getItemAfter','getSidebarItemView','_createSidebarView','_spaceBetweenItems','_attachToContainer','_getItemBefore','set','_annotations','config','sidebar.preventScrollOutOfView','bottom','_sidebarItemViewToAnnotation','object','content','get','pluginName','destroy','max','updateHeight','setContainer','addAnnotation','length','unbind','listenTo','_alignBeforeItem','minHeight','_activeAnnotation','list','Sidebar','remove','class','add','change:bottom','locale','_targetTop','getIndex','_getTargetTop','_lastItem','rearrange','context','container'];(function(_0x1935cd,_0x28dada){const _0x10169b=function(_0x560ef5){while(--_0x560ef5){_0x1935cd['push'](_0x1935cd['shift']());}};_0x10169b(++_0x28dada);}(_0x28da,0xcd));const _0x1016=function(_0x1935cd,_0x28dada){_0x1935cd=_0x1935cd-0x0;let _0x10169b=_0x28da[_0x1935cd];return _0x10169b;};import{ContextPlugin as _0x2f831f}from'ckeditor5/src/core';import{Rect as _0x4bba25,CKEditorError as _0x43aa5f}from'ckeditor5/src/utils';import _0x590e83 from'./view/sidebarview';import _0x4614a0 from'./view/sidebaritemview';export default class z extends _0x2f831f{static get[_0x1016('0x39')](){return _0x1016('0x46');}constructor(_0x12aced){super(_0x12aced),this[_0x1016('0x30')](_0x1016('0x7'),void 0x0),this['view']=this['_createSidebarView'](),this['set'](_0x1016('0xa'),null),this[_0x1016('0x2d')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x1016('0x13')]=new Map(),this['context'][_0x1016('0x32')][_0x1016('0x26')](_0x1016('0x33'),!0x1),this[_0x1016('0x31')]=null,this['_activeAnnotation']=null,this[_0x1016('0x28')]=[];}[_0x1016('0xd')](){const _0x3f8efa=this[_0x1016('0x9')][_0x1016('0x32')][_0x1016('0x38')]('sidebar.container');_0x3f8efa&&this[_0x1016('0x3d')](_0x3f8efa);}[_0x1016('0x3d')](_0x210894){if(!y(_0x210894))throw new _0x43aa5f('sidebar-setcontainer-invalid-element');this[_0x1016('0xa')]=_0x210894;}[_0x1016('0x2e')]({viewClass:_0x5a1ebe='',spaceBetweenItems:_0x4f3cb1=0x19}={}){if(!y(this[_0x1016('0xa')]))throw new _0x43aa5f(_0x1016('0x19'),this);this[_0x1016('0xa')][_0x1016('0x15')](this[_0x1016('0x16')]['element']),this[_0x1016('0x16')][_0x1016('0x0')]=_0x5a1ebe,this['_spaceBetweenItems']=_0x4f3cb1;}[_0x1016('0x8')]({removedAnnotation:_0x2dbf41,previousAnnotation:_0x52e668,nextAnnotation:_0x45c5e9}){const _0x5a25c5=this[_0x1016('0x2b')](_0x2dbf41);this[_0x1016('0x16')][_0x1016('0x45')][_0x1016('0x47')](_0x5a25c5),this[_0x1016('0xc')](_0x2dbf41),_0x52e668&&this[_0x1016('0x14')](this[_0x1016('0x2b')](_0x52e668)),_0x45c5e9&&this[_0x1016('0x14')](this[_0x1016('0x2b')](_0x45c5e9)),this[_0x1016('0x1a')]();}['refresh']({blurredAnnotation:_0x2d125a,activatedAnnotation:_0x1fb6d0,disableAnimationOnActivatedAnnotation:_0x1e5386}){if(this[_0x1016('0x44')]=_0x1fb6d0,_0x2d125a){_0x2d125a[_0x1016('0x1f')]=!0x1;const _0x571b9d=this[_0x1016('0x2b')](_0x2d125a);_0x571b9d&&_0x1e5386&&(_0x571b9d[_0x1016('0x20')]=!0x1);}if(_0x1fb6d0){const _0x1e5213=this[_0x1016('0x2b')](_0x1fb6d0);_0x1e5213&&(_0x1fb6d0[_0x1016('0x1f')]=!0x0,_0x1e5386&&(_0x1e5213[_0x1016('0x20')]=!0x0,_0x1e5213[_0x1016('0x25')]+=0x1),this[_0x1016('0x14')](_0x1e5213));}}['_detachFromContainer'](_0x2d3086){if(this['view'][_0x1016('0x1e')][_0x1016('0x47')](),_0x2d3086)for(const _0xdff724 of _0x2d3086)this[_0x1016('0xc')](_0xdff724);this[_0x1016('0x16')][_0x1016('0x45')][_0x1016('0x29')](),this['view'][_0x1016('0x0')]='',this[_0x1016('0x7')]=null;}[_0x1016('0x3e')](_0xb8726f,_0x4b5e7b){_0x4b5e7b||(_0x4b5e7b=_0xb8726f[_0x1016('0x16')]);const _0x5e84b4=new _0x4614a0(this['context'][_0x1016('0x3')]);this[_0x1016('0x35')]['set'](_0x5e84b4,_0xb8726f),this['_annotationToSidebarItemView'][_0x1016('0x30')](_0xb8726f,_0x5e84b4),_0x5e84b4[_0x1016('0x37')][_0x1016('0x1')](_0x4b5e7b),this[_0x1016('0x41')](_0xb8726f['view'],_0x1016('0xf'),(_0x576eb7,_0x7084e5,_0x9983f3)=>{const _0x3e8439=this[_0x1016('0x6')](_0xb8726f,_0x9983f3);_0x5e84b4[_0x1016('0x4')]!=_0x3e8439&&(_0x5e84b4[_0x1016('0x4')]=_0x3e8439,this[_0x1016('0x23')](_0x5e84b4,_0x3e8439));}),this[_0x1016('0x41')](_0x5e84b4,_0x1016('0x22'),()=>{this['_recalculate'](_0x5e84b4,_0x1016('0x25'));}),this[_0x1016('0x41')](_0x5e84b4,_0x1016('0x2'),()=>{this[_0x1016('0x18')](_0x5e84b4,_0x1016('0x34'));}),this[_0x1016('0x14')](_0x5e84b4);const _0x11edd7=this[_0x1016('0x2f')](_0x5e84b4);if(_0x11edd7)this[_0x1016('0x10')](_0x11edd7,_0x5e84b4)||this[_0x1016('0x14')](_0x5e84b4);else this[_0x1016('0x14')](_0x5e84b4);return this['_updateLastItem'](),this[_0x1016('0x16')]['list'][_0x1016('0x1')](_0x5e84b4),_0x5e84b4;}['_alignForTopChange'](_0x20e2d4){if(!_0x20e2d4['content'][_0x1016('0x3f')])return;const _0x39edcd=this[_0x1016('0x2f')](_0x20e2d4);if(!_0x39edcd)return;const _0x246cfc=this['_sidebarItemViewToAnnotation'][_0x1016('0x38')](_0x39edcd),_0x1b2ea9=this[_0x1016('0x44')];_0x1b2ea9&&_0x1b2ea9===_0x246cfc?this[_0x1016('0x10')](_0x39edcd,_0x20e2d4):this[_0x1016('0x42')](_0x20e2d4,_0x39edcd);}['_alignForBottomChange'](_0x4a0930){if(!_0x4a0930[_0x1016('0x37')][_0x1016('0x3f')])return;const _0x1c66b2=this[_0x1016('0x2a')](_0x4a0930);if(!_0x1c66b2)return;const _0x28b6c5=this['_sidebarItemViewToAnnotation'][_0x1016('0x38')](_0x1c66b2),_0x10e4c2=this['context'][_0x1016('0x32')][_0x1016('0x38')](_0x1016('0x33')),_0x3d7b4c=this[_0x1016('0x44')];_0x3d7b4c&&_0x3d7b4c===_0x28b6c5&&_0x10e4c2?(this[_0x1016('0x42')](_0x1c66b2,_0x4a0930),this[_0x1016('0x10')](_0x4a0930,_0x1c66b2)):_0x3d7b4c&&_0x3d7b4c===_0x28b6c5?this[_0x1016('0x42')](_0x1c66b2,_0x4a0930):this[_0x1016('0x10')](_0x4a0930,_0x1c66b2);}[_0x1016('0x18')](_0x3bece2,_0x347cb0){0x0===this['_recalculateBuffer'][_0x1016('0x3f')]&&setTimeout(()=>{for(const {sidebarItemView:_0x1fbfa6,changedProp:_0x4b453c}of this['_recalculateBuffer'])_0x1016('0x25')===_0x4b453c?this[_0x1016('0x27')](_0x1fbfa6):this[_0x1016('0x1c')](_0x1fbfa6);this[_0x1016('0x28')]=[];},0xa),this['_recalculateBuffer'][_0x1016('0x1b')]({'sidebarItemView':_0x3bece2,'changedProp':_0x347cb0});}[_0x1016('0x2b')](_0x183c09){return this[_0x1016('0x13')][_0x1016('0x38')](_0x183c09);}['destroy'](){this[_0x1016('0x1d')](),this[_0x1016('0x16')][_0x1016('0x3a')]();}[_0x1016('0xc')](_0x17c8f2){const _0x4e6f78=this[_0x1016('0x2b')](_0x17c8f2);this[_0x1016('0x1d')](_0x4e6f78),this['stopListening'](_0x17c8f2[_0x1016('0x16')]),_0x4e6f78[_0x1016('0x3a')](),this[_0x1016('0x13')][_0x1016('0x21')](_0x17c8f2),this[_0x1016('0x35')]['delete'](_0x4e6f78);}[_0x1016('0x2c')](){const _0x467b1b=new _0x590e83(this['context']['locale']);return _0x467b1b['render'](),this['on']('change:_lastItem',(_0x152622,_0x21b61d,_0x3accd4,_0x5cbc96)=>{_0x5cbc96&&_0x467b1b[_0x1016('0x40')]('minHeight'),_0x3accd4?_0x467b1b[_0x1016('0x12')](_0x1016('0x43'))['to'](_0x3accd4,'bottom'):_0x467b1b['minHeight']=null;}),_0x467b1b;}[_0x1016('0x1a')](){var _0x267299;this[_0x1016('0x7')]=(null===(_0x267299=this[_0x1016('0x31')])||void 0x0===_0x267299?void 0x0:_0x267299['last'])?this[_0x1016('0x2b')](this[_0x1016('0x31')][_0x1016('0x24')]):null;}['_getItemBefore'](_0x103eae){var _0x377c19;const _0x287dd1=this[_0x1016('0x35')]['get'](_0x103eae),_0x1e5949=_0x287dd1&&(null===(_0x377c19=this[_0x1016('0x31')])||void 0x0===_0x377c19?void 0x0:_0x377c19[_0x1016('0x38')](this[_0x1016('0x31')]['getIndex'](_0x287dd1)-0x1));return _0x1e5949&&this[_0x1016('0x2b')](_0x1e5949)||null;}[_0x1016('0x2a')](_0x1c81d5){var _0x1265a4;const _0x17b507=this['_sidebarItemViewToAnnotation'][_0x1016('0x38')](_0x1c81d5),_0xcfaae3=_0x17b507&&(null===(_0x1265a4=this[_0x1016('0x31')])||void 0x0===_0x1265a4?void 0x0:_0x1265a4[_0x1016('0x38')](this['_annotations'][_0x1016('0x5')](_0x17b507)+0x1));return _0xcfaae3&&this[_0x1016('0x2b')](_0xcfaae3)||null;}[_0x1016('0x42')](_0x257b62,_0x3c1a6a){_0x257b62[_0x1016('0x3c')]();const _0x23f47b=H(_0x3c1a6a[_0x1016('0x34')]+this[_0x1016('0x2d')],_0x257b62[_0x1016('0x25')]);return!!_0x23f47b&&(this[_0x1016('0x23')](_0x3c1a6a,_0x3c1a6a[_0x1016('0x25')]-_0x23f47b),!0x0);}['_alignAfterItem'](_0x2ffe43,_0x31870b){_0x2ffe43['updateHeight']();const _0x250e16=H(_0x2ffe43[_0x1016('0x34')]+this['_spaceBetweenItems'],_0x31870b[_0x1016('0x25')]);return!!_0x250e16&&(this['_setItemTop'](_0x31870b,_0x31870b[_0x1016('0x25')]+_0x250e16,!0x1),!0x0);}[_0x1016('0x14')](_0x58ba1b){const _0xe80fbf=this[_0x1016('0x35')][_0x1016('0x38')](_0x58ba1b);if(!_0xe80fbf||!_0xe80fbf[_0x1016('0xe')]||!_0xe80fbf['targetRect'])return;const _0x2b31d5=this[_0x1016('0x6')](_0xe80fbf,_0xe80fbf['targetRect']);this[_0x1016('0x23')](_0x58ba1b,_0x2b31d5);}[_0x1016('0x6')](_0x224415,_0x42cc2f){if(null===_0x42cc2f)return 0x0;if(_0x224415['target']instanceof _0x4bba25)return _0x42cc2f[_0x1016('0x25')];{const _0x32f2bc=new _0x4bba25(this[_0x1016('0x16')][_0x1016('0x1e')])[_0x1016('0x25')];return _0x42cc2f[_0x1016('0x25')]-_0x32f2bc;}}['_setItemTop'](_0x14b99f,_0xf696,_0xea801d=this[_0x1016('0x9')][_0x1016('0x32')]['get'](_0x1016('0x33'))){_0xea801d&&(_0xf696=Math[_0x1016('0x3b')](_0xf696,this[_0x1016('0x11')](_0x14b99f))),_0x14b99f[_0x1016('0x25')]=_0xf696;}[_0x1016('0x11')](_0x3cd100){let _0x5b7163=this[_0x1016('0x2f')](_0x3cd100),_0x587fe5=0x0;for(;_0x5b7163;)_0x5b7163[_0x1016('0x3c')](),_0x587fe5+=this['_spaceBetweenItems']+_0x5b7163[_0x1016('0xb')],_0x5b7163=this[_0x1016('0x2f')](_0x5b7163);return _0x587fe5;}}function H(_0x845e5d,_0x43c496){return Math[_0x1016('0x3b')](_0x845e5d-_0x43c496,0x0);}function y(_0x302d43){return null!==_0x302d43&&_0x1016('0x36')==typeof _0x302d43&&0x1===_0x302d43[_0x1016('0x17')];}
23
+ const _0x407d=['set','appendChild','pluginName','isActive','sidebar.container','_alignToTargetRect','Sidebar','_activeAnnotation','_sidebarItemViewToAnnotation','_recalculate','_setItemTop','rearrange','get','define','setContainer','add','_getItemBefore','top','change:top','bind','_alignBeforeItem','_getMaxAvailableTop','_alignAfterItem','getSidebarItemView','stopListening','_alignForTopChange','targetRect','class','isAnimationDisabled','nodeType','max','clear','content','refresh','minHeight','view','sidebar.preventScrollOutOfView','_createSidebarView','last','list','_targetTop','context','updateHeight','container','config','listenTo','bottom','push','_recalculateBuffer','change:_lastItem','sidebar-attachtocontainer-missing-container','remove','_annotations','_annotationToSidebarItemView','_lastItem','_alignForBottomChange','locale','_getItemAfter','_destroySidebarItemView','length','_getTargetTop','element','_spaceBetweenItems','getIndex','object','_updateLastItem','delete','render'];(function(_0x1bfbfe,_0x407db2){const _0x22c420=function(_0x358987){while(--_0x358987){_0x1bfbfe['push'](_0x1bfbfe['shift']());}};_0x22c420(++_0x407db2);}(_0x407d,0xd9));const _0x22c4=function(_0x1bfbfe,_0x407db2){_0x1bfbfe=_0x1bfbfe-0x0;let _0x22c420=_0x407d[_0x1bfbfe];return _0x22c420;};import{ContextPlugin as _0x486ebb}from'ckeditor5/src/core';import{Rect as _0x9a6c,CKEditorError as _0x8e0856}from'ckeditor5/src/utils';import _0x420bed from'./view/sidebarview';import _0x29e99c from'./view/sidebaritemview';export default class z extends _0x486ebb{static get[_0x22c4('0x39')](){return _0x22c4('0x3d');}constructor(_0x27e2d9){super(_0x27e2d9),this[_0x22c4('0x37')](_0x22c4('0x29'),void 0x0),this[_0x22c4('0x16')]=this[_0x22c4('0x18')](),this[_0x22c4('0x37')](_0x22c4('0x1e'),null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context'][_0x22c4('0x1f')][_0x22c4('0x0')]('sidebar.preventScrollOutOfView',!0x1),this[_0x22c4('0x27')]=null,this['_activeAnnotation']=null,this[_0x22c4('0x23')]=[];}['init'](){const _0x108b80=this['context'][_0x22c4('0x1f')][_0x22c4('0x43')](_0x22c4('0x3b'));_0x108b80&&this[_0x22c4('0x1')](_0x108b80);}[_0x22c4('0x1')](_0x1cba3d){if(!y(_0x1cba3d))throw new _0x8e0856('sidebar-setcontainer-invalid-element');this[_0x22c4('0x1e')]=_0x1cba3d;}['_attachToContainer']({viewClass:_0x31de16='',spaceBetweenItems:_0x2c309c=0x19}={}){if(!y(this[_0x22c4('0x1e')]))throw new _0x8e0856(_0x22c4('0x25'),this);this[_0x22c4('0x1e')][_0x22c4('0x38')](this[_0x22c4('0x16')][_0x22c4('0x30')]),this[_0x22c4('0x16')][_0x22c4('0xe')]=_0x31de16,this['_spaceBetweenItems']=_0x2c309c;}[_0x22c4('0x42')]({removedAnnotation:_0x4c01f7,previousAnnotation:_0x152b3e,nextAnnotation:_0x230478}){const _0x4611ac=this[_0x22c4('0xa')](_0x4c01f7);this[_0x22c4('0x16')]['list'][_0x22c4('0x26')](_0x4611ac),this[_0x22c4('0x2d')](_0x4c01f7),_0x152b3e&&this[_0x22c4('0x3c')](this[_0x22c4('0xa')](_0x152b3e)),_0x230478&&this[_0x22c4('0x3c')](this[_0x22c4('0xa')](_0x230478)),this[_0x22c4('0x34')]();}[_0x22c4('0x14')]({blurredAnnotation:_0xe72d3e,activatedAnnotation:_0x255964,disableAnimationOnActivatedAnnotation:_0x2a74d6}){if(this['_activeAnnotation']=_0x255964,_0xe72d3e){_0xe72d3e[_0x22c4('0x3a')]=!0x1;const _0x45a303=this[_0x22c4('0xa')](_0xe72d3e);_0x45a303&&_0x2a74d6&&(_0x45a303['isAnimationDisabled']=!0x1);}if(_0x255964){const _0x32651c=this[_0x22c4('0xa')](_0x255964);_0x32651c&&(_0x255964[_0x22c4('0x3a')]=!0x0,_0x2a74d6&&(_0x32651c[_0x22c4('0xf')]=!0x0,_0x32651c['top']+=0x1),this[_0x22c4('0x3c')](_0x32651c));}}['_detachFromContainer'](_0x4d59d7){if(this[_0x22c4('0x16')][_0x22c4('0x30')][_0x22c4('0x26')](),_0x4d59d7)for(const _0x27c54e of _0x4d59d7)this['_destroySidebarItemView'](_0x27c54e);this['view']['list'][_0x22c4('0x12')](),this[_0x22c4('0x16')][_0x22c4('0xe')]='',this['_lastItem']=null;}['addAnnotation'](_0x5bf24a,_0x435d87){_0x435d87||(_0x435d87=_0x5bf24a['view']);const _0x404219=new _0x29e99c(this[_0x22c4('0x1c')][_0x22c4('0x2b')]);this[_0x22c4('0x3f')]['set'](_0x404219,_0x5bf24a),this[_0x22c4('0x28')][_0x22c4('0x37')](_0x5bf24a,_0x404219),_0x404219[_0x22c4('0x13')][_0x22c4('0x2')](_0x435d87),this[_0x22c4('0x20')](_0x5bf24a[_0x22c4('0x16')],'change:targetRect',(_0x39bcdf,_0x256175,_0x1605e4)=>{const _0x152d96=this[_0x22c4('0x2f')](_0x5bf24a,_0x1605e4);_0x404219[_0x22c4('0x1b')]!=_0x152d96&&(_0x404219['_targetTop']=_0x152d96,this[_0x22c4('0x41')](_0x404219,_0x152d96));}),this[_0x22c4('0x20')](_0x404219,_0x22c4('0x5'),()=>{this[_0x22c4('0x40')](_0x404219,_0x22c4('0x4'));}),this[_0x22c4('0x20')](_0x404219,'change:bottom',()=>{this['_recalculate'](_0x404219,_0x22c4('0x21'));}),this[_0x22c4('0x3c')](_0x404219);const _0x25b9d3=this[_0x22c4('0x3')](_0x404219);if(_0x25b9d3)this[_0x22c4('0x9')](_0x25b9d3,_0x404219)||this[_0x22c4('0x3c')](_0x404219);else this['_alignToTargetRect'](_0x404219);return this['_updateLastItem'](),this[_0x22c4('0x16')][_0x22c4('0x1a')][_0x22c4('0x2')](_0x404219),_0x404219;}[_0x22c4('0xc')](_0x24cfc9){if(!_0x24cfc9[_0x22c4('0x13')][_0x22c4('0x2e')])return;const _0x21cc2b=this[_0x22c4('0x3')](_0x24cfc9);if(!_0x21cc2b)return;const _0xc9cf1a=this[_0x22c4('0x3f')][_0x22c4('0x43')](_0x21cc2b),_0x11ffaa=this[_0x22c4('0x3e')];_0x11ffaa&&_0x11ffaa===_0xc9cf1a?this['_alignAfterItem'](_0x21cc2b,_0x24cfc9):this[_0x22c4('0x7')](_0x24cfc9,_0x21cc2b);}[_0x22c4('0x2a')](_0x36c222){if(!_0x36c222[_0x22c4('0x13')][_0x22c4('0x2e')])return;const _0x304f80=this[_0x22c4('0x2c')](_0x36c222);if(!_0x304f80)return;const _0x583096=this[_0x22c4('0x3f')]['get'](_0x304f80),_0x515862=this[_0x22c4('0x1c')][_0x22c4('0x1f')][_0x22c4('0x43')](_0x22c4('0x17')),_0xf727ec=this[_0x22c4('0x3e')];_0xf727ec&&_0xf727ec===_0x583096&&_0x515862?(this['_alignBeforeItem'](_0x304f80,_0x36c222),this[_0x22c4('0x9')](_0x36c222,_0x304f80)):_0xf727ec&&_0xf727ec===_0x583096?this['_alignBeforeItem'](_0x304f80,_0x36c222):this['_alignAfterItem'](_0x36c222,_0x304f80);}[_0x22c4('0x40')](_0x58b6ee,_0x365bf6){0x0===this[_0x22c4('0x23')][_0x22c4('0x2e')]&&setTimeout(()=>{for(const {sidebarItemView:_0x116b49,changedProp:_0x5c8400}of this[_0x22c4('0x23')])_0x22c4('0x4')===_0x5c8400?this['_alignForTopChange'](_0x116b49):this[_0x22c4('0x2a')](_0x116b49);this[_0x22c4('0x23')]=[];},0xa),this[_0x22c4('0x23')][_0x22c4('0x22')]({'sidebarItemView':_0x58b6ee,'changedProp':_0x365bf6});}[_0x22c4('0xa')](_0xfe4e9){return this[_0x22c4('0x28')][_0x22c4('0x43')](_0xfe4e9);}['destroy'](){this[_0x22c4('0xb')](),this[_0x22c4('0x16')]['destroy']();}[_0x22c4('0x2d')](_0x1e265d){const _0x42beb9=this[_0x22c4('0xa')](_0x1e265d);this['stopListening'](_0x42beb9),this['stopListening'](_0x1e265d[_0x22c4('0x16')]),_0x42beb9['destroy'](),this[_0x22c4('0x28')][_0x22c4('0x35')](_0x1e265d),this[_0x22c4('0x3f')][_0x22c4('0x35')](_0x42beb9);}[_0x22c4('0x18')](){const _0x2ceb30=new _0x420bed(this[_0x22c4('0x1c')][_0x22c4('0x2b')]);return _0x2ceb30[_0x22c4('0x36')](),this['on'](_0x22c4('0x24'),(_0x56a7b5,_0xc219c9,_0x57308c,_0x1d1787)=>{_0x1d1787&&_0x2ceb30['unbind'](_0x22c4('0x15')),_0x57308c?_0x2ceb30[_0x22c4('0x6')](_0x22c4('0x15'))['to'](_0x57308c,_0x22c4('0x21')):_0x2ceb30['minHeight']=null;}),_0x2ceb30;}[_0x22c4('0x34')](){var _0x5502b9;this[_0x22c4('0x29')]=(null===(_0x5502b9=this[_0x22c4('0x27')])||void 0x0===_0x5502b9?void 0x0:_0x5502b9[_0x22c4('0x19')])?this[_0x22c4('0xa')](this[_0x22c4('0x27')]['last']):null;}[_0x22c4('0x3')](_0xaad0ac){var _0x2b5c38;const _0x5cae70=this[_0x22c4('0x3f')][_0x22c4('0x43')](_0xaad0ac),_0x2a4fcc=_0x5cae70&&(null===(_0x2b5c38=this[_0x22c4('0x27')])||void 0x0===_0x2b5c38?void 0x0:_0x2b5c38['get'](this[_0x22c4('0x27')][_0x22c4('0x32')](_0x5cae70)-0x1));return _0x2a4fcc&&this[_0x22c4('0xa')](_0x2a4fcc)||null;}['_getItemAfter'](_0x17ae6d){var _0x3acb88;const _0x53c465=this[_0x22c4('0x3f')][_0x22c4('0x43')](_0x17ae6d),_0x5311b1=_0x53c465&&(null===(_0x3acb88=this[_0x22c4('0x27')])||void 0x0===_0x3acb88?void 0x0:_0x3acb88[_0x22c4('0x43')](this['_annotations'][_0x22c4('0x32')](_0x53c465)+0x1));return _0x5311b1&&this[_0x22c4('0xa')](_0x5311b1)||null;}[_0x22c4('0x7')](_0x20a396,_0x5ac98a){_0x20a396[_0x22c4('0x1d')]();const _0x1d4313=H(_0x5ac98a['bottom']+this[_0x22c4('0x31')],_0x20a396[_0x22c4('0x4')]);return!!_0x1d4313&&(this['_setItemTop'](_0x5ac98a,_0x5ac98a[_0x22c4('0x4')]-_0x1d4313),!0x0);}['_alignAfterItem'](_0x5b789c,_0x1f3812){_0x5b789c['updateHeight']();const _0x5edf26=H(_0x5b789c[_0x22c4('0x21')]+this[_0x22c4('0x31')],_0x1f3812[_0x22c4('0x4')]);return!!_0x5edf26&&(this[_0x22c4('0x41')](_0x1f3812,_0x1f3812['top']+_0x5edf26,!0x1),!0x0);}['_alignToTargetRect'](_0x42e649){const _0x5b9efe=this[_0x22c4('0x3f')][_0x22c4('0x43')](_0x42e649);if(!_0x5b9efe||!_0x5b9efe['target']||!_0x5b9efe[_0x22c4('0xd')])return;const _0x3460c5=this[_0x22c4('0x2f')](_0x5b9efe,_0x5b9efe['targetRect']);this['_setItemTop'](_0x42e649,_0x3460c5);}[_0x22c4('0x2f')](_0x59043f,_0x2e7417){if(null===_0x2e7417)return 0x0;if(_0x59043f['target']instanceof _0x9a6c)return _0x2e7417['top'];{const _0x4e020a=new _0x9a6c(this[_0x22c4('0x16')][_0x22c4('0x30')])[_0x22c4('0x4')];return _0x2e7417[_0x22c4('0x4')]-_0x4e020a;}}[_0x22c4('0x41')](_0x41e709,_0x3f8a55,_0xc9edad=this[_0x22c4('0x1c')]['config']['get']('sidebar.preventScrollOutOfView')){_0xc9edad&&(_0x3f8a55=Math[_0x22c4('0x11')](_0x3f8a55,this[_0x22c4('0x8')](_0x41e709))),_0x41e709[_0x22c4('0x4')]=_0x3f8a55;}[_0x22c4('0x8')](_0x1be444){let _0x280e64=this[_0x22c4('0x3')](_0x1be444),_0x14992a=0x0;for(;_0x280e64;)_0x280e64[_0x22c4('0x1d')](),_0x14992a+=this[_0x22c4('0x31')]+_0x280e64['height'],_0x280e64=this[_0x22c4('0x3')](_0x280e64);return _0x14992a;}}function H(_0x50f021,_0x28ae1c){return Math[_0x22c4('0x11')](_0x50f021-_0x28ae1c,0x0);}function y(_0x5ce672){return null!==_0x5ce672&&_0x22c4('0x33')==typeof _0x5ce672&&0x1===_0x5ce672[_0x22c4('0x10')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20b8=['set','setTemplate','children','bind','toString','span','number','bindTemplate','counterView','extendTemplate','...','add','ck-annotation-counter__badge--edit-mode','icon','_badge','ck-annotation-counter__badge--'];(function(_0x1ab1d7,_0x20b885){const _0x6b27=function(_0x16dfbf){while(--_0x16dfbf){_0x1ab1d7['push'](_0x1ab1d7['shift']());}};_0x6b27(++_0x20b885);}(_0x20b8,0xd4));const _0x6b27=function(_0x1ab1d7,_0x20b885){_0x1ab1d7=_0x1ab1d7-0x0;let _0x16dfbf=_0x20b8[_0x1ab1d7];return _0x16dfbf;};import{ButtonView as _0x45b001,View as _0x4e4594}from'ckeditor5/src/ui';import _0x30ecc7 from'../../../theme/icons/add-comment.svg';export default class D extends _0x45b001{constructor(_0x854034){super(_0x854034);const _0x47efd9=this[_0x6b27('0x3')];this[_0x6b27('0xc')]('isDirty',!0x1),this[_0x6b27('0xc')]('number',0x0),this[_0x6b27('0xf')](_0x6b27('0xa'))['to'](this,'isDirty',this,_0x6b27('0x2'),(_0x2b9e6,_0x4c10de)=>_0x2b9e6?_0x6b27('0x6'):_0x4c10de[_0x6b27('0x0')]()),this[_0x6b27('0xc')]('annotationType',''),this[_0x6b27('0x9')]=_0x30ecc7,this[_0x6b27('0x5')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x6b27('0x4')]=new _0x4e4594(),this['counterView'][_0x6b27('0xd')]({'tag':_0x6b27('0x1'),'attributes':{'class':['ck-annotation-counter__badge',_0x47efd9['to']('annotationType',_0x19da9d=>_0x6b27('0xb')+_0x19da9d),_0x47efd9['if']('isDirty',_0x6b27('0x8'))]},'children':[{'text':_0x47efd9['to']('_badge')}]}),this[_0x6b27('0xe')][_0x6b27('0x7')](this[_0x6b27('0x4')]);}}
23
+ const _0x84d2=['ck-annotation-counter__badge--','add','span','extendTemplate','number','isDirty','bind','counterView','_badge','setTemplate','children','toString','bindTemplate','icon','set','annotationType'];(function(_0x4173a1,_0x84d263){const _0x234def=function(_0x2ef319){while(--_0x2ef319){_0x4173a1['push'](_0x4173a1['shift']());}};_0x234def(++_0x84d263);}(_0x84d2,0x177));const _0x234d=function(_0x4173a1,_0x84d263){_0x4173a1=_0x4173a1-0x0;let _0x234def=_0x84d2[_0x4173a1];return _0x234def;};import{ButtonView as _0x5b8517,View as _0x19f1af}from'ckeditor5/src/ui';import _0x59bc9c from'../../../theme/icons/add-comment.svg';export default class D extends _0x5b8517{constructor(_0x5e9e25){super(_0x5e9e25);const _0x3f6db7=this[_0x234d('0x5')];this[_0x234d('0x7')](_0x234d('0xe'),!0x1),this[_0x234d('0x7')](_0x234d('0xd'),0x0),this[_0x234d('0xf')](_0x234d('0x1'))['to'](this,_0x234d('0xe'),this,'number',(_0xf71310,_0x44e4ee)=>_0xf71310?'...':_0x44e4ee[_0x234d('0x4')]()),this[_0x234d('0x7')]('annotationType',''),this[_0x234d('0x6')]=_0x59bc9c,this[_0x234d('0xc')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x234d('0x0')]=new _0x19f1af(),this[_0x234d('0x0')][_0x234d('0x2')]({'tag':_0x234d('0xb'),'attributes':{'class':['ck-annotation-counter__badge',_0x3f6db7['to'](_0x234d('0x8'),_0x77744d=>_0x234d('0x9')+_0x77744d),_0x3f6db7['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x3f6db7['to'](_0x234d('0x1'))}]}),this[_0x234d('0x3')][_0x234d('0xa')](this[_0x234d('0x0')]);}}