@ckeditor/ckeditor5-comments 0.0.0-nightly-20231228.0 → 0.0.0-nightly-20231230.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-20231228.0",
3
+ "version": "0.0.0-nightly-20231230.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-20231228.0",
48
- "ckeditor5-collaboration": "0.0.0-nightly-20231228.0",
47
+ "ckeditor5": "0.0.0-nightly-20231230.0",
48
+ "ckeditor5-collaboration": "0.0.0-nightly-20231230.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 _0x5b80=['type','stopListening','offsetParent','target','getClientRects','annotation-invalid-target','render','_target','focusTracker','item','focusableElements','mainView','length','set','add','_id','targetRect','function','filter','every','object','_getNormalizedTarget','isActive','refreshVisibility','nodeType','isVisible','innerView','element','remove','_type','isArray','_assertCorrectTarget','clear','view'];(function(_0x43fee8,_0x5b8004){const _0x2d54f1=function(_0x1ac555){while(--_0x1ac555){_0x43fee8['push'](_0x43fee8['shift']());}};_0x2d54f1(++_0x5b8004);}(_0x5b80,0x181));const _0x2d54=function(_0x43fee8,_0x5b8004){_0x43fee8=_0x43fee8-0x0;let _0x2d54f1=_0x5b80[_0x43fee8];return _0x2d54f1;};import{CKEditorError as _0x1198ba,Rect as _0x19688f,Collection as _0x2e37b1,ObservableMixin as _0x402cc2}from'ckeditor5/src/utils.js';export default class d extends _0x402cc2(){constructor({view:_0x908cae,target:_0x392700,type:_0x33efa2,isVisible:_0x4e3637=!0x0}){super(),this[_0x2d54('0x16')]=_0x908cae,this['view'][_0x2d54('0x10')]||this[_0x2d54('0x16')][_0x2d54('0x1d')](),this[_0x2d54('0x12')]=_0x33efa2,this['_target']=_0x392700,d[_0x2d54('0x14')](this['_getNormalizedTarget']()),this[_0x2d54('0x21')]=new _0x2e37b1([this[_0x2d54('0x16')][_0x2d54('0x10')]],{'idProperty':_0x2d54('0x4')}),this['focusableElements']['on'](_0x2d54('0x3'),(_0x31b244,_0x34173a)=>{this[_0x2d54('0x16')]['focusTracker']['add'](_0x34173a);}),this[_0x2d54('0x21')]['on']('remove',(_0x490c62,_0x2691ee)=>{this[_0x2d54('0x16')][_0x2d54('0x1f')][_0x2d54('0x11')](_0x2691ee);}),this[_0x2d54('0x2')](_0x2d54('0xe'),_0x4e3637);}get[_0x2d54('0x17')](){return _0x2d54('0x6')==typeof this[_0x2d54('0x12')]?this['_type']():this['_type'];}get[_0x2d54('0xf')](){return this[_0x2d54('0x16')][_0x2d54('0x0')];}get[_0x2d54('0x1a')](){const _0x47043b=this[_0x2d54('0xa')]();return d[_0x2d54('0x14')](_0x47043b),_0x47043b;}get['targetRect'](){const _0x5e36ab=this[_0x2d54('0x1a')];if(null===_0x5e36ab)return null;if(_0x5e36ab instanceof _0x19688f)return _0x5e36ab;const _0x35b105=_0x5e36ab[_0x2d54('0x7')](_0x4a6ed7=>function(_0xb0b43d){const _0x5b1b3e=_0xb0b43d[_0x2d54('0x19')];if(_0x5b1b3e)return!0x0;const _0x4000d7=_0xb0b43d['getClientRects']()['item'](0x0);return!!_0x4000d7;}(_0x4a6ed7));return 0x0===_0x35b105[_0x2d54('0x1')]?null:new _0x19688f(_0x35b105[0x0][_0x2d54('0x1b')]()[_0x2d54('0x20')](0x0));}get['isActive'](){return this[_0x2d54('0x16')]['isActive'];}set[_0x2d54('0xb')](_0x1034c0){this[_0x2d54('0x16')][_0x2d54('0xb')]=_0x1034c0,this[_0x2d54('0x16')][_0x2d54('0x0')][_0x2d54('0xb')]=_0x1034c0;}['updateTargetRect'](){this[_0x2d54('0x16')]['targetRect']=this[_0x2d54('0x5')];}['destroy'](){this['focusableElements'][_0x2d54('0x18')](),this[_0x2d54('0x21')][_0x2d54('0x15')](),this[_0x2d54('0x18')]();}[_0x2d54('0xc')](){this[_0x2d54('0xe')]=!!this['targetRect'];}static['_assertCorrectTarget'](_0x2ade10){if(!(null===_0x2ade10||_0x2ade10 instanceof _0x19688f||Array[_0x2d54('0x13')](_0x2ade10)&&_0x2ade10[_0x2d54('0x8')](_0x173981=>y(_0x173981))))throw new _0x1198ba(_0x2d54('0x1c'),null,{'target':_0x2ade10});}['_getNormalizedTarget'](){const _0x10bc69=_0x2d54('0x6')==typeof this[_0x2d54('0x1e')]?this[_0x2d54('0x1e')]():this['_target'];return y(_0x10bc69)?[_0x10bc69]:_0x10bc69;}}function y(_0x3ae466){return null!==_0x3ae466&&_0x2d54('0x9')==typeof _0x3ae466&&_0x2d54('0xd')in _0x3ae466&&0x1===_0x3ae466[_0x2d54('0xd')];}
23
+ const _0x36d0=['render','focusTracker','_getNormalizedTarget','isActive','_type','remove','filter','nodeType','add','focusableElements','_target','target','stopListening','_assertCorrectTarget','annotation-invalid-target','isArray','item','clear','isVisible','type','function','element','targetRect','innerView','object','getClientRects','set','view','mainView','updateTargetRect'];(function(_0x4a3979,_0x36d071){const _0x1e6c84=function(_0x261ded){while(--_0x261ded){_0x4a3979['push'](_0x4a3979['shift']());}};_0x1e6c84(++_0x36d071);}(_0x36d0,0x19c));const _0x1e6c=function(_0x4a3979,_0x36d071){_0x4a3979=_0x4a3979-0x0;let _0x1e6c84=_0x36d0[_0x4a3979];return _0x1e6c84;};import{CKEditorError as _0x136f31,Rect as _0x1ad159,Collection as _0xf4519,ObservableMixin as _0x13e87c}from'ckeditor5/src/utils.js';export default class d extends _0x13e87c(){constructor({view:_0x2c5192,target:_0x476d01,type:_0x2aa15e,isVisible:_0xf8329b=!0x0}){super(),this[_0x1e6c('0x5')]=_0x2c5192,this[_0x1e6c('0x5')][_0x1e6c('0x1d')]||this[_0x1e6c('0x5')][_0x1e6c('0x8')](),this[_0x1e6c('0xc')]=_0x2aa15e,this[_0x1e6c('0x12')]=_0x476d01,d[_0x1e6c('0x15')](this[_0x1e6c('0xa')]()),this['focusableElements']=new _0xf4519([this['view'][_0x1e6c('0x1d')]],{'idProperty':'_id'}),this[_0x1e6c('0x11')]['on'](_0x1e6c('0x10'),(_0x1aa3a9,_0x2b426a)=>{this[_0x1e6c('0x5')][_0x1e6c('0x9')][_0x1e6c('0x10')](_0x2b426a);}),this['focusableElements']['on'](_0x1e6c('0xd'),(_0x3edcc2,_0xfd4bb2)=>{this[_0x1e6c('0x5')][_0x1e6c('0x9')][_0x1e6c('0xd')](_0xfd4bb2);}),this[_0x1e6c('0x4')]('isVisible',_0xf8329b);}get[_0x1e6c('0x1b')](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get[_0x1e6c('0x1')](){return this[_0x1e6c('0x5')][_0x1e6c('0x6')];}get[_0x1e6c('0x13')](){const _0x9b670d=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x9b670d),_0x9b670d;}get[_0x1e6c('0x0')](){const _0x475082=this[_0x1e6c('0x13')];if(null===_0x475082)return null;if(_0x475082 instanceof _0x1ad159)return _0x475082;const _0x8a825e=_0x475082[_0x1e6c('0xe')](_0x26a2db=>function(_0x656f7a){const _0xbf0ea3=_0x656f7a['offsetParent'];if(_0xbf0ea3)return!0x0;const _0x25e2c4=_0x656f7a[_0x1e6c('0x3')]()[_0x1e6c('0x18')](0x0);return!!_0x25e2c4;}(_0x26a2db));return 0x0===_0x8a825e['length']?null:new _0x1ad159(_0x8a825e[0x0][_0x1e6c('0x3')]()[_0x1e6c('0x18')](0x0));}get[_0x1e6c('0xb')](){return this[_0x1e6c('0x5')]['isActive'];}set['isActive'](_0x1a066a){this['view'][_0x1e6c('0xb')]=_0x1a066a,this[_0x1e6c('0x5')][_0x1e6c('0x6')][_0x1e6c('0xb')]=_0x1a066a;}[_0x1e6c('0x7')](){this[_0x1e6c('0x5')][_0x1e6c('0x0')]=this[_0x1e6c('0x0')];}['destroy'](){this[_0x1e6c('0x11')]['stopListening'](),this['focusableElements'][_0x1e6c('0x19')](),this[_0x1e6c('0x14')]();}['refreshVisibility'](){this[_0x1e6c('0x1a')]=!!this['targetRect'];}static['_assertCorrectTarget'](_0x10b3e0){if(!(null===_0x10b3e0||_0x10b3e0 instanceof _0x1ad159||Array[_0x1e6c('0x17')](_0x10b3e0)&&_0x10b3e0['every'](_0x4eb41b=>y(_0x4eb41b))))throw new _0x136f31(_0x1e6c('0x16'),null,{'target':_0x10b3e0});}['_getNormalizedTarget'](){const _0x594c13=_0x1e6c('0x1c')==typeof this['_target']?this[_0x1e6c('0x12')]():this[_0x1e6c('0x12')];return y(_0x594c13)?[_0x594c13]:_0x594c13;}}function y(_0xa0f5d7){return null!==_0xa0f5d7&&_0x1e6c('0x2')==typeof _0xa0f5d7&&_0x1e6c('0xf')in _0xa0f5d7&&0x1===_0xa0f5d7[_0x1e6c('0xf')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f0d=['annotationcollection-duplicated-item','set','delete','getByView','getIndex','_focusTracker','change:isFocused','updateTargetRect','innerView','focusTracker','fire','listenTo','focusableElements','blur','remove','add','view','isFocused','_sort','sort','get','destroy','refreshPositioning','clear','has','targetRect','_innerViewToAnnotation','_viewToAnnotation','focus','_getOrderInContent','top','stopListening'];(function(_0x34f09b,_0x2f0d56){const _0x19b74b=function(_0x549339){while(--_0x549339){_0x34f09b['push'](_0x34f09b['shift']());}};_0x19b74b(++_0x2f0d56);}(_0x2f0d,0x142));const _0x19b7=function(_0x34f09b,_0x2f0d56){_0x34f09b=_0x34f09b-0x0;let _0x19b74b=_0x2f0d[_0x34f09b];return _0x19b74b;};import{CKEditorError as _0x4b5f02,Collection as _0x19818c,FocusTracker as _0x3b85c2}from'ckeditor5/src/utils.js';export default class x extends _0x19818c{constructor(_0x3ee3ed=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x19b7('0x19')]=new Map(),this[_0x19b7('0x3')]=new _0x3b85c2(),this[_0x19b7('0x3')]['on'](_0x19b7('0x4'),(_0x1795ba,_0x28952d,_0x2f439e)=>{_0x2f439e||this[_0x19b7('0x8')](_0x19b7('0xb'));});for(const _0x20a449 of _0x3ee3ed)this[_0x19b7('0xd')](_0x20a449);}get[_0x19b7('0xf')](){return this[_0x19b7('0x3')][_0x19b7('0xf')];}[_0x19b7('0xd')](_0x4d3658){if(this[_0x19b7('0x16')](_0x4d3658))throw new _0x4b5f02(_0x19b7('0x1e'),null);this['_innerViewToAnnotation'][_0x19b7('0x1f')](_0x4d3658[_0x19b7('0x6')],_0x4d3658),this[_0x19b7('0x19')]['set'](_0x4d3658[_0x19b7('0xe')],_0x4d3658);for(const _0x1a3ea2 of _0x4d3658['focusableElements'])this[_0x19b7('0x3')][_0x19b7('0xd')](_0x1a3ea2);this['listenTo'](_0x4d3658[_0x19b7('0xa')],_0x19b7('0xd'),(_0x348a74,_0x356d02)=>{this[_0x19b7('0x3')]['add'](_0x356d02);}),this[_0x19b7('0x9')](_0x4d3658['focusableElements'],_0x19b7('0xc'),(_0x4d96a5,_0x1fde2f)=>{this['_focusTracker'][_0x19b7('0xc')](_0x1fde2f);}),this['listenTo'](_0x4d3658['view'][_0x19b7('0x7')],_0x19b7('0x4'),(_0x3bc856,_0x400e42,_0x4c78f4)=>{_0x4c78f4&&this[_0x19b7('0x8')](_0x19b7('0x1a'),_0x4d3658);}),_0x4d3658[_0x19b7('0x5')]();const _0x21defb=this[_0x19b7('0x1b')](_0x4d3658[_0x19b7('0xe')][_0x19b7('0x17')]);return super['add'](_0x4d3658,_0x21defb);}[_0x19b7('0xc')](_0x46a645){if(!this[_0x19b7('0x16')](_0x46a645))throw new _0x4b5f02('annotationcollection-not-existing-item',null);this[_0x19b7('0x1d')](_0x46a645[_0x19b7('0xe')][_0x19b7('0x7')]),this[_0x19b7('0x1d')](_0x46a645[_0x19b7('0xa')]);for(const _0x317089 of _0x46a645[_0x19b7('0xa')])this['_focusTracker']['remove'](_0x317089);return this[_0x19b7('0x19')][_0x19b7('0x0')](_0x46a645[_0x19b7('0xe')]),this[_0x19b7('0x18')][_0x19b7('0x0')](_0x46a645['innerView']),super[_0x19b7('0xc')](_0x46a645);}['getByInnerView'](_0x42ce77){return this[_0x19b7('0x18')][_0x19b7('0x12')](_0x42ce77);}[_0x19b7('0x1')](_0x1912e9){return this['_viewToAnnotation'][_0x19b7('0x12')](_0x1912e9);}['destroy'](){super['clear'](),this[_0x19b7('0x1d')](),this[_0x19b7('0x18')]['clear'](),this[_0x19b7('0x19')][_0x19b7('0x15')](),this[_0x19b7('0x3')][_0x19b7('0x13')]();}[_0x19b7('0x14')](){for(const _0x1ad1a5 of this)_0x1ad1a5[_0x19b7('0x5')]();this[_0x19b7('0x10')]();}[_0x19b7('0x10')](){const _0x645e70=Array['from'](this)[_0x19b7('0x11')]((_0x4cd2b6,_0x3db6a9)=>v(_0x4cd2b6[_0x19b7('0xe')][_0x19b7('0x17')],_0x3db6a9[_0x19b7('0xe')][_0x19b7('0x17')]));for(let _0x446c0e=_0x645e70['length']-0x1;_0x446c0e>0x0;_0x446c0e--){const _0x3bac91=_0x645e70[_0x446c0e];_0x446c0e!==this[_0x19b7('0x2')](_0x3bac91)&&(this[_0x19b7('0xc')](_0x3bac91),this[_0x19b7('0xd')](_0x3bac91));}}[_0x19b7('0x1b')](_0x5c169e){let _0x2e3b38=0x0;if(!_0x5c169e)return this['length'];for(const _0x4fb35b of this){const _0x4b7da8=_0x4fb35b[_0x19b7('0xe')][_0x19b7('0x17')];if(_0x4b7da8){if(v(_0x5c169e,_0x4b7da8)<0x0)return _0x2e3b38;_0x2e3b38++;}}return _0x2e3b38;}}export function bindAnnotationCollections({source:_0x10417d,target:_0x259d1f,filter:_0x110024}){for(const _0x478210 of _0x10417d)_0x110024(_0x478210)&&_0x259d1f[_0x19b7('0xd')](_0x478210);_0x259d1f['listenTo'](_0x10417d,_0x19b7('0xd'),(_0x39d5bd,_0x768061)=>{_0x110024(_0x768061)&&_0x259d1f[_0x19b7('0xd')](_0x768061);}),_0x259d1f[_0x19b7('0x9')](_0x10417d,_0x19b7('0xc'),(_0x1faa57,_0x3ad4d4)=>{_0x259d1f[_0x19b7('0x16')](_0x3ad4d4)&&_0x259d1f[_0x19b7('0xc')](_0x3ad4d4);});}function v(_0x3f13e6,_0x1cf9a0){if(null===_0x3f13e6&&null===_0x1cf9a0)return 0x0;if(null===_0x3f13e6)return-0x1;if(null===_0x1cf9a0)return 0x1;const _0x5a4f71=_0x3f13e6[_0x19b7('0x1c')]-_0x1cf9a0['top'];return 0x0==_0x5a4f71?_0x3f13e6['left']-_0x1cf9a0['left']:_0x5a4f71;}
23
+ const _0x1cca=['has','listenTo','focusTracker','add','delete','_viewToAnnotation','targetRect','change:isFocused','blur','_focusTracker','view','_sort','destroy','get','focusableElements','getByInnerView','_innerViewToAnnotation','set','stopListening','clear','getIndex','fire','refreshPositioning','_getOrderInContent','length','sort','remove','isFocused','annotationcollection-duplicated-item','left','focus'];(function(_0xd0b42,_0x1cca8f){const _0x403292=function(_0x351092){while(--_0x351092){_0xd0b42['push'](_0xd0b42['shift']());}};_0x403292(++_0x1cca8f);}(_0x1cca,0x67));const _0x4032=function(_0xd0b42,_0x1cca8f){_0xd0b42=_0xd0b42-0x0;let _0x403292=_0x1cca[_0xd0b42];return _0x403292;};import{CKEditorError as _0x424b44,Collection as _0x5a22fb,FocusTracker as _0x1a59ab}from'ckeditor5/src/utils.js';export default class x extends _0x5a22fb{constructor(_0x5b7cfd=[]){super(),this[_0x4032('0x6')]=new Map(),this[_0x4032('0x1a')]=new Map(),this[_0x4032('0x1e')]=new _0x1a59ab(),this[_0x4032('0x1e')]['on'](_0x4032('0x1c'),(_0x5a719b,_0x46dc9e,_0xf0666a)=>{_0xf0666a||this[_0x4032('0xb')](_0x4032('0x1d'));});for(const _0x106d14 of _0x5b7cfd)this['add'](_0x106d14);}get[_0x4032('0x11')](){return this[_0x4032('0x1e')]['isFocused'];}[_0x4032('0x18')](_0xcb917e){if(this['has'](_0xcb917e))throw new _0x424b44(_0x4032('0x12'),null);this[_0x4032('0x6')]['set'](_0xcb917e['innerView'],_0xcb917e),this[_0x4032('0x1a')][_0x4032('0x7')](_0xcb917e[_0x4032('0x0')],_0xcb917e);for(const _0x3353dc of _0xcb917e[_0x4032('0x4')])this[_0x4032('0x1e')]['add'](_0x3353dc);this[_0x4032('0x16')](_0xcb917e[_0x4032('0x4')],_0x4032('0x18'),(_0x2066ce,_0x30031e)=>{this[_0x4032('0x1e')][_0x4032('0x18')](_0x30031e);}),this[_0x4032('0x16')](_0xcb917e[_0x4032('0x4')],'remove',(_0x1203a7,_0x45fd08)=>{this[_0x4032('0x1e')]['remove'](_0x45fd08);}),this[_0x4032('0x16')](_0xcb917e[_0x4032('0x0')][_0x4032('0x17')],_0x4032('0x1c'),(_0xb1e507,_0x4b345c,_0x2c892d)=>{_0x2c892d&&this[_0x4032('0xb')](_0x4032('0x14'),_0xcb917e);}),_0xcb917e['updateTargetRect']();const _0x352bcd=this[_0x4032('0xd')](_0xcb917e[_0x4032('0x0')][_0x4032('0x1b')]);return super['add'](_0xcb917e,_0x352bcd);}[_0x4032('0x10')](_0x3b69d4){if(!this[_0x4032('0x15')](_0x3b69d4))throw new _0x424b44('annotationcollection-not-existing-item',null);this[_0x4032('0x8')](_0x3b69d4[_0x4032('0x0')][_0x4032('0x17')]),this['stopListening'](_0x3b69d4[_0x4032('0x4')]);for(const _0x577204 of _0x3b69d4['focusableElements'])this[_0x4032('0x1e')]['remove'](_0x577204);return this['_viewToAnnotation']['delete'](_0x3b69d4['view']),this[_0x4032('0x6')][_0x4032('0x19')](_0x3b69d4['innerView']),super[_0x4032('0x10')](_0x3b69d4);}[_0x4032('0x5')](_0x41eab7){return this[_0x4032('0x6')][_0x4032('0x3')](_0x41eab7);}['getByView'](_0x30c020){return this['_viewToAnnotation']['get'](_0x30c020);}[_0x4032('0x2')](){super[_0x4032('0x9')](),this[_0x4032('0x8')](),this[_0x4032('0x6')][_0x4032('0x9')](),this[_0x4032('0x1a')]['clear'](),this[_0x4032('0x1e')]['destroy']();}[_0x4032('0xc')](){for(const _0x139748 of this)_0x139748['updateTargetRect']();this[_0x4032('0x1')]();}['_sort'](){const _0x10b1f5=Array['from'](this)[_0x4032('0xf')]((_0x4dd56f,_0x310d71)=>v(_0x4dd56f['view'][_0x4032('0x1b')],_0x310d71[_0x4032('0x0')][_0x4032('0x1b')]));for(let _0x26100a=_0x10b1f5['length']-0x1;_0x26100a>0x0;_0x26100a--){const _0x15b47a=_0x10b1f5[_0x26100a];_0x26100a!==this[_0x4032('0xa')](_0x15b47a)&&(this[_0x4032('0x10')](_0x15b47a),this[_0x4032('0x18')](_0x15b47a));}}['_getOrderInContent'](_0x4dd115){let _0x5a8330=0x0;if(!_0x4dd115)return this[_0x4032('0xe')];for(const _0x31dd9a of this){const _0x38e898=_0x31dd9a[_0x4032('0x0')][_0x4032('0x1b')];if(_0x38e898){if(v(_0x4dd115,_0x38e898)<0x0)return _0x5a8330;_0x5a8330++;}}return _0x5a8330;}}export function bindAnnotationCollections({source:_0xe65130,target:_0x15c0e2,filter:_0x18cb17}){for(const _0x57fba7 of _0xe65130)_0x18cb17(_0x57fba7)&&_0x15c0e2[_0x4032('0x18')](_0x57fba7);_0x15c0e2[_0x4032('0x16')](_0xe65130,_0x4032('0x18'),(_0x34a734,_0x2791c5)=>{_0x18cb17(_0x2791c5)&&_0x15c0e2[_0x4032('0x18')](_0x2791c5);}),_0x15c0e2[_0x4032('0x16')](_0xe65130,_0x4032('0x10'),(_0x42ee2f,_0x5cf2d2)=>{_0x15c0e2[_0x4032('0x15')](_0x5cf2d2)&&_0x15c0e2['remove'](_0x5cf2d2);});}function v(_0x433e8f,_0x3b1b68){if(null===_0x433e8f&&null===_0x3b1b68)return 0x0;if(null===_0x433e8f)return-0x1;if(null===_0x3b1b68)return 0x1;const _0x262781=_0x433e8f['top']-_0x3b1b68['top'];return 0x0==_0x262781?_0x433e8f[_0x4032('0x13')]-_0x3b1b68[_0x4032('0x13')]:_0x262781;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14da=['Annotations','has','listenTo','createAnnotation','_bindAnnotationsToVisibleAnnotations','deactivateAll','stopListening','_activateAnnotation','isVisible','refreshVisibility','destroy','collection','fire','getByInnerView','refreshPositioning','set','view','pluginName','activeAnnotations','change:isVisible','_removeActiveAnnotation','add','createAnnotationView','_visibleAnnotations','remove','_deactivateAllAnnotations','activate'];(function(_0x1b02c2,_0x14da6e){const _0x531c6d=function(_0x3f23d4){while(--_0x3f23d4){_0x1b02c2['push'](_0x1b02c2['shift']());}};_0x531c6d(++_0x14da6e);}(_0x14da,0xd5));const _0x531c=function(_0x1b02c2,_0x14da6e){_0x1b02c2=_0x1b02c2-0x0;let _0x531c6d=_0x14da[_0x1b02c2];return _0x531c6d;};import{ContextPlugin as _0x357348}from'ckeditor5/src/core.js';import _0x145047 from'./annotation.js';import _0x48dd61 from'./annotationcollection.js';import _0x3bd318 from'./view/annotationview.js';export default class b extends _0x357348{static get[_0x531c('0x14')](){return _0x531c('0x3');}constructor(_0xaeec69){super(_0xaeec69),this[_0x531c('0xe')]=new _0x48dd61(),this[_0x531c('0x1a')]=new _0x48dd61(),this[_0x531c('0x12')](_0x531c('0x15'),new Set()),this[_0x531c('0x7')]();}[_0x531c('0x18')](_0x488402){this[_0x531c('0xe')][_0x531c('0x18')](_0x488402);}[_0x531c('0x0')](_0x3e85a4){this[_0x531c('0xe')][_0x531c('0x0')](_0x3e85a4),_0x3e85a4[_0x531c('0xd')]();}[_0x531c('0xc')](){for(const _0x46037b of this[_0x531c('0xe')])_0x46037b[_0x531c('0xc')]();}[_0x531c('0x11')](){this[_0x531c('0x1a')][_0x531c('0x11')]();}['getByInnerView'](_0x3dd2e2){return this['collection'][_0x531c('0x10')](_0x3dd2e2);}[_0x531c('0x8')](){this[_0x531c('0xf')](_0x531c('0x1'));}[_0x531c('0xd')](){for(const _0x192630 of this[_0x531c('0xe')])_0x192630['destroy']();this['_visibleAnnotations'][_0x531c('0xd')](),this[_0x531c('0xe')][_0x531c('0xd')](),super[_0x531c('0xd')]();}[_0x531c('0x2')](_0x2c3c3e){this[_0x531c('0xf')](_0x531c('0xa'),_0x2c3c3e);}[_0x531c('0x6')](_0x2464d5){return new _0x145047(_0x2464d5);}[_0x531c('0x19')](_0x51d125,_0x4d1c31){return new _0x3bd318(_0x51d125,_0x4d1c31);}['_addActiveAnnotation'](_0x1c2ee9){const _0x14d001=new Set(this[_0x531c('0x15')]);_0x14d001[_0x531c('0x18')](_0x1c2ee9),this[_0x531c('0x15')]=_0x14d001;}[_0x531c('0x17')](_0x14a88f){const _0x26d2b6=new Set(this[_0x531c('0x15')]);_0x26d2b6['delete'](_0x14a88f),this[_0x531c('0x15')]=_0x26d2b6;}[_0x531c('0x7')](){const _0x5b4129=this[_0x531c('0xe')],_0x5e3bdd=this[_0x531c('0x1a')];function _0x2d63f0(_0x133bf1){const _0xc292aa=_0x133bf1['source'];_0xc292aa[_0x531c('0xb')]&&!_0x5e3bdd[_0x531c('0x4')](_0xc292aa)?_0x5e3bdd[_0x531c('0x18')](_0xc292aa):!_0xc292aa[_0x531c('0xb')]&&_0x5e3bdd['has'](_0xc292aa)&&_0x5e3bdd[_0x531c('0x0')](_0xc292aa),_0xc292aa['view']['focusTracker'][_0x531c('0x0')](_0xc292aa[_0x531c('0x13')]['element']),_0xc292aa[_0x531c('0x13')]['focusTracker'][_0x531c('0x18')](_0xc292aa[_0x531c('0x13')]['element']);}this[_0x531c('0x5')](_0x5b4129,_0x531c('0x18'),(_0x308a71,_0x49db13)=>{_0x49db13[_0x531c('0xb')]&&_0x5e3bdd['add'](_0x49db13),this[_0x531c('0x5')](_0x49db13,'change:isVisible',_0x2d63f0);}),this[_0x531c('0x5')](_0x5b4129,_0x531c('0x0'),(_0x4265e7,_0x1ad302)=>{_0x5e3bdd[_0x531c('0x4')](_0x1ad302)&&_0x5e3bdd['remove'](_0x1ad302),this[_0x531c('0x9')](_0x1ad302,_0x531c('0x16'),_0x2d63f0);});}}
23
+ const _0x5026=['change:isVisible','delete','listenTo','pluginName','remove','element','_removeActiveAnnotation','activeAnnotations','_addActiveAnnotation','stopListening','refreshVisibility','isVisible','_visibleAnnotations','source','destroy','fire','deactivateAll','_activateAnnotation','getByInnerView','has','refreshPositioning','view','add','collection','focusTracker','createAnnotationView','Annotations'];(function(_0x5bab60,_0x5026b5){const _0x17c25b=function(_0x3338e4){while(--_0x3338e4){_0x5bab60['push'](_0x5bab60['shift']());}};_0x17c25b(++_0x5026b5);}(_0x5026,0x1e5));const _0x17c2=function(_0x5bab60,_0x5026b5){_0x5bab60=_0x5bab60-0x0;let _0x17c25b=_0x5026[_0x5bab60];return _0x17c25b;};import{ContextPlugin as _0x118dd}from'ckeditor5/src/core.js';import _0xb24fe3 from'./annotation.js';import _0x23c362 from'./annotationcollection.js';import _0x3083bb from'./view/annotationview.js';export default class b extends _0x118dd{static get[_0x17c2('0x4')](){return _0x17c2('0x0');}constructor(_0x140a92){super(_0x140a92),this['collection']=new _0x23c362(),this[_0x17c2('0xd')]=new _0x23c362(),this['set'](_0x17c2('0x8'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x17c2('0x17')](_0x221b07){this['collection'][_0x17c2('0x17')](_0x221b07);}[_0x17c2('0x5')](_0x5edc75){this[_0x17c2('0x18')][_0x17c2('0x5')](_0x5edc75),_0x5edc75[_0x17c2('0xf')]();}[_0x17c2('0xb')](){for(const _0x3188ab of this[_0x17c2('0x18')])_0x3188ab[_0x17c2('0xb')]();}['refreshPositioning'](){this[_0x17c2('0xd')][_0x17c2('0x15')]();}['getByInnerView'](_0x4fa5e4){return this['collection'][_0x17c2('0x13')](_0x4fa5e4);}[_0x17c2('0x11')](){this[_0x17c2('0x10')]('_deactivateAllAnnotations');}[_0x17c2('0xf')](){for(const _0x36ec73 of this[_0x17c2('0x18')])_0x36ec73[_0x17c2('0xf')]();this[_0x17c2('0xd')][_0x17c2('0xf')](),this[_0x17c2('0x18')][_0x17c2('0xf')](),super[_0x17c2('0xf')]();}['activate'](_0x5e25d6){this['fire'](_0x17c2('0x12'),_0x5e25d6);}['createAnnotation'](_0x401dab){return new _0xb24fe3(_0x401dab);}[_0x17c2('0x1a')](_0xce1e4c,_0x1d5455){return new _0x3083bb(_0xce1e4c,_0x1d5455);}[_0x17c2('0x9')](_0x1d5d36){const _0x3caecb=new Set(this[_0x17c2('0x8')]);_0x3caecb[_0x17c2('0x17')](_0x1d5d36),this[_0x17c2('0x8')]=_0x3caecb;}[_0x17c2('0x7')](_0x56c158){const _0x58e09d=new Set(this[_0x17c2('0x8')]);_0x58e09d[_0x17c2('0x2')](_0x56c158),this[_0x17c2('0x8')]=_0x58e09d;}['_bindAnnotationsToVisibleAnnotations'](){const _0x25b191=this['collection'],_0x3ba277=this[_0x17c2('0xd')];function _0x146177(_0x218a65){const _0x4be4c7=_0x218a65[_0x17c2('0xe')];_0x4be4c7[_0x17c2('0xc')]&&!_0x3ba277[_0x17c2('0x14')](_0x4be4c7)?_0x3ba277[_0x17c2('0x17')](_0x4be4c7):!_0x4be4c7[_0x17c2('0xc')]&&_0x3ba277['has'](_0x4be4c7)&&_0x3ba277[_0x17c2('0x5')](_0x4be4c7),_0x4be4c7[_0x17c2('0x16')]['focusTracker'][_0x17c2('0x5')](_0x4be4c7[_0x17c2('0x16')][_0x17c2('0x6')]),_0x4be4c7[_0x17c2('0x16')][_0x17c2('0x19')][_0x17c2('0x17')](_0x4be4c7[_0x17c2('0x16')][_0x17c2('0x6')]);}this[_0x17c2('0x3')](_0x25b191,'add',(_0xc9ea9d,_0x53cc77)=>{_0x53cc77[_0x17c2('0xc')]&&_0x3ba277[_0x17c2('0x17')](_0x53cc77),this[_0x17c2('0x3')](_0x53cc77,_0x17c2('0x1'),_0x146177);}),this[_0x17c2('0x3')](_0x25b191,_0x17c2('0x5'),(_0x35e415,_0xcb8e8)=>{_0x3ba277[_0x17c2('0x14')](_0xcb8e8)&&_0x3ba277[_0x17c2('0x5')](_0xcb8e8),this[_0x17c2('0xa')](_0xcb8e8,_0x17c2('0x1'),_0x146177);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x394e=['function','from','activate','isActive','listenTo','pluginName','_uisData','refilterAnnotations','set','type','destroy','_assertAnnotationDoesNotBelongToMultipleUIs','annotationsuis-register-already-registered','_uis','attach','register','context','has','_setSelectedAnnotations','annotationsuis-missing-ui','annotationsuis-register-invalid-interface','get','deactivate','add','remove','activeUIs','_activateAnnotation','switchTo','hasActive','_deactivateAllAnnotations','AnnotationsUIs','detach','deactivateAll','stopListening','length','filter','delete','plugins','collection','setActiveAnnotation'];(function(_0x46d4f8,_0x394e6c){const _0x1c9257=function(_0x27ff30){while(--_0x27ff30){_0x46d4f8['push'](_0x46d4f8['shift']());}};_0x1c9257(++_0x394e6c);}(_0x394e,0x76));const _0x1c92=function(_0x46d4f8,_0x394e6c){_0x46d4f8=_0x46d4f8-0x0;let _0x1c9257=_0x394e[_0x46d4f8];return _0x1c9257;};import{ContextPlugin as _0x532fd2}from'ckeditor5/src/core.js';import{CKEditorError as _0x16eb66}from'ckeditor5/src/utils.js';import _0x33b250,{bindAnnotationCollections as _0x3fde29}from'./annotationcollection.js';import _0x578d4f from'./annotations.js';export default class j extends _0x532fd2{static get['requires'](){return[_0x578d4f];}static get[_0x1c92('0x7')](){return _0x1c92('0x20');}constructor(_0x389081){super(_0x389081),this[_0x1c92('0x1b')]=new Set(),this['_uis']=new Map(),this[_0x1c92('0x8')]=new Map();}['init'](){const _0xa94dd5=this[_0x1c92('0x12')][_0x1c92('0x27')][_0x1c92('0x17')](_0x578d4f);this[_0x1c92('0x6')](_0xa94dd5,_0x1c92('0x1c'),(_0x3b9669,_0x281cf8)=>{for(const _0x6bc442 of this[_0x1c92('0x1b')]){const _0x11a24c=this[_0x1c92('0xf')][_0x1c92('0x17')](_0x6bc442);(0x0,this[_0x1c92('0x8')]['get'](_0x6bc442)[_0x1c92('0x25')])(_0x281cf8)&&_0x11a24c[_0x1c92('0x1')](_0x281cf8);}}),this[_0x1c92('0x6')](_0xa94dd5,_0x1c92('0x1f'),()=>{for(const _0x13b315 of this[_0x1c92('0x1b')]){this[_0x1c92('0xf')][_0x1c92('0x17')](_0x13b315)[_0x1c92('0x1')](null);}}),this[_0x1c92('0x6')](_0xa94dd5['_visibleAnnotations'],_0x1c92('0x19'),(_0x49bdb3,_0x103180)=>{this[_0x1c92('0xd')](_0x103180);});}[_0x1c92('0x1e')](){return this[_0x1c92('0x1b')]['size']>0x0;}[_0x1c92('0x5')](_0x511952){return this[_0x1c92('0x1b')]['has'](_0x511952);}[_0x1c92('0x4')](_0x5d60bd,_0x51371f=()=>!0x0){const _0xbaae8d=this['context'][_0x1c92('0x27')][_0x1c92('0x17')](_0x578d4f);if(!this[_0x1c92('0xf')]['has'](_0x5d60bd))throw new _0x16eb66(_0x1c92('0x15'),this,{'uiName':_0x5d60bd});this[_0x1c92('0x5')](_0x5d60bd)&&this[_0x1c92('0x18')](_0x5d60bd),this[_0x1c92('0x1b')][_0x1c92('0x19')](_0x5d60bd);const _0x521ae1=new _0x33b250(),_0x1d825d=_0xbaae8d['_visibleAnnotations'];_0x3fde29({'source':_0x1d825d,'target':_0x521ae1,'filter':_0x51371f}),this[_0x1c92('0x8')][_0x1c92('0xa')](_0x5d60bd,{'collection':_0x521ae1,'filter':_0x51371f});const _0x48993e=this[_0x1c92('0xf')][_0x1c92('0x17')](_0x5d60bd);_0x48993e['attach'](_0x521ae1),this['listenTo'](_0x48993e,'change:activeAnnotation',(_0x3c5bc2,_0x22fd8d,_0x37f479,_0xad043a)=>{_0xad043a&&_0xbaae8d['_removeActiveAnnotation'](_0xad043a),_0x37f479&&_0xbaae8d['_addActiveAnnotation'](_0x37f479);});}[_0x1c92('0x18')](_0xcd0c8){if(this[_0x1c92('0x1b')][_0x1c92('0x26')](_0xcd0c8),!this['_uis'][_0x1c92('0x13')](_0xcd0c8))throw new _0x16eb66('annotationsuis-missing-ui',this,{'uiName':_0xcd0c8});const _0x281afc=this['_uis']['get'](_0xcd0c8);_0x281afc[_0x1c92('0x21')](),this[_0x1c92('0x23')](_0x281afc),this[_0x1c92('0x8')][_0x1c92('0x17')](_0xcd0c8)[_0x1c92('0x0')]['destroy'](),this['_uisData'][_0x1c92('0x26')](_0xcd0c8);}[_0x1c92('0x1d')](_0x3a11cc){if(!this[_0x1c92('0xf')][_0x1c92('0x13')](_0x3a11cc))throw new _0x16eb66(_0x1c92('0x15'),this,{'uiName':_0x3a11cc});const _0x43a734=this[_0x1c92('0x12')][_0x1c92('0x27')][_0x1c92('0x17')](_0x578d4f),_0x9d70ae=Array[_0x1c92('0x3')](_0x43a734['activeAnnotations'])[0x0]||null;this[_0x1c92('0x22')](),this[_0x1c92('0x4')](_0x3a11cc);const _0x5f0dbe=this[_0x1c92('0xf')][_0x1c92('0x17')](_0x3a11cc);_0x5f0dbe[_0x1c92('0x1')](_0x9d70ae),_0x5f0dbe[_0x1c92('0x14')]&&_0x9d70ae&&_0x5f0dbe['_setSelectedAnnotations']([_0x9d70ae]);}['deactivateAll'](){for(const _0x325ce5 of this[_0x1c92('0x1b')])this[_0x1c92('0x18')](_0x325ce5);}[_0x1c92('0x11')](_0x3908d9,_0xc12bd8){if(this[_0x1c92('0xf')][_0x1c92('0x13')](_0x3908d9))throw new _0x16eb66(_0x1c92('0xe'));if(_0x1c92('0x2')!=typeof _0xc12bd8[_0x1c92('0x10')]||'function'!=typeof _0xc12bd8[_0x1c92('0x21')]||_0x1c92('0x2')!=typeof _0xc12bd8[_0x1c92('0x1')])throw new _0x16eb66(_0x1c92('0x16'),null);this['_uis'][_0x1c92('0xa')](_0x3908d9,_0xc12bd8);}[_0x1c92('0x9')](){const _0x5925ae=this[_0x1c92('0x12')][_0x1c92('0x27')]['get'](_0x578d4f)[_0x1c92('0x0')],_0x5e703e=new Map(),_0x701378=Array[_0x1c92('0x3')](this[_0x1c92('0x1b')]);for(const _0x24b8ce of this['activeUIs']){const _0x66f9be=this[_0x1c92('0x8')]['get'](_0x24b8ce)['collection'];for(const _0x2a2779 of _0x66f9be)_0x5e703e[_0x1c92('0xa')](_0x2a2779,_0x24b8ce);}for(const _0x3a4f38 of _0x5925ae){const _0x28a9b3=_0x5e703e[_0x1c92('0x17')](_0x3a4f38);this[_0x1c92('0xd')](_0x3a4f38);const _0x527ad5=_0x701378['find'](_0x77bb62=>this[_0x1c92('0x8')][_0x1c92('0x17')](_0x77bb62)[_0x1c92('0x25')](_0x3a4f38));_0x28a9b3!==_0x527ad5&&(_0x28a9b3&&this[_0x1c92('0x8')]['get'](_0x28a9b3)[_0x1c92('0x0')][_0x1c92('0x1a')](_0x3a4f38),_0x527ad5&&this['_uisData'][_0x1c92('0x17')](_0x527ad5)[_0x1c92('0x0')][_0x1c92('0x19')](_0x3a4f38));}}[_0x1c92('0xc')](){this[_0x1c92('0x22')](),super[_0x1c92('0xc')]();}[_0x1c92('0xd')](_0x3bbecb){const _0x1c7c7c=[];for(const _0x5d4b25 of this[_0x1c92('0x1b')]){(0x0,this[_0x1c92('0x8')][_0x1c92('0x17')](_0x5d4b25)[_0x1c92('0x25')])(_0x3bbecb)&&_0x1c7c7c['push'](_0x5d4b25);}if(_0x1c7c7c[_0x1c92('0x24')]>0x1)throw new _0x16eb66('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x1c7c7c,'annotationType':_0x3bbecb[_0x1c92('0xb')]});}}
23
+ const _0x1309=['_uis','context','change:activeAnnotation','_removeActiveAnnotation','collection','setActiveAnnotation','_activateAnnotation','destroy','plugins','activeAnnotations','find','attach','hasActive','push','get','deactivateAll','set','_visibleAnnotations','annotationsuis-register-invalid-interface','function','stopListening','annotationsuis-register-already-registered','isActive','deactivate','filter','size','add','detach','pluginName','annotationsuis-missing-ui','switchTo','AnnotationsUIs','delete','activate','has','annotationsuis-annotation-mismatch','refilterAnnotations','listenTo','requires','type','from','_uisData','_addActiveAnnotation','_assertAnnotationDoesNotBelongToMultipleUIs','_setSelectedAnnotations','activeUIs'];(function(_0x70a39e,_0x13098b){const _0x4b168b=function(_0x1e6999){while(--_0x1e6999){_0x70a39e['push'](_0x70a39e['shift']());}};_0x4b168b(++_0x13098b);}(_0x1309,0x81));const _0x4b16=function(_0x70a39e,_0x13098b){_0x70a39e=_0x70a39e-0x0;let _0x4b168b=_0x1309[_0x70a39e];return _0x4b168b;};import{ContextPlugin as _0x4538a2}from'ckeditor5/src/core.js';import{CKEditorError as _0x4e2bc3}from'ckeditor5/src/utils.js';import _0x24219f,{bindAnnotationCollections as _0x43c7e3}from'./annotationcollection.js';import _0x2a3fa1 from'./annotations.js';export default class j extends _0x4538a2{static get[_0x4b16('0x1')](){return[_0x2a3fa1];}static get[_0x4b16('0x25')](){return _0x4b16('0x28');}constructor(_0x426c86){super(_0x426c86),this[_0x4b16('0x8')]=new Set(),this['_uis']=new Map(),this[_0x4b16('0x4')]=new Map();}['init'](){const _0x3abadd=this[_0x4b16('0xa')]['plugins'][_0x4b16('0x17')](_0x2a3fa1);this['listenTo'](_0x3abadd,_0x4b16('0xf'),(_0x2169c7,_0x4fd05d)=>{for(const _0x33b704 of this['activeUIs']){const _0x41dae5=this[_0x4b16('0x9')][_0x4b16('0x17')](_0x33b704);(0x0,this[_0x4b16('0x4')][_0x4b16('0x17')](_0x33b704)[_0x4b16('0x21')])(_0x4fd05d)&&_0x41dae5['setActiveAnnotation'](_0x4fd05d);}}),this[_0x4b16('0x0')](_0x3abadd,'_deactivateAllAnnotations',()=>{for(const _0x4321d6 of this[_0x4b16('0x8')]){this[_0x4b16('0x9')][_0x4b16('0x17')](_0x4321d6)['setActiveAnnotation'](null);}}),this[_0x4b16('0x0')](_0x3abadd[_0x4b16('0x1a')],'add',(_0x418b40,_0x4fe7f7)=>{this[_0x4b16('0x6')](_0x4fe7f7);});}[_0x4b16('0x15')](){return this[_0x4b16('0x8')][_0x4b16('0x22')]>0x0;}[_0x4b16('0x1f')](_0x1ecef5){return this['activeUIs'][_0x4b16('0x2b')](_0x1ecef5);}[_0x4b16('0x2a')](_0x7e0df8,_0x5adf12=()=>!0x0){const _0x215ba9=this[_0x4b16('0xa')][_0x4b16('0x11')][_0x4b16('0x17')](_0x2a3fa1);if(!this[_0x4b16('0x9')][_0x4b16('0x2b')](_0x7e0df8))throw new _0x4e2bc3(_0x4b16('0x26'),this,{'uiName':_0x7e0df8});this[_0x4b16('0x1f')](_0x7e0df8)&&this[_0x4b16('0x20')](_0x7e0df8),this[_0x4b16('0x8')][_0x4b16('0x23')](_0x7e0df8);const _0x46c6f2=new _0x24219f(),_0x23bfd3=_0x215ba9['_visibleAnnotations'];_0x43c7e3({'source':_0x23bfd3,'target':_0x46c6f2,'filter':_0x5adf12}),this[_0x4b16('0x4')][_0x4b16('0x19')](_0x7e0df8,{'collection':_0x46c6f2,'filter':_0x5adf12});const _0x4465e9=this[_0x4b16('0x9')][_0x4b16('0x17')](_0x7e0df8);_0x4465e9[_0x4b16('0x14')](_0x46c6f2),this['listenTo'](_0x4465e9,_0x4b16('0xb'),(_0x335251,_0x396201,_0x3654d4,_0x3cb5c9)=>{_0x3cb5c9&&_0x215ba9[_0x4b16('0xc')](_0x3cb5c9),_0x3654d4&&_0x215ba9[_0x4b16('0x5')](_0x3654d4);});}['deactivate'](_0x203e05){if(this[_0x4b16('0x8')][_0x4b16('0x29')](_0x203e05),!this[_0x4b16('0x9')]['has'](_0x203e05))throw new _0x4e2bc3(_0x4b16('0x26'),this,{'uiName':_0x203e05});const _0x359d7a=this[_0x4b16('0x9')]['get'](_0x203e05);_0x359d7a[_0x4b16('0x24')](),this[_0x4b16('0x1d')](_0x359d7a),this[_0x4b16('0x4')][_0x4b16('0x17')](_0x203e05)[_0x4b16('0xd')]['destroy'](),this[_0x4b16('0x4')][_0x4b16('0x29')](_0x203e05);}[_0x4b16('0x27')](_0x2edf0d){if(!this[_0x4b16('0x9')][_0x4b16('0x2b')](_0x2edf0d))throw new _0x4e2bc3(_0x4b16('0x26'),this,{'uiName':_0x2edf0d});const _0x499fc8=this['context']['plugins'][_0x4b16('0x17')](_0x2a3fa1),_0x70ad2d=Array[_0x4b16('0x3')](_0x499fc8[_0x4b16('0x12')])[0x0]||null;this[_0x4b16('0x18')](),this[_0x4b16('0x2a')](_0x2edf0d);const _0x49ef61=this[_0x4b16('0x9')]['get'](_0x2edf0d);_0x49ef61[_0x4b16('0xe')](_0x70ad2d),_0x49ef61[_0x4b16('0x7')]&&_0x70ad2d&&_0x49ef61[_0x4b16('0x7')]([_0x70ad2d]);}[_0x4b16('0x18')](){for(const _0xbdad48 of this[_0x4b16('0x8')])this['deactivate'](_0xbdad48);}['register'](_0x5d3305,_0x55d0b4){if(this[_0x4b16('0x9')][_0x4b16('0x2b')](_0x5d3305))throw new _0x4e2bc3(_0x4b16('0x1e'));if('function'!=typeof _0x55d0b4[_0x4b16('0x14')]||_0x4b16('0x1c')!=typeof _0x55d0b4[_0x4b16('0x24')]||_0x4b16('0x1c')!=typeof _0x55d0b4[_0x4b16('0xe')])throw new _0x4e2bc3(_0x4b16('0x1b'),null);this[_0x4b16('0x9')][_0x4b16('0x19')](_0x5d3305,_0x55d0b4);}[_0x4b16('0x2d')](){const _0x995985=this[_0x4b16('0xa')]['plugins'][_0x4b16('0x17')](_0x2a3fa1)[_0x4b16('0xd')],_0x28ab00=new Map(),_0x2d8c9d=Array['from'](this[_0x4b16('0x8')]);for(const _0x334114 of this['activeUIs']){const _0x2ba8e8=this[_0x4b16('0x4')][_0x4b16('0x17')](_0x334114)[_0x4b16('0xd')];for(const _0x4f261b of _0x2ba8e8)_0x28ab00[_0x4b16('0x19')](_0x4f261b,_0x334114);}for(const _0x253af9 of _0x995985){const _0x4a8e62=_0x28ab00[_0x4b16('0x17')](_0x253af9);this[_0x4b16('0x6')](_0x253af9);const _0x41ee57=_0x2d8c9d[_0x4b16('0x13')](_0x5e9f63=>this[_0x4b16('0x4')][_0x4b16('0x17')](_0x5e9f63)[_0x4b16('0x21')](_0x253af9));_0x4a8e62!==_0x41ee57&&(_0x4a8e62&&this[_0x4b16('0x4')][_0x4b16('0x17')](_0x4a8e62)[_0x4b16('0xd')]['remove'](_0x253af9),_0x41ee57&&this[_0x4b16('0x4')][_0x4b16('0x17')](_0x41ee57)[_0x4b16('0xd')][_0x4b16('0x23')](_0x253af9));}}['destroy'](){this['deactivateAll'](),super[_0x4b16('0x10')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x41e1a7){const _0xcbbacb=[];for(const _0x4ba84b of this[_0x4b16('0x8')]){(0x0,this[_0x4b16('0x4')][_0x4b16('0x17')](_0x4ba84b)['filter'])(_0x41e1a7)&&_0xcbbacb[_0x4b16('0x16')](_0x4ba84b);}if(_0xcbbacb['length']>0x1)throw new _0x4e2bc3(_0x4b16('0x2c'),null,{'matchedUIs':_0xcbbacb,'annotationType':_0x41e1a7[_0x4b16('0x2')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b33=['registerAnnotation','model','pluginName','_editorAnnotationsData','map','has','add','isEqual','editor','refreshSelectedViews','function','remove','sort','uiUpdate','addSourceCollector','editorannotations-invalid-source-callback','from','set','_editorAnnotations','blur','get','getByInnerView','editing','push','innerView','hasDomSelection','document','directChange','getOrderedSelectedAnnotations','annotation','containsRange','change:isFocused','fire','view','listenTo','_dataCollectors','refresh','cancel','getRanges','element','requires','selection','range','isCollapsed','plugins'];(function(_0x4cc619,_0x5b33e6){const _0x2ef1bb=function(_0x13c2d2){while(--_0x13c2d2){_0x4cc619['push'](_0x4cc619['shift']());}};_0x2ef1bb(++_0x5b33e6);}(_0x5b33,0x1a6));const _0x2ef1=function(_0x4cc619,_0x5b33e6){_0x4cc619=_0x4cc619-0x0;let _0x2ef1bb=_0x5b33[_0x4cc619];return _0x2ef1bb;};import{Plugin as _0x19fc60}from'ckeditor5/src/core.js';import{CKEditorError as _0x551b7e}from'ckeditor5/src/utils.js';import{debounce as _0x448509}from'lodash-es';import _0x5b1c8b from'./annotations.js';export default class k extends _0x19fc60{static get[_0x2ef1('0x17')](){return[_0x5b1c8b];}static get[_0x2ef1('0x1e')](){return'EditorAnnotations';}constructor(_0x3ee9e8){super(_0x3ee9e8),this[_0x2ef1('0x12')]=new Set(),this[_0x2ef1('0x1')]=new Set();}['init'](){const _0x453d50=this[_0x2ef1('0x24')],_0x2aae7b=_0x453d50[_0x2ef1('0x1d')][_0x2ef1('0x9')][_0x2ef1('0x18')],_0x4ded38=_0x448509(()=>this[_0x2ef1('0x25')](),0xa);_0x2aae7b['on']('change:range',(_0x2016fb,_0x407d6a)=>{_0x407d6a[_0x2ef1('0xa')]&&(_0x4ded38[_0x2ef1('0x14')](),this[_0x2ef1('0x25')]());}),this[_0x2ef1('0x11')](_0x453d50[_0x2ef1('0x5')]['view']['document'],'change:isFocused',(_0x17be5e,_0x53b839,_0x3b755d)=>{_0x3b755d&&_0x4ded38();}),this[_0x2ef1('0x11')](_0x453d50['ui']['focusTracker'],_0x2ef1('0xe'),(_0x24aec6,_0x6214b1,_0x6129bf)=>{_0x6129bf||_0x453d50['isReadOnly']||this['fire'](_0x2ef1('0x2'),{'isAnnotationTracked':_0x2b0e5d=>this[_0x2ef1('0x1f')][_0x2ef1('0x21')](_0x2b0e5d[_0x2ef1('0x7')])});}),this[_0x2ef1('0x11')](this[_0x2ef1('0x24')]['ui'],'update',()=>this[_0x2ef1('0xf')](_0x2ef1('0x29')));}[_0x2ef1('0x1c')](_0x3cabc7){if(this[_0x2ef1('0x1')][_0x2ef1('0x21')](_0x3cabc7[_0x2ef1('0x10')]))return;this[_0x2ef1('0x1')][_0x2ef1('0x22')](_0x3cabc7[_0x2ef1('0x10')]),this['editor']['ui']['focusTracker'][_0x2ef1('0x22')](_0x3cabc7[_0x2ef1('0x10')][_0x2ef1('0x16')]);const _0x219a41=this[_0x2ef1('0x24')][_0x2ef1('0x1b')][_0x2ef1('0x3')](_0x5b1c8b);this[_0x2ef1('0x11')](_0x219a41['collection'],'remove',(_0x95f43f,_0x2d8a90)=>{this['editor']['ui']['focusTracker'][_0x2ef1('0x27')](_0x2d8a90[_0x2ef1('0x10')]['element']),this[_0x2ef1('0x1')]['delete'](_0x2d8a90[_0x2ef1('0x10')]);});}[_0x2ef1('0x8')](){return this[_0x2ef1('0x24')]['editing'][_0x2ef1('0x10')][_0x2ef1('0x8')];}[_0x2ef1('0x2a')](_0x38f5f1){if(_0x2ef1('0x26')!=typeof _0x38f5f1)throw new _0x551b7e(_0x2ef1('0x2b'));this[_0x2ef1('0x12')][_0x2ef1('0x22')](_0x38f5f1);}[_0x2ef1('0x25')](){this[_0x2ef1('0xf')](_0x2ef1('0x13'));}[_0x2ef1('0xb')]({activeAnnotation:_0x122b36,annotations:_0x4f97eb}){const _0x51df70=[],_0x980627=this['editor']['model'][_0x2ef1('0x9')][_0x2ef1('0x18')],_0x3b095c=Array[_0x2ef1('0x2c')](_0x980627[_0x2ef1('0x15')]());for(const [_0x89265f,_0x3f1fde]of this['_editorAnnotationsData']){const _0x47bd16=_0x3e4074(_0x3f1fde),_0x1faaa6=_0x4f97eb[_0x2ef1('0x4')](_0x89265f);_0x47bd16&&_0x1faaa6&&_0x51df70[_0x2ef1('0x6')]({'annotation':_0x1faaa6,'range':_0x47bd16});}function _0x3e4074(_0x390375){for(const _0x2080c8 of _0x390375)for(const _0x226431 of _0x3b095c)if(_0x2080c8[_0x2ef1('0xd')](_0x226431,!_0x980627[_0x2ef1('0x1a')]))return _0x2080c8;return null;}return _0x51df70[_0x2ef1('0x28')]((_0x194a6d,_0xca4c0a)=>{const _0x49da5a=_0x194a6d[_0x2ef1('0x19')],_0x3c6ed9=_0xca4c0a['range'];if(!_0x49da5a[_0x2ef1('0x23')](_0x3c6ed9)){if(_0x49da5a[_0x2ef1('0xd')](_0x3c6ed9,!0x0))return 0x1;if(_0x3c6ed9['containsRange'](_0x49da5a,!0x0))return-0x1;}return _0x194a6d[_0x2ef1('0xc')]==_0x122b36?-0x1:_0xca4c0a[_0x2ef1('0xc')]==_0x122b36?0x1:0x0;})[_0x2ef1('0x20')](_0x2fbf71=>_0x2fbf71[_0x2ef1('0xc')]);}get[_0x2ef1('0x1f')](){const _0x1b89a0=new Map();for(const _0x12c8ad of Array[_0x2ef1('0x2c')](this[_0x2ef1('0x12')]))for(const [_0x2e03ab,_0x14b051]of _0x12c8ad())_0x1b89a0[_0x2ef1('0x0')](_0x2e03ab,_0x14b051);return _0x1b89a0;}}
23
+ const _0x1b50=['has','registerAnnotation','remove','editor','change:isFocused','_editorAnnotationsData','_dataCollectors','cancel','change:range','get','isCollapsed','focusTracker','annotation','update','from','fire','model','requires','blur','sort','containsRange','init','refresh','hasDomSelection','innerView','collection','isEqual','editing','document','getRanges','map','_editorAnnotations','delete','getOrderedSelectedAnnotations','range','plugins','refreshSelectedViews','view','listenTo','uiUpdate','selection','set'];(function(_0x532731,_0x1b5007){const _0x4033af=function(_0x3d7e7b){while(--_0x3d7e7b){_0x532731['push'](_0x532731['shift']());}};_0x4033af(++_0x1b5007);}(_0x1b50,0x1c1));const _0x4033=function(_0x532731,_0x1b5007){_0x532731=_0x532731-0x0;let _0x4033af=_0x1b50[_0x532731];return _0x4033af;};import{Plugin as _0x3e2cf8}from'ckeditor5/src/core.js';import{CKEditorError as _0x2de745}from'ckeditor5/src/utils.js';import{debounce as _0x2ce6c8}from'lodash-es';import _0x1a5ccf from'./annotations.js';export default class k extends _0x3e2cf8{static get[_0x4033('0x1e')](){return[_0x1a5ccf];}static get['pluginName'](){return'EditorAnnotations';}constructor(_0x9661ad){super(_0x9661ad),this[_0x4033('0x13')]=new Set(),this[_0x4033('0x2')]=new Set();}[_0x4033('0x22')](){const _0x5b00d9=this[_0x4033('0x10')],_0x1d799c=_0x5b00d9[_0x4033('0x1d')][_0x4033('0x29')][_0x4033('0xb')],_0x3f90e8=_0x2ce6c8(()=>this[_0x4033('0x7')](),0xa);_0x1d799c['on'](_0x4033('0x15'),(_0x2a4765,_0x4c5b38)=>{_0x4c5b38['directChange']&&(_0x3f90e8[_0x4033('0x14')](),this[_0x4033('0x7')]());}),this[_0x4033('0x9')](_0x5b00d9[_0x4033('0x28')][_0x4033('0x8')][_0x4033('0x29')],'change:isFocused',(_0x5d16f1,_0x25bfb9,_0x99dadd)=>{_0x99dadd&&_0x3f90e8();}),this[_0x4033('0x9')](_0x5b00d9['ui'][_0x4033('0x18')],_0x4033('0x11'),(_0x42232a,_0x292add,_0x46c157)=>{_0x46c157||_0x5b00d9['isReadOnly']||this['fire'](_0x4033('0x1f'),{'isAnnotationTracked':_0x4bba78=>this[_0x4033('0x12')][_0x4033('0xd')](_0x4bba78[_0x4033('0x25')])});}),this[_0x4033('0x9')](this[_0x4033('0x10')]['ui'],_0x4033('0x1a'),()=>this[_0x4033('0x1c')](_0x4033('0xa')));}[_0x4033('0xe')](_0x53a985){if(this[_0x4033('0x2')]['has'](_0x53a985[_0x4033('0x8')]))return;this[_0x4033('0x2')]['add'](_0x53a985[_0x4033('0x8')]),this[_0x4033('0x10')]['ui']['focusTracker']['add'](_0x53a985[_0x4033('0x8')]['element']);const _0x1a6f2b=this[_0x4033('0x10')][_0x4033('0x6')][_0x4033('0x16')](_0x1a5ccf);this['listenTo'](_0x1a6f2b[_0x4033('0x26')],_0x4033('0xf'),(_0xfb5065,_0x45f6c6)=>{this[_0x4033('0x10')]['ui'][_0x4033('0x18')][_0x4033('0xf')](_0x45f6c6[_0x4033('0x8')]['element']),this[_0x4033('0x2')][_0x4033('0x3')](_0x45f6c6[_0x4033('0x8')]);});}['hasDomSelection'](){return this['editor']['editing'][_0x4033('0x8')][_0x4033('0x24')];}['addSourceCollector'](_0x4bd5e6){if('function'!=typeof _0x4bd5e6)throw new _0x2de745('editorannotations-invalid-source-callback');this[_0x4033('0x13')]['add'](_0x4bd5e6);}['refreshSelectedViews'](){this[_0x4033('0x1c')](_0x4033('0x23'));}[_0x4033('0x4')]({activeAnnotation:_0x400eba,annotations:_0x4e51d1}){const _0x17afc1=[],_0x1d01aa=this[_0x4033('0x10')][_0x4033('0x1d')][_0x4033('0x29')][_0x4033('0xb')],_0x546fc3=Array[_0x4033('0x1b')](_0x1d01aa[_0x4033('0x0')]());for(const [_0x2b56b7,_0xc71fdf]of this[_0x4033('0x12')]){const _0x354df9=_0x98de56(_0xc71fdf),_0xecdf14=_0x4e51d1['getByInnerView'](_0x2b56b7);_0x354df9&&_0xecdf14&&_0x17afc1['push']({'annotation':_0xecdf14,'range':_0x354df9});}function _0x98de56(_0xa312ef){for(const _0x1dd12b of _0xa312ef)for(const _0x3fed61 of _0x546fc3)if(_0x1dd12b[_0x4033('0x21')](_0x3fed61,!_0x1d01aa[_0x4033('0x17')]))return _0x1dd12b;return null;}return _0x17afc1[_0x4033('0x20')]((_0x15b42a,_0x51e55c)=>{const _0x57f90a=_0x15b42a[_0x4033('0x5')],_0x538348=_0x51e55c[_0x4033('0x5')];if(!_0x57f90a[_0x4033('0x27')](_0x538348)){if(_0x57f90a[_0x4033('0x21')](_0x538348,!0x0))return 0x1;if(_0x538348[_0x4033('0x21')](_0x57f90a,!0x0))return-0x1;}return _0x15b42a[_0x4033('0x19')]==_0x400eba?-0x1:_0x51e55c[_0x4033('0x19')]==_0x400eba?0x1:0x0;})[_0x4033('0x1')](_0x39c348=>_0x39c348['annotation']);}get['_editorAnnotationsData'](){const _0x58a395=new Map();for(const _0xd55229 of Array[_0x4033('0x1b')](this[_0x4033('0x13')]))for(const [_0x5adcf2,_0x42fb7d]of _0xd55229())_0x58a395[_0x4033('0xc')](_0x5adcf2,_0x42fb7d);return _0x58a395;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5f5d=['switchTo','getByView','_setSelectedAnnotations','_manuallyClosed','inlineannotations-not-allowed-with-context','getOrderedSelectedAnnotations','delete','focusTracker','isFocused','every','_balloon','refresh','hasActive','left','push','bottom','init','updatePosition','length','setActiveAnnotation','annotations','mousedown','_addAnnotationToBalloon','editor','hasView','right','get','target','afterInit','isAttached','detach','change:height','document','update','collapse','_forceRefresh','plugins','targetRect','inlineannotations-detach-not-attached','requires','domConverter','editableElement','_selectedAnnotations','visibleView','fromRect','InlineAnnotations','map','activeAnnotation','inline','top','getFirstRange','keystrokes','showStack','focus','includes','_removeAnnotationFromBalloon','_getBalloonTargetForAnnotation','stopListening','_addedAnnotations','view','remove','editing','isActive','selection','Esc','listenTo','width','attach','_closeAnnotation','add','change:visibleView','set','register','context','has','inlineannotations-attach-already-attached','addObserver'];(function(_0x607aa5,_0x5f5df1){const _0x1983de=function(_0x1d25d2){while(--_0x1d25d2){_0x607aa5['push'](_0x607aa5['shift']());}};_0x1983de(++_0x5f5df1);}(_0x5f5d,0x7d));const _0x1983=function(_0x607aa5,_0x5f5df1){_0x607aa5=_0x607aa5-0x0;let _0x1983de=_0x5f5d[_0x607aa5];return _0x1983de;};import{Plugin as _0x54174c}from'ckeditor5/src/core.js';import _0x1a35b3 from'./annotationsuis.js';import _0x569ec6 from'./editorannotations.js';import{ContextualBalloon as _0x1eef23}from'ckeditor5/src/ui.js';import{MouseObserver as _0x39ba49}from'ckeditor5/src/engine.js';import{CKEditorError as _0x104b62,Rect as _0x19ce6c}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x54174c{static get[_0x1983('0x44')](){return[_0x569ec6,_0x1eef23,_0x1a35b3];}static get['pluginName'](){return _0x1983('0x4a');}constructor(_0x898410){super(_0x898410),_0x898410[_0x1983('0xd')][_0x1983('0xb')][_0x1983('0x1c')](_0x39ba49),this[_0x1983('0x3a')]=!0x1,this[_0x1983('0x17')](_0x1983('0x4c'),null),this[_0x1983('0x31')]=null,this[_0x1983('0x20')]=new Set(),this['_balloon']=_0x898410[_0x1983('0x41')][_0x1983('0x37')](_0x1eef23),this[_0x1983('0xa')]=new Set(),this[_0x1983('0x47')]=[],this[_0x1983('0x40')]=!0x1;}[_0x1983('0x2d')](){const _0xf71a3c=this[_0x1983('0x34')][_0x1983('0x41')][_0x1983('0x37')](_0x1a35b3);_0xf71a3c[_0x1983('0x19')]===this[_0x1983('0x34')]&&(_0xf71a3c[_0x1983('0x18')](_0x1983('0x0'),this),this[_0x1983('0x34')][_0x1983('0x3')][_0x1983('0x17')]('Esc',(_0x1fabdb,_0x4bc9ed)=>{const _0x3980f9=this[_0x1983('0x27')];if(this[_0x1983('0x3a')]&&_0x3980f9[_0x1983('0x48')]){const _0x2077bd=this['annotations'][_0x1983('0x1e')](_0x3980f9[_0x1983('0x48')]);_0x2077bd&&this[_0x1983('0x14')](_0x2077bd),_0x4bc9ed();}}));}[_0x1983('0x39')](){const _0x573e63=this[_0x1983('0x34')][_0x1983('0x41')]['get'](_0x1a35b3);_0x573e63[_0x1983('0x19')]===this[_0x1983('0x34')]&&(_0x573e63[_0x1983('0x29')]()||_0x573e63[_0x1983('0x1d')](_0x1983('0x0')));}['setActiveAnnotation'](_0x5ab064){_0x5ab064!==this['activeAnnotation']&&(this['activeAnnotation']&&(this[_0x1983('0x4c')][_0x1983('0xe')]=!0x1),_0x5ab064&&this[_0x1983('0x34')]['ui'][_0x1983('0x24')][_0x1983('0x25')]&&(this[_0x1983('0x31')]['has'](_0x5ab064)&&this[_0x1983('0x33')](_0x5ab064,!0x0),_0x5ab064[_0x1983('0xe')]=!0x0),_0x5ab064||this[_0x1983('0x1f')]([]),this[_0x1983('0x4c')]=_0x5ab064);}[_0x1983('0x13')](_0x140879){this[_0x1983('0x31')]=_0x140879;const _0x5ebee2=this[_0x1983('0x34')][_0x1983('0x41')][_0x1983('0x37')](_0x1a35b3),_0x3f01d9=this[_0x1983('0x27')];if(this['isAttached'])throw new _0x104b62(_0x1983('0x1b'),this);if(_0x5ebee2['context']!==this[_0x1983('0x34')])throw new _0x104b62(_0x1983('0x21'),this);const _0x20a95e=this[_0x1983('0x34')][_0x1983('0x41')][_0x1983('0x37')](_0x569ec6);this[_0x1983('0x11')](_0x20a95e,_0x1983('0x28'),()=>{const _0x40c489=_0x20a95e[_0x1983('0x22')]({'annotations':this[_0x1983('0x31')],'activeAnnotation':this[_0x1983('0x4c')]});var _0x231a71,_0x37006e;!this['_forceRefresh']&&(_0x231a71=_0x40c489,_0x37006e=this['_selectedAnnotations'],_0x231a71[_0x1983('0x2f')]===_0x37006e[_0x1983('0x2f')]&&_0x231a71[_0x1983('0x26')](_0x5eab26=>_0x37006e['includes'](_0x5eab26)))||(this[_0x1983('0x40')]=!0x1,this[_0x1983('0x1f')](_0x40c489),this[_0x1983('0x30')](_0x40c489[0x0]||null));}),this[_0x1983('0x11')](_0x20a95e,'blur',(_0x3793d7,{isAnnotationTracked:_0x56ca49})=>{this[_0x1983('0x4c')]&&_0x56ca49(this[_0x1983('0x4c')])&&(this[_0x1983('0x1f')]([]),this['setActiveAnnotation'](null));}),this['listenTo'](this[_0x1983('0x34')]['ui'][_0x1983('0x24')],'change:isFocused',(_0x15002c,_0x1adffd,_0x5cfce8)=>{_0x5cfce8||this['setActiveAnnotation'](null);}),this[_0x1983('0x11')](_0x140879,_0x1983('0xc'),(_0x163622,_0x4cdfed)=>{this['_removeAnnotationFromBalloon'](_0x4cdfed),_0x4cdfed===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3f01d9,_0x1983('0x16'),(_0x47bd5d,_0xe8babd,_0x542ca3,_0x2c0c30)=>{_0x2c0c30&&this[_0x1983('0x9')](_0x2c0c30);const _0x465cb0=_0x140879['getByView'](_0x542ca3);_0x542ca3&&_0x465cb0&&(this[_0x1983('0x11')](_0x542ca3,_0x1983('0x3c'),()=>{_0x3f01d9['updatePosition']();}),this[_0x1983('0x11')](_0x542ca3,_0x1983('0x10'),()=>{this[_0x1983('0x14')](_0x465cb0),this[_0x1983('0x34')][_0x1983('0xd')]['view'][_0x1983('0x5')]();}),this[_0x1983('0x4c')]!==_0x465cb0&&this[_0x1983('0x30')](_0x465cb0));}),this[_0x1983('0x11')](this[_0x1983('0x34')]['ui'],_0x1983('0x3e'),()=>{_0x3f01d9[_0x1983('0x48')]&&(_0x140879[_0x1983('0x1e')](_0x3f01d9[_0x1983('0x48')])&&_0x3f01d9[_0x1983('0x2e')]());}),this['listenTo'](this['editor'][_0x1983('0xd')][_0x1983('0xb')][_0x1983('0x3d')],_0x1983('0x32'),()=>{this['_forceRefresh']=!0x0,this[_0x1983('0x20')]['clear']();}),this[_0x1983('0x34')][_0x1983('0xd')][_0x1983('0xb')]['document'][_0x1983('0xf')][_0x1983('0x46')]&&this[_0x1983('0x34')]['editing'][_0x1983('0xb')][_0x1983('0x5')](),this[_0x1983('0x3a')]=!0x0;}[_0x1983('0x3b')](){if(!this[_0x1983('0x3a')])throw new _0x104b62(_0x1983('0x43'),this);this['setActiveAnnotation'](null);for(const _0xe5508e of this[_0x1983('0xa')])this[_0x1983('0x7')](_0xe5508e);this['stopListening'](),this[_0x1983('0x3a')]=!0x1,this[_0x1983('0x31')]=null;}['destroy'](){this[_0x1983('0x3a')]&&this['detach']();}[_0x1983('0x1f')](_0x23f869){for(const _0x70dbd6 of this[_0x1983('0x47')])_0x23f869[_0x1983('0x6')](_0x70dbd6)||this[_0x1983('0x20')][_0x1983('0x23')](_0x70dbd6);for(const _0x5aec59 of this['annotations'])_0x23f869[_0x1983('0x6')](_0x5aec59)||this[_0x1983('0x7')](_0x5aec59);if(this[_0x1983('0x34')]['ui']['focusTracker'][_0x1983('0x25')])for(const _0xd5206 of _0x23f869)this[_0x1983('0x33')](_0xd5206);this[_0x1983('0x47')]=_0x23f869;}[_0x1983('0x33')](_0x3d7d02,_0xbb6a4a=!0x1){this['_manuallyClosed'][_0x1983('0x1a')](_0x3d7d02)||(this['_addedAnnotations']['has'](_0x3d7d02)||this['_balloon'][_0x1983('0x35')](_0x3d7d02[_0x1983('0xb')])||(this[_0x1983('0xa')]['add'](_0x3d7d02),this['_balloon'][_0x1983('0x15')]({'stackId':_0x3d7d02[_0x1983('0xb')]['id'],'view':_0x3d7d02[_0x1983('0xb')],'position':{'target':()=>this[_0x1983('0x8')](_0x3d7d02)}})),_0xbb6a4a&&this[_0x1983('0x27')][_0x1983('0x4')](_0x3d7d02[_0x1983('0xb')]['id']));}['_getBalloonTargetForAnnotation'](_0x5b9d09){const _0x4fea98=_0x5b9d09[_0x1983('0x38')],_0x1e13f1=this[_0x1983('0x34')][_0x1983('0xd')][_0x1983('0xb')],_0x2680e3=_0x1e13f1[_0x1983('0x3d')][_0x1983('0xf')][_0x1983('0x2')](),_0x29c72=_0x1e13f1[_0x1983('0x45')]['viewRangeToDom'](_0x2680e3);if(_0x29c72[_0x1983('0x3f')](!0x0),_0x4fea98){if(_0x4fea98 instanceof _0x19ce6c)return _0x4fea98;let _0x519dae=[];for(const _0x469cae of _0x4fea98)_0x519dae[_0x1983('0x2b')](...(_0x3e5557=_0x469cae['getClientRects'](),Array['from'](_0x3e5557)[_0x1983('0x4b')](DOMRect[_0x1983('0x49')])));_0x519dae=function(_0x6246c6){const _0x570118=[];let _0x4c199a=_0x6246c6[0x0];for(let _0x42542d=0x1;_0x42542d<_0x6246c6[_0x1983('0x2f')];_0x42542d++)F(_0x4c199a,_0x6246c6[_0x42542d])?_0x4c199a['width']+=_0x6246c6[_0x42542d][_0x1983('0x12')]:(_0x570118[_0x1983('0x2b')](_0x4c199a),_0x4c199a=_0x6246c6[_0x42542d]);return _0x570118[_0x1983('0x2b')](_0x4c199a),_0x570118;}(_0x519dae);const _0x432413=_0x29c72['getBoundingClientRect']();return _0x519dae['find'](_0xade3c5=>_0xade3c5['top']<=_0x432413[_0x1983('0x1')]&&_0xade3c5[_0x1983('0x2c')]>=_0x432413[_0x1983('0x2c')]&&_0xade3c5[_0x1983('0x2a')]<=_0x432413[_0x1983('0x2a')]&&_0xade3c5[_0x1983('0x36')]>=_0x432413[_0x1983('0x36')])||_0x519dae[0x0];}var _0x3e5557;return _0x5b9d09[_0x1983('0x42')]||_0x29c72;}[_0x1983('0x7')](_0x3f3b7e){this[_0x1983('0xa')]['has'](_0x3f3b7e)&&this[_0x1983('0x27')][_0x1983('0x35')](_0x3f3b7e[_0x1983('0xb')])&&(this['_addedAnnotations'][_0x1983('0x23')](_0x3f3b7e),this[_0x1983('0x27')][_0x1983('0xc')](_0x3f3b7e[_0x1983('0xb')]));}['_closeAnnotation'](_0xbc9219){this[_0x1983('0x20')][_0x1983('0x15')](_0xbc9219),this[_0x1983('0x7')](_0xbc9219);}}function F(_0x583461,_0x58815e){return _0x583461[_0x1983('0x1')]===_0x58815e['top']&&_0x583461[_0x1983('0x2c')]===_0x58815e[_0x1983('0x2c')]&&_0x583461[_0x1983('0x36')]===_0x58815e[_0x1983('0x2a')];}
23
+ const _0x3917=['updatePosition','_addAnnotationToBalloon','every','change:visibleView','document','view','isActive','getOrderedSelectedAnnotations','clear','width','InlineAnnotations','hasActive','length','map','focus','change:height','collapse','getClientRects','setActiveAnnotation','editor','hasView','context','update','bottom','attach','isFocused','Esc','inlineannotations-not-allowed-with-context','push','activeAnnotation','_manuallyClosed','add','_setSelectedAnnotations','afterInit','editableElement','isAttached','includes','_forceRefresh','_getBalloonTargetForAnnotation','set','_removeAnnotationFromBalloon','top','blur','stopListening','getBoundingClientRect','_selectedAnnotations','listenTo','right','editing','fromRect','addObserver','keystrokes','inlineannotations-attach-already-attached','visibleView','domConverter','left','inlineannotations-detach-not-attached','switchTo','detach','target','delete','get','register','inline','_addedAnnotations','selection','getByView','_closeAnnotation','_balloon','getFirstRange','targetRect','remove','has','plugins','focusTracker','requires','annotations'];(function(_0x5c841f,_0x3917c3){const _0x3d5ed8=function(_0x2ae6c4){while(--_0x2ae6c4){_0x5c841f['push'](_0x5c841f['shift']());}};_0x3d5ed8(++_0x3917c3);}(_0x3917,0x7c));const _0x3d5e=function(_0x5c841f,_0x3917c3){_0x5c841f=_0x5c841f-0x0;let _0x3d5ed8=_0x3917[_0x5c841f];return _0x3d5ed8;};import{Plugin as _0x528cdd}from'ckeditor5/src/core.js';import _0x7a29ea from'./annotationsuis.js';import _0x556177 from'./editorannotations.js';import{ContextualBalloon as _0x1872f5}from'ckeditor5/src/ui.js';import{MouseObserver as _0x17487b}from'ckeditor5/src/engine.js';import{CKEditorError as _0x464e1b,Rect as _0x1f0d83}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x528cdd{static get[_0x3d5e('0x1c')](){return[_0x556177,_0x1872f5,_0x7a29ea];}static get['pluginName'](){return _0x3d5e('0x28');}constructor(_0x18a0a5){super(_0x18a0a5),_0x18a0a5[_0x3d5e('0x1')][_0x3d5e('0x23')][_0x3d5e('0x3')](_0x17487b),this['isAttached']=!0x1,this['set'](_0x3d5e('0x3b'),null),this[_0x3d5e('0x1d')]=null,this[_0x3d5e('0x3c')]=new Set(),this['_balloon']=_0x18a0a5['plugins'][_0x3d5e('0xe')](_0x1872f5),this[_0x3d5e('0x11')]=new Set(),this[_0x3d5e('0x4b')]=[],this[_0x3d5e('0x43')]=!0x1;}['init'](){const _0xdae001=this['editor']['plugins'][_0x3d5e('0xe')](_0x7a29ea);_0xdae001[_0x3d5e('0x33')]===this[_0x3d5e('0x31')]&&(_0xdae001[_0x3d5e('0xf')](_0x3d5e('0x10'),this),this[_0x3d5e('0x31')][_0x3d5e('0x4')][_0x3d5e('0x45')](_0x3d5e('0x38'),(_0x383ba3,_0x438114)=>{const _0x16ba75=this[_0x3d5e('0x15')];if(this['isAttached']&&_0x16ba75[_0x3d5e('0x6')]){const _0x55f938=this[_0x3d5e('0x1d')][_0x3d5e('0x13')](_0x16ba75[_0x3d5e('0x6')]);_0x55f938&&this['_closeAnnotation'](_0x55f938),_0x438114();}}));}[_0x3d5e('0x3f')](){const _0x5985d4=this[_0x3d5e('0x31')][_0x3d5e('0x1a')][_0x3d5e('0xe')](_0x7a29ea);_0x5985d4[_0x3d5e('0x33')]===this[_0x3d5e('0x31')]&&(_0x5985d4[_0x3d5e('0x29')]()||_0x5985d4[_0x3d5e('0xa')](_0x3d5e('0x10')));}['setActiveAnnotation'](_0x49400f){_0x49400f!==this[_0x3d5e('0x3b')]&&(this[_0x3d5e('0x3b')]&&(this[_0x3d5e('0x3b')][_0x3d5e('0x24')]=!0x1),_0x49400f&&this[_0x3d5e('0x31')]['ui'][_0x3d5e('0x1b')]['isFocused']&&(this[_0x3d5e('0x1d')][_0x3d5e('0x19')](_0x49400f)&&this[_0x3d5e('0x1f')](_0x49400f,!0x0),_0x49400f[_0x3d5e('0x24')]=!0x0),_0x49400f||this['_setSelectedAnnotations']([]),this[_0x3d5e('0x3b')]=_0x49400f);}[_0x3d5e('0x36')](_0x188427){this[_0x3d5e('0x1d')]=_0x188427;const _0x52e0d6=this[_0x3d5e('0x31')][_0x3d5e('0x1a')]['get'](_0x7a29ea),_0x5465f8=this[_0x3d5e('0x15')];if(this['isAttached'])throw new _0x464e1b(_0x3d5e('0x5'),this);if(_0x52e0d6[_0x3d5e('0x33')]!==this['editor'])throw new _0x464e1b(_0x3d5e('0x39'),this);const _0x3ee541=this[_0x3d5e('0x31')]['plugins'][_0x3d5e('0xe')](_0x556177);this[_0x3d5e('0x4c')](_0x3ee541,'refresh',()=>{const _0x506a89=_0x3ee541[_0x3d5e('0x25')]({'annotations':this[_0x3d5e('0x1d')],'activeAnnotation':this[_0x3d5e('0x3b')]});var _0x246657,_0x474ce7;!this[_0x3d5e('0x43')]&&(_0x246657=_0x506a89,_0x474ce7=this[_0x3d5e('0x4b')],_0x246657[_0x3d5e('0x2a')]===_0x474ce7['length']&&_0x246657[_0x3d5e('0x20')](_0xfa1ad3=>_0x474ce7[_0x3d5e('0x42')](_0xfa1ad3)))||(this[_0x3d5e('0x43')]=!0x1,this[_0x3d5e('0x3e')](_0x506a89),this[_0x3d5e('0x30')](_0x506a89[0x0]||null));}),this[_0x3d5e('0x4c')](_0x3ee541,_0x3d5e('0x48'),(_0x5a7b8f,{isAnnotationTracked:_0x5057ad})=>{this['activeAnnotation']&&_0x5057ad(this[_0x3d5e('0x3b')])&&(this[_0x3d5e('0x3e')]([]),this[_0x3d5e('0x30')](null));}),this['listenTo'](this[_0x3d5e('0x31')]['ui'][_0x3d5e('0x1b')],'change:isFocused',(_0x43330a,_0x27a72b,_0x372376)=>{_0x372376||this[_0x3d5e('0x30')](null);}),this['listenTo'](_0x188427,_0x3d5e('0x18'),(_0xc9f1df,_0x44e41c)=>{this[_0x3d5e('0x46')](_0x44e41c),_0x44e41c===this[_0x3d5e('0x3b')]&&this[_0x3d5e('0x30')](null);}),this['listenTo'](_0x5465f8,_0x3d5e('0x21'),(_0x522fb0,_0x5d0dad,_0x135129,_0x2bed40)=>{_0x2bed40&&this[_0x3d5e('0x49')](_0x2bed40);const _0x486acc=_0x188427[_0x3d5e('0x13')](_0x135129);_0x135129&&_0x486acc&&(this[_0x3d5e('0x4c')](_0x135129,_0x3d5e('0x2d'),()=>{_0x5465f8[_0x3d5e('0x1e')]();}),this[_0x3d5e('0x4c')](_0x135129,_0x3d5e('0x38'),()=>{this[_0x3d5e('0x14')](_0x486acc),this[_0x3d5e('0x31')][_0x3d5e('0x1')][_0x3d5e('0x23')][_0x3d5e('0x2c')]();}),this['activeAnnotation']!==_0x486acc&&this[_0x3d5e('0x30')](_0x486acc));}),this['listenTo'](this[_0x3d5e('0x31')]['ui'],_0x3d5e('0x34'),()=>{_0x5465f8[_0x3d5e('0x6')]&&(_0x188427['getByView'](_0x5465f8['visibleView'])&&_0x5465f8[_0x3d5e('0x1e')]());}),this[_0x3d5e('0x4c')](this[_0x3d5e('0x31')]['editing']['view']['document'],'mousedown',()=>{this[_0x3d5e('0x43')]=!0x0,this['_manuallyClosed'][_0x3d5e('0x26')]();}),this[_0x3d5e('0x31')][_0x3d5e('0x1')]['view'][_0x3d5e('0x22')][_0x3d5e('0x12')][_0x3d5e('0x40')]&&this[_0x3d5e('0x31')][_0x3d5e('0x1')][_0x3d5e('0x23')][_0x3d5e('0x2c')](),this[_0x3d5e('0x41')]=!0x0;}['detach'](){if(!this[_0x3d5e('0x41')])throw new _0x464e1b(_0x3d5e('0x9'),this);this['setActiveAnnotation'](null);for(const _0x43cc92 of this[_0x3d5e('0x11')])this[_0x3d5e('0x46')](_0x43cc92);this[_0x3d5e('0x49')](),this[_0x3d5e('0x41')]=!0x1,this[_0x3d5e('0x1d')]=null;}['destroy'](){this[_0x3d5e('0x41')]&&this[_0x3d5e('0xb')]();}['_setSelectedAnnotations'](_0x154ebd){for(const _0x2c0daf of this[_0x3d5e('0x4b')])_0x154ebd['includes'](_0x2c0daf)||this[_0x3d5e('0x3c')][_0x3d5e('0xd')](_0x2c0daf);for(const _0x34f236 of this['annotations'])_0x154ebd['includes'](_0x34f236)||this['_removeAnnotationFromBalloon'](_0x34f236);if(this[_0x3d5e('0x31')]['ui'][_0x3d5e('0x1b')][_0x3d5e('0x37')])for(const _0x2cba73 of _0x154ebd)this[_0x3d5e('0x1f')](_0x2cba73);this['_selectedAnnotations']=_0x154ebd;}[_0x3d5e('0x1f')](_0x2cdf95,_0x24c51f=!0x1){this[_0x3d5e('0x3c')]['has'](_0x2cdf95)||(this[_0x3d5e('0x11')][_0x3d5e('0x19')](_0x2cdf95)||this[_0x3d5e('0x15')]['hasView'](_0x2cdf95[_0x3d5e('0x23')])||(this['_addedAnnotations'][_0x3d5e('0x3d')](_0x2cdf95),this['_balloon'][_0x3d5e('0x3d')]({'stackId':_0x2cdf95[_0x3d5e('0x23')]['id'],'view':_0x2cdf95[_0x3d5e('0x23')],'position':{'target':()=>this[_0x3d5e('0x44')](_0x2cdf95)}})),_0x24c51f&&this[_0x3d5e('0x15')]['showStack'](_0x2cdf95['view']['id']));}['_getBalloonTargetForAnnotation'](_0x49c21c){const _0x3591ea=_0x49c21c[_0x3d5e('0xc')],_0x246cc6=this[_0x3d5e('0x31')][_0x3d5e('0x1')][_0x3d5e('0x23')],_0x58cf3c=_0x246cc6[_0x3d5e('0x22')]['selection'][_0x3d5e('0x16')](),_0x2bcfb1=_0x246cc6[_0x3d5e('0x7')]['viewRangeToDom'](_0x58cf3c);if(_0x2bcfb1[_0x3d5e('0x2e')](!0x0),_0x3591ea){if(_0x3591ea instanceof _0x1f0d83)return _0x3591ea;let _0x1824e7=[];for(const _0x38d12e of _0x3591ea)_0x1824e7[_0x3d5e('0x3a')](...(_0x15532d=_0x38d12e[_0x3d5e('0x2f')](),Array['from'](_0x15532d)[_0x3d5e('0x2b')](DOMRect[_0x3d5e('0x2')])));_0x1824e7=function(_0x898d4b){const _0x451537=[];let _0x46502b=_0x898d4b[0x0];for(let _0x209a3d=0x1;_0x209a3d<_0x898d4b[_0x3d5e('0x2a')];_0x209a3d++)F(_0x46502b,_0x898d4b[_0x209a3d])?_0x46502b[_0x3d5e('0x27')]+=_0x898d4b[_0x209a3d]['width']:(_0x451537[_0x3d5e('0x3a')](_0x46502b),_0x46502b=_0x898d4b[_0x209a3d]);return _0x451537[_0x3d5e('0x3a')](_0x46502b),_0x451537;}(_0x1824e7);const _0x2f738a=_0x2bcfb1[_0x3d5e('0x4a')]();return _0x1824e7['find'](_0xa38b2e=>_0xa38b2e[_0x3d5e('0x47')]<=_0x2f738a[_0x3d5e('0x47')]&&_0xa38b2e[_0x3d5e('0x35')]>=_0x2f738a[_0x3d5e('0x35')]&&_0xa38b2e[_0x3d5e('0x8')]<=_0x2f738a[_0x3d5e('0x8')]&&_0xa38b2e[_0x3d5e('0x0')]>=_0x2f738a[_0x3d5e('0x0')])||_0x1824e7[0x0];}var _0x15532d;return _0x49c21c[_0x3d5e('0x17')]||_0x2bcfb1;}['_removeAnnotationFromBalloon'](_0x3c785c){this[_0x3d5e('0x11')][_0x3d5e('0x19')](_0x3c785c)&&this[_0x3d5e('0x15')][_0x3d5e('0x32')](_0x3c785c[_0x3d5e('0x23')])&&(this['_addedAnnotations']['delete'](_0x3c785c),this[_0x3d5e('0x15')]['remove'](_0x3c785c[_0x3d5e('0x23')]));}[_0x3d5e('0x14')](_0x33bd88){this[_0x3d5e('0x3c')][_0x3d5e('0x3d')](_0x33bd88),this[_0x3d5e('0x46')](_0x33bd88);}}function F(_0x2ba134,_0x4ea99c){return _0x2ba134['top']===_0x4ea99c[_0x3d5e('0x47')]&&_0x2ba134['bottom']===_0x4ea99c[_0x3d5e('0x35')]&&_0x2ba134[_0x3d5e('0x0')]===_0x4ea99c[_0x3d5e('0x8')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6203=['keyCode','contains','set:container','detach','length','register','high','southArrowNorthWest','find','execute','_detachFromContainer','_detachListeners','isVisible','focus','getSidebarItemView','southArrowNorthEast','activeAnnotation','_refreshPositioning','blur','annotations','_integrateWithEditorAnnotations','mousedown','_editorAnnotations','defaultPositions','stopListening','southArrowNorth','rearrange','requires','annotationType','_updateBalloonPosition','northArrowSouthWest','northArrowSouth','pluginName','_hideBalloon','includes','balloonPanelView','plugins','isAttached','view','_annotations','EditorAnnotations','values','narrowsidebar-detach-not-attached','delete','number','element','add','first','listenTo','Esc','getOrderedSelectedAnnotations','_domEmitter','ready','ck-sidebar--narrow','narrowsidebar-attach-already-attached','getByView','context','esc','preventClosingBalloon','get','_setSelectedAnnotations','stopPropagation','bodyCollection','_attachToContainer','_destroyEditorAnnotationsIntegration','attachToDom','_selectedAnnotations','preventDefault','type','refresh','editors','attach','_annotationToNarrowView','_manuallyClosedAnnotationViews','addEventListener','_showBalloon','_attachListeners','pin','content','resize','detachFromDom','stop','hasDomSelection','destroy','isDirty','cancel','set','from','_refreshPositioningDebounced','low','change:container','locale','has','setActiveAnnotation','clear'];(function(_0x2fee60,_0x620360){const _0x357cee=function(_0x141669){while(--_0x141669){_0x2fee60['push'](_0x2fee60['shift']());}};_0x357cee(++_0x620360);}(_0x6203,0x12d));const _0x357c=function(_0x2fee60,_0x620360){_0x2fee60=_0x2fee60-0x0;let _0x357cee=_0x6203[_0x2fee60];return _0x357cee;};import{ContextPlugin as _0x103567,Context as _0x262004}from'ckeditor5/src/core.js';import _0x2ac071 from'./annotationsuis.js';import _0x19a8df from'./sidebar.js';import _0x3fc724 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x3360ab,BodyCollection as _0x57b311}from'ckeditor5/src/ui.js';import{CKEditorError as _0x1c1df7,DomEmitterMixin as _0x3323f2,keyCodes as _0x50f1a1,Collection as _0x42e7cc}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x222285}from'lodash-es';import _0x319ca6 from'./editorannotations.js';export default class i extends _0x103567{static get[_0x357c('0xb')](){return[_0x19a8df,_0x2ac071];}static get[_0x357c('0x10')](){return'NarrowSidebar';}constructor(_0x13adc0){super(_0x13adc0),this[_0x357c('0x15')]=!0x1,this[_0x357c('0x39')]=new Set(),this[_0x357c('0x23')]=Object['create'](_0x3323f2),this['_annotationToNarrowView']=new Map(),this[_0x357c('0x46')](_0x357c('0x0'),null),this[_0x357c('0x3')]=null,this['_selectedAnnotations']=[],this[_0x357c('0x6')]=new _0x42e7cc(),this[_0x357c('0x48')]=_0x222285(()=>{this[_0x357c('0x1')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x357c('0x28')]['plugins']['get'](_0x2ac071)[_0x357c('0x54')]('narrowSidebar',this),this[_0x357c('0x2e')]=new _0x57b311(this[_0x357c('0x28')][_0x357c('0x4b')]),this[_0x357c('0x13')]=new _0x3360ab(this[_0x357c('0x28')][_0x357c('0x4b')]),this[_0x357c('0x2e')][_0x357c('0x31')](),this[_0x357c('0x2e')]['add'](this[_0x357c('0x13')]);}[_0x357c('0x37')](_0x55b9e1){this[_0x357c('0x3')]=_0x55b9e1;const _0x1a7743=this[_0x357c('0x28')]['plugins'][_0x357c('0x2b')](_0x19a8df),_0x45609e=this[_0x357c('0x13')];if(_0x1a7743[_0x357c('0x17')]=_0x55b9e1,this['isAttached'])throw new _0x1c1df7(_0x357c('0x26'),this);this[_0x357c('0x15')]=!0x0,this['listenTo'](_0x1a7743,_0x357c('0x51'),()=>{this['detach'](),this[_0x357c('0x20')](_0x1a7743,_0x357c('0x4a'),_0x476b95=>{_0x476b95['off'](),this[_0x357c('0x37')](_0x55b9e1);});}),_0x1a7743[_0x357c('0x2f')]({'viewClass':_0x357c('0x25'),'spaceBetweenItems':0x5});const _0x3f09d0=_0xd8e241=>{const _0x533684=new _0x3fc724(this['context'][_0x357c('0x4b')]);_0x1a7743['addAnnotation'](_0xd8e241,_0x533684),this['_annotationToNarrowView']['set'](_0xd8e241,_0x533684),_0x533684['bind'](_0x357c('0x44'),_0x357c('0xc'),_0x357c('0x1c'))['to'](_0xd8e241['view'],_0x357c('0x44'),_0x357c('0x34'),_0x357c('0x53')),_0x533684['on'](_0x357c('0x58'),()=>{this[_0x357c('0x39')][_0x357c('0x4e')](),_0x45609e[_0x357c('0x3e')][_0x357c('0x1f')]!==_0xd8e241[_0x357c('0x16')]?(this[_0x357c('0x3b')](_0xd8e241),_0xd8e241[_0x357c('0x16')][_0x357c('0x1d')][_0x357c('0x5c')](),this[_0x357c('0x4d')](_0xd8e241)):this[_0x357c('0x4d')](null);});};for(const _0x52d766 of _0x55b9e1)_0x3f09d0(_0x52d766);this[_0x357c('0x20')](_0x55b9e1,'add',(_0x1da089,_0x24462e)=>{_0x3f09d0(_0x24462e);}),this['listenTo'](_0x55b9e1,'remove',(_0x42e27d,_0x541a95,_0x3148aa)=>{this[_0x357c('0x38')][_0x357c('0x2b')](_0x541a95)[_0x357c('0x43')](),this['_annotationToNarrowView'][_0x357c('0x1b')](_0x541a95),_0x1a7743[_0x357c('0xa')]({'removedAnnotation':_0x541a95,'previousAnnotation':_0x55b9e1[_0x357c('0x2b')](_0x3148aa-0x1),'nextAnnotation':_0x55b9e1[_0x357c('0x2b')](_0x3148aa+0x1)}),_0x541a95===this[_0x357c('0x0')]&&this[_0x357c('0x4d')](null);},{'priority':_0x357c('0x49')}),this['listenTo'](_0x55b9e1,_0x357c('0x5c'),(_0x4a4ed8,_0x2be8b1)=>{this[_0x357c('0x4d')](_0x2be8b1);}),this['listenTo'](_0x55b9e1,_0x357c('0x2'),()=>{this[_0x357c('0x4d')](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x1b534b,_0x46cd02)=>{_0x46cd02[_0x357c('0x4f')]===_0x50f1a1[_0x357c('0x29')]&&_0x45609e[_0x357c('0x5b')]&&(this[_0x357c('0x39')][_0x357c('0x1e')](_0x45609e[_0x357c('0x3e')][_0x357c('0x1f')]),this['_hideBalloon'](),_0x46cd02[_0x357c('0x2d')](),_0x46cd02[_0x357c('0x33')]());}),this[_0x357c('0x23')][_0x357c('0x20')](document,_0x357c('0x5'),(_0xc42d0,_0x3c5fef)=>{const _0x50f270=_0x3c5fef['target'];_0x45609e['isVisible']&&_0x45609e[_0x357c('0x1d')][_0x357c('0x50')](_0x50f270)||_0x1a7743[_0x357c('0x16')]['element'][_0x357c('0x50')](_0x50f270)||_0xc42d0[_0x357c('0x2a')]||this[_0x357c('0x0')]&&this[_0x357c('0x0')]['focusableElements'][_0x357c('0x57')](_0x224668=>_0x224668[_0x357c('0x50')](_0x50f270))||(this['_manuallyClosedAnnotationViews']['clear'](),this[_0x357c('0x11')](),this['setActiveAnnotation'](null));});const _0x312de9=this[_0x357c('0x28')]instanceof _0x262004?this[_0x357c('0x28')]['editors']:new _0x42e7cc([this[_0x357c('0x28')]]);for(const _0x304de7 of _0x312de9)this['_integrateWithEditorAnnotations'](_0x304de7);this[_0x357c('0x20')](_0x312de9,_0x357c('0x1e'),(_0x285c20,_0x438206)=>{this['listenTo'](_0x438206,_0x357c('0x24'),()=>{this[_0x357c('0x4')](_0x438206);});}),this[_0x357c('0x20')](_0x312de9,'remove',(_0x42b1e5,_0x4f22cc)=>{_0x4f22cc['plugins'][_0x357c('0x4c')](_0x357c('0x18'))&&this[_0x357c('0x30')](_0x4f22cc[_0x357c('0x14')][_0x357c('0x2b')](_0x357c('0x18')));}),window[_0x357c('0x3a')](_0x357c('0x3f'),this['_refreshPositioningDebounced']),this[_0x357c('0x1')]();}[_0x357c('0x4d')](_0x373529){if(_0x373529===this['activeAnnotation'])return;const _0x1e5c59=this[_0x357c('0x28')][_0x357c('0x14')][_0x357c('0x2b')](_0x19a8df);if(_0x1e5c59[_0x357c('0x35')]({'blurredAnnotation':this[_0x357c('0x0')],'activatedAnnotation':_0x373529,'disableAnimationOnActivatedAnnotation':!0x0}),_0x373529)_0x1e5c59[_0x357c('0x5d')](_0x373529)?this['_showBalloon'](_0x373529):this[_0x357c('0x11')]();else this[_0x357c('0x11')]();this[_0x357c('0x0')]=_0x373529;}[_0x357c('0x52')](){if(!this[_0x357c('0x15')])throw new _0x1c1df7(_0x357c('0x1a'),this);this[_0x357c('0x4d')](null);const _0x12fc9b=this['context'][_0x357c('0x14')][_0x357c('0x2b')](_0x19a8df);this['_hideBalloon'](),Array['from'](this[_0x357c('0x38')][_0x357c('0x19')](),_0x3832cf=>_0x3832cf[_0x357c('0x43')]()),this['_annotationToNarrowView'][_0x357c('0x4e')](),_0x12fc9b[_0x357c('0x59')](this['annotations']),this['stopListening'](),this[_0x357c('0x23')][_0x357c('0x8')](),this[_0x357c('0x28')]instanceof _0x262004&&this[_0x357c('0x8')](this[_0x357c('0x28')][_0x357c('0x36')]);for(const _0x5c3354 of Array[_0x357c('0x47')](this[_0x357c('0x6')]))this[_0x357c('0x30')](_0x5c3354);window['removeEventListener'](_0x357c('0x3f'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x357c('0x45')](),this[_0x357c('0x32')]=[],this[_0x357c('0x15')]=!0x1,this['annotations']=null;}[_0x357c('0x43')](){this[_0x357c('0x15')]&&this[_0x357c('0x52')](),this[_0x357c('0x2e')][_0x357c('0x40')]();}[_0x357c('0x4')](_0x233b65){const _0x252733=_0x233b65[_0x357c('0x14')]['get'](_0x319ca6),_0x12ee4e=this[_0x357c('0x28')][_0x357c('0x14')]['get'](_0x19a8df),_0x4fec28=this[_0x357c('0x3')],_0x1e7c36=this[_0x357c('0x13')],_0x45bdd8=()=>{const _0x2977e1=_0x252733[_0x357c('0x22')]({'annotations':this[_0x357c('0x3')],'activeAnnotation':this[_0x357c('0x0')]});this[_0x357c('0x2c')](_0x2977e1),this[_0x357c('0x4d')](_0x2977e1[0x0]||null);};this['listenTo'](_0x252733,_0x357c('0x35'),_0x45bdd8),this['listenTo'](_0x252733,_0x357c('0x2'),(_0x516ff5,{isAnnotationTracked:_0x1e6112})=>{this[_0x357c('0x0')]&&_0x1e6112(this[_0x357c('0x0')])&&(this[_0x357c('0x2c')]([]),this[_0x357c('0x4d')](null));}),this[_0x357c('0x20')](_0x252733,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x357c('0x20')](_0x4fec28,_0x357c('0x2'),_0x19ffb5=>{_0x252733['hasDomSelection']()&&_0x19ffb5[_0x357c('0x41')]();},{'priority':'high'}),this[_0x357c('0x20')](this[_0x357c('0x23')],_0x357c('0x5'),(_0x4d46cf,_0x5a0bca)=>{const _0x429e50=_0x5a0bca['target'];_0x1e7c36[_0x357c('0x5b')]&&_0x1e7c36[_0x357c('0x1d')][_0x357c('0x50')](_0x429e50)||_0x12ee4e[_0x357c('0x16')]['element'][_0x357c('0x50')](_0x429e50)||this[_0x357c('0x0')]&&_0x252733[_0x357c('0x42')]()&&(_0x45bdd8(),_0x4d46cf[_0x357c('0x2a')]=!0x0);},{'priority':_0x357c('0x55')}),this['_editorAnnotations']['add'](_0x252733);}[_0x357c('0x30')](_0x742a47){_0x742a47&&(this['stopListening'](_0x742a47),this[_0x357c('0x6')]['remove'](_0x742a47));}['_setSelectedAnnotations'](_0x33616b){for(const _0xf123b1 of this[_0x357c('0x32')])_0x33616b[_0x357c('0x12')](_0xf123b1)||this[_0x357c('0x39')][_0x357c('0x1b')](_0xf123b1[_0x357c('0x16')]);this['_selectedAnnotations']=_0x33616b;}[_0x357c('0x1')](){const _0xe5409b=this[_0x357c('0x13')];this[_0x357c('0x3')]['refreshPositioning'](),_0xe5409b[_0x357c('0x5b')]&&this[_0x357c('0xd')]();}[_0x357c('0x3b')](_0x351b76){if(this[_0x357c('0x39')][_0x357c('0x4c')](_0x351b76[_0x357c('0x16')]))return;const _0x3139ad=this['balloonPanelView'][_0x357c('0x3e')]['first'];_0x3139ad!==_0x351b76[_0x357c('0x16')]?(_0x3139ad&&this[_0x357c('0x5a')](_0x3139ad),this[_0x357c('0x3c')](_0x351b76[_0x357c('0x16')]),this[_0x357c('0x13')]['content']['clear'](),this[_0x357c('0x13')][_0x357c('0x3e')][_0x357c('0x1e')](_0x351b76[_0x357c('0x16')]),this[_0x357c('0xd')]()):this[_0x357c('0xd')]();}[_0x357c('0xd')](){const _0x361854=this[_0x357c('0x13')][_0x357c('0x3e')][_0x357c('0x1f')],_0x356d38=_0x361854&&this[_0x357c('0x3')][_0x357c('0x27')](_0x361854);if(!_0x356d38||!this[_0x357c('0x38')][_0x357c('0x4c')](_0x356d38))return;const _0x371da1=this[_0x357c('0x38')][_0x357c('0x2b')](_0x356d38)['element'],_0x55810f=function(){const _0x29d092=_0x3360ab[_0x357c('0x7')];return[_0x29d092[_0x357c('0x5e')],_0x29d092['northArrowSouthEast'],_0x29d092[_0x357c('0x9')],_0x29d092[_0x357c('0xf')],_0x29d092[_0x357c('0x56')],_0x29d092[_0x357c('0xe')]];}();this[_0x357c('0x13')][_0x357c('0x3d')]({'target':_0x371da1,'positions':_0x55810f});}[_0x357c('0x11')](){const _0x7bad36=this['balloonPanelView'],_0x1583b8=_0x7bad36['content']['first'];_0x1583b8&&(this[_0x357c('0x5a')](_0x1583b8),_0x7bad36['unpin'](),_0x7bad36[_0x357c('0x3e')]['clear']());}[_0x357c('0x3c')](_0x3947a0){this[_0x357c('0x20')](_0x3947a0,'change:height',()=>this['_updateBalloonPosition']()),this[_0x357c('0x20')](_0x3947a0,_0x357c('0x21'),(_0x8379bb,_0x222b8b)=>{this[_0x357c('0x39')][_0x357c('0x1e')](_0x3947a0),this[_0x357c('0x11')](),_0x222b8b();});}[_0x357c('0x5a')](_0x377456){this[_0x357c('0x8')](_0x377456);}}
23
+ const _0x56c9=['bind','stopPropagation','_annotationToNarrowView','narrowsidebar-attach-already-attached','northArrowSouthWest','off','editors','_selectedAnnotations','detach','narrowsidebar-detach-not-attached','view','esc','attach','getOrderedSelectedAnnotations','keydown','has','locale','blur','preventClosingBalloon','refresh','Esc','southArrowNorthWest','removeEventListener','ready','execute','_refreshPositioningDebounced','remove','_detachListeners','isAttached','pluginName','_detachFromContainer','northArrowSouth','annotations','attachToDom','set:container','listenTo','rearrange','requires','_hideBalloon','_setSelectedAnnotations','includes','values','preventDefault','_updateBalloonPosition','plugins','_editorAnnotations','uiUpdate','contains','defaultPositions','stop','change:height','keyCode','southArrowNorthEast','_domEmitter','change:container','isVisible','unpin','_destroyEditorAnnotationsIntegration','balloonPanelView','get','_integrateWithEditorAnnotations','focus','length','element','destroy','refreshPositioning','isDirty','set','delete','from','clear','find','_attachListeners','add','_showBalloon','focusableElements','setActiveAnnotation','northArrowSouthEast','init','_manuallyClosedAnnotationViews','_annotations','target','mousedown','first','high','create','content','stopListening','number','cancel','pin','getByView','_refreshPositioning','EditorAnnotations','type','southArrowNorth','context','activeAnnotation','low','resize','bodyCollection','addEventListener'];(function(_0x40c949,_0x56c9b7){const _0x35a1f6=function(_0x401f93){while(--_0x401f93){_0x40c949['push'](_0x40c949['shift']());}};_0x35a1f6(++_0x56c9b7);}(_0x56c9,0x174));const _0x35a1=function(_0x40c949,_0x56c9b7){_0x40c949=_0x40c949-0x0;let _0x35a1f6=_0x56c9[_0x40c949];return _0x35a1f6;};import{ContextPlugin as _0x191c0a,Context as _0x8ed6a5}from'ckeditor5/src/core.js';import _0x375fb6 from'./annotationsuis.js';import _0x180499 from'./sidebar.js';import _0x413958 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0xfbb800,BodyCollection as _0x580a7e}from'ckeditor5/src/ui.js';import{CKEditorError as _0x13ac29,DomEmitterMixin as _0x5c213a,keyCodes as _0x1cb2e1,Collection as _0x58862d}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x4a61c1}from'lodash-es';import _0x39e9f8 from'./editorannotations.js';export default class i extends _0x191c0a{static get[_0x35a1('0x49')](){return[_0x180499,_0x375fb6];}static get[_0x35a1('0x41')](){return'NarrowSidebar';}constructor(_0x3090a6){super(_0x3090a6),this[_0x35a1('0x40')]=!0x1,this[_0x35a1('0xd')]=new Set(),this[_0x35a1('0x59')]=Object[_0x35a1('0x13')](_0x5c213a),this['_annotationToNarrowView']=new Map(),this['set'](_0x35a1('0x1f'),null),this[_0x35a1('0x44')]=null,this[_0x35a1('0x2b')]=[],this['_editorAnnotations']=new _0x58862d(),this[_0x35a1('0x3d')]=_0x4a61c1(()=>{this[_0x35a1('0x1a')]();},0xfa,{'leading':!0x1});}[_0x35a1('0xc')](){this[_0x35a1('0x1e')][_0x35a1('0x50')][_0x35a1('0x5f')](_0x375fb6)['register']('narrowSidebar',this),this[_0x35a1('0x22')]=new _0x580a7e(this[_0x35a1('0x1e')]['locale']),this[_0x35a1('0x5e')]=new _0xfbb800(this[_0x35a1('0x1e')][_0x35a1('0x34')]),this['bodyCollection'][_0x35a1('0x45')](),this[_0x35a1('0x22')][_0x35a1('0x7')](this[_0x35a1('0x5e')]);}[_0x35a1('0x30')](_0x5a8475){this[_0x35a1('0x44')]=_0x5a8475;const _0x1eb215=this[_0x35a1('0x1e')]['plugins'][_0x35a1('0x5f')](_0x180499),_0x3bf065=this[_0x35a1('0x5e')];if(_0x1eb215[_0x35a1('0xe')]=_0x5a8475,this['isAttached'])throw new _0x13ac29(_0x35a1('0x27'),this);this[_0x35a1('0x40')]=!0x0,this[_0x35a1('0x47')](_0x1eb215,_0x35a1('0x46'),()=>{this[_0x35a1('0x2c')](),this[_0x35a1('0x47')](_0x1eb215,_0x35a1('0x5a'),_0x5bc9a1=>{_0x5bc9a1[_0x35a1('0x29')](),this[_0x35a1('0x30')](_0x5a8475);});}),_0x1eb215['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x551b76=_0x3cf561=>{const _0x27a494=new _0x413958(this[_0x35a1('0x1e')][_0x35a1('0x34')]);_0x1eb215['addAnnotation'](_0x3cf561,_0x27a494),this['_annotationToNarrowView'][_0x35a1('0x1')](_0x3cf561,_0x27a494),_0x27a494[_0x35a1('0x24')]('isDirty','annotationType',_0x35a1('0x16'))['to'](_0x3cf561[_0x35a1('0x2e')],_0x35a1('0x0'),_0x35a1('0x1c'),_0x35a1('0x62')),_0x27a494['on'](_0x35a1('0x3c'),()=>{this[_0x35a1('0xd')][_0x35a1('0x4')](),_0x3bf065['content'][_0x35a1('0x11')]!==_0x3cf561[_0x35a1('0x2e')]?(this[_0x35a1('0x8')](_0x3cf561),_0x3cf561[_0x35a1('0x2e')]['element'][_0x35a1('0x61')](),this[_0x35a1('0xa')](_0x3cf561)):this[_0x35a1('0xa')](null);});};for(const _0x206a7c of _0x5a8475)_0x551b76(_0x206a7c);this['listenTo'](_0x5a8475,_0x35a1('0x7'),(_0xc5f00c,_0x513bc2)=>{_0x551b76(_0x513bc2);}),this[_0x35a1('0x47')](_0x5a8475,_0x35a1('0x3e'),(_0x1a5e48,_0x555a68,_0x253360)=>{this[_0x35a1('0x26')][_0x35a1('0x5f')](_0x555a68)['destroy'](),this['_annotationToNarrowView'][_0x35a1('0x2')](_0x555a68),_0x1eb215[_0x35a1('0x48')]({'removedAnnotation':_0x555a68,'previousAnnotation':_0x5a8475[_0x35a1('0x5f')](_0x253360-0x1),'nextAnnotation':_0x5a8475[_0x35a1('0x5f')](_0x253360+0x1)}),_0x555a68===this[_0x35a1('0x1f')]&&this[_0x35a1('0xa')](null);},{'priority':_0x35a1('0x20')}),this[_0x35a1('0x47')](_0x5a8475,_0x35a1('0x61'),(_0x12264e,_0x16ccfc)=>{this[_0x35a1('0xa')](_0x16ccfc);}),this['listenTo'](_0x5a8475,_0x35a1('0x35'),()=>{this['setActiveAnnotation'](null);}),this[_0x35a1('0x59')][_0x35a1('0x47')](document,_0x35a1('0x32'),(_0xd52303,_0x1fe31e)=>{_0x1fe31e[_0x35a1('0x57')]===_0x1cb2e1[_0x35a1('0x2f')]&&_0x3bf065[_0x35a1('0x5b')]&&(this['_manuallyClosedAnnotationViews'][_0x35a1('0x7')](_0x3bf065[_0x35a1('0x14')]['first']),this[_0x35a1('0x4a')](),_0x1fe31e[_0x35a1('0x25')](),_0x1fe31e[_0x35a1('0x4e')]());}),this[_0x35a1('0x59')][_0x35a1('0x47')](document,_0x35a1('0x10'),(_0x3e6714,_0x37dc4a)=>{const _0x1937b7=_0x37dc4a[_0x35a1('0xf')];_0x3bf065[_0x35a1('0x5b')]&&_0x3bf065[_0x35a1('0x63')]['contains'](_0x1937b7)||_0x1eb215[_0x35a1('0x2e')][_0x35a1('0x63')][_0x35a1('0x53')](_0x1937b7)||_0x3e6714[_0x35a1('0x36')]||this[_0x35a1('0x1f')]&&this[_0x35a1('0x1f')][_0x35a1('0x9')][_0x35a1('0x5')](_0x1debb2=>_0x1debb2[_0x35a1('0x53')](_0x1937b7))||(this[_0x35a1('0xd')][_0x35a1('0x4')](),this[_0x35a1('0x4a')](),this[_0x35a1('0xa')](null));});const _0xfbba1f=this[_0x35a1('0x1e')]instanceof _0x8ed6a5?this[_0x35a1('0x1e')][_0x35a1('0x2a')]:new _0x58862d([this[_0x35a1('0x1e')]]);for(const _0x60ba77 of _0xfbba1f)this[_0x35a1('0x60')](_0x60ba77);this[_0x35a1('0x47')](_0xfbba1f,_0x35a1('0x7'),(_0x1027fc,_0x3e4d5a)=>{this[_0x35a1('0x47')](_0x3e4d5a,_0x35a1('0x3b'),()=>{this[_0x35a1('0x60')](_0x3e4d5a);});}),this[_0x35a1('0x47')](_0xfbba1f,_0x35a1('0x3e'),(_0x493384,_0x554c95)=>{_0x554c95[_0x35a1('0x50')]['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x554c95['plugins'][_0x35a1('0x5f')](_0x35a1('0x1b')));}),window[_0x35a1('0x23')](_0x35a1('0x21'),this[_0x35a1('0x3d')]),this[_0x35a1('0x1a')]();}[_0x35a1('0xa')](_0x25a08a){if(_0x25a08a===this[_0x35a1('0x1f')])return;const _0x578e60=this[_0x35a1('0x1e')]['plugins'][_0x35a1('0x5f')](_0x180499);if(_0x578e60[_0x35a1('0x37')]({'blurredAnnotation':this[_0x35a1('0x1f')],'activatedAnnotation':_0x25a08a,'disableAnimationOnActivatedAnnotation':!0x0}),_0x25a08a)_0x578e60['getSidebarItemView'](_0x25a08a)?this[_0x35a1('0x8')](_0x25a08a):this['_hideBalloon']();else this[_0x35a1('0x4a')]();this[_0x35a1('0x1f')]=_0x25a08a;}[_0x35a1('0x2c')](){if(!this[_0x35a1('0x40')])throw new _0x13ac29(_0x35a1('0x2d'),this);this[_0x35a1('0xa')](null);const _0x4cb28f=this[_0x35a1('0x1e')]['plugins'][_0x35a1('0x5f')](_0x180499);this[_0x35a1('0x4a')](),Array['from'](this[_0x35a1('0x26')][_0x35a1('0x4d')](),_0x1eafb2=>_0x1eafb2[_0x35a1('0x64')]()),this[_0x35a1('0x26')][_0x35a1('0x4')](),_0x4cb28f[_0x35a1('0x42')](this[_0x35a1('0x44')]),this[_0x35a1('0x15')](),this['_domEmitter']['stopListening'](),this[_0x35a1('0x1e')]instanceof _0x8ed6a5&&this[_0x35a1('0x15')](this['context'][_0x35a1('0x2a')]);for(const _0x51d228 of Array[_0x35a1('0x3')](this['_editorAnnotations']))this[_0x35a1('0x5d')](_0x51d228);window[_0x35a1('0x3a')](_0x35a1('0x21'),this['_refreshPositioningDebounced']),this[_0x35a1('0x3d')][_0x35a1('0x17')](),this[_0x35a1('0x2b')]=[],this[_0x35a1('0x40')]=!0x1,this[_0x35a1('0x44')]=null;}[_0x35a1('0x64')](){this['isAttached']&&this[_0x35a1('0x2c')](),this[_0x35a1('0x22')]['detachFromDom']();}[_0x35a1('0x60')](_0xad51b3){const _0x596632=_0xad51b3[_0x35a1('0x50')][_0x35a1('0x5f')](_0x39e9f8),_0xba8f23=this[_0x35a1('0x1e')]['plugins'][_0x35a1('0x5f')](_0x180499),_0x3737f5=this[_0x35a1('0x44')],_0x230e45=this[_0x35a1('0x5e')],_0x11650a=()=>{const _0x214db7=_0x596632[_0x35a1('0x31')]({'annotations':this[_0x35a1('0x44')],'activeAnnotation':this['activeAnnotation']});this[_0x35a1('0x4b')](_0x214db7),this[_0x35a1('0xa')](_0x214db7[0x0]||null);};this[_0x35a1('0x47')](_0x596632,_0x35a1('0x37'),_0x11650a),this[_0x35a1('0x47')](_0x596632,_0x35a1('0x35'),(_0x428aa6,{isAnnotationTracked:_0x512d7a})=>{this[_0x35a1('0x1f')]&&_0x512d7a(this[_0x35a1('0x1f')])&&(this[_0x35a1('0x4b')]([]),this['setActiveAnnotation'](null));}),this[_0x35a1('0x47')](_0x596632,_0x35a1('0x52'),()=>{this[_0x35a1('0x3d')]();}),this[_0x35a1('0x47')](_0x3737f5,_0x35a1('0x35'),_0x39200d=>{_0x596632['hasDomSelection']()&&_0x39200d[_0x35a1('0x55')]();},{'priority':'high'}),this[_0x35a1('0x47')](this[_0x35a1('0x59')],'mousedown',(_0x1f43bc,_0x518848)=>{const _0x364c99=_0x518848[_0x35a1('0xf')];_0x230e45[_0x35a1('0x5b')]&&_0x230e45['element'][_0x35a1('0x53')](_0x364c99)||_0xba8f23[_0x35a1('0x2e')][_0x35a1('0x63')][_0x35a1('0x53')](_0x364c99)||this['activeAnnotation']&&_0x596632['hasDomSelection']()&&(_0x11650a(),_0x1f43bc[_0x35a1('0x36')]=!0x0);},{'priority':_0x35a1('0x12')}),this[_0x35a1('0x51')]['add'](_0x596632);}[_0x35a1('0x5d')](_0x2e49fd){_0x2e49fd&&(this['stopListening'](_0x2e49fd),this[_0x35a1('0x51')][_0x35a1('0x3e')](_0x2e49fd));}[_0x35a1('0x4b')](_0x32db65){for(const _0x10fcc8 of this[_0x35a1('0x2b')])_0x32db65[_0x35a1('0x4c')](_0x10fcc8)||this[_0x35a1('0xd')][_0x35a1('0x2')](_0x10fcc8[_0x35a1('0x2e')]);this[_0x35a1('0x2b')]=_0x32db65;}[_0x35a1('0x1a')](){const _0x41b1b0=this['balloonPanelView'];this['annotations'][_0x35a1('0x65')](),_0x41b1b0[_0x35a1('0x5b')]&&this[_0x35a1('0x4f')]();}['_showBalloon'](_0x3b106a){if(this['_manuallyClosedAnnotationViews'][_0x35a1('0x33')](_0x3b106a[_0x35a1('0x2e')]))return;const _0x17952c=this[_0x35a1('0x5e')]['content']['first'];_0x17952c!==_0x3b106a[_0x35a1('0x2e')]?(_0x17952c&&this[_0x35a1('0x3f')](_0x17952c),this['_attachListeners'](_0x3b106a['view']),this['balloonPanelView'][_0x35a1('0x14')][_0x35a1('0x4')](),this[_0x35a1('0x5e')][_0x35a1('0x14')]['add'](_0x3b106a['view']),this[_0x35a1('0x4f')]()):this['_updateBalloonPosition']();}[_0x35a1('0x4f')](){const _0x39c236=this[_0x35a1('0x5e')]['content'][_0x35a1('0x11')],_0x19fbb0=_0x39c236&&this[_0x35a1('0x44')][_0x35a1('0x19')](_0x39c236);if(!_0x19fbb0||!this[_0x35a1('0x26')][_0x35a1('0x33')](_0x19fbb0))return;const _0x3c8183=this[_0x35a1('0x26')]['get'](_0x19fbb0)[_0x35a1('0x63')],_0x165575=function(){const _0x5b8de5=_0xfbb800[_0x35a1('0x54')];return[_0x5b8de5[_0x35a1('0x58')],_0x5b8de5[_0x35a1('0xb')],_0x5b8de5[_0x35a1('0x1d')],_0x5b8de5[_0x35a1('0x43')],_0x5b8de5[_0x35a1('0x39')],_0x5b8de5[_0x35a1('0x28')]];}();this['balloonPanelView'][_0x35a1('0x18')]({'target':_0x3c8183,'positions':_0x165575});}[_0x35a1('0x4a')](){const _0x22afc6=this[_0x35a1('0x5e')],_0x43e86a=_0x22afc6[_0x35a1('0x14')][_0x35a1('0x11')];_0x43e86a&&(this['_detachListeners'](_0x43e86a),_0x22afc6[_0x35a1('0x5c')](),_0x22afc6['content'][_0x35a1('0x4')]());}[_0x35a1('0x6')](_0x2bdab8){this[_0x35a1('0x47')](_0x2bdab8,_0x35a1('0x56'),()=>this[_0x35a1('0x4f')]()),this['listenTo'](_0x2bdab8,_0x35a1('0x38'),(_0x2d47c6,_0x1aab4a)=>{this[_0x35a1('0xd')]['add'](_0x2bdab8),this['_hideBalloon'](),_0x1aab4a();});}['_detachListeners'](_0x6f5c49){this[_0x35a1('0x15')](_0x6f5c49);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1039=['sidebar-attachtocontainer-missing-container','change:_lastItem','minHeight','getSidebarItemView','object','content','_annotations','last','Sidebar','get','context','listenTo','init','updateHeight','_targetTop','pluginName','_getItemAfter','sidebar-setcontainer-invalid-element','change:top','max','delete','render','element','targetRect','_alignForBottomChange','destroy','config','view','push','_lastItem','sidebar.container','_recalculateBuffer','_activeAnnotation','_destroySidebarItemView','_getTargetTop','class','_createSidebarView','sidebar.preventScrollOutOfView','_alignAfterItem','_updateLastItem','_alignToTargetRect','clear','isActive','container','locale','bottom','top','isAnimationDisabled','_getMaxAvailableTop','_sidebarItemViewToAnnotation','set','unbind','length','_recalculate','change:targetRect','add','addAnnotation','_getItemBefore','list','_alignBeforeItem','bind','_attachToContainer','remove','getIndex','_annotationToSidebarItemView','setContainer','_alignForTopChange','_setItemTop','_spaceBetweenItems','target'];(function(_0x5e5c46,_0x103978){const _0x2def3d=function(_0x5a53cf){while(--_0x5a53cf){_0x5e5c46['push'](_0x5e5c46['shift']());}};_0x2def3d(++_0x103978);}(_0x1039,0x1f0));const _0x2def=function(_0x5e5c46,_0x103978){_0x5e5c46=_0x5e5c46-0x0;let _0x2def3d=_0x1039[_0x5e5c46];return _0x2def3d;};import{ContextPlugin as _0x598470}from'ckeditor5/src/core.js';import{Rect as _0x5b6ebf,CKEditorError as _0xa97fd7}from'ckeditor5/src/utils.js';import _0x5916bf from'./view/sidebarview.js';import _0x23104c from'./view/sidebaritemview.js';export default class z extends _0x598470{static get[_0x2def('0x9')](){return _0x2def('0x2');}constructor(_0x2ce9dd){super(_0x2ce9dd),this['set'](_0x2def('0x17'),void 0x0),this[_0x2def('0x15')]=this['_createSidebarView'](),this['set'](_0x2def('0x25'),null),this['_spaceBetweenItems']=0x19,this[_0x2def('0x2b')]=new Map(),this[_0x2def('0x3a')]=new Map(),this[_0x2def('0x4')]['config']['define'](_0x2def('0x1f'),!0x1),this[_0x2def('0x0')]=null,this['_activeAnnotation']=null,this[_0x2def('0x19')]=[];}[_0x2def('0x6')](){const _0x414dd5=this[_0x2def('0x4')]['config'][_0x2def('0x3')](_0x2def('0x18'));_0x414dd5&&this['setContainer'](_0x414dd5);}[_0x2def('0x3b')](_0x50a79b){if(!y(_0x50a79b))throw new _0xa97fd7(_0x2def('0xb'));this[_0x2def('0x25')]=_0x50a79b;}[_0x2def('0x37')]({viewClass:_0x4d5cb8='',spaceBetweenItems:_0x168336=0x19}={}){if(!y(this[_0x2def('0x25')]))throw new _0xa97fd7(_0x2def('0x40'),this);this[_0x2def('0x25')]['appendChild'](this[_0x2def('0x15')]['element']),this[_0x2def('0x15')]['class']=_0x4d5cb8,this[_0x2def('0x3e')]=_0x168336;}['rearrange']({removedAnnotation:_0x194f85,previousAnnotation:_0x516f92,nextAnnotation:_0x2602cc}){const _0x49dfe6=this[_0x2def('0x43')](_0x194f85);this[_0x2def('0x15')][_0x2def('0x34')][_0x2def('0x38')](_0x49dfe6),this[_0x2def('0x1b')](_0x194f85),_0x516f92&&this[_0x2def('0x22')](this['getSidebarItemView'](_0x516f92)),_0x2602cc&&this[_0x2def('0x22')](this[_0x2def('0x43')](_0x2602cc)),this[_0x2def('0x21')]();}['refresh']({blurredAnnotation:_0x30cbee,activatedAnnotation:_0x22e8e5,disableAnimationOnActivatedAnnotation:_0x46cc9a}){if(this[_0x2def('0x1a')]=_0x22e8e5,_0x30cbee){_0x30cbee[_0x2def('0x24')]=!0x1;const _0x31d464=this['getSidebarItemView'](_0x30cbee);_0x31d464&&_0x46cc9a&&(_0x31d464[_0x2def('0x29')]=!0x1);}if(_0x22e8e5){const _0x189a46=this['getSidebarItemView'](_0x22e8e5);_0x189a46&&(_0x22e8e5[_0x2def('0x24')]=!0x0,_0x46cc9a&&(_0x189a46[_0x2def('0x29')]=!0x0,_0x189a46[_0x2def('0x28')]+=0x1),this[_0x2def('0x22')](_0x189a46));}}['_detachFromContainer'](_0x1f4ee1){if(this[_0x2def('0x15')][_0x2def('0x10')]['remove'](),_0x1f4ee1)for(const _0xab70a3 of _0x1f4ee1)this['_destroySidebarItemView'](_0xab70a3);this[_0x2def('0x15')]['list'][_0x2def('0x23')](),this['view'][_0x2def('0x1d')]='',this[_0x2def('0x17')]=null;}[_0x2def('0x32')](_0x32c1b5,_0x39d9e7){_0x39d9e7||(_0x39d9e7=_0x32c1b5[_0x2def('0x15')]);const _0x42ed00=new _0x23104c(this[_0x2def('0x4')][_0x2def('0x26')]);this[_0x2def('0x2b')]['set'](_0x42ed00,_0x32c1b5),this[_0x2def('0x3a')][_0x2def('0x2c')](_0x32c1b5,_0x42ed00),_0x42ed00[_0x2def('0x45')]['add'](_0x39d9e7),this[_0x2def('0x5')](_0x32c1b5[_0x2def('0x15')],_0x2def('0x30'),(_0x2f4d6c,_0x2b8335,_0x4b767e)=>{const _0x2d7130=this[_0x2def('0x1c')](_0x32c1b5,_0x4b767e);_0x42ed00[_0x2def('0x8')]!=_0x2d7130&&(_0x42ed00[_0x2def('0x8')]=_0x2d7130,this['_setItemTop'](_0x42ed00,_0x2d7130));}),this[_0x2def('0x5')](_0x42ed00,_0x2def('0xc'),()=>{this[_0x2def('0x2f')](_0x42ed00,'top');}),this[_0x2def('0x5')](_0x42ed00,'change:bottom',()=>{this[_0x2def('0x2f')](_0x42ed00,_0x2def('0x27'));}),this[_0x2def('0x22')](_0x42ed00);const _0x356070=this[_0x2def('0x33')](_0x42ed00);if(_0x356070)this[_0x2def('0x20')](_0x356070,_0x42ed00)||this[_0x2def('0x22')](_0x42ed00);else this[_0x2def('0x22')](_0x42ed00);return this[_0x2def('0x21')](),this[_0x2def('0x15')][_0x2def('0x34')][_0x2def('0x31')](_0x42ed00),_0x42ed00;}['_alignForTopChange'](_0x5f2f1b){if(!_0x5f2f1b[_0x2def('0x45')][_0x2def('0x2e')])return;const _0x5235e6=this[_0x2def('0x33')](_0x5f2f1b);if(!_0x5235e6)return;const _0x38c1fe=this[_0x2def('0x2b')][_0x2def('0x3')](_0x5235e6),_0x15075a=this[_0x2def('0x1a')];_0x15075a&&_0x15075a===_0x38c1fe?this[_0x2def('0x20')](_0x5235e6,_0x5f2f1b):this[_0x2def('0x35')](_0x5f2f1b,_0x5235e6);}[_0x2def('0x12')](_0x2b2749){if(!_0x2b2749[_0x2def('0x45')][_0x2def('0x2e')])return;const _0x229b4b=this['_getItemAfter'](_0x2b2749);if(!_0x229b4b)return;const _0x42844e=this['_sidebarItemViewToAnnotation']['get'](_0x229b4b),_0x1c3184=this[_0x2def('0x4')][_0x2def('0x14')]['get']('sidebar.preventScrollOutOfView'),_0x51d968=this[_0x2def('0x1a')];_0x51d968&&_0x51d968===_0x42844e&&_0x1c3184?(this[_0x2def('0x35')](_0x229b4b,_0x2b2749),this[_0x2def('0x20')](_0x2b2749,_0x229b4b)):_0x51d968&&_0x51d968===_0x42844e?this['_alignBeforeItem'](_0x229b4b,_0x2b2749):this[_0x2def('0x20')](_0x2b2749,_0x229b4b);}['_recalculate'](_0x1320ae,_0x587ab0){0x0===this[_0x2def('0x19')][_0x2def('0x2e')]&&setTimeout(()=>{for(const {sidebarItemView:_0x34ed33,changedProp:_0x42c772}of this['_recalculateBuffer'])_0x2def('0x28')===_0x42c772?this[_0x2def('0x3c')](_0x34ed33):this[_0x2def('0x12')](_0x34ed33);this[_0x2def('0x19')]=[];},0xa),this[_0x2def('0x19')][_0x2def('0x16')]({'sidebarItemView':_0x1320ae,'changedProp':_0x587ab0});}[_0x2def('0x43')](_0x2016e8){return this[_0x2def('0x3a')][_0x2def('0x3')](_0x2016e8);}['destroy'](){this['stopListening'](),this['view'][_0x2def('0x13')]();}[_0x2def('0x1b')](_0x2f259a){const _0x15c888=this['getSidebarItemView'](_0x2f259a);this['stopListening'](_0x15c888),this['stopListening'](_0x2f259a[_0x2def('0x15')]),_0x15c888['destroy'](),this[_0x2def('0x3a')][_0x2def('0xe')](_0x2f259a),this[_0x2def('0x2b')][_0x2def('0xe')](_0x15c888);}[_0x2def('0x1e')](){const _0x14b3bf=new _0x5916bf(this[_0x2def('0x4')][_0x2def('0x26')]);return _0x14b3bf[_0x2def('0xf')](),this['on'](_0x2def('0x41'),(_0x1c57cc,_0x15697b,_0x38224e,_0x56df64)=>{_0x56df64&&_0x14b3bf[_0x2def('0x2d')](_0x2def('0x42')),_0x38224e?_0x14b3bf[_0x2def('0x36')](_0x2def('0x42'))['to'](_0x38224e,_0x2def('0x27')):_0x14b3bf[_0x2def('0x42')]=null;}),_0x14b3bf;}[_0x2def('0x21')](){var _0x3bd75b;this[_0x2def('0x17')]=(null===(_0x3bd75b=this[_0x2def('0x0')])||void 0x0===_0x3bd75b?void 0x0:_0x3bd75b[_0x2def('0x1')])?this[_0x2def('0x43')](this['_annotations'][_0x2def('0x1')]):null;}[_0x2def('0x33')](_0x4cd150){var _0x37b145;const _0x5c5249=this[_0x2def('0x2b')]['get'](_0x4cd150),_0x16b038=_0x5c5249&&(null===(_0x37b145=this[_0x2def('0x0')])||void 0x0===_0x37b145?void 0x0:_0x37b145['get'](this[_0x2def('0x0')][_0x2def('0x39')](_0x5c5249)-0x1));return _0x16b038&&this[_0x2def('0x43')](_0x16b038)||null;}[_0x2def('0xa')](_0x51b5c8){var _0x10bcaf;const _0x419578=this[_0x2def('0x2b')][_0x2def('0x3')](_0x51b5c8),_0x33fa75=_0x419578&&(null===(_0x10bcaf=this[_0x2def('0x0')])||void 0x0===_0x10bcaf?void 0x0:_0x10bcaf['get'](this[_0x2def('0x0')]['getIndex'](_0x419578)+0x1));return _0x33fa75&&this[_0x2def('0x43')](_0x33fa75)||null;}[_0x2def('0x35')](_0x209b87,_0xaf93f1){_0x209b87[_0x2def('0x7')]();const _0x34798d=M(_0xaf93f1[_0x2def('0x27')]+this['_spaceBetweenItems'],_0x209b87['top']);return!!_0x34798d&&(this[_0x2def('0x3d')](_0xaf93f1,_0xaf93f1[_0x2def('0x28')]-_0x34798d),!0x0);}[_0x2def('0x20')](_0x39b01c,_0x9813ff){_0x39b01c['updateHeight']();const _0x1289dd=M(_0x39b01c[_0x2def('0x27')]+this[_0x2def('0x3e')],_0x9813ff['top']);return!!_0x1289dd&&(this[_0x2def('0x3d')](_0x9813ff,_0x9813ff[_0x2def('0x28')]+_0x1289dd,!0x1),!0x0);}[_0x2def('0x22')](_0x395cfc){const _0xba8145=this['_sidebarItemViewToAnnotation'][_0x2def('0x3')](_0x395cfc);if(!_0xba8145||!_0xba8145[_0x2def('0x3f')]||!_0xba8145[_0x2def('0x11')])return;const _0x932267=this[_0x2def('0x1c')](_0xba8145,_0xba8145[_0x2def('0x11')]);this[_0x2def('0x3d')](_0x395cfc,_0x932267);}[_0x2def('0x1c')](_0x449e0e,_0x32613f){if(null===_0x32613f)return 0x0;if(_0x449e0e[_0x2def('0x3f')]instanceof _0x5b6ebf)return _0x32613f[_0x2def('0x28')];{const _0x48935f=new _0x5b6ebf(this[_0x2def('0x15')][_0x2def('0x10')])['top'];return _0x32613f['top']-_0x48935f;}}['_setItemTop'](_0x159406,_0x25a337,_0x5376f8=this[_0x2def('0x4')][_0x2def('0x14')][_0x2def('0x3')](_0x2def('0x1f'))){_0x5376f8&&(_0x25a337=Math[_0x2def('0xd')](_0x25a337,this[_0x2def('0x2a')](_0x159406))),_0x159406[_0x2def('0x28')]=_0x25a337;}[_0x2def('0x2a')](_0x5f31ee){let _0x2d8298=this[_0x2def('0x33')](_0x5f31ee),_0xf89ef3=0x0;for(;_0x2d8298;)_0x2d8298['updateHeight'](),_0xf89ef3+=this[_0x2def('0x3e')]+_0x2d8298['height'],_0x2d8298=this[_0x2def('0x33')](_0x2d8298);return _0xf89ef3;}}function M(_0x3eaf77,_0x17bef9){return Math[_0x2def('0xd')](_0x3eaf77-_0x17bef9,0x0);}function y(_0x433a66){return null!==_0x433a66&&_0x2def('0x44')==typeof _0x433a66&&0x1===_0x433a66['nodeType'];}
23
+ const _0x3de0=['_getItemAfter','max','_activeAnnotation','nodeType','class','change:bottom','_getItemBefore','_alignToTargetRect','config','_annotations','_alignBeforeItem','pluginName','isActive','_destroySidebarItemView','init','height','_targetTop','rearrange','listenTo','_alignAfterItem','content','bind','stopListening','locale','clear','list','sidebar-attachtocontainer-missing-container','updateHeight','add','isAnimationDisabled','_setItemTop','container','_recalculateBuffer','change:targetRect','change:_lastItem','_createSidebarView','define','destroy','_lastItem','remove','getSidebarItemView','target','refresh','element','delete','addAnnotation','getIndex','_alignForBottomChange','object','_sidebarItemViewToAnnotation','_spaceBetweenItems','targetRect','context','view','setContainer','bottom','sidebar.container','appendChild','_annotationToSidebarItemView','length','get','push','_recalculate','minHeight','Sidebar','top','render','set','change:top','sidebar.preventScrollOutOfView','_getTargetTop','_updateLastItem'];(function(_0x3cb32f,_0x3de06f){const _0x5b28d8=function(_0x4f7d7a){while(--_0x4f7d7a){_0x3cb32f['push'](_0x3cb32f['shift']());}};_0x5b28d8(++_0x3de06f);}(_0x3de0,0x163));const _0x5b28=function(_0x3cb32f,_0x3de06f){_0x3cb32f=_0x3cb32f-0x0;let _0x5b28d8=_0x3de0[_0x3cb32f];return _0x5b28d8;};import{ContextPlugin as _0x32f9a9}from'ckeditor5/src/core.js';import{Rect as _0x671cb8,CKEditorError as _0x455557}from'ckeditor5/src/utils.js';import _0x22a4b6 from'./view/sidebarview.js';import _0x5037ba from'./view/sidebaritemview.js';export default class z extends _0x32f9a9{static get[_0x5b28('0x10')](){return _0x5b28('0x45');}constructor(_0x1cc894){super(_0x1cc894),this[_0x5b28('0x0')]('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this[_0x5b28('0x0')](_0x5b28('0x24'),null),this['_spaceBetweenItems']=0x19,this[_0x5b28('0x36')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context'][_0x5b28('0xd')][_0x5b28('0x29')](_0x5b28('0x2'),!0x1),this[_0x5b28('0xe')]=null,this[_0x5b28('0x7')]=null,this[_0x5b28('0x25')]=[];}[_0x5b28('0x13')](){const _0x2f7add=this[_0x5b28('0x39')]['config'][_0x5b28('0x41')](_0x5b28('0x3d'));_0x2f7add&&this[_0x5b28('0x3b')](_0x2f7add);}[_0x5b28('0x3b')](_0x453693){if(!y(_0x453693))throw new _0x455557('sidebar-setcontainer-invalid-element');this[_0x5b28('0x24')]=_0x453693;}['_attachToContainer']({viewClass:_0xe65553='',spaceBetweenItems:_0x3d4ab3=0x19}={}){if(!y(this['container']))throw new _0x455557(_0x5b28('0x1f'),this);this[_0x5b28('0x24')][_0x5b28('0x3e')](this[_0x5b28('0x3a')][_0x5b28('0x30')]),this[_0x5b28('0x3a')][_0x5b28('0x9')]=_0xe65553,this[_0x5b28('0x37')]=_0x3d4ab3;}[_0x5b28('0x16')]({removedAnnotation:_0x4d4120,previousAnnotation:_0x129ba,nextAnnotation:_0x254f45}){const _0x23e3c5=this[_0x5b28('0x2d')](_0x4d4120);this['view'][_0x5b28('0x1e')][_0x5b28('0x2c')](_0x23e3c5),this[_0x5b28('0x12')](_0x4d4120),_0x129ba&&this['_alignToTargetRect'](this[_0x5b28('0x2d')](_0x129ba)),_0x254f45&&this[_0x5b28('0xc')](this[_0x5b28('0x2d')](_0x254f45)),this['_updateLastItem']();}[_0x5b28('0x2f')]({blurredAnnotation:_0x1b87c4,activatedAnnotation:_0x3106d4,disableAnimationOnActivatedAnnotation:_0xcc701f}){if(this[_0x5b28('0x7')]=_0x3106d4,_0x1b87c4){_0x1b87c4[_0x5b28('0x11')]=!0x1;const _0x306f15=this[_0x5b28('0x2d')](_0x1b87c4);_0x306f15&&_0xcc701f&&(_0x306f15[_0x5b28('0x22')]=!0x1);}if(_0x3106d4){const _0x2615cf=this[_0x5b28('0x2d')](_0x3106d4);_0x2615cf&&(_0x3106d4[_0x5b28('0x11')]=!0x0,_0xcc701f&&(_0x2615cf[_0x5b28('0x22')]=!0x0,_0x2615cf['top']+=0x1),this[_0x5b28('0xc')](_0x2615cf));}}['_detachFromContainer'](_0x6fc3e0){if(this[_0x5b28('0x3a')][_0x5b28('0x30')][_0x5b28('0x2c')](),_0x6fc3e0)for(const _0x5cbc16 of _0x6fc3e0)this[_0x5b28('0x12')](_0x5cbc16);this['view'][_0x5b28('0x1e')][_0x5b28('0x1d')](),this['view']['class']='',this[_0x5b28('0x2b')]=null;}[_0x5b28('0x32')](_0xb458e6,_0x4fb0e8){_0x4fb0e8||(_0x4fb0e8=_0xb458e6['view']);const _0x27b686=new _0x5037ba(this[_0x5b28('0x39')]['locale']);this[_0x5b28('0x36')][_0x5b28('0x0')](_0x27b686,_0xb458e6),this['_annotationToSidebarItemView'][_0x5b28('0x0')](_0xb458e6,_0x27b686),_0x27b686['content'][_0x5b28('0x21')](_0x4fb0e8),this['listenTo'](_0xb458e6[_0x5b28('0x3a')],_0x5b28('0x26'),(_0x157538,_0x4862ce,_0x56979d)=>{const _0x55c6af=this['_getTargetTop'](_0xb458e6,_0x56979d);_0x27b686['_targetTop']!=_0x55c6af&&(_0x27b686[_0x5b28('0x15')]=_0x55c6af,this[_0x5b28('0x23')](_0x27b686,_0x55c6af));}),this[_0x5b28('0x17')](_0x27b686,_0x5b28('0x1'),()=>{this[_0x5b28('0x43')](_0x27b686,_0x5b28('0x46'));}),this['listenTo'](_0x27b686,_0x5b28('0xa'),()=>{this[_0x5b28('0x43')](_0x27b686,_0x5b28('0x3c'));}),this[_0x5b28('0xc')](_0x27b686);const _0x40a5d6=this['_getItemBefore'](_0x27b686);if(_0x40a5d6)this[_0x5b28('0x18')](_0x40a5d6,_0x27b686)||this[_0x5b28('0xc')](_0x27b686);else this[_0x5b28('0xc')](_0x27b686);return this['_updateLastItem'](),this[_0x5b28('0x3a')][_0x5b28('0x1e')][_0x5b28('0x21')](_0x27b686),_0x27b686;}['_alignForTopChange'](_0x2d0462){if(!_0x2d0462[_0x5b28('0x19')][_0x5b28('0x40')])return;const _0x199009=this[_0x5b28('0xb')](_0x2d0462);if(!_0x199009)return;const _0x1b18de=this['_sidebarItemViewToAnnotation'][_0x5b28('0x41')](_0x199009),_0x48c088=this[_0x5b28('0x7')];_0x48c088&&_0x48c088===_0x1b18de?this[_0x5b28('0x18')](_0x199009,_0x2d0462):this['_alignBeforeItem'](_0x2d0462,_0x199009);}[_0x5b28('0x34')](_0x3cbc42){if(!_0x3cbc42['content'][_0x5b28('0x40')])return;const _0x49a466=this[_0x5b28('0x5')](_0x3cbc42);if(!_0x49a466)return;const _0x5a6f14=this[_0x5b28('0x36')]['get'](_0x49a466),_0xd97295=this[_0x5b28('0x39')][_0x5b28('0xd')]['get'](_0x5b28('0x2')),_0x434f39=this['_activeAnnotation'];_0x434f39&&_0x434f39===_0x5a6f14&&_0xd97295?(this[_0x5b28('0xf')](_0x49a466,_0x3cbc42),this[_0x5b28('0x18')](_0x3cbc42,_0x49a466)):_0x434f39&&_0x434f39===_0x5a6f14?this[_0x5b28('0xf')](_0x49a466,_0x3cbc42):this[_0x5b28('0x18')](_0x3cbc42,_0x49a466);}[_0x5b28('0x43')](_0x28431f,_0x17aa52){0x0===this[_0x5b28('0x25')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x222a28,changedProp:_0x231268}of this[_0x5b28('0x25')])'top'===_0x231268?this['_alignForTopChange'](_0x222a28):this[_0x5b28('0x34')](_0x222a28);this[_0x5b28('0x25')]=[];},0xa),this[_0x5b28('0x25')][_0x5b28('0x42')]({'sidebarItemView':_0x28431f,'changedProp':_0x17aa52});}[_0x5b28('0x2d')](_0x306b35){return this[_0x5b28('0x3f')]['get'](_0x306b35);}[_0x5b28('0x2a')](){this[_0x5b28('0x1b')](),this['view']['destroy']();}[_0x5b28('0x12')](_0x5672dd){const _0x5add6b=this[_0x5b28('0x2d')](_0x5672dd);this[_0x5b28('0x1b')](_0x5add6b),this[_0x5b28('0x1b')](_0x5672dd['view']),_0x5add6b[_0x5b28('0x2a')](),this[_0x5b28('0x3f')][_0x5b28('0x31')](_0x5672dd),this[_0x5b28('0x36')][_0x5b28('0x31')](_0x5add6b);}[_0x5b28('0x28')](){const _0x48cf84=new _0x22a4b6(this['context'][_0x5b28('0x1c')]);return _0x48cf84[_0x5b28('0x47')](),this['on'](_0x5b28('0x27'),(_0x2b0094,_0x1e2852,_0x531a3b,_0x1fb76d)=>{_0x1fb76d&&_0x48cf84['unbind'](_0x5b28('0x44')),_0x531a3b?_0x48cf84[_0x5b28('0x1a')](_0x5b28('0x44'))['to'](_0x531a3b,_0x5b28('0x3c')):_0x48cf84[_0x5b28('0x44')]=null;}),_0x48cf84;}[_0x5b28('0x4')](){var _0x3af297;this[_0x5b28('0x2b')]=(null===(_0x3af297=this[_0x5b28('0xe')])||void 0x0===_0x3af297?void 0x0:_0x3af297['last'])?this[_0x5b28('0x2d')](this[_0x5b28('0xe')]['last']):null;}[_0x5b28('0xb')](_0x3669d5){var _0x2ab72e;const _0x4a2c9b=this[_0x5b28('0x36')]['get'](_0x3669d5),_0x4ca84d=_0x4a2c9b&&(null===(_0x2ab72e=this['_annotations'])||void 0x0===_0x2ab72e?void 0x0:_0x2ab72e[_0x5b28('0x41')](this['_annotations'][_0x5b28('0x33')](_0x4a2c9b)-0x1));return _0x4ca84d&&this[_0x5b28('0x2d')](_0x4ca84d)||null;}['_getItemAfter'](_0x3c737f){var _0x1fc65c;const _0x49ef31=this['_sidebarItemViewToAnnotation'][_0x5b28('0x41')](_0x3c737f),_0xbbd9f3=_0x49ef31&&(null===(_0x1fc65c=this[_0x5b28('0xe')])||void 0x0===_0x1fc65c?void 0x0:_0x1fc65c[_0x5b28('0x41')](this[_0x5b28('0xe')][_0x5b28('0x33')](_0x49ef31)+0x1));return _0xbbd9f3&&this[_0x5b28('0x2d')](_0xbbd9f3)||null;}[_0x5b28('0xf')](_0x537ef4,_0xf69153){_0x537ef4[_0x5b28('0x20')]();const _0xe2af3=M(_0xf69153[_0x5b28('0x3c')]+this[_0x5b28('0x37')],_0x537ef4[_0x5b28('0x46')]);return!!_0xe2af3&&(this[_0x5b28('0x23')](_0xf69153,_0xf69153[_0x5b28('0x46')]-_0xe2af3),!0x0);}[_0x5b28('0x18')](_0x109236,_0x1e0310){_0x109236['updateHeight']();const _0x2ef5ab=M(_0x109236[_0x5b28('0x3c')]+this[_0x5b28('0x37')],_0x1e0310[_0x5b28('0x46')]);return!!_0x2ef5ab&&(this[_0x5b28('0x23')](_0x1e0310,_0x1e0310[_0x5b28('0x46')]+_0x2ef5ab,!0x1),!0x0);}[_0x5b28('0xc')](_0x2c4e2e){const _0x168222=this[_0x5b28('0x36')]['get'](_0x2c4e2e);if(!_0x168222||!_0x168222['target']||!_0x168222['targetRect'])return;const _0xe77cc6=this['_getTargetTop'](_0x168222,_0x168222[_0x5b28('0x38')]);this[_0x5b28('0x23')](_0x2c4e2e,_0xe77cc6);}[_0x5b28('0x3')](_0x139d68,_0x594999){if(null===_0x594999)return 0x0;if(_0x139d68[_0x5b28('0x2e')]instanceof _0x671cb8)return _0x594999['top'];{const _0x3fe56f=new _0x671cb8(this['view']['element'])[_0x5b28('0x46')];return _0x594999[_0x5b28('0x46')]-_0x3fe56f;}}[_0x5b28('0x23')](_0x413340,_0x3a54ab,_0x58a8db=this[_0x5b28('0x39')][_0x5b28('0xd')]['get'](_0x5b28('0x2'))){_0x58a8db&&(_0x3a54ab=Math[_0x5b28('0x6')](_0x3a54ab,this['_getMaxAvailableTop'](_0x413340))),_0x413340['top']=_0x3a54ab;}['_getMaxAvailableTop'](_0x487610){let _0x49711d=this[_0x5b28('0xb')](_0x487610),_0x468aea=0x0;for(;_0x49711d;)_0x49711d[_0x5b28('0x20')](),_0x468aea+=this[_0x5b28('0x37')]+_0x49711d[_0x5b28('0x14')],_0x49711d=this[_0x5b28('0xb')](_0x49711d);return _0x468aea;}}function M(_0x14a34b,_0x5055e7){return Math['max'](_0x14a34b-_0x5055e7,0x0);}function y(_0x1e601a){return null!==_0x1e601a&&_0x5b28('0x35')==typeof _0x1e601a&&0x1===_0x1e601a[_0x5b28('0x8')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x992d=['number','counterView','extendTemplate','set','add','span','annotationType','icon','ck-annotation-counter','children','ck-annotation-counter__badge--','toString','_badge','ck-annotation-counter__badge--edit-mode','isDirty'];(function(_0x593032,_0x992d45){const _0x51a365=function(_0x248162){while(--_0x248162){_0x593032['push'](_0x593032['shift']());}};_0x51a365(++_0x992d45);}(_0x992d,0x1db));const _0x51a3=function(_0x593032,_0x992d45){_0x593032=_0x593032-0x0;let _0x51a365=_0x992d[_0x593032];return _0x51a365;};import{ButtonView as _0x10cb3b,View as _0x517d7b}from'ckeditor5/src/ui.js';import _0x2b3010 from'../../../theme/icons/add-comment.svg';export default class D extends _0x10cb3b{constructor(_0x32cf01){super(_0x32cf01);const _0x51cb8d=this['bindTemplate'];this[_0x51a3('0x8')](_0x51a3('0x4'),!0x1),this[_0x51a3('0x8')](_0x51a3('0x5'),0x0),this['bind'](_0x51a3('0x2'))['to'](this,_0x51a3('0x4'),this,_0x51a3('0x5'),(_0x44a9c0,_0x5879db)=>_0x44a9c0?'...':_0x5879db[_0x51a3('0x1')]()),this[_0x51a3('0x8')](_0x51a3('0xb'),''),this[_0x51a3('0xc')]=_0x2b3010,this[_0x51a3('0x7')]({'attributes':{'class':[_0x51a3('0xd')]}}),this['counterView']=new _0x517d7b(),this[_0x51a3('0x6')]['setTemplate']({'tag':_0x51a3('0xa'),'attributes':{'class':['ck-annotation-counter__badge',_0x51cb8d['to'](_0x51a3('0xb'),_0x69af1=>_0x51a3('0x0')+_0x69af1),_0x51cb8d['if']('isDirty',_0x51a3('0x3'))]},'children':[{'text':_0x51cb8d['to'](_0x51a3('0x2'))}]}),this[_0x51a3('0xe')][_0x51a3('0x9')](this[_0x51a3('0x6')]);}}
23
+ const _0x520d=['set','children','number','icon','_badge','extendTemplate','add','ck-annotation-counter','isDirty','ck-annotation-counter__badge','bind','setTemplate','ck-annotation-counter__badge--','toString','ck-annotation-counter__badge--edit-mode','counterView'];(function(_0x5a5208,_0x520d3e){const _0x4611c0=function(_0x13fc05){while(--_0x13fc05){_0x5a5208['push'](_0x5a5208['shift']());}};_0x4611c0(++_0x520d3e);}(_0x520d,0x1df));const _0x4611=function(_0x5a5208,_0x520d3e){_0x5a5208=_0x5a5208-0x0;let _0x4611c0=_0x520d[_0x5a5208];return _0x4611c0;};import{ButtonView as _0x1b5235,View as _0x1f3423}from'ckeditor5/src/ui.js';import _0x220311 from'../../../theme/icons/add-comment.svg';export default class D extends _0x1b5235{constructor(_0x5945b1){super(_0x5945b1);const _0x4eec76=this['bindTemplate'];this[_0x4611('0x1')](_0x4611('0x9'),!0x1),this[_0x4611('0x1')](_0x4611('0x3'),0x0),this[_0x4611('0xb')](_0x4611('0x5'))['to'](this,_0x4611('0x9'),this,_0x4611('0x3'),(_0x16a677,_0x3af8d1)=>_0x16a677?'...':_0x3af8d1[_0x4611('0xe')]()),this['set']('annotationType',''),this[_0x4611('0x4')]=_0x220311,this[_0x4611('0x6')]({'attributes':{'class':[_0x4611('0x8')]}}),this[_0x4611('0x0')]=new _0x1f3423(),this['counterView'][_0x4611('0xc')]({'tag':'span','attributes':{'class':[_0x4611('0xa'),_0x4eec76['to']('annotationType',_0x39ff7c=>_0x4611('0xd')+_0x39ff7c),_0x4eec76['if']('isDirty',_0x4611('0xf'))]},'children':[{'text':_0x4eec76['to'](_0x4611('0x5'))}]}),this[_0x4611('0x2')][_0x4611('0x7')](this[_0x4611('0x0')]);}}