@ckeditor/ckeditor5-comments 35.2.0 → 35.3.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 (147) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +1 -1
  3. package/build/comments.js +2 -2
  4. package/build/translations/af.js +1 -1
  5. package/build/translations/ar.js +1 -1
  6. package/build/translations/bg.js +1 -1
  7. package/build/translations/bn.js +1 -1
  8. package/build/translations/bs.js +1 -1
  9. package/build/translations/ca.js +1 -1
  10. package/build/translations/cs.js +1 -1
  11. package/build/translations/da.js +1 -1
  12. package/build/translations/de-ch.js +1 -1
  13. package/build/translations/de.js +1 -1
  14. package/build/translations/el.js +1 -1
  15. package/build/translations/en-au.js +1 -1
  16. package/build/translations/es-co.js +1 -1
  17. package/build/translations/es.js +1 -1
  18. package/build/translations/et.js +1 -1
  19. package/build/translations/fa.js +1 -1
  20. package/build/translations/fi.js +1 -1
  21. package/build/translations/fr.js +1 -1
  22. package/build/translations/gl.js +1 -1
  23. package/build/translations/he.js +1 -1
  24. package/build/translations/hi.js +1 -1
  25. package/build/translations/hr.js +1 -1
  26. package/build/translations/hu.js +1 -1
  27. package/build/translations/id.js +1 -1
  28. package/build/translations/it.js +1 -1
  29. package/build/translations/ja.js +1 -1
  30. package/build/translations/jv.js +1 -1
  31. package/build/translations/ko.js +1 -1
  32. package/build/translations/lt.js +1 -1
  33. package/build/translations/lv.js +1 -1
  34. package/build/translations/ms.js +1 -1
  35. package/build/translations/nl.js +1 -1
  36. package/build/translations/no.js +1 -1
  37. package/build/translations/pl.js +1 -1
  38. package/build/translations/pt-br.js +1 -1
  39. package/build/translations/pt.js +1 -1
  40. package/build/translations/ro.js +1 -1
  41. package/build/translations/ru.js +1 -1
  42. package/build/translations/sk.js +1 -1
  43. package/build/translations/sr-latn.js +1 -1
  44. package/build/translations/sr.js +1 -1
  45. package/build/translations/sv.js +1 -1
  46. package/build/translations/th.js +1 -1
  47. package/build/translations/tk.js +1 -1
  48. package/build/translations/tr.js +1 -1
  49. package/build/translations/tt.js +1 -1
  50. package/build/translations/ug.js +1 -1
  51. package/build/translations/uk.js +1 -1
  52. package/build/translations/ur.js +1 -1
  53. package/build/translations/vi.js +1 -1
  54. package/build/translations/zh-cn.js +1 -1
  55. package/build/translations/zh.js +1 -1
  56. package/lang/contexts.json +4 -1
  57. package/lang/translations/af.po +12 -0
  58. package/lang/translations/ar.po +12 -0
  59. package/lang/translations/bg.po +12 -0
  60. package/lang/translations/bn.po +12 -0
  61. package/lang/translations/bs.po +12 -0
  62. package/lang/translations/ca.po +12 -0
  63. package/lang/translations/cs.po +12 -0
  64. package/lang/translations/da.po +12 -0
  65. package/lang/translations/de-ch.po +12 -0
  66. package/lang/translations/de.po +12 -0
  67. package/lang/translations/el.po +12 -0
  68. package/lang/translations/en-au.po +12 -0
  69. package/lang/translations/en.po +12 -0
  70. package/lang/translations/es-co.po +12 -0
  71. package/lang/translations/es.po +12 -0
  72. package/lang/translations/et.po +12 -0
  73. package/lang/translations/fa.po +12 -0
  74. package/lang/translations/fi.po +12 -0
  75. package/lang/translations/fr.po +12 -0
  76. package/lang/translations/gl.po +12 -0
  77. package/lang/translations/he.po +12 -0
  78. package/lang/translations/hi.po +12 -0
  79. package/lang/translations/hr.po +12 -0
  80. package/lang/translations/hu.po +12 -0
  81. package/lang/translations/id.po +12 -0
  82. package/lang/translations/it.po +12 -0
  83. package/lang/translations/ja.po +12 -0
  84. package/lang/translations/jv.po +12 -0
  85. package/lang/translations/ko.po +12 -0
  86. package/lang/translations/lt.po +12 -0
  87. package/lang/translations/lv.po +12 -0
  88. package/lang/translations/ms.po +12 -0
  89. package/lang/translations/nl.po +12 -0
  90. package/lang/translations/no.po +12 -0
  91. package/lang/translations/pl.po +12 -0
  92. package/lang/translations/pt-br.po +12 -0
  93. package/lang/translations/pt.po +12 -0
  94. package/lang/translations/ro.po +12 -0
  95. package/lang/translations/ru.po +12 -0
  96. package/lang/translations/sk.po +12 -0
  97. package/lang/translations/sr-latn.po +12 -0
  98. package/lang/translations/sr.po +12 -0
  99. package/lang/translations/sv.po +12 -0
  100. package/lang/translations/th.po +12 -0
  101. package/lang/translations/tk.po +12 -0
  102. package/lang/translations/tr.po +12 -0
  103. package/lang/translations/tt.po +12 -0
  104. package/lang/translations/ug.po +12 -0
  105. package/lang/translations/uk.po +12 -0
  106. package/lang/translations/ur.po +12 -0
  107. package/lang/translations/vi.po +12 -0
  108. package/lang/translations/zh-cn.po +12 -0
  109. package/lang/translations/zh.po +12 -0
  110. package/package.json +3 -3
  111. package/src/annotations/annotation.js +1 -1
  112. package/src/annotations/annotationcollection.js +1 -1
  113. package/src/annotations/annotations.js +1 -1
  114. package/src/annotations/annotationsuis.js +1 -1
  115. package/src/annotations/editorannotations.js +1 -1
  116. package/src/annotations/inlineannotations.js +1 -1
  117. package/src/annotations/narrowsidebar.js +1 -1
  118. package/src/annotations/sidebar.js +1 -1
  119. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  120. package/src/annotations/view/annotationview.js +1 -1
  121. package/src/annotations/view/sidebaritemview.js +1 -1
  122. package/src/annotations/view/sidebarview.js +1 -1
  123. package/src/annotations/widesidebar.js +1 -1
  124. package/src/comments/addcommentthreadcommand.js +1 -1
  125. package/src/comments/commentsediting.js +1 -1
  126. package/src/comments/commentsrepository.js +1 -1
  127. package/src/comments/commentsui.js +1 -1
  128. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  129. package/src/comments/integrations/importword.js +1 -1
  130. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  131. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  132. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  133. package/src/comments/ui/commentthreadcontroller.js +1 -1
  134. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  135. package/src/comments/ui/view/basecommentview.js +1 -1
  136. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  137. package/src/comments/ui/view/commentcontentview.js +1 -1
  138. package/src/comments/ui/view/commentinputview.js +1 -1
  139. package/src/comments/ui/view/commentslistview.js +1 -1
  140. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  141. package/src/comments/ui/view/commentthreadview.js +1 -1
  142. package/src/comments/ui/view/commentview.js +1 -1
  143. package/src/comments.js +1 -1
  144. package/src/commentsonly.js +1 -1
  145. package/src/utils/common-translations.js +1 -1
  146. package/src/utils/createmutationobserver.js +1 -1
  147. package/theme/comment.css +1 -1
@@ -69,3 +69,15 @@ msgstr "Yorum dizisinde kaydedilmemiş değişiklikler var."
69
69
  msgctxt "The additional information that comments comes from external source."
70
70
  msgid "EXTERNAL_COMMENT"
71
71
  msgstr "Bu yorum harici bir kaynaktan geliyor."
72
+
73
+ msgctxt "The additional information that comments comes from imported Word file."
74
+ msgid "EXTERNAL_IMPORT_WORD_COMMENT"
75
+ msgstr ""
76
+
77
+ msgctxt "The additional information that displayed author name comes from an external source."
78
+ msgid "EXTERNAL_AVATAR"
79
+ msgstr ""
80
+
81
+ msgctxt "The additional information that displayed author name comes from imported Word file."
82
+ msgid "EXTERNAL_IMPORT_WORD_AVATAR"
83
+ msgstr ""
@@ -68,3 +68,15 @@ msgstr ""
68
68
  msgctxt "The additional information that comments comes from external source."
69
69
  msgid "EXTERNAL_COMMENT"
70
70
  msgstr ""
71
+
72
+ msgctxt "The additional information that comments comes from imported Word file."
73
+ msgid "EXTERNAL_IMPORT_WORD_COMMENT"
74
+ msgstr ""
75
+
76
+ msgctxt "The additional information that displayed author name comes from an external source."
77
+ msgid "EXTERNAL_AVATAR"
78
+ msgstr ""
79
+
80
+ msgctxt "The additional information that displayed author name comes from imported Word file."
81
+ msgid "EXTERNAL_IMPORT_WORD_AVATAR"
82
+ msgstr ""
@@ -69,3 +69,15 @@ msgstr ""
69
69
  msgctxt "The additional information that comments comes from external source."
70
70
  msgid "EXTERNAL_COMMENT"
71
71
  msgstr ""
72
+
73
+ msgctxt "The additional information that comments comes from imported Word file."
74
+ msgid "EXTERNAL_IMPORT_WORD_COMMENT"
75
+ msgstr ""
76
+
77
+ msgctxt "The additional information that displayed author name comes from an external source."
78
+ msgid "EXTERNAL_AVATAR"
79
+ msgstr ""
80
+
81
+ msgctxt "The additional information that displayed author name comes from imported Word file."
82
+ msgid "EXTERNAL_IMPORT_WORD_AVATAR"
83
+ msgstr ""
@@ -71,3 +71,15 @@ msgstr "Незбережена зміна ланцюжка коментарів.
71
71
  msgctxt "The additional information that comments comes from external source."
72
72
  msgid "EXTERNAL_COMMENT"
73
73
  msgstr "Цей коментар походить від зовнішнього джерела."
74
+
75
+ msgctxt "The additional information that comments comes from imported Word file."
76
+ msgid "EXTERNAL_IMPORT_WORD_COMMENT"
77
+ msgstr ""
78
+
79
+ msgctxt "The additional information that displayed author name comes from an external source."
80
+ msgid "EXTERNAL_AVATAR"
81
+ msgstr ""
82
+
83
+ msgctxt "The additional information that displayed author name comes from imported Word file."
84
+ msgid "EXTERNAL_IMPORT_WORD_AVATAR"
85
+ msgstr ""
@@ -69,3 +69,15 @@ msgstr "تبصرے دھاگے میں غیر محفوظ تبدیلیاں ہیں۔
69
69
  msgctxt "The additional information that comments comes from external source."
70
70
  msgid "EXTERNAL_COMMENT"
71
71
  msgstr ""
72
+
73
+ msgctxt "The additional information that comments comes from imported Word file."
74
+ msgid "EXTERNAL_IMPORT_WORD_COMMENT"
75
+ msgstr ""
76
+
77
+ msgctxt "The additional information that displayed author name comes from an external source."
78
+ msgid "EXTERNAL_AVATAR"
79
+ msgstr ""
80
+
81
+ msgctxt "The additional information that displayed author name comes from imported Word file."
82
+ msgid "EXTERNAL_IMPORT_WORD_AVATAR"
83
+ msgstr ""
@@ -68,3 +68,15 @@ msgstr "Nội dung thay đổi chưa lưu trong chuỗi bình luận."
68
68
  msgctxt "The additional information that comments comes from external source."
69
69
  msgid "EXTERNAL_COMMENT"
70
70
  msgstr "Nhận xét này đến từ một nguồn bên ngoài."
71
+
72
+ msgctxt "The additional information that comments comes from imported Word file."
73
+ msgid "EXTERNAL_IMPORT_WORD_COMMENT"
74
+ msgstr ""
75
+
76
+ msgctxt "The additional information that displayed author name comes from an external source."
77
+ msgid "EXTERNAL_AVATAR"
78
+ msgstr ""
79
+
80
+ msgctxt "The additional information that displayed author name comes from imported Word file."
81
+ msgid "EXTERNAL_IMPORT_WORD_AVATAR"
82
+ msgstr ""
@@ -68,3 +68,15 @@ msgstr "评论区有未保存内容"
68
68
  msgctxt "The additional information that comments comes from external source."
69
69
  msgid "EXTERNAL_COMMENT"
70
70
  msgstr "此评论来自外部来源。"
71
+
72
+ msgctxt "The additional information that comments comes from imported Word file."
73
+ msgid "EXTERNAL_IMPORT_WORD_COMMENT"
74
+ msgstr ""
75
+
76
+ msgctxt "The additional information that displayed author name comes from an external source."
77
+ msgid "EXTERNAL_AVATAR"
78
+ msgstr ""
79
+
80
+ msgctxt "The additional information that displayed author name comes from imported Word file."
81
+ msgid "EXTERNAL_IMPORT_WORD_AVATAR"
82
+ msgstr ""
@@ -68,3 +68,15 @@ msgstr "討論串尚未儲存。"
68
68
  msgctxt "The additional information that comments comes from external source."
69
69
  msgid "EXTERNAL_COMMENT"
70
70
  msgstr "此留言來自外部來源。"
71
+
72
+ msgctxt "The additional information that comments comes from imported Word file."
73
+ msgid "EXTERNAL_IMPORT_WORD_COMMENT"
74
+ msgstr ""
75
+
76
+ msgctxt "The additional information that displayed author name comes from an external source."
77
+ msgid "EXTERNAL_AVATAR"
78
+ msgstr ""
79
+
80
+ msgctxt "The additional information that displayed author name comes from imported Word file."
81
+ msgid "EXTERNAL_IMPORT_WORD_AVATAR"
82
+ msgstr ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "35.2.0",
3
+ "version": "35.3.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -31,8 +31,8 @@
31
31
  ],
32
32
  "main": "src/index.js",
33
33
  "dependencies": {
34
- "ckeditor5": "^35.2.0",
35
- "ckeditor5-collaboration": "^35.2.0",
34
+ "ckeditor5": "^35.3.0",
35
+ "ckeditor5-collaboration": "^35.3.0",
36
36
  "lodash-es": "^4.17.11"
37
37
  }
