@ckeditor/ckeditor5-real-time-collaboration 46.1.1-alpha.2 → 46.1.1-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.
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8f477f=_0x19d1;(function(_0x4efe17,_0x13598f){const _0x3b37ee=_0x19d1,_0x579fa1=_0x4efe17();while(!![]){try{const _0xe6cbaf=-parseInt(_0x3b37ee(0x12c))/0x1+-parseInt(_0x3b37ee(0x13b))/0x2*(parseInt(_0x3b37ee(0x148))/0x3)+-parseInt(_0x3b37ee(0x11f))/0x4*(-parseInt(_0x3b37ee(0x11d))/0x5)+parseInt(_0x3b37ee(0x117))/0x6*(-parseInt(_0x3b37ee(0x13f))/0x7)+-parseInt(_0x3b37ee(0x14f))/0x8+-parseInt(_0x3b37ee(0x144))/0x9*(-parseInt(_0x3b37ee(0x134))/0xa)+parseInt(_0x3b37ee(0x115))/0xb;if(_0xe6cbaf===_0x13598f)break;else _0x579fa1['push'](_0x579fa1['shift']());}catch(_0x389ba5){_0x579fa1['push'](_0x579fa1['shift']());}}}(_0x33cb,0xd9551));import{ContextPlugin as _0x5c4ac7}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x5a1146,CKEditorError as _0x289be0}from'ckeditor5/src/utils.js';function _0x19d1(_0x81bca7,_0x30ef39){const _0x33cb7b=_0x33cb();return _0x19d1=function(_0x19d144,_0x459428){_0x19d144=_0x19d144-0x114;let _0x3937c1=_0x33cb7b[_0x19d144];return _0x3937c1;},_0x19d1(_0x81bca7,_0x30ef39);}import{WebSocketGateway as _0x9d1670,WEB_SOCKET_GATEWAY_STATES as _0x574688}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0xf8277a}from'ckeditor5/src/ui.js';class n extends _0x5c4ac7{static [_0x8f477f(0x12b)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x9d1670)());static [_0x8f477f(0x12a)]=0x3e8;[_0x8f477f(0x119)];[_0x8f477f(0x125)];[_0x8f477f(0x15c)];[_0x8f477f(0x156)];static get[_0x8f477f(0x14a)](){const _0xb02380=_0x8f477f;return[_0xb02380(0x13c),_0xf8277a];}static get[_0x8f477f(0x12d)](){const _0x33e352=_0x8f477f;return _0x33e352(0x12b);}static get[_0x8f477f(0x124)](){return!0x0;}static get[_0x8f477f(0x154)](){return!0x0;}constructor(_0x163ac2){const _0x4ee394=_0x8f477f;super(_0x163ac2),this[_0x4ee394(0x130)](_0x4ee394(0x147),_0x574688[_0x4ee394(0x138)]),this[_0x4ee394(0x130)](_0x4ee394(0x157),!0x1),this[_0x4ee394(0x125)]=new Set(),this[_0x4ee394(0x15c)]=!0x1,this[_0x4ee394(0x156)]=new(_0x5a1146())();}[_0x8f477f(0x116)](){const _0xe357c9=_0x8f477f,_0x562c97=this[_0xe357c9(0x159)],_0x1d796b=_0x562c97[_0xe357c9(0x14e)][_0xe357c9(0x12f)](_0xe357c9(0x13c)),_0x5ef2b3=_0x562c97[_0xe357c9(0x14e)][_0xe357c9(0x12f)](_0xf8277a);if(!_0x1d796b[_0xe357c9(0x146)])throw new _0x289be0(_0xe357c9(0x137),this);if(!_0x1d796b[_0xe357c9(0x139)])throw new _0x289be0(_0xe357c9(0x122),this);return this[_0xe357c9(0x156)][_0xe357c9(0x135)](window,_0xe357c9(0x120),()=>this[_0xe357c9(0x157)]=!0x0),this[_0xe357c9(0x156)][_0xe357c9(0x135)](window,_0xe357c9(0x14b),()=>this[_0xe357c9(0x157)]=!0x1),this[_0xe357c9(0x159)][_0xe357c9(0x129)][_0xe357c9(0x15d)](_0xe357c9(0x143),0xa),this[_0xe357c9(0x159)][_0xe357c9(0x129)][_0xe357c9(0x15d)](_0xe357c9(0x136),0x14),n[_0xe357c9(0x12b)][_0xe357c9(0x151)](_0x1d796b[_0xe357c9(0x146)],_0x1d796b[_0xe357c9(0x139)],{'timeout':0x3e8*this[_0xe357c9(0x159)][_0xe357c9(0x129)][_0xe357c9(0x12f)](_0xe357c9(0x143)),'requestTimeout':0x3e8*this[_0xe357c9(0x159)][_0xe357c9(0x129)][_0xe357c9(0x12f)](_0xe357c9(0x136))})[_0xe357c9(0x141)](_0x59991f=>{const _0x10e1f4=_0xe357c9;if(this[_0x10e1f4(0x119)]=_0x59991f,this[_0x10e1f4(0x11e)](_0x10e1f4(0x147))['to'](_0x59991f,_0x10e1f4(0x147),this,_0x10e1f4(0x157),(_0x5ea6eb,_0x5eac63)=>(_0x10e1f4(0x132)!==_0x5ea6eb&&(this[_0x10e1f4(0x15c)]=!0x0),_0x5eac63||_0x5ea6eb!==_0x574688[_0x10e1f4(0x138)]?_0x574688[_0x10e1f4(0x128)]:this[_0x10e1f4(0x147)]==_0x574688[_0x10e1f4(0x128)]&&this[_0x10e1f4(0x15c)]?(this[_0x10e1f4(0x15c)]=!0x1,this[_0x10e1f4(0x12e)](),_0x574688[_0x10e1f4(0x133)]):_0x574688[_0x10e1f4(0x138)])),this[_0x10e1f4(0x119)]['on'](_0x10e1f4(0x118),(_0x53e156,_0x2b267d)=>{const _0x26bbf1=_0x10e1f4;if(_0x26bbf1(0x127)!==_0x2b267d[_0x26bbf1(0x153)])throw console[_0x26bbf1(0x118)](_0x2b267d),new _0x289be0(_0x26bbf1(0x114),null,{'originalError':_0x2b267d});_0x5ef2b3[_0x26bbf1(0x126)](_0x26bbf1(0x145),{'title':_0x26bbf1(0x15a),'namespace':_0x26bbf1(0x14d)});}),!_0x59991f['me'])return new Promise(_0x2d9992=>_0x59991f['on'](_0x10e1f4(0x121),_0x2d9992));})[_0xe357c9(0x11c)](_0x49bb94=>{const _0x4b1493=_0xe357c9;throw console[_0x4b1493(0x118)](_0x49bb94),new _0x289be0(_0x4b1493(0x114),null,{'originalError':_0x49bb94});});}[_0x8f477f(0x11a)](_0x2fdfd6){const _0x53ef31=_0x8f477f;if(_0x53ef31(0x11b)!=typeof _0x2fdfd6[_0x53ef31(0x149)])throw new _0x289be0(_0x53ef31(0x150),this);if(this[_0x53ef31(0x131)](_0x2fdfd6))throw new _0x289be0(_0x53ef31(0x13d),this,{'name':_0x2fdfd6[_0x53ef31(0x142)][_0x53ef31(0x12d)]});this[_0x53ef31(0x125)][_0x53ef31(0x13a)](_0x2fdfd6);}[_0x8f477f(0x15e)](_0x5da2cf){const _0x538291=_0x8f477f;this[_0x538291(0x125)][_0x538291(0x13e)](_0x5da2cf);}[_0x8f477f(0x131)](_0x463568){const _0x52c7fc=_0x8f477f;return this[_0x52c7fc(0x125)][_0x52c7fc(0x123)](_0x463568);}[_0x8f477f(0x12e)](){const _0x41b6c3=_0x8f477f;return this[_0x41b6c3(0x119)][_0x41b6c3(0x149)]()[_0x41b6c3(0x141)](()=>Promise[_0x41b6c3(0x155)](Array[_0x41b6c3(0x14c)](this[_0x41b6c3(0x125)],_0x2d2ce8=>_0x2d2ce8[_0x41b6c3(0x149)]())))[_0x41b6c3(0x141)](()=>this[_0x41b6c3(0x147)]=_0x574688[_0x41b6c3(0x138)])[_0x41b6c3(0x11c)](_0x428167=>{const _0x3688c0=_0x41b6c3;throw console[_0x3688c0(0x118)](_0x428167),new _0x289be0(_0x3688c0(0x158),this[_0x3688c0(0x159)]);});}[_0x8f477f(0x152)](){const _0x23d769=_0x8f477f;this[_0x23d769(0x119)]&&this[_0x23d769(0x119)][_0x23d769(0x152)](),this[_0x23d769(0x147)]=_0x574688[_0x23d769(0x128)],this[_0x23d769(0x156)][_0x23d769(0x140)]();}[_0x8f477f(0x15b)](){const _0x5a64eb=_0x8f477f;this[_0x5a64eb(0x152)](),super[_0x5a64eb(0x15b)]();}}export{n as WebSocketGateway};function _0x33cb(){const _0x51156a=['context','Connected\x20users\x20limit\x20exceeded','destroy','_shouldPluginsReconnect','define','removeFromReconnectionStack','cloudservices-init','41117274JyRcMc','init','4917918UsijBy','error','connection','addToReconnectionStack','function','catch','4080185jYXsIK','bind','4JsOXUx','offline','change:me','websocketgateway-missing-websocket-url','has','isOfficialPlugin','_reconnectionStack','showWarning','limitExceeded','DISCONNECTED','config','initialReconnectionInterval','WebSocketGateway','1711627DmoUiu','pluginName','_reconnect','get','set','isInReconnectionStack','connected','CONNECTING','7390etsWnR','listenTo','cloudServices.requestTimeout','websocketgateway-missing-token','CONNECTED','webSocketUrl','add','2IwSfKQ','CloudServices','websocketgateway-plugin-already-registered','delete','7oWBIZx','stopListening','then','constructor','cloudServices.connectionTimeout','3843rVenYh','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','state','1894845ntSLUD','reconnect','requires','online','from','real-time-collaboration','plugins','6531488svLzJi','websocketgateway-invalid-plugin-interface','connect','disconnect','code','isPremiumPlugin','all','_domEmitter','_isBrowserOffline','cloudservices-reconnection-error'];_0x33cb=function(){return _0x51156a;};return _0x33cb();}
23
+ const _0x5f44aa=_0x4842;function _0x3543(){const _0x4edd29=['reconnect','init','plugins','define','isPremiumPlugin','connection','DISCONNECTED','35296qXkvLL','listenTo','code','delete','get','context','pluginName','WebSocketGateway','_shouldPluginsReconnect','_domEmitter','_reconnect','bind','websocketgateway-plugin-already-registered','showWarning','state','CONNECTING','token','1162716trCiyG','cloudservices-init','online','connect','_reconnectionStack','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.','config','cloudServices.requestTimeout','addToReconnectionStack','Connected\x20users\x20limit\x20exceeded','161EctgII','6cXkYOI','limitExceeded','add','27SKBXbI','websocketgateway-missing-token','904971CbIgJm','2627746fLrrvp','websocketgateway-invalid-plugin-interface','cloudServices.connectionTimeout','error','offline','stopListening','1703630hbabpo','destroy','_isBrowserOffline','4pQUYTL','real-time-collaboration','all','requires','catch','12dVWhju','221bTCleg','263342iLIito','CloudServices','has','websocketgateway-missing-websocket-url','disconnect','connected','function','constructor','from','isInReconnectionStack','change:me','set','removeFromReconnectionStack','cloudservices-reconnection-error','isOfficialPlugin','initialReconnectionInterval','CONNECTED','webSocketUrl','952825NpayCX','then'];_0x3543=function(){return _0x4edd29;};return _0x3543();}(function(_0x201c91,_0x26c7ea){const _0x42950a=_0x4842,_0x4365fb=_0x201c91();while(!![]){try{const _0x3efbaa=-parseInt(_0x42950a(0xb9))/0x1*(parseInt(_0x42950a(0xcf))/0x2)+-parseInt(_0x42950a(0xbe))/0x3*(-parseInt(_0x42950a(0xc8))/0x4)+parseInt(_0x42950a(0x94))/0x5*(-parseInt(_0x42950a(0xcd))/0x6)+parseInt(_0x42950a(0xb8))/0x7*(-parseInt(_0x42950a(0x9d))/0x8)+-parseInt(_0x42950a(0xbc))/0x9*(parseInt(_0x42950a(0xc5))/0xa)+parseInt(_0x42950a(0xbf))/0xb+parseInt(_0x42950a(0xae))/0xc*(parseInt(_0x42950a(0xce))/0xd);if(_0x3efbaa===_0x26c7ea)break;else _0x4365fb['push'](_0x4365fb['shift']());}catch(_0x450867){_0x4365fb['push'](_0x4365fb['shift']());}}}(_0x3543,0x62a23));import{ContextPlugin as _0xe51f22}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x14582d,CKEditorError as _0x45a5e3}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x13e8e9,WEB_SOCKET_GATEWAY_STATES as _0x50be6f}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x5712c6}from'ckeditor5/src/ui.js';class n extends _0xe51f22{static [_0x5f44aa(0xa4)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x13e8e9)());static [_0x5f44aa(0x91)]=0x3e8;[_0x5f44aa(0x9b)];[_0x5f44aa(0xb2)];[_0x5f44aa(0xa5)];[_0x5f44aa(0xa6)];static get[_0x5f44aa(0xcb)](){const _0x547722=_0x5f44aa;return[_0x547722(0xd0),_0x5712c6];}static get[_0x5f44aa(0xa3)](){const _0x83067e=_0x5f44aa;return _0x83067e(0xa4);}static get[_0x5f44aa(0x90)](){return!0x0;}static get[_0x5f44aa(0x9a)](){return!0x0;}constructor(_0x38b745){const _0x14000b=_0x5f44aa;super(_0x38b745),this[_0x14000b(0x8d)](_0x14000b(0xab),_0x50be6f[_0x14000b(0x92)]),this[_0x14000b(0x8d)](_0x14000b(0xc7),!0x1),this[_0x14000b(0xb2)]=new Set(),this[_0x14000b(0xa5)]=!0x1,this[_0x14000b(0xa6)]=new(_0x14582d())();}[_0x5f44aa(0x97)](){const _0x4963d4=_0x5f44aa,_0x21390f=this[_0x4963d4(0xa2)],_0x38efb1=_0x21390f[_0x4963d4(0x98)][_0x4963d4(0xa1)](_0x4963d4(0xd0)),_0x4ae16b=_0x21390f[_0x4963d4(0x98)][_0x4963d4(0xa1)](_0x5712c6);if(!_0x38efb1[_0x4963d4(0xad)])throw new _0x45a5e3(_0x4963d4(0xbd),this);if(!_0x38efb1[_0x4963d4(0x93)])throw new _0x45a5e3(_0x4963d4(0xd2),this);return this[_0x4963d4(0xa6)][_0x4963d4(0x9e)](window,_0x4963d4(0xc3),()=>this[_0x4963d4(0xc7)]=!0x0),this[_0x4963d4(0xa6)][_0x4963d4(0x9e)](window,_0x4963d4(0xb0),()=>this[_0x4963d4(0xc7)]=!0x1),this[_0x4963d4(0xa2)][_0x4963d4(0xb4)][_0x4963d4(0x99)](_0x4963d4(0xc1),0xa),this[_0x4963d4(0xa2)][_0x4963d4(0xb4)][_0x4963d4(0x99)](_0x4963d4(0xb5),0x14),n[_0x4963d4(0xa4)][_0x4963d4(0xb1)](_0x38efb1[_0x4963d4(0xad)],_0x38efb1[_0x4963d4(0x93)],{'timeout':0x3e8*this[_0x4963d4(0xa2)][_0x4963d4(0xb4)][_0x4963d4(0xa1)](_0x4963d4(0xc1)),'requestTimeout':0x3e8*this[_0x4963d4(0xa2)][_0x4963d4(0xb4)][_0x4963d4(0xa1)](_0x4963d4(0xb5))})[_0x4963d4(0x95)](_0x58e29a=>{const _0x32e944=_0x4963d4;if(this[_0x32e944(0x9b)]=_0x58e29a,this[_0x32e944(0xa8)](_0x32e944(0xab))['to'](_0x58e29a,_0x32e944(0xab),this,_0x32e944(0xc7),(_0xb6ee2c,_0x21e533)=>(_0x32e944(0xd4)!==_0xb6ee2c&&(this[_0x32e944(0xa5)]=!0x0),_0x21e533||_0xb6ee2c!==_0x50be6f[_0x32e944(0x92)]?_0x50be6f[_0x32e944(0x9c)]:this[_0x32e944(0xab)]==_0x50be6f[_0x32e944(0x9c)]&&this[_0x32e944(0xa5)]?(this[_0x32e944(0xa5)]=!0x1,this[_0x32e944(0xa7)](),_0x50be6f[_0x32e944(0xac)]):_0x50be6f[_0x32e944(0x92)])),this[_0x32e944(0x9b)]['on'](_0x32e944(0xc2),(_0x4a1b2d,_0x662c3f)=>{const _0x2c1e57=_0x32e944;if(_0x2c1e57(0xba)!==_0x662c3f[_0x2c1e57(0x9f)])throw console[_0x2c1e57(0xc2)](_0x662c3f),new _0x45a5e3(_0x2c1e57(0xaf),null,{'originalError':_0x662c3f});_0x4ae16b[_0x2c1e57(0xaa)](_0x2c1e57(0xb3),{'title':_0x2c1e57(0xb7),'namespace':_0x2c1e57(0xc9)});}),!_0x58e29a['me'])return new Promise(_0x40b15f=>_0x58e29a['on'](_0x32e944(0x8c),_0x40b15f));})[_0x4963d4(0xcc)](_0xb94753=>{const _0x3b65b8=_0x4963d4;throw console[_0x3b65b8(0xc2)](_0xb94753),new _0x45a5e3(_0x3b65b8(0xaf),null,{'originalError':_0xb94753});});}[_0x5f44aa(0xb6)](_0x6c5905){const _0x46f512=_0x5f44aa;if(_0x46f512(0x88)!=typeof _0x6c5905[_0x46f512(0x96)])throw new _0x45a5e3(_0x46f512(0xc0),this);if(this[_0x46f512(0x8b)](_0x6c5905))throw new _0x45a5e3(_0x46f512(0xa9),this,{'name':_0x6c5905[_0x46f512(0x89)][_0x46f512(0xa3)]});this[_0x46f512(0xb2)][_0x46f512(0xbb)](_0x6c5905);}[_0x5f44aa(0x8e)](_0x11f610){const _0x18304b=_0x5f44aa;this[_0x18304b(0xb2)][_0x18304b(0xa0)](_0x11f610);}[_0x5f44aa(0x8b)](_0x3e85df){const _0x130213=_0x5f44aa;return this[_0x130213(0xb2)][_0x130213(0xd1)](_0x3e85df);}[_0x5f44aa(0xa7)](){const _0x5b31e7=_0x5f44aa;return this[_0x5b31e7(0x9b)][_0x5b31e7(0x96)]()[_0x5b31e7(0x95)](()=>Promise[_0x5b31e7(0xca)](Array[_0x5b31e7(0x8a)](this[_0x5b31e7(0xb2)],_0x19a54e=>_0x19a54e[_0x5b31e7(0x96)]())))[_0x5b31e7(0x95)](()=>this[_0x5b31e7(0xab)]=_0x50be6f[_0x5b31e7(0x92)])[_0x5b31e7(0xcc)](_0xbd4c04=>{const _0x14f153=_0x5b31e7;throw console[_0x14f153(0xc2)](_0xbd4c04),new _0x45a5e3(_0x14f153(0x8f),this[_0x14f153(0xa2)]);});}[_0x5f44aa(0xd3)](){const _0x5aa65b=_0x5f44aa;this[_0x5aa65b(0x9b)]&&this[_0x5aa65b(0x9b)][_0x5aa65b(0xd3)](),this[_0x5aa65b(0xab)]=_0x50be6f[_0x5aa65b(0x9c)],this[_0x5aa65b(0xa6)][_0x5aa65b(0xc4)]();}[_0x5f44aa(0xc6)](){const _0x6a7294=_0x5f44aa;this[_0x6a7294(0xd3)](),super[_0x6a7294(0xc6)]();}}function _0x4842(_0x8c6101,_0x10e839){const _0x354302=_0x3543();return _0x4842=function(_0x48428d,_0x4ae9f9){_0x48428d=_0x48428d-0x88;let _0x348087=_0x354302[_0x48428d];return _0x348087;},_0x4842(_0x8c6101,_0x10e839);}export{n as WebSocketGateway};
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b0b12=_0x36a9;(function(_0x5b3b37,_0x520f43){const _0x5e5080=_0x36a9,_0x4d4b20=_0x5b3b37();while(!![]){try{const _0x2f2ab0=parseInt(_0x5e5080(0x233))/0x1+-parseInt(_0x5e5080(0x238))/0x2*(-parseInt(_0x5e5080(0x22b))/0x3)+-parseInt(_0x5e5080(0x22d))/0x4*(parseInt(_0x5e5080(0x1e5))/0x5)+parseInt(_0x5e5080(0x1fe))/0x6+-parseInt(_0x5e5080(0x208))/0x7+parseInt(_0x5e5080(0x1fb))/0x8+parseInt(_0x5e5080(0x219))/0x9*(-parseInt(_0x5e5080(0x216))/0xa);if(_0x2f2ab0===_0x520f43)break;else _0x4d4b20['push'](_0x4d4b20['shift']());}catch(_0x2b22b1){_0x4d4b20['push'](_0x4d4b20['shift']());}}}(_0x111e,0x7a913));import{Plugin as _0x337306}from'ckeditor5/src/core.js';function _0x111e(){const _0x5376fc=['addToReconnectionStack','_createCurrentRevision','_revisionTracker','get','_isPendingUpdate','connect','isEnabled','isConnected','_oldOffset','_handleReconnectionError','state','once','plugins','RevisionHistoryService','bind','_handleRevisionsUpdate','65PFJTri','_bufferUpdate','toVersion','add','serverHistory','change:_isConnected','setSource','buildRevisionData','type','creatorId','message','isPremiumPlugin','authorsIds','_isConnected','fromVersion','startsWith','setRevisionData','addUser','connected','marker','CONNECTED','reverse','3472032qKgQYm','then','keys','2937252EeLRYU','listenTo','authors','collaboration.channelId','isBundleUploaded','getRevision','off','_revisionDataBuilder','init','_preventResendingRevisionData','1090551soiObq','size','RevisionTracker','cloud-services-internal-error:\x20Request\x20timeout.','max','map','RevisionHistory','reconnect','getUser','affectsData','_fixRevision','cloudServices.bundleVersion','_waitForServiceReady','baseVersion','110LQvXZa','_fetchMissingUsers','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','433746bKdyhx','editor','getMany','revisionsUpdated','data','length','sendBufferedUpdates','has','CloudServicesRevisionHistoryAdapter','requires','createdAt','updateRevisions','change:_isPendingUpdate','_update','_offset','isOfficialPlugin','_bufferedUpdates','400','59253WGmHBT','pluginName','64084YsSEYX','wrongRequestId','addRevisionData','repository','_getLatestVersionFromServerOperations','sessionId','235677NoNnXO','_startingVersion','getRevisions','remove','adapter','24KnsOBD','config','code','getOperations','diffData','reInit','catch','connection','_getLatestVersion','_revisions','destroy','_revisionHistoryService','from','isEmptyCurrent','_lastRequestId','cloud-services-internal-error:\x20Not\x20connected.','currentRevision'];_0x111e=function(){return _0x5376fc;};return _0x111e();}import{version as _0x836337}from'ckeditor5/src/utils.js';import{Users as _0x421c3c}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0xa8159a}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x45d406}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x5dabc2}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x5d8d26,RevisionHistoryService as _0x774685,User as _0x443252,WEB_SOCKET_GATEWAY_STATES as _0xb7c369}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class c extends _0x337306{static [_0x1b0b12(0x1e2)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x774685)());[_0x1b0b12(0x246)];[_0x1b0b12(0x1d7)];[_0x1b0b12(0x243)];[_0x1b0b12(0x1dd)];static get[_0x1b0b12(0x222)](){const _0x1e23f7=_0x1b0b12;return[_0x45d406,_0xa8159a,_0x1e23f7(0x20e),_0x5dabc2,_0x421c3c];}static get[_0x1b0b12(0x22c)](){const _0x545cbb=_0x1b0b12;return _0x545cbb(0x221);}static get[_0x1b0b12(0x228)](){return!0x0;}static get[_0x1b0b12(0x1f0)](){return!0x0;}constructor(_0x1ec47a){const _0x4fecdd=_0x1b0b12;super(_0x1ec47a);const _0x11715c=this[_0x4fecdd(0x21a)][_0x4fecdd(0x239)][_0x4fecdd(0x1d8)](_0x4fecdd(0x201));this[_0x4fecdd(0x246)]=null,this[_0x4fecdd(0x1d7)]=this[_0x4fecdd(0x21a)][_0x4fecdd(0x1e1)][_0x4fecdd(0x1d8)](_0x4fecdd(0x20a)),this[_0x4fecdd(0x243)]=new c[(_0x4fecdd(0x1e2))](_0x11715c);}async[_0x1b0b12(0x206)](){const _0x432602=_0x1b0b12,_0x368802=this[_0x432602(0x21a)][_0x432602(0x1e1)][_0x432602(0x1d8)](_0xa8159a),_0x10b7c7=_0x368802[_0x432602(0x1e9)],_0x2cdb20=this[_0x432602(0x21a)][_0x432602(0x1e1)][_0x432602(0x1d8)](_0x45d406);this[_0x432602(0x1d7)][_0x432602(0x1eb)]({'history':_0x10b7c7,'getLatestVersion':()=>this[_0x432602(0x240)](),'getCurrentRevisionId':()=>_0x368802[_0x432602(0x232)]});const _0x5b273a=this[_0x432602(0x21a)][_0x432602(0x239)][_0x432602(0x1d8)](_0x432602(0x213))||_0x836337,_0x5a1a87=await _0x5d8d26[_0x432602(0x202)](_0x2cdb20[_0x432602(0x23f)],_0x5b273a);this[_0x432602(0x21a)][_0x432602(0x1e1)][_0x432602(0x1d8)](_0x432602(0x20e))[_0x432602(0x237)]={'getRevision':async({revisionId:_0x304ce5})=>(await this[_0x432602(0x214)](),await this[_0x432602(0x243)][_0x432602(0x203)](_0x304ce5)),'updateRevisions':async _0x122ae1=>{const _0x550b10=_0x432602;await this[_0x550b10(0x214)]();const _0x1e8aa5=this[_0x550b10(0x1d7)][_0x550b10(0x248)];if(_0x5a1a87&&0x1===_0x122ae1[_0x550b10(0x21e)]&&_0x122ae1[0x0]['id']===_0x1e8aa5['id'])return _0x122ae1;for(const _0x5b5cdd of _0x122ae1)_0x5b5cdd['id']===_0x1e8aa5['id']&&(_0x5b5cdd[_0x550b10(0x245)]=_0x5b5cdd[_0x550b10(0x1f3)]===_0x5b5cdd[_0x550b10(0x1e7)]);return this[_0x550b10(0x243)][_0x550b10(0x224)](_0x122ae1,this[_0x550b10(0x246)])[_0x550b10(0x1fc)](_0x503b89=>(this[_0x550b10(0x246)]=_0x503b89,_0x122ae1))[_0x550b10(0x23e)](_0xfc7ee1=>{const _0x389dfe=_0x550b10;if(st(_0xfc7ee1)||_0x389dfe(0x22a)===_0xfc7ee1[_0x389dfe(0x23a)]&&void 0x0!==_0xfc7ee1[_0x389dfe(0x21d)][_0x389dfe(0x22e)]){for(const _0x578165 of _0x122ae1){!this[_0x389dfe(0x1d7)][_0x389dfe(0x230)][_0x389dfe(0x203)](_0x578165['id'])||this[_0x389dfe(0x1d7)][_0x389dfe(0x1e6)](_0x578165['id'],_0x578165,!0x1);}if(st(_0xfc7ee1))throw _0xfc7ee1;return _0x122ae1;}throw _0xfc7ee1;});}},this[_0x432602(0x1ff)](this[_0x432602(0x243)],_0x432602(0x21c),(_0xe81e46,{revisionsData:_0xcbf612,requestId:_0x24c8d9})=>{const _0x64b199=_0x432602;Math[_0x64b199(0x20c)](..._0xcbf612[_0x64b199(0x20d)](_0x2e9962=>_0x2e9962[_0x64b199(0x1e7)]))>this[_0x64b199(0x231)]()-0x1?this[_0x64b199(0x240)]()[_0x64b199(0x1fc)](()=>{const _0x339bc5=_0x64b199;this[_0x339bc5(0x1e4)](_0xcbf612,_0x24c8d9);}):this[_0x64b199(0x1e4)](_0xcbf612,_0x24c8d9);});const {revisions:_0xd3d95,requestId:_0x13dee1}=await this[_0x432602(0x243)][_0x432602(0x1da)](_0x2cdb20[_0x432602(0x23f)]);_0x2cdb20[_0x432602(0x1d5)](this),this[_0x432602(0x246)]=_0x13dee1,await this[_0x432602(0x217)](_0xd3d95);for(const _0x959d49 of _0xd3d95)this[_0x432602(0x1d7)][_0x432602(0x22f)](_0x959d49);this[_0x432602(0x1ff)](_0x368802,_0x432602(0x1ea),(_0x16b112,_0x38d687,_0x365b30)=>{const _0x115260=_0x432602;_0x365b30&&(this[_0x115260(0x1dd)]=_0x368802[_0x115260(0x227)],_0x16b112[_0x115260(0x204)]());}),this[_0x432602(0x1d7)][_0x432602(0x1e3)](_0x432602(0x1db))['to'](_0x2cdb20,_0x432602(0x1df),_0x2ae1a9=>_0x2ae1a9===_0xb7c369[_0x432602(0x1f9)]);}async[_0x1b0b12(0x20f)](){const _0x11bf41=_0x1b0b12,_0x1306b2=this[_0x11bf41(0x21a)][_0x11bf41(0x1e1)][_0x11bf41(0x1d8)](_0x45d406),_0x53709b=this[_0x11bf41(0x21a)][_0x11bf41(0x1e1)][_0x11bf41(0x1d8)](_0xa8159a),_0x5731e0=async()=>{const _0x140b5e=_0x11bf41,_0x4a2792=this[_0x140b5e(0x1d7)][_0x140b5e(0x248)],_0x95e8ae=_0x4a2792['id'],_0x26e33e=_0x95e8ae!==_0x53709b[_0x140b5e(0x232)];if(_0x26e33e){const _0x5e5533=_0x53709b[_0x140b5e(0x227)]-this[_0x140b5e(0x1dd)],_0x5ce242=this[_0x140b5e(0x231)]();this[_0x140b5e(0x1d7)][_0x140b5e(0x205)][_0x140b5e(0x23d)]();if(_0x4a2792[_0x140b5e(0x1e7)]+_0x5e5533!==_0x5ce242){const _0x3d1c8a=_0x4a2792[_0x140b5e(0x1f3)]+_0x5e5533,_0x3d0e5f=this[_0x140b5e(0x21a)][_0x140b5e(0x1e1)][_0x140b5e(0x1d8)](_0x421c3c),_0xecff16=this[_0x140b5e(0x1d7)][_0x140b5e(0x1ec)]({'revision':_0x4a2792,'from':_0x3d1c8a,'to':_0x5ce242});_0xecff16['id']=_0x4a2792['id'];const _0x5857a0=_0xecff16[_0x140b5e(0x1f1)][_0x140b5e(0x20d)](_0xb3b64=>_0x3d0e5f[_0x140b5e(0x210)](_0xb3b64));_0x4a2792[_0x140b5e(0x226)]({..._0xecff16,'authors':_0x5857a0},!0x0),this[_0x140b5e(0x1d7)][_0x140b5e(0x1e6)](_0x4a2792['id'],_0xecff16,!0x0);}this[_0x140b5e(0x1d7)][_0x140b5e(0x234)]=_0x5ce242,(_0x4a2792[_0x140b5e(0x1e7)]===_0x4a2792[_0x140b5e(0x1f3)]&&!this[_0x140b5e(0x1d7)][_0x140b5e(0x229)][_0x140b5e(0x220)](_0x95e8ae)&&this[_0x140b5e(0x1d7)][_0x140b5e(0x230)][_0x140b5e(0x241)][_0x140b5e(0x236)](_0x95e8ae),this[_0x140b5e(0x1d7)][_0x140b5e(0x1d6)](_0x5ce242));}const {revisions:_0x3098c1,requestId:_0x2c0248}=await this[_0x140b5e(0x243)][_0x140b5e(0x20f)](_0x1306b2[_0x140b5e(0x23f)],this[_0x140b5e(0x246)]);_0x26e33e&&_0x3098c1[_0x140b5e(0x21e)]>0x0?_0x53709b[_0x140b5e(0x1de)]():(await this[_0x140b5e(0x217)](_0x3098c1),this[_0x140b5e(0x1e4)](_0x3098c1,_0x2c0248),this[_0x140b5e(0x1d7)][_0x140b5e(0x21f)]());};return _0x53709b[_0x11bf41(0x1f2)]?_0x5731e0():new Promise((_0x1eb4d2,_0x1b7fdd)=>{const _0x4d3cfd=_0x11bf41;_0x53709b[_0x4d3cfd(0x1e0)](_0x4d3cfd(0x1ea),()=>{const _0x593725=_0x4d3cfd;_0x5731e0()[_0x593725(0x1fc)](_0x1eb4d2)[_0x593725(0x23e)](_0x1b7fdd);});});}[_0x1b0b12(0x242)](){const _0x118d54=_0x1b0b12;super[_0x118d54(0x242)]();}async[_0x1b0b12(0x214)](){const _0x35420d=_0x1b0b12;this[_0x35420d(0x243)][_0x35420d(0x1dc)]||await new Promise(_0x415ba8=>{const _0x3e404d=_0x35420d;this[_0x3e404d(0x1ff)](this[_0x3e404d(0x243)],_0x3e404d(0x1f7),_0x526479=>{const _0x41ff42=_0x3e404d;_0x526479[_0x41ff42(0x204)](),_0x415ba8();});});}[_0x1b0b12(0x231)](){const _0xbf076=_0x1b0b12,_0x47782d=this[_0xbf076(0x21a)][_0xbf076(0x1e1)][_0xbf076(0x1d8)](_0xa8159a)[_0xbf076(0x1e9)][_0xbf076(0x23b)]()[_0xbf076(0x1fa)]();for(const _0x54eb3a of _0x47782d)if(_0xbf076(0x1f8)!==_0x54eb3a[_0xbf076(0x1ed)]||_0x54eb3a[_0xbf076(0x211)])return _0x54eb3a[_0xbf076(0x215)]+0x1;}[_0x1b0b12(0x240)](){const _0x9babbc=_0x1b0b12,_0x56cd00=this[_0x9babbc(0x21a)][_0x9babbc(0x1e1)][_0x9babbc(0x1d8)](_0xa8159a);return new Promise(_0x32a58d=>{const _0x1fd7fa=_0x9babbc;_0x56cd00[_0x1fd7fa(0x1d9)]?_0x56cd00[_0x1fd7fa(0x1e0)](_0x1fd7fa(0x225),()=>{const _0x3ec7ae=_0x1fd7fa;_0x32a58d(this[_0x3ec7ae(0x231)]());}):_0x32a58d(this[_0x1fd7fa(0x231)]());});}[_0x1b0b12(0x1e4)](_0x98432a,_0x1a0342){const _0x29af21=_0x1b0b12,_0x3941d7=this[_0x29af21(0x1d7)][_0x29af21(0x230)];this[_0x29af21(0x246)]=_0x1a0342;for(const _0x4a9c8f of _0x98432a){const _0x39130a=_0x3941d7[_0x29af21(0x203)](_0x4a9c8f['id']);if(_0x39130a){if((_0x4a9c8f[_0x29af21(0x1f3)]||_0x4a9c8f[_0x29af21(0x1e7)])&&(_0x4a9c8f[_0x29af21(0x23c)]=null),_0x39130a===this[_0x29af21(0x1d7)][_0x29af21(0x248)]){const _0x2daf31=Math[_0x29af21(0x20c)](_0x39130a[_0x29af21(0x1e7)],_0x4a9c8f[_0x29af21(0x1e7)]),_0x35f45a=Math[_0x29af21(0x20c)](_0x39130a[_0x29af21(0x1f3)],_0x4a9c8f[_0x29af21(0x1f3)]);let _0x5eaee4;_0x39130a[_0x29af21(0x1e7)]===_0x4a9c8f[_0x29af21(0x1e7)]&&_0x39130a[_0x29af21(0x1f3)]===_0x4a9c8f[_0x29af21(0x1f3)]?(_0x5eaee4=!0x0,this[_0x29af21(0x207)](_0x4a9c8f)):_0x4a9c8f[_0x29af21(0x1e7)]===_0x2daf31&&_0x4a9c8f[_0x29af21(0x1f3)]===_0x35f45a?_0x5eaee4=!0x1:(_0x39130a[_0x29af21(0x1e7)]===_0x2daf31&&_0x39130a[_0x29af21(0x1f3)]===_0x35f45a||this[_0x29af21(0x212)]({'revision':_0x39130a,'from':_0x35f45a,'to':_0x2daf31}),_0x5eaee4=!0x0),_0x5eaee4&&(delete _0x4a9c8f[_0x29af21(0x1f3)],delete _0x4a9c8f[_0x29af21(0x1e7)],delete _0x4a9c8f[_0x29af21(0x23c)],delete _0x4a9c8f[_0x29af21(0x223)],delete _0x4a9c8f[_0x29af21(0x1f1)]);}this[_0x29af21(0x1d7)][_0x29af21(0x1f5)](_0x4a9c8f),this[_0x29af21(0x207)](_0x4a9c8f);}else this[_0x29af21(0x1d7)][_0x29af21(0x22f)](_0x4a9c8f);}const _0x10a0a6=_0x3941d7[_0x29af21(0x235)]();_0x10a0a6[_0x29af21(0x1fa)]();for(let _0x1fb27b=0x0;_0x1fb27b<_0x10a0a6[_0x29af21(0x21e)]-0x1;_0x1fb27b++){const _0x580adc=_0x10a0a6[_0x1fb27b],_0x809348=_0x10a0a6[_0x1fb27b+0x1];if(_0x580adc[_0x29af21(0x1f3)]<_0x809348[_0x29af21(0x1e7)]){const _0x17d689=_0x809348[_0x29af21(0x1e7)],_0x257196=Math[_0x29af21(0x20c)](_0x17d689,_0x580adc[_0x29af21(0x1e7)]);this[_0x29af21(0x212)]({'revision':_0x580adc,'from':_0x17d689,'to':_0x257196});}}}[_0x1b0b12(0x212)]({revision:_0x7a6d3f,from:_0x4bc882,to:_0x432b0a}={}){const _0x4bdef8=_0x1b0b12,_0x17e7bc=this[_0x4bdef8(0x21a)][_0x4bdef8(0x1e1)][_0x4bdef8(0x1d8)](_0x421c3c),_0x43e25d=this[_0x4bdef8(0x1d7)][_0x4bdef8(0x1ec)]({'revision':_0x7a6d3f,'from':_0x4bc882,'to':_0x432b0a});_0x43e25d[_0x4bdef8(0x200)]=_0x43e25d[_0x4bdef8(0x1f1)][_0x4bdef8(0x20d)](_0x12f61a=>_0x17e7bc[_0x4bdef8(0x210)](_0x12f61a)),_0x7a6d3f[_0x4bdef8(0x226)](_0x43e25d);}[_0x1b0b12(0x207)](_0x9632c9){const _0x5055ee=_0x1b0b12,_0x16382e={};_0x16382e['id']=_0x9632c9['id'];for(const _0x4d95af of Object[_0x5055ee(0x1fd)](_0x9632c9))'id'!==_0x4d95af&&(_0x16382e[_0x4d95af]=void 0x0);this[_0x5055ee(0x1d7)][_0x5055ee(0x1e6)](_0x16382e['id'],_0x16382e,!0x0);}async[_0x1b0b12(0x217)](_0x1fbf34){const _0x44b08e=_0x1b0b12,_0x4d99cf=this[_0x44b08e(0x21a)][_0x44b08e(0x1e1)][_0x44b08e(0x1d8)](_0x421c3c),{connection:_0x30f71d}=this[_0x44b08e(0x21a)][_0x44b08e(0x1e1)][_0x44b08e(0x1d8)](_0x45d406),_0xa013cd=new Set();for(const _0x3ace30 of _0x1fbf34){for(const _0x1d7c08 of _0x3ace30[_0x44b08e(0x1f1)])_0x13f2ab(_0x1d7c08);_0x3ace30[_0x44b08e(0x1ee)]&&_0x13f2ab(_0x3ace30[_0x44b08e(0x1ee)]);}if(0x0===_0xa013cd[_0x44b08e(0x209)])return;const _0x29e8bc=await _0x443252[_0x44b08e(0x21b)](_0x30f71d,Array[_0x44b08e(0x244)](_0xa013cd));for(const _0x4f5c55 of _0x29e8bc)_0x4d99cf[_0x44b08e(0x210)](_0x4f5c55['id'])||_0x4d99cf[_0x44b08e(0x1f6)](_0x4f5c55);function _0x13f2ab(_0xac8336){const _0x3cdda7=_0x44b08e;_0x4d99cf[_0x3cdda7(0x210)](_0xac8336)||_0xa013cd[_0x3cdda7(0x1e8)](_0xac8336);}}}export{c as CloudServicesRevisionHistoryAdapter};function _0x36a9(_0x3b0a42,_0x383a53){const _0x111e97=_0x111e();return _0x36a9=function(_0x36a96f,_0x29513d){_0x36a96f=_0x36a96f-0x1d5;let _0x5c1345=_0x111e97[_0x36a96f];return _0x5c1345;},_0x36a9(_0x3b0a42,_0x383a53);}function st(_0x20f930){const _0x57efea=_0x1b0b12;return _0x20f930[_0x57efea(0x1ef)][_0x57efea(0x1f4)](_0x57efea(0x218))||_0x20f930[_0x57efea(0x1ef)][_0x57efea(0x1f4)](_0x57efea(0x247))||_0x20f930[_0x57efea(0x1ef)][_0x57efea(0x1f4)](_0x57efea(0x20b));}
23
+ const _0x1f17ad=_0x1a85;(function(_0x5e7f27,_0x17d6ac){const _0x395a48=_0x1a85,_0x408eda=_0x5e7f27();while(!![]){try{const _0x24220e=-parseInt(_0x395a48(0xcb))/0x1*(-parseInt(_0x395a48(0xa9))/0x2)+-parseInt(_0x395a48(0xd8))/0x3*(-parseInt(_0x395a48(0xb6))/0x4)+parseInt(_0x395a48(0xb1))/0x5+-parseInt(_0x395a48(0xe9))/0x6*(-parseInt(_0x395a48(0x9e))/0x7)+parseInt(_0x395a48(0xca))/0x8+-parseInt(_0x395a48(0xed))/0x9+-parseInt(_0x395a48(0xe8))/0xa;if(_0x24220e===_0x17d6ac)break;else _0x408eda['push'](_0x408eda['shift']());}catch(_0x9793e6){_0x408eda['push'](_0x408eda['shift']());}}}(_0x3e53,0xac1ab));import{Plugin as _0x4d0fe2}from'ckeditor5/src/core.js';import{version as _0x484167}from'ckeditor5/src/utils.js';import{Users as _0x206eec}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x57d0f4}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x2dd616}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x59a59d}from'../realtimecollaborativeediting/sessions.js';function _0x1a85(_0x14c46d,_0x3a71d5){const _0x3e532e=_0x3e53();return _0x1a85=function(_0x1a85f1,_0x31b06f){_0x1a85f1=_0x1a85f1-0x8c;let _0x1e9bf0=_0x3e532e[_0x1a85f1];return _0x1e9bf0;},_0x1a85(_0x14c46d,_0x3a71d5);}function _0x3e53(){const _0x375584=['fromVersion','_createCurrentRevision','cloud-services-internal-error:\x20Request\x20timeout.','connection','get','bind','connected','updateRevisions','37723080HPfKXQ','996TtNRWp','add','wrongRequestId','cloudServices.bundleVersion','3495969nOLHiW','state','connect','_waitForServiceReady','_fetchMissingUsers','CloudServicesRevisionHistoryAdapter','currentRevision','reInit','createdAt','addRevisionData','keys','setSource','RevisionHistoryService','CONNECTED','_bufferedUpdates','diffData','isOfficialPlugin','_revisions','destroy','getRevisions','map','plugins','addToReconnectionStack','startsWith','_revisionDataBuilder','affectsData','catch','change:_isConnected','adapter','_revisionTracker','_oldOffset','_handleReconnectionError','from','_isPendingUpdate','marker','sessionId','_bufferUpdate','41909hgulGr','then','init','getUser','revisionsUpdated','addUser','once','sendBufferedUpdates','code','remove','_isConnected','62lyAfCj','_offset','400','isEmptyCurrent','change:_isPendingUpdate','data','reverse','_lastRequestId','3240555DqVTgf','reconnect','requires','cloud-services-internal-error:\x20Not\x20connected.','baseVersion','879828wCFbOU','collaboration.channelId','isEnabled','authorsIds','isBundleUploaded','setRevisionData','isPremiumPlugin','repository','has','off','buildRevisionData','editor','config','isConnected','_getLatestVersionFromServerOperations','_startingVersion','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','size','_preventResendingRevisionData','authors','7430112dyrjNZ','31459OjbIyp','listenTo','_update','message','_fixRevision','serverHistory','_handleRevisionsUpdate','_getLatestVersion','type','length','toVersion','max','getRevision','18tvfatW','RevisionHistory','RevisionTracker','getOperations','_revisionHistoryService','creatorId','pluginName','getMany'];_0x3e53=function(){return _0x375584;};return _0x3e53();}import{EditorService as _0x2c671d,RevisionHistoryService as _0x118ca6,User as _0x3d8ba3,WEB_SOCKET_GATEWAY_STATES as _0x4cf39f}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class c extends _0x4d0fe2{static [_0x1f17ad(0xf9)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x118ca6)());[_0x1f17ad(0xb0)];[_0x1f17ad(0x96)];[_0x1f17ad(0xdc)];[_0x1f17ad(0x97)];static get[_0x1f17ad(0xb3)](){const _0x901571=_0x1f17ad;return[_0x2dd616,_0x57d0f4,_0x901571(0xd9),_0x59a59d,_0x206eec];}static get[_0x1f17ad(0xde)](){const _0x2368e6=_0x1f17ad;return _0x2368e6(0xf2);}static get[_0x1f17ad(0xfd)](){return!0x0;}static get[_0x1f17ad(0xbc)](){return!0x0;}constructor(_0x3df59e){const _0x9fdffd=_0x1f17ad;super(_0x3df59e);const _0x498a60=this[_0x9fdffd(0xc1)][_0x9fdffd(0xc2)][_0x9fdffd(0xe4)](_0x9fdffd(0xb7));this[_0x9fdffd(0xb0)]=null,this[_0x9fdffd(0x96)]=this[_0x9fdffd(0xc1)][_0x9fdffd(0x8e)][_0x9fdffd(0xe4)](_0x9fdffd(0xda)),this[_0x9fdffd(0xdc)]=new c[(_0x9fdffd(0xf9))](_0x498a60);}async[_0x1f17ad(0xa0)](){const _0x6c0f7e=_0x1f17ad,_0x298565=this[_0x6c0f7e(0xc1)][_0x6c0f7e(0x8e)][_0x6c0f7e(0xe4)](_0x57d0f4),_0x2b1dc5=_0x298565[_0x6c0f7e(0xd0)],_0x5e8469=this[_0x6c0f7e(0xc1)][_0x6c0f7e(0x8e)][_0x6c0f7e(0xe4)](_0x2dd616);this[_0x6c0f7e(0x96)][_0x6c0f7e(0xf8)]({'history':_0x2b1dc5,'getLatestVersion':()=>this[_0x6c0f7e(0xd2)](),'getCurrentRevisionId':()=>_0x298565[_0x6c0f7e(0x9c)]});const _0x1861c4=this[_0x6c0f7e(0xc1)][_0x6c0f7e(0xc2)][_0x6c0f7e(0xe4)](_0x6c0f7e(0xec))||_0x484167,_0x5b4a05=await _0x2c671d[_0x6c0f7e(0xba)](_0x5e8469[_0x6c0f7e(0xe3)],_0x1861c4);this[_0x6c0f7e(0xc1)][_0x6c0f7e(0x8e)][_0x6c0f7e(0xe4)](_0x6c0f7e(0xd9))[_0x6c0f7e(0x95)]={'getRevision':async({revisionId:_0x508ff9})=>(await this[_0x6c0f7e(0xf0)](),await this[_0x6c0f7e(0xdc)][_0x6c0f7e(0xd7)](_0x508ff9)),'updateRevisions':async _0x400e85=>{const _0xa32d86=_0x6c0f7e;await this[_0xa32d86(0xf0)]();const _0x5a573b=this[_0xa32d86(0x96)][_0xa32d86(0xf3)];if(_0x5b4a05&&0x1===_0x400e85[_0xa32d86(0xd4)]&&_0x400e85[0x0]['id']===_0x5a573b['id'])return _0x400e85;for(const _0x44f391 of _0x400e85)_0x44f391['id']===_0x5a573b['id']&&(_0x44f391[_0xa32d86(0xac)]=_0x44f391[_0xa32d86(0xe0)]===_0x44f391[_0xa32d86(0xd5)]);return this[_0xa32d86(0xdc)][_0xa32d86(0xe7)](_0x400e85,this[_0xa32d86(0xb0)])[_0xa32d86(0x9f)](_0x5aab35=>(this[_0xa32d86(0xb0)]=_0x5aab35,_0x400e85))[_0xa32d86(0x93)](_0x1730d6=>{const _0x6514ce=_0xa32d86;if(P(_0x1730d6)||_0x6514ce(0xab)===_0x1730d6[_0x6514ce(0xa6)]&&void 0x0!==_0x1730d6[_0x6514ce(0xae)][_0x6514ce(0xeb)]){for(const _0x11857c of _0x400e85){!this[_0x6514ce(0x96)][_0x6514ce(0xbd)][_0x6514ce(0xd7)](_0x11857c['id'])||this[_0x6514ce(0x96)][_0x6514ce(0x9d)](_0x11857c['id'],_0x11857c,!0x1);}if(P(_0x1730d6))throw _0x1730d6;return _0x400e85;}throw _0x1730d6;});}},this[_0x6c0f7e(0xcc)](this[_0x6c0f7e(0xdc)],_0x6c0f7e(0xa2),(_0x479b99,{revisionsData:_0x18b416,requestId:_0x43275b})=>{const _0x3bc74d=_0x6c0f7e;Math[_0x3bc74d(0xd6)](..._0x18b416[_0x3bc74d(0x8d)](_0x585572=>_0x585572[_0x3bc74d(0xd5)]))>this[_0x3bc74d(0xc4)]()-0x1?this[_0x3bc74d(0xd2)]()[_0x3bc74d(0x9f)](()=>{const _0x215dd7=_0x3bc74d;this[_0x215dd7(0xd1)](_0x18b416,_0x43275b);}):this[_0x3bc74d(0xd1)](_0x18b416,_0x43275b);});const {revisions:_0xd8d3fe,requestId:_0x5a50c0}=await this[_0x6c0f7e(0xdc)][_0x6c0f7e(0xef)](_0x5e8469[_0x6c0f7e(0xe3)]);_0x5e8469[_0x6c0f7e(0x8f)](this),this[_0x6c0f7e(0xb0)]=_0x5a50c0,await this[_0x6c0f7e(0xf1)](_0xd8d3fe);for(const _0xaaab5c of _0xd8d3fe)this[_0x6c0f7e(0x96)][_0x6c0f7e(0xf6)](_0xaaab5c);this[_0x6c0f7e(0xcc)](_0x298565,_0x6c0f7e(0x94),(_0x56958e,_0x4eef5b,_0x266e0a)=>{const _0x333e48=_0x6c0f7e;_0x266e0a&&(this[_0x333e48(0x97)]=_0x298565[_0x333e48(0xaa)],_0x56958e[_0x333e48(0xbf)]());}),this[_0x6c0f7e(0x96)][_0x6c0f7e(0xe5)](_0x6c0f7e(0xb8))['to'](_0x5e8469,_0x6c0f7e(0xee),_0x41ef40=>_0x41ef40===_0x4cf39f[_0x6c0f7e(0xfa)]);}async[_0x1f17ad(0xb2)](){const _0x10eca6=_0x1f17ad,_0x5d18c6=this[_0x10eca6(0xc1)][_0x10eca6(0x8e)][_0x10eca6(0xe4)](_0x2dd616),_0x4e36d2=this[_0x10eca6(0xc1)][_0x10eca6(0x8e)][_0x10eca6(0xe4)](_0x57d0f4),_0x33afd9=async()=>{const _0x2261a3=_0x10eca6,_0x4813a6=this[_0x2261a3(0x96)][_0x2261a3(0xf3)],_0x1abea9=_0x4813a6['id'],_0x37b292=_0x1abea9!==_0x4e36d2[_0x2261a3(0x9c)];if(_0x37b292){const _0x4f0ffe=_0x4e36d2[_0x2261a3(0xaa)]-this[_0x2261a3(0x97)],_0x3a6dbe=this[_0x2261a3(0xc4)]();this[_0x2261a3(0x96)][_0x2261a3(0x91)][_0x2261a3(0xf4)]();if(_0x4813a6[_0x2261a3(0xd5)]+_0x4f0ffe!==_0x3a6dbe){const _0x1a044b=_0x4813a6[_0x2261a3(0xe0)]+_0x4f0ffe,_0x12c520=this[_0x2261a3(0xc1)][_0x2261a3(0x8e)][_0x2261a3(0xe4)](_0x206eec),_0x3fceff=this[_0x2261a3(0x96)][_0x2261a3(0xc0)]({'revision':_0x4813a6,'from':_0x1a044b,'to':_0x3a6dbe});_0x3fceff['id']=_0x4813a6['id'];const _0x19418c=_0x3fceff[_0x2261a3(0xb9)][_0x2261a3(0x8d)](_0x2d4084=>_0x12c520[_0x2261a3(0xa1)](_0x2d4084));_0x4813a6[_0x2261a3(0xcd)]({..._0x3fceff,'authors':_0x19418c},!0x0),this[_0x2261a3(0x96)][_0x2261a3(0x9d)](_0x4813a6['id'],_0x3fceff,!0x0);}this[_0x2261a3(0x96)][_0x2261a3(0xc5)]=_0x3a6dbe,(_0x4813a6[_0x2261a3(0xd5)]===_0x4813a6[_0x2261a3(0xe0)]&&!this[_0x2261a3(0x96)][_0x2261a3(0xfb)][_0x2261a3(0xbe)](_0x1abea9)&&this[_0x2261a3(0x96)][_0x2261a3(0xbd)][_0x2261a3(0xfe)][_0x2261a3(0xa7)](_0x1abea9),this[_0x2261a3(0x96)][_0x2261a3(0xe1)](_0x3a6dbe));}const {revisions:_0x1a1b9d,requestId:_0xc7efe7}=await this[_0x2261a3(0xdc)][_0x2261a3(0xb2)](_0x5d18c6[_0x2261a3(0xe3)],this[_0x2261a3(0xb0)]);_0x37b292&&_0x1a1b9d[_0x2261a3(0xd4)]>0x0?_0x4e36d2[_0x2261a3(0x98)]():(await this[_0x2261a3(0xf1)](_0x1a1b9d),this[_0x2261a3(0xd1)](_0x1a1b9d,_0xc7efe7),this[_0x2261a3(0x96)][_0x2261a3(0xa5)]());};return _0x4e36d2[_0x10eca6(0xa8)]?_0x33afd9():new Promise((_0x3254fc,_0xfd3803)=>{const _0x132416=_0x10eca6;_0x4e36d2[_0x132416(0xa4)](_0x132416(0x94),()=>{const _0x185bb7=_0x132416;_0x33afd9()[_0x185bb7(0x9f)](_0x3254fc)[_0x185bb7(0x93)](_0xfd3803);});});}[_0x1f17ad(0xff)](){const _0x2f8ada=_0x1f17ad;super[_0x2f8ada(0xff)]();}async[_0x1f17ad(0xf0)](){const _0x58cfde=_0x1f17ad;this[_0x58cfde(0xdc)][_0x58cfde(0xc3)]||await new Promise(_0x5f1cea=>{const _0x53d99e=_0x58cfde;this[_0x53d99e(0xcc)](this[_0x53d99e(0xdc)],_0x53d99e(0xe6),_0x55f190=>{const _0x6e9656=_0x53d99e;_0x55f190[_0x6e9656(0xbf)](),_0x5f1cea();});});}[_0x1f17ad(0xc4)](){const _0x29b7c3=_0x1f17ad,_0x12506c=this[_0x29b7c3(0xc1)][_0x29b7c3(0x8e)][_0x29b7c3(0xe4)](_0x57d0f4)[_0x29b7c3(0xd0)][_0x29b7c3(0xdb)]()[_0x29b7c3(0xaf)]();for(const _0x3a5d8c of _0x12506c)if(_0x29b7c3(0x9b)!==_0x3a5d8c[_0x29b7c3(0xd3)]||_0x3a5d8c[_0x29b7c3(0x92)])return _0x3a5d8c[_0x29b7c3(0xb5)]+0x1;}[_0x1f17ad(0xd2)](){const _0x364610=_0x1f17ad,_0x25d3aa=this[_0x364610(0xc1)][_0x364610(0x8e)][_0x364610(0xe4)](_0x57d0f4);return new Promise(_0x1150c4=>{const _0x1ea00a=_0x364610;_0x25d3aa[_0x1ea00a(0x9a)]?_0x25d3aa[_0x1ea00a(0xa4)](_0x1ea00a(0xad),()=>{const _0x3b9359=_0x1ea00a;_0x1150c4(this[_0x3b9359(0xc4)]());}):_0x1150c4(this[_0x1ea00a(0xc4)]());});}[_0x1f17ad(0xd1)](_0x37b7d2,_0x409d51){const _0x212c2d=_0x1f17ad,_0x4f582=this[_0x212c2d(0x96)][_0x212c2d(0xbd)];this[_0x212c2d(0xb0)]=_0x409d51;for(const _0x13dbe0 of _0x37b7d2){const _0x439d37=_0x4f582[_0x212c2d(0xd7)](_0x13dbe0['id']);if(_0x439d37){if((_0x13dbe0[_0x212c2d(0xe0)]||_0x13dbe0[_0x212c2d(0xd5)])&&(_0x13dbe0[_0x212c2d(0xfc)]=null),_0x439d37===this[_0x212c2d(0x96)][_0x212c2d(0xf3)]){const _0x727508=Math[_0x212c2d(0xd6)](_0x439d37[_0x212c2d(0xd5)],_0x13dbe0[_0x212c2d(0xd5)]),_0x4ff173=Math[_0x212c2d(0xd6)](_0x439d37[_0x212c2d(0xe0)],_0x13dbe0[_0x212c2d(0xe0)]);let _0x194c22;_0x439d37[_0x212c2d(0xd5)]===_0x13dbe0[_0x212c2d(0xd5)]&&_0x439d37[_0x212c2d(0xe0)]===_0x13dbe0[_0x212c2d(0xe0)]?(_0x194c22=!0x0,this[_0x212c2d(0xc8)](_0x13dbe0)):_0x13dbe0[_0x212c2d(0xd5)]===_0x727508&&_0x13dbe0[_0x212c2d(0xe0)]===_0x4ff173?_0x194c22=!0x1:(_0x439d37[_0x212c2d(0xd5)]===_0x727508&&_0x439d37[_0x212c2d(0xe0)]===_0x4ff173||this[_0x212c2d(0xcf)]({'revision':_0x439d37,'from':_0x4ff173,'to':_0x727508}),_0x194c22=!0x0),_0x194c22&&(delete _0x13dbe0[_0x212c2d(0xe0)],delete _0x13dbe0[_0x212c2d(0xd5)],delete _0x13dbe0[_0x212c2d(0xfc)],delete _0x13dbe0[_0x212c2d(0xf5)],delete _0x13dbe0[_0x212c2d(0xb9)]);}this[_0x212c2d(0x96)][_0x212c2d(0xbb)](_0x13dbe0),this[_0x212c2d(0xc8)](_0x13dbe0);}else this[_0x212c2d(0x96)][_0x212c2d(0xf6)](_0x13dbe0);}const _0x72e203=_0x4f582[_0x212c2d(0x8c)]();_0x72e203[_0x212c2d(0xaf)]();for(let _0x3c5ec3=0x0;_0x3c5ec3<_0x72e203[_0x212c2d(0xd4)]-0x1;_0x3c5ec3++){const _0x14f95f=_0x72e203[_0x3c5ec3],_0x3e4476=_0x72e203[_0x3c5ec3+0x1];if(_0x14f95f[_0x212c2d(0xe0)]<_0x3e4476[_0x212c2d(0xd5)]){const _0x110238=_0x3e4476[_0x212c2d(0xd5)],_0x5da173=Math[_0x212c2d(0xd6)](_0x110238,_0x14f95f[_0x212c2d(0xd5)]);this[_0x212c2d(0xcf)]({'revision':_0x14f95f,'from':_0x110238,'to':_0x5da173});}}}[_0x1f17ad(0xcf)]({revision:_0x97e60e,from:_0xa23e8e,to:_0x3f26ac}={}){const _0x745264=_0x1f17ad,_0x25a680=this[_0x745264(0xc1)][_0x745264(0x8e)][_0x745264(0xe4)](_0x206eec),_0x46d716=this[_0x745264(0x96)][_0x745264(0xc0)]({'revision':_0x97e60e,'from':_0xa23e8e,'to':_0x3f26ac});_0x46d716[_0x745264(0xc9)]=_0x46d716[_0x745264(0xb9)][_0x745264(0x8d)](_0x3f868c=>_0x25a680[_0x745264(0xa1)](_0x3f868c)),_0x97e60e[_0x745264(0xcd)](_0x46d716);}[_0x1f17ad(0xc8)](_0x422b71){const _0x6d7be5=_0x1f17ad,_0x14b0ab={};_0x14b0ab['id']=_0x422b71['id'];for(const _0x59236a of Object[_0x6d7be5(0xf7)](_0x422b71))'id'!==_0x59236a&&(_0x14b0ab[_0x59236a]=void 0x0);this[_0x6d7be5(0x96)][_0x6d7be5(0x9d)](_0x14b0ab['id'],_0x14b0ab,!0x0);}async[_0x1f17ad(0xf1)](_0x227383){const _0x13b3da=_0x1f17ad,_0x2ab561=this[_0x13b3da(0xc1)][_0x13b3da(0x8e)][_0x13b3da(0xe4)](_0x206eec),{connection:_0x2977a8}=this[_0x13b3da(0xc1)][_0x13b3da(0x8e)][_0x13b3da(0xe4)](_0x2dd616),_0x191398=new Set();for(const _0x471124 of _0x227383){for(const _0x241922 of _0x471124[_0x13b3da(0xb9)])_0x3bba7f(_0x241922);_0x471124[_0x13b3da(0xdd)]&&_0x3bba7f(_0x471124[_0x13b3da(0xdd)]);}if(0x0===_0x191398[_0x13b3da(0xc7)])return;const _0x290e78=await _0x3d8ba3[_0x13b3da(0xdf)](_0x2977a8,Array[_0x13b3da(0x99)](_0x191398));for(const _0x214d2f of _0x290e78)_0x2ab561[_0x13b3da(0xa1)](_0x214d2f['id'])||_0x2ab561[_0x13b3da(0xa3)](_0x214d2f);function _0x3bba7f(_0x4e82ea){const _0xeca709=_0x13b3da;_0x2ab561[_0xeca709(0xa1)](_0x4e82ea)||_0x191398[_0xeca709(0xea)](_0x4e82ea);}}}export{c as CloudServicesRevisionHistoryAdapter};function P(_0x4540de){const _0x14ae71=_0x1f17ad;return _0x4540de[_0x14ae71(0xce)][_0x14ae71(0x90)](_0x14ae71(0xc6))||_0x4540de[_0x14ae71(0xce)][_0x14ae71(0x90)](_0x14ae71(0xb4))||_0x4540de[_0x14ae71(0xce)][_0x14ae71(0x90)](_0x14ae71(0xe2));}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2c6b(){const _0x4b9369=['TrackChangesService','21xyZgHy','open','addUser','_fetchMissingUsersForThreads','get','set','8321139ugCnhE','reconnect','attributes','isConnected','895400qkGLqe','148766chjbQf','getUser','catch','message','CloudServicesTrackChangesAdapter','addToReconnectionStack','off','startsWith','2502860mSHHIx','1376545OyYSLv','init','suggestionUpdated','getSuggestion','then','state','find','update','_trackChangesService','isOfficialPlugin','connected','originalSuggestionId','from','plugins','pluginName','hasSuggestion','addSuggestionData','collaboration.channelId','_waitForServiceReady','add','size','data','21UblPNn','15EzqOUD','_bufferedRequests','getMany','cloud-services-internal-error:\x20Request\x20timeout.','delete','TrackChangesEditing','requires','connect','values','config','596396ToGPgR','isPremiumPlugin','1467125qiJQec','connection','cloud-services-internal-error:\x20Not\x20connected.','adapter','listenTo','_saved','editor','type','12MxBtUj'];_0x2c6b=function(){return _0x4b9369;};return _0x2c6b();}const _0x2f3dd6=_0x3987;(function(_0x3a851c,_0x5ea6db){const _0x5e700c=_0x3987,_0x1a629c=_0x3a851c();while(!![]){try{const _0x20149b=-parseInt(_0x5e700c(0xe0))/0x1*(-parseInt(_0x5e700c(0x101))/0x2)+-parseInt(_0x5e700c(0xf6))/0x3*(parseInt(_0x5e700c(0xea))/0x4)+-parseInt(_0x5e700c(0x10a))/0x5*(parseInt(_0x5e700c(0xf4))/0x6)+parseInt(_0x5e700c(0xdf))/0x7*(parseInt(_0x5e700c(0x100))/0x8)+parseInt(_0x5e700c(0xfc))/0x9+-parseInt(_0x5e700c(0x109))/0xa+parseInt(_0x5e700c(0xec))/0xb;if(_0x20149b===_0x5ea6db)break;else _0x1a629c['push'](_0x1a629c['shift']());}catch(_0x946b40){_0x1a629c['push'](_0x1a629c['shift']());}}}(_0x2c6b,0xa2525));import{Plugin as _0x52eb33}from'ckeditor5/src/core.js';import{User as _0x248659,TrackChangesService as _0x357112}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x1ed95f}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x45a52e}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x3ef7e6}from'ckeditor5-collaboration/src/collaboration-core.js';class m extends _0x52eb33{static [_0x2f3dd6(0xf5)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x357112)());[_0x2f3dd6(0xe1)];[_0x2f3dd6(0x112)];static get[_0x2f3dd6(0xe6)](){const _0xbc8f51=_0x2f3dd6;return[_0x45a52e,_0xbc8f51(0xe5),_0x1ed95f];}static get[_0x2f3dd6(0x118)](){const _0x45f8cf=_0x2f3dd6;return _0x45f8cf(0x105);}static get[_0x2f3dd6(0x113)](){return!0x0;}static get[_0x2f3dd6(0xeb)](){return!0x0;}constructor(_0x21bae4){const _0x1e591c=_0x2f3dd6;super(_0x21bae4);const _0x499529=this[_0x1e591c(0xf2)][_0x1e591c(0xe9)][_0x1e591c(0xfa)](_0x1e591c(0x11b));this[_0x1e591c(0xe1)]=new Map(),this[_0x1e591c(0x112)]=new m[(_0x1e591c(0xf5))](_0x499529);}[_0x2f3dd6(0x10b)](){const _0x5b6caf=_0x2f3dd6,_0x1c6f3f=this[_0x5b6caf(0xf2)][_0x5b6caf(0x117)][_0x5b6caf(0xfa)](_0x1ed95f),_0x279e84=this[_0x5b6caf(0xf2)][_0x5b6caf(0x117)][_0x5b6caf(0xfa)](_0x5b6caf(0xe5));return _0x279e84[_0x5b6caf(0xef)]={'getSuggestion':async _0x1ccca1=>{const _0x1b7dfb=_0x5b6caf;await this[_0x1b7dfb(0x11c)]();const _0x32f919=await this[_0x1b7dfb(0x112)][_0x1b7dfb(0xfa)](_0x1ccca1)[_0x1b7dfb(0x103)](k);return await this[_0x1b7dfb(0xf9)]([_0x32f919]),_0x32f919;},'addSuggestion':async({id:_0x4bce42,type:_0x1094aa,data:_0x16e3ec,originalSuggestionId:_0x7951bb,attributes:_0x1cebdd})=>{const _0x17d881=_0x5b6caf;await this[_0x17d881(0x11c)]();const _0x2c68a2={'id':_0x4bce42,'type':_0x1094aa,'data':_0x16e3ec,'originalSuggestionId':_0x7951bb,'attributes':_0x1cebdd},_0x156db4=await this[_0x17d881(0x112)][_0x17d881(0x11d)](_0x4bce42,_0x1094aa,_0x16e3ec,_0x7951bb,_0x1cebdd)[_0x17d881(0x103)](_0x51e65d=>{if(st(_0x51e65d))return new Promise(_0x271f64=>{const _0x2a982b=_0x3987;this[_0x2a982b(0xe1)][_0x2a982b(0xfb)](_0x4bce42,{'resolve':_0x271f64,'suggestionData':_0x2c68a2});});throw _0x51e65d;});return this[_0x17d881(0xe1)][_0x17d881(0xe4)](_0x4bce42),_0x156db4;},'updateSuggestion':async(_0x290c2b,_0x3124f3)=>{const _0x41cd35=_0x5b6caf;if(await this[_0x41cd35(0x11c)](),_0x41cd35(0xf7)!==_0x3124f3[_0x41cd35(0x10f)])return this[_0x41cd35(0x112)][_0x41cd35(0x111)](_0x290c2b,_0x3124f3)[_0x41cd35(0x103)](k);}},this[_0x5b6caf(0xf0)](this[_0x5b6caf(0x112)],_0x5b6caf(0x10c),(_0x3d87ed,_0x2ede13)=>{const _0x339c70=_0x5b6caf;_0x279e84[_0x339c70(0x119)](_0x2ede13['id'])&&(_0x279e84[_0x339c70(0x10d)](_0x2ede13['id'])[_0x339c70(0xfe)]=_0x2ede13[_0x339c70(0xfe)]);}),this[_0x5b6caf(0x112)][_0x5b6caf(0xe7)](_0x1c6f3f[_0x5b6caf(0xed)])[_0x5b6caf(0x10e)](_0xfa1767=>(_0x1c6f3f[_0x5b6caf(0x106)](this),this[_0x5b6caf(0xf9)](_0xfa1767)[_0x5b6caf(0x10e)](()=>{const _0xc1a2ff=_0x5b6caf;for(const _0x280807 of _0xfa1767){_0x279e84[_0xc1a2ff(0x11a)](_0x280807)[_0xc1a2ff(0xf1)]=!0x0;}})));}async[_0x2f3dd6(0xfd)](){const _0x506522=_0x2f3dd6,_0x452dd7=this[_0x506522(0xf2)][_0x506522(0x117)][_0x506522(0xfa)](_0x506522(0xe5)),{connection:_0xac849}=this[_0x506522(0xf2)][_0x506522(0x117)][_0x506522(0xfa)](_0x1ed95f),_0x1d870b=await this[_0x506522(0x112)][_0x506522(0xe7)](_0xac849);await this[_0x506522(0xf9)](_0x1d870b);for(const {suggestionData:_0x5d6716,resolve:_0x411f0a}of this[_0x506522(0xe1)][_0x506522(0xe8)]()){let _0x42cf4d=_0x1d870b[_0x506522(0x110)](_0x3bc945=>_0x3bc945['id']===_0x5d6716['id']);_0x42cf4d||(_0x42cf4d=await this[_0x506522(0x112)][_0x506522(0x11d)](_0x5d6716['id'],_0x5d6716[_0x506522(0xf3)],_0x5d6716[_0x506522(0xde)],_0x5d6716[_0x506522(0x115)])),_0x411f0a(_0x42cf4d);}for(const _0x5d0278 of _0x1d870b)_0x452dd7[_0x506522(0x119)](_0x5d0278['id'])||_0x452dd7[_0x506522(0x11a)](_0x5d0278);}async[_0x2f3dd6(0x11c)](){const _0x14de1a=_0x2f3dd6;this[_0x14de1a(0x112)][_0x14de1a(0xff)]||await new Promise(_0x8c6b89=>{const _0x5e3483=_0x14de1a;this[_0x5e3483(0xf0)](this[_0x5e3483(0x112)],_0x5e3483(0x114),_0x5cb863=>{const _0x4584df=_0x5e3483;_0x5cb863[_0x4584df(0x107)](),_0x8c6b89();});});}async[_0x2f3dd6(0xf9)](_0x42b967){const _0x61aaf7=_0x2f3dd6,_0x5e6e87=this[_0x61aaf7(0xf2)][_0x61aaf7(0x117)][_0x61aaf7(0xfa)](_0x3ef7e6),{connection:_0x13cb0f}=this[_0x61aaf7(0xf2)][_0x61aaf7(0x117)][_0x61aaf7(0xfa)](_0x1ed95f),_0x2706f2=new Set();for(const {authorId:_0x29de62}of _0x42b967)_0x5e6e87[_0x61aaf7(0x102)](_0x29de62)||_0x2706f2[_0x61aaf7(0x11d)](_0x29de62);if(0x0===_0x2706f2[_0x61aaf7(0xdd)])return;const _0x523751=await _0x248659[_0x61aaf7(0xe2)](_0x13cb0f,Array[_0x61aaf7(0x116)](_0x2706f2));for(const _0x28a23e of _0x523751)_0x5e6e87[_0x61aaf7(0x102)](_0x28a23e['id'])||_0x5e6e87[_0x61aaf7(0xf8)](_0x28a23e);}}export{m as CloudServicesTrackChangesAdapter};function k(_0x3f9f5e){if(st(_0x3f9f5e))return new Promise(()=>{});throw _0x3f9f5e;}function _0x3987(_0x241813,_0x53deb7){const _0x2c6b24=_0x2c6b();return _0x3987=function(_0x398778,_0x116ae2){_0x398778=_0x398778-0xdd;let _0x2e8e8c=_0x2c6b24[_0x398778];return _0x2e8e8c;},_0x3987(_0x241813,_0x53deb7);}function st(_0x341e3a){const _0x598574=_0x2f3dd6;return _0x341e3a[_0x598574(0x104)][_0x598574(0x108)](_0x598574(0xee))||_0x341e3a[_0x598574(0x104)][_0x598574(0x108)](_0x598574(0xe3));}
23
+ const _0x29ba8d=_0x4165;function _0x42fc(){const _0x12528f=['isPremiumPlugin','12ayEgvQ','find','5284ttWtMZ','connection','delete','reconnect','attributes','isConnected','state','addToReconnectionStack','_bufferedRequests','plugins','57GPpNDZ','_waitForServiceReady','_fetchMissingUsersForThreads','listenTo','data','addSuggestionData','8GfXvGm','TrackChangesEditing','cloud-services-internal-error:\x20Request\x20timeout.','getMany','359947DnNdMQ','init','6718kPFyyk','pluginName','message','CloudServicesTrackChangesAdapter','editor','TrackChangesService','startsWith','set','addUser','cloud-services-internal-error:\x20Not\x20connected.','_trackChangesService','then','suggestionUpdated','open','1735063OhRgkK','from','config','get','hasSuggestion','collaboration.channelId','connected','update','values','13jHMHfZ','connect','_saved','add','3326697ggaodt','adapter','requires','type','size','catch','getUser','originalSuggestionId','off','280495uUiGoe','getSuggestion','isOfficialPlugin','562180SbiZHD'];_0x42fc=function(){return _0x12528f;};return _0x42fc();}(function(_0x196345,_0x4c395d){const _0x5f47d9=_0x4165,_0x5b29da=_0x196345();while(!![]){try{const _0x2f75b5=parseInt(_0x5f47d9(0x169))/0x1*(-parseInt(_0x5f47d9(0x193))/0x2)+parseInt(_0x5f47d9(0x187))/0x3*(-parseInt(_0x5f47d9(0x17d))/0x4)+parseInt(_0x5f47d9(0x176))/0x5*(parseInt(_0x5f47d9(0x17b))/0x6)+parseInt(_0x5f47d9(0x191))/0x7*(parseInt(_0x5f47d9(0x18d))/0x8)+parseInt(_0x5f47d9(0x16d))/0x9+-parseInt(_0x5f47d9(0x179))/0xa+-parseInt(_0x5f47d9(0x1a1))/0xb;if(_0x2f75b5===_0x4c395d)break;else _0x5b29da['push'](_0x5b29da['shift']());}catch(_0x1f2eb2){_0x5b29da['push'](_0x5b29da['shift']());}}}(_0x42fc,0x3d2a7));import{Plugin as _0x146315}from'ckeditor5/src/core.js';import{User as _0x368093,TrackChangesService as _0x4fc321}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x5cfd6c}from'../realtimecollaborativeediting/websocketgateway.js';function _0x4165(_0x192fb6,_0x198eee){const _0x42fc22=_0x42fc();return _0x4165=function(_0x4165e1,_0x275042){_0x4165e1=_0x4165e1-0x164;let _0x280d41=_0x42fc22[_0x4165e1];return _0x280d41;},_0x4165(_0x192fb6,_0x198eee);}import{CloudServicesCommentsAdapter as _0x458e75}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x1ef61a}from'ckeditor5-collaboration/src/collaboration-core.js';class m extends _0x146315{static [_0x29ba8d(0x198)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x4fc321)());[_0x29ba8d(0x185)];[_0x29ba8d(0x19d)];static get[_0x29ba8d(0x16f)](){const _0x25a50d=_0x29ba8d;return[_0x458e75,_0x25a50d(0x18e),_0x5cfd6c];}static get[_0x29ba8d(0x194)](){const _0x3d0f74=_0x29ba8d;return _0x3d0f74(0x196);}static get[_0x29ba8d(0x178)](){return!0x0;}static get[_0x29ba8d(0x17a)](){return!0x0;}constructor(_0x4c9534){const _0x12802f=_0x29ba8d;super(_0x4c9534);const _0x42838b=this[_0x12802f(0x197)][_0x12802f(0x1a3)][_0x12802f(0x1a4)](_0x12802f(0x165));this[_0x12802f(0x185)]=new Map(),this[_0x12802f(0x19d)]=new m[(_0x12802f(0x198))](_0x42838b);}[_0x29ba8d(0x192)](){const _0x4bf4b4=_0x29ba8d,_0x2812e0=this[_0x4bf4b4(0x197)][_0x4bf4b4(0x186)][_0x4bf4b4(0x1a4)](_0x5cfd6c),_0x54aa96=this[_0x4bf4b4(0x197)][_0x4bf4b4(0x186)][_0x4bf4b4(0x1a4)](_0x4bf4b4(0x18e));return _0x54aa96[_0x4bf4b4(0x16e)]={'getSuggestion':async _0x560ddf=>{const _0x471ba2=_0x4bf4b4;await this[_0x471ba2(0x188)]();const _0x5982fc=await this[_0x471ba2(0x19d)][_0x471ba2(0x1a4)](_0x560ddf)[_0x471ba2(0x172)](nt);return await this[_0x471ba2(0x189)]([_0x5982fc]),_0x5982fc;},'addSuggestion':async({id:_0x64fabe,type:_0x2646ef,data:_0x13239d,originalSuggestionId:_0x25379f,attributes:_0x5a24e7})=>{const _0x5a8163=_0x4bf4b4;await this[_0x5a8163(0x188)]();const _0x5109c9={'id':_0x64fabe,'type':_0x2646ef,'data':_0x13239d,'originalSuggestionId':_0x25379f,'attributes':_0x5a24e7},_0x21a4de=await this[_0x5a8163(0x19d)][_0x5a8163(0x16c)](_0x64fabe,_0x2646ef,_0x13239d,_0x25379f,_0x5a24e7)[_0x5a8163(0x172)](_0x5df7c9=>{if(P(_0x5df7c9))return new Promise(_0x113365=>{const _0x4f9a30=_0x4165;this[_0x4f9a30(0x185)][_0x4f9a30(0x19a)](_0x64fabe,{'resolve':_0x113365,'suggestionData':_0x5109c9});});throw _0x5df7c9;});return this[_0x5a8163(0x185)][_0x5a8163(0x17f)](_0x64fabe),_0x21a4de;},'updateSuggestion':async(_0x4e3ccd,_0x4a80f0)=>{const _0x5678b4=_0x4bf4b4;if(await this[_0x5678b4(0x188)](),_0x5678b4(0x1a0)!==_0x4a80f0[_0x5678b4(0x183)])return this[_0x5678b4(0x19d)][_0x5678b4(0x167)](_0x4e3ccd,_0x4a80f0)[_0x5678b4(0x172)](nt);}},this[_0x4bf4b4(0x18a)](this[_0x4bf4b4(0x19d)],_0x4bf4b4(0x19f),(_0x578efe,_0x235fcc)=>{const _0x4cb942=_0x4bf4b4;_0x54aa96[_0x4cb942(0x164)](_0x235fcc['id'])&&(_0x54aa96[_0x4cb942(0x177)](_0x235fcc['id'])[_0x4cb942(0x181)]=_0x235fcc[_0x4cb942(0x181)]);}),this[_0x4bf4b4(0x19d)][_0x4bf4b4(0x16a)](_0x2812e0[_0x4bf4b4(0x17e)])[_0x4bf4b4(0x19e)](_0xf803b9=>(_0x2812e0[_0x4bf4b4(0x184)](this),this[_0x4bf4b4(0x189)](_0xf803b9)[_0x4bf4b4(0x19e)](()=>{const _0x1ea9d9=_0x4bf4b4;for(const _0x4fdcb4 of _0xf803b9){_0x54aa96[_0x1ea9d9(0x18c)](_0x4fdcb4)[_0x1ea9d9(0x16b)]=!0x0;}})));}async[_0x29ba8d(0x180)](){const _0x1bd103=_0x29ba8d,_0x1d7dc2=this[_0x1bd103(0x197)][_0x1bd103(0x186)][_0x1bd103(0x1a4)](_0x1bd103(0x18e)),{connection:_0x4c583b}=this[_0x1bd103(0x197)][_0x1bd103(0x186)][_0x1bd103(0x1a4)](_0x5cfd6c),_0x202fbd=await this[_0x1bd103(0x19d)][_0x1bd103(0x16a)](_0x4c583b);await this[_0x1bd103(0x189)](_0x202fbd);for(const {suggestionData:_0x293292,resolve:_0x768bce}of this[_0x1bd103(0x185)][_0x1bd103(0x168)]()){let _0x337f35=_0x202fbd[_0x1bd103(0x17c)](_0x36be88=>_0x36be88['id']===_0x293292['id']);_0x337f35||(_0x337f35=await this[_0x1bd103(0x19d)][_0x1bd103(0x16c)](_0x293292['id'],_0x293292[_0x1bd103(0x170)],_0x293292[_0x1bd103(0x18b)],_0x293292[_0x1bd103(0x174)])),_0x768bce(_0x337f35);}for(const _0x581b2f of _0x202fbd)_0x1d7dc2[_0x1bd103(0x164)](_0x581b2f['id'])||_0x1d7dc2[_0x1bd103(0x18c)](_0x581b2f);}async[_0x29ba8d(0x188)](){const _0x1ca5c4=_0x29ba8d;this[_0x1ca5c4(0x19d)][_0x1ca5c4(0x182)]||await new Promise(_0x4d3a62=>{const _0xb5708e=_0x1ca5c4;this[_0xb5708e(0x18a)](this[_0xb5708e(0x19d)],_0xb5708e(0x166),_0x2243af=>{const _0x2bc3ef=_0xb5708e;_0x2243af[_0x2bc3ef(0x175)](),_0x4d3a62();});});}async[_0x29ba8d(0x189)](_0x4f899f){const _0x4ca37d=_0x29ba8d,_0x10a138=this[_0x4ca37d(0x197)][_0x4ca37d(0x186)][_0x4ca37d(0x1a4)](_0x1ef61a),{connection:_0x3f188b}=this[_0x4ca37d(0x197)][_0x4ca37d(0x186)][_0x4ca37d(0x1a4)](_0x5cfd6c),_0x248dc1=new Set();for(const {authorId:_0x182f0d}of _0x4f899f)_0x10a138[_0x4ca37d(0x173)](_0x182f0d)||_0x248dc1[_0x4ca37d(0x16c)](_0x182f0d);if(0x0===_0x248dc1[_0x4ca37d(0x171)])return;const _0x3a785f=await _0x368093[_0x4ca37d(0x190)](_0x3f188b,Array[_0x4ca37d(0x1a2)](_0x248dc1));for(const _0x42f552 of _0x3a785f)_0x10a138[_0x4ca37d(0x173)](_0x42f552['id'])||_0x10a138[_0x4ca37d(0x19b)](_0x42f552);}}export{m as CloudServicesTrackChangesAdapter};function nt(_0x53af1c){if(P(_0x53af1c))return new Promise(()=>{});throw _0x53af1c;}function P(_0x18dcbe){const _0x5d8e62=_0x29ba8d;return _0x18dcbe[_0x5d8e62(0x195)][_0x5d8e62(0x199)](_0x5d8e62(0x19c))||_0x18dcbe[_0x5d8e62(0x195)][_0x5d8e62(0x199)](_0x5d8e62(0x18f));}