@ckeditor/ckeditor5-comments 35.3.2 → 36.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/build/comments.js +3 -2
  2. package/build/translations/af.js +1 -0
  3. package/build/translations/ar.js +1 -0
  4. package/build/translations/bg.js +1 -0
  5. package/build/translations/bn.js +1 -0
  6. package/build/translations/bs.js +1 -0
  7. package/build/translations/ca.js +1 -0
  8. package/build/translations/cs.js +1 -0
  9. package/build/translations/da.js +1 -0
  10. package/build/translations/de-ch.js +1 -0
  11. package/build/translations/de.js +1 -0
  12. package/build/translations/el.js +1 -0
  13. package/build/translations/en-au.js +1 -0
  14. package/build/translations/es-co.js +1 -0
  15. package/build/translations/es.js +1 -0
  16. package/build/translations/et.js +1 -0
  17. package/build/translations/fa.js +1 -0
  18. package/build/translations/fi.js +1 -0
  19. package/build/translations/fr.js +1 -0
  20. package/build/translations/gl.js +1 -0
  21. package/build/translations/he.js +1 -0
  22. package/build/translations/hi.js +1 -0
  23. package/build/translations/hr.js +1 -0
  24. package/build/translations/hu.js +1 -0
  25. package/build/translations/id.js +1 -0
  26. package/build/translations/it.js +1 -0
  27. package/build/translations/ja.js +1 -0
  28. package/build/translations/jv.js +1 -0
  29. package/build/translations/ko.js +1 -0
  30. package/build/translations/lt.js +1 -0
  31. package/build/translations/lv.js +1 -0
  32. package/build/translations/ms.js +1 -0
  33. package/build/translations/nl.js +1 -0
  34. package/build/translations/no.js +1 -0
  35. package/build/translations/pl.js +1 -0
  36. package/build/translations/pt-br.js +1 -0
  37. package/build/translations/pt.js +1 -0
  38. package/build/translations/ro.js +1 -0
  39. package/build/translations/ru.js +1 -0
  40. package/build/translations/sk.js +1 -0
  41. package/build/translations/sr-latn.js +1 -0
  42. package/build/translations/sr.js +1 -0
  43. package/build/translations/sv.js +1 -0
  44. package/build/translations/th.js +1 -0
  45. package/build/translations/tk.js +1 -0
  46. package/build/translations/tr.js +1 -0
  47. package/build/translations/tt.js +1 -0
  48. package/build/translations/ug.js +1 -0
  49. package/build/translations/uk.js +1 -0
  50. package/build/translations/ur.js +1 -0
  51. package/build/translations/vi.js +1 -0
  52. package/build/translations/zh-cn.js +1 -0
  53. package/build/translations/zh.js +1 -0
  54. package/lang/translations/af.po +1 -1
  55. package/lang/translations/ar.po +4 -4
  56. package/lang/translations/bg.po +4 -4
  57. package/lang/translations/bn.po +4 -4
  58. package/lang/translations/bs.po +1 -1
  59. package/lang/translations/ca.po +4 -4
  60. package/lang/translations/cs.po +4 -4
  61. package/lang/translations/da.po +4 -4
  62. package/lang/translations/de-ch.po +1 -1
  63. package/lang/translations/de.po +4 -4
  64. package/lang/translations/el.po +4 -4
  65. package/lang/translations/en-au.po +1 -1
  66. package/lang/translations/en.po +1 -1
  67. package/lang/translations/es-co.po +1 -1
  68. package/lang/translations/es.po +4 -4
  69. package/lang/translations/et.po +4 -4
  70. package/lang/translations/fa.po +1 -1
  71. package/lang/translations/fi.po +4 -4
  72. package/lang/translations/fr.po +4 -4
  73. package/lang/translations/gl.po +1 -1
  74. package/lang/translations/he.po +4 -4
  75. package/lang/translations/hi.po +4 -4
  76. package/lang/translations/hr.po +1 -1
  77. package/lang/translations/hu.po +4 -4
  78. package/lang/translations/id.po +4 -4
  79. package/lang/translations/it.po +4 -4
  80. package/lang/translations/ja.po +4 -4
  81. package/lang/translations/jv.po +1 -1
  82. package/lang/translations/ko.po +4 -4
  83. package/lang/translations/lt.po +4 -4
  84. package/lang/translations/lv.po +4 -4
  85. package/lang/translations/ms.po +4 -4
  86. package/lang/translations/nl.po +4 -4
  87. package/lang/translations/no.po +4 -4
  88. package/lang/translations/pl.po +4 -4
  89. package/lang/translations/pt-br.po +4 -4
  90. package/lang/translations/pt.po +4 -4
  91. package/lang/translations/ro.po +4 -4
  92. package/lang/translations/ru.po +4 -4
  93. package/lang/translations/sk.po +4 -4
  94. package/lang/translations/sr-latn.po +5 -5
  95. package/lang/translations/sr.po +5 -5
  96. package/lang/translations/sv.po +4 -4
  97. package/lang/translations/th.po +4 -4
  98. package/lang/translations/tk.po +1 -1
  99. package/lang/translations/tr.po +4 -4
  100. package/lang/translations/tt.po +1 -1
  101. package/lang/translations/ug.po +7 -7
  102. package/lang/translations/uk.po +4 -4
  103. package/lang/translations/ur.po +1 -1
  104. package/lang/translations/vi.po +4 -4
  105. package/lang/translations/zh-cn.po +4 -4
  106. package/lang/translations/zh.po +4 -4
  107. package/package.json +3 -3
  108. package/src/annotations/annotation.js +2 -2
  109. package/src/annotations/annotationcollection.js +2 -2
  110. package/src/annotations/annotations.js +2 -2
  111. package/src/annotations/annotationsuis.js +2 -2
  112. package/src/annotations/editorannotations.js +2 -2
  113. package/src/annotations/inlineannotations.js +2 -2
  114. package/src/annotations/narrowsidebar.js +2 -2
  115. package/src/annotations/sidebar.js +2 -2
  116. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  117. package/src/annotations/view/annotationview.js +2 -2
  118. package/src/annotations/view/sidebaritemview.js +2 -2
  119. package/src/annotations/view/sidebarview.js +2 -2
  120. package/src/annotations/widesidebar.js +2 -2
  121. package/src/comments/addcommentthreadcommand.js +2 -2
  122. package/src/comments/commentsediting.js +2 -2
  123. package/src/comments/commentsrepository.js +2 -2
  124. package/src/comments/commentsui.js +2 -2
  125. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  126. package/src/comments/integrations/importword.js +2 -2
  127. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  128. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  129. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  130. package/src/comments/ui/commentthreadcontroller.js +2 -2
  131. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  132. package/src/comments/ui/view/basecommentview.js +2 -2
  133. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  134. package/src/comments/ui/view/commentcontentview.js +2 -2
  135. package/src/comments/ui/view/commentinputview.js +2 -2
  136. package/src/comments/ui/view/commentslistview.js +2 -2
  137. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  138. package/src/comments/ui/view/commentthreadview.js +2 -2
  139. package/src/comments/ui/view/commentview.js +2 -2
  140. package/src/comments.js +2 -2
  141. package/src/commentsonly.js +2 -2
  142. package/src/index.js +1 -1
  143. package/src/utils/common-translations.js +2 -2
  144. package/src/utils/createmutationobserver.js +2 -2
  145. package/theme/annotation.css +23 -6
  146. package/theme/commentthread.css +7 -0
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -28,7 +28,7 @@ msgstr[1] "%0 ئىنكاس"
28
28
 
29
29
  msgctxt "The alert displayed for a comment that is too long."
30
30
  msgid "TOO_LONG_COMMENT_ALERT"
31
- msgstr ""
31
+ msgstr "ئىنكاس مەزمۇنى بەك ئۇزۇن. ئىنكاسىڭىز %0 ھەرپ ئەمما چېكى %1 ھەرپ."
32
32
 
33
33
  msgctxt "The placeholder for the reply field."
34
34
  msgid "Reply..."
@@ -64,20 +64,20 @@ msgstr "ئىنكاس"
64
64
 
65
65
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
66
66
  msgid "PENDING_ACTION_COMMENT_THREAD"
67
- msgstr ""
67
+ msgstr "ئىنكاس رايونىدا ساقلانمىغان ئۆزگەرتىش مەۋجۇت"
68
68
 
69
69
  msgctxt "The additional information that comments comes from external source."
70
70
  msgid "EXTERNAL_COMMENT"
71
- msgstr ""
71
+ msgstr "بۇ ئىنكاس سىرتقى مەنبەدىن كەلگەن."
72
72
 
73
73
  msgctxt "The additional information that comments comes from imported Word file."
74
74
  msgid "EXTERNAL_IMPORT_WORD_COMMENT"
75
- msgstr ""
75
+ msgstr "بۇ ئىنكاس ئەكىرىلگەن Word ھۆججىتىدىن كەلگەن."
76
76
 
77
77
  msgctxt "The additional information that displayed author name comes from an external source."
78
78
  msgid "EXTERNAL_AVATAR"
79
- msgstr ""
79
+ msgstr "كۆرۈنگەن يازغۇچىنىڭ ئىسمى سىرتقى مەنبە (قوشقۇچى %0) دىن كەلگەن"
80
80
 
81
81
  msgctxt "The additional information that displayed author name comes from imported Word file."
82
82
  msgid "EXTERNAL_IMPORT_WORD_AVATAR"
83
- msgstr ""
83
+ msgstr "كۆرۈنگەن يازغۇچىنىڭ ئىسمى %0 ئەكىرگەن Wordھۆججىتىدىن دىن كەلگەن"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -74,12 +74,12 @@ msgstr "Цей коментар походить від зовнішнього
74
74
 
75
75
  msgctxt "The additional information that comments comes from imported Word file."
76
76
  msgid "EXTERNAL_IMPORT_WORD_COMMENT"
77
- msgstr ""
77
+ msgstr "Цей коментар походить з імпортованого Word файлу."
78
78
 
79
79
  msgctxt "The additional information that displayed author name comes from an external source."
80
80
  msgid "EXTERNAL_AVATAR"
81
- msgstr ""
81
+ msgstr "Показане ім'я автора походить із зовнішнього джерела (доданого %0)"
82
82
 
83
83
  msgctxt "The additional information that displayed author name comes from imported Word file."
84
84
  msgid "EXTERNAL_IMPORT_WORD_AVATAR"
85
- msgstr ""
85
+ msgstr "Показане ім'я автора походить із документу Word імпортованого %0"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -71,12 +71,12 @@ msgstr "Nhận xét này đến từ một nguồn bên ngoài."
71
71
 
72
72
  msgctxt "The additional information that comments comes from imported Word file."
73
73
  msgid "EXTERNAL_IMPORT_WORD_COMMENT"
74
- msgstr ""
74
+ msgstr "Bình luận này đến từ một tệp Word được nhập."
75
75
 
76
76
  msgctxt "The additional information that displayed author name comes from an external source."
77
77
  msgid "EXTERNAL_AVATAR"
78
- msgstr ""
78
+ msgstr "Tên tác giả được hiển thị đến từ nguồn bên ngoài (do %0 thêm vào)"
79
79
 
80
80
  msgctxt "The additional information that displayed author name comes from imported Word file."
81
81
  msgid "EXTERNAL_IMPORT_WORD_AVATAR"
82
- msgstr ""
82
+ msgstr "Tên tác giả được hiển thị đến từ một tài liệu Word do %0 nhập"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -71,12 +71,12 @@ msgstr "此评论来自外部来源。"
71
71
 
72
72
  msgctxt "The additional information that comments comes from imported Word file."
73
73
  msgid "EXTERNAL_IMPORT_WORD_COMMENT"
74
- msgstr ""
74
+ msgstr "此评论来自导入的 Word 文件。"
75
75
 
76
76
  msgctxt "The additional information that displayed author name comes from an external source."
77
77
  msgid "EXTERNAL_AVATAR"
78
- msgstr ""
78
+ msgstr "显示的作者名来自(%0 添加的)外部来源"
79
79
 
80
80
  msgctxt "The additional information that displayed author name comes from imported Word file."
81
81
  msgid "EXTERNAL_IMPORT_WORD_AVATAR"
82
- msgstr ""
82
+ msgstr "显示的作者名来自 %0 导入的 Word 文件"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -71,12 +71,12 @@ msgstr "此留言來自外部來源。"
71
71
 
72
72
  msgctxt "The additional information that comments comes from imported Word file."
