@ckeditor/ckeditor5-comments 34.1.0 → 34.2.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 (45) hide show
  1. package/build/comments.js +1 -1
  2. package/build/translations/es.js +1 -1
  3. package/build/translations/fr.js +1 -1
  4. package/build/translations/it.js +1 -1
  5. package/build/translations/pt-br.js +1 -1
  6. package/lang/translations/es.po +2 -1
  7. package/lang/translations/fr.po +2 -1
  8. package/lang/translations/it.po +2 -1
  9. package/lang/translations/pt-br.po +2 -1
  10. package/package.json +3 -3
  11. package/src/annotations/annotation.js +1 -1
  12. package/src/annotations/annotationcollection.js +1 -1
  13. package/src/annotations/annotations.js +1 -1
  14. package/src/annotations/annotationsuis.js +1 -1
  15. package/src/annotations/editorannotations.js +1 -1
  16. package/src/annotations/inlineannotations.js +1 -1
  17. package/src/annotations/narrowsidebar.js +1 -1
  18. package/src/annotations/sidebar.js +1 -1
  19. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  20. package/src/annotations/view/annotationview.js +1 -1
  21. package/src/annotations/view/sidebaritemview.js +1 -1
  22. package/src/annotations/view/sidebarview.js +1 -1
  23. package/src/annotations/widesidebar.js +1 -1
  24. package/src/comments/addcommentthreadcommand.js +1 -1
  25. package/src/comments/commentsediting.js +1 -1
  26. package/src/comments/commentsrepository.js +1 -1
  27. package/src/comments/commentsui.js +1 -1
  28. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  29. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  30. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  31. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  32. package/src/comments/ui/commentthreadcontroller.js +1 -1
  33. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  34. package/src/comments/ui/view/basecommentview.js +1 -1
  35. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  36. package/src/comments/ui/view/commentcontentview.js +1 -1
  37. package/src/comments/ui/view/commentinputview.js +1 -1
  38. package/src/comments/ui/view/commentslistview.js +1 -1
  39. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  40. package/src/comments/ui/view/commentthreadview.js +1 -1
  41. package/src/comments/ui/view/commentview.js +1 -1
  42. package/src/comments.js +1 -1
  43. package/src/commentsonly.js +1 -1
  44. package/src/utils/common-translations.js +1 -1
  45. package/src/utils/createmutationobserver.js +1 -1
