@ckeditor/ckeditor5-comments 33.0.0 → 34.0.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 (110) hide show
  1. package/README.md +3 -0
  2. package/build/comments.js +2 -2
  3. package/build/translations/bs.js +1 -1
  4. package/build/translations/cs.js +1 -1
  5. package/build/translations/da.js +1 -1
  6. package/build/translations/de-ch.js +1 -1
  7. package/build/translations/de.js +1 -1
  8. package/build/translations/el.js +1 -1
  9. package/build/translations/en-au.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fr.js +1 -1
  13. package/build/translations/gl.js +1 -1
  14. package/build/translations/hi.js +1 -1
  15. package/build/translations/hr.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/jv.js +1 -0
  21. package/build/translations/ko.js +1 -1
  22. package/build/translations/nl.js +1 -1
  23. package/build/translations/no.js +1 -1
  24. package/build/translations/pl.js +1 -1
  25. package/build/translations/pt-br.js +1 -1
  26. package/build/translations/ro.js +1 -1
  27. package/build/translations/ru.js +1 -1
  28. package/build/translations/sk.js +1 -1
  29. package/build/translations/sr-latn.js +1 -1
  30. package/build/translations/sr.js +1 -1
  31. package/build/translations/tk.js +1 -1
  32. package/build/translations/tr.js +1 -1
  33. package/build/translations/ug.js +1 -1
  34. package/build/translations/uk.js +1 -1
  35. package/build/translations/zh-cn.js +1 -1
  36. package/build/translations/zh.js +1 -1
  37. package/lang/contexts.json +0 -3
  38. package/lang/translations/bs.po +0 -12
  39. package/lang/translations/cs.po +0 -12
  40. package/lang/translations/da.po +0 -12
  41. package/lang/translations/de-ch.po +0 -12
  42. package/lang/translations/de.po +0 -12
  43. package/lang/translations/el.po +0 -12
  44. package/lang/translations/en-au.po +0 -12
  45. package/lang/translations/en.po +0 -12
  46. package/lang/translations/es.po +0 -12
  47. package/lang/translations/et.po +0 -12
  48. package/lang/translations/fr.po +0 -12
  49. package/lang/translations/gl.po +0 -12
  50. package/lang/translations/hi.po +0 -12
  51. package/lang/translations/hr.po +0 -12
  52. package/lang/translations/hu.po +0 -12
  53. package/lang/translations/id.po +0 -12
  54. package/lang/translations/it.po +0 -12
  55. package/lang/translations/ja.po +0 -12
  56. package/lang/translations/jv.po +66 -0
  57. package/lang/translations/ko.po +0 -12
  58. package/lang/translations/nl.po +0 -12
  59. package/lang/translations/no.po +0 -12
  60. package/lang/translations/pl.po +0 -12
  61. package/lang/translations/pt-br.po +0 -12
  62. package/lang/translations/ro.po +0 -12
  63. package/lang/translations/ru.po +0 -12
  64. package/lang/translations/sk.po +0 -12
  65. package/lang/translations/sr-latn.po +0 -12
  66. package/lang/translations/sr.po +0 -12
  67. package/lang/translations/tk.po +0 -12
  68. package/lang/translations/tr.po +0 -12
  69. package/lang/translations/ug.po +0 -12
  70. package/lang/translations/uk.po +0 -12
  71. package/lang/translations/zh-cn.po +0 -12
  72. package/lang/translations/zh.po +0 -12
  73. package/package.json +3 -3
  74. package/src/annotations/annotation.js +1 -1
  75. package/src/annotations/annotationcollection.js +1 -1
  76. package/src/annotations/annotations.js +1 -1
  77. package/src/annotations/annotationsuis.js +1 -1
  78. package/src/annotations/editorannotations.js +1 -1
  79. package/src/annotations/inlineannotations.js +1 -1
  80. package/src/annotations/narrowsidebar.js +1 -1
  81. package/src/annotations/sidebar.js +1 -1
  82. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  83. package/src/annotations/view/annotationview.js +1 -1
  84. package/src/annotations/view/sidebaritemview.js +1 -1
  85. package/src/annotations/view/sidebarview.js +1 -1
  86. package/src/annotations/widesidebar.js +1 -1
  87. package/src/comments/addcommentthreadcommand.js +1 -1
  88. package/src/comments/commentsediting.js +1 -1
  89. package/src/comments/commentsrepository.js +1 -1
  90. package/src/comments/commentsui.js +1 -1
  91. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  92. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  93. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  94. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  95. package/src/comments/ui/commentthreadcontroller.js +1 -1
  96. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  97. package/src/comments/ui/view/basecommentview.js +1 -1
  98. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  99. package/src/comments/ui/view/commentcontentview.js +1 -1
  100. package/src/comments/ui/view/commentinputview.js +1 -1
  101. package/src/comments/ui/view/commentslistview.js +1 -1
  102. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  103. package/src/comments/ui/view/commentthreadview.js +1 -1
  104. package/src/comments/ui/view/commentview.js +1 -1
  105. package/src/comments.js +1 -1
  106. package/src/commentsonly.js +1 -1
  107. package/src/utils/common-translations.js +1 -1
  108. package/src/utils/createmutationobserver.js +1 -1
  109. package/src/comments/ui/view/confirmmixin.js +0 -23
  110. package/src/comments/ui/view/confirmview.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1855=['annotation','remove','collection','editing','model','element','push','document','view','plugins','has','change:isFocused','getOrderedSelectedAnnotations','editorannotations-invalid-source-callback','refresh','sort','innerView','range','change:range','directChange','add','from','_dataCollectors','hasDomSelection','map','containsRange','refreshSelectedViews','isCollapsed','addSourceCollector','pluginName','getByInnerView','keys','init','get','editor','isReadOnly','listenTo','selection','delete','_editorAnnotationsData','fire','cancel','set','requires','focusTracker'];(function(_0x362386,_0x1855cd){const _0x3bb80c=function(_0x3f8122){while(--_0x3f8122){_0x362386['push'](_0x362386['shift']());}};_0x3bb80c(++_0x1855cd);}(_0x1855,0x147));const _0x3bb8=function(_0x362386,_0x1855cd){_0x362386=_0x362386-0x0;let _0x3bb80c=_0x1855[_0x362386];return _0x3bb80c;};import{Plugin as _0x558b1d}from'ckeditor5/src/core';import{CKEditorError as _0x227259}from'ckeditor5/src/utils';import{debounce as _0x223d77}from'lodash-es';import _0x564171 from'./annotations';export default class k extends _0x558b1d{static get[_0x3bb8('0x1f')](){return[_0x564171];}static get[_0x3bb8('0x11')](){return'EditorAnnotations';}constructor(_0x42fe20){super(_0x42fe20),this['_dataCollectors']=new Set();}[_0x3bb8('0x14')](){const _0x49110a=this[_0x3bb8('0x16')],_0x1764f6=_0x49110a[_0x3bb8('0x2a')][_0x3bb8('0x15')](_0x564171),_0xa4c2d8=_0x49110a[_0x3bb8('0x25')][_0x3bb8('0x28')]['selection'],_0x1a93c4=_0x223d77(()=>this[_0x3bb8('0xe')](),0xa);_0xa4c2d8['on'](_0x3bb8('0x6'),(_0x3610cb,_0xde067a)=>{_0xde067a[_0x3bb8('0x7')]&&(_0x1a93c4[_0x3bb8('0x1d')](),this[_0x3bb8('0xe')]());}),this[_0x3bb8('0x18')](_0x49110a[_0x3bb8('0x24')][_0x3bb8('0x29')][_0x3bb8('0x28')],'change:isFocused',(_0x2750c7,_0x36f6aa,_0x3b722a)=>{_0x3b722a&&_0x1a93c4();}),this[_0x3bb8('0x18')](_0x49110a['ui']['focusTracker'],_0x3bb8('0x2c'),(_0x1e7787,_0x774f94,_0x2336d9)=>{_0x2336d9||_0x49110a[_0x3bb8('0x17')]||this[_0x3bb8('0x1c')]('blur',{'isAnnotationTracked':_0x178db3=>this[_0x3bb8('0x1b')][_0x3bb8('0x2b')](_0x178db3[_0x3bb8('0x4')])});}),this[_0x3bb8('0x18')](this[_0x3bb8('0x16')]['ui'],'update',()=>this[_0x3bb8('0x1c')]('uiUpdate'));const _0x4d5e3b=new Set();this[_0x3bb8('0x18')](_0x1764f6[_0x3bb8('0x23')],_0x3bb8('0x8'),(_0x443b98,_0x36e805)=>{for(const _0x1a7fcd of this[_0x3bb8('0x1b')][_0x3bb8('0x13')]())if(_0x1a7fcd===_0x36e805['innerView']){_0x49110a['ui'][_0x3bb8('0x20')][_0x3bb8('0x8')](_0x36e805[_0x3bb8('0x29')][_0x3bb8('0x26')]),_0x4d5e3b['add'](_0x36e805['view']);break;}}),this[_0x3bb8('0x18')](_0x1764f6[_0x3bb8('0x23')],_0x3bb8('0x22'),(_0x2bb5c0,_0xe6d3b0)=>{_0x4d5e3b[_0x3bb8('0x2b')](_0xe6d3b0['view'])&&(_0x49110a['ui'][_0x3bb8('0x20')]['remove'](_0xe6d3b0[_0x3bb8('0x29')]['element']),_0x4d5e3b[_0x3bb8('0x1a')](_0xe6d3b0['view']));});}[_0x3bb8('0xb')](){return this[_0x3bb8('0x16')][_0x3bb8('0x24')][_0x3bb8('0x29')]['hasDomSelection'];}[_0x3bb8('0x10')](_0x3d2530){if('function'!=typeof _0x3d2530)throw new _0x227259(_0x3bb8('0x1'));this['_dataCollectors']['add'](_0x3d2530);}[_0x3bb8('0xe')](){this[_0x3bb8('0x1c')](_0x3bb8('0x2'));}[_0x3bb8('0x0')]({activeAnnotation:_0x33fc1e,annotations:_0x4f3856}){const _0x509b7c=[],_0x2c15ac=this[_0x3bb8('0x16')][_0x3bb8('0x25')]['document'][_0x3bb8('0x19')],_0xe565ca=Array[_0x3bb8('0x9')](_0x2c15ac['getRanges']());for(const [_0x713807,_0x196f11]of this[_0x3bb8('0x1b')]){const _0x480e26=_0x241ee1(_0x196f11),_0x1c31fe=_0x4f3856[_0x3bb8('0x12')](_0x713807);_0x480e26&&_0x1c31fe&&_0x509b7c[_0x3bb8('0x27')]({'annotation':_0x1c31fe,'range':_0x480e26});}function _0x241ee1(_0x2c8564){for(const _0x17fd46 of _0x2c8564)for(const _0x42518d of _0xe565ca)if(_0x17fd46[_0x3bb8('0xd')](_0x42518d,!_0x2c15ac[_0x3bb8('0xf')]))return _0x17fd46;return null;}return _0x509b7c[_0x3bb8('0x3')]((_0x3cf163,_0x108144)=>{const _0x12cb56=_0x3cf163['range'],_0x537e79=_0x108144[_0x3bb8('0x5')];if(!_0x12cb56['isEqual'](_0x537e79)){if(_0x12cb56['containsRange'](_0x537e79,!0x0))return 0x1;if(_0x537e79[_0x3bb8('0xd')](_0x12cb56,!0x0))return-0x1;}return _0x3cf163[_0x3bb8('0x21')]==_0x33fc1e?-0x1:_0x108144[_0x3bb8('0x21')]==_0x33fc1e?0x1:0x0;})[_0x3bb8('0xc')](_0x408d4e=>_0x408d4e[_0x3bb8('0x21')]);}get[_0x3bb8('0x1b')](){const _0x685736=new Map();for(const _0x5141e2 of Array[_0x3bb8('0x9')](this[_0x3bb8('0xa')]))for(const [_0x2d8210,_0x25aebf]of _0x5141e2())_0x685736[_0x3bb8('0x1e')](_0x2d8210,_0x25aebf);return _0x685736;}}