38
38
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5fc2=['_id','target','offsetParent','annotation-invalid-target','_target','getClientRects','focusTracker','add','destroy','view','_isTargetElementVisible','stopListening','isActive','remove','_type','focusableElements','_assertCorrectTarget','updateTargetRect','element','innerView','set','isVisible','nodeType','mainView','targetRect','clear','function','object'];(function(_0x14b43c,_0x5fc29e){const _0x1ffbfd=function(_0x58b3cf){while(--_0x58b3cf){_0x14b43c['push'](_0x14b43c['shift']());}};_0x1ffbfd(++_0x5fc29e);}(_0x5fc2,0xbb));const _0x1ffb=function(_0x14b43c,_0x5fc29e){_0x14b43c=_0x14b43c-0x0;let _0x1ffbfd=_0x5fc2[_0x14b43c];return _0x1ffbfd;};import{CKEditorError as _0x495f21,Rect as _0x217176,Collection as _0x44c3ca,mix as _0x378116,ObservableMixin as _0x9535b1}from'ckeditor5/src/utils';export default class d{constructor({view:_0x4ef146,target:_0x575461,type:_0x4c08cf,isVisible:_0x4aa8ab=!0x0}){this[_0x1ffb('0x12')]=_0x4ef146,this[_0x1ffb('0x12')][_0x1ffb('0x1b')]||this[_0x1ffb('0x12')]['render'](),this[_0x1ffb('0x17')]=_0x4c08cf,this[_0x1ffb('0xd')]=_0x575461,this['_assertCorrectTarget'](),this['focusableElements']=new _0x44c3ca([this['view']['element']],{'idProperty':_0x1ffb('0x9')}),this['focusableElements']['on'](_0x1ffb('0x10'),(_0x5e1a56,_0x1abba1)=>{this['view'][_0x1ffb('0xf')][_0x1ffb('0x10')](_0x1abba1);}),this['focusableElements']['on']('remove',(_0x5ad710,_0x10bd58)=>{this['view']['focusTracker'][_0x1ffb('0x16')](_0x10bd58);}),this[_0x1ffb('0x1')](_0x1ffb('0x2'),_0x4aa8ab);}get['type'](){return'function'==typeof this[_0x1ffb('0x17')]?this[_0x1ffb('0x17')]():this['_type'];}get[_0x1ffb('0x0')](){return this[_0x1ffb('0x12')][_0x1ffb('0x4')];}get[_0x1ffb('0xa')](){return _0x1ffb('0x7')==typeof this[_0x1ffb('0xd')]?this['_target']():this['_target'];}get[_0x1ffb('0x5')](){const _0x40b03f=this[_0x1ffb('0xa')];return this['_assertCorrectTarget'](),null!==_0x40b03f&&this[_0x1ffb('0x13')]()?new _0x217176(_0x40b03f):null;}get[_0x1ffb('0x15')](){return this[_0x1ffb('0x12')]['isActive'];}set[_0x1ffb('0x15')](_0x53aba9){this['view'][_0x1ffb('0x15')]=_0x53aba9,this['view']['mainView'][_0x1ffb('0x15')]=_0x53aba9;}[_0x1ffb('0x1a')](){this['view'][_0x1ffb('0x5')]=this['targetRect'];}[_0x1ffb('0x11')](){this[_0x1ffb('0x18')][_0x1ffb('0x14')](),this[_0x1ffb('0x18')][_0x1ffb('0x6')](),this['stopListening']();}['refreshVisibility'](){this[_0x1ffb('0x2')]=this[_0x1ffb('0x13')]();}[_0x1ffb('0x13')](){const _0x24a27a=this[_0x1ffb('0xa')];if(!p(_0x24a27a))return!0x0;if(_0x24a27a[_0x1ffb('0xb')])return!0x0;return!!_0x24a27a[_0x1ffb('0xe')]()['item'](0x0);}[_0x1ffb('0x19')](){const _0x51dda1=this[_0x1ffb('0xa')];if(!(null===_0x51dda1||_0x51dda1 instanceof _0x217176||p(_0x51dda1)))throw new _0x495f21(_0x1ffb('0xc'),null,{'target':_0x51dda1});}}function p(_0x671710){return null!==_0x671710&&_0x1ffb('0x8')==typeof _0x671710&&0x1===_0x671710[_0x1ffb('0x3')];}_0x378116(d,_0x9535b1);
23
+ const _0x3b1f=['annotation-invalid-target','destroy','object','view','focusableElements','type','_assertCorrectTarget','mainView','_type','isActive','add','_isTargetElementVisible','isVisible','item','stopListening','refreshVisibility','render','updateTargetRect','function','_id','element','focusTracker','targetRect','nodeType','getClientRects','_target','remove','target'];(function(_0x15fc96,_0x3b1f62){const _0x1a13c5=function(_0x3a79b2){while(--_0x3a79b2){_0x15fc96['push'](_0x15fc96['shift']());}};_0x1a13c5(++_0x3b1f62);}(_0x3b1f,0xc0));const _0x1a13=function(_0x15fc96,_0x3b1f62){_0x15fc96=_0x15fc96-0x0;let _0x1a13c5=_0x3b1f[_0x15fc96];return _0x1a13c5;};import{CKEditorError as _0x2b517e,Rect as _0x442f16,Collection as _0x3eddd8,mix as _0x13acd9,ObservableMixin as _0x32c729}from'ckeditor5/src/utils';export default class d{constructor({view:_0x3bdbed,target:_0x19693e,type:_0x27bb89,isVisible:_0xb3291f=!0x0}){this[_0x1a13('0x7')]=_0x3bdbed,this[_0x1a13('0x7')][_0x1a13('0x18')]||this['view'][_0x1a13('0x14')](),this[_0x1a13('0xc')]=_0x27bb89,this[_0x1a13('0x1')]=_0x19693e,this['_assertCorrectTarget'](),this[_0x1a13('0x8')]=new _0x3eddd8([this[_0x1a13('0x7')][_0x1a13('0x18')]],{'idProperty':_0x1a13('0x17')}),this['focusableElements']['on'](_0x1a13('0xe'),(_0x1ace90,_0x280a62)=>{this[_0x1a13('0x7')]['focusTracker'][_0x1a13('0xe')](_0x280a62);}),this[_0x1a13('0x8')]['on']('remove',(_0x577347,_0x545b1a)=>{this[_0x1a13('0x7')][_0x1a13('0x19')][_0x1a13('0x2')](_0x545b1a);}),this['set'](_0x1a13('0x10'),_0xb3291f);}get[_0x1a13('0x9')](){return'function'==typeof this[_0x1a13('0xc')]?this['_type']():this[_0x1a13('0xc')];}get['innerView'](){return this[_0x1a13('0x7')]['mainView'];}get[_0x1a13('0x3')](){return _0x1a13('0x16')==typeof this[_0x1a13('0x1')]?this[_0x1a13('0x1')]():this[_0x1a13('0x1')];}get['targetRect'](){const _0x36a3d0=this[_0x1a13('0x3')];return this[_0x1a13('0xa')](),null!==_0x36a3d0&&this['_isTargetElementVisible']()?p(_0x36a3d0)?new _0x442f16(_0x36a3d0[_0x1a13('0x0')]()[_0x1a13('0x11')](0x0)):new _0x442f16(_0x36a3d0):null;}get['isActive'](){return this[_0x1a13('0x7')][_0x1a13('0xd')];}set[_0x1a13('0xd')](_0x3ad913){this[_0x1a13('0x7')][_0x1a13('0xd')]=_0x3ad913,this[_0x1a13('0x7')][_0x1a13('0xb')][_0x1a13('0xd')]=_0x3ad913;}[_0x1a13('0x15')](){this[_0x1a13('0x7')][_0x1a13('0x1a')]=this[_0x1a13('0x1a')];}[_0x1a13('0x5')](){this['focusableElements'][_0x1a13('0x12')](),this[_0x1a13('0x8')]['clear'](),this[_0x1a13('0x12')]();}[_0x1a13('0x13')](){this[_0x1a13('0x10')]=this[_0x1a13('0xf')]();}[_0x1a13('0xf')](){const _0xd13270=this[_0x1a13('0x3')];if(!p(_0xd13270))return!0x0;if(_0xd13270['offsetParent'])return!0x0;return!!_0xd13270['getClientRects']()[_0x1a13('0x11')](0x0);}[_0x1a13('0xa')](){const _0xb352e=this[_0x1a13('0x3')];if(!(null===_0xb352e||_0xb352e instanceof _0x442f16||p(_0xb352e)))throw new _0x2b517e(_0x1a13('0x4'),null,{'target':_0xb352e});}}function p(_0x165e08){return null!==_0x165e08&&_0x1a13('0x6')==typeof _0x165e08&&0x1===_0x165e08[_0x1a13('0x1b')];}_0x13acd9(d,_0x32c729);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2987=['focus','updateTargetRect','delete','_viewToAnnotation','targetRect','change:isFocused','top','set','getIndex','isFocused','add','remove','annotationcollection-not-existing-item','focusableElements','clear','stopListening','has','focusTracker','refreshPositioning','blur','left','from','get','_focusTracker','listenTo','_sort','getByView','destroy','length','view','_innerViewToAnnotation','fire','_items','innerView'];(function(_0x52f7aa,_0x298752){const _0x1263e4=function(_0x806a4a){while(--_0x806a4a){_0x52f7aa['push'](_0x52f7aa['shift']());}};_0x1263e4(++_0x298752);}(_0x2987,0x1c0));const _0x1263=function(_0x52f7aa,_0x298752){_0x52f7aa=_0x52f7aa-0x0;let _0x1263e4=_0x2987[_0x52f7aa];return _0x1263e4;};import{CKEditorError as _0xb839ea,Collection as _0xfad7a3,FocusTracker as _0x11f680}from'ckeditor5/src/utils';export default class x extends _0xfad7a3{constructor(_0x3e88b0=[]){super(),this[_0x1263('0x18')]=new Map(),this['_viewToAnnotation']=new Map(),this[_0x1263('0x11')]=new _0x11f680(),this[_0x1263('0x11')]['on']('change:isFocused',(_0xc18d40,_0x713ae1,_0x1a67dc)=>{_0x1a67dc||this[_0x1263('0x19')](_0x1263('0xd'));});for(const _0x55036d of _0x3e88b0)this[_0x1263('0x4')](_0x55036d);}get[_0x1263('0x3')](){return this[_0x1263('0x11')][_0x1263('0x3')];}[_0x1263('0x4')](_0x68522e){if(this[_0x1263('0xa')](_0x68522e))throw new _0xb839ea('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation'][_0x1263('0x1')](_0x68522e[_0x1263('0x1b')],_0x68522e),this['_viewToAnnotation'][_0x1263('0x1')](_0x68522e[_0x1263('0x17')],_0x68522e);for(const _0x3e0dfc of _0x68522e[_0x1263('0x7')])this[_0x1263('0x11')]['add'](_0x3e0dfc);this[_0x1263('0x12')](_0x68522e[_0x1263('0x7')],_0x1263('0x4'),(_0x36a3e2,_0x5b949b)=>{this['_focusTracker'][_0x1263('0x4')](_0x5b949b);}),this[_0x1263('0x12')](_0x68522e[_0x1263('0x7')],'remove',(_0x847cb0,_0x1da5e5)=>{this[_0x1263('0x11')][_0x1263('0x5')](_0x1da5e5);}),this[_0x1263('0x12')](_0x68522e[_0x1263('0x17')][_0x1263('0xb')],_0x1263('0x21'),(_0x6a3671,_0x656175,_0x457640)=>{_0x457640&&this[_0x1263('0x19')](_0x1263('0x1c'),_0x68522e);}),_0x68522e[_0x1263('0x1d')]();const _0x203c59=this['_getOrderInContent'](_0x68522e[_0x1263('0x17')][_0x1263('0x20')]);super[_0x1263('0x4')](_0x68522e,_0x203c59);}[_0x1263('0x5')](_0x532a07){if(!this[_0x1263('0xa')](_0x532a07))throw new _0xb839ea(_0x1263('0x6'),null);this['stopListening'](_0x532a07['view'][_0x1263('0xb')]),this[_0x1263('0x9')](_0x532a07[_0x1263('0x7')]);for(const _0x130d02 of _0x532a07[_0x1263('0x7')])this[_0x1263('0x11')][_0x1263('0x5')](_0x130d02);this[_0x1263('0x1f')]['delete'](_0x532a07[_0x1263('0x17')]),this[_0x1263('0x18')][_0x1263('0x1e')](_0x532a07[_0x1263('0x1b')]),super['remove'](_0x532a07);}['getByInnerView'](_0x4cc48f){return this[_0x1263('0x18')][_0x1263('0x10')](_0x4cc48f);}[_0x1263('0x14')](_0x4be61a){return this[_0x1263('0x1f')][_0x1263('0x10')](_0x4be61a);}[_0x1263('0x15')](){super['clear'](),this['stopListening'](),this[_0x1263('0x18')][_0x1263('0x8')](),this[_0x1263('0x1f')][_0x1263('0x8')](),this[_0x1263('0x11')][_0x1263('0x15')]();}[_0x1263('0xc')](){for(const _0x2d47e3 of this)_0x2d47e3['updateTargetRect']();this[_0x1263('0x13')]();}[_0x1263('0x13')](){const _0x4ab779=Array[_0x1263('0xf')](this)['sort']((_0x3bc929,_0xfb1f7)=>y(_0x3bc929['view'][_0x1263('0x20')],_0xfb1f7[_0x1263('0x17')]['targetRect']));for(let _0x5dca2f=_0x4ab779[_0x1263('0x16')]-0x1;_0x5dca2f>0x0;_0x5dca2f--){const _0x2f731f=_0x4ab779[_0x5dca2f];_0x5dca2f!==this[_0x1263('0x2')](_0x2f731f)&&(this[_0x1263('0x5')](_0x2f731f),this['add'](_0x2f731f,_0x5dca2f));}}['_getOrderInContent'](_0x52c63d){let _0x361b26=0x0;if(!_0x52c63d)return this[_0x1263('0x1a')]['length'];for(const _0x557c0e of this){const _0x4aba8a=_0x557c0e[_0x1263('0x17')][_0x1263('0x20')];if(_0x4aba8a){if(y(_0x52c63d,_0x4aba8a)<0x0)return _0x361b26;_0x361b26++;}}return _0x361b26;}}export function bindAnnotationCollections({source:_0x46685b,target:_0x143cd7,filter:_0x6062e9}){for(const _0x475a75 of _0x46685b)_0x6062e9(_0x475a75)&&_0x143cd7[_0x1263('0x4')](_0x475a75);_0x143cd7['listenTo'](_0x46685b,_0x1263('0x4'),(_0x5e0e82,_0x338c9e)=>{_0x6062e9(_0x338c9e)&&_0x143cd7[_0x1263('0x4')](_0x338c9e);}),_0x143cd7['listenTo'](_0x46685b,_0x1263('0x5'),(_0x1bb08a,_0x292a07)=>{_0x143cd7[_0x1263('0xa')](_0x292a07)&&_0x143cd7[_0x1263('0x5')](_0x292a07);});}function y(_0x5a7027,_0x55fa71){if(null===_0x5a7027&&null===_0x55fa71)return 0x0;if(null===_0x5a7027)return-0x1;if(null===_0x55fa71)return 0x1;const _0x23b3e1=_0x5a7027[_0x1263('0x0')]-_0x55fa71['top'];return 0x0==_0x23b3e1?_0x5a7027[_0x1263('0xe')]-_0x55fa71[_0x1263('0xe')]:_0x23b3e1;}
23
+ const _0xbc03=['view','change:isFocused','refreshPositioning','add','set','_sort','has','_viewToAnnotation','_innerViewToAnnotation','innerView','top','focusableElements','delete','isFocused','_items','get','remove','targetRect','_getOrderInContent','_focusTracker','left','stopListening','length','fire','getByInnerView','destroy','clear','focusTracker','updateTargetRect','sort','blur','listenTo','focus','getIndex'];(function(_0x211402,_0xbc036e){const _0x2b94d2=function(_0x1521b2){while(--_0x1521b2){_0x211402['push'](_0x211402['shift']());}};_0x2b94d2(++_0xbc036e);}(_0xbc03,0xef));const _0x2b94=function(_0x211402,_0xbc036e){_0x211402=_0x211402-0x0;let _0x2b94d2=_0xbc03[_0x211402];return _0x2b94d2;};import{CKEditorError as _0x41cbe0,Collection as _0x33a713,FocusTracker as _0xfa04aa}from'ckeditor5/src/utils';export default class x extends _0x33a713{constructor(_0x20b289=[]){super(),this[_0x2b94('0x7')]=new Map(),this[_0x2b94('0x6')]=new Map(),this[_0x2b94('0x12')]=new _0xfa04aa(),this[_0x2b94('0x12')]['on'](_0x2b94('0x0'),(_0x545ec8,_0x3bbe11,_0x1a3da9)=>{_0x1a3da9||this[_0x2b94('0x16')](_0x2b94('0x1d'));});for(const _0x2b38d9 of _0x20b289)this['add'](_0x2b38d9);}get[_0x2b94('0xc')](){return this[_0x2b94('0x12')][_0x2b94('0xc')];}[_0x2b94('0x2')](_0x1f3c72){if(this[_0x2b94('0x5')](_0x1f3c72))throw new _0x41cbe0('annotationcollection-duplicated-item',null);this[_0x2b94('0x7')][_0x2b94('0x3')](_0x1f3c72[_0x2b94('0x8')],_0x1f3c72),this[_0x2b94('0x6')][_0x2b94('0x3')](_0x1f3c72[_0x2b94('0x21')],_0x1f3c72);for(const _0x5d797a of _0x1f3c72[_0x2b94('0xa')])this[_0x2b94('0x12')][_0x2b94('0x2')](_0x5d797a);this[_0x2b94('0x1e')](_0x1f3c72['focusableElements'],_0x2b94('0x2'),(_0x570dcd,_0x3e049e)=>{this[_0x2b94('0x12')][_0x2b94('0x2')](_0x3e049e);}),this[_0x2b94('0x1e')](_0x1f3c72[_0x2b94('0xa')],_0x2b94('0xf'),(_0x492ad4,_0x57b388)=>{this['_focusTracker'][_0x2b94('0xf')](_0x57b388);}),this['listenTo'](_0x1f3c72[_0x2b94('0x21')]['focusTracker'],_0x2b94('0x0'),(_0x11c31c,_0x41f6ea,_0x4e48e1)=>{_0x4e48e1&&this['fire'](_0x2b94('0x1f'),_0x1f3c72);}),_0x1f3c72[_0x2b94('0x1b')]();const _0x2d835b=this['_getOrderInContent'](_0x1f3c72[_0x2b94('0x21')][_0x2b94('0x10')]);super[_0x2b94('0x2')](_0x1f3c72,_0x2d835b);}[_0x2b94('0xf')](_0x3f4eca){if(!this[_0x2b94('0x5')](_0x3f4eca))throw new _0x41cbe0('annotationcollection-not-existing-item',null);this[_0x2b94('0x14')](_0x3f4eca[_0x2b94('0x21')][_0x2b94('0x1a')]),this[_0x2b94('0x14')](_0x3f4eca[_0x2b94('0xa')]);for(const _0x5123d4 of _0x3f4eca[_0x2b94('0xa')])this['_focusTracker'][_0x2b94('0xf')](_0x5123d4);this[_0x2b94('0x6')][_0x2b94('0xb')](_0x3f4eca[_0x2b94('0x21')]),this[_0x2b94('0x7')][_0x2b94('0xb')](_0x3f4eca[_0x2b94('0x8')]),super[_0x2b94('0xf')](_0x3f4eca);}[_0x2b94('0x17')](_0x499bc2){return this[_0x2b94('0x7')][_0x2b94('0xe')](_0x499bc2);}['getByView'](_0x1c758f){return this[_0x2b94('0x6')]['get'](_0x1c758f);}[_0x2b94('0x18')](){super[_0x2b94('0x19')](),this[_0x2b94('0x14')](),this[_0x2b94('0x7')][_0x2b94('0x19')](),this[_0x2b94('0x6')][_0x2b94('0x19')](),this[_0x2b94('0x12')][_0x2b94('0x18')]();}[_0x2b94('0x1')](){for(const _0x504fbf of this)_0x504fbf['updateTargetRect']();this[_0x2b94('0x4')]();}[_0x2b94('0x4')](){const _0x573cd6=Array['from'](this)[_0x2b94('0x1c')]((_0x460f19,_0x72548e)=>y(_0x460f19[_0x2b94('0x21')][_0x2b94('0x10')],_0x72548e[_0x2b94('0x21')][_0x2b94('0x10')]));for(let _0x4acc46=_0x573cd6[_0x2b94('0x15')]-0x1;_0x4acc46>0x0;_0x4acc46--){const _0x351c4f=_0x573cd6[_0x4acc46];_0x4acc46!==this[_0x2b94('0x20')](_0x351c4f)&&(this[_0x2b94('0xf')](_0x351c4f),this['add'](_0x351c4f,_0x4acc46));}}[_0x2b94('0x11')](_0x5d7188){let _0x3170a5=0x0;if(!_0x5d7188)return this[_0x2b94('0xd')][_0x2b94('0x15')];for(const _0x35e08b of this){const _0x52216b=_0x35e08b[_0x2b94('0x21')][_0x2b94('0x10')];if(_0x52216b){if(y(_0x5d7188,_0x52216b)<0x0)return _0x3170a5;_0x3170a5++;}}return _0x3170a5;}}export function bindAnnotationCollections({source:_0x3193fc,target:_0x137391,filter:_0x57d398}){for(const _0x55cedb of _0x3193fc)_0x57d398(_0x55cedb)&&_0x137391[_0x2b94('0x2')](_0x55cedb);_0x137391['listenTo'](_0x3193fc,_0x2b94('0x2'),(_0x5e48af,_0x300259)=>{_0x57d398(_0x300259)&&_0x137391['add'](_0x300259);}),_0x137391[_0x2b94('0x1e')](_0x3193fc,_0x2b94('0xf'),(_0x5d5519,_0x1c23b0)=>{_0x137391['has'](_0x1c23b0)&&_0x137391['remove'](_0x1c23b0);});}function y(_0x3f0eae,_0x46107b){if(null===_0x3f0eae&&null===_0x46107b)return 0x0;if(null===_0x3f0eae)return-0x1;if(null===_0x46107b)return 0x1;const _0x539f0d=_0x3f0eae[_0x2b94('0x9')]-_0x46107b[_0x2b94('0x9')];return 0x0==_0x539f0d?_0x3f0eae[_0x2b94('0x13')]-_0x46107b[_0x2b94('0x13')]:_0x539f0d;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5bcb=['has','activate','_visibleAnnotations','getByInnerView','pluginName','Annotations','add','_activateAnnotation','collection','activeAnnotations','_deactivateAllAnnotations','change:isVisible','delete','remove','listenTo','createAnnotationView','deactivateAll','_removeActiveAnnotation','destroy','refreshPositioning','fire','stopListening','isVisible'];(function(_0x24620e,_0x5bcb1f){const _0x1cb836=function(_0x54676d){while(--_0x54676d){_0x24620e['push'](_0x24620e['shift']());}};_0x1cb836(++_0x5bcb1f);}(_0x5bcb,0xfc));const _0x1cb8=function(_0x24620e,_0x5bcb1f){_0x24620e=_0x24620e-0x0;let _0x1cb836=_0x5bcb[_0x24620e];return _0x1cb836;};import{ContextPlugin as _0x34775a}from'ckeditor5/src/core';import _0x1b9cfe from'./annotation';import _0x422537 from'./annotationcollection';import _0x121ac4 from'./view/annotationview';export default class V extends _0x34775a{static get[_0x1cb8('0x5')](){return _0x1cb8('0x6');}constructor(_0x3ae834){super(_0x3ae834),this[_0x1cb8('0x9')]=new _0x422537(),this[_0x1cb8('0x3')]=new _0x422537(),this['set'](_0x1cb8('0xa'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x1cb8('0x7')](_0x23d92a){this[_0x1cb8('0x9')][_0x1cb8('0x7')](_0x23d92a);}[_0x1cb8('0xe')](_0x4efeb4){this[_0x1cb8('0x9')]['remove'](_0x4efeb4),_0x4efeb4[_0x1cb8('0x13')]();}['refreshVisibility'](){for(const _0x17f988 of this['collection'])_0x17f988['refreshVisibility']();}['refreshPositioning'](){this[_0x1cb8('0x3')][_0x1cb8('0x14')]();}[_0x1cb8('0x4')](_0x143823){return this[_0x1cb8('0x9')][_0x1cb8('0x4')](_0x143823);}[_0x1cb8('0x11')](){this[_0x1cb8('0x15')](_0x1cb8('0xb'));}[_0x1cb8('0x13')](){for(const _0x3078a6 of this[_0x1cb8('0x9')])_0x3078a6[_0x1cb8('0x13')]();this[_0x1cb8('0x3')][_0x1cb8('0x13')](),this['collection'][_0x1cb8('0x13')](),super[_0x1cb8('0x13')]();}[_0x1cb8('0x2')](_0xeca1d8){this[_0x1cb8('0x15')](_0x1cb8('0x8'),_0xeca1d8);}['createAnnotation'](_0x5ab575){return new _0x1b9cfe(_0x5ab575);}[_0x1cb8('0x10')](_0x4b5219,_0x2923e9){return new _0x121ac4(_0x4b5219,_0x2923e9);}['_addActiveAnnotation'](_0x2099c3){const _0x3abea8=new Set(this[_0x1cb8('0xa')]);_0x3abea8[_0x1cb8('0x7')](_0x2099c3),this['activeAnnotations']=_0x3abea8;}[_0x1cb8('0x12')](_0x3f0469){const _0xaa1f2f=new Set(this[_0x1cb8('0xa')]);_0xaa1f2f[_0x1cb8('0xd')](_0x3f0469),this['activeAnnotations']=_0xaa1f2f;}['_bindAnnotationsToVisibleAnnotations'](){const _0x136411=this[_0x1cb8('0x9')],_0x585075=this[_0x1cb8('0x3')];function _0x27ad81(_0xf64de1){const _0xd968c0=_0xf64de1['source'];_0xd968c0[_0x1cb8('0x0')]&&!_0x585075[_0x1cb8('0x1')](_0xd968c0)?_0x585075[_0x1cb8('0x7')](_0xd968c0):!_0xd968c0[_0x1cb8('0x0')]&&_0x585075[_0x1cb8('0x1')](_0xd968c0)&&_0x585075[_0x1cb8('0xe')](_0xd968c0);}this['listenTo'](_0x136411,_0x1cb8('0x7'),(_0x19881c,_0x59ed4b)=>{_0x59ed4b[_0x1cb8('0x0')]&&_0x585075[_0x1cb8('0x7')](_0x59ed4b),this[_0x1cb8('0xf')](_0x59ed4b,_0x1cb8('0xc'),_0x27ad81);}),this[_0x1cb8('0xf')](_0x136411,_0x1cb8('0xe'),(_0x50ad71,_0x2d7fa1)=>{_0x585075[_0x1cb8('0x1')](_0x2d7fa1)&&_0x585075[_0x1cb8('0xe')](_0x2d7fa1),this[_0x1cb8('0x16')](_0x2d7fa1,_0x1cb8('0xc'),_0x27ad81);});}}
23
+ const _0x46b5=['createAnnotationView','collection','fire','has','source','activeAnnotations','_deactivateAllAnnotations','destroy','refreshVisibility','remove','activate','set','isVisible','_activateAnnotation','_bindAnnotationsToVisibleAnnotations','change:isVisible','Annotations','_addActiveAnnotation','_removeActiveAnnotation','createAnnotation','refreshPositioning','add','getByInnerView','deactivateAll','_visibleAnnotations','listenTo'];(function(_0x42be8d,_0x46b573){const _0x568cb3=function(_0x4ec3d6){while(--_0x4ec3d6){_0x42be8d['push'](_0x42be8d['shift']());}};_0x568cb3(++_0x46b573);}(_0x46b5,0x17c));const _0x568c=function(_0x42be8d,_0x46b573){_0x42be8d=_0x42be8d-0x0;let _0x568cb3=_0x46b5[_0x42be8d];return _0x568cb3;};import{ContextPlugin as _0x7ab8b7}from'ckeditor5/src/core';import _0x343109 from'./annotation';import _0x29ce5e from'./annotationcollection';import _0x5d6fe7 from'./view/annotationview';export default class V extends _0x7ab8b7{static get['pluginName'](){return _0x568c('0x0');}constructor(_0x1b56ec){super(_0x1b56ec),this[_0x568c('0xb')]=new _0x29ce5e(),this['_visibleAnnotations']=new _0x29ce5e(),this[_0x568c('0x15')](_0x568c('0xf'),new Set()),this[_0x568c('0x18')]();}[_0x568c('0x5')](_0x5c4fad){this['collection'][_0x568c('0x5')](_0x5c4fad);}[_0x568c('0x13')](_0x1cef29){this[_0x568c('0xb')][_0x568c('0x13')](_0x1cef29),_0x1cef29[_0x568c('0x11')]();}[_0x568c('0x12')](){for(const _0x5f28d0 of this['collection'])_0x5f28d0[_0x568c('0x12')]();}[_0x568c('0x4')](){this['_visibleAnnotations'][_0x568c('0x4')]();}[_0x568c('0x6')](_0x36535a){return this['collection'][_0x568c('0x6')](_0x36535a);}[_0x568c('0x7')](){this[_0x568c('0xc')](_0x568c('0x10'));}[_0x568c('0x11')](){for(const _0x4ed0e4 of this['collection'])_0x4ed0e4[_0x568c('0x11')]();this[_0x568c('0x8')][_0x568c('0x11')](),this['collection'][_0x568c('0x11')](),super[_0x568c('0x11')]();}[_0x568c('0x14')](_0x3b3c5e){this['fire'](_0x568c('0x17'),_0x3b3c5e);}[_0x568c('0x3')](_0x1313a4){return new _0x343109(_0x1313a4);}[_0x568c('0xa')](_0x535a3c,_0x5cb2c4){return new _0x5d6fe7(_0x535a3c,_0x5cb2c4);}[_0x568c('0x1')](_0x3966b3){const _0x4ee205=new Set(this[_0x568c('0xf')]);_0x4ee205[_0x568c('0x5')](_0x3966b3),this[_0x568c('0xf')]=_0x4ee205;}[_0x568c('0x2')](_0x2ff787){const _0x310497=new Set(this[_0x568c('0xf')]);_0x310497['delete'](_0x2ff787),this['activeAnnotations']=_0x310497;}['_bindAnnotationsToVisibleAnnotations'](){const _0x4d8ed6=this[_0x568c('0xb')],_0x4dca8c=this[_0x568c('0x8')];function _0x2b7191(_0x874b52){const _0x3d486d=_0x874b52[_0x568c('0xe')];_0x3d486d[_0x568c('0x16')]&&!_0x4dca8c[_0x568c('0xd')](_0x3d486d)?_0x4dca8c[_0x568c('0x5')](_0x3d486d):!_0x3d486d[_0x568c('0x16')]&&_0x4dca8c[_0x568c('0xd')](_0x3d486d)&&_0x4dca8c[_0x568c('0x13')](_0x3d486d);}this['listenTo'](_0x4d8ed6,_0x568c('0x5'),(_0x14adc9,_0x25da62)=>{_0x25da62[_0x568c('0x16')]&&_0x4dca8c[_0x568c('0x5')](_0x25da62),this['listenTo'](_0x25da62,'change:isVisible',_0x2b7191);}),this[_0x568c('0x9')](_0x4d8ed6,'remove',(_0xcb8d09,_0x491d84)=>{_0x4dca8c[_0x568c('0xd')](_0x491d84)&&_0x4dca8c[_0x568c('0x13')](_0x491d84),this['stopListening'](_0x491d84,_0x568c('0x19'),_0x2b7191);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1944=['_uis','_setSelectedAnnotations','detach','isActive','remove','_uisData','context','attach','AnnotationsUIs','_assertAnnotationDoesNotBelongToMultipleUIs','requires','refilterAnnotations','delete','has','listenTo','filter','activate','function','annotationsuis-annotation-mismatch','activeUIs','_addActiveAnnotation','plugins','size','annotationsuis-register-already-registered','annotationsuis-activate-missing-ui','get','from','deactivate','destroy','register','change:activeAnnotation','init','setActiveAnnotation','length','_deactivateAllAnnotations','pluginName','set','_visibleAnnotations','switchTo','find','add','annotationsuis-register-invalid-interface','stopListening','collection','activeAnnotations','_activateAnnotation','hasActive','deactivateAll'];(function(_0x51b495,_0x19445d){const _0xed3f1c=function(_0x323296){while(--_0x323296){_0x51b495['push'](_0x51b495['shift']());}};_0xed3f1c(++_0x19445d);}(_0x1944,0x1bb));const _0xed3f=function(_0x51b495,_0x19445d){_0x51b495=_0x51b495-0x0;let _0xed3f1c=_0x1944[_0x51b495];return _0xed3f1c;};import{ContextPlugin as _0x4eb48a}from'ckeditor5/src/core';import{CKEditorError as _0x7daf6c}from'ckeditor5/src/utils';import _0x3b4bfa,{bindAnnotationCollections as _0x17c99b}from'./annotationcollection';import _0x5223f1 from'./annotations';export default class I extends _0x4eb48a{static get[_0xed3f('0x2f')](){return[_0x5223f1];}static get[_0xed3f('0x18')](){return _0xed3f('0x2d');}constructor(_0x530abb){super(_0x530abb),this[_0xed3f('0x8')]=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}[_0xed3f('0x14')](){const _0xe1c45d=this[_0xed3f('0x2b')]['plugins'][_0xed3f('0xe')](_0x5223f1);this[_0xed3f('0x3')](_0xe1c45d,_0xed3f('0x22'),(_0xb2d71c,_0x53b763)=>{for(const _0x2fb645 of this['activeUIs']){const _0x1366a2=this[_0xed3f('0x25')][_0xed3f('0xe')](_0x2fb645);(0x0,this['_uisData'][_0xed3f('0xe')](_0x2fb645)[_0xed3f('0x4')])(_0x53b763)&&_0x1366a2[_0xed3f('0x15')](_0x53b763);}}),this[_0xed3f('0x3')](_0xe1c45d,_0xed3f('0x17'),()=>{for(const _0x18b5f7 of this[_0xed3f('0x8')]){this[_0xed3f('0x25')]['get'](_0x18b5f7)[_0xed3f('0x15')](null);}}),this[_0xed3f('0x3')](_0xe1c45d[_0xed3f('0x1a')],_0xed3f('0x1d'),(_0xfeee2b,_0x3d84da)=>{this[_0xed3f('0x2e')](_0x3d84da);});}[_0xed3f('0x23')](){return this[_0xed3f('0x8')][_0xed3f('0xb')]>0x0;}[_0xed3f('0x28')](_0x5485ec){return this[_0xed3f('0x8')]['has'](_0x5485ec);}['activate'](_0x4c52b3,_0x728ea8=()=>!0x0){const _0x4a575f=this['context']['plugins']['get'](_0x5223f1);if(!this[_0xed3f('0x25')][_0xed3f('0x2')](_0x4c52b3))throw new _0x7daf6c(_0xed3f('0xd'),this,{'uiName':_0x4c52b3});this[_0xed3f('0x28')](_0x4c52b3)&&this['deactivate'](_0x4c52b3),this['activeUIs'][_0xed3f('0x1d')](_0x4c52b3);const _0x1d6384=new _0x3b4bfa(),_0x23de50=_0x4a575f[_0xed3f('0x1a')];_0x17c99b({'source':_0x23de50,'target':_0x1d6384,'filter':_0x728ea8}),this[_0xed3f('0x2a')][_0xed3f('0x19')](_0x4c52b3,{'collection':_0x1d6384,'filter':_0x728ea8});const _0x29c578=this['_uis']['get'](_0x4c52b3);_0x29c578[_0xed3f('0x2c')](_0x1d6384),this[_0xed3f('0x3')](_0x29c578,_0xed3f('0x13'),(_0x31a74d,_0x7eb515,_0x289dd1,_0x4a3361)=>{_0x4a3361&&_0x4a575f['_removeActiveAnnotation'](_0x4a3361),_0x289dd1&&_0x4a575f[_0xed3f('0x9')](_0x289dd1);});}[_0xed3f('0x10')](_0x559d73){this[_0xed3f('0x8')][_0xed3f('0x1')](_0x559d73);const _0xd7e319=this[_0xed3f('0x25')][_0xed3f('0xe')](_0x559d73);_0xd7e319[_0xed3f('0x27')](),this[_0xed3f('0x1f')](_0xd7e319),this[_0xed3f('0x2a')][_0xed3f('0xe')](_0x559d73)[_0xed3f('0x20')][_0xed3f('0x11')](),this['_uisData'][_0xed3f('0x1')](_0x559d73);}[_0xed3f('0x1b')](_0x25088c){const _0x13ee69=this['context']['plugins'][_0xed3f('0xe')](_0x5223f1),_0x4c4072=Array[_0xed3f('0xf')](_0x13ee69[_0xed3f('0x21')])[0x0]||null;this[_0xed3f('0x24')](),this[_0xed3f('0x5')](_0x25088c);const _0x3f467b=this['_uis'][_0xed3f('0xe')](_0x25088c);_0x3f467b['setActiveAnnotation'](_0x4c4072),_0x3f467b[_0xed3f('0x26')]&&_0x4c4072&&_0x3f467b[_0xed3f('0x26')]([_0x4c4072]);}[_0xed3f('0x24')](){for(const _0xbbc9f8 of this[_0xed3f('0x8')])this[_0xed3f('0x10')](_0xbbc9f8);}[_0xed3f('0x12')](_0x3ba12f,_0x2d4dce){if(this[_0xed3f('0x25')][_0xed3f('0x2')](_0x3ba12f))throw new _0x7daf6c(_0xed3f('0xc'));if(_0xed3f('0x6')!=typeof _0x2d4dce[_0xed3f('0x2c')]||_0xed3f('0x6')!=typeof _0x2d4dce[_0xed3f('0x27')]||_0xed3f('0x6')!=typeof _0x2d4dce[_0xed3f('0x15')])throw new _0x7daf6c(_0xed3f('0x1e'),null);this[_0xed3f('0x25')][_0xed3f('0x19')](_0x3ba12f,_0x2d4dce);}[_0xed3f('0x0')](){const _0x315c0b=this[_0xed3f('0x2b')][_0xed3f('0xa')][_0xed3f('0xe')](_0x5223f1)[_0xed3f('0x20')],_0x27d63c=new Map(),_0x244f3d=Array[_0xed3f('0xf')](this['activeUIs']);for(const _0x185fe5 of this[_0xed3f('0x8')]){const _0x1db23a=this['_uisData'][_0xed3f('0xe')](_0x185fe5)[_0xed3f('0x20')];for(const _0x5b0e5f of _0x1db23a)_0x27d63c[_0xed3f('0x19')](_0x5b0e5f,_0x185fe5);}for(const _0x59d385 of _0x315c0b){const _0x233351=_0x27d63c['get'](_0x59d385);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x59d385);const _0x24707d=_0x244f3d[_0xed3f('0x1c')](_0x57f90b=>this[_0xed3f('0x2a')][_0xed3f('0xe')](_0x57f90b)[_0xed3f('0x4')](_0x59d385));_0x233351!==_0x24707d&&(_0x233351&&this[_0xed3f('0x2a')][_0xed3f('0xe')](_0x233351)[_0xed3f('0x20')][_0xed3f('0x29')](_0x59d385),_0x24707d&&this['_uisData'][_0xed3f('0xe')](_0x24707d)[_0xed3f('0x20')][_0xed3f('0x1d')](_0x59d385));}}[_0xed3f('0x11')](){this['deactivateAll'](),super[_0xed3f('0x11')]();}[_0xed3f('0x2e')](_0x2ada5c){const _0x3a4399=[];for(const _0x56e92c of this[_0xed3f('0x8')]){(0x0,this[_0xed3f('0x2a')]['get'](_0x56e92c)['filter'])(_0x2ada5c)&&_0x3a4399['push'](_0x56e92c);}if(_0x3a4399[_0xed3f('0x16')]>0x1)throw new _0x7daf6c(_0xed3f('0x7'),null,{'matchedUIs':_0x3a4399,'annotationType':_0x2ada5c['type']});}}
23
+ const _0x4764=['length','delete','_uisData','listenTo','activeAnnotations','get','destroy','annotationsuis-activate-missing-ui','filter','size','add','register','hasActive','annotationsuis-register-invalid-interface','setActiveAnnotation','_activateAnnotation','AnnotationsUIs','stopListening','_setSelectedAnnotations','remove','function','_assertAnnotationDoesNotBelongToMultipleUIs','deactivateAll','detach','context','isActive','activate','_removeActiveAnnotation','collection','has','from','_addActiveAnnotation','plugins','push','pluginName','attach','_uis','set','_visibleAnnotations','change:activeAnnotation','switchTo','requires','activeUIs','deactivate'];(function(_0x42ef3c,_0x476497){const _0x530505=function(_0x1c0f2a){while(--_0x1c0f2a){_0x42ef3c['push'](_0x42ef3c['shift']());}};_0x530505(++_0x476497);}(_0x4764,0x17d));const _0x5305=function(_0x42ef3c,_0x476497){_0x42ef3c=_0x42ef3c-0x0;let _0x530505=_0x4764[_0x42ef3c];return _0x530505;};import{ContextPlugin as _0xb80c3f}from'ckeditor5/src/core';import{CKEditorError as _0x1568a0}from'ckeditor5/src/utils';import _0xaefe7a,{bindAnnotationCollections as _0x1754c0}from'./annotationcollection';import _0x41d26a from'./annotations';export default class I extends _0xb80c3f{static get[_0x5305('0xc')](){return[_0x41d26a];}static get[_0x5305('0x5')](){return _0x5305('0x1f');}constructor(_0x3b56ae){super(_0x3b56ae),this['activeUIs']=new Set(),this[_0x5305('0x7')]=new Map(),this[_0x5305('0x11')]=new Map();}['init'](){const _0x189310=this[_0x5305('0x27')][_0x5305('0x3')][_0x5305('0x14')](_0x41d26a);this[_0x5305('0x12')](_0x189310,_0x5305('0x1e'),(_0x47163a,_0x5a6dea)=>{for(const _0x21eab6 of this[_0x5305('0xd')]){const _0x1f61a5=this['_uis'][_0x5305('0x14')](_0x21eab6);(0x0,this['_uisData']['get'](_0x21eab6)[_0x5305('0x17')])(_0x5a6dea)&&_0x1f61a5[_0x5305('0x1d')](_0x5a6dea);}}),this[_0x5305('0x12')](_0x189310,'_deactivateAllAnnotations',()=>{for(const _0x2c564a of this['activeUIs']){this['_uis'][_0x5305('0x14')](_0x2c564a)[_0x5305('0x1d')](null);}}),this[_0x5305('0x12')](_0x189310[_0x5305('0x9')],_0x5305('0x19'),(_0x699f40,_0x3f578d)=>{this[_0x5305('0x24')](_0x3f578d);});}[_0x5305('0x1b')](){return this[_0x5305('0xd')][_0x5305('0x18')]>0x0;}[_0x5305('0x28')](_0x36d95c){return this[_0x5305('0xd')][_0x5305('0x0')](_0x36d95c);}[_0x5305('0x29')](_0x476a4,_0x40979e=()=>!0x0){const _0x304663=this['context'][_0x5305('0x3')][_0x5305('0x14')](_0x41d26a);if(!this[_0x5305('0x7')][_0x5305('0x0')](_0x476a4))throw new _0x1568a0(_0x5305('0x16'),this,{'uiName':_0x476a4});this[_0x5305('0x28')](_0x476a4)&&this['deactivate'](_0x476a4),this['activeUIs'][_0x5305('0x19')](_0x476a4);const _0x57bcc0=new _0xaefe7a(),_0x29d43e=_0x304663['_visibleAnnotations'];_0x1754c0({'source':_0x29d43e,'target':_0x57bcc0,'filter':_0x40979e}),this[_0x5305('0x11')][_0x5305('0x8')](_0x476a4,{'collection':_0x57bcc0,'filter':_0x40979e});const _0x40f0e9=this[_0x5305('0x7')]['get'](_0x476a4);_0x40f0e9[_0x5305('0x6')](_0x57bcc0),this[_0x5305('0x12')](_0x40f0e9,_0x5305('0xa'),(_0x7c4221,_0xc8aeef,_0x4bc207,_0xc390c9)=>{_0xc390c9&&_0x304663[_0x5305('0x2a')](_0xc390c9),_0x4bc207&&_0x304663[_0x5305('0x2')](_0x4bc207);});}[_0x5305('0xe')](_0x28f62c){this[_0x5305('0xd')][_0x5305('0x10')](_0x28f62c);const _0x35b546=this['_uis'][_0x5305('0x14')](_0x28f62c);_0x35b546['detach'](),this[_0x5305('0x20')](_0x35b546),this[_0x5305('0x11')][_0x5305('0x14')](_0x28f62c)[_0x5305('0x2b')][_0x5305('0x15')](),this['_uisData']['delete'](_0x28f62c);}[_0x5305('0xb')](_0x4a657e){const _0x27db8d=this[_0x5305('0x27')][_0x5305('0x3')]['get'](_0x41d26a),_0x47297e=Array[_0x5305('0x1')](_0x27db8d[_0x5305('0x13')])[0x0]||null;this[_0x5305('0x25')](),this[_0x5305('0x29')](_0x4a657e);const _0x93e4ed=this[_0x5305('0x7')]['get'](_0x4a657e);_0x93e4ed[_0x5305('0x1d')](_0x47297e),_0x93e4ed[_0x5305('0x21')]&&_0x47297e&&_0x93e4ed['_setSelectedAnnotations']([_0x47297e]);}[_0x5305('0x25')](){for(const _0x3a7b73 of this['activeUIs'])this[_0x5305('0xe')](_0x3a7b73);}[_0x5305('0x1a')](_0x2dc35f,_0x14b642){if(this['_uis']['has'](_0x2dc35f))throw new _0x1568a0('annotationsuis-register-already-registered');if(_0x5305('0x23')!=typeof _0x14b642['attach']||_0x5305('0x23')!=typeof _0x14b642[_0x5305('0x26')]||_0x5305('0x23')!=typeof _0x14b642[_0x5305('0x1d')])throw new _0x1568a0(_0x5305('0x1c'),null);this[_0x5305('0x7')][_0x5305('0x8')](_0x2dc35f,_0x14b642);}['refilterAnnotations'](){const _0x1d9268=this[_0x5305('0x27')]['plugins']['get'](_0x41d26a)['collection'],_0x33cc0f=new Map(),_0x4fa829=Array[_0x5305('0x1')](this[_0x5305('0xd')]);for(const _0x36cb82 of this[_0x5305('0xd')]){const _0x582916=this[_0x5305('0x11')]['get'](_0x36cb82)[_0x5305('0x2b')];for(const _0xe54fd of _0x582916)_0x33cc0f[_0x5305('0x8')](_0xe54fd,_0x36cb82);}for(const _0x1653d2 of _0x1d9268){const _0x286f9a=_0x33cc0f[_0x5305('0x14')](_0x1653d2);this[_0x5305('0x24')](_0x1653d2);const _0x57fbad=_0x4fa829['find'](_0x2b5f29=>this[_0x5305('0x11')][_0x5305('0x14')](_0x2b5f29)['filter'](_0x1653d2));_0x286f9a!==_0x57fbad&&(_0x286f9a&&this[_0x5305('0x11')][_0x5305('0x14')](_0x286f9a)[_0x5305('0x2b')][_0x5305('0x22')](_0x1653d2),_0x57fbad&&this[_0x5305('0x11')][_0x5305('0x14')](_0x57fbad)[_0x5305('0x2b')][_0x5305('0x19')](_0x1653d2));}}[_0x5305('0x15')](){this[_0x5305('0x25')](),super[_0x5305('0x15')]();}[_0x5305('0x24')](_0x55bb22){const _0x4fa6d9=[];for(const _0x132c33 of this[_0x5305('0xd')]){(0x0,this[_0x5305('0x11')]['get'](_0x132c33)[_0x5305('0x17')])(_0x55bb22)&&_0x4fa6d9[_0x5305('0x4')](_0x132c33);}if(_0x4fa6d9[_0x5305('0xf')]>0x1)throw new _0x1568a0('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x4fa6d9,'annotationType':_0x55bb22['type']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29df=['refreshSelectedViews','getByInnerView','sort','_editorAnnotations','has','pluginName','model','document','remove','from','change:isFocused','_dataCollectors','add','get','editor','collection','registerAnnotation','uiUpdate','update','push','editorannotations-invalid-source-callback','function','blur','getRanges','getOrderedSelectedAnnotations','delete','cancel','view','set','element','init','containsRange','_editorAnnotationsData','change:range','listenTo','hasDomSelection','range','isCollapsed','selection','editing','annotation','EditorAnnotations','fire','focusTracker'];(function(_0x233216,_0x29dfe9){const _0x237487=function(_0x16ca77){while(--_0x16ca77){_0x233216['push'](_0x233216['shift']());}};_0x237487(++_0x29dfe9);}(_0x29df,0xf7));const _0x2374=function(_0x233216,_0x29dfe9){_0x233216=_0x233216-0x0;let _0x237487=_0x29df[_0x233216];return _0x237487;};import{Plugin as _0x39752d}from'ckeditor5/src/core';import{CKEditorError as _0x4a9de8}from'ckeditor5/src/utils';import{debounce as _0x4bff57}from'lodash-es';import _0x1ea9e5 from'./annotations';export default class k extends _0x39752d{static get['requires'](){return[_0x1ea9e5];}static get[_0x2374('0x16')](){return _0x2374('0xe');}constructor(_0x4ecc83){super(_0x4ecc83),this[_0x2374('0x1c')]=new Set(),this[_0x2374('0x14')]=new Set();}[_0x2374('0x3')](){const _0x2e88eb=this[_0x2374('0x1f')],_0x5ee15c=_0x2e88eb[_0x2374('0x17')][_0x2374('0x18')][_0x2374('0xb')],_0x51ba03=_0x4bff57(()=>this[_0x2374('0x11')](),0xa);_0x5ee15c['on'](_0x2374('0x6'),(_0xaaeb73,_0x131efd)=>{_0x131efd['directChange']&&(_0x51ba03[_0x2374('0x2b')](),this[_0x2374('0x11')]());}),this[_0x2374('0x7')](_0x2e88eb[_0x2374('0xc')][_0x2374('0x0')][_0x2374('0x18')],_0x2374('0x1b'),(_0x56eb41,_0x5ae22c,_0x1fd037)=>{_0x1fd037&&_0x51ba03();}),this[_0x2374('0x7')](_0x2e88eb['ui'][_0x2374('0x10')],_0x2374('0x1b'),(_0x4a23dc,_0x4469d1,_0x209e36)=>{_0x209e36||_0x2e88eb['isReadOnly']||this['fire'](_0x2374('0x27'),{'isAnnotationTracked':_0x95e5a8=>this['_editorAnnotationsData']['has'](_0x95e5a8['innerView'])});}),this['listenTo'](this[_0x2374('0x1f')]['ui'],_0x2374('0x23'),()=>this[_0x2374('0xf')](_0x2374('0x22')));}[_0x2374('0x21')](_0x4b2d32){if(this[_0x2374('0x14')][_0x2374('0x15')](_0x4b2d32))return;this['_editorAnnotations'][_0x2374('0x1d')](_0x4b2d32[_0x2374('0x0')]),this['editor']['ui']['focusTracker'][_0x2374('0x1d')](_0x4b2d32[_0x2374('0x0')]['element']);const _0x392876=this['editor']['plugins'][_0x2374('0x1e')](_0x1ea9e5);this[_0x2374('0x7')](_0x392876[_0x2374('0x20')],_0x2374('0x19'),(_0x3c0d23,_0x1758e8)=>{this[_0x2374('0x1f')]['ui']['focusTracker'][_0x2374('0x19')](_0x1758e8[_0x2374('0x0')][_0x2374('0x2')]),this['_editorAnnotations'][_0x2374('0x2a')](_0x1758e8[_0x2374('0x0')]);});}[_0x2374('0x8')](){return this[_0x2374('0x1f')][_0x2374('0xc')][_0x2374('0x0')][_0x2374('0x8')];}['addSourceCollector'](_0x58867f){if(_0x2374('0x26')!=typeof _0x58867f)throw new _0x4a9de8(_0x2374('0x25'));this['_dataCollectors'][_0x2374('0x1d')](_0x58867f);}[_0x2374('0x11')](){this[_0x2374('0xf')]('refresh');}[_0x2374('0x29')]({activeAnnotation:_0x5e6ca9,annotations:_0x394967}){const _0x5588a1=[],_0x15aca9=this['editor']['model'][_0x2374('0x18')][_0x2374('0xb')],_0x57f68a=Array[_0x2374('0x1a')](_0x15aca9[_0x2374('0x28')]());for(const [_0x5d65e7,_0x581c73]of this[_0x2374('0x5')]){const _0x10f257=_0x4f0c26(_0x581c73),_0x487c7c=_0x394967[_0x2374('0x12')](_0x5d65e7);_0x10f257&&_0x487c7c&&_0x5588a1[_0x2374('0x24')]({'annotation':_0x487c7c,'range':_0x10f257});}function _0x4f0c26(_0x3291f2){for(const _0x40b034 of _0x3291f2)for(const _0x8648fd of _0x57f68a)if(_0x40b034['containsRange'](_0x8648fd,!_0x15aca9[_0x2374('0xa')]))return _0x40b034;return null;}return _0x5588a1[_0x2374('0x13')]((_0x13052b,_0x31b5b2)=>{const _0x280317=_0x13052b[_0x2374('0x9')],_0x59e12b=_0x31b5b2[_0x2374('0x9')];if(!_0x280317['isEqual'](_0x59e12b)){if(_0x280317[_0x2374('0x4')](_0x59e12b,!0x0))return 0x1;if(_0x59e12b['containsRange'](_0x280317,!0x0))return-0x1;}return _0x13052b[_0x2374('0xd')]==_0x5e6ca9?-0x1:_0x31b5b2['annotation']==_0x5e6ca9?0x1:0x0;})['map'](_0x2ab562=>_0x2ab562[_0x2374('0xd')]);}get[_0x2374('0x5')](){const _0x21642f=new Map();for(const _0x3288c1 of Array[_0x2374('0x1a')](this[_0x2374('0x1c')]))for(const [_0x23125b,_0x17c0ac]of _0x3288c1())_0x21642f[_0x2374('0x1')](_0x23125b,_0x17c0ac);return _0x21642f;}}
23
+ const _0x1af6=['annotation','getByInnerView','element','requires','fire','has','set','selection','editing','change:isFocused','push','listenTo','getOrderedSelectedAnnotations','model','hasDomSelection','uiUpdate','registerAnnotation','pluginName','isCollapsed','containsRange','focusTracker','_dataCollectors','refreshSelectedViews','EditorAnnotations','function','change:range','innerView','range','update','init','delete','remove','view','directChange','from','add','refresh','isReadOnly','isEqual','_editorAnnotations','sort','document','getRanges','editor'];(function(_0xfa2869,_0x1af6eb){const _0x192b56=function(_0x4a32be){while(--_0x4a32be){_0xfa2869['push'](_0xfa2869['shift']());}};_0x192b56(++_0x1af6eb);}(_0x1af6,0xa5));const _0x192b=function(_0xfa2869,_0x1af6eb){_0xfa2869=_0xfa2869-0x0;let _0x192b56=_0x1af6[_0xfa2869];return _0x192b56;};import{Plugin as _0x35f124}from'ckeditor5/src/core';import{CKEditorError as _0x1111b5}from'ckeditor5/src/utils';import{debounce as _0x4b03e4}from'lodash-es';import _0x2ebc30 from'./annotations';export default class k extends _0x35f124{static get[_0x192b('0xe')](){return[_0x2ebc30];}static get[_0x192b('0x1c')](){return _0x192b('0x22');}constructor(_0x23a58c){super(_0x23a58c),this[_0x192b('0x20')]=new Set(),this[_0x192b('0x6')]=new Set();}[_0x192b('0x28')](){const _0x3834e7=this['editor'],_0x203523=_0x3834e7[_0x192b('0x18')]['document'][_0x192b('0x12')],_0x15d364=_0x4b03e4(()=>this['refreshSelectedViews'](),0xa);_0x203523['on'](_0x192b('0x24'),(_0x2f4609,_0x32ed00)=>{_0x32ed00[_0x192b('0x0')]&&(_0x15d364['cancel'](),this[_0x192b('0x21')]());}),this[_0x192b('0x16')](_0x3834e7['editing'][_0x192b('0x2b')][_0x192b('0x8')],_0x192b('0x14'),(_0x2652d2,_0x27eb3a,_0xadd6a4)=>{_0xadd6a4&&_0x15d364();}),this[_0x192b('0x16')](_0x3834e7['ui']['focusTracker'],'change:isFocused',(_0x303797,_0x67cad1,_0x1854a2)=>{_0x1854a2||_0x3834e7[_0x192b('0x4')]||this[_0x192b('0xf')]('blur',{'isAnnotationTracked':_0x47be17=>this['_editorAnnotationsData'][_0x192b('0x10')](_0x47be17[_0x192b('0x25')])});}),this[_0x192b('0x16')](this[_0x192b('0xa')]['ui'],_0x192b('0x27'),()=>this[_0x192b('0xf')](_0x192b('0x1a')));}[_0x192b('0x1b')](_0x33962b){if(this[_0x192b('0x6')][_0x192b('0x10')](_0x33962b))return;this[_0x192b('0x6')]['add'](_0x33962b['view']),this[_0x192b('0xa')]['ui'][_0x192b('0x1f')][_0x192b('0x2')](_0x33962b[_0x192b('0x2b')][_0x192b('0xd')]);const _0x54a455=this['editor']['plugins']['get'](_0x2ebc30);this[_0x192b('0x16')](_0x54a455['collection'],_0x192b('0x2a'),(_0x72091,_0x439909)=>{this[_0x192b('0xa')]['ui']['focusTracker']['remove'](_0x439909[_0x192b('0x2b')][_0x192b('0xd')]),this['_editorAnnotations'][_0x192b('0x29')](_0x439909['view']);});}[_0x192b('0x19')](){return this[_0x192b('0xa')][_0x192b('0x13')][_0x192b('0x2b')][_0x192b('0x19')];}['addSourceCollector'](_0x5eb5a2){if(_0x192b('0x23')!=typeof _0x5eb5a2)throw new _0x1111b5('editorannotations-invalid-source-callback');this[_0x192b('0x20')][_0x192b('0x2')](_0x5eb5a2);}['refreshSelectedViews'](){this[_0x192b('0xf')](_0x192b('0x3'));}[_0x192b('0x17')]({activeAnnotation:_0x83c4c7,annotations:_0x386ab8}){const _0x4159b1=[],_0x249d46=this[_0x192b('0xa')][_0x192b('0x18')][_0x192b('0x8')][_0x192b('0x12')],_0x300d8b=Array[_0x192b('0x1')](_0x249d46[_0x192b('0x9')]());for(const [_0x40af85,_0x1e84db]of this['_editorAnnotationsData']){const _0x25d1d9=_0x2215f5(_0x1e84db),_0x2b680a=_0x386ab8[_0x192b('0xc')](_0x40af85);_0x25d1d9&&_0x2b680a&&_0x4159b1[_0x192b('0x15')]({'annotation':_0x2b680a,'range':_0x25d1d9});}function _0x2215f5(_0x4e1f97){for(const _0x2fa517 of _0x4e1f97)for(const _0x5ebb40 of _0x300d8b)if(_0x2fa517[_0x192b('0x1e')](_0x5ebb40,!_0x249d46[_0x192b('0x1d')]))return _0x2fa517;return null;}return _0x4159b1[_0x192b('0x7')]((_0x4ed471,_0x26dbbe)=>{const _0x48bdd0=_0x4ed471['range'],_0x1f31b1=_0x26dbbe[_0x192b('0x26')];if(!_0x48bdd0[_0x192b('0x5')](_0x1f31b1)){if(_0x48bdd0['containsRange'](_0x1f31b1,!0x0))return 0x1;if(_0x1f31b1[_0x192b('0x1e')](_0x48bdd0,!0x0))return-0x1;}return _0x4ed471[_0x192b('0xb')]==_0x83c4c7?-0x1:_0x26dbbe['annotation']==_0x83c4c7?0x1:0x0;})['map'](_0x4181e6=>_0x4181e6[_0x192b('0xb')]);}get['_editorAnnotationsData'](){const _0x519406=new Map();for(const _0x3e7c39 of Array[_0x192b('0x1')](this[_0x192b('0x20')]))for(const [_0x98ce7a,_0x22f4de]of _0x3e7c39())_0x519406[_0x192b('0x11')](_0x98ce7a,_0x22f4de);return _0x519406;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x592d=['context','hasActive','setActiveAnnotation','length','visibleView','view','focus','_forceRefresh','Esc','inlineannotations-attach-already-attached','InlineAnnotations','inline','EditorAnnotations','isFocused','getOrderedSelectedAnnotations','hasView','afterInit','keystrokes','getRangeAt','target','listenTo','document','isActive','blur','activeAnnotation','targetRect','annotations','inlineannotations-detach-not-attached','updatePosition','get','_addAnnotationToBalloon','mousedown','_addedAnnotations','_closeAnnotation','delete','clear','_setSelectedAnnotations','remove','includes','register','focusTracker','_removeAnnotationFromBalloon','switchTo','isAttached','_selectedAnnotations','stopListening','pluginName','_manuallyClosed','init','detach','plugins','requires','set','destroy','editor','refresh','every','editing','inlineannotations-not-allowed-with-context','has','_balloon','change:visibleView','add','getByView','showStack'];(function(_0x53b82b,_0x592dde){const _0x1135fd=function(_0x4a77fd){while(--_0x4a77fd){_0x53b82b['push'](_0x53b82b['shift']());}};_0x1135fd(++_0x592dde);}(_0x592d,0x1c4));const _0x1135=function(_0x53b82b,_0x592dde){_0x53b82b=_0x53b82b-0x0;let _0x1135fd=_0x592d[_0x53b82b];return _0x1135fd;};import{Plugin as _0x383b8e}from'ckeditor5/src/core';import _0x3f33ff from'./annotationsuis';import _0x1ad6da from'./editorannotations';import{ContextualBalloon as _0x24bcc4}from'ckeditor5/src/ui';import{MouseObserver as _0x14841d}from'ckeditor5/src/engine';import{CKEditorError as _0x5fb5f}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x383b8e{static get[_0x1135('0x36')](){return[_0x1ad6da,_0x24bcc4,_0x3f33ff];}static get[_0x1135('0x31')](){return _0x1135('0xd');}constructor(_0x321292){super(_0x321292),_0x321292[_0x1135('0x3c')][_0x1135('0x8')]['addObserver'](_0x14841d),this['isAttached']=!0x1,this[_0x1135('0x37')](_0x1135('0x1b'),null),this[_0x1135('0x1d')]=null,this[_0x1135('0x32')]=new Set(),this[_0x1135('0x3f')]=_0x321292['plugins'][_0x1135('0x20')](_0x24bcc4),this[_0x1135('0x23')]=new Set(),this[_0x1135('0x2f')]=[],this['_forceRefresh']=!0x1;}[_0x1135('0x33')](){const _0x114790=this['editor'][_0x1135('0x35')][_0x1135('0x20')](_0x3f33ff);_0x114790['context']===this['editor']&&(_0x114790[_0x1135('0x2a')](_0x1135('0xe'),this),this[_0x1135('0x39')][_0x1135('0x14')][_0x1135('0x37')](_0x1135('0xb'),(_0x4fc620,_0x344674)=>{const _0x1e4501=this['_balloon'];if(this[_0x1135('0x2e')]&&_0x1e4501[_0x1135('0x7')]){const _0x38d30a=this[_0x1135('0x1d')][_0x1135('0x1')](_0x1e4501[_0x1135('0x7')]);this[_0x1135('0x24')](_0x38d30a),_0x344674();}}));}[_0x1135('0x13')](){const _0x5dff05=this[_0x1135('0x39')][_0x1135('0x35')][_0x1135('0x20')](_0x3f33ff);_0x5dff05['context']===this[_0x1135('0x39')]&&(_0x5dff05[_0x1135('0x4')]()||_0x5dff05[_0x1135('0x2d')]('inline'));}[_0x1135('0x5')](_0x5826f4){_0x5826f4!==this[_0x1135('0x1b')]&&(this[_0x1135('0x1b')]&&(this[_0x1135('0x1b')]['isActive']=!0x1),_0x5826f4&&this[_0x1135('0x39')]['ui'][_0x1135('0x2b')][_0x1135('0x10')]&&(this[_0x1135('0x21')](_0x5826f4,!0x0),_0x5826f4[_0x1135('0x19')]=!0x0),_0x5826f4||this['_setSelectedAnnotations']([]),this[_0x1135('0x1b')]=_0x5826f4);}['attach'](_0x2b4f2a){this[_0x1135('0x1d')]=_0x2b4f2a;const _0x54cfb4=this[_0x1135('0x39')][_0x1135('0x35')][_0x1135('0x20')](_0x3f33ff),_0xa9c58d=this[_0x1135('0x3f')];if(this[_0x1135('0x2e')])throw new _0x5fb5f(_0x1135('0xc'),this);if(_0x54cfb4[_0x1135('0x3')]!==this[_0x1135('0x39')])throw new _0x5fb5f(_0x1135('0x3d'),this);const _0x4112e8=this[_0x1135('0x39')][_0x1135('0x35')][_0x1135('0x20')](_0x1135('0xf'));this['listenTo'](_0x4112e8,_0x1135('0x3a'),function(){const _0x4e4f6a=_0x4112e8[_0x1135('0x11')]({'activeAnnotation':this[_0x1135('0x1b')],'annotations':this[_0x1135('0x1d')]});if(!this[_0x1135('0xa')]&&(_0x20d7f7=_0x4e4f6a,_0x618902=this[_0x1135('0x2f')],_0x20d7f7[_0x1135('0x6')]===_0x618902[_0x1135('0x6')]&&_0x20d7f7[_0x1135('0x3b')](_0x93b103=>_0x618902[_0x1135('0x29')](_0x93b103))))return;var _0x20d7f7,_0x618902;this[_0x1135('0xa')]=!0x1,this[_0x1135('0x27')](_0x4e4f6a),this[_0x1135('0x5')](_0x4e4f6a[0x0]||null);}['bind'](this)),this[_0x1135('0x17')](_0x4112e8,_0x1135('0x1a'),(_0x28ba2c,{isAnnotationTracked:_0x1cfc16})=>{this['activeAnnotation']&&_0x1cfc16(this['activeAnnotation'])&&(this[_0x1135('0x27')]([]),this[_0x1135('0x5')](null));}),this[_0x1135('0x17')](this['editor']['ui'][_0x1135('0x2b')],'change:isFocused',(_0x54fb9a,_0x1838c5,_0x46d616)=>{_0x46d616||this[_0x1135('0x5')](null);}),this[_0x1135('0x17')](_0x2b4f2a,_0x1135('0x28'),(_0x5b7662,_0x46d21e)=>{this[_0x1135('0x2c')](_0x46d21e),_0x46d21e===this[_0x1135('0x1b')]&&this['setActiveAnnotation'](null);}),this['listenTo'](_0xa9c58d,_0x1135('0x40'),(_0x309a3f,_0x4894c4,_0x1dfeea,_0x3b4985)=>{if(_0x3b4985&&this[_0x1135('0x30')](_0x3b4985),!_0x1dfeea||!_0x2b4f2a[_0x1135('0x1')](_0x1dfeea))return;const _0x269edf=_0x2b4f2a[_0x1135('0x1')](_0x1dfeea);this[_0x1135('0x17')](_0x1dfeea,'change:height',()=>{_0xa9c58d[_0x1135('0x1f')]();}),this[_0x1135('0x17')](_0x1dfeea,_0x1135('0xb'),()=>{this['_closeAnnotation'](_0x269edf),this[_0x1135('0x39')]['editing'][_0x1135('0x8')][_0x1135('0x9')]();}),this[_0x1135('0x1b')]!==_0x269edf&&this[_0x1135('0x5')](_0x269edf);}),this[_0x1135('0x17')](this[_0x1135('0x39')]['ui'],'update',()=>{_0xa9c58d[_0x1135('0x7')]&&(_0x2b4f2a['getByView'](_0xa9c58d['visibleView'])&&_0xa9c58d[_0x1135('0x1f')]());}),this[_0x1135('0x17')](this[_0x1135('0x39')][_0x1135('0x3c')]['view'][_0x1135('0x18')],_0x1135('0x22'),()=>{this[_0x1135('0xa')]=!0x0,this[_0x1135('0x32')][_0x1135('0x26')]();}),this[_0x1135('0x39')][_0x1135('0x3c')][_0x1135('0x8')][_0x1135('0x18')]['selection']['editableElement']&&this[_0x1135('0x39')][_0x1135('0x3c')][_0x1135('0x8')][_0x1135('0x9')](),this[_0x1135('0x2e')]=!0x0;}['detach'](){if(!this[_0x1135('0x2e')])throw new _0x5fb5f(_0x1135('0x1e'),this);this[_0x1135('0x5')](null);for(const _0x3b3da1 of this[_0x1135('0x23')])this[_0x1135('0x2c')](_0x3b3da1);this[_0x1135('0x30')](),this[_0x1135('0x2e')]=!0x1,this['annotations']=null;}[_0x1135('0x38')](){this[_0x1135('0x2e')]&&this[_0x1135('0x34')]();}[_0x1135('0x27')](_0x1888bd){for(const _0x25a513 of this[_0x1135('0x2f')])_0x1888bd[_0x1135('0x29')](_0x25a513)||this[_0x1135('0x32')]['delete'](_0x25a513);for(const _0x468233 of this['annotations'])_0x1888bd['includes'](_0x468233)||this[_0x1135('0x2c')](_0x468233);if(this[_0x1135('0x39')]['ui']['focusTracker'][_0x1135('0x10')])for(const _0xc65a65 of _0x1888bd)this['_addAnnotationToBalloon'](_0xc65a65);this[_0x1135('0x2f')]=_0x1888bd;}[_0x1135('0x21')](_0x48d7f5,_0x4fb82f){this[_0x1135('0x32')][_0x1135('0x3e')](_0x48d7f5)||(this[_0x1135('0x23')][_0x1135('0x3e')](_0x48d7f5)||this[_0x1135('0x3f')][_0x1135('0x12')](_0x48d7f5[_0x1135('0x8')])||(this['_addedAnnotations'][_0x1135('0x0')](_0x48d7f5),this[_0x1135('0x3f')]['add']({'stackId':_0x48d7f5[_0x1135('0x8')]['id'],'view':_0x48d7f5['view'],'position':{'target':()=>_0x48d7f5[_0x1135('0x16')]||_0x48d7f5[_0x1135('0x1c')]||document['getSelection']()[_0x1135('0x15')](0x0)}})),_0x4fb82f&&this[_0x1135('0x3f')][_0x1135('0x2')](_0x48d7f5['view']['id']));}['_removeAnnotationFromBalloon'](_0x2cbc31){this[_0x1135('0x23')][_0x1135('0x3e')](_0x2cbc31)&&this['_balloon'][_0x1135('0x12')](_0x2cbc31['view'])&&(this[_0x1135('0x23')][_0x1135('0x25')](_0x2cbc31),this[_0x1135('0x3f')][_0x1135('0x28')](_0x2cbc31[_0x1135('0x8')]));}[_0x1135('0x24')](_0x43adb6){this[_0x1135('0x32')][_0x1135('0x0')](_0x43adb6),this['_removeAnnotationFromBalloon'](_0x43adb6);}}
23
+ const _0x39f1=['view','focus','listenTo','change:isFocused','focusTracker','plugins','context','clear','isAttached','getOrderedSelectedAnnotations','getSelection','_forceRefresh','_manuallyClosed','isFocused','annotations','target','hasActive','init','delete','_balloon','editing','register','stopListening','inlineannotations-not-allowed-with-context','has','destroy','add','editor','pluginName','getRangeAt','keystrokes','attach','isActive','change:visibleView','_addedAnnotations','updatePosition','afterInit','activeAnnotation','document','requires','includes','length','blur','_selectedAnnotations','get','inlineannotations-detach-not-attached','targetRect','_setSelectedAnnotations','set','Esc','_closeAnnotation','showStack','selection','setActiveAnnotation','every','_removeAnnotationFromBalloon','getByView','InlineAnnotations','remove','inline','hasView','addObserver','detach','visibleView','switchTo'];(function(_0x1e06bd,_0x39f182){const _0x596389=function(_0x2bb07a){while(--_0x2bb07a){_0x1e06bd['push'](_0x1e06bd['shift']());}};_0x596389(++_0x39f182);}(_0x39f1,0xe2));const _0x5963=function(_0x1e06bd,_0x39f182){_0x1e06bd=_0x1e06bd-0x0;let _0x596389=_0x39f1[_0x1e06bd];return _0x596389;};import{Plugin as _0x4a313f}from'ckeditor5/src/core';import _0x37afed from'./annotationsuis';import _0x424a27 from'./editorannotations';import{ContextualBalloon as _0x24fe80}from'ckeditor5/src/ui';import{MouseObserver as _0x4d79e6}from'ckeditor5/src/engine';import{CKEditorError as _0x1b446b}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x4a313f{static get[_0x5963('0x8')](){return[_0x424a27,_0x24fe80,_0x37afed];}static get[_0x5963('0x3e')](){return _0x5963('0x1a');}constructor(_0x253be3){super(_0x253be3),_0x253be3[_0x5963('0x36')]['view'][_0x5963('0x1e')](_0x4d79e6),this[_0x5963('0x2a')]=!0x1,this[_0x5963('0x11')](_0x5963('0x6'),null),this[_0x5963('0x30')]=null,this[_0x5963('0x2e')]=new Set(),this[_0x5963('0x35')]=_0x253be3[_0x5963('0x27')]['get'](_0x24fe80),this[_0x5963('0x3')]=new Set(),this[_0x5963('0xc')]=[],this[_0x5963('0x2d')]=!0x1;}[_0x5963('0x33')](){const _0x46e13f=this[_0x5963('0x3d')]['plugins']['get'](_0x37afed);_0x46e13f[_0x5963('0x28')]===this[_0x5963('0x3d')]&&(_0x46e13f[_0x5963('0x37')](_0x5963('0x1c'),this),this['editor'][_0x5963('0x40')][_0x5963('0x11')](_0x5963('0x12'),(_0x1b32b6,_0x2e828c)=>{const _0x5c4037=this[_0x5963('0x35')];if(this[_0x5963('0x2a')]&&_0x5c4037[_0x5963('0x20')]){const _0x3fcb60=this['annotations']['getByView'](_0x5c4037[_0x5963('0x20')]);this[_0x5963('0x13')](_0x3fcb60),_0x2e828c();}}));}[_0x5963('0x5')](){const _0x3f16e0=this[_0x5963('0x3d')]['plugins'][_0x5963('0xd')](_0x37afed);_0x3f16e0[_0x5963('0x28')]===this[_0x5963('0x3d')]&&(_0x3f16e0[_0x5963('0x32')]()||_0x3f16e0[_0x5963('0x21')]('inline'));}[_0x5963('0x16')](_0x52a6f6){_0x52a6f6!==this[_0x5963('0x6')]&&(this[_0x5963('0x6')]&&(this['activeAnnotation'][_0x5963('0x1')]=!0x1),_0x52a6f6&&this[_0x5963('0x3d')]['ui'][_0x5963('0x26')][_0x5963('0x2f')]&&(this['_addAnnotationToBalloon'](_0x52a6f6,!0x0),_0x52a6f6[_0x5963('0x1')]=!0x0),_0x52a6f6||this[_0x5963('0x10')]([]),this['activeAnnotation']=_0x52a6f6);}[_0x5963('0x0')](_0x2ebeb8){this[_0x5963('0x30')]=_0x2ebeb8;const _0x353eab=this[_0x5963('0x3d')][_0x5963('0x27')][_0x5963('0xd')](_0x37afed),_0x1309d9=this['_balloon'];if(this[_0x5963('0x2a')])throw new _0x1b446b('inlineannotations-attach-already-attached',this);if(_0x353eab[_0x5963('0x28')]!==this['editor'])throw new _0x1b446b(_0x5963('0x39'),this);const _0x100134=this['editor']['plugins'][_0x5963('0xd')]('EditorAnnotations');this[_0x5963('0x24')](_0x100134,'refresh',function(){const _0x3acba6=_0x100134[_0x5963('0x2b')]({'activeAnnotation':this[_0x5963('0x6')],'annotations':this[_0x5963('0x30')]});if(!this[_0x5963('0x2d')]&&(_0x4a690e=_0x3acba6,_0x59d8da=this[_0x5963('0xc')],_0x4a690e[_0x5963('0xa')]===_0x59d8da['length']&&_0x4a690e[_0x5963('0x17')](_0x154f79=>_0x59d8da['includes'](_0x154f79))))return;var _0x4a690e,_0x59d8da;this[_0x5963('0x2d')]=!0x1,this[_0x5963('0x10')](_0x3acba6),this['setActiveAnnotation'](_0x3acba6[0x0]||null);}['bind'](this)),this[_0x5963('0x24')](_0x100134,_0x5963('0xb'),(_0x4c788f,{isAnnotationTracked:_0x20e1ce})=>{this[_0x5963('0x6')]&&_0x20e1ce(this['activeAnnotation'])&&(this[_0x5963('0x10')]([]),this[_0x5963('0x16')](null));}),this[_0x5963('0x24')](this['editor']['ui'][_0x5963('0x26')],_0x5963('0x25'),(_0x3cae37,_0x2968f0,_0x21c074)=>{_0x21c074||this['setActiveAnnotation'](null);}),this['listenTo'](_0x2ebeb8,_0x5963('0x1b'),(_0x3dedec,_0x55e5c4)=>{this[_0x5963('0x18')](_0x55e5c4),_0x55e5c4===this['activeAnnotation']&&this[_0x5963('0x16')](null);}),this[_0x5963('0x24')](_0x1309d9,_0x5963('0x2'),(_0x26bd54,_0x2c852c,_0x3c2deb,_0x3eab87)=>{if(_0x3eab87&&this[_0x5963('0x38')](_0x3eab87),!_0x3c2deb||!_0x2ebeb8['getByView'](_0x3c2deb))return;const _0x4f5bd7=_0x2ebeb8['getByView'](_0x3c2deb);this[_0x5963('0x24')](_0x3c2deb,'change:height',()=>{_0x1309d9[_0x5963('0x4')]();}),this[_0x5963('0x24')](_0x3c2deb,'Esc',()=>{this[_0x5963('0x13')](_0x4f5bd7),this[_0x5963('0x3d')][_0x5963('0x36')][_0x5963('0x22')][_0x5963('0x23')]();}),this[_0x5963('0x6')]!==_0x4f5bd7&&this[_0x5963('0x16')](_0x4f5bd7);}),this[_0x5963('0x24')](this['editor']['ui'],'update',()=>{_0x1309d9['visibleView']&&(_0x2ebeb8[_0x5963('0x19')](_0x1309d9[_0x5963('0x20')])&&_0x1309d9[_0x5963('0x4')]());}),this[_0x5963('0x24')](this[_0x5963('0x3d')][_0x5963('0x36')][_0x5963('0x22')][_0x5963('0x7')],'mousedown',()=>{this['_forceRefresh']=!0x0,this[_0x5963('0x2e')][_0x5963('0x29')]();}),this[_0x5963('0x3d')]['editing'][_0x5963('0x22')][_0x5963('0x7')][_0x5963('0x15')]['editableElement']&&this[_0x5963('0x3d')][_0x5963('0x36')][_0x5963('0x22')][_0x5963('0x23')](),this[_0x5963('0x2a')]=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x1b446b(_0x5963('0xe'),this);this[_0x5963('0x16')](null);for(const _0x88c038 of this[_0x5963('0x3')])this[_0x5963('0x18')](_0x88c038);this[_0x5963('0x38')](),this[_0x5963('0x2a')]=!0x1,this[_0x5963('0x30')]=null;}[_0x5963('0x3b')](){this[_0x5963('0x2a')]&&this[_0x5963('0x1f')]();}[_0x5963('0x10')](_0x16b865){for(const _0x4c4230 of this[_0x5963('0xc')])_0x16b865[_0x5963('0x9')](_0x4c4230)||this[_0x5963('0x2e')][_0x5963('0x34')](_0x4c4230);for(const _0x5867fb of this[_0x5963('0x30')])_0x16b865[_0x5963('0x9')](_0x5867fb)||this[_0x5963('0x18')](_0x5867fb);if(this[_0x5963('0x3d')]['ui']['focusTracker'][_0x5963('0x2f')])for(const _0x1b285a of _0x16b865)this['_addAnnotationToBalloon'](_0x1b285a);this[_0x5963('0xc')]=_0x16b865;}['_addAnnotationToBalloon'](_0x577f89,_0x31538d){this['_manuallyClosed'][_0x5963('0x3a')](_0x577f89)||(this['_addedAnnotations']['has'](_0x577f89)||this['_balloon']['hasView'](_0x577f89[_0x5963('0x22')])||(this[_0x5963('0x3')][_0x5963('0x3c')](_0x577f89),this[_0x5963('0x35')][_0x5963('0x3c')]({'stackId':_0x577f89[_0x5963('0x22')]['id'],'view':_0x577f89['view'],'position':{'target':()=>_0x577f89[_0x5963('0x31')]||_0x577f89[_0x5963('0xf')]||document[_0x5963('0x2c')]()[_0x5963('0x3f')](0x0)}})),_0x31538d&&this['_balloon'][_0x5963('0x14')](_0x577f89[_0x5963('0x22')]['id']));}[_0x5963('0x18')](_0x2b401e){this[_0x5963('0x3')][_0x5963('0x3a')](_0x2b401e)&&this[_0x5963('0x35')][_0x5963('0x1d')](_0x2b401e[_0x5963('0x22')])&&(this[_0x5963('0x3')][_0x5963('0x34')](_0x2b401e),this['_balloon']['remove'](_0x2b401e[_0x5963('0x22')]));}[_0x5963('0x13')](_0x12816f){this[_0x5963('0x2e')][_0x5963('0x3c')](_0x12816f),this['_removeAnnotationFromBalloon'](_0x12816f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3eba=['_annotationToNarrowView','balloonPanelView','northArrowSouthEast','contains','context','pin','addEventListener','_editorAnnotations','Sidebar','length','get','create','add','preventDefault','_selectedAnnotations','content','esc','element','target','low','delete','getOrderedSelectedAnnotations','setActiveAnnotation','execute','mousedown','_detachListeners','focus','_showBalloon','southArrowNorthEast','attach','locale','annotations','_annotations','isVisible','_hideBalloon','southArrowNorth','view','_domEmitter','keyCode','attachToDom','has','_updateBalloonPosition','_setSelectedAnnotations','northArrowSouthWest','addAnnotation','plugins','resize','ck-sidebar--narrow','isAttached','narrowSidebar','_integrateWithEditorAnnotations','unpin','getByView','cancel','listenTo','first','isDirty','clear','keydown','init','refresh','change:height','requires','getSidebarItemView','high','northArrowSouth','preventClosingBalloon','_refreshPositioning','EditorAnnotations','activeAnnotation','editors','stopListening','_manuallyClosedAnnotationViews','destroy','bodyCollection','type','southArrowNorthWest','_destroyEditorAnnotationsIntegration','hasDomSelection','_refreshPositioningDebounced','rearrange','remove','blur','includes','from','narrowsidebar-detach-not-attached','change:container','defaultPositions','detach','_attachToContainer','set'];(function(_0xc35d1b,_0x3ebaae){const _0x10011c=function(_0x592a8a){while(--_0x592a8a){_0xc35d1b['push'](_0xc35d1b['shift']());}};_0x10011c(++_0x3ebaae);}(_0x3eba,0x97));const _0x1001=function(_0xc35d1b,_0x3ebaae){_0xc35d1b=_0xc35d1b-0x0;let _0x10011c=_0x3eba[_0xc35d1b];return _0x10011c;};import{ContextPlugin as _0x473659}from'ckeditor5/src/core';import _0x3939ca from'./annotationsuis';import _0x1e5fac from'./sidebar';import _0x130edb from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4a924c,BodyCollection as _0x5a4e38}from'ckeditor5/src/ui';import{CKEditorError as _0x2c2159,DomEmitterMixin as _0x5a3fe9,keyCodes as _0x3f6e96,Collection as _0x99b788}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x2db4de}from'lodash-es';export default class s extends _0x473659{static get[_0x1001('0x2')](){return[_0x1e5fac,_0x3939ca];}static get['pluginName'](){return'NarrowSidebar';}constructor(_0xbe47cb){super(_0xbe47cb),this[_0x1001('0x4f')]=!0x1,this[_0x1001('0xc')]=new Set(),this[_0x1001('0x44')]=Object[_0x1001('0x2a')](_0x5a3fe9),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this[_0x1001('0x3e')]=null,this[_0x1001('0x2d')]=[],this[_0x1001('0x26')]=new _0x99b788(),this[_0x1001('0x13')]=_0x2db4de(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x1001('0x5a')](){this['context'][_0x1001('0x4c')][_0x1001('0x29')](_0x3939ca)['register'](_0x1001('0x50'),this),this[_0x1001('0xe')]=new _0x5a4e38(this['context'][_0x1001('0x3d')]),this[_0x1001('0x20')]=new _0x4a924c(this[_0x1001('0x23')][_0x1001('0x3d')]),this[_0x1001('0xe')][_0x1001('0x46')](),this['bodyCollection']['add'](this[_0x1001('0x20')]);}['attach'](_0xa79317){this['annotations']=_0xa79317;const _0x21237d=this[_0x1001('0x23')][_0x1001('0x4c')][_0x1001('0x29')](_0x1e5fac),_0x4802f6=this['balloonPanelView'];if(_0x21237d[_0x1001('0x3f')]=_0xa79317,this['isAttached'])throw new _0x2c2159('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x21237d,'set:container',()=>{this[_0x1001('0x1c')](),this[_0x1001('0x55')](_0x21237d,_0x1001('0x1a'),_0x477b22=>{_0x477b22['off'](),this[_0x1001('0x3c')](_0xa79317);});}),_0x21237d[_0x1001('0x1d')]({'viewClass':_0x1001('0x4e'),'spaceBetweenItems':0x5});const _0x6d2498=_0x1df451=>{const _0x25fb72=new _0x130edb(this[_0x1001('0x23')][_0x1001('0x3d')]);_0x21237d[_0x1001('0x4b')](_0x1df451,_0x25fb72),this[_0x1001('0x1f')][_0x1001('0x1e')](_0x1df451,_0x25fb72),_0x25fb72['bind'](_0x1001('0x57'),'annotationType','number')['to'](_0x1df451[_0x1001('0x43')],_0x1001('0x57'),_0x1001('0xf'),_0x1001('0x28')),_0x25fb72['on'](_0x1001('0x36'),()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x4802f6[_0x1001('0x2e')][_0x1001('0x56')]!==_0x1df451[_0x1001('0x43')]?(this[_0x1001('0x3a')](_0x1df451),_0x1df451[_0x1001('0x43')][_0x1001('0x30')][_0x1001('0x39')](),this['setActiveAnnotation'](_0x1df451)):this[_0x1001('0x35')](null);});};for(const _0xf09e1 of _0xa79317)_0x6d2498(_0xf09e1);this[_0x1001('0x55')](_0xa79317,_0x1001('0x2b'),(_0x2939f0,_0x2f3c0d)=>{_0x6d2498(_0x2f3c0d);}),this[_0x1001('0x55')](_0xa79317,_0x1001('0x15'),(_0xd5adff,_0x21324d,_0x44d691)=>{this[_0x1001('0x1f')][_0x1001('0x29')](_0x21324d)['destroy'](),this[_0x1001('0x1f')][_0x1001('0x33')](_0x21324d),_0x21237d[_0x1001('0x14')]({'removedAnnotation':_0x21324d,'previousAnnotation':_0xa79317[_0x1001('0x29')](_0x44d691-0x1),'nextAnnotation':_0xa79317[_0x1001('0x29')](_0x44d691+0x1)}),_0x21324d===this['activeAnnotation']&&this[_0x1001('0x35')](null);},{'priority':_0x1001('0x32')}),this[_0x1001('0x55')](_0xa79317,'focus',(_0x29bf4b,_0x222f2b)=>{this[_0x1001('0x35')](_0x222f2b);}),this[_0x1001('0x55')](_0xa79317,'blur',()=>{this[_0x1001('0x35')](null);}),this[_0x1001('0x44')][_0x1001('0x55')](document,_0x1001('0x59'),(_0x55a73f,_0x276ff4)=>{_0x276ff4[_0x1001('0x45')]===_0x3f6e96[_0x1001('0x2f')]&&_0x4802f6['isVisible']&&(this[_0x1001('0xc')][_0x1001('0x2b')](_0x4802f6[_0x1001('0x2e')]['first']),this[_0x1001('0x41')](),_0x276ff4['stopPropagation'](),_0x276ff4[_0x1001('0x2c')]());}),this[_0x1001('0x44')][_0x1001('0x55')](document,_0x1001('0x37'),(_0x306035,_0x4c4348)=>{const _0x10da74=_0x4c4348[_0x1001('0x31')];_0x4802f6['isVisible']&&_0x4802f6[_0x1001('0x30')][_0x1001('0x22')](_0x10da74)||_0x21237d[_0x1001('0x43')]['element'][_0x1001('0x22')](_0x10da74)||_0x306035['preventClosingBalloon']||(this['_manuallyClosedAnnotationViews'][_0x1001('0x58')](),this[_0x1001('0x41')](),this[_0x1001('0x35')](null));});const _0x36d4aa=this[_0x1001('0x23')][_0x1001('0xa')]?this[_0x1001('0x23')][_0x1001('0xa')]:new _0x99b788([this[_0x1001('0x23')]]);for(const _0x323157 of _0x36d4aa)this[_0x1001('0x51')](_0x323157);this['listenTo'](_0x36d4aa,_0x1001('0x2b'),(_0x4e159e,_0x2cc49a)=>{this[_0x1001('0x55')](_0x2cc49a,'ready',()=>{this[_0x1001('0x51')](_0x2cc49a);});}),this[_0x1001('0x55')](_0x36d4aa,_0x1001('0x15'),(_0x5a8247,_0x4ea71c)=>{_0x4ea71c[_0x1001('0x4c')][_0x1001('0x47')](_0x1001('0x8'))&&this[_0x1001('0x11')](_0x4ea71c[_0x1001('0x4c')][_0x1001('0x29')]('EditorAnnotations'));}),window[_0x1001('0x25')](_0x1001('0x4d'),this[_0x1001('0x13')]),this[_0x1001('0x7')]();}[_0x1001('0x35')](_0x102e65){if(_0x102e65===this[_0x1001('0x9')])return;const _0x43f12a=this[_0x1001('0x23')][_0x1001('0x4c')][_0x1001('0x29')](_0x1001('0x27'));if(_0x43f12a[_0x1001('0x0')]({'blurredAnnotation':this[_0x1001('0x9')],'activatedAnnotation':_0x102e65,'disableAnimationOnActivatedAnnotation':!0x0}),_0x102e65)_0x43f12a[_0x1001('0x3')](_0x102e65)?this[_0x1001('0x3a')](_0x102e65):this['_hideBalloon']();else this[_0x1001('0x41')]();this[_0x1001('0x9')]=_0x102e65;}[_0x1001('0x1c')](){if(!this[_0x1001('0x4f')])throw new _0x2c2159(_0x1001('0x19'),this);this['setActiveAnnotation'](null);const _0x438c34=this[_0x1001('0x23')][_0x1001('0x4c')][_0x1001('0x29')](_0x1001('0x27'));this['_hideBalloon'](),Array[_0x1001('0x18')](this[_0x1001('0x1f')]['values'](),_0x2fc016=>_0x2fc016[_0x1001('0xd')]()),this[_0x1001('0x1f')][_0x1001('0x58')](),_0x438c34['_detachFromContainer'](this[_0x1001('0x3e')]),this[_0x1001('0xb')](),this[_0x1001('0x44')][_0x1001('0xb')](),this['stopListening'](this[_0x1001('0x23')][_0x1001('0xa')]);for(const _0x30c08b of Array['from'](this['_editorAnnotations']))this[_0x1001('0x11')](_0x30c08b);window['removeEventListener'](_0x1001('0x4d'),this[_0x1001('0x13')]),this['_refreshPositioningDebounced'][_0x1001('0x54')](),this[_0x1001('0x2d')]=[],this[_0x1001('0x4f')]=!0x1,this[_0x1001('0x3e')]=null;}[_0x1001('0xd')](){this['isAttached']&&this[_0x1001('0x1c')](),this[_0x1001('0xe')]['detachFromDom']();}['_integrateWithEditorAnnotations'](_0xcc146a){const _0x1cd578=_0xcc146a[_0x1001('0x4c')][_0x1001('0x29')](_0x1001('0x8')),_0x16a608=this[_0x1001('0x23')]['plugins'][_0x1001('0x29')](_0x1e5fac),_0x288337=this[_0x1001('0x3e')],_0x101f07=this['balloonPanelView'],_0xfa6d60=()=>{const _0x558414=_0x1cd578[_0x1001('0x34')]({'activeAnnotation':this[_0x1001('0x9')],'annotations':this[_0x1001('0x3e')]});this['_setSelectedAnnotations'](_0x558414),this[_0x1001('0x35')](_0x558414[0x0]||null);};this['listenTo'](_0x1cd578,_0x1001('0x0'),_0xfa6d60),this['listenTo'](_0x1cd578,_0x1001('0x16'),(_0x1c8672,{isAnnotationTracked:_0x1699fa})=>{this[_0x1001('0x9')]&&_0x1699fa(this[_0x1001('0x9')])&&(this[_0x1001('0x49')]([]),this[_0x1001('0x35')](null));}),this['listenTo'](_0x1cd578,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x288337,_0x1001('0x16'),_0x2c3cb7=>{_0x1cd578[_0x1001('0x12')]()&&_0x2c3cb7['stop']();},{'priority':_0x1001('0x4')}),this[_0x1001('0x44')][_0x1001('0x55')](document,'mousedown',(_0x3c6d56,_0x1a21b5)=>{const _0x22a793=_0x1a21b5[_0x1001('0x31')];_0x101f07[_0x1001('0x40')]&&_0x101f07['element'][_0x1001('0x22')](_0x22a793)||_0x16a608[_0x1001('0x43')]['element'][_0x1001('0x22')](_0x22a793)||this[_0x1001('0x9')]&&_0x1cd578[_0x1001('0x12')]()&&(_0xfa6d60(),_0x3c6d56[_0x1001('0x6')]=!0x0);},{'priority':_0x1001('0x4')}),this[_0x1001('0x26')][_0x1001('0x2b')](_0x1cd578);}['_destroyEditorAnnotationsIntegration'](_0x33c3da){_0x33c3da&&(this[_0x1001('0xb')](_0x33c3da),this[_0x1001('0x26')]['remove'](_0x33c3da));}[_0x1001('0x49')](_0x4fae9f){for(const _0x55f827 of this[_0x1001('0x2d')])_0x4fae9f[_0x1001('0x17')](_0x55f827)||this['_manuallyClosedAnnotationViews'][_0x1001('0x33')](_0x55f827[_0x1001('0x43')]);this['_selectedAnnotations']=_0x4fae9f;}[_0x1001('0x7')](){const _0x3759d9=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x3759d9[_0x1001('0x40')]&&this[_0x1001('0x48')]();}[_0x1001('0x3a')](_0xd6342c){if(this[_0x1001('0xc')]['has'](_0xd6342c[_0x1001('0x43')]))return;const _0x3f1513=this[_0x1001('0x20')][_0x1001('0x2e')]['first'];_0x3f1513!==_0xd6342c[_0x1001('0x43')]?(_0x3f1513&&this['_detachListeners'](_0x3f1513),this['_attachListeners'](_0xd6342c[_0x1001('0x43')]),this[_0x1001('0x20')][_0x1001('0x2e')][_0x1001('0x58')](),this[_0x1001('0x20')][_0x1001('0x2e')]['add'](_0xd6342c[_0x1001('0x43')]),this['_updateBalloonPosition']()):this[_0x1001('0x48')]();}['_updateBalloonPosition'](){const _0x1503b2=this['balloonPanelView'][_0x1001('0x2e')]['first'],_0x49fb7c=this[_0x1001('0x3e')][_0x1001('0x53')](_0x1503b2);if(!this['_annotationToNarrowView'][_0x1001('0x47')](_0x49fb7c))return;const _0x57c661=this[_0x1001('0x1f')][_0x1001('0x29')](_0x49fb7c)[_0x1001('0x30')],_0x3545b6=function(){const _0x4bd4d5=_0x4a924c[_0x1001('0x1b')];return[_0x4bd4d5[_0x1001('0x3b')],_0x4bd4d5[_0x1001('0x21')],_0x4bd4d5[_0x1001('0x42')],_0x4bd4d5[_0x1001('0x5')],_0x4bd4d5[_0x1001('0x10')],_0x4bd4d5[_0x1001('0x4a')]];}();this['balloonPanelView'][_0x1001('0x24')]({'target':_0x57c661,'positions':_0x3545b6});}[_0x1001('0x41')](){const _0x7fda85=this[_0x1001('0x20')],_0x13159a=_0x7fda85[_0x1001('0x2e')]['first'];_0x13159a&&(this['_detachListeners'](_0x13159a),_0x7fda85[_0x1001('0x52')](),_0x7fda85[_0x1001('0x2e')]['clear']());}['_attachListeners'](_0x322b09){this[_0x1001('0x55')](_0x322b09,_0x1001('0x1'),()=>this['_updateBalloonPosition']()),this[_0x1001('0x55')](_0x322b09,'Esc',(_0x503f1d,_0x33a168)=>{this['_manuallyClosedAnnotationViews'][_0x1001('0x2b')](_0x322b09),this['_hideBalloon'](),_0x33a168();});}[_0x1001('0x38')](_0x21b4e7){this['stopListening'](_0x21b4e7);}}
23
+ const _0x352c=['isDirty','has','register','southArrowNorth','change:container','pluginName','activeAnnotation','narrowsidebar-detach-not-attached','number','high','_manuallyClosedAnnotationViews','preventDefault','_showBalloon','includes','_refreshPositioning','rearrange','keyCode','locale','northArrowSouth','isAttached','type','_hideBalloon','_annotationToNarrowView','_integrateWithEditorAnnotations','attachToDom','off','listenTo','create','getOrderedSelectedAnnotations','target','element','add','narrowSidebar','bind','attach','contains','refresh','_setSelectedAnnotations','editors','_attachToContainer','northArrowSouthWest','setActiveAnnotation','stop','set:container','destroy','_attachListeners','getSidebarItemView','southArrowNorthWest','getByView','_updateBalloonPosition','resize','view','defaultPositions','context','preventClosingBalloon','cancel','clear','southArrowNorthEast','_destroyEditorAnnotationsIntegration','blur','values','bodyCollection','get','hasDomSelection','addEventListener','removeEventListener','stopPropagation','delete','Esc','_refreshPositioningDebounced','mousedown','pin','addAnnotation','stopListening','execute','focus','isVisible','_annotations','ready','_editorAnnotations','detach','refreshPositioning','first','remove','annotationType','_domEmitter','_selectedAnnotations','content','init','low','annotations','set','plugins','_detachListeners','change:height','northArrowSouthEast','unpin','balloonPanelView','EditorAnnotations','length'];(function(_0x1fc4bf,_0x352c46){const _0x2d6166=function(_0x377171){while(--_0x377171){_0x1fc4bf['push'](_0x1fc4bf['shift']());}};_0x2d6166(++_0x352c46);}(_0x352c,0xe9));const _0x2d61=function(_0x1fc4bf,_0x352c46){_0x1fc4bf=_0x1fc4bf-0x0;let _0x2d6166=_0x352c[_0x1fc4bf];return _0x2d6166;};import{ContextPlugin as _0x365a9a}from'ckeditor5/src/core';import _0x4b8b54 from'./annotationsuis';import _0x2897e0 from'./sidebar';import _0x3adcbc from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x30c455,BodyCollection as _0x11aad2}from'ckeditor5/src/ui';import{CKEditorError as _0x591ebd,DomEmitterMixin as _0x4d3b5f,keyCodes as _0x1847d1,Collection as _0x73316c}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x406c9e}from'lodash-es';export default class s extends _0x365a9a{static get['requires'](){return[_0x2897e0,_0x4b8b54];}static get[_0x2d61('0x48')](){return'NarrowSidebar';}constructor(_0x1c6753){super(_0x1c6753),this[_0x2d61('0x56')]=!0x1,this[_0x2d61('0x4d')]=new Set(),this['_domEmitter']=Object[_0x2d61('0x5e')](_0x4d3b5f),this[_0x2d61('0x59')]=new Map(),this[_0x2d61('0x3a')](_0x2d61('0x49'),null),this[_0x2d61('0x39')]=null,this[_0x2d61('0x35')]=[],this['_editorAnnotations']=new _0x73316c(),this[_0x2d61('0x24')]=_0x406c9e(()=>{this[_0x2d61('0x51')]();},0xfa,{'leading':!0x1});}[_0x2d61('0x37')](){this['context']['plugins'][_0x2d61('0x1d')](_0x4b8b54)[_0x2d61('0x45')](_0x2d61('0x63'),this),this['bodyCollection']=new _0x11aad2(this[_0x2d61('0x14')][_0x2d61('0x54')]),this[_0x2d61('0x40')]=new _0x30c455(this[_0x2d61('0x14')][_0x2d61('0x54')]),this[_0x2d61('0x1c')][_0x2d61('0x5b')](),this[_0x2d61('0x1c')][_0x2d61('0x62')](this[_0x2d61('0x40')]);}[_0x2d61('0x1')](_0x373fcc){this[_0x2d61('0x39')]=_0x373fcc;const _0x2ac816=this[_0x2d61('0x14')]['plugins'][_0x2d61('0x1d')](_0x2897e0),_0x3cacc5=this[_0x2d61('0x40')];if(_0x2ac816[_0x2d61('0x2c')]=_0x373fcc,this[_0x2d61('0x56')])throw new _0x591ebd('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x2ac816,_0x2d61('0xa'),()=>{this[_0x2d61('0x2f')](),this[_0x2d61('0x5d')](_0x2ac816,_0x2d61('0x47'),_0x40d343=>{_0x40d343[_0x2d61('0x5c')](),this[_0x2d61('0x1')](_0x373fcc);});}),_0x2ac816[_0x2d61('0x6')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x59663f=_0x8e93a6=>{const _0x17202d=new _0x3adcbc(this[_0x2d61('0x14')][_0x2d61('0x54')]);_0x2ac816[_0x2d61('0x27')](_0x8e93a6,_0x17202d),this['_annotationToNarrowView']['set'](_0x8e93a6,_0x17202d),_0x17202d[_0x2d61('0x0')](_0x2d61('0x43'),_0x2d61('0x33'),_0x2d61('0x4b'))['to'](_0x8e93a6[_0x2d61('0x12')],_0x2d61('0x43'),_0x2d61('0x57'),_0x2d61('0x42')),_0x17202d['on'](_0x2d61('0x29'),()=>{this[_0x2d61('0x4d')]['clear'](),_0x3cacc5['content'][_0x2d61('0x31')]!==_0x8e93a6[_0x2d61('0x12')]?(this['_showBalloon'](_0x8e93a6),_0x8e93a6['view'][_0x2d61('0x61')][_0x2d61('0x2a')](),this['setActiveAnnotation'](_0x8e93a6)):this[_0x2d61('0x8')](null);});};for(const _0x11ac4f of _0x373fcc)_0x59663f(_0x11ac4f);this[_0x2d61('0x5d')](_0x373fcc,_0x2d61('0x62'),(_0x1b83e7,_0x518c37)=>{_0x59663f(_0x518c37);}),this[_0x2d61('0x5d')](_0x373fcc,_0x2d61('0x32'),(_0x5cd06c,_0x98c7e9,_0x4e303e)=>{this[_0x2d61('0x59')][_0x2d61('0x1d')](_0x98c7e9)['destroy'](),this['_annotationToNarrowView'][_0x2d61('0x22')](_0x98c7e9),_0x2ac816[_0x2d61('0x52')]({'removedAnnotation':_0x98c7e9,'previousAnnotation':_0x373fcc[_0x2d61('0x1d')](_0x4e303e-0x1),'nextAnnotation':_0x373fcc['get'](_0x4e303e+0x1)}),_0x98c7e9===this['activeAnnotation']&&this[_0x2d61('0x8')](null);},{'priority':_0x2d61('0x38')}),this[_0x2d61('0x5d')](_0x373fcc,'focus',(_0x324222,_0x3da087)=>{this[_0x2d61('0x8')](_0x3da087);}),this[_0x2d61('0x5d')](_0x373fcc,'blur',()=>{this[_0x2d61('0x8')](null);}),this[_0x2d61('0x34')][_0x2d61('0x5d')](document,'keydown',(_0x25da96,_0x4ca1a3)=>{_0x4ca1a3[_0x2d61('0x53')]===_0x1847d1['esc']&&_0x3cacc5[_0x2d61('0x2b')]&&(this[_0x2d61('0x4d')][_0x2d61('0x62')](_0x3cacc5['content'][_0x2d61('0x31')]),this[_0x2d61('0x58')](),_0x4ca1a3[_0x2d61('0x21')](),_0x4ca1a3[_0x2d61('0x4e')]());}),this[_0x2d61('0x34')][_0x2d61('0x5d')](document,'mousedown',(_0x45f88c,_0xb2e948)=>{const _0x31c616=_0xb2e948['target'];_0x3cacc5[_0x2d61('0x2b')]&&_0x3cacc5[_0x2d61('0x61')][_0x2d61('0x2')](_0x31c616)||_0x2ac816['view'][_0x2d61('0x61')][_0x2d61('0x2')](_0x31c616)||_0x45f88c[_0x2d61('0x15')]||(this[_0x2d61('0x4d')][_0x2d61('0x17')](),this[_0x2d61('0x58')](),this[_0x2d61('0x8')](null));});const _0x18b72b=this[_0x2d61('0x14')][_0x2d61('0x5')]?this[_0x2d61('0x14')][_0x2d61('0x5')]:new _0x73316c([this[_0x2d61('0x14')]]);for(const _0x5681fc of _0x18b72b)this[_0x2d61('0x5a')](_0x5681fc);this[_0x2d61('0x5d')](_0x18b72b,_0x2d61('0x62'),(_0x3c0f1f,_0x4c2e38)=>{this[_0x2d61('0x5d')](_0x4c2e38,_0x2d61('0x2d'),()=>{this[_0x2d61('0x5a')](_0x4c2e38);});}),this[_0x2d61('0x5d')](_0x18b72b,_0x2d61('0x32'),(_0x46f692,_0x254da3)=>{_0x254da3[_0x2d61('0x3b')][_0x2d61('0x44')](_0x2d61('0x41'))&&this[_0x2d61('0x19')](_0x254da3[_0x2d61('0x3b')][_0x2d61('0x1d')]('EditorAnnotations'));}),window[_0x2d61('0x1f')](_0x2d61('0x11'),this[_0x2d61('0x24')]),this[_0x2d61('0x51')]();}[_0x2d61('0x8')](_0x565617){if(_0x565617===this[_0x2d61('0x49')])return;const _0x1c41a7=this[_0x2d61('0x14')][_0x2d61('0x3b')][_0x2d61('0x1d')]('Sidebar');if(_0x1c41a7[_0x2d61('0x3')]({'blurredAnnotation':this[_0x2d61('0x49')],'activatedAnnotation':_0x565617,'disableAnimationOnActivatedAnnotation':!0x0}),_0x565617)_0x1c41a7[_0x2d61('0xd')](_0x565617)?this[_0x2d61('0x4f')](_0x565617):this['_hideBalloon']();else this[_0x2d61('0x58')]();this[_0x2d61('0x49')]=_0x565617;}[_0x2d61('0x2f')](){if(!this['isAttached'])throw new _0x591ebd(_0x2d61('0x4a'),this);this['setActiveAnnotation'](null);const _0x5b9eab=this[_0x2d61('0x14')]['plugins'][_0x2d61('0x1d')]('Sidebar');this[_0x2d61('0x58')](),Array['from'](this[_0x2d61('0x59')][_0x2d61('0x1b')](),_0x574870=>_0x574870[_0x2d61('0xb')]()),this[_0x2d61('0x59')]['clear'](),_0x5b9eab['_detachFromContainer'](this[_0x2d61('0x39')]),this[_0x2d61('0x28')](),this['_domEmitter'][_0x2d61('0x28')](),this[_0x2d61('0x28')](this[_0x2d61('0x14')][_0x2d61('0x5')]);for(const _0x4f3af2 of Array['from'](this[_0x2d61('0x2e')]))this[_0x2d61('0x19')](_0x4f3af2);window[_0x2d61('0x20')](_0x2d61('0x11'),this[_0x2d61('0x24')]),this[_0x2d61('0x24')][_0x2d61('0x16')](),this[_0x2d61('0x35')]=[],this[_0x2d61('0x56')]=!0x1,this[_0x2d61('0x39')]=null;}[_0x2d61('0xb')](){this[_0x2d61('0x56')]&&this[_0x2d61('0x2f')](),this[_0x2d61('0x1c')]['detachFromDom']();}[_0x2d61('0x5a')](_0xf4a16f){const _0x510ac7=_0xf4a16f[_0x2d61('0x3b')]['get'](_0x2d61('0x41')),_0x8fb362=this[_0x2d61('0x14')]['plugins'][_0x2d61('0x1d')](_0x2897e0),_0x49199e=this[_0x2d61('0x39')],_0x27c035=this['balloonPanelView'],_0x466b7e=()=>{const _0x5ca658=_0x510ac7[_0x2d61('0x5f')]({'activeAnnotation':this[_0x2d61('0x49')],'annotations':this[_0x2d61('0x39')]});this[_0x2d61('0x4')](_0x5ca658),this[_0x2d61('0x8')](_0x5ca658[0x0]||null);};this['listenTo'](_0x510ac7,'refresh',_0x466b7e),this[_0x2d61('0x5d')](_0x510ac7,'blur',(_0x2248b4,{isAnnotationTracked:_0x88e88e})=>{this['activeAnnotation']&&_0x88e88e(this[_0x2d61('0x49')])&&(this[_0x2d61('0x4')]([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x510ac7,'uiUpdate',()=>{this[_0x2d61('0x24')]();}),this[_0x2d61('0x5d')](_0x49199e,_0x2d61('0x1a'),_0x38f2fc=>{_0x510ac7[_0x2d61('0x1e')]()&&_0x38f2fc[_0x2d61('0x9')]();},{'priority':'high'}),this[_0x2d61('0x34')][_0x2d61('0x5d')](document,_0x2d61('0x25'),(_0x706538,_0x19bccd)=>{const _0x57ec04=_0x19bccd[_0x2d61('0x60')];_0x27c035[_0x2d61('0x2b')]&&_0x27c035['element'][_0x2d61('0x2')](_0x57ec04)||_0x8fb362[_0x2d61('0x12')][_0x2d61('0x61')][_0x2d61('0x2')](_0x57ec04)||this[_0x2d61('0x49')]&&_0x510ac7[_0x2d61('0x1e')]()&&(_0x466b7e(),_0x706538[_0x2d61('0x15')]=!0x0);},{'priority':_0x2d61('0x4c')}),this[_0x2d61('0x2e')][_0x2d61('0x62')](_0x510ac7);}[_0x2d61('0x19')](_0x3d1c00){_0x3d1c00&&(this[_0x2d61('0x28')](_0x3d1c00),this[_0x2d61('0x2e')][_0x2d61('0x32')](_0x3d1c00));}[_0x2d61('0x4')](_0x4ccc4c){for(const _0x455fec of this[_0x2d61('0x35')])_0x4ccc4c[_0x2d61('0x50')](_0x455fec)||this[_0x2d61('0x4d')]['delete'](_0x455fec[_0x2d61('0x12')]);this[_0x2d61('0x35')]=_0x4ccc4c;}[_0x2d61('0x51')](){const _0x215cda=this[_0x2d61('0x40')];this[_0x2d61('0x39')][_0x2d61('0x30')](),_0x215cda[_0x2d61('0x2b')]&&this[_0x2d61('0x10')]();}[_0x2d61('0x4f')](_0x34fe14){if(this[_0x2d61('0x4d')]['has'](_0x34fe14[_0x2d61('0x12')]))return;const _0x1c6355=this['balloonPanelView']['content'][_0x2d61('0x31')];_0x1c6355!==_0x34fe14[_0x2d61('0x12')]?(_0x1c6355&&this[_0x2d61('0x3c')](_0x1c6355),this[_0x2d61('0xc')](_0x34fe14[_0x2d61('0x12')]),this[_0x2d61('0x40')]['content']['clear'](),this[_0x2d61('0x40')][_0x2d61('0x36')][_0x2d61('0x62')](_0x34fe14[_0x2d61('0x12')]),this['_updateBalloonPosition']()):this[_0x2d61('0x10')]();}[_0x2d61('0x10')](){const _0x16f9fa=this['balloonPanelView'][_0x2d61('0x36')][_0x2d61('0x31')],_0x264b13=this[_0x2d61('0x39')][_0x2d61('0xf')](_0x16f9fa);if(!this['_annotationToNarrowView'][_0x2d61('0x44')](_0x264b13))return;const _0xa37d5b=this['_annotationToNarrowView'][_0x2d61('0x1d')](_0x264b13)[_0x2d61('0x61')],_0x336dc4=function(){const _0xca5daa=_0x30c455[_0x2d61('0x13')];return[_0xca5daa[_0x2d61('0x18')],_0xca5daa[_0x2d61('0x3e')],_0xca5daa[_0x2d61('0x46')],_0xca5daa[_0x2d61('0x55')],_0xca5daa[_0x2d61('0xe')],_0xca5daa[_0x2d61('0x7')]];}();this[_0x2d61('0x40')][_0x2d61('0x26')]({'target':_0xa37d5b,'positions':_0x336dc4});}[_0x2d61('0x58')](){const _0x3f1367=this['balloonPanelView'],_0x44a32a=_0x3f1367[_0x2d61('0x36')][_0x2d61('0x31')];_0x44a32a&&(this[_0x2d61('0x3c')](_0x44a32a),_0x3f1367[_0x2d61('0x3f')](),_0x3f1367['content']['clear']());}[_0x2d61('0xc')](_0x2b6f0c){this['listenTo'](_0x2b6f0c,_0x2d61('0x3d'),()=>this[_0x2d61('0x10')]()),this[_0x2d61('0x5d')](_0x2b6f0c,_0x2d61('0x23'),(_0x48ddc1,_0x3bb67a)=>{this[_0x2d61('0x4d')][_0x2d61('0x62')](_0x2b6f0c),this['_hideBalloon'](),_0x3bb67a();});}[_0x2d61('0x3c')](_0xfd118){this[_0x2d61('0x28')](_0xfd118);}}