@ckeditor/ckeditor5-comments 0.0.0-nightly-20240117.0 → 0.0.0-nightly-20240119.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "0.0.0-nightly-20240117.0",
3
+ "version": "0.0.0-nightly-20240119.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -44,8 +44,8 @@
44
44
  "CHANGELOG.md"
45
45
  ],
46
46
  "dependencies": {
47
- "ckeditor5": "0.0.0-nightly-20240117.0",
48
- "ckeditor5-collaboration": "0.0.0-nightly-20240117.0",
47
+ "ckeditor5": "0.0.0-nightly-20240119.0",
48
+ "ckeditor5-collaboration": "0.0.0-nightly-20240119.0",
49
49
  "lodash-es": "4.17.21"
50
50
  },
51
51
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3cce=['target','updateTargetRect','nodeType','set','focusableElements','filter','every','element','clear','targetRect','offsetParent','_id','_target','destroy','length','_type','view','remove','isVisible','mainView','stopListening','object','_assertCorrectTarget','getClientRects','annotation-invalid-target','function','type','isArray','isActive','add','item'];(function(_0x58d1c2,_0x3cce2f){const _0x12910a=function(_0x15b56f){while(--_0x15b56f){_0x58d1c2['push'](_0x58d1c2['shift']());}};_0x12910a(++_0x3cce2f);}(_0x3cce,0x1d9));const _0x1291=function(_0x58d1c2,_0x3cce2f){_0x58d1c2=_0x58d1c2-0x0;let _0x12910a=_0x3cce[_0x58d1c2];return _0x12910a;};import{CKEditorError as _0x95531f,Rect as _0x25ee16,Collection as _0x5d3605,ObservableMixin as _0xe41670}from'ckeditor5/src/utils.js';export default class d extends _0xe41670(){constructor({view:_0x240fca,target:_0x292956,type:_0x32e8f2,isVisible:_0x5920e1=!0x0}){super(),this[_0x1291('0x8')]=_0x240fca,this['view'][_0x1291('0x1e')]||this['view']['render'](),this['_type']=_0x32e8f2,this[_0x1291('0x4')]=_0x292956,d[_0x1291('0xe')](this['_getNormalizedTarget']()),this[_0x1291('0x1b')]=new _0x5d3605([this[_0x1291('0x8')][_0x1291('0x1e')]],{'idProperty':_0x1291('0x3')}),this['focusableElements']['on'](_0x1291('0x15'),(_0x4a0765,_0x202482)=>{this[_0x1291('0x8')]['focusTracker'][_0x1291('0x15')](_0x202482);}),this[_0x1291('0x1b')]['on'](_0x1291('0x9'),(_0x48f24a,_0x2ba1f6)=>{this[_0x1291('0x8')]['focusTracker'][_0x1291('0x9')](_0x2ba1f6);}),this[_0x1291('0x1a')]('isVisible',_0x5920e1);}get[_0x1291('0x12')](){return'function'==typeof this['_type']?this[_0x1291('0x7')]():this[_0x1291('0x7')];}get['innerView'](){return this[_0x1291('0x8')][_0x1291('0xb')];}get[_0x1291('0x17')](){const _0x4086d7=this['_getNormalizedTarget']();return d[_0x1291('0xe')](_0x4086d7),_0x4086d7;}get['targetRect'](){const _0x4230d1=this[_0x1291('0x17')];if(null===_0x4230d1)return null;if(_0x4230d1 instanceof _0x25ee16)return _0x4230d1;const _0xbcacca=_0x4230d1[_0x1291('0x1c')](_0x374c5b=>function(_0xee0e93){const _0x21aefc=_0xee0e93[_0x1291('0x2')];if(_0x21aefc)return!0x0;const _0x429b70=_0xee0e93[_0x1291('0xf')]()[_0x1291('0x16')](0x0);return!!_0x429b70;}(_0x374c5b));return 0x0===_0xbcacca[_0x1291('0x6')]?null:new _0x25ee16(_0xbcacca[0x0]['getClientRects']()[_0x1291('0x16')](0x0));}get[_0x1291('0x14')](){return this[_0x1291('0x8')][_0x1291('0x14')];}set[_0x1291('0x14')](_0x5b1b2a){this[_0x1291('0x8')][_0x1291('0x14')]=_0x5b1b2a,this[_0x1291('0x8')]['mainView'][_0x1291('0x14')]=_0x5b1b2a;}[_0x1291('0x18')](){this[_0x1291('0x8')][_0x1291('0x1')]=this[_0x1291('0x1')];}[_0x1291('0x5')](){this[_0x1291('0x1b')][_0x1291('0xc')](),this['focusableElements'][_0x1291('0x0')](),this[_0x1291('0xc')]();}['refreshVisibility'](){this[_0x1291('0xa')]=!!this[_0x1291('0x1')];}static['_assertCorrectTarget'](_0x55d0c2){if(!(null===_0x55d0c2||_0x55d0c2 instanceof _0x25ee16||Array[_0x1291('0x13')](_0x55d0c2)&&_0x55d0c2[_0x1291('0x1d')](_0x304990=>y(_0x304990))))throw new _0x95531f(_0x1291('0x10'),null,{'target':_0x55d0c2});}['_getNormalizedTarget'](){const _0x56d0e4=_0x1291('0x11')==typeof this['_target']?this[_0x1291('0x4')]():this[_0x1291('0x4')];return y(_0x56d0e4)?[_0x56d0e4]:_0x56d0e4;}}function y(_0x4718b4){return null!==_0x4718b4&&_0x1291('0xd')==typeof _0x4718b4&&'nodeType'in _0x4718b4&&0x1===_0x4718b4[_0x1291('0x19')];}
23
+ const _0x1229=['targetRect','mainView','offsetParent','isVisible','add','refreshVisibility','_type','every','stopListening','type','length','isArray','clear','view','remove','isActive','_target','function','element','updateTargetRect','set','_assertCorrectTarget','getClientRects','nodeType','target','focusableElements','annotation-invalid-target','focusTracker'];(function(_0x3e3265,_0x12295a){const _0x24d8d5=function(_0x4660b2){while(--_0x4660b2){_0x3e3265['push'](_0x3e3265['shift']());}};_0x24d8d5(++_0x12295a);}(_0x1229,0x74));const _0x24d8=function(_0x3e3265,_0x12295a){_0x3e3265=_0x3e3265-0x0;let _0x24d8d5=_0x1229[_0x3e3265];return _0x24d8d5;};import{CKEditorError as _0x38869e,Rect as _0x5a6a95,Collection as _0x4d7ceb,ObservableMixin as _0x2712c5}from'ckeditor5/src/utils.js';export default class d extends _0x2712c5(){constructor({view:_0x42dcbf,target:_0x219a3d,type:_0xa854c8,isVisible:_0x33c392=!0x0}){super(),this['view']=_0x42dcbf,this[_0x24d8('0x9')]['element']||this['view']['render'](),this[_0x24d8('0x2')]=_0xa854c8,this[_0x24d8('0xc')]=_0x219a3d,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this[_0x24d8('0x15')]=new _0x4d7ceb([this[_0x24d8('0x9')][_0x24d8('0xe')]],{'idProperty':'_id'}),this['focusableElements']['on'](_0x24d8('0x0'),(_0x5ce9a5,_0x5735bc)=>{this['view']['focusTracker'][_0x24d8('0x0')](_0x5735bc);}),this['focusableElements']['on'](_0x24d8('0xa'),(_0xa89173,_0x1f689)=>{this['view'][_0x24d8('0x17')][_0x24d8('0xa')](_0x1f689);}),this[_0x24d8('0x10')](_0x24d8('0x1b'),_0x33c392);}get[_0x24d8('0x5')](){return _0x24d8('0xd')==typeof this[_0x24d8('0x2')]?this[_0x24d8('0x2')]():this[_0x24d8('0x2')];}get['innerView'](){return this['view'][_0x24d8('0x19')];}get[_0x24d8('0x14')](){const _0x12c113=this['_getNormalizedTarget']();return d[_0x24d8('0x11')](_0x12c113),_0x12c113;}get['targetRect'](){const _0xab57e9=this[_0x24d8('0x14')];if(null===_0xab57e9)return null;if(_0xab57e9 instanceof _0x5a6a95)return _0xab57e9;const _0x3fa333=_0xab57e9['filter'](_0x2de22a=>function(_0x431c26){const _0x25999e=_0x431c26[_0x24d8('0x1a')];if(_0x25999e)return!0x0;const _0x5931bf=_0x431c26[_0x24d8('0x12')]()['item'](0x0);return!!_0x5931bf;}(_0x2de22a));return 0x0===_0x3fa333[_0x24d8('0x6')]?null:new _0x5a6a95(_0x3fa333[0x0][_0x24d8('0x12')]()['item'](0x0));}get[_0x24d8('0xb')](){return this[_0x24d8('0x9')][_0x24d8('0xb')];}set['isActive'](_0x253732){this['view'][_0x24d8('0xb')]=_0x253732,this[_0x24d8('0x9')][_0x24d8('0x19')][_0x24d8('0xb')]=_0x253732;}[_0x24d8('0xf')](){this[_0x24d8('0x9')][_0x24d8('0x18')]=this[_0x24d8('0x18')];}['destroy'](){this[_0x24d8('0x15')][_0x24d8('0x4')](),this[_0x24d8('0x15')][_0x24d8('0x8')](),this['stopListening']();}[_0x24d8('0x1')](){this[_0x24d8('0x1b')]=!!this[_0x24d8('0x18')];}static['_assertCorrectTarget'](_0x401a6a){if(!(null===_0x401a6a||_0x401a6a instanceof _0x5a6a95||Array[_0x24d8('0x7')](_0x401a6a)&&_0x401a6a[_0x24d8('0x3')](_0x4c69f3=>y(_0x4c69f3))))throw new _0x38869e(_0x24d8('0x16'),null,{'target':_0x401a6a});}['_getNormalizedTarget'](){const _0x25a92a='function'==typeof this[_0x24d8('0xc')]?this['_target']():this[_0x24d8('0xc')];return y(_0x25a92a)?[_0x25a92a]:_0x25a92a;}}function y(_0x3f1039){return null!==_0x3f1039&&'object'==typeof _0x3f1039&&_0x24d8('0x13')in _0x3f1039&&0x1===_0x3f1039[_0x24d8('0x13')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa9e2=['from','getByView','innerView','focusableElements','_innerViewToAnnotation','_sort','remove','left','fire','annotationcollection-duplicated-item','blur','stopListening','top','_getOrderInContent','annotationcollection-not-existing-item','view','targetRect','destroy','listenTo','change:isFocused','_focusTracker','getIndex','length','getByInnerView','has','isFocused','_viewToAnnotation','get','add','delete','refreshPositioning','sort','clear','focusTracker'];(function(_0x2ceb4f,_0xa9e238){const _0x9a13d2=function(_0x4bca06){while(--_0x4bca06){_0x2ceb4f['push'](_0x2ceb4f['shift']());}};_0x9a13d2(++_0xa9e238);}(_0xa9e2,0x120));const _0x9a13=function(_0x2ceb4f,_0xa9e238){_0x2ceb4f=_0x2ceb4f-0x0;let _0x9a13d2=_0xa9e2[_0x2ceb4f];return _0x9a13d2;};import{CKEditorError as _0x3e0319,Collection as _0x2dd7a7,FocusTracker as _0x2d3066}from'ckeditor5/src/utils.js';export default class x extends _0x2dd7a7{constructor(_0x509a9d=[]){super(),this[_0x9a13('0x16')]=new Map(),this['_viewToAnnotation']=new Map(),this[_0x9a13('0x4')]=new _0x2d3066(),this[_0x9a13('0x4')]['on'](_0x9a13('0x3'),(_0x2ec05c,_0x4691c9,_0x14bea2)=>{_0x14bea2||this['fire'](_0x9a13('0x1c'));});for(const _0x5e6356 of _0x509a9d)this[_0x9a13('0xc')](_0x5e6356);}get['isFocused'](){return this[_0x9a13('0x4')][_0x9a13('0x9')];}[_0x9a13('0xc')](_0x2a688d){if(this[_0x9a13('0x8')](_0x2a688d))throw new _0x3e0319(_0x9a13('0x1b'),null);this[_0x9a13('0x16')]['set'](_0x2a688d[_0x9a13('0x14')],_0x2a688d),this[_0x9a13('0xa')]['set'](_0x2a688d[_0x9a13('0x21')],_0x2a688d);for(const _0x2ae6c6 of _0x2a688d[_0x9a13('0x15')])this[_0x9a13('0x4')][_0x9a13('0xc')](_0x2ae6c6);this[_0x9a13('0x2')](_0x2a688d[_0x9a13('0x15')],_0x9a13('0xc'),(_0x24b8c5,_0xb5f16b)=>{this['_focusTracker'][_0x9a13('0xc')](_0xb5f16b);}),this[_0x9a13('0x2')](_0x2a688d[_0x9a13('0x15')],'remove',(_0xbf9673,_0x532ed1)=>{this[_0x9a13('0x4')][_0x9a13('0x18')](_0x532ed1);}),this['listenTo'](_0x2a688d[_0x9a13('0x21')][_0x9a13('0x11')],_0x9a13('0x3'),(_0x4b8054,_0x122898,_0x2364f6)=>{_0x2364f6&&this[_0x9a13('0x1a')]('focus',_0x2a688d);}),_0x2a688d['updateTargetRect']();const _0x444de1=this[_0x9a13('0x1f')](_0x2a688d[_0x9a13('0x21')][_0x9a13('0x0')]);return super[_0x9a13('0xc')](_0x2a688d,_0x444de1);}[_0x9a13('0x18')](_0x148022){if(!this[_0x9a13('0x8')](_0x148022))throw new _0x3e0319(_0x9a13('0x20'),null);this[_0x9a13('0x1d')](_0x148022['view'][_0x9a13('0x11')]),this[_0x9a13('0x1d')](_0x148022['focusableElements']);for(const _0xcc4f28 of _0x148022['focusableElements'])this[_0x9a13('0x4')]['remove'](_0xcc4f28);return this['_viewToAnnotation'][_0x9a13('0xd')](_0x148022['view']),this['_innerViewToAnnotation'][_0x9a13('0xd')](_0x148022[_0x9a13('0x14')]),super[_0x9a13('0x18')](_0x148022);}[_0x9a13('0x7')](_0x23c888){return this[_0x9a13('0x16')][_0x9a13('0xb')](_0x23c888);}[_0x9a13('0x13')](_0xbd0967){return this[_0x9a13('0xa')][_0x9a13('0xb')](_0xbd0967);}[_0x9a13('0x1')](){super[_0x9a13('0x10')](),this[_0x9a13('0x1d')](),this['_innerViewToAnnotation'][_0x9a13('0x10')](),this[_0x9a13('0xa')][_0x9a13('0x10')](),this[_0x9a13('0x4')][_0x9a13('0x1')]();}[_0x9a13('0xe')](){for(const _0x356f72 of this)_0x356f72['updateTargetRect']();this[_0x9a13('0x17')]();}[_0x9a13('0x17')](){const _0x534b26=Array[_0x9a13('0x12')](this)[_0x9a13('0xf')]((_0x483796,_0x3ed7f2)=>v(_0x483796['view'][_0x9a13('0x0')],_0x3ed7f2[_0x9a13('0x21')][_0x9a13('0x0')]));for(let _0x4f5e03=_0x534b26[_0x9a13('0x6')]-0x1;_0x4f5e03>0x0;_0x4f5e03--){const _0x632bff=_0x534b26[_0x4f5e03];_0x4f5e03!==this[_0x9a13('0x5')](_0x632bff)&&(this[_0x9a13('0x18')](_0x632bff),this['add'](_0x632bff));}}['_getOrderInContent'](_0x590d33){let _0x32b7f3=0x0;if(!_0x590d33)return this[_0x9a13('0x6')];for(const _0x2be115 of this){const _0x7f6970=_0x2be115[_0x9a13('0x21')][_0x9a13('0x0')];if(_0x7f6970){if(v(_0x590d33,_0x7f6970)<0x0)return _0x32b7f3;_0x32b7f3++;}}return _0x32b7f3;}}export function bindAnnotationCollections({source:_0x3aa8de,target:_0x236662,filter:_0x5dbc12}){for(const _0x4685fb of _0x3aa8de)_0x5dbc12(_0x4685fb)&&_0x236662[_0x9a13('0xc')](_0x4685fb);_0x236662[_0x9a13('0x2')](_0x3aa8de,_0x9a13('0xc'),(_0x3f77dc,_0x579683)=>{_0x5dbc12(_0x579683)&&_0x236662[_0x9a13('0xc')](_0x579683);}),_0x236662['listenTo'](_0x3aa8de,_0x9a13('0x18'),(_0x30e18c,_0x4bc27e)=>{_0x236662[_0x9a13('0x8')](_0x4bc27e)&&_0x236662[_0x9a13('0x18')](_0x4bc27e);});}function v(_0x411090,_0x321574){if(null===_0x411090&&null===_0x321574)return 0x0;if(null===_0x411090)return-0x1;if(null===_0x321574)return 0x1;const _0x3af02a=_0x411090[_0x9a13('0x1e')]-_0x321574[_0x9a13('0x1e')];return 0x0==_0x3af02a?_0x411090['left']-_0x321574[_0x9a13('0x19')]:_0x3af02a;}
23
+ const _0x4e77=['sort','targetRect','_viewToAnnotation','updateTargetRect','set','view','fire','get','focusableElements','delete','_getOrderInContent','has','annotationcollection-not-existing-item','focus','getByView','getIndex','stopListening','remove','add','_innerViewToAnnotation','isFocused','_focusTracker','left','blur','annotationcollection-duplicated-item','listenTo','clear','refreshPositioning','destroy','change:isFocused','innerView','_sort','top','length'];(function(_0x50ca69,_0x4e7785){const _0x468662=function(_0x6d0e40){while(--_0x6d0e40){_0x50ca69['push'](_0x50ca69['shift']());}};_0x468662(++_0x4e7785);}(_0x4e77,0x1b7));const _0x4686=function(_0x50ca69,_0x4e7785){_0x50ca69=_0x50ca69-0x0;let _0x468662=_0x4e77[_0x50ca69];return _0x468662;};import{CKEditorError as _0x42a551,Collection as _0x3bb5ed,FocusTracker as _0x456bcb}from'ckeditor5/src/utils.js';export default class x extends _0x3bb5ed{constructor(_0x22f2aa=[]){super(),this[_0x4686('0x16')]=new Map(),this[_0x4686('0x5')]=new Map(),this[_0x4686('0x18')]=new _0x456bcb(),this['_focusTracker']['on']('change:isFocused',(_0x157ee4,_0x5e5e5b,_0x251b19)=>{_0x251b19||this['fire'](_0x4686('0x1a'));});for(const _0x51781e of _0x22f2aa)this[_0x4686('0x15')](_0x51781e);}get[_0x4686('0x17')](){return this[_0x4686('0x18')][_0x4686('0x17')];}[_0x4686('0x15')](_0x53ef83){if(this[_0x4686('0xe')](_0x53ef83))throw new _0x42a551(_0x4686('0x1b'),null);this[_0x4686('0x16')][_0x4686('0x7')](_0x53ef83[_0x4686('0x21')],_0x53ef83),this[_0x4686('0x5')][_0x4686('0x7')](_0x53ef83[_0x4686('0x8')],_0x53ef83);for(const _0x4c3d61 of _0x53ef83['focusableElements'])this[_0x4686('0x18')][_0x4686('0x15')](_0x4c3d61);this['listenTo'](_0x53ef83['focusableElements'],_0x4686('0x15'),(_0x324668,_0xfa57b0)=>{this[_0x4686('0x18')][_0x4686('0x15')](_0xfa57b0);}),this[_0x4686('0x1c')](_0x53ef83[_0x4686('0xb')],_0x4686('0x14'),(_0x2170b8,_0x352d32)=>{this[_0x4686('0x18')][_0x4686('0x14')](_0x352d32);}),this[_0x4686('0x1c')](_0x53ef83['view']['focusTracker'],_0x4686('0x20'),(_0x34ddbe,_0x5d6548,_0x266f17)=>{_0x266f17&&this[_0x4686('0x9')](_0x4686('0x10'),_0x53ef83);}),_0x53ef83[_0x4686('0x6')]();const _0x451208=this[_0x4686('0xd')](_0x53ef83[_0x4686('0x8')]['targetRect']);return super[_0x4686('0x15')](_0x53ef83,_0x451208);}[_0x4686('0x14')](_0x2a257a){if(!this['has'](_0x2a257a))throw new _0x42a551(_0x4686('0xf'),null);this[_0x4686('0x13')](_0x2a257a[_0x4686('0x8')]['focusTracker']),this[_0x4686('0x13')](_0x2a257a[_0x4686('0xb')]);for(const _0x9c4757 of _0x2a257a[_0x4686('0xb')])this['_focusTracker'][_0x4686('0x14')](_0x9c4757);return this[_0x4686('0x5')][_0x4686('0xc')](_0x2a257a[_0x4686('0x8')]),this[_0x4686('0x16')][_0x4686('0xc')](_0x2a257a[_0x4686('0x21')]),super[_0x4686('0x14')](_0x2a257a);}['getByInnerView'](_0x2ea378){return this[_0x4686('0x16')][_0x4686('0xa')](_0x2ea378);}[_0x4686('0x11')](_0x343d07){return this[_0x4686('0x5')][_0x4686('0xa')](_0x343d07);}[_0x4686('0x1f')](){super[_0x4686('0x1d')](),this[_0x4686('0x13')](),this['_innerViewToAnnotation']['clear'](),this[_0x4686('0x5')][_0x4686('0x1d')](),this[_0x4686('0x18')][_0x4686('0x1f')]();}[_0x4686('0x1e')](){for(const _0x26cc2f of this)_0x26cc2f[_0x4686('0x6')]();this['_sort']();}[_0x4686('0x0')](){const _0x2c6099=Array['from'](this)[_0x4686('0x3')]((_0x1d30ee,_0x540a4b)=>v(_0x1d30ee['view'][_0x4686('0x4')],_0x540a4b['view'][_0x4686('0x4')]));for(let _0x43926d=_0x2c6099[_0x4686('0x2')]-0x1;_0x43926d>0x0;_0x43926d--){const _0xe43c8d=_0x2c6099[_0x43926d];_0x43926d!==this[_0x4686('0x12')](_0xe43c8d)&&(this['remove'](_0xe43c8d),this[_0x4686('0x15')](_0xe43c8d));}}[_0x4686('0xd')](_0x3a6f90){let _0x3388fd=0x0;if(!_0x3a6f90)return this[_0x4686('0x2')];for(const _0x1bceeb of this){const _0x1f369f=_0x1bceeb[_0x4686('0x8')][_0x4686('0x4')];if(_0x1f369f){if(v(_0x3a6f90,_0x1f369f)<0x0)return _0x3388fd;_0x3388fd++;}}return _0x3388fd;}}export function bindAnnotationCollections({source:_0x38d9b3,target:_0x5ac66c,filter:_0x71e8dc}){for(const _0x1b4f57 of _0x38d9b3)_0x71e8dc(_0x1b4f57)&&_0x5ac66c[_0x4686('0x15')](_0x1b4f57);_0x5ac66c['listenTo'](_0x38d9b3,'add',(_0x149eee,_0x2ed755)=>{_0x71e8dc(_0x2ed755)&&_0x5ac66c[_0x4686('0x15')](_0x2ed755);}),_0x5ac66c[_0x4686('0x1c')](_0x38d9b3,'remove',(_0x701d09,_0x291811)=>{_0x5ac66c[_0x4686('0xe')](_0x291811)&&_0x5ac66c['remove'](_0x291811);});}function v(_0x35eb0d,_0x419352){if(null===_0x35eb0d&&null===_0x419352)return 0x0;if(null===_0x35eb0d)return-0x1;if(null===_0x419352)return 0x1;const _0x5dc8fa=_0x35eb0d[_0x4686('0x1')]-_0x419352[_0x4686('0x1')];return 0x0==_0x5dc8fa?_0x35eb0d[_0x4686('0x19')]-_0x419352[_0x4686('0x19')]:_0x5dc8fa;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14ad=['remove','isVisible','refreshVisibility','Annotations','collection','add','activate','destroy','source','set','pluginName','createAnnotationView','_removeActiveAnnotation','_visibleAnnotations','_bindAnnotationsToVisibleAnnotations','createAnnotation','has','refreshPositioning','fire','_addActiveAnnotation','listenTo','deactivateAll','change:isVisible','activeAnnotations','view','delete','focusTracker'];(function(_0x1504f4,_0x14add7){const _0xb2dbba=function(_0x3b09e0){while(--_0x3b09e0){_0x1504f4['push'](_0x1504f4['shift']());}};_0xb2dbba(++_0x14add7);}(_0x14ad,0xbc));const _0xb2db=function(_0x1504f4,_0x14add7){_0x1504f4=_0x1504f4-0x0;let _0xb2dbba=_0x14ad[_0x1504f4];return _0xb2dbba;};import{ContextPlugin as _0x34e037}from'ckeditor5/src/core.js';import _0x5800b7 from'./annotation.js';import _0x455560 from'./annotationcollection.js';import _0x40045c from'./view/annotationview.js';export default class b extends _0x34e037{static get[_0xb2db('0xb')](){return _0xb2db('0x4');}constructor(_0x2cbf23){super(_0x2cbf23),this['collection']=new _0x455560(),this[_0xb2db('0xe')]=new _0x455560(),this[_0xb2db('0xa')](_0xb2db('0x18'),new Set()),this[_0xb2db('0xf')]();}[_0xb2db('0x6')](_0x1f1ae2){this[_0xb2db('0x5')][_0xb2db('0x6')](_0x1f1ae2);}[_0xb2db('0x1')](_0x35b246){this[_0xb2db('0x5')]['remove'](_0x35b246),_0x35b246['destroy']();}['refreshVisibility'](){for(const _0x54f974 of this[_0xb2db('0x5')])_0x54f974[_0xb2db('0x3')]();}['refreshPositioning'](){this[_0xb2db('0xe')][_0xb2db('0x12')]();}['getByInnerView'](_0x2e0bcc){return this[_0xb2db('0x5')]['getByInnerView'](_0x2e0bcc);}[_0xb2db('0x16')](){this[_0xb2db('0x13')]('_deactivateAllAnnotations');}[_0xb2db('0x8')](){for(const _0x5353c0 of this[_0xb2db('0x5')])_0x5353c0[_0xb2db('0x8')]();this[_0xb2db('0xe')][_0xb2db('0x8')](),this['collection'][_0xb2db('0x8')](),super['destroy']();}[_0xb2db('0x7')](_0x2ca2c1){this[_0xb2db('0x13')]('_activateAnnotation',_0x2ca2c1);}[_0xb2db('0x10')](_0x5931c3){return new _0x5800b7(_0x5931c3);}[_0xb2db('0xc')](_0x559624,_0x426e92){return new _0x40045c(_0x559624,_0x426e92);}[_0xb2db('0x14')](_0x49bedf){const _0x4816d6=new Set(this[_0xb2db('0x18')]);_0x4816d6['add'](_0x49bedf),this[_0xb2db('0x18')]=_0x4816d6;}[_0xb2db('0xd')](_0x39b4a2){const _0x944b2f=new Set(this[_0xb2db('0x18')]);_0x944b2f[_0xb2db('0x1a')](_0x39b4a2),this[_0xb2db('0x18')]=_0x944b2f;}['_bindAnnotationsToVisibleAnnotations'](){const _0x1b7a31=this[_0xb2db('0x5')],_0xf0be77=this['_visibleAnnotations'];function _0x13b74c(_0x547d9f){const _0x23338e=_0x547d9f[_0xb2db('0x9')];_0x23338e['isVisible']&&!_0xf0be77[_0xb2db('0x11')](_0x23338e)?_0xf0be77[_0xb2db('0x6')](_0x23338e):!_0x23338e[_0xb2db('0x2')]&&_0xf0be77[_0xb2db('0x11')](_0x23338e)&&_0xf0be77[_0xb2db('0x1')](_0x23338e),_0x23338e[_0xb2db('0x19')][_0xb2db('0x0')][_0xb2db('0x1')](_0x23338e['view']['element']),_0x23338e[_0xb2db('0x19')][_0xb2db('0x0')][_0xb2db('0x6')](_0x23338e[_0xb2db('0x19')]['element']);}this[_0xb2db('0x15')](_0x1b7a31,_0xb2db('0x6'),(_0x20d85d,_0x3452dd)=>{_0x3452dd['isVisible']&&_0xf0be77[_0xb2db('0x6')](_0x3452dd),this[_0xb2db('0x15')](_0x3452dd,_0xb2db('0x17'),_0x13b74c);}),this[_0xb2db('0x15')](_0x1b7a31,_0xb2db('0x1'),(_0x656a6a,_0x4e0d81)=>{_0xf0be77[_0xb2db('0x11')](_0x4e0d81)&&_0xf0be77[_0xb2db('0x1')](_0x4e0d81),this['stopListening'](_0x4e0d81,_0xb2db('0x17'),_0x13b74c);});}}
23
+ const _0x15a7=['delete','add','refreshPositioning','_visibleAnnotations','createAnnotation','listenTo','Annotations','activate','fire','change:isVisible','activeAnnotations','_activateAnnotation','isVisible','getByInnerView','_addActiveAnnotation','_removeActiveAnnotation','stopListening','has','refreshVisibility','focusTracker','set','_bindAnnotationsToVisibleAnnotations','destroy','view','element','collection','deactivateAll','_deactivateAllAnnotations','remove'];(function(_0x36dfb0,_0x15a7fc){const _0x414dd0=function(_0x1e4b5b){while(--_0x1e4b5b){_0x36dfb0['push'](_0x36dfb0['shift']());}};_0x414dd0(++_0x15a7fc);}(_0x15a7,0x14a));const _0x414d=function(_0x36dfb0,_0x15a7fc){_0x36dfb0=_0x36dfb0-0x0;let _0x414dd0=_0x15a7[_0x36dfb0];return _0x414dd0;};import{ContextPlugin as _0xd10197}from'ckeditor5/src/core.js';import _0x15d288 from'./annotation.js';import _0x1236a9 from'./annotationcollection.js';import _0x50a3f7 from'./view/annotationview.js';export default class b extends _0xd10197{static get['pluginName'](){return _0x414d('0x18');}constructor(_0x37cb92){super(_0x37cb92),this[_0x414d('0xe')]=new _0x1236a9(),this[_0x414d('0x15')]=new _0x1236a9(),this[_0x414d('0x9')](_0x414d('0x1c'),new Set()),this[_0x414d('0xa')]();}[_0x414d('0x13')](_0x3249e0){this['collection'][_0x414d('0x13')](_0x3249e0);}[_0x414d('0x11')](_0x17d190){this['collection'][_0x414d('0x11')](_0x17d190),_0x17d190[_0x414d('0xb')]();}[_0x414d('0x7')](){for(const _0x23b502 of this['collection'])_0x23b502[_0x414d('0x7')]();}['refreshPositioning'](){this['_visibleAnnotations'][_0x414d('0x14')]();}['getByInnerView'](_0x22ea10){return this[_0x414d('0xe')][_0x414d('0x2')](_0x22ea10);}[_0x414d('0xf')](){this[_0x414d('0x1a')](_0x414d('0x10'));}[_0x414d('0xb')](){for(const _0x479e69 of this['collection'])_0x479e69[_0x414d('0xb')]();this[_0x414d('0x15')][_0x414d('0xb')](),this[_0x414d('0xe')][_0x414d('0xb')](),super[_0x414d('0xb')]();}[_0x414d('0x19')](_0x46f013){this[_0x414d('0x1a')](_0x414d('0x0'),_0x46f013);}[_0x414d('0x16')](_0x1c2e1c){return new _0x15d288(_0x1c2e1c);}['createAnnotationView'](_0x289020,_0x5def18){return new _0x50a3f7(_0x289020,_0x5def18);}[_0x414d('0x3')](_0x2bcb70){const _0x237d31=new Set(this[_0x414d('0x1c')]);_0x237d31['add'](_0x2bcb70),this['activeAnnotations']=_0x237d31;}[_0x414d('0x4')](_0x87632){const _0x21ebb1=new Set(this[_0x414d('0x1c')]);_0x21ebb1[_0x414d('0x12')](_0x87632),this[_0x414d('0x1c')]=_0x21ebb1;}[_0x414d('0xa')](){const _0x3916f7=this['collection'],_0x2546f8=this[_0x414d('0x15')];function _0x3a4fc7(_0xa7a310){const _0x407d3d=_0xa7a310['source'];_0x407d3d[_0x414d('0x1')]&&!_0x2546f8[_0x414d('0x6')](_0x407d3d)?_0x2546f8[_0x414d('0x13')](_0x407d3d):!_0x407d3d[_0x414d('0x1')]&&_0x2546f8['has'](_0x407d3d)&&_0x2546f8[_0x414d('0x11')](_0x407d3d),_0x407d3d[_0x414d('0xc')][_0x414d('0x8')][_0x414d('0x11')](_0x407d3d[_0x414d('0xc')][_0x414d('0xd')]),_0x407d3d[_0x414d('0xc')]['focusTracker']['add'](_0x407d3d['view'][_0x414d('0xd')]);}this[_0x414d('0x17')](_0x3916f7,_0x414d('0x13'),(_0x1ef7ea,_0x6438c3)=>{_0x6438c3[_0x414d('0x1')]&&_0x2546f8[_0x414d('0x13')](_0x6438c3),this[_0x414d('0x17')](_0x6438c3,_0x414d('0x1b'),_0x3a4fc7);}),this[_0x414d('0x17')](_0x3916f7,_0x414d('0x11'),(_0x227bc5,_0x3ba3da)=>{_0x2546f8[_0x414d('0x6')](_0x3ba3da)&&_0x2546f8[_0x414d('0x11')](_0x3ba3da),this[_0x414d('0x5')](_0x3ba3da,'change:isVisible',_0x3a4fc7);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5561=['setActiveAnnotation','_removeActiveAnnotation','push','refilterAnnotations','activeUIs','attach','length','_setSelectedAnnotations','stopListening','filter','_visibleAnnotations','_deactivateAllAnnotations','_uisData','remove','init','_assertAnnotationDoesNotBelongToMultipleUIs','detach','register','type','requires','_uis','get','change:activeAnnotation','from','switchTo','find','add','annotationsuis-missing-ui','set','deactivate','function','size','delete','isActive','has','context','deactivateAll','destroy','annotationsuis-annotation-mismatch','plugins','_activateAnnotation','listenTo','annotationsuis-register-already-registered','activate','collection','activeAnnotations'];(function(_0x519e6f,_0x5561c9){const _0x15a5b3=function(_0x4b620d){while(--_0x4b620d){_0x519e6f['push'](_0x519e6f['shift']());}};_0x15a5b3(++_0x5561c9);}(_0x5561,0x1bb));const _0x15a5=function(_0x519e6f,_0x5561c9){_0x519e6f=_0x519e6f-0x0;let _0x15a5b3=_0x5561[_0x519e6f];return _0x15a5b3;};import{ContextPlugin as _0xab6445}from'ckeditor5/src/core.js';import{CKEditorError as _0xbe6664}from'ckeditor5/src/utils.js';import _0x2cd9ff,{bindAnnotationCollections as _0xcc35d4}from'./annotationcollection.js';import _0x588dcc from'./annotations.js';export default class j extends _0xab6445{static get[_0x15a5('0x24')](){return[_0x588dcc];}static get['pluginName'](){return'AnnotationsUIs';}constructor(_0x5d8421){super(_0x5d8421),this[_0x15a5('0x15')]=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}[_0x15a5('0x1f')](){const _0x51c108=this[_0x15a5('0x6')][_0x15a5('0xa')][_0x15a5('0x26')](_0x588dcc);this[_0x15a5('0xc')](_0x51c108,_0x15a5('0xb'),(_0x434a24,_0x307af1)=>{for(const _0x39a17e of this[_0x15a5('0x15')]){const _0x1d7655=this[_0x15a5('0x25')][_0x15a5('0x26')](_0x39a17e);(0x0,this['_uisData']['get'](_0x39a17e)[_0x15a5('0x1a')])(_0x307af1)&&_0x1d7655['setActiveAnnotation'](_0x307af1);}}),this['listenTo'](_0x51c108,_0x15a5('0x1c'),()=>{for(const _0x3ec4ff of this[_0x15a5('0x15')]){this[_0x15a5('0x25')][_0x15a5('0x26')](_0x3ec4ff)[_0x15a5('0x11')](null);}}),this['listenTo'](_0x51c108[_0x15a5('0x1b')],_0x15a5('0x2b'),(_0x3f1cf5,_0x490550)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x490550);});}['hasActive'](){return this[_0x15a5('0x15')][_0x15a5('0x2')]>0x0;}[_0x15a5('0x4')](_0x50f662){return this[_0x15a5('0x15')]['has'](_0x50f662);}['activate'](_0x2b5b1c,_0xdbb764=()=>!0x0){const _0x24f8eb=this[_0x15a5('0x6')][_0x15a5('0xa')]['get'](_0x588dcc);if(!this[_0x15a5('0x25')]['has'](_0x2b5b1c))throw new _0xbe6664(_0x15a5('0x2c'),this,{'uiName':_0x2b5b1c});this[_0x15a5('0x4')](_0x2b5b1c)&&this[_0x15a5('0x0')](_0x2b5b1c),this['activeUIs'][_0x15a5('0x2b')](_0x2b5b1c);const _0x39f6ba=new _0x2cd9ff(),_0x3026c9=_0x24f8eb[_0x15a5('0x1b')];_0xcc35d4({'source':_0x3026c9,'target':_0x39f6ba,'filter':_0xdbb764}),this[_0x15a5('0x1d')][_0x15a5('0x2d')](_0x2b5b1c,{'collection':_0x39f6ba,'filter':_0xdbb764});const _0x3da343=this[_0x15a5('0x25')][_0x15a5('0x26')](_0x2b5b1c);_0x3da343[_0x15a5('0x16')](_0x39f6ba),this[_0x15a5('0xc')](_0x3da343,_0x15a5('0x27'),(_0x12cb0a,_0x7552b4,_0x437ae2,_0x47c124)=>{_0x47c124&&_0x24f8eb[_0x15a5('0x12')](_0x47c124),_0x437ae2&&_0x24f8eb['_addActiveAnnotation'](_0x437ae2);});}[_0x15a5('0x0')](_0x3c7a79){if(this[_0x15a5('0x15')][_0x15a5('0x3')](_0x3c7a79),!this[_0x15a5('0x25')]['has'](_0x3c7a79))throw new _0xbe6664('annotationsuis-missing-ui',this,{'uiName':_0x3c7a79});const _0x154945=this[_0x15a5('0x25')][_0x15a5('0x26')](_0x3c7a79);_0x154945[_0x15a5('0x21')](),this[_0x15a5('0x19')](_0x154945),this[_0x15a5('0x1d')][_0x15a5('0x26')](_0x3c7a79)['collection'][_0x15a5('0x8')](),this['_uisData'][_0x15a5('0x3')](_0x3c7a79);}[_0x15a5('0x29')](_0x5adc4b){if(!this[_0x15a5('0x25')]['has'](_0x5adc4b))throw new _0xbe6664(_0x15a5('0x2c'),this,{'uiName':_0x5adc4b});const _0x4e0c7e=this['context'][_0x15a5('0xa')][_0x15a5('0x26')](_0x588dcc),_0x2877ec=Array[_0x15a5('0x28')](_0x4e0c7e[_0x15a5('0x10')])[0x0]||null;this[_0x15a5('0x7')](),this[_0x15a5('0xe')](_0x5adc4b);const _0x319def=this[_0x15a5('0x25')][_0x15a5('0x26')](_0x5adc4b);_0x319def[_0x15a5('0x11')](_0x2877ec),_0x319def['_setSelectedAnnotations']&&_0x2877ec&&_0x319def[_0x15a5('0x18')]([_0x2877ec]);}[_0x15a5('0x7')](){for(const _0x4b05b0 of this[_0x15a5('0x15')])this['deactivate'](_0x4b05b0);}[_0x15a5('0x22')](_0x3b6064,_0x257a11){if(this['_uis'][_0x15a5('0x5')](_0x3b6064))throw new _0xbe6664(_0x15a5('0xd'));if(_0x15a5('0x1')!=typeof _0x257a11[_0x15a5('0x16')]||_0x15a5('0x1')!=typeof _0x257a11[_0x15a5('0x21')]||_0x15a5('0x1')!=typeof _0x257a11[_0x15a5('0x11')])throw new _0xbe6664('annotationsuis-register-invalid-interface',null);this[_0x15a5('0x25')][_0x15a5('0x2d')](_0x3b6064,_0x257a11);}[_0x15a5('0x14')](){const _0x33dd27=this[_0x15a5('0x6')][_0x15a5('0xa')][_0x15a5('0x26')](_0x588dcc)['collection'],_0x2de02d=new Map(),_0xea63cc=Array[_0x15a5('0x28')](this[_0x15a5('0x15')]);for(const _0x13e137 of this[_0x15a5('0x15')]){const _0x2110db=this[_0x15a5('0x1d')][_0x15a5('0x26')](_0x13e137)[_0x15a5('0xf')];for(const _0x1884b0 of _0x2110db)_0x2de02d[_0x15a5('0x2d')](_0x1884b0,_0x13e137);}for(const _0x2c54f0 of _0x33dd27){const _0x3a0427=_0x2de02d[_0x15a5('0x26')](_0x2c54f0);this[_0x15a5('0x20')](_0x2c54f0);const _0x1eea71=_0xea63cc[_0x15a5('0x2a')](_0x51976f=>this['_uisData'][_0x15a5('0x26')](_0x51976f)[_0x15a5('0x1a')](_0x2c54f0));_0x3a0427!==_0x1eea71&&(_0x3a0427&&this[_0x15a5('0x1d')][_0x15a5('0x26')](_0x3a0427)[_0x15a5('0xf')][_0x15a5('0x1e')](_0x2c54f0),_0x1eea71&&this[_0x15a5('0x1d')]['get'](_0x1eea71)[_0x15a5('0xf')][_0x15a5('0x2b')](_0x2c54f0));}}['destroy'](){this[_0x15a5('0x7')](),super[_0x15a5('0x8')]();}[_0x15a5('0x20')](_0x5151e2){const _0x3753b3=[];for(const _0x162454 of this[_0x15a5('0x15')]){(0x0,this['_uisData']['get'](_0x162454)[_0x15a5('0x1a')])(_0x5151e2)&&_0x3753b3[_0x15a5('0x13')](_0x162454);}if(_0x3753b3[_0x15a5('0x17')]>0x1)throw new _0xbe6664(_0x15a5('0x9'),null,{'matchedUIs':_0x3753b3,'annotationType':_0x5151e2[_0x15a5('0x23')]});}}
23
+ const _0x1b22=['stopListening','context','set','setActiveAnnotation','listenTo','length','delete','deactivateAll','has','_removeActiveAnnotation','_visibleAnnotations','destroy','find','function','requires','annotationsuis-missing-ui','init','register','type','_uisData','filter','activeUIs','collection','detach','switchTo','_assertAnnotationDoesNotBelongToMultipleUIs','_setSelectedAnnotations','get','attach','plugins','activeAnnotations','size','push','pluginName','_uis','deactivate','isActive','_deactivateAllAnnotations','_addActiveAnnotation','add','from','activate','annotationsuis-annotation-mismatch'];(function(_0x2ebc2d,_0x1b22ca){const _0x3fd076=function(_0x539026){while(--_0x539026){_0x2ebc2d['push'](_0x2ebc2d['shift']());}};_0x3fd076(++_0x1b22ca);}(_0x1b22,0x128));const _0x3fd0=function(_0x2ebc2d,_0x1b22ca){_0x2ebc2d=_0x2ebc2d-0x0;let _0x3fd076=_0x1b22[_0x2ebc2d];return _0x3fd076;};import{ContextPlugin as _0x21211c}from'ckeditor5/src/core.js';import{CKEditorError as _0x3ea7d2}from'ckeditor5/src/utils.js';import _0x1a3052,{bindAnnotationCollections as _0x1c11bf}from'./annotationcollection.js';import _0x3f7c2f from'./annotations.js';export default class j extends _0x21211c{static get[_0x3fd0('0x13')](){return[_0x3f7c2f];}static get[_0x3fd0('0x26')](){return'AnnotationsUIs';}constructor(_0x5af88f){super(_0x5af88f),this[_0x3fd0('0x1a')]=new Set(),this[_0x3fd0('0x27')]=new Map(),this['_uisData']=new Map();}[_0x3fd0('0x15')](){const _0x3663c9=this['context']['plugins']['get'](_0x3f7c2f);this[_0x3fd0('0x9')](_0x3663c9,'_activateAnnotation',(_0x3b1ee7,_0x10aa7d)=>{for(const _0x4bab35 of this[_0x3fd0('0x1a')]){const _0x1cd0e4=this[_0x3fd0('0x27')][_0x3fd0('0x20')](_0x4bab35);(0x0,this[_0x3fd0('0x18')]['get'](_0x4bab35)[_0x3fd0('0x19')])(_0x10aa7d)&&_0x1cd0e4[_0x3fd0('0x8')](_0x10aa7d);}}),this[_0x3fd0('0x9')](_0x3663c9,_0x3fd0('0x2a'),()=>{for(const _0x4177ca of this[_0x3fd0('0x1a')]){this[_0x3fd0('0x27')][_0x3fd0('0x20')](_0x4177ca)[_0x3fd0('0x8')](null);}}),this[_0x3fd0('0x9')](_0x3663c9[_0x3fd0('0xf')],_0x3fd0('0x1'),(_0x3b3320,_0x4875a4)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4875a4);});}['hasActive'](){return this[_0x3fd0('0x1a')][_0x3fd0('0x24')]>0x0;}[_0x3fd0('0x29')](_0x559b4f){return this[_0x3fd0('0x1a')][_0x3fd0('0xd')](_0x559b4f);}['activate'](_0x374dae,_0x5c7868=()=>!0x0){const _0x179633=this[_0x3fd0('0x6')][_0x3fd0('0x22')][_0x3fd0('0x20')](_0x3f7c2f);if(!this[_0x3fd0('0x27')][_0x3fd0('0xd')](_0x374dae))throw new _0x3ea7d2('annotationsuis-missing-ui',this,{'uiName':_0x374dae});this['isActive'](_0x374dae)&&this['deactivate'](_0x374dae),this['activeUIs'][_0x3fd0('0x1')](_0x374dae);const _0x3b0a02=new _0x1a3052(),_0x5221e0=_0x179633['_visibleAnnotations'];_0x1c11bf({'source':_0x5221e0,'target':_0x3b0a02,'filter':_0x5c7868}),this[_0x3fd0('0x18')][_0x3fd0('0x7')](_0x374dae,{'collection':_0x3b0a02,'filter':_0x5c7868});const _0x4f006c=this[_0x3fd0('0x27')][_0x3fd0('0x20')](_0x374dae);_0x4f006c[_0x3fd0('0x21')](_0x3b0a02),this[_0x3fd0('0x9')](_0x4f006c,'change:activeAnnotation',(_0x282a8f,_0x5cca04,_0x213788,_0x16f9b3)=>{_0x16f9b3&&_0x179633[_0x3fd0('0xe')](_0x16f9b3),_0x213788&&_0x179633[_0x3fd0('0x0')](_0x213788);});}[_0x3fd0('0x28')](_0x2c47ee){if(this['activeUIs'][_0x3fd0('0xb')](_0x2c47ee),!this[_0x3fd0('0x27')][_0x3fd0('0xd')](_0x2c47ee))throw new _0x3ea7d2(_0x3fd0('0x14'),this,{'uiName':_0x2c47ee});const _0x28340c=this['_uis'][_0x3fd0('0x20')](_0x2c47ee);_0x28340c['detach'](),this[_0x3fd0('0x5')](_0x28340c),this['_uisData'][_0x3fd0('0x20')](_0x2c47ee)[_0x3fd0('0x1b')][_0x3fd0('0x10')](),this[_0x3fd0('0x18')][_0x3fd0('0xb')](_0x2c47ee);}[_0x3fd0('0x1d')](_0xc6840c){if(!this[_0x3fd0('0x27')][_0x3fd0('0xd')](_0xc6840c))throw new _0x3ea7d2(_0x3fd0('0x14'),this,{'uiName':_0xc6840c});const _0x3866b0=this[_0x3fd0('0x6')]['plugins'][_0x3fd0('0x20')](_0x3f7c2f),_0xf3a352=Array[_0x3fd0('0x2')](_0x3866b0[_0x3fd0('0x23')])[0x0]||null;this[_0x3fd0('0xc')](),this[_0x3fd0('0x3')](_0xc6840c);const _0x247e2c=this[_0x3fd0('0x27')]['get'](_0xc6840c);_0x247e2c[_0x3fd0('0x8')](_0xf3a352),_0x247e2c[_0x3fd0('0x1f')]&&_0xf3a352&&_0x247e2c[_0x3fd0('0x1f')]([_0xf3a352]);}[_0x3fd0('0xc')](){for(const _0x39ece4 of this[_0x3fd0('0x1a')])this[_0x3fd0('0x28')](_0x39ece4);}[_0x3fd0('0x16')](_0x20cb7a,_0x2a5bde){if(this[_0x3fd0('0x27')]['has'](_0x20cb7a))throw new _0x3ea7d2('annotationsuis-register-already-registered');if(_0x3fd0('0x12')!=typeof _0x2a5bde[_0x3fd0('0x21')]||_0x3fd0('0x12')!=typeof _0x2a5bde[_0x3fd0('0x1c')]||_0x3fd0('0x12')!=typeof _0x2a5bde[_0x3fd0('0x8')])throw new _0x3ea7d2('annotationsuis-register-invalid-interface',null);this[_0x3fd0('0x27')][_0x3fd0('0x7')](_0x20cb7a,_0x2a5bde);}['refilterAnnotations'](){const _0x26df2f=this[_0x3fd0('0x6')][_0x3fd0('0x22')][_0x3fd0('0x20')](_0x3f7c2f)['collection'],_0x5164ca=new Map(),_0x343376=Array[_0x3fd0('0x2')](this[_0x3fd0('0x1a')]);for(const _0x524eb7 of this[_0x3fd0('0x1a')]){const _0x34277f=this[_0x3fd0('0x18')][_0x3fd0('0x20')](_0x524eb7)['collection'];for(const _0x111c23 of _0x34277f)_0x5164ca[_0x3fd0('0x7')](_0x111c23,_0x524eb7);}for(const _0x1a5f69 of _0x26df2f){const _0x18b7e8=_0x5164ca[_0x3fd0('0x20')](_0x1a5f69);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1a5f69);const _0x107b49=_0x343376[_0x3fd0('0x11')](_0x3d37e6=>this[_0x3fd0('0x18')][_0x3fd0('0x20')](_0x3d37e6)[_0x3fd0('0x19')](_0x1a5f69));_0x18b7e8!==_0x107b49&&(_0x18b7e8&&this[_0x3fd0('0x18')][_0x3fd0('0x20')](_0x18b7e8)[_0x3fd0('0x1b')]['remove'](_0x1a5f69),_0x107b49&&this[_0x3fd0('0x18')]['get'](_0x107b49)['collection'][_0x3fd0('0x1')](_0x1a5f69));}}['destroy'](){this[_0x3fd0('0xc')](),super['destroy']();}[_0x3fd0('0x1e')](_0x3b479a){const _0x1213ed=[];for(const _0x59591a of this[_0x3fd0('0x1a')]){(0x0,this['_uisData']['get'](_0x59591a)[_0x3fd0('0x19')])(_0x3b479a)&&_0x1213ed[_0x3fd0('0x25')](_0x59591a);}if(_0x1213ed[_0x3fd0('0xa')]>0x1)throw new _0x3ea7d2(_0x3fd0('0x4'),null,{'matchedUIs':_0x1213ed,'annotationType':_0x3b479a[_0x3fd0('0x17')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ba3=['isCollapsed','fire','from','EditorAnnotations','plugins','delete','containsRange','registerAnnotation','_editorAnnotations','blur','cancel','pluginName','refresh','hasDomSelection','selection','add','listenTo','getRanges','view','sort','remove','document','_editorAnnotationsData','editing','push','refreshSelectedViews','editorannotations-invalid-source-callback','annotation','editor','requires','has','getByInnerView','addSourceCollector','_dataCollectors','focusTracker','get','init','directChange','range','update','change:isFocused'];(function(_0x32900e,_0x4ba3cd){const _0x1be4a3=function(_0x3eccc7){while(--_0x3eccc7){_0x32900e['push'](_0x32900e['shift']());}};_0x1be4a3(++_0x4ba3cd);}(_0x4ba3,0x138));const _0x1be4=function(_0x32900e,_0x4ba3cd){_0x32900e=_0x32900e-0x0;let _0x1be4a3=_0x4ba3[_0x32900e];return _0x1be4a3;};import{Plugin as _0x4da9de}from'ckeditor5/src/core.js';import{CKEditorError as _0x449b45}from'ckeditor5/src/utils.js';import{debounce as _0x49e976}from'lodash-es';import _0x27ba47 from'./annotations.js';export default class k extends _0x4da9de{static get[_0x1be4('0x4')](){return[_0x27ba47];}static get[_0x1be4('0x1b')](){return _0x1be4('0x13');}constructor(_0x361d38){super(_0x361d38),this[_0x1be4('0x8')]=new Set(),this[_0x1be4('0x18')]=new Set();}[_0x1be4('0xb')](){const _0x26c49e=this[_0x1be4('0x3')],_0x2c3420=_0x26c49e['model'][_0x1be4('0x25')][_0x1be4('0x1e')],_0x48a474=_0x49e976(()=>this['refreshSelectedViews'](),0xa);_0x2c3420['on']('change:range',(_0x3fd8c7,_0x2a559e)=>{_0x2a559e[_0x1be4('0xc')]&&(_0x48a474[_0x1be4('0x1a')](),this[_0x1be4('0x0')]());}),this[_0x1be4('0x20')](_0x26c49e[_0x1be4('0x27')][_0x1be4('0x22')][_0x1be4('0x25')],'change:isFocused',(_0x9659fb,_0x3c5e23,_0x146265)=>{_0x146265&&_0x48a474();}),this[_0x1be4('0x20')](_0x26c49e['ui'][_0x1be4('0x9')],_0x1be4('0xf'),(_0x561fa1,_0x169ce3,_0x385dfa)=>{_0x385dfa||_0x26c49e['isReadOnly']||this['fire'](_0x1be4('0x19'),{'isAnnotationTracked':_0x29f736=>this[_0x1be4('0x26')][_0x1be4('0x5')](_0x29f736['innerView'])});}),this[_0x1be4('0x20')](this[_0x1be4('0x3')]['ui'],_0x1be4('0xe'),()=>this['fire']('uiUpdate'));}[_0x1be4('0x17')](_0x2d45d5){if(this['_editorAnnotations'][_0x1be4('0x5')](_0x2d45d5['view']))return;this[_0x1be4('0x18')][_0x1be4('0x1f')](_0x2d45d5[_0x1be4('0x22')]),this[_0x1be4('0x3')]['ui']['focusTracker']['add'](_0x2d45d5[_0x1be4('0x22')]['element']);const _0x3de088=this['editor'][_0x1be4('0x14')][_0x1be4('0xa')](_0x27ba47);this[_0x1be4('0x20')](_0x3de088['collection'],_0x1be4('0x24'),(_0x2d7395,_0x153cd4)=>{this[_0x1be4('0x3')]['ui']['focusTracker'][_0x1be4('0x24')](_0x153cd4[_0x1be4('0x22')]['element']),this[_0x1be4('0x18')][_0x1be4('0x15')](_0x153cd4['view']);});}[_0x1be4('0x1d')](){return this['editor'][_0x1be4('0x27')][_0x1be4('0x22')][_0x1be4('0x1d')];}[_0x1be4('0x7')](_0x433f70){if('function'!=typeof _0x433f70)throw new _0x449b45(_0x1be4('0x1'));this[_0x1be4('0x8')]['add'](_0x433f70);}[_0x1be4('0x0')](){this[_0x1be4('0x11')](_0x1be4('0x1c'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x32cc7b,annotations:_0x5c0d5a}){const _0x2aeea6=[],_0x35a6ec=this[_0x1be4('0x3')]['model'][_0x1be4('0x25')][_0x1be4('0x1e')],_0x5d20bb=Array[_0x1be4('0x12')](_0x35a6ec[_0x1be4('0x21')]());for(const [_0x3ac5be,_0x313976]of this['_editorAnnotationsData']){const _0x4fb79d=_0x58951a(_0x313976),_0x17b5eb=_0x5c0d5a[_0x1be4('0x6')](_0x3ac5be);_0x4fb79d&&_0x17b5eb&&_0x2aeea6[_0x1be4('0x28')]({'annotation':_0x17b5eb,'range':_0x4fb79d});}function _0x58951a(_0x51598b){for(const _0x50b2cb of _0x51598b)for(const _0x2f2ad5 of _0x5d20bb)if(_0x50b2cb['containsRange'](_0x2f2ad5,!_0x35a6ec[_0x1be4('0x10')]))return _0x50b2cb;return null;}return _0x2aeea6[_0x1be4('0x23')]((_0x396ca2,_0x121438)=>{const _0x5ab615=_0x396ca2[_0x1be4('0xd')],_0x20539d=_0x121438['range'];if(!_0x5ab615['isEqual'](_0x20539d)){if(_0x5ab615[_0x1be4('0x16')](_0x20539d,!0x0))return 0x1;if(_0x20539d['containsRange'](_0x5ab615,!0x0))return-0x1;}return _0x396ca2[_0x1be4('0x2')]==_0x32cc7b?-0x1:_0x121438[_0x1be4('0x2')]==_0x32cc7b?0x1:0x0;})['map'](_0x412f1f=>_0x412f1f[_0x1be4('0x2')]);}get[_0x1be4('0x26')](){const _0x3f623f=new Map();for(const _0x138fae of Array[_0x1be4('0x12')](this[_0x1be4('0x8')]))for(const [_0x2f586f,_0x468e49]of _0x138fae())_0x3f623f['set'](_0x2f586f,_0x468e49);return _0x3f623f;}}
23
+ const _0x3c6c=['push','has','collection','editor','getRanges','delete','update','view','isEqual','annotation','editing','sort','_editorAnnotations','model','remove','range','add','function','selection','isCollapsed','hasDomSelection','_dataCollectors','fire','set','requires','focusTracker','blur','pluginName','refreshSelectedViews','innerView','plugins','document','EditorAnnotations','from','_editorAnnotationsData','editorannotations-invalid-source-callback','listenTo','uiUpdate','addSourceCollector','getByInnerView','element','containsRange','isReadOnly','change:range','change:isFocused','refresh'];(function(_0x5d33f4,_0x3c6c11){const _0x4944b6=function(_0x3ee9ca){while(--_0x3ee9ca){_0x5d33f4['push'](_0x5d33f4['shift']());}};_0x4944b6(++_0x3c6c11);}(_0x3c6c,0x1eb));const _0x4944=function(_0x5d33f4,_0x3c6c11){_0x5d33f4=_0x5d33f4-0x0;let _0x4944b6=_0x3c6c[_0x5d33f4];return _0x4944b6;};import{Plugin as _0x2cc269}from'ckeditor5/src/core.js';import{CKEditorError as _0x3e09e1}from'ckeditor5/src/utils.js';import{debounce as _0x13dbe5}from'lodash-es';import _0x2763ea from'./annotations.js';export default class k extends _0x2cc269{static get[_0x4944('0x27')](){return[_0x2763ea];}static get[_0x4944('0x2a')](){return _0x4944('0x1');}constructor(_0x3b411d){super(_0x3b411d),this['_dataCollectors']=new Set(),this[_0x4944('0x1b')]=new Set();}['init'](){const _0x4d74c3=this[_0x4944('0x12')],_0xf16369=_0x4d74c3[_0x4944('0x1c')]['document'][_0x4944('0x21')],_0xb7209f=_0x13dbe5(()=>this[_0x4944('0x2b')](),0xa);_0xf16369['on'](_0x4944('0xc'),(_0x45558e,_0x5136e4)=>{_0x5136e4['directChange']&&(_0xb7209f['cancel'](),this[_0x4944('0x2b')]());}),this[_0x4944('0x5')](_0x4d74c3[_0x4944('0x19')][_0x4944('0x16')][_0x4944('0x0')],_0x4944('0xd'),(_0x4a9177,_0x5839a7,_0x3f0a55)=>{_0x3f0a55&&_0xb7209f();}),this[_0x4944('0x5')](_0x4d74c3['ui'][_0x4944('0x28')],_0x4944('0xd'),(_0x46a959,_0x3bdd60,_0x847ad)=>{_0x847ad||_0x4d74c3[_0x4944('0xb')]||this[_0x4944('0x25')](_0x4944('0x29'),{'isAnnotationTracked':_0x397c81=>this[_0x4944('0x3')][_0x4944('0x10')](_0x397c81[_0x4944('0x2c')])});}),this['listenTo'](this['editor']['ui'],_0x4944('0x15'),()=>this['fire'](_0x4944('0x6')));}['registerAnnotation'](_0x584297){if(this[_0x4944('0x1b')][_0x4944('0x10')](_0x584297[_0x4944('0x16')]))return;this['_editorAnnotations'][_0x4944('0x1f')](_0x584297[_0x4944('0x16')]),this['editor']['ui'][_0x4944('0x28')]['add'](_0x584297['view'][_0x4944('0x9')]);const _0xf98420=this[_0x4944('0x12')][_0x4944('0x2d')]['get'](_0x2763ea);this['listenTo'](_0xf98420[_0x4944('0x11')],_0x4944('0x1d'),(_0x20d0ed,_0xa918dc)=>{this['editor']['ui'][_0x4944('0x28')][_0x4944('0x1d')](_0xa918dc[_0x4944('0x16')]['element']),this[_0x4944('0x1b')][_0x4944('0x14')](_0xa918dc['view']);});}[_0x4944('0x23')](){return this[_0x4944('0x12')][_0x4944('0x19')][_0x4944('0x16')]['hasDomSelection'];}[_0x4944('0x7')](_0x11c0e4){if(_0x4944('0x20')!=typeof _0x11c0e4)throw new _0x3e09e1(_0x4944('0x4'));this['_dataCollectors'][_0x4944('0x1f')](_0x11c0e4);}[_0x4944('0x2b')](){this[_0x4944('0x25')](_0x4944('0xe'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x46c563,annotations:_0x4d2a02}){const _0x5ed3d4=[],_0x3efd33=this[_0x4944('0x12')][_0x4944('0x1c')][_0x4944('0x0')][_0x4944('0x21')],_0x23f8d0=Array[_0x4944('0x2')](_0x3efd33[_0x4944('0x13')]());for(const [_0x3756e5,_0x5823f5]of this[_0x4944('0x3')]){const _0xc45848=_0x2d27a0(_0x5823f5),_0x12cf32=_0x4d2a02[_0x4944('0x8')](_0x3756e5);_0xc45848&&_0x12cf32&&_0x5ed3d4[_0x4944('0xf')]({'annotation':_0x12cf32,'range':_0xc45848});}function _0x2d27a0(_0x437974){for(const _0x3ba663 of _0x437974)for(const _0x84f48c of _0x23f8d0)if(_0x3ba663[_0x4944('0xa')](_0x84f48c,!_0x3efd33[_0x4944('0x22')]))return _0x3ba663;return null;}return _0x5ed3d4[_0x4944('0x1a')]((_0x2cdaeb,_0x5b64be)=>{const _0x190cb8=_0x2cdaeb[_0x4944('0x1e')],_0x39cf7d=_0x5b64be[_0x4944('0x1e')];if(!_0x190cb8[_0x4944('0x17')](_0x39cf7d)){if(_0x190cb8[_0x4944('0xa')](_0x39cf7d,!0x0))return 0x1;if(_0x39cf7d[_0x4944('0xa')](_0x190cb8,!0x0))return-0x1;}return _0x2cdaeb[_0x4944('0x18')]==_0x46c563?-0x1:_0x5b64be[_0x4944('0x18')]==_0x46c563?0x1:0x0;})['map'](_0x4c4bfa=>_0x4c4bfa[_0x4944('0x18')]);}get[_0x4944('0x3')](){const _0x5ded04=new Map();for(const _0x3a2037 of Array[_0x4944('0x2')](this[_0x4944('0x24')]))for(const [_0x359ca4,_0x5eecf6]of _0x3a2037())_0x5ded04[_0x4944('0x26')](_0x359ca4,_0x5eecf6);return _0x5ded04;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4838=['selection','blur','_selectedAnnotations','annotations','includes','pluginName','fromRect','_getBalloonTargetForAnnotation','attach','isActive','_addedAnnotations','showStack','requires','hasActive','top','refresh','register','setActiveAnnotation','getBoundingClientRect','length','_setSelectedAnnotations','add','map','inlineannotations-attach-already-attached','set','width','find','_removeAnnotationFromBalloon','change:visibleView','has','target','change:height','view','viewRangeToDom','_manuallyClosed','InlineAnnotations','clear','getByView','inline','delete','getFirstRange','editing','push','plugins','left','hasView','from','_balloon','keystrokes','domConverter','isAttached','updatePosition','addObserver','focus','bottom','_addAnnotationToBalloon','listenTo','stopListening','destroy','inlineannotations-not-allowed-with-context','visibleView','focusTracker','right','collapse','remove','detach','_closeAnnotation','_forceRefresh','isFocused','init','document','context','Esc','editableElement','update','get','editor','getOrderedSelectedAnnotations','activeAnnotation'];(function(_0x57651a,_0x48389c){const _0x2c25ce=function(_0x2eff82){while(--_0x2eff82){_0x57651a['push'](_0x57651a['shift']());}};_0x2c25ce(++_0x48389c);}(_0x4838,0x1d3));const _0x2c25=function(_0x57651a,_0x48389c){_0x57651a=_0x57651a-0x0;let _0x2c25ce=_0x4838[_0x57651a];return _0x2c25ce;};import{Plugin as _0x4a587e}from'ckeditor5/src/core.js';import _0x331d55 from'./annotationsuis.js';import _0x20ebac from'./editorannotations.js';import{ContextualBalloon as _0x39987f}from'ckeditor5/src/ui.js';import{MouseObserver as _0x36d77a}from'ckeditor5/src/engine.js';import{CKEditorError as _0x4de758,Rect as _0x5c7737}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x4a587e{static get[_0x2c25('0x13')](){return[_0x20ebac,_0x39987f,_0x331d55];}static get[_0x2c25('0xc')](){return _0x2c25('0x2a');}constructor(_0x2b16f7){super(_0x2b16f7),_0x2b16f7[_0x2c25('0x30')][_0x2c25('0x27')][_0x2c25('0x3b')](_0x36d77a),this[_0x2c25('0x39')]=!0x1,this[_0x2c25('0x1f')](_0x2c25('0x6'),null),this[_0x2c25('0xa')]=null,this['_manuallyClosed']=new Set(),this[_0x2c25('0x36')]=_0x2b16f7[_0x2c25('0x32')][_0x2c25('0x3')](_0x39987f),this[_0x2c25('0x11')]=new Set(),this[_0x2c25('0x9')]=[],this[_0x2c25('0x4a')]=!0x1;}[_0x2c25('0x4c')](){const _0x4b538e=this[_0x2c25('0x4')]['plugins'][_0x2c25('0x3')](_0x331d55);_0x4b538e[_0x2c25('0x4e')]===this[_0x2c25('0x4')]&&(_0x4b538e[_0x2c25('0x17')](_0x2c25('0x2d'),this),this['editor'][_0x2c25('0x37')][_0x2c25('0x1f')](_0x2c25('0x0'),(_0x3e9a8c,_0x36d7ee)=>{const _0x539b18=this[_0x2c25('0x36')];if(this[_0x2c25('0x39')]&&_0x539b18[_0x2c25('0x43')]){const _0x5da930=this['annotations']['getByView'](_0x539b18['visibleView']);_0x5da930&&this['_closeAnnotation'](_0x5da930),_0x36d7ee();}}));}['afterInit'](){const _0x394296=this['editor']['plugins'][_0x2c25('0x3')](_0x331d55);_0x394296['context']===this[_0x2c25('0x4')]&&(_0x394296[_0x2c25('0x14')]()||_0x394296['switchTo'](_0x2c25('0x2d')));}[_0x2c25('0x18')](_0x1d49d3){_0x1d49d3!==this[_0x2c25('0x6')]&&(this[_0x2c25('0x6')]&&(this['activeAnnotation'][_0x2c25('0x10')]=!0x1),_0x1d49d3&&this[_0x2c25('0x4')]['ui']['focusTracker'][_0x2c25('0x4b')]&&(this[_0x2c25('0xa')][_0x2c25('0x24')](_0x1d49d3)&&this[_0x2c25('0x3e')](_0x1d49d3,!0x0),_0x1d49d3[_0x2c25('0x10')]=!0x0),_0x1d49d3||this[_0x2c25('0x1b')]([]),this['activeAnnotation']=_0x1d49d3);}[_0x2c25('0xf')](_0x2a711b){this['annotations']=_0x2a711b;const _0x1fa9d1=this[_0x2c25('0x4')][_0x2c25('0x32')][_0x2c25('0x3')](_0x331d55),_0x37edeb=this['_balloon'];if(this[_0x2c25('0x39')])throw new _0x4de758(_0x2c25('0x1e'),this);if(_0x1fa9d1['context']!==this[_0x2c25('0x4')])throw new _0x4de758(_0x2c25('0x42'),this);const _0x5d0076=this[_0x2c25('0x4')]['plugins'][_0x2c25('0x3')](_0x20ebac);this[_0x2c25('0x3f')](_0x5d0076,_0x2c25('0x16'),()=>{const _0x5a2305=_0x5d0076[_0x2c25('0x5')]({'annotations':this[_0x2c25('0xa')],'activeAnnotation':this[_0x2c25('0x6')]});var _0xc3e87a,_0x51e483;!this[_0x2c25('0x4a')]&&(_0xc3e87a=_0x5a2305,_0x51e483=this[_0x2c25('0x9')],_0xc3e87a[_0x2c25('0x1a')]===_0x51e483[_0x2c25('0x1a')]&&_0xc3e87a['every'](_0x32c6ec=>_0x51e483[_0x2c25('0xb')](_0x32c6ec)))||(this[_0x2c25('0x4a')]=!0x1,this[_0x2c25('0x1b')](_0x5a2305),this[_0x2c25('0x18')](_0x5a2305[0x0]||null));}),this[_0x2c25('0x3f')](_0x5d0076,_0x2c25('0x8'),(_0x2ea56d,{isAnnotationTracked:_0x1849cd})=>{this['activeAnnotation']&&_0x1849cd(this[_0x2c25('0x6')])&&(this[_0x2c25('0x1b')]([]),this[_0x2c25('0x18')](null));}),this[_0x2c25('0x3f')](this['editor']['ui']['focusTracker'],'change:isFocused',(_0xb57fe3,_0xa64392,_0x494034)=>{_0x494034||this['setActiveAnnotation'](null);}),this['listenTo'](_0x2a711b,_0x2c25('0x47'),(_0x15783c,_0x19a788)=>{this[_0x2c25('0x22')](_0x19a788),_0x19a788===this[_0x2c25('0x6')]&&this[_0x2c25('0x18')](null);}),this[_0x2c25('0x3f')](_0x37edeb,_0x2c25('0x23'),(_0x47b7dc,_0x163309,_0x141b8f,_0x231024)=>{_0x231024&&this[_0x2c25('0x40')](_0x231024);const _0x420997=_0x2a711b[_0x2c25('0x2c')](_0x141b8f);_0x141b8f&&_0x420997&&(this[_0x2c25('0x3f')](_0x141b8f,_0x2c25('0x26'),()=>{_0x37edeb['updatePosition']();}),this[_0x2c25('0x3f')](_0x141b8f,_0x2c25('0x0'),()=>{this[_0x2c25('0x49')](_0x420997),this['editor'][_0x2c25('0x30')][_0x2c25('0x27')][_0x2c25('0x3c')]();}),this[_0x2c25('0x6')]!==_0x420997&&this[_0x2c25('0x18')](_0x420997));}),this[_0x2c25('0x3f')](this[_0x2c25('0x4')]['ui'],_0x2c25('0x2'),()=>{_0x37edeb['visibleView']&&(_0x2a711b[_0x2c25('0x2c')](_0x37edeb[_0x2c25('0x43')])&&_0x37edeb[_0x2c25('0x3a')]());}),this[_0x2c25('0x3f')](this[_0x2c25('0x4')][_0x2c25('0x30')][_0x2c25('0x27')]['document'],'mousedown',()=>{this[_0x2c25('0x4a')]=!0x0,this[_0x2c25('0x29')][_0x2c25('0x2b')]();}),this[_0x2c25('0x4')][_0x2c25('0x30')][_0x2c25('0x27')]['document']['selection'][_0x2c25('0x1')]&&this[_0x2c25('0x4')][_0x2c25('0x30')][_0x2c25('0x27')][_0x2c25('0x3c')](),this[_0x2c25('0x39')]=!0x0;}[_0x2c25('0x48')](){if(!this['isAttached'])throw new _0x4de758('inlineannotations-detach-not-attached',this);this[_0x2c25('0x18')](null);for(const _0x3b4e99 of this[_0x2c25('0x11')])this[_0x2c25('0x22')](_0x3b4e99);this[_0x2c25('0x40')](),this['isAttached']=!0x1,this['annotations']=null;}[_0x2c25('0x41')](){this[_0x2c25('0x39')]&&this[_0x2c25('0x48')]();}[_0x2c25('0x1b')](_0x1da941){for(const _0x219497 of this[_0x2c25('0x9')])_0x1da941[_0x2c25('0xb')](_0x219497)||this[_0x2c25('0x29')][_0x2c25('0x2e')](_0x219497);for(const _0x431dfc of this[_0x2c25('0xa')])_0x1da941[_0x2c25('0xb')](_0x431dfc)||this[_0x2c25('0x22')](_0x431dfc);if(this[_0x2c25('0x4')]['ui'][_0x2c25('0x44')]['isFocused'])for(const _0x3e811f of _0x1da941)this[_0x2c25('0x3e')](_0x3e811f);this['_selectedAnnotations']=_0x1da941;}[_0x2c25('0x3e')](_0x58de8e,_0xd859c5=!0x1){this[_0x2c25('0x29')][_0x2c25('0x24')](_0x58de8e)||(this[_0x2c25('0x11')][_0x2c25('0x24')](_0x58de8e)||this['_balloon'][_0x2c25('0x34')](_0x58de8e[_0x2c25('0x27')])||(this[_0x2c25('0x11')][_0x2c25('0x1c')](_0x58de8e),this['_balloon'][_0x2c25('0x1c')]({'stackId':_0x58de8e['view']['id'],'view':_0x58de8e[_0x2c25('0x27')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x58de8e)}})),_0xd859c5&&this[_0x2c25('0x36')][_0x2c25('0x12')](_0x58de8e[_0x2c25('0x27')]['id']));}[_0x2c25('0xe')](_0x3371e7){const _0x1c581a=_0x3371e7[_0x2c25('0x25')],_0x2a4c27=this[_0x2c25('0x4')][_0x2c25('0x30')][_0x2c25('0x27')],_0x167d4a=_0x2a4c27[_0x2c25('0x4d')][_0x2c25('0x7')][_0x2c25('0x2f')](),_0xd6edc8=_0x2a4c27[_0x2c25('0x38')][_0x2c25('0x28')](_0x167d4a);if(_0xd6edc8[_0x2c25('0x46')](!0x0),_0x1c581a){if(_0x1c581a instanceof _0x5c7737)return _0x1c581a;let _0x3c706b=[];for(const _0x26df6c of _0x1c581a)_0x3c706b[_0x2c25('0x31')](...(_0x19a41f=_0x26df6c['getClientRects'](),Array[_0x2c25('0x35')](_0x19a41f)[_0x2c25('0x1d')](DOMRect[_0x2c25('0xd')])));_0x3c706b=function(_0x52bcee){const _0x2447f0=[];let _0x3b8f4f=_0x52bcee[0x0];for(let _0x9345bf=0x1;_0x9345bf<_0x52bcee[_0x2c25('0x1a')];_0x9345bf++)F(_0x3b8f4f,_0x52bcee[_0x9345bf])?_0x3b8f4f['width']+=_0x52bcee[_0x9345bf][_0x2c25('0x20')]:(_0x2447f0[_0x2c25('0x31')](_0x3b8f4f),_0x3b8f4f=_0x52bcee[_0x9345bf]);return _0x2447f0[_0x2c25('0x31')](_0x3b8f4f),_0x2447f0;}(_0x3c706b);const _0x458e6f=_0xd6edc8[_0x2c25('0x19')]();return _0x3c706b[_0x2c25('0x21')](_0xc33915=>_0xc33915[_0x2c25('0x15')]<=_0x458e6f[_0x2c25('0x15')]&&_0xc33915[_0x2c25('0x3d')]>=_0x458e6f[_0x2c25('0x3d')]&&_0xc33915[_0x2c25('0x33')]<=_0x458e6f[_0x2c25('0x33')]&&_0xc33915[_0x2c25('0x45')]>=_0x458e6f[_0x2c25('0x45')])||_0x3c706b[0x0];}var _0x19a41f;return _0x3371e7['targetRect']||_0xd6edc8;}['_removeAnnotationFromBalloon'](_0x1362db){this[_0x2c25('0x11')][_0x2c25('0x24')](_0x1362db)&&this[_0x2c25('0x36')][_0x2c25('0x34')](_0x1362db['view'])&&(this[_0x2c25('0x11')]['delete'](_0x1362db),this[_0x2c25('0x36')][_0x2c25('0x47')](_0x1362db[_0x2c25('0x27')]));}['_closeAnnotation'](_0x276d7d){this['_manuallyClosed'][_0x2c25('0x1c')](_0x276d7d),this[_0x2c25('0x22')](_0x276d7d);}}function F(_0x3bfb08,_0x341676){return _0x3bfb08[_0x2c25('0x15')]===_0x341676[_0x2c25('0x15')]&&_0x3bfb08[_0x2c25('0x3d')]===_0x341676['bottom']&&_0x3bfb08[_0x2c25('0x45')]===_0x341676['left'];}
23
+ const _0x568a=['context','detach','attach','selection','push','getBoundingClientRect','hasView','switchTo','fromRect','addObserver','_getBalloonTargetForAnnotation','length','update','destroy','updatePosition','inlineannotations-detach-not-attached','plugins','_addAnnotationToBalloon','getOrderedSelectedAnnotations','_removeAnnotationFromBalloon','_closeAnnotation','register','focus','change:isFocused','hasActive','top','width','remove','collapse','get','showStack','has','add','InlineAnnotations','_manuallyClosed','activeAnnotation','_selectedAnnotations','isFocused','refresh','left','afterInit','_forceRefresh','target','view','includes','getByView','getClientRects','change:height','pluginName','focusTracker','requires','_setSelectedAnnotations','targetRect','clear','editing','find','listenTo','inlineannotations-attach-already-attached','stopListening','isAttached','blur','init','inline','isActive','delete','bottom','domConverter','editor','right','setActiveAnnotation','visibleView','getFirstRange','set','document','annotations','Esc','_balloon','_addedAnnotations','from'];(function(_0x18eeb7,_0x568a1d){const _0x262b07=function(_0x522d0f){while(--_0x522d0f){_0x18eeb7['push'](_0x18eeb7['shift']());}};_0x262b07(++_0x568a1d);}(_0x568a,0xcc));const _0x262b=function(_0x18eeb7,_0x568a1d){_0x18eeb7=_0x18eeb7-0x0;let _0x262b07=_0x568a[_0x18eeb7];return _0x262b07;};import{Plugin as _0x59bc55}from'ckeditor5/src/core.js';import _0x5039bb from'./annotationsuis.js';import _0x2719a5 from'./editorannotations.js';import{ContextualBalloon as _0x1fbdf0}from'ckeditor5/src/ui.js';import{MouseObserver as _0x23bdd8}from'ckeditor5/src/engine.js';import{CKEditorError as _0x3b85d3,Rect as _0x49f37b}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x59bc55{static get[_0x262b('0x4')](){return[_0x2719a5,_0x1fbdf0,_0x5039bb];}static get[_0x262b('0x2')](){return _0x262b('0x42');}constructor(_0x2c7df8){super(_0x2c7df8),_0x2c7df8['editing'][_0x262b('0x4c')][_0x262b('0x2a')](_0x23bdd8),this[_0x262b('0xd')]=!0x1,this[_0x262b('0x1a')](_0x262b('0x44'),null),this[_0x262b('0x1c')]=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x2c7df8[_0x262b('0x31')]['get'](_0x1fbdf0),this[_0x262b('0x1f')]=new Set(),this[_0x262b('0x45')]=[],this['_forceRefresh']=!0x1;}[_0x262b('0xf')](){const _0x181c0a=this['editor'][_0x262b('0x31')][_0x262b('0x3e')](_0x5039bb);_0x181c0a['context']===this[_0x262b('0x15')]&&(_0x181c0a[_0x262b('0x36')](_0x262b('0x10'),this),this[_0x262b('0x15')]['keystrokes']['set'](_0x262b('0x1d'),(_0x2e8e83,_0x59e1ad)=>{const _0x4c08a9=this[_0x262b('0x1e')];if(this[_0x262b('0xd')]&&_0x4c08a9[_0x262b('0x18')]){const _0x2d2a48=this[_0x262b('0x1c')][_0x262b('0x4e')](_0x4c08a9[_0x262b('0x18')]);_0x2d2a48&&this[_0x262b('0x35')](_0x2d2a48),_0x59e1ad();}}));}[_0x262b('0x49')](){const _0x3e47cf=this['editor'][_0x262b('0x31')][_0x262b('0x3e')](_0x5039bb);_0x3e47cf[_0x262b('0x21')]===this[_0x262b('0x15')]&&(_0x3e47cf[_0x262b('0x39')]()||_0x3e47cf[_0x262b('0x28')]('inline'));}['setActiveAnnotation'](_0x14d463){_0x14d463!==this[_0x262b('0x44')]&&(this[_0x262b('0x44')]&&(this[_0x262b('0x44')][_0x262b('0x11')]=!0x1),_0x14d463&&this[_0x262b('0x15')]['ui'][_0x262b('0x3')]['isFocused']&&(this['annotations'][_0x262b('0x40')](_0x14d463)&&this[_0x262b('0x32')](_0x14d463,!0x0),_0x14d463[_0x262b('0x11')]=!0x0),_0x14d463||this[_0x262b('0x5')]([]),this[_0x262b('0x44')]=_0x14d463);}[_0x262b('0x23')](_0x475a42){this[_0x262b('0x1c')]=_0x475a42;const _0x244b07=this[_0x262b('0x15')]['plugins'][_0x262b('0x3e')](_0x5039bb),_0x20a5be=this[_0x262b('0x1e')];if(this[_0x262b('0xd')])throw new _0x3b85d3(_0x262b('0xb'),this);if(_0x244b07['context']!==this[_0x262b('0x15')])throw new _0x3b85d3('inlineannotations-not-allowed-with-context',this);const _0x3fe3f9=this[_0x262b('0x15')][_0x262b('0x31')][_0x262b('0x3e')](_0x2719a5);this[_0x262b('0xa')](_0x3fe3f9,_0x262b('0x47'),()=>{const _0x4dfc3d=_0x3fe3f9[_0x262b('0x33')]({'annotations':this[_0x262b('0x1c')],'activeAnnotation':this['activeAnnotation']});var _0xa774ae,_0x174f9c;!this[_0x262b('0x4a')]&&(_0xa774ae=_0x4dfc3d,_0x174f9c=this['_selectedAnnotations'],_0xa774ae[_0x262b('0x2c')]===_0x174f9c[_0x262b('0x2c')]&&_0xa774ae['every'](_0x1b74ff=>_0x174f9c[_0x262b('0x4d')](_0x1b74ff)))||(this['_forceRefresh']=!0x1,this[_0x262b('0x5')](_0x4dfc3d),this[_0x262b('0x17')](_0x4dfc3d[0x0]||null));}),this['listenTo'](_0x3fe3f9,_0x262b('0xe'),(_0x9d920f,{isAnnotationTracked:_0x293b3f})=>{this[_0x262b('0x44')]&&_0x293b3f(this[_0x262b('0x44')])&&(this[_0x262b('0x5')]([]),this['setActiveAnnotation'](null));}),this[_0x262b('0xa')](this[_0x262b('0x15')]['ui'][_0x262b('0x3')],_0x262b('0x38'),(_0x34fd5c,_0x589371,_0x1b398d)=>{_0x1b398d||this['setActiveAnnotation'](null);}),this[_0x262b('0xa')](_0x475a42,_0x262b('0x3c'),(_0xb086fd,_0x3f09aa)=>{this[_0x262b('0x34')](_0x3f09aa),_0x3f09aa===this[_0x262b('0x44')]&&this[_0x262b('0x17')](null);}),this[_0x262b('0xa')](_0x20a5be,'change:visibleView',(_0x40084a,_0x2add4c,_0x174426,_0xae7405)=>{_0xae7405&&this[_0x262b('0xc')](_0xae7405);const _0x39580a=_0x475a42[_0x262b('0x4e')](_0x174426);_0x174426&&_0x39580a&&(this[_0x262b('0xa')](_0x174426,_0x262b('0x1'),()=>{_0x20a5be[_0x262b('0x2f')]();}),this[_0x262b('0xa')](_0x174426,'Esc',()=>{this[_0x262b('0x35')](_0x39580a),this[_0x262b('0x15')][_0x262b('0x8')][_0x262b('0x4c')][_0x262b('0x37')]();}),this[_0x262b('0x44')]!==_0x39580a&&this[_0x262b('0x17')](_0x39580a));}),this[_0x262b('0xa')](this[_0x262b('0x15')]['ui'],_0x262b('0x2d'),()=>{_0x20a5be[_0x262b('0x18')]&&(_0x475a42['getByView'](_0x20a5be['visibleView'])&&_0x20a5be['updatePosition']());}),this['listenTo'](this[_0x262b('0x15')][_0x262b('0x8')]['view']['document'],'mousedown',()=>{this[_0x262b('0x4a')]=!0x0,this['_manuallyClosed'][_0x262b('0x7')]();}),this[_0x262b('0x15')][_0x262b('0x8')][_0x262b('0x4c')][_0x262b('0x1b')][_0x262b('0x24')]['editableElement']&&this[_0x262b('0x15')][_0x262b('0x8')][_0x262b('0x4c')]['focus'](),this[_0x262b('0xd')]=!0x0;}[_0x262b('0x22')](){if(!this[_0x262b('0xd')])throw new _0x3b85d3(_0x262b('0x30'),this);this['setActiveAnnotation'](null);for(const _0x388d89 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x388d89);this[_0x262b('0xc')](),this[_0x262b('0xd')]=!0x1,this[_0x262b('0x1c')]=null;}[_0x262b('0x2e')](){this[_0x262b('0xd')]&&this[_0x262b('0x22')]();}[_0x262b('0x5')](_0x36002f){for(const _0x6d3cdf of this['_selectedAnnotations'])_0x36002f[_0x262b('0x4d')](_0x6d3cdf)||this[_0x262b('0x43')][_0x262b('0x12')](_0x6d3cdf);for(const _0x5a0138 of this[_0x262b('0x1c')])_0x36002f[_0x262b('0x4d')](_0x5a0138)||this[_0x262b('0x34')](_0x5a0138);if(this[_0x262b('0x15')]['ui'][_0x262b('0x3')][_0x262b('0x46')])for(const _0x4aefb0 of _0x36002f)this['_addAnnotationToBalloon'](_0x4aefb0);this[_0x262b('0x45')]=_0x36002f;}[_0x262b('0x32')](_0x3e5804,_0x5d6eba=!0x1){this[_0x262b('0x43')]['has'](_0x3e5804)||(this['_addedAnnotations'][_0x262b('0x40')](_0x3e5804)||this['_balloon'][_0x262b('0x27')](_0x3e5804[_0x262b('0x4c')])||(this[_0x262b('0x1f')][_0x262b('0x41')](_0x3e5804),this[_0x262b('0x1e')][_0x262b('0x41')]({'stackId':_0x3e5804['view']['id'],'view':_0x3e5804[_0x262b('0x4c')],'position':{'target':()=>this[_0x262b('0x2b')](_0x3e5804)}})),_0x5d6eba&&this[_0x262b('0x1e')][_0x262b('0x3f')](_0x3e5804['view']['id']));}['_getBalloonTargetForAnnotation'](_0x53bdb6){const _0x3b7428=_0x53bdb6[_0x262b('0x4b')],_0x20f175=this['editor'][_0x262b('0x8')][_0x262b('0x4c')],_0x4c9a75=_0x20f175[_0x262b('0x1b')]['selection'][_0x262b('0x19')](),_0x1a2fa2=_0x20f175[_0x262b('0x14')]['viewRangeToDom'](_0x4c9a75);if(_0x1a2fa2[_0x262b('0x3d')](!0x0),_0x3b7428){if(_0x3b7428 instanceof _0x49f37b)return _0x3b7428;let _0xef8570=[];for(const _0x516d34 of _0x3b7428)_0xef8570[_0x262b('0x25')](...(_0x182294=_0x516d34[_0x262b('0x0')](),Array[_0x262b('0x20')](_0x182294)['map'](DOMRect[_0x262b('0x29')])));_0xef8570=function(_0x38e80d){const _0x15ce73=[];let _0x1b5fe2=_0x38e80d[0x0];for(let _0x2eb8b9=0x1;_0x2eb8b9<_0x38e80d['length'];_0x2eb8b9++)F(_0x1b5fe2,_0x38e80d[_0x2eb8b9])?_0x1b5fe2[_0x262b('0x3b')]+=_0x38e80d[_0x2eb8b9][_0x262b('0x3b')]:(_0x15ce73[_0x262b('0x25')](_0x1b5fe2),_0x1b5fe2=_0x38e80d[_0x2eb8b9]);return _0x15ce73[_0x262b('0x25')](_0x1b5fe2),_0x15ce73;}(_0xef8570);const _0x17c3ca=_0x1a2fa2[_0x262b('0x26')]();return _0xef8570[_0x262b('0x9')](_0x5587d4=>_0x5587d4[_0x262b('0x3a')]<=_0x17c3ca['top']&&_0x5587d4[_0x262b('0x13')]>=_0x17c3ca['bottom']&&_0x5587d4[_0x262b('0x48')]<=_0x17c3ca[_0x262b('0x48')]&&_0x5587d4['right']>=_0x17c3ca[_0x262b('0x16')])||_0xef8570[0x0];}var _0x182294;return _0x53bdb6[_0x262b('0x6')]||_0x1a2fa2;}[_0x262b('0x34')](_0x292f17){this[_0x262b('0x1f')]['has'](_0x292f17)&&this[_0x262b('0x1e')][_0x262b('0x27')](_0x292f17[_0x262b('0x4c')])&&(this['_addedAnnotations'][_0x262b('0x12')](_0x292f17),this[_0x262b('0x1e')][_0x262b('0x3c')](_0x292f17[_0x262b('0x4c')]));}[_0x262b('0x35')](_0x271495){this[_0x262b('0x43')][_0x262b('0x41')](_0x271495),this['_removeAnnotationFromBalloon'](_0x271495);}}function F(_0x423b36,_0x21c1cb){return _0x423b36['top']===_0x21c1cb[_0x262b('0x3a')]&&_0x423b36[_0x262b('0x13')]===_0x21c1cb[_0x262b('0x13')]&&_0x423b36['right']===_0x21c1cb[_0x262b('0x48')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c08=['_showBalloon','_manuallyClosedAnnotationViews','context','getSidebarItemView','remove','getOrderedSelectedAnnotations','annotationType','southArrowNorthEast','southArrowNorthWest','resize','_integrateWithEditorAnnotations','bind','narrowsidebar-attach-already-attached','get','_setSelectedAnnotations','getByView','low','from','focus','_editorAnnotations','has','setActiveAnnotation','first','focusableElements','bodyCollection','keydown','ck-sidebar--narrow','stopListening','destroy','removeEventListener','content','_destroyEditorAnnotationsIntegration','_selectedAnnotations','_detachListeners','change:height','unpin','plugins','set','isVisible','target','editors','stopPropagation','balloonPanelView','delete','keyCode','hasDomSelection','_refreshPositioning','rearrange','create','uiUpdate','blur','preventClosingBalloon','type','_detachFromContainer','add','high','length','locale','listenTo','set:container','attachToDom','detachFromDom','init','isDirty','activeAnnotation','contains','_annotationToNarrowView','_domEmitter','EditorAnnotations','view','includes','narrowsidebar-detach-not-attached','_updateBalloonPosition','refresh','requires','northArrowSouth','_attachListeners','element','number','cancel','_hideBalloon','addAnnotation','annotations','detach','register','find','mousedown','clear','ready','attach','off','northArrowSouthEast','addEventListener','values','_attachToContainer','_refreshPositioningDebounced','northArrowSouthWest','isAttached','stop','Esc','esc','defaultPositions'];(function(_0xb3a037,_0x5c0891){const _0x49496d=function(_0x1dd92e){while(--_0x1dd92e){_0xb3a037['push'](_0xb3a037['shift']());}};_0x49496d(++_0x5c0891);}(_0x5c08,0x93));const _0x4949=function(_0xb3a037,_0x5c0891){_0xb3a037=_0xb3a037-0x0;let _0x49496d=_0x5c08[_0xb3a037];return _0x49496d;};import{ContextPlugin as _0x3317eb,Context as _0x4f3c8c}from'ckeditor5/src/core.js';import _0x902a2 from'./annotationsuis.js';import _0x59257c from'./sidebar.js';import _0x2d3f00 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x50b6bf,BodyCollection as _0xcdcab5}from'ckeditor5/src/ui.js';import{CKEditorError as _0x27940a,DomEmitterMixin as _0x812b8d,keyCodes as _0x1f7bea,Collection as _0x5285f9}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x483211}from'lodash-es';import _0x320e8c from'./editorannotations.js';export default class i extends _0x3317eb{static get[_0x4949('0x1d')](){return[_0x59257c,_0x902a2];}static get['pluginName'](){return'NarrowSidebar';}constructor(_0x547698){super(_0x547698),this[_0x4949('0x34')]=!0x1,this[_0x4949('0x3a')]=new Set(),this[_0x4949('0x16')]=Object[_0x4949('0x3')](_0x812b8d),this[_0x4949('0x15')]=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this[_0x4949('0x59')]=[],this['_editorAnnotations']=new _0x5285f9(),this[_0x4949('0x32')]=_0x483211(()=>{this[_0x4949('0x1')]();},0xfa,{'leading':!0x1});}[_0x4949('0x11')](){this['context'][_0x4949('0x5d')][_0x4949('0x46')](_0x902a2)[_0x4949('0x27')]('narrowSidebar',this),this[_0x4949('0x51')]=new _0xcdcab5(this[_0x4949('0x3b')]['locale']),this[_0x4949('0x63')]=new _0x50b6bf(this[_0x4949('0x3b')][_0x4949('0xc')]),this[_0x4949('0x51')][_0x4949('0xf')](),this[_0x4949('0x51')][_0x4949('0x9')](this[_0x4949('0x63')]);}[_0x4949('0x2c')](_0xe6e48c){this[_0x4949('0x25')]=_0xe6e48c;const _0x4c20be=this[_0x4949('0x3b')][_0x4949('0x5d')][_0x4949('0x46')](_0x59257c),_0x13621f=this[_0x4949('0x63')];if(_0x4c20be['_annotations']=_0xe6e48c,this[_0x4949('0x34')])throw new _0x27940a(_0x4949('0x45'),this);this['isAttached']=!0x0,this[_0x4949('0xd')](_0x4c20be,_0x4949('0xe'),()=>{this[_0x4949('0x26')](),this[_0x4949('0xd')](_0x4c20be,'change:container',_0x38e8c5=>{_0x38e8c5[_0x4949('0x2d')](),this[_0x4949('0x2c')](_0xe6e48c);});}),_0x4c20be[_0x4949('0x31')]({'viewClass':_0x4949('0x53'),'spaceBetweenItems':0x5});const _0x1015c1=_0x8f3419=>{const _0x3999a6=new _0x2d3f00(this[_0x4949('0x3b')][_0x4949('0xc')]);_0x4c20be[_0x4949('0x24')](_0x8f3419,_0x3999a6),this[_0x4949('0x15')][_0x4949('0x5e')](_0x8f3419,_0x3999a6),_0x3999a6[_0x4949('0x44')](_0x4949('0x12'),_0x4949('0x3f'),_0x4949('0x21'))['to'](_0x8f3419[_0x4949('0x18')],_0x4949('0x12'),_0x4949('0x7'),_0x4949('0xb')),_0x3999a6['on']('execute',()=>{this[_0x4949('0x3a')]['clear'](),_0x13621f[_0x4949('0x57')][_0x4949('0x4f')]!==_0x8f3419[_0x4949('0x18')]?(this[_0x4949('0x39')](_0x8f3419),_0x8f3419[_0x4949('0x18')][_0x4949('0x20')][_0x4949('0x4b')](),this[_0x4949('0x4e')](_0x8f3419)):this[_0x4949('0x4e')](null);});};for(const _0x3368bb of _0xe6e48c)_0x1015c1(_0x3368bb);this[_0x4949('0xd')](_0xe6e48c,'add',(_0x4d9530,_0x2b27bf)=>{_0x1015c1(_0x2b27bf);}),this[_0x4949('0xd')](_0xe6e48c,_0x4949('0x3d'),(_0x40c11a,_0x4956e7,_0x52c854)=>{this['_annotationToNarrowView'][_0x4949('0x46')](_0x4956e7)['destroy'](),this['_annotationToNarrowView'][_0x4949('0x64')](_0x4956e7),_0x4c20be[_0x4949('0x2')]({'removedAnnotation':_0x4956e7,'previousAnnotation':_0xe6e48c[_0x4949('0x46')](_0x52c854-0x1),'nextAnnotation':_0xe6e48c[_0x4949('0x46')](_0x52c854+0x1)}),_0x4956e7===this['activeAnnotation']&&this[_0x4949('0x4e')](null);},{'priority':_0x4949('0x49')}),this[_0x4949('0xd')](_0xe6e48c,'focus',(_0x170ead,_0x550a30)=>{this['setActiveAnnotation'](_0x550a30);}),this[_0x4949('0xd')](_0xe6e48c,_0x4949('0x5'),()=>{this['setActiveAnnotation'](null);}),this[_0x4949('0x16')][_0x4949('0xd')](document,_0x4949('0x52'),(_0x526f3a,_0x15e7a7)=>{_0x15e7a7[_0x4949('0x65')]===_0x1f7bea[_0x4949('0x37')]&&_0x13621f[_0x4949('0x5f')]&&(this['_manuallyClosedAnnotationViews'][_0x4949('0x9')](_0x13621f[_0x4949('0x57')][_0x4949('0x4f')]),this['_hideBalloon'](),_0x15e7a7[_0x4949('0x62')](),_0x15e7a7['preventDefault']());}),this[_0x4949('0x16')][_0x4949('0xd')](document,_0x4949('0x29'),(_0x802b22,_0x49c716)=>{const _0x19fe27=_0x49c716['target'];_0x13621f[_0x4949('0x5f')]&&_0x13621f['element'][_0x4949('0x14')](_0x19fe27)||_0x4c20be['view'][_0x4949('0x20')][_0x4949('0x14')](_0x19fe27)||_0x802b22[_0x4949('0x6')]||this[_0x4949('0x13')]&&this[_0x4949('0x13')][_0x4949('0x50')][_0x4949('0x28')](_0x373f37=>_0x373f37[_0x4949('0x14')](_0x19fe27))||(this[_0x4949('0x3a')][_0x4949('0x2a')](),this[_0x4949('0x23')](),this[_0x4949('0x4e')](null));});const _0x4cfeba=this[_0x4949('0x3b')]instanceof _0x4f3c8c?this[_0x4949('0x3b')][_0x4949('0x61')]:new _0x5285f9([this[_0x4949('0x3b')]]);for(const _0x495c0a of _0x4cfeba)this[_0x4949('0x43')](_0x495c0a);this[_0x4949('0xd')](_0x4cfeba,_0x4949('0x9'),(_0x3f7429,_0x12c8a2)=>{this[_0x4949('0xd')](_0x12c8a2,_0x4949('0x2b'),()=>{this[_0x4949('0x43')](_0x12c8a2);});}),this[_0x4949('0xd')](_0x4cfeba,_0x4949('0x3d'),(_0xe88470,_0x198b92)=>{_0x198b92[_0x4949('0x5d')][_0x4949('0x4d')](_0x4949('0x17'))&&this[_0x4949('0x58')](_0x198b92[_0x4949('0x5d')][_0x4949('0x46')](_0x4949('0x17')));}),window[_0x4949('0x2f')]('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x7fa4a4){if(_0x7fa4a4===this['activeAnnotation'])return;const _0x3edec9=this['context'][_0x4949('0x5d')][_0x4949('0x46')](_0x59257c);if(_0x3edec9[_0x4949('0x1c')]({'blurredAnnotation':this[_0x4949('0x13')],'activatedAnnotation':_0x7fa4a4,'disableAnimationOnActivatedAnnotation':!0x0}),_0x7fa4a4)_0x3edec9[_0x4949('0x3c')](_0x7fa4a4)?this[_0x4949('0x39')](_0x7fa4a4):this[_0x4949('0x23')]();else this[_0x4949('0x23')]();this[_0x4949('0x13')]=_0x7fa4a4;}[_0x4949('0x26')](){if(!this[_0x4949('0x34')])throw new _0x27940a(_0x4949('0x1a'),this);this[_0x4949('0x4e')](null);const _0x425cc3=this[_0x4949('0x3b')][_0x4949('0x5d')]['get'](_0x59257c);this[_0x4949('0x23')](),Array[_0x4949('0x4a')](this[_0x4949('0x15')][_0x4949('0x30')](),_0x156024=>_0x156024[_0x4949('0x55')]()),this[_0x4949('0x15')][_0x4949('0x2a')](),_0x425cc3[_0x4949('0x8')](this[_0x4949('0x25')]),this['stopListening'](),this[_0x4949('0x16')][_0x4949('0x54')](),this[_0x4949('0x3b')]instanceof _0x4f3c8c&&this['stopListening'](this['context'][_0x4949('0x61')]);for(const _0x459611 of Array[_0x4949('0x4a')](this[_0x4949('0x4c')]))this[_0x4949('0x58')](_0x459611);window[_0x4949('0x56')](_0x4949('0x42'),this[_0x4949('0x32')]),this[_0x4949('0x32')][_0x4949('0x22')](),this[_0x4949('0x59')]=[],this[_0x4949('0x34')]=!0x1,this['annotations']=null;}[_0x4949('0x55')](){this[_0x4949('0x34')]&&this['detach'](),this[_0x4949('0x51')][_0x4949('0x10')]();}[_0x4949('0x43')](_0x6cd455){const _0x441f0b=_0x6cd455[_0x4949('0x5d')][_0x4949('0x46')](_0x320e8c),_0x28448d=this[_0x4949('0x3b')]['plugins']['get'](_0x59257c),_0x5dca35=this['annotations'],_0x118ba8=this[_0x4949('0x63')],_0x44f76c=()=>{const _0x589648=_0x441f0b[_0x4949('0x3e')]({'annotations':this[_0x4949('0x25')],'activeAnnotation':this[_0x4949('0x13')]});this[_0x4949('0x47')](_0x589648),this[_0x4949('0x4e')](_0x589648[0x0]||null);};this[_0x4949('0xd')](_0x441f0b,_0x4949('0x1c'),_0x44f76c),this[_0x4949('0xd')](_0x441f0b,'blur',(_0x117cef,{isAnnotationTracked:_0x2d7d52})=>{this[_0x4949('0x13')]&&_0x2d7d52(this[_0x4949('0x13')])&&(this['_setSelectedAnnotations']([]),this[_0x4949('0x4e')](null));}),this['listenTo'](_0x441f0b,_0x4949('0x4'),()=>{this['_refreshPositioningDebounced']();}),this[_0x4949('0xd')](_0x5dca35,_0x4949('0x5'),_0x56f221=>{_0x441f0b[_0x4949('0x0')]()&&_0x56f221[_0x4949('0x35')]();},{'priority':_0x4949('0xa')}),this[_0x4949('0xd')](this[_0x4949('0x16')],_0x4949('0x29'),(_0x20be9c,_0x23d605)=>{const _0x35ef4d=_0x23d605[_0x4949('0x60')];_0x118ba8['isVisible']&&_0x118ba8[_0x4949('0x20')][_0x4949('0x14')](_0x35ef4d)||_0x28448d['view'][_0x4949('0x20')][_0x4949('0x14')](_0x35ef4d)||this[_0x4949('0x13')]&&_0x441f0b['hasDomSelection']()&&(_0x44f76c(),_0x20be9c['preventClosingBalloon']=!0x0);},{'priority':'high'}),this[_0x4949('0x4c')][_0x4949('0x9')](_0x441f0b);}['_destroyEditorAnnotationsIntegration'](_0x50b100){_0x50b100&&(this['stopListening'](_0x50b100),this[_0x4949('0x4c')][_0x4949('0x3d')](_0x50b100));}[_0x4949('0x47')](_0x717689){for(const _0x4428b0 of this[_0x4949('0x59')])_0x717689[_0x4949('0x19')](_0x4428b0)||this[_0x4949('0x3a')][_0x4949('0x64')](_0x4428b0[_0x4949('0x18')]);this[_0x4949('0x59')]=_0x717689;}[_0x4949('0x1')](){const _0x66135f=this[_0x4949('0x63')];this['annotations']['refreshPositioning'](),_0x66135f[_0x4949('0x5f')]&&this[_0x4949('0x1b')]();}[_0x4949('0x39')](_0x22398d){if(this[_0x4949('0x3a')]['has'](_0x22398d[_0x4949('0x18')]))return;const _0x25f711=this[_0x4949('0x63')]['content']['first'];_0x25f711!==_0x22398d[_0x4949('0x18')]?(_0x25f711&&this['_detachListeners'](_0x25f711),this[_0x4949('0x1f')](_0x22398d[_0x4949('0x18')]),this[_0x4949('0x63')][_0x4949('0x57')]['clear'](),this['balloonPanelView'][_0x4949('0x57')][_0x4949('0x9')](_0x22398d['view']),this[_0x4949('0x1b')]()):this['_updateBalloonPosition']();}[_0x4949('0x1b')](){const _0x1d7741=this[_0x4949('0x63')][_0x4949('0x57')][_0x4949('0x4f')],_0x23e93=_0x1d7741&&this[_0x4949('0x25')][_0x4949('0x48')](_0x1d7741);if(!_0x23e93||!this['_annotationToNarrowView']['has'](_0x23e93))return;const _0x27d648=this['_annotationToNarrowView'][_0x4949('0x46')](_0x23e93)['element'],_0x4667ca=function(){const _0x22a9ed=_0x50b6bf[_0x4949('0x38')];return[_0x22a9ed[_0x4949('0x40')],_0x22a9ed[_0x4949('0x2e')],_0x22a9ed['southArrowNorth'],_0x22a9ed[_0x4949('0x1e')],_0x22a9ed[_0x4949('0x41')],_0x22a9ed[_0x4949('0x33')]];}();this[_0x4949('0x63')]['pin']({'target':_0x27d648,'positions':_0x4667ca});}[_0x4949('0x23')](){const _0x3e5df3=this[_0x4949('0x63')],_0x1eb4b2=_0x3e5df3[_0x4949('0x57')][_0x4949('0x4f')];_0x1eb4b2&&(this[_0x4949('0x5a')](_0x1eb4b2),_0x3e5df3[_0x4949('0x5c')](),_0x3e5df3[_0x4949('0x57')]['clear']());}[_0x4949('0x1f')](_0x7e30f2){this[_0x4949('0xd')](_0x7e30f2,_0x4949('0x5b'),()=>this['_updateBalloonPosition']()),this[_0x4949('0xd')](_0x7e30f2,_0x4949('0x36'),(_0x50672a,_0x1d7a5e)=>{this[_0x4949('0x3a')][_0x4949('0x9')](_0x7e30f2),this[_0x4949('0x23')](),_0x1d7a5e();});}['_detachListeners'](_0x50a6bb){this['stopListening'](_0x50a6bb);}}
23
+ const _0x51c1=['type','set:container','_setSelectedAnnotations','_detachFromContainer','resize','add','detachFromDom','addAnnotation','_attachListeners','stopListening','view','keyCode','listenTo','change:height','bodyCollection','detach','attachToDom','annotationType','low','first','remove','northArrowSouth','high','annotations','esc','keydown','uiUpdate','context','_refreshPositioning','_attachToContainer','getOrderedSelectedAnnotations','_selectedAnnotations','get','bind','northArrowSouthEast','plugins','ck-sidebar--narrow','refresh','element','_integrateWithEditorAnnotations','_updateBalloonPosition','target','has','isDirty','length','locale','includes','init','preventClosingBalloon','cancel','values','contains','_refreshPositioningDebounced','destroy','register','clear','_showBalloon','_destroyEditorAnnotationsIntegration','pin','focus','_detachListeners','rearrange','southArrowNorthWest','northArrowSouthWest','getSidebarItemView','pluginName','delete','refreshPositioning','isAttached','editors','_manuallyClosedAnnotationViews','set','_domEmitter','change:container','from','balloonPanelView','defaultPositions','blur','Esc','_hideBalloon','isVisible','content','narrowsidebar-detach-not-attached','preventDefault','attach','requires','getByView','mousedown','_annotationToNarrowView','hasDomSelection','removeEventListener','_editorAnnotations','narrowSidebar','execute','setActiveAnnotation','EditorAnnotations','activeAnnotation'];(function(_0x4dfcb7,_0x51c1cb){const _0x225e5d=function(_0x9dbcbf){while(--_0x9dbcbf){_0x4dfcb7['push'](_0x4dfcb7['shift']());}};_0x225e5d(++_0x51c1cb);}(_0x51c1,0x1ab));const _0x225e=function(_0x4dfcb7,_0x51c1cb){_0x4dfcb7=_0x4dfcb7-0x0;let _0x225e5d=_0x51c1[_0x4dfcb7];return _0x225e5d;};import{ContextPlugin as _0x2403ae,Context as _0x27a1c5}from'ckeditor5/src/core.js';import _0x3081f4 from'./annotationsuis.js';import _0x3b5c83 from'./sidebar.js';import _0x42ce87 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0xcd72e4,BodyCollection as _0x573f3}from'ckeditor5/src/ui.js';import{CKEditorError as _0x3a4302,DomEmitterMixin as _0x3dbc0b,keyCodes as _0x42e915,Collection as _0x43b1c8}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x197f4e}from'lodash-es';import _0x29c861 from'./editorannotations.js';export default class i extends _0x2403ae{static get[_0x225e('0x2e')](){return[_0x3b5c83,_0x3081f4];}static get[_0x225e('0x1a')](){return'NarrowSidebar';}constructor(_0x4bf325){super(_0x4bf325),this[_0x225e('0x1d')]=!0x1,this[_0x225e('0x1f')]=new Set(),this[_0x225e('0x21')]=Object['create'](_0x3dbc0b),this[_0x225e('0x31')]=new Map(),this[_0x225e('0x20')](_0x225e('0x39'),null),this['annotations']=null,this['_selectedAnnotations']=[],this[_0x225e('0x34')]=new _0x43b1c8(),this[_0x225e('0xd')]=_0x197f4e(()=>{this[_0x225e('0x56')]();},0xfa,{'leading':!0x1});}[_0x225e('0x8')](){this[_0x225e('0x55')][_0x225e('0x5d')]['get'](_0x3081f4)[_0x225e('0xf')](_0x225e('0x35'),this),this[_0x225e('0x48')]=new _0x573f3(this[_0x225e('0x55')][_0x225e('0x6')]),this[_0x225e('0x24')]=new _0xcd72e4(this[_0x225e('0x55')][_0x225e('0x6')]),this['bodyCollection'][_0x225e('0x4a')](),this[_0x225e('0x48')][_0x225e('0x3f')](this['balloonPanelView']);}['attach'](_0x3a7806){this[_0x225e('0x51')]=_0x3a7806;const _0x762517=this[_0x225e('0x55')][_0x225e('0x5d')][_0x225e('0x5a')](_0x3b5c83),_0x208114=this[_0x225e('0x24')];if(_0x762517['_annotations']=_0x3a7806,this[_0x225e('0x1d')])throw new _0x3a4302('narrowsidebar-attach-already-attached',this);this[_0x225e('0x1d')]=!0x0,this[_0x225e('0x46')](_0x762517,_0x225e('0x3b'),()=>{this['detach'](),this[_0x225e('0x46')](_0x762517,_0x225e('0x22'),_0x267bbf=>{_0x267bbf['off'](),this[_0x225e('0x2d')](_0x3a7806);});}),_0x762517[_0x225e('0x57')]({'viewClass':_0x225e('0x5e'),'spaceBetweenItems':0x5});const _0xa92d73=_0x19ba36=>{const _0x342c29=new _0x42ce87(this[_0x225e('0x55')][_0x225e('0x6')]);_0x762517[_0x225e('0x41')](_0x19ba36,_0x342c29),this[_0x225e('0x31')][_0x225e('0x20')](_0x19ba36,_0x342c29),_0x342c29[_0x225e('0x5b')](_0x225e('0x4'),_0x225e('0x4b'),'number')['to'](_0x19ba36[_0x225e('0x44')],'isDirty',_0x225e('0x3a'),_0x225e('0x5')),_0x342c29['on'](_0x225e('0x36'),()=>{this['_manuallyClosedAnnotationViews'][_0x225e('0x10')](),_0x208114[_0x225e('0x2a')][_0x225e('0x4d')]!==_0x19ba36[_0x225e('0x44')]?(this[_0x225e('0x11')](_0x19ba36),_0x19ba36[_0x225e('0x44')][_0x225e('0x60')][_0x225e('0x14')](),this[_0x225e('0x37')](_0x19ba36)):this[_0x225e('0x37')](null);});};for(const _0x332f27 of _0x3a7806)_0xa92d73(_0x332f27);this['listenTo'](_0x3a7806,_0x225e('0x3f'),(_0x3b24e6,_0xd0d0ff)=>{_0xa92d73(_0xd0d0ff);}),this['listenTo'](_0x3a7806,'remove',(_0x139cbd,_0x138edc,_0x3f3c9d)=>{this[_0x225e('0x31')][_0x225e('0x5a')](_0x138edc)[_0x225e('0xe')](),this['_annotationToNarrowView'][_0x225e('0x1b')](_0x138edc),_0x762517[_0x225e('0x16')]({'removedAnnotation':_0x138edc,'previousAnnotation':_0x3a7806[_0x225e('0x5a')](_0x3f3c9d-0x1),'nextAnnotation':_0x3a7806[_0x225e('0x5a')](_0x3f3c9d+0x1)}),_0x138edc===this[_0x225e('0x39')]&&this[_0x225e('0x37')](null);},{'priority':_0x225e('0x4c')}),this['listenTo'](_0x3a7806,'focus',(_0x3c5b0b,_0x3a64b9)=>{this['setActiveAnnotation'](_0x3a64b9);}),this[_0x225e('0x46')](_0x3a7806,_0x225e('0x26'),()=>{this['setActiveAnnotation'](null);}),this[_0x225e('0x21')][_0x225e('0x46')](document,_0x225e('0x53'),(_0xb875db,_0x1878f2)=>{_0x1878f2[_0x225e('0x45')]===_0x42e915[_0x225e('0x52')]&&_0x208114[_0x225e('0x29')]&&(this['_manuallyClosedAnnotationViews'][_0x225e('0x3f')](_0x208114[_0x225e('0x2a')]['first']),this[_0x225e('0x28')](),_0x1878f2['stopPropagation'](),_0x1878f2[_0x225e('0x2c')]());}),this[_0x225e('0x21')][_0x225e('0x46')](document,_0x225e('0x30'),(_0x125d15,_0x423ae9)=>{const _0x2763c8=_0x423ae9[_0x225e('0x2')];_0x208114['isVisible']&&_0x208114[_0x225e('0x60')][_0x225e('0xc')](_0x2763c8)||_0x762517[_0x225e('0x44')]['element'][_0x225e('0xc')](_0x2763c8)||_0x125d15[_0x225e('0x9')]||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x4b2478=>_0x4b2478[_0x225e('0xc')](_0x2763c8))||(this['_manuallyClosedAnnotationViews'][_0x225e('0x10')](),this[_0x225e('0x28')](),this['setActiveAnnotation'](null));});const _0x404b68=this[_0x225e('0x55')]instanceof _0x27a1c5?this['context'][_0x225e('0x1e')]:new _0x43b1c8([this['context']]);for(const _0x2e618e of _0x404b68)this[_0x225e('0x0')](_0x2e618e);this[_0x225e('0x46')](_0x404b68,_0x225e('0x3f'),(_0x1280fa,_0x10d6e1)=>{this['listenTo'](_0x10d6e1,'ready',()=>{this[_0x225e('0x0')](_0x10d6e1);});}),this[_0x225e('0x46')](_0x404b68,'remove',(_0x23741d,_0x52fdb3)=>{_0x52fdb3[_0x225e('0x5d')][_0x225e('0x3')]('EditorAnnotations')&&this[_0x225e('0x12')](_0x52fdb3[_0x225e('0x5d')][_0x225e('0x5a')](_0x225e('0x38')));}),window['addEventListener']('resize',this[_0x225e('0xd')]),this[_0x225e('0x56')]();}['setActiveAnnotation'](_0x56546c){if(_0x56546c===this[_0x225e('0x39')])return;const _0xe74cba=this[_0x225e('0x55')][_0x225e('0x5d')][_0x225e('0x5a')](_0x3b5c83);if(_0xe74cba[_0x225e('0x5f')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x56546c,'disableAnimationOnActivatedAnnotation':!0x0}),_0x56546c)_0xe74cba[_0x225e('0x19')](_0x56546c)?this[_0x225e('0x11')](_0x56546c):this[_0x225e('0x28')]();else this['_hideBalloon']();this['activeAnnotation']=_0x56546c;}[_0x225e('0x49')](){if(!this['isAttached'])throw new _0x3a4302(_0x225e('0x2b'),this);this[_0x225e('0x37')](null);const _0x912be4=this[_0x225e('0x55')][_0x225e('0x5d')][_0x225e('0x5a')](_0x3b5c83);this[_0x225e('0x28')](),Array['from'](this[_0x225e('0x31')][_0x225e('0xb')](),_0x5c7deb=>_0x5c7deb[_0x225e('0xe')]()),this['_annotationToNarrowView'][_0x225e('0x10')](),_0x912be4[_0x225e('0x3d')](this['annotations']),this['stopListening'](),this[_0x225e('0x21')][_0x225e('0x43')](),this[_0x225e('0x55')]instanceof _0x27a1c5&&this[_0x225e('0x43')](this['context'][_0x225e('0x1e')]);for(const _0x2dca97 of Array[_0x225e('0x23')](this[_0x225e('0x34')]))this[_0x225e('0x12')](_0x2dca97);window[_0x225e('0x33')](_0x225e('0x3e'),this[_0x225e('0xd')]),this['_refreshPositioningDebounced'][_0x225e('0xa')](),this[_0x225e('0x59')]=[],this[_0x225e('0x1d')]=!0x1,this['annotations']=null;}[_0x225e('0xe')](){this[_0x225e('0x1d')]&&this[_0x225e('0x49')](),this[_0x225e('0x48')][_0x225e('0x40')]();}[_0x225e('0x0')](_0x3a9b1e){const _0xd5b4e9=_0x3a9b1e['plugins'][_0x225e('0x5a')](_0x29c861),_0x348782=this[_0x225e('0x55')][_0x225e('0x5d')][_0x225e('0x5a')](_0x3b5c83),_0x320e3c=this[_0x225e('0x51')],_0x3ccc41=this[_0x225e('0x24')],_0x23c391=()=>{const _0x49dd35=_0xd5b4e9[_0x225e('0x58')]({'annotations':this[_0x225e('0x51')],'activeAnnotation':this[_0x225e('0x39')]});this[_0x225e('0x3c')](_0x49dd35),this[_0x225e('0x37')](_0x49dd35[0x0]||null);};this[_0x225e('0x46')](_0xd5b4e9,_0x225e('0x5f'),_0x23c391),this['listenTo'](_0xd5b4e9,_0x225e('0x26'),(_0x3a3884,{isAnnotationTracked:_0x50e9c4})=>{this[_0x225e('0x39')]&&_0x50e9c4(this[_0x225e('0x39')])&&(this[_0x225e('0x3c')]([]),this[_0x225e('0x37')](null));}),this[_0x225e('0x46')](_0xd5b4e9,_0x225e('0x54'),()=>{this[_0x225e('0xd')]();}),this[_0x225e('0x46')](_0x320e3c,'blur',_0xcab01a=>{_0xd5b4e9[_0x225e('0x32')]()&&_0xcab01a['stop']();},{'priority':_0x225e('0x50')}),this[_0x225e('0x46')](this[_0x225e('0x21')],_0x225e('0x30'),(_0x1f7ef7,_0x5bca0b)=>{const _0x2e64e1=_0x5bca0b[_0x225e('0x2')];_0x3ccc41['isVisible']&&_0x3ccc41[_0x225e('0x60')][_0x225e('0xc')](_0x2e64e1)||_0x348782['view'][_0x225e('0x60')][_0x225e('0xc')](_0x2e64e1)||this[_0x225e('0x39')]&&_0xd5b4e9[_0x225e('0x32')]()&&(_0x23c391(),_0x1f7ef7[_0x225e('0x9')]=!0x0);},{'priority':_0x225e('0x50')}),this[_0x225e('0x34')][_0x225e('0x3f')](_0xd5b4e9);}[_0x225e('0x12')](_0x5cc875){_0x5cc875&&(this[_0x225e('0x43')](_0x5cc875),this[_0x225e('0x34')][_0x225e('0x4e')](_0x5cc875));}[_0x225e('0x3c')](_0x3231d1){for(const _0x1289dc of this[_0x225e('0x59')])_0x3231d1[_0x225e('0x7')](_0x1289dc)||this[_0x225e('0x1f')][_0x225e('0x1b')](_0x1289dc[_0x225e('0x44')]);this['_selectedAnnotations']=_0x3231d1;}[_0x225e('0x56')](){const _0x35e99f=this[_0x225e('0x24')];this[_0x225e('0x51')][_0x225e('0x1c')](),_0x35e99f[_0x225e('0x29')]&&this[_0x225e('0x1')]();}[_0x225e('0x11')](_0xc38748){if(this[_0x225e('0x1f')][_0x225e('0x3')](_0xc38748['view']))return;const _0x2205cc=this[_0x225e('0x24')][_0x225e('0x2a')][_0x225e('0x4d')];_0x2205cc!==_0xc38748['view']?(_0x2205cc&&this[_0x225e('0x15')](_0x2205cc),this[_0x225e('0x42')](_0xc38748['view']),this[_0x225e('0x24')]['content'][_0x225e('0x10')](),this['balloonPanelView'][_0x225e('0x2a')][_0x225e('0x3f')](_0xc38748[_0x225e('0x44')]),this[_0x225e('0x1')]()):this[_0x225e('0x1')]();}['_updateBalloonPosition'](){const _0x18a260=this[_0x225e('0x24')]['content'][_0x225e('0x4d')],_0x1e0f6a=_0x18a260&&this[_0x225e('0x51')][_0x225e('0x2f')](_0x18a260);if(!_0x1e0f6a||!this[_0x225e('0x31')]['has'](_0x1e0f6a))return;const _0x492643=this[_0x225e('0x31')][_0x225e('0x5a')](_0x1e0f6a)[_0x225e('0x60')],_0x53a06f=function(){const _0x3ceb3b=_0xcd72e4[_0x225e('0x25')];return[_0x3ceb3b['southArrowNorthEast'],_0x3ceb3b[_0x225e('0x5c')],_0x3ceb3b['southArrowNorth'],_0x3ceb3b[_0x225e('0x4f')],_0x3ceb3b[_0x225e('0x17')],_0x3ceb3b[_0x225e('0x18')]];}();this['balloonPanelView'][_0x225e('0x13')]({'target':_0x492643,'positions':_0x53a06f});}[_0x225e('0x28')](){const _0x5662fc=this[_0x225e('0x24')],_0xede76a=_0x5662fc['content'][_0x225e('0x4d')];_0xede76a&&(this[_0x225e('0x15')](_0xede76a),_0x5662fc['unpin'](),_0x5662fc[_0x225e('0x2a')]['clear']());}[_0x225e('0x42')](_0x3230ba){this[_0x225e('0x46')](_0x3230ba,_0x225e('0x47'),()=>this['_updateBalloonPosition']()),this[_0x225e('0x46')](_0x3230ba,_0x225e('0x27'),(_0x46d89e,_0x39222b)=>{this[_0x225e('0x1f')]['add'](_0x3230ba),this[_0x225e('0x28')](),_0x39222b();});}[_0x225e('0x15')](_0x384416){this[_0x225e('0x43')](_0x384416);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ac4=['top','_alignAfterItem','_recalculate','_spaceBetweenItems','_alignToTargetRect','context','listenTo','getSidebarItemView','Sidebar','define','init','change:_lastItem','updateHeight','bind','_destroySidebarItemView','add','bottom','change:targetRect','rearrange','_getItemBefore','_activeAnnotation','_getTargetTop','change:bottom','unbind','_detachFromContainer','view','_alignBeforeItem','class','_getMaxAvailableTop','element','_updateLastItem','isAnimationDisabled','push','destroy','appendChild','_alignForBottomChange','_createSidebarView','addAnnotation','_sidebarItemViewToAnnotation','height','config','render','minHeight','_annotations','delete','_alignForTopChange','target','getIndex','_getItemAfter','length','change:top','pluginName','container','targetRect','stopListening','_lastItem','set','_annotationToSidebarItemView','clear','_setItemTop','_recalculateBuffer','sidebar.container','get','sidebar.preventScrollOutOfView','last','locale','sidebar-setcontainer-invalid-element','max','_attachToContainer','list','remove','isActive','refresh','setContainer','content'];(function(_0x176532,_0x2ac402){const _0x228fd1=function(_0x77cffc){while(--_0x77cffc){_0x176532['push'](_0x176532['shift']());}};_0x228fd1(++_0x2ac402);}(_0x2ac4,0xc6));const _0x228f=function(_0x176532,_0x2ac402){_0x176532=_0x176532-0x0;let _0x228fd1=_0x2ac4[_0x176532];return _0x228fd1;};import{ContextPlugin as _0x778ecb}from'ckeditor5/src/core.js';import{Rect as _0x4fbb6b,CKEditorError as _0x1bf983}from'ckeditor5/src/utils.js';import _0x415670 from'./view/sidebarview.js';import _0x581970 from'./view/sidebaritemview.js';export default class z extends _0x778ecb{static get[_0x228f('0x3')](){return _0x228f('0x23');}constructor(_0x2fcfab){super(_0x2fcfab),this[_0x228f('0x8')]('_lastItem',void 0x0),this[_0x228f('0x34')]=this[_0x228f('0x3f')](),this['set'](_0x228f('0x4'),null),this[_0x228f('0x1e')]=0x19,this[_0x228f('0x41')]=new Map(),this[_0x228f('0x9')]=new Map(),this[_0x228f('0x20')][_0x228f('0x43')][_0x228f('0x24')]('sidebar.preventScrollOutOfView',!0x1),this[_0x228f('0x46')]=null,this[_0x228f('0x2f')]=null,this[_0x228f('0xc')]=[];}[_0x228f('0x25')](){const _0x4c87f7=this['context'][_0x228f('0x43')]['get'](_0x228f('0xd'));_0x4c87f7&&this[_0x228f('0x19')](_0x4c87f7);}[_0x228f('0x19')](_0x524650){if(!y(_0x524650))throw new _0x1bf983(_0x228f('0x12'));this['container']=_0x524650;}[_0x228f('0x14')]({viewClass:_0x506706='',spaceBetweenItems:_0x185ea9=0x19}={}){if(!y(this['container']))throw new _0x1bf983('sidebar-attachtocontainer-missing-container',this);this[_0x228f('0x4')][_0x228f('0x3d')](this[_0x228f('0x34')][_0x228f('0x38')]),this[_0x228f('0x34')][_0x228f('0x36')]=_0x506706,this['_spaceBetweenItems']=_0x185ea9;}[_0x228f('0x2d')]({removedAnnotation:_0x32d135,previousAnnotation:_0x4f264c,nextAnnotation:_0x1a5850}){const _0x4934cf=this[_0x228f('0x22')](_0x32d135);this['view'][_0x228f('0x15')][_0x228f('0x16')](_0x4934cf),this[_0x228f('0x29')](_0x32d135),_0x4f264c&&this[_0x228f('0x1f')](this[_0x228f('0x22')](_0x4f264c)),_0x1a5850&&this[_0x228f('0x1f')](this[_0x228f('0x22')](_0x1a5850)),this[_0x228f('0x39')]();}[_0x228f('0x18')]({blurredAnnotation:_0x58e373,activatedAnnotation:_0x4cc5a3,disableAnimationOnActivatedAnnotation:_0x21e9ff}){if(this[_0x228f('0x2f')]=_0x4cc5a3,_0x58e373){_0x58e373[_0x228f('0x17')]=!0x1;const _0x1d6d1f=this[_0x228f('0x22')](_0x58e373);_0x1d6d1f&&_0x21e9ff&&(_0x1d6d1f['isAnimationDisabled']=!0x1);}if(_0x4cc5a3){const _0x105c35=this[_0x228f('0x22')](_0x4cc5a3);_0x105c35&&(_0x4cc5a3[_0x228f('0x17')]=!0x0,_0x21e9ff&&(_0x105c35[_0x228f('0x3a')]=!0x0,_0x105c35['top']+=0x1),this[_0x228f('0x1f')](_0x105c35));}}[_0x228f('0x33')](_0xca91a8){if(this[_0x228f('0x34')]['element'][_0x228f('0x16')](),_0xca91a8)for(const _0x4c02cf of _0xca91a8)this['_destroySidebarItemView'](_0x4c02cf);this['view'][_0x228f('0x15')][_0x228f('0xa')](),this['view'][_0x228f('0x36')]='',this[_0x228f('0x7')]=null;}[_0x228f('0x40')](_0xa854aa,_0x73a7dd){_0x73a7dd||(_0x73a7dd=_0xa854aa[_0x228f('0x34')]);const _0x572379=new _0x581970(this['context'][_0x228f('0x11')]);this[_0x228f('0x41')]['set'](_0x572379,_0xa854aa),this[_0x228f('0x9')][_0x228f('0x8')](_0xa854aa,_0x572379),_0x572379['content'][_0x228f('0x2a')](_0x73a7dd),this[_0x228f('0x21')](_0xa854aa[_0x228f('0x34')],_0x228f('0x2c'),(_0x1c5019,_0x5b4387,_0x578605)=>{const _0x230856=this['_getTargetTop'](_0xa854aa,_0x578605);_0x572379['_targetTop']!=_0x230856&&(_0x572379['_targetTop']=_0x230856,this[_0x228f('0xb')](_0x572379,_0x230856));}),this[_0x228f('0x21')](_0x572379,_0x228f('0x2'),()=>{this['_recalculate'](_0x572379,_0x228f('0x1b'));}),this['listenTo'](_0x572379,_0x228f('0x31'),()=>{this[_0x228f('0x1d')](_0x572379,_0x228f('0x2b'));}),this[_0x228f('0x1f')](_0x572379);const _0x3b440b=this[_0x228f('0x2e')](_0x572379);if(_0x3b440b)this['_alignAfterItem'](_0x3b440b,_0x572379)||this[_0x228f('0x1f')](_0x572379);else this[_0x228f('0x1f')](_0x572379);return this[_0x228f('0x39')](),this['view'][_0x228f('0x15')][_0x228f('0x2a')](_0x572379),_0x572379;}['_alignForTopChange'](_0x2fd745){if(!_0x2fd745[_0x228f('0x1a')]['length'])return;const _0x5afc05=this[_0x228f('0x2e')](_0x2fd745);if(!_0x5afc05)return;const _0x41230d=this[_0x228f('0x41')][_0x228f('0xe')](_0x5afc05),_0xe707e6=this['_activeAnnotation'];_0xe707e6&&_0xe707e6===_0x41230d?this[_0x228f('0x1c')](_0x5afc05,_0x2fd745):this[_0x228f('0x35')](_0x2fd745,_0x5afc05);}[_0x228f('0x3e')](_0x4cc176){if(!_0x4cc176[_0x228f('0x1a')][_0x228f('0x1')])return;const _0xef18b8=this[_0x228f('0x0')](_0x4cc176);if(!_0xef18b8)return;const _0x504706=this['_sidebarItemViewToAnnotation']['get'](_0xef18b8),_0x515fab=this[_0x228f('0x20')][_0x228f('0x43')][_0x228f('0xe')](_0x228f('0xf')),_0x426142=this['_activeAnnotation'];_0x426142&&_0x426142===_0x504706&&_0x515fab?(this[_0x228f('0x35')](_0xef18b8,_0x4cc176),this['_alignAfterItem'](_0x4cc176,_0xef18b8)):_0x426142&&_0x426142===_0x504706?this['_alignBeforeItem'](_0xef18b8,_0x4cc176):this[_0x228f('0x1c')](_0x4cc176,_0xef18b8);}[_0x228f('0x1d')](_0xf396bf,_0x1731d3){0x0===this[_0x228f('0xc')][_0x228f('0x1')]&&setTimeout(()=>{for(const {sidebarItemView:_0x12a4bc,changedProp:_0x36af80}of this[_0x228f('0xc')])_0x228f('0x1b')===_0x36af80?this[_0x228f('0x48')](_0x12a4bc):this[_0x228f('0x3e')](_0x12a4bc);this['_recalculateBuffer']=[];},0xa),this[_0x228f('0xc')][_0x228f('0x3b')]({'sidebarItemView':_0xf396bf,'changedProp':_0x1731d3});}[_0x228f('0x22')](_0xa3e6d0){return this[_0x228f('0x9')][_0x228f('0xe')](_0xa3e6d0);}['destroy'](){this[_0x228f('0x6')](),this['view'][_0x228f('0x3c')]();}[_0x228f('0x29')](_0xe82f05){const _0x4005f5=this[_0x228f('0x22')](_0xe82f05);this[_0x228f('0x6')](_0x4005f5),this[_0x228f('0x6')](_0xe82f05[_0x228f('0x34')]),_0x4005f5[_0x228f('0x3c')](),this[_0x228f('0x9')][_0x228f('0x47')](_0xe82f05),this[_0x228f('0x41')][_0x228f('0x47')](_0x4005f5);}[_0x228f('0x3f')](){const _0xa44f0a=new _0x415670(this[_0x228f('0x20')]['locale']);return _0xa44f0a[_0x228f('0x44')](),this['on'](_0x228f('0x26'),(_0x4cf74d,_0x597f26,_0x5066d1,_0xcfe601)=>{_0xcfe601&&_0xa44f0a[_0x228f('0x32')](_0x228f('0x45')),_0x5066d1?_0xa44f0a[_0x228f('0x28')](_0x228f('0x45'))['to'](_0x5066d1,'bottom'):_0xa44f0a[_0x228f('0x45')]=null;}),_0xa44f0a;}[_0x228f('0x39')](){var _0x56b7c9;this['_lastItem']=(null===(_0x56b7c9=this[_0x228f('0x46')])||void 0x0===_0x56b7c9?void 0x0:_0x56b7c9[_0x228f('0x10')])?this[_0x228f('0x22')](this[_0x228f('0x46')][_0x228f('0x10')]):null;}['_getItemBefore'](_0x31de92){var _0x57c8a9;const _0x197b0b=this['_sidebarItemViewToAnnotation'][_0x228f('0xe')](_0x31de92),_0x248d49=_0x197b0b&&(null===(_0x57c8a9=this[_0x228f('0x46')])||void 0x0===_0x57c8a9?void 0x0:_0x57c8a9[_0x228f('0xe')](this['_annotations'][_0x228f('0x4a')](_0x197b0b)-0x1));return _0x248d49&&this[_0x228f('0x22')](_0x248d49)||null;}['_getItemAfter'](_0x530e19){var _0x12deb5;const _0x4218da=this['_sidebarItemViewToAnnotation'][_0x228f('0xe')](_0x530e19),_0x50f94a=_0x4218da&&(null===(_0x12deb5=this[_0x228f('0x46')])||void 0x0===_0x12deb5?void 0x0:_0x12deb5[_0x228f('0xe')](this[_0x228f('0x46')][_0x228f('0x4a')](_0x4218da)+0x1));return _0x50f94a&&this[_0x228f('0x22')](_0x50f94a)||null;}['_alignBeforeItem'](_0x387844,_0x3fd14a){_0x387844[_0x228f('0x27')]();const _0x421ad6=M(_0x3fd14a[_0x228f('0x2b')]+this[_0x228f('0x1e')],_0x387844['top']);return!!_0x421ad6&&(this['_setItemTop'](_0x3fd14a,_0x3fd14a[_0x228f('0x1b')]-_0x421ad6),!0x0);}['_alignAfterItem'](_0x4a9f41,_0x23c02c){_0x4a9f41['updateHeight']();const _0x15a4f5=M(_0x4a9f41[_0x228f('0x2b')]+this[_0x228f('0x1e')],_0x23c02c[_0x228f('0x1b')]);return!!_0x15a4f5&&(this[_0x228f('0xb')](_0x23c02c,_0x23c02c[_0x228f('0x1b')]+_0x15a4f5,!0x1),!0x0);}['_alignToTargetRect'](_0x3fff58){const _0x1148b8=this['_sidebarItemViewToAnnotation'][_0x228f('0xe')](_0x3fff58);if(!_0x1148b8||!_0x1148b8[_0x228f('0x49')]||!_0x1148b8[_0x228f('0x5')])return;const _0x11a388=this['_getTargetTop'](_0x1148b8,_0x1148b8['targetRect']);this['_setItemTop'](_0x3fff58,_0x11a388);}[_0x228f('0x30')](_0x5d7059,_0x3aff55){if(null===_0x3aff55)return 0x0;if(_0x5d7059['target']instanceof _0x4fbb6b)return _0x3aff55[_0x228f('0x1b')];{const _0x11051d=new _0x4fbb6b(this[_0x228f('0x34')]['element'])['top'];return _0x3aff55[_0x228f('0x1b')]-_0x11051d;}}[_0x228f('0xb')](_0x3011bd,_0x558801,_0x32417b=this[_0x228f('0x20')][_0x228f('0x43')][_0x228f('0xe')](_0x228f('0xf'))){_0x32417b&&(_0x558801=Math[_0x228f('0x13')](_0x558801,this['_getMaxAvailableTop'](_0x3011bd))),_0x3011bd[_0x228f('0x1b')]=_0x558801;}[_0x228f('0x37')](_0x5ef781){let _0x12c060=this[_0x228f('0x2e')](_0x5ef781),_0x41eea6=0x0;for(;_0x12c060;)_0x12c060[_0x228f('0x27')](),_0x41eea6+=this['_spaceBetweenItems']+_0x12c060[_0x228f('0x42')],_0x12c060=this[_0x228f('0x2e')](_0x12c060);return _0x41eea6;}}function M(_0x333c2c,_0x590a0e){return Math[_0x228f('0x13')](_0x333c2c-_0x590a0e,0x0);}function y(_0x116820){return null!==_0x116820&&'object'==typeof _0x116820&&0x1===_0x116820['nodeType'];}
23
+ const _0xf602=['sidebar-setcontainer-invalid-element','element','_annotationToSidebarItemView','stopListening','change:_lastItem','container','clear','delete','_annotations','bind','_getTargetTop','change:targetRect','_alignForTopChange','length','top','destroy','isActive','view','getSidebarItemView','listenTo','_setItemTop','appendChild','_destroySidebarItemView','bottom','init','setContainer','push','_attachToContainer','context','config','class','_updateLastItem','render','_sidebarItemViewToAnnotation','list','_detachFromContainer','_getMaxAvailableTop','_lastItem','target','_recalculate','isAnimationDisabled','_activeAnnotation','minHeight','updateHeight','last','change:bottom','_alignAfterItem','height','max','sidebar.container','set','_alignToTargetRect','_alignForBottomChange','get','_alignBeforeItem','object','unbind','content','_spaceBetweenItems','_recalculateBuffer','pluginName','_createSidebarView','sidebar-attachtocontainer-missing-container','getIndex','targetRect','locale','_getItemBefore','remove','add'];(function(_0x25cb4c,_0xf602f7){const _0x1cc690=function(_0x58067b){while(--_0x58067b){_0x25cb4c['push'](_0x25cb4c['shift']());}};_0x1cc690(++_0xf602f7);}(_0xf602,0x102));const _0x1cc6=function(_0x25cb4c,_0xf602f7){_0x25cb4c=_0x25cb4c-0x0;let _0x1cc690=_0xf602[_0x25cb4c];return _0x1cc690;};import{ContextPlugin as _0x52f2c9}from'ckeditor5/src/core.js';import{Rect as _0x264c12,CKEditorError as _0x43a999}from'ckeditor5/src/utils.js';import _0x115504 from'./view/sidebarview.js';import _0x2cb943 from'./view/sidebaritemview.js';export default class z extends _0x52f2c9{static get[_0x1cc6('0x9')](){return'Sidebar';}constructor(_0x30c734){super(_0x30c734),this['set']('_lastItem',void 0x0),this['view']=this[_0x1cc6('0xa')](),this[_0x1cc6('0x44')](_0x1cc6('0x17'),null),this[_0x1cc6('0x7')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x1cc6('0x14')]=new Map(),this[_0x1cc6('0x2e')][_0x1cc6('0x2f')]['define']('sidebar.preventScrollOutOfView',!0x1),this[_0x1cc6('0x1a')]=null,this[_0x1cc6('0x3b')]=null,this[_0x1cc6('0x8')]=[];}[_0x1cc6('0x2a')](){const _0x3c6b8f=this[_0x1cc6('0x2e')]['config'][_0x1cc6('0x2')](_0x1cc6('0x43'));_0x3c6b8f&&this[_0x1cc6('0x2b')](_0x3c6b8f);}[_0x1cc6('0x2b')](_0x5a4846){if(!y(_0x5a4846))throw new _0x43a999(_0x1cc6('0x12'));this[_0x1cc6('0x17')]=_0x5a4846;}[_0x1cc6('0x2d')]({viewClass:_0x2df8ba='',spaceBetweenItems:_0x1f94e4=0x19}={}){if(!y(this[_0x1cc6('0x17')]))throw new _0x43a999(_0x1cc6('0xb'),this);this[_0x1cc6('0x17')][_0x1cc6('0x27')](this[_0x1cc6('0x23')]['element']),this[_0x1cc6('0x23')][_0x1cc6('0x30')]=_0x2df8ba,this['_spaceBetweenItems']=_0x1f94e4;}['rearrange']({removedAnnotation:_0x4394d7,previousAnnotation:_0x563088,nextAnnotation:_0xc87538}){const _0x5c913f=this[_0x1cc6('0x24')](_0x4394d7);this[_0x1cc6('0x23')]['list'][_0x1cc6('0x10')](_0x5c913f),this[_0x1cc6('0x28')](_0x4394d7),_0x563088&&this[_0x1cc6('0x0')](this[_0x1cc6('0x24')](_0x563088)),_0xc87538&&this[_0x1cc6('0x0')](this[_0x1cc6('0x24')](_0xc87538)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0xe0847c,activatedAnnotation:_0x107b1f,disableAnimationOnActivatedAnnotation:_0x53f190}){if(this[_0x1cc6('0x3b')]=_0x107b1f,_0xe0847c){_0xe0847c[_0x1cc6('0x22')]=!0x1;const _0x1902be=this[_0x1cc6('0x24')](_0xe0847c);_0x1902be&&_0x53f190&&(_0x1902be['isAnimationDisabled']=!0x1);}if(_0x107b1f){const _0x4d4ed7=this[_0x1cc6('0x24')](_0x107b1f);_0x4d4ed7&&(_0x107b1f[_0x1cc6('0x22')]=!0x0,_0x53f190&&(_0x4d4ed7[_0x1cc6('0x3a')]=!0x0,_0x4d4ed7[_0x1cc6('0x20')]+=0x1),this[_0x1cc6('0x0')](_0x4d4ed7));}}[_0x1cc6('0x35')](_0x5d503c){if(this[_0x1cc6('0x23')]['element'][_0x1cc6('0x10')](),_0x5d503c)for(const _0x56879b of _0x5d503c)this['_destroySidebarItemView'](_0x56879b);this[_0x1cc6('0x23')][_0x1cc6('0x34')][_0x1cc6('0x18')](),this[_0x1cc6('0x23')][_0x1cc6('0x30')]='',this[_0x1cc6('0x37')]=null;}['addAnnotation'](_0x4fb4f3,_0x399391){_0x399391||(_0x399391=_0x4fb4f3[_0x1cc6('0x23')]);const _0x22a284=new _0x2cb943(this[_0x1cc6('0x2e')]['locale']);this['_sidebarItemViewToAnnotation'][_0x1cc6('0x44')](_0x22a284,_0x4fb4f3),this[_0x1cc6('0x14')]['set'](_0x4fb4f3,_0x22a284),_0x22a284['content'][_0x1cc6('0x11')](_0x399391),this[_0x1cc6('0x25')](_0x4fb4f3['view'],_0x1cc6('0x1d'),(_0x5e46bb,_0x42db7c,_0x3c69fb)=>{const _0x2f4f53=this[_0x1cc6('0x1c')](_0x4fb4f3,_0x3c69fb);_0x22a284['_targetTop']!=_0x2f4f53&&(_0x22a284['_targetTop']=_0x2f4f53,this['_setItemTop'](_0x22a284,_0x2f4f53));}),this[_0x1cc6('0x25')](_0x22a284,'change:top',()=>{this[_0x1cc6('0x39')](_0x22a284,_0x1cc6('0x20'));}),this[_0x1cc6('0x25')](_0x22a284,_0x1cc6('0x3f'),()=>{this[_0x1cc6('0x39')](_0x22a284,_0x1cc6('0x29'));}),this['_alignToTargetRect'](_0x22a284);const _0xe50614=this['_getItemBefore'](_0x22a284);if(_0xe50614)this['_alignAfterItem'](_0xe50614,_0x22a284)||this['_alignToTargetRect'](_0x22a284);else this[_0x1cc6('0x0')](_0x22a284);return this[_0x1cc6('0x31')](),this['view'][_0x1cc6('0x34')][_0x1cc6('0x11')](_0x22a284),_0x22a284;}['_alignForTopChange'](_0xb5aa61){if(!_0xb5aa61['content'][_0x1cc6('0x1f')])return;const _0x16b6b4=this[_0x1cc6('0xf')](_0xb5aa61);if(!_0x16b6b4)return;const _0x1f149e=this[_0x1cc6('0x33')][_0x1cc6('0x2')](_0x16b6b4),_0xf06f0d=this['_activeAnnotation'];_0xf06f0d&&_0xf06f0d===_0x1f149e?this[_0x1cc6('0x40')](_0x16b6b4,_0xb5aa61):this[_0x1cc6('0x3')](_0xb5aa61,_0x16b6b4);}[_0x1cc6('0x1')](_0x46b621){if(!_0x46b621[_0x1cc6('0x6')][_0x1cc6('0x1f')])return;const _0x20ba1d=this['_getItemAfter'](_0x46b621);if(!_0x20ba1d)return;const _0x45558a=this[_0x1cc6('0x33')]['get'](_0x20ba1d),_0x179d31=this[_0x1cc6('0x2e')]['config']['get']('sidebar.preventScrollOutOfView'),_0x1f4e8b=this[_0x1cc6('0x3b')];_0x1f4e8b&&_0x1f4e8b===_0x45558a&&_0x179d31?(this[_0x1cc6('0x3')](_0x20ba1d,_0x46b621),this['_alignAfterItem'](_0x46b621,_0x20ba1d)):_0x1f4e8b&&_0x1f4e8b===_0x45558a?this[_0x1cc6('0x3')](_0x20ba1d,_0x46b621):this['_alignAfterItem'](_0x46b621,_0x20ba1d);}['_recalculate'](_0x255e38,_0x5093cb){0x0===this[_0x1cc6('0x8')][_0x1cc6('0x1f')]&&setTimeout(()=>{for(const {sidebarItemView:_0x16033d,changedProp:_0x313480}of this['_recalculateBuffer'])'top'===_0x313480?this[_0x1cc6('0x1e')](_0x16033d):this[_0x1cc6('0x1')](_0x16033d);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer'][_0x1cc6('0x2c')]({'sidebarItemView':_0x255e38,'changedProp':_0x5093cb});}[_0x1cc6('0x24')](_0x521412){return this[_0x1cc6('0x14')][_0x1cc6('0x2')](_0x521412);}[_0x1cc6('0x21')](){this[_0x1cc6('0x15')](),this[_0x1cc6('0x23')][_0x1cc6('0x21')]();}[_0x1cc6('0x28')](_0x196919){const _0xef6873=this[_0x1cc6('0x24')](_0x196919);this[_0x1cc6('0x15')](_0xef6873),this['stopListening'](_0x196919['view']),_0xef6873['destroy'](),this[_0x1cc6('0x14')]['delete'](_0x196919),this[_0x1cc6('0x33')][_0x1cc6('0x19')](_0xef6873);}[_0x1cc6('0xa')](){const _0x1d7811=new _0x115504(this[_0x1cc6('0x2e')][_0x1cc6('0xe')]);return _0x1d7811[_0x1cc6('0x32')](),this['on'](_0x1cc6('0x16'),(_0x454717,_0x28b71c,_0x2e85e7,_0x765da1)=>{_0x765da1&&_0x1d7811[_0x1cc6('0x5')](_0x1cc6('0x3c')),_0x2e85e7?_0x1d7811[_0x1cc6('0x1b')]('minHeight')['to'](_0x2e85e7,_0x1cc6('0x29')):_0x1d7811[_0x1cc6('0x3c')]=null;}),_0x1d7811;}[_0x1cc6('0x31')](){var _0x1ffdc2;this[_0x1cc6('0x37')]=(null===(_0x1ffdc2=this['_annotations'])||void 0x0===_0x1ffdc2?void 0x0:_0x1ffdc2[_0x1cc6('0x3e')])?this[_0x1cc6('0x24')](this['_annotations'][_0x1cc6('0x3e')]):null;}['_getItemBefore'](_0x3cc073){var _0x5466d5;const _0x17fb42=this[_0x1cc6('0x33')][_0x1cc6('0x2')](_0x3cc073),_0x5e021e=_0x17fb42&&(null===(_0x5466d5=this[_0x1cc6('0x1a')])||void 0x0===_0x5466d5?void 0x0:_0x5466d5[_0x1cc6('0x2')](this[_0x1cc6('0x1a')][_0x1cc6('0xc')](_0x17fb42)-0x1));return _0x5e021e&&this[_0x1cc6('0x24')](_0x5e021e)||null;}['_getItemAfter'](_0x5131fe){var _0x110130;const _0x12d713=this[_0x1cc6('0x33')][_0x1cc6('0x2')](_0x5131fe),_0x4ac6cc=_0x12d713&&(null===(_0x110130=this[_0x1cc6('0x1a')])||void 0x0===_0x110130?void 0x0:_0x110130[_0x1cc6('0x2')](this[_0x1cc6('0x1a')][_0x1cc6('0xc')](_0x12d713)+0x1));return _0x4ac6cc&&this[_0x1cc6('0x24')](_0x4ac6cc)||null;}[_0x1cc6('0x3')](_0x478e85,_0x1d5df8){_0x478e85[_0x1cc6('0x3d')]();const _0x3dfd07=M(_0x1d5df8['bottom']+this[_0x1cc6('0x7')],_0x478e85[_0x1cc6('0x20')]);return!!_0x3dfd07&&(this[_0x1cc6('0x26')](_0x1d5df8,_0x1d5df8[_0x1cc6('0x20')]-_0x3dfd07),!0x0);}[_0x1cc6('0x40')](_0x4e02a2,_0x5be2eb){_0x4e02a2['updateHeight']();const _0x3b10af=M(_0x4e02a2[_0x1cc6('0x29')]+this[_0x1cc6('0x7')],_0x5be2eb['top']);return!!_0x3b10af&&(this[_0x1cc6('0x26')](_0x5be2eb,_0x5be2eb['top']+_0x3b10af,!0x1),!0x0);}[_0x1cc6('0x0')](_0xefdf4f){const _0x11dc85=this[_0x1cc6('0x33')][_0x1cc6('0x2')](_0xefdf4f);if(!_0x11dc85||!_0x11dc85['target']||!_0x11dc85['targetRect'])return;const _0x42ccb1=this[_0x1cc6('0x1c')](_0x11dc85,_0x11dc85[_0x1cc6('0xd')]);this[_0x1cc6('0x26')](_0xefdf4f,_0x42ccb1);}[_0x1cc6('0x1c')](_0x2fcba0,_0x13c86e){if(null===_0x13c86e)return 0x0;if(_0x2fcba0[_0x1cc6('0x38')]instanceof _0x264c12)return _0x13c86e[_0x1cc6('0x20')];{const _0x36e4b7=new _0x264c12(this[_0x1cc6('0x23')][_0x1cc6('0x13')])['top'];return _0x13c86e[_0x1cc6('0x20')]-_0x36e4b7;}}[_0x1cc6('0x26')](_0x5c80ba,_0x104732,_0x2d89bd=this[_0x1cc6('0x2e')][_0x1cc6('0x2f')][_0x1cc6('0x2')]('sidebar.preventScrollOutOfView')){_0x2d89bd&&(_0x104732=Math[_0x1cc6('0x42')](_0x104732,this['_getMaxAvailableTop'](_0x5c80ba))),_0x5c80ba[_0x1cc6('0x20')]=_0x104732;}[_0x1cc6('0x36')](_0x5a09f2){let _0x5e04b2=this[_0x1cc6('0xf')](_0x5a09f2),_0x3d504d=0x0;for(;_0x5e04b2;)_0x5e04b2[_0x1cc6('0x3d')](),_0x3d504d+=this[_0x1cc6('0x7')]+_0x5e04b2[_0x1cc6('0x41')],_0x5e04b2=this['_getItemBefore'](_0x5e04b2);return _0x3d504d;}}function M(_0x3cc541,_0x8c715a){return Math[_0x1cc6('0x42')](_0x3cc541-_0x8c715a,0x0);}function y(_0x10291f){return null!==_0x10291f&&_0x1cc6('0x4')==typeof _0x10291f&&0x1===_0x10291f['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a10=['setTemplate','ck-annotation-counter__badge','set','annotationType','ck-annotation-counter__badge--edit-mode','extendTemplate','_badge','add','...','ck-annotation-counter__badge--','number','span','bindTemplate','isDirty','bind','toString','counterView','icon'];(function(_0x45d61a,_0x4a10e7){const _0x1dd2ae=function(_0x172fa0){while(--_0x172fa0){_0x45d61a['push'](_0x45d61a['shift']());}};_0x1dd2ae(++_0x4a10e7);}(_0x4a10,0x189));const _0x1dd2=function(_0x45d61a,_0x4a10e7){_0x45d61a=_0x45d61a-0x0;let _0x1dd2ae=_0x4a10[_0x45d61a];return _0x1dd2ae;};import{ButtonView as _0x3741e3,View as _0x1db57e}from'ckeditor5/src/ui.js';import _0x340024 from'../../../theme/icons/add-comment.svg';export default class D extends _0x3741e3{constructor(_0x7578a){super(_0x7578a);const _0x552a9=this[_0x1dd2('0xf')];this[_0x1dd2('0x5')](_0x1dd2('0x10'),!0x1),this[_0x1dd2('0x5')](_0x1dd2('0xd'),0x0),this[_0x1dd2('0x11')](_0x1dd2('0x9'))['to'](this,_0x1dd2('0x10'),this,_0x1dd2('0xd'),(_0x44590a,_0x2d98ad)=>_0x44590a?_0x1dd2('0xb'):_0x2d98ad[_0x1dd2('0x0')]()),this[_0x1dd2('0x5')]('annotationType',''),this[_0x1dd2('0x2')]=_0x340024,this[_0x1dd2('0x8')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x1dd2('0x1')]=new _0x1db57e(),this[_0x1dd2('0x1')][_0x1dd2('0x3')]({'tag':_0x1dd2('0xe'),'attributes':{'class':[_0x1dd2('0x4'),_0x552a9['to'](_0x1dd2('0x6'),_0xa6f5df=>_0x1dd2('0xc')+_0xa6f5df),_0x552a9['if'](_0x1dd2('0x10'),_0x1dd2('0x7'))]},'children':[{'text':_0x552a9['to'](_0x1dd2('0x9'))}]}),this['children'][_0x1dd2('0xa')](this[_0x1dd2('0x1')]);}}
23
+ const _0x34db=['children','_badge','...','ck-annotation-counter','span','ck-annotation-counter__badge--','icon','bind','set','number','ck-annotation-counter__badge','setTemplate','ck-annotation-counter__badge--edit-mode','bindTemplate','toString','extendTemplate','counterView','annotationType','isDirty'];(function(_0x4db76e,_0x34db60){const _0x119a47=function(_0x589065){while(--_0x589065){_0x4db76e['push'](_0x4db76e['shift']());}};_0x119a47(++_0x34db60);}(_0x34db,0x1aa));const _0x119a=function(_0x4db76e,_0x34db60){_0x4db76e=_0x4db76e-0x0;let _0x119a47=_0x34db[_0x4db76e];return _0x119a47;};import{ButtonView as _0x4c151b,View as _0x373b9b}from'ckeditor5/src/ui.js';import _0x38ea64 from'../../../theme/icons/add-comment.svg';export default class D extends _0x4c151b{constructor(_0x589bd1){super(_0x589bd1);const _0x4b541e=this[_0x119a('0x5')];this[_0x119a('0x0')](_0x119a('0xa'),!0x1),this[_0x119a('0x0')](_0x119a('0x1'),0x0),this[_0x119a('0x12')]('_badge')['to'](this,_0x119a('0xa'),this,_0x119a('0x1'),(_0x5490b7,_0x30a858)=>_0x5490b7?_0x119a('0xd'):_0x30a858[_0x119a('0x6')]()),this[_0x119a('0x0')]('annotationType',''),this[_0x119a('0x11')]=_0x38ea64,this[_0x119a('0x7')]({'attributes':{'class':[_0x119a('0xe')]}}),this[_0x119a('0x8')]=new _0x373b9b(),this[_0x119a('0x8')][_0x119a('0x3')]({'tag':_0x119a('0xf'),'attributes':{'class':[_0x119a('0x2'),_0x4b541e['to'](_0x119a('0x9'),_0x41f2d3=>_0x119a('0x10')+_0x41f2d3),_0x4b541e['if'](_0x119a('0xa'),_0x119a('0x4'))]},'children':[{'text':_0x4b541e['to'](_0x119a('0xc'))}]}),this[_0x119a('0xb')]['add'](this['counterView']);}}