@ckeditor/ckeditor5-comments 0.0.0-nightly-20240201.0 → 0.0.0-nightly-20240203.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) 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.d.ts +1 -1
  25. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  27. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  28. package/src/comments/ui/commentthreadcontroller.js +1 -1
  29. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  30. package/src/comments/ui/view/basecommentview.js +1 -1
  31. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  32. package/src/comments/ui/view/commentcontentview.js +1 -1
  33. package/src/comments/ui/view/commentinputview.js +1 -1
  34. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  35. package/src/comments/ui/view/commentslistview.js +1 -1
  36. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  37. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  38. package/src/comments/ui/view/commentthreadview.js +1 -1
  39. package/src/comments/ui/view/commentview.js +1 -1
  40. package/src/comments.js +1 -1
  41. package/src/commentsonly.js +1 -1
  42. package/src/utils/common-translations.js +1 -1
  43. package/src/utils/createmutationobserver.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "0.0.0-nightly-20240201.0",
3
+ "version": "0.0.0-nightly-20240203.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -44,8 +44,8 @@
44
44
  "CHANGELOG.md"
45
45
  ],
46
46
  "dependencies": {
47
- "ckeditor5": "0.0.0-nightly-20240201.0",
48
- "ckeditor5-collaboration": "0.0.0-nightly-20240201.0",
47
+ "ckeditor5": "0.0.0-nightly-20240203.0",
48
+ "ckeditor5-collaboration": "0.0.0-nightly-20240203.0",
49
49
  "lodash-es": "4.17.21"
50
50
  },
