@ckeditor/ckeditor5-comments 0.0.0-nightly-20230806.0 → 0.0.0-nightly-20230808.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 (45) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE.md +5 -5
  3. package/README.md +13 -13
  4. package/build/comments.js +1 -1
  5. package/package.json +3 -3
  6. package/src/annotations/annotation.js +1 -1
  7. package/src/annotations/annotationcollection.js +1 -1
  8. package/src/annotations/annotations.js +1 -1
  9. package/src/annotations/annotationsuis.js +1 -1
  10. package/src/annotations/editorannotations.js +1 -1
  11. package/src/annotations/inlineannotations.js +1 -1
  12. package/src/annotations/narrowsidebar.js +1 -1
  13. package/src/annotations/sidebar.js +1 -1
  14. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  15. package/src/annotations/view/annotationview.js +1 -1
  16. package/src/annotations/view/sidebaritemview.js +1 -1
  17. package/src/annotations/view/sidebarview.js +1 -1
  18. package/src/annotations/widesidebar.js +1 -1
  19. package/src/comments/addcommentthreadcommand.js +1 -1
  20. package/src/comments/commentsarchive.js +1 -1
  21. package/src/comments/commentsarchiveui.js +1 -1
  22. package/src/comments/commentsediting.js +1 -1
  23. package/src/comments/commentsrepository.js +1 -1
  24. package/src/comments/commentsui.js +1 -1
  25. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  26. package/src/comments/integrations/importword.js +1 -1
  27. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  28. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  29. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  30. package/src/comments/ui/commentthreadcontroller.js +1 -1
  31. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  32. package/src/comments/ui/view/basecommentview.js +1 -1
  33. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  34. package/src/comments/ui/view/commentcontentview.js +1 -1
  35. package/src/comments/ui/view/commentinputview.js +1 -1
  36. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  37. package/src/comments/ui/view/commentslistview.js +1 -1
  38. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  39. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  40. package/src/comments/ui/view/commentthreadview.js +1 -1
  41. package/src/comments/ui/view/commentview.js +1 -1
  42. package/src/comments.js +1 -1
  43. package/src/commentsonly.js +1 -1
  44. package/src/utils/common-translations.js +1 -1
  45. 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-20230806.0",
3
+ "version": "0.0.0-nightly-20230808.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -43,8 +43,8 @@
43
43
  "CHANGELOG.md"
44
44
  ],
45
45
  "dependencies": {
46
- "ckeditor5": "0.0.0-nightly-20230806.0",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20230806.0",
46
+ "ckeditor5": "0.0.0-nightly-20230808.0",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20230808.0",
48
48
  "lodash-es": "4.17.21"
49
49
  },
