@ckeditor/ckeditor5-real-time-collaboration 35.2.1 → 35.3.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 _0x2370=['init','sessions-register-already-registered','getUserSessions','context','connection','assign','set','requires','_users','remove','_handleSessionAdd','add','delete','addUser','pluginName','role','sessionAdd:','size','values','user','getUser','_registeredSessions','_handleSessionRemove','has','_uniqueUsersCount','defineMe','connected','allConnectedUsers','get','clear','_createUser','channelSessions','unregister','Sessions','channelConnectedUsers','state','plugins','register','stopListening','change:state','sessionId'];(function(_0x1da98f,_0x237020){const _0x34fc64=function(_0x30be16){while(--_0x30be16){_0x1da98f['push'](_0x1da98f['shift']());}};_0x34fc64(++_0x237020);}(_0x2370,0xe0));const _0x34fc=function(_0x1da98f,_0x237020){_0x1da98f=_0x1da98f-0x0;let _0x34fc64=_0x2370[_0x1da98f];return _0x34fc64;};import{ContextPlugin as _0x381f2d}from'ckeditor5/src/core';import{Collection as _0x54a53a,CKEditorError as _0xd02b3e}from'ckeditor5/src/utils';import _0x6b0d1d from'./websocketgateway';import{Users as _0x16fa4d}from'ckeditor5-collaboration/src/collaboration-core';export default class r extends _0x381f2d{static get[_0x34fc('0x24')](){return _0x34fc('0xe');}static get[_0x34fc('0x1d')](){return[_0x6b0d1d,_0x16fa4d];}[_0x34fc('0x16')](){const _0x1fdcf4=this[_0x34fc('0x19')],_0x59002c=_0x1fdcf4[_0x34fc('0x11')][_0x34fc('0x9')](_0x6b0d1d);this['channelSessions']=new Map(),this[_0x34fc('0xf')]=new Map(),this[_0x34fc('0x8')]=new _0x54a53a(),this[_0x34fc('0x2')]=new Map(),this['_uniqueUsersCount']=0x0,this[_0x34fc('0x1e')]=_0x1fdcf4[_0x34fc('0x11')]['get'](_0x16fa4d),this['listenTo'](_0x59002c,_0x34fc('0x14'),(_0x2907c4,_0x1cc60f,_0x529c8e)=>{if(_0x34fc('0x7')!==_0x529c8e)this[_0x34fc('0xc')]['forEach'](_0x49d051=>_0x49d051[_0x34fc('0xa')]()),this['channelConnectedUsers']['forEach'](_0x3bf0a2=>_0x3bf0a2[_0x34fc('0xa')]()),this[_0x34fc('0x8')][_0x34fc('0xa')]();else for(const [_0x51575c,_0x41dfa5]of this['_registeredSessions'])for(const _0x200326 of _0x41dfa5)this[_0x34fc('0x20')](_0x51575c,_0x200326);}),this[_0x34fc('0xb')](_0x59002c['connection']['me'],!0x0);}[_0x34fc('0x12')](_0x2d0c16,_0x104d96){if(this[_0x34fc('0x2')][_0x34fc('0x4')](_0x2d0c16))throw new _0xd02b3e(_0x34fc('0x17'),null,{'channelId':_0x2d0c16});this[_0x34fc('0x2')][_0x34fc('0x1c')](_0x2d0c16,_0x104d96),this[_0x34fc('0xc')][_0x34fc('0x1c')](_0x2d0c16,new _0x54a53a()),this[_0x34fc('0xf')][_0x34fc('0x1c')](_0x2d0c16,new _0x54a53a()),this['listenTo'](_0x104d96,'add',(_0x2ad59a,_0x693d08)=>this['_handleSessionAdd'](_0x2d0c16,_0x693d08)),this['listenTo'](_0x104d96,'remove',(_0x2a9ee9,_0x214adb)=>this[_0x34fc('0x3')](_0x2d0c16,_0x214adb));for(const _0x5e3423 of _0x104d96)this[_0x34fc('0x20')](_0x2d0c16,_0x5e3423);}[_0x34fc('0xd')](_0x558745){if(!this[_0x34fc('0x2')]['has'](_0x558745))throw new _0xd02b3e('sessions-unregister-not-exist',null,{'channelId':_0x558745});const _0x13e85e=this[_0x34fc('0x2')][_0x34fc('0x9')](_0x558745);this[_0x34fc('0x13')](_0x13e85e);for(const _0x6992c3 of _0x13e85e)_0x34fc('0x7')===this[_0x34fc('0x19')]['plugins'][_0x34fc('0x9')](_0x6b0d1d)[_0x34fc('0x10')]&&this['_handleSessionRemove'](_0x558745,_0x6992c3);this[_0x34fc('0x2')][_0x34fc('0x22')](_0x558745),this[_0x34fc('0xc')]['delete'](_0x558745),this[_0x34fc('0xf')]['delete'](_0x558745);}get['mySessionId'](){return this[_0x34fc('0x19')][_0x34fc('0x11')][_0x34fc('0x9')](_0x6b0d1d)[_0x34fc('0x1a')][_0x34fc('0x15')];}['getUserBySessionId'](_0x598aa7){for(const _0x134ef4 of this[_0x34fc('0xc')]['values']())for(const _0x59ecf9 of _0x134ef4)if(_0x59ecf9['id']===_0x598aa7)return _0x59ecf9[_0x34fc('0x0')];}[_0x34fc('0x18')](_0xada958,_0xac3278){const _0x38895f=_0xac3278?[this[_0x34fc('0xc')][_0x34fc('0x9')](_0xac3278)]:this['channelSessions'][_0x34fc('0x28')](),_0x45cbd0=new Set();for(const _0x4270da of _0x38895f)for(const _0x3ec1ce of _0x4270da)_0x3ec1ce[_0x34fc('0x0')]['id']===_0xada958['id']&&_0x45cbd0[_0x34fc('0x21')](_0x3ec1ce['id']);return _0x45cbd0;}['getUserRole'](_0x1b5045){for(const _0x54d75d of this[_0x34fc('0xc')][_0x34fc('0x28')]())for(const _0x435c27 of _0x54d75d)if(_0x435c27['user']===_0x1b5045)return _0x435c27[_0x34fc('0x25')];}[_0x34fc('0x20')](_0x163e41,_0x201fc0){if(_0x34fc('0x7')!==this[_0x34fc('0x19')]['plugins'][_0x34fc('0x9')](_0x6b0d1d)[_0x34fc('0x10')])return;const _0x1a0d33=_0x201fc0[_0x34fc('0x0')],_0xe22f0=this['_users'][_0x34fc('0x1')](_0x1a0d33['id'])||this[_0x34fc('0xb')](_0x1a0d33),_0x7113ff=Object[_0x34fc('0x1b')]({},_0x201fc0,{'user':_0xe22f0});this['channelSessions'][_0x34fc('0x9')](_0x163e41)['add'](_0x7113ff);const _0x3f8ad9=this['channelConnectedUsers'][_0x34fc('0x9')](_0x163e41);_0x3f8ad9[_0x34fc('0x4')](_0xe22f0['id'])||_0x3f8ad9[_0x34fc('0x21')](_0xe22f0),this[_0x34fc('0x8')]['has'](_0xe22f0['id'])||this[_0x34fc('0x8')][_0x34fc('0x21')](_0xe22f0),this['fire'](_0x34fc('0x26')+_0x163e41,{'channelId':_0x163e41,'session':_0x7113ff});}['_handleSessionRemove'](_0x170172,_0x5f448a){if(_0x34fc('0x7')!==this[_0x34fc('0x19')][_0x34fc('0x11')][_0x34fc('0x9')](_0x6b0d1d)[_0x34fc('0x10')])return;const _0x276efc=this[_0x34fc('0xf')]['get'](_0x170172),_0x1c3ad2=_0x5f448a[_0x34fc('0x0')];this['channelSessions'][_0x34fc('0x9')](_0x170172)[_0x34fc('0x1f')](_0x5f448a['id']),_0x276efc[_0x34fc('0x4')](_0x1c3ad2['id'])&&!this['getUserSessions'](_0x1c3ad2,_0x170172)[_0x34fc('0x27')]&&_0x276efc[_0x34fc('0x1f')](_0x1c3ad2['id']),this['allConnectedUsers']['get'](_0x1c3ad2['id'])&&!this[_0x34fc('0x18')](_0x1c3ad2)[_0x34fc('0x27')]&&this['allConnectedUsers'][_0x34fc('0x1f')](_0x1c3ad2['id']);}[_0x34fc('0xb')](_0x4dc421,_0xf694aa){const _0x359525=this[_0x34fc('0x1e')][_0x34fc('0x23')](_0x4dc421);return _0xf694aa&&this['_users'][_0x34fc('0x6')](_0x4dc421['id']),_0x359525['orderNumber']=this[_0x34fc('0x5')]++,_0x359525;}}
23
+ const _0x44b8=['unregister','_createUser','values','connected','requires','get','add','role','fire','stopListening','_uniqueUsersCount','sessions-register-already-registered','listenTo','connection','sessionId','_users','Sessions','has','change:state','init','plugins','set','state','clear','allConnectedUsers','size','delete','channelSessions','user','forEach','getUserBySessionId','sessions-unregister-not-exist','context','remove','channelConnectedUsers','_handleSessionRemove','defineMe','mySessionId','_registeredSessions','orderNumber','getUserSessions','_handleSessionAdd','getUser'];(function(_0x132665,_0x44b805){const _0x2c5582=function(_0x15da65){while(--_0x15da65){_0x132665['push'](_0x132665['shift']());}};_0x2c5582(++_0x44b805);}(_0x44b8,0xb4));const _0x2c55=function(_0x132665,_0x44b805){_0x132665=_0x132665-0x0;let _0x2c5582=_0x44b8[_0x132665];return _0x2c5582;};import{ContextPlugin as _0x321104}from'ckeditor5/src/core';import{Collection as _0x309d53,CKEditorError as _0x48a034}from'ckeditor5/src/utils';import _0x3294ad from'./websocketgateway';import{Users as _0x3e0ff0}from'ckeditor5-collaboration/src/collaboration-core';export default class r extends _0x321104{static get['pluginName'](){return _0x2c55('0x8');}static get[_0x2c55('0x27')](){return[_0x3294ad,_0x3e0ff0];}[_0x2c55('0xb')](){const _0x3d5a37=this[_0x2c55('0x18')],_0x4b5187=_0x3d5a37['plugins']['get'](_0x3294ad);this['channelSessions']=new Map(),this[_0x2c55('0x1a')]=new Map(),this[_0x2c55('0x10')]=new _0x309d53(),this['_registeredSessions']=new Map(),this[_0x2c55('0x2')]=0x0,this[_0x2c55('0x7')]=_0x3d5a37[_0x2c55('0xc')]['get'](_0x3e0ff0),this['listenTo'](_0x4b5187,_0x2c55('0xa'),(_0x63032d,_0x107f13,_0x49d1f8)=>{if(_0x2c55('0x26')!==_0x49d1f8)this[_0x2c55('0x13')][_0x2c55('0x15')](_0x2c60e0=>_0x2c60e0['clear']()),this[_0x2c55('0x1a')][_0x2c55('0x15')](_0x5862a2=>_0x5862a2[_0x2c55('0xf')]()),this[_0x2c55('0x10')][_0x2c55('0xf')]();else for(const [_0x1a50b0,_0x16094d]of this[_0x2c55('0x1e')])for(const _0x36f329 of _0x16094d)this[_0x2c55('0x21')](_0x1a50b0,_0x36f329);}),this[_0x2c55('0x24')](_0x4b5187['connection']['me'],!0x0);}['register'](_0x214726,_0x5c789d){if(this[_0x2c55('0x1e')][_0x2c55('0x9')](_0x214726))throw new _0x48a034(_0x2c55('0x3'),null,{'channelId':_0x214726});this[_0x2c55('0x1e')][_0x2c55('0xd')](_0x214726,_0x5c789d),this[_0x2c55('0x13')][_0x2c55('0xd')](_0x214726,new _0x309d53()),this[_0x2c55('0x1a')][_0x2c55('0xd')](_0x214726,new _0x309d53()),this['listenTo'](_0x5c789d,_0x2c55('0x29'),(_0x3033a1,_0x1eb9b6)=>this[_0x2c55('0x21')](_0x214726,_0x1eb9b6)),this[_0x2c55('0x4')](_0x5c789d,_0x2c55('0x19'),(_0x46acb4,_0x410cc)=>this[_0x2c55('0x1b')](_0x214726,_0x410cc));for(const _0x37c796 of _0x5c789d)this[_0x2c55('0x21')](_0x214726,_0x37c796);}[_0x2c55('0x23')](_0x2e5da6){if(!this[_0x2c55('0x1e')][_0x2c55('0x9')](_0x2e5da6))throw new _0x48a034(_0x2c55('0x17'),null,{'channelId':_0x2e5da6});const _0x15d472=this['_registeredSessions']['get'](_0x2e5da6);this[_0x2c55('0x1')](_0x15d472);for(const _0x4b0eac of _0x15d472)_0x2c55('0x26')===this[_0x2c55('0x18')]['plugins'][_0x2c55('0x28')](_0x3294ad)['state']&&this[_0x2c55('0x1b')](_0x2e5da6,_0x4b0eac);this[_0x2c55('0x1e')][_0x2c55('0x12')](_0x2e5da6),this['channelSessions'][_0x2c55('0x12')](_0x2e5da6),this[_0x2c55('0x1a')][_0x2c55('0x12')](_0x2e5da6);}get[_0x2c55('0x1d')](){return this[_0x2c55('0x18')][_0x2c55('0xc')][_0x2c55('0x28')](_0x3294ad)[_0x2c55('0x5')][_0x2c55('0x6')];}[_0x2c55('0x16')](_0x228364){for(const _0x48e18a of this[_0x2c55('0x13')][_0x2c55('0x25')]())for(const _0x495411 of _0x48e18a)if(_0x495411['id']===_0x228364)return _0x495411[_0x2c55('0x14')];}['getUserSessions'](_0x178787,_0x10cc0b){const _0x47c086=_0x10cc0b?[this['channelSessions'][_0x2c55('0x28')](_0x10cc0b)]:this['channelSessions']['values'](),_0xab72be=new Set();for(const _0x55c9b1 of _0x47c086)for(const _0x13d6c4 of _0x55c9b1)_0x13d6c4['user']['id']===_0x178787['id']&&_0xab72be[_0x2c55('0x29')](_0x13d6c4['id']);return _0xab72be;}['getUserRole'](_0x234542){for(const _0x453c4a of this['channelSessions'][_0x2c55('0x25')]())for(const _0x4aa0fd of _0x453c4a)if(_0x4aa0fd['user']===_0x234542)return _0x4aa0fd[_0x2c55('0x2a')];}[_0x2c55('0x21')](_0xc508c8,_0x31f633){if(_0x2c55('0x26')!==this['context'][_0x2c55('0xc')]['get'](_0x3294ad)[_0x2c55('0xe')])return;const _0x2497bd=_0x31f633['user'],_0x347a20=this['_users'][_0x2c55('0x22')](_0x2497bd['id'])||this[_0x2c55('0x24')](_0x2497bd),_0x2344d0=Object['assign']({},_0x31f633,{'user':_0x347a20});this[_0x2c55('0x13')]['get'](_0xc508c8)[_0x2c55('0x29')](_0x2344d0);const _0x3db1ed=this[_0x2c55('0x1a')][_0x2c55('0x28')](_0xc508c8);_0x3db1ed[_0x2c55('0x9')](_0x347a20['id'])||_0x3db1ed[_0x2c55('0x29')](_0x347a20),this['allConnectedUsers']['has'](_0x347a20['id'])||this[_0x2c55('0x10')][_0x2c55('0x29')](_0x347a20),this[_0x2c55('0x0')]('sessionAdd:'+_0xc508c8,{'channelId':_0xc508c8,'session':_0x2344d0});}[_0x2c55('0x1b')](_0x117bb1,_0x12894c){if(_0x2c55('0x26')!==this[_0x2c55('0x18')][_0x2c55('0xc')][_0x2c55('0x28')](_0x3294ad)[_0x2c55('0xe')])return;const _0x32d53e=this[_0x2c55('0x1a')][_0x2c55('0x28')](_0x117bb1),_0x1548e8=_0x12894c[_0x2c55('0x14')];this[_0x2c55('0x13')][_0x2c55('0x28')](_0x117bb1)[_0x2c55('0x19')](_0x12894c['id']),_0x32d53e[_0x2c55('0x9')](_0x1548e8['id'])&&!this[_0x2c55('0x20')](_0x1548e8,_0x117bb1)[_0x2c55('0x11')]&&_0x32d53e[_0x2c55('0x19')](_0x1548e8['id']),this[_0x2c55('0x10')][_0x2c55('0x28')](_0x1548e8['id'])&&!this[_0x2c55('0x20')](_0x1548e8)[_0x2c55('0x11')]&&this[_0x2c55('0x10')][_0x2c55('0x19')](_0x1548e8['id']);}['_createUser'](_0x16acde,_0x46fe15){const _0x1f44eb=this[_0x2c55('0x7')]['addUser'](_0x16acde);return _0x46fe15&&this[_0x2c55('0x7')][_0x2c55('0x1c')](_0x16acde['id']),_0x1f44eb[_0x2c55('0x1f')]=this[_0x2c55('0x2')]++,_0x1f44eb;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x384f=['isLimit','change','editing','user:range','schema','getRange','for','fromRange','createUserMarkerOperations','model','hasContent','markerRange','requires','hasDomSelection','startsWith','markerName','isInline','&#8203;<span\x20class=\x22ck-user__marker-line\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','ck-user__selection','user:position:','innerHTML','isCollapsed','contenteditable','createRange','setCustomProperty','markerToElement','pluginName','user:position','getAttribute','type','undo','newRange','getSelectionClass','getUserBySessionId','tableCell','color','user:','start','checkChild','isObject','get','addMarker','removeMarker','createUIElement','set','UserMarkers','init','change:range','marker','end','getStart','mySessionId','userPositionMarker','commands','isSimilar','getFirstRange','element','getNearestSelectionRange','deletionPosition','document','priority','updateMarker','applyOperation','_createdBatches','plugins','afterInit','view','editor','size','selection','getCustomProperty','split','getMarkerClass','span','data-session-id','highest','clear','batch','detach','name','update:user:range','toRange','markers','$graveyard','user:range:','orderNumber','editingDowncast','has','enqueueChange','toDomElement','root','conversion','reconvertMarker','rootName','oldRange'];(function(_0x2de5f9,_0x384f14){const _0x119a94=function(_0x4ba0ea){while(--_0x4ba0ea){_0x2de5f9['push'](_0x2de5f9['shift']());}};_0x119a94(++_0x384f14);}(_0x384f,0x124));const _0x119a=function(_0x2de5f9,_0x384f14){_0x2de5f9=_0x2de5f9-0x0;let _0x119a94=_0x384f[_0x2de5f9];return _0x119a94;};import{Plugin as _0x30683a}from'ckeditor5/src/core';import _0x5b6c1f from'./sessions';import{LiveRange as _0x26521a}from'ckeditor5/src/engine';import'../../theme/usermarkers.css';export default class V extends _0x30683a{static get[_0x119a('0x5')](){return[_0x5b6c1f];}static get[_0x119a('0x13')](){return _0x119a('0x26');}[_0x119a('0x27')](){const _0x31c97a=this[_0x119a('0x3c')],_0x57eaf6=_0x31c97a[_0x119a('0x39')][_0x119a('0x21')](_0x5b6c1f);_0x31c97a[_0x119a('0x54')][_0x119a('0x5e')](_0x119a('0x4f'))[_0x119a('0x12')]({'model':_0x119a('0x14'),'view':(_0xf9a2fa,{writer:_0x4a22e9})=>function(_0x33b32d,_0x37bd9c,_0x50599d,_0x565501){const _0x3e8fe0=_0x33b32d[_0x119a('0x8')][_0x119a('0x40')](':')[0x2],_0x648c3a=_0x50599d[_0x119a('0x1a')](_0x3e8fe0);if(!_0x648c3a||_0x3e8fe0===_0x50599d[_0x119a('0x2c')])return;if(!_0x565501[_0x119a('0x2')][_0x119a('0x5c')][_0x119a('0x1f')](_0x33b32d[_0x119a('0x4')][_0x119a('0x1e')],'$text'))return;const _0x47b7a7={'class':'ck-user__marker\x20'+_0x648c3a[_0x119a('0x1c')][_0x119a('0x41')](),'data-name':_0x648c3a[_0x119a('0x48')],'data-session-id':_0x3e8fe0},_0x118e71=_0x565501['model']['markers'][_0x119a('0x21')](_0x33b32d[_0x119a('0x8')])[_0x119a('0x2b')](),_0x11c684=_0x118e71['nodeAfter'],_0x2bd075=_0x565501[_0x119a('0x2')][_0x119a('0x5c')];if(_0x11c684&&_0x2bd075[_0x119a('0x20')](_0x11c684)&&_0x2bd075[_0x119a('0x9')](_0x11c684)&&!_0x565501['model'][_0x119a('0x4b')][_0x119a('0x21')]('user:range:'+_0x3e8fe0)[_0x119a('0x5d')]()[_0x119a('0xe')])return;const _0x34fc78=_0x118e71['parent'];_0x565501['model'][_0x119a('0x5c')][_0x119a('0x58')](_0x34fc78)&&!_0x565501[_0x119a('0x2')][_0x119a('0x3')](_0x34fc78)&&(_0x47b7a7[_0x119a('0xf')]=!0x1);const _0x2293ed=function(_0x384cfb,_0x37da8f){const _0x502fe3=_0x384cfb[_0x119a('0x24')](_0x119a('0x42'),_0x37da8f);return _0x384cfb[_0x119a('0x11')](_0x119a('0x2d'),!0x0,_0x502fe3),_0x502fe3['render']=function(_0x22e317){const _0x4589a5=this[_0x119a('0x52')](_0x22e317);return _0x4589a5[_0x119a('0xd')]=_0x119a('0xa'),_0x4589a5;},_0x502fe3[_0x119a('0x2f')]=function(_0x44343e){return this[_0x119a('0x3f')](_0x119a('0x2d'))&&_0x44343e['getCustomProperty']('userPositionMarker')&&this[_0x119a('0x15')](_0x119a('0x43'))==_0x44343e[_0x119a('0x15')](_0x119a('0x43'));},_0x502fe3;}(_0x37bd9c,_0x47b7a7);return _0x2293ed[_0x119a('0x35')]=0x3e8+_0x648c3a[_0x119a('0x4e')],_0x2293ed;}(_0xf9a2fa,_0x4a22e9,_0x57eaf6,_0x31c97a)}),_0x31c97a[_0x119a('0x54')][_0x119a('0x5e')](_0x119a('0x4f'))['markerToHighlight']({'model':_0x119a('0x5b'),'view':_0x5ef79d=>function(_0x1d91e5,_0x23c06b){const _0x304e4e=_0x1d91e5[_0x119a('0x8')][_0x119a('0x40')](':')[0x2];if(_0x304e4e===_0x23c06b[_0x119a('0x2c')])return;const _0x13b7d6=_0x23c06b[_0x119a('0x1a')](_0x304e4e);if(!_0x13b7d6)return{'id':_0x304e4e};return{'id':_0x304e4e,'classes':[_0x119a('0xb'),_0x13b7d6[_0x119a('0x1c')][_0x119a('0x19')]()],'attributes':{'data-session-id':_0x304e4e},'priority':0x7d0+_0x13b7d6[_0x119a('0x4e')]};}(_0x5ef79d,_0x57eaf6)}),function(_0x1fe9e2){const _0x2d1094=_0x1fe9e2[_0x119a('0x2')],_0x87548d=new Map(),_0xaf27c1=_0x1fe9e2[_0x119a('0x39')]['get'](_0x5b6c1f);_0x2d1094[_0x119a('0x4b')]['on'](_0x119a('0x49'),(_0x33dae2,_0x59ad9e,_0x4642f3,_0x10ac23)=>{if(!_0x10ac23&&_0x87548d[_0x119a('0x21')](_0x59ad9e[_0x119a('0x48')]))return _0x87548d[_0x119a('0x21')](_0x59ad9e[_0x119a('0x48')])[_0x119a('0x47')](),void _0x87548d['delete'](_0x59ad9e['name']);const _0x157e45=_0x59ad9e[_0x119a('0x48')][_0x119a('0x40')](':')[0x2];if(_0x157e45===_0xaf27c1[_0x119a('0x2c')])return;const _0x4e73e4='user:position:'+_0x157e45;_0x2d1094['markers'][_0x119a('0x50')](_0x4e73e4)&&_0x1fe9e2[_0x119a('0x5a')][_0x119a('0x55')](_0x4e73e4),_0x59ad9e['on']('change:range',(_0x8810d7,_0x495392,_0x37ed54)=>{if(_0x119a('0x4c')!=_0x495392[_0x119a('0x53')][_0x119a('0x56')]&&_0x119a('0x4c')==_0x59ad9e[_0x119a('0x5d')]()[_0x119a('0x53')][_0x119a('0x56')]&&!_0x87548d[_0x119a('0x50')](_0x59ad9e[_0x119a('0x48')])){const _0x590a12=_0x2d1094[_0x119a('0x5c')][_0x119a('0x32')](_0x37ed54['deletionPosition']);if(_0x590a12){const _0x2446e6=_0x26521a[_0x119a('0x0')](_0x590a12);_0x87548d[_0x119a('0x25')](_0x59ad9e[_0x119a('0x48')],_0x2446e6),_0x2446e6['on'](_0x119a('0x28'),(_0x4a24ba,_0x3fc77d,_0x5beb66)=>{if('$graveyard'==_0x2446e6[_0x119a('0x53')][_0x119a('0x56')]){const _0x1b1bb2=_0x2d1094[_0x119a('0x5c')][_0x119a('0x32')](_0x5beb66[_0x119a('0x33')]);_0x1b1bb2?(_0x2446e6[_0x119a('0x1e')]=_0x1b1bb2['start'],_0x2446e6[_0x119a('0x2a')]=_0x1b1bb2[_0x119a('0x2a')]):(_0x87548d['delete'](_0x59ad9e[_0x119a('0x48')]),_0x2446e6['detach']());}});}}});}),_0x2d1094['document']['on'](_0x119a('0x59'),()=>{_0x87548d[_0x119a('0x3d')]>0x0&&_0x2d1094[_0x119a('0x51')]({'isUndoable':!0x1},_0xc67f5a=>{for(const [_0x427fa2,_0x2ee479]of _0x87548d)_0x119a('0x4c')==_0x2d1094[_0x119a('0x4b')][_0x119a('0x21')](_0x427fa2)[_0x119a('0x5d')]()[_0x119a('0x53')][_0x119a('0x56')]&&(Q(_0x427fa2['split'](':')[0x2],_0x2ee479[_0x119a('0x4a')](),_0x2d1094,_0xc67f5a),_0x2ee479[_0x119a('0x47')]());_0x87548d[_0x119a('0x45')]();});});}(_0x31c97a);}[_0x119a('0x3a')](){const _0x3faedb=this[_0x119a('0x3c')],_0x236af7=_0x3faedb[_0x119a('0x2e')][_0x119a('0x21')](_0x119a('0x17'));_0x236af7&&_0x3faedb[_0x119a('0x2')]['on'](_0x119a('0x37'),(_0x463523,_0x3b6197)=>{const _0x3d523a=_0x3b6197[0x0];if(_0x119a('0x29')!=_0x3d523a[_0x119a('0x16')]||!_0x3d523a['name'][_0x119a('0x7')](_0x119a('0x1d')))return;const _0x80c10a=_0x3d523a[_0x119a('0x46')];_0x236af7[_0x119a('0x38')]['has'](_0x80c10a)&&(_0x3d523a[_0x119a('0x18')]=_0x3d523a[_0x119a('0x57')]?_0x3faedb[_0x119a('0x2')][_0x119a('0x10')](_0x3d523a[_0x119a('0x57')]['start'],_0x3d523a[_0x119a('0x57')][_0x119a('0x2a')]):null);},{'priority':_0x119a('0x44')});}[_0x119a('0x1')](){const _0x19ec97=this['editor'],_0x2b8e2d=_0x19ec97[_0x119a('0x2')][_0x119a('0x34')],_0x583a51=_0x19ec97[_0x119a('0x39')][_0x119a('0x21')](_0x5b6c1f);_0x19ec97[_0x119a('0x2')][_0x119a('0x51')]({'isUndoable':!0x1},_0x5197b1=>{const _0x133a86=_0x119a('0x4d')+_0x583a51[_0x119a('0x2c')],_0x35528d=_0x119a('0xc')+_0x583a51[_0x119a('0x2c')],_0x4939b4=_0x19ec97[_0x119a('0x2')][_0x119a('0x4b')]['has'](_0x133a86);_0x19ec97[_0x119a('0x5a')][_0x119a('0x3b')][_0x119a('0x6')]?Q(_0x583a51[_0x119a('0x2c')],_0x2b8e2d[_0x119a('0x3e')][_0x119a('0x30')](),_0x19ec97[_0x119a('0x2')],_0x5197b1):_0x4939b4&&(_0x5197b1[_0x119a('0x23')](_0x133a86),_0x5197b1[_0x119a('0x23')](_0x35528d));});}}function Q(_0x3546e6,_0x460d7b,_0x5db375,_0x469962){const _0x1ad86c=_0x119a('0x4d')+_0x3546e6,_0x240fbd=_0x119a('0xc')+_0x3546e6,_0x3a9da0=_0x460d7b['getContainedElement']();let _0x46ca29=_0x460d7b['start'];_0x3a9da0&&_0x3a9da0['is'](_0x119a('0x31'),_0x119a('0x1b'))&&(_0x46ca29=function(_0x29324f,_0x3fe9de){for(const _0x9a5054 of _0x29324f['getPositions']())if(_0x3fe9de['schema']['checkChild'](_0x9a5054,'$text'))return _0x9a5054;}(_0x460d7b,_0x5db375),_0x460d7b=_0x469962[_0x119a('0x10')](_0x46ca29)),_0x46ca29=_0x469962[_0x119a('0x10')](_0x46ca29),_0x5db375[_0x119a('0x4b')]['has'](_0x1ad86c)?(_0x469962[_0x119a('0x36')](_0x1ad86c,{'range':_0x460d7b}),_0x469962[_0x119a('0x36')](_0x240fbd,{'range':_0x46ca29})):(_0x469962['addMarker'](_0x1ad86c,{'range':_0x460d7b,'usingOperation':!0x0}),_0x469962[_0x119a('0x22')](_0x240fbd,{'range':_0x46ca29,'usingOperation':!0x0}));}
23
+ const _0x25e8=['start','startsWith','addMarker','toDomElement','getUserBySessionId','$text','editor','update:user:range','detach','toRange','markerToHighlight','change','color','markerRange','checkChild','ck-user__marker\x20','selection','createUIElement','nodeAfter','change:range','for','deletionPosition','ck-user__selection','getAttribute','isLimit','marker','has','getCustomProperty','mySessionId','updateMarker','_createdBatches','document','init','delete','editing','name','schema','editingDowncast','parent','afterInit','getNearestSelectionRange','user:','model','rootName','isInline','enqueueChange','commands','plugins','user:position:','$graveyard','conversion','getFirstRange','removeMarker','getContainedElement','user:range:','orderNumber','element','set','hasDomSelection','oldRange','getRange','span','type','size','user:position','userPositionMarker','priority','tableCell','createRange','setCustomProperty','markers','end','pluginName','view','undo','get','isSimilar','UserMarkers','markerName','split','root','contenteditable','getStart','render'];(function(_0x2dc0bf,_0x25e876){const _0x583f1b=function(_0xf63dc3){while(--_0xf63dc3){_0x2dc0bf['push'](_0x2dc0bf['shift']());}};_0x583f1b(++_0x25e876);}(_0x25e8,0x124));const _0x583f=function(_0x2dc0bf,_0x25e876){_0x2dc0bf=_0x2dc0bf-0x0;let _0x583f1b=_0x25e8[_0x2dc0bf];return _0x583f1b;};import{Plugin as _0xeccca7}from'ckeditor5/src/core';import _0x380f10 from'./sessions';import{LiveRange as _0x52bab0}from'ckeditor5/src/engine';import'../../theme/usermarkers.css';export default class H extends _0xeccca7{static get['requires'](){return[_0x380f10];}static get[_0x583f('0x20')](){return _0x583f('0x25');}[_0x583f('0x4c')](){const _0x3eb118=this['editor'],_0x4cec25=_0x3eb118[_0x583f('0x7')][_0x583f('0x23')](_0x380f10);_0x3eb118[_0x583f('0xa')][_0x583f('0x40')](_0x583f('0x51'))['markerToElement']({'model':_0x583f('0x18'),'view':(_0x3e952e,{writer:_0x130d33})=>function(_0x4e6534,_0x130741,_0x20a28e,_0xb6a355){const _0x29e5e6=_0x4e6534[_0x583f('0x26')][_0x583f('0x27')](':')[0x2],_0x339e60=_0x20a28e[_0x583f('0x30')](_0x29e5e6);if(!_0x339e60||_0x29e5e6===_0x20a28e['mySessionId'])return;if(!_0xb6a355[_0x583f('0x2')][_0x583f('0x50')][_0x583f('0x3a')](_0x4e6534[_0x583f('0x39')][_0x583f('0x2c')],_0x583f('0x31')))return;const _0x3d7cbe={'class':_0x583f('0x3b')+_0x339e60['color']['getMarkerClass'](),'data-name':_0x339e60[_0x583f('0x4f')],'data-session-id':_0x29e5e6},_0x3db1b1=_0xb6a355[_0x583f('0x2')]['markers'][_0x583f('0x23')](_0x4e6534['markerName'])[_0x583f('0x2a')](),_0x4a7e8e=_0x3db1b1[_0x583f('0x3e')],_0x5d79d9=_0xb6a355[_0x583f('0x2')]['schema'];if(_0x4a7e8e&&_0x5d79d9['isObject'](_0x4a7e8e)&&_0x5d79d9[_0x583f('0x4')](_0x4a7e8e)&&!_0xb6a355[_0x583f('0x2')][_0x583f('0x1e')][_0x583f('0x23')](_0x583f('0xe')+_0x29e5e6)[_0x583f('0x14')]()['isCollapsed'])return;const _0x3eb9d0=_0x3db1b1[_0x583f('0x52')];_0xb6a355['model'][_0x583f('0x50')][_0x583f('0x44')](_0x3eb9d0)&&!_0xb6a355[_0x583f('0x2')]['hasContent'](_0x3eb9d0)&&(_0x3d7cbe[_0x583f('0x29')]=!0x1);const _0x1db3b8=function(_0x11e8c0,_0xf01f2e){const _0x172d9e=_0x11e8c0[_0x583f('0x3d')](_0x583f('0x15'),_0xf01f2e);return _0x11e8c0[_0x583f('0x1d')]('userPositionMarker',!0x0,_0x172d9e),_0x172d9e[_0x583f('0x2b')]=function(_0x2b79f6){const _0x226879=this[_0x583f('0x2f')](_0x2b79f6);return _0x226879['innerHTML']='&#8203;<span\x20class=\x22ck-user__marker-line\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>',_0x226879;},_0x172d9e[_0x583f('0x24')]=function(_0x369499){return this[_0x583f('0x47')](_0x583f('0x19'))&&_0x369499[_0x583f('0x47')]('userPositionMarker')&&this[_0x583f('0x43')]('data-session-id')==_0x369499['getAttribute']('data-session-id');},_0x172d9e;}(_0x130741,_0x3d7cbe);return _0x1db3b8[_0x583f('0x1a')]=0x3e8+_0x339e60['orderNumber'],_0x1db3b8;}(_0x3e952e,_0x130d33,_0x4cec25,_0x3eb118)}),_0x3eb118[_0x583f('0xa')][_0x583f('0x40')](_0x583f('0x51'))[_0x583f('0x36')]({'model':'user:range','view':_0x13f38a=>function(_0x533dc5,_0x1bf403){const _0xff051a=_0x533dc5[_0x583f('0x26')][_0x583f('0x27')](':')[0x2];if(_0xff051a===_0x1bf403[_0x583f('0x48')])return;const _0x508866=_0x1bf403['getUserBySessionId'](_0xff051a);if(!_0x508866)return{'id':_0xff051a};return{'id':_0xff051a,'classes':[_0x583f('0x42'),_0x508866[_0x583f('0x38')]['getSelectionClass']()],'attributes':{'data-session-id':_0xff051a},'priority':0x7d0+_0x508866[_0x583f('0xf')]};}(_0x13f38a,_0x4cec25)}),function(_0x145de8){const _0x2a9212=_0x145de8['model'],_0x14e0b5=new Map(),_0x4da310=_0x145de8[_0x583f('0x7')][_0x583f('0x23')](_0x380f10);_0x2a9212[_0x583f('0x1e')]['on'](_0x583f('0x33'),(_0x22f2a0,_0x139f97,_0x1b1175,_0x159aea)=>{if(!_0x159aea&&_0x14e0b5[_0x583f('0x23')](_0x139f97['name']))return _0x14e0b5['get'](_0x139f97['name'])[_0x583f('0x34')](),void _0x14e0b5[_0x583f('0x4d')](_0x139f97[_0x583f('0x4f')]);const _0x5b60ed=_0x139f97[_0x583f('0x4f')][_0x583f('0x27')](':')[0x2];if(_0x5b60ed===_0x4da310['mySessionId'])return;const _0x3bff43=_0x583f('0x8')+_0x5b60ed;_0x2a9212[_0x583f('0x1e')][_0x583f('0x46')](_0x3bff43)&&_0x145de8[_0x583f('0x4e')]['reconvertMarker'](_0x3bff43),_0x139f97['on'](_0x583f('0x3f'),(_0x560f94,_0x5ee17a,_0x276aaa)=>{if(_0x583f('0x9')!=_0x5ee17a[_0x583f('0x28')][_0x583f('0x3')]&&_0x583f('0x9')==_0x139f97[_0x583f('0x14')]()[_0x583f('0x28')][_0x583f('0x3')]&&!_0x14e0b5[_0x583f('0x46')](_0x139f97[_0x583f('0x4f')])){const _0x534ec5=_0x2a9212['schema'][_0x583f('0x0')](_0x276aaa[_0x583f('0x41')]);if(_0x534ec5){const _0x1438f1=_0x52bab0['fromRange'](_0x534ec5);_0x14e0b5[_0x583f('0x11')](_0x139f97['name'],_0x1438f1),_0x1438f1['on'](_0x583f('0x3f'),(_0x3a1049,_0x4cf0c4,_0x15730b)=>{if(_0x583f('0x9')==_0x1438f1[_0x583f('0x28')]['rootName']){const _0x350467=_0x2a9212['schema'][_0x583f('0x0')](_0x15730b[_0x583f('0x41')]);_0x350467?(_0x1438f1['start']=_0x350467[_0x583f('0x2c')],_0x1438f1[_0x583f('0x1f')]=_0x350467[_0x583f('0x1f')]):(_0x14e0b5[_0x583f('0x4d')](_0x139f97['name']),_0x1438f1[_0x583f('0x34')]());}});}}});}),_0x2a9212['document']['on'](_0x583f('0x37'),()=>{_0x14e0b5[_0x583f('0x17')]>0x0&&_0x2a9212[_0x583f('0x5')]({'isUndoable':!0x1},_0x332efd=>{for(const [_0x1c7d9d,_0x1d54a0]of _0x14e0b5)_0x583f('0x9')==_0x2a9212[_0x583f('0x1e')][_0x583f('0x23')](_0x1c7d9d)[_0x583f('0x14')]()[_0x583f('0x28')][_0x583f('0x3')]&&(Z(_0x1c7d9d[_0x583f('0x27')](':')[0x2],_0x1d54a0[_0x583f('0x35')](),_0x2a9212,_0x332efd),_0x1d54a0[_0x583f('0x34')]());_0x14e0b5['clear']();});});}(_0x3eb118);}[_0x583f('0x53')](){const _0x1f9c78=this[_0x583f('0x32')],_0x5c12bf=_0x1f9c78[_0x583f('0x6')][_0x583f('0x23')](_0x583f('0x22'));_0x5c12bf&&_0x1f9c78['model']['on']('applyOperation',(_0x37c065,_0x45e09c)=>{const _0x5e8c6d=_0x45e09c[0x0];if(_0x583f('0x45')!=_0x5e8c6d[_0x583f('0x16')]||!_0x5e8c6d['name'][_0x583f('0x2d')](_0x583f('0x1')))return;const _0x6f8687=_0x5e8c6d['batch'];_0x5c12bf[_0x583f('0x4a')][_0x583f('0x46')](_0x6f8687)&&(_0x5e8c6d['newRange']=_0x5e8c6d['oldRange']?_0x1f9c78[_0x583f('0x2')][_0x583f('0x1c')](_0x5e8c6d[_0x583f('0x13')][_0x583f('0x2c')],_0x5e8c6d[_0x583f('0x13')][_0x583f('0x1f')]):null);},{'priority':'highest'});}['createUserMarkerOperations'](){const _0x1815e0=this[_0x583f('0x32')],_0x35e6e7=_0x1815e0[_0x583f('0x2')][_0x583f('0x4b')],_0x1d0b24=_0x1815e0[_0x583f('0x7')][_0x583f('0x23')](_0x380f10);_0x1815e0['model'][_0x583f('0x5')]({'isUndoable':!0x1},_0x52fe3f=>{const _0x2e175c=_0x583f('0xe')+_0x1d0b24[_0x583f('0x48')],_0x2cc35b=_0x583f('0x8')+_0x1d0b24[_0x583f('0x48')],_0x5bcf60=_0x1815e0[_0x583f('0x2')][_0x583f('0x1e')][_0x583f('0x46')](_0x2e175c);_0x1815e0[_0x583f('0x4e')][_0x583f('0x21')][_0x583f('0x12')]?Z(_0x1d0b24[_0x583f('0x48')],_0x35e6e7[_0x583f('0x3c')][_0x583f('0xb')](),_0x1815e0[_0x583f('0x2')],_0x52fe3f):_0x5bcf60&&(_0x52fe3f[_0x583f('0xc')](_0x2e175c),_0x52fe3f[_0x583f('0xc')](_0x2cc35b));});}}function Z(_0x463f0a,_0x2fee8d,_0x557b08,_0x334f1d){const _0x264b93=_0x583f('0xe')+_0x463f0a,_0x38d01f=_0x583f('0x8')+_0x463f0a,_0x19cb98=_0x2fee8d[_0x583f('0xd')]();let _0x5f1819=_0x2fee8d[_0x583f('0x2c')];_0x19cb98&&_0x19cb98['is'](_0x583f('0x10'),_0x583f('0x1b'))&&(_0x5f1819=function(_0x33cce0,_0x5ae056){for(const _0x1c2172 of _0x33cce0['getPositions']())if(_0x5ae056[_0x583f('0x50')][_0x583f('0x3a')](_0x1c2172,'$text'))return _0x1c2172;}(_0x2fee8d,_0x557b08),_0x2fee8d=_0x334f1d[_0x583f('0x1c')](_0x5f1819)),_0x5f1819=_0x334f1d[_0x583f('0x1c')](_0x5f1819),_0x557b08[_0x583f('0x1e')][_0x583f('0x46')](_0x264b93)?(_0x334f1d[_0x583f('0x49')](_0x264b93,{'range':_0x2fee8d}),_0x334f1d[_0x583f('0x49')](_0x38d01f,{'range':_0x5f1819})):(_0x334f1d[_0x583f('0x2e')](_0x264b93,{'range':_0x2fee8d,'usingOperation':!0x0}),_0x334f1d['addMarker'](_0x38d01f,{'range':_0x5f1819,'usingOperation':!0x0}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1259=['disconnect','stopListening','bind','then','cloudServices.connectionTimeout','disconnected','connection','WebSocketGateway','create','limitExceeded','cloudServices.requestTimeout','offline','init','change:me','listenTo','config','from','context','reconnect','requires','_reconnectionStack','function','webSocketUrl','isInReconnectionStack','_shouldPluginsReconnect','get','cloudservices-reconnection-error','delete','_isBrowserOffline','pluginName','destroy','addToReconnectionStack','plugins','cloudservices-init','state','connect','define','CloudServices','catch','has','removeFromReconnectionStack','all','initialReconnectionInterval','websocketgateway-missing-websocket-url','code','connected','error','constructor','showWarning','websocketgateway-invalid-plugin-interface','Connected\x20users\x20limit\x20exceeded','set','connecting','_domEmitter','token'];(function(_0x2ad686,_0x12597f){const _0x5ea777=function(_0x1018d5){while(--_0x1018d5){_0x2ad686['push'](_0x2ad686['shift']());}};_0x5ea777(++_0x12597f);}(_0x1259,0x118));const _0x5ea7=function(_0x2ad686,_0x12597f){_0x2ad686=_0x2ad686-0x0;let _0x5ea777=_0x1259[_0x2ad686];return _0x5ea777;};import{ContextPlugin as _0x41b78f}from'ckeditor5/src/core';import{DomEmitterMixin as _0x498da3,CKEditorError as _0x2777a4}from'ckeditor5/src/utils';import _0x528f63 from'@ckeditor/ckeditor-cloud-services-collaboration/src/websocketgateway/websocketgateway';import{Notification as _0x276e9e}from'ckeditor5/src/ui';export default class c extends _0x41b78f{static get[_0x5ea7('0xe')](){return[_0x5ea7('0x20'),_0x276e9e];}static get['pluginName'](){return _0x5ea7('0x2');}[_0x5ea7('0x7')](){const _0x8540d8=this[_0x5ea7('0xc')],_0x466868=_0x8540d8[_0x5ea7('0x1b')][_0x5ea7('0x14')](_0x5ea7('0x20')),_0x4c4427=_0x8540d8[_0x5ea7('0x1b')][_0x5ea7('0x14')](_0x276e9e);if(!_0x466868[_0x5ea7('0x31')])throw new _0x2777a4('websocketgateway-missing-token',this);if(!_0x466868[_0x5ea7('0x11')])throw new _0x2777a4(_0x5ea7('0x26'),this);return this['set'](_0x5ea7('0x1d'),_0x5ea7('0x2f')),this[_0x5ea7('0x2e')](_0x5ea7('0x17'),!0x1),this['_reconnectionStack']=new Set(),this[_0x5ea7('0x13')]=!0x1,this['_domEmitter']=Object[_0x5ea7('0x3')](_0x498da3),this['_domEmitter'][_0x5ea7('0x9')](window,_0x5ea7('0x6'),()=>this[_0x5ea7('0x17')]=!0x0),this[_0x5ea7('0x30')]['listenTo'](window,'online',()=>this[_0x5ea7('0x17')]=!0x1),this[_0x5ea7('0xc')][_0x5ea7('0xa')]['define'](_0x5ea7('0x36'),0xa),this['context'][_0x5ea7('0xa')][_0x5ea7('0x1f')]('cloudServices.requestTimeout',0x14),c[_0x5ea7('0x2')][_0x5ea7('0x1e')](_0x466868[_0x5ea7('0x31')],_0x466868[_0x5ea7('0x11')],{'disconnectOnUnload':!0x1,'timeout':0x3e8*this[_0x5ea7('0xc')][_0x5ea7('0xa')]['get'](_0x5ea7('0x36')),'requestTimeout':0x3e8*this[_0x5ea7('0xc')][_0x5ea7('0xa')][_0x5ea7('0x14')](_0x5ea7('0x5'))})[_0x5ea7('0x35')](_0xb19eef=>{if(this[_0x5ea7('0x1')]=_0xb19eef,this[_0x5ea7('0x34')](_0x5ea7('0x1d'))['to'](_0xb19eef,_0x5ea7('0x1d'),this,'_isBrowserOffline',(_0x1a874d,_0x1eb52a)=>(_0x5ea7('0x28')!==_0x1a874d&&(this[_0x5ea7('0x13')]=!0x0),_0x1eb52a||_0x5ea7('0x28')!==_0x1a874d?'disconnected':_0x5ea7('0x0')==this[_0x5ea7('0x1d')]&&this[_0x5ea7('0x13')]?(this['_shouldPluginsReconnect']=!0x1,this['_reconnect'](),_0x5ea7('0x2f')):'connected')),this[_0x5ea7('0x1')]['on']('error',(_0x10751d,_0x5b366f)=>{if(_0x5ea7('0x4')!==_0x5b366f[_0x5ea7('0x27')])throw console[_0x5ea7('0x29')](_0x5b366f),new _0x2777a4(_0x5ea7('0x1c'),null,{'originalError':_0x5b366f});_0x4c4427[_0x5ea7('0x2b')]('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':_0x5ea7('0x2d'),'namespace':'real-time-collaboration'});}),!_0xb19eef['me'])return new Promise(_0x4e5fd8=>_0xb19eef['on'](_0x5ea7('0x8'),_0x4e5fd8));})['catch'](_0x5723c6=>{throw console[_0x5ea7('0x29')](_0x5723c6),new _0x2777a4(_0x5ea7('0x1c'),null,{'originalError':_0x5723c6});});}[_0x5ea7('0x1a')](_0x46098f){if(_0x5ea7('0x10')!=typeof _0x46098f[_0x5ea7('0xd')])throw new _0x2777a4(_0x5ea7('0x2c'),this);if(this[_0x5ea7('0x12')](_0x46098f))throw new _0x2777a4('websocketgateway-plugin-already-registered',this,{'name':_0x46098f[_0x5ea7('0x2a')][_0x5ea7('0x18')]});this['_reconnectionStack']['add'](_0x46098f);}[_0x5ea7('0x23')](_0x3a8368){this['_reconnectionStack'][_0x5ea7('0x16')](_0x3a8368);}[_0x5ea7('0x12')](_0x327f72){return this[_0x5ea7('0xf')][_0x5ea7('0x22')](_0x327f72);}['_reconnect'](){return this[_0x5ea7('0x1')][_0x5ea7('0xd')]()[_0x5ea7('0x35')](()=>Promise[_0x5ea7('0x24')](Array[_0x5ea7('0xb')](this[_0x5ea7('0xf')],_0x2f751f=>_0x2f751f[_0x5ea7('0xd')]())))[_0x5ea7('0x35')](()=>this[_0x5ea7('0x1d')]='connected')[_0x5ea7('0x21')](_0x53f83c=>{throw console[_0x5ea7('0x29')](_0x53f83c),new _0x2777a4(_0x5ea7('0x15'),this[_0x5ea7('0xc')]);});}['destroy'](){this[_0x5ea7('0x1')]&&this[_0x5ea7('0x1')][_0x5ea7('0x32')](),this[_0x5ea7('0x1d')]=_0x5ea7('0x0'),this['_domEmitter'][_0x5ea7('0x33')](),super[_0x5ea7('0x19')]();}}c[_0x5ea7('0x2')]=_0x528f63,c[_0x5ea7('0x25')]=0x3e8;
23
+ const _0x2ad3=['set','cloudServices.connectionTimeout','isInReconnectionStack','disconnect','token','websocketgateway-missing-token','offline','_reconnect','bind','connection','then','connected','context','websocketgateway-invalid-plugin-interface','add','_shouldPluginsReconnect','_isBrowserOffline','initialReconnectionInterval','define','disconnected','limitExceeded','listenTo','has','_domEmitter','state','reconnect','init','webSocketUrl','pluginName','requires','get','catch','function','cloudservices-reconnection-error','removeFromReconnectionStack','WebSocketGateway','cloudservices-init','config','websocketgateway-missing-websocket-url','plugins','Connected\x20users\x20limit\x20exceeded','create','constructor','websocketgateway-plugin-already-registered','error','code','addToReconnectionStack','delete','all','connecting','_reconnectionStack','cloudServices.requestTimeout'];(function(_0x21eb16,_0x2ad3e1){const _0x28aa62=function(_0x2900da){while(--_0x2900da){_0x21eb16['push'](_0x21eb16['shift']());}};_0x28aa62(++_0x2ad3e1);}(_0x2ad3,0xf2));const _0x28aa=function(_0x21eb16,_0x2ad3e1){_0x21eb16=_0x21eb16-0x0;let _0x28aa62=_0x2ad3[_0x21eb16];return _0x28aa62;};import{ContextPlugin as _0x65168e}from'ckeditor5/src/core';import{DomEmitterMixin as _0x433803,CKEditorError as _0x4783c1}from'ckeditor5/src/utils';import _0x49c860 from'@ckeditor/ckeditor-cloud-services-collaboration/src/websocketgateway/websocketgateway';import{Notification as _0x2cdfa7}from'ckeditor5/src/ui';export default class c extends _0x65168e{static get[_0x28aa('0x2f')](){return['CloudServices',_0x2cdfa7];}static get[_0x28aa('0x2e')](){return _0x28aa('0x1');}[_0x28aa('0x2c')](){const _0x23214f=this['context'],_0x35fd2e=_0x23214f[_0x28aa('0x5')][_0x28aa('0x30')]('CloudServices'),_0x37560a=_0x23214f[_0x28aa('0x5')][_0x28aa('0x30')](_0x2cdfa7);if(!_0x35fd2e[_0x28aa('0x16')])throw new _0x4783c1(_0x28aa('0x17'),this);if(!_0x35fd2e[_0x28aa('0x2d')])throw new _0x4783c1(_0x28aa('0x4'),this);return this['set'](_0x28aa('0x2a'),_0x28aa('0xf')),this[_0x28aa('0x12')](_0x28aa('0x22'),!0x1),this[_0x28aa('0x10')]=new Set(),this[_0x28aa('0x21')]=!0x1,this['_domEmitter']=Object[_0x28aa('0x7')](_0x433803),this[_0x28aa('0x29')]['listenTo'](window,_0x28aa('0x18'),()=>this['_isBrowserOffline']=!0x0),this[_0x28aa('0x29')][_0x28aa('0x27')](window,'online',()=>this[_0x28aa('0x22')]=!0x1),this[_0x28aa('0x1e')]['config']['define'](_0x28aa('0x13'),0xa),this[_0x28aa('0x1e')][_0x28aa('0x3')][_0x28aa('0x24')](_0x28aa('0x11'),0x14),c[_0x28aa('0x1')]['connect'](_0x35fd2e[_0x28aa('0x16')],_0x35fd2e['webSocketUrl'],{'disconnectOnUnload':!0x1,'timeout':0x3e8*this[_0x28aa('0x1e')][_0x28aa('0x3')]['get'](_0x28aa('0x13')),'requestTimeout':0x3e8*this[_0x28aa('0x1e')][_0x28aa('0x3')]['get'](_0x28aa('0x11'))})[_0x28aa('0x1c')](_0x2853df=>{if(this['connection']=_0x2853df,this[_0x28aa('0x1a')](_0x28aa('0x2a'))['to'](_0x2853df,_0x28aa('0x2a'),this,_0x28aa('0x22'),(_0x4cabb2,_0xf2e317)=>(_0x28aa('0x1d')!==_0x4cabb2&&(this[_0x28aa('0x21')]=!0x0),_0xf2e317||_0x28aa('0x1d')!==_0x4cabb2?_0x28aa('0x25'):_0x28aa('0x25')==this[_0x28aa('0x2a')]&&this[_0x28aa('0x21')]?(this[_0x28aa('0x21')]=!0x1,this[_0x28aa('0x19')](),_0x28aa('0xf')):'connected')),this[_0x28aa('0x1b')]['on'](_0x28aa('0xa'),(_0x56e0f2,_0x23b3af)=>{if(_0x28aa('0x26')!==_0x23b3af[_0x28aa('0xb')])throw console[_0x28aa('0xa')](_0x23b3af),new _0x4783c1(_0x28aa('0x2'),null,{'originalError':_0x23b3af});_0x37560a['showWarning']('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':_0x28aa('0x6'),'namespace':'real-time-collaboration'});}),!_0x2853df['me'])return new Promise(_0x4e6f7e=>_0x2853df['on']('change:me',_0x4e6f7e));})[_0x28aa('0x31')](_0xdd6913=>{throw console[_0x28aa('0xa')](_0xdd6913),new _0x4783c1(_0x28aa('0x2'),null,{'originalError':_0xdd6913});});}[_0x28aa('0xc')](_0x2346e1){if(_0x28aa('0x32')!=typeof _0x2346e1[_0x28aa('0x2b')])throw new _0x4783c1(_0x28aa('0x1f'),this);if(this[_0x28aa('0x14')](_0x2346e1))throw new _0x4783c1(_0x28aa('0x9'),this,{'name':_0x2346e1[_0x28aa('0x8')][_0x28aa('0x2e')]});this[_0x28aa('0x10')][_0x28aa('0x20')](_0x2346e1);}[_0x28aa('0x0')](_0xb8423a){this['_reconnectionStack'][_0x28aa('0xd')](_0xb8423a);}['isInReconnectionStack'](_0x10feb4){return this['_reconnectionStack'][_0x28aa('0x28')](_0x10feb4);}[_0x28aa('0x19')](){return this[_0x28aa('0x1b')][_0x28aa('0x2b')]()[_0x28aa('0x1c')](()=>Promise[_0x28aa('0xe')](Array['from'](this[_0x28aa('0x10')],_0x1428df=>_0x1428df[_0x28aa('0x2b')]())))[_0x28aa('0x1c')](()=>this['state']=_0x28aa('0x1d'))['catch'](_0x54b8f3=>{throw console[_0x28aa('0xa')](_0x54b8f3),new _0x4783c1(_0x28aa('0x33'),this[_0x28aa('0x1e')]);});}['destroy'](){this[_0x28aa('0x1b')]&&this[_0x28aa('0x1b')][_0x28aa('0x15')](),this['state']=_0x28aa('0x25'),this[_0x28aa('0x29')]['stopListening'](),super['destroy']();}}c['WebSocketGateway']=_0x49c860,c[_0x28aa('0x23')]=0x3e8;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3621=['RealTimeCollaborativeEditing','requires'];(function(_0xd09269,_0x362190){var _0x5df886=function(_0x4ffd4e){while(--_0x4ffd4e){_0xd09269['push'](_0xd09269['shift']());}};_0x5df886(++_0x362190);}(_0x3621,0x9a));var _0x5df8=function(_0xd09269,_0x362190){_0xd09269=_0xd09269-0x0;var _0x5df886=_0x3621[_0xd09269];return _0x5df886;};import{Plugin as _0x552395}from'ckeditor5/src/core';import _0x47f3e8 from'./realtimecollaborativeediting/realtimecollaborationclient';export default class n extends _0x552395{static get[_0x5df8('0x1')](){return[_0x47f3e8];}static get['pluginName'](){return _0x5df8('0x0');}}
23
+ var _0x5042=['requires','RealTimeCollaborativeEditing','pluginName'];(function(_0x465c80,_0x5042f6){var _0x39a82d=function(_0x319c0e){while(--_0x319c0e){_0x465c80['push'](_0x465c80['shift']());}};_0x39a82d(++_0x5042f6);}(_0x5042,0x18b));var _0x39a8=function(_0x465c80,_0x5042f6){_0x465c80=_0x465c80-0x0;var _0x39a82d=_0x5042[_0x465c80];return _0x39a82d;};import{Plugin as _0x3e1c58}from'ckeditor5/src/core';import _0x4b3e49 from'./realtimecollaborativeediting/realtimecollaborationclient';export default class n extends _0x3e1c58{static get[_0x39a8('0x1')](){return[_0x4b3e49];}static get[_0x39a8('0x0')](){return _0x39a8('0x2');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e9d=['listenTo','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','fromVersion','_revisions','getUser','marker','getMany','isBundleUploaded','serverHistory','code','revisionsUpdated','_createCurrentRevision','baseVersion','_lastRequestId','_bufferedUpdates','Users','adapter','length','getOperations','_revisionHistoryService','_fixRevision','has','isConnected','_getLatestVersion','toVersion','plugins','diffData','change:_isPendingUpdate','message','get','authorsIds','setRevisionData','wrongRequestId','updateRevisions','_bufferUpdate','connected','RevisionHistoryService','state','currentRevision','_startingVersion','buildRevisionData','_preventResendingRevisionData','from','size','creatorId','_isPendingUpdate','config','then','getRevision','catch','_revisionTracker','_update','cloud-services-internal-error:\x20Not\x20connected.','_handleReconnectionError','addRevisionData','_waitForServiceReady','getRevisions','setSource','map','connect','authors','type','editor','max','_oldOffset','isEmptyCurrent','_isConnected','connection','_handleRevisionsUpdate','off','collaboration.channelId','addToReconnectionStack','init','RevisionTracker','_revisionDataBuilder','data','affectsData','repository','isEnabled','reconnect','destroy','_domEmitter','sessionId','bind','_fetchMissingUsers','startsWith','_getLatestVersionFromServerOperations','reverse'];(function(_0x2d0f13,_0x4e9d4d){const _0xe95827=function(_0x3b2118){while(--_0x3b2118){_0x2d0f13['push'](_0x2d0f13['shift']());}};_0xe95827(++_0x4e9d4d);}(_0x4e9d,0x121));const _0xe958=function(_0x2d0f13,_0x4e9d4d){_0x2d0f13=_0x2d0f13-0x0;let _0xe95827=_0x4e9d[_0x2d0f13];return _0xe95827;};import{Plugin as _0x269e01}from'ckeditor5/src/core';import{version as _0x8595a}from'ckeditor5/src/utils';import{Users as _0x40a40f}from'ckeditor5-collaboration/src/collaboration-core';import _0x2a3f8e from'../realtimecollaborativeediting/realtimecollaborationclient';import _0x247582 from'../realtimecollaborativeediting/websocketgateway';import _0x548779 from'../realtimecollaborativeediting/sessions';import _0x522e9b from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import _0x35efe8 from'@ckeditor/ckeditor-cloud-services-collaboration/src/revision-history/revisionhistoryservice';import _0x3aa5cf from'@ckeditor/ckeditor-cloud-services-collaboration/src/editor/editorservice';export default class v extends _0x269e01{static get['requires'](){return[_0x247582,_0x2a3f8e,'RevisionTracker',_0x548779,_0x40a40f];}async[_0xe958('0x2f')](){this[_0xe958('0x4c')]=null,this[_0xe958('0x19')]=this[_0xe958('0x25')][_0xe958('0x0')][_0xe958('0x4')](_0xe958('0x30'));const _0x50e8c0=this[_0xe958('0x25')][_0xe958('0x0')][_0xe958('0x4')](_0x2a3f8e),_0x34d63a=_0x50e8c0['serverHistory'],_0x3721c4=this['editor'][_0xe958('0x0')][_0xe958('0x4')](_0x247582),_0x1d0d19=this['editor'][_0xe958('0x15')][_0xe958('0x4')](_0xe958('0x2d'));this[_0xe958('0x52')]=new v[(_0xe958('0xb'))](_0x1d0d19),this[_0xe958('0x19')][_0xe958('0x20')]({'history':_0x34d63a,'getLatestVersion':()=>this[_0xe958('0x56')](),'getCurrentRevisionId':()=>_0x50e8c0[_0xe958('0x39')]});const _0x381f05=this[_0xe958('0x25')][_0xe958('0x15')][_0xe958('0x4')]('cloudServices.bundleVersion')||_0x8595a,_0x3bf279=await _0x3aa5cf[_0xe958('0x46')](_0x3721c4['connection'],_0x381f05);this['_revisionTracker'][_0xe958('0x4f')]={'getRevision':async({revisionId:_0x147031})=>(await this['_waitForServiceReady'](),await this[_0xe958('0x52')][_0xe958('0x17')](_0x147031)),'updateRevisions':async _0x2ab5a1=>{await this[_0xe958('0x1e')]();const _0x1976c4=this[_0xe958('0x19')][_0xe958('0xd')];if(!_0x3bf279||0x1!==_0x2ab5a1[_0xe958('0x50')]||_0x2ab5a1[0x0]['id']!==_0x1976c4['id']){for(const _0x22f719 of _0x2ab5a1)_0x22f719['id']===_0x1976c4['id']&&(_0x22f719[_0xe958('0x28')]=_0x22f719[_0xe958('0x41')]===_0x22f719['toVersion']);return this[_0xe958('0x52')][_0xe958('0x8')](_0x2ab5a1,this['_lastRequestId'])[_0xe958('0x16')](_0x1b5aac=>{this[_0xe958('0x4c')]=_0x1b5aac;})[_0xe958('0x18')](_0x1149bb=>{if(!(it(_0x1149bb)||'400'===_0x1149bb[_0xe958('0x48')]&&void 0x0!==_0x1149bb[_0xe958('0x32')][_0xe958('0x7')]))throw _0x1149bb;for(const _0x4de6b9 of _0x2ab5a1){!this['_revisionTracker'][_0xe958('0x34')][_0xe958('0x17')](_0x4de6b9['id'])||this[_0xe958('0x19')][_0xe958('0x9')](_0x4de6b9['id'],_0x4de6b9,!0x1);}if(it(_0x1149bb))throw _0x1149bb;});}}},this[_0xe958('0x3f')](this[_0xe958('0x52')],_0xe958('0x49'),(_0x3d6b8b,{revisionsData:_0x2f6c9b,requestId:_0x154028})=>{Math[_0xe958('0x26')](..._0x2f6c9b[_0xe958('0x21')](_0x555598=>_0x555598['toVersion']))>this['_getLatestVersionFromServerOperations']()-0x1?this['_getLatestVersion']()[_0xe958('0x16')](()=>{this[_0xe958('0x2b')](_0x2f6c9b,_0x154028);}):this[_0xe958('0x2b')](_0x2f6c9b,_0x154028);});const {revisions:_0x2fb542,requestId:_0x246850}=await this[_0xe958('0x52')][_0xe958('0x22')](_0x3721c4[_0xe958('0x2a')]);_0x3721c4[_0xe958('0x2e')](this),this[_0xe958('0x4c')]=_0x246850,await this[_0xe958('0x3b')](_0x2fb542);for(const _0x3ca224 of _0x2fb542)this[_0xe958('0x19')]['addRevisionData'](_0x3ca224);this['listenTo'](_0x50e8c0,'change:_isConnected',(_0x35aed2,_0x413570,_0x4efbca)=>{_0x4efbca&&(this[_0xe958('0x27')]=_0x50e8c0['_offset'],_0x35aed2[_0xe958('0x2c')]());}),this[_0xe958('0x19')][_0xe958('0x3a')](_0xe958('0x35'))['to'](_0x3721c4,_0xe958('0xc'),_0x197e61=>_0xe958('0xa')===_0x197e61);}async[_0xe958('0x36')](){const _0x4751b6=this[_0xe958('0x25')][_0xe958('0x0')][_0xe958('0x4')](_0x247582),_0x2ccb96=this[_0xe958('0x25')][_0xe958('0x0')]['get'](_0x2a3f8e),_0x4ed30c=async()=>{const _0x32db5a=this['_revisionTracker'][_0xe958('0xd')],_0xd51c55=_0x32db5a['id'],_0x5b0919=_0xd51c55!==_0x2ccb96['sessionId'];if(_0x5b0919){const _0x2f34f1=_0x2ccb96['_offset']-this[_0xe958('0x27')],_0x35f9c9=this['_getLatestVersionFromServerOperations']();this['_revisionTracker'][_0xe958('0x31')]['reInit']();if(_0x32db5a[_0xe958('0x57')]+_0x2f34f1!==_0x35f9c9){const _0x1fc6c8=_0x32db5a[_0xe958('0x41')]+_0x2f34f1,_0xeb9dc6=this[_0xe958('0x25')][_0xe958('0x0')]['get'](_0xe958('0x4e')),_0x2f0670=this['_revisionTracker'][_0xe958('0xf')]({'currentRevision':_0x32db5a,'from':_0x1fc6c8,'to':_0x35f9c9});_0x2f0670['id']=_0x32db5a['id'];const _0x7d8141=_0x2f0670[_0xe958('0x5')][_0xe958('0x21')](_0x155fc1=>_0xeb9dc6['getUser'](_0x155fc1));_0x32db5a[_0xe958('0x1a')]({..._0x2f0670,'authors':_0x7d8141},!0x0),this[_0xe958('0x19')][_0xe958('0x9')](_0x32db5a['id'],_0x2f0670,!0x0);}this[_0xe958('0x19')][_0xe958('0xe')]=_0x35f9c9,(_0x32db5a[_0xe958('0x57')]===_0x32db5a[_0xe958('0x41')]&&!this[_0xe958('0x19')][_0xe958('0x4d')][_0xe958('0x54')](_0xd51c55)&&this[_0xe958('0x19')][_0xe958('0x34')][_0xe958('0x42')]['remove'](_0xd51c55),this['_revisionTracker'][_0xe958('0x4a')](_0x35f9c9));}const {revisions:_0x160871,requestId:_0x372622}=await this[_0xe958('0x52')][_0xe958('0x36')](_0x4751b6[_0xe958('0x2a')],this[_0xe958('0x4c')]);_0x5b0919&&_0x160871[_0xe958('0x50')]>0x0?_0x2ccb96[_0xe958('0x1c')]():(await this[_0xe958('0x3b')](_0x160871),this[_0xe958('0x2b')](_0x160871,_0x372622),this[_0xe958('0x19')]['sendBufferedUpdates']());};return _0x2ccb96[_0xe958('0x29')]?_0x4ed30c():new Promise((_0x515f11,_0x20c030)=>{_0x2ccb96['once']('change:_isConnected',()=>{_0x4ed30c()['then'](_0x515f11)['catch'](_0x20c030);});});}[_0xe958('0x37')](){this[_0xe958('0x38')]&&this[_0xe958('0x38')]['stopListening'](),super[_0xe958('0x37')]();}async[_0xe958('0x1e')](){this[_0xe958('0x52')][_0xe958('0x55')]||await new Promise(_0x5e309f=>{this[_0xe958('0x3f')](this[_0xe958('0x52')],'connected',_0x54e24c=>{_0x54e24c['off'](),_0x5e309f();});});}[_0xe958('0x3d')](){const _0x2cdaad=this[_0xe958('0x25')][_0xe958('0x0')][_0xe958('0x4')](_0x2a3f8e)[_0xe958('0x47')];for(const _0xa5be93 of _0x2cdaad[_0xe958('0x51')]()[_0xe958('0x3e')]())if(_0xe958('0x44')!==_0xa5be93[_0xe958('0x24')]||_0xa5be93[_0xe958('0x33')])return _0xa5be93[_0xe958('0x4b')]+0x1;}['_getLatestVersion'](){const _0x1c78cb=this['editor'][_0xe958('0x0')]['get'](_0x2a3f8e);return new Promise(_0x29ac64=>{_0x1c78cb[_0xe958('0x14')]?_0x1c78cb['once'](_0xe958('0x2'),()=>{_0x29ac64(this[_0xe958('0x3d')]());}):_0x29ac64(this[_0xe958('0x3d')]());});}[_0xe958('0x2b')](_0x1ca93f,_0x23e6c0){const _0x2b1bf4=this[_0xe958('0x19')]['repository'];this[_0xe958('0x4c')]=_0x23e6c0;for(const _0x424726 of _0x1ca93f){const _0x55809c=_0x2b1bf4['getRevision'](_0x424726['id']);if(_0x55809c){if((_0x424726[_0xe958('0x41')]||_0x424726[_0xe958('0x57')])&&(_0x424726[_0xe958('0x1')]=null),_0x55809c===this['_revisionTracker']['currentRevision']){const _0x253ed3=Math[_0xe958('0x26')](_0x55809c['toVersion'],_0x424726['toVersion']),_0x6f9cc7=Math['max'](_0x55809c[_0xe958('0x41')],_0x424726['fromVersion']);let _0x515dba;_0x55809c[_0xe958('0x57')]===_0x424726[_0xe958('0x57')]&&_0x55809c['fromVersion']===_0x424726[_0xe958('0x41')]?(_0x515dba=!0x0,this[_0xe958('0x10')](_0x424726)):_0x424726[_0xe958('0x57')]===_0x253ed3&&_0x424726[_0xe958('0x41')]===_0x6f9cc7?_0x515dba=!0x1:(_0x55809c[_0xe958('0x57')]===_0x253ed3&&_0x55809c['fromVersion']===_0x6f9cc7||this[_0xe958('0x53')]({'revision':_0x55809c,'from':_0x6f9cc7,'to':_0x253ed3}),_0x515dba=!0x0),_0x515dba&&(delete _0x424726[_0xe958('0x41')],delete _0x424726[_0xe958('0x57')],delete _0x424726[_0xe958('0x1')],delete _0x424726['createdAt'],delete _0x424726[_0xe958('0x5')]);}this[_0xe958('0x19')][_0xe958('0x6')](_0x424726),this[_0xe958('0x10')](_0x424726);}else this[_0xe958('0x19')][_0xe958('0x1d')](_0x424726);}const _0x334e7b=_0x2b1bf4[_0xe958('0x1f')]();_0x334e7b[_0xe958('0x3e')]();for(let _0x372ad3=0x0;_0x372ad3<_0x334e7b[_0xe958('0x50')]-0x1;_0x372ad3++){const _0x2cbe35=_0x334e7b[_0x372ad3],_0x15526b=_0x334e7b[_0x372ad3+0x1];if(_0x2cbe35[_0xe958('0x41')]<_0x15526b[_0xe958('0x57')]){const _0x4a768c=_0x15526b[_0xe958('0x57')],_0x41a321=Math[_0xe958('0x26')](_0x4a768c,_0x2cbe35['toVersion']);this[_0xe958('0x53')]({'revision':_0x2cbe35,'from':_0x4a768c,'to':_0x41a321});}}}[_0xe958('0x53')]({revision:_0x31aae6,from:_0x5a7c01,to:_0x42a9bf}={}){const _0x4d6358=this['editor'][_0xe958('0x0')][_0xe958('0x4')](_0xe958('0x4e')),_0x1dc5db=this['_revisionTracker'][_0xe958('0xf')]({'revision':_0x31aae6,'from':_0x5a7c01,'to':_0x42a9bf});_0x1dc5db[_0xe958('0x23')]=_0x1dc5db['authorsIds']['map'](_0x59c442=>_0x4d6358[_0xe958('0x43')](_0x59c442)),_0x31aae6[_0xe958('0x1a')](_0x1dc5db);}['_preventResendingRevisionData'](_0xf6d9d5){const _0x5ec896={};_0x5ec896['id']=_0xf6d9d5['id'];for(const _0x11fe43 of Object['keys'](_0xf6d9d5))'id'!==_0x11fe43&&(_0x5ec896[_0x11fe43]=void 0x0);this[_0xe958('0x19')][_0xe958('0x9')](_0x5ec896['id'],_0x5ec896,!0x0);}async[_0xe958('0x3b')](_0x2e8f90){const _0x37bec4=this[_0xe958('0x25')][_0xe958('0x0')][_0xe958('0x4')](_0x40a40f),{connection:_0x17a509}=this['editor']['plugins'][_0xe958('0x4')](_0x247582),_0xf29c5b=new Set();for(const _0x27552f of _0x2e8f90){for(const _0xf3eb5a of _0x27552f[_0xe958('0x5')])_0x4176f2(_0xf3eb5a);_0x27552f[_0xe958('0x13')]&&_0x4176f2(_0x27552f[_0xe958('0x13')]);}if(0x0===_0xf29c5b[_0xe958('0x12')])return;const _0x384581=await _0x522e9b[_0xe958('0x45')](_0x17a509,Array[_0xe958('0x11')](_0xf29c5b));for(const _0x3d26b8 of _0x384581)_0x37bec4[_0xe958('0x43')](_0x3d26b8['id'])||_0x37bec4['addUser'](_0x3d26b8);function _0x4176f2(_0x27f7d4){_0x37bec4['getUser'](_0x27f7d4)||_0xf29c5b['add'](_0x27f7d4);}}}function it(_0x5a3d00){return _0x5a3d00['message'][_0xe958('0x3c')](_0xe958('0x40'))||_0x5a3d00[_0xe958('0x3')][_0xe958('0x3c')](_0xe958('0x1b'))||_0x5a3d00[_0xe958('0x3')][_0xe958('0x3c')]('cloud-services-internal-error:\x20Request\x20timeout.');}v[_0xe958('0xb')]=_0x35efe8;
23
+ const _0x44bc=['keys','listenTo','destroy','remove','isEmptyCurrent','_domEmitter','config','connected','_offset','diffData','getRevision','updateRevisions','_lastRequestId','bind','has','stopListening','currentRevision','addRevisionData','message','affectsData','startsWith','off','isBundleUploaded','catch','revisionsUpdated','plugins','once','add','getOperations','cloud-services-internal-error:\x20Not\x20connected.','_fixRevision','data','authorsIds','_revisions','_createCurrentRevision','collaboration.channelId','reInit','buildRevisionData','_startingVersion','creatorId','connect','toVersion','_revisionTracker','get','reverse','requires','_waitForServiceReady','map','then','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','_handleRevisionsUpdate','_bufferedUpdates','change:_isConnected','addToReconnectionStack','cloudServices.bundleVersion','length','state','_isPendingUpdate','createdAt','init','serverHistory','_revisionHistoryService','addUser','RevisionTracker','_getLatestVersionFromServerOperations','baseVersion','code','_getLatestVersion','isEnabled','_preventResendingRevisionData','400','sessionId','_revisionDataBuilder','editor','RevisionHistoryService','max','repository','_fetchMissingUsers','connection','wrongRequestId','_update','fromVersion','_oldOffset','change:_isPendingUpdate','getUser','_bufferUpdate','marker'];(function(_0x231731,_0x44bc3f){const _0x38ad9a=function(_0x41a2c4){while(--_0x41a2c4){_0x231731['push'](_0x231731['shift']());}};_0x38ad9a(++_0x44bc3f);}(_0x44bc,0xf7));const _0x38ad=function(_0x231731,_0x44bc3f){_0x231731=_0x231731-0x0;let _0x38ad9a=_0x44bc[_0x231731];return _0x38ad9a;};import{Plugin as _0x46620d}from'ckeditor5/src/core';import{version as _0x1f1039}from'ckeditor5/src/utils';import{Users as _0x49804c}from'ckeditor5-collaboration/src/collaboration-core';import _0x3a28c0 from'../realtimecollaborativeediting/realtimecollaborationclient';import _0x22a828 from'../realtimecollaborativeediting/websocketgateway';import _0x394575 from'../realtimecollaborativeediting/sessions';import _0x2b04d8 from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import _0xe897ed from'@ckeditor/ckeditor-cloud-services-collaboration/src/revision-history/revisionhistoryservice';import _0x560aa9 from'@ckeditor/ckeditor-cloud-services-collaboration/src/editor/editorservice';export default class v extends _0x46620d{static get[_0x38ad('0x3b')](){return[_0x22a828,_0x3a28c0,_0x38ad('0x4d'),_0x394575,_0x49804c];}async[_0x38ad('0x49')](){this[_0x38ad('0x1a')]=null,this[_0x38ad('0x38')]=this[_0x38ad('0x0')]['plugins'][_0x38ad('0x39')]('RevisionTracker');const _0x33b76d=this[_0x38ad('0x0')]['plugins']['get'](_0x3a28c0),_0x3296d8=_0x33b76d[_0x38ad('0x4a')],_0x5ca9e8=this[_0x38ad('0x0')][_0x38ad('0x27')][_0x38ad('0x39')](_0x22a828),_0x13ac68=this['editor'][_0x38ad('0x14')][_0x38ad('0x39')](_0x38ad('0x31'));this['_revisionHistoryService']=new v[(_0x38ad('0x1'))](_0x13ac68),this[_0x38ad('0x38')]['setSource']({'history':_0x3296d8,'getLatestVersion':()=>this['_getLatestVersion'](),'getCurrentRevisionId':()=>_0x33b76d[_0x38ad('0x55')]});const _0x2010fc=this[_0x38ad('0x0')][_0x38ad('0x14')][_0x38ad('0x39')](_0x38ad('0x44'))||_0x1f1039,_0x5731a3=await _0x560aa9[_0x38ad('0x24')](_0x5ca9e8[_0x38ad('0x5')],_0x2010fc);this[_0x38ad('0x38')]['adapter']={'getRevision':async({revisionId:_0x3d4cc4})=>(await this['_waitForServiceReady'](),await this[_0x38ad('0x4b')]['getRevision'](_0x3d4cc4)),'updateRevisions':async _0x144902=>{await this['_waitForServiceReady']();const _0x1d3713=this[_0x38ad('0x38')][_0x38ad('0x1e')];if(!_0x5731a3||0x1!==_0x144902[_0x38ad('0x45')]||_0x144902[0x0]['id']!==_0x1d3713['id']){for(const _0x4a9342 of _0x144902)_0x4a9342['id']===_0x1d3713['id']&&(_0x4a9342[_0x38ad('0x12')]=_0x4a9342['fromVersion']===_0x4a9342[_0x38ad('0x37')]);return this['_revisionHistoryService'][_0x38ad('0x19')](_0x144902,this[_0x38ad('0x1a')])[_0x38ad('0x3e')](_0x4deaab=>{this['_lastRequestId']=_0x4deaab;})[_0x38ad('0x25')](_0x5acc89=>{if(!(P(_0x5acc89)||_0x38ad('0x54')===_0x5acc89[_0x38ad('0x50')]&&void 0x0!==_0x5acc89[_0x38ad('0x2d')][_0x38ad('0x6')]))throw _0x5acc89;for(const _0x29a165 of _0x144902){!this[_0x38ad('0x38')]['repository'][_0x38ad('0x18')](_0x29a165['id'])||this[_0x38ad('0x38')]['_bufferUpdate'](_0x29a165['id'],_0x29a165,!0x1);}if(P(_0x5acc89))throw _0x5acc89;});}}},this[_0x38ad('0xf')](this[_0x38ad('0x4b')],_0x38ad('0x26'),(_0x3b83df,{revisionsData:_0xa36e42,requestId:_0x3ff757})=>{Math[_0x38ad('0x2')](..._0xa36e42[_0x38ad('0x3d')](_0x1f4fce=>_0x1f4fce[_0x38ad('0x37')]))>this['_getLatestVersionFromServerOperations']()-0x1?this['_getLatestVersion']()['then'](()=>{this[_0x38ad('0x40')](_0xa36e42,_0x3ff757);}):this[_0x38ad('0x40')](_0xa36e42,_0x3ff757);});const {revisions:_0x3b29d1,requestId:_0x47ba05}=await this[_0x38ad('0x4b')][_0x38ad('0x36')](_0x5ca9e8[_0x38ad('0x5')]);_0x5ca9e8[_0x38ad('0x43')](this),this[_0x38ad('0x1a')]=_0x47ba05,await this['_fetchMissingUsers'](_0x3b29d1);for(const _0x462dc9 of _0x3b29d1)this[_0x38ad('0x38')][_0x38ad('0x1f')](_0x462dc9);this[_0x38ad('0xf')](_0x33b76d,'change:_isConnected',(_0x18b993,_0x4fbf11,_0x14a843)=>{_0x14a843&&(this['_oldOffset']=_0x33b76d[_0x38ad('0x16')],_0x18b993[_0x38ad('0x23')]());}),this[_0x38ad('0x38')][_0x38ad('0x1b')](_0x38ad('0x52'))['to'](_0x5ca9e8,_0x38ad('0x46'),_0x4d7612=>_0x38ad('0x15')===_0x4d7612);}async['reconnect'](){const _0x168319=this['editor'][_0x38ad('0x27')][_0x38ad('0x39')](_0x22a828),_0x5725f7=this['editor'][_0x38ad('0x27')][_0x38ad('0x39')](_0x3a28c0),_0x38a855=async()=>{const _0x13e5e2=this[_0x38ad('0x38')][_0x38ad('0x1e')],_0x384e15=_0x13e5e2['id'],_0x57a400=_0x384e15!==_0x5725f7[_0x38ad('0x55')];if(_0x57a400){const _0x46625e=_0x5725f7[_0x38ad('0x16')]-this[_0x38ad('0x9')],_0x26a6db=this[_0x38ad('0x4e')]();this[_0x38ad('0x38')][_0x38ad('0x56')][_0x38ad('0x32')]();if(_0x13e5e2[_0x38ad('0x37')]+_0x46625e!==_0x26a6db){const _0x5af870=_0x13e5e2[_0x38ad('0x8')]+_0x46625e,_0x3cece6=this['editor'][_0x38ad('0x27')][_0x38ad('0x39')]('Users'),_0x8eec53=this['_revisionTracker']['buildRevisionData']({'currentRevision':_0x13e5e2,'from':_0x5af870,'to':_0x26a6db});_0x8eec53['id']=_0x13e5e2['id'];const _0x4aea0c=_0x8eec53[_0x38ad('0x2e')]['map'](_0x17ff63=>_0x3cece6[_0x38ad('0xb')](_0x17ff63));_0x13e5e2[_0x38ad('0x7')]({..._0x8eec53,'authors':_0x4aea0c},!0x0),this[_0x38ad('0x38')][_0x38ad('0xc')](_0x13e5e2['id'],_0x8eec53,!0x0);}this[_0x38ad('0x38')][_0x38ad('0x34')]=_0x26a6db,(_0x13e5e2['toVersion']===_0x13e5e2[_0x38ad('0x8')]&&!this[_0x38ad('0x38')][_0x38ad('0x41')][_0x38ad('0x1c')](_0x384e15)&&this[_0x38ad('0x38')][_0x38ad('0x3')][_0x38ad('0x2f')][_0x38ad('0x11')](_0x384e15),this[_0x38ad('0x38')][_0x38ad('0x30')](_0x26a6db));}const {revisions:_0x55ec6f,requestId:_0x4bc7a8}=await this[_0x38ad('0x4b')]['reconnect'](_0x168319[_0x38ad('0x5')],this[_0x38ad('0x1a')]);_0x57a400&&_0x55ec6f[_0x38ad('0x45')]>0x0?_0x5725f7['_handleReconnectionError']():(await this[_0x38ad('0x4')](_0x55ec6f),this['_handleRevisionsUpdate'](_0x55ec6f,_0x4bc7a8),this[_0x38ad('0x38')]['sendBufferedUpdates']());};return _0x5725f7['_isConnected']?_0x38a855():new Promise((_0x1eb679,_0x3b7aaf)=>{_0x5725f7[_0x38ad('0x28')](_0x38ad('0x42'),()=>{_0x38a855()[_0x38ad('0x3e')](_0x1eb679)[_0x38ad('0x25')](_0x3b7aaf);});});}['destroy'](){this['_domEmitter']&&this[_0x38ad('0x13')][_0x38ad('0x1d')](),super[_0x38ad('0x10')]();}async[_0x38ad('0x3c')](){this[_0x38ad('0x4b')]['isConnected']||await new Promise(_0x1af932=>{this[_0x38ad('0xf')](this[_0x38ad('0x4b')],_0x38ad('0x15'),_0x1d7ec1=>{_0x1d7ec1[_0x38ad('0x23')](),_0x1af932();});});}[_0x38ad('0x4e')](){const _0x5c3105=this[_0x38ad('0x0')][_0x38ad('0x27')]['get'](_0x3a28c0)[_0x38ad('0x4a')];for(const _0x3dbd50 of _0x5c3105[_0x38ad('0x2a')]()[_0x38ad('0x3a')]())if(_0x38ad('0xd')!==_0x3dbd50['type']||_0x3dbd50[_0x38ad('0x21')])return _0x3dbd50[_0x38ad('0x4f')]+0x1;}[_0x38ad('0x51')](){const _0x2a8732=this['editor'][_0x38ad('0x27')][_0x38ad('0x39')](_0x3a28c0);return new Promise(_0x3850a8=>{_0x2a8732[_0x38ad('0x47')]?_0x2a8732['once'](_0x38ad('0xa'),()=>{_0x3850a8(this['_getLatestVersionFromServerOperations']());}):_0x3850a8(this['_getLatestVersionFromServerOperations']());});}[_0x38ad('0x40')](_0x18fcbe,_0x355cfb){const _0x5d8136=this[_0x38ad('0x38')][_0x38ad('0x3')];this[_0x38ad('0x1a')]=_0x355cfb;for(const _0x5051d4 of _0x18fcbe){const _0x2dad77=_0x5d8136[_0x38ad('0x18')](_0x5051d4['id']);if(_0x2dad77){if((_0x5051d4[_0x38ad('0x8')]||_0x5051d4[_0x38ad('0x37')])&&(_0x5051d4[_0x38ad('0x17')]=null),_0x2dad77===this[_0x38ad('0x38')][_0x38ad('0x1e')]){const _0x12caa3=Math[_0x38ad('0x2')](_0x2dad77['toVersion'],_0x5051d4['toVersion']),_0x43a564=Math[_0x38ad('0x2')](_0x2dad77[_0x38ad('0x8')],_0x5051d4['fromVersion']);let _0x4520ad;_0x2dad77['toVersion']===_0x5051d4['toVersion']&&_0x2dad77[_0x38ad('0x8')]===_0x5051d4['fromVersion']?(_0x4520ad=!0x0,this['_preventResendingRevisionData'](_0x5051d4)):_0x5051d4[_0x38ad('0x37')]===_0x12caa3&&_0x5051d4[_0x38ad('0x8')]===_0x43a564?_0x4520ad=!0x1:(_0x2dad77[_0x38ad('0x37')]===_0x12caa3&&_0x2dad77[_0x38ad('0x8')]===_0x43a564||this[_0x38ad('0x2c')]({'revision':_0x2dad77,'from':_0x43a564,'to':_0x12caa3}),_0x4520ad=!0x0),_0x4520ad&&(delete _0x5051d4[_0x38ad('0x8')],delete _0x5051d4['toVersion'],delete _0x5051d4[_0x38ad('0x17')],delete _0x5051d4[_0x38ad('0x48')],delete _0x5051d4[_0x38ad('0x2e')]);}this[_0x38ad('0x38')]['setRevisionData'](_0x5051d4),this[_0x38ad('0x53')](_0x5051d4);}else this['_revisionTracker'][_0x38ad('0x1f')](_0x5051d4);}const _0x19fdb0=_0x5d8136['getRevisions']();_0x19fdb0[_0x38ad('0x3a')]();for(let _0x4e1d4a=0x0;_0x4e1d4a<_0x19fdb0[_0x38ad('0x45')]-0x1;_0x4e1d4a++){const _0x1ffb60=_0x19fdb0[_0x4e1d4a],_0x5d6c52=_0x19fdb0[_0x4e1d4a+0x1];if(_0x1ffb60[_0x38ad('0x8')]<_0x5d6c52[_0x38ad('0x37')]){const _0x5f0d9a=_0x5d6c52['toVersion'],_0x4b18b7=Math[_0x38ad('0x2')](_0x5f0d9a,_0x1ffb60[_0x38ad('0x37')]);this[_0x38ad('0x2c')]({'revision':_0x1ffb60,'from':_0x5f0d9a,'to':_0x4b18b7});}}}['_fixRevision']({revision:_0xecd194,from:_0x1aa6af,to:_0x4670b5}={}){const _0x1a3e7f=this[_0x38ad('0x0')]['plugins'][_0x38ad('0x39')]('Users'),_0x3c3bf5=this[_0x38ad('0x38')][_0x38ad('0x33')]({'revision':_0xecd194,'from':_0x1aa6af,'to':_0x4670b5});_0x3c3bf5['authors']=_0x3c3bf5[_0x38ad('0x2e')][_0x38ad('0x3d')](_0x150748=>_0x1a3e7f[_0x38ad('0xb')](_0x150748)),_0xecd194[_0x38ad('0x7')](_0x3c3bf5);}[_0x38ad('0x53')](_0x5b167b){const _0x39eb0c={};_0x39eb0c['id']=_0x5b167b['id'];for(const _0x456c41 of Object[_0x38ad('0xe')](_0x5b167b))'id'!==_0x456c41&&(_0x39eb0c[_0x456c41]=void 0x0);this[_0x38ad('0x38')][_0x38ad('0xc')](_0x39eb0c['id'],_0x39eb0c,!0x0);}async[_0x38ad('0x4')](_0x378e61){const _0x5af59e=this[_0x38ad('0x0')][_0x38ad('0x27')][_0x38ad('0x39')](_0x49804c),{connection:_0x3d300b}=this[_0x38ad('0x0')][_0x38ad('0x27')]['get'](_0x22a828),_0x3d11d6=new Set();for(const _0x3cae23 of _0x378e61){for(const _0x57a15f of _0x3cae23[_0x38ad('0x2e')])_0x3dbc97(_0x57a15f);_0x3cae23[_0x38ad('0x35')]&&_0x3dbc97(_0x3cae23['creatorId']);}if(0x0===_0x3d11d6['size'])return;const _0x18f7e5=await _0x2b04d8['getMany'](_0x3d300b,Array['from'](_0x3d11d6));for(const _0x1b952f of _0x18f7e5)_0x5af59e[_0x38ad('0xb')](_0x1b952f['id'])||_0x5af59e[_0x38ad('0x4c')](_0x1b952f);function _0x3dbc97(_0x293f16){_0x5af59e['getUser'](_0x293f16)||_0x3d11d6[_0x38ad('0x29')](_0x293f16);}}}function P(_0x504e46){return _0x504e46[_0x38ad('0x20')][_0x38ad('0x22')](_0x38ad('0x3f'))||_0x504e46[_0x38ad('0x20')]['startsWith'](_0x38ad('0x2b'))||_0x504e46[_0x38ad('0x20')][_0x38ad('0x22')]('cloud-services-internal-error:\x20Request\x20timeout.');}v[_0x38ad('0x1')]=_0xe897ed;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x534d=['requires','RevisionHistory','RealTimeCollaborativeRevisionHistory'];(function(_0x959e46,_0x534d4d){var _0x4fe8d0=function(_0x515656){while(--_0x515656){_0x959e46['push'](_0x959e46['shift']());}};_0x4fe8d0(++_0x534d4d);}(_0x534d,0x8b));var _0x4fe8=function(_0x959e46,_0x534d4d){_0x959e46=_0x959e46-0x0;var _0x4fe8d0=_0x534d[_0x959e46];return _0x4fe8d0;};import{Plugin as _0x299d06}from'ckeditor5/src/core';import _0x1e7d4f from'./realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter';import _0x4d00a6 from'./realtimecollaborativeediting';export default class d extends _0x299d06{static get[_0x4fe8('0x2')](){return[_0x4fe8('0x0'),_0x1e7d4f,_0x4d00a6];}static get['pluginName'](){return _0x4fe8('0x1');}}
23
+ var _0x279b=['RealTimeCollaborativeRevisionHistory','requires','pluginName'];(function(_0xad1715,_0x279bd8){var _0xde868b=function(_0x15c0c9){while(--_0x15c0c9){_0xad1715['push'](_0xad1715['shift']());}};_0xde868b(++_0x279bd8);}(_0x279b,0x91));var _0xde86=function(_0xad1715,_0x279bd8){_0xad1715=_0xad1715-0x0;var _0xde868b=_0x279b[_0xad1715];return _0xde868b;};import{Plugin as _0x51d6bf}from'ckeditor5/src/core';import _0xf30960 from'./realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter';import _0x2d46ff from'./realtimecollaborativeediting';export default class d extends _0x51d6bf{static get[_0xde86('0x0')](){return['RevisionHistory',_0xf30960,_0x2d46ff];}static get[_0xde86('0x1')](){return _0xde86('0x2');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b12=['catch','message','add','set','getMany','attributes','TrackChangesEditing','getUser','values','TrackChangesService','config','cloud-services-internal-error:\x20Not\x20connected.','_trackChangesService','plugins','_waitForServiceReady','update','state','type','addSuggestionData','requires','_fetchMissingUsersForThreads','find','hasSuggestion','startsWith','off','getSuggestion','addUser','connection','get','originalSuggestionId','delete','open','connect','_bufferedRequests','addToReconnectionStack','editor'];(function(_0x118366,_0x3b126e){const _0x555f12=function(_0x3f1f7b){while(--_0x3f1f7b){_0x118366['push'](_0x118366['shift']());}};_0x555f12(++_0x3b126e);}(_0x3b12,0xad));const _0x555f=function(_0x118366,_0x3b126e){_0x118366=_0x118366-0x0;let _0x555f12=_0x3b12[_0x118366];return _0x555f12;};import{Plugin as _0x3b8cf6}from'ckeditor5/src/core';import _0x1c4ea7 from'@ckeditor/ckeditor-cloud-services-collaboration/src/track-changes/trackchangesservice';import _0x208025 from'../realtimecollaborativeediting/websocketgateway';import _0xf10f9d from'../realtimecollaborativecomments/cloudservicescommentsadapter';import _0x30e649 from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import{Users as _0x531246}from'ckeditor5-collaboration/src/collaboration-core';export default class g extends _0x3b8cf6{static get[_0x555f('0x1a')](){return[_0xf10f9d,_0x555f('0xd'),_0x208025];}constructor(_0x24615e){super(_0x24615e),this[_0x555f('0x4')]=new Map();}['init'](){const _0x43457b=this[_0x555f('0x6')][_0x555f('0x14')]['get'](_0x208025),_0x38b7e4=this[_0x555f('0x6')][_0x555f('0x14')]['get'](_0x555f('0xd')),_0x5edebf=this['editor'][_0x555f('0x11')][_0x555f('0x23')]('collaboration.channelId');return this[_0x555f('0x13')]=new g[(_0x555f('0x10'))](_0x5edebf),_0x38b7e4['adapter']={'getSuggestion':async _0x564369=>{await this[_0x555f('0x15')]();const _0x3e4162=await this[_0x555f('0x13')][_0x555f('0x23')](_0x564369)[_0x555f('0x7')](R);return await this[_0x555f('0x1b')]([_0x3e4162]),_0x3e4162;},'addSuggestion':async({id:_0xe74bfc,type:_0x36cfe2,data:_0x404998,originalSuggestionId:_0x3e8704,attributes:_0x4cf49a})=>{await this[_0x555f('0x15')]();const _0x5a0f8a={'id':_0xe74bfc,'type':_0x36cfe2,'data':_0x404998,'originalSuggestionId':_0x3e8704,'attributes':_0x4cf49a},_0x3f6b2a=await this['_trackChangesService'][_0x555f('0x9')](_0xe74bfc,_0x36cfe2,_0x404998,_0x3e8704,_0x4cf49a)[_0x555f('0x7')](_0x599f5d=>{if(it(_0x599f5d))return new Promise(_0x35b103=>{this[_0x555f('0x4')][_0x555f('0xa')](_0xe74bfc,{'resolve':_0x35b103,'suggestionData':_0x5a0f8a});});throw _0x599f5d;});return this[_0x555f('0x4')][_0x555f('0x1')](_0xe74bfc),_0x3f6b2a;},'updateSuggestion':async(_0x210f7c,_0x2abbfa)=>{if(await this[_0x555f('0x15')](),_0x555f('0x2')!==_0x2abbfa[_0x555f('0x17')])return this[_0x555f('0x13')][_0x555f('0x16')](_0x210f7c,_0x2abbfa)['catch'](R);}},this['listenTo'](this[_0x555f('0x13')],'suggestionUpdated',(_0x2099fd,_0x56f7ee)=>{_0x38b7e4['hasSuggestion'](_0x56f7ee['id'])&&(_0x38b7e4[_0x555f('0x20')](_0x56f7ee['id'])[_0x555f('0xc')]=_0x56f7ee[_0x555f('0xc')]);}),this[_0x555f('0x13')][_0x555f('0x3')](_0x43457b[_0x555f('0x22')])['then'](_0x3e99c6=>(_0x43457b[_0x555f('0x5')](this),this['_fetchMissingUsersForThreads'](_0x3e99c6)['then'](()=>{for(const _0x4b10a5 of _0x3e99c6){_0x38b7e4[_0x555f('0x19')](_0x4b10a5)['_saved']=!0x0;}})));}async['reconnect'](){const _0x5786a9=this['editor'][_0x555f('0x14')][_0x555f('0x23')](_0x555f('0xd')),{connection:_0x4069f1}=this[_0x555f('0x6')][_0x555f('0x14')][_0x555f('0x23')](_0x208025),_0x11bc20=await this[_0x555f('0x13')][_0x555f('0x3')](_0x4069f1);await this[_0x555f('0x1b')](_0x11bc20);for(const {suggestionData:_0x1a61ab,resolve:_0x1693e3}of this[_0x555f('0x4')][_0x555f('0xf')]()){let _0x29cbeb=_0x11bc20[_0x555f('0x1c')](_0x2dc6de=>_0x2dc6de['id']===_0x1a61ab['id']);_0x29cbeb||(_0x29cbeb=await this['_trackChangesService'][_0x555f('0x9')](_0x1a61ab['id'],_0x1a61ab[_0x555f('0x18')],_0x1a61ab['data'],_0x1a61ab[_0x555f('0x0')])),_0x1693e3(_0x29cbeb);}for(const _0x61276d of _0x11bc20)_0x5786a9[_0x555f('0x1d')](_0x61276d['id'])||_0x5786a9['addSuggestionData'](_0x61276d);}async[_0x555f('0x15')](){this['_trackChangesService']['isConnected']||await new Promise(_0x1260fa=>{this['listenTo'](this['_trackChangesService'],'connected',_0x2dfd8d=>{_0x2dfd8d[_0x555f('0x1f')](),_0x1260fa();});});}async[_0x555f('0x1b')](_0x1104d5){const _0x5c97a3=this[_0x555f('0x6')][_0x555f('0x14')]['get'](_0x531246),{connection:_0x5b8a9f}=this['editor'][_0x555f('0x14')][_0x555f('0x23')](_0x208025),_0x3487d9=new Set();for(const {authorId:_0x4e5308}of _0x1104d5)_0x5c97a3['getUser'](_0x4e5308)||_0x3487d9['add'](_0x4e5308);if(0x0===_0x3487d9['size'])return;const _0x361672=await _0x30e649[_0x555f('0xb')](_0x5b8a9f,Array['from'](_0x3487d9));for(const _0x1c0d02 of _0x361672)_0x5c97a3[_0x555f('0xe')](_0x1c0d02['id'])||_0x5c97a3[_0x555f('0x21')](_0x1c0d02);}}function R(_0x3b73ab){if(it(_0x3b73ab))return new Promise(()=>{});throw _0x3b73ab;}function it(_0xfe511d){return _0xfe511d[_0x555f('0x8')][_0x555f('0x1e')](_0x555f('0x12'))||_0xfe511d['message'][_0x555f('0x1e')]('cloud-services-internal-error:\x20Request\x20timeout.');}g[_0x555f('0x10')]=_0x1c4ea7;
23
+ const _0x4100=['listenTo','TrackChangesService','_fetchMissingUsersForThreads','getMany','getUser','connected','getSuggestion','attributes','update','plugins','off','connect','requires','set','delete','data','get','connection','TrackChangesEditing','_waitForServiceReady','hasSuggestion','catch','adapter','message','startsWith','isConnected','reconnect','init','_trackChangesService','size','addToReconnectionStack','_bufferedRequests','cloud-services-internal-error:\x20Not\x20connected.','collaboration.channelId','cloud-services-internal-error:\x20Request\x20timeout.','config','editor','type','originalSuggestionId','then','add'];(function(_0x422c54,_0x4100c5){const _0x556bc9=function(_0x4032a6){while(--_0x4032a6){_0x422c54['push'](_0x422c54['shift']());}};_0x556bc9(++_0x4100c5);}(_0x4100,0x75));const _0x556b=function(_0x422c54,_0x4100c5){_0x422c54=_0x422c54-0x0;let _0x556bc9=_0x4100[_0x422c54];return _0x556bc9;};import{Plugin as _0xbb5489}from'ckeditor5/src/core';import _0x29c11d from'@ckeditor/ckeditor-cloud-services-collaboration/src/track-changes/trackchangesservice';import _0x3311f3 from'../realtimecollaborativeediting/websocketgateway';import _0x152bd3 from'../realtimecollaborativecomments/cloudservicescommentsadapter';import _0x37951d from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import{Users as _0x26f808}from'ckeditor5-collaboration/src/collaboration-core';export default class g extends _0xbb5489{static get[_0x556b('0x12')](){return[_0x152bd3,_0x556b('0x18'),_0x3311f3];}constructor(_0x1ace24){super(_0x1ace24),this['_bufferedRequests']=new Map();}[_0x556b('0x21')](){const _0x2511d0=this['editor'][_0x556b('0xf')]['get'](_0x3311f3),_0x21bd4b=this[_0x556b('0x1')]['plugins'][_0x556b('0x16')](_0x556b('0x18')),_0x434662=this['editor'][_0x556b('0x0')][_0x556b('0x16')](_0x556b('0x27'));return this['_trackChangesService']=new g[(_0x556b('0x7'))](_0x434662),_0x21bd4b[_0x556b('0x1c')]={'getSuggestion':async _0x122e4d=>{await this[_0x556b('0x19')]();const _0x5bccba=await this[_0x556b('0x22')][_0x556b('0x16')](_0x122e4d)[_0x556b('0x1b')](R);return await this['_fetchMissingUsersForThreads']([_0x5bccba]),_0x5bccba;},'addSuggestion':async({id:_0x4745c6,type:_0x4f835a,data:_0x50a57f,originalSuggestionId:_0x12bbbc,attributes:_0x5683c6})=>{await this[_0x556b('0x19')]();const _0x16c732={'id':_0x4745c6,'type':_0x4f835a,'data':_0x50a57f,'originalSuggestionId':_0x12bbbc,'attributes':_0x5683c6},_0x3909f7=await this[_0x556b('0x22')][_0x556b('0x5')](_0x4745c6,_0x4f835a,_0x50a57f,_0x12bbbc,_0x5683c6)[_0x556b('0x1b')](_0x27e3ab=>{if(P(_0x27e3ab))return new Promise(_0x3f38cf=>{this[_0x556b('0x25')][_0x556b('0x13')](_0x4745c6,{'resolve':_0x3f38cf,'suggestionData':_0x16c732});});throw _0x27e3ab;});return this['_bufferedRequests'][_0x556b('0x14')](_0x4745c6),_0x3909f7;},'updateSuggestion':async(_0x36f7ab,_0x338a19)=>{if(await this[_0x556b('0x19')](),'open'!==_0x338a19['state'])return this['_trackChangesService'][_0x556b('0xe')](_0x36f7ab,_0x338a19)[_0x556b('0x1b')](R);}},this['listenTo'](this[_0x556b('0x22')],'suggestionUpdated',(_0x59a8dc,_0x56127c)=>{_0x21bd4b['hasSuggestion'](_0x56127c['id'])&&(_0x21bd4b[_0x556b('0xc')](_0x56127c['id'])[_0x556b('0xd')]=_0x56127c['attributes']);}),this[_0x556b('0x22')]['connect'](_0x2511d0[_0x556b('0x17')])[_0x556b('0x4')](_0x1554bd=>(_0x2511d0[_0x556b('0x24')](this),this[_0x556b('0x8')](_0x1554bd)[_0x556b('0x4')](()=>{for(const _0x3500ef of _0x1554bd){_0x21bd4b['addSuggestionData'](_0x3500ef)['_saved']=!0x0;}})));}async[_0x556b('0x20')](){const _0x459289=this[_0x556b('0x1')][_0x556b('0xf')][_0x556b('0x16')](_0x556b('0x18')),{connection:_0x5b3fc6}=this[_0x556b('0x1')]['plugins']['get'](_0x3311f3),_0x571da4=await this[_0x556b('0x22')][_0x556b('0x11')](_0x5b3fc6);await this[_0x556b('0x8')](_0x571da4);for(const {suggestionData:_0x495cdc,resolve:_0x730d1b}of this[_0x556b('0x25')]['values']()){let _0x391141=_0x571da4['find'](_0x167ea5=>_0x167ea5['id']===_0x495cdc['id']);_0x391141||(_0x391141=await this['_trackChangesService'][_0x556b('0x5')](_0x495cdc['id'],_0x495cdc[_0x556b('0x2')],_0x495cdc[_0x556b('0x15')],_0x495cdc[_0x556b('0x3')])),_0x730d1b(_0x391141);}for(const _0x369c07 of _0x571da4)_0x459289[_0x556b('0x1a')](_0x369c07['id'])||_0x459289['addSuggestionData'](_0x369c07);}async[_0x556b('0x19')](){this[_0x556b('0x22')][_0x556b('0x1f')]||await new Promise(_0x3f900d=>{this[_0x556b('0x6')](this[_0x556b('0x22')],_0x556b('0xb'),_0x32f6be=>{_0x32f6be[_0x556b('0x10')](),_0x3f900d();});});}async[_0x556b('0x8')](_0x2b9b03){const _0x1c2ccc=this[_0x556b('0x1')][_0x556b('0xf')][_0x556b('0x16')](_0x26f808),{connection:_0x4d881b}=this[_0x556b('0x1')][_0x556b('0xf')][_0x556b('0x16')](_0x3311f3),_0x355021=new Set();for(const {authorId:_0x2bd84a}of _0x2b9b03)_0x1c2ccc[_0x556b('0xa')](_0x2bd84a)||_0x355021['add'](_0x2bd84a);if(0x0===_0x355021[_0x556b('0x23')])return;const _0x1a3af6=await _0x37951d[_0x556b('0x9')](_0x4d881b,Array['from'](_0x355021));for(const _0x53b3c1 of _0x1a3af6)_0x1c2ccc[_0x556b('0xa')](_0x53b3c1['id'])||_0x1c2ccc['addUser'](_0x53b3c1);}}function R(_0x2f5c74){if(P(_0x2f5c74))return new Promise(()=>{});throw _0x2f5c74;}function P(_0x2cfa92){return _0x2cfa92[_0x556b('0x1d')][_0x556b('0x1e')](_0x556b('0x26'))||_0x2cfa92['message'][_0x556b('0x1e')](_0x556b('0x28'));}g[_0x556b('0x7')]=_0x29c11d;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x59c3=['requires','TrackChanges'];(function(_0x48e4fd,_0x59c3b){var _0x1d18e1=function(_0x1511d2){while(--_0x1511d2){_0x48e4fd['push'](_0x48e4fd['shift']());}};_0x1d18e1(++_0x59c3b);}(_0x59c3,0x196));var _0x1d18=function(_0x48e4fd,_0x59c3b){_0x48e4fd=_0x48e4fd-0x0;var _0x1d18e1=_0x59c3[_0x48e4fd];return _0x1d18e1;};import{Plugin as _0x1c4711}from'ckeditor5/src/core';import _0x4f85a6 from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';import _0x2d7206 from'./realtimecollaborativecomments';export default class p extends _0x1c4711{static get[_0x1d18('0x0')](){return[_0x2d7206,_0x4f85a6,_0x1d18('0x1')];}static get['pluginName'](){return'RealTimeCollaborativeTrackChanges';}}
23
+ var _0x22de=['requires','TrackChanges'];(function(_0x547e13,_0x22de4b){var _0x5a5dd2=function(_0xf842ef){while(--_0xf842ef){_0x547e13['push'](_0x547e13['shift']());}};_0x5a5dd2(++_0x22de4b);}(_0x22de,0x1c7));var _0x5a5d=function(_0x547e13,_0x22de4b){_0x547e13=_0x547e13-0x0;var _0x5a5dd2=_0x22de[_0x547e13];return _0x5a5dd2;};import{Plugin as _0x25ffb9}from'ckeditor5/src/core';import _0x2952ca from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';import _0x207cd0 from'./realtimecollaborativecomments';export default class p extends _0x25ffb9{static get[_0x5a5d('0x1')](){return[_0x207cd0,_0x2952ca,_0x5a5d('0x0')];}static get['pluginName'](){return'RealTimeCollaborativeTrackChanges';}}