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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x360d87=_0x22a7;(function(_0x5f58ee,_0x340578){const _0x54f085=_0x22a7,_0x323bcd=_0x5f58ee();while(!![]){try{const _0x22e0be=-parseInt(_0x54f085(0x16d))/0x1+-parseInt(_0x54f085(0x169))/0x2*(-parseInt(_0x54f085(0x1aa))/0x3)+-parseInt(_0x54f085(0x182))/0x4*(-parseInt(_0x54f085(0x18b))/0x5)+parseInt(_0x54f085(0x18d))/0x6*(parseInt(_0x54f085(0x19a))/0x7)+parseInt(_0x54f085(0x1a9))/0x8+-parseInt(_0x54f085(0x1a3))/0x9+parseInt(_0x54f085(0x18c))/0xa*(-parseInt(_0x54f085(0x173))/0xb);if(_0x22e0be===_0x340578)break;else _0x323bcd['push'](_0x323bcd['shift']());}catch(_0x183a88){_0x323bcd['push'](_0x323bcd['shift']());}}}(_0x55b9,0x8518d));import{ContextPlugin as _0x281355}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x210b1d,CKEditorError as _0x1401dc}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x38b0b6,WEB_SOCKET_GATEWAY_STATES as _0x4d7d1a}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0x22a7(_0x2a6518,_0x55bda5){const _0x55b9a7=_0x55b9();return _0x22a7=function(_0x22a792,_0x4bf747){_0x22a792=_0x22a792-0x165;let _0x25d15a=_0x55b9a7[_0x22a792];return _0x25d15a;},_0x22a7(_0x2a6518,_0x55bda5);}function _0x55b9(){const _0x5c01b2=['connected','DISCONNECTED','all','833IBZNUS','plugins','add','_shouldPluginsReconnect','webSocketUrl','websocketgateway-plugin-already-registered','function','context','_domEmitter','5753322WBvrEp','set','init','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.','stopListening','offline','8251256oGVxVR','93GJDJKr','reconnect','destroy','CONNECTED','delete','_reconnectionStack','showWarning','code','error','WebSocketGateway','22970WNQfof','state','cloudServices.connectionTimeout','CloudServices','931886XtcRur','initialReconnectionInterval','Connected\x20users\x20limit\x20exceeded','pluginName','online','websocketgateway-invalid-plugin-interface','939774DIydJH','removeFromReconnectionStack','requires','cloudservices-reconnection-error','config','limitExceeded','isInReconnectionStack','connect','websocketgateway-missing-token','bind','addToReconnectionStack','then','isOfficialPlugin','get','change:me','391684jUeams','websocketgateway-missing-websocket-url','listenTo','from','constructor','connection','has','isPremiumPlugin','disconnect','5OWHnfL','10pyesDI','36120gsqhBY','_isBrowserOffline','_reconnect','cloudServices.requestTimeout','cloudservices-init','catch','real-time-collaboration','define','token','CONNECTING'];_0x55b9=function(){return _0x5c01b2;};return _0x55b9();}import{Notification as _0x552a43}from'ckeditor5/src/ui.js';export class WebSocketGateway extends _0x281355{static [_0x360d87(0x168)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x38b0b6)());static [_0x360d87(0x16e)]=0x3e8;[_0x360d87(0x187)];[_0x360d87(0x1af)];[_0x360d87(0x19d)];[_0x360d87(0x1a2)];static get[_0x360d87(0x175)](){const _0x268101=_0x360d87;return[_0x268101(0x16c),_0x552a43];}static get[_0x360d87(0x170)](){const _0x5dc906=_0x360d87;return _0x5dc906(0x168);}static get[_0x360d87(0x17f)](){return!0x0;}static get[_0x360d87(0x189)](){return!0x0;}constructor(_0x3b9220){const _0x1813a3=_0x360d87;super(_0x3b9220),this[_0x1813a3(0x1a4)](_0x1813a3(0x16a),_0x4d7d1a[_0x1813a3(0x1ad)]),this[_0x1813a3(0x1a4)](_0x1813a3(0x18e),!0x1),this[_0x1813a3(0x1af)]=new Set(),this[_0x1813a3(0x19d)]=!0x1,this[_0x1813a3(0x1a2)]=new(_0x210b1d())();}[_0x360d87(0x1a5)](){const _0x45596f=_0x360d87,_0x5c65cc=this[_0x45596f(0x1a1)],_0x43d94e=_0x5c65cc[_0x45596f(0x19b)][_0x45596f(0x180)](_0x45596f(0x16c)),_0x467c2c=_0x5c65cc[_0x45596f(0x19b)][_0x45596f(0x180)](_0x552a43);if(!_0x43d94e[_0x45596f(0x195)])throw new _0x1401dc(_0x45596f(0x17b),this);if(!_0x43d94e[_0x45596f(0x19e)])throw new _0x1401dc(_0x45596f(0x183),this);return this[_0x45596f(0x1a2)][_0x45596f(0x184)](window,_0x45596f(0x1a8),()=>this[_0x45596f(0x18e)]=!0x0),this[_0x45596f(0x1a2)][_0x45596f(0x184)](window,_0x45596f(0x171),()=>this[_0x45596f(0x18e)]=!0x1),this[_0x45596f(0x1a1)][_0x45596f(0x177)][_0x45596f(0x194)](_0x45596f(0x16b),0xa),this[_0x45596f(0x1a1)][_0x45596f(0x177)][_0x45596f(0x194)](_0x45596f(0x190),0x14),WebSocketGateway[_0x45596f(0x168)][_0x45596f(0x17a)](_0x43d94e[_0x45596f(0x195)],_0x43d94e[_0x45596f(0x19e)],{'timeout':0x3e8*this[_0x45596f(0x1a1)][_0x45596f(0x177)][_0x45596f(0x180)](_0x45596f(0x16b)),'requestTimeout':0x3e8*this[_0x45596f(0x1a1)][_0x45596f(0x177)][_0x45596f(0x180)](_0x45596f(0x190))})[_0x45596f(0x17e)](_0xd48e2b=>{const _0x197d3e=_0x45596f;if(this[_0x197d3e(0x187)]=_0xd48e2b,this[_0x197d3e(0x17c)](_0x197d3e(0x16a))['to'](_0xd48e2b,_0x197d3e(0x16a),this,_0x197d3e(0x18e),(_0x53f9e3,_0x5836ec)=>(_0x197d3e(0x197)!==_0x53f9e3&&(this[_0x197d3e(0x19d)]=!0x0),_0x5836ec||_0x53f9e3!==_0x4d7d1a[_0x197d3e(0x1ad)]?_0x4d7d1a[_0x197d3e(0x198)]:this[_0x197d3e(0x16a)]==_0x4d7d1a[_0x197d3e(0x198)]&&this[_0x197d3e(0x19d)]?(this[_0x197d3e(0x19d)]=!0x1,this[_0x197d3e(0x18f)](),_0x4d7d1a[_0x197d3e(0x196)]):_0x4d7d1a[_0x197d3e(0x1ad)])),this[_0x197d3e(0x187)]['on'](_0x197d3e(0x167),(_0x4746c8,_0x278e4e)=>{const _0x56ebad=_0x197d3e;if(_0x56ebad(0x178)!==_0x278e4e[_0x56ebad(0x166)])throw console[_0x56ebad(0x167)](_0x278e4e),new _0x1401dc(_0x56ebad(0x191),null,{'originalError':_0x278e4e});_0x467c2c[_0x56ebad(0x165)](_0x56ebad(0x1a6),{'title':_0x56ebad(0x16f),'namespace':_0x56ebad(0x193)});}),!_0xd48e2b['me'])return new Promise(_0x14d3f7=>_0xd48e2b['on'](_0x197d3e(0x181),_0x14d3f7));})[_0x45596f(0x192)](_0x38320d=>{const _0x39396a=_0x45596f;throw console[_0x39396a(0x167)](_0x38320d),new _0x1401dc(_0x39396a(0x191),null,{'originalError':_0x38320d});});}[_0x360d87(0x17d)](_0x16dd46){const _0x336484=_0x360d87;if(_0x336484(0x1a0)!=typeof _0x16dd46[_0x336484(0x1ab)])throw new _0x1401dc(_0x336484(0x172),this);if(this[_0x336484(0x179)](_0x16dd46))throw new _0x1401dc(_0x336484(0x19f),this,{'name':_0x16dd46[_0x336484(0x186)][_0x336484(0x170)]});this[_0x336484(0x1af)][_0x336484(0x19c)](_0x16dd46);}[_0x360d87(0x174)](_0x40034e){const _0x468c42=_0x360d87;this[_0x468c42(0x1af)][_0x468c42(0x1ae)](_0x40034e);}[_0x360d87(0x179)](_0x1743d4){const _0xc780b8=_0x360d87;return this[_0xc780b8(0x1af)][_0xc780b8(0x188)](_0x1743d4);}[_0x360d87(0x18f)](){const _0x4ff5cd=_0x360d87;return this[_0x4ff5cd(0x187)][_0x4ff5cd(0x1ab)]()[_0x4ff5cd(0x17e)](()=>Promise[_0x4ff5cd(0x199)](Array[_0x4ff5cd(0x185)](this[_0x4ff5cd(0x1af)],_0x5d9bf1=>_0x5d9bf1[_0x4ff5cd(0x1ab)]())))[_0x4ff5cd(0x17e)](()=>this[_0x4ff5cd(0x16a)]=_0x4d7d1a[_0x4ff5cd(0x1ad)])[_0x4ff5cd(0x192)](_0x2232f3=>{const _0x540197=_0x4ff5cd;throw console[_0x540197(0x167)](_0x2232f3),new _0x1401dc(_0x540197(0x176),this[_0x540197(0x1a1)]);});}[_0x360d87(0x18a)](){const _0x42b739=_0x360d87;this[_0x42b739(0x187)]&&this[_0x42b739(0x187)][_0x42b739(0x18a)](),this[_0x42b739(0x16a)]=_0x4d7d1a[_0x42b739(0x198)],this[_0x42b739(0x1a2)][_0x42b739(0x1a7)]();}[_0x360d87(0x1ac)](){const _0x554eba=_0x360d87;this[_0x554eba(0x18a)](),super[_0x554eba(0x1ac)]();}}
23
+ const _0x49fbce=_0xb898;(function(_0x371bd0,_0x53c105){const _0x328abc=_0xb898,_0x5cea58=_0x371bd0();while(!![]){try{const _0x2d3442=-parseInt(_0x328abc(0xa9))/0x1*(parseInt(_0x328abc(0xd8))/0x2)+-parseInt(_0x328abc(0xc1))/0x3*(-parseInt(_0x328abc(0xa2))/0x4)+parseInt(_0x328abc(0xc2))/0x5*(parseInt(_0x328abc(0xa4))/0x6)+-parseInt(_0x328abc(0xd2))/0x7*(-parseInt(_0x328abc(0xb8))/0x8)+-parseInt(_0x328abc(0xc0))/0x9+-parseInt(_0x328abc(0xb0))/0xa*(-parseInt(_0x328abc(0x9a))/0xb)+parseInt(_0x328abc(0xc9))/0xc;if(_0x2d3442===_0x53c105)break;else _0x5cea58['push'](_0x5cea58['shift']());}catch(_0x37bf88){_0x5cea58['push'](_0x5cea58['shift']());}}}(_0x4f95,0xdff67));import{ContextPlugin as _0x56eddc}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x48bec,CKEditorError as _0x573265}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x45eb4e,WEB_SOCKET_GATEWAY_STATES as _0x1b57a8}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x32c8f7}from'ckeditor5/src/ui.js';function _0xb898(_0x284636,_0x6e37a0){const _0x4f953c=_0x4f95();return _0xb898=function(_0xb898d2,_0x27df29){_0xb898d2=_0xb898d2-0x91;let _0x142cf0=_0x4f953c[_0xb898d2];return _0x142cf0;},_0xb898(_0x284636,_0x6e37a0);}function _0x4f95(){const _0x1a07e5=['56YGbjDI','showWarning','add','all','delete','then','cloudServices.requestTimeout','_reconnect','code','real-time-collaboration','online','limitExceeded','cloudServices.connectionTimeout','requires','2105015EMwHiM','config','set','removeFromReconnectionStack','error','plugins','The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.','token','1820dGsSdb','_isBrowserOffline','1554OdihGn','WebSocketGateway','cloudservices-reconnection-error','isOfficialPlugin','addToReconnectionStack','41365HzCmse','isPremiumPlugin','context','connected','isInReconnectionStack','pluginName','reconnect','10nyEWfc','CloudServices','catch','_reconnectionStack','destroy','CONNECTING','define','disconnect','11992qtoHKt','offline','has','_shouldPluginsReconnect','stopListening','bind','listenTo','_domEmitter','14577138yoFYag','6522PZZNqn','22415cjKDhZ','websocketgateway-invalid-plugin-interface','DISCONNECTED','websocketgateway-missing-websocket-url','cloudservices-init','connect','connection','1907016aZuLXx','Connected\x20users\x20limit\x20exceeded','function','state','constructor','websocketgateway-missing-token','CONNECTED','webSocketUrl','get','5579UscADR','init','initialReconnectionInterval','from','websocketgateway-plugin-already-registered','change:me'];_0x4f95=function(){return _0x1a07e5;};return _0x4f95();}export class WebSocketGateway extends _0x56eddc{static [_0x49fbce(0xa5)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x45eb4e)());static [_0x49fbce(0xd4)]=0x3e8;[_0x49fbce(0xc8)];[_0x49fbce(0xb3)];[_0x49fbce(0xbb)];[_0x49fbce(0xbf)];static get[_0x49fbce(0x99)](){const _0x3d5568=_0x49fbce;return[_0x3d5568(0xb1),_0x32c8f7];}static get[_0x49fbce(0xae)](){const _0x426219=_0x49fbce;return _0x426219(0xa5);}static get[_0x49fbce(0xa7)](){return!0x0;}static get[_0x49fbce(0xaa)](){return!0x0;}constructor(_0x487416){const _0x290d9f=_0x49fbce;super(_0x487416),this[_0x290d9f(0x9c)](_0x290d9f(0xcc),_0x1b57a8[_0x290d9f(0xcf)]),this[_0x290d9f(0x9c)](_0x290d9f(0xa3),!0x1),this[_0x290d9f(0xb3)]=new Set(),this[_0x290d9f(0xbb)]=!0x1,this[_0x290d9f(0xbf)]=new(_0x48bec())();}[_0x49fbce(0xd3)](){const _0xb939ae=_0x49fbce,_0x1a2716=this[_0xb939ae(0xab)],_0x9edd29=_0x1a2716[_0xb939ae(0x9f)][_0xb939ae(0xd1)](_0xb939ae(0xb1)),_0x1b78a0=_0x1a2716[_0xb939ae(0x9f)][_0xb939ae(0xd1)](_0x32c8f7);if(!_0x9edd29[_0xb939ae(0xa1)])throw new _0x573265(_0xb939ae(0xce),this);if(!_0x9edd29[_0xb939ae(0xd0)])throw new _0x573265(_0xb939ae(0xc5),this);return this[_0xb939ae(0xbf)][_0xb939ae(0xbe)](window,_0xb939ae(0xb9),()=>this[_0xb939ae(0xa3)]=!0x0),this[_0xb939ae(0xbf)][_0xb939ae(0xbe)](window,_0xb939ae(0x96),()=>this[_0xb939ae(0xa3)]=!0x1),this[_0xb939ae(0xab)][_0xb939ae(0x9b)][_0xb939ae(0xb6)](_0xb939ae(0x98),0xa),this[_0xb939ae(0xab)][_0xb939ae(0x9b)][_0xb939ae(0xb6)](_0xb939ae(0x92),0x14),WebSocketGateway[_0xb939ae(0xa5)][_0xb939ae(0xc7)](_0x9edd29[_0xb939ae(0xa1)],_0x9edd29[_0xb939ae(0xd0)],{'timeout':0x3e8*this[_0xb939ae(0xab)][_0xb939ae(0x9b)][_0xb939ae(0xd1)](_0xb939ae(0x98)),'requestTimeout':0x3e8*this[_0xb939ae(0xab)][_0xb939ae(0x9b)][_0xb939ae(0xd1)](_0xb939ae(0x92))})[_0xb939ae(0x91)](_0x5597cd=>{const _0x413875=_0xb939ae;if(this[_0x413875(0xc8)]=_0x5597cd,this[_0x413875(0xbd)](_0x413875(0xcc))['to'](_0x5597cd,_0x413875(0xcc),this,_0x413875(0xa3),(_0x417841,_0x5d9e74)=>(_0x413875(0xac)!==_0x417841&&(this[_0x413875(0xbb)]=!0x0),_0x5d9e74||_0x417841!==_0x1b57a8[_0x413875(0xcf)]?_0x1b57a8[_0x413875(0xc4)]:this[_0x413875(0xcc)]==_0x1b57a8[_0x413875(0xc4)]&&this[_0x413875(0xbb)]?(this[_0x413875(0xbb)]=!0x1,this[_0x413875(0x93)](),_0x1b57a8[_0x413875(0xb5)]):_0x1b57a8[_0x413875(0xcf)])),this[_0x413875(0xc8)]['on'](_0x413875(0x9e),(_0x516eb8,_0x69d40d)=>{const _0x4bf935=_0x413875;if(_0x4bf935(0x97)!==_0x69d40d[_0x4bf935(0x94)])throw console[_0x4bf935(0x9e)](_0x69d40d),new _0x573265(_0x4bf935(0xc6),null,{'originalError':_0x69d40d});_0x1b78a0[_0x4bf935(0xd9)](_0x4bf935(0xa0),{'title':_0x4bf935(0xca),'namespace':_0x4bf935(0x95)});}),!_0x5597cd['me'])return new Promise(_0x47a881=>_0x5597cd['on'](_0x413875(0xd7),_0x47a881));})[_0xb939ae(0xb2)](_0x531725=>{const _0x1eb62d=_0xb939ae;throw console[_0x1eb62d(0x9e)](_0x531725),new _0x573265(_0x1eb62d(0xc6),null,{'originalError':_0x531725});});}[_0x49fbce(0xa8)](_0x52b1ca){const _0x8b5771=_0x49fbce;if(_0x8b5771(0xcb)!=typeof _0x52b1ca[_0x8b5771(0xaf)])throw new _0x573265(_0x8b5771(0xc3),this);if(this[_0x8b5771(0xad)](_0x52b1ca))throw new _0x573265(_0x8b5771(0xd6),this,{'name':_0x52b1ca[_0x8b5771(0xcd)][_0x8b5771(0xae)]});this[_0x8b5771(0xb3)][_0x8b5771(0xda)](_0x52b1ca);}[_0x49fbce(0x9d)](_0x1aed3d){const _0x1c4d73=_0x49fbce;this[_0x1c4d73(0xb3)][_0x1c4d73(0xdc)](_0x1aed3d);}[_0x49fbce(0xad)](_0x55e82a){const _0x56966b=_0x49fbce;return this[_0x56966b(0xb3)][_0x56966b(0xba)](_0x55e82a);}[_0x49fbce(0x93)](){const _0x525c4e=_0x49fbce;return this[_0x525c4e(0xc8)][_0x525c4e(0xaf)]()[_0x525c4e(0x91)](()=>Promise[_0x525c4e(0xdb)](Array[_0x525c4e(0xd5)](this[_0x525c4e(0xb3)],_0x1f940f=>_0x1f940f[_0x525c4e(0xaf)]())))[_0x525c4e(0x91)](()=>this[_0x525c4e(0xcc)]=_0x1b57a8[_0x525c4e(0xcf)])[_0x525c4e(0xb2)](_0x261bca=>{const _0x5edea1=_0x525c4e;throw console[_0x5edea1(0x9e)](_0x261bca),new _0x573265(_0x5edea1(0xa6),this[_0x5edea1(0xab)]);});}[_0x49fbce(0xb7)](){const _0x339372=_0x49fbce;this[_0x339372(0xc8)]&&this[_0x339372(0xc8)][_0x339372(0xb7)](),this[_0x339372(0xcc)]=_0x1b57a8[_0x339372(0xc4)],this[_0x339372(0xbf)][_0x339372(0xbc)]();}[_0x49fbce(0xb4)](){const _0x1c6c92=_0x49fbce;this[_0x1c6c92(0xb7)](),super[_0x1c6c92(0xb4)]();}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _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 _0x282942=_0xbf73;(function(_0x8845cd,_0x3d20e3){const _0x2988a4=_0xbf73,_0x5971f9=_0x8845cd();while(!![]){try{const _0x4b141b=parseInt(_0x2988a4(0x246))/0x1*(parseInt(_0x2988a4(0x21e))/0x2)+parseInt(_0x2988a4(0x260))/0x3*(-parseInt(_0x2988a4(0x250))/0x4)+parseInt(_0x2988a4(0x248))/0x5+parseInt(_0x2988a4(0x236))/0x6+parseInt(_0x2988a4(0x227))/0x7+parseInt(_0x2988a4(0x224))/0x8*(-parseInt(_0x2988a4(0x1fd))/0x9)+-parseInt(_0x2988a4(0x24e))/0xa*(parseInt(_0x2988a4(0x24a))/0xb);if(_0x4b141b===_0x3d20e3)break;else _0x5971f9['push'](_0x5971f9['shift']());}catch(_0x404fe4){_0x5971f9['push'](_0x5971f9['shift']());}}}(_0x2ee5,0xee585));import{Plugin as _0x4b0ce3}from'ckeditor5/src/core.js';import{version as _0x574e7f}from'ckeditor5/src/utils.js';import{Users as _0x30888e}from'ckeditor5-collaboration/src/collaboration-core.js';function _0xbf73(_0x1d4126,_0x5ad0a6){const _0x2ee5a6=_0x2ee5();return _0xbf73=function(_0xbf7338,_0x593be){_0xbf7338=_0xbf7338-0x1f1;let _0x4a7590=_0x2ee5a6[_0xbf7338];return _0x4a7590;},_0xbf73(_0x1d4126,_0x5ad0a6);}import{RealTimeCollaborationClient as _0x5d384d}from'../realtimecollaborativeediting/realtimecollaborationclient.js';function _0x2ee5(){const _0x273b76=['type','isConnected','_createCurrentRevision','_getLatestVersionFromServerOperations','969154QeeNXE','_revisionHistoryService','cloud-services-internal-error:\x20Request\x20timeout.','addRevisionData','cloud-services-internal-error:\x20Not\x20connected.','getOperations','632AnMwcg','listenTo','_offset','5691910luevFU','keys','_revisions','reconnect','_waitForServiceReady','CONNECTED','editor','revisionsUpdated','_handleRevisionsUpdate','isOfficialPlugin','adapter','creatorId','init','_revisionTracker','state','5912406bBWzta','RevisionTracker','data','getMany','sessionId','_bufferUpdate','destroy','repository','get','pluginName','_preventResendingRevisionData','_getLatestVersion','wrongRequestId','CloudServicesRevisionHistoryAdapter','RevisionHistory','RevisionHistoryService','3eGPLzw','reInit','2015295oUjSif','_lastRequestId','22294019dKKgay','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','message','authorsIds','10ULUZtw','once','856VxURdm','_handleReconnectionError','connection','sendBufferedUpdates','add','startsWith','from','authors','max','has','createdAt','collaboration.channelId','400','change:_isConnected','buildRevisionData','diffData','8889dBYvDA','change:_isPendingUpdate','bind','serverHistory','connected','_fetchMissingUsers','remove','_oldOffset','requires','toVersion','getRevisions','map','_isPendingUpdate','code','isEnabled','_isConnected','_update','affectsData','2079DtYJSt','size','baseVersion','then','_bufferedUpdates','isEmptyCurrent','_revisionDataBuilder','isBundleUploaded','off','currentRevision','addUser','_fixRevision','fromVersion','marker','addToReconnectionStack','getRevision','config','setRevisionData','cloudServices.bundleVersion','plugins','getUser','length','updateRevisions','catch','reverse','isPremiumPlugin','connect','_startingVersion','setSource'];_0x2ee5=function(){return _0x273b76;};return _0x2ee5();}import{WebSocketGateway as _0x49dbd2}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x51c159}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x4e2be5,RevisionHistoryService as _0xaf0df7,User as _0x1ddfb9,WEB_SOCKET_GATEWAY_STATES as _0x4b3e4f}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x4b0ce3{static [_0x282942(0x245)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0xaf0df7)());[_0x282942(0x249)];[_0x282942(0x234)];[_0x282942(0x21f)];[_0x282942(0x1f2)];static get[_0x282942(0x1f3)](){const _0x19c245=_0x282942;return[_0x49dbd2,_0x5d384d,_0x19c245(0x244),_0x51c159,_0x30888e];}static get[_0x282942(0x23f)](){const _0x25d178=_0x282942;return _0x25d178(0x243);}static get[_0x282942(0x230)](){return!0x0;}static get[_0x282942(0x216)](){return!0x0;}constructor(_0x4b7213){const _0x163d6c=_0x282942;super(_0x4b7213);const _0x23aaba=this[_0x163d6c(0x22d)][_0x163d6c(0x20d)][_0x163d6c(0x23e)](_0x163d6c(0x25b));this[_0x163d6c(0x249)]=null,this[_0x163d6c(0x234)]=this[_0x163d6c(0x22d)][_0x163d6c(0x210)][_0x163d6c(0x23e)](_0x163d6c(0x237)),this[_0x163d6c(0x21f)]=new CloudServicesRevisionHistoryAdapter[(_0x163d6c(0x245))](_0x23aaba);}async[_0x282942(0x233)](){const _0xcaf2=_0x282942,_0x27d042=this[_0xcaf2(0x22d)][_0xcaf2(0x210)][_0xcaf2(0x23e)](_0x5d384d),_0x4ef1c8=_0x27d042[_0xcaf2(0x263)],_0x1865a7=this[_0xcaf2(0x22d)][_0xcaf2(0x210)][_0xcaf2(0x23e)](_0x49dbd2);this[_0xcaf2(0x234)][_0xcaf2(0x219)]({'history':_0x4ef1c8,'getLatestVersion':()=>this[_0xcaf2(0x241)](),'getCurrentRevisionId':()=>_0x27d042[_0xcaf2(0x23a)]});const _0x2d87ea=this[_0xcaf2(0x22d)][_0xcaf2(0x20d)][_0xcaf2(0x23e)](_0xcaf2(0x20f))||_0x574e7f,_0x107ed4=await _0x4e2be5[_0xcaf2(0x204)](_0x1865a7[_0xcaf2(0x252)],_0x2d87ea);this[_0xcaf2(0x22d)][_0xcaf2(0x210)][_0xcaf2(0x23e)](_0xcaf2(0x244))[_0xcaf2(0x231)]={'getRevision':async({revisionId:_0x5a4396})=>(await this[_0xcaf2(0x22b)](),await this[_0xcaf2(0x21f)][_0xcaf2(0x20c)](_0x5a4396)),'updateRevisions':async _0x5e7084=>{const _0x5979e3=_0xcaf2;await this[_0x5979e3(0x22b)]();const _0x28ad8a=this[_0x5979e3(0x234)][_0x5979e3(0x206)];if(_0x107ed4&&0x1===_0x5e7084[_0x5979e3(0x212)]&&_0x5e7084[0x0]['id']===_0x28ad8a['id'])return _0x5e7084;for(const _0x2da2fe of _0x5e7084)_0x2da2fe['id']===_0x28ad8a['id']&&(_0x2da2fe[_0x5979e3(0x202)]=_0x2da2fe[_0x5979e3(0x209)]===_0x2da2fe[_0x5979e3(0x1f4)]);return this[_0x5979e3(0x21f)][_0x5979e3(0x213)](_0x5e7084,this[_0x5979e3(0x249)])[_0x5979e3(0x200)](_0x4b319c=>(this[_0x5979e3(0x249)]=_0x4b319c,_0x5e7084))[_0x5979e3(0x214)](_0xb17386=>{const _0x1f1700=_0x5979e3;if(et(_0xb17386)||_0x1f1700(0x25c)===_0xb17386[_0x1f1700(0x1f8)]&&void 0x0!==_0xb17386[_0x1f1700(0x238)][_0x1f1700(0x242)]){for(const _0x16838b of _0x5e7084){!this[_0x1f1700(0x234)][_0x1f1700(0x23d)][_0x1f1700(0x20c)](_0x16838b['id'])||this[_0x1f1700(0x234)][_0x1f1700(0x23b)](_0x16838b['id'],_0x16838b,!0x1);}if(et(_0xb17386))throw _0xb17386;return _0x5e7084;}throw _0xb17386;});}},this[_0xcaf2(0x225)](this[_0xcaf2(0x21f)],_0xcaf2(0x22e),(_0x2cd9e5,{revisionsData:_0x233efb,requestId:_0x568958})=>{const _0x4e5e66=_0xcaf2;Math[_0x4e5e66(0x258)](..._0x233efb[_0x4e5e66(0x1f6)](_0x2b446e=>_0x2b446e[_0x4e5e66(0x1f4)]))>this[_0x4e5e66(0x21d)]()-0x1?this[_0x4e5e66(0x241)]()[_0x4e5e66(0x200)](()=>{const _0x3e4a9e=_0x4e5e66;this[_0x3e4a9e(0x22f)](_0x233efb,_0x568958);}):this[_0x4e5e66(0x22f)](_0x233efb,_0x568958);});const {revisions:_0x67e013,requestId:_0x482302}=await this[_0xcaf2(0x21f)][_0xcaf2(0x217)](_0x1865a7[_0xcaf2(0x252)]);_0x1865a7[_0xcaf2(0x20b)](this),this[_0xcaf2(0x249)]=_0x482302,await this[_0xcaf2(0x265)](_0x67e013);for(const _0x13a0b6 of _0x67e013)this[_0xcaf2(0x234)][_0xcaf2(0x221)](_0x13a0b6);this[_0xcaf2(0x225)](_0x27d042,_0xcaf2(0x25d),(_0x4b3587,_0x1258dd,_0x119c53)=>{const _0x4e008c=_0xcaf2;_0x119c53&&(this[_0x4e008c(0x1f2)]=_0x27d042[_0x4e008c(0x226)],_0x4b3587[_0x4e008c(0x205)]());}),this[_0xcaf2(0x234)][_0xcaf2(0x262)](_0xcaf2(0x1f9))['to'](_0x1865a7,_0xcaf2(0x235),_0x55f7c8=>_0x55f7c8===_0x4b3e4f[_0xcaf2(0x22c)]);}async[_0x282942(0x22a)](){const _0x4be65c=_0x282942,_0x51bbf5=this[_0x4be65c(0x22d)][_0x4be65c(0x210)][_0x4be65c(0x23e)](_0x49dbd2),_0x2ba5a5=this[_0x4be65c(0x22d)][_0x4be65c(0x210)][_0x4be65c(0x23e)](_0x5d384d),_0x5dabc4=async()=>{const _0x12aed8=_0x4be65c,_0x29825b=this[_0x12aed8(0x234)][_0x12aed8(0x206)],_0x472386=_0x29825b['id'],_0x32bf29=_0x472386!==_0x2ba5a5[_0x12aed8(0x23a)];if(_0x32bf29){const _0x1e6f4b=_0x2ba5a5[_0x12aed8(0x226)]-this[_0x12aed8(0x1f2)],_0xb291d6=this[_0x12aed8(0x21d)]();this[_0x12aed8(0x234)][_0x12aed8(0x203)][_0x12aed8(0x247)]();if(_0x29825b[_0x12aed8(0x1f4)]+_0x1e6f4b!==_0xb291d6){const _0x441ab8=_0x29825b[_0x12aed8(0x209)]+_0x1e6f4b,_0x25e975=this[_0x12aed8(0x22d)][_0x12aed8(0x210)][_0x12aed8(0x23e)](_0x30888e),_0x4882b5=this[_0x12aed8(0x234)][_0x12aed8(0x25e)]({'revision':_0x29825b,'from':_0x441ab8,'to':_0xb291d6});_0x4882b5['id']=_0x29825b['id'];const _0x5a6cbc=_0x4882b5[_0x12aed8(0x24d)][_0x12aed8(0x1f6)](_0x4f6714=>_0x25e975[_0x12aed8(0x211)](_0x4f6714));_0x29825b[_0x12aed8(0x1fb)]({..._0x4882b5,'authors':_0x5a6cbc},!0x0),this[_0x12aed8(0x234)][_0x12aed8(0x23b)](_0x29825b['id'],_0x4882b5,!0x0);}this[_0x12aed8(0x234)][_0x12aed8(0x218)]=_0xb291d6,(_0x29825b[_0x12aed8(0x1f4)]===_0x29825b[_0x12aed8(0x209)]&&!this[_0x12aed8(0x234)][_0x12aed8(0x201)][_0x12aed8(0x259)](_0x472386)&&this[_0x12aed8(0x234)][_0x12aed8(0x23d)][_0x12aed8(0x229)][_0x12aed8(0x1f1)](_0x472386),this[_0x12aed8(0x234)][_0x12aed8(0x21c)](_0xb291d6));}const {revisions:_0x5e6f1c,requestId:_0x1c82d7}=await this[_0x12aed8(0x21f)][_0x12aed8(0x22a)](_0x51bbf5[_0x12aed8(0x252)],this[_0x12aed8(0x249)]);_0x32bf29&&_0x5e6f1c[_0x12aed8(0x212)]>0x0?_0x2ba5a5[_0x12aed8(0x251)]():(await this[_0x12aed8(0x265)](_0x5e6f1c),this[_0x12aed8(0x22f)](_0x5e6f1c,_0x1c82d7),this[_0x12aed8(0x234)][_0x12aed8(0x253)]());};return _0x2ba5a5[_0x4be65c(0x1fa)]?_0x5dabc4():new Promise((_0x6067b3,_0xe2d93f)=>{const _0x1b9ef1=_0x4be65c;_0x2ba5a5[_0x1b9ef1(0x24f)](_0x1b9ef1(0x25d),()=>{const _0x5808d8=_0x1b9ef1;_0x5dabc4()[_0x5808d8(0x200)](_0x6067b3)[_0x5808d8(0x214)](_0xe2d93f);});});}[_0x282942(0x23c)](){const _0x32c912=_0x282942;super[_0x32c912(0x23c)]();}async[_0x282942(0x22b)](){const _0x3d162e=_0x282942;this[_0x3d162e(0x21f)][_0x3d162e(0x21b)]||await new Promise(_0x7fba4c=>{const _0x30d0dd=_0x3d162e;this[_0x30d0dd(0x225)](this[_0x30d0dd(0x21f)],_0x30d0dd(0x264),_0x2a86ff=>{const _0x1474ae=_0x30d0dd;_0x2a86ff[_0x1474ae(0x205)](),_0x7fba4c();});});}[_0x282942(0x21d)](){const _0x2245a1=_0x282942,_0x5a9c04=this[_0x2245a1(0x22d)][_0x2245a1(0x210)][_0x2245a1(0x23e)](_0x5d384d)[_0x2245a1(0x263)][_0x2245a1(0x223)]()[_0x2245a1(0x215)]();for(const _0x305af7 of _0x5a9c04)if(_0x2245a1(0x20a)!==_0x305af7[_0x2245a1(0x21a)]||_0x305af7[_0x2245a1(0x1fc)])return _0x305af7[_0x2245a1(0x1ff)]+0x1;}[_0x282942(0x241)](){const _0x42c145=_0x282942,_0x334a1c=this[_0x42c145(0x22d)][_0x42c145(0x210)][_0x42c145(0x23e)](_0x5d384d);return new Promise(_0x5e8b3f=>{const _0x263cc2=_0x42c145;_0x334a1c[_0x263cc2(0x1f7)]?_0x334a1c[_0x263cc2(0x24f)](_0x263cc2(0x261),()=>{const _0x175a19=_0x263cc2;_0x5e8b3f(this[_0x175a19(0x21d)]());}):_0x5e8b3f(this[_0x263cc2(0x21d)]());});}[_0x282942(0x22f)](_0x3d55e7,_0x59d818){const _0x4048bf=_0x282942,_0x4854a0=this[_0x4048bf(0x234)][_0x4048bf(0x23d)];this[_0x4048bf(0x249)]=_0x59d818;for(const _0x256d97 of _0x3d55e7){const _0x127e69=_0x4854a0[_0x4048bf(0x20c)](_0x256d97['id']);if(_0x127e69){if((_0x256d97[_0x4048bf(0x209)]||_0x256d97[_0x4048bf(0x1f4)])&&(_0x256d97[_0x4048bf(0x25f)]=null),_0x127e69===this[_0x4048bf(0x234)][_0x4048bf(0x206)]){const _0x3d120b=Math[_0x4048bf(0x258)](_0x127e69[_0x4048bf(0x1f4)],_0x256d97[_0x4048bf(0x1f4)]),_0x4a241f=Math[_0x4048bf(0x258)](_0x127e69[_0x4048bf(0x209)],_0x256d97[_0x4048bf(0x209)]);let _0x28a172;_0x127e69[_0x4048bf(0x1f4)]===_0x256d97[_0x4048bf(0x1f4)]&&_0x127e69[_0x4048bf(0x209)]===_0x256d97[_0x4048bf(0x209)]?(_0x28a172=!0x0,this[_0x4048bf(0x240)](_0x256d97)):_0x256d97[_0x4048bf(0x1f4)]===_0x3d120b&&_0x256d97[_0x4048bf(0x209)]===_0x4a241f?_0x28a172=!0x1:(_0x127e69[_0x4048bf(0x1f4)]===_0x3d120b&&_0x127e69[_0x4048bf(0x209)]===_0x4a241f||this[_0x4048bf(0x208)]({'revision':_0x127e69,'from':_0x4a241f,'to':_0x3d120b}),_0x28a172=!0x0),_0x28a172&&(delete _0x256d97[_0x4048bf(0x209)],delete _0x256d97[_0x4048bf(0x1f4)],delete _0x256d97[_0x4048bf(0x25f)],delete _0x256d97[_0x4048bf(0x25a)],delete _0x256d97[_0x4048bf(0x24d)]);}this[_0x4048bf(0x234)][_0x4048bf(0x20e)](_0x256d97),this[_0x4048bf(0x240)](_0x256d97);}else this[_0x4048bf(0x234)][_0x4048bf(0x221)](_0x256d97);}const _0x49505c=_0x4854a0[_0x4048bf(0x1f5)]();_0x49505c[_0x4048bf(0x215)]();for(let _0x1b094c=0x0;_0x1b094c<_0x49505c[_0x4048bf(0x212)]-0x1;_0x1b094c++){const _0x16f544=_0x49505c[_0x1b094c],_0x13c8b4=_0x49505c[_0x1b094c+0x1];if(_0x16f544[_0x4048bf(0x209)]<_0x13c8b4[_0x4048bf(0x1f4)]){const _0x1d583e=_0x13c8b4[_0x4048bf(0x1f4)],_0x532e38=Math[_0x4048bf(0x258)](_0x1d583e,_0x16f544[_0x4048bf(0x1f4)]);this[_0x4048bf(0x208)]({'revision':_0x16f544,'from':_0x1d583e,'to':_0x532e38});}}}[_0x282942(0x208)]({revision:_0x244c99,from:_0x34f450,to:_0x428547}={}){const _0x53eb1e=_0x282942,_0xd6e72a=this[_0x53eb1e(0x22d)][_0x53eb1e(0x210)][_0x53eb1e(0x23e)](_0x30888e),_0x32b70b=this[_0x53eb1e(0x234)][_0x53eb1e(0x25e)]({'revision':_0x244c99,'from':_0x34f450,'to':_0x428547});_0x32b70b[_0x53eb1e(0x257)]=_0x32b70b[_0x53eb1e(0x24d)][_0x53eb1e(0x1f6)](_0x3b5671=>_0xd6e72a[_0x53eb1e(0x211)](_0x3b5671)),_0x244c99[_0x53eb1e(0x1fb)](_0x32b70b);}[_0x282942(0x240)](_0x3065f8){const _0x34ecaf=_0x282942,_0x4321e7={};_0x4321e7['id']=_0x3065f8['id'];for(const _0x5b4947 of Object[_0x34ecaf(0x228)](_0x3065f8))'id'!==_0x5b4947&&(_0x4321e7[_0x5b4947]=void 0x0);this[_0x34ecaf(0x234)][_0x34ecaf(0x23b)](_0x4321e7['id'],_0x4321e7,!0x0);}async[_0x282942(0x265)](_0x5d22e3){const _0x462130=_0x282942,_0x4c3428=this[_0x462130(0x22d)][_0x462130(0x210)][_0x462130(0x23e)](_0x30888e),{connection:_0x22e9ce}=this[_0x462130(0x22d)][_0x462130(0x210)][_0x462130(0x23e)](_0x49dbd2),_0x44b2b9=new Set();for(const _0x513e78 of _0x5d22e3){for(const _0x1c5aa4 of _0x513e78[_0x462130(0x24d)])_0x33da2f(_0x1c5aa4);_0x513e78[_0x462130(0x232)]&&_0x33da2f(_0x513e78[_0x462130(0x232)]);}if(0x0===_0x44b2b9[_0x462130(0x1fe)])return;const _0x3c06f7=await _0x1ddfb9[_0x462130(0x239)](_0x22e9ce,Array[_0x462130(0x256)](_0x44b2b9));for(const _0x5a0d4b of _0x3c06f7)_0x4c3428[_0x462130(0x211)](_0x5a0d4b['id'])||_0x4c3428[_0x462130(0x207)](_0x5a0d4b);function _0x33da2f(_0x18281c){const _0x32dc5c=_0x462130;_0x4c3428[_0x32dc5c(0x211)](_0x18281c)||_0x44b2b9[_0x32dc5c(0x254)](_0x18281c);}}}function et(_0x1af25c){const _0x439b80=_0x282942;return _0x1af25c[_0x439b80(0x24c)][_0x439b80(0x255)](_0x439b80(0x24b))||_0x1af25c[_0x439b80(0x24c)][_0x439b80(0x255)](_0x439b80(0x222))||_0x1af25c[_0x439b80(0x24c)][_0x439b80(0x255)](_0x439b80(0x220));}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _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 _0x1df6a4=_0x2667;(function(_0xad8ab2,_0x3e7bd7){const _0x9bcfa3=_0x2667,_0x2ac1d3=_0xad8ab2();while(!![]){try{const _0x44e271=parseInt(_0x9bcfa3(0x1b1))/0x1+parseInt(_0x9bcfa3(0x19e))/0x2*(-parseInt(_0x9bcfa3(0x1c3))/0x3)+parseInt(_0x9bcfa3(0x1be))/0x4*(parseInt(_0x9bcfa3(0x1cd))/0x5)+-parseInt(_0x9bcfa3(0x1bc))/0x6+-parseInt(_0x9bcfa3(0x1cb))/0x7+-parseInt(_0x9bcfa3(0x1a5))/0x8+-parseInt(_0x9bcfa3(0x199))/0x9*(-parseInt(_0x9bcfa3(0x1ac))/0xa);if(_0x44e271===_0x3e7bd7)break;else _0x2ac1d3['push'](_0x2ac1d3['shift']());}catch(_0x4b9f94){_0x2ac1d3['push'](_0x2ac1d3['shift']());}}}(_0x5a45,0x826e2));function _0x2667(_0x140bf1,_0x2f2527){const _0x5a4557=_0x5a45();return _0x2667=function(_0x266701,_0x319134){_0x266701=_0x266701-0x191;let _0x201772=_0x5a4557[_0x266701];return _0x201772;},_0x2667(_0x140bf1,_0x2f2527);}import{Plugin as _0x53a53b}from'ckeditor5/src/core.js';import{User as _0x4cf4d3,TrackChangesService as _0x4f86f8}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x117114}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x2a0f72}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x43468f}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x5a45(){const _0x27e906=['83367XDcSuU','_waitForServiceReady','getUser','editor','isPremiumPlugin','1061962cVOpRE','data','from','_trackChangesService','getMany','hasSuggestion','set','3228760UnmNNW','init','collaboration.channelId','size','message','pluginName','suggestionUpdated','500KkraDX','addSuggestionData','startsWith','cloud-services-internal-error:\x20Not\x20connected.','add','1031807elIWAE','TrackChangesService','get','listenTo','CloudServicesTrackChangesAdapter','delete','cloud-services-internal-error:\x20Request\x20timeout.','catch','_bufferedRequests','connect','addUser','5243334kbZXcl','plugins','15940WBsOfj','adapter','reconnect','find','state','3oTwPve','update','originalSuggestionId','connected','config','TrackChangesEditing','then','getSuggestion','1513715kkddFL','isConnected','1335wRwvNB','type','requires','_fetchMissingUsersForThreads','open','attributes','connection','off','isOfficialPlugin','addToReconnectionStack','_saved','values'];_0x5a45=function(){return _0x27e906;};return _0x5a45();}export class CloudServicesTrackChangesAdapter extends _0x53a53b{static [_0x1df6a4(0x1b2)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x4f86f8)());[_0x1df6a4(0x1b9)];[_0x1df6a4(0x1a1)];static get[_0x1df6a4(0x1cf)](){const _0x28d26c=_0x1df6a4;return[_0x2a0f72,_0x28d26c(0x1c8),_0x117114];}static get[_0x1df6a4(0x1aa)](){const _0x3c1415=_0x1df6a4;return _0x3c1415(0x1b5);}static get[_0x1df6a4(0x195)](){return!0x0;}static get[_0x1df6a4(0x19d)](){return!0x0;}constructor(_0x27475f){const _0x32e748=_0x1df6a4;super(_0x27475f);const _0xd0ebc2=this[_0x32e748(0x19c)][_0x32e748(0x1c7)][_0x32e748(0x1b3)](_0x32e748(0x1a7));this[_0x32e748(0x1b9)]=new Map(),this[_0x32e748(0x1a1)]=new CloudServicesTrackChangesAdapter[(_0x32e748(0x1b2))](_0xd0ebc2);}[_0x1df6a4(0x1a6)](){const _0x410edb=_0x1df6a4,_0x95dae2=this[_0x410edb(0x19c)][_0x410edb(0x1bd)][_0x410edb(0x1b3)](_0x117114),_0x429b90=this[_0x410edb(0x19c)][_0x410edb(0x1bd)][_0x410edb(0x1b3)](_0x410edb(0x1c8));return _0x429b90[_0x410edb(0x1bf)]={'getSuggestion':async _0x553dc7=>{const _0x33e522=_0x410edb;await this[_0x33e522(0x19a)]();const _0x59ff8e=await this[_0x33e522(0x1a1)][_0x33e522(0x1b3)](_0x553dc7)[_0x33e522(0x1b8)](A);return await this[_0x33e522(0x1d0)]([_0x59ff8e]),_0x59ff8e;},'addSuggestion':async({id:_0x57b41e,type:_0x44727c,data:_0x32c511,originalSuggestionId:_0x252c7b,attributes:_0x3db9b8})=>{const _0x127302=_0x410edb;await this[_0x127302(0x19a)]();const _0x16aab2={'id':_0x57b41e,'type':_0x44727c,'data':_0x32c511,'originalSuggestionId':_0x252c7b,'attributes':_0x3db9b8},_0x51f8a4=await this[_0x127302(0x1a1)][_0x127302(0x1b0)](_0x57b41e,_0x44727c,_0x32c511,_0x252c7b,_0x3db9b8)[_0x127302(0x1b8)](_0x596238=>{if(et(_0x596238))return new Promise(_0x54dd1=>{const _0x48e49d=_0x2667;this[_0x48e49d(0x1b9)][_0x48e49d(0x1a4)](_0x57b41e,{'resolve':_0x54dd1,'suggestionData':_0x16aab2});});throw _0x596238;});return this[_0x127302(0x1b9)][_0x127302(0x1b6)](_0x57b41e),_0x51f8a4;},'updateSuggestion':async(_0x416db7,_0x43d05c)=>{const _0x35a904=_0x410edb;if(await this[_0x35a904(0x19a)](),_0x35a904(0x191)!==_0x43d05c[_0x35a904(0x1c2)])return this[_0x35a904(0x1a1)][_0x35a904(0x1c4)](_0x416db7,_0x43d05c)[_0x35a904(0x1b8)](A);}},this[_0x410edb(0x1b4)](this[_0x410edb(0x1a1)],_0x410edb(0x1ab),(_0x1fe3b4,_0x4d9f6d)=>{const _0x19409e=_0x410edb;_0x429b90[_0x19409e(0x1a3)](_0x4d9f6d['id'])&&(_0x429b90[_0x19409e(0x1ca)](_0x4d9f6d['id'])[_0x19409e(0x192)]=_0x4d9f6d[_0x19409e(0x192)]);}),this[_0x410edb(0x1a1)][_0x410edb(0x1ba)](_0x95dae2[_0x410edb(0x193)])[_0x410edb(0x1c9)](_0x1aaa33=>(_0x95dae2[_0x410edb(0x196)](this),this[_0x410edb(0x1d0)](_0x1aaa33)[_0x410edb(0x1c9)](()=>{const _0x54d10d=_0x410edb;for(const _0x4f074d of _0x1aaa33){_0x429b90[_0x54d10d(0x1ad)](_0x4f074d)[_0x54d10d(0x197)]=!0x0;}})));}async[_0x1df6a4(0x1c0)](){const _0x26ee04=_0x1df6a4,_0x399bdb=this[_0x26ee04(0x19c)][_0x26ee04(0x1bd)][_0x26ee04(0x1b3)](_0x26ee04(0x1c8)),{connection:_0x36a934}=this[_0x26ee04(0x19c)][_0x26ee04(0x1bd)][_0x26ee04(0x1b3)](_0x117114),_0x20e4a0=await this[_0x26ee04(0x1a1)][_0x26ee04(0x1ba)](_0x36a934);await this[_0x26ee04(0x1d0)](_0x20e4a0);for(const {suggestionData:_0x1fdcbc,resolve:_0x5514e1}of this[_0x26ee04(0x1b9)][_0x26ee04(0x198)]()){let _0x2f8de1=_0x20e4a0[_0x26ee04(0x1c1)](_0x308285=>_0x308285['id']===_0x1fdcbc['id']);_0x2f8de1||(_0x2f8de1=await this[_0x26ee04(0x1a1)][_0x26ee04(0x1b0)](_0x1fdcbc['id'],_0x1fdcbc[_0x26ee04(0x1ce)],_0x1fdcbc[_0x26ee04(0x19f)],_0x1fdcbc[_0x26ee04(0x1c5)])),_0x5514e1(_0x2f8de1);}for(const _0xea5e17 of _0x20e4a0)_0x399bdb[_0x26ee04(0x1a3)](_0xea5e17['id'])||_0x399bdb[_0x26ee04(0x1ad)](_0xea5e17);}async[_0x1df6a4(0x19a)](){const _0x543a3b=_0x1df6a4;this[_0x543a3b(0x1a1)][_0x543a3b(0x1cc)]||await new Promise(_0x3920c1=>{const _0x4279e6=_0x543a3b;this[_0x4279e6(0x1b4)](this[_0x4279e6(0x1a1)],_0x4279e6(0x1c6),_0x29a299=>{const _0x55fdcc=_0x4279e6;_0x29a299[_0x55fdcc(0x194)](),_0x3920c1();});});}async[_0x1df6a4(0x1d0)](_0x53c14d){const _0x25057e=_0x1df6a4,_0xe7f3e8=this[_0x25057e(0x19c)][_0x25057e(0x1bd)][_0x25057e(0x1b3)](_0x43468f),{connection:_0x20c5d0}=this[_0x25057e(0x19c)][_0x25057e(0x1bd)][_0x25057e(0x1b3)](_0x117114),_0x5c85c7=new Set();for(const {authorId:_0x5dfe08}of _0x53c14d)_0xe7f3e8[_0x25057e(0x19b)](_0x5dfe08)||_0x5c85c7[_0x25057e(0x1b0)](_0x5dfe08);if(0x0===_0x5c85c7[_0x25057e(0x1a8)])return;const _0xb8bfa9=await _0x4cf4d3[_0x25057e(0x1a2)](_0x20c5d0,Array[_0x25057e(0x1a0)](_0x5c85c7));for(const _0x2cb9db of _0xb8bfa9)_0xe7f3e8[_0x25057e(0x19b)](_0x2cb9db['id'])||_0xe7f3e8[_0x25057e(0x1bb)](_0x2cb9db);}}function A(_0x149c2a){if(et(_0x149c2a))return new Promise(()=>{});throw _0x149c2a;}function et(_0xe108b9){const _0x6f3f3f=_0x1df6a4;return _0xe108b9[_0x6f3f3f(0x1a9)][_0x6f3f3f(0x1ae)](_0x6f3f3f(0x1af))||_0xe108b9[_0x6f3f3f(0x1a9)][_0x6f3f3f(0x1ae)](_0x6f3f3f(0x1b7));}