@ckeditor/ckeditor5-real-time-collaboration 47.4.0-alpha.2 → 47.4.0-alpha.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-real-time-collaboration",
3
- "version": "47.4.0-alpha.2",
3
+ "version": "47.4.0-alpha.3",
4
4
  "description": "A set of CKEditor 5 features enabling real-time collaboration within the editor using CKEditor Cloud Services.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -47,19 +47,19 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@ckeditor/ckeditor-cloud-services-collaboration": "53.0.2",
50
- "@ckeditor/ckeditor5-cloud-services": "47.4.0-alpha.2",
51
- "@ckeditor/ckeditor5-comments": "47.4.0-alpha.2",
52
- "@ckeditor/ckeditor5-core": "47.4.0-alpha.2",
53
- "@ckeditor/ckeditor5-editor-multi-root": "47.4.0-alpha.2",
54
- "@ckeditor/ckeditor5-engine": "47.4.0-alpha.2",
55
- "@ckeditor/ckeditor5-operations-compressor": "47.4.0-alpha.2",
56
- "@ckeditor/ckeditor5-revision-history": "47.4.0-alpha.2",
57
- "@ckeditor/ckeditor5-theme-lark": "47.4.0-alpha.2",
58
- "@ckeditor/ckeditor5-track-changes": "47.4.0-alpha.2",
59
- "@ckeditor/ckeditor5-ui": "47.4.0-alpha.2",
60
- "@ckeditor/ckeditor5-utils": "47.4.0-alpha.2",
61
- "ckeditor5": "47.4.0-alpha.2",
62
- "ckeditor5-collaboration": "47.4.0-alpha.2",
50
+ "@ckeditor/ckeditor5-cloud-services": "47.4.0-alpha.3",
51
+ "@ckeditor/ckeditor5-comments": "47.4.0-alpha.3",
52
+ "@ckeditor/ckeditor5-core": "47.4.0-alpha.3",
53
+ "@ckeditor/ckeditor5-editor-multi-root": "47.4.0-alpha.3",
54
+ "@ckeditor/ckeditor5-engine": "47.4.0-alpha.3",
55
+ "@ckeditor/ckeditor5-operations-compressor": "47.4.0-alpha.3",
56
+ "@ckeditor/ckeditor5-revision-history": "47.4.0-alpha.3",
57
+ "@ckeditor/ckeditor5-theme-lark": "47.4.0-alpha.3",
58
+ "@ckeditor/ckeditor5-track-changes": "47.4.0-alpha.3",
59
+ "@ckeditor/ckeditor5-ui": "47.4.0-alpha.3",
60
+ "@ckeditor/ckeditor5-utils": "47.4.0-alpha.3",
61
+ "ckeditor5": "47.4.0-alpha.3",
62
+ "ckeditor5-collaboration": "47.4.0-alpha.3",
63
63
  "es-toolkit": "1.39.5"
64
64
  },
