@ckeditor/ckeditor5-real-time-collaboration 43.2.0-alpha.3 → 43.2.0-alpha.5
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 +1 -1
- package/dist/index.js +6 -6
- package/package.json +9 -9
- package/src/presencelist/view/presencecounterview.js +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +1 -1
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +1 -1
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +1 -1
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +1 -1
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3dfaff=_0x3420;(function(_0x1c7a22,_0x563d4f){const _0x1de580=_0x3420,_0x4d08e6=_0x1c7a22();while(!![]){try{const _0x38958f=-parseInt(_0x1de580(0x186))/0x1+parseInt(_0x1de580(0x160))/0x2+parseInt(_0x1de580(0x15e))/0x3*(-parseInt(_0x1de580(0x188))/0x4)+parseInt(_0x1de580(0x17c))/0x5*(-parseInt(_0x1de580(0x177))/0x6)+-parseInt(_0x1de580(0x165))/0x7+-parseInt(_0x1de580(0x18a))/0x8+-parseInt(_0x1de580(0x179))/0x9*(-parseInt(_0x1de580(0x166))/0xa);if(_0x38958f===_0x563d4f)break;else _0x4d08e6['push'](_0x4d08e6['shift']());}catch(_0x38f6bc){_0x4d08e6['push'](_0x4d08e6['shift']());}}}(_0xbcd2,0x7b7da));import{ContextPlugin as _0x1aff7e}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x246bf5,CKEditorError as _0x14c1c1}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x8ff54b,WEB_SOCKET_GATEWAY_STATES as _0x1d689d}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x38b904}from'ckeditor5/src/ui.js';function _0xbcd2(){const _0x2a10e6=['99588AJlakI','limitExceeded','4921720wyNQfz','CloudServices','initialReconnectionInterval','Connected\x20users\x20limit\x20exceeded','reconnect','_reconnect','bind','DISCONNECTED','error','define','addToReconnectionStack','delete','change:me','pluginName','function','removeFromReconnectionStack','_domEmitter','catch','config','stopListening','token','webSocketUrl','WebSocketGateway','websocketgateway-plugin-already-registered','from','state','cloudServices.connectionTimeout','_reconnectionStack','cloudservices-init','93ZfOgCX','init','985944eqziiA','constructor','all','cloudServices.requestTimeout','get','1556163GZglLM','870qYhaCI','online','websocketgateway-invalid-plugin-interface','connected','_shouldPluginsReconnect','real-time-collaboration','plugins','listenTo','then','connection','websocketgateway-missing-token','add','context','disconnect','websocketgateway-missing-websocket-url','code','destroy','18LqNKxI','requires','297162RYcHsv','showWarning','set','1456270fMRzUn','cloudservices-reconnection-error','isInReconnectionStack','_isBrowserOffline','offline','has','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.','CONNECTING','create','CONNECTED','376627eNugGY','connect'];_0xbcd2=function(){return _0x2a10e6;};return _0xbcd2();}function _0x3420(_0x16f8a4,_0x46ecc6){const _0xbcd2ea=_0xbcd2();return _0x3420=function(_0x342011,_0x510240){_0x342011=_0x342011-0x143;let _0x4eba39=_0xbcd2ea[_0x342011];return _0x4eba39;},_0x3420(_0x16f8a4,_0x46ecc6);}class c extends _0x1aff7e{static get[_0x3dfaff(0x178)](){const _0x5e5894=_0x3dfaff;return[_0x5e5894(0x18b),_0x38b904];}static get[_0x3dfaff(0x14e)](){const _0x3edf6d=_0x3dfaff;return _0x3edf6d(0x157);}constructor(_0x1cdeb9){const _0x45093=_0x3dfaff;super(_0x1cdeb9),this[_0x45093(0x17b)](_0x45093(0x15a),_0x1d689d[_0x45093(0x185)]),this[_0x45093(0x17b)](_0x45093(0x17f),!0x1),this[_0x45093(0x15c)]=new Set(),this[_0x45093(0x16a)]=!0x1,this[_0x45093(0x151)]=Object[_0x45093(0x184)](_0x246bf5);}[_0x3dfaff(0x15f)](){const _0x5b39dc=_0x3dfaff,_0x56eef4=this[_0x5b39dc(0x172)],_0x209db1=_0x56eef4[_0x5b39dc(0x16c)][_0x5b39dc(0x164)](_0x5b39dc(0x18b)),_0x1bd267=_0x56eef4[_0x5b39dc(0x16c)][_0x5b39dc(0x164)](_0x38b904);if(!_0x209db1[_0x5b39dc(0x155)])throw new _0x14c1c1(_0x5b39dc(0x170),this);if(!_0x209db1[_0x5b39dc(0x156)])throw new _0x14c1c1(_0x5b39dc(0x174),this);return this[_0x5b39dc(0x151)][_0x5b39dc(0x16d)](window,_0x5b39dc(0x180),()=>this[_0x5b39dc(0x17f)]=!0x0),this[_0x5b39dc(0x151)][_0x5b39dc(0x16d)](window,_0x5b39dc(0x167),()=>this[_0x5b39dc(0x17f)]=!0x1),this[_0x5b39dc(0x172)][_0x5b39dc(0x153)][_0x5b39dc(0x14a)](_0x5b39dc(0x15b),0xa),this[_0x5b39dc(0x172)][_0x5b39dc(0x153)][_0x5b39dc(0x14a)](_0x5b39dc(0x163),0x14),c[_0x5b39dc(0x157)][_0x5b39dc(0x187)](_0x209db1[_0x5b39dc(0x155)],_0x209db1[_0x5b39dc(0x156)],{'timeout':0x3e8*this[_0x5b39dc(0x172)][_0x5b39dc(0x153)][_0x5b39dc(0x164)](_0x5b39dc(0x15b)),'requestTimeout':0x3e8*this[_0x5b39dc(0x172)][_0x5b39dc(0x153)][_0x5b39dc(0x164)](_0x5b39dc(0x163))})[_0x5b39dc(0x16e)](_0x598942=>{const _0x9dad9a=_0x5b39dc;if(this[_0x9dad9a(0x16f)]=_0x598942,this[_0x9dad9a(0x147)](_0x9dad9a(0x15a))['to'](_0x598942,_0x9dad9a(0x15a),this,_0x9dad9a(0x17f),(_0x2b1979,_0x3944bb)=>(_0x9dad9a(0x169)!==_0x2b1979&&(this[_0x9dad9a(0x16a)]=!0x0),_0x3944bb||_0x2b1979!==_0x1d689d[_0x9dad9a(0x185)]?_0x1d689d[_0x9dad9a(0x148)]:this[_0x9dad9a(0x15a)]==_0x1d689d[_0x9dad9a(0x148)]&&this[_0x9dad9a(0x16a)]?(this[_0x9dad9a(0x16a)]=!0x1,this[_0x9dad9a(0x146)](),_0x1d689d[_0x9dad9a(0x183)]):_0x1d689d[_0x9dad9a(0x185)])),this[_0x9dad9a(0x16f)]['on'](_0x9dad9a(0x149),(_0x98509a,_0x555e28)=>{const _0x3f6538=_0x9dad9a;if(_0x3f6538(0x189)!==_0x555e28[_0x3f6538(0x175)])throw console[_0x3f6538(0x149)](_0x555e28),new _0x14c1c1(_0x3f6538(0x15d),null,{'originalError':_0x555e28});_0x1bd267[_0x3f6538(0x17a)](_0x3f6538(0x182),{'title':_0x3f6538(0x144),'namespace':_0x3f6538(0x16b)});}),!_0x598942['me'])return new Promise(_0x434f47=>_0x598942['on'](_0x9dad9a(0x14d),_0x434f47));})[_0x5b39dc(0x152)](_0x4ab918=>{const _0x4456e8=_0x5b39dc;throw console[_0x4456e8(0x149)](_0x4ab918),new _0x14c1c1(_0x4456e8(0x15d),null,{'originalError':_0x4ab918});});}[_0x3dfaff(0x14b)](_0x23f7fe){const _0xfab8af=_0x3dfaff;if(_0xfab8af(0x14f)!=typeof _0x23f7fe[_0xfab8af(0x145)])throw new _0x14c1c1(_0xfab8af(0x168),this);if(this[_0xfab8af(0x17e)](_0x23f7fe))throw new _0x14c1c1(_0xfab8af(0x158),this,{'name':_0x23f7fe[_0xfab8af(0x161)][_0xfab8af(0x14e)]});this[_0xfab8af(0x15c)][_0xfab8af(0x171)](_0x23f7fe);}[_0x3dfaff(0x150)](_0x5d0f9d){const _0x5a4f7e=_0x3dfaff;this[_0x5a4f7e(0x15c)][_0x5a4f7e(0x14c)](_0x5d0f9d);}[_0x3dfaff(0x17e)](_0x310180){const _0x771c69=_0x3dfaff;return this[_0x771c69(0x15c)][_0x771c69(0x181)](_0x310180);}[_0x3dfaff(0x146)](){const _0x1e2a88=_0x3dfaff;return this[_0x1e2a88(0x16f)][_0x1e2a88(0x145)]()[_0x1e2a88(0x16e)](()=>Promise[_0x1e2a88(0x162)](Array[_0x1e2a88(0x159)](this[_0x1e2a88(0x15c)],_0x5d5bf6=>_0x5d5bf6[_0x1e2a88(0x145)]())))[_0x1e2a88(0x16e)](()=>this[_0x1e2a88(0x15a)]=_0x1d689d[_0x1e2a88(0x185)])[_0x1e2a88(0x152)](_0x423ed1=>{const _0x25b0e3=_0x1e2a88;throw console[_0x25b0e3(0x149)](_0x423ed1),new _0x14c1c1(_0x25b0e3(0x17d),this[_0x25b0e3(0x172)]);});}[_0x3dfaff(0x176)](){const _0x1f8faf=_0x3dfaff;this[_0x1f8faf(0x16f)]&&this[_0x1f8faf(0x16f)][_0x1f8faf(0x173)](),this[_0x1f8faf(0x15a)]=_0x1d689d[_0x1f8faf(0x148)],this[_0x1f8faf(0x151)][_0x1f8faf(0x154)](),super[_0x1f8faf(0x176)]();}}c[_0x3dfaff(0x157)]=_0x8ff54b,c[_0x3dfaff(0x143)]=0x3e8;export default c;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x444d56=_0x2564;(function(_0x91c28d,_0x33eed9){const _0x211ed0=_0x2564,_0x5c7814=_0x91c28d();while(!![]){try{const _0x351376=-parseInt(_0x211ed0(0x11f))/0x1*(parseInt(_0x211ed0(0x10b))/0x2)+-parseInt(_0x211ed0(0xfa))/0x3+-parseInt(_0x211ed0(0xf7))/0x4+-parseInt(_0x211ed0(0x109))/0x5*(-parseInt(_0x211ed0(0x123))/0x6)+-parseInt(_0x211ed0(0xff))/0x7+-parseInt(_0x211ed0(0xee))/0x8+parseInt(_0x211ed0(0x139))/0x9;if(_0x351376===_0x33eed9)break;else _0x5c7814['push'](_0x5c7814['shift']());}catch(_0x596345){_0x5c7814['push'](_0x5c7814['shift']());}}}(_0x2fa5,0xad8ec));function _0x2fa5(){const _0x1bf355=['2046368jiTTwh','change:_isPendingUpdate','_revisionTracker','785628qRUSlN','code','_fixRevision','setSource','_isConnected','9824444ziUIem','_revisionDataBuilder','fromVersion','data','getUser','bind','_createCurrentRevision','length','revisionsUpdated','_bufferUpdate','2500985JqIoYr','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','66DNWRfa','creatorId','getRevision','affectsData','RevisionHistoryService','_revisions','isEnabled','max','isBundleUploaded','plugins','_handleRevisionsUpdate','init','sessionId','get','wrongRequestId','connection','cloud-services-internal-error:\x20Request\x20timeout.','_startingVersion','_getLatestVersionFromServerOperations','off','14620yTfYiq','getMany','CONNECTED','_bufferedUpdates','12qCZNZx','change:_isConnected','_fetchMissingUsers','authors','reverse','type','adapter','_getLatestVersion','isConnected','updateRevisions','startsWith','keys','addToReconnectionStack','_handleReconnectionError','serverHistory','getRevisions','_update','from','createdAt','size','state','reconnect','25677342qIBmUj','_lastRequestId','isEmptyCurrent','toVersion','remove','_offset','cloud-services-internal-error:\x20Not\x20connected.','map','_oldOffset','reInit','message','sendBufferedUpdates','repository','connect','listenTo','baseVersion','collaboration.channelId','addRevisionData','config','setRevisionData','buildRevisionData','getOperations','connected','has','catch','marker','_preventResendingRevisionData','destroy','authorsIds','400','_isPendingUpdate','currentRevision','cloudServices.bundleVersion','requires','then','3864960YBiLkV','editor','_revisionHistoryService','_waitForServiceReady','diffData','addUser','once','add','RevisionTracker'];_0x2fa5=function(){return _0x1bf355;};return _0x2fa5();}import{Plugin as _0x54b266}from'ckeditor5/src/core.js';import{version as _0x4e8b50}from'ckeditor5/src/utils.js';import{Users as _0x4e0dff}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x94b1cc from'../realtimecollaborativeediting/realtimecollaborationclient.js';import _0xfa60ba from'../realtimecollaborativeediting/websocketgateway.js';function _0x2564(_0x4b258f,_0x5a2093){const _0x2fa555=_0x2fa5();return _0x2564=function(_0x256458,_0x34c444){_0x256458=_0x256458-0xcd;let _0xb10e76=_0x2fa555[_0x256458];return _0xb10e76;},_0x2564(_0x4b258f,_0x5a2093);}import _0x17e437 from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x997e8d,RevisionHistoryService as _0x5604a7,User as _0x4484e3,WEB_SOCKET_GATEWAY_STATES as _0x53c09e}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class v extends _0x54b266{static get[_0x444d56(0xec)](){const _0x1cc28a=_0x444d56;return[_0xfa60ba,_0x94b1cc,_0x1cc28a(0xf6),_0x17e437,_0x4e0dff];}constructor(_0x1c7c7c){const _0x4d02fd=_0x444d56;super(_0x1c7c7c);const _0x38cfaf=this[_0x4d02fd(0xef)][_0x4d02fd(0xdd)][_0x4d02fd(0x118)](_0x4d02fd(0xdb));this[_0x4d02fd(0x13a)]=null,this[_0x4d02fd(0xf9)]=this[_0x4d02fd(0xef)][_0x4d02fd(0x114)][_0x4d02fd(0x118)](_0x4d02fd(0xf6)),this[_0x4d02fd(0xf0)]=new v[(_0x4d02fd(0x10f))](_0x38cfaf);}async[_0x444d56(0x116)](){const _0x25f9d5=_0x444d56,_0x1f63a3=this[_0x25f9d5(0xef)][_0x25f9d5(0x114)][_0x25f9d5(0x118)](_0x94b1cc),_0x307c5c=_0x1f63a3[_0x25f9d5(0x131)],_0x3299d0=this[_0x25f9d5(0xef)][_0x25f9d5(0x114)][_0x25f9d5(0x118)](_0xfa60ba);this[_0x25f9d5(0xf9)][_0x25f9d5(0xfd)]({'history':_0x307c5c,'getLatestVersion':()=>this[_0x25f9d5(0x12a)](),'getCurrentRevisionId':()=>_0x1f63a3[_0x25f9d5(0x117)]});const _0x4ee98b=this[_0x25f9d5(0xef)][_0x25f9d5(0xdd)][_0x25f9d5(0x118)](_0x25f9d5(0xeb))||_0x4e8b50,_0x7a9c28=await _0x997e8d[_0x25f9d5(0x113)](_0x3299d0[_0x25f9d5(0x11a)],_0x4ee98b);this[_0x25f9d5(0xf9)][_0x25f9d5(0x129)]={'getRevision':async({revisionId:_0x499f6d})=>(await this[_0x25f9d5(0xf1)](),await this[_0x25f9d5(0xf0)][_0x25f9d5(0x10d)](_0x499f6d)),'updateRevisions':async _0x2139ef=>{const _0x1ae534=_0x25f9d5;await this[_0x1ae534(0xf1)]();const _0x24cc45=this[_0x1ae534(0xf9)][_0x1ae534(0xea)];if(_0x7a9c28&&0x1===_0x2139ef[_0x1ae534(0x106)]&&_0x2139ef[0x0]['id']===_0x24cc45['id'])return _0x2139ef;for(const _0x33f64a of _0x2139ef)_0x33f64a['id']===_0x24cc45['id']&&(_0x33f64a[_0x1ae534(0xcd)]=_0x33f64a[_0x1ae534(0x101)]===_0x33f64a[_0x1ae534(0xce)]);return this[_0x1ae534(0xf0)][_0x1ae534(0x12c)](_0x2139ef,this[_0x1ae534(0x13a)])[_0x1ae534(0xed)](_0x311b9b=>(this[_0x1ae534(0x13a)]=_0x311b9b,_0x2139ef))[_0x1ae534(0xe3)](_0x33f8f8=>{const _0x161da1=_0x1ae534;if(rt(_0x33f8f8)||_0x161da1(0xe8)===_0x33f8f8[_0x161da1(0xfb)]&&void 0x0!==_0x33f8f8[_0x161da1(0x102)][_0x161da1(0x119)]){for(const _0x1c6b62 of _0x2139ef){!this[_0x161da1(0xf9)][_0x161da1(0xd7)][_0x161da1(0x10d)](_0x1c6b62['id'])||this[_0x161da1(0xf9)][_0x161da1(0x108)](_0x1c6b62['id'],_0x1c6b62,!0x1);}if(rt(_0x33f8f8))throw _0x33f8f8;return _0x2139ef;}throw _0x33f8f8;});}},this[_0x25f9d5(0xd9)](this[_0x25f9d5(0xf0)],_0x25f9d5(0x107),(_0x110d5a,{revisionsData:_0x3ba2e4,requestId:_0x1e3fbd})=>{const _0x119d47=_0x25f9d5;Math[_0x119d47(0x112)](..._0x3ba2e4[_0x119d47(0xd2)](_0x2ea293=>_0x2ea293[_0x119d47(0xce)]))>this[_0x119d47(0x11d)]()-0x1?this[_0x119d47(0x12a)]()[_0x119d47(0xed)](()=>{const _0x3c471b=_0x119d47;this[_0x3c471b(0x115)](_0x3ba2e4,_0x1e3fbd);}):this[_0x119d47(0x115)](_0x3ba2e4,_0x1e3fbd);});const {revisions:_0x19c518,requestId:_0x40ec7f}=await this[_0x25f9d5(0xf0)][_0x25f9d5(0xd8)](_0x3299d0[_0x25f9d5(0x11a)]);_0x3299d0[_0x25f9d5(0x12f)](this),this[_0x25f9d5(0x13a)]=_0x40ec7f,await this[_0x25f9d5(0x125)](_0x19c518);for(const _0x532f2d of _0x19c518)this[_0x25f9d5(0xf9)][_0x25f9d5(0xdc)](_0x532f2d);this[_0x25f9d5(0xd9)](_0x1f63a3,_0x25f9d5(0x124),(_0x492be0,_0x1ec2b7,_0x3cb2f6)=>{const _0x710ae9=_0x25f9d5;_0x3cb2f6&&(this[_0x710ae9(0xd3)]=_0x1f63a3[_0x710ae9(0xd0)],_0x492be0[_0x710ae9(0x11e)]());}),this[_0x25f9d5(0xf9)][_0x25f9d5(0x104)](_0x25f9d5(0x111))['to'](_0x3299d0,_0x25f9d5(0x137),_0x14b345=>_0x14b345===_0x53c09e[_0x25f9d5(0x121)]);}async[_0x444d56(0x138)](){const _0x289514=_0x444d56,_0x1fe952=this[_0x289514(0xef)][_0x289514(0x114)][_0x289514(0x118)](_0xfa60ba),_0x5a6dc5=this[_0x289514(0xef)][_0x289514(0x114)][_0x289514(0x118)](_0x94b1cc),_0x2721b7=async()=>{const _0x2a6d56=_0x289514,_0x4c642f=this[_0x2a6d56(0xf9)][_0x2a6d56(0xea)],_0x597f1a=_0x4c642f['id'],_0x3c423d=_0x597f1a!==_0x5a6dc5[_0x2a6d56(0x117)];if(_0x3c423d){const _0x35464d=_0x5a6dc5[_0x2a6d56(0xd0)]-this[_0x2a6d56(0xd3)],_0xfa4b21=this[_0x2a6d56(0x11d)]();this[_0x2a6d56(0xf9)][_0x2a6d56(0x100)][_0x2a6d56(0xd4)]();if(_0x4c642f[_0x2a6d56(0xce)]+_0x35464d!==_0xfa4b21){const _0x49250f=_0x4c642f[_0x2a6d56(0x101)]+_0x35464d,_0x34bffb=this[_0x2a6d56(0xef)][_0x2a6d56(0x114)][_0x2a6d56(0x118)](_0x4e0dff),_0x51b3e4=this[_0x2a6d56(0xf9)][_0x2a6d56(0xdf)]({'revision':_0x4c642f,'from':_0x49250f,'to':_0xfa4b21});_0x51b3e4['id']=_0x4c642f['id'];const _0x267e3f=_0x51b3e4[_0x2a6d56(0xe7)][_0x2a6d56(0xd2)](_0x4e995a=>_0x34bffb[_0x2a6d56(0x103)](_0x4e995a));_0x4c642f[_0x2a6d56(0x133)]({..._0x51b3e4,'authors':_0x267e3f},!0x0),this[_0x2a6d56(0xf9)][_0x2a6d56(0x108)](_0x4c642f['id'],_0x51b3e4,!0x0);}this[_0x2a6d56(0xf9)][_0x2a6d56(0x11c)]=_0xfa4b21,(_0x4c642f[_0x2a6d56(0xce)]===_0x4c642f[_0x2a6d56(0x101)]&&!this[_0x2a6d56(0xf9)][_0x2a6d56(0x122)][_0x2a6d56(0xe2)](_0x597f1a)&&this[_0x2a6d56(0xf9)][_0x2a6d56(0xd7)][_0x2a6d56(0x110)][_0x2a6d56(0xcf)](_0x597f1a),this[_0x2a6d56(0xf9)][_0x2a6d56(0x105)](_0xfa4b21));}const {revisions:_0x5e86eb,requestId:_0x523d23}=await this[_0x2a6d56(0xf0)][_0x2a6d56(0x138)](_0x1fe952[_0x2a6d56(0x11a)],this[_0x2a6d56(0x13a)]);_0x3c423d&&_0x5e86eb[_0x2a6d56(0x106)]>0x0?_0x5a6dc5[_0x2a6d56(0x130)]():(await this[_0x2a6d56(0x125)](_0x5e86eb),this[_0x2a6d56(0x115)](_0x5e86eb,_0x523d23),this[_0x2a6d56(0xf9)][_0x2a6d56(0xd6)]());};return _0x5a6dc5[_0x289514(0xfe)]?_0x2721b7():new Promise((_0x5cb67b,_0x56af7f)=>{const _0x2fdfd2=_0x289514;_0x5a6dc5[_0x2fdfd2(0xf4)](_0x2fdfd2(0x124),()=>{const _0x59e3d6=_0x2fdfd2;_0x2721b7()[_0x59e3d6(0xed)](_0x5cb67b)[_0x59e3d6(0xe3)](_0x56af7f);});});}[_0x444d56(0xe6)](){const _0x442201=_0x444d56;super[_0x442201(0xe6)]();}async[_0x444d56(0xf1)](){const _0x1e8c5f=_0x444d56;this[_0x1e8c5f(0xf0)][_0x1e8c5f(0x12b)]||await new Promise(_0x5810c9=>{const _0x572422=_0x1e8c5f;this[_0x572422(0xd9)](this[_0x572422(0xf0)],_0x572422(0xe1),_0x2f1d53=>{const _0x22330f=_0x572422;_0x2f1d53[_0x22330f(0x11e)](),_0x5810c9();});});}[_0x444d56(0x11d)](){const _0x45232d=_0x444d56,_0x434992=this[_0x45232d(0xef)][_0x45232d(0x114)][_0x45232d(0x118)](_0x94b1cc)[_0x45232d(0x131)][_0x45232d(0xe0)]()[_0x45232d(0x127)]();for(const _0x5e6933 of _0x434992)if(_0x45232d(0xe4)!==_0x5e6933[_0x45232d(0x128)]||_0x5e6933[_0x45232d(0x10e)])return _0x5e6933[_0x45232d(0xda)]+0x1;}[_0x444d56(0x12a)](){const _0x2719e5=_0x444d56,_0x1fa556=this[_0x2719e5(0xef)][_0x2719e5(0x114)][_0x2719e5(0x118)](_0x94b1cc);return new Promise(_0x9b7f69=>{const _0x4506f2=_0x2719e5;_0x1fa556[_0x4506f2(0xe9)]?_0x1fa556[_0x4506f2(0xf4)](_0x4506f2(0xf8),()=>{const _0x1ddfd4=_0x4506f2;_0x9b7f69(this[_0x1ddfd4(0x11d)]());}):_0x9b7f69(this[_0x4506f2(0x11d)]());});}[_0x444d56(0x115)](_0x21dd84,_0x346528){const _0x11156b=_0x444d56,_0x1a1bb3=this[_0x11156b(0xf9)][_0x11156b(0xd7)];this[_0x11156b(0x13a)]=_0x346528;for(const _0x2d24b6 of _0x21dd84){const _0x3ca28=_0x1a1bb3[_0x11156b(0x10d)](_0x2d24b6['id']);if(_0x3ca28){if((_0x2d24b6[_0x11156b(0x101)]||_0x2d24b6[_0x11156b(0xce)])&&(_0x2d24b6[_0x11156b(0xf2)]=null),_0x3ca28===this[_0x11156b(0xf9)][_0x11156b(0xea)]){const _0x43fddc=Math[_0x11156b(0x112)](_0x3ca28[_0x11156b(0xce)],_0x2d24b6[_0x11156b(0xce)]),_0x44f566=Math[_0x11156b(0x112)](_0x3ca28[_0x11156b(0x101)],_0x2d24b6[_0x11156b(0x101)]);let _0x3805cb;_0x3ca28[_0x11156b(0xce)]===_0x2d24b6[_0x11156b(0xce)]&&_0x3ca28[_0x11156b(0x101)]===_0x2d24b6[_0x11156b(0x101)]?(_0x3805cb=!0x0,this[_0x11156b(0xe5)](_0x2d24b6)):_0x2d24b6[_0x11156b(0xce)]===_0x43fddc&&_0x2d24b6[_0x11156b(0x101)]===_0x44f566?_0x3805cb=!0x1:(_0x3ca28[_0x11156b(0xce)]===_0x43fddc&&_0x3ca28[_0x11156b(0x101)]===_0x44f566||this[_0x11156b(0xfc)]({'revision':_0x3ca28,'from':_0x44f566,'to':_0x43fddc}),_0x3805cb=!0x0),_0x3805cb&&(delete _0x2d24b6[_0x11156b(0x101)],delete _0x2d24b6[_0x11156b(0xce)],delete _0x2d24b6[_0x11156b(0xf2)],delete _0x2d24b6[_0x11156b(0x135)],delete _0x2d24b6[_0x11156b(0xe7)]);}this[_0x11156b(0xf9)][_0x11156b(0xde)](_0x2d24b6),this[_0x11156b(0xe5)](_0x2d24b6);}else this[_0x11156b(0xf9)][_0x11156b(0xdc)](_0x2d24b6);}const _0x224e28=_0x1a1bb3[_0x11156b(0x132)]();_0x224e28[_0x11156b(0x127)]();for(let _0x3d1e3a=0x0;_0x3d1e3a<_0x224e28[_0x11156b(0x106)]-0x1;_0x3d1e3a++){const _0x329964=_0x224e28[_0x3d1e3a],_0x329a2e=_0x224e28[_0x3d1e3a+0x1];if(_0x329964[_0x11156b(0x101)]<_0x329a2e[_0x11156b(0xce)]){const _0x2acbf6=_0x329a2e[_0x11156b(0xce)],_0x24eaa4=Math[_0x11156b(0x112)](_0x2acbf6,_0x329964[_0x11156b(0xce)]);this[_0x11156b(0xfc)]({'revision':_0x329964,'from':_0x2acbf6,'to':_0x24eaa4});}}}[_0x444d56(0xfc)]({revision:_0x3b07ab,from:_0x24dd1b,to:_0x4e6dec}={}){const _0x43f1d8=_0x444d56,_0x30085a=this[_0x43f1d8(0xef)][_0x43f1d8(0x114)][_0x43f1d8(0x118)](_0x4e0dff),_0x4e23a5=this[_0x43f1d8(0xf9)][_0x43f1d8(0xdf)]({'revision':_0x3b07ab,'from':_0x24dd1b,'to':_0x4e6dec});_0x4e23a5[_0x43f1d8(0x126)]=_0x4e23a5[_0x43f1d8(0xe7)][_0x43f1d8(0xd2)](_0x3d161e=>_0x30085a[_0x43f1d8(0x103)](_0x3d161e)),_0x3b07ab[_0x43f1d8(0x133)](_0x4e23a5);}[_0x444d56(0xe5)](_0x19ae50){const _0x343456=_0x444d56,_0x7153d2={};_0x7153d2['id']=_0x19ae50['id'];for(const _0x721be8 of Object[_0x343456(0x12e)](_0x19ae50))'id'!==_0x721be8&&(_0x7153d2[_0x721be8]=void 0x0);this[_0x343456(0xf9)][_0x343456(0x108)](_0x7153d2['id'],_0x7153d2,!0x0);}async[_0x444d56(0x125)](_0x400927){const _0x38e53b=_0x444d56,_0x589d01=this[_0x38e53b(0xef)][_0x38e53b(0x114)][_0x38e53b(0x118)](_0x4e0dff),{connection:_0x4b3030}=this[_0x38e53b(0xef)][_0x38e53b(0x114)][_0x38e53b(0x118)](_0xfa60ba),_0x1938dd=new Set();for(const _0xfbf375 of _0x400927){for(const _0xcf07 of _0xfbf375[_0x38e53b(0xe7)])_0xff8c6(_0xcf07);_0xfbf375[_0x38e53b(0x10c)]&&_0xff8c6(_0xfbf375[_0x38e53b(0x10c)]);}if(0x0===_0x1938dd[_0x38e53b(0x136)])return;const _0x3e7b0f=await _0x4484e3[_0x38e53b(0x120)](_0x4b3030,Array[_0x38e53b(0x134)](_0x1938dd));for(const _0x1e278b of _0x3e7b0f)_0x589d01[_0x38e53b(0x103)](_0x1e278b['id'])||_0x589d01[_0x38e53b(0xf3)](_0x1e278b);function _0xff8c6(_0x4f327d){const _0x10e15c=_0x38e53b;_0x589d01[_0x10e15c(0x103)](_0x4f327d)||_0x1938dd[_0x10e15c(0xf5)](_0x4f327d);}}}v[_0x444d56(0x10f)]=_0x5604a7;export default v;function rt(_0x5aa287){const _0x6ec21b=_0x444d56;return _0x5aa287[_0x6ec21b(0xd5)][_0x6ec21b(0x12d)](_0x6ec21b(0x10a))||_0x5aa287[_0x6ec21b(0xd5)][_0x6ec21b(0x12d)](_0x6ec21b(0xd1))||_0x5aa287[_0x6ec21b(0xd5)][_0x6ec21b(0x12d)](_0x6ec21b(0x11b));}
|
|
23
|
+
const _0x20b2e5=_0x21ac;(function(_0x30ab7e,_0x16c5ef){const _0x5f5369=_0x21ac,_0x5cd1dc=_0x30ab7e();while(!![]){try{const _0x67c2fc=-parseInt(_0x5f5369(0x198))/0x1+parseInt(_0x5f5369(0x18c))/0x2+parseInt(_0x5f5369(0x190))/0x3+-parseInt(_0x5f5369(0x19a))/0x4+parseInt(_0x5f5369(0x1d6))/0x5*(-parseInt(_0x5f5369(0x18d))/0x6)+parseInt(_0x5f5369(0x1af))/0x7*(-parseInt(_0x5f5369(0x1c5))/0x8)+parseInt(_0x5f5369(0x177))/0x9*(parseInt(_0x5f5369(0x185))/0xa);if(_0x67c2fc===_0x16c5ef)break;else _0x5cd1dc['push'](_0x5cd1dc['shift']());}catch(_0x15031c){_0x5cd1dc['push'](_0x5cd1dc['shift']());}}}(_0x22f5,0x87ae4));import{Plugin as _0x4e5b13}from'ckeditor5/src/core.js';import{version as _0x2b0da1}from'ckeditor5/src/utils.js';import{Users as _0x20d387}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x21ac(_0x47699b,_0x5ddd0f){const _0x22f50e=_0x22f5();return _0x21ac=function(_0x21acf5,_0x3f71b6){_0x21acf5=_0x21acf5-0x16c;let _0x7aa8c9=_0x22f50e[_0x21acf5];return _0x7aa8c9;},_0x21ac(_0x47699b,_0x5ddd0f);}import _0x3168df from'../realtimecollaborativeediting/realtimecollaborationclient.js';import _0x5c6170 from'../realtimecollaborativeediting/websocketgateway.js';function _0x22f5(){const _0x383d99=['off','reInit','cloud-services-internal-error:\x20Not\x20connected.','state','remove','_revisionDataBuilder','cloudServices.bundleVersion','isEnabled','_revisionHistoryService','catch','updateRevisions','setSource','_handleReconnectionError','config','getRevisions','once','change:_isConnected','RevisionTracker','baseVersion','112asnuEx','getRevision','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','createdAt','requires','_handleRevisionsUpdate','creatorId','add','fromVersion','_startingVersion','_bufferUpdate','connection','code','_lastRequestId','reconnect','_fixRevision','type','45YGZtQw','RevisionHistoryService','get','_revisions','editor','startsWith','_waitForServiceReady','bind','_getLatestVersion','sessionId','marker','diffData','toVersion','cloud-services-internal-error:\x20Request\x20timeout.','authorsIds','from','118089IoTVjL','max','CONNECTED','length','addUser','listenTo','getOperations','currentRevision','authors','_getLatestVersionFromServerOperations','_revisionTracker','destroy','400','_bufferedUpdates','1370WAlpjg','repository','data','change:_isPendingUpdate','affectsData','connect','isBundleUploaded','1133580txzrYi','10938gnfmtK','connected','plugins','991098SQnBph','size','_offset','has','_createCurrentRevision','addRevisionData','isConnected','_update','1048029MyLoCz','_oldOffset','480116PlqFaA','_preventResendingRevisionData','getMany','init','serverHistory','sendBufferedUpdates','_isConnected','message','collaboration.channelId','isEmptyCurrent','then','keys','revisionsUpdated','_fetchMissingUsers','wrongRequestId','getUser','map','addToReconnectionStack','setRevisionData','_isPendingUpdate','reverse','477260ZesUVy','adapter','buildRevisionData'];_0x22f5=function(){return _0x383d99;};return _0x22f5();}import _0x1a167e from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x137bf4,RevisionHistoryService as _0x58d2d2,User as _0x4facd3,WEB_SOCKET_GATEWAY_STATES as _0xc33336}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class v extends _0x4e5b13{static get[_0x20b2e5(0x1c9)](){const _0x41bace=_0x20b2e5;return[_0x5c6170,_0x3168df,_0x41bace(0x1c3),_0x1a167e,_0x20d387];}constructor(_0x2c7518){const _0x541fc0=_0x20b2e5;super(_0x2c7518);const _0x4deefc=this[_0x541fc0(0x1da)][_0x541fc0(0x1bf)][_0x541fc0(0x1d8)](_0x541fc0(0x1a2));this[_0x541fc0(0x1d2)]=null,this[_0x541fc0(0x181)]=this[_0x541fc0(0x1da)][_0x541fc0(0x18f)][_0x541fc0(0x1d8)](_0x541fc0(0x1c3)),this[_0x541fc0(0x1ba)]=new v[(_0x541fc0(0x1d7))](_0x4deefc);}async[_0x20b2e5(0x19d)](){const _0x2ff44e=_0x20b2e5,_0x302de4=this[_0x2ff44e(0x1da)][_0x2ff44e(0x18f)][_0x2ff44e(0x1d8)](_0x3168df),_0x18cba5=_0x302de4[_0x2ff44e(0x19e)],_0x2e1604=this[_0x2ff44e(0x1da)][_0x2ff44e(0x18f)][_0x2ff44e(0x1d8)](_0x5c6170);this[_0x2ff44e(0x181)][_0x2ff44e(0x1bd)]({'history':_0x18cba5,'getLatestVersion':()=>this[_0x2ff44e(0x16f)](),'getCurrentRevisionId':()=>_0x302de4[_0x2ff44e(0x170)]});const _0x5879ff=this[_0x2ff44e(0x1da)][_0x2ff44e(0x1bf)][_0x2ff44e(0x1d8)](_0x2ff44e(0x1b8))||_0x2b0da1,_0x5685ec=await _0x137bf4[_0x2ff44e(0x18b)](_0x2e1604[_0x2ff44e(0x1d0)],_0x5879ff);this[_0x2ff44e(0x181)][_0x2ff44e(0x1b0)]={'getRevision':async({revisionId:_0x4f02c0})=>(await this[_0x2ff44e(0x16d)](),await this[_0x2ff44e(0x1ba)][_0x2ff44e(0x1c6)](_0x4f02c0)),'updateRevisions':async _0x3acd64=>{const _0x411b47=_0x2ff44e;await this[_0x411b47(0x16d)]();const _0x1278c5=this[_0x411b47(0x181)][_0x411b47(0x17e)];if(_0x5685ec&&0x1===_0x3acd64[_0x411b47(0x17a)]&&_0x3acd64[0x0]['id']===_0x1278c5['id'])return _0x3acd64;for(const _0x507777 of _0x3acd64)_0x507777['id']===_0x1278c5['id']&&(_0x507777[_0x411b47(0x1a3)]=_0x507777[_0x411b47(0x1cd)]===_0x507777[_0x411b47(0x173)]);return this[_0x411b47(0x1ba)][_0x411b47(0x1bc)](_0x3acd64,this[_0x411b47(0x1d2)])[_0x411b47(0x1a4)](_0x2433a0=>(this[_0x411b47(0x1d2)]=_0x2433a0,_0x3acd64))[_0x411b47(0x1bb)](_0x342421=>{const _0x1739a4=_0x411b47;if(st(_0x342421)||_0x1739a4(0x183)===_0x342421[_0x1739a4(0x1d1)]&&void 0x0!==_0x342421[_0x1739a4(0x187)][_0x1739a4(0x1a8)]){for(const _0x2dd69d of _0x3acd64){!this[_0x1739a4(0x181)][_0x1739a4(0x186)][_0x1739a4(0x1c6)](_0x2dd69d['id'])||this[_0x1739a4(0x181)][_0x1739a4(0x1cf)](_0x2dd69d['id'],_0x2dd69d,!0x1);}if(st(_0x342421))throw _0x342421;return _0x3acd64;}throw _0x342421;});}},this[_0x2ff44e(0x17c)](this[_0x2ff44e(0x1ba)],_0x2ff44e(0x1a6),(_0x139d54,{revisionsData:_0x463805,requestId:_0x1dc4aa})=>{const _0x1d2099=_0x2ff44e;Math[_0x1d2099(0x178)](..._0x463805[_0x1d2099(0x1aa)](_0x1a47ca=>_0x1a47ca[_0x1d2099(0x173)]))>this[_0x1d2099(0x180)]()-0x1?this[_0x1d2099(0x16f)]()[_0x1d2099(0x1a4)](()=>{const _0x5bd0a8=_0x1d2099;this[_0x5bd0a8(0x1ca)](_0x463805,_0x1dc4aa);}):this[_0x1d2099(0x1ca)](_0x463805,_0x1dc4aa);});const {revisions:_0x3f631e,requestId:_0x24e731}=await this[_0x2ff44e(0x1ba)][_0x2ff44e(0x18a)](_0x2e1604[_0x2ff44e(0x1d0)]);_0x2e1604[_0x2ff44e(0x1ab)](this),this[_0x2ff44e(0x1d2)]=_0x24e731,await this[_0x2ff44e(0x1a7)](_0x3f631e);for(const _0x13acb5 of _0x3f631e)this[_0x2ff44e(0x181)][_0x2ff44e(0x195)](_0x13acb5);this[_0x2ff44e(0x17c)](_0x302de4,_0x2ff44e(0x1c2),(_0x1fee3d,_0x12e13e,_0x388972)=>{const _0x51bfdb=_0x2ff44e;_0x388972&&(this[_0x51bfdb(0x199)]=_0x302de4[_0x51bfdb(0x192)],_0x1fee3d[_0x51bfdb(0x1b2)]());}),this[_0x2ff44e(0x181)][_0x2ff44e(0x16e)](_0x2ff44e(0x1b9))['to'](_0x2e1604,_0x2ff44e(0x1b5),_0x38554e=>_0x38554e===_0xc33336[_0x2ff44e(0x179)]);}async[_0x20b2e5(0x1d3)](){const _0x4bdb71=_0x20b2e5,_0x48ea27=this[_0x4bdb71(0x1da)][_0x4bdb71(0x18f)][_0x4bdb71(0x1d8)](_0x5c6170),_0x193810=this[_0x4bdb71(0x1da)][_0x4bdb71(0x18f)][_0x4bdb71(0x1d8)](_0x3168df),_0x4977e9=async()=>{const _0x1817bb=_0x4bdb71,_0x3cf621=this[_0x1817bb(0x181)][_0x1817bb(0x17e)],_0x404103=_0x3cf621['id'],_0x518133=_0x404103!==_0x193810[_0x1817bb(0x170)];if(_0x518133){const _0x4e54df=_0x193810[_0x1817bb(0x192)]-this[_0x1817bb(0x199)],_0x54f6c8=this[_0x1817bb(0x180)]();this[_0x1817bb(0x181)][_0x1817bb(0x1b7)][_0x1817bb(0x1b3)]();if(_0x3cf621[_0x1817bb(0x173)]+_0x4e54df!==_0x54f6c8){const _0xef4526=_0x3cf621[_0x1817bb(0x1cd)]+_0x4e54df,_0x190d48=this[_0x1817bb(0x1da)][_0x1817bb(0x18f)][_0x1817bb(0x1d8)](_0x20d387),_0x3d6670=this[_0x1817bb(0x181)][_0x1817bb(0x1b1)]({'revision':_0x3cf621,'from':_0xef4526,'to':_0x54f6c8});_0x3d6670['id']=_0x3cf621['id'];const _0x5e0e80=_0x3d6670[_0x1817bb(0x175)][_0x1817bb(0x1aa)](_0x3b0d87=>_0x190d48[_0x1817bb(0x1a9)](_0x3b0d87));_0x3cf621[_0x1817bb(0x197)]({..._0x3d6670,'authors':_0x5e0e80},!0x0),this[_0x1817bb(0x181)][_0x1817bb(0x1cf)](_0x3cf621['id'],_0x3d6670,!0x0);}this[_0x1817bb(0x181)][_0x1817bb(0x1ce)]=_0x54f6c8,(_0x3cf621[_0x1817bb(0x173)]===_0x3cf621[_0x1817bb(0x1cd)]&&!this[_0x1817bb(0x181)][_0x1817bb(0x184)][_0x1817bb(0x193)](_0x404103)&&this[_0x1817bb(0x181)][_0x1817bb(0x186)][_0x1817bb(0x1d9)][_0x1817bb(0x1b6)](_0x404103),this[_0x1817bb(0x181)][_0x1817bb(0x194)](_0x54f6c8));}const {revisions:_0xd9da91,requestId:_0x31c313}=await this[_0x1817bb(0x1ba)][_0x1817bb(0x1d3)](_0x48ea27[_0x1817bb(0x1d0)],this[_0x1817bb(0x1d2)]);_0x518133&&_0xd9da91[_0x1817bb(0x17a)]>0x0?_0x193810[_0x1817bb(0x1be)]():(await this[_0x1817bb(0x1a7)](_0xd9da91),this[_0x1817bb(0x1ca)](_0xd9da91,_0x31c313),this[_0x1817bb(0x181)][_0x1817bb(0x19f)]());};return _0x193810[_0x4bdb71(0x1a0)]?_0x4977e9():new Promise((_0x57ebf4,_0x3c28ad)=>{const _0x1adfaf=_0x4bdb71;_0x193810[_0x1adfaf(0x1c1)](_0x1adfaf(0x1c2),()=>{const _0x33e5b6=_0x1adfaf;_0x4977e9()[_0x33e5b6(0x1a4)](_0x57ebf4)[_0x33e5b6(0x1bb)](_0x3c28ad);});});}[_0x20b2e5(0x182)](){const _0x2b8f1e=_0x20b2e5;super[_0x2b8f1e(0x182)]();}async[_0x20b2e5(0x16d)](){const _0x4d2c7a=_0x20b2e5;this[_0x4d2c7a(0x1ba)][_0x4d2c7a(0x196)]||await new Promise(_0x57d2d0=>{const _0x27165a=_0x4d2c7a;this[_0x27165a(0x17c)](this[_0x27165a(0x1ba)],_0x27165a(0x18e),_0x11330f=>{const _0x494f9e=_0x27165a;_0x11330f[_0x494f9e(0x1b2)](),_0x57d2d0();});});}[_0x20b2e5(0x180)](){const _0x51527c=_0x20b2e5,_0x28b073=this[_0x51527c(0x1da)][_0x51527c(0x18f)][_0x51527c(0x1d8)](_0x3168df)[_0x51527c(0x19e)][_0x51527c(0x17d)]()[_0x51527c(0x1ae)]();for(const _0x2caae9 of _0x28b073)if(_0x51527c(0x171)!==_0x2caae9[_0x51527c(0x1d5)]||_0x2caae9[_0x51527c(0x189)])return _0x2caae9[_0x51527c(0x1c4)]+0x1;}[_0x20b2e5(0x16f)](){const _0x4d10b9=_0x20b2e5,_0x45ec65=this[_0x4d10b9(0x1da)][_0x4d10b9(0x18f)][_0x4d10b9(0x1d8)](_0x3168df);return new Promise(_0x3736e2=>{const _0x5d6eef=_0x4d10b9;_0x45ec65[_0x5d6eef(0x1ad)]?_0x45ec65[_0x5d6eef(0x1c1)](_0x5d6eef(0x188),()=>{const _0x54c359=_0x5d6eef;_0x3736e2(this[_0x54c359(0x180)]());}):_0x3736e2(this[_0x5d6eef(0x180)]());});}[_0x20b2e5(0x1ca)](_0x380529,_0x29cf4a){const _0x4ec3d2=_0x20b2e5,_0xc90c58=this[_0x4ec3d2(0x181)][_0x4ec3d2(0x186)];this[_0x4ec3d2(0x1d2)]=_0x29cf4a;for(const _0x508208 of _0x380529){const _0x321f28=_0xc90c58[_0x4ec3d2(0x1c6)](_0x508208['id']);if(_0x321f28){if((_0x508208[_0x4ec3d2(0x1cd)]||_0x508208[_0x4ec3d2(0x173)])&&(_0x508208[_0x4ec3d2(0x172)]=null),_0x321f28===this[_0x4ec3d2(0x181)][_0x4ec3d2(0x17e)]){const _0x230555=Math[_0x4ec3d2(0x178)](_0x321f28[_0x4ec3d2(0x173)],_0x508208[_0x4ec3d2(0x173)]),_0x35e703=Math[_0x4ec3d2(0x178)](_0x321f28[_0x4ec3d2(0x1cd)],_0x508208[_0x4ec3d2(0x1cd)]);let _0x155f21;_0x321f28[_0x4ec3d2(0x173)]===_0x508208[_0x4ec3d2(0x173)]&&_0x321f28[_0x4ec3d2(0x1cd)]===_0x508208[_0x4ec3d2(0x1cd)]?(_0x155f21=!0x0,this[_0x4ec3d2(0x19b)](_0x508208)):_0x508208[_0x4ec3d2(0x173)]===_0x230555&&_0x508208[_0x4ec3d2(0x1cd)]===_0x35e703?_0x155f21=!0x1:(_0x321f28[_0x4ec3d2(0x173)]===_0x230555&&_0x321f28[_0x4ec3d2(0x1cd)]===_0x35e703||this[_0x4ec3d2(0x1d4)]({'revision':_0x321f28,'from':_0x35e703,'to':_0x230555}),_0x155f21=!0x0),_0x155f21&&(delete _0x508208[_0x4ec3d2(0x1cd)],delete _0x508208[_0x4ec3d2(0x173)],delete _0x508208[_0x4ec3d2(0x172)],delete _0x508208[_0x4ec3d2(0x1c8)],delete _0x508208[_0x4ec3d2(0x175)]);}this[_0x4ec3d2(0x181)][_0x4ec3d2(0x1ac)](_0x508208),this[_0x4ec3d2(0x19b)](_0x508208);}else this[_0x4ec3d2(0x181)][_0x4ec3d2(0x195)](_0x508208);}const _0x4adecc=_0xc90c58[_0x4ec3d2(0x1c0)]();_0x4adecc[_0x4ec3d2(0x1ae)]();for(let _0x1a7fa3=0x0;_0x1a7fa3<_0x4adecc[_0x4ec3d2(0x17a)]-0x1;_0x1a7fa3++){const _0xacb779=_0x4adecc[_0x1a7fa3],_0x204f82=_0x4adecc[_0x1a7fa3+0x1];if(_0xacb779[_0x4ec3d2(0x1cd)]<_0x204f82[_0x4ec3d2(0x173)]){const _0x1497e2=_0x204f82[_0x4ec3d2(0x173)],_0x507a03=Math[_0x4ec3d2(0x178)](_0x1497e2,_0xacb779[_0x4ec3d2(0x173)]);this[_0x4ec3d2(0x1d4)]({'revision':_0xacb779,'from':_0x1497e2,'to':_0x507a03});}}}[_0x20b2e5(0x1d4)]({revision:_0x52db1a,from:_0xa3931e,to:_0x14fa7d}={}){const _0x4bed4c=_0x20b2e5,_0xbe0bfd=this[_0x4bed4c(0x1da)][_0x4bed4c(0x18f)][_0x4bed4c(0x1d8)](_0x20d387),_0x1223f3=this[_0x4bed4c(0x181)][_0x4bed4c(0x1b1)]({'revision':_0x52db1a,'from':_0xa3931e,'to':_0x14fa7d});_0x1223f3[_0x4bed4c(0x17f)]=_0x1223f3[_0x4bed4c(0x175)][_0x4bed4c(0x1aa)](_0x5838e3=>_0xbe0bfd[_0x4bed4c(0x1a9)](_0x5838e3)),_0x52db1a[_0x4bed4c(0x197)](_0x1223f3);}[_0x20b2e5(0x19b)](_0x12812e){const _0x58cca8=_0x20b2e5,_0xa70cbb={};_0xa70cbb['id']=_0x12812e['id'];for(const _0x2cc5ff of Object[_0x58cca8(0x1a5)](_0x12812e))'id'!==_0x2cc5ff&&(_0xa70cbb[_0x2cc5ff]=void 0x0);this[_0x58cca8(0x181)][_0x58cca8(0x1cf)](_0xa70cbb['id'],_0xa70cbb,!0x0);}async[_0x20b2e5(0x1a7)](_0xa5f9f8){const _0x9b9ce6=_0x20b2e5,_0x9e746c=this[_0x9b9ce6(0x1da)][_0x9b9ce6(0x18f)][_0x9b9ce6(0x1d8)](_0x20d387),{connection:_0x356c00}=this[_0x9b9ce6(0x1da)][_0x9b9ce6(0x18f)][_0x9b9ce6(0x1d8)](_0x5c6170),_0xa4f714=new Set();for(const _0x3fe958 of _0xa5f9f8){for(const _0x5b9d10 of _0x3fe958[_0x9b9ce6(0x175)])_0x872cee(_0x5b9d10);_0x3fe958[_0x9b9ce6(0x1cb)]&&_0x872cee(_0x3fe958[_0x9b9ce6(0x1cb)]);}if(0x0===_0xa4f714[_0x9b9ce6(0x191)])return;const _0x3d476d=await _0x4facd3[_0x9b9ce6(0x19c)](_0x356c00,Array[_0x9b9ce6(0x176)](_0xa4f714));for(const _0x432efa of _0x3d476d)_0x9e746c[_0x9b9ce6(0x1a9)](_0x432efa['id'])||_0x9e746c[_0x9b9ce6(0x17b)](_0x432efa);function _0x872cee(_0x545001){const _0x3e2b9c=_0x9b9ce6;_0x9e746c[_0x3e2b9c(0x1a9)](_0x545001)||_0xa4f714[_0x3e2b9c(0x1cc)](_0x545001);}}}v[_0x20b2e5(0x1d7)]=_0x58d2d2;export default v;function st(_0x22f91b){const _0x2a21ee=_0x20b2e5;return _0x22f91b[_0x2a21ee(0x1a1)][_0x2a21ee(0x16c)](_0x2a21ee(0x1c7))||_0x22f91b[_0x2a21ee(0x1a1)][_0x2a21ee(0x16c)](_0x2a21ee(0x1b4))||_0x22f91b[_0x2a21ee(0x1a1)][_0x2a21ee(0x16c)](_0x2a21ee(0x174));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x295a52=_0x12b3;(function(_0x2f3f8a,_0x33305a){const _0x5a2f0e=_0x12b3,_0x4dfac4=_0x2f3f8a();while(!![]){try{const _0x141ba9=parseInt(_0x5a2f0e(0x19a))/0x1+-parseInt(_0x5a2f0e(0x1a6))/0x2+parseInt(_0x5a2f0e(0x19b))/0x3+-parseInt(_0x5a2f0e(0x195))/0x4*(parseInt(_0x5a2f0e(0x1b2))/0x5)+-parseInt(_0x5a2f0e(0x1ad))/0x6*(-parseInt(_0x5a2f0e(0x1a4))/0x7)+parseInt(_0x5a2f0e(0x1a3))/0x8+parseInt(_0x5a2f0e(0x1bf))/0x9;if(_0x141ba9===_0x33305a)break;else _0x4dfac4['push'](_0x4dfac4['shift']());}catch(_0x5aadcc){_0x4dfac4['push'](_0x4dfac4['shift']());}}}(_0xd2d1,0xb7d05));import{Plugin as _0x1f10b5}from'ckeditor5/src/core.js';import{User as _0x333eca,TrackChangesService as _0x855a46}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0xd2d1(){const _0x28069c=['_saved','_trackChangesService','hasSuggestion','config','suggestionUpdated','editor','cloud-services-internal-error:\x20Not\x20connected.','off','isConnected','_waitForServiceReady','collaboration.channelId','getMany','4861935FPgkaN','connect','_bufferedRequests','cloud-services-internal-error:\x20Request\x20timeout.','_fetchMissingUsersForThreads','reconnect','originalSuggestionId','connection','TrackChangesEditing','getSuggestion','set','startsWith','connected','type','then','update','data','796unNqsx','init','values','delete','size','969907mTqxyG','23883tYgzea','state','TrackChangesService','listenTo','message','get','getUser','adapter','9888024CFeNcE','4503961hEewjs','addSuggestionData','2746792xQITqK','addToReconnectionStack','from','open','catch','attributes','plugins','6ppvuLZ','requires','addUser','add','find','31940Xqqgkc'];_0xd2d1=function(){return _0x28069c;};return _0xd2d1();}function _0x12b3(_0x1d9c33,_0x21a456){const _0xd2d1e=_0xd2d1();return _0x12b3=function(_0x12b30f,_0x5552f3){_0x12b30f=_0x12b30f-0x18c;let _0x5d85e3=_0xd2d1e[_0x12b30f];return _0x5d85e3;},_0x12b3(_0x1d9c33,_0x21a456);}import _0x57dbdc from'../realtimecollaborativeediting/websocketgateway.js';import _0x28cc4d from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x19e57a}from'ckeditor5-collaboration/src/collaboration-core.js';class g extends _0x1f10b5{static get[_0x295a52(0x1ae)](){const _0x1cc8f5=_0x295a52;return[_0x28cc4d,_0x1cc8f5(0x18c),_0x57dbdc];}constructor(_0x987e26){const _0x3273db=_0x295a52;super(_0x987e26);const _0x34f921=this[_0x3273db(0x1b8)][_0x3273db(0x1b6)][_0x3273db(0x1a0)](_0x3273db(0x1bd));this[_0x3273db(0x1c1)]=new Map(),this[_0x3273db(0x1b4)]=new g[(_0x3273db(0x19d))](_0x34f921);}[_0x295a52(0x196)](){const _0x78d7d0=_0x295a52,_0x24b82b=this[_0x78d7d0(0x1b8)][_0x78d7d0(0x1ac)][_0x78d7d0(0x1a0)](_0x57dbdc),_0x265520=this[_0x78d7d0(0x1b8)][_0x78d7d0(0x1ac)][_0x78d7d0(0x1a0)](_0x78d7d0(0x18c));return _0x265520[_0x78d7d0(0x1a2)]={'getSuggestion':async _0x140248=>{const _0xf3ef77=_0x78d7d0;await this[_0xf3ef77(0x1bc)]();const _0x2c7ce8=await this[_0xf3ef77(0x1b4)][_0xf3ef77(0x1a0)](_0x140248)[_0xf3ef77(0x1aa)](R);return await this[_0xf3ef77(0x1c3)]([_0x2c7ce8]),_0x2c7ce8;},'addSuggestion':async({id:_0x32e6ea,type:_0x58e968,data:_0x13efef,originalSuggestionId:_0xa34228,attributes:_0x543018})=>{const _0x173a32=_0x78d7d0;await this[_0x173a32(0x1bc)]();const _0xb3b35c={'id':_0x32e6ea,'type':_0x58e968,'data':_0x13efef,'originalSuggestionId':_0xa34228,'attributes':_0x543018},_0x4a3780=await this[_0x173a32(0x1b4)][_0x173a32(0x1b0)](_0x32e6ea,_0x58e968,_0x13efef,_0xa34228,_0x543018)[_0x173a32(0x1aa)](_0x5a2c6e=>{if(st(_0x5a2c6e))return new Promise(_0xd6a575=>{const _0x5f2da0=_0x12b3;this[_0x5f2da0(0x1c1)][_0x5f2da0(0x18e)](_0x32e6ea,{'resolve':_0xd6a575,'suggestionData':_0xb3b35c});});throw _0x5a2c6e;});return this[_0x173a32(0x1c1)][_0x173a32(0x198)](_0x32e6ea),_0x4a3780;},'updateSuggestion':async(_0x40a86f,_0x3d6e17)=>{const _0x37324d=_0x78d7d0;if(await this[_0x37324d(0x1bc)](),_0x37324d(0x1a9)!==_0x3d6e17[_0x37324d(0x19c)])return this[_0x37324d(0x1b4)][_0x37324d(0x193)](_0x40a86f,_0x3d6e17)[_0x37324d(0x1aa)](R);}},this[_0x78d7d0(0x19e)](this[_0x78d7d0(0x1b4)],_0x78d7d0(0x1b7),(_0x560ae8,_0x1ecda2)=>{const _0x6893da=_0x78d7d0;_0x265520[_0x6893da(0x1b5)](_0x1ecda2['id'])&&(_0x265520[_0x6893da(0x18d)](_0x1ecda2['id'])[_0x6893da(0x1ab)]=_0x1ecda2[_0x6893da(0x1ab)]);}),this[_0x78d7d0(0x1b4)][_0x78d7d0(0x1c0)](_0x24b82b[_0x78d7d0(0x1c6)])[_0x78d7d0(0x192)](_0x409eb0=>(_0x24b82b[_0x78d7d0(0x1a7)](this),this[_0x78d7d0(0x1c3)](_0x409eb0)[_0x78d7d0(0x192)](()=>{const _0x1a8820=_0x78d7d0;for(const _0x3aaeef of _0x409eb0){_0x265520[_0x1a8820(0x1a5)](_0x3aaeef)[_0x1a8820(0x1b3)]=!0x0;}})));}async[_0x295a52(0x1c4)](){const _0x4de387=_0x295a52,_0x1faee2=this[_0x4de387(0x1b8)][_0x4de387(0x1ac)][_0x4de387(0x1a0)](_0x4de387(0x18c)),{connection:_0x3bb9af}=this[_0x4de387(0x1b8)][_0x4de387(0x1ac)][_0x4de387(0x1a0)](_0x57dbdc),_0x12c549=await this[_0x4de387(0x1b4)][_0x4de387(0x1c0)](_0x3bb9af);await this[_0x4de387(0x1c3)](_0x12c549);for(const {suggestionData:_0x438656,resolve:_0x3a1fd7}of this[_0x4de387(0x1c1)][_0x4de387(0x197)]()){let _0x59a778=_0x12c549[_0x4de387(0x1b1)](_0x2a9420=>_0x2a9420['id']===_0x438656['id']);_0x59a778||(_0x59a778=await this[_0x4de387(0x1b4)][_0x4de387(0x1b0)](_0x438656['id'],_0x438656[_0x4de387(0x191)],_0x438656[_0x4de387(0x194)],_0x438656[_0x4de387(0x1c5)])),_0x3a1fd7(_0x59a778);}for(const _0x1f247d of _0x12c549)_0x1faee2[_0x4de387(0x1b5)](_0x1f247d['id'])||_0x1faee2[_0x4de387(0x1a5)](_0x1f247d);}async[_0x295a52(0x1bc)](){const _0x532bbf=_0x295a52;this[_0x532bbf(0x1b4)][_0x532bbf(0x1bb)]||await new Promise(_0x59ca48=>{const _0x5147e0=_0x532bbf;this[_0x5147e0(0x19e)](this[_0x5147e0(0x1b4)],_0x5147e0(0x190),_0xb07256=>{const _0x53ee88=_0x5147e0;_0xb07256[_0x53ee88(0x1ba)](),_0x59ca48();});});}async[_0x295a52(0x1c3)](_0x3caf11){const _0xeda43b=_0x295a52,_0x26f488=this[_0xeda43b(0x1b8)][_0xeda43b(0x1ac)][_0xeda43b(0x1a0)](_0x19e57a),{connection:_0x1e8d59}=this[_0xeda43b(0x1b8)][_0xeda43b(0x1ac)][_0xeda43b(0x1a0)](_0x57dbdc),_0x2e71c3=new Set();for(const {authorId:_0x369f46}of _0x3caf11)_0x26f488[_0xeda43b(0x1a1)](_0x369f46)||_0x2e71c3[_0xeda43b(0x1b0)](_0x369f46);if(0x0===_0x2e71c3[_0xeda43b(0x199)])return;const _0x731831=await _0x333eca[_0xeda43b(0x1be)](_0x1e8d59,Array[_0xeda43b(0x1a8)](_0x2e71c3));for(const _0x4f2070 of _0x731831)_0x26f488[_0xeda43b(0x1a1)](_0x4f2070['id'])||_0x26f488[_0xeda43b(0x1af)](_0x4f2070);}}g[_0x295a52(0x19d)]=_0x855a46;export default g;function R(_0xb233fe){if(st(_0xb233fe))return new Promise(()=>{});throw _0xb233fe;}function st(_0x261d04){const _0x3a3557=_0x295a52;return _0x261d04[_0x3a3557(0x19f)][_0x3a3557(0x18f)](_0x3a3557(0x1b9))||_0x261d04[_0x3a3557(0x19f)][_0x3a3557(0x18f)](_0x3a3557(0x1c2));}
|