@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20230913.0 → 0.0.0-nightly-20230914.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "0.0.0-nightly-20230913.0",
3
+ "version": "0.0.0-nightly-20230914.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/)",
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "main": "src/index.js",
33
33
  "dependencies": {
34
- "ckeditor5": "0.0.0-nightly-20230913.0",
34
+ "ckeditor5": "0.0.0-nightly-20230914.0",
35
35
  "date-fns": "2.30.0"
36
36
  },
37
37
  "files": [
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x488c=['plugins','includes','CommentsOnly','commands','config','context','addCommentThread','comment:admin','permissions-set-permissions-invalid-channel-id','get','document:write','setPermissions','no-permissions','find','noPermissions','comment:write','disableReadOnlyMode','collaboration.channelId','enableReadOnlyMode','editors','comment:modify_all'];(function(_0x23105b,_0x488c02){const _0x1f76a1=function(_0x2ba275){while(--_0x2ba275){_0x23105b['push'](_0x23105b['shift']());}};_0x1f76a1(++_0x488c02);}(_0x488c,0xf7));const _0x1f76=function(_0x23105b,_0x488c02){_0x23105b=_0x23105b-0x0;let _0x1f76a1=_0x488c[_0x23105b];return _0x1f76a1;};import{ContextPlugin as _0xebcb96,Editor as _0x130f53}from'ckeditor5/src/core';import{CKEditorError as _0x2602c2}from'ckeditor5/src/utils';export default class n extends _0xebcb96{static get['pluginName'](){return'Permissions';}['setPermissions'](_0x3afbb8,_0x5872f4){let _0x1739db;if(_0x5872f4||(_0x5872f4=this[_0x1f76('0xa')]['config'][_0x1f76('0xe')](_0x1f76('0x1'))),this['context'][_0x1f76('0x9')][_0x1f76('0xe')](_0x1f76('0x1'))==_0x5872f4?_0x1739db=this[_0x1f76('0xa')]:_0x1f76('0x3')in this[_0x1f76('0xa')]&&this[_0x1f76('0xa')][_0x1f76('0x3')]&&(_0x1739db=this[_0x1f76('0xa')][_0x1f76('0x3')][_0x1f76('0x12')](_0x230913=>_0x230913[_0x1f76('0x9')][_0x1f76('0xe')]('collaboration.channelId')==_0x5872f4)),!_0x1739db)throw new _0x2602c2(_0x1f76('0xd'),null);const _0x211d72=_0x1739db[_0x1f76('0x5')],_0x3fbd19=_0x211d72['has']('CommentsRepository')?_0x211d72[_0x1f76('0xe')]('CommentsRepository'):void 0x0,_0x27eedc=_0x211d72['has'](_0x1f76('0x7'))&&_0x211d72[_0x1f76('0xe')]('CommentsOnly'),_0x23214a=_0x3afbb8['includes'](_0x1f76('0xf')),_0x1f9443=_0x3afbb8[_0x1f76('0x6')](_0x1f76('0x4')),_0x5abbf9=_0x3afbb8[_0x1f76('0x6')](_0x1f76('0xc')),_0x228c84=_0x3afbb8[_0x1f76('0x6')](_0x1f76('0x14')),_0x28771e=_0x228c84||_0x5abbf9,_0x3db2c3=_0x28771e||_0x1f9443,_0x358611=_0x23214a||_0x28771e;(_0x27eedc&&(_0x27eedc['isEnabled']=!_0x23214a&&_0x3db2c3),_0x1739db instanceof _0x130f53)&&(!(_0x23214a||_0x3db2c3&&_0x3fbd19)?_0x1739db[_0x1f76('0x2')]('no-permissions'):_0x1739db[_0x1f76('0x0')](_0x1f76('0x11')));if(_0x3fbd19){_0x3fbd19[_0x1f76('0x10')]({'admin':_0x5abbf9,'modifyAll':_0x1f9443,'write':_0x228c84,'resolve':_0x358611},_0x5872f4);const _0x1a76ef=_0x1739db instanceof _0x130f53&&_0x1739db[_0x1f76('0x8')][_0x1f76('0xe')](_0x1f76('0xb'));_0x1a76ef&&(_0x28771e?_0x1a76ef['clearForceDisabled'](_0x1f76('0x13')):_0x1a76ef['forceDisabled'](_0x1f76('0x13')));}}}
23
+ const _0x1499=['enableReadOnlyMode','context','disableReadOnlyMode','find','editors','collaboration.channelId','comment:modify_all','addCommentThread','comment:write','setPermissions','CommentsOnly','get','forceDisabled','clearForceDisabled','document:write','plugins','includes','config','no-permissions','isEnabled','noPermissions','pluginName','comment:admin'];(function(_0x335b2c,_0x14992f){const _0x3a7239=function(_0x3f042f){while(--_0x3f042f){_0x335b2c['push'](_0x335b2c['shift']());}};_0x3a7239(++_0x14992f);}(_0x1499,0x13b));const _0x3a72=function(_0x335b2c,_0x14992f){_0x335b2c=_0x335b2c-0x0;let _0x3a7239=_0x1499[_0x335b2c];return _0x3a7239;};import{ContextPlugin as _0x390f79,Editor as _0x5f2178}from'ckeditor5/src/core';import{CKEditorError as _0x3d4f86}from'ckeditor5/src/utils';export default class n extends _0x390f79{static get[_0x3a72('0x5')](){return'Permissions';}[_0x3a72('0x10')](_0x5cc8f1,_0xc288bc){let _0x184806;if(_0xc288bc||(_0xc288bc=this['context'][_0x3a72('0x1')][_0x3a72('0x12')](_0x3a72('0xc'))),this[_0x3a72('0x8')][_0x3a72('0x1')][_0x3a72('0x12')](_0x3a72('0xc'))==_0xc288bc?_0x184806=this[_0x3a72('0x8')]:'editors'in this[_0x3a72('0x8')]&&this[_0x3a72('0x8')][_0x3a72('0xb')]&&(_0x184806=this['context'][_0x3a72('0xb')][_0x3a72('0xa')](_0x29d8d7=>_0x29d8d7['config'][_0x3a72('0x12')](_0x3a72('0xc'))==_0xc288bc)),!_0x184806)throw new _0x3d4f86('permissions-set-permissions-invalid-channel-id',null);const _0x208d39=_0x184806[_0x3a72('0x16')],_0x5b0e4d=_0x208d39['has']('CommentsRepository')?_0x208d39['get']('CommentsRepository'):void 0x0,_0x76dc9b=_0x208d39['has'](_0x3a72('0x11'))&&_0x208d39[_0x3a72('0x12')](_0x3a72('0x11')),_0x4369c7=_0x5cc8f1['includes'](_0x3a72('0x15')),_0x32b8e8=_0x5cc8f1[_0x3a72('0x0')](_0x3a72('0xd')),_0x4f09c4=_0x5cc8f1[_0x3a72('0x0')](_0x3a72('0x6')),_0x14e11e=_0x5cc8f1[_0x3a72('0x0')](_0x3a72('0xf')),_0x283637=_0x14e11e||_0x4f09c4,_0x48e279=_0x283637||_0x32b8e8,_0x3176b2=_0x4369c7||_0x283637;(_0x76dc9b&&(_0x76dc9b[_0x3a72('0x3')]=!_0x4369c7&&_0x48e279),_0x184806 instanceof _0x5f2178)&&(!(_0x4369c7||_0x48e279&&_0x5b0e4d)?_0x184806[_0x3a72('0x7')](_0x3a72('0x2')):_0x184806[_0x3a72('0x9')]('no-permissions'));if(_0x5b0e4d){_0x5b0e4d['setPermissions']({'admin':_0x4f09c4,'modifyAll':_0x32b8e8,'write':_0x14e11e,'resolve':_0x3176b2},_0xc288bc);const _0x51c23a=_0x184806 instanceof _0x5f2178&&_0x184806['commands'][_0x3a72('0x12')](_0x3a72('0xe'));_0x51c23a&&(_0x283637?_0x51c23a[_0x3a72('0x14')](_0x3a72('0x4')):_0x51c23a[_0x3a72('0x13')]('noPermissions'));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f37=['push','url(\x27','div','avatar','ck-user__notification','notificationView','ck\x20ck-user__name','setTemplate','name','ck-user__img','extendTemplate','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__anonymous','ck-user','ck-user__icon','isAnonymous'];(function(_0x1f7675,_0x3f372e){const _0x25cef4=function(_0x14bebf){while(--_0x14bebf){_0x1f7675['push'](_0x1f7675['shift']());}};_0x25cef4(++_0x3f372e);}(_0x3f37,0x6c));const _0x25ce=function(_0x1f7675,_0x3f372e){_0x1f7675=_0x1f7675-0x0;let _0x25cef4=_0x3f37[_0x1f7675];return _0x25cef4;};import{View as _0xfe1ef2,IconView as _0x553751}from'ckeditor5/src/ui';import _0x335da1 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0xfe1ef2{constructor(_0x5eb3fa,_0x3fdc04,_0xf9da0b){super(_0x5eb3fa),this[_0x25ce('0xc')]=_0x3fdc04['name'],this[_0x25ce('0x9')]=null;const _0xdf0c6e=['ck',_0x25ce('0xd')];if(_0x3fdc04[_0x25ce('0x3')]&&_0xdf0c6e['push'](_0x25ce('0x0')),_0x3fdc04['avatar']&&_0xdf0c6e[_0x25ce('0x4')]('ck-user__avatar'),_0xf9da0b){const _0x3cb17f=new _0x553751();_0x3cb17f[_0x25ce('0xe')]({'attributes':{'class':[_0x25ce('0x2')]}}),_0x3cb17f['content']=_0x335da1,this['notificationView']={'tag':_0x25ce('0x6'),'attributes':{'class':['ck',_0x25ce('0x8')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0xf9da0b},'children':[_0x3cb17f]};}const _0x6e3be4=[{'tag':'div','attributes':{'class':_0xdf0c6e,'style':{'background-image':_0x3fdc04['avatar']?_0x25ce('0x5')+_0x3fdc04['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x3fdc04[_0x25ce('0x7')]?_0x25ce('0xf'):_0x25ce('0xa')},'children':[{'text':_0x3fdc04['initials']}]}];this[_0x25ce('0x9')]&&_0x6e3be4[_0x25ce('0x4')](this[_0x25ce('0x9')]),this[_0x25ce('0xb')]({'tag':_0x25ce('0x6'),'attributes':{'class':['ck',_0x25ce('0x1')],'data-user-id':_0x3fdc04['id']},'children':_0x6e3be4});}}
23
+ const _0x34ba=['ck\x20ck-user__name','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user','notificationView','setTemplate','avatar','isAnonymous','ck-user__avatar','ck-user__icon','content','name','div','push','extendTemplate','ck-user__img','ck-user__anonymous'];(function(_0x567294,_0x34ba33){const _0x9f8412=function(_0x454abe){while(--_0x454abe){_0x567294['push'](_0x567294['shift']());}};_0x9f8412(++_0x34ba33);}(_0x34ba,0x7a));const _0x9f84=function(_0x567294,_0x34ba33){_0x567294=_0x567294-0x0;let _0x9f8412=_0x34ba[_0x567294];return _0x9f8412;};import{View as _0x5cee71,IconView as _0x2ad5a0}from'ckeditor5/src/ui';import _0x4159a1 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0x5cee71{constructor(_0x2a3d27,_0x132d01,_0x3d613f){super(_0x2a3d27),this[_0x9f84('0x0')]=_0x132d01[_0x9f84('0x0')],this['notificationView']=null;const _0x14b230=['ck',_0x9f84('0x4')];if(_0x132d01[_0x9f84('0xc')]&&_0x14b230[_0x9f84('0x2')](_0x9f84('0x5')),_0x132d01[_0x9f84('0xb')]&&_0x14b230[_0x9f84('0x2')](_0x9f84('0xd')),_0x3d613f){const _0x898190=new _0x2ad5a0();_0x898190[_0x9f84('0x3')]({'attributes':{'class':[_0x9f84('0xe')]}}),_0x898190[_0x9f84('0xf')]=_0x4159a1,this['notificationView']={'tag':_0x9f84('0x1'),'attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x3d613f},'children':[_0x898190]};}const _0x558467=[{'tag':_0x9f84('0x1'),'attributes':{'class':_0x14b230,'style':{'background-image':_0x132d01[_0x9f84('0xb')]?'url(\x27'+_0x132d01['avatar']+'\x27)':''}}},{'tag':_0x9f84('0x1'),'attributes':{'class':_0x132d01[_0x9f84('0xb')]?_0x9f84('0x7'):_0x9f84('0x6')},'children':[{'text':_0x132d01['initials']}]}];this['notificationView']&&_0x558467[_0x9f84('0x2')](this[_0x9f84('0x9')]),this[_0x9f84('0xa')]({'tag':_0x9f84('0x1'),'attributes':{'class':['ck',_0x9f84('0x8')],'data-user-id':_0x132d01['id']},'children':_0x558467});}}
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x474d=['getBackgroundColorClass','trial-license-key-reached-limit-time','decorate','charAt','licenseKeyInvalid','licenseKey','users-add-duplicated-id','getSelectionClass','trial-license-key-reached-limit-revisions','color','licenseKeyValid','ck-user__selection--','length','invalid-license-key','get','Anonymous','users','licenseKeyTrial','_locale','has','licenseKeyTrialLimit:revisions','string','anonymous-user','trial-license-key-reached-limit-changes','licenseKeyTrialLimit:operations','info','avatar','context','useAnonymousUser','_id','Users','users.colorsCount','_licenseKeyCheckInterval','_getNextColor','name','ck-user__bg-color--','_isAnonymous','split','initials','_myId','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.','addUser','getUser','config','pluginName','define','licenseKeyTrialLimit:time','init','requires','users-me-already-defined','getMarkerClass','defineMe','getOperationAuthor','_lastColor','locale','destroy','toUpperCase','_getInitial','_addAnonymousUser','add','users-me-missing-user','users.anonymousUserId','includes'];(function(_0x4c4564,_0x474d1c){const _0x495131=function(_0x50fc27){while(--_0x50fc27){_0x4c4564['push'](_0x4c4564['shift']());}};_0x495131(++_0x474d1c);}(_0x474d,0x1a4));const _0x4951=function(_0x4c4564,_0x474d1c){_0x4c4564=_0x4c4564-0x0;let _0x495131=_0x474d[_0x4c4564];return _0x495131;};import{ContextPlugin as _0x1b2a39}from'ckeditor5/src/core';import{Collection as _0x483e2e,CKEditorError as _0x1c0d9f}from'ckeditor5/src/utils';import _0xa03c42 from'./permissions';import{getTranslation as _0x5b3d3d}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x1b2a39{static get[_0x4951('0x2')](){return _0x4951('0x33');}static get[_0x4951('0x6')](){return[_0xa03c42];}constructor(_0xf136de){super(_0xf136de),this[_0x4951('0x30')][_0x4951('0x1')]['define']('users.anonymousUserId',_0x4951('0x2b')),this[_0x4951('0x30')][_0x4951('0x1')][_0x4951('0x3')](_0x4951('0x34'),0x8),this[_0x4951('0x25')]=new _0x483e2e(),this['_locale']=_0xf136de[_0x4951('0xc')],this['_licenseKeyCheckInterval']=null,this[_0x4951('0xb')]=0x0,this[_0x4951('0x3c')]=null,this[_0x4951('0x17')]('getOperationAuthor');}[_0x4951('0x5')](){const _0x24acaf=this[_0x4951('0x30')];this['licenseKey']=_0x24acaf['config']['get'](_0x4951('0x1a'));const _0x2d0d70=[_0x4951('0x26'),'licenseKeyInvalid',_0x4951('0x1f'),'licenseKeyTrialLimit:operations','licenseKeyTrialLimit:time',_0x4951('0x29')];this[_0x4951('0x35')]=setInterval(()=>{let _0x4f10cc;for(const _0x4ef438 in _0x24acaf){const _0x23b3fc=_0x24acaf[_0x4ef438];if(_0x2d0d70[_0x4951('0x14')](_0x23b3fc)){delete _0x24acaf[_0x4ef438],_0x4f10cc=_0x23b3fc;break;}}if(_0x4951('0x19')===_0x4f10cc)throw clearInterval(this[_0x4951('0x35')]),new _0x1c0d9f(_0x4951('0x22'),null);if(_0x4951('0x26')===_0x4f10cc&&console[_0x4951('0x2e')](_0x4951('0x3d')),_0x4951('0x2d')===_0x4f10cc)throw clearInterval(this[_0x4951('0x35')]),new _0x1c0d9f(_0x4951('0x2c'),null);if(_0x4951('0x4')===_0x4f10cc)throw clearInterval(this[_0x4951('0x35')]),new _0x1c0d9f(_0x4951('0x16'),null);if('licenseKeyTrialLimit:revisions'===_0x4f10cc)throw clearInterval(this[_0x4951('0x35')]),new _0x1c0d9f(_0x4951('0x1d'),null);'licenseKeyValid'===_0x4f10cc&&clearInterval(this[_0x4951('0x35')]);},0x3e8),this[_0x4951('0x10')]();}get['me'](){return null==this['_myId']?null:this['getUser'](this[_0x4951('0x3c')]);}['addUser']({id:_0x57479f,name:_0x255604,..._0x2c7106}){if(!_0x57479f||_0x4951('0x2a')!=typeof _0x57479f)throw new _0x1c0d9f('users-add-invalid-id');if(this[_0x4951('0x25')][_0x4951('0x28')](_0x57479f))throw new _0x1c0d9f(_0x4951('0x1b'),null,{'id':_0x57479f});const _0x841b9a={..._0x2c7106,'id':_0x57479f,'name':a(this[_0x4951('0x27')],_0x255604),'color':this[_0x4951('0x36')]()};_0x841b9a['name']=a(this['_locale'],_0x841b9a[_0x4951('0x37')]);const _0x1fd8e0=new User(_0x841b9a);return this[_0x4951('0x25')][_0x4951('0x11')](_0x1fd8e0),_0x1fd8e0;}['getUser'](_0x50007b){return this[_0x4951('0x25')]['get'](_0x50007b);}[_0x4951('0x31')](){const _0x1923bc=this[_0x4951('0x30')][_0x4951('0x1')][_0x4951('0x23')]('users.anonymousUserId');this[_0x4951('0x3c')]||this[_0x4951('0x9')](_0x1923bc);}[_0x4951('0x9')](_0x43eaac){if(this[_0x4951('0x3c')])throw new _0x1c0d9f(_0x4951('0x7'),null);if(!this[_0x4951('0x0')](_0x43eaac))throw new _0x1c0d9f(_0x4951('0x12'),null);this[_0x4951('0x3c')]=_0x43eaac;}[_0x4951('0xa')](){return this['me'];}['destroy'](){super[_0x4951('0xd')](),clearInterval(this[_0x4951('0x35')]);}[_0x4951('0x36')](){const _0x19b0c1=this[_0x4951('0x30')][_0x4951('0x1')][_0x4951('0x23')](_0x4951('0x34'));return this[_0x4951('0xb')]>=_0x19b0c1&&(this['_lastColor']=0x0),new u(this['_lastColor']++);}[_0x4951('0x10')](){const _0x17ce69=this[_0x4951('0x30')]['config'][_0x4951('0x23')](_0x4951('0x13'));this[_0x4951('0x3e')]({'id':_0x17ce69,'name':_0x5b3d3d(this[_0x4951('0x27')],_0x4951('0x24'))})['_isAnonymous']=!0x0;}}export class User{constructor(_0x34c1f4){this['id']=_0x34c1f4['id'],this[_0x4951('0x1e')]=_0x34c1f4['color'],this[_0x4951('0x37')]=_0x34c1f4[_0x4951('0x37')],this[_0x4951('0x2f')]=_0x34c1f4[_0x4951('0x2f')],this[_0x4951('0x39')]=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get[_0x4951('0x3b')](){const _0xe95b96=this['name'][_0x4951('0x3a')]('\x20');return 0x1===_0xe95b96['length']?this[_0x4951('0xf')](_0xe95b96[0x0]):this[_0x4951('0xf')](_0xe95b96[0x0])+this[_0x4951('0xf')](_0xe95b96[_0xe95b96[_0x4951('0x21')]-0x1]);}[_0x4951('0xf')](_0xf20106){return _0xf20106[_0x4951('0x18')](0x0)[_0x4951('0xe')]();}}function a(_0x381404,_0x77171=''){return''==(_0x77171=_0x77171['trim']())?_0x5b3d3d(_0x381404,_0x4951('0x24')):_0x77171;}class u{constructor(_0x431309){this['_id']=_0x431309;}[_0x4951('0x15')](){return _0x4951('0x38')+this[_0x4951('0x32')];}[_0x4951('0x1c')](){return _0x4951('0x20')+this['_id'];}[_0x4951('0x8')](){return'ck-user__marker--'+this[_0x4951('0x32')];}}
23
+ const _0x3f6d=['addUser','_getInitial','ck-user__selection--','getBackgroundColorClass','get','has','_lastColor','_getNextColor','destroy','licenseKeyTrialLimit:time','licenseKey','invalid-license-key','users','avatar','getSelectionClass','info','_locale','trial-license-key-reached-limit-changes','_myId','charAt','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.','licenseKeyInvalid','split','name','_addAnonymousUser','color','string','defineMe','trial-license-key-reached-limit-time','_isAnonymous','licenseKeyTrialLimit:revisions','define','users.anonymousUserId','decorate','config','context','anonymous-user','initials','licenseKeyTrialLimit:operations','includes','getUser','getOperationAuthor','licenseKeyValid','users-add-invalid-id','Anonymous','users.colorsCount','locale','_id','users-me-already-defined','isAnonymous','trim','licenseKeyTrial','trial-license-key-reached-limit-revisions','getMarkerClass','_licenseKeyCheckInterval','requires'];(function(_0x1b8ea7,_0x3f6d6a){const _0x35cb35=function(_0x180140){while(--_0x180140){_0x1b8ea7['push'](_0x1b8ea7['shift']());}};_0x35cb35(++_0x3f6d6a);}(_0x3f6d,0xd7));const _0x35cb=function(_0x1b8ea7,_0x3f6d6a){_0x1b8ea7=_0x1b8ea7-0x0;let _0x35cb35=_0x3f6d[_0x1b8ea7];return _0x35cb35;};import{ContextPlugin as _0x183925}from'ckeditor5/src/core';import{Collection as _0x4ab50e,CKEditorError as _0x216bdf}from'ckeditor5/src/utils';import _0x6b7838 from'./permissions';import{getTranslation as _0x3a642d}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x183925{static get['pluginName'](){return'Users';}static get[_0x35cb('0x8')](){return[_0x6b7838];}constructor(_0x528d37){super(_0x528d37),this[_0x35cb('0x2c')]['config'][_0x35cb('0x28')](_0x35cb('0x29'),_0x35cb('0x2d')),this['context'][_0x35cb('0x2b')]['define'](_0x35cb('0x36'),0x8),this[_0x35cb('0x15')]=new _0x4ab50e(),this[_0x35cb('0x19')]=_0x528d37[_0x35cb('0x37')],this[_0x35cb('0x7')]=null,this[_0x35cb('0xf')]=0x0,this[_0x35cb('0x1b')]=null,this[_0x35cb('0x2a')](_0x35cb('0x32'));}['init'](){const _0x4c987b=this['context'];this['licenseKey']=_0x4c987b[_0x35cb('0x2b')]['get'](_0x35cb('0x13'));const _0x4494be=[_0x35cb('0x4'),_0x35cb('0x1e'),_0x35cb('0x33'),_0x35cb('0x2f'),_0x35cb('0x12'),_0x35cb('0x27')];this[_0x35cb('0x7')]=setInterval(()=>{let _0x4730fc;for(const _0x1c70e9 in _0x4c987b){const _0x1e28ef=_0x4c987b[_0x1c70e9];if(_0x4494be[_0x35cb('0x30')](_0x1e28ef)){delete _0x4c987b[_0x1c70e9],_0x4730fc=_0x1e28ef;break;}}if('licenseKeyInvalid'===_0x4730fc)throw clearInterval(this[_0x35cb('0x7')]),new _0x216bdf(_0x35cb('0x14'),null);if(_0x35cb('0x4')===_0x4730fc&&console[_0x35cb('0x18')](_0x35cb('0x1d')),_0x35cb('0x2f')===_0x4730fc)throw clearInterval(this[_0x35cb('0x7')]),new _0x216bdf(_0x35cb('0x1a'),null);if('licenseKeyTrialLimit:time'===_0x4730fc)throw clearInterval(this[_0x35cb('0x7')]),new _0x216bdf(_0x35cb('0x25'),null);if(_0x35cb('0x27')===_0x4730fc)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x216bdf(_0x35cb('0x5'),null);'licenseKeyValid'===_0x4730fc&&clearInterval(this[_0x35cb('0x7')]);},0x3e8),this[_0x35cb('0x21')]();}get['me'](){return null==this[_0x35cb('0x1b')]?null:this[_0x35cb('0x31')](this[_0x35cb('0x1b')]);}[_0x35cb('0x9')]({id:_0xd09182,name:_0x16b932,..._0x1559bc}){if(!_0xd09182||_0x35cb('0x23')!=typeof _0xd09182)throw new _0x216bdf(_0x35cb('0x34'));if(this[_0x35cb('0x15')][_0x35cb('0xe')](_0xd09182))throw new _0x216bdf('users-add-duplicated-id',null,{'id':_0xd09182});const _0x5c1f5d={..._0x1559bc,'id':_0xd09182,'name':a(this[_0x35cb('0x19')],_0x16b932),'color':this[_0x35cb('0x10')]()};_0x5c1f5d[_0x35cb('0x20')]=a(this[_0x35cb('0x19')],_0x5c1f5d['name']);const _0x3338bc=new User(_0x5c1f5d);return this[_0x35cb('0x15')]['add'](_0x3338bc),_0x3338bc;}['getUser'](_0x3a0803){return this[_0x35cb('0x15')]['get'](_0x3a0803);}['useAnonymousUser'](){const _0x136fb7=this['context']['config'][_0x35cb('0xd')](_0x35cb('0x29'));this['_myId']||this[_0x35cb('0x24')](_0x136fb7);}[_0x35cb('0x24')](_0x3ef17e){if(this[_0x35cb('0x1b')])throw new _0x216bdf(_0x35cb('0x1'),null);if(!this[_0x35cb('0x31')](_0x3ef17e))throw new _0x216bdf('users-me-missing-user',null);this['_myId']=_0x3ef17e;}[_0x35cb('0x32')](){return this['me'];}['destroy'](){super[_0x35cb('0x11')](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x3ab68f=this['context']['config'][_0x35cb('0xd')]('users.colorsCount');return this[_0x35cb('0xf')]>=_0x3ab68f&&(this[_0x35cb('0xf')]=0x0),new u(this[_0x35cb('0xf')]++);}['_addAnonymousUser'](){const _0x13d286=this[_0x35cb('0x2c')]['config'][_0x35cb('0xd')]('users.anonymousUserId');this[_0x35cb('0x9')]({'id':_0x13d286,'name':_0x3a642d(this['_locale'],_0x35cb('0x35'))})[_0x35cb('0x26')]=!0x0;}}export class User{constructor(_0x6391f2){this['id']=_0x6391f2['id'],this[_0x35cb('0x22')]=_0x6391f2[_0x35cb('0x22')],this[_0x35cb('0x20')]=_0x6391f2[_0x35cb('0x20')],this[_0x35cb('0x16')]=_0x6391f2[_0x35cb('0x16')],this[_0x35cb('0x26')]=!0x1;}get[_0x35cb('0x2')](){return this[_0x35cb('0x26')];}get[_0x35cb('0x2e')](){const _0x17bedf=this[_0x35cb('0x20')][_0x35cb('0x1f')]('\x20');return 0x1===_0x17bedf['length']?this['_getInitial'](_0x17bedf[0x0]):this[_0x35cb('0xa')](_0x17bedf[0x0])+this[_0x35cb('0xa')](_0x17bedf[_0x17bedf['length']-0x1]);}[_0x35cb('0xa')](_0x488ebc){return _0x488ebc[_0x35cb('0x1c')](0x0)['toUpperCase']();}}function a(_0x3cb4c6,_0xf60b3a=''){return''==(_0xf60b3a=_0xf60b3a[_0x35cb('0x3')]())?_0x3a642d(_0x3cb4c6,_0x35cb('0x35')):_0xf60b3a;}class u{constructor(_0x476226){this[_0x35cb('0x0')]=_0x476226;}[_0x35cb('0xc')](){return'ck-user__bg-color--'+this[_0x35cb('0x0')];}[_0x35cb('0x17')](){return _0x35cb('0xb')+this[_0x35cb('0x0')];}[_0x35cb('0x6')](){return'ck-user__marker--'+this[_0x35cb('0x0')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x5369ac,_0x5eda41){const t=_0x5369ac['t'];switch(_0x5eda41){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(_0x4895fc,_0x3fd68f){const t=_0x4895fc['t'];switch(_0x3fd68f){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 _0x4384=['_removeConfirm','focus','registerChild','once','element','deregisterChild','appendChild','isConfirm','cancel','cancelConfirm','submit','fire','showConfirm','confirmView','remove','set'];(function(_0x5a9a37,_0x438458){var _0x1047ac=function(_0x1d5c0f){while(--_0x1d5c0f){_0x5a9a37['push'](_0x5a9a37['shift']());}};_0x1047ac(++_0x438458);}(_0x4384,0x1e0));var _0x1047=function(_0x5a9a37,_0x438458){_0x5a9a37=_0x5a9a37-0x0;var _0x1047ac=_0x4384[_0x5a9a37];return _0x1047ac;};import _0x5d6fa7 from'./confirmview';export default function m(_0x2dcf0e){return class extends _0x2dcf0e{[_0x1047('0xc')](_0x5cce0e,_0x38e8e4){return this['confirmView']=new _0x5d6fa7(this['locale']),this['confirmView']['render'](),this[_0x1047('0xd')]['message']=_0x5cce0e,this[_0x1047('0xd')]['once'](_0x1047('0x8'),()=>{this['_removeConfirm']();}),this[_0x1047('0xd')][_0x1047('0x3')](_0x1047('0xa'),()=>{this[_0x1047('0x0')]();}),_0x38e8e4[_0x1047('0x6')](this['confirmView'][_0x1047('0x4')]),this[_0x1047('0x2')](this[_0x1047('0xd')]),this[_0x1047('0x4')][_0x1047('0x1')](),this[_0x1047('0xf')](_0x1047('0x7'),!0x0),new Promise(_0x502c80=>this[_0x1047('0xd')]['on'](_0x1047('0xa'),_0x502c80));}[_0x1047('0x9')](){this[_0x1047('0x7')]&&this[_0x1047('0xd')][_0x1047('0xb')](_0x1047('0x8'));}[_0x1047('0x0')](){this[_0x1047('0x4')]&&this[_0x1047('0xd')]&&this[_0x1047('0xd')][_0x1047('0x4')]&&(this[_0x1047('0x4')][_0x1047('0x1')](),this[_0x1047('0xd')][_0x1047('0x4')][_0x1047('0xe')](),this[_0x1047('0x5')](this[_0x1047('0xd')]),this[_0x1047('0x7')]=!0x1,this[_0x1047('0xd')]['destroy'](),this[_0x1047('0xd')]=void 0x0);}};}
23
+ var _0xb205=['locale','confirmView','cancelConfirm','message','submit','isConfirm','fire','once','_removeConfirm','render','cancel','appendChild','focus','element','set','registerChild','showConfirm'];(function(_0x2977af,_0xb20528){var _0x2fe36b=function(_0x1440a4){while(--_0x1440a4){_0x2977af['push'](_0x2977af['shift']());}};_0x2fe36b(++_0xb20528);}(_0xb205,0x112));var _0x2fe3=function(_0x2977af,_0xb20528){_0x2977af=_0x2977af-0x0;var _0x2fe36b=_0xb205[_0x2977af];return _0x2fe36b;};import _0x4d4225 from'./confirmview';export default function m(_0x49dfd2){return class extends _0x49dfd2{[_0x2fe3('0xe')](_0x194a26,_0x448bee){return this[_0x2fe3('0x10')]=new _0x4d4225(this[_0x2fe3('0xf')]),this[_0x2fe3('0x10')][_0x2fe3('0x7')](),this['confirmView'][_0x2fe3('0x1')]=_0x194a26,this[_0x2fe3('0x10')]['once']('cancel',()=>{this[_0x2fe3('0x6')]();}),this[_0x2fe3('0x10')][_0x2fe3('0x5')](_0x2fe3('0x2'),()=>{this[_0x2fe3('0x6')]();}),_0x448bee[_0x2fe3('0x9')](this[_0x2fe3('0x10')][_0x2fe3('0xb')]),this[_0x2fe3('0xd')](this[_0x2fe3('0x10')]),this[_0x2fe3('0xb')]['focus'](),this[_0x2fe3('0xc')](_0x2fe3('0x3'),!0x0),new Promise(_0xea05eb=>this['confirmView']['on'](_0x2fe3('0x2'),_0xea05eb));}[_0x2fe3('0x0')](){this[_0x2fe3('0x3')]&&this['confirmView'][_0x2fe3('0x4')](_0x2fe3('0x8'));}[_0x2fe3('0x6')](){this[_0x2fe3('0xb')]&&this['confirmView']&&this[_0x2fe3('0x10')]['element']&&(this[_0x2fe3('0xb')][_0x2fe3('0xa')](),this['confirmView'][_0x2fe3('0xb')]['remove'](),this['deregisterChild'](this['confirmView']),this[_0x2fe3('0x3')]=!0x1,this['confirmView']['destroy'](),this[_0x2fe3('0x10')]=void 0x0);}};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f65=['check','label','_createButtonView','icon','message','ck-thread__remove-confirm-','set','submitView','cancelView','ck-thread__remove-confirm-actions','setTemplate','Yes','div','cancel','execute','Are\x20you\x20sure?','extendTemplate','bindTemplate'];(function(_0x2f906c,_0x4f6568){const _0x1f06af=function(_0x19058d){while(--_0x19058d){_0x2f906c['push'](_0x2f906c['shift']());}};_0x1f06af(++_0x4f6568);}(_0x4f65,0x12b));const _0x1f06=function(_0x2f906c,_0x4f6568){_0x2f906c=_0x2f906c-0x0;let _0x1f06af=_0x4f65[_0x2f906c];return _0x1f06af;};import{View as _0x18ab79,ButtonView as _0x401f88}from'ckeditor5/src/ui';import{icons as _0x7e11d6}from'ckeditor5/src/core';import{getTranslation as _0x3c5760}from'./common-translations';export default class h extends _0x18ab79{constructor(_0x3524ce){super(_0x3524ce);const _0x608740=this[_0x1f06('0x6')];this[_0x1f06('0xe')]=this[_0x1f06('0x9')](_0x3524ce,_0x3c5760(_0x3524ce,_0x1f06('0x0')),_0x7e11d6[_0x1f06('0x7')],'submit'),this[_0x1f06('0xf')]=this[_0x1f06('0x9')](_0x3524ce,_0x3c5760(_0x3524ce,'No'),_0x7e11d6[_0x1f06('0x2')],_0x1f06('0x2')),this[_0x1f06('0xd')]('message',_0x3c5760(_0x3524ce,_0x1f06('0x4'))),this[_0x1f06('0x11')]({'tag':_0x1f06('0x1'),'attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':_0x1f06('0x1'),'attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x608740['to'](_0x1f06('0xb'))}]},{'tag':_0x1f06('0x1'),'attributes':{'class':_0x1f06('0x10')},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x5b9f8d,_0x123333,_0x218e06,_0x122480){const _0x446304=new _0x401f88(_0x5b9f8d);return _0x446304[_0x1f06('0x8')]=_0x123333,_0x446304[_0x1f06('0xa')]=_0x218e06,_0x446304[_0x1f06('0x5')]({'attributes':{'class':_0x1f06('0xc')+_0x122480}}),_0x446304['on'](_0x1f06('0x3'),()=>this['fire'](_0x122480)),_0x446304;}}
23
+ const _0x3ea1=['_createButtonView','cancel','message','cancelView','div','check','icon','ck-thread__remove-confirm','Yes','fire','Are\x20you\x20sure?','bindTemplate','submitView','set'];(function(_0x55a062,_0x3ea1fb){const _0x1f76c8=function(_0x59add2){while(--_0x59add2){_0x55a062['push'](_0x55a062['shift']());}};_0x1f76c8(++_0x3ea1fb);}(_0x3ea1,0x1cc));const _0x1f76=function(_0x55a062,_0x3ea1fb){_0x55a062=_0x55a062-0x0;let _0x1f76c8=_0x3ea1[_0x55a062];return _0x1f76c8;};import{View as _0x1523a5,ButtonView as _0x37df8a}from'ckeditor5/src/ui';import{icons as _0x2a62b1}from'ckeditor5/src/core';import{getTranslation as _0xf3b751}from'./common-translations';export default class h extends _0x1523a5{constructor(_0x36bfad){super(_0x36bfad);const _0x54a542=this[_0x1f76('0xd')];this[_0x1f76('0x0')]=this[_0x1f76('0x2')](_0x36bfad,_0xf3b751(_0x36bfad,_0x1f76('0xa')),_0x2a62b1[_0x1f76('0x7')],'submit'),this['cancelView']=this[_0x1f76('0x2')](_0x36bfad,_0xf3b751(_0x36bfad,'No'),_0x2a62b1[_0x1f76('0x3')],_0x1f76('0x3')),this[_0x1f76('0x1')]('message',_0xf3b751(_0x36bfad,_0x1f76('0xc'))),this['setTemplate']({'tag':_0x1f76('0x6'),'attributes':{'class':[_0x1f76('0x9')]},'children':[{'tag':_0x1f76('0x6'),'attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x54a542['to'](_0x1f76('0x4'))}]},{'tag':_0x1f76('0x6'),'attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this[_0x1f76('0x5')]]}]}]});}[_0x1f76('0x2')](_0x16e899,_0x2d541f,_0x4932ed,_0x20626a){const _0x418d38=new _0x37df8a(_0x16e899);return _0x418d38['label']=_0x2d541f,_0x418d38[_0x1f76('0x8')]=_0x4932ed,_0x418d38['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x20626a}}),_0x418d38['on']('execute',()=>this[_0x1f76('0xb')](_0x20626a)),_0x418d38;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48a9=['dateTimeFormat','\x27Yesterday\x27\x20hh:mma','MM-dd-yyyy\x20hh:mma','string','invalid-date-time-format','\x27Last\x27\x20EEEE\x20hh:mma','function'];(function(_0x5de81d,_0x48a9d5){const _0xd01e17=function(_0xaeac91){while(--_0xaeac91){_0x5de81d['push'](_0x5de81d['shift']());}};_0xd01e17(++_0x48a9d5);}(_0x48a9,0x1ee));const _0xd01e=function(_0x5de81d,_0x48a9d5){_0x5de81d=_0x5de81d-0x0;let _0xd01e17=_0x48a9[_0x5de81d];return _0xd01e17;};import _0x4d345b from'date-fns/format';import _0x1de881 from'date-fns/parseISO';import _0xcf6333 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x534d66}from'ckeditor5/src/utils';export default function E(_0x9f4ad8={}){if(void 0x0!==_0x9f4ad8[_0xd01e('0x3')]&&_0xd01e('0x2')!=typeof _0x9f4ad8[_0xd01e('0x3')])throw new _0x534d66(_0xd01e('0x0'));return _0x2089b4=>{const _0x29a16d=_0xd01e('0x6')==typeof _0x2089b4?_0x1de881(_0x2089b4):_0x2089b4,_0x275508=new Date(),_0x1bb3b9=_0xcf6333(_0x275508,_0x29a16d);return _0x9f4ad8[_0xd01e('0x3')]?_0x9f4ad8[_0xd01e('0x3')](_0x29a16d):_0x4d345b(_0x29a16d,0x0===_0x1bb3b9?'\x27Today\x27\x20hh:mma':0x1===_0x1bb3b9?_0xd01e('0x4'):_0x1bb3b9<0x7?_0xd01e('0x1'):_0xd01e('0x5'));};}
23
+ const _0x4098=['\x27Today\x27\x20hh:mma','function','string','MM-dd-yyyy\x20hh:mma','invalid-date-time-format','\x27Yesterday\x27\x20hh:mma','dateTimeFormat','\x27Last\x27\x20EEEE\x20hh:mma'];(function(_0x12be3e,_0x40982e){const _0x540d48=function(_0x323dae){while(--_0x323dae){_0x12be3e['push'](_0x12be3e['shift']());}};_0x540d48(++_0x40982e);}(_0x4098,0x68));const _0x540d=function(_0x12be3e,_0x40982e){_0x12be3e=_0x12be3e-0x0;let _0x540d48=_0x4098[_0x12be3e];return _0x540d48;};import _0x1b8b88 from'date-fns/format';import _0x4ce88d from'date-fns/parseISO';import _0x8dde1d from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x1f243b}from'ckeditor5/src/utils';export default function E(_0x149cfc={}){if(void 0x0!==_0x149cfc[_0x540d('0x6')]&&_0x540d('0x1')!=typeof _0x149cfc[_0x540d('0x6')])throw new _0x1f243b(_0x540d('0x4'));return _0x516392=>{const _0x5e0aa6=_0x540d('0x2')==typeof _0x516392?_0x4ce88d(_0x516392):_0x516392,_0x583cc5=new Date(),_0x4f5a84=_0x8dde1d(_0x583cc5,_0x5e0aa6);return _0x149cfc[_0x540d('0x6')]?_0x149cfc[_0x540d('0x6')](_0x5e0aa6):_0x1b8b88(_0x5e0aa6,0x0===_0x4f5a84?_0x540d('0x0'):0x1===_0x4f5a84?_0x540d('0x5'):_0x4f5a84<0x7?_0x540d('0x7'):_0x540d('0x3'));};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4edb=['length','filter','map','getClientRects','name','domElement','markerNameToElements','push','mapViewToDom','sort','mapper','view','domConverter'];(function(_0x5bf384,_0x4edb2b){const _0x2c8317=function(_0x4cabb0){while(--_0x4cabb0){_0x5bf384['push'](_0x5bf384['shift']());}};_0x2c8317(++_0x4edb2b);}(_0x4edb,0x1e6));const _0x2c83=function(_0x5bf384,_0x4edb2b){_0x5bf384=_0x5bf384-0x0;let _0x2c8317=_0x4edb[_0x5bf384];return _0x2c8317;};import{first as _0x4ef8c6}from'ckeditor5/src/utils';export default function k(_0x26b708,_0x2a7e84){const _0x21b889=_0x26b708[_0x2c83('0x5')][_0x2c83('0x1')](_0x2a7e84[_0x2c83('0xc')]);if(!_0x21b889)return null;const _0xceeaae=_0x4ef8c6(_0x21b889['values']());return _0x26b708['view'][_0x2c83('0x7')][_0x2c83('0x3')](_0xceeaae)||null;}export function getAllMarkersDomElementsSorted(_0x180c99,_0x2a7943){if(0x0===_0x2a7943[_0x2c83('0x8')])return null;const _0x352f42=[],_0x5466b8=_0x180c99[_0x2c83('0x6')][_0x2c83('0x7')];for(const _0x8cf5d4 of _0x2a7943){const _0x13fcda=_0x180c99[_0x2c83('0x5')]['markerNameToElements'](_0x8cf5d4[_0x2c83('0xc')]);if(!_0x13fcda)continue;const _0x4f1193=Array['from'](_0x13fcda)[_0x2c83('0xa')](_0x27e2b9=>_0x5466b8[_0x2c83('0x3')](_0x27e2b9))[_0x2c83('0x9')](_0x1a7b07=>!!_0x1a7b07);_0x352f42[_0x2c83('0x2')](..._0x4f1193);}if(0x0===_0x352f42[_0x2c83('0x8')])return null;const _0x2f0f67=[];for(const _0x4acfc7 of _0x352f42){const _0xee5242=_0x4acfc7[_0x2c83('0xb')]()['item'](0x0);_0xee5242&&_0x2f0f67[_0x2c83('0x2')]({'x':_0xee5242['x'],'y':_0xee5242['y'],'domElement':_0x4acfc7});}return 0x0===_0x2f0f67[_0x2c83('0x8')]?null:(_0x2f0f67[_0x2c83('0x4')]((_0x506166,_0x5a9059)=>_0x506166['y']-_0x5a9059['y']||_0x506166['x']-_0x5a9059['x']),_0x2f0f67[_0x2c83('0xa')](_0xdb17ec=>_0xdb17ec[_0x2c83('0x0')]));}
23
+ const _0x356d=['sort','domElement','push','markerNameToElements','item','mapper','view','getClientRects','name','domConverter','mapViewToDom','map','from','length','values'];(function(_0x575a03,_0x356d30){const _0x2abb69=function(_0x51d528){while(--_0x51d528){_0x575a03['push'](_0x575a03['shift']());}};_0x2abb69(++_0x356d30);}(_0x356d,0x1d3));const _0x2abb=function(_0x575a03,_0x356d30){_0x575a03=_0x575a03-0x0;let _0x2abb69=_0x356d[_0x575a03];return _0x2abb69;};import{first as _0x57dc4b}from'ckeditor5/src/utils';export default function k(_0x4ada0b,_0x5c4cfd){const _0x70931f=_0x4ada0b[_0x2abb('0x3')][_0x2abb('0x1')](_0x5c4cfd[_0x2abb('0x6')]);if(!_0x70931f)return null;const _0x3b5ee8=_0x57dc4b(_0x70931f[_0x2abb('0xc')]());return _0x4ada0b[_0x2abb('0x4')][_0x2abb('0x7')][_0x2abb('0x8')](_0x3b5ee8)||null;}export function getAllMarkersDomElementsSorted(_0x4fdd2e,_0x5410ec){if(0x0===_0x5410ec['length'])return null;const _0x769c00=[],_0x12513d=_0x4fdd2e[_0x2abb('0x4')][_0x2abb('0x7')];for(const _0x1aeafc of _0x5410ec){const _0x134c7a=_0x4fdd2e['mapper'][_0x2abb('0x1')](_0x1aeafc[_0x2abb('0x6')]);if(!_0x134c7a)continue;const _0x1c77cd=Array[_0x2abb('0xa')](_0x134c7a)[_0x2abb('0x9')](_0x25644d=>_0x12513d[_0x2abb('0x8')](_0x25644d))['filter'](_0x488430=>!!_0x488430);_0x769c00[_0x2abb('0x0')](..._0x1c77cd);}if(0x0===_0x769c00['length'])return null;const _0x3f5483=[];for(const _0x1d957d of _0x769c00){const _0x5e4a38=_0x1d957d[_0x2abb('0x5')]()[_0x2abb('0x2')](0x0);_0x5e4a38&&_0x3f5483['push']({'x':_0x5e4a38['x'],'y':_0x5e4a38['y'],'domElement':_0x1d957d});}return 0x0===_0x3f5483[_0x2abb('0xb')]?null:(_0x3f5483[_0x2abb('0xd')]((_0xcaf441,_0x373f3d)=>_0xcaf441['y']-_0x373f3d['y']||_0xcaf441['x']-_0x373f3d['x']),_0x3f5483[_0x2abb('0x9')](_0x12ec33=>_0x12ec33[_0x2abb('0xe')]));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x376c=['boolean','sign','isArray','sort','string','charCodeAt','object'];(function(_0x29d1f2,_0x376c51){const _0x1794a6=function(_0x5c14f8){while(--_0x5c14f8){_0x29d1f2['push'](_0x29d1f2['shift']());}};_0x1794a6(++_0x376c51);}(_0x376c,0x113));const _0x1794=function(_0x29d1f2,_0x376c51){_0x29d1f2=_0x29d1f2-0x0;let _0x1794a6=_0x376c[_0x29d1f2];return _0x1794a6;};export default function b(_0xdbfcf4){let _0x32b951=0x0,_0xc517e2=0x0;for(const _0x3318c0 of g(_0xdbfcf4))_0x32b951=(_0x32b951<<0x5)-_0x32b951+_0x3318c0,_0x32b951&=_0x32b951,[_0x32b951,_0xc517e2]=[_0xc517e2,_0x32b951];return O(_0x32b951)+O(_0xc517e2);}function*j(_0x212de8){_0x212de8?_0x1794('0x5')==typeof _0x212de8?yield 0x1:Array[_0x1794('0x0')](_0x212de8)?yield*function*(_0x2e0708){for(const _0x1d49b9 of _0x2e0708)yield*j(_0x1d49b9);}(_0x212de8):_0x1794('0x4')==typeof _0x212de8?yield*g(_0x212de8):_0x1794('0x2')==typeof _0x212de8?yield*A(_0x212de8):'number'==typeof _0x212de8&&(yield _0x212de8):yield 0x0;}function*g(_0x447ffd){if(yield M('{'),_0x447ffd){const _0x1f7dd0=Object['keys'](_0x447ffd)[_0x1794('0x1')]();for(const _0x4dea8a of _0x1f7dd0){yield*A(_0x4dea8a),yield M(':');const _0x38b97d=_0x447ffd[_0x4dea8a];yield*j(_0x38b97d);}}yield M('}');}function*A(_0x41a337){yield M('\x22');for(const _0xd2db2e of _0x41a337)yield M(_0xd2db2e);yield M('\x22');}function M(_0x39f3d4){return _0x39f3d4[_0x1794('0x3')](0x0);}function O(_0x5d0406){return(_0x5d0406*=Math[_0x1794('0x6')](_0x5d0406))['toString'](0x24);}
23
+ const _0x46a8=['object','number','boolean','keys','sign','toString'];(function(_0xf6c333,_0x46a829){const _0x53750a=function(_0x4656a3){while(--_0x4656a3){_0xf6c333['push'](_0xf6c333['shift']());}};_0x53750a(++_0x46a829);}(_0x46a8,0xa4));const _0x5375=function(_0xf6c333,_0x46a829){_0xf6c333=_0xf6c333-0x0;let _0x53750a=_0x46a8[_0xf6c333];return _0x53750a;};export default function b(_0xa0ee9b){let _0x2651d3=0x0,_0x34805c=0x0;for(const _0x5f0aa2 of g(_0xa0ee9b))_0x2651d3=(_0x2651d3<<0x5)-_0x2651d3+_0x5f0aa2,_0x2651d3&=_0x2651d3,[_0x2651d3,_0x34805c]=[_0x34805c,_0x2651d3];return O(_0x2651d3)+O(_0x34805c);}function*j(_0x313367){_0x313367?_0x5375('0x0')==typeof _0x313367?yield 0x1:Array['isArray'](_0x313367)?yield*function*(_0x1871ae){for(const _0x318dae of _0x1871ae)yield*j(_0x318dae);}(_0x313367):_0x5375('0x4')==typeof _0x313367?yield*g(_0x313367):'string'==typeof _0x313367?yield*A(_0x313367):_0x5375('0x5')==typeof _0x313367&&(yield _0x313367):yield 0x0;}function*g(_0x4a469d){if(yield M('{'),_0x4a469d){const _0x47c71f=Object[_0x5375('0x1')](_0x4a469d)['sort']();for(const _0x38a5ee of _0x47c71f){yield*A(_0x38a5ee),yield M(':');const _0xda67df=_0x4a469d[_0x38a5ee];yield*j(_0xda67df);}}yield M('}');}function*A(_0x4ed8d1){yield M('\x22');for(const _0x114f7f of _0x4ed8d1)yield M(_0x114f7f);yield M('\x22');}function M(_0x1564d1){return _0x1564d1['charCodeAt'](0x0);}function O(_0x9017a0){return(_0x9017a0*=Math[_0x5375('0x2')](_0x9017a0))[_0x5375('0x3')](0x24);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b2c=['filter','removePlugins','every','concat','context','names','WordCount','WebSocketGateway','get','name','includes','extraPlugins','pluginName','rootsAttributes','Autosave','set','plugins','config','toolbar','length','string','find','constructor','builtinPlugins','requires','DocumentOutline','WProofreader','from','initialData'];(function(_0x80528e,_0x2b2c14){const _0x47a2e7=function(_0x25c570){while(--_0x25c570){_0x80528e['push'](_0x80528e['shift']());}};_0x47a2e7(++_0x2b2c14);}(_0x2b2c,0x85));const _0x47a2=function(_0x80528e,_0x2b2c14){_0x80528e=_0x80528e-0x0;let _0x47a2e7=_0x2b2c[_0x80528e];return _0x47a2e7;};const w=[_0x47a2('0xb'),_0x47a2('0x10'),_0x47a2('0x1'),_0x47a2('0x19')],W=[_0x47a2('0x13'),'RevisionTracker',_0x47a2('0x1a'),_0x47a2('0x12'),_0x47a2('0x8'),_0x47a2('0x9')];function v(_0x17346b,_0x22dfd0,_0x478cae,_0x58bf91=[]){const _0x200504=_0x47a2('0x3')==typeof _0x17346b?_0x478cae[_0x47a2('0x14')](_0x17346b)[_0x47a2('0x5')]:_0x17346b,_0x3c38c2=_0x200504[_0x47a2('0x18')]||_0x200504[_0x47a2('0x15')];if(_0x22dfd0['has'](_0x3c38c2))return _0x22dfd0[_0x47a2('0x14')](_0x3c38c2);if(_0x22dfd0['set'](_0x3c38c2,!0x0),_0x3c38c2&&W[_0x47a2('0xf')](_0x58bf91)[_0x47a2('0x16')](_0x3c38c2))return _0x22dfd0[_0x47a2('0x1b')](_0x3c38c2,!0x1),!0x1;if(!_0x200504[_0x47a2('0x7')])return _0x22dfd0[_0x47a2('0x1b')](_0x3c38c2,!0x0),!0x0;const _0x11470b=_0x200504[_0x47a2('0x7')][_0x47a2('0xe')](_0x15a736=>v(_0x15a736,_0x22dfd0,_0x478cae,_0x58bf91));return _0x22dfd0[_0x47a2('0x1b')](_0x3c38c2,_0x11470b),_0x11470b;}export default function D(_0x5b2864,_0x27f49f){const _0x5555b3={};for(const _0x293952 of _0x5b2864[_0x47a2('0x0')][_0x47a2('0x11')]())w[_0x47a2('0x16')](_0x293952)||(_0x5555b3[_0x293952]=_0x5b2864[_0x47a2('0x0')]['get'](_0x293952));const _0x188a56=_0x5555b3['plugins']||[],_0x4aca21=_0x5b2864[_0x47a2('0x5')][_0x47a2('0x6')]||[],_0x31da37=_0x188a56[_0x47a2('0x2')]?_0x188a56:_0x4aca21,_0x2cdbf1=_0x5555b3[_0x47a2('0x17')]||[];delete _0x5555b3[_0x47a2('0x17')];const _0x17ec77=_0x5555b3[_0x47a2('0xd')]||[];delete _0x5555b3[_0x47a2('0xd')];const _0x212de5=_0x5b2864['_context'][_0x47a2('0x0')][_0x47a2('0x14')](_0x47a2('0x1c'))||[],_0x92d752=_0x31da37[_0x47a2('0xf')](_0x2cdbf1)['concat'](_0x212de5)['map'](_0x6e7bdc=>'string'==typeof _0x6e7bdc?_0x4aca21[_0x47a2('0x4')](_0xa303df=>_0xa303df[_0x47a2('0x18')]==_0x6e7bdc):_0x6e7bdc)[_0x47a2('0xc')](_0x1985a5=>!_0x17ec77[_0x47a2('0x16')](_0x1985a5)),_0x2552cd=Array[_0x47a2('0xa')](new Set(_0x92d752)),_0x488e17=new Map();return _0x5555b3[_0x47a2('0x1c')]=_0x2552cd[_0x47a2('0xc')](_0x479eb8=>v(_0x479eb8,_0x488e17,_0x5b2864['plugins'],_0x27f49f)),_0x5555b3;}
23
+ const _0x2e87=['requires','_context','removePlugins','initialData','extraPlugins','has','set','rootsAttributes','WebSocketGateway','config','filter','get','pluginName','concat','constructor','WordCount','toolbar','plugins','includes','string','RevisionTracker','context','from','DocumentOutline','Autosave','every','map'];(function(_0x594e25,_0x2e8775){const _0x37bb69=function(_0x577888){while(--_0x577888){_0x594e25['push'](_0x594e25['shift']());}};_0x37bb69(++_0x2e8775);}(_0x2e87,0x1db));const _0x37bb=function(_0x594e25,_0x2e8775){_0x594e25=_0x594e25-0x0;let _0x37bb69=_0x2e87[_0x594e25];return _0x37bb69;};const w=[_0x37bb('0xe'),_0x37bb('0x5'),_0x37bb('0x0'),_0x37bb('0x12')],W=[_0x37bb('0x13'),_0x37bb('0x4'),_0x37bb('0x8'),_0x37bb('0x1a'),_0x37bb('0x7'),'WProofreader'];function v(_0x5dd427,_0x596deb,_0x42b9bd,_0x45164e=[]){const _0x435db9='string'==typeof _0x5dd427?_0x42b9bd[_0x37bb('0x16')](_0x5dd427)[_0x37bb('0x19')]:_0x5dd427,_0x5f3eb1=_0x435db9[_0x37bb('0x17')]||_0x435db9['name'];if(_0x596deb[_0x37bb('0x10')](_0x5f3eb1))return _0x596deb['get'](_0x5f3eb1);if(_0x596deb[_0x37bb('0x11')](_0x5f3eb1,!0x0),_0x5f3eb1&&W[_0x37bb('0x18')](_0x45164e)['includes'](_0x5f3eb1))return _0x596deb[_0x37bb('0x11')](_0x5f3eb1,!0x1),!0x1;if(!_0x435db9[_0x37bb('0xb')])return _0x596deb[_0x37bb('0x11')](_0x5f3eb1,!0x0),!0x0;const _0x34e675=_0x435db9['requires'][_0x37bb('0x9')](_0x47346f=>v(_0x47346f,_0x596deb,_0x42b9bd,_0x45164e));return _0x596deb['set'](_0x5f3eb1,_0x34e675),_0x34e675;}export default function D(_0x27643b,_0x32b330){const _0x13088d={};for(const _0x5999fc of _0x27643b[_0x37bb('0x14')]['names']())w[_0x37bb('0x2')](_0x5999fc)||(_0x13088d[_0x5999fc]=_0x27643b[_0x37bb('0x14')][_0x37bb('0x16')](_0x5999fc));const _0x15fdf6=_0x13088d[_0x37bb('0x1')]||[],_0x556719=_0x27643b[_0x37bb('0x19')]['builtinPlugins']||[],_0x2317cf=_0x15fdf6['length']?_0x15fdf6:_0x556719,_0x5d33c4=_0x13088d['extraPlugins']||[];delete _0x13088d[_0x37bb('0xf')];const _0x5d85e4=_0x13088d[_0x37bb('0xd')]||[];delete _0x13088d['removePlugins'];const _0xa6cef0=_0x27643b[_0x37bb('0xc')][_0x37bb('0x14')][_0x37bb('0x16')](_0x37bb('0x1'))||[],_0x10e0b3=_0x2317cf['concat'](_0x5d33c4)['concat'](_0xa6cef0)[_0x37bb('0xa')](_0xfcb096=>_0x37bb('0x3')==typeof _0xfcb096?_0x556719['find'](_0x576b55=>_0x576b55['pluginName']==_0xfcb096):_0xfcb096)[_0x37bb('0x15')](_0x5484e4=>!_0x5d85e4['includes'](_0x5484e4)),_0x15b4d9=Array[_0x37bb('0x6')](new Set(_0x10e0b3)),_0x2899cd=new Map();return _0x13088d['plugins']=_0x15b4d9[_0x37bb('0x15')](_0x417fdc=>v(_0x417fdc,_0x2899cd,_0x27643b['plugins'],_0x32b330)),_0x13088d;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c2a=['slice','length','match','...','startsWith','split','join','replace','substring','pop','push','indexOf'];(function(_0x137b54,_0x4c2ad6){const _0x8299ab=function(_0x3b1f2d){while(--_0x3b1f2d){_0x137b54['push'](_0x137b54['shift']());}};_0x8299ab(++_0x4c2ad6);}(_0x4c2a,0xb5));const _0x8299=function(_0x137b54,_0x4c2ad6){_0x137b54=_0x137b54-0x0;let _0x8299ab=_0x4c2a[_0x137b54];return _0x8299ab;};export default function z(_0x4fc205,{limit:_0x145c59,suffix:_0xc75e92=_0x8299('0x2')}){const _0x11d115=[];let _0x2bd710=0x0;const _0x170599=_0x4fc205['replace'](/</g,'\x0a<')[_0x8299('0x6')](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')[_0x8299('0x4')]('\x0a');for(let _0x14b107=0x0;_0x14b107<_0x170599[_0x8299('0x0')];_0x14b107++){let _0x4d9468=_0x170599[_0x14b107];const _0x1e1988=Z(_0x4d9468);if(_0x4d9468['startsWith']('<')){if(_0x2bd710>=_0x145c59){const _0x12ba39=_0x4d9468[_0x8299('0x1')](/[a-zA-Z]+/);if(!_0x12ba39){_0x170599[_0x14b107]='';continue;}const _0xb1aa61=_0x12ba39[0x0];_0x4d9468[_0x8299('0x3')]('</')?(_0x11d115[_0x8299('0x0')]&&(_0x4d9468=''),_0x11d115[_0x8299('0x8')]()):(_0x11d115['push'](_0xb1aa61),_0x4d9468='');}}else{if(_0x2bd710>=_0x145c59)_0x4d9468='';else{if(_0x2bd710+_0x1e1988[_0x8299('0x0')]>=_0x145c59){let _0x41708e=_0x145c59-_0x2bd710;if('\x20'===_0x1e1988[_0x41708e-0x1])_0x41708e--;else{const _0x5c2062=_0x1e1988['slice'](_0x41708e)[_0x8299('0xa')]('\x20');-0x1!==_0x5c2062?_0x41708e+=_0x5c2062:_0x41708e=_0x4d9468[_0x8299('0x0')];}_0x4d9468=_0x1e1988[_0x8299('0xb')](0x0,_0x41708e)[_0x8299('0x5')]('')+_0xc75e92,_0x2bd710=_0x145c59;}else _0x2bd710+=_0x1e1988[_0x8299('0x0')];}}_0x170599[_0x14b107]=_0x4d9468;}return _0x170599[_0x8299('0x5')]('\x0a')['replace'](/\n/g,'');}function Z(_0x1dab2a){const _0x102661=[];for(let _0x4dc77b=0x0;_0x4dc77b<_0x1dab2a[_0x8299('0x0')];_0x4dc77b++){const _0x3da424=_0x1dab2a[_0x8299('0x7')](_0x4dc77b)[_0x8299('0x1')](/^&[a-z0-9#]+;/);if(_0x3da424){const _0x200b62=_0x3da424[0x0];_0x102661['push'](_0x200b62),_0x4dc77b+=_0x200b62['length']-0x1;}else _0x102661[_0x8299('0x9')](_0x1dab2a[_0x4dc77b]);}return _0x102661;}
23
+ const _0x118c=['startsWith','slice','length','pop','push','replace','join','split','match','...'];(function(_0x3ae66d,_0x118cc9){const _0x36c7eb=function(_0x542034){while(--_0x542034){_0x3ae66d['push'](_0x3ae66d['shift']());}};_0x36c7eb(++_0x118cc9);}(_0x118c,0x15b));const _0x36c7=function(_0x3ae66d,_0x118cc9){_0x3ae66d=_0x3ae66d-0x0;let _0x36c7eb=_0x118c[_0x3ae66d];return _0x36c7eb;};export default function z(_0x24b6d0,{limit:_0x1364a6,suffix:_0x8f2ac8=_0x36c7('0x2')}){const _0x31cd1d=[];let _0x42c173=0x0;const _0x54accf=_0x24b6d0[_0x36c7('0x8')](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')[_0x36c7('0x8')](/\n$/g,'')[_0x36c7('0x0')]('\x0a');for(let _0x275049=0x0;_0x275049<_0x54accf[_0x36c7('0x5')];_0x275049++){let _0x7b4e0e=_0x54accf[_0x275049];const _0x49ca07=Z(_0x7b4e0e);if(_0x7b4e0e[_0x36c7('0x3')]('<')){if(_0x42c173>=_0x1364a6){const _0x4a9b75=_0x7b4e0e[_0x36c7('0x1')](/[a-zA-Z]+/);if(!_0x4a9b75){_0x54accf[_0x275049]='';continue;}const _0x72f283=_0x4a9b75[0x0];_0x7b4e0e[_0x36c7('0x3')]('</')?(_0x31cd1d[_0x36c7('0x5')]&&(_0x7b4e0e=''),_0x31cd1d[_0x36c7('0x6')]()):(_0x31cd1d[_0x36c7('0x7')](_0x72f283),_0x7b4e0e='');}}else{if(_0x42c173>=_0x1364a6)_0x7b4e0e='';else{if(_0x42c173+_0x49ca07['length']>=_0x1364a6){let _0x3691fc=_0x1364a6-_0x42c173;if('\x20'===_0x49ca07[_0x3691fc-0x1])_0x3691fc--;else{const _0x199a64=_0x49ca07[_0x36c7('0x4')](_0x3691fc)['indexOf']('\x20');-0x1!==_0x199a64?_0x3691fc+=_0x199a64:_0x3691fc=_0x7b4e0e[_0x36c7('0x5')];}_0x7b4e0e=_0x49ca07[_0x36c7('0x4')](0x0,_0x3691fc)['join']('')+_0x8f2ac8,_0x42c173=_0x1364a6;}else _0x42c173+=_0x49ca07['length'];}}_0x54accf[_0x275049]=_0x7b4e0e;}return _0x54accf[_0x36c7('0x9')]('\x0a')[_0x36c7('0x8')](/\n/g,'');}function Z(_0x1c2e4a){const _0x5ecc02=[];for(let _0x1d3293=0x0;_0x1d3293<_0x1c2e4a[_0x36c7('0x5')];_0x1d3293++){const _0x463bb8=_0x1c2e4a['substring'](_0x1d3293)[_0x36c7('0x1')](/^&[a-z0-9#]+;/);if(_0x463bb8){const _0x5a4478=_0x463bb8[0x0];_0x5ecc02[_0x36c7('0x7')](_0x5a4478),_0x1d3293+=_0x5a4478[_0x36c7('0x5')]-0x1;}else _0x5ecc02['push'](_0x1c2e4a[_0x1d3293]);}return _0x5ecc02;}