@ckeditor/ckeditor5-comments 37.1.0 → 38.0.0-rc.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 (156) hide show
  1. package/build/comments.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/bs.js +1 -1
  7. package/build/translations/ca.js +1 -1
  8. package/build/translations/cs.js +1 -1
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de-ch.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/es-co.js +1 -1
  15. package/build/translations/es.js +1 -1
  16. package/build/translations/et.js +1 -1
  17. package/build/translations/fa.js +1 -1
  18. package/build/translations/fi.js +1 -1
  19. package/build/translations/fr.js +1 -1
  20. package/build/translations/gl.js +1 -1
  21. package/build/translations/he.js +1 -1
  22. package/build/translations/hi.js +1 -1
  23. package/build/translations/hr.js +1 -1
  24. package/build/translations/hu.js +1 -1
  25. package/build/translations/id.js +1 -1
  26. package/build/translations/it.js +1 -1
  27. package/build/translations/ja.js +1 -1
  28. package/build/translations/jv.js +1 -1
  29. package/build/translations/ko.js +1 -1
  30. package/build/translations/lt.js +1 -1
  31. package/build/translations/lv.js +1 -1
  32. package/build/translations/ms.js +1 -1
  33. package/build/translations/nl.js +1 -1
  34. package/build/translations/no.js +1 -1
  35. package/build/translations/pl.js +1 -1
  36. package/build/translations/pt-br.js +1 -1
  37. package/build/translations/pt.js +1 -1
  38. package/build/translations/ro.js +1 -1
  39. package/build/translations/ru.js +1 -1
  40. package/build/translations/sk.js +1 -1
  41. package/build/translations/sr-latn.js +1 -1
  42. package/build/translations/sr.js +1 -1
  43. package/build/translations/sv.js +1 -1
  44. package/build/translations/th.js +1 -1
  45. package/build/translations/tk.js +1 -1
  46. package/build/translations/tr.js +1 -1
  47. package/build/translations/tt.js +1 -1
  48. package/build/translations/ug.js +1 -1
  49. package/build/translations/uk.js +1 -1
  50. package/build/translations/ur.js +1 -1
  51. package/build/translations/vi.js +1 -1
  52. package/build/translations/zh-cn.js +1 -1
  53. package/build/translations/zh.js +1 -1
  54. package/ckeditor5-metadata.json +5 -0
  55. package/lang/contexts.json +2 -2
  56. package/lang/translations/af.po +5 -5
  57. package/lang/translations/ar.po +5 -5
  58. package/lang/translations/bg.po +5 -5
  59. package/lang/translations/bn.po +5 -5
  60. package/lang/translations/bs.po +4 -4
  61. package/lang/translations/ca.po +5 -5
  62. package/lang/translations/cs.po +5 -5
  63. package/lang/translations/da.po +5 -5
  64. package/lang/translations/de-ch.po +5 -5
  65. package/lang/translations/de.po +5 -5
  66. package/lang/translations/el.po +5 -5
  67. package/lang/translations/en-au.po +16 -16
  68. package/lang/translations/en.po +4 -4
  69. package/lang/translations/es-co.po +5 -5
  70. package/lang/translations/es.po +5 -5
  71. package/lang/translations/et.po +5 -5
  72. package/lang/translations/fa.po +5 -5
  73. package/lang/translations/fi.po +5 -5
  74. package/lang/translations/fr.po +5 -5
  75. package/lang/translations/gl.po +5 -5
  76. package/lang/translations/he.po +5 -5
  77. package/lang/translations/hi.po +5 -5
  78. package/lang/translations/hr.po +16 -16
  79. package/lang/translations/hu.po +5 -5
  80. package/lang/translations/id.po +5 -5
  81. package/lang/translations/it.po +5 -5
  82. package/lang/translations/ja.po +5 -5
  83. package/lang/translations/jv.po +5 -5
  84. package/lang/translations/ko.po +5 -5
  85. package/lang/translations/lt.po +5 -5
  86. package/lang/translations/lv.po +5 -5
  87. package/lang/translations/ms.po +5 -5
  88. package/lang/translations/nl.po +5 -5
  89. package/lang/translations/no.po +5 -5
  90. package/lang/translations/pl.po +5 -5
  91. package/lang/translations/pt-br.po +5 -5
  92. package/lang/translations/pt.po +5 -5
  93. package/lang/translations/ro.po +5 -5
  94. package/lang/translations/ru.po +5 -5
  95. package/lang/translations/sk.po +5 -5
  96. package/lang/translations/sr-latn.po +12 -12
  97. package/lang/translations/sr.po +12 -12
  98. package/lang/translations/sv.po +5 -5
  99. package/lang/translations/th.po +5 -5
  100. package/lang/translations/tk.po +5 -5
  101. package/lang/translations/tr.po +5 -5
  102. package/lang/translations/tt.po +4 -4
  103. package/lang/translations/ug.po +5 -5
  104. package/lang/translations/uk.po +5 -5
  105. package/lang/translations/ur.po +5 -5
  106. package/lang/translations/vi.po +5 -5
  107. package/lang/translations/zh-cn.po +5 -5
  108. package/lang/translations/zh.po +5 -5
  109. package/package.json +2 -2
  110. package/src/annotations/annotation.js +1 -1
  111. package/src/annotations/annotationcollection.js +1 -1
  112. package/src/annotations/annotations.js +1 -1
  113. package/src/annotations/annotationsuis.js +1 -1
  114. package/src/annotations/editorannotations.js +1 -1
  115. package/src/annotations/inlineannotations.js +1 -1
  116. package/src/annotations/narrowsidebar.js +1 -1
  117. package/src/annotations/sidebar.js +1 -1
  118. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  119. package/src/annotations/view/annotationview.js +1 -1
  120. package/src/annotations/view/sidebaritemview.js +1 -1
  121. package/src/annotations/view/sidebarview.js +1 -1
  122. package/src/annotations/widesidebar.js +1 -1
  123. package/src/augmentation.d.ts +2 -8
  124. package/src/comments/addcommentthreadcommand.js +1 -1
  125. package/src/comments/commentsarchive.js +1 -1
  126. package/src/comments/commentsarchiveui.js +1 -1
  127. package/src/comments/commentsediting.js +1 -1
  128. package/src/comments/commentsrepository.d.ts +16 -12
  129. package/src/comments/commentsrepository.js +1 -1
  130. package/src/comments/commentsui.js +1 -1
  131. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  132. package/src/comments/integrations/importword.js +1 -1
  133. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  134. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  135. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  136. package/src/comments/ui/commentthreadcontroller.js +1 -1
  137. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  138. package/src/comments/ui/view/basecommentview.js +1 -1
  139. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  140. package/src/comments/ui/view/commentcontentview.js +1 -1
  141. package/src/comments/ui/view/commentinputview.d.ts +6 -0
  142. package/src/comments/ui/view/commentinputview.js +1 -1
  143. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  144. package/src/comments/ui/view/commentslistview.js +1 -1
  145. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  146. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  147. package/src/comments/ui/view/commentthreadview.js +1 -1
  148. package/src/comments/ui/view/commentview.d.ts +2 -2
  149. package/src/comments/ui/view/commentview.js +1 -1
  150. package/src/comments.js +1 -1
  151. package/src/commentsonly.js +1 -1
  152. package/src/utils/common-translations.js +1 -1
  153. package/src/utils/createmutationobserver.js +1 -1
  154. package/theme/comment.css +12 -3
  155. package/theme/commentinput.css +8 -6
  156. package/theme/commentsarchive.css +10 -2
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46f5=['targetRect','_assertCorrectTarget','function','type','focusableElements','_target','every','isVisible','innerView','item','isActive','view','destroy','object','add','refreshVisibility','stopListening','_type','focusTracker','render','getClientRects','mainView','set','offsetParent','filter','updateTargetRect','_getNormalizedTarget','isArray','length','target','element','remove','nodeType'];(function(_0x5cc51d,_0x46f5e3){const _0xccbd52=function(_0x258c45){while(--_0x258c45){_0x5cc51d['push'](_0x5cc51d['shift']());}};_0xccbd52(++_0x46f5e3);}(_0x46f5,0x1ea));const _0xccbd=function(_0x5cc51d,_0x46f5e3){_0x5cc51d=_0x5cc51d-0x0;let _0xccbd52=_0x46f5[_0x5cc51d];return _0xccbd52;};import{CKEditorError as _0x4ff2e4,Rect as _0x3902c8,Collection as _0x34748f,ObservableMixin as _0x4bdf5c}from'ckeditor5/src/utils';export default class d extends _0x4bdf5c(){constructor({view:_0x2c1cfc,target:_0x190ee9,type:_0x5b630b,isVisible:_0x457a60=!0x0}){super(),this[_0xccbd('0x10')]=_0x2c1cfc,this[_0xccbd('0x10')][_0xccbd('0x2')]||this[_0xccbd('0x10')][_0xccbd('0x18')](),this['_type']=_0x5b630b,this[_0xccbd('0xa')]=_0x190ee9,d[_0xccbd('0x6')](this[_0xccbd('0x1f')]()),this['focusableElements']=new _0x34748f([this[_0xccbd('0x10')]['element']],{'idProperty':'_id'}),this[_0xccbd('0x9')]['on'](_0xccbd('0x13'),(_0x37d1ac,_0x427be2)=>{this[_0xccbd('0x10')][_0xccbd('0x17')]['add'](_0x427be2);}),this[_0xccbd('0x9')]['on'](_0xccbd('0x3'),(_0x40a9e2,_0x430384)=>{this[_0xccbd('0x10')][_0xccbd('0x17')][_0xccbd('0x3')](_0x430384);}),this[_0xccbd('0x1b')](_0xccbd('0xc'),_0x457a60);}get[_0xccbd('0x8')](){return _0xccbd('0x7')==typeof this[_0xccbd('0x16')]?this[_0xccbd('0x16')]():this[_0xccbd('0x16')];}get[_0xccbd('0xd')](){return this['view'][_0xccbd('0x1a')];}get['target'](){const _0xf14050=this[_0xccbd('0x1f')]();return d['_assertCorrectTarget'](_0xf14050),_0xf14050;}get[_0xccbd('0x5')](){const _0x45b8f8=this[_0xccbd('0x1')];if(null===_0x45b8f8)return null;if(_0x45b8f8 instanceof _0x3902c8)return _0x45b8f8;const _0x450488=_0x45b8f8[_0xccbd('0x1d')](_0x131975=>function(_0x284190){const _0x33081b=_0x284190[_0xccbd('0x1c')];if(_0x33081b)return!0x0;const _0x44cc2e=_0x284190['getClientRects']()[_0xccbd('0xe')](0x0);return!!_0x44cc2e;}(_0x131975));return 0x0===_0x450488[_0xccbd('0x0')]?null:new _0x3902c8(_0x450488[0x0][_0xccbd('0x19')]()[_0xccbd('0xe')](0x0));}get[_0xccbd('0xf')](){return this[_0xccbd('0x10')][_0xccbd('0xf')];}set[_0xccbd('0xf')](_0x6c893b){this[_0xccbd('0x10')][_0xccbd('0xf')]=_0x6c893b,this[_0xccbd('0x10')][_0xccbd('0x1a')][_0xccbd('0xf')]=_0x6c893b;}[_0xccbd('0x1e')](){this[_0xccbd('0x10')][_0xccbd('0x5')]=this[_0xccbd('0x5')];}[_0xccbd('0x11')](){this[_0xccbd('0x9')]['stopListening'](),this[_0xccbd('0x9')]['clear'](),this[_0xccbd('0x15')]();}[_0xccbd('0x14')](){this[_0xccbd('0xc')]=!!this[_0xccbd('0x5')];}static[_0xccbd('0x6')](_0x7ccee0){if(!(null===_0x7ccee0||_0x7ccee0 instanceof _0x3902c8||Array[_0xccbd('0x20')](_0x7ccee0)&&_0x7ccee0[_0xccbd('0xb')](_0x295485=>y(_0x295485))))throw new _0x4ff2e4('annotation-invalid-target',null,{'target':_0x7ccee0});}[_0xccbd('0x1f')](){const _0x575e82=_0xccbd('0x7')==typeof this[_0xccbd('0xa')]?this[_0xccbd('0xa')]():this[_0xccbd('0xa')];return y(_0x575e82)?[_0x575e82]:_0x575e82;}}function y(_0x7b0bb2){return null!==_0x7b0bb2&&_0xccbd('0x12')==typeof _0x7b0bb2&&_0xccbd('0x4')in _0x7b0bb2&&0x1===_0x7b0bb2[_0xccbd('0x4')];}
23
+ const _0x15fa=['_target','mainView','length','clear','filter','_assertCorrectTarget','isVisible','focusableElements','refreshVisibility','view','add','isActive','_getNormalizedTarget','item','getClientRects','nodeType','render','object','targetRect','annotation-invalid-target','_type','stopListening','innerView','offsetParent','element','target','type'];(function(_0x46477f,_0x15fa9e){const _0x2c0268=function(_0x204c6e){while(--_0x204c6e){_0x46477f['push'](_0x46477f['shift']());}};_0x2c0268(++_0x15fa9e);}(_0x15fa,0x18b));const _0x2c02=function(_0x46477f,_0x15fa9e){_0x46477f=_0x46477f-0x0;let _0x2c0268=_0x15fa[_0x46477f];return _0x2c0268;};import{CKEditorError as _0x287b82,Rect as _0x63972d,Collection as _0x30c179,ObservableMixin as _0x3c7867}from'ckeditor5/src/utils';export default class d extends _0x3c7867(){constructor({view:_0x290943,target:_0x523fe2,type:_0x25d98b,isVisible:_0x59031f=!0x0}){super(),this[_0x2c02('0x13')]=_0x290943,this[_0x2c02('0x13')][_0x2c02('0x7')]||this[_0x2c02('0x13')][_0x2c02('0x1a')](),this['_type']=_0x25d98b,this[_0x2c02('0xa')]=_0x523fe2,d[_0x2c02('0xf')](this[_0x2c02('0x16')]()),this[_0x2c02('0x11')]=new _0x30c179([this[_0x2c02('0x13')][_0x2c02('0x7')]],{'idProperty':'_id'}),this[_0x2c02('0x11')]['on']('add',(_0x4aa827,_0x22a57d)=>{this['view']['focusTracker'][_0x2c02('0x14')](_0x22a57d);}),this[_0x2c02('0x11')]['on']('remove',(_0x583825,_0x1ff195)=>{this[_0x2c02('0x13')]['focusTracker']['remove'](_0x1ff195);}),this['set'](_0x2c02('0x10'),_0x59031f);}get[_0x2c02('0x9')](){return'function'==typeof this['_type']?this[_0x2c02('0x3')]():this[_0x2c02('0x3')];}get[_0x2c02('0x5')](){return this[_0x2c02('0x13')][_0x2c02('0xb')];}get['target'](){const _0x36d207=this['_getNormalizedTarget']();return d[_0x2c02('0xf')](_0x36d207),_0x36d207;}get[_0x2c02('0x1')](){const _0x110d30=this[_0x2c02('0x8')];if(null===_0x110d30)return null;if(_0x110d30 instanceof _0x63972d)return _0x110d30;const _0x49c8f6=_0x110d30[_0x2c02('0xe')](_0x4c39d4=>function(_0x17370e){const _0x474e6c=_0x17370e[_0x2c02('0x6')];if(_0x474e6c)return!0x0;const _0x6124ba=_0x17370e[_0x2c02('0x18')]()[_0x2c02('0x17')](0x0);return!!_0x6124ba;}(_0x4c39d4));return 0x0===_0x49c8f6[_0x2c02('0xc')]?null:new _0x63972d(_0x49c8f6[0x0]['getClientRects']()['item'](0x0));}get[_0x2c02('0x15')](){return this['view']['isActive'];}set[_0x2c02('0x15')](_0x4998c2){this['view'][_0x2c02('0x15')]=_0x4998c2,this[_0x2c02('0x13')][_0x2c02('0xb')][_0x2c02('0x15')]=_0x4998c2;}['updateTargetRect'](){this[_0x2c02('0x13')][_0x2c02('0x1')]=this[_0x2c02('0x1')];}['destroy'](){this['focusableElements'][_0x2c02('0x4')](),this[_0x2c02('0x11')][_0x2c02('0xd')](),this[_0x2c02('0x4')]();}[_0x2c02('0x12')](){this['isVisible']=!!this['targetRect'];}static[_0x2c02('0xf')](_0x3feac2){if(!(null===_0x3feac2||_0x3feac2 instanceof _0x63972d||Array['isArray'](_0x3feac2)&&_0x3feac2['every'](_0x22a763=>y(_0x22a763))))throw new _0x287b82(_0x2c02('0x2'),null,{'target':_0x3feac2});}[_0x2c02('0x16')](){const _0x37f7e0='function'==typeof this[_0x2c02('0xa')]?this['_target']():this[_0x2c02('0xa')];return y(_0x37f7e0)?[_0x37f7e0]:_0x37f7e0;}}function y(_0x228854){return null!==_0x228854&&_0x2c02('0x0')==typeof _0x228854&&'nodeType'in _0x228854&&0x1===_0x228854[_0x2c02('0x19')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48cc=['has','_focusTracker','targetRect','left','getByView','focusTracker','_getOrderInContent','destroy','stopListening','set','annotationcollection-not-existing-item','isFocused','sort','view','innerView','_viewToAnnotation','get','refreshPositioning','getIndex','getByInnerView','_innerViewToAnnotation','_sort','remove','updateTargetRect','fire','focus','length','focusableElements','annotationcollection-duplicated-item','listenTo','delete','add','change:isFocused','blur','clear','top'];(function(_0x144151,_0x48ccd9){const _0x2376ac=function(_0x1d243){while(--_0x1d243){_0x144151['push'](_0x144151['shift']());}};_0x2376ac(++_0x48ccd9);}(_0x48cc,0xb9));const _0x2376=function(_0x144151,_0x48ccd9){_0x144151=_0x144151-0x0;let _0x2376ac=_0x48cc[_0x144151];return _0x2376ac;};import{CKEditorError as _0x21730f,Collection as _0x3ba87c,FocusTracker as _0x4c0830}from'ckeditor5/src/utils';export default class x extends _0x3ba87c{constructor(_0x3062cf=[]){super(),this[_0x2376('0xf')]=new Map(),this[_0x2376('0xa')]=new Map(),this['_focusTracker']=new _0x4c0830(),this[_0x2376('0x20')]['on'](_0x2376('0x1b'),(_0x50901f,_0x194fac,_0x31fce8)=>{_0x31fce8||this[_0x2376('0x13')](_0x2376('0x1c'));});for(const _0x27becc of _0x3062cf)this['add'](_0x27becc);}get[_0x2376('0x6')](){return this['_focusTracker']['isFocused'];}['add'](_0x575b92){if(this[_0x2376('0x1f')](_0x575b92))throw new _0x21730f(_0x2376('0x17'),null);this['_innerViewToAnnotation'][_0x2376('0x4')](_0x575b92[_0x2376('0x9')],_0x575b92),this['_viewToAnnotation'][_0x2376('0x4')](_0x575b92[_0x2376('0x8')],_0x575b92);for(const _0x2e1263 of _0x575b92[_0x2376('0x16')])this[_0x2376('0x20')]['add'](_0x2e1263);this[_0x2376('0x18')](_0x575b92[_0x2376('0x16')],'add',(_0x3ba8b7,_0x3d1311)=>{this['_focusTracker'][_0x2376('0x1a')](_0x3d1311);}),this[_0x2376('0x18')](_0x575b92[_0x2376('0x16')],'remove',(_0x472c37,_0x1356e0)=>{this[_0x2376('0x20')][_0x2376('0x11')](_0x1356e0);}),this[_0x2376('0x18')](_0x575b92[_0x2376('0x8')][_0x2376('0x0')],_0x2376('0x1b'),(_0x40c8b6,_0x4a7a44,_0x59cf1a)=>{_0x59cf1a&&this[_0x2376('0x13')](_0x2376('0x14'),_0x575b92);}),_0x575b92[_0x2376('0x12')]();const _0x200375=this[_0x2376('0x1')](_0x575b92['view'][_0x2376('0x21')]);return super['add'](_0x575b92,_0x200375);}['remove'](_0x439836){if(!this['has'](_0x439836))throw new _0x21730f(_0x2376('0x5'),null);this[_0x2376('0x3')](_0x439836['view'][_0x2376('0x0')]),this[_0x2376('0x3')](_0x439836[_0x2376('0x16')]);for(const _0x5788af of _0x439836[_0x2376('0x16')])this['_focusTracker'][_0x2376('0x11')](_0x5788af);return this[_0x2376('0xa')]['delete'](_0x439836['view']),this['_innerViewToAnnotation'][_0x2376('0x19')](_0x439836[_0x2376('0x9')]),super[_0x2376('0x11')](_0x439836);}[_0x2376('0xe')](_0x465f49){return this[_0x2376('0xf')][_0x2376('0xb')](_0x465f49);}[_0x2376('0x23')](_0x106461){return this['_viewToAnnotation'][_0x2376('0xb')](_0x106461);}[_0x2376('0x2')](){super[_0x2376('0x1d')](),this[_0x2376('0x3')](),this[_0x2376('0xf')][_0x2376('0x1d')](),this[_0x2376('0xa')]['clear'](),this[_0x2376('0x20')]['destroy']();}[_0x2376('0xc')](){for(const _0x1ff460 of this)_0x1ff460[_0x2376('0x12')]();this[_0x2376('0x10')]();}[_0x2376('0x10')](){const _0x52f229=Array['from'](this)[_0x2376('0x7')]((_0x199db1,_0x21086f)=>v(_0x199db1[_0x2376('0x8')][_0x2376('0x21')],_0x21086f[_0x2376('0x8')][_0x2376('0x21')]));for(let _0xb7a95c=_0x52f229[_0x2376('0x15')]-0x1;_0xb7a95c>0x0;_0xb7a95c--){const _0x11b168=_0x52f229[_0xb7a95c];_0xb7a95c!==this[_0x2376('0xd')](_0x11b168)&&(this[_0x2376('0x11')](_0x11b168),this['add'](_0x11b168));}}[_0x2376('0x1')](_0x4f5e56){let _0x506bda=0x0;if(!_0x4f5e56)return this[_0x2376('0x15')];for(const _0x463af9 of this){const _0x242995=_0x463af9[_0x2376('0x8')]['targetRect'];if(_0x242995){if(v(_0x4f5e56,_0x242995)<0x0)return _0x506bda;_0x506bda++;}}return _0x506bda;}}export function bindAnnotationCollections({source:_0xe01a8b,target:_0x2a86e2,filter:_0x27d4cf}){for(const _0x28d8be of _0xe01a8b)_0x27d4cf(_0x28d8be)&&_0x2a86e2[_0x2376('0x1a')](_0x28d8be);_0x2a86e2['listenTo'](_0xe01a8b,'add',(_0x176308,_0x16798f)=>{_0x27d4cf(_0x16798f)&&_0x2a86e2[_0x2376('0x1a')](_0x16798f);}),_0x2a86e2[_0x2376('0x18')](_0xe01a8b,_0x2376('0x11'),(_0xcf3a4e,_0x3a0161)=>{_0x2a86e2[_0x2376('0x1f')](_0x3a0161)&&_0x2a86e2[_0x2376('0x11')](_0x3a0161);});}function v(_0x594d23,_0x523837){if(null===_0x594d23&&null===_0x523837)return 0x0;if(null===_0x594d23)return-0x1;if(null===_0x523837)return 0x1;const _0x32c446=_0x594d23[_0x2376('0x1e')]-_0x523837[_0x2376('0x1e')];return 0x0==_0x32c446?_0x594d23[_0x2376('0x22')]-_0x523837[_0x2376('0x22')]:_0x32c446;}
23
+ const _0x2a42=['getByInnerView','clear','_innerViewToAnnotation','fire','getByView','sort','isFocused','length','refreshPositioning','top','change:isFocused','targetRect','focusTracker','_focusTracker','stopListening','focus','delete','innerView','destroy','from','annotationcollection-not-existing-item','_sort','left','updateTargetRect','add','listenTo','annotationcollection-duplicated-item','get','_getOrderInContent','view','set','has','focusableElements','getIndex','remove','_viewToAnnotation'];(function(_0x565633,_0x2a42cc){const _0x5351bb=function(_0x11a638){while(--_0x11a638){_0x565633['push'](_0x565633['shift']());}};_0x5351bb(++_0x2a42cc);}(_0x2a42,0x1cf));const _0x5351=function(_0x565633,_0x2a42cc){_0x565633=_0x565633-0x0;let _0x5351bb=_0x2a42[_0x565633];return _0x5351bb;};import{CKEditorError as _0x1fe021,Collection as _0x1c8861,FocusTracker as _0x5c02cd}from'ckeditor5/src/utils';export default class x extends _0x1c8861{constructor(_0x39ff13=[]){super(),this[_0x5351('0x7')]=new Map(),this[_0x5351('0x4')]=new Map(),this[_0x5351('0x12')]=new _0x5c02cd(),this[_0x5351('0x12')]['on'](_0x5351('0xf'),(_0x25d84e,_0x258017,_0x3b2093)=>{_0x3b2093||this[_0x5351('0x8')]('blur');});for(const _0x286d63 of _0x39ff13)this[_0x5351('0x1d')](_0x286d63);}get['isFocused'](){return this[_0x5351('0x12')][_0x5351('0xb')];}[_0x5351('0x1d')](_0x5c705a){if(this[_0x5351('0x0')](_0x5c705a))throw new _0x1fe021(_0x5351('0x1f'),null);this[_0x5351('0x7')]['set'](_0x5c705a[_0x5351('0x16')],_0x5c705a),this[_0x5351('0x4')][_0x5351('0x23')](_0x5c705a['view'],_0x5c705a);for(const _0x344054 of _0x5c705a[_0x5351('0x1')])this[_0x5351('0x12')][_0x5351('0x1d')](_0x344054);this[_0x5351('0x1e')](_0x5c705a['focusableElements'],_0x5351('0x1d'),(_0x3a3c34,_0x12a47a)=>{this[_0x5351('0x12')][_0x5351('0x1d')](_0x12a47a);}),this[_0x5351('0x1e')](_0x5c705a[_0x5351('0x1')],_0x5351('0x3'),(_0x171abd,_0x576411)=>{this[_0x5351('0x12')][_0x5351('0x3')](_0x576411);}),this['listenTo'](_0x5c705a[_0x5351('0x22')][_0x5351('0x11')],'change:isFocused',(_0x259838,_0x56dc8c,_0x3f4ebc)=>{_0x3f4ebc&&this['fire'](_0x5351('0x14'),_0x5c705a);}),_0x5c705a[_0x5351('0x1c')]();const _0x19f910=this[_0x5351('0x21')](_0x5c705a[_0x5351('0x22')][_0x5351('0x10')]);return super[_0x5351('0x1d')](_0x5c705a,_0x19f910);}[_0x5351('0x3')](_0x1fa54b){if(!this[_0x5351('0x0')](_0x1fa54b))throw new _0x1fe021(_0x5351('0x19'),null);this[_0x5351('0x13')](_0x1fa54b[_0x5351('0x22')][_0x5351('0x11')]),this['stopListening'](_0x1fa54b[_0x5351('0x1')]);for(const _0xb4f7b1 of _0x1fa54b[_0x5351('0x1')])this[_0x5351('0x12')][_0x5351('0x3')](_0xb4f7b1);return this[_0x5351('0x4')][_0x5351('0x15')](_0x1fa54b[_0x5351('0x22')]),this[_0x5351('0x7')][_0x5351('0x15')](_0x1fa54b['innerView']),super[_0x5351('0x3')](_0x1fa54b);}[_0x5351('0x5')](_0x2c8bd8){return this[_0x5351('0x7')][_0x5351('0x20')](_0x2c8bd8);}[_0x5351('0x9')](_0x42188a){return this[_0x5351('0x4')][_0x5351('0x20')](_0x42188a);}[_0x5351('0x17')](){super[_0x5351('0x6')](),this[_0x5351('0x13')](),this[_0x5351('0x7')][_0x5351('0x6')](),this['_viewToAnnotation']['clear'](),this[_0x5351('0x12')]['destroy']();}[_0x5351('0xd')](){for(const _0x106f91 of this)_0x106f91[_0x5351('0x1c')]();this[_0x5351('0x1a')]();}['_sort'](){const _0x2dcf55=Array[_0x5351('0x18')](this)[_0x5351('0xa')]((_0x1eb9c0,_0x4fe523)=>v(_0x1eb9c0[_0x5351('0x22')][_0x5351('0x10')],_0x4fe523[_0x5351('0x22')][_0x5351('0x10')]));for(let _0x596f1d=_0x2dcf55[_0x5351('0xc')]-0x1;_0x596f1d>0x0;_0x596f1d--){const _0x49d3a3=_0x2dcf55[_0x596f1d];_0x596f1d!==this[_0x5351('0x2')](_0x49d3a3)&&(this[_0x5351('0x3')](_0x49d3a3),this['add'](_0x49d3a3));}}['_getOrderInContent'](_0xc41e14){let _0x168bdf=0x0;if(!_0xc41e14)return this['length'];for(const _0x4c3b27 of this){const _0x202f71=_0x4c3b27[_0x5351('0x22')][_0x5351('0x10')];if(_0x202f71){if(v(_0xc41e14,_0x202f71)<0x0)return _0x168bdf;_0x168bdf++;}}return _0x168bdf;}}export function bindAnnotationCollections({source:_0x34795c,target:_0x13b0f4,filter:_0x47e915}){for(const _0x203674 of _0x34795c)_0x47e915(_0x203674)&&_0x13b0f4[_0x5351('0x1d')](_0x203674);_0x13b0f4['listenTo'](_0x34795c,_0x5351('0x1d'),(_0x375f13,_0x33d10f)=>{_0x47e915(_0x33d10f)&&_0x13b0f4[_0x5351('0x1d')](_0x33d10f);}),_0x13b0f4['listenTo'](_0x34795c,'remove',(_0x28d5b4,_0x2e1c33)=>{_0x13b0f4['has'](_0x2e1c33)&&_0x13b0f4[_0x5351('0x3')](_0x2e1c33);});}function v(_0x987633,_0x30f350){if(null===_0x987633&&null===_0x30f350)return 0x0;if(null===_0x987633)return-0x1;if(null===_0x30f350)return 0x1;const _0x19fdbf=_0x987633[_0x5351('0xe')]-_0x30f350[_0x5351('0xe')];return 0x0==_0x19fdbf?_0x987633[_0x5351('0x1b')]-_0x30f350[_0x5351('0x1b')]:_0x19fdbf;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3142=['stopListening','isVisible','delete','change:isVisible','_addActiveAnnotation','createAnnotationView','deactivateAll','fire','refreshPositioning','Annotations','pluginName','activeAnnotations','view','focusTracker','remove','add','collection','getByInnerView','_activateAnnotation','element','createAnnotation','_removeActiveAnnotation','refreshVisibility','destroy','has','set','_visibleAnnotations','listenTo'];(function(_0x1a0a67,_0x3142d3){const _0x5c2212=function(_0x2f5f3c){while(--_0x2f5f3c){_0x1a0a67['push'](_0x1a0a67['shift']());}};_0x5c2212(++_0x3142d3);}(_0x3142,0xd1));const _0x5c22=function(_0x1a0a67,_0x3142d3){_0x1a0a67=_0x1a0a67-0x0;let _0x5c2212=_0x3142[_0x1a0a67];return _0x5c2212;};import{ContextPlugin as _0x4c3737}from'ckeditor5/src/core';import _0xa23163 from'./annotation';import _0x2df044 from'./annotationcollection';import _0x4650ef from'./view/annotationview';export default class b extends _0x4c3737{static get[_0x5c22('0x19')](){return _0x5c22('0x18');}constructor(_0x54190d){super(_0x54190d),this[_0x5c22('0x3')]=new _0x2df044(),this[_0x5c22('0xd')]=new _0x2df044(),this[_0x5c22('0xc')](_0x5c22('0x1a'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x5c22('0x2')](_0x4ba66d){this[_0x5c22('0x3')][_0x5c22('0x2')](_0x4ba66d);}[_0x5c22('0x1')](_0x3b546d){this[_0x5c22('0x3')]['remove'](_0x3b546d),_0x3b546d['destroy']();}['refreshVisibility'](){for(const _0x3b85b5 of this[_0x5c22('0x3')])_0x3b85b5[_0x5c22('0x9')]();}[_0x5c22('0x17')](){this[_0x5c22('0xd')]['refreshPositioning']();}[_0x5c22('0x4')](_0x4c3026){return this['collection']['getByInnerView'](_0x4c3026);}[_0x5c22('0x15')](){this[_0x5c22('0x16')]('_deactivateAllAnnotations');}['destroy'](){for(const _0x4f3bff of this[_0x5c22('0x3')])_0x4f3bff[_0x5c22('0xa')]();this['_visibleAnnotations'][_0x5c22('0xa')](),this[_0x5c22('0x3')]['destroy'](),super['destroy']();}['activate'](_0x325c70){this['fire'](_0x5c22('0x5'),_0x325c70);}[_0x5c22('0x7')](_0xdd0975){return new _0xa23163(_0xdd0975);}[_0x5c22('0x14')](_0x518383,_0x3057e1){return new _0x4650ef(_0x518383,_0x3057e1);}[_0x5c22('0x13')](_0x41b105){const _0xc09824=new Set(this[_0x5c22('0x1a')]);_0xc09824['add'](_0x41b105),this[_0x5c22('0x1a')]=_0xc09824;}[_0x5c22('0x8')](_0x475a99){const _0x10ba7a=new Set(this['activeAnnotations']);_0x10ba7a[_0x5c22('0x11')](_0x475a99),this[_0x5c22('0x1a')]=_0x10ba7a;}['_bindAnnotationsToVisibleAnnotations'](){const _0x277e54=this[_0x5c22('0x3')],_0x23a6e2=this[_0x5c22('0xd')];function _0x4572f7(_0x4df1c1){const _0x4ff195=_0x4df1c1['source'];_0x4ff195[_0x5c22('0x10')]&&!_0x23a6e2[_0x5c22('0xb')](_0x4ff195)?_0x23a6e2[_0x5c22('0x2')](_0x4ff195):!_0x4ff195[_0x5c22('0x10')]&&_0x23a6e2[_0x5c22('0xb')](_0x4ff195)&&_0x23a6e2[_0x5c22('0x1')](_0x4ff195),_0x4ff195[_0x5c22('0x1b')][_0x5c22('0x0')][_0x5c22('0x1')](_0x4ff195[_0x5c22('0x1b')][_0x5c22('0x6')]),_0x4ff195[_0x5c22('0x1b')][_0x5c22('0x0')][_0x5c22('0x2')](_0x4ff195[_0x5c22('0x1b')][_0x5c22('0x6')]);}this[_0x5c22('0xe')](_0x277e54,_0x5c22('0x2'),(_0x688fb3,_0x372c64)=>{_0x372c64['isVisible']&&_0x23a6e2[_0x5c22('0x2')](_0x372c64),this[_0x5c22('0xe')](_0x372c64,_0x5c22('0x12'),_0x4572f7);}),this[_0x5c22('0xe')](_0x277e54,_0x5c22('0x1'),(_0x1923cc,_0x7e83d4)=>{_0x23a6e2[_0x5c22('0xb')](_0x7e83d4)&&_0x23a6e2[_0x5c22('0x1')](_0x7e83d4),this[_0x5c22('0xf')](_0x7e83d4,'change:isVisible',_0x4572f7);});}}
23
+ const _0x5bdb=['listenTo','isVisible','activeAnnotations','stopListening','_visibleAnnotations','activate','getByInnerView','remove','_addActiveAnnotation','deactivateAll','_removeActiveAnnotation','has','delete','refreshVisibility','element','focusTracker','set','createAnnotationView','_activateAnnotation','change:isVisible','destroy','fire','_bindAnnotationsToVisibleAnnotations','createAnnotation','add','refreshPositioning','collection','source','view','pluginName'];(function(_0x1f84bf,_0x5bdb69){const _0x59b749=function(_0x31b686){while(--_0x31b686){_0x1f84bf['push'](_0x1f84bf['shift']());}};_0x59b749(++_0x5bdb69);}(_0x5bdb,0xe8));const _0x59b7=function(_0x1f84bf,_0x5bdb69){_0x1f84bf=_0x1f84bf-0x0;let _0x59b749=_0x5bdb[_0x1f84bf];return _0x59b749;};import{ContextPlugin as _0x50d61f}from'ckeditor5/src/core';import _0x48f2b6 from'./annotation';import _0x2c8c17 from'./annotationcollection';import _0x38efdc from'./view/annotationview';export default class b extends _0x50d61f{static get[_0x59b7('0x7')](){return'Annotations';}constructor(_0x1f1b43){super(_0x1f1b43),this[_0x59b7('0x4')]=new _0x2c8c17(),this[_0x59b7('0xc')]=new _0x2c8c17(),this[_0x59b7('0x18')](_0x59b7('0xa'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x59b7('0x2')](_0x2c89fc){this[_0x59b7('0x4')][_0x59b7('0x2')](_0x2c89fc);}[_0x59b7('0xf')](_0x4a301d){this[_0x59b7('0x4')][_0x59b7('0xf')](_0x4a301d),_0x4a301d['destroy']();}[_0x59b7('0x15')](){for(const _0x543df0 of this['collection'])_0x543df0[_0x59b7('0x15')]();}['refreshPositioning'](){this[_0x59b7('0xc')][_0x59b7('0x3')]();}[_0x59b7('0xe')](_0x30e454){return this['collection'][_0x59b7('0xe')](_0x30e454);}[_0x59b7('0x11')](){this[_0x59b7('0x1d')]('_deactivateAllAnnotations');}[_0x59b7('0x1c')](){for(const _0xafe822 of this[_0x59b7('0x4')])_0xafe822[_0x59b7('0x1c')]();this['_visibleAnnotations']['destroy'](),this[_0x59b7('0x4')][_0x59b7('0x1c')](),super['destroy']();}[_0x59b7('0xd')](_0x3ca581){this[_0x59b7('0x1d')](_0x59b7('0x1a'),_0x3ca581);}[_0x59b7('0x1')](_0x552f3e){return new _0x48f2b6(_0x552f3e);}[_0x59b7('0x19')](_0x29003b,_0x52cad6){return new _0x38efdc(_0x29003b,_0x52cad6);}[_0x59b7('0x10')](_0x5a5dc5){const _0xbef7f1=new Set(this[_0x59b7('0xa')]);_0xbef7f1[_0x59b7('0x2')](_0x5a5dc5),this[_0x59b7('0xa')]=_0xbef7f1;}[_0x59b7('0x12')](_0x4d637b){const _0x5ecf08=new Set(this[_0x59b7('0xa')]);_0x5ecf08[_0x59b7('0x14')](_0x4d637b),this[_0x59b7('0xa')]=_0x5ecf08;}[_0x59b7('0x0')](){const _0x450f9b=this[_0x59b7('0x4')],_0x5b8052=this['_visibleAnnotations'];function _0x97d7fd(_0x59426e){const _0x55bd92=_0x59426e[_0x59b7('0x5')];_0x55bd92[_0x59b7('0x9')]&&!_0x5b8052['has'](_0x55bd92)?_0x5b8052[_0x59b7('0x2')](_0x55bd92):!_0x55bd92['isVisible']&&_0x5b8052[_0x59b7('0x13')](_0x55bd92)&&_0x5b8052[_0x59b7('0xf')](_0x55bd92),_0x55bd92[_0x59b7('0x6')][_0x59b7('0x17')][_0x59b7('0xf')](_0x55bd92[_0x59b7('0x6')][_0x59b7('0x16')]),_0x55bd92[_0x59b7('0x6')][_0x59b7('0x17')][_0x59b7('0x2')](_0x55bd92[_0x59b7('0x6')][_0x59b7('0x16')]);}this[_0x59b7('0x8')](_0x450f9b,_0x59b7('0x2'),(_0x3e7cf0,_0x23fb40)=>{_0x23fb40[_0x59b7('0x9')]&&_0x5b8052['add'](_0x23fb40),this[_0x59b7('0x8')](_0x23fb40,_0x59b7('0x1b'),_0x97d7fd);}),this[_0x59b7('0x8')](_0x450f9b,_0x59b7('0xf'),(_0x91d4ec,_0x232453)=>{_0x5b8052[_0x59b7('0x13')](_0x232453)&&_0x5b8052[_0x59b7('0xf')](_0x232453),this[_0x59b7('0xb')](_0x232453,'change:isVisible',_0x97d7fd);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16a3=['get','requires','annotationsuis-annotation-mismatch','size','_activateAnnotation','deactivateAll','_uisData','delete','_deactivateAllAnnotations','setActiveAnnotation','refilterAnnotations','isActive','stopListening','attach','_removeActiveAnnotation','activate','_visibleAnnotations','init','switchTo','annotationsuis-register-already-registered','plugins','remove','_uis','destroy','_addActiveAnnotation','collection','type','register','from','filter','_setSelectedAnnotations','has','context','annotationsuis-missing-ui','function','activeUIs','annotationsuis-register-invalid-interface','detach','pluginName','push','change:activeAnnotation','listenTo','_assertAnnotationDoesNotBelongToMultipleUIs','add','AnnotationsUIs','length','deactivate','set'];(function(_0x4db193,_0x16a30b){const _0x25539e=function(_0x15633b){while(--_0x15633b){_0x4db193['push'](_0x4db193['shift']());}};_0x25539e(++_0x16a30b);}(_0x16a3,0x1aa));const _0x2553=function(_0x4db193,_0x16a30b){_0x4db193=_0x4db193-0x0;let _0x25539e=_0x16a3[_0x4db193];return _0x25539e;};import{ContextPlugin as _0x304656}from'ckeditor5/src/core';import{CKEditorError as _0x50df83}from'ckeditor5/src/utils';import _0x349ce1,{bindAnnotationCollections as _0x257d09}from'./annotationcollection';import _0x5b210a from'./annotations';export default class M extends _0x304656{static get[_0x2553('0x7')](){return[_0x5b210a];}static get[_0x2553('0x2c')](){return _0x2553('0x2');}constructor(_0x59f9bf){super(_0x59f9bf),this[_0x2553('0x29')]=new Set(),this[_0x2553('0x1c')]=new Map(),this['_uisData']=new Map();}[_0x2553('0x17')](){const _0x3b2fba=this[_0x2553('0x26')][_0x2553('0x1a')][_0x2553('0x6')](_0x5b210a);this[_0x2553('0x2f')](_0x3b2fba,_0x2553('0xa'),(_0x39d570,_0xbec2dc)=>{for(const _0x272bcc of this['activeUIs']){const _0x3eb3a2=this[_0x2553('0x1c')][_0x2553('0x6')](_0x272bcc);(0x0,this[_0x2553('0xc')][_0x2553('0x6')](_0x272bcc)[_0x2553('0x23')])(_0xbec2dc)&&_0x3eb3a2[_0x2553('0xf')](_0xbec2dc);}}),this[_0x2553('0x2f')](_0x3b2fba,_0x2553('0xe'),()=>{for(const _0x37e9b2 of this[_0x2553('0x29')]){this[_0x2553('0x1c')]['get'](_0x37e9b2)[_0x2553('0xf')](null);}}),this[_0x2553('0x2f')](_0x3b2fba[_0x2553('0x16')],_0x2553('0x1'),(_0x3e9e1f,_0x4e9afe)=>{this[_0x2553('0x0')](_0x4e9afe);});}['hasActive'](){return this['activeUIs'][_0x2553('0x9')]>0x0;}[_0x2553('0x11')](_0x4fb3b1){return this[_0x2553('0x29')]['has'](_0x4fb3b1);}['activate'](_0x37e1ad,_0x3fb4af=()=>!0x0){const _0x13e817=this['context'][_0x2553('0x1a')][_0x2553('0x6')](_0x5b210a);if(!this[_0x2553('0x1c')]['has'](_0x37e1ad))throw new _0x50df83(_0x2553('0x27'),this,{'uiName':_0x37e1ad});this[_0x2553('0x11')](_0x37e1ad)&&this['deactivate'](_0x37e1ad),this[_0x2553('0x29')][_0x2553('0x1')](_0x37e1ad);const _0x5c5f40=new _0x349ce1(),_0x27ff58=_0x13e817[_0x2553('0x16')];_0x257d09({'source':_0x27ff58,'target':_0x5c5f40,'filter':_0x3fb4af}),this[_0x2553('0xc')][_0x2553('0x5')](_0x37e1ad,{'collection':_0x5c5f40,'filter':_0x3fb4af});const _0x4c9e0e=this['_uis'][_0x2553('0x6')](_0x37e1ad);_0x4c9e0e[_0x2553('0x13')](_0x5c5f40),this[_0x2553('0x2f')](_0x4c9e0e,_0x2553('0x2e'),(_0x51ba4e,_0x1e101e,_0x2530bc,_0x51d278)=>{_0x51d278&&_0x13e817[_0x2553('0x14')](_0x51d278),_0x2530bc&&_0x13e817[_0x2553('0x1e')](_0x2530bc);});}[_0x2553('0x4')](_0x195dd5){if(this[_0x2553('0x29')][_0x2553('0xd')](_0x195dd5),!this[_0x2553('0x1c')][_0x2553('0x25')](_0x195dd5))throw new _0x50df83(_0x2553('0x27'),this,{'uiName':_0x195dd5});const _0x5d8d13=this['_uis'][_0x2553('0x6')](_0x195dd5);_0x5d8d13[_0x2553('0x2b')](),this[_0x2553('0x12')](_0x5d8d13),this[_0x2553('0xc')][_0x2553('0x6')](_0x195dd5)[_0x2553('0x1f')][_0x2553('0x1d')](),this[_0x2553('0xc')]['delete'](_0x195dd5);}[_0x2553('0x18')](_0x420666){if(!this['_uis'][_0x2553('0x25')](_0x420666))throw new _0x50df83(_0x2553('0x27'),this,{'uiName':_0x420666});const _0x156039=this[_0x2553('0x26')][_0x2553('0x1a')][_0x2553('0x6')](_0x5b210a),_0x38e4ab=Array[_0x2553('0x22')](_0x156039['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this[_0x2553('0x15')](_0x420666);const _0x3b26a8=this[_0x2553('0x1c')]['get'](_0x420666);_0x3b26a8[_0x2553('0xf')](_0x38e4ab),_0x3b26a8[_0x2553('0x24')]&&_0x38e4ab&&_0x3b26a8[_0x2553('0x24')]([_0x38e4ab]);}[_0x2553('0xb')](){for(const _0xf0f226 of this[_0x2553('0x29')])this[_0x2553('0x4')](_0xf0f226);}[_0x2553('0x21')](_0x1dcfcc,_0x2987b6){if(this[_0x2553('0x1c')]['has'](_0x1dcfcc))throw new _0x50df83(_0x2553('0x19'));if('function'!=typeof _0x2987b6['attach']||_0x2553('0x28')!=typeof _0x2987b6[_0x2553('0x2b')]||_0x2553('0x28')!=typeof _0x2987b6[_0x2553('0xf')])throw new _0x50df83(_0x2553('0x2a'),null);this['_uis'][_0x2553('0x5')](_0x1dcfcc,_0x2987b6);}[_0x2553('0x10')](){const _0x2c80f3=this['context'][_0x2553('0x1a')][_0x2553('0x6')](_0x5b210a)[_0x2553('0x1f')],_0x19fff4=new Map(),_0x33b4fd=Array[_0x2553('0x22')](this[_0x2553('0x29')]);for(const _0x1b1b47 of this['activeUIs']){const _0x30f5c7=this[_0x2553('0xc')][_0x2553('0x6')](_0x1b1b47)['collection'];for(const _0x2b738a of _0x30f5c7)_0x19fff4[_0x2553('0x5')](_0x2b738a,_0x1b1b47);}for(const _0x3da3ff of _0x2c80f3){const _0x437fad=_0x19fff4['get'](_0x3da3ff);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3da3ff);const _0x4000b4=_0x33b4fd['find'](_0x7a4388=>this[_0x2553('0xc')][_0x2553('0x6')](_0x7a4388)[_0x2553('0x23')](_0x3da3ff));_0x437fad!==_0x4000b4&&(_0x437fad&&this[_0x2553('0xc')][_0x2553('0x6')](_0x437fad)[_0x2553('0x1f')][_0x2553('0x1b')](_0x3da3ff),_0x4000b4&&this[_0x2553('0xc')]['get'](_0x4000b4)[_0x2553('0x1f')]['add'](_0x3da3ff));}}[_0x2553('0x1d')](){this['deactivateAll'](),super[_0x2553('0x1d')]();}[_0x2553('0x0')](_0x5e8015){const _0x5b1720=[];for(const _0x8f55c4 of this[_0x2553('0x29')]){(0x0,this[_0x2553('0xc')][_0x2553('0x6')](_0x8f55c4)[_0x2553('0x23')])(_0x5e8015)&&_0x5b1720[_0x2553('0x2d')](_0x8f55c4);}if(_0x5b1720[_0x2553('0x3')]>0x1)throw new _0x50df83(_0x2553('0x8'),null,{'matchedUIs':_0x5b1720,'annotationType':_0x5e8015[_0x2553('0x20')]});}}
23
+ const _0x2085=['type','length','attach','_setSelectedAnnotations','find','annotationsuis-register-already-registered','deactivate','_visibleAnnotations','annotationsuis-annotation-mismatch','switchTo','push','_uisData','detach','annotationsuis-register-invalid-interface','from','filter','_removeActiveAnnotation','_assertAnnotationDoesNotBelongToMultipleUIs','destroy','context','delete','register','isActive','activeAnnotations','pluginName','AnnotationsUIs','listenTo','plugins','get','_activateAnnotation','function','activate','_addActiveAnnotation','set','collection','stopListening','has','_deactivateAllAnnotations','deactivateAll','setActiveAnnotation','requires','size','activeUIs','init','add','_uis','annotationsuis-missing-ui'];(function(_0x11747d,_0x2085cb){const _0x40e9db=function(_0x2adf7c){while(--_0x2adf7c){_0x11747d['push'](_0x11747d['shift']());}};_0x40e9db(++_0x2085cb);}(_0x2085,0xad));const _0x40e9=function(_0x11747d,_0x2085cb){_0x11747d=_0x11747d-0x0;let _0x40e9db=_0x2085[_0x11747d];return _0x40e9db;};import{ContextPlugin as _0x234370}from'ckeditor5/src/core';import{CKEditorError as _0x5b58f6}from'ckeditor5/src/utils';import _0x36165e,{bindAnnotationCollections as _0x24d852}from'./annotationcollection';import _0x309bea from'./annotations';export default class M extends _0x234370{static get[_0x40e9('0x8')](){return[_0x309bea];}static get[_0x40e9('0x27')](){return _0x40e9('0x28');}constructor(_0x1571f9){super(_0x1571f9),this[_0x40e9('0xa')]=new Set(),this['_uis']=new Map(),this[_0x40e9('0x1a')]=new Map();}[_0x40e9('0xb')](){const _0x1d3c1d=this['context'][_0x40e9('0x2a')][_0x40e9('0x2b')](_0x309bea);this['listenTo'](_0x1d3c1d,_0x40e9('0x2c'),(_0x1f7d0d,_0x229479)=>{for(const _0x55adfb of this['activeUIs']){const _0x2ac8f9=this['_uis'][_0x40e9('0x2b')](_0x55adfb);(0x0,this[_0x40e9('0x1a')][_0x40e9('0x2b')](_0x55adfb)['filter'])(_0x229479)&&_0x2ac8f9[_0x40e9('0x7')](_0x229479);}}),this[_0x40e9('0x29')](_0x1d3c1d,_0x40e9('0x5'),()=>{for(const _0x44eabc of this[_0x40e9('0xa')]){this['_uis'][_0x40e9('0x2b')](_0x44eabc)[_0x40e9('0x7')](null);}}),this[_0x40e9('0x29')](_0x1d3c1d[_0x40e9('0x16')],_0x40e9('0xc'),(_0x275b87,_0x37a86f)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x37a86f);});}['hasActive'](){return this[_0x40e9('0xa')][_0x40e9('0x9')]>0x0;}[_0x40e9('0x25')](_0x9ea674){return this[_0x40e9('0xa')]['has'](_0x9ea674);}[_0x40e9('0x2e')](_0x345cc3,_0x4b7ef9=()=>!0x0){const _0x347482=this[_0x40e9('0x22')][_0x40e9('0x2a')][_0x40e9('0x2b')](_0x309bea);if(!this[_0x40e9('0xd')][_0x40e9('0x4')](_0x345cc3))throw new _0x5b58f6('annotationsuis-missing-ui',this,{'uiName':_0x345cc3});this['isActive'](_0x345cc3)&&this['deactivate'](_0x345cc3),this['activeUIs'][_0x40e9('0xc')](_0x345cc3);const _0x80caaa=new _0x36165e(),_0x34a5ee=_0x347482['_visibleAnnotations'];_0x24d852({'source':_0x34a5ee,'target':_0x80caaa,'filter':_0x4b7ef9}),this[_0x40e9('0x1a')]['set'](_0x345cc3,{'collection':_0x80caaa,'filter':_0x4b7ef9});const _0x17d88b=this['_uis'][_0x40e9('0x2b')](_0x345cc3);_0x17d88b['attach'](_0x80caaa),this[_0x40e9('0x29')](_0x17d88b,'change:activeAnnotation',(_0x58ad59,_0x5ad956,_0x164488,_0x45ddc5)=>{_0x45ddc5&&_0x347482[_0x40e9('0x1f')](_0x45ddc5),_0x164488&&_0x347482[_0x40e9('0x0')](_0x164488);});}[_0x40e9('0x15')](_0x57ef89){if(this[_0x40e9('0xa')][_0x40e9('0x23')](_0x57ef89),!this['_uis'][_0x40e9('0x4')](_0x57ef89))throw new _0x5b58f6(_0x40e9('0xe'),this,{'uiName':_0x57ef89});const _0x363428=this['_uis'][_0x40e9('0x2b')](_0x57ef89);_0x363428[_0x40e9('0x1b')](),this[_0x40e9('0x3')](_0x363428),this['_uisData']['get'](_0x57ef89)[_0x40e9('0x2')][_0x40e9('0x21')](),this[_0x40e9('0x1a')][_0x40e9('0x23')](_0x57ef89);}[_0x40e9('0x18')](_0x2ae332){if(!this[_0x40e9('0xd')][_0x40e9('0x4')](_0x2ae332))throw new _0x5b58f6(_0x40e9('0xe'),this,{'uiName':_0x2ae332});const _0x25e8de=this[_0x40e9('0x22')][_0x40e9('0x2a')]['get'](_0x309bea),_0x1b96ec=Array[_0x40e9('0x1d')](_0x25e8de[_0x40e9('0x26')])[0x0]||null;this[_0x40e9('0x6')](),this[_0x40e9('0x2e')](_0x2ae332);const _0x31e032=this[_0x40e9('0xd')][_0x40e9('0x2b')](_0x2ae332);_0x31e032[_0x40e9('0x7')](_0x1b96ec),_0x31e032[_0x40e9('0x12')]&&_0x1b96ec&&_0x31e032[_0x40e9('0x12')]([_0x1b96ec]);}[_0x40e9('0x6')](){for(const _0x87df73 of this[_0x40e9('0xa')])this['deactivate'](_0x87df73);}[_0x40e9('0x24')](_0x49ac02,_0x11cd45){if(this[_0x40e9('0xd')][_0x40e9('0x4')](_0x49ac02))throw new _0x5b58f6(_0x40e9('0x14'));if(_0x40e9('0x2d')!=typeof _0x11cd45[_0x40e9('0x11')]||_0x40e9('0x2d')!=typeof _0x11cd45[_0x40e9('0x1b')]||_0x40e9('0x2d')!=typeof _0x11cd45[_0x40e9('0x7')])throw new _0x5b58f6(_0x40e9('0x1c'),null);this['_uis'][_0x40e9('0x1')](_0x49ac02,_0x11cd45);}['refilterAnnotations'](){const _0x25091e=this[_0x40e9('0x22')][_0x40e9('0x2a')][_0x40e9('0x2b')](_0x309bea)[_0x40e9('0x2')],_0x26cd8e=new Map(),_0x2bfba6=Array[_0x40e9('0x1d')](this[_0x40e9('0xa')]);for(const _0x78df99 of this[_0x40e9('0xa')]){const _0x74376d=this['_uisData'][_0x40e9('0x2b')](_0x78df99)[_0x40e9('0x2')];for(const _0x184c82 of _0x74376d)_0x26cd8e[_0x40e9('0x1')](_0x184c82,_0x78df99);}for(const _0x1fd964 of _0x25091e){const _0x42f074=_0x26cd8e['get'](_0x1fd964);this[_0x40e9('0x20')](_0x1fd964);const _0x48b026=_0x2bfba6[_0x40e9('0x13')](_0x26ed01=>this[_0x40e9('0x1a')][_0x40e9('0x2b')](_0x26ed01)[_0x40e9('0x1e')](_0x1fd964));_0x42f074!==_0x48b026&&(_0x42f074&&this[_0x40e9('0x1a')][_0x40e9('0x2b')](_0x42f074)[_0x40e9('0x2')]['remove'](_0x1fd964),_0x48b026&&this['_uisData'][_0x40e9('0x2b')](_0x48b026)[_0x40e9('0x2')]['add'](_0x1fd964));}}[_0x40e9('0x21')](){this[_0x40e9('0x6')](),super[_0x40e9('0x21')]();}[_0x40e9('0x20')](_0x491ecd){const _0x11c307=[];for(const _0x50f4e7 of this['activeUIs']){(0x0,this[_0x40e9('0x1a')][_0x40e9('0x2b')](_0x50f4e7)['filter'])(_0x491ecd)&&_0x11c307[_0x40e9('0x19')](_0x50f4e7);}if(_0x11c307[_0x40e9('0x10')]>0x1)throw new _0x5b58f6(_0x40e9('0x17'),null,{'matchedUIs':_0x11c307,'annotationType':_0x491ecd[_0x40e9('0xf')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f15=['annotation','_editorAnnotationsData','selection','focusTracker','getRanges','innerView','map','registerAnnotation','listenTo','model','init','_dataCollectors','addSourceCollector','hasDomSelection','containsRange','document','sort','set','editing','refreshSelectedViews','has','collection','add','fire','push','plugins','isCollapsed','directChange','pluginName','range','editor','isEqual','_editorAnnotations','view','from','remove','change:range','getByInnerView','requires','element','uiUpdate','EditorAnnotations','change:isFocused','refresh'];(function(_0xc6895c,_0x2f154d){const _0xb91706=function(_0x358af1){while(--_0x358af1){_0xc6895c['push'](_0xc6895c['shift']());}};_0xb91706(++_0x2f154d);}(_0x2f15,0x98));const _0xb917=function(_0xc6895c,_0x2f154d){_0xc6895c=_0xc6895c-0x0;let _0xb91706=_0x2f15[_0xc6895c];return _0xb91706;};import{Plugin as _0x3ff307}from'ckeditor5/src/core';import{CKEditorError as _0x62d1ad}from'ckeditor5/src/utils';import{debounce as _0x4148c5}from'lodash-es';import _0x320b96 from'./annotations';export default class k extends _0x3ff307{static get[_0xb917('0x12')](){return[_0x320b96];}static get[_0xb917('0x8')](){return _0xb917('0x15');}constructor(_0x197b67){super(_0x197b67),this[_0xb917('0x23')]=new Set(),this[_0xb917('0xc')]=new Set();}[_0xb917('0x22')](){const _0x3c6ca5=this['editor'],_0x5501c9=_0x3c6ca5[_0xb917('0x21')][_0xb917('0x27')][_0xb917('0x1a')],_0x112f9a=_0x4148c5(()=>this['refreshSelectedViews'](),0xa);_0x5501c9['on'](_0xb917('0x10'),(_0x466e34,_0x1dea5c)=>{_0x1dea5c[_0xb917('0x7')]&&(_0x112f9a['cancel'](),this[_0xb917('0x2b')]());}),this[_0xb917('0x20')](_0x3c6ca5[_0xb917('0x2a')][_0xb917('0xd')][_0xb917('0x27')],'change:isFocused',(_0x4355bc,_0x1d70c0,_0x454e0b)=>{_0x454e0b&&_0x112f9a();}),this['listenTo'](_0x3c6ca5['ui']['focusTracker'],_0xb917('0x16'),(_0x41d47f,_0x18c88f,_0x5eac5f)=>{_0x5eac5f||_0x3c6ca5['isReadOnly']||this[_0xb917('0x3')]('blur',{'isAnnotationTracked':_0x14ee8e=>this[_0xb917('0x19')][_0xb917('0x0')](_0x14ee8e[_0xb917('0x1d')])});}),this[_0xb917('0x20')](this[_0xb917('0xa')]['ui'],'update',()=>this[_0xb917('0x3')](_0xb917('0x14')));}[_0xb917('0x1f')](_0x57c436){if(this[_0xb917('0xc')][_0xb917('0x0')](_0x57c436['view']))return;this[_0xb917('0xc')][_0xb917('0x2')](_0x57c436[_0xb917('0xd')]),this[_0xb917('0xa')]['ui'][_0xb917('0x1b')][_0xb917('0x2')](_0x57c436['view'][_0xb917('0x13')]);const _0x364660=this[_0xb917('0xa')][_0xb917('0x5')]['get'](_0x320b96);this[_0xb917('0x20')](_0x364660[_0xb917('0x1')],'remove',(_0x3e83a1,_0x176b71)=>{this[_0xb917('0xa')]['ui'][_0xb917('0x1b')][_0xb917('0xf')](_0x176b71['view'][_0xb917('0x13')]),this[_0xb917('0xc')]['delete'](_0x176b71[_0xb917('0xd')]);});}[_0xb917('0x25')](){return this['editor'][_0xb917('0x2a')][_0xb917('0xd')]['hasDomSelection'];}[_0xb917('0x24')](_0x3ae85a){if('function'!=typeof _0x3ae85a)throw new _0x62d1ad('editorannotations-invalid-source-callback');this[_0xb917('0x23')]['add'](_0x3ae85a);}[_0xb917('0x2b')](){this[_0xb917('0x3')](_0xb917('0x17'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x465110,annotations:_0x529333}){const _0x274c04=[],_0x20e5b8=this['editor'][_0xb917('0x21')]['document'][_0xb917('0x1a')],_0x1978de=Array[_0xb917('0xe')](_0x20e5b8[_0xb917('0x1c')]());for(const [_0x205b8,_0x234b22]of this[_0xb917('0x19')]){const _0x550c67=_0xd36823(_0x234b22),_0x3ae4be=_0x529333[_0xb917('0x11')](_0x205b8);_0x550c67&&_0x3ae4be&&_0x274c04[_0xb917('0x4')]({'annotation':_0x3ae4be,'range':_0x550c67});}function _0xd36823(_0x378729){for(const _0x4e6c57 of _0x378729)for(const _0x193588 of _0x1978de)if(_0x4e6c57['containsRange'](_0x193588,!_0x20e5b8[_0xb917('0x6')]))return _0x4e6c57;return null;}return _0x274c04[_0xb917('0x28')]((_0x42a5bd,_0x1e276f)=>{const _0x351440=_0x42a5bd[_0xb917('0x9')],_0x531681=_0x1e276f['range'];if(!_0x351440[_0xb917('0xb')](_0x531681)){if(_0x351440[_0xb917('0x26')](_0x531681,!0x0))return 0x1;if(_0x531681[_0xb917('0x26')](_0x351440,!0x0))return-0x1;}return _0x42a5bd[_0xb917('0x18')]==_0x465110?-0x1:_0x1e276f['annotation']==_0x465110?0x1:0x0;})[_0xb917('0x1e')](_0x5aa7eb=>_0x5aa7eb[_0xb917('0x18')]);}get[_0xb917('0x19')](){const _0x45d0c5=new Map();for(const _0x5ec059 of Array['from'](this['_dataCollectors']))for(const [_0x31cfa7,_0x56691e]of _0x5ec059())_0x45d0c5[_0xb917('0x29')](_0x31cfa7,_0x56691e);return _0x45d0c5;}}
23
+ const _0x45b6=['refresh','addSourceCollector','get','has','isReadOnly','focusTracker','sort','_editorAnnotations','containsRange','isEqual','editing','fire','refreshSelectedViews','_editorAnnotationsData','push','map','model','from','isCollapsed','collection','uiUpdate','cancel','editorannotations-invalid-source-callback','directChange','plugins','function','annotation','view','getByInnerView','document','selection','init','hasDomSelection','change:isFocused','listenTo','add','set','getRanges','editor','requires','range','_dataCollectors','element'];(function(_0x37f9b7,_0x45b6dc){const _0x1c95ee=function(_0x11a346){while(--_0x11a346){_0x37f9b7['push'](_0x37f9b7['shift']());}};_0x1c95ee(++_0x45b6dc);}(_0x45b6,0x14f));const _0x1c95=function(_0x37f9b7,_0x45b6dc){_0x37f9b7=_0x37f9b7-0x0;let _0x1c95ee=_0x45b6[_0x37f9b7];return _0x1c95ee;};import{Plugin as _0x205d54}from'ckeditor5/src/core';import{CKEditorError as _0x5b23a8}from'ckeditor5/src/utils';import{debounce as _0x40e3ee}from'lodash-es';import _0x27831a from'./annotations';export default class k extends _0x205d54{static get[_0x1c95('0x5')](){return[_0x27831a];}static get['pluginName'](){return'EditorAnnotations';}constructor(_0x4d4a4f){super(_0x4d4a4f),this['_dataCollectors']=new Set(),this[_0x1c95('0x10')]=new Set();}[_0x1c95('0x28')](){const _0x2c274b=this['editor'],_0x4377bf=_0x2c274b[_0x1c95('0x19')]['document'][_0x1c95('0x27')],_0x18c245=_0x40e3ee(()=>this[_0x1c95('0x15')](),0xa);_0x4377bf['on']('change:range',(_0x1ebdb3,_0x4d06dd)=>{_0x4d06dd[_0x1c95('0x20')]&&(_0x18c245[_0x1c95('0x1e')](),this['refreshSelectedViews']());}),this[_0x1c95('0x0')](_0x2c274b[_0x1c95('0x13')][_0x1c95('0x24')][_0x1c95('0x26')],'change:isFocused',(_0x57b212,_0x11aab8,_0xa2a2e6)=>{_0xa2a2e6&&_0x18c245();}),this[_0x1c95('0x0')](_0x2c274b['ui'][_0x1c95('0xe')],_0x1c95('0x2a'),(_0x36ca24,_0xaaa399,_0xcc1415)=>{_0xcc1415||_0x2c274b[_0x1c95('0xd')]||this[_0x1c95('0x14')]('blur',{'isAnnotationTracked':_0x205069=>this[_0x1c95('0x16')][_0x1c95('0xc')](_0x205069['innerView'])});}),this[_0x1c95('0x0')](this[_0x1c95('0x4')]['ui'],'update',()=>this[_0x1c95('0x14')](_0x1c95('0x1d')));}['registerAnnotation'](_0x22517b){if(this[_0x1c95('0x10')][_0x1c95('0xc')](_0x22517b[_0x1c95('0x24')]))return;this[_0x1c95('0x10')][_0x1c95('0x1')](_0x22517b[_0x1c95('0x24')]),this[_0x1c95('0x4')]['ui'][_0x1c95('0xe')][_0x1c95('0x1')](_0x22517b[_0x1c95('0x24')][_0x1c95('0x8')]);const _0x2a1844=this[_0x1c95('0x4')][_0x1c95('0x21')][_0x1c95('0xb')](_0x27831a);this[_0x1c95('0x0')](_0x2a1844[_0x1c95('0x1c')],'remove',(_0x264242,_0x4b822c)=>{this[_0x1c95('0x4')]['ui'][_0x1c95('0xe')]['remove'](_0x4b822c[_0x1c95('0x24')][_0x1c95('0x8')]),this[_0x1c95('0x10')]['delete'](_0x4b822c[_0x1c95('0x24')]);});}[_0x1c95('0x29')](){return this[_0x1c95('0x4')][_0x1c95('0x13')][_0x1c95('0x24')][_0x1c95('0x29')];}[_0x1c95('0xa')](_0x269469){if(_0x1c95('0x22')!=typeof _0x269469)throw new _0x5b23a8(_0x1c95('0x1f'));this[_0x1c95('0x7')][_0x1c95('0x1')](_0x269469);}[_0x1c95('0x15')](){this[_0x1c95('0x14')](_0x1c95('0x9'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x1cf3a5,annotations:_0x401001}){const _0x299ccf=[],_0x3e8028=this[_0x1c95('0x4')]['model']['document'][_0x1c95('0x27')],_0x414573=Array[_0x1c95('0x1a')](_0x3e8028[_0x1c95('0x3')]());for(const [_0x251a69,_0x25f875]of this[_0x1c95('0x16')]){const _0x35dfc3=_0x33ff98(_0x25f875),_0x2dc1ac=_0x401001[_0x1c95('0x25')](_0x251a69);_0x35dfc3&&_0x2dc1ac&&_0x299ccf[_0x1c95('0x17')]({'annotation':_0x2dc1ac,'range':_0x35dfc3});}function _0x33ff98(_0x5d088c){for(const _0x45061f of _0x5d088c)for(const _0x3265d4 of _0x414573)if(_0x45061f[_0x1c95('0x11')](_0x3265d4,!_0x3e8028[_0x1c95('0x1b')]))return _0x45061f;return null;}return _0x299ccf[_0x1c95('0xf')]((_0x57b3a4,_0x36194e)=>{const _0x26ffdb=_0x57b3a4['range'],_0x333993=_0x36194e[_0x1c95('0x6')];if(!_0x26ffdb[_0x1c95('0x12')](_0x333993)){if(_0x26ffdb[_0x1c95('0x11')](_0x333993,!0x0))return 0x1;if(_0x333993[_0x1c95('0x11')](_0x26ffdb,!0x0))return-0x1;}return _0x57b3a4[_0x1c95('0x23')]==_0x1cf3a5?-0x1:_0x36194e[_0x1c95('0x23')]==_0x1cf3a5?0x1:0x0;})[_0x1c95('0x18')](_0x3091cc=>_0x3091cc[_0x1c95('0x23')]);}get[_0x1c95('0x16')](){const _0x3a2ff9=new Map();for(const _0x154895 of Array[_0x1c95('0x1a')](this[_0x1c95('0x7')]))for(const [_0x9b3231,_0x4e2f5f]of _0x154895())_0x3a2ff9[_0x1c95('0x2')](_0x9b3231,_0x4e2f5f);return _0x3a2ff9;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x64d0=['includes','width','_manuallyClosed','focus','from','editing','activeAnnotation','find','change:height','showStack','plugins','updatePosition','view','right','_setSelectedAnnotations','setActiveAnnotation','get','detach','annotations','fromRect','getFirstRange','focusTracker','push','getOrderedSelectedAnnotations','register','inlineannotations-attach-already-attached','_removeAnnotationFromBalloon','context','refresh','top','blur','hasActive','pluginName','switchTo','clear','_forceRefresh','length','getClientRects','every','set','visibleView','_getBalloonTargetForAnnotation','attach','requires','inlineannotations-detach-not-attached','keystrokes','Esc','_balloon','targetRect','inline','getByView','_addAnnotationToBalloon','isFocused','_addedAnnotations','change:visibleView','change:isFocused','left','bottom','_closeAnnotation','domConverter','editableElement','addObserver','isActive','mousedown','has','remove','update','init','_selectedAnnotations','selection','destroy','editor','document','stopListening','isAttached','hasView','listenTo','add'];(function(_0x566600,_0x64d016){const _0x15539a=function(_0x4fd0d0){while(--_0x4fd0d0){_0x566600['push'](_0x566600['shift']());}};_0x15539a(++_0x64d016);}(_0x64d0,0x1cf));const _0x1553=function(_0x566600,_0x64d016){_0x566600=_0x566600-0x0;let _0x15539a=_0x64d0[_0x566600];return _0x15539a;};import{Plugin as _0x4fbe3d}from'ckeditor5/src/core';import _0x29bdec from'./annotationsuis';import _0x100ede from'./editorannotations';import{ContextualBalloon as _0x352248}from'ckeditor5/src/ui';import{MouseObserver as _0x4f381a}from'ckeditor5/src/engine';import{CKEditorError as _0x516440,Rect as _0x1ff70d}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x4fbe3d{static get[_0x1553('0x30')](){return[_0x100ede,_0x352248,_0x29bdec];}static get[_0x1553('0x25')](){return'InlineAnnotations';}constructor(_0xed133b){super(_0xed133b),_0xed133b[_0x1553('0xa')][_0x1553('0x11')][_0x1553('0x42')](_0x4f381a),this[_0x1553('0x1')]=!0x1,this[_0x1553('0x2c')](_0x1553('0xb'),null),this['annotations']=null,this[_0x1553('0x7')]=new Set(),this[_0x1553('0x34')]=_0xed133b['plugins']['get'](_0x352248),this[_0x1553('0x3a')]=new Set(),this[_0x1553('0x49')]=[],this[_0x1553('0x28')]=!0x1;}[_0x1553('0x48')](){const _0x457c98=this[_0x1553('0x4c')][_0x1553('0xf')]['get'](_0x29bdec);_0x457c98[_0x1553('0x20')]===this[_0x1553('0x4c')]&&(_0x457c98[_0x1553('0x1d')]('inline',this),this[_0x1553('0x4c')][_0x1553('0x32')][_0x1553('0x2c')](_0x1553('0x33'),(_0x1663c6,_0x4677e0)=>{const _0x5bd175=this[_0x1553('0x34')];if(this['isAttached']&&_0x5bd175[_0x1553('0x2d')]){const _0x49c8de=this[_0x1553('0x17')][_0x1553('0x37')](_0x5bd175[_0x1553('0x2d')]);_0x49c8de&&this[_0x1553('0x3f')](_0x49c8de),_0x4677e0();}}));}['afterInit'](){const _0x512790=this['editor'][_0x1553('0xf')][_0x1553('0x15')](_0x29bdec);_0x512790['context']===this[_0x1553('0x4c')]&&(_0x512790[_0x1553('0x24')]()||_0x512790[_0x1553('0x26')](_0x1553('0x36')));}[_0x1553('0x14')](_0x43ed92){_0x43ed92!==this[_0x1553('0xb')]&&(this[_0x1553('0xb')]&&(this[_0x1553('0xb')][_0x1553('0x43')]=!0x1),_0x43ed92&&this[_0x1553('0x4c')]['ui'][_0x1553('0x1a')][_0x1553('0x39')]&&(this[_0x1553('0x17')][_0x1553('0x45')](_0x43ed92)&&this['_addAnnotationToBalloon'](_0x43ed92,!0x0),_0x43ed92[_0x1553('0x43')]=!0x0),_0x43ed92||this[_0x1553('0x13')]([]),this['activeAnnotation']=_0x43ed92);}[_0x1553('0x2f')](_0x5372e6){this['annotations']=_0x5372e6;const _0x378207=this[_0x1553('0x4c')][_0x1553('0xf')]['get'](_0x29bdec),_0x42d498=this[_0x1553('0x34')];if(this['isAttached'])throw new _0x516440(_0x1553('0x1e'),this);if(_0x378207[_0x1553('0x20')]!==this[_0x1553('0x4c')])throw new _0x516440('inlineannotations-not-allowed-with-context',this);const _0x3898a2=this[_0x1553('0x4c')][_0x1553('0xf')][_0x1553('0x15')](_0x100ede);this[_0x1553('0x3')](_0x3898a2,_0x1553('0x21'),()=>{const _0x8b4a4c=_0x3898a2[_0x1553('0x1c')]({'annotations':this['annotations'],'activeAnnotation':this[_0x1553('0xb')]});var _0x3cc322,_0x276467;!this[_0x1553('0x28')]&&(_0x3cc322=_0x8b4a4c,_0x276467=this['_selectedAnnotations'],_0x3cc322[_0x1553('0x29')]===_0x276467[_0x1553('0x29')]&&_0x3cc322[_0x1553('0x2b')](_0x607b5d=>_0x276467[_0x1553('0x5')](_0x607b5d)))||(this[_0x1553('0x28')]=!0x1,this[_0x1553('0x13')](_0x8b4a4c),this[_0x1553('0x14')](_0x8b4a4c[0x0]||null));}),this[_0x1553('0x3')](_0x3898a2,_0x1553('0x23'),(_0x3ad45d,{isAnnotationTracked:_0x14ad7a})=>{this[_0x1553('0xb')]&&_0x14ad7a(this[_0x1553('0xb')])&&(this['_setSelectedAnnotations']([]),this[_0x1553('0x14')](null));}),this['listenTo'](this[_0x1553('0x4c')]['ui']['focusTracker'],_0x1553('0x3c'),(_0x443948,_0x31a11e,_0x379316)=>{_0x379316||this[_0x1553('0x14')](null);}),this[_0x1553('0x3')](_0x5372e6,_0x1553('0x46'),(_0x556bfe,_0x5e1692)=>{this[_0x1553('0x1f')](_0x5e1692),_0x5e1692===this[_0x1553('0xb')]&&this[_0x1553('0x14')](null);}),this[_0x1553('0x3')](_0x42d498,_0x1553('0x3b'),(_0x24d831,_0xce3574,_0x4e5dc6,_0xfbe833)=>{_0xfbe833&&this[_0x1553('0x0')](_0xfbe833);const _0x3dd46d=_0x5372e6['getByView'](_0x4e5dc6);_0x4e5dc6&&_0x3dd46d&&(this['listenTo'](_0x4e5dc6,_0x1553('0xd'),()=>{_0x42d498[_0x1553('0x10')]();}),this[_0x1553('0x3')](_0x4e5dc6,_0x1553('0x33'),()=>{this[_0x1553('0x3f')](_0x3dd46d),this['editor'][_0x1553('0xa')]['view'][_0x1553('0x8')]();}),this['activeAnnotation']!==_0x3dd46d&&this[_0x1553('0x14')](_0x3dd46d));}),this['listenTo'](this[_0x1553('0x4c')]['ui'],_0x1553('0x47'),()=>{_0x42d498['visibleView']&&(_0x5372e6[_0x1553('0x37')](_0x42d498[_0x1553('0x2d')])&&_0x42d498[_0x1553('0x10')]());}),this[_0x1553('0x3')](this[_0x1553('0x4c')][_0x1553('0xa')][_0x1553('0x11')][_0x1553('0x4d')],_0x1553('0x44'),()=>{this[_0x1553('0x28')]=!0x0,this[_0x1553('0x7')][_0x1553('0x27')]();}),this['editor'][_0x1553('0xa')][_0x1553('0x11')][_0x1553('0x4d')]['selection'][_0x1553('0x41')]&&this[_0x1553('0x4c')][_0x1553('0xa')]['view'][_0x1553('0x8')](),this[_0x1553('0x1')]=!0x0;}[_0x1553('0x16')](){if(!this['isAttached'])throw new _0x516440(_0x1553('0x31'),this);this[_0x1553('0x14')](null);for(const _0x175b06 of this['_addedAnnotations'])this[_0x1553('0x1f')](_0x175b06);this[_0x1553('0x0')](),this[_0x1553('0x1')]=!0x1,this[_0x1553('0x17')]=null;}[_0x1553('0x4b')](){this['isAttached']&&this[_0x1553('0x16')]();}[_0x1553('0x13')](_0x4cb34c){for(const _0x1421d3 of this['_selectedAnnotations'])_0x4cb34c[_0x1553('0x5')](_0x1421d3)||this[_0x1553('0x7')]['delete'](_0x1421d3);for(const _0x754a67 of this['annotations'])_0x4cb34c[_0x1553('0x5')](_0x754a67)||this[_0x1553('0x1f')](_0x754a67);if(this[_0x1553('0x4c')]['ui'][_0x1553('0x1a')][_0x1553('0x39')])for(const _0x3280cd of _0x4cb34c)this['_addAnnotationToBalloon'](_0x3280cd);this['_selectedAnnotations']=_0x4cb34c;}[_0x1553('0x38')](_0x2247f1,_0x565359=!0x1){this[_0x1553('0x7')]['has'](_0x2247f1)||(this[_0x1553('0x3a')][_0x1553('0x45')](_0x2247f1)||this['_balloon'][_0x1553('0x2')](_0x2247f1['view'])||(this[_0x1553('0x3a')][_0x1553('0x4')](_0x2247f1),this[_0x1553('0x34')]['add']({'stackId':_0x2247f1[_0x1553('0x11')]['id'],'view':_0x2247f1['view'],'position':{'target':()=>this[_0x1553('0x2e')](_0x2247f1)}})),_0x565359&&this['_balloon'][_0x1553('0xe')](_0x2247f1[_0x1553('0x11')]['id']));}[_0x1553('0x2e')](_0x3c787d){const _0x4956b7=_0x3c787d['target'],_0xf8dfe=this[_0x1553('0x4c')]['editing']['view'],_0x302e6c=_0xf8dfe[_0x1553('0x4d')][_0x1553('0x4a')][_0x1553('0x19')](),_0x21564c=_0xf8dfe[_0x1553('0x40')]['viewRangeToDom'](_0x302e6c);if(_0x21564c['collapse'](!0x0),_0x4956b7){if(_0x4956b7 instanceof _0x1ff70d)return _0x4956b7;let _0x1ef4e7=[];for(const _0xa3fadf of _0x4956b7)_0x1ef4e7[_0x1553('0x1b')](...(_0x8eca6f=_0xa3fadf[_0x1553('0x2a')](),Array[_0x1553('0x9')](_0x8eca6f)['map'](DOMRect[_0x1553('0x18')])));_0x1ef4e7=function(_0x578593){const _0xe61c57=[];let _0x1090e9=_0x578593[0x0];for(let _0x5c75a6=0x1;_0x5c75a6<_0x578593[_0x1553('0x29')];_0x5c75a6++)F(_0x1090e9,_0x578593[_0x5c75a6])?_0x1090e9['width']+=_0x578593[_0x5c75a6][_0x1553('0x6')]:(_0xe61c57['push'](_0x1090e9),_0x1090e9=_0x578593[_0x5c75a6]);return _0xe61c57[_0x1553('0x1b')](_0x1090e9),_0xe61c57;}(_0x1ef4e7);const _0xd8d61f=_0x21564c['getBoundingClientRect']();return _0x1ef4e7[_0x1553('0xc')](_0x5862cf=>_0x5862cf['top']<=_0xd8d61f[_0x1553('0x22')]&&_0x5862cf[_0x1553('0x3e')]>=_0xd8d61f[_0x1553('0x3e')]&&_0x5862cf[_0x1553('0x3d')]<=_0xd8d61f[_0x1553('0x3d')]&&_0x5862cf['right']>=_0xd8d61f[_0x1553('0x12')])||_0x1ef4e7[0x0];}var _0x8eca6f;return _0x3c787d[_0x1553('0x35')]||_0x21564c;}[_0x1553('0x1f')](_0x8153f4){this['_addedAnnotations']['has'](_0x8153f4)&&this['_balloon'][_0x1553('0x2')](_0x8153f4['view'])&&(this[_0x1553('0x3a')]['delete'](_0x8153f4),this[_0x1553('0x34')]['remove'](_0x8153f4[_0x1553('0x11')]));}['_closeAnnotation'](_0x25fa58){this[_0x1553('0x7')][_0x1553('0x4')](_0x25fa58),this[_0x1553('0x1f')](_0x25fa58);}}function F(_0x3a2cf5,_0x1de23c){return _0x3a2cf5[_0x1553('0x22')]===_0x1de23c['top']&&_0x3a2cf5['bottom']===_0x1de23c[_0x1553('0x3e')]&&_0x3a2cf5['right']===_0x1de23c[_0x1553('0x3d')];}
23
+ const _0x12df=['pluginName','set','Esc','requires','_addedAnnotations','getClientRects','register','_getBalloonTargetForAnnotation','isAttached','length','includes','editor','update','editing','every','setActiveAnnotation','map','_selectedAnnotations','detach','focus','stopListening','get','domConverter','_closeAnnotation','plugins','selection','getByView','activeAnnotation','inline','listenTo','focusTracker','fromRect','change:isFocused','isActive','targetRect','keystrokes','has','annotations','left','right','_setSelectedAnnotations','refresh','_addAnnotationToBalloon','_removeAnnotationFromBalloon','change:visibleView','document','hasView','visibleView','change:height','remove','mousedown','clear','_forceRefresh','switchTo','InlineAnnotations','editableElement','init','find','inlineannotations-attach-already-attached','isFocused','hasActive','add','top','_manuallyClosed','collapse','_balloon','push','blur','showStack','context','viewRangeToDom','width','bottom','destroy','view','updatePosition','delete','inlineannotations-not-allowed-with-context','from'];(function(_0x1ee210,_0x12df6b){const _0x244a01=function(_0x94a4e4){while(--_0x94a4e4){_0x1ee210['push'](_0x1ee210['shift']());}};_0x244a01(++_0x12df6b);}(_0x12df,0xe5));const _0x244a=function(_0x1ee210,_0x12df6b){_0x1ee210=_0x1ee210-0x0;let _0x244a01=_0x12df[_0x1ee210];return _0x244a01;};import{Plugin as _0x3b5198}from'ckeditor5/src/core';import _0xd97840 from'./annotationsuis';import _0x197b3a from'./editorannotations';import{ContextualBalloon as _0x44d7d0}from'ckeditor5/src/ui';import{MouseObserver as _0x230bea}from'ckeditor5/src/engine';import{CKEditorError as _0x506e15,Rect as _0x64b5d7}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x3b5198{static get[_0x244a('0xb')](){return[_0x197b3a,_0x44d7d0,_0xd97840];}static get[_0x244a('0x8')](){return _0x244a('0x3e');}constructor(_0x1238e9){super(_0x1238e9),_0x1238e9['editing'][_0x244a('0x3')]['addObserver'](_0x230bea),this[_0x244a('0x10')]=!0x1,this[_0x244a('0x9')](_0x244a('0x23'),null),this[_0x244a('0x2d')]=null,this[_0x244a('0x47')]=new Set(),this[_0x244a('0x49')]=_0x1238e9[_0x244a('0x20')]['get'](_0x44d7d0),this[_0x244a('0xc')]=new Set(),this[_0x244a('0x19')]=[],this[_0x244a('0x3c')]=!0x1;}[_0x244a('0x40')](){const _0x37e361=this[_0x244a('0x13')]['plugins'][_0x244a('0x1d')](_0xd97840);_0x37e361[_0x244a('0x4d')]===this[_0x244a('0x13')]&&(_0x37e361[_0x244a('0xe')](_0x244a('0x24'),this),this[_0x244a('0x13')][_0x244a('0x2b')][_0x244a('0x9')](_0x244a('0xa'),(_0xb42dc8,_0x28f60a)=>{const _0x18e84d=this[_0x244a('0x49')];if(this[_0x244a('0x10')]&&_0x18e84d[_0x244a('0x37')]){const _0x2991c4=this[_0x244a('0x2d')][_0x244a('0x22')](_0x18e84d['visibleView']);_0x2991c4&&this[_0x244a('0x1f')](_0x2991c4),_0x28f60a();}}));}['afterInit'](){const _0x2c8a66=this['editor']['plugins'][_0x244a('0x1d')](_0xd97840);_0x2c8a66[_0x244a('0x4d')]===this[_0x244a('0x13')]&&(_0x2c8a66[_0x244a('0x44')]()||_0x2c8a66[_0x244a('0x3d')](_0x244a('0x24')));}[_0x244a('0x17')](_0x2f7ee9){_0x2f7ee9!==this['activeAnnotation']&&(this[_0x244a('0x23')]&&(this[_0x244a('0x23')][_0x244a('0x29')]=!0x1),_0x2f7ee9&&this[_0x244a('0x13')]['ui']['focusTracker'][_0x244a('0x43')]&&(this['annotations'][_0x244a('0x2c')](_0x2f7ee9)&&this[_0x244a('0x32')](_0x2f7ee9,!0x0),_0x2f7ee9[_0x244a('0x29')]=!0x0),_0x2f7ee9||this[_0x244a('0x30')]([]),this[_0x244a('0x23')]=_0x2f7ee9);}['attach'](_0x38e7a1){this[_0x244a('0x2d')]=_0x38e7a1;const _0x2cc913=this['editor'][_0x244a('0x20')][_0x244a('0x1d')](_0xd97840),_0x5edc88=this['_balloon'];if(this[_0x244a('0x10')])throw new _0x506e15(_0x244a('0x42'),this);if(_0x2cc913['context']!==this[_0x244a('0x13')])throw new _0x506e15(_0x244a('0x6'),this);const _0xb42b17=this['editor'][_0x244a('0x20')][_0x244a('0x1d')](_0x197b3a);this[_0x244a('0x25')](_0xb42b17,_0x244a('0x31'),()=>{const _0x8200d7=_0xb42b17['getOrderedSelectedAnnotations']({'annotations':this[_0x244a('0x2d')],'activeAnnotation':this['activeAnnotation']});var _0x3a1439,_0x54ae82;!this[_0x244a('0x3c')]&&(_0x3a1439=_0x8200d7,_0x54ae82=this[_0x244a('0x19')],_0x3a1439[_0x244a('0x11')]===_0x54ae82[_0x244a('0x11')]&&_0x3a1439[_0x244a('0x16')](_0x51f7b6=>_0x54ae82[_0x244a('0x12')](_0x51f7b6)))||(this[_0x244a('0x3c')]=!0x1,this[_0x244a('0x30')](_0x8200d7),this[_0x244a('0x17')](_0x8200d7[0x0]||null));}),this[_0x244a('0x25')](_0xb42b17,_0x244a('0x4b'),(_0x2103d3,{isAnnotationTracked:_0x321352})=>{this[_0x244a('0x23')]&&_0x321352(this[_0x244a('0x23')])&&(this['_setSelectedAnnotations']([]),this[_0x244a('0x17')](null));}),this['listenTo'](this[_0x244a('0x13')]['ui'][_0x244a('0x26')],_0x244a('0x28'),(_0x4ab978,_0x264374,_0x18d7ea)=>{_0x18d7ea||this[_0x244a('0x17')](null);}),this['listenTo'](_0x38e7a1,_0x244a('0x39'),(_0x191d04,_0x1e9318)=>{this['_removeAnnotationFromBalloon'](_0x1e9318),_0x1e9318===this['activeAnnotation']&&this[_0x244a('0x17')](null);}),this['listenTo'](_0x5edc88,_0x244a('0x34'),(_0x100dbf,_0x2d8977,_0xb04d5e,_0xc4cf0d)=>{_0xc4cf0d&&this[_0x244a('0x1c')](_0xc4cf0d);const _0x4c9aa5=_0x38e7a1['getByView'](_0xb04d5e);_0xb04d5e&&_0x4c9aa5&&(this[_0x244a('0x25')](_0xb04d5e,_0x244a('0x38'),()=>{_0x5edc88[_0x244a('0x4')]();}),this['listenTo'](_0xb04d5e,_0x244a('0xa'),()=>{this[_0x244a('0x1f')](_0x4c9aa5),this[_0x244a('0x13')][_0x244a('0x15')]['view'][_0x244a('0x1b')]();}),this[_0x244a('0x23')]!==_0x4c9aa5&&this[_0x244a('0x17')](_0x4c9aa5));}),this[_0x244a('0x25')](this[_0x244a('0x13')]['ui'],_0x244a('0x14'),()=>{_0x5edc88[_0x244a('0x37')]&&(_0x38e7a1[_0x244a('0x22')](_0x5edc88[_0x244a('0x37')])&&_0x5edc88[_0x244a('0x4')]());}),this[_0x244a('0x25')](this[_0x244a('0x13')][_0x244a('0x15')]['view'][_0x244a('0x35')],_0x244a('0x3a'),()=>{this[_0x244a('0x3c')]=!0x0,this['_manuallyClosed'][_0x244a('0x3b')]();}),this[_0x244a('0x13')]['editing']['view'][_0x244a('0x35')][_0x244a('0x21')][_0x244a('0x3f')]&&this[_0x244a('0x13')]['editing']['view']['focus'](),this[_0x244a('0x10')]=!0x0;}[_0x244a('0x1a')](){if(!this[_0x244a('0x10')])throw new _0x506e15('inlineannotations-detach-not-attached',this);this[_0x244a('0x17')](null);for(const _0xc6ad64 of this[_0x244a('0xc')])this[_0x244a('0x33')](_0xc6ad64);this[_0x244a('0x1c')](),this[_0x244a('0x10')]=!0x1,this[_0x244a('0x2d')]=null;}[_0x244a('0x2')](){this[_0x244a('0x10')]&&this[_0x244a('0x1a')]();}[_0x244a('0x30')](_0x370d8d){for(const _0x24953d of this[_0x244a('0x19')])_0x370d8d[_0x244a('0x12')](_0x24953d)||this[_0x244a('0x47')]['delete'](_0x24953d);for(const _0x19edec of this[_0x244a('0x2d')])_0x370d8d[_0x244a('0x12')](_0x19edec)||this[_0x244a('0x33')](_0x19edec);if(this[_0x244a('0x13')]['ui'][_0x244a('0x26')][_0x244a('0x43')])for(const _0x425a76 of _0x370d8d)this['_addAnnotationToBalloon'](_0x425a76);this[_0x244a('0x19')]=_0x370d8d;}[_0x244a('0x32')](_0x3764dc,_0xd024fc=!0x1){this['_manuallyClosed'][_0x244a('0x2c')](_0x3764dc)||(this[_0x244a('0xc')][_0x244a('0x2c')](_0x3764dc)||this[_0x244a('0x49')]['hasView'](_0x3764dc['view'])||(this[_0x244a('0xc')][_0x244a('0x45')](_0x3764dc),this[_0x244a('0x49')][_0x244a('0x45')]({'stackId':_0x3764dc[_0x244a('0x3')]['id'],'view':_0x3764dc[_0x244a('0x3')],'position':{'target':()=>this[_0x244a('0xf')](_0x3764dc)}})),_0xd024fc&&this['_balloon'][_0x244a('0x4c')](_0x3764dc[_0x244a('0x3')]['id']));}[_0x244a('0xf')](_0x3b7160){const _0x38eeae=_0x3b7160['target'],_0x5e5fa0=this[_0x244a('0x13')]['editing'][_0x244a('0x3')],_0x281c61=_0x5e5fa0[_0x244a('0x35')][_0x244a('0x21')]['getFirstRange'](),_0x4a8b27=_0x5e5fa0[_0x244a('0x1e')][_0x244a('0x4e')](_0x281c61);if(_0x4a8b27[_0x244a('0x48')](!0x0),_0x38eeae){if(_0x38eeae instanceof _0x64b5d7)return _0x38eeae;let _0x3de75e=[];for(const _0x18aacf of _0x38eeae)_0x3de75e[_0x244a('0x4a')](...(_0x5f32d7=_0x18aacf[_0x244a('0xd')](),Array[_0x244a('0x7')](_0x5f32d7)[_0x244a('0x18')](DOMRect[_0x244a('0x27')])));_0x3de75e=function(_0x1b8237){const _0x1a2bb8=[];let _0x2e2d68=_0x1b8237[0x0];for(let _0x5eee31=0x1;_0x5eee31<_0x1b8237['length'];_0x5eee31++)F(_0x2e2d68,_0x1b8237[_0x5eee31])?_0x2e2d68[_0x244a('0x0')]+=_0x1b8237[_0x5eee31]['width']:(_0x1a2bb8[_0x244a('0x4a')](_0x2e2d68),_0x2e2d68=_0x1b8237[_0x5eee31]);return _0x1a2bb8[_0x244a('0x4a')](_0x2e2d68),_0x1a2bb8;}(_0x3de75e);const _0x33a0ca=_0x4a8b27['getBoundingClientRect']();return _0x3de75e[_0x244a('0x41')](_0xc9b201=>_0xc9b201[_0x244a('0x46')]<=_0x33a0ca['top']&&_0xc9b201[_0x244a('0x1')]>=_0x33a0ca[_0x244a('0x1')]&&_0xc9b201[_0x244a('0x2e')]<=_0x33a0ca[_0x244a('0x2e')]&&_0xc9b201[_0x244a('0x2f')]>=_0x33a0ca[_0x244a('0x2f')])||_0x3de75e[0x0];}var _0x5f32d7;return _0x3b7160[_0x244a('0x2a')]||_0x4a8b27;}['_removeAnnotationFromBalloon'](_0x3dbb78){this[_0x244a('0xc')][_0x244a('0x2c')](_0x3dbb78)&&this['_balloon'][_0x244a('0x36')](_0x3dbb78[_0x244a('0x3')])&&(this[_0x244a('0xc')][_0x244a('0x5')](_0x3dbb78),this[_0x244a('0x49')][_0x244a('0x39')](_0x3dbb78['view']));}[_0x244a('0x1f')](_0x5c4e42){this[_0x244a('0x47')]['add'](_0x5c4e42),this[_0x244a('0x33')](_0x5c4e42);}}function F(_0x345a40,_0x147583){return _0x345a40['top']===_0x147583[_0x244a('0x46')]&&_0x345a40[_0x244a('0x1')]===_0x147583[_0x244a('0x1')]&&_0x345a40['right']===_0x147583['left'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2898=['set:container','view','target','_updateBalloonPosition','getOrderedSelectedAnnotations','init','NarrowSidebar','_detachFromContainer','bind','_refreshPositioning','off','stopListening','set','isDirty','contains','_setSelectedAnnotations','annotations','from','context','refresh','ready','Esc','activeAnnotation','annotationType','_annotationToNarrowView','focus','southArrowNorthEast','_attachListeners','isAttached','hasDomSelection','editors','_integrateWithEditorAnnotations','remove','add','execute','high','low','stop','plugins','_detachListeners','detach','isVisible','attachToDom','preventClosingBalloon','attach','number','pluginName','_refreshPositioningDebounced','get','ck-sidebar--narrow','change:height','locale','change:container','balloonPanelView','EditorAnnotations','narrowsidebar-detach-not-attached','addAnnotation','_destroyEditorAnnotationsIntegration','removeEventListener','northArrowSouthEast','delete','_hideBalloon','clear','cancel','esc','values','resize','refreshPositioning','stopPropagation','has','southArrowNorth','_selectedAnnotations','content','_manuallyClosedAnnotationViews','listenTo','_showBalloon','getSidebarItemView','setActiveAnnotation','unpin','keyCode','length','bodyCollection','destroy','first','element','register','_domEmitter','_editorAnnotations','blur','mousedown','includes'];(function(_0x1bf3f7,_0x2898d2){const _0x234e29=function(_0x1c5cf3){while(--_0x1c5cf3){_0x1bf3f7['push'](_0x1bf3f7['shift']());}};_0x234e29(++_0x2898d2);}(_0x2898,0xd9));const _0x234e=function(_0x1bf3f7,_0x2898d2){_0x1bf3f7=_0x1bf3f7-0x0;let _0x234e29=_0x2898[_0x1bf3f7];return _0x234e29;};import{ContextPlugin as _0x8e223d,Context as _0x1e70b5}from'ckeditor5/src/core';import _0x45c244 from'./annotationsuis';import _0x20dc59 from'./sidebar';import _0x1981f7 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x36c940,BodyCollection as _0x2396a1}from'ckeditor5/src/ui';import{CKEditorError as _0x104d03,DomEmitterMixin as _0x460f8b,keyCodes as _0x23450c,Collection as _0x3ef67f}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x4d5608}from'lodash-es';import _0x25c14e from'./editorannotations';export default class s extends _0x8e223d{static get['requires'](){return[_0x20dc59,_0x45c244];}static get[_0x234e('0xb')](){return _0x234e('0x3e');}constructor(_0xb76fd2){super(_0xb76fd2),this[_0x234e('0x54')]=!0x1,this[_0x234e('0x26')]=new Set(),this['_domEmitter']=Object['create'](_0x460f8b),this[_0x234e('0x50')]=new Map(),this[_0x234e('0x44')](_0x234e('0x4e'),null),this[_0x234e('0x48')]=null,this[_0x234e('0x24')]=[],this[_0x234e('0x34')]=new _0x3ef67f(),this['_refreshPositioningDebounced']=_0x4d5608(()=>{this[_0x234e('0x41')]();},0xfa,{'leading':!0x1});}[_0x234e('0x3d')](){this[_0x234e('0x4a')][_0x234e('0x3')][_0x234e('0xd')](_0x45c244)[_0x234e('0x32')]('narrowSidebar',this),this[_0x234e('0x2e')]=new _0x2396a1(this[_0x234e('0x4a')][_0x234e('0x10')]),this[_0x234e('0x12')]=new _0x36c940(this[_0x234e('0x4a')]['locale']),this[_0x234e('0x2e')][_0x234e('0x7')](),this[_0x234e('0x2e')][_0x234e('0x59')](this['balloonPanelView']);}['attach'](_0x47671d){this['annotations']=_0x47671d;const _0x47fa88=this[_0x234e('0x4a')][_0x234e('0x3')][_0x234e('0xd')](_0x20dc59),_0x5ec386=this['balloonPanelView'];if(_0x47fa88['_annotations']=_0x47671d,this[_0x234e('0x54')])throw new _0x104d03('narrowsidebar-attach-already-attached',this);this[_0x234e('0x54')]=!0x0,this[_0x234e('0x27')](_0x47fa88,_0x234e('0x38'),()=>{this[_0x234e('0x5')](),this[_0x234e('0x27')](_0x47fa88,_0x234e('0x11'),_0x5bfabd=>{_0x5bfabd[_0x234e('0x42')](),this[_0x234e('0x9')](_0x47671d);});}),_0x47fa88['_attachToContainer']({'viewClass':_0x234e('0xe'),'spaceBetweenItems':0x5});const _0x2a1b99=_0x3ca74d=>{const _0x542356=new _0x1981f7(this[_0x234e('0x4a')][_0x234e('0x10')]);_0x47fa88[_0x234e('0x15')](_0x3ca74d,_0x542356),this[_0x234e('0x50')][_0x234e('0x44')](_0x3ca74d,_0x542356),_0x542356[_0x234e('0x40')](_0x234e('0x45'),_0x234e('0x4f'),_0x234e('0xa'))['to'](_0x3ca74d['view'],_0x234e('0x45'),'type',_0x234e('0x2d')),_0x542356['on'](_0x234e('0x5a'),()=>{this['_manuallyClosedAnnotationViews'][_0x234e('0x1b')](),_0x5ec386[_0x234e('0x25')][_0x234e('0x30')]!==_0x3ca74d['view']?(this['_showBalloon'](_0x3ca74d),_0x3ca74d[_0x234e('0x39')]['element'][_0x234e('0x51')](),this[_0x234e('0x2a')](_0x3ca74d)):this['setActiveAnnotation'](null);});};for(const _0x1f3dc2 of _0x47671d)_0x2a1b99(_0x1f3dc2);this[_0x234e('0x27')](_0x47671d,'add',(_0xddfd56,_0x4fce26)=>{_0x2a1b99(_0x4fce26);}),this[_0x234e('0x27')](_0x47671d,_0x234e('0x58'),(_0x428c5c,_0x16c531,_0x20455b)=>{this[_0x234e('0x50')][_0x234e('0xd')](_0x16c531)[_0x234e('0x2f')](),this[_0x234e('0x50')][_0x234e('0x19')](_0x16c531),_0x47fa88['rearrange']({'removedAnnotation':_0x16c531,'previousAnnotation':_0x47671d[_0x234e('0xd')](_0x20455b-0x1),'nextAnnotation':_0x47671d[_0x234e('0xd')](_0x20455b+0x1)}),_0x16c531===this['activeAnnotation']&&this[_0x234e('0x2a')](null);},{'priority':_0x234e('0x1')}),this['listenTo'](_0x47671d,_0x234e('0x51'),(_0x3774b2,_0xa097e6)=>{this[_0x234e('0x2a')](_0xa097e6);}),this[_0x234e('0x27')](_0x47671d,_0x234e('0x35'),()=>{this[_0x234e('0x2a')](null);}),this['_domEmitter'][_0x234e('0x27')](document,'keydown',(_0x24694b,_0x29282b)=>{_0x29282b[_0x234e('0x2c')]===_0x23450c[_0x234e('0x1d')]&&_0x5ec386[_0x234e('0x6')]&&(this[_0x234e('0x26')]['add'](_0x5ec386[_0x234e('0x25')][_0x234e('0x30')]),this[_0x234e('0x1a')](),_0x29282b[_0x234e('0x21')](),_0x29282b['preventDefault']());}),this['_domEmitter']['listenTo'](document,_0x234e('0x36'),(_0xaa02e8,_0x59084a)=>{const _0x2fb09b=_0x59084a[_0x234e('0x3a')];_0x5ec386['isVisible']&&_0x5ec386[_0x234e('0x31')][_0x234e('0x46')](_0x2fb09b)||_0x47fa88[_0x234e('0x39')][_0x234e('0x31')][_0x234e('0x46')](_0x2fb09b)||_0xaa02e8[_0x234e('0x8')]||(this[_0x234e('0x26')][_0x234e('0x1b')](),this[_0x234e('0x1a')](),this[_0x234e('0x2a')](null));});const _0x27f678=this[_0x234e('0x4a')]instanceof _0x1e70b5?this[_0x234e('0x4a')][_0x234e('0x56')]:new _0x3ef67f([this['context']]);for(const _0x93c950 of _0x27f678)this[_0x234e('0x57')](_0x93c950);this[_0x234e('0x27')](_0x27f678,_0x234e('0x59'),(_0x13fa91,_0x4e8963)=>{this['listenTo'](_0x4e8963,_0x234e('0x4c'),()=>{this[_0x234e('0x57')](_0x4e8963);});}),this[_0x234e('0x27')](_0x27f678,_0x234e('0x58'),(_0xe8a017,_0x2f4de5)=>{_0x2f4de5['plugins'][_0x234e('0x22')](_0x234e('0x13'))&&this[_0x234e('0x16')](_0x2f4de5[_0x234e('0x3')][_0x234e('0xd')]('EditorAnnotations'));}),window['addEventListener'](_0x234e('0x1f'),this[_0x234e('0xc')]),this[_0x234e('0x41')]();}[_0x234e('0x2a')](_0x360ef9){if(_0x360ef9===this[_0x234e('0x4e')])return;const _0x1e8fec=this[_0x234e('0x4a')][_0x234e('0x3')][_0x234e('0xd')](_0x20dc59);if(_0x1e8fec[_0x234e('0x4b')]({'blurredAnnotation':this[_0x234e('0x4e')],'activatedAnnotation':_0x360ef9,'disableAnimationOnActivatedAnnotation':!0x0}),_0x360ef9)_0x1e8fec[_0x234e('0x29')](_0x360ef9)?this[_0x234e('0x28')](_0x360ef9):this[_0x234e('0x1a')]();else this[_0x234e('0x1a')]();this[_0x234e('0x4e')]=_0x360ef9;}[_0x234e('0x5')](){if(!this[_0x234e('0x54')])throw new _0x104d03(_0x234e('0x14'),this);this[_0x234e('0x2a')](null);const _0x3362ac=this[_0x234e('0x4a')][_0x234e('0x3')]['get'](_0x20dc59);this[_0x234e('0x1a')](),Array[_0x234e('0x49')](this[_0x234e('0x50')][_0x234e('0x1e')](),_0x38fb09=>_0x38fb09[_0x234e('0x2f')]()),this[_0x234e('0x50')]['clear'](),_0x3362ac[_0x234e('0x3f')](this[_0x234e('0x48')]),this['stopListening'](),this[_0x234e('0x33')][_0x234e('0x43')](),this['context']instanceof _0x1e70b5&&this[_0x234e('0x43')](this[_0x234e('0x4a')][_0x234e('0x56')]);for(const _0x375700 of Array['from'](this['_editorAnnotations']))this[_0x234e('0x16')](_0x375700);window[_0x234e('0x17')](_0x234e('0x1f'),this['_refreshPositioningDebounced']),this[_0x234e('0xc')][_0x234e('0x1c')](),this[_0x234e('0x24')]=[],this[_0x234e('0x54')]=!0x1,this[_0x234e('0x48')]=null;}['destroy'](){this[_0x234e('0x54')]&&this[_0x234e('0x5')](),this['bodyCollection']['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x48816c){const _0x24f04e=_0x48816c[_0x234e('0x3')]['get'](_0x25c14e),_0x3ca5c8=this[_0x234e('0x4a')][_0x234e('0x3')]['get'](_0x20dc59),_0x5d1a8c=this['annotations'],_0x32ecd0=this[_0x234e('0x12')],_0x2b0fdb=()=>{const _0x55fd55=_0x24f04e[_0x234e('0x3c')]({'annotations':this[_0x234e('0x48')],'activeAnnotation':this[_0x234e('0x4e')]});this[_0x234e('0x47')](_0x55fd55),this[_0x234e('0x2a')](_0x55fd55[0x0]||null);};this[_0x234e('0x27')](_0x24f04e,'refresh',_0x2b0fdb),this[_0x234e('0x27')](_0x24f04e,_0x234e('0x35'),(_0x3f6ab2,{isAnnotationTracked:_0x55184a})=>{this['activeAnnotation']&&_0x55184a(this[_0x234e('0x4e')])&&(this[_0x234e('0x47')]([]),this[_0x234e('0x2a')](null));}),this[_0x234e('0x27')](_0x24f04e,'uiUpdate',()=>{this[_0x234e('0xc')]();}),this['listenTo'](_0x5d1a8c,_0x234e('0x35'),_0xd933ad=>{_0x24f04e['hasDomSelection']()&&_0xd933ad[_0x234e('0x2')]();},{'priority':_0x234e('0x0')}),this['listenTo'](this[_0x234e('0x33')],'mousedown',(_0x4c6f64,_0x5b140f)=>{const _0xf5ca77=_0x5b140f[_0x234e('0x3a')];_0x32ecd0[_0x234e('0x6')]&&_0x32ecd0['element'][_0x234e('0x46')](_0xf5ca77)||_0x3ca5c8[_0x234e('0x39')][_0x234e('0x31')]['contains'](_0xf5ca77)||this[_0x234e('0x4e')]&&_0x24f04e[_0x234e('0x55')]()&&(_0x2b0fdb(),_0x4c6f64[_0x234e('0x8')]=!0x0);},{'priority':_0x234e('0x0')}),this['_editorAnnotations'][_0x234e('0x59')](_0x24f04e);}[_0x234e('0x16')](_0xa11270){_0xa11270&&(this[_0x234e('0x43')](_0xa11270),this[_0x234e('0x34')]['remove'](_0xa11270));}['_setSelectedAnnotations'](_0x23f557){for(const _0x5116bd of this['_selectedAnnotations'])_0x23f557[_0x234e('0x37')](_0x5116bd)||this[_0x234e('0x26')][_0x234e('0x19')](_0x5116bd['view']);this[_0x234e('0x24')]=_0x23f557;}[_0x234e('0x41')](){const _0x37081e=this[_0x234e('0x12')];this[_0x234e('0x48')][_0x234e('0x20')](),_0x37081e[_0x234e('0x6')]&&this['_updateBalloonPosition']();}[_0x234e('0x28')](_0x4aefa8){if(this[_0x234e('0x26')]['has'](_0x4aefa8['view']))return;const _0xe2ca64=this[_0x234e('0x12')][_0x234e('0x25')][_0x234e('0x30')];_0xe2ca64!==_0x4aefa8[_0x234e('0x39')]?(_0xe2ca64&&this['_detachListeners'](_0xe2ca64),this['_attachListeners'](_0x4aefa8[_0x234e('0x39')]),this['balloonPanelView']['content'][_0x234e('0x1b')](),this[_0x234e('0x12')][_0x234e('0x25')]['add'](_0x4aefa8[_0x234e('0x39')]),this[_0x234e('0x3b')]()):this[_0x234e('0x3b')]();}['_updateBalloonPosition'](){const _0x32156f=this[_0x234e('0x12')]['content'][_0x234e('0x30')],_0x26c391=_0x32156f&&this['annotations']['getByView'](_0x32156f);if(!_0x26c391||!this[_0x234e('0x50')][_0x234e('0x22')](_0x26c391))return;const _0x1af329=this[_0x234e('0x50')][_0x234e('0xd')](_0x26c391)[_0x234e('0x31')],_0x5d5cb4=function(){const _0x298be3=_0x36c940['defaultPositions'];return[_0x298be3[_0x234e('0x52')],_0x298be3[_0x234e('0x18')],_0x298be3[_0x234e('0x23')],_0x298be3['northArrowSouth'],_0x298be3['southArrowNorthWest'],_0x298be3['northArrowSouthWest']];}();this[_0x234e('0x12')]['pin']({'target':_0x1af329,'positions':_0x5d5cb4});}[_0x234e('0x1a')](){const _0x28958a=this[_0x234e('0x12')],_0x279daf=_0x28958a[_0x234e('0x25')][_0x234e('0x30')];_0x279daf&&(this[_0x234e('0x4')](_0x279daf),_0x28958a[_0x234e('0x2b')](),_0x28958a[_0x234e('0x25')][_0x234e('0x1b')]());}[_0x234e('0x53')](_0x185182){this['listenTo'](_0x185182,_0x234e('0xf'),()=>this[_0x234e('0x3b')]()),this[_0x234e('0x27')](_0x185182,_0x234e('0x4d'),(_0x195a81,_0x2a29ce)=>{this[_0x234e('0x26')][_0x234e('0x59')](_0x185182),this[_0x234e('0x1a')](),_0x2a29ce();});}[_0x234e('0x4')](_0x40f1a0){this[_0x234e('0x43')](_0x40f1a0);}}
23
+ const _0x5744=['content','clear','locale','southArrowNorth','delete','_attachListeners','change:height','register','from','detachFromDom','northArrowSouth','focus','requires','mousedown','_detachListeners','_integrateWithEditorAnnotations','contains','unpin','preventClosingBalloon','has','stopListening','context','plugins','isDirty','pluginName','Esc','_hideBalloon','_showBalloon','low','length','init','detach','high','_refreshPositioning','annotations','_detachFromContainer','_destroyEditorAnnotationsIntegration','destroy','execute','first','target','stop','get','addEventListener','EditorAnnotations','cancel','listenTo','setActiveAnnotation','refresh','stopPropagation','NarrowSidebar','hasDomSelection','off','_refreshPositioningDebounced','_annotationToNarrowView','bind','narrowsidebar-detach-not-attached','removeEventListener','blur','_selectedAnnotations','_updateBalloonPosition','pin','_editorAnnotations','editors','_attachToContainer','isVisible','isAttached','_domEmitter','add','esc','attachToDom','resize','uiUpdate','activeAnnotation','southArrowNorthWest','attach','view','_manuallyClosedAnnotationViews','values','remove','getOrderedSelectedAnnotations','northArrowSouthWest','set','element','_setSelectedAnnotations','_annotations','balloonPanelView','bodyCollection','rearrange'];(function(_0x54ff40,_0x57443d){const _0x2f1d90=function(_0x59f1af){while(--_0x59f1af){_0x54ff40['push'](_0x54ff40['shift']());}};_0x2f1d90(++_0x57443d);}(_0x5744,0x1c9));const _0x2f1d=function(_0x54ff40,_0x57443d){_0x54ff40=_0x54ff40-0x0;let _0x2f1d90=_0x5744[_0x54ff40];return _0x2f1d90;};import{ContextPlugin as _0x5909f7,Context as _0x51d3b5}from'ckeditor5/src/core';import _0x4e2c64 from'./annotationsuis';import _0x27184f from'./sidebar';import _0x2f641a from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x15979e,BodyCollection as _0x1556b6}from'ckeditor5/src/ui';import{CKEditorError as _0x2102b8,DomEmitterMixin as _0x214f0b,keyCodes as _0x3dd241,Collection as _0x582851}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1f7d37}from'lodash-es';import _0x4c6b86 from'./editorannotations';export default class s extends _0x5909f7{static get[_0x2f1d('0x0')](){return[_0x27184f,_0x4e2c64];}static get[_0x2f1d('0xc')](){return _0x2f1d('0x26');}constructor(_0x26e652){super(_0x26e652),this['isAttached']=!0x1,this[_0x2f1d('0x41')]=new Set(),this[_0x2f1d('0x37')]=Object['create'](_0x214f0b),this[_0x2f1d('0x2a')]=new Map(),this[_0x2f1d('0x46')]('activeAnnotation',null),this['annotations']=null,this[_0x2f1d('0x2f')]=[],this['_editorAnnotations']=new _0x582851(),this[_0x2f1d('0x29')]=_0x1f7d37(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x2f1d('0x12')](){this[_0x2f1d('0x9')][_0x2f1d('0xa')]['get'](_0x4e2c64)[_0x2f1d('0x54')]('narrowSidebar',this),this[_0x2f1d('0x4b')]=new _0x1556b6(this[_0x2f1d('0x9')]['locale']),this[_0x2f1d('0x4a')]=new _0x15979e(this[_0x2f1d('0x9')][_0x2f1d('0x4f')]),this[_0x2f1d('0x4b')][_0x2f1d('0x3a')](),this[_0x2f1d('0x4b')]['add'](this[_0x2f1d('0x4a')]);}['attach'](_0x5a17d6){this[_0x2f1d('0x16')]=_0x5a17d6;const _0x511826=this[_0x2f1d('0x9')][_0x2f1d('0xa')][_0x2f1d('0x1e')](_0x27184f),_0x320430=this[_0x2f1d('0x4a')];if(_0x511826[_0x2f1d('0x49')]=_0x5a17d6,this[_0x2f1d('0x36')])throw new _0x2102b8('narrowsidebar-attach-already-attached',this);this[_0x2f1d('0x36')]=!0x0,this[_0x2f1d('0x22')](_0x511826,'set:container',()=>{this['detach'](),this['listenTo'](_0x511826,'change:container',_0x575f18=>{_0x575f18[_0x2f1d('0x28')](),this[_0x2f1d('0x3f')](_0x5a17d6);});}),_0x511826[_0x2f1d('0x34')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x22c91a=_0x2f2c2e=>{const _0x3d0ec8=new _0x2f641a(this[_0x2f1d('0x9')][_0x2f1d('0x4f')]);_0x511826['addAnnotation'](_0x2f2c2e,_0x3d0ec8),this['_annotationToNarrowView'][_0x2f1d('0x46')](_0x2f2c2e,_0x3d0ec8),_0x3d0ec8[_0x2f1d('0x2b')](_0x2f1d('0xb'),'annotationType','number')['to'](_0x2f2c2e['view'],'isDirty','type',_0x2f1d('0x11')),_0x3d0ec8['on'](_0x2f1d('0x1a'),()=>{this[_0x2f1d('0x41')][_0x2f1d('0x4e')](),_0x320430[_0x2f1d('0x4d')]['first']!==_0x2f2c2e[_0x2f1d('0x40')]?(this[_0x2f1d('0xf')](_0x2f2c2e),_0x2f2c2e[_0x2f1d('0x40')]['element'][_0x2f1d('0x58')](),this[_0x2f1d('0x23')](_0x2f2c2e)):this[_0x2f1d('0x23')](null);});};for(const _0x138f3b of _0x5a17d6)_0x22c91a(_0x138f3b);this['listenTo'](_0x5a17d6,_0x2f1d('0x38'),(_0x293b9a,_0x2766bf)=>{_0x22c91a(_0x2766bf);}),this[_0x2f1d('0x22')](_0x5a17d6,_0x2f1d('0x43'),(_0x502aa5,_0x464fd4,_0x41eb81)=>{this['_annotationToNarrowView']['get'](_0x464fd4)['destroy'](),this[_0x2f1d('0x2a')][_0x2f1d('0x51')](_0x464fd4),_0x511826[_0x2f1d('0x4c')]({'removedAnnotation':_0x464fd4,'previousAnnotation':_0x5a17d6['get'](_0x41eb81-0x1),'nextAnnotation':_0x5a17d6[_0x2f1d('0x1e')](_0x41eb81+0x1)}),_0x464fd4===this[_0x2f1d('0x3d')]&&this[_0x2f1d('0x23')](null);},{'priority':_0x2f1d('0x10')}),this['listenTo'](_0x5a17d6,_0x2f1d('0x58'),(_0x2f5c18,_0x52e10a)=>{this['setActiveAnnotation'](_0x52e10a);}),this[_0x2f1d('0x22')](_0x5a17d6,_0x2f1d('0x2e'),()=>{this[_0x2f1d('0x23')](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x5ef3a,_0x4b3aaa)=>{_0x4b3aaa['keyCode']===_0x3dd241[_0x2f1d('0x39')]&&_0x320430[_0x2f1d('0x35')]&&(this[_0x2f1d('0x41')][_0x2f1d('0x38')](_0x320430[_0x2f1d('0x4d')][_0x2f1d('0x1b')]),this[_0x2f1d('0xe')](),_0x4b3aaa[_0x2f1d('0x25')](),_0x4b3aaa['preventDefault']());}),this['_domEmitter'][_0x2f1d('0x22')](document,_0x2f1d('0x1'),(_0x51a5d9,_0x63d0d4)=>{const _0x4a1570=_0x63d0d4['target'];_0x320430['isVisible']&&_0x320430[_0x2f1d('0x47')][_0x2f1d('0x4')](_0x4a1570)||_0x511826[_0x2f1d('0x40')][_0x2f1d('0x47')][_0x2f1d('0x4')](_0x4a1570)||_0x51a5d9[_0x2f1d('0x6')]||(this[_0x2f1d('0x41')][_0x2f1d('0x4e')](),this[_0x2f1d('0xe')](),this[_0x2f1d('0x23')](null));});const _0x415ff9=this[_0x2f1d('0x9')]instanceof _0x51d3b5?this['context'][_0x2f1d('0x33')]:new _0x582851([this[_0x2f1d('0x9')]]);for(const _0x532e11 of _0x415ff9)this[_0x2f1d('0x3')](_0x532e11);this[_0x2f1d('0x22')](_0x415ff9,_0x2f1d('0x38'),(_0x45125d,_0x379a93)=>{this[_0x2f1d('0x22')](_0x379a93,'ready',()=>{this[_0x2f1d('0x3')](_0x379a93);});}),this[_0x2f1d('0x22')](_0x415ff9,_0x2f1d('0x43'),(_0x3a167f,_0x306b08)=>{_0x306b08[_0x2f1d('0xa')][_0x2f1d('0x7')](_0x2f1d('0x20'))&&this[_0x2f1d('0x18')](_0x306b08['plugins']['get'](_0x2f1d('0x20')));}),window[_0x2f1d('0x1f')](_0x2f1d('0x3b'),this[_0x2f1d('0x29')]),this[_0x2f1d('0x15')]();}['setActiveAnnotation'](_0x92a78d){if(_0x92a78d===this['activeAnnotation'])return;const _0x56ec17=this[_0x2f1d('0x9')][_0x2f1d('0xa')][_0x2f1d('0x1e')](_0x27184f);if(_0x56ec17[_0x2f1d('0x24')]({'blurredAnnotation':this[_0x2f1d('0x3d')],'activatedAnnotation':_0x92a78d,'disableAnimationOnActivatedAnnotation':!0x0}),_0x92a78d)_0x56ec17['getSidebarItemView'](_0x92a78d)?this[_0x2f1d('0xf')](_0x92a78d):this['_hideBalloon']();else this[_0x2f1d('0xe')]();this[_0x2f1d('0x3d')]=_0x92a78d;}[_0x2f1d('0x13')](){if(!this['isAttached'])throw new _0x2102b8(_0x2f1d('0x2c'),this);this[_0x2f1d('0x23')](null);const _0x34ae8f=this[_0x2f1d('0x9')][_0x2f1d('0xa')]['get'](_0x27184f);this[_0x2f1d('0xe')](),Array[_0x2f1d('0x55')](this[_0x2f1d('0x2a')][_0x2f1d('0x42')](),_0x49f87e=>_0x49f87e[_0x2f1d('0x19')]()),this[_0x2f1d('0x2a')][_0x2f1d('0x4e')](),_0x34ae8f[_0x2f1d('0x17')](this[_0x2f1d('0x16')]),this[_0x2f1d('0x8')](),this[_0x2f1d('0x37')][_0x2f1d('0x8')](),this[_0x2f1d('0x9')]instanceof _0x51d3b5&&this[_0x2f1d('0x8')](this[_0x2f1d('0x9')][_0x2f1d('0x33')]);for(const _0x7b7c91 of Array[_0x2f1d('0x55')](this[_0x2f1d('0x32')]))this[_0x2f1d('0x18')](_0x7b7c91);window[_0x2f1d('0x2d')](_0x2f1d('0x3b'),this['_refreshPositioningDebounced']),this[_0x2f1d('0x29')][_0x2f1d('0x21')](),this['_selectedAnnotations']=[],this[_0x2f1d('0x36')]=!0x1,this['annotations']=null;}[_0x2f1d('0x19')](){this[_0x2f1d('0x36')]&&this[_0x2f1d('0x13')](),this[_0x2f1d('0x4b')][_0x2f1d('0x56')]();}[_0x2f1d('0x3')](_0x224504){const _0x3af356=_0x224504[_0x2f1d('0xa')][_0x2f1d('0x1e')](_0x4c6b86),_0x220fda=this[_0x2f1d('0x9')][_0x2f1d('0xa')][_0x2f1d('0x1e')](_0x27184f),_0xb0c61b=this[_0x2f1d('0x16')],_0x5c5b52=this['balloonPanelView'],_0x24b15b=()=>{const _0x111c87=_0x3af356[_0x2f1d('0x44')]({'annotations':this['annotations'],'activeAnnotation':this[_0x2f1d('0x3d')]});this[_0x2f1d('0x48')](_0x111c87),this[_0x2f1d('0x23')](_0x111c87[0x0]||null);};this['listenTo'](_0x3af356,_0x2f1d('0x24'),_0x24b15b),this[_0x2f1d('0x22')](_0x3af356,_0x2f1d('0x2e'),(_0x33c4d5,{isAnnotationTracked:_0x315359})=>{this[_0x2f1d('0x3d')]&&_0x315359(this[_0x2f1d('0x3d')])&&(this[_0x2f1d('0x48')]([]),this[_0x2f1d('0x23')](null));}),this[_0x2f1d('0x22')](_0x3af356,_0x2f1d('0x3c'),()=>{this[_0x2f1d('0x29')]();}),this['listenTo'](_0xb0c61b,_0x2f1d('0x2e'),_0x5ebf1e=>{_0x3af356[_0x2f1d('0x27')]()&&_0x5ebf1e[_0x2f1d('0x1d')]();},{'priority':'high'}),this[_0x2f1d('0x22')](this['_domEmitter'],_0x2f1d('0x1'),(_0x29cdcd,_0x18c4ff)=>{const _0x29ed3f=_0x18c4ff[_0x2f1d('0x1c')];_0x5c5b52[_0x2f1d('0x35')]&&_0x5c5b52[_0x2f1d('0x47')]['contains'](_0x29ed3f)||_0x220fda['view'][_0x2f1d('0x47')][_0x2f1d('0x4')](_0x29ed3f)||this['activeAnnotation']&&_0x3af356[_0x2f1d('0x27')]()&&(_0x24b15b(),_0x29cdcd[_0x2f1d('0x6')]=!0x0);},{'priority':_0x2f1d('0x14')}),this['_editorAnnotations']['add'](_0x3af356);}[_0x2f1d('0x18')](_0x4658a6){_0x4658a6&&(this[_0x2f1d('0x8')](_0x4658a6),this[_0x2f1d('0x32')][_0x2f1d('0x43')](_0x4658a6));}['_setSelectedAnnotations'](_0x423cc5){for(const _0x101bd6 of this['_selectedAnnotations'])_0x423cc5['includes'](_0x101bd6)||this[_0x2f1d('0x41')]['delete'](_0x101bd6[_0x2f1d('0x40')]);this['_selectedAnnotations']=_0x423cc5;}['_refreshPositioning'](){const _0x4d25ed=this[_0x2f1d('0x4a')];this[_0x2f1d('0x16')]['refreshPositioning'](),_0x4d25ed['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x3c2bc7){if(this['_manuallyClosedAnnotationViews'][_0x2f1d('0x7')](_0x3c2bc7[_0x2f1d('0x40')]))return;const _0x1f690e=this[_0x2f1d('0x4a')][_0x2f1d('0x4d')][_0x2f1d('0x1b')];_0x1f690e!==_0x3c2bc7[_0x2f1d('0x40')]?(_0x1f690e&&this[_0x2f1d('0x2')](_0x1f690e),this[_0x2f1d('0x52')](_0x3c2bc7[_0x2f1d('0x40')]),this[_0x2f1d('0x4a')]['content']['clear'](),this['balloonPanelView']['content']['add'](_0x3c2bc7[_0x2f1d('0x40')]),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}[_0x2f1d('0x30')](){const _0x154e71=this['balloonPanelView'][_0x2f1d('0x4d')]['first'],_0x34cdc2=_0x154e71&&this['annotations']['getByView'](_0x154e71);if(!_0x34cdc2||!this[_0x2f1d('0x2a')]['has'](_0x34cdc2))return;const _0x1e19be=this[_0x2f1d('0x2a')][_0x2f1d('0x1e')](_0x34cdc2)['element'],_0x5d3339=function(){const _0x3d6945=_0x15979e['defaultPositions'];return[_0x3d6945['southArrowNorthEast'],_0x3d6945['northArrowSouthEast'],_0x3d6945[_0x2f1d('0x50')],_0x3d6945[_0x2f1d('0x57')],_0x3d6945[_0x2f1d('0x3e')],_0x3d6945[_0x2f1d('0x45')]];}();this[_0x2f1d('0x4a')][_0x2f1d('0x31')]({'target':_0x1e19be,'positions':_0x5d3339});}[_0x2f1d('0xe')](){const _0x4d39ee=this[_0x2f1d('0x4a')],_0x264a4f=_0x4d39ee[_0x2f1d('0x4d')]['first'];_0x264a4f&&(this['_detachListeners'](_0x264a4f),_0x4d39ee[_0x2f1d('0x5')](),_0x4d39ee[_0x2f1d('0x4d')][_0x2f1d('0x4e')]());}['_attachListeners'](_0x2f6d82){this[_0x2f1d('0x22')](_0x2f6d82,_0x2f1d('0x53'),()=>this[_0x2f1d('0x30')]()),this[_0x2f1d('0x22')](_0x2f6d82,_0x2f1d('0xd'),(_0x3bc829,_0x521bec)=>{this[_0x2f1d('0x41')][_0x2f1d('0x38')](_0x2f6d82),this[_0x2f1d('0xe')](),_0x521bec();});}[_0x2f1d('0x2')](_0x50aa79){this['stopListening'](_0x50aa79);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2086=['remove','getSidebarItemView','clear','_activeAnnotation','add','last','_recalculateBuffer','_setItemTop','unbind','change:_lastItem','change:bottom','_createSidebarView','_detachFromContainer','sidebar-setcontainer-invalid-element','class','element','_getMaxAvailableTop','config','set','_updateLastItem','addAnnotation','view','locale','bottom','_annotationToSidebarItemView','max','_sidebarItemViewToAnnotation','_alignForBottomChange','_lastItem','container','_alignBeforeItem','push','targetRect','_getItemBefore','object','init','_getTargetTop','bind','_targetTop','stopListening','_destroySidebarItemView','pluginName','_spaceBetweenItems','listenTo','_alignAfterItem','destroy','render','sidebar-attachtocontainer-missing-container','sidebar.container','rearrange','content','get','length','_alignToTargetRect','isAnimationDisabled','nodeType','_annotations','sidebar.preventScrollOutOfView','list','minHeight','_getItemAfter','_recalculate','top','target','getIndex','updateHeight'];(function(_0x5ac84c,_0x208648){const _0x4da252=function(_0x5ac993){while(--_0x5ac993){_0x5ac84c['push'](_0x5ac84c['shift']());}};_0x4da252(++_0x208648);}(_0x2086,0x1e1));const _0x4da2=function(_0x5ac84c,_0x208648){_0x5ac84c=_0x5ac84c-0x0;let _0x4da252=_0x2086[_0x5ac84c];return _0x4da252;};import{ContextPlugin as _0x54dea6}from'ckeditor5/src/core';import{Rect as _0x542b48,CKEditorError as _0x1898d7}from'ckeditor5/src/utils';import _0x56c3cb from'./view/sidebarview';import _0x246641 from'./view/sidebaritemview';export default class z extends _0x54dea6{static get[_0x4da2('0x16')](){return'Sidebar';}constructor(_0x28e997){super(_0x28e997),this[_0x4da2('0x41')](_0x4da2('0x9'),void 0x0),this[_0x4da2('0x2')]=this[_0x4da2('0x3a')](),this[_0x4da2('0x41')](_0x4da2('0xa'),null),this[_0x4da2('0x17')]=0x19,this[_0x4da2('0x7')]=new Map(),this[_0x4da2('0x5')]=new Map(),this['context'][_0x4da2('0x40')]['define'](_0x4da2('0x26'),!0x1),this[_0x4da2('0x25')]=null,this[_0x4da2('0x32')]=null,this[_0x4da2('0x35')]=[];}[_0x4da2('0x10')](){const _0x3161a6=this['context'][_0x4da2('0x40')][_0x4da2('0x20')](_0x4da2('0x1d'));_0x3161a6&&this['setContainer'](_0x3161a6);}['setContainer'](_0x1fe018){if(!y(_0x1fe018))throw new _0x1898d7(_0x4da2('0x3c'));this[_0x4da2('0xa')]=_0x1fe018;}['_attachToContainer']({viewClass:_0x4a4ec7='',spaceBetweenItems:_0x2f610d=0x19}={}){if(!y(this[_0x4da2('0xa')]))throw new _0x1898d7(_0x4da2('0x1c'),this);this[_0x4da2('0xa')]['appendChild'](this[_0x4da2('0x2')][_0x4da2('0x3e')]),this['view'][_0x4da2('0x3d')]=_0x4a4ec7,this[_0x4da2('0x17')]=_0x2f610d;}[_0x4da2('0x1e')]({removedAnnotation:_0x4c0ac7,previousAnnotation:_0x220761,nextAnnotation:_0x578431}){const _0x5ed99b=this['getSidebarItemView'](_0x4c0ac7);this[_0x4da2('0x2')][_0x4da2('0x27')][_0x4da2('0x2f')](_0x5ed99b),this[_0x4da2('0x15')](_0x4c0ac7),_0x220761&&this[_0x4da2('0x22')](this['getSidebarItemView'](_0x220761)),_0x578431&&this['_alignToTargetRect'](this[_0x4da2('0x30')](_0x578431)),this[_0x4da2('0x0')]();}['refresh']({blurredAnnotation:_0x2f87b0,activatedAnnotation:_0x50990e,disableAnimationOnActivatedAnnotation:_0x3d6640}){if(this[_0x4da2('0x32')]=_0x50990e,_0x2f87b0){_0x2f87b0['isActive']=!0x1;const _0x4e61f1=this[_0x4da2('0x30')](_0x2f87b0);_0x4e61f1&&_0x3d6640&&(_0x4e61f1[_0x4da2('0x23')]=!0x1);}if(_0x50990e){const _0x51b48a=this['getSidebarItemView'](_0x50990e);_0x51b48a&&(_0x50990e['isActive']=!0x0,_0x3d6640&&(_0x51b48a['isAnimationDisabled']=!0x0,_0x51b48a['top']+=0x1),this[_0x4da2('0x22')](_0x51b48a));}}[_0x4da2('0x3b')](_0x21eef4){if(this[_0x4da2('0x14')](),this[_0x4da2('0x2')][_0x4da2('0x3e')]['remove'](),_0x21eef4)for(const _0x2d1ed9 of _0x21eef4)this[_0x4da2('0x15')](_0x2d1ed9);this[_0x4da2('0x2')][_0x4da2('0x27')][_0x4da2('0x31')](),this[_0x4da2('0x2')][_0x4da2('0x3d')]='',this[_0x4da2('0x9')]=null;}[_0x4da2('0x1')](_0x25dfba,_0x173986){_0x173986||(_0x173986=_0x25dfba['view']);const _0x1a723b=new _0x246641(this['context'][_0x4da2('0x3')]);this[_0x4da2('0x7')][_0x4da2('0x41')](_0x1a723b,_0x25dfba),this[_0x4da2('0x5')][_0x4da2('0x41')](_0x25dfba,_0x1a723b),_0x1a723b[_0x4da2('0x1f')][_0x4da2('0x33')](_0x173986),this[_0x4da2('0x18')](_0x25dfba[_0x4da2('0x2')],'change:targetRect',(_0x305f70,_0x5d72e5,_0x3ac050)=>{const _0x3035d8=this[_0x4da2('0x11')](_0x25dfba,_0x3ac050);_0x1a723b[_0x4da2('0x13')]!=_0x3035d8&&(_0x1a723b[_0x4da2('0x13')]=_0x3035d8,this['_setItemTop'](_0x1a723b,_0x3035d8));}),this[_0x4da2('0x18')](_0x1a723b,'change:top',()=>{this['_recalculate'](_0x1a723b,'top');}),this['listenTo'](_0x1a723b,_0x4da2('0x39'),()=>{this[_0x4da2('0x2a')](_0x1a723b,'bottom');}),this[_0x4da2('0x22')](_0x1a723b);const _0x5c8e46=this[_0x4da2('0xe')](_0x1a723b);if(_0x5c8e46)this['_alignAfterItem'](_0x5c8e46,_0x1a723b)||this[_0x4da2('0x22')](_0x1a723b);else this[_0x4da2('0x22')](_0x1a723b);return this['_updateLastItem'](),this['view'][_0x4da2('0x27')]['add'](_0x1a723b),_0x1a723b;}['_alignForTopChange'](_0x32b854){if(!_0x32b854[_0x4da2('0x1f')][_0x4da2('0x21')])return;const _0x43b73e=this['_getItemBefore'](_0x32b854);if(!_0x43b73e)return;const _0x538874=this[_0x4da2('0x7')]['get'](_0x43b73e),_0x1bb818=this[_0x4da2('0x32')];_0x1bb818&&_0x1bb818===_0x538874?this['_alignAfterItem'](_0x43b73e,_0x32b854):this['_alignBeforeItem'](_0x32b854,_0x43b73e);}[_0x4da2('0x8')](_0x3b69bf){if(!_0x3b69bf['content'][_0x4da2('0x21')])return;const _0x3c91d2=this['_getItemAfter'](_0x3b69bf);if(!_0x3c91d2)return;const _0x27adaf=this[_0x4da2('0x7')][_0x4da2('0x20')](_0x3c91d2),_0xad26f3=this['context'][_0x4da2('0x40')][_0x4da2('0x20')](_0x4da2('0x26')),_0xd93d2b=this[_0x4da2('0x32')];_0xd93d2b&&_0xd93d2b===_0x27adaf&&_0xad26f3?(this['_alignBeforeItem'](_0x3c91d2,_0x3b69bf),this[_0x4da2('0x19')](_0x3b69bf,_0x3c91d2)):_0xd93d2b&&_0xd93d2b===_0x27adaf?this[_0x4da2('0xb')](_0x3c91d2,_0x3b69bf):this[_0x4da2('0x19')](_0x3b69bf,_0x3c91d2);}['_recalculate'](_0x3dfa10,_0x3f214b){0x0===this[_0x4da2('0x35')][_0x4da2('0x21')]&&setTimeout(()=>{for(const {sidebarItemView:_0x1cf76e,changedProp:_0xae8a00}of this[_0x4da2('0x35')])'top'===_0xae8a00?this['_alignForTopChange'](_0x1cf76e):this[_0x4da2('0x8')](_0x1cf76e);this[_0x4da2('0x35')]=[];},0xa),this[_0x4da2('0x35')][_0x4da2('0xc')]({'sidebarItemView':_0x3dfa10,'changedProp':_0x3f214b});}[_0x4da2('0x30')](_0x5ca43b){return this[_0x4da2('0x5')][_0x4da2('0x20')](_0x5ca43b);}[_0x4da2('0x1a')](){this[_0x4da2('0x2')][_0x4da2('0x1a')]();}[_0x4da2('0x15')](_0x56e060){const _0x452e8d=this['getSidebarItemView'](_0x56e060);this['stopListening'](_0x452e8d),this[_0x4da2('0x14')](_0x56e060[_0x4da2('0x2')]),_0x452e8d[_0x4da2('0x1a')](),this[_0x4da2('0x5')]['delete'](_0x56e060),this['_sidebarItemViewToAnnotation']['delete'](_0x452e8d);}['_createSidebarView'](){const _0x37b1c1=new _0x56c3cb(this['context'][_0x4da2('0x3')]);return _0x37b1c1[_0x4da2('0x1b')](),this['on'](_0x4da2('0x38'),(_0x222b0f,_0x114151,_0x4b0747,_0x5bc73d)=>{_0x5bc73d&&_0x37b1c1[_0x4da2('0x37')](_0x4da2('0x28')),_0x4b0747?_0x37b1c1[_0x4da2('0x12')]('minHeight')['to'](_0x4b0747,_0x4da2('0x4')):_0x37b1c1['minHeight']=null;}),_0x37b1c1;}[_0x4da2('0x0')](){var _0x486a4f;this[_0x4da2('0x9')]=(null===(_0x486a4f=this[_0x4da2('0x25')])||void 0x0===_0x486a4f?void 0x0:_0x486a4f[_0x4da2('0x34')])?this[_0x4da2('0x30')](this[_0x4da2('0x25')]['last']):null;}[_0x4da2('0xe')](_0x959c86){var _0x15ea6d;const _0x37ccf8=this[_0x4da2('0x7')][_0x4da2('0x20')](_0x959c86),_0x2a921c=_0x37ccf8&&(null===(_0x15ea6d=this[_0x4da2('0x25')])||void 0x0===_0x15ea6d?void 0x0:_0x15ea6d[_0x4da2('0x20')](this[_0x4da2('0x25')]['getIndex'](_0x37ccf8)-0x1));return _0x2a921c&&this[_0x4da2('0x30')](_0x2a921c)||null;}[_0x4da2('0x29')](_0x37ceba){var _0x5a5ee4;const _0x32d048=this[_0x4da2('0x7')]['get'](_0x37ceba),_0x457de9=_0x32d048&&(null===(_0x5a5ee4=this[_0x4da2('0x25')])||void 0x0===_0x5a5ee4?void 0x0:_0x5a5ee4[_0x4da2('0x20')](this[_0x4da2('0x25')][_0x4da2('0x2d')](_0x32d048)+0x1));return _0x457de9&&this[_0x4da2('0x30')](_0x457de9)||null;}[_0x4da2('0xb')](_0x150e83,_0x1e2d84){_0x150e83[_0x4da2('0x2e')]();const _0x5164d8=H(_0x1e2d84['bottom']+this[_0x4da2('0x17')],_0x150e83[_0x4da2('0x2b')]);return!!_0x5164d8&&(this[_0x4da2('0x36')](_0x1e2d84,_0x1e2d84[_0x4da2('0x2b')]-_0x5164d8),!0x0);}['_alignAfterItem'](_0x490733,_0x486cc5){_0x490733[_0x4da2('0x2e')]();const _0x46bf45=H(_0x490733[_0x4da2('0x4')]+this['_spaceBetweenItems'],_0x486cc5['top']);return!!_0x46bf45&&(this[_0x4da2('0x36')](_0x486cc5,_0x486cc5[_0x4da2('0x2b')]+_0x46bf45,!0x1),!0x0);}['_alignToTargetRect'](_0x4211af){const _0x579da6=this[_0x4da2('0x7')][_0x4da2('0x20')](_0x4211af);if(!_0x579da6||!_0x579da6[_0x4da2('0x2c')]||!_0x579da6[_0x4da2('0xd')])return;const _0x3beecf=this['_getTargetTop'](_0x579da6,_0x579da6[_0x4da2('0xd')]);this[_0x4da2('0x36')](_0x4211af,_0x3beecf);}[_0x4da2('0x11')](_0x3d034c,_0x5c7875){if(null===_0x5c7875)return 0x0;if(_0x3d034c['target']instanceof _0x542b48)return _0x5c7875['top'];{const _0x3f66ee=new _0x542b48(this[_0x4da2('0x2')][_0x4da2('0x3e')])[_0x4da2('0x2b')];return _0x5c7875[_0x4da2('0x2b')]-_0x3f66ee;}}[_0x4da2('0x36')](_0x213275,_0x99bca6,_0x4776e9=this['context']['config'][_0x4da2('0x20')](_0x4da2('0x26'))){_0x4776e9&&(_0x99bca6=Math['max'](_0x99bca6,this['_getMaxAvailableTop'](_0x213275))),_0x213275['top']=_0x99bca6;}[_0x4da2('0x3f')](_0x1d7c01){let _0x56038e=this[_0x4da2('0xe')](_0x1d7c01),_0x742c6b=0x0;for(;_0x56038e;)_0x56038e[_0x4da2('0x2e')](),_0x742c6b+=this[_0x4da2('0x17')]+_0x56038e['height'],_0x56038e=this[_0x4da2('0xe')](_0x56038e);return _0x742c6b;}}function H(_0xd15b86,_0x1ef334){return Math[_0x4da2('0x6')](_0xd15b86-_0x1ef334,0x0);}function y(_0x4a545a){return null!==_0x4a545a&&_0x4da2('0xf')==typeof _0x4a545a&&0x1===_0x4a545a[_0x4da2('0x24')];}
23
+ const _0x406d=['_annotations','Sidebar','_getMaxAvailableTop','_alignForBottomChange','_detachFromContainer','change:targetRect','destroy','sidebar.container','height','delete','list','change:bottom','_setItemTop','sidebar.preventScrollOutOfView','_attachToContainer','push','nodeType','change:_lastItem','change:top','content','render','container','config','stopListening','isActive','remove','getIndex','_annotationToSidebarItemView','_getTargetTop','top','sidebar-attachtocontainer-missing-container','bottom','_alignToTargetRect','_alignBeforeItem','define','_spaceBetweenItems','setContainer','_getItemAfter','bind','_sidebarItemViewToAnnotation','context','_lastItem','clear','_recalculateBuffer','listenTo','updateHeight','appendChild','class','targetRect','_alignAfterItem','init','max','_updateLastItem','target','object','_targetTop','refresh','addAnnotation','sidebar-setcontainer-invalid-element','minHeight','length','view','set','_getItemBefore','getSidebarItemView','_destroySidebarItemView','_createSidebarView','isAnimationDisabled','element','_recalculate','_activeAnnotation','add','last','get'];(function(_0x24c901,_0x406d96){const _0x3fe832=function(_0x1de6cc){while(--_0x1de6cc){_0x24c901['push'](_0x24c901['shift']());}};_0x3fe832(++_0x406d96);}(_0x406d,0xfe));const _0x3fe8=function(_0x24c901,_0x406d96){_0x24c901=_0x24c901-0x0;let _0x3fe832=_0x406d[_0x24c901];return _0x3fe832;};import{ContextPlugin as _0x5f1b67}from'ckeditor5/src/core';import{Rect as _0x5aaf2c,CKEditorError as _0x192a37}from'ckeditor5/src/utils';import _0x48f658 from'./view/sidebarview';import _0x3dc90f from'./view/sidebaritemview';export default class z extends _0x5f1b67{static get['pluginName'](){return _0x3fe8('0x2b');}constructor(_0x2a0575){super(_0x2a0575),this['set'](_0x3fe8('0x9'),void 0x0),this[_0x3fe8('0x1d')]=this[_0x3fe8('0x22')](),this['set'](_0x3fe8('0x3f'),null),this[_0x3fe8('0x3')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x3fe8('0x45')]=new Map(),this['context'][_0x3fe8('0x40')][_0x3fe8('0x2')](_0x3fe8('0x37'),!0x1),this[_0x3fe8('0x2a')]=null,this[_0x3fe8('0x26')]=null,this[_0x3fe8('0xb')]=[];}[_0x3fe8('0x12')](){const _0x30ecaf=this[_0x3fe8('0x8')]['config'][_0x3fe8('0x29')](_0x3fe8('0x31'));_0x30ecaf&&this[_0x3fe8('0x4')](_0x30ecaf);}[_0x3fe8('0x4')](_0x18fbfa){if(!y(_0x18fbfa))throw new _0x192a37(_0x3fe8('0x1a'));this[_0x3fe8('0x3f')]=_0x18fbfa;}[_0x3fe8('0x38')]({viewClass:_0x514969='',spaceBetweenItems:_0x14dda2=0x19}={}){if(!y(this[_0x3fe8('0x3f')]))throw new _0x192a37(_0x3fe8('0x48'),this);this[_0x3fe8('0x3f')][_0x3fe8('0xe')](this[_0x3fe8('0x1d')][_0x3fe8('0x24')]),this['view'][_0x3fe8('0xf')]=_0x514969,this['_spaceBetweenItems']=_0x14dda2;}['rearrange']({removedAnnotation:_0x3f15a8,previousAnnotation:_0x4bbc6b,nextAnnotation:_0x1cfd48}){const _0x25f571=this[_0x3fe8('0x20')](_0x3f15a8);this['view'][_0x3fe8('0x34')][_0x3fe8('0x43')](_0x25f571),this['_destroySidebarItemView'](_0x3f15a8),_0x4bbc6b&&this[_0x3fe8('0x0')](this[_0x3fe8('0x20')](_0x4bbc6b)),_0x1cfd48&&this[_0x3fe8('0x0')](this[_0x3fe8('0x20')](_0x1cfd48)),this[_0x3fe8('0x14')]();}[_0x3fe8('0x18')]({blurredAnnotation:_0x183548,activatedAnnotation:_0x424a52,disableAnimationOnActivatedAnnotation:_0x2f0900}){if(this[_0x3fe8('0x26')]=_0x424a52,_0x183548){_0x183548[_0x3fe8('0x42')]=!0x1;const _0x4e36b3=this[_0x3fe8('0x20')](_0x183548);_0x4e36b3&&_0x2f0900&&(_0x4e36b3['isAnimationDisabled']=!0x1);}if(_0x424a52){const _0x179bd4=this[_0x3fe8('0x20')](_0x424a52);_0x179bd4&&(_0x424a52[_0x3fe8('0x42')]=!0x0,_0x2f0900&&(_0x179bd4[_0x3fe8('0x23')]=!0x0,_0x179bd4['top']+=0x1),this['_alignToTargetRect'](_0x179bd4));}}[_0x3fe8('0x2e')](_0x5daa7d){if(this[_0x3fe8('0x41')](),this[_0x3fe8('0x1d')]['element'][_0x3fe8('0x43')](),_0x5daa7d)for(const _0x451d37 of _0x5daa7d)this[_0x3fe8('0x21')](_0x451d37);this[_0x3fe8('0x1d')][_0x3fe8('0x34')][_0x3fe8('0xa')](),this[_0x3fe8('0x1d')][_0x3fe8('0xf')]='',this['_lastItem']=null;}[_0x3fe8('0x19')](_0x531c8e,_0x24fa4c){_0x24fa4c||(_0x24fa4c=_0x531c8e[_0x3fe8('0x1d')]);const _0x787ec2=new _0x3dc90f(this['context']['locale']);this[_0x3fe8('0x7')]['set'](_0x787ec2,_0x531c8e),this[_0x3fe8('0x45')][_0x3fe8('0x1e')](_0x531c8e,_0x787ec2),_0x787ec2[_0x3fe8('0x3d')][_0x3fe8('0x27')](_0x24fa4c),this[_0x3fe8('0xc')](_0x531c8e[_0x3fe8('0x1d')],_0x3fe8('0x2f'),(_0x46fedc,_0x57f25e,_0x2a24ae)=>{const _0x2f576e=this[_0x3fe8('0x46')](_0x531c8e,_0x2a24ae);_0x787ec2[_0x3fe8('0x17')]!=_0x2f576e&&(_0x787ec2[_0x3fe8('0x17')]=_0x2f576e,this[_0x3fe8('0x36')](_0x787ec2,_0x2f576e));}),this[_0x3fe8('0xc')](_0x787ec2,_0x3fe8('0x3c'),()=>{this[_0x3fe8('0x25')](_0x787ec2,_0x3fe8('0x47'));}),this['listenTo'](_0x787ec2,_0x3fe8('0x35'),()=>{this['_recalculate'](_0x787ec2,_0x3fe8('0x49'));}),this[_0x3fe8('0x0')](_0x787ec2);const _0x24346a=this[_0x3fe8('0x1f')](_0x787ec2);if(_0x24346a)this[_0x3fe8('0x11')](_0x24346a,_0x787ec2)||this['_alignToTargetRect'](_0x787ec2);else this[_0x3fe8('0x0')](_0x787ec2);return this['_updateLastItem'](),this[_0x3fe8('0x1d')][_0x3fe8('0x34')][_0x3fe8('0x27')](_0x787ec2),_0x787ec2;}['_alignForTopChange'](_0x4ca901){if(!_0x4ca901[_0x3fe8('0x3d')]['length'])return;const _0x59c1a8=this[_0x3fe8('0x1f')](_0x4ca901);if(!_0x59c1a8)return;const _0x2c291d=this[_0x3fe8('0x7')][_0x3fe8('0x29')](_0x59c1a8),_0x1bee63=this[_0x3fe8('0x26')];_0x1bee63&&_0x1bee63===_0x2c291d?this[_0x3fe8('0x11')](_0x59c1a8,_0x4ca901):this[_0x3fe8('0x1')](_0x4ca901,_0x59c1a8);}[_0x3fe8('0x2d')](_0x58beeb){if(!_0x58beeb[_0x3fe8('0x3d')][_0x3fe8('0x1c')])return;const _0x3d5721=this['_getItemAfter'](_0x58beeb);if(!_0x3d5721)return;const _0x145da8=this['_sidebarItemViewToAnnotation'][_0x3fe8('0x29')](_0x3d5721),_0x2ffb30=this[_0x3fe8('0x8')][_0x3fe8('0x40')][_0x3fe8('0x29')](_0x3fe8('0x37')),_0x27c41c=this[_0x3fe8('0x26')];_0x27c41c&&_0x27c41c===_0x145da8&&_0x2ffb30?(this[_0x3fe8('0x1')](_0x3d5721,_0x58beeb),this[_0x3fe8('0x11')](_0x58beeb,_0x3d5721)):_0x27c41c&&_0x27c41c===_0x145da8?this[_0x3fe8('0x1')](_0x3d5721,_0x58beeb):this[_0x3fe8('0x11')](_0x58beeb,_0x3d5721);}[_0x3fe8('0x25')](_0x1d3400,_0x1f9078){0x0===this['_recalculateBuffer'][_0x3fe8('0x1c')]&&setTimeout(()=>{for(const {sidebarItemView:_0x3d77d3,changedProp:_0x414ca2}of this[_0x3fe8('0xb')])_0x3fe8('0x47')===_0x414ca2?this['_alignForTopChange'](_0x3d77d3):this[_0x3fe8('0x2d')](_0x3d77d3);this[_0x3fe8('0xb')]=[];},0xa),this['_recalculateBuffer'][_0x3fe8('0x39')]({'sidebarItemView':_0x1d3400,'changedProp':_0x1f9078});}[_0x3fe8('0x20')](_0x462085){return this['_annotationToSidebarItemView']['get'](_0x462085);}['destroy'](){this[_0x3fe8('0x1d')][_0x3fe8('0x30')]();}[_0x3fe8('0x21')](_0x40ec82){const _0x110869=this[_0x3fe8('0x20')](_0x40ec82);this[_0x3fe8('0x41')](_0x110869),this[_0x3fe8('0x41')](_0x40ec82[_0x3fe8('0x1d')]),_0x110869[_0x3fe8('0x30')](),this[_0x3fe8('0x45')]['delete'](_0x40ec82),this[_0x3fe8('0x7')][_0x3fe8('0x33')](_0x110869);}['_createSidebarView'](){const _0x275f59=new _0x48f658(this['context']['locale']);return _0x275f59[_0x3fe8('0x3e')](),this['on'](_0x3fe8('0x3b'),(_0x3a3231,_0x176003,_0x204d42,_0x194169)=>{_0x194169&&_0x275f59['unbind'](_0x3fe8('0x1b')),_0x204d42?_0x275f59[_0x3fe8('0x6')](_0x3fe8('0x1b'))['to'](_0x204d42,_0x3fe8('0x49')):_0x275f59['minHeight']=null;}),_0x275f59;}[_0x3fe8('0x14')](){var _0x3dcf8a;this['_lastItem']=(null===(_0x3dcf8a=this[_0x3fe8('0x2a')])||void 0x0===_0x3dcf8a?void 0x0:_0x3dcf8a[_0x3fe8('0x28')])?this['getSidebarItemView'](this[_0x3fe8('0x2a')][_0x3fe8('0x28')]):null;}[_0x3fe8('0x1f')](_0x2e5064){var _0x12c337;const _0x320549=this[_0x3fe8('0x7')]['get'](_0x2e5064),_0x53cafc=_0x320549&&(null===(_0x12c337=this[_0x3fe8('0x2a')])||void 0x0===_0x12c337?void 0x0:_0x12c337[_0x3fe8('0x29')](this[_0x3fe8('0x2a')][_0x3fe8('0x44')](_0x320549)-0x1));return _0x53cafc&&this[_0x3fe8('0x20')](_0x53cafc)||null;}[_0x3fe8('0x5')](_0x22176e){var _0xdc3132;const _0x33aa2c=this[_0x3fe8('0x7')][_0x3fe8('0x29')](_0x22176e),_0x5cd3ec=_0x33aa2c&&(null===(_0xdc3132=this[_0x3fe8('0x2a')])||void 0x0===_0xdc3132?void 0x0:_0xdc3132[_0x3fe8('0x29')](this[_0x3fe8('0x2a')][_0x3fe8('0x44')](_0x33aa2c)+0x1));return _0x5cd3ec&&this[_0x3fe8('0x20')](_0x5cd3ec)||null;}[_0x3fe8('0x1')](_0xecb69e,_0x34f522){_0xecb69e[_0x3fe8('0xd')]();const _0x28b600=H(_0x34f522[_0x3fe8('0x49')]+this[_0x3fe8('0x3')],_0xecb69e[_0x3fe8('0x47')]);return!!_0x28b600&&(this[_0x3fe8('0x36')](_0x34f522,_0x34f522['top']-_0x28b600),!0x0);}[_0x3fe8('0x11')](_0x20b4dc,_0xcc27d7){_0x20b4dc[_0x3fe8('0xd')]();const _0x551cd8=H(_0x20b4dc[_0x3fe8('0x49')]+this[_0x3fe8('0x3')],_0xcc27d7[_0x3fe8('0x47')]);return!!_0x551cd8&&(this[_0x3fe8('0x36')](_0xcc27d7,_0xcc27d7[_0x3fe8('0x47')]+_0x551cd8,!0x1),!0x0);}[_0x3fe8('0x0')](_0x13771d){const _0x46efde=this[_0x3fe8('0x7')][_0x3fe8('0x29')](_0x13771d);if(!_0x46efde||!_0x46efde[_0x3fe8('0x15')]||!_0x46efde[_0x3fe8('0x10')])return;const _0x2ec002=this[_0x3fe8('0x46')](_0x46efde,_0x46efde['targetRect']);this[_0x3fe8('0x36')](_0x13771d,_0x2ec002);}[_0x3fe8('0x46')](_0x58c726,_0x4d2e9b){if(null===_0x4d2e9b)return 0x0;if(_0x58c726[_0x3fe8('0x15')]instanceof _0x5aaf2c)return _0x4d2e9b[_0x3fe8('0x47')];{const _0x1a710f=new _0x5aaf2c(this[_0x3fe8('0x1d')]['element'])[_0x3fe8('0x47')];return _0x4d2e9b[_0x3fe8('0x47')]-_0x1a710f;}}[_0x3fe8('0x36')](_0x3d5912,_0x119d8d,_0x1c5525=this[_0x3fe8('0x8')][_0x3fe8('0x40')][_0x3fe8('0x29')](_0x3fe8('0x37'))){_0x1c5525&&(_0x119d8d=Math[_0x3fe8('0x13')](_0x119d8d,this[_0x3fe8('0x2c')](_0x3d5912))),_0x3d5912[_0x3fe8('0x47')]=_0x119d8d;}[_0x3fe8('0x2c')](_0x5b5697){let _0x2466a6=this[_0x3fe8('0x1f')](_0x5b5697),_0x8c7b0b=0x0;for(;_0x2466a6;)_0x2466a6['updateHeight'](),_0x8c7b0b+=this['_spaceBetweenItems']+_0x2466a6[_0x3fe8('0x32')],_0x2466a6=this[_0x3fe8('0x1f')](_0x2466a6);return _0x8c7b0b;}}function H(_0x4f01bd,_0x3095cb){return Math[_0x3fe8('0x13')](_0x4f01bd-_0x3095cb,0x0);}function y(_0x5bdb46){return null!==_0x5bdb46&&_0x3fe8('0x16')==typeof _0x5bdb46&&0x1===_0x5bdb46[_0x3fe8('0x3a')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e51=['children','set','extendTemplate','annotationType','bindTemplate','...','ck-annotation-counter__badge--','toString','_badge','counterView','span','setTemplate','ck-annotation-counter','isDirty','ck-annotation-counter__badge--edit-mode','bind','ck-annotation-counter__badge','number','add'];(function(_0x46172f,_0x3e51c7){const _0x102f42=function(_0x4e072e){while(--_0x4e072e){_0x46172f['push'](_0x46172f['shift']());}};_0x102f42(++_0x3e51c7);}(_0x3e51,0x18a));const _0x102f=function(_0x46172f,_0x3e51c7){_0x46172f=_0x46172f-0x0;let _0x102f42=_0x3e51[_0x46172f];return _0x102f42;};import{ButtonView as _0x5db566,View as _0x20cc5b}from'ckeditor5/src/ui';import _0x5a2871 from'../../../theme/icons/add-comment.svg';export default class D extends _0x5db566{constructor(_0xece70e){super(_0xece70e);const _0x214f17=this[_0x102f('0x9')];this[_0x102f('0x6')]('isDirty',!0x1),this[_0x102f('0x6')](_0x102f('0x3'),0x0),this[_0x102f('0x1')](_0x102f('0xd'))['to'](this,_0x102f('0x12'),this,_0x102f('0x3'),(_0x1fd57b,_0x62126f)=>_0x1fd57b?_0x102f('0xa'):_0x62126f[_0x102f('0xc')]()),this[_0x102f('0x6')](_0x102f('0x8'),''),this['icon']=_0x5a2871,this[_0x102f('0x7')]({'attributes':{'class':[_0x102f('0x11')]}}),this[_0x102f('0xe')]=new _0x20cc5b(),this[_0x102f('0xe')][_0x102f('0x10')]({'tag':_0x102f('0xf'),'attributes':{'class':[_0x102f('0x2'),_0x214f17['to'](_0x102f('0x8'),_0x1099d0=>_0x102f('0xb')+_0x1099d0),_0x214f17['if'](_0x102f('0x12'),_0x102f('0x0'))]},'children':[{'text':_0x214f17['to']('_badge')}]}),this[_0x102f('0x5')][_0x102f('0x4')](this['counterView']);}}
23
+ const _0xe155=['set','ck-annotation-counter','counterView','add','ck-annotation-counter__badge','toString','isDirty','_badge','bindTemplate','icon','annotationType','number','extendTemplate','ck-annotation-counter__badge--','children'];(function(_0x293ecc,_0xe15550){const _0x38f78c=function(_0x59cde2){while(--_0x59cde2){_0x293ecc['push'](_0x293ecc['shift']());}};_0x38f78c(++_0xe15550);}(_0xe155,0x111));const _0x38f7=function(_0x293ecc,_0xe15550){_0x293ecc=_0x293ecc-0x0;let _0x38f78c=_0xe155[_0x293ecc];return _0x38f78c;};import{ButtonView as _0xd8420d,View as _0xc69b16}from'ckeditor5/src/ui';import _0x20f889 from'../../../theme/icons/add-comment.svg';export default class D extends _0xd8420d{constructor(_0x50b06e){super(_0x50b06e);const _0x1de201=this[_0x38f7('0x5')];this[_0x38f7('0xc')](_0x38f7('0x3'),!0x1),this[_0x38f7('0xc')](_0x38f7('0x8'),0x0),this['bind']('_badge')['to'](this,_0x38f7('0x3'),this,_0x38f7('0x8'),(_0x266e44,_0x5c4f00)=>_0x266e44?'...':_0x5c4f00[_0x38f7('0x2')]()),this[_0x38f7('0xc')]('annotationType',''),this[_0x38f7('0x6')]=_0x20f889,this[_0x38f7('0x9')]({'attributes':{'class':[_0x38f7('0xd')]}}),this[_0x38f7('0xe')]=new _0xc69b16(),this[_0x38f7('0xe')]['setTemplate']({'tag':'span','attributes':{'class':[_0x38f7('0x1'),_0x1de201['to'](_0x38f7('0x7'),_0x5246c8=>_0x38f7('0xa')+_0x5246c8),_0x1de201['if'](_0x38f7('0x3'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1de201['to'](_0x38f7('0x4'))}]}),this[_0x38f7('0xb')][_0x38f7('0x0')](this['counterView']);}}