@ckeditor/ckeditor5-real-time-collaboration 47.7.2-alpha.0 → 47.7.2

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 _0x3423ea=_0x14e0;(function(_0x3c45a2,_0x33e42d){const _0x9c63d9=_0x14e0,_0x54ed0b=_0x3c45a2();while(!![]){try{const _0x3fffa0=parseInt(_0x9c63d9(0x19e))/0x1*(parseInt(_0x9c63d9(0x1be))/0x2)+parseInt(_0x9c63d9(0x1a0))/0x3+-parseInt(_0x9c63d9(0x1de))/0x4*(-parseInt(_0x9c63d9(0x1c9))/0x5)+parseInt(_0x9c63d9(0x1d9))/0x6*(parseInt(_0x9c63d9(0x1d4))/0x7)+-parseInt(_0x9c63d9(0x1e6))/0x8*(-parseInt(_0x9c63d9(0x1b3))/0x9)+parseInt(_0x9c63d9(0x1b5))/0xa+-parseInt(_0x9c63d9(0x1b8))/0xb;if(_0x3fffa0===_0x33e42d)break;else _0x54ed0b['push'](_0x54ed0b['shift']());}catch(_0x47a6cf){_0x54ed0b['push'](_0x54ed0b['shift']());}}}(_0x54cd,0x43007));import{ContextPlugin as _0x150d06}from'ckeditor5/src/core.js';function _0x14e0(_0x18dd48,_0x2a3e0a){const _0x54cdc0=_0x54cd();return _0x14e0=function(_0x14e083,_0xb7a8ab){_0x14e083=_0x14e083-0x19e;let _0x42c2da=_0x54cdc0[_0x14e083];return _0x42c2da;},_0x14e0(_0x18dd48,_0x2a3e0a);}import{DomEmitterMixin as _0x3a8287,CKEditorError as _0x27167b}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x50e9bd,WEB_SOCKET_GATEWAY_STATES as _0xb90548}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x2e2c8b}from'ckeditor5/src/ui.js';function _0x54cd(){const _0x5da6b6=['online','token','isOfficialPlugin','_domEmitter','connect','addToReconnectionStack','websocketgateway-missing-websocket-url','40boaWAm','from','requires','initialReconnectionInterval','destroy','plugins','reconnect','cloudServices.connectionTimeout','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.','websocketgateway-invalid-plugin-interface','isInReconnectionStack','7GlHipz','stopListening','showWarning','all','config','1786722pTXpSK','listenTo','CONNECTING','cloudServices.requestTimeout','then','71668kNXGak','function','Connected\x20users\x20limit\x20exceeded','limitExceeded','webSocketUrl','catch','disconnect','change:me','24Sjwmyy','WebSocketGateway','has','227qHFxKK','code','1482591RvCvsf','websocketgateway-plugin-already-registered','init','DISCONNECTED','add','offline','constructor','isPremiumPlugin','_shouldPluginsReconnect','cloudservices-init','connected','_reconnect','real-time-collaboration','_isBrowserOffline','define','bind','websocketgateway-missing-token','connection','get','1471329lKuwIx','error','932900ZSrsEj','state','set','19531237ybnxFi','removeFromReconnectionStack','pluginName','context','CloudServices','delete','4678pColYu','_reconnectionStack','CONNECTED','cloudservices-reconnection-error'];_0x54cd=function(){return _0x5da6b6;};return _0x54cd();}export class WebSocketGateway extends _0x150d06{static [_0x3423ea(0x1e7)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x50e9bd)());static [_0x3423ea(0x1cc)]=0x3e8;[_0x3423ea(0x1b1)];[_0x3423ea(0x1bf)];[_0x3423ea(0x1a8)];[_0x3423ea(0x1c5)];static get[_0x3423ea(0x1cb)](){const _0x314bf0=_0x3423ea;return[_0x314bf0(0x1bc),_0x2e2c8b];}static get[_0x3423ea(0x1ba)](){const _0x4a6e76=_0x3423ea;return _0x4a6e76(0x1e7);}static get[_0x3423ea(0x1c4)](){return!0x0;}static get[_0x3423ea(0x1a7)](){return!0x0;}constructor(_0x3f9149){const _0x6b2a56=_0x3423ea;super(_0x3f9149),this[_0x6b2a56(0x1b7)](_0x6b2a56(0x1b6),_0xb90548[_0x6b2a56(0x1c0)]),this[_0x6b2a56(0x1b7)](_0x6b2a56(0x1ad),!0x1),this[_0x6b2a56(0x1bf)]=new Set(),this[_0x6b2a56(0x1a8)]=!0x1,this[_0x6b2a56(0x1c5)]=new(_0x3a8287())();}[_0x3423ea(0x1a2)](){const _0x10ee0a=_0x3423ea,_0x151a9c=this[_0x10ee0a(0x1bb)],_0x33b1f1=_0x151a9c[_0x10ee0a(0x1ce)][_0x10ee0a(0x1b2)](_0x10ee0a(0x1bc)),_0x35f475=_0x151a9c[_0x10ee0a(0x1ce)][_0x10ee0a(0x1b2)](_0x2e2c8b);if(!_0x33b1f1[_0x10ee0a(0x1c3)])throw new _0x27167b(_0x10ee0a(0x1b0),this);if(!_0x33b1f1[_0x10ee0a(0x1e2)])throw new _0x27167b(_0x10ee0a(0x1c8),this);return this[_0x10ee0a(0x1c5)][_0x10ee0a(0x1da)](window,_0x10ee0a(0x1a5),()=>this[_0x10ee0a(0x1ad)]=!0x0),this[_0x10ee0a(0x1c5)][_0x10ee0a(0x1da)](window,_0x10ee0a(0x1c2),()=>this[_0x10ee0a(0x1ad)]=!0x1),this[_0x10ee0a(0x1bb)][_0x10ee0a(0x1d8)][_0x10ee0a(0x1ae)](_0x10ee0a(0x1d0),0xa),this[_0x10ee0a(0x1bb)][_0x10ee0a(0x1d8)][_0x10ee0a(0x1ae)](_0x10ee0a(0x1dc),0x14),WebSocketGateway[_0x10ee0a(0x1e7)][_0x10ee0a(0x1c6)](_0x33b1f1[_0x10ee0a(0x1c3)],_0x33b1f1[_0x10ee0a(0x1e2)],{'timeout':0x3e8*this[_0x10ee0a(0x1bb)][_0x10ee0a(0x1d8)][_0x10ee0a(0x1b2)](_0x10ee0a(0x1d0)),'requestTimeout':0x3e8*this[_0x10ee0a(0x1bb)][_0x10ee0a(0x1d8)][_0x10ee0a(0x1b2)](_0x10ee0a(0x1dc))})[_0x10ee0a(0x1dd)](_0x42547f=>{const _0x2f418f=_0x10ee0a;if(this[_0x2f418f(0x1b1)]=_0x42547f,this[_0x2f418f(0x1af)](_0x2f418f(0x1b6))['to'](_0x42547f,_0x2f418f(0x1b6),this,_0x2f418f(0x1ad),(_0x1e74db,_0x257aa6)=>(_0x2f418f(0x1aa)!==_0x1e74db&&(this[_0x2f418f(0x1a8)]=!0x0),_0x257aa6||_0x1e74db!==_0xb90548[_0x2f418f(0x1c0)]?_0xb90548[_0x2f418f(0x1a3)]:this[_0x2f418f(0x1b6)]==_0xb90548[_0x2f418f(0x1a3)]&&this[_0x2f418f(0x1a8)]?(this[_0x2f418f(0x1a8)]=!0x1,this[_0x2f418f(0x1ab)](),_0xb90548[_0x2f418f(0x1db)]):_0xb90548[_0x2f418f(0x1c0)])),this[_0x2f418f(0x1b1)]['on'](_0x2f418f(0x1b4),(_0x1b0ed2,_0x48edc8)=>{const _0x4f53fc=_0x2f418f;if(_0x4f53fc(0x1e1)!==_0x48edc8[_0x4f53fc(0x19f)])throw console[_0x4f53fc(0x1b4)](_0x48edc8),new _0x27167b(_0x4f53fc(0x1a9),null,{'originalError':_0x48edc8});_0x35f475[_0x4f53fc(0x1d6)](_0x4f53fc(0x1d1),{'title':_0x4f53fc(0x1e0),'namespace':_0x4f53fc(0x1ac)});}),!_0x42547f['me'])return new Promise(_0x38bbda=>_0x42547f['on'](_0x2f418f(0x1e5),_0x38bbda));})[_0x10ee0a(0x1e3)](_0x2473b4=>{const _0x19d1ae=_0x10ee0a;throw console[_0x19d1ae(0x1b4)](_0x2473b4),new _0x27167b(_0x19d1ae(0x1a9),null,{'originalError':_0x2473b4});});}[_0x3423ea(0x1c7)](_0x27f3de){const _0x3a4c01=_0x3423ea;if(_0x3a4c01(0x1df)!=typeof _0x27f3de[_0x3a4c01(0x1cf)])throw new _0x27167b(_0x3a4c01(0x1d2),this);if(this[_0x3a4c01(0x1d3)](_0x27f3de))throw new _0x27167b(_0x3a4c01(0x1a1),this,{'name':_0x27f3de[_0x3a4c01(0x1a6)][_0x3a4c01(0x1ba)]});this[_0x3a4c01(0x1bf)][_0x3a4c01(0x1a4)](_0x27f3de);}[_0x3423ea(0x1b9)](_0x457a67){const _0x2ce15c=_0x3423ea;this[_0x2ce15c(0x1bf)][_0x2ce15c(0x1bd)](_0x457a67);}[_0x3423ea(0x1d3)](_0x2c45a0){const _0x14f099=_0x3423ea;return this[_0x14f099(0x1bf)][_0x14f099(0x1e8)](_0x2c45a0);}[_0x3423ea(0x1ab)](){const _0x29c192=_0x3423ea;return this[_0x29c192(0x1b1)][_0x29c192(0x1cf)]()[_0x29c192(0x1dd)](()=>Promise[_0x29c192(0x1d7)](Array[_0x29c192(0x1ca)](this[_0x29c192(0x1bf)],_0x37433f=>_0x37433f[_0x29c192(0x1cf)]())))[_0x29c192(0x1dd)](()=>this[_0x29c192(0x1b6)]=_0xb90548[_0x29c192(0x1c0)])[_0x29c192(0x1e3)](_0x16f3a8=>{const _0xc79094=_0x29c192;throw console[_0xc79094(0x1b4)](_0x16f3a8),new _0x27167b(_0xc79094(0x1c1),this[_0xc79094(0x1bb)]);});}[_0x3423ea(0x1e4)](){const _0xbee612=_0x3423ea;this[_0xbee612(0x1b1)]&&this[_0xbee612(0x1b1)][_0xbee612(0x1e4)](),this[_0xbee612(0x1b6)]=_0xb90548[_0xbee612(0x1a3)],this[_0xbee612(0x1c5)][_0xbee612(0x1d5)]();}[_0x3423ea(0x1cd)](){const _0x20bfc9=_0x3423ea;this[_0x20bfc9(0x1e4)](),super[_0x20bfc9(0x1cd)]();}}
23
+ const _0x42af2f=_0x3969;(function(_0x3a92bd,_0xb581d8){const _0x5d09ab=_0x3969,_0x4da469=_0x3a92bd();while(!![]){try{const _0x52275c=parseInt(_0x5d09ab(0xcf))/0x1*(parseInt(_0x5d09ab(0xdb))/0x2)+-parseInt(_0x5d09ab(0xaf))/0x3+-parseInt(_0x5d09ab(0xca))/0x4+parseInt(_0x5d09ab(0xc6))/0x5+-parseInt(_0x5d09ab(0xb1))/0x6*(-parseInt(_0x5d09ab(0xad))/0x7)+-parseInt(_0x5d09ab(0xdc))/0x8+parseInt(_0x5d09ab(0x96))/0x9*(parseInt(_0x5d09ab(0xd0))/0xa);if(_0x52275c===_0xb581d8)break;else _0x4da469['push'](_0x4da469['shift']());}catch(_0xd667a8){_0x4da469['push'](_0x4da469['shift']());}}}(_0x5a85,0xe6c96));function _0x5a85(){const _0x40e23e=['_reconnect','5691385avGkOk','bind','isOfficialPlugin','isInReconnectionStack','3421680TVjaOl','code','catch','_shouldPluginsReconnect','reconnect','1aqfwqY','5113430bRnpaD','websocketgateway-plugin-already-registered','webSocketUrl','destroy','connect','error','WebSocketGateway','websocketgateway-invalid-plugin-interface','define','DISCONNECTED','Connected\x20users\x20limit\x20exceeded','3450832mrYuNe','12561600hNQMaF','connected','real-time-collaboration','limitExceeded','9UkRlnG','config','init','_domEmitter','has','from','state','pluginName','requires','then','get','function','add','disconnect','constructor','offline','stopListening','isPremiumPlugin','context','websocketgateway-missing-token','removeFromReconnectionStack','all','addToReconnectionStack','8477qFBaHE','change:me','4996818XvWRMG','delete','8232CggoFp','cloudservices-init','online','cloudServices.connectionTimeout','set','initialReconnectionInterval','showWarning','The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.','_reconnectionStack','connection','CONNECTED','_isBrowserOffline','listenTo','cloudservices-reconnection-error','CONNECTING','token','cloudServices.requestTimeout','websocketgateway-missing-websocket-url','plugins','CloudServices'];_0x5a85=function(){return _0x40e23e;};return _0x5a85();}import{ContextPlugin as _0x256bfb}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x20f159,CKEditorError as _0x1eb1a8}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x26ebae,WEB_SOCKET_GATEWAY_STATES as _0x4d68cc}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x404828}from'ckeditor5/src/ui.js';function _0x3969(_0x1858b1,_0x475a5){const _0x5a85b5=_0x5a85();return _0x3969=function(_0x3969d7,_0x4d03c1){_0x3969d7=_0x3969d7-0x93;let _0x1f72ce=_0x5a85b5[_0x3969d7];return _0x1f72ce;},_0x3969(_0x1858b1,_0x475a5);}export class WebSocketGateway extends _0x256bfb{static [_0x42af2f(0xd6)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x26ebae)());static [_0x42af2f(0xb6)]=0x3e8;[_0x42af2f(0xba)];[_0x42af2f(0xb9)];[_0x42af2f(0xcd)];[_0x42af2f(0x99)];static get[_0x42af2f(0x9e)](){const _0x50ccf7=_0x42af2f;return[_0x50ccf7(0xc4),_0x404828];}static get[_0x42af2f(0x9d)](){const _0x3a7b28=_0x42af2f;return _0x3a7b28(0xd6);}static get[_0x42af2f(0xc8)](){return!0x0;}static get[_0x42af2f(0xa7)](){return!0x0;}constructor(_0x34f224){const _0x4be4ab=_0x42af2f;super(_0x34f224),this[_0x4be4ab(0xb5)](_0x4be4ab(0x9c),_0x4d68cc[_0x4be4ab(0xbb)]),this[_0x4be4ab(0xb5)](_0x4be4ab(0xbc),!0x1),this[_0x4be4ab(0xb9)]=new Set(),this[_0x4be4ab(0xcd)]=!0x1,this[_0x4be4ab(0x99)]=new(_0x20f159())();}[_0x42af2f(0x98)](){const _0x4e603c=_0x42af2f,_0xbab656=this[_0x4e603c(0xa8)],_0x347d3d=_0xbab656[_0x4e603c(0xc3)][_0x4e603c(0xa0)](_0x4e603c(0xc4)),_0x4ca4bc=_0xbab656[_0x4e603c(0xc3)][_0x4e603c(0xa0)](_0x404828);if(!_0x347d3d[_0x4e603c(0xc0)])throw new _0x1eb1a8(_0x4e603c(0xa9),this);if(!_0x347d3d[_0x4e603c(0xd2)])throw new _0x1eb1a8(_0x4e603c(0xc2),this);return this[_0x4e603c(0x99)][_0x4e603c(0xbd)](window,_0x4e603c(0xa5),()=>this[_0x4e603c(0xbc)]=!0x0),this[_0x4e603c(0x99)][_0x4e603c(0xbd)](window,_0x4e603c(0xb3),()=>this[_0x4e603c(0xbc)]=!0x1),this[_0x4e603c(0xa8)][_0x4e603c(0x97)][_0x4e603c(0xd8)](_0x4e603c(0xb4),0xa),this[_0x4e603c(0xa8)][_0x4e603c(0x97)][_0x4e603c(0xd8)](_0x4e603c(0xc1),0x14),WebSocketGateway[_0x4e603c(0xd6)][_0x4e603c(0xd4)](_0x347d3d[_0x4e603c(0xc0)],_0x347d3d[_0x4e603c(0xd2)],{'timeout':0x3e8*this[_0x4e603c(0xa8)][_0x4e603c(0x97)][_0x4e603c(0xa0)](_0x4e603c(0xb4)),'requestTimeout':0x3e8*this[_0x4e603c(0xa8)][_0x4e603c(0x97)][_0x4e603c(0xa0)](_0x4e603c(0xc1))})[_0x4e603c(0x9f)](_0xf51fca=>{const _0x2cb49c=_0x4e603c;if(this[_0x2cb49c(0xba)]=_0xf51fca,this[_0x2cb49c(0xc7)](_0x2cb49c(0x9c))['to'](_0xf51fca,_0x2cb49c(0x9c),this,_0x2cb49c(0xbc),(_0x4cbef2,_0x458181)=>(_0x2cb49c(0x93)!==_0x4cbef2&&(this[_0x2cb49c(0xcd)]=!0x0),_0x458181||_0x4cbef2!==_0x4d68cc[_0x2cb49c(0xbb)]?_0x4d68cc[_0x2cb49c(0xd9)]:this[_0x2cb49c(0x9c)]==_0x4d68cc[_0x2cb49c(0xd9)]&&this[_0x2cb49c(0xcd)]?(this[_0x2cb49c(0xcd)]=!0x1,this[_0x2cb49c(0xc5)](),_0x4d68cc[_0x2cb49c(0xbf)]):_0x4d68cc[_0x2cb49c(0xbb)])),this[_0x2cb49c(0xba)]['on'](_0x2cb49c(0xd5),(_0xe1662c,_0x3344fa)=>{const _0xedd401=_0x2cb49c;if(_0xedd401(0x95)!==_0x3344fa[_0xedd401(0xcb)])throw console[_0xedd401(0xd5)](_0x3344fa),new _0x1eb1a8(_0xedd401(0xb2),null,{'originalError':_0x3344fa});_0x4ca4bc[_0xedd401(0xb7)](_0xedd401(0xb8),{'title':_0xedd401(0xda),'namespace':_0xedd401(0x94)});}),!_0xf51fca['me'])return new Promise(_0x36181d=>_0xf51fca['on'](_0x2cb49c(0xae),_0x36181d));})[_0x4e603c(0xcc)](_0x302824=>{const _0x42c6cd=_0x4e603c;throw console[_0x42c6cd(0xd5)](_0x302824),new _0x1eb1a8(_0x42c6cd(0xb2),null,{'originalError':_0x302824});});}[_0x42af2f(0xac)](_0x1a93fc){const _0x3ba8bf=_0x42af2f;if(_0x3ba8bf(0xa1)!=typeof _0x1a93fc[_0x3ba8bf(0xce)])throw new _0x1eb1a8(_0x3ba8bf(0xd7),this);if(this[_0x3ba8bf(0xc9)](_0x1a93fc))throw new _0x1eb1a8(_0x3ba8bf(0xd1),this,{'name':_0x1a93fc[_0x3ba8bf(0xa4)][_0x3ba8bf(0x9d)]});this[_0x3ba8bf(0xb9)][_0x3ba8bf(0xa2)](_0x1a93fc);}[_0x42af2f(0xaa)](_0x14b3eb){const _0x2ac127=_0x42af2f;this[_0x2ac127(0xb9)][_0x2ac127(0xb0)](_0x14b3eb);}[_0x42af2f(0xc9)](_0x4dc93d){const _0x1ed3dd=_0x42af2f;return this[_0x1ed3dd(0xb9)][_0x1ed3dd(0x9a)](_0x4dc93d);}[_0x42af2f(0xc5)](){const _0x10eabc=_0x42af2f;return this[_0x10eabc(0xba)][_0x10eabc(0xce)]()[_0x10eabc(0x9f)](()=>Promise[_0x10eabc(0xab)](Array[_0x10eabc(0x9b)](this[_0x10eabc(0xb9)],_0x48ff30=>_0x48ff30[_0x10eabc(0xce)]())))[_0x10eabc(0x9f)](()=>this[_0x10eabc(0x9c)]=_0x4d68cc[_0x10eabc(0xbb)])[_0x10eabc(0xcc)](_0x5cd5fc=>{const _0x1a4038=_0x10eabc;throw console[_0x1a4038(0xd5)](_0x5cd5fc),new _0x1eb1a8(_0x1a4038(0xbe),this[_0x1a4038(0xa8)]);});}[_0x42af2f(0xa3)](){const _0x52b56c=_0x42af2f;this[_0x52b56c(0xba)]&&this[_0x52b56c(0xba)][_0x52b56c(0xa3)](),this[_0x52b56c(0x9c)]=_0x4d68cc[_0x52b56c(0xd9)],this[_0x52b56c(0x99)][_0x52b56c(0xa6)]();}[_0x42af2f(0xd3)](){const _0x289590=_0x42af2f;this[_0x289590(0xa3)](),super[_0x289590(0xd3)]();}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4491e0=_0x5af0;(function(_0x1bc979,_0x31e156){const _0xaa64ce=_0x5af0,_0x22ae93=_0x1bc979();while(!![]){try{const _0x544543=-parseInt(_0xaa64ce(0xa0))/0x1+parseInt(_0xaa64ce(0xac))/0x2+parseInt(_0xaa64ce(0x9b))/0x3*(parseInt(_0xaa64ce(0xa4))/0x4)+parseInt(_0xaa64ce(0xa5))/0x5*(-parseInt(_0xaa64ce(0x74))/0x6)+-parseInt(_0xaa64ce(0x93))/0x7*(parseInt(_0xaa64ce(0x8b))/0x8)+parseInt(_0xaa64ce(0x81))/0x9*(parseInt(_0xaa64ce(0x97))/0xa)+parseInt(_0xaa64ce(0x8a))/0xb*(-parseInt(_0xaa64ce(0x84))/0xc);if(_0x544543===_0x31e156)break;else _0x22ae93['push'](_0x22ae93['shift']());}catch(_0x3aadbd){_0x22ae93['push'](_0x22ae93['shift']());}}}(_0x63d0,0xe9522));import{Plugin as _0x4f6cdc}from'ckeditor5/src/core.js';import{User as _0x2028a6,TrackChangesService as _0x14e8f6}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x3210c8}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x4ccf9a}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x3b9a6e}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x4f6cdc{static [_0x4491e0(0xa2)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x14e8f6)());[_0x4491e0(0x91)];[_0x4491e0(0x85)];static get[_0x4491e0(0x94)](){const _0x5bd345=_0x4491e0;return[_0x4ccf9a,_0x5bd345(0xa3),_0x3210c8];}static get[_0x4491e0(0x6c)](){const _0x162411=_0x4491e0;return _0x162411(0x88);}static get[_0x4491e0(0x80)](){return!0x0;}static get[_0x4491e0(0x72)](){return!0x0;}constructor(_0x32ea8a){const _0x3df1e7=_0x4491e0;super(_0x32ea8a);const _0xd5ed67=this[_0x3df1e7(0x7f)][_0x3df1e7(0x6e)][_0x3df1e7(0x82)](_0x3df1e7(0x79));this[_0x3df1e7(0x91)]=new Map(),this[_0x3df1e7(0x85)]=new CloudServicesTrackChangesAdapter[(_0x3df1e7(0xa2))](_0xd5ed67);}[_0x4491e0(0x75)](){const _0x1f2431=_0x4491e0,_0x3534d9=this[_0x1f2431(0x7f)][_0x1f2431(0x9e)][_0x1f2431(0x82)](_0x3210c8),_0x31f01f=this[_0x1f2431(0x7f)][_0x1f2431(0x9e)][_0x1f2431(0x82)](_0x1f2431(0xa3));return _0x31f01f[_0x1f2431(0x8f)]={'getSuggestion':async _0x30964a=>{const _0x331f3a=_0x1f2431;await this[_0x331f3a(0x6d)]();const _0x3cae2c=await this[_0x331f3a(0x85)][_0x331f3a(0x82)](_0x30964a)[_0x331f3a(0x87)](B);return await this[_0x331f3a(0x83)]([_0x3cae2c]),_0x3cae2c;},'addSuggestion':async({id:_0x58784d,type:_0x1c76c0,data:_0x1b8ec8,originalSuggestionId:_0x512559,attributes:_0x5c5161})=>{const _0x989013=_0x1f2431;await this[_0x989013(0x6d)]();const _0x4bbfb0={'id':_0x58784d,'type':_0x1c76c0,'data':_0x1b8ec8,'originalSuggestionId':_0x512559,'attributes':_0x5c5161},_0x5a81f0=await this[_0x989013(0x85)][_0x989013(0xa6)](_0x58784d,_0x1c76c0,_0x1b8ec8,_0x512559,_0x5c5161)[_0x989013(0x87)](_0x20f4ed=>{if(I(_0x20f4ed))return new Promise(_0x55fd9b=>{const _0x3f6166=_0x5af0;this[_0x3f6166(0x91)][_0x3f6166(0xa7)](_0x58784d,{'resolve':_0x55fd9b,'suggestionData':_0x4bbfb0});});throw _0x20f4ed;});return this[_0x989013(0x91)][_0x989013(0xa1)](_0x58784d),_0x5a81f0;},'updateSuggestion':async(_0x396baa,_0x238324)=>{const _0x35d8d8=_0x1f2431;if(await this[_0x35d8d8(0x6d)](),_0x35d8d8(0x89)!==_0x238324[_0x35d8d8(0x7a)])return this[_0x35d8d8(0x85)][_0x35d8d8(0x71)](_0x396baa,_0x238324)[_0x35d8d8(0x87)](B);}},this[_0x1f2431(0x7b)](this[_0x1f2431(0x85)],_0x1f2431(0xa9),(_0x3fd0e5,_0x41c2fb)=>{const _0x4938fc=_0x1f2431;_0x31f01f[_0x4938fc(0x90)](_0x41c2fb['id'])&&(_0x31f01f[_0x4938fc(0x8d)](_0x41c2fb['id'])[_0x4938fc(0x9f)]=_0x41c2fb[_0x4938fc(0x9f)]);}),this[_0x1f2431(0x85)][_0x1f2431(0x92)](_0x3534d9[_0x1f2431(0x96)])[_0x1f2431(0xaa)](_0x57693c=>(_0x3534d9[_0x1f2431(0x76)](this),this[_0x1f2431(0x83)](_0x57693c)[_0x1f2431(0xaa)](()=>{const _0x429a51=_0x1f2431;for(const _0x3c4fc7 of _0x57693c){_0x31f01f[_0x429a51(0x70)](_0x3c4fc7)[_0x429a51(0x9c)]=!0x0;}})));}async[_0x4491e0(0x99)](){const _0x25e9fd=_0x4491e0,_0x16ce0f=this[_0x25e9fd(0x7f)][_0x25e9fd(0x9e)][_0x25e9fd(0x82)](_0x25e9fd(0xa3)),{connection:_0x35c05e}=this[_0x25e9fd(0x7f)][_0x25e9fd(0x9e)][_0x25e9fd(0x82)](_0x3210c8),_0x52222b=await this[_0x25e9fd(0x85)][_0x25e9fd(0x92)](_0x35c05e);await this[_0x25e9fd(0x83)](_0x52222b);for(const {suggestionData:_0xce8b5b,resolve:_0x3a61da}of this[_0x25e9fd(0x91)][_0x25e9fd(0x78)]()){let _0x162f45=_0x52222b[_0x25e9fd(0x7d)](_0x2a1a69=>_0x2a1a69['id']===_0xce8b5b['id']);_0x162f45||(_0x162f45=await this[_0x25e9fd(0x85)][_0x25e9fd(0xa6)](_0xce8b5b['id'],_0xce8b5b[_0x25e9fd(0x77)],_0xce8b5b[_0x25e9fd(0x9d)],_0xce8b5b[_0x25e9fd(0x9a)])),_0x3a61da(_0x162f45);}for(const _0x50a36b of _0x52222b)_0x16ce0f[_0x25e9fd(0x90)](_0x50a36b['id'])||_0x16ce0f[_0x25e9fd(0x70)](_0x50a36b);}async[_0x4491e0(0x6d)](){const _0x35b68e=_0x4491e0;this[_0x35b68e(0x85)][_0x35b68e(0x7e)]||await new Promise(_0x10347d=>{const _0x5b2110=_0x35b68e;this[_0x5b2110(0x7b)](this[_0x5b2110(0x85)],_0x5b2110(0x6b),_0xe82d61=>{const _0x3ea026=_0x5b2110;_0xe82d61[_0x3ea026(0xab)](),_0x10347d();});});}async[_0x4491e0(0x83)](_0x138a97){const _0x20c00f=_0x4491e0,_0x811e=this[_0x20c00f(0x7f)][_0x20c00f(0x9e)][_0x20c00f(0x82)](_0x3b9a6e),{connection:_0xb1289a}=this[_0x20c00f(0x7f)][_0x20c00f(0x9e)][_0x20c00f(0x82)](_0x3210c8),_0x4052d1=new Set();for(const {authorId:_0x29e2cf}of _0x138a97)_0x811e[_0x20c00f(0x98)](_0x29e2cf)||_0x4052d1[_0x20c00f(0xa6)](_0x29e2cf);if(0x0===_0x4052d1[_0x20c00f(0x6f)])return;const _0x3f3427=await _0x2028a6[_0x20c00f(0x73)](_0xb1289a,Array[_0x20c00f(0x86)](_0x4052d1));for(const _0x50e8d2 of _0x3f3427)_0x811e[_0x20c00f(0x98)](_0x50e8d2['id'])||_0x811e[_0x20c00f(0xa8)](_0x50e8d2);}}function B(_0x194e49){if(I(_0x194e49))return new Promise(()=>{});throw _0x194e49;}function _0x5af0(_0x2da785,_0x214a27){const _0x63d058=_0x63d0();return _0x5af0=function(_0x5af07a,_0x2563fe){_0x5af07a=_0x5af07a-0x6b;let _0x24e089=_0x63d058[_0x5af07a];return _0x24e089;},_0x5af0(_0x2da785,_0x214a27);}function _0x63d0(){const _0x4b2856=['_saved','data','plugins','attributes','173911hmTMEi','delete','TrackChangesService','TrackChangesEditing','1974636doVjIE','3268345jzoidR','add','set','addUser','suggestionUpdated','then','off','880574ilSEjr','connected','pluginName','_waitForServiceReady','config','size','addSuggestionData','update','isPremiumPlugin','getMany','6zDHZlr','init','addToReconnectionStack','type','values','collaboration.channelId','state','listenTo','cloud-services-internal-error:\x20Request\x20timeout.','find','isConnected','editor','isOfficialPlugin','994671ayRLMZ','get','_fetchMissingUsersForThreads','181428FnzpQq','_trackChangesService','from','catch','CloudServicesTrackChangesAdapter','open','110OoAkLR','2985016USlQXf','cloud-services-internal-error:\x20Not\x20connected.','getSuggestion','startsWith','adapter','hasSuggestion','_bufferedRequests','connect','35oWkiOX','requires','message','connection','170NRWCGH','getUser','reconnect','originalSuggestionId','9FWBubx'];_0x63d0=function(){return _0x4b2856;};return _0x63d0();}function I(_0x558d8b){const _0xcb7eb8=_0x4491e0;return _0x558d8b[_0xcb7eb8(0x95)][_0xcb7eb8(0x8e)](_0xcb7eb8(0x8c))||_0x558d8b[_0xcb7eb8(0x95)][_0xcb7eb8(0x8e)](_0xcb7eb8(0x7c));}
23
+ function _0x1a8c(){const _0x796ee3=['startsWith','2892780eSvGxz','498764uBXZhA','collaboration.channelId','originalSuggestionId','reconnect','catch','message','type','1606905RQdexA','adapter','off','get','listenTo','_trackChangesService','editor','size','connection','isConnected','7023604KtCURa','isOfficialPlugin','getUser','9UcYhKp','addUser','open','addSuggestionData','TrackChangesService','requires','init','pluginName','getMany','cloud-services-internal-error:\x20Request\x20timeout.','getSuggestion','plugins','state','20sxODcJ','from','5641947afzgZx','connect','find','isPremiumPlugin','addToReconnectionStack','connected','_fetchMissingUsersForThreads','26071460MUOKth','update','then','cloud-services-internal-error:\x20Not\x20connected.','hasSuggestion','config','set','attributes','suggestionUpdated','_saved','_waitForServiceReady','88607yUTxac','TrackChangesEditing','_bufferedRequests','add','CloudServicesTrackChangesAdapter','values','data','delete','8kYtNcE','11jqewhv'];_0x1a8c=function(){return _0x796ee3;};return _0x1a8c();}const _0x500933=_0x165b;(function(_0x429fe1,_0x44c93b){const _0x3914ca=_0x165b,_0x1dc286=_0x429fe1();while(!![]){try{const _0x1c2b41=-parseInt(_0x3914ca(0xf6))/0x1*(parseInt(_0x3914ca(0xe2))/0x2)+parseInt(_0x3914ca(0x116))/0x3*(parseInt(_0x3914ca(0x102))/0x4)+-parseInt(_0x3914ca(0x109))/0x5+parseInt(_0x3914ca(0x101))/0x6+-parseInt(_0x3914ca(0x113))/0x7+-parseInt(_0x3914ca(0xfe))/0x8*(parseInt(_0x3914ca(0xe4))/0x9)+parseInt(_0x3914ca(0xeb))/0xa*(parseInt(_0x3914ca(0xff))/0xb);if(_0x1c2b41===_0x44c93b)break;else _0x1dc286['push'](_0x1dc286['shift']());}catch(_0x162d4f){_0x1dc286['push'](_0x1dc286['shift']());}}}(_0x1a8c,0x98beb));function _0x165b(_0x5286b9,_0x243ddb){const _0x1a8c15=_0x1a8c();return _0x165b=function(_0x165b49,_0x543526){_0x165b49=_0x165b49-0xe1;let _0x5f1666=_0x1a8c15[_0x165b49];return _0x5f1666;},_0x165b(_0x5286b9,_0x243ddb);}import{Plugin as _0x1ebf07}from'ckeditor5/src/core.js';import{User as _0x4a572a,TrackChangesService as _0x3c246c}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x29e963}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x594401}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x13cdf9}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x1ebf07{static [_0x500933(0x11a)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x3c246c)());[_0x500933(0xf8)];[_0x500933(0x10e)];static get[_0x500933(0x11b)](){const _0x13d380=_0x500933;return[_0x594401,_0x13d380(0xf7),_0x29e963];}static get[_0x500933(0x11d)](){const _0x373b8c=_0x500933;return _0x373b8c(0xfa);}static get[_0x500933(0x114)](){return!0x0;}static get[_0x500933(0xe7)](){return!0x0;}constructor(_0x43fcfb){const _0x1039a4=_0x500933;super(_0x43fcfb);const _0x393f99=this[_0x1039a4(0x10f)][_0x1039a4(0xf0)][_0x1039a4(0x10c)](_0x1039a4(0x103));this[_0x1039a4(0xf8)]=new Map(),this[_0x1039a4(0x10e)]=new CloudServicesTrackChangesAdapter[(_0x1039a4(0x11a))](_0x393f99);}[_0x500933(0x11c)](){const _0x3a2e53=_0x500933,_0x1e6a05=this[_0x3a2e53(0x10f)][_0x3a2e53(0x121)][_0x3a2e53(0x10c)](_0x29e963),_0x40e0ca=this[_0x3a2e53(0x10f)][_0x3a2e53(0x121)][_0x3a2e53(0x10c)](_0x3a2e53(0xf7));return _0x40e0ca[_0x3a2e53(0x10a)]={'getSuggestion':async _0x178439=>{const _0x2bce05=_0x3a2e53;await this[_0x2bce05(0xf5)]();const _0x353431=await this[_0x2bce05(0x10e)][_0x2bce05(0x10c)](_0x178439)[_0x2bce05(0x106)](et);return await this[_0x2bce05(0xea)]([_0x353431]),_0x353431;},'addSuggestion':async({id:_0x5c9226,type:_0x56e3cc,data:_0x50dd27,originalSuggestionId:_0x1f6e15,attributes:_0x54d295})=>{const _0x50749a=_0x3a2e53;await this[_0x50749a(0xf5)]();const _0x53e48e={'id':_0x5c9226,'type':_0x56e3cc,'data':_0x50dd27,'originalSuggestionId':_0x1f6e15,'attributes':_0x54d295},_0x19925e=await this[_0x50749a(0x10e)][_0x50749a(0xf9)](_0x5c9226,_0x56e3cc,_0x50dd27,_0x1f6e15,_0x54d295)[_0x50749a(0x106)](_0xc6e6c4=>{if(I(_0xc6e6c4))return new Promise(_0x30078c=>{const _0x1d9939=_0x165b;this[_0x1d9939(0xf8)][_0x1d9939(0xf1)](_0x5c9226,{'resolve':_0x30078c,'suggestionData':_0x53e48e});});throw _0xc6e6c4;});return this[_0x50749a(0xf8)][_0x50749a(0xfd)](_0x5c9226),_0x19925e;},'updateSuggestion':async(_0x40b25f,_0x2321ed)=>{const _0x16c794=_0x3a2e53;if(await this[_0x16c794(0xf5)](),_0x16c794(0x118)!==_0x2321ed[_0x16c794(0xe1)])return this[_0x16c794(0x10e)][_0x16c794(0xec)](_0x40b25f,_0x2321ed)[_0x16c794(0x106)](et);}},this[_0x3a2e53(0x10d)](this[_0x3a2e53(0x10e)],_0x3a2e53(0xf3),(_0x1998c7,_0x3d9960)=>{const _0x401f5d=_0x3a2e53;_0x40e0ca[_0x401f5d(0xef)](_0x3d9960['id'])&&(_0x40e0ca[_0x401f5d(0x120)](_0x3d9960['id'])[_0x401f5d(0xf2)]=_0x3d9960[_0x401f5d(0xf2)]);}),this[_0x3a2e53(0x10e)][_0x3a2e53(0xe5)](_0x1e6a05[_0x3a2e53(0x111)])[_0x3a2e53(0xed)](_0x5bdff2=>(_0x1e6a05[_0x3a2e53(0xe8)](this),this[_0x3a2e53(0xea)](_0x5bdff2)[_0x3a2e53(0xed)](()=>{const _0x26dad3=_0x3a2e53;for(const _0x368b50 of _0x5bdff2){_0x40e0ca[_0x26dad3(0x119)](_0x368b50)[_0x26dad3(0xf4)]=!0x0;}})));}async[_0x500933(0x105)](){const _0x1dfef3=_0x500933,_0x281918=this[_0x1dfef3(0x10f)][_0x1dfef3(0x121)][_0x1dfef3(0x10c)](_0x1dfef3(0xf7)),{connection:_0x38949c}=this[_0x1dfef3(0x10f)][_0x1dfef3(0x121)][_0x1dfef3(0x10c)](_0x29e963),_0x9c18a4=await this[_0x1dfef3(0x10e)][_0x1dfef3(0xe5)](_0x38949c);await this[_0x1dfef3(0xea)](_0x9c18a4);for(const {suggestionData:_0x419b2d,resolve:_0x3332b3}of this[_0x1dfef3(0xf8)][_0x1dfef3(0xfb)]()){let _0x3f988d=_0x9c18a4[_0x1dfef3(0xe6)](_0x4d5c07=>_0x4d5c07['id']===_0x419b2d['id']);_0x3f988d||(_0x3f988d=await this[_0x1dfef3(0x10e)][_0x1dfef3(0xf9)](_0x419b2d['id'],_0x419b2d[_0x1dfef3(0x108)],_0x419b2d[_0x1dfef3(0xfc)],_0x419b2d[_0x1dfef3(0x104)])),_0x3332b3(_0x3f988d);}for(const _0x4563b0 of _0x9c18a4)_0x281918[_0x1dfef3(0xef)](_0x4563b0['id'])||_0x281918[_0x1dfef3(0x119)](_0x4563b0);}async[_0x500933(0xf5)](){const _0x4a457b=_0x500933;this[_0x4a457b(0x10e)][_0x4a457b(0x112)]||await new Promise(_0x243ab3=>{const _0x24c35a=_0x4a457b;this[_0x24c35a(0x10d)](this[_0x24c35a(0x10e)],_0x24c35a(0xe9),_0x59c005=>{const _0x17b4e3=_0x24c35a;_0x59c005[_0x17b4e3(0x10b)](),_0x243ab3();});});}async[_0x500933(0xea)](_0x38e119){const _0x1d0de5=_0x500933,_0x2e41c3=this[_0x1d0de5(0x10f)][_0x1d0de5(0x121)][_0x1d0de5(0x10c)](_0x13cdf9),{connection:_0x3fdcf6}=this[_0x1d0de5(0x10f)][_0x1d0de5(0x121)][_0x1d0de5(0x10c)](_0x29e963),_0x4f5b13=new Set();for(const {authorId:_0x3cbec7}of _0x38e119)_0x2e41c3[_0x1d0de5(0x115)](_0x3cbec7)||_0x4f5b13[_0x1d0de5(0xf9)](_0x3cbec7);if(0x0===_0x4f5b13[_0x1d0de5(0x110)])return;const _0x5ae3fb=await _0x4a572a[_0x1d0de5(0x11e)](_0x3fdcf6,Array[_0x1d0de5(0xe3)](_0x4f5b13));for(const _0x31f7b4 of _0x5ae3fb)_0x2e41c3[_0x1d0de5(0x115)](_0x31f7b4['id'])||_0x2e41c3[_0x1d0de5(0x117)](_0x31f7b4);}}function et(_0x4d0c6c){if(I(_0x4d0c6c))return new Promise(()=>{});throw _0x4d0c6c;}function I(_0x250341){const _0x23b94d=_0x500933;return _0x250341[_0x23b94d(0x107)][_0x23b94d(0x100)](_0x23b94d(0xee))||_0x250341[_0x23b94d(0x107)][_0x23b94d(0x100)](_0x23b94d(0x11f));}