@ckeditor/ckeditor5-real-time-collaboration
Version:
A set of CKEditor 5 features enabling real-time collaboration within the editor using CKEditor Cloud Services.
24 lines • 16.9 kB
JavaScript
/*
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
*
*
*
*
* +---------------------------------------------------------------------------------+
* | |
* | Hello stranger! |
* | |
* | |
* | What you're currently looking at is the source code of a legally protected, |
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
* | are forbidden and will result in legal consequences. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
const _0x401576=_0x10b3;(function(_0x156a38,_0x539906){const _0x96074e=_0x10b3,_0x56390c=_0x156a38();while(!![]){try{const _0x19a02b=-parseInt(_0x96074e(0x22d))/0x1*(-parseInt(_0x96074e(0x1ed))/0x2)+-parseInt(_0x96074e(0x203))/0x3+-parseInt(_0x96074e(0x23f))/0x4*(parseInt(_0x96074e(0x216))/0x5)+parseInt(_0x96074e(0x224))/0x6+parseInt(_0x96074e(0x202))/0x7+-parseInt(_0x96074e(0x233))/0x8+-parseInt(_0x96074e(0x232))/0x9;if(_0x19a02b===_0x539906)break;else _0x56390c['push'](_0x56390c['shift']());}catch(_0x320800){_0x56390c['push'](_0x56390c['shift']());}}}(_0x5ae7,0xa0e50));import{Context as _0x4d9792,ContextPlugin as _0x4cd080}from'ckeditor5/src/core.js';import{CKEditorError as _0x1326c9}from'ckeditor5/src/utils.js';import{Users as _0x391c8f}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x10b3(_0xf93ef0,_0x42cd0a){const _0x5ae718=_0x5ae7();return _0x10b3=function(_0x10b39d,_0x3ba95a){_0x10b39d=_0x10b39d-0x1e0;let _0x39de06=_0x5ae718[_0x10b39d];return _0x39de06;},_0x10b3(_0xf93ef0,_0x42cd0a);}import{CommentsService as _0x21659a,User as _0x4f1c62}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x2f1d55}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x1064a4}from'../realtimecollaborativeediting/sessions.js';class s extends _0x4cd080{static [_0x401576(0x215)]=/* #__PURE__ -- @preserve */
((()=>_0x21659a)());[_0x401576(0x222)];static get[_0x401576(0x20b)](){const _0x28d9fd=_0x401576;return[_0x2f1d55,_0x28d9fd(0x1e5),_0x1064a4,_0x391c8f];}static get[_0x401576(0x22e)](){const _0x30bf71=_0x401576;return _0x30bf71(0x209);}static get[_0x401576(0x21c)](){return!0x0;}static get[_0x401576(0x228)](){return!0x0;}constructor(_0x52ef4b){const _0x470b91=_0x401576;super(_0x52ef4b),this[_0x470b91(0x222)]=new Map();}async[_0x401576(0x1ee)](){const _0x585584=_0x401576,_0x8c008b=this[_0x585584(0x22b)],_0x5ab8ce=_0x8c008b[_0x585584(0x1fd)][_0x585584(0x1e4)](_0x585584(0x1e5));if(_0x8c008b[_0x585584(0x1fd)][_0x585584(0x1e4)](_0x2f1d55)[_0x585584(0x1e1)](this),_0x5ab8ce[_0x585584(0x1ea)]={'addCommentThread':async({channelId:_0x40fd57,threadId:_0x1c5b66,comments:_0x4f9fdf,resolvedAt:_0x59c2cb,resolvedBy:_0x417d42,context:_0x2673b5,attributes:_0x39496a})=>{const _0x3e71d6=_0x585584,_0xc3a74e=await this[_0x3e71d6(0x21b)](_0x40fd57)[_0x3e71d6(0x231)]({'commentThreadId':_0x1c5b66,'comments':_0x4f9fdf[_0x3e71d6(0x205)](_0x338678=>function(_0x65f778,_0x5ad7d8,_0x4309a8){const _0x4778a1=_0x3e71d6;return{'commentThreadId':_0x4309a8,'commentId':_0x65f778[_0x4778a1(0x22a)],'userId':_0x65f778[_0x4778a1(0x206)],'content':_0x65f778[_0x4778a1(0x240)],'documentId':_0x5ad7d8,'createdAt':_0x65f778[_0x4778a1(0x219)],'attributes':_0x65f778[_0x4778a1(0x21f)]||{}};}(_0x338678,_0x40fd57,_0x1c5b66)),'resolvedAt':_0x59c2cb,'resolvedBy':_0x417d42,'context':_0x2673b5,'attributes':_0x39496a})[_0x3e71d6(0x1fa)](k);return{'threadId':_0xc3a74e[_0x3e71d6(0x242)],'comments':_0xc3a74e[_0x3e71d6(0x20c)]};},'getCommentThread':async({channelId:_0x14015d,threadId:_0x5d0a4d})=>{const _0x5a403f=_0x585584,_0x502c8c=await this[_0x5a403f(0x21b)](_0x14015d)[_0x5a403f(0x20e)](_0x5d0a4d)[_0x5a403f(0x1fa)](k);return _0x502c8c[_0x5a403f(0x1f7)]?null:(await this[_0x5a403f(0x207)]([_0x502c8c]),{'threadId':_0x502c8c[_0x5a403f(0x242)],'comments':_0x502c8c[_0x5a403f(0x20c)][_0x5a403f(0x205)](B),'context':_0x502c8c[_0x5a403f(0x22b)],'resolvedAt':_0x502c8c[_0x5a403f(0x230)],'resolvedBy':_0x502c8c[_0x5a403f(0x239)],'attributes':_0x502c8c[_0x5a403f(0x21f)]||{}});},'updateCommentThread':async({channelId:_0x40c095,threadId:_0xe9bc2f,context:_0x498381,unlinkedAt:_0x4a1e6d,attributes:_0x3a0d3f})=>this[_0x585584(0x21b)](_0x40c095)[_0x585584(0x1e0)]({'commentThreadId':_0xe9bc2f,'context':_0x498381,'attributes':_0x3a0d3f,'unlinkedAt':_0x4a1e6d})[_0x585584(0x1fa)](F)[_0x585584(0x1fa)](k),'resolveCommentThread':async({channelId:_0x3afe6f,threadId:_0x9e8d30})=>{const _0x213901=_0x585584,_0x484dcd=await this[_0x213901(0x21b)](_0x3afe6f)[_0x213901(0x1fc)](_0x9e8d30)[_0x213901(0x1fa)](F)[_0x213901(0x1fa)](k);return{'threadId':_0x484dcd[_0x213901(0x242)],'resolvedAt':_0x484dcd[_0x213901(0x230)],'resolvedBy':_0x484dcd[_0x213901(0x239)]};},'reopenCommentThread':async({channelId:_0x5633b1,threadId:_0x339bb8})=>this[_0x585584(0x21b)](_0x5633b1)[_0x585584(0x21a)](_0x339bb8)[_0x585584(0x1fa)](F)[_0x585584(0x1fa)](k),'removeCommentThread':({channelId:_0x275b2c,threadId:_0x121f72})=>this[_0x585584(0x21b)](_0x275b2c)[_0x585584(0x23d)](_0x121f72)[_0x585584(0x1fa)](F)[_0x585584(0x1fa)](k),'addComment':({channelId:_0x1b5417,threadId:_0x39c694,commentId:_0x16bb37,content:_0x56bde0,attributes:_0x358402})=>this[_0x585584(0x21b)](_0x1b5417)[_0x585584(0x1e8)](_0x39c694,_0x16bb37,_0x56bde0,_0x358402)[_0x585584(0x1fa)](k),'updateComment':({channelId:_0x711a1e,threadId:_0x5f03c,commentId:_0x433cdb,content:_0x5a6bf4,attributes:_0x2e612b})=>this[_0x585584(0x21b)](_0x711a1e)[_0x585584(0x220)](_0x5f03c,_0x433cdb,_0x5a6bf4,_0x2e612b)[_0x585584(0x1fa)](F)[_0x585584(0x1fa)](k),'removeComment':({channelId:_0x344622,threadId:_0x496ff5,commentId:_0x8df93b})=>this[_0x585584(0x21b)](_0x344622)[_0x585584(0x22c)](_0x496ff5,_0x8df93b)[_0x585584(0x1fa)](F)[_0x585584(0x1fa)](k)},_0x8c008b instanceof _0x4d9792){const _0x213ae6=_0x8c008b[_0x585584(0x1e6)][_0x585584(0x1e4)](_0x585584(0x226)),_0x1df859=_0x8c008b[_0x585584(0x1fd)][_0x585584(0x1e4)](_0x1064a4);await this[_0x585584(0x23e)](_0x213ae6);const _0x5c98c8=await this[_0x585584(0x222)][_0x585584(0x1e4)](_0x213ae6)[_0x585584(0x20a)]();this[_0x585584(0x1f1)](_0x1df859,_0x585584(0x236)+_0x213ae6,(_0x14172d,{session:_0x2955f8})=>{const _0xab885c=_0x585584;_0x2955f8['id']===_0x1df859[_0xab885c(0x20f)]&&(_0x14172d[_0xab885c(0x212)](),this[_0xab885c(0x22b)][_0xab885c(0x1fd)][_0xab885c(0x1e4)](_0xab885c(0x1f3))[_0xab885c(0x1f8)](_0x2955f8[_0xab885c(0x234)],_0x213ae6));}),_0x1df859[_0x585584(0x1f5)](_0x213ae6,_0x5c98c8);}}async[_0x401576(0x23e)](_0x4690a1){const _0x3d689c=_0x401576;if(this[_0x3d689c(0x222)][_0x3d689c(0x1f2)](_0x4690a1))throw new _0x1326c9(_0x3d689c(0x210),null,{'channelId':_0x4690a1});const _0x13cbc0=this[_0x3d689c(0x22b)][_0x3d689c(0x1fd)][_0x3d689c(0x1e4)](_0x3d689c(0x1e5)),_0x261bc0=new s[(_0x3d689c(0x215))](_0x4690a1);this[_0x3d689c(0x222)][_0x3d689c(0x217)](_0x4690a1,_0x261bc0),this[_0x3d689c(0x1f1)](_0x261bc0,_0x3d689c(0x1f4),(_0x28c2dc,_0x4d8110)=>{const _0x4d2307=_0x3d689c,{commentThreadId:_0x30a65b,documentId:_0x22b3dc,context:_0x5828a0,attributes:_0x435e2b,resolvedAt:_0x490fe9,resolvedBy:_0x3d8200,comments:_0x3b9957}=_0x4d8110;_0x13cbc0[_0x4d2307(0x20e)](_0x30a65b)||_0x13cbc0[_0x4d2307(0x231)]({'threadId':_0x30a65b,'channelId':_0x22b3dc,'comments':_0x3b9957?_0x3b9957[_0x4d2307(0x205)](B):[],'context':_0x5828a0,'attributes':_0x435e2b,'resolvedAt':_0x490fe9,'resolvedBy':_0x3d8200,'isFromAdapter':!0x0});}),this[_0x3d689c(0x1f1)](_0x261bc0,_0x3d689c(0x241),(_0x1d6b97,{commentThreadId:_0x1143c9,documentId:_0x33c41a,context:_0x5256f2,unlinkedAt:_0x55ce7a,attributes:_0x2d2e9c})=>{const _0x369dbb=_0x3d689c;_0x13cbc0[_0x369dbb(0x20e)](_0x1143c9)&&_0x13cbc0[_0x369dbb(0x1e0)]({'threadId':_0x1143c9,'channelId':_0x33c41a,'context':_0x5256f2,'unlinkedAt':_0x55ce7a,'attributes':_0x2d2e9c,'isFromAdapter':!0x0});}),this[_0x3d689c(0x1f1)](_0x261bc0,_0x3d689c(0x243),(_0x58d6fd,{commentThreadId:_0xfb1845,resolvedBy:_0x21d411,resolvedAt:_0x156536})=>{const _0x3144c9=_0x3d689c,_0x34e3be=_0x13cbc0[_0x3144c9(0x20e)](_0xfb1845);_0x34e3be&&_0x34e3be[_0x3144c9(0x23a)]({'resolvedBy':_0x21d411,'resolvedAt':_0x156536,'isFromAdapter':!0x0});}),this[_0x3d689c(0x1f1)](_0x261bc0,_0x3d689c(0x1e2),(_0x2642a7,{commentThreadId:_0xbeeb45})=>{const _0x2e131d=_0x3d689c,_0xe36a77=_0x13cbc0[_0x2e131d(0x20e)](_0xbeeb45);_0xe36a77&&_0xe36a77[_0x2e131d(0x21e)]({'isFromAdapter':!0x0});}),this[_0x3d689c(0x1f1)](_0x261bc0,_0x3d689c(0x204),(_0x2222e9,{commentThreadId:_0x1f8cd0})=>{const _0x42d4fc=_0x3d689c,_0x141125=_0x13cbc0[_0x42d4fc(0x20e)](_0x1f8cd0);_0x141125&&_0x141125[_0x42d4fc(0x1e7)]({'isFromAdapter':!0x0});}),this[_0x3d689c(0x1f1)](_0x261bc0,_0x3d689c(0x22f),(_0x3df278,_0x26d38b)=>{const _0x49290e=_0x3d689c,_0x176297=_0x26d38b[_0x49290e(0x242)],_0x443918=_0x13cbc0[_0x49290e(0x20e)](_0x176297);_0x443918&&_0x443918[_0x49290e(0x1e8)]({...B(_0x26d38b),'isFromAdapter':!0x0});}),this[_0x3d689c(0x1f1)](_0x261bc0,_0x3d689c(0x1fe),(_0x4019f5,{commentThreadId:_0x2192de,commentId:_0x25883d,content:_0x463314,attributes:_0xeafdfb})=>{const _0xc06eb9=_0x3d689c,_0xaaee27=_0x13cbc0[_0xc06eb9(0x20e)](_0x2192de);if(_0xaaee27){const _0x48f289=_0xaaee27[_0xc06eb9(0x229)](_0x25883d);_0x48f289&&_0x48f289[_0xc06eb9(0x23b)]({'content':_0x463314,'attributes':_0xeafdfb,'isFromAdapter':!0x0});}}),this[_0x3d689c(0x1f1)](_0x261bc0,_0x3d689c(0x1fb),(_0x50363c,{commentThreadId:_0x40133a,commentId:_0x2fd725})=>{const _0x1d19d8=_0x3d689c,_0x25fe52=_0x13cbc0[_0x1d19d8(0x20e)](_0x40133a);if(_0x25fe52){const _0x24787c=_0x25fe52[_0x1d19d8(0x229)](_0x2fd725);_0x24787c&&_0x24787c[_0x1d19d8(0x1e7)]({'isFromAdapter':!0x0});}}),await this[_0x3d689c(0x221)](_0x4690a1);}[_0x401576(0x20d)](){const _0x34e86e=_0x401576;if(this[_0x34e86e(0x22b)]instanceof _0x4d9792){const _0x38d83a=this[_0x34e86e(0x22b)][_0x34e86e(0x1e6)][_0x34e86e(0x1e4)](_0x34e86e(0x226));this[_0x34e86e(0x237)](_0x38d83a);}}[_0x401576(0x237)](_0x34b204){const _0x5c8ccb=_0x401576;if(!this[_0x5c8ccb(0x222)][_0x5c8ccb(0x1f2)](_0x34b204))throw new _0x1326c9(_0x5c8ccb(0x21d),null,{'channelId':_0x34b204});this[_0x5c8ccb(0x21b)](_0x34b204)[_0x5c8ccb(0x1f6)](),this[_0x5c8ccb(0x222)][_0x5c8ccb(0x1ff)](_0x34b204);}async[_0x401576(0x1f0)](){const _0x494c5b=_0x401576;for(const _0x6c548 of this[_0x494c5b(0x222)][_0x494c5b(0x23c)]())await this[_0x494c5b(0x221)](_0x6c548);if(this[_0x494c5b(0x22b)]instanceof _0x4d9792){const _0x211f03=this[_0x494c5b(0x22b)][_0x494c5b(0x1e6)][_0x494c5b(0x1e4)](_0x494c5b(0x226)),_0x3dc4dd=this[_0x494c5b(0x22b)][_0x494c5b(0x1fd)][_0x494c5b(0x1e4)](_0x1064a4);_0x3dc4dd[_0x494c5b(0x200)](_0x211f03);const _0x51dad7=await this[_0x494c5b(0x222)][_0x494c5b(0x1e4)](_0x211f03)[_0x494c5b(0x20a)]();_0x3dc4dd[_0x494c5b(0x1f5)](_0x211f03,_0x51dad7);}}async[_0x401576(0x221)](_0x20cdd7){const _0x3ed5d5=_0x401576,{connection:_0x5b8c24}=this[_0x3ed5d5(0x22b)][_0x3ed5d5(0x1fd)][_0x3ed5d5(0x1e4)](_0x2f1d55),_0x4f4d05=this[_0x3ed5d5(0x22b)][_0x3ed5d5(0x1fd)][_0x3ed5d5(0x1e4)](_0x3ed5d5(0x1e5)),_0x545a7c=this[_0x3ed5d5(0x222)][_0x3ed5d5(0x1e4)](_0x20cdd7),_0x2c44bb=await _0x545a7c[_0x3ed5d5(0x1ec)](_0x5b8c24);await this[_0x3ed5d5(0x207)](_0x2c44bb);const _0x437205=new Set(Array[_0x3ed5d5(0x1ef)](_0x4f4d05[_0x3ed5d5(0x211)]({'channelId':_0x20cdd7}),_0x211dcb=>_0x211dcb['id']));for(const _0x421d1a of _0x2c44bb)_0x421d1a[_0x3ed5d5(0x1f7)]||_0x437205[_0x3ed5d5(0x1ff)](_0x421d1a[_0x3ed5d5(0x242)]);for(const _0x2c18a5 of _0x437205)_0x4f4d05[_0x3ed5d5(0x20e)](_0x2c18a5)[_0x3ed5d5(0x1e7)]({'isFromAdapter':!0x0});for(const _0x1dd0dc of _0x2c44bb){let _0xf35402=_0x4f4d05[_0x3ed5d5(0x20e)](_0x1dd0dc[_0x3ed5d5(0x242)]);const {commentThreadId:_0x1d3fdc,context:_0x589c63,attributes:_0x4f7e88,resolvedBy:_0x338797,resolvedAt:_0x653b9f,unlinkedAt:_0x18ceb9,deletedAt:_0x211c29}=_0x1dd0dc;if(_0x211c29)continue;_0xf35402||(_0xf35402=_0x4f4d05[_0x3ed5d5(0x231)]({'channelId':_0x20cdd7,'threadId':_0x1d3fdc,'context':_0x589c63,'attributes':_0x4f7e88||{},'resolvedBy':_0x338797,'resolvedAt':_0x653b9f,'unlinkedAt':_0x18ceb9,'isFromAdapter':!0x0}));const _0x2a62bd=new Set(Array[_0x3ed5d5(0x1ef)](_0xf35402[_0x3ed5d5(0x20c)],_0x28307b=>_0x28307b['id']));for(const _0x2915d8 of _0x1dd0dc[_0x3ed5d5(0x20c)])_0x2a62bd[_0x3ed5d5(0x1ff)](_0x2915d8[_0x3ed5d5(0x22a)]);for(const _0x49c1f1 of _0x2a62bd)_0xf35402[_0x3ed5d5(0x229)](_0x49c1f1)[_0x3ed5d5(0x1e7)]({'isFromAdapter':!0x0});for(const _0x5a8fde of _0x1dd0dc[_0x3ed5d5(0x20c)]){const _0x519f85=_0xf35402[_0x3ed5d5(0x229)](_0x5a8fde[_0x3ed5d5(0x22a)]);_0x519f85?_0x519f85[_0x3ed5d5(0x240)]!==_0x5a8fde[_0x3ed5d5(0x240)]&&_0x519f85[_0x3ed5d5(0x23b)]({'content':_0x5a8fde[_0x3ed5d5(0x240)],'isFromAdapter':!0x0}):_0xf35402[_0x3ed5d5(0x1e8)](Object[_0x3ed5d5(0x1e9)](B(_0x5a8fde),{'isFromAdapter':!0x0}));}}}[_0x401576(0x21b)](_0x426494){const _0x2bca64=_0x401576;if(!this[_0x2bca64(0x222)][_0x2bca64(0x1f2)](_0x426494))throw new _0x1326c9(_0x2bca64(0x1e3),null,{'channelId':_0x426494});return this[_0x2bca64(0x222)][_0x2bca64(0x1e4)](_0x426494);}async[_0x401576(0x207)](_0x88b5c6){const _0x1b705d=_0x401576,_0x4dbab2=this[_0x1b705d(0x22b)][_0x1b705d(0x1fd)][_0x1b705d(0x1e4)](_0x391c8f),{connection:_0x300abd}=this[_0x1b705d(0x22b)][_0x1b705d(0x1fd)][_0x1b705d(0x1e4)](_0x2f1d55),_0x4cb72f=new Set();for(const {resolvedBy:_0x41ff6f,comments:_0x1bdb1c}of _0x88b5c6){_0x41ff6f&&!_0x4dbab2[_0x1b705d(0x238)](_0x41ff6f)&&_0x4cb72f[_0x1b705d(0x208)](_0x41ff6f);for(const {userId:_0x5f38e2}of _0x1bdb1c)_0x4dbab2[_0x1b705d(0x238)](_0x5f38e2)||_0x4cb72f[_0x1b705d(0x208)](_0x5f38e2);}if(0x0===_0x4cb72f[_0x1b705d(0x227)])return;const _0x283ee5=await _0x4f1c62[_0x1b705d(0x213)](_0x300abd,Array[_0x1b705d(0x1ef)](_0x4cb72f));for(const _0x4b1d4a of _0x283ee5)_0x4dbab2[_0x1b705d(0x238)](_0x4b1d4a['id'])||_0x4dbab2[_0x1b705d(0x225)](_0x4b1d4a);}}export{s as CloudServicesCommentsAdapter};function _0x5ae7(){const _0x447b46=['reconnect','listenTo','has','Permissions','commentThreadAdded','register','disconnect','deletedAt','setPermissions','code','catch','commentRemoved','resolveCommentThread','plugins','commentUpdated','delete','unregister','message','8577555JonhYW','3825636uaVivD','commentThreadRemoved','map','authorId','_fetchMissingUsersForThreads','add','CloudServicesCommentsAdapter','getConnectedSessions','requires','comments','destroy','getCommentThread','mySessionId','cloudservicescommentsadapter-connect-already-connected','getCommentThreads','off','getMany','404','CommentsService','289890TqPblA','set','userId','createdAt','reopenCommentThread','_getService','isOfficialPlugin','cloudservicescommentsadapter-disconnect-not-exist','reopen','attributes','updateComment','_connectService','_services','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','2628822hTBARz','addUser','collaboration.channelId','size','isPremiumPlugin','getComment','commentId','context','removeComment','806423UyCloQ','pluginName','commentAdded','resolvedAt','addCommentThread','2646990gLQwKq','1004984itFUva','permissions','cloud-services-internal-error:\x20Request\x20timeout.','sessionAdd:','_terminateService','getUser','resolvedBy','resolve','update','keys','removeCommentThread','_setUpService','8ogjzOf','content','commentThreadUpdated','commentThreadId','commentThreadResolved','cloud-services-internal-error:\x20Not\x20connected.','updateCommentThread','addToReconnectionStack','commentThreadReopened','cloudservicescommentsadapter-service-not-exist','get','CommentsRepository','config','remove','addComment','assign','adapter','startsWith','connect','2iHSeUX','init','from'];_0x5ae7=function(){return _0x447b46;};return _0x5ae7();}async function F(_0x5a5cd0){const _0x5372c5=_0x401576;if(_0x5372c5(0x214)!==_0x5a5cd0[_0x5372c5(0x1f9)])throw _0x5a5cd0;}function k(_0x1f7244){const _0x2301dc=_0x401576;if((_0x56b04b=_0x1f7244)[_0x2301dc(0x201)][_0x2301dc(0x1eb)](_0x2301dc(0x223))||_0x56b04b[_0x2301dc(0x201)][_0x2301dc(0x1eb)](_0x2301dc(0x244))||_0x56b04b[_0x2301dc(0x201)][_0x2301dc(0x1eb)](_0x2301dc(0x235)))return new Promise(()=>{});var _0x56b04b;throw _0x1f7244;}function B(_0x20671a){const _0x222db7=_0x401576;return{'threadId':_0x20671a[_0x222db7(0x242)],'commentId':_0x20671a[_0x222db7(0x22a)],'content':_0x20671a[_0x222db7(0x240)],'createdAt':_0x20671a[_0x222db7(0x219)],'authorId':_0x20671a[_0x222db7(0x218)],'attributes':_0x20671a[_0x222db7(0x21f)]||{}};}