@@ -1 +1 @@
1
- !function(e){const o=e.es=e.es||{};o.dictionary=Object.assign(o.dictionary||{},{Comment:"Comentario","Comment editor":"Editor de comentarios","Delete comment thread?":"¿Quiere eliminar el hilo de comentarios?","Delete comment?":"¿Quiere eliminar el comentario?",Edit:"Editar",NUMBER_OF_COMMENTS:["%0 comentario","%0 comentarios"],PENDING_ACTION_COMMENT_THREAD:"Cambio no guardado en hilo de comentarios.",Remove:"Quitar","Reply...":"Responder…",Submit:"Enviar",TOO_LONG_COMMENT_ALERT:"El contenido del comentario es demasiado extenso. Su comentario tiene %0 caracteres, pero el límite es de %1.","Write a comment...":"Escribir un comentario…"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
1
+ !function(e){const o=e.es=e.es||{};o.dictionary=Object.assign(o.dictionary||{},{Comment:"Comentario","Comment editor":"Editor de comentarios","Delete comment thread?":"¿Quiere eliminar el hilo de comentarios?","Delete comment?":"¿Quiere eliminar el comentario?",Edit:"Editar",NUMBER_OF_COMMENTS:["%0 comentario","%0 comentarios","%0 comentarios"],PENDING_ACTION_COMMENT_THREAD:"Cambio no guardado en hilo de comentarios.",Remove:"Quitar","Reply...":"Responder…",Submit:"Enviar",TOO_LONG_COMMENT_ALERT:"El contenido del comentario es demasiado extenso. Su comentario tiene %0 caracteres, pero el límite es de %1.","Write a comment...":"Escribir un comentario…"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -1 +1 @@
1
- !function(e){const t=e.fr=e.fr||{};t.dictionary=Object.assign(t.dictionary||{},{Comment:"Commenter","Comment editor":"Éditeur de commentaire","Delete comment thread?":"Supprimer le fil des commentaires ? ","Delete comment?":"Supprimer le commentaire ?",Edit:"Éditer",NUMBER_OF_COMMENTS:["%0 commentaire","%0 commentaires"],PENDING_ACTION_COMMENT_THREAD:"Changement non enregistré dans le fil des commentaires.",Remove:"Supprimer","Reply...":"Répondre...",Submit:"Soumettre",TOO_LONG_COMMENT_ALERT:"Le contenu du commentaire est trop long. Votre commentaire contient %0 caractères alors que la limite est de %1 caractères.","Write a comment...":"Écrire un commentaire..."})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
1
+ !function(e){const t=e.fr=e.fr||{};t.dictionary=Object.assign(t.dictionary||{},{Comment:"Commenter","Comment editor":"Éditeur de commentaire","Delete comment thread?":"Supprimer le fil des commentaires ? ","Delete comment?":"Supprimer le commentaire ?",Edit:"Éditer",NUMBER_OF_COMMENTS:["%0 commentaire","%0 commentaires","%0 commentaires"],PENDING_ACTION_COMMENT_THREAD:"Changement non enregistré dans le fil des commentaires.",Remove:"Supprimer","Reply...":"Répondre...",Submit:"Soumettre",TOO_LONG_COMMENT_ALERT:"Le contenu du commentaire est trop long. Votre commentaire contient %0 caractères alors que la limite est de %1 caractères.","Write a comment...":"Écrire un commentaire..."})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -1 +1 @@
1
- !function(e){const o=e.it=e.it||{};o.dictionary=Object.assign(o.dictionary||{},{Comment:"Commento","Comment editor":"Editor di commenti","Delete comment thread?":"Eliminare la conversazione del commento?","Delete comment?":"Eliminare il commento?",Edit:"Modifica",NUMBER_OF_COMMENTS:["%0 commento","%0 commenti"],PENDING_ACTION_COMMENT_THREAD:"Modifica non salvata nella discussione dei commenti.",Remove:"Rimuovi","Reply...":"Rispondi...",Submit:"Invia",TOO_LONG_COMMENT_ALERT:"Il contenuto del commento è troppo lungo. Il commento è lungo %0 caratteri, mentre il limite è di %1 caratteri.","Write a comment...":"Scrivere un commento..."})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
1
+ !function(e){const o=e.it=e.it||{};o.dictionary=Object.assign(o.dictionary||{},{Comment:"Commento","Comment editor":"Editor di commenti","Delete comment thread?":"Eliminare la conversazione del commento?","Delete comment?":"Eliminare il commento?",Edit:"Modifica",NUMBER_OF_COMMENTS:["%0 commento","%0 commenti","%0 commenti"],PENDING_ACTION_COMMENT_THREAD:"Modifica non salvata nella discussione dei commenti.",Remove:"Rimuovi","Reply...":"Rispondi...",Submit:"Invia",TOO_LONG_COMMENT_ALERT:"Il contenuto del commento è troppo lungo. Il commento è lungo %0 caratteri, mentre il limite è di %1 caratteri.","Write a comment...":"Scrivere un commento..."})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -1 +1 @@
1
- !function(e){const o=e["pt-br"]=e["pt-br"]||{};o.dictionary=Object.assign(o.dictionary||{},{Comment:"Comentário","Comment editor":"Editar comentário","Delete comment thread?":"Excluir segmento de comentários?","Delete comment?":"Excluir comentário?",Edit:"Editar",NUMBER_OF_COMMENTS:["%0 Comentários","%0 Comentários"],PENDING_ACTION_COMMENT_THREAD:"Alteração não salva no segmento de comentários.",Remove:"Remover","Reply...":"Responder...",Submit:"Enviar",TOO_LONG_COMMENT_ALERT:"O conteúdo do comentário é muito longo. Seu comentário possui %0 caracteres, mas o limite é de %1 caracteres.","Write a comment...":"Escrever um comentário..."})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
1
+ !function(e){const o=e["pt-br"]=e["pt-br"]||{};o.dictionary=Object.assign(o.dictionary||{},{Comment:"Comentário","Comment editor":"Editar comentário","Delete comment thread?":"Excluir segmento de comentários?","Delete comment?":"Excluir comentário?",Edit:"Editar",NUMBER_OF_COMMENTS:["%0 Comentários","%0 Comentários","%0 Comentários"],PENDING_ACTION_COMMENT_THREAD:"Alteração não salva no segmento de comentários.",Remove:"Remover","Reply...":"Responder...",Submit:"Enviar",TOO_LONG_COMMENT_ALERT:"O conteúdo do comentário é muito longo. Seu comentário possui %0 caracteres, mas o limite é de %1 caracteres.","Write a comment...":"Escrever um comentário..."})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -14,7 +14,7 @@ msgid ""
14
14
  msgstr ""
15
15
  "Language-Team: Spanish (https://www.transifex.com/ckeditor/teams/11143/es/)\n"
16
16
  "Language: es\n"
17
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+ "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
18
 
19
19
  msgctxt "The label for the comment editor."
20
20
  msgid "Comment editor"
@@ -25,6 +25,7 @@ msgid "NUMBER_OF_COMMENTS"
25
25
  msgid_plural "%0 Comments"
26
26
  msgstr[0] "%0 comentario"
27
27
  msgstr[1] "%0 comentarios"
28
+ msgstr[2] "%0 comentarios"
28
29
 
29
30
  msgctxt "The alert displayed for a comment that is too long."
30
31
  msgid "TOO_LONG_COMMENT_ALERT"
@@ -14,7 +14,7 @@ msgid ""
14
14
  msgstr ""
15
15
  "Language-Team: French (https://www.transifex.com/ckeditor/teams/11143/fr/)\n"
16
16
  "Language: fr\n"
17
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
17
+ "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
18
 
19
19
  msgctxt "The label for the comment editor."
20
20
  msgid "Comment editor"
@@ -25,6 +25,7 @@ msgid "NUMBER_OF_COMMENTS"
25
25
  msgid_plural "%0 Comments"
26
26
  msgstr[0] "%0 commentaire"
27
27
  msgstr[1] "%0 commentaires"
28
+ msgstr[2] "%0 commentaires"
28
29
 
29
30
  msgctxt "The alert displayed for a comment that is too long."
30
31
  msgid "TOO_LONG_COMMENT_ALERT"
@@ -14,7 +14,7 @@ msgid ""
14
14
  msgstr ""
15
15
  "Language-Team: Italian (https://www.transifex.com/ckeditor/teams/11143/it/)\n"
16
16
  "Language: it\n"
17
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+ "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
18
 
19
19
  msgctxt "The label for the comment editor."
20
20
  msgid "Comment editor"
@@ -25,6 +25,7 @@ msgid "NUMBER_OF_COMMENTS"
25
25
  msgid_plural "%0 Comments"
26
26
  msgstr[0] "%0 commento"
27
27
  msgstr[1] "%0 commenti"
28
+ msgstr[2] "%0 commenti"
28
29
 
29
30
  msgctxt "The alert displayed for a comment that is too long."
30
31
  msgid "TOO_LONG_COMMENT_ALERT"
@@ -14,7 +14,7 @@ msgid ""
14
14
  msgstr ""
15
15
  "Language-Team: Portuguese (Brazil) (https://www.transifex.com/ckeditor/teams/11143/pt_BR/)\n"
16
16
  "Language: pt_BR\n"
17
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
17
+ "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
18
 
19
19
  msgctxt "The label for the comment editor."
20
20
  msgid "Comment editor"
@@ -25,6 +25,7 @@ msgid "NUMBER_OF_COMMENTS"
25
25
  msgid_plural "%0 Comments"
26
26
  msgstr[0] "%0 Comentários"
27
27
  msgstr[1] "%0 Comentários"
28
+ msgstr[2] "%0 Comentários"
28
29
 
29
30
  msgctxt "The alert displayed for a comment that is too long."
30
31
  msgid "TOO_LONG_COMMENT_ALERT"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "34.1.0",
3
+ "version": "34.2.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": "^34.1.0",
35
- "ckeditor5-collaboration": "^34.1.0",
34
+ "ckeditor5": "^34.2.0",
35
+ "ckeditor5-collaboration": "^34.2.0",
36
36
  "lodash-es": "^4.17.11"
37
37
  }
38
38
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c33=['type','element','view','targetRect','refreshVisibility','updateTargetRect','focusableElements','_assertCorrectTarget','mainView','stopListening','remove','isActive','_type','getClientRects','innerView','isVisible','item','destroy','target','_target','annotation-invalid-target','_isTargetElementVisible','function','add','focusTracker','render'];(function(_0x2778c1,_0x4c33bf){const _0x17ba85=function(_0x3be3fe){while(--_0x3be3fe){_0x2778c1['push'](_0x2778c1['shift']());}};_0x17ba85(++_0x4c33bf);}(_0x4c33,0x109));const _0x17ba=function(_0x2778c1,_0x4c33bf){_0x2778c1=_0x2778c1-0x0;let _0x17ba85=_0x4c33[_0x2778c1];return _0x17ba85;};import{CKEditorError as _0x147e75,Rect as _0x2c09cb,Collection as _0xaaf32d,mix as _0x22d224,ObservableMixin as _0x501d58}from'ckeditor5/src/utils';import{isElement as _0x76682e}from'lodash-es';export default class W{constructor({view:_0x41581d,target:_0xe04421,type:_0x498fce,isVisible:_0x43c3be=!0x0}){this[_0x17ba('0x17')]=_0x41581d,this['view'][_0x17ba('0x16')]||this['view'][_0x17ba('0x14')](),this['_type']=_0x498fce,this[_0x17ba('0xe')]=_0xe04421,this[_0x17ba('0x2')](),this[_0x17ba('0x1')]=new _0xaaf32d([this[_0x17ba('0x17')][_0x17ba('0x16')]],{'idProperty':'_id'}),this['focusableElements']['on'](_0x17ba('0x12'),(_0x30c075,_0xad6572)=>{this[_0x17ba('0x17')][_0x17ba('0x13')]['add'](_0xad6572);}),this['focusableElements']['on'](_0x17ba('0x5'),(_0x14987b,_0x424567)=>{this[_0x17ba('0x17')][_0x17ba('0x13')][_0x17ba('0x5')](_0x424567);}),this['set'](_0x17ba('0xa'),_0x43c3be);}get[_0x17ba('0x15')](){return _0x17ba('0x11')==typeof this[_0x17ba('0x7')]?this[_0x17ba('0x7')]():this[_0x17ba('0x7')];}get[_0x17ba('0x9')](){return this[_0x17ba('0x17')][_0x17ba('0x3')];}get['target'](){return'function'==typeof this[_0x17ba('0xe')]?this['_target']():this[_0x17ba('0xe')];}get[_0x17ba('0x18')](){const _0x3200aa=this[_0x17ba('0xd')];return this[_0x17ba('0x2')](),null!==_0x3200aa&&this[_0x17ba('0x10')]()?new _0x2c09cb(_0x3200aa):null;}get[_0x17ba('0x6')](){return this[_0x17ba('0x17')][_0x17ba('0x6')];}set['isActive'](_0x321b35){this[_0x17ba('0x17')][_0x17ba('0x6')]=_0x321b35,this[_0x17ba('0x17')]['mainView'][_0x17ba('0x6')]=_0x321b35;}[_0x17ba('0x0')](){this['view']['targetRect']=this['targetRect'];}[_0x17ba('0xc')](){this[_0x17ba('0x1')][_0x17ba('0x4')](),this[_0x17ba('0x1')]['clear'](),this[_0x17ba('0x4')]();}[_0x17ba('0x19')](){this[_0x17ba('0xa')]=this[_0x17ba('0x10')]();}[_0x17ba('0x10')](){const _0x518b1d=this[_0x17ba('0xd')];if(_0x76682e(_0x518b1d)){const _0x146c49=_0x518b1d[_0x17ba('0x8')]()[_0x17ba('0xb')](0x0),_0x20525b=_0x518b1d['offsetParent'];if(!_0x146c49||!_0x20525b)return!0x1;}return!0x0;}[_0x17ba('0x2')](){const _0x2762aa=this['target'];if(!(null===_0x2762aa||_0x2762aa instanceof _0x2c09cb||_0x76682e(_0x2762aa)))throw new _0x147e75(_0x17ba('0xf'),null,{'target':_0x2762aa});}}_0x22d224(W,_0x501d58);
23
+ const _0x402b=['focusableElements','mainView','isActive','_isTargetElementVisible','item','destroy','element','type','_target','function','set','_assertCorrectTarget','isVisible','remove','_type','refreshVisibility','render','targetRect','getClientRects','focusTracker','clear','target','annotation-invalid-target','add','view','stopListening'];(function(_0x281e52,_0x402b2f){const _0xeac67d=function(_0x12006e){while(--_0x12006e){_0x281e52['push'](_0x281e52['shift']());}};_0xeac67d(++_0x402b2f);}(_0x402b,0x10c));const _0xeac6=function(_0x281e52,_0x402b2f){_0x281e52=_0x281e52-0x0;let _0xeac67d=_0x402b[_0x281e52];return _0xeac67d;};import{CKEditorError as _0x109831,Rect as _0x66e9ca,Collection as _0x3c0d47,mix as _0x3d40d3,ObservableMixin as _0x2278aa}from'ckeditor5/src/utils';import{isElement as _0x29ba9f}from'lodash-es';export default class p{constructor({view:_0x6f6ed8,target:_0x5d0891,type:_0x31aefa,isVisible:_0x5f46c5=!0x0}){this[_0xeac6('0x10')]=_0x6f6ed8,this[_0xeac6('0x10')]['element']||this['view'][_0xeac6('0x8')](),this[_0xeac6('0x6')]=_0x31aefa,this[_0xeac6('0x0')]=_0x5d0891,this[_0xeac6('0x3')](),this[_0xeac6('0x12')]=new _0x3c0d47([this[_0xeac6('0x10')][_0xeac6('0x18')]],{'idProperty':'_id'}),this[_0xeac6('0x12')]['on'](_0xeac6('0xf'),(_0x29dc09,_0x384c89)=>{this[_0xeac6('0x10')][_0xeac6('0xb')][_0xeac6('0xf')](_0x384c89);}),this['focusableElements']['on'](_0xeac6('0x5'),(_0x462584,_0x236f04)=>{this[_0xeac6('0x10')]['focusTracker']['remove'](_0x236f04);}),this[_0xeac6('0x2')](_0xeac6('0x4'),_0x5f46c5);}get[_0xeac6('0x19')](){return _0xeac6('0x1')==typeof this[_0xeac6('0x6')]?this[_0xeac6('0x6')]():this[_0xeac6('0x6')];}get['innerView'](){return this[_0xeac6('0x10')][_0xeac6('0x13')];}get[_0xeac6('0xd')](){return'function'==typeof this[_0xeac6('0x0')]?this[_0xeac6('0x0')]():this[_0xeac6('0x0')];}get[_0xeac6('0x9')](){const _0x47daba=this[_0xeac6('0xd')];return this[_0xeac6('0x3')](),null!==_0x47daba&&this[_0xeac6('0x15')]()?new _0x66e9ca(_0x47daba):null;}get[_0xeac6('0x14')](){return this['view'][_0xeac6('0x14')];}set['isActive'](_0x406eac){this[_0xeac6('0x10')]['isActive']=_0x406eac,this[_0xeac6('0x10')][_0xeac6('0x13')][_0xeac6('0x14')]=_0x406eac;}['updateTargetRect'](){this[_0xeac6('0x10')][_0xeac6('0x9')]=this[_0xeac6('0x9')];}[_0xeac6('0x17')](){this[_0xeac6('0x12')][_0xeac6('0x11')](),this[_0xeac6('0x12')][_0xeac6('0xc')](),this[_0xeac6('0x11')]();}[_0xeac6('0x7')](){this[_0xeac6('0x4')]=this[_0xeac6('0x15')]();}['_isTargetElementVisible'](){const _0x5242d6=this['target'];if(_0x29ba9f(_0x5242d6)){const _0x3cf7c8=_0x5242d6[_0xeac6('0xa')]()[_0xeac6('0x16')](0x0),_0x1b6cc8=_0x5242d6['offsetParent'];if(!_0x3cf7c8||!_0x1b6cc8)return!0x1;}return!0x0;}[_0xeac6('0x3')](){const _0x19f18a=this[_0xeac6('0xd')];if(!(null===_0x19f18a||_0x19f18a instanceof _0x66e9ca||_0x29ba9f(_0x19f18a)))throw new _0x109831(_0xeac6('0xe'),null,{'target':_0x19f18a});}}_0x3d40d3(p,_0x2278aa);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x301a=['innerView','getByView','isFocused','getIndex','stopListening','get','focus','annotationcollection-not-existing-item','targetRect','left','_items','blur','set','change:isFocused','_focusTracker','add','fire','view','delete','remove','sort','_getOrderInContent','length','destroy','focusTracker','listenTo','has','_innerViewToAnnotation','updateTargetRect','getByInnerView','refreshPositioning','annotationcollection-duplicated-item','clear','focusableElements','_sort','top','_viewToAnnotation'];(function(_0x2fab11,_0x301a1f){const _0x3b8900=function(_0x410cb0){while(--_0x410cb0){_0x2fab11['push'](_0x2fab11['shift']());}};_0x3b8900(++_0x301a1f);}(_0x301a,0x12c));const _0x3b89=function(_0x2fab11,_0x301a1f){_0x2fab11=_0x2fab11-0x0;let _0x3b8900=_0x301a[_0x2fab11];return _0x3b8900;};import{CKEditorError as _0x5dbadb,Collection as _0x328276,FocusTracker as _0x4051ef}from'ckeditor5/src/utils';export default class K extends _0x328276{constructor(_0x21dbfd=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x3b89('0x20')]=new Map(),this[_0x3b89('0xa')]=new _0x4051ef(),this['_focusTracker']['on'](_0x3b89('0x9'),(_0x49f9bf,_0x12eb26,_0x41787c)=>{_0x41787c||this['fire'](_0x3b89('0x7'));});for(const _0x1e4e7f of _0x21dbfd)this[_0x3b89('0xb')](_0x1e4e7f);}get[_0x3b89('0x23')](){return this[_0x3b89('0xa')][_0x3b89('0x23')];}[_0x3b89('0xb')](_0x21ac5b){if(this['has'](_0x21ac5b))throw new _0x5dbadb(_0x3b89('0x1b'),null);this[_0x3b89('0x17')][_0x3b89('0x8')](_0x21ac5b[_0x3b89('0x21')],_0x21ac5b),this[_0x3b89('0x20')][_0x3b89('0x8')](_0x21ac5b[_0x3b89('0xd')],_0x21ac5b);for(const _0x22fe92 of _0x21ac5b[_0x3b89('0x1d')])this[_0x3b89('0xa')]['add'](_0x22fe92);this[_0x3b89('0x15')](_0x21ac5b[_0x3b89('0x1d')],_0x3b89('0xb'),(_0x957127,_0xfba690)=>{this['_focusTracker'][_0x3b89('0xb')](_0xfba690);}),this[_0x3b89('0x15')](_0x21ac5b[_0x3b89('0x1d')],_0x3b89('0xf'),(_0x1b9f7b,_0x6aec99)=>{this[_0x3b89('0xa')]['remove'](_0x6aec99);}),this[_0x3b89('0x15')](_0x21ac5b[_0x3b89('0xd')]['focusTracker'],_0x3b89('0x9'),(_0xe4e612,_0x4cc8b9,_0x578aaf)=>{_0x578aaf&&this[_0x3b89('0xc')](_0x3b89('0x2'),_0x21ac5b);});const _0xde6c37=this['_getOrderInContent'](_0x21ac5b);super['add'](_0x21ac5b,_0xde6c37),_0x21ac5b[_0x3b89('0x18')]();}[_0x3b89('0xf')](_0x1b4d06){if(!this[_0x3b89('0x16')](_0x1b4d06))throw new _0x5dbadb(_0x3b89('0x3'),null);this[_0x3b89('0x0')](_0x1b4d06[_0x3b89('0xd')][_0x3b89('0x14')]),this['stopListening'](_0x1b4d06[_0x3b89('0x1d')]);for(const _0x3c7fbd of _0x1b4d06[_0x3b89('0x1d')])this['_focusTracker'][_0x3b89('0xf')](_0x3c7fbd);this['_viewToAnnotation']['delete'](_0x1b4d06[_0x3b89('0xd')]),this['_innerViewToAnnotation'][_0x3b89('0xe')](_0x1b4d06['innerView']),super[_0x3b89('0xf')](_0x1b4d06);}[_0x3b89('0x19')](_0x261f5d){return this[_0x3b89('0x17')][_0x3b89('0x1')](_0x261f5d);}[_0x3b89('0x22')](_0x2293cf){return this[_0x3b89('0x20')][_0x3b89('0x1')](_0x2293cf);}[_0x3b89('0x13')](){super[_0x3b89('0x1c')](),this[_0x3b89('0x0')](),this[_0x3b89('0x17')][_0x3b89('0x1c')](),this[_0x3b89('0x20')][_0x3b89('0x1c')](),this['_focusTracker']['destroy']();}[_0x3b89('0x1a')](){for(const _0x57cb9a of this)_0x57cb9a[_0x3b89('0x18')]();this['_sort']();}[_0x3b89('0x1e')](){const _0x7fa241=Array['from'](this)[_0x3b89('0x10')]((_0x1e7b7a,_0x5410bf)=>Q(_0x1e7b7a[_0x3b89('0x4')],_0x5410bf[_0x3b89('0x4')]));for(let _0xbd5239=_0x7fa241[_0x3b89('0x12')]-0x1;_0xbd5239>0x0;_0xbd5239--){const _0x3b8673=_0x7fa241[_0xbd5239];_0xbd5239!==this[_0x3b89('0x24')](_0x3b8673)&&(this[_0x3b89('0xf')](_0x3b8673),this[_0x3b89('0xb')](_0x3b8673,_0xbd5239));}}[_0x3b89('0x11')](_0x1c6c60){let _0x4e838e=0x0;const _0x114213=_0x1c6c60[_0x3b89('0x4')];if(!_0x114213)return this[_0x3b89('0x6')][_0x3b89('0x12')];for(const _0x171986 of this){const _0x24e566=_0x171986['targetRect'];if(_0x24e566){if(Q(_0x114213,_0x24e566)<0x0)return _0x4e838e;_0x4e838e++;}}return _0x4e838e;}}export function bindAnnotationCollections({source:_0x1b3eb1,target:_0x199f4a,filter:_0x31b2ac}){for(const _0x40277e of _0x1b3eb1)_0x31b2ac(_0x40277e)&&_0x199f4a['add'](_0x40277e);_0x199f4a[_0x3b89('0x15')](_0x1b3eb1,_0x3b89('0xb'),(_0x17fec9,_0x40efca)=>{_0x31b2ac(_0x40efca)&&_0x199f4a[_0x3b89('0xb')](_0x40efca);}),_0x199f4a[_0x3b89('0x15')](_0x1b3eb1,_0x3b89('0xf'),(_0x57e918,_0x22856b)=>{_0x199f4a[_0x3b89('0x16')](_0x22856b)&&_0x199f4a['remove'](_0x22856b);});}function Q(_0x2695f0,_0x58a4ef){if(null===_0x2695f0&&null===_0x58a4ef)return 0x0;if(null===_0x2695f0)return-0x1;if(null===_0x58a4ef)return 0x1;const _0x53097f=_0x2695f0[_0x3b89('0x1f')]-_0x58a4ef['top'];return 0x0==_0x53097f?_0x2695f0[_0x3b89('0x5')]-_0x58a4ef['left']:_0x53097f;}
23
+ const _0x5dbf=['destroy','innerView','_innerViewToAnnotation','clear','_items','annotationcollection-not-existing-item','remove','focusTracker','_getOrderInContent','focusableElements','stopListening','listenTo','_sort','updateTargetRect','_viewToAnnotation','view','delete','_focusTracker','targetRect','annotationcollection-duplicated-item','sort','refreshPositioning','get','has','left','change:isFocused','from','blur','getByView','add','top','length','isFocused','getByInnerView','fire'];(function(_0x474a36,_0x5dbf0f){const _0x137208=function(_0x3ff9a7){while(--_0x3ff9a7){_0x474a36['push'](_0x474a36['shift']());}};_0x137208(++_0x5dbf0f);}(_0x5dbf,0x18f));const _0x1372=function(_0x474a36,_0x5dbf0f){_0x474a36=_0x474a36-0x0;let _0x137208=_0x5dbf[_0x474a36];return _0x137208;};import{CKEditorError as _0x31aeae,Collection as _0x2bc692,FocusTracker as _0x4b4b0b}from'ckeditor5/src/utils';export default class x extends _0x2bc692{constructor(_0x470e79=[]){super(),this[_0x1372('0x17')]=new Map(),this[_0x1372('0x0')]=new Map(),this[_0x1372('0x3')]=new _0x4b4b0b(),this[_0x1372('0x3')]['on'](_0x1372('0xb'),(_0x2a4d5e,_0x22fc6d,_0x2be1ee)=>{_0x2be1ee||this['fire'](_0x1372('0xd'));});for(const _0x31455a of _0x470e79)this[_0x1372('0xf')](_0x31455a);}get[_0x1372('0x12')](){return this['_focusTracker'][_0x1372('0x12')];}[_0x1372('0xf')](_0x1768cc){if(this[_0x1372('0x9')](_0x1768cc))throw new _0x31aeae(_0x1372('0x5'),null);this[_0x1372('0x17')]['set'](_0x1768cc[_0x1372('0x16')],_0x1768cc),this[_0x1372('0x0')]['set'](_0x1768cc[_0x1372('0x1')],_0x1768cc);for(const _0x48dbf2 of _0x1768cc[_0x1372('0x1e')])this[_0x1372('0x3')][_0x1372('0xf')](_0x48dbf2);this[_0x1372('0x20')](_0x1768cc['focusableElements'],_0x1372('0xf'),(_0x19b7e7,_0x233947)=>{this[_0x1372('0x3')][_0x1372('0xf')](_0x233947);}),this[_0x1372('0x20')](_0x1768cc['focusableElements'],'remove',(_0x394e26,_0x10b426)=>{this[_0x1372('0x3')][_0x1372('0x1b')](_0x10b426);}),this[_0x1372('0x20')](_0x1768cc[_0x1372('0x1')][_0x1372('0x1c')],'change:isFocused',(_0x21788a,_0x56abf0,_0x37fa7a)=>{_0x37fa7a&&this[_0x1372('0x14')]('focus',_0x1768cc);});const _0x408ed3=this[_0x1372('0x1d')](_0x1768cc);super[_0x1372('0xf')](_0x1768cc,_0x408ed3),_0x1768cc[_0x1372('0x22')]();}['remove'](_0x48b006){if(!this[_0x1372('0x9')](_0x48b006))throw new _0x31aeae(_0x1372('0x1a'),null);this[_0x1372('0x1f')](_0x48b006[_0x1372('0x1')]['focusTracker']),this['stopListening'](_0x48b006[_0x1372('0x1e')]);for(const _0x1e0312 of _0x48b006[_0x1372('0x1e')])this[_0x1372('0x3')][_0x1372('0x1b')](_0x1e0312);this[_0x1372('0x0')][_0x1372('0x2')](_0x48b006[_0x1372('0x1')]),this[_0x1372('0x17')]['delete'](_0x48b006['innerView']),super['remove'](_0x48b006);}[_0x1372('0x13')](_0x34ac0c){return this[_0x1372('0x17')][_0x1372('0x8')](_0x34ac0c);}[_0x1372('0xe')](_0x68cf57){return this[_0x1372('0x0')][_0x1372('0x8')](_0x68cf57);}[_0x1372('0x15')](){super[_0x1372('0x18')](),this[_0x1372('0x1f')](),this[_0x1372('0x17')][_0x1372('0x18')](),this[_0x1372('0x0')][_0x1372('0x18')](),this['_focusTracker'][_0x1372('0x15')]();}[_0x1372('0x7')](){for(const _0x3393aa of this)_0x3393aa[_0x1372('0x22')]();this[_0x1372('0x21')]();}[_0x1372('0x21')](){const _0x5dd13f=Array[_0x1372('0xc')](this)[_0x1372('0x6')]((_0x15f81f,_0x381a0b)=>y(_0x15f81f[_0x1372('0x4')],_0x381a0b['targetRect']));for(let _0x228408=_0x5dd13f[_0x1372('0x11')]-0x1;_0x228408>0x0;_0x228408--){const _0x5a2a2b=_0x5dd13f[_0x228408];_0x228408!==this['getIndex'](_0x5a2a2b)&&(this[_0x1372('0x1b')](_0x5a2a2b),this['add'](_0x5a2a2b,_0x228408));}}['_getOrderInContent'](_0x26abc4){let _0x680b23=0x0;const _0x3fc37d=_0x26abc4[_0x1372('0x4')];if(!_0x3fc37d)return this[_0x1372('0x19')]['length'];for(const _0x2fad9d of this){const _0x425ba3=_0x2fad9d['targetRect'];if(_0x425ba3){if(y(_0x3fc37d,_0x425ba3)<0x0)return _0x680b23;_0x680b23++;}}return _0x680b23;}}export function bindAnnotationCollections({source:_0x3b6433,target:_0x37eca2,filter:_0x98f4a9}){for(const _0xf5d1e2 of _0x3b6433)_0x98f4a9(_0xf5d1e2)&&_0x37eca2['add'](_0xf5d1e2);_0x37eca2['listenTo'](_0x3b6433,_0x1372('0xf'),(_0x25d7b9,_0x3bd665)=>{_0x98f4a9(_0x3bd665)&&_0x37eca2[_0x1372('0xf')](_0x3bd665);}),_0x37eca2[_0x1372('0x20')](_0x3b6433,_0x1372('0x1b'),(_0x5deee5,_0x31d1d4)=>{_0x37eca2['has'](_0x31d1d4)&&_0x37eca2[_0x1372('0x1b')](_0x31d1d4);});}function y(_0x2fa2c0,_0x419ad6){if(null===_0x2fa2c0&&null===_0x419ad6)return 0x0;if(null===_0x2fa2c0)return-0x1;if(null===_0x419ad6)return 0x1;const _0x12b3f4=_0x2fa2c0[_0x1372('0x10')]-_0x419ad6[_0x1372('0x10')];return 0x0==_0x12b3f4?_0x2fa2c0[_0x1372('0xa')]-_0x419ad6[_0x1372('0xa')]:_0x12b3f4;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8c3d=['collection','fire','deactivateAll','stopListening','_bindAnnotationsToVisibleAnnotations','delete','destroy','_visibleAnnotations','source','Annotations','createAnnotationView','isVisible','change:isVisible','pluginName','activeAnnotations','remove','_removeActiveAnnotation','createAnnotation','listenTo','has','add','refreshPositioning','getByInnerView','_deactivateAllAnnotations','refreshVisibility','set'];(function(_0x170be6,_0x8c3d31){const _0x16e62c=function(_0x2320b7){while(--_0x2320b7){_0x170be6['push'](_0x170be6['shift']());}};_0x16e62c(++_0x8c3d31);}(_0x8c3d,0xc4));const _0x16e6=function(_0x170be6,_0x8c3d31){_0x170be6=_0x170be6-0x0;let _0x16e62c=_0x8c3d[_0x170be6];return _0x16e62c;};import{ContextPlugin as _0x307fd9}from'ckeditor5/src/core';import _0x312839 from'./annotation';import _0x559dd2 from'./annotationcollection';import _0x4d6858 from'./view/annotationview';export default class U extends _0x307fd9{static get[_0x16e6('0x19')](){return _0x16e6('0x15');}constructor(_0x171c6b){super(_0x171c6b),this[_0x16e6('0xc')]=new _0x559dd2(),this[_0x16e6('0x13')]=new _0x559dd2(),this[_0x16e6('0xb')](_0x16e6('0x0'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x16e6('0x6')](_0x3b67eb){this[_0x16e6('0xc')][_0x16e6('0x6')](_0x3b67eb);}['remove'](_0x2e09ea){this[_0x16e6('0xc')][_0x16e6('0x1')](_0x2e09ea),_0x2e09ea[_0x16e6('0x12')]();}[_0x16e6('0xa')](){for(const _0x2ef05d of this[_0x16e6('0xc')])_0x2ef05d[_0x16e6('0xa')]();}[_0x16e6('0x7')](){this[_0x16e6('0x13')][_0x16e6('0x7')]();}[_0x16e6('0x8')](_0x41d5c1){return this['collection'][_0x16e6('0x8')](_0x41d5c1);}[_0x16e6('0xe')](){this[_0x16e6('0xd')](_0x16e6('0x9'));}['destroy'](){for(const _0x175f79 of this[_0x16e6('0xc')])_0x175f79[_0x16e6('0x12')]();this[_0x16e6('0x13')][_0x16e6('0x12')](),this[_0x16e6('0xc')][_0x16e6('0x12')](),super[_0x16e6('0x12')]();}['activate'](_0x1eaa50){this[_0x16e6('0xd')]('_activateAnnotation',_0x1eaa50);}[_0x16e6('0x3')](_0xf12f05){return new _0x312839(_0xf12f05);}[_0x16e6('0x16')](_0x46c5b6,_0x37e5f9){return new _0x4d6858(_0x46c5b6,_0x37e5f9);}['_addActiveAnnotation'](_0x23a084){const _0x4760aa=new Set(this[_0x16e6('0x0')]);_0x4760aa[_0x16e6('0x6')](_0x23a084),this[_0x16e6('0x0')]=_0x4760aa;}[_0x16e6('0x2')](_0x57561){const _0x2fbc7c=new Set(this[_0x16e6('0x0')]);_0x2fbc7c[_0x16e6('0x11')](_0x57561),this[_0x16e6('0x0')]=_0x2fbc7c;}[_0x16e6('0x10')](){const _0x56d97e=this[_0x16e6('0xc')],_0x1e5482=this[_0x16e6('0x13')];function _0x9c385c(_0x33fdf2){const _0x3ced57=_0x33fdf2[_0x16e6('0x14')];_0x3ced57['isVisible']&&!_0x1e5482[_0x16e6('0x5')](_0x3ced57)?_0x1e5482[_0x16e6('0x6')](_0x3ced57):!_0x3ced57['isVisible']&&_0x1e5482[_0x16e6('0x5')](_0x3ced57)&&_0x1e5482[_0x16e6('0x1')](_0x3ced57);}this[_0x16e6('0x4')](_0x56d97e,_0x16e6('0x6'),(_0x38cf0b,_0x3e20fc)=>{_0x3e20fc[_0x16e6('0x17')]&&_0x1e5482['add'](_0x3e20fc),this[_0x16e6('0x4')](_0x3e20fc,_0x16e6('0x18'),_0x9c385c);}),this[_0x16e6('0x4')](_0x56d97e,'remove',(_0x461e75,_0x477a5b)=>{_0x1e5482[_0x16e6('0x5')](_0x477a5b)&&_0x1e5482['remove'](_0x477a5b),this[_0x16e6('0xf')](_0x477a5b,_0x16e6('0x18'),_0x9c385c);});}}
23
+ const _0x45a5=['_visibleAnnotations','isVisible','listenTo','destroy','activeAnnotations','fire','add','has','_addActiveAnnotation','pluginName','change:isVisible','delete','_removeActiveAnnotation','stopListening','_activateAnnotation','collection','remove','getByInnerView','_bindAnnotationsToVisibleAnnotations','_deactivateAllAnnotations','activate'];(function(_0x5a6567,_0x45a5f9){const _0x1be08b=function(_0x5a20c5){while(--_0x5a20c5){_0x5a6567['push'](_0x5a6567['shift']());}};_0x1be08b(++_0x45a5f9);}(_0x45a5,0x1e0));const _0x1be0=function(_0x5a6567,_0x45a5f9){_0x5a6567=_0x5a6567-0x0;let _0x1be08b=_0x45a5[_0x5a6567];return _0x1be08b;};import{ContextPlugin as _0x1d1fe7}from'ckeditor5/src/core';import _0x32746a from'./annotation';import _0xbfdb26 from'./annotationcollection';import _0xa11573 from'./view/annotationview';export default class V extends _0x1d1fe7{static get[_0x1be0('0xc')](){return'Annotations';}constructor(_0x2f6f60){super(_0x2f6f60),this['collection']=new _0xbfdb26(),this[_0x1be0('0x3')]=new _0xbfdb26(),this['set'](_0x1be0('0x7'),new Set()),this[_0x1be0('0x0')]();}['add'](_0x3718f4){this[_0x1be0('0x12')]['add'](_0x3718f4);}[_0x1be0('0x13')](_0x237a81){this[_0x1be0('0x12')]['remove'](_0x237a81),_0x237a81[_0x1be0('0x6')]();}['refreshVisibility'](){for(const _0x354338 of this[_0x1be0('0x12')])_0x354338['refreshVisibility']();}['refreshPositioning'](){this[_0x1be0('0x3')]['refreshPositioning']();}['getByInnerView'](_0x1cd9fe){return this[_0x1be0('0x12')][_0x1be0('0x14')](_0x1cd9fe);}['deactivateAll'](){this['fire'](_0x1be0('0x1'));}['destroy'](){for(const _0x5be55a of this[_0x1be0('0x12')])_0x5be55a[_0x1be0('0x6')]();this[_0x1be0('0x3')]['destroy'](),this['collection'][_0x1be0('0x6')](),super[_0x1be0('0x6')]();}[_0x1be0('0x2')](_0x2fea11){this[_0x1be0('0x8')](_0x1be0('0x11'),_0x2fea11);}['createAnnotation'](_0x2b6f04){return new _0x32746a(_0x2b6f04);}['createAnnotationView'](_0x1385da,_0xb07c7d){return new _0xa11573(_0x1385da,_0xb07c7d);}[_0x1be0('0xb')](_0x353995){const _0xf8e3a6=new Set(this[_0x1be0('0x7')]);_0xf8e3a6[_0x1be0('0x9')](_0x353995),this[_0x1be0('0x7')]=_0xf8e3a6;}[_0x1be0('0xf')](_0x3a1753){const _0x4a83e4=new Set(this[_0x1be0('0x7')]);_0x4a83e4[_0x1be0('0xe')](_0x3a1753),this[_0x1be0('0x7')]=_0x4a83e4;}[_0x1be0('0x0')](){const _0x1ca9a6=this[_0x1be0('0x12')],_0x15eab0=this[_0x1be0('0x3')];function _0x37078d(_0x127730){const _0x338d91=_0x127730['source'];_0x338d91[_0x1be0('0x4')]&&!_0x15eab0[_0x1be0('0xa')](_0x338d91)?_0x15eab0['add'](_0x338d91):!_0x338d91[_0x1be0('0x4')]&&_0x15eab0[_0x1be0('0xa')](_0x338d91)&&_0x15eab0['remove'](_0x338d91);}this[_0x1be0('0x5')](_0x1ca9a6,_0x1be0('0x9'),(_0x5bb336,_0x5ed6fe)=>{_0x5ed6fe[_0x1be0('0x4')]&&_0x15eab0[_0x1be0('0x9')](_0x5ed6fe),this[_0x1be0('0x5')](_0x5ed6fe,_0x1be0('0xd'),_0x37078d);}),this[_0x1be0('0x5')](_0x1ca9a6,_0x1be0('0x13'),(_0x1a7d30,_0x2474a2)=>{_0x15eab0[_0x1be0('0xa')](_0x2474a2)&&_0x15eab0['remove'](_0x2474a2),this[_0x1be0('0x10')](_0x2474a2,_0x1be0('0xd'),_0x37078d);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1771=['has','register','hasActive','AnnotationsUIs','change:activeAnnotation','pluginName','deactivate','find','activeUIs','remove','plugins','annotationsuis-register-invalid-interface','delete','_visibleAnnotations','stopListening','annotationsuis-activate-missing-ui','set','activate','add','_assertAnnotationDoesNotBelongToMultipleUIs','annotationsuis-annotation-mismatch','switchTo','destroy','filter','function','collection','annotationsuis-register-already-registered','from','listenTo','_setSelectedAnnotations','_addActiveAnnotation','push','attach','isActive','setActiveAnnotation','_uisData','length','requires','activeAnnotations','detach','get','context','deactivateAll','_uis','_deactivateAllAnnotations'];(function(_0x2bcf04,_0x17711d){const _0x61d4d9=function(_0x25d091){while(--_0x25d091){_0x2bcf04['push'](_0x2bcf04['shift']());}};_0x61d4d9(++_0x17711d);}(_0x1771,0x11c));const _0x61d4=function(_0x2bcf04,_0x17711d){_0x2bcf04=_0x2bcf04-0x0;let _0x61d4d9=_0x1771[_0x2bcf04];return _0x61d4d9;};import{ContextPlugin as _0x2e6116}from'ckeditor5/src/core';import{CKEditorError as _0x37b069}from'ckeditor5/src/utils';import _0x389cba,{bindAnnotationCollections as _0x6370db}from'./annotationcollection';import _0x126a03 from'./annotations';export default class Y extends _0x2e6116{static get[_0x61d4('0x17')](){return[_0x126a03];}static get[_0x61d4('0x24')](){return _0x61d4('0x22');}constructor(_0x3c0e81){super(_0x3c0e81),this[_0x61d4('0x27')]=new Set(),this[_0x61d4('0x1d')]=new Map(),this[_0x61d4('0x15')]=new Map();}['init'](){const _0x347314=this[_0x61d4('0x1b')]['plugins']['get'](_0x126a03);this[_0x61d4('0xe')](_0x347314,'_activateAnnotation',(_0x52186f,_0x6cf6ed)=>{for(const _0xb77029 of this[_0x61d4('0x27')]){const _0x21af06=this[_0x61d4('0x1d')][_0x61d4('0x1a')](_0xb77029);(0x0,this[_0x61d4('0x15')][_0x61d4('0x1a')](_0xb77029)[_0x61d4('0x9')])(_0x6cf6ed)&&_0x21af06[_0x61d4('0x14')](_0x6cf6ed);}}),this[_0x61d4('0xe')](_0x347314,_0x61d4('0x1e'),()=>{for(const _0x50fba9 of this[_0x61d4('0x27')]){this['_uis'][_0x61d4('0x1a')](_0x50fba9)[_0x61d4('0x14')](null);}}),this[_0x61d4('0xe')](_0x347314[_0x61d4('0x2c')],'add',(_0x1bdcc8,_0x59e592)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x59e592);});}[_0x61d4('0x21')](){return this['activeUIs']['size']>0x0;}[_0x61d4('0x13')](_0x3d6fa8){return this[_0x61d4('0x27')][_0x61d4('0x1f')](_0x3d6fa8);}[_0x61d4('0x3')](_0x148b2a,_0x193ba5=()=>!0x0){const _0x3cb378=this[_0x61d4('0x1b')][_0x61d4('0x29')]['get'](_0x126a03);if(!this[_0x61d4('0x1d')]['has'](_0x148b2a))throw new _0x37b069(_0x61d4('0x1'),this,{'uiName':_0x148b2a});this[_0x61d4('0x13')](_0x148b2a)&&this[_0x61d4('0x25')](_0x148b2a),this[_0x61d4('0x27')][_0x61d4('0x4')](_0x148b2a);const _0x1f11bd=new _0x389cba(),_0x4d9ef4=_0x3cb378[_0x61d4('0x2c')];_0x6370db({'source':_0x4d9ef4,'target':_0x1f11bd,'filter':_0x193ba5}),this[_0x61d4('0x15')][_0x61d4('0x2')](_0x148b2a,{'collection':_0x1f11bd,'filter':_0x193ba5});const _0x13b4da=this['_uis'][_0x61d4('0x1a')](_0x148b2a);_0x13b4da[_0x61d4('0x12')](_0x1f11bd),this['listenTo'](_0x13b4da,_0x61d4('0x23'),(_0x52f0f9,_0x5d0035,_0xe70f3e,_0x225b39)=>{_0x225b39&&_0x3cb378['_removeActiveAnnotation'](_0x225b39),_0xe70f3e&&_0x3cb378[_0x61d4('0x10')](_0xe70f3e);});}[_0x61d4('0x25')](_0x1be775){this[_0x61d4('0x27')][_0x61d4('0x2b')](_0x1be775);const _0x2cbcd0=this[_0x61d4('0x1d')][_0x61d4('0x1a')](_0x1be775);_0x2cbcd0[_0x61d4('0x19')](),this[_0x61d4('0x0')](_0x2cbcd0),this[_0x61d4('0x15')][_0x61d4('0x1a')](_0x1be775)['collection'][_0x61d4('0x8')](),this[_0x61d4('0x15')]['delete'](_0x1be775);}[_0x61d4('0x7')](_0x494bbb){const _0x9042c2=this['context'][_0x61d4('0x29')]['get'](_0x126a03),_0x3c98b1=Array[_0x61d4('0xd')](_0x9042c2[_0x61d4('0x18')])[0x0]||null;this[_0x61d4('0x1c')](),this[_0x61d4('0x3')](_0x494bbb);const _0x1d278b=this[_0x61d4('0x1d')][_0x61d4('0x1a')](_0x494bbb);_0x1d278b[_0x61d4('0x14')](_0x3c98b1),_0x1d278b[_0x61d4('0xf')]&&_0x3c98b1&&_0x1d278b[_0x61d4('0xf')]([_0x3c98b1]);}[_0x61d4('0x1c')](){for(const _0x465bea of this[_0x61d4('0x27')])this[_0x61d4('0x25')](_0x465bea);}[_0x61d4('0x20')](_0x16b95c,_0x4cd60e){if(this[_0x61d4('0x1d')][_0x61d4('0x1f')](_0x16b95c))throw new _0x37b069(_0x61d4('0xc'));if(_0x61d4('0xa')!=typeof _0x4cd60e[_0x61d4('0x12')]||_0x61d4('0xa')!=typeof _0x4cd60e[_0x61d4('0x19')]||'function'!=typeof _0x4cd60e[_0x61d4('0x14')])throw new _0x37b069(_0x61d4('0x2a'),null);this['_uis'][_0x61d4('0x2')](_0x16b95c,_0x4cd60e);}['refilterAnnotations'](){const _0x455a46=this[_0x61d4('0x1b')][_0x61d4('0x29')][_0x61d4('0x1a')](_0x126a03)[_0x61d4('0xb')],_0x23be1b=new Map(),_0x2bac67=Array[_0x61d4('0xd')](this[_0x61d4('0x27')]);for(const _0x16c494 of this['activeUIs']){const _0x5a3f4e=this[_0x61d4('0x15')][_0x61d4('0x1a')](_0x16c494)[_0x61d4('0xb')];for(const _0x28b4c1 of _0x5a3f4e)_0x23be1b[_0x61d4('0x2')](_0x28b4c1,_0x16c494);}for(const _0x3dc0c5 of _0x455a46){const _0x5d80ce=_0x23be1b[_0x61d4('0x1a')](_0x3dc0c5);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3dc0c5);const _0x1d02b8=_0x2bac67[_0x61d4('0x26')](_0x91dfbd=>this[_0x61d4('0x15')]['get'](_0x91dfbd)[_0x61d4('0x9')](_0x3dc0c5));_0x5d80ce!==_0x1d02b8&&(_0x5d80ce&&this[_0x61d4('0x15')][_0x61d4('0x1a')](_0x5d80ce)[_0x61d4('0xb')][_0x61d4('0x28')](_0x3dc0c5),_0x1d02b8&&this[_0x61d4('0x15')][_0x61d4('0x1a')](_0x1d02b8)[_0x61d4('0xb')]['add'](_0x3dc0c5));}}['destroy'](){this[_0x61d4('0x1c')](),super[_0x61d4('0x8')]();}[_0x61d4('0x5')](_0x1b2b7b){const _0x2a75fc=[];for(const _0x52f625 of this[_0x61d4('0x27')]){(0x0,this[_0x61d4('0x15')]['get'](_0x52f625)[_0x61d4('0x9')])(_0x1b2b7b)&&_0x2a75fc[_0x61d4('0x11')](_0x52f625);}if(_0x2a75fc[_0x61d4('0x16')]>0x1)throw new _0x37b069(_0x61d4('0x6'),null,{'matchedUIs':_0x2a75fc,'annotationType':_0x1b2b7b['type']});}}
23
+ const _0x22d0=['filter','annotationsuis-activate-missing-ui','push','attach','requires','has','from','annotationsuis-register-already-registered','init','pluginName','_uisData','get','_uis','set','detach','setActiveAnnotation','add','_deactivateAllAnnotations','_setSelectedAnnotations','isActive','activate','destroy','_visibleAnnotations','change:activeAnnotation','_activateAnnotation','deactivate','stopListening','refilterAnnotations','_addActiveAnnotation','length','AnnotationsUIs','switchTo','size','_assertAnnotationDoesNotBelongToMultipleUIs','deactivateAll','activeUIs','collection','function','listenTo','plugins','delete','context'];(function(_0x1aab56,_0x22d012){const _0x2c5d94=function(_0x483b12){while(--_0x483b12){_0x1aab56['push'](_0x1aab56['shift']());}};_0x2c5d94(++_0x22d012);}(_0x22d0,0xd4));const _0x2c5d=function(_0x1aab56,_0x22d012){_0x1aab56=_0x1aab56-0x0;let _0x2c5d94=_0x22d0[_0x1aab56];return _0x2c5d94;};import{ContextPlugin as _0x5c6968}from'ckeditor5/src/core';import{CKEditorError as _0x20c69d}from'ckeditor5/src/utils';import _0x41e3e4,{bindAnnotationCollections as _0x505d13}from'./annotationcollection';import _0x15e37b from'./annotations';export default class I extends _0x5c6968{static get[_0x2c5d('0x2')](){return[_0x15e37b];}static get[_0x2c5d('0x7')](){return _0x2c5d('0x1c');}constructor(_0x1bb737){super(_0x1bb737),this[_0x2c5d('0x21')]=new Set(),this['_uis']=new Map(),this[_0x2c5d('0x8')]=new Map();}[_0x2c5d('0x6')](){const _0x38fd93=this[_0x2c5d('0x27')][_0x2c5d('0x25')]['get'](_0x15e37b);this[_0x2c5d('0x24')](_0x38fd93,_0x2c5d('0x16'),(_0x182303,_0x370bb3)=>{for(const _0x21355f of this[_0x2c5d('0x21')]){const _0x529e42=this[_0x2c5d('0xa')][_0x2c5d('0x9')](_0x21355f);(0x0,this[_0x2c5d('0x8')][_0x2c5d('0x9')](_0x21355f)[_0x2c5d('0x28')])(_0x370bb3)&&_0x529e42[_0x2c5d('0xd')](_0x370bb3);}}),this[_0x2c5d('0x24')](_0x38fd93,_0x2c5d('0xf'),()=>{for(const _0x4f2783 of this['activeUIs']){this[_0x2c5d('0xa')]['get'](_0x4f2783)[_0x2c5d('0xd')](null);}}),this[_0x2c5d('0x24')](_0x38fd93[_0x2c5d('0x14')],_0x2c5d('0xe'),(_0x3cfaa5,_0x2e3da9)=>{this[_0x2c5d('0x1f')](_0x2e3da9);});}['hasActive'](){return this[_0x2c5d('0x21')][_0x2c5d('0x1e')]>0x0;}['isActive'](_0x4d3b8e){return this[_0x2c5d('0x21')][_0x2c5d('0x3')](_0x4d3b8e);}['activate'](_0x4ce587,_0x6f673e=()=>!0x0){const _0x2480fe=this[_0x2c5d('0x27')]['plugins'][_0x2c5d('0x9')](_0x15e37b);if(!this[_0x2c5d('0xa')]['has'](_0x4ce587))throw new _0x20c69d(_0x2c5d('0x29'),this,{'uiName':_0x4ce587});this[_0x2c5d('0x11')](_0x4ce587)&&this[_0x2c5d('0x17')](_0x4ce587),this[_0x2c5d('0x21')][_0x2c5d('0xe')](_0x4ce587);const _0x58f459=new _0x41e3e4(),_0x36e579=_0x2480fe[_0x2c5d('0x14')];_0x505d13({'source':_0x36e579,'target':_0x58f459,'filter':_0x6f673e}),this[_0x2c5d('0x8')][_0x2c5d('0xb')](_0x4ce587,{'collection':_0x58f459,'filter':_0x6f673e});const _0x4b29cb=this[_0x2c5d('0xa')][_0x2c5d('0x9')](_0x4ce587);_0x4b29cb['attach'](_0x58f459),this[_0x2c5d('0x24')](_0x4b29cb,_0x2c5d('0x15'),(_0x5dd907,_0x31b865,_0x42b026,_0x435b58)=>{_0x435b58&&_0x2480fe['_removeActiveAnnotation'](_0x435b58),_0x42b026&&_0x2480fe[_0x2c5d('0x1a')](_0x42b026);});}[_0x2c5d('0x17')](_0xd7bab2){this[_0x2c5d('0x21')][_0x2c5d('0x26')](_0xd7bab2);const _0x198417=this[_0x2c5d('0xa')][_0x2c5d('0x9')](_0xd7bab2);_0x198417[_0x2c5d('0xc')](),this[_0x2c5d('0x18')](_0x198417),this[_0x2c5d('0x8')]['get'](_0xd7bab2)[_0x2c5d('0x22')][_0x2c5d('0x13')](),this[_0x2c5d('0x8')][_0x2c5d('0x26')](_0xd7bab2);}[_0x2c5d('0x1d')](_0x25dd41){const _0x106900=this['context'][_0x2c5d('0x25')][_0x2c5d('0x9')](_0x15e37b),_0x584d8a=Array[_0x2c5d('0x4')](_0x106900['activeAnnotations'])[0x0]||null;this[_0x2c5d('0x20')](),this[_0x2c5d('0x12')](_0x25dd41);const _0x15af2c=this['_uis']['get'](_0x25dd41);_0x15af2c['setActiveAnnotation'](_0x584d8a),_0x15af2c[_0x2c5d('0x10')]&&_0x584d8a&&_0x15af2c[_0x2c5d('0x10')]([_0x584d8a]);}[_0x2c5d('0x20')](){for(const _0x3557f7 of this[_0x2c5d('0x21')])this[_0x2c5d('0x17')](_0x3557f7);}['register'](_0x5d4e74,_0x26a303){if(this['_uis'][_0x2c5d('0x3')](_0x5d4e74))throw new _0x20c69d(_0x2c5d('0x5'));if(_0x2c5d('0x23')!=typeof _0x26a303[_0x2c5d('0x1')]||_0x2c5d('0x23')!=typeof _0x26a303[_0x2c5d('0xc')]||_0x2c5d('0x23')!=typeof _0x26a303[_0x2c5d('0xd')])throw new _0x20c69d('annotationsuis-register-invalid-interface',null);this[_0x2c5d('0xa')][_0x2c5d('0xb')](_0x5d4e74,_0x26a303);}[_0x2c5d('0x19')](){const _0x5f1991=this['context']['plugins'][_0x2c5d('0x9')](_0x15e37b)[_0x2c5d('0x22')],_0x381280=new Map(),_0x3bd8d7=Array[_0x2c5d('0x4')](this['activeUIs']);for(const _0x148516 of this['activeUIs']){const _0x35e586=this[_0x2c5d('0x8')][_0x2c5d('0x9')](_0x148516)[_0x2c5d('0x22')];for(const _0x2944b3 of _0x35e586)_0x381280[_0x2c5d('0xb')](_0x2944b3,_0x148516);}for(const _0x34276d of _0x5f1991){const _0x3c90f5=_0x381280[_0x2c5d('0x9')](_0x34276d);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x34276d);const _0x3dc1ca=_0x3bd8d7['find'](_0x798d0f=>this['_uisData'][_0x2c5d('0x9')](_0x798d0f)[_0x2c5d('0x28')](_0x34276d));_0x3c90f5!==_0x3dc1ca&&(_0x3c90f5&&this[_0x2c5d('0x8')]['get'](_0x3c90f5)[_0x2c5d('0x22')]['remove'](_0x34276d),_0x3dc1ca&&this[_0x2c5d('0x8')][_0x2c5d('0x9')](_0x3dc1ca)[_0x2c5d('0x22')][_0x2c5d('0xe')](_0x34276d));}}['destroy'](){this['deactivateAll'](),super[_0x2c5d('0x13')]();}[_0x2c5d('0x1f')](_0x5809a2){const _0x232588=[];for(const _0xfd2e36 of this[_0x2c5d('0x21')]){(0x0,this[_0x2c5d('0x8')][_0x2c5d('0x9')](_0xfd2e36)['filter'])(_0x5809a2)&&_0x232588[_0x2c5d('0x0')](_0xfd2e36);}if(_0x232588[_0x2c5d('0x1b')]>0x1)throw new _0x20c69d('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x232588,'annotationType':_0x5809a2['type']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1421=['listenTo','refresh','innerView','function','addSourceCollector','init','directChange','hasDomSelection','set','editorannotations-invalid-source-callback','editing','change:isFocused','remove','fire','refreshSelectedViews','getRanges','getByInnerView','collection','editor','push','model','uiUpdate','isCollapsed','_editorAnnotationsData','getOrderedSelectedAnnotations','containsRange','change:range','element','has','isReadOnly','EditorAnnotations','sort','get','add','map','annotation','range','from','plugins','_dataCollectors','isEqual','view','focusTracker','keys','selection','update','document'];(function(_0x4611c2,_0x1421b9){const _0x4d260c=function(_0xa9efca){while(--_0xa9efca){_0x4611c2['push'](_0x4611c2['shift']());}};_0x4d260c(++_0x1421b9);}(_0x1421,0x18a));const _0x4d26=function(_0x4611c2,_0x1421b9){_0x4611c2=_0x4611c2-0x0;let _0x4d260c=_0x1421[_0x4611c2];return _0x4d260c;};import{Plugin as _0x15a8a8}from'ckeditor5/src/core';import{CKEditorError as _0x9d48fc}from'ckeditor5/src/utils';import{debounce as _0x59adbf}from'lodash-es';import _0x3e3dc4 from'./annotations';export default class V extends _0x15a8a8{static get['requires'](){return[_0x3e3dc4];}static get['pluginName'](){return _0x4d26('0xc');}constructor(_0x38441b){super(_0x38441b),this[_0x4d26('0x15')]=new Set();}[_0x4d26('0x22')](){const _0x15f3c4=this[_0x4d26('0x0')],_0x426a5f=_0x15f3c4[_0x4d26('0x14')][_0x4d26('0xe')](_0x3e3dc4),_0x18cb3c=_0x15f3c4[_0x4d26('0x2')][_0x4d26('0x1c')][_0x4d26('0x1a')],_0xa20e82=_0x59adbf(()=>this[_0x4d26('0x2b')](),0xa);_0x18cb3c['on'](_0x4d26('0x8'),(_0x5d82b0,_0x43d9da)=>{_0x43d9da[_0x4d26('0x23')]&&(_0xa20e82['cancel'](),this['refreshSelectedViews']());}),this[_0x4d26('0x1d')](_0x15f3c4[_0x4d26('0x27')]['view']['document'],_0x4d26('0x28'),(_0x1c4368,_0x5b7dc6,_0x2b00b3)=>{_0x2b00b3&&_0xa20e82();}),this[_0x4d26('0x1d')](_0x15f3c4['ui'][_0x4d26('0x18')],_0x4d26('0x28'),(_0x31a3d6,_0x5e1555,_0x2909aa)=>{_0x2909aa||_0x15f3c4[_0x4d26('0xb')]||this['fire']('blur',{'isAnnotationTracked':_0xdd742e=>this[_0x4d26('0x5')][_0x4d26('0xa')](_0xdd742e['innerView'])});}),this[_0x4d26('0x1d')](this[_0x4d26('0x0')]['ui'],_0x4d26('0x1b'),()=>this['fire'](_0x4d26('0x3')));const _0x17aefd=new Set();this[_0x4d26('0x1d')](_0x426a5f[_0x4d26('0x2e')],'add',(_0x5e2160,_0x257c2c)=>{for(const _0x5c78f2 of this['_editorAnnotationsData'][_0x4d26('0x19')]())if(_0x5c78f2===_0x257c2c[_0x4d26('0x1f')]){_0x15f3c4['ui'][_0x4d26('0x18')][_0x4d26('0xf')](_0x257c2c[_0x4d26('0x17')][_0x4d26('0x9')]),_0x17aefd['add'](_0x257c2c[_0x4d26('0x17')]);break;}}),this[_0x4d26('0x1d')](_0x426a5f[_0x4d26('0x2e')],_0x4d26('0x29'),(_0x821fb8,_0x57d102)=>{_0x17aefd[_0x4d26('0xa')](_0x57d102[_0x4d26('0x17')])&&(_0x15f3c4['ui'][_0x4d26('0x18')][_0x4d26('0x29')](_0x57d102[_0x4d26('0x17')][_0x4d26('0x9')]),_0x17aefd['delete'](_0x57d102[_0x4d26('0x17')]));});}[_0x4d26('0x24')](){return this[_0x4d26('0x0')]['editing'][_0x4d26('0x17')][_0x4d26('0x24')];}[_0x4d26('0x21')](_0x283e65){if(_0x4d26('0x20')!=typeof _0x283e65)throw new _0x9d48fc(_0x4d26('0x26'));this[_0x4d26('0x15')][_0x4d26('0xf')](_0x283e65);}[_0x4d26('0x2b')](){this[_0x4d26('0x2a')](_0x4d26('0x1e'));}[_0x4d26('0x6')]({activeAnnotation:_0x453af7,annotations:_0x2f2035}){const _0x1b6ebb=[],_0x351aab=this[_0x4d26('0x0')][_0x4d26('0x2')][_0x4d26('0x1c')]['selection'],_0x21c9e8=Array[_0x4d26('0x13')](_0x351aab[_0x4d26('0x2c')]());for(const [_0x125a7f,_0x4c7b4b]of this[_0x4d26('0x5')]){const _0x4bd058=_0x1f9e1a(_0x4c7b4b),_0x2b2922=_0x2f2035[_0x4d26('0x2d')](_0x125a7f);_0x4bd058&&_0x2b2922&&_0x1b6ebb[_0x4d26('0x1')]({'annotation':_0x2b2922,'range':_0x4bd058});}function _0x1f9e1a(_0x4a0849){for(const _0x3e9234 of _0x4a0849)for(const _0x202c79 of _0x21c9e8)if(_0x3e9234[_0x4d26('0x7')](_0x202c79,!_0x351aab[_0x4d26('0x4')]))return _0x3e9234;return null;}return _0x1b6ebb[_0x4d26('0xd')]((_0x1d610c,_0x14b525)=>{const _0x403e90=_0x1d610c[_0x4d26('0x12')],_0x214ed9=_0x14b525[_0x4d26('0x12')];if(!_0x403e90[_0x4d26('0x16')](_0x214ed9)){if(_0x403e90['containsRange'](_0x214ed9,!0x0))return 0x1;if(_0x214ed9['containsRange'](_0x403e90,!0x0))return-0x1;}return _0x1d610c[_0x4d26('0x11')]==_0x453af7?-0x1:_0x14b525[_0x4d26('0x11')]==_0x453af7?0x1:0x0;})[_0x4d26('0x10')](_0x236e80=>_0x236e80[_0x4d26('0x11')]);}get[_0x4d26('0x5')](){const _0x3c8f5b=new Map();for(const _0x46f1d3 of Array[_0x4d26('0x13')](this['_dataCollectors']))for(const [_0x1a230f,_0x108079]of _0x46f1d3())_0x3c8f5b[_0x4d26('0x25')](_0x1a230f,_0x108079);return _0x3c8f5b;}}
23
+ const _0x2042=['init','containsRange','get','_editorAnnotationsData','refreshSelectedViews','editor','has','uiUpdate','from','view','editing','selection','keys','addSourceCollector','sort','remove','delete','map','document','focusTracker','innerView','getRanges','blur','isCollapsed','collection','fire','editorannotations-invalid-source-callback','isEqual','directChange','listenTo','isReadOnly','refresh','change:isFocused','getOrderedSelectedAnnotations','update','function','annotation','range','add','pluginName','requires','set','model','element','change:range','EditorAnnotations','getByInnerView','_dataCollectors','push','hasDomSelection'];(function(_0x287f2,_0x204281){const _0x5740b8=function(_0x45d309){while(--_0x45d309){_0x287f2['push'](_0x287f2['shift']());}};_0x5740b8(++_0x204281);}(_0x2042,0x64));const _0x5740=function(_0x287f2,_0x204281){_0x287f2=_0x287f2-0x0;let _0x5740b8=_0x2042[_0x287f2];return _0x5740b8;};import{Plugin as _0x4a5851}from'ckeditor5/src/core';import{CKEditorError as _0x2863d4}from'ckeditor5/src/utils';import{debounce as _0x160f76}from'lodash-es';import _0x29de9b from'./annotations';export default class k extends _0x4a5851{static get[_0x5740('0x28')](){return[_0x29de9b];}static get[_0x5740('0x27')](){return _0x5740('0x2d');}constructor(_0x3a9e75){super(_0x3a9e75),this[_0x5740('0x2f')]=new Set();}[_0x5740('0x0')](){const _0x547a4b=this['editor'],_0x2e1561=_0x547a4b['plugins'][_0x5740('0x2')](_0x29de9b),_0x267e38=_0x547a4b['model'][_0x5740('0x12')][_0x5740('0xb')],_0x5c7edb=_0x160f76(()=>this[_0x5740('0x4')](),0xa);_0x267e38['on'](_0x5740('0x2c'),(_0x279284,_0x237b31)=>{_0x237b31[_0x5740('0x1c')]&&(_0x5c7edb['cancel'](),this[_0x5740('0x4')]());}),this['listenTo'](_0x547a4b['editing']['view']['document'],'change:isFocused',(_0x555f91,_0x58dab3,_0x4bc2d7)=>{_0x4bc2d7&&_0x5c7edb();}),this[_0x5740('0x1d')](_0x547a4b['ui'][_0x5740('0x13')],_0x5740('0x20'),(_0x23aa2a,_0x5227b6,_0x27616e)=>{_0x27616e||_0x547a4b[_0x5740('0x1e')]||this[_0x5740('0x19')](_0x5740('0x16'),{'isAnnotationTracked':_0x40a5e2=>this['_editorAnnotationsData'][_0x5740('0x6')](_0x40a5e2['innerView'])});}),this['listenTo'](this[_0x5740('0x5')]['ui'],_0x5740('0x22'),()=>this[_0x5740('0x19')](_0x5740('0x7')));const _0x1d6c37=new Set();this[_0x5740('0x1d')](_0x2e1561[_0x5740('0x18')],'add',(_0x12723d,_0x123d47)=>{for(const _0x430305 of this[_0x5740('0x3')][_0x5740('0xc')]())if(_0x430305===_0x123d47[_0x5740('0x14')]){_0x547a4b['ui'][_0x5740('0x13')][_0x5740('0x26')](_0x123d47[_0x5740('0x9')]['element']),_0x1d6c37[_0x5740('0x26')](_0x123d47[_0x5740('0x9')]);break;}}),this[_0x5740('0x1d')](_0x2e1561[_0x5740('0x18')],_0x5740('0xf'),(_0x4de0e5,_0x37ae72)=>{_0x1d6c37['has'](_0x37ae72[_0x5740('0x9')])&&(_0x547a4b['ui'][_0x5740('0x13')][_0x5740('0xf')](_0x37ae72[_0x5740('0x9')][_0x5740('0x2b')]),_0x1d6c37[_0x5740('0x10')](_0x37ae72['view']));});}[_0x5740('0x31')](){return this[_0x5740('0x5')][_0x5740('0xa')]['view'][_0x5740('0x31')];}[_0x5740('0xd')](_0x5e8846){if(_0x5740('0x23')!=typeof _0x5e8846)throw new _0x2863d4(_0x5740('0x1a'));this[_0x5740('0x2f')][_0x5740('0x26')](_0x5e8846);}[_0x5740('0x4')](){this[_0x5740('0x19')](_0x5740('0x1f'));}[_0x5740('0x21')]({activeAnnotation:_0x149018,annotations:_0x5b48c5}){const _0x99bad2=[],_0x3783ba=this[_0x5740('0x5')][_0x5740('0x2a')]['document']['selection'],_0x4d3c33=Array[_0x5740('0x8')](_0x3783ba[_0x5740('0x15')]());for(const [_0x59583a,_0x4ce31b]of this[_0x5740('0x3')]){const _0x1917ef=_0x55412f(_0x4ce31b),_0x68162e=_0x5b48c5[_0x5740('0x2e')](_0x59583a);_0x1917ef&&_0x68162e&&_0x99bad2[_0x5740('0x30')]({'annotation':_0x68162e,'range':_0x1917ef});}function _0x55412f(_0x64b001){for(const _0x5c4332 of _0x64b001)for(const _0x25391e of _0x4d3c33)if(_0x5c4332[_0x5740('0x1')](_0x25391e,!_0x3783ba[_0x5740('0x17')]))return _0x5c4332;return null;}return _0x99bad2[_0x5740('0xe')]((_0x509091,_0x3d4f16)=>{const _0x1e96f1=_0x509091[_0x5740('0x25')],_0x470545=_0x3d4f16['range'];if(!_0x1e96f1[_0x5740('0x1b')](_0x470545)){if(_0x1e96f1['containsRange'](_0x470545,!0x0))return 0x1;if(_0x470545[_0x5740('0x1')](_0x1e96f1,!0x0))return-0x1;}return _0x509091[_0x5740('0x24')]==_0x149018?-0x1:_0x3d4f16[_0x5740('0x24')]==_0x149018?0x1:0x0;})[_0x5740('0x11')](_0x55f440=>_0x55f440[_0x5740('0x24')]);}get[_0x5740('0x3')](){const _0x3a4fa4=new Map();for(const _0x3fc842 of Array[_0x5740('0x8')](this[_0x5740('0x2f')]))for(const [_0x11f990,_0x454741]of _0x3fc842())_0x3a4fa4[_0x5740('0x29')](_0x11f990,_0x454741);return _0x3a4fa4;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3396=['attach','_balloon','getByView','isFocused','isAttached','delete','mousedown','has','listenTo','showStack','Esc','init','editor','visibleView','get','includes','change:visibleView','refresh','context','inlineannotations-not-allowed-with-context','_addAnnotationToBalloon','afterInit','requires','hasActive','addObserver','target','plugins','_annotations','stopListening','document','update','remove','focus','_addedAnnotations','getSelection','inlineannotations-attach-already-attached','targetRect','keystrokes','set','detach','setActiveAnnotation','editing','activeAnnotation','focusTracker','isActive','bind','updatePosition','destroy','selection','getRangeAt','view','hasView','register','pluginName','_removeAnnotationFromBalloon','blur','_selectedAnnotations','_manuallyClosed','switchTo','InlineAnnotations','add','_setSelectedAnnotations'];(function(_0x378820,_0x3396a9){const _0x1aa174=function(_0x132818){while(--_0x132818){_0x378820['push'](_0x378820['shift']());}};_0x1aa174(++_0x3396a9);}(_0x3396,0x14d));const _0x1aa1=function(_0x378820,_0x3396a9){_0x378820=_0x378820-0x0;let _0x1aa174=_0x3396[_0x378820];return _0x1aa174;};import{Plugin as _0x50ef1d}from'ckeditor5/src/core';import _0x3ddb93 from'./annotationsuis';import _0x27b9c8 from'./editorannotations';import{ContextualBalloon as _0x313f07}from'ckeditor5/src/ui';import{MouseObserver as _0x1b0bf3}from'ckeditor5/src/engine';import{CKEditorError as _0x359701}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x50ef1d{static get[_0x1aa1('0x3d')](){return[_0x27b9c8,_0x313f07,_0x3ddb93];}static get[_0x1aa1('0x1e')](){return _0x1aa1('0x24');}constructor(_0x4a052f){super(_0x4a052f),_0x4a052f[_0x1aa1('0x12')][_0x1aa1('0x1b')][_0x1aa1('0x1')](_0x1b0bf3),this[_0x1aa1('0x2b')]=!0x1,this[_0x1aa1('0xf')](_0x1aa1('0x13'),null),this[_0x1aa1('0x4')]=null,this[_0x1aa1('0x22')]=new Set(),this[_0x1aa1('0x28')]=_0x4a052f[_0x1aa1('0x3')][_0x1aa1('0x35')](_0x313f07),this[_0x1aa1('0xa')]=new Set(),this[_0x1aa1('0x21')]=[];}[_0x1aa1('0x32')](){const _0x42a92c=this['editor'][_0x1aa1('0x3')][_0x1aa1('0x35')](_0x3ddb93);_0x42a92c[_0x1aa1('0x39')]===this[_0x1aa1('0x33')]&&(_0x42a92c[_0x1aa1('0x1d')]('inline',this),this[_0x1aa1('0x33')][_0x1aa1('0xe')]['set'](_0x1aa1('0x31'),(_0x371adb,_0x11c624)=>{const _0x3d25d0=this['_balloon'];if(this[_0x1aa1('0x2b')]&&_0x3d25d0[_0x1aa1('0x34')]){const _0x44e13b=this[_0x1aa1('0x4')][_0x1aa1('0x29')](_0x3d25d0[_0x1aa1('0x34')]);this[_0x1aa1('0x22')]['add'](_0x44e13b),this[_0x1aa1('0x1f')](_0x44e13b),_0x11c624();}}));}[_0x1aa1('0x3c')](){const _0x3aa2b6=this[_0x1aa1('0x33')][_0x1aa1('0x3')][_0x1aa1('0x35')](_0x3ddb93);_0x3aa2b6[_0x1aa1('0x39')]===this[_0x1aa1('0x33')]&&(_0x3aa2b6[_0x1aa1('0x0')]()||_0x3aa2b6[_0x1aa1('0x23')]('inline'));}[_0x1aa1('0x11')](_0x19a911){_0x19a911!==this[_0x1aa1('0x13')]&&(this[_0x1aa1('0x13')]&&(this[_0x1aa1('0x13')]['isActive']=!0x1),_0x19a911&&this[_0x1aa1('0x33')]['ui'][_0x1aa1('0x14')][_0x1aa1('0x2a')]&&(this[_0x1aa1('0x3b')](_0x19a911,!0x0),_0x19a911[_0x1aa1('0x15')]=!0x0),_0x19a911||this[_0x1aa1('0x26')]([]),this['activeAnnotation']=_0x19a911);}[_0x1aa1('0x27')](_0x523145){this[_0x1aa1('0x4')]=_0x523145;const _0x1e733d=this[_0x1aa1('0x33')][_0x1aa1('0x3')][_0x1aa1('0x35')](_0x3ddb93),_0x16a6b0=this[_0x1aa1('0x28')];if(this['isAttached'])throw new _0x359701(_0x1aa1('0xc'),this);if(_0x1e733d[_0x1aa1('0x39')]!==this[_0x1aa1('0x33')])throw new _0x359701(_0x1aa1('0x3a'),this);const _0xa2e466=this['editor']['plugins'][_0x1aa1('0x35')]('EditorAnnotations');this[_0x1aa1('0x2f')](_0xa2e466,_0x1aa1('0x38'),function(){const _0x330cbf=_0xa2e466['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x1aa1('0x4')]});this[_0x1aa1('0x26')](_0x330cbf),this['setActiveAnnotation'](_0x330cbf[0x0]||null);}[_0x1aa1('0x16')](this)),this['listenTo'](_0xa2e466,_0x1aa1('0x20'),(_0x14da7d,{isAnnotationTracked:_0xcde918})=>{this[_0x1aa1('0x13')]&&_0xcde918(this[_0x1aa1('0x13')])&&(this[_0x1aa1('0x26')]([]),this['setActiveAnnotation'](null));}),this[_0x1aa1('0x2f')](this[_0x1aa1('0x33')]['ui'][_0x1aa1('0x14')],'change:isFocused',(_0x363942,_0x7168de,_0x58f2d8)=>{_0x58f2d8||this[_0x1aa1('0x11')](null);}),this[_0x1aa1('0x2f')](_0x523145,'remove',(_0x47506c,_0x9cc996)=>{this[_0x1aa1('0x1f')](_0x9cc996),_0x9cc996===this[_0x1aa1('0x13')]&&this[_0x1aa1('0x11')](null);}),this[_0x1aa1('0x2f')](_0x16a6b0,_0x1aa1('0x37'),(_0x1bfeaf,_0x16eced,_0x544133,_0x4e3939)=>{if(_0x4e3939&&this['stopListening'](_0x4e3939),!_0x544133||!_0x523145['getByView'](_0x544133))return;const _0x506383=_0x523145[_0x1aa1('0x29')](_0x544133);this[_0x1aa1('0x2f')](_0x544133,'change:height',()=>{_0x16a6b0[_0x1aa1('0x17')]();}),this['listenTo'](_0x544133,'Esc',()=>{this[_0x1aa1('0x22')][_0x1aa1('0x25')](_0x506383),this[_0x1aa1('0x1f')](_0x506383),this[_0x1aa1('0x33')][_0x1aa1('0x12')]['view'][_0x1aa1('0x9')]();}),this['activeAnnotation']!==_0x506383&&this['setActiveAnnotation'](_0x506383);}),this[_0x1aa1('0x2f')](this[_0x1aa1('0x33')]['ui'],_0x1aa1('0x7'),()=>{_0x16a6b0[_0x1aa1('0x34')]&&(_0x523145['getByView'](_0x16a6b0[_0x1aa1('0x34')])&&_0x16a6b0[_0x1aa1('0x17')]());}),this['listenTo'](this[_0x1aa1('0x33')][_0x1aa1('0x12')][_0x1aa1('0x1b')][_0x1aa1('0x6')],_0x1aa1('0x2d'),()=>{this[_0x1aa1('0x22')]['clear']();}),this[_0x1aa1('0x33')][_0x1aa1('0x12')][_0x1aa1('0x1b')]['document'][_0x1aa1('0x19')]['editableElement']&&this[_0x1aa1('0x33')][_0x1aa1('0x12')][_0x1aa1('0x1b')][_0x1aa1('0x9')](),this[_0x1aa1('0x2b')]=!0x0;}[_0x1aa1('0x10')](){if(!this['isAttached'])throw new _0x359701('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x365e6b of this[_0x1aa1('0xa')])this[_0x1aa1('0x1f')](_0x365e6b);this[_0x1aa1('0x5')](),this[_0x1aa1('0x2b')]=!0x1;}[_0x1aa1('0x18')](){this['isAttached']&&this[_0x1aa1('0x10')]();}[_0x1aa1('0x26')](_0x2b0f3c){const _0x2ccfc6=this[_0x1aa1('0x21')];for(const _0x887737 of _0x2ccfc6)_0x2b0f3c[_0x1aa1('0x36')](_0x887737)||this['_manuallyClosed'][_0x1aa1('0x2c')](_0x887737);for(const _0xc1ef31 of this[_0x1aa1('0x4')])_0x2b0f3c[_0x1aa1('0x36')](_0xc1ef31)||this['_removeAnnotationFromBalloon'](_0xc1ef31);if(this[_0x1aa1('0x33')]['ui'][_0x1aa1('0x14')][_0x1aa1('0x2a')])for(const _0xa395cb of _0x2b0f3c)this[_0x1aa1('0x3b')](_0xa395cb);this[_0x1aa1('0x21')]=_0x2b0f3c;}['_addAnnotationToBalloon'](_0x4de5c5,_0x454de9){this[_0x1aa1('0x22')][_0x1aa1('0x2e')](_0x4de5c5)||(this[_0x1aa1('0xa')][_0x1aa1('0x2e')](_0x4de5c5)||this[_0x1aa1('0x28')][_0x1aa1('0x1c')](_0x4de5c5[_0x1aa1('0x1b')])||(this[_0x1aa1('0xa')][_0x1aa1('0x25')](_0x4de5c5),this[_0x1aa1('0x28')][_0x1aa1('0x25')]({'stackId':_0x4de5c5[_0x1aa1('0x1b')]['id'],'view':_0x4de5c5['view'],'position':{'target':()=>_0x4de5c5[_0x1aa1('0x2')]||_0x4de5c5[_0x1aa1('0xd')]||document[_0x1aa1('0xb')]()[_0x1aa1('0x1a')](0x0)}})),_0x454de9&&this[_0x1aa1('0x28')][_0x1aa1('0x30')](_0x4de5c5[_0x1aa1('0x1b')]['id']));}[_0x1aa1('0x1f')](_0x20a9ee){this[_0x1aa1('0xa')]['has'](_0x20a9ee)&&this['_balloon'][_0x1aa1('0x1c')](_0x20a9ee['view'])&&(this[_0x1aa1('0xa')][_0x1aa1('0x2c')](_0x20a9ee),this['_balloon'][_0x1aa1('0x8')](_0x20a9ee[_0x1aa1('0x1b')]));}}
23
+ const _0x2e82=['refresh','targetRect','delete','view','Esc','editableElement','stopListening','inlineannotations-not-allowed-with-context','InlineAnnotations','inlineannotations-attach-already-attached','_removeAnnotationFromBalloon','_addAnnotationToBalloon','change:isFocused','_selectedAnnotations','includes','register','addObserver','inlineannotations-detach-not-attached','set','get','getByView','hasActive','update','switchTo','isFocused','has','isAttached','showStack','change:visibleView','annotations','blur','_manuallyClosed','listenTo','context','attach','hasView','_balloon','clear','_setSelectedAnnotations','document','focus','getSelection','focusTracker','editor','init','visibleView','change:height','EditorAnnotations','add','editing','remove','target','setActiveAnnotation','inline','isActive','destroy','plugins','keystrokes','detach','_addedAnnotations','selection','bind','activeAnnotation','requires','updatePosition'];(function(_0x37ef3a,_0x2e82f8){const _0x579209=function(_0xd8fc4c){while(--_0xd8fc4c){_0x37ef3a['push'](_0x37ef3a['shift']());}};_0x579209(++_0x2e82f8);}(_0x2e82,0x14f));const _0x5792=function(_0x37ef3a,_0x2e82f8){_0x37ef3a=_0x37ef3a-0x0;let _0x579209=_0x2e82[_0x37ef3a];return _0x579209;};import{Plugin as _0x4f39d3}from'ckeditor5/src/core';import _0x43122b from'./annotationsuis';import _0x50c7c9 from'./editorannotations';import{ContextualBalloon as _0x1d4ae7}from'ckeditor5/src/ui';import{MouseObserver as _0x15145a}from'ckeditor5/src/engine';import{CKEditorError as _0x457991}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x4f39d3{static get[_0x5792('0x35')](){return[_0x50c7c9,_0x1d4ae7,_0x43122b];}static get['pluginName'](){return _0x5792('0x3f');}constructor(_0x48c18d){super(_0x48c18d),_0x48c18d[_0x5792('0x27')][_0x5792('0x3a')][_0x5792('0x6')](_0x15145a),this[_0x5792('0x10')]=!0x1,this['set'](_0x5792('0x34'),null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x48c18d['plugins'][_0x5792('0x9')](_0x1d4ae7),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[];}[_0x5792('0x22')](){const _0x49b470=this['editor'][_0x5792('0x2e')][_0x5792('0x9')](_0x43122b);_0x49b470[_0x5792('0x17')]===this[_0x5792('0x21')]&&(_0x49b470[_0x5792('0x5')](_0x5792('0x2b'),this),this[_0x5792('0x21')][_0x5792('0x2f')][_0x5792('0x8')]('Esc',(_0x147dc7,_0x320682)=>{const _0x418249=this[_0x5792('0x1a')];if(this[_0x5792('0x10')]&&_0x418249['visibleView']){const _0x364cff=this['annotations']['getByView'](_0x418249[_0x5792('0x23')]);this[_0x5792('0x15')]['add'](_0x364cff),this[_0x5792('0x0')](_0x364cff),_0x320682();}}));}['afterInit'](){const _0x2c2a09=this['editor'][_0x5792('0x2e')]['get'](_0x43122b);_0x2c2a09[_0x5792('0x17')]===this[_0x5792('0x21')]&&(_0x2c2a09[_0x5792('0xb')]()||_0x2c2a09[_0x5792('0xd')]('inline'));}[_0x5792('0x2a')](_0x3ad36a){_0x3ad36a!==this[_0x5792('0x34')]&&(this[_0x5792('0x34')]&&(this[_0x5792('0x34')]['isActive']=!0x1),_0x3ad36a&&this[_0x5792('0x21')]['ui'][_0x5792('0x20')][_0x5792('0xe')]&&(this[_0x5792('0x1')](_0x3ad36a,!0x0),_0x3ad36a[_0x5792('0x2c')]=!0x0),_0x3ad36a||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x3ad36a);}[_0x5792('0x18')](_0x2f034a){this[_0x5792('0x13')]=_0x2f034a;const _0x29c71d=this['editor'][_0x5792('0x2e')][_0x5792('0x9')](_0x43122b),_0x45cb42=this['_balloon'];if(this[_0x5792('0x10')])throw new _0x457991(_0x5792('0x40'),this);if(_0x29c71d[_0x5792('0x17')]!==this[_0x5792('0x21')])throw new _0x457991(_0x5792('0x3e'),this);const _0x1f66df=this[_0x5792('0x21')][_0x5792('0x2e')]['get'](_0x5792('0x25'));this[_0x5792('0x16')](_0x1f66df,_0x5792('0x37'),function(){const _0x55aae8=_0x1f66df['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x5792('0x13')]});this[_0x5792('0x1c')](_0x55aae8),this[_0x5792('0x2a')](_0x55aae8[0x0]||null);}[_0x5792('0x33')](this)),this[_0x5792('0x16')](_0x1f66df,_0x5792('0x14'),(_0x1146ed,{isAnnotationTracked:_0x5d1940})=>{this[_0x5792('0x34')]&&_0x5d1940(this[_0x5792('0x34')])&&(this[_0x5792('0x1c')]([]),this['setActiveAnnotation'](null));}),this[_0x5792('0x16')](this[_0x5792('0x21')]['ui'][_0x5792('0x20')],_0x5792('0x2'),(_0x594fc7,_0x4fae53,_0x36f1a9)=>{_0x36f1a9||this[_0x5792('0x2a')](null);}),this['listenTo'](_0x2f034a,_0x5792('0x28'),(_0x352298,_0x86ee90)=>{this[_0x5792('0x0')](_0x86ee90),_0x86ee90===this[_0x5792('0x34')]&&this[_0x5792('0x2a')](null);}),this[_0x5792('0x16')](_0x45cb42,_0x5792('0x12'),(_0x5134fc,_0x32e76e,_0x6a230b,_0x8463d5)=>{if(_0x8463d5&&this[_0x5792('0x3d')](_0x8463d5),!_0x6a230b||!_0x2f034a[_0x5792('0xa')](_0x6a230b))return;const _0x4e1401=_0x2f034a[_0x5792('0xa')](_0x6a230b);this['listenTo'](_0x6a230b,_0x5792('0x24'),()=>{_0x45cb42['updatePosition']();}),this['listenTo'](_0x6a230b,_0x5792('0x3b'),()=>{this[_0x5792('0x15')]['add'](_0x4e1401),this[_0x5792('0x0')](_0x4e1401),this[_0x5792('0x21')][_0x5792('0x27')][_0x5792('0x3a')][_0x5792('0x1e')]();}),this[_0x5792('0x34')]!==_0x4e1401&&this[_0x5792('0x2a')](_0x4e1401);}),this[_0x5792('0x16')](this[_0x5792('0x21')]['ui'],_0x5792('0xc'),()=>{_0x45cb42[_0x5792('0x23')]&&(_0x2f034a[_0x5792('0xa')](_0x45cb42[_0x5792('0x23')])&&_0x45cb42[_0x5792('0x36')]());}),this[_0x5792('0x16')](this[_0x5792('0x21')][_0x5792('0x27')]['view']['document'],'mousedown',()=>{this[_0x5792('0x15')][_0x5792('0x1b')]();}),this[_0x5792('0x21')][_0x5792('0x27')][_0x5792('0x3a')][_0x5792('0x1d')][_0x5792('0x32')][_0x5792('0x3c')]&&this[_0x5792('0x21')][_0x5792('0x27')][_0x5792('0x3a')][_0x5792('0x1e')](),this['isAttached']=!0x0;}[_0x5792('0x30')](){if(!this[_0x5792('0x10')])throw new _0x457991(_0x5792('0x7'),this);this[_0x5792('0x2a')](null);for(const _0x4c2e8f of this[_0x5792('0x31')])this[_0x5792('0x0')](_0x4c2e8f);this[_0x5792('0x3d')](),this[_0x5792('0x10')]=!0x1,this['annotations']=null;}[_0x5792('0x2d')](){this[_0x5792('0x10')]&&this[_0x5792('0x30')]();}[_0x5792('0x1c')](_0x1fe0f1){const _0x11d9eb=this[_0x5792('0x3')];for(const _0x3a7c72 of _0x11d9eb)_0x1fe0f1[_0x5792('0x4')](_0x3a7c72)||this[_0x5792('0x15')][_0x5792('0x39')](_0x3a7c72);for(const _0x519686 of this[_0x5792('0x13')])_0x1fe0f1[_0x5792('0x4')](_0x519686)||this['_removeAnnotationFromBalloon'](_0x519686);if(this[_0x5792('0x21')]['ui']['focusTracker'][_0x5792('0xe')])for(const _0x3d85df of _0x1fe0f1)this[_0x5792('0x1')](_0x3d85df);this[_0x5792('0x3')]=_0x1fe0f1;}['_addAnnotationToBalloon'](_0x1cbda2,_0x41c569){this[_0x5792('0x15')][_0x5792('0xf')](_0x1cbda2)||(this['_addedAnnotations']['has'](_0x1cbda2)||this[_0x5792('0x1a')][_0x5792('0x19')](_0x1cbda2[_0x5792('0x3a')])||(this[_0x5792('0x31')][_0x5792('0x26')](_0x1cbda2),this[_0x5792('0x1a')]['add']({'stackId':_0x1cbda2['view']['id'],'view':_0x1cbda2['view'],'position':{'target':()=>_0x1cbda2[_0x5792('0x29')]||_0x1cbda2[_0x5792('0x38')]||document[_0x5792('0x1f')]()['getRangeAt'](0x0)}})),_0x41c569&&this[_0x5792('0x1a')][_0x5792('0x11')](_0x1cbda2[_0x5792('0x3a')]['id']));}[_0x5792('0x0')](_0x6b5add){this['_addedAnnotations'][_0x5792('0xf')](_0x6b5add)&&this[_0x5792('0x1a')][_0x5792('0x19')](_0x6b5add[_0x5792('0x3a')])&&(this['_addedAnnotations'][_0x5792('0x39')](_0x6b5add),this[_0x5792('0x1a')][_0x5792('0x28')](_0x6b5add[_0x5792('0x3a')]));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4109=['bodyCollection','_detachListeners','isVisible','_refreshPositioning','preventClosingBalloon','EditorAnnotations','length','_integrateWithEditorAnnotations','Esc','blur','keyCode','_attachToContainer','_detachFromContainer','context','has','refresh','_updateBalloonPosition','first','execute','mousedown','_hideBalloon','isAttached','view','change:container','remove','off','southArrowNorth','from','resize','editors','element','_throttledRefreshPositioning','pin','detach','get','addEventListener','getSidebarItemView','unpin','_showBalloon','register','narrowSidebar','detachFromDom','rearrange','focus','cancel','stop','setActiveAnnotation','_domEmitter','clear','delete','narrowsidebar-attach-already-attached','_attachListeners','locale','_setSelectedAnnotations','_editorAnnotations','_annotations','_selectedAnnotations','getByView','set','hasDomSelection','removeEventListener','_destroyEditorAnnotationsIntegration','values','includes','uiUpdate','refreshPositioning','add','attach','type','init','listenTo','attachToDom','northArrowSouthWest','_annotationToNarrowView','set:container','target','plugins','activeAnnotation','destroy','isDirty','northArrowSouth','stopListening','content','_manuallyClosedAnnotationViews','pluginName','getOrderedSelectedAnnotations','balloonPanelView','bind','contains'];(function(_0x2b08ca,_0x4109ef){const _0x149e60=function(_0x47c522){while(--_0x47c522){_0x2b08ca['push'](_0x2b08ca['shift']());}};_0x149e60(++_0x4109ef);}(_0x4109,0x118));const _0x149e=function(_0x2b08ca,_0x4109ef){_0x2b08ca=_0x2b08ca-0x0;let _0x149e60=_0x4109[_0x2b08ca];return _0x149e60;};import{ContextPlugin as _0x41d2a7}from'ckeditor5/src/core';import _0x25ca17 from'./annotationsuis';import _0x3730a4 from'./sidebar';import _0xddd155 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x344a29,BodyCollection as _0x394ed0}from'ckeditor5/src/ui';import{CKEditorError as _0x2a189d,DomEmitterMixin as _0xbe4cda,keyCodes as _0x20d6be,Collection as _0x2da181}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x26e246}from'lodash-es';export default class s extends _0x41d2a7{static get['requires'](){return[_0x3730a4,_0x25ca17];}static get[_0x149e('0x47')](){return'NarrowSidebar';}constructor(_0x20a24b){super(_0x20a24b),this[_0x149e('0x8')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x149e('0x22')]=Object['create'](_0xbe4cda),this['_annotationToNarrowView']=new Map(),this[_0x149e('0x2d')](_0x149e('0x40'),null),this['_annotations']=null,this[_0x149e('0x2b')]=[],this['_editorAnnotations']=new _0x2da181(),this['_throttledRefreshPositioning']=_0x26e246(()=>{this[_0x149e('0x4f')]();},0x190,{'leading':!0x1});}[_0x149e('0x38')](){this[_0x149e('0x0')][_0x149e('0x3f')][_0x149e('0x15')](_0x25ca17)[_0x149e('0x1a')](_0x149e('0x1b'),this),this[_0x149e('0x4c')]=new _0x394ed0(this[_0x149e('0x0')][_0x149e('0x27')]),this[_0x149e('0x49')]=new _0x344a29(this[_0x149e('0x0')][_0x149e('0x27')]),this['bodyCollection'][_0x149e('0x3a')](),this['bodyCollection'][_0x149e('0x35')](this['balloonPanelView']);}[_0x149e('0x36')](_0x1c4ee3){this[_0x149e('0x2a')]=_0x1c4ee3;const _0x3146e2=this['context'][_0x149e('0x3f')][_0x149e('0x15')](_0x3730a4),_0x3b539d=this['balloonPanelView'];if(_0x3146e2[_0x149e('0x2a')]=_0x1c4ee3,this['isAttached'])throw new _0x2a189d(_0x149e('0x25'),this);this[_0x149e('0x8')]=!0x0,this[_0x149e('0x39')](_0x3146e2,_0x149e('0x3d'),()=>{this[_0x149e('0x14')](),this[_0x149e('0x39')](_0x3146e2,_0x149e('0xa'),_0x1e5241=>{_0x1e5241[_0x149e('0xc')](),this[_0x149e('0x36')](_0x1c4ee3);});}),_0x3146e2[_0x149e('0x57')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x4603f4=_0x38e9df=>{const _0x504c28=new _0xddd155(this[_0x149e('0x0')][_0x149e('0x27')]);_0x3146e2['addAnnotation'](_0x38e9df,_0x504c28),this[_0x149e('0x3c')][_0x149e('0x2d')](_0x38e9df,_0x504c28),_0x504c28[_0x149e('0x4a')](_0x149e('0x42'),'annotationType','number')['to'](_0x38e9df['view'],_0x149e('0x42'),_0x149e('0x37'),_0x149e('0x52')),_0x504c28['on'](_0x149e('0x5'),()=>{this[_0x149e('0x46')][_0x149e('0x23')](),_0x3b539d[_0x149e('0x45')][_0x149e('0x4')]!==_0x38e9df[_0x149e('0x9')]?(this[_0x149e('0x19')](_0x38e9df),_0x38e9df[_0x149e('0x9')][_0x149e('0x11')][_0x149e('0x1e')](),this[_0x149e('0x21')](_0x38e9df)):this[_0x149e('0x21')](null);});};for(const _0x357fc9 of _0x1c4ee3)_0x4603f4(_0x357fc9);this[_0x149e('0x39')](_0x1c4ee3,_0x149e('0x35'),(_0x3e133b,_0x194e73)=>{_0x4603f4(_0x194e73);}),this['listenTo'](_0x1c4ee3,_0x149e('0xb'),(_0x49f730,_0x31d7d4,_0x26ad97)=>{this[_0x149e('0x3c')][_0x149e('0x15')](_0x31d7d4)[_0x149e('0x41')](),this[_0x149e('0x3c')][_0x149e('0x24')](_0x31d7d4),_0x3146e2[_0x149e('0x1d')]({'removedAnnotation':_0x31d7d4,'previousAnnotation':_0x1c4ee3[_0x149e('0x15')](_0x26ad97-0x1),'nextAnnotation':_0x1c4ee3[_0x149e('0x15')](_0x26ad97+0x1)}),_0x31d7d4===this[_0x149e('0x40')]&&this[_0x149e('0x21')](null);},{'priority':'low'}),this['listenTo'](_0x1c4ee3,_0x149e('0x1e'),(_0x548029,_0x35351c)=>{this['setActiveAnnotation'](_0x35351c);}),this[_0x149e('0x39')](_0x1c4ee3,_0x149e('0x55'),()=>{this[_0x149e('0x21')](null);}),this[_0x149e('0x22')]['listenTo'](document,'keydown',(_0x281091,_0x454dcc)=>{_0x454dcc[_0x149e('0x56')]===_0x20d6be['esc']&&_0x3b539d[_0x149e('0x4e')]&&(this['_manuallyClosedAnnotationViews'][_0x149e('0x35')](_0x3b539d[_0x149e('0x45')][_0x149e('0x4')]),this[_0x149e('0x7')](),_0x454dcc['stopPropagation'](),_0x454dcc['preventDefault']());}),this[_0x149e('0x22')]['listenTo'](document,_0x149e('0x6'),(_0x5c8b83,_0x2050d7)=>{const _0x480aab=_0x2050d7[_0x149e('0x3e')];_0x3b539d[_0x149e('0x4e')]&&_0x3b539d[_0x149e('0x11')][_0x149e('0x4b')](_0x480aab)||_0x3146e2[_0x149e('0x9')]['element'][_0x149e('0x4b')](_0x480aab)||_0x5c8b83[_0x149e('0x50')]||(this[_0x149e('0x46')][_0x149e('0x23')](),this[_0x149e('0x7')](),this[_0x149e('0x21')](null));});const _0x2b42e2=this[_0x149e('0x0')]['editors']?this[_0x149e('0x0')][_0x149e('0x10')]:new _0x2da181([this[_0x149e('0x0')]]);for(const _0x4f5ae3 of _0x2b42e2)this['_integrateWithEditorAnnotations'](_0x4f5ae3);this['listenTo'](_0x2b42e2,_0x149e('0x35'),(_0x222a5e,_0x18cb84)=>{this['listenTo'](_0x18cb84,'ready',()=>{this[_0x149e('0x53')](_0x18cb84);});}),this[_0x149e('0x39')](_0x2b42e2,_0x149e('0xb'),(_0x59d793,_0x58b7fd)=>{_0x58b7fd[_0x149e('0x3f')]['has'](_0x149e('0x51'))&&this[_0x149e('0x30')](_0x58b7fd[_0x149e('0x3f')][_0x149e('0x15')](_0x149e('0x51')));}),window[_0x149e('0x16')](_0x149e('0xf'),this[_0x149e('0x12')]),this[_0x149e('0x4f')]();}['setActiveAnnotation'](_0x28f6b8){if(_0x28f6b8===this[_0x149e('0x40')])return;const _0x2eac12=this[_0x149e('0x0')]['plugins']['get']('Sidebar');if(_0x2eac12[_0x149e('0x2')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x28f6b8,'disableAnimationOnActivatedAnnotation':!0x0}),_0x28f6b8)_0x2eac12[_0x149e('0x17')](_0x28f6b8)?this[_0x149e('0x19')](_0x28f6b8):this[_0x149e('0x7')]();else this[_0x149e('0x7')]();this[_0x149e('0x40')]=_0x28f6b8;}['detach'](){if(!this[_0x149e('0x8')])throw new _0x2a189d('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x17c60b=this[_0x149e('0x0')][_0x149e('0x3f')]['get']('Sidebar');this[_0x149e('0x7')](),Array[_0x149e('0xe')](this[_0x149e('0x3c')][_0x149e('0x31')](),_0x396d0e=>_0x396d0e[_0x149e('0x41')]()),this[_0x149e('0x3c')]['clear'](),_0x17c60b[_0x149e('0x58')](this[_0x149e('0x2a')]),this[_0x149e('0x44')](),this[_0x149e('0x22')][_0x149e('0x44')](),this['stopListening'](this[_0x149e('0x0')][_0x149e('0x10')]);for(const _0x57076b of Array['from'](this['_editorAnnotations']))this[_0x149e('0x30')](_0x57076b);window[_0x149e('0x2f')](_0x149e('0xf'),this['_throttledRefreshPositioning']),this[_0x149e('0x12')][_0x149e('0x1f')](),this[_0x149e('0x2b')]=[],this['isAttached']=!0x1,this[_0x149e('0x2a')]=null;}[_0x149e('0x41')](){this[_0x149e('0x8')]&&this[_0x149e('0x14')](),this[_0x149e('0x4c')][_0x149e('0x1c')]();}[_0x149e('0x53')](_0x40a17f){const _0x1a5c1b=_0x40a17f[_0x149e('0x3f')][_0x149e('0x15')](_0x149e('0x51')),_0x29634d=this[_0x149e('0x0')]['plugins'][_0x149e('0x15')](_0x3730a4),_0x1ed67f=this[_0x149e('0x2a')],_0x31f84c=this['balloonPanelView'],_0x3de6cc=()=>{const _0x5969e4=_0x1a5c1b[_0x149e('0x48')]({'activeAnnotation':this[_0x149e('0x40')],'annotations':this[_0x149e('0x2a')]});this[_0x149e('0x28')](_0x5969e4),this['setActiveAnnotation'](_0x5969e4[0x0]||null);};this[_0x149e('0x39')](_0x1a5c1b,_0x149e('0x2'),_0x3de6cc),this['listenTo'](_0x1a5c1b,_0x149e('0x55'),(_0xb4f5a8,{isAnnotationTracked:_0x4033ab})=>{this[_0x149e('0x40')]&&_0x4033ab(this[_0x149e('0x40')])&&(this[_0x149e('0x28')]([]),this[_0x149e('0x21')](null));}),this[_0x149e('0x39')](_0x1a5c1b,_0x149e('0x33'),()=>{this['_throttledRefreshPositioning']();}),this['listenTo'](_0x1ed67f,_0x149e('0x55'),_0x358abf=>{_0x1a5c1b['hasDomSelection']()&&_0x358abf[_0x149e('0x20')]();},{'priority':'high'}),this[_0x149e('0x22')]['listenTo'](document,_0x149e('0x6'),(_0x53d272,_0xa64762)=>{const _0x1a9a36=_0xa64762[_0x149e('0x3e')];_0x31f84c['isVisible']&&_0x31f84c[_0x149e('0x11')][_0x149e('0x4b')](_0x1a9a36)||_0x29634d[_0x149e('0x9')][_0x149e('0x11')][_0x149e('0x4b')](_0x1a9a36)||this['activeAnnotation']&&_0x1a5c1b[_0x149e('0x2e')]()&&(_0x3de6cc(),_0x53d272[_0x149e('0x50')]=!0x0);},{'priority':'high'}),this[_0x149e('0x29')]['add'](_0x1a5c1b);}[_0x149e('0x30')](_0x2f2da3){_0x2f2da3&&(this[_0x149e('0x44')](_0x2f2da3),this[_0x149e('0x29')][_0x149e('0xb')](_0x2f2da3));}[_0x149e('0x28')](_0x4d5959){for(const _0x5b0f21 of this[_0x149e('0x2b')])_0x4d5959[_0x149e('0x32')](_0x5b0f21)||this['_manuallyClosedAnnotationViews'][_0x149e('0x24')](_0x5b0f21[_0x149e('0x9')]);this[_0x149e('0x2b')]=_0x4d5959;}['_refreshPositioning'](){const _0x5086aa=this[_0x149e('0x49')];this['_annotations'][_0x149e('0x34')](),_0x5086aa[_0x149e('0x4e')]&&this[_0x149e('0x3')]();}[_0x149e('0x19')](_0x14cabe){if(this[_0x149e('0x46')][_0x149e('0x1')](_0x14cabe[_0x149e('0x9')]))return;const _0x5bcf79=this[_0x149e('0x49')]['content'][_0x149e('0x4')];_0x5bcf79!==_0x14cabe[_0x149e('0x9')]?(_0x5bcf79&&this[_0x149e('0x4d')](_0x5bcf79),this['_attachListeners'](_0x14cabe[_0x149e('0x9')]),this[_0x149e('0x49')]['content'][_0x149e('0x23')](),this[_0x149e('0x49')][_0x149e('0x45')][_0x149e('0x35')](_0x14cabe['view']),this[_0x149e('0x3')]()):this[_0x149e('0x3')]();}[_0x149e('0x3')](){const _0x423ad5=this['balloonPanelView'][_0x149e('0x45')][_0x149e('0x4')],_0x141e2b=this[_0x149e('0x2a')][_0x149e('0x2c')](_0x423ad5);if(!this[_0x149e('0x3c')][_0x149e('0x1')](_0x141e2b))return;const _0x5a683e=this[_0x149e('0x3c')][_0x149e('0x15')](_0x141e2b)[_0x149e('0x11')],_0x2ff870=function(){const _0x32b428=_0x344a29['defaultPositions'];return[_0x32b428['southArrowNorthEast'],_0x32b428['northArrowSouthEast'],_0x32b428[_0x149e('0xd')],_0x32b428[_0x149e('0x43')],_0x32b428['southArrowNorthWest'],_0x32b428[_0x149e('0x3b')]];}();this[_0x149e('0x49')][_0x149e('0x13')]({'target':_0x5a683e,'positions':_0x2ff870});}[_0x149e('0x7')](){const _0x2618b0=this[_0x149e('0x49')],_0x4488d9=_0x2618b0[_0x149e('0x45')][_0x149e('0x4')];_0x4488d9&&(this[_0x149e('0x4d')](_0x4488d9),_0x2618b0[_0x149e('0x18')](),_0x2618b0['content'][_0x149e('0x23')]());}[_0x149e('0x26')](_0x38d527){this[_0x149e('0x39')](_0x38d527,'change:height',()=>this[_0x149e('0x3')]()),this['listenTo'](_0x38d527,_0x149e('0x54'),(_0x58342e,_0x375260)=>{this[_0x149e('0x46')]['add'](_0x38d527),this[_0x149e('0x7')](),_0x375260();});}[_0x149e('0x4d')](_0x409a70){this['stopListening'](_0x409a70);}}
23
+ const _0x4fcc=['_detachListeners','delete','off','_manuallyClosedAnnotationViews','change:height','includes','Sidebar','setActiveAnnotation','has','ready','stop','attachToDom','bind','balloonPanelView','northArrowSouthWest','EditorAnnotations','narrowsidebar-attach-already-attached','getByView','type','addEventListener','narrowSidebar','annotations','_attachToContainer','plugins','clear','ck-sidebar--narrow','high','view','activeAnnotation','_updateBalloonPosition','set:container','_hideBalloon','_selectedAnnotations','bodyCollection','execute','_domEmitter','pluginName','contains','_setSelectedAnnotations','focus','context','defaultPositions','stopListening','add','isVisible','editors','isDirty','removeEventListener','_attachListeners','attach','keyCode','values','get','register','set','esc','detach','southArrowNorthEast','_throttledRefreshPositioning','remove','_editorAnnotations','blur','_showBalloon','southArrowNorth','northArrowSouthEast','length','listenTo','stopPropagation','element','isAttached','number','preventDefault','detachFromDom','from','destroy','init','locale','refresh','_destroyEditorAnnotationsIntegration','resize','addAnnotation','NarrowSidebar','_refreshPositioning','mousedown','hasDomSelection','target','create','unpin','keydown','refreshPositioning','_annotationToNarrowView','first','content','narrowsidebar-detach-not-attached','_integrateWithEditorAnnotations'];(function(_0x1a21bb,_0x4fccab){const _0x162f73=function(_0x1cd84f){while(--_0x1cd84f){_0x1a21bb['push'](_0x1a21bb['shift']());}};_0x162f73(++_0x4fccab);}(_0x4fcc,0xd1));const _0x162f=function(_0x1a21bb,_0x4fccab){_0x1a21bb=_0x1a21bb-0x0;let _0x162f73=_0x4fcc[_0x1a21bb];return _0x162f73;};import{ContextPlugin as _0x56913a}from'ckeditor5/src/core';import _0x276ddc from'./annotationsuis';import _0x4a9b5c from'./sidebar';import _0x13b028 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2912f0,BodyCollection as _0x12b8f8}from'ckeditor5/src/ui';import{CKEditorError as _0x22c5f1,DomEmitterMixin as _0x2e8ffa,keyCodes as _0x1045f7,Collection as _0x3c6ad5}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x3e039e}from'lodash-es';export default class s extends _0x56913a{static get['requires'](){return[_0x4a9b5c,_0x276ddc];}static get[_0x162f('0x11')](){return _0x162f('0x3e');}constructor(_0x151c4a){super(_0x151c4a),this[_0x162f('0x32')]=!0x1,this[_0x162f('0x4f')]=new Set(),this[_0x162f('0x10')]=Object[_0x162f('0x43')](_0x2e8ffa),this[_0x162f('0x47')]=new Map(),this['set']('activeAnnotation',null),this[_0x162f('0x2')]=null,this[_0x162f('0xd')]=[],this[_0x162f('0x29')]=new _0x3c6ad5(),this['_throttledRefreshPositioning']=_0x3e039e(()=>{this[_0x162f('0x3f')]();},0x190,{'leading':!0x1});}[_0x162f('0x38')](){this[_0x162f('0x15')][_0x162f('0x4')][_0x162f('0x21')](_0x276ddc)[_0x162f('0x22')](_0x162f('0x1'),this),this[_0x162f('0xe')]=new _0x12b8f8(this[_0x162f('0x15')]['locale']),this[_0x162f('0x59')]=new _0x2912f0(this[_0x162f('0x15')][_0x162f('0x39')]),this[_0x162f('0xe')][_0x162f('0x57')](),this[_0x162f('0xe')][_0x162f('0x18')](this[_0x162f('0x59')]);}[_0x162f('0x1e')](_0x1477ab){this[_0x162f('0x2')]=_0x1477ab;const _0x25482c=this[_0x162f('0x15')][_0x162f('0x4')][_0x162f('0x21')](_0x4a9b5c),_0x2a07f0=this['balloonPanelView'];if(_0x25482c['_annotations']=_0x1477ab,this['isAttached'])throw new _0x22c5f1(_0x162f('0x5c'),this);this[_0x162f('0x32')]=!0x0,this[_0x162f('0x2f')](_0x25482c,_0x162f('0xb'),()=>{this[_0x162f('0x25')](),this['listenTo'](_0x25482c,'change:container',_0x573b06=>{_0x573b06[_0x162f('0x4e')](),this[_0x162f('0x1e')](_0x1477ab);});}),_0x25482c[_0x162f('0x3')]({'viewClass':_0x162f('0x6'),'spaceBetweenItems':0x5});const _0x44d374=_0x6e3875=>{const _0x376f16=new _0x13b028(this[_0x162f('0x15')]['locale']);_0x25482c[_0x162f('0x3d')](_0x6e3875,_0x376f16),this[_0x162f('0x47')][_0x162f('0x23')](_0x6e3875,_0x376f16),_0x376f16[_0x162f('0x58')](_0x162f('0x1b'),'annotationType',_0x162f('0x33'))['to'](_0x6e3875[_0x162f('0x8')],_0x162f('0x1b'),_0x162f('0x5e'),_0x162f('0x2e')),_0x376f16['on'](_0x162f('0xf'),()=>{this[_0x162f('0x4f')][_0x162f('0x5')](),_0x2a07f0[_0x162f('0x49')][_0x162f('0x48')]!==_0x6e3875[_0x162f('0x8')]?(this[_0x162f('0x2b')](_0x6e3875),_0x6e3875['view']['element'][_0x162f('0x14')](),this[_0x162f('0x53')](_0x6e3875)):this['setActiveAnnotation'](null);});};for(const _0x45cd94 of _0x1477ab)_0x44d374(_0x45cd94);this['listenTo'](_0x1477ab,'add',(_0x263800,_0x1bdbfe)=>{_0x44d374(_0x1bdbfe);}),this[_0x162f('0x2f')](_0x1477ab,'remove',(_0x35f392,_0x1d40a9,_0x3e475a)=>{this[_0x162f('0x47')][_0x162f('0x21')](_0x1d40a9)[_0x162f('0x37')](),this['_annotationToNarrowView'][_0x162f('0x4d')](_0x1d40a9),_0x25482c['rearrange']({'removedAnnotation':_0x1d40a9,'previousAnnotation':_0x1477ab[_0x162f('0x21')](_0x3e475a-0x1),'nextAnnotation':_0x1477ab[_0x162f('0x21')](_0x3e475a+0x1)}),_0x1d40a9===this[_0x162f('0x9')]&&this['setActiveAnnotation'](null);},{'priority':'low'}),this[_0x162f('0x2f')](_0x1477ab,_0x162f('0x14'),(_0x418d92,_0x5b05b4)=>{this[_0x162f('0x53')](_0x5b05b4);}),this[_0x162f('0x2f')](_0x1477ab,_0x162f('0x2a'),()=>{this[_0x162f('0x53')](null);}),this[_0x162f('0x10')][_0x162f('0x2f')](document,_0x162f('0x45'),(_0x5c7118,_0x135b6d)=>{_0x135b6d[_0x162f('0x1f')]===_0x1045f7[_0x162f('0x24')]&&_0x2a07f0['isVisible']&&(this['_manuallyClosedAnnotationViews'][_0x162f('0x18')](_0x2a07f0[_0x162f('0x49')]['first']),this['_hideBalloon'](),_0x135b6d[_0x162f('0x30')](),_0x135b6d[_0x162f('0x34')]());}),this[_0x162f('0x10')][_0x162f('0x2f')](document,_0x162f('0x40'),(_0x3b6b30,_0x5a83ab)=>{const _0x15749b=_0x5a83ab[_0x162f('0x42')];_0x2a07f0[_0x162f('0x19')]&&_0x2a07f0[_0x162f('0x31')][_0x162f('0x12')](_0x15749b)||_0x25482c[_0x162f('0x8')][_0x162f('0x31')][_0x162f('0x12')](_0x15749b)||_0x3b6b30['preventClosingBalloon']||(this[_0x162f('0x4f')]['clear'](),this['_hideBalloon'](),this[_0x162f('0x53')](null));});const _0x5ae632=this[_0x162f('0x15')][_0x162f('0x1a')]?this[_0x162f('0x15')][_0x162f('0x1a')]:new _0x3c6ad5([this['context']]);for(const _0xac17e0 of _0x5ae632)this[_0x162f('0x4b')](_0xac17e0);this['listenTo'](_0x5ae632,_0x162f('0x18'),(_0x56cefc,_0x23b8c2)=>{this[_0x162f('0x2f')](_0x23b8c2,_0x162f('0x55'),()=>{this['_integrateWithEditorAnnotations'](_0x23b8c2);});}),this[_0x162f('0x2f')](_0x5ae632,_0x162f('0x28'),(_0x5c4397,_0x5e9b51)=>{_0x5e9b51['plugins'][_0x162f('0x54')]('EditorAnnotations')&&this[_0x162f('0x3b')](_0x5e9b51['plugins'][_0x162f('0x21')]('EditorAnnotations'));}),window[_0x162f('0x0')](_0x162f('0x3c'),this['_throttledRefreshPositioning']),this[_0x162f('0x3f')]();}['setActiveAnnotation'](_0x761c47){if(_0x761c47===this['activeAnnotation'])return;const _0x21753d=this[_0x162f('0x15')][_0x162f('0x4')][_0x162f('0x21')](_0x162f('0x52'));if(_0x21753d[_0x162f('0x3a')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x761c47,'disableAnimationOnActivatedAnnotation':!0x0}),_0x761c47)_0x21753d['getSidebarItemView'](_0x761c47)?this[_0x162f('0x2b')](_0x761c47):this['_hideBalloon']();else this[_0x162f('0xc')]();this[_0x162f('0x9')]=_0x761c47;}[_0x162f('0x25')](){if(!this[_0x162f('0x32')])throw new _0x22c5f1(_0x162f('0x4a'),this);this[_0x162f('0x53')](null);const _0x15fa65=this[_0x162f('0x15')][_0x162f('0x4')]['get']('Sidebar');this[_0x162f('0xc')](),Array[_0x162f('0x36')](this[_0x162f('0x47')][_0x162f('0x20')](),_0x327875=>_0x327875[_0x162f('0x37')]()),this[_0x162f('0x47')]['clear'](),_0x15fa65['_detachFromContainer'](this[_0x162f('0x2')]),this['stopListening'](),this[_0x162f('0x10')][_0x162f('0x17')](),this[_0x162f('0x17')](this['context'][_0x162f('0x1a')]);for(const _0x2b3612 of Array[_0x162f('0x36')](this[_0x162f('0x29')]))this[_0x162f('0x3b')](_0x2b3612);window[_0x162f('0x1c')]('resize',this[_0x162f('0x27')]),this['_throttledRefreshPositioning']['cancel'](),this[_0x162f('0xd')]=[],this[_0x162f('0x32')]=!0x1,this['annotations']=null;}[_0x162f('0x37')](){this[_0x162f('0x32')]&&this['detach'](),this[_0x162f('0xe')][_0x162f('0x35')]();}[_0x162f('0x4b')](_0x19b9fe){const _0x2472db=_0x19b9fe[_0x162f('0x4')][_0x162f('0x21')](_0x162f('0x5b')),_0x3d705b=this[_0x162f('0x15')]['plugins'][_0x162f('0x21')](_0x4a9b5c),_0x33b963=this[_0x162f('0x2')],_0x1569d7=this[_0x162f('0x59')],_0x5cc6fe=()=>{const _0x429c49=_0x2472db['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x162f('0x9')],'annotations':this['annotations']});this['_setSelectedAnnotations'](_0x429c49),this[_0x162f('0x53')](_0x429c49[0x0]||null);};this['listenTo'](_0x2472db,'refresh',_0x5cc6fe),this['listenTo'](_0x2472db,_0x162f('0x2a'),(_0x1a1605,{isAnnotationTracked:_0x3699b8})=>{this['activeAnnotation']&&_0x3699b8(this[_0x162f('0x9')])&&(this[_0x162f('0x13')]([]),this[_0x162f('0x53')](null));}),this[_0x162f('0x2f')](_0x2472db,'uiUpdate',()=>{this[_0x162f('0x27')]();}),this[_0x162f('0x2f')](_0x33b963,_0x162f('0x2a'),_0x984f7f=>{_0x2472db[_0x162f('0x41')]()&&_0x984f7f[_0x162f('0x56')]();},{'priority':_0x162f('0x7')}),this[_0x162f('0x10')][_0x162f('0x2f')](document,_0x162f('0x40'),(_0x5cf3c4,_0x4874b0)=>{const _0x43b490=_0x4874b0[_0x162f('0x42')];_0x1569d7[_0x162f('0x19')]&&_0x1569d7[_0x162f('0x31')]['contains'](_0x43b490)||_0x3d705b['view']['element'][_0x162f('0x12')](_0x43b490)||this[_0x162f('0x9')]&&_0x2472db[_0x162f('0x41')]()&&(_0x5cc6fe(),_0x5cf3c4['preventClosingBalloon']=!0x0);},{'priority':_0x162f('0x7')}),this[_0x162f('0x29')]['add'](_0x2472db);}[_0x162f('0x3b')](_0x35c04f){_0x35c04f&&(this['stopListening'](_0x35c04f),this[_0x162f('0x29')][_0x162f('0x28')](_0x35c04f));}[_0x162f('0x13')](_0x474b33){for(const _0x1a6cf4 of this[_0x162f('0xd')])_0x474b33[_0x162f('0x51')](_0x1a6cf4)||this[_0x162f('0x4f')][_0x162f('0x4d')](_0x1a6cf4[_0x162f('0x8')]);this[_0x162f('0xd')]=_0x474b33;}[_0x162f('0x3f')](){const _0x37dd00=this[_0x162f('0x59')];this['annotations'][_0x162f('0x46')](),_0x37dd00[_0x162f('0x19')]&&this[_0x162f('0xa')]();}[_0x162f('0x2b')](_0x494803){if(this[_0x162f('0x4f')][_0x162f('0x54')](_0x494803[_0x162f('0x8')]))return;const _0x2568cf=this['balloonPanelView'][_0x162f('0x49')][_0x162f('0x48')];_0x2568cf!==_0x494803[_0x162f('0x8')]?(_0x2568cf&&this[_0x162f('0x4c')](_0x2568cf),this[_0x162f('0x1d')](_0x494803['view']),this['balloonPanelView'][_0x162f('0x49')][_0x162f('0x5')](),this['balloonPanelView'][_0x162f('0x49')]['add'](_0x494803[_0x162f('0x8')]),this[_0x162f('0xa')]()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x11c79d=this[_0x162f('0x59')][_0x162f('0x49')][_0x162f('0x48')],_0x42d90f=this['annotations'][_0x162f('0x5d')](_0x11c79d);if(!this[_0x162f('0x47')][_0x162f('0x54')](_0x42d90f))return;const _0xd373b7=this[_0x162f('0x47')][_0x162f('0x21')](_0x42d90f)[_0x162f('0x31')],_0x2af960=function(){const _0x50073c=_0x2912f0[_0x162f('0x16')];return[_0x50073c[_0x162f('0x26')],_0x50073c[_0x162f('0x2d')],_0x50073c[_0x162f('0x2c')],_0x50073c['northArrowSouth'],_0x50073c['southArrowNorthWest'],_0x50073c[_0x162f('0x5a')]];}();this['balloonPanelView']['pin']({'target':_0xd373b7,'positions':_0x2af960});}[_0x162f('0xc')](){const _0x2fe619=this[_0x162f('0x59')],_0x5ae7f8=_0x2fe619[_0x162f('0x49')][_0x162f('0x48')];_0x5ae7f8&&(this[_0x162f('0x4c')](_0x5ae7f8),_0x2fe619[_0x162f('0x44')](),_0x2fe619['content']['clear']());}[_0x162f('0x1d')](_0x1015d3){this['listenTo'](_0x1015d3,_0x162f('0x50'),()=>this[_0x162f('0xa')]()),this[_0x162f('0x2f')](_0x1015d3,'Esc',(_0x1ce694,_0x46b8c2)=>{this[_0x162f('0x4f')][_0x162f('0x18')](_0x1015d3),this[_0x162f('0xc')](),_0x46b8c2();});}['_detachListeners'](_0x45c9c6){this[_0x162f('0x17')](_0x45c9c6);}}