@ckeditor/ckeditor5-real-time-collaboration 47.4.0-alpha.3 → 47.4.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/real-time-collaboration.js +2 -2
- package/dist/index.js +6 -6
- package/package.json +14 -14
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x49fbce=_0xb898;(function(_0x371bd0,_0x53c105){const _0x328abc=_0xb898,_0x5cea58=_0x371bd0();while(!![]){try{const _0x2d3442=-parseInt(_0x328abc(0xa9))/0x1*(parseInt(_0x328abc(0xd8))/0x2)+-parseInt(_0x328abc(0xc1))/0x3*(-parseInt(_0x328abc(0xa2))/0x4)+parseInt(_0x328abc(0xc2))/0x5*(parseInt(_0x328abc(0xa4))/0x6)+-parseInt(_0x328abc(0xd2))/0x7*(-parseInt(_0x328abc(0xb8))/0x8)+-parseInt(_0x328abc(0xc0))/0x9+-parseInt(_0x328abc(0xb0))/0xa*(-parseInt(_0x328abc(0x9a))/0xb)+parseInt(_0x328abc(0xc9))/0xc;if(_0x2d3442===_0x53c105)break;else _0x5cea58['push'](_0x5cea58['shift']());}catch(_0x37bf88){_0x5cea58['push'](_0x5cea58['shift']());}}}(_0x4f95,0xdff67));import{ContextPlugin as _0x56eddc}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x48bec,CKEditorError as _0x573265}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x45eb4e,WEB_SOCKET_GATEWAY_STATES as _0x1b57a8}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x32c8f7}from'ckeditor5/src/ui.js';function _0xb898(_0x284636,_0x6e37a0){const _0x4f953c=_0x4f95();return _0xb898=function(_0xb898d2,_0x27df29){_0xb898d2=_0xb898d2-0x91;let _0x142cf0=_0x4f953c[_0xb898d2];return _0x142cf0;},_0xb898(_0x284636,_0x6e37a0);}function _0x4f95(){const _0x1a07e5=['56YGbjDI','showWarning','add','all','delete','then','cloudServices.requestTimeout','_reconnect','code','real-time-collaboration','online','limitExceeded','cloudServices.connectionTimeout','requires','2105015EMwHiM','config','set','removeFromReconnectionStack','error','plugins','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.','token','1820dGsSdb','_isBrowserOffline','1554OdihGn','WebSocketGateway','cloudservices-reconnection-error','isOfficialPlugin','addToReconnectionStack','41365HzCmse','isPremiumPlugin','context','connected','isInReconnectionStack','pluginName','reconnect','10nyEWfc','CloudServices','catch','_reconnectionStack','destroy','CONNECTING','define','disconnect','11992qtoHKt','offline','has','_shouldPluginsReconnect','stopListening','bind','listenTo','_domEmitter','14577138yoFYag','6522PZZNqn','22415cjKDhZ','websocketgateway-invalid-plugin-interface','DISCONNECTED','websocketgateway-missing-websocket-url','cloudservices-init','connect','connection','1907016aZuLXx','Connected\x20users\x20limit\x20exceeded','function','state','constructor','websocketgateway-missing-token','CONNECTED','webSocketUrl','get','5579UscADR','init','initialReconnectionInterval','from','websocketgateway-plugin-already-registered','change:me'];_0x4f95=function(){return _0x1a07e5;};return _0x4f95();}export class WebSocketGateway extends _0x56eddc{static [_0x49fbce(0xa5)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x45eb4e)());static [_0x49fbce(0xd4)]=0x3e8;[_0x49fbce(0xc8)];[_0x49fbce(0xb3)];[_0x49fbce(0xbb)];[_0x49fbce(0xbf)];static get[_0x49fbce(0x99)](){const _0x3d5568=_0x49fbce;return[_0x3d5568(0xb1),_0x32c8f7];}static get[_0x49fbce(0xae)](){const _0x426219=_0x49fbce;return _0x426219(0xa5);}static get[_0x49fbce(0xa7)](){return!0x0;}static get[_0x49fbce(0xaa)](){return!0x0;}constructor(_0x487416){const _0x290d9f=_0x49fbce;super(_0x487416),this[_0x290d9f(0x9c)](_0x290d9f(0xcc),_0x1b57a8[_0x290d9f(0xcf)]),this[_0x290d9f(0x9c)](_0x290d9f(0xa3),!0x1),this[_0x290d9f(0xb3)]=new Set(),this[_0x290d9f(0xbb)]=!0x1,this[_0x290d9f(0xbf)]=new(_0x48bec())();}[_0x49fbce(0xd3)](){const _0xb939ae=_0x49fbce,_0x1a2716=this[_0xb939ae(0xab)],_0x9edd29=_0x1a2716[_0xb939ae(0x9f)][_0xb939ae(0xd1)](_0xb939ae(0xb1)),_0x1b78a0=_0x1a2716[_0xb939ae(0x9f)][_0xb939ae(0xd1)](_0x32c8f7);if(!_0x9edd29[_0xb939ae(0xa1)])throw new _0x573265(_0xb939ae(0xce),this);if(!_0x9edd29[_0xb939ae(0xd0)])throw new _0x573265(_0xb939ae(0xc5),this);return this[_0xb939ae(0xbf)][_0xb939ae(0xbe)](window,_0xb939ae(0xb9),()=>this[_0xb939ae(0xa3)]=!0x0),this[_0xb939ae(0xbf)][_0xb939ae(0xbe)](window,_0xb939ae(0x96),()=>this[_0xb939ae(0xa3)]=!0x1),this[_0xb939ae(0xab)][_0xb939ae(0x9b)][_0xb939ae(0xb6)](_0xb939ae(0x98),0xa),this[_0xb939ae(0xab)][_0xb939ae(0x9b)][_0xb939ae(0xb6)](_0xb939ae(0x92),0x14),WebSocketGateway[_0xb939ae(0xa5)][_0xb939ae(0xc7)](_0x9edd29[_0xb939ae(0xa1)],_0x9edd29[_0xb939ae(0xd0)],{'timeout':0x3e8*this[_0xb939ae(0xab)][_0xb939ae(0x9b)][_0xb939ae(0xd1)](_0xb939ae(0x98)),'requestTimeout':0x3e8*this[_0xb939ae(0xab)][_0xb939ae(0x9b)][_0xb939ae(0xd1)](_0xb939ae(0x92))})[_0xb939ae(0x91)](_0x5597cd=>{const _0x413875=_0xb939ae;if(this[_0x413875(0xc8)]=_0x5597cd,this[_0x413875(0xbd)](_0x413875(0xcc))['to'](_0x5597cd,_0x413875(0xcc),this,_0x413875(0xa3),(_0x417841,_0x5d9e74)=>(_0x413875(0xac)!==_0x417841&&(this[_0x413875(0xbb)]=!0x0),_0x5d9e74||_0x417841!==_0x1b57a8[_0x413875(0xcf)]?_0x1b57a8[_0x413875(0xc4)]:this[_0x413875(0xcc)]==_0x1b57a8[_0x413875(0xc4)]&&this[_0x413875(0xbb)]?(this[_0x413875(0xbb)]=!0x1,this[_0x413875(0x93)](),_0x1b57a8[_0x413875(0xb5)]):_0x1b57a8[_0x413875(0xcf)])),this[_0x413875(0xc8)]['on'](_0x413875(0x9e),(_0x516eb8,_0x69d40d)=>{const _0x4bf935=_0x413875;if(_0x4bf935(0x97)!==_0x69d40d[_0x4bf935(0x94)])throw console[_0x4bf935(0x9e)](_0x69d40d),new _0x573265(_0x4bf935(0xc6),null,{'originalError':_0x69d40d});_0x1b78a0[_0x4bf935(0xd9)](_0x4bf935(0xa0),{'title':_0x4bf935(0xca),'namespace':_0x4bf935(0x95)});}),!_0x5597cd['me'])return new Promise(_0x47a881=>_0x5597cd['on'](_0x413875(0xd7),_0x47a881));})[_0xb939ae(0xb2)](_0x531725=>{const _0x1eb62d=_0xb939ae;throw console[_0x1eb62d(0x9e)](_0x531725),new _0x573265(_0x1eb62d(0xc6),null,{'originalError':_0x531725});});}[_0x49fbce(0xa8)](_0x52b1ca){const _0x8b5771=_0x49fbce;if(_0x8b5771(0xcb)!=typeof _0x52b1ca[_0x8b5771(0xaf)])throw new _0x573265(_0x8b5771(0xc3),this);if(this[_0x8b5771(0xad)](_0x52b1ca))throw new _0x573265(_0x8b5771(0xd6),this,{'name':_0x52b1ca[_0x8b5771(0xcd)][_0x8b5771(0xae)]});this[_0x8b5771(0xb3)][_0x8b5771(0xda)](_0x52b1ca);}[_0x49fbce(0x9d)](_0x1aed3d){const _0x1c4d73=_0x49fbce;this[_0x1c4d73(0xb3)][_0x1c4d73(0xdc)](_0x1aed3d);}[_0x49fbce(0xad)](_0x55e82a){const _0x56966b=_0x49fbce;return this[_0x56966b(0xb3)][_0x56966b(0xba)](_0x55e82a);}[_0x49fbce(0x93)](){const _0x525c4e=_0x49fbce;return this[_0x525c4e(0xc8)][_0x525c4e(0xaf)]()[_0x525c4e(0x91)](()=>Promise[_0x525c4e(0xdb)](Array[_0x525c4e(0xd5)](this[_0x525c4e(0xb3)],_0x1f940f=>_0x1f940f[_0x525c4e(0xaf)]())))[_0x525c4e(0x91)](()=>this[_0x525c4e(0xcc)]=_0x1b57a8[_0x525c4e(0xcf)])[_0x525c4e(0xb2)](_0x261bca=>{const _0x5edea1=_0x525c4e;throw console[_0x5edea1(0x9e)](_0x261bca),new _0x573265(_0x5edea1(0xa6),this[_0x5edea1(0xab)]);});}[_0x49fbce(0xb7)](){const _0x339372=_0x49fbce;this[_0x339372(0xc8)]&&this[_0x339372(0xc8)][_0x339372(0xb7)](),this[_0x339372(0xcc)]=_0x1b57a8[_0x339372(0xc4)],this[_0x339372(0xbf)][_0x339372(0xbc)]();}[_0x49fbce(0xb4)](){const _0x1c6c92=_0x49fbce;this[_0x1c6c92(0xb7)](),super[_0x1c6c92(0xb4)]();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0x1b016c)());[_0xa353a0(0x1f9)];[_0xa353a0(0x211)];[_0xa353a0(0x239)];[_0xa353a0(0x1e7)];static get[_0xa353a0(0x204)](){const _0x14670b=_0xa353a0;return[_0x41e8ef,_0x2ecfbf,_0x14670b(0x23e),_0x387a66,_0x6463e9];}static get[_0xa353a0(0x21d)](){const _0x4cec05=_0xa353a0;return _0x4cec05(0x248);}static get[_0xa353a0(0x236)](){return!0x0;}static get[_0xa353a0(0x217)](){return!0x0;}constructor(_0x27d526){const _0x5cd64f=_0xa353a0;super(_0x27d526);const _0xc64116=this[_0x5cd64f(0x1f7)][_0x5cd64f(0x1e4)][_0x5cd64f(0x21c)](_0x5cd64f(0x224));this[_0x5cd64f(0x1f9)]=null,this[_0x5cd64f(0x211)]=this[_0x5cd64f(0x1f7)][_0x5cd64f(0x23f)][_0x5cd64f(0x21c)](_0x5cd64f(0x22c)),this[_0x5cd64f(0x239)]=new CloudServicesRevisionHistoryAdapter[(_0x5cd64f(0x251))](_0xc64116);}async[_0xa353a0(0x23b)](){const _0x1505f6=_0xa353a0,_0x229043=this[_0x1505f6(0x1f7)][_0x1505f6(0x23f)][_0x1505f6(0x21c)](_0x2ecfbf),_0x2cc154=_0x229043[_0x1505f6(0x1ff)],_0x524644=this[_0x1505f6(0x1f7)][_0x1505f6(0x23f)][_0x1505f6(0x21c)](_0x41e8ef);this[_0x1505f6(0x211)][_0x1505f6(0x1fe)]({'history':_0x2cc154,'getLatestVersion':()=>this[_0x1505f6(0x202)](),'getCurrentRevisionId':()=>_0x229043[_0x1505f6(0x215)]});const _0x1aef29=this[_0x1505f6(0x1f7)][_0x1505f6(0x1e4)][_0x1505f6(0x21c)](_0x1505f6(0x1f5))||_0x25758e,_0x27b001=await _0x105ea0[_0x1505f6(0x23c)](_0x524644[_0x1505f6(0x241)],_0x1aef29);this[_0x1505f6(0x1f7)][_0x1505f6(0x23f)][_0x1505f6(0x21c)](_0x1505f6(0x23e))[_0x1505f6(0x254)]={'getRevision':async({revisionId:_0x28590d})=>(await this[_0x1505f6(0x20d)](),await this[_0x1505f6(0x239)][_0x1505f6(0x20b)](_0x28590d)),'updateRevisions':async _0x3cf466=>{const _0x4744bd=_0x1505f6;await this[_0x4744bd(0x20d)]();const _0x156436=this[_0x4744bd(0x211)][_0x4744bd(0x24b)];if(_0x27b001&&0x1===_0x3cf466[_0x4744bd(0x1ef)]&&_0x3cf466[0x0]['id']===_0x156436['id'])return _0x3cf466;for(const _0xae38d2 of _0x3cf466)_0xae38d2['id']===_0x156436['id']&&(_0xae38d2[_0x4744bd(0x1f6)]=_0xae38d2[_0x4744bd(0x209)]===_0xae38d2[_0x4744bd(0x22a)]);return this[_0x4744bd(0x239)][_0x4744bd(0x250)](_0x3cf466,this[_0x4744bd(0x1f9)])[_0x4744bd(0x22e)](_0x17e2b2=>(this[_0x4744bd(0x1f9)]=_0x17e2b2,_0x3cf466))[_0x4744bd(0x21a)](_0x38ed9d=>{const _0x536574=_0x4744bd;if(st(_0x38ed9d)||_0x536574(0x242)===_0x38ed9d[_0x536574(0x238)]&&void 0x0!==_0x38ed9d[_0x536574(0x24a)][_0x536574(0x1f2)]){for(const _0x2a9348 of _0x3cf466){!this[_0x536574(0x211)][_0x536574(0x216)][_0x536574(0x20b)](_0x2a9348['id'])||this[_0x536574(0x211)][_0x536574(0x243)](_0x2a9348['id'],_0x2a9348,!0x1);}if(st(_0x38ed9d))throw _0x38ed9d;return _0x3cf466;}throw _0x38ed9d;});}},this[_0x1505f6(0x227)](this[_0x1505f6(0x239)],_0x1505f6(0x222),(_0x2d4a15,{revisionsData:_0x3e1639,requestId:_0x4ed75a})=>{const _0x3ae281=_0x1505f6;Math[_0x3ae281(0x226)](..._0x3e1639[_0x3ae281(0x230)](_0x3f5d3b=>_0x3f5d3b[_0x3ae281(0x22a)]))>this[_0x3ae281(0x219)]()-0x1?this[_0x3ae281(0x202)]()[_0x3ae281(0x22e)](()=>{const _0x1bd2fa=_0x3ae281;this[_0x1bd2fa(0x258)](_0x3e1639,_0x4ed75a);}):this[_0x3ae281(0x258)](_0x3e1639,_0x4ed75a);});const {revisions:_0x31130,requestId:_0x396f83}=await this[_0x1505f6(0x239)][_0x1505f6(0x201)](_0x524644[_0x1505f6(0x241)]);_0x524644[_0x1505f6(0x21b)](this),this[_0x1505f6(0x1f9)]=_0x396f83,await this[_0x1505f6(0x252)](_0x31130);for(const _0x36091d of _0x31130)this[_0x1505f6(0x211)][_0x1505f6(0x259)](_0x36091d);this[_0x1505f6(0x227)](_0x229043,_0x1505f6(0x245),(_0x451c9c,_0x4ed97b,_0x572f80)=>{const _0x1cec8f=_0x1505f6;_0x572f80&&(this[_0x1cec8f(0x1e7)]=_0x229043[_0x1cec8f(0x208)],_0x451c9c[_0x1cec8f(0x1f3)]());}),this[_0x1505f6(0x211)][_0x1505f6(0x253)](_0x1505f6(0x235))['to'](_0x524644,_0x1505f6(0x210),_0x14ed35=>_0x14ed35===_0x2f5d6b[_0x1505f6(0x203)]);}async[_0xa353a0(0x205)](){const _0x366c97=_0xa353a0,_0x3f3ff5=this[_0x366c97(0x1f7)][_0x366c97(0x23f)][_0x366c97(0x21c)](_0x41e8ef),_0x51e4db=this[_0x366c97(0x1f7)][_0x366c97(0x23f)][_0x366c97(0x21c)](_0x2ecfbf),_0x477ba7=async()=>{const _0x11f637=_0x366c97,_0x2bcaa1=this[_0x11f637(0x211)][_0x11f637(0x24b)],_0x19a0b4=_0x2bcaa1['id'],_0x217945=_0x19a0b4!==_0x51e4db[_0x11f637(0x215)];if(_0x217945){const _0x460daa=_0x51e4db[_0x11f637(0x208)]-this[_0x11f637(0x1e7)],_0x1b9f2e=this[_0x11f637(0x219)]();this[_0x11f637(0x211)][_0x11f637(0x1e6)][_0x11f637(0x23a)]();if(_0x2bcaa1[_0x11f637(0x22a)]+_0x460daa!==_0x1b9f2e){const _0x3c7ff2=_0x2bcaa1[_0x11f637(0x209)]+_0x460daa,_0x4518ba=this[_0x11f637(0x1f7)][_0x11f637(0x23f)][_0x11f637(0x21c)](_0x6463e9),_0x530962=this[_0x11f637(0x211)][_0x11f637(0x218)]({'revision':_0x2bcaa1,'from':_0x3c7ff2,'to':_0x1b9f2e});_0x530962['id']=_0x2bcaa1['id'];const _0x1d2c5c=_0x530962[_0x11f637(0x249)][_0x11f637(0x230)](_0x275570=>_0x4518ba[_0x11f637(0x240)](_0x275570));_0x2bcaa1[_0x11f637(0x1fa)]({..._0x530962,'authors':_0x1d2c5c},!0x0),this[_0x11f637(0x211)][_0x11f637(0x243)](_0x2bcaa1['id'],_0x530962,!0x0);}this[_0x11f637(0x211)][_0x11f637(0x1fc)]=_0x1b9f2e,(_0x2bcaa1[_0x11f637(0x22a)]===_0x2bcaa1[_0x11f637(0x209)]&&!this[_0x11f637(0x211)][_0x11f637(0x20e)][_0x11f637(0x221)](_0x19a0b4)&&this[_0x11f637(0x211)][_0x11f637(0x216)][_0x11f637(0x244)][_0x11f637(0x231)](_0x19a0b4),this[_0x11f637(0x211)][_0x11f637(0x256)](_0x1b9f2e));}const {revisions:_0x26a939,requestId:_0x544cf2}=await this[_0x11f637(0x239)][_0x11f637(0x205)](_0x3f3ff5[_0x11f637(0x241)],this[_0x11f637(0x1f9)]);_0x217945&&_0x26a939[_0x11f637(0x1ef)]>0x0?_0x51e4db[_0x11f637(0x20a)]():(await this[_0x11f637(0x252)](_0x26a939),this[_0x11f637(0x258)](_0x26a939,_0x544cf2),this[_0x11f637(0x211)][_0x11f637(0x1f4)]());};return _0x51e4db[_0x366c97(0x246)]?_0x477ba7():new Promise((_0x34df76,_0x5123f5)=>{const _0x358f77=_0x366c97;_0x51e4db[_0x358f77(0x1ee)](_0x358f77(0x245),()=>{const _0x29ed44=_0x358f77;_0x477ba7()[_0x29ed44(0x22e)](_0x34df76)[_0x29ed44(0x21a)](_0x5123f5);});});}[_0xa353a0(0x20f)](){const _0x28be97=_0xa353a0;super[_0x28be97(0x20f)]();}async[_0xa353a0(0x20d)](){const _0x4853fa=_0xa353a0;this[_0x4853fa(0x239)][_0x4853fa(0x229)]||await new Promise(_0x4909d1=>{const _0x4b9f14=_0x4853fa;this[_0x4b9f14(0x227)](this[_0x4b9f14(0x239)],_0x4b9f14(0x228),_0x20aba9=>{const _0x488d48=_0x4b9f14;_0x20aba9[_0x488d48(0x1f3)](),_0x4909d1();});});}[_0xa353a0(0x219)](){const _0x50d695=_0xa353a0,_0x5dc308=this[_0x50d695(0x1f7)][_0x50d695(0x23f)][_0x50d695(0x21c)](_0x2ecfbf)[_0x50d695(0x1ff)][_0x50d695(0x22d)]()[_0x50d695(0x20c)]();for(const _0x2dfc3b of _0x5dc308)if(_0x50d695(0x257)!==_0x2dfc3b[_0x50d695(0x1e5)]||_0x2dfc3b[_0x50d695(0x1fd)])return _0x2dfc3b[_0x50d695(0x200)]+0x1;}[_0xa353a0(0x202)](){const _0x4bd211=_0xa353a0,_0x126a6e=this[_0x4bd211(0x1f7)][_0x4bd211(0x23f)][_0x4bd211(0x21c)](_0x2ecfbf);return new Promise(_0x7c13f=>{const _0x3693c7=_0x4bd211;_0x126a6e[_0x3693c7(0x225)]?_0x126a6e[_0x3693c7(0x1ee)](_0x3693c7(0x24c),()=>{const _0xa5aacc=_0x3693c7;_0x7c13f(this[_0xa5aacc(0x219)]());}):_0x7c13f(this[_0x3693c7(0x219)]());});}[_0xa353a0(0x258)](_0xa32daa,_0x242b13){const _0x1722ec=_0xa353a0,_0x4ab437=this[_0x1722ec(0x211)][_0x1722ec(0x216)];this[_0x1722ec(0x1f9)]=_0x242b13;for(const _0x4cb5b1 of _0xa32daa){const _0x475c34=_0x4ab437[_0x1722ec(0x20b)](_0x4cb5b1['id']);if(_0x475c34){if((_0x4cb5b1[_0x1722ec(0x209)]||_0x4cb5b1[_0x1722ec(0x22a)])&&(_0x4cb5b1[_0x1722ec(0x207)]=null),_0x475c34===this[_0x1722ec(0x211)][_0x1722ec(0x24b)]){const _0x4bb03b=Math[_0x1722ec(0x226)](_0x475c34[_0x1722ec(0x22a)],_0x4cb5b1[_0x1722ec(0x22a)]),_0xff1217=Math[_0x1722ec(0x226)](_0x475c34[_0x1722ec(0x209)],_0x4cb5b1[_0x1722ec(0x209)]);let _0x19b31c;_0x475c34[_0x1722ec(0x22a)]===_0x4cb5b1[_0x1722ec(0x22a)]&&_0x475c34[_0x1722ec(0x209)]===_0x4cb5b1[_0x1722ec(0x209)]?(_0x19b31c=!0x0,this[_0x1722ec(0x1f0)](_0x4cb5b1)):_0x4cb5b1[_0x1722ec(0x22a)]===_0x4bb03b&&_0x4cb5b1[_0x1722ec(0x209)]===_0xff1217?_0x19b31c=!0x1:(_0x475c34[_0x1722ec(0x22a)]===_0x4bb03b&&_0x475c34[_0x1722ec(0x209)]===_0xff1217||this[_0x1722ec(0x22b)]({'revision':_0x475c34,'from':_0xff1217,'to':_0x4bb03b}),_0x19b31c=!0x0),_0x19b31c&&(delete _0x4cb5b1[_0x1722ec(0x209)],delete _0x4cb5b1[_0x1722ec(0x22a)],delete _0x4cb5b1[_0x1722ec(0x207)],delete _0x4cb5b1[_0x1722ec(0x232)],delete _0x4cb5b1[_0x1722ec(0x249)]);}this[_0x1722ec(0x211)][_0x1722ec(0x1f1)](_0x4cb5b1),this[_0x1722ec(0x1f0)](_0x4cb5b1);}else this[_0x1722ec(0x211)][_0x1722ec(0x259)](_0x4cb5b1);}const _0x1ec2d3=_0x4ab437[_0x1722ec(0x214)]();_0x1ec2d3[_0x1722ec(0x20c)]();for(let _0x4d038c=0x0;_0x4d038c<_0x1ec2d3[_0x1722ec(0x1ef)]-0x1;_0x4d038c++){const _0x572630=_0x1ec2d3[_0x4d038c],_0x47c19a=_0x1ec2d3[_0x4d038c+0x1];if(_0x572630[_0x1722ec(0x209)]<_0x47c19a[_0x1722ec(0x22a)]){const _0x292af8=_0x47c19a[_0x1722ec(0x22a)],_0x54f091=Math[_0x1722ec(0x226)](_0x292af8,_0x572630[_0x1722ec(0x22a)]);this[_0x1722ec(0x22b)]({'revision':_0x572630,'from':_0x292af8,'to':_0x54f091});}}}[_0xa353a0(0x22b)]({revision:_0x57f2f8,from:_0x471bb0,to:_0x3f26a7}={}){const _0x5370cb=_0xa353a0,_0x2aceb0=this[_0x5370cb(0x1f7)][_0x5370cb(0x23f)][_0x5370cb(0x21c)](_0x6463e9),_0x2f5982=this[_0x5370cb(0x211)][_0x5370cb(0x218)]({'revision':_0x57f2f8,'from':_0x471bb0,'to':_0x3f26a7});_0x2f5982[_0x5370cb(0x1ec)]=_0x2f5982[_0x5370cb(0x249)][_0x5370cb(0x230)](_0xdafd45=>_0x2aceb0[_0x5370cb(0x240)](_0xdafd45)),_0x57f2f8[_0x5370cb(0x1fa)](_0x2f5982);}[_0xa353a0(0x1f0)](_0x3dd903){const _0x18e2e1=_0xa353a0,_0x46dde3={};_0x46dde3['id']=_0x3dd903['id'];for(const _0x3eb108 of Object[_0x18e2e1(0x220)](_0x3dd903))'id'!==_0x3eb108&&(_0x46dde3[_0x3eb108]=void 0x0);this[_0x18e2e1(0x211)][_0x18e2e1(0x243)](_0x46dde3['id'],_0x46dde3,!0x0);}async[_0xa353a0(0x252)](_0xeaf4a4){const _0x1d9083=_0xa353a0,_0x49ab3d=this[_0x1d9083(0x1f7)][_0x1d9083(0x23f)][_0x1d9083(0x21c)](_0x6463e9),{connection:_0x392de7}=this[_0x1d9083(0x1f7)][_0x1d9083(0x23f)][_0x1d9083(0x21c)](_0x41e8ef),_0x486845=new Set();for(const _0x206402 of _0xeaf4a4){for(const _0x3263f1 of _0x206402[_0x1d9083(0x249)])_0x3cc9b9(_0x3263f1);_0x206402[_0x1d9083(0x1ea)]&&_0x3cc9b9(_0x206402[_0x1d9083(0x1ea)]);}if(0x0===_0x486845[_0x1d9083(0x206)])return;const _0x404a03=await _0xd1d97[_0x1d9083(0x1e8)](_0x392de7,Array[_0x1d9083(0x1eb)](_0x486845));for(const _0xc345e3 of _0x404a03)_0x49ab3d[_0x1d9083(0x240)](_0xc345e3['id'])||_0x49ab3d[_0x1d9083(0x237)](_0xc345e3);function _0x3cc9b9(_0x40d6da){const _0xf4f262=_0x1d9083;_0x49ab3d[_0xf4f262(0x240)](_0x40d6da)||_0x486845[_0xf4f262(0x1fb)](_0x40d6da);}}}function _0x1bb6(){const _0x2b5c13=['message','512218WJVIsc','cloud-services-internal-error:\x20Request\x20timeout.','updateRevisions','RevisionHistoryService','_fetchMissingUsers','bind','adapter','105FOLLhY','_createCurrentRevision','marker','_handleRevisionsUpdate','addRevisionData','config','type','_revisionDataBuilder','_oldOffset','getMany','cloud-services-internal-error:\x20Not\x20connected.','creatorId','from','authors','1070eHMbbI','once','length','_preventResendingRevisionData','setRevisionData','wrongRequestId','off','sendBufferedUpdates','cloudServices.bundleVersion','isEmptyCurrent','editor','38061VmqEOr','_lastRequestId','_update','add','_startingVersion','affectsData','setSource','serverHistory','baseVersion','connect','_getLatestVersion','CONNECTED','requires','reconnect','size','diffData','_offset','fromVersion','_handleReconnectionError','getRevision','reverse','_waitForServiceReady','_bufferedUpdates','destroy','state','_revisionTracker','483288mOHPke','12612beNhxP','getRevisions','sessionId','repository','isPremiumPlugin','buildRevisionData','_getLatestVersionFromServerOperations','catch','addToReconnectionStack','get','pluginName','startsWith','3AaigFC','keys','has','revisionsUpdated','45aTYKus','collaboration.channelId','_isPendingUpdate','max','listenTo','connected','isConnected','toVersion','_fixRevision','RevisionTracker','getOperations','then','3048948VHrliX','map','remove','createdAt','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','444732HJQyPS','isEnabled','isOfficialPlugin','addUser','code','_revisionHistoryService','reInit','init','isBundleUploaded','829646vEpvMV','RevisionHistory','plugins','getUser','connection','400','_bufferUpdate','_revisions','change:_isConnected','_isConnected','25817hHoias','CloudServicesRevisionHistoryAdapter','authorsIds','data','currentRevision','change:_isPendingUpdate'];_0x1bb6=function(){return _0x2b5c13;};return _0x1bb6();}function st(_0x4369a2){const _0x192b66=_0xa353a0;return _0x4369a2[_0x192b66(0x24d)][_0x192b66(0x21e)](_0x192b66(0x233))||_0x4369a2[_0x192b66(0x24d)][_0x192b66(0x21e)](_0x192b66(0x1e9))||_0x4369a2[_0x192b66(0x24d)][_0x192b66(0x21e)](_0x192b66(0x24f));}
|
|
23
|
+
const _0x282942=_0xbf73;(function(_0x8845cd,_0x3d20e3){const _0x2988a4=_0xbf73,_0x5971f9=_0x8845cd();while(!![]){try{const _0x4b141b=parseInt(_0x2988a4(0x246))/0x1*(parseInt(_0x2988a4(0x21e))/0x2)+parseInt(_0x2988a4(0x260))/0x3*(-parseInt(_0x2988a4(0x250))/0x4)+parseInt(_0x2988a4(0x248))/0x5+parseInt(_0x2988a4(0x236))/0x6+parseInt(_0x2988a4(0x227))/0x7+parseInt(_0x2988a4(0x224))/0x8*(-parseInt(_0x2988a4(0x1fd))/0x9)+-parseInt(_0x2988a4(0x24e))/0xa*(parseInt(_0x2988a4(0x24a))/0xb);if(_0x4b141b===_0x3d20e3)break;else _0x5971f9['push'](_0x5971f9['shift']());}catch(_0x404fe4){_0x5971f9['push'](_0x5971f9['shift']());}}}(_0x2ee5,0xee585));import{Plugin as _0x4b0ce3}from'ckeditor5/src/core.js';import{version as _0x574e7f}from'ckeditor5/src/utils.js';import{Users as _0x30888e}from'ckeditor5-collaboration/src/collaboration-core.js';function _0xbf73(_0x1d4126,_0x5ad0a6){const _0x2ee5a6=_0x2ee5();return _0xbf73=function(_0xbf7338,_0x593be){_0xbf7338=_0xbf7338-0x1f1;let _0x4a7590=_0x2ee5a6[_0xbf7338];return _0x4a7590;},_0xbf73(_0x1d4126,_0x5ad0a6);}import{RealTimeCollaborationClient as _0x5d384d}from'../realtimecollaborativeediting/realtimecollaborationclient.js';function _0x2ee5(){const _0x273b76=['type','isConnected','_createCurrentRevision','_getLatestVersionFromServerOperations','969154QeeNXE','_revisionHistoryService','cloud-services-internal-error:\x20Request\x20timeout.','addRevisionData','cloud-services-internal-error:\x20Not\x20connected.','getOperations','632AnMwcg','listenTo','_offset','5691910luevFU','keys','_revisions','reconnect','_waitForServiceReady','CONNECTED','editor','revisionsUpdated','_handleRevisionsUpdate','isOfficialPlugin','adapter','creatorId','init','_revisionTracker','state','5912406bBWzta','RevisionTracker','data','getMany','sessionId','_bufferUpdate','destroy','repository','get','pluginName','_preventResendingRevisionData','_getLatestVersion','wrongRequestId','CloudServicesRevisionHistoryAdapter','RevisionHistory','RevisionHistoryService','3eGPLzw','reInit','2015295oUjSif','_lastRequestId','22294019dKKgay','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','message','authorsIds','10ULUZtw','once','856VxURdm','_handleReconnectionError','connection','sendBufferedUpdates','add','startsWith','from','authors','max','has','createdAt','collaboration.channelId','400','change:_isConnected','buildRevisionData','diffData','8889dBYvDA','change:_isPendingUpdate','bind','serverHistory','connected','_fetchMissingUsers','remove','_oldOffset','requires','toVersion','getRevisions','map','_isPendingUpdate','code','isEnabled','_isConnected','_update','affectsData','2079DtYJSt','size','baseVersion','then','_bufferedUpdates','isEmptyCurrent','_revisionDataBuilder','isBundleUploaded','off','currentRevision','addUser','_fixRevision','fromVersion','marker','addToReconnectionStack','getRevision','config','setRevisionData','cloudServices.bundleVersion','plugins','getUser','length','updateRevisions','catch','reverse','isPremiumPlugin','connect','_startingVersion','setSource'];_0x2ee5=function(){return _0x273b76;};return _0x2ee5();}import{WebSocketGateway as _0x49dbd2}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x51c159}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x4e2be5,RevisionHistoryService as _0xaf0df7,User as _0x1ddfb9,WEB_SOCKET_GATEWAY_STATES as _0x4b3e4f}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x4b0ce3{static [_0x282942(0x245)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0xaf0df7)());[_0x282942(0x249)];[_0x282942(0x234)];[_0x282942(0x21f)];[_0x282942(0x1f2)];static get[_0x282942(0x1f3)](){const _0x19c245=_0x282942;return[_0x49dbd2,_0x5d384d,_0x19c245(0x244),_0x51c159,_0x30888e];}static get[_0x282942(0x23f)](){const _0x25d178=_0x282942;return _0x25d178(0x243);}static get[_0x282942(0x230)](){return!0x0;}static get[_0x282942(0x216)](){return!0x0;}constructor(_0x4b7213){const _0x163d6c=_0x282942;super(_0x4b7213);const _0x23aaba=this[_0x163d6c(0x22d)][_0x163d6c(0x20d)][_0x163d6c(0x23e)](_0x163d6c(0x25b));this[_0x163d6c(0x249)]=null,this[_0x163d6c(0x234)]=this[_0x163d6c(0x22d)][_0x163d6c(0x210)][_0x163d6c(0x23e)](_0x163d6c(0x237)),this[_0x163d6c(0x21f)]=new CloudServicesRevisionHistoryAdapter[(_0x163d6c(0x245))](_0x23aaba);}async[_0x282942(0x233)](){const _0xcaf2=_0x282942,_0x27d042=this[_0xcaf2(0x22d)][_0xcaf2(0x210)][_0xcaf2(0x23e)](_0x5d384d),_0x4ef1c8=_0x27d042[_0xcaf2(0x263)],_0x1865a7=this[_0xcaf2(0x22d)][_0xcaf2(0x210)][_0xcaf2(0x23e)](_0x49dbd2);this[_0xcaf2(0x234)][_0xcaf2(0x219)]({'history':_0x4ef1c8,'getLatestVersion':()=>this[_0xcaf2(0x241)](),'getCurrentRevisionId':()=>_0x27d042[_0xcaf2(0x23a)]});const _0x2d87ea=this[_0xcaf2(0x22d)][_0xcaf2(0x20d)][_0xcaf2(0x23e)](_0xcaf2(0x20f))||_0x574e7f,_0x107ed4=await _0x4e2be5[_0xcaf2(0x204)](_0x1865a7[_0xcaf2(0x252)],_0x2d87ea);this[_0xcaf2(0x22d)][_0xcaf2(0x210)][_0xcaf2(0x23e)](_0xcaf2(0x244))[_0xcaf2(0x231)]={'getRevision':async({revisionId:_0x5a4396})=>(await this[_0xcaf2(0x22b)](),await this[_0xcaf2(0x21f)][_0xcaf2(0x20c)](_0x5a4396)),'updateRevisions':async _0x5e7084=>{const _0x5979e3=_0xcaf2;await this[_0x5979e3(0x22b)]();const _0x28ad8a=this[_0x5979e3(0x234)][_0x5979e3(0x206)];if(_0x107ed4&&0x1===_0x5e7084[_0x5979e3(0x212)]&&_0x5e7084[0x0]['id']===_0x28ad8a['id'])return _0x5e7084;for(const _0x2da2fe of _0x5e7084)_0x2da2fe['id']===_0x28ad8a['id']&&(_0x2da2fe[_0x5979e3(0x202)]=_0x2da2fe[_0x5979e3(0x209)]===_0x2da2fe[_0x5979e3(0x1f4)]);return this[_0x5979e3(0x21f)][_0x5979e3(0x213)](_0x5e7084,this[_0x5979e3(0x249)])[_0x5979e3(0x200)](_0x4b319c=>(this[_0x5979e3(0x249)]=_0x4b319c,_0x5e7084))[_0x5979e3(0x214)](_0xb17386=>{const _0x1f1700=_0x5979e3;if(et(_0xb17386)||_0x1f1700(0x25c)===_0xb17386[_0x1f1700(0x1f8)]&&void 0x0!==_0xb17386[_0x1f1700(0x238)][_0x1f1700(0x242)]){for(const _0x16838b of _0x5e7084){!this[_0x1f1700(0x234)][_0x1f1700(0x23d)][_0x1f1700(0x20c)](_0x16838b['id'])||this[_0x1f1700(0x234)][_0x1f1700(0x23b)](_0x16838b['id'],_0x16838b,!0x1);}if(et(_0xb17386))throw _0xb17386;return _0x5e7084;}throw _0xb17386;});}},this[_0xcaf2(0x225)](this[_0xcaf2(0x21f)],_0xcaf2(0x22e),(_0x2cd9e5,{revisionsData:_0x233efb,requestId:_0x568958})=>{const _0x4e5e66=_0xcaf2;Math[_0x4e5e66(0x258)](..._0x233efb[_0x4e5e66(0x1f6)](_0x2b446e=>_0x2b446e[_0x4e5e66(0x1f4)]))>this[_0x4e5e66(0x21d)]()-0x1?this[_0x4e5e66(0x241)]()[_0x4e5e66(0x200)](()=>{const _0x3e4a9e=_0x4e5e66;this[_0x3e4a9e(0x22f)](_0x233efb,_0x568958);}):this[_0x4e5e66(0x22f)](_0x233efb,_0x568958);});const {revisions:_0x67e013,requestId:_0x482302}=await this[_0xcaf2(0x21f)][_0xcaf2(0x217)](_0x1865a7[_0xcaf2(0x252)]);_0x1865a7[_0xcaf2(0x20b)](this),this[_0xcaf2(0x249)]=_0x482302,await this[_0xcaf2(0x265)](_0x67e013);for(const _0x13a0b6 of _0x67e013)this[_0xcaf2(0x234)][_0xcaf2(0x221)](_0x13a0b6);this[_0xcaf2(0x225)](_0x27d042,_0xcaf2(0x25d),(_0x4b3587,_0x1258dd,_0x119c53)=>{const _0x4e008c=_0xcaf2;_0x119c53&&(this[_0x4e008c(0x1f2)]=_0x27d042[_0x4e008c(0x226)],_0x4b3587[_0x4e008c(0x205)]());}),this[_0xcaf2(0x234)][_0xcaf2(0x262)](_0xcaf2(0x1f9))['to'](_0x1865a7,_0xcaf2(0x235),_0x55f7c8=>_0x55f7c8===_0x4b3e4f[_0xcaf2(0x22c)]);}async[_0x282942(0x22a)](){const _0x4be65c=_0x282942,_0x51bbf5=this[_0x4be65c(0x22d)][_0x4be65c(0x210)][_0x4be65c(0x23e)](_0x49dbd2),_0x2ba5a5=this[_0x4be65c(0x22d)][_0x4be65c(0x210)][_0x4be65c(0x23e)](_0x5d384d),_0x5dabc4=async()=>{const _0x12aed8=_0x4be65c,_0x29825b=this[_0x12aed8(0x234)][_0x12aed8(0x206)],_0x472386=_0x29825b['id'],_0x32bf29=_0x472386!==_0x2ba5a5[_0x12aed8(0x23a)];if(_0x32bf29){const _0x1e6f4b=_0x2ba5a5[_0x12aed8(0x226)]-this[_0x12aed8(0x1f2)],_0xb291d6=this[_0x12aed8(0x21d)]();this[_0x12aed8(0x234)][_0x12aed8(0x203)][_0x12aed8(0x247)]();if(_0x29825b[_0x12aed8(0x1f4)]+_0x1e6f4b!==_0xb291d6){const _0x441ab8=_0x29825b[_0x12aed8(0x209)]+_0x1e6f4b,_0x25e975=this[_0x12aed8(0x22d)][_0x12aed8(0x210)][_0x12aed8(0x23e)](_0x30888e),_0x4882b5=this[_0x12aed8(0x234)][_0x12aed8(0x25e)]({'revision':_0x29825b,'from':_0x441ab8,'to':_0xb291d6});_0x4882b5['id']=_0x29825b['id'];const _0x5a6cbc=_0x4882b5[_0x12aed8(0x24d)][_0x12aed8(0x1f6)](_0x4f6714=>_0x25e975[_0x12aed8(0x211)](_0x4f6714));_0x29825b[_0x12aed8(0x1fb)]({..._0x4882b5,'authors':_0x5a6cbc},!0x0),this[_0x12aed8(0x234)][_0x12aed8(0x23b)](_0x29825b['id'],_0x4882b5,!0x0);}this[_0x12aed8(0x234)][_0x12aed8(0x218)]=_0xb291d6,(_0x29825b[_0x12aed8(0x1f4)]===_0x29825b[_0x12aed8(0x209)]&&!this[_0x12aed8(0x234)][_0x12aed8(0x201)][_0x12aed8(0x259)](_0x472386)&&this[_0x12aed8(0x234)][_0x12aed8(0x23d)][_0x12aed8(0x229)][_0x12aed8(0x1f1)](_0x472386),this[_0x12aed8(0x234)][_0x12aed8(0x21c)](_0xb291d6));}const {revisions:_0x5e6f1c,requestId:_0x1c82d7}=await this[_0x12aed8(0x21f)][_0x12aed8(0x22a)](_0x51bbf5[_0x12aed8(0x252)],this[_0x12aed8(0x249)]);_0x32bf29&&_0x5e6f1c[_0x12aed8(0x212)]>0x0?_0x2ba5a5[_0x12aed8(0x251)]():(await this[_0x12aed8(0x265)](_0x5e6f1c),this[_0x12aed8(0x22f)](_0x5e6f1c,_0x1c82d7),this[_0x12aed8(0x234)][_0x12aed8(0x253)]());};return _0x2ba5a5[_0x4be65c(0x1fa)]?_0x5dabc4():new Promise((_0x6067b3,_0xe2d93f)=>{const _0x1b9ef1=_0x4be65c;_0x2ba5a5[_0x1b9ef1(0x24f)](_0x1b9ef1(0x25d),()=>{const _0x5808d8=_0x1b9ef1;_0x5dabc4()[_0x5808d8(0x200)](_0x6067b3)[_0x5808d8(0x214)](_0xe2d93f);});});}[_0x282942(0x23c)](){const _0x32c912=_0x282942;super[_0x32c912(0x23c)]();}async[_0x282942(0x22b)](){const _0x3d162e=_0x282942;this[_0x3d162e(0x21f)][_0x3d162e(0x21b)]||await new Promise(_0x7fba4c=>{const _0x30d0dd=_0x3d162e;this[_0x30d0dd(0x225)](this[_0x30d0dd(0x21f)],_0x30d0dd(0x264),_0x2a86ff=>{const _0x1474ae=_0x30d0dd;_0x2a86ff[_0x1474ae(0x205)](),_0x7fba4c();});});}[_0x282942(0x21d)](){const _0x2245a1=_0x282942,_0x5a9c04=this[_0x2245a1(0x22d)][_0x2245a1(0x210)][_0x2245a1(0x23e)](_0x5d384d)[_0x2245a1(0x263)][_0x2245a1(0x223)]()[_0x2245a1(0x215)]();for(const _0x305af7 of _0x5a9c04)if(_0x2245a1(0x20a)!==_0x305af7[_0x2245a1(0x21a)]||_0x305af7[_0x2245a1(0x1fc)])return _0x305af7[_0x2245a1(0x1ff)]+0x1;}[_0x282942(0x241)](){const _0x42c145=_0x282942,_0x334a1c=this[_0x42c145(0x22d)][_0x42c145(0x210)][_0x42c145(0x23e)](_0x5d384d);return new Promise(_0x5e8b3f=>{const _0x263cc2=_0x42c145;_0x334a1c[_0x263cc2(0x1f7)]?_0x334a1c[_0x263cc2(0x24f)](_0x263cc2(0x261),()=>{const _0x175a19=_0x263cc2;_0x5e8b3f(this[_0x175a19(0x21d)]());}):_0x5e8b3f(this[_0x263cc2(0x21d)]());});}[_0x282942(0x22f)](_0x3d55e7,_0x59d818){const _0x4048bf=_0x282942,_0x4854a0=this[_0x4048bf(0x234)][_0x4048bf(0x23d)];this[_0x4048bf(0x249)]=_0x59d818;for(const _0x256d97 of _0x3d55e7){const _0x127e69=_0x4854a0[_0x4048bf(0x20c)](_0x256d97['id']);if(_0x127e69){if((_0x256d97[_0x4048bf(0x209)]||_0x256d97[_0x4048bf(0x1f4)])&&(_0x256d97[_0x4048bf(0x25f)]=null),_0x127e69===this[_0x4048bf(0x234)][_0x4048bf(0x206)]){const _0x3d120b=Math[_0x4048bf(0x258)](_0x127e69[_0x4048bf(0x1f4)],_0x256d97[_0x4048bf(0x1f4)]),_0x4a241f=Math[_0x4048bf(0x258)](_0x127e69[_0x4048bf(0x209)],_0x256d97[_0x4048bf(0x209)]);let _0x28a172;_0x127e69[_0x4048bf(0x1f4)]===_0x256d97[_0x4048bf(0x1f4)]&&_0x127e69[_0x4048bf(0x209)]===_0x256d97[_0x4048bf(0x209)]?(_0x28a172=!0x0,this[_0x4048bf(0x240)](_0x256d97)):_0x256d97[_0x4048bf(0x1f4)]===_0x3d120b&&_0x256d97[_0x4048bf(0x209)]===_0x4a241f?_0x28a172=!0x1:(_0x127e69[_0x4048bf(0x1f4)]===_0x3d120b&&_0x127e69[_0x4048bf(0x209)]===_0x4a241f||this[_0x4048bf(0x208)]({'revision':_0x127e69,'from':_0x4a241f,'to':_0x3d120b}),_0x28a172=!0x0),_0x28a172&&(delete _0x256d97[_0x4048bf(0x209)],delete _0x256d97[_0x4048bf(0x1f4)],delete _0x256d97[_0x4048bf(0x25f)],delete _0x256d97[_0x4048bf(0x25a)],delete _0x256d97[_0x4048bf(0x24d)]);}this[_0x4048bf(0x234)][_0x4048bf(0x20e)](_0x256d97),this[_0x4048bf(0x240)](_0x256d97);}else this[_0x4048bf(0x234)][_0x4048bf(0x221)](_0x256d97);}const _0x49505c=_0x4854a0[_0x4048bf(0x1f5)]();_0x49505c[_0x4048bf(0x215)]();for(let _0x1b094c=0x0;_0x1b094c<_0x49505c[_0x4048bf(0x212)]-0x1;_0x1b094c++){const _0x16f544=_0x49505c[_0x1b094c],_0x13c8b4=_0x49505c[_0x1b094c+0x1];if(_0x16f544[_0x4048bf(0x209)]<_0x13c8b4[_0x4048bf(0x1f4)]){const _0x1d583e=_0x13c8b4[_0x4048bf(0x1f4)],_0x532e38=Math[_0x4048bf(0x258)](_0x1d583e,_0x16f544[_0x4048bf(0x1f4)]);this[_0x4048bf(0x208)]({'revision':_0x16f544,'from':_0x1d583e,'to':_0x532e38});}}}[_0x282942(0x208)]({revision:_0x244c99,from:_0x34f450,to:_0x428547}={}){const _0x53eb1e=_0x282942,_0xd6e72a=this[_0x53eb1e(0x22d)][_0x53eb1e(0x210)][_0x53eb1e(0x23e)](_0x30888e),_0x32b70b=this[_0x53eb1e(0x234)][_0x53eb1e(0x25e)]({'revision':_0x244c99,'from':_0x34f450,'to':_0x428547});_0x32b70b[_0x53eb1e(0x257)]=_0x32b70b[_0x53eb1e(0x24d)][_0x53eb1e(0x1f6)](_0x3b5671=>_0xd6e72a[_0x53eb1e(0x211)](_0x3b5671)),_0x244c99[_0x53eb1e(0x1fb)](_0x32b70b);}[_0x282942(0x240)](_0x3065f8){const _0x34ecaf=_0x282942,_0x4321e7={};_0x4321e7['id']=_0x3065f8['id'];for(const _0x5b4947 of Object[_0x34ecaf(0x228)](_0x3065f8))'id'!==_0x5b4947&&(_0x4321e7[_0x5b4947]=void 0x0);this[_0x34ecaf(0x234)][_0x34ecaf(0x23b)](_0x4321e7['id'],_0x4321e7,!0x0);}async[_0x282942(0x265)](_0x5d22e3){const _0x462130=_0x282942,_0x4c3428=this[_0x462130(0x22d)][_0x462130(0x210)][_0x462130(0x23e)](_0x30888e),{connection:_0x22e9ce}=this[_0x462130(0x22d)][_0x462130(0x210)][_0x462130(0x23e)](_0x49dbd2),_0x44b2b9=new Set();for(const _0x513e78 of _0x5d22e3){for(const _0x1c5aa4 of _0x513e78[_0x462130(0x24d)])_0x33da2f(_0x1c5aa4);_0x513e78[_0x462130(0x232)]&&_0x33da2f(_0x513e78[_0x462130(0x232)]);}if(0x0===_0x44b2b9[_0x462130(0x1fe)])return;const _0x3c06f7=await _0x1ddfb9[_0x462130(0x239)](_0x22e9ce,Array[_0x462130(0x256)](_0x44b2b9));for(const _0x5a0d4b of _0x3c06f7)_0x4c3428[_0x462130(0x211)](_0x5a0d4b['id'])||_0x4c3428[_0x462130(0x207)](_0x5a0d4b);function _0x33da2f(_0x18281c){const _0x32dc5c=_0x462130;_0x4c3428[_0x32dc5c(0x211)](_0x18281c)||_0x44b2b9[_0x32dc5c(0x254)](_0x18281c);}}}function et(_0x1af25c){const _0x439b80=_0x282942;return _0x1af25c[_0x439b80(0x24c)][_0x439b80(0x255)](_0x439b80(0x24b))||_0x1af25c[_0x439b80(0x24c)][_0x439b80(0x255)](_0x439b80(0x222))||_0x1af25c[_0x439b80(0x24c)][_0x439b80(0x255)](_0x439b80(0x220));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x1df6a4=_0x2667;(function(_0xad8ab2,_0x3e7bd7){const _0x9bcfa3=_0x2667,_0x2ac1d3=_0xad8ab2();while(!![]){try{const _0x44e271=parseInt(_0x9bcfa3(0x1b1))/0x1+parseInt(_0x9bcfa3(0x19e))/0x2*(-parseInt(_0x9bcfa3(0x1c3))/0x3)+parseInt(_0x9bcfa3(0x1be))/0x4*(parseInt(_0x9bcfa3(0x1cd))/0x5)+-parseInt(_0x9bcfa3(0x1bc))/0x6+-parseInt(_0x9bcfa3(0x1cb))/0x7+-parseInt(_0x9bcfa3(0x1a5))/0x8+-parseInt(_0x9bcfa3(0x199))/0x9*(-parseInt(_0x9bcfa3(0x1ac))/0xa);if(_0x44e271===_0x3e7bd7)break;else _0x2ac1d3['push'](_0x2ac1d3['shift']());}catch(_0x4b9f94){_0x2ac1d3['push'](_0x2ac1d3['shift']());}}}(_0x5a45,0x826e2));function _0x2667(_0x140bf1,_0x2f2527){const _0x5a4557=_0x5a45();return _0x2667=function(_0x266701,_0x319134){_0x266701=_0x266701-0x191;let _0x201772=_0x5a4557[_0x266701];return _0x201772;},_0x2667(_0x140bf1,_0x2f2527);}import{Plugin as _0x53a53b}from'ckeditor5/src/core.js';import{User as _0x4cf4d3,TrackChangesService as _0x4f86f8}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x117114}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x2a0f72}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x43468f}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x5a45(){const _0x27e906=['83367XDcSuU','_waitForServiceReady','getUser','editor','isPremiumPlugin','1061962cVOpRE','data','from','_trackChangesService','getMany','hasSuggestion','set','3228760UnmNNW','init','collaboration.channelId','size','message','pluginName','suggestionUpdated','500KkraDX','addSuggestionData','startsWith','cloud-services-internal-error:\x20Not\x20connected.','add','1031807elIWAE','TrackChangesService','get','listenTo','CloudServicesTrackChangesAdapter','delete','cloud-services-internal-error:\x20Request\x20timeout.','catch','_bufferedRequests','connect','addUser','5243334kbZXcl','plugins','15940WBsOfj','adapter','reconnect','find','state','3oTwPve','update','originalSuggestionId','connected','config','TrackChangesEditing','then','getSuggestion','1513715kkddFL','isConnected','1335wRwvNB','type','requires','_fetchMissingUsersForThreads','open','attributes','connection','off','isOfficialPlugin','addToReconnectionStack','_saved','values'];_0x5a45=function(){return _0x27e906;};return _0x5a45();}export class CloudServicesTrackChangesAdapter extends _0x53a53b{static [_0x1df6a4(0x1b2)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x4f86f8)());[_0x1df6a4(0x1b9)];[_0x1df6a4(0x1a1)];static get[_0x1df6a4(0x1cf)](){const _0x28d26c=_0x1df6a4;return[_0x2a0f72,_0x28d26c(0x1c8),_0x117114];}static get[_0x1df6a4(0x1aa)](){const _0x3c1415=_0x1df6a4;return _0x3c1415(0x1b5);}static get[_0x1df6a4(0x195)](){return!0x0;}static get[_0x1df6a4(0x19d)](){return!0x0;}constructor(_0x27475f){const _0x32e748=_0x1df6a4;super(_0x27475f);const _0xd0ebc2=this[_0x32e748(0x19c)][_0x32e748(0x1c7)][_0x32e748(0x1b3)](_0x32e748(0x1a7));this[_0x32e748(0x1b9)]=new Map(),this[_0x32e748(0x1a1)]=new CloudServicesTrackChangesAdapter[(_0x32e748(0x1b2))](_0xd0ebc2);}[_0x1df6a4(0x1a6)](){const _0x410edb=_0x1df6a4,_0x95dae2=this[_0x410edb(0x19c)][_0x410edb(0x1bd)][_0x410edb(0x1b3)](_0x117114),_0x429b90=this[_0x410edb(0x19c)][_0x410edb(0x1bd)][_0x410edb(0x1b3)](_0x410edb(0x1c8));return _0x429b90[_0x410edb(0x1bf)]={'getSuggestion':async _0x553dc7=>{const _0x33e522=_0x410edb;await this[_0x33e522(0x19a)]();const _0x59ff8e=await this[_0x33e522(0x1a1)][_0x33e522(0x1b3)](_0x553dc7)[_0x33e522(0x1b8)](A);return await this[_0x33e522(0x1d0)]([_0x59ff8e]),_0x59ff8e;},'addSuggestion':async({id:_0x57b41e,type:_0x44727c,data:_0x32c511,originalSuggestionId:_0x252c7b,attributes:_0x3db9b8})=>{const _0x127302=_0x410edb;await this[_0x127302(0x19a)]();const _0x16aab2={'id':_0x57b41e,'type':_0x44727c,'data':_0x32c511,'originalSuggestionId':_0x252c7b,'attributes':_0x3db9b8},_0x51f8a4=await this[_0x127302(0x1a1)][_0x127302(0x1b0)](_0x57b41e,_0x44727c,_0x32c511,_0x252c7b,_0x3db9b8)[_0x127302(0x1b8)](_0x596238=>{if(et(_0x596238))return new Promise(_0x54dd1=>{const _0x48e49d=_0x2667;this[_0x48e49d(0x1b9)][_0x48e49d(0x1a4)](_0x57b41e,{'resolve':_0x54dd1,'suggestionData':_0x16aab2});});throw _0x596238;});return this[_0x127302(0x1b9)][_0x127302(0x1b6)](_0x57b41e),_0x51f8a4;},'updateSuggestion':async(_0x416db7,_0x43d05c)=>{const _0x35a904=_0x410edb;if(await this[_0x35a904(0x19a)](),_0x35a904(0x191)!==_0x43d05c[_0x35a904(0x1c2)])return this[_0x35a904(0x1a1)][_0x35a904(0x1c4)](_0x416db7,_0x43d05c)[_0x35a904(0x1b8)](A);}},this[_0x410edb(0x1b4)](this[_0x410edb(0x1a1)],_0x410edb(0x1ab),(_0x1fe3b4,_0x4d9f6d)=>{const _0x19409e=_0x410edb;_0x429b90[_0x19409e(0x1a3)](_0x4d9f6d['id'])&&(_0x429b90[_0x19409e(0x1ca)](_0x4d9f6d['id'])[_0x19409e(0x192)]=_0x4d9f6d[_0x19409e(0x192)]);}),this[_0x410edb(0x1a1)][_0x410edb(0x1ba)](_0x95dae2[_0x410edb(0x193)])[_0x410edb(0x1c9)](_0x1aaa33=>(_0x95dae2[_0x410edb(0x196)](this),this[_0x410edb(0x1d0)](_0x1aaa33)[_0x410edb(0x1c9)](()=>{const _0x54d10d=_0x410edb;for(const _0x4f074d of _0x1aaa33){_0x429b90[_0x54d10d(0x1ad)](_0x4f074d)[_0x54d10d(0x197)]=!0x0;}})));}async[_0x1df6a4(0x1c0)](){const _0x26ee04=_0x1df6a4,_0x399bdb=this[_0x26ee04(0x19c)][_0x26ee04(0x1bd)][_0x26ee04(0x1b3)](_0x26ee04(0x1c8)),{connection:_0x36a934}=this[_0x26ee04(0x19c)][_0x26ee04(0x1bd)][_0x26ee04(0x1b3)](_0x117114),_0x20e4a0=await this[_0x26ee04(0x1a1)][_0x26ee04(0x1ba)](_0x36a934);await this[_0x26ee04(0x1d0)](_0x20e4a0);for(const {suggestionData:_0x1fdcbc,resolve:_0x5514e1}of this[_0x26ee04(0x1b9)][_0x26ee04(0x198)]()){let _0x2f8de1=_0x20e4a0[_0x26ee04(0x1c1)](_0x308285=>_0x308285['id']===_0x1fdcbc['id']);_0x2f8de1||(_0x2f8de1=await this[_0x26ee04(0x1a1)][_0x26ee04(0x1b0)](_0x1fdcbc['id'],_0x1fdcbc[_0x26ee04(0x1ce)],_0x1fdcbc[_0x26ee04(0x19f)],_0x1fdcbc[_0x26ee04(0x1c5)])),_0x5514e1(_0x2f8de1);}for(const _0xea5e17 of _0x20e4a0)_0x399bdb[_0x26ee04(0x1a3)](_0xea5e17['id'])||_0x399bdb[_0x26ee04(0x1ad)](_0xea5e17);}async[_0x1df6a4(0x19a)](){const _0x543a3b=_0x1df6a4;this[_0x543a3b(0x1a1)][_0x543a3b(0x1cc)]||await new Promise(_0x3920c1=>{const _0x4279e6=_0x543a3b;this[_0x4279e6(0x1b4)](this[_0x4279e6(0x1a1)],_0x4279e6(0x1c6),_0x29a299=>{const _0x55fdcc=_0x4279e6;_0x29a299[_0x55fdcc(0x194)](),_0x3920c1();});});}async[_0x1df6a4(0x1d0)](_0x53c14d){const _0x25057e=_0x1df6a4,_0xe7f3e8=this[_0x25057e(0x19c)][_0x25057e(0x1bd)][_0x25057e(0x1b3)](_0x43468f),{connection:_0x20c5d0}=this[_0x25057e(0x19c)][_0x25057e(0x1bd)][_0x25057e(0x1b3)](_0x117114),_0x5c85c7=new Set();for(const {authorId:_0x5dfe08}of _0x53c14d)_0xe7f3e8[_0x25057e(0x19b)](_0x5dfe08)||_0x5c85c7[_0x25057e(0x1b0)](_0x5dfe08);if(0x0===_0x5c85c7[_0x25057e(0x1a8)])return;const _0xb8bfa9=await _0x4cf4d3[_0x25057e(0x1a2)](_0x20c5d0,Array[_0x25057e(0x1a0)](_0x5c85c7));for(const _0x2cb9db of _0xb8bfa9)_0xe7f3e8[_0x25057e(0x19b)](_0x2cb9db['id'])||_0xe7f3e8[_0x25057e(0x1bb)](_0x2cb9db);}}function A(_0x149c2a){if(et(_0x149c2a))return new Promise(()=>{});throw _0x149c2a;}function et(_0xe108b9){const _0x6f3f3f=_0x1df6a4;return _0xe108b9[_0x6f3f3f(0x1a9)][_0x6f3f3f(0x1ae)](_0x6f3f3f(0x1af))||_0xe108b9[_0x6f3f3f(0x1a9)][_0x6f3f3f(0x1ae)](_0x6f3f3f(0x1b7));}
|