73
73
  msgid "EXTERNAL_IMPORT_WORD_COMMENT"
74
- msgstr ""
74
+ msgstr "此留言來自匯入的 Word 檔案。"
75
75
 
76
76
  msgctxt "The additional information that displayed author name comes from an external source."
77
77
  msgid "EXTERNAL_AVATAR"
78
- msgstr ""
78
+ msgstr "顯示的作者名稱來自外部來源(由 %0 新增)"
79
79
 
80
80
  msgctxt "The additional information that displayed author name comes from imported Word file."
81
81
  msgid "EXTERNAL_IMPORT_WORD_AVATAR"
82
- msgstr ""
82
+ msgstr "顯示的作者名稱來自由 %0 匯入的 Word 文件"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "35.3.2",
3
+ "version": "36.0.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.3.2",
35
- "ckeditor5-collaboration": "^35.3.2",
34
+ "ckeditor5": "^36.0.0",
35
+ "ckeditor5-collaboration": "^36.0.0",
36
36
  "lodash-es": "^4.17.11"
37
37
  }
38
38
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc7dd=['_target','destroy','render','function','_isTargetElementVisible','updateTargetRect','clear','offsetParent','getClientRects','focusableElements','view','_id','_type','remove','target','type','refreshVisibility','targetRect','add','nodeType','_assertCorrectTarget','object','innerView','annotation-invalid-target','isVisible','stopListening','focusTracker','isActive'];(function(_0x2e62e2,_0xc7dd7a){const _0x2079d2=function(_0x4062f5){while(--_0x4062f5){_0x2e62e2['push'](_0x2e62e2['shift']());}};_0x2079d2(++_0xc7dd7a);}(_0xc7dd,0x127));const _0x2079=function(_0x2e62e2,_0xc7dd7a){_0x2e62e2=_0x2e62e2-0x0;let _0x2079d2=_0xc7dd[_0x2e62e2];return _0x2079d2;};import{CKEditorError as _0x3d2beb,Rect as _0x505ce1,Collection as _0x3696f1,mix as _0xd34fbe,ObservableMixin as _0x18f027}from'ckeditor5/src/utils';export default class d{constructor({view:_0x554b95,target:_0x3cb6c2,type:_0x4b1ee4,isVisible:_0x3cd28c=!0x0}){this[_0x2079('0x17')]=_0x554b95,this['view']['element']||this['view'][_0x2079('0xf')](),this[_0x2079('0x19')]=_0x4b1ee4,this[_0x2079('0xd')]=_0x3cb6c2,this[_0x2079('0x5')](),this[_0x2079('0x16')]=new _0x3696f1([this[_0x2079('0x17')]['element']],{'idProperty':_0x2079('0x18')}),this['focusableElements']['on'](_0x2079('0x3'),(_0x9d92e3,_0x6d65f9)=>{this[_0x2079('0x17')]['focusTracker'][_0x2079('0x3')](_0x6d65f9);}),this[_0x2079('0x16')]['on']('remove',(_0x3c4973,_0x3ae98b)=>{this[_0x2079('0x17')][_0x2079('0xb')][_0x2079('0x1a')](_0x3ae98b);}),this['set'](_0x2079('0x9'),_0x3cd28c);}get[_0x2079('0x0')](){return _0x2079('0x10')==typeof this[_0x2079('0x19')]?this[_0x2079('0x19')]():this[_0x2079('0x19')];}get[_0x2079('0x7')](){return this['view']['mainView'];}get['target'](){return _0x2079('0x10')==typeof this['_target']?this[_0x2079('0xd')]():this[_0x2079('0xd')];}get[_0x2079('0x2')](){const _0x3994f4=this[_0x2079('0x1b')];return this[_0x2079('0x5')](),null!==_0x3994f4&&this[_0x2079('0x11')]()?p(_0x3994f4)?new _0x505ce1(_0x3994f4[_0x2079('0x15')]()['item'](0x0)):new _0x505ce1(_0x3994f4):null;}get[_0x2079('0xc')](){return this[_0x2079('0x17')][_0x2079('0xc')];}set['isActive'](_0x4f4c3d){this[_0x2079('0x17')]['isActive']=_0x4f4c3d,this['view']['mainView'][_0x2079('0xc')]=_0x4f4c3d;}[_0x2079('0x12')](){this[_0x2079('0x17')]['targetRect']=this['targetRect'];}[_0x2079('0xe')](){this[_0x2079('0x16')][_0x2079('0xa')](),this['focusableElements'][_0x2079('0x13')](),this['stopListening']();}[_0x2079('0x1')](){this[_0x2079('0x9')]=this[_0x2079('0x11')]();}['_isTargetElementVisible'](){const _0x3d6ab2=this[_0x2079('0x1b')];if(!p(_0x3d6ab2))return!0x0;if(_0x3d6ab2[_0x2079('0x14')])return!0x0;return!!_0x3d6ab2[_0x2079('0x15')]()['item'](0x0);}['_assertCorrectTarget'](){const _0x588837=this['target'];if(!(null===_0x588837||_0x588837 instanceof _0x505ce1||p(_0x588837)))throw new _0x3d2beb(_0x2079('0x8'),null,{'target':_0x588837});}}function p(_0x59e5ad){return null!==_0x59e5ad&&_0x2079('0x6')==typeof _0x59e5ad&&0x1===_0x59e5ad[_0x2079('0x4')];}_0xd34fbe(d,_0x18f027);
23
+ const _0x321a=['render','focusTracker','_target','getClientRects','targetRect','isVisible','focusableElements','refreshVisibility','type','annotation-invalid-target','nodeType','isActive','remove','offsetParent','add','object','length','_assertCorrectTarget','view','destroy','target','stopListening','set','_getNormalizedTarget','innerView','item','filter','_type','function'];(function(_0x1850db,_0x321a8b){const _0x34caee=function(_0x196779){while(--_0x196779){_0x1850db['push'](_0x1850db['shift']());}};_0x34caee(++_0x321a8b);}(_0x321a,0xca));const _0x34ca=function(_0x1850db,_0x321a8b){_0x1850db=_0x1850db-0x0;let _0x34caee=_0x321a[_0x1850db];return _0x34caee;};import{CKEditorError as _0x5682de,Rect as _0x29e2ab,Collection as _0x5f5cbd,mix as _0x14f43c,ObservableMixin as _0x4ca73a}from'ckeditor5/src/utils';export default class d{constructor({view:_0x32f7d7,target:_0x398ded,type:_0x106baa,isVisible:_0x108ea8=!0x0}){this['view']=_0x32f7d7,this[_0x34ca('0x13')]['element']||this[_0x34ca('0x13')][_0x34ca('0x1')](),this['_type']=_0x106baa,this[_0x34ca('0x3')]=_0x398ded,d['_assertCorrectTarget'](this[_0x34ca('0x18')]()),this['focusableElements']=new _0x5f5cbd([this[_0x34ca('0x13')]['element']],{'idProperty':'_id'}),this['focusableElements']['on'](_0x34ca('0xf'),(_0x2adcbf,_0x23cf7c)=>{this[_0x34ca('0x13')][_0x34ca('0x2')][_0x34ca('0xf')](_0x23cf7c);}),this[_0x34ca('0x7')]['on'](_0x34ca('0xd'),(_0x3f97ad,_0x320fc4)=>{this['view'][_0x34ca('0x2')]['remove'](_0x320fc4);}),this[_0x34ca('0x17')]('isVisible',_0x108ea8);}get[_0x34ca('0x9')](){return _0x34ca('0x0')==typeof this[_0x34ca('0x1c')]?this[_0x34ca('0x1c')]():this[_0x34ca('0x1c')];}get[_0x34ca('0x19')](){return this[_0x34ca('0x13')]['mainView'];}get[_0x34ca('0x15')](){const _0x5586ed=this[_0x34ca('0x18')]();return d[_0x34ca('0x12')](_0x5586ed),_0x5586ed;}get[_0x34ca('0x5')](){const _0xf6e53c=this['target'];if(null===_0xf6e53c)return null;if(_0xf6e53c instanceof _0x29e2ab)return _0xf6e53c;const _0x3af952=_0xf6e53c[_0x34ca('0x1b')](_0x55e904=>function(_0x13369b){const _0x26bfe8=_0x13369b[_0x34ca('0xe')];if(_0x26bfe8)return!0x0;const _0x3a857e=_0x13369b[_0x34ca('0x4')]()[_0x34ca('0x1a')](0x0);return!!_0x3a857e;}(_0x55e904));return 0x0===_0x3af952[_0x34ca('0x11')]?null:new _0x29e2ab(_0x3af952[0x0][_0x34ca('0x4')]()[_0x34ca('0x1a')](0x0));}get[_0x34ca('0xc')](){return this[_0x34ca('0x13')][_0x34ca('0xc')];}set[_0x34ca('0xc')](_0x1ddfe4){this[_0x34ca('0x13')][_0x34ca('0xc')]=_0x1ddfe4,this[_0x34ca('0x13')]['mainView'][_0x34ca('0xc')]=_0x1ddfe4;}['updateTargetRect'](){this[_0x34ca('0x13')][_0x34ca('0x5')]=this[_0x34ca('0x5')];}[_0x34ca('0x14')](){this[_0x34ca('0x7')]['stopListening'](),this[_0x34ca('0x7')]['clear'](),this[_0x34ca('0x16')]();}[_0x34ca('0x8')](){this[_0x34ca('0x6')]=!!this['targetRect'];}static[_0x34ca('0x12')](_0x4e4cf7){if(!(null===_0x4e4cf7||_0x4e4cf7 instanceof _0x29e2ab||Array['isArray'](_0x4e4cf7)&&_0x4e4cf7['every'](_0x370473=>p(_0x370473))))throw new _0x5682de(_0x34ca('0xa'),null,{'target':_0x4e4cf7});}[_0x34ca('0x18')](){let _0x199f4b=_0x34ca('0x0')==typeof this[_0x34ca('0x3')]?this['_target']():this[_0x34ca('0x3')];return _0x199f4b=p(_0x199f4b)?[_0x199f4b]:_0x199f4b,_0x199f4b;}}function p(_0x3625b5){return null!==_0x3625b5&&_0x34ca('0x10')==typeof _0x3625b5&&0x1===_0x3625b5[_0x34ca('0xb')];}_0x14f43c(d,_0x4ca73a);
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3cfb=['set','length','change:isFocused','remove','annotationcollection-duplicated-item','isFocused','_viewToAnnotation','focusTracker','targetRect','fire','_innerViewToAnnotation','stopListening','getByInnerView','innerView','getByView','delete','_getOrderInContent','focus','has','refreshPositioning','destroy','from','annotationcollection-not-existing-item','_items','listenTo','add','view','blur','_focusTracker','focusableElements','top','updateTargetRect','clear','_sort','get','left'];(function(_0x16ac06,_0x3cfb21){const _0x57766e=function(_0x327740){while(--_0x327740){_0x16ac06['push'](_0x16ac06['shift']());}};_0x57766e(++_0x3cfb21);}(_0x3cfb,0xc3));const _0x5776=function(_0x16ac06,_0x3cfb21){_0x16ac06=_0x16ac06-0x0;let _0x57766e=_0x3cfb[_0x16ac06];return _0x57766e;};import{CKEditorError as _0x46f050,Collection as _0x758d0,FocusTracker as _0x4c15d3}from'ckeditor5/src/utils';export default class x extends _0x758d0{constructor(_0xc09d32=[]){super(),this[_0x5776('0x1f')]=new Map(),this[_0x5776('0x1b')]=new Map(),this[_0x5776('0xd')]=new _0x4c15d3(),this['_focusTracker']['on'](_0x5776('0x17'),(_0x2418e9,_0x4bd6a8,_0x30939f)=>{_0x30939f||this[_0x5776('0x1e')](_0x5776('0xc'));});for(const _0x4f1ace of _0xc09d32)this['add'](_0x4f1ace);}get[_0x5776('0x1a')](){return this['_focusTracker'][_0x5776('0x1a')];}[_0x5776('0xa')](_0x5ae90e){if(this['has'](_0x5ae90e))throw new _0x46f050(_0x5776('0x19'),null);this['_innerViewToAnnotation'][_0x5776('0x15')](_0x5ae90e[_0x5776('0x22')],_0x5ae90e),this[_0x5776('0x1b')][_0x5776('0x15')](_0x5ae90e[_0x5776('0xb')],_0x5ae90e);for(const _0x2b19ff of _0x5ae90e[_0x5776('0xe')])this[_0x5776('0xd')][_0x5776('0xa')](_0x2b19ff);this['listenTo'](_0x5ae90e['focusableElements'],_0x5776('0xa'),(_0x5e379f,_0x525095)=>{this[_0x5776('0xd')][_0x5776('0xa')](_0x525095);}),this[_0x5776('0x9')](_0x5ae90e['focusableElements'],'remove',(_0x2adcb8,_0x42338c)=>{this[_0x5776('0xd')]['remove'](_0x42338c);}),this['listenTo'](_0x5ae90e[_0x5776('0xb')][_0x5776('0x1c')],'change:isFocused',(_0x26b75d,_0xe5e911,_0x52440a)=>{_0x52440a&&this[_0x5776('0x1e')](_0x5776('0x2'),_0x5ae90e);}),_0x5ae90e['updateTargetRect']();const _0x5ee519=this['_getOrderInContent'](_0x5ae90e[_0x5776('0xb')][_0x5776('0x1d')]);super[_0x5776('0xa')](_0x5ae90e,_0x5ee519);}['remove'](_0x14c1e7){if(!this[_0x5776('0x3')](_0x14c1e7))throw new _0x46f050(_0x5776('0x7'),null);this['stopListening'](_0x14c1e7['view']['focusTracker']),this[_0x5776('0x20')](_0x14c1e7[_0x5776('0xe')]);for(const _0x5ee5d8 of _0x14c1e7[_0x5776('0xe')])this[_0x5776('0xd')][_0x5776('0x18')](_0x5ee5d8);this[_0x5776('0x1b')][_0x5776('0x0')](_0x14c1e7['view']),this[_0x5776('0x1f')][_0x5776('0x0')](_0x14c1e7[_0x5776('0x22')]),super[_0x5776('0x18')](_0x14c1e7);}[_0x5776('0x21')](_0x9ada1e){return this[_0x5776('0x1f')]['get'](_0x9ada1e);}[_0x5776('0x23')](_0x24d1f0){return this[_0x5776('0x1b')][_0x5776('0x13')](_0x24d1f0);}['destroy'](){super[_0x5776('0x11')](),this[_0x5776('0x20')](),this['_innerViewToAnnotation'][_0x5776('0x11')](),this[_0x5776('0x1b')][_0x5776('0x11')](),this[_0x5776('0xd')][_0x5776('0x5')]();}[_0x5776('0x4')](){for(const _0x545552 of this)_0x545552[_0x5776('0x10')]();this[_0x5776('0x12')]();}[_0x5776('0x12')](){const _0x394afe=Array[_0x5776('0x6')](this)['sort']((_0x333e31,_0x2238e1)=>y(_0x333e31[_0x5776('0xb')][_0x5776('0x1d')],_0x2238e1['view']['targetRect']));for(let _0x2f2c1f=_0x394afe[_0x5776('0x16')]-0x1;_0x2f2c1f>0x0;_0x2f2c1f--){const _0x2b41c9=_0x394afe[_0x2f2c1f];_0x2f2c1f!==this['getIndex'](_0x2b41c9)&&(this[_0x5776('0x18')](_0x2b41c9),this[_0x5776('0xa')](_0x2b41c9,_0x2f2c1f));}}[_0x5776('0x1')](_0x293a5d){let _0x488153=0x0;if(!_0x293a5d)return this[_0x5776('0x8')]['length'];for(const _0x249516 of this){const _0x254e40=_0x249516[_0x5776('0xb')][_0x5776('0x1d')];if(_0x254e40){if(y(_0x293a5d,_0x254e40)<0x0)return _0x488153;_0x488153++;}}return _0x488153;}}export function bindAnnotationCollections({source:_0x2e97f9,target:_0x49de3e,filter:_0x23e3be}){for(const _0x23f360 of _0x2e97f9)_0x23e3be(_0x23f360)&&_0x49de3e['add'](_0x23f360);_0x49de3e[_0x5776('0x9')](_0x2e97f9,'add',(_0xa285fd,_0x4a02e8)=>{_0x23e3be(_0x4a02e8)&&_0x49de3e[_0x5776('0xa')](_0x4a02e8);}),_0x49de3e[_0x5776('0x9')](_0x2e97f9,_0x5776('0x18'),(_0x42c0da,_0x470ff7)=>{_0x49de3e[_0x5776('0x3')](_0x470ff7)&&_0x49de3e[_0x5776('0x18')](_0x470ff7);});}function y(_0x26a89b,_0x34884d){if(null===_0x26a89b&&null===_0x34884d)return 0x0;if(null===_0x26a89b)return-0x1;if(null===_0x34884d)return 0x1;const _0x152425=_0x26a89b[_0x5776('0xf')]-_0x34884d[_0x5776('0xf')];return 0x0==_0x152425?_0x26a89b[_0x5776('0x14')]-_0x34884d[_0x5776('0x14')]:_0x152425;}
23
+ const _0x2611=['focusTracker','getByView','from','change:isFocused','updateTargetRect','focus','_viewToAnnotation','getIndex','annotationcollection-not-existing-item','view','destroy','_innerViewToAnnotation','getByInnerView','targetRect','get','add','_focusTracker','_getOrderInContent','fire','top','length','sort','refreshPositioning','delete','focusableElements','stopListening','set','left','isFocused','clear','has','innerView','listenTo','remove'];(function(_0x5da147,_0x261194){const _0x3488e5=function(_0x675327){while(--_0x675327){_0x5da147['push'](_0x5da147['shift']());}};_0x3488e5(++_0x261194);}(_0x2611,0x1ed));const _0x3488=function(_0x5da147,_0x261194){_0x5da147=_0x5da147-0x0;let _0x3488e5=_0x2611[_0x5da147];return _0x3488e5;};import{CKEditorError as _0x419ecb,Collection as _0x226793,FocusTracker as _0x2cf184}from'ckeditor5/src/utils';export default class x extends _0x226793{constructor(_0x24b295=[]){super(),this[_0x3488('0x1c')]=new Map(),this[_0x3488('0x17')]=new Map(),this[_0x3488('0x21')]=new _0x2cf184(),this['_focusTracker']['on'](_0x3488('0x14'),(_0x46d0c5,_0x520e65,_0xad8de5)=>{_0xad8de5||this[_0x3488('0x1')]('blur');});for(const _0x2d4d7e of _0x24b295)this[_0x3488('0x20')](_0x2d4d7e);}get[_0x3488('0xb')](){return this[_0x3488('0x21')]['isFocused'];}[_0x3488('0x20')](_0x35e265){if(this[_0x3488('0xd')](_0x35e265))throw new _0x419ecb('annotationcollection-duplicated-item',null);this[_0x3488('0x1c')][_0x3488('0x9')](_0x35e265[_0x3488('0xe')],_0x35e265),this[_0x3488('0x17')][_0x3488('0x9')](_0x35e265['view'],_0x35e265);for(const _0x1adecb of _0x35e265[_0x3488('0x7')])this[_0x3488('0x21')][_0x3488('0x20')](_0x1adecb);this[_0x3488('0xf')](_0x35e265[_0x3488('0x7')],'add',(_0x4bd646,_0x10fbc7)=>{this[_0x3488('0x21')][_0x3488('0x20')](_0x10fbc7);}),this['listenTo'](_0x35e265['focusableElements'],_0x3488('0x10'),(_0x5668bb,_0x769dca)=>{this[_0x3488('0x21')][_0x3488('0x10')](_0x769dca);}),this[_0x3488('0xf')](_0x35e265[_0x3488('0x1a')]['focusTracker'],_0x3488('0x14'),(_0x1b8dab,_0x59695f,_0xbd595a)=>{_0xbd595a&&this[_0x3488('0x1')](_0x3488('0x16'),_0x35e265);}),_0x35e265[_0x3488('0x15')]();const _0x1ab64d=this[_0x3488('0x0')](_0x35e265[_0x3488('0x1a')][_0x3488('0x1e')]);super[_0x3488('0x20')](_0x35e265,_0x1ab64d);}[_0x3488('0x10')](_0x246b03){if(!this[_0x3488('0xd')](_0x246b03))throw new _0x419ecb(_0x3488('0x19'),null);this[_0x3488('0x8')](_0x246b03[_0x3488('0x1a')][_0x3488('0x11')]),this[_0x3488('0x8')](_0x246b03['focusableElements']);for(const _0x16e9eb of _0x246b03[_0x3488('0x7')])this[_0x3488('0x21')][_0x3488('0x10')](_0x16e9eb);this[_0x3488('0x17')]['delete'](_0x246b03['view']),this[_0x3488('0x1c')][_0x3488('0x6')](_0x246b03[_0x3488('0xe')]),super[_0x3488('0x10')](_0x246b03);}[_0x3488('0x1d')](_0x3872c7){return this[_0x3488('0x1c')][_0x3488('0x1f')](_0x3872c7);}[_0x3488('0x12')](_0x41b485){return this[_0x3488('0x17')][_0x3488('0x1f')](_0x41b485);}[_0x3488('0x1b')](){super[_0x3488('0xc')](),this['stopListening'](),this[_0x3488('0x1c')][_0x3488('0xc')](),this[_0x3488('0x17')][_0x3488('0xc')](),this[_0x3488('0x21')][_0x3488('0x1b')]();}[_0x3488('0x5')](){for(const _0xc87489 of this)_0xc87489['updateTargetRect']();this['_sort']();}['_sort'](){const _0x4a6265=Array[_0x3488('0x13')](this)[_0x3488('0x4')]((_0x2b3786,_0x4fbf21)=>y(_0x2b3786[_0x3488('0x1a')][_0x3488('0x1e')],_0x4fbf21[_0x3488('0x1a')][_0x3488('0x1e')]));for(let _0x5c57f4=_0x4a6265[_0x3488('0x3')]-0x1;_0x5c57f4>0x0;_0x5c57f4--){const _0x4e1b0c=_0x4a6265[_0x5c57f4];_0x5c57f4!==this[_0x3488('0x18')](_0x4e1b0c)&&(this[_0x3488('0x10')](_0x4e1b0c),this[_0x3488('0x20')](_0x4e1b0c,_0x5c57f4));}}[_0x3488('0x0')](_0x37f587){let _0x42d576=0x0;if(!_0x37f587)return this['_items'][_0x3488('0x3')];for(const _0x154246 of this){const _0x1fb0fa=_0x154246[_0x3488('0x1a')][_0x3488('0x1e')];if(_0x1fb0fa){if(y(_0x37f587,_0x1fb0fa)<0x0)return _0x42d576;_0x42d576++;}}return _0x42d576;}}export function bindAnnotationCollections({source:_0xacc18c,target:_0x51f0ba,filter:_0x181bc6}){for(const _0x2df24b of _0xacc18c)_0x181bc6(_0x2df24b)&&_0x51f0ba['add'](_0x2df24b);_0x51f0ba[_0x3488('0xf')](_0xacc18c,_0x3488('0x20'),(_0x354467,_0x2793ce)=>{_0x181bc6(_0x2793ce)&&_0x51f0ba['add'](_0x2793ce);}),_0x51f0ba[_0x3488('0xf')](_0xacc18c,'remove',(_0x5a81df,_0xb9b778)=>{_0x51f0ba[_0x3488('0xd')](_0xb9b778)&&_0x51f0ba[_0x3488('0x10')](_0xb9b778);});}function y(_0x69897,_0x433adb){if(null===_0x69897&&null===_0x433adb)return 0x0;if(null===_0x69897)return-0x1;if(null===_0x433adb)return 0x1;const _0x16477d=_0x69897[_0x3488('0x2')]-_0x433adb[_0x3488('0x2')];return 0x0==_0x16477d?_0x69897[_0x3488('0xa')]-_0x433adb[_0x3488('0xa')]:_0x16477d;}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a07=['_addActiveAnnotation','add','isVisible','createAnnotationView','_deactivateAllAnnotations','has','Annotations','change:isVisible','_visibleAnnotations','activate','activeAnnotations','fire','refreshPositioning','destroy','_removeActiveAnnotation','getByInnerView','set','listenTo','refreshVisibility','collection','_bindAnnotationsToVisibleAnnotations','pluginName','deactivateAll','_activateAnnotation','remove','source'];(function(_0x3708fc,_0x4a0755){const _0x149e27=function(_0x45f27a){while(--_0x45f27a){_0x3708fc['push'](_0x3708fc['shift']());}};_0x149e27(++_0x4a0755);}(_0x4a07,0x14b));const _0x149e=function(_0x3708fc,_0x4a0755){_0x3708fc=_0x3708fc-0x0;let _0x149e27=_0x4a07[_0x3708fc];return _0x149e27;};import{ContextPlugin as _0x151607}from'ckeditor5/src/core';import _0x16b56d from'./annotation';import _0x54ef50 from'./annotationcollection';import _0x2732a3 from'./view/annotationview';export default class V extends _0x151607{static get[_0x149e('0x2')](){return _0x149e('0xd');}constructor(_0x203748){super(_0x203748),this[_0x149e('0x0')]=new _0x54ef50(),this['_visibleAnnotations']=new _0x54ef50(),this[_0x149e('0x17')](_0x149e('0x11'),new Set()),this[_0x149e('0x1')]();}[_0x149e('0x8')](_0x2afd33){this[_0x149e('0x0')][_0x149e('0x8')](_0x2afd33);}[_0x149e('0x5')](_0x38150d){this['collection'][_0x149e('0x5')](_0x38150d),_0x38150d[_0x149e('0x14')]();}[_0x149e('0x19')](){for(const _0x5d9e96 of this[_0x149e('0x0')])_0x5d9e96['refreshVisibility']();}[_0x149e('0x13')](){this[_0x149e('0xf')][_0x149e('0x13')]();}[_0x149e('0x16')](_0x44a60c){return this[_0x149e('0x0')]['getByInnerView'](_0x44a60c);}[_0x149e('0x3')](){this[_0x149e('0x12')](_0x149e('0xb'));}[_0x149e('0x14')](){for(const _0xebf929 of this[_0x149e('0x0')])_0xebf929[_0x149e('0x14')]();this[_0x149e('0xf')][_0x149e('0x14')](),this[_0x149e('0x0')][_0x149e('0x14')](),super[_0x149e('0x14')]();}[_0x149e('0x10')](_0x1039aa){this[_0x149e('0x12')](_0x149e('0x4'),_0x1039aa);}['createAnnotation'](_0x1c5621){return new _0x16b56d(_0x1c5621);}[_0x149e('0xa')](_0xc44fa7,_0x345a87){return new _0x2732a3(_0xc44fa7,_0x345a87);}[_0x149e('0x7')](_0x468a2d){const _0x4b4175=new Set(this['activeAnnotations']);_0x4b4175['add'](_0x468a2d),this[_0x149e('0x11')]=_0x4b4175;}[_0x149e('0x15')](_0x2c2aa5){const _0x51f1ad=new Set(this[_0x149e('0x11')]);_0x51f1ad['delete'](_0x2c2aa5),this[_0x149e('0x11')]=_0x51f1ad;}[_0x149e('0x1')](){const _0x28f9c7=this['collection'],_0x1d1607=this[_0x149e('0xf')];function _0x2150ea(_0x105260){const _0x1c1c3b=_0x105260[_0x149e('0x6')];_0x1c1c3b[_0x149e('0x9')]&&!_0x1d1607[_0x149e('0xc')](_0x1c1c3b)?_0x1d1607[_0x149e('0x8')](_0x1c1c3b):!_0x1c1c3b['isVisible']&&_0x1d1607[_0x149e('0xc')](_0x1c1c3b)&&_0x1d1607[_0x149e('0x5')](_0x1c1c3b);}this[_0x149e('0x18')](_0x28f9c7,_0x149e('0x8'),(_0x186e08,_0x2653db)=>{_0x2653db[_0x149e('0x9')]&&_0x1d1607[_0x149e('0x8')](_0x2653db),this[_0x149e('0x18')](_0x2653db,_0x149e('0xe'),_0x2150ea);}),this[_0x149e('0x18')](_0x28f9c7,_0x149e('0x5'),(_0x5f58c9,_0x3c9c9c)=>{_0x1d1607[_0x149e('0xc')](_0x3c9c9c)&&_0x1d1607[_0x149e('0x5')](_0x3c9c9c),this['stopListening'](_0x3c9c9c,_0x149e('0xe'),_0x2150ea);});}}
23
+ const _0x5842=['remove','deactivateAll','has','_visibleAnnotations','refreshVisibility','collection','destroy','pluginName','source','getByInnerView','_bindAnnotationsToVisibleAnnotations','delete','stopListening','set','fire','_addActiveAnnotation','activeAnnotations','refreshPositioning','change:isVisible','isVisible','createAnnotationView','_deactivateAllAnnotations','listenTo','add'];(function(_0x5ae431,_0x58422c){const _0x21efb3=function(_0x8073c6){while(--_0x8073c6){_0x5ae431['push'](_0x5ae431['shift']());}};_0x21efb3(++_0x58422c);}(_0x5842,0x1e2));const _0x21ef=function(_0x5ae431,_0x58422c){_0x5ae431=_0x5ae431-0x0;let _0x21efb3=_0x5842[_0x5ae431];return _0x21efb3;};import{ContextPlugin as _0x36be73}from'ckeditor5/src/core';import _0x3698b7 from'./annotation';import _0x34080d from'./annotationcollection';import _0x1ddde2 from'./view/annotationview';export default class V extends _0x36be73{static get[_0x21ef('0x5')](){return'Annotations';}constructor(_0x183dd9){super(_0x183dd9),this[_0x21ef('0x3')]=new _0x34080d(),this[_0x21ef('0x1')]=new _0x34080d(),this[_0x21ef('0xb')](_0x21ef('0xe'),new Set()),this[_0x21ef('0x8')]();}['add'](_0x51af85){this[_0x21ef('0x3')][_0x21ef('0x15')](_0x51af85);}['remove'](_0xb13804){this['collection'][_0x21ef('0x16')](_0xb13804),_0xb13804[_0x21ef('0x4')]();}[_0x21ef('0x2')](){for(const _0x2d834e of this[_0x21ef('0x3')])_0x2d834e['refreshVisibility']();}['refreshPositioning'](){this[_0x21ef('0x1')][_0x21ef('0xf')]();}[_0x21ef('0x7')](_0x1abc05){return this[_0x21ef('0x3')]['getByInnerView'](_0x1abc05);}[_0x21ef('0x17')](){this[_0x21ef('0xc')](_0x21ef('0x13'));}['destroy'](){for(const _0x2e6665 of this[_0x21ef('0x3')])_0x2e6665[_0x21ef('0x4')]();this['_visibleAnnotations']['destroy'](),this[_0x21ef('0x3')][_0x21ef('0x4')](),super[_0x21ef('0x4')]();}['activate'](_0x16d6dd){this[_0x21ef('0xc')]('_activateAnnotation',_0x16d6dd);}['createAnnotation'](_0x52402b){return new _0x3698b7(_0x52402b);}[_0x21ef('0x12')](_0x3e3ce4,_0x1f836a){return new _0x1ddde2(_0x3e3ce4,_0x1f836a);}[_0x21ef('0xd')](_0x54fef6){const _0x34b877=new Set(this[_0x21ef('0xe')]);_0x34b877[_0x21ef('0x15')](_0x54fef6),this['activeAnnotations']=_0x34b877;}['_removeActiveAnnotation'](_0x280d14){const _0x290853=new Set(this['activeAnnotations']);_0x290853[_0x21ef('0x9')](_0x280d14),this[_0x21ef('0xe')]=_0x290853;}[_0x21ef('0x8')](){const _0x3cfd2f=this[_0x21ef('0x3')],_0xd333b4=this[_0x21ef('0x1')];function _0x31c03f(_0x15af72){const _0x1bb0c9=_0x15af72[_0x21ef('0x6')];_0x1bb0c9[_0x21ef('0x11')]&&!_0xd333b4[_0x21ef('0x0')](_0x1bb0c9)?_0xd333b4['add'](_0x1bb0c9):!_0x1bb0c9['isVisible']&&_0xd333b4[_0x21ef('0x0')](_0x1bb0c9)&&_0xd333b4['remove'](_0x1bb0c9);}this['listenTo'](_0x3cfd2f,_0x21ef('0x15'),(_0xcaed09,_0x18b82c)=>{_0x18b82c['isVisible']&&_0xd333b4[_0x21ef('0x15')](_0x18b82c),this[_0x21ef('0x14')](_0x18b82c,_0x21ef('0x10'),_0x31c03f);}),this[_0x21ef('0x14')](_0x3cfd2f,_0x21ef('0x16'),(_0x18018a,_0x224be8)=>{_0xd333b4[_0x21ef('0x0')](_0x224be8)&&_0xd333b4[_0x21ef('0x16')](_0x224be8),this[_0x21ef('0xa')](_0x224be8,_0x21ef('0x10'),_0x31c03f);});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x334b=['deactivate','hasActive','get','activeUIs','add','register','requires','push','remove','activeAnnotations','from','annotationsuis-annotation-mismatch','_deactivateAllAnnotations','type','attach','delete','_visibleAnnotations','stopListening','collection','setActiveAnnotation','change:activeAnnotation','plugins','_setSelectedAnnotations','_uisData','has','_uis','refilterAnnotations','context','init','activate','filter','function','annotationsuis-register-already-registered','detach','listenTo','set','destroy','size','_removeActiveAnnotation','deactivateAll','AnnotationsUIs','pluginName','annotationsuis-register-invalid-interface','isActive','_assertAnnotationDoesNotBelongToMultipleUIs','annotationsuis-activate-missing-ui'];(function(_0x49b35c,_0x334b58){const _0x334621=function(_0x5d246f){while(--_0x5d246f){_0x49b35c['push'](_0x49b35c['shift']());}};_0x334621(++_0x334b58);}(_0x334b,0x199));const _0x3346=function(_0x49b35c,_0x334b58){_0x49b35c=_0x49b35c-0x0;let _0x334621=_0x334b[_0x49b35c];return _0x334621;};import{ContextPlugin as _0x101679}from'ckeditor5/src/core';import{CKEditorError as _0x335513}from'ckeditor5/src/utils';import _0x274f78,{bindAnnotationCollections as _0x39b32a}from'./annotationcollection';import _0x59c032 from'./annotations';export default class I extends _0x101679{static get[_0x3346('0xb')](){return[_0x59c032];}static get[_0x3346('0x0')](){return _0x3346('0x2d');}constructor(_0x3e5d7c){super(_0x3e5d7c),this['activeUIs']=new Set(),this[_0x3346('0x1e')]=new Map(),this[_0x3346('0x1c')]=new Map();}[_0x3346('0x21')](){const _0x42bc1e=this['context'][_0x3346('0x1a')]['get'](_0x59c032);this[_0x3346('0x27')](_0x42bc1e,'_activateAnnotation',(_0x2539ca,_0x2d0874)=>{for(const _0x4e4570 of this[_0x3346('0x8')]){const _0x5f588a=this[_0x3346('0x1e')][_0x3346('0x7')](_0x4e4570);(0x0,this[_0x3346('0x1c')]['get'](_0x4e4570)[_0x3346('0x23')])(_0x2d0874)&&_0x5f588a[_0x3346('0x18')](_0x2d0874);}}),this[_0x3346('0x27')](_0x42bc1e,_0x3346('0x11'),()=>{for(const _0xaf8184 of this[_0x3346('0x8')]){this['_uis'][_0x3346('0x7')](_0xaf8184)['setActiveAnnotation'](null);}}),this['listenTo'](_0x42bc1e[_0x3346('0x15')],_0x3346('0x9'),(_0x24e449,_0x146d11)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x146d11);});}[_0x3346('0x6')](){return this[_0x3346('0x8')][_0x3346('0x2a')]>0x0;}[_0x3346('0x2')](_0x4a0111){return this[_0x3346('0x8')][_0x3346('0x1d')](_0x4a0111);}[_0x3346('0x22')](_0x288138,_0x25618c=()=>!0x0){const _0x1bb112=this[_0x3346('0x20')]['plugins'][_0x3346('0x7')](_0x59c032);if(!this['_uis'][_0x3346('0x1d')](_0x288138))throw new _0x335513(_0x3346('0x4'),this,{'uiName':_0x288138});this[_0x3346('0x2')](_0x288138)&&this[_0x3346('0x5')](_0x288138),this['activeUIs'][_0x3346('0x9')](_0x288138);const _0x5039c8=new _0x274f78(),_0x65f8d1=_0x1bb112[_0x3346('0x15')];_0x39b32a({'source':_0x65f8d1,'target':_0x5039c8,'filter':_0x25618c}),this['_uisData'][_0x3346('0x28')](_0x288138,{'collection':_0x5039c8,'filter':_0x25618c});const _0x307af8=this['_uis'][_0x3346('0x7')](_0x288138);_0x307af8[_0x3346('0x13')](_0x5039c8),this[_0x3346('0x27')](_0x307af8,_0x3346('0x19'),(_0x1b67bd,_0x424fa4,_0x1bda61,_0x489a56)=>{_0x489a56&&_0x1bb112[_0x3346('0x2b')](_0x489a56),_0x1bda61&&_0x1bb112['_addActiveAnnotation'](_0x1bda61);});}[_0x3346('0x5')](_0x31f6a8){this[_0x3346('0x8')][_0x3346('0x14')](_0x31f6a8);const _0x3ee643=this[_0x3346('0x1e')]['get'](_0x31f6a8);_0x3ee643[_0x3346('0x26')](),this[_0x3346('0x16')](_0x3ee643),this[_0x3346('0x1c')][_0x3346('0x7')](_0x31f6a8)[_0x3346('0x17')][_0x3346('0x29')](),this[_0x3346('0x1c')][_0x3346('0x14')](_0x31f6a8);}['switchTo'](_0x36bd62){const _0x4bb5b7=this[_0x3346('0x20')][_0x3346('0x1a')]['get'](_0x59c032),_0x323d61=Array[_0x3346('0xf')](_0x4bb5b7[_0x3346('0xe')])[0x0]||null;this['deactivateAll'](),this[_0x3346('0x22')](_0x36bd62);const _0x35e575=this['_uis'][_0x3346('0x7')](_0x36bd62);_0x35e575[_0x3346('0x18')](_0x323d61),_0x35e575[_0x3346('0x1b')]&&_0x323d61&&_0x35e575[_0x3346('0x1b')]([_0x323d61]);}[_0x3346('0x2c')](){for(const _0x31e41b of this['activeUIs'])this[_0x3346('0x5')](_0x31e41b);}[_0x3346('0xa')](_0x3c4de1,_0x1ae671){if(this['_uis']['has'](_0x3c4de1))throw new _0x335513(_0x3346('0x25'));if(_0x3346('0x24')!=typeof _0x1ae671[_0x3346('0x13')]||_0x3346('0x24')!=typeof _0x1ae671['detach']||'function'!=typeof _0x1ae671[_0x3346('0x18')])throw new _0x335513(_0x3346('0x1'),null);this[_0x3346('0x1e')][_0x3346('0x28')](_0x3c4de1,_0x1ae671);}[_0x3346('0x1f')](){const _0x59fa05=this[_0x3346('0x20')]['plugins'][_0x3346('0x7')](_0x59c032)['collection'],_0x18db53=new Map(),_0x5ac722=Array['from'](this[_0x3346('0x8')]);for(const _0x56befc of this[_0x3346('0x8')]){const _0x4edbf1=this['_uisData'][_0x3346('0x7')](_0x56befc)[_0x3346('0x17')];for(const _0xedf127 of _0x4edbf1)_0x18db53[_0x3346('0x28')](_0xedf127,_0x56befc);}for(const _0xba5098 of _0x59fa05){const _0x503800=_0x18db53[_0x3346('0x7')](_0xba5098);this[_0x3346('0x3')](_0xba5098);const _0x5b69d7=_0x5ac722['find'](_0x18b2d1=>this[_0x3346('0x1c')][_0x3346('0x7')](_0x18b2d1)[_0x3346('0x23')](_0xba5098));_0x503800!==_0x5b69d7&&(_0x503800&&this['_uisData'][_0x3346('0x7')](_0x503800)[_0x3346('0x17')][_0x3346('0xd')](_0xba5098),_0x5b69d7&&this['_uisData'][_0x3346('0x7')](_0x5b69d7)[_0x3346('0x17')]['add'](_0xba5098));}}[_0x3346('0x29')](){this['deactivateAll'](),super['destroy']();}[_0x3346('0x3')](_0x35c3c0){const _0x2b4009=[];for(const _0x53788f of this[_0x3346('0x8')]){(0x0,this[_0x3346('0x1c')][_0x3346('0x7')](_0x53788f)['filter'])(_0x35c3c0)&&_0x2b4009[_0x3346('0xc')](_0x53788f);}if(_0x2b4009['length']>0x1)throw new _0x335513(_0x3346('0x10'),null,{'matchedUIs':_0x2b4009,'annotationType':_0x35c3c0[_0x3346('0x12')]});}}
23
+ const _0x3dc1=['deactivateAll','detach','context','has','plugins','hasActive','annotationsuis-register-already-registered','activeUIs','stopListening','pluginName','init','remove','_removeActiveAnnotation','function','find','delete','_activateAnnotation','_assertAnnotationDoesNotBelongToMultipleUIs','from','length','activate','switchTo','annotationsuis-activate-missing-ui','collection','_deactivateAllAnnotations','_uisData','isActive','deactivate','listenTo','set','requires','push','filter','_uis','setActiveAnnotation','_addActiveAnnotation','add','_visibleAnnotations','register','destroy','_setSelectedAnnotations','attach','get','change:activeAnnotation'];(function(_0x468b57,_0x3dc14f){const _0x3279e2=function(_0xefba30){while(--_0xefba30){_0x468b57['push'](_0x468b57['shift']());}};_0x3279e2(++_0x3dc14f);}(_0x3dc1,0x18c));const _0x3279=function(_0x468b57,_0x3dc14f){_0x468b57=_0x468b57-0x0;let _0x3279e2=_0x3dc1[_0x468b57];return _0x3279e2;};import{ContextPlugin as _0x1f9a68}from'ckeditor5/src/core';import{CKEditorError as _0x562f3a}from'ckeditor5/src/utils';import _0x4b240f,{bindAnnotationCollections as _0x1da3cd}from'./annotationcollection';import _0x4eaeb2 from'./annotations';export default class I extends _0x1f9a68{static get[_0x3279('0x1e')](){return[_0x4eaeb2];}static get[_0x3279('0x9')](){return'AnnotationsUIs';}constructor(_0xd0e870){super(_0xd0e870),this[_0x3279('0x7')]=new Set(),this[_0x3279('0x21')]=new Map(),this[_0x3279('0x19')]=new Map();}[_0x3279('0xa')](){const _0x45cc69=this[_0x3279('0x2')]['plugins'][_0x3279('0x2a')](_0x4eaeb2);this[_0x3279('0x1c')](_0x45cc69,_0x3279('0x10'),(_0x120e8d,_0x481394)=>{for(const _0x2c4d05 of this[_0x3279('0x7')]){const _0x1d8cf1=this['_uis'][_0x3279('0x2a')](_0x2c4d05);(0x0,this['_uisData'][_0x3279('0x2a')](_0x2c4d05)[_0x3279('0x20')])(_0x481394)&&_0x1d8cf1[_0x3279('0x22')](_0x481394);}}),this[_0x3279('0x1c')](_0x45cc69,_0x3279('0x18'),()=>{for(const _0x2b2495 of this[_0x3279('0x7')]){this[_0x3279('0x21')][_0x3279('0x2a')](_0x2b2495)[_0x3279('0x22')](null);}}),this[_0x3279('0x1c')](_0x45cc69['_visibleAnnotations'],_0x3279('0x24'),(_0x445d05,_0x2f1717)=>{this[_0x3279('0x11')](_0x2f1717);});}[_0x3279('0x5')](){return this[_0x3279('0x7')]['size']>0x0;}[_0x3279('0x1a')](_0x3894fb){return this['activeUIs'][_0x3279('0x3')](_0x3894fb);}[_0x3279('0x14')](_0x3e4dbb,_0x3aa44f=()=>!0x0){const _0x1b577a=this[_0x3279('0x2')][_0x3279('0x4')]['get'](_0x4eaeb2);if(!this['_uis'][_0x3279('0x3')](_0x3e4dbb))throw new _0x562f3a(_0x3279('0x16'),this,{'uiName':_0x3e4dbb});this[_0x3279('0x1a')](_0x3e4dbb)&&this['deactivate'](_0x3e4dbb),this[_0x3279('0x7')][_0x3279('0x24')](_0x3e4dbb);const _0x549d1e=new _0x4b240f(),_0x3edf12=_0x1b577a[_0x3279('0x25')];_0x1da3cd({'source':_0x3edf12,'target':_0x549d1e,'filter':_0x3aa44f}),this[_0x3279('0x19')]['set'](_0x3e4dbb,{'collection':_0x549d1e,'filter':_0x3aa44f});const _0x5ae9c2=this['_uis'][_0x3279('0x2a')](_0x3e4dbb);_0x5ae9c2[_0x3279('0x29')](_0x549d1e),this[_0x3279('0x1c')](_0x5ae9c2,_0x3279('0x2b'),(_0x445ebe,_0x4111be,_0x42d8fa,_0x1a1e01)=>{_0x1a1e01&&_0x1b577a[_0x3279('0xc')](_0x1a1e01),_0x42d8fa&&_0x1b577a[_0x3279('0x23')](_0x42d8fa);});}[_0x3279('0x1b')](_0x1c87cd){this[_0x3279('0x7')][_0x3279('0xf')](_0x1c87cd);const _0x42df47=this[_0x3279('0x21')][_0x3279('0x2a')](_0x1c87cd);_0x42df47[_0x3279('0x1')](),this[_0x3279('0x8')](_0x42df47),this[_0x3279('0x19')][_0x3279('0x2a')](_0x1c87cd)[_0x3279('0x17')][_0x3279('0x27')](),this[_0x3279('0x19')][_0x3279('0xf')](_0x1c87cd);}[_0x3279('0x15')](_0x22bec5){const _0x3a5cab=this['context'][_0x3279('0x4')][_0x3279('0x2a')](_0x4eaeb2),_0x3318b1=Array[_0x3279('0x12')](_0x3a5cab['activeAnnotations'])[0x0]||null;this[_0x3279('0x0')](),this[_0x3279('0x14')](_0x22bec5);const _0x30f5e2=this[_0x3279('0x21')]['get'](_0x22bec5);_0x30f5e2[_0x3279('0x22')](_0x3318b1),_0x30f5e2[_0x3279('0x28')]&&_0x3318b1&&_0x30f5e2[_0x3279('0x28')]([_0x3318b1]);}[_0x3279('0x0')](){for(const _0x4b6e2e of this[_0x3279('0x7')])this[_0x3279('0x1b')](_0x4b6e2e);}[_0x3279('0x26')](_0x1e8d1b,_0x3156c5){if(this[_0x3279('0x21')][_0x3279('0x3')](_0x1e8d1b))throw new _0x562f3a(_0x3279('0x6'));if(_0x3279('0xd')!=typeof _0x3156c5[_0x3279('0x29')]||_0x3279('0xd')!=typeof _0x3156c5[_0x3279('0x1')]||_0x3279('0xd')!=typeof _0x3156c5[_0x3279('0x22')])throw new _0x562f3a('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x1e8d1b,_0x3156c5);}['refilterAnnotations'](){const _0x376d6f=this[_0x3279('0x2')][_0x3279('0x4')]['get'](_0x4eaeb2)[_0x3279('0x17')],_0x457ad1=new Map(),_0x1e9345=Array[_0x3279('0x12')](this[_0x3279('0x7')]);for(const _0x1b249f of this[_0x3279('0x7')]){const _0xb4e296=this[_0x3279('0x19')]['get'](_0x1b249f)[_0x3279('0x17')];for(const _0x6c1b10 of _0xb4e296)_0x457ad1[_0x3279('0x1d')](_0x6c1b10,_0x1b249f);}for(const _0x23aea4 of _0x376d6f){const _0x54ac7a=_0x457ad1[_0x3279('0x2a')](_0x23aea4);this[_0x3279('0x11')](_0x23aea4);const _0x26faf4=_0x1e9345[_0x3279('0xe')](_0x5dd1f8=>this[_0x3279('0x19')][_0x3279('0x2a')](_0x5dd1f8)[_0x3279('0x20')](_0x23aea4));_0x54ac7a!==_0x26faf4&&(_0x54ac7a&&this['_uisData'][_0x3279('0x2a')](_0x54ac7a)[_0x3279('0x17')][_0x3279('0xb')](_0x23aea4),_0x26faf4&&this[_0x3279('0x19')]['get'](_0x26faf4)[_0x3279('0x17')]['add'](_0x23aea4));}}[_0x3279('0x27')](){this[_0x3279('0x0')](),super[_0x3279('0x27')]();}[_0x3279('0x11')](_0x2921a7){const _0x42d493=[];for(const _0x34224a of this[_0x3279('0x7')]){(0x0,this[_0x3279('0x19')][_0x3279('0x2a')](_0x34224a)[_0x3279('0x20')])(_0x2921a7)&&_0x42d493[_0x3279('0x1f')](_0x34224a);}if(_0x42d493[_0x3279('0x13')]>0x1)throw new _0x562f3a('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x42d493,'annotationType':_0x2921a7['type']});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3787=['change:range','requires','_dataCollectors','editing','set','editor','function','hasDomSelection','model','getRanges','update','sort','isReadOnly','fire','change:isFocused','collection','isCollapsed','_editorAnnotationsData','range','plugins','containsRange','directChange','element','map','isEqual','getByInnerView','pluginName','annotation','innerView','selection','add','registerAnnotation','EditorAnnotations','delete','focusTracker','document','cancel','listenTo','uiUpdate','has','from','editorannotations-invalid-source-callback','remove','_editorAnnotations','push','view','refreshSelectedViews'];(function(_0x3705e7,_0x37873a){const _0x353b13=function(_0x1c4982){while(--_0x1c4982){_0x3705e7['push'](_0x3705e7['shift']());}};_0x353b13(++_0x37873a);}(_0x3787,0x14b));const _0x353b=function(_0x3705e7,_0x37873a){_0x3705e7=_0x3705e7-0x0;let _0x353b13=_0x3787[_0x3705e7];return _0x353b13;};import{Plugin as _0x4fd92e}from'ckeditor5/src/core';import{CKEditorError as _0x40a26a}from'ckeditor5/src/utils';import{debounce as _0x359c33}from'lodash-es';import _0xabc30f from'./annotations';export default class k extends _0x4fd92e{static get[_0x353b('0x2e')](){return[_0xabc30f];}static get[_0x353b('0x18')](){return _0x353b('0x1e');}constructor(_0x1fcc8e){super(_0x1fcc8e),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x234009=this['editor'],_0x308f29=_0x234009['model'][_0x353b('0x21')][_0x353b('0x1b')],_0x4df858=_0x359c33(()=>this[_0x353b('0x2c')](),0xa);_0x308f29['on'](_0x353b('0x2d'),(_0x3b3f5,_0x59ee40)=>{_0x59ee40[_0x353b('0x13')]&&(_0x4df858[_0x353b('0x22')](),this[_0x353b('0x2c')]());}),this[_0x353b('0x23')](_0x234009[_0x353b('0x1')]['view'][_0x353b('0x21')],_0x353b('0xc'),(_0x179324,_0x54af5e,_0x46ee76)=>{_0x46ee76&&_0x4df858();}),this[_0x353b('0x23')](_0x234009['ui'][_0x353b('0x20')],_0x353b('0xc'),(_0x15f599,_0x4a61bc,_0x4294bb)=>{_0x4294bb||_0x234009[_0x353b('0xa')]||this[_0x353b('0xb')]('blur',{'isAnnotationTracked':_0x23349d=>this['_editorAnnotationsData'][_0x353b('0x25')](_0x23349d[_0x353b('0x1a')])});}),this[_0x353b('0x23')](this[_0x353b('0x3')]['ui'],_0x353b('0x8'),()=>this[_0x353b('0xb')](_0x353b('0x24')));}[_0x353b('0x1d')](_0x1565af){if(this[_0x353b('0x29')][_0x353b('0x25')](_0x1565af))return;this[_0x353b('0x29')][_0x353b('0x1c')](_0x1565af[_0x353b('0x2b')]),this[_0x353b('0x3')]['ui'][_0x353b('0x20')][_0x353b('0x1c')](_0x1565af[_0x353b('0x2b')]['element']);const _0x55ff91=this[_0x353b('0x3')][_0x353b('0x11')]['get'](_0xabc30f);this[_0x353b('0x23')](_0x55ff91[_0x353b('0xd')],'remove',(_0x91292d,_0x13adc1)=>{this['editor']['ui'][_0x353b('0x20')][_0x353b('0x28')](_0x13adc1[_0x353b('0x2b')][_0x353b('0x14')]),this[_0x353b('0x29')][_0x353b('0x1f')](_0x13adc1[_0x353b('0x2b')]);});}[_0x353b('0x5')](){return this['editor'][_0x353b('0x1')][_0x353b('0x2b')]['hasDomSelection'];}['addSourceCollector'](_0x5226f2){if(_0x353b('0x4')!=typeof _0x5226f2)throw new _0x40a26a(_0x353b('0x27'));this[_0x353b('0x0')]['add'](_0x5226f2);}['refreshSelectedViews'](){this[_0x353b('0xb')]('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x176a65,annotations:_0x5d769b}){const _0x2752ce=[],_0x4babec=this['editor'][_0x353b('0x6')][_0x353b('0x21')][_0x353b('0x1b')],_0x5a1c94=Array[_0x353b('0x26')](_0x4babec[_0x353b('0x7')]());for(const [_0x3b9888,_0x559a6a]of this[_0x353b('0xf')]){const _0x1e68c0=_0x5efd19(_0x559a6a),_0x504c92=_0x5d769b[_0x353b('0x17')](_0x3b9888);_0x1e68c0&&_0x504c92&&_0x2752ce[_0x353b('0x2a')]({'annotation':_0x504c92,'range':_0x1e68c0});}function _0x5efd19(_0x3930da){for(const _0x535ccd of _0x3930da)for(const _0x50fcdb of _0x5a1c94)if(_0x535ccd[_0x353b('0x12')](_0x50fcdb,!_0x4babec[_0x353b('0xe')]))return _0x535ccd;return null;}return _0x2752ce[_0x353b('0x9')]((_0x3f81f0,_0x5ba0d3)=>{const _0x31aaa0=_0x3f81f0[_0x353b('0x10')],_0x5c6d6e=_0x5ba0d3[_0x353b('0x10')];if(!_0x31aaa0[_0x353b('0x16')](_0x5c6d6e)){if(_0x31aaa0[_0x353b('0x12')](_0x5c6d6e,!0x0))return 0x1;if(_0x5c6d6e[_0x353b('0x12')](_0x31aaa0,!0x0))return-0x1;}return _0x3f81f0[_0x353b('0x19')]==_0x176a65?-0x1:_0x5ba0d3['annotation']==_0x176a65?0x1:0x0;})[_0x353b('0x15')](_0x56ed91=>_0x56ed91[_0x353b('0x19')]);}get['_editorAnnotationsData'](){const _0x418b90=new Map();for(const _0x5e9c4e of Array[_0x353b('0x26')](this[_0x353b('0x0')]))for(const [_0x451d10,_0x1f1fa1]of _0x5e9c4e())_0x418b90[_0x353b('0x2')](_0x451d10,_0x1f1fa1);return _0x418b90;}}
23
+ const _0x11ac=['update','refreshSelectedViews','registerAnnotation','listenTo','_editorAnnotations','refresh','view','editing','selection','add','_dataCollectors','getByInnerView','element','getRanges','editorannotations-invalid-source-callback','innerView','requires','has','getOrderedSelectedAnnotations','function','remove','push','_editorAnnotationsData','fire','isCollapsed','set','editor','range','model','document','get','blur','hasDomSelection','annotation','focusTracker','EditorAnnotations','isReadOnly','collection','delete','from','change:isFocused','pluginName'];(function(_0x5cadf7,_0x11ac2b){const _0x1a532b=function(_0x3d7f06){while(--_0x3d7f06){_0x5cadf7['push'](_0x5cadf7['shift']());}};_0x1a532b(++_0x11ac2b);}(_0x11ac,0x1e9));const _0x1a53=function(_0x5cadf7,_0x11ac2b){_0x5cadf7=_0x5cadf7-0x0;let _0x1a532b=_0x11ac[_0x5cadf7];return _0x1a532b;};import{Plugin as _0x360b8c}from'ckeditor5/src/core';import{CKEditorError as _0x519dd1}from'ckeditor5/src/utils';import{debounce as _0x58cb69}from'lodash-es';import _0x27a99c from'./annotations';export default class k extends _0x360b8c{static get[_0x1a53('0x1f')](){return[_0x27a99c];}static get[_0x1a53('0xe')](){return _0x1a53('0x8');}constructor(_0x51a8b0){super(_0x51a8b0),this[_0x1a53('0x19')]=new Set(),this[_0x1a53('0x13')]=new Set();}['init'](){const _0x2bf161=this[_0x1a53('0x29')],_0x349887=_0x2bf161[_0x1a53('0x1')][_0x1a53('0x2')][_0x1a53('0x17')],_0x588b60=_0x58cb69(()=>this['refreshSelectedViews'](),0xa);_0x349887['on']('change:range',(_0x41e279,_0x5bddde)=>{_0x5bddde['directChange']&&(_0x588b60['cancel'](),this[_0x1a53('0x10')]());}),this[_0x1a53('0x12')](_0x2bf161[_0x1a53('0x16')][_0x1a53('0x15')][_0x1a53('0x2')],_0x1a53('0xd'),(_0x2ec7b7,_0x46544b,_0x3e35c0)=>{_0x3e35c0&&_0x588b60();}),this[_0x1a53('0x12')](_0x2bf161['ui'][_0x1a53('0x7')],_0x1a53('0xd'),(_0x5eb8f0,_0x4b5fcf,_0x37f955)=>{_0x37f955||_0x2bf161[_0x1a53('0x9')]||this[_0x1a53('0x26')](_0x1a53('0x4'),{'isAnnotationTracked':_0x1476b4=>this[_0x1a53('0x25')][_0x1a53('0x20')](_0x1476b4[_0x1a53('0x1e')])});}),this[_0x1a53('0x12')](this[_0x1a53('0x29')]['ui'],_0x1a53('0xf'),()=>this[_0x1a53('0x26')]('uiUpdate'));}[_0x1a53('0x11')](_0x14b7bd){if(this[_0x1a53('0x13')][_0x1a53('0x20')](_0x14b7bd))return;this[_0x1a53('0x13')]['add'](_0x14b7bd['view']),this[_0x1a53('0x29')]['ui']['focusTracker']['add'](_0x14b7bd[_0x1a53('0x15')][_0x1a53('0x1b')]);const _0x46022d=this[_0x1a53('0x29')]['plugins'][_0x1a53('0x3')](_0x27a99c);this['listenTo'](_0x46022d[_0x1a53('0xa')],_0x1a53('0x23'),(_0x4f1c01,_0x139296)=>{this['editor']['ui']['focusTracker'][_0x1a53('0x23')](_0x139296[_0x1a53('0x15')][_0x1a53('0x1b')]),this[_0x1a53('0x13')][_0x1a53('0xb')](_0x139296[_0x1a53('0x15')]);});}[_0x1a53('0x5')](){return this[_0x1a53('0x29')][_0x1a53('0x16')][_0x1a53('0x15')][_0x1a53('0x5')];}['addSourceCollector'](_0x260b9e){if(_0x1a53('0x22')!=typeof _0x260b9e)throw new _0x519dd1(_0x1a53('0x1d'));this[_0x1a53('0x19')][_0x1a53('0x18')](_0x260b9e);}['refreshSelectedViews'](){this[_0x1a53('0x26')](_0x1a53('0x14'));}[_0x1a53('0x21')]({activeAnnotation:_0x53ed40,annotations:_0x507042}){const _0x2b2819=[],_0x178077=this['editor'][_0x1a53('0x1')]['document']['selection'],_0xae70df=Array[_0x1a53('0xc')](_0x178077[_0x1a53('0x1c')]());for(const [_0x10ffc7,_0x21723d]of this[_0x1a53('0x25')]){const _0x4ab986=_0x3c6f73(_0x21723d),_0x5223e7=_0x507042[_0x1a53('0x1a')](_0x10ffc7);_0x4ab986&&_0x5223e7&&_0x2b2819[_0x1a53('0x24')]({'annotation':_0x5223e7,'range':_0x4ab986});}function _0x3c6f73(_0x1016a1){for(const _0x2d36a6 of _0x1016a1)for(const _0x57ec67 of _0xae70df)if(_0x2d36a6['containsRange'](_0x57ec67,!_0x178077[_0x1a53('0x27')]))return _0x2d36a6;return null;}return _0x2b2819['sort']((_0x203315,_0x4530b6)=>{const _0x49416d=_0x203315[_0x1a53('0x0')],_0x444836=_0x4530b6[_0x1a53('0x0')];if(!_0x49416d['isEqual'](_0x444836)){if(_0x49416d['containsRange'](_0x444836,!0x0))return 0x1;if(_0x444836['containsRange'](_0x49416d,!0x0))return-0x1;}return _0x203315['annotation']==_0x53ed40?-0x1:_0x4530b6['annotation']==_0x53ed40?0x1:0x0;})['map'](_0x2010cc=>_0x2010cc[_0x1a53('0x6')]);}get[_0x1a53('0x25')](){const _0x15d1fc=new Map();for(const _0xeb00c5 of Array[_0x1a53('0xc')](this['_dataCollectors']))for(const [_0x2771aa,_0x447ac2]of _0xeb00c5())_0x15d1fc[_0x1a53('0x28')](_0x2771aa,_0x447ac2);return _0x15d1fc;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1236=['register','delete','Esc','change:visibleView','document','isActive','_addAnnotationToBalloon','inlineannotations-detach-not-attached','attach','getRangeAt','getOrderedSelectedAnnotations','detach','plugins','_removeAnnotationFromBalloon','showStack','annotations','context','_forceRefresh','change:isFocused','has','change:height','addObserver','set','includes','length','add','inlineannotations-not-allowed-with-context','remove','_closeAnnotation','mousedown','bind','_manuallyClosed','get','_selectedAnnotations','clear','activeAnnotation','view','_addedAnnotations','hasView','blur','refresh','EditorAnnotations','hasActive','getByView','setActiveAnnotation','editing','targetRect','focus','editableElement','update','listenTo','focusTracker','keystrokes','updatePosition','editor','target','inlineannotations-attach-already-attached','inline','getSelection','isAttached','afterInit','selection','_setSelectedAnnotations','isFocused','_balloon','switchTo','visibleView'];(function(_0xf28a39,_0x1236d9){const _0xf430d=function(_0x490ea8){while(--_0x490ea8){_0xf28a39['push'](_0xf28a39['shift']());}};_0xf430d(++_0x1236d9);}(_0x1236,0xa3));const _0xf430=function(_0xf28a39,_0x1236d9){_0xf28a39=_0xf28a39-0x0;let _0xf430d=_0x1236[_0xf28a39];return _0xf430d;};import{Plugin as _0x15e13f}from'ckeditor5/src/core';import _0x289670 from'./annotationsuis';import _0x53bb3a from'./editorannotations';import{ContextualBalloon as _0x6d958c}from'ckeditor5/src/ui';import{MouseObserver as _0xae4d46}from'ckeditor5/src/engine';import{CKEditorError as _0x3f8f82}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x15e13f{static get['requires'](){return[_0x53bb3a,_0x6d958c,_0x289670];}static get['pluginName'](){return'InlineAnnotations';}constructor(_0x4f46e8){super(_0x4f46e8),_0x4f46e8[_0xf430('0x10')]['view'][_0xf430('0x3b')](_0xae4d46),this[_0xf430('0x1e')]=!0x1,this[_0xf430('0x3c')](_0xf430('0x6'),null),this['annotations']=null,this[_0xf430('0x2')]=new Set(),this[_0xf430('0x23')]=_0x4f46e8[_0xf430('0x32')][_0xf430('0x3')](_0x6d958c),this['_addedAnnotations']=new Set(),this[_0xf430('0x4')]=[],this['_forceRefresh']=!0x1;}['init'](){const _0xb542f9=this[_0xf430('0x19')][_0xf430('0x32')][_0xf430('0x3')](_0x289670);_0xb542f9[_0xf430('0x36')]===this[_0xf430('0x19')]&&(_0xb542f9[_0xf430('0x26')]('inline',this),this[_0xf430('0x19')][_0xf430('0x17')][_0xf430('0x3c')](_0xf430('0x28'),(_0x3ee20d,_0x49c736)=>{const _0x5886e7=this[_0xf430('0x23')];if(this[_0xf430('0x1e')]&&_0x5886e7[_0xf430('0x25')]){const _0x59fa0c=this[_0xf430('0x35')]['getByView'](_0x5886e7[_0xf430('0x25')]);this['_closeAnnotation'](_0x59fa0c),_0x49c736();}}));}[_0xf430('0x1f')](){const _0x29a124=this['editor'][_0xf430('0x32')][_0xf430('0x3')](_0x289670);_0x29a124[_0xf430('0x36')]===this[_0xf430('0x19')]&&(_0x29a124[_0xf430('0xd')]()||_0x29a124[_0xf430('0x24')](_0xf430('0x1c')));}[_0xf430('0xf')](_0x25895b){_0x25895b!==this[_0xf430('0x6')]&&(this['activeAnnotation']&&(this['activeAnnotation'][_0xf430('0x2b')]=!0x1),_0x25895b&&this[_0xf430('0x19')]['ui'][_0xf430('0x16')][_0xf430('0x22')]&&(this[_0xf430('0x2c')](_0x25895b,!0x0),_0x25895b['isActive']=!0x0),_0x25895b||this['_setSelectedAnnotations']([]),this[_0xf430('0x6')]=_0x25895b);}[_0xf430('0x2e')](_0x32058f){this[_0xf430('0x35')]=_0x32058f;const _0xc11c6e=this[_0xf430('0x19')][_0xf430('0x32')]['get'](_0x289670),_0x2d7b15=this[_0xf430('0x23')];if(this[_0xf430('0x1e')])throw new _0x3f8f82(_0xf430('0x1b'),this);if(_0xc11c6e[_0xf430('0x36')]!==this[_0xf430('0x19')])throw new _0x3f8f82(_0xf430('0x40'),this);const _0x355047=this['editor'][_0xf430('0x32')]['get'](_0xf430('0xc'));this[_0xf430('0x15')](_0x355047,_0xf430('0xb'),function(){const _0x1de642=_0x355047[_0xf430('0x30')]({'activeAnnotation':this[_0xf430('0x6')],'annotations':this['annotations']});if(!this['_forceRefresh']&&(_0xf70583=_0x1de642,_0x5afd11=this['_selectedAnnotations'],_0xf70583[_0xf430('0x3e')]===_0x5afd11[_0xf430('0x3e')]&&_0xf70583['every'](_0x4e155b=>_0x5afd11[_0xf430('0x3d')](_0x4e155b))))return;var _0xf70583,_0x5afd11;this[_0xf430('0x37')]=!0x1,this[_0xf430('0x21')](_0x1de642),this[_0xf430('0xf')](_0x1de642[0x0]||null);}[_0xf430('0x1')](this)),this['listenTo'](_0x355047,_0xf430('0xa'),(_0x4646e1,{isAnnotationTracked:_0x2c6a8c})=>{this[_0xf430('0x6')]&&_0x2c6a8c(this[_0xf430('0x6')])&&(this[_0xf430('0x21')]([]),this[_0xf430('0xf')](null));}),this[_0xf430('0x15')](this[_0xf430('0x19')]['ui'][_0xf430('0x16')],_0xf430('0x38'),(_0x2dffd2,_0x48d3c7,_0x4ec2f1)=>{_0x4ec2f1||this[_0xf430('0xf')](null);}),this[_0xf430('0x15')](_0x32058f,_0xf430('0x41'),(_0xf4e253,_0xa2e347)=>{this[_0xf430('0x33')](_0xa2e347),_0xa2e347===this[_0xf430('0x6')]&&this['setActiveAnnotation'](null);}),this[_0xf430('0x15')](_0x2d7b15,_0xf430('0x29'),(_0x932f86,_0x2e643e,_0x2b207c,_0x1ee57c)=>{if(_0x1ee57c&&this['stopListening'](_0x1ee57c),!_0x2b207c||!_0x32058f[_0xf430('0xe')](_0x2b207c))return;const _0x2d8317=_0x32058f[_0xf430('0xe')](_0x2b207c);this[_0xf430('0x15')](_0x2b207c,_0xf430('0x3a'),()=>{_0x2d7b15[_0xf430('0x18')]();}),this[_0xf430('0x15')](_0x2b207c,_0xf430('0x28'),()=>{this[_0xf430('0x42')](_0x2d8317),this[_0xf430('0x19')][_0xf430('0x10')][_0xf430('0x7')][_0xf430('0x12')]();}),this[_0xf430('0x6')]!==_0x2d8317&&this[_0xf430('0xf')](_0x2d8317);}),this[_0xf430('0x15')](this[_0xf430('0x19')]['ui'],_0xf430('0x14'),()=>{_0x2d7b15[_0xf430('0x25')]&&(_0x32058f['getByView'](_0x2d7b15[_0xf430('0x25')])&&_0x2d7b15['updatePosition']());}),this[_0xf430('0x15')](this[_0xf430('0x19')][_0xf430('0x10')]['view']['document'],_0xf430('0x0'),()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed'][_0xf430('0x5')]();}),this['editor'][_0xf430('0x10')][_0xf430('0x7')][_0xf430('0x2a')][_0xf430('0x20')][_0xf430('0x13')]&&this[_0xf430('0x19')][_0xf430('0x10')][_0xf430('0x7')]['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x3f8f82(_0xf430('0x2d'),this);this[_0xf430('0xf')](null);for(const _0x4c9125 of this[_0xf430('0x8')])this[_0xf430('0x33')](_0x4c9125);this['stopListening'](),this[_0xf430('0x1e')]=!0x1,this[_0xf430('0x35')]=null;}['destroy'](){this[_0xf430('0x1e')]&&this[_0xf430('0x31')]();}[_0xf430('0x21')](_0x551168){for(const _0x52be68 of this[_0xf430('0x4')])_0x551168[_0xf430('0x3d')](_0x52be68)||this[_0xf430('0x2')]['delete'](_0x52be68);for(const _0x4e3c4a of this['annotations'])_0x551168[_0xf430('0x3d')](_0x4e3c4a)||this[_0xf430('0x33')](_0x4e3c4a);if(this[_0xf430('0x19')]['ui']['focusTracker']['isFocused'])for(const _0x1e28d0 of _0x551168)this[_0xf430('0x2c')](_0x1e28d0);this[_0xf430('0x4')]=_0x551168;}[_0xf430('0x2c')](_0x3edb77,_0x20ac9e){this['_manuallyClosed']['has'](_0x3edb77)||(this[_0xf430('0x8')][_0xf430('0x39')](_0x3edb77)||this[_0xf430('0x23')][_0xf430('0x9')](_0x3edb77[_0xf430('0x7')])||(this[_0xf430('0x8')]['add'](_0x3edb77),this[_0xf430('0x23')]['add']({'stackId':_0x3edb77[_0xf430('0x7')]['id'],'view':_0x3edb77[_0xf430('0x7')],'position':{'target':()=>_0x3edb77[_0xf430('0x1a')]||_0x3edb77[_0xf430('0x11')]||document[_0xf430('0x1d')]()[_0xf430('0x2f')](0x0)}})),_0x20ac9e&&this[_0xf430('0x23')][_0xf430('0x34')](_0x3edb77['view']['id']));}[_0xf430('0x33')](_0x26e730){this[_0xf430('0x8')][_0xf430('0x39')](_0x26e730)&&this[_0xf430('0x23')]['hasView'](_0x26e730['view'])&&(this[_0xf430('0x8')][_0xf430('0x27')](_0x26e730),this[_0xf430('0x23')][_0xf430('0x41')](_0x26e730[_0xf430('0x7')]));}['_closeAnnotation'](_0x502238){this[_0xf430('0x2')][_0xf430('0x3f')](_0x502238),this[_0xf430('0x33')](_0x502238);}}
23
+ const _0x2236=['hasActive','left','has','_forceRefresh','_manuallyClosed','pluginName','editableElement','Esc','attach','get','width','hasView','getBoundingClientRect','editor','afterInit','focus','switchTo','_addAnnotationToBalloon','top','requires','inlineannotations-detach-not-attached','isFocused','focusTracker','updatePosition','context','change:height','_closeAnnotation','every','plugins','inlineannotations-not-allowed-with-context','_balloon','init','_getBalloonTargetForAnnotation','update','refresh','includes','_removeAnnotationFromBalloon','selection','getFirstRange','view','change:visibleView','_addedAnnotations','find','getClientRects','setActiveAnnotation','register','map','mousedown','inline','annotations','isAttached','editing','length','clear','domConverter','fromRect','showStack','_selectedAnnotations','viewRangeToDom','activeAnnotation','bottom','_setSelectedAnnotations','push','targetRect','remove','getByView','isActive','from','document','getOrderedSelectedAnnotations','add','detach','destroy','visibleView','right','inlineannotations-attach-already-attached','change:isFocused','target','keystrokes','listenTo'];(function(_0x488c71,_0x223642){const _0x49a428=function(_0x20f5f3){while(--_0x20f5f3){_0x488c71['push'](_0x488c71['shift']());}};_0x49a428(++_0x223642);}(_0x2236,0x195));const _0x49a4=function(_0x488c71,_0x223642){_0x488c71=_0x488c71-0x0;let _0x49a428=_0x2236[_0x488c71];return _0x49a428;};import{Plugin as _0x570b26}from'ckeditor5/src/core';import _0x4c0da4 from'./annotationsuis';import _0x4e6973 from'./editorannotations';import{ContextualBalloon as _0x3375ef}from'ckeditor5/src/ui';import{MouseObserver as _0x3aede7}from'ckeditor5/src/engine';import{CKEditorError as _0x54a435,Rect as _0x16318c}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x570b26{static get[_0x49a4('0xe')](){return[_0x4e6973,_0x3375ef,_0x4c0da4];}static get[_0x49a4('0x0')](){return'InlineAnnotations';}constructor(_0x396865){super(_0x396865),_0x396865[_0x49a4('0x2e')][_0x49a4('0x22')]['addObserver'](_0x3aede7),this['isAttached']=!0x1,this['set'](_0x49a4('0x36'),null),this['annotations']=null,this['_manuallyClosed']=new Set(),this[_0x49a4('0x19')]=_0x396865['plugins'][_0x49a4('0x4')](_0x3375ef),this[_0x49a4('0x24')]=new Set(),this['_selectedAnnotations']=[],this[_0x49a4('0x4e')]=!0x1;}[_0x49a4('0x1a')](){const _0x49fdad=this[_0x49a4('0x8')][_0x49a4('0x17')][_0x49a4('0x4')](_0x4c0da4);_0x49fdad[_0x49a4('0x13')]===this[_0x49a4('0x8')]&&(_0x49fdad[_0x49a4('0x28')](_0x49a4('0x2b'),this),this[_0x49a4('0x8')][_0x49a4('0x49')]['set']('Esc',(_0x52a247,_0x216b1d)=>{const _0x596f3=this[_0x49a4('0x19')];if(this[_0x49a4('0x2d')]&&_0x596f3[_0x49a4('0x44')]){const _0x57fe3a=this[_0x49a4('0x2c')][_0x49a4('0x3c')](_0x596f3['visibleView']);this[_0x49a4('0x15')](_0x57fe3a),_0x216b1d();}}));}[_0x49a4('0x9')](){const _0x5a1312=this[_0x49a4('0x8')][_0x49a4('0x17')]['get'](_0x4c0da4);_0x5a1312[_0x49a4('0x13')]===this['editor']&&(_0x5a1312[_0x49a4('0x4b')]()||_0x5a1312[_0x49a4('0xb')]('inline'));}[_0x49a4('0x27')](_0x477990){_0x477990!==this[_0x49a4('0x36')]&&(this[_0x49a4('0x36')]&&(this['activeAnnotation'][_0x49a4('0x3d')]=!0x1),_0x477990&&this[_0x49a4('0x8')]['ui'][_0x49a4('0x11')][_0x49a4('0x10')]&&(this[_0x49a4('0xc')](_0x477990,!0x0),_0x477990['isActive']=!0x0),_0x477990||this['_setSelectedAnnotations']([]),this[_0x49a4('0x36')]=_0x477990);}[_0x49a4('0x3')](_0x3f770b){this['annotations']=_0x3f770b;const _0x236bd7=this[_0x49a4('0x8')][_0x49a4('0x17')][_0x49a4('0x4')](_0x4c0da4),_0x544378=this['_balloon'];if(this[_0x49a4('0x2d')])throw new _0x54a435(_0x49a4('0x46'),this);if(_0x236bd7['context']!==this[_0x49a4('0x8')])throw new _0x54a435(_0x49a4('0x18'),this);const _0x5871c9=this[_0x49a4('0x8')][_0x49a4('0x17')][_0x49a4('0x4')]('EditorAnnotations');this[_0x49a4('0x4a')](_0x5871c9,_0x49a4('0x1d'),function(){const _0x4837e8=_0x5871c9[_0x49a4('0x40')]({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x49a4('0x2c')]});if(!this['_forceRefresh']&&(_0x3e9396=_0x4837e8,_0x425a4f=this[_0x49a4('0x34')],_0x3e9396[_0x49a4('0x2f')]===_0x425a4f[_0x49a4('0x2f')]&&_0x3e9396[_0x49a4('0x16')](_0x2d87be=>_0x425a4f[_0x49a4('0x1e')](_0x2d87be))))return;var _0x3e9396,_0x425a4f;this[_0x49a4('0x4e')]=!0x1,this[_0x49a4('0x38')](_0x4837e8),this[_0x49a4('0x27')](_0x4837e8[0x0]||null);}['bind'](this)),this[_0x49a4('0x4a')](_0x5871c9,'blur',(_0x2ae2cd,{isAnnotationTracked:_0x400f5d})=>{this[_0x49a4('0x36')]&&_0x400f5d(this['activeAnnotation'])&&(this[_0x49a4('0x38')]([]),this[_0x49a4('0x27')](null));}),this[_0x49a4('0x4a')](this[_0x49a4('0x8')]['ui']['focusTracker'],_0x49a4('0x47'),(_0x21f021,_0xd623c2,_0x5a3f7a)=>{_0x5a3f7a||this['setActiveAnnotation'](null);}),this[_0x49a4('0x4a')](_0x3f770b,_0x49a4('0x3b'),(_0x3a609c,_0x68813e)=>{this[_0x49a4('0x1f')](_0x68813e),_0x68813e===this[_0x49a4('0x36')]&&this[_0x49a4('0x27')](null);}),this['listenTo'](_0x544378,_0x49a4('0x23'),(_0x8b9687,_0x51e5d5,_0x30d708,_0x5a2f7f)=>{if(_0x5a2f7f&&this['stopListening'](_0x5a2f7f),!_0x30d708||!_0x3f770b['getByView'](_0x30d708))return;const _0x5c8f24=_0x3f770b[_0x49a4('0x3c')](_0x30d708);this[_0x49a4('0x4a')](_0x30d708,_0x49a4('0x14'),()=>{_0x544378[_0x49a4('0x12')]();}),this[_0x49a4('0x4a')](_0x30d708,_0x49a4('0x2'),()=>{this[_0x49a4('0x15')](_0x5c8f24),this['editor'][_0x49a4('0x2e')][_0x49a4('0x22')][_0x49a4('0xa')]();}),this['activeAnnotation']!==_0x5c8f24&&this[_0x49a4('0x27')](_0x5c8f24);}),this['listenTo'](this[_0x49a4('0x8')]['ui'],_0x49a4('0x1c'),()=>{_0x544378['visibleView']&&(_0x3f770b[_0x49a4('0x3c')](_0x544378[_0x49a4('0x44')])&&_0x544378[_0x49a4('0x12')]());}),this[_0x49a4('0x4a')](this[_0x49a4('0x8')][_0x49a4('0x2e')]['view'][_0x49a4('0x3f')],_0x49a4('0x2a'),()=>{this[_0x49a4('0x4e')]=!0x0,this[_0x49a4('0x4f')][_0x49a4('0x30')]();}),this['editor'][_0x49a4('0x2e')][_0x49a4('0x22')]['document'][_0x49a4('0x20')][_0x49a4('0x1')]&&this[_0x49a4('0x8')][_0x49a4('0x2e')][_0x49a4('0x22')][_0x49a4('0xa')](),this[_0x49a4('0x2d')]=!0x0;}[_0x49a4('0x42')](){if(!this[_0x49a4('0x2d')])throw new _0x54a435(_0x49a4('0xf'),this);this[_0x49a4('0x27')](null);for(const _0x48813f of this['_addedAnnotations'])this[_0x49a4('0x1f')](_0x48813f);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}[_0x49a4('0x43')](){this['isAttached']&&this[_0x49a4('0x42')]();}[_0x49a4('0x38')](_0x90d7a7){for(const _0x526d30 of this[_0x49a4('0x34')])_0x90d7a7[_0x49a4('0x1e')](_0x526d30)||this['_manuallyClosed']['delete'](_0x526d30);for(const _0x4ef536 of this[_0x49a4('0x2c')])_0x90d7a7[_0x49a4('0x1e')](_0x4ef536)||this[_0x49a4('0x1f')](_0x4ef536);if(this['editor']['ui']['focusTracker'][_0x49a4('0x10')])for(const _0x34664f of _0x90d7a7)this[_0x49a4('0xc')](_0x34664f);this[_0x49a4('0x34')]=_0x90d7a7;}[_0x49a4('0xc')](_0x5d4f78,_0x3668be){this[_0x49a4('0x4f')][_0x49a4('0x4d')](_0x5d4f78)||(this['_addedAnnotations'][_0x49a4('0x4d')](_0x5d4f78)||this[_0x49a4('0x19')][_0x49a4('0x6')](_0x5d4f78[_0x49a4('0x22')])||(this[_0x49a4('0x24')]['add'](_0x5d4f78),this[_0x49a4('0x19')]['add']({'stackId':_0x5d4f78[_0x49a4('0x22')]['id'],'view':_0x5d4f78['view'],'position':{'target':()=>this[_0x49a4('0x1b')](_0x5d4f78)}})),_0x3668be&&this[_0x49a4('0x19')][_0x49a4('0x33')](_0x5d4f78[_0x49a4('0x22')]['id']));}['_getBalloonTargetForAnnotation'](_0x34b6b9){const _0xac1413=_0x34b6b9[_0x49a4('0x48')],_0xfc5c31=this['editor'][_0x49a4('0x2e')][_0x49a4('0x22')],_0x31781c=_0xfc5c31['document'][_0x49a4('0x20')][_0x49a4('0x21')](),_0x2fe2c8=_0xfc5c31[_0x49a4('0x31')][_0x49a4('0x35')](_0x31781c);if(_0x2fe2c8['collapse'](!0x0),_0xac1413){if(_0xac1413 instanceof _0x16318c)return _0xac1413;let _0x577d1b=[];for(const _0x3af685 of _0xac1413)_0x577d1b['push'](...(_0x2298e4=_0x3af685[_0x49a4('0x26')](),Array[_0x49a4('0x3e')](_0x2298e4)[_0x49a4('0x29')](DOMRect[_0x49a4('0x32')])));_0x577d1b=function(_0x2a2694){const _0x6a7886=[];let _0x361402=_0x2a2694[0x0];for(let _0x4b68fd=0x1;_0x4b68fd<_0x2a2694[_0x49a4('0x2f')];_0x4b68fd++)E(_0x361402,_0x2a2694[_0x4b68fd])?_0x361402['width']+=_0x2a2694[_0x4b68fd][_0x49a4('0x5')]:(_0x6a7886[_0x49a4('0x39')](_0x361402),_0x361402=_0x2a2694[_0x4b68fd]);return _0x6a7886['push'](_0x361402),_0x6a7886;}(_0x577d1b);const _0x180488=_0x2fe2c8[_0x49a4('0x7')]();return _0x577d1b[_0x49a4('0x25')](_0x46894b=>_0x46894b[_0x49a4('0xd')]<=_0x180488[_0x49a4('0xd')]&&_0x46894b[_0x49a4('0x37')]>=_0x180488[_0x49a4('0x37')]&&_0x46894b['left']<=_0x180488[_0x49a4('0x4c')]&&_0x46894b[_0x49a4('0x45')]>=_0x180488['right'])||_0x577d1b[0x0];}var _0x2298e4;return _0x34b6b9[_0x49a4('0x3a')]||_0x2fe2c8;}['_removeAnnotationFromBalloon'](_0x480532){this[_0x49a4('0x24')][_0x49a4('0x4d')](_0x480532)&&this[_0x49a4('0x19')][_0x49a4('0x6')](_0x480532[_0x49a4('0x22')])&&(this[_0x49a4('0x24')]['delete'](_0x480532),this[_0x49a4('0x19')][_0x49a4('0x3b')](_0x480532['view']));}[_0x49a4('0x15')](_0x5d3286){this[_0x49a4('0x4f')][_0x49a4('0x41')](_0x5d3286),this[_0x49a4('0x1f')](_0x5d3286);}}function E(_0x57755b,_0x152910){return _0x57755b[_0x49a4('0xd')]===_0x152910['top']&&_0x57755b[_0x49a4('0x37')]===_0x152910[_0x49a4('0x37')]&&_0x57755b[_0x49a4('0x45')]===_0x152910[_0x49a4('0x4c')];}