65
65
  "types": "src/index.d.ts",
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25fd91=_0x418b;(function(_0x1031dc,_0x3eb0f3){const _0x3886b1=_0x418b,_0x5e7c2a=_0x1031dc();while(!![]){try{const _0xbd8362=parseInt(_0x3886b1(0x1ce))/0x1*(parseInt(_0x3886b1(0x1fe))/0x2)+parseInt(_0x3886b1(0x1ac))/0x3*(parseInt(_0x3886b1(0x1e8))/0x4)+parseInt(_0x3886b1(0x207))/0x5*(parseInt(_0x3886b1(0x1a7))/0x6)+parseInt(_0x3886b1(0x1ef))/0x7*(parseInt(_0x3886b1(0x1e0))/0x8)+-parseInt(_0x3886b1(0x1dc))/0x9+-parseInt(_0x3886b1(0x1bc))/0xa*(parseInt(_0x3886b1(0x1cd))/0xb)+parseInt(_0x3886b1(0x1c4))/0xc*(-parseInt(_0x3886b1(0x210))/0xd);if(_0xbd8362===_0x3eb0f3)break;else _0x5e7c2a['push'](_0x5e7c2a['shift']());}catch(_0x55fb8c){_0x5e7c2a['push'](_0x5e7c2a['shift']());}}}(_0x2202,0x329fc));import{Plugin as _0x42d993}from'ckeditor5/src/core.js';import{version as _0x579c23}from'ckeditor5/src/utils.js';import{Users as _0x233a39}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x39c768}from'../realtimecollaborativeediting/realtimecollaborationclient.js';function _0x418b(_0x396fb4,_0x1c855b){const _0x22021f=_0x2202();return _0x418b=function(_0x418b73,_0x5ce785){_0x418b73=_0x418b73-0x19f;let _0x1b2346=_0x22021f[_0x418b73];return _0x1b2346;},_0x418b(_0x396fb4,_0x1c855b);}import{WebSocketGateway as _0x254a0f}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x1651d7}from'../realtimecollaborativeediting/sessions.js';function _0x2202(){const _0x117634=['updateRevisions','_revisions','13vNkecm','requires','fromVersion','keys','getOperations','serverHistory','_isConnected','_handleRevisionsUpdate','revisionsUpdated','get','addUser','RevisionHistory','_waitForServiceReady','bind','5310eJswGG','wrongRequestId','code','marker','then','75SxRaIh','config','repository','_oldOffset','connect','length','_offset','message','from','_revisionDataBuilder','RevisionTracker','sendBufferedUpdates','_revisionTracker','change:_isConnected','_update','_startingVersion','1266830JfppkK','RevisionHistoryService','_getLatestVersion','getMany','once','plugins','cloud-services-internal-error:\x20Request\x20timeout.','isOfficialPlugin','2993964ujCJjf','_createCurrentRevision','getUser','init','adapter','creatorId','isEnabled','_getLatestVersionFromServerOperations','add','22FjNxfx','1NsOxWl','buildRevisionData','size','authors','has','catch','isBundleUploaded','map','CONNECTED','addToReconnectionStack','destroy','connection','diffData','_lastRequestId','2219499eZqNzy','isPremiumPlugin','_fixRevision','currentRevision','9848pNUWpH','getRevision','type','authorsIds','baseVersion','change:_isPendingUpdate','CloudServicesRevisionHistoryAdapter','_fetchMissingUsers','63524HldGib','editor','cloudServices.bundleVersion','reconnect','createdAt','_handleReconnectionError','_revisionHistoryService','707NqwzTF','startsWith','sessionId','_preventResendingRevisionData','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','400','setRevisionData','isEmptyCurrent','reverse','collaboration.channelId','listenTo','remove','off','cloud-services-internal-error:\x20Not\x20connected.','toVersion','778908QQwgMe','addRevisionData','state','connected','isConnected','setSource','_bufferUpdate','pluginName','_isPendingUpdate','260OkVWaU','reInit','getRevisions','data','max','affectsData','_bufferedUpdates'];_0x2202=function(){return _0x117634;};return _0x2202();}import{EditorService as _0x4a84f9,RevisionHistoryService as _0x4039f6,User as _0x11c6bf,WEB_SOCKET_GATEWAY_STATES as _0x5517c0}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x42d993{static [_0x25fd91(0x1bd)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x4039f6)());[_0x25fd91(0x1db)];[_0x25fd91(0x1b8)];[_0x25fd91(0x1ee)];[_0x25fd91(0x1af)];static get[_0x25fd91(0x211)](){const _0x1e4a88=_0x25fd91;return[_0x254a0f,_0x39c768,_0x1e4a88(0x1a4),_0x1651d7,_0x233a39];}static get[_0x25fd91(0x205)](){const _0x519c04=_0x25fd91;return _0x519c04(0x1e6);}static get[_0x25fd91(0x1c3)](){return!0x0;}static get[_0x25fd91(0x1dd)](){return!0x0;}constructor(_0x416523){const _0x3e5ce7=_0x25fd91;super(_0x416523);const _0x4766f8=this[_0x3e5ce7(0x1e9)][_0x3e5ce7(0x1ad)][_0x3e5ce7(0x1a2)](_0x3e5ce7(0x1f8));this[_0x3e5ce7(0x1db)]=null,this[_0x3e5ce7(0x1b8)]=this[_0x3e5ce7(0x1e9)][_0x3e5ce7(0x1c1)][_0x3e5ce7(0x1a2)](_0x3e5ce7(0x1b6)),this[_0x3e5ce7(0x1ee)]=new CloudServicesRevisionHistoryAdapter[(_0x3e5ce7(0x1bd))](_0x4766f8);}async[_0x25fd91(0x1c7)](){const _0x354578=_0x25fd91,_0x35e90a=this[_0x354578(0x1e9)][_0x354578(0x1c1)][_0x354578(0x1a2)](_0x39c768),_0x399330=_0x35e90a[_0x354578(0x215)],_0x5daa40=this[_0x354578(0x1e9)][_0x354578(0x1c1)][_0x354578(0x1a2)](_0x254a0f);this[_0x354578(0x1b8)][_0x354578(0x203)]({'history':_0x399330,'getLatestVersion':()=>this[_0x354578(0x1be)](),'getCurrentRevisionId':()=>_0x35e90a[_0x354578(0x1f1)]});const _0x5c54ca=this[_0x354578(0x1e9)][_0x354578(0x1ad)][_0x354578(0x1a2)](_0x354578(0x1ea))||_0x579c23,_0x540830=await _0x4a84f9[_0x354578(0x1d4)](_0x5daa40[_0x354578(0x1d9)],_0x5c54ca);this[_0x354578(0x1e9)][_0x354578(0x1c1)][_0x354578(0x1a2)](_0x354578(0x1a4))[_0x354578(0x1c8)]={'getRevision':async({revisionId:_0x480ce4})=>(await this[_0x354578(0x1a5)](),await this[_0x354578(0x1ee)][_0x354578(0x1e1)](_0x480ce4)),'updateRevisions':async _0x10eb6d=>{const _0x40788e=_0x354578;await this[_0x40788e(0x1a5)]();const _0x274e1f=this[_0x40788e(0x1b8)][_0x40788e(0x1df)];if(_0x540830&&0x1===_0x10eb6d[_0x40788e(0x1b1)]&&_0x10eb6d[0x0]['id']===_0x274e1f['id'])return _0x10eb6d;for(const _0x1dc9bb of _0x10eb6d)_0x1dc9bb['id']===_0x274e1f['id']&&(_0x1dc9bb[_0x40788e(0x1f6)]=_0x1dc9bb[_0x40788e(0x212)]===_0x1dc9bb[_0x40788e(0x1fd)]);return this[_0x40788e(0x1ee)][_0x40788e(0x20e)](_0x10eb6d,this[_0x40788e(0x1db)])[_0x40788e(0x1ab)](_0x5965b6=>(this[_0x40788e(0x1db)]=_0x5965b6,_0x10eb6d))[_0x40788e(0x1d3)](_0x21bc24=>{const _0x5ed57a=_0x40788e;if(et(_0x21bc24)||_0x5ed57a(0x1f4)===_0x21bc24[_0x5ed57a(0x1a9)]&&void 0x0!==_0x21bc24[_0x5ed57a(0x20a)][_0x5ed57a(0x1a8)]){for(const _0x476a70 of _0x10eb6d){!this[_0x5ed57a(0x1b8)][_0x5ed57a(0x1ae)][_0x5ed57a(0x1e1)](_0x476a70['id'])||this[_0x5ed57a(0x1b8)][_0x5ed57a(0x204)](_0x476a70['id'],_0x476a70,!0x1);}if(et(_0x21bc24))throw _0x21bc24;return _0x10eb6d;}throw _0x21bc24;});}},this[_0x354578(0x1f9)](this[_0x354578(0x1ee)],_0x354578(0x1a1),(_0x240dd0,{revisionsData:_0x101323,requestId:_0x1d8e47})=>{const _0x15572c=_0x354578;Math[_0x15572c(0x20b)](..._0x101323[_0x15572c(0x1d5)](_0x316dcc=>_0x316dcc[_0x15572c(0x1fd)]))>this[_0x15572c(0x1cb)]()-0x1?this[_0x15572c(0x1be)]()[_0x15572c(0x1ab)](()=>{const _0x54428a=_0x15572c;this[_0x54428a(0x1a0)](_0x101323,_0x1d8e47);}):this[_0x15572c(0x1a0)](_0x101323,_0x1d8e47);});const {revisions:_0x2aa81b,requestId:_0xd065c5}=await this[_0x354578(0x1ee)][_0x354578(0x1b0)](_0x5daa40[_0x354578(0x1d9)]);_0x5daa40[_0x354578(0x1d7)](this),this[_0x354578(0x1db)]=_0xd065c5,await this[_0x354578(0x1e7)](_0x2aa81b);for(const _0x518849 of _0x2aa81b)this[_0x354578(0x1b8)][_0x354578(0x1ff)](_0x518849);this[_0x354578(0x1f9)](_0x35e90a,_0x354578(0x1b9),(_0x38679e,_0x30e2e1,_0x84e706)=>{const _0x376a66=_0x354578;_0x84e706&&(this[_0x376a66(0x1af)]=_0x35e90a[_0x376a66(0x1b2)],_0x38679e[_0x376a66(0x1fb)]());}),this[_0x354578(0x1b8)][_0x354578(0x1a6)](_0x354578(0x1ca))['to'](_0x5daa40,_0x354578(0x200),_0x5c674d=>_0x5c674d===_0x5517c0[_0x354578(0x1d6)]);}async[_0x25fd91(0x1eb)](){const _0x3c34f3=_0x25fd91,_0x283a9b=this[_0x3c34f3(0x1e9)][_0x3c34f3(0x1c1)][_0x3c34f3(0x1a2)](_0x254a0f),_0x1ff374=this[_0x3c34f3(0x1e9)][_0x3c34f3(0x1c1)][_0x3c34f3(0x1a2)](_0x39c768),_0x3f14be=async()=>{const _0x1c14fb=_0x3c34f3,_0x51ed31=this[_0x1c14fb(0x1b8)][_0x1c14fb(0x1df)],_0x5682b0=_0x51ed31['id'],_0x22ee6c=_0x5682b0!==_0x1ff374[_0x1c14fb(0x1f1)];if(_0x22ee6c){const _0x36e5f3=_0x1ff374[_0x1c14fb(0x1b2)]-this[_0x1c14fb(0x1af)],_0xf7e484=this[_0x1c14fb(0x1cb)]();this[_0x1c14fb(0x1b8)][_0x1c14fb(0x1b5)][_0x1c14fb(0x208)]();if(_0x51ed31[_0x1c14fb(0x1fd)]+_0x36e5f3!==_0xf7e484){const _0x352eeb=_0x51ed31[_0x1c14fb(0x212)]+_0x36e5f3,_0x42347f=this[_0x1c14fb(0x1e9)][_0x1c14fb(0x1c1)][_0x1c14fb(0x1a2)](_0x233a39),_0x38a6b2=this[_0x1c14fb(0x1b8)][_0x1c14fb(0x1cf)]({'revision':_0x51ed31,'from':_0x352eeb,'to':_0xf7e484});_0x38a6b2['id']=_0x51ed31['id'];const _0x1c13b8=_0x38a6b2[_0x1c14fb(0x1e3)][_0x1c14fb(0x1d5)](_0x57fe2e=>_0x42347f[_0x1c14fb(0x1c6)](_0x57fe2e));_0x51ed31[_0x1c14fb(0x1ba)]({..._0x38a6b2,'authors':_0x1c13b8},!0x0),this[_0x1c14fb(0x1b8)][_0x1c14fb(0x204)](_0x51ed31['id'],_0x38a6b2,!0x0);}this[_0x1c14fb(0x1b8)][_0x1c14fb(0x1bb)]=_0xf7e484,(_0x51ed31[_0x1c14fb(0x1fd)]===_0x51ed31[_0x1c14fb(0x212)]&&!this[_0x1c14fb(0x1b8)][_0x1c14fb(0x20d)][_0x1c14fb(0x1d2)](_0x5682b0)&&this[_0x1c14fb(0x1b8)][_0x1c14fb(0x1ae)][_0x1c14fb(0x20f)][_0x1c14fb(0x1fa)](_0x5682b0),this[_0x1c14fb(0x1b8)][_0x1c14fb(0x1c5)](_0xf7e484));}const {revisions:_0x5734e2,requestId:_0xc6f6fe}=await this[_0x1c14fb(0x1ee)][_0x1c14fb(0x1eb)](_0x283a9b[_0x1c14fb(0x1d9)],this[_0x1c14fb(0x1db)]);_0x22ee6c&&_0x5734e2[_0x1c14fb(0x1b1)]>0x0?_0x1ff374[_0x1c14fb(0x1ed)]():(await this[_0x1c14fb(0x1e7)](_0x5734e2),this[_0x1c14fb(0x1a0)](_0x5734e2,_0xc6f6fe),this[_0x1c14fb(0x1b8)][_0x1c14fb(0x1b7)]());};return _0x1ff374[_0x3c34f3(0x19f)]?_0x3f14be():new Promise((_0x53aa13,_0x56daf8)=>{const _0x15f484=_0x3c34f3;_0x1ff374[_0x15f484(0x1c0)](_0x15f484(0x1b9),()=>{const _0x8b8624=_0x15f484;_0x3f14be()[_0x8b8624(0x1ab)](_0x53aa13)[_0x8b8624(0x1d3)](_0x56daf8);});});}[_0x25fd91(0x1d8)](){const _0x317464=_0x25fd91;super[_0x317464(0x1d8)]();}async[_0x25fd91(0x1a5)](){const _0x12f12b=_0x25fd91;this[_0x12f12b(0x1ee)][_0x12f12b(0x202)]||await new Promise(_0x2b90c0=>{const _0x217b32=_0x12f12b;this[_0x217b32(0x1f9)](this[_0x217b32(0x1ee)],_0x217b32(0x201),_0x20b6a9=>{const _0x25b20c=_0x217b32;_0x20b6a9[_0x25b20c(0x1fb)](),_0x2b90c0();});});}[_0x25fd91(0x1cb)](){const _0x4544a4=_0x25fd91,_0x4a69f1=this[_0x4544a4(0x1e9)][_0x4544a4(0x1c1)][_0x4544a4(0x1a2)](_0x39c768)[_0x4544a4(0x215)][_0x4544a4(0x214)]()[_0x4544a4(0x1f7)]();for(const _0x585ffe of _0x4a69f1)if(_0x4544a4(0x1aa)!==_0x585ffe[_0x4544a4(0x1e2)]||_0x585ffe[_0x4544a4(0x20c)])return _0x585ffe[_0x4544a4(0x1e4)]+0x1;}[_0x25fd91(0x1be)](){const _0x3f8960=_0x25fd91,_0x56d07c=this[_0x3f8960(0x1e9)][_0x3f8960(0x1c1)][_0x3f8960(0x1a2)](_0x39c768);return new Promise(_0xcfb93b=>{const _0x405acc=_0x3f8960;_0x56d07c[_0x405acc(0x206)]?_0x56d07c[_0x405acc(0x1c0)](_0x405acc(0x1e5),()=>{const _0x4d476c=_0x405acc;_0xcfb93b(this[_0x4d476c(0x1cb)]());}):_0xcfb93b(this[_0x405acc(0x1cb)]());});}[_0x25fd91(0x1a0)](_0x3e8758,_0x550a02){const _0x7a776f=_0x25fd91,_0xf74b9e=this[_0x7a776f(0x1b8)][_0x7a776f(0x1ae)];this[_0x7a776f(0x1db)]=_0x550a02;for(const _0x49aad8 of _0x3e8758){const _0x1cdd10=_0xf74b9e[_0x7a776f(0x1e1)](_0x49aad8['id']);if(_0x1cdd10){if((_0x49aad8[_0x7a776f(0x212)]||_0x49aad8[_0x7a776f(0x1fd)])&&(_0x49aad8[_0x7a776f(0x1da)]=null),_0x1cdd10===this[_0x7a776f(0x1b8)][_0x7a776f(0x1df)]){const _0xa57172=Math[_0x7a776f(0x20b)](_0x1cdd10[_0x7a776f(0x1fd)],_0x49aad8[_0x7a776f(0x1fd)]),_0x332a5b=Math[_0x7a776f(0x20b)](_0x1cdd10[_0x7a776f(0x212)],_0x49aad8[_0x7a776f(0x212)]);let _0x48db16;_0x1cdd10[_0x7a776f(0x1fd)]===_0x49aad8[_0x7a776f(0x1fd)]&&_0x1cdd10[_0x7a776f(0x212)]===_0x49aad8[_0x7a776f(0x212)]?(_0x48db16=!0x0,this[_0x7a776f(0x1f2)](_0x49aad8)):_0x49aad8[_0x7a776f(0x1fd)]===_0xa57172&&_0x49aad8[_0x7a776f(0x212)]===_0x332a5b?_0x48db16=!0x1:(_0x1cdd10[_0x7a776f(0x1fd)]===_0xa57172&&_0x1cdd10[_0x7a776f(0x212)]===_0x332a5b||this[_0x7a776f(0x1de)]({'revision':_0x1cdd10,'from':_0x332a5b,'to':_0xa57172}),_0x48db16=!0x0),_0x48db16&&(delete _0x49aad8[_0x7a776f(0x212)],delete _0x49aad8[_0x7a776f(0x1fd)],delete _0x49aad8[_0x7a776f(0x1da)],delete _0x49aad8[_0x7a776f(0x1ec)],delete _0x49aad8[_0x7a776f(0x1e3)]);}this[_0x7a776f(0x1b8)][_0x7a776f(0x1f5)](_0x49aad8),this[_0x7a776f(0x1f2)](_0x49aad8);}else this[_0x7a776f(0x1b8)][_0x7a776f(0x1ff)](_0x49aad8);}const _0x40b9ca=_0xf74b9e[_0x7a776f(0x209)]();_0x40b9ca[_0x7a776f(0x1f7)]();for(let _0x5085cd=0x0;_0x5085cd<_0x40b9ca[_0x7a776f(0x1b1)]-0x1;_0x5085cd++){const _0x276a50=_0x40b9ca[_0x5085cd],_0x4a6d8e=_0x40b9ca[_0x5085cd+0x1];if(_0x276a50[_0x7a776f(0x212)]<_0x4a6d8e[_0x7a776f(0x1fd)]){const _0x9f63c9=_0x4a6d8e[_0x7a776f(0x1fd)],_0x39ea2a=Math[_0x7a776f(0x20b)](_0x9f63c9,_0x276a50[_0x7a776f(0x1fd)]);this[_0x7a776f(0x1de)]({'revision':_0x276a50,'from':_0x9f63c9,'to':_0x39ea2a});}}}[_0x25fd91(0x1de)]({revision:_0x2f8287,from:_0x375c03,to:_0x528c08}={}){const _0x29b426=_0x25fd91,_0x18a822=this[_0x29b426(0x1e9)][_0x29b426(0x1c1)][_0x29b426(0x1a2)](_0x233a39),_0x46b4c8=this[_0x29b426(0x1b8)][_0x29b426(0x1cf)]({'revision':_0x2f8287,'from':_0x375c03,'to':_0x528c08});_0x46b4c8[_0x29b426(0x1d1)]=_0x46b4c8[_0x29b426(0x1e3)][_0x29b426(0x1d5)](_0x428e0a=>_0x18a822[_0x29b426(0x1c6)](_0x428e0a)),_0x2f8287[_0x29b426(0x1ba)](_0x46b4c8);}[_0x25fd91(0x1f2)](_0x4bf326){const _0x3f45f=_0x25fd91,_0x1b5670={};_0x1b5670['id']=_0x4bf326['id'];for(const _0x1b8ae4 of Object[_0x3f45f(0x213)](_0x4bf326))'id'!==_0x1b8ae4&&(_0x1b5670[_0x1b8ae4]=void 0x0);this[_0x3f45f(0x1b8)][_0x3f45f(0x204)](_0x1b5670['id'],_0x1b5670,!0x0);}async[_0x25fd91(0x1e7)](_0x4eed41){const _0x1b4fb1=_0x25fd91,_0x47d82f=this[_0x1b4fb1(0x1e9)][_0x1b4fb1(0x1c1)][_0x1b4fb1(0x1a2)](_0x233a39),{connection:_0x422caa}=this[_0x1b4fb1(0x1e9)][_0x1b4fb1(0x1c1)][_0x1b4fb1(0x1a2)](_0x254a0f),_0x44b560=new Set();for(const _0x1b819d of _0x4eed41){for(const _0x489156 of _0x1b819d[_0x1b4fb1(0x1e3)])_0x420653(_0x489156);_0x1b819d[_0x1b4fb1(0x1c9)]&&_0x420653(_0x1b819d[_0x1b4fb1(0x1c9)]);}if(0x0===_0x44b560[_0x1b4fb1(0x1d0)])return;const _0x3bb27f=await _0x11c6bf[_0x1b4fb1(0x1bf)](_0x422caa,Array[_0x1b4fb1(0x1b4)](_0x44b560));for(const _0x419929 of _0x3bb27f)_0x47d82f[_0x1b4fb1(0x1c6)](_0x419929['id'])||_0x47d82f[_0x1b4fb1(0x1a3)](_0x419929);function _0x420653(_0x3a51bf){const _0x4631e7=_0x1b4fb1;_0x47d82f[_0x4631e7(0x1c6)](_0x3a51bf)||_0x44b560[_0x4631e7(0x1cc)](_0x3a51bf);}}}function et(_0x2480c1){const _0x41ec5c=_0x25fd91;return _0x2480c1[_0x41ec5c(0x1b3)][_0x41ec5c(0x1f0)](_0x41ec5c(0x1f3))||_0x2480c1[_0x41ec5c(0x1b3)][_0x41ec5c(0x1f0)](_0x41ec5c(0x1fc))||_0x2480c1[_0x41ec5c(0x1b3)][_0x41ec5c(0x1f0)](_0x41ec5c(0x1c2));}
23
+ const _0xa353a0=_0x2a1c;function _0x2a1c(_0x45b943,_0x4a73b4){const _0x1bb6a4=_0x1bb6();return _0x2a1c=function(_0x2a1c64,_0x24e488){_0x2a1c64=_0x2a1c64-0x1e4;let _0x1d1fb9=_0x1bb6a4[_0x2a1c64];return _0x1d1fb9;},_0x2a1c(_0x45b943,_0x4a73b4);}(function(_0x15a0de,_0x51be96){const _0x2d8c25=_0x2a1c,_0x3754bc=_0x15a0de();while(!![]){try{const _0x3de78f=parseInt(_0x2d8c25(0x24e))/0x1+parseInt(_0x2d8c25(0x23d))/0x2*(parseInt(_0x2d8c25(0x21f))/0x3)+parseInt(_0x2d8c25(0x234))/0x4*(-parseInt(_0x2d8c25(0x223))/0x5)+-parseInt(_0x2d8c25(0x22f))/0x6+parseInt(_0x2d8c25(0x255))/0x7*(-parseInt(_0x2d8c25(0x212))/0x8)+parseInt(_0x2d8c25(0x1f8))/0x9*(-parseInt(_0x2d8c25(0x1ed))/0xa)+parseInt(_0x2d8c25(0x247))/0xb*(parseInt(_0x2d8c25(0x213))/0xc);if(_0x3de78f===_0x51be96)break;else _0x3754bc['push'](_0x3754bc['shift']());}catch(_0x386f9d){_0x3754bc['push'](_0x3754bc['shift']());}}}(_0x1bb6,0x807b9));import{Plugin as _0x4a458f}from'ckeditor5/src/core.js';import{version as _0x25758e}from'ckeditor5/src/utils.js';import{Users as _0x6463e9}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x2ecfbf}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x41e8ef}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x387a66}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x105ea0,RevisionHistoryService as _0x1b016c,User as _0xd1d97,WEB_SOCKET_GATEWAY_STATES as _0x2f5d6b}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x4a458f{static [_0xa353a0(0x251)]=/* #__PURE__ -- @preserve */
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));}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c3dc4=_0x2030;(function(_0x20fd40,_0x57d09c){const _0x2f3b17=_0x2030,_0x44b976=_0x20fd40();while(!![]){try{const _0x3e04d4=parseInt(_0x2f3b17(0xbb))/0x1*(parseInt(_0x2f3b17(0xb8))/0x2)+parseInt(_0x2f3b17(0xb5))/0x3*(-parseInt(_0x2f3b17(0xd4))/0x4)+parseInt(_0x2f3b17(0xd6))/0x5*(-parseInt(_0x2f3b17(0xe0))/0x6)+parseInt(_0x2f3b17(0xce))/0x7*(parseInt(_0x2f3b17(0xbc))/0x8)+parseInt(_0x2f3b17(0xc5))/0x9*(parseInt(_0x2f3b17(0xee))/0xa)+-parseInt(_0x2f3b17(0xe4))/0xb*(-parseInt(_0x2f3b17(0xdb))/0xc)+parseInt(_0x2f3b17(0xe2))/0xd;if(_0x3e04d4===_0x57d09c)break;else _0x44b976['push'](_0x44b976['shift']());}catch(_0x2db8a7){_0x44b976['push'](_0x44b976['shift']());}}}(_0x355c,0x508a6));import{Plugin as _0x3eb527}from'ckeditor5/src/core.js';import{User as _0xd0f1b,TrackChangesService as _0x9de638}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x1ef2f5}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x3f3f1e}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';function _0x355c(){const _0x1936fe=['getSuggestion','5vLFIIx','isConnected','attributes','add','values','95028HkRsvy','size','catch','state','TrackChangesEditing','3357594SrrrBa','find','2857608HWmkrZ','editor','11josRza','open','connect','isPremiumPlugin','delete','pluginName','suggestionUpdated','TrackChangesService','isOfficialPlugin','_waitForServiceReady','424280uyAKBE','init','get','originalSuggestionId','addUser','connection','message','data','collaboration.channelId','cloud-services-internal-error:\x20Not\x20connected.','1570047swxGoC','addToReconnectionStack','update','658726WKSOAG','from','_saved','2QsfWkj','472RafOSo','plugins','reconnect','then','getUser','startsWith','getMany','CloudServicesTrackChangesAdapter','connected','54VoErpp','off','requires','adapter','set','cloud-services-internal-error:\x20Request\x20timeout.','type','addSuggestionData','listenTo','32249JCbcWW','_trackChangesService','config','hasSuggestion','_bufferedRequests','_fetchMissingUsersForThreads','4zgYPrr'];_0x355c=function(){return _0x1936fe;};return _0x355c();}import{Users as _0x541988}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x3eb527{static [_0x4c3dc4(0xeb)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x9de638)());[_0x4c3dc4(0xd2)];[_0x4c3dc4(0xcf)];static get[_0x4c3dc4(0xc7)](){const _0x360d8e=_0x4c3dc4;return[_0x3f3f1e,_0x360d8e(0xdf),_0x1ef2f5];}static get[_0x4c3dc4(0xe9)](){const _0x488f90=_0x4c3dc4;return _0x488f90(0xc3);}static get[_0x4c3dc4(0xec)](){return!0x0;}static get[_0x4c3dc4(0xe7)](){return!0x0;}constructor(_0x2de4e8){const _0x4d6367=_0x4c3dc4;super(_0x2de4e8);const _0x353374=this[_0x4d6367(0xe3)][_0x4d6367(0xd0)][_0x4d6367(0xf0)](_0x4d6367(0xb3));this[_0x4d6367(0xd2)]=new Map(),this[_0x4d6367(0xcf)]=new CloudServicesTrackChangesAdapter[(_0x4d6367(0xeb))](_0x353374);}[_0x4c3dc4(0xef)](){const _0x156108=_0x4c3dc4,_0x35432c=this[_0x156108(0xe3)][_0x156108(0xbd)][_0x156108(0xf0)](_0x1ef2f5),_0x25f8e6=this[_0x156108(0xe3)][_0x156108(0xbd)][_0x156108(0xf0)](_0x156108(0xdf));return _0x25f8e6[_0x156108(0xc8)]={'getSuggestion':async _0x348c31=>{const _0x4f11fc=_0x156108;await this[_0x4f11fc(0xed)]();const _0x22a02e=await this[_0x4f11fc(0xcf)][_0x4f11fc(0xf0)](_0x348c31)[_0x4f11fc(0xdd)](k);return await this[_0x4f11fc(0xd3)]([_0x22a02e]),_0x22a02e;},'addSuggestion':async({id:_0x2042e2,type:_0x9c7370,data:_0x196582,originalSuggestionId:_0x3172e5,attributes:_0x55e9c9})=>{const _0x3bbbb5=_0x156108;await this[_0x3bbbb5(0xed)]();const _0x4c1aa1={'id':_0x2042e2,'type':_0x9c7370,'data':_0x196582,'originalSuggestionId':_0x3172e5,'attributes':_0x55e9c9},_0x31fb12=await this[_0x3bbbb5(0xcf)][_0x3bbbb5(0xd9)](_0x2042e2,_0x9c7370,_0x196582,_0x3172e5,_0x55e9c9)[_0x3bbbb5(0xdd)](_0x2109c6=>{if(et(_0x2109c6))return new Promise(_0x4f685d=>{const _0x3eb198=_0x2030;this[_0x3eb198(0xd2)][_0x3eb198(0xc9)](_0x2042e2,{'resolve':_0x4f685d,'suggestionData':_0x4c1aa1});});throw _0x2109c6;});return this[_0x3bbbb5(0xd2)][_0x3bbbb5(0xe8)](_0x2042e2),_0x31fb12;},'updateSuggestion':async(_0x2a1eb1,_0x101c0d)=>{const _0x3c86aa=_0x156108;if(await this[_0x3c86aa(0xed)](),_0x3c86aa(0xe5)!==_0x101c0d[_0x3c86aa(0xde)])return this[_0x3c86aa(0xcf)][_0x3c86aa(0xb7)](_0x2a1eb1,_0x101c0d)[_0x3c86aa(0xdd)](k);}},this[_0x156108(0xcd)](this[_0x156108(0xcf)],_0x156108(0xea),(_0x445b5f,_0x523680)=>{const _0x58da08=_0x156108;_0x25f8e6[_0x58da08(0xd1)](_0x523680['id'])&&(_0x25f8e6[_0x58da08(0xd5)](_0x523680['id'])[_0x58da08(0xd8)]=_0x523680[_0x58da08(0xd8)]);}),this[_0x156108(0xcf)][_0x156108(0xe6)](_0x35432c[_0x156108(0xf3)])[_0x156108(0xbf)](_0x145765=>(_0x35432c[_0x156108(0xb6)](this),this[_0x156108(0xd3)](_0x145765)[_0x156108(0xbf)](()=>{const _0x3ba339=_0x156108;for(const _0x2695c1 of _0x145765){_0x25f8e6[_0x3ba339(0xcc)](_0x2695c1)[_0x3ba339(0xba)]=!0x0;}})));}async[_0x4c3dc4(0xbe)](){const _0x28e5ef=_0x4c3dc4,_0x2dcb27=this[_0x28e5ef(0xe3)][_0x28e5ef(0xbd)][_0x28e5ef(0xf0)](_0x28e5ef(0xdf)),{connection:_0x184c54}=this[_0x28e5ef(0xe3)][_0x28e5ef(0xbd)][_0x28e5ef(0xf0)](_0x1ef2f5),_0x923d35=await this[_0x28e5ef(0xcf)][_0x28e5ef(0xe6)](_0x184c54);await this[_0x28e5ef(0xd3)](_0x923d35);for(const {suggestionData:_0x24d742,resolve:_0x5a7202}of this[_0x28e5ef(0xd2)][_0x28e5ef(0xda)]()){let _0xa11468=_0x923d35[_0x28e5ef(0xe1)](_0x25f5e0=>_0x25f5e0['id']===_0x24d742['id']);_0xa11468||(_0xa11468=await this[_0x28e5ef(0xcf)][_0x28e5ef(0xd9)](_0x24d742['id'],_0x24d742[_0x28e5ef(0xcb)],_0x24d742[_0x28e5ef(0xf5)],_0x24d742[_0x28e5ef(0xf1)])),_0x5a7202(_0xa11468);}for(const _0x4244a8 of _0x923d35)_0x2dcb27[_0x28e5ef(0xd1)](_0x4244a8['id'])||_0x2dcb27[_0x28e5ef(0xcc)](_0x4244a8);}async[_0x4c3dc4(0xed)](){const _0x524e3a=_0x4c3dc4;this[_0x524e3a(0xcf)][_0x524e3a(0xd7)]||await new Promise(_0xb7cd4e=>{const _0x4f3d67=_0x524e3a;this[_0x4f3d67(0xcd)](this[_0x4f3d67(0xcf)],_0x4f3d67(0xc4),_0x27f53a=>{const _0x8edb41=_0x4f3d67;_0x27f53a[_0x8edb41(0xc6)](),_0xb7cd4e();});});}async[_0x4c3dc4(0xd3)](_0x305feb){const _0x4e35b1=_0x4c3dc4,_0x1fc192=this[_0x4e35b1(0xe3)][_0x4e35b1(0xbd)][_0x4e35b1(0xf0)](_0x541988),{connection:_0x467158}=this[_0x4e35b1(0xe3)][_0x4e35b1(0xbd)][_0x4e35b1(0xf0)](_0x1ef2f5),_0x4fcce2=new Set();for(const {authorId:_0x544216}of _0x305feb)_0x1fc192[_0x4e35b1(0xc0)](_0x544216)||_0x4fcce2[_0x4e35b1(0xd9)](_0x544216);if(0x0===_0x4fcce2[_0x4e35b1(0xdc)])return;const _0x120e2c=await _0xd0f1b[_0x4e35b1(0xc2)](_0x467158,Array[_0x4e35b1(0xb9)](_0x4fcce2));for(const _0x513879 of _0x120e2c)_0x1fc192[_0x4e35b1(0xc0)](_0x513879['id'])||_0x1fc192[_0x4e35b1(0xf2)](_0x513879);}}function k(_0xb37226){if(et(_0xb37226))return new Promise(()=>{});throw _0xb37226;}function _0x2030(_0x53b2ed,_0x1e2d99){const _0x355c47=_0x355c();return _0x2030=function(_0x203058,_0x5e3f12){_0x203058=_0x203058-0xb3;let _0xfa7c4b=_0x355c47[_0x203058];return _0xfa7c4b;},_0x2030(_0x53b2ed,_0x1e2d99);}function et(_0x1fcf01){const _0x33903e=_0x4c3dc4;return _0x1fcf01[_0x33903e(0xf4)][_0x33903e(0xc1)](_0x33903e(0xb4))||_0x1fcf01[_0x33903e(0xf4)][_0x33903e(0xc1)](_0x33903e(0xca));}
23
+ const _0x587d07=_0x26eb;(function(_0x3179b0,_0x269959){const _0x4dc8b9=_0x26eb,_0x387f9c=_0x3179b0();while(!![]){try{const _0x2bfcb4=parseInt(_0x4dc8b9(0xb4))/0x1+parseInt(_0x4dc8b9(0xe8))/0x2*(-parseInt(_0x4dc8b9(0xc8))/0x3)+-parseInt(_0x4dc8b9(0xb8))/0x4+-parseInt(_0x4dc8b9(0xd2))/0x5+-parseInt(_0x4dc8b9(0xea))/0x6+parseInt(_0x4dc8b9(0xe1))/0x7*(parseInt(_0x4dc8b9(0xc1))/0x8)+parseInt(_0x4dc8b9(0xde))/0x9;if(_0x2bfcb4===_0x269959)break;else _0x387f9c['push'](_0x387f9c['shift']());}catch(_0x2a188d){_0x387f9c['push'](_0x387f9c['shift']());}}}(_0x5c69,0xe4c69));import{Plugin as _0x27826d}from'ckeditor5/src/core.js';import{User as _0x53c945,TrackChangesService as _0x2999cb}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x184f2e}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x540019}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0xc0a90e}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x5c69(){const _0x13d925=['hasSuggestion','add','connected','delete','reconnect','_saved','_bufferedRequests','7778550YJGCoz','_fetchMissingUsersForThreads','data','isOfficialPlugin','_waitForServiceReady','editor','getMany','init','TrackChangesEditing','collaboration.channelId','addUser','config','50505444wfhRWx','values','startsWith','3800965oVxWDL','catch','update','suggestionUpdated','addToReconnectionStack','state','pluginName','16hhnfmU','cloud-services-internal-error:\x20Request\x20timeout.','9358020ImmjSy','requires','attributes','set','message','isPremiumPlugin','getSuggestion','type','then','1223511HufrnT','_trackChangesService','isConnected','addSuggestionData','6596452OwHRkL','plugins','cloud-services-internal-error:\x20Not\x20connected.','find','listenTo','get','open','getUser','originalSuggestionId','8WBEVsP','TrackChangesService','connect','CloudServicesTrackChangesAdapter','from','connection','size','628749BEwDmE','off','adapter'];_0x5c69=function(){return _0x13d925;};return _0x5c69();}export class CloudServicesTrackChangesAdapter extends _0x27826d{static [_0x587d07(0xc2)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x2999cb)());[_0x587d07(0xd1)];[_0x587d07(0xb5)];static get[_0x587d07(0xeb)](){const _0x1b4d28=_0x587d07;return[_0x540019,_0x1b4d28(0xda),_0x184f2e];}static get[_0x587d07(0xe7)](){const _0x20ac68=_0x587d07;return _0x20ac68(0xc4);}static get[_0x587d07(0xd5)](){return!0x0;}static get[_0x587d07(0xb0)](){return!0x0;}constructor(_0x4fa5d7){const _0x56287c=_0x587d07;super(_0x4fa5d7);const _0x50591f=this[_0x56287c(0xd7)][_0x56287c(0xdd)][_0x56287c(0xbd)](_0x56287c(0xdb));this[_0x56287c(0xd1)]=new Map(),this[_0x56287c(0xb5)]=new CloudServicesTrackChangesAdapter[(_0x56287c(0xc2))](_0x50591f);}[_0x587d07(0xd9)](){const _0x38bfe4=_0x587d07,_0x382569=this[_0x38bfe4(0xd7)][_0x38bfe4(0xb9)][_0x38bfe4(0xbd)](_0x184f2e),_0x38483e=this[_0x38bfe4(0xd7)][_0x38bfe4(0xb9)][_0x38bfe4(0xbd)](_0x38bfe4(0xda));return _0x38483e[_0x38bfe4(0xca)]={'getSuggestion':async _0x1cf7c2=>{const _0x498e79=_0x38bfe4;await this[_0x498e79(0xd6)]();const _0x26dfbb=await this[_0x498e79(0xb5)][_0x498e79(0xbd)](_0x1cf7c2)[_0x498e79(0xe2)](k);return await this[_0x498e79(0xd3)]([_0x26dfbb]),_0x26dfbb;},'addSuggestion':async({id:_0x20d9c9,type:_0x3ebb7d,data:_0x3446f,originalSuggestionId:_0xb0fccf,attributes:_0x2ee59a})=>{const _0x47f13e=_0x38bfe4;await this[_0x47f13e(0xd6)]();const _0x5d38ce={'id':_0x20d9c9,'type':_0x3ebb7d,'data':_0x3446f,'originalSuggestionId':_0xb0fccf,'attributes':_0x2ee59a},_0x56a934=await this[_0x47f13e(0xb5)][_0x47f13e(0xcc)](_0x20d9c9,_0x3ebb7d,_0x3446f,_0xb0fccf,_0x2ee59a)[_0x47f13e(0xe2)](_0x2b7361=>{if(st(_0x2b7361))return new Promise(_0x158b89=>{const _0x500e6f=_0x26eb;this[_0x500e6f(0xd1)][_0x500e6f(0xae)](_0x20d9c9,{'resolve':_0x158b89,'suggestionData':_0x5d38ce});});throw _0x2b7361;});return this[_0x47f13e(0xd1)][_0x47f13e(0xce)](_0x20d9c9),_0x56a934;},'updateSuggestion':async(_0x303d16,_0x3d14b1)=>{const _0x53ef74=_0x38bfe4;if(await this[_0x53ef74(0xd6)](),_0x53ef74(0xbe)!==_0x3d14b1[_0x53ef74(0xe6)])return this[_0x53ef74(0xb5)][_0x53ef74(0xe3)](_0x303d16,_0x3d14b1)[_0x53ef74(0xe2)](k);}},this[_0x38bfe4(0xbc)](this[_0x38bfe4(0xb5)],_0x38bfe4(0xe4),(_0x5786e2,_0x35abcd)=>{const _0x9b51fb=_0x38bfe4;_0x38483e[_0x9b51fb(0xcb)](_0x35abcd['id'])&&(_0x38483e[_0x9b51fb(0xb1)](_0x35abcd['id'])[_0x9b51fb(0xec)]=_0x35abcd[_0x9b51fb(0xec)]);}),this[_0x38bfe4(0xb5)][_0x38bfe4(0xc3)](_0x382569[_0x38bfe4(0xc6)])[_0x38bfe4(0xb3)](_0x372f15=>(_0x382569[_0x38bfe4(0xe5)](this),this[_0x38bfe4(0xd3)](_0x372f15)[_0x38bfe4(0xb3)](()=>{const _0x475ebb=_0x38bfe4;for(const _0x3a485b of _0x372f15){_0x38483e[_0x475ebb(0xb7)](_0x3a485b)[_0x475ebb(0xd0)]=!0x0;}})));}async[_0x587d07(0xcf)](){const _0x168bb8=_0x587d07,_0xebc6f6=this[_0x168bb8(0xd7)][_0x168bb8(0xb9)][_0x168bb8(0xbd)](_0x168bb8(0xda)),{connection:_0x21a6a9}=this[_0x168bb8(0xd7)][_0x168bb8(0xb9)][_0x168bb8(0xbd)](_0x184f2e),_0x34064b=await this[_0x168bb8(0xb5)][_0x168bb8(0xc3)](_0x21a6a9);await this[_0x168bb8(0xd3)](_0x34064b);for(const {suggestionData:_0x5a9ca5,resolve:_0x212b00}of this[_0x168bb8(0xd1)][_0x168bb8(0xdf)]()){let _0x79bc19=_0x34064b[_0x168bb8(0xbb)](_0x2f614c=>_0x2f614c['id']===_0x5a9ca5['id']);_0x79bc19||(_0x79bc19=await this[_0x168bb8(0xb5)][_0x168bb8(0xcc)](_0x5a9ca5['id'],_0x5a9ca5[_0x168bb8(0xb2)],_0x5a9ca5[_0x168bb8(0xd4)],_0x5a9ca5[_0x168bb8(0xc0)])),_0x212b00(_0x79bc19);}for(const _0x4c33d3 of _0x34064b)_0xebc6f6[_0x168bb8(0xcb)](_0x4c33d3['id'])||_0xebc6f6[_0x168bb8(0xb7)](_0x4c33d3);}async[_0x587d07(0xd6)](){const _0x51e021=_0x587d07;this[_0x51e021(0xb5)][_0x51e021(0xb6)]||await new Promise(_0xab06fb=>{const _0x2eadae=_0x51e021;this[_0x2eadae(0xbc)](this[_0x2eadae(0xb5)],_0x2eadae(0xcd),_0x5e0e25=>{const _0x3deeab=_0x2eadae;_0x5e0e25[_0x3deeab(0xc9)](),_0xab06fb();});});}async[_0x587d07(0xd3)](_0x1a7261){const _0x25fcce=_0x587d07,_0x124cd2=this[_0x25fcce(0xd7)][_0x25fcce(0xb9)][_0x25fcce(0xbd)](_0xc0a90e),{connection:_0x46cda8}=this[_0x25fcce(0xd7)][_0x25fcce(0xb9)][_0x25fcce(0xbd)](_0x184f2e),_0x2ef8f7=new Set();for(const {authorId:_0x15f8e1}of _0x1a7261)_0x124cd2[_0x25fcce(0xbf)](_0x15f8e1)||_0x2ef8f7[_0x25fcce(0xcc)](_0x15f8e1);if(0x0===_0x2ef8f7[_0x25fcce(0xc7)])return;const _0x5f793b=await _0x53c945[_0x25fcce(0xd8)](_0x46cda8,Array[_0x25fcce(0xc5)](_0x2ef8f7));for(const _0x59cf4b of _0x5f793b)_0x124cd2[_0x25fcce(0xbf)](_0x59cf4b['id'])||_0x124cd2[_0x25fcce(0xdc)](_0x59cf4b);}}function k(_0xa6560d){if(st(_0xa6560d))return new Promise(()=>{});throw _0xa6560d;}function _0x26eb(_0x1aa836,_0xe48718){const _0x5c691c=_0x5c69();return _0x26eb=function(_0x26eb92,_0x5b89ba){_0x26eb92=_0x26eb92-0xae;let _0xe0c567=_0x5c691c[_0x26eb92];return _0xe0c567;},_0x26eb(_0x1aa836,_0xe48718);}function st(_0x1896b3){const _0x254635=_0x587d07;return _0x1896b3[_0x254635(0xaf)][_0x254635(0xe0)](_0x254635(0xba))||_0x1896b3[_0x254635(0xaf)][_0x254635(0xe0)](_0x254635(0xe9));}