@ckeditor/ckeditor5-real-time-collaboration 47.7.0-alpha.4 → 47.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/real-time-collaboration.js +1 -1
- 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 _0x30248d=_0x4c5c;(function(_0x1ad42f,_0x1c4d09){const _0x2327ca=_0x4c5c,_0x248b9a=_0x1ad42f();while(!![]){try{const _0x2db3aa=parseInt(_0x2327ca(0x143))/0x1+parseInt(_0x2327ca(0x164))/0x2+-parseInt(_0x2327ca(0x140))/0x3+parseInt(_0x2327ca(0x17e))/0x4+parseInt(_0x2327ca(0x16a))/0x5*(parseInt(_0x2327ca(0x153))/0x6)+parseInt(_0x2327ca(0x174))/0x7*(parseInt(_0x2327ca(0x161))/0x8)+parseInt(_0x2327ca(0x163))/0x9*(-parseInt(_0x2327ca(0x13e))/0xa);if(_0x2db3aa===_0x1c4d09)break;else _0x248b9a['push'](_0x248b9a['shift']());}catch(_0x5cec3b){_0x248b9a['push'](_0x248b9a['shift']());}}}(_0x58f4,0xc5a84));import{ContextPlugin as _0x48c639}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x5f5b0c,CKEditorError as _0x194925}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x1a7cce,WEB_SOCKET_GATEWAY_STATES as _0x33d562}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x3611f6}from'ckeditor5/src/ui.js';export class WebSocketGateway extends _0x48c639{static [_0x30248d(0x166)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x1a7cce)());static [_0x30248d(0x14a)]=0x3e8;[_0x30248d(0x13c)];[_0x30248d(0x13a)];[_0x30248d(0x173)];[_0x30248d(0x151)];static get[_0x30248d(0x14c)](){const _0x38e956=_0x30248d;return[_0x38e956(0x171),_0x3611f6];}static get[_0x30248d(0x169)](){const _0x4ee137=_0x30248d;return _0x4ee137(0x166);}static get[_0x30248d(0x147)](){return!0x0;}static get[_0x30248d(0x167)](){return!0x0;}constructor(_0x5da02d){const _0x18bd4c=_0x30248d;super(_0x5da02d),this[_0x18bd4c(0x14b)](_0x18bd4c(0x172),_0x33d562[_0x18bd4c(0x138)]),this[_0x18bd4c(0x14b)](_0x18bd4c(0x179),!0x1),this[_0x18bd4c(0x13a)]=new Set(),this[_0x18bd4c(0x173)]=!0x1,this[_0x18bd4c(0x151)]=new(_0x5f5b0c())();}[_0x30248d(0x176)](){const _0x5b4eb4=_0x30248d,_0x1a6041=this[_0x5b4eb4(0x175)],_0x108d59=_0x1a6041[_0x5b4eb4(0x178)][_0x5b4eb4(0x135)](_0x5b4eb4(0x171)),_0x239760=_0x1a6041[_0x5b4eb4(0x178)][_0x5b4eb4(0x135)](_0x3611f6);if(!_0x108d59[_0x5b4eb4(0x17c)])throw new _0x194925(_0x5b4eb4(0x15a),this);if(!_0x108d59[_0x5b4eb4(0x14d)])throw new _0x194925(_0x5b4eb4(0x177),this);return this[_0x5b4eb4(0x151)][_0x5b4eb4(0x136)](window,_0x5b4eb4(0x155),()=>this[_0x5b4eb4(0x179)]=!0x0),this[_0x5b4eb4(0x151)][_0x5b4eb4(0x136)](window,_0x5b4eb4(0x142),()=>this[_0x5b4eb4(0x179)]=!0x1),this[_0x5b4eb4(0x175)][_0x5b4eb4(0x15d)][_0x5b4eb4(0x152)](_0x5b4eb4(0x17b),0xa),this[_0x5b4eb4(0x175)][_0x5b4eb4(0x15d)][_0x5b4eb4(0x152)](_0x5b4eb4(0x15f),0x14),WebSocketGateway[_0x5b4eb4(0x166)][_0x5b4eb4(0x157)](_0x108d59[_0x5b4eb4(0x17c)],_0x108d59[_0x5b4eb4(0x14d)],{'timeout':0x3e8*this[_0x5b4eb4(0x175)][_0x5b4eb4(0x15d)][_0x5b4eb4(0x135)](_0x5b4eb4(0x17b)),'requestTimeout':0x3e8*this[_0x5b4eb4(0x175)][_0x5b4eb4(0x15d)][_0x5b4eb4(0x135)](_0x5b4eb4(0x15f))})[_0x5b4eb4(0x168)](_0x28f9f4=>{const _0x1ad269=_0x5b4eb4;if(this[_0x1ad269(0x13c)]=_0x28f9f4,this[_0x1ad269(0x17d)](_0x1ad269(0x172))['to'](_0x28f9f4,_0x1ad269(0x172),this,_0x1ad269(0x179),(_0x14c130,_0x5aef5d)=>(_0x1ad269(0x16d)!==_0x14c130&&(this[_0x1ad269(0x173)]=!0x0),_0x5aef5d||_0x14c130!==_0x33d562[_0x1ad269(0x138)]?_0x33d562[_0x1ad269(0x13f)]:this[_0x1ad269(0x172)]==_0x33d562[_0x1ad269(0x13f)]&&this[_0x1ad269(0x173)]?(this[_0x1ad269(0x173)]=!0x1,this[_0x1ad269(0x15b)](),_0x33d562[_0x1ad269(0x16e)]):_0x33d562[_0x1ad269(0x138)])),this[_0x1ad269(0x13c)]['on'](_0x1ad269(0x15c),(_0x4ac8fc,_0x51cf58)=>{const _0x15c194=_0x1ad269;if(_0x15c194(0x148)!==_0x51cf58[_0x15c194(0x15e)])throw console[_0x15c194(0x15c)](_0x51cf58),new _0x194925(_0x15c194(0x149),null,{'originalError':_0x51cf58});_0x239760[_0x15c194(0x16c)](_0x15c194(0x139),{'title':_0x15c194(0x13d),'namespace':_0x15c194(0x158)});}),!_0x28f9f4['me'])return new Promise(_0x26876a=>_0x28f9f4['on'](_0x1ad269(0x14f),_0x26876a));})[_0x5b4eb4(0x141)](_0x25c824=>{const _0x266948=_0x5b4eb4;throw console[_0x266948(0x15c)](_0x25c824),new _0x194925(_0x266948(0x149),null,{'originalError':_0x25c824});});}[_0x30248d(0x14e)](_0x28eeec){const _0x38181c=_0x30248d;if(_0x38181c(0x165)!=typeof _0x28eeec[_0x38181c(0x17a)])throw new _0x194925(_0x38181c(0x154),this);if(this[_0x38181c(0x137)](_0x28eeec))throw new _0x194925(_0x38181c(0x145),this,{'name':_0x28eeec[_0x38181c(0x16f)][_0x38181c(0x169)]});this[_0x38181c(0x13a)][_0x38181c(0x160)](_0x28eeec);}[_0x30248d(0x156)](_0x2ad469){const _0x44ec0b=_0x30248d;this[_0x44ec0b(0x13a)][_0x44ec0b(0x150)](_0x2ad469);}[_0x30248d(0x137)](_0x1c9347){const _0x1b2aec=_0x30248d;return this[_0x1b2aec(0x13a)][_0x1b2aec(0x170)](_0x1c9347);}[_0x30248d(0x15b)](){const _0xd37834=_0x30248d;return this[_0xd37834(0x13c)][_0xd37834(0x17a)]()[_0xd37834(0x168)](()=>Promise[_0xd37834(0x13b)](Array[_0xd37834(0x16b)](this[_0xd37834(0x13a)],_0x342451=>_0x342451[_0xd37834(0x17a)]())))[_0xd37834(0x168)](()=>this[_0xd37834(0x172)]=_0x33d562[_0xd37834(0x138)])[_0xd37834(0x141)](_0x538607=>{const _0x2205aa=_0xd37834;throw console[_0x2205aa(0x15c)](_0x538607),new _0x194925(_0x2205aa(0x162),this[_0x2205aa(0x175)]);});}[_0x30248d(0x144)](){const _0xb69e84=_0x30248d;this[_0xb69e84(0x13c)]&&this[_0xb69e84(0x13c)][_0xb69e84(0x144)](),this[_0xb69e84(0x172)]=_0x33d562[_0xb69e84(0x13f)],this[_0xb69e84(0x151)][_0xb69e84(0x159)]();}[_0x30248d(0x146)](){const _0x19c9b3=_0x30248d;this[_0x19c9b3(0x144)](),super[_0x19c9b3(0x146)]();}}function _0x4c5c(_0x1b8500,_0x305f67){const _0x58f4b3=_0x58f4();return _0x4c5c=function(_0x4c5cb1,_0x5e30a9){_0x4c5cb1=_0x4c5cb1-0x135;let _0x277f08=_0x58f4b3[_0x4c5cb1];return _0x277f08;},_0x4c5c(_0x1b8500,_0x305f67);}function _0x58f4(){const _0x1b5175=['bind','4121528LLjhfS','get','listenTo','isInReconnectionStack','CONNECTED','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.','_reconnectionStack','all','connection','Connected\x20users\x20limit\x20exceeded','28633920IsIQql','DISCONNECTED','451677bWTYqF','catch','online','390139qnKUfR','disconnect','websocketgateway-plugin-already-registered','destroy','isOfficialPlugin','limitExceeded','cloudservices-init','initialReconnectionInterval','set','requires','webSocketUrl','addToReconnectionStack','change:me','delete','_domEmitter','define','6YqCaLJ','websocketgateway-invalid-plugin-interface','offline','removeFromReconnectionStack','connect','real-time-collaboration','stopListening','websocketgateway-missing-token','_reconnect','error','config','code','cloudServices.requestTimeout','add','24HOtnnV','cloudservices-reconnection-error','9ZefnWD','1793362lvFHMf','function','WebSocketGateway','isPremiumPlugin','then','pluginName','5983210AxUhJS','from','showWarning','connected','CONNECTING','constructor','has','CloudServices','state','_shouldPluginsReconnect','722659HPCDUo','context','init','websocketgateway-missing-websocket-url','plugins','_isBrowserOffline','reconnect','cloudServices.connectionTimeout','token'];_0x58f4=function(){return _0x1b5175;};return _0x58f4();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0x4ec4d3)());[_0x45dad4(0x205)];[_0x45dad4(0x1d2)];[_0x45dad4(0x1aa)];[_0x45dad4(0x218)];static get[_0x45dad4(0x1f5)](){const _0xbdc7c4=_0x45dad4;return[_0x211495,_0x270e35,_0xbdc7c4(0x1ad),_0x187317,_0x265600];}static get[_0x45dad4(0x1db)](){const _0x29f26e=_0x45dad4;return _0x29f26e(0x1be);}static get[_0x45dad4(0x1e6)](){return!0x0;}static get[_0x45dad4(0x1cd)](){return!0x0;}constructor(_0x4e6580){const _0x553f72=_0x45dad4;super(_0x4e6580);const _0x2fec47=this[_0x553f72(0x1c1)][_0x553f72(0x1c2)][_0x553f72(0x21a)](_0x553f72(0x1ac));this[_0x553f72(0x205)]=null,this[_0x553f72(0x1d2)]=this[_0x553f72(0x1c1)][_0x553f72(0x1c7)][_0x553f72(0x21a)](_0x553f72(0x1fa)),this[_0x553f72(0x1aa)]=new CloudServicesRevisionHistoryAdapter[(_0x553f72(0x1b2))](_0x2fec47);}async[_0x45dad4(0x1e7)](){const _0x6c323b=_0x45dad4,_0x364f80=this[_0x6c323b(0x1c1)][_0x6c323b(0x1c7)][_0x6c323b(0x21a)](_0x270e35),_0x1c05b2=_0x364f80[_0x6c323b(0x206)],_0x170194=this[_0x6c323b(0x1c1)][_0x6c323b(0x1c7)][_0x6c323b(0x21a)](_0x211495);this[_0x6c323b(0x1d2)][_0x6c323b(0x1b1)]({'history':_0x1c05b2,'getLatestVersion':()=>this[_0x6c323b(0x1f2)](),'getCurrentRevisionId':()=>_0x364f80[_0x6c323b(0x1e2)]});const _0x3b36c3=this[_0x6c323b(0x1c1)][_0x6c323b(0x1c2)][_0x6c323b(0x21a)](_0x6c323b(0x1a9))||_0x79545b,_0x471a05=await _0x17da0d[_0x6c323b(0x1bf)](_0x170194[_0x6c323b(0x1c4)],_0x3b36c3);this[_0x6c323b(0x1c1)][_0x6c323b(0x1c7)][_0x6c323b(0x21a)](_0x6c323b(0x1ad))[_0x6c323b(0x1ae)]={'getRevision':async({revisionId:_0x318693})=>(await this[_0x6c323b(0x1ff)](),await this[_0x6c323b(0x1aa)][_0x6c323b(0x1ef)](_0x318693)),'updateRevisions':async _0x1c1422=>{const _0x23da60=_0x6c323b;await this[_0x23da60(0x1ff)]();const _0x3a4e63=this[_0x23da60(0x1d2)][_0x23da60(0x1fb)];if(_0x471a05&&0x1===_0x1c1422[_0x23da60(0x1bd)]&&_0x1c1422[0x0]['id']===_0x3a4e63['id'])return _0x1c1422;for(const _0x5e9dd7 of _0x1c1422)_0x5e9dd7['id']===_0x3a4e63['id']&&(_0x5e9dd7[_0x23da60(0x212)]=_0x5e9dd7[_0x23da60(0x20c)]===_0x5e9dd7[_0x23da60(0x1d4)]);return this[_0x23da60(0x1aa)][_0x23da60(0x1af)](_0x1c1422,this[_0x23da60(0x205)])[_0x23da60(0x1eb)](_0x38e80b=>(this[_0x23da60(0x205)]=_0x38e80b,_0x1c1422))[_0x23da60(0x1f7)](_0x202d63=>{const _0x395966=_0x23da60;if(st(_0x202d63)||_0x395966(0x1ec)===_0x202d63[_0x395966(0x1b9)]&&void 0x0!==_0x202d63[_0x395966(0x1ca)][_0x395966(0x1d7)]){for(const _0x2735a6 of _0x1c1422){!this[_0x395966(0x1d2)][_0x395966(0x1dc)][_0x395966(0x1ef)](_0x2735a6['id'])||this[_0x395966(0x1d2)][_0x395966(0x1e5)](_0x2735a6['id'],_0x2735a6,!0x1);}if(st(_0x202d63))throw _0x202d63;return _0x1c1422;}throw _0x202d63;});}},this[_0x6c323b(0x1c5)](this[_0x6c323b(0x1aa)],_0x6c323b(0x203),(_0x4225f3,{revisionsData:_0xee7553,requestId:_0x16156a})=>{const _0x27642c=_0x6c323b;Math[_0x27642c(0x1e8)](..._0xee7553[_0x27642c(0x1fc)](_0x8d80a7=>_0x8d80a7[_0x27642c(0x1d4)]))>this[_0x27642c(0x210)]()-0x1?this[_0x27642c(0x1f2)]()[_0x27642c(0x1eb)](()=>{const _0x24230a=_0x27642c;this[_0x24230a(0x20f)](_0xee7553,_0x16156a);}):this[_0x27642c(0x20f)](_0xee7553,_0x16156a);});const {revisions:_0x17f66f,requestId:_0x2f2be8}=await this[_0x6c323b(0x1aa)][_0x6c323b(0x1ba)](_0x170194[_0x6c323b(0x1c4)]);_0x170194[_0x6c323b(0x1a8)](this),this[_0x6c323b(0x205)]=_0x2f2be8,await this[_0x6c323b(0x1f3)](_0x17f66f);for(const _0x424e83 of _0x17f66f)this[_0x6c323b(0x1d2)][_0x6c323b(0x1c9)](_0x424e83);this[_0x6c323b(0x1c5)](_0x364f80,_0x6c323b(0x216),(_0x369713,_0x263ef4,_0x41cdd5)=>{const _0x376b27=_0x6c323b;_0x41cdd5&&(this[_0x376b27(0x218)]=_0x364f80[_0x376b27(0x207)],_0x369713[_0x376b27(0x1b7)]());}),this[_0x6c323b(0x1d2)][_0x6c323b(0x1c8)](_0x6c323b(0x1e4))['to'](_0x170194,_0x6c323b(0x1cf),_0x464d3e=>_0x464d3e===_0x7ea5b7[_0x6c323b(0x1d9)]);}async[_0x45dad4(0x1c3)](){const _0x44254f=_0x45dad4,_0x5f0015=this[_0x44254f(0x1c1)][_0x44254f(0x1c7)][_0x44254f(0x21a)](_0x211495),_0x583540=this[_0x44254f(0x1c1)][_0x44254f(0x1c7)][_0x44254f(0x21a)](_0x270e35),_0x126687=async()=>{const _0x5867de=_0x44254f,_0x33acb3=this[_0x5867de(0x1d2)][_0x5867de(0x1fb)],_0x181b26=_0x33acb3['id'],_0x186165=_0x181b26!==_0x583540[_0x5867de(0x1e2)];if(_0x186165){const _0x5689c1=_0x583540[_0x5867de(0x207)]-this[_0x5867de(0x218)],_0x1d6d10=this[_0x5867de(0x210)]();this[_0x5867de(0x1d2)][_0x5867de(0x1f6)][_0x5867de(0x219)]();if(_0x33acb3[_0x5867de(0x1d4)]+_0x5689c1!==_0x1d6d10){const _0x4e7e8d=_0x33acb3[_0x5867de(0x20c)]+_0x5689c1,_0x4931a5=this[_0x5867de(0x1c1)][_0x5867de(0x1c7)][_0x5867de(0x21a)](_0x265600),_0x4f2e5f=this[_0x5867de(0x1d2)][_0x5867de(0x1ab)]({'revision':_0x33acb3,'from':_0x4e7e8d,'to':_0x1d6d10});_0x4f2e5f['id']=_0x33acb3['id'];const _0x5f1b16=_0x4f2e5f[_0x5867de(0x1ee)][_0x5867de(0x1fc)](_0x3205ea=>_0x4931a5[_0x5867de(0x1f0)](_0x3205ea));_0x33acb3[_0x5867de(0x1b4)]({..._0x4f2e5f,'authors':_0x5f1b16},!0x0),this[_0x5867de(0x1d2)][_0x5867de(0x1e5)](_0x33acb3['id'],_0x4f2e5f,!0x0);}this[_0x5867de(0x1d2)][_0x5867de(0x1b3)]=_0x1d6d10,(_0x33acb3[_0x5867de(0x1d4)]===_0x33acb3[_0x5867de(0x20c)]&&!this[_0x5867de(0x1d2)][_0x5867de(0x1ed)][_0x5867de(0x1f9)](_0x181b26)&&this[_0x5867de(0x1d2)][_0x5867de(0x1dc)][_0x5867de(0x1df)][_0x5867de(0x1f4)](_0x181b26),this[_0x5867de(0x1d2)][_0x5867de(0x1c6)](_0x1d6d10));}const {revisions:_0x5ce20c,requestId:_0x569f6f}=await this[_0x5867de(0x1aa)][_0x5867de(0x1c3)](_0x5f0015[_0x5867de(0x1c4)],this[_0x5867de(0x205)]);_0x186165&&_0x5ce20c[_0x5867de(0x1bd)]>0x0?_0x583540[_0x5867de(0x1e9)]():(await this[_0x5867de(0x1f3)](_0x5ce20c),this[_0x5867de(0x20f)](_0x5ce20c,_0x569f6f),this[_0x5867de(0x1d2)][_0x5867de(0x1de)]());};return _0x583540[_0x44254f(0x213)]?_0x126687():new Promise((_0x465730,_0x591f25)=>{const _0x4b2ae4=_0x44254f;_0x583540[_0x4b2ae4(0x1b5)](_0x4b2ae4(0x216),()=>{const _0x47f51b=_0x4b2ae4;_0x126687()[_0x47f51b(0x1eb)](_0x465730)[_0x47f51b(0x1f7)](_0x591f25);});});}[_0x45dad4(0x208)](){const _0x3583c5=_0x45dad4;super[_0x3583c5(0x208)]();}async[_0x45dad4(0x1ff)](){const _0x2431f3=_0x45dad4;this[_0x2431f3(0x1aa)][_0x2431f3(0x1cc)]||await new Promise(_0x100eaf=>{const _0x2f3908=_0x2431f3;this[_0x2f3908(0x1c5)](this[_0x2f3908(0x1aa)],_0x2f3908(0x201),_0x1c39f3=>{const _0x17dc04=_0x2f3908;_0x1c39f3[_0x17dc04(0x1b7)](),_0x100eaf();});});}[_0x45dad4(0x210)](){const _0x452514=_0x45dad4,_0x245c52=this[_0x452514(0x1c1)][_0x452514(0x1c7)][_0x452514(0x21a)](_0x270e35)[_0x452514(0x206)][_0x452514(0x20a)]()[_0x452514(0x1e1)]();for(const _0x10d3dd of _0x245c52)if(_0x452514(0x1da)!==_0x10d3dd[_0x452514(0x1b8)]||_0x10d3dd[_0x452514(0x1c0)])return _0x10d3dd[_0x452514(0x20e)]+0x1;}[_0x45dad4(0x1f2)](){const _0x4757f4=_0x45dad4,_0x17e6bb=this[_0x4757f4(0x1c1)][_0x4757f4(0x1c7)][_0x4757f4(0x21a)](_0x270e35);return new Promise(_0x3d615b=>{const _0x209119=_0x4757f4;_0x17e6bb[_0x209119(0x1b0)]?_0x17e6bb[_0x209119(0x1b5)](_0x209119(0x1fd),()=>{const _0x1401cf=_0x209119;_0x3d615b(this[_0x1401cf(0x210)]());}):_0x3d615b(this[_0x209119(0x210)]());});}[_0x45dad4(0x20f)](_0x59e8b1,_0x57f0fe){const _0x138510=_0x45dad4,_0x32f2b6=this[_0x138510(0x1d2)][_0x138510(0x1dc)];this[_0x138510(0x205)]=_0x57f0fe;for(const _0x5ad938 of _0x59e8b1){const _0x57e59b=_0x32f2b6[_0x138510(0x1ef)](_0x5ad938['id']);if(_0x57e59b){if((_0x5ad938[_0x138510(0x20c)]||_0x5ad938[_0x138510(0x1d4)])&&(_0x5ad938[_0x138510(0x1ce)]=null),_0x57e59b===this[_0x138510(0x1d2)][_0x138510(0x1fb)]){const _0x366f9c=Math[_0x138510(0x1e8)](_0x57e59b[_0x138510(0x1d4)],_0x5ad938[_0x138510(0x1d4)]),_0x458a28=Math[_0x138510(0x1e8)](_0x57e59b[_0x138510(0x20c)],_0x5ad938[_0x138510(0x20c)]);let _0x23c9b2;_0x57e59b[_0x138510(0x1d4)]===_0x5ad938[_0x138510(0x1d4)]&&_0x57e59b[_0x138510(0x20c)]===_0x5ad938[_0x138510(0x20c)]?(_0x23c9b2=!0x0,this[_0x138510(0x1d6)](_0x5ad938)):_0x5ad938[_0x138510(0x1d4)]===_0x366f9c&&_0x5ad938[_0x138510(0x20c)]===_0x458a28?_0x23c9b2=!0x1:(_0x57e59b[_0x138510(0x1d4)]===_0x366f9c&&_0x57e59b[_0x138510(0x20c)]===_0x458a28||this[_0x138510(0x215)]({'revision':_0x57e59b,'from':_0x458a28,'to':_0x366f9c}),_0x23c9b2=!0x0),_0x23c9b2&&(delete _0x5ad938[_0x138510(0x20c)],delete _0x5ad938[_0x138510(0x1d4)],delete _0x5ad938[_0x138510(0x1ce)],delete _0x5ad938[_0x138510(0x1d8)],delete _0x5ad938[_0x138510(0x1ee)]);}this[_0x138510(0x1d2)][_0x138510(0x209)](_0x5ad938),this[_0x138510(0x1d6)](_0x5ad938);}else this[_0x138510(0x1d2)][_0x138510(0x1c9)](_0x5ad938);}const _0x3b65b1=_0x32f2b6[_0x138510(0x1d1)]();_0x3b65b1[_0x138510(0x1e1)]();for(let _0x4e4982=0x0;_0x4e4982<_0x3b65b1[_0x138510(0x1bd)]-0x1;_0x4e4982++){const _0x27d27b=_0x3b65b1[_0x4e4982],_0x14c963=_0x3b65b1[_0x4e4982+0x1];if(_0x27d27b[_0x138510(0x20c)]<_0x14c963[_0x138510(0x1d4)]){const _0x4acb6a=_0x14c963[_0x138510(0x1d4)],_0x131747=Math[_0x138510(0x1e8)](_0x4acb6a,_0x27d27b[_0x138510(0x1d4)]);this[_0x138510(0x215)]({'revision':_0x27d27b,'from':_0x4acb6a,'to':_0x131747});}}}[_0x45dad4(0x215)]({revision:_0x5ec991,from:_0x4e882f,to:_0x2aabc3}={}){const _0x1ddb97=_0x45dad4,_0x5c0a78=this[_0x1ddb97(0x1c1)][_0x1ddb97(0x1c7)][_0x1ddb97(0x21a)](_0x265600),_0x365eb2=this[_0x1ddb97(0x1d2)][_0x1ddb97(0x1ab)]({'revision':_0x5ec991,'from':_0x4e882f,'to':_0x2aabc3});_0x365eb2[_0x1ddb97(0x20b)]=_0x365eb2[_0x1ddb97(0x1ee)][_0x1ddb97(0x1fc)](_0x375912=>_0x5c0a78[_0x1ddb97(0x1f0)](_0x375912)),_0x5ec991[_0x1ddb97(0x1b4)](_0x365eb2);}[_0x45dad4(0x1d6)](_0x26fa2e){const _0x1c741b=_0x45dad4,_0x3f6dfb={};_0x3f6dfb['id']=_0x26fa2e['id'];for(const _0x3ca1bc of Object[_0x1c741b(0x217)](_0x26fa2e))'id'!==_0x3ca1bc&&(_0x3f6dfb[_0x3ca1bc]=void 0x0);this[_0x1c741b(0x1d2)][_0x1c741b(0x1e5)](_0x3f6dfb['id'],_0x3f6dfb,!0x0);}async[_0x45dad4(0x1f3)](_0x29710a){const _0x45f823=_0x45dad4,_0x29d74b=this[_0x45f823(0x1c1)][_0x45f823(0x1c7)][_0x45f823(0x21a)](_0x265600),{connection:_0x1cab2d}=this[_0x45f823(0x1c1)][_0x45f823(0x1c7)][_0x45f823(0x21a)](_0x211495),_0x25fb82=new Set();for(const _0x1eb812 of _0x29710a){for(const _0x5c66bb of _0x1eb812[_0x45f823(0x1ee)])_0x2fe263(_0x5c66bb);_0x1eb812[_0x45f823(0x20d)]&&_0x2fe263(_0x1eb812[_0x45f823(0x20d)]);}if(0x0===_0x25fb82[_0x45f823(0x211)])return;const _0x197992=await _0x3f9c01[_0x45f823(0x214)](_0x1cab2d,Array[_0x45f823(0x1bb)](_0x25fb82));for(const _0x56b873 of _0x197992)_0x29d74b[_0x45f823(0x1f0)](_0x56b873['id'])||_0x29d74b[_0x45f823(0x1dd)](_0x56b873);function _0x2fe263(_0x373926){const _0x1f3974=_0x45f823;_0x29d74b[_0x1f3974(0x1f0)](_0x373926)||_0x25fb82[_0x1f3974(0x1f8)](_0x373926);}}}function _0x3d87(_0x5a33ee,_0x2c6eca){const _0x3acb2e=_0x3acb();return _0x3d87=function(_0x3d8763,_0x1d1272){_0x3d8763=_0x3d8763-0x1a8;let _0x1c281b=_0x3acb2e[_0x3d8763];return _0x1c281b;},_0x3d87(_0x5a33ee,_0x2c6eca);}function st(_0x45e152){const _0x26b292=_0x45dad4;return _0x45e152[_0x26b292(0x1e3)][_0x26b292(0x1d3)](_0x26b292(0x200))||_0x45e152[_0x26b292(0x1e3)][_0x26b292(0x1d3)](_0x26b292(0x1cb))||_0x45e152[_0x26b292(0x1e3)][_0x26b292(0x1d3)](_0x26b292(0x202));}
|
|
23
|
+
const _0x2ff75f=_0x3b3d;(function(_0xfe835d,_0x311a1c){const _0x389e15=_0x3b3d,_0x318290=_0xfe835d();while(!![]){try{const _0x2c6d69=parseInt(_0x389e15(0x118))/0x1*(parseInt(_0x389e15(0x112))/0x2)+parseInt(_0x389e15(0x162))/0x3+-parseInt(_0x389e15(0x141))/0x4*(parseInt(_0x389e15(0x17a))/0x5)+-parseInt(_0x389e15(0x17c))/0x6*(-parseInt(_0x389e15(0x175))/0x7)+-parseInt(_0x389e15(0x154))/0x8*(-parseInt(_0x389e15(0x17d))/0x9)+parseInt(_0x389e15(0x115))/0xa+-parseInt(_0x389e15(0x13f))/0xb;if(_0x2c6d69===_0x311a1c)break;else _0x318290['push'](_0x318290['shift']());}catch(_0x1f874c){_0x318290['push'](_0x318290['shift']());}}}(_0x2f41,0x979b2));function _0x2f41(){const _0x2b537d=['authorsIds','getMany','diffData','3475345RbDkVh','_fetchMissingUsers','2076FqPagT','61434wlBOqH','_revisionTracker','bind','CloudServicesRevisionHistoryAdapter','listenTo','reverse','get','remove','affectsData','isConnected','73114AGiAsd','buildRevisionData','sendBufferedUpdates','3609680RsGuNu','createdAt','_bufferUpdate','1jatUzk','updateRevisions','_fixRevision','revisionsUpdated','addRevisionData','_isPendingUpdate','map','400','cloudServices.bundleVersion','message','_getLatestVersionFromServerOperations','toVersion','catch','_handleRevisionsUpdate','_revisionDataBuilder','setRevisionData','change:_isConnected','_preventResendingRevisionData','keys','RevisionTracker','_bufferedUpdates','addUser','change:_isPendingUpdate','editor','config','init','from','off','authors','_revisionHistoryService','_update','_isConnected','reconnect','pluginName','_createCurrentRevision','startsWith','requires','cloud-services-internal-error:\x20Not\x20connected.','_startingVersion','1078990aBEiII','isEnabled','4TuvPoS','isEmptyCurrent','length','RevisionHistoryService','getRevision','reInit','marker','wrongRequestId','creatorId','size','baseVersion','isPremiumPlugin','cloud-services-internal-error:\x20Request\x20timeout.','addToReconnectionStack','_revisions','_waitForServiceReady','destroy','then','_lastRequestId','664jQdbRw','RevisionHistory','_handleReconnectionError','max','data','connected','collaboration.channelId','currentRevision','once','connect','plugins','getUser','sessionId','type','1304490JusCke','setSource','repository','_getLatestVersion','_oldOffset','adapter','getRevisions','getOperations','CONNECTED','add','code','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','_offset','isOfficialPlugin','connection','isBundleUploaded','fromVersion','has','serverHistory','308KxDiRH','state'];_0x2f41=function(){return _0x2b537d;};return _0x2f41();}import{Plugin as _0x4ca677}from'ckeditor5/src/core.js';import{version as _0x2ab8c8}from'ckeditor5/src/utils.js';function _0x3b3d(_0x4d0544,_0x3059bf){const _0x2f41fa=_0x2f41();return _0x3b3d=function(_0x3b3d5e,_0x44927e){_0x3b3d5e=_0x3b3d5e-0x109;let _0x445946=_0x2f41fa[_0x3b3d5e];return _0x445946;},_0x3b3d(_0x4d0544,_0x3059bf);}import{Users as _0x1b75ea}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x53bb4d}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x37d6a6}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x589605}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x2ca4bc,RevisionHistoryService as _0x5cbacd,User as _0x365d0c,WEB_SOCKET_GATEWAY_STATES as _0x52abcc}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x4ca677{static [_0x2ff75f(0x144)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x5cbacd)());[_0x2ff75f(0x153)];[_0x2ff75f(0x109)];[_0x2ff75f(0x135)];[_0x2ff75f(0x166)];static get[_0x2ff75f(0x13c)](){const _0x17f235=_0x2ff75f;return[_0x37d6a6,_0x53bb4d,_0x17f235(0x155),_0x589605,_0x1b75ea];}static get[_0x2ff75f(0x139)](){const _0x5491f7=_0x2ff75f;return _0x5491f7(0x10b);}static get[_0x2ff75f(0x16f)](){return!0x0;}static get[_0x2ff75f(0x14c)](){return!0x0;}constructor(_0x155eba){const _0x43abef=_0x2ff75f;super(_0x155eba);const _0x1eccf6=this[_0x43abef(0x12f)][_0x43abef(0x130)][_0x43abef(0x10e)](_0x43abef(0x15a));this[_0x43abef(0x153)]=null,this[_0x43abef(0x109)]=this[_0x43abef(0x12f)][_0x43abef(0x15e)][_0x43abef(0x10e)](_0x43abef(0x12b)),this[_0x43abef(0x135)]=new CloudServicesRevisionHistoryAdapter[(_0x43abef(0x144))](_0x1eccf6);}async[_0x2ff75f(0x131)](){const _0x2259f4=_0x2ff75f,_0x216988=this[_0x2259f4(0x12f)][_0x2259f4(0x15e)][_0x2259f4(0x10e)](_0x53bb4d),_0x56245a=_0x216988[_0x2259f4(0x174)],_0x496f9b=this[_0x2259f4(0x12f)][_0x2259f4(0x15e)][_0x2259f4(0x10e)](_0x37d6a6);this[_0x2259f4(0x109)][_0x2259f4(0x163)]({'history':_0x56245a,'getLatestVersion':()=>this[_0x2259f4(0x165)](),'getCurrentRevisionId':()=>_0x216988[_0x2259f4(0x160)]});const _0x21a497=this[_0x2259f4(0x12f)][_0x2259f4(0x130)][_0x2259f4(0x10e)](_0x2259f4(0x120))||_0x2ab8c8,_0x5e379e=await _0x2ca4bc[_0x2259f4(0x171)](_0x496f9b[_0x2259f4(0x170)],_0x21a497);this[_0x2259f4(0x12f)][_0x2259f4(0x15e)][_0x2259f4(0x10e)](_0x2259f4(0x155))[_0x2259f4(0x167)]={'getRevision':async({revisionId:_0x425f42})=>(await this[_0x2259f4(0x150)](),await this[_0x2259f4(0x135)][_0x2259f4(0x145)](_0x425f42)),'updateRevisions':async _0x3fa4a7=>{const _0x488498=_0x2259f4;await this[_0x488498(0x150)]();const _0x5aa376=this[_0x488498(0x109)][_0x488498(0x15b)];if(_0x5e379e&&0x1===_0x3fa4a7[_0x488498(0x143)]&&_0x3fa4a7[0x0]['id']===_0x5aa376['id'])return _0x3fa4a7;for(const _0x3180b8 of _0x3fa4a7)_0x3180b8['id']===_0x5aa376['id']&&(_0x3180b8[_0x488498(0x142)]=_0x3180b8[_0x488498(0x172)]===_0x3180b8[_0x488498(0x123)]);return this[_0x488498(0x135)][_0x488498(0x119)](_0x3fa4a7,this[_0x488498(0x153)])[_0x488498(0x152)](_0x59cda5=>(this[_0x488498(0x153)]=_0x59cda5,_0x3fa4a7))[_0x488498(0x124)](_0x1ed7af=>{const _0xe101e2=_0x488498;if(st(_0x1ed7af)||_0xe101e2(0x11f)===_0x1ed7af[_0xe101e2(0x16c)]&&void 0x0!==_0x1ed7af[_0xe101e2(0x158)][_0xe101e2(0x148)]){for(const _0x539dc6 of _0x3fa4a7){!this[_0xe101e2(0x109)][_0xe101e2(0x164)][_0xe101e2(0x145)](_0x539dc6['id'])||this[_0xe101e2(0x109)][_0xe101e2(0x117)](_0x539dc6['id'],_0x539dc6,!0x1);}if(st(_0x1ed7af))throw _0x1ed7af;return _0x3fa4a7;}throw _0x1ed7af;});}},this[_0x2259f4(0x10c)](this[_0x2259f4(0x135)],_0x2259f4(0x11b),(_0x44514c,{revisionsData:_0xc23547,requestId:_0x58710d})=>{const _0x91cb28=_0x2259f4;Math[_0x91cb28(0x157)](..._0xc23547[_0x91cb28(0x11e)](_0x18cc28=>_0x18cc28[_0x91cb28(0x123)]))>this[_0x91cb28(0x122)]()-0x1?this[_0x91cb28(0x165)]()[_0x91cb28(0x152)](()=>{const _0xe5ff9a=_0x91cb28;this[_0xe5ff9a(0x125)](_0xc23547,_0x58710d);}):this[_0x91cb28(0x125)](_0xc23547,_0x58710d);});const {revisions:_0x5065d2,requestId:_0x1f13ed}=await this[_0x2259f4(0x135)][_0x2259f4(0x15d)](_0x496f9b[_0x2259f4(0x170)]);_0x496f9b[_0x2259f4(0x14e)](this),this[_0x2259f4(0x153)]=_0x1f13ed,await this[_0x2259f4(0x17b)](_0x5065d2);for(const _0x579ae9 of _0x5065d2)this[_0x2259f4(0x109)][_0x2259f4(0x11c)](_0x579ae9);this[_0x2259f4(0x10c)](_0x216988,_0x2259f4(0x128),(_0x5d9c57,_0x21419d,_0x3efe74)=>{const _0xa709f8=_0x2259f4;_0x3efe74&&(this[_0xa709f8(0x166)]=_0x216988[_0xa709f8(0x16e)],_0x5d9c57[_0xa709f8(0x133)]());}),this[_0x2259f4(0x109)][_0x2259f4(0x10a)](_0x2259f4(0x140))['to'](_0x496f9b,_0x2259f4(0x176),_0x230178=>_0x230178===_0x52abcc[_0x2259f4(0x16a)]);}async[_0x2ff75f(0x138)](){const _0x198797=_0x2ff75f,_0x5c4213=this[_0x198797(0x12f)][_0x198797(0x15e)][_0x198797(0x10e)](_0x37d6a6),_0x5b81f9=this[_0x198797(0x12f)][_0x198797(0x15e)][_0x198797(0x10e)](_0x53bb4d),_0x41ae00=async()=>{const _0x185049=_0x198797,_0x57feb5=this[_0x185049(0x109)][_0x185049(0x15b)],_0x246c95=_0x57feb5['id'],_0x283f58=_0x246c95!==_0x5b81f9[_0x185049(0x160)];if(_0x283f58){const _0x1ecb62=_0x5b81f9[_0x185049(0x16e)]-this[_0x185049(0x166)],_0x31d0a4=this[_0x185049(0x122)]();this[_0x185049(0x109)][_0x185049(0x126)][_0x185049(0x146)]();if(_0x57feb5[_0x185049(0x123)]+_0x1ecb62!==_0x31d0a4){const _0x76cde8=_0x57feb5[_0x185049(0x172)]+_0x1ecb62,_0x53a81a=this[_0x185049(0x12f)][_0x185049(0x15e)][_0x185049(0x10e)](_0x1b75ea),_0x50e1eb=this[_0x185049(0x109)][_0x185049(0x113)]({'revision':_0x57feb5,'from':_0x76cde8,'to':_0x31d0a4});_0x50e1eb['id']=_0x57feb5['id'];const _0x24fbc1=_0x50e1eb[_0x185049(0x177)][_0x185049(0x11e)](_0x44bb0e=>_0x53a81a[_0x185049(0x15f)](_0x44bb0e));_0x57feb5[_0x185049(0x136)]({..._0x50e1eb,'authors':_0x24fbc1},!0x0),this[_0x185049(0x109)][_0x185049(0x117)](_0x57feb5['id'],_0x50e1eb,!0x0);}this[_0x185049(0x109)][_0x185049(0x13e)]=_0x31d0a4,(_0x57feb5[_0x185049(0x123)]===_0x57feb5[_0x185049(0x172)]&&!this[_0x185049(0x109)][_0x185049(0x12c)][_0x185049(0x173)](_0x246c95)&&this[_0x185049(0x109)][_0x185049(0x164)][_0x185049(0x14f)][_0x185049(0x10f)](_0x246c95),this[_0x185049(0x109)][_0x185049(0x13a)](_0x31d0a4));}const {revisions:_0x40c712,requestId:_0x199683}=await this[_0x185049(0x135)][_0x185049(0x138)](_0x5c4213[_0x185049(0x170)],this[_0x185049(0x153)]);_0x283f58&&_0x40c712[_0x185049(0x143)]>0x0?_0x5b81f9[_0x185049(0x156)]():(await this[_0x185049(0x17b)](_0x40c712),this[_0x185049(0x125)](_0x40c712,_0x199683),this[_0x185049(0x109)][_0x185049(0x114)]());};return _0x5b81f9[_0x198797(0x137)]?_0x41ae00():new Promise((_0x53c95b,_0x111e55)=>{const _0x293a38=_0x198797;_0x5b81f9[_0x293a38(0x15c)](_0x293a38(0x128),()=>{const _0x24c438=_0x293a38;_0x41ae00()[_0x24c438(0x152)](_0x53c95b)[_0x24c438(0x124)](_0x111e55);});});}[_0x2ff75f(0x151)](){const _0xb5249c=_0x2ff75f;super[_0xb5249c(0x151)]();}async[_0x2ff75f(0x150)](){const _0x1ee693=_0x2ff75f;this[_0x1ee693(0x135)][_0x1ee693(0x111)]||await new Promise(_0x5ca1cd=>{const _0x52fd7e=_0x1ee693;this[_0x52fd7e(0x10c)](this[_0x52fd7e(0x135)],_0x52fd7e(0x159),_0x10a6be=>{const _0x4674b2=_0x52fd7e;_0x10a6be[_0x4674b2(0x133)](),_0x5ca1cd();});});}[_0x2ff75f(0x122)](){const _0x3f4a81=_0x2ff75f,_0x365b4b=this[_0x3f4a81(0x12f)][_0x3f4a81(0x15e)][_0x3f4a81(0x10e)](_0x53bb4d)[_0x3f4a81(0x174)][_0x3f4a81(0x169)]()[_0x3f4a81(0x10d)]();for(const _0x116174 of _0x365b4b)if(_0x3f4a81(0x147)!==_0x116174[_0x3f4a81(0x161)]||_0x116174[_0x3f4a81(0x110)])return _0x116174[_0x3f4a81(0x14b)]+0x1;}[_0x2ff75f(0x165)](){const _0x44c846=_0x2ff75f,_0x2cf82a=this[_0x44c846(0x12f)][_0x44c846(0x15e)][_0x44c846(0x10e)](_0x53bb4d);return new Promise(_0x3c9a04=>{const _0x5b0fc1=_0x44c846;_0x2cf82a[_0x5b0fc1(0x11d)]?_0x2cf82a[_0x5b0fc1(0x15c)](_0x5b0fc1(0x12e),()=>{const _0x56e555=_0x5b0fc1;_0x3c9a04(this[_0x56e555(0x122)]());}):_0x3c9a04(this[_0x5b0fc1(0x122)]());});}[_0x2ff75f(0x125)](_0x171fb4,_0x1e43cd){const _0x119399=_0x2ff75f,_0x383e44=this[_0x119399(0x109)][_0x119399(0x164)];this[_0x119399(0x153)]=_0x1e43cd;for(const _0x5720d8 of _0x171fb4){const _0x2462de=_0x383e44[_0x119399(0x145)](_0x5720d8['id']);if(_0x2462de){if((_0x5720d8[_0x119399(0x172)]||_0x5720d8[_0x119399(0x123)])&&(_0x5720d8[_0x119399(0x179)]=null),_0x2462de===this[_0x119399(0x109)][_0x119399(0x15b)]){const _0x3323fb=Math[_0x119399(0x157)](_0x2462de[_0x119399(0x123)],_0x5720d8[_0x119399(0x123)]),_0x11f9c=Math[_0x119399(0x157)](_0x2462de[_0x119399(0x172)],_0x5720d8[_0x119399(0x172)]);let _0x4eb26a;_0x2462de[_0x119399(0x123)]===_0x5720d8[_0x119399(0x123)]&&_0x2462de[_0x119399(0x172)]===_0x5720d8[_0x119399(0x172)]?(_0x4eb26a=!0x0,this[_0x119399(0x129)](_0x5720d8)):_0x5720d8[_0x119399(0x123)]===_0x3323fb&&_0x5720d8[_0x119399(0x172)]===_0x11f9c?_0x4eb26a=!0x1:(_0x2462de[_0x119399(0x123)]===_0x3323fb&&_0x2462de[_0x119399(0x172)]===_0x11f9c||this[_0x119399(0x11a)]({'revision':_0x2462de,'from':_0x11f9c,'to':_0x3323fb}),_0x4eb26a=!0x0),_0x4eb26a&&(delete _0x5720d8[_0x119399(0x172)],delete _0x5720d8[_0x119399(0x123)],delete _0x5720d8[_0x119399(0x179)],delete _0x5720d8[_0x119399(0x116)],delete _0x5720d8[_0x119399(0x177)]);}this[_0x119399(0x109)][_0x119399(0x127)](_0x5720d8),this[_0x119399(0x129)](_0x5720d8);}else this[_0x119399(0x109)][_0x119399(0x11c)](_0x5720d8);}const _0xc6faac=_0x383e44[_0x119399(0x168)]();_0xc6faac[_0x119399(0x10d)]();for(let _0x1e2789=0x0;_0x1e2789<_0xc6faac[_0x119399(0x143)]-0x1;_0x1e2789++){const _0x12c523=_0xc6faac[_0x1e2789],_0x176974=_0xc6faac[_0x1e2789+0x1];if(_0x12c523[_0x119399(0x172)]<_0x176974[_0x119399(0x123)]){const _0x50df73=_0x176974[_0x119399(0x123)],_0x4eca94=Math[_0x119399(0x157)](_0x50df73,_0x12c523[_0x119399(0x123)]);this[_0x119399(0x11a)]({'revision':_0x12c523,'from':_0x50df73,'to':_0x4eca94});}}}[_0x2ff75f(0x11a)]({revision:_0xa90cbe,from:_0x50f48a,to:_0x493276}={}){const _0x588cd3=_0x2ff75f,_0x546cc9=this[_0x588cd3(0x12f)][_0x588cd3(0x15e)][_0x588cd3(0x10e)](_0x1b75ea),_0x3fec5c=this[_0x588cd3(0x109)][_0x588cd3(0x113)]({'revision':_0xa90cbe,'from':_0x50f48a,'to':_0x493276});_0x3fec5c[_0x588cd3(0x134)]=_0x3fec5c[_0x588cd3(0x177)][_0x588cd3(0x11e)](_0xdd7247=>_0x546cc9[_0x588cd3(0x15f)](_0xdd7247)),_0xa90cbe[_0x588cd3(0x136)](_0x3fec5c);}[_0x2ff75f(0x129)](_0x48ae3e){const _0x4e70f9=_0x2ff75f,_0x8d214e={};_0x8d214e['id']=_0x48ae3e['id'];for(const _0x197b61 of Object[_0x4e70f9(0x12a)](_0x48ae3e))'id'!==_0x197b61&&(_0x8d214e[_0x197b61]=void 0x0);this[_0x4e70f9(0x109)][_0x4e70f9(0x117)](_0x8d214e['id'],_0x8d214e,!0x0);}async[_0x2ff75f(0x17b)](_0x7e3541){const _0x4c6bd8=_0x2ff75f,_0x1f1cb8=this[_0x4c6bd8(0x12f)][_0x4c6bd8(0x15e)][_0x4c6bd8(0x10e)](_0x1b75ea),{connection:_0x144054}=this[_0x4c6bd8(0x12f)][_0x4c6bd8(0x15e)][_0x4c6bd8(0x10e)](_0x37d6a6),_0x5c4af1=new Set();for(const _0x45a625 of _0x7e3541){for(const _0x5ee1dc of _0x45a625[_0x4c6bd8(0x177)])_0x61585a(_0x5ee1dc);_0x45a625[_0x4c6bd8(0x149)]&&_0x61585a(_0x45a625[_0x4c6bd8(0x149)]);}if(0x0===_0x5c4af1[_0x4c6bd8(0x14a)])return;const _0x13d1e6=await _0x365d0c[_0x4c6bd8(0x178)](_0x144054,Array[_0x4c6bd8(0x132)](_0x5c4af1));for(const _0x3b57c5 of _0x13d1e6)_0x1f1cb8[_0x4c6bd8(0x15f)](_0x3b57c5['id'])||_0x1f1cb8[_0x4c6bd8(0x12d)](_0x3b57c5);function _0x61585a(_0xf02409){const _0x33d463=_0x4c6bd8;_0x1f1cb8[_0x33d463(0x15f)](_0xf02409)||_0x5c4af1[_0x33d463(0x16b)](_0xf02409);}}}function st(_0x2d5c34){const _0x1d79e1=_0x2ff75f;return _0x2d5c34[_0x1d79e1(0x121)][_0x1d79e1(0x13b)](_0x1d79e1(0x16d))||_0x2d5c34[_0x1d79e1(0x121)][_0x1d79e1(0x13b)](_0x1d79e1(0x13d))||_0x2d5c34[_0x1d79e1(0x121)][_0x1d79e1(0x13b)](_0x1d79e1(0x14d));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x15665f=_0x5760;function _0x5760(_0x278ab1,_0xe1d6e7){const _0x392b91=_0x392b();return _0x5760=function(_0x57604b,_0x5d7863){_0x57604b=_0x57604b-0x156;let _0x5328e6=_0x392b91[_0x57604b];return _0x5328e6;},_0x5760(_0x278ab1,_0xe1d6e7);}(function(_0x45ed54,_0x256624){const _0x316362=_0x5760,_0x375e28=_0x45ed54();while(!![]){try{const _0xd67be8=parseInt(_0x316362(0x16b))/0x1*(-parseInt(_0x316362(0x16a))/0x2)+parseInt(_0x316362(0x189))/0x3+-parseInt(_0x316362(0x17d))/0x4*(parseInt(_0x316362(0x171))/0x5)+-parseInt(_0x316362(0x17f))/0x6+-parseInt(_0x316362(0x183))/0x7*(parseInt(_0x316362(0x190))/0x8)+parseInt(_0x316362(0x168))/0x9+-parseInt(_0x316362(0x161))/0xa*(-parseInt(_0x316362(0x18a))/0xb);if(_0xd67be8===_0x256624)break;else _0x375e28['push'](_0x375e28['shift']());}catch(_0x992d9){_0x375e28['push'](_0x375e28['shift']());}}}(_0x392b,0xf3d3a));function _0x392b(){const _0x7b69d6=['addSuggestionData','_saved','TrackChangesService','update','TrackChangesEditing','599940pkBWnh','2356541zYibcW','size','_fetchMissingUsersForThreads','getMany','CloudServicesTrackChangesAdapter','connected','4156072vttYGA','reconnect','config','init','collaboration.channelId','originalSuggestionId','isPremiumPlugin','adapter','catch','add','_trackChangesService','from','isConnected','addToReconnectionStack','connection','message','suggestionUpdated','values','130jXuRRw','state','get','type','addUser','data','cloud-services-internal-error:\x20Request\x20timeout.','7989345HDqaWR','delete','262952TtMyRU','1pORloi','then','plugins','hasSuggestion','set','off','1014330vtVpTr','requires','getUser','listenTo','connect','_bufferedRequests','pluginName','getSuggestion','find','editor','attributes','_waitForServiceReady','12BsPaHr','cloud-services-internal-error:\x20Not\x20connected.','3452238xsgQpn','isOfficialPlugin','startsWith','open','21BvAyIW'];_0x392b=function(){return _0x7b69d6;};return _0x392b();}import{Plugin as _0x36387d}from'ckeditor5/src/core.js';import{User as _0x2f1f54,TrackChangesService as _0x32caba}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x536386}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0xd7c035}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x3f0227}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x36387d{static [_0x15665f(0x186)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x32caba)());[_0x15665f(0x176)];[_0x15665f(0x159)];static get[_0x15665f(0x172)](){const _0x57f4a6=_0x15665f;return[_0xd7c035,_0x57f4a6(0x188),_0x536386];}static get[_0x15665f(0x177)](){const _0x3d0515=_0x15665f;return _0x3d0515(0x18e);}static get[_0x15665f(0x180)](){return!0x0;}static get[_0x15665f(0x196)](){return!0x0;}constructor(_0x1c1d56){const _0x188889=_0x15665f;super(_0x1c1d56);const _0x4c2c82=this[_0x188889(0x17a)][_0x188889(0x192)][_0x188889(0x163)](_0x188889(0x194));this[_0x188889(0x176)]=new Map(),this[_0x188889(0x159)]=new CloudServicesTrackChangesAdapter[(_0x188889(0x186))](_0x4c2c82);}[_0x15665f(0x193)](){const _0x2e7bf5=_0x15665f,_0x43e105=this[_0x2e7bf5(0x17a)][_0x2e7bf5(0x16d)][_0x2e7bf5(0x163)](_0x536386),_0x3fe850=this[_0x2e7bf5(0x17a)][_0x2e7bf5(0x16d)][_0x2e7bf5(0x163)](_0x2e7bf5(0x188));return _0x3fe850[_0x2e7bf5(0x156)]={'getSuggestion':async _0x18530b=>{const _0x3f0f44=_0x2e7bf5;await this[_0x3f0f44(0x17c)]();const _0x15848a=await this[_0x3f0f44(0x159)][_0x3f0f44(0x163)](_0x18530b)[_0x3f0f44(0x157)](A);return await this[_0x3f0f44(0x18c)]([_0x15848a]),_0x15848a;},'addSuggestion':async({id:_0x66a8c1,type:_0xba0f48,data:_0x14419e,originalSuggestionId:_0x2f193b,attributes:_0x22a65c})=>{const _0x1991e6=_0x2e7bf5;await this[_0x1991e6(0x17c)]();const _0x344292={'id':_0x66a8c1,'type':_0xba0f48,'data':_0x14419e,'originalSuggestionId':_0x2f193b,'attributes':_0x22a65c},_0x346511=await this[_0x1991e6(0x159)][_0x1991e6(0x158)](_0x66a8c1,_0xba0f48,_0x14419e,_0x2f193b,_0x22a65c)[_0x1991e6(0x157)](_0x13a3bc=>{if(st(_0x13a3bc))return new Promise(_0xb75129=>{const _0x283ec2=_0x5760;this[_0x283ec2(0x176)][_0x283ec2(0x16f)](_0x66a8c1,{'resolve':_0xb75129,'suggestionData':_0x344292});});throw _0x13a3bc;});return this[_0x1991e6(0x176)][_0x1991e6(0x169)](_0x66a8c1),_0x346511;},'updateSuggestion':async(_0x5c9c4f,_0x5cb74c)=>{const _0x5bf638=_0x2e7bf5;if(await this[_0x5bf638(0x17c)](),_0x5bf638(0x182)!==_0x5cb74c[_0x5bf638(0x162)])return this[_0x5bf638(0x159)][_0x5bf638(0x187)](_0x5c9c4f,_0x5cb74c)[_0x5bf638(0x157)](A);}},this[_0x2e7bf5(0x174)](this[_0x2e7bf5(0x159)],_0x2e7bf5(0x15f),(_0x3ad9d3,_0x4424dc)=>{const _0x5c9aa8=_0x2e7bf5;_0x3fe850[_0x5c9aa8(0x16e)](_0x4424dc['id'])&&(_0x3fe850[_0x5c9aa8(0x178)](_0x4424dc['id'])[_0x5c9aa8(0x17b)]=_0x4424dc[_0x5c9aa8(0x17b)]);}),this[_0x2e7bf5(0x159)][_0x2e7bf5(0x175)](_0x43e105[_0x2e7bf5(0x15d)])[_0x2e7bf5(0x16c)](_0x30b9dc=>(_0x43e105[_0x2e7bf5(0x15c)](this),this[_0x2e7bf5(0x18c)](_0x30b9dc)[_0x2e7bf5(0x16c)](()=>{const _0x44d6b6=_0x2e7bf5;for(const _0x4f37f0 of _0x30b9dc){_0x3fe850[_0x44d6b6(0x184)](_0x4f37f0)[_0x44d6b6(0x185)]=!0x0;}})));}async[_0x15665f(0x191)](){const _0x5479f4=_0x15665f,_0x10c2ce=this[_0x5479f4(0x17a)][_0x5479f4(0x16d)][_0x5479f4(0x163)](_0x5479f4(0x188)),{connection:_0x1d2685}=this[_0x5479f4(0x17a)][_0x5479f4(0x16d)][_0x5479f4(0x163)](_0x536386),_0x185013=await this[_0x5479f4(0x159)][_0x5479f4(0x175)](_0x1d2685);await this[_0x5479f4(0x18c)](_0x185013);for(const {suggestionData:_0x4c4ce3,resolve:_0x306451}of this[_0x5479f4(0x176)][_0x5479f4(0x160)]()){let _0x5b8cae=_0x185013[_0x5479f4(0x179)](_0x2313c6=>_0x2313c6['id']===_0x4c4ce3['id']);_0x5b8cae||(_0x5b8cae=await this[_0x5479f4(0x159)][_0x5479f4(0x158)](_0x4c4ce3['id'],_0x4c4ce3[_0x5479f4(0x164)],_0x4c4ce3[_0x5479f4(0x166)],_0x4c4ce3[_0x5479f4(0x195)])),_0x306451(_0x5b8cae);}for(const _0x4377eb of _0x185013)_0x10c2ce[_0x5479f4(0x16e)](_0x4377eb['id'])||_0x10c2ce[_0x5479f4(0x184)](_0x4377eb);}async[_0x15665f(0x17c)](){const _0x674178=_0x15665f;this[_0x674178(0x159)][_0x674178(0x15b)]||await new Promise(_0x45f027=>{const _0x5d37b7=_0x674178;this[_0x5d37b7(0x174)](this[_0x5d37b7(0x159)],_0x5d37b7(0x18f),_0x53d0be=>{const _0x59a0b2=_0x5d37b7;_0x53d0be[_0x59a0b2(0x170)](),_0x45f027();});});}async[_0x15665f(0x18c)](_0x24ae5f){const _0x2cd662=_0x15665f,_0x457184=this[_0x2cd662(0x17a)][_0x2cd662(0x16d)][_0x2cd662(0x163)](_0x3f0227),{connection:_0x1fac29}=this[_0x2cd662(0x17a)][_0x2cd662(0x16d)][_0x2cd662(0x163)](_0x536386),_0x3586f8=new Set();for(const {authorId:_0x97b2bd}of _0x24ae5f)_0x457184[_0x2cd662(0x173)](_0x97b2bd)||_0x3586f8[_0x2cd662(0x158)](_0x97b2bd);if(0x0===_0x3586f8[_0x2cd662(0x18b)])return;const _0x53256=await _0x2f1f54[_0x2cd662(0x18d)](_0x1fac29,Array[_0x2cd662(0x15a)](_0x3586f8));for(const _0x114eb1 of _0x53256)_0x457184[_0x2cd662(0x173)](_0x114eb1['id'])||_0x457184[_0x2cd662(0x165)](_0x114eb1);}}function A(_0x332416){if(st(_0x332416))return new Promise(()=>{});throw _0x332416;}function st(_0x3f9779){const _0x28e320=_0x15665f;return _0x3f9779[_0x28e320(0x15e)][_0x28e320(0x181)](_0x28e320(0x17e))||_0x3f9779[_0x28e320(0x15e)][_0x28e320(0x181)](_0x28e320(0x167));}
|