@ckeditor/ckeditor5-comments 38.0.0-rc.0 → 38.0.0-rc.1

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": "38.0.0-rc.0",
3
+ "version": "38.0.0-rc.1",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -45,8 +45,8 @@
45
45
  "postversion": "npm run build"
46
46
  },
47
47
  "dependencies": {
48
- "ckeditor5": "^37.1.0",
49
- "ckeditor5-collaboration": "^38.0.0-rc.0",
48
+ "ckeditor5": "^38.0.0-rc.1",
49
+ "ckeditor5-collaboration": "^38.0.0-rc.1",
50
50
  "lodash-es": "^4.17.11"
51
51
  },
52
52
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15fa=['_target','mainView','length','clear','filter','_assertCorrectTarget','isVisible','focusableElements','refreshVisibility','view','add','isActive','_getNormalizedTarget','item','getClientRects','nodeType','render','object','targetRect','annotation-invalid-target','_type','stopListening','innerView','offsetParent','element','target','type'];(function(_0x46477f,_0x15fa9e){const _0x2c0268=function(_0x204c6e){while(--_0x204c6e){_0x46477f['push'](_0x46477f['shift']());}};_0x2c0268(++_0x15fa9e);}(_0x15fa,0x18b));const _0x2c02=function(_0x46477f,_0x15fa9e){_0x46477f=_0x46477f-0x0;let _0x2c0268=_0x15fa[_0x46477f];return _0x2c0268;};import{CKEditorError as _0x287b82,Rect as _0x63972d,Collection as _0x30c179,ObservableMixin as _0x3c7867}from'ckeditor5/src/utils';export default class d extends _0x3c7867(){constructor({view:_0x290943,target:_0x523fe2,type:_0x25d98b,isVisible:_0x59031f=!0x0}){super(),this[_0x2c02('0x13')]=_0x290943,this[_0x2c02('0x13')][_0x2c02('0x7')]||this[_0x2c02('0x13')][_0x2c02('0x1a')](),this['_type']=_0x25d98b,this[_0x2c02('0xa')]=_0x523fe2,d[_0x2c02('0xf')](this[_0x2c02('0x16')]()),this[_0x2c02('0x11')]=new _0x30c179([this[_0x2c02('0x13')][_0x2c02('0x7')]],{'idProperty':'_id'}),this[_0x2c02('0x11')]['on']('add',(_0x4aa827,_0x22a57d)=>{this['view']['focusTracker'][_0x2c02('0x14')](_0x22a57d);}),this[_0x2c02('0x11')]['on']('remove',(_0x583825,_0x1ff195)=>{this[_0x2c02('0x13')]['focusTracker']['remove'](_0x1ff195);}),this['set'](_0x2c02('0x10'),_0x59031f);}get[_0x2c02('0x9')](){return'function'==typeof this['_type']?this[_0x2c02('0x3')]():this[_0x2c02('0x3')];}get[_0x2c02('0x5')](){return this[_0x2c02('0x13')][_0x2c02('0xb')];}get['target'](){const _0x36d207=this['_getNormalizedTarget']();return d[_0x2c02('0xf')](_0x36d207),_0x36d207;}get[_0x2c02('0x1')](){const _0x110d30=this[_0x2c02('0x8')];if(null===_0x110d30)return null;if(_0x110d30 instanceof _0x63972d)return _0x110d30;const _0x49c8f6=_0x110d30[_0x2c02('0xe')](_0x4c39d4=>function(_0x17370e){const _0x474e6c=_0x17370e[_0x2c02('0x6')];if(_0x474e6c)return!0x0;const _0x6124ba=_0x17370e[_0x2c02('0x18')]()[_0x2c02('0x17')](0x0);return!!_0x6124ba;}(_0x4c39d4));return 0x0===_0x49c8f6[_0x2c02('0xc')]?null:new _0x63972d(_0x49c8f6[0x0]['getClientRects']()['item'](0x0));}get[_0x2c02('0x15')](){return this['view']['isActive'];}set[_0x2c02('0x15')](_0x4998c2){this['view'][_0x2c02('0x15')]=_0x4998c2,this[_0x2c02('0x13')][_0x2c02('0xb')][_0x2c02('0x15')]=_0x4998c2;}['updateTargetRect'](){this[_0x2c02('0x13')][_0x2c02('0x1')]=this[_0x2c02('0x1')];}['destroy'](){this['focusableElements'][_0x2c02('0x4')](),this[_0x2c02('0x11')][_0x2c02('0xd')](),this[_0x2c02('0x4')]();}[_0x2c02('0x12')](){this['isVisible']=!!this['targetRect'];}static[_0x2c02('0xf')](_0x3feac2){if(!(null===_0x3feac2||_0x3feac2 instanceof _0x63972d||Array['isArray'](_0x3feac2)&&_0x3feac2['every'](_0x22a763=>y(_0x22a763))))throw new _0x287b82(_0x2c02('0x2'),null,{'target':_0x3feac2});}[_0x2c02('0x16')](){const _0x37f7e0='function'==typeof this[_0x2c02('0xa')]?this['_target']():this[_0x2c02('0xa')];return y(_0x37f7e0)?[_0x37f7e0]:_0x37f7e0;}}function y(_0x228854){return null!==_0x228854&&_0x2c02('0x0')==typeof _0x228854&&'nodeType'in _0x228854&&0x1===_0x228854[_0x2c02('0x19')];}
23
+ const _0x1d97=['set','_assertCorrectTarget','targetRect','remove','mainView','isVisible','render','focusableElements','element','annotation-invalid-target','offsetParent','type','_type','target','isActive','refreshVisibility','_getNormalizedTarget','length','object','isArray','innerView','focusTracker','function','getClientRects','stopListening','nodeType','destroy','_target','add','updateTargetRect','every','view'];(function(_0x3a57bd,_0x1d9785){const _0x468f08=function(_0x826688){while(--_0x826688){_0x3a57bd['push'](_0x3a57bd['shift']());}};_0x468f08(++_0x1d9785);}(_0x1d97,0x159));const _0x468f=function(_0x3a57bd,_0x1d9785){_0x3a57bd=_0x3a57bd-0x0;let _0x468f08=_0x1d97[_0x3a57bd];return _0x468f08;};import{CKEditorError as _0x22a12e,Rect as _0x56a344,Collection as _0x1c754d,ObservableMixin as _0x39b2a9}from'ckeditor5/src/utils';export default class $ extends _0x39b2a9(){constructor({view:_0x454283,target:_0x53dd6e,type:_0x108b9d,isVisible:_0x2e3a7b=!0x0}){super(),this['view']=_0x454283,this['view'][_0x468f('0xf')]||this['view'][_0x468f('0xd')](),this['_type']=_0x108b9d,this['_target']=_0x53dd6e,$[_0x468f('0x8')](this[_0x468f('0x17')]()),this['focusableElements']=new _0x1c754d([this[_0x468f('0x6')]['element']],{'idProperty':'_id'}),this[_0x468f('0xe')]['on'](_0x468f('0x3'),(_0x584fe0,_0x33972a)=>{this[_0x468f('0x6')][_0x468f('0x1c')]['add'](_0x33972a);}),this[_0x468f('0xe')]['on'](_0x468f('0xa'),(_0x1f6fea,_0x7d98d6)=>{this[_0x468f('0x6')][_0x468f('0x1c')][_0x468f('0xa')](_0x7d98d6);}),this[_0x468f('0x7')]('isVisible',_0x2e3a7b);}get[_0x468f('0x12')](){return _0x468f('0x1d')==typeof this[_0x468f('0x13')]?this[_0x468f('0x13')]():this[_0x468f('0x13')];}get[_0x468f('0x1b')](){return this['view'][_0x468f('0xb')];}get[_0x468f('0x14')](){const _0x4038e7=this['_getNormalizedTarget']();return $['_assertCorrectTarget'](_0x4038e7),_0x4038e7;}get[_0x468f('0x9')](){const _0x33eb32=this[_0x468f('0x14')];if(null===_0x33eb32)return null;if(_0x33eb32 instanceof _0x56a344)return _0x33eb32;const _0x4c96cc=_0x33eb32['filter'](_0x122548=>function(_0x3f65cd){const _0x3e9a35=_0x3f65cd[_0x468f('0x11')];if(_0x3e9a35)return!0x0;const _0xd1fdbb=_0x3f65cd[_0x468f('0x1e')]()['item'](0x0);return!!_0xd1fdbb;}(_0x122548));return 0x0===_0x4c96cc[_0x468f('0x18')]?null:new _0x56a344(_0x4c96cc[0x0][_0x468f('0x1e')]()['item'](0x0));}get[_0x468f('0x15')](){return this[_0x468f('0x6')]['isActive'];}set['isActive'](_0x1e5b99){this[_0x468f('0x6')]['isActive']=_0x1e5b99,this[_0x468f('0x6')][_0x468f('0xb')][_0x468f('0x15')]=_0x1e5b99;}[_0x468f('0x4')](){this[_0x468f('0x6')][_0x468f('0x9')]=this[_0x468f('0x9')];}[_0x468f('0x1')](){this[_0x468f('0xe')][_0x468f('0x1f')](),this[_0x468f('0xe')]['clear'](),this[_0x468f('0x1f')]();}[_0x468f('0x16')](){this[_0x468f('0xc')]=!!this['targetRect'];}static[_0x468f('0x8')](_0x5c2fbd){if(!(null===_0x5c2fbd||_0x5c2fbd instanceof _0x56a344||Array[_0x468f('0x1a')](_0x5c2fbd)&&_0x5c2fbd[_0x468f('0x5')](_0x296baa=>rt(_0x296baa))))throw new _0x22a12e(_0x468f('0x10'),null,{'target':_0x5c2fbd});}['_getNormalizedTarget'](){const _0x26adc8=_0x468f('0x1d')==typeof this[_0x468f('0x2')]?this[_0x468f('0x2')]():this['_target'];return rt(_0x26adc8)?[_0x26adc8]:_0x26adc8;}}function rt(_0x56ee05){return null!==_0x56ee05&&_0x468f('0x19')==typeof _0x56ee05&&_0x468f('0x0')in _0x56ee05&&0x1===_0x56ee05['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a42=['getByInnerView','clear','_innerViewToAnnotation','fire','getByView','sort','isFocused','length','refreshPositioning','top','change:isFocused','targetRect','focusTracker','_focusTracker','stopListening','focus','delete','innerView','destroy','from','annotationcollection-not-existing-item','_sort','left','updateTargetRect','add','listenTo','annotationcollection-duplicated-item','get','_getOrderInContent','view','set','has','focusableElements','getIndex','remove','_viewToAnnotation'];(function(_0x565633,_0x2a42cc){const _0x5351bb=function(_0x11a638){while(--_0x11a638){_0x565633['push'](_0x565633['shift']());}};_0x5351bb(++_0x2a42cc);}(_0x2a42,0x1cf));const _0x5351=function(_0x565633,_0x2a42cc){_0x565633=_0x565633-0x0;let _0x5351bb=_0x2a42[_0x565633];return _0x5351bb;};import{CKEditorError as _0x1fe021,Collection as _0x1c8861,FocusTracker as _0x5c02cd}from'ckeditor5/src/utils';export default class x extends _0x1c8861{constructor(_0x39ff13=[]){super(),this[_0x5351('0x7')]=new Map(),this[_0x5351('0x4')]=new Map(),this[_0x5351('0x12')]=new _0x5c02cd(),this[_0x5351('0x12')]['on'](_0x5351('0xf'),(_0x25d84e,_0x258017,_0x3b2093)=>{_0x3b2093||this[_0x5351('0x8')]('blur');});for(const _0x286d63 of _0x39ff13)this[_0x5351('0x1d')](_0x286d63);}get['isFocused'](){return this[_0x5351('0x12')][_0x5351('0xb')];}[_0x5351('0x1d')](_0x5c705a){if(this[_0x5351('0x0')](_0x5c705a))throw new _0x1fe021(_0x5351('0x1f'),null);this[_0x5351('0x7')]['set'](_0x5c705a[_0x5351('0x16')],_0x5c705a),this[_0x5351('0x4')][_0x5351('0x23')](_0x5c705a['view'],_0x5c705a);for(const _0x344054 of _0x5c705a[_0x5351('0x1')])this[_0x5351('0x12')][_0x5351('0x1d')](_0x344054);this[_0x5351('0x1e')](_0x5c705a['focusableElements'],_0x5351('0x1d'),(_0x3a3c34,_0x12a47a)=>{this[_0x5351('0x12')][_0x5351('0x1d')](_0x12a47a);}),this[_0x5351('0x1e')](_0x5c705a[_0x5351('0x1')],_0x5351('0x3'),(_0x171abd,_0x576411)=>{this[_0x5351('0x12')][_0x5351('0x3')](_0x576411);}),this['listenTo'](_0x5c705a[_0x5351('0x22')][_0x5351('0x11')],'change:isFocused',(_0x259838,_0x56dc8c,_0x3f4ebc)=>{_0x3f4ebc&&this['fire'](_0x5351('0x14'),_0x5c705a);}),_0x5c705a[_0x5351('0x1c')]();const _0x19f910=this[_0x5351('0x21')](_0x5c705a[_0x5351('0x22')][_0x5351('0x10')]);return super[_0x5351('0x1d')](_0x5c705a,_0x19f910);}[_0x5351('0x3')](_0x1fa54b){if(!this[_0x5351('0x0')](_0x1fa54b))throw new _0x1fe021(_0x5351('0x19'),null);this[_0x5351('0x13')](_0x1fa54b[_0x5351('0x22')][_0x5351('0x11')]),this['stopListening'](_0x1fa54b[_0x5351('0x1')]);for(const _0xb4f7b1 of _0x1fa54b[_0x5351('0x1')])this[_0x5351('0x12')][_0x5351('0x3')](_0xb4f7b1);return this[_0x5351('0x4')][_0x5351('0x15')](_0x1fa54b[_0x5351('0x22')]),this[_0x5351('0x7')][_0x5351('0x15')](_0x1fa54b['innerView']),super[_0x5351('0x3')](_0x1fa54b);}[_0x5351('0x5')](_0x2c8bd8){return this[_0x5351('0x7')][_0x5351('0x20')](_0x2c8bd8);}[_0x5351('0x9')](_0x42188a){return this[_0x5351('0x4')][_0x5351('0x20')](_0x42188a);}[_0x5351('0x17')](){super[_0x5351('0x6')](),this[_0x5351('0x13')](),this[_0x5351('0x7')][_0x5351('0x6')](),this['_viewToAnnotation']['clear'](),this[_0x5351('0x12')]['destroy']();}[_0x5351('0xd')](){for(const _0x106f91 of this)_0x106f91[_0x5351('0x1c')]();this[_0x5351('0x1a')]();}['_sort'](){const _0x2dcf55=Array[_0x5351('0x18')](this)[_0x5351('0xa')]((_0x1eb9c0,_0x4fe523)=>v(_0x1eb9c0[_0x5351('0x22')][_0x5351('0x10')],_0x4fe523[_0x5351('0x22')][_0x5351('0x10')]));for(let _0x596f1d=_0x2dcf55[_0x5351('0xc')]-0x1;_0x596f1d>0x0;_0x596f1d--){const _0x49d3a3=_0x2dcf55[_0x596f1d];_0x596f1d!==this[_0x5351('0x2')](_0x49d3a3)&&(this[_0x5351('0x3')](_0x49d3a3),this['add'](_0x49d3a3));}}['_getOrderInContent'](_0xc41e14){let _0x168bdf=0x0;if(!_0xc41e14)return this['length'];for(const _0x4c3b27 of this){const _0x202f71=_0x4c3b27[_0x5351('0x22')][_0x5351('0x10')];if(_0x202f71){if(v(_0xc41e14,_0x202f71)<0x0)return _0x168bdf;_0x168bdf++;}}return _0x168bdf;}}export function bindAnnotationCollections({source:_0x34795c,target:_0x13b0f4,filter:_0x47e915}){for(const _0x203674 of _0x34795c)_0x47e915(_0x203674)&&_0x13b0f4[_0x5351('0x1d')](_0x203674);_0x13b0f4['listenTo'](_0x34795c,_0x5351('0x1d'),(_0x375f13,_0x33d10f)=>{_0x47e915(_0x33d10f)&&_0x13b0f4[_0x5351('0x1d')](_0x33d10f);}),_0x13b0f4['listenTo'](_0x34795c,'remove',(_0x28d5b4,_0x2e1c33)=>{_0x13b0f4['has'](_0x2e1c33)&&_0x13b0f4[_0x5351('0x3')](_0x2e1c33);});}function v(_0x987633,_0x30f350){if(null===_0x987633&&null===_0x30f350)return 0x0;if(null===_0x987633)return-0x1;if(null===_0x30f350)return 0x1;const _0x19fdbf=_0x987633[_0x5351('0xe')]-_0x30f350[_0x5351('0xe')];return 0x0==_0x19fdbf?_0x987633[_0x5351('0x1b')]-_0x30f350[_0x5351('0x1b')]:_0x19fdbf;}
23
+ const _0x5d92=['focusTracker','remove','innerView','getIndex','_innerViewToAnnotation','change:isFocused','has','refreshPositioning','focusableElements','set','getByInnerView','sort','get','targetRect','length','fire','_getOrderInContent','view','annotationcollection-duplicated-item','listenTo','stopListening','destroy','updateTargetRect','add','annotationcollection-not-existing-item','_sort','_focusTracker','clear','isFocused','_viewToAnnotation','focus','left','delete'];(function(_0x506007,_0x5d92b0){const _0x4ab313=function(_0x1ff706){while(--_0x1ff706){_0x506007['push'](_0x506007['shift']());}};_0x4ab313(++_0x5d92b0);}(_0x5d92,0x1b5));const _0x4ab3=function(_0x506007,_0x5d92b0){_0x506007=_0x506007-0x0;let _0x4ab313=_0x5d92[_0x506007];return _0x4ab313;};import{CKEditorError as _0x24afdd,Collection as _0x2ff7c2,FocusTracker as _0x4e7e81}from'ckeditor5/src/utils';export default class ot extends _0x2ff7c2{constructor(_0x413745=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x4ab3('0x15')]=new Map(),this[_0x4ab3('0x12')]=new _0x4e7e81(),this[_0x4ab3('0x12')]['on'](_0x4ab3('0x1e'),(_0x47ec6d,_0x1f06f2,_0x5a92dd)=>{_0x5a92dd||this[_0x4ab3('0x7')]('blur');});for(const _0x312bbf of _0x413745)this[_0x4ab3('0xf')](_0x312bbf);}get[_0x4ab3('0x14')](){return this['_focusTracker'][_0x4ab3('0x14')];}['add'](_0xa7171a){if(this['has'](_0xa7171a))throw new _0x24afdd(_0x4ab3('0xa'),null);this['_innerViewToAnnotation'][_0x4ab3('0x1')](_0xa7171a[_0x4ab3('0x1b')],_0xa7171a),this[_0x4ab3('0x15')][_0x4ab3('0x1')](_0xa7171a[_0x4ab3('0x9')],_0xa7171a);for(const _0x6ed8cf of _0xa7171a[_0x4ab3('0x0')])this[_0x4ab3('0x12')][_0x4ab3('0xf')](_0x6ed8cf);this[_0x4ab3('0xb')](_0xa7171a[_0x4ab3('0x0')],'add',(_0x149a19,_0x57522b)=>{this[_0x4ab3('0x12')][_0x4ab3('0xf')](_0x57522b);}),this['listenTo'](_0xa7171a[_0x4ab3('0x0')],_0x4ab3('0x1a'),(_0x33b1cb,_0x24457e)=>{this[_0x4ab3('0x12')]['remove'](_0x24457e);}),this[_0x4ab3('0xb')](_0xa7171a[_0x4ab3('0x9')][_0x4ab3('0x19')],_0x4ab3('0x1e'),(_0x1e4bfb,_0xc7494d,_0x396845)=>{_0x396845&&this['fire'](_0x4ab3('0x16'),_0xa7171a);}),_0xa7171a[_0x4ab3('0xe')]();const _0x5789b9=this['_getOrderInContent'](_0xa7171a['view'][_0x4ab3('0x5')]);return super[_0x4ab3('0xf')](_0xa7171a,_0x5789b9);}[_0x4ab3('0x1a')](_0x5a7e1b){if(!this[_0x4ab3('0x1f')](_0x5a7e1b))throw new _0x24afdd(_0x4ab3('0x10'),null);this[_0x4ab3('0xc')](_0x5a7e1b[_0x4ab3('0x9')][_0x4ab3('0x19')]),this['stopListening'](_0x5a7e1b[_0x4ab3('0x0')]);for(const _0x41a279 of _0x5a7e1b[_0x4ab3('0x0')])this[_0x4ab3('0x12')]['remove'](_0x41a279);return this[_0x4ab3('0x15')][_0x4ab3('0x18')](_0x5a7e1b[_0x4ab3('0x9')]),this[_0x4ab3('0x1d')][_0x4ab3('0x18')](_0x5a7e1b[_0x4ab3('0x1b')]),super['remove'](_0x5a7e1b);}[_0x4ab3('0x2')](_0x46bd19){return this[_0x4ab3('0x1d')][_0x4ab3('0x4')](_0x46bd19);}['getByView'](_0x27621e){return this[_0x4ab3('0x15')]['get'](_0x27621e);}[_0x4ab3('0xd')](){super['clear'](),this[_0x4ab3('0xc')](),this[_0x4ab3('0x1d')]['clear'](),this[_0x4ab3('0x15')][_0x4ab3('0x13')](),this[_0x4ab3('0x12')][_0x4ab3('0xd')]();}[_0x4ab3('0x20')](){for(const _0x7f373 of this)_0x7f373[_0x4ab3('0xe')]();this[_0x4ab3('0x11')]();}['_sort'](){const _0x5274ca=Array['from'](this)[_0x4ab3('0x3')]((_0x2415a3,_0x1b4303)=>ht(_0x2415a3[_0x4ab3('0x9')]['targetRect'],_0x1b4303[_0x4ab3('0x9')]['targetRect']));for(let _0x273b84=_0x5274ca['length']-0x1;_0x273b84>0x0;_0x273b84--){const _0x162209=_0x5274ca[_0x273b84];_0x273b84!==this[_0x4ab3('0x1c')](_0x162209)&&(this[_0x4ab3('0x1a')](_0x162209),this['add'](_0x162209));}}[_0x4ab3('0x8')](_0x53a52d){let _0x3b3b1d=0x0;if(!_0x53a52d)return this[_0x4ab3('0x6')];for(const _0x1da787 of this){const _0x143bdf=_0x1da787[_0x4ab3('0x9')]['targetRect'];if(_0x143bdf){if(ht(_0x53a52d,_0x143bdf)<0x0)return _0x3b3b1d;_0x3b3b1d++;}}return _0x3b3b1d;}}export function bindAnnotationCollections({source:_0x27609a,target:_0x3d4045,filter:_0x1d0ff5}){for(const _0x1c0c7a of _0x27609a)_0x1d0ff5(_0x1c0c7a)&&_0x3d4045['add'](_0x1c0c7a);_0x3d4045[_0x4ab3('0xb')](_0x27609a,_0x4ab3('0xf'),(_0x22e6e8,_0x5b0a5b)=>{_0x1d0ff5(_0x5b0a5b)&&_0x3d4045[_0x4ab3('0xf')](_0x5b0a5b);}),_0x3d4045[_0x4ab3('0xb')](_0x27609a,'remove',(_0x46fcae,_0x2f6406)=>{_0x3d4045[_0x4ab3('0x1f')](_0x2f6406)&&_0x3d4045['remove'](_0x2f6406);});}function ht(_0x30f32e,_0x45e25e){if(null===_0x30f32e&&null===_0x45e25e)return 0x0;if(null===_0x30f32e)return-0x1;if(null===_0x45e25e)return 0x1;const _0xb9d39d=_0x30f32e['top']-_0x45e25e['top'];return 0x0==_0xb9d39d?_0x30f32e['left']-_0x45e25e[_0x4ab3('0x17')]:_0xb9d39d;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5bdb=['listenTo','isVisible','activeAnnotations','stopListening','_visibleAnnotations','activate','getByInnerView','remove','_addActiveAnnotation','deactivateAll','_removeActiveAnnotation','has','delete','refreshVisibility','element','focusTracker','set','createAnnotationView','_activateAnnotation','change:isVisible','destroy','fire','_bindAnnotationsToVisibleAnnotations','createAnnotation','add','refreshPositioning','collection','source','view','pluginName'];(function(_0x1f84bf,_0x5bdb69){const _0x59b749=function(_0x31b686){while(--_0x31b686){_0x1f84bf['push'](_0x1f84bf['shift']());}};_0x59b749(++_0x5bdb69);}(_0x5bdb,0xe8));const _0x59b7=function(_0x1f84bf,_0x5bdb69){_0x1f84bf=_0x1f84bf-0x0;let _0x59b749=_0x5bdb[_0x1f84bf];return _0x59b749;};import{ContextPlugin as _0x50d61f}from'ckeditor5/src/core';import _0x48f2b6 from'./annotation';import _0x2c8c17 from'./annotationcollection';import _0x38efdc from'./view/annotationview';export default class b extends _0x50d61f{static get[_0x59b7('0x7')](){return'Annotations';}constructor(_0x1f1b43){super(_0x1f1b43),this[_0x59b7('0x4')]=new _0x2c8c17(),this[_0x59b7('0xc')]=new _0x2c8c17(),this[_0x59b7('0x18')](_0x59b7('0xa'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x59b7('0x2')](_0x2c89fc){this[_0x59b7('0x4')][_0x59b7('0x2')](_0x2c89fc);}[_0x59b7('0xf')](_0x4a301d){this[_0x59b7('0x4')][_0x59b7('0xf')](_0x4a301d),_0x4a301d['destroy']();}[_0x59b7('0x15')](){for(const _0x543df0 of this['collection'])_0x543df0[_0x59b7('0x15')]();}['refreshPositioning'](){this[_0x59b7('0xc')][_0x59b7('0x3')]();}[_0x59b7('0xe')](_0x30e454){return this['collection'][_0x59b7('0xe')](_0x30e454);}[_0x59b7('0x11')](){this[_0x59b7('0x1d')]('_deactivateAllAnnotations');}[_0x59b7('0x1c')](){for(const _0xafe822 of this[_0x59b7('0x4')])_0xafe822[_0x59b7('0x1c')]();this['_visibleAnnotations']['destroy'](),this[_0x59b7('0x4')][_0x59b7('0x1c')](),super['destroy']();}[_0x59b7('0xd')](_0x3ca581){this[_0x59b7('0x1d')](_0x59b7('0x1a'),_0x3ca581);}[_0x59b7('0x1')](_0x552f3e){return new _0x48f2b6(_0x552f3e);}[_0x59b7('0x19')](_0x29003b,_0x52cad6){return new _0x38efdc(_0x29003b,_0x52cad6);}[_0x59b7('0x10')](_0x5a5dc5){const _0xbef7f1=new Set(this[_0x59b7('0xa')]);_0xbef7f1[_0x59b7('0x2')](_0x5a5dc5),this[_0x59b7('0xa')]=_0xbef7f1;}[_0x59b7('0x12')](_0x4d637b){const _0x5ecf08=new Set(this[_0x59b7('0xa')]);_0x5ecf08[_0x59b7('0x14')](_0x4d637b),this[_0x59b7('0xa')]=_0x5ecf08;}[_0x59b7('0x0')](){const _0x450f9b=this[_0x59b7('0x4')],_0x5b8052=this['_visibleAnnotations'];function _0x97d7fd(_0x59426e){const _0x55bd92=_0x59426e[_0x59b7('0x5')];_0x55bd92[_0x59b7('0x9')]&&!_0x5b8052['has'](_0x55bd92)?_0x5b8052[_0x59b7('0x2')](_0x55bd92):!_0x55bd92['isVisible']&&_0x5b8052[_0x59b7('0x13')](_0x55bd92)&&_0x5b8052[_0x59b7('0xf')](_0x55bd92),_0x55bd92[_0x59b7('0x6')][_0x59b7('0x17')][_0x59b7('0xf')](_0x55bd92[_0x59b7('0x6')][_0x59b7('0x16')]),_0x55bd92[_0x59b7('0x6')][_0x59b7('0x17')][_0x59b7('0x2')](_0x55bd92[_0x59b7('0x6')][_0x59b7('0x16')]);}this[_0x59b7('0x8')](_0x450f9b,_0x59b7('0x2'),(_0x3e7cf0,_0x23fb40)=>{_0x23fb40[_0x59b7('0x9')]&&_0x5b8052['add'](_0x23fb40),this[_0x59b7('0x8')](_0x23fb40,_0x59b7('0x1b'),_0x97d7fd);}),this[_0x59b7('0x8')](_0x450f9b,_0x59b7('0xf'),(_0x91d4ec,_0x232453)=>{_0x5b8052[_0x59b7('0x13')](_0x232453)&&_0x5b8052[_0x59b7('0xf')](_0x232453),this[_0x59b7('0xb')](_0x232453,'change:isVisible',_0x97d7fd);});}}
23
+ const _0x1005=['createAnnotationView','change:isVisible','collection','_removeActiveAnnotation','add','remove','destroy','has','source','_deactivateAllAnnotations','activeAnnotations','_bindAnnotationsToVisibleAnnotations','_visibleAnnotations','delete','_activateAnnotation','deactivateAll','isVisible','_addActiveAnnotation','fire','pluginName','refreshPositioning','element','view','Annotations','refreshVisibility','listenTo','focusTracker'];(function(_0xeb9a73,_0x1005a7){const _0x42d6b0=function(_0xf1dc30){while(--_0xf1dc30){_0xeb9a73['push'](_0xeb9a73['shift']());}};_0x42d6b0(++_0x1005a7);}(_0x1005,0xa1));const _0x42d6=function(_0xeb9a73,_0x1005a7){_0xeb9a73=_0xeb9a73-0x0;let _0x42d6b0=_0x1005[_0xeb9a73];return _0x42d6b0;};import{ContextPlugin as _0x4b9152}from'ckeditor5/src/core';import _0x64338 from'./annotation';import _0x10a665 from'./annotationcollection';import _0xcb54e from'./view/annotationview';export default class v extends _0x4b9152{static get[_0x42d6('0x14')](){return _0x42d6('0x18');}constructor(_0x18bdd8){super(_0x18bdd8),this['collection']=new _0x10a665(),this['_visibleAnnotations']=new _0x10a665(),this['set'](_0x42d6('0xb'),new Set()),this[_0x42d6('0xc')]();}[_0x42d6('0x5')](_0x2783ce){this['collection'][_0x42d6('0x5')](_0x2783ce);}[_0x42d6('0x6')](_0x2a53dd){this['collection'][_0x42d6('0x6')](_0x2a53dd),_0x2a53dd[_0x42d6('0x7')]();}[_0x42d6('0x19')](){for(const _0x258f96 of this[_0x42d6('0x3')])_0x258f96[_0x42d6('0x19')]();}['refreshPositioning'](){this[_0x42d6('0xd')][_0x42d6('0x15')]();}['getByInnerView'](_0x4a5d21){return this[_0x42d6('0x3')]['getByInnerView'](_0x4a5d21);}[_0x42d6('0x10')](){this['fire'](_0x42d6('0xa'));}[_0x42d6('0x7')](){for(const _0x2a449b of this[_0x42d6('0x3')])_0x2a449b[_0x42d6('0x7')]();this[_0x42d6('0xd')][_0x42d6('0x7')](),this['collection'][_0x42d6('0x7')](),super[_0x42d6('0x7')]();}['activate'](_0x32b383){this[_0x42d6('0x13')](_0x42d6('0xf'),_0x32b383);}['createAnnotation'](_0x1ea860){return new _0x64338(_0x1ea860);}[_0x42d6('0x1')](_0x162ad4,_0x1ac209){return new _0xcb54e(_0x162ad4,_0x1ac209);}[_0x42d6('0x12')](_0x4a18de){const _0x2b3873=new Set(this[_0x42d6('0xb')]);_0x2b3873[_0x42d6('0x5')](_0x4a18de),this[_0x42d6('0xb')]=_0x2b3873;}[_0x42d6('0x4')](_0x417bb0){const _0x3ccc84=new Set(this[_0x42d6('0xb')]);_0x3ccc84[_0x42d6('0xe')](_0x417bb0),this[_0x42d6('0xb')]=_0x3ccc84;}[_0x42d6('0xc')](){const _0x4393d2=this[_0x42d6('0x3')],_0xeaba6d=this[_0x42d6('0xd')];function _0x3aa137(_0x3b9435){const _0x276d02=_0x3b9435[_0x42d6('0x9')];_0x276d02[_0x42d6('0x11')]&&!_0xeaba6d['has'](_0x276d02)?_0xeaba6d[_0x42d6('0x5')](_0x276d02):!_0x276d02[_0x42d6('0x11')]&&_0xeaba6d[_0x42d6('0x8')](_0x276d02)&&_0xeaba6d[_0x42d6('0x6')](_0x276d02),_0x276d02['view'][_0x42d6('0x0')][_0x42d6('0x6')](_0x276d02['view'][_0x42d6('0x16')]),_0x276d02[_0x42d6('0x17')][_0x42d6('0x0')]['add'](_0x276d02[_0x42d6('0x17')][_0x42d6('0x16')]);}this[_0x42d6('0x1a')](_0x4393d2,_0x42d6('0x5'),(_0x2756a1,_0xf4a695)=>{_0xf4a695[_0x42d6('0x11')]&&_0xeaba6d[_0x42d6('0x5')](_0xf4a695),this[_0x42d6('0x1a')](_0xf4a695,_0x42d6('0x2'),_0x3aa137);}),this[_0x42d6('0x1a')](_0x4393d2,_0x42d6('0x6'),(_0x1f5e61,_0x598b36)=>{_0xeaba6d[_0x42d6('0x8')](_0x598b36)&&_0xeaba6d[_0x42d6('0x6')](_0x598b36),this['stopListening'](_0x598b36,_0x42d6('0x2'),_0x3aa137);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2085=['type','length','attach','_setSelectedAnnotations','find','annotationsuis-register-already-registered','deactivate','_visibleAnnotations','annotationsuis-annotation-mismatch','switchTo','push','_uisData','detach','annotationsuis-register-invalid-interface','from','filter','_removeActiveAnnotation','_assertAnnotationDoesNotBelongToMultipleUIs','destroy','context','delete','register','isActive','activeAnnotations','pluginName','AnnotationsUIs','listenTo','plugins','get','_activateAnnotation','function','activate','_addActiveAnnotation','set','collection','stopListening','has','_deactivateAllAnnotations','deactivateAll','setActiveAnnotation','requires','size','activeUIs','init','add','_uis','annotationsuis-missing-ui'];(function(_0x11747d,_0x2085cb){const _0x40e9db=function(_0x2adf7c){while(--_0x2adf7c){_0x11747d['push'](_0x11747d['shift']());}};_0x40e9db(++_0x2085cb);}(_0x2085,0xad));const _0x40e9=function(_0x11747d,_0x2085cb){_0x11747d=_0x11747d-0x0;let _0x40e9db=_0x2085[_0x11747d];return _0x40e9db;};import{ContextPlugin as _0x234370}from'ckeditor5/src/core';import{CKEditorError as _0x5b58f6}from'ckeditor5/src/utils';import _0x36165e,{bindAnnotationCollections as _0x24d852}from'./annotationcollection';import _0x309bea from'./annotations';export default class M extends _0x234370{static get[_0x40e9('0x8')](){return[_0x309bea];}static get[_0x40e9('0x27')](){return _0x40e9('0x28');}constructor(_0x1571f9){super(_0x1571f9),this[_0x40e9('0xa')]=new Set(),this['_uis']=new Map(),this[_0x40e9('0x1a')]=new Map();}[_0x40e9('0xb')](){const _0x1d3c1d=this['context'][_0x40e9('0x2a')][_0x40e9('0x2b')](_0x309bea);this['listenTo'](_0x1d3c1d,_0x40e9('0x2c'),(_0x1f7d0d,_0x229479)=>{for(const _0x55adfb of this['activeUIs']){const _0x2ac8f9=this['_uis'][_0x40e9('0x2b')](_0x55adfb);(0x0,this[_0x40e9('0x1a')][_0x40e9('0x2b')](_0x55adfb)['filter'])(_0x229479)&&_0x2ac8f9[_0x40e9('0x7')](_0x229479);}}),this[_0x40e9('0x29')](_0x1d3c1d,_0x40e9('0x5'),()=>{for(const _0x44eabc of this[_0x40e9('0xa')]){this['_uis'][_0x40e9('0x2b')](_0x44eabc)[_0x40e9('0x7')](null);}}),this[_0x40e9('0x29')](_0x1d3c1d[_0x40e9('0x16')],_0x40e9('0xc'),(_0x275b87,_0x37a86f)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x37a86f);});}['hasActive'](){return this[_0x40e9('0xa')][_0x40e9('0x9')]>0x0;}[_0x40e9('0x25')](_0x9ea674){return this[_0x40e9('0xa')]['has'](_0x9ea674);}[_0x40e9('0x2e')](_0x345cc3,_0x4b7ef9=()=>!0x0){const _0x347482=this[_0x40e9('0x22')][_0x40e9('0x2a')][_0x40e9('0x2b')](_0x309bea);if(!this[_0x40e9('0xd')][_0x40e9('0x4')](_0x345cc3))throw new _0x5b58f6('annotationsuis-missing-ui',this,{'uiName':_0x345cc3});this['isActive'](_0x345cc3)&&this['deactivate'](_0x345cc3),this['activeUIs'][_0x40e9('0xc')](_0x345cc3);const _0x80caaa=new _0x36165e(),_0x34a5ee=_0x347482['_visibleAnnotations'];_0x24d852({'source':_0x34a5ee,'target':_0x80caaa,'filter':_0x4b7ef9}),this[_0x40e9('0x1a')]['set'](_0x345cc3,{'collection':_0x80caaa,'filter':_0x4b7ef9});const _0x17d88b=this['_uis'][_0x40e9('0x2b')](_0x345cc3);_0x17d88b['attach'](_0x80caaa),this[_0x40e9('0x29')](_0x17d88b,'change:activeAnnotation',(_0x58ad59,_0x5ad956,_0x164488,_0x45ddc5)=>{_0x45ddc5&&_0x347482[_0x40e9('0x1f')](_0x45ddc5),_0x164488&&_0x347482[_0x40e9('0x0')](_0x164488);});}[_0x40e9('0x15')](_0x57ef89){if(this[_0x40e9('0xa')][_0x40e9('0x23')](_0x57ef89),!this['_uis'][_0x40e9('0x4')](_0x57ef89))throw new _0x5b58f6(_0x40e9('0xe'),this,{'uiName':_0x57ef89});const _0x363428=this['_uis'][_0x40e9('0x2b')](_0x57ef89);_0x363428[_0x40e9('0x1b')](),this[_0x40e9('0x3')](_0x363428),this['_uisData']['get'](_0x57ef89)[_0x40e9('0x2')][_0x40e9('0x21')](),this[_0x40e9('0x1a')][_0x40e9('0x23')](_0x57ef89);}[_0x40e9('0x18')](_0x2ae332){if(!this[_0x40e9('0xd')][_0x40e9('0x4')](_0x2ae332))throw new _0x5b58f6(_0x40e9('0xe'),this,{'uiName':_0x2ae332});const _0x25e8de=this[_0x40e9('0x22')][_0x40e9('0x2a')]['get'](_0x309bea),_0x1b96ec=Array[_0x40e9('0x1d')](_0x25e8de[_0x40e9('0x26')])[0x0]||null;this[_0x40e9('0x6')](),this[_0x40e9('0x2e')](_0x2ae332);const _0x31e032=this[_0x40e9('0xd')][_0x40e9('0x2b')](_0x2ae332);_0x31e032[_0x40e9('0x7')](_0x1b96ec),_0x31e032[_0x40e9('0x12')]&&_0x1b96ec&&_0x31e032[_0x40e9('0x12')]([_0x1b96ec]);}[_0x40e9('0x6')](){for(const _0x87df73 of this[_0x40e9('0xa')])this['deactivate'](_0x87df73);}[_0x40e9('0x24')](_0x49ac02,_0x11cd45){if(this[_0x40e9('0xd')][_0x40e9('0x4')](_0x49ac02))throw new _0x5b58f6(_0x40e9('0x14'));if(_0x40e9('0x2d')!=typeof _0x11cd45[_0x40e9('0x11')]||_0x40e9('0x2d')!=typeof _0x11cd45[_0x40e9('0x1b')]||_0x40e9('0x2d')!=typeof _0x11cd45[_0x40e9('0x7')])throw new _0x5b58f6(_0x40e9('0x1c'),null);this['_uis'][_0x40e9('0x1')](_0x49ac02,_0x11cd45);}['refilterAnnotations'](){const _0x25091e=this[_0x40e9('0x22')][_0x40e9('0x2a')][_0x40e9('0x2b')](_0x309bea)[_0x40e9('0x2')],_0x26cd8e=new Map(),_0x2bfba6=Array[_0x40e9('0x1d')](this[_0x40e9('0xa')]);for(const _0x78df99 of this[_0x40e9('0xa')]){const _0x74376d=this['_uisData'][_0x40e9('0x2b')](_0x78df99)[_0x40e9('0x2')];for(const _0x184c82 of _0x74376d)_0x26cd8e[_0x40e9('0x1')](_0x184c82,_0x78df99);}for(const _0x1fd964 of _0x25091e){const _0x42f074=_0x26cd8e['get'](_0x1fd964);this[_0x40e9('0x20')](_0x1fd964);const _0x48b026=_0x2bfba6[_0x40e9('0x13')](_0x26ed01=>this[_0x40e9('0x1a')][_0x40e9('0x2b')](_0x26ed01)[_0x40e9('0x1e')](_0x1fd964));_0x42f074!==_0x48b026&&(_0x42f074&&this[_0x40e9('0x1a')][_0x40e9('0x2b')](_0x42f074)[_0x40e9('0x2')]['remove'](_0x1fd964),_0x48b026&&this['_uisData'][_0x40e9('0x2b')](_0x48b026)[_0x40e9('0x2')]['add'](_0x1fd964));}}[_0x40e9('0x21')](){this[_0x40e9('0x6')](),super[_0x40e9('0x21')]();}[_0x40e9('0x20')](_0x491ecd){const _0x11c307=[];for(const _0x50f4e7 of this['activeUIs']){(0x0,this[_0x40e9('0x1a')][_0x40e9('0x2b')](_0x50f4e7)['filter'])(_0x491ecd)&&_0x11c307[_0x40e9('0x19')](_0x50f4e7);}if(_0x11c307[_0x40e9('0x10')]>0x1)throw new _0x5b58f6(_0x40e9('0x17'),null,{'matchedUIs':_0x11c307,'annotationType':_0x491ecd[_0x40e9('0xf')]});}}
23
+ const _0x31b1=['size','destroy','deactivate','length','_addActiveAnnotation','filter','find','_assertAnnotationDoesNotBelongToMultipleUIs','get','setActiveAnnotation','_uis','type','activeUIs','_setSelectedAnnotations','detach','collection','switchTo','add','refilterAnnotations','hasActive','attach','context','pluginName','push','AnnotationsUIs','activeAnnotations','_visibleAnnotations','has','register','set','deactivateAll','_activateAnnotation','function','isActive','_uisData','activate','annotationsuis-missing-ui','listenTo','delete','remove','plugins','from','annotationsuis-register-invalid-interface'];(function(_0x5896b4,_0x31b14b){const _0x42e412=function(_0x15bfa0){while(--_0x15bfa0){_0x5896b4['push'](_0x5896b4['shift']());}};_0x42e412(++_0x31b14b);}(_0x31b1,0x1d8));const _0x42e4=function(_0x5896b4,_0x31b14b){_0x5896b4=_0x5896b4-0x0;let _0x42e412=_0x31b1[_0x5896b4];return _0x42e412;};import{ContextPlugin as _0x52c28f}from'ckeditor5/src/core';import{CKEditorError as _0x3b68f6}from'ckeditor5/src/utils';import _0x5a4dd3,{bindAnnotationCollections as _0x2b45be}from'./annotationcollection';import _0x367c29 from'./annotations';export default class ct extends _0x52c28f{static get['requires'](){return[_0x367c29];}static get[_0x42e4('0x17')](){return _0x42e4('0x19');}constructor(_0x27acd9){super(_0x27acd9),this[_0x42e4('0xd')]=new Set(),this['_uis']=new Map(),this[_0x42e4('0x23')]=new Map();}['init'](){const _0x26b048=this[_0x42e4('0x16')][_0x42e4('0x29')][_0x42e4('0x9')](_0x367c29);this[_0x42e4('0x26')](_0x26b048,_0x42e4('0x20'),(_0x1105bc,_0x35d8f5)=>{for(const _0x5e32d2 of this['activeUIs']){const _0x35f3f7=this[_0x42e4('0xb')][_0x42e4('0x9')](_0x5e32d2);(0x0,this['_uisData'][_0x42e4('0x9')](_0x5e32d2)['filter'])(_0x35d8f5)&&_0x35f3f7[_0x42e4('0xa')](_0x35d8f5);}}),this[_0x42e4('0x26')](_0x26b048,'_deactivateAllAnnotations',()=>{for(const _0x714f0c of this[_0x42e4('0xd')]){this[_0x42e4('0xb')]['get'](_0x714f0c)[_0x42e4('0xa')](null);}}),this[_0x42e4('0x26')](_0x26b048['_visibleAnnotations'],_0x42e4('0x12'),(_0x3e2986,_0x30d95b)=>{this[_0x42e4('0x8')](_0x30d95b);});}[_0x42e4('0x14')](){return this[_0x42e4('0xd')][_0x42e4('0x1')]>0x0;}[_0x42e4('0x22')](_0x50eef3){return this['activeUIs'][_0x42e4('0x1c')](_0x50eef3);}[_0x42e4('0x24')](_0x3fa1ba,_0x599bd4=()=>!0x0){const _0x11fbf9=this[_0x42e4('0x16')][_0x42e4('0x29')][_0x42e4('0x9')](_0x367c29);if(!this[_0x42e4('0xb')][_0x42e4('0x1c')](_0x3fa1ba))throw new _0x3b68f6(_0x42e4('0x25'),this,{'uiName':_0x3fa1ba});this[_0x42e4('0x22')](_0x3fa1ba)&&this[_0x42e4('0x3')](_0x3fa1ba),this[_0x42e4('0xd')][_0x42e4('0x12')](_0x3fa1ba);const _0x5b1462=new _0x5a4dd3(),_0x4b7722=_0x11fbf9[_0x42e4('0x1b')];_0x2b45be({'source':_0x4b7722,'target':_0x5b1462,'filter':_0x599bd4}),this['_uisData'][_0x42e4('0x1e')](_0x3fa1ba,{'collection':_0x5b1462,'filter':_0x599bd4});const _0xbeb3cc=this[_0x42e4('0xb')]['get'](_0x3fa1ba);_0xbeb3cc[_0x42e4('0x15')](_0x5b1462),this[_0x42e4('0x26')](_0xbeb3cc,'change:activeAnnotation',(_0x3d3f41,_0x2b79c0,_0x37ebd3,_0x5c2761)=>{_0x5c2761&&_0x11fbf9['_removeActiveAnnotation'](_0x5c2761),_0x37ebd3&&_0x11fbf9[_0x42e4('0x5')](_0x37ebd3);});}[_0x42e4('0x3')](_0x2ef4d7){if(this[_0x42e4('0xd')][_0x42e4('0x27')](_0x2ef4d7),!this[_0x42e4('0xb')][_0x42e4('0x1c')](_0x2ef4d7))throw new _0x3b68f6(_0x42e4('0x25'),this,{'uiName':_0x2ef4d7});const _0x116904=this[_0x42e4('0xb')][_0x42e4('0x9')](_0x2ef4d7);_0x116904[_0x42e4('0xf')](),this['stopListening'](_0x116904),this[_0x42e4('0x23')]['get'](_0x2ef4d7)[_0x42e4('0x10')]['destroy'](),this[_0x42e4('0x23')][_0x42e4('0x27')](_0x2ef4d7);}[_0x42e4('0x11')](_0x5d2a22){if(!this[_0x42e4('0xb')][_0x42e4('0x1c')](_0x5d2a22))throw new _0x3b68f6(_0x42e4('0x25'),this,{'uiName':_0x5d2a22});const _0x262769=this[_0x42e4('0x16')][_0x42e4('0x29')]['get'](_0x367c29),_0x444af5=Array[_0x42e4('0x2a')](_0x262769[_0x42e4('0x1a')])[0x0]||null;this[_0x42e4('0x1f')](),this[_0x42e4('0x24')](_0x5d2a22);const _0x34a8aa=this['_uis'][_0x42e4('0x9')](_0x5d2a22);_0x34a8aa[_0x42e4('0xa')](_0x444af5),_0x34a8aa['_setSelectedAnnotations']&&_0x444af5&&_0x34a8aa[_0x42e4('0xe')]([_0x444af5]);}['deactivateAll'](){for(const _0x4c368a of this[_0x42e4('0xd')])this['deactivate'](_0x4c368a);}[_0x42e4('0x1d')](_0x14f068,_0x147452){if(this[_0x42e4('0xb')][_0x42e4('0x1c')](_0x14f068))throw new _0x3b68f6('annotationsuis-register-already-registered');if('function'!=typeof _0x147452[_0x42e4('0x15')]||_0x42e4('0x21')!=typeof _0x147452[_0x42e4('0xf')]||_0x42e4('0x21')!=typeof _0x147452[_0x42e4('0xa')])throw new _0x3b68f6(_0x42e4('0x0'),null);this[_0x42e4('0xb')][_0x42e4('0x1e')](_0x14f068,_0x147452);}[_0x42e4('0x13')](){const _0x301bdd=this[_0x42e4('0x16')][_0x42e4('0x29')][_0x42e4('0x9')](_0x367c29)[_0x42e4('0x10')],_0xe1a0d7=new Map(),_0x4c4163=Array[_0x42e4('0x2a')](this[_0x42e4('0xd')]);for(const _0x3c50d3 of this[_0x42e4('0xd')]){const _0x4c1be0=this[_0x42e4('0x23')][_0x42e4('0x9')](_0x3c50d3)[_0x42e4('0x10')];for(const _0xae2fbb of _0x4c1be0)_0xe1a0d7[_0x42e4('0x1e')](_0xae2fbb,_0x3c50d3);}for(const _0x1e86f2 of _0x301bdd){const _0x5115b5=_0xe1a0d7[_0x42e4('0x9')](_0x1e86f2);this[_0x42e4('0x8')](_0x1e86f2);const _0x22a149=_0x4c4163[_0x42e4('0x7')](_0x28036d=>this[_0x42e4('0x23')]['get'](_0x28036d)[_0x42e4('0x6')](_0x1e86f2));_0x5115b5!==_0x22a149&&(_0x5115b5&&this[_0x42e4('0x23')]['get'](_0x5115b5)[_0x42e4('0x10')][_0x42e4('0x28')](_0x1e86f2),_0x22a149&&this[_0x42e4('0x23')]['get'](_0x22a149)[_0x42e4('0x10')][_0x42e4('0x12')](_0x1e86f2));}}['destroy'](){this[_0x42e4('0x1f')](),super[_0x42e4('0x2')]();}[_0x42e4('0x8')](_0x321a55){const _0x262eb3=[];for(const _0x5adb70 of this[_0x42e4('0xd')]){(0x0,this[_0x42e4('0x23')][_0x42e4('0x9')](_0x5adb70)[_0x42e4('0x6')])(_0x321a55)&&_0x262eb3[_0x42e4('0x18')](_0x5adb70);}if(_0x262eb3[_0x42e4('0x4')]>0x1)throw new _0x3b68f6('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x262eb3,'annotationType':_0x321a55[_0x42e4('0xc')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x45b6=['refresh','addSourceCollector','get','has','isReadOnly','focusTracker','sort','_editorAnnotations','containsRange','isEqual','editing','fire','refreshSelectedViews','_editorAnnotationsData','push','map','model','from','isCollapsed','collection','uiUpdate','cancel','editorannotations-invalid-source-callback','directChange','plugins','function','annotation','view','getByInnerView','document','selection','init','hasDomSelection','change:isFocused','listenTo','add','set','getRanges','editor','requires','range','_dataCollectors','element'];(function(_0x37f9b7,_0x45b6dc){const _0x1c95ee=function(_0x11a346){while(--_0x11a346){_0x37f9b7['push'](_0x37f9b7['shift']());}};_0x1c95ee(++_0x45b6dc);}(_0x45b6,0x14f));const _0x1c95=function(_0x37f9b7,_0x45b6dc){_0x37f9b7=_0x37f9b7-0x0;let _0x1c95ee=_0x45b6[_0x37f9b7];return _0x1c95ee;};import{Plugin as _0x205d54}from'ckeditor5/src/core';import{CKEditorError as _0x5b23a8}from'ckeditor5/src/utils';import{debounce as _0x40e3ee}from'lodash-es';import _0x27831a from'./annotations';export default class k extends _0x205d54{static get[_0x1c95('0x5')](){return[_0x27831a];}static get['pluginName'](){return'EditorAnnotations';}constructor(_0x4d4a4f){super(_0x4d4a4f),this['_dataCollectors']=new Set(),this[_0x1c95('0x10')]=new Set();}[_0x1c95('0x28')](){const _0x2c274b=this['editor'],_0x4377bf=_0x2c274b[_0x1c95('0x19')]['document'][_0x1c95('0x27')],_0x18c245=_0x40e3ee(()=>this[_0x1c95('0x15')](),0xa);_0x4377bf['on']('change:range',(_0x1ebdb3,_0x4d06dd)=>{_0x4d06dd[_0x1c95('0x20')]&&(_0x18c245[_0x1c95('0x1e')](),this['refreshSelectedViews']());}),this[_0x1c95('0x0')](_0x2c274b[_0x1c95('0x13')][_0x1c95('0x24')][_0x1c95('0x26')],'change:isFocused',(_0x57b212,_0x11aab8,_0xa2a2e6)=>{_0xa2a2e6&&_0x18c245();}),this[_0x1c95('0x0')](_0x2c274b['ui'][_0x1c95('0xe')],_0x1c95('0x2a'),(_0x36ca24,_0xaaa399,_0xcc1415)=>{_0xcc1415||_0x2c274b[_0x1c95('0xd')]||this[_0x1c95('0x14')]('blur',{'isAnnotationTracked':_0x205069=>this[_0x1c95('0x16')][_0x1c95('0xc')](_0x205069['innerView'])});}),this[_0x1c95('0x0')](this[_0x1c95('0x4')]['ui'],'update',()=>this[_0x1c95('0x14')](_0x1c95('0x1d')));}['registerAnnotation'](_0x22517b){if(this[_0x1c95('0x10')][_0x1c95('0xc')](_0x22517b[_0x1c95('0x24')]))return;this[_0x1c95('0x10')][_0x1c95('0x1')](_0x22517b[_0x1c95('0x24')]),this[_0x1c95('0x4')]['ui'][_0x1c95('0xe')][_0x1c95('0x1')](_0x22517b[_0x1c95('0x24')][_0x1c95('0x8')]);const _0x2a1844=this[_0x1c95('0x4')][_0x1c95('0x21')][_0x1c95('0xb')](_0x27831a);this[_0x1c95('0x0')](_0x2a1844[_0x1c95('0x1c')],'remove',(_0x264242,_0x4b822c)=>{this[_0x1c95('0x4')]['ui'][_0x1c95('0xe')]['remove'](_0x4b822c[_0x1c95('0x24')][_0x1c95('0x8')]),this[_0x1c95('0x10')]['delete'](_0x4b822c[_0x1c95('0x24')]);});}[_0x1c95('0x29')](){return this[_0x1c95('0x4')][_0x1c95('0x13')][_0x1c95('0x24')][_0x1c95('0x29')];}[_0x1c95('0xa')](_0x269469){if(_0x1c95('0x22')!=typeof _0x269469)throw new _0x5b23a8(_0x1c95('0x1f'));this[_0x1c95('0x7')][_0x1c95('0x1')](_0x269469);}[_0x1c95('0x15')](){this[_0x1c95('0x14')](_0x1c95('0x9'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x1cf3a5,annotations:_0x401001}){const _0x299ccf=[],_0x3e8028=this[_0x1c95('0x4')]['model']['document'][_0x1c95('0x27')],_0x414573=Array[_0x1c95('0x1a')](_0x3e8028[_0x1c95('0x3')]());for(const [_0x251a69,_0x25f875]of this[_0x1c95('0x16')]){const _0x35dfc3=_0x33ff98(_0x25f875),_0x2dc1ac=_0x401001[_0x1c95('0x25')](_0x251a69);_0x35dfc3&&_0x2dc1ac&&_0x299ccf[_0x1c95('0x17')]({'annotation':_0x2dc1ac,'range':_0x35dfc3});}function _0x33ff98(_0x5d088c){for(const _0x45061f of _0x5d088c)for(const _0x3265d4 of _0x414573)if(_0x45061f[_0x1c95('0x11')](_0x3265d4,!_0x3e8028[_0x1c95('0x1b')]))return _0x45061f;return null;}return _0x299ccf[_0x1c95('0xf')]((_0x57b3a4,_0x36194e)=>{const _0x26ffdb=_0x57b3a4['range'],_0x333993=_0x36194e[_0x1c95('0x6')];if(!_0x26ffdb[_0x1c95('0x12')](_0x333993)){if(_0x26ffdb[_0x1c95('0x11')](_0x333993,!0x0))return 0x1;if(_0x333993[_0x1c95('0x11')](_0x26ffdb,!0x0))return-0x1;}return _0x57b3a4[_0x1c95('0x23')]==_0x1cf3a5?-0x1:_0x36194e[_0x1c95('0x23')]==_0x1cf3a5?0x1:0x0;})[_0x1c95('0x18')](_0x3091cc=>_0x3091cc[_0x1c95('0x23')]);}get[_0x1c95('0x16')](){const _0x3a2ff9=new Map();for(const _0x154895 of Array[_0x1c95('0x1a')](this[_0x1c95('0x7')]))for(const [_0x9b3231,_0x4e2f5f]of _0x154895())_0x3a2ff9[_0x1c95('0x2')](_0x9b3231,_0x4e2f5f);return _0x3a2ff9;}}
23
+ const _0x2a67=['_editorAnnotations','change:isFocused','from','listenTo','requires','addSourceCollector','selection','registerAnnotation','update','editor','hasDomSelection','_editorAnnotationsData','directChange','get','annotation','remove','init','getOrderedSelectedAnnotations','map','pluginName','function','innerView','editorannotations-invalid-source-callback','refreshSelectedViews','containsRange','EditorAnnotations','change:range','focusTracker','editing','set','model','range','plugins','getByInnerView','view','add','isEqual','element','refresh','document','_dataCollectors','push','delete','uiUpdate','getRanges','fire'];(function(_0x56b1f2,_0x2a67c7){const _0x2c24a4=function(_0x213042){while(--_0x213042){_0x56b1f2['push'](_0x56b1f2['shift']());}};_0x2c24a4(++_0x2a67c7);}(_0x2a67,0x1d0));const _0x2c24=function(_0x56b1f2,_0x2a67c7){_0x56b1f2=_0x56b1f2-0x0;let _0x2c24a4=_0x2a67[_0x56b1f2];return _0x2c24a4;};import{Plugin as _0x54d4e4}from'ckeditor5/src/core';import{CKEditorError as _0x31ce1c}from'ckeditor5/src/utils';import{debounce as _0x33342e}from'lodash-es';import _0x22a8c4 from'./annotations';export default class M extends _0x54d4e4{static get[_0x2c24('0x0')](){return[_0x22a8c4];}static get[_0x2c24('0xf')](){return _0x2c24('0x15');}constructor(_0x1c4a23){super(_0x1c4a23),this['_dataCollectors']=new Set(),this[_0x2c24('0x2a')]=new Set();}[_0x2c24('0xc')](){const _0xf8cbe8=this[_0x2c24('0x5')],_0x7c99dd=_0xf8cbe8['model'][_0x2c24('0x23')][_0x2c24('0x2')],_0x30ac11=_0x33342e(()=>this[_0x2c24('0x13')](),0xa);_0x7c99dd['on'](_0x2c24('0x16'),(_0x3762ca,_0x4c1d34)=>{_0x4c1d34[_0x2c24('0x8')]&&(_0x30ac11['cancel'](),this[_0x2c24('0x13')]());}),this[_0x2c24('0x2d')](_0xf8cbe8[_0x2c24('0x18')][_0x2c24('0x1e')][_0x2c24('0x23')],'change:isFocused',(_0x10da98,_0x3720ae,_0x22e6aa)=>{_0x22e6aa&&_0x30ac11();}),this[_0x2c24('0x2d')](_0xf8cbe8['ui'][_0x2c24('0x17')],_0x2c24('0x2b'),(_0x5a27b7,_0x5eed00,_0x1aeb1b)=>{_0x1aeb1b||_0xf8cbe8['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x59e055=>this['_editorAnnotationsData']['has'](_0x59e055[_0x2c24('0x11')])});}),this[_0x2c24('0x2d')](this[_0x2c24('0x5')]['ui'],_0x2c24('0x4'),()=>this[_0x2c24('0x29')](_0x2c24('0x27')));}[_0x2c24('0x3')](_0x305060){if(this[_0x2c24('0x2a')]['has'](_0x305060[_0x2c24('0x1e')]))return;this[_0x2c24('0x2a')]['add'](_0x305060['view']),this[_0x2c24('0x5')]['ui'][_0x2c24('0x17')][_0x2c24('0x1f')](_0x305060['view'][_0x2c24('0x21')]);const _0x2231f3=this[_0x2c24('0x5')][_0x2c24('0x1c')][_0x2c24('0x9')](_0x22a8c4);this[_0x2c24('0x2d')](_0x2231f3['collection'],_0x2c24('0xb'),(_0x54e3c7,_0x4d5bf9)=>{this[_0x2c24('0x5')]['ui']['focusTracker'][_0x2c24('0xb')](_0x4d5bf9[_0x2c24('0x1e')][_0x2c24('0x21')]),this[_0x2c24('0x2a')][_0x2c24('0x26')](_0x4d5bf9[_0x2c24('0x1e')]);});}['hasDomSelection'](){return this['editor']['editing'][_0x2c24('0x1e')][_0x2c24('0x6')];}[_0x2c24('0x1')](_0x19f509){if(_0x2c24('0x10')!=typeof _0x19f509)throw new _0x31ce1c(_0x2c24('0x12'));this[_0x2c24('0x24')][_0x2c24('0x1f')](_0x19f509);}[_0x2c24('0x13')](){this[_0x2c24('0x29')](_0x2c24('0x22'));}[_0x2c24('0xd')]({activeAnnotation:_0x15bfb3,annotations:_0x52705a}){const _0x33d197=[],_0x44c96e=this['editor'][_0x2c24('0x1a')]['document'][_0x2c24('0x2')],_0x59e11a=Array['from'](_0x44c96e[_0x2c24('0x28')]());for(const [_0x5275ea,_0x280b10]of this[_0x2c24('0x7')]){const _0x111e06=_0x36e64b(_0x280b10),_0x4cd8f2=_0x52705a[_0x2c24('0x1d')](_0x5275ea);_0x111e06&&_0x4cd8f2&&_0x33d197[_0x2c24('0x25')]({'annotation':_0x4cd8f2,'range':_0x111e06});}function _0x36e64b(_0x39e138){for(const _0x59f994 of _0x39e138)for(const _0x2d6562 of _0x59e11a)if(_0x59f994['containsRange'](_0x2d6562,!_0x44c96e['isCollapsed']))return _0x59f994;return null;}return _0x33d197['sort']((_0x2ccadb,_0x412fae)=>{const _0x6d305d=_0x2ccadb[_0x2c24('0x1b')],_0x256961=_0x412fae[_0x2c24('0x1b')];if(!_0x6d305d[_0x2c24('0x20')](_0x256961)){if(_0x6d305d[_0x2c24('0x14')](_0x256961,!0x0))return 0x1;if(_0x256961[_0x2c24('0x14')](_0x6d305d,!0x0))return-0x1;}return _0x2ccadb[_0x2c24('0xa')]==_0x15bfb3?-0x1:_0x412fae['annotation']==_0x15bfb3?0x1:0x0;})[_0x2c24('0xe')](_0x2fe2aa=>_0x2fe2aa[_0x2c24('0xa')]);}get[_0x2c24('0x7')](){const _0x48812b=new Map();for(const _0x76c76e of Array[_0x2c24('0x2c')](this[_0x2c24('0x24')]))for(const [_0x527a51,_0x564cfa]of _0x76c76e())_0x48812b[_0x2c24('0x19')](_0x527a51,_0x564cfa);return _0x48812b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12df=['pluginName','set','Esc','requires','_addedAnnotations','getClientRects','register','_getBalloonTargetForAnnotation','isAttached','length','includes','editor','update','editing','every','setActiveAnnotation','map','_selectedAnnotations','detach','focus','stopListening','get','domConverter','_closeAnnotation','plugins','selection','getByView','activeAnnotation','inline','listenTo','focusTracker','fromRect','change:isFocused','isActive','targetRect','keystrokes','has','annotations','left','right','_setSelectedAnnotations','refresh','_addAnnotationToBalloon','_removeAnnotationFromBalloon','change:visibleView','document','hasView','visibleView','change:height','remove','mousedown','clear','_forceRefresh','switchTo','InlineAnnotations','editableElement','init','find','inlineannotations-attach-already-attached','isFocused','hasActive','add','top','_manuallyClosed','collapse','_balloon','push','blur','showStack','context','viewRangeToDom','width','bottom','destroy','view','updatePosition','delete','inlineannotations-not-allowed-with-context','from'];(function(_0x1ee210,_0x12df6b){const _0x244a01=function(_0x94a4e4){while(--_0x94a4e4){_0x1ee210['push'](_0x1ee210['shift']());}};_0x244a01(++_0x12df6b);}(_0x12df,0xe5));const _0x244a=function(_0x1ee210,_0x12df6b){_0x1ee210=_0x1ee210-0x0;let _0x244a01=_0x12df[_0x1ee210];return _0x244a01;};import{Plugin as _0x3b5198}from'ckeditor5/src/core';import _0xd97840 from'./annotationsuis';import _0x197b3a from'./editorannotations';import{ContextualBalloon as _0x44d7d0}from'ckeditor5/src/ui';import{MouseObserver as _0x230bea}from'ckeditor5/src/engine';import{CKEditorError as _0x506e15,Rect as _0x64b5d7}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x3b5198{static get[_0x244a('0xb')](){return[_0x197b3a,_0x44d7d0,_0xd97840];}static get[_0x244a('0x8')](){return _0x244a('0x3e');}constructor(_0x1238e9){super(_0x1238e9),_0x1238e9['editing'][_0x244a('0x3')]['addObserver'](_0x230bea),this[_0x244a('0x10')]=!0x1,this[_0x244a('0x9')](_0x244a('0x23'),null),this[_0x244a('0x2d')]=null,this[_0x244a('0x47')]=new Set(),this[_0x244a('0x49')]=_0x1238e9[_0x244a('0x20')]['get'](_0x44d7d0),this[_0x244a('0xc')]=new Set(),this[_0x244a('0x19')]=[],this[_0x244a('0x3c')]=!0x1;}[_0x244a('0x40')](){const _0x37e361=this[_0x244a('0x13')]['plugins'][_0x244a('0x1d')](_0xd97840);_0x37e361[_0x244a('0x4d')]===this[_0x244a('0x13')]&&(_0x37e361[_0x244a('0xe')](_0x244a('0x24'),this),this[_0x244a('0x13')][_0x244a('0x2b')][_0x244a('0x9')](_0x244a('0xa'),(_0xb42dc8,_0x28f60a)=>{const _0x18e84d=this[_0x244a('0x49')];if(this[_0x244a('0x10')]&&_0x18e84d[_0x244a('0x37')]){const _0x2991c4=this[_0x244a('0x2d')][_0x244a('0x22')](_0x18e84d['visibleView']);_0x2991c4&&this[_0x244a('0x1f')](_0x2991c4),_0x28f60a();}}));}['afterInit'](){const _0x2c8a66=this['editor']['plugins'][_0x244a('0x1d')](_0xd97840);_0x2c8a66[_0x244a('0x4d')]===this[_0x244a('0x13')]&&(_0x2c8a66[_0x244a('0x44')]()||_0x2c8a66[_0x244a('0x3d')](_0x244a('0x24')));}[_0x244a('0x17')](_0x2f7ee9){_0x2f7ee9!==this['activeAnnotation']&&(this[_0x244a('0x23')]&&(this[_0x244a('0x23')][_0x244a('0x29')]=!0x1),_0x2f7ee9&&this[_0x244a('0x13')]['ui']['focusTracker'][_0x244a('0x43')]&&(this['annotations'][_0x244a('0x2c')](_0x2f7ee9)&&this[_0x244a('0x32')](_0x2f7ee9,!0x0),_0x2f7ee9[_0x244a('0x29')]=!0x0),_0x2f7ee9||this[_0x244a('0x30')]([]),this[_0x244a('0x23')]=_0x2f7ee9);}['attach'](_0x38e7a1){this[_0x244a('0x2d')]=_0x38e7a1;const _0x2cc913=this['editor'][_0x244a('0x20')][_0x244a('0x1d')](_0xd97840),_0x5edc88=this['_balloon'];if(this[_0x244a('0x10')])throw new _0x506e15(_0x244a('0x42'),this);if(_0x2cc913['context']!==this[_0x244a('0x13')])throw new _0x506e15(_0x244a('0x6'),this);const _0xb42b17=this['editor'][_0x244a('0x20')][_0x244a('0x1d')](_0x197b3a);this[_0x244a('0x25')](_0xb42b17,_0x244a('0x31'),()=>{const _0x8200d7=_0xb42b17['getOrderedSelectedAnnotations']({'annotations':this[_0x244a('0x2d')],'activeAnnotation':this['activeAnnotation']});var _0x3a1439,_0x54ae82;!this[_0x244a('0x3c')]&&(_0x3a1439=_0x8200d7,_0x54ae82=this[_0x244a('0x19')],_0x3a1439[_0x244a('0x11')]===_0x54ae82[_0x244a('0x11')]&&_0x3a1439[_0x244a('0x16')](_0x51f7b6=>_0x54ae82[_0x244a('0x12')](_0x51f7b6)))||(this[_0x244a('0x3c')]=!0x1,this[_0x244a('0x30')](_0x8200d7),this[_0x244a('0x17')](_0x8200d7[0x0]||null));}),this[_0x244a('0x25')](_0xb42b17,_0x244a('0x4b'),(_0x2103d3,{isAnnotationTracked:_0x321352})=>{this[_0x244a('0x23')]&&_0x321352(this[_0x244a('0x23')])&&(this['_setSelectedAnnotations']([]),this[_0x244a('0x17')](null));}),this['listenTo'](this[_0x244a('0x13')]['ui'][_0x244a('0x26')],_0x244a('0x28'),(_0x4ab978,_0x264374,_0x18d7ea)=>{_0x18d7ea||this[_0x244a('0x17')](null);}),this['listenTo'](_0x38e7a1,_0x244a('0x39'),(_0x191d04,_0x1e9318)=>{this['_removeAnnotationFromBalloon'](_0x1e9318),_0x1e9318===this['activeAnnotation']&&this[_0x244a('0x17')](null);}),this['listenTo'](_0x5edc88,_0x244a('0x34'),(_0x100dbf,_0x2d8977,_0xb04d5e,_0xc4cf0d)=>{_0xc4cf0d&&this[_0x244a('0x1c')](_0xc4cf0d);const _0x4c9aa5=_0x38e7a1['getByView'](_0xb04d5e);_0xb04d5e&&_0x4c9aa5&&(this[_0x244a('0x25')](_0xb04d5e,_0x244a('0x38'),()=>{_0x5edc88[_0x244a('0x4')]();}),this['listenTo'](_0xb04d5e,_0x244a('0xa'),()=>{this[_0x244a('0x1f')](_0x4c9aa5),this[_0x244a('0x13')][_0x244a('0x15')]['view'][_0x244a('0x1b')]();}),this[_0x244a('0x23')]!==_0x4c9aa5&&this[_0x244a('0x17')](_0x4c9aa5));}),this[_0x244a('0x25')](this[_0x244a('0x13')]['ui'],_0x244a('0x14'),()=>{_0x5edc88[_0x244a('0x37')]&&(_0x38e7a1[_0x244a('0x22')](_0x5edc88[_0x244a('0x37')])&&_0x5edc88[_0x244a('0x4')]());}),this[_0x244a('0x25')](this[_0x244a('0x13')][_0x244a('0x15')]['view'][_0x244a('0x35')],_0x244a('0x3a'),()=>{this[_0x244a('0x3c')]=!0x0,this['_manuallyClosed'][_0x244a('0x3b')]();}),this[_0x244a('0x13')]['editing']['view'][_0x244a('0x35')][_0x244a('0x21')][_0x244a('0x3f')]&&this[_0x244a('0x13')]['editing']['view']['focus'](),this[_0x244a('0x10')]=!0x0;}[_0x244a('0x1a')](){if(!this[_0x244a('0x10')])throw new _0x506e15('inlineannotations-detach-not-attached',this);this[_0x244a('0x17')](null);for(const _0xc6ad64 of this[_0x244a('0xc')])this[_0x244a('0x33')](_0xc6ad64);this[_0x244a('0x1c')](),this[_0x244a('0x10')]=!0x1,this[_0x244a('0x2d')]=null;}[_0x244a('0x2')](){this[_0x244a('0x10')]&&this[_0x244a('0x1a')]();}[_0x244a('0x30')](_0x370d8d){for(const _0x24953d of this[_0x244a('0x19')])_0x370d8d[_0x244a('0x12')](_0x24953d)||this[_0x244a('0x47')]['delete'](_0x24953d);for(const _0x19edec of this[_0x244a('0x2d')])_0x370d8d[_0x244a('0x12')](_0x19edec)||this[_0x244a('0x33')](_0x19edec);if(this[_0x244a('0x13')]['ui'][_0x244a('0x26')][_0x244a('0x43')])for(const _0x425a76 of _0x370d8d)this['_addAnnotationToBalloon'](_0x425a76);this[_0x244a('0x19')]=_0x370d8d;}[_0x244a('0x32')](_0x3764dc,_0xd024fc=!0x1){this['_manuallyClosed'][_0x244a('0x2c')](_0x3764dc)||(this[_0x244a('0xc')][_0x244a('0x2c')](_0x3764dc)||this[_0x244a('0x49')]['hasView'](_0x3764dc['view'])||(this[_0x244a('0xc')][_0x244a('0x45')](_0x3764dc),this[_0x244a('0x49')][_0x244a('0x45')]({'stackId':_0x3764dc[_0x244a('0x3')]['id'],'view':_0x3764dc[_0x244a('0x3')],'position':{'target':()=>this[_0x244a('0xf')](_0x3764dc)}})),_0xd024fc&&this['_balloon'][_0x244a('0x4c')](_0x3764dc[_0x244a('0x3')]['id']));}[_0x244a('0xf')](_0x3b7160){const _0x38eeae=_0x3b7160['target'],_0x5e5fa0=this[_0x244a('0x13')]['editing'][_0x244a('0x3')],_0x281c61=_0x5e5fa0[_0x244a('0x35')][_0x244a('0x21')]['getFirstRange'](),_0x4a8b27=_0x5e5fa0[_0x244a('0x1e')][_0x244a('0x4e')](_0x281c61);if(_0x4a8b27[_0x244a('0x48')](!0x0),_0x38eeae){if(_0x38eeae instanceof _0x64b5d7)return _0x38eeae;let _0x3de75e=[];for(const _0x18aacf of _0x38eeae)_0x3de75e[_0x244a('0x4a')](...(_0x5f32d7=_0x18aacf[_0x244a('0xd')](),Array[_0x244a('0x7')](_0x5f32d7)[_0x244a('0x18')](DOMRect[_0x244a('0x27')])));_0x3de75e=function(_0x1b8237){const _0x1a2bb8=[];let _0x2e2d68=_0x1b8237[0x0];for(let _0x5eee31=0x1;_0x5eee31<_0x1b8237['length'];_0x5eee31++)F(_0x2e2d68,_0x1b8237[_0x5eee31])?_0x2e2d68[_0x244a('0x0')]+=_0x1b8237[_0x5eee31]['width']:(_0x1a2bb8[_0x244a('0x4a')](_0x2e2d68),_0x2e2d68=_0x1b8237[_0x5eee31]);return _0x1a2bb8[_0x244a('0x4a')](_0x2e2d68),_0x1a2bb8;}(_0x3de75e);const _0x33a0ca=_0x4a8b27['getBoundingClientRect']();return _0x3de75e[_0x244a('0x41')](_0xc9b201=>_0xc9b201[_0x244a('0x46')]<=_0x33a0ca['top']&&_0xc9b201[_0x244a('0x1')]>=_0x33a0ca[_0x244a('0x1')]&&_0xc9b201[_0x244a('0x2e')]<=_0x33a0ca[_0x244a('0x2e')]&&_0xc9b201[_0x244a('0x2f')]>=_0x33a0ca[_0x244a('0x2f')])||_0x3de75e[0x0];}var _0x5f32d7;return _0x3b7160[_0x244a('0x2a')]||_0x4a8b27;}['_removeAnnotationFromBalloon'](_0x3dbb78){this[_0x244a('0xc')][_0x244a('0x2c')](_0x3dbb78)&&this['_balloon'][_0x244a('0x36')](_0x3dbb78[_0x244a('0x3')])&&(this[_0x244a('0xc')][_0x244a('0x5')](_0x3dbb78),this[_0x244a('0x49')][_0x244a('0x39')](_0x3dbb78['view']));}[_0x244a('0x1f')](_0x5c4e42){this[_0x244a('0x47')]['add'](_0x5c4e42),this[_0x244a('0x33')](_0x5c4e42);}}function F(_0x345a40,_0x147583){return _0x345a40['top']===_0x147583[_0x244a('0x46')]&&_0x345a40[_0x244a('0x1')]===_0x147583[_0x244a('0x1')]&&_0x345a40['right']===_0x147583['left'];}
23
+ const _0x2dd2=['focus','remove','view','has','_forceRefresh','mousedown','setActiveAnnotation','getClientRects','hasActive','addObserver','editor','showStack','stopListening','inline','afterInit','width','change:isFocused','listenTo','register','_addAnnotationToBalloon','inlineannotations-not-allowed-with-context','inlineannotations-detach-not-attached','right','isActive','pluginName','_setSelectedAnnotations','_getBalloonTargetForAnnotation','requires','focusTracker','init','activeAnnotation','_manuallyClosed','collapse','_selectedAnnotations','hasView','visibleView','length','_removeAnnotationFromBalloon','switchTo','document','updatePosition','inlineannotations-attach-already-attached','includes','set','editing','left','_addedAnnotations','annotations','context','selection','getBoundingClientRect','Esc','_closeAnnotation','delete','detach','_balloon','getFirstRange','bottom','isAttached','update','plugins','refresh','find','viewRangeToDom','getByView','push','attach','InlineAnnotations','keystrokes','add','every','top','get','isFocused'];(function(_0x24dcbb,_0x2dd259){const _0x670630=function(_0x361ec7){while(--_0x361ec7){_0x24dcbb['push'](_0x24dcbb['shift']());}};_0x670630(++_0x2dd259);}(_0x2dd2,0xfe));const _0x6706=function(_0x24dcbb,_0x2dd259){_0x24dcbb=_0x24dcbb-0x0;let _0x670630=_0x2dd2[_0x24dcbb];return _0x670630;};import{Plugin as _0x27e4f4}from'ckeditor5/src/core';import _0x50f7af from'./annotationsuis';import _0x488807 from'./editorannotations';import{ContextualBalloon as _0x3e3877}from'ckeditor5/src/ui';import{MouseObserver as _0x5c5fb8}from'ckeditor5/src/engine';import{CKEditorError as _0x56f353,Rect as _0x17d61d}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x27e4f4{static get[_0x6706('0x45')](){return[_0x488807,_0x3e3877,_0x50f7af];}static get[_0x6706('0x42')](){return _0x6706('0x23');}constructor(_0x30dfdb){super(_0x30dfdb),_0x30dfdb[_0x6706('0xc')][_0x6706('0x2c')][_0x6706('0x33')](_0x5c5fb8),this[_0x6706('0x1a')]=!0x1,this['set'](_0x6706('0x48'),null),this[_0x6706('0xf')]=null,this[_0x6706('0x49')]=new Set(),this[_0x6706('0x17')]=_0x30dfdb[_0x6706('0x1c')]['get'](_0x3e3877),this[_0x6706('0xe')]=new Set(),this[_0x6706('0x1')]=[],this[_0x6706('0x2e')]=!0x1;}[_0x6706('0x47')](){const _0x5abc3e=this['editor'][_0x6706('0x1c')][_0x6706('0x28')](_0x50f7af);_0x5abc3e[_0x6706('0x10')]===this[_0x6706('0x34')]&&(_0x5abc3e[_0x6706('0x3c')](_0x6706('0x37'),this),this[_0x6706('0x34')][_0x6706('0x24')][_0x6706('0xb')]('Esc',(_0x433837,_0x32f1dd)=>{const _0x419ec7=this[_0x6706('0x17')];if(this[_0x6706('0x1a')]&&_0x419ec7['visibleView']){const _0x2e1def=this[_0x6706('0xf')][_0x6706('0x20')](_0x419ec7[_0x6706('0x3')]);_0x2e1def&&this[_0x6706('0x14')](_0x2e1def),_0x32f1dd();}}));}[_0x6706('0x38')](){const _0x53f9b4=this[_0x6706('0x34')]['plugins'][_0x6706('0x28')](_0x50f7af);_0x53f9b4['context']===this[_0x6706('0x34')]&&(_0x53f9b4[_0x6706('0x32')]()||_0x53f9b4[_0x6706('0x6')]('inline'));}['setActiveAnnotation'](_0x4eb43b){_0x4eb43b!==this[_0x6706('0x48')]&&(this[_0x6706('0x48')]&&(this[_0x6706('0x48')]['isActive']=!0x1),_0x4eb43b&&this[_0x6706('0x34')]['ui']['focusTracker'][_0x6706('0x29')]&&(this[_0x6706('0xf')][_0x6706('0x2d')](_0x4eb43b)&&this[_0x6706('0x3d')](_0x4eb43b,!0x0),_0x4eb43b[_0x6706('0x41')]=!0x0),_0x4eb43b||this[_0x6706('0x43')]([]),this[_0x6706('0x48')]=_0x4eb43b);}[_0x6706('0x22')](_0x1a8603){this[_0x6706('0xf')]=_0x1a8603;const _0x37bb9a=this[_0x6706('0x34')][_0x6706('0x1c')][_0x6706('0x28')](_0x50f7af),_0x4eb892=this[_0x6706('0x17')];if(this[_0x6706('0x1a')])throw new _0x56f353(_0x6706('0x9'),this);if(_0x37bb9a[_0x6706('0x10')]!==this['editor'])throw new _0x56f353(_0x6706('0x3e'),this);const _0x344635=this[_0x6706('0x34')][_0x6706('0x1c')][_0x6706('0x28')](_0x488807);this[_0x6706('0x3b')](_0x344635,_0x6706('0x1d'),()=>{const _0x3f7fae=_0x344635['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this[_0x6706('0x48')]});var _0x5b8502,_0x2cd22d;!this[_0x6706('0x2e')]&&(_0x5b8502=_0x3f7fae,_0x2cd22d=this[_0x6706('0x1')],_0x5b8502[_0x6706('0x4')]===_0x2cd22d['length']&&_0x5b8502[_0x6706('0x26')](_0x5e49cb=>_0x2cd22d[_0x6706('0xa')](_0x5e49cb)))||(this[_0x6706('0x2e')]=!0x1,this[_0x6706('0x43')](_0x3f7fae),this[_0x6706('0x30')](_0x3f7fae[0x0]||null));}),this[_0x6706('0x3b')](_0x344635,'blur',(_0x1eac2e,{isAnnotationTracked:_0x58a9f4})=>{this[_0x6706('0x48')]&&_0x58a9f4(this[_0x6706('0x48')])&&(this[_0x6706('0x43')]([]),this[_0x6706('0x30')](null));}),this['listenTo'](this[_0x6706('0x34')]['ui'][_0x6706('0x46')],_0x6706('0x3a'),(_0x458238,_0x4b232a,_0x469ce7)=>{_0x469ce7||this[_0x6706('0x30')](null);}),this[_0x6706('0x3b')](_0x1a8603,'remove',(_0x165e36,_0x479f39)=>{this[_0x6706('0x5')](_0x479f39),_0x479f39===this['activeAnnotation']&&this[_0x6706('0x30')](null);}),this['listenTo'](_0x4eb892,'change:visibleView',(_0x4600b0,_0x55f42c,_0x319978,_0x1f90d6)=>{_0x1f90d6&&this[_0x6706('0x36')](_0x1f90d6);const _0x8745ab=_0x1a8603['getByView'](_0x319978);_0x319978&&_0x8745ab&&(this['listenTo'](_0x319978,'change:height',()=>{_0x4eb892[_0x6706('0x8')]();}),this[_0x6706('0x3b')](_0x319978,_0x6706('0x13'),()=>{this['_closeAnnotation'](_0x8745ab),this['editor'][_0x6706('0xc')][_0x6706('0x2c')][_0x6706('0x2a')]();}),this[_0x6706('0x48')]!==_0x8745ab&&this[_0x6706('0x30')](_0x8745ab));}),this[_0x6706('0x3b')](this[_0x6706('0x34')]['ui'],_0x6706('0x1b'),()=>{_0x4eb892[_0x6706('0x3')]&&(_0x1a8603[_0x6706('0x20')](_0x4eb892[_0x6706('0x3')])&&_0x4eb892[_0x6706('0x8')]());}),this['listenTo'](this[_0x6706('0x34')]['editing']['view'][_0x6706('0x7')],_0x6706('0x2f'),()=>{this[_0x6706('0x2e')]=!0x0,this['_manuallyClosed']['clear']();}),this['editor'][_0x6706('0xc')][_0x6706('0x2c')][_0x6706('0x7')]['selection']['editableElement']&&this[_0x6706('0x34')][_0x6706('0xc')]['view'][_0x6706('0x2a')](),this[_0x6706('0x1a')]=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x56f353(_0x6706('0x3f'),this);this[_0x6706('0x30')](null);for(const _0x59d558 of this[_0x6706('0xe')])this[_0x6706('0x5')](_0x59d558);this['stopListening'](),this[_0x6706('0x1a')]=!0x1,this[_0x6706('0xf')]=null;}['destroy'](){this[_0x6706('0x1a')]&&this[_0x6706('0x16')]();}['_setSelectedAnnotations'](_0x44ac5a){for(const _0x3257fa of this[_0x6706('0x1')])_0x44ac5a[_0x6706('0xa')](_0x3257fa)||this[_0x6706('0x49')][_0x6706('0x15')](_0x3257fa);for(const _0x56de0d of this[_0x6706('0xf')])_0x44ac5a['includes'](_0x56de0d)||this['_removeAnnotationFromBalloon'](_0x56de0d);if(this['editor']['ui'][_0x6706('0x46')]['isFocused'])for(const _0x31f6f8 of _0x44ac5a)this[_0x6706('0x3d')](_0x31f6f8);this[_0x6706('0x1')]=_0x44ac5a;}['_addAnnotationToBalloon'](_0x1717c6,_0xc14be4=!0x1){this['_manuallyClosed'][_0x6706('0x2d')](_0x1717c6)||(this['_addedAnnotations'][_0x6706('0x2d')](_0x1717c6)||this[_0x6706('0x17')]['hasView'](_0x1717c6[_0x6706('0x2c')])||(this['_addedAnnotations'][_0x6706('0x25')](_0x1717c6),this['_balloon'][_0x6706('0x25')]({'stackId':_0x1717c6[_0x6706('0x2c')]['id'],'view':_0x1717c6[_0x6706('0x2c')],'position':{'target':()=>this[_0x6706('0x44')](_0x1717c6)}})),_0xc14be4&&this[_0x6706('0x17')][_0x6706('0x35')](_0x1717c6[_0x6706('0x2c')]['id']));}[_0x6706('0x44')](_0x1999e2){const _0x45335a=_0x1999e2['target'],_0x1da643=this[_0x6706('0x34')][_0x6706('0xc')][_0x6706('0x2c')],_0x3a1041=_0x1da643[_0x6706('0x7')][_0x6706('0x11')][_0x6706('0x18')](),_0x511118=_0x1da643['domConverter'][_0x6706('0x1f')](_0x3a1041);if(_0x511118[_0x6706('0x0')](!0x0),_0x45335a){if(_0x45335a instanceof _0x17d61d)return _0x45335a;let _0x304094=[];for(const _0x32e839 of _0x45335a)_0x304094[_0x6706('0x21')](...(_0xd5681b=_0x32e839[_0x6706('0x31')](),Array['from'](_0xd5681b)['map'](DOMRect['fromRect'])));_0x304094=function(_0x2f3e6f){const _0x326914=[];let _0x3ff563=_0x2f3e6f[0x0];for(let _0x5baf02=0x1;_0x5baf02<_0x2f3e6f[_0x6706('0x4')];_0x5baf02++)dt(_0x3ff563,_0x2f3e6f[_0x5baf02])?_0x3ff563[_0x6706('0x39')]+=_0x2f3e6f[_0x5baf02][_0x6706('0x39')]:(_0x326914[_0x6706('0x21')](_0x3ff563),_0x3ff563=_0x2f3e6f[_0x5baf02]);return _0x326914[_0x6706('0x21')](_0x3ff563),_0x326914;}(_0x304094);const _0x2cb224=_0x511118[_0x6706('0x12')]();return _0x304094[_0x6706('0x1e')](_0x47f700=>_0x47f700[_0x6706('0x27')]<=_0x2cb224[_0x6706('0x27')]&&_0x47f700[_0x6706('0x19')]>=_0x2cb224[_0x6706('0x19')]&&_0x47f700[_0x6706('0xd')]<=_0x2cb224[_0x6706('0xd')]&&_0x47f700[_0x6706('0x40')]>=_0x2cb224[_0x6706('0x40')])||_0x304094[0x0];}var _0xd5681b;return _0x1999e2['targetRect']||_0x511118;}[_0x6706('0x5')](_0x1dc42d){this['_addedAnnotations'][_0x6706('0x2d')](_0x1dc42d)&&this[_0x6706('0x17')][_0x6706('0x2')](_0x1dc42d[_0x6706('0x2c')])&&(this['_addedAnnotations'][_0x6706('0x15')](_0x1dc42d),this[_0x6706('0x17')][_0x6706('0x2b')](_0x1dc42d[_0x6706('0x2c')]));}['_closeAnnotation'](_0x5102ec){this[_0x6706('0x49')][_0x6706('0x25')](_0x5102ec),this[_0x6706('0x5')](_0x5102ec);}}function dt(_0x27ce9a,_0x29faa7){return _0x27ce9a[_0x6706('0x27')]===_0x29faa7['top']&&_0x27ce9a['bottom']===_0x29faa7[_0x6706('0x19')]&&_0x27ce9a['right']===_0x29faa7['left'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5744=['content','clear','locale','southArrowNorth','delete','_attachListeners','change:height','register','from','detachFromDom','northArrowSouth','focus','requires','mousedown','_detachListeners','_integrateWithEditorAnnotations','contains','unpin','preventClosingBalloon','has','stopListening','context','plugins','isDirty','pluginName','Esc','_hideBalloon','_showBalloon','low','length','init','detach','high','_refreshPositioning','annotations','_detachFromContainer','_destroyEditorAnnotationsIntegration','destroy','execute','first','target','stop','get','addEventListener','EditorAnnotations','cancel','listenTo','setActiveAnnotation','refresh','stopPropagation','NarrowSidebar','hasDomSelection','off','_refreshPositioningDebounced','_annotationToNarrowView','bind','narrowsidebar-detach-not-attached','removeEventListener','blur','_selectedAnnotations','_updateBalloonPosition','pin','_editorAnnotations','editors','_attachToContainer','isVisible','isAttached','_domEmitter','add','esc','attachToDom','resize','uiUpdate','activeAnnotation','southArrowNorthWest','attach','view','_manuallyClosedAnnotationViews','values','remove','getOrderedSelectedAnnotations','northArrowSouthWest','set','element','_setSelectedAnnotations','_annotations','balloonPanelView','bodyCollection','rearrange'];(function(_0x54ff40,_0x57443d){const _0x2f1d90=function(_0x59f1af){while(--_0x59f1af){_0x54ff40['push'](_0x54ff40['shift']());}};_0x2f1d90(++_0x57443d);}(_0x5744,0x1c9));const _0x2f1d=function(_0x54ff40,_0x57443d){_0x54ff40=_0x54ff40-0x0;let _0x2f1d90=_0x5744[_0x54ff40];return _0x2f1d90;};import{ContextPlugin as _0x5909f7,Context as _0x51d3b5}from'ckeditor5/src/core';import _0x4e2c64 from'./annotationsuis';import _0x27184f from'./sidebar';import _0x2f641a from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x15979e,BodyCollection as _0x1556b6}from'ckeditor5/src/ui';import{CKEditorError as _0x2102b8,DomEmitterMixin as _0x214f0b,keyCodes as _0x3dd241,Collection as _0x582851}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1f7d37}from'lodash-es';import _0x4c6b86 from'./editorannotations';export default class s extends _0x5909f7{static get[_0x2f1d('0x0')](){return[_0x27184f,_0x4e2c64];}static get[_0x2f1d('0xc')](){return _0x2f1d('0x26');}constructor(_0x26e652){super(_0x26e652),this['isAttached']=!0x1,this[_0x2f1d('0x41')]=new Set(),this[_0x2f1d('0x37')]=Object['create'](_0x214f0b),this[_0x2f1d('0x2a')]=new Map(),this[_0x2f1d('0x46')]('activeAnnotation',null),this['annotations']=null,this[_0x2f1d('0x2f')]=[],this['_editorAnnotations']=new _0x582851(),this[_0x2f1d('0x29')]=_0x1f7d37(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x2f1d('0x12')](){this[_0x2f1d('0x9')][_0x2f1d('0xa')]['get'](_0x4e2c64)[_0x2f1d('0x54')]('narrowSidebar',this),this[_0x2f1d('0x4b')]=new _0x1556b6(this[_0x2f1d('0x9')]['locale']),this[_0x2f1d('0x4a')]=new _0x15979e(this[_0x2f1d('0x9')][_0x2f1d('0x4f')]),this[_0x2f1d('0x4b')][_0x2f1d('0x3a')](),this[_0x2f1d('0x4b')]['add'](this[_0x2f1d('0x4a')]);}['attach'](_0x5a17d6){this[_0x2f1d('0x16')]=_0x5a17d6;const _0x511826=this[_0x2f1d('0x9')][_0x2f1d('0xa')][_0x2f1d('0x1e')](_0x27184f),_0x320430=this[_0x2f1d('0x4a')];if(_0x511826[_0x2f1d('0x49')]=_0x5a17d6,this[_0x2f1d('0x36')])throw new _0x2102b8('narrowsidebar-attach-already-attached',this);this[_0x2f1d('0x36')]=!0x0,this[_0x2f1d('0x22')](_0x511826,'set:container',()=>{this['detach'](),this['listenTo'](_0x511826,'change:container',_0x575f18=>{_0x575f18[_0x2f1d('0x28')](),this[_0x2f1d('0x3f')](_0x5a17d6);});}),_0x511826[_0x2f1d('0x34')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x22c91a=_0x2f2c2e=>{const _0x3d0ec8=new _0x2f641a(this[_0x2f1d('0x9')][_0x2f1d('0x4f')]);_0x511826['addAnnotation'](_0x2f2c2e,_0x3d0ec8),this['_annotationToNarrowView'][_0x2f1d('0x46')](_0x2f2c2e,_0x3d0ec8),_0x3d0ec8[_0x2f1d('0x2b')](_0x2f1d('0xb'),'annotationType','number')['to'](_0x2f2c2e['view'],'isDirty','type',_0x2f1d('0x11')),_0x3d0ec8['on'](_0x2f1d('0x1a'),()=>{this[_0x2f1d('0x41')][_0x2f1d('0x4e')](),_0x320430[_0x2f1d('0x4d')]['first']!==_0x2f2c2e[_0x2f1d('0x40')]?(this[_0x2f1d('0xf')](_0x2f2c2e),_0x2f2c2e[_0x2f1d('0x40')]['element'][_0x2f1d('0x58')](),this[_0x2f1d('0x23')](_0x2f2c2e)):this[_0x2f1d('0x23')](null);});};for(const _0x138f3b of _0x5a17d6)_0x22c91a(_0x138f3b);this['listenTo'](_0x5a17d6,_0x2f1d('0x38'),(_0x293b9a,_0x2766bf)=>{_0x22c91a(_0x2766bf);}),this[_0x2f1d('0x22')](_0x5a17d6,_0x2f1d('0x43'),(_0x502aa5,_0x464fd4,_0x41eb81)=>{this['_annotationToNarrowView']['get'](_0x464fd4)['destroy'](),this[_0x2f1d('0x2a')][_0x2f1d('0x51')](_0x464fd4),_0x511826[_0x2f1d('0x4c')]({'removedAnnotation':_0x464fd4,'previousAnnotation':_0x5a17d6['get'](_0x41eb81-0x1),'nextAnnotation':_0x5a17d6[_0x2f1d('0x1e')](_0x41eb81+0x1)}),_0x464fd4===this[_0x2f1d('0x3d')]&&this[_0x2f1d('0x23')](null);},{'priority':_0x2f1d('0x10')}),this['listenTo'](_0x5a17d6,_0x2f1d('0x58'),(_0x2f5c18,_0x52e10a)=>{this['setActiveAnnotation'](_0x52e10a);}),this[_0x2f1d('0x22')](_0x5a17d6,_0x2f1d('0x2e'),()=>{this[_0x2f1d('0x23')](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x5ef3a,_0x4b3aaa)=>{_0x4b3aaa['keyCode']===_0x3dd241[_0x2f1d('0x39')]&&_0x320430[_0x2f1d('0x35')]&&(this[_0x2f1d('0x41')][_0x2f1d('0x38')](_0x320430[_0x2f1d('0x4d')][_0x2f1d('0x1b')]),this[_0x2f1d('0xe')](),_0x4b3aaa[_0x2f1d('0x25')](),_0x4b3aaa['preventDefault']());}),this['_domEmitter'][_0x2f1d('0x22')](document,_0x2f1d('0x1'),(_0x51a5d9,_0x63d0d4)=>{const _0x4a1570=_0x63d0d4['target'];_0x320430['isVisible']&&_0x320430[_0x2f1d('0x47')][_0x2f1d('0x4')](_0x4a1570)||_0x511826[_0x2f1d('0x40')][_0x2f1d('0x47')][_0x2f1d('0x4')](_0x4a1570)||_0x51a5d9[_0x2f1d('0x6')]||(this[_0x2f1d('0x41')][_0x2f1d('0x4e')](),this[_0x2f1d('0xe')](),this[_0x2f1d('0x23')](null));});const _0x415ff9=this[_0x2f1d('0x9')]instanceof _0x51d3b5?this['context'][_0x2f1d('0x33')]:new _0x582851([this[_0x2f1d('0x9')]]);for(const _0x532e11 of _0x415ff9)this[_0x2f1d('0x3')](_0x532e11);this[_0x2f1d('0x22')](_0x415ff9,_0x2f1d('0x38'),(_0x45125d,_0x379a93)=>{this[_0x2f1d('0x22')](_0x379a93,'ready',()=>{this[_0x2f1d('0x3')](_0x379a93);});}),this[_0x2f1d('0x22')](_0x415ff9,_0x2f1d('0x43'),(_0x3a167f,_0x306b08)=>{_0x306b08[_0x2f1d('0xa')][_0x2f1d('0x7')](_0x2f1d('0x20'))&&this[_0x2f1d('0x18')](_0x306b08['plugins']['get'](_0x2f1d('0x20')));}),window[_0x2f1d('0x1f')](_0x2f1d('0x3b'),this[_0x2f1d('0x29')]),this[_0x2f1d('0x15')]();}['setActiveAnnotation'](_0x92a78d){if(_0x92a78d===this['activeAnnotation'])return;const _0x56ec17=this[_0x2f1d('0x9')][_0x2f1d('0xa')][_0x2f1d('0x1e')](_0x27184f);if(_0x56ec17[_0x2f1d('0x24')]({'blurredAnnotation':this[_0x2f1d('0x3d')],'activatedAnnotation':_0x92a78d,'disableAnimationOnActivatedAnnotation':!0x0}),_0x92a78d)_0x56ec17['getSidebarItemView'](_0x92a78d)?this[_0x2f1d('0xf')](_0x92a78d):this['_hideBalloon']();else this[_0x2f1d('0xe')]();this[_0x2f1d('0x3d')]=_0x92a78d;}[_0x2f1d('0x13')](){if(!this['isAttached'])throw new _0x2102b8(_0x2f1d('0x2c'),this);this[_0x2f1d('0x23')](null);const _0x34ae8f=this[_0x2f1d('0x9')][_0x2f1d('0xa')]['get'](_0x27184f);this[_0x2f1d('0xe')](),Array[_0x2f1d('0x55')](this[_0x2f1d('0x2a')][_0x2f1d('0x42')](),_0x49f87e=>_0x49f87e[_0x2f1d('0x19')]()),this[_0x2f1d('0x2a')][_0x2f1d('0x4e')](),_0x34ae8f[_0x2f1d('0x17')](this[_0x2f1d('0x16')]),this[_0x2f1d('0x8')](),this[_0x2f1d('0x37')][_0x2f1d('0x8')](),this[_0x2f1d('0x9')]instanceof _0x51d3b5&&this[_0x2f1d('0x8')](this[_0x2f1d('0x9')][_0x2f1d('0x33')]);for(const _0x7b7c91 of Array[_0x2f1d('0x55')](this[_0x2f1d('0x32')]))this[_0x2f1d('0x18')](_0x7b7c91);window[_0x2f1d('0x2d')](_0x2f1d('0x3b'),this['_refreshPositioningDebounced']),this[_0x2f1d('0x29')][_0x2f1d('0x21')](),this['_selectedAnnotations']=[],this[_0x2f1d('0x36')]=!0x1,this['annotations']=null;}[_0x2f1d('0x19')](){this[_0x2f1d('0x36')]&&this[_0x2f1d('0x13')](),this[_0x2f1d('0x4b')][_0x2f1d('0x56')]();}[_0x2f1d('0x3')](_0x224504){const _0x3af356=_0x224504[_0x2f1d('0xa')][_0x2f1d('0x1e')](_0x4c6b86),_0x220fda=this[_0x2f1d('0x9')][_0x2f1d('0xa')][_0x2f1d('0x1e')](_0x27184f),_0xb0c61b=this[_0x2f1d('0x16')],_0x5c5b52=this['balloonPanelView'],_0x24b15b=()=>{const _0x111c87=_0x3af356[_0x2f1d('0x44')]({'annotations':this['annotations'],'activeAnnotation':this[_0x2f1d('0x3d')]});this[_0x2f1d('0x48')](_0x111c87),this[_0x2f1d('0x23')](_0x111c87[0x0]||null);};this['listenTo'](_0x3af356,_0x2f1d('0x24'),_0x24b15b),this[_0x2f1d('0x22')](_0x3af356,_0x2f1d('0x2e'),(_0x33c4d5,{isAnnotationTracked:_0x315359})=>{this[_0x2f1d('0x3d')]&&_0x315359(this[_0x2f1d('0x3d')])&&(this[_0x2f1d('0x48')]([]),this[_0x2f1d('0x23')](null));}),this[_0x2f1d('0x22')](_0x3af356,_0x2f1d('0x3c'),()=>{this[_0x2f1d('0x29')]();}),this['listenTo'](_0xb0c61b,_0x2f1d('0x2e'),_0x5ebf1e=>{_0x3af356[_0x2f1d('0x27')]()&&_0x5ebf1e[_0x2f1d('0x1d')]();},{'priority':'high'}),this[_0x2f1d('0x22')](this['_domEmitter'],_0x2f1d('0x1'),(_0x29cdcd,_0x18c4ff)=>{const _0x29ed3f=_0x18c4ff[_0x2f1d('0x1c')];_0x5c5b52[_0x2f1d('0x35')]&&_0x5c5b52[_0x2f1d('0x47')]['contains'](_0x29ed3f)||_0x220fda['view'][_0x2f1d('0x47')][_0x2f1d('0x4')](_0x29ed3f)||this['activeAnnotation']&&_0x3af356[_0x2f1d('0x27')]()&&(_0x24b15b(),_0x29cdcd[_0x2f1d('0x6')]=!0x0);},{'priority':_0x2f1d('0x14')}),this['_editorAnnotations']['add'](_0x3af356);}[_0x2f1d('0x18')](_0x4658a6){_0x4658a6&&(this[_0x2f1d('0x8')](_0x4658a6),this[_0x2f1d('0x32')][_0x2f1d('0x43')](_0x4658a6));}['_setSelectedAnnotations'](_0x423cc5){for(const _0x101bd6 of this['_selectedAnnotations'])_0x423cc5['includes'](_0x101bd6)||this[_0x2f1d('0x41')]['delete'](_0x101bd6[_0x2f1d('0x40')]);this['_selectedAnnotations']=_0x423cc5;}['_refreshPositioning'](){const _0x4d25ed=this[_0x2f1d('0x4a')];this[_0x2f1d('0x16')]['refreshPositioning'](),_0x4d25ed['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x3c2bc7){if(this['_manuallyClosedAnnotationViews'][_0x2f1d('0x7')](_0x3c2bc7[_0x2f1d('0x40')]))return;const _0x1f690e=this[_0x2f1d('0x4a')][_0x2f1d('0x4d')][_0x2f1d('0x1b')];_0x1f690e!==_0x3c2bc7[_0x2f1d('0x40')]?(_0x1f690e&&this[_0x2f1d('0x2')](_0x1f690e),this[_0x2f1d('0x52')](_0x3c2bc7[_0x2f1d('0x40')]),this[_0x2f1d('0x4a')]['content']['clear'](),this['balloonPanelView']['content']['add'](_0x3c2bc7[_0x2f1d('0x40')]),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}[_0x2f1d('0x30')](){const _0x154e71=this['balloonPanelView'][_0x2f1d('0x4d')]['first'],_0x34cdc2=_0x154e71&&this['annotations']['getByView'](_0x154e71);if(!_0x34cdc2||!this[_0x2f1d('0x2a')]['has'](_0x34cdc2))return;const _0x1e19be=this[_0x2f1d('0x2a')][_0x2f1d('0x1e')](_0x34cdc2)['element'],_0x5d3339=function(){const _0x3d6945=_0x15979e['defaultPositions'];return[_0x3d6945['southArrowNorthEast'],_0x3d6945['northArrowSouthEast'],_0x3d6945[_0x2f1d('0x50')],_0x3d6945[_0x2f1d('0x57')],_0x3d6945[_0x2f1d('0x3e')],_0x3d6945[_0x2f1d('0x45')]];}();this[_0x2f1d('0x4a')][_0x2f1d('0x31')]({'target':_0x1e19be,'positions':_0x5d3339});}[_0x2f1d('0xe')](){const _0x4d39ee=this[_0x2f1d('0x4a')],_0x264a4f=_0x4d39ee[_0x2f1d('0x4d')]['first'];_0x264a4f&&(this['_detachListeners'](_0x264a4f),_0x4d39ee[_0x2f1d('0x5')](),_0x4d39ee[_0x2f1d('0x4d')][_0x2f1d('0x4e')]());}['_attachListeners'](_0x2f6d82){this[_0x2f1d('0x22')](_0x2f6d82,_0x2f1d('0x53'),()=>this[_0x2f1d('0x30')]()),this[_0x2f1d('0x22')](_0x2f6d82,_0x2f1d('0xd'),(_0x3bc829,_0x521bec)=>{this[_0x2f1d('0x41')][_0x2f1d('0x38')](_0x2f6d82),this[_0x2f1d('0xe')](),_0x521bec();});}[_0x2f1d('0x2')](_0x50aa79){this['stopListening'](_0x50aa79);}}
23
+ const _0x1953=['contains','_annotationToNarrowView','activeAnnotation','_attachToContainer','stopListening','_domEmitter','includes','refreshPositioning','cancel','Esc','number','getByView','get','narrowSidebar','ready','blur','bodyCollection','isAttached','addEventListener','has','context','NarrowSidebar','pin','first','southArrowNorthEast','_detachFromContainer','change:container','change:height','_manuallyClosedAnnotationViews','EditorAnnotations','_selectedAnnotations','content','removeEventListener','keyCode','editors','mousedown','create','_integrateWithEditorAnnotations','_refreshPositioning','_destroyEditorAnnotationsIntegration','high','_setSelectedAnnotations','annotationType','execute','_refreshPositioningDebounced','isVisible','refresh','length','_editorAnnotations','view','balloonPanelView','clear','rearrange','addAnnotation','_updateBalloonPosition','preventClosingBalloon','requires','_attachListeners','register','getOrderedSelectedAnnotations','setActiveAnnotation','listenTo','preventDefault','getSidebarItemView','_detachListeners','northArrowSouthEast','narrowsidebar-detach-not-attached','narrowsidebar-attach-already-attached','northArrowSouthWest','northArrowSouth','ck-sidebar--narrow','from','detach','_hideBalloon','low','resize','attach','unpin','locale','annotations','destroy','values','off','element','init','keydown','target','add','_showBalloon','set','defaultPositions','focus','delete','isDirty','hasDomSelection','southArrowNorthWest','plugins'];(function(_0x6212c5,_0x19531f){const _0x3374f1=function(_0x768f0d){while(--_0x768f0d){_0x6212c5['push'](_0x6212c5['shift']());}};_0x3374f1(++_0x19531f);}(_0x1953,0x7d));const _0x3374=function(_0x6212c5,_0x19531f){_0x6212c5=_0x6212c5-0x0;let _0x3374f1=_0x1953[_0x6212c5];return _0x3374f1;};import{ContextPlugin as _0x278734,Context as _0x272b30}from'ckeditor5/src/core';import _0x2ded05 from'./annotationsuis';import _0x251209 from'./sidebar';import _0x102116 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x317d64,BodyCollection as _0x2bfd67}from'ckeditor5/src/ui';import{CKEditorError as _0x2f7a32,DomEmitterMixin as _0x4d98d2,keyCodes as _0x345dee,Collection as _0x40e83d}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x3ad586}from'lodash-es';import _0x2ff944 from'./editorannotations';export default class s extends _0x278734{static get[_0x3374('0x1c')](){return[_0x251209,_0x2ded05];}static get['pluginName'](){return _0x3374('0x5a');}constructor(_0x5461b7){super(_0x5461b7),this[_0x3374('0x56')]=!0x1,this[_0x3374('0x0')]=new Set(),this[_0x3374('0x4a')]=Object[_0x3374('0x8')](_0x4d98d2),this[_0x3374('0x46')]=new Map(),this[_0x3374('0x3d')](_0x3374('0x47'),null),this['annotations']=null,this[_0x3374('0x2')]=[],this[_0x3374('0x14')]=new _0x40e83d(),this[_0x3374('0x10')]=_0x3ad586(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x3374('0x38')](){this[_0x3374('0x59')]['plugins'][_0x3374('0x51')](_0x2ded05)[_0x3374('0x1e')](_0x3374('0x52'),this),this['bodyCollection']=new _0x2bfd67(this['context'][_0x3374('0x32')]),this[_0x3374('0x16')]=new _0x317d64(this['context'][_0x3374('0x32')]),this[_0x3374('0x55')]['attachToDom'](),this[_0x3374('0x55')]['add'](this[_0x3374('0x16')]);}[_0x3374('0x30')](_0x566e7f){this[_0x3374('0x33')]=_0x566e7f;const _0xe07385=this[_0x3374('0x59')][_0x3374('0x44')][_0x3374('0x51')](_0x251209),_0x3f5359=this[_0x3374('0x16')];if(_0xe07385['_annotations']=_0x566e7f,this[_0x3374('0x56')])throw new _0x2f7a32(_0x3374('0x27'),this);this[_0x3374('0x56')]=!0x0,this['listenTo'](_0xe07385,'set:container',()=>{this[_0x3374('0x2c')](),this[_0x3374('0x21')](_0xe07385,_0x3374('0x5f'),_0x4b95a2=>{_0x4b95a2[_0x3374('0x36')](),this['attach'](_0x566e7f);});}),_0xe07385[_0x3374('0x48')]({'viewClass':_0x3374('0x2a'),'spaceBetweenItems':0x5});const _0x495d70=_0x4974ae=>{const _0x23f45f=new _0x102116(this['context'][_0x3374('0x32')]);_0xe07385[_0x3374('0x19')](_0x4974ae,_0x23f45f),this[_0x3374('0x46')]['set'](_0x4974ae,_0x23f45f),_0x23f45f['bind'](_0x3374('0x41'),_0x3374('0xe'),_0x3374('0x4f'))['to'](_0x4974ae[_0x3374('0x15')],_0x3374('0x41'),'type',_0x3374('0x13')),_0x23f45f['on'](_0x3374('0xf'),()=>{this[_0x3374('0x0')][_0x3374('0x17')](),_0x3f5359[_0x3374('0x3')][_0x3374('0x5c')]!==_0x4974ae[_0x3374('0x15')]?(this[_0x3374('0x3c')](_0x4974ae),_0x4974ae[_0x3374('0x15')][_0x3374('0x37')][_0x3374('0x3f')](),this[_0x3374('0x20')](_0x4974ae)):this[_0x3374('0x20')](null);});};for(const _0x3dff9a of _0x566e7f)_0x495d70(_0x3dff9a);this['listenTo'](_0x566e7f,_0x3374('0x3b'),(_0x3eb89e,_0xacafd1)=>{_0x495d70(_0xacafd1);}),this[_0x3374('0x21')](_0x566e7f,'remove',(_0x23d15c,_0x372c13,_0x4a28c3)=>{this[_0x3374('0x46')][_0x3374('0x51')](_0x372c13)[_0x3374('0x34')](),this[_0x3374('0x46')][_0x3374('0x40')](_0x372c13),_0xe07385[_0x3374('0x18')]({'removedAnnotation':_0x372c13,'previousAnnotation':_0x566e7f[_0x3374('0x51')](_0x4a28c3-0x1),'nextAnnotation':_0x566e7f[_0x3374('0x51')](_0x4a28c3+0x1)}),_0x372c13===this[_0x3374('0x47')]&&this[_0x3374('0x20')](null);},{'priority':_0x3374('0x2e')}),this['listenTo'](_0x566e7f,_0x3374('0x3f'),(_0x2b7492,_0x1d3ab3)=>{this[_0x3374('0x20')](_0x1d3ab3);}),this[_0x3374('0x21')](_0x566e7f,_0x3374('0x54'),()=>{this[_0x3374('0x20')](null);}),this[_0x3374('0x4a')]['listenTo'](document,_0x3374('0x39'),(_0x22650,_0x30babc)=>{_0x30babc[_0x3374('0x5')]===_0x345dee['esc']&&_0x3f5359['isVisible']&&(this['_manuallyClosedAnnotationViews'][_0x3374('0x3b')](_0x3f5359[_0x3374('0x3')]['first']),this['_hideBalloon'](),_0x30babc['stopPropagation'](),_0x30babc[_0x3374('0x22')]());}),this[_0x3374('0x4a')][_0x3374('0x21')](document,_0x3374('0x7'),(_0x3bff48,_0x1a34c4)=>{const _0x445a57=_0x1a34c4[_0x3374('0x3a')];_0x3f5359['isVisible']&&_0x3f5359['element'][_0x3374('0x45')](_0x445a57)||_0xe07385[_0x3374('0x15')][_0x3374('0x37')][_0x3374('0x45')](_0x445a57)||_0x3bff48[_0x3374('0x1b')]||(this[_0x3374('0x0')]['clear'](),this[_0x3374('0x2d')](),this[_0x3374('0x20')](null));});const _0x313a7b=this[_0x3374('0x59')]instanceof _0x272b30?this[_0x3374('0x59')][_0x3374('0x6')]:new _0x40e83d([this[_0x3374('0x59')]]);for(const _0x427df4 of _0x313a7b)this[_0x3374('0x9')](_0x427df4);this[_0x3374('0x21')](_0x313a7b,'add',(_0x22689c,_0x30a5f7)=>{this['listenTo'](_0x30a5f7,_0x3374('0x53'),()=>{this[_0x3374('0x9')](_0x30a5f7);});}),this[_0x3374('0x21')](_0x313a7b,'remove',(_0xcf9366,_0x10b423)=>{_0x10b423[_0x3374('0x44')]['has'](_0x3374('0x1'))&&this[_0x3374('0xb')](_0x10b423['plugins'][_0x3374('0x51')](_0x3374('0x1')));}),window[_0x3374('0x57')]('resize',this[_0x3374('0x10')]),this[_0x3374('0xa')]();}[_0x3374('0x20')](_0x59e303){if(_0x59e303===this[_0x3374('0x47')])return;const _0x52ec30=this[_0x3374('0x59')][_0x3374('0x44')][_0x3374('0x51')](_0x251209);if(_0x52ec30[_0x3374('0x12')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x59e303,'disableAnimationOnActivatedAnnotation':!0x0}),_0x59e303)_0x52ec30[_0x3374('0x23')](_0x59e303)?this[_0x3374('0x3c')](_0x59e303):this[_0x3374('0x2d')]();else this[_0x3374('0x2d')]();this[_0x3374('0x47')]=_0x59e303;}[_0x3374('0x2c')](){if(!this['isAttached'])throw new _0x2f7a32(_0x3374('0x26'),this);this[_0x3374('0x20')](null);const _0x19d8ee=this[_0x3374('0x59')][_0x3374('0x44')][_0x3374('0x51')](_0x251209);this[_0x3374('0x2d')](),Array[_0x3374('0x2b')](this['_annotationToNarrowView'][_0x3374('0x35')](),_0x4bae21=>_0x4bae21[_0x3374('0x34')]()),this[_0x3374('0x46')][_0x3374('0x17')](),_0x19d8ee[_0x3374('0x5e')](this[_0x3374('0x33')]),this[_0x3374('0x49')](),this[_0x3374('0x4a')]['stopListening'](),this['context']instanceof _0x272b30&&this[_0x3374('0x49')](this[_0x3374('0x59')][_0x3374('0x6')]);for(const _0x527b38 of Array['from'](this[_0x3374('0x14')]))this[_0x3374('0xb')](_0x527b38);window[_0x3374('0x4')](_0x3374('0x2f'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x3374('0x4d')](),this[_0x3374('0x2')]=[],this['isAttached']=!0x1,this[_0x3374('0x33')]=null;}[_0x3374('0x34')](){this[_0x3374('0x56')]&&this['detach'](),this[_0x3374('0x55')]['detachFromDom']();}[_0x3374('0x9')](_0x26aef2){const _0x5f2eab=_0x26aef2[_0x3374('0x44')][_0x3374('0x51')](_0x2ff944),_0x351f72=this[_0x3374('0x59')][_0x3374('0x44')][_0x3374('0x51')](_0x251209),_0x2de6c8=this['annotations'],_0x29b404=this[_0x3374('0x16')],_0x4df15f=()=>{const _0x4d2a22=_0x5f2eab[_0x3374('0x1f')]({'annotations':this[_0x3374('0x33')],'activeAnnotation':this['activeAnnotation']});this[_0x3374('0xd')](_0x4d2a22),this[_0x3374('0x20')](_0x4d2a22[0x0]||null);};this[_0x3374('0x21')](_0x5f2eab,'refresh',_0x4df15f),this['listenTo'](_0x5f2eab,_0x3374('0x54'),(_0x25716d,{isAnnotationTracked:_0x32afd9})=>{this[_0x3374('0x47')]&&_0x32afd9(this[_0x3374('0x47')])&&(this[_0x3374('0xd')]([]),this[_0x3374('0x20')](null));}),this[_0x3374('0x21')](_0x5f2eab,'uiUpdate',()=>{this[_0x3374('0x10')]();}),this['listenTo'](_0x2de6c8,'blur',_0x5cdda0=>{_0x5f2eab[_0x3374('0x42')]()&&_0x5cdda0['stop']();},{'priority':_0x3374('0xc')}),this['listenTo'](this[_0x3374('0x4a')],'mousedown',(_0x57a0ed,_0x536738)=>{const _0x2c4dbd=_0x536738[_0x3374('0x3a')];_0x29b404[_0x3374('0x11')]&&_0x29b404[_0x3374('0x37')][_0x3374('0x45')](_0x2c4dbd)||_0x351f72['view'][_0x3374('0x37')][_0x3374('0x45')](_0x2c4dbd)||this[_0x3374('0x47')]&&_0x5f2eab[_0x3374('0x42')]()&&(_0x4df15f(),_0x57a0ed[_0x3374('0x1b')]=!0x0);},{'priority':_0x3374('0xc')}),this[_0x3374('0x14')]['add'](_0x5f2eab);}[_0x3374('0xb')](_0x327bae){_0x327bae&&(this[_0x3374('0x49')](_0x327bae),this['_editorAnnotations']['remove'](_0x327bae));}['_setSelectedAnnotations'](_0x4a5660){for(const _0x203e0f of this['_selectedAnnotations'])_0x4a5660[_0x3374('0x4b')](_0x203e0f)||this[_0x3374('0x0')][_0x3374('0x40')](_0x203e0f[_0x3374('0x15')]);this['_selectedAnnotations']=_0x4a5660;}[_0x3374('0xa')](){const _0x6ee1b3=this['balloonPanelView'];this[_0x3374('0x33')][_0x3374('0x4c')](),_0x6ee1b3[_0x3374('0x11')]&&this['_updateBalloonPosition']();}[_0x3374('0x3c')](_0x5add78){if(this[_0x3374('0x0')][_0x3374('0x58')](_0x5add78['view']))return;const _0x59ead6=this[_0x3374('0x16')][_0x3374('0x3')][_0x3374('0x5c')];_0x59ead6!==_0x5add78[_0x3374('0x15')]?(_0x59ead6&&this[_0x3374('0x24')](_0x59ead6),this[_0x3374('0x1d')](_0x5add78[_0x3374('0x15')]),this[_0x3374('0x16')][_0x3374('0x3')]['clear'](),this[_0x3374('0x16')][_0x3374('0x3')][_0x3374('0x3b')](_0x5add78[_0x3374('0x15')]),this[_0x3374('0x1a')]()):this[_0x3374('0x1a')]();}['_updateBalloonPosition'](){const _0x3b693=this[_0x3374('0x16')]['content'][_0x3374('0x5c')],_0x41d33f=_0x3b693&&this[_0x3374('0x33')][_0x3374('0x50')](_0x3b693);if(!_0x41d33f||!this[_0x3374('0x46')][_0x3374('0x58')](_0x41d33f))return;const _0x4601da=this[_0x3374('0x46')]['get'](_0x41d33f)[_0x3374('0x37')],_0xf1a2a2=function(){const _0x70da51=_0x317d64[_0x3374('0x3e')];return[_0x70da51[_0x3374('0x5d')],_0x70da51[_0x3374('0x25')],_0x70da51['southArrowNorth'],_0x70da51[_0x3374('0x29')],_0x70da51[_0x3374('0x43')],_0x70da51[_0x3374('0x28')]];}();this[_0x3374('0x16')][_0x3374('0x5b')]({'target':_0x4601da,'positions':_0xf1a2a2});}[_0x3374('0x2d')](){const _0x566789=this[_0x3374('0x16')],_0x5a4b09=_0x566789[_0x3374('0x3')]['first'];_0x5a4b09&&(this[_0x3374('0x24')](_0x5a4b09),_0x566789[_0x3374('0x31')](),_0x566789[_0x3374('0x3')]['clear']());}[_0x3374('0x1d')](_0x266877){this[_0x3374('0x21')](_0x266877,_0x3374('0x60'),()=>this[_0x3374('0x1a')]()),this[_0x3374('0x21')](_0x266877,_0x3374('0x4e'),(_0x2afe75,_0x2a5284)=>{this[_0x3374('0x0')][_0x3374('0x3b')](_0x266877),this['_hideBalloon'](),_0x2a5284();});}['_detachListeners'](_0x3e553f){this['stopListening'](_0x3e553f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x406d=['_annotations','Sidebar','_getMaxAvailableTop','_alignForBottomChange','_detachFromContainer','change:targetRect','destroy','sidebar.container','height','delete','list','change:bottom','_setItemTop','sidebar.preventScrollOutOfView','_attachToContainer','push','nodeType','change:_lastItem','change:top','content','render','container','config','stopListening','isActive','remove','getIndex','_annotationToSidebarItemView','_getTargetTop','top','sidebar-attachtocontainer-missing-container','bottom','_alignToTargetRect','_alignBeforeItem','define','_spaceBetweenItems','setContainer','_getItemAfter','bind','_sidebarItemViewToAnnotation','context','_lastItem','clear','_recalculateBuffer','listenTo','updateHeight','appendChild','class','targetRect','_alignAfterItem','init','max','_updateLastItem','target','object','_targetTop','refresh','addAnnotation','sidebar-setcontainer-invalid-element','minHeight','length','view','set','_getItemBefore','getSidebarItemView','_destroySidebarItemView','_createSidebarView','isAnimationDisabled','element','_recalculate','_activeAnnotation','add','last','get'];(function(_0x24c901,_0x406d96){const _0x3fe832=function(_0x1de6cc){while(--_0x1de6cc){_0x24c901['push'](_0x24c901['shift']());}};_0x3fe832(++_0x406d96);}(_0x406d,0xfe));const _0x3fe8=function(_0x24c901,_0x406d96){_0x24c901=_0x24c901-0x0;let _0x3fe832=_0x406d[_0x24c901];return _0x3fe832;};import{ContextPlugin as _0x5f1b67}from'ckeditor5/src/core';import{Rect as _0x5aaf2c,CKEditorError as _0x192a37}from'ckeditor5/src/utils';import _0x48f658 from'./view/sidebarview';import _0x3dc90f from'./view/sidebaritemview';export default class z extends _0x5f1b67{static get['pluginName'](){return _0x3fe8('0x2b');}constructor(_0x2a0575){super(_0x2a0575),this['set'](_0x3fe8('0x9'),void 0x0),this[_0x3fe8('0x1d')]=this[_0x3fe8('0x22')](),this['set'](_0x3fe8('0x3f'),null),this[_0x3fe8('0x3')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x3fe8('0x45')]=new Map(),this['context'][_0x3fe8('0x40')][_0x3fe8('0x2')](_0x3fe8('0x37'),!0x1),this[_0x3fe8('0x2a')]=null,this[_0x3fe8('0x26')]=null,this[_0x3fe8('0xb')]=[];}[_0x3fe8('0x12')](){const _0x30ecaf=this[_0x3fe8('0x8')]['config'][_0x3fe8('0x29')](_0x3fe8('0x31'));_0x30ecaf&&this[_0x3fe8('0x4')](_0x30ecaf);}[_0x3fe8('0x4')](_0x18fbfa){if(!y(_0x18fbfa))throw new _0x192a37(_0x3fe8('0x1a'));this[_0x3fe8('0x3f')]=_0x18fbfa;}[_0x3fe8('0x38')]({viewClass:_0x514969='',spaceBetweenItems:_0x14dda2=0x19}={}){if(!y(this[_0x3fe8('0x3f')]))throw new _0x192a37(_0x3fe8('0x48'),this);this[_0x3fe8('0x3f')][_0x3fe8('0xe')](this[_0x3fe8('0x1d')][_0x3fe8('0x24')]),this['view'][_0x3fe8('0xf')]=_0x514969,this['_spaceBetweenItems']=_0x14dda2;}['rearrange']({removedAnnotation:_0x3f15a8,previousAnnotation:_0x4bbc6b,nextAnnotation:_0x1cfd48}){const _0x25f571=this[_0x3fe8('0x20')](_0x3f15a8);this['view'][_0x3fe8('0x34')][_0x3fe8('0x43')](_0x25f571),this['_destroySidebarItemView'](_0x3f15a8),_0x4bbc6b&&this[_0x3fe8('0x0')](this[_0x3fe8('0x20')](_0x4bbc6b)),_0x1cfd48&&this[_0x3fe8('0x0')](this[_0x3fe8('0x20')](_0x1cfd48)),this[_0x3fe8('0x14')]();}[_0x3fe8('0x18')]({blurredAnnotation:_0x183548,activatedAnnotation:_0x424a52,disableAnimationOnActivatedAnnotation:_0x2f0900}){if(this[_0x3fe8('0x26')]=_0x424a52,_0x183548){_0x183548[_0x3fe8('0x42')]=!0x1;const _0x4e36b3=this[_0x3fe8('0x20')](_0x183548);_0x4e36b3&&_0x2f0900&&(_0x4e36b3['isAnimationDisabled']=!0x1);}if(_0x424a52){const _0x179bd4=this[_0x3fe8('0x20')](_0x424a52);_0x179bd4&&(_0x424a52[_0x3fe8('0x42')]=!0x0,_0x2f0900&&(_0x179bd4[_0x3fe8('0x23')]=!0x0,_0x179bd4['top']+=0x1),this['_alignToTargetRect'](_0x179bd4));}}[_0x3fe8('0x2e')](_0x5daa7d){if(this[_0x3fe8('0x41')](),this[_0x3fe8('0x1d')]['element'][_0x3fe8('0x43')](),_0x5daa7d)for(const _0x451d37 of _0x5daa7d)this[_0x3fe8('0x21')](_0x451d37);this[_0x3fe8('0x1d')][_0x3fe8('0x34')][_0x3fe8('0xa')](),this[_0x3fe8('0x1d')][_0x3fe8('0xf')]='',this['_lastItem']=null;}[_0x3fe8('0x19')](_0x531c8e,_0x24fa4c){_0x24fa4c||(_0x24fa4c=_0x531c8e[_0x3fe8('0x1d')]);const _0x787ec2=new _0x3dc90f(this['context']['locale']);this[_0x3fe8('0x7')]['set'](_0x787ec2,_0x531c8e),this[_0x3fe8('0x45')][_0x3fe8('0x1e')](_0x531c8e,_0x787ec2),_0x787ec2[_0x3fe8('0x3d')][_0x3fe8('0x27')](_0x24fa4c),this[_0x3fe8('0xc')](_0x531c8e[_0x3fe8('0x1d')],_0x3fe8('0x2f'),(_0x46fedc,_0x57f25e,_0x2a24ae)=>{const _0x2f576e=this[_0x3fe8('0x46')](_0x531c8e,_0x2a24ae);_0x787ec2[_0x3fe8('0x17')]!=_0x2f576e&&(_0x787ec2[_0x3fe8('0x17')]=_0x2f576e,this[_0x3fe8('0x36')](_0x787ec2,_0x2f576e));}),this[_0x3fe8('0xc')](_0x787ec2,_0x3fe8('0x3c'),()=>{this[_0x3fe8('0x25')](_0x787ec2,_0x3fe8('0x47'));}),this['listenTo'](_0x787ec2,_0x3fe8('0x35'),()=>{this['_recalculate'](_0x787ec2,_0x3fe8('0x49'));}),this[_0x3fe8('0x0')](_0x787ec2);const _0x24346a=this[_0x3fe8('0x1f')](_0x787ec2);if(_0x24346a)this[_0x3fe8('0x11')](_0x24346a,_0x787ec2)||this['_alignToTargetRect'](_0x787ec2);else this[_0x3fe8('0x0')](_0x787ec2);return this['_updateLastItem'](),this[_0x3fe8('0x1d')][_0x3fe8('0x34')][_0x3fe8('0x27')](_0x787ec2),_0x787ec2;}['_alignForTopChange'](_0x4ca901){if(!_0x4ca901[_0x3fe8('0x3d')]['length'])return;const _0x59c1a8=this[_0x3fe8('0x1f')](_0x4ca901);if(!_0x59c1a8)return;const _0x2c291d=this[_0x3fe8('0x7')][_0x3fe8('0x29')](_0x59c1a8),_0x1bee63=this[_0x3fe8('0x26')];_0x1bee63&&_0x1bee63===_0x2c291d?this[_0x3fe8('0x11')](_0x59c1a8,_0x4ca901):this[_0x3fe8('0x1')](_0x4ca901,_0x59c1a8);}[_0x3fe8('0x2d')](_0x58beeb){if(!_0x58beeb[_0x3fe8('0x3d')][_0x3fe8('0x1c')])return;const _0x3d5721=this['_getItemAfter'](_0x58beeb);if(!_0x3d5721)return;const _0x145da8=this['_sidebarItemViewToAnnotation'][_0x3fe8('0x29')](_0x3d5721),_0x2ffb30=this[_0x3fe8('0x8')][_0x3fe8('0x40')][_0x3fe8('0x29')](_0x3fe8('0x37')),_0x27c41c=this[_0x3fe8('0x26')];_0x27c41c&&_0x27c41c===_0x145da8&&_0x2ffb30?(this[_0x3fe8('0x1')](_0x3d5721,_0x58beeb),this[_0x3fe8('0x11')](_0x58beeb,_0x3d5721)):_0x27c41c&&_0x27c41c===_0x145da8?this[_0x3fe8('0x1')](_0x3d5721,_0x58beeb):this[_0x3fe8('0x11')](_0x58beeb,_0x3d5721);}[_0x3fe8('0x25')](_0x1d3400,_0x1f9078){0x0===this['_recalculateBuffer'][_0x3fe8('0x1c')]&&setTimeout(()=>{for(const {sidebarItemView:_0x3d77d3,changedProp:_0x414ca2}of this[_0x3fe8('0xb')])_0x3fe8('0x47')===_0x414ca2?this['_alignForTopChange'](_0x3d77d3):this[_0x3fe8('0x2d')](_0x3d77d3);this[_0x3fe8('0xb')]=[];},0xa),this['_recalculateBuffer'][_0x3fe8('0x39')]({'sidebarItemView':_0x1d3400,'changedProp':_0x1f9078});}[_0x3fe8('0x20')](_0x462085){return this['_annotationToSidebarItemView']['get'](_0x462085);}['destroy'](){this[_0x3fe8('0x1d')][_0x3fe8('0x30')]();}[_0x3fe8('0x21')](_0x40ec82){const _0x110869=this[_0x3fe8('0x20')](_0x40ec82);this[_0x3fe8('0x41')](_0x110869),this[_0x3fe8('0x41')](_0x40ec82[_0x3fe8('0x1d')]),_0x110869[_0x3fe8('0x30')](),this[_0x3fe8('0x45')]['delete'](_0x40ec82),this[_0x3fe8('0x7')][_0x3fe8('0x33')](_0x110869);}['_createSidebarView'](){const _0x275f59=new _0x48f658(this['context']['locale']);return _0x275f59[_0x3fe8('0x3e')](),this['on'](_0x3fe8('0x3b'),(_0x3a3231,_0x176003,_0x204d42,_0x194169)=>{_0x194169&&_0x275f59['unbind'](_0x3fe8('0x1b')),_0x204d42?_0x275f59[_0x3fe8('0x6')](_0x3fe8('0x1b'))['to'](_0x204d42,_0x3fe8('0x49')):_0x275f59['minHeight']=null;}),_0x275f59;}[_0x3fe8('0x14')](){var _0x3dcf8a;this['_lastItem']=(null===(_0x3dcf8a=this[_0x3fe8('0x2a')])||void 0x0===_0x3dcf8a?void 0x0:_0x3dcf8a[_0x3fe8('0x28')])?this['getSidebarItemView'](this[_0x3fe8('0x2a')][_0x3fe8('0x28')]):null;}[_0x3fe8('0x1f')](_0x2e5064){var _0x12c337;const _0x320549=this[_0x3fe8('0x7')]['get'](_0x2e5064),_0x53cafc=_0x320549&&(null===(_0x12c337=this[_0x3fe8('0x2a')])||void 0x0===_0x12c337?void 0x0:_0x12c337[_0x3fe8('0x29')](this[_0x3fe8('0x2a')][_0x3fe8('0x44')](_0x320549)-0x1));return _0x53cafc&&this[_0x3fe8('0x20')](_0x53cafc)||null;}[_0x3fe8('0x5')](_0x22176e){var _0xdc3132;const _0x33aa2c=this[_0x3fe8('0x7')][_0x3fe8('0x29')](_0x22176e),_0x5cd3ec=_0x33aa2c&&(null===(_0xdc3132=this[_0x3fe8('0x2a')])||void 0x0===_0xdc3132?void 0x0:_0xdc3132[_0x3fe8('0x29')](this[_0x3fe8('0x2a')][_0x3fe8('0x44')](_0x33aa2c)+0x1));return _0x5cd3ec&&this[_0x3fe8('0x20')](_0x5cd3ec)||null;}[_0x3fe8('0x1')](_0xecb69e,_0x34f522){_0xecb69e[_0x3fe8('0xd')]();const _0x28b600=H(_0x34f522[_0x3fe8('0x49')]+this[_0x3fe8('0x3')],_0xecb69e[_0x3fe8('0x47')]);return!!_0x28b600&&(this[_0x3fe8('0x36')](_0x34f522,_0x34f522['top']-_0x28b600),!0x0);}[_0x3fe8('0x11')](_0x20b4dc,_0xcc27d7){_0x20b4dc[_0x3fe8('0xd')]();const _0x551cd8=H(_0x20b4dc[_0x3fe8('0x49')]+this[_0x3fe8('0x3')],_0xcc27d7[_0x3fe8('0x47')]);return!!_0x551cd8&&(this[_0x3fe8('0x36')](_0xcc27d7,_0xcc27d7[_0x3fe8('0x47')]+_0x551cd8,!0x1),!0x0);}[_0x3fe8('0x0')](_0x13771d){const _0x46efde=this[_0x3fe8('0x7')][_0x3fe8('0x29')](_0x13771d);if(!_0x46efde||!_0x46efde[_0x3fe8('0x15')]||!_0x46efde[_0x3fe8('0x10')])return;const _0x2ec002=this[_0x3fe8('0x46')](_0x46efde,_0x46efde['targetRect']);this[_0x3fe8('0x36')](_0x13771d,_0x2ec002);}[_0x3fe8('0x46')](_0x58c726,_0x4d2e9b){if(null===_0x4d2e9b)return 0x0;if(_0x58c726[_0x3fe8('0x15')]instanceof _0x5aaf2c)return _0x4d2e9b[_0x3fe8('0x47')];{const _0x1a710f=new _0x5aaf2c(this[_0x3fe8('0x1d')]['element'])[_0x3fe8('0x47')];return _0x4d2e9b[_0x3fe8('0x47')]-_0x1a710f;}}[_0x3fe8('0x36')](_0x3d5912,_0x119d8d,_0x1c5525=this[_0x3fe8('0x8')][_0x3fe8('0x40')][_0x3fe8('0x29')](_0x3fe8('0x37'))){_0x1c5525&&(_0x119d8d=Math[_0x3fe8('0x13')](_0x119d8d,this[_0x3fe8('0x2c')](_0x3d5912))),_0x3d5912[_0x3fe8('0x47')]=_0x119d8d;}[_0x3fe8('0x2c')](_0x5b5697){let _0x2466a6=this[_0x3fe8('0x1f')](_0x5b5697),_0x8c7b0b=0x0;for(;_0x2466a6;)_0x2466a6['updateHeight'](),_0x8c7b0b+=this['_spaceBetweenItems']+_0x2466a6[_0x3fe8('0x32')],_0x2466a6=this[_0x3fe8('0x1f')](_0x2466a6);return _0x8c7b0b;}}function H(_0x4f01bd,_0x3095cb){return Math[_0x3fe8('0x13')](_0x4f01bd-_0x3095cb,0x0);}function y(_0x5bdb46){return null!==_0x5bdb46&&_0x3fe8('0x16')==typeof _0x5bdb46&&0x1===_0x5bdb46[_0x3fe8('0x3a')];}
23
+ const _0x3eb2=['_destroySidebarItemView','element','_attachToContainer','_alignForBottomChange','class','_alignAfterItem','bind','getIndex','_recalculateBuffer','change:top','sidebar-attachtocontainer-missing-container','_setItemTop','_targetTop','define','listenTo','get','targetRect','change:targetRect','list','_getItemBefore','target','max','isAnimationDisabled','_activeAnnotation','_createSidebarView','locale','container','getSidebarItemView','view','push','delete','_alignToTargetRect','_getTargetTop','length','context','remove','_alignForTopChange','_getItemAfter','init','isActive','_lastItem','sidebar.preventScrollOutOfView','height','unbind','config','set','last','change:_lastItem','_recalculate','top','minHeight','_annotations','add','updateHeight','render','bottom','_detachFromContainer','_updateLastItem','setContainer','stopListening','_spaceBetweenItems','change:bottom','rearrange','destroy','object','addAnnotation','content','refresh','_annotationToSidebarItemView','Sidebar','_sidebarItemViewToAnnotation','_alignBeforeItem'];(function(_0x2939fa,_0x3eb23d){const _0x5504e8=function(_0x2ec3c3){while(--_0x2ec3c3){_0x2939fa['push'](_0x2939fa['shift']());}};_0x5504e8(++_0x3eb23d);}(_0x3eb2,0x111));const _0x5504=function(_0x2939fa,_0x3eb23d){_0x2939fa=_0x2939fa-0x0;let _0x5504e8=_0x3eb2[_0x2939fa];return _0x5504e8;};import{ContextPlugin as _0xcc03e5}from'ckeditor5/src/core';import{Rect as _0x4c4798,CKEditorError as _0x4d11cf}from'ckeditor5/src/utils';import _0x3c7886 from'./view/sidebarview';import _0x5428e9 from'./view/sidebaritemview';export default class wt extends _0xcc03e5{static get['pluginName'](){return _0x5504('0xc');}constructor(_0x1d5ffe){super(_0x1d5ffe),this[_0x5504('0x3c')]('_lastItem',void 0x0),this[_0x5504('0x2b')]=this[_0x5504('0x27')](),this[_0x5504('0x3c')](_0x5504('0x29'),null),this[_0x5504('0x3')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x5504('0xb')]=new Map(),this[_0x5504('0x31')][_0x5504('0x3b')][_0x5504('0x1c')](_0x5504('0x38'),!0x1),this['_annotations']=null,this[_0x5504('0x26')]=null,this[_0x5504('0x17')]=[];}[_0x5504('0x35')](){const _0x4d24eb=this[_0x5504('0x31')][_0x5504('0x3b')][_0x5504('0x1e')]('sidebar.container');_0x4d24eb&&this['setContainer'](_0x4d24eb);}[_0x5504('0x1')](_0x7542ef){if(!rt(_0x7542ef))throw new _0x4d11cf('sidebar-setcontainer-invalid-element');this['container']=_0x7542ef;}[_0x5504('0x11')]({viewClass:_0x4dbda8='',spaceBetweenItems:_0x23e5c7=0x19}={}){if(!rt(this[_0x5504('0x29')]))throw new _0x4d11cf(_0x5504('0x19'),this);this['container']['appendChild'](this[_0x5504('0x2b')][_0x5504('0x10')]),this[_0x5504('0x2b')]['class']=_0x4dbda8,this['_spaceBetweenItems']=_0x23e5c7;}[_0x5504('0x5')]({removedAnnotation:_0x5ae0c6,previousAnnotation:_0x48b1ce,nextAnnotation:_0x6d614d}){const _0x24c2a5=this[_0x5504('0x2a')](_0x5ae0c6);this[_0x5504('0x2b')][_0x5504('0x21')][_0x5504('0x32')](_0x24c2a5),this[_0x5504('0xf')](_0x5ae0c6),_0x48b1ce&&this[_0x5504('0x2e')](this[_0x5504('0x2a')](_0x48b1ce)),_0x6d614d&&this[_0x5504('0x2e')](this[_0x5504('0x2a')](_0x6d614d)),this[_0x5504('0x0')]();}[_0x5504('0xa')]({blurredAnnotation:_0x2893ae,activatedAnnotation:_0x4ab60d,disableAnimationOnActivatedAnnotation:_0x573801}){if(this['_activeAnnotation']=_0x4ab60d,_0x2893ae){_0x2893ae[_0x5504('0x36')]=!0x1;const _0x387b93=this[_0x5504('0x2a')](_0x2893ae);_0x387b93&&_0x573801&&(_0x387b93['isAnimationDisabled']=!0x1);}if(_0x4ab60d){const _0x323ab2=this[_0x5504('0x2a')](_0x4ab60d);_0x323ab2&&(_0x4ab60d[_0x5504('0x36')]=!0x0,_0x573801&&(_0x323ab2[_0x5504('0x25')]=!0x0,_0x323ab2[_0x5504('0x40')]+=0x1),this[_0x5504('0x2e')](_0x323ab2));}}[_0x5504('0x47')](_0x58ce86){if(this[_0x5504('0x2')](),this[_0x5504('0x2b')][_0x5504('0x10')][_0x5504('0x32')](),_0x58ce86)for(const _0x398f4a of _0x58ce86)this['_destroySidebarItemView'](_0x398f4a);this[_0x5504('0x2b')]['list']['clear'](),this[_0x5504('0x2b')][_0x5504('0x13')]='',this[_0x5504('0x37')]=null;}[_0x5504('0x8')](_0x2fe877,_0x43f722){_0x43f722||(_0x43f722=_0x2fe877[_0x5504('0x2b')]);const _0x444440=new _0x5428e9(this[_0x5504('0x31')][_0x5504('0x28')]);this[_0x5504('0xd')][_0x5504('0x3c')](_0x444440,_0x2fe877),this[_0x5504('0xb')]['set'](_0x2fe877,_0x444440),_0x444440[_0x5504('0x9')][_0x5504('0x43')](_0x43f722),this['listenTo'](_0x2fe877[_0x5504('0x2b')],_0x5504('0x20'),(_0x4bdec6,_0x580eeb,_0x58bcf0)=>{const _0x341294=this[_0x5504('0x2f')](_0x2fe877,_0x58bcf0);_0x444440[_0x5504('0x1b')]!=_0x341294&&(_0x444440[_0x5504('0x1b')]=_0x341294,this[_0x5504('0x1a')](_0x444440,_0x341294));}),this[_0x5504('0x1d')](_0x444440,_0x5504('0x18'),()=>{this['_recalculate'](_0x444440,_0x5504('0x40'));}),this[_0x5504('0x1d')](_0x444440,_0x5504('0x4'),()=>{this['_recalculate'](_0x444440,'bottom');}),this[_0x5504('0x2e')](_0x444440);const _0x2a0693=this[_0x5504('0x22')](_0x444440);if(_0x2a0693)this[_0x5504('0x14')](_0x2a0693,_0x444440)||this[_0x5504('0x2e')](_0x444440);else this[_0x5504('0x2e')](_0x444440);return this[_0x5504('0x0')](),this[_0x5504('0x2b')]['list'][_0x5504('0x43')](_0x444440),_0x444440;}[_0x5504('0x33')](_0x5b5475){if(!_0x5b5475[_0x5504('0x9')][_0x5504('0x30')])return;const _0x55659d=this[_0x5504('0x22')](_0x5b5475);if(!_0x55659d)return;const _0x4c948c=this[_0x5504('0xd')][_0x5504('0x1e')](_0x55659d),_0x3b9421=this[_0x5504('0x26')];_0x3b9421&&_0x3b9421===_0x4c948c?this[_0x5504('0x14')](_0x55659d,_0x5b5475):this[_0x5504('0xe')](_0x5b5475,_0x55659d);}[_0x5504('0x12')](_0x45c064){if(!_0x45c064[_0x5504('0x9')][_0x5504('0x30')])return;const _0x1a5d82=this[_0x5504('0x34')](_0x45c064);if(!_0x1a5d82)return;const _0x3536bb=this[_0x5504('0xd')][_0x5504('0x1e')](_0x1a5d82),_0x490917=this[_0x5504('0x31')][_0x5504('0x3b')]['get'](_0x5504('0x38')),_0x4cdccf=this['_activeAnnotation'];_0x4cdccf&&_0x4cdccf===_0x3536bb&&_0x490917?(this['_alignBeforeItem'](_0x1a5d82,_0x45c064),this[_0x5504('0x14')](_0x45c064,_0x1a5d82)):_0x4cdccf&&_0x4cdccf===_0x3536bb?this[_0x5504('0xe')](_0x1a5d82,_0x45c064):this[_0x5504('0x14')](_0x45c064,_0x1a5d82);}[_0x5504('0x3f')](_0x4c348f,_0x3ff7fa){0x0===this[_0x5504('0x17')][_0x5504('0x30')]&&setTimeout(()=>{for(const {sidebarItemView:_0x285bc4,changedProp:_0x2f8cc4}of this[_0x5504('0x17')])_0x5504('0x40')===_0x2f8cc4?this[_0x5504('0x33')](_0x285bc4):this[_0x5504('0x12')](_0x285bc4);this[_0x5504('0x17')]=[];},0xa),this[_0x5504('0x17')][_0x5504('0x2c')]({'sidebarItemView':_0x4c348f,'changedProp':_0x3ff7fa});}[_0x5504('0x2a')](_0x2267bf){return this[_0x5504('0xb')][_0x5504('0x1e')](_0x2267bf);}[_0x5504('0x6')](){this['view']['destroy']();}[_0x5504('0xf')](_0x2a1161){const _0x5650e2=this['getSidebarItemView'](_0x2a1161);this[_0x5504('0x2')](_0x5650e2),this[_0x5504('0x2')](_0x2a1161['view']),_0x5650e2[_0x5504('0x6')](),this[_0x5504('0xb')]['delete'](_0x2a1161),this[_0x5504('0xd')][_0x5504('0x2d')](_0x5650e2);}[_0x5504('0x27')](){const _0x924878=new _0x3c7886(this[_0x5504('0x31')][_0x5504('0x28')]);return _0x924878[_0x5504('0x45')](),this['on'](_0x5504('0x3e'),(_0x2d68c2,_0x39a4dc,_0x3a70a3,_0xf74ba5)=>{_0xf74ba5&&_0x924878[_0x5504('0x3a')](_0x5504('0x41')),_0x3a70a3?_0x924878[_0x5504('0x15')](_0x5504('0x41'))['to'](_0x3a70a3,_0x5504('0x46')):_0x924878[_0x5504('0x41')]=null;}),_0x924878;}[_0x5504('0x0')](){var _0x2dc955;this[_0x5504('0x37')]=(null===(_0x2dc955=this['_annotations'])||void 0x0===_0x2dc955?void 0x0:_0x2dc955[_0x5504('0x3d')])?this['getSidebarItemView'](this[_0x5504('0x42')][_0x5504('0x3d')]):null;}[_0x5504('0x22')](_0x4e73ae){var _0x52b4e7;const _0x2a6805=this[_0x5504('0xd')]['get'](_0x4e73ae),_0x39597e=_0x2a6805&&(null===(_0x52b4e7=this[_0x5504('0x42')])||void 0x0===_0x52b4e7?void 0x0:_0x52b4e7['get'](this['_annotations'][_0x5504('0x16')](_0x2a6805)-0x1));return _0x39597e&&this[_0x5504('0x2a')](_0x39597e)||null;}[_0x5504('0x34')](_0x86f2cd){var _0x1d788d;const _0xe5ea86=this['_sidebarItemViewToAnnotation']['get'](_0x86f2cd),_0x52101d=_0xe5ea86&&(null===(_0x1d788d=this[_0x5504('0x42')])||void 0x0===_0x1d788d?void 0x0:_0x1d788d[_0x5504('0x1e')](this['_annotations'][_0x5504('0x16')](_0xe5ea86)+0x1));return _0x52101d&&this[_0x5504('0x2a')](_0x52101d)||null;}['_alignBeforeItem'](_0x16695d,_0x4dc693){_0x16695d[_0x5504('0x44')]();const _0x352a28=It(_0x4dc693[_0x5504('0x46')]+this['_spaceBetweenItems'],_0x16695d[_0x5504('0x40')]);return!!_0x352a28&&(this[_0x5504('0x1a')](_0x4dc693,_0x4dc693['top']-_0x352a28),!0x0);}[_0x5504('0x14')](_0x187034,_0x11fa0b){_0x187034[_0x5504('0x44')]();const _0x4b7de3=It(_0x187034['bottom']+this[_0x5504('0x3')],_0x11fa0b[_0x5504('0x40')]);return!!_0x4b7de3&&(this[_0x5504('0x1a')](_0x11fa0b,_0x11fa0b[_0x5504('0x40')]+_0x4b7de3,!0x1),!0x0);}[_0x5504('0x2e')](_0x5c2d98){const _0x28c183=this['_sidebarItemViewToAnnotation'][_0x5504('0x1e')](_0x5c2d98);if(!_0x28c183||!_0x28c183['target']||!_0x28c183[_0x5504('0x1f')])return;const _0x186712=this[_0x5504('0x2f')](_0x28c183,_0x28c183[_0x5504('0x1f')]);this[_0x5504('0x1a')](_0x5c2d98,_0x186712);}[_0x5504('0x2f')](_0x4ab84a,_0x51fe9c){if(null===_0x51fe9c)return 0x0;if(_0x4ab84a[_0x5504('0x23')]instanceof _0x4c4798)return _0x51fe9c[_0x5504('0x40')];{const _0x228c38=new _0x4c4798(this[_0x5504('0x2b')][_0x5504('0x10')])[_0x5504('0x40')];return _0x51fe9c[_0x5504('0x40')]-_0x228c38;}}[_0x5504('0x1a')](_0xdefb9d,_0x1dd8a2,_0x236ba2=this[_0x5504('0x31')]['config'][_0x5504('0x1e')]('sidebar.preventScrollOutOfView')){_0x236ba2&&(_0x1dd8a2=Math[_0x5504('0x24')](_0x1dd8a2,this['_getMaxAvailableTop'](_0xdefb9d))),_0xdefb9d[_0x5504('0x40')]=_0x1dd8a2;}['_getMaxAvailableTop'](_0x21759c){let _0x41909a=this['_getItemBefore'](_0x21759c),_0x331a5c=0x0;for(;_0x41909a;)_0x41909a[_0x5504('0x44')](),_0x331a5c+=this[_0x5504('0x3')]+_0x41909a[_0x5504('0x39')],_0x41909a=this['_getItemBefore'](_0x41909a);return _0x331a5c;}}function It(_0x149214,_0x26939b){return Math[_0x5504('0x24')](_0x149214-_0x26939b,0x0);}function rt(_0xab1da0){return null!==_0xab1da0&&_0x5504('0x7')==typeof _0xab1da0&&0x1===_0xab1da0['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe155=['set','ck-annotation-counter','counterView','add','ck-annotation-counter__badge','toString','isDirty','_badge','bindTemplate','icon','annotationType','number','extendTemplate','ck-annotation-counter__badge--','children'];(function(_0x293ecc,_0xe15550){const _0x38f78c=function(_0x59cde2){while(--_0x59cde2){_0x293ecc['push'](_0x293ecc['shift']());}};_0x38f78c(++_0xe15550);}(_0xe155,0x111));const _0x38f7=function(_0x293ecc,_0xe15550){_0x293ecc=_0x293ecc-0x0;let _0x38f78c=_0xe155[_0x293ecc];return _0x38f78c;};import{ButtonView as _0xd8420d,View as _0xc69b16}from'ckeditor5/src/ui';import _0x20f889 from'../../../theme/icons/add-comment.svg';export default class D extends _0xd8420d{constructor(_0x50b06e){super(_0x50b06e);const _0x1de201=this[_0x38f7('0x5')];this[_0x38f7('0xc')](_0x38f7('0x3'),!0x1),this[_0x38f7('0xc')](_0x38f7('0x8'),0x0),this['bind']('_badge')['to'](this,_0x38f7('0x3'),this,_0x38f7('0x8'),(_0x266e44,_0x5c4f00)=>_0x266e44?'...':_0x5c4f00[_0x38f7('0x2')]()),this[_0x38f7('0xc')]('annotationType',''),this[_0x38f7('0x6')]=_0x20f889,this[_0x38f7('0x9')]({'attributes':{'class':[_0x38f7('0xd')]}}),this[_0x38f7('0xe')]=new _0xc69b16(),this[_0x38f7('0xe')]['setTemplate']({'tag':'span','attributes':{'class':[_0x38f7('0x1'),_0x1de201['to'](_0x38f7('0x7'),_0x5246c8=>_0x38f7('0xa')+_0x5246c8),_0x1de201['if'](_0x38f7('0x3'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1de201['to'](_0x38f7('0x4'))}]}),this[_0x38f7('0xb')][_0x38f7('0x0')](this['counterView']);}}
23
+ const _0x23e9=['setTemplate','ck-annotation-counter__badge--','set','span','annotationType','toString','bind','add','ck-annotation-counter','number','counterView','_badge','ck-annotation-counter__badge--edit-mode','icon','ck-annotation-counter__badge','extendTemplate','children','isDirty'];(function(_0x516a85,_0x23e98f){const _0x1d27de=function(_0xf9cf90){while(--_0xf9cf90){_0x516a85['push'](_0x516a85['shift']());}};_0x1d27de(++_0x23e98f);}(_0x23e9,0x1ba));const _0x1d27=function(_0x516a85,_0x23e98f){_0x516a85=_0x516a85-0x0;let _0x1d27de=_0x23e9[_0x516a85];return _0x1d27de;};import{ButtonView as _0x34f0f0,View as _0x16ba4c}from'ckeditor5/src/ui';import _0x556677 from'../../../theme/icons/add-comment.svg';export default class mt extends _0x34f0f0{constructor(_0x466558){super(_0x466558);const _0x2a44ca=this['bindTemplate'];this[_0x1d27('0xa')](_0x1d27('0x7'),!0x1),this[_0x1d27('0xa')](_0x1d27('0x11'),0x0),this[_0x1d27('0xe')](_0x1d27('0x1'))['to'](this,_0x1d27('0x7'),this,_0x1d27('0x11'),(_0x47aa57,_0x161c7c)=>_0x47aa57?'...':_0x161c7c[_0x1d27('0xd')]()),this[_0x1d27('0xa')](_0x1d27('0xc'),''),this[_0x1d27('0x3')]=_0x556677,this[_0x1d27('0x5')]({'attributes':{'class':[_0x1d27('0x10')]}}),this['counterView']=new _0x16ba4c(),this[_0x1d27('0x0')][_0x1d27('0x8')]({'tag':_0x1d27('0xb'),'attributes':{'class':[_0x1d27('0x4'),_0x2a44ca['to'](_0x1d27('0xc'),_0x1595c9=>_0x1d27('0x9')+_0x1595c9),_0x2a44ca['if'](_0x1d27('0x7'),_0x1d27('0x2'))]},'children':[{'text':_0x2a44ca['to'](_0x1d27('0x1'))}]}),this[_0x1d27('0x6')][_0x1d27('0xf')](this[_0x1d27('0x0')]);}}