51
51
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x191e=['updateTargetRect','isVisible','targetRect','target','add','_getNormalizedTarget','focusableElements','_assertCorrectTarget','function','length','getClientRects','annotation-invalid-target','render','filter','view','refreshVisibility','_target','object','mainView','isArray','isActive','stopListening','_id','offsetParent','set','nodeType','_type','item','remove'];(function(_0x1764db,_0x191e7b){const _0x517c67=function(_0x19a5fd){while(--_0x19a5fd){_0x1764db['push'](_0x1764db['shift']());}};_0x517c67(++_0x191e7b);}(_0x191e,0xc6));const _0x517c=function(_0x1764db,_0x191e7b){_0x1764db=_0x1764db-0x0;let _0x517c67=_0x191e[_0x1764db];return _0x517c67;};import{CKEditorError as _0x53e9fe,Rect as _0x2d6ebc,Collection as _0x4dbd0b,ObservableMixin as _0x34587d}from'ckeditor5/src/utils.js';export default class d extends _0x34587d(){constructor({view:_0x7979c8,target:_0x1abc16,type:_0x4edd3d,isVisible:_0x308410=!0x0}){super(),this[_0x517c('0x13')]=_0x7979c8,this[_0x517c('0x13')]['element']||this[_0x517c('0x13')][_0x517c('0x11')](),this[_0x517c('0x2')]=_0x4edd3d,this[_0x517c('0x15')]=_0x1abc16,d[_0x517c('0xc')](this['_getNormalizedTarget']()),this[_0x517c('0xb')]=new _0x4dbd0b([this[_0x517c('0x13')]['element']],{'idProperty':_0x517c('0x1b')}),this['focusableElements']['on'](_0x517c('0x9'),(_0x347f2b,_0x1cdae5)=>{this[_0x517c('0x13')]['focusTracker'][_0x517c('0x9')](_0x1cdae5);}),this[_0x517c('0xb')]['on'](_0x517c('0x4'),(_0x48a460,_0x7190eb)=>{this['view']['focusTracker'][_0x517c('0x4')](_0x7190eb);}),this[_0x517c('0x0')](_0x517c('0x6'),_0x308410);}get['type'](){return _0x517c('0xd')==typeof this[_0x517c('0x2')]?this[_0x517c('0x2')]():this[_0x517c('0x2')];}get['innerView'](){return this['view'][_0x517c('0x17')];}get[_0x517c('0x8')](){const _0x2211dd=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x2211dd),_0x2211dd;}get['targetRect'](){const _0x1d9989=this[_0x517c('0x8')];if(null===_0x1d9989)return null;if(_0x1d9989 instanceof _0x2d6ebc)return _0x1d9989;const _0x53f758=_0x1d9989[_0x517c('0x12')](_0x3a12be=>function(_0x24d11c){const _0xbd6a53=_0x24d11c[_0x517c('0x1c')];if(_0xbd6a53)return!0x0;const _0x16f637=_0x24d11c[_0x517c('0xf')]()[_0x517c('0x3')](0x0);return!!_0x16f637;}(_0x3a12be));return 0x0===_0x53f758[_0x517c('0xe')]?null:new _0x2d6ebc(_0x53f758[0x0][_0x517c('0xf')]()[_0x517c('0x3')](0x0));}get[_0x517c('0x19')](){return this[_0x517c('0x13')][_0x517c('0x19')];}set[_0x517c('0x19')](_0x56adb4){this[_0x517c('0x13')][_0x517c('0x19')]=_0x56adb4,this[_0x517c('0x13')][_0x517c('0x17')][_0x517c('0x19')]=_0x56adb4;}[_0x517c('0x5')](){this[_0x517c('0x13')][_0x517c('0x7')]=this['targetRect'];}['destroy'](){this[_0x517c('0xb')][_0x517c('0x1a')](),this[_0x517c('0xb')]['clear'](),this[_0x517c('0x1a')]();}[_0x517c('0x14')](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x366fb1){if(!(null===_0x366fb1||_0x366fb1 instanceof _0x2d6ebc||Array[_0x517c('0x18')](_0x366fb1)&&_0x366fb1['every'](_0x1cf9ee=>y(_0x1cf9ee))))throw new _0x53e9fe(_0x517c('0x10'),null,{'target':_0x366fb1});}[_0x517c('0xa')](){const _0x19f25f=_0x517c('0xd')==typeof this['_target']?this['_target']():this['_target'];return y(_0x19f25f)?[_0x19f25f]:_0x19f25f;}}function y(_0xf73fb1){return null!==_0xf73fb1&&_0x517c('0x16')==typeof _0xf73fb1&&_0x517c('0x1')in _0xf73fb1&&0x1===_0xf73fb1[_0x517c('0x1')];}
23
+ const _0x386e=['function','add','item','type','mainView','stopListening','isActive','remove','annotation-invalid-target','_assertCorrectTarget','view','_id','focusTracker','targetRect','isVisible','getClientRects','_type','length','refreshVisibility','focusableElements','innerView','target','_getNormalizedTarget','updateTargetRect','clear','_target','element','set','filter','nodeType'];(function(_0x37d11b,_0x386e97){const _0x48f210=function(_0xf4036d){while(--_0xf4036d){_0x37d11b['push'](_0x37d11b['shift']());}};_0x48f210(++_0x386e97);}(_0x386e,0x14e));const _0x48f2=function(_0x37d11b,_0x386e97){_0x37d11b=_0x37d11b-0x0;let _0x48f210=_0x386e[_0x37d11b];return _0x48f210;};import{CKEditorError as _0x14bb88,Rect as _0x2fab88,Collection as _0x57a1d5,ObservableMixin as _0x2097c7}from'ckeditor5/src/utils.js';export default class d extends _0x2097c7(){constructor({view:_0x3a986e,target:_0x278d8a,type:_0x48d01f,isVisible:_0x564341=!0x0}){super(),this[_0x48f2('0x6')]=_0x3a986e,this[_0x48f2('0x6')][_0x48f2('0x16')]||this[_0x48f2('0x6')]['render'](),this['_type']=_0x48d01f,this['_target']=_0x278d8a,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this[_0x48f2('0xf')]=new _0x57a1d5([this[_0x48f2('0x6')][_0x48f2('0x16')]],{'idProperty':_0x48f2('0x7')}),this[_0x48f2('0xf')]['on'](_0x48f2('0x1b'),(_0x897479,_0x199ee8)=>{this[_0x48f2('0x6')][_0x48f2('0x8')]['add'](_0x199ee8);}),this[_0x48f2('0xf')]['on'](_0x48f2('0x3'),(_0x2ed40b,_0x2ced2d)=>{this[_0x48f2('0x6')]['focusTracker'][_0x48f2('0x3')](_0x2ced2d);}),this[_0x48f2('0x17')](_0x48f2('0xa'),_0x564341);}get[_0x48f2('0x1d')](){return _0x48f2('0x1a')==typeof this['_type']?this[_0x48f2('0xc')]():this['_type'];}get[_0x48f2('0x10')](){return this[_0x48f2('0x6')]['mainView'];}get['target'](){const _0x383be1=this[_0x48f2('0x12')]();return d['_assertCorrectTarget'](_0x383be1),_0x383be1;}get['targetRect'](){const _0x3dcc15=this[_0x48f2('0x11')];if(null===_0x3dcc15)return null;if(_0x3dcc15 instanceof _0x2fab88)return _0x3dcc15;const _0x5e107c=_0x3dcc15[_0x48f2('0x18')](_0x8e81a=>function(_0x26fc55){const _0x221560=_0x26fc55['offsetParent'];if(_0x221560)return!0x0;const _0x3a8edd=_0x26fc55[_0x48f2('0xb')]()[_0x48f2('0x1c')](0x0);return!!_0x3a8edd;}(_0x8e81a));return 0x0===_0x5e107c[_0x48f2('0xd')]?null:new _0x2fab88(_0x5e107c[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this[_0x48f2('0x6')][_0x48f2('0x2')];}set[_0x48f2('0x2')](_0x3298de){this[_0x48f2('0x6')]['isActive']=_0x3298de,this[_0x48f2('0x6')][_0x48f2('0x0')]['isActive']=_0x3298de;}[_0x48f2('0x13')](){this[_0x48f2('0x6')]['targetRect']=this[_0x48f2('0x9')];}['destroy'](){this[_0x48f2('0xf')][_0x48f2('0x1')](),this[_0x48f2('0xf')][_0x48f2('0x14')](),this[_0x48f2('0x1')]();}[_0x48f2('0xe')](){this[_0x48f2('0xa')]=!!this[_0x48f2('0x9')];}static[_0x48f2('0x5')](_0x1e6ac0){if(!(null===_0x1e6ac0||_0x1e6ac0 instanceof _0x2fab88||Array['isArray'](_0x1e6ac0)&&_0x1e6ac0['every'](_0x5edfea=>y(_0x5edfea))))throw new _0x14bb88(_0x48f2('0x4'),null,{'target':_0x1e6ac0});}[_0x48f2('0x12')](){const _0x103e9f=_0x48f2('0x1a')==typeof this['_target']?this[_0x48f2('0x15')]():this[_0x48f2('0x15')];return y(_0x103e9f)?[_0x103e9f]:_0x103e9f;}}function y(_0x53b7a6){return null!==_0x53b7a6&&'object'==typeof _0x53b7a6&&_0x48f2('0x19')in _0x53b7a6&&0x1===_0x53b7a6[_0x48f2('0x19')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30ae=['_innerViewToAnnotation','focusableElements','add','clear','getIndex','focusTracker','refreshPositioning','getByView','set','annotationcollection-duplicated-item','updateTargetRect','focus','_focusTracker','sort','_getOrderInContent','has','getByInnerView','length','targetRect','listenTo','isFocused','annotationcollection-not-existing-item','delete','destroy','fire','remove','get','_sort','change:isFocused','stopListening','left','_viewToAnnotation','view'];(function(_0x485766,_0x30ae11){const _0x5dd125=function(_0x5d1443){while(--_0x5d1443){_0x485766['push'](_0x485766['shift']());}};_0x5dd125(++_0x30ae11);}(_0x30ae,0x194));const _0x5dd1=function(_0x485766,_0x30ae11){_0x485766=_0x485766-0x0;let _0x5dd125=_0x30ae[_0x485766];return _0x5dd125;};import{CKEditorError as _0x17a1a0,Collection as _0x3b44a1,FocusTracker as _0xd5f1bb}from'ckeditor5/src/utils.js';export default class x extends _0x3b44a1{constructor(_0x53bf99=[]){super(),this[_0x5dd1('0x19')]=new Map(),this[_0x5dd1('0x17')]=new Map(),this[_0x5dd1('0x4')]=new _0xd5f1bb(),this[_0x5dd1('0x4')]['on'](_0x5dd1('0x14'),(_0x3f2c9f,_0x19a2d2,_0x4c6fc6)=>{_0x4c6fc6||this[_0x5dd1('0x10')]('blur');});for(const _0x56f984 of _0x53bf99)this[_0x5dd1('0x1b')](_0x56f984);}get[_0x5dd1('0xc')](){return this[_0x5dd1('0x4')][_0x5dd1('0xc')];}[_0x5dd1('0x1b')](_0x185ad9){if(this[_0x5dd1('0x7')](_0x185ad9))throw new _0x17a1a0(_0x5dd1('0x1'),null);this['_innerViewToAnnotation']['set'](_0x185ad9['innerView'],_0x185ad9),this[_0x5dd1('0x17')][_0x5dd1('0x0')](_0x185ad9[_0x5dd1('0x18')],_0x185ad9);for(const _0x15916e of _0x185ad9[_0x5dd1('0x1a')])this[_0x5dd1('0x4')][_0x5dd1('0x1b')](_0x15916e);this[_0x5dd1('0xb')](_0x185ad9[_0x5dd1('0x1a')],_0x5dd1('0x1b'),(_0x377973,_0x8804df)=>{this['_focusTracker'][_0x5dd1('0x1b')](_0x8804df);}),this['listenTo'](_0x185ad9[_0x5dd1('0x1a')],_0x5dd1('0x11'),(_0x535326,_0x3b4026)=>{this[_0x5dd1('0x4')][_0x5dd1('0x11')](_0x3b4026);}),this[_0x5dd1('0xb')](_0x185ad9[_0x5dd1('0x18')][_0x5dd1('0x1e')],_0x5dd1('0x14'),(_0x411d1c,_0x4014d7,_0x2ed15a)=>{_0x2ed15a&&this[_0x5dd1('0x10')](_0x5dd1('0x3'),_0x185ad9);}),_0x185ad9[_0x5dd1('0x2')]();const _0xbf3713=this[_0x5dd1('0x6')](_0x185ad9[_0x5dd1('0x18')]['targetRect']);return super['add'](_0x185ad9,_0xbf3713);}[_0x5dd1('0x11')](_0x188174){if(!this[_0x5dd1('0x7')](_0x188174))throw new _0x17a1a0(_0x5dd1('0xd'),null);this[_0x5dd1('0x15')](_0x188174[_0x5dd1('0x18')][_0x5dd1('0x1e')]),this[_0x5dd1('0x15')](_0x188174['focusableElements']);for(const _0x414d07 of _0x188174[_0x5dd1('0x1a')])this[_0x5dd1('0x4')][_0x5dd1('0x11')](_0x414d07);return this[_0x5dd1('0x17')]['delete'](_0x188174['view']),this['_innerViewToAnnotation'][_0x5dd1('0xe')](_0x188174['innerView']),super[_0x5dd1('0x11')](_0x188174);}[_0x5dd1('0x8')](_0x9b813a){return this[_0x5dd1('0x19')][_0x5dd1('0x12')](_0x9b813a);}[_0x5dd1('0x20')](_0x237557){return this[_0x5dd1('0x17')]['get'](_0x237557);}[_0x5dd1('0xf')](){super[_0x5dd1('0x1c')](),this[_0x5dd1('0x15')](),this[_0x5dd1('0x19')][_0x5dd1('0x1c')](),this[_0x5dd1('0x17')][_0x5dd1('0x1c')](),this[_0x5dd1('0x4')][_0x5dd1('0xf')]();}[_0x5dd1('0x1f')](){for(const _0x5e4d69 of this)_0x5e4d69['updateTargetRect']();this['_sort']();}[_0x5dd1('0x13')](){const _0x3c100e=Array['from'](this)[_0x5dd1('0x5')]((_0x41c1d,_0x9739b3)=>v(_0x41c1d['view'][_0x5dd1('0xa')],_0x9739b3['view'][_0x5dd1('0xa')]));for(let _0x34cd46=_0x3c100e[_0x5dd1('0x9')]-0x1;_0x34cd46>0x0;_0x34cd46--){const _0x2455eb=_0x3c100e[_0x34cd46];_0x34cd46!==this[_0x5dd1('0x1d')](_0x2455eb)&&(this[_0x5dd1('0x11')](_0x2455eb),this[_0x5dd1('0x1b')](_0x2455eb));}}['_getOrderInContent'](_0x553bea){let _0x129b88=0x0;if(!_0x553bea)return this[_0x5dd1('0x9')];for(const _0x20b07d of this){const _0x53fbf2=_0x20b07d['view']['targetRect'];if(_0x53fbf2){if(v(_0x553bea,_0x53fbf2)<0x0)return _0x129b88;_0x129b88++;}}return _0x129b88;}}export function bindAnnotationCollections({source:_0x2e96ed,target:_0xbc3eb0,filter:_0x22fff4}){for(const _0x191dab of _0x2e96ed)_0x22fff4(_0x191dab)&&_0xbc3eb0['add'](_0x191dab);_0xbc3eb0[_0x5dd1('0xb')](_0x2e96ed,_0x5dd1('0x1b'),(_0x53e138,_0x393753)=>{_0x22fff4(_0x393753)&&_0xbc3eb0['add'](_0x393753);}),_0xbc3eb0[_0x5dd1('0xb')](_0x2e96ed,_0x5dd1('0x11'),(_0x209f2b,_0x3b59e9)=>{_0xbc3eb0['has'](_0x3b59e9)&&_0xbc3eb0['remove'](_0x3b59e9);});}function v(_0x1b2599,_0xc3d29a){if(null===_0x1b2599&&null===_0xc3d29a)return 0x0;if(null===_0x1b2599)return-0x1;if(null===_0xc3d29a)return 0x1;const _0x3c3ebd=_0x1b2599['top']-_0xc3d29a['top'];return 0x0==_0x3c3ebd?_0x1b2599[_0x5dd1('0x16')]-_0xc3d29a[_0x5dd1('0x16')]:_0x3c3ebd;}
23
+ const _0xdc3b=['_getOrderInContent','left','targetRect','length','has','getIndex','listenTo','_focusTracker','focus','add','focusableElements','isFocused','updateTargetRect','remove','blur','top','clear','view','_sort','from','change:isFocused','get','stopListening','focusTracker','getByInnerView','_innerViewToAnnotation','delete','annotationcollection-duplicated-item','innerView','destroy','_viewToAnnotation','annotationcollection-not-existing-item','getByView'];(function(_0x5caf7b,_0xdc3bb){const _0x49d5f2=function(_0x89e853){while(--_0x89e853){_0x5caf7b['push'](_0x5caf7b['shift']());}};_0x49d5f2(++_0xdc3bb);}(_0xdc3b,0x1e9));const _0x49d5=function(_0x5caf7b,_0xdc3bb){_0x5caf7b=_0x5caf7b-0x0;let _0x49d5f2=_0xdc3b[_0x5caf7b];return _0x49d5f2;};import{CKEditorError as _0x405748,Collection as _0x1ea291,FocusTracker as _0x176c9d}from'ckeditor5/src/utils.js';export default class x extends _0x1ea291{constructor(_0x41c0fe=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x49d5('0x3')]=new Map(),this['_focusTracker']=new _0x176c9d(),this['_focusTracker']['on'](_0x49d5('0x1a'),(_0x2b4586,_0x162834,_0x9d2306)=>{_0x9d2306||this['fire'](_0x49d5('0x14'));});for(const _0x880b91 of _0x41c0fe)this[_0x49d5('0xf')](_0x880b91);}get[_0x49d5('0x11')](){return this['_focusTracker'][_0x49d5('0x11')];}['add'](_0x40b4ba){if(this[_0x49d5('0xa')](_0x40b4ba))throw new _0x405748(_0x49d5('0x0'),null);this[_0x49d5('0x1f')]['set'](_0x40b4ba[_0x49d5('0x1')],_0x40b4ba),this[_0x49d5('0x3')]['set'](_0x40b4ba[_0x49d5('0x17')],_0x40b4ba);for(const _0x452772 of _0x40b4ba['focusableElements'])this[_0x49d5('0xd')][_0x49d5('0xf')](_0x452772);this[_0x49d5('0xc')](_0x40b4ba['focusableElements'],'add',(_0x1893b1,_0x4703c4)=>{this[_0x49d5('0xd')]['add'](_0x4703c4);}),this[_0x49d5('0xc')](_0x40b4ba[_0x49d5('0x10')],'remove',(_0xf014de,_0x2ef76e)=>{this[_0x49d5('0xd')][_0x49d5('0x13')](_0x2ef76e);}),this['listenTo'](_0x40b4ba[_0x49d5('0x17')][_0x49d5('0x1d')],'change:isFocused',(_0x19bdc2,_0x22f06e,_0x28bfb9)=>{_0x28bfb9&&this['fire'](_0x49d5('0xe'),_0x40b4ba);}),_0x40b4ba[_0x49d5('0x12')]();const _0x2bc8d0=this[_0x49d5('0x6')](_0x40b4ba[_0x49d5('0x17')][_0x49d5('0x8')]);return super[_0x49d5('0xf')](_0x40b4ba,_0x2bc8d0);}['remove'](_0x50e83d){if(!this['has'](_0x50e83d))throw new _0x405748(_0x49d5('0x4'),null);this[_0x49d5('0x1c')](_0x50e83d[_0x49d5('0x17')][_0x49d5('0x1d')]),this[_0x49d5('0x1c')](_0x50e83d[_0x49d5('0x10')]);for(const _0x32bbe1 of _0x50e83d[_0x49d5('0x10')])this['_focusTracker'][_0x49d5('0x13')](_0x32bbe1);return this[_0x49d5('0x3')]['delete'](_0x50e83d['view']),this[_0x49d5('0x1f')][_0x49d5('0x20')](_0x50e83d[_0x49d5('0x1')]),super[_0x49d5('0x13')](_0x50e83d);}[_0x49d5('0x1e')](_0x256542){return this[_0x49d5('0x1f')][_0x49d5('0x1b')](_0x256542);}[_0x49d5('0x5')](_0x37b029){return this[_0x49d5('0x3')][_0x49d5('0x1b')](_0x37b029);}[_0x49d5('0x2')](){super[_0x49d5('0x16')](),this[_0x49d5('0x1c')](),this[_0x49d5('0x1f')][_0x49d5('0x16')](),this['_viewToAnnotation'][_0x49d5('0x16')](),this[_0x49d5('0xd')][_0x49d5('0x2')]();}['refreshPositioning'](){for(const _0x5c04ed of this)_0x5c04ed[_0x49d5('0x12')]();this['_sort']();}[_0x49d5('0x18')](){const _0x3d4dd3=Array[_0x49d5('0x19')](this)['sort']((_0x1af04c,_0x527b2b)=>v(_0x1af04c[_0x49d5('0x17')]['targetRect'],_0x527b2b['view'][_0x49d5('0x8')]));for(let _0x440864=_0x3d4dd3[_0x49d5('0x9')]-0x1;_0x440864>0x0;_0x440864--){const _0x2bbd05=_0x3d4dd3[_0x440864];_0x440864!==this[_0x49d5('0xb')](_0x2bbd05)&&(this[_0x49d5('0x13')](_0x2bbd05),this[_0x49d5('0xf')](_0x2bbd05));}}[_0x49d5('0x6')](_0x4ab1e8){let _0x1c6eb4=0x0;if(!_0x4ab1e8)return this[_0x49d5('0x9')];for(const _0xedf8d3 of this){const _0x56688d=_0xedf8d3[_0x49d5('0x17')][_0x49d5('0x8')];if(_0x56688d){if(v(_0x4ab1e8,_0x56688d)<0x0)return _0x1c6eb4;_0x1c6eb4++;}}return _0x1c6eb4;}}export function bindAnnotationCollections({source:_0x591b02,target:_0x5a9307,filter:_0x14eeab}){for(const _0x2ba8c4 of _0x591b02)_0x14eeab(_0x2ba8c4)&&_0x5a9307[_0x49d5('0xf')](_0x2ba8c4);_0x5a9307[_0x49d5('0xc')](_0x591b02,'add',(_0x5b1a40,_0x39196a)=>{_0x14eeab(_0x39196a)&&_0x5a9307[_0x49d5('0xf')](_0x39196a);}),_0x5a9307[_0x49d5('0xc')](_0x591b02,_0x49d5('0x13'),(_0x575afc,_0x5c4d54)=>{_0x5a9307[_0x49d5('0xa')](_0x5c4d54)&&_0x5a9307[_0x49d5('0x13')](_0x5c4d54);});}function v(_0x7557e4,_0x57f1aa){if(null===_0x7557e4&&null===_0x57f1aa)return 0x0;if(null===_0x7557e4)return-0x1;if(null===_0x57f1aa)return 0x1;const _0x22386d=_0x7557e4[_0x49d5('0x15')]-_0x57f1aa[_0x49d5('0x15')];return 0x0==_0x22386d?_0x7557e4['left']-_0x57f1aa[_0x49d5('0x7')]:_0x22386d;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5709=['deactivateAll','_deactivateAllAnnotations','Annotations','has','collection','pluginName','destroy','delete','getByInnerView','isVisible','activeAnnotations','add','view','element','createAnnotation','_removeActiveAnnotation','focusTracker','_bindAnnotationsToVisibleAnnotations','listenTo','_addActiveAnnotation','remove','set','refreshVisibility','_activateAnnotation','refreshPositioning','_visibleAnnotations','fire'];(function(_0x13c037,_0x5709ba){const _0x1f1b7d=function(_0x44b138){while(--_0x44b138){_0x13c037['push'](_0x13c037['shift']());}};_0x1f1b7d(++_0x5709ba);}(_0x5709,0xb7));const _0x1f1b=function(_0x13c037,_0x5709ba){_0x13c037=_0x13c037-0x0;let _0x1f1b7d=_0x5709[_0x13c037];return _0x1f1b7d;};import{ContextPlugin as _0x245186}from'ckeditor5/src/core.js';import _0x223819 from'./annotation.js';import _0x348de3 from'./annotationcollection.js';import _0x3439e1 from'./view/annotationview.js';export default class b extends _0x245186{static get[_0x1f1b('0xb')](){return _0x1f1b('0x8');}constructor(_0x333248){super(_0x333248),this[_0x1f1b('0xa')]=new _0x348de3(),this[_0x1f1b('0x4')]=new _0x348de3(),this[_0x1f1b('0x0')](_0x1f1b('0x10'),new Set()),this[_0x1f1b('0x17')]();}[_0x1f1b('0x11')](_0x29c57d){this[_0x1f1b('0xa')][_0x1f1b('0x11')](_0x29c57d);}[_0x1f1b('0x1a')](_0x21e6b0){this[_0x1f1b('0xa')][_0x1f1b('0x1a')](_0x21e6b0),_0x21e6b0[_0x1f1b('0xc')]();}[_0x1f1b('0x1')](){for(const _0x35d45c of this['collection'])_0x35d45c[_0x1f1b('0x1')]();}[_0x1f1b('0x3')](){this[_0x1f1b('0x4')]['refreshPositioning']();}['getByInnerView'](_0x2e3c9c){return this[_0x1f1b('0xa')][_0x1f1b('0xe')](_0x2e3c9c);}[_0x1f1b('0x6')](){this[_0x1f1b('0x5')](_0x1f1b('0x7'));}[_0x1f1b('0xc')](){for(const _0x1de3e0 of this[_0x1f1b('0xa')])_0x1de3e0[_0x1f1b('0xc')]();this[_0x1f1b('0x4')][_0x1f1b('0xc')](),this['collection'][_0x1f1b('0xc')](),super[_0x1f1b('0xc')]();}['activate'](_0x45e47b){this[_0x1f1b('0x5')](_0x1f1b('0x2'),_0x45e47b);}[_0x1f1b('0x14')](_0xb7645b){return new _0x223819(_0xb7645b);}['createAnnotationView'](_0x4e9dc7,_0x400e76){return new _0x3439e1(_0x4e9dc7,_0x400e76);}[_0x1f1b('0x19')](_0x1a5099){const _0x58727a=new Set(this['activeAnnotations']);_0x58727a['add'](_0x1a5099),this['activeAnnotations']=_0x58727a;}[_0x1f1b('0x15')](_0x2fdb8c){const _0x1a5de0=new Set(this['activeAnnotations']);_0x1a5de0[_0x1f1b('0xd')](_0x2fdb8c),this['activeAnnotations']=_0x1a5de0;}[_0x1f1b('0x17')](){const _0x1da500=this[_0x1f1b('0xa')],_0x18d74f=this[_0x1f1b('0x4')];function _0xc8c579(_0x530b3b){const _0x398a7e=_0x530b3b['source'];_0x398a7e['isVisible']&&!_0x18d74f['has'](_0x398a7e)?_0x18d74f[_0x1f1b('0x11')](_0x398a7e):!_0x398a7e['isVisible']&&_0x18d74f[_0x1f1b('0x9')](_0x398a7e)&&_0x18d74f['remove'](_0x398a7e),_0x398a7e[_0x1f1b('0x12')][_0x1f1b('0x16')][_0x1f1b('0x1a')](_0x398a7e[_0x1f1b('0x12')]['element']),_0x398a7e[_0x1f1b('0x12')][_0x1f1b('0x16')]['add'](_0x398a7e[_0x1f1b('0x12')][_0x1f1b('0x13')]);}this[_0x1f1b('0x18')](_0x1da500,_0x1f1b('0x11'),(_0x353ccb,_0x57c744)=>{_0x57c744[_0x1f1b('0xf')]&&_0x18d74f[_0x1f1b('0x11')](_0x57c744),this['listenTo'](_0x57c744,'change:isVisible',_0xc8c579);}),this['listenTo'](_0x1da500,'remove',(_0x7cabad,_0x5a2b75)=>{_0x18d74f[_0x1f1b('0x9')](_0x5a2b75)&&_0x18d74f[_0x1f1b('0x1a')](_0x5a2b75),this['stopListening'](_0x5a2b75,'change:isVisible',_0xc8c579);});}}
23
+ const _0x4c3a=['_addActiveAnnotation','_visibleAnnotations','createAnnotationView','collection','deactivateAll','element','pluginName','destroy','has','isVisible','_bindAnnotationsToVisibleAnnotations','refreshPositioning','focusTracker','stopListening','listenTo','change:isVisible','_activateAnnotation','add','fire','_removeActiveAnnotation','getByInnerView','activate','Annotations','delete','view','remove','activeAnnotations','_deactivateAllAnnotations','refreshVisibility'];(function(_0x150a82,_0x4c3abb){const _0x598032=function(_0x237905){while(--_0x237905){_0x150a82['push'](_0x150a82['shift']());}};_0x598032(++_0x4c3abb);}(_0x4c3a,0xbc));const _0x5980=function(_0x150a82,_0x4c3abb){_0x150a82=_0x150a82-0x0;let _0x598032=_0x4c3a[_0x150a82];return _0x598032;};import{ContextPlugin as _0xc2e6f6}from'ckeditor5/src/core.js';import _0x2288d8 from'./annotation.js';import _0x4190b6 from'./annotationcollection.js';import _0xfe443e from'./view/annotationview.js';export default class b extends _0xc2e6f6{static get[_0x5980('0x15')](){return _0x5980('0x8');}constructor(_0x17f95e){super(_0x17f95e),this[_0x5980('0x12')]=new _0x4190b6(),this['_visibleAnnotations']=new _0x4190b6(),this['set']('activeAnnotations',new Set()),this[_0x5980('0x19')]();}[_0x5980('0x3')](_0x26e1cf){this[_0x5980('0x12')][_0x5980('0x3')](_0x26e1cf);}[_0x5980('0xb')](_0x1fa3a6){this[_0x5980('0x12')][_0x5980('0xb')](_0x1fa3a6),_0x1fa3a6['destroy']();}[_0x5980('0xe')](){for(const _0x16572f of this[_0x5980('0x12')])_0x16572f[_0x5980('0xe')]();}['refreshPositioning'](){this[_0x5980('0x10')][_0x5980('0x1a')]();}[_0x5980('0x6')](_0x22d82b){return this['collection'][_0x5980('0x6')](_0x22d82b);}[_0x5980('0x13')](){this[_0x5980('0x4')](_0x5980('0xd'));}['destroy'](){for(const _0x3fdaad of this['collection'])_0x3fdaad[_0x5980('0x16')]();this[_0x5980('0x10')][_0x5980('0x16')](),this[_0x5980('0x12')]['destroy'](),super[_0x5980('0x16')]();}[_0x5980('0x7')](_0x1ebaea){this['fire'](_0x5980('0x2'),_0x1ebaea);}['createAnnotation'](_0xd7bcf){return new _0x2288d8(_0xd7bcf);}[_0x5980('0x11')](_0x1c5166,_0x58b4a2){return new _0xfe443e(_0x1c5166,_0x58b4a2);}[_0x5980('0xf')](_0x389470){const _0x1a9c6d=new Set(this[_0x5980('0xc')]);_0x1a9c6d[_0x5980('0x3')](_0x389470),this['activeAnnotations']=_0x1a9c6d;}[_0x5980('0x5')](_0x3d95f9){const _0x5a82cb=new Set(this[_0x5980('0xc')]);_0x5a82cb[_0x5980('0x9')](_0x3d95f9),this[_0x5980('0xc')]=_0x5a82cb;}[_0x5980('0x19')](){const _0x315093=this[_0x5980('0x12')],_0x2da959=this[_0x5980('0x10')];function _0x4e6985(_0x168283){const _0x13693b=_0x168283['source'];_0x13693b[_0x5980('0x18')]&&!_0x2da959[_0x5980('0x17')](_0x13693b)?_0x2da959[_0x5980('0x3')](_0x13693b):!_0x13693b[_0x5980('0x18')]&&_0x2da959[_0x5980('0x17')](_0x13693b)&&_0x2da959[_0x5980('0xb')](_0x13693b),_0x13693b[_0x5980('0xa')][_0x5980('0x1b')][_0x5980('0xb')](_0x13693b['view'][_0x5980('0x14')]),_0x13693b[_0x5980('0xa')][_0x5980('0x1b')]['add'](_0x13693b['view']['element']);}this[_0x5980('0x0')](_0x315093,'add',(_0x21a805,_0x1813e2)=>{_0x1813e2['isVisible']&&_0x2da959[_0x5980('0x3')](_0x1813e2),this['listenTo'](_0x1813e2,'change:isVisible',_0x4e6985);}),this['listenTo'](_0x315093,_0x5980('0xb'),(_0x6a8751,_0x19ee84)=>{_0x2da959[_0x5980('0x17')](_0x19ee84)&&_0x2da959[_0x5980('0xb')](_0x19ee84),this[_0x5980('0x1c')](_0x19ee84,_0x5980('0x1'),_0x4e6985);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5eaf=['deactivateAll','size','add','init','_visibleAnnotations','collection','_deactivateAllAnnotations','remove','filter','activate','function','set','type','register','AnnotationsUIs','length','requires','switchTo','_assertAnnotationDoesNotBelongToMultipleUIs','listenTo','isActive','annotationsuis-annotation-mismatch','annotationsuis-register-already-registered','change:activeAnnotation','plugins','setActiveAnnotation','activeAnnotations','from','hasActive','context','find','get','detach','_uisData','has','delete','annotationsuis-missing-ui','_setSelectedAnnotations','activeUIs','push','destroy','stopListening','deactivate','pluginName','attach','refilterAnnotations','annotationsuis-register-invalid-interface','_uis'];(function(_0x592b19,_0x5eafca){const _0x4c581d=function(_0x360e2a){while(--_0x360e2a){_0x592b19['push'](_0x592b19['shift']());}};_0x4c581d(++_0x5eafca);}(_0x5eaf,0x1da));const _0x4c58=function(_0x592b19,_0x5eafca){_0x592b19=_0x592b19-0x0;let _0x4c581d=_0x5eaf[_0x592b19];return _0x4c581d;};import{ContextPlugin as _0x288f02}from'ckeditor5/src/core.js';import{CKEditorError as _0x3c3ec4}from'ckeditor5/src/utils.js';import _0x4ab0b9,{bindAnnotationCollections as _0xa6206e}from'./annotationcollection.js';import _0x4b3f1f from'./annotations.js';export default class j extends _0x288f02{static get[_0x4c58('0x16')](){return[_0x4b3f1f];}static get[_0x4c58('0x1')](){return _0x4c58('0x14');}constructor(_0x406762){super(_0x406762),this[_0x4c58('0x2c')]=new Set(),this[_0x4c58('0x5')]=new Map(),this['_uisData']=new Map();}[_0x4c58('0x9')](){const _0x4202b4=this[_0x4c58('0x23')]['plugins'][_0x4c58('0x25')](_0x4b3f1f);this['listenTo'](_0x4202b4,'_activateAnnotation',(_0x5b98b9,_0x43f6c7)=>{for(const _0x1b0dcf of this[_0x4c58('0x2c')]){const _0xa8dcd5=this[_0x4c58('0x5')][_0x4c58('0x25')](_0x1b0dcf);(0x0,this['_uisData'][_0x4c58('0x25')](_0x1b0dcf)[_0x4c58('0xe')])(_0x43f6c7)&&_0xa8dcd5[_0x4c58('0x1f')](_0x43f6c7);}}),this[_0x4c58('0x19')](_0x4202b4,_0x4c58('0xc'),()=>{for(const _0x14e9a4 of this['activeUIs']){this[_0x4c58('0x5')]['get'](_0x14e9a4)['setActiveAnnotation'](null);}}),this[_0x4c58('0x19')](_0x4202b4['_visibleAnnotations'],_0x4c58('0x8'),(_0xcc4046,_0x5281c7)=>{this[_0x4c58('0x18')](_0x5281c7);});}[_0x4c58('0x22')](){return this['activeUIs'][_0x4c58('0x7')]>0x0;}['isActive'](_0x3ac55c){return this[_0x4c58('0x2c')][_0x4c58('0x28')](_0x3ac55c);}[_0x4c58('0xf')](_0x136faa,_0xe0c18d=()=>!0x0){const _0x4f6fce=this[_0x4c58('0x23')][_0x4c58('0x1e')][_0x4c58('0x25')](_0x4b3f1f);if(!this[_0x4c58('0x5')][_0x4c58('0x28')](_0x136faa))throw new _0x3c3ec4(_0x4c58('0x2a'),this,{'uiName':_0x136faa});this[_0x4c58('0x1a')](_0x136faa)&&this[_0x4c58('0x0')](_0x136faa),this[_0x4c58('0x2c')]['add'](_0x136faa);const _0xd54349=new _0x4ab0b9(),_0x532527=_0x4f6fce[_0x4c58('0xa')];_0xa6206e({'source':_0x532527,'target':_0xd54349,'filter':_0xe0c18d}),this[_0x4c58('0x27')][_0x4c58('0x11')](_0x136faa,{'collection':_0xd54349,'filter':_0xe0c18d});const _0x4cb4cd=this[_0x4c58('0x5')]['get'](_0x136faa);_0x4cb4cd['attach'](_0xd54349),this[_0x4c58('0x19')](_0x4cb4cd,_0x4c58('0x1d'),(_0x35d608,_0x49ee97,_0xb721eb,_0x51c5ca)=>{_0x51c5ca&&_0x4f6fce['_removeActiveAnnotation'](_0x51c5ca),_0xb721eb&&_0x4f6fce['_addActiveAnnotation'](_0xb721eb);});}[_0x4c58('0x0')](_0x3e9a9f){if(this['activeUIs'][_0x4c58('0x29')](_0x3e9a9f),!this[_0x4c58('0x5')][_0x4c58('0x28')](_0x3e9a9f))throw new _0x3c3ec4(_0x4c58('0x2a'),this,{'uiName':_0x3e9a9f});const _0x528e5e=this[_0x4c58('0x5')][_0x4c58('0x25')](_0x3e9a9f);_0x528e5e[_0x4c58('0x26')](),this[_0x4c58('0x2f')](_0x528e5e),this[_0x4c58('0x27')][_0x4c58('0x25')](_0x3e9a9f)[_0x4c58('0xb')]['destroy'](),this[_0x4c58('0x27')][_0x4c58('0x29')](_0x3e9a9f);}[_0x4c58('0x17')](_0x4c89ad){if(!this[_0x4c58('0x5')][_0x4c58('0x28')](_0x4c89ad))throw new _0x3c3ec4(_0x4c58('0x2a'),this,{'uiName':_0x4c89ad});const _0x303612=this[_0x4c58('0x23')][_0x4c58('0x1e')][_0x4c58('0x25')](_0x4b3f1f),_0x3f584f=Array['from'](_0x303612[_0x4c58('0x20')])[0x0]||null;this[_0x4c58('0x6')](),this['activate'](_0x4c89ad);const _0x41e7f0=this['_uis']['get'](_0x4c89ad);_0x41e7f0[_0x4c58('0x1f')](_0x3f584f),_0x41e7f0[_0x4c58('0x2b')]&&_0x3f584f&&_0x41e7f0[_0x4c58('0x2b')]([_0x3f584f]);}[_0x4c58('0x6')](){for(const _0xe51efe of this[_0x4c58('0x2c')])this[_0x4c58('0x0')](_0xe51efe);}[_0x4c58('0x13')](_0x50321b,_0x4f30d4){if(this['_uis'][_0x4c58('0x28')](_0x50321b))throw new _0x3c3ec4(_0x4c58('0x1c'));if(_0x4c58('0x10')!=typeof _0x4f30d4[_0x4c58('0x2')]||_0x4c58('0x10')!=typeof _0x4f30d4[_0x4c58('0x26')]||_0x4c58('0x10')!=typeof _0x4f30d4['setActiveAnnotation'])throw new _0x3c3ec4(_0x4c58('0x4'),null);this[_0x4c58('0x5')][_0x4c58('0x11')](_0x50321b,_0x4f30d4);}[_0x4c58('0x3')](){const _0x117b9c=this[_0x4c58('0x23')][_0x4c58('0x1e')][_0x4c58('0x25')](_0x4b3f1f)[_0x4c58('0xb')],_0x71d036=new Map(),_0x1173f0=Array[_0x4c58('0x21')](this[_0x4c58('0x2c')]);for(const _0xffe4e4 of this['activeUIs']){const _0xf59190=this[_0x4c58('0x27')][_0x4c58('0x25')](_0xffe4e4)['collection'];for(const _0x37917f of _0xf59190)_0x71d036[_0x4c58('0x11')](_0x37917f,_0xffe4e4);}for(const _0x392d2c of _0x117b9c){const _0x2513da=_0x71d036['get'](_0x392d2c);this[_0x4c58('0x18')](_0x392d2c);const _0x535e86=_0x1173f0[_0x4c58('0x24')](_0x514f3c=>this[_0x4c58('0x27')][_0x4c58('0x25')](_0x514f3c)[_0x4c58('0xe')](_0x392d2c));_0x2513da!==_0x535e86&&(_0x2513da&&this['_uisData']['get'](_0x2513da)['collection'][_0x4c58('0xd')](_0x392d2c),_0x535e86&&this[_0x4c58('0x27')][_0x4c58('0x25')](_0x535e86)[_0x4c58('0xb')][_0x4c58('0x8')](_0x392d2c));}}[_0x4c58('0x2e')](){this[_0x4c58('0x6')](),super[_0x4c58('0x2e')]();}[_0x4c58('0x18')](_0x55d565){const _0xbe537=[];for(const _0x35d9a2 of this[_0x4c58('0x2c')]){(0x0,this[_0x4c58('0x27')][_0x4c58('0x25')](_0x35d9a2)['filter'])(_0x55d565)&&_0xbe537[_0x4c58('0x2d')](_0x35d9a2);}if(_0xbe537[_0x4c58('0x15')]>0x1)throw new _0x3c3ec4(_0x4c58('0x1b'),null,{'matchedUIs':_0xbe537,'annotationType':_0x55d565[_0x4c58('0x12')]});}}
23
+ const _0x39ef=['_removeActiveAnnotation','isActive','_activateAnnotation','has','_assertAnnotationDoesNotBelongToMultipleUIs','annotationsuis-missing-ui','context','setActiveAnnotation','delete','activeAnnotations','AnnotationsUIs','function','annotationsuis-register-invalid-interface','stopListening','activeUIs','register','refilterAnnotations','annotationsuis-register-already-registered','activate','set','annotationsuis-annotation-mismatch','collection','size','plugins','_setSelectedAnnotations','deactivate','get','filter','init','detach','destroy','_deactivateAllAnnotations','listenTo','attach','pluginName','type','_addActiveAnnotation','find','requires','_uis','add','hasActive','deactivateAll','_visibleAnnotations','_uisData','from'];(function(_0x15b68e,_0x39efc6){const _0x278735=function(_0x45b84c){while(--_0x45b84c){_0x15b68e['push'](_0x15b68e['shift']());}};_0x278735(++_0x39efc6);}(_0x39ef,0xbf));const _0x2787=function(_0x15b68e,_0x39efc6){_0x15b68e=_0x15b68e-0x0;let _0x278735=_0x39ef[_0x15b68e];return _0x278735;};import{ContextPlugin as _0x50f921}from'ckeditor5/src/core.js';import{CKEditorError as _0x13a79f}from'ckeditor5/src/utils.js';import _0x3836fb,{bindAnnotationCollections as _0x2a9c64}from'./annotationcollection.js';import _0x1922b9 from'./annotations.js';export default class j extends _0x50f921{static get[_0x2787('0x1f')](){return[_0x1922b9];}static get[_0x2787('0x1b')](){return _0x2787('0x3');}constructor(_0x172e4a){super(_0x172e4a),this[_0x2787('0x7')]=new Set(),this[_0x2787('0x20')]=new Map(),this['_uisData']=new Map();}[_0x2787('0x15')](){const _0x2ff897=this[_0x2787('0x2d')][_0x2787('0x10')][_0x2787('0x13')](_0x1922b9);this[_0x2787('0x19')](_0x2ff897,_0x2787('0x29'),(_0x44b0d9,_0x3a8d55)=>{for(const _0x367433 of this['activeUIs']){const _0x5389d9=this[_0x2787('0x20')]['get'](_0x367433);(0x0,this['_uisData'][_0x2787('0x13')](_0x367433)[_0x2787('0x14')])(_0x3a8d55)&&_0x5389d9['setActiveAnnotation'](_0x3a8d55);}}),this['listenTo'](_0x2ff897,_0x2787('0x18'),()=>{for(const _0x11c411 of this[_0x2787('0x7')]){this[_0x2787('0x20')][_0x2787('0x13')](_0x11c411)[_0x2787('0x0')](null);}}),this[_0x2787('0x19')](_0x2ff897[_0x2787('0x24')],_0x2787('0x21'),(_0x2f3495,_0x47ea80)=>{this[_0x2787('0x2b')](_0x47ea80);});}[_0x2787('0x22')](){return this[_0x2787('0x7')][_0x2787('0xf')]>0x0;}[_0x2787('0x28')](_0x3b4b3c){return this[_0x2787('0x7')][_0x2787('0x2a')](_0x3b4b3c);}[_0x2787('0xb')](_0x16ad93,_0x33150f=()=>!0x0){const _0x160ec1=this[_0x2787('0x2d')][_0x2787('0x10')]['get'](_0x1922b9);if(!this['_uis'][_0x2787('0x2a')](_0x16ad93))throw new _0x13a79f(_0x2787('0x2c'),this,{'uiName':_0x16ad93});this[_0x2787('0x28')](_0x16ad93)&&this[_0x2787('0x12')](_0x16ad93),this[_0x2787('0x7')][_0x2787('0x21')](_0x16ad93);const _0x33576e=new _0x3836fb(),_0x6a86d2=_0x160ec1[_0x2787('0x24')];_0x2a9c64({'source':_0x6a86d2,'target':_0x33576e,'filter':_0x33150f}),this[_0x2787('0x25')][_0x2787('0xc')](_0x16ad93,{'collection':_0x33576e,'filter':_0x33150f});const _0x5f3ed0=this[_0x2787('0x20')][_0x2787('0x13')](_0x16ad93);_0x5f3ed0['attach'](_0x33576e),this[_0x2787('0x19')](_0x5f3ed0,'change:activeAnnotation',(_0x46379b,_0x288d91,_0x483bd3,_0x519921)=>{_0x519921&&_0x160ec1[_0x2787('0x27')](_0x519921),_0x483bd3&&_0x160ec1[_0x2787('0x1d')](_0x483bd3);});}['deactivate'](_0x1ff85a){if(this[_0x2787('0x7')][_0x2787('0x1')](_0x1ff85a),!this[_0x2787('0x20')]['has'](_0x1ff85a))throw new _0x13a79f(_0x2787('0x2c'),this,{'uiName':_0x1ff85a});const _0x53e769=this[_0x2787('0x20')]['get'](_0x1ff85a);_0x53e769[_0x2787('0x16')](),this[_0x2787('0x6')](_0x53e769),this['_uisData']['get'](_0x1ff85a)[_0x2787('0xe')][_0x2787('0x17')](),this['_uisData'][_0x2787('0x1')](_0x1ff85a);}['switchTo'](_0x2b6f2e){if(!this['_uis'][_0x2787('0x2a')](_0x2b6f2e))throw new _0x13a79f(_0x2787('0x2c'),this,{'uiName':_0x2b6f2e});const _0x3f5a66=this['context'][_0x2787('0x10')][_0x2787('0x13')](_0x1922b9),_0x2b90d5=Array[_0x2787('0x26')](_0x3f5a66[_0x2787('0x2')])[0x0]||null;this['deactivateAll'](),this[_0x2787('0xb')](_0x2b6f2e);const _0x165439=this['_uis'][_0x2787('0x13')](_0x2b6f2e);_0x165439['setActiveAnnotation'](_0x2b90d5),_0x165439[_0x2787('0x11')]&&_0x2b90d5&&_0x165439[_0x2787('0x11')]([_0x2b90d5]);}[_0x2787('0x23')](){for(const _0x1c9324 of this[_0x2787('0x7')])this[_0x2787('0x12')](_0x1c9324);}[_0x2787('0x8')](_0x29ca6f,_0x3b7714){if(this[_0x2787('0x20')][_0x2787('0x2a')](_0x29ca6f))throw new _0x13a79f(_0x2787('0xa'));if(_0x2787('0x4')!=typeof _0x3b7714[_0x2787('0x1a')]||_0x2787('0x4')!=typeof _0x3b7714[_0x2787('0x16')]||_0x2787('0x4')!=typeof _0x3b7714[_0x2787('0x0')])throw new _0x13a79f(_0x2787('0x5'),null);this[_0x2787('0x20')][_0x2787('0xc')](_0x29ca6f,_0x3b7714);}[_0x2787('0x9')](){const _0x2f79c1=this[_0x2787('0x2d')]['plugins']['get'](_0x1922b9)[_0x2787('0xe')],_0x2b220c=new Map(),_0x45c8ad=Array['from'](this['activeUIs']);for(const _0x59ca41 of this[_0x2787('0x7')]){const _0x2afaed=this['_uisData'][_0x2787('0x13')](_0x59ca41)['collection'];for(const _0x152aa9 of _0x2afaed)_0x2b220c[_0x2787('0xc')](_0x152aa9,_0x59ca41);}for(const _0x35d3eb of _0x2f79c1){const _0x1e7317=_0x2b220c[_0x2787('0x13')](_0x35d3eb);this[_0x2787('0x2b')](_0x35d3eb);const _0x4c088c=_0x45c8ad[_0x2787('0x1e')](_0x1c19fc=>this['_uisData'][_0x2787('0x13')](_0x1c19fc)[_0x2787('0x14')](_0x35d3eb));_0x1e7317!==_0x4c088c&&(_0x1e7317&&this[_0x2787('0x25')][_0x2787('0x13')](_0x1e7317)[_0x2787('0xe')]['remove'](_0x35d3eb),_0x4c088c&&this[_0x2787('0x25')]['get'](_0x4c088c)[_0x2787('0xe')]['add'](_0x35d3eb));}}[_0x2787('0x17')](){this[_0x2787('0x23')](),super[_0x2787('0x17')]();}[_0x2787('0x2b')](_0xff4bab){const _0x408abc=[];for(const _0x431e09 of this[_0x2787('0x7')]){(0x0,this[_0x2787('0x25')][_0x2787('0x13')](_0x431e09)['filter'])(_0xff4bab)&&_0x408abc['push'](_0x431e09);}if(_0x408abc['length']>0x1)throw new _0x13a79f(_0x2787('0xd'),null,{'matchedUIs':_0x408abc,'annotationType':_0xff4bab[_0x2787('0x1c')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2887=['annotation','push','focusTracker','getOrderedSelectedAnnotations','containsRange','set','collection','EditorAnnotations','has','editorannotations-invalid-source-callback','getRanges','pluginName','_dataCollectors','map','range','editing','registerAnnotation','view','isCollapsed','uiUpdate','addSourceCollector','cancel','change:range','blur','add','document','model','hasDomSelection','delete','fire','refreshSelectedViews','_editorAnnotationsData','listenTo','editor','change:isFocused','update','plugins','from','get','selection','_editorAnnotations','element','refresh','isEqual'];(function(_0x48741b,_0x28870d){const _0x250c46=function(_0x54a774){while(--_0x54a774){_0x48741b['push'](_0x48741b['shift']());}};_0x250c46(++_0x28870d);}(_0x2887,0x77));const _0x250c=function(_0x48741b,_0x28870d){_0x48741b=_0x48741b-0x0;let _0x250c46=_0x2887[_0x48741b];return _0x250c46;};import{Plugin as _0x328a58}from'ckeditor5/src/core.js';import{CKEditorError as _0x5ab214}from'ckeditor5/src/utils.js';import{debounce as _0x3f6625}from'lodash-es';import _0x829680 from'./annotations.js';export default class k extends _0x328a58{static get['requires'](){return[_0x829680];}static get[_0x250c('0x18')](){return _0x250c('0x14');}constructor(_0x3be65a){super(_0x3be65a),this[_0x250c('0x19')]=new Set(),this[_0x250c('0x9')]=new Set();}['init'](){const _0x552879=this[_0x250c('0x2')],_0x355dfb=_0x552879[_0x250c('0x27')]['document']['selection'],_0x4792c5=_0x3f6625(()=>this[_0x250c('0x2b')](),0xa);_0x355dfb['on'](_0x250c('0x23'),(_0x192379,_0x344706)=>{_0x344706['directChange']&&(_0x4792c5[_0x250c('0x22')](),this['refreshSelectedViews']());}),this['listenTo'](_0x552879[_0x250c('0x1c')][_0x250c('0x1e')][_0x250c('0x26')],_0x250c('0x3'),(_0x3a53a0,_0xbdb616,_0x5f09b4)=>{_0x5f09b4&&_0x4792c5();}),this['listenTo'](_0x552879['ui']['focusTracker'],_0x250c('0x3'),(_0x27ceb5,_0x19a8da,_0x4e1c53)=>{_0x4e1c53||_0x552879['isReadOnly']||this[_0x250c('0x2a')](_0x250c('0x24'),{'isAnnotationTracked':_0x4b6481=>this[_0x250c('0x0')][_0x250c('0x15')](_0x4b6481['innerView'])});}),this['listenTo'](this[_0x250c('0x2')]['ui'],_0x250c('0x4'),()=>this[_0x250c('0x2a')](_0x250c('0x20')));}[_0x250c('0x1d')](_0x125be3){if(this[_0x250c('0x9')]['has'](_0x125be3[_0x250c('0x1e')]))return;this[_0x250c('0x9')][_0x250c('0x25')](_0x125be3[_0x250c('0x1e')]),this[_0x250c('0x2')]['ui']['focusTracker'][_0x250c('0x25')](_0x125be3[_0x250c('0x1e')][_0x250c('0xa')]);const _0x4ae51a=this[_0x250c('0x2')][_0x250c('0x5')][_0x250c('0x7')](_0x829680);this[_0x250c('0x1')](_0x4ae51a[_0x250c('0x13')],'remove',(_0x1479ce,_0xa0ec2b)=>{this[_0x250c('0x2')]['ui'][_0x250c('0xf')]['remove'](_0xa0ec2b['view'][_0x250c('0xa')]),this['_editorAnnotations'][_0x250c('0x29')](_0xa0ec2b['view']);});}[_0x250c('0x28')](){return this[_0x250c('0x2')][_0x250c('0x1c')]['view'][_0x250c('0x28')];}[_0x250c('0x21')](_0xa05e45){if('function'!=typeof _0xa05e45)throw new _0x5ab214(_0x250c('0x16'));this['_dataCollectors'][_0x250c('0x25')](_0xa05e45);}['refreshSelectedViews'](){this[_0x250c('0x2a')](_0x250c('0xb'));}[_0x250c('0x10')]({activeAnnotation:_0x1b8e36,annotations:_0x12f3ca}){const _0x3d9cbf=[],_0x590463=this[_0x250c('0x2')][_0x250c('0x27')][_0x250c('0x26')][_0x250c('0x8')],_0x4d89e3=Array[_0x250c('0x6')](_0x590463[_0x250c('0x17')]());for(const [_0x427309,_0x1d62a3]of this[_0x250c('0x0')]){const _0x1a009b=_0x1ee5c4(_0x1d62a3),_0x552e8b=_0x12f3ca['getByInnerView'](_0x427309);_0x1a009b&&_0x552e8b&&_0x3d9cbf[_0x250c('0xe')]({'annotation':_0x552e8b,'range':_0x1a009b});}function _0x1ee5c4(_0xa06366){for(const _0x58334f of _0xa06366)for(const _0xbcee98 of _0x4d89e3)if(_0x58334f[_0x250c('0x11')](_0xbcee98,!_0x590463[_0x250c('0x1f')]))return _0x58334f;return null;}return _0x3d9cbf['sort']((_0x5cee45,_0x3c90d9)=>{const _0x450316=_0x5cee45[_0x250c('0x1b')],_0x267931=_0x3c90d9[_0x250c('0x1b')];if(!_0x450316[_0x250c('0xc')](_0x267931)){if(_0x450316['containsRange'](_0x267931,!0x0))return 0x1;if(_0x267931[_0x250c('0x11')](_0x450316,!0x0))return-0x1;}return _0x5cee45[_0x250c('0xd')]==_0x1b8e36?-0x1:_0x3c90d9[_0x250c('0xd')]==_0x1b8e36?0x1:0x0;})[_0x250c('0x1a')](_0xd9f538=>_0xd9f538[_0x250c('0xd')]);}get['_editorAnnotationsData'](){const _0x562c11=new Map();for(const _0x4c84b2 of Array[_0x250c('0x6')](this['_dataCollectors']))for(const [_0x147e39,_0x3afc99]of _0x4c84b2())_0x562c11[_0x250c('0x12')](_0x147e39,_0x3afc99);return _0x562c11;}}
23
+ const _0x5760=['isReadOnly','pluginName','document','set','annotation','element','change:range','editor','refreshSelectedViews','registerAnnotation','innerView','listenTo','from','EditorAnnotations','collection','directChange','hasDomSelection','containsRange','isCollapsed','model','selection','_editorAnnotations','remove','isEqual','change:isFocused','cancel','range','get','getRanges','view','_dataCollectors','fire','add','getOrderedSelectedAnnotations','editing','_editorAnnotationsData','sort','addSourceCollector','getByInnerView','focusTracker','blur','function'];(function(_0x5e702a,_0x5760f1){const _0x1a3114=function(_0x1a6c38){while(--_0x1a6c38){_0x5e702a['push'](_0x5e702a['shift']());}};_0x1a3114(++_0x5760f1);}(_0x5760,0x1f1));const _0x1a31=function(_0x5e702a,_0x5760f1){_0x5e702a=_0x5e702a-0x0;let _0x1a3114=_0x5760[_0x5e702a];return _0x1a3114;};import{Plugin as _0x277ded}from'ckeditor5/src/core.js';import{CKEditorError as _0x55a2fd}from'ckeditor5/src/utils.js';import{debounce as _0x1c0da2}from'lodash-es';import _0x5895b4 from'./annotations.js';export default class k extends _0x277ded{static get['requires'](){return[_0x5895b4];}static get[_0x1a31('0x8')](){return _0x1a31('0x14');}constructor(_0x56dbd8){super(_0x56dbd8),this[_0x1a31('0x25')]=new Set(),this[_0x1a31('0x1c')]=new Set();}['init'](){const _0x46f310=this[_0x1a31('0xe')],_0x108f8b=_0x46f310['model'][_0x1a31('0x9')]['selection'],_0x399e65=_0x1c0da2(()=>this[_0x1a31('0xf')](),0xa);_0x108f8b['on'](_0x1a31('0xd'),(_0x1cbd59,_0x3669af)=>{_0x3669af[_0x1a31('0x16')]&&(_0x399e65[_0x1a31('0x20')](),this[_0x1a31('0xf')]());}),this[_0x1a31('0x12')](_0x46f310[_0x1a31('0x29')][_0x1a31('0x24')]['document'],_0x1a31('0x1f'),(_0x25f14b,_0x24a45c,_0x29f4c1)=>{_0x29f4c1&&_0x399e65();}),this[_0x1a31('0x12')](_0x46f310['ui'][_0x1a31('0x4')],_0x1a31('0x1f'),(_0x16cf1a,_0x5b97e1,_0x118fc7)=>{_0x118fc7||_0x46f310[_0x1a31('0x7')]||this[_0x1a31('0x26')](_0x1a31('0x5'),{'isAnnotationTracked':_0x28aba7=>this[_0x1a31('0x0')]['has'](_0x28aba7[_0x1a31('0x11')])});}),this[_0x1a31('0x12')](this['editor']['ui'],'update',()=>this[_0x1a31('0x26')]('uiUpdate'));}[_0x1a31('0x10')](_0x1a7d88){if(this[_0x1a31('0x1c')]['has'](_0x1a7d88['view']))return;this[_0x1a31('0x1c')][_0x1a31('0x27')](_0x1a7d88['view']),this[_0x1a31('0xe')]['ui'][_0x1a31('0x4')][_0x1a31('0x27')](_0x1a7d88[_0x1a31('0x24')][_0x1a31('0xc')]);const _0x7292d4=this[_0x1a31('0xe')]['plugins'][_0x1a31('0x22')](_0x5895b4);this[_0x1a31('0x12')](_0x7292d4[_0x1a31('0x15')],_0x1a31('0x1d'),(_0x3bb983,_0x3b54c5)=>{this[_0x1a31('0xe')]['ui'][_0x1a31('0x4')][_0x1a31('0x1d')](_0x3b54c5[_0x1a31('0x24')]['element']),this[_0x1a31('0x1c')]['delete'](_0x3b54c5[_0x1a31('0x24')]);});}[_0x1a31('0x17')](){return this['editor']['editing']['view'][_0x1a31('0x17')];}[_0x1a31('0x2')](_0xf0893a){if(_0x1a31('0x6')!=typeof _0xf0893a)throw new _0x55a2fd('editorannotations-invalid-source-callback');this[_0x1a31('0x25')][_0x1a31('0x27')](_0xf0893a);}[_0x1a31('0xf')](){this[_0x1a31('0x26')]('refresh');}[_0x1a31('0x28')]({activeAnnotation:_0x404bb1,annotations:_0x4242d3}){const _0x19d878=[],_0xb26ea7=this[_0x1a31('0xe')][_0x1a31('0x1a')][_0x1a31('0x9')][_0x1a31('0x1b')],_0x42822f=Array[_0x1a31('0x13')](_0xb26ea7[_0x1a31('0x23')]());for(const [_0x2aad27,_0x3bd602]of this[_0x1a31('0x0')]){const _0x1e4401=_0x3c1041(_0x3bd602),_0x1339da=_0x4242d3[_0x1a31('0x3')](_0x2aad27);_0x1e4401&&_0x1339da&&_0x19d878['push']({'annotation':_0x1339da,'range':_0x1e4401});}function _0x3c1041(_0x4562d9){for(const _0x16f6fe of _0x4562d9)for(const _0x539c6d of _0x42822f)if(_0x16f6fe[_0x1a31('0x18')](_0x539c6d,!_0xb26ea7[_0x1a31('0x19')]))return _0x16f6fe;return null;}return _0x19d878[_0x1a31('0x1')]((_0x35d7d5,_0xa4416e)=>{const _0x30ad3b=_0x35d7d5['range'],_0x3be39e=_0xa4416e[_0x1a31('0x21')];if(!_0x30ad3b[_0x1a31('0x1e')](_0x3be39e)){if(_0x30ad3b['containsRange'](_0x3be39e,!0x0))return 0x1;if(_0x3be39e['containsRange'](_0x30ad3b,!0x0))return-0x1;}return _0x35d7d5['annotation']==_0x404bb1?-0x1:_0xa4416e[_0x1a31('0xb')]==_0x404bb1?0x1:0x0;})['map'](_0x209feb=>_0x209feb[_0x1a31('0xb')]);}get[_0x1a31('0x0')](){const _0x3034c0=new Map();for(const _0x2fe729 of Array[_0x1a31('0x13')](this[_0x1a31('0x25')]))for(const [_0x332086,_0x250d61]of _0x2fe729())_0x3034c0[_0x1a31('0xa')](_0x332086,_0x250d61);return _0x3034c0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x23d0=['isFocused','editor','_closeAnnotation','map','_removeAnnotationFromBalloon','hasView','_selectedAnnotations','width','getByView','change:visibleView','push','fromRect','length','selection','inlineannotations-detach-not-attached','_balloon','get','find','InlineAnnotations','register','top','mousedown','delete','target','isActive','_forceRefresh','visibleView','_getBalloonTargetForAnnotation','setActiveAnnotation','viewRangeToDom','change:isFocused','editing','view','listenTo','requires','remove','annotations','plugins','clear','has','keystrokes','add','inline','getBoundingClientRect','context','document','isAttached','inlineannotations-attach-already-attached','destroy','from','includes','targetRect','bottom','getClientRects','stopListening','pluginName','_manuallyClosed','set','activeAnnotation','Esc','editableElement','focus','domConverter','right','_addAnnotationToBalloon','init','afterInit','updatePosition','detach','_setSelectedAnnotations','attach','inlineannotations-not-allowed-with-context','focusTracker','_addedAnnotations','getFirstRange','getOrderedSelectedAnnotations','left'];(function(_0x4c0289,_0x23d04a){const _0xd0356=function(_0xe90f23){while(--_0xe90f23){_0x4c0289['push'](_0x4c0289['shift']());}};_0xd0356(++_0x23d04a);}(_0x23d0,0x1a3));const _0xd035=function(_0x4c0289,_0x23d04a){_0x4c0289=_0x4c0289-0x0;let _0xd0356=_0x23d0[_0x4c0289];return _0xd0356;};import{Plugin as _0x39242c}from'ckeditor5/src/core.js';import _0x28910e from'./annotationsuis.js';import _0x2a225d from'./editorannotations.js';import{ContextualBalloon as _0x189eff}from'ckeditor5/src/ui.js';import{MouseObserver as _0x2af179}from'ckeditor5/src/engine.js';import{CKEditorError as _0x2cec68,Rect as _0x46c25b}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x39242c{static get[_0xd035('0x0')](){return[_0x2a225d,_0x189eff,_0x28910e];}static get[_0xd035('0x15')](){return _0xd035('0x3d');}constructor(_0x40d405){super(_0x40d405),_0x40d405[_0xd035('0x4a')]['view']['addObserver'](_0x2af179),this['isAttached']=!0x1,this['set'](_0xd035('0x18'),null),this[_0xd035('0x2')]=null,this[_0xd035('0x16')]=new Set(),this['_balloon']=_0x40d405['plugins']['get'](_0x189eff),this[_0xd035('0x27')]=new Set(),this[_0xd035('0x31')]=[],this[_0xd035('0x44')]=!0x1;}[_0xd035('0x1f')](){const _0x220497=this[_0xd035('0x2c')][_0xd035('0x3')]['get'](_0x28910e);_0x220497['context']===this[_0xd035('0x2c')]&&(_0x220497[_0xd035('0x3e')](_0xd035('0x8'),this),this[_0xd035('0x2c')][_0xd035('0x6')][_0xd035('0x17')](_0xd035('0x19'),(_0x2fe0bd,_0x151205)=>{const _0x29b531=this[_0xd035('0x3a')];if(this[_0xd035('0xc')]&&_0x29b531[_0xd035('0x45')]){const _0x465e6a=this[_0xd035('0x2')][_0xd035('0x33')](_0x29b531['visibleView']);_0x465e6a&&this['_closeAnnotation'](_0x465e6a),_0x151205();}}));}[_0xd035('0x20')](){const _0x29f551=this[_0xd035('0x2c')]['plugins'][_0xd035('0x3b')](_0x28910e);_0x29f551[_0xd035('0xa')]===this[_0xd035('0x2c')]&&(_0x29f551['hasActive']()||_0x29f551['switchTo'](_0xd035('0x8')));}['setActiveAnnotation'](_0x5308dc){_0x5308dc!==this[_0xd035('0x18')]&&(this['activeAnnotation']&&(this[_0xd035('0x18')][_0xd035('0x43')]=!0x1),_0x5308dc&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations'][_0xd035('0x5')](_0x5308dc)&&this[_0xd035('0x1e')](_0x5308dc,!0x0),_0x5308dc[_0xd035('0x43')]=!0x0),_0x5308dc||this[_0xd035('0x23')]([]),this[_0xd035('0x18')]=_0x5308dc);}[_0xd035('0x24')](_0xb61ba7){this[_0xd035('0x2')]=_0xb61ba7;const _0x16b346=this['editor'][_0xd035('0x3')][_0xd035('0x3b')](_0x28910e),_0x5010ff=this['_balloon'];if(this[_0xd035('0xc')])throw new _0x2cec68(_0xd035('0xd'),this);if(_0x16b346[_0xd035('0xa')]!==this[_0xd035('0x2c')])throw new _0x2cec68(_0xd035('0x25'),this);const _0x5d9b5c=this[_0xd035('0x2c')][_0xd035('0x3')][_0xd035('0x3b')](_0x2a225d);this['listenTo'](_0x5d9b5c,'refresh',()=>{const _0x2e726b=_0x5d9b5c[_0xd035('0x29')]({'annotations':this[_0xd035('0x2')],'activeAnnotation':this['activeAnnotation']});var _0xe81f95,_0x106138;!this[_0xd035('0x44')]&&(_0xe81f95=_0x2e726b,_0x106138=this[_0xd035('0x31')],_0xe81f95[_0xd035('0x37')]===_0x106138[_0xd035('0x37')]&&_0xe81f95['every'](_0x44173c=>_0x106138['includes'](_0x44173c)))||(this[_0xd035('0x44')]=!0x1,this[_0xd035('0x23')](_0x2e726b),this[_0xd035('0x47')](_0x2e726b[0x0]||null));}),this['listenTo'](_0x5d9b5c,'blur',(_0x1b9e4c,{isAnnotationTracked:_0x4068d1})=>{this[_0xd035('0x18')]&&_0x4068d1(this['activeAnnotation'])&&(this[_0xd035('0x23')]([]),this['setActiveAnnotation'](null));}),this[_0xd035('0x4c')](this[_0xd035('0x2c')]['ui'][_0xd035('0x26')],_0xd035('0x49'),(_0x3264b0,_0x436ac6,_0x35a685)=>{_0x35a685||this['setActiveAnnotation'](null);}),this[_0xd035('0x4c')](_0xb61ba7,'remove',(_0x34a25f,_0x4b300e)=>{this[_0xd035('0x2f')](_0x4b300e),_0x4b300e===this[_0xd035('0x18')]&&this['setActiveAnnotation'](null);}),this[_0xd035('0x4c')](_0x5010ff,_0xd035('0x34'),(_0x4d66ee,_0xacb948,_0xd1ff4d,_0x30fe59)=>{_0x30fe59&&this[_0xd035('0x14')](_0x30fe59);const _0x1a02d7=_0xb61ba7[_0xd035('0x33')](_0xd1ff4d);_0xd1ff4d&&_0x1a02d7&&(this[_0xd035('0x4c')](_0xd1ff4d,'change:height',()=>{_0x5010ff[_0xd035('0x21')]();}),this['listenTo'](_0xd1ff4d,'Esc',()=>{this[_0xd035('0x2d')](_0x1a02d7),this[_0xd035('0x2c')]['editing']['view'][_0xd035('0x1b')]();}),this[_0xd035('0x18')]!==_0x1a02d7&&this[_0xd035('0x47')](_0x1a02d7));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5010ff[_0xd035('0x45')]&&(_0xb61ba7[_0xd035('0x33')](_0x5010ff[_0xd035('0x45')])&&_0x5010ff[_0xd035('0x21')]());}),this[_0xd035('0x4c')](this['editor'][_0xd035('0x4a')][_0xd035('0x4b')][_0xd035('0xb')],_0xd035('0x40'),()=>{this[_0xd035('0x44')]=!0x0,this[_0xd035('0x16')][_0xd035('0x4')]();}),this['editor'][_0xd035('0x4a')]['view'][_0xd035('0xb')]['selection'][_0xd035('0x1a')]&&this[_0xd035('0x2c')][_0xd035('0x4a')][_0xd035('0x4b')][_0xd035('0x1b')](),this[_0xd035('0xc')]=!0x0;}[_0xd035('0x22')](){if(!this[_0xd035('0xc')])throw new _0x2cec68(_0xd035('0x39'),this);this[_0xd035('0x47')](null);for(const _0x342b57 of this[_0xd035('0x27')])this[_0xd035('0x2f')](_0x342b57);this[_0xd035('0x14')](),this[_0xd035('0xc')]=!0x1,this[_0xd035('0x2')]=null;}[_0xd035('0xe')](){this['isAttached']&&this['detach']();}[_0xd035('0x23')](_0x423375){for(const _0x83c1db of this[_0xd035('0x31')])_0x423375[_0xd035('0x10')](_0x83c1db)||this[_0xd035('0x16')]['delete'](_0x83c1db);for(const _0x330b4b of this[_0xd035('0x2')])_0x423375[_0xd035('0x10')](_0x330b4b)||this[_0xd035('0x2f')](_0x330b4b);if(this[_0xd035('0x2c')]['ui'][_0xd035('0x26')][_0xd035('0x2b')])for(const _0x3fe908 of _0x423375)this[_0xd035('0x1e')](_0x3fe908);this[_0xd035('0x31')]=_0x423375;}[_0xd035('0x1e')](_0x49086b,_0x1b9414=!0x1){this[_0xd035('0x16')][_0xd035('0x5')](_0x49086b)||(this[_0xd035('0x27')][_0xd035('0x5')](_0x49086b)||this[_0xd035('0x3a')][_0xd035('0x30')](_0x49086b[_0xd035('0x4b')])||(this['_addedAnnotations'][_0xd035('0x7')](_0x49086b),this[_0xd035('0x3a')][_0xd035('0x7')]({'stackId':_0x49086b[_0xd035('0x4b')]['id'],'view':_0x49086b[_0xd035('0x4b')],'position':{'target':()=>this[_0xd035('0x46')](_0x49086b)}})),_0x1b9414&&this[_0xd035('0x3a')]['showStack'](_0x49086b['view']['id']));}[_0xd035('0x46')](_0x7a8fef){const _0x385d41=_0x7a8fef[_0xd035('0x42')],_0x3dba0b=this[_0xd035('0x2c')][_0xd035('0x4a')]['view'],_0x4c9991=_0x3dba0b[_0xd035('0xb')][_0xd035('0x38')][_0xd035('0x28')](),_0x194801=_0x3dba0b[_0xd035('0x1c')][_0xd035('0x48')](_0x4c9991);if(_0x194801['collapse'](!0x0),_0x385d41){if(_0x385d41 instanceof _0x46c25b)return _0x385d41;let _0x5f28c3=[];for(const _0x38d8ab of _0x385d41)_0x5f28c3[_0xd035('0x35')](...(_0xef9bb8=_0x38d8ab[_0xd035('0x13')](),Array[_0xd035('0xf')](_0xef9bb8)[_0xd035('0x2e')](DOMRect[_0xd035('0x36')])));_0x5f28c3=function(_0x5e723f){const _0x3b913c=[];let _0x4c57ed=_0x5e723f[0x0];for(let _0x579ef2=0x1;_0x579ef2<_0x5e723f[_0xd035('0x37')];_0x579ef2++)F(_0x4c57ed,_0x5e723f[_0x579ef2])?_0x4c57ed[_0xd035('0x32')]+=_0x5e723f[_0x579ef2][_0xd035('0x32')]:(_0x3b913c[_0xd035('0x35')](_0x4c57ed),_0x4c57ed=_0x5e723f[_0x579ef2]);return _0x3b913c[_0xd035('0x35')](_0x4c57ed),_0x3b913c;}(_0x5f28c3);const _0x1e2bcf=_0x194801[_0xd035('0x9')]();return _0x5f28c3[_0xd035('0x3c')](_0x48d7b2=>_0x48d7b2['top']<=_0x1e2bcf[_0xd035('0x3f')]&&_0x48d7b2['bottom']>=_0x1e2bcf[_0xd035('0x12')]&&_0x48d7b2[_0xd035('0x2a')]<=_0x1e2bcf[_0xd035('0x2a')]&&_0x48d7b2[_0xd035('0x1d')]>=_0x1e2bcf[_0xd035('0x1d')])||_0x5f28c3[0x0];}var _0xef9bb8;return _0x7a8fef[_0xd035('0x11')]||_0x194801;}[_0xd035('0x2f')](_0x3688cb){this[_0xd035('0x27')][_0xd035('0x5')](_0x3688cb)&&this[_0xd035('0x3a')][_0xd035('0x30')](_0x3688cb[_0xd035('0x4b')])&&(this[_0xd035('0x27')][_0xd035('0x41')](_0x3688cb),this[_0xd035('0x3a')][_0xd035('0x1')](_0x3688cb[_0xd035('0x4b')]));}[_0xd035('0x2d')](_0x3e4a53){this['_manuallyClosed'][_0xd035('0x7')](_0x3e4a53),this['_removeAnnotationFromBalloon'](_0x3e4a53);}}function F(_0x202470,_0x5657cc){return _0x202470['top']===_0x5657cc['top']&&_0x202470[_0xd035('0x12')]===_0x5657cc[_0xd035('0x12')]&&_0x202470['right']===_0x5657cc['left'];}
23
+ const _0x2678=['selection','_setSelectedAnnotations','visibleView','_manuallyClosed','map','from','isAttached','target','change:isFocused','targetRect','activeAnnotation','bottom','destroy','includes','_getBalloonTargetForAnnotation','inlineannotations-not-allowed-with-context','updatePosition','get','register','focus','inlineannotations-attach-already-attached','length','_removeAnnotationFromBalloon','left','setActiveAnnotation','editableElement','addObserver','inline','annotations','find','document','isActive','add','context','view','_forceRefresh','getByView','editing','has','listenTo','delete','_addAnnotationToBalloon','getFirstRange','fromRect','focusTracker','clear','set','isFocused','stopListening','viewRangeToDom','collapse','switchTo','blur','change:visibleView','Esc','pluginName','showStack','_addedAnnotations','_balloon','push','attach','getBoundingClientRect','top','update','remove','plugins','_closeAnnotation','detach','refresh','getOrderedSelectedAnnotations','domConverter','hasView','getClientRects','mousedown','editor','_selectedAnnotations','right','every','width'];(function(_0x2d8ed1,_0x2678e8){const _0x3bd12d=function(_0x1dc853){while(--_0x1dc853){_0x2d8ed1['push'](_0x2d8ed1['shift']());}};_0x3bd12d(++_0x2678e8);}(_0x2678,0x123));const _0x3bd1=function(_0x2d8ed1,_0x2678e8){_0x2d8ed1=_0x2d8ed1-0x0;let _0x3bd12d=_0x2678[_0x2d8ed1];return _0x3bd12d;};import{Plugin as _0x51c1e4}from'ckeditor5/src/core.js';import _0x2ea6df from'./annotationsuis.js';import _0x3e8a93 from'./editorannotations.js';import{ContextualBalloon as _0x40daff}from'ckeditor5/src/ui.js';import{MouseObserver as _0x3fc306}from'ckeditor5/src/engine.js';import{CKEditorError as _0x5881c9,Rect as _0x40dbe8}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x51c1e4{static get['requires'](){return[_0x3e8a93,_0x40daff,_0x2ea6df];}static get[_0x3bd1('0x1')](){return'InlineAnnotations';}constructor(_0x542ab8){super(_0x542ab8),_0x542ab8[_0x3bd1('0x3e')][_0x3bd1('0x3b')][_0x3bd1('0x33')](_0x3fc306),this[_0x3bd1('0x1f')]=!0x1,this[_0x3bd1('0x47')](_0x3bd1('0x23'),null),this[_0x3bd1('0x35')]=null,this[_0x3bd1('0x1c')]=new Set(),this[_0x3bd1('0x4')]=_0x542ab8[_0x3bd1('0xb')][_0x3bd1('0x2a')](_0x40daff),this['_addedAnnotations']=new Set(),this[_0x3bd1('0x15')]=[],this['_forceRefresh']=!0x1;}['init'](){const _0x1b3be7=this['editor'][_0x3bd1('0xb')][_0x3bd1('0x2a')](_0x2ea6df);_0x1b3be7[_0x3bd1('0x3a')]===this[_0x3bd1('0x14')]&&(_0x1b3be7[_0x3bd1('0x2b')](_0x3bd1('0x34'),this),this['editor']['keystrokes'][_0x3bd1('0x47')](_0x3bd1('0x0'),(_0x23fa5b,_0x2ae5b1)=>{const _0x3eadce=this['_balloon'];if(this[_0x3bd1('0x1f')]&&_0x3eadce[_0x3bd1('0x1b')]){const _0x4fea6b=this[_0x3bd1('0x35')]['getByView'](_0x3eadce[_0x3bd1('0x1b')]);_0x4fea6b&&this[_0x3bd1('0xc')](_0x4fea6b),_0x2ae5b1();}}));}['afterInit'](){const _0x336a99=this[_0x3bd1('0x14')][_0x3bd1('0xb')][_0x3bd1('0x2a')](_0x2ea6df);_0x336a99['context']===this['editor']&&(_0x336a99['hasActive']()||_0x336a99[_0x3bd1('0x4c')](_0x3bd1('0x34')));}['setActiveAnnotation'](_0x1f1d8f){_0x1f1d8f!==this[_0x3bd1('0x23')]&&(this['activeAnnotation']&&(this[_0x3bd1('0x23')][_0x3bd1('0x38')]=!0x1),_0x1f1d8f&&this[_0x3bd1('0x14')]['ui']['focusTracker'][_0x3bd1('0x48')]&&(this[_0x3bd1('0x35')][_0x3bd1('0x3f')](_0x1f1d8f)&&this[_0x3bd1('0x42')](_0x1f1d8f,!0x0),_0x1f1d8f[_0x3bd1('0x38')]=!0x0),_0x1f1d8f||this[_0x3bd1('0x1a')]([]),this[_0x3bd1('0x23')]=_0x1f1d8f);}[_0x3bd1('0x6')](_0x423d5b){this['annotations']=_0x423d5b;const _0x1fa9b2=this[_0x3bd1('0x14')][_0x3bd1('0xb')]['get'](_0x2ea6df),_0x3e0553=this[_0x3bd1('0x4')];if(this[_0x3bd1('0x1f')])throw new _0x5881c9(_0x3bd1('0x2d'),this);if(_0x1fa9b2[_0x3bd1('0x3a')]!==this[_0x3bd1('0x14')])throw new _0x5881c9(_0x3bd1('0x28'),this);const _0x32ee6f=this[_0x3bd1('0x14')]['plugins'][_0x3bd1('0x2a')](_0x3e8a93);this[_0x3bd1('0x40')](_0x32ee6f,_0x3bd1('0xe'),()=>{const _0x474a36=_0x32ee6f[_0x3bd1('0xf')]({'annotations':this[_0x3bd1('0x35')],'activeAnnotation':this[_0x3bd1('0x23')]});var _0x19a319,_0x1aff63;!this[_0x3bd1('0x3c')]&&(_0x19a319=_0x474a36,_0x1aff63=this[_0x3bd1('0x15')],_0x19a319['length']===_0x1aff63[_0x3bd1('0x2e')]&&_0x19a319[_0x3bd1('0x17')](_0x59ba8d=>_0x1aff63[_0x3bd1('0x26')](_0x59ba8d)))||(this[_0x3bd1('0x3c')]=!0x1,this[_0x3bd1('0x1a')](_0x474a36),this[_0x3bd1('0x31')](_0x474a36[0x0]||null));}),this[_0x3bd1('0x40')](_0x32ee6f,_0x3bd1('0x4d'),(_0x4c7c5a,{isAnnotationTracked:_0xb5dc2f})=>{this['activeAnnotation']&&_0xb5dc2f(this['activeAnnotation'])&&(this[_0x3bd1('0x1a')]([]),this['setActiveAnnotation'](null));}),this[_0x3bd1('0x40')](this[_0x3bd1('0x14')]['ui'][_0x3bd1('0x45')],_0x3bd1('0x21'),(_0x2f4381,_0x4a20b1,_0x5e7dc6)=>{_0x5e7dc6||this['setActiveAnnotation'](null);}),this['listenTo'](_0x423d5b,_0x3bd1('0xa'),(_0x3fdc09,_0xd5ae6e)=>{this['_removeAnnotationFromBalloon'](_0xd5ae6e),_0xd5ae6e===this['activeAnnotation']&&this[_0x3bd1('0x31')](null);}),this[_0x3bd1('0x40')](_0x3e0553,_0x3bd1('0x4e'),(_0x527d1b,_0x54131c,_0x1a9ada,_0xc622a2)=>{_0xc622a2&&this[_0x3bd1('0x49')](_0xc622a2);const _0x826762=_0x423d5b[_0x3bd1('0x3d')](_0x1a9ada);_0x1a9ada&&_0x826762&&(this[_0x3bd1('0x40')](_0x1a9ada,'change:height',()=>{_0x3e0553[_0x3bd1('0x29')]();}),this[_0x3bd1('0x40')](_0x1a9ada,_0x3bd1('0x0'),()=>{this[_0x3bd1('0xc')](_0x826762),this['editor'][_0x3bd1('0x3e')]['view'][_0x3bd1('0x2c')]();}),this[_0x3bd1('0x23')]!==_0x826762&&this['setActiveAnnotation'](_0x826762));}),this[_0x3bd1('0x40')](this['editor']['ui'],_0x3bd1('0x9'),()=>{_0x3e0553[_0x3bd1('0x1b')]&&(_0x423d5b[_0x3bd1('0x3d')](_0x3e0553[_0x3bd1('0x1b')])&&_0x3e0553['updatePosition']());}),this[_0x3bd1('0x40')](this['editor'][_0x3bd1('0x3e')][_0x3bd1('0x3b')][_0x3bd1('0x37')],_0x3bd1('0x13'),()=>{this[_0x3bd1('0x3c')]=!0x0,this[_0x3bd1('0x1c')][_0x3bd1('0x46')]();}),this['editor'][_0x3bd1('0x3e')][_0x3bd1('0x3b')]['document'][_0x3bd1('0x19')][_0x3bd1('0x32')]&&this[_0x3bd1('0x14')][_0x3bd1('0x3e')][_0x3bd1('0x3b')][_0x3bd1('0x2c')](),this['isAttached']=!0x0;}[_0x3bd1('0xd')](){if(!this[_0x3bd1('0x1f')])throw new _0x5881c9('inlineannotations-detach-not-attached',this);this[_0x3bd1('0x31')](null);for(const _0x4c684d of this[_0x3bd1('0x3')])this['_removeAnnotationFromBalloon'](_0x4c684d);this[_0x3bd1('0x49')](),this[_0x3bd1('0x1f')]=!0x1,this[_0x3bd1('0x35')]=null;}[_0x3bd1('0x25')](){this['isAttached']&&this[_0x3bd1('0xd')]();}[_0x3bd1('0x1a')](_0x5b2e88){for(const _0x538a1a of this[_0x3bd1('0x15')])_0x5b2e88[_0x3bd1('0x26')](_0x538a1a)||this[_0x3bd1('0x1c')][_0x3bd1('0x41')](_0x538a1a);for(const _0x4e65f4 of this[_0x3bd1('0x35')])_0x5b2e88['includes'](_0x4e65f4)||this[_0x3bd1('0x2f')](_0x4e65f4);if(this['editor']['ui'][_0x3bd1('0x45')][_0x3bd1('0x48')])for(const _0x3d2e44 of _0x5b2e88)this[_0x3bd1('0x42')](_0x3d2e44);this['_selectedAnnotations']=_0x5b2e88;}[_0x3bd1('0x42')](_0x5dc0d7,_0x3f43d4=!0x1){this['_manuallyClosed'][_0x3bd1('0x3f')](_0x5dc0d7)||(this[_0x3bd1('0x3')][_0x3bd1('0x3f')](_0x5dc0d7)||this[_0x3bd1('0x4')][_0x3bd1('0x11')](_0x5dc0d7['view'])||(this[_0x3bd1('0x3')][_0x3bd1('0x39')](_0x5dc0d7),this[_0x3bd1('0x4')]['add']({'stackId':_0x5dc0d7['view']['id'],'view':_0x5dc0d7[_0x3bd1('0x3b')],'position':{'target':()=>this[_0x3bd1('0x27')](_0x5dc0d7)}})),_0x3f43d4&&this[_0x3bd1('0x4')][_0x3bd1('0x2')](_0x5dc0d7['view']['id']));}[_0x3bd1('0x27')](_0x40d64e){const _0x2e6299=_0x40d64e[_0x3bd1('0x20')],_0x568f59=this[_0x3bd1('0x14')][_0x3bd1('0x3e')][_0x3bd1('0x3b')],_0x4f781d=_0x568f59['document'][_0x3bd1('0x19')][_0x3bd1('0x43')](),_0x36c424=_0x568f59[_0x3bd1('0x10')][_0x3bd1('0x4a')](_0x4f781d);if(_0x36c424[_0x3bd1('0x4b')](!0x0),_0x2e6299){if(_0x2e6299 instanceof _0x40dbe8)return _0x2e6299;let _0x44f317=[];for(const _0x50638c of _0x2e6299)_0x44f317['push'](...(_0x547bef=_0x50638c[_0x3bd1('0x12')](),Array[_0x3bd1('0x1e')](_0x547bef)[_0x3bd1('0x1d')](DOMRect[_0x3bd1('0x44')])));_0x44f317=function(_0x23b15f){const _0x564976=[];let _0x4f3383=_0x23b15f[0x0];for(let _0x2c0331=0x1;_0x2c0331<_0x23b15f['length'];_0x2c0331++)F(_0x4f3383,_0x23b15f[_0x2c0331])?_0x4f3383['width']+=_0x23b15f[_0x2c0331][_0x3bd1('0x18')]:(_0x564976[_0x3bd1('0x5')](_0x4f3383),_0x4f3383=_0x23b15f[_0x2c0331]);return _0x564976[_0x3bd1('0x5')](_0x4f3383),_0x564976;}(_0x44f317);const _0x5e832d=_0x36c424[_0x3bd1('0x7')]();return _0x44f317[_0x3bd1('0x36')](_0x4f6a6f=>_0x4f6a6f[_0x3bd1('0x8')]<=_0x5e832d[_0x3bd1('0x8')]&&_0x4f6a6f[_0x3bd1('0x24')]>=_0x5e832d[_0x3bd1('0x24')]&&_0x4f6a6f[_0x3bd1('0x30')]<=_0x5e832d[_0x3bd1('0x30')]&&_0x4f6a6f['right']>=_0x5e832d['right'])||_0x44f317[0x0];}var _0x547bef;return _0x40d64e[_0x3bd1('0x22')]||_0x36c424;}[_0x3bd1('0x2f')](_0x565517){this['_addedAnnotations'][_0x3bd1('0x3f')](_0x565517)&&this[_0x3bd1('0x4')][_0x3bd1('0x11')](_0x565517[_0x3bd1('0x3b')])&&(this['_addedAnnotations'][_0x3bd1('0x41')](_0x565517),this['_balloon'][_0x3bd1('0xa')](_0x565517['view']));}[_0x3bd1('0xc')](_0x3bf67f){this[_0x3bd1('0x1c')][_0x3bd1('0x39')](_0x3bf67f),this[_0x3bd1('0x2f')](_0x3bf67f);}}function F(_0x1a31e8,_0x54db98){return _0x1a31e8[_0x3bd1('0x8')]===_0x54db98[_0x3bd1('0x8')]&&_0x1a31e8[_0x3bd1('0x24')]===_0x54db98['bottom']&&_0x1a31e8[_0x3bd1('0x16')]===_0x54db98['left'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3050=['northArrowSouth','bodyCollection','stopPropagation','set:container','change:height','values','has','_annotations','_refreshPositioningDebounced','getSidebarItemView','EditorAnnotations','cancel','preventClosingBalloon','register','view','_setSelectedAnnotations','attachToDom','pluginName','locale','context','addEventListener','clear','get','includes','from','element','esc','activeAnnotation','isVisible','setActiveAnnotation','refresh','attach','_attachListeners','plugins','_editorAnnotations','requires','_destroyEditorAnnotationsIntegration','isAttached','hasDomSelection','_updateBalloonPosition','high','northArrowSouthWest','narrowsidebar-attach-already-attached','change:container','set','_refreshPositioning','annotationType','_showBalloon','keyCode','_hideBalloon','isDirty','focus','rearrange','southArrowNorth','Esc','detachFromDom','southArrowNorthEast','listenTo','unpin','ck-sidebar--narrow','detach','getOrderedSelectedAnnotations','stopListening','stop','target','add','content','annotations','_integrateWithEditorAnnotations','southArrowNorthWest','pin','_attachToContainer','_manuallyClosedAnnotationViews','ready','uiUpdate','defaultPositions','blur','destroy','remove','_domEmitter','delete','contains','mousedown','refreshPositioning','bind','_detachListeners','_annotationToNarrowView','_selectedAnnotations','first','number','find','balloonPanelView'];(function(_0x1a7c0a,_0x3050f1){const _0x5f0463=function(_0x9fab6a){while(--_0x9fab6a){_0x1a7c0a['push'](_0x1a7c0a['shift']());}};_0x5f0463(++_0x3050f1);}(_0x3050,0xd3));const _0x5f04=function(_0x1a7c0a,_0x3050f1){_0x1a7c0a=_0x1a7c0a-0x0;let _0x5f0463=_0x3050[_0x1a7c0a];return _0x5f0463;};import{ContextPlugin as _0x15c658,Context as _0x2b2458}from'ckeditor5/src/core.js';import _0x19ff6a from'./annotationsuis.js';import _0x3c73e1 from'./sidebar.js';import _0x37d0a8 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x543688,BodyCollection as _0x136029}from'ckeditor5/src/ui.js';import{CKEditorError as _0x53b9d4,DomEmitterMixin as _0x4946c4,keyCodes as _0x4e4c99,Collection as _0x3cbbd7}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x28f9a3}from'lodash-es';import _0x47ddf7 from'./editorannotations.js';export default class i extends _0x15c658{static get[_0x5f04('0x8')](){return[_0x3c73e1,_0x19ff6a];}static get[_0x5f04('0x52')](){return'NarrowSidebar';}constructor(_0xeecbff){super(_0xeecbff),this[_0x5f04('0xa')]=!0x1,this[_0x5f04('0x2d')]=new Set(),this[_0x5f04('0x34')]=Object['create'](_0x4946c4),this[_0x5f04('0x3b')]=new Map(),this[_0x5f04('0x11')](_0x5f04('0x0'),null),this['annotations']=null,this['_selectedAnnotations']=[],this[_0x5f04('0x7')]=new _0x3cbbd7(),this[_0x5f04('0x49')]=_0x28f9a3(()=>{this[_0x5f04('0x12')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x5f04('0x54')][_0x5f04('0x6')][_0x5f04('0x57')](_0x19ff6a)[_0x5f04('0x4e')]('narrowSidebar',this),this[_0x5f04('0x42')]=new _0x136029(this[_0x5f04('0x54')][_0x5f04('0x53')]),this['balloonPanelView']=new _0x543688(this['context'][_0x5f04('0x53')]),this[_0x5f04('0x42')][_0x5f04('0x51')](),this[_0x5f04('0x42')]['add'](this[_0x5f04('0x40')]);}[_0x5f04('0x4')](_0x862aea){this['annotations']=_0x862aea;const _0x36900d=this[_0x5f04('0x54')][_0x5f04('0x6')]['get'](_0x3c73e1),_0x12a765=this[_0x5f04('0x40')];if(_0x36900d[_0x5f04('0x48')]=_0x862aea,this[_0x5f04('0xa')])throw new _0x53b9d4(_0x5f04('0xf'),this);this[_0x5f04('0xa')]=!0x0,this['listenTo'](_0x36900d,_0x5f04('0x44'),()=>{this['detach'](),this['listenTo'](_0x36900d,_0x5f04('0x10'),_0x5b8e96=>{_0x5b8e96['off'](),this['attach'](_0x862aea);});}),_0x36900d[_0x5f04('0x2c')]({'viewClass':_0x5f04('0x20'),'spaceBetweenItems':0x5});const _0x1dc2cf=_0x1215b4=>{const _0x6b144a=new _0x37d0a8(this[_0x5f04('0x54')][_0x5f04('0x53')]);_0x36900d['addAnnotation'](_0x1215b4,_0x6b144a),this[_0x5f04('0x3b')][_0x5f04('0x11')](_0x1215b4,_0x6b144a),_0x6b144a[_0x5f04('0x39')](_0x5f04('0x17'),_0x5f04('0x13'),_0x5f04('0x3e'))['to'](_0x1215b4[_0x5f04('0x4f')],'isDirty','type','length'),_0x6b144a['on']('execute',()=>{this['_manuallyClosedAnnotationViews'][_0x5f04('0x56')](),_0x12a765['content'][_0x5f04('0x3d')]!==_0x1215b4[_0x5f04('0x4f')]?(this[_0x5f04('0x14')](_0x1215b4),_0x1215b4['view'][_0x5f04('0x5a')][_0x5f04('0x18')](),this[_0x5f04('0x2')](_0x1215b4)):this['setActiveAnnotation'](null);});};for(const _0x165feb of _0x862aea)_0x1dc2cf(_0x165feb);this[_0x5f04('0x1e')](_0x862aea,_0x5f04('0x26'),(_0xfffcd,_0x19fc0f)=>{_0x1dc2cf(_0x19fc0f);}),this[_0x5f04('0x1e')](_0x862aea,_0x5f04('0x33'),(_0x3d8462,_0x54a52f,_0x38fa06)=>{this[_0x5f04('0x3b')][_0x5f04('0x57')](_0x54a52f)[_0x5f04('0x32')](),this[_0x5f04('0x3b')][_0x5f04('0x35')](_0x54a52f),_0x36900d[_0x5f04('0x19')]({'removedAnnotation':_0x54a52f,'previousAnnotation':_0x862aea[_0x5f04('0x57')](_0x38fa06-0x1),'nextAnnotation':_0x862aea[_0x5f04('0x57')](_0x38fa06+0x1)}),_0x54a52f===this[_0x5f04('0x0')]&&this['setActiveAnnotation'](null);},{'priority':'low'}),this[_0x5f04('0x1e')](_0x862aea,_0x5f04('0x18'),(_0x203362,_0x738919)=>{this[_0x5f04('0x2')](_0x738919);}),this[_0x5f04('0x1e')](_0x862aea,_0x5f04('0x31'),()=>{this[_0x5f04('0x2')](null);}),this[_0x5f04('0x34')][_0x5f04('0x1e')](document,'keydown',(_0x43fbbd,_0x165832)=>{_0x165832[_0x5f04('0x15')]===_0x4e4c99[_0x5f04('0x5b')]&&_0x12a765['isVisible']&&(this[_0x5f04('0x2d')][_0x5f04('0x26')](_0x12a765[_0x5f04('0x27')][_0x5f04('0x3d')]),this['_hideBalloon'](),_0x165832[_0x5f04('0x43')](),_0x165832['preventDefault']());}),this['_domEmitter']['listenTo'](document,_0x5f04('0x37'),(_0x31c564,_0x12900c)=>{const _0x386781=_0x12900c['target'];_0x12a765[_0x5f04('0x1')]&&_0x12a765[_0x5f04('0x5a')][_0x5f04('0x36')](_0x386781)||_0x36900d[_0x5f04('0x4f')][_0x5f04('0x5a')][_0x5f04('0x36')](_0x386781)||_0x31c564[_0x5f04('0x4d')]||this[_0x5f04('0x0')]&&this[_0x5f04('0x0')]['focusableElements'][_0x5f04('0x3f')](_0x4e0ee3=>_0x4e0ee3[_0x5f04('0x36')](_0x386781))||(this['_manuallyClosedAnnotationViews'][_0x5f04('0x56')](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0xb7b88f=this[_0x5f04('0x54')]instanceof _0x2b2458?this[_0x5f04('0x54')]['editors']:new _0x3cbbd7([this['context']]);for(const _0x45c85c of _0xb7b88f)this[_0x5f04('0x29')](_0x45c85c);this[_0x5f04('0x1e')](_0xb7b88f,'add',(_0x1d72d8,_0x200003)=>{this[_0x5f04('0x1e')](_0x200003,_0x5f04('0x2e'),()=>{this[_0x5f04('0x29')](_0x200003);});}),this[_0x5f04('0x1e')](_0xb7b88f,_0x5f04('0x33'),(_0x4e1810,_0xef20e)=>{_0xef20e[_0x5f04('0x6')]['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0xef20e[_0x5f04('0x6')][_0x5f04('0x57')](_0x5f04('0x4b')));}),window[_0x5f04('0x55')]('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x151491){if(_0x151491===this[_0x5f04('0x0')])return;const _0x5d0f54=this[_0x5f04('0x54')][_0x5f04('0x6')][_0x5f04('0x57')](_0x3c73e1);if(_0x5d0f54['refresh']({'blurredAnnotation':this[_0x5f04('0x0')],'activatedAnnotation':_0x151491,'disableAnimationOnActivatedAnnotation':!0x0}),_0x151491)_0x5d0f54[_0x5f04('0x4a')](_0x151491)?this[_0x5f04('0x14')](_0x151491):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x151491;}[_0x5f04('0x21')](){if(!this['isAttached'])throw new _0x53b9d4('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x296916=this[_0x5f04('0x54')]['plugins']['get'](_0x3c73e1);this['_hideBalloon'](),Array[_0x5f04('0x59')](this[_0x5f04('0x3b')][_0x5f04('0x46')](),_0x1c7ab4=>_0x1c7ab4[_0x5f04('0x32')]()),this[_0x5f04('0x3b')][_0x5f04('0x56')](),_0x296916['_detachFromContainer'](this[_0x5f04('0x28')]),this[_0x5f04('0x23')](),this['_domEmitter']['stopListening'](),this[_0x5f04('0x54')]instanceof _0x2b2458&&this[_0x5f04('0x23')](this[_0x5f04('0x54')]['editors']);for(const _0x1f5d24 of Array['from'](this['_editorAnnotations']))this[_0x5f04('0x9')](_0x1f5d24);window['removeEventListener']('resize',this[_0x5f04('0x49')]),this[_0x5f04('0x49')][_0x5f04('0x4c')](),this[_0x5f04('0x3c')]=[],this[_0x5f04('0xa')]=!0x1,this[_0x5f04('0x28')]=null;}[_0x5f04('0x32')](){this[_0x5f04('0xa')]&&this[_0x5f04('0x21')](),this[_0x5f04('0x42')][_0x5f04('0x1c')]();}[_0x5f04('0x29')](_0x56a089){const _0x5d9067=_0x56a089[_0x5f04('0x6')]['get'](_0x47ddf7),_0x357200=this['context'][_0x5f04('0x6')][_0x5f04('0x57')](_0x3c73e1),_0x19737c=this['annotations'],_0x38cda3=this[_0x5f04('0x40')],_0x1f2806=()=>{const _0x39cd47=_0x5d9067[_0x5f04('0x22')]({'annotations':this[_0x5f04('0x28')],'activeAnnotation':this[_0x5f04('0x0')]});this[_0x5f04('0x50')](_0x39cd47),this['setActiveAnnotation'](_0x39cd47[0x0]||null);};this['listenTo'](_0x5d9067,_0x5f04('0x3'),_0x1f2806),this[_0x5f04('0x1e')](_0x5d9067,_0x5f04('0x31'),(_0x50be4c,{isAnnotationTracked:_0xeb6118})=>{this[_0x5f04('0x0')]&&_0xeb6118(this[_0x5f04('0x0')])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this[_0x5f04('0x1e')](_0x5d9067,_0x5f04('0x2f'),()=>{this[_0x5f04('0x49')]();}),this[_0x5f04('0x1e')](_0x19737c,'blur',_0x98486c=>{_0x5d9067[_0x5f04('0xb')]()&&_0x98486c[_0x5f04('0x24')]();},{'priority':_0x5f04('0xd')}),this[_0x5f04('0x1e')](this[_0x5f04('0x34')],_0x5f04('0x37'),(_0x5989fc,_0xef821d)=>{const _0x555b40=_0xef821d[_0x5f04('0x25')];_0x38cda3[_0x5f04('0x1')]&&_0x38cda3['element'][_0x5f04('0x36')](_0x555b40)||_0x357200[_0x5f04('0x4f')][_0x5f04('0x5a')]['contains'](_0x555b40)||this[_0x5f04('0x0')]&&_0x5d9067[_0x5f04('0xb')]()&&(_0x1f2806(),_0x5989fc[_0x5f04('0x4d')]=!0x0);},{'priority':'high'}),this[_0x5f04('0x7')][_0x5f04('0x26')](_0x5d9067);}[_0x5f04('0x9')](_0x4240cd){_0x4240cd&&(this[_0x5f04('0x23')](_0x4240cd),this[_0x5f04('0x7')][_0x5f04('0x33')](_0x4240cd));}[_0x5f04('0x50')](_0x1a22f5){for(const _0x2151c8 of this[_0x5f04('0x3c')])_0x1a22f5[_0x5f04('0x58')](_0x2151c8)||this['_manuallyClosedAnnotationViews'][_0x5f04('0x35')](_0x2151c8[_0x5f04('0x4f')]);this[_0x5f04('0x3c')]=_0x1a22f5;}[_0x5f04('0x12')](){const _0x12f38f=this[_0x5f04('0x40')];this['annotations'][_0x5f04('0x38')](),_0x12f38f[_0x5f04('0x1')]&&this[_0x5f04('0xc')]();}[_0x5f04('0x14')](_0x367e1c){if(this[_0x5f04('0x2d')]['has'](_0x367e1c[_0x5f04('0x4f')]))return;const _0x512493=this[_0x5f04('0x40')][_0x5f04('0x27')][_0x5f04('0x3d')];_0x512493!==_0x367e1c[_0x5f04('0x4f')]?(_0x512493&&this[_0x5f04('0x3a')](_0x512493),this[_0x5f04('0x5')](_0x367e1c[_0x5f04('0x4f')]),this[_0x5f04('0x40')][_0x5f04('0x27')]['clear'](),this[_0x5f04('0x40')][_0x5f04('0x27')][_0x5f04('0x26')](_0x367e1c['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}[_0x5f04('0xc')](){const _0x37a158=this[_0x5f04('0x40')][_0x5f04('0x27')][_0x5f04('0x3d')],_0x51548f=_0x37a158&&this[_0x5f04('0x28')]['getByView'](_0x37a158);if(!_0x51548f||!this[_0x5f04('0x3b')][_0x5f04('0x47')](_0x51548f))return;const _0x4f14fb=this[_0x5f04('0x3b')][_0x5f04('0x57')](_0x51548f)['element'],_0x116cb9=function(){const _0x5ad035=_0x543688[_0x5f04('0x30')];return[_0x5ad035[_0x5f04('0x1d')],_0x5ad035['northArrowSouthEast'],_0x5ad035[_0x5f04('0x1a')],_0x5ad035[_0x5f04('0x41')],_0x5ad035[_0x5f04('0x2a')],_0x5ad035[_0x5f04('0xe')]];}();this[_0x5f04('0x40')][_0x5f04('0x2b')]({'target':_0x4f14fb,'positions':_0x116cb9});}['_hideBalloon'](){const _0x3eb24a=this[_0x5f04('0x40')],_0x564b63=_0x3eb24a['content']['first'];_0x564b63&&(this['_detachListeners'](_0x564b63),_0x3eb24a[_0x5f04('0x1f')](),_0x3eb24a[_0x5f04('0x27')][_0x5f04('0x56')]());}[_0x5f04('0x5')](_0x3c0c4a){this[_0x5f04('0x1e')](_0x3c0c4a,_0x5f04('0x45'),()=>this[_0x5f04('0xc')]()),this[_0x5f04('0x1e')](_0x3c0c4a,_0x5f04('0x1b'),(_0xee315c,_0x3d4206)=>{this[_0x5f04('0x2d')][_0x5f04('0x26')](_0x3c0c4a),this[_0x5f04('0x16')](),_0x3d4206();});}['_detachListeners'](_0x252948){this['stopListening'](_0x252948);}}
23
+ const _0x1638=['get','bodyCollection','addEventListener','_updateBalloonPosition','remove','attachToDom','ck-sidebar--narrow','listenTo','element','_annotations','blur','has','target','_showBalloon','_attachListeners','stop','_domEmitter','_annotationToNarrowView','locale','delete','Esc','defaultPositions','stopListening','context','resize','unpin','set','_setSelectedAnnotations','isVisible','_refreshPositioningDebounced','narrowsidebar-detach-not-attached','_refreshPositioning','find','_selectedAnnotations','getByView','requires','hasDomSelection','_manuallyClosedAnnotationViews','setActiveAnnotation','isAttached','balloonPanelView','EditorAnnotations','_hideBalloon','view','northArrowSouthWest','preventDefault','clear','focusableElements','change:container','content','destroy','plugins','northArrowSouthEast','from','low','first','editors','preventClosingBalloon','add','southArrowNorthWest','attach','getSidebarItemView','bind','activeAnnotation','rearrange','narrowsidebar-attach-already-attached','init','length','isDirty','focus','_attachToContainer','pin','_detachFromContainer','_destroyEditorAnnotationsIntegration','_detachListeners','detach','getOrderedSelectedAnnotations','type','values','uiUpdate','cancel','refresh','_editorAnnotations','contains','southArrowNorthEast','addAnnotation','includes','off','_integrateWithEditorAnnotations','annotations','NarrowSidebar','pluginName','high','ready','stopPropagation','number'];(function(_0x201a71,_0x163807){const _0x58f03a=function(_0x2e6fed){while(--_0x2e6fed){_0x201a71['push'](_0x201a71['shift']());}};_0x58f03a(++_0x163807);}(_0x1638,0xea));const _0x58f0=function(_0x201a71,_0x163807){_0x201a71=_0x201a71-0x0;let _0x58f03a=_0x1638[_0x201a71];return _0x58f03a;};import{ContextPlugin as _0x267eba,Context as _0x4d72b2}from'ckeditor5/src/core.js';import _0x13e431 from'./annotationsuis.js';import _0x4093bc from'./sidebar.js';import _0x3be93c from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x35d7eb,BodyCollection as _0x5aaa0c}from'ckeditor5/src/ui.js';import{CKEditorError as _0x299493,DomEmitterMixin as _0x274e43,keyCodes as _0x258493,Collection as _0x5e1622}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x5b7377}from'lodash-es';import _0x2ce9de from'./editorannotations.js';export default class i extends _0x267eba{static get[_0x58f0('0x59')](){return[_0x4093bc,_0x13e431];}static get[_0x58f0('0x31')](){return _0x58f0('0x30');}constructor(_0x37288d){super(_0x37288d),this['isAttached']=!0x1,this[_0x58f0('0x5b')]=new Set(),this[_0x58f0('0x46')]=Object['create'](_0x274e43),this['_annotationToNarrowView']=new Map(),this[_0x58f0('0x50')](_0x58f0('0x15'),null),this[_0x58f0('0x2f')]=null,this[_0x58f0('0x57')]=[],this[_0x58f0('0x28')]=new _0x5e1622(),this[_0x58f0('0x53')]=_0x5b7377(()=>{this[_0x58f0('0x55')]();},0xfa,{'leading':!0x1});}[_0x58f0('0x18')](){this['context']['plugins'][_0x58f0('0x36')](_0x13e431)['register']('narrowSidebar',this),this[_0x58f0('0x37')]=new _0x5aaa0c(this['context'][_0x58f0('0x48')]),this[_0x58f0('0x5e')]=new _0x35d7eb(this['context'][_0x58f0('0x48')]),this['bodyCollection'][_0x58f0('0x3b')](),this['bodyCollection'][_0x58f0('0x10')](this['balloonPanelView']);}[_0x58f0('0x12')](_0x442b16){this[_0x58f0('0x2f')]=_0x442b16;const _0x58f894=this['context'][_0x58f0('0x9')][_0x58f0('0x36')](_0x4093bc),_0x485ab6=this[_0x58f0('0x5e')];if(_0x58f894[_0x58f0('0x3f')]=_0x442b16,this[_0x58f0('0x5d')])throw new _0x299493(_0x58f0('0x17'),this);this[_0x58f0('0x5d')]=!0x0,this[_0x58f0('0x3d')](_0x58f894,'set:container',()=>{this[_0x58f0('0x21')](),this['listenTo'](_0x58f894,_0x58f0('0x6'),_0x2befeb=>{_0x2befeb[_0x58f0('0x2d')](),this[_0x58f0('0x12')](_0x442b16);});}),_0x58f894[_0x58f0('0x1c')]({'viewClass':_0x58f0('0x3c'),'spaceBetweenItems':0x5});const _0x51dd4c=_0x4d491b=>{const _0x43f3f9=new _0x3be93c(this['context'][_0x58f0('0x48')]);_0x58f894[_0x58f0('0x2b')](_0x4d491b,_0x43f3f9),this['_annotationToNarrowView'][_0x58f0('0x50')](_0x4d491b,_0x43f3f9),_0x43f3f9[_0x58f0('0x14')](_0x58f0('0x1a'),'annotationType',_0x58f0('0x35'))['to'](_0x4d491b[_0x58f0('0x1')],_0x58f0('0x1a'),_0x58f0('0x23'),_0x58f0('0x19')),_0x43f3f9['on']('execute',()=>{this[_0x58f0('0x5b')][_0x58f0('0x4')](),_0x485ab6[_0x58f0('0x7')][_0x58f0('0xd')]!==_0x4d491b[_0x58f0('0x1')]?(this[_0x58f0('0x43')](_0x4d491b),_0x4d491b[_0x58f0('0x1')][_0x58f0('0x3e')][_0x58f0('0x1b')](),this[_0x58f0('0x5c')](_0x4d491b)):this[_0x58f0('0x5c')](null);});};for(const _0x2a2bc4 of _0x442b16)_0x51dd4c(_0x2a2bc4);this[_0x58f0('0x3d')](_0x442b16,_0x58f0('0x10'),(_0x439244,_0x3e7a97)=>{_0x51dd4c(_0x3e7a97);}),this[_0x58f0('0x3d')](_0x442b16,'remove',(_0x35ddfc,_0x117c15,_0x3cf952)=>{this[_0x58f0('0x47')][_0x58f0('0x36')](_0x117c15)[_0x58f0('0x8')](),this[_0x58f0('0x47')]['delete'](_0x117c15),_0x58f894[_0x58f0('0x16')]({'removedAnnotation':_0x117c15,'previousAnnotation':_0x442b16['get'](_0x3cf952-0x1),'nextAnnotation':_0x442b16['get'](_0x3cf952+0x1)}),_0x117c15===this[_0x58f0('0x15')]&&this[_0x58f0('0x5c')](null);},{'priority':_0x58f0('0xc')}),this['listenTo'](_0x442b16,_0x58f0('0x1b'),(_0x149a0a,_0x165404)=>{this[_0x58f0('0x5c')](_0x165404);}),this[_0x58f0('0x3d')](_0x442b16,_0x58f0('0x40'),()=>{this[_0x58f0('0x5c')](null);}),this[_0x58f0('0x46')][_0x58f0('0x3d')](document,'keydown',(_0x15358f,_0x1853fb)=>{_0x1853fb['keyCode']===_0x258493['esc']&&_0x485ab6[_0x58f0('0x52')]&&(this[_0x58f0('0x5b')]['add'](_0x485ab6[_0x58f0('0x7')]['first']),this['_hideBalloon'](),_0x1853fb[_0x58f0('0x34')](),_0x1853fb[_0x58f0('0x3')]());}),this['_domEmitter'][_0x58f0('0x3d')](document,'mousedown',(_0x13fce4,_0x811088)=>{const _0x213609=_0x811088[_0x58f0('0x42')];_0x485ab6[_0x58f0('0x52')]&&_0x485ab6[_0x58f0('0x3e')][_0x58f0('0x29')](_0x213609)||_0x58f894[_0x58f0('0x1')][_0x58f0('0x3e')][_0x58f0('0x29')](_0x213609)||_0x13fce4[_0x58f0('0xf')]||this[_0x58f0('0x15')]&&this[_0x58f0('0x15')][_0x58f0('0x5')][_0x58f0('0x56')](_0x41be4a=>_0x41be4a[_0x58f0('0x29')](_0x213609))||(this[_0x58f0('0x5b')]['clear'](),this[_0x58f0('0x0')](),this[_0x58f0('0x5c')](null));});const _0x8abd23=this[_0x58f0('0x4d')]instanceof _0x4d72b2?this[_0x58f0('0x4d')][_0x58f0('0xe')]:new _0x5e1622([this[_0x58f0('0x4d')]]);for(const _0x44b0e4 of _0x8abd23)this[_0x58f0('0x2e')](_0x44b0e4);this['listenTo'](_0x8abd23,'add',(_0x15c98e,_0x476cac)=>{this['listenTo'](_0x476cac,_0x58f0('0x33'),()=>{this['_integrateWithEditorAnnotations'](_0x476cac);});}),this['listenTo'](_0x8abd23,_0x58f0('0x3a'),(_0x323521,_0x3b99f8)=>{_0x3b99f8[_0x58f0('0x9')][_0x58f0('0x41')]('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3b99f8['plugins'][_0x58f0('0x36')](_0x58f0('0x5f')));}),window[_0x58f0('0x38')]('resize',this[_0x58f0('0x53')]),this['_refreshPositioning']();}[_0x58f0('0x5c')](_0x219503){if(_0x219503===this[_0x58f0('0x15')])return;const _0x3bb613=this[_0x58f0('0x4d')][_0x58f0('0x9')][_0x58f0('0x36')](_0x4093bc);if(_0x3bb613[_0x58f0('0x27')]({'blurredAnnotation':this[_0x58f0('0x15')],'activatedAnnotation':_0x219503,'disableAnimationOnActivatedAnnotation':!0x0}),_0x219503)_0x3bb613[_0x58f0('0x13')](_0x219503)?this['_showBalloon'](_0x219503):this[_0x58f0('0x0')]();else this[_0x58f0('0x0')]();this[_0x58f0('0x15')]=_0x219503;}[_0x58f0('0x21')](){if(!this['isAttached'])throw new _0x299493(_0x58f0('0x54'),this);this[_0x58f0('0x5c')](null);const _0xb64f13=this[_0x58f0('0x4d')][_0x58f0('0x9')][_0x58f0('0x36')](_0x4093bc);this['_hideBalloon'](),Array['from'](this[_0x58f0('0x47')][_0x58f0('0x24')](),_0x26fabc=>_0x26fabc[_0x58f0('0x8')]()),this['_annotationToNarrowView'][_0x58f0('0x4')](),_0xb64f13[_0x58f0('0x1e')](this[_0x58f0('0x2f')]),this[_0x58f0('0x4c')](),this[_0x58f0('0x46')][_0x58f0('0x4c')](),this[_0x58f0('0x4d')]instanceof _0x4d72b2&&this[_0x58f0('0x4c')](this['context'][_0x58f0('0xe')]);for(const _0x1e736c of Array[_0x58f0('0xb')](this[_0x58f0('0x28')]))this[_0x58f0('0x1f')](_0x1e736c);window['removeEventListener'](_0x58f0('0x4e'),this[_0x58f0('0x53')]),this[_0x58f0('0x53')][_0x58f0('0x26')](),this[_0x58f0('0x57')]=[],this[_0x58f0('0x5d')]=!0x1,this[_0x58f0('0x2f')]=null;}[_0x58f0('0x8')](){this[_0x58f0('0x5d')]&&this['detach'](),this['bodyCollection']['detachFromDom']();}[_0x58f0('0x2e')](_0x1ed8bd){const _0x5f4a28=_0x1ed8bd['plugins']['get'](_0x2ce9de),_0x549065=this[_0x58f0('0x4d')][_0x58f0('0x9')]['get'](_0x4093bc),_0x2ec68b=this['annotations'],_0x342632=this['balloonPanelView'],_0x4019a4=()=>{const _0x4af89c=_0x5f4a28[_0x58f0('0x22')]({'annotations':this[_0x58f0('0x2f')],'activeAnnotation':this[_0x58f0('0x15')]});this[_0x58f0('0x51')](_0x4af89c),this[_0x58f0('0x5c')](_0x4af89c[0x0]||null);};this['listenTo'](_0x5f4a28,_0x58f0('0x27'),_0x4019a4),this[_0x58f0('0x3d')](_0x5f4a28,_0x58f0('0x40'),(_0x32e475,{isAnnotationTracked:_0x55d1f0})=>{this[_0x58f0('0x15')]&&_0x55d1f0(this[_0x58f0('0x15')])&&(this[_0x58f0('0x51')]([]),this[_0x58f0('0x5c')](null));}),this[_0x58f0('0x3d')](_0x5f4a28,_0x58f0('0x25'),()=>{this[_0x58f0('0x53')]();}),this[_0x58f0('0x3d')](_0x2ec68b,_0x58f0('0x40'),_0x183b42=>{_0x5f4a28[_0x58f0('0x5a')]()&&_0x183b42[_0x58f0('0x45')]();},{'priority':_0x58f0('0x32')}),this[_0x58f0('0x3d')](this[_0x58f0('0x46')],'mousedown',(_0x2a1cae,_0x7dd2f)=>{const _0x4354e5=_0x7dd2f[_0x58f0('0x42')];_0x342632[_0x58f0('0x52')]&&_0x342632['element'][_0x58f0('0x29')](_0x4354e5)||_0x549065['view'][_0x58f0('0x3e')][_0x58f0('0x29')](_0x4354e5)||this['activeAnnotation']&&_0x5f4a28[_0x58f0('0x5a')]()&&(_0x4019a4(),_0x2a1cae[_0x58f0('0xf')]=!0x0);},{'priority':'high'}),this['_editorAnnotations'][_0x58f0('0x10')](_0x5f4a28);}[_0x58f0('0x1f')](_0x49a04d){_0x49a04d&&(this[_0x58f0('0x4c')](_0x49a04d),this[_0x58f0('0x28')]['remove'](_0x49a04d));}[_0x58f0('0x51')](_0x4d70e4){for(const _0x2a6d1f of this[_0x58f0('0x57')])_0x4d70e4[_0x58f0('0x2c')](_0x2a6d1f)||this[_0x58f0('0x5b')][_0x58f0('0x49')](_0x2a6d1f[_0x58f0('0x1')]);this['_selectedAnnotations']=_0x4d70e4;}[_0x58f0('0x55')](){const _0x78c1b6=this[_0x58f0('0x5e')];this['annotations']['refreshPositioning'](),_0x78c1b6[_0x58f0('0x52')]&&this[_0x58f0('0x39')]();}[_0x58f0('0x43')](_0x1f8f36){if(this['_manuallyClosedAnnotationViews']['has'](_0x1f8f36[_0x58f0('0x1')]))return;const _0x1fc792=this['balloonPanelView'][_0x58f0('0x7')][_0x58f0('0xd')];_0x1fc792!==_0x1f8f36[_0x58f0('0x1')]?(_0x1fc792&&this['_detachListeners'](_0x1fc792),this[_0x58f0('0x44')](_0x1f8f36['view']),this[_0x58f0('0x5e')][_0x58f0('0x7')][_0x58f0('0x4')](),this[_0x58f0('0x5e')][_0x58f0('0x7')]['add'](_0x1f8f36['view']),this[_0x58f0('0x39')]()):this[_0x58f0('0x39')]();}[_0x58f0('0x39')](){const _0x13347e=this[_0x58f0('0x5e')]['content'][_0x58f0('0xd')],_0x3dbc93=_0x13347e&&this[_0x58f0('0x2f')][_0x58f0('0x58')](_0x13347e);if(!_0x3dbc93||!this[_0x58f0('0x47')][_0x58f0('0x41')](_0x3dbc93))return;const _0x35b00b=this['_annotationToNarrowView'][_0x58f0('0x36')](_0x3dbc93)[_0x58f0('0x3e')],_0x336095=function(){const _0x3267cc=_0x35d7eb[_0x58f0('0x4b')];return[_0x3267cc[_0x58f0('0x2a')],_0x3267cc[_0x58f0('0xa')],_0x3267cc['southArrowNorth'],_0x3267cc['northArrowSouth'],_0x3267cc[_0x58f0('0x11')],_0x3267cc[_0x58f0('0x2')]];}();this[_0x58f0('0x5e')][_0x58f0('0x1d')]({'target':_0x35b00b,'positions':_0x336095});}[_0x58f0('0x0')](){const _0x47232c=this['balloonPanelView'],_0x40ac06=_0x47232c[_0x58f0('0x7')]['first'];_0x40ac06&&(this['_detachListeners'](_0x40ac06),_0x47232c[_0x58f0('0x4f')](),_0x47232c['content']['clear']());}['_attachListeners'](_0x293e42){this[_0x58f0('0x3d')](_0x293e42,'change:height',()=>this[_0x58f0('0x39')]()),this[_0x58f0('0x3d')](_0x293e42,_0x58f0('0x4a'),(_0x5cfbf5,_0x2cf17d)=>{this[_0x58f0('0x5b')][_0x58f0('0x10')](_0x293e42),this['_hideBalloon'](),_0x2cf17d();});}[_0x58f0('0x20')](_0x20d426){this[_0x58f0('0x4c')](_0x20d426);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48c0=['clear','class','change:targetRect','destroy','_annotations','push','element','unbind','max','_getMaxAvailableTop','bottom','_alignForBottomChange','_alignAfterItem','get','init','_destroySidebarItemView','content','listenTo','updateHeight','sidebar.container','_getTargetTop','delete','_getItemBefore','_createSidebarView','getSidebarItemView','sidebar.preventScrollOutOfView','_activeAnnotation','_detachFromContainer','list','_attachToContainer','_alignBeforeItem','change:bottom','bind','change:top','_annotationToSidebarItemView','_getItemAfter','_alignToTargetRect','_lastItem','refresh','view','render','_recalculateBuffer','height','_setItemTop','sidebar-attachtocontainer-missing-container','length','Sidebar','getIndex','_alignForTopChange','minHeight','target','nodeType','_spaceBetweenItems','top','isAnimationDisabled','add','_sidebarItemViewToAnnotation','stopListening','_targetTop','remove','last','isActive','container','locale','setContainer','targetRect','context','object','change:_lastItem','_updateLastItem','sidebar-setcontainer-invalid-element','_recalculate','config','define'];(function(_0x513cd3,_0x48c094){const _0x2c0039=function(_0x3120f4){while(--_0x3120f4){_0x513cd3['push'](_0x513cd3['shift']());}};_0x2c0039(++_0x48c094);}(_0x48c0,0x79));const _0x2c00=function(_0x513cd3,_0x48c094){_0x513cd3=_0x513cd3-0x0;let _0x2c0039=_0x48c0[_0x513cd3];return _0x2c0039;};import{ContextPlugin as _0x296492}from'ckeditor5/src/core.js';import{Rect as _0x4b0cf6,CKEditorError as _0x579598}from'ckeditor5/src/utils.js';import _0x28819d from'./view/sidebarview.js';import _0x40879e from'./view/sidebaritemview.js';export default class z extends _0x296492{static get['pluginName'](){return _0x2c00('0x49');}constructor(_0x59b879){super(_0x59b879),this['set'](_0x2c00('0x40'),void 0x0),this[_0x2c00('0x42')]=this[_0x2c00('0x32')](),this['set'](_0x2c00('0xf'),null),this[_0x2c00('0x5')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x2c00('0x3d')]=new Map(),this['context'][_0x2c00('0x19')][_0x2c00('0x1a')](_0x2c00('0x34'),!0x1),this[_0x2c00('0x1f')]=null,this[_0x2c00('0x35')]=null,this[_0x2c00('0x44')]=[];}[_0x2c00('0x29')](){const _0x413818=this[_0x2c00('0x13')][_0x2c00('0x19')][_0x2c00('0x28')](_0x2c00('0x2e'));_0x413818&&this[_0x2c00('0x11')](_0x413818);}[_0x2c00('0x11')](_0x357a45){if(!y(_0x357a45))throw new _0x579598(_0x2c00('0x17'));this[_0x2c00('0xf')]=_0x357a45;}[_0x2c00('0x38')]({viewClass:_0x5efeb9='',spaceBetweenItems:_0x54235a=0x19}={}){if(!y(this[_0x2c00('0xf')]))throw new _0x579598(_0x2c00('0x47'),this);this[_0x2c00('0xf')]['appendChild'](this[_0x2c00('0x42')][_0x2c00('0x21')]),this[_0x2c00('0x42')][_0x2c00('0x1c')]=_0x5efeb9,this[_0x2c00('0x5')]=_0x54235a;}['rearrange']({removedAnnotation:_0x1c53f3,previousAnnotation:_0x38a418,nextAnnotation:_0x23716d}){const _0xe79fd8=this['getSidebarItemView'](_0x1c53f3);this['view'][_0x2c00('0x37')][_0x2c00('0xc')](_0xe79fd8),this[_0x2c00('0x2a')](_0x1c53f3),_0x38a418&&this[_0x2c00('0x3f')](this[_0x2c00('0x33')](_0x38a418)),_0x23716d&&this['_alignToTargetRect'](this[_0x2c00('0x33')](_0x23716d)),this[_0x2c00('0x16')]();}[_0x2c00('0x41')]({blurredAnnotation:_0x15285e,activatedAnnotation:_0x2e209b,disableAnimationOnActivatedAnnotation:_0x4a0032}){if(this[_0x2c00('0x35')]=_0x2e209b,_0x15285e){_0x15285e[_0x2c00('0xe')]=!0x1;const _0x2067c8=this['getSidebarItemView'](_0x15285e);_0x2067c8&&_0x4a0032&&(_0x2067c8[_0x2c00('0x7')]=!0x1);}if(_0x2e209b){const _0x405793=this['getSidebarItemView'](_0x2e209b);_0x405793&&(_0x2e209b[_0x2c00('0xe')]=!0x0,_0x4a0032&&(_0x405793[_0x2c00('0x7')]=!0x0,_0x405793[_0x2c00('0x6')]+=0x1),this[_0x2c00('0x3f')](_0x405793));}}[_0x2c00('0x36')](_0x11de96){if(this['view'][_0x2c00('0x21')]['remove'](),_0x11de96)for(const _0x2aac27 of _0x11de96)this[_0x2c00('0x2a')](_0x2aac27);this['view']['list'][_0x2c00('0x1b')](),this['view'][_0x2c00('0x1c')]='',this['_lastItem']=null;}['addAnnotation'](_0x960a7c,_0x388778){_0x388778||(_0x388778=_0x960a7c['view']);const _0x2a6577=new _0x40879e(this[_0x2c00('0x13')][_0x2c00('0x10')]);this[_0x2c00('0x9')]['set'](_0x2a6577,_0x960a7c),this['_annotationToSidebarItemView']['set'](_0x960a7c,_0x2a6577),_0x2a6577[_0x2c00('0x2b')][_0x2c00('0x8')](_0x388778),this['listenTo'](_0x960a7c[_0x2c00('0x42')],_0x2c00('0x1d'),(_0xf5e54d,_0x198bdd,_0xe6cd37)=>{const _0x3cd026=this[_0x2c00('0x2f')](_0x960a7c,_0xe6cd37);_0x2a6577[_0x2c00('0xb')]!=_0x3cd026&&(_0x2a6577[_0x2c00('0xb')]=_0x3cd026,this[_0x2c00('0x46')](_0x2a6577,_0x3cd026));}),this[_0x2c00('0x2c')](_0x2a6577,_0x2c00('0x3c'),()=>{this['_recalculate'](_0x2a6577,'top');}),this[_0x2c00('0x2c')](_0x2a6577,_0x2c00('0x3a'),()=>{this[_0x2c00('0x18')](_0x2a6577,'bottom');}),this[_0x2c00('0x3f')](_0x2a6577);const _0x227b28=this[_0x2c00('0x31')](_0x2a6577);if(_0x227b28)this[_0x2c00('0x27')](_0x227b28,_0x2a6577)||this[_0x2c00('0x3f')](_0x2a6577);else this[_0x2c00('0x3f')](_0x2a6577);return this[_0x2c00('0x16')](),this[_0x2c00('0x42')][_0x2c00('0x37')]['add'](_0x2a6577),_0x2a6577;}[_0x2c00('0x1')](_0xee09ce){if(!_0xee09ce[_0x2c00('0x2b')]['length'])return;const _0x9c5725=this[_0x2c00('0x31')](_0xee09ce);if(!_0x9c5725)return;const _0x4c7c7e=this[_0x2c00('0x9')][_0x2c00('0x28')](_0x9c5725),_0x5d0cc3=this['_activeAnnotation'];_0x5d0cc3&&_0x5d0cc3===_0x4c7c7e?this[_0x2c00('0x27')](_0x9c5725,_0xee09ce):this[_0x2c00('0x39')](_0xee09ce,_0x9c5725);}[_0x2c00('0x26')](_0x563b2d){if(!_0x563b2d['content'][_0x2c00('0x48')])return;const _0x1b849f=this[_0x2c00('0x3e')](_0x563b2d);if(!_0x1b849f)return;const _0x37f0a4=this[_0x2c00('0x9')][_0x2c00('0x28')](_0x1b849f),_0xc3e77d=this[_0x2c00('0x13')][_0x2c00('0x19')][_0x2c00('0x28')](_0x2c00('0x34')),_0x190748=this[_0x2c00('0x35')];_0x190748&&_0x190748===_0x37f0a4&&_0xc3e77d?(this[_0x2c00('0x39')](_0x1b849f,_0x563b2d),this['_alignAfterItem'](_0x563b2d,_0x1b849f)):_0x190748&&_0x190748===_0x37f0a4?this[_0x2c00('0x39')](_0x1b849f,_0x563b2d):this[_0x2c00('0x27')](_0x563b2d,_0x1b849f);}['_recalculate'](_0x49f228,_0x2a3e37){0x0===this[_0x2c00('0x44')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0xb0e57a,changedProp:_0x406dd2}of this['_recalculateBuffer'])_0x2c00('0x6')===_0x406dd2?this[_0x2c00('0x1')](_0xb0e57a):this[_0x2c00('0x26')](_0xb0e57a);this['_recalculateBuffer']=[];},0xa),this[_0x2c00('0x44')][_0x2c00('0x20')]({'sidebarItemView':_0x49f228,'changedProp':_0x2a3e37});}[_0x2c00('0x33')](_0x14a440){return this[_0x2c00('0x3d')][_0x2c00('0x28')](_0x14a440);}[_0x2c00('0x1e')](){this[_0x2c00('0xa')](),this[_0x2c00('0x42')][_0x2c00('0x1e')]();}[_0x2c00('0x2a')](_0xfb5e7c){const _0x67accf=this[_0x2c00('0x33')](_0xfb5e7c);this[_0x2c00('0xa')](_0x67accf),this[_0x2c00('0xa')](_0xfb5e7c['view']),_0x67accf['destroy'](),this[_0x2c00('0x3d')][_0x2c00('0x30')](_0xfb5e7c),this[_0x2c00('0x9')]['delete'](_0x67accf);}[_0x2c00('0x32')](){const _0x4c6c14=new _0x28819d(this['context'][_0x2c00('0x10')]);return _0x4c6c14[_0x2c00('0x43')](),this['on'](_0x2c00('0x15'),(_0x26cf3e,_0x1696cb,_0xee3827,_0x45a252)=>{_0x45a252&&_0x4c6c14[_0x2c00('0x22')](_0x2c00('0x2')),_0xee3827?_0x4c6c14[_0x2c00('0x3b')](_0x2c00('0x2'))['to'](_0xee3827,'bottom'):_0x4c6c14[_0x2c00('0x2')]=null;}),_0x4c6c14;}[_0x2c00('0x16')](){var _0x4fdf2b;this[_0x2c00('0x40')]=(null===(_0x4fdf2b=this['_annotations'])||void 0x0===_0x4fdf2b?void 0x0:_0x4fdf2b[_0x2c00('0xd')])?this['getSidebarItemView'](this[_0x2c00('0x1f')][_0x2c00('0xd')]):null;}[_0x2c00('0x31')](_0x13b7a7){var _0x5cdc6c;const _0x33a196=this[_0x2c00('0x9')][_0x2c00('0x28')](_0x13b7a7),_0x4c8550=_0x33a196&&(null===(_0x5cdc6c=this[_0x2c00('0x1f')])||void 0x0===_0x5cdc6c?void 0x0:_0x5cdc6c[_0x2c00('0x28')](this['_annotations'][_0x2c00('0x0')](_0x33a196)-0x1));return _0x4c8550&&this[_0x2c00('0x33')](_0x4c8550)||null;}[_0x2c00('0x3e')](_0x3425ed){var _0xc1cc92;const _0x1cfb29=this['_sidebarItemViewToAnnotation'][_0x2c00('0x28')](_0x3425ed),_0x3221d6=_0x1cfb29&&(null===(_0xc1cc92=this[_0x2c00('0x1f')])||void 0x0===_0xc1cc92?void 0x0:_0xc1cc92['get'](this[_0x2c00('0x1f')][_0x2c00('0x0')](_0x1cfb29)+0x1));return _0x3221d6&&this['getSidebarItemView'](_0x3221d6)||null;}['_alignBeforeItem'](_0x24b628,_0x1112ac){_0x24b628[_0x2c00('0x2d')]();const _0x719874=M(_0x1112ac[_0x2c00('0x25')]+this[_0x2c00('0x5')],_0x24b628[_0x2c00('0x6')]);return!!_0x719874&&(this[_0x2c00('0x46')](_0x1112ac,_0x1112ac[_0x2c00('0x6')]-_0x719874),!0x0);}[_0x2c00('0x27')](_0x2132ff,_0x38b446){_0x2132ff['updateHeight']();const _0x58d7f9=M(_0x2132ff[_0x2c00('0x25')]+this[_0x2c00('0x5')],_0x38b446[_0x2c00('0x6')]);return!!_0x58d7f9&&(this[_0x2c00('0x46')](_0x38b446,_0x38b446['top']+_0x58d7f9,!0x1),!0x0);}['_alignToTargetRect'](_0x1b5ba7){const _0xcd3438=this['_sidebarItemViewToAnnotation']['get'](_0x1b5ba7);if(!_0xcd3438||!_0xcd3438[_0x2c00('0x3')]||!_0xcd3438[_0x2c00('0x12')])return;const _0x4013d9=this[_0x2c00('0x2f')](_0xcd3438,_0xcd3438[_0x2c00('0x12')]);this[_0x2c00('0x46')](_0x1b5ba7,_0x4013d9);}[_0x2c00('0x2f')](_0x2afb62,_0x4d5abe){if(null===_0x4d5abe)return 0x0;if(_0x2afb62['target']instanceof _0x4b0cf6)return _0x4d5abe[_0x2c00('0x6')];{const _0x3649b5=new _0x4b0cf6(this[_0x2c00('0x42')][_0x2c00('0x21')])[_0x2c00('0x6')];return _0x4d5abe[_0x2c00('0x6')]-_0x3649b5;}}[_0x2c00('0x46')](_0x2ef971,_0x40d8e8,_0x375c7f=this[_0x2c00('0x13')][_0x2c00('0x19')]['get']('sidebar.preventScrollOutOfView')){_0x375c7f&&(_0x40d8e8=Math[_0x2c00('0x23')](_0x40d8e8,this[_0x2c00('0x24')](_0x2ef971))),_0x2ef971[_0x2c00('0x6')]=_0x40d8e8;}[_0x2c00('0x24')](_0x5597b9){let _0x12008a=this[_0x2c00('0x31')](_0x5597b9),_0x35074c=0x0;for(;_0x12008a;)_0x12008a[_0x2c00('0x2d')](),_0x35074c+=this['_spaceBetweenItems']+_0x12008a[_0x2c00('0x45')],_0x12008a=this[_0x2c00('0x31')](_0x12008a);return _0x35074c;}}function M(_0x1c961b,_0x2ceb9a){return Math[_0x2c00('0x23')](_0x1c961b-_0x2ceb9a,0x0);}function y(_0x593c85){return null!==_0x593c85&&_0x2c00('0x14')==typeof _0x593c85&&0x1===_0x593c85[_0x2c00('0x4')];}
23
+ const _0x3a0b=['isAnimationDisabled','sidebar.container','refresh','appendChild','get','listenTo','targetRect','rearrange','destroy','_setItemTop','_alignToTargetRect','max','_getTargetTop','addAnnotation','list','_getItemAfter','sidebar-attachtocontainer-missing-container','object','_alignForTopChange','_createSidebarView','nodeType','_recalculate','bind','top','_targetTop','delete','unbind','remove','setContainer','sidebar.preventScrollOutOfView','last','isActive','_lastItem','content','config','_annotations','getSidebarItemView','_recalculateBuffer','render','change:bottom','_alignAfterItem','_getItemBefore','add','_activeAnnotation','getIndex','bottom','define','_destroySidebarItemView','_spaceBetweenItems','length','_annotationToSidebarItemView','_detachFromContainer','element','_sidebarItemViewToAnnotation','init','_updateLastItem','stopListening','updateHeight','pluginName','minHeight','container','context','_getMaxAvailableTop','_attachToContainer','change:top','Sidebar','view','_alignBeforeItem','set','class','clear','_alignForBottomChange','change:targetRect','locale','sidebar-setcontainer-invalid-element'];(function(_0x376f0a,_0x3a0b72){const _0x1201c9=function(_0x525c70){while(--_0x525c70){_0x376f0a['push'](_0x376f0a['shift']());}};_0x1201c9(++_0x3a0b72);}(_0x3a0b,0x14d));const _0x1201=function(_0x376f0a,_0x3a0b72){_0x376f0a=_0x376f0a-0x0;let _0x1201c9=_0x3a0b[_0x376f0a];return _0x1201c9;};import{ContextPlugin as _0x50ad07}from'ckeditor5/src/core.js';import{Rect as _0x57ec7c,CKEditorError as _0x4edfc8}from'ckeditor5/src/utils.js';import _0x1201c1 from'./view/sidebarview.js';import _0x3bbe16 from'./view/sidebaritemview.js';export default class z extends _0x50ad07{static get[_0x1201('0x19')](){return _0x1201('0x20');}constructor(_0x66934a){super(_0x66934a),this[_0x1201('0x23')](_0x1201('0x4a'),void 0x0),this[_0x1201('0x21')]=this[_0x1201('0x3d')](),this['set'](_0x1201('0x1b'),null),this[_0x1201('0xf')]=0x19,this[_0x1201('0x14')]=new Map(),this[_0x1201('0x11')]=new Map(),this['context'][_0x1201('0x1')][_0x1201('0xd')](_0x1201('0x47'),!0x1),this[_0x1201('0x2')]=null,this[_0x1201('0xa')]=null,this[_0x1201('0x4')]=[];}[_0x1201('0x15')](){const _0xfdd605=this['context'][_0x1201('0x1')][_0x1201('0x2e')](_0x1201('0x2b'));_0xfdd605&&this[_0x1201('0x46')](_0xfdd605);}[_0x1201('0x46')](_0x16bb61){if(!y(_0x16bb61))throw new _0x4edfc8(_0x1201('0x29'));this[_0x1201('0x1b')]=_0x16bb61;}[_0x1201('0x1e')]({viewClass:_0x350867='',spaceBetweenItems:_0x27ea66=0x19}={}){if(!y(this[_0x1201('0x1b')]))throw new _0x4edfc8(_0x1201('0x3a'),this);this[_0x1201('0x1b')][_0x1201('0x2d')](this['view'][_0x1201('0x13')]),this['view'][_0x1201('0x24')]=_0x350867,this[_0x1201('0xf')]=_0x27ea66;}[_0x1201('0x31')]({removedAnnotation:_0x4b6b14,previousAnnotation:_0x369403,nextAnnotation:_0x2624be}){const _0x22c106=this['getSidebarItemView'](_0x4b6b14);this['view'][_0x1201('0x38')][_0x1201('0x45')](_0x22c106),this[_0x1201('0xe')](_0x4b6b14),_0x369403&&this[_0x1201('0x34')](this[_0x1201('0x3')](_0x369403)),_0x2624be&&this[_0x1201('0x34')](this['getSidebarItemView'](_0x2624be)),this[_0x1201('0x16')]();}[_0x1201('0x2c')]({blurredAnnotation:_0x4c09ef,activatedAnnotation:_0x45ffae,disableAnimationOnActivatedAnnotation:_0x5551c6}){if(this[_0x1201('0xa')]=_0x45ffae,_0x4c09ef){_0x4c09ef[_0x1201('0x49')]=!0x1;const _0x1984cf=this[_0x1201('0x3')](_0x4c09ef);_0x1984cf&&_0x5551c6&&(_0x1984cf['isAnimationDisabled']=!0x1);}if(_0x45ffae){const _0x1c17af=this[_0x1201('0x3')](_0x45ffae);_0x1c17af&&(_0x45ffae[_0x1201('0x49')]=!0x0,_0x5551c6&&(_0x1c17af[_0x1201('0x2a')]=!0x0,_0x1c17af[_0x1201('0x41')]+=0x1),this[_0x1201('0x34')](_0x1c17af));}}[_0x1201('0x12')](_0x283e83){if(this['view'][_0x1201('0x13')][_0x1201('0x45')](),_0x283e83)for(const _0x249e4b of _0x283e83)this[_0x1201('0xe')](_0x249e4b);this[_0x1201('0x21')][_0x1201('0x38')][_0x1201('0x25')](),this[_0x1201('0x21')][_0x1201('0x24')]='',this[_0x1201('0x4a')]=null;}[_0x1201('0x37')](_0xc702a9,_0x2fecde){_0x2fecde||(_0x2fecde=_0xc702a9[_0x1201('0x21')]);const _0x532b4d=new _0x3bbe16(this[_0x1201('0x1c')][_0x1201('0x28')]);this['_sidebarItemViewToAnnotation'][_0x1201('0x23')](_0x532b4d,_0xc702a9),this['_annotationToSidebarItemView'][_0x1201('0x23')](_0xc702a9,_0x532b4d),_0x532b4d[_0x1201('0x0')][_0x1201('0x9')](_0x2fecde),this[_0x1201('0x2f')](_0xc702a9[_0x1201('0x21')],_0x1201('0x27'),(_0x2fb2c6,_0x417252,_0x539491)=>{const _0x5e551f=this[_0x1201('0x36')](_0xc702a9,_0x539491);_0x532b4d[_0x1201('0x42')]!=_0x5e551f&&(_0x532b4d['_targetTop']=_0x5e551f,this[_0x1201('0x33')](_0x532b4d,_0x5e551f));}),this[_0x1201('0x2f')](_0x532b4d,_0x1201('0x1f'),()=>{this[_0x1201('0x3f')](_0x532b4d,_0x1201('0x41'));}),this[_0x1201('0x2f')](_0x532b4d,_0x1201('0x6'),()=>{this['_recalculate'](_0x532b4d,_0x1201('0xc'));}),this[_0x1201('0x34')](_0x532b4d);const _0x529772=this[_0x1201('0x8')](_0x532b4d);if(_0x529772)this[_0x1201('0x7')](_0x529772,_0x532b4d)||this['_alignToTargetRect'](_0x532b4d);else this[_0x1201('0x34')](_0x532b4d);return this['_updateLastItem'](),this[_0x1201('0x21')]['list']['add'](_0x532b4d),_0x532b4d;}[_0x1201('0x3c')](_0x18e046){if(!_0x18e046[_0x1201('0x0')][_0x1201('0x10')])return;const _0x5b5eec=this['_getItemBefore'](_0x18e046);if(!_0x5b5eec)return;const _0x1f44e8=this['_sidebarItemViewToAnnotation'][_0x1201('0x2e')](_0x5b5eec),_0x2a22b1=this[_0x1201('0xa')];_0x2a22b1&&_0x2a22b1===_0x1f44e8?this['_alignAfterItem'](_0x5b5eec,_0x18e046):this[_0x1201('0x22')](_0x18e046,_0x5b5eec);}[_0x1201('0x26')](_0x46dd07){if(!_0x46dd07['content'][_0x1201('0x10')])return;const _0x22b303=this[_0x1201('0x39')](_0x46dd07);if(!_0x22b303)return;const _0x21a01b=this[_0x1201('0x14')][_0x1201('0x2e')](_0x22b303),_0x3e88d6=this[_0x1201('0x1c')][_0x1201('0x1')][_0x1201('0x2e')](_0x1201('0x47')),_0x4b357c=this[_0x1201('0xa')];_0x4b357c&&_0x4b357c===_0x21a01b&&_0x3e88d6?(this[_0x1201('0x22')](_0x22b303,_0x46dd07),this[_0x1201('0x7')](_0x46dd07,_0x22b303)):_0x4b357c&&_0x4b357c===_0x21a01b?this[_0x1201('0x22')](_0x22b303,_0x46dd07):this[_0x1201('0x7')](_0x46dd07,_0x22b303);}['_recalculate'](_0x299e66,_0x5829c4){0x0===this[_0x1201('0x4')][_0x1201('0x10')]&&setTimeout(()=>{for(const {sidebarItemView:_0x27fa81,changedProp:_0x12d4fe}of this[_0x1201('0x4')])_0x1201('0x41')===_0x12d4fe?this['_alignForTopChange'](_0x27fa81):this[_0x1201('0x26')](_0x27fa81);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x299e66,'changedProp':_0x5829c4});}['getSidebarItemView'](_0xe34be0){return this['_annotationToSidebarItemView'][_0x1201('0x2e')](_0xe34be0);}['destroy'](){this[_0x1201('0x17')](),this[_0x1201('0x21')][_0x1201('0x32')]();}['_destroySidebarItemView'](_0x55fce7){const _0x48f670=this[_0x1201('0x3')](_0x55fce7);this[_0x1201('0x17')](_0x48f670),this[_0x1201('0x17')](_0x55fce7[_0x1201('0x21')]),_0x48f670[_0x1201('0x32')](),this[_0x1201('0x11')][_0x1201('0x43')](_0x55fce7),this[_0x1201('0x14')][_0x1201('0x43')](_0x48f670);}[_0x1201('0x3d')](){const _0x5df2c9=new _0x1201c1(this[_0x1201('0x1c')][_0x1201('0x28')]);return _0x5df2c9[_0x1201('0x5')](),this['on']('change:_lastItem',(_0x4f3e6e,_0x2b087e,_0xbebd8b,_0x4ba093)=>{_0x4ba093&&_0x5df2c9[_0x1201('0x44')](_0x1201('0x1a')),_0xbebd8b?_0x5df2c9[_0x1201('0x40')](_0x1201('0x1a'))['to'](_0xbebd8b,_0x1201('0xc')):_0x5df2c9['minHeight']=null;}),_0x5df2c9;}[_0x1201('0x16')](){var _0x4253c1;this[_0x1201('0x4a')]=(null===(_0x4253c1=this[_0x1201('0x2')])||void 0x0===_0x4253c1?void 0x0:_0x4253c1[_0x1201('0x48')])?this[_0x1201('0x3')](this[_0x1201('0x2')]['last']):null;}[_0x1201('0x8')](_0x3270fd){var _0x24a873;const _0x5cb8ac=this[_0x1201('0x14')][_0x1201('0x2e')](_0x3270fd),_0x1d8424=_0x5cb8ac&&(null===(_0x24a873=this[_0x1201('0x2')])||void 0x0===_0x24a873?void 0x0:_0x24a873[_0x1201('0x2e')](this['_annotations']['getIndex'](_0x5cb8ac)-0x1));return _0x1d8424&&this[_0x1201('0x3')](_0x1d8424)||null;}[_0x1201('0x39')](_0x1b686e){var _0x4d17fc;const _0x45efa3=this[_0x1201('0x14')][_0x1201('0x2e')](_0x1b686e),_0x54f209=_0x45efa3&&(null===(_0x4d17fc=this[_0x1201('0x2')])||void 0x0===_0x4d17fc?void 0x0:_0x4d17fc[_0x1201('0x2e')](this['_annotations'][_0x1201('0xb')](_0x45efa3)+0x1));return _0x54f209&&this['getSidebarItemView'](_0x54f209)||null;}[_0x1201('0x22')](_0x31d6b5,_0x40dd23){_0x31d6b5[_0x1201('0x18')]();const _0x48e937=M(_0x40dd23[_0x1201('0xc')]+this['_spaceBetweenItems'],_0x31d6b5['top']);return!!_0x48e937&&(this[_0x1201('0x33')](_0x40dd23,_0x40dd23[_0x1201('0x41')]-_0x48e937),!0x0);}[_0x1201('0x7')](_0x299486,_0x5c6baf){_0x299486[_0x1201('0x18')]();const _0x233d79=M(_0x299486[_0x1201('0xc')]+this['_spaceBetweenItems'],_0x5c6baf[_0x1201('0x41')]);return!!_0x233d79&&(this[_0x1201('0x33')](_0x5c6baf,_0x5c6baf[_0x1201('0x41')]+_0x233d79,!0x1),!0x0);}['_alignToTargetRect'](_0x42ff9e){const _0x48c07a=this['_sidebarItemViewToAnnotation'][_0x1201('0x2e')](_0x42ff9e);if(!_0x48c07a||!_0x48c07a['target']||!_0x48c07a[_0x1201('0x30')])return;const _0x3931e2=this[_0x1201('0x36')](_0x48c07a,_0x48c07a[_0x1201('0x30')]);this[_0x1201('0x33')](_0x42ff9e,_0x3931e2);}[_0x1201('0x36')](_0x117e90,_0x7f4ba2){if(null===_0x7f4ba2)return 0x0;if(_0x117e90['target']instanceof _0x57ec7c)return _0x7f4ba2[_0x1201('0x41')];{const _0x390bc5=new _0x57ec7c(this['view'][_0x1201('0x13')])[_0x1201('0x41')];return _0x7f4ba2[_0x1201('0x41')]-_0x390bc5;}}['_setItemTop'](_0x2dddbb,_0x18fdd4,_0x3a8dee=this['context']['config'][_0x1201('0x2e')](_0x1201('0x47'))){_0x3a8dee&&(_0x18fdd4=Math['max'](_0x18fdd4,this['_getMaxAvailableTop'](_0x2dddbb))),_0x2dddbb[_0x1201('0x41')]=_0x18fdd4;}[_0x1201('0x1d')](_0x57f9be){let _0x4da7d4=this['_getItemBefore'](_0x57f9be),_0x53c179=0x0;for(;_0x4da7d4;)_0x4da7d4[_0x1201('0x18')](),_0x53c179+=this[_0x1201('0xf')]+_0x4da7d4['height'],_0x4da7d4=this[_0x1201('0x8')](_0x4da7d4);return _0x53c179;}}function M(_0x34716f,_0x5053ca){return Math[_0x1201('0x35')](_0x34716f-_0x5053ca,0x0);}function y(_0x1f530a){return null!==_0x1f530a&&_0x1201('0x3b')==typeof _0x1f530a&&0x1===_0x1f530a[_0x1201('0x3e')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c43=['ck-annotation-counter__badge--edit-mode','isDirty','...','setTemplate','annotationType','_badge','bind','extendTemplate','span','children','add','bindTemplate','set','ck-annotation-counter__badge','counterView','number'];(function(_0x1ac432,_0x2c43b6){const _0x5b200f=function(_0x5a2c8e){while(--_0x5a2c8e){_0x1ac432['push'](_0x1ac432['shift']());}};_0x5b200f(++_0x2c43b6);}(_0x2c43,0xd4));const _0x5b20=function(_0x1ac432,_0x2c43b6){_0x1ac432=_0x1ac432-0x0;let _0x5b200f=_0x2c43[_0x1ac432];return _0x5b200f;};import{ButtonView as _0x9b82d3,View as _0x45225a}from'ckeditor5/src/ui.js';import _0x79bb89 from'../../../theme/icons/add-comment.svg';export default class D extends _0x9b82d3{constructor(_0x4f91bd){super(_0x4f91bd);const _0x235440=this[_0x5b20('0x7')];this[_0x5b20('0x8')](_0x5b20('0xd'),!0x1),this[_0x5b20('0x8')](_0x5b20('0xb'),0x0),this[_0x5b20('0x2')](_0x5b20('0x1'))['to'](this,_0x5b20('0xd'),this,'number',(_0x903b21,_0x1643ac)=>_0x903b21?_0x5b20('0xe'):_0x1643ac['toString']()),this['set'](_0x5b20('0x0'),''),this['icon']=_0x79bb89,this[_0x5b20('0x3')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x5b20('0xa')]=new _0x45225a(),this[_0x5b20('0xa')][_0x5b20('0xf')]({'tag':_0x5b20('0x4'),'attributes':{'class':[_0x5b20('0x9'),_0x235440['to'](_0x5b20('0x0'),_0x2208a9=>'ck-annotation-counter__badge--'+_0x2208a9),_0x235440['if'](_0x5b20('0xd'),_0x5b20('0xc'))]},'children':[{'text':_0x235440['to'](_0x5b20('0x1'))}]}),this[_0x5b20('0x5')][_0x5b20('0x6')](this[_0x5b20('0xa')]);}}
23
+ const _0x6a06=['isDirty','set','ck-annotation-counter__badge','add','ck-annotation-counter','number','children','bind','annotationType','toString','counterView','setTemplate','extendTemplate','ck-annotation-counter__badge--edit-mode'];(function(_0x7a259c,_0x6a06c7){const _0x12a1a=function(_0x424923){while(--_0x424923){_0x7a259c['push'](_0x7a259c['shift']());}};_0x12a1a(++_0x6a06c7);}(_0x6a06,0x84));const _0x12a1=function(_0x7a259c,_0x6a06c7){_0x7a259c=_0x7a259c-0x0;let _0x12a1a=_0x6a06[_0x7a259c];return _0x12a1a;};import{ButtonView as _0x4df6db,View as _0x59661f}from'ckeditor5/src/ui.js';import _0x4aad75 from'../../../theme/icons/add-comment.svg';export default class D extends _0x4df6db{constructor(_0x5d42cc){super(_0x5d42cc);const _0x5eddb1=this['bindTemplate'];this['set'](_0x12a1('0x8'),!0x1),this[_0x12a1('0x9')](_0x12a1('0xd'),0x0),this[_0x12a1('0x1')]('_badge')['to'](this,_0x12a1('0x8'),this,_0x12a1('0xd'),(_0x4bbb4c,_0x399416)=>_0x4bbb4c?'...':_0x399416[_0x12a1('0x3')]()),this[_0x12a1('0x9')]('annotationType',''),this['icon']=_0x4aad75,this[_0x12a1('0x6')]({'attributes':{'class':[_0x12a1('0xc')]}}),this['counterView']=new _0x59661f(),this['counterView'][_0x12a1('0x5')]({'tag':'span','attributes':{'class':[_0x12a1('0xa'),_0x5eddb1['to'](_0x12a1('0x2'),_0x417ab7=>'ck-annotation-counter__badge--'+_0x417ab7),_0x5eddb1['if']('isDirty',_0x12a1('0x7'))]},'children':[{'text':_0x5eddb1['to']('_badge')}]}),this[_0x12a1('0x0')][_0x12a1('0xb')](this[_0x12a1('0x4')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa09c=['ck-annotation-wrapper','destroy','targetRect','clientHeight','length','height','element','mainView','ck-annotation-wrapper--active','Esc','listenTo','setTemplate','add','keystrokes','ck-rounded-corners','isActive','set','render','_mutationObserver','div','content','focusTracker','type','attach','clear','bindTemplate','focus'];(function(_0x260009,_0xa09c8b){const _0x81e322=function(_0x5f296e){while(--_0x5f296e){_0x260009['push'](_0x260009['shift']());}};_0x81e322(++_0xa09c8b);}(_0xa09c,0x103));const _0x81e3=function(_0x260009,_0xa09c8b){_0x260009=_0x260009-0x0;let _0x81e322=_0xa09c[_0x260009];return _0x81e322;};import{View as _0x3d6ec8}from'ckeditor5/src/ui.js';import{FocusTracker as _0x2261e1,KeystrokeHandler as _0x318b81,uid as _0x2cd461}from'ckeditor5/src/utils.js';import _0x50e845 from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0x3d6ec8{constructor(_0x3561dc,_0x5c98c3){super(_0x3561dc),this['id']=_0x2cd461(),this[_0x81e3('0x5')]=new _0x2261e1(),this['keystrokes']=new _0x318b81(),this['keystrokes']['set'](_0x81e3('0x14'),(_0x29ec21,_0x2a417c)=>this['fire']('Esc',_0x2a417c)),this[_0x81e3('0x0')](_0x81e3('0xd'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x81e3('0x0')](_0x81e3('0x10'),0x0),this[_0x81e3('0x0')](_0x81e3('0x1a'),!0x1),this[_0x81e3('0x0')]('isDirty',!0x1),this[_0x81e3('0x0')](_0x81e3('0xf'),0x0),this[_0x81e3('0x0')](_0x81e3('0x6'),''),this[_0x81e3('0x2')]=_0x50e845(()=>this['_updateHeight']()),this[_0x81e3('0x4')]=this['createCollection'](),this[_0x81e3('0x4')][_0x81e3('0x17')](_0x5c98c3),this[_0x81e3('0x12')]=_0x5c98c3;const _0x303585=this[_0x81e3('0x9')];this[_0x81e3('0x16')]({'tag':_0x81e3('0x3'),'attributes':{'class':['ck',_0x81e3('0xb'),_0x81e3('0x19'),_0x303585['if'](_0x81e3('0x1a'),_0x81e3('0x13'))],'tabindex':-0x1},'children':this[_0x81e3('0x4')]});}['render'](){super[_0x81e3('0x1')](),this[_0x81e3('0x5')][_0x81e3('0x17')](this['element']),this[_0x81e3('0x18')][_0x81e3('0x15')](this[_0x81e3('0x11')]),this[_0x81e3('0x2')][_0x81e3('0x7')](this[_0x81e3('0x11')]);}[_0x81e3('0xc')](){this['content'][_0x81e3('0x8')](),this[_0x81e3('0x18')][_0x81e3('0xc')](),this[_0x81e3('0x5')]['destroy'](),this[_0x81e3('0x2')]['detach'](),super[_0x81e3('0xc')]();}[_0x81e3('0xa')](){this['element'][_0x81e3('0xa')]();}['_updateHeight'](){const _0x4db6c7=this['element'][_0x81e3('0xe')];_0x4db6c7&&(this[_0x81e3('0x10')]=_0x4db6c7);}}
23
+ const _0x1ac2=['bindTemplate','_updateHeight','set','createCollection','height','add','clear','focusTracker','isDirty','_mutationObserver','targetRect','ck-annotation-wrapper','setTemplate','ck-annotation-wrapper--active','mainView','type','clientHeight','content','focus','isActive','destroy','element','fire','Esc','attach','listenTo','keystrokes','length'];(function(_0x3496f2,_0x1ac208){const _0x2d46fc=function(_0x2eea84){while(--_0x2eea84){_0x3496f2['push'](_0x3496f2['shift']());}};_0x2d46fc(++_0x1ac208);}(_0x1ac2,0x141));const _0x2d46=function(_0x3496f2,_0x1ac208){_0x3496f2=_0x3496f2-0x0;let _0x2d46fc=_0x1ac2[_0x3496f2];return _0x2d46fc;};import{View as _0xc77db}from'ckeditor5/src/ui.js';import{FocusTracker as _0x38f1d0,KeystrokeHandler as _0x121b12,uid as _0x51bf8f}from'ckeditor5/src/utils.js';import _0x52e1cb from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0xc77db{constructor(_0x171052,_0x3426f8){super(_0x171052),this['id']=_0x51bf8f(),this[_0x2d46('0x16')]=new _0x38f1d0(),this['keystrokes']=new _0x121b12(),this[_0x2d46('0xd')][_0x2d46('0x11')](_0x2d46('0xa'),(_0x1863e0,_0x47f8e6)=>this[_0x2d46('0x9')]('Esc',_0x47f8e6)),this[_0x2d46('0x11')](_0x2d46('0x19'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x2d46('0x11')](_0x2d46('0x13'),0x0),this['set']('isActive',!0x1),this[_0x2d46('0x11')](_0x2d46('0x17'),!0x1),this['set'](_0x2d46('0xe'),0x0),this[_0x2d46('0x11')](_0x2d46('0x2'),''),this[_0x2d46('0x18')]=_0x52e1cb(()=>this[_0x2d46('0x10')]()),this[_0x2d46('0x4')]=this[_0x2d46('0x12')](),this[_0x2d46('0x4')][_0x2d46('0x14')](_0x3426f8),this[_0x2d46('0x1')]=_0x3426f8;const _0x1a44de=this[_0x2d46('0xf')];this[_0x2d46('0x1b')]({'tag':'div','attributes':{'class':['ck',_0x2d46('0x1a'),'ck-rounded-corners',_0x1a44de['if'](_0x2d46('0x6'),_0x2d46('0x0'))],'tabindex':-0x1},'children':this[_0x2d46('0x4')]});}['render'](){super['render'](),this['focusTracker'][_0x2d46('0x14')](this[_0x2d46('0x8')]),this[_0x2d46('0xd')][_0x2d46('0xc')](this[_0x2d46('0x8')]),this[_0x2d46('0x18')][_0x2d46('0xb')](this['element']);}[_0x2d46('0x7')](){this[_0x2d46('0x4')][_0x2d46('0x15')](),this['keystrokes'][_0x2d46('0x7')](),this[_0x2d46('0x16')][_0x2d46('0x7')](),this[_0x2d46('0x18')]['detach'](),super['destroy']();}[_0x2d46('0x5')](){this[_0x2d46('0x8')][_0x2d46('0x5')]();}[_0x2d46('0x10')](){const _0xcece87=this[_0x2d46('0x8')][_0x2d46('0x3')];_0xcece87&&(this[_0x2d46('0x13')]=_0xcece87);}}