23
+ const _0x5d02=['blur','model','init','element','isReadOnly','requires','refresh','_editorAnnotationsData','remove','range','selection','document','annotation','_dataCollectors','change:range','function','fire','listenTo','uiUpdate','update','isEqual','innerView','containsRange','getOrderedSelectedAnnotations','editing','add','getRanges','push','has','change:isFocused','addSourceCollector','view','focusTracker','get','collection','delete','getByInnerView','set','cancel','EditorAnnotations','editorannotations-invalid-source-callback','from','editor','hasDomSelection','refreshSelectedViews'];(function(_0x2d6d48,_0x5d02ef){const _0x703ba7=function(_0x402c49){while(--_0x402c49){_0x2d6d48['push'](_0x2d6d48['shift']());}};_0x703ba7(++_0x5d02ef);}(_0x5d02,0x122));const _0x703b=function(_0x2d6d48,_0x5d02ef){_0x2d6d48=_0x2d6d48-0x0;let _0x703ba7=_0x5d02[_0x2d6d48];return _0x703ba7;};import{Plugin as _0x1a1860}from'ckeditor5/src/core';import{CKEditorError as _0x38bc9a}from'ckeditor5/src/utils';import{debounce as _0x2bee78}from'lodash-es';import _0x1d7938 from'./annotations';export default class k extends _0x1a1860{static get[_0x703b('0x1e')](){return[_0x1d7938];}static get['pluginName'](){return _0x703b('0x13');}constructor(_0x8812db){super(_0x8812db),this['_dataCollectors']=new Set();}[_0x703b('0x1b')](){const _0xf5ec75=this[_0x703b('0x16')],_0x2ac575=_0xf5ec75['plugins'][_0x703b('0xd')](_0x1d7938),_0x2aab64=_0xf5ec75[_0x703b('0x1a')][_0x703b('0x24')][_0x703b('0x23')],_0x232d76=_0x2bee78(()=>this[_0x703b('0x18')](),0xa);_0x2aab64['on'](_0x703b('0x27'),(_0x29d245,_0x11a404)=>{_0x11a404['directChange']&&(_0x232d76[_0x703b('0x12')](),this[_0x703b('0x18')]());}),this[_0x703b('0x2a')](_0xf5ec75[_0x703b('0x4')][_0x703b('0xb')][_0x703b('0x24')],_0x703b('0x9'),(_0x5766a2,_0x46da9f,_0x956afa)=>{_0x956afa&&_0x232d76();}),this[_0x703b('0x2a')](_0xf5ec75['ui'][_0x703b('0xc')],_0x703b('0x9'),(_0x80a00,_0x1d40d5,_0x2dbb1c)=>{_0x2dbb1c||_0xf5ec75[_0x703b('0x1d')]||this['fire'](_0x703b('0x19'),{'isAnnotationTracked':_0x3931c0=>this[_0x703b('0x20')][_0x703b('0x8')](_0x3931c0['innerView'])});}),this[_0x703b('0x2a')](this[_0x703b('0x16')]['ui'],_0x703b('0x2c'),()=>this['fire'](_0x703b('0x2b')));const _0x2814e0=new Set();this[_0x703b('0x2a')](_0x2ac575[_0x703b('0xe')],_0x703b('0x5'),(_0x103755,_0x170573)=>{for(const _0x4a1b02 of this[_0x703b('0x20')]['keys']())if(_0x4a1b02===_0x170573[_0x703b('0x1')]){_0xf5ec75['ui']['focusTracker'][_0x703b('0x5')](_0x170573[_0x703b('0xb')][_0x703b('0x1c')]),_0x2814e0[_0x703b('0x5')](_0x170573['view']);break;}}),this[_0x703b('0x2a')](_0x2ac575['collection'],_0x703b('0x21'),(_0x332075,_0x33f688)=>{_0x2814e0[_0x703b('0x8')](_0x33f688[_0x703b('0xb')])&&(_0xf5ec75['ui'][_0x703b('0xc')]['remove'](_0x33f688[_0x703b('0xb')][_0x703b('0x1c')]),_0x2814e0[_0x703b('0xf')](_0x33f688[_0x703b('0xb')]));});}[_0x703b('0x17')](){return this[_0x703b('0x16')][_0x703b('0x4')][_0x703b('0xb')][_0x703b('0x17')];}[_0x703b('0xa')](_0x255b37){if(_0x703b('0x28')!=typeof _0x255b37)throw new _0x38bc9a(_0x703b('0x14'));this[_0x703b('0x26')][_0x703b('0x5')](_0x255b37);}[_0x703b('0x18')](){this[_0x703b('0x29')](_0x703b('0x1f'));}[_0x703b('0x3')]({activeAnnotation:_0x5066fd,annotations:_0x2ec0b0}){const _0x2ae3aa=[],_0x1b9ff2=this[_0x703b('0x16')][_0x703b('0x1a')][_0x703b('0x24')][_0x703b('0x23')],_0x30e1f4=Array['from'](_0x1b9ff2[_0x703b('0x6')]());for(const [_0x278464,_0x4adb68]of this[_0x703b('0x20')]){const _0x42a665=_0x2e9969(_0x4adb68),_0x395bd0=_0x2ec0b0[_0x703b('0x10')](_0x278464);_0x42a665&&_0x395bd0&&_0x2ae3aa[_0x703b('0x7')]({'annotation':_0x395bd0,'range':_0x42a665});}function _0x2e9969(_0x1d6629){for(const _0x5a1657 of _0x1d6629)for(const _0x41e178 of _0x30e1f4)if(_0x5a1657['containsRange'](_0x41e178,!_0x1b9ff2['isCollapsed']))return _0x5a1657;return null;}return _0x2ae3aa['sort']((_0x38b417,_0xf55f6a)=>{const _0x350387=_0x38b417[_0x703b('0x22')],_0x28bdce=_0xf55f6a['range'];if(!_0x350387[_0x703b('0x0')](_0x28bdce)){if(_0x350387[_0x703b('0x2')](_0x28bdce,!0x0))return 0x1;if(_0x28bdce[_0x703b('0x2')](_0x350387,!0x0))return-0x1;}return _0x38b417['annotation']==_0x5066fd?-0x1:_0xf55f6a[_0x703b('0x25')]==_0x5066fd?0x1:0x0;})['map'](_0x101b65=>_0x101b65[_0x703b('0x25')]);}get[_0x703b('0x20')](){const _0x1d1072=new Map();for(const _0x457536 of Array[_0x703b('0x15')](this[_0x703b('0x26')]))for(const [_0x2307e7,_0xa2c4b7]of _0x457536())_0x1d1072[_0x703b('0x11')](_0x2307e7,_0xa2c4b7);return _0x1d1072;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f89=['requires','pluginName','_selectedAnnotations','EditorAnnotations','attach','set','has','editor','inlineannotations-not-allowed-with-context','context','getSelection','focus','blur','keystrokes','destroy','change:height','setActiveAnnotation','update','inline','clear','editableElement','add','editing','Esc','inlineannotations-attach-already-attached','addObserver','get','_annotations','visibleView','remove','_manuallyClosed','_addedAnnotations','view','register','isAttached','plugins','change:visibleView','hasView','activeAnnotation','document','updatePosition','_setSelectedAnnotations','stopListening','targetRect','getByView','bind','_balloon','_removeAnnotationFromBalloon','focusTracker','selection','refresh','afterInit','InlineAnnotations','_addAnnotationToBalloon','mousedown','isFocused','change:isFocused','inlineannotations-detach-not-attached','switchTo','listenTo','detach','delete','isActive'];(function(_0x54c6cf,_0x4f89b1){const _0x586297=function(_0x533c10){while(--_0x533c10){_0x54c6cf['push'](_0x54c6cf['shift']());}};_0x586297(++_0x4f89b1);}(_0x4f89,0x1c8));const _0x5862=function(_0x54c6cf,_0x4f89b1){_0x54c6cf=_0x54c6cf-0x0;let _0x586297=_0x4f89[_0x54c6cf];return _0x586297;};import{Plugin as _0x128311}from'ckeditor5/src/core';import _0x235bac from'./annotationsuis';import _0x7e1d97 from'./editorannotations';import{ContextualBalloon as _0xe5f3c5}from'ckeditor5/src/ui';import{MouseObserver as _0x5c3f10}from'ckeditor5/src/engine';import{CKEditorError as _0x15c006}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x128311{static get[_0x5862('0x30')](){return[_0x7e1d97,_0xe5f3c5,_0x235bac];}static get[_0x5862('0x31')](){return _0x5862('0x25');}constructor(_0x577613){super(_0x577613),_0x577613[_0x5862('0x7')][_0x5862('0x11')][_0x5862('0xa')](_0x5c3f10),this['isAttached']=!0x1,this[_0x5862('0x35')](_0x5862('0x17'),null),this[_0x5862('0xc')]=null,this[_0x5862('0xf')]=new Set(),this[_0x5862('0x1f')]=_0x577613[_0x5862('0x14')][_0x5862('0xb')](_0xe5f3c5),this['_addedAnnotations']=new Set(),this[_0x5862('0x32')]=[];}['init'](){const _0x5e73fb=this[_0x5862('0x37')]['plugins'][_0x5862('0xb')](_0x235bac);_0x5e73fb[_0x5862('0x39')]===this[_0x5862('0x37')]&&(_0x5e73fb[_0x5862('0x12')](_0x5862('0x3'),this),this[_0x5862('0x37')][_0x5862('0x3d')][_0x5862('0x35')](_0x5862('0x8'),(_0x2ca8d1,_0x35494f)=>{const _0x4c99a7=this[_0x5862('0x1f')];if(this[_0x5862('0x13')]&&_0x4c99a7['visibleView']){const _0x322092=this[_0x5862('0xc')][_0x5862('0x1d')](_0x4c99a7['visibleView']);this[_0x5862('0xf')]['add'](_0x322092),this[_0x5862('0x20')](_0x322092),_0x35494f();}}));}[_0x5862('0x24')](){const _0x59aa7a=this[_0x5862('0x37')][_0x5862('0x14')]['get'](_0x235bac);_0x59aa7a['context']===this[_0x5862('0x37')]&&(_0x59aa7a['hasActive']()||_0x59aa7a[_0x5862('0x2b')]('inline'));}[_0x5862('0x1')](_0x3ef6ec){_0x3ef6ec!==this[_0x5862('0x17')]&&(this['activeAnnotation']&&(this['activeAnnotation'][_0x5862('0x2f')]=!0x1),_0x3ef6ec&&this[_0x5862('0x37')]['ui'][_0x5862('0x21')][_0x5862('0x28')]&&(this[_0x5862('0x26')](_0x3ef6ec,!0x0),_0x3ef6ec[_0x5862('0x2f')]=!0x0),_0x3ef6ec||this[_0x5862('0x1a')]([]),this[_0x5862('0x17')]=_0x3ef6ec);}[_0x5862('0x34')](_0x59d18b){this[_0x5862('0xc')]=_0x59d18b;const _0x5cb023=this[_0x5862('0x37')][_0x5862('0x14')]['get'](_0x235bac),_0x2ac759=this['_balloon'];if(this['isAttached'])throw new _0x15c006(_0x5862('0x9'),this);if(_0x5cb023[_0x5862('0x39')]!==this['editor'])throw new _0x15c006(_0x5862('0x38'),this);const _0x2b8789=this[_0x5862('0x37')][_0x5862('0x14')]['get'](_0x5862('0x33'));this[_0x5862('0x2c')](_0x2b8789,_0x5862('0x23'),function(){const _0x4a679c=_0x2b8789['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x5862('0xc')]});this[_0x5862('0x1a')](_0x4a679c),this['setActiveAnnotation'](_0x4a679c[0x0]||null);}[_0x5862('0x1e')](this)),this[_0x5862('0x2c')](_0x2b8789,_0x5862('0x3c'),(_0x11fc11,{isAnnotationTracked:_0x2a7784})=>{this['activeAnnotation']&&_0x2a7784(this[_0x5862('0x17')])&&(this['_setSelectedAnnotations']([]),this[_0x5862('0x1')](null));}),this[_0x5862('0x2c')](this['editor']['ui'][_0x5862('0x21')],_0x5862('0x29'),(_0x594c2d,_0x22f5dc,_0x350c47)=>{_0x350c47||this[_0x5862('0x1')](null);}),this[_0x5862('0x2c')](_0x59d18b,_0x5862('0xe'),(_0x22a99a,_0x12f404)=>{this['_removeAnnotationFromBalloon'](_0x12f404),_0x12f404===this[_0x5862('0x17')]&&this[_0x5862('0x1')](null);}),this[_0x5862('0x2c')](_0x2ac759,_0x5862('0x15'),(_0x3bf079,_0x4068f2,_0x53ee2d,_0x9fe385)=>{if(_0x9fe385&&this[_0x5862('0x1b')](_0x9fe385),!_0x53ee2d||!_0x59d18b['getByView'](_0x53ee2d))return;const _0x3e7f61=_0x59d18b[_0x5862('0x1d')](_0x53ee2d);this[_0x5862('0x2c')](_0x53ee2d,_0x5862('0x0'),()=>{_0x2ac759[_0x5862('0x19')]();}),this['listenTo'](_0x53ee2d,_0x5862('0x8'),()=>{this[_0x5862('0xf')][_0x5862('0x6')](_0x3e7f61),this[_0x5862('0x20')](_0x3e7f61),this[_0x5862('0x37')][_0x5862('0x7')]['view']['focus']();}),this[_0x5862('0x17')]!==_0x3e7f61&&this[_0x5862('0x1')](_0x3e7f61);}),this[_0x5862('0x2c')](this[_0x5862('0x37')]['ui'],_0x5862('0x2'),()=>{_0x2ac759[_0x5862('0xd')]&&(_0x59d18b['getByView'](_0x2ac759['visibleView'])&&_0x2ac759[_0x5862('0x19')]());}),this['listenTo'](this[_0x5862('0x37')][_0x5862('0x7')][_0x5862('0x11')][_0x5862('0x18')],_0x5862('0x27'),()=>{this['_manuallyClosed'][_0x5862('0x4')]();}),this[_0x5862('0x37')][_0x5862('0x7')]['view'][_0x5862('0x18')][_0x5862('0x22')][_0x5862('0x5')]&&this['editor'][_0x5862('0x7')]['view'][_0x5862('0x3b')](),this[_0x5862('0x13')]=!0x0;}[_0x5862('0x2d')](){if(!this[_0x5862('0x13')])throw new _0x15c006(_0x5862('0x2a'),this);this['setActiveAnnotation'](null);for(const _0x46fe1b of this[_0x5862('0x10')])this[_0x5862('0x20')](_0x46fe1b);this[_0x5862('0x1b')](),this['isAttached']=!0x1;}[_0x5862('0x3e')](){this[_0x5862('0x13')]&&this[_0x5862('0x2d')]();}[_0x5862('0x1a')](_0x6d3ada){const _0x1c9ace=this[_0x5862('0x32')];for(const _0x2500f2 of _0x1c9ace)_0x6d3ada['includes'](_0x2500f2)||this[_0x5862('0xf')][_0x5862('0x2e')](_0x2500f2);for(const _0x264c4e of this[_0x5862('0xc')])_0x6d3ada['includes'](_0x264c4e)||this[_0x5862('0x20')](_0x264c4e);if(this[_0x5862('0x37')]['ui'][_0x5862('0x21')][_0x5862('0x28')])for(const _0x25ae38 of _0x6d3ada)this['_addAnnotationToBalloon'](_0x25ae38);this['_selectedAnnotations']=_0x6d3ada;}[_0x5862('0x26')](_0x4684f9,_0x4acdd7){this['_manuallyClosed']['has'](_0x4684f9)||(this[_0x5862('0x10')][_0x5862('0x36')](_0x4684f9)||this['_balloon'][_0x5862('0x16')](_0x4684f9[_0x5862('0x11')])||(this['_addedAnnotations'][_0x5862('0x6')](_0x4684f9),this['_balloon'][_0x5862('0x6')]({'stackId':_0x4684f9['view']['id'],'view':_0x4684f9[_0x5862('0x11')],'position':{'target':()=>_0x4684f9['target']||_0x4684f9[_0x5862('0x1c')]||document[_0x5862('0x3a')]()['getRangeAt'](0x0)}})),_0x4acdd7&&this[_0x5862('0x1f')]['showStack'](_0x4684f9[_0x5862('0x11')]['id']));}[_0x5862('0x20')](_0x268989){this[_0x5862('0x10')][_0x5862('0x36')](_0x268989)&&this[_0x5862('0x1f')][_0x5862('0x16')](_0x268989[_0x5862('0x11')])&&(this['_addedAnnotations'][_0x5862('0x2e')](_0x268989),this[_0x5862('0x1f')]['remove'](_0x268989['view']));}}
23
+ const _0x2f23=['detach','view','isActive','_selectedAnnotations','change:isFocused','document','afterInit','inline','refresh','_annotations','_addAnnotationToBalloon','visibleView','change:visibleView','requires','InlineAnnotations','inlineannotations-detach-not-attached','clear','_setSelectedAnnotations','editor','get','remove','selection','_manuallyClosed','isAttached','has','getSelection','set','blur','focusTracker','includes','showStack','updatePosition','add','hasView','switchTo','context','editing','delete','isFocused','attach','inlineannotations-attach-already-attached','focus','stopListening','Esc','destroy','_removeAnnotationFromBalloon','getByView','register','activeAnnotation','listenTo','mousedown','_addedAnnotations','pluginName','_balloon','plugins','targetRect','setActiveAnnotation','getOrderedSelectedAnnotations','update','bind','hasActive'];(function(_0x574bcd,_0x2f237){const _0x430660=function(_0xa5f99a){while(--_0xa5f99a){_0x574bcd['push'](_0x574bcd['shift']());}};_0x430660(++_0x2f237);}(_0x2f23,0x1d3));const _0x4306=function(_0x574bcd,_0x2f237){_0x574bcd=_0x574bcd-0x0;let _0x430660=_0x2f23[_0x574bcd];return _0x430660;};import{Plugin as _0x2a0d6f}from'ckeditor5/src/core';import _0x1f7a83 from'./annotationsuis';import _0x18b6ef from'./editorannotations';import{ContextualBalloon as _0x347abb}from'ckeditor5/src/ui';import{MouseObserver as _0x1b8dd5}from'ckeditor5/src/engine';import{CKEditorError as _0x65f77d}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x2a0d6f{static get[_0x4306('0x22')](){return[_0x18b6ef,_0x347abb,_0x1f7a83];}static get[_0x4306('0xc')](){return _0x4306('0x23');}constructor(_0x81dc0d){super(_0x81dc0d),_0x81dc0d[_0x4306('0x39')][_0x4306('0x16')]['addObserver'](_0x1b8dd5),this[_0x4306('0x2c')]=!0x1,this[_0x4306('0x2f')](_0x4306('0x8'),null),this[_0x4306('0x1e')]=null,this[_0x4306('0x2b')]=new Set(),this[_0x4306('0xd')]=_0x81dc0d[_0x4306('0xe')][_0x4306('0x28')](_0x347abb),this[_0x4306('0xb')]=new Set(),this[_0x4306('0x18')]=[];}['init'](){const _0x387daa=this[_0x4306('0x27')]['plugins'][_0x4306('0x28')](_0x1f7a83);_0x387daa['context']===this[_0x4306('0x27')]&&(_0x387daa[_0x4306('0x7')](_0x4306('0x1c'),this),this[_0x4306('0x27')]['keystrokes'][_0x4306('0x2f')](_0x4306('0x3'),(_0x4759e5,_0x50c5d1)=>{const _0x2cb24f=this[_0x4306('0xd')];if(this['isAttached']&&_0x2cb24f[_0x4306('0x20')]){const _0x1ccc79=this[_0x4306('0x1e')][_0x4306('0x6')](_0x2cb24f[_0x4306('0x20')]);this['_manuallyClosed'][_0x4306('0x35')](_0x1ccc79),this['_removeAnnotationFromBalloon'](_0x1ccc79),_0x50c5d1();}}));}[_0x4306('0x1b')](){const _0x5c044b=this[_0x4306('0x27')][_0x4306('0xe')][_0x4306('0x28')](_0x1f7a83);_0x5c044b['context']===this['editor']&&(_0x5c044b[_0x4306('0x14')]()||_0x5c044b[_0x4306('0x37')]('inline'));}['setActiveAnnotation'](_0x3705b7){_0x3705b7!==this[_0x4306('0x8')]&&(this[_0x4306('0x8')]&&(this['activeAnnotation'][_0x4306('0x17')]=!0x1),_0x3705b7&&this[_0x4306('0x27')]['ui'][_0x4306('0x31')][_0x4306('0x3b')]&&(this[_0x4306('0x1f')](_0x3705b7,!0x0),_0x3705b7[_0x4306('0x17')]=!0x0),_0x3705b7||this[_0x4306('0x26')]([]),this[_0x4306('0x8')]=_0x3705b7);}[_0x4306('0x3c')](_0x4311e7){this[_0x4306('0x1e')]=_0x4311e7;const _0x55ff4d=this[_0x4306('0x27')][_0x4306('0xe')][_0x4306('0x28')](_0x1f7a83),_0x19f62e=this[_0x4306('0xd')];if(this[_0x4306('0x2c')])throw new _0x65f77d(_0x4306('0x0'),this);if(_0x55ff4d[_0x4306('0x38')]!==this['editor'])throw new _0x65f77d('inlineannotations-not-allowed-with-context',this);const _0x515239=this[_0x4306('0x27')][_0x4306('0xe')]['get']('EditorAnnotations');this[_0x4306('0x9')](_0x515239,_0x4306('0x1d'),function(){const _0x2c774b=_0x515239[_0x4306('0x11')]({'activeAnnotation':this[_0x4306('0x8')],'annotations':this[_0x4306('0x1e')]});this[_0x4306('0x26')](_0x2c774b),this['setActiveAnnotation'](_0x2c774b[0x0]||null);}[_0x4306('0x13')](this)),this[_0x4306('0x9')](_0x515239,_0x4306('0x30'),(_0x7e4748,{isAnnotationTracked:_0x45b200})=>{this['activeAnnotation']&&_0x45b200(this[_0x4306('0x8')])&&(this[_0x4306('0x26')]([]),this['setActiveAnnotation'](null));}),this[_0x4306('0x9')](this[_0x4306('0x27')]['ui'][_0x4306('0x31')],_0x4306('0x19'),(_0x41d6ee,_0x4efe7c,_0x393394)=>{_0x393394||this[_0x4306('0x10')](null);}),this[_0x4306('0x9')](_0x4311e7,_0x4306('0x29'),(_0x1bb998,_0x4612e9)=>{this[_0x4306('0x5')](_0x4612e9),_0x4612e9===this[_0x4306('0x8')]&&this[_0x4306('0x10')](null);}),this['listenTo'](_0x19f62e,_0x4306('0x21'),(_0x53008f,_0xce8f4,_0xf42d96,_0x2dfecf)=>{if(_0x2dfecf&&this[_0x4306('0x2')](_0x2dfecf),!_0xf42d96||!_0x4311e7[_0x4306('0x6')](_0xf42d96))return;const _0x3c9b6e=_0x4311e7[_0x4306('0x6')](_0xf42d96);this[_0x4306('0x9')](_0xf42d96,'change:height',()=>{_0x19f62e[_0x4306('0x34')]();}),this['listenTo'](_0xf42d96,'Esc',()=>{this[_0x4306('0x2b')][_0x4306('0x35')](_0x3c9b6e),this[_0x4306('0x5')](_0x3c9b6e),this[_0x4306('0x27')]['editing'][_0x4306('0x16')][_0x4306('0x1')]();}),this[_0x4306('0x8')]!==_0x3c9b6e&&this['setActiveAnnotation'](_0x3c9b6e);}),this[_0x4306('0x9')](this[_0x4306('0x27')]['ui'],_0x4306('0x12'),()=>{_0x19f62e[_0x4306('0x20')]&&(_0x4311e7[_0x4306('0x6')](_0x19f62e[_0x4306('0x20')])&&_0x19f62e[_0x4306('0x34')]());}),this[_0x4306('0x9')](this['editor'][_0x4306('0x39')][_0x4306('0x16')][_0x4306('0x1a')],_0x4306('0xa'),()=>{this['_manuallyClosed'][_0x4306('0x25')]();}),this[_0x4306('0x27')][_0x4306('0x39')][_0x4306('0x16')][_0x4306('0x1a')][_0x4306('0x2a')]['editableElement']&&this[_0x4306('0x27')]['editing'][_0x4306('0x16')]['focus'](),this[_0x4306('0x2c')]=!0x0;}['detach'](){if(!this[_0x4306('0x2c')])throw new _0x65f77d(_0x4306('0x24'),this);this[_0x4306('0x10')](null);for(const _0x468cbb of this[_0x4306('0xb')])this['_removeAnnotationFromBalloon'](_0x468cbb);this[_0x4306('0x2')](),this[_0x4306('0x2c')]=!0x1;}[_0x4306('0x4')](){this[_0x4306('0x2c')]&&this[_0x4306('0x15')]();}['_setSelectedAnnotations'](_0x5574df){const _0x304462=this[_0x4306('0x18')];for(const _0x2e4875 of _0x304462)_0x5574df['includes'](_0x2e4875)||this['_manuallyClosed']['delete'](_0x2e4875);for(const _0x240efe of this['_annotations'])_0x5574df[_0x4306('0x32')](_0x240efe)||this['_removeAnnotationFromBalloon'](_0x240efe);if(this[_0x4306('0x27')]['ui'][_0x4306('0x31')][_0x4306('0x3b')])for(const _0x29165f of _0x5574df)this[_0x4306('0x1f')](_0x29165f);this[_0x4306('0x18')]=_0x5574df;}['_addAnnotationToBalloon'](_0x38f435,_0x3e2bc2){this['_manuallyClosed'][_0x4306('0x2d')](_0x38f435)||(this['_addedAnnotations']['has'](_0x38f435)||this['_balloon'][_0x4306('0x36')](_0x38f435[_0x4306('0x16')])||(this[_0x4306('0xb')][_0x4306('0x35')](_0x38f435),this[_0x4306('0xd')]['add']({'stackId':_0x38f435[_0x4306('0x16')]['id'],'view':_0x38f435[_0x4306('0x16')],'position':{'target':()=>_0x38f435['target']||_0x38f435[_0x4306('0xf')]||document[_0x4306('0x2e')]()['getRangeAt'](0x0)}})),_0x3e2bc2&&this['_balloon'][_0x4306('0x33')](_0x38f435[_0x4306('0x16')]['id']));}['_removeAnnotationFromBalloon'](_0x12df3a){this[_0x4306('0xb')][_0x4306('0x2d')](_0x12df3a)&&this[_0x4306('0xd')][_0x4306('0x36')](_0x12df3a[_0x4306('0x16')])&&(this[_0x4306('0xb')][_0x4306('0x3a')](_0x12df3a),this['_balloon'][_0x4306('0x29')](_0x12df3a[_0x4306('0x16')]));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1843=['refreshPositioning','attachToDom','_detachListeners','has','remove','detach','register','keydown','clear','NarrowSidebar','southArrowNorthWest','stopListening','isVisible','contains','unpin','_throttledRefreshPositioning','off','isDirty','preventDefault','_detachFromContainer','focus','_hideBalloon','target','get','element','_selectedAnnotations','listenTo','view','esc','destroy','context','ck-sidebar--narrow','resize','balloonPanelView','activeAnnotation','refresh','_annotations','values','length','high','preventClosingBalloon','setActiveAnnotation','bodyCollection','_attachToContainer','stop','locale','_manuallyClosedAnnotationViews','content','mousedown','northArrowSouthEast','plugins','narrowsidebar-detach-not-attached','cancel','_updateBalloonPosition','_attachListeners','Sidebar','requires','rearrange','blur','hasDomSelection','_refreshPositioning','set','change:container','narrowSidebar','detachFromDom','editors','addEventListener','getByView','pluginName','delete','_domEmitter','_annotationToNarrowView','_destroyEditorAnnotationsIntegration','addAnnotation','init','removeEventListener','first','narrowsidebar-attach-already-attached','attach','change:height','EditorAnnotations','isAttached','create','_showBalloon','_editorAnnotations','_setSelectedAnnotations','keyCode','_integrateWithEditorAnnotations','add','type'];(function(_0x5d929c,_0x184329){const _0xb9784f=function(_0x14f7a3){while(--_0x14f7a3){_0x5d929c['push'](_0x5d929c['shift']());}};_0xb9784f(++_0x184329);}(_0x1843,0x1ed));const _0xb978=function(_0x5d929c,_0x184329){_0x5d929c=_0x5d929c-0x0;let _0xb9784f=_0x1843[_0x5d929c];return _0xb9784f;};import{ContextPlugin as _0x53a403}from'ckeditor5/src/core';import _0x5d07ea from'./annotationsuis';import _0x536bdb from'./sidebar';import _0x220f8b from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4143a6,BodyCollection as _0x529ac2}from'ckeditor5/src/ui';import{CKEditorError as _0x556d90,DomEmitterMixin as _0x559ff9,keyCodes as _0x2d3321,Collection as _0x8692ab}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x33c2a0}from'lodash-es';export default class s extends _0x53a403{static get[_0xb978('0xd')](){return[_0x536bdb,_0x5d07ea];}static get[_0xb978('0x19')](){return _0xb978('0x38');}constructor(_0x29ebfa){super(_0x29ebfa),this['isAttached']=!0x1,this[_0xb978('0x3')]=new Set(),this[_0xb978('0x1b')]=Object[_0xb978('0x27')](_0x559ff9),this[_0xb978('0x1c')]=new Map(),this[_0xb978('0x12')](_0xb978('0x51'),null),this[_0xb978('0x53')]=null,this[_0xb978('0x48')]=[],this[_0xb978('0x29')]=new _0x8692ab(),this['_throttledRefreshPositioning']=_0x33c2a0(()=>{this[_0xb978('0x11')]();},0x190,{'leading':!0x1});}[_0xb978('0x1f')](){this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0x5d07ea)[_0xb978('0x35')](_0xb978('0x14'),this),this[_0xb978('0x59')]=new _0x529ac2(this[_0xb978('0x4d')][_0xb978('0x2')]),this[_0xb978('0x50')]=new _0x4143a6(this[_0xb978('0x4d')][_0xb978('0x2')]),this[_0xb978('0x59')][_0xb978('0x30')](),this['bodyCollection'][_0xb978('0x2d')](this[_0xb978('0x50')]);}[_0xb978('0x23')](_0x33f11c){this['_annotations']=_0x33f11c;const _0xcb87c0=this['context']['plugins'][_0xb978('0x46')](_0x536bdb),_0x577ac6=this[_0xb978('0x50')];if(_0xcb87c0[_0xb978('0x53')]=_0x33f11c,this['isAttached'])throw new _0x556d90(_0xb978('0x22'),this);this[_0xb978('0x26')]=!0x0,this[_0xb978('0x49')](_0xcb87c0,'set:container',()=>{this[_0xb978('0x34')](),this[_0xb978('0x49')](_0xcb87c0,_0xb978('0x13'),_0x5f5ac3=>{_0x5f5ac3[_0xb978('0x3f')](),this[_0xb978('0x23')](_0x33f11c);});}),_0xcb87c0[_0xb978('0x0')]({'viewClass':_0xb978('0x4e'),'spaceBetweenItems':0x5});const _0x2c61db=_0xa88d72=>{const _0x49d563=new _0x220f8b(this[_0xb978('0x4d')][_0xb978('0x2')]);_0xcb87c0[_0xb978('0x1e')](_0xa88d72,_0x49d563),this['_annotationToNarrowView'][_0xb978('0x12')](_0xa88d72,_0x49d563),_0x49d563['bind']('isDirty','annotationType','number')['to'](_0xa88d72[_0xb978('0x4a')],_0xb978('0x40'),_0xb978('0x2e'),_0xb978('0x55')),_0x49d563['on']('execute',()=>{this[_0xb978('0x3')]['clear'](),_0x577ac6[_0xb978('0x4')][_0xb978('0x21')]!==_0xa88d72['view']?(this['_showBalloon'](_0xa88d72),_0xa88d72[_0xb978('0x4a')]['element']['focus'](),this['setActiveAnnotation'](_0xa88d72)):this[_0xb978('0x58')](null);});};for(const _0x3d7012 of _0x33f11c)_0x2c61db(_0x3d7012);this[_0xb978('0x49')](_0x33f11c,'add',(_0x3ce507,_0x17447c)=>{_0x2c61db(_0x17447c);}),this[_0xb978('0x49')](_0x33f11c,_0xb978('0x33'),(_0x1a0860,_0x24fb0e,_0x51f3d9)=>{this['_annotationToNarrowView'][_0xb978('0x46')](_0x24fb0e)['destroy'](),this[_0xb978('0x1c')][_0xb978('0x1a')](_0x24fb0e),_0xcb87c0[_0xb978('0xe')]({'removedAnnotation':_0x24fb0e,'previousAnnotation':_0x33f11c[_0xb978('0x46')](_0x51f3d9-0x1),'nextAnnotation':_0x33f11c[_0xb978('0x46')](_0x51f3d9+0x1)}),_0x24fb0e===this[_0xb978('0x51')]&&this[_0xb978('0x58')](null);},{'priority':'low'}),this[_0xb978('0x49')](_0x33f11c,_0xb978('0x43'),(_0x6062d8,_0x3ca5b8)=>{this[_0xb978('0x58')](_0x3ca5b8);}),this['listenTo'](_0x33f11c,_0xb978('0xf'),()=>{this[_0xb978('0x58')](null);}),this['_domEmitter'][_0xb978('0x49')](document,_0xb978('0x36'),(_0x23cae6,_0x845db4)=>{_0x845db4[_0xb978('0x2b')]===_0x2d3321[_0xb978('0x4b')]&&_0x577ac6[_0xb978('0x3b')]&&(this[_0xb978('0x3')][_0xb978('0x2d')](_0x577ac6[_0xb978('0x4')][_0xb978('0x21')]),this['_hideBalloon'](),_0x845db4['stopPropagation'](),_0x845db4[_0xb978('0x41')]());}),this[_0xb978('0x1b')][_0xb978('0x49')](document,_0xb978('0x5'),(_0x2a8e10,_0x5df01f)=>{const _0x49e25c=_0x5df01f['target'];_0x577ac6[_0xb978('0x3b')]&&_0x577ac6['element'][_0xb978('0x3c')](_0x49e25c)||_0xcb87c0[_0xb978('0x4a')][_0xb978('0x47')][_0xb978('0x3c')](_0x49e25c)||_0x2a8e10[_0xb978('0x57')]||(this[_0xb978('0x3')][_0xb978('0x37')](),this[_0xb978('0x44')](),this[_0xb978('0x58')](null));});const _0x4eb275=this[_0xb978('0x4d')]['editors']?this[_0xb978('0x4d')][_0xb978('0x16')]:new _0x8692ab([this['context']]);for(const _0x181c5b of _0x4eb275)this[_0xb978('0x2c')](_0x181c5b);this[_0xb978('0x49')](_0x4eb275,'add',(_0x5df7ee,_0x2923b4)=>{this['listenTo'](_0x2923b4,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2923b4);});}),this[_0xb978('0x49')](_0x4eb275,_0xb978('0x33'),(_0x62e9c4,_0x4905d2)=>{_0x4905d2[_0xb978('0x7')]['has'](_0xb978('0x25'))&&this[_0xb978('0x1d')](_0x4905d2['plugins'][_0xb978('0x46')](_0xb978('0x25')));}),window[_0xb978('0x17')](_0xb978('0x4f'),this[_0xb978('0x3e')]),this[_0xb978('0x11')]();}[_0xb978('0x58')](_0x1965ea){if(_0x1965ea===this[_0xb978('0x51')])return;const _0x50c019=this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0xb978('0xc'));if(_0x50c019['refresh']({'blurredAnnotation':this[_0xb978('0x51')],'activatedAnnotation':_0x1965ea,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1965ea)_0x50c019['getSidebarItemView'](_0x1965ea)?this['_showBalloon'](_0x1965ea):this[_0xb978('0x44')]();else this[_0xb978('0x44')]();this[_0xb978('0x51')]=_0x1965ea;}[_0xb978('0x34')](){if(!this['isAttached'])throw new _0x556d90(_0xb978('0x8'),this);this['setActiveAnnotation'](null);const _0xa4a826=this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0xb978('0xc'));this[_0xb978('0x44')](),Array['from'](this[_0xb978('0x1c')][_0xb978('0x54')](),_0x4070d7=>_0x4070d7[_0xb978('0x4c')]()),this[_0xb978('0x1c')]['clear'](),_0xa4a826[_0xb978('0x42')](this[_0xb978('0x53')]),this[_0xb978('0x3a')](),this[_0xb978('0x1b')]['stopListening'](),this['stopListening'](this[_0xb978('0x4d')][_0xb978('0x16')]);for(const _0x3569f0 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3569f0);window[_0xb978('0x20')](_0xb978('0x4f'),this[_0xb978('0x3e')]),this[_0xb978('0x3e')][_0xb978('0x9')](),this[_0xb978('0x48')]=[],this[_0xb978('0x26')]=!0x1,this['_annotations']=null;}[_0xb978('0x4c')](){this[_0xb978('0x26')]&&this['detach'](),this[_0xb978('0x59')][_0xb978('0x15')]();}[_0xb978('0x2c')](_0x338d35){const _0x411798=_0x338d35[_0xb978('0x7')][_0xb978('0x46')](_0xb978('0x25')),_0x4220d1=this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0x536bdb),_0x11c8c1=this['_annotations'],_0x2c6c2e=this[_0xb978('0x50')],_0x166a27=()=>{const _0x56ae60=_0x411798['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0xb978('0x51')],'annotations':this[_0xb978('0x53')]});this['_setSelectedAnnotations'](_0x56ae60),this[_0xb978('0x58')](_0x56ae60[0x0]||null);};this[_0xb978('0x49')](_0x411798,_0xb978('0x52'),_0x166a27),this['listenTo'](_0x411798,_0xb978('0xf'),(_0x34e604,{isAnnotationTracked:_0x1add6e})=>{this[_0xb978('0x51')]&&_0x1add6e(this[_0xb978('0x51')])&&(this['_setSelectedAnnotations']([]),this[_0xb978('0x58')](null));}),this[_0xb978('0x49')](_0x411798,'uiUpdate',()=>{this[_0xb978('0x3e')]();}),this[_0xb978('0x49')](_0x11c8c1,'blur',_0x389a21=>{_0x411798[_0xb978('0x10')]()&&_0x389a21[_0xb978('0x1')]();},{'priority':_0xb978('0x56')}),this[_0xb978('0x1b')][_0xb978('0x49')](document,_0xb978('0x5'),(_0xebc7a0,_0x31dd18)=>{const _0x5501fc=_0x31dd18[_0xb978('0x45')];_0x2c6c2e[_0xb978('0x3b')]&&_0x2c6c2e[_0xb978('0x47')][_0xb978('0x3c')](_0x5501fc)||_0x4220d1[_0xb978('0x4a')][_0xb978('0x47')]['contains'](_0x5501fc)||this[_0xb978('0x51')]&&_0x411798['hasDomSelection']()&&(_0x166a27(),_0xebc7a0[_0xb978('0x57')]=!0x0);},{'priority':'high'}),this[_0xb978('0x29')][_0xb978('0x2d')](_0x411798);}['_destroyEditorAnnotationsIntegration'](_0x470ffe){_0x470ffe&&(this[_0xb978('0x3a')](_0x470ffe),this[_0xb978('0x29')]['remove'](_0x470ffe));}[_0xb978('0x2a')](_0x4fd009){for(const _0x4c8721 of this[_0xb978('0x48')])_0x4fd009['includes'](_0x4c8721)||this[_0xb978('0x3')][_0xb978('0x1a')](_0x4c8721[_0xb978('0x4a')]);this[_0xb978('0x48')]=_0x4fd009;}['_refreshPositioning'](){const _0x1583a0=this[_0xb978('0x50')];this[_0xb978('0x53')][_0xb978('0x2f')](),_0x1583a0[_0xb978('0x3b')]&&this['_updateBalloonPosition']();}[_0xb978('0x28')](_0x184ac3){if(this[_0xb978('0x3')][_0xb978('0x32')](_0x184ac3[_0xb978('0x4a')]))return;const _0x355e97=this[_0xb978('0x50')]['content'][_0xb978('0x21')];_0x355e97!==_0x184ac3[_0xb978('0x4a')]?(_0x355e97&&this['_detachListeners'](_0x355e97),this['_attachListeners'](_0x184ac3[_0xb978('0x4a')]),this[_0xb978('0x50')]['content'][_0xb978('0x37')](),this[_0xb978('0x50')][_0xb978('0x4')][_0xb978('0x2d')](_0x184ac3[_0xb978('0x4a')]),this[_0xb978('0xa')]()):this[_0xb978('0xa')]();}[_0xb978('0xa')](){const _0x8a01fc=this[_0xb978('0x50')][_0xb978('0x4')]['first'],_0x4b565b=this['_annotations'][_0xb978('0x18')](_0x8a01fc);if(!this[_0xb978('0x1c')]['has'](_0x4b565b))return;const _0x3b7c77=this[_0xb978('0x1c')]['get'](_0x4b565b)[_0xb978('0x47')],_0x5476b3=function(){const _0x317038=_0x4143a6['defaultPositions'];return[_0x317038['southArrowNorthEast'],_0x317038[_0xb978('0x6')],_0x317038['southArrowNorth'],_0x317038['northArrowSouth'],_0x317038[_0xb978('0x39')],_0x317038['northArrowSouthWest']];}();this[_0xb978('0x50')]['pin']({'target':_0x3b7c77,'positions':_0x5476b3});}['_hideBalloon'](){const _0x26618d=this[_0xb978('0x50')],_0x432bf6=_0x26618d[_0xb978('0x4')][_0xb978('0x21')];_0x432bf6&&(this[_0xb978('0x31')](_0x432bf6),_0x26618d[_0xb978('0x3d')](),_0x26618d['content']['clear']());}[_0xb978('0xb')](_0x1a9f0c){this[_0xb978('0x49')](_0x1a9f0c,_0xb978('0x24'),()=>this[_0xb978('0xa')]()),this['listenTo'](_0x1a9f0c,'Esc',(_0xc64974,_0x4852e0)=>{this[_0xb978('0x3')][_0xb978('0x2d')](_0x1a9f0c),this[_0xb978('0x44')](),_0x4852e0();});}[_0xb978('0x31')](_0x3740d2){this[_0xb978('0x3a')](_0x3740d2);}}
23
+ const _0x5e26=['resize','mousedown','_destroyEditorAnnotationsIntegration','change:container','activeAnnotation','destroy','low','delete','remove','_manuallyClosedAnnotationViews','EditorAnnotations','isVisible','listenTo','includes','hasDomSelection','addEventListener','view','editors','blur','init','northArrowSouthEast','high','setActiveAnnotation','narrowsidebar-attach-already-attached','stopPropagation','bodyCollection','northArrowSouthWest','length','has','_attachListeners','narrowsidebar-detach-not-attached','attach','pluginName','content','create','from','_showBalloon','change:height','stop','_throttledRefreshPositioning','Sidebar','get','refresh','element','number','preventClosingBalloon','rearrange','isAttached','annotationType','addAnnotation','_refreshPositioning','register','defaultPositions','unpin','_domEmitter','preventDefault','balloonPanelView','_editorAnnotations','detach','contains','southArrowNorthWest','attachToDom','pin','getSidebarItemView','_annotationToNarrowView','context','_updateBalloonPosition','plugins','isDirty','locale','refreshPositioning','ready','focus','_annotations','target','_hideBalloon','_detachFromContainer','narrowSidebar','esc','_selectedAnnotations','clear','execute','getByView','ck-sidebar--narrow','add','values','stopListening','_setSelectedAnnotations','bind','type','uiUpdate','keydown','keyCode','_detachListeners','removeEventListener','_integrateWithEditorAnnotations','first'];(function(_0x148a9e,_0x5e2673){const _0x58e5df=function(_0x19e3fe){while(--_0x19e3fe){_0x148a9e['push'](_0x148a9e['shift']());}};_0x58e5df(++_0x5e2673);}(_0x5e26,0x69));const _0x58e5=function(_0x148a9e,_0x5e2673){_0x148a9e=_0x148a9e-0x0;let _0x58e5df=_0x5e26[_0x148a9e];return _0x58e5df;};import{ContextPlugin as _0x313156}from'ckeditor5/src/core';import _0x49def1 from'./annotationsuis';import _0x306749 from'./sidebar';import _0x239eb3 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x23aed9,BodyCollection as _0x21b295}from'ckeditor5/src/ui';import{CKEditorError as _0x19b1a3,DomEmitterMixin as _0x547266,keyCodes as _0x27fc61,Collection as _0x11c168}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x20a860}from'lodash-es';export default class s extends _0x313156{static get['requires'](){return[_0x306749,_0x49def1];}static get[_0x58e5('0x18')](){return'NarrowSidebar';}constructor(_0xc73979){super(_0xc73979),this[_0x58e5('0x27')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x58e5('0x2e')]=Object[_0x58e5('0x1a')](_0x547266),this[_0x58e5('0x38')]=new Map(),this['set'](_0x58e5('0x5d'),null),this[_0x58e5('0x41')]=null,this[_0x58e5('0x47')]=[],this[_0x58e5('0x31')]=new _0x11c168(),this[_0x58e5('0x1f')]=_0x20a860(()=>{this['_refreshPositioning']();},0x190,{'leading':!0x1});}[_0x58e5('0xb')](){this[_0x58e5('0x39')][_0x58e5('0x3b')]['get'](_0x49def1)[_0x58e5('0x2b')](_0x58e5('0x45'),this),this[_0x58e5('0x11')]=new _0x21b295(this[_0x58e5('0x39')][_0x58e5('0x3d')]),this['balloonPanelView']=new _0x23aed9(this['context'][_0x58e5('0x3d')]),this[_0x58e5('0x11')][_0x58e5('0x35')](),this[_0x58e5('0x11')][_0x58e5('0x4c')](this['balloonPanelView']);}['attach'](_0x2034e2){this[_0x58e5('0x41')]=_0x2034e2;const _0x2e4f57=this[_0x58e5('0x39')][_0x58e5('0x3b')][_0x58e5('0x21')](_0x306749),_0x1f506e=this[_0x58e5('0x30')];if(_0x2e4f57[_0x58e5('0x41')]=_0x2034e2,this['isAttached'])throw new _0x19b1a3(_0x58e5('0xf'),this);this[_0x58e5('0x27')]=!0x0,this['listenTo'](_0x2e4f57,'set:container',()=>{this['detach'](),this[_0x58e5('0x4')](_0x2e4f57,_0x58e5('0x5c'),_0x4bd08d=>{_0x4bd08d['off'](),this[_0x58e5('0x17')](_0x2034e2);});}),_0x2e4f57['_attachToContainer']({'viewClass':_0x58e5('0x4b'),'spaceBetweenItems':0x5});const _0x4cb2e8=_0x5660e4=>{const _0x9554b4=new _0x239eb3(this[_0x58e5('0x39')][_0x58e5('0x3d')]);_0x2e4f57[_0x58e5('0x29')](_0x5660e4,_0x9554b4),this['_annotationToNarrowView']['set'](_0x5660e4,_0x9554b4),_0x9554b4[_0x58e5('0x50')](_0x58e5('0x3c'),_0x58e5('0x28'),_0x58e5('0x24'))['to'](_0x5660e4['view'],_0x58e5('0x3c'),_0x58e5('0x51'),_0x58e5('0x13')),_0x9554b4['on'](_0x58e5('0x49'),()=>{this[_0x58e5('0x1')][_0x58e5('0x48')](),_0x1f506e[_0x58e5('0x19')][_0x58e5('0x58')]!==_0x5660e4[_0x58e5('0x8')]?(this[_0x58e5('0x1c')](_0x5660e4),_0x5660e4[_0x58e5('0x8')][_0x58e5('0x23')][_0x58e5('0x40')](),this[_0x58e5('0xe')](_0x5660e4)):this[_0x58e5('0xe')](null);});};for(const _0x218b7c of _0x2034e2)_0x4cb2e8(_0x218b7c);this[_0x58e5('0x4')](_0x2034e2,_0x58e5('0x4c'),(_0x390ce7,_0x210add)=>{_0x4cb2e8(_0x210add);}),this['listenTo'](_0x2034e2,_0x58e5('0x0'),(_0x24708f,_0x1a9d5d,_0x34f655)=>{this[_0x58e5('0x38')][_0x58e5('0x21')](_0x1a9d5d)['destroy'](),this['_annotationToNarrowView'][_0x58e5('0x60')](_0x1a9d5d),_0x2e4f57[_0x58e5('0x26')]({'removedAnnotation':_0x1a9d5d,'previousAnnotation':_0x2034e2[_0x58e5('0x21')](_0x34f655-0x1),'nextAnnotation':_0x2034e2[_0x58e5('0x21')](_0x34f655+0x1)}),_0x1a9d5d===this[_0x58e5('0x5d')]&&this[_0x58e5('0xe')](null);},{'priority':_0x58e5('0x5f')}),this[_0x58e5('0x4')](_0x2034e2,_0x58e5('0x40'),(_0x354a5f,_0x38d1f9)=>{this[_0x58e5('0xe')](_0x38d1f9);}),this[_0x58e5('0x4')](_0x2034e2,'blur',()=>{this[_0x58e5('0xe')](null);}),this['_domEmitter'][_0x58e5('0x4')](document,_0x58e5('0x53'),(_0x46742f,_0x1efee6)=>{_0x1efee6[_0x58e5('0x54')]===_0x27fc61[_0x58e5('0x46')]&&_0x1f506e[_0x58e5('0x3')]&&(this[_0x58e5('0x1')][_0x58e5('0x4c')](_0x1f506e['content'][_0x58e5('0x58')]),this[_0x58e5('0x43')](),_0x1efee6[_0x58e5('0x10')](),_0x1efee6[_0x58e5('0x2f')]());}),this[_0x58e5('0x2e')][_0x58e5('0x4')](document,'mousedown',(_0x4480a5,_0x137be4)=>{const _0x25ac4d=_0x137be4[_0x58e5('0x42')];_0x1f506e['isVisible']&&_0x1f506e['element']['contains'](_0x25ac4d)||_0x2e4f57[_0x58e5('0x8')][_0x58e5('0x23')][_0x58e5('0x33')](_0x25ac4d)||_0x4480a5[_0x58e5('0x25')]||(this[_0x58e5('0x1')][_0x58e5('0x48')](),this['_hideBalloon'](),this[_0x58e5('0xe')](null));});const _0x30be80=this[_0x58e5('0x39')][_0x58e5('0x9')]?this[_0x58e5('0x39')][_0x58e5('0x9')]:new _0x11c168([this[_0x58e5('0x39')]]);for(const _0x534615 of _0x30be80)this['_integrateWithEditorAnnotations'](_0x534615);this[_0x58e5('0x4')](_0x30be80,_0x58e5('0x4c'),(_0x503a66,_0x530f67)=>{this[_0x58e5('0x4')](_0x530f67,_0x58e5('0x3f'),()=>{this[_0x58e5('0x57')](_0x530f67);});}),this[_0x58e5('0x4')](_0x30be80,_0x58e5('0x0'),(_0x1c79a8,_0x3bef02)=>{_0x3bef02[_0x58e5('0x3b')][_0x58e5('0x14')](_0x58e5('0x2'))&&this[_0x58e5('0x5b')](_0x3bef02[_0x58e5('0x3b')][_0x58e5('0x21')](_0x58e5('0x2')));}),window[_0x58e5('0x7')](_0x58e5('0x59'),this[_0x58e5('0x1f')]),this[_0x58e5('0x2a')]();}[_0x58e5('0xe')](_0x384535){if(_0x384535===this[_0x58e5('0x5d')])return;const _0x137bf1=this['context'][_0x58e5('0x3b')]['get']('Sidebar');if(_0x137bf1[_0x58e5('0x22')]({'blurredAnnotation':this[_0x58e5('0x5d')],'activatedAnnotation':_0x384535,'disableAnimationOnActivatedAnnotation':!0x0}),_0x384535)_0x137bf1[_0x58e5('0x37')](_0x384535)?this[_0x58e5('0x1c')](_0x384535):this[_0x58e5('0x43')]();else this['_hideBalloon']();this[_0x58e5('0x5d')]=_0x384535;}[_0x58e5('0x32')](){if(!this[_0x58e5('0x27')])throw new _0x19b1a3(_0x58e5('0x16'),this);this[_0x58e5('0xe')](null);const _0x1c0307=this['context'][_0x58e5('0x3b')][_0x58e5('0x21')](_0x58e5('0x20'));this[_0x58e5('0x43')](),Array['from'](this[_0x58e5('0x38')][_0x58e5('0x4d')](),_0x2f3fcc=>_0x2f3fcc[_0x58e5('0x5e')]()),this['_annotationToNarrowView'][_0x58e5('0x48')](),_0x1c0307[_0x58e5('0x44')](this[_0x58e5('0x41')]),this[_0x58e5('0x4e')](),this[_0x58e5('0x2e')][_0x58e5('0x4e')](),this[_0x58e5('0x4e')](this[_0x58e5('0x39')][_0x58e5('0x9')]);for(const _0x4ba6ef of Array[_0x58e5('0x1b')](this[_0x58e5('0x31')]))this[_0x58e5('0x5b')](_0x4ba6ef);window[_0x58e5('0x56')](_0x58e5('0x59'),this['_throttledRefreshPositioning']),this['_throttledRefreshPositioning']['cancel'](),this[_0x58e5('0x47')]=[],this['isAttached']=!0x1,this[_0x58e5('0x41')]=null;}[_0x58e5('0x5e')](){this['isAttached']&&this[_0x58e5('0x32')](),this['bodyCollection']['detachFromDom']();}[_0x58e5('0x57')](_0x5d5311){const _0x14bca9=_0x5d5311[_0x58e5('0x3b')][_0x58e5('0x21')](_0x58e5('0x2')),_0x705316=this[_0x58e5('0x39')][_0x58e5('0x3b')][_0x58e5('0x21')](_0x306749),_0x15defa=this['_annotations'],_0x1f7ddc=this[_0x58e5('0x30')],_0x298182=()=>{const _0x37ee04=_0x14bca9['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this['_annotations']});this['_setSelectedAnnotations'](_0x37ee04),this[_0x58e5('0xe')](_0x37ee04[0x0]||null);};this[_0x58e5('0x4')](_0x14bca9,'refresh',_0x298182),this[_0x58e5('0x4')](_0x14bca9,'blur',(_0x55767a,{isAnnotationTracked:_0x12774b})=>{this[_0x58e5('0x5d')]&&_0x12774b(this[_0x58e5('0x5d')])&&(this[_0x58e5('0x4f')]([]),this[_0x58e5('0xe')](null));}),this[_0x58e5('0x4')](_0x14bca9,_0x58e5('0x52'),()=>{this[_0x58e5('0x1f')]();}),this[_0x58e5('0x4')](_0x15defa,_0x58e5('0xa'),_0x499a27=>{_0x14bca9[_0x58e5('0x6')]()&&_0x499a27[_0x58e5('0x1e')]();},{'priority':_0x58e5('0xd')}),this[_0x58e5('0x2e')][_0x58e5('0x4')](document,_0x58e5('0x5a'),(_0x34ec50,_0x40b3d6)=>{const _0x34b8fa=_0x40b3d6[_0x58e5('0x42')];_0x1f7ddc[_0x58e5('0x3')]&&_0x1f7ddc[_0x58e5('0x23')]['contains'](_0x34b8fa)||_0x705316[_0x58e5('0x8')][_0x58e5('0x23')][_0x58e5('0x33')](_0x34b8fa)||this[_0x58e5('0x5d')]&&_0x14bca9['hasDomSelection']()&&(_0x298182(),_0x34ec50[_0x58e5('0x25')]=!0x0);},{'priority':_0x58e5('0xd')}),this[_0x58e5('0x31')][_0x58e5('0x4c')](_0x14bca9);}[_0x58e5('0x5b')](_0x4413f8){_0x4413f8&&(this['stopListening'](_0x4413f8),this[_0x58e5('0x31')][_0x58e5('0x0')](_0x4413f8));}['_setSelectedAnnotations'](_0x3b3569){for(const _0x2cb21e of this[_0x58e5('0x47')])_0x3b3569[_0x58e5('0x5')](_0x2cb21e)||this[_0x58e5('0x1')][_0x58e5('0x60')](_0x2cb21e[_0x58e5('0x8')]);this[_0x58e5('0x47')]=_0x3b3569;}[_0x58e5('0x2a')](){const _0x473a23=this[_0x58e5('0x30')];this[_0x58e5('0x41')][_0x58e5('0x3e')](),_0x473a23[_0x58e5('0x3')]&&this[_0x58e5('0x3a')]();}[_0x58e5('0x1c')](_0x52eb46){if(this[_0x58e5('0x1')]['has'](_0x52eb46[_0x58e5('0x8')]))return;const _0x1a5be4=this[_0x58e5('0x30')][_0x58e5('0x19')]['first'];_0x1a5be4!==_0x52eb46[_0x58e5('0x8')]?(_0x1a5be4&&this[_0x58e5('0x55')](_0x1a5be4),this[_0x58e5('0x15')](_0x52eb46[_0x58e5('0x8')]),this[_0x58e5('0x30')][_0x58e5('0x19')][_0x58e5('0x48')](),this[_0x58e5('0x30')][_0x58e5('0x19')][_0x58e5('0x4c')](_0x52eb46[_0x58e5('0x8')]),this[_0x58e5('0x3a')]()):this[_0x58e5('0x3a')]();}[_0x58e5('0x3a')](){const _0x1482fd=this[_0x58e5('0x30')]['content'][_0x58e5('0x58')],_0x58bb63=this[_0x58e5('0x41')][_0x58e5('0x4a')](_0x1482fd);if(!this[_0x58e5('0x38')][_0x58e5('0x14')](_0x58bb63))return;const _0x585b6c=this[_0x58e5('0x38')][_0x58e5('0x21')](_0x58bb63)[_0x58e5('0x23')],_0x40257e=function(){const _0x53e990=_0x23aed9[_0x58e5('0x2c')];return[_0x53e990['southArrowNorthEast'],_0x53e990[_0x58e5('0xc')],_0x53e990['southArrowNorth'],_0x53e990['northArrowSouth'],_0x53e990[_0x58e5('0x34')],_0x53e990[_0x58e5('0x12')]];}();this['balloonPanelView'][_0x58e5('0x36')]({'target':_0x585b6c,'positions':_0x40257e});}['_hideBalloon'](){const _0xb05b2a=this[_0x58e5('0x30')],_0x14f037=_0xb05b2a[_0x58e5('0x19')]['first'];_0x14f037&&(this[_0x58e5('0x55')](_0x14f037),_0xb05b2a[_0x58e5('0x2d')](),_0xb05b2a[_0x58e5('0x19')]['clear']());}['_attachListeners'](_0x7c7e73){this[_0x58e5('0x4')](_0x7c7e73,_0x58e5('0x1d'),()=>this['_updateBalloonPosition']()),this['listenTo'](_0x7c7e73,'Esc',(_0x2105a9,_0x3bd61f)=>{this[_0x58e5('0x1')][_0x58e5('0x4c')](_0x7c7e73),this[_0x58e5('0x43')](),_0x3bd61f();});}[_0x58e5('0x55')](_0x1c3044){this[_0x58e5('0x4e')](_0x1c3044);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5636=['isActive','getSidebarItemView','addAnnotation','_updateLastItem','config','element','bottom','max','minHeight','_sidebarItemViewToAnnotation','locale','_destroySidebarItemView','_annotationToSidebarItemView','getIndex','_targetTop','_getItemAfter','targetRect','_getItemBefore','refresh','change:top','_annotations','sidebar.container','_setItemTop','change:targetRect','unbind','list','height','sidebar-attachtocontainer-missing-container','appendChild','container','pluginName','define','_alignAfterItem','class','remove','destroy','_getTargetTop','target','init','Sidebar','updateHeight','delete','top','add','_alignBeforeItem','_activeAnnotation','sidebar.preventScrollOutOfView','set','stopListening','view','isAnimationDisabled','_spaceBetweenItems','listenTo','clear','get','content','length','_alignToTargetRect','setContainer','context','sidebar-setcontainer-invalid-element'];(function(_0x13c60d,_0x563682){const _0x5e96fe=function(_0x345068){while(--_0x345068){_0x13c60d['push'](_0x13c60d['shift']());}};_0x5e96fe(++_0x563682);}(_0x5636,0x69));const _0x5e96=function(_0x13c60d,_0x563682){_0x13c60d=_0x13c60d-0x0;let _0x5e96fe=_0x5636[_0x13c60d];return _0x5e96fe;};import{ContextPlugin as _0x599806}from'ckeditor5/src/core';import _0x5af177 from'./view/sidebarview';import _0x2f9e08 from'./view/sidebaritemview';import{Rect as _0x300841,CKEditorError as _0x575631}from'ckeditor5/src/utils';import{isElement as _0x4568e7,throttle as _0x5cf3c5}from'lodash-es';export default class b extends _0x599806{static get[_0x5e96('0x2f')](){return _0x5e96('0x38');}constructor(_0x52226b){super(_0x52226b),this[_0x5e96('0x3')]('_lastItem'),this[_0x5e96('0x5')]=this['_createSidebarView'](),this[_0x5e96('0x3')]('container',null),this['_spaceBetweenItems']=0x19,this[_0x5e96('0x1a')]=new Map(),this[_0x5e96('0x1d')]=new Map(),this['context'][_0x5e96('0x15')][_0x5e96('0x30')](_0x5e96('0x2'),!0x1),this['_annotations']=null,this['_activeAnnotation']=null;}[_0x5e96('0x37')](){const _0x1b3d79=this[_0x5e96('0xf')]['config']['get'](_0x5e96('0x26'));_0x1b3d79&&this[_0x5e96('0xe')](_0x1b3d79);}['setContainer'](_0x52b848){if(!_0x4568e7(_0x52b848))throw new _0x575631(_0x5e96('0x10'));this[_0x5e96('0x2e')]=_0x52b848;}['_attachToContainer']({viewClass:_0x3c59b3='',spaceBetweenItems:_0x5f37e3=0x19}={}){if(!_0x4568e7(this[_0x5e96('0x2e')]))throw new _0x575631(_0x5e96('0x2c'),this);this[_0x5e96('0x2e')][_0x5e96('0x2d')](this[_0x5e96('0x5')]['element']),this[_0x5e96('0x5')][_0x5e96('0x32')]=_0x3c59b3,this[_0x5e96('0x7')]=_0x5f37e3;}['rearrange']({removedAnnotation:_0x3cb0f9,previousAnnotation:_0x3b2037,nextAnnotation:_0x496768}){const _0x35f329=this[_0x5e96('0x12')](_0x3cb0f9);this[_0x5e96('0x5')]['list']['remove'](_0x35f329),this[_0x5e96('0x1c')](_0x3cb0f9),_0x3b2037&&this[_0x5e96('0xd')](this[_0x5e96('0x12')](_0x3b2037)),_0x496768&&this[_0x5e96('0xd')](this[_0x5e96('0x12')](_0x496768)),this[_0x5e96('0x14')]();}[_0x5e96('0x23')]({blurredAnnotation:_0x47c201,activatedAnnotation:_0x44fb00,disableAnimationOnActivatedAnnotation:_0x43231b}){if(this[_0x5e96('0x1')]=_0x44fb00,_0x47c201){_0x47c201[_0x5e96('0x11')]=!0x1;const _0x2bd0d0=this[_0x5e96('0x12')](_0x47c201);_0x2bd0d0&&_0x43231b&&(_0x2bd0d0[_0x5e96('0x6')]=!0x1);}if(_0x44fb00){const _0x1d21d3=this[_0x5e96('0x12')](_0x44fb00);_0x1d21d3&&(_0x44fb00['isActive']=!0x0,_0x43231b&&(_0x1d21d3[_0x5e96('0x6')]=!0x0,_0x1d21d3[_0x5e96('0x3b')]+=0x1),this[_0x5e96('0xd')](_0x1d21d3));}}['_detachFromContainer'](_0x4e40af){this[_0x5e96('0x4')](),this[_0x5e96('0x5')][_0x5e96('0x16')][_0x5e96('0x33')]();for(const _0x482e98 of _0x4e40af)this[_0x5e96('0x1c')](_0x482e98);this['view']['list'][_0x5e96('0x9')](),this[_0x5e96('0x5')][_0x5e96('0x32')]='',this['_lastItem']=null;}[_0x5e96('0x13')](_0x4f5944,_0x598cb9){_0x598cb9||(_0x598cb9=_0x4f5944[_0x5e96('0x5')]);const _0x5cddcf=new _0x2f9e08(this['context']['locale']);this[_0x5e96('0x1a')][_0x5e96('0x3')](_0x5cddcf,_0x4f5944),this[_0x5e96('0x1d')]['set'](_0x4f5944,_0x5cddcf),_0x5cddcf[_0x5e96('0xb')][_0x5e96('0x3c')](_0x598cb9),this[_0x5e96('0xd')](_0x5cddcf),this[_0x5e96('0x8')](_0x4f5944[_0x5e96('0x5')],_0x5e96('0x28'),()=>{const _0x2edc12=this[_0x5e96('0x35')](_0x5cddcf);_0x5cddcf[_0x5e96('0x1f')]!=_0x2edc12&&(_0x5cddcf[_0x5e96('0x1f')]=_0x2edc12,this['_setItemTop'](_0x5cddcf,_0x2edc12));}),this[_0x5e96('0x8')](_0x5cddcf,_0x5e96('0x24'),_0x5cf3c5(()=>{if(!_0x5cddcf[_0x5e96('0xb')][_0x5e96('0xc')])return;const _0x2b90b4=this['_getItemBefore'](_0x5cddcf);if(!_0x2b90b4)return;const _0x2e0142=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x2b90b4),_0xab0bc7=this['_activeAnnotation'];_0xab0bc7&&_0xab0bc7===_0x2e0142?this[_0x5e96('0x31')](_0x2b90b4,_0x5cddcf):this['_alignBeforeItem'](_0x5cddcf,_0x2b90b4);},0xa,{'leading':!0x1})),this[_0x5e96('0x8')](_0x5cddcf,'change:bottom',_0x5cf3c5(()=>{if(!_0x5cddcf[_0x5e96('0xb')][_0x5e96('0xc')])return;const _0x4280cc=this[_0x5e96('0x20')](_0x5cddcf);if(!_0x4280cc)return;const _0x500ebe=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x4280cc),_0x3909f1=this[_0x5e96('0xf')][_0x5e96('0x15')][_0x5e96('0xa')]('sidebar.preventScrollOutOfView'),_0x320dae=this[_0x5e96('0x1')];_0x320dae&&_0x320dae===_0x500ebe&&_0x3909f1?(this['_alignBeforeItem'](_0x4280cc,_0x5cddcf),this[_0x5e96('0x31')](_0x5cddcf,_0x4280cc)):_0x320dae&&_0x320dae===_0x500ebe?this[_0x5e96('0x0')](_0x4280cc,_0x5cddcf):this[_0x5e96('0x31')](_0x5cddcf,_0x4280cc);},0xa,{'leading':!0x1}));const _0x21690a=this[_0x5e96('0x22')](_0x5cddcf);if(_0x21690a)this[_0x5e96('0x31')](_0x21690a,_0x5cddcf)||this['_alignToTargetRect'](_0x5cddcf);else this['_alignToTargetRect'](_0x5cddcf);return this['_updateLastItem'](),this[_0x5e96('0x5')][_0x5e96('0x2a')]['add'](_0x5cddcf),_0x5cddcf;}[_0x5e96('0x12')](_0x5fe8c7){return this[_0x5e96('0x1d')][_0x5e96('0xa')](_0x5fe8c7);}[_0x5e96('0x34')](){this['view']['destroy']();}[_0x5e96('0x1c')](_0x54c132){const _0x31451f=this[_0x5e96('0x12')](_0x54c132);this[_0x5e96('0x4')](_0x31451f),this[_0x5e96('0x4')](_0x54c132[_0x5e96('0x5')]),_0x31451f['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x54c132),this[_0x5e96('0x1a')][_0x5e96('0x3a')](_0x31451f);}['_createSidebarView'](){const _0x2f74df=new _0x5af177(this[_0x5e96('0xf')][_0x5e96('0x1b')]);return _0x2f74df['render'](),this['on']('change:_lastItem',(_0x282aec,_0x588038,_0x2534fa,_0x5a0d30)=>{_0x5a0d30&&_0x2f74df[_0x5e96('0x29')](_0x5e96('0x19')),_0x2534fa?_0x2f74df['bind']('minHeight')['to'](_0x2534fa,_0x5e96('0x17')):_0x2f74df[_0x5e96('0x19')]=null;}),_0x2f74df;}[_0x5e96('0x14')](){this['_lastItem']=this[_0x5e96('0x12')](this[_0x5e96('0x25')]['last']);}[_0x5e96('0x22')](_0x49ae64){const _0x19c9cb=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x49ae64),_0x3cfca2=this['_annotations'][_0x5e96('0xa')](this[_0x5e96('0x25')][_0x5e96('0x1e')](_0x19c9cb)-0x1);return _0x3cfca2&&this['getSidebarItemView'](_0x3cfca2);}[_0x5e96('0x20')](_0x447ded){const _0x1d16c1=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x447ded),_0x43a435=this[_0x5e96('0x25')]['get'](this[_0x5e96('0x25')]['getIndex'](_0x1d16c1)+0x1);return _0x43a435&&this[_0x5e96('0x12')](_0x43a435);}[_0x5e96('0x0')](_0x4bd367,_0x3235b8){_0x4bd367[_0x5e96('0x39')]();const _0x1d35be=H(_0x3235b8['bottom']+this['_spaceBetweenItems'],_0x4bd367[_0x5e96('0x3b')]);return!!_0x1d35be&&(this[_0x5e96('0x27')](_0x3235b8,_0x3235b8[_0x5e96('0x3b')]-_0x1d35be),!0x0);}[_0x5e96('0x31')](_0x280a58,_0x18aa2b){_0x280a58[_0x5e96('0x39')]();const _0x16fcea=H(_0x280a58['bottom']+this[_0x5e96('0x7')],_0x18aa2b['top']);return!!_0x16fcea&&(this['_setItemTop'](_0x18aa2b,_0x18aa2b[_0x5e96('0x3b')]+_0x16fcea,!0x1),!0x0);}[_0x5e96('0xd')](_0x573451){const _0x527113=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x573451);if(!_0x527113||!_0x527113[_0x5e96('0x36')])return;const _0x5f463f=this[_0x5e96('0x35')](_0x573451);this[_0x5e96('0x27')](_0x573451,_0x5f463f);}[_0x5e96('0x35')](_0x4ddc80){const _0x29dd81=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x4ddc80);if(null===_0x29dd81['targetRect'])return 0x0;if(_0x29dd81[_0x5e96('0x36')]instanceof _0x300841)return _0x29dd81['targetRect'][_0x5e96('0x3b')];{const _0x1ddb33=new _0x300841(this['view'][_0x5e96('0x16')])[_0x5e96('0x3b')];return _0x29dd81[_0x5e96('0x21')][_0x5e96('0x3b')]-_0x1ddb33;}}[_0x5e96('0x27')](_0x1c9a73,_0x3d4184,_0x5e4c78=this[_0x5e96('0xf')]['config'][_0x5e96('0xa')](_0x5e96('0x2'))){_0x5e4c78&&(_0x3d4184=Math[_0x5e96('0x18')](_0x3d4184,this['_getMaxAvailableTop'](_0x1c9a73))),_0x1c9a73[_0x5e96('0x3b')]=_0x3d4184;}['_getMaxAvailableTop'](_0x14fef2){let _0x239d31=this[_0x5e96('0x22')](_0x14fef2),_0x42054c=0x0;for(;_0x239d31;)_0x239d31[_0x5e96('0x39')](),_0x42054c+=this['_spaceBetweenItems']+_0x239d31[_0x5e96('0x2b')],_0x239d31=this[_0x5e96('0x22')](_0x239d31);return _0x42054c;}}function H(_0x12999a,_0x4dad12){return Math[_0x5e96('0x18')](_0x12999a-_0x4dad12,0x0);}
23
+ const _0x6aa8=['view','_updateLastItem','bind','_sidebarItemViewToAnnotation','refresh','_annotations','container','sidebar.container','isAnimationDisabled','content','_alignAfterItem','getSidebarItemView','context','_getItemAfter','updateHeight','Sidebar','_getTargetTop','top','locale','isActive','_spaceBetweenItems','sidebar.preventScrollOutOfView','get','set','target','unbind','_setItemTop','listenTo','_detachFromContainer','minHeight','appendChild','element','change:top','getIndex','sidebar-setcontainer-invalid-element','stopListening','config','clear','remove','sidebar-attachtocontainer-missing-container','setContainer','bottom','_targetTop','_activeAnnotation','_alignBeforeItem','_alignToTargetRect','max','_destroySidebarItemView','_attachToContainer','init','targetRect','delete','add','_annotationToSidebarItemView','length','destroy','_lastItem','define','change:bottom','_getItemBefore','list','_createSidebarView','_getMaxAvailableTop'];(function(_0x36668f,_0x6aa844){const _0x323597=function(_0x4db177){while(--_0x4db177){_0x36668f['push'](_0x36668f['shift']());}};_0x323597(++_0x6aa844);}(_0x6aa8,0x148));const _0x3235=function(_0x36668f,_0x6aa844){_0x36668f=_0x36668f-0x0;let _0x323597=_0x6aa8[_0x36668f];return _0x323597;};import{ContextPlugin as _0x1fef07}from'ckeditor5/src/core';import _0xdee877 from'./view/sidebarview';import _0x2ac473 from'./view/sidebaritemview';import{Rect as _0x5daed1,CKEditorError as _0xadd2ea}from'ckeditor5/src/utils';import{isElement as _0x1858a1,throttle as _0x3148b1}from'lodash-es';export default class b extends _0x1fef07{static get['pluginName'](){return _0x3235('0x2');}constructor(_0xbd9b9c){super(_0xbd9b9c),this[_0x3235('0xa')]('_lastItem'),this[_0x3235('0x32')]=this['_createSidebarView'](),this[_0x3235('0xa')]('container',null),this[_0x3235('0x7')]=0x19,this[_0x3235('0x35')]=new Map(),this[_0x3235('0x28')]=new Map(),this[_0x3235('0x3e')]['config'][_0x3235('0x2c')](_0x3235('0x8'),!0x1),this['_annotations']=null,this[_0x3235('0x1e')]=null;}[_0x3235('0x24')](){const _0x51826e=this[_0x3235('0x3e')][_0x3235('0x17')][_0x3235('0x9')](_0x3235('0x39'));_0x51826e&&this[_0x3235('0x1b')](_0x51826e);}['setContainer'](_0x3205df){if(!_0x1858a1(_0x3205df))throw new _0xadd2ea(_0x3235('0x15'));this['container']=_0x3205df;}[_0x3235('0x23')]({viewClass:_0x475f80='',spaceBetweenItems:_0x2937d8=0x19}={}){if(!_0x1858a1(this[_0x3235('0x38')]))throw new _0xadd2ea(_0x3235('0x1a'),this);this[_0x3235('0x38')][_0x3235('0x11')](this['view']['element']),this[_0x3235('0x32')]['class']=_0x475f80,this[_0x3235('0x7')]=_0x2937d8;}['rearrange']({removedAnnotation:_0x573a0a,previousAnnotation:_0x2b914f,nextAnnotation:_0x59b599}){const _0xee054b=this['getSidebarItemView'](_0x573a0a);this[_0x3235('0x32')][_0x3235('0x2f')][_0x3235('0x19')](_0xee054b),this['_destroySidebarItemView'](_0x573a0a),_0x2b914f&&this[_0x3235('0x20')](this[_0x3235('0x3d')](_0x2b914f)),_0x59b599&&this[_0x3235('0x20')](this[_0x3235('0x3d')](_0x59b599)),this[_0x3235('0x33')]();}[_0x3235('0x36')]({blurredAnnotation:_0x30ca68,activatedAnnotation:_0x21708b,disableAnimationOnActivatedAnnotation:_0x165f85}){if(this['_activeAnnotation']=_0x21708b,_0x30ca68){_0x30ca68[_0x3235('0x6')]=!0x1;const _0x1560cf=this[_0x3235('0x3d')](_0x30ca68);_0x1560cf&&_0x165f85&&(_0x1560cf['isAnimationDisabled']=!0x1);}if(_0x21708b){const _0x43cf0b=this[_0x3235('0x3d')](_0x21708b);_0x43cf0b&&(_0x21708b[_0x3235('0x6')]=!0x0,_0x165f85&&(_0x43cf0b[_0x3235('0x3a')]=!0x0,_0x43cf0b[_0x3235('0x4')]+=0x1),this[_0x3235('0x20')](_0x43cf0b));}}[_0x3235('0xf')](_0x147c17){this[_0x3235('0x16')](),this[_0x3235('0x32')][_0x3235('0x12')][_0x3235('0x19')]();for(const _0x2d7935 of _0x147c17)this['_destroySidebarItemView'](_0x2d7935);this[_0x3235('0x32')][_0x3235('0x2f')][_0x3235('0x18')](),this[_0x3235('0x32')]['class']='',this[_0x3235('0x2b')]=null;}['addAnnotation'](_0x5dac3f,_0x4bf18c){_0x4bf18c||(_0x4bf18c=_0x5dac3f[_0x3235('0x32')]);const _0x5d8c57=new _0x2ac473(this[_0x3235('0x3e')][_0x3235('0x5')]);this['_sidebarItemViewToAnnotation'][_0x3235('0xa')](_0x5d8c57,_0x5dac3f),this[_0x3235('0x28')][_0x3235('0xa')](_0x5dac3f,_0x5d8c57),_0x5d8c57[_0x3235('0x3b')][_0x3235('0x27')](_0x4bf18c),this[_0x3235('0x20')](_0x5d8c57),this[_0x3235('0xe')](_0x5dac3f[_0x3235('0x32')],'change:targetRect',()=>{const _0x2993d8=this[_0x3235('0x3')](_0x5d8c57);_0x5d8c57[_0x3235('0x1d')]!=_0x2993d8&&(_0x5d8c57[_0x3235('0x1d')]=_0x2993d8,this[_0x3235('0xd')](_0x5d8c57,_0x2993d8));}),this[_0x3235('0xe')](_0x5d8c57,_0x3235('0x13'),_0x3148b1(()=>{if(!_0x5d8c57[_0x3235('0x3b')][_0x3235('0x29')])return;const _0x1943ba=this[_0x3235('0x2e')](_0x5d8c57);if(!_0x1943ba)return;const _0x2bc91c=this[_0x3235('0x35')][_0x3235('0x9')](_0x1943ba),_0x44ef8e=this[_0x3235('0x1e')];_0x44ef8e&&_0x44ef8e===_0x2bc91c?this[_0x3235('0x3c')](_0x1943ba,_0x5d8c57):this[_0x3235('0x1f')](_0x5d8c57,_0x1943ba);},0xa,{'leading':!0x1})),this[_0x3235('0xe')](_0x5d8c57,_0x3235('0x2d'),_0x3148b1(()=>{if(!_0x5d8c57['content'][_0x3235('0x29')])return;const _0x28594a=this[_0x3235('0x0')](_0x5d8c57);if(!_0x28594a)return;const _0x337d2a=this['_sidebarItemViewToAnnotation'][_0x3235('0x9')](_0x28594a),_0x33b2a7=this[_0x3235('0x3e')]['config'][_0x3235('0x9')](_0x3235('0x8')),_0x5b75d5=this['_activeAnnotation'];_0x5b75d5&&_0x5b75d5===_0x337d2a&&_0x33b2a7?(this[_0x3235('0x1f')](_0x28594a,_0x5d8c57),this[_0x3235('0x3c')](_0x5d8c57,_0x28594a)):_0x5b75d5&&_0x5b75d5===_0x337d2a?this[_0x3235('0x1f')](_0x28594a,_0x5d8c57):this[_0x3235('0x3c')](_0x5d8c57,_0x28594a);},0xa,{'leading':!0x1}));const _0x1c8257=this[_0x3235('0x2e')](_0x5d8c57);if(_0x1c8257)this[_0x3235('0x3c')](_0x1c8257,_0x5d8c57)||this['_alignToTargetRect'](_0x5d8c57);else this['_alignToTargetRect'](_0x5d8c57);return this[_0x3235('0x33')](),this['view']['list'][_0x3235('0x27')](_0x5d8c57),_0x5d8c57;}[_0x3235('0x3d')](_0x228598){return this[_0x3235('0x28')][_0x3235('0x9')](_0x228598);}[_0x3235('0x2a')](){this[_0x3235('0x32')][_0x3235('0x2a')]();}[_0x3235('0x22')](_0x3f5415){const _0x32470a=this[_0x3235('0x3d')](_0x3f5415);this[_0x3235('0x16')](_0x32470a),this[_0x3235('0x16')](_0x3f5415[_0x3235('0x32')]),_0x32470a[_0x3235('0x2a')](),this[_0x3235('0x28')]['delete'](_0x3f5415),this['_sidebarItemViewToAnnotation'][_0x3235('0x26')](_0x32470a);}[_0x3235('0x30')](){const _0x256edf=new _0xdee877(this[_0x3235('0x3e')][_0x3235('0x5')]);return _0x256edf['render'](),this['on']('change:_lastItem',(_0x4ad207,_0x3688a0,_0x1edf15,_0x15da7b)=>{_0x15da7b&&_0x256edf[_0x3235('0xc')](_0x3235('0x10')),_0x1edf15?_0x256edf[_0x3235('0x34')](_0x3235('0x10'))['to'](_0x1edf15,_0x3235('0x1c')):_0x256edf['minHeight']=null;}),_0x256edf;}[_0x3235('0x33')](){this[_0x3235('0x2b')]=this['getSidebarItemView'](this[_0x3235('0x37')]['last']);}[_0x3235('0x2e')](_0x2f908a){const _0x3cdc6b=this['_sidebarItemViewToAnnotation']['get'](_0x2f908a),_0x599ff3=this['_annotations'][_0x3235('0x9')](this['_annotations'][_0x3235('0x14')](_0x3cdc6b)-0x1);return _0x599ff3&&this[_0x3235('0x3d')](_0x599ff3);}['_getItemAfter'](_0x2cc8d1){const _0x5cff89=this[_0x3235('0x35')]['get'](_0x2cc8d1),_0x2648ba=this[_0x3235('0x37')]['get'](this[_0x3235('0x37')][_0x3235('0x14')](_0x5cff89)+0x1);return _0x2648ba&&this[_0x3235('0x3d')](_0x2648ba);}[_0x3235('0x1f')](_0x358608,_0x5b65c9){_0x358608['updateHeight']();const _0x298a78=H(_0x5b65c9[_0x3235('0x1c')]+this[_0x3235('0x7')],_0x358608[_0x3235('0x4')]);return!!_0x298a78&&(this[_0x3235('0xd')](_0x5b65c9,_0x5b65c9[_0x3235('0x4')]-_0x298a78),!0x0);}[_0x3235('0x3c')](_0x5673ae,_0x3e5888){_0x5673ae[_0x3235('0x1')]();const _0x10841d=H(_0x5673ae[_0x3235('0x1c')]+this['_spaceBetweenItems'],_0x3e5888[_0x3235('0x4')]);return!!_0x10841d&&(this['_setItemTop'](_0x3e5888,_0x3e5888[_0x3235('0x4')]+_0x10841d,!0x1),!0x0);}[_0x3235('0x20')](_0x23f142){const _0x3a04c2=this[_0x3235('0x35')][_0x3235('0x9')](_0x23f142);if(!_0x3a04c2||!_0x3a04c2[_0x3235('0xb')])return;const _0x596c83=this['_getTargetTop'](_0x23f142);this[_0x3235('0xd')](_0x23f142,_0x596c83);}['_getTargetTop'](_0xc2d715){const _0x29701a=this[_0x3235('0x35')][_0x3235('0x9')](_0xc2d715);if(null===_0x29701a[_0x3235('0x25')])return 0x0;if(_0x29701a[_0x3235('0xb')]instanceof _0x5daed1)return _0x29701a[_0x3235('0x25')][_0x3235('0x4')];{const _0x54d584=new _0x5daed1(this['view'][_0x3235('0x12')])[_0x3235('0x4')];return _0x29701a[_0x3235('0x25')][_0x3235('0x4')]-_0x54d584;}}[_0x3235('0xd')](_0x417629,_0x31890e,_0x5f04dc=this[_0x3235('0x3e')][_0x3235('0x17')][_0x3235('0x9')](_0x3235('0x8'))){_0x5f04dc&&(_0x31890e=Math[_0x3235('0x21')](_0x31890e,this[_0x3235('0x31')](_0x417629))),_0x417629['top']=_0x31890e;}[_0x3235('0x31')](_0x18e052){let _0x8da68c=this[_0x3235('0x2e')](_0x18e052),_0x4ffa46=0x0;for(;_0x8da68c;)_0x8da68c['updateHeight'](),_0x4ffa46+=this[_0x3235('0x7')]+_0x8da68c['height'],_0x8da68c=this[_0x3235('0x2e')](_0x8da68c);return _0x4ffa46;}}function H(_0x57938b,_0x425b67){return Math[_0x3235('0x21')](_0x57938b-_0x425b67,0x0);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x139d=['annotationType','add','setTemplate','ck-annotation-counter','isDirty','_badge','icon','...','ck-annotation-counter__badge','set','ck-annotation-counter__badge--edit-mode','bind','counterView','number','span'];(function(_0x540025,_0x139df4){const _0x4c0511=function(_0x2ae88b){while(--_0x2ae88b){_0x540025['push'](_0x540025['shift']());}};_0x4c0511(++_0x139df4);}(_0x139d,0x1c5));const _0x4c05=function(_0x540025,_0x139df4){_0x540025=_0x540025-0x0;let _0x4c0511=_0x139d[_0x540025];return _0x4c0511;};import{ButtonView as _0x1a1cb7,View as _0x11a9dc}from'ckeditor5/src/ui';import _0x4ecc5d from'../../../theme/icons/add-comment.svg';export default class B extends _0x1a1cb7{constructor(_0x5bbc85){super(_0x5bbc85);const _0x5950b4=this['bindTemplate'];this['set'](_0x4c05('0x1'),!0x1),this[_0x4c05('0x6')](_0x4c05('0xa'),0x0),this[_0x4c05('0x8')](_0x4c05('0x2'))['to'](this,_0x4c05('0x1'),this,'number',(_0x58c1b3,_0x2ef73c)=>_0x58c1b3?_0x4c05('0x4'):_0x2ef73c),this[_0x4c05('0x6')](_0x4c05('0xc'),''),this[_0x4c05('0x3')]=_0x4ecc5d,this['extendTemplate']({'attributes':{'class':[_0x4c05('0x0')]}}),this[_0x4c05('0x9')]=new _0x11a9dc(),this[_0x4c05('0x9')][_0x4c05('0xe')]({'tag':_0x4c05('0xb'),'attributes':{'class':[_0x4c05('0x5'),_0x5950b4['to']('annotationType',_0x3d343d=>'ck-annotation-counter__badge--'+_0x3d343d),_0x5950b4['if']('isDirty',_0x4c05('0x7'))]},'children':[{'text':_0x5950b4['to'](_0x4c05('0x2'))}]}),this['children'][_0x4c05('0xd')](this[_0x4c05('0x9')]);}}
23
+ const _0x4f29=['bind','add','ck-annotation-counter','bindTemplate','isDirty','icon','setTemplate','children','ck-annotation-counter__badge--edit-mode','span','_badge','extendTemplate','number','counterView','annotationType','set'];(function(_0x22a084,_0x4f2914){const _0x559d55=function(_0x19e01f){while(--_0x19e01f){_0x22a084['push'](_0x22a084['shift']());}};_0x559d55(++_0x4f2914);}(_0x4f29,0xf5));const _0x559d=function(_0x22a084,_0x4f2914){_0x22a084=_0x22a084-0x0;let _0x559d55=_0x4f29[_0x22a084];return _0x559d55;};import{ButtonView as _0x165ede,View as _0x33533b}from'ckeditor5/src/ui';import _0x5bd713 from'../../../theme/icons/add-comment.svg';export default class B extends _0x165ede{constructor(_0x50c9f9){super(_0x50c9f9);const _0x2ca483=this[_0x559d('0xe')];this['set']('isDirty',!0x1),this[_0x559d('0xa')]('number',0x0),this[_0x559d('0xb')](_0x559d('0x5'))['to'](this,'isDirty',this,_0x559d('0x7'),(_0x58c579,_0xfe3fc1)=>_0x58c579?'...':_0xfe3fc1),this[_0x559d('0xa')]('annotationType',''),this[_0x559d('0x0')]=_0x5bd713,this[_0x559d('0x6')]({'attributes':{'class':[_0x559d('0xd')]}}),this['counterView']=new _0x33533b(),this[_0x559d('0x8')][_0x559d('0x1')]({'tag':_0x559d('0x4'),'attributes':{'class':['ck-annotation-counter__badge',_0x2ca483['to'](_0x559d('0x9'),_0x2bf509=>'ck-annotation-counter__badge--'+_0x2bf509),_0x2ca483['if'](_0x559d('0xf'),_0x559d('0x3'))]},'children':[{'text':_0x2ca483['to'](_0x559d('0x5'))}]}),this[_0x559d('0x2')][_0x559d('0xc')](this['counterView']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2957=['add','height','ck-annotation-wrapper','element','isActive','mainView','clear','detach','keystrokes','Esc','targetRect','render','_mutationObserver','fire','listenTo','content','setTemplate','focus','_updateHeight','set','createCollection','bindTemplate','focusTracker','isDirty','destroy','length','ck-rounded-corners'];(function(_0x52ca42,_0x2957a9){const _0x30037f=function(_0x785402){while(--_0x785402){_0x52ca42['push'](_0x52ca42['shift']());}};_0x30037f(++_0x2957a9);}(_0x2957,0x1c0));const _0x3003=function(_0x52ca42,_0x2957a9){_0x52ca42=_0x52ca42-0x0;let _0x30037f=_0x2957[_0x52ca42];return _0x30037f;};import{View as _0xb9d63a}from'ckeditor5/src/ui';import{FocusTracker as _0x96e13c,KeystrokeHandler as _0x2fd355,uid as _0x2f5818}from'ckeditor5/src/utils';import _0x5bbc4d from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0xb9d63a{constructor(_0x18af2b,_0x52567b){super(_0x18af2b),this['id']=_0x2f5818(),this[_0x3003('0x6')]=new _0x96e13c(),this[_0x3003('0x13')]=new _0x2fd355(),this[_0x3003('0x13')][_0x3003('0x3')](_0x3003('0x14'),(_0x2ea949,_0x8154bc)=>this[_0x3003('0x18')]('Esc',_0x8154bc)),this[_0x3003('0x3')](_0x3003('0x15'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3003('0x3')](_0x3003('0xc'),0x0),this['set'](_0x3003('0xf'),!0x1),this[_0x3003('0x3')](_0x3003('0x7'),!0x1),this['set'](_0x3003('0x9'),0x0),this[_0x3003('0x3')]('type',''),this[_0x3003('0x17')]=_0x5bbc4d(()=>this[_0x3003('0x2')]()),this['content']=this[_0x3003('0x4')](),this['content'][_0x3003('0xb')](_0x52567b),this[_0x3003('0x10')]=_0x52567b;const _0x130c2c=this[_0x3003('0x5')];this[_0x3003('0x0')]({'tag':'div','attributes':{'class':['ck',_0x3003('0xd'),_0x3003('0xa'),_0x130c2c['if'](_0x3003('0xf'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x3003('0x1a')]});}[_0x3003('0x16')](){super['render'](),this[_0x3003('0x6')][_0x3003('0xb')](this[_0x3003('0xe')]),this[_0x3003('0x13')][_0x3003('0x19')](this[_0x3003('0xe')]),this[_0x3003('0x17')]['attach'](this[_0x3003('0xe')]);}[_0x3003('0x8')](){this[_0x3003('0x1a')][_0x3003('0x11')](),this[_0x3003('0x13')][_0x3003('0x8')](),this[_0x3003('0x6')][_0x3003('0x8')](),this['_mutationObserver'][_0x3003('0x12')](),super[_0x3003('0x8')]();}[_0x3003('0x1')](){this[_0x3003('0xe')][_0x3003('0x1')]();}[_0x3003('0x2')](){const _0x191ac6=this[_0x3003('0xe')]['clientHeight'];_0x191ac6&&(this[_0x3003('0xc')]=_0x191ac6);}}
23
+ const _0x32cc=['setTemplate','type','content','listenTo','bindTemplate','Esc','isDirty','ck-rounded-corners','createCollection','height','ck-annotation-wrapper','focus','div','length','_updateHeight','keystrokes','clear','clientHeight','add','focusTracker','detach','fire','element','destroy','set','mainView','ck-annotation-wrapper--active'];(function(_0x11f6cf,_0x32cc43){const _0x48cf2a=function(_0xc640fb){while(--_0xc640fb){_0x11f6cf['push'](_0x11f6cf['shift']());}};_0x48cf2a(++_0x32cc43);}(_0x32cc,0xaf));const _0x48cf=function(_0x11f6cf,_0x32cc43){_0x11f6cf=_0x11f6cf-0x0;let _0x48cf2a=_0x32cc[_0x11f6cf];return _0x48cf2a;};import{View as _0xff819f}from'ckeditor5/src/ui';import{FocusTracker as _0x5a0a6e,KeystrokeHandler as _0x3420c8,uid as _0x34e889}from'ckeditor5/src/utils';import _0x75e86e from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0xff819f{constructor(_0x24f1f7,_0x248384){super(_0x24f1f7),this['id']=_0x34e889(),this[_0x48cf('0x6')]=new _0x5a0a6e(),this['keystrokes']=new _0x3420c8(),this[_0x48cf('0x2')][_0x48cf('0xb')](_0x48cf('0x13'),(_0x395647,_0x4570de)=>this[_0x48cf('0x8')](_0x48cf('0x13'),_0x4570de)),this[_0x48cf('0xb')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x48cf('0xb')]('height',0x0),this[_0x48cf('0xb')]('isActive',!0x1),this[_0x48cf('0xb')](_0x48cf('0x14'),!0x1),this[_0x48cf('0xb')](_0x48cf('0x0'),0x0),this['set'](_0x48cf('0xf'),''),this['_mutationObserver']=_0x75e86e(()=>this[_0x48cf('0x1')]()),this[_0x48cf('0x10')]=this[_0x48cf('0x16')](),this[_0x48cf('0x10')]['add'](_0x248384),this[_0x48cf('0xc')]=_0x248384;const _0x721e4a=this[_0x48cf('0x12')];this[_0x48cf('0xe')]({'tag':_0x48cf('0x1a'),'attributes':{'class':['ck',_0x48cf('0x18'),_0x48cf('0x15'),_0x721e4a['if']('isActive',_0x48cf('0xd'))],'tabindex':-0x1},'children':this['content']});}['render'](){super['render'](),this[_0x48cf('0x6')][_0x48cf('0x5')](this[_0x48cf('0x9')]),this[_0x48cf('0x2')][_0x48cf('0x11')](this[_0x48cf('0x9')]),this['_mutationObserver']['attach'](this[_0x48cf('0x9')]);}[_0x48cf('0xa')](){this[_0x48cf('0x10')][_0x48cf('0x3')](),this['keystrokes']['destroy'](),this[_0x48cf('0x6')][_0x48cf('0xa')](),this['_mutationObserver'][_0x48cf('0x7')](),super['destroy']();}[_0x48cf('0x19')](){this[_0x48cf('0x9')][_0x48cf('0x19')]();}[_0x48cf('0x1')](){const _0x44f3cc=this[_0x48cf('0x9')][_0x48cf('0x4')];_0x44f3cc&&(this[_0x48cf('0x17')]=_0x44f3cc);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37d4=['render','content','ck-sidebar-item','height','set','div','_mutationObserver','_targetTop','detach','top','setTemplate','isAnimationDisabled','destroy','element','createCollection','clear','updateHeight','bottom'];(function(_0x3f3dc2,_0x37d448){const _0x225348=function(_0x51ef93){while(--_0x51ef93){_0x3f3dc2['push'](_0x3f3dc2['shift']());}};_0x225348(++_0x37d448);}(_0x37d4,0x16d));const _0x2253=function(_0x3f3dc2,_0x37d448){_0x3f3dc2=_0x3f3dc2-0x0;let _0x225348=_0x37d4[_0x3f3dc2];return _0x225348;};import{View as _0x39d37e}from'ckeditor5/src/ui';import{toUnit as _0x203877}from'ckeditor5/src/utils';import _0x2610e5 from'../../utils/createmutationobserver';const ft=_0x203877('px');export default class C extends _0x39d37e{constructor(_0x489d53){super(_0x489d53),this['set'](_0x2253('0x4')),this[_0x2253('0x11')](_0x2253('0x10'),0x0),this['bind'](_0x2253('0xc'))['to'](this,_0x2253('0x4'),this,'height',(_0x12f13e,_0xb2ee93)=>(_0x12f13e||0x0)+_0xb2ee93),this['set'](_0x2253('0x6'),!0x1),this[_0x2253('0x1')]=_0x2610e5(()=>this[_0x2253('0xb')]()),this[_0x2253('0x2')]=null,this['content']=this[_0x2253('0x9')]();const _0x18cc40=this['bindTemplate'];this[_0x2253('0x5')]({'tag':_0x2253('0x0'),'attributes':{'class':[_0x2253('0xf'),_0x18cc40['to']('isAnimationDisabled',_0x4200db=>_0x4200db?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x18cc40['to'](_0x2253('0x4'),ft)}},'children':this['content']});}[_0x2253('0xd')](){super[_0x2253('0xd')](),this[_0x2253('0x1')]['attach'](this[_0x2253('0x8')]);}[_0x2253('0xb')](){const _0x1859a9=this['element']['clientHeight'];_0x1859a9&&(this[_0x2253('0x10')]=_0x1859a9);}[_0x2253('0x7')](){this[_0x2253('0xe')][_0x2253('0xa')](),this[_0x2253('0x1')][_0x2253('0x3')](),super[_0x2253('0x7')]();}}
23
+ const _0x1576=['updateHeight','render','_mutationObserver','ck-sidebar-item','div','clear','bind','element','bindTemplate','ck-sidebar-item--no-animation','createCollection','detach','content','destroy','_targetTop','height','isAnimationDisabled','setTemplate','top','set','bottom'];(function(_0x79b508,_0x157680){const _0x30f303=function(_0x1d4b57){while(--_0x1d4b57){_0x79b508['push'](_0x79b508['shift']());}};_0x30f303(++_0x157680);}(_0x1576,0x83));const _0x30f3=function(_0x79b508,_0x157680){_0x79b508=_0x79b508-0x0;let _0x30f303=_0x1576[_0x79b508];return _0x30f303;};import{View as _0x5688e3}from'ckeditor5/src/ui';import{toUnit as _0x1dc2f1}from'ckeditor5/src/utils';import _0x1ddf8b from'../../utils/createmutationobserver';const ft=_0x1dc2f1('px');export default class C extends _0x5688e3{constructor(_0x4826e5){super(_0x4826e5),this['set'](_0x30f3('0xd')),this[_0x30f3('0xe')](_0x30f3('0xa'),0x0),this[_0x30f3('0x1')](_0x30f3('0xf'))['to'](this,_0x30f3('0xd'),this,_0x30f3('0xa'),(_0x11d563,_0xb26ed6)=>(_0x11d563||0x0)+_0xb26ed6),this['set']('isAnimationDisabled',!0x1),this[_0x30f3('0x12')]=_0x1ddf8b(()=>this[_0x30f3('0x10')]()),this[_0x30f3('0x9')]=null,this['content']=this[_0x30f3('0x5')]();const _0x18414e=this[_0x30f3('0x3')];this[_0x30f3('0xc')]({'tag':_0x30f3('0x14'),'attributes':{'class':[_0x30f3('0x13'),_0x18414e['to'](_0x30f3('0xb'),_0x317082=>_0x317082?_0x30f3('0x4'):'')],'style':{'top':_0x18414e['to'](_0x30f3('0xd'),ft)}},'children':this[_0x30f3('0x7')]});}[_0x30f3('0x11')](){super[_0x30f3('0x11')](),this[_0x30f3('0x12')]['attach'](this[_0x30f3('0x2')]);}[_0x30f3('0x10')](){const _0x165eb4=this[_0x30f3('0x2')]['clientHeight'];_0x165eb4&&(this[_0x30f3('0xa')]=_0x165eb4);}[_0x30f3('0x8')](){this[_0x30f3('0x7')][_0x30f3('0x0')](),this[_0x30f3('0x12')][_0x30f3('0x6')](),super[_0x30f3('0x8')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53bb=['class','list','div','createCollection','bindTemplate','set','setTemplate'];(function(_0x55312b,_0x53bbe6){const _0x4e89ec=function(_0x1f43ba){while(--_0x1f43ba){_0x55312b['push'](_0x55312b['shift']());}};_0x4e89ec(++_0x53bbe6);}(_0x53bb,0x1ca));const _0x4e89=function(_0x55312b,_0x53bbe6){_0x55312b=_0x55312b-0x0;let _0x4e89ec=_0x53bb[_0x55312b];return _0x4e89ec;};import{View as _0x52ef09}from'ckeditor5/src/ui';import{toUnit as _0x2b4746}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const ft=_0x2b4746('px');export default class T extends _0x52ef09{constructor(_0x51fa9c){super(_0x51fa9c);const _0x374698=this[_0x4e89('0x1')];this[_0x4e89('0x2')]('minHeight',0x0),this['set'](_0x4e89('0x4'),''),this[_0x4e89('0x5')]=this[_0x4e89('0x0')](),this[_0x4e89('0x3')]({'tag':_0x4e89('0x6'),'attributes':{'class':['ck','ck-sidebar','ck-reset',_0x374698['to'](_0x4e89('0x4'))],'style':{'minHeight':_0x374698['to']('minHeight',_0x86199=>_0x86199?ft(_0x86199+0xa):null)}},'children':this[_0x4e89('0x5')]});}}
23
+ const _0x852d=['list','setTemplate','minHeight','createCollection','div','ck-sidebar','ck-reset','set','class'];(function(_0x29dd54,_0x852d01){const _0x481467=function(_0x5d47b0){while(--_0x5d47b0){_0x29dd54['push'](_0x29dd54['shift']());}};_0x481467(++_0x852d01);}(_0x852d,0x114));const _0x4814=function(_0x29dd54,_0x852d01){_0x29dd54=_0x29dd54-0x0;let _0x481467=_0x852d[_0x29dd54];return _0x481467;};import{View as _0x54697a}from'ckeditor5/src/ui';import{toUnit as _0x12f0d4}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const ft=_0x12f0d4('px');export default class T extends _0x54697a{constructor(_0x1bd18b){super(_0x1bd18b);const _0x1a51aa=this['bindTemplate'];this[_0x4814('0x1')](_0x4814('0x5'),0x0),this[_0x4814('0x1')](_0x4814('0x2'),''),this[_0x4814('0x3')]=this[_0x4814('0x6')](),this[_0x4814('0x4')]({'tag':_0x4814('0x7'),'attributes':{'class':['ck',_0x4814('0x8'),_0x4814('0x0'),_0x1a51aa['to'](_0x4814('0x2'))],'style':{'minHeight':_0x1a51aa['to'](_0x4814('0x5'),_0x42899e=>_0x42899e?ft(_0x42899e+0xa):null)}},'children':this['list']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b44=['blur','widesidebar-detach-not-attached','pluginName','rearrange','plugins','change:container','add','init','_integrateWithEditorAnnotations','refreshPositioning','attach','requires','_activeAnnotation','off','has','resize','destroy','isAttached','switchTo','_annotations','_detachFromContainer','removeEventListener','setActiveAnnotation','stopListening','editors','set','register','detach','addEventListener','_editorAnnotations','uiUpdate','_attachToContainer','getOrderedSelectedAnnotations','listenTo','_throttledPositioningRefresh','_destroyEditorAnnotationsIntegration','updateTargetRect','Sidebar','context','wideSidebar','from','get','refresh','remove','EditorAnnotations','addAnnotation','widesidebar-attach-already-attached','activeAnnotation','container','high'];(function(_0x235b23,_0x3b449f){const _0x59cd79=function(_0x261a8e){while(--_0x261a8e){_0x235b23['push'](_0x235b23['shift']());}};_0x59cd79(++_0x3b449f);}(_0x3b44,0xf8));const _0x59cd=function(_0x235b23,_0x3b449f){_0x235b23=_0x235b23-0x0;let _0x59cd79=_0x3b44[_0x235b23];return _0x59cd79;};import{ContextPlugin as _0x34690f}from'ckeditor5/src/core';import _0x1c9a65 from'./annotationsuis';import _0x52b296 from'./sidebar';import{CKEditorError as _0x5c0f65,Collection as _0xe86e9b}from'ckeditor5/src/utils';import{throttle as _0x3fb23a}from'lodash-es';export default class i extends _0x34690f{static get[_0x59cd('0xd')](){return[_0x52b296,_0x1c9a65];}static get[_0x59cd('0x4')](){return'WideSidebar';}constructor(_0x477a81){super(_0x477a81),this[_0x59cd('0x13')]=!0x1,this[_0x59cd('0x1b')](_0x59cd('0x31'),null),this[_0x59cd('0x15')]=null,this[_0x59cd('0x1f')]=new _0xe86e9b(),this[_0x59cd('0x24')]=_0x3fb23a(()=>{this['_annotations'][_0x59cd('0xb')]();},0x190,{'leading':!0x1});}[_0x59cd('0x9')](){const _0x5c8e05=this[_0x59cd('0x28')][_0x59cd('0x6')]['get'](_0x1c9a65),_0x5338b8=this['context'][_0x59cd('0x6')]['get'](_0x52b296);_0x5c8e05[_0x59cd('0x1c')](_0x59cd('0x29'),this),_0x5338b8[_0x59cd('0x0')]&&_0x5c8e05[_0x59cd('0x14')](_0x59cd('0x29'));}['setActiveAnnotation'](_0x5873e6){if(_0x5873e6===this[_0x59cd('0x31')])return;const _0x584095=this[_0x59cd('0x28')][_0x59cd('0x6')]['get'](_0x52b296);_0x584095[_0x59cd('0xe')]=_0x5873e6;const _0x1aee30=this[_0x59cd('0x31')];this[_0x59cd('0x31')]=_0x5873e6,_0x584095[_0x59cd('0x2c')]({'blurredAnnotation':_0x1aee30,'activatedAnnotation':this[_0x59cd('0x31')]});}[_0x59cd('0xc')](_0x3a76aa){this['_annotations']=_0x3a76aa;const _0x1607e5=this[_0x59cd('0x28')][_0x59cd('0x6')][_0x59cd('0x2b')](_0x59cd('0x27'));if(_0x1607e5[_0x59cd('0x15')]=_0x3a76aa,this['isAttached'])throw new _0x5c0f65(_0x59cd('0x30'),this);this[_0x59cd('0x13')]=!0x0,this['listenTo'](_0x1607e5,'set:container',()=>{this['detach'](),this['listenTo'](_0x1607e5,_0x59cd('0x7'),_0xc725a1=>{_0xc725a1[_0x59cd('0xf')](),this[_0x59cd('0xc')](_0x3a76aa);});}),_0x1607e5[_0x59cd('0x21')]({'viewClass':'ck-sidebar--wide'});const _0x57b8ed=_0x305a36=>{_0x305a36[_0x59cd('0x26')](),_0x1607e5[_0x59cd('0x2f')](_0x305a36);};for(const _0x3d588e of _0x3a76aa)_0x57b8ed(_0x3d588e);this[_0x59cd('0x23')](_0x3a76aa,_0x59cd('0x8'),(_0x483324,_0x1b52f0)=>{_0x57b8ed(_0x1b52f0);}),this[_0x59cd('0x23')](_0x3a76aa,_0x59cd('0x2d'),(_0x2e9abf,_0x36ccc3,_0x1fdc8a)=>{_0x1607e5[_0x59cd('0x5')]({'removedAnnotation':_0x36ccc3,'previousAnnotation':_0x3a76aa[_0x59cd('0x2b')](_0x1fdc8a-0x1),'nextAnnotation':_0x3a76aa[_0x59cd('0x2b')](_0x1fdc8a+0x1)}),_0x36ccc3===this['activeAnnotation']&&this[_0x59cd('0x18')](null);},{'priority':_0x59cd('0x1')}),this[_0x59cd('0x23')](_0x3a76aa,'focus',(_0x583b03,_0x256caa)=>{this[_0x59cd('0x18')](_0x256caa);}),this[_0x59cd('0x23')](_0x3a76aa,_0x59cd('0x2'),()=>{this['setActiveAnnotation'](null);});const _0x37f7d6=this[_0x59cd('0x28')][_0x59cd('0x1a')]?this['context'][_0x59cd('0x1a')]:new _0xe86e9b([this[_0x59cd('0x28')]]);for(const _0x458b54 of _0x37f7d6)this[_0x59cd('0xa')](_0x458b54);this['listenTo'](_0x37f7d6,_0x59cd('0x8'),(_0x465c25,_0x1e9a8d)=>{this[_0x59cd('0x23')](_0x1e9a8d,'ready',()=>{this[_0x59cd('0xa')](_0x1e9a8d);});}),this['listenTo'](_0x37f7d6,_0x59cd('0x2d'),(_0x406dee,_0x118e29)=>{_0x118e29[_0x59cd('0x6')][_0x59cd('0x10')](_0x59cd('0x2e'))&&this[_0x59cd('0x25')](_0x118e29[_0x59cd('0x6')]['get'](_0x59cd('0x2e')));}),window[_0x59cd('0x1e')](_0x59cd('0x11'),this['_throttledPositioningRefresh']),this[_0x59cd('0x15')][_0x59cd('0xb')]();}['detach'](){if(!this['isAttached'])throw new _0x5c0f65(_0x59cd('0x3'),this);this[_0x59cd('0x18')](null);const _0x1829c4=this['context'][_0x59cd('0x6')]['get'](_0x52b296);_0x1829c4[_0x59cd('0x16')](this[_0x59cd('0x15')]),this[_0x59cd('0x19')](_0x1829c4),this[_0x59cd('0x19')](this[_0x59cd('0x15')]),this[_0x59cd('0x19')](this['context'][_0x59cd('0x1a')]);for(const _0x2642ea of Array[_0x59cd('0x2a')](this[_0x59cd('0x1f')]))this[_0x59cd('0x25')](_0x2642ea);window[_0x59cd('0x17')](_0x59cd('0x11'),this[_0x59cd('0x24')]),this[_0x59cd('0x24')]['cancel'](),this[_0x59cd('0x31')]=null,this[_0x59cd('0x13')]=!0x1;}[_0x59cd('0x12')](){this[_0x59cd('0x13')]&&this[_0x59cd('0x1d')]();}[_0x59cd('0xa')](_0x431b50){const _0x1f8ee9=_0x431b50['plugins']['get'](_0x59cd('0x2e'));if(!_0x1f8ee9)return;const _0x429cb9=()=>{const _0x2fcfbf=_0x1f8ee9[_0x59cd('0x22')]({'annotations':this[_0x59cd('0x15')],'activeAnnotation':this[_0x59cd('0x31')]});this[_0x59cd('0x18')](_0x2fcfbf[0x0]||null);};this['listenTo'](_0x1f8ee9,'refresh',_0x429cb9),this['listenTo'](_0x1f8ee9,_0x59cd('0x2'),(_0x13e8c9,{isAnnotationTracked:_0x2c2d21})=>{this[_0x59cd('0x31')]&&_0x2c2d21(this[_0x59cd('0x31')])&&this[_0x59cd('0x18')](null);}),this[_0x59cd('0x23')](_0x1f8ee9,_0x59cd('0x20'),()=>{this[_0x59cd('0x15')][_0x59cd('0xb')]();}),this[_0x59cd('0x23')](this[_0x59cd('0x15')],_0x59cd('0x2'),_0xfea603=>{_0x1f8ee9['hasDomSelection']()&&(_0x429cb9(),_0xfea603['stop']());},{'priority':_0x59cd('0x1')}),this[_0x59cd('0x1f')][_0x59cd('0x8')](_0x1f8ee9);}[_0x59cd('0x25')](_0x34fdd3){_0x34fdd3&&(this['stopListening'](_0x34fdd3),this[_0x59cd('0x1f')][_0x59cd('0x2d')](_0x34fdd3));}}
23
+ const _0x4123=['get','focus','pluginName','refresh','editors','requires','register','context','blur','uiUpdate','from','attach','set:container','WideSidebar','getOrderedSelectedAnnotations','_annotations','resize','switchTo','hasDomSelection','EditorAnnotations','addAnnotation','addEventListener','_throttledPositioningRefresh','_destroyEditorAnnotationsIntegration','_integrateWithEditorAnnotations','container','high','activeAnnotation','detach','stopListening','init','widesidebar-detach-not-attached','plugins','remove','setActiveAnnotation','isAttached','removeEventListener','set','Sidebar','listenTo','destroy','_detachFromContainer','updateTargetRect','refreshPositioning','_editorAnnotations','add','off','wideSidebar'];(function(_0x50ea43,_0x412354){const _0x86ec6d=function(_0x25c884){while(--_0x25c884){_0x50ea43['push'](_0x50ea43['shift']());}};_0x86ec6d(++_0x412354);}(_0x4123,0x1b8));const _0x86ec=function(_0x50ea43,_0x412354){_0x50ea43=_0x50ea43-0x0;let _0x86ec6d=_0x4123[_0x50ea43];return _0x86ec6d;};import{ContextPlugin as _0x44848c}from'ckeditor5/src/core';import _0x454229 from'./annotationsuis';import _0x4dc0e2 from'./sidebar';import{CKEditorError as _0x35c6f7,Collection as _0x771e3c}from'ckeditor5/src/utils';import{throttle as _0x238cfe}from'lodash-es';export default class i extends _0x44848c{static get[_0x86ec('0x2d')](){return[_0x4dc0e2,_0x454229];}static get[_0x86ec('0x2a')](){return _0x86ec('0x5');}constructor(_0x5e3f04){super(_0x5e3f04),this[_0x86ec('0x1b')]=!0x1,this[_0x86ec('0x1d')](_0x86ec('0x13'),null),this[_0x86ec('0x7')]=null,this[_0x86ec('0x24')]=new _0x771e3c(),this[_0x86ec('0xe')]=_0x238cfe(()=>{this[_0x86ec('0x7')][_0x86ec('0x23')]();},0x190,{'leading':!0x1});}[_0x86ec('0x16')](){const _0x3bc1b2=this[_0x86ec('0x2f')]['plugins']['get'](_0x454229),_0x3592f6=this[_0x86ec('0x2f')][_0x86ec('0x18')][_0x86ec('0x28')](_0x4dc0e2);_0x3bc1b2[_0x86ec('0x2e')](_0x86ec('0x27'),this),_0x3592f6[_0x86ec('0x11')]&&_0x3bc1b2[_0x86ec('0x9')](_0x86ec('0x27'));}[_0x86ec('0x1a')](_0x3246b7){if(_0x3246b7===this[_0x86ec('0x13')])return;const _0x3bc7ce=this[_0x86ec('0x2f')][_0x86ec('0x18')][_0x86ec('0x28')](_0x4dc0e2);_0x3bc7ce['_activeAnnotation']=_0x3246b7;const _0x1bc9e0=this['activeAnnotation'];this[_0x86ec('0x13')]=_0x3246b7,_0x3bc7ce[_0x86ec('0x2b')]({'blurredAnnotation':_0x1bc9e0,'activatedAnnotation':this['activeAnnotation']});}[_0x86ec('0x3')](_0x7a36e0){this[_0x86ec('0x7')]=_0x7a36e0;const _0x19ebb5=this['context'][_0x86ec('0x18')][_0x86ec('0x28')](_0x86ec('0x1e'));if(_0x19ebb5[_0x86ec('0x7')]=_0x7a36e0,this[_0x86ec('0x1b')])throw new _0x35c6f7('widesidebar-attach-already-attached',this);this[_0x86ec('0x1b')]=!0x0,this[_0x86ec('0x1f')](_0x19ebb5,_0x86ec('0x4'),()=>{this['detach'](),this[_0x86ec('0x1f')](_0x19ebb5,'change:container',_0x66da8f=>{_0x66da8f[_0x86ec('0x26')](),this[_0x86ec('0x3')](_0x7a36e0);});}),_0x19ebb5['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x534de9=_0x1a0408=>{_0x1a0408[_0x86ec('0x22')](),_0x19ebb5[_0x86ec('0xc')](_0x1a0408);};for(const _0x5b8de0 of _0x7a36e0)_0x534de9(_0x5b8de0);this[_0x86ec('0x1f')](_0x7a36e0,_0x86ec('0x25'),(_0x4f0e30,_0x565c62)=>{_0x534de9(_0x565c62);}),this[_0x86ec('0x1f')](_0x7a36e0,_0x86ec('0x19'),(_0x399ccf,_0x3b6f82,_0x1d85e0)=>{_0x19ebb5['rearrange']({'removedAnnotation':_0x3b6f82,'previousAnnotation':_0x7a36e0['get'](_0x1d85e0-0x1),'nextAnnotation':_0x7a36e0[_0x86ec('0x28')](_0x1d85e0+0x1)}),_0x3b6f82===this[_0x86ec('0x13')]&&this[_0x86ec('0x1a')](null);},{'priority':_0x86ec('0x12')}),this['listenTo'](_0x7a36e0,_0x86ec('0x29'),(_0x3d02d8,_0x29a135)=>{this[_0x86ec('0x1a')](_0x29a135);}),this['listenTo'](_0x7a36e0,_0x86ec('0x0'),()=>{this[_0x86ec('0x1a')](null);});const _0x5b0810=this[_0x86ec('0x2f')][_0x86ec('0x2c')]?this[_0x86ec('0x2f')][_0x86ec('0x2c')]:new _0x771e3c([this[_0x86ec('0x2f')]]);for(const _0x28b762 of _0x5b0810)this['_integrateWithEditorAnnotations'](_0x28b762);this['listenTo'](_0x5b0810,_0x86ec('0x25'),(_0x4e4015,_0x134cf2)=>{this[_0x86ec('0x1f')](_0x134cf2,'ready',()=>{this[_0x86ec('0x10')](_0x134cf2);});}),this[_0x86ec('0x1f')](_0x5b0810,'remove',(_0x278a1f,_0x368e82)=>{_0x368e82['plugins']['has'](_0x86ec('0xb'))&&this[_0x86ec('0xf')](_0x368e82[_0x86ec('0x18')]['get']('EditorAnnotations'));}),window[_0x86ec('0xd')](_0x86ec('0x8'),this['_throttledPositioningRefresh']),this[_0x86ec('0x7')][_0x86ec('0x23')]();}['detach'](){if(!this[_0x86ec('0x1b')])throw new _0x35c6f7(_0x86ec('0x17'),this);this['setActiveAnnotation'](null);const _0x4d7671=this[_0x86ec('0x2f')][_0x86ec('0x18')][_0x86ec('0x28')](_0x4dc0e2);_0x4d7671[_0x86ec('0x21')](this[_0x86ec('0x7')]),this[_0x86ec('0x15')](_0x4d7671),this[_0x86ec('0x15')](this[_0x86ec('0x7')]),this[_0x86ec('0x15')](this[_0x86ec('0x2f')]['editors']);for(const _0x337544 of Array[_0x86ec('0x2')](this[_0x86ec('0x24')]))this['_destroyEditorAnnotationsIntegration'](_0x337544);window[_0x86ec('0x1c')]('resize',this['_throttledPositioningRefresh']),this['_throttledPositioningRefresh']['cancel'](),this[_0x86ec('0x13')]=null,this[_0x86ec('0x1b')]=!0x1;}[_0x86ec('0x20')](){this[_0x86ec('0x1b')]&&this[_0x86ec('0x14')]();}['_integrateWithEditorAnnotations'](_0xb38b30){const _0x761b3d=_0xb38b30[_0x86ec('0x18')]['get'](_0x86ec('0xb'));if(!_0x761b3d)return;const _0x304358=()=>{const _0x2a983a=_0x761b3d[_0x86ec('0x6')]({'annotations':this['_annotations'],'activeAnnotation':this[_0x86ec('0x13')]});this[_0x86ec('0x1a')](_0x2a983a[0x0]||null);};this[_0x86ec('0x1f')](_0x761b3d,'refresh',_0x304358),this[_0x86ec('0x1f')](_0x761b3d,'blur',(_0x345c75,{isAnnotationTracked:_0x3b2a26})=>{this['activeAnnotation']&&_0x3b2a26(this[_0x86ec('0x13')])&&this['setActiveAnnotation'](null);}),this[_0x86ec('0x1f')](_0x761b3d,_0x86ec('0x1'),()=>{this[_0x86ec('0x7')][_0x86ec('0x23')]();}),this['listenTo'](this[_0x86ec('0x7')],'blur',_0x345eb4=>{_0x761b3d[_0x86ec('0xa')]()&&(_0x304358(),_0x345eb4['stop']());},{'priority':_0x86ec('0x12')}),this['_editorAnnotations'][_0x86ec('0x25')](_0x761b3d);}['_destroyEditorAnnotationsIntegration'](_0x34b407){_0x34b407&&(this['stopListening'](_0x34b407),this[_0x86ec('0x24')][_0x86ec('0x19')](_0x34b407));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4341=['getLastMatchingPosition','start','_itemIsContent','selection','getRanges','backward','editor','end','tableCell','getItems','addMarker','textProxy','substr','_hasContent','document','isObject','model','change','push','schema','_trimToContent','createRange','element','isEnabled'];(function(_0x4334ea,_0x4341b3){const _0x44dd43=function(_0x4b46bd){while(--_0x4b46bd){_0x4334ea['push'](_0x4334ea['shift']());}};_0x44dd43(++_0x4341b3);}(_0x4341,0x17e));const _0x44dd=function(_0x4334ea,_0x4341b3){_0x4334ea=_0x4334ea-0x0;let _0x44dd43=_0x4341[_0x4334ea];return _0x44dd43;};import{Command as _0x51822c}from'ckeditor5/src/core';import{uid as _0x1e6a16}from'ckeditor5/src/utils';export default class j extends _0x51822c{['refresh'](){const _0x35ae32=this['editor'][_0x44dd('0x12')]['document']['selection'];for(const _0x161325 of _0x35ae32[_0x44dd('0x6')]())if(this[_0x44dd('0xf')](_0x161325))return void(this[_0x44dd('0x1')]=!0x0);this[_0x44dd('0x1')]=!0x1;}['execute']({threadId:_0x20bd1b=_0x1e6a16()}={}){const _0x593ac0=this[_0x44dd('0x8')][_0x44dd('0x12')],_0x545a50=[];for(const _0x22eaf8 of _0x593ac0[_0x44dd('0x10')][_0x44dd('0x5')]['getRanges']())this[_0x44dd('0xf')](_0x22eaf8)&&_0x545a50[_0x44dd('0x14')](this[_0x44dd('0x16')](_0x22eaf8));_0x593ac0[_0x44dd('0x13')](_0x2351d0=>{for(const _0x2bcc31 of _0x545a50){const _0x3af345=_0x1e6a16()[_0x44dd('0xe')](0x1,0x5),_0x23d132='comment:'+_0x20bd1b+':'+_0x3af345;_0x2351d0[_0x44dd('0xc')](_0x23d132,{'range':_0x2bcc31,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x44dd('0xf')](_0x1bb425){for(const _0x1ec730 of _0x1bb425[_0x44dd('0xb')]())if(this[_0x44dd('0x4')](_0x1ec730))return!0x0;return!0x1;}[_0x44dd('0x4')](_0x153ea8){return _0x153ea8['is'](_0x44dd('0xd'))||this[_0x44dd('0x8')][_0x44dd('0x12')][_0x44dd('0x15')][_0x44dd('0x11')](_0x153ea8)&&!_0x153ea8['is'](_0x44dd('0x0'),_0x44dd('0xa'));}[_0x44dd('0x16')](_0x2cb452){const _0x57a3c1=_0x2520b4=>!this['_itemIsContent'](_0x2520b4['item']),_0x36618b=_0x2cb452[_0x44dd('0x3')]['getLastMatchingPosition'](_0x57a3c1),_0x4cd6b7=_0x2cb452[_0x44dd('0x9')][_0x44dd('0x2')](_0x57a3c1,{'direction':_0x44dd('0x7')});return this[_0x44dd('0x8')][_0x44dd('0x12')][_0x44dd('0x17')](_0x36618b,_0x4cd6b7);}}
23
+ const _0x4026=['model','item','_trimToContent','change','getRanges','editor','_hasContent','start','element','textProxy','selection','isObject','getItems','execute','push','end','getLastMatchingPosition','backward','substr','comment:','_itemIsContent','createRange','refresh','isEnabled','document','tableCell','schema'];(function(_0x5612e1,_0x402685){const _0x258d2f=function(_0x3e08cc){while(--_0x3e08cc){_0x5612e1['push'](_0x5612e1['shift']());}};_0x258d2f(++_0x402685);}(_0x4026,0x1cd));const _0x258d=function(_0x5612e1,_0x402685){_0x5612e1=_0x5612e1-0x0;let _0x258d2f=_0x4026[_0x5612e1];return _0x258d2f;};import{Command as _0x32b9e2}from'ckeditor5/src/core';import{uid as _0x5b9d8c}from'ckeditor5/src/utils';export default class j extends _0x32b9e2{[_0x258d('0x14')](){const _0x105dcd=this[_0x258d('0x3')][_0x258d('0x19')][_0x258d('0x16')]['selection'];for(const _0x202260 of _0x105dcd[_0x258d('0x2')]())if(this[_0x258d('0x4')](_0x202260))return void(this['isEnabled']=!0x0);this[_0x258d('0x15')]=!0x1;}[_0x258d('0xb')]({threadId:_0x45a130=_0x5b9d8c()}={}){const _0x206fc1=this['editor']['model'],_0x4038ab=[];for(const _0x53f6b1 of _0x206fc1['document'][_0x258d('0x8')]['getRanges']())this[_0x258d('0x4')](_0x53f6b1)&&_0x4038ab[_0x258d('0xc')](this[_0x258d('0x0')](_0x53f6b1));_0x206fc1[_0x258d('0x1')](_0x5003c6=>{for(const _0x4c3569 of _0x4038ab){const _0x40b857=_0x5b9d8c()[_0x258d('0x10')](0x1,0x5),_0x3c257a=_0x258d('0x11')+_0x45a130+':'+_0x40b857;_0x5003c6['addMarker'](_0x3c257a,{'range':_0x4c3569,'usingOperation':!0x1,'affectData':!0x1});}});}['_hasContent'](_0x3f98eb){for(const _0x37e654 of _0x3f98eb[_0x258d('0xa')]())if(this['_itemIsContent'](_0x37e654))return!0x0;return!0x1;}[_0x258d('0x12')](_0x29c3dc){return _0x29c3dc['is'](_0x258d('0x7'))||this[_0x258d('0x3')][_0x258d('0x19')][_0x258d('0x18')][_0x258d('0x9')](_0x29c3dc)&&!_0x29c3dc['is'](_0x258d('0x6'),_0x258d('0x17'));}[_0x258d('0x0')](_0x34edaf){const _0x13e5a8=_0x379655=>!this[_0x258d('0x12')](_0x379655[_0x258d('0x1a')]),_0x4be547=_0x34edaf[_0x258d('0x5')]['getLastMatchingPosition'](_0x13e5a8),_0xf6c53e=_0x34edaf[_0x258d('0xd')][_0x258d('0xe')](_0x13e5a8,{'direction':_0x258d('0xf')});return this[_0x258d('0x3')][_0x258d('0x19')][_0x258d('0x13')](_0x4be547,_0xf6c53e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x713a=['end','editing','getAllMarkersForId','root','hasMarkerForId','getMarkersGroup','editor','removeMarker','start','fetchCommentThread','dataToMarker','CommentsRepository','destroy','listenTo','get','createPositionBefore','config','_handleMarkerAddAndRemove','has','schema','getWalker','isThreadsLoadingPaused','_detachCommentThread','attachTo','state','markerToHighlight','markerName','hasCommentThread','view','ck-comment-marker--active','upcast','render','elementToElement','comment:','requires','getAttribute','from','data','$graveyard','map','markerToData','plugins','reconvertMarker','for','size','change:isThreadsLoadingPaused','registerPostFixer','updateMarker','change','openNewCommentThread','editingDowncast','name','getChangedMarkers','rootName','differ','low','managedUsingOperations','isEqual','delete','isObject','add','removeCommentThread','init','set','comment','length','ck-comment-marker','conversion','markers','activeMarker','push','high','createRange','model','once','_attachedThreads','getCommentThread','$marker','_initializeMarkerConverters','split','createElement','stop','_attachThreadToMarker','newRange','document','dataDowncast','pluginName','collaboration.channelId','then','isCollapsed','text','top','left','sort'];(function(_0x4e35d1,_0x713a10){const _0x7edd58=function(_0x5d9ff3){while(--_0x5d9ff3){_0x4e35d1['push'](_0x4e35d1['shift']());}};_0x7edd58(++_0x713a10);}(_0x713a,0x1ac));const _0x7edd=function(_0x4e35d1,_0x713a10){_0x4e35d1=_0x4e35d1-0x0;let _0x7edd58=_0x713a[_0x4e35d1];return _0x7edd58;};import{Plugin as _0x44f512}from'ckeditor5/src/core';import{Rect as _0x41f675}from'ckeditor5/src/utils';import _0x850e87 from'./commentsrepository';import _0x514de2 from'./addcommentthreadcommand';import{getMarkerDomElement as _0x4066a3}from'ckeditor5-collaboration/src/collaboration-core';import _0x4110ee from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x44f512{static get[_0x7edd('0x4c')](){return[_0x850e87,_0x4110ee];}static get[_0x7edd('0x22')](){return'CommentsEditing';}constructor(_0x17746d){super(_0x17746d),this[_0x7edd('0xb')]('isThreadsLoadingPaused',!0x0),_0x17746d[_0x7edd('0x4f')][_0x7edd('0x16')]('ready',()=>this[_0x7edd('0x3f')]=!0x1),this[_0x7edd('0xb')](_0x7edd('0x11'),null),this['on']('change:activeMarker',(_0x273136,_0x5c1ea8,_0x20a9e4,_0x4c8fd7)=>{_0x17746d[_0x7edd('0x15')][_0x7edd('0x5a')](()=>{if(_0x20a9e4){const {id:_0x404418}=G(_0x20a9e4),_0x4a565d=this[_0x7edd('0x2c')](_0x404418);for(const _0xe87111 of _0x4a565d)_0x17746d['editing'][_0x7edd('0x54')](_0xe87111);}if(_0x4c8fd7){const {id:_0x1ec8f3}=G(_0x4c8fd7),_0x4f955b=this[_0x7edd('0x2c')](_0x1ec8f3);for(const _0x21bc81 of _0x4f955b)_0x17746d[_0x7edd('0x2b')]['reconvertMarker'](_0x21bc81);}});}),this['_attachedThreads']=new Set();}[_0x7edd('0xa')](){const _0x3b0593=this[_0x7edd('0x30')],_0x3c9b7b=_0x3b0593[_0x7edd('0x53')]['get'](_0x7edd('0x35')),_0x4988eb=_0x3b0593[_0x7edd('0x3a')][_0x7edd('0x38')](_0x7edd('0x23'));_0x3b0593['commands'][_0x7edd('0x8')]('addCommentThread',new _0x514de2(_0x3b0593)),this['listenTo'](_0x3b0593,'change:isReadOnly',(_0x33c7bb,_0x581d9c,_0x2dcd48)=>{_0x3c9b7b['switchReadOnly'](_0x2dcd48,_0x3b0593['config'][_0x7edd('0x38')](_0x7edd('0x23')));}),this['listenTo'](_0x3c9b7b,q(_0x7edd('0x9'),_0x4988eb),(_0x8a5be8,{threadId:_0x5370e6})=>{_0x3b0593[_0x7edd('0x15')][_0x7edd('0x5a')](_0x353ccf=>{for(const _0x1ec456 of this[_0x7edd('0x2c')](_0x5370e6))_0x353ccf[_0x7edd('0x31')](_0x1ec456);});const _0x4b8cfa=_0x3c9b7b[_0x7edd('0x18')](_0x5370e6);_0x3c9b7b['hasCommentThread'](_0x5370e6)&&!_0x4b8cfa[_0x7edd('0xd')]||_0x8a5be8[_0x7edd('0x1d')]();},{'priority':_0x7edd('0x13')}),this['listenTo'](_0x3c9b7b,q('addComment',_0x4988eb),(_0x483faf,{threadId:_0x2f96ab,isFromAdapter:_0x4abeec})=>{const _0xcb40ed=this['getAllMarkersForId'](_0x2f96ab);if(_0x4abeec||0x0==_0xcb40ed[_0x7edd('0xd')]||!_0x3c9b7b[_0x7edd('0x45')](_0x2f96ab))return;0x1===_0x3c9b7b[_0x7edd('0x18')](_0x2f96ab)[_0x7edd('0xd')]&&_0x3b0593['model'][_0x7edd('0x5a')](_0x532d51=>{for(const _0x10edfc of _0xcb40ed)_0x532d51[_0x7edd('0x59')](_0x10edfc,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x7edd('0x3')}),this['_initializeMarkerConverters'](),this[_0x7edd('0x3b')]();}[_0x7edd('0x36')](){const _0x319fd4=this[_0x7edd('0x30')][_0x7edd('0x53')][_0x7edd('0x38')](_0x7edd('0x35')),_0x305ce7=this['editor'][_0x7edd('0x3a')][_0x7edd('0x38')](_0x7edd('0x23'));for(const _0x5c245f of _0x319fd4['getCommentThreads']({'channelId':_0x305ce7}))_0x319fd4[_0x7edd('0x40')](_0x5c245f['id']),_0x319fd4['_threads']['delete'](_0x5c245f['id']);super[_0x7edd('0x36')]();}['hasMarkerForId'](_0x31faff){return this[_0x7edd('0x2c')](_0x31faff)[_0x7edd('0xd')]>0x0;}['getAllMarkersForId'](_0x52b7b0){const _0x2e2b9a=this[_0x7edd('0x30')]['model']['markers'][_0x7edd('0x38')](_0x7edd('0x4b')+_0x52b7b0);return _0x2e2b9a?[_0x2e2b9a]:Array[_0x7edd('0x4e')](this['editor'][_0x7edd('0x15')][_0x7edd('0x10')][_0x7edd('0x2f')](_0x7edd('0x4b')+_0x52b7b0));}[_0x7edd('0x1a')](){const _0x56ec6f=this['editor'];_0x56ec6f[_0x7edd('0xf')][_0x7edd('0x55')](_0x7edd('0x5c'))[_0x7edd('0x43')]({'model':_0x7edd('0xc'),'view':_0x458917=>{const {id:_0x2736d2}=G(_0x458917[_0x7edd('0x44')]),_0x4f2d6a=[_0x7edd('0xe')];return this[_0x7edd('0x11')]&&G(this[_0x7edd('0x11')])['id']===_0x2736d2&&_0x4f2d6a[_0x7edd('0x12')](_0x7edd('0x47')),{'classes':_0x4f2d6a,'attributes':{'data-comment':_0x2736d2}};}}),_0x56ec6f['conversion'][_0x7edd('0x55')](_0x7edd('0x21'))[_0x7edd('0x52')]({'model':'comment','view':_0x18b58b=>{const _0x3eb60c=_0x56ec6f['model']['markers'][_0x7edd('0x38')](_0x18b58b),{id:_0x3b102f,part:_0x26d144}=G(_0x18b58b);return _0x3eb60c&&!_0x3eb60c['affectsData']?null:{'group':'comment','name':_0x26d144?_0x3b102f+':'+_0x26d144:_0x3b102f};}}),_0x56ec6f['conversion'][_0x7edd('0x55')](_0x7edd('0x48'))[_0x7edd('0x4a')]({'view':{'name':_0x7edd('0xc'),'attribute':{'id':/^\w/}},'model':(_0x2aedf0,{writer:_0x40ce68})=>_0x40ce68[_0x7edd('0x1c')](_0x7edd('0x19'),{'data-name':_0x7edd('0x4b')+_0x2aedf0[_0x7edd('0x4d')]('id')})}),_0x56ec6f[_0x7edd('0xf')][_0x7edd('0x55')](_0x7edd('0x48'))[_0x7edd('0x34')]({'view':'comment'});}[_0x7edd('0x3b')](){const _0x403c46=this[_0x7edd('0x30')],_0x5ada91=_0x403c46[_0x7edd('0x53')][_0x7edd('0x38')](_0x7edd('0x35')),_0x26ad0a=new Set();_0x403c46['model'][_0x7edd('0x20')][_0x7edd('0x58')](_0xd6ce07=>{let _0xabd219=!0x1;for(const {name:_0xf5316,data:_0x4e6956}of _0x403c46[_0x7edd('0x15')][_0x7edd('0x20')][_0x7edd('0x2')][_0x7edd('0x0')]()){const {group:_0xc3535c,id:_0x5bcfc9}=G(_0xf5316);let _0x24b695=_0x4e6956['newRange'];if(_0x7edd('0xc')!==_0xc3535c||!_0x24b695)continue;const _0x3d57d9=_0x7edd('0x50')===_0x24b695[_0x7edd('0x2d')][_0x7edd('0x1')];_0x3d57d9||(_0x24b695=J(_0x24b695,_0x403c46[_0x7edd('0x15')]),!_0x24b695||_0x24b695[_0x7edd('0x5')](_0x4e6956[_0x7edd('0x1f')]))?!_0x24b695||!_0x403c46[_0x7edd('0x15')]['hasContent'](_0x24b695)||this[_0x7edd('0x17')][_0x7edd('0x3c')](_0x5bcfc9)&&_0x3d57d9?(_0xd6ce07[_0x7edd('0x31')](_0xf5316),_0xabd219=!0x0):_0x3d57d9||(this[_0x7edd('0x3f')]?_0x26ad0a['add'](_0x5bcfc9):this[_0x7edd('0x1e')](_0x5bcfc9)):(_0xd6ce07['updateMarker'](_0xf5316,{'range':_0x24b695}),_0xabd219=!0x0);}return _0xabd219;}),this['on'](_0x7edd('0x57'),(_0x5f5cf6,_0x418094,_0x426220)=>{if(!_0x426220&&_0x26ad0a[_0x7edd('0x56')])for(const _0x4e2e26 of _0x26ad0a)this['_attachThreadToMarker'](_0x4e2e26),_0x26ad0a[_0x7edd('0x6')](_0x4e2e26);}),this[_0x7edd('0x37')](_0x403c46[_0x7edd('0x15')][_0x7edd('0x10')],'update:comment',(_0x9b19e,_0x8ffa7c,_0x2d8b7a,_0x3ea200)=>{if(_0x3ea200)return;const {id:_0x52459c}=G(_0x8ffa7c[_0x7edd('0x5d')]),_0x19c2e9=_0x403c46[_0x7edd('0x53')]['get'](_0x7edd('0x35'))[_0x7edd('0x18')](_0x52459c);_0x26ad0a[_0x7edd('0x6')](_0x52459c),_0x19c2e9&&!this[_0x7edd('0x2e')](_0x52459c)&&(this[_0x7edd('0x17')]['delete'](_0x52459c),_0x5ada91[_0x7edd('0x40')](_0x52459c));});}['_attachThreadToMarker'](_0xa3bfd4){if(this[_0x7edd('0x17')]['has'](_0xa3bfd4))return;this['_attachedThreads'][_0x7edd('0x8')](_0xa3bfd4);const _0x15f349=this[_0x7edd('0x30')],_0x156563=_0x15f349[_0x7edd('0x53')]['get'](_0x7edd('0x35')),_0xc91a4f=_0x15f349[_0x7edd('0x3a')][_0x7edd('0x38')](_0x7edd('0x23')),_0x2c0970=()=>{const _0x135ec3=this['getAllMarkersForId'](_0xa3bfd4);if(0x0==_0x135ec3[_0x7edd('0xd')])return null;const _0x5e73e4=_0x135ec3[_0x7edd('0x51')](_0x5106ee=>_0x4066a3(_0x15f349['editing'],_0x5106ee));return _0x5e73e4[_0x7edd('0x29')]((_0x12f220,_0x1cf7bc)=>{const _0x6dd3a0=new _0x41f675(_0x12f220),_0x1e9809=new _0x41f675(_0x1cf7bc),_0x442b37=_0x6dd3a0[_0x7edd('0x27')]-_0x1e9809[_0x7edd('0x27')];return 0x0==_0x442b37?_0x6dd3a0[_0x7edd('0x28')]-_0x1e9809['left']:_0x442b37;}),_0x5e73e4[0x0];};!this[_0x7edd('0x2c')](_0xa3bfd4)[0x0][_0x7edd('0x4')]?_0x15f349[_0x7edd('0x2b')][_0x7edd('0x46')][_0x7edd('0x16')](_0x7edd('0x49'),()=>{_0x156563[_0x7edd('0x5b')]({'channelId':_0xc91a4f,'threadId':_0xa3bfd4,'target':_0x2c0970});},{'priority':_0x7edd('0x3')}):_0x156563[_0x7edd('0x33')]({'channelId':_0xc91a4f,'threadId':_0xa3bfd4})[_0x7edd('0x24')](_0x1e1ac6=>{if('destroyed'!==_0x15f349[_0x7edd('0x42')]){if(_0x1e1ac6)_0x1e1ac6[_0x7edd('0x41')](_0x2c0970);else{const _0x1bd17d=this[_0x7edd('0x2c')](_0xa3bfd4);_0x15f349[_0x7edd('0x15')][_0x7edd('0x5a')](_0x49b9a0=>{for(const _0x5c9563 of _0x1bd17d)_0x49b9a0[_0x7edd('0x31')](_0x5c9563);});}}});}}function q(_0x3d3d12,_0x1674fe){return _0x1674fe?_0x3d3d12+':'+_0x1674fe:_0x3d3d12;}function G(_0x2f72a7){const _0x575d51=_0x2f72a7[_0x7edd('0x1b')](':');return{'group':_0x575d51[0x0],'id':_0x575d51[0x1],'part':_0x575d51[0x2]};}function J(_0x3b166b,_0x3c3c12){const _0xa6c89=_0x3c3c12[_0x7edd('0x3d')],_0x25639c=_0x3c3c12[_0x7edd('0x14')](_0x3b166b['start']);for(const _0x24d058 of _0x3b166b[_0x7edd('0x3e')]()){const {type:_0x5d785a,item:_0x326b0a,nextPosition:_0x573300}=_0x24d058;if(_0x7edd('0x26')===_0x5d785a||_0xa6c89[_0x7edd('0x7')](_0x326b0a)){const _0x226bc7=_0x3c3c12[_0x7edd('0x39')](_0x326b0a);_0x25639c[_0x7edd('0x25')]&&(_0x25639c[_0x7edd('0x32')]=_0x226bc7),_0x25639c[_0x7edd('0x2a')]=_0x573300;}}return _0x25639c[_0x7edd('0x25')]?null:_0x25639c;}
23
+ const _0x4998=['isObject','isEqual','top','_attachThreadToMarker','markerToData','_initializeMarkerConverters','createPositionBefore','fetchCommentThread','addComment','destroyed','createElement','_threads','collaboration.channelId','text','add','config','has','change:isReadOnly','conversion','_attachedThreads','addCommentThread','switchReadOnly','hasCommentThread','CommentsRepository','change:activeMarker','left','delete','getChangedMarkers','ready','getCommentThread','activeMarker','registerPostFixer','start','render','markers','set','stop','createRange','getMarkersGroup','differ','upcast','_detachCommentThread','for','length','size','document','getCommentThreads','ck-comment-marker','split','then','removeMarker','plugins','high','editing','newRange','model','dataDowncast','dataToMarker','pluginName','$marker','map','openNewCommentThread','view','comment:','destroy','hasMarkerForId','getAllMarkersForId','change','sort','push','editingDowncast','low','isCollapsed','listenTo','ck-comment-marker--active','schema','managedUsingOperations','markerName','reconvertMarker','init','affectsData','updateMarker','_handleMarkerAddAndRemove','editor','hasContent','comment','root','get'];(function(_0x52520b,_0x4998d6){const _0x569a97=function(_0x28a949){while(--_0x28a949){_0x52520b['push'](_0x52520b['shift']());}};_0x569a97(++_0x4998d6);}(_0x4998,0x1be));const _0x569a=function(_0x52520b,_0x4998d6){_0x52520b=_0x52520b-0x0;let _0x569a97=_0x4998[_0x52520b];return _0x569a97;};import{Plugin as _0x2589ea}from'ckeditor5/src/core';import{Rect as _0x226e55}from'ckeditor5/src/utils';import _0xbdfbc5 from'./commentsrepository';import _0x10e4f4 from'./addcommentthreadcommand';import{getMarkerDomElement as _0x141831}from'ckeditor5-collaboration/src/collaboration-core';import _0x40e1e5 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x2589ea{static get['requires'](){return[_0xbdfbc5,_0x40e1e5];}static get[_0x569a('0x34')](){return'CommentsEditing';}constructor(_0x417a3f){super(_0x417a3f),this[_0x569a('0x1d')]('isThreadsLoadingPaused',!0x0),_0x417a3f['data']['once'](_0x569a('0x16'),()=>this['isThreadsLoadingPaused']=!0x1),this[_0x569a('0x1d')](_0x569a('0x18'),null),this['on'](_0x569a('0x12'),(_0x2c3f2e,_0x424143,_0x1e8855,_0x484980)=>{_0x417a3f['model'][_0x569a('0x3d')](()=>{if(_0x1e8855){const {id:_0x37e1de}=G(_0x1e8855),_0x15e741=this['getAllMarkersForId'](_0x37e1de);for(const _0x51782d of _0x15e741)_0x417a3f[_0x569a('0x2f')][_0x569a('0x48')](_0x51782d);}if(_0x484980){const {id:_0x3ae01d}=G(_0x484980),_0x5a1c12=this['getAllMarkersForId'](_0x3ae01d);for(const _0x192f01 of _0x5a1c12)_0x417a3f['editing'][_0x569a('0x48')](_0x192f01);}});}),this['_attachedThreads']=new Set();}[_0x569a('0x49')](){const _0x532019=this['editor'],_0xa47d4c=_0x532019[_0x569a('0x2d')][_0x569a('0x51')]('CommentsRepository'),_0x43a74b=_0x532019[_0x569a('0x9')][_0x569a('0x51')](_0x569a('0x6'));_0x532019['commands']['add'](_0x569a('0xe'),new _0x10e4f4(_0x532019)),this[_0x569a('0x43')](_0x532019,_0x569a('0xb'),(_0x2aafab,_0x2c82ab,_0x5275de)=>{_0xa47d4c[_0x569a('0xf')](_0x5275de,_0x532019[_0x569a('0x9')]['get'](_0x569a('0x6')));}),this[_0x569a('0x43')](_0xa47d4c,q('removeCommentThread',_0x43a74b),(_0x316007,{threadId:_0x8615fb})=>{_0x532019[_0x569a('0x31')][_0x569a('0x3d')](_0x12d375=>{for(const _0x44e71e of this[_0x569a('0x3c')](_0x8615fb))_0x12d375[_0x569a('0x2c')](_0x44e71e);});const _0x35ae81=_0xa47d4c[_0x569a('0x17')](_0x8615fb);_0xa47d4c[_0x569a('0x10')](_0x8615fb)&&!_0x35ae81[_0x569a('0x25')]||_0x316007[_0x569a('0x1e')]();},{'priority':_0x569a('0x2e')}),this[_0x569a('0x43')](_0xa47d4c,q(_0x569a('0x2'),_0x43a74b),(_0x5c5bcc,{threadId:_0xa9c6fd,isFromAdapter:_0x2b13e2})=>{const _0x4593e2=this[_0x569a('0x3c')](_0xa9c6fd);if(_0x2b13e2||0x0==_0x4593e2[_0x569a('0x25')]||!_0xa47d4c[_0x569a('0x10')](_0xa9c6fd))return;0x1===_0xa47d4c[_0x569a('0x17')](_0xa9c6fd)['length']&&_0x532019['model'][_0x569a('0x3d')](_0x5c1100=>{for(const _0x27028d of _0x4593e2)_0x5c1100['updateMarker'](_0x27028d,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x569a('0x41')}),this[_0x569a('0x57')](),this[_0x569a('0x4c')]();}[_0x569a('0x3a')](){const _0x499d49=this[_0x569a('0x4d')][_0x569a('0x2d')][_0x569a('0x51')](_0x569a('0x11')),_0x1ed106=this[_0x569a('0x4d')]['config'][_0x569a('0x51')](_0x569a('0x6'));for(const _0x3300db of _0x499d49[_0x569a('0x28')]({'channelId':_0x1ed106}))_0x499d49[_0x569a('0x23')](_0x3300db['id']),_0x499d49[_0x569a('0x5')][_0x569a('0x14')](_0x3300db['id']);super[_0x569a('0x3a')]();}[_0x569a('0x3b')](_0x5f202c){return this[_0x569a('0x3c')](_0x5f202c)['length']>0x0;}[_0x569a('0x3c')](_0x1d0991){const _0x2b3ea8=this[_0x569a('0x4d')]['model'][_0x569a('0x1c')][_0x569a('0x51')](_0x569a('0x39')+_0x1d0991);return _0x2b3ea8?[_0x2b3ea8]:Array['from'](this['editor'][_0x569a('0x31')][_0x569a('0x1c')][_0x569a('0x20')](_0x569a('0x39')+_0x1d0991));}[_0x569a('0x57')](){const _0x407d57=this[_0x569a('0x4d')];_0x407d57[_0x569a('0xc')][_0x569a('0x24')](_0x569a('0x40'))['markerToHighlight']({'model':_0x569a('0x4f'),'view':_0x55729e=>{const {id:_0x38de79}=G(_0x55729e[_0x569a('0x47')]),_0x315d9f=[_0x569a('0x29')];return this['activeMarker']&&G(this[_0x569a('0x18')])['id']===_0x38de79&&_0x315d9f[_0x569a('0x3f')](_0x569a('0x44')),{'classes':_0x315d9f,'attributes':{'data-comment':_0x38de79}};}}),_0x407d57[_0x569a('0xc')][_0x569a('0x24')](_0x569a('0x32'))[_0x569a('0x56')]({'model':_0x569a('0x4f'),'view':_0x389057=>{const _0x3a37bc=_0x407d57[_0x569a('0x31')][_0x569a('0x1c')][_0x569a('0x51')](_0x389057),{id:_0x5efc2c,part:_0x3ff2af}=G(_0x389057);return _0x3a37bc&&!_0x3a37bc[_0x569a('0x4a')]?null:{'group':_0x569a('0x4f'),'name':_0x3ff2af?_0x5efc2c+':'+_0x3ff2af:_0x5efc2c};}}),_0x407d57[_0x569a('0xc')][_0x569a('0x24')](_0x569a('0x22'))['elementToElement']({'view':{'name':_0x569a('0x4f'),'attribute':{'id':/^\w/}},'model':(_0x351038,{writer:_0x6d7650})=>_0x6d7650[_0x569a('0x4')](_0x569a('0x35'),{'data-name':'comment:'+_0x351038['getAttribute']('id')})}),_0x407d57[_0x569a('0xc')][_0x569a('0x24')](_0x569a('0x22'))[_0x569a('0x33')]({'view':_0x569a('0x4f')});}[_0x569a('0x4c')](){const _0x106a80=this['editor'],_0x25d0dd=_0x106a80[_0x569a('0x2d')][_0x569a('0x51')](_0x569a('0x11')),_0x4dc6d7=new Set();_0x106a80[_0x569a('0x31')][_0x569a('0x27')][_0x569a('0x19')](_0x3440b3=>{let _0x574cb1=!0x1;for(const {name:_0x88931d,data:_0x319039}of _0x106a80[_0x569a('0x31')]['document'][_0x569a('0x21')][_0x569a('0x15')]()){const {group:_0x384456,id:_0x5e0c4b}=G(_0x88931d);let _0x2dbf50=_0x319039[_0x569a('0x30')];if('comment'!==_0x384456||!_0x2dbf50)continue;const _0x4dc5fd='$graveyard'===_0x2dbf50[_0x569a('0x50')]['rootName'];_0x4dc5fd||(_0x2dbf50=J(_0x2dbf50,_0x106a80[_0x569a('0x31')]),!_0x2dbf50||_0x2dbf50[_0x569a('0x53')](_0x319039[_0x569a('0x30')]))?!_0x2dbf50||!_0x106a80[_0x569a('0x31')][_0x569a('0x4e')](_0x2dbf50)||this[_0x569a('0xd')][_0x569a('0xa')](_0x5e0c4b)&&_0x4dc5fd?(_0x3440b3[_0x569a('0x2c')](_0x88931d),_0x574cb1=!0x0):_0x4dc5fd||(this['isThreadsLoadingPaused']?_0x4dc6d7[_0x569a('0x8')](_0x5e0c4b):this['_attachThreadToMarker'](_0x5e0c4b)):(_0x3440b3[_0x569a('0x4b')](_0x88931d,{'range':_0x2dbf50}),_0x574cb1=!0x0);}return _0x574cb1;}),this['on']('change:isThreadsLoadingPaused',(_0x2c0e67,_0x38921b,_0x1d98b8)=>{if(!_0x1d98b8&&_0x4dc6d7[_0x569a('0x26')])for(const _0x2dc331 of _0x4dc6d7)this[_0x569a('0x55')](_0x2dc331),_0x4dc6d7[_0x569a('0x14')](_0x2dc331);}),this[_0x569a('0x43')](_0x106a80[_0x569a('0x31')][_0x569a('0x1c')],'update:comment',(_0x558389,_0x2fb3d4,_0x1e4067,_0x4ce864)=>{if(_0x4ce864)return;const {id:_0x3136fb}=G(_0x2fb3d4['name']),_0x48c16d=_0x106a80[_0x569a('0x2d')][_0x569a('0x51')](_0x569a('0x11'))[_0x569a('0x17')](_0x3136fb);_0x4dc6d7['delete'](_0x3136fb),_0x48c16d&&!this[_0x569a('0x3b')](_0x3136fb)&&(this[_0x569a('0xd')][_0x569a('0x14')](_0x3136fb),_0x25d0dd[_0x569a('0x23')](_0x3136fb));});}[_0x569a('0x55')](_0x474b21){if(this[_0x569a('0xd')][_0x569a('0xa')](_0x474b21))return;this[_0x569a('0xd')][_0x569a('0x8')](_0x474b21);const _0x2ed2cb=this[_0x569a('0x4d')],_0x590c7b=_0x2ed2cb['plugins'][_0x569a('0x51')](_0x569a('0x11')),_0x439c83=_0x2ed2cb[_0x569a('0x9')][_0x569a('0x51')]('collaboration.channelId'),_0x10d319=()=>{const _0x204583=this['getAllMarkersForId'](_0x474b21);if(0x0==_0x204583[_0x569a('0x25')])return null;const _0x1ef15a=_0x204583[_0x569a('0x36')](_0x19dd09=>_0x141831(_0x2ed2cb[_0x569a('0x2f')],_0x19dd09));return _0x1ef15a[_0x569a('0x3e')]((_0x5bad4e,_0x16d5be)=>{const _0x4e0dcd=new _0x226e55(_0x5bad4e),_0x41439c=new _0x226e55(_0x16d5be),_0x261626=_0x4e0dcd[_0x569a('0x54')]-_0x41439c['top'];return 0x0==_0x261626?_0x4e0dcd[_0x569a('0x13')]-_0x41439c[_0x569a('0x13')]:_0x261626;}),_0x1ef15a[0x0];};!this[_0x569a('0x3c')](_0x474b21)[0x0][_0x569a('0x46')]?_0x2ed2cb[_0x569a('0x2f')][_0x569a('0x38')]['once'](_0x569a('0x1b'),()=>{_0x590c7b[_0x569a('0x37')]({'channelId':_0x439c83,'threadId':_0x474b21,'target':_0x10d319});},{'priority':_0x569a('0x41')}):_0x590c7b[_0x569a('0x1')]({'channelId':_0x439c83,'threadId':_0x474b21})[_0x569a('0x2b')](_0x52aeb2=>{if(_0x569a('0x3')!==_0x2ed2cb['state']){if(_0x52aeb2)_0x52aeb2['attachTo'](_0x10d319);else{const _0xa0dc9=this[_0x569a('0x3c')](_0x474b21);_0x2ed2cb[_0x569a('0x31')][_0x569a('0x3d')](_0x348364=>{for(const _0xa7f2f of _0xa0dc9)_0x348364[_0x569a('0x2c')](_0xa7f2f);});}}});}}function q(_0x35af8a,_0x4b7225){return _0x4b7225?_0x35af8a+':'+_0x4b7225:_0x35af8a;}function G(_0x389759){const _0x1f59f4=_0x389759[_0x569a('0x2a')](':');return{'group':_0x1f59f4[0x0],'id':_0x1f59f4[0x1],'part':_0x1f59f4[0x2]};}function J(_0x15ce98,_0x54aa1f){const _0x33fb25=_0x54aa1f[_0x569a('0x45')],_0x3fb16f=_0x54aa1f[_0x569a('0x1f')](_0x15ce98[_0x569a('0x1a')]);for(const _0x8913b5 of _0x15ce98['getWalker']()){const {type:_0x53579c,item:_0x2c2916,nextPosition:_0xad707d}=_0x8913b5;if(_0x569a('0x7')===_0x53579c||_0x33fb25[_0x569a('0x52')](_0x2c2916)){const _0x2d336e=_0x54aa1f[_0x569a('0x0')](_0x2c2916);_0x3fb16f['isCollapsed']&&(_0x3fb16f[_0x569a('0x1a')]=_0x2d336e),_0x3fb16f['end']=_0xad707d;}}return _0x3fb16f[_0x569a('0x42')]?null:_0x3fb16f;}