@ckeditor/ckeditor5-collaboration-core 38.0.1 → 38.1.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.
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "38.0.1",
3
+ "version": "38.1.0",
4
4
  "description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
7
+ "bugs": {
8
+ "url": "https://support.ckeditor.com/hc/en-us/requests/new"
9
+ },
7
10
  "homepage": "https://ckeditor.com/collaboration/",
8
11
  "keywords": [
9
12
  "CKEditor",
@@ -28,9 +31,13 @@
28
31
  ],
29
32
  "main": "src/index.js",
30
33
  "dependencies": {
31
- "ckeditor5": "^38.0.1",
34
+ "ckeditor5": "38.1.0",
32
35
  "date-fns": "^2.17.0"
33
36
  },
37
+ "engines": {
38
+ "node": ">=16.0.0",
39
+ "npm": ">=5.7.1"
40
+ },
34
41
  "files": [
35
42
  "lang",
36
43
  "src/**/*.js",
@@ -38,10 +45,6 @@
38
45
  "theme",
39
46
  "CHANGELOG.md"
40
47
  ],
41
- "scripts": {
42
- "build": "tsc -p ./tsconfig.json",
43
- "postversion": "npm run build"
44
- },
45
48
  "types": "src/index.d.ts",
46
49
  "obfuscated": true
47
50
  }
