@ckeditor/ckeditor5-comments 0.0.0-nightly-20230710.0 → 0.0.0-nightly-20230711.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-20230710.0",
3
+ "version": "0.0.0-nightly-20230711.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-20230710.0",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20230710.0",
46
+ "ckeditor5": "0.0.0-nightly-20230711.0",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20230711.0",
48
48
  "lodash-es": "^4.17.11"
49
49
  },
50
50
  "engines": {
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39e8=['filter','isArray','remove','set','isActive','_target','isVisible','_assertCorrectTarget','_getNormalizedTarget','target','add','focusableElements','nodeType','targetRect','updateTargetRect','_type','clear','mainView','function','destroy','render','getClientRects','_id','length','offsetParent','item','focusTracker','view','stopListening','type'];(function(_0x5b8548,_0x39e8d4){const _0x80b109=function(_0x84b87d){while(--_0x84b87d){_0x5b8548['push'](_0x5b8548['shift']());}};_0x80b109(++_0x39e8d4);}(_0x39e8,0x1e4));const _0x80b1=function(_0x5b8548,_0x39e8d4){_0x5b8548=_0x5b8548-0x0;let _0x80b109=_0x39e8[_0x5b8548];return _0x80b109;};import{CKEditorError as _0x369f35,Rect as _0x4e62f2,Collection as _0x301461,ObservableMixin as _0x1209de}from'ckeditor5/src/utils';export default class d extends _0x1209de(){constructor({view:_0x55039a,target:_0x5414b3,type:_0x175bef,isVisible:_0x54ec6e=!0x0}){super(),this['view']=_0x55039a,this[_0x80b1('0x17')]['element']||this[_0x80b1('0x17')][_0x80b1('0x10')](),this['_type']=_0x175bef,this['_target']=_0x5414b3,d[_0x80b1('0x3')](this[_0x80b1('0x4')]()),this[_0x80b1('0x7')]=new _0x301461([this[_0x80b1('0x17')]['element']],{'idProperty':_0x80b1('0x12')}),this[_0x80b1('0x7')]['on'](_0x80b1('0x6'),(_0xa73abe,_0x4f8622)=>{this[_0x80b1('0x17')]['focusTracker'][_0x80b1('0x6')](_0x4f8622);}),this['focusableElements']['on'](_0x80b1('0x1c'),(_0x53f2b1,_0x5e91b1)=>{this[_0x80b1('0x17')][_0x80b1('0x16')][_0x80b1('0x1c')](_0x5e91b1);}),this[_0x80b1('0x1d')](_0x80b1('0x2'),_0x54ec6e);}get[_0x80b1('0x19')](){return _0x80b1('0xe')==typeof this[_0x80b1('0xb')]?this[_0x80b1('0xb')]():this[_0x80b1('0xb')];}get['innerView'](){return this[_0x80b1('0x17')]['mainView'];}get[_0x80b1('0x5')](){const _0x4d81ba=this[_0x80b1('0x4')]();return d['_assertCorrectTarget'](_0x4d81ba),_0x4d81ba;}get['targetRect'](){const _0x2d1853=this[_0x80b1('0x5')];if(null===_0x2d1853)return null;if(_0x2d1853 instanceof _0x4e62f2)return _0x2d1853;const _0x5c4136=_0x2d1853[_0x80b1('0x1a')](_0x56c3d5=>function(_0x596fe0){const _0x192560=_0x596fe0[_0x80b1('0x14')];if(_0x192560)return!0x0;const _0x5680b2=_0x596fe0[_0x80b1('0x11')]()[_0x80b1('0x15')](0x0);return!!_0x5680b2;}(_0x56c3d5));return 0x0===_0x5c4136[_0x80b1('0x13')]?null:new _0x4e62f2(_0x5c4136[0x0][_0x80b1('0x11')]()[_0x80b1('0x15')](0x0));}get['isActive'](){return this[_0x80b1('0x17')]['isActive'];}set[_0x80b1('0x0')](_0x200e00){this[_0x80b1('0x17')][_0x80b1('0x0')]=_0x200e00,this[_0x80b1('0x17')][_0x80b1('0xd')][_0x80b1('0x0')]=_0x200e00;}[_0x80b1('0xa')](){this[_0x80b1('0x17')][_0x80b1('0x9')]=this[_0x80b1('0x9')];}[_0x80b1('0xf')](){this['focusableElements']['stopListening'](),this[_0x80b1('0x7')][_0x80b1('0xc')](),this[_0x80b1('0x18')]();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static[_0x80b1('0x3')](_0x4bb03d){if(!(null===_0x4bb03d||_0x4bb03d instanceof _0x4e62f2||Array[_0x80b1('0x1b')](_0x4bb03d)&&_0x4bb03d['every'](_0x55ccfc=>y(_0x55ccfc))))throw new _0x369f35('annotation-invalid-target',null,{'target':_0x4bb03d});}[_0x80b1('0x4')](){const _0x154b8c=_0x80b1('0xe')==typeof this[_0x80b1('0x1')]?this[_0x80b1('0x1')]():this[_0x80b1('0x1')];return y(_0x154b8c)?[_0x154b8c]:_0x154b8c;}}function y(_0x13adfb){return null!==_0x13adfb&&'object'==typeof _0x13adfb&&_0x80b1('0x8')in _0x13adfb&&0x1===_0x13adfb['nodeType'];}
23
+ const _0x536f=['focusTracker','_assertCorrectTarget','isActive','isArray','innerView','focusableElements','destroy','_type','target','targetRect','function','remove','element','_getNormalizedTarget','filter','_target','mainView','item','length','render','add','view','type','stopListening','annotation-invalid-target','object','isVisible','getClientRects','_id'];(function(_0x2faa0c,_0x536f4f){const _0x200c45=function(_0x49fa6a){while(--_0x49fa6a){_0x2faa0c['push'](_0x2faa0c['shift']());}};_0x200c45(++_0x536f4f);}(_0x536f,0x12c));const _0x200c=function(_0x2faa0c,_0x536f4f){_0x2faa0c=_0x2faa0c-0x0;let _0x200c45=_0x536f[_0x2faa0c];return _0x200c45;};import{CKEditorError as _0x17e81e,Rect as _0x410363,Collection as _0x305ed1,ObservableMixin as _0x292e27}from'ckeditor5/src/utils';export default class d extends _0x292e27(){constructor({view:_0x1846dc,target:_0xa6cecb,type:_0x324032,isVisible:_0xbd8217=!0x0}){super(),this[_0x200c('0xb')]=_0x1846dc,this[_0x200c('0xb')][_0x200c('0x2')]||this[_0x200c('0xb')][_0x200c('0x9')](),this[_0x200c('0x1a')]=_0x324032,this[_0x200c('0x5')]=_0xa6cecb,d['_assertCorrectTarget'](this[_0x200c('0x3')]()),this[_0x200c('0x18')]=new _0x305ed1([this[_0x200c('0xb')][_0x200c('0x2')]],{'idProperty':_0x200c('0x12')}),this['focusableElements']['on']('add',(_0x2bb7a6,_0x50d43d)=>{this[_0x200c('0xb')]['focusTracker'][_0x200c('0xa')](_0x50d43d);}),this['focusableElements']['on'](_0x200c('0x1'),(_0x8a0c57,_0x4f2e90)=>{this['view'][_0x200c('0x13')]['remove'](_0x4f2e90);}),this['set'](_0x200c('0x10'),_0xbd8217);}get[_0x200c('0xc')](){return _0x200c('0x0')==typeof this[_0x200c('0x1a')]?this[_0x200c('0x1a')]():this['_type'];}get[_0x200c('0x17')](){return this[_0x200c('0xb')]['mainView'];}get[_0x200c('0x1b')](){const _0x2a1b7c=this[_0x200c('0x3')]();return d[_0x200c('0x14')](_0x2a1b7c),_0x2a1b7c;}get[_0x200c('0x1c')](){const _0x446c3d=this[_0x200c('0x1b')];if(null===_0x446c3d)return null;if(_0x446c3d instanceof _0x410363)return _0x446c3d;const _0x327263=_0x446c3d[_0x200c('0x4')](_0x7567d5=>function(_0x568e9b){const _0x4cc75e=_0x568e9b['offsetParent'];if(_0x4cc75e)return!0x0;const _0x3cbc65=_0x568e9b[_0x200c('0x11')]()[_0x200c('0x7')](0x0);return!!_0x3cbc65;}(_0x7567d5));return 0x0===_0x327263[_0x200c('0x8')]?null:new _0x410363(_0x327263[0x0][_0x200c('0x11')]()[_0x200c('0x7')](0x0));}get[_0x200c('0x15')](){return this[_0x200c('0xb')][_0x200c('0x15')];}set[_0x200c('0x15')](_0x10d1fa){this[_0x200c('0xb')]['isActive']=_0x10d1fa,this[_0x200c('0xb')][_0x200c('0x6')][_0x200c('0x15')]=_0x10d1fa;}['updateTargetRect'](){this[_0x200c('0xb')]['targetRect']=this['targetRect'];}[_0x200c('0x19')](){this[_0x200c('0x18')][_0x200c('0xd')](),this[_0x200c('0x18')]['clear'](),this['stopListening']();}['refreshVisibility'](){this[_0x200c('0x10')]=!!this[_0x200c('0x1c')];}static[_0x200c('0x14')](_0x307739){if(!(null===_0x307739||_0x307739 instanceof _0x410363||Array[_0x200c('0x16')](_0x307739)&&_0x307739['every'](_0x572737=>y(_0x572737))))throw new _0x17e81e(_0x200c('0xe'),null,{'target':_0x307739});}[_0x200c('0x3')](){const _0xd6d7ef=_0x200c('0x0')==typeof this[_0x200c('0x5')]?this[_0x200c('0x5')]():this[_0x200c('0x5')];return y(_0xd6d7ef)?[_0xd6d7ef]:_0xd6d7ef;}}function y(_0x3c04bb){return null!==_0x3c04bb&&_0x200c('0xf')==typeof _0x3c04bb&&'nodeType'in _0x3c04bb&&0x1===_0x3c04bb['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c55=['isFocused','annotationcollection-not-existing-item','change:isFocused','top','add','_innerViewToAnnotation','from','remove','_getOrderInContent','_viewToAnnotation','focusableElements','blur','targetRect','stopListening','left','_sort','destroy','length','getByInnerView','focus','listenTo','clear','view','fire','_focusTracker','set','has','innerView','delete','updateTargetRect','get'];(function(_0xfd9d1c,_0x2c557d){const _0x415dcc=function(_0x442256){while(--_0x442256){_0xfd9d1c['push'](_0xfd9d1c['shift']());}};_0x415dcc(++_0x2c557d);}(_0x2c55,0xa6));const _0x415d=function(_0xfd9d1c,_0x2c557d){_0xfd9d1c=_0xfd9d1c-0x0;let _0x415dcc=_0x2c55[_0xfd9d1c];return _0x415dcc;};import{CKEditorError as _0x4aa8ed,Collection as _0xece3a4,FocusTracker as _0x2db2da}from'ckeditor5/src/utils';export default class x extends _0xece3a4{constructor(_0x146605=[]){super(),this[_0x415d('0x19')]=new Map(),this['_viewToAnnotation']=new Map(),this[_0x415d('0xd')]=new _0x2db2da(),this[_0x415d('0xd')]['on'](_0x415d('0x16'),(_0x2295e5,_0x2a62fd,_0x7c312a)=>{_0x7c312a||this[_0x415d('0xc')](_0x415d('0x0'));});for(const _0x10b642 of _0x146605)this[_0x415d('0x18')](_0x10b642);}get[_0x415d('0x14')](){return this[_0x415d('0xd')][_0x415d('0x14')];}[_0x415d('0x18')](_0x4ce674){if(this[_0x415d('0xf')](_0x4ce674))throw new _0x4aa8ed('annotationcollection-duplicated-item',null);this[_0x415d('0x19')][_0x415d('0xe')](_0x4ce674['innerView'],_0x4ce674),this['_viewToAnnotation'][_0x415d('0xe')](_0x4ce674['view'],_0x4ce674);for(const _0x217fc1 of _0x4ce674[_0x415d('0x1e')])this[_0x415d('0xd')][_0x415d('0x18')](_0x217fc1);this[_0x415d('0x9')](_0x4ce674['focusableElements'],'add',(_0x499e66,_0x20b697)=>{this[_0x415d('0xd')]['add'](_0x20b697);}),this[_0x415d('0x9')](_0x4ce674[_0x415d('0x1e')],_0x415d('0x1b'),(_0xbd920e,_0xf385f9)=>{this[_0x415d('0xd')][_0x415d('0x1b')](_0xf385f9);}),this[_0x415d('0x9')](_0x4ce674[_0x415d('0xb')]['focusTracker'],_0x415d('0x16'),(_0x265b2d,_0x2c7eb0,_0x3f5b31)=>{_0x3f5b31&&this[_0x415d('0xc')](_0x415d('0x8'),_0x4ce674);}),_0x4ce674[_0x415d('0x12')]();const _0x2f93a9=this[_0x415d('0x1c')](_0x4ce674[_0x415d('0xb')][_0x415d('0x1')]);return super[_0x415d('0x18')](_0x4ce674,_0x2f93a9);}[_0x415d('0x1b')](_0x222864){if(!this['has'](_0x222864))throw new _0x4aa8ed(_0x415d('0x15'),null);this[_0x415d('0x2')](_0x222864[_0x415d('0xb')]['focusTracker']),this[_0x415d('0x2')](_0x222864[_0x415d('0x1e')]);for(const _0x139feb of _0x222864['focusableElements'])this[_0x415d('0xd')][_0x415d('0x1b')](_0x139feb);return this[_0x415d('0x1d')][_0x415d('0x11')](_0x222864[_0x415d('0xb')]),this['_innerViewToAnnotation']['delete'](_0x222864[_0x415d('0x10')]),super[_0x415d('0x1b')](_0x222864);}[_0x415d('0x7')](_0x148c87){return this['_innerViewToAnnotation'][_0x415d('0x13')](_0x148c87);}['getByView'](_0x1516e0){return this['_viewToAnnotation']['get'](_0x1516e0);}['destroy'](){super[_0x415d('0xa')](),this[_0x415d('0x2')](),this[_0x415d('0x19')]['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker'][_0x415d('0x5')]();}['refreshPositioning'](){for(const _0x58e47c of this)_0x58e47c['updateTargetRect']();this[_0x415d('0x4')]();}[_0x415d('0x4')](){const _0x20aa0=Array[_0x415d('0x1a')](this)['sort']((_0x2067b5,_0x3ced29)=>v(_0x2067b5[_0x415d('0xb')][_0x415d('0x1')],_0x3ced29[_0x415d('0xb')][_0x415d('0x1')]));for(let _0x33a8f3=_0x20aa0[_0x415d('0x6')]-0x1;_0x33a8f3>0x0;_0x33a8f3--){const _0x245a52=_0x20aa0[_0x33a8f3];_0x33a8f3!==this['getIndex'](_0x245a52)&&(this[_0x415d('0x1b')](_0x245a52),this[_0x415d('0x18')](_0x245a52));}}[_0x415d('0x1c')](_0x5c1876){let _0x21f4b8=0x0;if(!_0x5c1876)return this[_0x415d('0x6')];for(const _0x53b4d5 of this){const _0x5cd298=_0x53b4d5[_0x415d('0xb')][_0x415d('0x1')];if(_0x5cd298){if(v(_0x5c1876,_0x5cd298)<0x0)return _0x21f4b8;_0x21f4b8++;}}return _0x21f4b8;}}export function bindAnnotationCollections({source:_0x3336ed,target:_0x1108ff,filter:_0x27928c}){for(const _0xf7692e of _0x3336ed)_0x27928c(_0xf7692e)&&_0x1108ff[_0x415d('0x18')](_0xf7692e);_0x1108ff[_0x415d('0x9')](_0x3336ed,_0x415d('0x18'),(_0x1a4878,_0x7a7a3c)=>{_0x27928c(_0x7a7a3c)&&_0x1108ff[_0x415d('0x18')](_0x7a7a3c);}),_0x1108ff[_0x415d('0x9')](_0x3336ed,_0x415d('0x1b'),(_0x24ac4d,_0x20fc8e)=>{_0x1108ff[_0x415d('0xf')](_0x20fc8e)&&_0x1108ff[_0x415d('0x1b')](_0x20fc8e);});}function v(_0x1cd751,_0x5661cf){if(null===_0x1cd751&&null===_0x5661cf)return 0x0;if(null===_0x1cd751)return-0x1;if(null===_0x5661cf)return 0x1;const _0x54932f=_0x1cd751[_0x415d('0x17')]-_0x5661cf[_0x415d('0x17')];return 0x0==_0x54932f?_0x1cd751['left']-_0x5661cf[_0x415d('0x3')]:_0x54932f;}
23
+ const _0xd9e9=['set','_viewToAnnotation','listenTo','view','has','_innerViewToAnnotation','add','from','annotationcollection-not-existing-item','targetRect','annotationcollection-duplicated-item','getByInnerView','_focusTracker','change:isFocused','remove','focusableElements','innerView','updateTargetRect','_getOrderInContent','isFocused','top','left','get','_sort','getIndex','stopListening','length','focusTracker','fire','delete','destroy','clear'];(function(_0x542609,_0xd9e904){const _0xc6ae44=function(_0x4faf36){while(--_0x4faf36){_0x542609['push'](_0x542609['shift']());}};_0xc6ae44(++_0xd9e904);}(_0xd9e9,0x1c5));const _0xc6ae=function(_0x542609,_0xd9e904){_0x542609=_0x542609-0x0;let _0xc6ae44=_0xd9e9[_0x542609];return _0xc6ae44;};import{CKEditorError as _0x3ae619,Collection as _0x405495,FocusTracker as _0x5bd118}from'ckeditor5/src/utils';export default class x extends _0x405495{constructor(_0x1c90a6=[]){super(),this[_0xc6ae('0x0')]=new Map(),this[_0xc6ae('0x1c')]=new Map(),this[_0xc6ae('0x7')]=new _0x5bd118(),this[_0xc6ae('0x7')]['on'](_0xc6ae('0x8'),(_0x46d942,_0x44a884,_0x334d57)=>{_0x334d57||this[_0xc6ae('0x17')]('blur');});for(const _0x12c80f of _0x1c90a6)this['add'](_0x12c80f);}get[_0xc6ae('0xe')](){return this[_0xc6ae('0x7')][_0xc6ae('0xe')];}[_0xc6ae('0x1')](_0x4d2279){if(this[_0xc6ae('0x1f')](_0x4d2279))throw new _0x3ae619(_0xc6ae('0x5'),null);this[_0xc6ae('0x0')][_0xc6ae('0x1b')](_0x4d2279[_0xc6ae('0xb')],_0x4d2279),this[_0xc6ae('0x1c')]['set'](_0x4d2279[_0xc6ae('0x1e')],_0x4d2279);for(const _0x2cc1ec of _0x4d2279[_0xc6ae('0xa')])this['_focusTracker'][_0xc6ae('0x1')](_0x2cc1ec);this[_0xc6ae('0x1d')](_0x4d2279['focusableElements'],_0xc6ae('0x1'),(_0x5a43fa,_0xedd6a0)=>{this['_focusTracker'][_0xc6ae('0x1')](_0xedd6a0);}),this[_0xc6ae('0x1d')](_0x4d2279[_0xc6ae('0xa')],'remove',(_0x1572b8,_0x3e49ab)=>{this[_0xc6ae('0x7')][_0xc6ae('0x9')](_0x3e49ab);}),this[_0xc6ae('0x1d')](_0x4d2279[_0xc6ae('0x1e')]['focusTracker'],_0xc6ae('0x8'),(_0x4a2af1,_0x21fe68,_0x1d6ed7)=>{_0x1d6ed7&&this[_0xc6ae('0x17')]('focus',_0x4d2279);}),_0x4d2279[_0xc6ae('0xc')]();const _0x267c18=this[_0xc6ae('0xd')](_0x4d2279[_0xc6ae('0x1e')][_0xc6ae('0x4')]);return super[_0xc6ae('0x1')](_0x4d2279,_0x267c18);}[_0xc6ae('0x9')](_0x5f0a98){if(!this[_0xc6ae('0x1f')](_0x5f0a98))throw new _0x3ae619(_0xc6ae('0x3'),null);this[_0xc6ae('0x14')](_0x5f0a98[_0xc6ae('0x1e')][_0xc6ae('0x16')]),this['stopListening'](_0x5f0a98['focusableElements']);for(const _0x14ec83 of _0x5f0a98[_0xc6ae('0xa')])this[_0xc6ae('0x7')][_0xc6ae('0x9')](_0x14ec83);return this[_0xc6ae('0x1c')][_0xc6ae('0x18')](_0x5f0a98['view']),this[_0xc6ae('0x0')][_0xc6ae('0x18')](_0x5f0a98['innerView']),super[_0xc6ae('0x9')](_0x5f0a98);}[_0xc6ae('0x6')](_0x4a11eb){return this[_0xc6ae('0x0')][_0xc6ae('0x11')](_0x4a11eb);}['getByView'](_0x446c81){return this['_viewToAnnotation'][_0xc6ae('0x11')](_0x446c81);}[_0xc6ae('0x19')](){super[_0xc6ae('0x1a')](),this['stopListening'](),this[_0xc6ae('0x0')][_0xc6ae('0x1a')](),this[_0xc6ae('0x1c')][_0xc6ae('0x1a')](),this['_focusTracker'][_0xc6ae('0x19')]();}['refreshPositioning'](){for(const _0x290e05 of this)_0x290e05[_0xc6ae('0xc')]();this[_0xc6ae('0x12')]();}['_sort'](){const _0x56e187=Array[_0xc6ae('0x2')](this)['sort']((_0x9f7613,_0x4e0ef0)=>v(_0x9f7613[_0xc6ae('0x1e')][_0xc6ae('0x4')],_0x4e0ef0['view'][_0xc6ae('0x4')]));for(let _0x266770=_0x56e187['length']-0x1;_0x266770>0x0;_0x266770--){const _0x39a5b0=_0x56e187[_0x266770];_0x266770!==this[_0xc6ae('0x13')](_0x39a5b0)&&(this[_0xc6ae('0x9')](_0x39a5b0),this[_0xc6ae('0x1')](_0x39a5b0));}}[_0xc6ae('0xd')](_0x471782){let _0x5ad2ff=0x0;if(!_0x471782)return this[_0xc6ae('0x15')];for(const _0x145bec of this){const _0x163192=_0x145bec['view'][_0xc6ae('0x4')];if(_0x163192){if(v(_0x471782,_0x163192)<0x0)return _0x5ad2ff;_0x5ad2ff++;}}return _0x5ad2ff;}}export function bindAnnotationCollections({source:_0x1be105,target:_0x33570e,filter:_0x1a5030}){for(const _0x3cb4cd of _0x1be105)_0x1a5030(_0x3cb4cd)&&_0x33570e['add'](_0x3cb4cd);_0x33570e[_0xc6ae('0x1d')](_0x1be105,_0xc6ae('0x1'),(_0x16a909,_0xc3b1ae)=>{_0x1a5030(_0xc3b1ae)&&_0x33570e[_0xc6ae('0x1')](_0xc3b1ae);}),_0x33570e[_0xc6ae('0x1d')](_0x1be105,'remove',(_0x7f0146,_0x332a56)=>{_0x33570e['has'](_0x332a56)&&_0x33570e[_0xc6ae('0x9')](_0x332a56);});}function v(_0x24401a,_0x45292c){if(null===_0x24401a&&null===_0x45292c)return 0x0;if(null===_0x24401a)return-0x1;if(null===_0x45292c)return 0x1;const _0x58e29e=_0x24401a[_0xc6ae('0xf')]-_0x45292c['top'];return 0x0==_0x58e29e?_0x24401a['left']-_0x45292c[_0xc6ae('0x10')]:_0x58e29e;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4dae=['activeAnnotations','_bindAnnotationsToVisibleAnnotations','remove','delete','isVisible','_visibleAnnotations','refreshPositioning','getByInnerView','createAnnotationView','source','activate','fire','createAnnotation','add','collection','pluginName','_activateAnnotation','has','refreshVisibility','_addActiveAnnotation','change:isVisible','destroy','stopListening','deactivateAll','listenTo','element','view'];(function(_0x4bafb9,_0x4daec6){const _0x23aa57=function(_0x4fb17f){while(--_0x4fb17f){_0x4bafb9['push'](_0x4bafb9['shift']());}};_0x23aa57(++_0x4daec6);}(_0x4dae,0x1a2));const _0x23aa=function(_0x4bafb9,_0x4daec6){_0x4bafb9=_0x4bafb9-0x0;let _0x23aa57=_0x4dae[_0x4bafb9];return _0x23aa57;};import{ContextPlugin as _0x6d170}from'ckeditor5/src/core';import _0x19ac6d from'./annotation';import _0x4b234b from'./annotationcollection';import _0x5e7e52 from'./view/annotationview';export default class b extends _0x6d170{static get[_0x23aa('0x2')](){return'Annotations';}constructor(_0x512c0e){super(_0x512c0e),this['collection']=new _0x4b234b(),this[_0x23aa('0x13')]=new _0x4b234b(),this['set'](_0x23aa('0xe'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x23aa('0x0')](_0x523b59){this[_0x23aa('0x1')][_0x23aa('0x0')](_0x523b59);}[_0x23aa('0x10')](_0x2b3eca){this[_0x23aa('0x1')][_0x23aa('0x10')](_0x2b3eca),_0x2b3eca[_0x23aa('0x8')]();}[_0x23aa('0x5')](){for(const _0x345b53 of this['collection'])_0x345b53[_0x23aa('0x5')]();}[_0x23aa('0x14')](){this[_0x23aa('0x13')][_0x23aa('0x14')]();}[_0x23aa('0x15')](_0x1331df){return this[_0x23aa('0x1')][_0x23aa('0x15')](_0x1331df);}[_0x23aa('0xa')](){this[_0x23aa('0x19')]('_deactivateAllAnnotations');}[_0x23aa('0x8')](){for(const _0x2f7184 of this[_0x23aa('0x1')])_0x2f7184[_0x23aa('0x8')]();this[_0x23aa('0x13')]['destroy'](),this[_0x23aa('0x1')][_0x23aa('0x8')](),super['destroy']();}[_0x23aa('0x18')](_0x32f68f){this[_0x23aa('0x19')](_0x23aa('0x3'),_0x32f68f);}[_0x23aa('0x1a')](_0x585ac7){return new _0x19ac6d(_0x585ac7);}[_0x23aa('0x16')](_0x3834ad,_0x36166f){return new _0x5e7e52(_0x3834ad,_0x36166f);}[_0x23aa('0x6')](_0x8c4296){const _0x5911e3=new Set(this[_0x23aa('0xe')]);_0x5911e3[_0x23aa('0x0')](_0x8c4296),this[_0x23aa('0xe')]=_0x5911e3;}['_removeActiveAnnotation'](_0x51b977){const _0xb11d85=new Set(this['activeAnnotations']);_0xb11d85[_0x23aa('0x11')](_0x51b977),this[_0x23aa('0xe')]=_0xb11d85;}[_0x23aa('0xf')](){const _0x112355=this[_0x23aa('0x1')],_0x4b7e43=this[_0x23aa('0x13')];function _0x2cf500(_0xb7a691){const _0x50acbc=_0xb7a691[_0x23aa('0x17')];_0x50acbc[_0x23aa('0x12')]&&!_0x4b7e43[_0x23aa('0x4')](_0x50acbc)?_0x4b7e43[_0x23aa('0x0')](_0x50acbc):!_0x50acbc[_0x23aa('0x12')]&&_0x4b7e43[_0x23aa('0x4')](_0x50acbc)&&_0x4b7e43[_0x23aa('0x10')](_0x50acbc),_0x50acbc[_0x23aa('0xd')]['focusTracker']['remove'](_0x50acbc[_0x23aa('0xd')][_0x23aa('0xc')]),_0x50acbc[_0x23aa('0xd')]['focusTracker'][_0x23aa('0x0')](_0x50acbc[_0x23aa('0xd')][_0x23aa('0xc')]);}this['listenTo'](_0x112355,_0x23aa('0x0'),(_0x50c5a3,_0x17704f)=>{_0x17704f[_0x23aa('0x12')]&&_0x4b7e43[_0x23aa('0x0')](_0x17704f),this[_0x23aa('0xb')](_0x17704f,'change:isVisible',_0x2cf500);}),this[_0x23aa('0xb')](_0x112355,'remove',(_0xc579d7,_0x2cb23e)=>{_0x4b7e43[_0x23aa('0x4')](_0x2cb23e)&&_0x4b7e43[_0x23aa('0x10')](_0x2cb23e),this[_0x23aa('0x9')](_0x2cb23e,_0x23aa('0x7'),_0x2cf500);});}}
23
+ const _0x4cd9=['_visibleAnnotations','fire','activate','collection','_bindAnnotationsToVisibleAnnotations','stopListening','createAnnotation','Annotations','element','view','pluginName','change:isVisible','createAnnotationView','getByInnerView','remove','isVisible','add','delete','_deactivateAllAnnotations','has','destroy','listenTo','_addActiveAnnotation','activeAnnotations','refreshVisibility','deactivateAll','focusTracker'];(function(_0x4bc015,_0x4cd9e2){const _0x510c4b=function(_0x3f44e6){while(--_0x3f44e6){_0x4bc015['push'](_0x4bc015['shift']());}};_0x510c4b(++_0x4cd9e2);}(_0x4cd9,0x1a2));const _0x510c=function(_0x4bc015,_0x4cd9e2){_0x4bc015=_0x4bc015-0x0;let _0x510c4b=_0x4cd9[_0x4bc015];return _0x510c4b;};import{ContextPlugin as _0x21f7c6}from'ckeditor5/src/core';import _0x48d354 from'./annotation';import _0x4d11ab from'./annotationcollection';import _0x10b692 from'./view/annotationview';export default class b extends _0x21f7c6{static get[_0x510c('0x18')](){return _0x510c('0x15');}constructor(_0x70b8a7){super(_0x70b8a7),this[_0x510c('0x11')]=new _0x4d11ab(),this[_0x510c('0xe')]=new _0x4d11ab(),this['set'](_0x510c('0xa'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x510c('0x3')](_0x19fa8f){this[_0x510c('0x11')]['add'](_0x19fa8f);}[_0x510c('0x1')](_0x28b19f){this[_0x510c('0x11')][_0x510c('0x1')](_0x28b19f),_0x28b19f['destroy']();}[_0x510c('0xb')](){for(const _0x43bc68 of this[_0x510c('0x11')])_0x43bc68[_0x510c('0xb')]();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}[_0x510c('0x0')](_0x51f6e9){return this['collection'][_0x510c('0x0')](_0x51f6e9);}[_0x510c('0xc')](){this[_0x510c('0xf')](_0x510c('0x5'));}['destroy'](){for(const _0x4aed5f of this[_0x510c('0x11')])_0x4aed5f[_0x510c('0x7')]();this[_0x510c('0xe')][_0x510c('0x7')](),this[_0x510c('0x11')][_0x510c('0x7')](),super[_0x510c('0x7')]();}[_0x510c('0x10')](_0x65826c){this[_0x510c('0xf')]('_activateAnnotation',_0x65826c);}[_0x510c('0x14')](_0x3010c9){return new _0x48d354(_0x3010c9);}[_0x510c('0x1a')](_0x2806b,_0x457bb6){return new _0x10b692(_0x2806b,_0x457bb6);}[_0x510c('0x9')](_0x433279){const _0x5b5663=new Set(this[_0x510c('0xa')]);_0x5b5663[_0x510c('0x3')](_0x433279),this[_0x510c('0xa')]=_0x5b5663;}['_removeActiveAnnotation'](_0x3c6358){const _0x6d3fdf=new Set(this['activeAnnotations']);_0x6d3fdf[_0x510c('0x4')](_0x3c6358),this[_0x510c('0xa')]=_0x6d3fdf;}[_0x510c('0x12')](){const _0x552ba2=this[_0x510c('0x11')],_0x332143=this['_visibleAnnotations'];function _0xad86f(_0xd25d67){const _0x4781f0=_0xd25d67['source'];_0x4781f0['isVisible']&&!_0x332143['has'](_0x4781f0)?_0x332143[_0x510c('0x3')](_0x4781f0):!_0x4781f0[_0x510c('0x2')]&&_0x332143['has'](_0x4781f0)&&_0x332143[_0x510c('0x1')](_0x4781f0),_0x4781f0[_0x510c('0x17')][_0x510c('0xd')]['remove'](_0x4781f0[_0x510c('0x17')][_0x510c('0x16')]),_0x4781f0[_0x510c('0x17')]['focusTracker'][_0x510c('0x3')](_0x4781f0[_0x510c('0x17')][_0x510c('0x16')]);}this[_0x510c('0x8')](_0x552ba2,'add',(_0x200d92,_0x44cd2c)=>{_0x44cd2c['isVisible']&&_0x332143['add'](_0x44cd2c),this[_0x510c('0x8')](_0x44cd2c,_0x510c('0x19'),_0xad86f);}),this[_0x510c('0x8')](_0x552ba2,'remove',(_0x4b3cbb,_0x1b0f7c)=>{_0x332143[_0x510c('0x6')](_0x1b0f7c)&&_0x332143[_0x510c('0x1')](_0x1b0f7c),this[_0x510c('0x13')](_0x1b0f7c,_0x510c('0x19'),_0xad86f);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20e1=['annotationsuis-register-invalid-interface','_uisData','_assertAnnotationDoesNotBelongToMultipleUIs','type','activeUIs','setActiveAnnotation','_removeActiveAnnotation','activate','deactivateAll','listenTo','pluginName','push','annotationsuis-missing-ui','from','init','find','attach','_uis','context','get','hasActive','_addActiveAnnotation','has','set','AnnotationsUIs','length','size','switchTo','annotationsuis-annotation-mismatch','collection','requires','function','add','destroy','filter','plugins','detach','deactivate','stopListening','_visibleAnnotations','isActive','register','delete','change:activeAnnotation'];(function(_0x287896,_0x20e17a){const _0x2914d4=function(_0x5d8a41){while(--_0x5d8a41){_0x287896['push'](_0x287896['shift']());}};_0x2914d4(++_0x20e17a);}(_0x20e1,0x10e));const _0x2914=function(_0x287896,_0x20e17a){_0x287896=_0x287896-0x0;let _0x2914d4=_0x20e1[_0x287896];return _0x2914d4;};import{ContextPlugin as _0xc1495c}from'ckeditor5/src/core';import{CKEditorError as _0x18d81d}from'ckeditor5/src/utils';import _0x59bbb3,{bindAnnotationCollections as _0x110880}from'./annotationcollection';import _0x128271 from'./annotations';export default class M extends _0xc1495c{static get[_0x2914('0x18')](){return[_0x128271];}static get[_0x2914('0x4')](){return _0x2914('0x12');}constructor(_0x7f2e20){super(_0x7f2e20),this[_0x2914('0x2a')]=new Set(),this[_0x2914('0xb')]=new Map(),this['_uisData']=new Map();}[_0x2914('0x8')](){const _0x612098=this[_0x2914('0xc')][_0x2914('0x1d')]['get'](_0x128271);this[_0x2914('0x3')](_0x612098,'_activateAnnotation',(_0x354e94,_0x596872)=>{for(const _0x447ecb of this[_0x2914('0x2a')]){const _0x4a8966=this[_0x2914('0xb')][_0x2914('0xd')](_0x447ecb);(0x0,this[_0x2914('0x27')]['get'](_0x447ecb)['filter'])(_0x596872)&&_0x4a8966[_0x2914('0x2b')](_0x596872);}}),this[_0x2914('0x3')](_0x612098,'_deactivateAllAnnotations',()=>{for(const _0x5ed349 of this[_0x2914('0x2a')]){this[_0x2914('0xb')][_0x2914('0xd')](_0x5ed349)[_0x2914('0x2b')](null);}}),this[_0x2914('0x3')](_0x612098[_0x2914('0x21')],_0x2914('0x1a'),(_0x4138b0,_0x306dd0)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x306dd0);});}[_0x2914('0xe')](){return this['activeUIs'][_0x2914('0x14')]>0x0;}[_0x2914('0x22')](_0x3dc170){return this['activeUIs'][_0x2914('0x10')](_0x3dc170);}['activate'](_0x5402fb,_0x1437ed=()=>!0x0){const _0x5b08c9=this[_0x2914('0xc')][_0x2914('0x1d')][_0x2914('0xd')](_0x128271);if(!this[_0x2914('0xb')][_0x2914('0x10')](_0x5402fb))throw new _0x18d81d('annotationsuis-missing-ui',this,{'uiName':_0x5402fb});this[_0x2914('0x22')](_0x5402fb)&&this[_0x2914('0x1f')](_0x5402fb),this[_0x2914('0x2a')][_0x2914('0x1a')](_0x5402fb);const _0x49db57=new _0x59bbb3(),_0x45676d=_0x5b08c9[_0x2914('0x21')];_0x110880({'source':_0x45676d,'target':_0x49db57,'filter':_0x1437ed}),this[_0x2914('0x27')][_0x2914('0x11')](_0x5402fb,{'collection':_0x49db57,'filter':_0x1437ed});const _0x119ab1=this[_0x2914('0xb')][_0x2914('0xd')](_0x5402fb);_0x119ab1[_0x2914('0xa')](_0x49db57),this['listenTo'](_0x119ab1,_0x2914('0x25'),(_0x3a7ab7,_0x44a530,_0x428cd6,_0x493695)=>{_0x493695&&_0x5b08c9[_0x2914('0x0')](_0x493695),_0x428cd6&&_0x5b08c9[_0x2914('0xf')](_0x428cd6);});}[_0x2914('0x1f')](_0x33afa6){if(this[_0x2914('0x2a')]['delete'](_0x33afa6),!this['_uis']['has'](_0x33afa6))throw new _0x18d81d(_0x2914('0x6'),this,{'uiName':_0x33afa6});const _0x3d50cb=this[_0x2914('0xb')][_0x2914('0xd')](_0x33afa6);_0x3d50cb[_0x2914('0x1e')](),this[_0x2914('0x20')](_0x3d50cb),this['_uisData'][_0x2914('0xd')](_0x33afa6)['collection'][_0x2914('0x1b')](),this[_0x2914('0x27')][_0x2914('0x24')](_0x33afa6);}[_0x2914('0x15')](_0x5a47b5){if(!this[_0x2914('0xb')][_0x2914('0x10')](_0x5a47b5))throw new _0x18d81d(_0x2914('0x6'),this,{'uiName':_0x5a47b5});const _0x36dfc6=this[_0x2914('0xc')][_0x2914('0x1d')][_0x2914('0xd')](_0x128271),_0x3ffd6f=Array[_0x2914('0x7')](_0x36dfc6['activeAnnotations'])[0x0]||null;this[_0x2914('0x2')](),this[_0x2914('0x1')](_0x5a47b5);const _0x3c7d40=this['_uis'][_0x2914('0xd')](_0x5a47b5);_0x3c7d40[_0x2914('0x2b')](_0x3ffd6f),_0x3c7d40['_setSelectedAnnotations']&&_0x3ffd6f&&_0x3c7d40['_setSelectedAnnotations']([_0x3ffd6f]);}[_0x2914('0x2')](){for(const _0x3c8fa3 of this[_0x2914('0x2a')])this[_0x2914('0x1f')](_0x3c8fa3);}[_0x2914('0x23')](_0x282c3d,_0x23c9ee){if(this[_0x2914('0xb')][_0x2914('0x10')](_0x282c3d))throw new _0x18d81d('annotationsuis-register-already-registered');if(_0x2914('0x19')!=typeof _0x23c9ee[_0x2914('0xa')]||'function'!=typeof _0x23c9ee[_0x2914('0x1e')]||_0x2914('0x19')!=typeof _0x23c9ee[_0x2914('0x2b')])throw new _0x18d81d(_0x2914('0x26'),null);this[_0x2914('0xb')][_0x2914('0x11')](_0x282c3d,_0x23c9ee);}['refilterAnnotations'](){const _0x2da79d=this[_0x2914('0xc')][_0x2914('0x1d')][_0x2914('0xd')](_0x128271)[_0x2914('0x17')],_0x591258=new Map(),_0x5732a9=Array[_0x2914('0x7')](this['activeUIs']);for(const _0x2c46bd of this[_0x2914('0x2a')]){const _0x2c5d11=this[_0x2914('0x27')][_0x2914('0xd')](_0x2c46bd)[_0x2914('0x17')];for(const _0x1a6930 of _0x2c5d11)_0x591258['set'](_0x1a6930,_0x2c46bd);}for(const _0x5b931a of _0x2da79d){const _0x3c493c=_0x591258[_0x2914('0xd')](_0x5b931a);this[_0x2914('0x28')](_0x5b931a);const _0x5a564d=_0x5732a9[_0x2914('0x9')](_0x11204b=>this[_0x2914('0x27')][_0x2914('0xd')](_0x11204b)[_0x2914('0x1c')](_0x5b931a));_0x3c493c!==_0x5a564d&&(_0x3c493c&&this[_0x2914('0x27')]['get'](_0x3c493c)['collection']['remove'](_0x5b931a),_0x5a564d&&this[_0x2914('0x27')]['get'](_0x5a564d)[_0x2914('0x17')][_0x2914('0x1a')](_0x5b931a));}}[_0x2914('0x1b')](){this[_0x2914('0x2')](),super['destroy']();}[_0x2914('0x28')](_0x5b89ca){const _0x46ac2a=[];for(const _0x248423 of this[_0x2914('0x2a')]){(0x0,this[_0x2914('0x27')][_0x2914('0xd')](_0x248423)[_0x2914('0x1c')])(_0x5b89ca)&&_0x46ac2a[_0x2914('0x5')](_0x248423);}if(_0x46ac2a[_0x2914('0x13')]>0x1)throw new _0x18d81d(_0x2914('0x16'),null,{'matchedUIs':_0x46ac2a,'annotationType':_0x5b89ca[_0x2914('0x29')]});}}
23
+ const _0x3958=['activeUIs','annotationsuis-annotation-mismatch','requires','_visibleAnnotations','activate','from','get','hasActive','isActive','setActiveAnnotation','size','register','listenTo','has','collection','push','_deactivateAllAnnotations','activeAnnotations','_assertAnnotationDoesNotBelongToMultipleUIs','deactivateAll','remove','filter','_addActiveAnnotation','add','attach','destroy','annotationsuis-missing-ui','pluginName','init','delete','set','function','stopListening','context','plugins','detach','_removeActiveAnnotation','deactivate','type','refilterAnnotations','_uis','_activateAnnotation','AnnotationsUIs','_uisData','_setSelectedAnnotations'];(function(_0x2ef9e9,_0x3958b9){const _0x24aa57=function(_0x48866d){while(--_0x48866d){_0x2ef9e9['push'](_0x2ef9e9['shift']());}};_0x24aa57(++_0x3958b9);}(_0x3958,0x70));const _0x24aa=function(_0x2ef9e9,_0x3958b9){_0x2ef9e9=_0x2ef9e9-0x0;let _0x24aa57=_0x3958[_0x2ef9e9];return _0x24aa57;};import{ContextPlugin as _0x386b59}from'ckeditor5/src/core';import{CKEditorError as _0x5c7b76}from'ckeditor5/src/utils';import _0x5808f4,{bindAnnotationCollections as _0x531733}from'./annotationcollection';import _0x1b8619 from'./annotations';export default class M extends _0x386b59{static get[_0x24aa('0x19')](){return[_0x1b8619];}static get[_0x24aa('0x5')](){return _0x24aa('0x14');}constructor(_0x482964){super(_0x482964),this[_0x24aa('0x17')]=new Set(),this[_0x24aa('0x12')]=new Map(),this['_uisData']=new Map();}[_0x24aa('0x6')](){const _0x11250e=this['context'][_0x24aa('0xc')][_0x24aa('0x1d')](_0x1b8619);this[_0x24aa('0x23')](_0x11250e,_0x24aa('0x13'),(_0x5b60de,_0x9d262e)=>{for(const _0x1a8343 of this['activeUIs']){const _0x5895ba=this[_0x24aa('0x12')][_0x24aa('0x1d')](_0x1a8343);(0x0,this[_0x24aa('0x15')][_0x24aa('0x1d')](_0x1a8343)['filter'])(_0x9d262e)&&_0x5895ba[_0x24aa('0x20')](_0x9d262e);}}),this[_0x24aa('0x23')](_0x11250e,_0x24aa('0x27'),()=>{for(const _0x55643f of this[_0x24aa('0x17')]){this[_0x24aa('0x12')]['get'](_0x55643f)['setActiveAnnotation'](null);}}),this[_0x24aa('0x23')](_0x11250e[_0x24aa('0x1a')],_0x24aa('0x1'),(_0x351364,_0x2411f2)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2411f2);});}[_0x24aa('0x1e')](){return this['activeUIs'][_0x24aa('0x21')]>0x0;}[_0x24aa('0x1f')](_0x33b3d4){return this[_0x24aa('0x17')]['has'](_0x33b3d4);}[_0x24aa('0x1b')](_0x1ce0ad,_0x1565b5=()=>!0x0){const _0x59c42d=this[_0x24aa('0xb')]['plugins'][_0x24aa('0x1d')](_0x1b8619);if(!this['_uis'][_0x24aa('0x24')](_0x1ce0ad))throw new _0x5c7b76(_0x24aa('0x4'),this,{'uiName':_0x1ce0ad});this[_0x24aa('0x1f')](_0x1ce0ad)&&this['deactivate'](_0x1ce0ad),this[_0x24aa('0x17')][_0x24aa('0x1')](_0x1ce0ad);const _0x410667=new _0x5808f4(),_0x316e36=_0x59c42d[_0x24aa('0x1a')];_0x531733({'source':_0x316e36,'target':_0x410667,'filter':_0x1565b5}),this[_0x24aa('0x15')][_0x24aa('0x8')](_0x1ce0ad,{'collection':_0x410667,'filter':_0x1565b5});const _0xa28891=this[_0x24aa('0x12')][_0x24aa('0x1d')](_0x1ce0ad);_0xa28891[_0x24aa('0x2')](_0x410667),this['listenTo'](_0xa28891,'change:activeAnnotation',(_0x42b84a,_0x6778b4,_0x1fde7b,_0x153e6d)=>{_0x153e6d&&_0x59c42d[_0x24aa('0xe')](_0x153e6d),_0x1fde7b&&_0x59c42d[_0x24aa('0x0')](_0x1fde7b);});}[_0x24aa('0xf')](_0x202c99){if(this['activeUIs']['delete'](_0x202c99),!this[_0x24aa('0x12')]['has'](_0x202c99))throw new _0x5c7b76('annotationsuis-missing-ui',this,{'uiName':_0x202c99});const _0x428e13=this['_uis']['get'](_0x202c99);_0x428e13[_0x24aa('0xd')](),this[_0x24aa('0xa')](_0x428e13),this[_0x24aa('0x15')][_0x24aa('0x1d')](_0x202c99)[_0x24aa('0x25')][_0x24aa('0x3')](),this[_0x24aa('0x15')][_0x24aa('0x7')](_0x202c99);}['switchTo'](_0x3f6a37){if(!this[_0x24aa('0x12')][_0x24aa('0x24')](_0x3f6a37))throw new _0x5c7b76(_0x24aa('0x4'),this,{'uiName':_0x3f6a37});const _0x872631=this[_0x24aa('0xb')][_0x24aa('0xc')][_0x24aa('0x1d')](_0x1b8619),_0xe42356=Array[_0x24aa('0x1c')](_0x872631[_0x24aa('0x28')])[0x0]||null;this[_0x24aa('0x2a')](),this[_0x24aa('0x1b')](_0x3f6a37);const _0x3b711e=this[_0x24aa('0x12')]['get'](_0x3f6a37);_0x3b711e[_0x24aa('0x20')](_0xe42356),_0x3b711e[_0x24aa('0x16')]&&_0xe42356&&_0x3b711e['_setSelectedAnnotations']([_0xe42356]);}[_0x24aa('0x2a')](){for(const _0x1f1fdc of this[_0x24aa('0x17')])this[_0x24aa('0xf')](_0x1f1fdc);}[_0x24aa('0x22')](_0x4204fe,_0x12112a){if(this[_0x24aa('0x12')][_0x24aa('0x24')](_0x4204fe))throw new _0x5c7b76('annotationsuis-register-already-registered');if(_0x24aa('0x9')!=typeof _0x12112a[_0x24aa('0x2')]||_0x24aa('0x9')!=typeof _0x12112a[_0x24aa('0xd')]||_0x24aa('0x9')!=typeof _0x12112a[_0x24aa('0x20')])throw new _0x5c7b76('annotationsuis-register-invalid-interface',null);this['_uis'][_0x24aa('0x8')](_0x4204fe,_0x12112a);}[_0x24aa('0x11')](){const _0x564ba6=this['context'][_0x24aa('0xc')][_0x24aa('0x1d')](_0x1b8619)['collection'],_0x113d97=new Map(),_0x1fdfce=Array[_0x24aa('0x1c')](this[_0x24aa('0x17')]);for(const _0x16ebbb of this[_0x24aa('0x17')]){const _0x392e19=this['_uisData']['get'](_0x16ebbb)[_0x24aa('0x25')];for(const _0x363162 of _0x392e19)_0x113d97[_0x24aa('0x8')](_0x363162,_0x16ebbb);}for(const _0x2518cc of _0x564ba6){const _0x30f590=_0x113d97[_0x24aa('0x1d')](_0x2518cc);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2518cc);const _0x36e9eb=_0x1fdfce['find'](_0x3e881c=>this['_uisData'][_0x24aa('0x1d')](_0x3e881c)[_0x24aa('0x2c')](_0x2518cc));_0x30f590!==_0x36e9eb&&(_0x30f590&&this['_uisData']['get'](_0x30f590)[_0x24aa('0x25')][_0x24aa('0x2b')](_0x2518cc),_0x36e9eb&&this['_uisData'][_0x24aa('0x1d')](_0x36e9eb)[_0x24aa('0x25')][_0x24aa('0x1')](_0x2518cc));}}[_0x24aa('0x3')](){this[_0x24aa('0x2a')](),super['destroy']();}[_0x24aa('0x29')](_0x57b372){const _0x60c88b=[];for(const _0x223b80 of this['activeUIs']){(0x0,this['_uisData'][_0x24aa('0x1d')](_0x223b80)['filter'])(_0x57b372)&&_0x60c88b[_0x24aa('0x26')](_0x223b80);}if(_0x60c88b['length']>0x1)throw new _0x5c7b76(_0x24aa('0x18'),null,{'matchedUIs':_0x60c88b,'annotationType':_0x57b372[_0x24aa('0x10')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4211=['editor','update','fire','getByInnerView','blur','uiUpdate','get','function','refresh','_editorAnnotationsData','range','remove','containsRange','cancel','plugins','_editorAnnotations','element','has','innerView','directChange','document','editorannotations-invalid-source-callback','view','annotation','focusTracker','init','pluginName','change:range','push','set','getRanges','EditorAnnotations','_dataCollectors','getOrderedSelectedAnnotations','delete','requires','isReadOnly','addSourceCollector','model','sort','add','editing','map','selection','from','listenTo','hasDomSelection','refreshSelectedViews','registerAnnotation'];(function(_0xd3421d,_0x421183){const _0x179401=function(_0x5ed9f5){while(--_0x5ed9f5){_0xd3421d['push'](_0xd3421d['shift']());}};_0x179401(++_0x421183);}(_0x4211,0x9b));const _0x1794=function(_0xd3421d,_0x421183){_0xd3421d=_0xd3421d-0x0;let _0x179401=_0x4211[_0xd3421d];return _0x179401;};import{Plugin as _0xc7a243}from'ckeditor5/src/core';import{CKEditorError as _0x3ffb80}from'ckeditor5/src/utils';import{debounce as _0x251d90}from'lodash-es';import _0x58558f from'./annotations';export default class k extends _0xc7a243{static get[_0x1794('0x1b')](){return[_0x58558f];}static get[_0x1794('0x12')](){return _0x1794('0x17');}constructor(_0x59be8e){super(_0x59be8e),this['_dataCollectors']=new Set(),this[_0x1794('0x7')]=new Set();}[_0x1794('0x11')](){const _0x40d91e=this[_0x1794('0x29')],_0xfe618f=_0x40d91e[_0x1794('0x1e')]['document'][_0x1794('0x23')],_0x35e513=_0x251d90(()=>this[_0x1794('0x27')](),0xa);_0xfe618f['on'](_0x1794('0x13'),(_0x28faed,_0x2a2e25)=>{_0x2a2e25[_0x1794('0xb')]&&(_0x35e513[_0x1794('0x5')](),this[_0x1794('0x27')]());}),this[_0x1794('0x25')](_0x40d91e['editing']['view'][_0x1794('0xc')],'change:isFocused',(_0x358523,_0x4568c7,_0xeb39df)=>{_0xeb39df&&_0x35e513();}),this[_0x1794('0x25')](_0x40d91e['ui'][_0x1794('0x10')],'change:isFocused',(_0x52df8e,_0x5e5037,_0x34b364)=>{_0x34b364||_0x40d91e[_0x1794('0x1c')]||this[_0x1794('0x2b')](_0x1794('0x2d'),{'isAnnotationTracked':_0xe2c19b=>this['_editorAnnotationsData'][_0x1794('0x9')](_0xe2c19b[_0x1794('0xa')])});}),this[_0x1794('0x25')](this[_0x1794('0x29')]['ui'],_0x1794('0x2a'),()=>this[_0x1794('0x2b')](_0x1794('0x2e')));}[_0x1794('0x28')](_0x1cd504){if(this[_0x1794('0x7')]['has'](_0x1cd504['view']))return;this[_0x1794('0x7')][_0x1794('0x20')](_0x1cd504['view']),this[_0x1794('0x29')]['ui'][_0x1794('0x10')][_0x1794('0x20')](_0x1cd504[_0x1794('0xe')][_0x1794('0x8')]);const _0x52cf28=this[_0x1794('0x29')][_0x1794('0x6')][_0x1794('0x2f')](_0x58558f);this['listenTo'](_0x52cf28['collection'],'remove',(_0x5728d5,_0x5ee4da)=>{this[_0x1794('0x29')]['ui']['focusTracker'][_0x1794('0x3')](_0x5ee4da[_0x1794('0xe')][_0x1794('0x8')]),this[_0x1794('0x7')][_0x1794('0x1a')](_0x5ee4da[_0x1794('0xe')]);});}['hasDomSelection'](){return this[_0x1794('0x29')][_0x1794('0x21')][_0x1794('0xe')][_0x1794('0x26')];}[_0x1794('0x1d')](_0x55a476){if(_0x1794('0x30')!=typeof _0x55a476)throw new _0x3ffb80(_0x1794('0xd'));this[_0x1794('0x18')][_0x1794('0x20')](_0x55a476);}[_0x1794('0x27')](){this['fire'](_0x1794('0x0'));}[_0x1794('0x19')]({activeAnnotation:_0x421c2c,annotations:_0x540fed}){const _0x339fab=[],_0xa51ec=this['editor'][_0x1794('0x1e')][_0x1794('0xc')][_0x1794('0x23')],_0x2ebd5f=Array[_0x1794('0x24')](_0xa51ec[_0x1794('0x16')]());for(const [_0x535842,_0x4a7dd7]of this[_0x1794('0x1')]){const _0x5d445f=_0x3c7ebf(_0x4a7dd7),_0x246015=_0x540fed[_0x1794('0x2c')](_0x535842);_0x5d445f&&_0x246015&&_0x339fab[_0x1794('0x14')]({'annotation':_0x246015,'range':_0x5d445f});}function _0x3c7ebf(_0x13d733){for(const _0x186942 of _0x13d733)for(const _0x8d661 of _0x2ebd5f)if(_0x186942[_0x1794('0x4')](_0x8d661,!_0xa51ec['isCollapsed']))return _0x186942;return null;}return _0x339fab[_0x1794('0x1f')]((_0x3b019d,_0x32bdcc)=>{const _0x5b157e=_0x3b019d[_0x1794('0x2')],_0x2fa83e=_0x32bdcc[_0x1794('0x2')];if(!_0x5b157e['isEqual'](_0x2fa83e)){if(_0x5b157e[_0x1794('0x4')](_0x2fa83e,!0x0))return 0x1;if(_0x2fa83e[_0x1794('0x4')](_0x5b157e,!0x0))return-0x1;}return _0x3b019d[_0x1794('0xf')]==_0x421c2c?-0x1:_0x32bdcc[_0x1794('0xf')]==_0x421c2c?0x1:0x0;})[_0x1794('0x22')](_0x2ba7cf=>_0x2ba7cf[_0x1794('0xf')]);}get['_editorAnnotationsData'](){const _0x35ad97=new Map();for(const _0x73411 of Array[_0x1794('0x24')](this[_0x1794('0x18')]))for(const [_0x573395,_0x26ec7e]of _0x73411())_0x35ad97[_0x1794('0x15')](_0x573395,_0x26ec7e);return _0x35ad97;}}
23
+ const _0x4bf2=['set','document','range','delete','change:isFocused','listenTo','hasDomSelection','sort','from','_editorAnnotationsData','registerAnnotation','collection','_editorAnnotations','requires','fire','map','cancel','getRanges','element','remove','model','editor','isCollapsed','innerView','blur','selection','update','refreshSelectedViews','uiUpdate','EditorAnnotations','containsRange','view','function','getByInnerView','_dataCollectors','add','change:range','refresh','editorannotations-invalid-source-callback','pluginName','editing','get','annotation'];(function(_0x3829ac,_0x4bf22c){const _0x4b4df1=function(_0x296cc1){while(--_0x296cc1){_0x3829ac['push'](_0x3829ac['shift']());}};_0x4b4df1(++_0x4bf22c);}(_0x4bf2,0x72));const _0x4b4d=function(_0x3829ac,_0x4bf22c){_0x3829ac=_0x3829ac-0x0;let _0x4b4df1=_0x4bf2[_0x3829ac];return _0x4b4df1;};import{Plugin as _0x19dd57}from'ckeditor5/src/core';import{CKEditorError as _0x42f50f}from'ckeditor5/src/utils';import{debounce as _0x6fcf72}from'lodash-es';import _0x433311 from'./annotations';export default class k extends _0x19dd57{static get[_0x4b4d('0x1c')](){return[_0x433311];}static get[_0x4b4d('0xb')](){return _0x4b4d('0x1');}constructor(_0x126f88){super(_0x126f88),this['_dataCollectors']=new Set(),this[_0x4b4d('0x1b')]=new Set();}['init'](){const _0x2c46b3=this['editor'],_0x3f0f0a=_0x2c46b3[_0x4b4d('0x23')]['document'][_0x4b4d('0x28')],_0x25d67e=_0x6fcf72(()=>this[_0x4b4d('0x2a')](),0xa);_0x3f0f0a['on'](_0x4b4d('0x8'),(_0x464791,_0x2d3d86)=>{_0x2d3d86['directChange']&&(_0x25d67e[_0x4b4d('0x1f')](),this[_0x4b4d('0x2a')]());}),this[_0x4b4d('0x14')](_0x2c46b3[_0x4b4d('0xc')][_0x4b4d('0x3')][_0x4b4d('0x10')],_0x4b4d('0x13'),(_0xd29cef,_0x5a8118,_0x5cd3b4)=>{_0x5cd3b4&&_0x25d67e();}),this[_0x4b4d('0x14')](_0x2c46b3['ui']['focusTracker'],'change:isFocused',(_0xfc78de,_0x32f295,_0x2d22e0)=>{_0x2d22e0||_0x2c46b3['isReadOnly']||this[_0x4b4d('0x1d')](_0x4b4d('0x27'),{'isAnnotationTracked':_0x170d70=>this[_0x4b4d('0x18')]['has'](_0x170d70[_0x4b4d('0x26')])});}),this[_0x4b4d('0x14')](this[_0x4b4d('0x24')]['ui'],_0x4b4d('0x29'),()=>this[_0x4b4d('0x1d')](_0x4b4d('0x0')));}[_0x4b4d('0x19')](_0x46930c){if(this[_0x4b4d('0x1b')]['has'](_0x46930c['view']))return;this[_0x4b4d('0x1b')][_0x4b4d('0x7')](_0x46930c[_0x4b4d('0x3')]),this[_0x4b4d('0x24')]['ui']['focusTracker']['add'](_0x46930c[_0x4b4d('0x3')][_0x4b4d('0x21')]);const _0x4119b7=this[_0x4b4d('0x24')]['plugins'][_0x4b4d('0xd')](_0x433311);this[_0x4b4d('0x14')](_0x4119b7[_0x4b4d('0x1a')],_0x4b4d('0x22'),(_0x2843a6,_0x4351d6)=>{this[_0x4b4d('0x24')]['ui']['focusTracker']['remove'](_0x4351d6[_0x4b4d('0x3')][_0x4b4d('0x21')]),this[_0x4b4d('0x1b')][_0x4b4d('0x12')](_0x4351d6[_0x4b4d('0x3')]);});}[_0x4b4d('0x15')](){return this[_0x4b4d('0x24')][_0x4b4d('0xc')]['view'][_0x4b4d('0x15')];}['addSourceCollector'](_0x373d8d){if(_0x4b4d('0x4')!=typeof _0x373d8d)throw new _0x42f50f(_0x4b4d('0xa'));this[_0x4b4d('0x6')][_0x4b4d('0x7')](_0x373d8d);}['refreshSelectedViews'](){this[_0x4b4d('0x1d')](_0x4b4d('0x9'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x4ac0e0,annotations:_0x1c7517}){const _0x198e43=[],_0x785bef=this['editor']['model'][_0x4b4d('0x10')]['selection'],_0x592642=Array[_0x4b4d('0x17')](_0x785bef[_0x4b4d('0x20')]());for(const [_0x274cb4,_0x58af7c]of this['_editorAnnotationsData']){const _0x31e2b6=_0x2cd3e3(_0x58af7c),_0x2ae0a9=_0x1c7517[_0x4b4d('0x5')](_0x274cb4);_0x31e2b6&&_0x2ae0a9&&_0x198e43['push']({'annotation':_0x2ae0a9,'range':_0x31e2b6});}function _0x2cd3e3(_0xba39bb){for(const _0x594a24 of _0xba39bb)for(const _0xda19ea of _0x592642)if(_0x594a24['containsRange'](_0xda19ea,!_0x785bef[_0x4b4d('0x25')]))return _0x594a24;return null;}return _0x198e43[_0x4b4d('0x16')]((_0x652e6d,_0x224a6b)=>{const _0x1f47e3=_0x652e6d[_0x4b4d('0x11')],_0x34a79c=_0x224a6b['range'];if(!_0x1f47e3['isEqual'](_0x34a79c)){if(_0x1f47e3[_0x4b4d('0x2')](_0x34a79c,!0x0))return 0x1;if(_0x34a79c[_0x4b4d('0x2')](_0x1f47e3,!0x0))return-0x1;}return _0x652e6d[_0x4b4d('0xe')]==_0x4ac0e0?-0x1:_0x224a6b['annotation']==_0x4ac0e0?0x1:0x0;})[_0x4b4d('0x1e')](_0x57fa89=>_0x57fa89[_0x4b4d('0xe')]);}get[_0x4b4d('0x18')](){const _0x108a5a=new Map();for(const _0xacce8c of Array['from'](this[_0x4b4d('0x6')]))for(const [_0xab1733,_0x3a744d]of _0xacce8c())_0x108a5a[_0x4b4d('0xf')](_0xab1733,_0x3a744d);return _0x108a5a;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x109e=['focus','updatePosition','init','push','change:isFocused','focusTracker','view','fromRect','top','bottom','editableElement','change:visibleView','keystrokes','isAttached','showStack','isActive','_balloon','_selectedAnnotations','collapse','_removeAnnotationFromBalloon','getBoundingClientRect','target','plugins','_setSelectedAnnotations','editing','setActiveAnnotation','pluginName','remove','width','visibleView','getByView','change:height','clear','switchTo','hasView','activeAnnotation','register','update','viewRangeToDom','_addedAnnotations','right','refresh','inlineannotations-not-allowed-with-context','_forceRefresh','delete','left','listenTo','stopListening','getFirstRange','context','includes','editor','selection','_closeAnnotation','detach','map','get','afterInit','addObserver','getOrderedSelectedAnnotations','add','_manuallyClosed','requires','annotations','set','attach','targetRect','InlineAnnotations','_getBalloonTargetForAnnotation','has','getClientRects','inline','Esc','document','inlineannotations-detach-not-attached','length','blur','inlineannotations-attach-already-attached','isFocused'];(function(_0x5b50dd,_0x109e62){const _0xb7baf6=function(_0x279998){while(--_0x279998){_0x5b50dd['push'](_0x5b50dd['shift']());}};_0xb7baf6(++_0x109e62);}(_0x109e,0x1e3));const _0xb7ba=function(_0x5b50dd,_0x109e62){_0x5b50dd=_0x5b50dd-0x0;let _0xb7baf6=_0x109e[_0x5b50dd];return _0xb7baf6;};import{Plugin as _0x225a90}from'ckeditor5/src/core';import _0x486ecf from'./annotationsuis';import _0x4db12a from'./editorannotations';import{ContextualBalloon as _0x52a97f}from'ckeditor5/src/ui';import{MouseObserver as _0x56e0fb}from'ckeditor5/src/engine';import{CKEditorError as _0x16c166,Rect as _0xb27067}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x225a90{static get[_0xb7ba('0x35')](){return[_0x4db12a,_0x52a97f,_0x486ecf];}static get[_0xb7ba('0x11')](){return _0xb7ba('0x3a');}constructor(_0x467ac6){super(_0x467ac6),_0x467ac6['editing'][_0xb7ba('0x4c')][_0xb7ba('0x31')](_0x56e0fb),this[_0xb7ba('0x4')]=!0x1,this[_0xb7ba('0x37')](_0xb7ba('0x1a'),null),this[_0xb7ba('0x36')]=null,this[_0xb7ba('0x34')]=new Set(),this[_0xb7ba('0x7')]=_0x467ac6[_0xb7ba('0xd')][_0xb7ba('0x2f')](_0x52a97f),this[_0xb7ba('0x1e')]=new Set(),this[_0xb7ba('0x8')]=[],this[_0xb7ba('0x22')]=!0x1;}[_0xb7ba('0x48')](){const _0x1d130e=this[_0xb7ba('0x2a')][_0xb7ba('0xd')][_0xb7ba('0x2f')](_0x486ecf);_0x1d130e[_0xb7ba('0x28')]===this['editor']&&(_0x1d130e[_0xb7ba('0x1b')](_0xb7ba('0x3e'),this),this[_0xb7ba('0x2a')][_0xb7ba('0x3')][_0xb7ba('0x37')](_0xb7ba('0x3f'),(_0x237ea1,_0x4d4380)=>{const _0x279931=this[_0xb7ba('0x7')];if(this[_0xb7ba('0x4')]&&_0x279931['visibleView']){const _0x22da1e=this[_0xb7ba('0x36')][_0xb7ba('0x15')](_0x279931[_0xb7ba('0x14')]);_0x22da1e&&this[_0xb7ba('0x2c')](_0x22da1e),_0x4d4380();}}));}[_0xb7ba('0x30')](){const _0x283884=this[_0xb7ba('0x2a')]['plugins']['get'](_0x486ecf);_0x283884['context']===this[_0xb7ba('0x2a')]&&(_0x283884['hasActive']()||_0x283884[_0xb7ba('0x18')](_0xb7ba('0x3e')));}['setActiveAnnotation'](_0x12add4){_0x12add4!==this[_0xb7ba('0x1a')]&&(this[_0xb7ba('0x1a')]&&(this[_0xb7ba('0x1a')][_0xb7ba('0x6')]=!0x1),_0x12add4&&this[_0xb7ba('0x2a')]['ui'][_0xb7ba('0x4b')][_0xb7ba('0x45')]&&(this[_0xb7ba('0x36')][_0xb7ba('0x3c')](_0x12add4)&&this['_addAnnotationToBalloon'](_0x12add4,!0x0),_0x12add4[_0xb7ba('0x6')]=!0x0),_0x12add4||this[_0xb7ba('0xe')]([]),this['activeAnnotation']=_0x12add4);}[_0xb7ba('0x38')](_0x4fd301){this['annotations']=_0x4fd301;const _0x2b8115=this[_0xb7ba('0x2a')][_0xb7ba('0xd')][_0xb7ba('0x2f')](_0x486ecf),_0x5d538b=this[_0xb7ba('0x7')];if(this[_0xb7ba('0x4')])throw new _0x16c166(_0xb7ba('0x44'),this);if(_0x2b8115[_0xb7ba('0x28')]!==this[_0xb7ba('0x2a')])throw new _0x16c166(_0xb7ba('0x21'),this);const _0x4b9b15=this[_0xb7ba('0x2a')]['plugins'][_0xb7ba('0x2f')](_0x4db12a);this['listenTo'](_0x4b9b15,_0xb7ba('0x20'),()=>{const _0x11d24a=_0x4b9b15[_0xb7ba('0x32')]({'annotations':this['annotations'],'activeAnnotation':this[_0xb7ba('0x1a')]});var _0x20d4e7,_0x4e402a;!this[_0xb7ba('0x22')]&&(_0x20d4e7=_0x11d24a,_0x4e402a=this[_0xb7ba('0x8')],_0x20d4e7[_0xb7ba('0x42')]===_0x4e402a[_0xb7ba('0x42')]&&_0x20d4e7['every'](_0x55741c=>_0x4e402a[_0xb7ba('0x29')](_0x55741c)))||(this[_0xb7ba('0x22')]=!0x1,this['_setSelectedAnnotations'](_0x11d24a),this[_0xb7ba('0x10')](_0x11d24a[0x0]||null));}),this['listenTo'](_0x4b9b15,_0xb7ba('0x43'),(_0x5e7b48,{isAnnotationTracked:_0x50afe6})=>{this[_0xb7ba('0x1a')]&&_0x50afe6(this[_0xb7ba('0x1a')])&&(this['_setSelectedAnnotations']([]),this[_0xb7ba('0x10')](null));}),this[_0xb7ba('0x25')](this[_0xb7ba('0x2a')]['ui'][_0xb7ba('0x4b')],_0xb7ba('0x4a'),(_0x465fd9,_0xd30b7a,_0x578c63)=>{_0x578c63||this['setActiveAnnotation'](null);}),this['listenTo'](_0x4fd301,_0xb7ba('0x12'),(_0x1fbaee,_0x3a0330)=>{this[_0xb7ba('0xa')](_0x3a0330),_0x3a0330===this['activeAnnotation']&&this[_0xb7ba('0x10')](null);}),this[_0xb7ba('0x25')](_0x5d538b,_0xb7ba('0x2'),(_0x18bc39,_0x3bbf9f,_0x1a692a,_0x2292fd)=>{_0x2292fd&&this[_0xb7ba('0x26')](_0x2292fd);const _0x1c4711=_0x4fd301[_0xb7ba('0x15')](_0x1a692a);_0x1a692a&&_0x1c4711&&(this[_0xb7ba('0x25')](_0x1a692a,_0xb7ba('0x16'),()=>{_0x5d538b[_0xb7ba('0x47')]();}),this[_0xb7ba('0x25')](_0x1a692a,_0xb7ba('0x3f'),()=>{this['_closeAnnotation'](_0x1c4711),this[_0xb7ba('0x2a')][_0xb7ba('0xf')][_0xb7ba('0x4c')][_0xb7ba('0x46')]();}),this[_0xb7ba('0x1a')]!==_0x1c4711&&this[_0xb7ba('0x10')](_0x1c4711));}),this[_0xb7ba('0x25')](this[_0xb7ba('0x2a')]['ui'],_0xb7ba('0x1c'),()=>{_0x5d538b[_0xb7ba('0x14')]&&(_0x4fd301[_0xb7ba('0x15')](_0x5d538b[_0xb7ba('0x14')])&&_0x5d538b[_0xb7ba('0x47')]());}),this['listenTo'](this[_0xb7ba('0x2a')][_0xb7ba('0xf')][_0xb7ba('0x4c')]['document'],'mousedown',()=>{this[_0xb7ba('0x22')]=!0x0,this[_0xb7ba('0x34')][_0xb7ba('0x17')]();}),this['editor'][_0xb7ba('0xf')]['view'][_0xb7ba('0x40')][_0xb7ba('0x2b')][_0xb7ba('0x1')]&&this[_0xb7ba('0x2a')][_0xb7ba('0xf')][_0xb7ba('0x4c')][_0xb7ba('0x46')](),this['isAttached']=!0x0;}[_0xb7ba('0x2d')](){if(!this[_0xb7ba('0x4')])throw new _0x16c166(_0xb7ba('0x41'),this);this[_0xb7ba('0x10')](null);for(const _0x82f1a2 of this['_addedAnnotations'])this[_0xb7ba('0xa')](_0x82f1a2);this[_0xb7ba('0x26')](),this[_0xb7ba('0x4')]=!0x1,this['annotations']=null;}['destroy'](){this[_0xb7ba('0x4')]&&this[_0xb7ba('0x2d')]();}[_0xb7ba('0xe')](_0x15a0ca){for(const _0x4533e1 of this[_0xb7ba('0x8')])_0x15a0ca['includes'](_0x4533e1)||this[_0xb7ba('0x34')][_0xb7ba('0x23')](_0x4533e1);for(const _0x37f64d of this[_0xb7ba('0x36')])_0x15a0ca[_0xb7ba('0x29')](_0x37f64d)||this['_removeAnnotationFromBalloon'](_0x37f64d);if(this[_0xb7ba('0x2a')]['ui']['focusTracker'][_0xb7ba('0x45')])for(const _0x433594 of _0x15a0ca)this['_addAnnotationToBalloon'](_0x433594);this['_selectedAnnotations']=_0x15a0ca;}['_addAnnotationToBalloon'](_0x342197,_0x73d5b4=!0x1){this[_0xb7ba('0x34')]['has'](_0x342197)||(this[_0xb7ba('0x1e')]['has'](_0x342197)||this['_balloon'][_0xb7ba('0x19')](_0x342197[_0xb7ba('0x4c')])||(this[_0xb7ba('0x1e')][_0xb7ba('0x33')](_0x342197),this[_0xb7ba('0x7')]['add']({'stackId':_0x342197['view']['id'],'view':_0x342197['view'],'position':{'target':()=>this[_0xb7ba('0x3b')](_0x342197)}})),_0x73d5b4&&this[_0xb7ba('0x7')][_0xb7ba('0x5')](_0x342197[_0xb7ba('0x4c')]['id']));}[_0xb7ba('0x3b')](_0x2dab45){const _0x6716d8=_0x2dab45[_0xb7ba('0xc')],_0x2d2ab4=this[_0xb7ba('0x2a')]['editing'][_0xb7ba('0x4c')],_0x583316=_0x2d2ab4['document'][_0xb7ba('0x2b')][_0xb7ba('0x27')](),_0x17f306=_0x2d2ab4['domConverter'][_0xb7ba('0x1d')](_0x583316);if(_0x17f306[_0xb7ba('0x9')](!0x0),_0x6716d8){if(_0x6716d8 instanceof _0xb27067)return _0x6716d8;let _0xad49ae=[];for(const _0x25ead0 of _0x6716d8)_0xad49ae[_0xb7ba('0x49')](...(_0x2867ba=_0x25ead0[_0xb7ba('0x3d')](),Array['from'](_0x2867ba)[_0xb7ba('0x2e')](DOMRect[_0xb7ba('0x4d')])));_0xad49ae=function(_0x1351cf){const _0x226251=[];let _0x43432c=_0x1351cf[0x0];for(let _0x5d0ece=0x1;_0x5d0ece<_0x1351cf['length'];_0x5d0ece++)F(_0x43432c,_0x1351cf[_0x5d0ece])?_0x43432c[_0xb7ba('0x13')]+=_0x1351cf[_0x5d0ece][_0xb7ba('0x13')]:(_0x226251[_0xb7ba('0x49')](_0x43432c),_0x43432c=_0x1351cf[_0x5d0ece]);return _0x226251[_0xb7ba('0x49')](_0x43432c),_0x226251;}(_0xad49ae);const _0x2eba60=_0x17f306[_0xb7ba('0xb')]();return _0xad49ae['find'](_0x3c13fb=>_0x3c13fb[_0xb7ba('0x4e')]<=_0x2eba60[_0xb7ba('0x4e')]&&_0x3c13fb[_0xb7ba('0x0')]>=_0x2eba60['bottom']&&_0x3c13fb['left']<=_0x2eba60[_0xb7ba('0x24')]&&_0x3c13fb['right']>=_0x2eba60[_0xb7ba('0x1f')])||_0xad49ae[0x0];}var _0x2867ba;return _0x2dab45[_0xb7ba('0x39')]||_0x17f306;}['_removeAnnotationFromBalloon'](_0x445f65){this[_0xb7ba('0x1e')]['has'](_0x445f65)&&this[_0xb7ba('0x7')][_0xb7ba('0x19')](_0x445f65['view'])&&(this[_0xb7ba('0x1e')]['delete'](_0x445f65),this[_0xb7ba('0x7')][_0xb7ba('0x12')](_0x445f65[_0xb7ba('0x4c')]));}[_0xb7ba('0x2c')](_0x505cc3){this[_0xb7ba('0x34')][_0xb7ba('0x33')](_0x505cc3),this[_0xb7ba('0xa')](_0x505cc3);}}function F(_0x4bcbc6,_0x232e40){return _0x4bcbc6[_0xb7ba('0x4e')]===_0x232e40[_0xb7ba('0x4e')]&&_0x4bcbc6['bottom']===_0x232e40['bottom']&&_0x4bcbc6[_0xb7ba('0x1f')]===_0x232e40[_0xb7ba('0x24')];}
23
+ const _0x7b86=['showStack','viewRangeToDom','length','update','domConverter','every','context','fromRect','_selectedAnnotations','right','view','afterInit','activeAnnotation','editor','_addAnnotationToBalloon','mousedown','add','_manuallyClosed','addObserver','_setSelectedAnnotations','_balloon','destroy','document','editableElement','_removeAnnotationFromBalloon','focusTracker','plugins','getFirstRange','hasView','_closeAnnotation','getByView','inline','_addedAnnotations','editing','get','focus','annotations','requires','Esc','stopListening','_getBalloonTargetForAnnotation','bottom','delete','visibleView','isAttached','detach','keystrokes','collapse','isFocused','isActive','inlineannotations-not-allowed-with-context','map','change:isFocused','setActiveAnnotation','InlineAnnotations','_forceRefresh','clear','set','left','blur','selection','find','getClientRects','top','width','inlineannotations-detach-not-attached','inlineannotations-attach-already-attached','remove','includes','targetRect','listenTo','has','getBoundingClientRect','push','getOrderedSelectedAnnotations'];(function(_0x598a6f,_0x7b86b){const _0x42768b=function(_0x361184){while(--_0x361184){_0x598a6f['push'](_0x598a6f['shift']());}};_0x42768b(++_0x7b86b);}(_0x7b86,0x1dc));const _0x4276=function(_0x598a6f,_0x7b86b){_0x598a6f=_0x598a6f-0x0;let _0x42768b=_0x7b86[_0x598a6f];return _0x42768b;};import{Plugin as _0x50deb7}from'ckeditor5/src/core';import _0x2334a7 from'./annotationsuis';import _0x1e62fc from'./editorannotations';import{ContextualBalloon as _0x228d3c}from'ckeditor5/src/ui';import{MouseObserver as _0x5ded37}from'ckeditor5/src/engine';import{CKEditorError as _0x486946,Rect as _0x3092db}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x50deb7{static get[_0x4276('0xb')](){return[_0x1e62fc,_0x228d3c,_0x2334a7];}static get['pluginName'](){return _0x4276('0x1c');}constructor(_0x2e5fb2){super(_0x2e5fb2),_0x2e5fb2[_0x4276('0x7')][_0x4276('0x3b')][_0x4276('0x43')](_0x5ded37),this[_0x4276('0x12')]=!0x1,this[_0x4276('0x1f')](_0x4276('0x3d'),null),this['annotations']=null,this[_0x4276('0x42')]=new Set(),this[_0x4276('0x45')]=_0x2e5fb2[_0x4276('0x0')][_0x4276('0x8')](_0x228d3c),this[_0x4276('0x6')]=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x1b7f7f=this[_0x4276('0x3e')]['plugins'][_0x4276('0x8')](_0x2334a7);_0x1b7f7f[_0x4276('0x37')]===this[_0x4276('0x3e')]&&(_0x1b7f7f['register']('inline',this),this['editor'][_0x4276('0x14')][_0x4276('0x1f')](_0x4276('0xc'),(_0x104f88,_0x520180)=>{const _0x327206=this[_0x4276('0x45')];if(this['isAttached']&&_0x327206[_0x4276('0x11')]){const _0x4c1069=this[_0x4276('0xa')][_0x4276('0x4')](_0x327206['visibleView']);_0x4c1069&&this[_0x4276('0x3')](_0x4c1069),_0x520180();}}));}[_0x4276('0x3c')](){const _0x3c0aac=this[_0x4276('0x3e')]['plugins'][_0x4276('0x8')](_0x2334a7);_0x3c0aac[_0x4276('0x37')]===this[_0x4276('0x3e')]&&(_0x3c0aac['hasActive']()||_0x3c0aac['switchTo'](_0x4276('0x5')));}[_0x4276('0x1b')](_0x43b139){_0x43b139!==this['activeAnnotation']&&(this[_0x4276('0x3d')]&&(this[_0x4276('0x3d')][_0x4276('0x17')]=!0x1),_0x43b139&&this[_0x4276('0x3e')]['ui']['focusTracker'][_0x4276('0x16')]&&(this[_0x4276('0xa')]['has'](_0x43b139)&&this['_addAnnotationToBalloon'](_0x43b139,!0x0),_0x43b139[_0x4276('0x17')]=!0x0),_0x43b139||this[_0x4276('0x44')]([]),this[_0x4276('0x3d')]=_0x43b139);}['attach'](_0x16b867){this[_0x4276('0xa')]=_0x16b867;const _0x2d3edb=this[_0x4276('0x3e')][_0x4276('0x0')][_0x4276('0x8')](_0x2334a7),_0x347e83=this['_balloon'];if(this[_0x4276('0x12')])throw new _0x486946(_0x4276('0x28'),this);if(_0x2d3edb['context']!==this[_0x4276('0x3e')])throw new _0x486946(_0x4276('0x18'),this);const _0x2c3316=this['editor'][_0x4276('0x0')][_0x4276('0x8')](_0x1e62fc);this[_0x4276('0x2c')](_0x2c3316,'refresh',()=>{const _0x1019b9=_0x2c3316[_0x4276('0x30')]({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x8973c5,_0x229534;!this[_0x4276('0x1d')]&&(_0x8973c5=_0x1019b9,_0x229534=this[_0x4276('0x39')],_0x8973c5[_0x4276('0x33')]===_0x229534[_0x4276('0x33')]&&_0x8973c5[_0x4276('0x36')](_0x535d2b=>_0x229534[_0x4276('0x2a')](_0x535d2b)))||(this[_0x4276('0x1d')]=!0x1,this[_0x4276('0x44')](_0x1019b9),this[_0x4276('0x1b')](_0x1019b9[0x0]||null));}),this['listenTo'](_0x2c3316,_0x4276('0x21'),(_0x5ae4bf,{isAnnotationTracked:_0x191754})=>{this[_0x4276('0x3d')]&&_0x191754(this[_0x4276('0x3d')])&&(this[_0x4276('0x44')]([]),this['setActiveAnnotation'](null));}),this['listenTo'](this[_0x4276('0x3e')]['ui']['focusTracker'],_0x4276('0x1a'),(_0x1e5087,_0x180647,_0x49fe23)=>{_0x49fe23||this[_0x4276('0x1b')](null);}),this[_0x4276('0x2c')](_0x16b867,_0x4276('0x29'),(_0x4a23ef,_0x2c17fe)=>{this[_0x4276('0x49')](_0x2c17fe),_0x2c17fe===this[_0x4276('0x3d')]&&this[_0x4276('0x1b')](null);}),this[_0x4276('0x2c')](_0x347e83,'change:visibleView',(_0x523fce,_0x4d2d96,_0x2b011f,_0x5a8973)=>{_0x5a8973&&this[_0x4276('0xd')](_0x5a8973);const _0x2629e0=_0x16b867[_0x4276('0x4')](_0x2b011f);_0x2b011f&&_0x2629e0&&(this[_0x4276('0x2c')](_0x2b011f,'change:height',()=>{_0x347e83['updatePosition']();}),this['listenTo'](_0x2b011f,_0x4276('0xc'),()=>{this[_0x4276('0x3')](_0x2629e0),this['editor'][_0x4276('0x7')]['view']['focus']();}),this[_0x4276('0x3d')]!==_0x2629e0&&this['setActiveAnnotation'](_0x2629e0));}),this[_0x4276('0x2c')](this[_0x4276('0x3e')]['ui'],_0x4276('0x34'),()=>{_0x347e83['visibleView']&&(_0x16b867[_0x4276('0x4')](_0x347e83[_0x4276('0x11')])&&_0x347e83['updatePosition']());}),this[_0x4276('0x2c')](this[_0x4276('0x3e')][_0x4276('0x7')][_0x4276('0x3b')][_0x4276('0x47')],_0x4276('0x40'),()=>{this[_0x4276('0x1d')]=!0x0,this[_0x4276('0x42')][_0x4276('0x1e')]();}),this[_0x4276('0x3e')][_0x4276('0x7')]['view'][_0x4276('0x47')][_0x4276('0x22')][_0x4276('0x48')]&&this[_0x4276('0x3e')]['editing'][_0x4276('0x3b')][_0x4276('0x9')](),this[_0x4276('0x12')]=!0x0;}[_0x4276('0x13')](){if(!this[_0x4276('0x12')])throw new _0x486946(_0x4276('0x27'),this);this[_0x4276('0x1b')](null);for(const _0xc1eebf of this[_0x4276('0x6')])this[_0x4276('0x49')](_0xc1eebf);this[_0x4276('0xd')](),this[_0x4276('0x12')]=!0x1,this['annotations']=null;}[_0x4276('0x46')](){this['isAttached']&&this[_0x4276('0x13')]();}[_0x4276('0x44')](_0x2b07fd){for(const _0x5d1f29 of this[_0x4276('0x39')])_0x2b07fd[_0x4276('0x2a')](_0x5d1f29)||this[_0x4276('0x42')][_0x4276('0x10')](_0x5d1f29);for(const _0x2c69fc of this['annotations'])_0x2b07fd[_0x4276('0x2a')](_0x2c69fc)||this['_removeAnnotationFromBalloon'](_0x2c69fc);if(this[_0x4276('0x3e')]['ui'][_0x4276('0x4a')][_0x4276('0x16')])for(const _0x9955f6 of _0x2b07fd)this[_0x4276('0x3f')](_0x9955f6);this[_0x4276('0x39')]=_0x2b07fd;}[_0x4276('0x3f')](_0x1f823a,_0x203403=!0x1){this['_manuallyClosed'][_0x4276('0x2d')](_0x1f823a)||(this[_0x4276('0x6')]['has'](_0x1f823a)||this[_0x4276('0x45')][_0x4276('0x2')](_0x1f823a[_0x4276('0x3b')])||(this[_0x4276('0x6')]['add'](_0x1f823a),this[_0x4276('0x45')][_0x4276('0x41')]({'stackId':_0x1f823a[_0x4276('0x3b')]['id'],'view':_0x1f823a[_0x4276('0x3b')],'position':{'target':()=>this[_0x4276('0xe')](_0x1f823a)}})),_0x203403&&this[_0x4276('0x45')][_0x4276('0x31')](_0x1f823a[_0x4276('0x3b')]['id']));}[_0x4276('0xe')](_0x30b00a){const _0x5281a7=_0x30b00a['target'],_0x1bddd6=this[_0x4276('0x3e')][_0x4276('0x7')][_0x4276('0x3b')],_0x5d074e=_0x1bddd6[_0x4276('0x47')][_0x4276('0x22')][_0x4276('0x1')](),_0x1c8b41=_0x1bddd6[_0x4276('0x35')][_0x4276('0x32')](_0x5d074e);if(_0x1c8b41[_0x4276('0x15')](!0x0),_0x5281a7){if(_0x5281a7 instanceof _0x3092db)return _0x5281a7;let _0x730e05=[];for(const _0x4a0168 of _0x5281a7)_0x730e05[_0x4276('0x2f')](...(_0x3c4639=_0x4a0168[_0x4276('0x24')](),Array['from'](_0x3c4639)[_0x4276('0x19')](DOMRect[_0x4276('0x38')])));_0x730e05=function(_0x5ef2f9){const _0x18ee19=[];let _0x549332=_0x5ef2f9[0x0];for(let _0x32a32a=0x1;_0x32a32a<_0x5ef2f9['length'];_0x32a32a++)F(_0x549332,_0x5ef2f9[_0x32a32a])?_0x549332[_0x4276('0x26')]+=_0x5ef2f9[_0x32a32a][_0x4276('0x26')]:(_0x18ee19[_0x4276('0x2f')](_0x549332),_0x549332=_0x5ef2f9[_0x32a32a]);return _0x18ee19['push'](_0x549332),_0x18ee19;}(_0x730e05);const _0x40f224=_0x1c8b41[_0x4276('0x2e')]();return _0x730e05[_0x4276('0x23')](_0x5dc150=>_0x5dc150[_0x4276('0x25')]<=_0x40f224[_0x4276('0x25')]&&_0x5dc150[_0x4276('0xf')]>=_0x40f224['bottom']&&_0x5dc150[_0x4276('0x20')]<=_0x40f224[_0x4276('0x20')]&&_0x5dc150[_0x4276('0x3a')]>=_0x40f224[_0x4276('0x3a')])||_0x730e05[0x0];}var _0x3c4639;return _0x30b00a[_0x4276('0x2b')]||_0x1c8b41;}[_0x4276('0x49')](_0x142e11){this[_0x4276('0x6')][_0x4276('0x2d')](_0x142e11)&&this['_balloon'][_0x4276('0x2')](_0x142e11[_0x4276('0x3b')])&&(this[_0x4276('0x6')][_0x4276('0x10')](_0x142e11),this[_0x4276('0x45')][_0x4276('0x29')](_0x142e11['view']));}['_closeAnnotation'](_0x46d373){this['_manuallyClosed']['add'](_0x46d373),this[_0x4276('0x49')](_0x46d373);}}function F(_0x25b90e,_0x56b90b){return _0x25b90e[_0x4276('0x25')]===_0x56b90b['top']&&_0x25b90e[_0x4276('0xf')]===_0x56b90b[_0x4276('0xf')]&&_0x25b90e[_0x4276('0x3a')]===_0x56b90b[_0x4276('0x20')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5f5b=['remove','hasDomSelection','_annotationToNarrowView','element','_integrateWithEditorAnnotations','southArrowNorthEast','delete','has','EditorAnnotations','activeAnnotation','esc','get','isDirty','off','set','attach','detachFromDom','northArrowSouth','length','pluginName','_refreshPositioning','_destroyEditorAnnotationsIntegration','editors','init','southArrowNorthWest','_setSelectedAnnotations','_detachListeners','first','NarrowSidebar','defaultPositions','change:container','bodyCollection','focus','type','ck-sidebar--narrow','_hideBalloon','context','blur','narrowsidebar-attach-already-attached','getSidebarItemView','requires','refresh','values','northArrowSouthWest','destroy','pin','refreshPositioning','balloonPanelView','_editorAnnotations','mousedown','_showBalloon','contains','low','isVisible','locale','focusableElements','register','execute','stopListening','resize','from','add','content','view','number','setActiveAnnotation','find','preventClosingBalloon','isAttached','_domEmitter','target','_manuallyClosedAnnotationViews','uiUpdate','narrowSidebar','set:container','_detachFromContainer','narrowsidebar-detach-not-attached','_attachListeners','_refreshPositioningDebounced','clear','create','southArrowNorth','_selectedAnnotations','detach','keydown','annotationType','bind','getByView','stopPropagation','annotations','listenTo','plugins','cancel'];(function(_0xd0efd0,_0x5f5bb0){const _0xc73814=function(_0x1e2b42){while(--_0x1e2b42){_0xd0efd0['push'](_0xd0efd0['shift']());}};_0xc73814(++_0x5f5bb0);}(_0x5f5b,0x9a));const _0xc738=function(_0xd0efd0,_0x5f5bb0){_0xd0efd0=_0xd0efd0-0x0;let _0xc73814=_0x5f5b[_0xd0efd0];return _0xc73814;};import{ContextPlugin as _0x38cd2c,Context as _0x48535f}from'ckeditor5/src/core';import _0x1aeeff from'./annotationsuis';import _0x3b70c9 from'./sidebar';import _0x2d1ad3 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x5859a2,BodyCollection as _0xab949c}from'ckeditor5/src/ui';import{CKEditorError as _0x2d3f6e,DomEmitterMixin as _0x3db1db,keyCodes as _0x40330e,Collection as _0x44255a}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1c266e}from'lodash-es';import _0x114b3a from'./editorannotations';export default class s extends _0x38cd2c{static get[_0xc738('0x48')](){return[_0x3b70c9,_0x1aeeff];}static get[_0xc738('0x33')](){return _0xc738('0x3c');}constructor(_0x15b948){super(_0x15b948),this[_0xc738('0x7')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0xc738('0x8')]=Object[_0xc738('0x13')](_0x3db1db),this[_0xc738('0x22')]=new Map(),this[_0xc738('0x2e')]('activeAnnotation',null),this[_0xc738('0x1c')]=null,this[_0xc738('0x15')]=[],this[_0xc738('0x50')]=new _0x44255a(),this[_0xc738('0x11')]=_0x1c266e(()=>{this[_0xc738('0x34')]();},0xfa,{'leading':!0x1});}[_0xc738('0x37')](){this[_0xc738('0x44')][_0xc738('0x1e')]['get'](_0x1aeeff)[_0xc738('0x58')](_0xc738('0xc'),this),this[_0xc738('0x3f')]=new _0xab949c(this[_0xc738('0x44')][_0xc738('0x56')]),this[_0xc738('0x4f')]=new _0x5859a2(this[_0xc738('0x44')][_0xc738('0x56')]),this['bodyCollection']['attachToDom'](),this[_0xc738('0x3f')][_0xc738('0x0')](this[_0xc738('0x4f')]);}[_0xc738('0x2f')](_0x40c871){this[_0xc738('0x1c')]=_0x40c871;const _0x3af15b=this[_0xc738('0x44')][_0xc738('0x1e')][_0xc738('0x2b')](_0x3b70c9),_0x4543ae=this[_0xc738('0x4f')];if(_0x3af15b['_annotations']=_0x40c871,this[_0xc738('0x7')])throw new _0x2d3f6e(_0xc738('0x46'),this);this[_0xc738('0x7')]=!0x0,this['listenTo'](_0x3af15b,_0xc738('0xd'),()=>{this[_0xc738('0x16')](),this['listenTo'](_0x3af15b,_0xc738('0x3e'),_0x30c800=>{_0x30c800[_0xc738('0x2d')](),this[_0xc738('0x2f')](_0x40c871);});}),_0x3af15b['_attachToContainer']({'viewClass':_0xc738('0x42'),'spaceBetweenItems':0x5});const _0x426afa=_0x17437f=>{const _0x2fa37b=new _0x2d1ad3(this['context'][_0xc738('0x56')]);_0x3af15b['addAnnotation'](_0x17437f,_0x2fa37b),this['_annotationToNarrowView']['set'](_0x17437f,_0x2fa37b),_0x2fa37b[_0xc738('0x19')](_0xc738('0x2c'),_0xc738('0x18'),_0xc738('0x3'))['to'](_0x17437f[_0xc738('0x2')],_0xc738('0x2c'),_0xc738('0x41'),_0xc738('0x32')),_0x2fa37b['on'](_0xc738('0x59'),()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x4543ae[_0xc738('0x1')][_0xc738('0x3b')]!==_0x17437f[_0xc738('0x2')]?(this[_0xc738('0x52')](_0x17437f),_0x17437f[_0xc738('0x2')][_0xc738('0x23')][_0xc738('0x40')](),this[_0xc738('0x4')](_0x17437f)):this[_0xc738('0x4')](null);});};for(const _0x5c147a of _0x40c871)_0x426afa(_0x5c147a);this[_0xc738('0x1d')](_0x40c871,'add',(_0x3c5492,_0x3ce3b2)=>{_0x426afa(_0x3ce3b2);}),this['listenTo'](_0x40c871,'remove',(_0x50ec5c,_0x131cb9,_0x348770)=>{this[_0xc738('0x22')][_0xc738('0x2b')](_0x131cb9)[_0xc738('0x4c')](),this[_0xc738('0x22')][_0xc738('0x26')](_0x131cb9),_0x3af15b['rearrange']({'removedAnnotation':_0x131cb9,'previousAnnotation':_0x40c871[_0xc738('0x2b')](_0x348770-0x1),'nextAnnotation':_0x40c871[_0xc738('0x2b')](_0x348770+0x1)}),_0x131cb9===this['activeAnnotation']&&this[_0xc738('0x4')](null);},{'priority':_0xc738('0x54')}),this[_0xc738('0x1d')](_0x40c871,_0xc738('0x40'),(_0x3bbf29,_0x2757de)=>{this[_0xc738('0x4')](_0x2757de);}),this[_0xc738('0x1d')](_0x40c871,_0xc738('0x45'),()=>{this[_0xc738('0x4')](null);}),this[_0xc738('0x8')]['listenTo'](document,_0xc738('0x17'),(_0x4258f4,_0x4d0ce0)=>{_0x4d0ce0['keyCode']===_0x40330e[_0xc738('0x2a')]&&_0x4543ae['isVisible']&&(this[_0xc738('0xa')]['add'](_0x4543ae[_0xc738('0x1')]['first']),this[_0xc738('0x43')](),_0x4d0ce0[_0xc738('0x1b')](),_0x4d0ce0['preventDefault']());}),this[_0xc738('0x8')][_0xc738('0x1d')](document,_0xc738('0x51'),(_0x56cd81,_0x1b9964)=>{const _0x48fc41=_0x1b9964[_0xc738('0x9')];_0x4543ae[_0xc738('0x55')]&&_0x4543ae[_0xc738('0x23')][_0xc738('0x53')](_0x48fc41)||_0x3af15b[_0xc738('0x2')][_0xc738('0x23')][_0xc738('0x53')](_0x48fc41)||_0x56cd81[_0xc738('0x6')]||this[_0xc738('0x29')]&&this[_0xc738('0x29')][_0xc738('0x57')][_0xc738('0x5')](_0x32fed8=>_0x32fed8['contains'](_0x48fc41))||(this['_manuallyClosedAnnotationViews']['clear'](),this[_0xc738('0x43')](),this[_0xc738('0x4')](null));});const _0x124ab3=this[_0xc738('0x44')]instanceof _0x48535f?this[_0xc738('0x44')][_0xc738('0x36')]:new _0x44255a([this['context']]);for(const _0x669483 of _0x124ab3)this[_0xc738('0x24')](_0x669483);this[_0xc738('0x1d')](_0x124ab3,_0xc738('0x0'),(_0x1d2e2e,_0x9b7977)=>{this['listenTo'](_0x9b7977,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x9b7977);});}),this[_0xc738('0x1d')](_0x124ab3,_0xc738('0x20'),(_0x1ffc21,_0x20895f)=>{_0x20895f['plugins']['has'](_0xc738('0x28'))&&this[_0xc738('0x35')](_0x20895f[_0xc738('0x1e')][_0xc738('0x2b')](_0xc738('0x28')));}),window['addEventListener'](_0xc738('0x5b'),this[_0xc738('0x11')]),this[_0xc738('0x34')]();}[_0xc738('0x4')](_0x4a00cd){if(_0x4a00cd===this[_0xc738('0x29')])return;const _0x30cd93=this[_0xc738('0x44')][_0xc738('0x1e')][_0xc738('0x2b')](_0x3b70c9);if(_0x30cd93[_0xc738('0x49')]({'blurredAnnotation':this[_0xc738('0x29')],'activatedAnnotation':_0x4a00cd,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4a00cd)_0x30cd93[_0xc738('0x47')](_0x4a00cd)?this[_0xc738('0x52')](_0x4a00cd):this[_0xc738('0x43')]();else this[_0xc738('0x43')]();this[_0xc738('0x29')]=_0x4a00cd;}[_0xc738('0x16')](){if(!this[_0xc738('0x7')])throw new _0x2d3f6e(_0xc738('0xf'),this);this[_0xc738('0x4')](null);const _0xbc79ad=this['context'][_0xc738('0x1e')]['get'](_0x3b70c9);this[_0xc738('0x43')](),Array['from'](this[_0xc738('0x22')][_0xc738('0x4a')](),_0x94cd13=>_0x94cd13[_0xc738('0x4c')]()),this[_0xc738('0x22')][_0xc738('0x12')](),_0xbc79ad[_0xc738('0xe')](this[_0xc738('0x1c')]),this[_0xc738('0x5a')](),this[_0xc738('0x8')][_0xc738('0x5a')](),this[_0xc738('0x44')]instanceof _0x48535f&&this[_0xc738('0x5a')](this[_0xc738('0x44')][_0xc738('0x36')]);for(const _0x140ae2 of Array[_0xc738('0x5c')](this[_0xc738('0x50')]))this[_0xc738('0x35')](_0x140ae2);window['removeEventListener'](_0xc738('0x5b'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0xc738('0x1f')](),this[_0xc738('0x15')]=[],this[_0xc738('0x7')]=!0x1,this[_0xc738('0x1c')]=null;}[_0xc738('0x4c')](){this[_0xc738('0x7')]&&this[_0xc738('0x16')](),this[_0xc738('0x3f')][_0xc738('0x30')]();}[_0xc738('0x24')](_0x181849){const _0x39ff10=_0x181849[_0xc738('0x1e')]['get'](_0x114b3a),_0x11c1bb=this[_0xc738('0x44')][_0xc738('0x1e')]['get'](_0x3b70c9),_0xd29d6=this[_0xc738('0x1c')],_0x322aa6=this[_0xc738('0x4f')],_0x1e34ea=()=>{const _0xbf8f29=_0x39ff10['getOrderedSelectedAnnotations']({'annotations':this[_0xc738('0x1c')],'activeAnnotation':this[_0xc738('0x29')]});this[_0xc738('0x39')](_0xbf8f29),this['setActiveAnnotation'](_0xbf8f29[0x0]||null);};this['listenTo'](_0x39ff10,_0xc738('0x49'),_0x1e34ea),this[_0xc738('0x1d')](_0x39ff10,_0xc738('0x45'),(_0x13cc63,{isAnnotationTracked:_0x4df64a})=>{this['activeAnnotation']&&_0x4df64a(this[_0xc738('0x29')])&&(this[_0xc738('0x39')]([]),this[_0xc738('0x4')](null));}),this['listenTo'](_0x39ff10,_0xc738('0xb'),()=>{this[_0xc738('0x11')]();}),this[_0xc738('0x1d')](_0xd29d6,_0xc738('0x45'),_0xcf5d73=>{_0x39ff10[_0xc738('0x21')]()&&_0xcf5d73['stop']();},{'priority':'high'}),this['listenTo'](this[_0xc738('0x8')],'mousedown',(_0x24a7e4,_0x1ccb2f)=>{const _0x396a0a=_0x1ccb2f[_0xc738('0x9')];_0x322aa6[_0xc738('0x55')]&&_0x322aa6[_0xc738('0x23')][_0xc738('0x53')](_0x396a0a)||_0x11c1bb['view'][_0xc738('0x23')][_0xc738('0x53')](_0x396a0a)||this[_0xc738('0x29')]&&_0x39ff10['hasDomSelection']()&&(_0x1e34ea(),_0x24a7e4[_0xc738('0x6')]=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x39ff10);}[_0xc738('0x35')](_0x581bb2){_0x581bb2&&(this[_0xc738('0x5a')](_0x581bb2),this['_editorAnnotations'][_0xc738('0x20')](_0x581bb2));}[_0xc738('0x39')](_0xb40a40){for(const _0x2d2b8a of this[_0xc738('0x15')])_0xb40a40['includes'](_0x2d2b8a)||this[_0xc738('0xa')][_0xc738('0x26')](_0x2d2b8a['view']);this[_0xc738('0x15')]=_0xb40a40;}[_0xc738('0x34')](){const _0x18d01c=this[_0xc738('0x4f')];this[_0xc738('0x1c')][_0xc738('0x4e')](),_0x18d01c['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x252253){if(this[_0xc738('0xa')][_0xc738('0x27')](_0x252253['view']))return;const _0x2a4765=this[_0xc738('0x4f')][_0xc738('0x1')][_0xc738('0x3b')];_0x2a4765!==_0x252253[_0xc738('0x2')]?(_0x2a4765&&this[_0xc738('0x3a')](_0x2a4765),this['_attachListeners'](_0x252253['view']),this[_0xc738('0x4f')][_0xc738('0x1')][_0xc738('0x12')](),this[_0xc738('0x4f')]['content'][_0xc738('0x0')](_0x252253[_0xc738('0x2')]),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x212f9a=this['balloonPanelView'][_0xc738('0x1')][_0xc738('0x3b')],_0x2d7d92=_0x212f9a&&this[_0xc738('0x1c')][_0xc738('0x1a')](_0x212f9a);if(!_0x2d7d92||!this[_0xc738('0x22')][_0xc738('0x27')](_0x2d7d92))return;const _0x2aaea9=this[_0xc738('0x22')][_0xc738('0x2b')](_0x2d7d92)[_0xc738('0x23')],_0x45c7ca=function(){const _0x1b2546=_0x5859a2[_0xc738('0x3d')];return[_0x1b2546[_0xc738('0x25')],_0x1b2546['northArrowSouthEast'],_0x1b2546[_0xc738('0x14')],_0x1b2546[_0xc738('0x31')],_0x1b2546[_0xc738('0x38')],_0x1b2546[_0xc738('0x4b')]];}();this['balloonPanelView'][_0xc738('0x4d')]({'target':_0x2aaea9,'positions':_0x45c7ca});}[_0xc738('0x43')](){const _0x11e906=this[_0xc738('0x4f')],_0x1d3484=_0x11e906['content'][_0xc738('0x3b')];_0x1d3484&&(this['_detachListeners'](_0x1d3484),_0x11e906['unpin'](),_0x11e906[_0xc738('0x1')]['clear']());}[_0xc738('0x10')](_0x281a29){this[_0xc738('0x1d')](_0x281a29,'change:height',()=>this['_updateBalloonPosition']()),this[_0xc738('0x1d')](_0x281a29,'Esc',(_0x5e8be9,_0xe87ba0)=>{this[_0xc738('0xa')]['add'](_0x281a29),this[_0xc738('0x43')](),_0xe87ba0();});}['_detachListeners'](_0x4725d3){this[_0xc738('0x5a')](_0x4725d3);}}
23
+ const _0xfa08=['getByView','resize','_integrateWithEditorAnnotations','refreshPositioning','northArrowSouthWest','blur','detachFromDom','includes','focusableElements','type','listenTo','locale','isAttached','delete','low','register','high','keydown','annotationType','removeEventListener','set','values','change:container','has','first','isDirty','editors','_annotationToNarrowView','refresh','_refreshPositioningDebounced','attach','hasDomSelection','_showBalloon','_setSelectedAnnotations','preventDefault','preventClosingBalloon','pluginName','uiUpdate','_destroyEditorAnnotationsIntegration','narrowsidebar-detach-not-attached','bind','remove','_hideBalloon','destroy','southArrowNorthWest','_annotations','narrowSidebar','clear','EditorAnnotations','stop','mousedown','_detachFromContainer','view','annotations','bodyCollection','contains','addEventListener','plugins','pin','_manuallyClosedAnnotationViews','isVisible','from','getOrderedSelectedAnnotations','requires','getSidebarItemView','length','_attachToContainer','context','content','get','balloonPanelView','detach','_selectedAnnotations','add','_detachListeners','stopListening','_editorAnnotations','setActiveAnnotation','element','NarrowSidebar','target','activeAnnotation','Esc','cancel','defaultPositions','southArrowNorth','off','_domEmitter','_refreshPositioning','ready','esc','change:height','_updateBalloonPosition'];(function(_0x4413c1,_0xfa08f2){const _0x54df91=function(_0x23f15a){while(--_0x23f15a){_0x4413c1['push'](_0x4413c1['shift']());}};_0x54df91(++_0xfa08f2);}(_0xfa08,0x182));const _0x54df=function(_0x4413c1,_0xfa08f2){_0x4413c1=_0x4413c1-0x0;let _0x54df91=_0xfa08[_0x4413c1];return _0x54df91;};import{ContextPlugin as _0x47c858,Context as _0x5d6eea}from'ckeditor5/src/core';import _0x415f2b from'./annotationsuis';import _0x1deb1f from'./sidebar';import _0x20704d from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2ce8de,BodyCollection as _0x248c2a}from'ckeditor5/src/ui';import{CKEditorError as _0x3ffe79,DomEmitterMixin as _0x38d3bb,keyCodes as _0x5cf755,Collection as _0x27a02e}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x2856e0}from'lodash-es';import _0x338548 from'./editorannotations';export default class s extends _0x47c858{static get[_0x54df('0x31')](){return[_0x1deb1f,_0x415f2b];}static get[_0x54df('0x16')](){return _0x54df('0x41');}constructor(_0x354137){super(_0x354137),this[_0x54df('0x5b')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x54df('0x49')]=Object['create'](_0x38d3bb),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this[_0x54df('0x3a')]=[],this[_0x54df('0x3e')]=new _0x27a02e(),this['_refreshPositioningDebounced']=_0x2856e0(()=>{this[_0x54df('0x4a')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x54df('0x35')][_0x54df('0x2b')][_0x54df('0x37')](_0x415f2b)[_0x54df('0x1')](_0x54df('0x20'),this),this['bodyCollection']=new _0x248c2a(this[_0x54df('0x35')][_0x54df('0x5a')]),this[_0x54df('0x38')]=new _0x2ce8de(this[_0x54df('0x35')][_0x54df('0x5a')]),this[_0x54df('0x28')]['attachToDom'](),this[_0x54df('0x28')]['add'](this[_0x54df('0x38')]);}[_0x54df('0x10')](_0x98f678){this['annotations']=_0x98f678;const _0x5e4025=this[_0x54df('0x35')][_0x54df('0x2b')]['get'](_0x1deb1f),_0x480d57=this['balloonPanelView'];if(_0x5e4025[_0x54df('0x1f')]=_0x98f678,this[_0x54df('0x5b')])throw new _0x3ffe79('narrowsidebar-attach-already-attached',this);this[_0x54df('0x5b')]=!0x0,this['listenTo'](_0x5e4025,'set:container',()=>{this[_0x54df('0x39')](),this[_0x54df('0x59')](_0x5e4025,_0x54df('0x8'),_0x44e843=>{_0x44e843[_0x54df('0x48')](),this['attach'](_0x98f678);});}),_0x5e4025[_0x54df('0x34')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x3ff739=_0x52ec86=>{const _0x2a8c47=new _0x20704d(this[_0x54df('0x35')][_0x54df('0x5a')]);_0x5e4025['addAnnotation'](_0x52ec86,_0x2a8c47),this[_0x54df('0xd')][_0x54df('0x6')](_0x52ec86,_0x2a8c47),_0x2a8c47[_0x54df('0x1a')](_0x54df('0xb'),_0x54df('0x4'),'number')['to'](_0x52ec86[_0x54df('0x26')],_0x54df('0xb'),_0x54df('0x58'),_0x54df('0x33')),_0x2a8c47['on']('execute',()=>{this['_manuallyClosedAnnotationViews'][_0x54df('0x21')](),_0x480d57[_0x54df('0x36')]['first']!==_0x52ec86[_0x54df('0x26')]?(this[_0x54df('0x12')](_0x52ec86),_0x52ec86['view'][_0x54df('0x40')]['focus'](),this[_0x54df('0x3f')](_0x52ec86)):this[_0x54df('0x3f')](null);});};for(const _0x51bdd6 of _0x98f678)_0x3ff739(_0x51bdd6);this[_0x54df('0x59')](_0x98f678,_0x54df('0x3b'),(_0x142504,_0x5df9ae)=>{_0x3ff739(_0x5df9ae);}),this[_0x54df('0x59')](_0x98f678,'remove',(_0x4391d1,_0x53aa06,_0x13c94d)=>{this['_annotationToNarrowView'][_0x54df('0x37')](_0x53aa06)[_0x54df('0x1d')](),this[_0x54df('0xd')][_0x54df('0x5c')](_0x53aa06),_0x5e4025['rearrange']({'removedAnnotation':_0x53aa06,'previousAnnotation':_0x98f678['get'](_0x13c94d-0x1),'nextAnnotation':_0x98f678[_0x54df('0x37')](_0x13c94d+0x1)}),_0x53aa06===this[_0x54df('0x43')]&&this['setActiveAnnotation'](null);},{'priority':_0x54df('0x0')}),this[_0x54df('0x59')](_0x98f678,'focus',(_0x4c8a5c,_0x4c63a2)=>{this[_0x54df('0x3f')](_0x4c63a2);}),this[_0x54df('0x59')](_0x98f678,'blur',()=>{this['setActiveAnnotation'](null);}),this[_0x54df('0x49')]['listenTo'](document,_0x54df('0x3'),(_0x374d8a,_0x5a1e0c)=>{_0x5a1e0c['keyCode']===_0x5cf755[_0x54df('0x4c')]&&_0x480d57[_0x54df('0x2e')]&&(this[_0x54df('0x2d')][_0x54df('0x3b')](_0x480d57[_0x54df('0x36')][_0x54df('0xa')]),this[_0x54df('0x1c')](),_0x5a1e0c['stopPropagation'](),_0x5a1e0c[_0x54df('0x14')]());}),this[_0x54df('0x49')][_0x54df('0x59')](document,'mousedown',(_0x56ec4b,_0x1f5911)=>{const _0x270db5=_0x1f5911['target'];_0x480d57[_0x54df('0x2e')]&&_0x480d57[_0x54df('0x40')][_0x54df('0x29')](_0x270db5)||_0x5e4025[_0x54df('0x26')]['element']['contains'](_0x270db5)||_0x56ec4b[_0x54df('0x15')]||this[_0x54df('0x43')]&&this[_0x54df('0x43')][_0x54df('0x57')]['find'](_0x113ae6=>_0x113ae6[_0x54df('0x29')](_0x270db5))||(this[_0x54df('0x2d')]['clear'](),this[_0x54df('0x1c')](),this[_0x54df('0x3f')](null));});const _0x5696fc=this[_0x54df('0x35')]instanceof _0x5d6eea?this[_0x54df('0x35')][_0x54df('0xc')]:new _0x27a02e([this[_0x54df('0x35')]]);for(const _0x442bc0 of _0x5696fc)this['_integrateWithEditorAnnotations'](_0x442bc0);this[_0x54df('0x59')](_0x5696fc,_0x54df('0x3b'),(_0x1eabbd,_0x29f3e2)=>{this[_0x54df('0x59')](_0x29f3e2,_0x54df('0x4b'),()=>{this[_0x54df('0x51')](_0x29f3e2);});}),this[_0x54df('0x59')](_0x5696fc,_0x54df('0x1b'),(_0x47a0f3,_0x7614f3)=>{_0x7614f3[_0x54df('0x2b')]['has']('EditorAnnotations')&&this[_0x54df('0x18')](_0x7614f3[_0x54df('0x2b')]['get'](_0x54df('0x22')));}),window[_0x54df('0x2a')](_0x54df('0x50'),this[_0x54df('0xf')]),this[_0x54df('0x4a')]();}[_0x54df('0x3f')](_0x255400){if(_0x255400===this['activeAnnotation'])return;const _0xe8263e=this[_0x54df('0x35')]['plugins'][_0x54df('0x37')](_0x1deb1f);if(_0xe8263e['refresh']({'blurredAnnotation':this[_0x54df('0x43')],'activatedAnnotation':_0x255400,'disableAnimationOnActivatedAnnotation':!0x0}),_0x255400)_0xe8263e[_0x54df('0x32')](_0x255400)?this[_0x54df('0x12')](_0x255400):this[_0x54df('0x1c')]();else this[_0x54df('0x1c')]();this[_0x54df('0x43')]=_0x255400;}['detach'](){if(!this[_0x54df('0x5b')])throw new _0x3ffe79(_0x54df('0x19'),this);this['setActiveAnnotation'](null);const _0x22973b=this[_0x54df('0x35')]['plugins'][_0x54df('0x37')](_0x1deb1f);this[_0x54df('0x1c')](),Array[_0x54df('0x2f')](this[_0x54df('0xd')][_0x54df('0x7')](),_0x41ee32=>_0x41ee32[_0x54df('0x1d')]()),this[_0x54df('0xd')]['clear'](),_0x22973b[_0x54df('0x25')](this['annotations']),this[_0x54df('0x3d')](),this[_0x54df('0x49')][_0x54df('0x3d')](),this['context']instanceof _0x5d6eea&&this[_0x54df('0x3d')](this[_0x54df('0x35')][_0x54df('0xc')]);for(const _0x4c8c4b of Array[_0x54df('0x2f')](this[_0x54df('0x3e')]))this[_0x54df('0x18')](_0x4c8c4b);window[_0x54df('0x5')](_0x54df('0x50'),this[_0x54df('0xf')]),this[_0x54df('0xf')][_0x54df('0x45')](),this[_0x54df('0x3a')]=[],this[_0x54df('0x5b')]=!0x1,this[_0x54df('0x27')]=null;}[_0x54df('0x1d')](){this['isAttached']&&this[_0x54df('0x39')](),this[_0x54df('0x28')][_0x54df('0x55')]();}[_0x54df('0x51')](_0x52ad0f){const _0xdfaa61=_0x52ad0f[_0x54df('0x2b')][_0x54df('0x37')](_0x338548),_0x4c3d19=this[_0x54df('0x35')][_0x54df('0x2b')]['get'](_0x1deb1f),_0x1dc472=this['annotations'],_0x69fdfe=this[_0x54df('0x38')],_0x156647=()=>{const _0xc92ac4=_0xdfaa61[_0x54df('0x30')]({'annotations':this[_0x54df('0x27')],'activeAnnotation':this[_0x54df('0x43')]});this[_0x54df('0x13')](_0xc92ac4),this[_0x54df('0x3f')](_0xc92ac4[0x0]||null);};this[_0x54df('0x59')](_0xdfaa61,_0x54df('0xe'),_0x156647),this[_0x54df('0x59')](_0xdfaa61,_0x54df('0x54'),(_0x30b1b5,{isAnnotationTracked:_0xcdea97})=>{this[_0x54df('0x43')]&&_0xcdea97(this[_0x54df('0x43')])&&(this[_0x54df('0x13')]([]),this[_0x54df('0x3f')](null));}),this['listenTo'](_0xdfaa61,_0x54df('0x17'),()=>{this[_0x54df('0xf')]();}),this[_0x54df('0x59')](_0x1dc472,_0x54df('0x54'),_0x4eb2d8=>{_0xdfaa61[_0x54df('0x11')]()&&_0x4eb2d8[_0x54df('0x23')]();},{'priority':_0x54df('0x2')}),this['listenTo'](this['_domEmitter'],_0x54df('0x24'),(_0x413ff0,_0xdfe0b1)=>{const _0x5e3216=_0xdfe0b1[_0x54df('0x42')];_0x69fdfe[_0x54df('0x2e')]&&_0x69fdfe['element'][_0x54df('0x29')](_0x5e3216)||_0x4c3d19[_0x54df('0x26')][_0x54df('0x40')]['contains'](_0x5e3216)||this[_0x54df('0x43')]&&_0xdfaa61[_0x54df('0x11')]()&&(_0x156647(),_0x413ff0[_0x54df('0x15')]=!0x0);},{'priority':_0x54df('0x2')}),this[_0x54df('0x3e')][_0x54df('0x3b')](_0xdfaa61);}['_destroyEditorAnnotationsIntegration'](_0x9472b9){_0x9472b9&&(this[_0x54df('0x3d')](_0x9472b9),this[_0x54df('0x3e')][_0x54df('0x1b')](_0x9472b9));}[_0x54df('0x13')](_0x3dc31a){for(const _0x52c0be of this['_selectedAnnotations'])_0x3dc31a[_0x54df('0x56')](_0x52c0be)||this['_manuallyClosedAnnotationViews'][_0x54df('0x5c')](_0x52c0be[_0x54df('0x26')]);this['_selectedAnnotations']=_0x3dc31a;}[_0x54df('0x4a')](){const _0x130171=this[_0x54df('0x38')];this['annotations'][_0x54df('0x52')](),_0x130171['isVisible']&&this[_0x54df('0x4e')]();}[_0x54df('0x12')](_0x5e4aeb){if(this['_manuallyClosedAnnotationViews'][_0x54df('0x9')](_0x5e4aeb['view']))return;const _0x123eb9=this['balloonPanelView']['content'][_0x54df('0xa')];_0x123eb9!==_0x5e4aeb['view']?(_0x123eb9&&this[_0x54df('0x3c')](_0x123eb9),this['_attachListeners'](_0x5e4aeb[_0x54df('0x26')]),this['balloonPanelView'][_0x54df('0x36')]['clear'](),this[_0x54df('0x38')][_0x54df('0x36')][_0x54df('0x3b')](_0x5e4aeb[_0x54df('0x26')]),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}[_0x54df('0x4e')](){const _0x1b92ab=this['balloonPanelView'][_0x54df('0x36')][_0x54df('0xa')],_0x592837=_0x1b92ab&&this[_0x54df('0x27')][_0x54df('0x4f')](_0x1b92ab);if(!_0x592837||!this[_0x54df('0xd')][_0x54df('0x9')](_0x592837))return;const _0x1a7e0b=this['_annotationToNarrowView'][_0x54df('0x37')](_0x592837)[_0x54df('0x40')],_0x2760cc=function(){const _0x5c0bce=_0x2ce8de[_0x54df('0x46')];return[_0x5c0bce['southArrowNorthEast'],_0x5c0bce['northArrowSouthEast'],_0x5c0bce[_0x54df('0x47')],_0x5c0bce['northArrowSouth'],_0x5c0bce[_0x54df('0x1e')],_0x5c0bce[_0x54df('0x53')]];}();this['balloonPanelView'][_0x54df('0x2c')]({'target':_0x1a7e0b,'positions':_0x2760cc});}[_0x54df('0x1c')](){const _0x5d643b=this[_0x54df('0x38')],_0x400a82=_0x5d643b[_0x54df('0x36')]['first'];_0x400a82&&(this[_0x54df('0x3c')](_0x400a82),_0x5d643b['unpin'](),_0x5d643b[_0x54df('0x36')][_0x54df('0x21')]());}['_attachListeners'](_0x3dc6c4){this['listenTo'](_0x3dc6c4,_0x54df('0x4d'),()=>this[_0x54df('0x4e')]()),this[_0x54df('0x59')](_0x3dc6c4,_0x54df('0x44'),(_0x5ea379,_0x76bddd)=>{this[_0x54df('0x2d')][_0x54df('0x3b')](_0x3dc6c4),this[_0x54df('0x1c')](),_0x76bddd();});}[_0x54df('0x3c')](_0x2da06e){this[_0x54df('0x3d')](_0x2da06e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c84=['set','pluginName','length','listenTo','element','stopListening','list','_annotationToSidebarItemView','change:_lastItem','_recalculateBuffer','bottom','last','Sidebar','change:top','object','_sidebarItemViewToAnnotation','nodeType','context','clear','addAnnotation','_alignBeforeItem','remove','sidebar.container','container','_spaceBetweenItems','config','_alignToTargetRect','setContainer','refresh','add','_getTargetTop','_setItemTop','content','init','_attachToContainer','change:targetRect','unbind','top','delete','get','rearrange','bind','_destroySidebarItemView','sidebar.preventScrollOutOfView','getIndex','render','view','sidebar-attachtocontainer-missing-container','_activeAnnotation','_getMaxAvailableTop','isAnimationDisabled','_getItemBefore','updateHeight','minHeight','_targetTop','_updateLastItem','_annotations','targetRect','push','_alignForTopChange','target','_alignForBottomChange','max','_getItemAfter','_lastItem','_detachFromContainer','_recalculate','destroy','_createSidebarView','change:bottom','isActive','getSidebarItemView','_alignAfterItem'];(function(_0x96bae2,_0x5c84cd){const _0x46f340=function(_0x5d6f06){while(--_0x5d6f06){_0x96bae2['push'](_0x96bae2['shift']());}};_0x46f340(++_0x5c84cd);}(_0x5c84,0x8b));const _0x46f3=function(_0x96bae2,_0x5c84cd){_0x96bae2=_0x96bae2-0x0;let _0x46f340=_0x5c84[_0x96bae2];return _0x46f340;};import{ContextPlugin as _0x2b6b7a}from'ckeditor5/src/core';import{Rect as _0xac42cb,CKEditorError as _0x12cd43}from'ckeditor5/src/utils';import _0x4a0fd1 from'./view/sidebarview';import _0xb3a705 from'./view/sidebaritemview';export default class z extends _0x2b6b7a{static get[_0x46f3('0x8')](){return _0x46f3('0x13');}constructor(_0x95b9fa){super(_0x95b9fa),this['set'](_0x46f3('0x47'),void 0x0),this[_0x46f3('0x35')]=this['_createSidebarView'](),this[_0x46f3('0x7')](_0x46f3('0x1e'),null),this[_0x46f3('0x1f')]=0x19,this[_0x46f3('0x16')]=new Map(),this[_0x46f3('0xe')]=new Map(),this['context']['config']['define'](_0x46f3('0x32'),!0x1),this[_0x46f3('0x3f')]=null,this[_0x46f3('0x37')]=null,this['_recalculateBuffer']=[];}[_0x46f3('0x28')](){const _0x14eebc=this[_0x46f3('0x18')][_0x46f3('0x20')]['get'](_0x46f3('0x1d'));_0x14eebc&&this[_0x46f3('0x22')](_0x14eebc);}[_0x46f3('0x22')](_0xaee4f7){if(!y(_0xaee4f7))throw new _0x12cd43('sidebar-setcontainer-invalid-element');this[_0x46f3('0x1e')]=_0xaee4f7;}[_0x46f3('0x29')]({viewClass:_0x4f69cf='',spaceBetweenItems:_0x1381b9=0x19}={}){if(!y(this[_0x46f3('0x1e')]))throw new _0x12cd43(_0x46f3('0x36'),this);this[_0x46f3('0x1e')]['appendChild'](this[_0x46f3('0x35')]['element']),this[_0x46f3('0x35')]['class']=_0x4f69cf,this[_0x46f3('0x1f')]=_0x1381b9;}[_0x46f3('0x2f')]({removedAnnotation:_0x31a084,previousAnnotation:_0x48d844,nextAnnotation:_0x4cc780}){const _0x1dc7fa=this[_0x46f3('0x5')](_0x31a084);this[_0x46f3('0x35')][_0x46f3('0xd')][_0x46f3('0x1c')](_0x1dc7fa),this[_0x46f3('0x31')](_0x31a084),_0x48d844&&this['_alignToTargetRect'](this[_0x46f3('0x5')](_0x48d844)),_0x4cc780&&this[_0x46f3('0x21')](this[_0x46f3('0x5')](_0x4cc780)),this[_0x46f3('0x3e')]();}[_0x46f3('0x23')]({blurredAnnotation:_0x4049f3,activatedAnnotation:_0x5376aa,disableAnimationOnActivatedAnnotation:_0x33e96b}){if(this['_activeAnnotation']=_0x5376aa,_0x4049f3){_0x4049f3[_0x46f3('0x4')]=!0x1;const _0x54d338=this[_0x46f3('0x5')](_0x4049f3);_0x54d338&&_0x33e96b&&(_0x54d338[_0x46f3('0x39')]=!0x1);}if(_0x5376aa){const _0x157b3b=this[_0x46f3('0x5')](_0x5376aa);_0x157b3b&&(_0x5376aa[_0x46f3('0x4')]=!0x0,_0x33e96b&&(_0x157b3b[_0x46f3('0x39')]=!0x0,_0x157b3b[_0x46f3('0x2c')]+=0x1),this['_alignToTargetRect'](_0x157b3b));}}[_0x46f3('0x48')](_0x32f979){if(this['view'][_0x46f3('0xb')]['remove'](),_0x32f979)for(const _0x21343b of _0x32f979)this[_0x46f3('0x31')](_0x21343b);this[_0x46f3('0x35')][_0x46f3('0xd')][_0x46f3('0x19')](),this[_0x46f3('0x35')]['class']='',this[_0x46f3('0x47')]=null;}[_0x46f3('0x1a')](_0x3e6610,_0x47017a){_0x47017a||(_0x47017a=_0x3e6610[_0x46f3('0x35')]);const _0x18863d=new _0xb3a705(this['context']['locale']);this[_0x46f3('0x16')][_0x46f3('0x7')](_0x18863d,_0x3e6610),this['_annotationToSidebarItemView'][_0x46f3('0x7')](_0x3e6610,_0x18863d),_0x18863d['content'][_0x46f3('0x24')](_0x47017a),this['listenTo'](_0x3e6610[_0x46f3('0x35')],_0x46f3('0x2a'),(_0x5b1d21,_0x16fca9,_0x10a105)=>{const _0x224376=this[_0x46f3('0x25')](_0x3e6610,_0x10a105);_0x18863d[_0x46f3('0x3d')]!=_0x224376&&(_0x18863d[_0x46f3('0x3d')]=_0x224376,this[_0x46f3('0x26')](_0x18863d,_0x224376));}),this[_0x46f3('0xa')](_0x18863d,_0x46f3('0x14'),()=>{this[_0x46f3('0x0')](_0x18863d,'top');}),this['listenTo'](_0x18863d,_0x46f3('0x3'),()=>{this[_0x46f3('0x0')](_0x18863d,_0x46f3('0x11'));}),this[_0x46f3('0x21')](_0x18863d);const _0x1365dd=this[_0x46f3('0x3a')](_0x18863d);if(_0x1365dd)this['_alignAfterItem'](_0x1365dd,_0x18863d)||this[_0x46f3('0x21')](_0x18863d);else this[_0x46f3('0x21')](_0x18863d);return this[_0x46f3('0x3e')](),this['view'][_0x46f3('0xd')][_0x46f3('0x24')](_0x18863d),_0x18863d;}[_0x46f3('0x42')](_0x5149f8){if(!_0x5149f8[_0x46f3('0x27')][_0x46f3('0x9')])return;const _0x4db7fe=this[_0x46f3('0x3a')](_0x5149f8);if(!_0x4db7fe)return;const _0x444b2e=this[_0x46f3('0x16')][_0x46f3('0x2e')](_0x4db7fe),_0x508c5f=this[_0x46f3('0x37')];_0x508c5f&&_0x508c5f===_0x444b2e?this[_0x46f3('0x6')](_0x4db7fe,_0x5149f8):this['_alignBeforeItem'](_0x5149f8,_0x4db7fe);}[_0x46f3('0x44')](_0xf29491){if(!_0xf29491[_0x46f3('0x27')]['length'])return;const _0x845df2=this['_getItemAfter'](_0xf29491);if(!_0x845df2)return;const _0x249330=this[_0x46f3('0x16')][_0x46f3('0x2e')](_0x845df2),_0x54466f=this[_0x46f3('0x18')][_0x46f3('0x20')][_0x46f3('0x2e')](_0x46f3('0x32')),_0x42964c=this['_activeAnnotation'];_0x42964c&&_0x42964c===_0x249330&&_0x54466f?(this[_0x46f3('0x1b')](_0x845df2,_0xf29491),this['_alignAfterItem'](_0xf29491,_0x845df2)):_0x42964c&&_0x42964c===_0x249330?this['_alignBeforeItem'](_0x845df2,_0xf29491):this[_0x46f3('0x6')](_0xf29491,_0x845df2);}[_0x46f3('0x0')](_0x450384,_0x4dc428){0x0===this[_0x46f3('0x10')][_0x46f3('0x9')]&&setTimeout(()=>{for(const {sidebarItemView:_0x5ea346,changedProp:_0x2e7782}of this['_recalculateBuffer'])'top'===_0x2e7782?this[_0x46f3('0x42')](_0x5ea346):this['_alignForBottomChange'](_0x5ea346);this[_0x46f3('0x10')]=[];},0xa),this[_0x46f3('0x10')][_0x46f3('0x41')]({'sidebarItemView':_0x450384,'changedProp':_0x4dc428});}[_0x46f3('0x5')](_0xd042c4){return this['_annotationToSidebarItemView'][_0x46f3('0x2e')](_0xd042c4);}[_0x46f3('0x1')](){this['stopListening'](),this[_0x46f3('0x35')][_0x46f3('0x1')]();}[_0x46f3('0x31')](_0x2b95ff){const _0x39e7b3=this[_0x46f3('0x5')](_0x2b95ff);this[_0x46f3('0xc')](_0x39e7b3),this[_0x46f3('0xc')](_0x2b95ff['view']),_0x39e7b3[_0x46f3('0x1')](),this[_0x46f3('0xe')][_0x46f3('0x2d')](_0x2b95ff),this[_0x46f3('0x16')][_0x46f3('0x2d')](_0x39e7b3);}[_0x46f3('0x2')](){const _0x42fae5=new _0x4a0fd1(this[_0x46f3('0x18')]['locale']);return _0x42fae5[_0x46f3('0x34')](),this['on'](_0x46f3('0xf'),(_0x130b74,_0x3531a7,_0x143214,_0x30c9d6)=>{_0x30c9d6&&_0x42fae5[_0x46f3('0x2b')](_0x46f3('0x3c')),_0x143214?_0x42fae5[_0x46f3('0x30')](_0x46f3('0x3c'))['to'](_0x143214,_0x46f3('0x11')):_0x42fae5[_0x46f3('0x3c')]=null;}),_0x42fae5;}[_0x46f3('0x3e')](){var _0x31d08a;this['_lastItem']=(null===(_0x31d08a=this[_0x46f3('0x3f')])||void 0x0===_0x31d08a?void 0x0:_0x31d08a[_0x46f3('0x12')])?this['getSidebarItemView'](this['_annotations']['last']):null;}[_0x46f3('0x3a')](_0x485352){var _0x176e92;const _0x4ceb7b=this[_0x46f3('0x16')][_0x46f3('0x2e')](_0x485352),_0x2b1e0e=_0x4ceb7b&&(null===(_0x176e92=this[_0x46f3('0x3f')])||void 0x0===_0x176e92?void 0x0:_0x176e92[_0x46f3('0x2e')](this[_0x46f3('0x3f')]['getIndex'](_0x4ceb7b)-0x1));return _0x2b1e0e&&this[_0x46f3('0x5')](_0x2b1e0e)||null;}[_0x46f3('0x46')](_0x45be03){var _0x3e7681;const _0x1ef5b8=this[_0x46f3('0x16')][_0x46f3('0x2e')](_0x45be03),_0x3525ed=_0x1ef5b8&&(null===(_0x3e7681=this['_annotations'])||void 0x0===_0x3e7681?void 0x0:_0x3e7681['get'](this[_0x46f3('0x3f')][_0x46f3('0x33')](_0x1ef5b8)+0x1));return _0x3525ed&&this['getSidebarItemView'](_0x3525ed)||null;}[_0x46f3('0x1b')](_0x2126cd,_0x58c016){_0x2126cd[_0x46f3('0x3b')]();const _0x49b94d=H(_0x58c016[_0x46f3('0x11')]+this['_spaceBetweenItems'],_0x2126cd[_0x46f3('0x2c')]);return!!_0x49b94d&&(this[_0x46f3('0x26')](_0x58c016,_0x58c016[_0x46f3('0x2c')]-_0x49b94d),!0x0);}['_alignAfterItem'](_0x895919,_0x781107){_0x895919[_0x46f3('0x3b')]();const _0x19686b=H(_0x895919[_0x46f3('0x11')]+this['_spaceBetweenItems'],_0x781107['top']);return!!_0x19686b&&(this[_0x46f3('0x26')](_0x781107,_0x781107[_0x46f3('0x2c')]+_0x19686b,!0x1),!0x0);}[_0x46f3('0x21')](_0x234a64){const _0x4ddffd=this[_0x46f3('0x16')]['get'](_0x234a64);if(!_0x4ddffd||!_0x4ddffd[_0x46f3('0x43')]||!_0x4ddffd[_0x46f3('0x40')])return;const _0x196042=this[_0x46f3('0x25')](_0x4ddffd,_0x4ddffd[_0x46f3('0x40')]);this[_0x46f3('0x26')](_0x234a64,_0x196042);}['_getTargetTop'](_0x3dd8e3,_0x1c35d6){if(null===_0x1c35d6)return 0x0;if(_0x3dd8e3[_0x46f3('0x43')]instanceof _0xac42cb)return _0x1c35d6[_0x46f3('0x2c')];{const _0x29ae1b=new _0xac42cb(this['view'][_0x46f3('0xb')])['top'];return _0x1c35d6[_0x46f3('0x2c')]-_0x29ae1b;}}[_0x46f3('0x26')](_0x3ecd0f,_0x337219,_0x53801a=this[_0x46f3('0x18')]['config'][_0x46f3('0x2e')](_0x46f3('0x32'))){_0x53801a&&(_0x337219=Math[_0x46f3('0x45')](_0x337219,this[_0x46f3('0x38')](_0x3ecd0f))),_0x3ecd0f[_0x46f3('0x2c')]=_0x337219;}['_getMaxAvailableTop'](_0x4c37ac){let _0x25ad42=this[_0x46f3('0x3a')](_0x4c37ac),_0x2a2110=0x0;for(;_0x25ad42;)_0x25ad42['updateHeight'](),_0x2a2110+=this[_0x46f3('0x1f')]+_0x25ad42['height'],_0x25ad42=this[_0x46f3('0x3a')](_0x25ad42);return _0x2a2110;}}function H(_0x340ad3,_0x48c5ae){return Math['max'](_0x340ad3-_0x48c5ae,0x0);}function y(_0x4d5230){return null!==_0x4d5230&&_0x46f3('0x15')==typeof _0x4d5230&&0x1===_0x4d5230[_0x46f3('0x17')];}
23
+ const _0x394a=['define','isAnimationDisabled','_sidebarItemViewToAnnotation','_getItemBefore','_alignAfterItem','config','pluginName','content','minHeight','_getTargetTop','nodeType','destroy','_recalculate','_createSidebarView','_activeAnnotation','class','get','delete','_setItemTop','remove','container','push','init','_alignForBottomChange','getSidebarItemView','sidebar-attachtocontainer-missing-container','_annotations','updateHeight','_spaceBetweenItems','render','element','_lastItem','locale','max','refresh','bind','change:_lastItem','bottom','isActive','height','top','context','_getItemAfter','list','getIndex','add','_destroySidebarItemView','_annotationToSidebarItemView','_updateLastItem','view','rearrange','listenTo','target','_targetTop','sidebar.preventScrollOutOfView','_alignToTargetRect','_alignBeforeItem','appendChild','last','object','_getMaxAvailableTop','length','stopListening','targetRect','_recalculateBuffer','set','setContainer','sidebar-setcontainer-invalid-element','change:bottom','_alignForTopChange'];(function(_0x180291,_0x394a48){const _0x2f105e=function(_0x1aa2d6){while(--_0x1aa2d6){_0x180291['push'](_0x180291['shift']());}};_0x2f105e(++_0x394a48);}(_0x394a,0xc8));const _0x2f10=function(_0x180291,_0x394a48){_0x180291=_0x180291-0x0;let _0x2f105e=_0x394a[_0x180291];return _0x2f105e;};import{ContextPlugin as _0xeec19d}from'ckeditor5/src/core';import{Rect as _0x28fc9c,CKEditorError as _0x598cdd}from'ckeditor5/src/utils';import _0x1bcdc9 from'./view/sidebarview';import _0x450164 from'./view/sidebaritemview';export default class z extends _0xeec19d{static get[_0x2f10('0x10')](){return'Sidebar';}constructor(_0x4e701e){super(_0x4e701e),this[_0x2f10('0x5')](_0x2f10('0x29'),void 0x0),this[_0x2f10('0x3b')]=this[_0x2f10('0x17')](),this[_0x2f10('0x5')](_0x2f10('0x1e'),null),this[_0x2f10('0x26')]=0x19,this[_0x2f10('0xc')]=new Map(),this[_0x2f10('0x39')]=new Map(),this[_0x2f10('0x33')][_0x2f10('0xf')][_0x2f10('0xa')](_0x2f10('0x40'),!0x1),this[_0x2f10('0x24')]=null,this[_0x2f10('0x18')]=null,this[_0x2f10('0x4')]=[];}[_0x2f10('0x20')](){const _0xd07949=this[_0x2f10('0x33')][_0x2f10('0xf')]['get']('sidebar.container');_0xd07949&&this[_0x2f10('0x6')](_0xd07949);}[_0x2f10('0x6')](_0x38bc48){if(!y(_0x38bc48))throw new _0x598cdd(_0x2f10('0x7'));this[_0x2f10('0x1e')]=_0x38bc48;}['_attachToContainer']({viewClass:_0x558b84='',spaceBetweenItems:_0x3bd306=0x19}={}){if(!y(this[_0x2f10('0x1e')]))throw new _0x598cdd(_0x2f10('0x23'),this);this[_0x2f10('0x1e')][_0x2f10('0x43')](this[_0x2f10('0x3b')]['element']),this[_0x2f10('0x3b')][_0x2f10('0x19')]=_0x558b84,this[_0x2f10('0x26')]=_0x3bd306;}[_0x2f10('0x3c')]({removedAnnotation:_0x482c93,previousAnnotation:_0x4bd6da,nextAnnotation:_0x2b2855}){const _0x333ed2=this[_0x2f10('0x22')](_0x482c93);this[_0x2f10('0x3b')][_0x2f10('0x35')][_0x2f10('0x1d')](_0x333ed2),this['_destroySidebarItemView'](_0x482c93),_0x4bd6da&&this[_0x2f10('0x41')](this[_0x2f10('0x22')](_0x4bd6da)),_0x2b2855&&this['_alignToTargetRect'](this[_0x2f10('0x22')](_0x2b2855)),this[_0x2f10('0x3a')]();}[_0x2f10('0x2c')]({blurredAnnotation:_0x435e6a,activatedAnnotation:_0x508180,disableAnimationOnActivatedAnnotation:_0x1c47bd}){if(this[_0x2f10('0x18')]=_0x508180,_0x435e6a){_0x435e6a[_0x2f10('0x30')]=!0x1;const _0xeac204=this[_0x2f10('0x22')](_0x435e6a);_0xeac204&&_0x1c47bd&&(_0xeac204[_0x2f10('0xb')]=!0x1);}if(_0x508180){const _0x489a61=this[_0x2f10('0x22')](_0x508180);_0x489a61&&(_0x508180[_0x2f10('0x30')]=!0x0,_0x1c47bd&&(_0x489a61[_0x2f10('0xb')]=!0x0,_0x489a61['top']+=0x1),this['_alignToTargetRect'](_0x489a61));}}['_detachFromContainer'](_0x32655c){if(this[_0x2f10('0x3b')][_0x2f10('0x28')][_0x2f10('0x1d')](),_0x32655c)for(const _0x28750c of _0x32655c)this[_0x2f10('0x38')](_0x28750c);this[_0x2f10('0x3b')][_0x2f10('0x35')]['clear'](),this['view'][_0x2f10('0x19')]='',this[_0x2f10('0x29')]=null;}['addAnnotation'](_0x494fbc,_0x187850){_0x187850||(_0x187850=_0x494fbc[_0x2f10('0x3b')]);const _0x5259ff=new _0x450164(this[_0x2f10('0x33')][_0x2f10('0x2a')]);this['_sidebarItemViewToAnnotation'][_0x2f10('0x5')](_0x5259ff,_0x494fbc),this[_0x2f10('0x39')][_0x2f10('0x5')](_0x494fbc,_0x5259ff),_0x5259ff[_0x2f10('0x11')][_0x2f10('0x37')](_0x187850),this[_0x2f10('0x3d')](_0x494fbc['view'],'change:targetRect',(_0x217347,_0x2f0200,_0x179274)=>{const _0x2de85b=this[_0x2f10('0x13')](_0x494fbc,_0x179274);_0x5259ff[_0x2f10('0x3f')]!=_0x2de85b&&(_0x5259ff[_0x2f10('0x3f')]=_0x2de85b,this[_0x2f10('0x1c')](_0x5259ff,_0x2de85b));}),this[_0x2f10('0x3d')](_0x5259ff,'change:top',()=>{this[_0x2f10('0x16')](_0x5259ff,'top');}),this[_0x2f10('0x3d')](_0x5259ff,_0x2f10('0x8'),()=>{this['_recalculate'](_0x5259ff,_0x2f10('0x2f'));}),this['_alignToTargetRect'](_0x5259ff);const _0x18c7df=this['_getItemBefore'](_0x5259ff);if(_0x18c7df)this[_0x2f10('0xe')](_0x18c7df,_0x5259ff)||this[_0x2f10('0x41')](_0x5259ff);else this[_0x2f10('0x41')](_0x5259ff);return this[_0x2f10('0x3a')](),this['view'][_0x2f10('0x35')][_0x2f10('0x37')](_0x5259ff),_0x5259ff;}[_0x2f10('0x9')](_0x47ac5c){if(!_0x47ac5c[_0x2f10('0x11')][_0x2f10('0x1')])return;const _0x5121ae=this[_0x2f10('0xd')](_0x47ac5c);if(!_0x5121ae)return;const _0x35baa5=this['_sidebarItemViewToAnnotation'][_0x2f10('0x1a')](_0x5121ae),_0x3aa328=this['_activeAnnotation'];_0x3aa328&&_0x3aa328===_0x35baa5?this[_0x2f10('0xe')](_0x5121ae,_0x47ac5c):this[_0x2f10('0x42')](_0x47ac5c,_0x5121ae);}[_0x2f10('0x21')](_0xc0636){if(!_0xc0636[_0x2f10('0x11')]['length'])return;const _0xaed289=this[_0x2f10('0x34')](_0xc0636);if(!_0xaed289)return;const _0x3357e9=this['_sidebarItemViewToAnnotation'][_0x2f10('0x1a')](_0xaed289),_0x1e4431=this['context'][_0x2f10('0xf')][_0x2f10('0x1a')](_0x2f10('0x40')),_0x5c6597=this[_0x2f10('0x18')];_0x5c6597&&_0x5c6597===_0x3357e9&&_0x1e4431?(this[_0x2f10('0x42')](_0xaed289,_0xc0636),this[_0x2f10('0xe')](_0xc0636,_0xaed289)):_0x5c6597&&_0x5c6597===_0x3357e9?this['_alignBeforeItem'](_0xaed289,_0xc0636):this[_0x2f10('0xe')](_0xc0636,_0xaed289);}['_recalculate'](_0x47d872,_0x3e03f4){0x0===this[_0x2f10('0x4')][_0x2f10('0x1')]&&setTimeout(()=>{for(const {sidebarItemView:_0x255586,changedProp:_0x373fa3}of this['_recalculateBuffer'])_0x2f10('0x32')===_0x373fa3?this[_0x2f10('0x9')](_0x255586):this[_0x2f10('0x21')](_0x255586);this[_0x2f10('0x4')]=[];},0xa),this[_0x2f10('0x4')][_0x2f10('0x1f')]({'sidebarItemView':_0x47d872,'changedProp':_0x3e03f4});}['getSidebarItemView'](_0x594e4a){return this['_annotationToSidebarItemView'][_0x2f10('0x1a')](_0x594e4a);}[_0x2f10('0x15')](){this[_0x2f10('0x2')](),this['view']['destroy']();}[_0x2f10('0x38')](_0x1af1ec){const _0x51d99e=this[_0x2f10('0x22')](_0x1af1ec);this[_0x2f10('0x2')](_0x51d99e),this[_0x2f10('0x2')](_0x1af1ec[_0x2f10('0x3b')]),_0x51d99e['destroy'](),this[_0x2f10('0x39')][_0x2f10('0x1b')](_0x1af1ec),this[_0x2f10('0xc')][_0x2f10('0x1b')](_0x51d99e);}[_0x2f10('0x17')](){const _0x544632=new _0x1bcdc9(this['context'][_0x2f10('0x2a')]);return _0x544632[_0x2f10('0x27')](),this['on'](_0x2f10('0x2e'),(_0x4d4a2a,_0x5b962f,_0x29ccb5,_0x50eaa8)=>{_0x50eaa8&&_0x544632['unbind'](_0x2f10('0x12')),_0x29ccb5?_0x544632[_0x2f10('0x2d')](_0x2f10('0x12'))['to'](_0x29ccb5,_0x2f10('0x2f')):_0x544632['minHeight']=null;}),_0x544632;}[_0x2f10('0x3a')](){var _0x252b8b;this[_0x2f10('0x29')]=(null===(_0x252b8b=this[_0x2f10('0x24')])||void 0x0===_0x252b8b?void 0x0:_0x252b8b['last'])?this['getSidebarItemView'](this[_0x2f10('0x24')][_0x2f10('0x44')]):null;}[_0x2f10('0xd')](_0x51ff4d){var _0x55010b;const _0x4d3bea=this[_0x2f10('0xc')][_0x2f10('0x1a')](_0x51ff4d),_0x228ab7=_0x4d3bea&&(null===(_0x55010b=this[_0x2f10('0x24')])||void 0x0===_0x55010b?void 0x0:_0x55010b[_0x2f10('0x1a')](this['_annotations'][_0x2f10('0x36')](_0x4d3bea)-0x1));return _0x228ab7&&this[_0x2f10('0x22')](_0x228ab7)||null;}[_0x2f10('0x34')](_0x473001){var _0x3efb58;const _0xe3f1b4=this[_0x2f10('0xc')][_0x2f10('0x1a')](_0x473001),_0x435f3e=_0xe3f1b4&&(null===(_0x3efb58=this[_0x2f10('0x24')])||void 0x0===_0x3efb58?void 0x0:_0x3efb58[_0x2f10('0x1a')](this['_annotations'][_0x2f10('0x36')](_0xe3f1b4)+0x1));return _0x435f3e&&this['getSidebarItemView'](_0x435f3e)||null;}[_0x2f10('0x42')](_0x12a946,_0x4ef6ed){_0x12a946[_0x2f10('0x25')]();const _0x4e721a=H(_0x4ef6ed[_0x2f10('0x2f')]+this[_0x2f10('0x26')],_0x12a946[_0x2f10('0x32')]);return!!_0x4e721a&&(this[_0x2f10('0x1c')](_0x4ef6ed,_0x4ef6ed[_0x2f10('0x32')]-_0x4e721a),!0x0);}[_0x2f10('0xe')](_0x102d39,_0x5d213e){_0x102d39[_0x2f10('0x25')]();const _0x2c25d2=H(_0x102d39[_0x2f10('0x2f')]+this['_spaceBetweenItems'],_0x5d213e[_0x2f10('0x32')]);return!!_0x2c25d2&&(this[_0x2f10('0x1c')](_0x5d213e,_0x5d213e[_0x2f10('0x32')]+_0x2c25d2,!0x1),!0x0);}[_0x2f10('0x41')](_0x56f409){const _0x3a456f=this[_0x2f10('0xc')]['get'](_0x56f409);if(!_0x3a456f||!_0x3a456f[_0x2f10('0x3e')]||!_0x3a456f['targetRect'])return;const _0x131cc5=this[_0x2f10('0x13')](_0x3a456f,_0x3a456f[_0x2f10('0x3')]);this[_0x2f10('0x1c')](_0x56f409,_0x131cc5);}['_getTargetTop'](_0x3ee2d6,_0x548e04){if(null===_0x548e04)return 0x0;if(_0x3ee2d6[_0x2f10('0x3e')]instanceof _0x28fc9c)return _0x548e04[_0x2f10('0x32')];{const _0x2ea96e=new _0x28fc9c(this[_0x2f10('0x3b')][_0x2f10('0x28')])[_0x2f10('0x32')];return _0x548e04['top']-_0x2ea96e;}}[_0x2f10('0x1c')](_0x21b4d7,_0x246e7e,_0x2a12c7=this[_0x2f10('0x33')][_0x2f10('0xf')][_0x2f10('0x1a')](_0x2f10('0x40'))){_0x2a12c7&&(_0x246e7e=Math[_0x2f10('0x2b')](_0x246e7e,this[_0x2f10('0x0')](_0x21b4d7))),_0x21b4d7[_0x2f10('0x32')]=_0x246e7e;}[_0x2f10('0x0')](_0x3f227b){let _0x132d29=this[_0x2f10('0xd')](_0x3f227b),_0x1a18b9=0x0;for(;_0x132d29;)_0x132d29[_0x2f10('0x25')](),_0x1a18b9+=this[_0x2f10('0x26')]+_0x132d29[_0x2f10('0x31')],_0x132d29=this['_getItemBefore'](_0x132d29);return _0x1a18b9;}}function H(_0x357747,_0xf1ac1d){return Math[_0x2f10('0x2b')](_0x357747-_0xf1ac1d,0x0);}function y(_0x2fde95){return null!==_0x2fde95&&_0x2f10('0x45')==typeof _0x2fde95&&0x1===_0x2fde95[_0x2f10('0x14')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2db3=['set','bind','counterView','ck-annotation-counter__badge--','ck-annotation-counter__badge--edit-mode','ck-annotation-counter','toString','setTemplate','icon','annotationType','children','isDirty','_badge','add','bindTemplate'];(function(_0x2c8fc1,_0x2db318){const _0x3143b6=function(_0x2125d1){while(--_0x2125d1){_0x2c8fc1['push'](_0x2c8fc1['shift']());}};_0x3143b6(++_0x2db318);}(_0x2db3,0x11f));const _0x3143=function(_0x2c8fc1,_0x2db318){_0x2c8fc1=_0x2c8fc1-0x0;let _0x3143b6=_0x2db3[_0x2c8fc1];return _0x3143b6;};import{ButtonView as _0x2bf98b,View as _0x4b121f}from'ckeditor5/src/ui';import _0x3fa7ec from'../../../theme/icons/add-comment.svg';export default class D extends _0x2bf98b{constructor(_0x2cf54d){super(_0x2cf54d);const _0x36bfac=this[_0x3143('0xc')];this[_0x3143('0xd')]('isDirty',!0x1),this[_0x3143('0xd')]('number',0x0),this[_0x3143('0xe')](_0x3143('0xa'))['to'](this,'isDirty',this,'number',(_0x367680,_0x457b42)=>_0x367680?'...':_0x457b42[_0x3143('0x4')]()),this[_0x3143('0xd')]('annotationType',''),this[_0x3143('0x6')]=_0x3fa7ec,this['extendTemplate']({'attributes':{'class':[_0x3143('0x3')]}}),this[_0x3143('0x0')]=new _0x4b121f(),this['counterView'][_0x3143('0x5')]({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x36bfac['to'](_0x3143('0x7'),_0x125691=>_0x3143('0x1')+_0x125691),_0x36bfac['if'](_0x3143('0x9'),_0x3143('0x2'))]},'children':[{'text':_0x36bfac['to']('_badge')}]}),this[_0x3143('0x8')][_0x3143('0xb')](this['counterView']);}}
23
+ const _0xb43d=['bind','span','bindTemplate','add','ck-annotation-counter__badge--edit-mode','...','toString','isDirty','icon','set','annotationType','counterView','number','_badge'];(function(_0xca2191,_0xb43d75){const _0xb5e356=function(_0x56e59a){while(--_0x56e59a){_0xca2191['push'](_0xca2191['shift']());}};_0xb5e356(++_0xb43d75);}(_0xb43d,0x99));const _0xb5e3=function(_0xca2191,_0xb43d75){_0xca2191=_0xca2191-0x0;let _0xb5e356=_0xb43d[_0xca2191];return _0xb5e356;};import{ButtonView as _0x13663b,View as _0x4c65b6}from'ckeditor5/src/ui';import _0x5ae9d4 from'../../../theme/icons/add-comment.svg';export default class D extends _0x13663b{constructor(_0x51bf32){super(_0x51bf32);const _0x19c560=this[_0xb5e3('0x3')];this[_0xb5e3('0xa')]('isDirty',!0x1),this['set'](_0xb5e3('0xd'),0x0),this[_0xb5e3('0x1')](_0xb5e3('0x0'))['to'](this,_0xb5e3('0x8'),this,_0xb5e3('0xd'),(_0xe9beb,_0x57d1f7)=>_0xe9beb?_0xb5e3('0x6'):_0x57d1f7[_0xb5e3('0x7')]()),this[_0xb5e3('0xa')]('annotationType',''),this[_0xb5e3('0x9')]=_0x5ae9d4,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this[_0xb5e3('0xc')]=new _0x4c65b6(),this['counterView']['setTemplate']({'tag':_0xb5e3('0x2'),'attributes':{'class':['ck-annotation-counter__badge',_0x19c560['to'](_0xb5e3('0xb'),_0x34d928=>'ck-annotation-counter__badge--'+_0x34d928),_0x19c560['if']('isDirty',_0xb5e3('0x5'))]},'children':[{'text':_0x19c560['to'](_0xb5e3('0x0'))}]}),this['children'][_0xb5e3('0x4')](this['counterView']);}}