50
50
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16d3=['object','item','view','destroy','offsetParent','targetRect','_id','_target','nodeType','updateTargetRect','remove','_type','type','isActive','clear','getClientRects','add','focusableElements','focusTracker','mainView','element','innerView','_getNormalizedTarget','every','set','length','stopListening','isArray','_assertCorrectTarget','function','target'];(function(_0x3d3344,_0x16d338){const _0xa24ab1=function(_0x441a6f){while(--_0x441a6f){_0x3d3344['push'](_0x3d3344['shift']());}};_0xa24ab1(++_0x16d338);}(_0x16d3,0x165));const _0xa24a=function(_0x3d3344,_0x16d338){_0x3d3344=_0x3d3344-0x0;let _0xa24ab1=_0x16d3[_0x3d3344];return _0xa24ab1;};import{CKEditorError as _0xd384e3,Rect as _0x2fa583,Collection as _0x40db98,ObservableMixin as _0x3ef36e}from'ckeditor5/src/utils';export default class d extends _0x3ef36e(){constructor({view:_0x53a87d,target:_0x37f8b4,type:_0x5d40a3,isVisible:_0x4203bd=!0x0}){super(),this['view']=_0x53a87d,this[_0xa24a('0x11')][_0xa24a('0x4')]||this[_0xa24a('0x11')]['render'](),this[_0xa24a('0x1a')]=_0x5d40a3,this[_0xa24a('0x16')]=_0x37f8b4,d[_0xa24a('0xc')](this[_0xa24a('0x6')]()),this[_0xa24a('0x1')]=new _0x40db98([this[_0xa24a('0x11')][_0xa24a('0x4')]],{'idProperty':_0xa24a('0x15')}),this[_0xa24a('0x1')]['on'](_0xa24a('0x0'),(_0x5a52ed,_0x3112cf)=>{this[_0xa24a('0x11')][_0xa24a('0x2')][_0xa24a('0x0')](_0x3112cf);}),this[_0xa24a('0x1')]['on'](_0xa24a('0x19'),(_0x143455,_0x3cb00a)=>{this[_0xa24a('0x11')][_0xa24a('0x2')][_0xa24a('0x19')](_0x3cb00a);}),this[_0xa24a('0x8')]('isVisible',_0x4203bd);}get[_0xa24a('0x1b')](){return _0xa24a('0xd')==typeof this[_0xa24a('0x1a')]?this['_type']():this['_type'];}get[_0xa24a('0x5')](){return this['view'][_0xa24a('0x3')];}get[_0xa24a('0xe')](){const _0x3c3c5c=this[_0xa24a('0x6')]();return d[_0xa24a('0xc')](_0x3c3c5c),_0x3c3c5c;}get['targetRect'](){const _0x2d19be=this['target'];if(null===_0x2d19be)return null;if(_0x2d19be instanceof _0x2fa583)return _0x2d19be;const _0x5b5d96=_0x2d19be['filter'](_0x552176=>function(_0x2a83cd){const _0x12a34e=_0x2a83cd[_0xa24a('0x13')];if(_0x12a34e)return!0x0;const _0x18e04d=_0x2a83cd[_0xa24a('0x1e')]()[_0xa24a('0x10')](0x0);return!!_0x18e04d;}(_0x552176));return 0x0===_0x5b5d96[_0xa24a('0x9')]?null:new _0x2fa583(_0x5b5d96[0x0][_0xa24a('0x1e')]()[_0xa24a('0x10')](0x0));}get['isActive'](){return this['view'][_0xa24a('0x1c')];}set[_0xa24a('0x1c')](_0x33aa6e){this['view'][_0xa24a('0x1c')]=_0x33aa6e,this[_0xa24a('0x11')][_0xa24a('0x3')][_0xa24a('0x1c')]=_0x33aa6e;}[_0xa24a('0x18')](){this[_0xa24a('0x11')][_0xa24a('0x14')]=this[_0xa24a('0x14')];}[_0xa24a('0x12')](){this[_0xa24a('0x1')][_0xa24a('0xa')](),this['focusableElements'][_0xa24a('0x1d')](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this[_0xa24a('0x14')];}static[_0xa24a('0xc')](_0x4a0c59){if(!(null===_0x4a0c59||_0x4a0c59 instanceof _0x2fa583||Array[_0xa24a('0xb')](_0x4a0c59)&&_0x4a0c59[_0xa24a('0x7')](_0x42b762=>y(_0x42b762))))throw new _0xd384e3('annotation-invalid-target',null,{'target':_0x4a0c59});}[_0xa24a('0x6')](){const _0x15f3e8='function'==typeof this[_0xa24a('0x16')]?this[_0xa24a('0x16')]():this[_0xa24a('0x16')];return y(_0x15f3e8)?[_0x15f3e8]:_0x15f3e8;}}function y(_0x5b5936){return null!==_0x5b5936&&_0xa24a('0xf')==typeof _0x5b5936&&_0xa24a('0x17')in _0x5b5936&&0x1===_0x5b5936[_0xa24a('0x17')];}
23
+ const _0x37f2=['function','render','targetRect','object','_target','_getNormalizedTarget','set','getClientRects','item','isArray','_id','view','focusTracker','annotation-invalid-target','length','nodeType','_assertCorrectTarget','_type','isVisible','focusableElements','type','destroy','offsetParent','filter','stopListening','every','isActive','target','refreshVisibility','mainView','updateTargetRect','add','element','innerView'];(function(_0xf786a3,_0x37f2a8){const _0xbf7a93=function(_0x4849e8){while(--_0x4849e8){_0xf786a3['push'](_0xf786a3['shift']());}};_0xbf7a93(++_0x37f2a8);}(_0x37f2,0xa5));const _0xbf7a=function(_0xf786a3,_0x37f2a8){_0xf786a3=_0xf786a3-0x0;let _0xbf7a93=_0x37f2[_0xf786a3];return _0xbf7a93;};import{CKEditorError as _0x40a36d,Rect as _0xaec1a5,Collection as _0x43f885,ObservableMixin as _0x17c9d5}from'ckeditor5/src/utils';export default class d extends _0x17c9d5(){constructor({view:_0x10bb73,target:_0x373216,type:_0x1e7ce3,isVisible:_0x14740f=!0x0}){super(),this[_0xbf7a('0x10')]=_0x10bb73,this[_0xbf7a('0x10')]['element']||this[_0xbf7a('0x10')][_0xbf7a('0x6')](),this['_type']=_0x1e7ce3,this[_0xbf7a('0x9')]=_0x373216,d[_0xbf7a('0x15')](this[_0xbf7a('0xa')]()),this[_0xbf7a('0x18')]=new _0x43f885([this[_0xbf7a('0x10')][_0xbf7a('0x3')]],{'idProperty':_0xbf7a('0xf')}),this[_0xbf7a('0x18')]['on'](_0xbf7a('0x2'),(_0x50a611,_0x2eb9bc)=>{this[_0xbf7a('0x10')][_0xbf7a('0x11')]['add'](_0x2eb9bc);}),this[_0xbf7a('0x18')]['on']('remove',(_0x44aaa7,_0x1d7a7d)=>{this['view'][_0xbf7a('0x11')]['remove'](_0x1d7a7d);}),this[_0xbf7a('0xb')](_0xbf7a('0x17'),_0x14740f);}get[_0xbf7a('0x19')](){return _0xbf7a('0x5')==typeof this[_0xbf7a('0x16')]?this['_type']():this[_0xbf7a('0x16')];}get[_0xbf7a('0x4')](){return this['view'][_0xbf7a('0x0')];}get[_0xbf7a('0x20')](){const _0x5bf9f9=this[_0xbf7a('0xa')]();return d['_assertCorrectTarget'](_0x5bf9f9),_0x5bf9f9;}get[_0xbf7a('0x7')](){const _0x23eeaf=this[_0xbf7a('0x20')];if(null===_0x23eeaf)return null;if(_0x23eeaf instanceof _0xaec1a5)return _0x23eeaf;const _0x59c159=_0x23eeaf[_0xbf7a('0x1c')](_0x38ac79=>function(_0x1c8109){const _0x422678=_0x1c8109[_0xbf7a('0x1b')];if(_0x422678)return!0x0;const _0x12c24e=_0x1c8109[_0xbf7a('0xc')]()[_0xbf7a('0xd')](0x0);return!!_0x12c24e;}(_0x38ac79));return 0x0===_0x59c159[_0xbf7a('0x13')]?null:new _0xaec1a5(_0x59c159[0x0][_0xbf7a('0xc')]()[_0xbf7a('0xd')](0x0));}get['isActive'](){return this[_0xbf7a('0x10')][_0xbf7a('0x1f')];}set[_0xbf7a('0x1f')](_0x1584a3){this[_0xbf7a('0x10')][_0xbf7a('0x1f')]=_0x1584a3,this[_0xbf7a('0x10')]['mainView'][_0xbf7a('0x1f')]=_0x1584a3;}[_0xbf7a('0x1')](){this[_0xbf7a('0x10')][_0xbf7a('0x7')]=this['targetRect'];}[_0xbf7a('0x1a')](){this['focusableElements']['stopListening'](),this[_0xbf7a('0x18')]['clear'](),this[_0xbf7a('0x1d')]();}[_0xbf7a('0x21')](){this[_0xbf7a('0x17')]=!!this[_0xbf7a('0x7')];}static['_assertCorrectTarget'](_0x4eb51e){if(!(null===_0x4eb51e||_0x4eb51e instanceof _0xaec1a5||Array[_0xbf7a('0xe')](_0x4eb51e)&&_0x4eb51e[_0xbf7a('0x1e')](_0x5180af=>y(_0x5180af))))throw new _0x40a36d(_0xbf7a('0x12'),null,{'target':_0x4eb51e});}[_0xbf7a('0xa')](){const _0x747ad6=_0xbf7a('0x5')==typeof this[_0xbf7a('0x9')]?this[_0xbf7a('0x9')]():this['_target'];return y(_0x747ad6)?[_0x747ad6]:_0x747ad6;}}function y(_0x1a9f0c){return null!==_0x1a9f0c&&_0xbf7a('0x8')==typeof _0x1a9f0c&&'nodeType'in _0x1a9f0c&&0x1===_0x1a9f0c[_0xbf7a('0x14')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb266=['annotationcollection-duplicated-item','focus','focusTracker','updateTargetRect','fire','focusableElements','left','from','get','sort','isFocused','targetRect','top','blur','_viewToAnnotation','add','has','_getOrderInContent','destroy','stopListening','remove','_innerViewToAnnotation','_focusTracker','change:isFocused','clear','set','listenTo','getByView','_sort','delete','annotationcollection-not-existing-item','innerView','view','length'];(function(_0x5d7b0d,_0xb266d4){const _0x5e5c2c=function(_0x56a50a){while(--_0x56a50a){_0x5d7b0d['push'](_0x5d7b0d['shift']());}};_0x5e5c2c(++_0xb266d4);}(_0xb266,0x1ed));const _0x5e5c=function(_0x5d7b0d,_0xb266d4){_0x5d7b0d=_0x5d7b0d-0x0;let _0x5e5c2c=_0xb266[_0x5d7b0d];return _0x5e5c2c;};import{CKEditorError as _0x281d73,Collection as _0x484233,FocusTracker as _0x3eb59f}from'ckeditor5/src/utils';export default class x extends _0x484233{constructor(_0x4f310d=[]){super(),this[_0x5e5c('0x4')]=new Map(),this[_0x5e5c('0x1f')]=new Map(),this[_0x5e5c('0x5')]=new _0x3eb59f(),this[_0x5e5c('0x5')]['on'](_0x5e5c('0x6'),(_0xb792f7,_0x2ac3cb,_0x1dd32a)=>{_0x1dd32a||this[_0x5e5c('0x15')](_0x5e5c('0x1e'));});for(const _0x2bef08 of _0x4f310d)this[_0x5e5c('0x20')](_0x2bef08);}get[_0x5e5c('0x1b')](){return this[_0x5e5c('0x5')][_0x5e5c('0x1b')];}[_0x5e5c('0x20')](_0x42907f){if(this[_0x5e5c('0x21')](_0x42907f))throw new _0x281d73(_0x5e5c('0x11'),null);this[_0x5e5c('0x4')][_0x5e5c('0x8')](_0x42907f[_0x5e5c('0xe')],_0x42907f),this['_viewToAnnotation'][_0x5e5c('0x8')](_0x42907f['view'],_0x42907f);for(const _0x308cd6 of _0x42907f[_0x5e5c('0x16')])this[_0x5e5c('0x5')][_0x5e5c('0x20')](_0x308cd6);this[_0x5e5c('0x9')](_0x42907f['focusableElements'],_0x5e5c('0x20'),(_0x122b05,_0x296612)=>{this[_0x5e5c('0x5')]['add'](_0x296612);}),this[_0x5e5c('0x9')](_0x42907f['focusableElements'],_0x5e5c('0x3'),(_0x333664,_0x35f367)=>{this['_focusTracker'][_0x5e5c('0x3')](_0x35f367);}),this[_0x5e5c('0x9')](_0x42907f[_0x5e5c('0xf')][_0x5e5c('0x13')],_0x5e5c('0x6'),(_0x4f5789,_0x5effca,_0x2fd098)=>{_0x2fd098&&this[_0x5e5c('0x15')](_0x5e5c('0x12'),_0x42907f);}),_0x42907f[_0x5e5c('0x14')]();const _0x34784e=this[_0x5e5c('0x0')](_0x42907f[_0x5e5c('0xf')][_0x5e5c('0x1c')]);return super['add'](_0x42907f,_0x34784e);}['remove'](_0x45d08e){if(!this[_0x5e5c('0x21')](_0x45d08e))throw new _0x281d73(_0x5e5c('0xd'),null);this[_0x5e5c('0x2')](_0x45d08e[_0x5e5c('0xf')][_0x5e5c('0x13')]),this[_0x5e5c('0x2')](_0x45d08e[_0x5e5c('0x16')]);for(const _0x33e826 of _0x45d08e[_0x5e5c('0x16')])this['_focusTracker']['remove'](_0x33e826);return this[_0x5e5c('0x1f')]['delete'](_0x45d08e[_0x5e5c('0xf')]),this['_innerViewToAnnotation'][_0x5e5c('0xc')](_0x45d08e['innerView']),super['remove'](_0x45d08e);}['getByInnerView'](_0x56acac){return this[_0x5e5c('0x4')][_0x5e5c('0x19')](_0x56acac);}[_0x5e5c('0xa')](_0x4b4774){return this[_0x5e5c('0x1f')]['get'](_0x4b4774);}[_0x5e5c('0x1')](){super[_0x5e5c('0x7')](),this[_0x5e5c('0x2')](),this['_innerViewToAnnotation'][_0x5e5c('0x7')](),this[_0x5e5c('0x1f')]['clear'](),this[_0x5e5c('0x5')][_0x5e5c('0x1')]();}['refreshPositioning'](){for(const _0x28d9eb of this)_0x28d9eb['updateTargetRect']();this[_0x5e5c('0xb')]();}[_0x5e5c('0xb')](){const _0x17306e=Array[_0x5e5c('0x18')](this)[_0x5e5c('0x1a')]((_0x3de6ef,_0x3c4ebb)=>v(_0x3de6ef[_0x5e5c('0xf')][_0x5e5c('0x1c')],_0x3c4ebb['view']['targetRect']));for(let _0x3549b6=_0x17306e[_0x5e5c('0x10')]-0x1;_0x3549b6>0x0;_0x3549b6--){const _0x5cfc31=_0x17306e[_0x3549b6];_0x3549b6!==this['getIndex'](_0x5cfc31)&&(this[_0x5e5c('0x3')](_0x5cfc31),this['add'](_0x5cfc31));}}['_getOrderInContent'](_0x3b17be){let _0x26b506=0x0;if(!_0x3b17be)return this[_0x5e5c('0x10')];for(const _0x53e573 of this){const _0x2a7733=_0x53e573[_0x5e5c('0xf')][_0x5e5c('0x1c')];if(_0x2a7733){if(v(_0x3b17be,_0x2a7733)<0x0)return _0x26b506;_0x26b506++;}}return _0x26b506;}}export function bindAnnotationCollections({source:_0x4dd3b5,target:_0x5523a8,filter:_0x82a333}){for(const _0x5715e4 of _0x4dd3b5)_0x82a333(_0x5715e4)&&_0x5523a8[_0x5e5c('0x20')](_0x5715e4);_0x5523a8[_0x5e5c('0x9')](_0x4dd3b5,_0x5e5c('0x20'),(_0x599009,_0x575566)=>{_0x82a333(_0x575566)&&_0x5523a8[_0x5e5c('0x20')](_0x575566);}),_0x5523a8['listenTo'](_0x4dd3b5,_0x5e5c('0x3'),(_0x333e7e,_0x218750)=>{_0x5523a8[_0x5e5c('0x21')](_0x218750)&&_0x5523a8[_0x5e5c('0x3')](_0x218750);});}function v(_0x5e2ed3,_0xf79aea){if(null===_0x5e2ed3&&null===_0xf79aea)return 0x0;if(null===_0x5e2ed3)return-0x1;if(null===_0xf79aea)return 0x1;const _0x2fd046=_0x5e2ed3[_0x5e5c('0x1d')]-_0xf79aea[_0x5e5c('0x1d')];return 0x0==_0x2fd046?_0x5e2ed3[_0x5e5c('0x17')]-_0xf79aea[_0x5e5c('0x17')]:_0x2fd046;}
23
+ const _0x30e0=['fire','isFocused','_focusTracker','listenTo','refreshPositioning','has','stopListening','clear','top','view','left','from','delete','length','focusTracker','change:isFocused','focusableElements','innerView','annotationcollection-not-existing-item','annotationcollection-duplicated-item','getIndex','set','_innerViewToAnnotation','destroy','_sort','get','_viewToAnnotation','getByView','remove','_getOrderInContent','targetRect','sort','add','getByInnerView'];(function(_0x10bdbc,_0x30e0b1){const _0x1a50b2=function(_0x1253b3){while(--_0x1253b3){_0x10bdbc['push'](_0x10bdbc['shift']());}};_0x1a50b2(++_0x30e0b1);}(_0x30e0,0xaa));const _0x1a50=function(_0x10bdbc,_0x30e0b1){_0x10bdbc=_0x10bdbc-0x0;let _0x1a50b2=_0x30e0[_0x10bdbc];return _0x1a50b2;};import{CKEditorError as _0x111efc,Collection as _0x79d9ec,FocusTracker as _0x2acf28}from'ckeditor5/src/utils';export default class x extends _0x79d9ec{constructor(_0x57a89e=[]){super(),this[_0x1a50('0x16')]=new Map(),this['_viewToAnnotation']=new Map(),this[_0x1a50('0x2')]=new _0x2acf28(),this[_0x1a50('0x2')]['on'](_0x1a50('0xf'),(_0x4c58c2,_0x4b7cb4,_0x10320a)=>{_0x10320a||this[_0x1a50('0x0')]('blur');});for(const _0x556eb8 of _0x57a89e)this[_0x1a50('0x20')](_0x556eb8);}get[_0x1a50('0x1')](){return this['_focusTracker'][_0x1a50('0x1')];}[_0x1a50('0x20')](_0x3919d4){if(this['has'](_0x3919d4))throw new _0x111efc(_0x1a50('0x13'),null);this['_innerViewToAnnotation'][_0x1a50('0x15')](_0x3919d4[_0x1a50('0x11')],_0x3919d4),this[_0x1a50('0x1a')]['set'](_0x3919d4['view'],_0x3919d4);for(const _0x403740 of _0x3919d4[_0x1a50('0x10')])this['_focusTracker'][_0x1a50('0x20')](_0x403740);this[_0x1a50('0x3')](_0x3919d4[_0x1a50('0x10')],'add',(_0x13b1c4,_0x238969)=>{this[_0x1a50('0x2')][_0x1a50('0x20')](_0x238969);}),this[_0x1a50('0x3')](_0x3919d4[_0x1a50('0x10')],'remove',(_0xb961a5,_0x5971e3)=>{this[_0x1a50('0x2')][_0x1a50('0x1c')](_0x5971e3);}),this[_0x1a50('0x3')](_0x3919d4[_0x1a50('0x9')][_0x1a50('0xe')],_0x1a50('0xf'),(_0x49edc7,_0x37ce84,_0x47b00e)=>{_0x47b00e&&this['fire']('focus',_0x3919d4);}),_0x3919d4['updateTargetRect']();const _0x3c505=this[_0x1a50('0x1d')](_0x3919d4['view'][_0x1a50('0x1e')]);return super['add'](_0x3919d4,_0x3c505);}[_0x1a50('0x1c')](_0x4146bf){if(!this[_0x1a50('0x5')](_0x4146bf))throw new _0x111efc(_0x1a50('0x12'),null);this[_0x1a50('0x6')](_0x4146bf[_0x1a50('0x9')][_0x1a50('0xe')]),this[_0x1a50('0x6')](_0x4146bf[_0x1a50('0x10')]);for(const _0x72603f of _0x4146bf[_0x1a50('0x10')])this['_focusTracker']['remove'](_0x72603f);return this['_viewToAnnotation'][_0x1a50('0xc')](_0x4146bf[_0x1a50('0x9')]),this[_0x1a50('0x16')]['delete'](_0x4146bf[_0x1a50('0x11')]),super['remove'](_0x4146bf);}[_0x1a50('0x21')](_0x4d54bb){return this[_0x1a50('0x16')][_0x1a50('0x19')](_0x4d54bb);}[_0x1a50('0x1b')](_0x1cc3ff){return this[_0x1a50('0x1a')][_0x1a50('0x19')](_0x1cc3ff);}[_0x1a50('0x17')](){super['clear'](),this[_0x1a50('0x6')](),this['_innerViewToAnnotation'][_0x1a50('0x7')](),this[_0x1a50('0x1a')][_0x1a50('0x7')](),this[_0x1a50('0x2')][_0x1a50('0x17')]();}[_0x1a50('0x4')](){for(const _0x185ee8 of this)_0x185ee8['updateTargetRect']();this[_0x1a50('0x18')]();}[_0x1a50('0x18')](){const _0x52f3a6=Array[_0x1a50('0xb')](this)[_0x1a50('0x1f')]((_0x4dcbe8,_0x54bbbf)=>v(_0x4dcbe8['view'][_0x1a50('0x1e')],_0x54bbbf[_0x1a50('0x9')][_0x1a50('0x1e')]));for(let _0x1a11df=_0x52f3a6[_0x1a50('0xd')]-0x1;_0x1a11df>0x0;_0x1a11df--){const _0x2c770d=_0x52f3a6[_0x1a11df];_0x1a11df!==this[_0x1a50('0x14')](_0x2c770d)&&(this[_0x1a50('0x1c')](_0x2c770d),this[_0x1a50('0x20')](_0x2c770d));}}[_0x1a50('0x1d')](_0x3a914e){let _0x3143c8=0x0;if(!_0x3a914e)return this[_0x1a50('0xd')];for(const _0x1eb0fd of this){const _0x5cb372=_0x1eb0fd[_0x1a50('0x9')][_0x1a50('0x1e')];if(_0x5cb372){if(v(_0x3a914e,_0x5cb372)<0x0)return _0x3143c8;_0x3143c8++;}}return _0x3143c8;}}export function bindAnnotationCollections({source:_0xd87480,target:_0x2b513c,filter:_0x5a352e}){for(const _0x470053 of _0xd87480)_0x5a352e(_0x470053)&&_0x2b513c['add'](_0x470053);_0x2b513c[_0x1a50('0x3')](_0xd87480,_0x1a50('0x20'),(_0x18cc1f,_0x1dcade)=>{_0x5a352e(_0x1dcade)&&_0x2b513c[_0x1a50('0x20')](_0x1dcade);}),_0x2b513c[_0x1a50('0x3')](_0xd87480,_0x1a50('0x1c'),(_0x29fe95,_0x24ea89)=>{_0x2b513c['has'](_0x24ea89)&&_0x2b513c[_0x1a50('0x1c')](_0x24ea89);});}function v(_0x5c8f7b,_0x5c77a1){if(null===_0x5c8f7b&&null===_0x5c77a1)return 0x0;if(null===_0x5c8f7b)return-0x1;if(null===_0x5c77a1)return 0x1;const _0x138cee=_0x5c8f7b[_0x1a50('0x8')]-_0x5c77a1[_0x1a50('0x8')];return 0x0==_0x138cee?_0x5c8f7b[_0x1a50('0xa')]-_0x5c77a1[_0x1a50('0xa')]:_0x138cee;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x159a=['activate','refreshVisibility','view','getByInnerView','destroy','add','focusTracker','change:isVisible','pluginName','_bindAnnotationsToVisibleAnnotations','has','deactivateAll','refreshPositioning','_visibleAnnotations','createAnnotationView','listenTo','fire','activeAnnotations','isVisible','element','collection','remove','_removeActiveAnnotation','stopListening'];(function(_0x56fa55,_0x159a1d){const _0x173902=function(_0x192718){while(--_0x192718){_0x56fa55['push'](_0x56fa55['shift']());}};_0x173902(++_0x159a1d);}(_0x159a,0x1d1));const _0x1739=function(_0x56fa55,_0x159a1d){_0x56fa55=_0x56fa55-0x0;let _0x173902=_0x159a[_0x56fa55];return _0x173902;};import{ContextPlugin as _0x331b80}from'ckeditor5/src/core';import _0x5cdc55 from'./annotation';import _0x525b03 from'./annotationcollection';import _0x3b7789 from'./view/annotationview';export default class b extends _0x331b80{static get[_0x1739('0x17')](){return'Annotations';}constructor(_0x51c359){super(_0x51c359),this[_0x1739('0xb')]=new _0x525b03(),this[_0x1739('0x4')]=new _0x525b03(),this['set'](_0x1739('0x8'),new Set()),this[_0x1739('0x0')]();}['add'](_0x529797){this[_0x1739('0xb')]['add'](_0x529797);}[_0x1739('0xc')](_0x8f3c57){this[_0x1739('0xb')][_0x1739('0xc')](_0x8f3c57),_0x8f3c57[_0x1739('0x13')]();}[_0x1739('0x10')](){for(const _0x3fc29b of this[_0x1739('0xb')])_0x3fc29b[_0x1739('0x10')]();}[_0x1739('0x3')](){this[_0x1739('0x4')][_0x1739('0x3')]();}[_0x1739('0x12')](_0x3f946c){return this['collection'][_0x1739('0x12')](_0x3f946c);}[_0x1739('0x2')](){this[_0x1739('0x7')]('_deactivateAllAnnotations');}[_0x1739('0x13')](){for(const _0xc47696 of this[_0x1739('0xb')])_0xc47696['destroy']();this[_0x1739('0x4')][_0x1739('0x13')](),this['collection'][_0x1739('0x13')](),super[_0x1739('0x13')]();}[_0x1739('0xf')](_0x26a4c4){this[_0x1739('0x7')]('_activateAnnotation',_0x26a4c4);}['createAnnotation'](_0x148d12){return new _0x5cdc55(_0x148d12);}[_0x1739('0x5')](_0x5e7d32,_0x46395c){return new _0x3b7789(_0x5e7d32,_0x46395c);}['_addActiveAnnotation'](_0x5e18c5){const _0x48c3a4=new Set(this[_0x1739('0x8')]);_0x48c3a4[_0x1739('0x14')](_0x5e18c5),this['activeAnnotations']=_0x48c3a4;}[_0x1739('0xd')](_0x47d459){const _0x2b4edb=new Set(this[_0x1739('0x8')]);_0x2b4edb['delete'](_0x47d459),this[_0x1739('0x8')]=_0x2b4edb;}['_bindAnnotationsToVisibleAnnotations'](){const _0x264e5d=this['collection'],_0x2eb99b=this[_0x1739('0x4')];function _0x3a71c7(_0x50a848){const _0x57f117=_0x50a848['source'];_0x57f117[_0x1739('0x9')]&&!_0x2eb99b[_0x1739('0x1')](_0x57f117)?_0x2eb99b[_0x1739('0x14')](_0x57f117):!_0x57f117[_0x1739('0x9')]&&_0x2eb99b[_0x1739('0x1')](_0x57f117)&&_0x2eb99b[_0x1739('0xc')](_0x57f117),_0x57f117[_0x1739('0x11')][_0x1739('0x15')][_0x1739('0xc')](_0x57f117[_0x1739('0x11')][_0x1739('0xa')]),_0x57f117[_0x1739('0x11')][_0x1739('0x15')][_0x1739('0x14')](_0x57f117['view'][_0x1739('0xa')]);}this[_0x1739('0x6')](_0x264e5d,_0x1739('0x14'),(_0x2534df,_0x2a0ad3)=>{_0x2a0ad3['isVisible']&&_0x2eb99b[_0x1739('0x14')](_0x2a0ad3),this[_0x1739('0x6')](_0x2a0ad3,_0x1739('0x16'),_0x3a71c7);}),this[_0x1739('0x6')](_0x264e5d,_0x1739('0xc'),(_0x2180bc,_0x4da36b)=>{_0x2eb99b['has'](_0x4da36b)&&_0x2eb99b[_0x1739('0xc')](_0x4da36b),this[_0x1739('0xe')](_0x4da36b,_0x1739('0x16'),_0x3a71c7);});}}
23
+ const _0x306d=['change:isVisible','remove','pluginName','_addActiveAnnotation','focusTracker','set','collection','listenTo','delete','view','_deactivateAllAnnotations','_activateAnnotation','activeAnnotations','createAnnotation','element','stopListening','activate','add','refreshPositioning','fire','destroy','createAnnotationView','deactivateAll','has','_bindAnnotationsToVisibleAnnotations','isVisible','_visibleAnnotations','refreshVisibility','getByInnerView','source'];(function(_0x29be39,_0x306d46){const _0x75b68f=function(_0x5ae99d){while(--_0x5ae99d){_0x29be39['push'](_0x29be39['shift']());}};_0x75b68f(++_0x306d46);}(_0x306d,0x113));const _0x75b6=function(_0x29be39,_0x306d46){_0x29be39=_0x29be39-0x0;let _0x75b68f=_0x306d[_0x29be39];return _0x75b68f;};import{ContextPlugin as _0x172b20}from'ckeditor5/src/core';import _0x3a28a3 from'./annotation';import _0x2a3eaf from'./annotationcollection';import _0xd2d5e7 from'./view/annotationview';export default class b extends _0x172b20{static get[_0x75b6('0x1b')](){return'Annotations';}constructor(_0x5418c8){super(_0x5418c8),this[_0x75b6('0x1')]=new _0x2a3eaf(),this[_0x75b6('0x15')]=new _0x2a3eaf(),this[_0x75b6('0x0')]('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x75b6('0xc')](_0x258ce1){this[_0x75b6('0x1')]['add'](_0x258ce1);}['remove'](_0x3c936a){this[_0x75b6('0x1')]['remove'](_0x3c936a),_0x3c936a[_0x75b6('0xf')]();}[_0x75b6('0x16')](){for(const _0x172cf8 of this[_0x75b6('0x1')])_0x172cf8[_0x75b6('0x16')]();}[_0x75b6('0xd')](){this[_0x75b6('0x15')][_0x75b6('0xd')]();}[_0x75b6('0x17')](_0x516789){return this[_0x75b6('0x1')]['getByInnerView'](_0x516789);}[_0x75b6('0x11')](){this[_0x75b6('0xe')](_0x75b6('0x5'));}[_0x75b6('0xf')](){for(const _0x4c63c8 of this[_0x75b6('0x1')])_0x4c63c8[_0x75b6('0xf')]();this['_visibleAnnotations'][_0x75b6('0xf')](),this[_0x75b6('0x1')][_0x75b6('0xf')](),super[_0x75b6('0xf')]();}[_0x75b6('0xb')](_0x3b7b28){this[_0x75b6('0xe')](_0x75b6('0x6'),_0x3b7b28);}[_0x75b6('0x8')](_0x263ce8){return new _0x3a28a3(_0x263ce8);}[_0x75b6('0x10')](_0x5a530d,_0x257c0d){return new _0xd2d5e7(_0x5a530d,_0x257c0d);}[_0x75b6('0x1c')](_0xc18936){const _0x1110da=new Set(this[_0x75b6('0x7')]);_0x1110da[_0x75b6('0xc')](_0xc18936),this['activeAnnotations']=_0x1110da;}['_removeActiveAnnotation'](_0x4b2093){const _0x544d4e=new Set(this['activeAnnotations']);_0x544d4e[_0x75b6('0x3')](_0x4b2093),this[_0x75b6('0x7')]=_0x544d4e;}[_0x75b6('0x13')](){const _0x5eb296=this[_0x75b6('0x1')],_0x48b46f=this['_visibleAnnotations'];function _0x3db48e(_0x16ce63){const _0x17b106=_0x16ce63[_0x75b6('0x18')];_0x17b106[_0x75b6('0x14')]&&!_0x48b46f[_0x75b6('0x12')](_0x17b106)?_0x48b46f[_0x75b6('0xc')](_0x17b106):!_0x17b106[_0x75b6('0x14')]&&_0x48b46f[_0x75b6('0x12')](_0x17b106)&&_0x48b46f[_0x75b6('0x1a')](_0x17b106),_0x17b106[_0x75b6('0x4')][_0x75b6('0x1d')][_0x75b6('0x1a')](_0x17b106[_0x75b6('0x4')][_0x75b6('0x9')]),_0x17b106[_0x75b6('0x4')][_0x75b6('0x1d')][_0x75b6('0xc')](_0x17b106['view'][_0x75b6('0x9')]);}this['listenTo'](_0x5eb296,'add',(_0x37b1c2,_0x454e36)=>{_0x454e36[_0x75b6('0x14')]&&_0x48b46f['add'](_0x454e36),this[_0x75b6('0x2')](_0x454e36,_0x75b6('0x19'),_0x3db48e);}),this[_0x75b6('0x2')](_0x5eb296,_0x75b6('0x1a'),(_0x2ac7b2,_0xd38780)=>{_0x48b46f[_0x75b6('0x12')](_0xd38780)&&_0x48b46f[_0x75b6('0x1a')](_0xd38780),this[_0x75b6('0xa')](_0xd38780,'change:isVisible',_0x3db48e);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3266=['has','collection','hasActive','_activateAnnotation','setActiveAnnotation','activate','context','attach','activeUIs','isActive','refilterAnnotations','annotationsuis-missing-ui','push','detach','change:activeAnnotation','deactivate','register','_assertAnnotationDoesNotBelongToMultipleUIs','annotationsuis-annotation-mismatch','delete','AnnotationsUIs','_uisData','find','set','get','_visibleAnnotations','_uis','add','listenTo','function','annotationsuis-register-invalid-interface','length','deactivateAll','pluginName','_setSelectedAnnotations','type','activeAnnotations','plugins','from','filter','annotationsuis-register-already-registered','requires','destroy','init'];(function(_0x20ec1e,_0x326688){const _0x1eb1ef=function(_0x440eda){while(--_0x440eda){_0x20ec1e['push'](_0x20ec1e['shift']());}};_0x1eb1ef(++_0x326688);}(_0x3266,0xee));const _0x1eb1=function(_0x20ec1e,_0x326688){_0x20ec1e=_0x20ec1e-0x0;let _0x1eb1ef=_0x3266[_0x20ec1e];return _0x1eb1ef;};import{ContextPlugin as _0x11e5f4}from'ckeditor5/src/core';import{CKEditorError as _0x44177d}from'ckeditor5/src/utils';import _0x19019e,{bindAnnotationCollections as _0x37368a}from'./annotationcollection';import _0x5cce86 from'./annotations';export default class M extends _0x11e5f4{static get[_0x1eb1('0x17')](){return[_0x5cce86];}static get[_0x1eb1('0xf')](){return _0x1eb1('0x2');}constructor(_0x1f075a){super(_0x1f075a),this[_0x1eb1('0x22')]=new Set(),this[_0x1eb1('0x8')]=new Map(),this[_0x1eb1('0x3')]=new Map();}[_0x1eb1('0x19')](){const _0x324154=this[_0x1eb1('0x20')][_0x1eb1('0x13')][_0x1eb1('0x6')](_0x5cce86);this[_0x1eb1('0xa')](_0x324154,_0x1eb1('0x1d'),(_0x3713fa,_0x1c37d2)=>{for(const _0x4826d8 of this[_0x1eb1('0x22')]){const _0x434e78=this[_0x1eb1('0x8')]['get'](_0x4826d8);(0x0,this[_0x1eb1('0x3')][_0x1eb1('0x6')](_0x4826d8)[_0x1eb1('0x15')])(_0x1c37d2)&&_0x434e78[_0x1eb1('0x1e')](_0x1c37d2);}}),this['listenTo'](_0x324154,'_deactivateAllAnnotations',()=>{for(const _0xca4e65 of this[_0x1eb1('0x22')]){this[_0x1eb1('0x8')][_0x1eb1('0x6')](_0xca4e65)[_0x1eb1('0x1e')](null);}}),this[_0x1eb1('0xa')](_0x324154[_0x1eb1('0x7')],_0x1eb1('0x9'),(_0x354a9f,_0x14cf71)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x14cf71);});}[_0x1eb1('0x1c')](){return this[_0x1eb1('0x22')]['size']>0x0;}[_0x1eb1('0x23')](_0x329362){return this[_0x1eb1('0x22')][_0x1eb1('0x1a')](_0x329362);}[_0x1eb1('0x1f')](_0x3ca2af,_0x1c6ee4=()=>!0x0){const _0x1aae6a=this['context'][_0x1eb1('0x13')][_0x1eb1('0x6')](_0x5cce86);if(!this[_0x1eb1('0x8')][_0x1eb1('0x1a')](_0x3ca2af))throw new _0x44177d(_0x1eb1('0x25'),this,{'uiName':_0x3ca2af});this[_0x1eb1('0x23')](_0x3ca2af)&&this[_0x1eb1('0x29')](_0x3ca2af),this[_0x1eb1('0x22')]['add'](_0x3ca2af);const _0x30984=new _0x19019e(),_0x47fa96=_0x1aae6a[_0x1eb1('0x7')];_0x37368a({'source':_0x47fa96,'target':_0x30984,'filter':_0x1c6ee4}),this[_0x1eb1('0x3')]['set'](_0x3ca2af,{'collection':_0x30984,'filter':_0x1c6ee4});const _0x31b060=this[_0x1eb1('0x8')][_0x1eb1('0x6')](_0x3ca2af);_0x31b060[_0x1eb1('0x21')](_0x30984),this[_0x1eb1('0xa')](_0x31b060,_0x1eb1('0x28'),(_0xf50234,_0x410c33,_0x1c9be4,_0x301c59)=>{_0x301c59&&_0x1aae6a['_removeActiveAnnotation'](_0x301c59),_0x1c9be4&&_0x1aae6a['_addActiveAnnotation'](_0x1c9be4);});}[_0x1eb1('0x29')](_0x271f06){if(this['activeUIs'][_0x1eb1('0x1')](_0x271f06),!this[_0x1eb1('0x8')]['has'](_0x271f06))throw new _0x44177d('annotationsuis-missing-ui',this,{'uiName':_0x271f06});const _0x365e5c=this['_uis'][_0x1eb1('0x6')](_0x271f06);_0x365e5c[_0x1eb1('0x27')](),this['stopListening'](_0x365e5c),this[_0x1eb1('0x3')][_0x1eb1('0x6')](_0x271f06)[_0x1eb1('0x1b')][_0x1eb1('0x18')](),this[_0x1eb1('0x3')][_0x1eb1('0x1')](_0x271f06);}['switchTo'](_0x2602e2){if(!this['_uis'][_0x1eb1('0x1a')](_0x2602e2))throw new _0x44177d(_0x1eb1('0x25'),this,{'uiName':_0x2602e2});const _0x8e7f50=this['context'][_0x1eb1('0x13')][_0x1eb1('0x6')](_0x5cce86),_0x236ba9=Array[_0x1eb1('0x14')](_0x8e7f50[_0x1eb1('0x12')])[0x0]||null;this['deactivateAll'](),this[_0x1eb1('0x1f')](_0x2602e2);const _0x1c4efe=this[_0x1eb1('0x8')][_0x1eb1('0x6')](_0x2602e2);_0x1c4efe['setActiveAnnotation'](_0x236ba9),_0x1c4efe[_0x1eb1('0x10')]&&_0x236ba9&&_0x1c4efe[_0x1eb1('0x10')]([_0x236ba9]);}[_0x1eb1('0xe')](){for(const _0x1ee660 of this[_0x1eb1('0x22')])this[_0x1eb1('0x29')](_0x1ee660);}[_0x1eb1('0x2a')](_0x3f581b,_0x8ea3cd){if(this['_uis']['has'](_0x3f581b))throw new _0x44177d(_0x1eb1('0x16'));if(_0x1eb1('0xb')!=typeof _0x8ea3cd['attach']||_0x1eb1('0xb')!=typeof _0x8ea3cd['detach']||'function'!=typeof _0x8ea3cd[_0x1eb1('0x1e')])throw new _0x44177d(_0x1eb1('0xc'),null);this[_0x1eb1('0x8')][_0x1eb1('0x5')](_0x3f581b,_0x8ea3cd);}[_0x1eb1('0x24')](){const _0x2a6976=this[_0x1eb1('0x20')][_0x1eb1('0x13')][_0x1eb1('0x6')](_0x5cce86)[_0x1eb1('0x1b')],_0x14a05a=new Map(),_0x4b8824=Array[_0x1eb1('0x14')](this[_0x1eb1('0x22')]);for(const _0x253bc3 of this[_0x1eb1('0x22')]){const _0xd3abb3=this['_uisData'][_0x1eb1('0x6')](_0x253bc3)[_0x1eb1('0x1b')];for(const _0x19fbba of _0xd3abb3)_0x14a05a['set'](_0x19fbba,_0x253bc3);}for(const _0x3387f9 of _0x2a6976){const _0x7e8888=_0x14a05a['get'](_0x3387f9);this[_0x1eb1('0x2b')](_0x3387f9);const _0x1f5786=_0x4b8824[_0x1eb1('0x4')](_0x3d8e24=>this['_uisData']['get'](_0x3d8e24)[_0x1eb1('0x15')](_0x3387f9));_0x7e8888!==_0x1f5786&&(_0x7e8888&&this[_0x1eb1('0x3')]['get'](_0x7e8888)[_0x1eb1('0x1b')]['remove'](_0x3387f9),_0x1f5786&&this[_0x1eb1('0x3')][_0x1eb1('0x6')](_0x1f5786)[_0x1eb1('0x1b')][_0x1eb1('0x9')](_0x3387f9));}}[_0x1eb1('0x18')](){this[_0x1eb1('0xe')](),super[_0x1eb1('0x18')]();}[_0x1eb1('0x2b')](_0x32993f){const _0x2356af=[];for(const _0x10478f of this['activeUIs']){(0x0,this[_0x1eb1('0x3')][_0x1eb1('0x6')](_0x10478f)[_0x1eb1('0x15')])(_0x32993f)&&_0x2356af[_0x1eb1('0x26')](_0x10478f);}if(_0x2356af[_0x1eb1('0xd')]>0x1)throw new _0x44177d(_0x1eb1('0x0'),null,{'matchedUIs':_0x2356af,'annotationType':_0x32993f[_0x1eb1('0x11')]});}}
23
+ const _0x1448=['init','pluginName','annotationsuis-register-already-registered','refilterAnnotations','length','_setSelectedAnnotations','find','filter','detach','from','has','get','activate','plugins','deactivate','_deactivateAllAnnotations','attach','push','annotationsuis-annotation-mismatch','register','_uis','isActive','_uisData','function','_activateAnnotation','type','context','delete','activeUIs','AnnotationsUIs','_removeActiveAnnotation','annotationsuis-register-invalid-interface','_visibleAnnotations','setActiveAnnotation','remove','deactivateAll','collection','add','switchTo','size','stopListening','annotationsuis-missing-ui','_assertAnnotationDoesNotBelongToMultipleUIs','requires','set','destroy','listenTo','hasActive','_addActiveAnnotation'];(function(_0x422e31,_0x144850){const _0x42387d=function(_0x242932){while(--_0x242932){_0x422e31['push'](_0x422e31['shift']());}};_0x42387d(++_0x144850);}(_0x1448,0x75));const _0x4238=function(_0x422e31,_0x144850){_0x422e31=_0x422e31-0x0;let _0x42387d=_0x1448[_0x422e31];return _0x42387d;};import{ContextPlugin as _0x2b5098}from'ckeditor5/src/core';import{CKEditorError as _0x56d501}from'ckeditor5/src/utils';import _0x46cbca,{bindAnnotationCollections as _0x9a63ac}from'./annotationcollection';import _0x5dfa35 from'./annotations';export default class M extends _0x2b5098{static get[_0x4238('0x18')](){return[_0x5dfa35];}static get[_0x4238('0x1f')](){return _0x4238('0xa');}constructor(_0x429deb){super(_0x429deb),this[_0x4238('0x9')]=new Set(),this[_0x4238('0x1')]=new Map(),this['_uisData']=new Map();}[_0x4238('0x1e')](){const _0x55567e=this[_0x4238('0x7')]['plugins'][_0x4238('0x29')](_0x5dfa35);this['listenTo'](_0x55567e,_0x4238('0x5'),(_0x4f0857,_0x1a6504)=>{for(const _0xbff6be of this[_0x4238('0x9')]){const _0x444925=this['_uis'][_0x4238('0x29')](_0xbff6be);(0x0,this[_0x4238('0x3')]['get'](_0xbff6be)[_0x4238('0x25')])(_0x1a6504)&&_0x444925[_0x4238('0xe')](_0x1a6504);}}),this[_0x4238('0x1b')](_0x55567e,_0x4238('0x2d'),()=>{for(const _0x9bc2a2 of this[_0x4238('0x9')]){this[_0x4238('0x1')][_0x4238('0x29')](_0x9bc2a2)['setActiveAnnotation'](null);}}),this[_0x4238('0x1b')](_0x55567e['_visibleAnnotations'],'add',(_0x3fa678,_0x30e141)=>{this[_0x4238('0x17')](_0x30e141);});}[_0x4238('0x1c')](){return this['activeUIs'][_0x4238('0x14')]>0x0;}['isActive'](_0x56aee8){return this[_0x4238('0x9')]['has'](_0x56aee8);}[_0x4238('0x2a')](_0x1539f8,_0x45b1c7=()=>!0x0){const _0x2cecc2=this[_0x4238('0x7')][_0x4238('0x2b')][_0x4238('0x29')](_0x5dfa35);if(!this[_0x4238('0x1')][_0x4238('0x28')](_0x1539f8))throw new _0x56d501(_0x4238('0x16'),this,{'uiName':_0x1539f8});this[_0x4238('0x2')](_0x1539f8)&&this[_0x4238('0x2c')](_0x1539f8),this[_0x4238('0x9')][_0x4238('0x12')](_0x1539f8);const _0x3884b4=new _0x46cbca(),_0x17e215=_0x2cecc2[_0x4238('0xd')];_0x9a63ac({'source':_0x17e215,'target':_0x3884b4,'filter':_0x45b1c7}),this[_0x4238('0x3')]['set'](_0x1539f8,{'collection':_0x3884b4,'filter':_0x45b1c7});const _0x5daa97=this[_0x4238('0x1')][_0x4238('0x29')](_0x1539f8);_0x5daa97['attach'](_0x3884b4),this[_0x4238('0x1b')](_0x5daa97,'change:activeAnnotation',(_0xc3c4d3,_0x5d5f44,_0x5ea089,_0x52f7dc)=>{_0x52f7dc&&_0x2cecc2[_0x4238('0xb')](_0x52f7dc),_0x5ea089&&_0x2cecc2[_0x4238('0x1d')](_0x5ea089);});}[_0x4238('0x2c')](_0x1f465b){if(this['activeUIs'][_0x4238('0x8')](_0x1f465b),!this[_0x4238('0x1')]['has'](_0x1f465b))throw new _0x56d501('annotationsuis-missing-ui',this,{'uiName':_0x1f465b});const _0x159488=this[_0x4238('0x1')]['get'](_0x1f465b);_0x159488[_0x4238('0x26')](),this[_0x4238('0x15')](_0x159488),this['_uisData'][_0x4238('0x29')](_0x1f465b)[_0x4238('0x11')]['destroy'](),this[_0x4238('0x3')][_0x4238('0x8')](_0x1f465b);}[_0x4238('0x13')](_0x5066f5){if(!this[_0x4238('0x1')][_0x4238('0x28')](_0x5066f5))throw new _0x56d501(_0x4238('0x16'),this,{'uiName':_0x5066f5});const _0x31ad26=this[_0x4238('0x7')][_0x4238('0x2b')][_0x4238('0x29')](_0x5dfa35),_0x5f28b0=Array[_0x4238('0x27')](_0x31ad26['activeAnnotations'])[0x0]||null;this[_0x4238('0x10')](),this[_0x4238('0x2a')](_0x5066f5);const _0x4af8bf=this[_0x4238('0x1')][_0x4238('0x29')](_0x5066f5);_0x4af8bf[_0x4238('0xe')](_0x5f28b0),_0x4af8bf[_0x4238('0x23')]&&_0x5f28b0&&_0x4af8bf['_setSelectedAnnotations']([_0x5f28b0]);}[_0x4238('0x10')](){for(const _0x2c7e90 of this[_0x4238('0x9')])this[_0x4238('0x2c')](_0x2c7e90);}[_0x4238('0x0')](_0x267883,_0xac0301){if(this[_0x4238('0x1')]['has'](_0x267883))throw new _0x56d501(_0x4238('0x20'));if(_0x4238('0x4')!=typeof _0xac0301[_0x4238('0x2e')]||_0x4238('0x4')!=typeof _0xac0301[_0x4238('0x26')]||_0x4238('0x4')!=typeof _0xac0301[_0x4238('0xe')])throw new _0x56d501(_0x4238('0xc'),null);this[_0x4238('0x1')][_0x4238('0x19')](_0x267883,_0xac0301);}[_0x4238('0x21')](){const _0x4aa97a=this[_0x4238('0x7')][_0x4238('0x2b')][_0x4238('0x29')](_0x5dfa35)[_0x4238('0x11')],_0x239027=new Map(),_0x238c90=Array['from'](this['activeUIs']);for(const _0x4fb2d2 of this[_0x4238('0x9')]){const _0x20ed49=this['_uisData'][_0x4238('0x29')](_0x4fb2d2)[_0x4238('0x11')];for(const _0xace996 of _0x20ed49)_0x239027[_0x4238('0x19')](_0xace996,_0x4fb2d2);}for(const _0x126eea of _0x4aa97a){const _0x5b33b3=_0x239027[_0x4238('0x29')](_0x126eea);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x126eea);const _0x4f2d8a=_0x238c90[_0x4238('0x24')](_0x2cd007=>this[_0x4238('0x3')][_0x4238('0x29')](_0x2cd007)[_0x4238('0x25')](_0x126eea));_0x5b33b3!==_0x4f2d8a&&(_0x5b33b3&&this['_uisData'][_0x4238('0x29')](_0x5b33b3)[_0x4238('0x11')][_0x4238('0xf')](_0x126eea),_0x4f2d8a&&this[_0x4238('0x3')][_0x4238('0x29')](_0x4f2d8a)[_0x4238('0x11')]['add'](_0x126eea));}}[_0x4238('0x1a')](){this[_0x4238('0x10')](),super[_0x4238('0x1a')]();}[_0x4238('0x17')](_0x1bbf9f){const _0x14892f=[];for(const _0x4d143d of this[_0x4238('0x9')]){(0x0,this[_0x4238('0x3')][_0x4238('0x29')](_0x4d143d)[_0x4238('0x25')])(_0x1bbf9f)&&_0x14892f[_0x4238('0x2f')](_0x4d143d);}if(_0x14892f[_0x4238('0x22')]>0x1)throw new _0x56d501(_0x4238('0x30'),null,{'matchedUIs':_0x14892f,'annotationType':_0x1bbf9f[_0x4238('0x6')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x64f5=['model','addSourceCollector','_dataCollectors','editing','containsRange','blur','range','editor','isEqual','add','innerView','_editorAnnotations','from','remove','directChange','requires','set','selection','get','isCollapsed','cancel','fire','view','getRanges','sort','change:isFocused','getByInnerView','listenTo','EditorAnnotations','push','document','hasDomSelection','editorannotations-invalid-source-callback','_editorAnnotationsData','isReadOnly','update','element','focusTracker','registerAnnotation','refresh','refreshSelectedViews','annotation'];(function(_0x1eea18,_0x64f5f5){const _0x3f9b1f=function(_0x5340f0){while(--_0x5340f0){_0x1eea18['push'](_0x1eea18['shift']());}};_0x3f9b1f(++_0x64f5f5);}(_0x64f5,0x6c));const _0x3f9b=function(_0x1eea18,_0x64f5f5){_0x1eea18=_0x1eea18-0x0;let _0x3f9b1f=_0x64f5[_0x1eea18];return _0x3f9b1f;};import{Plugin as _0x246620}from'ckeditor5/src/core';import{CKEditorError as _0x21b264}from'ckeditor5/src/utils';import{debounce as _0x3e70c9}from'lodash-es';import _0xbe467a from'./annotations';export default class k extends _0x246620{static get[_0x3f9b('0x21')](){return[_0xbe467a];}static get['pluginName'](){return _0x3f9b('0x4');}constructor(_0x3a57b2){super(_0x3a57b2),this[_0x3f9b('0x14')]=new Set(),this[_0x3f9b('0x1d')]=new Set();}['init'](){const _0x27d33f=this[_0x3f9b('0x19')],_0x2b6a4f=_0x27d33f['model'][_0x3f9b('0x6')][_0x3f9b('0x23')],_0x4923b3=_0x3e70c9(()=>this[_0x3f9b('0x10')](),0xa);_0x2b6a4f['on']('change:range',(_0x252689,_0x4f6486)=>{_0x4f6486[_0x3f9b('0x20')]&&(_0x4923b3[_0x3f9b('0x26')](),this[_0x3f9b('0x10')]());}),this[_0x3f9b('0x3')](_0x27d33f[_0x3f9b('0x15')][_0x3f9b('0x28')][_0x3f9b('0x6')],_0x3f9b('0x1'),(_0x474588,_0x18de66,_0x40d1ae)=>{_0x40d1ae&&_0x4923b3();}),this['listenTo'](_0x27d33f['ui'][_0x3f9b('0xd')],_0x3f9b('0x1'),(_0x182554,_0x1db0e2,_0x4cf90a)=>{_0x4cf90a||_0x27d33f[_0x3f9b('0xa')]||this[_0x3f9b('0x27')](_0x3f9b('0x17'),{'isAnnotationTracked':_0x27d4f3=>this[_0x3f9b('0x9')]['has'](_0x27d4f3[_0x3f9b('0x1c')])});}),this[_0x3f9b('0x3')](this[_0x3f9b('0x19')]['ui'],_0x3f9b('0xb'),()=>this[_0x3f9b('0x27')]('uiUpdate'));}[_0x3f9b('0xe')](_0x2c17d3){if(this['_editorAnnotations']['has'](_0x2c17d3[_0x3f9b('0x28')]))return;this[_0x3f9b('0x1d')]['add'](_0x2c17d3[_0x3f9b('0x28')]),this[_0x3f9b('0x19')]['ui'][_0x3f9b('0xd')][_0x3f9b('0x1b')](_0x2c17d3[_0x3f9b('0x28')][_0x3f9b('0xc')]);const _0x33921d=this[_0x3f9b('0x19')]['plugins'][_0x3f9b('0x24')](_0xbe467a);this['listenTo'](_0x33921d['collection'],'remove',(_0x29c949,_0x4cb70d)=>{this['editor']['ui'][_0x3f9b('0xd')][_0x3f9b('0x1f')](_0x4cb70d[_0x3f9b('0x28')][_0x3f9b('0xc')]),this[_0x3f9b('0x1d')]['delete'](_0x4cb70d[_0x3f9b('0x28')]);});}[_0x3f9b('0x7')](){return this['editor'][_0x3f9b('0x15')][_0x3f9b('0x28')]['hasDomSelection'];}[_0x3f9b('0x13')](_0x3e7d97){if('function'!=typeof _0x3e7d97)throw new _0x21b264(_0x3f9b('0x8'));this[_0x3f9b('0x14')][_0x3f9b('0x1b')](_0x3e7d97);}[_0x3f9b('0x10')](){this['fire'](_0x3f9b('0xf'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x5e79b0,annotations:_0x5e9013}){const _0x4b6551=[],_0x17cabd=this['editor'][_0x3f9b('0x12')]['document']['selection'],_0x34b451=Array['from'](_0x17cabd[_0x3f9b('0x29')]());for(const [_0x42b696,_0x5a3ebb]of this[_0x3f9b('0x9')]){const _0xdf2b8d=_0x13bed7(_0x5a3ebb),_0x30f71c=_0x5e9013[_0x3f9b('0x2')](_0x42b696);_0xdf2b8d&&_0x30f71c&&_0x4b6551[_0x3f9b('0x5')]({'annotation':_0x30f71c,'range':_0xdf2b8d});}function _0x13bed7(_0x35fea2){for(const _0x18cbee of _0x35fea2)for(const _0x14557f of _0x34b451)if(_0x18cbee[_0x3f9b('0x16')](_0x14557f,!_0x17cabd[_0x3f9b('0x25')]))return _0x18cbee;return null;}return _0x4b6551[_0x3f9b('0x0')]((_0x5999c7,_0x112016)=>{const _0x1ddf44=_0x5999c7[_0x3f9b('0x18')],_0x439be1=_0x112016[_0x3f9b('0x18')];if(!_0x1ddf44[_0x3f9b('0x1a')](_0x439be1)){if(_0x1ddf44[_0x3f9b('0x16')](_0x439be1,!0x0))return 0x1;if(_0x439be1[_0x3f9b('0x16')](_0x1ddf44,!0x0))return-0x1;}return _0x5999c7[_0x3f9b('0x11')]==_0x5e79b0?-0x1:_0x112016[_0x3f9b('0x11')]==_0x5e79b0?0x1:0x0;})['map'](_0x52024c=>_0x52024c[_0x3f9b('0x11')]);}get[_0x3f9b('0x9')](){const _0x2e269d=new Map();for(const _0x47bf3e of Array[_0x3f9b('0x1e')](this[_0x3f9b('0x14')]))for(const [_0x417716,_0x558d27]of _0x47bf3e())_0x2e269d[_0x3f9b('0x22')](_0x417716,_0x558d27);return _0x2e269d;}}
23
+ const _0x1d94=['listenTo','view','add','element','model','registerAnnotation','addSourceCollector','getRanges','range','annotation','cancel','from','delete','_editorAnnotationsData','blur','refreshSelectedViews','uiUpdate','init','focusTracker','selection','requires','fire','_dataCollectors','change:isFocused','getOrderedSelectedAnnotations','remove','set','isCollapsed','pluginName','hasDomSelection','editing','push','containsRange','refresh','document','_editorAnnotations','EditorAnnotations','editorannotations-invalid-source-callback','has','update','plugins','editor','innerView'];(function(_0x59e166,_0x1d940c){const _0x4a0d37=function(_0x47ade2){while(--_0x47ade2){_0x59e166['push'](_0x59e166['shift']());}};_0x4a0d37(++_0x1d940c);}(_0x1d94,0x1dd));const _0x4a0d=function(_0x59e166,_0x1d940c){_0x59e166=_0x59e166-0x0;let _0x4a0d37=_0x1d94[_0x59e166];return _0x4a0d37;};import{Plugin as _0x48d258}from'ckeditor5/src/core';import{CKEditorError as _0x4acadc}from'ckeditor5/src/utils';import{debounce as _0x475526}from'lodash-es';import _0x22ca0e from'./annotations';export default class k extends _0x48d258{static get[_0x4a0d('0x10')](){return[_0x22ca0e];}static get[_0x4a0d('0x18')](){return _0x4a0d('0x20');}constructor(_0xc89ff0){super(_0xc89ff0),this[_0x4a0d('0x12')]=new Set(),this[_0x4a0d('0x1f')]=new Set();}[_0x4a0d('0xd')](){const _0x14a04a=this[_0x4a0d('0x25')],_0x367dc7=_0x14a04a[_0x4a0d('0x0')][_0x4a0d('0x1e')][_0x4a0d('0xf')],_0x179834=_0x475526(()=>this[_0x4a0d('0xb')](),0xa);_0x367dc7['on']('change:range',(_0xbfd901,_0x40569a)=>{_0x40569a['directChange']&&(_0x179834[_0x4a0d('0x6')](),this[_0x4a0d('0xb')]());}),this['listenTo'](_0x14a04a['editing'][_0x4a0d('0x28')][_0x4a0d('0x1e')],_0x4a0d('0x13'),(_0x5b2890,_0x35be68,_0x2f504d)=>{_0x2f504d&&_0x179834();}),this['listenTo'](_0x14a04a['ui']['focusTracker'],_0x4a0d('0x13'),(_0x3c7d6f,_0x1e1acb,_0x4aeaff)=>{_0x4aeaff||_0x14a04a['isReadOnly']||this[_0x4a0d('0x11')](_0x4a0d('0xa'),{'isAnnotationTracked':_0x53c7aa=>this[_0x4a0d('0x9')][_0x4a0d('0x22')](_0x53c7aa[_0x4a0d('0x26')])});}),this[_0x4a0d('0x27')](this['editor']['ui'],_0x4a0d('0x23'),()=>this[_0x4a0d('0x11')](_0x4a0d('0xc')));}[_0x4a0d('0x1')](_0x88b436){if(this[_0x4a0d('0x1f')][_0x4a0d('0x22')](_0x88b436['view']))return;this[_0x4a0d('0x1f')][_0x4a0d('0x29')](_0x88b436[_0x4a0d('0x28')]),this[_0x4a0d('0x25')]['ui'][_0x4a0d('0xe')]['add'](_0x88b436[_0x4a0d('0x28')][_0x4a0d('0x2a')]);const _0xd57c8d=this['editor'][_0x4a0d('0x24')]['get'](_0x22ca0e);this['listenTo'](_0xd57c8d['collection'],'remove',(_0x1e2635,_0x1d9e0d)=>{this[_0x4a0d('0x25')]['ui']['focusTracker'][_0x4a0d('0x15')](_0x1d9e0d['view'][_0x4a0d('0x2a')]),this[_0x4a0d('0x1f')][_0x4a0d('0x8')](_0x1d9e0d[_0x4a0d('0x28')]);});}[_0x4a0d('0x19')](){return this[_0x4a0d('0x25')][_0x4a0d('0x1a')][_0x4a0d('0x28')][_0x4a0d('0x19')];}[_0x4a0d('0x2')](_0x6045e8){if('function'!=typeof _0x6045e8)throw new _0x4acadc(_0x4a0d('0x21'));this[_0x4a0d('0x12')][_0x4a0d('0x29')](_0x6045e8);}[_0x4a0d('0xb')](){this[_0x4a0d('0x11')](_0x4a0d('0x1d'));}[_0x4a0d('0x14')]({activeAnnotation:_0x391194,annotations:_0x56407a}){const _0x9b105=[],_0x14e4cf=this[_0x4a0d('0x25')][_0x4a0d('0x0')][_0x4a0d('0x1e')][_0x4a0d('0xf')],_0x342a4c=Array[_0x4a0d('0x7')](_0x14e4cf[_0x4a0d('0x3')]());for(const [_0x57820f,_0x19a4e8]of this[_0x4a0d('0x9')]){const _0x430566=_0x1307ef(_0x19a4e8),_0x10baf2=_0x56407a['getByInnerView'](_0x57820f);_0x430566&&_0x10baf2&&_0x9b105[_0x4a0d('0x1b')]({'annotation':_0x10baf2,'range':_0x430566});}function _0x1307ef(_0x486c06){for(const _0xfbea9a of _0x486c06)for(const _0x1ab0f7 of _0x342a4c)if(_0xfbea9a['containsRange'](_0x1ab0f7,!_0x14e4cf[_0x4a0d('0x17')]))return _0xfbea9a;return null;}return _0x9b105['sort']((_0x4a54ac,_0x5e7de7)=>{const _0x1e0be5=_0x4a54ac['range'],_0x374d7c=_0x5e7de7[_0x4a0d('0x4')];if(!_0x1e0be5['isEqual'](_0x374d7c)){if(_0x1e0be5[_0x4a0d('0x1c')](_0x374d7c,!0x0))return 0x1;if(_0x374d7c[_0x4a0d('0x1c')](_0x1e0be5,!0x0))return-0x1;}return _0x4a54ac[_0x4a0d('0x5')]==_0x391194?-0x1:_0x5e7de7[_0x4a0d('0x5')]==_0x391194?0x1:0x0;})['map'](_0x2aab5d=>_0x2aab5d[_0x4a0d('0x5')]);}get[_0x4a0d('0x9')](){const _0x437d04=new Map();for(const _0x2dbb63 of Array[_0x4a0d('0x7')](this['_dataCollectors']))for(const [_0x30e244,_0x2da043]of _0x2dbb63())_0x437d04[_0x4a0d('0x16')](_0x30e244,_0x2da043);return _0x437d04;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52fe=['includes','isAttached','getOrderedSelectedAnnotations','top','annotations','switchTo','width','inline','_removeAnnotationFromBalloon','visibleView','_addedAnnotations','getByView','context','length','stopListening','_balloon','remove','from','_addAnnotationToBalloon','getBoundingClientRect','clear','getFirstRange','targetRect','destroy','detach','has','bottom','_closeAnnotation','InlineAnnotations','plugins','mousedown','selection','attach','hasView','_forceRefresh','isFocused','_selectedAnnotations','focusTracker','get','getClientRects','requires','document','isActive','editing','inlineannotations-attach-already-attached','_setSelectedAnnotations','keystrokes','inlineannotations-detach-not-attached','update','map','editableElement','showStack','activeAnnotation','change:height','setActiveAnnotation','push','updatePosition','right','blur','find','add','focus','register','hasActive','view','left','_getBalloonTargetForAnnotation','pluginName','change:isFocused','delete','set','collapse','target','Esc','_manuallyClosed','init','editor','listenTo','afterInit','refresh'];(function(_0x4a64c5,_0x52fec0){const _0x2bfa3d=function(_0x4c5370){while(--_0x4c5370){_0x4a64c5['push'](_0x4a64c5['shift']());}};_0x2bfa3d(++_0x52fec0);}(_0x52fe,0x19c));const _0x2bfa=function(_0x4a64c5,_0x52fec0){_0x4a64c5=_0x4a64c5-0x0;let _0x2bfa3d=_0x52fe[_0x4a64c5];return _0x2bfa3d;};import{Plugin as _0x98f43d}from'ckeditor5/src/core';import _0x5edf87 from'./annotationsuis';import _0x14f298 from'./editorannotations';import{ContextualBalloon as _0xe4cbbd}from'ckeditor5/src/ui';import{MouseObserver as _0x4e89b4}from'ckeditor5/src/engine';import{CKEditorError as _0x4158d2,Rect as _0x1bf04c}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x98f43d{static get[_0x2bfa('0x1c')](){return[_0x14f298,_0xe4cbbd,_0x5edf87];}static get[_0x2bfa('0x37')](){return _0x2bfa('0x10');}constructor(_0x593619){super(_0x593619),_0x593619[_0x2bfa('0x1f')][_0x2bfa('0x34')]['addObserver'](_0x4e89b4),this[_0x2bfa('0x45')]=!0x1,this[_0x2bfa('0x3a')]('activeAnnotation',null),this['annotations']=null,this[_0x2bfa('0x3e')]=new Set(),this[_0x2bfa('0x3')]=_0x593619[_0x2bfa('0x11')][_0x2bfa('0x1a')](_0xe4cbbd),this[_0x2bfa('0x4e')]=new Set(),this['_selectedAnnotations']=[],this[_0x2bfa('0x16')]=!0x1;}[_0x2bfa('0x3f')](){const _0xafed9c=this[_0x2bfa('0x40')][_0x2bfa('0x11')][_0x2bfa('0x1a')](_0x5edf87);_0xafed9c[_0x2bfa('0x0')]===this[_0x2bfa('0x40')]&&(_0xafed9c[_0x2bfa('0x32')](_0x2bfa('0x4b'),this),this['editor'][_0x2bfa('0x22')]['set'](_0x2bfa('0x3d'),(_0x33908e,_0x4399cd)=>{const _0x3ad88d=this[_0x2bfa('0x3')];if(this[_0x2bfa('0x45')]&&_0x3ad88d[_0x2bfa('0x4d')]){const _0x39eb6d=this[_0x2bfa('0x48')]['getByView'](_0x3ad88d[_0x2bfa('0x4d')]);_0x39eb6d&&this['_closeAnnotation'](_0x39eb6d),_0x4399cd();}}));}[_0x2bfa('0x42')](){const _0x114334=this['editor'][_0x2bfa('0x11')]['get'](_0x5edf87);_0x114334[_0x2bfa('0x0')]===this['editor']&&(_0x114334[_0x2bfa('0x33')]()||_0x114334[_0x2bfa('0x49')](_0x2bfa('0x4b')));}[_0x2bfa('0x2a')](_0x492e1a){_0x492e1a!==this[_0x2bfa('0x28')]&&(this[_0x2bfa('0x28')]&&(this['activeAnnotation'][_0x2bfa('0x1e')]=!0x1),_0x492e1a&&this[_0x2bfa('0x40')]['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x492e1a)&&this[_0x2bfa('0x6')](_0x492e1a,!0x0),_0x492e1a[_0x2bfa('0x1e')]=!0x0),_0x492e1a||this[_0x2bfa('0x21')]([]),this[_0x2bfa('0x28')]=_0x492e1a);}[_0x2bfa('0x14')](_0x3841e3){this[_0x2bfa('0x48')]=_0x3841e3;const _0x3a1d84=this['editor'][_0x2bfa('0x11')]['get'](_0x5edf87),_0x43b16b=this[_0x2bfa('0x3')];if(this[_0x2bfa('0x45')])throw new _0x4158d2(_0x2bfa('0x20'),this);if(_0x3a1d84[_0x2bfa('0x0')]!==this[_0x2bfa('0x40')])throw new _0x4158d2('inlineannotations-not-allowed-with-context',this);const _0x11fe76=this[_0x2bfa('0x40')][_0x2bfa('0x11')][_0x2bfa('0x1a')](_0x14f298);this[_0x2bfa('0x41')](_0x11fe76,_0x2bfa('0x43'),()=>{const _0x1edc2e=_0x11fe76[_0x2bfa('0x46')]({'annotations':this['annotations'],'activeAnnotation':this[_0x2bfa('0x28')]});var _0x196707,_0x2e8729;!this['_forceRefresh']&&(_0x196707=_0x1edc2e,_0x2e8729=this[_0x2bfa('0x18')],_0x196707[_0x2bfa('0x1')]===_0x2e8729[_0x2bfa('0x1')]&&_0x196707['every'](_0x29fa9b=>_0x2e8729[_0x2bfa('0x44')](_0x29fa9b)))||(this[_0x2bfa('0x16')]=!0x1,this['_setSelectedAnnotations'](_0x1edc2e),this[_0x2bfa('0x2a')](_0x1edc2e[0x0]||null));}),this[_0x2bfa('0x41')](_0x11fe76,_0x2bfa('0x2e'),(_0x6f5253,{isAnnotationTracked:_0x2a8bd1})=>{this['activeAnnotation']&&_0x2a8bd1(this[_0x2bfa('0x28')])&&(this['_setSelectedAnnotations']([]),this[_0x2bfa('0x2a')](null));}),this[_0x2bfa('0x41')](this[_0x2bfa('0x40')]['ui'][_0x2bfa('0x19')],_0x2bfa('0x38'),(_0x560f41,_0x26a445,_0x4b3635)=>{_0x4b3635||this[_0x2bfa('0x2a')](null);}),this['listenTo'](_0x3841e3,_0x2bfa('0x4'),(_0xcf71bf,_0x53c219)=>{this['_removeAnnotationFromBalloon'](_0x53c219),_0x53c219===this[_0x2bfa('0x28')]&&this[_0x2bfa('0x2a')](null);}),this[_0x2bfa('0x41')](_0x43b16b,'change:visibleView',(_0xe75696,_0x3dba2e,_0x50514e,_0x4906cc)=>{_0x4906cc&&this[_0x2bfa('0x2')](_0x4906cc);const _0x25af4b=_0x3841e3[_0x2bfa('0x4f')](_0x50514e);_0x50514e&&_0x25af4b&&(this[_0x2bfa('0x41')](_0x50514e,_0x2bfa('0x29'),()=>{_0x43b16b[_0x2bfa('0x2c')]();}),this['listenTo'](_0x50514e,_0x2bfa('0x3d'),()=>{this[_0x2bfa('0xf')](_0x25af4b),this[_0x2bfa('0x40')][_0x2bfa('0x1f')][_0x2bfa('0x34')][_0x2bfa('0x31')]();}),this[_0x2bfa('0x28')]!==_0x25af4b&&this['setActiveAnnotation'](_0x25af4b));}),this[_0x2bfa('0x41')](this[_0x2bfa('0x40')]['ui'],_0x2bfa('0x24'),()=>{_0x43b16b[_0x2bfa('0x4d')]&&(_0x3841e3[_0x2bfa('0x4f')](_0x43b16b[_0x2bfa('0x4d')])&&_0x43b16b['updatePosition']());}),this[_0x2bfa('0x41')](this[_0x2bfa('0x40')][_0x2bfa('0x1f')][_0x2bfa('0x34')]['document'],_0x2bfa('0x12'),()=>{this['_forceRefresh']=!0x0,this[_0x2bfa('0x3e')][_0x2bfa('0x8')]();}),this[_0x2bfa('0x40')][_0x2bfa('0x1f')]['view'][_0x2bfa('0x1d')][_0x2bfa('0x13')][_0x2bfa('0x26')]&&this['editor']['editing']['view'][_0x2bfa('0x31')](),this[_0x2bfa('0x45')]=!0x0;}[_0x2bfa('0xc')](){if(!this['isAttached'])throw new _0x4158d2(_0x2bfa('0x23'),this);this[_0x2bfa('0x2a')](null);for(const _0x32de3c of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x32de3c);this[_0x2bfa('0x2')](),this[_0x2bfa('0x45')]=!0x1,this['annotations']=null;}[_0x2bfa('0xb')](){this[_0x2bfa('0x45')]&&this[_0x2bfa('0xc')]();}[_0x2bfa('0x21')](_0x10db77){for(const _0x5c2094 of this[_0x2bfa('0x18')])_0x10db77[_0x2bfa('0x44')](_0x5c2094)||this[_0x2bfa('0x3e')][_0x2bfa('0x39')](_0x5c2094);for(const _0x296a3a of this[_0x2bfa('0x48')])_0x10db77[_0x2bfa('0x44')](_0x296a3a)||this[_0x2bfa('0x4c')](_0x296a3a);if(this[_0x2bfa('0x40')]['ui'][_0x2bfa('0x19')][_0x2bfa('0x17')])for(const _0x2f11d1 of _0x10db77)this[_0x2bfa('0x6')](_0x2f11d1);this[_0x2bfa('0x18')]=_0x10db77;}[_0x2bfa('0x6')](_0x38b27a,_0x3b68ae=!0x1){this['_manuallyClosed'][_0x2bfa('0xd')](_0x38b27a)||(this[_0x2bfa('0x4e')][_0x2bfa('0xd')](_0x38b27a)||this[_0x2bfa('0x3')]['hasView'](_0x38b27a[_0x2bfa('0x34')])||(this['_addedAnnotations'][_0x2bfa('0x30')](_0x38b27a),this[_0x2bfa('0x3')]['add']({'stackId':_0x38b27a[_0x2bfa('0x34')]['id'],'view':_0x38b27a[_0x2bfa('0x34')],'position':{'target':()=>this[_0x2bfa('0x36')](_0x38b27a)}})),_0x3b68ae&&this['_balloon'][_0x2bfa('0x27')](_0x38b27a[_0x2bfa('0x34')]['id']));}['_getBalloonTargetForAnnotation'](_0x1d82ce){const _0x43dd36=_0x1d82ce[_0x2bfa('0x3c')],_0x138d87=this['editor']['editing']['view'],_0x4fa45e=_0x138d87['document']['selection'][_0x2bfa('0x9')](),_0xb02452=_0x138d87['domConverter']['viewRangeToDom'](_0x4fa45e);if(_0xb02452[_0x2bfa('0x3b')](!0x0),_0x43dd36){if(_0x43dd36 instanceof _0x1bf04c)return _0x43dd36;let _0x42bcb3=[];for(const _0x58ae24 of _0x43dd36)_0x42bcb3[_0x2bfa('0x2b')](...(_0xcd03e9=_0x58ae24[_0x2bfa('0x1b')](),Array[_0x2bfa('0x5')](_0xcd03e9)[_0x2bfa('0x25')](DOMRect['fromRect'])));_0x42bcb3=function(_0x109d82){const _0x4655bc=[];let _0x44697a=_0x109d82[0x0];for(let _0x416e5e=0x1;_0x416e5e<_0x109d82['length'];_0x416e5e++)F(_0x44697a,_0x109d82[_0x416e5e])?_0x44697a['width']+=_0x109d82[_0x416e5e][_0x2bfa('0x4a')]:(_0x4655bc[_0x2bfa('0x2b')](_0x44697a),_0x44697a=_0x109d82[_0x416e5e]);return _0x4655bc[_0x2bfa('0x2b')](_0x44697a),_0x4655bc;}(_0x42bcb3);const _0x4dd3de=_0xb02452[_0x2bfa('0x7')]();return _0x42bcb3[_0x2bfa('0x2f')](_0x3dccd6=>_0x3dccd6[_0x2bfa('0x47')]<=_0x4dd3de[_0x2bfa('0x47')]&&_0x3dccd6[_0x2bfa('0xe')]>=_0x4dd3de[_0x2bfa('0xe')]&&_0x3dccd6[_0x2bfa('0x35')]<=_0x4dd3de['left']&&_0x3dccd6[_0x2bfa('0x2d')]>=_0x4dd3de[_0x2bfa('0x2d')])||_0x42bcb3[0x0];}var _0xcd03e9;return _0x1d82ce[_0x2bfa('0xa')]||_0xb02452;}['_removeAnnotationFromBalloon'](_0x3ac425){this[_0x2bfa('0x4e')]['has'](_0x3ac425)&&this[_0x2bfa('0x3')][_0x2bfa('0x15')](_0x3ac425[_0x2bfa('0x34')])&&(this['_addedAnnotations'][_0x2bfa('0x39')](_0x3ac425),this['_balloon'][_0x2bfa('0x4')](_0x3ac425['view']));}[_0x2bfa('0xf')](_0x131454){this[_0x2bfa('0x3e')]['add'](_0x131454),this[_0x2bfa('0x4c')](_0x131454);}}function F(_0x4ba2b4,_0x1da6b2){return _0x4ba2b4[_0x2bfa('0x47')]===_0x1da6b2['top']&&_0x4ba2b4[_0x2bfa('0xe')]===_0x1da6b2[_0x2bfa('0xe')]&&_0x4ba2b4[_0x2bfa('0x2d')]===_0x1da6b2[_0x2bfa('0x35')];}
23
+ const _0x3d87=['focus','focusTracker','showStack','find','change:height','targetRect','InlineAnnotations','every','editableElement','attach','init','inline','left','activeAnnotation','_getBalloonTargetForAnnotation','editor','isFocused','addObserver','top','push','_addedAnnotations','annotations','set','refresh','mousedown','_setSelectedAnnotations','length','requires','getFirstRange','plugins','bottom','register','_addAnnotationToBalloon','right','selection','clear','listenTo','inlineannotations-detach-not-attached','_forceRefresh','switchTo','hasActive','inlineannotations-attach-already-attached','stopListening','inlineannotations-not-allowed-with-context','pluginName','getByView','detach','isAttached','Esc','context','getClientRects','includes','get','fromRect','document','_manuallyClosed','update','width','change:visibleView','_closeAnnotation','add','_removeAnnotationFromBalloon','target','setActiveAnnotation','afterInit','domConverter','updatePosition','delete','hasView','from','isActive','view','getOrderedSelectedAnnotations','has','editing','getBoundingClientRect','_balloon','_selectedAnnotations','visibleView'];(function(_0x184e0e,_0x3d87e1){const _0x3d2181=function(_0x18823b){while(--_0x18823b){_0x184e0e['push'](_0x184e0e['shift']());}};_0x3d2181(++_0x3d87e1);}(_0x3d87,0xca));const _0x3d21=function(_0x184e0e,_0x3d87e1){_0x184e0e=_0x184e0e-0x0;let _0x3d2181=_0x3d87[_0x184e0e];return _0x3d2181;};import{Plugin as _0x5161a2}from'ckeditor5/src/core';import _0x21456a from'./annotationsuis';import _0x4ae51f from'./editorannotations';import{ContextualBalloon as _0x5a8599}from'ckeditor5/src/ui';import{MouseObserver as _0x5e6656}from'ckeditor5/src/engine';import{CKEditorError as _0x56905a,Rect as _0x2ae054}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x5161a2{static get[_0x3d21('0x3e')](){return[_0x4ae51f,_0x5a8599,_0x21456a];}static get[_0x3d21('0x0')](){return _0x3d21('0x29');}constructor(_0x446c2e){super(_0x446c2e),_0x446c2e[_0x3d21('0x1e')][_0x3d21('0x1b')][_0x3d21('0x34')](_0x5e6656),this[_0x3d21('0x3')]=!0x1,this['set'](_0x3d21('0x30'),null),this[_0x3d21('0x38')]=null,this[_0x3d21('0xb')]=new Set(),this[_0x3d21('0x20')]=_0x446c2e[_0x3d21('0x40')][_0x3d21('0x8')](_0x5a8599),this[_0x3d21('0x37')]=new Set(),this[_0x3d21('0x21')]=[],this[_0x3d21('0x49')]=!0x1;}[_0x3d21('0x2d')](){const _0x3b8e83=this['editor'][_0x3d21('0x40')][_0x3d21('0x8')](_0x21456a);_0x3b8e83[_0x3d21('0x5')]===this[_0x3d21('0x32')]&&(_0x3b8e83[_0x3d21('0x42')](_0x3d21('0x2e'),this),this['editor']['keystrokes'][_0x3d21('0x39')](_0x3d21('0x4'),(_0x1511e6,_0x40d5eb)=>{const _0x162760=this[_0x3d21('0x20')];if(this[_0x3d21('0x3')]&&_0x162760['visibleView']){const _0x93627d=this[_0x3d21('0x38')][_0x3d21('0x1')](_0x162760[_0x3d21('0x22')]);_0x93627d&&this[_0x3d21('0xf')](_0x93627d),_0x40d5eb();}}));}[_0x3d21('0x14')](){const _0x3e34f6=this[_0x3d21('0x32')][_0x3d21('0x40')][_0x3d21('0x8')](_0x21456a);_0x3e34f6[_0x3d21('0x5')]===this['editor']&&(_0x3e34f6[_0x3d21('0x4b')]()||_0x3e34f6[_0x3d21('0x4a')]('inline'));}[_0x3d21('0x13')](_0x21327e){_0x21327e!==this[_0x3d21('0x30')]&&(this[_0x3d21('0x30')]&&(this[_0x3d21('0x30')][_0x3d21('0x1a')]=!0x1),_0x21327e&&this[_0x3d21('0x32')]['ui'][_0x3d21('0x24')]['isFocused']&&(this[_0x3d21('0x38')][_0x3d21('0x1d')](_0x21327e)&&this[_0x3d21('0x43')](_0x21327e,!0x0),_0x21327e[_0x3d21('0x1a')]=!0x0),_0x21327e||this[_0x3d21('0x3c')]([]),this[_0x3d21('0x30')]=_0x21327e);}[_0x3d21('0x2c')](_0x77fcaf){this[_0x3d21('0x38')]=_0x77fcaf;const _0x4e101f=this[_0x3d21('0x32')]['plugins'][_0x3d21('0x8')](_0x21456a),_0x57867f=this[_0x3d21('0x20')];if(this[_0x3d21('0x3')])throw new _0x56905a(_0x3d21('0x4c'),this);if(_0x4e101f[_0x3d21('0x5')]!==this['editor'])throw new _0x56905a(_0x3d21('0x4e'),this);const _0x18ec1d=this['editor'][_0x3d21('0x40')][_0x3d21('0x8')](_0x4ae51f);this[_0x3d21('0x47')](_0x18ec1d,_0x3d21('0x3a'),()=>{const _0x290845=_0x18ec1d[_0x3d21('0x1c')]({'annotations':this[_0x3d21('0x38')],'activeAnnotation':this['activeAnnotation']});var _0xf3cee1,_0x2d15dc;!this['_forceRefresh']&&(_0xf3cee1=_0x290845,_0x2d15dc=this[_0x3d21('0x21')],_0xf3cee1[_0x3d21('0x3d')]===_0x2d15dc[_0x3d21('0x3d')]&&_0xf3cee1[_0x3d21('0x2a')](_0xd8ae1d=>_0x2d15dc[_0x3d21('0x7')](_0xd8ae1d)))||(this['_forceRefresh']=!0x1,this[_0x3d21('0x3c')](_0x290845),this['setActiveAnnotation'](_0x290845[0x0]||null));}),this[_0x3d21('0x47')](_0x18ec1d,'blur',(_0x15b2b3,{isAnnotationTracked:_0x5ec3e8})=>{this[_0x3d21('0x30')]&&_0x5ec3e8(this[_0x3d21('0x30')])&&(this[_0x3d21('0x3c')]([]),this[_0x3d21('0x13')](null));}),this[_0x3d21('0x47')](this[_0x3d21('0x32')]['ui'][_0x3d21('0x24')],'change:isFocused',(_0x51a21c,_0xa21891,_0x3a8a6d)=>{_0x3a8a6d||this[_0x3d21('0x13')](null);}),this[_0x3d21('0x47')](_0x77fcaf,'remove',(_0x26b569,_0x5b72bf)=>{this[_0x3d21('0x11')](_0x5b72bf),_0x5b72bf===this[_0x3d21('0x30')]&&this[_0x3d21('0x13')](null);}),this['listenTo'](_0x57867f,_0x3d21('0xe'),(_0x4b82ce,_0x1b0e55,_0x27bda0,_0x28452d)=>{_0x28452d&&this['stopListening'](_0x28452d);const _0x69bcb7=_0x77fcaf['getByView'](_0x27bda0);_0x27bda0&&_0x69bcb7&&(this[_0x3d21('0x47')](_0x27bda0,_0x3d21('0x27'),()=>{_0x57867f[_0x3d21('0x16')]();}),this[_0x3d21('0x47')](_0x27bda0,_0x3d21('0x4'),()=>{this['_closeAnnotation'](_0x69bcb7),this[_0x3d21('0x32')][_0x3d21('0x1e')]['view'][_0x3d21('0x23')]();}),this[_0x3d21('0x30')]!==_0x69bcb7&&this[_0x3d21('0x13')](_0x69bcb7));}),this[_0x3d21('0x47')](this['editor']['ui'],_0x3d21('0xc'),()=>{_0x57867f[_0x3d21('0x22')]&&(_0x77fcaf[_0x3d21('0x1')](_0x57867f[_0x3d21('0x22')])&&_0x57867f[_0x3d21('0x16')]());}),this[_0x3d21('0x47')](this['editor'][_0x3d21('0x1e')]['view'][_0x3d21('0xa')],_0x3d21('0x3b'),()=>{this[_0x3d21('0x49')]=!0x0,this[_0x3d21('0xb')][_0x3d21('0x46')]();}),this[_0x3d21('0x32')][_0x3d21('0x1e')][_0x3d21('0x1b')]['document']['selection'][_0x3d21('0x2b')]&&this[_0x3d21('0x32')][_0x3d21('0x1e')][_0x3d21('0x1b')][_0x3d21('0x23')](),this[_0x3d21('0x3')]=!0x0;}[_0x3d21('0x2')](){if(!this['isAttached'])throw new _0x56905a(_0x3d21('0x48'),this);this[_0x3d21('0x13')](null);for(const _0x5bb05f of this[_0x3d21('0x37')])this[_0x3d21('0x11')](_0x5bb05f);this[_0x3d21('0x4d')](),this[_0x3d21('0x3')]=!0x1,this[_0x3d21('0x38')]=null;}['destroy'](){this[_0x3d21('0x3')]&&this[_0x3d21('0x2')]();}[_0x3d21('0x3c')](_0x38bf8a){for(const _0x1c44d7 of this[_0x3d21('0x21')])_0x38bf8a[_0x3d21('0x7')](_0x1c44d7)||this[_0x3d21('0xb')][_0x3d21('0x17')](_0x1c44d7);for(const _0x1536b9 of this[_0x3d21('0x38')])_0x38bf8a[_0x3d21('0x7')](_0x1536b9)||this[_0x3d21('0x11')](_0x1536b9);if(this[_0x3d21('0x32')]['ui']['focusTracker'][_0x3d21('0x33')])for(const _0x5198f8 of _0x38bf8a)this['_addAnnotationToBalloon'](_0x5198f8);this[_0x3d21('0x21')]=_0x38bf8a;}[_0x3d21('0x43')](_0x2ca1f1,_0x3acf12=!0x1){this[_0x3d21('0xb')]['has'](_0x2ca1f1)||(this[_0x3d21('0x37')][_0x3d21('0x1d')](_0x2ca1f1)||this[_0x3d21('0x20')][_0x3d21('0x18')](_0x2ca1f1[_0x3d21('0x1b')])||(this[_0x3d21('0x37')][_0x3d21('0x10')](_0x2ca1f1),this[_0x3d21('0x20')]['add']({'stackId':_0x2ca1f1[_0x3d21('0x1b')]['id'],'view':_0x2ca1f1['view'],'position':{'target':()=>this[_0x3d21('0x31')](_0x2ca1f1)}})),_0x3acf12&&this[_0x3d21('0x20')][_0x3d21('0x25')](_0x2ca1f1[_0x3d21('0x1b')]['id']));}['_getBalloonTargetForAnnotation'](_0xf59f04){const _0x3f8c71=_0xf59f04[_0x3d21('0x12')],_0x325773=this[_0x3d21('0x32')][_0x3d21('0x1e')][_0x3d21('0x1b')],_0x19a827=_0x325773['document'][_0x3d21('0x45')][_0x3d21('0x3f')](),_0x29bc2a=_0x325773[_0x3d21('0x15')]['viewRangeToDom'](_0x19a827);if(_0x29bc2a['collapse'](!0x0),_0x3f8c71){if(_0x3f8c71 instanceof _0x2ae054)return _0x3f8c71;let _0x361765=[];for(const _0x386451 of _0x3f8c71)_0x361765[_0x3d21('0x36')](...(_0x53f3f7=_0x386451[_0x3d21('0x6')](),Array[_0x3d21('0x19')](_0x53f3f7)['map'](DOMRect[_0x3d21('0x9')])));_0x361765=function(_0x47a70b){const _0x2d6726=[];let _0x55e793=_0x47a70b[0x0];for(let _0x211b91=0x1;_0x211b91<_0x47a70b[_0x3d21('0x3d')];_0x211b91++)F(_0x55e793,_0x47a70b[_0x211b91])?_0x55e793['width']+=_0x47a70b[_0x211b91][_0x3d21('0xd')]:(_0x2d6726[_0x3d21('0x36')](_0x55e793),_0x55e793=_0x47a70b[_0x211b91]);return _0x2d6726[_0x3d21('0x36')](_0x55e793),_0x2d6726;}(_0x361765);const _0x465cc1=_0x29bc2a[_0x3d21('0x1f')]();return _0x361765[_0x3d21('0x26')](_0x1f06d0=>_0x1f06d0[_0x3d21('0x35')]<=_0x465cc1[_0x3d21('0x35')]&&_0x1f06d0[_0x3d21('0x41')]>=_0x465cc1[_0x3d21('0x41')]&&_0x1f06d0[_0x3d21('0x2f')]<=_0x465cc1['left']&&_0x1f06d0[_0x3d21('0x44')]>=_0x465cc1[_0x3d21('0x44')])||_0x361765[0x0];}var _0x53f3f7;return _0xf59f04[_0x3d21('0x28')]||_0x29bc2a;}['_removeAnnotationFromBalloon'](_0x3e1a1b){this[_0x3d21('0x37')][_0x3d21('0x1d')](_0x3e1a1b)&&this[_0x3d21('0x20')]['hasView'](_0x3e1a1b[_0x3d21('0x1b')])&&(this[_0x3d21('0x37')][_0x3d21('0x17')](_0x3e1a1b),this['_balloon']['remove'](_0x3e1a1b[_0x3d21('0x1b')]));}['_closeAnnotation'](_0x513bd9){this['_manuallyClosed']['add'](_0x513bd9),this[_0x3d21('0x11')](_0x513bd9);}}function F(_0x8b8c33,_0x3d7fe4){return _0x8b8c33[_0x3d21('0x35')]===_0x3d7fe4[_0x3d21('0x35')]&&_0x8b8c33[_0x3d21('0x41')]===_0x3d7fe4[_0x3d21('0x41')]&&_0x8b8c33['right']===_0x3d7fe4[_0x3d21('0x2f')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ec7=['change:height','_attachListeners','set:container','from','resize','isAttached','_detachFromContainer','removeEventListener','balloonPanelView','_showBalloon','annotationType','northArrowSouth','Esc','addAnnotation','esc','pin','delete','isDirty','pluginName','narrowsidebar-attach-already-attached','_destroyEditorAnnotationsIntegration','target','_manuallyClosedAnnotationViews','clear','element','type','narrowSidebar','off','_domEmitter','getOrderedSelectedAnnotations','_selectedAnnotations','southArrowNorthEast','addEventListener','_hideBalloon','uiUpdate','init','_integrateWithEditorAnnotations','_detachListeners','contains','low','_editorAnnotations','EditorAnnotations','annotations','change:container','add','destroy','view','first','_setSelectedAnnotations','bind','_attachToContainer','remove','context','hasDomSelection','mousedown','stop','plugins','locale','bodyCollection','register','has','setActiveAnnotation','isVisible','detach','editors','get','execute','unpin','_refreshPositioningDebounced','blur','high','getSidebarItemView','create','detachFromDom','narrowsidebar-detach-not-attached','_annotations','ck-sidebar--narrow','stopPropagation','NarrowSidebar','find','values','northArrowSouthWest','length','ready','_annotationToNarrowView','stopListening','_refreshPositioning','activeAnnotation','listenTo','preventClosingBalloon','content','preventDefault','_updateBalloonPosition','rearrange','set'];(function(_0x2eb581,_0x3ec7da){const _0x24c7d9=function(_0x3c160b){while(--_0x3c160b){_0x2eb581['push'](_0x2eb581['shift']());}};_0x24c7d9(++_0x3ec7da);}(_0x3ec7,0x128));const _0x24c7=function(_0x2eb581,_0x3ec7da){_0x2eb581=_0x2eb581-0x0;let _0x24c7d9=_0x3ec7[_0x2eb581];return _0x24c7d9;};import{ContextPlugin as _0x54c0a4,Context as _0x1d37c0}from'ckeditor5/src/core';import _0x1320f3 from'./annotationsuis';import _0x556d9c from'./sidebar';import _0x3112fe from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x514cff,BodyCollection as _0x4639ec}from'ckeditor5/src/ui';import{CKEditorError as _0x5ca631,DomEmitterMixin as _0x55231b,keyCodes as _0x308cda,Collection as _0x304e2f}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x52f603}from'lodash-es';import _0x15ae61 from'./editorannotations';export default class s extends _0x54c0a4{static get['requires'](){return[_0x556d9c,_0x1320f3];}static get[_0x24c7('0x7')](){return _0x24c7('0x43');}constructor(_0x238427){super(_0x238427),this[_0x24c7('0x59')]=!0x1,this[_0x24c7('0xb')]=new Set(),this['_domEmitter']=Object[_0x24c7('0x3d')](_0x55231b),this[_0x24c7('0x49')]=new Map(),this[_0x24c7('0x53')](_0x24c7('0x4c'),null),this['annotations']=null,this[_0x24c7('0x13')]=[],this[_0x24c7('0x1d')]=new _0x304e2f(),this['_refreshPositioningDebounced']=_0x52f603(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x24c7('0x18')](){this['context']['plugins'][_0x24c7('0x36')](_0x1320f3)[_0x24c7('0x30')](_0x24c7('0xf'),this),this['bodyCollection']=new _0x4639ec(this[_0x24c7('0x29')]['locale']),this[_0x24c7('0x5c')]=new _0x514cff(this['context'][_0x24c7('0x2e')]),this['bodyCollection']['attachToDom'](),this['bodyCollection'][_0x24c7('0x21')](this['balloonPanelView']);}['attach'](_0x143e58){this[_0x24c7('0x1f')]=_0x143e58;const _0x5a4efd=this[_0x24c7('0x29')][_0x24c7('0x2d')][_0x24c7('0x36')](_0x556d9c),_0x3a6ea2=this[_0x24c7('0x5c')];if(_0x5a4efd[_0x24c7('0x40')]=_0x143e58,this[_0x24c7('0x59')])throw new _0x5ca631(_0x24c7('0x8'),this);this['isAttached']=!0x0,this['listenTo'](_0x5a4efd,_0x24c7('0x56'),()=>{this[_0x24c7('0x34')](),this[_0x24c7('0x4d')](_0x5a4efd,_0x24c7('0x20'),_0x184458=>{_0x184458[_0x24c7('0x10')](),this['attach'](_0x143e58);});}),_0x5a4efd[_0x24c7('0x27')]({'viewClass':_0x24c7('0x41'),'spaceBetweenItems':0x5});const _0x27c33c=_0x302d79=>{const _0x41a7b6=new _0x3112fe(this[_0x24c7('0x29')]['locale']);_0x5a4efd[_0x24c7('0x2')](_0x302d79,_0x41a7b6),this['_annotationToNarrowView'][_0x24c7('0x53')](_0x302d79,_0x41a7b6),_0x41a7b6[_0x24c7('0x26')](_0x24c7('0x6'),_0x24c7('0x5e'),'number')['to'](_0x302d79[_0x24c7('0x23')],_0x24c7('0x6'),_0x24c7('0xe'),_0x24c7('0x47')),_0x41a7b6['on'](_0x24c7('0x37'),()=>{this[_0x24c7('0xb')][_0x24c7('0xc')](),_0x3a6ea2[_0x24c7('0x4f')][_0x24c7('0x24')]!==_0x302d79['view']?(this[_0x24c7('0x5d')](_0x302d79),_0x302d79[_0x24c7('0x23')][_0x24c7('0xd')]['focus'](),this['setActiveAnnotation'](_0x302d79)):this[_0x24c7('0x32')](null);});};for(const _0x1130f8 of _0x143e58)_0x27c33c(_0x1130f8);this['listenTo'](_0x143e58,_0x24c7('0x21'),(_0x59e58c,_0x26f72d)=>{_0x27c33c(_0x26f72d);}),this['listenTo'](_0x143e58,'remove',(_0x715d52,_0x17b60f,_0x8e053f)=>{this[_0x24c7('0x49')][_0x24c7('0x36')](_0x17b60f)['destroy'](),this[_0x24c7('0x49')][_0x24c7('0x5')](_0x17b60f),_0x5a4efd[_0x24c7('0x52')]({'removedAnnotation':_0x17b60f,'previousAnnotation':_0x143e58[_0x24c7('0x36')](_0x8e053f-0x1),'nextAnnotation':_0x143e58[_0x24c7('0x36')](_0x8e053f+0x1)}),_0x17b60f===this[_0x24c7('0x4c')]&&this[_0x24c7('0x32')](null);},{'priority':_0x24c7('0x1c')}),this[_0x24c7('0x4d')](_0x143e58,'focus',(_0x4ab8c9,_0xf24683)=>{this['setActiveAnnotation'](_0xf24683);}),this['listenTo'](_0x143e58,_0x24c7('0x3a'),()=>{this[_0x24c7('0x32')](null);}),this[_0x24c7('0x11')][_0x24c7('0x4d')](document,'keydown',(_0x357b18,_0x473fa3)=>{_0x473fa3['keyCode']===_0x308cda[_0x24c7('0x3')]&&_0x3a6ea2[_0x24c7('0x33')]&&(this['_manuallyClosedAnnotationViews'][_0x24c7('0x21')](_0x3a6ea2['content'][_0x24c7('0x24')]),this[_0x24c7('0x16')](),_0x473fa3[_0x24c7('0x42')](),_0x473fa3[_0x24c7('0x50')]());}),this['_domEmitter'][_0x24c7('0x4d')](document,'mousedown',(_0x5e1cf4,_0x193550)=>{const _0x697dc4=_0x193550[_0x24c7('0xa')];_0x3a6ea2[_0x24c7('0x33')]&&_0x3a6ea2[_0x24c7('0xd')][_0x24c7('0x1b')](_0x697dc4)||_0x5a4efd[_0x24c7('0x23')]['element'][_0x24c7('0x1b')](_0x697dc4)||_0x5e1cf4[_0x24c7('0x4e')]||this[_0x24c7('0x4c')]&&this[_0x24c7('0x4c')]['focusableElements'][_0x24c7('0x44')](_0x284ef0=>_0x284ef0['contains'](_0x697dc4))||(this[_0x24c7('0xb')]['clear'](),this[_0x24c7('0x16')](),this[_0x24c7('0x32')](null));});const _0x24a06d=this['context']instanceof _0x1d37c0?this[_0x24c7('0x29')]['editors']:new _0x304e2f([this['context']]);for(const _0x1ff30c of _0x24a06d)this['_integrateWithEditorAnnotations'](_0x1ff30c);this[_0x24c7('0x4d')](_0x24a06d,_0x24c7('0x21'),(_0x3ebfb6,_0x3a4c71)=>{this[_0x24c7('0x4d')](_0x3a4c71,_0x24c7('0x48'),()=>{this[_0x24c7('0x19')](_0x3a4c71);});}),this[_0x24c7('0x4d')](_0x24a06d,_0x24c7('0x28'),(_0x504fbe,_0x20cc5e)=>{_0x20cc5e[_0x24c7('0x2d')][_0x24c7('0x31')](_0x24c7('0x1e'))&&this[_0x24c7('0x9')](_0x20cc5e[_0x24c7('0x2d')][_0x24c7('0x36')](_0x24c7('0x1e')));}),window[_0x24c7('0x15')](_0x24c7('0x58'),this[_0x24c7('0x39')]),this[_0x24c7('0x4b')]();}['setActiveAnnotation'](_0xf6cfb2){if(_0xf6cfb2===this[_0x24c7('0x4c')])return;const _0x70885b=this[_0x24c7('0x29')][_0x24c7('0x2d')][_0x24c7('0x36')](_0x556d9c);if(_0x70885b['refresh']({'blurredAnnotation':this[_0x24c7('0x4c')],'activatedAnnotation':_0xf6cfb2,'disableAnimationOnActivatedAnnotation':!0x0}),_0xf6cfb2)_0x70885b[_0x24c7('0x3c')](_0xf6cfb2)?this['_showBalloon'](_0xf6cfb2):this['_hideBalloon']();else this['_hideBalloon']();this[_0x24c7('0x4c')]=_0xf6cfb2;}[_0x24c7('0x34')](){if(!this[_0x24c7('0x59')])throw new _0x5ca631(_0x24c7('0x3f'),this);this[_0x24c7('0x32')](null);const _0x4a17ad=this[_0x24c7('0x29')]['plugins'][_0x24c7('0x36')](_0x556d9c);this[_0x24c7('0x16')](),Array[_0x24c7('0x57')](this[_0x24c7('0x49')][_0x24c7('0x45')](),_0x4e9760=>_0x4e9760[_0x24c7('0x22')]()),this[_0x24c7('0x49')][_0x24c7('0xc')](),_0x4a17ad[_0x24c7('0x5a')](this[_0x24c7('0x1f')]),this[_0x24c7('0x4a')](),this[_0x24c7('0x11')][_0x24c7('0x4a')](),this[_0x24c7('0x29')]instanceof _0x1d37c0&&this[_0x24c7('0x4a')](this['context'][_0x24c7('0x35')]);for(const _0x220595 of Array[_0x24c7('0x57')](this[_0x24c7('0x1d')]))this[_0x24c7('0x9')](_0x220595);window[_0x24c7('0x5b')](_0x24c7('0x58'),this['_refreshPositioningDebounced']),this[_0x24c7('0x39')]['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this[_0x24c7('0x1f')]=null;}[_0x24c7('0x22')](){this[_0x24c7('0x59')]&&this[_0x24c7('0x34')](),this[_0x24c7('0x2f')][_0x24c7('0x3e')]();}[_0x24c7('0x19')](_0x1e2653){const _0x3e6ed3=_0x1e2653[_0x24c7('0x2d')][_0x24c7('0x36')](_0x15ae61),_0x7d87e8=this[_0x24c7('0x29')][_0x24c7('0x2d')][_0x24c7('0x36')](_0x556d9c),_0x4a8ec8=this[_0x24c7('0x1f')],_0x4718ff=this['balloonPanelView'],_0x511293=()=>{const _0x3af5a8=_0x3e6ed3[_0x24c7('0x12')]({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this[_0x24c7('0x25')](_0x3af5a8),this[_0x24c7('0x32')](_0x3af5a8[0x0]||null);};this[_0x24c7('0x4d')](_0x3e6ed3,'refresh',_0x511293),this['listenTo'](_0x3e6ed3,_0x24c7('0x3a'),(_0x43bde6,{isAnnotationTracked:_0x2529d8})=>{this['activeAnnotation']&&_0x2529d8(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this[_0x24c7('0x32')](null));}),this[_0x24c7('0x4d')](_0x3e6ed3,_0x24c7('0x17'),()=>{this[_0x24c7('0x39')]();}),this['listenTo'](_0x4a8ec8,_0x24c7('0x3a'),_0x5e1deb=>{_0x3e6ed3[_0x24c7('0x2a')]()&&_0x5e1deb[_0x24c7('0x2c')]();},{'priority':_0x24c7('0x3b')}),this['listenTo'](this['_domEmitter'],_0x24c7('0x2b'),(_0x2ca0b6,_0x2e8cd6)=>{const _0x5472d0=_0x2e8cd6[_0x24c7('0xa')];_0x4718ff[_0x24c7('0x33')]&&_0x4718ff[_0x24c7('0xd')]['contains'](_0x5472d0)||_0x7d87e8[_0x24c7('0x23')][_0x24c7('0xd')][_0x24c7('0x1b')](_0x5472d0)||this[_0x24c7('0x4c')]&&_0x3e6ed3[_0x24c7('0x2a')]()&&(_0x511293(),_0x2ca0b6[_0x24c7('0x4e')]=!0x0);},{'priority':'high'}),this[_0x24c7('0x1d')]['add'](_0x3e6ed3);}[_0x24c7('0x9')](_0x44e755){_0x44e755&&(this[_0x24c7('0x4a')](_0x44e755),this[_0x24c7('0x1d')][_0x24c7('0x28')](_0x44e755));}['_setSelectedAnnotations'](_0x5d63f8){for(const _0x182bf3 of this['_selectedAnnotations'])_0x5d63f8['includes'](_0x182bf3)||this[_0x24c7('0xb')][_0x24c7('0x5')](_0x182bf3[_0x24c7('0x23')]);this[_0x24c7('0x13')]=_0x5d63f8;}['_refreshPositioning'](){const _0x162330=this[_0x24c7('0x5c')];this[_0x24c7('0x1f')]['refreshPositioning'](),_0x162330[_0x24c7('0x33')]&&this[_0x24c7('0x51')]();}[_0x24c7('0x5d')](_0x6069da){if(this[_0x24c7('0xb')]['has'](_0x6069da[_0x24c7('0x23')]))return;const _0x19e5e4=this[_0x24c7('0x5c')][_0x24c7('0x4f')]['first'];_0x19e5e4!==_0x6069da['view']?(_0x19e5e4&&this['_detachListeners'](_0x19e5e4),this[_0x24c7('0x55')](_0x6069da[_0x24c7('0x23')]),this['balloonPanelView']['content'][_0x24c7('0xc')](),this['balloonPanelView'][_0x24c7('0x4f')][_0x24c7('0x21')](_0x6069da[_0x24c7('0x23')]),this['_updateBalloonPosition']()):this[_0x24c7('0x51')]();}['_updateBalloonPosition'](){const _0x5a7834=this[_0x24c7('0x5c')][_0x24c7('0x4f')][_0x24c7('0x24')],_0x50c7cd=_0x5a7834&&this[_0x24c7('0x1f')]['getByView'](_0x5a7834);if(!_0x50c7cd||!this[_0x24c7('0x49')]['has'](_0x50c7cd))return;const _0x4cc4f4=this[_0x24c7('0x49')][_0x24c7('0x36')](_0x50c7cd)[_0x24c7('0xd')],_0x3e8efe=function(){const _0x1d2ea7=_0x514cff['defaultPositions'];return[_0x1d2ea7[_0x24c7('0x14')],_0x1d2ea7['northArrowSouthEast'],_0x1d2ea7['southArrowNorth'],_0x1d2ea7[_0x24c7('0x0')],_0x1d2ea7['southArrowNorthWest'],_0x1d2ea7[_0x24c7('0x46')]];}();this[_0x24c7('0x5c')][_0x24c7('0x4')]({'target':_0x4cc4f4,'positions':_0x3e8efe});}[_0x24c7('0x16')](){const _0x111114=this[_0x24c7('0x5c')],_0x15bb1e=_0x111114[_0x24c7('0x4f')]['first'];_0x15bb1e&&(this[_0x24c7('0x1a')](_0x15bb1e),_0x111114[_0x24c7('0x38')](),_0x111114['content'][_0x24c7('0xc')]());}[_0x24c7('0x55')](_0x1523c1){this['listenTo'](_0x1523c1,_0x24c7('0x54'),()=>this[_0x24c7('0x51')]()),this[_0x24c7('0x4d')](_0x1523c1,_0x24c7('0x1'),(_0x344d04,_0x283991)=>{this[_0x24c7('0xb')]['add'](_0x1523c1),this[_0x24c7('0x16')](),_0x283991();});}[_0x24c7('0x1a')](_0x3016d6){this[_0x24c7('0x4a')](_0x3016d6);}}
23
+ const _0x44d6=['first','southArrowNorthWest','_setSelectedAnnotations','register','activeAnnotation','_attachToContainer','annotations','_annotationToNarrowView','_refreshPositioningDebounced','getSidebarItemView','has','keyCode','_hideBalloon','_detachFromContainer','northArrowSouth','refresh','bind','high','set','narrowsidebar-attach-already-attached','cancel','rearrange','attach','narrowsidebar-detach-not-attached','preventClosingBalloon','element','_annotations','detach','resize','focusableElements','clear','annotationType','plugins','southArrowNorthEast','isAttached','refreshPositioning','stop','get','remove','_updateBalloonPosition','stopPropagation','addAnnotation','isDirty','narrowSidebar','find','pin','change:container','delete','locale','from','content','_detachListeners','destroy','listenTo','blur','getByView','defaultPositions','mousedown','context','attachToDom','_domEmitter','esc','type','ck-sidebar--narrow','contains','editors','preventDefault','_attachListeners','_integrateWithEditorAnnotations','detachFromDom','number','_destroyEditorAnnotationsIntegration','southArrowNorth','_manuallyClosedAnnotationViews','northArrowSouthWest','target','_editorAnnotations','_refreshPositioning','balloonPanelView','Esc','length','addEventListener','_selectedAnnotations','stopListening','pluginName','isVisible','ready','removeEventListener','view','bodyCollection','getOrderedSelectedAnnotations','EditorAnnotations','northArrowSouthEast','set:container','uiUpdate','setActiveAnnotation','add','focus','_showBalloon','hasDomSelection'];(function(_0x5931c4,_0x44d653){const _0x15d456=function(_0x42a41f){while(--_0x42a41f){_0x5931c4['push'](_0x5931c4['shift']());}};_0x15d456(++_0x44d653);}(_0x44d6,0x1db));const _0x15d4=function(_0x5931c4,_0x44d653){_0x5931c4=_0x5931c4-0x0;let _0x15d456=_0x44d6[_0x5931c4];return _0x15d456;};import{ContextPlugin as _0x25a097,Context as _0x3cad89}from'ckeditor5/src/core';import _0x51349b from'./annotationsuis';import _0x15509c from'./sidebar';import _0x29dc31 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4c17b9,BodyCollection as _0x4530b0}from'ckeditor5/src/ui';import{CKEditorError as _0x4ab20b,DomEmitterMixin as _0x509011,keyCodes as _0x284216,Collection as _0x3a54a6}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1e66c8}from'lodash-es';import _0x14cf2b from'./editorannotations';export default class s extends _0x25a097{static get['requires'](){return[_0x15509c,_0x51349b];}static get[_0x15d4('0x9')](){return'NarrowSidebar';}constructor(_0x423bc6){super(_0x423bc6),this[_0x15d4('0x3b')]=!0x1,this[_0x15d4('0x62')]=new Set(),this[_0x15d4('0x55')]=Object['create'](_0x509011),this[_0x15d4('0x20')]=new Map(),this['set'](_0x15d4('0x1d'),null),this[_0x15d4('0x1f')]=null,this[_0x15d4('0x7')]=[],this['_editorAnnotations']=new _0x3a54a6(),this[_0x15d4('0x21')]=_0x1e66c8(()=>{this[_0x15d4('0x2')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x15d4('0x53')][_0x15d4('0x39')][_0x15d4('0x3e')](_0x51349b)[_0x15d4('0x1c')](_0x15d4('0x44'),this),this[_0x15d4('0xe')]=new _0x4530b0(this[_0x15d4('0x53')]['locale']),this[_0x15d4('0x3')]=new _0x4c17b9(this[_0x15d4('0x53')][_0x15d4('0x49')]),this[_0x15d4('0xe')][_0x15d4('0x54')](),this[_0x15d4('0xe')]['add'](this[_0x15d4('0x3')]);}[_0x15d4('0x2f')](_0x4f657b){this[_0x15d4('0x1f')]=_0x4f657b;const _0x3eceef=this[_0x15d4('0x53')][_0x15d4('0x39')][_0x15d4('0x3e')](_0x15509c),_0x93ed8f=this['balloonPanelView'];if(_0x3eceef[_0x15d4('0x33')]=_0x4f657b,this[_0x15d4('0x3b')])throw new _0x4ab20b(_0x15d4('0x2c'),this);this[_0x15d4('0x3b')]=!0x0,this[_0x15d4('0x4e')](_0x3eceef,_0x15d4('0x12'),()=>{this[_0x15d4('0x34')](),this[_0x15d4('0x4e')](_0x3eceef,_0x15d4('0x47'),_0x45f5b1=>{_0x45f5b1['off'](),this[_0x15d4('0x2f')](_0x4f657b);});}),_0x3eceef[_0x15d4('0x1e')]({'viewClass':_0x15d4('0x58'),'spaceBetweenItems':0x5});const _0x430147=_0x54ad0d=>{const _0x29e1f9=new _0x29dc31(this[_0x15d4('0x53')]['locale']);_0x3eceef[_0x15d4('0x42')](_0x54ad0d,_0x29e1f9),this['_annotationToNarrowView'][_0x15d4('0x2b')](_0x54ad0d,_0x29e1f9),_0x29e1f9[_0x15d4('0x29')](_0x15d4('0x43'),_0x15d4('0x38'),_0x15d4('0x5f'))['to'](_0x54ad0d['view'],_0x15d4('0x43'),_0x15d4('0x57'),_0x15d4('0x5')),_0x29e1f9['on']('execute',()=>{this[_0x15d4('0x62')][_0x15d4('0x37')](),_0x93ed8f[_0x15d4('0x4b')][_0x15d4('0x19')]!==_0x54ad0d['view']?(this[_0x15d4('0x17')](_0x54ad0d),_0x54ad0d[_0x15d4('0xd')][_0x15d4('0x32')][_0x15d4('0x16')](),this['setActiveAnnotation'](_0x54ad0d)):this['setActiveAnnotation'](null);});};for(const _0x179ff1 of _0x4f657b)_0x430147(_0x179ff1);this[_0x15d4('0x4e')](_0x4f657b,_0x15d4('0x15'),(_0x196dd2,_0x3bf9e9)=>{_0x430147(_0x3bf9e9);}),this[_0x15d4('0x4e')](_0x4f657b,'remove',(_0x750bd1,_0x26d431,_0x543e4b)=>{this[_0x15d4('0x20')][_0x15d4('0x3e')](_0x26d431)[_0x15d4('0x4d')](),this[_0x15d4('0x20')][_0x15d4('0x48')](_0x26d431),_0x3eceef[_0x15d4('0x2e')]({'removedAnnotation':_0x26d431,'previousAnnotation':_0x4f657b[_0x15d4('0x3e')](_0x543e4b-0x1),'nextAnnotation':_0x4f657b[_0x15d4('0x3e')](_0x543e4b+0x1)}),_0x26d431===this['activeAnnotation']&&this[_0x15d4('0x14')](null);},{'priority':'low'}),this[_0x15d4('0x4e')](_0x4f657b,_0x15d4('0x16'),(_0x11aa44,_0x5e103f)=>{this['setActiveAnnotation'](_0x5e103f);}),this['listenTo'](_0x4f657b,_0x15d4('0x4f'),()=>{this[_0x15d4('0x14')](null);}),this[_0x15d4('0x55')]['listenTo'](document,'keydown',(_0x2ce6d6,_0x1e1392)=>{_0x1e1392[_0x15d4('0x24')]===_0x284216[_0x15d4('0x56')]&&_0x93ed8f[_0x15d4('0xa')]&&(this['_manuallyClosedAnnotationViews']['add'](_0x93ed8f['content']['first']),this[_0x15d4('0x25')](),_0x1e1392[_0x15d4('0x41')](),_0x1e1392[_0x15d4('0x5b')]());}),this[_0x15d4('0x55')][_0x15d4('0x4e')](document,'mousedown',(_0x37b5e3,_0x180d88)=>{const _0xd76e20=_0x180d88[_0x15d4('0x0')];_0x93ed8f[_0x15d4('0xa')]&&_0x93ed8f['element'][_0x15d4('0x59')](_0xd76e20)||_0x3eceef[_0x15d4('0xd')][_0x15d4('0x32')]['contains'](_0xd76e20)||_0x37b5e3[_0x15d4('0x31')]||this['activeAnnotation']&&this[_0x15d4('0x1d')][_0x15d4('0x36')][_0x15d4('0x45')](_0x32ab72=>_0x32ab72[_0x15d4('0x59')](_0xd76e20))||(this[_0x15d4('0x62')][_0x15d4('0x37')](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x40de4d=this[_0x15d4('0x53')]instanceof _0x3cad89?this[_0x15d4('0x53')][_0x15d4('0x5a')]:new _0x3a54a6([this[_0x15d4('0x53')]]);for(const _0x250f5c of _0x40de4d)this[_0x15d4('0x5d')](_0x250f5c);this[_0x15d4('0x4e')](_0x40de4d,_0x15d4('0x15'),(_0x56d290,_0x292b08)=>{this[_0x15d4('0x4e')](_0x292b08,_0x15d4('0xb'),()=>{this[_0x15d4('0x5d')](_0x292b08);});}),this[_0x15d4('0x4e')](_0x40de4d,'remove',(_0x171f94,_0x4b3d87)=>{_0x4b3d87[_0x15d4('0x39')][_0x15d4('0x23')](_0x15d4('0x10'))&&this['_destroyEditorAnnotationsIntegration'](_0x4b3d87[_0x15d4('0x39')]['get'](_0x15d4('0x10')));}),window[_0x15d4('0x6')](_0x15d4('0x35'),this[_0x15d4('0x21')]),this['_refreshPositioning']();}[_0x15d4('0x14')](_0x5915bd){if(_0x5915bd===this[_0x15d4('0x1d')])return;const _0x107ad9=this[_0x15d4('0x53')][_0x15d4('0x39')][_0x15d4('0x3e')](_0x15509c);if(_0x107ad9[_0x15d4('0x28')]({'blurredAnnotation':this[_0x15d4('0x1d')],'activatedAnnotation':_0x5915bd,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5915bd)_0x107ad9[_0x15d4('0x22')](_0x5915bd)?this[_0x15d4('0x17')](_0x5915bd):this['_hideBalloon']();else this[_0x15d4('0x25')]();this[_0x15d4('0x1d')]=_0x5915bd;}[_0x15d4('0x34')](){if(!this[_0x15d4('0x3b')])throw new _0x4ab20b(_0x15d4('0x30'),this);this[_0x15d4('0x14')](null);const _0x3363fb=this[_0x15d4('0x53')][_0x15d4('0x39')]['get'](_0x15509c);this[_0x15d4('0x25')](),Array[_0x15d4('0x4a')](this[_0x15d4('0x20')]['values'](),_0x511b3a=>_0x511b3a[_0x15d4('0x4d')]()),this[_0x15d4('0x20')]['clear'](),_0x3363fb[_0x15d4('0x26')](this[_0x15d4('0x1f')]),this[_0x15d4('0x8')](),this[_0x15d4('0x55')][_0x15d4('0x8')](),this['context']instanceof _0x3cad89&&this[_0x15d4('0x8')](this['context'][_0x15d4('0x5a')]);for(const _0x33f178 of Array[_0x15d4('0x4a')](this[_0x15d4('0x1')]))this[_0x15d4('0x60')](_0x33f178);window[_0x15d4('0xc')](_0x15d4('0x35'),this[_0x15d4('0x21')]),this[_0x15d4('0x21')][_0x15d4('0x2d')](),this[_0x15d4('0x7')]=[],this['isAttached']=!0x1,this[_0x15d4('0x1f')]=null;}[_0x15d4('0x4d')](){this[_0x15d4('0x3b')]&&this[_0x15d4('0x34')](),this[_0x15d4('0xe')][_0x15d4('0x5e')]();}['_integrateWithEditorAnnotations'](_0x111c80){const _0x111b40=_0x111c80[_0x15d4('0x39')][_0x15d4('0x3e')](_0x14cf2b),_0x20330d=this[_0x15d4('0x53')]['plugins'][_0x15d4('0x3e')](_0x15509c),_0x5414dd=this[_0x15d4('0x1f')],_0x52d4b8=this[_0x15d4('0x3')],_0x21201f=()=>{const _0x29f8ba=_0x111b40[_0x15d4('0xf')]({'annotations':this[_0x15d4('0x1f')],'activeAnnotation':this['activeAnnotation']});this[_0x15d4('0x1b')](_0x29f8ba),this[_0x15d4('0x14')](_0x29f8ba[0x0]||null);};this[_0x15d4('0x4e')](_0x111b40,_0x15d4('0x28'),_0x21201f),this[_0x15d4('0x4e')](_0x111b40,'blur',(_0x1122e9,{isAnnotationTracked:_0x239393})=>{this[_0x15d4('0x1d')]&&_0x239393(this[_0x15d4('0x1d')])&&(this[_0x15d4('0x1b')]([]),this[_0x15d4('0x14')](null));}),this[_0x15d4('0x4e')](_0x111b40,_0x15d4('0x13'),()=>{this[_0x15d4('0x21')]();}),this[_0x15d4('0x4e')](_0x5414dd,'blur',_0x44249a=>{_0x111b40[_0x15d4('0x18')]()&&_0x44249a[_0x15d4('0x3d')]();},{'priority':_0x15d4('0x2a')}),this['listenTo'](this[_0x15d4('0x55')],_0x15d4('0x52'),(_0x387e76,_0x21c902)=>{const _0x368531=_0x21c902[_0x15d4('0x0')];_0x52d4b8['isVisible']&&_0x52d4b8[_0x15d4('0x32')][_0x15d4('0x59')](_0x368531)||_0x20330d[_0x15d4('0xd')]['element'][_0x15d4('0x59')](_0x368531)||this[_0x15d4('0x1d')]&&_0x111b40['hasDomSelection']()&&(_0x21201f(),_0x387e76[_0x15d4('0x31')]=!0x0);},{'priority':'high'}),this[_0x15d4('0x1')][_0x15d4('0x15')](_0x111b40);}[_0x15d4('0x60')](_0x2323ce){_0x2323ce&&(this['stopListening'](_0x2323ce),this[_0x15d4('0x1')][_0x15d4('0x3f')](_0x2323ce));}[_0x15d4('0x1b')](_0x2d67bf){for(const _0x3910fc of this[_0x15d4('0x7')])_0x2d67bf['includes'](_0x3910fc)||this[_0x15d4('0x62')][_0x15d4('0x48')](_0x3910fc[_0x15d4('0xd')]);this[_0x15d4('0x7')]=_0x2d67bf;}['_refreshPositioning'](){const _0x5654b4=this[_0x15d4('0x3')];this[_0x15d4('0x1f')][_0x15d4('0x3c')](),_0x5654b4['isVisible']&&this[_0x15d4('0x40')]();}[_0x15d4('0x17')](_0x127878){if(this[_0x15d4('0x62')][_0x15d4('0x23')](_0x127878[_0x15d4('0xd')]))return;const _0x46880c=this[_0x15d4('0x3')][_0x15d4('0x4b')][_0x15d4('0x19')];_0x46880c!==_0x127878[_0x15d4('0xd')]?(_0x46880c&&this['_detachListeners'](_0x46880c),this['_attachListeners'](_0x127878['view']),this['balloonPanelView'][_0x15d4('0x4b')][_0x15d4('0x37')](),this[_0x15d4('0x3')][_0x15d4('0x4b')]['add'](_0x127878[_0x15d4('0xd')]),this[_0x15d4('0x40')]()):this['_updateBalloonPosition']();}[_0x15d4('0x40')](){const _0x5b8f15=this[_0x15d4('0x3')][_0x15d4('0x4b')][_0x15d4('0x19')],_0x2ab8da=_0x5b8f15&&this['annotations'][_0x15d4('0x50')](_0x5b8f15);if(!_0x2ab8da||!this[_0x15d4('0x20')][_0x15d4('0x23')](_0x2ab8da))return;const _0x41d539=this['_annotationToNarrowView'][_0x15d4('0x3e')](_0x2ab8da)[_0x15d4('0x32')],_0x16b1ff=function(){const _0x2f668b=_0x4c17b9[_0x15d4('0x51')];return[_0x2f668b[_0x15d4('0x3a')],_0x2f668b[_0x15d4('0x11')],_0x2f668b[_0x15d4('0x61')],_0x2f668b[_0x15d4('0x27')],_0x2f668b[_0x15d4('0x1a')],_0x2f668b[_0x15d4('0x63')]];}();this[_0x15d4('0x3')][_0x15d4('0x46')]({'target':_0x41d539,'positions':_0x16b1ff});}[_0x15d4('0x25')](){const _0x3d7537=this['balloonPanelView'],_0x55b327=_0x3d7537[_0x15d4('0x4b')][_0x15d4('0x19')];_0x55b327&&(this[_0x15d4('0x4c')](_0x55b327),_0x3d7537['unpin'](),_0x3d7537['content'][_0x15d4('0x37')]());}[_0x15d4('0x5c')](_0x4d3cfe){this[_0x15d4('0x4e')](_0x4d3cfe,'change:height',()=>this[_0x15d4('0x40')]()),this['listenTo'](_0x4d3cfe,_0x15d4('0x4'),(_0x31b3b0,_0x32cc93)=>{this[_0x15d4('0x62')]['add'](_0x4d3cfe),this['_hideBalloon'](),_0x32cc93();});}['_detachListeners'](_0x49b5af){this['stopListening'](_0x49b5af);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d96=['target','_annotationToSidebarItemView','_spaceBetweenItems','set','listenTo','isAnimationDisabled','height','_createSidebarView','_getMaxAvailableTop','_alignForTopChange','_getItemBefore','sidebar.preventScrollOutOfView','change:top','_activeAnnotation','sidebar-setcontainer-invalid-element','view','_alignBeforeItem','_updateLastItem','minHeight','pluginName','bind','length','max','setContainer','updateHeight','context','_lastItem','element','container','Sidebar','sidebar-attachtocontainer-missing-container','_recalculateBuffer','render','_getTargetTop','locale','_annotations','_recalculate','nodeType','clear','_detachFromContainer','last','_targetTop','list','unbind','_sidebarItemViewToAnnotation','add','refresh','_attachToContainer','top','sidebar.container','getIndex','push','change:targetRect','bottom','stopListening','_alignForBottomChange','_getItemAfter','appendChild','content','destroy','_alignAfterItem','getSidebarItemView','class','targetRect','_destroySidebarItemView','get','config','_setItemTop','_alignToTargetRect'];(function(_0x216b5c,_0x5d9670){const _0x17c8da=function(_0x3de501){while(--_0x3de501){_0x216b5c['push'](_0x216b5c['shift']());}};_0x17c8da(++_0x5d9670);}(_0x5d96,0xf0));const _0x17c8=function(_0x216b5c,_0x5d9670){_0x216b5c=_0x216b5c-0x0;let _0x17c8da=_0x5d96[_0x216b5c];return _0x17c8da;};import{ContextPlugin as _0x2af792}from'ckeditor5/src/core';import{Rect as _0x32c426,CKEditorError as _0x2a7b43}from'ckeditor5/src/utils';import _0x139849 from'./view/sidebarview';import _0x4a7805 from'./view/sidebaritemview';export default class z extends _0x2af792{static get[_0x17c8('0x37')](){return _0x17c8('0x41');}constructor(_0xc8923a){super(_0xc8923a),this[_0x17c8('0x27')](_0x17c8('0x3e'),void 0x0),this[_0x17c8('0x33')]=this['_createSidebarView'](),this['set'](_0x17c8('0x40'),null),this[_0x17c8('0x26')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x17c8('0x25')]=new Map(),this[_0x17c8('0x3d')][_0x17c8('0x21')]['define'](_0x17c8('0x2f'),!0x1),this[_0x17c8('0x2')]=null,this[_0x17c8('0x31')]=null,this[_0x17c8('0x43')]=[];}['init'](){const _0x2b46c3=this[_0x17c8('0x3d')][_0x17c8('0x21')]['get'](_0x17c8('0x10'));_0x2b46c3&&this[_0x17c8('0x3b')](_0x2b46c3);}[_0x17c8('0x3b')](_0x22f24e){if(!y(_0x22f24e))throw new _0x2a7b43(_0x17c8('0x32'));this['container']=_0x22f24e;}[_0x17c8('0xe')]({viewClass:_0x15c360='',spaceBetweenItems:_0x35cd36=0x19}={}){if(!y(this[_0x17c8('0x40')]))throw new _0x2a7b43(_0x17c8('0x42'),this);this['container'][_0x17c8('0x18')](this[_0x17c8('0x33')][_0x17c8('0x3f')]),this['view']['class']=_0x15c360,this[_0x17c8('0x26')]=_0x35cd36;}['rearrange']({removedAnnotation:_0x2dc4f2,previousAnnotation:_0x20cb31,nextAnnotation:_0x224710}){const _0x37538c=this[_0x17c8('0x1c')](_0x2dc4f2);this[_0x17c8('0x33')]['list']['remove'](_0x37538c),this[_0x17c8('0x1f')](_0x2dc4f2),_0x20cb31&&this['_alignToTargetRect'](this[_0x17c8('0x1c')](_0x20cb31)),_0x224710&&this[_0x17c8('0x23')](this[_0x17c8('0x1c')](_0x224710)),this[_0x17c8('0x35')]();}[_0x17c8('0xd')]({blurredAnnotation:_0x1afec0,activatedAnnotation:_0x21d8e9,disableAnimationOnActivatedAnnotation:_0x456e25}){if(this[_0x17c8('0x31')]=_0x21d8e9,_0x1afec0){_0x1afec0['isActive']=!0x1;const _0x405be4=this['getSidebarItemView'](_0x1afec0);_0x405be4&&_0x456e25&&(_0x405be4[_0x17c8('0x29')]=!0x1);}if(_0x21d8e9){const _0x37479a=this['getSidebarItemView'](_0x21d8e9);_0x37479a&&(_0x21d8e9['isActive']=!0x0,_0x456e25&&(_0x37479a[_0x17c8('0x29')]=!0x0,_0x37479a[_0x17c8('0xf')]+=0x1),this[_0x17c8('0x23')](_0x37479a));}}[_0x17c8('0x6')](_0x4c43bf){if(this[_0x17c8('0x33')][_0x17c8('0x3f')]['remove'](),_0x4c43bf)for(const _0x27d5fa of _0x4c43bf)this[_0x17c8('0x1f')](_0x27d5fa);this[_0x17c8('0x33')][_0x17c8('0x9')][_0x17c8('0x5')](),this[_0x17c8('0x33')][_0x17c8('0x1d')]='',this[_0x17c8('0x3e')]=null;}['addAnnotation'](_0x323e71,_0x518a3f){_0x518a3f||(_0x518a3f=_0x323e71[_0x17c8('0x33')]);const _0xa31885=new _0x4a7805(this[_0x17c8('0x3d')][_0x17c8('0x1')]);this[_0x17c8('0xb')]['set'](_0xa31885,_0x323e71),this[_0x17c8('0x25')][_0x17c8('0x27')](_0x323e71,_0xa31885),_0xa31885['content'][_0x17c8('0xc')](_0x518a3f),this['listenTo'](_0x323e71[_0x17c8('0x33')],_0x17c8('0x13'),(_0x23759b,_0x267437,_0x4ef923)=>{const _0x4f9f7d=this[_0x17c8('0x0')](_0x323e71,_0x4ef923);_0xa31885[_0x17c8('0x8')]!=_0x4f9f7d&&(_0xa31885['_targetTop']=_0x4f9f7d,this['_setItemTop'](_0xa31885,_0x4f9f7d));}),this[_0x17c8('0x28')](_0xa31885,_0x17c8('0x30'),()=>{this['_recalculate'](_0xa31885,_0x17c8('0xf'));}),this['listenTo'](_0xa31885,'change:bottom',()=>{this[_0x17c8('0x3')](_0xa31885,_0x17c8('0x14'));}),this[_0x17c8('0x23')](_0xa31885);const _0x1bb5ad=this[_0x17c8('0x2e')](_0xa31885);if(_0x1bb5ad)this[_0x17c8('0x1b')](_0x1bb5ad,_0xa31885)||this['_alignToTargetRect'](_0xa31885);else this[_0x17c8('0x23')](_0xa31885);return this['_updateLastItem'](),this[_0x17c8('0x33')][_0x17c8('0x9')][_0x17c8('0xc')](_0xa31885),_0xa31885;}[_0x17c8('0x2d')](_0x33abaf){if(!_0x33abaf[_0x17c8('0x19')][_0x17c8('0x39')])return;const _0x40c997=this[_0x17c8('0x2e')](_0x33abaf);if(!_0x40c997)return;const _0x57310d=this[_0x17c8('0xb')][_0x17c8('0x20')](_0x40c997),_0x404d14=this['_activeAnnotation'];_0x404d14&&_0x404d14===_0x57310d?this['_alignAfterItem'](_0x40c997,_0x33abaf):this[_0x17c8('0x34')](_0x33abaf,_0x40c997);}['_alignForBottomChange'](_0x3b25f8){if(!_0x3b25f8[_0x17c8('0x19')][_0x17c8('0x39')])return;const _0x5820a8=this[_0x17c8('0x17')](_0x3b25f8);if(!_0x5820a8)return;const _0xbd7370=this[_0x17c8('0xb')][_0x17c8('0x20')](_0x5820a8),_0x16fcaf=this[_0x17c8('0x3d')][_0x17c8('0x21')]['get'](_0x17c8('0x2f')),_0x3a8eba=this[_0x17c8('0x31')];_0x3a8eba&&_0x3a8eba===_0xbd7370&&_0x16fcaf?(this['_alignBeforeItem'](_0x5820a8,_0x3b25f8),this[_0x17c8('0x1b')](_0x3b25f8,_0x5820a8)):_0x3a8eba&&_0x3a8eba===_0xbd7370?this[_0x17c8('0x34')](_0x5820a8,_0x3b25f8):this[_0x17c8('0x1b')](_0x3b25f8,_0x5820a8);}[_0x17c8('0x3')](_0x2f8fb7,_0x744db){0x0===this[_0x17c8('0x43')][_0x17c8('0x39')]&&setTimeout(()=>{for(const {sidebarItemView:_0x1cb9f6,changedProp:_0x22d7d4}of this[_0x17c8('0x43')])'top'===_0x22d7d4?this[_0x17c8('0x2d')](_0x1cb9f6):this[_0x17c8('0x16')](_0x1cb9f6);this[_0x17c8('0x43')]=[];},0xa),this[_0x17c8('0x43')][_0x17c8('0x12')]({'sidebarItemView':_0x2f8fb7,'changedProp':_0x744db});}[_0x17c8('0x1c')](_0x3a7020){return this[_0x17c8('0x25')]['get'](_0x3a7020);}[_0x17c8('0x1a')](){this[_0x17c8('0x15')](),this[_0x17c8('0x33')][_0x17c8('0x1a')]();}[_0x17c8('0x1f')](_0x46edb6){const _0xe34ea3=this[_0x17c8('0x1c')](_0x46edb6);this[_0x17c8('0x15')](_0xe34ea3),this[_0x17c8('0x15')](_0x46edb6['view']),_0xe34ea3['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x46edb6),this[_0x17c8('0xb')]['delete'](_0xe34ea3);}[_0x17c8('0x2b')](){const _0x1c9b89=new _0x139849(this[_0x17c8('0x3d')][_0x17c8('0x1')]);return _0x1c9b89[_0x17c8('0x44')](),this['on']('change:_lastItem',(_0x502da3,_0x3be5d6,_0x481dc3,_0x486ae3)=>{_0x486ae3&&_0x1c9b89[_0x17c8('0xa')](_0x17c8('0x36')),_0x481dc3?_0x1c9b89[_0x17c8('0x38')]('minHeight')['to'](_0x481dc3,_0x17c8('0x14')):_0x1c9b89[_0x17c8('0x36')]=null;}),_0x1c9b89;}[_0x17c8('0x35')](){var _0x4ec919;this[_0x17c8('0x3e')]=(null===(_0x4ec919=this[_0x17c8('0x2')])||void 0x0===_0x4ec919?void 0x0:_0x4ec919[_0x17c8('0x7')])?this[_0x17c8('0x1c')](this[_0x17c8('0x2')][_0x17c8('0x7')]):null;}['_getItemBefore'](_0x537951){var _0x161e95;const _0x5dbb6c=this['_sidebarItemViewToAnnotation'][_0x17c8('0x20')](_0x537951),_0x50bfdd=_0x5dbb6c&&(null===(_0x161e95=this[_0x17c8('0x2')])||void 0x0===_0x161e95?void 0x0:_0x161e95[_0x17c8('0x20')](this[_0x17c8('0x2')][_0x17c8('0x11')](_0x5dbb6c)-0x1));return _0x50bfdd&&this[_0x17c8('0x1c')](_0x50bfdd)||null;}['_getItemAfter'](_0x591a3a){var _0x1d3884;const _0x1da924=this['_sidebarItemViewToAnnotation'][_0x17c8('0x20')](_0x591a3a),_0x24da45=_0x1da924&&(null===(_0x1d3884=this[_0x17c8('0x2')])||void 0x0===_0x1d3884?void 0x0:_0x1d3884[_0x17c8('0x20')](this[_0x17c8('0x2')][_0x17c8('0x11')](_0x1da924)+0x1));return _0x24da45&&this[_0x17c8('0x1c')](_0x24da45)||null;}[_0x17c8('0x34')](_0x5bed7a,_0x416349){_0x5bed7a[_0x17c8('0x3c')]();const _0x489b21=H(_0x416349[_0x17c8('0x14')]+this[_0x17c8('0x26')],_0x5bed7a['top']);return!!_0x489b21&&(this[_0x17c8('0x22')](_0x416349,_0x416349[_0x17c8('0xf')]-_0x489b21),!0x0);}[_0x17c8('0x1b')](_0x3050b5,_0x4155e5){_0x3050b5[_0x17c8('0x3c')]();const _0x5e0188=H(_0x3050b5[_0x17c8('0x14')]+this[_0x17c8('0x26')],_0x4155e5[_0x17c8('0xf')]);return!!_0x5e0188&&(this[_0x17c8('0x22')](_0x4155e5,_0x4155e5[_0x17c8('0xf')]+_0x5e0188,!0x1),!0x0);}[_0x17c8('0x23')](_0x36182b){const _0x340300=this['_sidebarItemViewToAnnotation'][_0x17c8('0x20')](_0x36182b);if(!_0x340300||!_0x340300[_0x17c8('0x24')]||!_0x340300[_0x17c8('0x1e')])return;const _0x48042d=this[_0x17c8('0x0')](_0x340300,_0x340300['targetRect']);this[_0x17c8('0x22')](_0x36182b,_0x48042d);}['_getTargetTop'](_0x4cb8da,_0x32074a){if(null===_0x32074a)return 0x0;if(_0x4cb8da['target']instanceof _0x32c426)return _0x32074a[_0x17c8('0xf')];{const _0x4f4857=new _0x32c426(this[_0x17c8('0x33')][_0x17c8('0x3f')])[_0x17c8('0xf')];return _0x32074a['top']-_0x4f4857;}}[_0x17c8('0x22')](_0x50def7,_0x37a5a0,_0x2c68c5=this[_0x17c8('0x3d')][_0x17c8('0x21')][_0x17c8('0x20')](_0x17c8('0x2f'))){_0x2c68c5&&(_0x37a5a0=Math['max'](_0x37a5a0,this[_0x17c8('0x2c')](_0x50def7))),_0x50def7[_0x17c8('0xf')]=_0x37a5a0;}['_getMaxAvailableTop'](_0xf2756b){let _0x269369=this['_getItemBefore'](_0xf2756b),_0x3c2f41=0x0;for(;_0x269369;)_0x269369['updateHeight'](),_0x3c2f41+=this[_0x17c8('0x26')]+_0x269369[_0x17c8('0x2a')],_0x269369=this[_0x17c8('0x2e')](_0x269369);return _0x3c2f41;}}function H(_0x554ba1,_0x50127b){return Math[_0x17c8('0x3a')](_0x554ba1-_0x50127b,0x0);}function y(_0x2fc8fb){return null!==_0x2fc8fb&&'object'==typeof _0x2fc8fb&&0x1===_0x2fc8fb[_0x17c8('0x4')];}
23
+ const _0x28e1=['clear','_recalculateBuffer','updateHeight','change:targetRect','length','_attachToContainer','_getMaxAvailableTop','max','stopListening','_getItemAfter','isAnimationDisabled','sidebar-attachtocontainer-missing-container','rearrange','_alignForTopChange','sidebar.preventScrollOutOfView','element','appendChild','_destroySidebarItemView','context','targetRect','last','_alignForBottomChange','destroy','addAnnotation','isActive','remove','config','_spaceBetweenItems','bottom','unbind','_alignToTargetRect','sidebar.container','nodeType','_lastItem','_getTargetTop','push','sidebar-setcontainer-invalid-element','_sidebarItemViewToAnnotation','_detachFromContainer','change:top','_setItemTop','top','_annotationToSidebarItemView','add','target','object','minHeight','locale','_alignBeforeItem','_createSidebarView','setContainer','getIndex','_recalculate','class','set','_activeAnnotation','delete','_alignAfterItem','content','bind','view','_annotations','_updateLastItem','_getItemBefore','getSidebarItemView','container','_targetTop','listenTo','get','render','list'];(function(_0xd57b71,_0x28e135){const _0x18153f=function(_0xced1cf){while(--_0xced1cf){_0xd57b71['push'](_0xd57b71['shift']());}};_0x18153f(++_0x28e135);}(_0x28e1,0x9c));const _0x1815=function(_0xd57b71,_0x28e135){_0xd57b71=_0xd57b71-0x0;let _0x18153f=_0x28e1[_0xd57b71];return _0x18153f;};import{ContextPlugin as _0x3c7be1}from'ckeditor5/src/core';import{Rect as _0x2650e0,CKEditorError as _0x3c19b5}from'ckeditor5/src/utils';import _0x62ea91 from'./view/sidebarview';import _0x442aee from'./view/sidebaritemview';export default class z extends _0x3c7be1{static get['pluginName'](){return'Sidebar';}constructor(_0x43228c){super(_0x43228c),this['set'](_0x1815('0x13'),void 0x0),this[_0x1815('0x2e')]=this[_0x1815('0x23')](),this[_0x1815('0x28')](_0x1815('0x33'),null),this[_0x1815('0xd')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x1815('0x1c')]=new Map(),this[_0x1815('0x4')][_0x1815('0xc')]['define'](_0x1815('0x0'),!0x1),this[_0x1815('0x2f')]=null,this[_0x1815('0x29')]=null,this[_0x1815('0x3a')]=[];}['init'](){const _0x5e645b=this['context'][_0x1815('0xc')]['get'](_0x1815('0x11'));_0x5e645b&&this[_0x1815('0x24')](_0x5e645b);}['setContainer'](_0x1d4237){if(!y(_0x1d4237))throw new _0x3c19b5(_0x1815('0x16'));this[_0x1815('0x33')]=_0x1d4237;}[_0x1815('0x3e')]({viewClass:_0x16b114='',spaceBetweenItems:_0x5e2181=0x19}={}){if(!y(this['container']))throw new _0x3c19b5(_0x1815('0x44'),this);this[_0x1815('0x33')][_0x1815('0x2')](this[_0x1815('0x2e')][_0x1815('0x1')]),this[_0x1815('0x2e')][_0x1815('0x27')]=_0x16b114,this[_0x1815('0xd')]=_0x5e2181;}[_0x1815('0x45')]({removedAnnotation:_0x4b7d87,previousAnnotation:_0x5d6912,nextAnnotation:_0x5395be}){const _0x313e48=this[_0x1815('0x32')](_0x4b7d87);this['view'][_0x1815('0x38')][_0x1815('0xb')](_0x313e48),this[_0x1815('0x3')](_0x4b7d87),_0x5d6912&&this[_0x1815('0x10')](this[_0x1815('0x32')](_0x5d6912)),_0x5395be&&this[_0x1815('0x10')](this[_0x1815('0x32')](_0x5395be)),this[_0x1815('0x30')]();}['refresh']({blurredAnnotation:_0x25199c,activatedAnnotation:_0x1271c7,disableAnimationOnActivatedAnnotation:_0x247894}){if(this[_0x1815('0x29')]=_0x1271c7,_0x25199c){_0x25199c[_0x1815('0xa')]=!0x1;const _0x3d95c9=this[_0x1815('0x32')](_0x25199c);_0x3d95c9&&_0x247894&&(_0x3d95c9[_0x1815('0x43')]=!0x1);}if(_0x1271c7){const _0x5c9d3c=this[_0x1815('0x32')](_0x1271c7);_0x5c9d3c&&(_0x1271c7[_0x1815('0xa')]=!0x0,_0x247894&&(_0x5c9d3c[_0x1815('0x43')]=!0x0,_0x5c9d3c[_0x1815('0x1b')]+=0x1),this['_alignToTargetRect'](_0x5c9d3c));}}[_0x1815('0x18')](_0x960c30){if(this[_0x1815('0x2e')][_0x1815('0x1')][_0x1815('0xb')](),_0x960c30)for(const _0x38d22e of _0x960c30)this[_0x1815('0x3')](_0x38d22e);this[_0x1815('0x2e')][_0x1815('0x38')][_0x1815('0x39')](),this[_0x1815('0x2e')][_0x1815('0x27')]='',this[_0x1815('0x13')]=null;}[_0x1815('0x9')](_0x5cc5ef,_0x5d7377){_0x5d7377||(_0x5d7377=_0x5cc5ef[_0x1815('0x2e')]);const _0x5c3ace=new _0x442aee(this['context'][_0x1815('0x21')]);this[_0x1815('0x17')][_0x1815('0x28')](_0x5c3ace,_0x5cc5ef),this['_annotationToSidebarItemView'][_0x1815('0x28')](_0x5cc5ef,_0x5c3ace),_0x5c3ace[_0x1815('0x2c')][_0x1815('0x1d')](_0x5d7377),this['listenTo'](_0x5cc5ef[_0x1815('0x2e')],_0x1815('0x3c'),(_0x373b95,_0x2e0e93,_0x3efd50)=>{const _0x190e54=this['_getTargetTop'](_0x5cc5ef,_0x3efd50);_0x5c3ace[_0x1815('0x34')]!=_0x190e54&&(_0x5c3ace[_0x1815('0x34')]=_0x190e54,this[_0x1815('0x1a')](_0x5c3ace,_0x190e54));}),this[_0x1815('0x35')](_0x5c3ace,_0x1815('0x19'),()=>{this['_recalculate'](_0x5c3ace,_0x1815('0x1b'));}),this['listenTo'](_0x5c3ace,'change:bottom',()=>{this[_0x1815('0x26')](_0x5c3ace,_0x1815('0xe'));}),this[_0x1815('0x10')](_0x5c3ace);const _0xb2d565=this[_0x1815('0x31')](_0x5c3ace);if(_0xb2d565)this['_alignAfterItem'](_0xb2d565,_0x5c3ace)||this[_0x1815('0x10')](_0x5c3ace);else this[_0x1815('0x10')](_0x5c3ace);return this[_0x1815('0x30')](),this[_0x1815('0x2e')]['list']['add'](_0x5c3ace),_0x5c3ace;}[_0x1815('0x46')](_0x1d3cef){if(!_0x1d3cef[_0x1815('0x2c')][_0x1815('0x3d')])return;const _0x5e63ad=this[_0x1815('0x31')](_0x1d3cef);if(!_0x5e63ad)return;const _0x12bac2=this[_0x1815('0x17')][_0x1815('0x36')](_0x5e63ad),_0x263fc7=this['_activeAnnotation'];_0x263fc7&&_0x263fc7===_0x12bac2?this[_0x1815('0x2b')](_0x5e63ad,_0x1d3cef):this[_0x1815('0x22')](_0x1d3cef,_0x5e63ad);}[_0x1815('0x7')](_0x56ae24){if(!_0x56ae24[_0x1815('0x2c')][_0x1815('0x3d')])return;const _0x1c8813=this[_0x1815('0x42')](_0x56ae24);if(!_0x1c8813)return;const _0x22cee=this[_0x1815('0x17')][_0x1815('0x36')](_0x1c8813),_0x1e21dc=this[_0x1815('0x4')]['config'][_0x1815('0x36')](_0x1815('0x0')),_0x38c8a8=this[_0x1815('0x29')];_0x38c8a8&&_0x38c8a8===_0x22cee&&_0x1e21dc?(this['_alignBeforeItem'](_0x1c8813,_0x56ae24),this[_0x1815('0x2b')](_0x56ae24,_0x1c8813)):_0x38c8a8&&_0x38c8a8===_0x22cee?this['_alignBeforeItem'](_0x1c8813,_0x56ae24):this['_alignAfterItem'](_0x56ae24,_0x1c8813);}[_0x1815('0x26')](_0x2c7207,_0x4e080f){0x0===this[_0x1815('0x3a')][_0x1815('0x3d')]&&setTimeout(()=>{for(const {sidebarItemView:_0x275c83,changedProp:_0x37e0b8}of this['_recalculateBuffer'])_0x1815('0x1b')===_0x37e0b8?this['_alignForTopChange'](_0x275c83):this['_alignForBottomChange'](_0x275c83);this[_0x1815('0x3a')]=[];},0xa),this[_0x1815('0x3a')][_0x1815('0x15')]({'sidebarItemView':_0x2c7207,'changedProp':_0x4e080f});}['getSidebarItemView'](_0x14aa41){return this['_annotationToSidebarItemView'][_0x1815('0x36')](_0x14aa41);}[_0x1815('0x8')](){this[_0x1815('0x41')](),this[_0x1815('0x2e')][_0x1815('0x8')]();}[_0x1815('0x3')](_0x1daccf){const _0x491956=this[_0x1815('0x32')](_0x1daccf);this[_0x1815('0x41')](_0x491956),this['stopListening'](_0x1daccf[_0x1815('0x2e')]),_0x491956[_0x1815('0x8')](),this['_annotationToSidebarItemView']['delete'](_0x1daccf),this[_0x1815('0x17')][_0x1815('0x2a')](_0x491956);}[_0x1815('0x23')](){const _0x188677=new _0x62ea91(this[_0x1815('0x4')]['locale']);return _0x188677[_0x1815('0x37')](),this['on']('change:_lastItem',(_0x1dbe27,_0x226013,_0x131bec,_0x34a732)=>{_0x34a732&&_0x188677[_0x1815('0xf')](_0x1815('0x20')),_0x131bec?_0x188677[_0x1815('0x2d')](_0x1815('0x20'))['to'](_0x131bec,_0x1815('0xe')):_0x188677[_0x1815('0x20')]=null;}),_0x188677;}[_0x1815('0x30')](){var _0x402a3e;this[_0x1815('0x13')]=(null===(_0x402a3e=this['_annotations'])||void 0x0===_0x402a3e?void 0x0:_0x402a3e[_0x1815('0x6')])?this[_0x1815('0x32')](this[_0x1815('0x2f')][_0x1815('0x6')]):null;}['_getItemBefore'](_0xa14e37){var _0x142625;const _0x333943=this[_0x1815('0x17')][_0x1815('0x36')](_0xa14e37),_0x583bb9=_0x333943&&(null===(_0x142625=this[_0x1815('0x2f')])||void 0x0===_0x142625?void 0x0:_0x142625['get'](this[_0x1815('0x2f')][_0x1815('0x25')](_0x333943)-0x1));return _0x583bb9&&this[_0x1815('0x32')](_0x583bb9)||null;}[_0x1815('0x42')](_0xc80535){var _0x885487;const _0xb8e574=this[_0x1815('0x17')][_0x1815('0x36')](_0xc80535),_0x22e3db=_0xb8e574&&(null===(_0x885487=this[_0x1815('0x2f')])||void 0x0===_0x885487?void 0x0:_0x885487[_0x1815('0x36')](this['_annotations']['getIndex'](_0xb8e574)+0x1));return _0x22e3db&&this['getSidebarItemView'](_0x22e3db)||null;}[_0x1815('0x22')](_0x44e020,_0x5ac574){_0x44e020[_0x1815('0x3b')]();const _0x28cf5f=H(_0x5ac574[_0x1815('0xe')]+this[_0x1815('0xd')],_0x44e020[_0x1815('0x1b')]);return!!_0x28cf5f&&(this[_0x1815('0x1a')](_0x5ac574,_0x5ac574[_0x1815('0x1b')]-_0x28cf5f),!0x0);}[_0x1815('0x2b')](_0x5d901b,_0x540f08){_0x5d901b[_0x1815('0x3b')]();const _0x186830=H(_0x5d901b['bottom']+this[_0x1815('0xd')],_0x540f08[_0x1815('0x1b')]);return!!_0x186830&&(this[_0x1815('0x1a')](_0x540f08,_0x540f08['top']+_0x186830,!0x1),!0x0);}[_0x1815('0x10')](_0x40e003){const _0xb05bbc=this[_0x1815('0x17')][_0x1815('0x36')](_0x40e003);if(!_0xb05bbc||!_0xb05bbc[_0x1815('0x1e')]||!_0xb05bbc[_0x1815('0x5')])return;const _0xa9abcb=this['_getTargetTop'](_0xb05bbc,_0xb05bbc['targetRect']);this[_0x1815('0x1a')](_0x40e003,_0xa9abcb);}[_0x1815('0x14')](_0x305354,_0x474034){if(null===_0x474034)return 0x0;if(_0x305354['target']instanceof _0x2650e0)return _0x474034[_0x1815('0x1b')];{const _0x25ab38=new _0x2650e0(this[_0x1815('0x2e')][_0x1815('0x1')])[_0x1815('0x1b')];return _0x474034[_0x1815('0x1b')]-_0x25ab38;}}[_0x1815('0x1a')](_0x23b7b6,_0x51f3f6,_0x162d60=this[_0x1815('0x4')][_0x1815('0xc')]['get'](_0x1815('0x0'))){_0x162d60&&(_0x51f3f6=Math[_0x1815('0x40')](_0x51f3f6,this[_0x1815('0x3f')](_0x23b7b6))),_0x23b7b6[_0x1815('0x1b')]=_0x51f3f6;}[_0x1815('0x3f')](_0x2d74c8){let _0x256a75=this[_0x1815('0x31')](_0x2d74c8),_0x39cdc1=0x0;for(;_0x256a75;)_0x256a75['updateHeight'](),_0x39cdc1+=this['_spaceBetweenItems']+_0x256a75['height'],_0x256a75=this[_0x1815('0x31')](_0x256a75);return _0x39cdc1;}}function H(_0x48c29f,_0x10fd4f){return Math[_0x1815('0x40')](_0x48c29f-_0x10fd4f,0x0);}function y(_0xeaaa14){return null!==_0xeaaa14&&_0x1815('0x1f')==typeof _0xeaaa14&&0x1===_0xeaaa14[_0x1815('0x12')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2344=['counterView','bindTemplate','ck-annotation-counter__badge--','ck-annotation-counter__badge','ck-annotation-counter__badge--edit-mode','annotationType','toString','bind','icon','set','ck-annotation-counter','number','setTemplate','...','extendTemplate','isDirty','_badge','span','add'];(function(_0x3c3afe,_0x2344bd){const _0x113727=function(_0x2d1c9c){while(--_0x2d1c9c){_0x3c3afe['push'](_0x3c3afe['shift']());}};_0x113727(++_0x2344bd);}(_0x2344,0x161));const _0x1137=function(_0x3c3afe,_0x2344bd){_0x3c3afe=_0x3c3afe-0x0;let _0x113727=_0x2344[_0x3c3afe];return _0x113727;};import{ButtonView as _0x4003d0,View as _0x2a361c}from'ckeditor5/src/ui';import _0x5718e2 from'../../../theme/icons/add-comment.svg';export default class D extends _0x4003d0{constructor(_0x4bf738){super(_0x4bf738);const _0x14a09c=this[_0x1137('0x9')];this[_0x1137('0x11')]('isDirty',!0x1),this[_0x1137('0x11')]('number',0x0),this[_0x1137('0xf')](_0x1137('0x5'))['to'](this,_0x1137('0x4'),this,_0x1137('0x0'),(_0xf56035,_0x5b2996)=>_0xf56035?_0x1137('0x2'):_0x5b2996[_0x1137('0xe')]()),this[_0x1137('0x11')]('annotationType',''),this[_0x1137('0x10')]=_0x5718e2,this[_0x1137('0x3')]({'attributes':{'class':[_0x1137('0x12')]}}),this[_0x1137('0x8')]=new _0x2a361c(),this[_0x1137('0x8')][_0x1137('0x1')]({'tag':_0x1137('0x6'),'attributes':{'class':[_0x1137('0xb'),_0x14a09c['to'](_0x1137('0xd'),_0x222e73=>_0x1137('0xa')+_0x222e73),_0x14a09c['if'](_0x1137('0x4'),_0x1137('0xc'))]},'children':[{'text':_0x14a09c['to'](_0x1137('0x5'))}]}),this['children'][_0x1137('0x7')](this[_0x1137('0x8')]);}}
23
+ const _0x5c3f=['bind','set','span','_badge','ck-annotation-counter','annotationType','add','bindTemplate','ck-annotation-counter__badge--','number','toString','children','ck-annotation-counter__badge--edit-mode','extendTemplate','...','counterView','isDirty'];(function(_0x2c5cfe,_0x5c3f8f){const _0x5679f3=function(_0x592530){while(--_0x592530){_0x2c5cfe['push'](_0x2c5cfe['shift']());}};_0x5679f3(++_0x5c3f8f);}(_0x5c3f,0x11e));const _0x5679=function(_0x2c5cfe,_0x5c3f8f){_0x2c5cfe=_0x2c5cfe-0x0;let _0x5679f3=_0x5c3f[_0x2c5cfe];return _0x5679f3;};import{ButtonView as _0x3839c6,View as _0x5f3461}from'ckeditor5/src/ui';import _0x41c5f0 from'../../../theme/icons/add-comment.svg';export default class D extends _0x3839c6{constructor(_0x568f64){super(_0x568f64);const _0x59e5da=this[_0x5679('0xa')];this[_0x5679('0x4')](_0x5679('0x2'),!0x1),this[_0x5679('0x4')](_0x5679('0xc'),0x0),this[_0x5679('0x3')]('_badge')['to'](this,_0x5679('0x2'),this,_0x5679('0xc'),(_0x55775d,_0x52c6eb)=>_0x55775d?_0x5679('0x0'):_0x52c6eb[_0x5679('0xd')]()),this['set'](_0x5679('0x8'),''),this['icon']=_0x41c5f0,this[_0x5679('0x10')]({'attributes':{'class':[_0x5679('0x7')]}}),this[_0x5679('0x1')]=new _0x5f3461(),this[_0x5679('0x1')]['setTemplate']({'tag':_0x5679('0x5'),'attributes':{'class':['ck-annotation-counter__badge',_0x59e5da['to'](_0x5679('0x8'),_0x2bb4ce=>_0x5679('0xb')+_0x2bb4ce),_0x59e5da['if']('isDirty',_0x5679('0xf'))]},'children':[{'text':_0x59e5da['to'](_0x5679('0x6'))}]}),this[_0x5679('0xe')][_0x5679('0x9')](this[_0x5679('0x1')]);}}