@univerjs-pro/collaboration-client-node 1.0.0-insiders.20260813-7c9aa50 → 1.0.0-rc.0

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/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x276d3c=_0x37b3;(function(_0x3699fe,_0x594289){const _0x59713c=_0x37b3,_0x29551e=_0x3699fe();while(!![]){try{const _0x3fe69d=-parseInt(_0x59713c(0x175))/0x1+parseInt(_0x59713c(0x17c))/0x2+parseInt(_0x59713c(0x14c))/0x3+parseInt(_0x59713c(0x15c))/0x4+parseInt(_0x59713c(0x169))/0x5+-parseInt(_0x59713c(0x159))/0x6+parseInt(_0x59713c(0x166))/0x7;if(_0x3fe69d===_0x594289)break;else _0x29551e['push'](_0x29551e['shift']());}catch(_0x54f37a){_0x29551e['push'](_0x29551e['shift']());}}}(_0x5ee6,0xc22d8),Object['defineProperty'](exports,Symbol[_0x276d3c(0x14f)],{'value':_0x276d3c(0x176)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs-pro/license'),r=require('@univerjs/core'),i=require('@univerjs/network'),a=require('rxjs'),o=require('ws');var s=_0x276d3c(0x155),c=_0x276d3c(0x142);const l={};function u(_0x4fd6ef,_0x51c849){return function(_0x9ab033,_0xe574bd){_0x51c849(_0x9ab033,_0xe574bd,_0x4fd6ef);};}function d(_0x4ba36a,_0x372ac7,_0x1dcc97,_0xeb2157){const _0x2c7a55=_0x276d3c;var _0x1f2ce4=arguments[_0x2c7a55(0x143)],_0x423325=_0x1f2ce4<0x3?_0x372ac7:_0xeb2157===null?_0xeb2157=Object[_0x2c7a55(0x14a)](_0x372ac7,_0x1dcc97):_0xeb2157,_0x1843f7;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x2c7a55(0x15b))_0x423325=Reflect[_0x2c7a55(0x164)](_0x4ba36a,_0x372ac7,_0x1dcc97,_0xeb2157);else{for(var _0x31b6bb=_0x4ba36a[_0x2c7a55(0x143)]-0x1;_0x31b6bb>=0x0;_0x31b6bb--)(_0x1843f7=_0x4ba36a[_0x31b6bb])&&(_0x423325=(_0x1f2ce4<0x3?_0x1843f7(_0x423325):_0x1f2ce4>0x3?_0x1843f7(_0x372ac7,_0x1dcc97,_0x423325):_0x1843f7(_0x372ac7,_0x1dcc97))||_0x423325);}return _0x1f2ce4>0x3&&_0x423325&&Object['defineProperty'](_0x372ac7,_0x1dcc97,_0x423325),_0x423325;}function _0x37b3(_0x587701,_0x40472a){_0x587701=_0x587701-0x13e;const _0x5ee6b6=_0x5ee6();let _0x37b3db=_0x5ee6b6[_0x587701];return _0x37b3db;}let f=class extends r[_0x276d3c(0x162)]{constructor(_0x5b5eb9){const _0x56673e=_0x276d3c;super(),this[_0x56673e(0x16c)]=_0x5b5eb9;}[_0x276d3c(0x174)](_0x1fd45d){const _0x30ca80=_0x276d3c;var _0x59bc4d;let _0x592321=((_0x59bc4d=this[_0x30ca80(0x16c)][_0x30ca80(0x179)](t[_0x30ca80(0x17b)]))==null?void 0x0:_0x59bc4d[_0x30ca80(0x149)])||{};try{let _0x3e3bca=new o['WebSocket'](_0x1fd45d,{'headers':{..._0x592321}}),_0x2255fc=new r[(_0x30ca80(0x17a))]();return{'URL':_0x1fd45d,'close':(_0xb8e352,_0x25c456)=>{const _0x3092ae=_0x30ca80;_0x3e3bca[_0x3092ae(0x14d)](_0xb8e352,_0x25c456),_0x2255fc[_0x3092ae(0x144)]();},'send':_0x399fd0=>{const _0x268f59=_0x30ca80;_0x3e3bca[_0x268f59(0x161)](_0x399fd0);},'open$':new a[(_0x30ca80(0x150))](_0x4bbb34=>{const _0x4f4a20=_0x30ca80;let _0x128844=_0x18872c=>_0x4bbb34[_0x4f4a20(0x16e)](_0x18872c);_0x3e3bca['addEventListener']('open',_0x128844),_0x2255fc[_0x4f4a20(0x163)]((0x0,r['toDisposable'])(()=>_0x3e3bca[_0x4f4a20(0x181)](_0x4f4a20(0x167),_0x128844)));})[_0x30ca80(0x13f)]((0x0,a[_0x30ca80(0x154)])()),'close$':new a['Observable'](_0x17a27a=>{const _0x461587=_0x30ca80;let _0x360065=_0x33dd5b=>_0x17a27a['next'](_0x33dd5b);_0x3e3bca['addEventListener'](_0x461587(0x14d),_0x360065),_0x2255fc[_0x461587(0x163)]((0x0,r[_0x461587(0x16d)])(()=>_0x3e3bca[_0x461587(0x181)](_0x461587(0x14d),_0x360065)));})[_0x30ca80(0x13f)]((0x0,a[_0x30ca80(0x154)])()),'error$':new a[(_0x30ca80(0x150))](_0x59da4a=>{const _0x16a628=_0x30ca80;let _0x36f97f=_0x47ae60=>_0x59da4a[_0x16a628(0x16e)](_0x47ae60);_0x3e3bca['addEventListener'](_0x16a628(0x14b),_0x36f97f),_0x2255fc['add']((0x0,r['toDisposable'])(()=>_0x3e3bca[_0x16a628(0x181)](_0x16a628(0x14b),_0x36f97f)));})['pipe']((0x0,a[_0x30ca80(0x154)])()),'message$':new a['Observable'](_0x5bcc08=>{const _0x372bd0=_0x30ca80;let _0x1f3472=_0x487048=>_0x5bcc08[_0x372bd0(0x16e)](_0x487048);_0x3e3bca['addEventListener'](_0x372bd0(0x178),_0x1f3472),_0x2255fc[_0x372bd0(0x163)]((0x0,r[_0x372bd0(0x16d)])(()=>_0x3e3bca[_0x372bd0(0x181)](_0x372bd0(0x178),_0x1f3472)));})[_0x30ca80(0x13f)]((0x0,a['share'])())};}catch(_0x5b5199){return console['error'](_0x5b5199),null;}}};f=d([u(0x0,r[_0x276d3c(0x147)])],f);function p(_0x55462e){'@babel/helpers - typeof';const _0x566b6c=_0x276d3c;return p=typeof Symbol==_0x566b6c(0x15b)&&typeof Symbol[_0x566b6c(0x17d)]==_0x566b6c(0x148)?function(_0x5c23a){return typeof _0x5c23a;}:function(_0x335e1e){const _0x73e641=_0x566b6c;return _0x335e1e&&typeof Symbol=='function'&&_0x335e1e[_0x73e641(0x173)]===Symbol&&_0x335e1e!==Symbol[_0x73e641(0x153)]?'symbol':typeof _0x335e1e;},p(_0x55462e);}function m(_0x388878,_0x454101){const _0x39fc8d=_0x276d3c;if(p(_0x388878)!=_0x39fc8d(0x16a)||!_0x388878)return _0x388878;var _0x366c6a=_0x388878[Symbol[_0x39fc8d(0x146)]];if(_0x366c6a!==void 0x0){var _0x89197=_0x366c6a['call'](_0x388878,_0x454101||_0x39fc8d(0x141));if(p(_0x89197)!=_0x39fc8d(0x16a))return _0x89197;throw TypeError(_0x39fc8d(0x152));}return(_0x454101==='string'?String:Number)(_0x388878);}function h(_0x242297){const _0x2151f7=_0x276d3c;var _0x46b4b2=m(_0x242297,_0x2151f7(0x157));return p(_0x46b4b2)=='symbol'?_0x46b4b2:_0x46b4b2+'';}function _0x5ee6(){const _0x557ea5=['toDisposable','next','onStarting','CollaborationSocketService','Injector','ILogService','constructor','createSocket','403533JgVVzb','Module','set','message','getConfig','DisposableCollection','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','118556YoRVlD','iterator','NodeCollaborationSocketService','ISnapshotServerService','registerDependencies','removeEventListener','packageName','pipe','Inject','default','1.0.0-insiders.20260813-7c9aa50','length','dispose','headers','toPrimitive','IConfigService','symbol','customHeaders','getOwnPropertyDescriptor','error','293907IfJgbc','close','DependentOn','toStringTag','Observable','_injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','prototype','share','@univerjs-pro/collaboration-client-node','UniverCollaborationPlugin','string','UniverLicensePlugin','9519564fAxuvm','_registerDependencies','function','1400804LwDSsr','Plugin','ISocketService','_doCreateSocket','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','send','Disposable','add','decorate','_httpService','11545247rJcfNP','open','collaboration-client-node.config','3143550JzWJJA','object','defineProperty','_configService'];_0x5ee6=function(){return _0x557ea5;};return _0x5ee6();}function g(_0x475ade,_0x45f5e3,_0xc30a80){return(_0x45f5e3=h(_0x45f5e3))in _0x475ade?Object['defineProperty'](_0x475ade,_0x45f5e3,{'value':_0xc30a80,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x475ade[_0x45f5e3]=_0xc30a80,_0x475ade;}let _=class extends r[_0x276d3c(0x15d)]{constructor(_0x4d9bf8=l,_0x8376d7,_0x564f91){const _0x415fe9=_0x276d3c;super(),this['_config']=_0x4d9bf8,this[_0x415fe9(0x16c)]=_0x8376d7,this[_0x415fe9(0x151)]=_0x564f91;let {..._0x43ed4a}=(0x0,r['merge'])({},l,this['_config']);this[_0x415fe9(0x16c)]['setConfig'](_0x415fe9(0x168),_0x43ed4a);}[_0x276d3c(0x16f)](){const _0x3d57b0=_0x276d3c;this[_0x3d57b0(0x15a)]();}[_0x276d3c(0x15a)](){const _0x177d0a=_0x276d3c;(0x0,r[_0x177d0a(0x180)])(this[_0x177d0a(0x151)],[[i[_0x177d0a(0x15e)],{'useClass':f}]]);}};g(_,'pluginName',_0x276d3c(0x160)),g(_,_0x276d3c(0x13e),s),g(_,'version',c),_=d([(0x0,r[_0x276d3c(0x14e)])(n[_0x276d3c(0x158)],i['UniverNetworkPlugin'],e[_0x276d3c(0x156)],t['UniverCollaborationClientPlugin']),u(0x1,r['IConfigService']),u(0x2,(0x0,r[_0x276d3c(0x140)])(r[_0x276d3c(0x171)]))],_);let v=class extends t[_0x276d3c(0x170)]{constructor(_0x203b02,_0x566b6b,_0x2e63f2,_0x272e3d,_0x53d92c){const _0x21e7ec=_0x276d3c;super(_0x203b02,_0x566b6b,_0x2e63f2,_0x272e3d,_0x53d92c);let _0x2a945d=this[_0x21e7ec(0x16c)][_0x21e7ec(0x179)](t[_0x21e7ec(0x17b)]);this[_0x21e7ec(0x165)]['registerHTTPInterceptor']({'interceptor':(_0xc9a8b8,_0x32a5c9)=>{const _0x2e2a4b=_0x21e7ec;let _0x3a0b65=_0xc9a8b8[_0x2e2a4b(0x145)];if(_0x2a945d!=null&&_0x2a945d['customHeaders']){for(let _0x55cf12 in _0x2a945d[_0x2e2a4b(0x149)])_0x3a0b65[_0x2e2a4b(0x177)](_0x55cf12,_0x2a945d[_0x2e2a4b(0x149)][_0x55cf12]);}return _0x32a5c9(_0xc9a8b8);}});}async[_0x276d3c(0x174)](_0x585988){const _0x43fea4=_0x276d3c;return this[_0x43fea4(0x15f)](_0x585988);}};v=d([u(0x0,(0x0,r['Inject'])(r[_0x276d3c(0x171)])),u(0x1,(0x0,r['Inject'])(i['HTTPService'])),u(0x2,r['IConfigService']),u(0x3,r[_0x276d3c(0x172)]),u(0x4,e[_0x276d3c(0x17f)])],v),Object[_0x276d3c(0x16b)](exports,_0x276d3c(0x17e),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x276d3c(0x16b)](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
1
+ const _0x14e038=_0x23e0;function _0x51f8(){const _0x40d307=['108412VZhuWf','packageName','Injector','toStringTag','registerDependencies','NodeCollaborationSocketService','UniverNetworkPlugin','DependentOn','message','open','Disposable','1.0.0-rc.0','Plugin','6DMPoCD','prototype','1647pIjERs','error','230586yTFkfA','share','set','CollaborationSocketService','40024XRiOaB','string','UniverCollaborationPlugin','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','object','registerHTTPInterceptor','ILogService','customHeaders','33740YmEFty','IConfigService','decorate','default','DisposableCollection','_doCreateSocket','Inject','toPrimitive','dispose','UniverCollaborationClientPlugin','pipe','length','version','@univerjs-pro/collaboration-client-node','_configService','pluginName','getConfig','constructor','UniverCollaborationClientNodePlugin','symbol','close','115gqHsIw','defineProperty','headers','_config','setConfig','2382420idTjdk','next','1013142bRSPUI','_injector','UniverLicensePlugin','getOwnPropertyDescriptor','iterator','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','addEventListener','call','toDisposable','collaboration-client-node.config','add','7248lKEiXY','function','removeEventListener','Observable','createSocket'];_0x51f8=function(){return _0x40d307;};return _0x51f8();}(function(_0x1dedf2,_0x44651e){const _0x2ad5a8=_0x23e0,_0x23e195=_0x1dedf2();while(!![]){try{const _0x109128=-parseInt(_0x2ad5a8(0x1fa))/0x1+-parseInt(_0x2ad5a8(0x207))/0x2*(-parseInt(_0x2ad5a8(0x20b))/0x3)+parseInt(_0x2ad5a8(0x20f))/0x4*(-parseInt(_0x2ad5a8(0x1e3))/0x5)+parseInt(_0x2ad5a8(0x1ea))/0x6+parseInt(_0x2ad5a8(0x217))/0x7+parseInt(_0x2ad5a8(0x1f5))/0x8*(-parseInt(_0x2ad5a8(0x209))/0x9)+parseInt(_0x2ad5a8(0x1e8))/0xa;if(_0x109128===_0x44651e)break;else _0x23e195['push'](_0x23e195['shift']());}catch(_0x5660d2){_0x23e195['push'](_0x23e195['shift']());}}}(_0x51f8,0x21bad),Object[_0x14e038(0x1e4)](exports,Symbol[_0x14e038(0x1fd)],{'value':'Module'}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs-pro/license'),r=require('@univerjs/core'),i=require('@univerjs/network'),a=require('rxjs'),o=require('ws');var s=_0x14e038(0x224),c=_0x14e038(0x205);const l={};function _0x23e0(_0x2f099e,_0x83113a){_0x2f099e=_0x2f099e-0x1e0;const _0x51f8e4=_0x51f8();let _0x23e077=_0x51f8e4[_0x2f099e];return _0x23e077;}function u(_0x50e8c5,_0x535e0f){return function(_0x45ec31,_0x61ff18){_0x535e0f(_0x45ec31,_0x61ff18,_0x50e8c5);};}function d(_0x278187,_0x39253c,_0x135acd,_0x1f2804){const _0x5edbc6=_0x14e038;var _0x1d0372=arguments['length'],_0x441e1f=_0x1d0372<0x3?_0x39253c:_0x1f2804===null?_0x1f2804=Object[_0x5edbc6(0x1ed)](_0x39253c,_0x135acd):_0x1f2804,_0x4c51fd;if(typeof Reflect==_0x5edbc6(0x213)&&typeof Reflect['decorate']=='function')_0x441e1f=Reflect[_0x5edbc6(0x219)](_0x278187,_0x39253c,_0x135acd,_0x1f2804);else{for(var _0x471a2c=_0x278187[_0x5edbc6(0x222)]-0x1;_0x471a2c>=0x0;_0x471a2c--)(_0x4c51fd=_0x278187[_0x471a2c])&&(_0x441e1f=(_0x1d0372<0x3?_0x4c51fd(_0x441e1f):_0x1d0372>0x3?_0x4c51fd(_0x39253c,_0x135acd,_0x441e1f):_0x4c51fd(_0x39253c,_0x135acd))||_0x441e1f);}return _0x1d0372>0x3&&_0x441e1f&&Object['defineProperty'](_0x39253c,_0x135acd,_0x441e1f),_0x441e1f;}let f=class extends r[_0x14e038(0x204)]{constructor(_0x4ce461){super(),this['_configService']=_0x4ce461;}['createSocket'](_0x36de3c){const _0xb02e9b=_0x14e038;var _0x9d4d34;let _0x52b6ea=((_0x9d4d34=this[_0xb02e9b(0x225)]['getConfig'](t[_0xb02e9b(0x1ef)]))==null?void 0x0:_0x9d4d34['customHeaders'])||{};try{let _0x317ed9=new o['WebSocket'](_0x36de3c,{'headers':{..._0x52b6ea}}),_0xe4536=new r[(_0xb02e9b(0x21b))]();return{'URL':_0x36de3c,'close':(_0x18aeab,_0x372791)=>{const _0x42344e=_0xb02e9b;_0x317ed9[_0x42344e(0x1e2)](_0x18aeab,_0x372791),_0xe4536[_0x42344e(0x21f)]();},'send':_0x514ceb=>{_0x317ed9['send'](_0x514ceb);},'open$':new a[(_0xb02e9b(0x1f8))](_0x969516=>{const _0x4be9b8=_0xb02e9b;let _0x2bc6ae=_0x20bcfe=>_0x969516['next'](_0x20bcfe);_0x317ed9[_0x4be9b8(0x1f0)](_0x4be9b8(0x203),_0x2bc6ae),_0xe4536[_0x4be9b8(0x1f4)]((0x0,r['toDisposable'])(()=>_0x317ed9[_0x4be9b8(0x1f7)]('open',_0x2bc6ae)));})['pipe']((0x0,a[_0xb02e9b(0x20c)])()),'close$':new a[(_0xb02e9b(0x1f8))](_0x5c183e=>{const _0x2b3c26=_0xb02e9b;let _0x2e2aba=_0x3625ec=>_0x5c183e[_0x2b3c26(0x1e9)](_0x3625ec);_0x317ed9[_0x2b3c26(0x1f0)](_0x2b3c26(0x1e2),_0x2e2aba),_0xe4536['add']((0x0,r[_0x2b3c26(0x1f2)])(()=>_0x317ed9[_0x2b3c26(0x1f7)](_0x2b3c26(0x1e2),_0x2e2aba)));})[_0xb02e9b(0x221)]((0x0,a[_0xb02e9b(0x20c)])()),'error$':new a[(_0xb02e9b(0x1f8))](_0x31f403=>{const _0x2aa91b=_0xb02e9b;let _0xa4b044=_0x3425f1=>_0x31f403['next'](_0x3425f1);_0x317ed9['addEventListener'](_0x2aa91b(0x20a),_0xa4b044),_0xe4536['add']((0x0,r[_0x2aa91b(0x1f2)])(()=>_0x317ed9[_0x2aa91b(0x1f7)](_0x2aa91b(0x20a),_0xa4b044)));})[_0xb02e9b(0x221)]((0x0,a[_0xb02e9b(0x20c)])()),'message$':new a[(_0xb02e9b(0x1f8))](_0x3873d4=>{const _0x5e9457=_0xb02e9b;let _0x40e3a5=_0x2b5b41=>_0x3873d4['next'](_0x2b5b41);_0x317ed9['addEventListener'](_0x5e9457(0x202),_0x40e3a5),_0xe4536[_0x5e9457(0x1f4)]((0x0,r[_0x5e9457(0x1f2)])(()=>_0x317ed9['removeEventListener'](_0x5e9457(0x202),_0x40e3a5)));})[_0xb02e9b(0x221)]((0x0,a[_0xb02e9b(0x20c)])())};}catch(_0x4f2978){return console[_0xb02e9b(0x20a)](_0x4f2978),null;}}};f=d([u(0x0,r[_0x14e038(0x218)])],f);function p(_0x4534f7){'@babel/helpers - typeof';const _0x2fc004=_0x14e038;return p=typeof Symbol==_0x2fc004(0x1f6)&&typeof Symbol[_0x2fc004(0x1ee)]==_0x2fc004(0x1e1)?function(_0x4ae559){return typeof _0x4ae559;}:function(_0x55b57b){const _0x304445=_0x2fc004;return _0x55b57b&&typeof Symbol=='function'&&_0x55b57b[_0x304445(0x228)]===Symbol&&_0x55b57b!==Symbol[_0x304445(0x208)]?_0x304445(0x1e1):typeof _0x55b57b;},p(_0x4534f7);}function m(_0x3953e1,_0x17f6d2){const _0x2f10c1=_0x14e038;if(p(_0x3953e1)!='object'||!_0x3953e1)return _0x3953e1;var _0x36fb6f=_0x3953e1[Symbol[_0x2f10c1(0x21e)]];if(_0x36fb6f!==void 0x0){var _0x3d6daf=_0x36fb6f[_0x2f10c1(0x1f1)](_0x3953e1,_0x17f6d2||_0x2f10c1(0x21a));if(p(_0x3d6daf)!=_0x2f10c1(0x213))return _0x3d6daf;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x17f6d2==='string'?String:Number)(_0x3953e1);}function h(_0x4c2637){const _0x3347b8=_0x14e038;var _0x54a557=m(_0x4c2637,_0x3347b8(0x210));return p(_0x54a557)==_0x3347b8(0x1e1)?_0x54a557:_0x54a557+'';}function g(_0x543521,_0x4af5d5,_0x33fb6d){const _0x3e1f76=_0x14e038;return(_0x4af5d5=h(_0x4af5d5))in _0x543521?Object[_0x3e1f76(0x1e4)](_0x543521,_0x4af5d5,{'value':_0x33fb6d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x543521[_0x4af5d5]=_0x33fb6d,_0x543521;}let _=class extends r[_0x14e038(0x206)]{constructor(_0x3a678f=l,_0x322c64,_0x359c0b){const _0x3b92bb=_0x14e038;super(),this[_0x3b92bb(0x1e6)]=_0x3a678f,this[_0x3b92bb(0x225)]=_0x322c64,this[_0x3b92bb(0x1eb)]=_0x359c0b;let {..._0x1e0286}=(0x0,r['merge'])({},l,this[_0x3b92bb(0x1e6)]);this[_0x3b92bb(0x225)][_0x3b92bb(0x1e7)](_0x3b92bb(0x1f3),_0x1e0286);}['onStarting'](){this['_registerDependencies']();}['_registerDependencies'](){const _0xe99972=_0x14e038;(0x0,r[_0xe99972(0x1fe)])(this['_injector'],[[i['ISocketService'],{'useClass':f}]]);}};g(_,_0x14e038(0x226),_0x14e038(0x212)),g(_,_0x14e038(0x1fb),s),g(_,_0x14e038(0x223),c),_=d([(0x0,r[_0x14e038(0x201)])(n[_0x14e038(0x1ec)],i[_0x14e038(0x200)],e[_0x14e038(0x211)],t[_0x14e038(0x220)]),u(0x1,r['IConfigService']),u(0x2,(0x0,r[_0x14e038(0x21d)])(r[_0x14e038(0x1fc)]))],_);let v=class extends t[_0x14e038(0x20e)]{constructor(_0xaa6344,_0x3694a3,_0x115079,_0xd2f075,_0x12f000){const _0x319bc4=_0x14e038;super(_0xaa6344,_0x3694a3,_0x115079,_0xd2f075,_0x12f000);let _0x10d928=this[_0x319bc4(0x225)][_0x319bc4(0x227)](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this['_httpService'][_0x319bc4(0x214)]({'interceptor':(_0x202919,_0x235eb8)=>{const _0x30d772=_0x319bc4;let _0xdb73d5=_0x202919[_0x30d772(0x1e5)];if(_0x10d928!=null&&_0x10d928[_0x30d772(0x216)]){for(let _0x3f3191 in _0x10d928[_0x30d772(0x216)])_0xdb73d5[_0x30d772(0x20d)](_0x3f3191,_0x10d928[_0x30d772(0x216)][_0x3f3191]);}return _0x235eb8(_0x202919);}});}async[_0x14e038(0x1f9)](_0x2ca9f2){const _0x1b1196=_0x14e038;return this[_0x1b1196(0x21c)](_0x2ca9f2);}};v=d([u(0x0,(0x0,r[_0x14e038(0x21d)])(r['Injector'])),u(0x1,(0x0,r[_0x14e038(0x21d)])(i['HTTPService'])),u(0x2,r[_0x14e038(0x218)]),u(0x3,r[_0x14e038(0x215)]),u(0x4,e['ISnapshotServerService'])],v),Object[_0x14e038(0x1e4)](exports,_0x14e038(0x1ff),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x14e038(0x1e4)](exports,_0x14e038(0x1e0),{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x17f3ad=_0x4d9e;(function(_0x3ccd32,_0xabacad){const _0x1c4f03=_0x4d9e,_0x11d37d=_0x3ccd32();while(!![]){try{const _0x190e36=parseInt(_0x1c4f03(0xbd))/0x1+-parseInt(_0x1c4f03(0xe6))/0x2+-parseInt(_0x1c4f03(0xd9))/0x3*(parseInt(_0x1c4f03(0xbe))/0x4)+-parseInt(_0x1c4f03(0xd6))/0x5*(-parseInt(_0x1c4f03(0xd7))/0x6)+parseInt(_0x1c4f03(0xe3))/0x7+-parseInt(_0x1c4f03(0xd2))/0x8*(-parseInt(_0x1c4f03(0xb8))/0x9)+parseInt(_0x1c4f03(0xc2))/0xa*(-parseInt(_0x1c4f03(0xe8))/0xb);if(_0x190e36===_0xabacad)break;else _0x11d37d['push'](_0x11d37d['shift']());}catch(_0xd6884a){_0x11d37d['push'](_0x11d37d['shift']());}}}(_0x2e3e,0x6cc71));import{ISnapshotServerService as _0x34f818,UniverCollaborationPlugin as _0x14d56c}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x49b53e,CollaborationSocketService as _0x3dd154,UniverCollaborationClientPlugin as _0x38c2b6}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x5ae313}from'@univerjs-pro/license';function _0x2e3e(){const _0x57c880=['264ADesXy','registerHTTPInterceptor','next','constructor','210kIJAPN','decorate','message','removeEventListener','version','length','iterator','close','createSocket','_config','pluginName','packageName','toPrimitive','collaboration-client-node.config','setConfig','string','368tqTdwY','add','function','call','726575ZmbDMW','30uUcuYG','getConfig','36129neeENY','_configService','set','addEventListener','onStarting','pipe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','headers','send','default','1245608XJdfuc','symbol','defineProperty','469966FhiVtz','error','410377HyZGaK','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','155304AVnDqR','customHeaders','_registerDependencies','open','object','560526rOTxVg'];_0x2e3e=function(){return _0x57c880;};return _0x2e3e();}import{DependentOn as _0x117516,Disposable as _0xa9a001,DisposableCollection as _0x32d358,IConfigService as _0x26757e,ILogService as _0x4548c9,Inject as _0x42b992,Injector as _0x29f1bb,Plugin as _0x4424ef,merge as _0x49dcd5,registerDependencies as _0x22ce89,toDisposable as _0x2bbf31}from'@univerjs/core';import{HTTPService as _0x164549,ISocketService as _0x527ec9,UniverNetworkPlugin as _0x8d06c4}from'@univerjs/network';import{Observable as _0x1af0e1,share as _0x35ed40}from'rxjs';import{WebSocket as _0x2fe126}from'ws';var C='@univerjs-pro/collaboration-client-node',w='1.0.0-insiders.20260813-7c9aa50';const T={};function E(_0x58674e,_0x32ba5c){return function(_0x2d4199,_0x2ac26c){_0x32ba5c(_0x2d4199,_0x2ac26c,_0x58674e);};}function D(_0x486b8b,_0x52097f,_0x5651b7,_0x482c4f){const _0x2c0955=_0x4d9e;var _0x3ecbf3=arguments[_0x2c0955(0xc7)],_0x5ec398=_0x3ecbf3<0x3?_0x52097f:_0x482c4f===null?_0x482c4f=Object['getOwnPropertyDescriptor'](_0x52097f,_0x5651b7):_0x482c4f,_0x4e5a02;if(typeof Reflect==_0x2c0955(0xbc)&&typeof Reflect[_0x2c0955(0xc3)]==_0x2c0955(0xd4))_0x5ec398=Reflect[_0x2c0955(0xc3)](_0x486b8b,_0x52097f,_0x5651b7,_0x482c4f);else{for(var _0x2c6b46=_0x486b8b[_0x2c0955(0xc7)]-0x1;_0x2c6b46>=0x0;_0x2c6b46--)(_0x4e5a02=_0x486b8b[_0x2c6b46])&&(_0x5ec398=(_0x3ecbf3<0x3?_0x4e5a02(_0x5ec398):_0x3ecbf3>0x3?_0x4e5a02(_0x52097f,_0x5651b7,_0x5ec398):_0x4e5a02(_0x52097f,_0x5651b7))||_0x5ec398);}return _0x3ecbf3>0x3&&_0x5ec398&&Object[_0x2c0955(0xe5)](_0x52097f,_0x5651b7,_0x5ec398),_0x5ec398;}let O=class extends _0xa9a001{constructor(_0x3e4d10){const _0x24e407=_0x4d9e;super(),this[_0x24e407(0xda)]=_0x3e4d10;}[_0x17f3ad(0xca)](_0x516880){const _0x5039ab=_0x17f3ad;var _0x264ac5;let _0x19eec4=((_0x264ac5=this[_0x5039ab(0xda)][_0x5039ab(0xd8)](_0x49b53e))==null?void 0x0:_0x264ac5[_0x5039ab(0xb9)])||{};try{let _0x48742b=new _0x2fe126(_0x516880,{'headers':{..._0x19eec4}}),_0x10e87a=new _0x32d358();return{'URL':_0x516880,'close':(_0x45c1e4,_0x91dfb6)=>{const _0x3aa9a5=_0x5039ab;_0x48742b[_0x3aa9a5(0xc9)](_0x45c1e4,_0x91dfb6),_0x10e87a['dispose']();},'send':_0x39608d=>{const _0xc630c7=_0x5039ab;_0x48742b[_0xc630c7(0xe1)](_0x39608d);},'open$':new _0x1af0e1(_0x215e9c=>{const _0x27076c=_0x5039ab;let _0xffc0d0=_0x44e638=>_0x215e9c[_0x27076c(0xc0)](_0x44e638);_0x48742b[_0x27076c(0xdc)]('open',_0xffc0d0),_0x10e87a[_0x27076c(0xd3)](_0x2bbf31(()=>_0x48742b[_0x27076c(0xc5)](_0x27076c(0xbb),_0xffc0d0)));})['pipe'](_0x35ed40()),'close$':new _0x1af0e1(_0x1f196d=>{const _0x5e0eff=_0x5039ab;let _0x26b097=_0x258a6b=>_0x1f196d['next'](_0x258a6b);_0x48742b[_0x5e0eff(0xdc)](_0x5e0eff(0xc9),_0x26b097),_0x10e87a[_0x5e0eff(0xd3)](_0x2bbf31(()=>_0x48742b[_0x5e0eff(0xc5)](_0x5e0eff(0xc9),_0x26b097)));})['pipe'](_0x35ed40()),'error$':new _0x1af0e1(_0x4db67c=>{const _0x10b4ee=_0x5039ab;let _0xd6a5d1=_0x4fde6c=>_0x4db67c['next'](_0x4fde6c);_0x48742b[_0x10b4ee(0xdc)](_0x10b4ee(0xe7),_0xd6a5d1),_0x10e87a[_0x10b4ee(0xd3)](_0x2bbf31(()=>_0x48742b[_0x10b4ee(0xc5)](_0x10b4ee(0xe7),_0xd6a5d1)));})[_0x5039ab(0xde)](_0x35ed40()),'message$':new _0x1af0e1(_0x1a5240=>{const _0x4c39b5=_0x5039ab;let _0x15494a=_0x1c9ef0=>_0x1a5240[_0x4c39b5(0xc0)](_0x1c9ef0);_0x48742b['addEventListener'](_0x4c39b5(0xc4),_0x15494a),_0x10e87a[_0x4c39b5(0xd3)](_0x2bbf31(()=>_0x48742b[_0x4c39b5(0xc5)](_0x4c39b5(0xc4),_0x15494a)));})['pipe'](_0x35ed40())};}catch(_0x2cee34){return console[_0x5039ab(0xe7)](_0x2cee34),null;}}};O=D([E(0x0,_0x26757e)],O);function k(_0x34ccab){'@babel/helpers - typeof';const _0x4b3436=_0x17f3ad;return k=typeof Symbol==_0x4b3436(0xd4)&&typeof Symbol[_0x4b3436(0xc8)]==_0x4b3436(0xe4)?function(_0x5803ba){return typeof _0x5803ba;}:function(_0x2e92e9){const _0x3fc04f=_0x4b3436;return _0x2e92e9&&typeof Symbol==_0x3fc04f(0xd4)&&_0x2e92e9[_0x3fc04f(0xc1)]===Symbol&&_0x2e92e9!==Symbol['prototype']?_0x3fc04f(0xe4):typeof _0x2e92e9;},k(_0x34ccab);}function A(_0x13091f,_0xb3a777){const _0x1135e5=_0x17f3ad;if(k(_0x13091f)!=_0x1135e5(0xbc)||!_0x13091f)return _0x13091f;var _0x4be381=_0x13091f[Symbol[_0x1135e5(0xce)]];if(_0x4be381!==void 0x0){var _0x32a060=_0x4be381[_0x1135e5(0xd5)](_0x13091f,_0xb3a777||_0x1135e5(0xe2));if(k(_0x32a060)!=_0x1135e5(0xbc))return _0x32a060;throw TypeError(_0x1135e5(0xdf));}return(_0xb3a777===_0x1135e5(0xd1)?String:Number)(_0x13091f);}function j(_0x5bca70){const _0x4b7688=_0x17f3ad;var _0x261f95=A(_0x5bca70,_0x4b7688(0xd1));return k(_0x261f95)==_0x4b7688(0xe4)?_0x261f95:_0x261f95+'';}function M(_0x505baa,_0x166449,_0x18b0a4){const _0xb8b173=_0x17f3ad;return(_0x166449=j(_0x166449))in _0x505baa?Object[_0xb8b173(0xe5)](_0x505baa,_0x166449,{'value':_0x18b0a4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x505baa[_0x166449]=_0x18b0a4,_0x505baa;}function _0x4d9e(_0xf39743,_0x4462e3){_0xf39743=_0xf39743-0xb8;const _0x2e3eb3=_0x2e3e();let _0x4d9ed5=_0x2e3eb3[_0xf39743];return _0x4d9ed5;}let N=class extends _0x4424ef{constructor(_0x547175=T,_0x4db0bc,_0x1350ec){const _0x239bdb=_0x17f3ad;super(),this[_0x239bdb(0xcb)]=_0x547175,this['_configService']=_0x4db0bc,this['_injector']=_0x1350ec;let {..._0x5e3b88}=_0x49dcd5({},T,this[_0x239bdb(0xcb)]);this['_configService'][_0x239bdb(0xd0)](_0x239bdb(0xcf),_0x5e3b88);}[_0x17f3ad(0xdd)](){const _0x1937e0=_0x17f3ad;this[_0x1937e0(0xba)]();}[_0x17f3ad(0xba)](){_0x22ce89(this['_injector'],[[_0x527ec9,{'useClass':O}]]);}};M(N,_0x17f3ad(0xcc),_0x17f3ad(0xe9)),M(N,_0x17f3ad(0xcd),C),M(N,_0x17f3ad(0xc6),w),N=D([_0x117516(_0x5ae313,_0x8d06c4,_0x14d56c,_0x38c2b6),E(0x1,_0x26757e),E(0x2,_0x42b992(_0x29f1bb))],N);let P=class extends _0x3dd154{constructor(_0x4dd0e6,_0x1f7a47,_0x2123cb,_0xcd8f8f,_0x270e01){const _0x2f4a8f=_0x17f3ad;super(_0x4dd0e6,_0x1f7a47,_0x2123cb,_0xcd8f8f,_0x270e01);let _0x3a50d6=this[_0x2f4a8f(0xda)][_0x2f4a8f(0xd8)](_0x49b53e);this['_httpService'][_0x2f4a8f(0xbf)]({'interceptor':(_0x1a618,_0x301730)=>{const _0x267921=_0x2f4a8f;let _0x2cc678=_0x1a618[_0x267921(0xe0)];if(_0x3a50d6!=null&&_0x3a50d6['customHeaders']){for(let _0xbaf13 in _0x3a50d6[_0x267921(0xb9)])_0x2cc678[_0x267921(0xdb)](_0xbaf13,_0x3a50d6[_0x267921(0xb9)][_0xbaf13]);}return _0x301730(_0x1a618);}});}async['createSocket'](_0x4576de){return this['_doCreateSocket'](_0x4576de);}};P=D([E(0x0,_0x42b992(_0x29f1bb)),E(0x1,_0x42b992(_0x164549)),E(0x2,_0x26757e),E(0x3,_0x4548c9),E(0x4,_0x34f818)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0x41e300=_0x3172;(function(_0x5ae645,_0x176beb){const _0x2f81e1=_0x3172,_0x1df91b=_0x5ae645();while(!![]){try{const _0x290d63=-parseInt(_0x2f81e1(0x90))/0x1*(-parseInt(_0x2f81e1(0x96))/0x2)+-parseInt(_0x2f81e1(0x85))/0x3*(parseInt(_0x2f81e1(0x9d))/0x4)+-parseInt(_0x2f81e1(0x93))/0x5+parseInt(_0x2f81e1(0x8c))/0x6+-parseInt(_0x2f81e1(0xa7))/0x7*(parseInt(_0x2f81e1(0x9e))/0x8)+-parseInt(_0x2f81e1(0x99))/0x9*(parseInt(_0x2f81e1(0x86))/0xa)+parseInt(_0x2f81e1(0xa8))/0xb*(parseInt(_0x2f81e1(0xac))/0xc);if(_0x290d63===_0x176beb)break;else _0x1df91b['push'](_0x1df91b['shift']());}catch(_0xd872ff){_0x1df91b['push'](_0x1df91b['shift']());}}}(_0x5ae8,0xdf205));import{ISnapshotServerService as _0x2a8abe,UniverCollaborationPlugin as _0x1ba687}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x570415,CollaborationSocketService as _0x21dcb9,UniverCollaborationClientPlugin as _0xdf2d6}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x1292ea}from'@univerjs-pro/license';import{DependentOn as _0xf8bf16,Disposable as _0x290b84,DisposableCollection as _0xade28b,IConfigService as _0x11f0b3,ILogService as _0x3556ce,Inject as _0x3dd0dc,Injector as _0x5bb429,Plugin as _0x5ba7ba,merge as _0x5b05fc,registerDependencies as _0x9683c3,toDisposable as _0x2dd926}from'@univerjs/core';import{HTTPService as _0x3df89a,ISocketService as _0x21c2bf,UniverNetworkPlugin as _0xda6645}from'@univerjs/network';import{Observable as _0x4aad1d,share as _0x13d9c2}from'rxjs';import{WebSocket as _0x60ed4d}from'ws';var C='@univerjs-pro/collaboration-client-node',w='1.0.0-rc.0';const T={};function E(_0x2456b0,_0x414a12){return function(_0x5d6889,_0x3fc56d){_0x414a12(_0x5d6889,_0x3fc56d,_0x2456b0);};}function _0x5ae8(){const _0x5f5810=['onStarting','removeEventListener','open','203KHRvtA','11aGyhMU','string','_httpService','close','23388072wSjuCg','_configService','customHeaders','39PaRCwG','228400fPcjyb','headers','send','pipe','version','getConfig','7303218OivGZM','decorate','length','add','14WYmMsv','_doCreateSocket','error','4578975vUmGil','message','pluginName','104710ROTvaD','next','function','117KnEUUC','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','_registerDependencies','symbol','501040tHYQtk','39768eHBrcx','addEventListener','dispose','constructor','packageName','object'];_0x5ae8=function(){return _0x5f5810;};return _0x5ae8();}function D(_0x412985,_0x2398f7,_0x3ae36d,_0x59c97a){const _0x1fcfda=_0x3172;var _0x193b75=arguments['length'],_0x268179=_0x193b75<0x3?_0x2398f7:_0x59c97a===null?_0x59c97a=Object['getOwnPropertyDescriptor'](_0x2398f7,_0x3ae36d):_0x59c97a,_0xea00dd;if(typeof Reflect=='object'&&typeof Reflect[_0x1fcfda(0x8d)]==_0x1fcfda(0x98))_0x268179=Reflect[_0x1fcfda(0x8d)](_0x412985,_0x2398f7,_0x3ae36d,_0x59c97a);else{for(var _0x6f4fa7=_0x412985[_0x1fcfda(0x8e)]-0x1;_0x6f4fa7>=0x0;_0x6f4fa7--)(_0xea00dd=_0x412985[_0x6f4fa7])&&(_0x268179=(_0x193b75<0x3?_0xea00dd(_0x268179):_0x193b75>0x3?_0xea00dd(_0x2398f7,_0x3ae36d,_0x268179):_0xea00dd(_0x2398f7,_0x3ae36d))||_0x268179);}return _0x193b75>0x3&&_0x268179&&Object['defineProperty'](_0x2398f7,_0x3ae36d,_0x268179),_0x268179;}let O=class extends _0x290b84{constructor(_0x68b8f0){const _0x25f06e=_0x3172;super(),this[_0x25f06e(0xad)]=_0x68b8f0;}['createSocket'](_0x2ec9ce){const _0x844586=_0x3172;var _0x19bb3b;let _0x2324b3=((_0x19bb3b=this['_configService'][_0x844586(0x8b)](_0x570415))==null?void 0x0:_0x19bb3b['customHeaders'])||{};try{let _0x5dbf79=new _0x60ed4d(_0x2ec9ce,{'headers':{..._0x2324b3}}),_0x4d60ce=new _0xade28b();return{'URL':_0x2ec9ce,'close':(_0x39d43b,_0x276af6)=>{const _0x3a3dc8=_0x844586;_0x5dbf79[_0x3a3dc8(0xab)](_0x39d43b,_0x276af6),_0x4d60ce[_0x3a3dc8(0xa0)]();},'send':_0x455fea=>{const _0x57f8b0=_0x844586;_0x5dbf79[_0x57f8b0(0x88)](_0x455fea);},'open$':new _0x4aad1d(_0x230a99=>{const _0x1b676d=_0x844586;let _0xe0afe3=_0x3e97c8=>_0x230a99['next'](_0x3e97c8);_0x5dbf79['addEventListener'](_0x1b676d(0xa6),_0xe0afe3),_0x4d60ce[_0x1b676d(0x8f)](_0x2dd926(()=>_0x5dbf79[_0x1b676d(0xa5)](_0x1b676d(0xa6),_0xe0afe3)));})[_0x844586(0x89)](_0x13d9c2()),'close$':new _0x4aad1d(_0x1b4db9=>{const _0x3301ce=_0x844586;let _0x21b289=_0x1940f9=>_0x1b4db9[_0x3301ce(0x97)](_0x1940f9);_0x5dbf79['addEventListener']('close',_0x21b289),_0x4d60ce[_0x3301ce(0x8f)](_0x2dd926(()=>_0x5dbf79[_0x3301ce(0xa5)]('close',_0x21b289)));})['pipe'](_0x13d9c2()),'error$':new _0x4aad1d(_0x4bfe44=>{const _0x93c0a0=_0x844586;let _0x1c1d1f=_0xd61569=>_0x4bfe44[_0x93c0a0(0x97)](_0xd61569);_0x5dbf79[_0x93c0a0(0x9f)](_0x93c0a0(0x92),_0x1c1d1f),_0x4d60ce['add'](_0x2dd926(()=>_0x5dbf79[_0x93c0a0(0xa5)](_0x93c0a0(0x92),_0x1c1d1f)));})[_0x844586(0x89)](_0x13d9c2()),'message$':new _0x4aad1d(_0xfb7f53=>{const _0xf78f2c=_0x844586;let _0x220dee=_0x34e9f7=>_0xfb7f53[_0xf78f2c(0x97)](_0x34e9f7);_0x5dbf79['addEventListener'](_0xf78f2c(0x94),_0x220dee),_0x4d60ce[_0xf78f2c(0x8f)](_0x2dd926(()=>_0x5dbf79[_0xf78f2c(0xa5)](_0xf78f2c(0x94),_0x220dee)));})['pipe'](_0x13d9c2())};}catch(_0x21f0e4){return console['error'](_0x21f0e4),null;}}};O=D([E(0x0,_0x11f0b3)],O);function k(_0x3dfa98){'@babel/helpers - typeof';const _0x5e8ef4=_0x3172;return k=typeof Symbol==_0x5e8ef4(0x98)&&typeof Symbol['iterator']=='symbol'?function(_0x40acb1){return typeof _0x40acb1;}:function(_0xead256){const _0x2c2521=_0x5e8ef4;return _0xead256&&typeof Symbol==_0x2c2521(0x98)&&_0xead256[_0x2c2521(0xa1)]===Symbol&&_0xead256!==Symbol['prototype']?'symbol':typeof _0xead256;},k(_0x3dfa98);}function A(_0x5ae429,_0x129d8a){const _0x548781=_0x3172;if(k(_0x5ae429)!=_0x548781(0xa3)||!_0x5ae429)return _0x5ae429;var _0x279197=_0x5ae429[Symbol['toPrimitive']];if(_0x279197!==void 0x0){var _0x4a6b94=_0x279197['call'](_0x5ae429,_0x129d8a||'default');if(k(_0x4a6b94)!=_0x548781(0xa3))return _0x4a6b94;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x129d8a===_0x548781(0xa9)?String:Number)(_0x5ae429);}function _0x3172(_0x2da58c,_0x39d3c3){_0x2da58c=_0x2da58c-0x85;const _0x5ae81e=_0x5ae8();let _0x317281=_0x5ae81e[_0x2da58c];return _0x317281;}function j(_0x3afa2e){const _0x3fdb54=_0x3172;var _0x57e28c=A(_0x3afa2e,'string');return k(_0x57e28c)==_0x3fdb54(0x9c)?_0x57e28c:_0x57e28c+'';}function M(_0x322dc3,_0x19f448,_0x1d46ed){return(_0x19f448=j(_0x19f448))in _0x322dc3?Object['defineProperty'](_0x322dc3,_0x19f448,{'value':_0x1d46ed,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x322dc3[_0x19f448]=_0x1d46ed,_0x322dc3;}let N=class extends _0x5ba7ba{constructor(_0x4d3d26=T,_0x86267a,_0x59ce46){const _0xf7c7f8=_0x3172;super(),this['_config']=_0x4d3d26,this[_0xf7c7f8(0xad)]=_0x86267a,this['_injector']=_0x59ce46;let {..._0xc14034}=_0x5b05fc({},T,this['_config']);this[_0xf7c7f8(0xad)]['setConfig']('collaboration-client-node.config',_0xc14034);}[_0x41e300(0xa4)](){const _0x21b8a4=_0x41e300;this[_0x21b8a4(0x9b)]();}['_registerDependencies'](){_0x9683c3(this['_injector'],[[_0x21c2bf,{'useClass':O}]]);}};M(N,_0x41e300(0x95),_0x41e300(0x9a)),M(N,_0x41e300(0xa2),C),M(N,_0x41e300(0x8a),w),N=D([_0xf8bf16(_0x1292ea,_0xda6645,_0x1ba687,_0xdf2d6),E(0x1,_0x11f0b3),E(0x2,_0x3dd0dc(_0x5bb429))],N);let P=class extends _0x21dcb9{constructor(_0x411041,_0x3fa0ff,_0x52775f,_0x5f1dd5,_0x533595){const _0x535ef6=_0x41e300;super(_0x411041,_0x3fa0ff,_0x52775f,_0x5f1dd5,_0x533595);let _0x593fb=this[_0x535ef6(0xad)][_0x535ef6(0x8b)](_0x570415);this[_0x535ef6(0xaa)]['registerHTTPInterceptor']({'interceptor':(_0x310b56,_0x554580)=>{const _0x329e08=_0x535ef6;let _0x10823d=_0x310b56[_0x329e08(0x87)];if(_0x593fb!=null&&_0x593fb[_0x329e08(0xae)]){for(let _0x45e8e2 in _0x593fb[_0x329e08(0xae)])_0x10823d['set'](_0x45e8e2,_0x593fb[_0x329e08(0xae)][_0x45e8e2]);}return _0x554580(_0x310b56);}});}async['createSocket'](_0x44b8b7){const _0x4104dc=_0x41e300;return this[_0x4104dc(0x91)](_0x44b8b7);}};P=D([E(0x0,_0x3dd0dc(_0x5bb429)),E(0x1,_0x3dd0dc(_0x3df89a)),E(0x2,_0x11f0b3),E(0x3,_0x3556ce),E(0x4,_0x2a8abe)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x17f3ad=_0x4d9e;(function(_0x3ccd32,_0xabacad){const _0x1c4f03=_0x4d9e,_0x11d37d=_0x3ccd32();while(!![]){try{const _0x190e36=parseInt(_0x1c4f03(0xbd))/0x1+-parseInt(_0x1c4f03(0xe6))/0x2+-parseInt(_0x1c4f03(0xd9))/0x3*(parseInt(_0x1c4f03(0xbe))/0x4)+-parseInt(_0x1c4f03(0xd6))/0x5*(-parseInt(_0x1c4f03(0xd7))/0x6)+parseInt(_0x1c4f03(0xe3))/0x7+-parseInt(_0x1c4f03(0xd2))/0x8*(-parseInt(_0x1c4f03(0xb8))/0x9)+parseInt(_0x1c4f03(0xc2))/0xa*(-parseInt(_0x1c4f03(0xe8))/0xb);if(_0x190e36===_0xabacad)break;else _0x11d37d['push'](_0x11d37d['shift']());}catch(_0xd6884a){_0x11d37d['push'](_0x11d37d['shift']());}}}(_0x2e3e,0x6cc71));import{ISnapshotServerService as _0x34f818,UniverCollaborationPlugin as _0x14d56c}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x49b53e,CollaborationSocketService as _0x3dd154,UniverCollaborationClientPlugin as _0x38c2b6}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x5ae313}from'@univerjs-pro/license';function _0x2e3e(){const _0x57c880=['264ADesXy','registerHTTPInterceptor','next','constructor','210kIJAPN','decorate','message','removeEventListener','version','length','iterator','close','createSocket','_config','pluginName','packageName','toPrimitive','collaboration-client-node.config','setConfig','string','368tqTdwY','add','function','call','726575ZmbDMW','30uUcuYG','getConfig','36129neeENY','_configService','set','addEventListener','onStarting','pipe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','headers','send','default','1245608XJdfuc','symbol','defineProperty','469966FhiVtz','error','410377HyZGaK','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','155304AVnDqR','customHeaders','_registerDependencies','open','object','560526rOTxVg'];_0x2e3e=function(){return _0x57c880;};return _0x2e3e();}import{DependentOn as _0x117516,Disposable as _0xa9a001,DisposableCollection as _0x32d358,IConfigService as _0x26757e,ILogService as _0x4548c9,Inject as _0x42b992,Injector as _0x29f1bb,Plugin as _0x4424ef,merge as _0x49dcd5,registerDependencies as _0x22ce89,toDisposable as _0x2bbf31}from'@univerjs/core';import{HTTPService as _0x164549,ISocketService as _0x527ec9,UniverNetworkPlugin as _0x8d06c4}from'@univerjs/network';import{Observable as _0x1af0e1,share as _0x35ed40}from'rxjs';import{WebSocket as _0x2fe126}from'ws';var C='@univerjs-pro/collaboration-client-node',w='1.0.0-insiders.20260813-7c9aa50';const T={};function E(_0x58674e,_0x32ba5c){return function(_0x2d4199,_0x2ac26c){_0x32ba5c(_0x2d4199,_0x2ac26c,_0x58674e);};}function D(_0x486b8b,_0x52097f,_0x5651b7,_0x482c4f){const _0x2c0955=_0x4d9e;var _0x3ecbf3=arguments[_0x2c0955(0xc7)],_0x5ec398=_0x3ecbf3<0x3?_0x52097f:_0x482c4f===null?_0x482c4f=Object['getOwnPropertyDescriptor'](_0x52097f,_0x5651b7):_0x482c4f,_0x4e5a02;if(typeof Reflect==_0x2c0955(0xbc)&&typeof Reflect[_0x2c0955(0xc3)]==_0x2c0955(0xd4))_0x5ec398=Reflect[_0x2c0955(0xc3)](_0x486b8b,_0x52097f,_0x5651b7,_0x482c4f);else{for(var _0x2c6b46=_0x486b8b[_0x2c0955(0xc7)]-0x1;_0x2c6b46>=0x0;_0x2c6b46--)(_0x4e5a02=_0x486b8b[_0x2c6b46])&&(_0x5ec398=(_0x3ecbf3<0x3?_0x4e5a02(_0x5ec398):_0x3ecbf3>0x3?_0x4e5a02(_0x52097f,_0x5651b7,_0x5ec398):_0x4e5a02(_0x52097f,_0x5651b7))||_0x5ec398);}return _0x3ecbf3>0x3&&_0x5ec398&&Object[_0x2c0955(0xe5)](_0x52097f,_0x5651b7,_0x5ec398),_0x5ec398;}let O=class extends _0xa9a001{constructor(_0x3e4d10){const _0x24e407=_0x4d9e;super(),this[_0x24e407(0xda)]=_0x3e4d10;}[_0x17f3ad(0xca)](_0x516880){const _0x5039ab=_0x17f3ad;var _0x264ac5;let _0x19eec4=((_0x264ac5=this[_0x5039ab(0xda)][_0x5039ab(0xd8)](_0x49b53e))==null?void 0x0:_0x264ac5[_0x5039ab(0xb9)])||{};try{let _0x48742b=new _0x2fe126(_0x516880,{'headers':{..._0x19eec4}}),_0x10e87a=new _0x32d358();return{'URL':_0x516880,'close':(_0x45c1e4,_0x91dfb6)=>{const _0x3aa9a5=_0x5039ab;_0x48742b[_0x3aa9a5(0xc9)](_0x45c1e4,_0x91dfb6),_0x10e87a['dispose']();},'send':_0x39608d=>{const _0xc630c7=_0x5039ab;_0x48742b[_0xc630c7(0xe1)](_0x39608d);},'open$':new _0x1af0e1(_0x215e9c=>{const _0x27076c=_0x5039ab;let _0xffc0d0=_0x44e638=>_0x215e9c[_0x27076c(0xc0)](_0x44e638);_0x48742b[_0x27076c(0xdc)]('open',_0xffc0d0),_0x10e87a[_0x27076c(0xd3)](_0x2bbf31(()=>_0x48742b[_0x27076c(0xc5)](_0x27076c(0xbb),_0xffc0d0)));})['pipe'](_0x35ed40()),'close$':new _0x1af0e1(_0x1f196d=>{const _0x5e0eff=_0x5039ab;let _0x26b097=_0x258a6b=>_0x1f196d['next'](_0x258a6b);_0x48742b[_0x5e0eff(0xdc)](_0x5e0eff(0xc9),_0x26b097),_0x10e87a[_0x5e0eff(0xd3)](_0x2bbf31(()=>_0x48742b[_0x5e0eff(0xc5)](_0x5e0eff(0xc9),_0x26b097)));})['pipe'](_0x35ed40()),'error$':new _0x1af0e1(_0x4db67c=>{const _0x10b4ee=_0x5039ab;let _0xd6a5d1=_0x4fde6c=>_0x4db67c['next'](_0x4fde6c);_0x48742b[_0x10b4ee(0xdc)](_0x10b4ee(0xe7),_0xd6a5d1),_0x10e87a[_0x10b4ee(0xd3)](_0x2bbf31(()=>_0x48742b[_0x10b4ee(0xc5)](_0x10b4ee(0xe7),_0xd6a5d1)));})[_0x5039ab(0xde)](_0x35ed40()),'message$':new _0x1af0e1(_0x1a5240=>{const _0x4c39b5=_0x5039ab;let _0x15494a=_0x1c9ef0=>_0x1a5240[_0x4c39b5(0xc0)](_0x1c9ef0);_0x48742b['addEventListener'](_0x4c39b5(0xc4),_0x15494a),_0x10e87a[_0x4c39b5(0xd3)](_0x2bbf31(()=>_0x48742b[_0x4c39b5(0xc5)](_0x4c39b5(0xc4),_0x15494a)));})['pipe'](_0x35ed40())};}catch(_0x2cee34){return console[_0x5039ab(0xe7)](_0x2cee34),null;}}};O=D([E(0x0,_0x26757e)],O);function k(_0x34ccab){'@babel/helpers - typeof';const _0x4b3436=_0x17f3ad;return k=typeof Symbol==_0x4b3436(0xd4)&&typeof Symbol[_0x4b3436(0xc8)]==_0x4b3436(0xe4)?function(_0x5803ba){return typeof _0x5803ba;}:function(_0x2e92e9){const _0x3fc04f=_0x4b3436;return _0x2e92e9&&typeof Symbol==_0x3fc04f(0xd4)&&_0x2e92e9[_0x3fc04f(0xc1)]===Symbol&&_0x2e92e9!==Symbol['prototype']?_0x3fc04f(0xe4):typeof _0x2e92e9;},k(_0x34ccab);}function A(_0x13091f,_0xb3a777){const _0x1135e5=_0x17f3ad;if(k(_0x13091f)!=_0x1135e5(0xbc)||!_0x13091f)return _0x13091f;var _0x4be381=_0x13091f[Symbol[_0x1135e5(0xce)]];if(_0x4be381!==void 0x0){var _0x32a060=_0x4be381[_0x1135e5(0xd5)](_0x13091f,_0xb3a777||_0x1135e5(0xe2));if(k(_0x32a060)!=_0x1135e5(0xbc))return _0x32a060;throw TypeError(_0x1135e5(0xdf));}return(_0xb3a777===_0x1135e5(0xd1)?String:Number)(_0x13091f);}function j(_0x5bca70){const _0x4b7688=_0x17f3ad;var _0x261f95=A(_0x5bca70,_0x4b7688(0xd1));return k(_0x261f95)==_0x4b7688(0xe4)?_0x261f95:_0x261f95+'';}function M(_0x505baa,_0x166449,_0x18b0a4){const _0xb8b173=_0x17f3ad;return(_0x166449=j(_0x166449))in _0x505baa?Object[_0xb8b173(0xe5)](_0x505baa,_0x166449,{'value':_0x18b0a4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x505baa[_0x166449]=_0x18b0a4,_0x505baa;}function _0x4d9e(_0xf39743,_0x4462e3){_0xf39743=_0xf39743-0xb8;const _0x2e3eb3=_0x2e3e();let _0x4d9ed5=_0x2e3eb3[_0xf39743];return _0x4d9ed5;}let N=class extends _0x4424ef{constructor(_0x547175=T,_0x4db0bc,_0x1350ec){const _0x239bdb=_0x17f3ad;super(),this[_0x239bdb(0xcb)]=_0x547175,this['_configService']=_0x4db0bc,this['_injector']=_0x1350ec;let {..._0x5e3b88}=_0x49dcd5({},T,this[_0x239bdb(0xcb)]);this['_configService'][_0x239bdb(0xd0)](_0x239bdb(0xcf),_0x5e3b88);}[_0x17f3ad(0xdd)](){const _0x1937e0=_0x17f3ad;this[_0x1937e0(0xba)]();}[_0x17f3ad(0xba)](){_0x22ce89(this['_injector'],[[_0x527ec9,{'useClass':O}]]);}};M(N,_0x17f3ad(0xcc),_0x17f3ad(0xe9)),M(N,_0x17f3ad(0xcd),C),M(N,_0x17f3ad(0xc6),w),N=D([_0x117516(_0x5ae313,_0x8d06c4,_0x14d56c,_0x38c2b6),E(0x1,_0x26757e),E(0x2,_0x42b992(_0x29f1bb))],N);let P=class extends _0x3dd154{constructor(_0x4dd0e6,_0x1f7a47,_0x2123cb,_0xcd8f8f,_0x270e01){const _0x2f4a8f=_0x17f3ad;super(_0x4dd0e6,_0x1f7a47,_0x2123cb,_0xcd8f8f,_0x270e01);let _0x3a50d6=this[_0x2f4a8f(0xda)][_0x2f4a8f(0xd8)](_0x49b53e);this['_httpService'][_0x2f4a8f(0xbf)]({'interceptor':(_0x1a618,_0x301730)=>{const _0x267921=_0x2f4a8f;let _0x2cc678=_0x1a618[_0x267921(0xe0)];if(_0x3a50d6!=null&&_0x3a50d6['customHeaders']){for(let _0xbaf13 in _0x3a50d6[_0x267921(0xb9)])_0x2cc678[_0x267921(0xdb)](_0xbaf13,_0x3a50d6[_0x267921(0xb9)][_0xbaf13]);}return _0x301730(_0x1a618);}});}async['createSocket'](_0x4576de){return this['_doCreateSocket'](_0x4576de);}};P=D([E(0x0,_0x42b992(_0x29f1bb)),E(0x1,_0x42b992(_0x164549)),E(0x2,_0x26757e),E(0x3,_0x4548c9),E(0x4,_0x34f818)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0x41e300=_0x3172;(function(_0x5ae645,_0x176beb){const _0x2f81e1=_0x3172,_0x1df91b=_0x5ae645();while(!![]){try{const _0x290d63=-parseInt(_0x2f81e1(0x90))/0x1*(-parseInt(_0x2f81e1(0x96))/0x2)+-parseInt(_0x2f81e1(0x85))/0x3*(parseInt(_0x2f81e1(0x9d))/0x4)+-parseInt(_0x2f81e1(0x93))/0x5+parseInt(_0x2f81e1(0x8c))/0x6+-parseInt(_0x2f81e1(0xa7))/0x7*(parseInt(_0x2f81e1(0x9e))/0x8)+-parseInt(_0x2f81e1(0x99))/0x9*(parseInt(_0x2f81e1(0x86))/0xa)+parseInt(_0x2f81e1(0xa8))/0xb*(parseInt(_0x2f81e1(0xac))/0xc);if(_0x290d63===_0x176beb)break;else _0x1df91b['push'](_0x1df91b['shift']());}catch(_0xd872ff){_0x1df91b['push'](_0x1df91b['shift']());}}}(_0x5ae8,0xdf205));import{ISnapshotServerService as _0x2a8abe,UniverCollaborationPlugin as _0x1ba687}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x570415,CollaborationSocketService as _0x21dcb9,UniverCollaborationClientPlugin as _0xdf2d6}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x1292ea}from'@univerjs-pro/license';import{DependentOn as _0xf8bf16,Disposable as _0x290b84,DisposableCollection as _0xade28b,IConfigService as _0x11f0b3,ILogService as _0x3556ce,Inject as _0x3dd0dc,Injector as _0x5bb429,Plugin as _0x5ba7ba,merge as _0x5b05fc,registerDependencies as _0x9683c3,toDisposable as _0x2dd926}from'@univerjs/core';import{HTTPService as _0x3df89a,ISocketService as _0x21c2bf,UniverNetworkPlugin as _0xda6645}from'@univerjs/network';import{Observable as _0x4aad1d,share as _0x13d9c2}from'rxjs';import{WebSocket as _0x60ed4d}from'ws';var C='@univerjs-pro/collaboration-client-node',w='1.0.0-rc.0';const T={};function E(_0x2456b0,_0x414a12){return function(_0x5d6889,_0x3fc56d){_0x414a12(_0x5d6889,_0x3fc56d,_0x2456b0);};}function _0x5ae8(){const _0x5f5810=['onStarting','removeEventListener','open','203KHRvtA','11aGyhMU','string','_httpService','close','23388072wSjuCg','_configService','customHeaders','39PaRCwG','228400fPcjyb','headers','send','pipe','version','getConfig','7303218OivGZM','decorate','length','add','14WYmMsv','_doCreateSocket','error','4578975vUmGil','message','pluginName','104710ROTvaD','next','function','117KnEUUC','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','_registerDependencies','symbol','501040tHYQtk','39768eHBrcx','addEventListener','dispose','constructor','packageName','object'];_0x5ae8=function(){return _0x5f5810;};return _0x5ae8();}function D(_0x412985,_0x2398f7,_0x3ae36d,_0x59c97a){const _0x1fcfda=_0x3172;var _0x193b75=arguments['length'],_0x268179=_0x193b75<0x3?_0x2398f7:_0x59c97a===null?_0x59c97a=Object['getOwnPropertyDescriptor'](_0x2398f7,_0x3ae36d):_0x59c97a,_0xea00dd;if(typeof Reflect=='object'&&typeof Reflect[_0x1fcfda(0x8d)]==_0x1fcfda(0x98))_0x268179=Reflect[_0x1fcfda(0x8d)](_0x412985,_0x2398f7,_0x3ae36d,_0x59c97a);else{for(var _0x6f4fa7=_0x412985[_0x1fcfda(0x8e)]-0x1;_0x6f4fa7>=0x0;_0x6f4fa7--)(_0xea00dd=_0x412985[_0x6f4fa7])&&(_0x268179=(_0x193b75<0x3?_0xea00dd(_0x268179):_0x193b75>0x3?_0xea00dd(_0x2398f7,_0x3ae36d,_0x268179):_0xea00dd(_0x2398f7,_0x3ae36d))||_0x268179);}return _0x193b75>0x3&&_0x268179&&Object['defineProperty'](_0x2398f7,_0x3ae36d,_0x268179),_0x268179;}let O=class extends _0x290b84{constructor(_0x68b8f0){const _0x25f06e=_0x3172;super(),this[_0x25f06e(0xad)]=_0x68b8f0;}['createSocket'](_0x2ec9ce){const _0x844586=_0x3172;var _0x19bb3b;let _0x2324b3=((_0x19bb3b=this['_configService'][_0x844586(0x8b)](_0x570415))==null?void 0x0:_0x19bb3b['customHeaders'])||{};try{let _0x5dbf79=new _0x60ed4d(_0x2ec9ce,{'headers':{..._0x2324b3}}),_0x4d60ce=new _0xade28b();return{'URL':_0x2ec9ce,'close':(_0x39d43b,_0x276af6)=>{const _0x3a3dc8=_0x844586;_0x5dbf79[_0x3a3dc8(0xab)](_0x39d43b,_0x276af6),_0x4d60ce[_0x3a3dc8(0xa0)]();},'send':_0x455fea=>{const _0x57f8b0=_0x844586;_0x5dbf79[_0x57f8b0(0x88)](_0x455fea);},'open$':new _0x4aad1d(_0x230a99=>{const _0x1b676d=_0x844586;let _0xe0afe3=_0x3e97c8=>_0x230a99['next'](_0x3e97c8);_0x5dbf79['addEventListener'](_0x1b676d(0xa6),_0xe0afe3),_0x4d60ce[_0x1b676d(0x8f)](_0x2dd926(()=>_0x5dbf79[_0x1b676d(0xa5)](_0x1b676d(0xa6),_0xe0afe3)));})[_0x844586(0x89)](_0x13d9c2()),'close$':new _0x4aad1d(_0x1b4db9=>{const _0x3301ce=_0x844586;let _0x21b289=_0x1940f9=>_0x1b4db9[_0x3301ce(0x97)](_0x1940f9);_0x5dbf79['addEventListener']('close',_0x21b289),_0x4d60ce[_0x3301ce(0x8f)](_0x2dd926(()=>_0x5dbf79[_0x3301ce(0xa5)]('close',_0x21b289)));})['pipe'](_0x13d9c2()),'error$':new _0x4aad1d(_0x4bfe44=>{const _0x93c0a0=_0x844586;let _0x1c1d1f=_0xd61569=>_0x4bfe44[_0x93c0a0(0x97)](_0xd61569);_0x5dbf79[_0x93c0a0(0x9f)](_0x93c0a0(0x92),_0x1c1d1f),_0x4d60ce['add'](_0x2dd926(()=>_0x5dbf79[_0x93c0a0(0xa5)](_0x93c0a0(0x92),_0x1c1d1f)));})[_0x844586(0x89)](_0x13d9c2()),'message$':new _0x4aad1d(_0xfb7f53=>{const _0xf78f2c=_0x844586;let _0x220dee=_0x34e9f7=>_0xfb7f53[_0xf78f2c(0x97)](_0x34e9f7);_0x5dbf79['addEventListener'](_0xf78f2c(0x94),_0x220dee),_0x4d60ce[_0xf78f2c(0x8f)](_0x2dd926(()=>_0x5dbf79[_0xf78f2c(0xa5)](_0xf78f2c(0x94),_0x220dee)));})['pipe'](_0x13d9c2())};}catch(_0x21f0e4){return console['error'](_0x21f0e4),null;}}};O=D([E(0x0,_0x11f0b3)],O);function k(_0x3dfa98){'@babel/helpers - typeof';const _0x5e8ef4=_0x3172;return k=typeof Symbol==_0x5e8ef4(0x98)&&typeof Symbol['iterator']=='symbol'?function(_0x40acb1){return typeof _0x40acb1;}:function(_0xead256){const _0x2c2521=_0x5e8ef4;return _0xead256&&typeof Symbol==_0x2c2521(0x98)&&_0xead256[_0x2c2521(0xa1)]===Symbol&&_0xead256!==Symbol['prototype']?'symbol':typeof _0xead256;},k(_0x3dfa98);}function A(_0x5ae429,_0x129d8a){const _0x548781=_0x3172;if(k(_0x5ae429)!=_0x548781(0xa3)||!_0x5ae429)return _0x5ae429;var _0x279197=_0x5ae429[Symbol['toPrimitive']];if(_0x279197!==void 0x0){var _0x4a6b94=_0x279197['call'](_0x5ae429,_0x129d8a||'default');if(k(_0x4a6b94)!=_0x548781(0xa3))return _0x4a6b94;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x129d8a===_0x548781(0xa9)?String:Number)(_0x5ae429);}function _0x3172(_0x2da58c,_0x39d3c3){_0x2da58c=_0x2da58c-0x85;const _0x5ae81e=_0x5ae8();let _0x317281=_0x5ae81e[_0x2da58c];return _0x317281;}function j(_0x3afa2e){const _0x3fdb54=_0x3172;var _0x57e28c=A(_0x3afa2e,'string');return k(_0x57e28c)==_0x3fdb54(0x9c)?_0x57e28c:_0x57e28c+'';}function M(_0x322dc3,_0x19f448,_0x1d46ed){return(_0x19f448=j(_0x19f448))in _0x322dc3?Object['defineProperty'](_0x322dc3,_0x19f448,{'value':_0x1d46ed,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x322dc3[_0x19f448]=_0x1d46ed,_0x322dc3;}let N=class extends _0x5ba7ba{constructor(_0x4d3d26=T,_0x86267a,_0x59ce46){const _0xf7c7f8=_0x3172;super(),this['_config']=_0x4d3d26,this[_0xf7c7f8(0xad)]=_0x86267a,this['_injector']=_0x59ce46;let {..._0xc14034}=_0x5b05fc({},T,this['_config']);this[_0xf7c7f8(0xad)]['setConfig']('collaboration-client-node.config',_0xc14034);}[_0x41e300(0xa4)](){const _0x21b8a4=_0x41e300;this[_0x21b8a4(0x9b)]();}['_registerDependencies'](){_0x9683c3(this['_injector'],[[_0x21c2bf,{'useClass':O}]]);}};M(N,_0x41e300(0x95),_0x41e300(0x9a)),M(N,_0x41e300(0xa2),C),M(N,_0x41e300(0x8a),w),N=D([_0xf8bf16(_0x1292ea,_0xda6645,_0x1ba687,_0xdf2d6),E(0x1,_0x11f0b3),E(0x2,_0x3dd0dc(_0x5bb429))],N);let P=class extends _0x21dcb9{constructor(_0x411041,_0x3fa0ff,_0x52775f,_0x5f1dd5,_0x533595){const _0x535ef6=_0x41e300;super(_0x411041,_0x3fa0ff,_0x52775f,_0x5f1dd5,_0x533595);let _0x593fb=this[_0x535ef6(0xad)][_0x535ef6(0x8b)](_0x570415);this[_0x535ef6(0xaa)]['registerHTTPInterceptor']({'interceptor':(_0x310b56,_0x554580)=>{const _0x329e08=_0x535ef6;let _0x10823d=_0x310b56[_0x329e08(0x87)];if(_0x593fb!=null&&_0x593fb[_0x329e08(0xae)]){for(let _0x45e8e2 in _0x593fb[_0x329e08(0xae)])_0x10823d['set'](_0x45e8e2,_0x593fb[_0x329e08(0xae)][_0x45e8e2]);}return _0x554580(_0x310b56);}});}async['createSocket'](_0x44b8b7){const _0x4104dc=_0x41e300;return this[_0x4104dc(0x91)](_0x44b8b7);}};P=D([E(0x0,_0x3dd0dc(_0x5bb429)),E(0x1,_0x3dd0dc(_0x3df89a)),E(0x2,_0x11f0b3),E(0x3,_0x3556ce),E(0x4,_0x2a8abe)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x16a4(_0x2c6e99,_0x29afb9){_0x2c6e99=_0x2c6e99-0x19b;const _0xd67547=_0xd675();let _0x16a46e=_0xd67547[_0x2c6e99];return _0x16a46e;}(function(_0x2d074e,_0x56ede3){const _0x552900=_0x16a4,_0x4eea3e=_0x2d074e();while(!![]){try{const _0xb40736=parseInt(_0x552900(0x1ad))/0x1+-parseInt(_0x552900(0x1c4))/0x2*(parseInt(_0x552900(0x1af))/0x3)+parseInt(_0x552900(0x1c9))/0x4+parseInt(_0x552900(0x1c1))/0x5+parseInt(_0x552900(0x1ca))/0x6*(-parseInt(_0x552900(0x1a2))/0x7)+parseInt(_0x552900(0x1e2))/0x8*(-parseInt(_0x552900(0x1de))/0x9)+-parseInt(_0x552900(0x19e))/0xa;if(_0xb40736===_0x56ede3)break;else _0x4eea3e['push'](_0x4eea3e['shift']());}catch(_0x2c6581){_0x4eea3e['push'](_0x4eea3e['shift']());}}}(_0xd675,0xa86b5),function(_0x1d77f0,_0x2fe382){const _0x30962f=_0x16a4;typeof exports==_0x30962f(0x1bb)&&typeof module<'u'?_0x2fe382(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x30962f(0x1a5)&&define['amd']?define(['exports',_0x30962f(0x1e0),'@univerjs-pro/collaboration-client',_0x30962f(0x1c0),_0x30962f(0x1ce),_0x30962f(0x1d6),'rxjs'],_0x2fe382):(_0x1d77f0=typeof globalThis<'u'?globalThis:_0x1d77f0||self,_0x2fe382(_0x1d77f0['UniverProCollaborationClientNode']={},_0x1d77f0[_0x30962f(0x1a3)],_0x1d77f0[_0x30962f(0x1ae)],_0x1d77f0[_0x30962f(0x1bf)],_0x1d77f0[_0x30962f(0x1e1)],_0x1d77f0[_0x30962f(0x19b)],_0x1d77f0['rxjs']));}(this,function(_0x1b6f44,_0x5d243e,_0x2388a9,_0x271cfc,_0xba8700,_0x494a85,_0x5c1461){const _0x5f3cd1=_0x16a4;Object[_0x5f3cd1(0x1cc)](_0x1b6f44,Symbol[_0x5f3cd1(0x1b3)],{'value':_0x5f3cd1(0x1e9)});var _0x3237c7=(_0xb1bb5,_0x2d4b65)=>()=>(_0x2d4b65||(_0xb1bb5((_0x2d4b65={'exports':{}})['exports'],_0x2d4b65),_0xb1bb5=null),_0x2d4b65['exports']),_0x2721c0='@univerjs-pro/collaboration-client-node',_0x4dd7c7=_0x5f3cd1(0x1b1);let _0x419cf7={};var _0x5c9103=_0x3237c7((_0x273364,_0x2e29d5)=>{_0x2e29d5['exports']=function(){const _0x45bd55=_0x16a4;throw Error(_0x45bd55(0x1db));};})();function _0x37ef4d(_0x40c23e,_0x2b2d8e){return function(_0x113bcc,_0x881ffe){_0x2b2d8e(_0x113bcc,_0x881ffe,_0x40c23e);};}function _0x3d37e1(_0x1f9717,_0x158cb5,_0x7e89e5,_0x123526){const _0x50c308=_0x5f3cd1;var _0x110946=arguments[_0x50c308(0x1dc)],_0x491af8=_0x110946<0x3?_0x158cb5:_0x123526===null?_0x123526=Object[_0x50c308(0x1c8)](_0x158cb5,_0x7e89e5):_0x123526,_0x52810c;if(typeof Reflect==_0x50c308(0x1bb)&&typeof Reflect[_0x50c308(0x1a0)]=='function')_0x491af8=Reflect[_0x50c308(0x1a0)](_0x1f9717,_0x158cb5,_0x7e89e5,_0x123526);else{for(var _0x614de3=_0x1f9717[_0x50c308(0x1dc)]-0x1;_0x614de3>=0x0;_0x614de3--)(_0x52810c=_0x1f9717[_0x614de3])&&(_0x491af8=(_0x110946<0x3?_0x52810c(_0x491af8):_0x110946>0x3?_0x52810c(_0x158cb5,_0x7e89e5,_0x491af8):_0x52810c(_0x158cb5,_0x7e89e5))||_0x491af8);}return _0x110946>0x3&&_0x491af8&&Object['defineProperty'](_0x158cb5,_0x7e89e5,_0x491af8),_0x491af8;}let _0x2a03ba=class extends _0xba8700['Disposable']{constructor(_0x47e02f){const _0x1dde1d=_0x5f3cd1;super(),this[_0x1dde1d(0x1d0)]=_0x47e02f;}['createSocket'](_0x328a29){const _0x4dabfe=_0x5f3cd1;var _0x44cf0a;let _0x18e8d5=((_0x44cf0a=this[_0x4dabfe(0x1d0)][_0x4dabfe(0x1a1)](_0x2388a9[_0x4dabfe(0x1eb)]))==null?void 0x0:_0x44cf0a[_0x4dabfe(0x1a8)])||{};try{let _0x2e43eb=new _0x5c9103[(_0x4dabfe(0x1d8))](_0x328a29,{'headers':{..._0x18e8d5}}),_0x2d1d29=new _0xba8700[(_0x4dabfe(0x1e6))]();return{'URL':_0x328a29,'close':(_0xa6dda1,_0x298146)=>{const _0x2f4b40=_0x4dabfe;_0x2e43eb[_0x2f4b40(0x1aa)](_0xa6dda1,_0x298146),_0x2d1d29['dispose']();},'send':_0x35c6ab=>{_0x2e43eb['send'](_0x35c6ab);},'open$':new _0x5c1461[(_0x4dabfe(0x19d))](_0x3d4db5=>{const _0x1a14fe=_0x4dabfe;let _0x47779b=_0x2accf0=>_0x3d4db5[_0x1a14fe(0x1da)](_0x2accf0);_0x2e43eb['addEventListener'](_0x1a14fe(0x1b2),_0x47779b),_0x2d1d29[_0x1a14fe(0x1d7)]((0x0,_0xba8700[_0x1a14fe(0x1c5)])(()=>_0x2e43eb[_0x1a14fe(0x19c)]('open',_0x47779b)));})[_0x4dabfe(0x1b9)]((0x0,_0x5c1461['share'])()),'close$':new _0x5c1461[(_0x4dabfe(0x19d))](_0x42e1b8=>{const _0x4259d4=_0x4dabfe;let _0x2c5509=_0x2a48f5=>_0x42e1b8[_0x4259d4(0x1da)](_0x2a48f5);_0x2e43eb[_0x4259d4(0x1be)](_0x4259d4(0x1aa),_0x2c5509),_0x2d1d29[_0x4259d4(0x1d7)]((0x0,_0xba8700[_0x4259d4(0x1c5)])(()=>_0x2e43eb[_0x4259d4(0x19c)]('close',_0x2c5509)));})[_0x4dabfe(0x1b9)]((0x0,_0x5c1461[_0x4dabfe(0x1b6)])()),'error$':new _0x5c1461[(_0x4dabfe(0x19d))](_0x13a0da=>{const _0x170b76=_0x4dabfe;let _0x56ab80=_0xfeadaf=>_0x13a0da['next'](_0xfeadaf);_0x2e43eb[_0x170b76(0x1be)](_0x170b76(0x1e8),_0x56ab80),_0x2d1d29[_0x170b76(0x1d7)]((0x0,_0xba8700[_0x170b76(0x1c5)])(()=>_0x2e43eb['removeEventListener'](_0x170b76(0x1e8),_0x56ab80)));})['pipe']((0x0,_0x5c1461[_0x4dabfe(0x1b6)])()),'message$':new _0x5c1461[(_0x4dabfe(0x19d))](_0x1bf471=>{const _0xd667c2=_0x4dabfe;let _0x2930a6=_0x15780b=>_0x1bf471['next'](_0x15780b);_0x2e43eb['addEventListener'](_0xd667c2(0x1a4),_0x2930a6),_0x2d1d29[_0xd667c2(0x1d7)]((0x0,_0xba8700[_0xd667c2(0x1c5)])(()=>_0x2e43eb['removeEventListener']('message',_0x2930a6)));})[_0x4dabfe(0x1b9)]((0x0,_0x5c1461[_0x4dabfe(0x1b6)])())};}catch(_0x4b8da9){return console[_0x4dabfe(0x1e8)](_0x4b8da9),null;}}};_0x2a03ba=_0x3d37e1([_0x37ef4d(0x0,_0xba8700[_0x5f3cd1(0x1c2)])],_0x2a03ba);function _0x1f3dd1(_0x491557){'@babel/helpers - typeof';const _0xdb6714=_0x5f3cd1;return _0x1f3dd1=typeof Symbol==_0xdb6714(0x1a5)&&typeof Symbol[_0xdb6714(0x1a9)]==_0xdb6714(0x1d3)?function(_0x31e868){return typeof _0x31e868;}:function(_0x42ef80){const _0x195684=_0xdb6714;return _0x42ef80&&typeof Symbol=='function'&&_0x42ef80[_0x195684(0x1c3)]===Symbol&&_0x42ef80!==Symbol['prototype']?_0x195684(0x1d3):typeof _0x42ef80;},_0x1f3dd1(_0x491557);}function _0x3ee940(_0x32ce6f,_0x29e10a){const _0x4e770f=_0x5f3cd1;if(_0x1f3dd1(_0x32ce6f)!='object'||!_0x32ce6f)return _0x32ce6f;var _0x527408=_0x32ce6f[Symbol[_0x4e770f(0x1b0)]];if(_0x527408!==void 0x0){var _0x25a63a=_0x527408[_0x4e770f(0x19f)](_0x32ce6f,_0x29e10a||_0x4e770f(0x1cd));if(_0x1f3dd1(_0x25a63a)!=_0x4e770f(0x1bb))return _0x25a63a;throw TypeError(_0x4e770f(0x1ea));}return(_0x29e10a===_0x4e770f(0x1e7)?String:Number)(_0x32ce6f);}function _0x5a842e(_0x4225dc){const _0x2c1e26=_0x5f3cd1;var _0x3bf5b4=_0x3ee940(_0x4225dc,'string');return _0x1f3dd1(_0x3bf5b4)==_0x2c1e26(0x1d3)?_0x3bf5b4:_0x3bf5b4+'';}function _0x1d3f1f(_0x4986e4,_0x5c00b5,_0x205787){const _0x12961b=_0x5f3cd1;return(_0x5c00b5=_0x5a842e(_0x5c00b5))in _0x4986e4?Object[_0x12961b(0x1cc)](_0x4986e4,_0x5c00b5,{'value':_0x205787,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4986e4[_0x5c00b5]=_0x205787,_0x4986e4;}let _0x2491a7=class extends _0xba8700['Plugin']{constructor(_0x5e173a=_0x419cf7,_0x3e6235,_0x5bc7db){const _0x286718=_0x5f3cd1;super(),this['_config']=_0x5e173a,this[_0x286718(0x1d0)]=_0x3e6235,this[_0x286718(0x1a7)]=_0x5bc7db;let {..._0x4376a2}=(0x0,_0xba8700[_0x286718(0x1cf)])({},_0x419cf7,this[_0x286718(0x1ac)]);this['_configService'][_0x286718(0x1d5)](_0x286718(0x1ab),_0x4376a2);}['onStarting'](){const _0x377ea3=_0x5f3cd1;this[_0x377ea3(0x1ec)]();}[_0x5f3cd1(0x1ec)](){const _0x9cb514=_0x5f3cd1;(0x0,_0xba8700[_0x9cb514(0x1d9)])(this[_0x9cb514(0x1a7)],[[_0x494a85[_0x9cb514(0x1b8)],{'useClass':_0x2a03ba}]]);}};_0x1d3f1f(_0x2491a7,_0x5f3cd1(0x1ed),_0x5f3cd1(0x1e5)),_0x1d3f1f(_0x2491a7,'packageName',_0x2721c0),_0x1d3f1f(_0x2491a7,_0x5f3cd1(0x1ba),_0x4dd7c7),_0x2491a7=_0x3d37e1([(0x0,_0xba8700[_0x5f3cd1(0x1d2)])(_0x271cfc[_0x5f3cd1(0x1d1)],_0x494a85[_0x5f3cd1(0x1c6)],_0x5d243e[_0x5f3cd1(0x1cb)],_0x2388a9[_0x5f3cd1(0x1dd)]),_0x37ef4d(0x1,_0xba8700[_0x5f3cd1(0x1c2)]),_0x37ef4d(0x2,(0x0,_0xba8700['Inject'])(_0xba8700[_0x5f3cd1(0x1df)]))],_0x2491a7);let _0x59a2dd=class extends _0x2388a9[_0x5f3cd1(0x1d4)]{constructor(_0x24177b,_0x4af3ae,_0x40ae7f,_0x1dd281,_0x3f3a1c){const _0x1c5e6c=_0x5f3cd1;super(_0x24177b,_0x4af3ae,_0x40ae7f,_0x1dd281,_0x3f3a1c);let _0x22f74a=this['_configService'][_0x1c5e6c(0x1a1)](_0x2388a9[_0x1c5e6c(0x1eb)]);this[_0x1c5e6c(0x1bc)][_0x1c5e6c(0x1b7)]({'interceptor':(_0x175a2b,_0x505755)=>{const _0x422254=_0x1c5e6c;let _0x543f8a=_0x175a2b[_0x422254(0x1e4)];if(_0x22f74a!=null&&_0x22f74a[_0x422254(0x1a8)]){for(let _0x316613 in _0x22f74a['customHeaders'])_0x543f8a[_0x422254(0x1bd)](_0x316613,_0x22f74a[_0x422254(0x1a8)][_0x316613]);}return _0x505755(_0x175a2b);}});}async[_0x5f3cd1(0x1e3)](_0x52594b){return this['_doCreateSocket'](_0x52594b);}};_0x59a2dd=_0x3d37e1([_0x37ef4d(0x0,(0x0,_0xba8700[_0x5f3cd1(0x1b5)])(_0xba8700[_0x5f3cd1(0x1df)])),_0x37ef4d(0x1,(0x0,_0xba8700[_0x5f3cd1(0x1b5)])(_0x494a85['HTTPService'])),_0x37ef4d(0x2,_0xba8700[_0x5f3cd1(0x1c2)]),_0x37ef4d(0x3,_0xba8700[_0x5f3cd1(0x1c7)]),_0x37ef4d(0x4,_0x5d243e['ISnapshotServerService'])],_0x59a2dd),Object[_0x5f3cd1(0x1cc)](_0x1b6f44,_0x5f3cd1(0x1b4),{'enumerable':!0x0,'get':function(){return _0x59a2dd;}}),Object[_0x5f3cd1(0x1cc)](_0x1b6f44,_0x5f3cd1(0x1a6),{'enumerable':!0x0,'get':function(){return _0x2491a7;}});}));function _0xd675(){const _0x4c0493=['Injector','@univerjs-pro/collaboration','UniverCore','32DbdHXW','createSocket','headers','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','DisposableCollection','string','error','Module','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_registerDependencies','pluginName','UniverNetwork','removeEventListener','Observable','3791950CXwchr','call','decorate','getConfig','7tUsYda','UniverProCollaboration','message','function','UniverCollaborationClientNodePlugin','_injector','customHeaders','iterator','close','collaboration-client-node.config','_config','1132242qkVayB','UniverProCollaborationClient','3VZeupB','toPrimitive','1.0.0-insiders.20260813-7c9aa50','open','toStringTag','NodeCollaborationSocketService','Inject','share','registerHTTPInterceptor','ISocketService','pipe','version','object','_httpService','set','addEventListener','UniverProLicense','@univerjs-pro/license','4342875mVjbet','IConfigService','constructor','1391572LsqHqZ','toDisposable','UniverNetworkPlugin','ILogService','getOwnPropertyDescriptor','4387172VedLDl','3445800wBJfJB','UniverCollaborationPlugin','defineProperty','default','@univerjs/core','merge','_configService','UniverLicensePlugin','DependentOn','symbol','CollaborationSocketService','setConfig','@univerjs/network','add','WebSocket','registerDependencies','next','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','length','UniverCollaborationClientPlugin','1706589lBEpcz'];_0xd675=function(){return _0x4c0493;};return _0xd675();}
1
+ function _0x5e80(_0x221563,_0x3a7647){_0x221563=_0x221563-0x1ca;const _0x280aab=_0x280a();let _0x5e8042=_0x280aab[_0x221563];return _0x5e8042;}function _0x280a(){const _0x282294=['Injector','removeEventListener','customHeaders','Plugin','set','1582mbGgHT','getConfig','@univerjs-pro/collaboration-client','UniverProCollaborationClient','Inject','add','string','setConfig','Disposable','UniverCore','@univerjs-pro/collaboration-client-node','_registerDependencies','DisposableCollection','length','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','prototype','collaboration-client-node.config','_doCreateSocket','WebSocket','call','merge','pluginName','version','4308ffzlIs','1220urKHHL','share','UniverNetwork','_configService','iterator','IConfigService','constructor','onStarting','@univerjs/core','NodeCollaborationSocketService','registerDependencies','3163932Jakfeh','rxjs','toDisposable','function','1450YlBjgK','ISocketService','HTTPService','createSocket','18CfJTZT','4494120JJTZOE','decorate','@univerjs-pro/license','_config','1153mOTeBz','ISnapshotServerService','_injector','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','open','4025vqfiYR','ILogService','send','object','517GIySTQ','UniverCollaborationPlugin','dispose','registerHTTPInterceptor','defineProperty','Module','exports','message','error','22734VnSnqk','_httpService','addEventListener','next','toStringTag','close','Observable','UniverLicensePlugin','2056663uHwPZL','CollaborationSocketService','pipe','symbol','getOwnPropertyDescriptor','DependentOn','UniverProCollaboration'];_0x280a=function(){return _0x282294;};return _0x280a();}(function(_0x5180ea,_0x49ae76){const _0x1324e6=_0x5e80,_0x338729=_0x5180ea();while(!![]){try{const _0x2174aa=-parseInt(_0x1324e6(0x20d))/0x1*(parseInt(_0x1324e6(0x1dd))/0x2)+parseInt(_0x1324e6(0x200))/0x3+-parseInt(_0x1324e6(0x1f5))/0x4*(parseInt(_0x1324e6(0x212))/0x5)+-parseInt(_0x1324e6(0x208))/0x6*(-parseInt(_0x1324e6(0x1d1))/0x7)+-parseInt(_0x1324e6(0x209))/0x8+parseInt(_0x1324e6(0x21f))/0x9*(parseInt(_0x1324e6(0x204))/0xa)+parseInt(_0x1324e6(0x216))/0xb*(-parseInt(_0x1324e6(0x1f4))/0xc);if(_0x2174aa===_0x49ae76)break;else _0x338729['push'](_0x338729['shift']());}catch(_0x3ace7e){_0x338729['push'](_0x338729['shift']());}}}(_0x280a,0x8a38b),function(_0x56aad6,_0x2e1377){const _0x1da652=_0x5e80;typeof exports==_0x1da652(0x215)&&typeof module<'u'?_0x2e1377(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x1da652(0x203)&&define['amd']?define([_0x1da652(0x21c),'@univerjs-pro/collaboration',_0x1da652(0x1df),_0x1da652(0x20b),_0x1da652(0x1fd),'@univerjs/network','rxjs'],_0x2e1377):(_0x56aad6=typeof globalThis<'u'?globalThis:_0x56aad6||self,_0x2e1377(_0x56aad6['UniverProCollaborationClientNode']={},_0x56aad6[_0x1da652(0x1d7)],_0x56aad6[_0x1da652(0x1e0)],_0x56aad6['UniverProLicense'],_0x56aad6[_0x1da652(0x1e6)],_0x56aad6[_0x1da652(0x1f7)],_0x56aad6[_0x1da652(0x201)]));}(this,function(_0x3ead59,_0x11fc18,_0x4cc070,_0x23eaf2,_0x39e6ee,_0x1dd146,_0xf8ea22){const _0x4d0bf9=_0x5e80;Object[_0x4d0bf9(0x21a)](_0x3ead59,Symbol[_0x4d0bf9(0x1cd)],{'value':_0x4d0bf9(0x21b)});var _0x1d2e15=(_0x28e11b,_0x5a157b)=>()=>(_0x5a157b||(_0x28e11b((_0x5a157b={'exports':{}})['exports'],_0x5a157b),_0x28e11b=null),_0x5a157b[_0x4d0bf9(0x21c)]),_0x3d6290=_0x4d0bf9(0x1e7),_0x18dc8b='1.0.0-rc.0';let _0x1dbf9e={};var _0x537e80=_0x1d2e15((_0x146392,_0x481f15)=>{const _0x4d8af9=_0x4d0bf9;_0x481f15[_0x4d8af9(0x21c)]=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x5143e4(_0x700628,_0xe9149f){return function(_0x4d6f8b,_0x439c16){_0xe9149f(_0x4d6f8b,_0x439c16,_0x700628);};}function _0x1bc2a9(_0x2ce9bf,_0x5c58aa,_0x6d5db7,_0x574a98){const _0x337456=_0x4d0bf9;var _0x6105a2=arguments['length'],_0x5bbdeb=_0x6105a2<0x3?_0x5c58aa:_0x574a98===null?_0x574a98=Object[_0x337456(0x1d5)](_0x5c58aa,_0x6d5db7):_0x574a98,_0xc3ce24;if(typeof Reflect==_0x337456(0x215)&&typeof Reflect['decorate']==_0x337456(0x203))_0x5bbdeb=Reflect[_0x337456(0x20a)](_0x2ce9bf,_0x5c58aa,_0x6d5db7,_0x574a98);else{for(var _0x1cb953=_0x2ce9bf[_0x337456(0x1ea)]-0x1;_0x1cb953>=0x0;_0x1cb953--)(_0xc3ce24=_0x2ce9bf[_0x1cb953])&&(_0x5bbdeb=(_0x6105a2<0x3?_0xc3ce24(_0x5bbdeb):_0x6105a2>0x3?_0xc3ce24(_0x5c58aa,_0x6d5db7,_0x5bbdeb):_0xc3ce24(_0x5c58aa,_0x6d5db7))||_0x5bbdeb);}return _0x6105a2>0x3&&_0x5bbdeb&&Object['defineProperty'](_0x5c58aa,_0x6d5db7,_0x5bbdeb),_0x5bbdeb;}let _0x5beed1=class extends _0x39e6ee[_0x4d0bf9(0x1e5)]{constructor(_0x27246a){const _0x10e95a=_0x4d0bf9;super(),this[_0x10e95a(0x1f8)]=_0x27246a;}[_0x4d0bf9(0x207)](_0x49a749){const _0x39b58a=_0x4d0bf9;var _0x3fe7df;let _0x6b5f98=((_0x3fe7df=this['_configService'][_0x39b58a(0x1de)](_0x4cc070['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x3fe7df[_0x39b58a(0x1da)])||{};try{let _0x468bb6=new _0x537e80[(_0x39b58a(0x1ef))](_0x49a749,{'headers':{..._0x6b5f98}}),_0x3ab9e7=new _0x39e6ee[(_0x39b58a(0x1e9))]();return{'URL':_0x49a749,'close':(_0x4fe338,_0x2aec5d)=>{const _0x470bb7=_0x39b58a;_0x468bb6[_0x470bb7(0x1ce)](_0x4fe338,_0x2aec5d),_0x3ab9e7[_0x470bb7(0x218)]();},'send':_0x49b2dd=>{const _0x51f02c=_0x39b58a;_0x468bb6[_0x51f02c(0x214)](_0x49b2dd);},'open$':new _0xf8ea22[(_0x39b58a(0x1cf))](_0x2e5995=>{const _0x45b36d=_0x39b58a;let _0x328d31=_0x47470c=>_0x2e5995['next'](_0x47470c);_0x468bb6[_0x45b36d(0x1cb)](_0x45b36d(0x211),_0x328d31),_0x3ab9e7[_0x45b36d(0x1e2)]((0x0,_0x39e6ee[_0x45b36d(0x202)])(()=>_0x468bb6[_0x45b36d(0x1d9)](_0x45b36d(0x211),_0x328d31)));})['pipe']((0x0,_0xf8ea22[_0x39b58a(0x1f6)])()),'close$':new _0xf8ea22[(_0x39b58a(0x1cf))](_0xdfbd01=>{const _0x3aa647=_0x39b58a;let _0x53f3e6=_0x36e5f9=>_0xdfbd01[_0x3aa647(0x1cc)](_0x36e5f9);_0x468bb6['addEventListener'](_0x3aa647(0x1ce),_0x53f3e6),_0x3ab9e7[_0x3aa647(0x1e2)]((0x0,_0x39e6ee[_0x3aa647(0x202)])(()=>_0x468bb6[_0x3aa647(0x1d9)](_0x3aa647(0x1ce),_0x53f3e6)));})[_0x39b58a(0x1d3)]((0x0,_0xf8ea22[_0x39b58a(0x1f6)])()),'error$':new _0xf8ea22[(_0x39b58a(0x1cf))](_0x5088cb=>{const _0x26e8bb=_0x39b58a;let _0x59e1be=_0x5ed537=>_0x5088cb[_0x26e8bb(0x1cc)](_0x5ed537);_0x468bb6[_0x26e8bb(0x1cb)](_0x26e8bb(0x21e),_0x59e1be),_0x3ab9e7['add']((0x0,_0x39e6ee[_0x26e8bb(0x202)])(()=>_0x468bb6[_0x26e8bb(0x1d9)](_0x26e8bb(0x21e),_0x59e1be)));})[_0x39b58a(0x1d3)]((0x0,_0xf8ea22['share'])()),'message$':new _0xf8ea22[(_0x39b58a(0x1cf))](_0x291ad2=>{const _0x5165b5=_0x39b58a;let _0x4f8e18=_0x35be35=>_0x291ad2[_0x5165b5(0x1cc)](_0x35be35);_0x468bb6[_0x5165b5(0x1cb)]('message',_0x4f8e18),_0x3ab9e7[_0x5165b5(0x1e2)]((0x0,_0x39e6ee[_0x5165b5(0x202)])(()=>_0x468bb6[_0x5165b5(0x1d9)](_0x5165b5(0x21d),_0x4f8e18)));})[_0x39b58a(0x1d3)]((0x0,_0xf8ea22[_0x39b58a(0x1f6)])())};}catch(_0x23db9c){return console['error'](_0x23db9c),null;}}};_0x5beed1=_0x1bc2a9([_0x5143e4(0x0,_0x39e6ee[_0x4d0bf9(0x1fa)])],_0x5beed1);function _0x4e94c7(_0x212bc6){'@babel/helpers - typeof';const _0x443def=_0x4d0bf9;return _0x4e94c7=typeof Symbol==_0x443def(0x203)&&typeof Symbol[_0x443def(0x1f9)]==_0x443def(0x1d4)?function(_0x480495){return typeof _0x480495;}:function(_0x3ebeda){const _0x272068=_0x443def;return _0x3ebeda&&typeof Symbol=='function'&&_0x3ebeda[_0x272068(0x1fb)]===Symbol&&_0x3ebeda!==Symbol[_0x272068(0x1ec)]?_0x272068(0x1d4):typeof _0x3ebeda;},_0x4e94c7(_0x212bc6);}function _0x57ba02(_0x28ba09,_0x271603){const _0x22e596=_0x4d0bf9;if(_0x4e94c7(_0x28ba09)!=_0x22e596(0x215)||!_0x28ba09)return _0x28ba09;var _0x56f8af=_0x28ba09[Symbol['toPrimitive']];if(_0x56f8af!==void 0x0){var _0x36f38f=_0x56f8af[_0x22e596(0x1f0)](_0x28ba09,_0x271603||'default');if(_0x4e94c7(_0x36f38f)!=_0x22e596(0x215))return _0x36f38f;throw TypeError(_0x22e596(0x1eb));}return(_0x271603===_0x22e596(0x1e3)?String:Number)(_0x28ba09);}function _0x5e6b5e(_0x1f32ba){const _0x288b88=_0x4d0bf9;var _0x56a213=_0x57ba02(_0x1f32ba,'string');return _0x4e94c7(_0x56a213)==_0x288b88(0x1d4)?_0x56a213:_0x56a213+'';}function _0xc8f5(_0x8dae0e,_0x326c14,_0x1282c8){const _0xedfbe5=_0x4d0bf9;return(_0x326c14=_0x5e6b5e(_0x326c14))in _0x8dae0e?Object[_0xedfbe5(0x21a)](_0x8dae0e,_0x326c14,{'value':_0x1282c8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x8dae0e[_0x326c14]=_0x1282c8,_0x8dae0e;}let _0x444e65=class extends _0x39e6ee[_0x4d0bf9(0x1db)]{constructor(_0x58e6e7=_0x1dbf9e,_0x226636,_0x2c84b){const _0x1d8bb1=_0x4d0bf9;super(),this[_0x1d8bb1(0x20c)]=_0x58e6e7,this[_0x1d8bb1(0x1f8)]=_0x226636,this['_injector']=_0x2c84b;let {..._0x58ab55}=(0x0,_0x39e6ee[_0x1d8bb1(0x1f1)])({},_0x1dbf9e,this[_0x1d8bb1(0x20c)]);this[_0x1d8bb1(0x1f8)][_0x1d8bb1(0x1e4)](_0x1d8bb1(0x1ed),_0x58ab55);}[_0x4d0bf9(0x1fc)](){this['_registerDependencies']();}[_0x4d0bf9(0x1e8)](){const _0x555c4f=_0x4d0bf9;(0x0,_0x39e6ee[_0x555c4f(0x1ff)])(this[_0x555c4f(0x20f)],[[_0x1dd146[_0x555c4f(0x205)],{'useClass':_0x5beed1}]]);}};_0xc8f5(_0x444e65,_0x4d0bf9(0x1f2),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0xc8f5(_0x444e65,'packageName',_0x3d6290),_0xc8f5(_0x444e65,_0x4d0bf9(0x1f3),_0x18dc8b),_0x444e65=_0x1bc2a9([(0x0,_0x39e6ee[_0x4d0bf9(0x1d6)])(_0x23eaf2[_0x4d0bf9(0x1d0)],_0x1dd146['UniverNetworkPlugin'],_0x11fc18[_0x4d0bf9(0x217)],_0x4cc070['UniverCollaborationClientPlugin']),_0x5143e4(0x1,_0x39e6ee[_0x4d0bf9(0x1fa)]),_0x5143e4(0x2,(0x0,_0x39e6ee[_0x4d0bf9(0x1e1)])(_0x39e6ee[_0x4d0bf9(0x1d8)]))],_0x444e65);let _0x36bad3=class extends _0x4cc070[_0x4d0bf9(0x1d2)]{constructor(_0x407813,_0x25e89b,_0x1aef89,_0x32af58,_0x5b4283){const _0x1ec08a=_0x4d0bf9;super(_0x407813,_0x25e89b,_0x1aef89,_0x32af58,_0x5b4283);let _0x303aa4=this['_configService'][_0x1ec08a(0x1de)](_0x4cc070[_0x1ec08a(0x210)]);this[_0x1ec08a(0x1ca)][_0x1ec08a(0x219)]({'interceptor':(_0x3ed040,_0x322e31)=>{const _0xe63662=_0x1ec08a;let _0x170ecf=_0x3ed040['headers'];if(_0x303aa4!=null&&_0x303aa4[_0xe63662(0x1da)]){for(let _0x34e74a in _0x303aa4[_0xe63662(0x1da)])_0x170ecf[_0xe63662(0x1dc)](_0x34e74a,_0x303aa4[_0xe63662(0x1da)][_0x34e74a]);}return _0x322e31(_0x3ed040);}});}async[_0x4d0bf9(0x207)](_0x37e509){const _0x2cb8d9=_0x4d0bf9;return this[_0x2cb8d9(0x1ee)](_0x37e509);}};_0x36bad3=_0x1bc2a9([_0x5143e4(0x0,(0x0,_0x39e6ee[_0x4d0bf9(0x1e1)])(_0x39e6ee['Injector'])),_0x5143e4(0x1,(0x0,_0x39e6ee[_0x4d0bf9(0x1e1)])(_0x1dd146[_0x4d0bf9(0x206)])),_0x5143e4(0x2,_0x39e6ee['IConfigService']),_0x5143e4(0x3,_0x39e6ee[_0x4d0bf9(0x213)]),_0x5143e4(0x4,_0x11fc18[_0x4d0bf9(0x20e)])],_0x36bad3),Object[_0x4d0bf9(0x21a)](_0x3ead59,_0x4d0bf9(0x1fe),{'enumerable':!0x0,'get':function(){return _0x36bad3;}}),Object[_0x4d0bf9(0x21a)](_0x3ead59,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _0x444e65;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.0.0-insiders.20260813-7c9aa50",
3
+ "version": "1.0.0-rc.0",
4
4
  "private": false,
5
5
  "description": "Node.js collaboration client plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -11,7 +11,7 @@
11
11
  "homepage": "https://univer.ai",
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "https://github.com/dream-num/univer"
14
+ "url": "https://github.com/dream-num/univer-pro"
15
15
  },
16
16
  "bugs": {
17
17
  "url": "https://github.com/dream-num/univer/issues"
@@ -51,19 +51,19 @@
51
51
  "rxjs": ">=7.0.0"
52
52
  },
53
53
  "dependencies": {
54
- "ws": "8.21.0",
55
- "@univerjs-pro/collaboration": "1.0.0-insiders.20260813-7c9aa50",
56
- "@univerjs-pro/collaboration-client": "1.0.0-insiders.20260813-7c9aa50",
57
- "@univerjs-pro/license": "1.0.0-insiders.20260813-7c9aa50",
58
- "@univerjs/core": "1.0.0-insiders.20260813-7c9aa50",
59
- "@univerjs/network": "1.0.0-insiders.20260813-7c9aa50"
54
+ "@univerjs-pro/collaboration": "1.0.0-rc.0",
55
+ "@univerjs-pro/collaboration-client": "1.0.0-rc.0",
56
+ "@univerjs-pro/license": "1.0.0-rc.0",
57
+ "@univerjs/core": "1.0.0-rc.0",
58
+ "@univerjs/network": "1.0.0-rc.0",
59
+ "ws": "8.21.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/ws": "8.18.1",
63
+ "@univerjs-infra/shared": "1.0.0-rc.0",
63
64
  "rxjs": "7.8.2",
64
65
  "typescript": "^6.0.3",
65
- "vitest": "^4.1.10",
66
- "@univerjs-infra/shared": "1.0.0-beta.0"
66
+ "vitest": "^4.1.11"
67
67
  },
68
68
  "scripts": {
69
69
  "test": "vitest run",