@ckeditor/ckeditor5-real-time-collaboration 40.1.0 → 40.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x494d=['state','plugins','clear','unregister','connection','values','stopListening','size','add','has','context','assign','connected','mySessionId','delete','_handleSessionAdd','allConnectedUsers','get','channelConnectedUsers','_createUser','Sessions','getUserRole','remove','requires','getUserSessions','sessionAdd:','_uniqueUsersCount','sessions-unregister-not-exist','channelSessions','listenTo','change:state','init','forEach','sessions-register-already-registered','sessionId','getUserBySessionId','getUser','pluginName','user','addUser','_handleSessionRemove','_users','set','_registeredSessions'];(function(_0x2ebdf5,_0x494ddd){const _0x1bba1b=function(_0x29782e){while(--_0x29782e){_0x2ebdf5['push'](_0x2ebdf5['shift']());}};_0x1bba1b(++_0x494ddd);}(_0x494d,0x128));const _0x1bba=function(_0x2ebdf5,_0x494ddd){_0x2ebdf5=_0x2ebdf5-0x0;let _0x1bba1b=_0x494d[_0x2ebdf5];return _0x1bba1b;};import{ContextPlugin as _0x928eaf}from'ckeditor5/src/core';import{Collection as _0x3810b4,CKEditorError as _0x26f046}from'ckeditor5/src/utils';import _0x199fa2 from'./websocketgateway';import{Users as _0x31d347}from'ckeditor5-collaboration/src/collaboration-core';export default class r extends _0x928eaf{static get[_0x1bba('0x5')](){return _0x1bba('0x20');}static get[_0x1bba('0x23')](){return[_0x199fa2,_0x31d347];}constructor(_0x36cbd8){super(_0x36cbd8),this[_0x1bba('0x28')]=new Map(),this[_0x1bba('0x1e')]=new Map(),this[_0x1bba('0x1c')]=new _0x3810b4(),this[_0x1bba('0xb')]=new Map(),this['_uniqueUsersCount']=0x0,this[_0x1bba('0x9')]=this[_0x1bba('0x16')]['plugins'][_0x1bba('0x1d')](_0x31d347);}[_0x1bba('0x2b')](){const _0x295172=this[_0x1bba('0x16')]['plugins'][_0x1bba('0x1d')](_0x199fa2);this['listenTo'](_0x295172,_0x1bba('0x2a'),(_0x3292bb,_0xba4b08,_0x52dda0)=>{if(_0x1bba('0x18')!==_0x52dda0)this[_0x1bba('0x28')][_0x1bba('0x0')](_0x20a8d0=>_0x20a8d0[_0x1bba('0xe')]()),this[_0x1bba('0x1e')][_0x1bba('0x0')](_0x20dd11=>_0x20dd11['clear']()),this[_0x1bba('0x1c')]['clear']();else for(const [_0x1fd04c,_0x3d723b]of this[_0x1bba('0xb')])for(const _0x402a6d of _0x3d723b)this['_handleSessionAdd'](_0x1fd04c,_0x402a6d);}),this['_createUser'](_0x295172[_0x1bba('0x10')]['me'],!0x0);}['register'](_0x379108,_0xb4b65e){if(this['_registeredSessions'][_0x1bba('0x15')](_0x379108))throw new _0x26f046(_0x1bba('0x1'),null,{'channelId':_0x379108});this['_registeredSessions'][_0x1bba('0xa')](_0x379108,_0xb4b65e),this[_0x1bba('0x28')][_0x1bba('0xa')](_0x379108,new _0x3810b4()),this[_0x1bba('0x1e')][_0x1bba('0xa')](_0x379108,new _0x3810b4()),this['listenTo'](_0xb4b65e,'add',(_0xb76830,_0x517a54)=>this['_handleSessionAdd'](_0x379108,_0x517a54)),this[_0x1bba('0x29')](_0xb4b65e,_0x1bba('0x22'),(_0x5aa5f2,_0x1858db)=>this[_0x1bba('0x8')](_0x379108,_0x1858db));for(const _0x148933 of _0xb4b65e)this[_0x1bba('0x1b')](_0x379108,_0x148933);}[_0x1bba('0xf')](_0x10af45){if(!this[_0x1bba('0xb')]['has'](_0x10af45))throw new _0x26f046(_0x1bba('0x27'),null,{'channelId':_0x10af45});const _0xed950=this[_0x1bba('0xb')][_0x1bba('0x1d')](_0x10af45);this[_0x1bba('0x12')](_0xed950);for(const _0x3cacab of _0xed950)_0x1bba('0x18')===this[_0x1bba('0x16')][_0x1bba('0xd')]['get'](_0x199fa2)['state']&&this[_0x1bba('0x8')](_0x10af45,_0x3cacab);this['_registeredSessions']['delete'](_0x10af45),this[_0x1bba('0x28')][_0x1bba('0x1a')](_0x10af45),this[_0x1bba('0x1e')]['delete'](_0x10af45);}get[_0x1bba('0x19')](){return this[_0x1bba('0x16')][_0x1bba('0xd')]['get'](_0x199fa2)[_0x1bba('0x10')][_0x1bba('0x2')];}[_0x1bba('0x3')](_0x343558){for(const _0x730af7 of this[_0x1bba('0x28')][_0x1bba('0x11')]())for(const _0x5afed1 of _0x730af7)if(_0x5afed1['id']===_0x343558)return _0x5afed1[_0x1bba('0x6')];}[_0x1bba('0x24')](_0x14d9ce,_0x53cc54){const _0x21a372=_0x53cc54?[this['channelSessions'][_0x1bba('0x1d')](_0x53cc54)]:this[_0x1bba('0x28')][_0x1bba('0x11')](),_0x407129=new Set();for(const _0x235a01 of _0x21a372)for(const _0x50d121 of _0x235a01)_0x50d121[_0x1bba('0x6')]['id']===_0x14d9ce['id']&&_0x407129[_0x1bba('0x14')](_0x50d121['id']);return _0x407129;}[_0x1bba('0x21')](_0x264a93){for(const _0x5d1ff9 of this[_0x1bba('0x28')][_0x1bba('0x11')]())for(const _0x25ad8f of _0x5d1ff9)if(_0x25ad8f['user']===_0x264a93)return _0x25ad8f['role'];}[_0x1bba('0x1b')](_0x2b90d6,_0x16887e){if('connected'!==this[_0x1bba('0x16')][_0x1bba('0xd')][_0x1bba('0x1d')](_0x199fa2)[_0x1bba('0xc')])return;const _0x35a4f7=_0x16887e[_0x1bba('0x6')],_0x5bceee=this[_0x1bba('0x9')][_0x1bba('0x4')](_0x35a4f7['id'])||this['_createUser'](_0x35a4f7),_0x5be7c=Object[_0x1bba('0x17')]({},_0x16887e,{'user':_0x5bceee});this[_0x1bba('0x28')][_0x1bba('0x1d')](_0x2b90d6)[_0x1bba('0x14')](_0x5be7c);const _0x25fa15=this[_0x1bba('0x1e')]['get'](_0x2b90d6);_0x25fa15[_0x1bba('0x15')](_0x5bceee['id'])||_0x25fa15[_0x1bba('0x14')](_0x5bceee),this[_0x1bba('0x1c')][_0x1bba('0x15')](_0x5bceee['id'])||this[_0x1bba('0x1c')]['add'](_0x5bceee),this['fire'](_0x1bba('0x25')+_0x2b90d6,{'channelId':_0x2b90d6,'session':_0x5be7c});}[_0x1bba('0x8')](_0x5d9f6e,_0x590f96){if(_0x1bba('0x18')!==this[_0x1bba('0x16')]['plugins']['get'](_0x199fa2)[_0x1bba('0xc')])return;const _0x258bbb=this[_0x1bba('0x1e')]['get'](_0x5d9f6e),_0x5d82dd=_0x590f96[_0x1bba('0x6')];_0x5d82dd['id']&&(this['channelSessions'][_0x1bba('0x1d')](_0x5d9f6e)[_0x1bba('0x22')](_0x590f96['id']),_0x258bbb['has'](_0x5d82dd['id'])&&!this[_0x1bba('0x24')](_0x5d82dd,_0x5d9f6e)[_0x1bba('0x13')]&&_0x258bbb[_0x1bba('0x22')](_0x5d82dd['id']),this[_0x1bba('0x1c')][_0x1bba('0x1d')](_0x5d82dd['id'])&&!this[_0x1bba('0x24')](_0x5d82dd)['size']&&this['allConnectedUsers'][_0x1bba('0x22')](_0x5d82dd['id']));}[_0x1bba('0x1f')](_0x5494ed,_0x323cb9){const _0x28fc2c=this['_users'][_0x1bba('0x7')](_0x5494ed);return _0x323cb9&&this['_users']['defineMe'](_0x5494ed['id']),_0x28fc2c['orderNumber']=this[_0x1bba('0x26')]++,_0x28fc2c;}}
23
+ const _0x3da0=['getUser','stopListening','remove','unregister','connection','role','listenTo','_uniqueUsersCount','getUserSessions','Sessions','set','clear','init','plugins','_handleSessionAdd','user','has','values','getUserRole','change:state','connected','get','allConnectedUsers','delete','_registeredSessions','channelSessions','_createUser','mySessionId','register','_users','sessionId','channelConnectedUsers','add','context','sessions-register-already-registered','_handleSessionRemove','pluginName','sessions-unregister-not-exist','orderNumber','assign','state','size'];(function(_0x2ae70b,_0x3da0be){const _0x10d151=function(_0x360a5e){while(--_0x360a5e){_0x2ae70b['push'](_0x2ae70b['shift']());}};_0x10d151(++_0x3da0be);}(_0x3da0,0x118));const _0x10d1=function(_0x2ae70b,_0x3da0be){_0x2ae70b=_0x2ae70b-0x0;let _0x10d151=_0x3da0[_0x2ae70b];return _0x10d151;};import{ContextPlugin as _0x587a51}from'ckeditor5/src/core';import{Collection as _0x16234b,CKEditorError as _0x573a4c}from'ckeditor5/src/utils';import _0x37e9db from'./websocketgateway';import{Users as _0x3d53ec}from'ckeditor5-collaboration/src/collaboration-core';export default class r extends _0x587a51{static get[_0x10d1('0x8')](){return _0x10d1('0x17');}static get['requires'](){return[_0x37e9db,_0x3d53ec];}constructor(_0x2a0262){super(_0x2a0262),this[_0x10d1('0x27')]=new Map(),this[_0x10d1('0x3')]=new Map(),this['allConnectedUsers']=new _0x16234b(),this['_registeredSessions']=new Map(),this['_uniqueUsersCount']=0x0,this['_users']=this[_0x10d1('0x5')][_0x10d1('0x1b')]['get'](_0x3d53ec);}[_0x10d1('0x1a')](){const _0x501295=this[_0x10d1('0x5')][_0x10d1('0x1b')][_0x10d1('0x23')](_0x37e9db);this[_0x10d1('0x14')](_0x501295,_0x10d1('0x21'),(_0x5216d0,_0x229834,_0x4b338a)=>{if(_0x10d1('0x22')!==_0x4b338a)this['channelSessions']['forEach'](_0x33b593=>_0x33b593[_0x10d1('0x19')]()),this[_0x10d1('0x3')]['forEach'](_0xf6bdbd=>_0xf6bdbd[_0x10d1('0x19')]()),this[_0x10d1('0x24')][_0x10d1('0x19')]();else for(const [_0x1a3039,_0x4b6974]of this[_0x10d1('0x26')])for(const _0x20d7b7 of _0x4b6974)this[_0x10d1('0x1c')](_0x1a3039,_0x20d7b7);}),this[_0x10d1('0x28')](_0x501295['connection']['me'],!0x0);}[_0x10d1('0x0')](_0x1357dc,_0x4c5002){if(this[_0x10d1('0x26')]['has'](_0x1357dc))throw new _0x573a4c(_0x10d1('0x6'),null,{'channelId':_0x1357dc});this[_0x10d1('0x26')][_0x10d1('0x18')](_0x1357dc,_0x4c5002),this[_0x10d1('0x27')]['set'](_0x1357dc,new _0x16234b()),this[_0x10d1('0x3')][_0x10d1('0x18')](_0x1357dc,new _0x16234b()),this[_0x10d1('0x14')](_0x4c5002,'add',(_0x2580bb,_0x2415bc)=>this[_0x10d1('0x1c')](_0x1357dc,_0x2415bc)),this[_0x10d1('0x14')](_0x4c5002,_0x10d1('0x10'),(_0x117940,_0x2e2d80)=>this[_0x10d1('0x7')](_0x1357dc,_0x2e2d80));for(const _0x472d24 of _0x4c5002)this['_handleSessionAdd'](_0x1357dc,_0x472d24);}[_0x10d1('0x11')](_0xb39f77){if(!this[_0x10d1('0x26')][_0x10d1('0x1e')](_0xb39f77))throw new _0x573a4c(_0x10d1('0x9'),null,{'channelId':_0xb39f77});const _0x1fbc35=this['_registeredSessions'][_0x10d1('0x23')](_0xb39f77);this[_0x10d1('0xf')](_0x1fbc35);for(const _0x4b108a of _0x1fbc35)_0x10d1('0x22')===this[_0x10d1('0x5')]['plugins'][_0x10d1('0x23')](_0x37e9db)[_0x10d1('0xc')]&&this[_0x10d1('0x7')](_0xb39f77,_0x4b108a);this['_registeredSessions'][_0x10d1('0x25')](_0xb39f77),this[_0x10d1('0x27')][_0x10d1('0x25')](_0xb39f77),this[_0x10d1('0x3')][_0x10d1('0x25')](_0xb39f77);}get[_0x10d1('0x29')](){return this[_0x10d1('0x5')]['plugins'][_0x10d1('0x23')](_0x37e9db)[_0x10d1('0x12')][_0x10d1('0x2')];}['getUserBySessionId'](_0x63849a){for(const _0x562971 of this[_0x10d1('0x27')]['values']())for(const _0x2a8521 of _0x562971)if(_0x2a8521['id']===_0x63849a)return _0x2a8521[_0x10d1('0x1d')];}[_0x10d1('0x16')](_0x224c13,_0x18d31b){const _0x19ddfe=_0x18d31b?[this[_0x10d1('0x27')][_0x10d1('0x23')](_0x18d31b)]:this[_0x10d1('0x27')][_0x10d1('0x1f')](),_0x63ee4d=new Set();for(const _0x9e43cc of _0x19ddfe)for(const _0xe554c1 of _0x9e43cc)_0xe554c1[_0x10d1('0x1d')]['id']===_0x224c13['id']&&_0x63ee4d[_0x10d1('0x4')](_0xe554c1['id']);return _0x63ee4d;}[_0x10d1('0x20')](_0x95731f){for(const _0x182f6c of this[_0x10d1('0x27')][_0x10d1('0x1f')]())for(const _0x341c0a of _0x182f6c)if(_0x341c0a[_0x10d1('0x1d')]===_0x95731f)return _0x341c0a[_0x10d1('0x13')];}[_0x10d1('0x1c')](_0x8aeff0,_0x5a8d63){if(_0x10d1('0x22')!==this['context'][_0x10d1('0x1b')][_0x10d1('0x23')](_0x37e9db)[_0x10d1('0xc')])return;const _0x26725f=_0x5a8d63['user'],_0x168ace=this[_0x10d1('0x1')][_0x10d1('0xe')](_0x26725f['id'])||this['_createUser'](_0x26725f),_0x192c7a=Object[_0x10d1('0xb')]({},_0x5a8d63,{'user':_0x168ace});this['channelSessions'][_0x10d1('0x23')](_0x8aeff0)['add'](_0x192c7a);const _0x267bb1=this[_0x10d1('0x3')][_0x10d1('0x23')](_0x8aeff0);_0x267bb1[_0x10d1('0x1e')](_0x168ace['id'])||_0x267bb1[_0x10d1('0x4')](_0x168ace),this['allConnectedUsers']['has'](_0x168ace['id'])||this[_0x10d1('0x24')][_0x10d1('0x4')](_0x168ace),this['fire']('sessionAdd:'+_0x8aeff0,{'channelId':_0x8aeff0,'session':_0x192c7a});}[_0x10d1('0x7')](_0xbc086c,_0x5217e5){if(_0x10d1('0x22')!==this[_0x10d1('0x5')][_0x10d1('0x1b')]['get'](_0x37e9db)[_0x10d1('0xc')])return;const _0x2461e2=this[_0x10d1('0x3')][_0x10d1('0x23')](_0xbc086c),_0x153a66=_0x5217e5[_0x10d1('0x1d')];_0x153a66['id']&&(this[_0x10d1('0x27')][_0x10d1('0x23')](_0xbc086c)[_0x10d1('0x10')](_0x5217e5['id']),_0x2461e2[_0x10d1('0x1e')](_0x153a66['id'])&&!this[_0x10d1('0x16')](_0x153a66,_0xbc086c)[_0x10d1('0xd')]&&_0x2461e2['remove'](_0x153a66['id']),this['allConnectedUsers'][_0x10d1('0x23')](_0x153a66['id'])&&!this[_0x10d1('0x16')](_0x153a66)['size']&&this[_0x10d1('0x24')][_0x10d1('0x10')](_0x153a66['id']));}[_0x10d1('0x28')](_0x5eab35,_0x244b9f){const _0x5c41c0=this[_0x10d1('0x1')]['addUser'](_0x5eab35);return _0x244b9f&&this['_users']['defineMe'](_0x5eab35['id']),_0x5c41c0[_0x10d1('0xa')]=this[_0x10d1('0x15')]++,_0x5c41c0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39a0=['has','getNearestSelectionRange','schema','isCollapsed','toRange','type','checkChild','name','hasContent','isSimilar','userPositionMarker','toDomElement','addMarker','createRange','editing','orderNumber','conversion','markers','applyOperation','marker','tableCell','markerToElement','requires','contenteditable','user:position','for','set','createUIElement','nodeAfter','start','getUserBySessionId','change','model','fromRange','isInline','user:position:','pluginName','undo','parent','getStart','updateMarker','commands','deletionPosition','mySessionId','getMarkerClass','detach','removeMarker','batch','ck-user__selection','size','afterInit','getAttribute','isObject','view','rootName','newRange','isLimit','delete','editor','oldRange','root','getContainedElement','markerRange','clear','startsWith','getFirstRange','highest','data-session-id','createUserMarkerOperations','markerName','$text','split','getCustomProperty','$graveyard','end','render','user:range:','plugins','get','getRange','color','document','span','editingDowncast','selection','user:'];(function(_0x300f88,_0x39a08c){const _0x29b5db=function(_0xac0af3){while(--_0xac0af3){_0x300f88['push'](_0x300f88['shift']());}};_0x29b5db(++_0x39a08c);}(_0x39a0,0x12e));const _0x29b5=function(_0x300f88,_0x39a08c){_0x300f88=_0x300f88-0x0;let _0x29b5db=_0x39a0[_0x300f88];return _0x29b5db;};import{Plugin as _0x45fc2a}from'ckeditor5/src/core';import _0x130c9b from'./sessions';import{LiveRange as _0x47fe84}from'ckeditor5/src/engine';import'../../theme/usermarkers.css';export default class j extends _0x45fc2a{static get[_0x29b5('0x40')](){return[_0x130c9b];}static get[_0x29b5('0x4e')](){return'UserMarkers';}['init'](){const _0x147a9d=this[_0x29b5('0xe')],_0x37870c=_0x147a9d[_0x29b5('0x21')][_0x29b5('0x22')](_0x130c9b);_0x147a9d[_0x29b5('0x3a')][_0x29b5('0x43')](_0x29b5('0x27'))[_0x29b5('0x3f')]({'model':_0x29b5('0x42'),'view':(_0xf6a23a,{writer:_0x5b9b51})=>function(_0x5e1c19,_0x3417fe,_0x5a7419,_0x1141de){const _0x793022=_0x5e1c19[_0x29b5('0x19')]['split'](':')[0x2],_0x22b7cc=_0x5a7419[_0x29b5('0x48')](_0x793022);if(!_0x22b7cc||_0x793022===_0x5a7419[_0x29b5('0x55')])return;if(!_0x1141de[_0x29b5('0x4a')]['schema'][_0x29b5('0x30')](_0x5e1c19[_0x29b5('0x12')]['start'],_0x29b5('0x1a')))return;const _0x5e7c8e={'class':'ck-user__marker\x20'+_0x22b7cc[_0x29b5('0x24')][_0x29b5('0x0')](),'data-name':_0x22b7cc[_0x29b5('0x31')],'data-session-id':_0x793022},_0x46fc2c=_0x1141de[_0x29b5('0x4a')]['markers'][_0x29b5('0x22')](_0x5e1c19[_0x29b5('0x19')]),_0x4dfb31=_0x46fc2c[_0x29b5('0x51')](),_0x5ab3b7=_0x4dfb31[_0x29b5('0x46')],_0x13b5b6=_0x1141de[_0x29b5('0x4a')]['schema'];if(_0x5ab3b7&&_0x13b5b6[_0x29b5('0x8')](_0x5ab3b7)&&_0x13b5b6[_0x29b5('0x4c')](_0x5ab3b7)&&!_0x1141de['model'][_0x29b5('0x3b')][_0x29b5('0x22')](_0x29b5('0x20')+_0x793022)[_0x29b5('0x23')]()[_0x29b5('0x2d')])return;const _0x38a9d2=_0x4dfb31[_0x29b5('0x50')];return _0x1141de[_0x29b5('0x4a')][_0x29b5('0x2c')][_0x29b5('0xc')](_0x38a9d2)&&!_0x1141de[_0x29b5('0x4a')][_0x29b5('0x32')](_0x38a9d2)&&(_0x5e7c8e[_0x29b5('0x41')]=!0x1),function(_0x39d74a,_0x1b6ee9){const _0x5c1e09=_0x39d74a[_0x29b5('0x45')](_0x29b5('0x26'),_0x1b6ee9);return _0x39d74a['setCustomProperty']('userPositionMarker',!0x0,_0x5c1e09),_0x5c1e09[_0x29b5('0x1f')]=function(_0x19964f){const _0x30ea33=this[_0x29b5('0x35')](_0x19964f);return _0x30ea33['innerHTML']='⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>⁠',_0x30ea33;},_0x5c1e09[_0x29b5('0x33')]=function(_0x491340){return!(!this[_0x29b5('0x1c')](_0x29b5('0x34'))||!_0x491340[_0x29b5('0x1c')](_0x29b5('0x34'))||this[_0x29b5('0x7')]('data-session-id')!=_0x491340['getAttribute'](_0x29b5('0x17')));},_0x5c1e09;}(_0x3417fe,_0x5e7c8e);}(_0xf6a23a,_0x5b9b51,_0x37870c,_0x147a9d)}),_0x147a9d[_0x29b5('0x3a')][_0x29b5('0x43')](_0x29b5('0x27'))['markerToHighlight']({'model':'user:range','view':_0x340fa5=>function(_0x59b533,_0x4b7c37){const _0x5d6738=_0x59b533[_0x29b5('0x19')][_0x29b5('0x1b')](':')[0x2];if(_0x5d6738===_0x4b7c37[_0x29b5('0x55')])return null;const _0x13af4c=_0x4b7c37[_0x29b5('0x48')](_0x5d6738);if(!_0x13af4c)return{'id':_0x5d6738,'classes':[]};return{'id':_0x5d6738,'classes':[_0x29b5('0x4'),_0x13af4c[_0x29b5('0x24')]['getSelectionClass']()],'attributes':{'data-session-id':_0x5d6738},'priority':0x7d0+_0x13af4c[_0x29b5('0x39')]};}(_0x340fa5,_0x37870c)}),function(_0x121105){const _0x1151ab=_0x121105[_0x29b5('0x4a')],_0x5227d1=new Map(),_0x10b9dd=_0x121105['plugins'][_0x29b5('0x22')](_0x130c9b);_0x1151ab['markers']['on']('update:user:range',(_0x8efb0d,_0x1a1322,_0x35b457,_0x3b3aec)=>{if(!_0x3b3aec&&_0x5227d1[_0x29b5('0x22')](_0x1a1322[_0x29b5('0x31')]))return _0x5227d1[_0x29b5('0x22')](_0x1a1322[_0x29b5('0x31')])[_0x29b5('0x1')](),void _0x5227d1['delete'](_0x1a1322['name']);const _0x208d21=_0x1a1322[_0x29b5('0x31')]['split'](':')[0x2];if(_0x208d21===_0x10b9dd['mySessionId'])return;const _0x4f908b=_0x29b5('0x4d')+_0x208d21;_0x1151ab['markers'][_0x29b5('0x2a')](_0x4f908b)&&_0x121105[_0x29b5('0x38')]['reconvertMarker'](_0x4f908b),_0x1a1322['on']('change:range',(_0x3da081,_0x47bb11,_0x24f50f)=>{if(_0x29b5('0x1d')!=_0x47bb11[_0x29b5('0x10')][_0x29b5('0xa')]&&_0x29b5('0x1d')==_0x1a1322[_0x29b5('0x23')]()[_0x29b5('0x10')][_0x29b5('0xa')]&&!_0x5227d1[_0x29b5('0x2a')](_0x1a1322[_0x29b5('0x31')])){const _0x317a9=_0x1151ab[_0x29b5('0x2c')][_0x29b5('0x2b')](_0x24f50f[_0x29b5('0x54')]);if(_0x317a9){const _0x1c1d34=_0x47fe84[_0x29b5('0x4b')](_0x317a9);_0x5227d1[_0x29b5('0x44')](_0x1a1322[_0x29b5('0x31')],_0x1c1d34),_0x1c1d34['on']('change:range',(_0x31da45,_0x3c6a02,_0xb66c38)=>{if(_0x29b5('0x1d')==_0x1c1d34['root'][_0x29b5('0xa')]){const _0x546d57=_0x1151ab[_0x29b5('0x2c')]['getNearestSelectionRange'](_0xb66c38[_0x29b5('0x54')]);_0x546d57?(_0x1c1d34[_0x29b5('0x47')]=_0x546d57[_0x29b5('0x47')],_0x1c1d34[_0x29b5('0x1e')]=_0x546d57[_0x29b5('0x1e')]):(_0x5227d1[_0x29b5('0xd')](_0x1a1322[_0x29b5('0x31')]),_0x1c1d34[_0x29b5('0x1')]());}});}}});}),_0x1151ab[_0x29b5('0x25')]['on'](_0x29b5('0x49'),()=>{_0x5227d1[_0x29b5('0x5')]>0x0&&_0x1151ab['enqueueChange']({'isUndoable':!0x1},_0x409ffe=>{for(const [_0x10f8bb,_0x591943]of _0x5227d1)_0x29b5('0x1d')==_0x1151ab[_0x29b5('0x3b')][_0x29b5('0x22')](_0x10f8bb)[_0x29b5('0x23')]()[_0x29b5('0x10')][_0x29b5('0xa')]&&(Y(_0x10f8bb[_0x29b5('0x1b')](':')[0x2],_0x591943[_0x29b5('0x2e')](),_0x1151ab,_0x409ffe),_0x591943[_0x29b5('0x1')]());_0x5227d1[_0x29b5('0x13')]();});});}(_0x147a9d);}[_0x29b5('0x6')](){const _0x141a70=this[_0x29b5('0xe')],_0x596649=_0x141a70[_0x29b5('0x53')]['get'](_0x29b5('0x4f'));_0x596649&&_0x141a70[_0x29b5('0x4a')]['on'](_0x29b5('0x3c'),(_0x9eee84,_0x196b87)=>{const _0x47a2af=_0x196b87[0x0];if(_0x29b5('0x3d')!=_0x47a2af[_0x29b5('0x2f')]||!_0x47a2af['name'][_0x29b5('0x14')](_0x29b5('0x29')))return;const _0x4a35c2=_0x47a2af[_0x29b5('0x3')];_0x596649['_createdBatches'][_0x29b5('0x2a')](_0x4a35c2)&&(_0x47a2af[_0x29b5('0xb')]=_0x47a2af[_0x29b5('0xf')]?_0x141a70[_0x29b5('0x4a')]['createRange'](_0x47a2af[_0x29b5('0xf')][_0x29b5('0x47')],_0x47a2af[_0x29b5('0xf')]['end']):null);},{'priority':_0x29b5('0x16')});}[_0x29b5('0x18')](){const _0x25543d=this[_0x29b5('0xe')],_0x146fb6=_0x25543d['model'][_0x29b5('0x25')],_0x1aa029=_0x25543d['plugins'][_0x29b5('0x22')](_0x130c9b);_0x25543d[_0x29b5('0x4a')]['enqueueChange']({'isUndoable':!0x1},_0x7b7fa9=>{const _0x584697=_0x29b5('0x20')+_0x1aa029[_0x29b5('0x55')],_0xab866=_0x29b5('0x4d')+_0x1aa029[_0x29b5('0x55')],_0xdf086e=_0x25543d['model'][_0x29b5('0x3b')][_0x29b5('0x2a')](_0x584697);_0x25543d[_0x29b5('0x38')][_0x29b5('0x9')]['hasDomSelection']?Y(_0x1aa029[_0x29b5('0x55')],_0x146fb6[_0x29b5('0x28')][_0x29b5('0x15')](),_0x25543d[_0x29b5('0x4a')],_0x7b7fa9):_0xdf086e&&(_0x7b7fa9[_0x29b5('0x2')](_0x584697),_0x7b7fa9[_0x29b5('0x2')](_0xab866));});}}function Y(_0x5ec42c,_0x599cb8,_0x408d7a,_0x10cbe4){const _0x54812f=_0x29b5('0x20')+_0x5ec42c,_0x476a1a=_0x29b5('0x4d')+_0x5ec42c,_0x223f02=_0x599cb8[_0x29b5('0x11')]();let _0x57c1e4=_0x599cb8[_0x29b5('0x47')];_0x223f02&&_0x223f02['is']('element',_0x29b5('0x3e'))&&(_0x57c1e4=function(_0x3f3fb4,_0x8f616b){for(const _0x594b71 of _0x3f3fb4['getPositions']())if(_0x8f616b[_0x29b5('0x2c')]['checkChild'](_0x594b71,_0x29b5('0x1a')))return _0x594b71;}(_0x599cb8,_0x408d7a),_0x599cb8=_0x10cbe4[_0x29b5('0x37')](_0x57c1e4));const _0x4598b1=_0x10cbe4['createRange'](_0x57c1e4);_0x408d7a[_0x29b5('0x3b')][_0x29b5('0x2a')](_0x54812f)?(_0x10cbe4[_0x29b5('0x52')](_0x54812f,{'range':_0x599cb8}),_0x10cbe4[_0x29b5('0x52')](_0x476a1a,{'range':_0x4598b1})):(_0x10cbe4['addMarker'](_0x54812f,{'range':_0x599cb8,'usingOperation':!0x0}),_0x10cbe4[_0x29b5('0x36')](_0x476a1a,{'range':_0x4598b1,'usingOperation':!0x0}));}
23
+ const _0x33fe=['hasContent','getRange','plugins','createUIElement','user:range:','startsWith','$graveyard','for','deletionPosition','createUserMarkerOperations','render','isCollapsed','requires','commands','ck-user__selection','editing','innerHTML','selection','view','markerToElement','removeMarker','root','pluginName','delete','type','element','data-session-id','color','getSelectionClass','nodeAfter','get','editingDowncast','document','ck-user__marker\x20','getMarkerClass','getNearestSelectionRange','user:','getCustomProperty','has','markerRange','user:range','split','markerName','UserMarkers','createRange','isObject','getFirstRange','editor','isInline','setCustomProperty','batch','start','$text','addMarker','user:position:','newRange','markers','applyOperation','end','model','change:range','afterInit','enqueueChange','updateMarker','highest','conversion','getUserBySessionId','user:position','name','checkChild','_createdBatches','schema','tableCell','oldRange','marker','getAttribute','markerToHighlight','rootName','detach','mySessionId','span'];(function(_0x2c8377,_0x33fefb){const _0x940466=function(_0x36c1cb){while(--_0x36c1cb){_0x2c8377['push'](_0x2c8377['shift']());}};_0x940466(++_0x33fefb);}(_0x33fe,0x11f));const _0x9404=function(_0x2c8377,_0x33fefb){_0x2c8377=_0x2c8377-0x0;let _0x940466=_0x33fe[_0x2c8377];return _0x940466;};import{Plugin as _0x310eac}from'ckeditor5/src/core';import _0x460917 from'./sessions';import{LiveRange as _0x5d8b6a}from'ckeditor5/src/engine';import'../../theme/usermarkers.css';export default class j extends _0x310eac{static get[_0x9404('0x31')](){return[_0x460917];}static get[_0x9404('0x3b')](){return _0x9404('0x50');}['init'](){const _0x320326=this['editor'],_0xd92ec7=_0x320326[_0x9404('0x27')][_0x9404('0x43')](_0x460917);_0x320326['conversion'][_0x9404('0x2c')](_0x9404('0x44'))[_0x9404('0x38')]({'model':_0x9404('0x17'),'view':(_0x5cdc80,{writer:_0x365df8})=>function(_0x428652,_0xf34b84,_0x1a6b54,_0x321cd8){const _0x1d63ae=_0x428652[_0x9404('0x4f')]['split'](':')[0x2],_0x29971f=_0x1a6b54[_0x9404('0x16')](_0x1d63ae);if(!_0x29971f||_0x1d63ae===_0x1a6b54[_0x9404('0x23')])return;if(!_0x321cd8[_0x9404('0xf')][_0x9404('0x1b')][_0x9404('0x19')](_0x428652[_0x9404('0x4c')][_0x9404('0x7')],_0x9404('0x8')))return;const _0x331ac1={'class':_0x9404('0x46')+_0x29971f[_0x9404('0x40')][_0x9404('0x47')](),'data-name':_0x29971f[_0x9404('0x18')],'data-session-id':_0x1d63ae},_0x28b065=_0x321cd8['model'][_0x9404('0xc')]['get'](_0x428652[_0x9404('0x4f')]),_0x23684f=_0x28b065['getStart'](),_0x1609fb=_0x23684f[_0x9404('0x42')],_0x379590=_0x321cd8[_0x9404('0xf')][_0x9404('0x1b')];if(_0x1609fb&&_0x379590[_0x9404('0x1')](_0x1609fb)&&_0x379590[_0x9404('0x4')](_0x1609fb)&&!_0x321cd8[_0x9404('0xf')][_0x9404('0xc')][_0x9404('0x43')]('user:range:'+_0x1d63ae)['getRange']()[_0x9404('0x30')])return;const _0x2a389e=_0x23684f['parent'];return _0x321cd8[_0x9404('0xf')][_0x9404('0x1b')]['isLimit'](_0x2a389e)&&!_0x321cd8[_0x9404('0xf')][_0x9404('0x25')](_0x2a389e)&&(_0x331ac1['contenteditable']=!0x1),function(_0x432e1d,_0x1e1300){const _0xb95bc8=_0x432e1d[_0x9404('0x28')](_0x9404('0x24'),_0x1e1300);return _0x432e1d[_0x9404('0x5')]('userPositionMarker',!0x0,_0xb95bc8),_0xb95bc8[_0x9404('0x2f')]=function(_0x50444b){const _0x4a980b=this['toDomElement'](_0x50444b);return _0x4a980b[_0x9404('0x35')]='⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>⁠',_0x4a980b;},_0xb95bc8['isSimilar']=function(_0x1ee149){return!(!this[_0x9404('0x4a')]('userPositionMarker')||!_0x1ee149['getCustomProperty']('userPositionMarker')||this[_0x9404('0x1f')](_0x9404('0x3f'))!=_0x1ee149[_0x9404('0x1f')](_0x9404('0x3f')));},_0xb95bc8;}(_0xf34b84,_0x331ac1);}(_0x5cdc80,_0x365df8,_0xd92ec7,_0x320326)}),_0x320326[_0x9404('0x15')][_0x9404('0x2c')](_0x9404('0x44'))[_0x9404('0x20')]({'model':_0x9404('0x4d'),'view':_0x51dc76=>function(_0x361be8,_0x131748){const _0x4cca5c=_0x361be8[_0x9404('0x4f')]['split'](':')[0x2];if(_0x4cca5c===_0x131748[_0x9404('0x23')])return null;const _0x5ca406=_0x131748['getUserBySessionId'](_0x4cca5c);if(!_0x5ca406)return{'id':_0x4cca5c,'classes':[]};return{'id':_0x4cca5c,'classes':[_0x9404('0x33'),_0x5ca406['color'][_0x9404('0x41')]()],'attributes':{'data-session-id':_0x4cca5c},'priority':0x7d0+_0x5ca406['orderNumber']};}(_0x51dc76,_0xd92ec7)}),function(_0x5c1e97){const _0x5a5e6a=_0x5c1e97[_0x9404('0xf')],_0x1fc742=new Map(),_0x21c842=_0x5c1e97[_0x9404('0x27')][_0x9404('0x43')](_0x460917);_0x5a5e6a[_0x9404('0xc')]['on']('update:user:range',(_0x47996f,_0x3c1446,_0x5333bd,_0x402210)=>{if(!_0x402210&&_0x1fc742[_0x9404('0x43')](_0x3c1446[_0x9404('0x18')]))return _0x1fc742[_0x9404('0x43')](_0x3c1446['name'])[_0x9404('0x22')](),void _0x1fc742[_0x9404('0x3c')](_0x3c1446['name']);const _0x1e5dba=_0x3c1446['name']['split'](':')[0x2];if(_0x1e5dba===_0x21c842['mySessionId'])return;const _0x115b25='user:position:'+_0x1e5dba;_0x5a5e6a['markers'][_0x9404('0x4b')](_0x115b25)&&_0x5c1e97['editing']['reconvertMarker'](_0x115b25),_0x3c1446['on'](_0x9404('0x10'),(_0x3043ed,_0x2c028c,_0x136da4)=>{if('$graveyard'!=_0x2c028c[_0x9404('0x3a')][_0x9404('0x21')]&&'$graveyard'==_0x3c1446[_0x9404('0x26')]()['root'][_0x9404('0x21')]&&!_0x1fc742[_0x9404('0x4b')](_0x3c1446[_0x9404('0x18')])){const _0x50a689=_0x5a5e6a[_0x9404('0x1b')]['getNearestSelectionRange'](_0x136da4[_0x9404('0x2d')]);if(_0x50a689){const _0x1fc71b=_0x5d8b6a['fromRange'](_0x50a689);_0x1fc742['set'](_0x3c1446[_0x9404('0x18')],_0x1fc71b),_0x1fc71b['on'](_0x9404('0x10'),(_0x992bae,_0x26b512,_0x454547)=>{if(_0x9404('0x2b')==_0x1fc71b['root']['rootName']){const _0x186e05=_0x5a5e6a[_0x9404('0x1b')][_0x9404('0x48')](_0x454547[_0x9404('0x2d')]);_0x186e05?(_0x1fc71b[_0x9404('0x7')]=_0x186e05[_0x9404('0x7')],_0x1fc71b[_0x9404('0xe')]=_0x186e05[_0x9404('0xe')]):(_0x1fc742['delete'](_0x3c1446[_0x9404('0x18')]),_0x1fc71b[_0x9404('0x22')]());}});}}});}),_0x5a5e6a[_0x9404('0x45')]['on']('change',()=>{_0x1fc742['size']>0x0&&_0x5a5e6a[_0x9404('0x12')]({'isUndoable':!0x1},_0x379e27=>{for(const [_0x4f10a8,_0x562df9]of _0x1fc742)_0x9404('0x2b')==_0x5a5e6a[_0x9404('0xc')][_0x9404('0x43')](_0x4f10a8)['getRange']()['root'][_0x9404('0x21')]&&(Y(_0x4f10a8[_0x9404('0x4e')](':')[0x2],_0x562df9['toRange'](),_0x5a5e6a,_0x379e27),_0x562df9[_0x9404('0x22')]());_0x1fc742['clear']();});});}(_0x320326);}[_0x9404('0x11')](){const _0x22884c=this[_0x9404('0x3')],_0x5cfdd4=_0x22884c[_0x9404('0x32')][_0x9404('0x43')]('undo');_0x5cfdd4&&_0x22884c[_0x9404('0xf')]['on'](_0x9404('0xd'),(_0x3e7315,_0x1be273)=>{const _0x38b45b=_0x1be273[0x0];if(_0x9404('0x1e')!=_0x38b45b[_0x9404('0x3d')]||!_0x38b45b[_0x9404('0x18')][_0x9404('0x2a')](_0x9404('0x49')))return;const _0x2466f8=_0x38b45b[_0x9404('0x6')];_0x5cfdd4[_0x9404('0x1a')]['has'](_0x2466f8)&&(_0x38b45b[_0x9404('0xb')]=_0x38b45b[_0x9404('0x1d')]?_0x22884c[_0x9404('0xf')][_0x9404('0x0')](_0x38b45b[_0x9404('0x1d')][_0x9404('0x7')],_0x38b45b['oldRange'][_0x9404('0xe')]):null);},{'priority':_0x9404('0x14')});}[_0x9404('0x2e')](){const _0x45b74a=this[_0x9404('0x3')],_0x5cc659=_0x45b74a['model'][_0x9404('0x45')],_0x5d9873=_0x45b74a[_0x9404('0x27')][_0x9404('0x43')](_0x460917);_0x45b74a['model'][_0x9404('0x12')]({'isUndoable':!0x1},_0x523b9b=>{const _0x3e2ccd=_0x9404('0x29')+_0x5d9873[_0x9404('0x23')],_0x5a5c99='user:position:'+_0x5d9873[_0x9404('0x23')],_0x3d2028=_0x45b74a[_0x9404('0xf')][_0x9404('0xc')][_0x9404('0x4b')](_0x3e2ccd);_0x45b74a[_0x9404('0x34')][_0x9404('0x37')]['hasDomSelection']?Y(_0x5d9873['mySessionId'],_0x5cc659[_0x9404('0x36')][_0x9404('0x2')](),_0x45b74a[_0x9404('0xf')],_0x523b9b):_0x3d2028&&(_0x523b9b[_0x9404('0x39')](_0x3e2ccd),_0x523b9b[_0x9404('0x39')](_0x5a5c99));});}}function Y(_0x463d87,_0x617a0c,_0x3b4fcf,_0x54837d){const _0x3bfbff=_0x9404('0x29')+_0x463d87,_0x55b238=_0x9404('0xa')+_0x463d87,_0x1fcc28=_0x617a0c['getContainedElement']();let _0x25fe3c=_0x617a0c[_0x9404('0x7')];_0x1fcc28&&_0x1fcc28['is'](_0x9404('0x3e'),_0x9404('0x1c'))&&(_0x25fe3c=function(_0x229bd8,_0x595955){for(const _0x596e72 of _0x229bd8['getPositions']())if(_0x595955['schema'][_0x9404('0x19')](_0x596e72,_0x9404('0x8')))return _0x596e72;}(_0x617a0c,_0x3b4fcf),_0x617a0c=_0x54837d[_0x9404('0x0')](_0x25fe3c));const _0x4921c0=_0x54837d[_0x9404('0x0')](_0x25fe3c);_0x3b4fcf[_0x9404('0xc')]['has'](_0x3bfbff)?(_0x54837d['updateMarker'](_0x3bfbff,{'range':_0x617a0c}),_0x54837d[_0x9404('0x13')](_0x55b238,{'range':_0x4921c0})):(_0x54837d[_0x9404('0x9')](_0x3bfbff,{'range':_0x617a0c,'usingOperation':!0x0}),_0x54837d[_0x9404('0x9')](_0x55b238,{'range':_0x4921c0,'usingOperation':!0x0}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46b9=['all','webSocketUrl','websocketgateway-invalid-plugin-interface','websocketgateway-missing-websocket-url','define','get','connect','cloudservices-reconnection-error','plugins','connected','state','config','websocketgateway-missing-token','DISCONNECTED','destroy','offline','stopListening','init','CloudServices','CONNECTING','delete','cloudservices-init','token','_shouldPluginsReconnect','bind','WebSocketGateway','requires','_reconnectionStack','context','listenTo','then','isInReconnectionStack','addToReconnectionStack','initialReconnectionInterval','showWarning','code','set','reconnect','_domEmitter','CONNECTED','add','from','catch','websocketgateway-plugin-already-registered','create','connection','removeFromReconnectionStack','has','real-time-collaboration','cloudServices.requestTimeout','_reconnect','_isBrowserOffline','error','cloudServices.connectionTimeout','pluginName'];(function(_0x16e123,_0x46b996){const _0x311d4a=function(_0x40f06e){while(--_0x40f06e){_0x16e123['push'](_0x16e123['shift']());}};_0x311d4a(++_0x46b996);}(_0x46b9,0xc4));const _0x311d=function(_0x16e123,_0x46b996){_0x16e123=_0x16e123-0x0;let _0x311d4a=_0x46b9[_0x16e123];return _0x311d4a;};import{ContextPlugin as _0x577589}from'ckeditor5/src/core';import{DomEmitterMixin as _0xaa8a5e,CKEditorError as _0x19171b}from'ckeditor5/src/utils';import{WebSocketGateway as _0x56e4af,WEB_SOCKET_GATEWAY_STATES as _0x4e5dc1}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services';import{Notification as _0x5aa7b5}from'ckeditor5/src/ui';export default class c extends _0x577589{static get[_0x311d('0x32')](){return[_0x311d('0x2a'),_0x5aa7b5];}static get[_0x311d('0x17')](){return'WebSocketGateway';}constructor(_0x53e984){super(_0x53e984),this[_0x311d('0x5')]('state',_0x4e5dc1[_0x311d('0x8')]),this[_0x311d('0x5')]('_isBrowserOffline',!0x1),this[_0x311d('0x33')]=new Set(),this[_0x311d('0x2f')]=!0x1,this[_0x311d('0x7')]=Object[_0x311d('0xd')](_0xaa8a5e);}[_0x311d('0x29')](){const _0x1952dd=this[_0x311d('0x34')],_0x290dfe=_0x1952dd[_0x311d('0x20')]['get'](_0x311d('0x2a')),_0x2edba3=_0x1952dd[_0x311d('0x20')][_0x311d('0x1d')](_0x5aa7b5);if(!_0x290dfe[_0x311d('0x2e')])throw new _0x19171b(_0x311d('0x24'),this);if(!_0x290dfe[_0x311d('0x19')])throw new _0x19171b(_0x311d('0x1b'),this);return this[_0x311d('0x7')][_0x311d('0x35')](window,_0x311d('0x27'),()=>this[_0x311d('0x14')]=!0x0),this[_0x311d('0x7')][_0x311d('0x35')](window,'online',()=>this[_0x311d('0x14')]=!0x1),this['context'][_0x311d('0x23')]['define'](_0x311d('0x16'),0xa),this[_0x311d('0x34')][_0x311d('0x23')][_0x311d('0x1c')](_0x311d('0x12'),0x14),c[_0x311d('0x31')][_0x311d('0x1e')](_0x290dfe['token'],_0x290dfe['webSocketUrl'],{'timeout':0x3e8*this[_0x311d('0x34')][_0x311d('0x23')][_0x311d('0x1d')](_0x311d('0x16')),'requestTimeout':0x3e8*this['context'][_0x311d('0x23')][_0x311d('0x1d')](_0x311d('0x12'))})[_0x311d('0x36')](_0xb8dbd4=>{if(this[_0x311d('0xe')]=_0xb8dbd4,this[_0x311d('0x30')](_0x311d('0x22'))['to'](_0xb8dbd4,_0x311d('0x22'),this,_0x311d('0x14'),(_0x3ddde2,_0xec2abf)=>(_0x311d('0x21')!==_0x3ddde2&&(this[_0x311d('0x2f')]=!0x0),_0xec2abf||_0x3ddde2!==_0x4e5dc1['CONNECTED']?_0x4e5dc1[_0x311d('0x25')]:this['state']==_0x4e5dc1[_0x311d('0x25')]&&this[_0x311d('0x2f')]?(this[_0x311d('0x2f')]=!0x1,this['_reconnect'](),_0x4e5dc1[_0x311d('0x2b')]):_0x4e5dc1[_0x311d('0x8')])),this['connection']['on'](_0x311d('0x15'),(_0x2b12bc,_0x37fd58)=>{if('limitExceeded'!==_0x37fd58[_0x311d('0x4')])throw console[_0x311d('0x15')](_0x37fd58),new _0x19171b(_0x311d('0x2d'),null,{'originalError':_0x37fd58});_0x2edba3[_0x311d('0x3')]('The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.',{'title':'Connected\x20users\x20limit\x20exceeded','namespace':_0x311d('0x11')});}),!_0xb8dbd4['me'])return new Promise(_0x5e9823=>_0xb8dbd4['on']('change:me',_0x5e9823));})[_0x311d('0xb')](_0x591644=>{throw console[_0x311d('0x15')](_0x591644),new _0x19171b('cloudservices-init',null,{'originalError':_0x591644});});}[_0x311d('0x1')](_0x5c6b5e){if('function'!=typeof _0x5c6b5e[_0x311d('0x6')])throw new _0x19171b(_0x311d('0x1a'),this);if(this[_0x311d('0x0')](_0x5c6b5e))throw new _0x19171b(_0x311d('0xc'),this,{'name':_0x5c6b5e['constructor']['pluginName']});this[_0x311d('0x33')][_0x311d('0x9')](_0x5c6b5e);}[_0x311d('0xf')](_0x520a3b){this[_0x311d('0x33')][_0x311d('0x2c')](_0x520a3b);}[_0x311d('0x0')](_0x3c2810){return this['_reconnectionStack'][_0x311d('0x10')](_0x3c2810);}[_0x311d('0x13')](){return this['connection'][_0x311d('0x6')]()['then'](()=>Promise[_0x311d('0x18')](Array[_0x311d('0xa')](this[_0x311d('0x33')],_0x4ed656=>_0x4ed656[_0x311d('0x6')]())))['then'](()=>this[_0x311d('0x22')]=_0x4e5dc1[_0x311d('0x8')])[_0x311d('0xb')](_0x1a779f=>{throw console['error'](_0x1a779f),new _0x19171b(_0x311d('0x1f'),this[_0x311d('0x34')]);});}['destroy'](){this[_0x311d('0xe')]&&this[_0x311d('0xe')]['disconnect'](),this[_0x311d('0x22')]=_0x4e5dc1[_0x311d('0x25')],this[_0x311d('0x7')][_0x311d('0x28')](),super[_0x311d('0x26')]();}}c[_0x311d('0x31')]=_0x56e4af,c[_0x311d('0x2')]=0x3e8;
23
+ const _0xf91b=['connect','init','CONNECTING','cloudservices-reconnection-error','connection','catch','_shouldPluginsReconnect','pluginName','define','websocketgateway-plugin-already-registered','has','initialReconnectionInterval','online','addToReconnectionStack','isInReconnectionStack','listenTo','WebSocketGateway','plugins','cloudServices.connectionTimeout','code','_domEmitter','DISCONNECTED','connected','config','error','function','Connected\x20users\x20limit\x20exceeded','token','webSocketUrl','create','context','bind','add','get','constructor','_reconnect','_reconnectionStack','cloudservices-init','all','The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.','change:me','delete','then','CONNECTED','_isBrowserOffline','real-time-collaboration','state','destroy','limitExceeded','websocketgateway-missing-token','requires','CloudServices','set','disconnect','stopListening','cloudServices.requestTimeout','websocketgateway-missing-websocket-url'];(function(_0x201709,_0xf91b56){const _0x6f3060=function(_0x37975f){while(--_0x37975f){_0x201709['push'](_0x201709['shift']());}};_0x6f3060(++_0xf91b56);}(_0xf91b,0xea));const _0x6f30=function(_0x201709,_0xf91b56){_0x201709=_0x201709-0x0;let _0x6f3060=_0xf91b[_0x201709];return _0x6f3060;};import{ContextPlugin as _0x5d428c}from'ckeditor5/src/core';import{DomEmitterMixin as _0x4238d6,CKEditorError as _0x22999d}from'ckeditor5/src/utils';import{WebSocketGateway as _0x2ff7e4,WEB_SOCKET_GATEWAY_STATES as _0x3ccac7}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services';import{Notification as _0x5d3241}from'ckeditor5/src/ui';export default class c extends _0x5d428c{static get[_0x6f30('0x2c')](){return[_0x6f30('0x2d'),_0x5d3241];}static get[_0x6f30('0x1')](){return'WebSocketGateway';}constructor(_0x4c01ab){super(_0x4c01ab),this['set'](_0x6f30('0x28'),_0x3ccac7[_0x6f30('0x25')]),this[_0x6f30('0x2e')](_0x6f30('0x26'),!0x1),this[_0x6f30('0x1e')]=new Set(),this[_0x6f30('0x0')]=!0x1,this[_0x6f30('0xe')]=Object[_0x6f30('0x17')](_0x4238d6);}[_0x6f30('0x34')](){const _0x4a00b2=this[_0x6f30('0x18')],_0x19b5c5=_0x4a00b2[_0x6f30('0xb')]['get']('CloudServices'),_0x558a89=_0x4a00b2['plugins'][_0x6f30('0x1b')](_0x5d3241);if(!_0x19b5c5[_0x6f30('0x15')])throw new _0x22999d(_0x6f30('0x2b'),this);if(!_0x19b5c5[_0x6f30('0x16')])throw new _0x22999d(_0x6f30('0x32'),this);return this['_domEmitter'][_0x6f30('0x9')](window,'offline',()=>this[_0x6f30('0x26')]=!0x0),this[_0x6f30('0xe')][_0x6f30('0x9')](window,_0x6f30('0x6'),()=>this[_0x6f30('0x26')]=!0x1),this[_0x6f30('0x18')][_0x6f30('0x11')][_0x6f30('0x2')](_0x6f30('0xc'),0xa),this['context'][_0x6f30('0x11')][_0x6f30('0x2')](_0x6f30('0x31'),0x14),c[_0x6f30('0xa')][_0x6f30('0x33')](_0x19b5c5['token'],_0x19b5c5[_0x6f30('0x16')],{'timeout':0x3e8*this[_0x6f30('0x18')][_0x6f30('0x11')][_0x6f30('0x1b')](_0x6f30('0xc')),'requestTimeout':0x3e8*this['context'][_0x6f30('0x11')][_0x6f30('0x1b')](_0x6f30('0x31'))})[_0x6f30('0x24')](_0x3d582a=>{if(this[_0x6f30('0x37')]=_0x3d582a,this[_0x6f30('0x19')](_0x6f30('0x28'))['to'](_0x3d582a,_0x6f30('0x28'),this,_0x6f30('0x26'),(_0x4e52c5,_0x2bacf4)=>(_0x6f30('0x10')!==_0x4e52c5&&(this[_0x6f30('0x0')]=!0x0),_0x2bacf4||_0x4e52c5!==_0x3ccac7['CONNECTED']?_0x3ccac7[_0x6f30('0xf')]:this[_0x6f30('0x28')]==_0x3ccac7['DISCONNECTED']&&this[_0x6f30('0x0')]?(this[_0x6f30('0x0')]=!0x1,this[_0x6f30('0x1d')](),_0x3ccac7[_0x6f30('0x35')]):_0x3ccac7[_0x6f30('0x25')])),this[_0x6f30('0x37')]['on'](_0x6f30('0x12'),(_0x147224,_0x9c3732)=>{if(_0x6f30('0x2a')!==_0x9c3732[_0x6f30('0xd')])throw console['error'](_0x9c3732),new _0x22999d('cloudservices-init',null,{'originalError':_0x9c3732});_0x558a89['showWarning'](_0x6f30('0x21'),{'title':_0x6f30('0x14'),'namespace':_0x6f30('0x27')});}),!_0x3d582a['me'])return new Promise(_0x59a10d=>_0x3d582a['on'](_0x6f30('0x22'),_0x59a10d));})[_0x6f30('0x38')](_0x16de04=>{throw console[_0x6f30('0x12')](_0x16de04),new _0x22999d(_0x6f30('0x1f'),null,{'originalError':_0x16de04});});}[_0x6f30('0x7')](_0x4c25a6){if(_0x6f30('0x13')!=typeof _0x4c25a6['reconnect'])throw new _0x22999d('websocketgateway-invalid-plugin-interface',this);if(this[_0x6f30('0x8')](_0x4c25a6))throw new _0x22999d(_0x6f30('0x3'),this,{'name':_0x4c25a6[_0x6f30('0x1c')][_0x6f30('0x1')]});this[_0x6f30('0x1e')][_0x6f30('0x1a')](_0x4c25a6);}['removeFromReconnectionStack'](_0x4cd29a){this['_reconnectionStack'][_0x6f30('0x23')](_0x4cd29a);}['isInReconnectionStack'](_0x1681f3){return this[_0x6f30('0x1e')][_0x6f30('0x4')](_0x1681f3);}[_0x6f30('0x1d')](){return this[_0x6f30('0x37')]['reconnect']()[_0x6f30('0x24')](()=>Promise[_0x6f30('0x20')](Array['from'](this[_0x6f30('0x1e')],_0x4d91fc=>_0x4d91fc['reconnect']())))[_0x6f30('0x24')](()=>this['state']=_0x3ccac7[_0x6f30('0x25')])[_0x6f30('0x38')](_0x7bc32d=>{throw console[_0x6f30('0x12')](_0x7bc32d),new _0x22999d(_0x6f30('0x36'),this[_0x6f30('0x18')]);});}['destroy'](){this[_0x6f30('0x37')]&&this['connection'][_0x6f30('0x2f')](),this[_0x6f30('0x28')]=_0x3ccac7['DISCONNECTED'],this[_0x6f30('0xe')][_0x6f30('0x30')](),super[_0x6f30('0x29')]();}}c['WebSocketGateway']=_0x2ff7e4,c[_0x6f30('0x5')]=0x3e8;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x7293=['RealTimeCollaborativeEditing'];(function(_0x1dd214,_0x729318){var _0x657774=function(_0x191b73){while(--_0x191b73){_0x1dd214['push'](_0x1dd214['shift']());}};_0x657774(++_0x729318);}(_0x7293,0xe1));var _0x6577=function(_0x1dd214,_0x729318){_0x1dd214=_0x1dd214-0x0;var _0x657774=_0x7293[_0x1dd214];return _0x657774;};import{Plugin as _0x893eaf}from'ckeditor5/src/core';import _0x44d291 from'./realtimecollaborativeediting/realtimecollaborationclient';export default class n extends _0x893eaf{static get['requires'](){return[_0x44d291];}static get['pluginName'](){return _0x6577('0x0');}}
23
+ var _0x15c4=['pluginName','RealTimeCollaborativeEditing','requires'];(function(_0x3828e7,_0x15c4e2){var _0x21a2bb=function(_0x1d1b9c){while(--_0x1d1b9c){_0x3828e7['push'](_0x3828e7['shift']());}};_0x21a2bb(++_0x15c4e2);}(_0x15c4,0x150));var _0x21a2=function(_0x3828e7,_0x15c4e2){_0x3828e7=_0x3828e7-0x0;var _0x21a2bb=_0x15c4[_0x3828e7];return _0x21a2bb;};import{Plugin as _0x552bd2}from'ckeditor5/src/core';import _0x4d7d29 from'./realtimecollaborativeediting/realtimecollaborationclient';export default class n extends _0x552bd2{static get[_0x21a2('0x2')](){return[_0x4d7d29];}static get[_0x21a2('0x0')](){return _0x21a2('0x1');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27e8=['catch','CONNECTED','sendBufferedUpdates','getMany','_isPendingUpdate','addRevisionData','_update','affectsData','toVersion','serverHistory','then','buildRevisionData','_offset','change:_isConnected','map','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','reconnect','wrongRequestId','connected','_lastRequestId','adapter','off','_getLatestVersionFromServerOperations','cloudServices.bundleVersion','_isConnected','destroy','_getLatestVersion','remove','_revisionHistoryService','max','_startingVersion','baseVersion','_preventResendingRevisionData','_fetchMissingUsers','_fixRevision','getOperations','currentRevision','_revisionTracker','repository','marker','_waitForServiceReady','connection','state','isEmptyCurrent','_oldOffset','keys','authorsIds','isEnabled','_revisionDataBuilder','reverse','message','startsWith','size','type','isBundleUploaded','length','get','RevisionTracker','cloud-services-internal-error:\x20Request\x20timeout.','getRevision','setRevisionData','editor','config','RevisionHistoryService','reInit','_bufferUpdate','getUser','updateRevisions','diffData','getRevisions','_handleReconnectionError','400','sessionId','listenTo','change:_isPendingUpdate','_createCurrentRevision','data','plugins','connect','addUser','fromVersion','createdAt','_handleRevisionsUpdate','requires','creatorId'];(function(_0x17bb84,_0x27e839){const _0x13c542=function(_0x4d11dc){while(--_0x4d11dc){_0x17bb84['push'](_0x17bb84['shift']());}};_0x13c542(++_0x27e839);}(_0x27e8,0xc7));const _0x13c5=function(_0x17bb84,_0x27e839){_0x17bb84=_0x17bb84-0x0;let _0x13c542=_0x27e8[_0x17bb84];return _0x13c542;};import{Plugin as _0x2e4b5f}from'ckeditor5/src/core';import{version as _0x36aec3}from'ckeditor5/src/utils';import{Users as _0x4e38ea}from'ckeditor5-collaboration/src/collaboration-core';import _0x269218 from'../realtimecollaborativeediting/realtimecollaborationclient';import _0x106b75 from'../realtimecollaborativeediting/websocketgateway';import _0x412a7b from'../realtimecollaborativeediting/sessions';import{User as _0xfe55b}from'@ckeditor/ckeditor-cloud-services-collaboration';import{RevisionHistoryService as _0x42185a,EditorService as _0x202242,WEB_SOCKET_GATEWAY_STATES as _0x388481}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services';export default class v extends _0x2e4b5f{static get[_0x13c5('0x36')](){return[_0x106b75,_0x269218,_0x13c5('0x1c'),_0x412a7b,_0x4e38ea];}constructor(_0x5a31a8){super(_0x5a31a8);const _0x36e71a=this[_0x13c5('0x20')]['config'][_0x13c5('0x1b')]('collaboration.channelId');this['_lastRequestId']=null,this['_revisionTracker']=this[_0x13c5('0x20')][_0x13c5('0x30')]['get']('RevisionTracker'),this[_0x13c5('0x54')]=new v[(_0x13c5('0x22'))](_0x36e71a);}async['init'](){const _0x57e207=this[_0x13c5('0x20')][_0x13c5('0x30')][_0x13c5('0x1b')](_0x269218),_0x36fec2=_0x57e207[_0x13c5('0x41')],_0xcfa178=this['editor'][_0x13c5('0x30')][_0x13c5('0x1b')](_0x106b75);this[_0x13c5('0x8')]['setSource']({'history':_0x36fec2,'getLatestVersion':()=>this[_0x13c5('0x52')](),'getCurrentRevisionId':()=>_0x57e207[_0x13c5('0x2b')]});const _0x136b0b=this[_0x13c5('0x20')][_0x13c5('0x21')]['get'](_0x13c5('0x4f'))||_0x36aec3,_0x27e41b=await _0x202242[_0x13c5('0x19')](_0xcfa178[_0x13c5('0xc')],_0x136b0b);this[_0x13c5('0x8')][_0x13c5('0x4c')]={'getRevision':async({revisionId:_0x3bf346})=>(await this[_0x13c5('0xb')](),await this[_0x13c5('0x54')][_0x13c5('0x1e')](_0x3bf346)),'updateRevisions':async _0x284375=>{await this[_0x13c5('0xb')]();const _0x7bb5dc=this[_0x13c5('0x8')][_0x13c5('0x7')];if(_0x27e41b&&0x1===_0x284375[_0x13c5('0x1a')]&&_0x284375[0x0]['id']===_0x7bb5dc['id'])return _0x284375;for(const _0x115744 of _0x284375)_0x115744['id']===_0x7bb5dc['id']&&(_0x115744[_0x13c5('0xe')]=_0x115744[_0x13c5('0x33')]===_0x115744['toVersion']);return this[_0x13c5('0x54')][_0x13c5('0x26')](_0x284375,this[_0x13c5('0x4b')])[_0x13c5('0x42')](_0x12e8b5=>(this[_0x13c5('0x4b')]=_0x12e8b5,_0x284375))[_0x13c5('0x38')](_0x35401f=>{if(st(_0x35401f)||_0x13c5('0x2a')===_0x35401f['code']&&void 0x0!==_0x35401f[_0x13c5('0x2f')][_0x13c5('0x49')]){for(const _0x240753 of _0x284375){!this[_0x13c5('0x8')][_0x13c5('0x9')][_0x13c5('0x1e')](_0x240753['id'])||this[_0x13c5('0x8')][_0x13c5('0x24')](_0x240753['id'],_0x240753,!0x1);}if(st(_0x35401f))throw _0x35401f;return _0x284375;}throw _0x35401f;});}},this[_0x13c5('0x2c')](this[_0x13c5('0x54')],'revisionsUpdated',(_0x496dec,{revisionsData:_0x10521e,requestId:_0x3a3175})=>{Math[_0x13c5('0x0')](..._0x10521e[_0x13c5('0x46')](_0x4be731=>_0x4be731['toVersion']))>this[_0x13c5('0x4e')]()-0x1?this['_getLatestVersion']()[_0x13c5('0x42')](()=>{this[_0x13c5('0x35')](_0x10521e,_0x3a3175);}):this[_0x13c5('0x35')](_0x10521e,_0x3a3175);});const {revisions:_0xf51c49,requestId:_0x349eeb}=await this[_0x13c5('0x54')][_0x13c5('0x31')](_0xcfa178[_0x13c5('0xc')]);_0xcfa178['addToReconnectionStack'](this),this[_0x13c5('0x4b')]=_0x349eeb,await this[_0x13c5('0x4')](_0xf51c49);for(const _0x181ef0 of _0xf51c49)this[_0x13c5('0x8')][_0x13c5('0x3d')](_0x181ef0);this['listenTo'](_0x57e207,'change:_isConnected',(_0x564836,_0x5a75d9,_0x3fa722)=>{_0x3fa722&&(this[_0x13c5('0xf')]=_0x57e207['_offset'],_0x564836[_0x13c5('0x4d')]());}),this[_0x13c5('0x8')]['bind'](_0x13c5('0x12'))['to'](_0xcfa178,_0x13c5('0xd'),_0x52fe78=>_0x52fe78===_0x388481[_0x13c5('0x39')]);}async[_0x13c5('0x48')](){const _0x17d3db=this[_0x13c5('0x20')]['plugins']['get'](_0x106b75),_0xe67870=this['editor'][_0x13c5('0x30')]['get'](_0x269218),_0x79742a=async()=>{const _0x259529=this[_0x13c5('0x8')][_0x13c5('0x7')],_0x39bb94=_0x259529['id'],_0x2d3ef8=_0x39bb94!==_0xe67870[_0x13c5('0x2b')];if(_0x2d3ef8){const _0x4a8071=_0xe67870[_0x13c5('0x44')]-this[_0x13c5('0xf')],_0x58ac9a=this[_0x13c5('0x4e')]();this[_0x13c5('0x8')][_0x13c5('0x13')][_0x13c5('0x23')]();if(_0x259529[_0x13c5('0x40')]+_0x4a8071!==_0x58ac9a){const _0x5ea10b=_0x259529[_0x13c5('0x33')]+_0x4a8071,_0x40e772=this['editor'][_0x13c5('0x30')]['get'](_0x4e38ea),_0x1953dc=this[_0x13c5('0x8')][_0x13c5('0x43')]({'revision':_0x259529,'from':_0x5ea10b,'to':_0x58ac9a});_0x1953dc['id']=_0x259529['id'];const _0x3fe0f7=_0x1953dc[_0x13c5('0x11')][_0x13c5('0x46')](_0x2c0446=>_0x40e772[_0x13c5('0x25')](_0x2c0446));_0x259529[_0x13c5('0x3e')]({..._0x1953dc,'authors':_0x3fe0f7},!0x0),this['_revisionTracker'][_0x13c5('0x24')](_0x259529['id'],_0x1953dc,!0x0);}this[_0x13c5('0x8')][_0x13c5('0x1')]=_0x58ac9a,(_0x259529[_0x13c5('0x40')]===_0x259529[_0x13c5('0x33')]&&!this[_0x13c5('0x8')]['_bufferedUpdates']['has'](_0x39bb94)&&this[_0x13c5('0x8')][_0x13c5('0x9')]['_revisions'][_0x13c5('0x53')](_0x39bb94),this[_0x13c5('0x8')][_0x13c5('0x2e')](_0x58ac9a));}const {revisions:_0x2ec669,requestId:_0x23ba20}=await this[_0x13c5('0x54')][_0x13c5('0x48')](_0x17d3db[_0x13c5('0xc')],this[_0x13c5('0x4b')]);_0x2d3ef8&&_0x2ec669['length']>0x0?_0xe67870[_0x13c5('0x29')]():(await this[_0x13c5('0x4')](_0x2ec669),this[_0x13c5('0x35')](_0x2ec669,_0x23ba20),this[_0x13c5('0x8')][_0x13c5('0x3a')]());};return _0xe67870[_0x13c5('0x50')]?_0x79742a():new Promise((_0x5a08eb,_0xdc812f)=>{_0xe67870['once'](_0x13c5('0x45'),()=>{_0x79742a()[_0x13c5('0x42')](_0x5a08eb)[_0x13c5('0x38')](_0xdc812f);});});}[_0x13c5('0x51')](){super[_0x13c5('0x51')]();}async['_waitForServiceReady'](){this[_0x13c5('0x54')]['isConnected']||await new Promise(_0x10af2a=>{this['listenTo'](this['_revisionHistoryService'],_0x13c5('0x4a'),_0x13cedf=>{_0x13cedf[_0x13c5('0x4d')](),_0x10af2a();});});}[_0x13c5('0x4e')](){const _0x238df9=this[_0x13c5('0x20')]['plugins']['get'](_0x269218)[_0x13c5('0x41')][_0x13c5('0x6')]()[_0x13c5('0x14')]();for(const _0x18e184 of _0x238df9)if(_0x13c5('0xa')!==_0x18e184[_0x13c5('0x18')]||_0x18e184[_0x13c5('0x3f')])return _0x18e184[_0x13c5('0x2')]+0x1;}['_getLatestVersion'](){const _0x5e4a9d=this['editor'][_0x13c5('0x30')]['get'](_0x269218);return new Promise(_0x83ba76=>{_0x5e4a9d[_0x13c5('0x3c')]?_0x5e4a9d['once'](_0x13c5('0x2d'),()=>{_0x83ba76(this[_0x13c5('0x4e')]());}):_0x83ba76(this['_getLatestVersionFromServerOperations']());});}[_0x13c5('0x35')](_0x1d64e2,_0x45ffe8){const _0x857b5d=this[_0x13c5('0x8')][_0x13c5('0x9')];this['_lastRequestId']=_0x45ffe8;for(const _0x26ea06 of _0x1d64e2){const _0x759bdf=_0x857b5d[_0x13c5('0x1e')](_0x26ea06['id']);if(_0x759bdf){if((_0x26ea06[_0x13c5('0x33')]||_0x26ea06[_0x13c5('0x40')])&&(_0x26ea06['diffData']=null),_0x759bdf===this[_0x13c5('0x8')][_0x13c5('0x7')]){const _0x36504e=Math[_0x13c5('0x0')](_0x759bdf['toVersion'],_0x26ea06[_0x13c5('0x40')]),_0x4d5217=Math['max'](_0x759bdf[_0x13c5('0x33')],_0x26ea06[_0x13c5('0x33')]);let _0x2d01de;_0x759bdf[_0x13c5('0x40')]===_0x26ea06['toVersion']&&_0x759bdf[_0x13c5('0x33')]===_0x26ea06[_0x13c5('0x33')]?(_0x2d01de=!0x0,this['_preventResendingRevisionData'](_0x26ea06)):_0x26ea06[_0x13c5('0x40')]===_0x36504e&&_0x26ea06['fromVersion']===_0x4d5217?_0x2d01de=!0x1:(_0x759bdf[_0x13c5('0x40')]===_0x36504e&&_0x759bdf[_0x13c5('0x33')]===_0x4d5217||this[_0x13c5('0x5')]({'revision':_0x759bdf,'from':_0x4d5217,'to':_0x36504e}),_0x2d01de=!0x0),_0x2d01de&&(delete _0x26ea06[_0x13c5('0x33')],delete _0x26ea06[_0x13c5('0x40')],delete _0x26ea06[_0x13c5('0x27')],delete _0x26ea06[_0x13c5('0x34')],delete _0x26ea06[_0x13c5('0x11')]);}this[_0x13c5('0x8')][_0x13c5('0x1f')](_0x26ea06),this[_0x13c5('0x3')](_0x26ea06);}else this[_0x13c5('0x8')][_0x13c5('0x3d')](_0x26ea06);}const _0x22cd74=_0x857b5d[_0x13c5('0x28')]();_0x22cd74[_0x13c5('0x14')]();for(let _0x42e6f6=0x0;_0x42e6f6<_0x22cd74['length']-0x1;_0x42e6f6++){const _0x3736ea=_0x22cd74[_0x42e6f6],_0x5574aa=_0x22cd74[_0x42e6f6+0x1];if(_0x3736ea[_0x13c5('0x33')]<_0x5574aa['toVersion']){const _0x23706d=_0x5574aa[_0x13c5('0x40')],_0x41c697=Math[_0x13c5('0x0')](_0x23706d,_0x3736ea[_0x13c5('0x40')]);this[_0x13c5('0x5')]({'revision':_0x3736ea,'from':_0x23706d,'to':_0x41c697});}}}[_0x13c5('0x5')]({revision:_0x48c434,from:_0xf5346f,to:_0x53adb5}={}){const _0x55bf2b=this[_0x13c5('0x20')]['plugins']['get'](_0x4e38ea),_0x5e305a=this[_0x13c5('0x8')][_0x13c5('0x43')]({'revision':_0x48c434,'from':_0xf5346f,'to':_0x53adb5});_0x5e305a['authors']=_0x5e305a[_0x13c5('0x11')][_0x13c5('0x46')](_0x7b7489=>_0x55bf2b['getUser'](_0x7b7489)),_0x48c434[_0x13c5('0x3e')](_0x5e305a);}['_preventResendingRevisionData'](_0x5003ee){const _0x123fad={};_0x123fad['id']=_0x5003ee['id'];for(const _0x2abec4 of Object[_0x13c5('0x10')](_0x5003ee))'id'!==_0x2abec4&&(_0x123fad[_0x2abec4]=void 0x0);this[_0x13c5('0x8')][_0x13c5('0x24')](_0x123fad['id'],_0x123fad,!0x0);}async[_0x13c5('0x4')](_0x20144c){const _0x444a39=this[_0x13c5('0x20')][_0x13c5('0x30')]['get'](_0x4e38ea),{connection:_0x2fdb74}=this[_0x13c5('0x20')][_0x13c5('0x30')][_0x13c5('0x1b')](_0x106b75),_0x2cd404=new Set();for(const _0x5e14a8 of _0x20144c){for(const _0x305bfd of _0x5e14a8[_0x13c5('0x11')])_0x2950ca(_0x305bfd);_0x5e14a8['creatorId']&&_0x2950ca(_0x5e14a8[_0x13c5('0x37')]);}if(0x0===_0x2cd404[_0x13c5('0x17')])return;const _0x50e168=await _0xfe55b[_0x13c5('0x3b')](_0x2fdb74,Array['from'](_0x2cd404));for(const _0x20c01f of _0x50e168)_0x444a39[_0x13c5('0x25')](_0x20c01f['id'])||_0x444a39[_0x13c5('0x32')](_0x20c01f);function _0x2950ca(_0x323793){_0x444a39[_0x13c5('0x25')](_0x323793)||_0x2cd404['add'](_0x323793);}}}function st(_0x2c9d92){return _0x2c9d92[_0x13c5('0x15')][_0x13c5('0x16')](_0x13c5('0x47'))||_0x2c9d92['message'][_0x13c5('0x16')]('cloud-services-internal-error:\x20Not\x20connected.')||_0x2c9d92[_0x13c5('0x15')][_0x13c5('0x16')](_0x13c5('0x1d'));}v[_0x13c5('0x22')]=_0x42185a;
23
+ const _0x1699=['catch','serverHistory','sessionId','getMany','isBundleUploaded','once','repository','_revisions','sendBufferedUpdates','currentRevision','reverse','message','baseVersion','adapter','destroy','CONNECTED','remove','authors','get','addToReconnectionStack','off','_update','code','bind','then','map','_createCurrentRevision','_revisionHistoryService','getOperations','startsWith','connection','setSource','_revisionTracker','from','diffData','has','change:_isPendingUpdate','isEnabled','connected','type','affectsData','addRevisionData','_offset','getRevisions','_bufferedUpdates','change:_isConnected','_isConnected','marker','_isPendingUpdate','requires','creatorId','_revisionDataBuilder','_fetchMissingUsers','RevisionTracker','max','buildRevisionData','state','config','cloud-services-internal-error:\x20Request\x20timeout.','length','isConnected','_getLatestVersion','400','authorsIds','connect','data','_startingVersion','wrongRequestId','keys','editor','_lastRequestId','cloudServices.bundleVersion','RevisionHistoryService','getRevision','isEmptyCurrent','_waitForServiceReady','_bufferUpdate','cloud-services-internal-error:\x20Not\x20connected.','getUser','size','createdAt','fromVersion','_handleReconnectionError','toVersion','_fixRevision','_oldOffset','init','_getLatestVersionFromServerOperations','plugins','_handleRevisionsUpdate','_preventResendingRevisionData'];(function(_0x35a97c,_0x16994b){const _0x103a48=function(_0x295cfa){while(--_0x295cfa){_0x35a97c['push'](_0x35a97c['shift']());}};_0x103a48(++_0x16994b);}(_0x1699,0x145));const _0x103a=function(_0x35a97c,_0x16994b){_0x35a97c=_0x35a97c-0x0;let _0x103a48=_0x1699[_0x35a97c];return _0x103a48;};import{Plugin as _0x3d7823}from'ckeditor5/src/core';import{version as _0x1f2fa9}from'ckeditor5/src/utils';import{Users as _0x82903d}from'ckeditor5-collaboration/src/collaboration-core';import _0x26d226 from'../realtimecollaborativeediting/realtimecollaborationclient';import _0x539376 from'../realtimecollaborativeediting/websocketgateway';import _0x101fd2 from'../realtimecollaborativeediting/sessions';import{User as _0x4bea76}from'@ckeditor/ckeditor-cloud-services-collaboration';import{RevisionHistoryService as _0x24fcef,EditorService as _0x29ebb8,WEB_SOCKET_GATEWAY_STATES as _0x12134c}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services';export default class v extends _0x3d7823{static get[_0x103a('0x58')](){return[_0x539376,_0x26d226,_0x103a('0x1'),_0x101fd2,_0x82903d];}constructor(_0x342da0){super(_0x342da0);const _0x7512ef=this['editor']['config'][_0x103a('0x39')]('collaboration.channelId');this[_0x103a('0x12')]=null,this[_0x103a('0x47')]=this['editor'][_0x103a('0x24')][_0x103a('0x39')](_0x103a('0x1')),this['_revisionHistoryService']=new v['RevisionHistoryService'](_0x7512ef);}async[_0x103a('0x22')](){const _0x2217f1=this[_0x103a('0x11')][_0x103a('0x24')]['get'](_0x26d226),_0x349818=_0x2217f1[_0x103a('0x28')],_0x194fdf=this[_0x103a('0x11')][_0x103a('0x24')][_0x103a('0x39')](_0x539376);this[_0x103a('0x47')][_0x103a('0x46')]({'history':_0x349818,'getLatestVersion':()=>this[_0x103a('0x9')](),'getCurrentRevisionId':()=>_0x2217f1[_0x103a('0x29')]});const _0x49dc80=this[_0x103a('0x11')][_0x103a('0x5')][_0x103a('0x39')](_0x103a('0x13'))||_0x1f2fa9,_0x1bc10b=await _0x29ebb8[_0x103a('0x2b')](_0x194fdf['connection'],_0x49dc80);this[_0x103a('0x47')][_0x103a('0x34')]={'getRevision':async({revisionId:_0x4de496})=>(await this[_0x103a('0x17')](),await this[_0x103a('0x42')]['getRevision'](_0x4de496)),'updateRevisions':async _0x452512=>{await this[_0x103a('0x17')]();const _0x1663a1=this['_revisionTracker'][_0x103a('0x30')];if(_0x1bc10b&&0x1===_0x452512[_0x103a('0x7')]&&_0x452512[0x0]['id']===_0x1663a1['id'])return _0x452512;for(const _0x217a92 of _0x452512)_0x217a92['id']===_0x1663a1['id']&&(_0x217a92[_0x103a('0x16')]=_0x217a92[_0x103a('0x1d')]===_0x217a92['toVersion']);return this[_0x103a('0x42')]['updateRevisions'](_0x452512,this[_0x103a('0x12')])[_0x103a('0x3f')](_0x403748=>(this[_0x103a('0x12')]=_0x403748,_0x452512))[_0x103a('0x27')](_0x176dba=>{if(st(_0x176dba)||_0x103a('0xa')===_0x176dba[_0x103a('0x3d')]&&void 0x0!==_0x176dba[_0x103a('0xd')][_0x103a('0xf')]){for(const _0x481f30 of _0x452512){!this['_revisionTracker'][_0x103a('0x2d')][_0x103a('0x15')](_0x481f30['id'])||this[_0x103a('0x47')][_0x103a('0x18')](_0x481f30['id'],_0x481f30,!0x1);}if(st(_0x176dba))throw _0x176dba;return _0x452512;}throw _0x176dba;});}},this['listenTo'](this[_0x103a('0x42')],'revisionsUpdated',(_0x1e09e3,{revisionsData:_0x5a4829,requestId:_0x4547fb})=>{Math[_0x103a('0x2')](..._0x5a4829[_0x103a('0x40')](_0x1af298=>_0x1af298[_0x103a('0x1f')]))>this[_0x103a('0x23')]()-0x1?this[_0x103a('0x9')]()[_0x103a('0x3f')](()=>{this[_0x103a('0x25')](_0x5a4829,_0x4547fb);}):this[_0x103a('0x25')](_0x5a4829,_0x4547fb);});const {revisions:_0x4923f0,requestId:_0x5c9f81}=await this[_0x103a('0x42')][_0x103a('0xc')](_0x194fdf[_0x103a('0x45')]);_0x194fdf[_0x103a('0x3a')](this),this[_0x103a('0x12')]=_0x5c9f81,await this['_fetchMissingUsers'](_0x4923f0);for(const _0x2b9939 of _0x4923f0)this[_0x103a('0x47')]['addRevisionData'](_0x2b9939);this['listenTo'](_0x2217f1,_0x103a('0x54'),(_0x23e02f,_0x187b80,_0x165c38)=>{_0x165c38&&(this[_0x103a('0x21')]=_0x2217f1[_0x103a('0x51')],_0x23e02f[_0x103a('0x3b')]());}),this['_revisionTracker'][_0x103a('0x3e')](_0x103a('0x4c'))['to'](_0x194fdf,_0x103a('0x4'),_0xcca7f6=>_0xcca7f6===_0x12134c[_0x103a('0x36')]);}async['reconnect'](){const _0xc8c55d=this[_0x103a('0x11')]['plugins']['get'](_0x539376),_0x3a70c6=this[_0x103a('0x11')][_0x103a('0x24')][_0x103a('0x39')](_0x26d226),_0x333989=async()=>{const _0x4bcf2f=this[_0x103a('0x47')][_0x103a('0x30')],_0x446a1e=_0x4bcf2f['id'],_0x20eede=_0x446a1e!==_0x3a70c6[_0x103a('0x29')];if(_0x20eede){const _0x469811=_0x3a70c6[_0x103a('0x51')]-this[_0x103a('0x21')],_0x53cf85=this[_0x103a('0x23')]();this[_0x103a('0x47')][_0x103a('0x5a')]['reInit']();if(_0x4bcf2f['toVersion']+_0x469811!==_0x53cf85){const _0x284611=_0x4bcf2f[_0x103a('0x1d')]+_0x469811,_0x5b2365=this['editor'][_0x103a('0x24')][_0x103a('0x39')](_0x82903d),_0x526d9c=this[_0x103a('0x47')]['buildRevisionData']({'revision':_0x4bcf2f,'from':_0x284611,'to':_0x53cf85});_0x526d9c['id']=_0x4bcf2f['id'];const _0x457fa8=_0x526d9c[_0x103a('0xb')][_0x103a('0x40')](_0x5b9796=>_0x5b2365[_0x103a('0x1a')](_0x5b9796));_0x4bcf2f[_0x103a('0x3c')]({..._0x526d9c,'authors':_0x457fa8},!0x0),this[_0x103a('0x47')][_0x103a('0x18')](_0x4bcf2f['id'],_0x526d9c,!0x0);}this[_0x103a('0x47')][_0x103a('0xe')]=_0x53cf85,(_0x4bcf2f[_0x103a('0x1f')]===_0x4bcf2f[_0x103a('0x1d')]&&!this['_revisionTracker'][_0x103a('0x53')][_0x103a('0x4a')](_0x446a1e)&&this[_0x103a('0x47')]['repository'][_0x103a('0x2e')][_0x103a('0x37')](_0x446a1e),this[_0x103a('0x47')][_0x103a('0x41')](_0x53cf85));}const {revisions:_0x49d1b7,requestId:_0x554af2}=await this['_revisionHistoryService']['reconnect'](_0xc8c55d[_0x103a('0x45')],this[_0x103a('0x12')]);_0x20eede&&_0x49d1b7[_0x103a('0x7')]>0x0?_0x3a70c6[_0x103a('0x1e')]():(await this[_0x103a('0x0')](_0x49d1b7),this[_0x103a('0x25')](_0x49d1b7,_0x554af2),this['_revisionTracker'][_0x103a('0x2f')]());};return _0x3a70c6[_0x103a('0x55')]?_0x333989():new Promise((_0x127148,_0x14c030)=>{_0x3a70c6[_0x103a('0x2c')](_0x103a('0x54'),()=>{_0x333989()[_0x103a('0x3f')](_0x127148)['catch'](_0x14c030);});});}[_0x103a('0x35')](){super[_0x103a('0x35')]();}async[_0x103a('0x17')](){this[_0x103a('0x42')][_0x103a('0x8')]||await new Promise(_0x99faaf=>{this['listenTo'](this['_revisionHistoryService'],_0x103a('0x4d'),_0x3bf488=>{_0x3bf488[_0x103a('0x3b')](),_0x99faaf();});});}[_0x103a('0x23')](){const _0x3a51cf=this[_0x103a('0x11')][_0x103a('0x24')][_0x103a('0x39')](_0x26d226)[_0x103a('0x28')][_0x103a('0x43')]()[_0x103a('0x31')]();for(const _0x279201 of _0x3a51cf)if(_0x103a('0x56')!==_0x279201[_0x103a('0x4e')]||_0x279201[_0x103a('0x4f')])return _0x279201[_0x103a('0x33')]+0x1;}[_0x103a('0x9')](){const _0x2c4892=this[_0x103a('0x11')]['plugins'][_0x103a('0x39')](_0x26d226);return new Promise(_0x33ea1e=>{_0x2c4892[_0x103a('0x57')]?_0x2c4892['once'](_0x103a('0x4b'),()=>{_0x33ea1e(this['_getLatestVersionFromServerOperations']());}):_0x33ea1e(this[_0x103a('0x23')]());});}[_0x103a('0x25')](_0x1efbd0,_0x22d7d0){const _0x107c83=this[_0x103a('0x47')]['repository'];this[_0x103a('0x12')]=_0x22d7d0;for(const _0x47b554 of _0x1efbd0){const _0x30c4a1=_0x107c83[_0x103a('0x15')](_0x47b554['id']);if(_0x30c4a1){if((_0x47b554[_0x103a('0x1d')]||_0x47b554[_0x103a('0x1f')])&&(_0x47b554[_0x103a('0x49')]=null),_0x30c4a1===this[_0x103a('0x47')]['currentRevision']){const _0x138ad5=Math[_0x103a('0x2')](_0x30c4a1[_0x103a('0x1f')],_0x47b554[_0x103a('0x1f')]),_0x31878d=Math[_0x103a('0x2')](_0x30c4a1[_0x103a('0x1d')],_0x47b554[_0x103a('0x1d')]);let _0x37b4e2;_0x30c4a1[_0x103a('0x1f')]===_0x47b554[_0x103a('0x1f')]&&_0x30c4a1['fromVersion']===_0x47b554['fromVersion']?(_0x37b4e2=!0x0,this[_0x103a('0x26')](_0x47b554)):_0x47b554[_0x103a('0x1f')]===_0x138ad5&&_0x47b554[_0x103a('0x1d')]===_0x31878d?_0x37b4e2=!0x1:(_0x30c4a1[_0x103a('0x1f')]===_0x138ad5&&_0x30c4a1[_0x103a('0x1d')]===_0x31878d||this[_0x103a('0x20')]({'revision':_0x30c4a1,'from':_0x31878d,'to':_0x138ad5}),_0x37b4e2=!0x0),_0x37b4e2&&(delete _0x47b554[_0x103a('0x1d')],delete _0x47b554[_0x103a('0x1f')],delete _0x47b554[_0x103a('0x49')],delete _0x47b554[_0x103a('0x1c')],delete _0x47b554[_0x103a('0xb')]);}this['_revisionTracker']['setRevisionData'](_0x47b554),this['_preventResendingRevisionData'](_0x47b554);}else this[_0x103a('0x47')][_0x103a('0x50')](_0x47b554);}const _0x4bc996=_0x107c83[_0x103a('0x52')]();_0x4bc996[_0x103a('0x31')]();for(let _0x5f4186=0x0;_0x5f4186<_0x4bc996[_0x103a('0x7')]-0x1;_0x5f4186++){const _0x2d6222=_0x4bc996[_0x5f4186],_0x27ba4d=_0x4bc996[_0x5f4186+0x1];if(_0x2d6222['fromVersion']<_0x27ba4d[_0x103a('0x1f')]){const _0x54e4b8=_0x27ba4d[_0x103a('0x1f')],_0xb969b7=Math[_0x103a('0x2')](_0x54e4b8,_0x2d6222[_0x103a('0x1f')]);this['_fixRevision']({'revision':_0x2d6222,'from':_0x54e4b8,'to':_0xb969b7});}}}[_0x103a('0x20')]({revision:_0x177367,from:_0x340179,to:_0x572246}={}){const _0x32073b=this['editor'][_0x103a('0x24')][_0x103a('0x39')](_0x82903d),_0xd44098=this['_revisionTracker'][_0x103a('0x3')]({'revision':_0x177367,'from':_0x340179,'to':_0x572246});_0xd44098[_0x103a('0x38')]=_0xd44098[_0x103a('0xb')][_0x103a('0x40')](_0x5e08c8=>_0x32073b[_0x103a('0x1a')](_0x5e08c8)),_0x177367['_update'](_0xd44098);}[_0x103a('0x26')](_0x51e109){const _0x16dbf8={};_0x16dbf8['id']=_0x51e109['id'];for(const _0x470bc0 of Object[_0x103a('0x10')](_0x51e109))'id'!==_0x470bc0&&(_0x16dbf8[_0x470bc0]=void 0x0);this[_0x103a('0x47')][_0x103a('0x18')](_0x16dbf8['id'],_0x16dbf8,!0x0);}async['_fetchMissingUsers'](_0x152ba7){const _0x2e6312=this[_0x103a('0x11')][_0x103a('0x24')][_0x103a('0x39')](_0x82903d),{connection:_0x3b0d50}=this[_0x103a('0x11')][_0x103a('0x24')][_0x103a('0x39')](_0x539376),_0x185c8e=new Set();for(const _0x4a4dd0 of _0x152ba7){for(const _0x4fc630 of _0x4a4dd0['authorsIds'])_0xe03fa3(_0x4fc630);_0x4a4dd0['creatorId']&&_0xe03fa3(_0x4a4dd0[_0x103a('0x59')]);}if(0x0===_0x185c8e[_0x103a('0x1b')])return;const _0x1deca0=await _0x4bea76[_0x103a('0x2a')](_0x3b0d50,Array[_0x103a('0x48')](_0x185c8e));for(const _0x7beeb5 of _0x1deca0)_0x2e6312[_0x103a('0x1a')](_0x7beeb5['id'])||_0x2e6312['addUser'](_0x7beeb5);function _0xe03fa3(_0x2bec48){_0x2e6312[_0x103a('0x1a')](_0x2bec48)||_0x185c8e['add'](_0x2bec48);}}}function st(_0x3d09b2){return _0x3d09b2[_0x103a('0x32')][_0x103a('0x44')]('cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.')||_0x3d09b2['message'][_0x103a('0x44')](_0x103a('0x19'))||_0x3d09b2[_0x103a('0x32')][_0x103a('0x44')](_0x103a('0x6'));}v[_0x103a('0x14')]=_0x24fcef;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5d03=['requires','RealTimeCollaborativeRevisionHistory','RevisionHistory'];(function(_0x9ed23f,_0x5d03ee){var _0x55fa38=function(_0x4112b3){while(--_0x4112b3){_0x9ed23f['push'](_0x9ed23f['shift']());}};_0x55fa38(++_0x5d03ee);}(_0x5d03,0x8d));var _0x55fa=function(_0x9ed23f,_0x5d03ee){_0x9ed23f=_0x9ed23f-0x0;var _0x55fa38=_0x5d03[_0x9ed23f];return _0x55fa38;};import{Plugin as _0x3d7fb9}from'ckeditor5/src/core';import _0x188c22 from'./realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter';import _0x5f3f20 from'./realtimecollaborativeediting';export default class d extends _0x3d7fb9{static get[_0x55fa('0x0')](){return[_0x55fa('0x2'),_0x188c22,_0x5f3f20];}static get['pluginName'](){return _0x55fa('0x1');}}
23
+ var _0x420b=['RealTimeCollaborativeRevisionHistory','pluginName','RevisionHistory'];(function(_0x101881,_0x420be3){var _0x37c479=function(_0x1b9445){while(--_0x1b9445){_0x101881['push'](_0x101881['shift']());}};_0x37c479(++_0x420be3);}(_0x420b,0xa7));var _0x37c4=function(_0x101881,_0x420be3){_0x101881=_0x101881-0x0;var _0x37c479=_0x420b[_0x101881];return _0x37c479;};import{Plugin as _0x844924}from'ckeditor5/src/core';import _0x523858 from'./realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter';import _0x219142 from'./realtimecollaborativeediting';export default class d extends _0x844924{static get['requires'](){return[_0x37c4('0x0'),_0x523858,_0x219142];}static get[_0x37c4('0x2')](){return _0x37c4('0x1');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1fc2=['cloud-services-internal-error:\x20Not\x20connected.','attributes','addUser','suggestionUpdated','_fetchMissingUsersForThreads','from','_bufferedRequests','requires','connection','find','connect','plugins','catch','state','delete','originalSuggestionId','isConnected','connected','_saved','hasSuggestion','add','addSuggestionData','open','data','then','startsWith','TrackChangesEditing','_waitForServiceReady','cloud-services-internal-error:\x20Request\x20timeout.','getUser','getSuggestion','_trackChangesService','editor','set','type','message','get','collaboration.channelId','off','listenTo','values','config','update'];(function(_0x5b410c,_0x1fc2ab){const _0x25a5b4=function(_0x5e2668){while(--_0x5e2668){_0x5b410c['push'](_0x5b410c['shift']());}};_0x25a5b4(++_0x1fc2ab);}(_0x1fc2,0x1e3));const _0x25a5=function(_0x5b410c,_0x1fc2ab){_0x5b410c=_0x5b410c-0x0;let _0x25a5b4=_0x1fc2[_0x5b410c];return _0x25a5b4;};import{Plugin as _0x5d24c2}from'ckeditor5/src/core';import{TrackChangesService as _0x200799}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services';import{User as _0x41bb69}from'@ckeditor/ckeditor-cloud-services-collaboration';import _0x1a485b from'../realtimecollaborativeediting/websocketgateway';import _0xfa362b from'../realtimecollaborativecomments/cloudservicescommentsadapter';import{Users as _0x3e4008}from'ckeditor5-collaboration/src/collaboration-core';export default class g extends _0x5d24c2{static get[_0x25a5('0x28')](){return[_0xfa362b,'TrackChangesEditing',_0x1a485b];}constructor(_0x3ddaaf){super(_0x3ddaaf);const _0x43e6c8=this[_0x25a5('0x16')][_0x25a5('0x1f')][_0x25a5('0x1a')](_0x25a5('0x1b'));this['_bufferedRequests']=new Map(),this[_0x25a5('0x15')]=new g['TrackChangesService'](_0x43e6c8);}['init'](){const _0x5c8ab9=this[_0x25a5('0x16')]['plugins'][_0x25a5('0x1a')](_0x1a485b),_0x109afc=this[_0x25a5('0x16')][_0x25a5('0x1')]['get'](_0x25a5('0x10'));return _0x109afc['adapter']={'getSuggestion':async _0x42498a=>{await this[_0x25a5('0x11')]();const _0x20523d=await this[_0x25a5('0x15')]['get'](_0x42498a)['catch'](B);return await this[_0x25a5('0x25')]([_0x20523d]),_0x20523d;},'addSuggestion':async({id:_0x48c6e6,type:_0x2cd739,data:_0x544565,originalSuggestionId:_0x3e2541,attributes:_0x227e76})=>{await this['_waitForServiceReady']();const _0x146c52={'id':_0x48c6e6,'type':_0x2cd739,'data':_0x544565,'originalSuggestionId':_0x3e2541,'attributes':_0x227e76},_0x5467a8=await this[_0x25a5('0x15')][_0x25a5('0xa')](_0x48c6e6,_0x2cd739,_0x544565,_0x3e2541,_0x227e76)[_0x25a5('0x2')](_0x13af83=>{if(st(_0x13af83))return new Promise(_0x1794d3=>{this[_0x25a5('0x27')][_0x25a5('0x17')](_0x48c6e6,{'resolve':_0x1794d3,'suggestionData':_0x146c52});});throw _0x13af83;});return this['_bufferedRequests'][_0x25a5('0x4')](_0x48c6e6),_0x5467a8;},'updateSuggestion':async(_0x23008c,_0x443d05)=>{if(await this[_0x25a5('0x11')](),_0x25a5('0xc')!==_0x443d05[_0x25a5('0x3')])return this[_0x25a5('0x15')][_0x25a5('0x20')](_0x23008c,_0x443d05)[_0x25a5('0x2')](B);}},this[_0x25a5('0x1d')](this[_0x25a5('0x15')],_0x25a5('0x24'),(_0x313ab1,_0x3d9efe)=>{_0x109afc[_0x25a5('0x9')](_0x3d9efe['id'])&&(_0x109afc[_0x25a5('0x14')](_0x3d9efe['id'])[_0x25a5('0x22')]=_0x3d9efe['attributes']);}),this[_0x25a5('0x15')][_0x25a5('0x0')](_0x5c8ab9[_0x25a5('0x29')])[_0x25a5('0xe')](_0x3d572a=>(_0x5c8ab9['addToReconnectionStack'](this),this[_0x25a5('0x25')](_0x3d572a)[_0x25a5('0xe')](()=>{for(const _0x54ddce of _0x3d572a){_0x109afc[_0x25a5('0xb')](_0x54ddce)[_0x25a5('0x8')]=!0x0;}})));}async['reconnect'](){const _0x5576c1=this['editor']['plugins'][_0x25a5('0x1a')]('TrackChangesEditing'),{connection:_0x46af66}=this['editor']['plugins'][_0x25a5('0x1a')](_0x1a485b),_0x74c9a7=await this[_0x25a5('0x15')][_0x25a5('0x0')](_0x46af66);await this[_0x25a5('0x25')](_0x74c9a7);for(const {suggestionData:_0x3bcdd2,resolve:_0x370bd6}of this[_0x25a5('0x27')][_0x25a5('0x1e')]()){let _0x15594a=_0x74c9a7[_0x25a5('0x2a')](_0x19e5aa=>_0x19e5aa['id']===_0x3bcdd2['id']);_0x15594a||(_0x15594a=await this[_0x25a5('0x15')][_0x25a5('0xa')](_0x3bcdd2['id'],_0x3bcdd2[_0x25a5('0x18')],_0x3bcdd2[_0x25a5('0xd')],_0x3bcdd2[_0x25a5('0x5')])),_0x370bd6(_0x15594a);}for(const _0x356160 of _0x74c9a7)_0x5576c1[_0x25a5('0x9')](_0x356160['id'])||_0x5576c1[_0x25a5('0xb')](_0x356160);}async[_0x25a5('0x11')](){this['_trackChangesService'][_0x25a5('0x6')]||await new Promise(_0x266042=>{this[_0x25a5('0x1d')](this[_0x25a5('0x15')],_0x25a5('0x7'),_0x3f75e0=>{_0x3f75e0[_0x25a5('0x1c')](),_0x266042();});});}async[_0x25a5('0x25')](_0x5729d4){const _0x4e139f=this[_0x25a5('0x16')]['plugins'][_0x25a5('0x1a')](_0x3e4008),{connection:_0x16f0eb}=this[_0x25a5('0x16')][_0x25a5('0x1')][_0x25a5('0x1a')](_0x1a485b),_0x129ba0=new Set();for(const {authorId:_0x1e37fe}of _0x5729d4)_0x4e139f[_0x25a5('0x13')](_0x1e37fe)||_0x129ba0[_0x25a5('0xa')](_0x1e37fe);if(0x0===_0x129ba0['size'])return;const _0x75ee0d=await _0x41bb69['getMany'](_0x16f0eb,Array[_0x25a5('0x26')](_0x129ba0));for(const _0x22e176 of _0x75ee0d)_0x4e139f[_0x25a5('0x13')](_0x22e176['id'])||_0x4e139f[_0x25a5('0x23')](_0x22e176);}}function B(_0x40237b){if(st(_0x40237b))return new Promise(()=>{});throw _0x40237b;}function st(_0x347e7e){return _0x347e7e[_0x25a5('0x19')][_0x25a5('0xf')](_0x25a5('0x21'))||_0x347e7e[_0x25a5('0x19')][_0x25a5('0xf')](_0x25a5('0x12'));}g['TrackChangesService']=_0x200799;
23
+ const _0x5640=['open','get','find','adapter','cloud-services-internal-error:\x20Request\x20timeout.','TrackChangesEditing','_fetchMissingUsersForThreads','editor','suggestionUpdated','startsWith','listenTo','plugins','_saved','delete','attributes','_trackChangesService','connect','originalSuggestionId','connection','requires','init','_waitForServiceReady','hasSuggestion','cloud-services-internal-error:\x20Not\x20connected.','set','TrackChangesService','addUser','addSuggestionData','catch','from','addToReconnectionStack','update','getSuggestion','_bufferedRequests','collaboration.channelId','connected','off','getUser','add','data','message'];(function(_0x353a3c,_0x5640e1){const _0x154079=function(_0x266939){while(--_0x266939){_0x353a3c['push'](_0x353a3c['shift']());}};_0x154079(++_0x5640e1);}(_0x5640,0x143));const _0x1540=function(_0x353a3c,_0x5640e1){_0x353a3c=_0x353a3c-0x0;let _0x154079=_0x5640[_0x353a3c];return _0x154079;};import{Plugin as _0xfeb476}from'ckeditor5/src/core';import{TrackChangesService as _0xd19c32}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services';import{User as _0x1ae858}from'@ckeditor/ckeditor-cloud-services-collaboration';import _0xddfa19 from'../realtimecollaborativeediting/websocketgateway';import _0x3708be from'../realtimecollaborativecomments/cloudservicescommentsadapter';import{Users as _0x4d5f8a}from'ckeditor5-collaboration/src/collaboration-core';export default class g extends _0xfeb476{static get[_0x1540('0x18')](){return[_0x3708be,_0x1540('0xa'),_0xddfa19];}constructor(_0x38a781){super(_0x38a781);const _0x5bd5f4=this[_0x1540('0xc')]['config'][_0x1540('0x6')](_0x1540('0x27'));this[_0x1540('0x26')]=new Map(),this[_0x1540('0x14')]=new g[(_0x1540('0x1e'))](_0x5bd5f4);}[_0x1540('0x19')](){const _0x3c577b=this[_0x1540('0xc')][_0x1540('0x10')][_0x1540('0x6')](_0xddfa19),_0x50e5a0=this[_0x1540('0xc')]['plugins'][_0x1540('0x6')]('TrackChangesEditing');return _0x50e5a0[_0x1540('0x8')]={'getSuggestion':async _0x6aa978=>{await this[_0x1540('0x1a')]();const _0xf83476=await this[_0x1540('0x14')][_0x1540('0x6')](_0x6aa978)[_0x1540('0x21')](B);return await this['_fetchMissingUsersForThreads']([_0xf83476]),_0xf83476;},'addSuggestion':async({id:_0x4b30cd,type:_0x3340e4,data:_0x347eca,originalSuggestionId:_0x1c5fbe,attributes:_0x5c5169})=>{await this[_0x1540('0x1a')]();const _0x231083={'id':_0x4b30cd,'type':_0x3340e4,'data':_0x347eca,'originalSuggestionId':_0x1c5fbe,'attributes':_0x5c5169},_0x5729ad=await this[_0x1540('0x14')][_0x1540('0x2')](_0x4b30cd,_0x3340e4,_0x347eca,_0x1c5fbe,_0x5c5169)['catch'](_0x3668a2=>{if(st(_0x3668a2))return new Promise(_0xf4d29e=>{this[_0x1540('0x26')][_0x1540('0x1d')](_0x4b30cd,{'resolve':_0xf4d29e,'suggestionData':_0x231083});});throw _0x3668a2;});return this[_0x1540('0x26')][_0x1540('0x12')](_0x4b30cd),_0x5729ad;},'updateSuggestion':async(_0x415087,_0x41058d)=>{if(await this['_waitForServiceReady'](),_0x1540('0x5')!==_0x41058d['state'])return this[_0x1540('0x14')][_0x1540('0x24')](_0x415087,_0x41058d)[_0x1540('0x21')](B);}},this[_0x1540('0xf')](this[_0x1540('0x14')],_0x1540('0xd'),(_0x209948,_0x38737b)=>{_0x50e5a0[_0x1540('0x1b')](_0x38737b['id'])&&(_0x50e5a0[_0x1540('0x25')](_0x38737b['id'])[_0x1540('0x13')]=_0x38737b[_0x1540('0x13')]);}),this[_0x1540('0x14')]['connect'](_0x3c577b[_0x1540('0x17')])['then'](_0x3b931a=>(_0x3c577b[_0x1540('0x23')](this),this[_0x1540('0xb')](_0x3b931a)['then'](()=>{for(const _0x49c953 of _0x3b931a){_0x50e5a0[_0x1540('0x20')](_0x49c953)[_0x1540('0x11')]=!0x0;}})));}async['reconnect'](){const _0x237fe6=this['editor'][_0x1540('0x10')][_0x1540('0x6')]('TrackChangesEditing'),{connection:_0x7e42ea}=this[_0x1540('0xc')][_0x1540('0x10')][_0x1540('0x6')](_0xddfa19),_0x54e7bf=await this[_0x1540('0x14')][_0x1540('0x15')](_0x7e42ea);await this[_0x1540('0xb')](_0x54e7bf);for(const {suggestionData:_0x22bf98,resolve:_0x989815}of this['_bufferedRequests']['values']()){let _0x229297=_0x54e7bf[_0x1540('0x7')](_0xf1a61b=>_0xf1a61b['id']===_0x22bf98['id']);_0x229297||(_0x229297=await this[_0x1540('0x14')][_0x1540('0x2')](_0x22bf98['id'],_0x22bf98['type'],_0x22bf98[_0x1540('0x3')],_0x22bf98[_0x1540('0x16')])),_0x989815(_0x229297);}for(const _0x41a84d of _0x54e7bf)_0x237fe6['hasSuggestion'](_0x41a84d['id'])||_0x237fe6[_0x1540('0x20')](_0x41a84d);}async[_0x1540('0x1a')](){this['_trackChangesService']['isConnected']||await new Promise(_0x3dbc2c=>{this[_0x1540('0xf')](this[_0x1540('0x14')],_0x1540('0x28'),_0x39f310=>{_0x39f310[_0x1540('0x0')](),_0x3dbc2c();});});}async[_0x1540('0xb')](_0x595cb8){const _0x252491=this['editor']['plugins'][_0x1540('0x6')](_0x4d5f8a),{connection:_0x3eea41}=this['editor'][_0x1540('0x10')]['get'](_0xddfa19),_0x17e599=new Set();for(const {authorId:_0x32e6d7}of _0x595cb8)_0x252491['getUser'](_0x32e6d7)||_0x17e599[_0x1540('0x2')](_0x32e6d7);if(0x0===_0x17e599['size'])return;const _0x555113=await _0x1ae858['getMany'](_0x3eea41,Array[_0x1540('0x22')](_0x17e599));for(const _0xfd680b of _0x555113)_0x252491[_0x1540('0x1')](_0xfd680b['id'])||_0x252491[_0x1540('0x1f')](_0xfd680b);}}function B(_0x1d3e47){if(st(_0x1d3e47))return new Promise(()=>{});throw _0x1d3e47;}function st(_0x1f82e6){return _0x1f82e6[_0x1540('0x4')][_0x1540('0xe')](_0x1540('0x1c'))||_0x1f82e6[_0x1540('0x4')]['startsWith'](_0x1540('0x9'));}g[_0x1540('0x1e')]=_0xd19c32;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3586=['RealTimeCollaborativeTrackChanges','TrackChanges','pluginName'];(function(_0x3762ca,_0x35864e){var _0x345b8a=function(_0x3542c2){while(--_0x3542c2){_0x3762ca['push'](_0x3762ca['shift']());}};_0x345b8a(++_0x35864e);}(_0x3586,0x14c));var _0x345b=function(_0x3762ca,_0x35864e){_0x3762ca=_0x3762ca-0x0;var _0x345b8a=_0x3586[_0x3762ca];return _0x345b8a;};import{Plugin as _0x465c5d}from'ckeditor5/src/core';import _0x2a8cb8 from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';import _0x125fd3 from'./realtimecollaborativecomments';export default class p extends _0x465c5d{static get['requires'](){return[_0x125fd3,_0x2a8cb8,_0x345b('0x2')];}static get[_0x345b('0x0')](){return _0x345b('0x1');}}
23
+ var _0x53f8=['TrackChanges','requires','RealTimeCollaborativeTrackChanges','pluginName'];(function(_0x2c5c2e,_0x53f890){var _0xd3c3d8=function(_0xe66f49){while(--_0xe66f49){_0x2c5c2e['push'](_0x2c5c2e['shift']());}};_0xd3c3d8(++_0x53f890);}(_0x53f8,0x11e));var _0xd3c3=function(_0x2c5c2e,_0x53f890){_0x2c5c2e=_0x2c5c2e-0x0;var _0xd3c3d8=_0x53f8[_0x2c5c2e];return _0xd3c3d8;};import{Plugin as _0x290cc1}from'ckeditor5/src/core';import _0x537601 from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';import _0x4cbbb8 from'./realtimecollaborativecomments';export default class p extends _0x290cc1{static get[_0xd3c3('0x3')](){return[_0x4cbbb8,_0x537601,_0xd3c3('0x2')];}static get[_0xd3c3('0x1')](){return _0xd3c3('0x0');}}