@@ -1 +1,17 @@
1
- export {};
1
+ /**
2
+ * @module collaboration-core/collaborationhistory
3
+ * @publicApi
4
+ */
5
+ import type { default as CollaborationOperation } from './collaborationoperation';
6
+ /**
7
+ * Interface compatible with {@link module:engine/model/history~History} with the difference that it uses
8
+ * {@link module:collaboration-core/collaborationoperation~CollaborationOperation} instead of regular model operations.
9
+ */
10
+ export default interface CollaborationHistory {
11
+ _operations: Array<CollaborationOperation>;
12
+ version: number;
13
+ getOperations(fromBaseVersion?: number, toBaseVersion?: number): Array<CollaborationOperation>;
14
+ getOperation(baseVersion: number): CollaborationOperation | undefined;
15
+ addOperation(operation: CollaborationOperation): void;
16
+ reset(): void;
17
+ }
@@ -26,7 +26,7 @@ export default class Permissions extends ContextPlugin {
26
26
  /**
27
27
  * @inheritDoc
28
28
  */
29
- static get pluginName(): 'Permissions';
29
+ static get pluginName(): "Permissions";
30
30
  /**
31
31
  * Sets permissions for editor/context instance with given `channelId`.
32
32
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x352a=['comment:modify_all','comment:write','no-permissions','plugins','disableReadOnlyMode','isEnabled','collaboration.channelId','forceDisabled','includes','CommentsRepository','get','setPermissions','comment:admin','Permissions','find','noPermissions','clearForceDisabled','addCommentThread','config','enableReadOnlyMode','has','document:write','context','editors'];(function(_0x5b789a,_0x352abd){const _0x4ec2a9=function(_0x3d60e2){while(--_0x3d60e2){_0x5b789a['push'](_0x5b789a['shift']());}};_0x4ec2a9(++_0x352abd);}(_0x352a,0x1e4));const _0x4ec2=function(_0x5b789a,_0x352abd){_0x5b789a=_0x5b789a-0x0;let _0x4ec2a9=_0x352a[_0x5b789a];return _0x4ec2a9;};import{ContextPlugin as _0x26f590,Editor as _0x341b0a}from'ckeditor5/src/core';import{CKEditorError as _0x1e2da5}from'ckeditor5/src/utils';export default class n extends _0x26f590{static get['pluginName'](){return _0x4ec2('0x9');}['setPermissions'](_0x224363,_0x29bf9f){let _0x91db69;if(_0x29bf9f||(_0x29bf9f=this[_0x4ec2('0x12')][_0x4ec2('0xe')][_0x4ec2('0x6')](_0x4ec2('0x2'))),this[_0x4ec2('0x12')][_0x4ec2('0xe')][_0x4ec2('0x6')](_0x4ec2('0x2'))==_0x29bf9f?_0x91db69=this[_0x4ec2('0x12')]:'editors'in this[_0x4ec2('0x12')]&&this[_0x4ec2('0x12')][_0x4ec2('0x13')]&&(_0x91db69=this[_0x4ec2('0x12')]['editors'][_0x4ec2('0xa')](_0x5dcceb=>_0x5dcceb['config']['get']('collaboration.channelId')==_0x29bf9f)),!_0x91db69)throw new _0x1e2da5('permissions-set-permissions-invalid-channel-id',null);const _0x36a5fa=_0x91db69[_0x4ec2('0x17')],_0x166d00=_0x36a5fa[_0x4ec2('0x10')](_0x4ec2('0x5'))?_0x36a5fa['get']('CommentsRepository'):void 0x0,_0x412d30=_0x36a5fa['has']('CommentsOnly')&&_0x36a5fa[_0x4ec2('0x6')]('CommentsOnly'),_0x580625=_0x224363[_0x4ec2('0x4')](_0x4ec2('0x11')),_0x35d3e7=_0x224363[_0x4ec2('0x4')](_0x4ec2('0x14')),_0x52cd9c=_0x224363[_0x4ec2('0x4')](_0x4ec2('0x8')),_0x270fff=_0x224363[_0x4ec2('0x4')](_0x4ec2('0x15')),_0x42dcea=_0x270fff||_0x52cd9c,_0x119421=_0x42dcea||_0x35d3e7;(_0x412d30&&(_0x412d30[_0x4ec2('0x1')]=!_0x580625&&_0x119421),_0x91db69 instanceof _0x341b0a)&&(!(_0x580625||_0x119421&&_0x166d00)?_0x91db69[_0x4ec2('0xf')](_0x4ec2('0x16')):_0x91db69[_0x4ec2('0x0')](_0x4ec2('0x16')));if(_0x166d00){_0x166d00[_0x4ec2('0x7')]({'admin':_0x52cd9c,'modifyAll':_0x35d3e7,'write':_0x270fff},_0x29bf9f);const _0x4ffb39=_0x91db69 instanceof _0x341b0a&&_0x91db69['commands'][_0x4ec2('0x6')](_0x4ec2('0xd'));_0x4ffb39&&(_0x42dcea?_0x4ffb39[_0x4ec2('0xc')](_0x4ec2('0xb')):_0x4ffb39[_0x4ec2('0x3')](_0x4ec2('0xb')));}}}
23
+ const _0x5e8c=['no-permissions','disableReadOnlyMode','isEnabled','commands','get','Permissions','editors','comment:admin','pluginName','collaboration.channelId','clearForceDisabled','comment:write','comment:modify_all','noPermissions','context','forceDisabled','has','enableReadOnlyMode','setPermissions','CommentsOnly','config','includes','find','document:write','CommentsRepository'];(function(_0x7b83b2,_0x5e8ccd){const _0x32d686=function(_0x5a5d79){while(--_0x5a5d79){_0x7b83b2['push'](_0x7b83b2['shift']());}};_0x32d686(++_0x5e8ccd);}(_0x5e8c,0x84));const _0x32d6=function(_0x7b83b2,_0x5e8ccd){_0x7b83b2=_0x7b83b2-0x0;let _0x32d686=_0x5e8c[_0x7b83b2];return _0x32d686;};import{ContextPlugin as _0x43782b,Editor as _0x577200}from'ckeditor5/src/core';import{CKEditorError as _0x53ded7}from'ckeditor5/src/utils';export default class n extends _0x43782b{static get[_0x32d6('0x1')](){return _0x32d6('0x17');}[_0x32d6('0xb')](_0x1e1478,_0x3cbda9){let _0x7ec22;if(_0x3cbda9||(_0x3cbda9=this[_0x32d6('0x7')]['config'][_0x32d6('0x16')](_0x32d6('0x2'))),this['context'][_0x32d6('0xd')][_0x32d6('0x16')](_0x32d6('0x2'))==_0x3cbda9?_0x7ec22=this[_0x32d6('0x7')]:_0x32d6('0x18')in this[_0x32d6('0x7')]&&this[_0x32d6('0x7')][_0x32d6('0x18')]&&(_0x7ec22=this['context']['editors'][_0x32d6('0xf')](_0x2fab39=>_0x2fab39[_0x32d6('0xd')]['get'](_0x32d6('0x2'))==_0x3cbda9)),!_0x7ec22)throw new _0x53ded7('permissions-set-permissions-invalid-channel-id',null);const _0x327d96=_0x7ec22['plugins'],_0x4d11c5=_0x327d96[_0x32d6('0x9')]('CommentsRepository')?_0x327d96[_0x32d6('0x16')](_0x32d6('0x11')):void 0x0,_0x1daf58=_0x327d96[_0x32d6('0x9')]('CommentsOnly')&&_0x327d96[_0x32d6('0x16')](_0x32d6('0xc')),_0x6d144=_0x1e1478[_0x32d6('0xe')](_0x32d6('0x10')),_0x2de56d=_0x1e1478[_0x32d6('0xe')](_0x32d6('0x5')),_0x5199fc=_0x1e1478['includes'](_0x32d6('0x0')),_0x4de50e=_0x1e1478[_0x32d6('0xe')](_0x32d6('0x4')),_0x5cdf33=_0x4de50e||_0x5199fc,_0x356c15=_0x5cdf33||_0x2de56d,_0x50308e=_0x6d144||_0x5cdf33;(_0x1daf58&&(_0x1daf58[_0x32d6('0x14')]=!_0x6d144&&_0x356c15),_0x7ec22 instanceof _0x577200)&&(!(_0x6d144||_0x356c15&&_0x4d11c5)?_0x7ec22[_0x32d6('0xa')](_0x32d6('0x12')):_0x7ec22[_0x32d6('0x13')](_0x32d6('0x12')));if(_0x4d11c5){_0x4d11c5[_0x32d6('0xb')]({'admin':_0x5199fc,'modifyAll':_0x2de56d,'write':_0x4de50e,'resolve':_0x50308e},_0x3cbda9);const _0x2578d5=_0x7ec22 instanceof _0x577200&&_0x7ec22[_0x32d6('0x15')]['get']('addCommentThread');_0x2578d5&&(_0x5cdf33?_0x2578d5[_0x32d6('0x3')]('noPermissions'):_0x2578d5[_0x32d6('0x8')](_0x32d6('0x6')));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2681=['ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__anonymous','ck-user__notification','initials','avatar','isAnonymous','url(\x27','notificationView','name','push','ck-user__img','ck\x20ck-user__name','content','ck-user__icon','div'];(function(_0x1bc15e,_0x268120){const _0x436944=function(_0x17a520){while(--_0x17a520){_0x1bc15e['push'](_0x1bc15e['shift']());}};_0x436944(++_0x268120);}(_0x2681,0xd8));const _0x4369=function(_0x1bc15e,_0x268120){_0x1bc15e=_0x1bc15e-0x0;let _0x436944=_0x2681[_0x1bc15e];return _0x436944;};import{View as _0x18f438,IconView as _0x1053c0}from'ckeditor5/src/ui';import _0x19b647 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class $ extends _0x18f438{constructor(_0x2b34fd,_0x4eb48d,_0x128850){super(_0x2b34fd),this[_0x4369('0x2')]=_0x4eb48d['name'],this[_0x4369('0x1')]=null;const _0x223ed7=['ck',_0x4369('0x4')];if(_0x4eb48d[_0x4369('0xe')]&&_0x223ed7['push'](_0x4369('0xa')),_0x4eb48d[_0x4369('0xd')]&&_0x223ed7[_0x4369('0x3')]('ck-user__avatar'),_0x128850){const _0x43c010=new _0x1053c0();_0x43c010['extendTemplate']({'attributes':{'class':[_0x4369('0x7')]}}),_0x43c010[_0x4369('0x6')]=_0x19b647,this['notificationView']={'tag':_0x4369('0x8'),'attributes':{'class':['ck',_0x4369('0xb')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x128850},'children':[_0x43c010]};}const _0x59e650=[{'tag':_0x4369('0x8'),'attributes':{'class':_0x223ed7,'style':{'background-image':_0x4eb48d[_0x4369('0xd')]?_0x4369('0x0')+_0x4eb48d[_0x4369('0xd')]+'\x27)':''}}},{'tag':_0x4369('0x8'),'attributes':{'class':_0x4eb48d[_0x4369('0xd')]?_0x4369('0x9'):_0x4369('0x5')},'children':[{'text':_0x4eb48d[_0x4369('0xc')]}]}];this[_0x4369('0x1')]&&_0x59e650[_0x4369('0x3')](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-user'],'data-user-id':_0x4eb48d['id']},'children':_0x59e650});}}
23
+ const _0x3f7e=['url(\x27','ck\x20ck-user__name','isAnonymous','avatar','div','ck-user__icon','extendTemplate','ck-user__avatar','push','ck-user__img','ck-user__notification','notificationView','setTemplate','initials','ck-user__anonymous','name'];(function(_0x95af5f,_0x3f7e59){const _0x4cee84=function(_0x277dea){while(--_0x277dea){_0x95af5f['push'](_0x95af5f['shift']());}};_0x4cee84(++_0x3f7e59);}(_0x3f7e,0x8b));const _0x4cee=function(_0x95af5f,_0x3f7e59){_0x95af5f=_0x95af5f-0x0;let _0x4cee84=_0x3f7e[_0x95af5f];return _0x4cee84;};import{View as _0x2f4640,IconView as _0x573e9a}from'ckeditor5/src/ui';import _0x54d400 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class $ extends _0x2f4640{constructor(_0xec9e06,_0xc4ff21,_0x5ac762){super(_0xec9e06),this['name']=_0xc4ff21[_0x4cee('0x4')],this[_0x4cee('0x0')]=null;const _0x5dd025=['ck',_0x4cee('0xe')];if(_0xc4ff21[_0x4cee('0x7')]&&_0x5dd025[_0x4cee('0xd')](_0x4cee('0x3')),_0xc4ff21[_0x4cee('0x8')]&&_0x5dd025['push'](_0x4cee('0xc')),_0x5ac762){const _0x41ef86=new _0x573e9a();_0x41ef86[_0x4cee('0xb')]({'attributes':{'class':[_0x4cee('0xa')]}}),_0x41ef86['content']=_0x54d400,this['notificationView']={'tag':_0x4cee('0x9'),'attributes':{'class':['ck',_0x4cee('0xf')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x5ac762},'children':[_0x41ef86]};}const _0x322cf6=[{'tag':'div','attributes':{'class':_0x5dd025,'style':{'background-image':_0xc4ff21[_0x4cee('0x8')]?_0x4cee('0x5')+_0xc4ff21['avatar']+'\x27)':''}}},{'tag':_0x4cee('0x9'),'attributes':{'class':_0xc4ff21[_0x4cee('0x8')]?'ck\x20ck-user__name\x20ck-user__name--hidden':_0x4cee('0x6')},'children':[{'text':_0xc4ff21[_0x4cee('0x2')]}]}];this[_0x4cee('0x0')]&&_0x322cf6[_0x4cee('0xd')](this[_0x4cee('0x0')]),this[_0x4cee('0x1')]({'tag':_0x4cee('0x9'),'attributes':{'class':['ck','ck-user'],'data-user-id':_0xc4ff21['id']},'children':_0x322cf6});}}
package/src/users.d.ts CHANGED
@@ -2,8 +2,9 @@
2
2
  * @module collaboration-core/users
3
3
  * @publicApi
4
4
  */
5
- import { ContextPlugin, type ContextPluginDependencies, type Context, type Editor } from 'ckeditor5/src/core';
5
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
6
6
  import { Collection } from 'ckeditor5/src/utils';
7
+ import Permissions from './permissions';
7
8
  import '../theme/usercolors.css';
8
9
  /**
9
10
  * The `Users` plugin provides the basic interface for setting and getting users involved in the document editing process.
@@ -25,11 +26,11 @@ export default class Users extends ContextPlugin {
25
26
  /**
26
27
  * @inheritDoc
27
28
  */
28
- static get pluginName(): 'Users';
29
+ static get pluginName(): "Users";
29
30
  /**
30
31
  * @inheritDoc
31
32
  */
32
- static get requires(): ContextPluginDependencies;
33
+ static get requires(): readonly [typeof Permissions];
33
34
  /**
34
35
  * @inheritDoc
35
36
  */
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d22=['_lastColor','licenseKeyTrialLimit:operations','decorate','has','users.colorsCount','licenseKeyTrialLimit:time','define','licenseKeyValid','get','invalid-license-key','pluginName','ck-user__marker--','trim','split','context','users-add-duplicated-id','licenseKeyTrial','avatar','_getInitial','color','addUser','includes','_licenseKeyCheckInterval','_id','getOperationAuthor','users-add-invalid-id','getSelectionClass','_getNextColor','trial-license-key-reached-limit-changes','ck-user__bg-color--','licenseKeyTrialLimit:revisions','anonymous-user','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','users-me-already-defined','licenseKey','init','ck-user__selection--','_myId','getUser','licenseKeyInvalid','defineMe','_isAnonymous','Users','Anonymous','requires','useAnonymousUser','_locale','users','name','length','users.anonymousUserId','destroy','locale','config','trial-license-key-reached-limit-time','getMarkerClass','getBackgroundColorClass','isAnonymous'];(function(_0x53a673,_0x1d220a){const _0x134f92=function(_0x217da3){while(--_0x217da3){_0x53a673['push'](_0x53a673['shift']());}};_0x134f92(++_0x1d220a);}(_0x1d22,0x1c3));const _0x134f=function(_0x53a673,_0x1d220a){_0x53a673=_0x53a673-0x0;let _0x134f92=_0x1d22[_0x53a673];return _0x134f92;};import{ContextPlugin as _0xf89dfa}from'ckeditor5/src/core';import{Collection as _0x3c5e2e,CKEditorError as _0x2ed61a}from'ckeditor5/src/utils';import _0x366cfc from'./permissions';import{getTranslation as _0x288fe3}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0xf89dfa{static get[_0x134f('0x17')](){return _0x134f('0x37');}static get[_0x134f('0x39')](){return[_0x366cfc];}constructor(_0x29d883){super(_0x29d883),this['context'][_0x134f('0x8')][_0x134f('0x13')](_0x134f('0x5'),_0x134f('0x2c')),this['context'][_0x134f('0x8')][_0x134f('0x13')]('users.colorsCount',0x8),this[_0x134f('0x2')]=new _0x3c5e2e(),this['_locale']=_0x29d883[_0x134f('0x7')],this[_0x134f('0x23')]=null,this[_0x134f('0xd')]=0x0,this['_myId']=null,this[_0x134f('0xf')]('getOperationAuthor');}[_0x134f('0x30')](){const _0x497de3=this[_0x134f('0x1b')];this[_0x134f('0x2f')]=_0x497de3[_0x134f('0x8')][_0x134f('0x15')](_0x134f('0x2f'));const _0xd093a=[_0x134f('0x1d'),'licenseKeyInvalid',_0x134f('0x14'),_0x134f('0xe'),_0x134f('0x12'),_0x134f('0x2b')];this[_0x134f('0x23')]=setInterval(()=>{let _0x52bc54;for(const _0x341f3d in _0x497de3){const _0x9d2d96=_0x497de3[_0x341f3d];if(_0xd093a[_0x134f('0x22')](_0x9d2d96)){delete _0x497de3[_0x341f3d],_0x52bc54=_0x9d2d96;break;}}if(_0x134f('0x34')===_0x52bc54)throw clearInterval(this[_0x134f('0x23')]),new _0x2ed61a(_0x134f('0x16'),null);if('licenseKeyTrial'===_0x52bc54&&console['info'](_0x134f('0x2d')),_0x134f('0xe')===_0x52bc54)throw clearInterval(this[_0x134f('0x23')]),new _0x2ed61a(_0x134f('0x29'),null);if(_0x134f('0x12')===_0x52bc54)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x2ed61a(_0x134f('0x9'),null);if(_0x134f('0x2b')===_0x52bc54)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x2ed61a('trial-license-key-reached-limit-revisions',null);_0x134f('0x14')===_0x52bc54&&clearInterval(this[_0x134f('0x23')]);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this[_0x134f('0x32')]?null:this[_0x134f('0x33')](this[_0x134f('0x32')]);}['addUser']({id:_0x406480,name:_0x4eb24e,..._0x444f4b}){if(!_0x406480||'string'!=typeof _0x406480)throw new _0x2ed61a(_0x134f('0x26'));if(this[_0x134f('0x2')][_0x134f('0x10')](_0x406480))throw new _0x2ed61a(_0x134f('0x1c'),null,{'id':_0x406480});const _0x1c4457={..._0x444f4b,'id':_0x406480,'name':a(this[_0x134f('0x1')],_0x4eb24e),'color':this[_0x134f('0x28')]()};_0x1c4457[_0x134f('0x3')]=a(this[_0x134f('0x1')],_0x1c4457[_0x134f('0x3')]);const _0x2f2d75=new User(_0x1c4457);return this[_0x134f('0x2')]['add'](_0x2f2d75),_0x2f2d75;}[_0x134f('0x33')](_0x1f00e8){return this[_0x134f('0x2')]['get'](_0x1f00e8);}[_0x134f('0x0')](){const _0x397dfa=this[_0x134f('0x1b')][_0x134f('0x8')][_0x134f('0x15')](_0x134f('0x5'));this[_0x134f('0x32')]||this[_0x134f('0x35')](_0x397dfa);}[_0x134f('0x35')](_0x134945){if(this[_0x134f('0x32')])throw new _0x2ed61a(_0x134f('0x2e'),null);if(!this[_0x134f('0x33')](_0x134945))throw new _0x2ed61a('users-me-missing-user',null);this[_0x134f('0x32')]=_0x134945;}[_0x134f('0x25')](){return this['me'];}['destroy'](){super[_0x134f('0x6')](),clearInterval(this[_0x134f('0x23')]);}[_0x134f('0x28')](){const _0x182155=this[_0x134f('0x1b')][_0x134f('0x8')][_0x134f('0x15')](_0x134f('0x11'));return this[_0x134f('0xd')]>=_0x182155&&(this['_lastColor']=0x0),new u(this[_0x134f('0xd')]++);}['_addAnonymousUser'](){const _0x544137=this[_0x134f('0x1b')][_0x134f('0x8')][_0x134f('0x15')]('users.anonymousUserId');this[_0x134f('0x21')]({'id':_0x544137,'name':_0x288fe3(this[_0x134f('0x1')],_0x134f('0x38'))})[_0x134f('0x36')]=!0x0;}}export class User{constructor(_0x15e778){this['id']=_0x15e778['id'],this[_0x134f('0x20')]=_0x15e778['color'],this[_0x134f('0x3')]=_0x15e778[_0x134f('0x3')],this['avatar']=_0x15e778[_0x134f('0x1e')],this[_0x134f('0x36')]=!0x1;}get[_0x134f('0xc')](){return this['_isAnonymous'];}get['initials'](){const _0x4dff12=this['name'][_0x134f('0x1a')]('\x20');return 0x1===_0x4dff12[_0x134f('0x4')]?this['_getInitial'](_0x4dff12[0x0]):this[_0x134f('0x1f')](_0x4dff12[0x0])+this[_0x134f('0x1f')](_0x4dff12[_0x4dff12[_0x134f('0x4')]-0x1]);}[_0x134f('0x1f')](_0xd91371){return _0xd91371['charAt'](0x0)['toUpperCase']();}}function a(_0x3df976,_0x8a2cc2=''){return''==(_0x8a2cc2=_0x8a2cc2[_0x134f('0x19')]())?_0x288fe3(_0x3df976,'Anonymous'):_0x8a2cc2;}class u{constructor(_0x461985){this['_id']=_0x461985;}[_0x134f('0xb')](){return _0x134f('0x2a')+this[_0x134f('0x24')];}[_0x134f('0x27')](){return _0x134f('0x31')+this[_0x134f('0x24')];}[_0x134f('0xa')](){return _0x134f('0x18')+this[_0x134f('0x24')];}}
23
+ const _0xa40a=['name','color','avatar','licenseKeyTrial','define','getBackgroundColorClass','users-add-invalid-id','licenseKeyInvalid','_getNextColor','invalid-license-key','users-add-duplicated-id','users.colorsCount','add','charAt','addUser','length','getUser','users.anonymousUserId','_myId','_getInitial','decorate','licenseKey','info','_lastColor','context','users','_id','Anonymous','requires','licenseKeyTrialLimit:operations','split','_isAnonymous','pluginName','trial-license-key-reached-limit-changes','config','getMarkerClass','trim','licenseKeyValid','defineMe','trial-license-key-reached-limit-revisions','anonymous-user','_locale','get','destroy','ck-user__marker--','licenseKeyTrialLimit:revisions','_licenseKeyCheckInterval','licenseKeyTrialLimit:time','init','_addAnonymousUser','getSelectionClass','toUpperCase','ck-user__selection--'];(function(_0x15855a,_0xa40abb){const _0x2b2dde=function(_0x2c68e8){while(--_0x2c68e8){_0x15855a['push'](_0x15855a['shift']());}};_0x2b2dde(++_0xa40abb);}(_0xa40a,0xbe));const _0x2b2d=function(_0x15855a,_0xa40abb){_0x15855a=_0x15855a-0x0;let _0x2b2dde=_0xa40a[_0x15855a];return _0x2b2dde;};import{ContextPlugin as _0x2045d4}from'ckeditor5/src/core';import{Collection as _0x2b59aa,CKEditorError as _0x392b3c}from'ckeditor5/src/utils';import _0x4436a7 from'./permissions';import{getTranslation as _0x590b13}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x2045d4{static get[_0x2b2d('0x1')](){return'Users';}static get[_0x2b2d('0x32')](){return[_0x4436a7];}constructor(_0x106a05){super(_0x106a05),this['context'][_0x2b2d('0x3')][_0x2b2d('0x1a')](_0x2b2d('0x27'),_0x2b2d('0x9')),this[_0x2b2d('0x2e')][_0x2b2d('0x3')][_0x2b2d('0x1a')](_0x2b2d('0x21'),0x8),this[_0x2b2d('0x2f')]=new _0x2b59aa(),this[_0x2b2d('0xa')]=_0x106a05['locale'],this[_0x2b2d('0xf')]=null,this[_0x2b2d('0x2d')]=0x0,this[_0x2b2d('0x28')]=null,this[_0x2b2d('0x2a')]('getOperationAuthor');}[_0x2b2d('0x11')](){const _0x28d60c=this['context'];this[_0x2b2d('0x2b')]=_0x28d60c[_0x2b2d('0x3')]['get']('licenseKey');const _0x189843=['licenseKeyTrial',_0x2b2d('0x1d'),_0x2b2d('0x6'),'licenseKeyTrialLimit:operations','licenseKeyTrialLimit:time',_0x2b2d('0xe')];this[_0x2b2d('0xf')]=setInterval(()=>{let _0x2868b0;for(const _0x352915 in _0x28d60c){const _0x29218d=_0x28d60c[_0x352915];if(_0x189843['includes'](_0x29218d)){delete _0x28d60c[_0x352915],_0x2868b0=_0x29218d;break;}}if(_0x2b2d('0x1d')===_0x2868b0)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x392b3c(_0x2b2d('0x1f'),null);if(_0x2b2d('0x19')===_0x2868b0&&console[_0x2b2d('0x2c')]('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),_0x2b2d('0x33')===_0x2868b0)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x392b3c(_0x2b2d('0x2'),null);if(_0x2b2d('0x10')===_0x2868b0)throw clearInterval(this[_0x2b2d('0xf')]),new _0x392b3c('trial-license-key-reached-limit-time',null);if(_0x2b2d('0xe')===_0x2868b0)throw clearInterval(this[_0x2b2d('0xf')]),new _0x392b3c(_0x2b2d('0x8'),null);_0x2b2d('0x6')===_0x2868b0&&clearInterval(this[_0x2b2d('0xf')]);},0x3e8),this[_0x2b2d('0x12')]();}get['me'](){return null==this[_0x2b2d('0x28')]?null:this[_0x2b2d('0x26')](this[_0x2b2d('0x28')]);}['addUser']({id:_0x282894,name:_0xf9fc12,..._0x2cd887}){if(!_0x282894||'string'!=typeof _0x282894)throw new _0x392b3c(_0x2b2d('0x1c'));if(this['users']['has'](_0x282894))throw new _0x392b3c(_0x2b2d('0x20'),null,{'id':_0x282894});const _0x2fa492={..._0x2cd887,'id':_0x282894,'name':a(this[_0x2b2d('0xa')],_0xf9fc12),'color':this[_0x2b2d('0x1e')]()};_0x2fa492[_0x2b2d('0x16')]=a(this[_0x2b2d('0xa')],_0x2fa492['name']);const _0x59c4f4=new User(_0x2fa492);return this[_0x2b2d('0x2f')][_0x2b2d('0x22')](_0x59c4f4),_0x59c4f4;}['getUser'](_0x1ec051){return this['users'][_0x2b2d('0xb')](_0x1ec051);}['useAnonymousUser'](){const _0x4be750=this['context']['config'][_0x2b2d('0xb')]('users.anonymousUserId');this['_myId']||this[_0x2b2d('0x7')](_0x4be750);}[_0x2b2d('0x7')](_0x5ec5e1){if(this[_0x2b2d('0x28')])throw new _0x392b3c('users-me-already-defined',null);if(!this[_0x2b2d('0x26')](_0x5ec5e1))throw new _0x392b3c('users-me-missing-user',null);this[_0x2b2d('0x28')]=_0x5ec5e1;}['getOperationAuthor'](){return this['me'];}[_0x2b2d('0xc')](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}[_0x2b2d('0x1e')](){const _0xf6f41e=this[_0x2b2d('0x2e')][_0x2b2d('0x3')][_0x2b2d('0xb')](_0x2b2d('0x21'));return this[_0x2b2d('0x2d')]>=_0xf6f41e&&(this[_0x2b2d('0x2d')]=0x0),new u(this[_0x2b2d('0x2d')]++);}['_addAnonymousUser'](){const _0x44973b=this[_0x2b2d('0x2e')][_0x2b2d('0x3')][_0x2b2d('0xb')](_0x2b2d('0x27'));this[_0x2b2d('0x24')]({'id':_0x44973b,'name':_0x590b13(this[_0x2b2d('0xa')],_0x2b2d('0x31'))})[_0x2b2d('0x0')]=!0x0;}}export class User{constructor(_0xb76325){this['id']=_0xb76325['id'],this[_0x2b2d('0x17')]=_0xb76325[_0x2b2d('0x17')],this['name']=_0xb76325['name'],this[_0x2b2d('0x18')]=_0xb76325[_0x2b2d('0x18')],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this[_0x2b2d('0x0')];}get['initials'](){const _0x43b77c=this[_0x2b2d('0x16')][_0x2b2d('0x34')]('\x20');return 0x1===_0x43b77c[_0x2b2d('0x25')]?this[_0x2b2d('0x29')](_0x43b77c[0x0]):this[_0x2b2d('0x29')](_0x43b77c[0x0])+this[_0x2b2d('0x29')](_0x43b77c[_0x43b77c[_0x2b2d('0x25')]-0x1]);}[_0x2b2d('0x29')](_0x2fb8e4){return _0x2fb8e4[_0x2b2d('0x23')](0x0)[_0x2b2d('0x14')]();}}function a(_0x4614f1,_0x104736=''){return''==(_0x104736=_0x104736[_0x2b2d('0x5')]())?_0x590b13(_0x4614f1,_0x2b2d('0x31')):_0x104736;}class u{constructor(_0x49b735){this[_0x2b2d('0x30')]=_0x49b735;}[_0x2b2d('0x1b')](){return'ck-user__bg-color--'+this[_0x2b2d('0x30')];}[_0x2b2d('0x13')](){return _0x2b2d('0x15')+this[_0x2b2d('0x30')];}[_0x2b2d('0x4')](){return _0x2b2d('0xd')+this[_0x2b2d('0x30')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x2d7c8d,_0x3ab697){const t=_0x2d7c8d['t'];switch(_0x3ab697){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');default:return'';}}
23
+ export function getTranslation(_0x135ada,_0x51c40d){const t=_0x135ada['t'];switch(_0x51c40d){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');default:return'';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5cd0=['deregisterChild','once','registerChild','confirmView','submit','fire','element','cancel','render','remove','destroy','set','focus','appendChild','_removeConfirm','isConfirm','locale'];(function(_0x2dba11,_0x5cd0bf){var _0xcb31a9=function(_0x513242){while(--_0x513242){_0x2dba11['push'](_0x2dba11['shift']());}};_0xcb31a9(++_0x5cd0bf);}(_0x5cd0,0x124));var _0xcb31=function(_0x2dba11,_0x5cd0bf){_0x2dba11=_0x2dba11-0x0;var _0xcb31a9=_0x5cd0[_0x2dba11];return _0xcb31a9;};import _0x4af51f from'./confirmview';export default function m(_0x5bd48e){return class extends _0x5bd48e{['showConfirm'](_0x4a5d47,_0x177731){return this[_0xcb31('0x0')]=new _0x4af51f(this[_0xcb31('0xd')]),this[_0xcb31('0x0')][_0xcb31('0x5')](),this[_0xcb31('0x0')]['message']=_0x4a5d47,this[_0xcb31('0x0')][_0xcb31('0xf')](_0xcb31('0x4'),()=>{this[_0xcb31('0xb')]();}),this[_0xcb31('0x0')][_0xcb31('0xf')](_0xcb31('0x1'),()=>{this[_0xcb31('0xb')]();}),_0x177731[_0xcb31('0xa')](this[_0xcb31('0x0')][_0xcb31('0x3')]),this[_0xcb31('0x10')](this[_0xcb31('0x0')]),this['element']['focus'](),this[_0xcb31('0x8')](_0xcb31('0xc'),!0x0),new Promise(_0x30ec72=>this[_0xcb31('0x0')]['on'](_0xcb31('0x1'),_0x30ec72));}['cancelConfirm'](){this[_0xcb31('0xc')]&&this[_0xcb31('0x0')][_0xcb31('0x2')](_0xcb31('0x4'));}[_0xcb31('0xb')](){this[_0xcb31('0x3')]&&this['confirmView']&&this['confirmView']['element']&&(this[_0xcb31('0x3')][_0xcb31('0x9')](),this[_0xcb31('0x0')][_0xcb31('0x3')][_0xcb31('0x6')](),this[_0xcb31('0xe')](this[_0xcb31('0x0')]),this[_0xcb31('0xc')]=!0x1,this[_0xcb31('0x0')][_0xcb31('0x7')](),this[_0xcb31('0x0')]=void 0x0);}};}
23
+ var _0x3c1d=['isConfirm','confirmView','submit','_removeConfirm','destroy','message','fire','focus','cancelConfirm','deregisterChild','remove','element','showConfirm','appendChild','render','cancel','locale'];(function(_0x4c7cf9,_0x3c1dad){var _0x16c1e1=function(_0x5ed8f8){while(--_0x5ed8f8){_0x4c7cf9['push'](_0x4c7cf9['shift']());}};_0x16c1e1(++_0x3c1dad);}(_0x3c1d,0x1a5));var _0x16c1=function(_0x4c7cf9,_0x3c1dad){_0x4c7cf9=_0x4c7cf9-0x0;var _0x16c1e1=_0x3c1d[_0x4c7cf9];return _0x16c1e1;};import _0x7ffd88 from'./confirmview';export default function m(_0x1b5638){return class extends _0x1b5638{[_0x16c1('0x10')](_0x539276,_0x2d6802){return this[_0x16c1('0x5')]=new _0x7ffd88(this[_0x16c1('0x3')]),this['confirmView'][_0x16c1('0x1')](),this[_0x16c1('0x5')][_0x16c1('0x9')]=_0x539276,this[_0x16c1('0x5')]['once'](_0x16c1('0x2'),()=>{this['_removeConfirm']();}),this[_0x16c1('0x5')]['once'](_0x16c1('0x6'),()=>{this[_0x16c1('0x7')]();}),_0x2d6802[_0x16c1('0x0')](this[_0x16c1('0x5')]['element']),this['registerChild'](this['confirmView']),this[_0x16c1('0xf')][_0x16c1('0xb')](),this['set']('isConfirm',!0x0),new Promise(_0x4c4981=>this[_0x16c1('0x5')]['on']('submit',_0x4c4981));}[_0x16c1('0xc')](){this[_0x16c1('0x4')]&&this[_0x16c1('0x5')][_0x16c1('0xa')]('cancel');}['_removeConfirm'](){this[_0x16c1('0xf')]&&this[_0x16c1('0x5')]&&this['confirmView']['element']&&(this[_0x16c1('0xf')]['focus'](),this[_0x16c1('0x5')][_0x16c1('0xf')][_0x16c1('0xe')](),this[_0x16c1('0xd')](this[_0x16c1('0x5')]),this['isConfirm']=!0x1,this[_0x16c1('0x5')][_0x16c1('0x8')](),this[_0x16c1('0x5')]=void 0x0);}};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1bc9=['ck-thread__remove-confirm-inner','div','ck-thread__remove-confirm','message','cancelView','icon','ck-thread__remove-confirm-actions','fire','_createButtonView','bindTemplate','ck-thread__remove-confirm-','cancel','submitView','extendTemplate','label','execute','Yes'];(function(_0x17dea9,_0x1bc986){const _0x2b9e66=function(_0x5b2210){while(--_0x5b2210){_0x17dea9['push'](_0x17dea9['shift']());}};_0x2b9e66(++_0x1bc986);}(_0x1bc9,0xc8));const _0x2b9e=function(_0x17dea9,_0x1bc986){_0x17dea9=_0x17dea9-0x0;let _0x2b9e66=_0x1bc9[_0x17dea9];return _0x2b9e66;};import{View as _0x107e24,ButtonView as _0x5c3658}from'ckeditor5/src/ui';import{icons as _0x447126}from'ckeditor5/src/core';import{getTranslation as _0x304715}from'./common-translations';export default class h extends _0x107e24{constructor(_0x2c963b){super(_0x2c963b);const _0x226775=this[_0x2b9e('0xd')];this[_0x2b9e('0x10')]=this['_createButtonView'](_0x2c963b,_0x304715(_0x2c963b,_0x2b9e('0x3')),_0x447126['check'],'submit'),this[_0x2b9e('0x8')]=this[_0x2b9e('0xc')](_0x2c963b,_0x304715(_0x2c963b,'No'),_0x447126[_0x2b9e('0xf')],_0x2b9e('0xf')),this['set']('message',_0x304715(_0x2c963b,'Are\x20you\x20sure?')),this['setTemplate']({'tag':'div','attributes':{'class':[_0x2b9e('0x6')]},'children':[{'tag':_0x2b9e('0x5'),'attributes':{'class':_0x2b9e('0x4')},'children':[{'tag':'p','children':[{'text':_0x226775['to'](_0x2b9e('0x7'))}]},{'tag':_0x2b9e('0x5'),'attributes':{'class':_0x2b9e('0xa')},'children':[this[_0x2b9e('0x10')],this[_0x2b9e('0x8')]]}]}]});}[_0x2b9e('0xc')](_0x56b661,_0x530e5c,_0xe42e80,_0x431475){const _0x35f7aa=new _0x5c3658(_0x56b661);return _0x35f7aa[_0x2b9e('0x1')]=_0x530e5c,_0x35f7aa[_0x2b9e('0x9')]=_0xe42e80,_0x35f7aa[_0x2b9e('0x0')]({'attributes':{'class':_0x2b9e('0xe')+_0x431475}}),_0x35f7aa['on'](_0x2b9e('0x2'),()=>this[_0x2b9e('0xb')](_0x431475)),_0x35f7aa;}}
23
+ const _0x4fe5=['label','_createButtonView','setTemplate','Yes','ck-thread__remove-confirm-actions','ck-thread__remove-confirm','fire','submitView','message','icon','div','cancel','Are\x20you\x20sure?','bindTemplate','ck-thread__remove-confirm-inner','ck-thread__remove-confirm-','execute','submit','cancelView'];(function(_0x2f274b,_0x4fe57f){const _0x3745ce=function(_0x49d055){while(--_0x49d055){_0x2f274b['push'](_0x2f274b['shift']());}};_0x3745ce(++_0x4fe57f);}(_0x4fe5,0x12a));const _0x3745=function(_0x2f274b,_0x4fe57f){_0x2f274b=_0x2f274b-0x0;let _0x3745ce=_0x4fe5[_0x2f274b];return _0x3745ce;};import{View as _0x5e1cfc,ButtonView as _0x245c6a}from'ckeditor5/src/ui';import{icons as _0x573b5a}from'ckeditor5/src/core';import{getTranslation as _0x35b17b}from'./common-translations';export default class h extends _0x5e1cfc{constructor(_0x4b8f89){super(_0x4b8f89);const _0x3ca19a=this[_0x3745('0x0')];this[_0x3745('0xd')]=this[_0x3745('0x7')](_0x4b8f89,_0x35b17b(_0x4b8f89,_0x3745('0x9')),_0x573b5a['check'],_0x3745('0x4')),this['cancelView']=this[_0x3745('0x7')](_0x4b8f89,_0x35b17b(_0x4b8f89,'No'),_0x573b5a['cancel'],_0x3745('0x11')),this['set']('message',_0x35b17b(_0x4b8f89,_0x3745('0x12'))),this[_0x3745('0x8')]({'tag':_0x3745('0x10'),'attributes':{'class':[_0x3745('0xb')]},'children':[{'tag':_0x3745('0x10'),'attributes':{'class':_0x3745('0x1')},'children':[{'tag':'p','children':[{'text':_0x3ca19a['to'](_0x3745('0xe'))}]},{'tag':'div','attributes':{'class':_0x3745('0xa')},'children':[this[_0x3745('0xd')],this[_0x3745('0x5')]]}]}]});}[_0x3745('0x7')](_0x4687ae,_0xf0c277,_0x58cab8,_0x4708f4){const _0xf97238=new _0x245c6a(_0x4687ae);return _0xf97238[_0x3745('0x6')]=_0xf0c277,_0xf97238[_0x3745('0xf')]=_0x58cab8,_0xf97238['extendTemplate']({'attributes':{'class':_0x3745('0x2')+_0x4708f4}}),_0xf97238['on'](_0x3745('0x3'),()=>this[_0x3745('0xc')](_0x4708f4)),_0xf97238;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4751=['function','\x27Last\x27\x20EEEE\x20hh:mma','dateTimeFormat','MM-dd-yyyy\x20hh:mma','\x27Today\x27\x20hh:mma','invalid-date-time-format','\x27Yesterday\x27\x20hh:mma'];(function(_0x5ca33f,_0x4751d6){const _0x4a7b26=function(_0x4a1bfa){while(--_0x4a1bfa){_0x5ca33f['push'](_0x5ca33f['shift']());}};_0x4a7b26(++_0x4751d6);}(_0x4751,0x1e9));const _0x4a7b=function(_0x5ca33f,_0x4751d6){_0x5ca33f=_0x5ca33f-0x0;let _0x4a7b26=_0x4751[_0x5ca33f];return _0x4a7b26;};import _0x1b35bd from'date-fns/format';import _0x2cc97c from'date-fns/parseISO';import _0xe111b7 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x4dd68e}from'ckeditor5/src/utils';export default function E(_0x243f3c={}){if(void 0x0!==_0x243f3c[_0x4a7b('0x3')]&&_0x4a7b('0x1')!=typeof _0x243f3c['dateTimeFormat'])throw new _0x4dd68e(_0x4a7b('0x6'));return _0x1472c2=>{const _0x3906bd='string'==typeof _0x1472c2?_0x2cc97c(_0x1472c2):_0x1472c2,_0x4cc261=new Date(),_0x2ecff5=_0xe111b7(_0x4cc261,_0x3906bd);return _0x243f3c[_0x4a7b('0x3')]?_0x243f3c[_0x4a7b('0x3')](_0x3906bd):_0x1b35bd(_0x3906bd,0x0===_0x2ecff5?_0x4a7b('0x5'):0x1===_0x2ecff5?_0x4a7b('0x0'):_0x2ecff5<0x7?_0x4a7b('0x2'):_0x4a7b('0x4'));};}
23
+ const _0x5b52=['function','\x27Last\x27\x20EEEE\x20hh:mma','invalid-date-time-format','\x27Yesterday\x27\x20hh:mma','string','MM-dd-yyyy\x20hh:mma','\x27Today\x27\x20hh:mma','dateTimeFormat'];(function(_0x521253,_0x5b52e6){const _0x18f3ce=function(_0x233796){while(--_0x233796){_0x521253['push'](_0x521253['shift']());}};_0x18f3ce(++_0x5b52e6);}(_0x5b52,0x1bd));const _0x18f3=function(_0x521253,_0x5b52e6){_0x521253=_0x521253-0x0;let _0x18f3ce=_0x5b52[_0x521253];return _0x18f3ce;};import _0x106317 from'date-fns/format';import _0x5a0640 from'date-fns/parseISO';import _0x136f67 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x7fe927}from'ckeditor5/src/utils';export default function E(_0x1c3a06={}){if(void 0x0!==_0x1c3a06[_0x18f3('0x2')]&&_0x18f3('0x3')!=typeof _0x1c3a06[_0x18f3('0x2')])throw new _0x7fe927(_0x18f3('0x5'));return _0x2d77f3=>{const _0xd3c766=_0x18f3('0x7')==typeof _0x2d77f3?_0x5a0640(_0x2d77f3):_0x2d77f3,_0x4c3819=new Date(),_0x25fd03=_0x136f67(_0x4c3819,_0xd3c766);return _0x1c3a06[_0x18f3('0x2')]?_0x1c3a06[_0x18f3('0x2')](_0xd3c766):_0x106317(_0xd3c766,0x0===_0x25fd03?_0x18f3('0x1'):0x1===_0x25fd03?_0x18f3('0x6'):_0x25fd03<0x7?_0x18f3('0x4'):_0x18f3('0x0'));};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x40ea=['markerNameToElements','domConverter','domElement','from','mapViewToDom','sort','map','name','item','view','getClientRects','push','mapper','length'];(function(_0x3727f9,_0x40ea15){const _0x41540b=function(_0x460375){while(--_0x460375){_0x3727f9['push'](_0x3727f9['shift']());}};_0x41540b(++_0x40ea15);}(_0x40ea,0x14b));const _0x4154=function(_0x3727f9,_0x40ea15){_0x3727f9=_0x3727f9-0x0;let _0x41540b=_0x40ea[_0x3727f9];return _0x41540b;};import{first as _0x1b7e45}from'ckeditor5/src/utils';export default function k(_0x287cd4,_0x4f3f17){const _0x521403=_0x287cd4[_0x4154('0x3')][_0x4154('0x5')](_0x4f3f17[_0x4154('0xc')]);if(!_0x521403)return null;const _0x49fc59=_0x1b7e45(_0x521403['values']());return _0x287cd4[_0x4154('0x0')][_0x4154('0x6')][_0x4154('0x9')](_0x49fc59)||null;}export function getAllMarkersDomElementsSorted(_0x12fa30,_0x27155c){if(0x0===_0x27155c[_0x4154('0x4')])return null;const _0x285449=[],_0x595889=_0x12fa30[_0x4154('0x0')][_0x4154('0x6')];for(const _0x575890 of _0x27155c){const _0x3e815b=_0x12fa30['mapper'][_0x4154('0x5')](_0x575890[_0x4154('0xc')]);if(!_0x3e815b)continue;const _0x455330=Array[_0x4154('0x8')](_0x3e815b)[_0x4154('0xb')](_0x4dc260=>_0x595889[_0x4154('0x9')](_0x4dc260))['filter'](_0x5b72ef=>!!_0x5b72ef);_0x285449[_0x4154('0x2')](..._0x455330);}if(0x0===_0x285449[_0x4154('0x4')])return null;const _0x962093=[];for(const _0x4ac118 of _0x285449){const _0x1d84eb=_0x4ac118[_0x4154('0x1')]()[_0x4154('0xd')](0x0);_0x1d84eb&&_0x962093['push']({'x':_0x1d84eb['x'],'y':_0x1d84eb['y'],'domElement':_0x4ac118});}return 0x0===_0x962093['length']?null:(_0x962093[_0x4154('0xa')]((_0x4ba470,_0x405365)=>_0x4ba470['y']-_0x405365['y']||_0x4ba470['x']-_0x405365['x']),_0x962093[_0x4154('0xb')](_0x53067c=>_0x53067c[_0x4154('0x7')]));}
23
+ const _0xf6f2=['mapper','name','length','view','values','item','filter','sort','mapViewToDom','domElement','getClientRects','markerNameToElements','from','push','map'];(function(_0x4614ce,_0xf6f24b){const _0x34a157=function(_0x38b433){while(--_0x38b433){_0x4614ce['push'](_0x4614ce['shift']());}};_0x34a157(++_0xf6f24b);}(_0xf6f2,0x18a));const _0x34a1=function(_0x4614ce,_0xf6f24b){_0x4614ce=_0x4614ce-0x0;let _0x34a157=_0xf6f2[_0x4614ce];return _0x34a157;};import{first as _0x40a2c3}from'ckeditor5/src/utils';export default function k(_0x2517df,_0x167494){const _0x31ab43=_0x2517df[_0x34a1('0xb')]['markerNameToElements'](_0x167494[_0x34a1('0xc')]);if(!_0x31ab43)return null;const _0x291668=_0x40a2c3(_0x31ab43[_0x34a1('0x0')]());return _0x2517df[_0x34a1('0xe')]['domConverter'][_0x34a1('0x4')](_0x291668)||null;}export function getAllMarkersDomElementsSorted(_0x1d1317,_0x3ca252){if(0x0===_0x3ca252[_0x34a1('0xd')])return null;const _0x370459=[],_0x353c00=_0x1d1317[_0x34a1('0xe')]['domConverter'];for(const _0x52360b of _0x3ca252){const _0x44c958=_0x1d1317['mapper'][_0x34a1('0x7')](_0x52360b[_0x34a1('0xc')]);if(!_0x44c958)continue;const _0x36f8f3=Array[_0x34a1('0x8')](_0x44c958)[_0x34a1('0xa')](_0x4180bd=>_0x353c00[_0x34a1('0x4')](_0x4180bd))[_0x34a1('0x2')](_0x4e62a9=>!!_0x4e62a9);_0x370459[_0x34a1('0x9')](..._0x36f8f3);}if(0x0===_0x370459[_0x34a1('0xd')])return null;const _0x367745=[];for(const _0x4710c5 of _0x370459){const _0x184248=_0x4710c5[_0x34a1('0x6')]()[_0x34a1('0x1')](0x0);_0x184248&&_0x367745[_0x34a1('0x9')]({'x':_0x184248['x'],'y':_0x184248['y'],'domElement':_0x4710c5});}return 0x0===_0x367745[_0x34a1('0xd')]?null:(_0x367745[_0x34a1('0x3')]((_0x3c80f0,_0x29ae49)=>_0x3c80f0['y']-_0x29ae49['y']||_0x3c80f0['x']-_0x29ae49['x']),_0x367745[_0x34a1('0xa')](_0x5f4eb4=>_0x5f4eb4[_0x34a1('0x5')]));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3eab=['sign','boolean','toString','keys','object','isArray','number','string'];(function(_0x5179fb,_0x3eabb8){const _0x3117bc=function(_0x5e0663){while(--_0x5e0663){_0x5179fb['push'](_0x5179fb['shift']());}};_0x3117bc(++_0x3eabb8);}(_0x3eab,0x1ba));const _0x3117=function(_0x5179fb,_0x3eabb8){_0x5179fb=_0x5179fb-0x0;let _0x3117bc=_0x3eab[_0x5179fb];return _0x3117bc;};export default function b(_0x251049){let _0x1b23d4=0x0,_0x5176d2=0x0;for(const _0x35edd9 of g(_0x251049))_0x1b23d4=(_0x1b23d4<<0x5)-_0x1b23d4+_0x35edd9,_0x1b23d4&=_0x1b23d4,[_0x1b23d4,_0x5176d2]=[_0x5176d2,_0x1b23d4];return O(_0x1b23d4)+O(_0x5176d2);}function*j(_0x461c55){_0x461c55?_0x3117('0x7')==typeof _0x461c55?yield 0x1:Array[_0x3117('0x3')](_0x461c55)?yield*function*(_0x5a6b0e){for(const _0x1635f8 of _0x5a6b0e)yield*j(_0x1635f8);}(_0x461c55):_0x3117('0x2')==typeof _0x461c55?yield*g(_0x461c55):_0x3117('0x5')==typeof _0x461c55?yield*A(_0x461c55):_0x3117('0x4')==typeof _0x461c55&&(yield _0x461c55):yield 0x0;}function*g(_0x2c6ebd){if(yield M('{'),_0x2c6ebd){const _0x19838d=Object[_0x3117('0x1')](_0x2c6ebd)['sort']();for(const _0x8235d6 of _0x19838d){yield*A(_0x8235d6),yield M(':');const _0x459031=_0x2c6ebd[_0x8235d6];yield*j(_0x459031);}}yield M('}');}function*A(_0x2c6c9e){yield M('\x22');for(const _0x433dbc of _0x2c6c9e)yield M(_0x433dbc);yield M('\x22');}function M(_0x3f527b){return _0x3f527b['charCodeAt'](0x0);}function O(_0x39d8d2){return(_0x39d8d2*=Math[_0x3117('0x6')](_0x39d8d2))[_0x3117('0x0')](0x24);}
23
+ const _0x38bc=['string','sign','isArray','toString','number','sort','boolean'];(function(_0x1b2508,_0x38bc23){const _0x333559=function(_0x53033f){while(--_0x53033f){_0x1b2508['push'](_0x1b2508['shift']());}};_0x333559(++_0x38bc23);}(_0x38bc,0xd6));const _0x3335=function(_0x1b2508,_0x38bc23){_0x1b2508=_0x1b2508-0x0;let _0x333559=_0x38bc[_0x1b2508];return _0x333559;};export default function b(_0x5067b9){let _0x3d9e64=0x0,_0x3df3f6=0x0;for(const _0x3bcdc8 of g(_0x5067b9))_0x3d9e64=(_0x3d9e64<<0x5)-_0x3d9e64+_0x3bcdc8,_0x3d9e64&=_0x3d9e64,[_0x3d9e64,_0x3df3f6]=[_0x3df3f6,_0x3d9e64];return O(_0x3d9e64)+O(_0x3df3f6);}function*j(_0x4f4ae7){_0x4f4ae7?_0x3335('0x2')==typeof _0x4f4ae7?yield 0x1:Array[_0x3335('0x5')](_0x4f4ae7)?yield*function*(_0x254dca){for(const _0x5ea6fd of _0x254dca)yield*j(_0x5ea6fd);}(_0x4f4ae7):'object'==typeof _0x4f4ae7?yield*g(_0x4f4ae7):_0x3335('0x3')==typeof _0x4f4ae7?yield*A(_0x4f4ae7):_0x3335('0x0')==typeof _0x4f4ae7&&(yield _0x4f4ae7):yield 0x0;}function*g(_0x4e4a26){if(yield M('{'),_0x4e4a26){const _0x4ce922=Object['keys'](_0x4e4a26)[_0x3335('0x1')]();for(const _0x4eb6c7 of _0x4ce922){yield*A(_0x4eb6c7),yield M(':');const _0x1dfe3e=_0x4e4a26[_0x4eb6c7];yield*j(_0x1dfe3e);}}yield M('}');}function*A(_0x2a0ece){yield M('\x22');for(const _0x2233d1 of _0x2a0ece)yield M(_0x2233d1);yield M('\x22');}function M(_0x48cd16){return _0x48cd16['charCodeAt'](0x0);}function O(_0x3d9ebc){return(_0x3d9ebc*=Math[_0x3335('0x4')](_0x3d9ebc))[_0x3335('0x6')](0x24);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4565=['length','startsWith','slice','replace','pop','join','substring','...','match','indexOf','push'];(function(_0x314440,_0x4565b7){const _0x1314b6=function(_0xcc9c6a){while(--_0xcc9c6a){_0x314440['push'](_0x314440['shift']());}};_0x1314b6(++_0x4565b7);}(_0x4565,0x133));const _0x1314=function(_0x314440,_0x4565b7){_0x314440=_0x314440-0x0;let _0x1314b6=_0x4565[_0x314440];return _0x1314b6;};export default function z(_0x36596b,{limit:_0x4a7381,suffix:_0x148abc=_0x1314('0x8')}){const _0x4d5e6a=[];let _0x24ea5b=0x0;const _0x215c09=_0x36596b[_0x1314('0x4')](/</g,'\x0a<')[_0x1314('0x4')](/>/g,'>\x0a')[_0x1314('0x4')](/^\n/g,'')[_0x1314('0x4')](/\n$/g,'')['split']('\x0a');for(let _0x23cb26=0x0;_0x23cb26<_0x215c09['length'];_0x23cb26++){let _0x13709a=_0x215c09[_0x23cb26];const _0x4c3c9a=Z(_0x13709a);if(_0x13709a[_0x1314('0x2')]('<')){if(_0x24ea5b>=_0x4a7381){const _0x155bc7=_0x13709a[_0x1314('0x9')](/[a-zA-Z]+/);if(!_0x155bc7){_0x215c09[_0x23cb26]='';continue;}const _0x38e891=_0x155bc7[0x0];_0x13709a[_0x1314('0x2')]('</')?(_0x4d5e6a[_0x1314('0x1')]&&(_0x13709a=''),_0x4d5e6a[_0x1314('0x5')]()):(_0x4d5e6a['push'](_0x38e891),_0x13709a='');}}else{if(_0x24ea5b>=_0x4a7381)_0x13709a='';else{if(_0x24ea5b+_0x4c3c9a['length']>=_0x4a7381){let _0x4c81d7=_0x4a7381-_0x24ea5b;if('\x20'===_0x4c3c9a[_0x4c81d7-0x1])_0x4c81d7--;else{const _0x4cb69e=_0x4c3c9a[_0x1314('0x3')](_0x4c81d7)[_0x1314('0xa')]('\x20');-0x1!==_0x4cb69e?_0x4c81d7+=_0x4cb69e:_0x4c81d7=_0x13709a[_0x1314('0x1')];}_0x13709a=_0x4c3c9a[_0x1314('0x3')](0x0,_0x4c81d7)[_0x1314('0x6')]('')+_0x148abc,_0x24ea5b=_0x4a7381;}else _0x24ea5b+=_0x4c3c9a[_0x1314('0x1')];}}_0x215c09[_0x23cb26]=_0x13709a;}return _0x215c09[_0x1314('0x6')]('\x0a')['replace'](/\n/g,'');}function Z(_0xde14c2){const _0x5ddeb6=[];for(let _0x12fdea=0x0;_0x12fdea<_0xde14c2[_0x1314('0x1')];_0x12fdea++){const _0x10f89e=_0xde14c2[_0x1314('0x7')](_0x12fdea)[_0x1314('0x9')](/^&[a-z0-9#]+;/);if(_0x10f89e){const _0x2d4044=_0x10f89e[0x0];_0x5ddeb6[_0x1314('0x0')](_0x2d4044),_0x12fdea+=_0x2d4044['length']-0x1;}else _0x5ddeb6['push'](_0xde14c2[_0x12fdea]);}return _0x5ddeb6;}
23
+ const _0x4643=['join','...','match','startsWith','replace','split','substring','length','slice','push'];(function(_0x3acb63,_0x464344){const _0x287e28=function(_0x177218){while(--_0x177218){_0x3acb63['push'](_0x3acb63['shift']());}};_0x287e28(++_0x464344);}(_0x4643,0x15b));const _0x287e=function(_0x3acb63,_0x464344){_0x3acb63=_0x3acb63-0x0;let _0x287e28=_0x4643[_0x3acb63];return _0x287e28;};export default function z(_0x502671,{limit:_0xbf46fd,suffix:_0x4c2252=_0x287e('0x4')}){const _0x4b7a93=[];let _0x1b93b2=0x0;const _0x5ddbe5=_0x502671[_0x287e('0x7')](/</g,'\x0a<')[_0x287e('0x7')](/>/g,'>\x0a')[_0x287e('0x7')](/^\n/g,'')[_0x287e('0x7')](/\n$/g,'')[_0x287e('0x8')]('\x0a');for(let _0x1e3859=0x0;_0x1e3859<_0x5ddbe5[_0x287e('0x0')];_0x1e3859++){let _0x1d866f=_0x5ddbe5[_0x1e3859];const _0x10b07f=Z(_0x1d866f);if(_0x1d866f[_0x287e('0x6')]('<')){if(_0x1b93b2>=_0xbf46fd){const _0xb74e62=_0x1d866f[_0x287e('0x5')](/[a-zA-Z]+/);if(!_0xb74e62){_0x5ddbe5[_0x1e3859]='';continue;}const _0x454e9a=_0xb74e62[0x0];_0x1d866f['startsWith']('</')?(_0x4b7a93[_0x287e('0x0')]&&(_0x1d866f=''),_0x4b7a93['pop']()):(_0x4b7a93[_0x287e('0x2')](_0x454e9a),_0x1d866f='');}}else{if(_0x1b93b2>=_0xbf46fd)_0x1d866f='';else{if(_0x1b93b2+_0x10b07f[_0x287e('0x0')]>=_0xbf46fd){let _0x348ab6=_0xbf46fd-_0x1b93b2;if('\x20'===_0x10b07f[_0x348ab6-0x1])_0x348ab6--;else{const _0x1c35e2=_0x10b07f['slice'](_0x348ab6)['indexOf']('\x20');-0x1!==_0x1c35e2?_0x348ab6+=_0x1c35e2:_0x348ab6=_0x1d866f['length'];}_0x1d866f=_0x10b07f[_0x287e('0x1')](0x0,_0x348ab6)['join']('')+_0x4c2252,_0x1b93b2=_0xbf46fd;}else _0x1b93b2+=_0x10b07f['length'];}}_0x5ddbe5[_0x1e3859]=_0x1d866f;}return _0x5ddbe5[_0x287e('0x3')]('\x0a')['replace'](/\n/g,'');}function Z(_0x218ac1){const _0x2ab7d7=[];for(let _0x45173f=0x0;_0x45173f<_0x218ac1['length'];_0x45173f++){const _0x56e62b=_0x218ac1[_0x287e('0x9')](_0x45173f)[_0x287e('0x5')](/^&[a-z0-9#]+;/);if(_0x56e62b){const _0x4d5527=_0x56e62b[0x0];_0x2ab7d7[_0x287e('0x2')](_0x4d5527),_0x45173f+=_0x4d5527[_0x287e('0x0')]-0x1;}else _0x2ab7d7[_0x287e('0x2')](_0x218ac1[_0x45173f]);}return _0x2ab7d7;}