@ckeditor/ckeditor5-real-time-collaboration 44.3.0-alpha.3 → 44.3.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/real-time-collaboration.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +14 -14
- package/src/presencelist/view/presencecounterview.js +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +1 -1
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +1 -1
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +1 -1
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +1 -1
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d1247=_0xef7d;(function(_0x18536e,_0x390efc){const _0x1b83a4=_0xef7d,_0x56ff80=_0x18536e();while(!![]){try{const _0x32d663=-parseInt(_0x1b83a4(0xae))/0x1*(parseInt(_0x1b83a4(0x7d))/0x2)+-parseInt(_0x1b83a4(0x93))/0x3*(-parseInt(_0x1b83a4(0x98))/0x4)+parseInt(_0x1b83a4(0x73))/0x5+-parseInt(_0x1b83a4(0x90))/0x6*(-parseInt(_0x1b83a4(0x92))/0x7)+parseInt(_0x1b83a4(0x67))/0x8*(parseInt(_0x1b83a4(0xa5))/0x9)+-parseInt(_0x1b83a4(0x84))/0xa+-parseInt(_0x1b83a4(0x8c))/0xb;if(_0x32d663===_0x390efc)break;else _0x56ff80['push'](_0x56ff80['shift']());}catch(_0x25c559){_0x56ff80['push'](_0x56ff80['shift']());}}}(_0x1ece,0x5a763));import{ContextPlugin as _0x2ad3ba}from'ckeditor5/src/core.js';function _0xef7d(_0x5ca753,_0x35e8db){const _0x1ece7e=_0x1ece();return _0xef7d=function(_0xef7d05,_0x3556d8){_0xef7d05=_0xef7d05-0x67;let _0x2df78c=_0x1ece7e[_0xef7d05];return _0x2df78c;},_0xef7d(_0x5ca753,_0x35e8db);}import{DomEmitterMixin as _0x5edc9e,CKEditorError as _0x190842}from'ckeditor5/src/utils.js';function _0x1ece(){const _0x45b6f6=['init','requires','config','DISCONNECTED','addToReconnectionStack','cloudservices-init','1629490BiDHss','stopListening','then','set','webSocketUrl','removeFromReconnectionStack','websocketgateway-invalid-plugin-interface','online','initialReconnectionInterval','reconnect','164FMissn','define','connected','function','add','pluginName','real-time-collaboration','3361810jNkbJH','_shouldPluginsReconnect','create','change:me','constructor','all','bind','offline','3369355IPWLZm','cloudServices.requestTimeout','get','CONNECTING','1194wiypJi','websocketgateway-plugin-already-registered','14063NxzeKw','183957ltBvto','_domEmitter','cloudservices-reconnection-error','isPremiumPlugin','cloudServices.connectionTimeout','4ItBKwG','plugins','CloudServices','destroy','CONNECTED','from','websocketgateway-missing-token','Connected\x20users\x20limit\x20exceeded','connection','_reconnect','has','_reconnectionStack','WebSocketGateway','3581667MIEIfP','showWarning','error','_isBrowserOffline','context','isInReconnectionStack','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.','catch','connect','2097sAWsCy','listenTo','limitExceeded','code','websocketgateway-missing-websocket-url','8sGFDwA','state','isOfficialPlugin','delete','token','disconnect'];_0x1ece=function(){return _0x45b6f6;};return _0x1ece();}import{WebSocketGateway as _0x2b1735,WEB_SOCKET_GATEWAY_STATES as _0x35338b}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0xb596a}from'ckeditor5/src/ui.js';class c extends _0x2ad3ba{static get[_0x1d1247(0x6e)](){const _0x45377f=_0x1d1247;return[_0x45377f(0x9a),_0xb596a];}static get[_0x1d1247(0x82)](){const _0x5a4dfc=_0x1d1247;return _0x5a4dfc(0xa4);}static get[_0x1d1247(0x69)](){return!0x0;}static get[_0x1d1247(0x96)](){return!0x0;}constructor(_0x1a7af6){const _0x54fe0a=_0x1d1247;super(_0x1a7af6),this[_0x54fe0a(0x76)](_0x54fe0a(0x68),_0x35338b[_0x54fe0a(0x9c)]),this[_0x54fe0a(0x76)](_0x54fe0a(0xa8),!0x1),this[_0x54fe0a(0xa3)]=new Set(),this[_0x54fe0a(0x85)]=!0x1,this[_0x54fe0a(0x94)]=Object[_0x54fe0a(0x86)](_0x5edc9e);}[_0x1d1247(0x6d)](){const _0x5b2842=_0x1d1247,_0x6f5b8c=this[_0x5b2842(0xa9)],_0x524fb4=_0x6f5b8c[_0x5b2842(0x99)][_0x5b2842(0x8e)](_0x5b2842(0x9a)),_0x34c37e=_0x6f5b8c[_0x5b2842(0x99)][_0x5b2842(0x8e)](_0xb596a);if(!_0x524fb4[_0x5b2842(0x6b)])throw new _0x190842(_0x5b2842(0x9e),this);if(!_0x524fb4[_0x5b2842(0x77)])throw new _0x190842(_0x5b2842(0xb2),this);return this[_0x5b2842(0x94)][_0x5b2842(0xaf)](window,_0x5b2842(0x8b),()=>this[_0x5b2842(0xa8)]=!0x0),this[_0x5b2842(0x94)][_0x5b2842(0xaf)](window,_0x5b2842(0x7a),()=>this[_0x5b2842(0xa8)]=!0x1),this[_0x5b2842(0xa9)][_0x5b2842(0x6f)][_0x5b2842(0x7e)](_0x5b2842(0x97),0xa),this[_0x5b2842(0xa9)][_0x5b2842(0x6f)][_0x5b2842(0x7e)](_0x5b2842(0x8d),0x14),c[_0x5b2842(0xa4)][_0x5b2842(0xad)](_0x524fb4[_0x5b2842(0x6b)],_0x524fb4[_0x5b2842(0x77)],{'timeout':0x3e8*this[_0x5b2842(0xa9)][_0x5b2842(0x6f)][_0x5b2842(0x8e)](_0x5b2842(0x97)),'requestTimeout':0x3e8*this[_0x5b2842(0xa9)][_0x5b2842(0x6f)][_0x5b2842(0x8e)](_0x5b2842(0x8d))})[_0x5b2842(0x75)](_0x4d156e=>{const _0x393d02=_0x5b2842;if(this[_0x393d02(0xa0)]=_0x4d156e,this[_0x393d02(0x8a)](_0x393d02(0x68))['to'](_0x4d156e,_0x393d02(0x68),this,_0x393d02(0xa8),(_0x21b919,_0x7a2dce)=>(_0x393d02(0x7f)!==_0x21b919&&(this[_0x393d02(0x85)]=!0x0),_0x7a2dce||_0x21b919!==_0x35338b[_0x393d02(0x9c)]?_0x35338b[_0x393d02(0x70)]:this[_0x393d02(0x68)]==_0x35338b[_0x393d02(0x70)]&&this[_0x393d02(0x85)]?(this[_0x393d02(0x85)]=!0x1,this[_0x393d02(0xa1)](),_0x35338b[_0x393d02(0x8f)]):_0x35338b[_0x393d02(0x9c)])),this[_0x393d02(0xa0)]['on'](_0x393d02(0xa7),(_0x3b9ee5,_0x3f9f1e)=>{const _0x42353d=_0x393d02;if(_0x42353d(0xb0)!==_0x3f9f1e[_0x42353d(0xb1)])throw console[_0x42353d(0xa7)](_0x3f9f1e),new _0x190842(_0x42353d(0x72),null,{'originalError':_0x3f9f1e});_0x34c37e[_0x42353d(0xa6)](_0x42353d(0xab),{'title':_0x42353d(0x9f),'namespace':_0x42353d(0x83)});}),!_0x4d156e['me'])return new Promise(_0x4cdec0=>_0x4d156e['on'](_0x393d02(0x87),_0x4cdec0));})[_0x5b2842(0xac)](_0x4693fd=>{const _0x126145=_0x5b2842;throw console[_0x126145(0xa7)](_0x4693fd),new _0x190842(_0x126145(0x72),null,{'originalError':_0x4693fd});});}[_0x1d1247(0x71)](_0x175fe8){const _0x26f340=_0x1d1247;if(_0x26f340(0x80)!=typeof _0x175fe8[_0x26f340(0x7c)])throw new _0x190842(_0x26f340(0x79),this);if(this[_0x26f340(0xaa)](_0x175fe8))throw new _0x190842(_0x26f340(0x91),this,{'name':_0x175fe8[_0x26f340(0x88)][_0x26f340(0x82)]});this[_0x26f340(0xa3)][_0x26f340(0x81)](_0x175fe8);}[_0x1d1247(0x78)](_0x1ad863){const _0x4c7c78=_0x1d1247;this[_0x4c7c78(0xa3)][_0x4c7c78(0x6a)](_0x1ad863);}[_0x1d1247(0xaa)](_0x26a62f){const _0x2bf64b=_0x1d1247;return this[_0x2bf64b(0xa3)][_0x2bf64b(0xa2)](_0x26a62f);}[_0x1d1247(0xa1)](){const _0x1a7310=_0x1d1247;return this[_0x1a7310(0xa0)][_0x1a7310(0x7c)]()[_0x1a7310(0x75)](()=>Promise[_0x1a7310(0x89)](Array[_0x1a7310(0x9d)](this[_0x1a7310(0xa3)],_0xed4c31=>_0xed4c31[_0x1a7310(0x7c)]())))[_0x1a7310(0x75)](()=>this[_0x1a7310(0x68)]=_0x35338b[_0x1a7310(0x9c)])[_0x1a7310(0xac)](_0x22626d=>{const _0x16a231=_0x1a7310;throw console[_0x16a231(0xa7)](_0x22626d),new _0x190842(_0x16a231(0x95),this[_0x16a231(0xa9)]);});}[_0x1d1247(0x6c)](){const _0x1e10f5=_0x1d1247;this[_0x1e10f5(0xa0)]&&this[_0x1e10f5(0xa0)][_0x1e10f5(0x6c)](),this[_0x1e10f5(0x68)]=_0x35338b[_0x1e10f5(0x70)],this[_0x1e10f5(0x94)][_0x1e10f5(0x74)]();}[_0x1d1247(0x9b)](){const _0x2f4512=_0x1d1247;this[_0x2f4512(0x6c)](),super[_0x2f4512(0x9b)]();}}c[_0x1d1247(0xa4)]=_0x2b1735,c[_0x1d1247(0x7b)]=0x3e8;export default c;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5a6238=_0xd769;(function(_0x13ef69,_0x5f0a3e){const _0x535d5d=_0xd769,_0x103e6f=_0x13ef69();while(!![]){try{const _0x37e3a0=-parseInt(_0x535d5d(0x119))/0x1*(-parseInt(_0x535d5d(0xd0))/0x2)+-parseInt(_0x535d5d(0xc3))/0x3+-parseInt(_0x535d5d(0xc2))/0x4+parseInt(_0x535d5d(0x122))/0x5*(-parseInt(_0x535d5d(0xfb))/0x6)+-parseInt(_0x535d5d(0xd5))/0x7+-parseInt(_0x535d5d(0xd7))/0x8*(-parseInt(_0x535d5d(0xe0))/0x9)+parseInt(_0x535d5d(0xf6))/0xa*(parseInt(_0x535d5d(0xd6))/0xb);if(_0x37e3a0===_0x5f0a3e)break;else _0x103e6f['push'](_0x103e6f['shift']());}catch(_0x4281a9){_0x103e6f['push'](_0x103e6f['shift']());}}}(_0x2d10,0xd3048));import{Plugin as _0x23b8f8}from'ckeditor5/src/core.js';import{version as _0x5c03d9}from'ckeditor5/src/utils.js';function _0xd769(_0x5a290d,_0x2b8484){const _0x2d1017=_0x2d10();return _0xd769=function(_0xd769cd,_0x1b364d){_0xd769cd=_0xd769cd-0xb6;let _0x24f9cb=_0x2d1017[_0xd769cd];return _0x24f9cb;},_0xd769(_0x5a290d,_0x2b8484);}import{Users as _0x313e9c}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x8ea207 from'../realtimecollaborativeediting/realtimecollaborationclient.js';import _0x585fb3 from'../realtimecollaborativeediting/websocketgateway.js';import _0x468a74 from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x27a8c9,RevisionHistoryService as _0x2f0185,User as _0x301d93,WEB_SOCKET_GATEWAY_STATES as _0x128f5f}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class u extends _0x23b8f8{static get[_0x5a6238(0x117)](){const _0x1b3aed=_0x5a6238;return[_0x585fb3,_0x8ea207,_0x1b3aed(0x114),_0x468a74,_0x313e9c];}static get[_0x5a6238(0x113)](){const _0x3ef98a=_0x5a6238;return _0x3ef98a(0xda);}static get[_0x5a6238(0xdc)](){return!0x0;}static get[_0x5a6238(0xef)](){return!0x0;}constructor(_0x10aa7e){const _0x273160=_0x5a6238;super(_0x10aa7e);const _0x3aa39f=this[_0x273160(0xce)][_0x273160(0x107)][_0x273160(0xbd)](_0x273160(0xfd));this[_0x273160(0xf2)]=null,this[_0x273160(0xc1)]=this[_0x273160(0xce)][_0x273160(0x11d)][_0x273160(0xbd)](_0x273160(0x114)),this[_0x273160(0xdf)]=new u[(_0x273160(0x102))](_0x3aa39f);}async[_0x5a6238(0x125)](){const _0x44663f=_0x5a6238,_0xe99fd4=this[_0x44663f(0xce)][_0x44663f(0x11d)][_0x44663f(0xbd)](_0x8ea207),_0x4afc4b=_0xe99fd4[_0x44663f(0xc5)],_0x4c89db=this[_0x44663f(0xce)][_0x44663f(0x11d)][_0x44663f(0xbd)](_0x585fb3);this[_0x44663f(0xc1)][_0x44663f(0x10a)]({'history':_0x4afc4b,'getLatestVersion':()=>this[_0x44663f(0xba)](),'getCurrentRevisionId':()=>_0xe99fd4[_0x44663f(0x115)]});const _0xdb6bac=this[_0x44663f(0xce)][_0x44663f(0x107)][_0x44663f(0xbd)](_0x44663f(0x129))||_0x5c03d9,_0x436719=await _0x27a8c9[_0x44663f(0xe6)](_0x4c89db[_0x44663f(0xf7)],_0xdb6bac);this[_0x44663f(0xc1)][_0x44663f(0xd4)]={'getRevision':async({revisionId:_0xbb604c})=>(await this[_0x44663f(0xd8)](),await this[_0x44663f(0xdf)][_0x44663f(0x10c)](_0xbb604c)),'updateRevisions':async _0x551526=>{const _0xda3540=_0x44663f;await this[_0xda3540(0xd8)]();const _0x53f690=this[_0xda3540(0xc1)][_0xda3540(0x111)];if(_0x436719&&0x1===_0x551526[_0xda3540(0xd2)]&&_0x551526[0x0]['id']===_0x53f690['id'])return _0x551526;for(const _0xe82c62 of _0x551526)_0xe82c62['id']===_0x53f690['id']&&(_0xe82c62[_0xda3540(0xb9)]=_0xe82c62[_0xda3540(0xc9)]===_0xe82c62[_0xda3540(0xc6)]);return this[_0xda3540(0xdf)][_0xda3540(0x10f)](_0x551526,this[_0xda3540(0xf2)])[_0xda3540(0xcd)](_0x255ac5=>(this[_0xda3540(0xf2)]=_0x255ac5,_0x551526))[_0xda3540(0xca)](_0x5cc3be=>{const _0x59e6f5=_0xda3540;if(st(_0x5cc3be)||_0x59e6f5(0x109)===_0x5cc3be[_0x59e6f5(0xc8)]&&void 0x0!==_0x5cc3be[_0x59e6f5(0xf9)][_0x59e6f5(0xe8)]){for(const _0x3193e2 of _0x551526){!this[_0x59e6f5(0xc1)][_0x59e6f5(0x11b)][_0x59e6f5(0x10c)](_0x3193e2['id'])||this[_0x59e6f5(0xc1)][_0x59e6f5(0xf4)](_0x3193e2['id'],_0x3193e2,!0x1);}if(st(_0x5cc3be))throw _0x5cc3be;return _0x551526;}throw _0x5cc3be;});}},this[_0x44663f(0xd1)](this[_0x44663f(0xdf)],_0x44663f(0x103),(_0x52b67f,{revisionsData:_0x36d794,requestId:_0x28c669})=>{const _0x2699ea=_0x44663f;Math[_0x2699ea(0x10d)](..._0x36d794[_0x2699ea(0x11e)](_0x55b753=>_0x55b753[_0x2699ea(0xc6)]))>this[_0x2699ea(0x11a)]()-0x1?this[_0x2699ea(0xba)]()[_0x2699ea(0xcd)](()=>{const _0x1577ec=_0x2699ea;this[_0x1577ec(0xfa)](_0x36d794,_0x28c669);}):this[_0x2699ea(0xfa)](_0x36d794,_0x28c669);});const {revisions:_0x429e38,requestId:_0x2b0581}=await this[_0x44663f(0xdf)][_0x44663f(0x121)](_0x4c89db[_0x44663f(0xf7)]);_0x4c89db[_0x44663f(0xc7)](this),this[_0x44663f(0xf2)]=_0x2b0581,await this[_0x44663f(0x112)](_0x429e38);for(const _0x58363a of _0x429e38)this[_0x44663f(0xc1)][_0x44663f(0xe4)](_0x58363a);this[_0x44663f(0xd1)](_0xe99fd4,_0x44663f(0xed),(_0x5634fa,_0x1bc042,_0x821caf)=>{const _0x539dc8=_0x44663f;_0x821caf&&(this[_0x539dc8(0xd3)]=_0xe99fd4[_0x539dc8(0x10b)],_0x5634fa[_0x539dc8(0xb6)]());}),this[_0x44663f(0xc1)][_0x44663f(0x100)](_0x44663f(0x126))['to'](_0x4c89db,_0x44663f(0xe3),_0x332548=>_0x332548===_0x128f5f[_0x44663f(0xfc)]);}async[_0x5a6238(0x116)](){const _0x1dbf19=_0x5a6238,_0x3dabcc=this[_0x1dbf19(0xce)][_0x1dbf19(0x11d)][_0x1dbf19(0xbd)](_0x585fb3),_0x2d0a10=this[_0x1dbf19(0xce)][_0x1dbf19(0x11d)][_0x1dbf19(0xbd)](_0x8ea207),_0x54a46c=async()=>{const _0x456146=_0x1dbf19,_0x960012=this[_0x456146(0xc1)][_0x456146(0x111)],_0xb8c9b2=_0x960012['id'],_0x3174b4=_0xb8c9b2!==_0x2d0a10[_0x456146(0x115)];if(_0x3174b4){const _0x32b6b1=_0x2d0a10[_0x456146(0x10b)]-this[_0x456146(0xd3)],_0xc10ce4=this[_0x456146(0x11a)]();this[_0x456146(0xc1)][_0x456146(0xe1)][_0x456146(0xc4)]();if(_0x960012[_0x456146(0xc6)]+_0x32b6b1!==_0xc10ce4){const _0x427bef=_0x960012[_0x456146(0xc9)]+_0x32b6b1,_0x2fb8cc=this[_0x456146(0xce)][_0x456146(0x11d)][_0x456146(0xbd)](_0x313e9c),_0x4e6412=this[_0x456146(0xc1)][_0x456146(0xc0)]({'revision':_0x960012,'from':_0x427bef,'to':_0xc10ce4});_0x4e6412['id']=_0x960012['id'];const _0x3338dc=_0x4e6412[_0x456146(0x127)][_0x456146(0x11e)](_0x1cbbe9=>_0x2fb8cc[_0x456146(0xd9)](_0x1cbbe9));_0x960012[_0x456146(0x11f)]({..._0x4e6412,'authors':_0x3338dc},!0x0),this[_0x456146(0xc1)][_0x456146(0xf4)](_0x960012['id'],_0x4e6412,!0x0);}this[_0x456146(0xc1)][_0x456146(0xcc)]=_0xc10ce4,(_0x960012[_0x456146(0xc6)]===_0x960012[_0x456146(0xc9)]&&!this[_0x456146(0xc1)][_0x456146(0xde)][_0x456146(0x101)](_0xb8c9b2)&&this[_0x456146(0xc1)][_0x456146(0x11b)][_0x456146(0xff)][_0x456146(0x120)](_0xb8c9b2),this[_0x456146(0xc1)][_0x456146(0xf0)](_0xc10ce4));}const {revisions:_0x2183a7,requestId:_0x54d564}=await this[_0x456146(0xdf)][_0x456146(0x116)](_0x3dabcc[_0x456146(0xf7)],this[_0x456146(0xf2)]);_0x3174b4&&_0x2183a7[_0x456146(0xd2)]>0x0?_0x2d0a10[_0x456146(0xbe)]():(await this[_0x456146(0x112)](_0x2183a7),this[_0x456146(0xfa)](_0x2183a7,_0x54d564),this[_0x456146(0xc1)][_0x456146(0xbc)]());};return _0x2d0a10[_0x1dbf19(0xf5)]?_0x54a46c():new Promise((_0x56ec75,_0x3c605e)=>{const _0xa26294=_0x1dbf19;_0x2d0a10[_0xa26294(0xb7)](_0xa26294(0xed),()=>{const _0x2caaa5=_0xa26294;_0x54a46c()[_0x2caaa5(0xcd)](_0x56ec75)[_0x2caaa5(0xca)](_0x3c605e);});});}[_0x5a6238(0xe9)](){const _0x3ac221=_0x5a6238;super[_0x3ac221(0xe9)]();}async[_0x5a6238(0xd8)](){const _0x4e7731=_0x5a6238;this[_0x4e7731(0xdf)][_0x4e7731(0x118)]||await new Promise(_0x59b433=>{const _0x1ef3a1=_0x4e7731;this[_0x1ef3a1(0xd1)](this[_0x1ef3a1(0xdf)],_0x1ef3a1(0xe5),_0x1a9a39=>{const _0x2beb5=_0x1ef3a1;_0x1a9a39[_0x2beb5(0xb6)](),_0x59b433();});});}[_0x5a6238(0x11a)](){const _0x57cb50=_0x5a6238,_0x1ca072=this[_0x57cb50(0xce)][_0x57cb50(0x11d)][_0x57cb50(0xbd)](_0x8ea207)[_0x57cb50(0xc5)][_0x57cb50(0x128)]()[_0x57cb50(0xf1)]();for(const _0x3dfddc of _0x1ca072)if(_0x57cb50(0x11c)!==_0x3dfddc[_0x57cb50(0xcb)]||_0x3dfddc[_0x57cb50(0xee)])return _0x3dfddc[_0x57cb50(0xcf)]+0x1;}[_0x5a6238(0xba)](){const _0x48642c=_0x5a6238,_0x25e85b=this[_0x48642c(0xce)][_0x48642c(0x11d)][_0x48642c(0xbd)](_0x8ea207);return new Promise(_0x1bee5e=>{const _0xc03ab9=_0x48642c;_0x25e85b[_0xc03ab9(0xe2)]?_0x25e85b[_0xc03ab9(0xb7)](_0xc03ab9(0xdd),()=>{const _0xe1d08b=_0xc03ab9;_0x1bee5e(this[_0xe1d08b(0x11a)]());}):_0x1bee5e(this[_0xc03ab9(0x11a)]());});}[_0x5a6238(0xfa)](_0x2b7acb,_0x5883bb){const _0x1f261f=_0x5a6238,_0x5bffa9=this[_0x1f261f(0xc1)][_0x1f261f(0x11b)];this[_0x1f261f(0xf2)]=_0x5883bb;for(const _0x3f816a of _0x2b7acb){const _0xf3c772=_0x5bffa9[_0x1f261f(0x10c)](_0x3f816a['id']);if(_0xf3c772){if((_0x3f816a[_0x1f261f(0xc9)]||_0x3f816a[_0x1f261f(0xc6)])&&(_0x3f816a[_0x1f261f(0xf3)]=null),_0xf3c772===this[_0x1f261f(0xc1)][_0x1f261f(0x111)]){const _0x18468f=Math[_0x1f261f(0x10d)](_0xf3c772[_0x1f261f(0xc6)],_0x3f816a[_0x1f261f(0xc6)]),_0x2cd6a4=Math[_0x1f261f(0x10d)](_0xf3c772[_0x1f261f(0xc9)],_0x3f816a[_0x1f261f(0xc9)]);let _0x477219;_0xf3c772[_0x1f261f(0xc6)]===_0x3f816a[_0x1f261f(0xc6)]&&_0xf3c772[_0x1f261f(0xc9)]===_0x3f816a[_0x1f261f(0xc9)]?(_0x477219=!0x0,this[_0x1f261f(0xeb)](_0x3f816a)):_0x3f816a[_0x1f261f(0xc6)]===_0x18468f&&_0x3f816a[_0x1f261f(0xc9)]===_0x2cd6a4?_0x477219=!0x1:(_0xf3c772[_0x1f261f(0xc6)]===_0x18468f&&_0xf3c772[_0x1f261f(0xc9)]===_0x2cd6a4||this[_0x1f261f(0xec)]({'revision':_0xf3c772,'from':_0x2cd6a4,'to':_0x18468f}),_0x477219=!0x0),_0x477219&&(delete _0x3f816a[_0x1f261f(0xc9)],delete _0x3f816a[_0x1f261f(0xc6)],delete _0x3f816a[_0x1f261f(0xf3)],delete _0x3f816a[_0x1f261f(0x124)],delete _0x3f816a[_0x1f261f(0x127)]);}this[_0x1f261f(0xc1)][_0x1f261f(0xb8)](_0x3f816a),this[_0x1f261f(0xeb)](_0x3f816a);}else this[_0x1f261f(0xc1)][_0x1f261f(0xe4)](_0x3f816a);}const _0x5bc245=_0x5bffa9[_0x1f261f(0xf8)]();_0x5bc245[_0x1f261f(0xf1)]();for(let _0x2b3527=0x0;_0x2b3527<_0x5bc245[_0x1f261f(0xd2)]-0x1;_0x2b3527++){const _0x426c65=_0x5bc245[_0x2b3527],_0x472284=_0x5bc245[_0x2b3527+0x1];if(_0x426c65[_0x1f261f(0xc9)]<_0x472284[_0x1f261f(0xc6)]){const _0x1f8d89=_0x472284[_0x1f261f(0xc6)],_0x3cfadf=Math[_0x1f261f(0x10d)](_0x1f8d89,_0x426c65[_0x1f261f(0xc6)]);this[_0x1f261f(0xec)]({'revision':_0x426c65,'from':_0x1f8d89,'to':_0x3cfadf});}}}[_0x5a6238(0xec)]({revision:_0x22beb5,from:_0x2cd54f,to:_0x650ac0}={}){const _0x30cb3b=_0x5a6238,_0x232e82=this[_0x30cb3b(0xce)][_0x30cb3b(0x11d)][_0x30cb3b(0xbd)](_0x313e9c),_0x5664b5=this[_0x30cb3b(0xc1)][_0x30cb3b(0xc0)]({'revision':_0x22beb5,'from':_0x2cd54f,'to':_0x650ac0});_0x5664b5[_0x30cb3b(0x123)]=_0x5664b5[_0x30cb3b(0x127)][_0x30cb3b(0x11e)](_0x460cd2=>_0x232e82[_0x30cb3b(0xd9)](_0x460cd2)),_0x22beb5[_0x30cb3b(0x11f)](_0x5664b5);}[_0x5a6238(0xeb)](_0x1d8f0d){const _0x337790=_0x5a6238,_0x22449b={};_0x22449b['id']=_0x1d8f0d['id'];for(const _0x5651f1 of Object[_0x337790(0xe7)](_0x1d8f0d))'id'!==_0x5651f1&&(_0x22449b[_0x5651f1]=void 0x0);this[_0x337790(0xc1)][_0x337790(0xf4)](_0x22449b['id'],_0x22449b,!0x0);}async[_0x5a6238(0x112)](_0x503a34){const _0x1fb7e7=_0x5a6238,_0x424325=this[_0x1fb7e7(0xce)][_0x1fb7e7(0x11d)][_0x1fb7e7(0xbd)](_0x313e9c),{connection:_0x5f409d}=this[_0x1fb7e7(0xce)][_0x1fb7e7(0x11d)][_0x1fb7e7(0xbd)](_0x585fb3),_0x24327=new Set();for(const _0x4adf74 of _0x503a34){for(const _0x3968d4 of _0x4adf74[_0x1fb7e7(0x127)])_0x5ea9e9(_0x3968d4);_0x4adf74[_0x1fb7e7(0x105)]&&_0x5ea9e9(_0x4adf74[_0x1fb7e7(0x105)]);}if(0x0===_0x24327[_0x1fb7e7(0x108)])return;const _0x2dc190=await _0x301d93[_0x1fb7e7(0xbf)](_0x5f409d,Array[_0x1fb7e7(0x10e)](_0x24327));for(const _0x131e4a of _0x2dc190)_0x424325[_0x1fb7e7(0xd9)](_0x131e4a['id'])||_0x424325[_0x1fb7e7(0x104)](_0x131e4a);function _0x5ea9e9(_0x1e7f44){const _0x3ea334=_0x1fb7e7;_0x424325[_0x3ea334(0xd9)](_0x1e7f44)||_0x24327[_0x3ea334(0x106)](_0x1e7f44);}}}u[_0x5a6238(0x102)]=_0x2f0185;export default u;function _0x2d10(){const _0x435a4e=['add','config','size','400','setSource','_offset','getRevision','max','from','updateRevisions','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','currentRevision','_fetchMissingUsers','pluginName','RevisionTracker','sessionId','reconnect','requires','isConnected','7ORzHle','_getLatestVersionFromServerOperations','repository','marker','plugins','map','_update','remove','connect','10cdbOcU','authors','createdAt','init','isEnabled','authorsIds','getOperations','cloudServices.bundleVersion','off','once','setRevisionData','isEmptyCurrent','_getLatestVersion','cloud-services-internal-error:\x20Request\x20timeout.','sendBufferedUpdates','get','_handleReconnectionError','getMany','buildRevisionData','_revisionTracker','6159388MkiGxV','4655652SDmAoz','reInit','serverHistory','toVersion','addToReconnectionStack','code','fromVersion','catch','type','_startingVersion','then','editor','baseVersion','153278lrmskH','listenTo','length','_oldOffset','adapter','11244513tLqFer','11XCWIRB','464VtfedH','_waitForServiceReady','getUser','CloudServicesRevisionHistoryAdapter','startsWith','isOfficialPlugin','change:_isPendingUpdate','_bufferedUpdates','_revisionHistoryService','142353bkjJHK','_revisionDataBuilder','_isPendingUpdate','state','addRevisionData','connected','isBundleUploaded','keys','wrongRequestId','destroy','message','_preventResendingRevisionData','_fixRevision','change:_isConnected','affectsData','isPremiumPlugin','_createCurrentRevision','reverse','_lastRequestId','diffData','_bufferUpdate','_isConnected','48540850WzdQXw','connection','getRevisions','data','_handleRevisionsUpdate','2236578klvfNy','CONNECTED','collaboration.channelId','cloud-services-internal-error:\x20Not\x20connected.','_revisions','bind','has','RevisionHistoryService','revisionsUpdated','addUser','creatorId'];_0x2d10=function(){return _0x435a4e;};return _0x2d10();}function st(_0x12aa0d){const _0x1cc047=_0x5a6238;return _0x12aa0d[_0x1cc047(0xea)][_0x1cc047(0xdb)](_0x1cc047(0x110))||_0x12aa0d[_0x1cc047(0xea)][_0x1cc047(0xdb)](_0x1cc047(0xfe))||_0x12aa0d[_0x1cc047(0xea)][_0x1cc047(0xdb)](_0x1cc047(0xbb));}
|
|
23
|
+
const _0x2f8933=_0x25cf;(function(_0x2abef9,_0x299ee3){const _0x2b0977=_0x25cf,_0x310d96=_0x2abef9();while(!![]){try{const _0x5c206a=parseInt(_0x2b0977(0x8b))/0x1*(parseInt(_0x2b0977(0xda))/0x2)+parseInt(_0x2b0977(0xdc))/0x3+parseInt(_0x2b0977(0xae))/0x4+-parseInt(_0x2b0977(0xe2))/0x5*(parseInt(_0x2b0977(0xd2))/0x6)+-parseInt(_0x2b0977(0xc4))/0x7+-parseInt(_0x2b0977(0xd1))/0x8+parseInt(_0x2b0977(0xd6))/0x9*(parseInt(_0x2b0977(0x89))/0xa);if(_0x5c206a===_0x299ee3)break;else _0x310d96['push'](_0x310d96['shift']());}catch(_0x2acc28){_0x310d96['push'](_0x310d96['shift']());}}}(_0x19b8,0xd2bb4));import{Plugin as _0x1e3867}from'ckeditor5/src/core.js';import{version as _0x2c1853}from'ckeditor5/src/utils.js';import{Users as _0x43fd0c}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x377ebf from'../realtimecollaborativeediting/realtimecollaborationclient.js';import _0x245101 from'../realtimecollaborativeediting/websocketgateway.js';import _0x1667e1 from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0xd953db,RevisionHistoryService as _0x227534,User as _0x244f98,WEB_SOCKET_GATEWAY_STATES as _0xd74811}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class u extends _0x1e3867{static get[_0x2f8933(0x95)](){const _0x58bcd=_0x2f8933;return[_0x245101,_0x377ebf,_0x58bcd(0x90),_0x1667e1,_0x43fd0c];}static get[_0x2f8933(0x76)](){const _0x13ef91=_0x2f8933;return _0x13ef91(0xcf);}static get[_0x2f8933(0xc0)](){return!0x0;}static get[_0x2f8933(0xac)](){return!0x0;}constructor(_0x49c0fd){const _0xce3484=_0x2f8933;super(_0x49c0fd);const _0x4fcc85=this[_0xce3484(0xce)][_0xce3484(0x83)][_0xce3484(0xcb)](_0xce3484(0xbc));this[_0xce3484(0x96)]=null,this[_0xce3484(0xba)]=this[_0xce3484(0xce)][_0xce3484(0x94)][_0xce3484(0xcb)](_0xce3484(0x90)),this[_0xce3484(0x93)]=new u[(_0xce3484(0x7e))](_0x4fcc85);}async[_0x2f8933(0xa8)](){const _0x5a3a2f=_0x2f8933,_0x265622=this[_0x5a3a2f(0xce)][_0x5a3a2f(0x94)][_0x5a3a2f(0xcb)](_0x377ebf),_0x4a68e0=_0x265622[_0x5a3a2f(0xa5)],_0x3f7260=this[_0x5a3a2f(0xce)][_0x5a3a2f(0x94)][_0x5a3a2f(0xcb)](_0x245101);this[_0x5a3a2f(0xba)][_0x5a3a2f(0x99)]({'history':_0x4a68e0,'getLatestVersion':()=>this[_0x5a3a2f(0xc5)](),'getCurrentRevisionId':()=>_0x265622[_0x5a3a2f(0x97)]});const _0x1871b1=this[_0x5a3a2f(0xce)][_0x5a3a2f(0x83)][_0x5a3a2f(0xcb)](_0x5a3a2f(0x80))||_0x2c1853,_0x90ec84=await _0xd953db[_0x5a3a2f(0xbb)](_0x3f7260[_0x5a3a2f(0x92)],_0x1871b1);this[_0x5a3a2f(0xba)][_0x5a3a2f(0xca)]={'getRevision':async({revisionId:_0x1b2770})=>(await this[_0x5a3a2f(0xe0)](),await this[_0x5a3a2f(0x93)][_0x5a3a2f(0x9c)](_0x1b2770)),'updateRevisions':async _0x545d99=>{const _0x3a0716=_0x5a3a2f;await this[_0x3a0716(0xe0)]();const _0x160da5=this[_0x3a0716(0xba)][_0x3a0716(0xa3)];if(_0x90ec84&&0x1===_0x545d99[_0x3a0716(0x7b)]&&_0x545d99[0x0]['id']===_0x160da5['id'])return _0x545d99;for(const _0x3e0b49 of _0x545d99)_0x3e0b49['id']===_0x160da5['id']&&(_0x3e0b49[_0x3a0716(0xe4)]=_0x3e0b49[_0x3a0716(0xd0)]===_0x3e0b49[_0x3a0716(0xab)]);return this[_0x3a0716(0x93)][_0x3a0716(0x88)](_0x545d99,this[_0x3a0716(0x96)])[_0x3a0716(0xdf)](_0x2f21c2=>(this[_0x3a0716(0x96)]=_0x2f21c2,_0x545d99))[_0x3a0716(0xc7)](_0x3b20b7=>{const _0x286064=_0x3a0716;if(st(_0x3b20b7)||_0x286064(0xb3)===_0x3b20b7[_0x286064(0x87)]&&void 0x0!==_0x3b20b7[_0x286064(0x8d)][_0x286064(0xd9)]){for(const _0x23b737 of _0x545d99){!this[_0x286064(0xba)][_0x286064(0xd5)][_0x286064(0x9c)](_0x23b737['id'])||this[_0x286064(0xba)][_0x286064(0xb2)](_0x23b737['id'],_0x23b737,!0x1);}if(st(_0x3b20b7))throw _0x3b20b7;return _0x545d99;}throw _0x3b20b7;});}},this[_0x5a3a2f(0xa1)](this[_0x5a3a2f(0x93)],_0x5a3a2f(0x8c),(_0x23bcc0,{revisionsData:_0x1600a1,requestId:_0x42e55b})=>{const _0x131f8d=_0x5a3a2f;Math[_0x131f8d(0xa2)](..._0x1600a1[_0x131f8d(0x8e)](_0x4b5a70=>_0x4b5a70[_0x131f8d(0xab)]))>this[_0x131f8d(0xe6)]()-0x1?this[_0x131f8d(0xc5)]()[_0x131f8d(0xdf)](()=>{const _0x1adc87=_0x131f8d;this[_0x1adc87(0x8f)](_0x1600a1,_0x42e55b);}):this[_0x131f8d(0x8f)](_0x1600a1,_0x42e55b);});const {revisions:_0x328790,requestId:_0x1a73cc}=await this[_0x5a3a2f(0x93)][_0x5a3a2f(0x9b)](_0x3f7260[_0x5a3a2f(0x92)]);_0x3f7260[_0x5a3a2f(0xaf)](this),this[_0x5a3a2f(0x96)]=_0x1a73cc,await this[_0x5a3a2f(0xbe)](_0x328790);for(const _0x3354e3 of _0x328790)this[_0x5a3a2f(0xba)][_0x5a3a2f(0xb7)](_0x3354e3);this[_0x5a3a2f(0xa1)](_0x265622,_0x5a3a2f(0xe3),(_0x9543f1,_0x34d3ea,_0x4d7a4b)=>{const _0x33c020=_0x5a3a2f;_0x4d7a4b&&(this[_0x33c020(0x91)]=_0x265622[_0x33c020(0x9a)],_0x9543f1[_0x33c020(0xe1)]());}),this[_0x5a3a2f(0xba)][_0x5a3a2f(0xb8)](_0x5a3a2f(0xb5))['to'](_0x3f7260,_0x5a3a2f(0xc9),_0x2b6514=>_0x2b6514===_0xd74811[_0x5a3a2f(0x78)]);}async[_0x2f8933(0x7a)](){const _0x583471=_0x2f8933,_0x46e575=this[_0x583471(0xce)][_0x583471(0x94)][_0x583471(0xcb)](_0x245101),_0x2ed59a=this[_0x583471(0xce)][_0x583471(0x94)][_0x583471(0xcb)](_0x377ebf),_0x4dda58=async()=>{const _0x3776de=_0x583471,_0xc11137=this[_0x3776de(0xba)][_0x3776de(0xa3)],_0x157fce=_0xc11137['id'],_0x1dc40c=_0x157fce!==_0x2ed59a[_0x3776de(0x97)];if(_0x1dc40c){const _0x7ac139=_0x2ed59a[_0x3776de(0x9a)]-this[_0x3776de(0x91)],_0x433ade=this[_0x3776de(0xe6)]();this[_0x3776de(0xba)][_0x3776de(0xb0)][_0x3776de(0xd3)]();if(_0xc11137[_0x3776de(0xab)]+_0x7ac139!==_0x433ade){const _0x20f55a=_0xc11137[_0x3776de(0xd0)]+_0x7ac139,_0x18da14=this[_0x3776de(0xce)][_0x3776de(0x94)][_0x3776de(0xcb)](_0x43fd0c),_0x737b23=this[_0x3776de(0xba)][_0x3776de(0xcd)]({'revision':_0xc11137,'from':_0x20f55a,'to':_0x433ade});_0x737b23['id']=_0xc11137['id'];const _0x5a4bf4=_0x737b23[_0x3776de(0x8a)][_0x3776de(0x8e)](_0x21693e=>_0x18da14[_0x3776de(0xbf)](_0x21693e));_0xc11137[_0x3776de(0xde)]({..._0x737b23,'authors':_0x5a4bf4},!0x0),this[_0x3776de(0xba)][_0x3776de(0xb2)](_0xc11137['id'],_0x737b23,!0x0);}this[_0x3776de(0xba)][_0x3776de(0xa4)]=_0x433ade,(_0xc11137[_0x3776de(0xab)]===_0xc11137[_0x3776de(0xd0)]&&!this[_0x3776de(0xba)][_0x3776de(0xa7)][_0x3776de(0x86)](_0x157fce)&&this[_0x3776de(0xba)][_0x3776de(0xd5)][_0x3776de(0xb6)][_0x3776de(0x7d)](_0x157fce),this[_0x3776de(0xba)][_0x3776de(0x85)](_0x433ade));}const {revisions:_0xd78032,requestId:_0x3e75d9}=await this[_0x3776de(0x93)][_0x3776de(0x7a)](_0x46e575[_0x3776de(0x92)],this[_0x3776de(0x96)]);_0x1dc40c&&_0xd78032[_0x3776de(0x7b)]>0x0?_0x2ed59a[_0x3776de(0x7f)]():(await this[_0x3776de(0xbe)](_0xd78032),this[_0x3776de(0x8f)](_0xd78032,_0x3e75d9),this[_0x3776de(0xba)][_0x3776de(0xc8)]());};return _0x2ed59a[_0x583471(0xcc)]?_0x4dda58():new Promise((_0x33aaac,_0x15a12c)=>{const _0x2a0558=_0x583471;_0x2ed59a[_0x2a0558(0xc1)](_0x2a0558(0xe3),()=>{const _0x27b604=_0x2a0558;_0x4dda58()[_0x27b604(0xdf)](_0x33aaac)[_0x27b604(0xc7)](_0x15a12c);});});}[_0x2f8933(0x9f)](){const _0x3103ca=_0x2f8933;super[_0x3103ca(0x9f)]();}async[_0x2f8933(0xe0)](){const _0xcb44=_0x2f8933;this[_0xcb44(0x93)][_0xcb44(0xb1)]||await new Promise(_0x156d68=>{const _0x5103a4=_0xcb44;this[_0x5103a4(0xa1)](this[_0x5103a4(0x93)],_0x5103a4(0x84),_0x35611a=>{const _0x276cc9=_0x5103a4;_0x35611a[_0x276cc9(0xe1)](),_0x156d68();});});}[_0x2f8933(0xe6)](){const _0xd688a7=_0x2f8933,_0x46d595=this[_0xd688a7(0xce)][_0xd688a7(0x94)][_0xd688a7(0xcb)](_0x377ebf)[_0xd688a7(0xa5)][_0xd688a7(0x9e)]()[_0xd688a7(0xc2)]();for(const _0x46471f of _0x46d595)if(_0xd688a7(0xad)!==_0x46471f[_0xd688a7(0xd8)]||_0x46471f[_0xd688a7(0xa6)])return _0x46471f[_0xd688a7(0xd4)]+0x1;}[_0x2f8933(0xc5)](){const _0x5b877f=_0x2f8933,_0x45e96c=this[_0x5b877f(0xce)][_0x5b877f(0x94)][_0x5b877f(0xcb)](_0x377ebf);return new Promise(_0x3d312f=>{const _0x17a0a4=_0x5b877f;_0x45e96c[_0x17a0a4(0x81)]?_0x45e96c[_0x17a0a4(0xc1)](_0x17a0a4(0xe7),()=>{const _0x64ae02=_0x17a0a4;_0x3d312f(this[_0x64ae02(0xe6)]());}):_0x3d312f(this[_0x17a0a4(0xe6)]());});}[_0x2f8933(0x8f)](_0x500b63,_0x5f3cd3){const _0x3c7f03=_0x2f8933,_0x5f5546=this[_0x3c7f03(0xba)][_0x3c7f03(0xd5)];this[_0x3c7f03(0x96)]=_0x5f3cd3;for(const _0x1b4f02 of _0x500b63){const _0xf81d62=_0x5f5546[_0x3c7f03(0x9c)](_0x1b4f02['id']);if(_0xf81d62){if((_0x1b4f02[_0x3c7f03(0xd0)]||_0x1b4f02[_0x3c7f03(0xab)])&&(_0x1b4f02[_0x3c7f03(0xa0)]=null),_0xf81d62===this[_0x3c7f03(0xba)][_0x3c7f03(0xa3)]){const _0x1a402a=Math[_0x3c7f03(0xa2)](_0xf81d62[_0x3c7f03(0xab)],_0x1b4f02[_0x3c7f03(0xab)]),_0x1f68da=Math[_0x3c7f03(0xa2)](_0xf81d62[_0x3c7f03(0xd0)],_0x1b4f02[_0x3c7f03(0xd0)]);let _0x74bcd9;_0xf81d62[_0x3c7f03(0xab)]===_0x1b4f02[_0x3c7f03(0xab)]&&_0xf81d62[_0x3c7f03(0xd0)]===_0x1b4f02[_0x3c7f03(0xd0)]?(_0x74bcd9=!0x0,this[_0x3c7f03(0x75)](_0x1b4f02)):_0x1b4f02[_0x3c7f03(0xab)]===_0x1a402a&&_0x1b4f02[_0x3c7f03(0xd0)]===_0x1f68da?_0x74bcd9=!0x1:(_0xf81d62[_0x3c7f03(0xab)]===_0x1a402a&&_0xf81d62[_0x3c7f03(0xd0)]===_0x1f68da||this[_0x3c7f03(0xb9)]({'revision':_0xf81d62,'from':_0x1f68da,'to':_0x1a402a}),_0x74bcd9=!0x0),_0x74bcd9&&(delete _0x1b4f02[_0x3c7f03(0xd0)],delete _0x1b4f02[_0x3c7f03(0xab)],delete _0x1b4f02[_0x3c7f03(0xa0)],delete _0x1b4f02[_0x3c7f03(0x77)],delete _0x1b4f02[_0x3c7f03(0x8a)]);}this[_0x3c7f03(0xba)][_0x3c7f03(0x82)](_0x1b4f02),this[_0x3c7f03(0x75)](_0x1b4f02);}else this[_0x3c7f03(0xba)][_0x3c7f03(0xb7)](_0x1b4f02);}const _0x4d8f9b=_0x5f5546[_0x3c7f03(0xbd)]();_0x4d8f9b[_0x3c7f03(0xc2)]();for(let _0xaa6d84=0x0;_0xaa6d84<_0x4d8f9b[_0x3c7f03(0x7b)]-0x1;_0xaa6d84++){const _0x2759c6=_0x4d8f9b[_0xaa6d84],_0x4f0d70=_0x4d8f9b[_0xaa6d84+0x1];if(_0x2759c6[_0x3c7f03(0xd0)]<_0x4f0d70[_0x3c7f03(0xab)]){const _0x5f0618=_0x4f0d70[_0x3c7f03(0xab)],_0x154fc7=Math[_0x3c7f03(0xa2)](_0x5f0618,_0x2759c6[_0x3c7f03(0xab)]);this[_0x3c7f03(0xb9)]({'revision':_0x2759c6,'from':_0x5f0618,'to':_0x154fc7});}}}[_0x2f8933(0xb9)]({revision:_0x53c6eb,from:_0x106e6a,to:_0x2a209d}={}){const _0x207055=_0x2f8933,_0x14ac85=this[_0x207055(0xce)][_0x207055(0x94)][_0x207055(0xcb)](_0x43fd0c),_0xd9b2c=this[_0x207055(0xba)][_0x207055(0xcd)]({'revision':_0x53c6eb,'from':_0x106e6a,'to':_0x2a209d});_0xd9b2c[_0x207055(0x98)]=_0xd9b2c[_0x207055(0x8a)][_0x207055(0x8e)](_0x1e8397=>_0x14ac85[_0x207055(0xbf)](_0x1e8397)),_0x53c6eb[_0x207055(0xde)](_0xd9b2c);}[_0x2f8933(0x75)](_0x5f3641){const _0x11e8f5=_0x2f8933,_0x2c3878={};_0x2c3878['id']=_0x5f3641['id'];for(const _0x43abe4 of Object[_0x11e8f5(0x79)](_0x5f3641))'id'!==_0x43abe4&&(_0x2c3878[_0x43abe4]=void 0x0);this[_0x11e8f5(0xba)][_0x11e8f5(0xb2)](_0x2c3878['id'],_0x2c3878,!0x0);}async[_0x2f8933(0xbe)](_0x579174){const _0x253bb4=_0x2f8933,_0x541f37=this[_0x253bb4(0xce)][_0x253bb4(0x94)][_0x253bb4(0xcb)](_0x43fd0c),{connection:_0x3bd4fb}=this[_0x253bb4(0xce)][_0x253bb4(0x94)][_0x253bb4(0xcb)](_0x245101),_0x7ac078=new Set();for(const _0x18930a of _0x579174){for(const _0x29b88b of _0x18930a[_0x253bb4(0x8a)])_0x1f5644(_0x29b88b);_0x18930a[_0x253bb4(0xdb)]&&_0x1f5644(_0x18930a[_0x253bb4(0xdb)]);}if(0x0===_0x7ac078[_0x253bb4(0xe5)])return;const _0x40e3fb=await _0x244f98[_0x253bb4(0x7c)](_0x3bd4fb,Array[_0x253bb4(0xb4)](_0x7ac078));for(const _0x468ce2 of _0x40e3fb)_0x541f37[_0x253bb4(0xbf)](_0x468ce2['id'])||_0x541f37[_0x253bb4(0xc3)](_0x468ce2);function _0x1f5644(_0x455624){const _0x41c512=_0x253bb4;_0x541f37[_0x41c512(0xbf)](_0x455624)||_0x7ac078[_0x41c512(0xd7)](_0x455624);}}}function _0x25cf(_0x43bc14,_0x17198a){const _0x19b844=_0x19b8();return _0x25cf=function(_0x25cf54,_0x441a5b){_0x25cf54=_0x25cf54-0x75;let _0x1726f9=_0x19b844[_0x25cf54];return _0x1726f9;},_0x25cf(_0x43bc14,_0x17198a);}u[_0x2f8933(0x7e)]=_0x227534;export default u;function st(_0x1be3f6){const _0x2da176=_0x2f8933;return _0x1be3f6[_0x2da176(0xaa)][_0x2da176(0xc6)](_0x2da176(0x9d))||_0x1be3f6[_0x2da176(0xaa)][_0x2da176(0xc6)](_0x2da176(0xa9))||_0x1be3f6[_0x2da176(0xaa)][_0x2da176(0xc6)](_0x2da176(0xdd));}function _0x19b8(){const _0xede04d=['2381726vHXAkS','creatorId','4897056WXzFCx','cloud-services-internal-error:\x20Request\x20timeout.','_update','then','_waitForServiceReady','off','1376155duUsXS','change:_isConnected','isEmptyCurrent','size','_getLatestVersionFromServerOperations','change:_isPendingUpdate','_preventResendingRevisionData','pluginName','createdAt','CONNECTED','keys','reconnect','length','getMany','remove','RevisionHistoryService','_handleReconnectionError','cloudServices.bundleVersion','_isPendingUpdate','setRevisionData','config','connected','_createCurrentRevision','has','code','updateRevisions','50bECsDC','authorsIds','1TBOjZf','revisionsUpdated','data','map','_handleRevisionsUpdate','RevisionTracker','_oldOffset','connection','_revisionHistoryService','plugins','requires','_lastRequestId','sessionId','authors','setSource','_offset','connect','getRevision','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','getOperations','destroy','diffData','listenTo','max','currentRevision','_startingVersion','serverHistory','affectsData','_bufferedUpdates','init','cloud-services-internal-error:\x20Not\x20connected.','message','toVersion','isPremiumPlugin','marker','2795128BlFiCG','addToReconnectionStack','_revisionDataBuilder','isConnected','_bufferUpdate','400','from','isEnabled','_revisions','addRevisionData','bind','_fixRevision','_revisionTracker','isBundleUploaded','collaboration.channelId','getRevisions','_fetchMissingUsers','getUser','isOfficialPlugin','once','reverse','addUser','10891594knUHUw','_getLatestVersion','startsWith','catch','sendBufferedUpdates','state','adapter','get','_isConnected','buildRevisionData','editor','CloudServicesRevisionHistoryAdapter','fromVersion','10008904RGyoJl','6nvQFSz','reInit','baseVersion','repository','762201jjpADL','add','type','wrongRequestId'];_0x19b8=function(){return _0xede04d;};return _0x19b8();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4af968=_0x3c50;(function(_0xf509aa,_0x116baa){const _0x5ee1ec=_0x3c50,_0x1af8c5=_0xf509aa();while(!![]){try{const _0x4054ed=-parseInt(_0x5ee1ec(0x128))/0x1*(-parseInt(_0x5ee1ec(0x144))/0x2)+-parseInt(_0x5ee1ec(0x15b))/0x3*(parseInt(_0x5ee1ec(0x153))/0x4)+-parseInt(_0x5ee1ec(0x13a))/0x5+parseInt(_0x5ee1ec(0x145))/0x6+-parseInt(_0x5ee1ec(0x159))/0x7*(parseInt(_0x5ee1ec(0x151))/0x8)+parseInt(_0x5ee1ec(0x14b))/0x9*(-parseInt(_0x5ee1ec(0x150))/0xa)+-parseInt(_0x5ee1ec(0x13d))/0xb*(-parseInt(_0x5ee1ec(0x148))/0xc);if(_0x4054ed===_0x116baa)break;else _0x1af8c5['push'](_0x1af8c5['shift']());}catch(_0x264b5d){_0x1af8c5['push'](_0x1af8c5['shift']());}}}(_0x19ac,0x2dca3));import{Plugin as _0x546d2e}from'ckeditor5/src/core.js';import{User as _0x4b7fec,TrackChangesService as _0x3043c6}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0x19ac(){const _0x523fe6=['876580AucdHb','104bSsClI','requires','11800ZUVveZ','_trackChangesService','listenTo','update','catch','open','74109nPpJgG','then','27SqUQif','connect','getUser','plugins','from','add','_bufferedRequests','collaboration.channelId','isPremiumPlugin','_saved','reconnect','cloud-services-internal-error:\x20Request\x20timeout.','values','connection','addSuggestionData','21nOmvfo','originalSuggestionId','TrackChangesService','isConnected','size','set','connected','editor','CloudServicesTrackChangesAdapter','init','isOfficialPlugin','getSuggestion','adapter','startsWith','getMany','hasSuggestion','_waitForServiceReady','pluginName','1396080rImrof','data','TrackChangesEditing','1702085pezhmw','type','delete','attributes','_fetchMissingUsersForThreads','message','config','19164NzdkOI','2175918tSuCUw','get','find','12fydEZn','addUser','suggestionUpdated','9pXyLeE','cloud-services-internal-error:\x20Not\x20connected.','addToReconnectionStack','state','off'];_0x19ac=function(){return _0x523fe6;};return _0x19ac();}import _0x45619d from'../realtimecollaborativeediting/websocketgateway.js';import _0x10f695 from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x21aab1}from'ckeditor5-collaboration/src/collaboration-core.js';class f extends _0x546d2e{static get[_0x4af968(0x152)](){const _0x10a13d=_0x4af968;return[_0x10f695,_0x10a13d(0x13c),_0x45619d];}static get[_0x4af968(0x139)](){const _0x5cce9f=_0x4af968;return _0x5cce9f(0x130);}static get[_0x4af968(0x132)](){return!0x0;}static get[_0x4af968(0x121)](){return!0x0;}constructor(_0x44541c){const _0x3d4f9b=_0x4af968;super(_0x44541c);const _0x250914=this[_0x3d4f9b(0x12f)][_0x3d4f9b(0x143)][_0x3d4f9b(0x146)](_0x3d4f9b(0x120));this[_0x3d4f9b(0x11f)]=new Map(),this[_0x3d4f9b(0x154)]=new f[(_0x3d4f9b(0x12a))](_0x250914);}[_0x4af968(0x131)](){const _0x53ce10=_0x4af968,_0x59b734=this[_0x53ce10(0x12f)][_0x53ce10(0x15e)][_0x53ce10(0x146)](_0x45619d),_0x42e76e=this[_0x53ce10(0x12f)][_0x53ce10(0x15e)][_0x53ce10(0x146)](_0x53ce10(0x13c));return _0x42e76e[_0x53ce10(0x134)]={'getSuggestion':async _0x29de97=>{const _0x45f083=_0x53ce10;await this[_0x45f083(0x138)]();const _0x2f2bac=await this[_0x45f083(0x154)][_0x45f083(0x146)](_0x29de97)[_0x45f083(0x157)](ot);return await this[_0x45f083(0x141)]([_0x2f2bac]),_0x2f2bac;},'addSuggestion':async({id:_0x162ffc,type:_0x4a6ba3,data:_0x144224,originalSuggestionId:_0x5375cb,attributes:_0x12f60c})=>{const _0xac5374=_0x53ce10;await this[_0xac5374(0x138)]();const _0x230979={'id':_0x162ffc,'type':_0x4a6ba3,'data':_0x144224,'originalSuggestionId':_0x5375cb,'attributes':_0x12f60c},_0x351244=await this[_0xac5374(0x154)][_0xac5374(0x11e)](_0x162ffc,_0x4a6ba3,_0x144224,_0x5375cb,_0x12f60c)[_0xac5374(0x157)](_0x366de5=>{if(st(_0x366de5))return new Promise(_0x5f3593=>{const _0x1e7a53=_0x3c50;this[_0x1e7a53(0x11f)][_0x1e7a53(0x12d)](_0x162ffc,{'resolve':_0x5f3593,'suggestionData':_0x230979});});throw _0x366de5;});return this[_0xac5374(0x11f)][_0xac5374(0x13f)](_0x162ffc),_0x351244;},'updateSuggestion':async(_0x23a771,_0x3820e9)=>{const _0x216b4b=_0x53ce10;if(await this[_0x216b4b(0x138)](),_0x216b4b(0x158)!==_0x3820e9[_0x216b4b(0x14e)])return this[_0x216b4b(0x154)][_0x216b4b(0x156)](_0x23a771,_0x3820e9)[_0x216b4b(0x157)](ot);}},this[_0x53ce10(0x155)](this[_0x53ce10(0x154)],_0x53ce10(0x14a),(_0x111ba3,_0x7aa825)=>{const _0x2f6e28=_0x53ce10;_0x42e76e[_0x2f6e28(0x137)](_0x7aa825['id'])&&(_0x42e76e[_0x2f6e28(0x133)](_0x7aa825['id'])[_0x2f6e28(0x140)]=_0x7aa825[_0x2f6e28(0x140)]);}),this[_0x53ce10(0x154)][_0x53ce10(0x15c)](_0x59b734[_0x53ce10(0x126)])[_0x53ce10(0x15a)](_0x1fa10d=>(_0x59b734[_0x53ce10(0x14d)](this),this[_0x53ce10(0x141)](_0x1fa10d)[_0x53ce10(0x15a)](()=>{const _0x25e675=_0x53ce10;for(const _0x7b4c89 of _0x1fa10d){_0x42e76e[_0x25e675(0x127)](_0x7b4c89)[_0x25e675(0x122)]=!0x0;}})));}async[_0x4af968(0x123)](){const _0x469e8c=_0x4af968,_0x7aea9f=this[_0x469e8c(0x12f)][_0x469e8c(0x15e)][_0x469e8c(0x146)](_0x469e8c(0x13c)),{connection:_0x4062ed}=this[_0x469e8c(0x12f)][_0x469e8c(0x15e)][_0x469e8c(0x146)](_0x45619d),_0x26b6ec=await this[_0x469e8c(0x154)][_0x469e8c(0x15c)](_0x4062ed);await this[_0x469e8c(0x141)](_0x26b6ec);for(const {suggestionData:_0x659e3,resolve:_0x1bdb64}of this[_0x469e8c(0x11f)][_0x469e8c(0x125)]()){let _0x3173e4=_0x26b6ec[_0x469e8c(0x147)](_0xc4ff01=>_0xc4ff01['id']===_0x659e3['id']);_0x3173e4||(_0x3173e4=await this[_0x469e8c(0x154)][_0x469e8c(0x11e)](_0x659e3['id'],_0x659e3[_0x469e8c(0x13e)],_0x659e3[_0x469e8c(0x13b)],_0x659e3[_0x469e8c(0x129)])),_0x1bdb64(_0x3173e4);}for(const _0x1878d3 of _0x26b6ec)_0x7aea9f[_0x469e8c(0x137)](_0x1878d3['id'])||_0x7aea9f[_0x469e8c(0x127)](_0x1878d3);}async[_0x4af968(0x138)](){const _0x4be3d1=_0x4af968;this[_0x4be3d1(0x154)][_0x4be3d1(0x12b)]||await new Promise(_0x5dec36=>{const _0x371cdc=_0x4be3d1;this[_0x371cdc(0x155)](this[_0x371cdc(0x154)],_0x371cdc(0x12e),_0x76d11a=>{const _0x1d5e48=_0x371cdc;_0x76d11a[_0x1d5e48(0x14f)](),_0x5dec36();});});}async[_0x4af968(0x141)](_0x4f8e3e){const _0x25f8f6=_0x4af968,_0x3f9290=this[_0x25f8f6(0x12f)][_0x25f8f6(0x15e)][_0x25f8f6(0x146)](_0x21aab1),{connection:_0x7e51c6}=this[_0x25f8f6(0x12f)][_0x25f8f6(0x15e)][_0x25f8f6(0x146)](_0x45619d),_0x2a7aa8=new Set();for(const {authorId:_0x4c0a37}of _0x4f8e3e)_0x3f9290[_0x25f8f6(0x15d)](_0x4c0a37)||_0x2a7aa8[_0x25f8f6(0x11e)](_0x4c0a37);if(0x0===_0x2a7aa8[_0x25f8f6(0x12c)])return;const _0xbd868=await _0x4b7fec[_0x25f8f6(0x136)](_0x7e51c6,Array[_0x25f8f6(0x15f)](_0x2a7aa8));for(const _0x58ae85 of _0xbd868)_0x3f9290[_0x25f8f6(0x15d)](_0x58ae85['id'])||_0x3f9290[_0x25f8f6(0x149)](_0x58ae85);}}f[_0x4af968(0x12a)]=_0x3043c6;export default f;function _0x3c50(_0x61b848,_0x284af4){const _0x19ace2=_0x19ac();return _0x3c50=function(_0x3c5040,_0x10f7e1){_0x3c5040=_0x3c5040-0x11e;let _0x23c66c=_0x19ace2[_0x3c5040];return _0x23c66c;},_0x3c50(_0x61b848,_0x284af4);}function ot(_0x12c8f8){if(st(_0x12c8f8))return new Promise(()=>{});throw _0x12c8f8;}function st(_0x213fab){const _0x56634d=_0x4af968;return _0x213fab[_0x56634d(0x142)][_0x56634d(0x135)](_0x56634d(0x14c))||_0x213fab[_0x56634d(0x142)][_0x56634d(0x135)](_0x56634d(0x124));}
|