@ckeditor/ckeditor5-real-time-collaboration 44.0.0-alpha.11 → 44.0.0-alpha.12
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 +9 -9
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.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 _0x22fb20=_0x2be9;function _0x2be9(_0x2430ec,_0x4c59bf){const _0x30e9cb=_0x30e9();return _0x2be9=function(_0x2be91d,_0x51bc37){_0x2be91d=_0x2be91d-0x89;let _0x59ee62=_0x30e9cb[_0x2be91d];return _0x59ee62;},_0x2be9(_0x2430ec,_0x4c59bf);}(function(_0x3bce7c,_0x345127){const _0x11000e=_0x2be9,_0x45ca7d=_0x3bce7c();while(!![]){try{const _0x2e3bff=-parseInt(_0x11000e(0x9d))/0x1*(parseInt(_0x11000e(0xa3))/0x2)+parseInt(_0x11000e(0x8c))/0x3+parseInt(_0x11000e(0x9f))/0x4*(parseInt(_0x11000e(0x96))/0x5)+parseInt(_0x11000e(0x8a))/0x6*(parseInt(_0x11000e(0x9a))/0x7)+parseInt(_0x11000e(0x8b))/0x8*(parseInt(_0x11000e(0xa4))/0x9)+parseInt(_0x11000e(0x99))/0xa*(parseInt(_0x11000e(0x9c))/0xb)+parseInt(_0x11000e(0xa0))/0xc*(-parseInt(_0x11000e(0x91))/0xd);if(_0x2e3bff===_0x345127)break;else _0x45ca7d['push'](_0x45ca7d['shift']());}catch(_0x1e0f27){_0x45ca7d['push'](_0x45ca7d['shift']());}}}(_0x30e9,0x70571));import{ListItemView as _0x307551}from'ckeditor5/src/ui.js';function _0x30e9(){const _0x4e85c3=['userView','bindTemplate','fire','tag','2735085sVTcGD','ck-presence-list__dropdown-list-item','name','1096170aORiFA','7iwHuxN','span','11UBNhjd','119bXMDni','focus','4dSMTlT','6163860RzqIKD','execute','color','13358DmkdnK','456075SvtpPL','button','element','true','presentation','5304786UrQLlV','80xzXOQZ','704223UgZBIu','ck-user__full-name','setTemplate','ck-presence-list__marker','getBackgroundColorClass','26LnNuua'];_0x30e9=function(){return _0x4e85c3;};return _0x30e9();}import{UserView as _0x51efd3}from'ckeditor5-collaboration/src/collaboration-core.js';export default class k extends _0x307551{constructor(_0x4349ad,_0x4b6865,_0x169f5e){const _0x3db9fe=_0x2be9;super(_0x4349ad);const _0x3117fa=this[_0x3db9fe(0x93)];this[_0x3db9fe(0x92)]=new _0x51efd3(_0x4349ad,_0x4b6865);const _0x3f25f0={'tag':'li','attributes':{'class':['ck',_0x3db9fe(0x97)],'tabindex':-0x1,'role':_0x3db9fe(0x89),'aria-label':_0x4b6865[_0x3db9fe(0x98)]},'children':[this[_0x3db9fe(0x92)],{'tag':_0x3db9fe(0x9b),'attributes':{'class':['ck',_0x3db9fe(0x8d)]},'children':[{'text':_0x4b6865[_0x3db9fe(0x98)]}]},{'tag':_0x3db9fe(0x9b),'attributes':{'class':['ck',_0x3db9fe(0x8f),_0x4b6865[_0x3db9fe(0xa2)][_0x3db9fe(0x90)]()],'aria-hidden':_0x3db9fe(0xa7)}}]};_0x169f5e&&(_0x3f25f0[_0x3db9fe(0x95)]=_0x3db9fe(0xa5),_0x3f25f0['on']={'click':_0x3117fa['to'](()=>this[_0x3db9fe(0x94)](_0x3db9fe(0xa1)))}),this[_0x3db9fe(0x8e)](_0x3f25f0);}[_0x22fb20(0x9e)](){const _0x5d3116=_0x22fb20;this[_0x5d3116(0xa6)][_0x5d3116(0x9e)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x493c16=_0x257e;function _0x257e(_0x50fbaf,_0x5f0829){const _0x1ddce0=_0x1ddc();return _0x257e=function(_0x257ecb,_0x1a6bcf){_0x257ecb=_0x257ecb-0x15f;let _0x2a94e5=_0x1ddce0[_0x257ecb];return _0x2a94e5;},_0x257e(_0x50fbaf,_0x5f0829);}(function(_0x162ea3,_0x5188d3){const _0x280d83=_0x257e,_0x1854e3=_0x162ea3();while(!![]){try{const _0x4d020e=-parseInt(_0x280d83(0x167))/0x1+-parseInt(_0x280d83(0x1b0))/0x2*(parseInt(_0x280d83(0x1ad))/0x3)+parseInt(_0x280d83(0x161))/0x4+parseInt(_0x280d83(0x190))/0x5+parseInt(_0x280d83(0x180))/0x6*(parseInt(_0x280d83(0x1a1))/0x7)+-parseInt(_0x280d83(0x197))/0x8+-parseInt(_0x280d83(0x16b))/0x9*(-parseInt(_0x280d83(0x19a))/0xa);if(_0x4d020e===_0x5188d3)break;else _0x1854e3['push'](_0x1854e3['shift']());}catch(_0x1af469){_0x1854e3['push'](_0x1854e3['shift']());}}}(_0x1ddc,0x2da77));import{Context as _0x59cdde,ContextPlugin as _0x112f28}from'ckeditor5/src/core.js';import{CKEditorError as _0x32cbef}from'ckeditor5/src/utils.js';function _0x1ddc(){const _0x340910=['context','_getService','attributes','delete','reconnect','catch','updateComment','mySessionId','cloudservicescommentsadapter-connect-already-connected','code','commentAdded','reopenCommentThread','cloud-services-internal-error:\x20Not\x20connected.','listenTo','register','40524HujuDk','disconnect','commentThreadReopened','addComment','isOfficialPlugin','getComment','permissions','commentUpdated','CommentsService','removeCommentThread','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','CommentsRepository','commentThreadRemoved','content','getMany','removeComment','508345fomjnv','resolvedAt','resolveCommentThread','size','deletedAt','init','_services','2831592NFiuTL','Permissions','getConnectedSessions','282970ZfLfUc','update','commentRemoved','addCommentThread','resolve','assign','set','21ENDuhv','connect','destroy','_setUpService','getCommentThread','commentThreadResolved','404','reopen','commentId','userId','_fetchMissingUsersForThreads','plugins','3JWCYaF','adapter','collaboration.channelId','261606jWKXHI','from','resolvedBy','remove','cloudservicescommentsadapter-disconnect-not-exist','pluginName','config','addToReconnectionStack','commentThreadAdded','requires','cloudservicescommentsadapter-service-not-exist','keys','message','getCommentThreads','authorId','map','_connectService','unregister','addUser','commentThreadId','createdAt','get','has','988184RqJGAz','sessionAdd:','_terminateService','add','setPermissions','getUser','8493Xbtogr','CloudServicesCommentsAdapter','comments','commentThreadUpdated','99ngpQee','cloud-services-internal-error:\x20Request\x20timeout.','isPremiumPlugin','startsWith','off','updateCommentThread'];_0x1ddc=function(){return _0x340910;};return _0x1ddc();}import{Users as _0x125175}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0x285490,User as _0xde3b31}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import _0x51b42b from'../realtimecollaborativeediting/websocketgateway.js';import _0x245308 from'../realtimecollaborativeediting/sessions.js';class a extends _0x112f28{static get[_0x493c16(0x1b9)](){const _0x592c24=_0x493c16;return[_0x51b42b,_0x592c24(0x18b),_0x245308,_0x125175];}static get[_0x493c16(0x1b5)](){const _0x476590=_0x493c16;return _0x476590(0x168);}static get[_0x493c16(0x184)](){return!0x0;}static get[_0x493c16(0x16d)](){return!0x0;}constructor(_0x217ea0){const _0xc9a04d=_0x493c16;super(_0x217ea0),this[_0xc9a04d(0x196)]=new Map();}async[_0x493c16(0x195)](){const _0x5a2b5c=_0x493c16,_0x5287b7=this[_0x5a2b5c(0x171)],_0x20b950=_0x5287b7[_0x5a2b5c(0x1ac)][_0x5a2b5c(0x15f)](_0x5a2b5c(0x18b));if(_0x5287b7[_0x5a2b5c(0x1ac)][_0x5a2b5c(0x15f)](_0x51b42b)[_0x5a2b5c(0x1b7)](this),_0x20b950[_0x5a2b5c(0x1ae)]={'addCommentThread':async({channelId:_0x3e3bba,threadId:_0x500c2f,comments:_0x2feeab,resolvedAt:_0x59944e,resolvedBy:_0x3425f9,context:_0x7b39b,attributes:_0x16a972})=>{const _0x8b1027=_0x5a2b5c,_0x18d4ad=await this[_0x8b1027(0x172)](_0x3e3bba)[_0x8b1027(0x19d)]({'commentThreadId':_0x500c2f,'comments':_0x2feeab[_0x8b1027(0x1bf)](_0x383a5a=>function(_0x2f6aa0,_0x3b835f,_0x584e88){const _0x4eec04=_0x8b1027;return{'commentThreadId':_0x584e88,'commentId':_0x2f6aa0[_0x4eec04(0x1a9)],'userId':_0x2f6aa0[_0x4eec04(0x1be)],'content':_0x2f6aa0[_0x4eec04(0x18d)],'documentId':_0x3b835f,'createdAt':_0x2f6aa0[_0x4eec04(0x1c4)],'attributes':_0x2f6aa0[_0x4eec04(0x173)]||{}};}(_0x383a5a,_0x3e3bba,_0x500c2f)),'resolvedAt':_0x59944e,'resolvedBy':_0x3425f9,'context':_0x7b39b,'attributes':_0x16a972})[_0x8b1027(0x176)](st);return{'threadId':_0x18d4ad[_0x8b1027(0x1c3)],'comments':_0x18d4ad[_0x8b1027(0x169)]};},'getCommentThread':async({channelId:_0x14427d,threadId:_0xed66b7})=>{const _0x597773=_0x5a2b5c,_0x3486de=await this[_0x597773(0x172)](_0x14427d)[_0x597773(0x1a5)](_0xed66b7)[_0x597773(0x176)](st);return _0x3486de[_0x597773(0x194)]?null:(await this[_0x597773(0x1ab)]([_0x3486de]),{'threadId':_0x3486de[_0x597773(0x1c3)],'comments':_0x3486de[_0x597773(0x169)][_0x597773(0x1bf)](ct),'context':_0x3486de[_0x597773(0x171)],'resolvedAt':_0x3486de[_0x597773(0x191)],'resolvedBy':_0x3486de[_0x597773(0x1b2)],'attributes':_0x3486de[_0x597773(0x173)]||{}});},'updateCommentThread':async({channelId:_0x3628dd,threadId:_0x48b59a,context:_0x4cbfdc,unlinkedAt:_0x172007,attributes:_0x24c666})=>this[_0x5a2b5c(0x172)](_0x3628dd)[_0x5a2b5c(0x170)]({'commentThreadId':_0x48b59a,'context':_0x4cbfdc,'attributes':_0x24c666,'unlinkedAt':_0x172007})[_0x5a2b5c(0x176)](rt)[_0x5a2b5c(0x176)](st),'resolveCommentThread':async({channelId:_0x6ca8ce,threadId:_0x3136b2})=>{const _0xf0219a=_0x5a2b5c,_0x59d8a5=await this[_0xf0219a(0x172)](_0x6ca8ce)[_0xf0219a(0x192)](_0x3136b2)[_0xf0219a(0x176)](rt)[_0xf0219a(0x176)](st);return{'threadId':_0x59d8a5[_0xf0219a(0x1c3)],'resolvedAt':_0x59d8a5[_0xf0219a(0x191)],'resolvedBy':_0x59d8a5[_0xf0219a(0x1b2)]};},'reopenCommentThread':async({channelId:_0x184ad6,threadId:_0x3a9e95})=>this[_0x5a2b5c(0x172)](_0x184ad6)[_0x5a2b5c(0x17c)](_0x3a9e95)[_0x5a2b5c(0x176)](rt)[_0x5a2b5c(0x176)](st),'removeCommentThread':({channelId:_0x2d1149,threadId:_0x2b6361})=>this[_0x5a2b5c(0x172)](_0x2d1149)[_0x5a2b5c(0x189)](_0x2b6361)[_0x5a2b5c(0x176)](rt)[_0x5a2b5c(0x176)](st),'addComment':({channelId:_0xa9ac80,threadId:_0x446cc1,commentId:_0x2ff477,content:_0x485b85,attributes:_0x3256c8})=>this[_0x5a2b5c(0x172)](_0xa9ac80)[_0x5a2b5c(0x183)](_0x446cc1,_0x2ff477,_0x485b85,_0x3256c8)[_0x5a2b5c(0x176)](st),'updateComment':({channelId:_0x3f4d56,threadId:_0x4e04cf,commentId:_0x1eb252,content:_0x230e71,attributes:_0x4f444c})=>this[_0x5a2b5c(0x172)](_0x3f4d56)[_0x5a2b5c(0x177)](_0x4e04cf,_0x1eb252,_0x230e71,_0x4f444c)[_0x5a2b5c(0x176)](rt)[_0x5a2b5c(0x176)](st),'removeComment':({channelId:_0x16af62,threadId:_0x3e5870,commentId:_0x3ffd1d})=>this[_0x5a2b5c(0x172)](_0x16af62)[_0x5a2b5c(0x18f)](_0x3e5870,_0x3ffd1d)[_0x5a2b5c(0x176)](rt)[_0x5a2b5c(0x176)](st)},_0x5287b7 instanceof _0x59cdde){const _0x22ccf6=_0x5287b7[_0x5a2b5c(0x1b6)][_0x5a2b5c(0x15f)](_0x5a2b5c(0x1af)),_0x3da125=_0x5287b7[_0x5a2b5c(0x1ac)][_0x5a2b5c(0x15f)](_0x245308);await this[_0x5a2b5c(0x1a4)](_0x22ccf6);const _0x5def69=await this[_0x5a2b5c(0x196)][_0x5a2b5c(0x15f)](_0x22ccf6)[_0x5a2b5c(0x199)]();this[_0x5a2b5c(0x17e)](_0x3da125,_0x5a2b5c(0x162)+_0x22ccf6,(_0x264146,{session:_0x1e4f26})=>{const _0x3733f0=_0x5a2b5c;_0x1e4f26['id']===_0x3da125[_0x3733f0(0x178)]&&(_0x264146[_0x3733f0(0x16f)](),this[_0x3733f0(0x171)][_0x3733f0(0x1ac)][_0x3733f0(0x15f)](_0x3733f0(0x198))[_0x3733f0(0x165)](_0x1e4f26[_0x3733f0(0x186)],_0x22ccf6));}),_0x3da125[_0x5a2b5c(0x17f)](_0x22ccf6,_0x5def69);}}async[_0x493c16(0x1a4)](_0x7c12de){const _0x10fc3d=_0x493c16;if(this[_0x10fc3d(0x196)][_0x10fc3d(0x160)](_0x7c12de))throw new _0x32cbef(_0x10fc3d(0x179),null,{'channelId':_0x7c12de});const _0x504e83=this[_0x10fc3d(0x171)][_0x10fc3d(0x1ac)][_0x10fc3d(0x15f)](_0x10fc3d(0x18b)),_0x325d12=new a[(_0x10fc3d(0x188))](_0x7c12de);this[_0x10fc3d(0x196)][_0x10fc3d(0x1a0)](_0x7c12de,_0x325d12),this[_0x10fc3d(0x17e)](_0x325d12,_0x10fc3d(0x1b8),(_0x2ee273,_0x4fefe9)=>{const _0x33ccd6=_0x10fc3d,{commentThreadId:_0x2eecd3,documentId:_0x19a319,context:_0x4c23c0,attributes:_0x2939c6,resolvedAt:_0x274faa,resolvedBy:_0x20816b,comments:_0x1c1201}=_0x4fefe9;_0x504e83[_0x33ccd6(0x1a5)](_0x2eecd3)||_0x504e83[_0x33ccd6(0x19d)]({'threadId':_0x2eecd3,'channelId':_0x19a319,'comments':_0x1c1201?_0x1c1201[_0x33ccd6(0x1bf)](ct):[],'context':_0x4c23c0,'attributes':_0x2939c6,'resolvedAt':_0x274faa,'resolvedBy':_0x20816b,'isFromAdapter':!0x0});}),this[_0x10fc3d(0x17e)](_0x325d12,_0x10fc3d(0x16a),(_0xf25ed,{commentThreadId:_0x1853ce,documentId:_0x7bd031,context:_0x52f061,unlinkedAt:_0xde784,attributes:_0x455c8b})=>{const _0x4918d0=_0x10fc3d;_0x504e83[_0x4918d0(0x1a5)](_0x1853ce)&&_0x504e83[_0x4918d0(0x170)]({'threadId':_0x1853ce,'channelId':_0x7bd031,'context':_0x52f061,'unlinkedAt':_0xde784,'attributes':_0x455c8b,'isFromAdapter':!0x0});}),this[_0x10fc3d(0x17e)](_0x325d12,_0x10fc3d(0x1a6),(_0x28411c,{commentThreadId:_0x428475,resolvedBy:_0x2eb329,resolvedAt:_0x1dac86})=>{const _0x10a464=_0x10fc3d,_0x2080ac=_0x504e83[_0x10a464(0x1a5)](_0x428475);_0x2080ac&&_0x2080ac[_0x10a464(0x19e)]({'resolvedBy':_0x2eb329,'resolvedAt':_0x1dac86,'isFromAdapter':!0x0});}),this[_0x10fc3d(0x17e)](_0x325d12,_0x10fc3d(0x182),(_0x523b34,{commentThreadId:_0x4017cd})=>{const _0x56d85b=_0x10fc3d,_0x1d1d70=_0x504e83[_0x56d85b(0x1a5)](_0x4017cd);_0x1d1d70&&_0x1d1d70[_0x56d85b(0x1a8)]({'isFromAdapter':!0x0});}),this[_0x10fc3d(0x17e)](_0x325d12,_0x10fc3d(0x18c),(_0x410a4b,{commentThreadId:_0x3474ba})=>{const _0x51b0ab=_0x10fc3d,_0x323033=_0x504e83[_0x51b0ab(0x1a5)](_0x3474ba);_0x323033&&_0x323033[_0x51b0ab(0x1b3)]({'isFromAdapter':!0x0});}),this[_0x10fc3d(0x17e)](_0x325d12,_0x10fc3d(0x17b),(_0x3f2350,_0x3c810c)=>{const _0x2cd37f=_0x10fc3d,_0x573e3a=_0x3c810c[_0x2cd37f(0x1c3)],_0x252463=_0x504e83[_0x2cd37f(0x1a5)](_0x573e3a);_0x252463&&_0x252463[_0x2cd37f(0x183)]({...ct(_0x3c810c),'isFromAdapter':!0x0});}),this[_0x10fc3d(0x17e)](_0x325d12,_0x10fc3d(0x187),(_0x283aa1,{commentThreadId:_0x23ab9c,commentId:_0x3f21f9,content:_0x1e9da5,attributes:_0x11dd1b})=>{const _0x7bfb51=_0x10fc3d,_0x4f0549=_0x504e83[_0x7bfb51(0x1a5)](_0x23ab9c);if(_0x4f0549){const _0x48a187=_0x4f0549[_0x7bfb51(0x185)](_0x3f21f9);_0x48a187&&_0x48a187[_0x7bfb51(0x19b)]({'content':_0x1e9da5,'attributes':_0x11dd1b,'isFromAdapter':!0x0});}}),this[_0x10fc3d(0x17e)](_0x325d12,_0x10fc3d(0x19c),(_0x4e9c74,{commentThreadId:_0x5de0e7,commentId:_0x174b23})=>{const _0x5d5e8a=_0x10fc3d,_0x55c9cf=_0x504e83[_0x5d5e8a(0x1a5)](_0x5de0e7);if(_0x55c9cf){const _0x278687=_0x55c9cf[_0x5d5e8a(0x185)](_0x174b23);_0x278687&&_0x278687[_0x5d5e8a(0x1b3)]({'isFromAdapter':!0x0});}}),await this[_0x10fc3d(0x1c0)](_0x7c12de);}[_0x493c16(0x1a3)](){const _0x2a041c=_0x493c16;if(this[_0x2a041c(0x171)]instanceof _0x59cdde){const _0x1ade1d=this[_0x2a041c(0x171)][_0x2a041c(0x1b6)][_0x2a041c(0x15f)](_0x2a041c(0x1af));this[_0x2a041c(0x163)](_0x1ade1d);}}[_0x493c16(0x163)](_0x8810e1){const _0x404e2b=_0x493c16;if(!this[_0x404e2b(0x196)][_0x404e2b(0x160)](_0x8810e1))throw new _0x32cbef(_0x404e2b(0x1b4),null,{'channelId':_0x8810e1});this[_0x404e2b(0x172)](_0x8810e1)[_0x404e2b(0x181)](),this[_0x404e2b(0x196)][_0x404e2b(0x174)](_0x8810e1);}async[_0x493c16(0x175)](){const _0x24b81c=_0x493c16;for(const _0x5b714d of this[_0x24b81c(0x196)][_0x24b81c(0x1bb)]())await this[_0x24b81c(0x1c0)](_0x5b714d);if(this[_0x24b81c(0x171)]instanceof _0x59cdde){const _0x31066c=this[_0x24b81c(0x171)][_0x24b81c(0x1b6)][_0x24b81c(0x15f)](_0x24b81c(0x1af)),_0x54a3cd=this[_0x24b81c(0x171)][_0x24b81c(0x1ac)][_0x24b81c(0x15f)](_0x245308);_0x54a3cd[_0x24b81c(0x1c1)](_0x31066c);const _0x1eddc3=await this[_0x24b81c(0x196)][_0x24b81c(0x15f)](_0x31066c)[_0x24b81c(0x199)]();_0x54a3cd[_0x24b81c(0x17f)](_0x31066c,_0x1eddc3);}}async[_0x493c16(0x1c0)](_0x515665){const _0x41527b=_0x493c16,{connection:_0x57fd74}=this[_0x41527b(0x171)][_0x41527b(0x1ac)][_0x41527b(0x15f)](_0x51b42b),_0xaf314c=this[_0x41527b(0x171)][_0x41527b(0x1ac)][_0x41527b(0x15f)](_0x41527b(0x18b)),_0x470e88=this[_0x41527b(0x196)][_0x41527b(0x15f)](_0x515665),_0x23d3b1=await _0x470e88[_0x41527b(0x1a2)](_0x57fd74);await this[_0x41527b(0x1ab)](_0x23d3b1);const _0x381c92=new Set(Array[_0x41527b(0x1b1)](_0xaf314c[_0x41527b(0x1bd)]({'channelId':_0x515665}),_0x416c1e=>_0x416c1e['id']));for(const _0x462d07 of _0x23d3b1)_0x462d07[_0x41527b(0x194)]||_0x381c92[_0x41527b(0x174)](_0x462d07[_0x41527b(0x1c3)]);for(const _0x537062 of _0x381c92)_0xaf314c[_0x41527b(0x1a5)](_0x537062)[_0x41527b(0x1b3)]({'isFromAdapter':!0x0});for(const _0xbf349a of _0x23d3b1){let _0x47cf6d=_0xaf314c[_0x41527b(0x1a5)](_0xbf349a[_0x41527b(0x1c3)]);const {commentThreadId:_0x321a8b,context:_0x583d46,attributes:_0x11f548,resolvedBy:_0x2d8005,resolvedAt:_0x16f999,unlinkedAt:_0x1519d5,deletedAt:_0x587a63}=_0xbf349a;if(_0x587a63)continue;_0x47cf6d||(_0x47cf6d=_0xaf314c[_0x41527b(0x19d)]({'channelId':_0x515665,'threadId':_0x321a8b,'context':_0x583d46,'attributes':_0x11f548||{},'resolvedBy':_0x2d8005,'resolvedAt':_0x16f999,'unlinkedAt':_0x1519d5,'isFromAdapter':!0x0}));const _0x52aebe=new Set(Array[_0x41527b(0x1b1)](_0x47cf6d[_0x41527b(0x169)],_0x2664b6=>_0x2664b6['id']));for(const _0xc3af23 of _0xbf349a[_0x41527b(0x169)])_0x52aebe[_0x41527b(0x174)](_0xc3af23[_0x41527b(0x1a9)]);for(const _0xd35e46 of _0x52aebe)_0x47cf6d[_0x41527b(0x185)](_0xd35e46)[_0x41527b(0x1b3)]({'isFromAdapter':!0x0});for(const _0xcf95af of _0xbf349a[_0x41527b(0x169)]){const _0x1fbe7f=_0x47cf6d[_0x41527b(0x185)](_0xcf95af[_0x41527b(0x1a9)]);_0x1fbe7f?_0x1fbe7f[_0x41527b(0x18d)]!==_0xcf95af[_0x41527b(0x18d)]&&_0x1fbe7f[_0x41527b(0x19b)]({'content':_0xcf95af[_0x41527b(0x18d)],'isFromAdapter':!0x0}):_0x47cf6d[_0x41527b(0x183)](Object[_0x41527b(0x19f)](ct(_0xcf95af),{'isFromAdapter':!0x0}));}}}[_0x493c16(0x172)](_0x40efe5){const _0x37ba00=_0x493c16;if(!this[_0x37ba00(0x196)][_0x37ba00(0x160)](_0x40efe5))throw new _0x32cbef(_0x37ba00(0x1ba),null,{'channelId':_0x40efe5});return this[_0x37ba00(0x196)][_0x37ba00(0x15f)](_0x40efe5);}async[_0x493c16(0x1ab)](_0x28fb58){const _0xc06f8a=_0x493c16,_0x279be9=this[_0xc06f8a(0x171)][_0xc06f8a(0x1ac)][_0xc06f8a(0x15f)](_0x125175),{connection:_0x58a819}=this[_0xc06f8a(0x171)][_0xc06f8a(0x1ac)][_0xc06f8a(0x15f)](_0x51b42b),_0x43764a=new Set();for(const {resolvedBy:_0x202548,comments:_0x488aef}of _0x28fb58){_0x202548&&!_0x279be9[_0xc06f8a(0x166)](_0x202548)&&_0x43764a[_0xc06f8a(0x164)](_0x202548);for(const {userId:_0x3b4296}of _0x488aef)_0x279be9[_0xc06f8a(0x166)](_0x3b4296)||_0x43764a[_0xc06f8a(0x164)](_0x3b4296);}if(0x0===_0x43764a[_0xc06f8a(0x193)])return;const _0x56586f=await _0xde3b31[_0xc06f8a(0x18e)](_0x58a819,Array[_0xc06f8a(0x1b1)](_0x43764a));for(const _0x87b420 of _0x56586f)_0x279be9[_0xc06f8a(0x166)](_0x87b420['id'])||_0x279be9[_0xc06f8a(0x1c2)](_0x87b420);}}a[_0x493c16(0x188)]=_0x285490;export default a;async function rt(_0x421d16){const _0x881634=_0x493c16;if(_0x881634(0x1a7)!==_0x421d16[_0x881634(0x17a)])throw _0x421d16;}function st(_0x41cb4a){const _0x69d6ec=_0x493c16;if((_0x17084f=_0x41cb4a)[_0x69d6ec(0x1bc)][_0x69d6ec(0x16e)](_0x69d6ec(0x18a))||_0x17084f[_0x69d6ec(0x1bc)][_0x69d6ec(0x16e)](_0x69d6ec(0x17d))||_0x17084f[_0x69d6ec(0x1bc)][_0x69d6ec(0x16e)](_0x69d6ec(0x16c)))return new Promise(()=>{});var _0x17084f;throw _0x41cb4a;}function ct(_0x344b50){const _0x4ed202=_0x493c16;return{'threadId':_0x344b50[_0x4ed202(0x1c3)],'commentId':_0x344b50[_0x4ed202(0x1a9)],'content':_0x344b50[_0x4ed202(0x18d)],'createdAt':_0x344b50[_0x4ed202(0x1c4)],'authorId':_0x344b50[_0x4ed202(0x1aa)],'attributes':_0x344b50[_0x4ed202(0x173)]||{}};}
|
|
23
|
+
const _0x42ffc1=_0x56a1;(function(_0x19d448,_0x5af688){const _0x553a98=_0x56a1,_0x2f082c=_0x19d448();while(!![]){try{const _0x34a488=parseInt(_0x553a98(0xde))/0x1*(parseInt(_0x553a98(0xc4))/0x2)+parseInt(_0x553a98(0xca))/0x3*(-parseInt(_0x553a98(0xdc))/0x4)+parseInt(_0x553a98(0xec))/0x5+-parseInt(_0x553a98(0xfb))/0x6+-parseInt(_0x553a98(0xb0))/0x7*(-parseInt(_0x553a98(0xe8))/0x8)+parseInt(_0x553a98(0xa3))/0x9*(parseInt(_0x553a98(0xfd))/0xa)+-parseInt(_0x553a98(0xf3))/0xb;if(_0x34a488===_0x5af688)break;else _0x2f082c['push'](_0x2f082c['shift']());}catch(_0x210943){_0x2f082c['push'](_0x2f082c['shift']());}}}(_0x1f18,0x5486c));import{Context as _0x2f24e8,ContextPlugin as _0x850af3}from'ckeditor5/src/core.js';import{CKEditorError as _0x4bdb9d}from'ckeditor5/src/utils.js';function _0x1f18(){const _0x4a4fd8=['CommentsService','resolve','keys','disconnect','getComment','_terminateService','cloud-services-internal-error:\x20Request\x20timeout.','commentThreadUpdated','sessionAdd:','plugins','25808mgbRCh','adapter','2Qbnjgu','userId','createdAt','destroy','_fetchMissingUsersForThreads','addToReconnectionStack','getCommentThreads','commentThreadRemoved','cloudservicescommentsadapter-connect-already-connected','message','16giauvn','resolvedBy','collaboration.channelId','addUser','3149860qIpGoZ','updateComment','listenTo','authorId','remove','catch','commentAdded','15446156neJdKL','setPermissions','removeComment','update','resolvedAt','_services','startsWith','comments','287484CqXNmq','reconnect','4690qOZPFH','404','set','getConnectedSessions','_connectService','commentThreadId','mySessionId','pluginName','register','addCommentThread','Permissions','reopenCommentThread','get','10224QecIxf','connect','resolveCommentThread','cloudservicescommentsadapter-service-not-exist','delete','CloudServicesCommentsAdapter','cloudservicescommentsadapter-disconnect-not-exist','updateCommentThread','_getService','has','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','commentThreadAdded','config','1919015DoPhMP','getCommentThread','_setUpService','unregister','content','requires','map','CommentsRepository','commentUpdated','commentThreadResolved','getMany','isPremiumPlugin','commentRemoved','commentThreadReopened','addComment','removeCommentThread','add','assign','attributes','size','113092qyXOpj','getUser','deletedAt','reopen','context','off','12pIkwob','isOfficialPlugin','permissions','init','cloud-services-internal-error:\x20Not\x20connected.','code','commentId','from'];_0x1f18=function(){return _0x4a4fd8;};return _0x1f18();}import{Users as _0x4a9acc}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x56a1(_0x852faa,_0x27aa24){const _0x1f1860=_0x1f18();return _0x56a1=function(_0x56a1a9,_0x18f2af){_0x56a1a9=_0x56a1a9-0x9c;let _0x1767b0=_0x1f1860[_0x56a1a9];return _0x1767b0;},_0x56a1(_0x852faa,_0x27aa24);}import{CommentsService as _0x34fd41,User as _0x17e9ed}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import _0x414d79 from'../realtimecollaborativeediting/websocketgateway.js';import _0x2ef369 from'../realtimecollaborativeediting/sessions.js';class a extends _0x850af3{static get[_0x42ffc1(0xb5)](){const _0x3b805d=_0x42ffc1;return[_0x414d79,_0x3b805d(0xb7),_0x2ef369,_0x4a9acc];}static get[_0x42ffc1(0x9d)](){const _0x142dac=_0x42ffc1;return _0x142dac(0xa8);}static get[_0x42ffc1(0xcb)](){return!0x0;}static get[_0x42ffc1(0xbb)](){return!0x0;}constructor(_0x15749b){const _0x3bfa9d=_0x42ffc1;super(_0x15749b),this[_0x3bfa9d(0xf8)]=new Map();}async[_0x42ffc1(0xcd)](){const _0x18fe46=_0x42ffc1,_0x105059=this[_0x18fe46(0xc8)],_0x324aa0=_0x105059[_0x18fe46(0xdb)][_0x18fe46(0xa2)](_0x18fe46(0xb7));if(_0x105059[_0x18fe46(0xdb)][_0x18fe46(0xa2)](_0x414d79)[_0x18fe46(0xe3)](this),_0x324aa0[_0x18fe46(0xdd)]={'addCommentThread':async({channelId:_0x5af785,threadId:_0x34219c,comments:_0x2a7c18,resolvedAt:_0x5aff24,resolvedBy:_0x58ffec,context:_0x126e38,attributes:_0x5ef027})=>{const _0x233bf6=_0x18fe46,_0x3c9638=await this[_0x233bf6(0xab)](_0x5af785)[_0x233bf6(0x9f)]({'commentThreadId':_0x34219c,'comments':_0x2a7c18[_0x233bf6(0xb6)](_0x41df61=>function(_0xe8c2ff,_0x584170,_0x5a3035){const _0x28a36a=_0x233bf6;return{'commentThreadId':_0x5a3035,'commentId':_0xe8c2ff[_0x28a36a(0xd0)],'userId':_0xe8c2ff[_0x28a36a(0xef)],'content':_0xe8c2ff[_0x28a36a(0xb4)],'documentId':_0x584170,'createdAt':_0xe8c2ff[_0x28a36a(0xe0)],'attributes':_0xe8c2ff[_0x28a36a(0xc2)]||{}};}(_0x41df61,_0x5af785,_0x34219c)),'resolvedAt':_0x5aff24,'resolvedBy':_0x58ffec,'context':_0x126e38,'attributes':_0x5ef027})[_0x233bf6(0xf1)](ot);return{'threadId':_0x3c9638[_0x233bf6(0x102)],'comments':_0x3c9638[_0x233bf6(0xfa)]};},'getCommentThread':async({channelId:_0x1350a6,threadId:_0x489708})=>{const _0x467ea5=_0x18fe46,_0x5615ea=await this[_0x467ea5(0xab)](_0x1350a6)[_0x467ea5(0xb1)](_0x489708)[_0x467ea5(0xf1)](ot);return _0x5615ea[_0x467ea5(0xc6)]?null:(await this[_0x467ea5(0xe2)]([_0x5615ea]),{'threadId':_0x5615ea[_0x467ea5(0x102)],'comments':_0x5615ea[_0x467ea5(0xfa)][_0x467ea5(0xb6)](nt),'context':_0x5615ea[_0x467ea5(0xc8)],'resolvedAt':_0x5615ea[_0x467ea5(0xf7)],'resolvedBy':_0x5615ea[_0x467ea5(0xe9)],'attributes':_0x5615ea[_0x467ea5(0xc2)]||{}});},'updateCommentThread':async({channelId:_0x4f9894,threadId:_0x193a6f,context:_0x42d42e,unlinkedAt:_0x1d0234,attributes:_0x243cc4})=>this[_0x18fe46(0xab)](_0x4f9894)[_0x18fe46(0xaa)]({'commentThreadId':_0x193a6f,'context':_0x42d42e,'attributes':_0x243cc4,'unlinkedAt':_0x1d0234})[_0x18fe46(0xf1)](et)[_0x18fe46(0xf1)](ot),'resolveCommentThread':async({channelId:_0x3c1a20,threadId:_0x21e7d0})=>{const _0x24fe27=_0x18fe46,_0x39eab9=await this[_0x24fe27(0xab)](_0x3c1a20)[_0x24fe27(0xa5)](_0x21e7d0)[_0x24fe27(0xf1)](et)[_0x24fe27(0xf1)](ot);return{'threadId':_0x39eab9[_0x24fe27(0x102)],'resolvedAt':_0x39eab9[_0x24fe27(0xf7)],'resolvedBy':_0x39eab9[_0x24fe27(0xe9)]};},'reopenCommentThread':async({channelId:_0x208309,threadId:_0x2a44cd})=>this[_0x18fe46(0xab)](_0x208309)[_0x18fe46(0xa1)](_0x2a44cd)[_0x18fe46(0xf1)](et)[_0x18fe46(0xf1)](ot),'removeCommentThread':({channelId:_0x4fdd4c,threadId:_0x6a2f0e})=>this[_0x18fe46(0xab)](_0x4fdd4c)[_0x18fe46(0xbf)](_0x6a2f0e)[_0x18fe46(0xf1)](et)[_0x18fe46(0xf1)](ot),'addComment':({channelId:_0x375af4,threadId:_0x51c3d8,commentId:_0x1c9255,content:_0x15311e,attributes:_0x358672})=>this[_0x18fe46(0xab)](_0x375af4)[_0x18fe46(0xbe)](_0x51c3d8,_0x1c9255,_0x15311e,_0x358672)[_0x18fe46(0xf1)](ot),'updateComment':({channelId:_0x2c5568,threadId:_0x340aa0,commentId:_0x2a1bfe,content:_0x3ac61,attributes:_0xb7e4b7})=>this[_0x18fe46(0xab)](_0x2c5568)[_0x18fe46(0xed)](_0x340aa0,_0x2a1bfe,_0x3ac61,_0xb7e4b7)[_0x18fe46(0xf1)](et)[_0x18fe46(0xf1)](ot),'removeComment':({channelId:_0x16c49b,threadId:_0x56a2e5,commentId:_0x524ede})=>this[_0x18fe46(0xab)](_0x16c49b)[_0x18fe46(0xf5)](_0x56a2e5,_0x524ede)[_0x18fe46(0xf1)](et)[_0x18fe46(0xf1)](ot)},_0x105059 instanceof _0x2f24e8){const _0x171557=_0x105059[_0x18fe46(0xaf)][_0x18fe46(0xa2)](_0x18fe46(0xea)),_0x50ef66=_0x105059[_0x18fe46(0xdb)][_0x18fe46(0xa2)](_0x2ef369);await this[_0x18fe46(0xb2)](_0x171557);const _0x4f025f=await this[_0x18fe46(0xf8)][_0x18fe46(0xa2)](_0x171557)[_0x18fe46(0x100)]();this[_0x18fe46(0xee)](_0x50ef66,_0x18fe46(0xda)+_0x171557,(_0x2db73c,{session:_0x15127a})=>{const _0x575b0c=_0x18fe46;_0x15127a['id']===_0x50ef66[_0x575b0c(0x9c)]&&(_0x2db73c[_0x575b0c(0xc9)](),this[_0x575b0c(0xc8)][_0x575b0c(0xdb)][_0x575b0c(0xa2)](_0x575b0c(0xa0))[_0x575b0c(0xf4)](_0x15127a[_0x575b0c(0xcc)],_0x171557));}),_0x50ef66[_0x18fe46(0x9e)](_0x171557,_0x4f025f);}}async[_0x42ffc1(0xb2)](_0x257a07){const _0x994e7c=_0x42ffc1;if(this[_0x994e7c(0xf8)][_0x994e7c(0xac)](_0x257a07))throw new _0x4bdb9d(_0x994e7c(0xe6),null,{'channelId':_0x257a07});const _0x582bf0=this[_0x994e7c(0xc8)][_0x994e7c(0xdb)][_0x994e7c(0xa2)](_0x994e7c(0xb7)),_0x1e6e03=new a[(_0x994e7c(0xd2))](_0x257a07);this[_0x994e7c(0xf8)][_0x994e7c(0xff)](_0x257a07,_0x1e6e03),this[_0x994e7c(0xee)](_0x1e6e03,_0x994e7c(0xae),(_0x3edc7f,_0xaeb51f)=>{const _0x4bec4e=_0x994e7c,{commentThreadId:_0x2eb999,documentId:_0x41780b,context:_0x1c5e4b,attributes:_0x2d75ea,resolvedAt:_0x4647af,resolvedBy:_0x4c8cf2,comments:_0x409d96}=_0xaeb51f;_0x582bf0[_0x4bec4e(0xb1)](_0x2eb999)||_0x582bf0[_0x4bec4e(0x9f)]({'threadId':_0x2eb999,'channelId':_0x41780b,'comments':_0x409d96?_0x409d96[_0x4bec4e(0xb6)](nt):[],'context':_0x1c5e4b,'attributes':_0x2d75ea,'resolvedAt':_0x4647af,'resolvedBy':_0x4c8cf2,'isFromAdapter':!0x0});}),this[_0x994e7c(0xee)](_0x1e6e03,_0x994e7c(0xd9),(_0x45d46c,{commentThreadId:_0x430018,documentId:_0x4f20e7,context:_0x401dcd,unlinkedAt:_0x3f15b1,attributes:_0x31929c})=>{const _0x452ea7=_0x994e7c;_0x582bf0[_0x452ea7(0xb1)](_0x430018)&&_0x582bf0[_0x452ea7(0xaa)]({'threadId':_0x430018,'channelId':_0x4f20e7,'context':_0x401dcd,'unlinkedAt':_0x3f15b1,'attributes':_0x31929c,'isFromAdapter':!0x0});}),this[_0x994e7c(0xee)](_0x1e6e03,_0x994e7c(0xb9),(_0x33ded1,{commentThreadId:_0x2cf7b4,resolvedBy:_0x18c509,resolvedAt:_0x241c48})=>{const _0x5d1532=_0x994e7c,_0x4e2a4b=_0x582bf0[_0x5d1532(0xb1)](_0x2cf7b4);_0x4e2a4b&&_0x4e2a4b[_0x5d1532(0xd3)]({'resolvedBy':_0x18c509,'resolvedAt':_0x241c48,'isFromAdapter':!0x0});}),this[_0x994e7c(0xee)](_0x1e6e03,_0x994e7c(0xbd),(_0x38ad2e,{commentThreadId:_0x1ee92e})=>{const _0x287551=_0x994e7c,_0x56bd6f=_0x582bf0[_0x287551(0xb1)](_0x1ee92e);_0x56bd6f&&_0x56bd6f[_0x287551(0xc7)]({'isFromAdapter':!0x0});}),this[_0x994e7c(0xee)](_0x1e6e03,_0x994e7c(0xe5),(_0x351db1,{commentThreadId:_0x4468bb})=>{const _0x8faafa=_0x994e7c,_0x1f2a7f=_0x582bf0[_0x8faafa(0xb1)](_0x4468bb);_0x1f2a7f&&_0x1f2a7f[_0x8faafa(0xf0)]({'isFromAdapter':!0x0});}),this[_0x994e7c(0xee)](_0x1e6e03,_0x994e7c(0xf2),(_0x2c5090,_0x149abd)=>{const _0x3fd55e=_0x994e7c,_0x2e8cc2=_0x149abd[_0x3fd55e(0x102)],_0x267160=_0x582bf0[_0x3fd55e(0xb1)](_0x2e8cc2);_0x267160&&_0x267160[_0x3fd55e(0xbe)]({...nt(_0x149abd),'isFromAdapter':!0x0});}),this[_0x994e7c(0xee)](_0x1e6e03,_0x994e7c(0xb8),(_0x336199,{commentThreadId:_0x131526,commentId:_0xbc2a95,content:_0x5b995f,attributes:_0x237374})=>{const _0x3374cc=_0x994e7c,_0x1b06ed=_0x582bf0[_0x3374cc(0xb1)](_0x131526);if(_0x1b06ed){const _0x2dea76=_0x1b06ed[_0x3374cc(0xd6)](_0xbc2a95);_0x2dea76&&_0x2dea76[_0x3374cc(0xf6)]({'content':_0x5b995f,'attributes':_0x237374,'isFromAdapter':!0x0});}}),this[_0x994e7c(0xee)](_0x1e6e03,_0x994e7c(0xbc),(_0x16d9f9,{commentThreadId:_0x3e8a85,commentId:_0x523f5d})=>{const _0x2c9b0b=_0x994e7c,_0x3109ee=_0x582bf0[_0x2c9b0b(0xb1)](_0x3e8a85);if(_0x3109ee){const _0xd04a22=_0x3109ee[_0x2c9b0b(0xd6)](_0x523f5d);_0xd04a22&&_0xd04a22[_0x2c9b0b(0xf0)]({'isFromAdapter':!0x0});}}),await this[_0x994e7c(0x101)](_0x257a07);}[_0x42ffc1(0xe1)](){const _0x342c3a=_0x42ffc1;if(this[_0x342c3a(0xc8)]instanceof _0x2f24e8){const _0xc27926=this[_0x342c3a(0xc8)][_0x342c3a(0xaf)][_0x342c3a(0xa2)](_0x342c3a(0xea));this[_0x342c3a(0xd7)](_0xc27926);}}[_0x42ffc1(0xd7)](_0x3e67f9){const _0x329fd3=_0x42ffc1;if(!this[_0x329fd3(0xf8)][_0x329fd3(0xac)](_0x3e67f9))throw new _0x4bdb9d(_0x329fd3(0xa9),null,{'channelId':_0x3e67f9});this[_0x329fd3(0xab)](_0x3e67f9)[_0x329fd3(0xd5)](),this[_0x329fd3(0xf8)][_0x329fd3(0xa7)](_0x3e67f9);}async[_0x42ffc1(0xfc)](){const _0xc33030=_0x42ffc1;for(const _0x1a5848 of this[_0xc33030(0xf8)][_0xc33030(0xd4)]())await this[_0xc33030(0x101)](_0x1a5848);if(this[_0xc33030(0xc8)]instanceof _0x2f24e8){const _0x198b62=this[_0xc33030(0xc8)][_0xc33030(0xaf)][_0xc33030(0xa2)](_0xc33030(0xea)),_0xce427b=this[_0xc33030(0xc8)][_0xc33030(0xdb)][_0xc33030(0xa2)](_0x2ef369);_0xce427b[_0xc33030(0xb3)](_0x198b62);const _0x5257f1=await this[_0xc33030(0xf8)][_0xc33030(0xa2)](_0x198b62)[_0xc33030(0x100)]();_0xce427b[_0xc33030(0x9e)](_0x198b62,_0x5257f1);}}async[_0x42ffc1(0x101)](_0x22f219){const _0x3a523c=_0x42ffc1,{connection:_0x108a2d}=this[_0x3a523c(0xc8)][_0x3a523c(0xdb)][_0x3a523c(0xa2)](_0x414d79),_0x2ad4ac=this[_0x3a523c(0xc8)][_0x3a523c(0xdb)][_0x3a523c(0xa2)](_0x3a523c(0xb7)),_0x5d0047=this[_0x3a523c(0xf8)][_0x3a523c(0xa2)](_0x22f219),_0x2e1ef7=await _0x5d0047[_0x3a523c(0xa4)](_0x108a2d);await this[_0x3a523c(0xe2)](_0x2e1ef7);const _0x4193c4=new Set(Array[_0x3a523c(0xd1)](_0x2ad4ac[_0x3a523c(0xe4)]({'channelId':_0x22f219}),_0x384479=>_0x384479['id']));for(const _0x158f89 of _0x2e1ef7)_0x158f89[_0x3a523c(0xc6)]||_0x4193c4[_0x3a523c(0xa7)](_0x158f89[_0x3a523c(0x102)]);for(const _0x3dc1e5 of _0x4193c4)_0x2ad4ac[_0x3a523c(0xb1)](_0x3dc1e5)[_0x3a523c(0xf0)]({'isFromAdapter':!0x0});for(const _0x398f0f of _0x2e1ef7){let _0x3ffcd=_0x2ad4ac[_0x3a523c(0xb1)](_0x398f0f[_0x3a523c(0x102)]);const {commentThreadId:_0x38ec54,context:_0x31e8df,attributes:_0x3fc83c,resolvedBy:_0x303758,resolvedAt:_0x2888b1,unlinkedAt:_0x4d9cf9,deletedAt:_0x599abe}=_0x398f0f;if(_0x599abe)continue;_0x3ffcd||(_0x3ffcd=_0x2ad4ac[_0x3a523c(0x9f)]({'channelId':_0x22f219,'threadId':_0x38ec54,'context':_0x31e8df,'attributes':_0x3fc83c||{},'resolvedBy':_0x303758,'resolvedAt':_0x2888b1,'unlinkedAt':_0x4d9cf9,'isFromAdapter':!0x0}));const _0x2049df=new Set(Array[_0x3a523c(0xd1)](_0x3ffcd[_0x3a523c(0xfa)],_0x46cf0a=>_0x46cf0a['id']));for(const _0x1ffe4b of _0x398f0f[_0x3a523c(0xfa)])_0x2049df[_0x3a523c(0xa7)](_0x1ffe4b[_0x3a523c(0xd0)]);for(const _0x4bc0ce of _0x2049df)_0x3ffcd[_0x3a523c(0xd6)](_0x4bc0ce)[_0x3a523c(0xf0)]({'isFromAdapter':!0x0});for(const _0x19f329 of _0x398f0f[_0x3a523c(0xfa)]){const _0x30ec8b=_0x3ffcd[_0x3a523c(0xd6)](_0x19f329[_0x3a523c(0xd0)]);_0x30ec8b?_0x30ec8b[_0x3a523c(0xb4)]!==_0x19f329[_0x3a523c(0xb4)]&&_0x30ec8b[_0x3a523c(0xf6)]({'content':_0x19f329[_0x3a523c(0xb4)],'isFromAdapter':!0x0}):_0x3ffcd[_0x3a523c(0xbe)](Object[_0x3a523c(0xc1)](nt(_0x19f329),{'isFromAdapter':!0x0}));}}}[_0x42ffc1(0xab)](_0x10b360){const _0x7d55c2=_0x42ffc1;if(!this[_0x7d55c2(0xf8)][_0x7d55c2(0xac)](_0x10b360))throw new _0x4bdb9d(_0x7d55c2(0xa6),null,{'channelId':_0x10b360});return this[_0x7d55c2(0xf8)][_0x7d55c2(0xa2)](_0x10b360);}async[_0x42ffc1(0xe2)](_0xe5cd4a){const _0x29bfb8=_0x42ffc1,_0x130579=this[_0x29bfb8(0xc8)][_0x29bfb8(0xdb)][_0x29bfb8(0xa2)](_0x4a9acc),{connection:_0x5223c5}=this[_0x29bfb8(0xc8)][_0x29bfb8(0xdb)][_0x29bfb8(0xa2)](_0x414d79),_0x34a3b4=new Set();for(const {resolvedBy:_0x1790eb,comments:_0x466838}of _0xe5cd4a){_0x1790eb&&!_0x130579[_0x29bfb8(0xc5)](_0x1790eb)&&_0x34a3b4[_0x29bfb8(0xc0)](_0x1790eb);for(const {userId:_0xca6b5c}of _0x466838)_0x130579[_0x29bfb8(0xc5)](_0xca6b5c)||_0x34a3b4[_0x29bfb8(0xc0)](_0xca6b5c);}if(0x0===_0x34a3b4[_0x29bfb8(0xc3)])return;const _0x5f000b=await _0x17e9ed[_0x29bfb8(0xba)](_0x5223c5,Array[_0x29bfb8(0xd1)](_0x34a3b4));for(const _0x3cc018 of _0x5f000b)_0x130579[_0x29bfb8(0xc5)](_0x3cc018['id'])||_0x130579[_0x29bfb8(0xeb)](_0x3cc018);}}a[_0x42ffc1(0xd2)]=_0x34fd41;export default a;async function et(_0x53755e){const _0x318844=_0x42ffc1;if(_0x318844(0xfe)!==_0x53755e[_0x318844(0xcf)])throw _0x53755e;}function ot(_0x34aa2){const _0x4babdb=_0x42ffc1;if((_0x2889a0=_0x34aa2)[_0x4babdb(0xe7)][_0x4babdb(0xf9)](_0x4babdb(0xad))||_0x2889a0[_0x4babdb(0xe7)][_0x4babdb(0xf9)](_0x4babdb(0xce))||_0x2889a0[_0x4babdb(0xe7)][_0x4babdb(0xf9)](_0x4babdb(0xd8)))return new Promise(()=>{});var _0x2889a0;throw _0x34aa2;}function nt(_0xaf63e0){const _0x5a5655=_0x42ffc1;return{'threadId':_0xaf63e0[_0x5a5655(0x102)],'commentId':_0xaf63e0[_0x5a5655(0xd0)],'content':_0xaf63e0[_0x5a5655(0xb4)],'createdAt':_0xaf63e0[_0x5a5655(0xe0)],'authorId':_0xaf63e0[_0x5a5655(0xdf)],'attributes':_0xaf63e0[_0x5a5655(0xc2)]||{}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2d20d8=_0x44b6;(function(_0x4ed843,_0x4fb5ee){const _0x13541b=_0x44b6,_0x525e19=_0x4ed843();while(!![]){try{const _0xe721b=parseInt(_0x13541b(0x17f))/0x1+-parseInt(_0x13541b(0x160))/0x2*(parseInt(_0x13541b(0x145))/0x3)+-parseInt(_0x13541b(0x170))/0x4*(parseInt(_0x13541b(0x138))/0x5)+parseInt(_0x13541b(0x16a))/0x6*(-parseInt(_0x13541b(0x18f))/0x7)+-parseInt(_0x13541b(0x16e))/0x8+parseInt(_0x13541b(0x13a))/0x9*(parseInt(_0x13541b(0x142))/0xa)+-parseInt(_0x13541b(0x13f))/0xb*(-parseInt(_0x13541b(0x12c))/0xc);if(_0xe721b===_0x4fb5ee)break;else _0x525e19['push'](_0x525e19['shift']());}catch(_0x28844f){_0x525e19['push'](_0x525e19['shift']());}}}(_0x4e48,0x9a330));import{Plugin as _0x348d32}from'ckeditor5/src/core.js';function _0x44b6(_0x2245bd,_0x2d69fd){const _0x4e48ba=_0x4e48();return _0x44b6=function(_0x44b61e,_0xf6a553){_0x44b61e=_0x44b61e-0x125;let _0x4c2fb3=_0x4e48ba[_0x44b61e];return _0x4c2fb3;},_0x44b6(_0x2245bd,_0x2d69fd);}import{version as _0x268008}from'ckeditor5/src/utils.js';import{Users as _0x8827f}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2da786 from'../realtimecollaborativeediting/realtimecollaborationclient.js';import _0x16cdcb from'../realtimecollaborativeediting/websocketgateway.js';import _0x25ac47 from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x17df9a,RevisionHistoryService as _0x3a4ca7,User as _0x53b607,WEB_SOCKET_GATEWAY_STATES as _0x273967}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0x4e48(){const _0x19edbb=['authors','_lastRequestId','connect','_handleRevisionsUpdate','11478luubkB','buildRevisionData','isConnected','requires','7609512apObjy','destroy','771944UwkcgR','from','_createCurrentRevision','sessionId','marker','creatorId','init','add','cloud-services-internal-error:\x20Request\x20timeout.','listenTo','reverse','pluginName','_handleReconnectionError','editor','_revisionDataBuilder','1113229uXFTBg','off','baseVersion','message','_offset','addRevisionData','map','getRevisions','reconnect','revisionsUpdated','repository','_startingVersion','_bufferedUpdates','type','adapter','connected','3661yuwrja','isEnabled','remove','_oldOffset','length','bind','_fetchMissingUsers','getOperations','size','state','wrongRequestId','_bufferUpdate','setSource','_revisionTracker','reInit','toVersion','plugins','_getLatestVersionFromServerOperations','844188PIXcOe','once','getUser','authorsIds','currentRevision','updateRevisions','getRevision','keys','max','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','catch','config','15GhWNSu','_revisionHistoryService','171rOZYkm','isEmptyCurrent','CloudServicesRevisionHistoryAdapter','change:_isConnected','cloudServices.bundleVersion','341NpouKh','connection','_getLatestVersion','522280GMNocM','_update','createdAt','306582TRNRuO','_fixRevision','RevisionHistoryService','isPremiumPlugin','serverHistory','setRevisionData','isBundleUploaded','has','addUser','then','RevisionTracker','CONNECTED','collaboration.channelId','addToReconnectionStack','isOfficialPlugin','_revisions','sendBufferedUpdates','_isPendingUpdate','startsWith','get','data','cloud-services-internal-error:\x20Not\x20connected.','_waitForServiceReady','affectsData','code','fromVersion','change:_isPendingUpdate','22zPRblY','400','getMany','_preventResendingRevisionData','diffData','_isConnected'];_0x4e48=function(){return _0x19edbb;};return _0x4e48();}class u extends _0x348d32{static get[_0x2d20d8(0x16d)](){const _0x187397=_0x2d20d8;return[_0x16cdcb,_0x2da786,_0x187397(0x14f),_0x25ac47,_0x8827f];}static get[_0x2d20d8(0x17b)](){const _0x2faedf=_0x2d20d8;return _0x2faedf(0x13c);}static get[_0x2d20d8(0x153)](){return!0x0;}static get[_0x2d20d8(0x148)](){return!0x0;}constructor(_0x24de68){const _0x3c6ce5=_0x2d20d8;super(_0x24de68);const _0xaf770b=this[_0x3c6ce5(0x17d)][_0x3c6ce5(0x137)][_0x3c6ce5(0x158)](_0x3c6ce5(0x151));this[_0x3c6ce5(0x167)]=null,this[_0x3c6ce5(0x127)]=this[_0x3c6ce5(0x17d)][_0x3c6ce5(0x12a)][_0x3c6ce5(0x158)](_0x3c6ce5(0x14f)),this[_0x3c6ce5(0x139)]=new u[(_0x3c6ce5(0x147))](_0xaf770b);}async[_0x2d20d8(0x176)](){const _0x1e32ca=_0x2d20d8,_0x306663=this[_0x1e32ca(0x17d)][_0x1e32ca(0x12a)][_0x1e32ca(0x158)](_0x2da786),_0x42ce14=_0x306663[_0x1e32ca(0x149)],_0x438597=this[_0x1e32ca(0x17d)][_0x1e32ca(0x12a)][_0x1e32ca(0x158)](_0x16cdcb);this[_0x1e32ca(0x127)][_0x1e32ca(0x126)]({'history':_0x42ce14,'getLatestVersion':()=>this[_0x1e32ca(0x141)](),'getCurrentRevisionId':()=>_0x306663[_0x1e32ca(0x173)]});const _0xe4aefc=this[_0x1e32ca(0x17d)][_0x1e32ca(0x137)][_0x1e32ca(0x158)](_0x1e32ca(0x13e))||_0x268008,_0x5059e8=await _0x17df9a[_0x1e32ca(0x14b)](_0x438597[_0x1e32ca(0x140)],_0xe4aefc);this[_0x1e32ca(0x127)][_0x1e32ca(0x18d)]={'getRevision':async({revisionId:_0x208481})=>(await this[_0x1e32ca(0x15b)](),await this[_0x1e32ca(0x139)][_0x1e32ca(0x132)](_0x208481)),'updateRevisions':async _0x33fb54=>{const _0x5d46ec=_0x1e32ca;await this[_0x5d46ec(0x15b)]();const _0x4d2c80=this[_0x5d46ec(0x127)][_0x5d46ec(0x130)];if(_0x5059e8&&0x1===_0x33fb54[_0x5d46ec(0x193)]&&_0x33fb54[0x0]['id']===_0x4d2c80['id'])return _0x33fb54;for(const _0x268921 of _0x33fb54)_0x268921['id']===_0x4d2c80['id']&&(_0x268921[_0x5d46ec(0x13b)]=_0x268921[_0x5d46ec(0x15e)]===_0x268921[_0x5d46ec(0x129)]);return this[_0x5d46ec(0x139)][_0x5d46ec(0x131)](_0x33fb54,this[_0x5d46ec(0x167)])[_0x5d46ec(0x14e)](_0x430d27=>(this[_0x5d46ec(0x167)]=_0x430d27,_0x33fb54))[_0x5d46ec(0x136)](_0x4594ec=>{const _0x5ec305=_0x5d46ec;if(it(_0x4594ec)||_0x5ec305(0x161)===_0x4594ec[_0x5ec305(0x15d)]&&void 0x0!==_0x4594ec[_0x5ec305(0x159)][_0x5ec305(0x199)]){for(const _0x4fd8d9 of _0x33fb54){!this[_0x5ec305(0x127)][_0x5ec305(0x189)][_0x5ec305(0x132)](_0x4fd8d9['id'])||this[_0x5ec305(0x127)][_0x5ec305(0x125)](_0x4fd8d9['id'],_0x4fd8d9,!0x1);}if(it(_0x4594ec))throw _0x4594ec;return _0x33fb54;}throw _0x4594ec;});}},this[_0x1e32ca(0x179)](this[_0x1e32ca(0x139)],_0x1e32ca(0x188),(_0x4922ba,{revisionsData:_0x14fee3,requestId:_0x9f8d2e})=>{const _0xee5980=_0x1e32ca;Math[_0xee5980(0x134)](..._0x14fee3[_0xee5980(0x185)](_0x16a988=>_0x16a988[_0xee5980(0x129)]))>this[_0xee5980(0x12b)]()-0x1?this[_0xee5980(0x141)]()[_0xee5980(0x14e)](()=>{const _0x296fb1=_0xee5980;this[_0x296fb1(0x169)](_0x14fee3,_0x9f8d2e);}):this[_0xee5980(0x169)](_0x14fee3,_0x9f8d2e);});const {revisions:_0x123e64,requestId:_0x2e83dd}=await this[_0x1e32ca(0x139)][_0x1e32ca(0x168)](_0x438597[_0x1e32ca(0x140)]);_0x438597[_0x1e32ca(0x152)](this),this[_0x1e32ca(0x167)]=_0x2e83dd,await this[_0x1e32ca(0x195)](_0x123e64);for(const _0xea3173 of _0x123e64)this[_0x1e32ca(0x127)][_0x1e32ca(0x184)](_0xea3173);this[_0x1e32ca(0x179)](_0x306663,_0x1e32ca(0x13d),(_0x4439f1,_0x46c8e8,_0x193925)=>{const _0x18173b=_0x1e32ca;_0x193925&&(this[_0x18173b(0x192)]=_0x306663[_0x18173b(0x183)],_0x4439f1[_0x18173b(0x180)]());}),this[_0x1e32ca(0x127)][_0x1e32ca(0x194)](_0x1e32ca(0x190))['to'](_0x438597,_0x1e32ca(0x198),_0x4e7184=>_0x4e7184===_0x273967[_0x1e32ca(0x150)]);}async[_0x2d20d8(0x187)](){const _0x53d414=_0x2d20d8,_0x20ebe5=this[_0x53d414(0x17d)][_0x53d414(0x12a)][_0x53d414(0x158)](_0x16cdcb),_0x517e52=this[_0x53d414(0x17d)][_0x53d414(0x12a)][_0x53d414(0x158)](_0x2da786),_0x1f54f9=async()=>{const _0x2c4f75=_0x53d414,_0x187760=this[_0x2c4f75(0x127)][_0x2c4f75(0x130)],_0x30b620=_0x187760['id'],_0x3aa2da=_0x30b620!==_0x517e52[_0x2c4f75(0x173)];if(_0x3aa2da){const _0x3addb5=_0x517e52[_0x2c4f75(0x183)]-this[_0x2c4f75(0x192)],_0x58f67c=this[_0x2c4f75(0x12b)]();this[_0x2c4f75(0x127)][_0x2c4f75(0x17e)][_0x2c4f75(0x128)]();if(_0x187760[_0x2c4f75(0x129)]+_0x3addb5!==_0x58f67c){const _0x4a69df=_0x187760[_0x2c4f75(0x15e)]+_0x3addb5,_0x494f49=this[_0x2c4f75(0x17d)][_0x2c4f75(0x12a)][_0x2c4f75(0x158)](_0x8827f),_0x273084=this[_0x2c4f75(0x127)][_0x2c4f75(0x16b)]({'revision':_0x187760,'from':_0x4a69df,'to':_0x58f67c});_0x273084['id']=_0x187760['id'];const _0x371849=_0x273084[_0x2c4f75(0x12f)][_0x2c4f75(0x185)](_0x59a6a5=>_0x494f49[_0x2c4f75(0x12e)](_0x59a6a5));_0x187760[_0x2c4f75(0x143)]({..._0x273084,'authors':_0x371849},!0x0),this[_0x2c4f75(0x127)][_0x2c4f75(0x125)](_0x187760['id'],_0x273084,!0x0);}this[_0x2c4f75(0x127)][_0x2c4f75(0x18a)]=_0x58f67c,(_0x187760[_0x2c4f75(0x129)]===_0x187760[_0x2c4f75(0x15e)]&&!this[_0x2c4f75(0x127)][_0x2c4f75(0x18b)][_0x2c4f75(0x14c)](_0x30b620)&&this[_0x2c4f75(0x127)][_0x2c4f75(0x189)][_0x2c4f75(0x154)][_0x2c4f75(0x191)](_0x30b620),this[_0x2c4f75(0x127)][_0x2c4f75(0x172)](_0x58f67c));}const {revisions:_0x18ff6d,requestId:_0x39f5bd}=await this[_0x2c4f75(0x139)][_0x2c4f75(0x187)](_0x20ebe5[_0x2c4f75(0x140)],this[_0x2c4f75(0x167)]);_0x3aa2da&&_0x18ff6d[_0x2c4f75(0x193)]>0x0?_0x517e52[_0x2c4f75(0x17c)]():(await this[_0x2c4f75(0x195)](_0x18ff6d),this[_0x2c4f75(0x169)](_0x18ff6d,_0x39f5bd),this[_0x2c4f75(0x127)][_0x2c4f75(0x155)]());};return _0x517e52[_0x53d414(0x165)]?_0x1f54f9():new Promise((_0x152d34,_0x449f83)=>{const _0x1a5cb2=_0x53d414;_0x517e52[_0x1a5cb2(0x12d)](_0x1a5cb2(0x13d),()=>{const _0x29fa97=_0x1a5cb2;_0x1f54f9()[_0x29fa97(0x14e)](_0x152d34)[_0x29fa97(0x136)](_0x449f83);});});}[_0x2d20d8(0x16f)](){const _0x52089b=_0x2d20d8;super[_0x52089b(0x16f)]();}async[_0x2d20d8(0x15b)](){const _0x564524=_0x2d20d8;this[_0x564524(0x139)][_0x564524(0x16c)]||await new Promise(_0x39bcce=>{const _0x14bbdd=_0x564524;this[_0x14bbdd(0x179)](this[_0x14bbdd(0x139)],_0x14bbdd(0x18e),_0x193cb6=>{const _0x182f39=_0x14bbdd;_0x193cb6[_0x182f39(0x180)](),_0x39bcce();});});}[_0x2d20d8(0x12b)](){const _0x2eb814=_0x2d20d8,_0x4a27eb=this[_0x2eb814(0x17d)][_0x2eb814(0x12a)][_0x2eb814(0x158)](_0x2da786)[_0x2eb814(0x149)][_0x2eb814(0x196)]()[_0x2eb814(0x17a)]();for(const _0x4f2f72 of _0x4a27eb)if(_0x2eb814(0x174)!==_0x4f2f72[_0x2eb814(0x18c)]||_0x4f2f72[_0x2eb814(0x15c)])return _0x4f2f72[_0x2eb814(0x181)]+0x1;}[_0x2d20d8(0x141)](){const _0x43c84c=_0x2d20d8,_0xe6b4b7=this[_0x43c84c(0x17d)][_0x43c84c(0x12a)][_0x43c84c(0x158)](_0x2da786);return new Promise(_0x35f0f3=>{const _0x5eda56=_0x43c84c;_0xe6b4b7[_0x5eda56(0x156)]?_0xe6b4b7[_0x5eda56(0x12d)](_0x5eda56(0x15f),()=>{const _0x2677ce=_0x5eda56;_0x35f0f3(this[_0x2677ce(0x12b)]());}):_0x35f0f3(this[_0x5eda56(0x12b)]());});}[_0x2d20d8(0x169)](_0x443761,_0x581c7c){const _0x295d3a=_0x2d20d8,_0x1388c7=this[_0x295d3a(0x127)][_0x295d3a(0x189)];this[_0x295d3a(0x167)]=_0x581c7c;for(const _0x386787 of _0x443761){const _0x67af76=_0x1388c7[_0x295d3a(0x132)](_0x386787['id']);if(_0x67af76){if((_0x386787[_0x295d3a(0x15e)]||_0x386787[_0x295d3a(0x129)])&&(_0x386787[_0x295d3a(0x164)]=null),_0x67af76===this[_0x295d3a(0x127)][_0x295d3a(0x130)]){const _0x1ec084=Math[_0x295d3a(0x134)](_0x67af76[_0x295d3a(0x129)],_0x386787[_0x295d3a(0x129)]),_0x3a7748=Math[_0x295d3a(0x134)](_0x67af76[_0x295d3a(0x15e)],_0x386787[_0x295d3a(0x15e)]);let _0x125f71;_0x67af76[_0x295d3a(0x129)]===_0x386787[_0x295d3a(0x129)]&&_0x67af76[_0x295d3a(0x15e)]===_0x386787[_0x295d3a(0x15e)]?(_0x125f71=!0x0,this[_0x295d3a(0x163)](_0x386787)):_0x386787[_0x295d3a(0x129)]===_0x1ec084&&_0x386787[_0x295d3a(0x15e)]===_0x3a7748?_0x125f71=!0x1:(_0x67af76[_0x295d3a(0x129)]===_0x1ec084&&_0x67af76[_0x295d3a(0x15e)]===_0x3a7748||this[_0x295d3a(0x146)]({'revision':_0x67af76,'from':_0x3a7748,'to':_0x1ec084}),_0x125f71=!0x0),_0x125f71&&(delete _0x386787[_0x295d3a(0x15e)],delete _0x386787[_0x295d3a(0x129)],delete _0x386787[_0x295d3a(0x164)],delete _0x386787[_0x295d3a(0x144)],delete _0x386787[_0x295d3a(0x12f)]);}this[_0x295d3a(0x127)][_0x295d3a(0x14a)](_0x386787),this[_0x295d3a(0x163)](_0x386787);}else this[_0x295d3a(0x127)][_0x295d3a(0x184)](_0x386787);}const _0x3c5fb6=_0x1388c7[_0x295d3a(0x186)]();_0x3c5fb6[_0x295d3a(0x17a)]();for(let _0x5705f4=0x0;_0x5705f4<_0x3c5fb6[_0x295d3a(0x193)]-0x1;_0x5705f4++){const _0x363a92=_0x3c5fb6[_0x5705f4],_0x2c6bc3=_0x3c5fb6[_0x5705f4+0x1];if(_0x363a92[_0x295d3a(0x15e)]<_0x2c6bc3[_0x295d3a(0x129)]){const _0x206bb8=_0x2c6bc3[_0x295d3a(0x129)],_0x4349aa=Math[_0x295d3a(0x134)](_0x206bb8,_0x363a92[_0x295d3a(0x129)]);this[_0x295d3a(0x146)]({'revision':_0x363a92,'from':_0x206bb8,'to':_0x4349aa});}}}[_0x2d20d8(0x146)]({revision:_0x9409fe,from:_0x1d58af,to:_0x3bf45e}={}){const _0x3274dc=_0x2d20d8,_0x22a6bf=this[_0x3274dc(0x17d)][_0x3274dc(0x12a)][_0x3274dc(0x158)](_0x8827f),_0x564d18=this[_0x3274dc(0x127)][_0x3274dc(0x16b)]({'revision':_0x9409fe,'from':_0x1d58af,'to':_0x3bf45e});_0x564d18[_0x3274dc(0x166)]=_0x564d18[_0x3274dc(0x12f)][_0x3274dc(0x185)](_0x4ae46=>_0x22a6bf[_0x3274dc(0x12e)](_0x4ae46)),_0x9409fe[_0x3274dc(0x143)](_0x564d18);}[_0x2d20d8(0x163)](_0x498581){const _0x51903e=_0x2d20d8,_0x25e532={};_0x25e532['id']=_0x498581['id'];for(const _0x2ff575 of Object[_0x51903e(0x133)](_0x498581))'id'!==_0x2ff575&&(_0x25e532[_0x2ff575]=void 0x0);this[_0x51903e(0x127)][_0x51903e(0x125)](_0x25e532['id'],_0x25e532,!0x0);}async[_0x2d20d8(0x195)](_0x3b2add){const _0x1f1a7c=_0x2d20d8,_0xeb3d62=this[_0x1f1a7c(0x17d)][_0x1f1a7c(0x12a)][_0x1f1a7c(0x158)](_0x8827f),{connection:_0x1669b3}=this[_0x1f1a7c(0x17d)][_0x1f1a7c(0x12a)][_0x1f1a7c(0x158)](_0x16cdcb),_0x1e1353=new Set();for(const _0x1fb076 of _0x3b2add){for(const _0x524109 of _0x1fb076[_0x1f1a7c(0x12f)])_0x1cea9b(_0x524109);_0x1fb076[_0x1f1a7c(0x175)]&&_0x1cea9b(_0x1fb076[_0x1f1a7c(0x175)]);}if(0x0===_0x1e1353[_0x1f1a7c(0x197)])return;const _0x441c27=await _0x53b607[_0x1f1a7c(0x162)](_0x1669b3,Array[_0x1f1a7c(0x171)](_0x1e1353));for(const _0x51ddb6 of _0x441c27)_0xeb3d62[_0x1f1a7c(0x12e)](_0x51ddb6['id'])||_0xeb3d62[_0x1f1a7c(0x14d)](_0x51ddb6);function _0x1cea9b(_0x504d2e){const _0x33ab5f=_0x1f1a7c;_0xeb3d62[_0x33ab5f(0x12e)](_0x504d2e)||_0x1e1353[_0x33ab5f(0x177)](_0x504d2e);}}}u[_0x2d20d8(0x147)]=_0x3a4ca7;export default u;function it(_0x25aae7){const _0x53bf84=_0x2d20d8;return _0x25aae7[_0x53bf84(0x182)][_0x53bf84(0x157)](_0x53bf84(0x135))||_0x25aae7[_0x53bf84(0x182)][_0x53bf84(0x157)](_0x53bf84(0x15a))||_0x25aae7[_0x53bf84(0x182)][_0x53bf84(0x157)](_0x53bf84(0x178));}
|
|
23
|
+
function _0x295b(_0x2c060e,_0x2c1ed5){const _0x50eb3f=_0x50eb();return _0x295b=function(_0x295b0f,_0x5eac67){_0x295b0f=_0x295b0f-0x133;let _0x240460=_0x50eb3f[_0x295b0f];return _0x240460;},_0x295b(_0x2c060e,_0x2c1ed5);}const _0x1cd21d=_0x295b;(function(_0x466ecd,_0x5dbb57){const _0x417786=_0x295b,_0x29d93f=_0x466ecd();while(!![]){try{const _0x35ca31=parseInt(_0x417786(0x199))/0x1*(parseInt(_0x417786(0x17e))/0x2)+parseInt(_0x417786(0x168))/0x3*(parseInt(_0x417786(0x14f))/0x4)+parseInt(_0x417786(0x158))/0x5+-parseInt(_0x417786(0x142))/0x6*(-parseInt(_0x417786(0x146))/0x7)+parseInt(_0x417786(0x1a5))/0x8+-parseInt(_0x417786(0x1a2))/0x9*(parseInt(_0x417786(0x1a4))/0xa)+parseInt(_0x417786(0x155))/0xb*(-parseInt(_0x417786(0x183))/0xc);if(_0x35ca31===_0x5dbb57)break;else _0x29d93f['push'](_0x29d93f['shift']());}catch(_0x36f82e){_0x29d93f['push'](_0x29d93f['shift']());}}}(_0x50eb,0x1bcd9));import{Plugin as _0x354836}from'ckeditor5/src/core.js';import{version as _0x44cfa4}from'ckeditor5/src/utils.js';import{Users as _0x1c326c}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x50eb(){const _0x40fa8b=['has','keys','from','connected','_getLatestVersionFromServerOperations','toVersion','buildRevisionData','_bufferedUpdates','_fixRevision','then','wrongRequestId','reInit','authors','cloud-services-internal-error:\x20Not\x20connected.','RevisionTracker','getOperations','destroy','16TqrYVu','_update','isEmptyCurrent','CONNECTED','_lastRequestId','2207388DSwuLA','_revisions','_isPendingUpdate','marker','getRevisions','currentRevision','_waitForServiceReady','RevisionHistoryService','isPremiumPlugin','bind','get','_handleRevisionsUpdate','cloud-services-internal-error:\x20Request\x20timeout.','requires','repository','baseVersion','data','_bufferUpdate','message','diffData','remove','adapter','23429jtVmjU','code','isOfficialPlugin','cloudServices.bundleVersion','change:_isPendingUpdate','getMany','_revisionHistoryService','connection','isEnabled','8514BzfXnK','addUser','1290NcSmzq','832128yKroFQ','_getLatestVersion','once','off','_fetchMissingUsers','pluginName','_preventResendingRevisionData','isConnected','_isConnected','editor','_revisionDataBuilder','fromVersion','addRevisionData','reconnect','CloudServicesRevisionHistoryAdapter','listenTo','addToReconnectionStack','max','36DwyvCE','change:_isConnected','getUser','config','67270zaoerY','isBundleUploaded','_startingVersion','serverHistory','_oldOffset','plugins','reverse','sendBufferedUpdates','creatorId','12VsHgNF','startsWith','setRevisionData','state','sessionId','add','11gSBIDd','_handleReconnectionError','updateRevisions','25610VnZOIV','type','_createCurrentRevision','affectsData','init','_offset','createdAt','getRevision','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','map','size','revisionsUpdated','catch','connect','authorsIds','length','65634xLlOGf','collaboration.channelId','setSource','400','_revisionTracker'];_0x50eb=function(){return _0x40fa8b;};return _0x50eb();}import _0x333893 from'../realtimecollaborativeediting/realtimecollaborationclient.js';import _0x48a315 from'../realtimecollaborativeediting/websocketgateway.js';import _0x594359 from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x4295f3,RevisionHistoryService as _0x534f7d,User as _0x341005,WEB_SOCKET_GATEWAY_STATES as _0xd312d2}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class u extends _0x354836{static get[_0x1cd21d(0x190)](){const _0x2d2cf6=_0x1cd21d;return[_0x48a315,_0x333893,_0x2d2cf6(0x17b),_0x594359,_0x1c326c];}static get[_0x1cd21d(0x135)](){const _0x32da15=_0x1cd21d;return _0x32da15(0x13e);}static get[_0x1cd21d(0x19b)](){return!0x0;}static get[_0x1cd21d(0x18b)](){return!0x0;}constructor(_0x41895b){const _0xb9f95c=_0x1cd21d;super(_0x41895b);const _0x1c7b45=this[_0xb9f95c(0x139)][_0xb9f95c(0x145)][_0xb9f95c(0x18d)](_0xb9f95c(0x169));this[_0xb9f95c(0x182)]=null,this[_0xb9f95c(0x16c)]=this[_0xb9f95c(0x139)][_0xb9f95c(0x14b)][_0xb9f95c(0x18d)](_0xb9f95c(0x17b)),this[_0xb9f95c(0x19f)]=new u[(_0xb9f95c(0x18a))](_0x1c7b45);}async[_0x1cd21d(0x15c)](){const _0x44b18b=_0x1cd21d,_0x5bda18=this[_0x44b18b(0x139)][_0x44b18b(0x14b)][_0x44b18b(0x18d)](_0x333893),_0x5670e3=_0x5bda18[_0x44b18b(0x149)],_0x5b5715=this[_0x44b18b(0x139)][_0x44b18b(0x14b)][_0x44b18b(0x18d)](_0x48a315);this[_0x44b18b(0x16c)][_0x44b18b(0x16a)]({'history':_0x5670e3,'getLatestVersion':()=>this[_0x44b18b(0x1a6)](),'getCurrentRevisionId':()=>_0x5bda18[_0x44b18b(0x153)]});const _0x601045=this[_0x44b18b(0x139)][_0x44b18b(0x145)][_0x44b18b(0x18d)](_0x44b18b(0x19c))||_0x44cfa4,_0x125b75=await _0x4295f3[_0x44b18b(0x147)](_0x5b5715[_0x44b18b(0x1a0)],_0x601045);this[_0x44b18b(0x16c)][_0x44b18b(0x198)]={'getRevision':async({revisionId:_0x18f021})=>(await this[_0x44b18b(0x189)](),await this[_0x44b18b(0x19f)][_0x44b18b(0x15f)](_0x18f021)),'updateRevisions':async _0x10cdd1=>{const _0x281917=_0x44b18b;await this[_0x281917(0x189)]();const _0x40374f=this[_0x281917(0x16c)][_0x281917(0x188)];if(_0x125b75&&0x1===_0x10cdd1[_0x281917(0x167)]&&_0x10cdd1[0x0]['id']===_0x40374f['id'])return _0x10cdd1;for(const _0x46c4c6 of _0x10cdd1)_0x46c4c6['id']===_0x40374f['id']&&(_0x46c4c6[_0x281917(0x180)]=_0x46c4c6[_0x281917(0x13b)]===_0x46c4c6[_0x281917(0x172)]);return this[_0x281917(0x19f)][_0x281917(0x157)](_0x10cdd1,this[_0x281917(0x182)])[_0x281917(0x176)](_0x3ff84a=>(this[_0x281917(0x182)]=_0x3ff84a,_0x10cdd1))[_0x281917(0x164)](_0x109a00=>{const _0x44825e=_0x281917;if(rt(_0x109a00)||_0x44825e(0x16b)===_0x109a00[_0x44825e(0x19a)]&&void 0x0!==_0x109a00[_0x44825e(0x193)][_0x44825e(0x177)]){for(const _0x3dde8a of _0x10cdd1){!this[_0x44825e(0x16c)][_0x44825e(0x191)][_0x44825e(0x15f)](_0x3dde8a['id'])||this[_0x44825e(0x16c)][_0x44825e(0x194)](_0x3dde8a['id'],_0x3dde8a,!0x1);}if(rt(_0x109a00))throw _0x109a00;return _0x10cdd1;}throw _0x109a00;});}},this[_0x44b18b(0x13f)](this[_0x44b18b(0x19f)],_0x44b18b(0x163),(_0xd520c2,{revisionsData:_0x5da4b1,requestId:_0x182fd8})=>{const _0x14e6e7=_0x44b18b;Math[_0x14e6e7(0x141)](..._0x5da4b1[_0x14e6e7(0x161)](_0x4e78a7=>_0x4e78a7[_0x14e6e7(0x172)]))>this[_0x14e6e7(0x171)]()-0x1?this[_0x14e6e7(0x1a6)]()[_0x14e6e7(0x176)](()=>{const _0x1675eb=_0x14e6e7;this[_0x1675eb(0x18e)](_0x5da4b1,_0x182fd8);}):this[_0x14e6e7(0x18e)](_0x5da4b1,_0x182fd8);});const {revisions:_0x4a19eb,requestId:_0x104592}=await this[_0x44b18b(0x19f)][_0x44b18b(0x165)](_0x5b5715[_0x44b18b(0x1a0)]);_0x5b5715[_0x44b18b(0x140)](this),this[_0x44b18b(0x182)]=_0x104592,await this[_0x44b18b(0x134)](_0x4a19eb);for(const _0x29b6d1 of _0x4a19eb)this[_0x44b18b(0x16c)][_0x44b18b(0x13c)](_0x29b6d1);this[_0x44b18b(0x13f)](_0x5bda18,_0x44b18b(0x143),(_0x2529b5,_0x1c1de9,_0x131ac2)=>{const _0x15fb1c=_0x44b18b;_0x131ac2&&(this[_0x15fb1c(0x14a)]=_0x5bda18[_0x15fb1c(0x15d)],_0x2529b5[_0x15fb1c(0x133)]());}),this[_0x44b18b(0x16c)][_0x44b18b(0x18c)](_0x44b18b(0x1a1))['to'](_0x5b5715,_0x44b18b(0x152),_0x498f20=>_0x498f20===_0xd312d2[_0x44b18b(0x181)]);}async[_0x1cd21d(0x13d)](){const _0x157326=_0x1cd21d,_0x383314=this[_0x157326(0x139)][_0x157326(0x14b)][_0x157326(0x18d)](_0x48a315),_0x321658=this[_0x157326(0x139)][_0x157326(0x14b)][_0x157326(0x18d)](_0x333893),_0x15218a=async()=>{const _0x422665=_0x157326,_0x14bdf8=this[_0x422665(0x16c)][_0x422665(0x188)],_0x3c1966=_0x14bdf8['id'],_0x456ec2=_0x3c1966!==_0x321658[_0x422665(0x153)];if(_0x456ec2){const _0x16aed8=_0x321658[_0x422665(0x15d)]-this[_0x422665(0x14a)],_0x199529=this[_0x422665(0x171)]();this[_0x422665(0x16c)][_0x422665(0x13a)][_0x422665(0x178)]();if(_0x14bdf8[_0x422665(0x172)]+_0x16aed8!==_0x199529){const _0x8d3198=_0x14bdf8[_0x422665(0x13b)]+_0x16aed8,_0x443d53=this[_0x422665(0x139)][_0x422665(0x14b)][_0x422665(0x18d)](_0x1c326c),_0x5a8a23=this[_0x422665(0x16c)][_0x422665(0x173)]({'revision':_0x14bdf8,'from':_0x8d3198,'to':_0x199529});_0x5a8a23['id']=_0x14bdf8['id'];const _0x3e0efb=_0x5a8a23[_0x422665(0x166)][_0x422665(0x161)](_0x2b00a9=>_0x443d53[_0x422665(0x144)](_0x2b00a9));_0x14bdf8[_0x422665(0x17f)]({..._0x5a8a23,'authors':_0x3e0efb},!0x0),this[_0x422665(0x16c)][_0x422665(0x194)](_0x14bdf8['id'],_0x5a8a23,!0x0);}this[_0x422665(0x16c)][_0x422665(0x148)]=_0x199529,(_0x14bdf8[_0x422665(0x172)]===_0x14bdf8[_0x422665(0x13b)]&&!this[_0x422665(0x16c)][_0x422665(0x174)][_0x422665(0x16d)](_0x3c1966)&&this[_0x422665(0x16c)][_0x422665(0x191)][_0x422665(0x184)][_0x422665(0x197)](_0x3c1966),this[_0x422665(0x16c)][_0x422665(0x15a)](_0x199529));}const {revisions:_0x13997e,requestId:_0x4c5887}=await this[_0x422665(0x19f)][_0x422665(0x13d)](_0x383314[_0x422665(0x1a0)],this[_0x422665(0x182)]);_0x456ec2&&_0x13997e[_0x422665(0x167)]>0x0?_0x321658[_0x422665(0x156)]():(await this[_0x422665(0x134)](_0x13997e),this[_0x422665(0x18e)](_0x13997e,_0x4c5887),this[_0x422665(0x16c)][_0x422665(0x14d)]());};return _0x321658[_0x157326(0x138)]?_0x15218a():new Promise((_0x541ab3,_0x181c77)=>{const _0xbaa9cc=_0x157326;_0x321658[_0xbaa9cc(0x1a7)](_0xbaa9cc(0x143),()=>{const _0x313e61=_0xbaa9cc;_0x15218a()[_0x313e61(0x176)](_0x541ab3)[_0x313e61(0x164)](_0x181c77);});});}[_0x1cd21d(0x17d)](){const _0x36b3ba=_0x1cd21d;super[_0x36b3ba(0x17d)]();}async[_0x1cd21d(0x189)](){const _0x3f906f=_0x1cd21d;this[_0x3f906f(0x19f)][_0x3f906f(0x137)]||await new Promise(_0x520a89=>{const _0xf58f00=_0x3f906f;this[_0xf58f00(0x13f)](this[_0xf58f00(0x19f)],_0xf58f00(0x170),_0x2b40e3=>{const _0x4f2aae=_0xf58f00;_0x2b40e3[_0x4f2aae(0x133)](),_0x520a89();});});}[_0x1cd21d(0x171)](){const _0x2a8d60=_0x1cd21d,_0x3e1818=this[_0x2a8d60(0x139)][_0x2a8d60(0x14b)][_0x2a8d60(0x18d)](_0x333893)[_0x2a8d60(0x149)][_0x2a8d60(0x17c)]()[_0x2a8d60(0x14c)]();for(const _0x460196 of _0x3e1818)if(_0x2a8d60(0x186)!==_0x460196[_0x2a8d60(0x159)]||_0x460196[_0x2a8d60(0x15b)])return _0x460196[_0x2a8d60(0x192)]+0x1;}[_0x1cd21d(0x1a6)](){const _0x1d436e=_0x1cd21d,_0x139b64=this[_0x1d436e(0x139)][_0x1d436e(0x14b)][_0x1d436e(0x18d)](_0x333893);return new Promise(_0x121898=>{const _0x3983cc=_0x1d436e;_0x139b64[_0x3983cc(0x185)]?_0x139b64[_0x3983cc(0x1a7)](_0x3983cc(0x19d),()=>{const _0x1fbb49=_0x3983cc;_0x121898(this[_0x1fbb49(0x171)]());}):_0x121898(this[_0x3983cc(0x171)]());});}[_0x1cd21d(0x18e)](_0x11015c,_0x371056){const _0x25259f=_0x1cd21d,_0x1dd1f6=this[_0x25259f(0x16c)][_0x25259f(0x191)];this[_0x25259f(0x182)]=_0x371056;for(const _0x4e4b7e of _0x11015c){const _0x441d5b=_0x1dd1f6[_0x25259f(0x15f)](_0x4e4b7e['id']);if(_0x441d5b){if((_0x4e4b7e[_0x25259f(0x13b)]||_0x4e4b7e[_0x25259f(0x172)])&&(_0x4e4b7e[_0x25259f(0x196)]=null),_0x441d5b===this[_0x25259f(0x16c)][_0x25259f(0x188)]){const _0x57cb55=Math[_0x25259f(0x141)](_0x441d5b[_0x25259f(0x172)],_0x4e4b7e[_0x25259f(0x172)]),_0x47cc28=Math[_0x25259f(0x141)](_0x441d5b[_0x25259f(0x13b)],_0x4e4b7e[_0x25259f(0x13b)]);let _0x3397f4;_0x441d5b[_0x25259f(0x172)]===_0x4e4b7e[_0x25259f(0x172)]&&_0x441d5b[_0x25259f(0x13b)]===_0x4e4b7e[_0x25259f(0x13b)]?(_0x3397f4=!0x0,this[_0x25259f(0x136)](_0x4e4b7e)):_0x4e4b7e[_0x25259f(0x172)]===_0x57cb55&&_0x4e4b7e[_0x25259f(0x13b)]===_0x47cc28?_0x3397f4=!0x1:(_0x441d5b[_0x25259f(0x172)]===_0x57cb55&&_0x441d5b[_0x25259f(0x13b)]===_0x47cc28||this[_0x25259f(0x175)]({'revision':_0x441d5b,'from':_0x47cc28,'to':_0x57cb55}),_0x3397f4=!0x0),_0x3397f4&&(delete _0x4e4b7e[_0x25259f(0x13b)],delete _0x4e4b7e[_0x25259f(0x172)],delete _0x4e4b7e[_0x25259f(0x196)],delete _0x4e4b7e[_0x25259f(0x15e)],delete _0x4e4b7e[_0x25259f(0x166)]);}this[_0x25259f(0x16c)][_0x25259f(0x151)](_0x4e4b7e),this[_0x25259f(0x136)](_0x4e4b7e);}else this[_0x25259f(0x16c)][_0x25259f(0x13c)](_0x4e4b7e);}const _0x48d02a=_0x1dd1f6[_0x25259f(0x187)]();_0x48d02a[_0x25259f(0x14c)]();for(let _0x5ec9d4=0x0;_0x5ec9d4<_0x48d02a[_0x25259f(0x167)]-0x1;_0x5ec9d4++){const _0x4e9d7c=_0x48d02a[_0x5ec9d4],_0x2917b4=_0x48d02a[_0x5ec9d4+0x1];if(_0x4e9d7c[_0x25259f(0x13b)]<_0x2917b4[_0x25259f(0x172)]){const _0x55323b=_0x2917b4[_0x25259f(0x172)],_0x40ef22=Math[_0x25259f(0x141)](_0x55323b,_0x4e9d7c[_0x25259f(0x172)]);this[_0x25259f(0x175)]({'revision':_0x4e9d7c,'from':_0x55323b,'to':_0x40ef22});}}}[_0x1cd21d(0x175)]({revision:_0x314467,from:_0x20cda4,to:_0x2a4a9d}={}){const _0x5813bf=_0x1cd21d,_0x5c3af5=this[_0x5813bf(0x139)][_0x5813bf(0x14b)][_0x5813bf(0x18d)](_0x1c326c),_0x6b4f81=this[_0x5813bf(0x16c)][_0x5813bf(0x173)]({'revision':_0x314467,'from':_0x20cda4,'to':_0x2a4a9d});_0x6b4f81[_0x5813bf(0x179)]=_0x6b4f81[_0x5813bf(0x166)][_0x5813bf(0x161)](_0x74cb05=>_0x5c3af5[_0x5813bf(0x144)](_0x74cb05)),_0x314467[_0x5813bf(0x17f)](_0x6b4f81);}[_0x1cd21d(0x136)](_0x76df1){const _0x2f9746=_0x1cd21d,_0x45861f={};_0x45861f['id']=_0x76df1['id'];for(const _0x27a0b9 of Object[_0x2f9746(0x16e)](_0x76df1))'id'!==_0x27a0b9&&(_0x45861f[_0x27a0b9]=void 0x0);this[_0x2f9746(0x16c)][_0x2f9746(0x194)](_0x45861f['id'],_0x45861f,!0x0);}async[_0x1cd21d(0x134)](_0x13b500){const _0x49a31d=_0x1cd21d,_0x119ad4=this[_0x49a31d(0x139)][_0x49a31d(0x14b)][_0x49a31d(0x18d)](_0x1c326c),{connection:_0x21aa2f}=this[_0x49a31d(0x139)][_0x49a31d(0x14b)][_0x49a31d(0x18d)](_0x48a315),_0x4f3239=new Set();for(const _0x188de5 of _0x13b500){for(const _0x106fbe of _0x188de5[_0x49a31d(0x166)])_0x171b61(_0x106fbe);_0x188de5[_0x49a31d(0x14e)]&&_0x171b61(_0x188de5[_0x49a31d(0x14e)]);}if(0x0===_0x4f3239[_0x49a31d(0x162)])return;const _0x194141=await _0x341005[_0x49a31d(0x19e)](_0x21aa2f,Array[_0x49a31d(0x16f)](_0x4f3239));for(const _0x405778 of _0x194141)_0x119ad4[_0x49a31d(0x144)](_0x405778['id'])||_0x119ad4[_0x49a31d(0x1a3)](_0x405778);function _0x171b61(_0xee0add){const _0x3d18f2=_0x49a31d;_0x119ad4[_0x3d18f2(0x144)](_0xee0add)||_0x4f3239[_0x3d18f2(0x154)](_0xee0add);}}}u[_0x1cd21d(0x18a)]=_0x534f7d;export default u;function rt(_0x2201b4){const _0x13ac48=_0x1cd21d;return _0x2201b4[_0x13ac48(0x195)][_0x13ac48(0x150)](_0x13ac48(0x160))||_0x2201b4[_0x13ac48(0x195)][_0x13ac48(0x150)](_0x13ac48(0x17a))||_0x2201b4[_0x13ac48(0x195)][_0x13ac48(0x150)](_0x13ac48(0x18f));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xdac74a=_0x5363;(function(_0x2b7c84,_0xaf2879){const _0xadda29=_0x5363,_0x2cbe9f=_0x2b7c84();while(!![]){try{const _0x5d08e5=parseInt(_0xadda29(0xca))/0x1*(-parseInt(_0xadda29(0xe4))/0x2)+parseInt(_0xadda29(0xbb))/0x3*(-parseInt(_0xadda29(0xd3))/0x4)+-parseInt(_0xadda29(0xbe))/0x5+-parseInt(_0xadda29(0xec))/0x6*(-parseInt(_0xadda29(0xc6))/0x7)+parseInt(_0xadda29(0xe2))/0x8*(-parseInt(_0xadda29(0xbc))/0x9)+-parseInt(_0xadda29(0xe7))/0xa*(-parseInt(_0xadda29(0xce))/0xb)+parseInt(_0xadda29(0xd8))/0xc*(parseInt(_0xadda29(0xf7))/0xd);if(_0x5d08e5===_0xaf2879)break;else _0x2cbe9f['push'](_0x2cbe9f['shift']());}catch(_0x4f2b8a){_0x2cbe9f['push'](_0x2cbe9f['shift']());}}}(_0xe0ca,0x6eb27));import{Plugin as _0x3753a6}from'ckeditor5/src/core.js';import{User as _0x11b094,TrackChangesService as _0x297b55}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import _0x25650a from'../realtimecollaborativeediting/websocketgateway.js';function _0xe0ca(){const _0x253c99=['type','listenTo','attributes','addSuggestionData','off','TrackChangesEditing','addUser','set','addToReconnectionStack','45916XqlCHJ','_fetchMissingUsersForThreads','connected','cloud-services-internal-error:\x20Request\x20timeout.','hasSuggestion','config','isPremiumPlugin','1608oWqCoa','302589QECcvI','size','2904805ztGGzS','_saved','from','find','plugins','pluginName','isOfficialPlugin','connect','35yahVPf','suggestionUpdated','data','getUser','767174dQMjDo','requires','values','reconnect','1501401wTRlJj','isConnected','add','startsWith','_trackChangesService','584OcGDPj','_bufferedRequests','message','delete','get','4476dMqhBF','TrackChangesService','connection','cloud-services-internal-error:\x20Not\x20connected.','collaboration.channelId','CloudServicesTrackChangesAdapter','originalSuggestionId','catch','init','state','120JYrNSx','update','2sUoVYP','_waitForServiceReady','getSuggestion','50PkkGEa','open','then','getMany','editor','461076UuOAja','adapter'];_0xe0ca=function(){return _0x253c99;};return _0xe0ca();}function _0x5363(_0x34ed6c,_0x108f48){const _0xe0cae7=_0xe0ca();return _0x5363=function(_0x536306,_0x30b6bb){_0x536306=_0x536306-0xb5;let _0x19e6a3=_0xe0cae7[_0x536306];return _0x19e6a3;},_0x5363(_0x34ed6c,_0x108f48);}import _0x57feae from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x474921}from'ckeditor5-collaboration/src/collaboration-core.js';class f extends _0x3753a6{static get[_0xdac74a(0xcb)](){const _0x12900c=_0xdac74a;return[_0x57feae,_0x12900c(0xf3),_0x25650a];}static get[_0xdac74a(0xc3)](){const _0x5d1619=_0xdac74a;return _0x5d1619(0xdd);}static get[_0xdac74a(0xc4)](){return!0x0;}static get[_0xdac74a(0xba)](){return!0x0;}constructor(_0x372a1d){const _0x4dade8=_0xdac74a;super(_0x372a1d);const _0x269e93=this[_0x4dade8(0xeb)][_0x4dade8(0xb9)][_0x4dade8(0xd7)](_0x4dade8(0xdc));this[_0x4dade8(0xd4)]=new Map(),this[_0x4dade8(0xd2)]=new f[(_0x4dade8(0xd9))](_0x269e93);}[_0xdac74a(0xe0)](){const _0x216854=_0xdac74a,_0x4b842d=this[_0x216854(0xeb)][_0x216854(0xc2)][_0x216854(0xd7)](_0x25650a),_0x5532eb=this[_0x216854(0xeb)][_0x216854(0xc2)][_0x216854(0xd7)](_0x216854(0xf3));return _0x5532eb[_0x216854(0xed)]={'getSuggestion':async _0x515b5e=>{const _0x8d256e=_0x216854;await this[_0x8d256e(0xe5)]();const _0x3b5878=await this[_0x8d256e(0xd2)][_0x8d256e(0xd7)](_0x515b5e)[_0x8d256e(0xdf)](ot);return await this[_0x8d256e(0xb5)]([_0x3b5878]),_0x3b5878;},'addSuggestion':async({id:_0x2637fb,type:_0x3018a9,data:_0xad9a49,originalSuggestionId:_0x36750c,attributes:_0x2aa92b})=>{const _0x282059=_0x216854;await this[_0x282059(0xe5)]();const _0x95d2f4={'id':_0x2637fb,'type':_0x3018a9,'data':_0xad9a49,'originalSuggestionId':_0x36750c,'attributes':_0x2aa92b},_0x2ce80a=await this[_0x282059(0xd2)][_0x282059(0xd0)](_0x2637fb,_0x3018a9,_0xad9a49,_0x36750c,_0x2aa92b)[_0x282059(0xdf)](_0x4e0280=>{if(rt(_0x4e0280))return new Promise(_0x54d2f3=>{const _0x20d9b1=_0x5363;this[_0x20d9b1(0xd4)][_0x20d9b1(0xf5)](_0x2637fb,{'resolve':_0x54d2f3,'suggestionData':_0x95d2f4});});throw _0x4e0280;});return this[_0x282059(0xd4)][_0x282059(0xd6)](_0x2637fb),_0x2ce80a;},'updateSuggestion':async(_0x1eaec2,_0x534764)=>{const _0x511907=_0x216854;if(await this[_0x511907(0xe5)](),_0x511907(0xe8)!==_0x534764[_0x511907(0xe1)])return this[_0x511907(0xd2)][_0x511907(0xe3)](_0x1eaec2,_0x534764)[_0x511907(0xdf)](ot);}},this[_0x216854(0xef)](this[_0x216854(0xd2)],_0x216854(0xc7),(_0x1af01e,_0x535fc8)=>{const _0x34a67a=_0x216854;_0x5532eb[_0x34a67a(0xb8)](_0x535fc8['id'])&&(_0x5532eb[_0x34a67a(0xe6)](_0x535fc8['id'])[_0x34a67a(0xf0)]=_0x535fc8[_0x34a67a(0xf0)]);}),this[_0x216854(0xd2)][_0x216854(0xc5)](_0x4b842d[_0x216854(0xda)])[_0x216854(0xe9)](_0x4fcabb=>(_0x4b842d[_0x216854(0xf6)](this),this[_0x216854(0xb5)](_0x4fcabb)[_0x216854(0xe9)](()=>{const _0x2e08ae=_0x216854;for(const _0x18f3d0 of _0x4fcabb){_0x5532eb[_0x2e08ae(0xf1)](_0x18f3d0)[_0x2e08ae(0xbf)]=!0x0;}})));}async[_0xdac74a(0xcd)](){const _0x17bc7d=_0xdac74a,_0x4f3f23=this[_0x17bc7d(0xeb)][_0x17bc7d(0xc2)][_0x17bc7d(0xd7)](_0x17bc7d(0xf3)),{connection:_0x254aad}=this[_0x17bc7d(0xeb)][_0x17bc7d(0xc2)][_0x17bc7d(0xd7)](_0x25650a),_0x4b5854=await this[_0x17bc7d(0xd2)][_0x17bc7d(0xc5)](_0x254aad);await this[_0x17bc7d(0xb5)](_0x4b5854);for(const {suggestionData:_0x38822d,resolve:_0x39abaf}of this[_0x17bc7d(0xd4)][_0x17bc7d(0xcc)]()){let _0x5cdf2c=_0x4b5854[_0x17bc7d(0xc1)](_0xcc4417=>_0xcc4417['id']===_0x38822d['id']);_0x5cdf2c||(_0x5cdf2c=await this[_0x17bc7d(0xd2)][_0x17bc7d(0xd0)](_0x38822d['id'],_0x38822d[_0x17bc7d(0xee)],_0x38822d[_0x17bc7d(0xc8)],_0x38822d[_0x17bc7d(0xde)])),_0x39abaf(_0x5cdf2c);}for(const _0x1aa8d9 of _0x4b5854)_0x4f3f23[_0x17bc7d(0xb8)](_0x1aa8d9['id'])||_0x4f3f23[_0x17bc7d(0xf1)](_0x1aa8d9);}async[_0xdac74a(0xe5)](){const _0x3ed55a=_0xdac74a;this[_0x3ed55a(0xd2)][_0x3ed55a(0xcf)]||await new Promise(_0x311c89=>{const _0x24d62e=_0x3ed55a;this[_0x24d62e(0xef)](this[_0x24d62e(0xd2)],_0x24d62e(0xb6),_0x690feb=>{const _0x46b061=_0x24d62e;_0x690feb[_0x46b061(0xf2)](),_0x311c89();});});}async[_0xdac74a(0xb5)](_0x132814){const _0x85eee5=_0xdac74a,_0x3dc22b=this[_0x85eee5(0xeb)][_0x85eee5(0xc2)][_0x85eee5(0xd7)](_0x474921),{connection:_0x32236d}=this[_0x85eee5(0xeb)][_0x85eee5(0xc2)][_0x85eee5(0xd7)](_0x25650a),_0x3afd4f=new Set();for(const {authorId:_0x147122}of _0x132814)_0x3dc22b[_0x85eee5(0xc9)](_0x147122)||_0x3afd4f[_0x85eee5(0xd0)](_0x147122);if(0x0===_0x3afd4f[_0x85eee5(0xbd)])return;const _0x287e12=await _0x11b094[_0x85eee5(0xea)](_0x32236d,Array[_0x85eee5(0xc0)](_0x3afd4f));for(const _0x2c19a3 of _0x287e12)_0x3dc22b[_0x85eee5(0xc9)](_0x2c19a3['id'])||_0x3dc22b[_0x85eee5(0xf4)](_0x2c19a3);}}f[_0xdac74a(0xd9)]=_0x297b55;export default f;function ot(_0x473ec9){if(rt(_0x473ec9))return new Promise(()=>{});throw _0x473ec9;}function rt(_0x4d7153){const _0x450d22=_0xdac74a;return _0x4d7153[_0x450d22(0xd5)][_0x450d22(0xd1)](_0x450d22(0xdb))||_0x4d7153[_0x450d22(0xd5)][_0x450d22(0xd1)](_0x450d22(0xb7));}
|