@ckeditor/ckeditor5-real-time-collaboration 47.6.2-alpha.0 → 47.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/real-time-collaboration.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +14 -14
- package/src/presencelist/presencelistui.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/presencelist/view/presencelistview.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3628(_0x55fa6c,_0x165770){const _0x31e761=_0x31e7();return _0x3628=function(_0x3628a4,_0x56a9ec){_0x3628a4=_0x3628a4-0x98;let _0x5144d2=_0x31e761[_0x3628a4];return _0x5144d2;},_0x3628(_0x55fa6c,_0x165770);}const _0x35012b=_0x3628;(function(_0x58f670,_0x58e17d){const _0x26f35c=_0x3628,_0x2b16e5=_0x58f670();while(!![]){try{const _0xa80bc0=parseInt(_0x26f35c(0xb0))/0x1+-parseInt(_0x26f35c(0xd0))/0x2*(parseInt(_0x26f35c(0xc8))/0x3)+-parseInt(_0x26f35c(0xa7))/0x4+parseInt(_0x26f35c(0xcf))/0x5*(-parseInt(_0x26f35c(0x9a))/0x6)+-parseInt(_0x26f35c(0xd1))/0x7*(-parseInt(_0x26f35c(0xaa))/0x8)+parseInt(_0x26f35c(0xab))/0x9*(-parseInt(_0x26f35c(0xbf))/0xa)+parseInt(_0x26f35c(0xae))/0xb;if(_0xa80bc0===_0x58e17d)break;else _0x2b16e5['push'](_0x2b16e5['shift']());}catch(_0x57198e){_0x2b16e5['push'](_0x2b16e5['shift']());}}}(_0x31e7,0x8bd43));import{ContextPlugin as _0x5392f4}from'ckeditor5/src/core.js';import{Collection as _0x26a926,CKEditorError as _0x1c7c06}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0xf4c53a}from'./websocketgateway.js';import{Users as _0x404da3}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x5392f4{[_0x35012b(0xc3)];[_0x35012b(0xbc)];[_0x35012b(0xa0)];[_0x35012b(0xc7)];[_0x35012b(0xad)];[_0x35012b(0x9b)];static get[_0x35012b(0xbd)](){const _0x715672=_0x35012b;return _0x715672(0xcd);}static get[_0x35012b(0xa3)](){return!0x0;}static get[_0x35012b(0xb2)](){return!0x0;}static get[_0x35012b(0xb8)](){return[_0xf4c53a,_0x404da3];}constructor(_0x4fc2e7){const _0x1d8dd7=_0x35012b;super(_0x4fc2e7),this[_0x1d8dd7(0xc3)]=new Map(),this[_0x1d8dd7(0xbc)]=new Map(),this[_0x1d8dd7(0xa0)]=new _0x26a926(),this[_0x1d8dd7(0xc7)]=new Map(),this[_0x1d8dd7(0xad)]=0x0,this[_0x1d8dd7(0x9b)]=this[_0x1d8dd7(0xa5)][_0x1d8dd7(0xac)][_0x1d8dd7(0xd7)](_0x404da3);}[_0x35012b(0xc0)](){const _0x12ddd1=_0x35012b,_0xab0f62=this[_0x12ddd1(0xa5)][_0x12ddd1(0xac)][_0x12ddd1(0xd7)](_0xf4c53a);this[_0x12ddd1(0xa9)](_0xab0f62,_0x12ddd1(0xb9),(_0x2a9245,_0x1353ad,_0x17ed3e)=>{const _0x4dbf24=_0x12ddd1;if(_0x4dbf24(0xaf)!==_0x17ed3e)this[_0x4dbf24(0xc3)][_0x4dbf24(0xbb)](_0x156e45=>_0x156e45[_0x4dbf24(0xb3)]()),this[_0x4dbf24(0xbc)][_0x4dbf24(0xbb)](_0x13e324=>_0x13e324[_0x4dbf24(0xb3)]()),this[_0x4dbf24(0xa0)][_0x4dbf24(0xb3)]();else{for(const [_0x157666,_0x559101]of this[_0x4dbf24(0xc7)])for(const _0x58c3f0 of _0x559101)this[_0x4dbf24(0xa8)](_0x157666,_0x58c3f0);}}),this[_0x12ddd1(0xc5)](_0xab0f62[_0x12ddd1(0xcb)]['me'],!0x0);}[_0x35012b(0xa6)](_0x218ab8,_0x323667){const _0x35f914=_0x35012b;if(this[_0x35f914(0xc7)][_0x35f914(0xd5)](_0x218ab8))throw new _0x1c7c06(_0x35f914(0x9c),null,{'channelId':_0x218ab8});this[_0x35f914(0xc7)][_0x35f914(0xb4)](_0x218ab8,_0x323667),this[_0x35f914(0xc3)][_0x35f914(0xb4)](_0x218ab8,new _0x26a926()),this[_0x35f914(0xbc)][_0x35f914(0xb4)](_0x218ab8,new _0x26a926()),this[_0x35f914(0xa9)](_0x323667,_0x35f914(0xb7),(_0x23a6dd,_0x2da9ea)=>this[_0x35f914(0xa8)](_0x218ab8,_0x2da9ea)),this[_0x35f914(0xa9)](_0x323667,_0x35f914(0xc2),(_0x433a7f,_0x43053c)=>this[_0x35f914(0xa1)](_0x218ab8,_0x43053c));for(const _0x59b974 of _0x323667)this[_0x35f914(0xa8)](_0x218ab8,_0x59b974);}[_0x35012b(0xc9)](_0x272f74){const _0x199ba3=_0x35012b;if(!this[_0x199ba3(0xc7)][_0x199ba3(0xd5)](_0x272f74))throw new _0x1c7c06(_0x199ba3(0x9f),null,{'channelId':_0x272f74});const _0x1d5ecc=this[_0x199ba3(0xc7)][_0x199ba3(0xd7)](_0x272f74);this[_0x199ba3(0xca)](_0x1d5ecc);for(const _0x565d19 of _0x1d5ecc)_0x199ba3(0xaf)===this[_0x199ba3(0xa5)][_0x199ba3(0xac)][_0x199ba3(0xd7)](_0xf4c53a)[_0x199ba3(0xcc)]&&this[_0x199ba3(0xa1)](_0x272f74,_0x565d19);this[_0x199ba3(0xc7)][_0x199ba3(0xb5)](_0x272f74),this[_0x199ba3(0xc3)][_0x199ba3(0xb5)](_0x272f74),this[_0x199ba3(0xbc)][_0x199ba3(0xb5)](_0x272f74);}get[_0x35012b(0xa2)](){const _0x416786=_0x35012b;return this[_0x416786(0xa5)][_0x416786(0xac)][_0x416786(0xd7)](_0xf4c53a)[_0x416786(0xcb)][_0x416786(0x9d)];}[_0x35012b(0xd2)](_0x5bd43f){const _0x206087=_0x35012b;for(const _0x2496eb of this[_0x206087(0xc3)][_0x206087(0x98)]())for(const _0x16e7fa of _0x2496eb)if(_0x16e7fa['id']===_0x5bd43f)return _0x16e7fa[_0x206087(0xd4)];}[_0x35012b(0xc4)](_0x38520c,_0x39c864){const _0x3069c2=_0x35012b,_0x497a52=_0x39c864?[this[_0x3069c2(0xc3)][_0x3069c2(0xd7)](_0x39c864)]:this[_0x3069c2(0xc3)][_0x3069c2(0x98)](),_0x35ee6d=new Set();for(const _0x3b8d6b of _0x497a52)for(const _0x50d5e5 of _0x3b8d6b)_0x50d5e5[_0x3069c2(0xd4)]['id']===_0x38520c['id']&&_0x35ee6d[_0x3069c2(0xb7)](_0x50d5e5['id']);return _0x35ee6d;}[_0x35012b(0xb6)](_0x5365a0){const _0x1a438d=_0x35012b;for(const _0x10ece3 of this[_0x1a438d(0xc3)][_0x1a438d(0x98)]())for(const _0xaac846 of _0x10ece3)if(_0xaac846[_0x1a438d(0xd4)]===_0x5365a0)return _0xaac846[_0x1a438d(0xba)];}[_0x35012b(0xa8)](_0x200f1f,_0x1c51e2){const _0x31d910=_0x35012b;if(_0x31d910(0xaf)!==this[_0x31d910(0xa5)][_0x31d910(0xac)][_0x31d910(0xd7)](_0xf4c53a)[_0x31d910(0xcc)])return;const _0x49d40a=_0x1c51e2[_0x31d910(0xd4)],_0x49f2bc=this[_0x31d910(0x9b)][_0x31d910(0xd6)](_0x49d40a['id'])||this[_0x31d910(0xc5)](_0x49d40a),_0x2fa35e=Object[_0x31d910(0xa4)]({},_0x1c51e2,{'user':_0x49f2bc});if(this[_0x31d910(0xc3)][_0x31d910(0xd7)](_0x200f1f)[_0x31d910(0xb7)](_0x2fa35e),!_0x49d40a[_0x31d910(0xbe)]){const _0x13bea7=this[_0x31d910(0xbc)][_0x31d910(0xd7)](_0x200f1f);_0x13bea7[_0x31d910(0xd5)](_0x49f2bc['id'])||_0x13bea7[_0x31d910(0xb7)](_0x49f2bc),this[_0x31d910(0xa0)][_0x31d910(0xd5)](_0x49f2bc['id'])||_0x49d40a[_0x31d910(0xbe)]||this[_0x31d910(0xa0)][_0x31d910(0xb7)](_0x49f2bc,_0x49f2bc[_0x31d910(0x99)]?0x0:void 0x0);}this[_0x31d910(0xce)](_0x31d910(0xc6)+_0x200f1f,{'channelId':_0x200f1f,'session':_0x2fa35e});}[_0x35012b(0xa1)](_0x3e1974,_0x4642d2){const _0x2c84bf=_0x35012b;if(_0x2c84bf(0xaf)!==this[_0x2c84bf(0xa5)][_0x2c84bf(0xac)][_0x2c84bf(0xd7)](_0xf4c53a)[_0x2c84bf(0xcc)])return;const _0x2001b8=this[_0x2c84bf(0xbc)][_0x2c84bf(0xd7)](_0x3e1974),_0x482560=_0x4642d2[_0x2c84bf(0xd4)];_0x482560['id']&&(this[_0x2c84bf(0xc3)][_0x2c84bf(0xd7)](_0x3e1974)[_0x2c84bf(0xc2)](_0x4642d2['id']),_0x2001b8[_0x2c84bf(0xd5)](_0x482560['id'])&&!this[_0x2c84bf(0xc4)](_0x482560,_0x3e1974)[_0x2c84bf(0xb1)]&&_0x2001b8[_0x2c84bf(0xc2)](_0x482560['id']),this[_0x2c84bf(0xa0)][_0x2c84bf(0xd7)](_0x482560['id'])&&!this[_0x2c84bf(0xc4)](_0x482560)[_0x2c84bf(0xb1)]&&this[_0x2c84bf(0xa0)][_0x2c84bf(0xc2)](_0x482560['id']));}[_0x35012b(0xc5)](_0xbfa033,_0x2ba3b5){const _0x55e8cb=_0x35012b,_0x384d4c=this[_0x55e8cb(0x9b)][_0x55e8cb(0xd3)](_0xbfa033);return _0x2ba3b5&&this[_0x55e8cb(0x9b)][_0x55e8cb(0x9e)](_0xbfa033['id']),_0x384d4c[_0x55e8cb(0xc1)]=this[_0x55e8cb(0xad)]++,_0x384d4c;}}function _0x31e7(){const _0x54ac9f=['allConnectedUsers','_handleSessionRemove','mySessionId','isOfficialPlugin','assign','context','register','973656tKlhZJ','_handleSessionAdd','listenTo','262488hSUZBb','177111PyeHhl','plugins','_uniqueUsersCount','6080283HORfni','connected','736957dVlnCT','size','isPremiumPlugin','clear','set','delete','getUserRole','add','requires','change:state','role','forEach','channelConnectedUsers','pluginName','hiddenInPresenceList','140lvpBcz','init','orderNumber','remove','channelSessions','getUserSessions','_createUser','sessionAdd:','_registeredSessions','685572XWOkLX','unregister','stopListening','connection','state','Sessions','fire','70oknZna','10vgsDSu','231tfoeWq','getUserBySessionId','addUser','user','has','getUser','get','values','isMe','59226prOdtT','_users','sessions-register-already-registered','sessionId','defineMe','sessions-unregister-not-exist'];_0x31e7=function(){return _0x54ac9f;};return _0x31e7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5a144d=_0x506c;function _0x506c(_0x54e845,_0x8fb82a){const _0x22f0cb=_0x22f0();return _0x506c=function(_0x506c8b,_0x4ecb8d){_0x506c8b=_0x506c8b-0xfc;let _0x187057=_0x22f0cb[_0x506c8b];return _0x187057;},_0x506c(_0x54e845,_0x8fb82a);}(function(_0x172df0,_0x39f935){const _0x176ecf=_0x506c,_0x171a7b=_0x172df0();while(!![]){try{const _0x469965=-parseInt(_0x176ecf(0x132))/0x1+parseInt(_0x176ecf(0x15a))/0x2+-parseInt(_0x176ecf(0x133))/0x3*(-parseInt(_0x176ecf(0x15e))/0x4)+-parseInt(_0x176ecf(0x169))/0x5+-parseInt(_0x176ecf(0x15c))/0x6*(-parseInt(_0x176ecf(0x171))/0x7)+parseInt(_0x176ecf(0x13c))/0x8*(-parseInt(_0x176ecf(0x14d))/0x9)+-parseInt(_0x176ecf(0x17d))/0xa;if(_0x469965===_0x39f935)break;else _0x171a7b['push'](_0x171a7b['shift']());}catch(_0x58d80e){_0x171a7b['push'](_0x171a7b['shift']());}}}(_0x22f0,0xdb7bb));import{Plugin as _0x2a89c5}from'ckeditor5/src/core.js';import{global as _0x19d019,DomEmitterMixin as _0x5a374d}from'ckeditor5/src/utils.js';import{Sessions as _0x1ab5f4}from'./sessions.js';import{ModelLiveRange as _0x200c48}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export class UserMarkers extends _0x2a89c5{[_0x5a144d(0x165)]=new(_0x5a374d())();static get[_0x5a144d(0x110)](){return[_0x1ab5f4];}static get[_0x5a144d(0x176)](){const _0x2c3db5=_0x5a144d;return _0x2c3db5(0x106);}static get[_0x5a144d(0x130)](){return!0x0;}static get[_0x5a144d(0x17c)](){return!0x0;}[_0x5a144d(0x179)](){const _0x3d244b=_0x5a144d,_0x46a86d=this[_0x3d244b(0x175)],_0x51259d=_0x46a86d[_0x3d244b(0x116)][_0x3d244b(0x16f)](_0x1ab5f4);_0x46a86d[_0x3d244b(0x119)][_0x3d244b(0x11e)](_0x3d244b(0x121))[_0x3d244b(0x178)]({'model':_0x3d244b(0x140),'view':(_0x295620,{writer:_0x3ab723})=>function(_0x35d60f,_0x53d091,_0x18589e,_0x403a1a){const _0x22d9bc=_0x3d244b,_0x31d469=_0x35d60f[_0x22d9bc(0x114)][_0x22d9bc(0x14b)](':')[0x2],_0x245b31=_0x18589e[_0x22d9bc(0x11d)](_0x31d469);if(!_0x245b31||_0x31d469===_0x18589e[_0x22d9bc(0x17a)])return;if(!_0x403a1a[_0x22d9bc(0x155)][_0x22d9bc(0x156)][_0x22d9bc(0x122)](_0x35d60f[_0x22d9bc(0x174)][_0x22d9bc(0x164)],_0x22d9bc(0x12e)))return;const _0xe3a6f4={'class':_0x22d9bc(0x160)+_0x245b31[_0x22d9bc(0x14a)][_0x22d9bc(0x16b)](),'data-name':_0x245b31[_0x22d9bc(0x163)],'data-session-id':_0x31d469},_0x4618c1=_0x403a1a[_0x22d9bc(0x155)][_0x22d9bc(0x10a)][_0x22d9bc(0x16f)](_0x35d60f[_0x22d9bc(0x114)]),_0x28fcec=_0x4618c1[_0x22d9bc(0x10b)](),_0x68a5e8=_0x28fcec[_0x22d9bc(0x157)],_0xb714a5=_0x403a1a[_0x22d9bc(0x155)][_0x22d9bc(0x156)];if(_0x68a5e8&&_0xb714a5[_0x22d9bc(0x147)](_0x68a5e8)&&_0xb714a5[_0x22d9bc(0x146)](_0x68a5e8)&&!_0x403a1a[_0x22d9bc(0x155)][_0x22d9bc(0x10a)][_0x22d9bc(0x16f)](_0x22d9bc(0x15f)+_0x31d469)[_0x22d9bc(0x10d)]()[_0x22d9bc(0x136)])return;const _0x189022=_0x28fcec[_0x22d9bc(0x129)];return _0x403a1a[_0x22d9bc(0x155)][_0x22d9bc(0x156)][_0x22d9bc(0x104)](_0x189022)&&!_0x403a1a[_0x22d9bc(0x155)][_0x22d9bc(0x10c)](_0x189022)&&(_0xe3a6f4[_0x22d9bc(0x185)]=!0x1),function(_0x1176cb,_0x50eddb,_0x28ae36){const _0x18a6eb=_0x22d9bc,_0x4c5727=_0x1176cb[_0x18a6eb(0x16e)](_0x18a6eb(0xfd),_0x50eddb);return _0x1176cb[_0x18a6eb(0x109)](_0x18a6eb(0x167),!0x0,_0x4c5727),_0x4c5727[_0x18a6eb(0x117)]=function(_0x1bc1c6){const _0x38219a=_0x18a6eb,_0xfd70b4=this[_0x38219a(0x183)](_0x1bc1c6),_0x46e53f=document[_0x38219a(0x128)](_0x38219a(0xfd));return _0x46e53f[_0x38219a(0x134)][_0x38219a(0x168)](_0x38219a(0x170)),_0x46e53f[_0x38219a(0x131)](_0x38219a(0x185),_0x38219a(0x14f)),_0x46e53f[_0x38219a(0x131)](_0x38219a(0x139),_0x38219a(0x14f)),_0x46e53f[_0x38219a(0x111)]=_0x28ae36[_0x38219a(0x163)],_0xfd70b4[_0x38219a(0x150)]=_0x38219a(0x103)+_0x46e53f[_0x38219a(0x180)]+'',_0xfd70b4[_0x38219a(0x184)](_0x38219a(0x10e),()=>{const _0x20cb6b=_0x38219a;_0xfd70b4[_0x20cb6b(0x134)][_0x20cb6b(0x168)](_0x20cb6b(0x123));}),_0xfd70b4[_0x38219a(0x184)](_0x38219a(0x12b),()=>{const _0x5a5771=_0x38219a;_0xfd70b4[_0x5a5771(0x134)][_0x5a5771(0x154)](_0x5a5771(0x123));}),_0xfd70b4;},_0x4c5727[_0x18a6eb(0x127)]=function(_0xb85391){const _0x1310cd=_0x18a6eb;return!(!this[_0x1310cd(0x12d)](_0x1310cd(0x167))||!_0xb85391[_0x1310cd(0x12d)](_0x1310cd(0x167))||this[_0x1310cd(0x161)](_0x1310cd(0x10f))!=_0xb85391[_0x1310cd(0x161)](_0x1310cd(0x10f)));},_0x4c5727;}(_0x53d091,_0xe3a6f4,_0x245b31);}(_0x295620,_0x3ab723,_0x51259d,_0x46a86d)}),_0x46a86d[_0x3d244b(0x119)][_0x3d244b(0x11e)](_0x3d244b(0x121))[_0x3d244b(0x120)]({'model':_0x3d244b(0x105),'view':_0x573a81=>function(_0x342280,_0x52eebd){const _0x77d6c3=_0x3d244b,_0x27d822=_0x342280[_0x77d6c3(0x114)][_0x77d6c3(0x14b)](':')[0x2];if(_0x27d822===_0x52eebd[_0x77d6c3(0x17a)])return null;const _0x285425=_0x52eebd[_0x77d6c3(0x11d)](_0x27d822);if(!_0x285425)return{'id':_0x27d822,'classes':[]};return{'id':_0x27d822,'classes':[_0x77d6c3(0x124),_0x285425[_0x77d6c3(0x14a)][_0x77d6c3(0x135)]()],'attributes':{'data-session-id':_0x27d822},'priority':0x7d0+_0x285425[_0x77d6c3(0x143)]};}(_0x573a81,_0x51259d)}),function(_0x32ae26){const _0x25cc18=_0x3d244b,_0x584053=_0x32ae26[_0x25cc18(0x155)],_0x5ea598=new Map(),_0x3eda3e=_0x32ae26[_0x25cc18(0x116)][_0x25cc18(0x16f)](_0x1ab5f4);_0x584053[_0x25cc18(0x10a)]['on'](_0x25cc18(0x101),(_0x935369,_0x10aa34,_0x52259b,_0x209332)=>{const _0x3f8592=_0x25cc18;if(!_0x209332&&_0x5ea598[_0x3f8592(0x16f)](_0x10aa34[_0x3f8592(0x163)]))return _0x5ea598[_0x3f8592(0x16f)](_0x10aa34[_0x3f8592(0x163)])[_0x3f8592(0x14e)](),void _0x5ea598[_0x3f8592(0x142)](_0x10aa34[_0x3f8592(0x163)]);const _0x4a8ed7=_0x10aa34[_0x3f8592(0x163)][_0x3f8592(0x14b)](':')[0x2];if(_0x4a8ed7===_0x3eda3e[_0x3f8592(0x17a)])return;const _0x46ec9e=_0x3f8592(0x11b)+_0x4a8ed7;_0x584053[_0x3f8592(0x10a)][_0x3f8592(0x11a)](_0x46ec9e)&&_0x32ae26[_0x3f8592(0x12f)][_0x3f8592(0x118)](_0x46ec9e),_0x10aa34['on'](_0x3f8592(0xfe),(_0x52e536,_0x46c771,_0x5f7d9a)=>{const _0x46b5e4=_0x3f8592;if(_0x46b5e4(0x14c)!=_0x46c771[_0x46b5e4(0x17e)][_0x46b5e4(0xff)]&&_0x46b5e4(0x14c)==_0x10aa34[_0x46b5e4(0x10d)]()[_0x46b5e4(0x17e)][_0x46b5e4(0xff)]&&!_0x5ea598[_0x46b5e4(0x11a)](_0x10aa34[_0x46b5e4(0x163)])){const _0x146dc4=_0x584053[_0x46b5e4(0x156)][_0x46b5e4(0x173)](_0x5f7d9a[_0x46b5e4(0x112)]);if(_0x146dc4){const _0x42ab77=_0x200c48[_0x46b5e4(0x162)](_0x146dc4);_0x5ea598[_0x46b5e4(0x15d)](_0x10aa34[_0x46b5e4(0x163)],_0x42ab77),_0x42ab77['on'](_0x46b5e4(0xfe),(_0x549a32,_0x59d943,_0x1f5fe9)=>{const _0x3ff00a=_0x46b5e4;if(_0x3ff00a(0x14c)==_0x42ab77[_0x3ff00a(0x17e)][_0x3ff00a(0xff)]){const _0x29b617=_0x584053[_0x3ff00a(0x156)][_0x3ff00a(0x173)](_0x1f5fe9[_0x3ff00a(0x112)]);_0x29b617?(_0x42ab77[_0x3ff00a(0x164)]=_0x29b617[_0x3ff00a(0x164)],_0x42ab77[_0x3ff00a(0x13e)]=_0x29b617[_0x3ff00a(0x13e)]):(_0x5ea598[_0x3ff00a(0x142)](_0x10aa34[_0x3ff00a(0x163)]),_0x42ab77[_0x3ff00a(0x14e)]());}});}}});}),_0x584053[_0x25cc18(0x125)]['on'](_0x25cc18(0x115),()=>{const _0x468ff1=_0x25cc18;_0x5ea598[_0x468ff1(0xfc)]>0x0&&_0x584053[_0x468ff1(0x177)]({'isUndoable':!0x1},_0x414b42=>{const _0x20da2b=_0x468ff1;for(const [_0x19e033,_0x25c965]of _0x5ea598)_0x20da2b(0x14c)==_0x584053[_0x20da2b(0x10a)][_0x20da2b(0x16f)](_0x19e033)[_0x20da2b(0x10d)]()[_0x20da2b(0x17e)][_0x20da2b(0xff)]&&(Z(_0x19e033[_0x20da2b(0x14b)](':')[0x2],_0x25c965[_0x20da2b(0x138)](),_0x584053,_0x414b42),_0x25c965[_0x20da2b(0x14e)]());_0x5ea598[_0x20da2b(0x181)]();});});}(_0x46a86d),this[_0x3d244b(0x165)][_0x3d244b(0x17b)](_0x19d019[_0x3d244b(0x125)],_0x3d244b(0x102),(_0x3b2101,{key:_0xb022b})=>{const _0x37bf5c=_0x3d244b;_0x37bf5c(0x141)===_0xb022b&&function(_0x192cd3){const _0x5a2cde=_0x37bf5c;_0x192cd3[_0x5a2cde(0x12f)][_0x5a2cde(0x126)][_0x5a2cde(0x115)](_0x59e7fa=>{const _0x20e3e6=_0x5a2cde;for(const _0x48d4e9 of _0x192cd3[_0x20e3e6(0x155)][_0x20e3e6(0x10a)]){if(!_0x48d4e9[_0x20e3e6(0x163)][_0x20e3e6(0x149)](_0x20e3e6(0x140)))continue;const _0x162a20=_0x192cd3[_0x20e3e6(0x12f)][_0x20e3e6(0x15b)][_0x20e3e6(0x17f)](_0x48d4e9[_0x20e3e6(0x163)]);if(_0x162a20){for(const _0x1d573d of _0x162a20)_0x59e7fa[_0x20e3e6(0x145)](_0x20e3e6(0x123),_0x1d573d);}}});}(_0x46a86d);},{'useCapture':!0x0});}[_0x5a144d(0x152)](){const _0x32bf70=_0x5a144d,_0x2333f0=this[_0x32bf70(0x175)],_0x2e29d1=_0x2333f0[_0x32bf70(0x16d)][_0x32bf70(0x16f)](_0x32bf70(0x153));_0x2e29d1&&_0x2333f0[_0x32bf70(0x155)]['on'](_0x32bf70(0x16a),(_0x37bac5,_0x372959)=>{const _0x1188a6=_0x32bf70,_0x19d399=_0x372959[0x0];if(!_0x19d399[_0x1188a6(0x186)])return;if(_0x1188a6(0x113)!=_0x19d399[_0x1188a6(0x11c)]||!_0x19d399[_0x1188a6(0x163)][_0x1188a6(0x149)](_0x1188a6(0x148)))return;const _0x1e3e2c=_0x19d399[_0x1188a6(0x13a)];_0x2e29d1[_0x1188a6(0x107)][_0x1188a6(0x11a)](_0x1e3e2c)&&(_0x19d399[_0x1188a6(0x158)]=_0x19d399[_0x1188a6(0x13d)]?_0x2333f0[_0x1188a6(0x155)][_0x1188a6(0x13b)](_0x19d399[_0x1188a6(0x13d)][_0x1188a6(0x164)],_0x19d399[_0x1188a6(0x13d)][_0x1188a6(0x13e)]):null);},{'priority':_0x32bf70(0x13f)});}[_0x5a144d(0x108)](){const _0x39965e=_0x5a144d;return this[_0x39965e(0x165)][_0x39965e(0x166)](),super[_0x39965e(0x108)]();}[_0x5a144d(0x11f)](){const _0x3f792b=_0x5a144d,_0x2640fd=this[_0x3f792b(0x175)],_0x2d5ef3=_0x2640fd[_0x3f792b(0x155)][_0x3f792b(0x125)],_0x4e7bac=_0x2640fd[_0x3f792b(0x116)][_0x3f792b(0x16f)](_0x1ab5f4);_0x2640fd[_0x3f792b(0x155)][_0x3f792b(0x177)]({'isUndoable':!0x1},_0x446101=>{const _0x2f1afb=_0x3f792b,_0x1f0c83=_0x2f1afb(0x15f)+_0x4e7bac[_0x2f1afb(0x17a)],_0x46adc8=_0x2f1afb(0x11b)+_0x4e7bac[_0x2f1afb(0x17a)],_0x5b9318=_0x2640fd[_0x2f1afb(0x155)][_0x2f1afb(0x10a)][_0x2f1afb(0x11a)](_0x1f0c83);_0x2640fd[_0x2f1afb(0x12f)][_0x2f1afb(0x126)][_0x2f1afb(0x100)]?Z(_0x4e7bac[_0x2f1afb(0x17a)],_0x2d5ef3[_0x2f1afb(0x182)][_0x2f1afb(0x159)](),_0x2640fd[_0x2f1afb(0x155)],_0x446101):_0x5b9318&&(_0x446101[_0x2f1afb(0x12c)](_0x1f0c83),_0x446101[_0x2f1afb(0x12c)](_0x46adc8));});}}function Z(_0x5bf0c3,_0xe4c88e,_0x3eec67,_0x1ee11b){const _0xbe8e01=_0x5a144d,_0xa69d42=_0xbe8e01(0x15f)+_0x5bf0c3,_0x5e3e3c=_0xbe8e01(0x11b)+_0x5bf0c3,_0x324d8a=_0xe4c88e[_0xbe8e01(0x172)]();let _0x359fbe=_0xe4c88e[_0xbe8e01(0x164)];if(_0x324d8a&&_0x324d8a['is'](_0xbe8e01(0x137),_0xbe8e01(0x12a))){const _0x5cef85=function(_0x162cf2,_0x143496){const _0x39bfd0=_0xbe8e01;for(const _0xf7050b of _0x162cf2[_0x39bfd0(0x144)]())if(_0x143496[_0x39bfd0(0x156)][_0x39bfd0(0x122)](_0xf7050b,_0x39bfd0(0x12e)))return _0xf7050b;}(_0xe4c88e,_0x3eec67);_0x5cef85&&(_0x359fbe=_0x5cef85,_0xe4c88e=_0x1ee11b[_0xbe8e01(0x13b)](_0x359fbe));}const _0x577e3c=_0x1ee11b[_0xbe8e01(0x13b)](_0x359fbe);_0x3eec67[_0xbe8e01(0x10a)][_0xbe8e01(0x11a)](_0xa69d42)?(_0x1ee11b[_0xbe8e01(0x151)](_0xa69d42,{'range':_0xe4c88e}),_0x1ee11b[_0xbe8e01(0x151)](_0x5e3e3c,{'range':_0x577e3c})):(_0x1ee11b[_0xbe8e01(0x16c)](_0xa69d42,{'range':_0xe4c88e,'usingOperation':!0x0}),_0x1ee11b[_0xbe8e01(0x16c)](_0x5e3e3c,{'range':_0x577e3c,'usingOperation':!0x0}));}function _0x22f0(){const _0x2ff549=['delete','orderNumber','getPositions','removeClass','isInline','isObject','user:','startsWith','color','split','$graveyard','162sIuXjc','detach','false','innerHTML','updateMarker','afterInit','undo','remove','model','schema','nodeAfter','newRange','getFirstRange','1487392YeRgMl','mapper','3358734MFCrHN','set','3015508LQEOTk','user:range:','ck-user__marker\x20','getAttribute','fromRange','name','start','_domEmitter','stopListening','userPositionMarker','add','91060pzweUn','applyOperation','getMarkerClass','addMarker','commands','createUIElement','get','ck-user__marker-tooltip','21mSRnMR','getContainedElement','getNearestSelectionRange','markerRange','editor','pluginName','enqueueChange','markerToElement','init','mySessionId','listenTo','isPremiumPlugin','4197000nVrzYp','root','markerNameToElements','outerHTML','clear','selection','toDomElement','addEventListener','contenteditable','isDocumentOperation','size','span','change:range','rootName','hasDomSelection','update:user:range','keydown','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','isLimit','user:range','UserMarkers','_createdBatches','destroy','setCustomProperty','markers','getStart','hasContent','getRange','mouseenter','data-session-id','requires','textContent','deletionPosition','marker','markerName','change','plugins','render','reconvertMarker','conversion','has','user:position:','type','getUserBySessionId','for','createUserMarkerOperations','markerToHighlight','editingDowncast','checkChild','ck-user__marker_hovered','ck-user__selection','document','view','isSimilar','createElement','parent','tableCell','mouseleave','removeMarker','getCustomProperty','$text','editing','isOfficialPlugin','setAttribute','359003kvaTmk','3MjloaX','classList','getSelectionClass','isCollapsed','element','toRange','spellcheck','batch','createRange','658232hqWUJn','oldRange','end','highest','user:position','Escape'];_0x22f0=function(){return _0x2ff549;};return _0x22f0();}
|
|
23
|
+
const _0x1bc87f=_0x3f64;(function(_0x46def3,_0xd8725e){const _0x38ee0b=_0x3f64,_0x4aec59=_0x46def3();while(!![]){try{const _0x35bdd5=-parseInt(_0x38ee0b(0x130))/0x1+parseInt(_0x38ee0b(0x18b))/0x2+-parseInt(_0x38ee0b(0x15d))/0x3+parseInt(_0x38ee0b(0x145))/0x4*(parseInt(_0x38ee0b(0x157))/0x5)+-parseInt(_0x38ee0b(0x17b))/0x6+-parseInt(_0x38ee0b(0x13f))/0x7+parseInt(_0x38ee0b(0x117))/0x8;if(_0x35bdd5===_0xd8725e)break;else _0x4aec59['push'](_0x4aec59['shift']());}catch(_0x19badb){_0x4aec59['push'](_0x4aec59['shift']());}}}(_0x3723,0x45c08));function _0x3f64(_0x1e088b,_0x2041f9){const _0x37234c=_0x3723();return _0x3f64=function(_0x3f6490,_0x360223){_0x3f6490=_0x3f6490-0x112;let _0x1756a8=_0x37234c[_0x3f6490];return _0x1756a8;},_0x3f64(_0x1e088b,_0x2041f9);}import{Plugin as _0x536526}from'ckeditor5/src/core.js';import{global as _0x5b8abf,DomEmitterMixin as _0x9ccdb3}from'ckeditor5/src/utils.js';import{Sessions as _0x221bf1}from'./sessions.js';import{ModelLiveRange as _0x335d88}from'ckeditor5/src/engine.js';function _0x3723(){const _0x24fff0=['getSelectionClass','remove','124bYvwnK','toDomElement','contenteditable','createUIElement','markerNameToElements','user:','split','listenTo','outerHTML','afterInit','conversion','schema','getAttribute','type','view','user:range:','$graveyard','updateMarker','39230DFoaCZ','pluginName','hasDomSelection','spellcheck','editing','mouseenter','1536156vriRJT','innerHTML','removeMarker','tableCell','highest','clear','createElement','set','classList','ck-user__marker_hovered','delete','markerRange','ck-user__marker\x20','batch','toRange','nodeAfter','rootName','fromRange','isCollapsed','start','markerToElement','getContainedElement','oldRange','ck-user__marker-tooltip','applyOperation','mouseleave','getUserBySessionId','markers','name','keydown','1886304aRzfLm','user:position','_domEmitter','addMarker','enqueueChange','userPositionMarker','has','isInline','init','user:range','plugins','markerToHighlight','selection','change','destroy','isLimit','1035128ukUfUq','detach','get','ck-user__selection','for','false','document','editor','addEventListener','add','span','orderNumber','UserMarkers','_createdBatches','isSimilar','getNearestSelectionRange','stopListening','marker','data-session-id','size','getPositions','6858144kEBbXv','undo','color','markerName','commands','createRange','root','deletionPosition','model','mapper','newRange','isOfficialPlugin','Escape','reconvertMarker','render','checkChild','textContent','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','update:user:range','end','parent','isObject','user:position:','element','requires','65479JPAimF','getRange','getFirstRange','getCustomProperty','removeClass','startsWith','mySessionId','setAttribute','isPremiumPlugin','hasContent','getMarkerClass','$text','setCustomProperty','editingDowncast','change:range','3083073Hbtbfr','createUserMarkerOperations','isDocumentOperation','getStart'];_0x3723=function(){return _0x24fff0;};return _0x3723();}import'../../theme/usermarkers.css';export class UserMarkers extends _0x536526{[_0x1bc87f(0x17d)]=new(_0x9ccdb3())();static get[_0x1bc87f(0x12f)](){return[_0x221bf1];}static get[_0x1bc87f(0x158)](){const _0x8e6d68=_0x1bc87f;return _0x8e6d68(0x197);}static get[_0x1bc87f(0x122)](){return!0x0;}static get[_0x1bc87f(0x138)](){return!0x0;}[_0x1bc87f(0x183)](){const _0x12d1c6=_0x1bc87f,_0x3075e1=this[_0x12d1c6(0x192)],_0x584338=_0x3075e1[_0x12d1c6(0x185)][_0x12d1c6(0x18d)](_0x221bf1);_0x3075e1[_0x12d1c6(0x14f)][_0x12d1c6(0x18f)](_0x12d1c6(0x13d))[_0x12d1c6(0x171)]({'model':_0x12d1c6(0x17c),'view':(_0x4c3f9e,{writer:_0x1f6b37})=>function(_0x17b99e,_0x28ed4,_0x47239c,_0x5667dc){const _0xf70ba9=_0x12d1c6,_0x11f7ba=_0x17b99e[_0xf70ba9(0x11a)][_0xf70ba9(0x14b)](':')[0x2],_0x4cc746=_0x47239c[_0xf70ba9(0x177)](_0x11f7ba);if(!_0x4cc746||_0x11f7ba===_0x47239c[_0xf70ba9(0x136)])return;if(!_0x5667dc[_0xf70ba9(0x11f)][_0xf70ba9(0x150)][_0xf70ba9(0x126)](_0x17b99e[_0xf70ba9(0x168)][_0xf70ba9(0x170)],_0xf70ba9(0x13b)))return;const _0x285603={'class':_0xf70ba9(0x169)+_0x4cc746[_0xf70ba9(0x119)][_0xf70ba9(0x13a)](),'data-name':_0x4cc746[_0xf70ba9(0x179)],'data-session-id':_0x11f7ba},_0x36c446=_0x5667dc[_0xf70ba9(0x11f)][_0xf70ba9(0x178)][_0xf70ba9(0x18d)](_0x17b99e[_0xf70ba9(0x11a)]),_0x469581=_0x36c446[_0xf70ba9(0x142)](),_0x457948=_0x469581[_0xf70ba9(0x16c)],_0xd57ccf=_0x5667dc[_0xf70ba9(0x11f)][_0xf70ba9(0x150)];if(_0x457948&&_0xd57ccf[_0xf70ba9(0x12c)](_0x457948)&&_0xd57ccf[_0xf70ba9(0x182)](_0x457948)&&!_0x5667dc[_0xf70ba9(0x11f)][_0xf70ba9(0x178)][_0xf70ba9(0x18d)](_0xf70ba9(0x154)+_0x11f7ba)[_0xf70ba9(0x131)]()[_0xf70ba9(0x16f)])return;const _0x33fd94=_0x469581[_0xf70ba9(0x12b)];return _0x5667dc[_0xf70ba9(0x11f)][_0xf70ba9(0x150)][_0xf70ba9(0x18a)](_0x33fd94)&&!_0x5667dc[_0xf70ba9(0x11f)][_0xf70ba9(0x139)](_0x33fd94)&&(_0x285603[_0xf70ba9(0x147)]=!0x1),function(_0x112726,_0x4e31a3,_0x53c9ae){const _0x5d240f=_0xf70ba9,_0x1d0226=_0x112726[_0x5d240f(0x148)](_0x5d240f(0x195),_0x4e31a3);return _0x112726[_0x5d240f(0x13c)](_0x5d240f(0x180),!0x0,_0x1d0226),_0x1d0226[_0x5d240f(0x125)]=function(_0x254316){const _0x551994=_0x5d240f,_0x3f7981=this[_0x551994(0x146)](_0x254316),_0x1e90b4=document[_0x551994(0x163)](_0x551994(0x195));return _0x1e90b4[_0x551994(0x165)][_0x551994(0x194)](_0x551994(0x174)),_0x1e90b4[_0x551994(0x137)](_0x551994(0x147),_0x551994(0x190)),_0x1e90b4[_0x551994(0x137)](_0x551994(0x15a),_0x551994(0x190)),_0x1e90b4[_0x551994(0x127)]=_0x53c9ae[_0x551994(0x179)],_0x3f7981[_0x551994(0x15e)]=_0x551994(0x128)+_0x1e90b4[_0x551994(0x14d)]+'',_0x3f7981[_0x551994(0x193)](_0x551994(0x15c),()=>{const _0x11158e=_0x551994;_0x3f7981[_0x11158e(0x165)][_0x11158e(0x194)](_0x11158e(0x166));}),_0x3f7981[_0x551994(0x193)](_0x551994(0x176),()=>{const _0x5585a5=_0x551994;_0x3f7981[_0x5585a5(0x165)][_0x5585a5(0x144)](_0x5585a5(0x166));}),_0x3f7981;},_0x1d0226[_0x5d240f(0x199)]=function(_0x506d03){const _0x3c7811=_0x5d240f;return!(!this[_0x3c7811(0x133)](_0x3c7811(0x180))||!_0x506d03[_0x3c7811(0x133)](_0x3c7811(0x180))||this[_0x3c7811(0x151)](_0x3c7811(0x114))!=_0x506d03[_0x3c7811(0x151)](_0x3c7811(0x114)));},_0x1d0226;}(_0x28ed4,_0x285603,_0x4cc746);}(_0x4c3f9e,_0x1f6b37,_0x584338,_0x3075e1)}),_0x3075e1[_0x12d1c6(0x14f)][_0x12d1c6(0x18f)](_0x12d1c6(0x13d))[_0x12d1c6(0x186)]({'model':_0x12d1c6(0x184),'view':_0x22e1c6=>function(_0x49f313,_0x23d467){const _0x506021=_0x12d1c6,_0x79b270=_0x49f313[_0x506021(0x11a)][_0x506021(0x14b)](':')[0x2];if(_0x79b270===_0x23d467[_0x506021(0x136)])return null;const _0x590fa3=_0x23d467[_0x506021(0x177)](_0x79b270);if(!_0x590fa3)return{'id':_0x79b270,'classes':[]};return{'id':_0x79b270,'classes':[_0x506021(0x18e),_0x590fa3[_0x506021(0x119)][_0x506021(0x143)]()],'attributes':{'data-session-id':_0x79b270},'priority':0x7d0+_0x590fa3[_0x506021(0x196)]};}(_0x22e1c6,_0x584338)}),function(_0x9c607a){const _0x303da7=_0x12d1c6,_0x5a0614=_0x9c607a[_0x303da7(0x11f)],_0xedf9c9=new Map(),_0x531652=_0x9c607a[_0x303da7(0x185)][_0x303da7(0x18d)](_0x221bf1);_0x5a0614[_0x303da7(0x178)]['on'](_0x303da7(0x129),(_0x32cd9b,_0x3e6c10,_0x59a22a,_0x9fd3cc)=>{const _0x19a911=_0x303da7;if(!_0x9fd3cc&&_0xedf9c9[_0x19a911(0x18d)](_0x3e6c10[_0x19a911(0x179)]))return _0xedf9c9[_0x19a911(0x18d)](_0x3e6c10[_0x19a911(0x179)])[_0x19a911(0x18c)](),void _0xedf9c9[_0x19a911(0x167)](_0x3e6c10[_0x19a911(0x179)]);const _0x14a553=_0x3e6c10[_0x19a911(0x179)][_0x19a911(0x14b)](':')[0x2];if(_0x14a553===_0x531652[_0x19a911(0x136)])return;const _0x5d4e9d=_0x19a911(0x12d)+_0x14a553;_0x5a0614[_0x19a911(0x178)][_0x19a911(0x181)](_0x5d4e9d)&&_0x9c607a[_0x19a911(0x15b)][_0x19a911(0x124)](_0x5d4e9d),_0x3e6c10['on'](_0x19a911(0x13e),(_0xef2e9a,_0x169b18,_0x2e8f40)=>{const _0x55b0c1=_0x19a911;if(_0x55b0c1(0x155)!=_0x169b18[_0x55b0c1(0x11d)][_0x55b0c1(0x16d)]&&_0x55b0c1(0x155)==_0x3e6c10[_0x55b0c1(0x131)]()[_0x55b0c1(0x11d)][_0x55b0c1(0x16d)]&&!_0xedf9c9[_0x55b0c1(0x181)](_0x3e6c10[_0x55b0c1(0x179)])){const _0xa86563=_0x5a0614[_0x55b0c1(0x150)][_0x55b0c1(0x19a)](_0x2e8f40[_0x55b0c1(0x11e)]);if(_0xa86563){const _0x5a0992=_0x335d88[_0x55b0c1(0x16e)](_0xa86563);_0xedf9c9[_0x55b0c1(0x164)](_0x3e6c10[_0x55b0c1(0x179)],_0x5a0992),_0x5a0992['on'](_0x55b0c1(0x13e),(_0x32afd9,_0x271b63,_0x5a5bb0)=>{const _0x3b43c5=_0x55b0c1;if(_0x3b43c5(0x155)==_0x5a0992[_0x3b43c5(0x11d)][_0x3b43c5(0x16d)]){const _0x3d0fa3=_0x5a0614[_0x3b43c5(0x150)][_0x3b43c5(0x19a)](_0x5a5bb0[_0x3b43c5(0x11e)]);_0x3d0fa3?(_0x5a0992[_0x3b43c5(0x170)]=_0x3d0fa3[_0x3b43c5(0x170)],_0x5a0992[_0x3b43c5(0x12a)]=_0x3d0fa3[_0x3b43c5(0x12a)]):(_0xedf9c9[_0x3b43c5(0x167)](_0x3e6c10[_0x3b43c5(0x179)]),_0x5a0992[_0x3b43c5(0x18c)]());}});}}});}),_0x5a0614[_0x303da7(0x191)]['on'](_0x303da7(0x188),()=>{const _0x5398fd=_0x303da7;_0xedf9c9[_0x5398fd(0x115)]>0x0&&_0x5a0614[_0x5398fd(0x17f)]({'isUndoable':!0x1},_0x22b56d=>{const _0x5ecc2b=_0x5398fd;for(const [_0x205131,_0x5945f3]of _0xedf9c9)_0x5ecc2b(0x155)==_0x5a0614[_0x5ecc2b(0x178)][_0x5ecc2b(0x18d)](_0x205131)[_0x5ecc2b(0x131)]()[_0x5ecc2b(0x11d)][_0x5ecc2b(0x16d)]&&(q(_0x205131[_0x5ecc2b(0x14b)](':')[0x2],_0x5945f3[_0x5ecc2b(0x16b)](),_0x5a0614,_0x22b56d),_0x5945f3[_0x5ecc2b(0x18c)]());_0xedf9c9[_0x5ecc2b(0x162)]();});});}(_0x3075e1),this[_0x12d1c6(0x17d)][_0x12d1c6(0x14c)](_0x5b8abf[_0x12d1c6(0x191)],_0x12d1c6(0x17a),(_0x1f43a9,{key:_0x5d6987})=>{const _0x358235=_0x12d1c6;_0x358235(0x123)===_0x5d6987&&function(_0x1c5a9c){const _0x314e27=_0x358235;_0x1c5a9c[_0x314e27(0x15b)][_0x314e27(0x153)][_0x314e27(0x188)](_0x41d6b3=>{const _0x59a07b=_0x314e27;for(const _0x3f126b of _0x1c5a9c[_0x59a07b(0x11f)][_0x59a07b(0x178)]){if(!_0x3f126b[_0x59a07b(0x179)][_0x59a07b(0x135)](_0x59a07b(0x17c)))continue;const _0x326f1f=_0x1c5a9c[_0x59a07b(0x15b)][_0x59a07b(0x120)][_0x59a07b(0x149)](_0x3f126b[_0x59a07b(0x179)]);if(_0x326f1f){for(const _0x469131 of _0x326f1f)_0x41d6b3[_0x59a07b(0x134)](_0x59a07b(0x166),_0x469131);}}});}(_0x3075e1);},{'useCapture':!0x0});}[_0x1bc87f(0x14e)](){const _0x384227=_0x1bc87f,_0x53b189=this[_0x384227(0x192)],_0x5f45fa=_0x53b189[_0x384227(0x11b)][_0x384227(0x18d)](_0x384227(0x118));_0x5f45fa&&_0x53b189[_0x384227(0x11f)]['on'](_0x384227(0x175),(_0x27af90,_0xfbb288)=>{const _0x4158a8=_0x384227,_0x5efdb9=_0xfbb288[0x0];if(!_0x5efdb9[_0x4158a8(0x141)])return;if(_0x4158a8(0x113)!=_0x5efdb9[_0x4158a8(0x152)]||!_0x5efdb9[_0x4158a8(0x179)][_0x4158a8(0x135)](_0x4158a8(0x14a)))return;const _0x521d9d=_0x5efdb9[_0x4158a8(0x16a)];_0x5f45fa[_0x4158a8(0x198)][_0x4158a8(0x181)](_0x521d9d)&&(_0x5efdb9[_0x4158a8(0x121)]=_0x5efdb9[_0x4158a8(0x173)]?_0x53b189[_0x4158a8(0x11f)][_0x4158a8(0x11c)](_0x5efdb9[_0x4158a8(0x173)][_0x4158a8(0x170)],_0x5efdb9[_0x4158a8(0x173)][_0x4158a8(0x12a)]):null);},{'priority':_0x384227(0x161)});}[_0x1bc87f(0x189)](){const _0x137a60=_0x1bc87f;return this[_0x137a60(0x17d)][_0x137a60(0x112)](),super[_0x137a60(0x189)]();}[_0x1bc87f(0x140)](){const _0x1bd2ba=_0x1bc87f,_0x56cb7e=this[_0x1bd2ba(0x192)],_0x333e26=_0x56cb7e[_0x1bd2ba(0x11f)][_0x1bd2ba(0x191)],_0x2fe22a=_0x56cb7e[_0x1bd2ba(0x185)][_0x1bd2ba(0x18d)](_0x221bf1);_0x56cb7e[_0x1bd2ba(0x11f)][_0x1bd2ba(0x17f)]({'isUndoable':!0x1},_0x486f53=>{const _0x2582eb=_0x1bd2ba,_0x33b672=_0x2582eb(0x154)+_0x2fe22a[_0x2582eb(0x136)],_0xd14d6e=_0x2582eb(0x12d)+_0x2fe22a[_0x2582eb(0x136)],_0xa66bd=_0x56cb7e[_0x2582eb(0x11f)][_0x2582eb(0x178)][_0x2582eb(0x181)](_0x33b672);_0x56cb7e[_0x2582eb(0x15b)][_0x2582eb(0x153)][_0x2582eb(0x159)]?q(_0x2fe22a[_0x2582eb(0x136)],_0x333e26[_0x2582eb(0x187)][_0x2582eb(0x132)](),_0x56cb7e[_0x2582eb(0x11f)],_0x486f53):_0xa66bd&&(_0x486f53[_0x2582eb(0x15f)](_0x33b672),_0x486f53[_0x2582eb(0x15f)](_0xd14d6e));});}}function q(_0x3798a4,_0x49c938,_0xb80bbc,_0x2f7e3c){const _0x4ff699=_0x1bc87f,_0x2693dd=_0x4ff699(0x154)+_0x3798a4,_0x42d917=_0x4ff699(0x12d)+_0x3798a4,_0x22adf8=_0x49c938[_0x4ff699(0x172)]();let _0x356e10=_0x49c938[_0x4ff699(0x170)];if(_0x22adf8&&_0x22adf8['is'](_0x4ff699(0x12e),_0x4ff699(0x160))){const _0x19dc43=function(_0x5ac2ff,_0x56e41c){const _0x516bca=_0x4ff699;for(const _0x92f84e of _0x5ac2ff[_0x516bca(0x116)]())if(_0x56e41c[_0x516bca(0x150)][_0x516bca(0x126)](_0x92f84e,_0x516bca(0x13b)))return _0x92f84e;}(_0x49c938,_0xb80bbc);_0x19dc43&&(_0x356e10=_0x19dc43,_0x49c938=_0x2f7e3c[_0x4ff699(0x11c)](_0x356e10));}const _0x20d142=_0x2f7e3c[_0x4ff699(0x11c)](_0x356e10);_0xb80bbc[_0x4ff699(0x178)][_0x4ff699(0x181)](_0x2693dd)?(_0x2f7e3c[_0x4ff699(0x156)](_0x2693dd,{'range':_0x49c938}),_0x2f7e3c[_0x4ff699(0x156)](_0x42d917,{'range':_0x20d142})):(_0x2f7e3c[_0x4ff699(0x17e)](_0x2693dd,{'range':_0x49c938,'usingOperation':!0x0}),_0x2f7e3c[_0x4ff699(0x17e)](_0x42d917,{'range':_0x20d142,'usingOperation':!0x0}));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x519383=_0x291b;function _0x291b(_0xc352ac,_0x4b183a){const _0x2cf4b8=_0x2cf4();return _0x291b=function(_0x291b94,_0x53d364){_0x291b94=_0x291b94-0x9e;let _0x150c4b=_0x2cf4b8[_0x291b94];return _0x150c4b;},_0x291b(_0xc352ac,_0x4b183a);}(function(_0xe6fce7,_0x1663f5){const _0x3f20d4=_0x291b,_0x1dfb28=_0xe6fce7();while(!![]){try{const _0x7d3ddc=parseInt(_0x3f20d4(0xd6))/0x1+-parseInt(_0x3f20d4(0xa2))/0x2*(parseInt(_0x3f20d4(0xd3))/0x3)+-parseInt(_0x3f20d4(0xe5))/0x4+-parseInt(_0x3f20d4(0xcf))/0x5*(-parseInt(_0x3f20d4(0xbe))/0x6)+-parseInt(_0x3f20d4(0xdf))/0x7+-parseInt(_0x3f20d4(0xaf))/0x8+parseInt(_0x3f20d4(0xe1))/0x9;if(_0x7d3ddc===_0x1663f5)break;else _0x1dfb28['push'](_0x1dfb28['shift']());}catch(_0x2924b2){_0x1dfb28['push'](_0x1dfb28['shift']());}}}(_0x2cf4,0xa35d0));import{ContextPlugin as _0x465056}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x194c9c,CKEditorError as _0x1e6bd8}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x47b6f0,WEB_SOCKET_GATEWAY_STATES as _0x48fe61}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x4f091f}from'ckeditor5/src/ui.js';export class WebSocketGateway extends _0x465056{static [_0x519383(0xc3)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x47b6f0)());static [_0x519383(0xa9)]=0x3e8;[_0x519383(0xa4)];[_0x519383(0xdc)];[_0x519383(0xcb)];[_0x519383(0xb4)];static get[_0x519383(0xb0)](){const _0x2d04f1=_0x519383;return[_0x2d04f1(0xb5),_0x4f091f];}static get[_0x519383(0xa3)](){const _0x4c18d1=_0x519383;return _0x4c18d1(0xc3);}static get[_0x519383(0xab)](){return!0x0;}static get[_0x519383(0xb3)](){return!0x0;}constructor(_0x253f21){const _0x34a349=_0x519383;super(_0x253f21),this[_0x34a349(0xa7)](_0x34a349(0xc6),_0x48fe61[_0x34a349(0xe6)]),this[_0x34a349(0xa7)](_0x34a349(0xc2),!0x1),this[_0x34a349(0xdc)]=new Set(),this[_0x34a349(0xcb)]=!0x1,this[_0x34a349(0xb4)]=new(_0x194c9c())();}[_0x519383(0xa5)](){const _0x3cbdc3=_0x519383,_0x525a57=this[_0x3cbdc3(0xcc)],_0x3c65d8=_0x525a57[_0x3cbdc3(0xc5)][_0x3cbdc3(0xbc)](_0x3cbdc3(0xb5)),_0x4484f4=_0x525a57[_0x3cbdc3(0xc5)][_0x3cbdc3(0xbc)](_0x4f091f);if(!_0x3c65d8[_0x3cbdc3(0xde)])throw new _0x1e6bd8(_0x3cbdc3(0xa1),this);if(!_0x3c65d8[_0x3cbdc3(0xa8)])throw new _0x1e6bd8(_0x3cbdc3(0xd8),this);return this[_0x3cbdc3(0xb4)][_0x3cbdc3(0xc1)](window,_0x3cbdc3(0xd2),()=>this[_0x3cbdc3(0xc2)]=!0x0),this[_0x3cbdc3(0xb4)][_0x3cbdc3(0xc1)](window,_0x3cbdc3(0xb1),()=>this[_0x3cbdc3(0xc2)]=!0x1),this[_0x3cbdc3(0xcc)][_0x3cbdc3(0xc4)][_0x3cbdc3(0xbd)](_0x3cbdc3(0xcd),0xa),this[_0x3cbdc3(0xcc)][_0x3cbdc3(0xc4)][_0x3cbdc3(0xbd)](_0x3cbdc3(0xc7),0x14),WebSocketGateway[_0x3cbdc3(0xc3)][_0x3cbdc3(0x9f)](_0x3c65d8[_0x3cbdc3(0xde)],_0x3c65d8[_0x3cbdc3(0xa8)],{'timeout':0x3e8*this[_0x3cbdc3(0xcc)][_0x3cbdc3(0xc4)][_0x3cbdc3(0xbc)](_0x3cbdc3(0xcd)),'requestTimeout':0x3e8*this[_0x3cbdc3(0xcc)][_0x3cbdc3(0xc4)][_0x3cbdc3(0xbc)](_0x3cbdc3(0xc7))})[_0x3cbdc3(0xae)](_0xef8863=>{const _0x10d531=_0x3cbdc3;if(this[_0x10d531(0xa4)]=_0xef8863,this[_0x10d531(0xa0)](_0x10d531(0xc6))['to'](_0xef8863,_0x10d531(0xc6),this,_0x10d531(0xc2),(_0x21ed80,_0x68b6c2)=>(_0x10d531(0xb6)!==_0x21ed80&&(this[_0x10d531(0xcb)]=!0x0),_0x68b6c2||_0x21ed80!==_0x48fe61[_0x10d531(0xe6)]?_0x48fe61[_0x10d531(0xc9)]:this[_0x10d531(0xc6)]==_0x48fe61[_0x10d531(0xc9)]&&this[_0x10d531(0xcb)]?(this[_0x10d531(0xcb)]=!0x1,this[_0x10d531(0xdb)](),_0x48fe61[_0x10d531(0xa6)]):_0x48fe61[_0x10d531(0xe6)])),this[_0x10d531(0xa4)]['on'](_0x10d531(0xc8),(_0x3e5e8e,_0x56746e)=>{const _0x95dfdb=_0x10d531;if(_0x95dfdb(0xdd)!==_0x56746e[_0x95dfdb(0xd7)])throw console[_0x95dfdb(0xc8)](_0x56746e),new _0x1e6bd8(_0x95dfdb(0xe2),null,{'originalError':_0x56746e});_0x4484f4[_0x95dfdb(0xda)](_0x95dfdb(0xe0),{'title':_0x95dfdb(0xd0),'namespace':_0x95dfdb(0xbb)});}),!_0xef8863['me'])return new Promise(_0x1ab95a=>_0xef8863['on'](_0x10d531(0xe4),_0x1ab95a));})[_0x3cbdc3(0xbf)](_0xa8f892=>{const _0x4c0fe9=_0x3cbdc3;throw console[_0x4c0fe9(0xc8)](_0xa8f892),new _0x1e6bd8(_0x4c0fe9(0xe2),null,{'originalError':_0xa8f892});});}[_0x519383(0xd5)](_0x49e9ba){const _0x213673=_0x519383;if(_0x213673(0xc0)!=typeof _0x49e9ba[_0x213673(0xd4)])throw new _0x1e6bd8(_0x213673(0xce),this);if(this[_0x213673(0xd1)](_0x49e9ba))throw new _0x1e6bd8(_0x213673(0xd9),this,{'name':_0x49e9ba[_0x213673(0xb2)][_0x213673(0xa3)]});this[_0x213673(0xdc)][_0x213673(0xca)](_0x49e9ba);}[_0x519383(0xb9)](_0x1e3d2b){const _0x4156cf=_0x519383;this[_0x4156cf(0xdc)][_0x4156cf(0xad)](_0x1e3d2b);}[_0x519383(0xd1)](_0x5e3256){const _0x65443c=_0x519383;return this[_0x65443c(0xdc)][_0x65443c(0xac)](_0x5e3256);}[_0x519383(0xdb)](){const _0x203260=_0x519383;return this[_0x203260(0xa4)][_0x203260(0xd4)]()[_0x203260(0xae)](()=>Promise[_0x203260(0xe3)](Array[_0x203260(0xba)](this[_0x203260(0xdc)],_0xeb1674=>_0xeb1674[_0x203260(0xd4)]())))[_0x203260(0xae)](()=>this[_0x203260(0xc6)]=_0x48fe61[_0x203260(0xe6)])[_0x203260(0xbf)](_0x1393d0=>{const _0x57b600=_0x203260;throw console[_0x57b600(0xc8)](_0x1393d0),new _0x1e6bd8(_0x57b600(0x9e),this[_0x57b600(0xcc)]);});}[_0x519383(0xaa)](){const _0x2dfa83=_0x519383;this[_0x2dfa83(0xa4)]&&this[_0x2dfa83(0xa4)][_0x2dfa83(0xaa)](),this[_0x2dfa83(0xc6)]=_0x48fe61[_0x2dfa83(0xc9)],this[_0x2dfa83(0xb4)][_0x2dfa83(0xb8)]();}[_0x519383(0xb7)](){const _0x5646e3=_0x519383;this[_0x5646e3(0xaa)](),super[_0x5646e3(0xb7)]();}}function _0x2cf4(){const _0x4b9a20=['9466552UyzTYj','requires','online','constructor','isPremiumPlugin','_domEmitter','CloudServices','connected','destroy','stopListening','removeFromReconnectionStack','from','real-time-collaboration','get','define','1865058gINIiO','catch','function','listenTo','_isBrowserOffline','WebSocketGateway','config','plugins','state','cloudServices.requestTimeout','error','DISCONNECTED','add','_shouldPluginsReconnect','context','cloudServices.connectionTimeout','websocketgateway-invalid-plugin-interface','10BjPvfd','Connected\x20users\x20limit\x20exceeded','isInReconnectionStack','offline','3wQfQIf','reconnect','addToReconnectionStack','282339VrEkdn','code','websocketgateway-missing-websocket-url','websocketgateway-plugin-already-registered','showWarning','_reconnect','_reconnectionStack','limitExceeded','token','6079024otBMTh','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.','34573779Jmcbou','cloudservices-init','all','change:me','4614724kTOwFf','CONNECTED','cloudservices-reconnection-error','connect','bind','websocketgateway-missing-token','1741976mQPIxf','pluginName','connection','init','CONNECTING','set','webSocketUrl','initialReconnectionInterval','disconnect','isOfficialPlugin','has','delete','then'];_0x2cf4=function(){return _0x4b9a20;};return _0x2cf4();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0x43f60c)());[_0x4922d6(0x9b)];[_0x4922d6(0xa8)];[_0x4922d6(0xe0)];[_0x4922d6(0xd5)];static get[_0x4922d6(0xce)](){const _0x1942aa=_0x4922d6;return[_0x5a4b2f,_0x2e37fc,_0x1942aa(0xb2),_0x42d75d,_0x42bed2];}static get[_0x4922d6(0x93)](){const _0x1e0235=_0x4922d6;return _0x1e0235(0xad);}static get[_0x4922d6(0xbc)](){return!0x0;}static get[_0x4922d6(0x82)](){return!0x0;}constructor(_0x22f810){const _0x3f646e=_0x4922d6;super(_0x22f810);const _0x14c9c0=this[_0x3f646e(0x81)][_0x3f646e(0xc3)][_0x3f646e(0x83)](_0x3f646e(0xc8));this[_0x3f646e(0x9b)]=null,this[_0x3f646e(0xa8)]=this[_0x3f646e(0x81)][_0x3f646e(0x88)][_0x3f646e(0x83)](_0x3f646e(0x86)),this[_0x3f646e(0xe0)]=new CloudServicesRevisionHistoryAdapter[(_0x3f646e(0x9c))](_0x14c9c0);}async[_0x4922d6(0x98)](){const _0xdf5de8=_0x4922d6,_0x53fbc0=this[_0xdf5de8(0x81)][_0xdf5de8(0x88)][_0xdf5de8(0x83)](_0x2e37fc),_0x49e189=_0x53fbc0[_0xdf5de8(0x90)],_0x52f743=this[_0xdf5de8(0x81)][_0xdf5de8(0x88)][_0xdf5de8(0x83)](_0x5a4b2f);this[_0xdf5de8(0xa8)][_0xdf5de8(0x9e)]({'history':_0x49e189,'getLatestVersion':()=>this[_0xdf5de8(0xe5)](),'getCurrentRevisionId':()=>_0x53fbc0[_0xdf5de8(0xe6)]});const _0x537a07=this[_0xdf5de8(0x81)][_0xdf5de8(0xc3)][_0xdf5de8(0x83)](_0xdf5de8(0xe7))||_0x32a571,_0x349aca=await _0x354ff5[_0xdf5de8(0xac)](_0x52f743[_0xdf5de8(0xa5)],_0x537a07);this[_0xdf5de8(0x81)][_0xdf5de8(0x88)][_0xdf5de8(0x83)](_0xdf5de8(0xb2))[_0xdf5de8(0xcd)]={'getRevision':async({revisionId:_0x77717})=>(await this[_0xdf5de8(0x91)](),await this[_0xdf5de8(0xe0)][_0xdf5de8(0xa7)](_0x77717)),'updateRevisions':async _0x48dab5=>{const _0x32ca44=_0xdf5de8;await this[_0x32ca44(0x91)]();const _0x1c7d93=this[_0x32ca44(0xa8)][_0x32ca44(0xc2)];if(_0x349aca&&0x1===_0x48dab5[_0x32ca44(0xcf)]&&_0x48dab5[0x0]['id']===_0x1c7d93['id'])return _0x48dab5;for(const _0x4b3b7a of _0x48dab5)_0x4b3b7a['id']===_0x1c7d93['id']&&(_0x4b3b7a[_0x32ca44(0xaa)]=_0x4b3b7a[_0x32ca44(0xca)]===_0x4b3b7a[_0x32ca44(0x7e)]);return this[_0x32ca44(0xe0)][_0x32ca44(0xaf)](_0x48dab5,this[_0x32ca44(0x9b)])[_0x32ca44(0xc4)](_0x2fef3d=>(this[_0x32ca44(0x9b)]=_0x2fef3d,_0x48dab5))[_0x32ca44(0xa4)](_0x56bfb3=>{const _0x309c61=_0x32ca44;if(et(_0x56bfb3)||_0x309c61(0x85)===_0x56bfb3[_0x309c61(0xab)]&&void 0x0!==_0x56bfb3[_0x309c61(0x8f)][_0x309c61(0xa1)]){for(const _0x414135 of _0x48dab5){!this[_0x309c61(0xa8)][_0x309c61(0xdd)][_0x309c61(0xa7)](_0x414135['id'])||this[_0x309c61(0xa8)][_0x309c61(0xd1)](_0x414135['id'],_0x414135,!0x1);}if(et(_0x56bfb3))throw _0x56bfb3;return _0x48dab5;}throw _0x56bfb3;});}},this[_0xdf5de8(0xa9)](this[_0xdf5de8(0xe0)],_0xdf5de8(0xb4),(_0x2c209a,{revisionsData:_0x5d4e73,requestId:_0xa22ea1})=>{const _0x5d4d12=_0xdf5de8;Math[_0x5d4d12(0xd4)](..._0x5d4e73[_0x5d4d12(0xe4)](_0x322d9a=>_0x322d9a[_0x5d4d12(0x7e)]))>this[_0x5d4d12(0xdc)]()-0x1?this[_0x5d4d12(0xe5)]()[_0x5d4d12(0xc4)](()=>{const _0xef7d1a=_0x5d4d12;this[_0xef7d1a(0x7d)](_0x5d4e73,_0xa22ea1);}):this[_0x5d4d12(0x7d)](_0x5d4e73,_0xa22ea1);});const {revisions:_0x459ebc,requestId:_0x5a02ae}=await this[_0xdf5de8(0xe0)][_0xdf5de8(0xd7)](_0x52f743[_0xdf5de8(0xa5)]);_0x52f743[_0xdf5de8(0xb0)](this),this[_0xdf5de8(0x9b)]=_0x5a02ae,await this[_0xdf5de8(0xbe)](_0x459ebc);for(const _0x31b0f2 of _0x459ebc)this[_0xdf5de8(0xa8)][_0xdf5de8(0xc1)](_0x31b0f2);this[_0xdf5de8(0xa9)](_0x53fbc0,_0xdf5de8(0x87),(_0xae1789,_0x47fd7f,_0x38a664)=>{const _0x483de0=_0xdf5de8;_0x38a664&&(this[_0x483de0(0xd5)]=_0x53fbc0[_0x483de0(0xba)],_0xae1789[_0x483de0(0x97)]());}),this[_0xdf5de8(0xa8)][_0xdf5de8(0x78)](_0xdf5de8(0xb1))['to'](_0x52f743,_0xdf5de8(0xdb),_0x49369b=>_0x49369b===_0x4365e1[_0xdf5de8(0x9d)]);}async[_0x4922d6(0x76)](){const _0x4da990=_0x4922d6,_0x168100=this[_0x4da990(0x81)][_0x4da990(0x88)][_0x4da990(0x83)](_0x5a4b2f),_0x33d6c9=this[_0x4da990(0x81)][_0x4da990(0x88)][_0x4da990(0x83)](_0x2e37fc),_0x4764ed=async()=>{const _0x4c7045=_0x4da990,_0x244e14=this[_0x4c7045(0xa8)][_0x4c7045(0xc2)],_0x147452=_0x244e14['id'],_0x497ce6=_0x147452!==_0x33d6c9[_0x4c7045(0xe6)];if(_0x497ce6){const _0x2fb314=_0x33d6c9[_0x4c7045(0xba)]-this[_0x4c7045(0xd5)],_0x269531=this[_0x4c7045(0xdc)]();this[_0x4c7045(0xa8)][_0x4c7045(0x7b)][_0x4c7045(0x95)]();if(_0x244e14[_0x4c7045(0x7e)]+_0x2fb314!==_0x269531){const _0x50c547=_0x244e14[_0x4c7045(0xca)]+_0x2fb314,_0x11c831=this[_0x4c7045(0x81)][_0x4c7045(0x88)][_0x4c7045(0x83)](_0x42bed2),_0x595588=this[_0x4c7045(0xa8)][_0x4c7045(0xae)]({'revision':_0x244e14,'from':_0x50c547,'to':_0x269531});_0x595588['id']=_0x244e14['id'];const _0x6787a7=_0x595588[_0x4c7045(0xb8)][_0x4c7045(0xe4)](_0x167f3b=>_0x11c831[_0x4c7045(0x8e)](_0x167f3b));_0x244e14[_0x4c7045(0xd6)]({..._0x595588,'authors':_0x6787a7},!0x0),this[_0x4c7045(0xa8)][_0x4c7045(0xd1)](_0x244e14['id'],_0x595588,!0x0);}this[_0x4c7045(0xa8)][_0x4c7045(0xe2)]=_0x269531,(_0x244e14[_0x4c7045(0x7e)]===_0x244e14[_0x4c7045(0xca)]&&!this[_0x4c7045(0xa8)][_0x4c7045(0x92)][_0x4c7045(0x9a)](_0x147452)&&this[_0x4c7045(0xa8)][_0x4c7045(0xdd)][_0x4c7045(0xd3)][_0x4c7045(0xd2)](_0x147452),this[_0x4c7045(0xa8)][_0x4c7045(0xbb)](_0x269531));}const {revisions:_0x26e36d,requestId:_0x13a1c8}=await this[_0x4c7045(0xe0)][_0x4c7045(0x76)](_0x168100[_0x4c7045(0xa5)],this[_0x4c7045(0x9b)]);_0x497ce6&&_0x26e36d[_0x4c7045(0xcf)]>0x0?_0x33d6c9[_0x4c7045(0x94)]():(await this[_0x4c7045(0xbe)](_0x26e36d),this[_0x4c7045(0x7d)](_0x26e36d,_0x13a1c8),this[_0x4c7045(0xa8)][_0x4c7045(0xa0)]());};return _0x33d6c9[_0x4da990(0xa2)]?_0x4764ed():new Promise((_0x18ed21,_0x495cfd)=>{const _0x41b097=_0x4da990;_0x33d6c9[_0x41b097(0x9f)](_0x41b097(0x87),()=>{const _0x45883b=_0x41b097;_0x4764ed()[_0x45883b(0xc4)](_0x18ed21)[_0x45883b(0xa4)](_0x495cfd);});});}[_0x4922d6(0xe1)](){const _0x11edec=_0x4922d6;super[_0x11edec(0xe1)]();}async[_0x4922d6(0x91)](){const _0x452b40=_0x4922d6;this[_0x452b40(0xe0)][_0x452b40(0xd8)]||await new Promise(_0x7e2a80=>{const _0x561db6=_0x452b40;this[_0x561db6(0xa9)](this[_0x561db6(0xe0)],_0x561db6(0xd0),_0x3d0130=>{const _0x1b6543=_0x561db6;_0x3d0130[_0x1b6543(0x97)](),_0x7e2a80();});});}[_0x4922d6(0xdc)](){const _0x490053=_0x4922d6,_0x1ce0de=this[_0x490053(0x81)][_0x490053(0x88)][_0x490053(0x83)](_0x2e37fc)[_0x490053(0x90)][_0x490053(0xde)]()[_0x490053(0xcb)]();for(const _0x1ae037 of _0x1ce0de)if(_0x490053(0xb7)!==_0x1ae037[_0x490053(0x7f)]||_0x1ae037[_0x490053(0x96)])return _0x1ae037[_0x490053(0xb3)]+0x1;}[_0x4922d6(0xe5)](){const _0xd950ce=_0x4922d6,_0x311ee7=this[_0xd950ce(0x81)][_0xd950ce(0x88)][_0xd950ce(0x83)](_0x2e37fc);return new Promise(_0x4756f0=>{const _0x1ec8e6=_0xd950ce;_0x311ee7[_0x1ec8e6(0xc7)]?_0x311ee7[_0x1ec8e6(0x9f)](_0x1ec8e6(0x8a),()=>{const _0xb81052=_0x1ec8e6;_0x4756f0(this[_0xb81052(0xdc)]());}):_0x4756f0(this[_0x1ec8e6(0xdc)]());});}[_0x4922d6(0x7d)](_0x3bfa5f,_0x579164){const _0x581f6e=_0x4922d6,_0x35c0ba=this[_0x581f6e(0xa8)][_0x581f6e(0xdd)];this[_0x581f6e(0x9b)]=_0x579164;for(const _0x2ca8e2 of _0x3bfa5f){const _0x2c9e38=_0x35c0ba[_0x581f6e(0xa7)](_0x2ca8e2['id']);if(_0x2c9e38){if((_0x2ca8e2[_0x581f6e(0xca)]||_0x2ca8e2[_0x581f6e(0x7e)])&&(_0x2ca8e2[_0x581f6e(0x79)]=null),_0x2c9e38===this[_0x581f6e(0xa8)][_0x581f6e(0xc2)]){const _0x5d6090=Math[_0x581f6e(0xd4)](_0x2c9e38[_0x581f6e(0x7e)],_0x2ca8e2[_0x581f6e(0x7e)]),_0x1b54c1=Math[_0x581f6e(0xd4)](_0x2c9e38[_0x581f6e(0xca)],_0x2ca8e2[_0x581f6e(0xca)]);let _0x3de7a4;_0x2c9e38[_0x581f6e(0x7e)]===_0x2ca8e2[_0x581f6e(0x7e)]&&_0x2c9e38[_0x581f6e(0xca)]===_0x2ca8e2[_0x581f6e(0xca)]?(_0x3de7a4=!0x0,this[_0x581f6e(0xb6)](_0x2ca8e2)):_0x2ca8e2[_0x581f6e(0x7e)]===_0x5d6090&&_0x2ca8e2[_0x581f6e(0xca)]===_0x1b54c1?_0x3de7a4=!0x1:(_0x2c9e38[_0x581f6e(0x7e)]===_0x5d6090&&_0x2c9e38[_0x581f6e(0xca)]===_0x1b54c1||this[_0x581f6e(0xa6)]({'revision':_0x2c9e38,'from':_0x1b54c1,'to':_0x5d6090}),_0x3de7a4=!0x0),_0x3de7a4&&(delete _0x2ca8e2[_0x581f6e(0xca)],delete _0x2ca8e2[_0x581f6e(0x7e)],delete _0x2ca8e2[_0x581f6e(0x79)],delete _0x2ca8e2[_0x581f6e(0x7c)],delete _0x2ca8e2[_0x581f6e(0xb8)]);}this[_0x581f6e(0xa8)][_0x581f6e(0xb9)](_0x2ca8e2),this[_0x581f6e(0xb6)](_0x2ca8e2);}else this[_0x581f6e(0xa8)][_0x581f6e(0xc1)](_0x2ca8e2);}const _0x11e519=_0x35c0ba[_0x581f6e(0xbd)]();_0x11e519[_0x581f6e(0xcb)]();for(let _0x31789d=0x0;_0x31789d<_0x11e519[_0x581f6e(0xcf)]-0x1;_0x31789d++){const _0x36ebcc=_0x11e519[_0x31789d],_0x29ad42=_0x11e519[_0x31789d+0x1];if(_0x36ebcc[_0x581f6e(0xca)]<_0x29ad42[_0x581f6e(0x7e)]){const _0xf4c5e9=_0x29ad42[_0x581f6e(0x7e)],_0x40494e=Math[_0x581f6e(0xd4)](_0xf4c5e9,_0x36ebcc[_0x581f6e(0x7e)]);this[_0x581f6e(0xa6)]({'revision':_0x36ebcc,'from':_0xf4c5e9,'to':_0x40494e});}}}[_0x4922d6(0xa6)]({revision:_0x24225f,from:_0x264d1e,to:_0xf19b10}={}){const _0x1eb74e=_0x4922d6,_0x320b50=this[_0x1eb74e(0x81)][_0x1eb74e(0x88)][_0x1eb74e(0x83)](_0x42bed2),_0x28be73=this[_0x1eb74e(0xa8)][_0x1eb74e(0xae)]({'revision':_0x24225f,'from':_0x264d1e,'to':_0xf19b10});_0x28be73[_0x1eb74e(0xe3)]=_0x28be73[_0x1eb74e(0xb8)][_0x1eb74e(0xe4)](_0x1bfcb2=>_0x320b50[_0x1eb74e(0x8e)](_0x1bfcb2)),_0x24225f[_0x1eb74e(0xd6)](_0x28be73);}[_0x4922d6(0xb6)](_0x1e3fea){const _0x4aae8c=_0x4922d6,_0x25c537={};_0x25c537['id']=_0x1e3fea['id'];for(const _0x569175 of Object[_0x4aae8c(0x8b)](_0x1e3fea))'id'!==_0x569175&&(_0x25c537[_0x569175]=void 0x0);this[_0x4aae8c(0xa8)][_0x4aae8c(0xd1)](_0x25c537['id'],_0x25c537,!0x0);}async[_0x4922d6(0xbe)](_0x45b92f){const _0x4552d3=_0x4922d6,_0x3c4b84=this[_0x4552d3(0x81)][_0x4552d3(0x88)][_0x4552d3(0x83)](_0x42bed2),{connection:_0x470531}=this[_0x4552d3(0x81)][_0x4552d3(0x88)][_0x4552d3(0x83)](_0x5a4b2f),_0x1947e8=new Set();for(const _0xdb154e of _0x45b92f){for(const _0x5c1f36 of _0xdb154e[_0x4552d3(0xb8)])_0x5210d2(_0x5c1f36);_0xdb154e[_0x4552d3(0x89)]&&_0x5210d2(_0xdb154e[_0x4552d3(0x89)]);}if(0x0===_0x1947e8[_0x4552d3(0xe9)])return;const _0x11ad8b=await _0x4bfc35[_0x4552d3(0xda)](_0x470531,Array[_0x4552d3(0x99)](_0x1947e8));for(const _0x3df731 of _0x11ad8b)_0x3c4b84[_0x4552d3(0x8e)](_0x3df731['id'])||_0x3c4b84[_0x4552d3(0xa3)](_0x3df731);function _0x5210d2(_0x244155){const _0x5a68a0=_0x4552d3;_0x3c4b84[_0x5a68a0(0x8e)](_0x244155)||_0x1947e8[_0x5a68a0(0x84)](_0x244155);}}}function et(_0x12f965){const _0x125cc5=_0x4922d6;return _0x12f965[_0x125cc5(0xcc)][_0x125cc5(0xc0)](_0x125cc5(0xc6))||_0x12f965[_0x125cc5(0xcc)][_0x125cc5(0xc0)](_0x125cc5(0x8d))||_0x12f965[_0x125cc5(0xcc)][_0x125cc5(0xc0)](_0x125cc5(0x80));}
|
|
23
|
+
const _0x336790=_0x3e82;(function(_0x233b75,_0x4d437e){const _0x2e6800=_0x3e82,_0x49a0d0=_0x233b75();while(!![]){try{const _0x35794d=-parseInt(_0x2e6800(0xd4))/0x1+-parseInt(_0x2e6800(0xb0))/0x2+-parseInt(_0x2e6800(0x9c))/0x3+parseInt(_0x2e6800(0xe4))/0x4*(parseInt(_0x2e6800(0x106))/0x5)+parseInt(_0x2e6800(0x105))/0x6*(parseInt(_0x2e6800(0xb3))/0x7)+parseInt(_0x2e6800(0xb1))/0x8+-parseInt(_0x2e6800(0xdc))/0x9*(parseInt(_0x2e6800(0xb2))/0xa);if(_0x35794d===_0x4d437e)break;else _0x49a0d0['push'](_0x49a0d0['shift']());}catch(_0x57e581){_0x49a0d0['push'](_0x49a0d0['shift']());}}}(_0x392c,0xbb838));import{Plugin as _0x31ae97}from'ckeditor5/src/core.js';function _0x3e82(_0x35a926,_0x6faa3e){const _0x392c3a=_0x392c();return _0x3e82=function(_0x3e8270,_0x192be7){_0x3e8270=_0x3e8270-0x94;let _0x30ac39=_0x392c3a[_0x3e8270];return _0x30ac39;},_0x3e82(_0x35a926,_0x6faa3e);}function _0x392c(){const _0x20c145=['message','getRevisions','getRevision','_getLatestVersion','length','_startingVersion','off','data','CONNECTED','size','1434aFKzyq','5pVekcZ','reverse','config','connected','has','RevisionTracker','_revisionHistoryService','_getLatestVersionFromServerOperations','editor','revisionsUpdated','173787ZarEIZ','get','pluginName','CloudServicesRevisionHistoryAdapter','_bufferedUpdates','addUser','init','map','sendBufferedUpdates','fromVersion','_oldOffset','_fetchMissingUsers','keys','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','cloud-services-internal-error:\x20Request\x20timeout.','_isPendingUpdate','_bufferUpdate','_waitForServiceReady','baseVersion','setRevisionData','961596gdvBzL','5749624coXMJv','2090LFJwCZ','28763tgJBuZ','setSource','addRevisionData','RevisionHistoryService','updateRevisions','connection','catch','repository','adapter','_createCurrentRevision','remove','RevisionHistory','cloudServices.bundleVersion','authorsIds','code','getMany','addToReconnectionStack','destroy','isPremiumPlugin','connect','400','_handleRevisionsUpdate','state','authors','listenTo','startsWith','type','_update','creatorId','isEmptyCurrent','isOfficialPlugin','toVersion','plugins','123494jCLhKA','then','cloud-services-internal-error:\x20Not\x20connected.','marker','isEnabled','from','_lastRequestId','currentRevision','19323XeZNxK','isConnected','once','max','requires','reconnect','serverHistory','_revisionDataBuilder','712984UFNuoI','sessionId','bind','add','_revisions','getOperations','reInit','_isConnected','_offset','isBundleUploaded','change:_isConnected','collaboration.channelId','_revisionTracker','_handleReconnectionError','wrongRequestId','_preventResendingRevisionData','getUser','affectsData','diffData','change:_isPendingUpdate','buildRevisionData','createdAt','_fixRevision'];_0x392c=function(){return _0x20c145;};return _0x392c();}import{version as _0x1748b9}from'ckeditor5/src/utils.js';import{Users as _0x460e7e}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x43ff36}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x397a13}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x44b71c}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x5c4201,RevisionHistoryService as _0x599c08,User as _0x1d556f,WEB_SOCKET_GATEWAY_STATES as _0x1fe136}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x31ae97{static [_0x336790(0xb6)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x599c08)());[_0x336790(0xda)];[_0x336790(0xf0)];[_0x336790(0x98)];[_0x336790(0xa6)];static get[_0x336790(0xe0)](){const _0x5c3d7a=_0x336790;return[_0x397a13,_0x43ff36,_0x5c3d7a(0xbe),_0x44b71c,_0x460e7e];}static get[_0x336790(0x9e)](){const _0x3b5e69=_0x336790;return _0x3b5e69(0x9f);}static get[_0x336790(0xd1)](){return!0x0;}static get[_0x336790(0xc5)](){return!0x0;}constructor(_0x2f5ade){const _0x3782e2=_0x336790;super(_0x2f5ade);const _0x357161=this[_0x3782e2(0x9a)][_0x3782e2(0x94)][_0x3782e2(0x9d)](_0x3782e2(0xef));this[_0x3782e2(0xda)]=null,this[_0x3782e2(0xf0)]=this[_0x3782e2(0x9a)][_0x3782e2(0xd3)][_0x3782e2(0x9d)](_0x3782e2(0x97)),this[_0x3782e2(0x98)]=new CloudServicesRevisionHistoryAdapter[(_0x3782e2(0xb6))](_0x357161);}async[_0x336790(0xa2)](){const _0x2dbd7f=_0x336790,_0x4c2c61=this[_0x2dbd7f(0x9a)][_0x2dbd7f(0xd3)][_0x2dbd7f(0x9d)](_0x43ff36),_0xf0fa9b=_0x4c2c61[_0x2dbd7f(0xe2)],_0x47b16c=this[_0x2dbd7f(0x9a)][_0x2dbd7f(0xd3)][_0x2dbd7f(0x9d)](_0x397a13);this[_0x2dbd7f(0xf0)][_0x2dbd7f(0xb4)]({'history':_0xf0fa9b,'getLatestVersion':()=>this[_0x2dbd7f(0xfe)](),'getCurrentRevisionId':()=>_0x4c2c61[_0x2dbd7f(0xe5)]});const _0x493b0d=this[_0x2dbd7f(0x9a)][_0x2dbd7f(0x94)][_0x2dbd7f(0x9d)](_0x2dbd7f(0xbf))||_0x1748b9,_0x158c95=await _0x5c4201[_0x2dbd7f(0xed)](_0x47b16c[_0x2dbd7f(0xb8)],_0x493b0d);this[_0x2dbd7f(0x9a)][_0x2dbd7f(0xd3)][_0x2dbd7f(0x9d)](_0x2dbd7f(0xbe))[_0x2dbd7f(0xbb)]={'getRevision':async({revisionId:_0x2341b4})=>(await this[_0x2dbd7f(0xad)](),await this[_0x2dbd7f(0x98)][_0x2dbd7f(0xfd)](_0x2341b4)),'updateRevisions':async _0x3a59b8=>{const _0x4970e9=_0x2dbd7f;await this[_0x4970e9(0xad)]();const _0x490b97=this[_0x4970e9(0xf0)][_0x4970e9(0xdb)];if(_0x158c95&&0x1===_0x3a59b8[_0x4970e9(0xff)]&&_0x3a59b8[0x0]['id']===_0x490b97['id'])return _0x3a59b8;for(const _0x3a367a of _0x3a59b8)_0x3a367a['id']===_0x490b97['id']&&(_0x3a367a[_0x4970e9(0xd0)]=_0x3a367a[_0x4970e9(0xa5)]===_0x3a367a[_0x4970e9(0xd2)]);return this[_0x4970e9(0x98)][_0x4970e9(0xb7)](_0x3a59b8,this[_0x4970e9(0xda)])[_0x4970e9(0xd5)](_0x3501f4=>(this[_0x4970e9(0xda)]=_0x3501f4,_0x3a59b8))[_0x4970e9(0xb9)](_0x4ebe1a=>{const _0x2219e9=_0x4970e9;if(J(_0x4ebe1a)||_0x2219e9(0xc7)===_0x4ebe1a[_0x2219e9(0xc1)]&&void 0x0!==_0x4ebe1a[_0x2219e9(0x102)][_0x2219e9(0xf2)]){for(const _0x588acd of _0x3a59b8){!this[_0x2219e9(0xf0)][_0x2219e9(0xba)][_0x2219e9(0xfd)](_0x588acd['id'])||this[_0x2219e9(0xf0)][_0x2219e9(0xac)](_0x588acd['id'],_0x588acd,!0x1);}if(J(_0x4ebe1a))throw _0x4ebe1a;return _0x3a59b8;}throw _0x4ebe1a;});}},this[_0x2dbd7f(0xcb)](this[_0x2dbd7f(0x98)],_0x2dbd7f(0x9b),(_0x3aef65,{revisionsData:_0x153612,requestId:_0x25f100})=>{const _0x5119ab=_0x2dbd7f;Math[_0x5119ab(0xdf)](..._0x153612[_0x5119ab(0xa3)](_0x373cd5=>_0x373cd5[_0x5119ab(0xd2)]))>this[_0x5119ab(0x99)]()-0x1?this[_0x5119ab(0xfe)]()[_0x5119ab(0xd5)](()=>{const _0x1224fb=_0x5119ab;this[_0x1224fb(0xc8)](_0x153612,_0x25f100);}):this[_0x5119ab(0xc8)](_0x153612,_0x25f100);});const {revisions:_0x279f01,requestId:_0x205f72}=await this[_0x2dbd7f(0x98)][_0x2dbd7f(0xc6)](_0x47b16c[_0x2dbd7f(0xb8)]);_0x47b16c[_0x2dbd7f(0xc3)](this),this[_0x2dbd7f(0xda)]=_0x205f72,await this[_0x2dbd7f(0xa7)](_0x279f01);for(const _0x1e5acd of _0x279f01)this[_0x2dbd7f(0xf0)][_0x2dbd7f(0xb5)](_0x1e5acd);this[_0x2dbd7f(0xcb)](_0x4c2c61,_0x2dbd7f(0xee),(_0x1d8881,_0x29986e,_0x2de665)=>{const _0x50d77e=_0x2dbd7f;_0x2de665&&(this[_0x50d77e(0xa6)]=_0x4c2c61[_0x50d77e(0xec)],_0x1d8881[_0x50d77e(0x101)]());}),this[_0x2dbd7f(0xf0)][_0x2dbd7f(0xe6)](_0x2dbd7f(0xd8))['to'](_0x47b16c,_0x2dbd7f(0xc9),_0x433c33=>_0x433c33===_0x1fe136[_0x2dbd7f(0x103)]);}async[_0x336790(0xe1)](){const _0x1d6e5d=_0x336790,_0x169af7=this[_0x1d6e5d(0x9a)][_0x1d6e5d(0xd3)][_0x1d6e5d(0x9d)](_0x397a13),_0x2600b7=this[_0x1d6e5d(0x9a)][_0x1d6e5d(0xd3)][_0x1d6e5d(0x9d)](_0x43ff36),_0x64339b=async()=>{const _0x27afa0=_0x1d6e5d,_0x325829=this[_0x27afa0(0xf0)][_0x27afa0(0xdb)],_0x5effda=_0x325829['id'],_0x30add7=_0x5effda!==_0x2600b7[_0x27afa0(0xe5)];if(_0x30add7){const _0x38edd6=_0x2600b7[_0x27afa0(0xec)]-this[_0x27afa0(0xa6)],_0x5e07a6=this[_0x27afa0(0x99)]();this[_0x27afa0(0xf0)][_0x27afa0(0xe3)][_0x27afa0(0xea)]();if(_0x325829[_0x27afa0(0xd2)]+_0x38edd6!==_0x5e07a6){const _0x2ddcc6=_0x325829[_0x27afa0(0xa5)]+_0x38edd6,_0x5cc064=this[_0x27afa0(0x9a)][_0x27afa0(0xd3)][_0x27afa0(0x9d)](_0x460e7e),_0xfbf927=this[_0x27afa0(0xf0)][_0x27afa0(0xf8)]({'revision':_0x325829,'from':_0x2ddcc6,'to':_0x5e07a6});_0xfbf927['id']=_0x325829['id'];const _0x3097e7=_0xfbf927[_0x27afa0(0xc0)][_0x27afa0(0xa3)](_0x3c1017=>_0x5cc064[_0x27afa0(0xf4)](_0x3c1017));_0x325829[_0x27afa0(0xce)]({..._0xfbf927,'authors':_0x3097e7},!0x0),this[_0x27afa0(0xf0)][_0x27afa0(0xac)](_0x325829['id'],_0xfbf927,!0x0);}this[_0x27afa0(0xf0)][_0x27afa0(0x100)]=_0x5e07a6,(_0x325829[_0x27afa0(0xd2)]===_0x325829[_0x27afa0(0xa5)]&&!this[_0x27afa0(0xf0)][_0x27afa0(0xa0)][_0x27afa0(0x96)](_0x5effda)&&this[_0x27afa0(0xf0)][_0x27afa0(0xba)][_0x27afa0(0xe8)][_0x27afa0(0xbd)](_0x5effda),this[_0x27afa0(0xf0)][_0x27afa0(0xbc)](_0x5e07a6));}const {revisions:_0x3c9c83,requestId:_0x398c26}=await this[_0x27afa0(0x98)][_0x27afa0(0xe1)](_0x169af7[_0x27afa0(0xb8)],this[_0x27afa0(0xda)]);_0x30add7&&_0x3c9c83[_0x27afa0(0xff)]>0x0?_0x2600b7[_0x27afa0(0xf1)]():(await this[_0x27afa0(0xa7)](_0x3c9c83),this[_0x27afa0(0xc8)](_0x3c9c83,_0x398c26),this[_0x27afa0(0xf0)][_0x27afa0(0xa4)]());};return _0x2600b7[_0x1d6e5d(0xeb)]?_0x64339b():new Promise((_0x3d74ab,_0x5c6b24)=>{const _0x1a7d7a=_0x1d6e5d;_0x2600b7[_0x1a7d7a(0xde)](_0x1a7d7a(0xee),()=>{const _0x238256=_0x1a7d7a;_0x64339b()[_0x238256(0xd5)](_0x3d74ab)[_0x238256(0xb9)](_0x5c6b24);});});}[_0x336790(0xc4)](){const _0x42e238=_0x336790;super[_0x42e238(0xc4)]();}async[_0x336790(0xad)](){const _0x5e562e=_0x336790;this[_0x5e562e(0x98)][_0x5e562e(0xdd)]||await new Promise(_0x328ddd=>{const _0x22de0d=_0x5e562e;this[_0x22de0d(0xcb)](this[_0x22de0d(0x98)],_0x22de0d(0x95),_0x5bdb54=>{const _0x4ccdd7=_0x22de0d;_0x5bdb54[_0x4ccdd7(0x101)](),_0x328ddd();});});}[_0x336790(0x99)](){const _0xcc4f9f=_0x336790,_0x5a276d=this[_0xcc4f9f(0x9a)][_0xcc4f9f(0xd3)][_0xcc4f9f(0x9d)](_0x43ff36)[_0xcc4f9f(0xe2)][_0xcc4f9f(0xe9)]()[_0xcc4f9f(0x107)]();for(const _0x2d294e of _0x5a276d)if(_0xcc4f9f(0xd7)!==_0x2d294e[_0xcc4f9f(0xcd)]||_0x2d294e[_0xcc4f9f(0xf5)])return _0x2d294e[_0xcc4f9f(0xae)]+0x1;}[_0x336790(0xfe)](){const _0x5e0547=_0x336790,_0x19d6fb=this[_0x5e0547(0x9a)][_0x5e0547(0xd3)][_0x5e0547(0x9d)](_0x43ff36);return new Promise(_0x23506=>{const _0x340170=_0x5e0547;_0x19d6fb[_0x340170(0xab)]?_0x19d6fb[_0x340170(0xde)](_0x340170(0xf7),()=>{const _0x6ed1cb=_0x340170;_0x23506(this[_0x6ed1cb(0x99)]());}):_0x23506(this[_0x340170(0x99)]());});}[_0x336790(0xc8)](_0x2a9d7a,_0x420ab0){const _0x969522=_0x336790,_0x206738=this[_0x969522(0xf0)][_0x969522(0xba)];this[_0x969522(0xda)]=_0x420ab0;for(const _0x5b1567 of _0x2a9d7a){const _0x5f2717=_0x206738[_0x969522(0xfd)](_0x5b1567['id']);if(_0x5f2717){if((_0x5b1567[_0x969522(0xa5)]||_0x5b1567[_0x969522(0xd2)])&&(_0x5b1567[_0x969522(0xf6)]=null),_0x5f2717===this[_0x969522(0xf0)][_0x969522(0xdb)]){const _0x4201f2=Math[_0x969522(0xdf)](_0x5f2717[_0x969522(0xd2)],_0x5b1567[_0x969522(0xd2)]),_0x4ac63f=Math[_0x969522(0xdf)](_0x5f2717[_0x969522(0xa5)],_0x5b1567[_0x969522(0xa5)]);let _0x5352f9;_0x5f2717[_0x969522(0xd2)]===_0x5b1567[_0x969522(0xd2)]&&_0x5f2717[_0x969522(0xa5)]===_0x5b1567[_0x969522(0xa5)]?(_0x5352f9=!0x0,this[_0x969522(0xf3)](_0x5b1567)):_0x5b1567[_0x969522(0xd2)]===_0x4201f2&&_0x5b1567[_0x969522(0xa5)]===_0x4ac63f?_0x5352f9=!0x1:(_0x5f2717[_0x969522(0xd2)]===_0x4201f2&&_0x5f2717[_0x969522(0xa5)]===_0x4ac63f||this[_0x969522(0xfa)]({'revision':_0x5f2717,'from':_0x4ac63f,'to':_0x4201f2}),_0x5352f9=!0x0),_0x5352f9&&(delete _0x5b1567[_0x969522(0xa5)],delete _0x5b1567[_0x969522(0xd2)],delete _0x5b1567[_0x969522(0xf6)],delete _0x5b1567[_0x969522(0xf9)],delete _0x5b1567[_0x969522(0xc0)]);}this[_0x969522(0xf0)][_0x969522(0xaf)](_0x5b1567),this[_0x969522(0xf3)](_0x5b1567);}else this[_0x969522(0xf0)][_0x969522(0xb5)](_0x5b1567);}const _0x23325f=_0x206738[_0x969522(0xfc)]();_0x23325f[_0x969522(0x107)]();for(let _0x27d8b6=0x0;_0x27d8b6<_0x23325f[_0x969522(0xff)]-0x1;_0x27d8b6++){const _0x182b8a=_0x23325f[_0x27d8b6],_0x5d7f2b=_0x23325f[_0x27d8b6+0x1];if(_0x182b8a[_0x969522(0xa5)]<_0x5d7f2b[_0x969522(0xd2)]){const _0x5953b2=_0x5d7f2b[_0x969522(0xd2)],_0x5a2c67=Math[_0x969522(0xdf)](_0x5953b2,_0x182b8a[_0x969522(0xd2)]);this[_0x969522(0xfa)]({'revision':_0x182b8a,'from':_0x5953b2,'to':_0x5a2c67});}}}[_0x336790(0xfa)]({revision:_0x3f555f,from:_0x52e18d,to:_0x48c0c0}={}){const _0x42c2f9=_0x336790,_0x23cea9=this[_0x42c2f9(0x9a)][_0x42c2f9(0xd3)][_0x42c2f9(0x9d)](_0x460e7e),_0xdd9b35=this[_0x42c2f9(0xf0)][_0x42c2f9(0xf8)]({'revision':_0x3f555f,'from':_0x52e18d,'to':_0x48c0c0});_0xdd9b35[_0x42c2f9(0xca)]=_0xdd9b35[_0x42c2f9(0xc0)][_0x42c2f9(0xa3)](_0x380bbd=>_0x23cea9[_0x42c2f9(0xf4)](_0x380bbd)),_0x3f555f[_0x42c2f9(0xce)](_0xdd9b35);}[_0x336790(0xf3)](_0x1ff21f){const _0x363b18=_0x336790,_0x89ad94={};_0x89ad94['id']=_0x1ff21f['id'];for(const _0x34f4bc of Object[_0x363b18(0xa8)](_0x1ff21f))'id'!==_0x34f4bc&&(_0x89ad94[_0x34f4bc]=void 0x0);this[_0x363b18(0xf0)][_0x363b18(0xac)](_0x89ad94['id'],_0x89ad94,!0x0);}async[_0x336790(0xa7)](_0x3c562d){const _0x18c85d=_0x336790,_0xc27d60=this[_0x18c85d(0x9a)][_0x18c85d(0xd3)][_0x18c85d(0x9d)](_0x460e7e),{connection:_0x53f071}=this[_0x18c85d(0x9a)][_0x18c85d(0xd3)][_0x18c85d(0x9d)](_0x397a13),_0x65018f=new Set();for(const _0x1245d3 of _0x3c562d){for(const _0x20bb13 of _0x1245d3[_0x18c85d(0xc0)])_0x4d5919(_0x20bb13);_0x1245d3[_0x18c85d(0xcf)]&&_0x4d5919(_0x1245d3[_0x18c85d(0xcf)]);}if(0x0===_0x65018f[_0x18c85d(0x104)])return;const _0x13db30=await _0x1d556f[_0x18c85d(0xc2)](_0x53f071,Array[_0x18c85d(0xd9)](_0x65018f));for(const _0x5f0cf5 of _0x13db30)_0xc27d60[_0x18c85d(0xf4)](_0x5f0cf5['id'])||_0xc27d60[_0x18c85d(0xa1)](_0x5f0cf5);function _0x4d5919(_0x5f2657){const _0x3ca941=_0x18c85d;_0xc27d60[_0x3ca941(0xf4)](_0x5f2657)||_0x65018f[_0x3ca941(0xe7)](_0x5f2657);}}}function J(_0x3c596b){const _0x23b5f4=_0x336790;return _0x3c596b[_0x23b5f4(0xfb)][_0x23b5f4(0xcc)](_0x23b5f4(0xa9))||_0x3c596b[_0x23b5f4(0xfb)][_0x23b5f4(0xcc)](_0x23b5f4(0xd6))||_0x3c596b[_0x23b5f4(0xfb)][_0x23b5f4(0xcc)](_0x23b5f4(0xaa));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
((()=>
|
|
23
|
+
function _0x481d(){const _0x57c5ee=['type','1143ZBmDAH','getUser','2709252mMVqms','startsWith','catch','TrackChangesEditing','open','4916bMZqzg','addToReconnectionStack','attributes','delete','size','originalSuggestionId','connect','isPremiumPlugin','get','values','addUser','828406qRlaxp','pluginName','1193205HUbqcp','data','then','_saved','init','TrackChangesService','_trackChangesService','getSuggestion','requires','update','isConnected','connected','message','reconnect','_waitForServiceReady','_bufferedRequests','off','plugins','64251uCjzis','listenTo','set','2244753cbsAAm','hasSuggestion','_fetchMissingUsersForThreads','isOfficialPlugin','connection','config','add','1000MfjDgd','adapter','191115eHGTze','state','addSuggestionData','collaboration.channelId','cloud-services-internal-error:\x20Not\x20connected.','getMany','cloud-services-internal-error:\x20Request\x20timeout.','editor','from','find','CloudServicesTrackChangesAdapter','suggestionUpdated'];_0x481d=function(){return _0x57c5ee;};return _0x481d();}const _0x1bd5b7=_0x18c4;(function(_0x1162b0,_0x40dd57){const _0x40b3bd=_0x18c4,_0x193c70=_0x1162b0();while(!![]){try{const _0x238fb1=parseInt(_0x40b3bd(0x172))/0x1+-parseInt(_0x40b3bd(0x191))/0x2+parseInt(_0x40b3bd(0x17f))/0x3*(-parseInt(_0x40b3bd(0x186))/0x4)+parseInt(_0x40b3bd(0x193))/0x5+-parseInt(_0x40b3bd(0x181))/0x6+parseInt(_0x40b3bd(0x169))/0x7+-parseInt(_0x40b3bd(0x170))/0x8*(-parseInt(_0x40b3bd(0x166))/0x9);if(_0x238fb1===_0x40dd57)break;else _0x193c70['push'](_0x193c70['shift']());}catch(_0x572b4a){_0x193c70['push'](_0x193c70['shift']());}}}(_0x481d,0x4b650));function _0x18c4(_0x9eb7d,_0x3c2270){const _0x481dde=_0x481d();return _0x18c4=function(_0x18c417,_0x26b9de){_0x18c417=_0x18c417-0x15c;let _0x58e0d9=_0x481dde[_0x18c417];return _0x58e0d9;},_0x18c4(_0x9eb7d,_0x3c2270);}import{Plugin as _0x5c899a}from'ckeditor5/src/core.js';import{User as _0x50ec20,TrackChangesService as _0x4e4698}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x268e84}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x17e550}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x4e5943}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x5c899a{static [_0x1bd5b7(0x198)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x4e4698)());[_0x1bd5b7(0x163)];[_0x1bd5b7(0x199)];static get[_0x1bd5b7(0x15c)](){const _0x190ace=_0x1bd5b7;return[_0x17e550,_0x190ace(0x184),_0x268e84];}static get[_0x1bd5b7(0x192)](){const _0x233d1f=_0x1bd5b7;return _0x233d1f(0x17c);}static get[_0x1bd5b7(0x16c)](){return!0x0;}static get[_0x1bd5b7(0x18d)](){return!0x0;}constructor(_0x339efc){const _0x5bcd42=_0x1bd5b7;super(_0x339efc);const _0x1501ec=this[_0x5bcd42(0x179)][_0x5bcd42(0x16e)][_0x5bcd42(0x18e)](_0x5bcd42(0x175));this[_0x5bcd42(0x163)]=new Map(),this[_0x5bcd42(0x199)]=new CloudServicesTrackChangesAdapter[(_0x5bcd42(0x198))](_0x1501ec);}[_0x1bd5b7(0x197)](){const _0x12e345=_0x1bd5b7,_0x431c89=this[_0x12e345(0x179)][_0x12e345(0x165)][_0x12e345(0x18e)](_0x268e84),_0x1f3078=this[_0x12e345(0x179)][_0x12e345(0x165)][_0x12e345(0x18e)](_0x12e345(0x184));return _0x1f3078[_0x12e345(0x171)]={'getSuggestion':async _0x1a1918=>{const _0x447e83=_0x12e345;await this[_0x447e83(0x162)]();const _0x2c617b=await this[_0x447e83(0x199)][_0x447e83(0x18e)](_0x1a1918)[_0x447e83(0x183)](z);return await this[_0x447e83(0x16b)]([_0x2c617b]),_0x2c617b;},'addSuggestion':async({id:_0x2a7a23,type:_0x506228,data:_0x3be2d2,originalSuggestionId:_0x512a13,attributes:_0x268dc2})=>{const _0x5b1240=_0x12e345;await this[_0x5b1240(0x162)]();const _0x46430c={'id':_0x2a7a23,'type':_0x506228,'data':_0x3be2d2,'originalSuggestionId':_0x512a13,'attributes':_0x268dc2},_0x3cdde6=await this[_0x5b1240(0x199)][_0x5b1240(0x16f)](_0x2a7a23,_0x506228,_0x3be2d2,_0x512a13,_0x268dc2)[_0x5b1240(0x183)](_0x479eee=>{if(J(_0x479eee))return new Promise(_0x6a79f1=>{const _0x44b68b=_0x18c4;this[_0x44b68b(0x163)][_0x44b68b(0x168)](_0x2a7a23,{'resolve':_0x6a79f1,'suggestionData':_0x46430c});});throw _0x479eee;});return this[_0x5b1240(0x163)][_0x5b1240(0x189)](_0x2a7a23),_0x3cdde6;},'updateSuggestion':async(_0x34b762,_0x113c5c)=>{const _0x4c5f7c=_0x12e345;if(await this[_0x4c5f7c(0x162)](),_0x4c5f7c(0x185)!==_0x113c5c[_0x4c5f7c(0x173)])return this[_0x4c5f7c(0x199)][_0x4c5f7c(0x15d)](_0x34b762,_0x113c5c)[_0x4c5f7c(0x183)](z);}},this[_0x12e345(0x167)](this[_0x12e345(0x199)],_0x12e345(0x17d),(_0x54e4cc,_0x56fa04)=>{const _0x264068=_0x12e345;_0x1f3078[_0x264068(0x16a)](_0x56fa04['id'])&&(_0x1f3078[_0x264068(0x19a)](_0x56fa04['id'])[_0x264068(0x188)]=_0x56fa04[_0x264068(0x188)]);}),this[_0x12e345(0x199)][_0x12e345(0x18c)](_0x431c89[_0x12e345(0x16d)])[_0x12e345(0x195)](_0x20c48e=>(_0x431c89[_0x12e345(0x187)](this),this[_0x12e345(0x16b)](_0x20c48e)[_0x12e345(0x195)](()=>{const _0x2cd495=_0x12e345;for(const _0x41e8ac of _0x20c48e){_0x1f3078[_0x2cd495(0x174)](_0x41e8ac)[_0x2cd495(0x196)]=!0x0;}})));}async[_0x1bd5b7(0x161)](){const _0x490ba3=_0x1bd5b7,_0x41c57f=this[_0x490ba3(0x179)][_0x490ba3(0x165)][_0x490ba3(0x18e)](_0x490ba3(0x184)),{connection:_0x12d9da}=this[_0x490ba3(0x179)][_0x490ba3(0x165)][_0x490ba3(0x18e)](_0x268e84),_0x2707e9=await this[_0x490ba3(0x199)][_0x490ba3(0x18c)](_0x12d9da);await this[_0x490ba3(0x16b)](_0x2707e9);for(const {suggestionData:_0x13cd2e,resolve:_0x4147af}of this[_0x490ba3(0x163)][_0x490ba3(0x18f)]()){let _0x2059d6=_0x2707e9[_0x490ba3(0x17b)](_0x3291a5=>_0x3291a5['id']===_0x13cd2e['id']);_0x2059d6||(_0x2059d6=await this[_0x490ba3(0x199)][_0x490ba3(0x16f)](_0x13cd2e['id'],_0x13cd2e[_0x490ba3(0x17e)],_0x13cd2e[_0x490ba3(0x194)],_0x13cd2e[_0x490ba3(0x18b)])),_0x4147af(_0x2059d6);}for(const _0x18dae7 of _0x2707e9)_0x41c57f[_0x490ba3(0x16a)](_0x18dae7['id'])||_0x41c57f[_0x490ba3(0x174)](_0x18dae7);}async[_0x1bd5b7(0x162)](){const _0x5bf550=_0x1bd5b7;this[_0x5bf550(0x199)][_0x5bf550(0x15e)]||await new Promise(_0x2eaa40=>{const _0x4fa859=_0x5bf550;this[_0x4fa859(0x167)](this[_0x4fa859(0x199)],_0x4fa859(0x15f),_0x1cb069=>{const _0x3a09a4=_0x4fa859;_0x1cb069[_0x3a09a4(0x164)](),_0x2eaa40();});});}async[_0x1bd5b7(0x16b)](_0x3078f5){const _0x4bef94=_0x1bd5b7,_0x4b4129=this[_0x4bef94(0x179)][_0x4bef94(0x165)][_0x4bef94(0x18e)](_0x4e5943),{connection:_0x57a626}=this[_0x4bef94(0x179)][_0x4bef94(0x165)][_0x4bef94(0x18e)](_0x268e84),_0x27d45f=new Set();for(const {authorId:_0x3d1b3f}of _0x3078f5)_0x4b4129[_0x4bef94(0x180)](_0x3d1b3f)||_0x27d45f[_0x4bef94(0x16f)](_0x3d1b3f);if(0x0===_0x27d45f[_0x4bef94(0x18a)])return;const _0x59e88f=await _0x50ec20[_0x4bef94(0x177)](_0x57a626,Array[_0x4bef94(0x17a)](_0x27d45f));for(const _0x2786bf of _0x59e88f)_0x4b4129[_0x4bef94(0x180)](_0x2786bf['id'])||_0x4b4129[_0x4bef94(0x190)](_0x2786bf);}}function z(_0x3a4439){if(J(_0x3a4439))return new Promise(()=>{});throw _0x3a4439;}function J(_0x5c75c4){const _0x5e6160=_0x1bd5b7;return _0x5c75c4[_0x5e6160(0x160)][_0x5e6160(0x182)](_0x5e6160(0x176))||_0x5c75c4[_0x5e6160(0x160)][_0x5e6160(0x182)](_0x5e6160(0x178));}
|