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

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 _0x324df5=_0x5046;(function(_0x10be3d,_0x4f0887){const _0x87a3e8=_0x5046,_0x1f2a7e=_0x10be3d();while(!![]){try{const _0x13114d=parseInt(_0x87a3e8(0x176))/0x1*(parseInt(_0x87a3e8(0x190))/0x2)+-parseInt(_0x87a3e8(0x154))/0x3*(parseInt(_0x87a3e8(0x197))/0x4)+-parseInt(_0x87a3e8(0x15a))/0x5*(parseInt(_0x87a3e8(0x18a))/0x6)+-parseInt(_0x87a3e8(0x15e))/0x7+parseInt(_0x87a3e8(0x166))/0x8*(-parseInt(_0x87a3e8(0x199))/0x9)+-parseInt(_0x87a3e8(0x163))/0xa+parseInt(_0x87a3e8(0x198))/0xb;if(_0x13114d===_0x4f0887)break;else _0x1f2a7e['push'](_0x1f2a7e['shift']());}catch(_0x23908a){_0x1f2a7e['push'](_0x1f2a7e['shift']());}}}(_0x4309,0x190e6));function _0x5046(_0x7b24ae,_0x3fdff7){const _0x430925=_0x4309();return _0x5046=function(_0x50466d,_0x43dc90){_0x50466d=_0x50466d-0x154;let _0x20c0c3=_0x430925[_0x50466d];return _0x20c0c3;},_0x5046(_0x7b24ae,_0x3fdff7);}function _0x4309(){const _0x1223fd=['webSocketUrl','then','6PKXGIC','WebSocketGateway','connect','pluginName','_domEmitter','websocketgateway-missing-token','limitExceeded','216424GZeagD','6193088cKVIPM','9LceDki','websocketgateway-plugin-already-registered','cloudServices.requestTimeout','isOfficialPlugin','CONNECTED','init','3oQAwvf','context','has','constructor','_reconnect','reconnect','45WzDplI','connection','state','CONNECTING','91126YFaDST','showWarning','real-time-collaboration','initialReconnectionInterval','offline','737950WsTfan','connected','removeFromReconnectionStack','1275056mcIeia','addToReconnectionStack','change:me','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.','DISCONNECTED','delete','error','config','cloudservices-init','websocketgateway-invalid-plugin-interface','from','_shouldPluginsReconnect','get','define','bind','12902TByjBY','set','cloudServices.connectionTimeout','stopListening','websocketgateway-missing-websocket-url','isInReconnectionStack','add','listenTo','token','all','disconnect','code','_isBrowserOffline','online','cloudservices-reconnection-error','CloudServices','Connected\x20users\x20limit\x20exceeded','catch','_reconnectionStack','function','132522dlPXBb','isPremiumPlugin','requires','destroy'];_0x4309=function(){return _0x1223fd;};return _0x4309();}import{ContextPlugin as _0x3f0a4e}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x32d7d7,CKEditorError as _0x242d85}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x1a24c3,WEB_SOCKET_GATEWAY_STATES as _0x49ff2d}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x2db49f}from'ckeditor5/src/ui.js';export class WebSocketGateway extends _0x3f0a4e{static [_0x324df5(0x191)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x1a24c3)());static [_0x324df5(0x161)]=0x3e8;[_0x324df5(0x15b)];[_0x324df5(0x188)];[_0x324df5(0x172)];[_0x324df5(0x194)];static get[_0x324df5(0x18c)](){const _0x397fc6=_0x324df5;return[_0x397fc6(0x185),_0x2db49f];}static get[_0x324df5(0x193)](){const _0x39a81c=_0x324df5;return _0x39a81c(0x191);}static get[_0x324df5(0x19c)](){return!0x0;}static get[_0x324df5(0x18b)](){return!0x0;}constructor(_0x22c0da){const _0x26f127=_0x324df5;super(_0x22c0da),this[_0x26f127(0x177)](_0x26f127(0x15c),_0x49ff2d[_0x26f127(0x19d)]),this[_0x26f127(0x177)](_0x26f127(0x182),!0x1),this[_0x26f127(0x188)]=new Set(),this[_0x26f127(0x172)]=!0x1,this[_0x26f127(0x194)]=new(_0x32d7d7())();}[_0x324df5(0x19e)](){const _0xf83dff=_0x324df5,_0x60120a=this[_0xf83dff(0x155)],_0x1c96bd=_0x60120a[_0xf83dff(0x169)][_0xf83dff(0x173)](_0xf83dff(0x185)),_0x359978=_0x60120a[_0xf83dff(0x169)][_0xf83dff(0x173)](_0x2db49f);if(!_0x1c96bd[_0xf83dff(0x17e)])throw new _0x242d85(_0xf83dff(0x195),this);if(!_0x1c96bd[_0xf83dff(0x18e)])throw new _0x242d85(_0xf83dff(0x17a),this);return this[_0xf83dff(0x194)][_0xf83dff(0x17d)](window,_0xf83dff(0x162),()=>this[_0xf83dff(0x182)]=!0x0),this[_0xf83dff(0x194)][_0xf83dff(0x17d)](window,_0xf83dff(0x183),()=>this[_0xf83dff(0x182)]=!0x1),this[_0xf83dff(0x155)][_0xf83dff(0x16e)][_0xf83dff(0x174)](_0xf83dff(0x178),0xa),this[_0xf83dff(0x155)][_0xf83dff(0x16e)][_0xf83dff(0x174)](_0xf83dff(0x19b),0x14),WebSocketGateway[_0xf83dff(0x191)][_0xf83dff(0x192)](_0x1c96bd[_0xf83dff(0x17e)],_0x1c96bd[_0xf83dff(0x18e)],{'timeout':0x3e8*this[_0xf83dff(0x155)][_0xf83dff(0x16e)][_0xf83dff(0x173)](_0xf83dff(0x178)),'requestTimeout':0x3e8*this[_0xf83dff(0x155)][_0xf83dff(0x16e)][_0xf83dff(0x173)](_0xf83dff(0x19b))})[_0xf83dff(0x18f)](_0x5c9459=>{const _0x1f9f0a=_0xf83dff;if(this[_0x1f9f0a(0x15b)]=_0x5c9459,this[_0x1f9f0a(0x175)](_0x1f9f0a(0x15c))['to'](_0x5c9459,_0x1f9f0a(0x15c),this,_0x1f9f0a(0x182),(_0x3fa432,_0x5a800e)=>(_0x1f9f0a(0x164)!==_0x3fa432&&(this[_0x1f9f0a(0x172)]=!0x0),_0x5a800e||_0x3fa432!==_0x49ff2d[_0x1f9f0a(0x19d)]?_0x49ff2d[_0x1f9f0a(0x16b)]:this[_0x1f9f0a(0x15c)]==_0x49ff2d[_0x1f9f0a(0x16b)]&&this[_0x1f9f0a(0x172)]?(this[_0x1f9f0a(0x172)]=!0x1,this[_0x1f9f0a(0x158)](),_0x49ff2d[_0x1f9f0a(0x15d)]):_0x49ff2d[_0x1f9f0a(0x19d)])),this[_0x1f9f0a(0x15b)]['on'](_0x1f9f0a(0x16d),(_0x40109b,_0x595298)=>{const _0x159ae8=_0x1f9f0a;if(_0x159ae8(0x196)!==_0x595298[_0x159ae8(0x181)])throw console[_0x159ae8(0x16d)](_0x595298),new _0x242d85(_0x159ae8(0x16f),null,{'originalError':_0x595298});_0x359978[_0x159ae8(0x15f)](_0x159ae8(0x16a),{'title':_0x159ae8(0x186),'namespace':_0x159ae8(0x160)});}),!_0x5c9459['me'])return new Promise(_0x44e6c6=>_0x5c9459['on'](_0x1f9f0a(0x168),_0x44e6c6));})[_0xf83dff(0x187)](_0x7300af=>{const _0x17fa9c=_0xf83dff;throw console[_0x17fa9c(0x16d)](_0x7300af),new _0x242d85(_0x17fa9c(0x16f),null,{'originalError':_0x7300af});});}[_0x324df5(0x167)](_0x3f9a36){const _0x58ac15=_0x324df5;if(_0x58ac15(0x189)!=typeof _0x3f9a36[_0x58ac15(0x159)])throw new _0x242d85(_0x58ac15(0x170),this);if(this[_0x58ac15(0x17b)](_0x3f9a36))throw new _0x242d85(_0x58ac15(0x19a),this,{'name':_0x3f9a36[_0x58ac15(0x157)][_0x58ac15(0x193)]});this[_0x58ac15(0x188)][_0x58ac15(0x17c)](_0x3f9a36);}[_0x324df5(0x165)](_0x3b8cf8){const _0x5e6a46=_0x324df5;this[_0x5e6a46(0x188)][_0x5e6a46(0x16c)](_0x3b8cf8);}[_0x324df5(0x17b)](_0x2738b8){const _0x3c5e10=_0x324df5;return this[_0x3c5e10(0x188)][_0x3c5e10(0x156)](_0x2738b8);}[_0x324df5(0x158)](){const _0x44d61a=_0x324df5;return this[_0x44d61a(0x15b)][_0x44d61a(0x159)]()[_0x44d61a(0x18f)](()=>Promise[_0x44d61a(0x17f)](Array[_0x44d61a(0x171)](this[_0x44d61a(0x188)],_0x4ec42c=>_0x4ec42c[_0x44d61a(0x159)]())))[_0x44d61a(0x18f)](()=>this[_0x44d61a(0x15c)]=_0x49ff2d[_0x44d61a(0x19d)])[_0x44d61a(0x187)](_0x21b919=>{const _0x58ad42=_0x44d61a;throw console[_0x58ad42(0x16d)](_0x21b919),new _0x242d85(_0x58ad42(0x184),this[_0x58ad42(0x155)]);});}[_0x324df5(0x180)](){const _0x5c4afd=_0x324df5;this[_0x5c4afd(0x15b)]&&this[_0x5c4afd(0x15b)][_0x5c4afd(0x180)](),this[_0x5c4afd(0x15c)]=_0x49ff2d[_0x5c4afd(0x16b)],this[_0x5c4afd(0x194)][_0x5c4afd(0x179)]();}[_0x324df5(0x18d)](){const _0x3628b7=_0x324df5;this[_0x3628b7(0x180)](),super[_0x3628b7(0x18d)]();}}
23
+ const _0x1130a5=_0x50c3;function _0x50c3(_0x16dc4e,_0x23306f){const _0x24d359=_0x24d3();return _0x50c3=function(_0x50c342,_0x111e93){_0x50c342=_0x50c342-0x1af;let _0x3690bc=_0x24d359[_0x50c342];return _0x3690bc;},_0x50c3(_0x16dc4e,_0x23306f);}(function(_0x5d041c,_0xf45cb9){const _0x45bc70=_0x50c3,_0x5e47b1=_0x5d041c();while(!![]){try{const _0x5b6cdd=-parseInt(_0x45bc70(0x1c2))/0x1+-parseInt(_0x45bc70(0x1bc))/0x2+-parseInt(_0x45bc70(0x1b1))/0x3*(parseInt(_0x45bc70(0x1ee))/0x4)+parseInt(_0x45bc70(0x1f7))/0x5*(parseInt(_0x45bc70(0x1d2))/0x6)+parseInt(_0x45bc70(0x1db))/0x7+-parseInt(_0x45bc70(0x1b5))/0x8+parseInt(_0x45bc70(0x1c3))/0x9;if(_0x5b6cdd===_0xf45cb9)break;else _0x5e47b1['push'](_0x5e47b1['shift']());}catch(_0x28ac98){_0x5e47b1['push'](_0x5e47b1['shift']());}}}(_0x24d3,0x8df0e));import{ContextPlugin as _0x11c97e}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x4c2641,CKEditorError as _0x4ea45c}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x4ea4e9,WEB_SOCKET_GATEWAY_STATES as _0x5370ca}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x11d965}from'ckeditor5/src/ui.js';function _0x24d3(){const _0x587534=['1110844nCcEEz','get','_reconnectionStack','has','offline','listenTo','context','config','DISCONNECTED','5AAKeGm','change:me','error','3lZcYbN','catch','removeFromReconnectionStack','connected','6481912sMQofM','CONNECTING','websocketgateway-plugin-already-registered','_reconnect','add','websocketgateway-invalid-plugin-interface','limitExceeded','1080170xuoSkz','constructor','define','reconnect','addToReconnectionStack','showWarning','1027572dJUBmP','22307040JKZLvw','cloudservices-init','isPremiumPlugin','stopListening','_domEmitter','from','state','Connected\x20users\x20limit\x20exceeded','real-time-collaboration','cloudServices.requestTimeout','all','webSocketUrl','isOfficialPlugin','disconnect','online','121956VbUTQu','CloudServices','WebSocketGateway','set','isInReconnectionStack','websocketgateway-missing-token','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.','_shouldPluginsReconnect','bind','5166777mYCwxm','websocketgateway-missing-websocket-url','cloudServices.connectionTimeout','then','CONNECTED','pluginName','connection','code','initialReconnectionInterval','plugins','cloudservices-reconnection-error','token','destroy','connect','init','_isBrowserOffline','function','delete','requires'];_0x24d3=function(){return _0x587534;};return _0x24d3();}export class WebSocketGateway extends _0x11c97e{static [_0x1130a5(0x1d4)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x4ea4e9)());static [_0x1130a5(0x1e3)]=0x3e8;[_0x1130a5(0x1e1)];[_0x1130a5(0x1f0)];[_0x1130a5(0x1d9)];[_0x1130a5(0x1c7)];static get[_0x1130a5(0x1ed)](){const _0xeed9ec=_0x1130a5;return[_0xeed9ec(0x1d3),_0x11d965];}static get[_0x1130a5(0x1e0)](){const _0x31a203=_0x1130a5;return _0x31a203(0x1d4);}static get[_0x1130a5(0x1cf)](){return!0x0;}static get[_0x1130a5(0x1c5)](){return!0x0;}constructor(_0x5874c1){const _0x38cf8b=_0x1130a5;super(_0x5874c1),this[_0x38cf8b(0x1d5)](_0x38cf8b(0x1c9),_0x5370ca[_0x38cf8b(0x1df)]),this[_0x38cf8b(0x1d5)](_0x38cf8b(0x1ea),!0x1),this[_0x38cf8b(0x1f0)]=new Set(),this[_0x38cf8b(0x1d9)]=!0x1,this[_0x38cf8b(0x1c7)]=new(_0x4c2641())();}[_0x1130a5(0x1e9)](){const _0x1fb253=_0x1130a5,_0x4db9df=this[_0x1fb253(0x1f4)],_0x48484a=_0x4db9df[_0x1fb253(0x1e4)][_0x1fb253(0x1ef)](_0x1fb253(0x1d3)),_0x5aa6fd=_0x4db9df[_0x1fb253(0x1e4)][_0x1fb253(0x1ef)](_0x11d965);if(!_0x48484a[_0x1fb253(0x1e6)])throw new _0x4ea45c(_0x1fb253(0x1d7),this);if(!_0x48484a[_0x1fb253(0x1ce)])throw new _0x4ea45c(_0x1fb253(0x1dc),this);return this[_0x1fb253(0x1c7)][_0x1fb253(0x1f3)](window,_0x1fb253(0x1f2),()=>this[_0x1fb253(0x1ea)]=!0x0),this[_0x1fb253(0x1c7)][_0x1fb253(0x1f3)](window,_0x1fb253(0x1d1),()=>this[_0x1fb253(0x1ea)]=!0x1),this[_0x1fb253(0x1f4)][_0x1fb253(0x1f5)][_0x1fb253(0x1be)](_0x1fb253(0x1dd),0xa),this[_0x1fb253(0x1f4)][_0x1fb253(0x1f5)][_0x1fb253(0x1be)](_0x1fb253(0x1cc),0x14),WebSocketGateway[_0x1fb253(0x1d4)][_0x1fb253(0x1e8)](_0x48484a[_0x1fb253(0x1e6)],_0x48484a[_0x1fb253(0x1ce)],{'timeout':0x3e8*this[_0x1fb253(0x1f4)][_0x1fb253(0x1f5)][_0x1fb253(0x1ef)](_0x1fb253(0x1dd)),'requestTimeout':0x3e8*this[_0x1fb253(0x1f4)][_0x1fb253(0x1f5)][_0x1fb253(0x1ef)](_0x1fb253(0x1cc))})[_0x1fb253(0x1de)](_0xffa304=>{const _0x5c6e38=_0x1fb253;if(this[_0x5c6e38(0x1e1)]=_0xffa304,this[_0x5c6e38(0x1da)](_0x5c6e38(0x1c9))['to'](_0xffa304,_0x5c6e38(0x1c9),this,_0x5c6e38(0x1ea),(_0x4be42c,_0x9dddb2)=>(_0x5c6e38(0x1b4)!==_0x4be42c&&(this[_0x5c6e38(0x1d9)]=!0x0),_0x9dddb2||_0x4be42c!==_0x5370ca[_0x5c6e38(0x1df)]?_0x5370ca[_0x5c6e38(0x1f6)]:this[_0x5c6e38(0x1c9)]==_0x5370ca[_0x5c6e38(0x1f6)]&&this[_0x5c6e38(0x1d9)]?(this[_0x5c6e38(0x1d9)]=!0x1,this[_0x5c6e38(0x1b8)](),_0x5370ca[_0x5c6e38(0x1b6)]):_0x5370ca[_0x5c6e38(0x1df)])),this[_0x5c6e38(0x1e1)]['on'](_0x5c6e38(0x1b0),(_0x589745,_0x2b113a)=>{const _0x136e4b=_0x5c6e38;if(_0x136e4b(0x1bb)!==_0x2b113a[_0x136e4b(0x1e2)])throw console[_0x136e4b(0x1b0)](_0x2b113a),new _0x4ea45c(_0x136e4b(0x1c4),null,{'originalError':_0x2b113a});_0x5aa6fd[_0x136e4b(0x1c1)](_0x136e4b(0x1d8),{'title':_0x136e4b(0x1ca),'namespace':_0x136e4b(0x1cb)});}),!_0xffa304['me'])return new Promise(_0x40fbc3=>_0xffa304['on'](_0x5c6e38(0x1af),_0x40fbc3));})[_0x1fb253(0x1b2)](_0x26e5c2=>{const _0x4c9447=_0x1fb253;throw console[_0x4c9447(0x1b0)](_0x26e5c2),new _0x4ea45c(_0x4c9447(0x1c4),null,{'originalError':_0x26e5c2});});}[_0x1130a5(0x1c0)](_0x167157){const _0x3f1d26=_0x1130a5;if(_0x3f1d26(0x1eb)!=typeof _0x167157[_0x3f1d26(0x1bf)])throw new _0x4ea45c(_0x3f1d26(0x1ba),this);if(this[_0x3f1d26(0x1d6)](_0x167157))throw new _0x4ea45c(_0x3f1d26(0x1b7),this,{'name':_0x167157[_0x3f1d26(0x1bd)][_0x3f1d26(0x1e0)]});this[_0x3f1d26(0x1f0)][_0x3f1d26(0x1b9)](_0x167157);}[_0x1130a5(0x1b3)](_0x15012e){const _0x3bdc07=_0x1130a5;this[_0x3bdc07(0x1f0)][_0x3bdc07(0x1ec)](_0x15012e);}[_0x1130a5(0x1d6)](_0x4ff9f3){const _0x167a3d=_0x1130a5;return this[_0x167a3d(0x1f0)][_0x167a3d(0x1f1)](_0x4ff9f3);}[_0x1130a5(0x1b8)](){const _0x4516b0=_0x1130a5;return this[_0x4516b0(0x1e1)][_0x4516b0(0x1bf)]()[_0x4516b0(0x1de)](()=>Promise[_0x4516b0(0x1cd)](Array[_0x4516b0(0x1c8)](this[_0x4516b0(0x1f0)],_0x514090=>_0x514090[_0x4516b0(0x1bf)]())))[_0x4516b0(0x1de)](()=>this[_0x4516b0(0x1c9)]=_0x5370ca[_0x4516b0(0x1df)])[_0x4516b0(0x1b2)](_0x7eb5ae=>{const _0x4aa0ae=_0x4516b0;throw console[_0x4aa0ae(0x1b0)](_0x7eb5ae),new _0x4ea45c(_0x4aa0ae(0x1e5),this[_0x4aa0ae(0x1f4)]);});}[_0x1130a5(0x1d0)](){const _0x1709bd=_0x1130a5;this[_0x1709bd(0x1e1)]&&this[_0x1709bd(0x1e1)][_0x1709bd(0x1d0)](),this[_0x1709bd(0x1c9)]=_0x5370ca[_0x1709bd(0x1f6)],this[_0x1709bd(0x1c7)][_0x1709bd(0x1c6)]();}[_0x1130a5(0x1e7)](){const _0x55c88a=_0x1130a5;this[_0x55c88a(0x1d0)](),super[_0x55c88a(0x1e7)]();}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a7cb5=_0x173d;(function(_0x5055b2,_0x16ec5f){const _0x41160f=_0x173d,_0x5e7aa9=_0x5055b2();while(!![]){try{const _0x5613b2=-parseInt(_0x41160f(0xc7))/0x1+-parseInt(_0x41160f(0xbc))/0x2+-parseInt(_0x41160f(0xf3))/0x3*(parseInt(_0x41160f(0xcb))/0x4)+-parseInt(_0x41160f(0xc9))/0x5*(-parseInt(_0x41160f(0xe3))/0x6)+parseInt(_0x41160f(0x10d))/0x7*(-parseInt(_0x41160f(0xf2))/0x8)+-parseInt(_0x41160f(0x11e))/0x9+parseInt(_0x41160f(0xcd))/0xa;if(_0x5613b2===_0x16ec5f)break;else _0x5e7aa9['push'](_0x5e7aa9['shift']());}catch(_0x49b967){_0x5e7aa9['push'](_0x5e7aa9['shift']());}}}(_0xabb6,0xf361b));import{Plugin as _0x2ea89f}from'ckeditor5/src/core.js';import{version as _0x36276f}from'ckeditor5/src/utils.js';import{Users as _0x4dd49a}from'ckeditor5-collaboration/src/collaboration-core.js';function _0xabb6(){const _0xd12a29=['collaboration.channelId','_getLatestVersion','_createCurrentRevision','updateRevisions','diffData','isPremiumPlugin','isConnected','max','setRevisionData','_revisionTracker','8763240WxuInY','_bufferedUpdates','_waitForServiceReady','keys','CloudServicesRevisionHistoryAdapter','startsWith','_isPendingUpdate','_offset','cloud-services-internal-error:\x20Not\x20connected.','sessionId','getMany','getUser','_update','_preventResendingRevisionData','revisionsUpdated','24ORvhgy','129JGhftg','remove','listenTo','_oldOffset','isEnabled','_fetchMissingUsers','wrongRequestId','RevisionHistoryService','createdAt','reInit','sendBufferedUpdates','then','creatorId','adapter','connected','400','state','authors','_handleRevisionsUpdate','reconnect','add','editor','addUser','serverHistory','pluginName','data','3202577rwiBzp','isOfficialPlugin','RevisionTracker','affectsData','isEmptyCurrent','plugins','reverse','cloud-services-internal-error:\x20Request\x20timeout.','map','cloudServices.bundleVersion','bind','connect','change:_isPendingUpdate','_revisionDataBuilder','code','_fixRevision','length','17357319JxRelC','init','isBundleUploaded','message','get','repository','requires','_handleReconnectionError','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','_lastRequestId','setSource','off','currentRevision','change:_isConnected','has','addRevisionData','toVersion','getOperations','2149114VXjOwP','from','addToReconnectionStack','_startingVersion','once','authorsIds','destroy','_isConnected','marker','RevisionHistory','_revisions','593952KeJAhQ','type','5xMEUPT','getRevisions','63264sJwXBJ','config','51860720peCvfI','_revisionHistoryService','_getLatestVersionFromServerOperations','CONNECTED','getRevision','connection','catch','fromVersion','baseVersion','buildRevisionData','_bufferUpdate','size'];_0xabb6=function(){return _0xd12a29;};return _0xabb6();}import{RealTimeCollaborationClient as _0x1fc134}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x2f5432}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x3d75f0}from'../realtimecollaborativeediting/sessions.js';function _0x173d(_0x2a0535,_0x1b8e30){const _0xabb603=_0xabb6();return _0x173d=function(_0x173d81,_0x5903a2){_0x173d81=_0x173d81-0xad;let _0x565dce=_0xabb603[_0x173d81];return _0x565dce;},_0x173d(_0x2a0535,_0x1b8e30);}import{EditorService as _0x340152,RevisionHistoryService as _0x540f1b,User as _0x579233,WEB_SOCKET_GATEWAY_STATES as _0x447f91}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x2ea89f{static [_0x2a7cb5(0xfa)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x540f1b)());[_0x2a7cb5(0xb3)];[_0x2a7cb5(0xe2)];[_0x2a7cb5(0xce)];[_0x2a7cb5(0xf6)];static get[_0x2a7cb5(0xb0)](){const _0x57190b=_0x2a7cb5;return[_0x2f5432,_0x1fc134,_0x57190b(0xc5),_0x3d75f0,_0x4dd49a];}static get[_0x2a7cb5(0x10b)](){const _0x2c71db=_0x2a7cb5;return _0x2c71db(0xe7);}static get[_0x2a7cb5(0x10e)](){return!0x0;}static get[_0x2a7cb5(0xde)](){return!0x0;}constructor(_0x28ded7){const _0x3bef1e=_0x2a7cb5;super(_0x28ded7);const _0x20d18d=this[_0x3bef1e(0x108)][_0x3bef1e(0xcc)][_0x3bef1e(0xae)](_0x3bef1e(0xd9));this[_0x3bef1e(0xb3)]=null,this[_0x3bef1e(0xe2)]=this[_0x3bef1e(0x108)][_0x3bef1e(0x112)][_0x3bef1e(0xae)](_0x3bef1e(0x10f)),this[_0x3bef1e(0xce)]=new CloudServicesRevisionHistoryAdapter[(_0x3bef1e(0xfa))](_0x20d18d);}async[_0x2a7cb5(0x11f)](){const _0x2a8ddc=_0x2a7cb5,_0x5c0645=this[_0x2a8ddc(0x108)][_0x2a8ddc(0x112)][_0x2a8ddc(0xae)](_0x1fc134),_0x3cb427=_0x5c0645[_0x2a8ddc(0x10a)],_0x357aa1=this[_0x2a8ddc(0x108)][_0x2a8ddc(0x112)][_0x2a8ddc(0xae)](_0x2f5432);this[_0x2a8ddc(0xe2)][_0x2a8ddc(0xb4)]({'history':_0x3cb427,'getLatestVersion':()=>this[_0x2a8ddc(0xda)](),'getCurrentRevisionId':()=>_0x5c0645[_0x2a8ddc(0xec)]});const _0x4b6513=this[_0x2a8ddc(0x108)][_0x2a8ddc(0xcc)][_0x2a8ddc(0xae)](_0x2a8ddc(0x116))||_0x36276f,_0x6bef1a=await _0x340152[_0x2a8ddc(0x120)](_0x357aa1[_0x2a8ddc(0xd2)],_0x4b6513);this[_0x2a8ddc(0x108)][_0x2a8ddc(0x112)][_0x2a8ddc(0xae)](_0x2a8ddc(0xc5))[_0x2a8ddc(0x100)]={'getRevision':async({revisionId:_0x184d44})=>(await this[_0x2a8ddc(0xe5)](),await this[_0x2a8ddc(0xce)][_0x2a8ddc(0xd1)](_0x184d44)),'updateRevisions':async _0x5ee1fb=>{const _0x2042e4=_0x2a8ddc;await this[_0x2042e4(0xe5)]();const _0x5a42b1=this[_0x2042e4(0xe2)][_0x2042e4(0xb6)];if(_0x6bef1a&&0x1===_0x5ee1fb[_0x2042e4(0x11d)]&&_0x5ee1fb[0x0]['id']===_0x5a42b1['id'])return _0x5ee1fb;for(const _0x2285bc of _0x5ee1fb)_0x2285bc['id']===_0x5a42b1['id']&&(_0x2285bc[_0x2042e4(0x111)]=_0x2285bc[_0x2042e4(0xd4)]===_0x2285bc[_0x2042e4(0xba)]);return this[_0x2042e4(0xce)][_0x2042e4(0xdc)](_0x5ee1fb,this[_0x2042e4(0xb3)])[_0x2042e4(0xfe)](_0x317c51=>(this[_0x2042e4(0xb3)]=_0x317c51,_0x5ee1fb))[_0x2042e4(0xd3)](_0x32b305=>{const _0x3d5e3b=_0x2042e4;if(st(_0x32b305)||_0x3d5e3b(0x102)===_0x32b305[_0x3d5e3b(0x11b)]&&void 0x0!==_0x32b305[_0x3d5e3b(0x10c)][_0x3d5e3b(0xf9)]){for(const _0x57377d of _0x5ee1fb){!this[_0x3d5e3b(0xe2)][_0x3d5e3b(0xaf)][_0x3d5e3b(0xd1)](_0x57377d['id'])||this[_0x3d5e3b(0xe2)][_0x3d5e3b(0xd7)](_0x57377d['id'],_0x57377d,!0x1);}if(st(_0x32b305))throw _0x32b305;return _0x5ee1fb;}throw _0x32b305;});}},this[_0x2a8ddc(0xf5)](this[_0x2a8ddc(0xce)],_0x2a8ddc(0xf1),(_0x3453f6,{revisionsData:_0x3796b0,requestId:_0x29f40a})=>{const _0x404aac=_0x2a8ddc;Math[_0x404aac(0xe0)](..._0x3796b0[_0x404aac(0x115)](_0x551e8f=>_0x551e8f[_0x404aac(0xba)]))>this[_0x404aac(0xcf)]()-0x1?this[_0x404aac(0xda)]()[_0x404aac(0xfe)](()=>{const _0x58cada=_0x404aac;this[_0x58cada(0x105)](_0x3796b0,_0x29f40a);}):this[_0x404aac(0x105)](_0x3796b0,_0x29f40a);});const {revisions:_0x562b5b,requestId:_0x37ab7a}=await this[_0x2a8ddc(0xce)][_0x2a8ddc(0x118)](_0x357aa1[_0x2a8ddc(0xd2)]);_0x357aa1[_0x2a8ddc(0xbe)](this),this[_0x2a8ddc(0xb3)]=_0x37ab7a,await this[_0x2a8ddc(0xf8)](_0x562b5b);for(const _0x4314b5 of _0x562b5b)this[_0x2a8ddc(0xe2)][_0x2a8ddc(0xb9)](_0x4314b5);this[_0x2a8ddc(0xf5)](_0x5c0645,_0x2a8ddc(0xb7),(_0x45ed9f,_0x1597b5,_0x131576)=>{const _0x40a3ea=_0x2a8ddc;_0x131576&&(this[_0x40a3ea(0xf6)]=_0x5c0645[_0x40a3ea(0xea)],_0x45ed9f[_0x40a3ea(0xb5)]());}),this[_0x2a8ddc(0xe2)][_0x2a8ddc(0x117)](_0x2a8ddc(0xf7))['to'](_0x357aa1,_0x2a8ddc(0x103),_0x50b45b=>_0x50b45b===_0x447f91[_0x2a8ddc(0xd0)]);}async[_0x2a7cb5(0x106)](){const _0x4bd991=_0x2a7cb5,_0x147faa=this[_0x4bd991(0x108)][_0x4bd991(0x112)][_0x4bd991(0xae)](_0x2f5432),_0x62b4d=this[_0x4bd991(0x108)][_0x4bd991(0x112)][_0x4bd991(0xae)](_0x1fc134),_0x1661e1=async()=>{const _0x2ebb66=_0x4bd991,_0x99a8e3=this[_0x2ebb66(0xe2)][_0x2ebb66(0xb6)],_0x4a7494=_0x99a8e3['id'],_0x46954b=_0x4a7494!==_0x62b4d[_0x2ebb66(0xec)];if(_0x46954b){const _0x2218fe=_0x62b4d[_0x2ebb66(0xea)]-this[_0x2ebb66(0xf6)],_0x5257c4=this[_0x2ebb66(0xcf)]();this[_0x2ebb66(0xe2)][_0x2ebb66(0x11a)][_0x2ebb66(0xfc)]();if(_0x99a8e3[_0x2ebb66(0xba)]+_0x2218fe!==_0x5257c4){const _0x4cf8c8=_0x99a8e3[_0x2ebb66(0xd4)]+_0x2218fe,_0x25bfa4=this[_0x2ebb66(0x108)][_0x2ebb66(0x112)][_0x2ebb66(0xae)](_0x4dd49a),_0x479afa=this[_0x2ebb66(0xe2)][_0x2ebb66(0xd6)]({'revision':_0x99a8e3,'from':_0x4cf8c8,'to':_0x5257c4});_0x479afa['id']=_0x99a8e3['id'];const _0x24eac7=_0x479afa[_0x2ebb66(0xc1)][_0x2ebb66(0x115)](_0x1aa002=>_0x25bfa4[_0x2ebb66(0xee)](_0x1aa002));_0x99a8e3[_0x2ebb66(0xef)]({..._0x479afa,'authors':_0x24eac7},!0x0),this[_0x2ebb66(0xe2)][_0x2ebb66(0xd7)](_0x99a8e3['id'],_0x479afa,!0x0);}this[_0x2ebb66(0xe2)][_0x2ebb66(0xbf)]=_0x5257c4,(_0x99a8e3[_0x2ebb66(0xba)]===_0x99a8e3[_0x2ebb66(0xd4)]&&!this[_0x2ebb66(0xe2)][_0x2ebb66(0xe4)][_0x2ebb66(0xb8)](_0x4a7494)&&this[_0x2ebb66(0xe2)][_0x2ebb66(0xaf)][_0x2ebb66(0xc6)][_0x2ebb66(0xf4)](_0x4a7494),this[_0x2ebb66(0xe2)][_0x2ebb66(0xdb)](_0x5257c4));}const {revisions:_0x3d2016,requestId:_0x3e77d2}=await this[_0x2ebb66(0xce)][_0x2ebb66(0x106)](_0x147faa[_0x2ebb66(0xd2)],this[_0x2ebb66(0xb3)]);_0x46954b&&_0x3d2016[_0x2ebb66(0x11d)]>0x0?_0x62b4d[_0x2ebb66(0xb1)]():(await this[_0x2ebb66(0xf8)](_0x3d2016),this[_0x2ebb66(0x105)](_0x3d2016,_0x3e77d2),this[_0x2ebb66(0xe2)][_0x2ebb66(0xfd)]());};return _0x62b4d[_0x4bd991(0xc3)]?_0x1661e1():new Promise((_0x4e9703,_0x17df8d)=>{const _0x22a81d=_0x4bd991;_0x62b4d[_0x22a81d(0xc0)](_0x22a81d(0xb7),()=>{const _0x3fc386=_0x22a81d;_0x1661e1()[_0x3fc386(0xfe)](_0x4e9703)[_0x3fc386(0xd3)](_0x17df8d);});});}[_0x2a7cb5(0xc2)](){const _0x42f540=_0x2a7cb5;super[_0x42f540(0xc2)]();}async[_0x2a7cb5(0xe5)](){const _0x48850e=_0x2a7cb5;this[_0x48850e(0xce)][_0x48850e(0xdf)]||await new Promise(_0x554556=>{const _0x570675=_0x48850e;this[_0x570675(0xf5)](this[_0x570675(0xce)],_0x570675(0x101),_0x37ee99=>{const _0x2827c8=_0x570675;_0x37ee99[_0x2827c8(0xb5)](),_0x554556();});});}[_0x2a7cb5(0xcf)](){const _0x4bdf54=_0x2a7cb5,_0x4285d9=this[_0x4bdf54(0x108)][_0x4bdf54(0x112)][_0x4bdf54(0xae)](_0x1fc134)[_0x4bdf54(0x10a)][_0x4bdf54(0xbb)]()[_0x4bdf54(0x113)]();for(const _0xcd9b5f of _0x4285d9)if(_0x4bdf54(0xc4)!==_0xcd9b5f[_0x4bdf54(0xc8)]||_0xcd9b5f[_0x4bdf54(0x110)])return _0xcd9b5f[_0x4bdf54(0xd5)]+0x1;}[_0x2a7cb5(0xda)](){const _0x2f05e5=_0x2a7cb5,_0x261586=this[_0x2f05e5(0x108)][_0x2f05e5(0x112)][_0x2f05e5(0xae)](_0x1fc134);return new Promise(_0x24691e=>{const _0x2abed2=_0x2f05e5;_0x261586[_0x2abed2(0xe9)]?_0x261586[_0x2abed2(0xc0)](_0x2abed2(0x119),()=>{const _0x19b51f=_0x2abed2;_0x24691e(this[_0x19b51f(0xcf)]());}):_0x24691e(this[_0x2abed2(0xcf)]());});}[_0x2a7cb5(0x105)](_0x49a768,_0x29fd88){const _0x13e8d4=_0x2a7cb5,_0x8e357f=this[_0x13e8d4(0xe2)][_0x13e8d4(0xaf)];this[_0x13e8d4(0xb3)]=_0x29fd88;for(const _0x328eed of _0x49a768){const _0x4f1f6e=_0x8e357f[_0x13e8d4(0xd1)](_0x328eed['id']);if(_0x4f1f6e){if((_0x328eed[_0x13e8d4(0xd4)]||_0x328eed[_0x13e8d4(0xba)])&&(_0x328eed[_0x13e8d4(0xdd)]=null),_0x4f1f6e===this[_0x13e8d4(0xe2)][_0x13e8d4(0xb6)]){const _0x192a05=Math[_0x13e8d4(0xe0)](_0x4f1f6e[_0x13e8d4(0xba)],_0x328eed[_0x13e8d4(0xba)]),_0x1367e9=Math[_0x13e8d4(0xe0)](_0x4f1f6e[_0x13e8d4(0xd4)],_0x328eed[_0x13e8d4(0xd4)]);let _0x201cd1;_0x4f1f6e[_0x13e8d4(0xba)]===_0x328eed[_0x13e8d4(0xba)]&&_0x4f1f6e[_0x13e8d4(0xd4)]===_0x328eed[_0x13e8d4(0xd4)]?(_0x201cd1=!0x0,this[_0x13e8d4(0xf0)](_0x328eed)):_0x328eed[_0x13e8d4(0xba)]===_0x192a05&&_0x328eed[_0x13e8d4(0xd4)]===_0x1367e9?_0x201cd1=!0x1:(_0x4f1f6e[_0x13e8d4(0xba)]===_0x192a05&&_0x4f1f6e[_0x13e8d4(0xd4)]===_0x1367e9||this[_0x13e8d4(0x11c)]({'revision':_0x4f1f6e,'from':_0x1367e9,'to':_0x192a05}),_0x201cd1=!0x0),_0x201cd1&&(delete _0x328eed[_0x13e8d4(0xd4)],delete _0x328eed[_0x13e8d4(0xba)],delete _0x328eed[_0x13e8d4(0xdd)],delete _0x328eed[_0x13e8d4(0xfb)],delete _0x328eed[_0x13e8d4(0xc1)]);}this[_0x13e8d4(0xe2)][_0x13e8d4(0xe1)](_0x328eed),this[_0x13e8d4(0xf0)](_0x328eed);}else this[_0x13e8d4(0xe2)][_0x13e8d4(0xb9)](_0x328eed);}const _0x1c1121=_0x8e357f[_0x13e8d4(0xca)]();_0x1c1121[_0x13e8d4(0x113)]();for(let _0x1f69e2=0x0;_0x1f69e2<_0x1c1121[_0x13e8d4(0x11d)]-0x1;_0x1f69e2++){const _0x3256e1=_0x1c1121[_0x1f69e2],_0x49df9a=_0x1c1121[_0x1f69e2+0x1];if(_0x3256e1[_0x13e8d4(0xd4)]<_0x49df9a[_0x13e8d4(0xba)]){const _0x561ec3=_0x49df9a[_0x13e8d4(0xba)],_0x5954b0=Math[_0x13e8d4(0xe0)](_0x561ec3,_0x3256e1[_0x13e8d4(0xba)]);this[_0x13e8d4(0x11c)]({'revision':_0x3256e1,'from':_0x561ec3,'to':_0x5954b0});}}}[_0x2a7cb5(0x11c)]({revision:_0x30d126,from:_0x4e8496,to:_0x446b23}={}){const _0x5a5783=_0x2a7cb5,_0x4856c3=this[_0x5a5783(0x108)][_0x5a5783(0x112)][_0x5a5783(0xae)](_0x4dd49a),_0x2a543c=this[_0x5a5783(0xe2)][_0x5a5783(0xd6)]({'revision':_0x30d126,'from':_0x4e8496,'to':_0x446b23});_0x2a543c[_0x5a5783(0x104)]=_0x2a543c[_0x5a5783(0xc1)][_0x5a5783(0x115)](_0x2c16f7=>_0x4856c3[_0x5a5783(0xee)](_0x2c16f7)),_0x30d126[_0x5a5783(0xef)](_0x2a543c);}[_0x2a7cb5(0xf0)](_0x40c149){const _0x4fe35d=_0x2a7cb5,_0x253545={};_0x253545['id']=_0x40c149['id'];for(const _0x1b5ae1 of Object[_0x4fe35d(0xe6)](_0x40c149))'id'!==_0x1b5ae1&&(_0x253545[_0x1b5ae1]=void 0x0);this[_0x4fe35d(0xe2)][_0x4fe35d(0xd7)](_0x253545['id'],_0x253545,!0x0);}async[_0x2a7cb5(0xf8)](_0x4e6063){const _0x3618f7=_0x2a7cb5,_0xcd41a=this[_0x3618f7(0x108)][_0x3618f7(0x112)][_0x3618f7(0xae)](_0x4dd49a),{connection:_0x247b98}=this[_0x3618f7(0x108)][_0x3618f7(0x112)][_0x3618f7(0xae)](_0x2f5432),_0x2da8ff=new Set();for(const _0x22bfc4 of _0x4e6063){for(const _0xcb7be1 of _0x22bfc4[_0x3618f7(0xc1)])_0x2366cc(_0xcb7be1);_0x22bfc4[_0x3618f7(0xff)]&&_0x2366cc(_0x22bfc4[_0x3618f7(0xff)]);}if(0x0===_0x2da8ff[_0x3618f7(0xd8)])return;const _0x427f22=await _0x579233[_0x3618f7(0xed)](_0x247b98,Array[_0x3618f7(0xbd)](_0x2da8ff));for(const _0x5d3cc3 of _0x427f22)_0xcd41a[_0x3618f7(0xee)](_0x5d3cc3['id'])||_0xcd41a[_0x3618f7(0x109)](_0x5d3cc3);function _0x2366cc(_0x5ad2d8){const _0xd6748f=_0x3618f7;_0xcd41a[_0xd6748f(0xee)](_0x5ad2d8)||_0x2da8ff[_0xd6748f(0x107)](_0x5ad2d8);}}}function st(_0x44a7aa){const _0x133992=_0x2a7cb5;return _0x44a7aa[_0x133992(0xad)][_0x133992(0xe8)](_0x133992(0xb2))||_0x44a7aa[_0x133992(0xad)][_0x133992(0xe8)](_0x133992(0xeb))||_0x44a7aa[_0x133992(0xad)][_0x133992(0xe8)](_0x133992(0x114));}
23
+ const _0xfd6a35=_0x442e;(function(_0x2f1850,_0x26bf91){const _0x1855c4=_0x442e,_0x552c5b=_0x2f1850();while(!![]){try{const _0x2ede82=parseInt(_0x1855c4(0x1ba))/0x1*(-parseInt(_0x1855c4(0x197))/0x2)+parseInt(_0x1855c4(0x1b8))/0x3*(-parseInt(_0x1855c4(0x1bb))/0x4)+parseInt(_0x1855c4(0x1eb))/0x5*(parseInt(_0x1855c4(0x206))/0x6)+-parseInt(_0x1855c4(0x1b1))/0x7+-parseInt(_0x1855c4(0x19a))/0x8+parseInt(_0x1855c4(0x209))/0x9*(-parseInt(_0x1855c4(0x1a3))/0xa)+parseInt(_0x1855c4(0x1a4))/0xb*(parseInt(_0x1855c4(0x1dc))/0xc);if(_0x2ede82===_0x26bf91)break;else _0x552c5b['push'](_0x552c5b['shift']());}catch(_0x47c3fe){_0x552c5b['push'](_0x552c5b['shift']());}}}(_0x2722,0xbeeca));import{Plugin as _0x4756a0}from'ckeditor5/src/core.js';import{version as _0x3a8ab2}from'ckeditor5/src/utils.js';import{Users as _0x12094e}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x36218c}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x2985f6}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x20404b}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x32a91d,RevisionHistoryService as _0x42bf0e,User as _0x27e2c1,WEB_SOCKET_GATEWAY_STATES as _0x50dd8c}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0x2722(){const _0x6f4974=['getUser','RevisionHistory','CONNECTED','then','destroy','_update','_waitForServiceReady','_isPendingUpdate','_createCurrentRevision','affectsData','toVersion','size','createdAt','RevisionTracker','addToReconnectionStack','adapter','_offset','marker','108IyqZWs','baseVersion','off','state','cloud-services-internal-error:\x20Not\x20connected.','getRevisions','isOfficialPlugin','isEnabled','code','sessionId','_getLatestVersionFromServerOperations','get','_bufferedUpdates','wrongRequestId','repository','4356655aTqlaI','cloud-services-internal-error:\x20Request\x20timeout.','_revisionDataBuilder','init','_oldOffset','creatorId','data','_handleReconnectionError','400','_revisions','keys','message','change:_isPendingUpdate','addRevisionData','once','reInit','buildRevisionData','_revisionHistoryService','isConnected','_handleRevisionsUpdate','type','_getLatestVersion','add','reverse','isEmptyCurrent','isBundleUploaded','collaboration.channelId','6iRGSHi','_bufferUpdate','RevisionHistoryService','258129csDXFk','requires','plugins','connected','1585884YRuMWc','from','max','5960808caZGAB','sendBufferedUpdates','updateRevisions','_lastRequestId','fromVersion','diffData','_isConnected','_fetchMissingUsers','cloudServices.bundleVersion','380bVuJwY','5132171NjdyYN','serverHistory','currentRevision','bind','config','getRevision','catch','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','listenTo','startsWith','setSource','connection','setRevisionData','1441482FAGwdg','pluginName','map','getOperations','reconnect','revisionsUpdated','CloudServicesRevisionHistoryAdapter','6207jfgLoo','editor','1tnFfRR','2812ohgQwV','connect','authors','change:_isConnected','length','addUser','isPremiumPlugin','getMany','_preventResendingRevisionData','_revisionTracker','remove','authorsIds','_startingVersion','_fixRevision','has'];_0x2722=function(){return _0x6f4974;};return _0x2722();}function _0x442e(_0xf0c7a1,_0x396d25){const _0x27221d=_0x2722();return _0x442e=function(_0x442e37,_0x189811){_0x442e37=_0x442e37-0x194;let _0x240766=_0x27221d[_0x442e37];return _0x240766;},_0x442e(_0xf0c7a1,_0x396d25);}export class CloudServicesRevisionHistoryAdapter extends _0x4756a0{static [_0xfd6a35(0x208)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x42bf0e)());[_0xfd6a35(0x19d)];[_0xfd6a35(0x1c4)];[_0xfd6a35(0x1fc)];[_0xfd6a35(0x1ef)];static get[_0xfd6a35(0x194)](){const _0x4f9418=_0xfd6a35;return[_0x2985f6,_0x36218c,_0x4f9418(0x1cb),_0x20404b,_0x12094e];}static get[_0xfd6a35(0x1b2)](){const _0x5edcc3=_0xfd6a35;return _0x5edcc3(0x1b7);}static get[_0xfd6a35(0x1e2)](){return!0x0;}static get[_0xfd6a35(0x1c1)](){return!0x0;}constructor(_0x18b5fb){const _0x13a0f9=_0xfd6a35;super(_0x18b5fb);const _0x5b238f=this[_0x13a0f9(0x1b9)][_0x13a0f9(0x1a8)][_0x13a0f9(0x1e7)](_0x13a0f9(0x205));this[_0x13a0f9(0x19d)]=null,this[_0x13a0f9(0x1c4)]=this[_0x13a0f9(0x1b9)][_0x13a0f9(0x195)][_0x13a0f9(0x1e7)](_0x13a0f9(0x1d7)),this[_0x13a0f9(0x1fc)]=new CloudServicesRevisionHistoryAdapter[(_0x13a0f9(0x208))](_0x5b238f);}async[_0xfd6a35(0x1ee)](){const _0x3432d7=_0xfd6a35,_0x35e16c=this[_0x3432d7(0x1b9)][_0x3432d7(0x195)][_0x3432d7(0x1e7)](_0x36218c),_0xacb32b=_0x35e16c[_0x3432d7(0x1a5)],_0x170818=this[_0x3432d7(0x1b9)][_0x3432d7(0x195)][_0x3432d7(0x1e7)](_0x2985f6);this[_0x3432d7(0x1c4)][_0x3432d7(0x1ae)]({'history':_0xacb32b,'getLatestVersion':()=>this[_0x3432d7(0x200)](),'getCurrentRevisionId':()=>_0x35e16c[_0x3432d7(0x1e5)]});const _0xf368cf=this[_0x3432d7(0x1b9)][_0x3432d7(0x1a8)][_0x3432d7(0x1e7)](_0x3432d7(0x1a2))||_0x3a8ab2,_0x5b0ace=await _0x32a91d[_0x3432d7(0x204)](_0x170818[_0x3432d7(0x1af)],_0xf368cf);this[_0x3432d7(0x1b9)][_0x3432d7(0x195)][_0x3432d7(0x1e7)](_0x3432d7(0x1cb))[_0x3432d7(0x1d9)]={'getRevision':async({revisionId:_0x5e3551})=>(await this[_0x3432d7(0x1d0)](),await this[_0x3432d7(0x1fc)][_0x3432d7(0x1a9)](_0x5e3551)),'updateRevisions':async _0x5d05a8=>{const _0x1ea7fe=_0x3432d7;await this[_0x1ea7fe(0x1d0)]();const _0x453fa2=this[_0x1ea7fe(0x1c4)][_0x1ea7fe(0x1a6)];if(_0x5b0ace&&0x1===_0x5d05a8[_0x1ea7fe(0x1bf)]&&_0x5d05a8[0x0]['id']===_0x453fa2['id'])return _0x5d05a8;for(const _0x47b7e6 of _0x5d05a8)_0x47b7e6['id']===_0x453fa2['id']&&(_0x47b7e6[_0x1ea7fe(0x203)]=_0x47b7e6[_0x1ea7fe(0x19e)]===_0x47b7e6[_0x1ea7fe(0x1d4)]);return this[_0x1ea7fe(0x1fc)][_0x1ea7fe(0x19c)](_0x5d05a8,this[_0x1ea7fe(0x19d)])[_0x1ea7fe(0x1cd)](_0x4435c8=>(this[_0x1ea7fe(0x19d)]=_0x4435c8,_0x5d05a8))[_0x1ea7fe(0x1aa)](_0x9ef8ac=>{const _0x506d33=_0x1ea7fe;if(et(_0x9ef8ac)||_0x506d33(0x1f3)===_0x9ef8ac[_0x506d33(0x1e4)]&&void 0x0!==_0x9ef8ac[_0x506d33(0x1f1)][_0x506d33(0x1e9)]){for(const _0x4f2b58 of _0x5d05a8){!this[_0x506d33(0x1c4)][_0x506d33(0x1ea)][_0x506d33(0x1a9)](_0x4f2b58['id'])||this[_0x506d33(0x1c4)][_0x506d33(0x207)](_0x4f2b58['id'],_0x4f2b58,!0x1);}if(et(_0x9ef8ac))throw _0x9ef8ac;return _0x5d05a8;}throw _0x9ef8ac;});}},this[_0x3432d7(0x1ac)](this[_0x3432d7(0x1fc)],_0x3432d7(0x1b6),(_0x3ea61c,{revisionsData:_0x27a4a3,requestId:_0x29b494})=>{const _0x33bae3=_0x3432d7;Math[_0x33bae3(0x199)](..._0x27a4a3[_0x33bae3(0x1b3)](_0x14ddde=>_0x14ddde[_0x33bae3(0x1d4)]))>this[_0x33bae3(0x1e6)]()-0x1?this[_0x33bae3(0x200)]()[_0x33bae3(0x1cd)](()=>{const _0x79c4cd=_0x33bae3;this[_0x79c4cd(0x1fe)](_0x27a4a3,_0x29b494);}):this[_0x33bae3(0x1fe)](_0x27a4a3,_0x29b494);});const {revisions:_0x48a03b,requestId:_0x4e4b07}=await this[_0x3432d7(0x1fc)][_0x3432d7(0x1bc)](_0x170818[_0x3432d7(0x1af)]);_0x170818[_0x3432d7(0x1d8)](this),this[_0x3432d7(0x19d)]=_0x4e4b07,await this[_0x3432d7(0x1a1)](_0x48a03b);for(const _0xca3882 of _0x48a03b)this[_0x3432d7(0x1c4)][_0x3432d7(0x1f8)](_0xca3882);this[_0x3432d7(0x1ac)](_0x35e16c,_0x3432d7(0x1be),(_0x494cde,_0xedb1c7,_0x3ab733)=>{const _0x17a61d=_0x3432d7;_0x3ab733&&(this[_0x17a61d(0x1ef)]=_0x35e16c[_0x17a61d(0x1da)],_0x494cde[_0x17a61d(0x1de)]());}),this[_0x3432d7(0x1c4)][_0x3432d7(0x1a7)](_0x3432d7(0x1e3))['to'](_0x170818,_0x3432d7(0x1df),_0x2f5e39=>_0x2f5e39===_0x50dd8c[_0x3432d7(0x1cc)]);}async[_0xfd6a35(0x1b5)](){const _0x3d50ab=_0xfd6a35,_0x270dd5=this[_0x3d50ab(0x1b9)][_0x3d50ab(0x195)][_0x3d50ab(0x1e7)](_0x2985f6),_0x2669a7=this[_0x3d50ab(0x1b9)][_0x3d50ab(0x195)][_0x3d50ab(0x1e7)](_0x36218c),_0x492f24=async()=>{const _0x5460c2=_0x3d50ab,_0xf5b1dc=this[_0x5460c2(0x1c4)][_0x5460c2(0x1a6)],_0x397d66=_0xf5b1dc['id'],_0x483fd1=_0x397d66!==_0x2669a7[_0x5460c2(0x1e5)];if(_0x483fd1){const _0x5d8606=_0x2669a7[_0x5460c2(0x1da)]-this[_0x5460c2(0x1ef)],_0x5ad383=this[_0x5460c2(0x1e6)]();this[_0x5460c2(0x1c4)][_0x5460c2(0x1ed)][_0x5460c2(0x1fa)]();if(_0xf5b1dc[_0x5460c2(0x1d4)]+_0x5d8606!==_0x5ad383){const _0x50d81d=_0xf5b1dc[_0x5460c2(0x19e)]+_0x5d8606,_0x379c77=this[_0x5460c2(0x1b9)][_0x5460c2(0x195)][_0x5460c2(0x1e7)](_0x12094e),_0x31b2a7=this[_0x5460c2(0x1c4)][_0x5460c2(0x1fb)]({'revision':_0xf5b1dc,'from':_0x50d81d,'to':_0x5ad383});_0x31b2a7['id']=_0xf5b1dc['id'];const _0x23541e=_0x31b2a7[_0x5460c2(0x1c6)][_0x5460c2(0x1b3)](_0x4d5ce0=>_0x379c77[_0x5460c2(0x1ca)](_0x4d5ce0));_0xf5b1dc[_0x5460c2(0x1cf)]({..._0x31b2a7,'authors':_0x23541e},!0x0),this[_0x5460c2(0x1c4)][_0x5460c2(0x207)](_0xf5b1dc['id'],_0x31b2a7,!0x0);}this[_0x5460c2(0x1c4)][_0x5460c2(0x1c7)]=_0x5ad383,(_0xf5b1dc[_0x5460c2(0x1d4)]===_0xf5b1dc[_0x5460c2(0x19e)]&&!this[_0x5460c2(0x1c4)][_0x5460c2(0x1e8)][_0x5460c2(0x1c9)](_0x397d66)&&this[_0x5460c2(0x1c4)][_0x5460c2(0x1ea)][_0x5460c2(0x1f4)][_0x5460c2(0x1c5)](_0x397d66),this[_0x5460c2(0x1c4)][_0x5460c2(0x1d2)](_0x5ad383));}const {revisions:_0x5edb72,requestId:_0x15ddd9}=await this[_0x5460c2(0x1fc)][_0x5460c2(0x1b5)](_0x270dd5[_0x5460c2(0x1af)],this[_0x5460c2(0x19d)]);_0x483fd1&&_0x5edb72[_0x5460c2(0x1bf)]>0x0?_0x2669a7[_0x5460c2(0x1f2)]():(await this[_0x5460c2(0x1a1)](_0x5edb72),this[_0x5460c2(0x1fe)](_0x5edb72,_0x15ddd9),this[_0x5460c2(0x1c4)][_0x5460c2(0x19b)]());};return _0x2669a7[_0x3d50ab(0x1a0)]?_0x492f24():new Promise((_0x5d9c2b,_0x1ed2de)=>{const _0x50a431=_0x3d50ab;_0x2669a7[_0x50a431(0x1f9)](_0x50a431(0x1be),()=>{const _0x5272d0=_0x50a431;_0x492f24()[_0x5272d0(0x1cd)](_0x5d9c2b)[_0x5272d0(0x1aa)](_0x1ed2de);});});}[_0xfd6a35(0x1ce)](){const _0x3352d6=_0xfd6a35;super[_0x3352d6(0x1ce)]();}async[_0xfd6a35(0x1d0)](){const _0x20070c=_0xfd6a35;this[_0x20070c(0x1fc)][_0x20070c(0x1fd)]||await new Promise(_0x2b8e03=>{const _0x13c954=_0x20070c;this[_0x13c954(0x1ac)](this[_0x13c954(0x1fc)],_0x13c954(0x196),_0xda574b=>{const _0x22a97e=_0x13c954;_0xda574b[_0x22a97e(0x1de)](),_0x2b8e03();});});}[_0xfd6a35(0x1e6)](){const _0x45176d=_0xfd6a35,_0x552a02=this[_0x45176d(0x1b9)][_0x45176d(0x195)][_0x45176d(0x1e7)](_0x36218c)[_0x45176d(0x1a5)][_0x45176d(0x1b4)]()[_0x45176d(0x202)]();for(const _0x46344f of _0x552a02)if(_0x45176d(0x1db)!==_0x46344f[_0x45176d(0x1ff)]||_0x46344f[_0x45176d(0x1d3)])return _0x46344f[_0x45176d(0x1dd)]+0x1;}[_0xfd6a35(0x200)](){const _0x156e7a=_0xfd6a35,_0x14870b=this[_0x156e7a(0x1b9)][_0x156e7a(0x195)][_0x156e7a(0x1e7)](_0x36218c);return new Promise(_0x17cb0c=>{const _0x1c498d=_0x156e7a;_0x14870b[_0x1c498d(0x1d1)]?_0x14870b[_0x1c498d(0x1f9)](_0x1c498d(0x1f7),()=>{const _0xf23ccd=_0x1c498d;_0x17cb0c(this[_0xf23ccd(0x1e6)]());}):_0x17cb0c(this[_0x1c498d(0x1e6)]());});}[_0xfd6a35(0x1fe)](_0x30ce44,_0x521a7c){const _0x21ad49=_0xfd6a35,_0x1e06c1=this[_0x21ad49(0x1c4)][_0x21ad49(0x1ea)];this[_0x21ad49(0x19d)]=_0x521a7c;for(const _0x5027ef of _0x30ce44){const _0x3b8624=_0x1e06c1[_0x21ad49(0x1a9)](_0x5027ef['id']);if(_0x3b8624){if((_0x5027ef[_0x21ad49(0x19e)]||_0x5027ef[_0x21ad49(0x1d4)])&&(_0x5027ef[_0x21ad49(0x19f)]=null),_0x3b8624===this[_0x21ad49(0x1c4)][_0x21ad49(0x1a6)]){const _0xdd3fb7=Math[_0x21ad49(0x199)](_0x3b8624[_0x21ad49(0x1d4)],_0x5027ef[_0x21ad49(0x1d4)]),_0x1f4b07=Math[_0x21ad49(0x199)](_0x3b8624[_0x21ad49(0x19e)],_0x5027ef[_0x21ad49(0x19e)]);let _0x5d95cb;_0x3b8624[_0x21ad49(0x1d4)]===_0x5027ef[_0x21ad49(0x1d4)]&&_0x3b8624[_0x21ad49(0x19e)]===_0x5027ef[_0x21ad49(0x19e)]?(_0x5d95cb=!0x0,this[_0x21ad49(0x1c3)](_0x5027ef)):_0x5027ef[_0x21ad49(0x1d4)]===_0xdd3fb7&&_0x5027ef[_0x21ad49(0x19e)]===_0x1f4b07?_0x5d95cb=!0x1:(_0x3b8624[_0x21ad49(0x1d4)]===_0xdd3fb7&&_0x3b8624[_0x21ad49(0x19e)]===_0x1f4b07||this[_0x21ad49(0x1c8)]({'revision':_0x3b8624,'from':_0x1f4b07,'to':_0xdd3fb7}),_0x5d95cb=!0x0),_0x5d95cb&&(delete _0x5027ef[_0x21ad49(0x19e)],delete _0x5027ef[_0x21ad49(0x1d4)],delete _0x5027ef[_0x21ad49(0x19f)],delete _0x5027ef[_0x21ad49(0x1d6)],delete _0x5027ef[_0x21ad49(0x1c6)]);}this[_0x21ad49(0x1c4)][_0x21ad49(0x1b0)](_0x5027ef),this[_0x21ad49(0x1c3)](_0x5027ef);}else this[_0x21ad49(0x1c4)][_0x21ad49(0x1f8)](_0x5027ef);}const _0x404d0e=_0x1e06c1[_0x21ad49(0x1e1)]();_0x404d0e[_0x21ad49(0x202)]();for(let _0x5e893c=0x0;_0x5e893c<_0x404d0e[_0x21ad49(0x1bf)]-0x1;_0x5e893c++){const _0x19b1d4=_0x404d0e[_0x5e893c],_0x3918ed=_0x404d0e[_0x5e893c+0x1];if(_0x19b1d4[_0x21ad49(0x19e)]<_0x3918ed[_0x21ad49(0x1d4)]){const _0x44abe9=_0x3918ed[_0x21ad49(0x1d4)],_0x4b6f88=Math[_0x21ad49(0x199)](_0x44abe9,_0x19b1d4[_0x21ad49(0x1d4)]);this[_0x21ad49(0x1c8)]({'revision':_0x19b1d4,'from':_0x44abe9,'to':_0x4b6f88});}}}[_0xfd6a35(0x1c8)]({revision:_0x1639d3,from:_0x233777,to:_0x5c5ebb}={}){const _0x4e60c9=_0xfd6a35,_0xd993e5=this[_0x4e60c9(0x1b9)][_0x4e60c9(0x195)][_0x4e60c9(0x1e7)](_0x12094e),_0x200ca1=this[_0x4e60c9(0x1c4)][_0x4e60c9(0x1fb)]({'revision':_0x1639d3,'from':_0x233777,'to':_0x5c5ebb});_0x200ca1[_0x4e60c9(0x1bd)]=_0x200ca1[_0x4e60c9(0x1c6)][_0x4e60c9(0x1b3)](_0x46f35d=>_0xd993e5[_0x4e60c9(0x1ca)](_0x46f35d)),_0x1639d3[_0x4e60c9(0x1cf)](_0x200ca1);}[_0xfd6a35(0x1c3)](_0x114a9e){const _0x30aedb=_0xfd6a35,_0x5a3222={};_0x5a3222['id']=_0x114a9e['id'];for(const _0xbcc6c0 of Object[_0x30aedb(0x1f5)](_0x114a9e))'id'!==_0xbcc6c0&&(_0x5a3222[_0xbcc6c0]=void 0x0);this[_0x30aedb(0x1c4)][_0x30aedb(0x207)](_0x5a3222['id'],_0x5a3222,!0x0);}async[_0xfd6a35(0x1a1)](_0x5c84e6){const _0x546ae7=_0xfd6a35,_0x315831=this[_0x546ae7(0x1b9)][_0x546ae7(0x195)][_0x546ae7(0x1e7)](_0x12094e),{connection:_0x56ed63}=this[_0x546ae7(0x1b9)][_0x546ae7(0x195)][_0x546ae7(0x1e7)](_0x2985f6),_0x5257e6=new Set();for(const _0x52aa5e of _0x5c84e6){for(const _0x288dc7 of _0x52aa5e[_0x546ae7(0x1c6)])_0x271aaa(_0x288dc7);_0x52aa5e[_0x546ae7(0x1f0)]&&_0x271aaa(_0x52aa5e[_0x546ae7(0x1f0)]);}if(0x0===_0x5257e6[_0x546ae7(0x1d5)])return;const _0x25a1e3=await _0x27e2c1[_0x546ae7(0x1c2)](_0x56ed63,Array[_0x546ae7(0x198)](_0x5257e6));for(const _0x2cf15a of _0x25a1e3)_0x315831[_0x546ae7(0x1ca)](_0x2cf15a['id'])||_0x315831[_0x546ae7(0x1c0)](_0x2cf15a);function _0x271aaa(_0x53385a){const _0x39f811=_0x546ae7;_0x315831[_0x39f811(0x1ca)](_0x53385a)||_0x5257e6[_0x39f811(0x201)](_0x53385a);}}}function et(_0x262b96){const _0xb8954e=_0xfd6a35;return _0x262b96[_0xb8954e(0x1f6)][_0xb8954e(0x1ad)](_0xb8954e(0x1ab))||_0x262b96[_0xb8954e(0x1f6)][_0xb8954e(0x1ad)](_0xb8954e(0x1e0))||_0x262b96[_0xb8954e(0x1f6)][_0xb8954e(0x1ad)](_0xb8954e(0x1ec));}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x563cd7=_0x174c;(function(_0x10ee17,_0x254f00){const _0xcdee76=_0x174c,_0x154c1a=_0x10ee17();while(!![]){try{const _0x44f093=-parseInt(_0xcdee76(0xc8))/0x1+parseInt(_0xcdee76(0xfb))/0x2*(parseInt(_0xcdee76(0xf2))/0x3)+-parseInt(_0xcdee76(0xe9))/0x4*(parseInt(_0xcdee76(0xcb))/0x5)+-parseInt(_0xcdee76(0xc2))/0x6*(-parseInt(_0xcdee76(0xdb))/0x7)+parseInt(_0xcdee76(0xc5))/0x8*(parseInt(_0xcdee76(0xe8))/0x9)+-parseInt(_0xcdee76(0xd2))/0xa*(parseInt(_0xcdee76(0xd3))/0xb)+-parseInt(_0xcdee76(0xfd))/0xc;if(_0x44f093===_0x254f00)break;else _0x154c1a['push'](_0x154c1a['shift']());}catch(_0x45a8c5){_0x154c1a['push'](_0x154c1a['shift']());}}}(_0x3322,0xdec85));import{Plugin as _0x2851cc}from'ckeditor5/src/core.js';import{User as _0x31e942,TrackChangesService as _0x199369}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0x174c(_0x4ccad3,_0x26f377){const _0x3322a3=_0x3322();return _0x174c=function(_0x174c0a,_0x284618){_0x174c0a=_0x174c0a-0xbf;let _0x5ddf8e=_0x3322a3[_0x174c0a];return _0x5ddf8e;},_0x174c(_0x4ccad3,_0x26f377);}import{WebSocketGateway as _0x25d5b7}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x72c790}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x231e63}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x2851cc{static [_0x563cd7(0xd6)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x199369)());[_0x563cd7(0x100)];[_0x563cd7(0xec)];static get[_0x563cd7(0xcc)](){const _0x592f58=_0x563cd7;return[_0x72c790,_0x592f58(0xc4),_0x25d5b7];}static get[_0x563cd7(0xca)](){const _0x448dae=_0x563cd7;return _0x448dae(0xdc);}static get[_0x563cd7(0xd4)](){return!0x0;}static get[_0x563cd7(0xd8)](){return!0x0;}constructor(_0x59a63a){const _0x4eca75=_0x563cd7;super(_0x59a63a);const _0x345175=this[_0x4eca75(0xcd)][_0x4eca75(0xd5)][_0x4eca75(0xda)](_0x4eca75(0xea));this[_0x4eca75(0x100)]=new Map(),this[_0x4eca75(0xec)]=new CloudServicesTrackChangesAdapter[(_0x4eca75(0xd6))](_0x345175);}[_0x563cd7(0xef)](){const _0x2116e9=_0x563cd7,_0x3db099=this[_0x2116e9(0xcd)][_0x2116e9(0xe5)][_0x2116e9(0xda)](_0x25d5b7),_0x1ebfe0=this[_0x2116e9(0xcd)][_0x2116e9(0xe5)][_0x2116e9(0xda)](_0x2116e9(0xc4));return _0x1ebfe0[_0x2116e9(0xfc)]={'getSuggestion':async _0x5e85cd=>{const _0x564748=_0x2116e9;await this[_0x564748(0xeb)]();const _0x2d2576=await this[_0x564748(0xec)][_0x564748(0xda)](_0x5e85cd)[_0x564748(0xe3)](A);return await this[_0x564748(0xe2)]([_0x2d2576]),_0x2d2576;},'addSuggestion':async({id:_0xd4ddc9,type:_0x33843d,data:_0x8c8b4b,originalSuggestionId:_0x5578cd,attributes:_0x344748})=>{const _0x42b249=_0x2116e9;await this[_0x42b249(0xeb)]();const _0xcc6ed={'id':_0xd4ddc9,'type':_0x33843d,'data':_0x8c8b4b,'originalSuggestionId':_0x5578cd,'attributes':_0x344748},_0xe8f37c=await this[_0x42b249(0xec)][_0x42b249(0xf1)](_0xd4ddc9,_0x33843d,_0x8c8b4b,_0x5578cd,_0x344748)[_0x42b249(0xe3)](_0x3a9493=>{if(st(_0x3a9493))return new Promise(_0x193ba8=>{const _0x4f62fc=_0x174c;this[_0x4f62fc(0x100)][_0x4f62fc(0xe0)](_0xd4ddc9,{'resolve':_0x193ba8,'suggestionData':_0xcc6ed});});throw _0x3a9493;});return this[_0x42b249(0x100)][_0x42b249(0xe1)](_0xd4ddc9),_0xe8f37c;},'updateSuggestion':async(_0x3362c3,_0x3ad665)=>{const _0x33a99a=_0x2116e9;if(await this[_0x33a99a(0xeb)](),_0x33a99a(0xd1)!==_0x3ad665[_0x33a99a(0xf8)])return this[_0x33a99a(0xec)][_0x33a99a(0xcf)](_0x3362c3,_0x3ad665)[_0x33a99a(0xe3)](A);}},this[_0x2116e9(0xce)](this[_0x2116e9(0xec)],_0x2116e9(0xc9),(_0x251716,_0x410c52)=>{const _0x23fec5=_0x2116e9;_0x1ebfe0[_0x23fec5(0xdd)](_0x410c52['id'])&&(_0x1ebfe0[_0x23fec5(0xe6)](_0x410c52['id'])[_0x23fec5(0xe4)]=_0x410c52[_0x23fec5(0xe4)]);}),this[_0x2116e9(0xec)][_0x2116e9(0xed)](_0x3db099[_0x2116e9(0xdf)])[_0x2116e9(0xbf)](_0x9c9f87=>(_0x3db099[_0x2116e9(0xff)](this),this[_0x2116e9(0xe2)](_0x9c9f87)[_0x2116e9(0xbf)](()=>{const _0x354834=_0x2116e9;for(const _0x123457 of _0x9c9f87){_0x1ebfe0[_0x354834(0xf6)](_0x123457)[_0x354834(0xd7)]=!0x0;}})));}async[_0x563cd7(0xc7)](){const _0x4ba925=_0x563cd7,_0x5dd91c=this[_0x4ba925(0xcd)][_0x4ba925(0xe5)][_0x4ba925(0xda)](_0x4ba925(0xc4)),{connection:_0x11ee13}=this[_0x4ba925(0xcd)][_0x4ba925(0xe5)][_0x4ba925(0xda)](_0x25d5b7),_0x4e324b=await this[_0x4ba925(0xec)][_0x4ba925(0xed)](_0x11ee13);await this[_0x4ba925(0xe2)](_0x4e324b);for(const {suggestionData:_0x80506e,resolve:_0x574dc7}of this[_0x4ba925(0x100)][_0x4ba925(0xc3)]()){let _0x153f80=_0x4e324b[_0x4ba925(0xde)](_0x20cbe4=>_0x20cbe4['id']===_0x80506e['id']);_0x153f80||(_0x153f80=await this[_0x4ba925(0xec)][_0x4ba925(0xf1)](_0x80506e['id'],_0x80506e[_0x4ba925(0xc1)],_0x80506e[_0x4ba925(0xf4)],_0x80506e[_0x4ba925(0xe7)])),_0x574dc7(_0x153f80);}for(const _0x53134f of _0x4e324b)_0x5dd91c[_0x4ba925(0xdd)](_0x53134f['id'])||_0x5dd91c[_0x4ba925(0xf6)](_0x53134f);}async[_0x563cd7(0xeb)](){const _0x5aa4d1=_0x563cd7;this[_0x5aa4d1(0xec)][_0x5aa4d1(0xc0)]||await new Promise(_0x3ec109=>{const _0x23da47=_0x5aa4d1;this[_0x23da47(0xce)](this[_0x23da47(0xec)],_0x23da47(0xee),_0x58723a=>{const _0x188027=_0x23da47;_0x58723a[_0x188027(0xf0)](),_0x3ec109();});});}async[_0x563cd7(0xe2)](_0x44a970){const _0x603b04=_0x563cd7,_0x28b4e0=this[_0x603b04(0xcd)][_0x603b04(0xe5)][_0x603b04(0xda)](_0x231e63),{connection:_0x11862f}=this[_0x603b04(0xcd)][_0x603b04(0xe5)][_0x603b04(0xda)](_0x25d5b7),_0x431cfc=new Set();for(const {authorId:_0x56f08c}of _0x44a970)_0x28b4e0[_0x603b04(0xf9)](_0x56f08c)||_0x431cfc[_0x603b04(0xf1)](_0x56f08c);if(0x0===_0x431cfc[_0x603b04(0xfa)])return;const _0x438c64=await _0x31e942[_0x603b04(0xd9)](_0x11862f,Array[_0x603b04(0xf7)](_0x431cfc));for(const _0x3a7dd6 of _0x438c64)_0x28b4e0[_0x603b04(0xf9)](_0x3a7dd6['id'])||_0x28b4e0[_0x603b04(0xc6)](_0x3a7dd6);}}function A(_0x534949){if(st(_0x534949))return new Promise(()=>{});throw _0x534949;}function st(_0x3f61cc){const _0x2da797=_0x563cd7;return _0x3f61cc[_0x2da797(0xf5)][_0x2da797(0xfe)](_0x2da797(0xf3))||_0x3f61cc[_0x2da797(0xf5)][_0x2da797(0xfe)](_0x2da797(0xd0));}function _0x3322(){const _0x47d627=['from','state','getUser','size','2526674rgPMGO','adapter','13092492BwoLnO','startsWith','addToReconnectionStack','_bufferedRequests','then','isConnected','type','822SEHuFx','values','TrackChangesEditing','8bCeYyG','addUser','reconnect','67512ljVxFV','suggestionUpdated','pluginName','477030fquZYn','requires','editor','listenTo','update','cloud-services-internal-error:\x20Request\x20timeout.','open','394640leNYUv','374wYfhcO','isOfficialPlugin','config','TrackChangesService','_saved','isPremiumPlugin','getMany','get','25739OomDhq','CloudServicesTrackChangesAdapter','hasSuggestion','find','connection','set','delete','_fetchMissingUsersForThreads','catch','attributes','plugins','getSuggestion','originalSuggestionId','15670494TikBSj','4RXqTeR','collaboration.channelId','_waitForServiceReady','_trackChangesService','connect','connected','init','off','add','3qEFuKz','cloud-services-internal-error:\x20Not\x20connected.','data','message','addSuggestionData'];_0x3322=function(){return _0x47d627;};return _0x3322();}
23
+ const _0x379e7c=_0x28eb;(function(_0x32ba75,_0x1f8cdb){const _0x55e4d7=_0x28eb,_0x5172bd=_0x32ba75();while(!![]){try{const _0x16edc4=parseInt(_0x55e4d7(0x1d5))/0x1*(parseInt(_0x55e4d7(0x1dc))/0x2)+-parseInt(_0x55e4d7(0x202))/0x3*(-parseInt(_0x55e4d7(0x203))/0x4)+parseInt(_0x55e4d7(0x1e5))/0x5+parseInt(_0x55e4d7(0x1e2))/0x6*(parseInt(_0x55e4d7(0x1fc))/0x7)+parseInt(_0x55e4d7(0x207))/0x8*(parseInt(_0x55e4d7(0x20f))/0x9)+-parseInt(_0x55e4d7(0x1ff))/0xa+-parseInt(_0x55e4d7(0x1e8))/0xb;if(_0x16edc4===_0x1f8cdb)break;else _0x5172bd['push'](_0x5172bd['shift']());}catch(_0x2e033d){_0x5172bd['push'](_0x5172bd['shift']());}}}(_0x3cc7,0xc3d85));import{Plugin as _0x5b0de8}from'ckeditor5/src/core.js';import{User as _0x769a18,TrackChangesService as _0x59aae1}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x4c1e4a}from'../realtimecollaborativeediting/websocketgateway.js';function _0x3cc7(){const _0x4fe746=['originalSuggestionId','addUser','325650ivywoM','addToReconnectionStack','state','4059LWptGw','3776Rdrimj','CloudServicesTrackChangesAdapter','type','connected','584itSwxg','open','connection','getUser','adapter','cloud-services-internal-error:\x20Request\x20timeout.','size','_saved','110349jWTsSJ','requires','set','_waitForServiceReady','data','isPremiumPlugin','pluginName','65DDibZx','suggestionUpdated','init','get','then','addSuggestionData','update','4110VhjMDc','getMany','listenTo','_fetchMissingUsersForThreads','collaboration.channelId','config','21342VlbJUd','cloud-services-internal-error:\x20Not\x20connected.','reconnect','6116140UgROwr','TrackChangesService','_bufferedRequests','46384118plSITJ','off','_trackChangesService','catch','isOfficialPlugin','from','attributes','getSuggestion','plugins','connect','delete','startsWith','message','find','TrackChangesEditing','add','hasSuggestion','values','isConnected','editor','2996aeJbfd'];_0x3cc7=function(){return _0x4fe746;};return _0x3cc7();}function _0x28eb(_0xa46be1,_0x51692c){const _0x3cc727=_0x3cc7();return _0x28eb=function(_0x28eb0d,_0x3cf3bb){_0x28eb0d=_0x28eb0d-0x1cf;let _0x5063ee=_0x3cc727[_0x28eb0d];return _0x5063ee;},_0x28eb(_0xa46be1,_0x51692c);}import{CloudServicesCommentsAdapter as _0x4cd706}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x4af37d}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x5b0de8{static [_0x379e7c(0x1e6)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x59aae1)());[_0x379e7c(0x1e7)];[_0x379e7c(0x1ea)];static get[_0x379e7c(0x1cf)](){const _0x5a77de=_0x379e7c;return[_0x4cd706,_0x5a77de(0x1f6),_0x4c1e4a];}static get[_0x379e7c(0x1d4)](){const _0x2dfd86=_0x379e7c;return _0x2dfd86(0x204);}static get[_0x379e7c(0x1ec)](){return!0x0;}static get[_0x379e7c(0x1d3)](){return!0x0;}constructor(_0x539105){const _0x4fa7d4=_0x379e7c;super(_0x539105);const _0x888469=this[_0x4fa7d4(0x1fb)][_0x4fa7d4(0x1e1)][_0x4fa7d4(0x1d8)](_0x4fa7d4(0x1e0));this[_0x4fa7d4(0x1e7)]=new Map(),this[_0x4fa7d4(0x1ea)]=new CloudServicesTrackChangesAdapter[(_0x4fa7d4(0x1e6))](_0x888469);}[_0x379e7c(0x1d7)](){const _0x3873ee=_0x379e7c,_0x525f8f=this[_0x3873ee(0x1fb)][_0x3873ee(0x1f0)][_0x3873ee(0x1d8)](_0x4c1e4a),_0x42ca25=this[_0x3873ee(0x1fb)][_0x3873ee(0x1f0)][_0x3873ee(0x1d8)](_0x3873ee(0x1f6));return _0x42ca25[_0x3873ee(0x20b)]={'getSuggestion':async _0x28a89e=>{const _0x416142=_0x3873ee;await this[_0x416142(0x1d1)]();const _0xde4c04=await this[_0x416142(0x1ea)][_0x416142(0x1d8)](_0x28a89e)[_0x416142(0x1eb)](k);return await this[_0x416142(0x1df)]([_0xde4c04]),_0xde4c04;},'addSuggestion':async({id:_0x571525,type:_0x1a5cb5,data:_0x398743,originalSuggestionId:_0x5d19fe,attributes:_0x1e7733})=>{const _0x16be8e=_0x3873ee;await this[_0x16be8e(0x1d1)]();const _0x5c3dba={'id':_0x571525,'type':_0x1a5cb5,'data':_0x398743,'originalSuggestionId':_0x5d19fe,'attributes':_0x1e7733},_0x35fae1=await this[_0x16be8e(0x1ea)][_0x16be8e(0x1f7)](_0x571525,_0x1a5cb5,_0x398743,_0x5d19fe,_0x1e7733)[_0x16be8e(0x1eb)](_0x205af1=>{if(et(_0x205af1))return new Promise(_0x4d41a7=>{const _0x48bf20=_0x28eb;this[_0x48bf20(0x1e7)][_0x48bf20(0x1d0)](_0x571525,{'resolve':_0x4d41a7,'suggestionData':_0x5c3dba});});throw _0x205af1;});return this[_0x16be8e(0x1e7)][_0x16be8e(0x1f2)](_0x571525),_0x35fae1;},'updateSuggestion':async(_0x2d1f9d,_0x59223c)=>{const _0x115248=_0x3873ee;if(await this[_0x115248(0x1d1)](),_0x115248(0x208)!==_0x59223c[_0x115248(0x201)])return this[_0x115248(0x1ea)][_0x115248(0x1db)](_0x2d1f9d,_0x59223c)[_0x115248(0x1eb)](k);}},this[_0x3873ee(0x1de)](this[_0x3873ee(0x1ea)],_0x3873ee(0x1d6),(_0x196ce3,_0x2b18da)=>{const _0x4df8db=_0x3873ee;_0x42ca25[_0x4df8db(0x1f8)](_0x2b18da['id'])&&(_0x42ca25[_0x4df8db(0x1ef)](_0x2b18da['id'])[_0x4df8db(0x1ee)]=_0x2b18da[_0x4df8db(0x1ee)]);}),this[_0x3873ee(0x1ea)][_0x3873ee(0x1f1)](_0x525f8f[_0x3873ee(0x209)])[_0x3873ee(0x1d9)](_0x80cd=>(_0x525f8f[_0x3873ee(0x200)](this),this[_0x3873ee(0x1df)](_0x80cd)[_0x3873ee(0x1d9)](()=>{const _0x33e7c9=_0x3873ee;for(const _0x2c1ee8 of _0x80cd){_0x42ca25[_0x33e7c9(0x1da)](_0x2c1ee8)[_0x33e7c9(0x20e)]=!0x0;}})));}async[_0x379e7c(0x1e4)](){const _0x5121b5=_0x379e7c,_0x2b9da5=this[_0x5121b5(0x1fb)][_0x5121b5(0x1f0)][_0x5121b5(0x1d8)](_0x5121b5(0x1f6)),{connection:_0x32cad1}=this[_0x5121b5(0x1fb)][_0x5121b5(0x1f0)][_0x5121b5(0x1d8)](_0x4c1e4a),_0x5d1c89=await this[_0x5121b5(0x1ea)][_0x5121b5(0x1f1)](_0x32cad1);await this[_0x5121b5(0x1df)](_0x5d1c89);for(const {suggestionData:_0x437669,resolve:_0x36e325}of this[_0x5121b5(0x1e7)][_0x5121b5(0x1f9)]()){let _0x89a298=_0x5d1c89[_0x5121b5(0x1f5)](_0x3c19df=>_0x3c19df['id']===_0x437669['id']);_0x89a298||(_0x89a298=await this[_0x5121b5(0x1ea)][_0x5121b5(0x1f7)](_0x437669['id'],_0x437669[_0x5121b5(0x205)],_0x437669[_0x5121b5(0x1d2)],_0x437669[_0x5121b5(0x1fd)])),_0x36e325(_0x89a298);}for(const _0xa06adb of _0x5d1c89)_0x2b9da5[_0x5121b5(0x1f8)](_0xa06adb['id'])||_0x2b9da5[_0x5121b5(0x1da)](_0xa06adb);}async[_0x379e7c(0x1d1)](){const _0x93e52=_0x379e7c;this[_0x93e52(0x1ea)][_0x93e52(0x1fa)]||await new Promise(_0x374c50=>{const _0x2708bd=_0x93e52;this[_0x2708bd(0x1de)](this[_0x2708bd(0x1ea)],_0x2708bd(0x206),_0x303bdd=>{const _0x8ae564=_0x2708bd;_0x303bdd[_0x8ae564(0x1e9)](),_0x374c50();});});}async[_0x379e7c(0x1df)](_0x57ab2d){const _0x3185bd=_0x379e7c,_0x41f319=this[_0x3185bd(0x1fb)][_0x3185bd(0x1f0)][_0x3185bd(0x1d8)](_0x4af37d),{connection:_0x146237}=this[_0x3185bd(0x1fb)][_0x3185bd(0x1f0)][_0x3185bd(0x1d8)](_0x4c1e4a),_0x542080=new Set();for(const {authorId:_0x544900}of _0x57ab2d)_0x41f319[_0x3185bd(0x20a)](_0x544900)||_0x542080[_0x3185bd(0x1f7)](_0x544900);if(0x0===_0x542080[_0x3185bd(0x20d)])return;const _0x4d6f09=await _0x769a18[_0x3185bd(0x1dd)](_0x146237,Array[_0x3185bd(0x1ed)](_0x542080));for(const _0x19bd47 of _0x4d6f09)_0x41f319[_0x3185bd(0x20a)](_0x19bd47['id'])||_0x41f319[_0x3185bd(0x1fe)](_0x19bd47);}}function k(_0x52acdb){if(et(_0x52acdb))return new Promise(()=>{});throw _0x52acdb;}function et(_0x263854){const _0x3a5ddc=_0x379e7c;return _0x263854[_0x3a5ddc(0x1f4)][_0x3a5ddc(0x1f3)](_0x3a5ddc(0x1e3))||_0x263854[_0x3a5ddc(0x1f4)][_0x3a5ddc(0x1f3)](_0x3a5ddc(0x20c));}