@univerjs-pro/collaboration-client-node 1.5.0 → 1.5.1

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 _0x4e4459=_0x3cb2;(function(_0x78395d,_0x44d0c7){const _0x1b9386=_0x3cb2,_0x5b5890=_0x78395d();while(!![]){try{const _0x471d07=parseInt(_0x1b9386(0x1d5))/0x1*(-parseInt(_0x1b9386(0x1b7))/0x2)+-parseInt(_0x1b9386(0x1e1))/0x3+parseInt(_0x1b9386(0x1b0))/0x4*(-parseInt(_0x1b9386(0x1b4))/0x5)+parseInt(_0x1b9386(0x1ac))/0x6*(-parseInt(_0x1b9386(0x1ca))/0x7)+-parseInt(_0x1b9386(0x1e6))/0x8+parseInt(_0x1b9386(0x1d3))/0x9+parseInt(_0x1b9386(0x1c7))/0xa;if(_0x471d07===_0x44d0c7)break;else _0x5b5890['push'](_0x5b5890['shift']());}catch(_0x1f6865){_0x5b5890['push'](_0x5b5890['shift']());}}}(_0x4695,0xbab49),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x4e4459(0x1ba)}));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='@univerjs-pro/collaboration-client-node',c=_0x4e4459(0x1b1);const l={};function _0x3cb2(_0x323964,_0x5923ae){_0x323964=_0x323964-0x1a8;const _0x4695df=_0x4695();let _0x3cb2f8=_0x4695df[_0x323964];return _0x3cb2f8;}function u(_0x2b6df9,_0x19a1b5){return function(_0x2492a6,_0x4b9e04){_0x19a1b5(_0x2492a6,_0x4b9e04,_0x2b6df9);};}function d(_0x4c574d,_0x597558,_0x328da5,_0x5a3662){const _0x31e836=_0x4e4459;var _0x2692d4=arguments[_0x31e836(0x1c1)],_0x60842c=_0x2692d4<0x3?_0x597558:_0x5a3662===null?_0x5a3662=Object['getOwnPropertyDescriptor'](_0x597558,_0x328da5):_0x5a3662,_0x12060e;if(typeof Reflect=='object'&&typeof Reflect[_0x31e836(0x1d0)]==_0x31e836(0x1cf))_0x60842c=Reflect[_0x31e836(0x1d0)](_0x4c574d,_0x597558,_0x328da5,_0x5a3662);else{for(var _0x3e0323=_0x4c574d[_0x31e836(0x1c1)]-0x1;_0x3e0323>=0x0;_0x3e0323--)(_0x12060e=_0x4c574d[_0x3e0323])&&(_0x60842c=(_0x2692d4<0x3?_0x12060e(_0x60842c):_0x2692d4>0x3?_0x12060e(_0x597558,_0x328da5,_0x60842c):_0x12060e(_0x597558,_0x328da5))||_0x60842c);}return _0x2692d4>0x3&&_0x60842c&&Object['defineProperty'](_0x597558,_0x328da5,_0x60842c),_0x60842c;}let f=class extends r['Disposable']{constructor(_0x46c02b){const _0x1cb42c=_0x4e4459;super(),this[_0x1cb42c(0x1e7)]=_0x46c02b;}['createSocket'](_0x51970e){const _0x1aa162=_0x4e4459;var _0x51f9a9;let _0x177cce=((_0x51f9a9=this['_configService'][_0x1aa162(0x1de)](t[_0x1aa162(0x1d4)]))==null?void 0x0:_0x51f9a9[_0x1aa162(0x1aa)])||{};try{let _0x32ed4d=new o[(_0x1aa162(0x1c6))](_0x51970e,{'headers':{..._0x177cce}}),_0xc46a2=new r[(_0x1aa162(0x1be))]();return{'URL':_0x51970e,'close':(_0x20c2eb,_0x17071e)=>{const _0x53e536=_0x1aa162;_0x32ed4d[_0x53e536(0x1d2)](_0x20c2eb,_0x17071e),_0xc46a2[_0x53e536(0x1b6)]();},'send':_0x432866=>{const _0x30bca6=_0x1aa162;_0x32ed4d[_0x30bca6(0x1ab)](_0x432866);},'open$':new a[(_0x1aa162(0x1da))](_0x5d264e=>{const _0x1b4b36=_0x1aa162;let _0x19c79c=_0x38a1f0=>_0x5d264e[_0x1b4b36(0x1d7)](_0x38a1f0);_0x32ed4d[_0x1b4b36(0x1e2)](_0x1b4b36(0x1d6),_0x19c79c),_0xc46a2[_0x1b4b36(0x1ae)]((0x0,r[_0x1b4b36(0x1b2)])(()=>_0x32ed4d[_0x1b4b36(0x1bd)](_0x1b4b36(0x1d6),_0x19c79c)));})['pipe']((0x0,a[_0x1aa162(0x1df)])()),'close$':new a['Observable'](_0x25990d=>{const _0x2e1de0=_0x1aa162;let _0x5be937=_0x1a0c8e=>_0x25990d['next'](_0x1a0c8e);_0x32ed4d[_0x2e1de0(0x1e2)](_0x2e1de0(0x1d2),_0x5be937),_0xc46a2[_0x2e1de0(0x1ae)]((0x0,r[_0x2e1de0(0x1b2)])(()=>_0x32ed4d[_0x2e1de0(0x1bd)](_0x2e1de0(0x1d2),_0x5be937)));})[_0x1aa162(0x1c4)]((0x0,a[_0x1aa162(0x1df)])()),'error$':new a[(_0x1aa162(0x1da))](_0x27836a=>{const _0x2e7fc8=_0x1aa162;let _0x738343=_0x35b857=>_0x27836a['next'](_0x35b857);_0x32ed4d[_0x2e7fc8(0x1e2)]('error',_0x738343),_0xc46a2[_0x2e7fc8(0x1ae)]((0x0,r['toDisposable'])(()=>_0x32ed4d[_0x2e7fc8(0x1bd)](_0x2e7fc8(0x1cb),_0x738343)));})['pipe']((0x0,a['share'])()),'message$':new a['Observable'](_0x4d8cf6=>{const _0x3281ac=_0x1aa162;let _0x5c3aee=_0x5df98e=>_0x4d8cf6[_0x3281ac(0x1d7)](_0x5df98e);_0x32ed4d[_0x3281ac(0x1e2)]('message',_0x5c3aee),_0xc46a2[_0x3281ac(0x1ae)]((0x0,r[_0x3281ac(0x1b2)])(()=>_0x32ed4d[_0x3281ac(0x1bd)]('message',_0x5c3aee)));})['pipe']((0x0,a[_0x1aa162(0x1df)])())};}catch(_0x3809f0){return console[_0x1aa162(0x1cb)](_0x3809f0),null;}}};f=d([u(0x0,r[_0x4e4459(0x1ad)])],f);function p(_0x3f39c3){'@babel/helpers - typeof';const _0x1fb654=_0x4e4459;return p=typeof Symbol==_0x1fb654(0x1cf)&&typeof Symbol['iterator']==_0x1fb654(0x1af)?function(_0x5c7b53){return typeof _0x5c7b53;}:function(_0x2696b8){const _0x1e4c39=_0x1fb654;return _0x2696b8&&typeof Symbol==_0x1e4c39(0x1cf)&&_0x2696b8[_0x1e4c39(0x1d9)]===Symbol&&_0x2696b8!==Symbol[_0x1e4c39(0x1cc)]?_0x1e4c39(0x1af):typeof _0x2696b8;},p(_0x3f39c3);}function m(_0xf67bdf,_0x1221df){const _0x567529=_0x4e4459;if(p(_0xf67bdf)!=_0x567529(0x1c8)||!_0xf67bdf)return _0xf67bdf;var _0x22ce8b;if(typeof Symbol<'u'&&(_0x22ce8b=_0xf67bdf[Symbol['toPrimitive']])!==void 0x0){var _0x55d17f=_0x22ce8b[_0x567529(0x1dc)](_0xf67bdf,_0x1221df||_0x567529(0x1c5));if(p(_0x55d17f)!=_0x567529(0x1c8))return _0x55d17f;throw TypeError(_0x567529(0x1ce));}return(_0x1221df===_0x567529(0x1db)?String:Number)(_0xf67bdf);}function h(_0x22b4b0){const _0x52def9=_0x4e4459;var _0x5e8ff5=m(_0x22b4b0,_0x52def9(0x1db));return p(_0x5e8ff5)==_0x52def9(0x1af)?_0x5e8ff5:_0x5e8ff5+'';}function g(_0x425d85,_0x9b0216,_0x574c02){return(_0x9b0216=h(_0x9b0216))in _0x425d85?Object['defineProperty'](_0x425d85,_0x9b0216,{'value':_0x574c02,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x425d85[_0x9b0216]=_0x574c02,_0x425d85;}let _=class extends r[_0x4e4459(0x1d8)]{constructor(_0x345deb=l,_0x2d29e4,_0x50502b){const _0x8c2e2e=_0x4e4459;super(),this[_0x8c2e2e(0x1e8)]=_0x345deb,this[_0x8c2e2e(0x1e7)]=_0x2d29e4,this[_0x8c2e2e(0x1c0)]=_0x50502b;let {..._0x3aebb8}=(0x0,r[_0x8c2e2e(0x1b5)])({},l,this['_config']);this[_0x8c2e2e(0x1e7)][_0x8c2e2e(0x1bb)](_0x8c2e2e(0x1dd),_0x3aebb8);}[_0x4e4459(0x1a8)](){const _0x22cf5d=_0x4e4459;this[_0x22cf5d(0x1ea)]();}[_0x4e4459(0x1ea)](){const _0x25f1d5=_0x4e4459;(0x0,r[_0x25f1d5(0x1bf)])(this['_injector'],[[i[_0x25f1d5(0x1cd)],{'useClass':f}]]);}};g(_,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),g(_,'packageName',s),g(_,_0x4e4459(0x1b3),c),_=d([(0x0,r[_0x4e4459(0x1b9)])(n['UniverLicensePlugin'],i[_0x4e4459(0x1bc)],e[_0x4e4459(0x1c3)],t['UniverCollaborationClientPlugin']),u(0x1,r[_0x4e4459(0x1ad)]),u(0x2,(0x0,r[_0x4e4459(0x1e3)])(r[_0x4e4459(0x1c2)]))],_);let v=class extends t[_0x4e4459(0x1e5)]{constructor(_0x1bd428,_0x23e31a,_0x5f43b0,_0x22b5e9,_0x215136){const _0x735e02=_0x4e4459;super(_0x1bd428,_0x23e31a,_0x5f43b0,_0x22b5e9,_0x215136);let _0x443ec9=this[_0x735e02(0x1e7)][_0x735e02(0x1de)](t[_0x735e02(0x1d4)]);this[_0x735e02(0x1e0)][_0x735e02(0x1ec)]({'interceptor':(_0x2567d4,_0x1adcfa)=>{const _0x327e59=_0x735e02;let _0x398fac=_0x2567d4[_0x327e59(0x1e9)];if(_0x443ec9!=null&&_0x443ec9[_0x327e59(0x1aa)]){for(let _0x3fb525 in _0x443ec9[_0x327e59(0x1aa)])_0x398fac[_0x327e59(0x1a9)](_0x3fb525,_0x443ec9['customHeaders'][_0x3fb525]);}return _0x1adcfa(_0x2567d4);}});}async[_0x4e4459(0x1d1)](_0x4772ce){const _0x311b7e=_0x4e4459;return this[_0x311b7e(0x1b8)](_0x4772ce);}};v=d([u(0x0,(0x0,r[_0x4e4459(0x1e3)])(r[_0x4e4459(0x1c2)])),u(0x1,(0x0,r[_0x4e4459(0x1e3)])(i['HTTPService'])),u(0x2,r[_0x4e4459(0x1ad)]),u(0x3,r[_0x4e4459(0x1e4)]),u(0x4,e[_0x4e4459(0x1eb)])],v),Object[_0x4e4459(0x1ed)](exports,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x4e4459(0x1ed)](exports,_0x4e4459(0x1c9),{'enumerable':!0x0,'get':function(){return _;}});function _0x4695(){const _0x24d809=['customHeaders','send','29994PAVzXM','IConfigService','add','symbol','248otuyah','1.5.0','toDisposable','version','114460tZpeQN','merge','dispose','2dEWQqm','_doCreateSocket','DependentOn','Module','setConfig','UniverNetworkPlugin','removeEventListener','DisposableCollection','registerDependencies','_injector','length','Injector','UniverCollaborationPlugin','pipe','default','WebSocket','48191660vmkoki','object','UniverCollaborationClientNodePlugin','1190KsOzIB','error','prototype','ISocketService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','function','decorate','createSocket','close','1604169CjuLfA','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','777446EAYHsa','open','next','Plugin','constructor','Observable','string','call','collaboration-client-node.config','getConfig','share','_httpService','1932996dBvhMK','addEventListener','Inject','ILogService','CollaborationSocketService','4334000DMtXzd','_configService','_config','headers','_registerDependencies','ISnapshotServerService','registerHTTPInterceptor','defineProperty','onStarting','set'];_0x4695=function(){return _0x24d809;};return _0x4695();}
1
+ const _0x1964b5=_0x43df;(function(_0x1126e5,_0x4f5ae3){const _0x574c22=_0x43df,_0xca75b=_0x1126e5();while(!![]){try{const _0x196cea=-parseInt(_0x574c22(0xf1))/0x1*(-parseInt(_0x574c22(0xcb))/0x2)+-parseInt(_0x574c22(0x10e))/0x3+-parseInt(_0x574c22(0xe7))/0x4+parseInt(_0x574c22(0xf5))/0x5+parseInt(_0x574c22(0xcf))/0x6*(-parseInt(_0x574c22(0xf4))/0x7)+parseInt(_0x574c22(0xcd))/0x8+-parseInt(_0x574c22(0xda))/0x9*(-parseInt(_0x574c22(0xf2))/0xa);if(_0x196cea===_0x4f5ae3)break;else _0xca75b['push'](_0xca75b['shift']());}catch(_0x44b35e){_0xca75b['push'](_0xca75b['shift']());}}}(_0x37f6,0xaf80f),Object['defineProperty'](exports,Symbol[_0x1964b5(0xf7)],{'value':_0x1964b5(0xea)}));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='@univerjs-pro/collaboration-client-node',c=_0x1964b5(0xeb);const l={};function u(_0x208aff,_0x42de50){return function(_0x305a46,_0xbfd7ed){_0x42de50(_0x305a46,_0xbfd7ed,_0x208aff);};}function d(_0x45e7fb,_0x55a465,_0x47cca0,_0x37e768){const _0x42e995=_0x1964b5;var _0xe7ca11=arguments[_0x42e995(0xe6)],_0x41f767=_0xe7ca11<0x3?_0x55a465:_0x37e768===null?_0x37e768=Object[_0x42e995(0xfd)](_0x55a465,_0x47cca0):_0x37e768,_0x2dce66;if(typeof Reflect==_0x42e995(0xe0)&&typeof Reflect[_0x42e995(0xd8)]==_0x42e995(0xd7))_0x41f767=Reflect[_0x42e995(0xd8)](_0x45e7fb,_0x55a465,_0x47cca0,_0x37e768);else{for(var _0x37c3e9=_0x45e7fb['length']-0x1;_0x37c3e9>=0x0;_0x37c3e9--)(_0x2dce66=_0x45e7fb[_0x37c3e9])&&(_0x41f767=(_0xe7ca11<0x3?_0x2dce66(_0x41f767):_0xe7ca11>0x3?_0x2dce66(_0x55a465,_0x47cca0,_0x41f767):_0x2dce66(_0x55a465,_0x47cca0))||_0x41f767);}return _0xe7ca11>0x3&&_0x41f767&&Object[_0x42e995(0xef)](_0x55a465,_0x47cca0,_0x41f767),_0x41f767;}function _0x37f6(){const _0x43c17f=['pluginName','UniverCollaborationClientPlugin','_injector','defineProperty','UniverCollaborationClientNodePlugin','5dFKpFH','10iiqmwz','prototype','8606703ZWVTpg','7158710zeOojC','Inject','toStringTag','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','add','getConfig','open','close','getOwnPropertyDescriptor','version','collaboration-client-node.config','_config','set','DependentOn','error','customHeaders','setConfig','UniverLicensePlugin','_configService','removeEventListener','registerHTTPInterceptor','symbol','headers','DisposableCollection','createSocket','3484596RbFQig','dispose','toPrimitive','_httpService','registerDependencies','180318xuIOqx','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','7218712uOkHNa','Observable','6estmfz','_registerDependencies','UniverNetworkPlugin','pipe','string','addEventListener','CollaborationSocketService','default','function','decorate','NodeCollaborationSocketService','13432572lfiExC','IConfigService','WebSocket','toDisposable','merge','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','object','next','onStarting','Disposable','ILogService','_doCreateSocket','length','4669840koMfhK','message','share','Module','1.5.1'];_0x37f6=function(){return _0x43c17f;};return _0x37f6();}let f=class extends r[_0x1964b5(0xe3)]{constructor(_0x4288a0){const _0x30bcef=_0x1964b5;super(),this[_0x30bcef(0x107)]=_0x4288a0;}[_0x1964b5(0x10d)](_0x58b704){const _0x27cf58=_0x1964b5;var _0xdc0b8a;let _0x1bc8ca=((_0xdc0b8a=this['_configService'][_0x27cf58(0xfa)](t[_0x27cf58(0xdf)]))==null?void 0x0:_0xdc0b8a[_0x27cf58(0x104)])||{};try{let _0x4e6fc4=new o[(_0x27cf58(0xdc))](_0x58b704,{'headers':{..._0x1bc8ca}}),_0x5cd19d=new r[(_0x27cf58(0x10c))]();return{'URL':_0x58b704,'close':(_0x1e14bd,_0x498de5)=>{const _0x899c0a=_0x27cf58;_0x4e6fc4[_0x899c0a(0xfc)](_0x1e14bd,_0x498de5),_0x5cd19d[_0x899c0a(0x10f)]();},'send':_0x3e70b7=>{_0x4e6fc4['send'](_0x3e70b7);},'open$':new a[(_0x27cf58(0xce))](_0x38cc91=>{const _0x3093bd=_0x27cf58;let _0x48290f=_0x4d994a=>_0x38cc91[_0x3093bd(0xe1)](_0x4d994a);_0x4e6fc4[_0x3093bd(0xd4)](_0x3093bd(0xfb),_0x48290f),_0x5cd19d[_0x3093bd(0xf9)]((0x0,r[_0x3093bd(0xdd)])(()=>_0x4e6fc4[_0x3093bd(0x108)](_0x3093bd(0xfb),_0x48290f)));})['pipe']((0x0,a['share'])()),'close$':new a[(_0x27cf58(0xce))](_0x115862=>{const _0x3ffbeb=_0x27cf58;let _0x57c6b4=_0x29257d=>_0x115862[_0x3ffbeb(0xe1)](_0x29257d);_0x4e6fc4[_0x3ffbeb(0xd4)](_0x3ffbeb(0xfc),_0x57c6b4),_0x5cd19d['add']((0x0,r[_0x3ffbeb(0xdd)])(()=>_0x4e6fc4[_0x3ffbeb(0x108)](_0x3ffbeb(0xfc),_0x57c6b4)));})[_0x27cf58(0xd2)]((0x0,a['share'])()),'error$':new a[(_0x27cf58(0xce))](_0x30b1b5=>{const _0x249ce6=_0x27cf58;let _0x303f96=_0x1a8a62=>_0x30b1b5['next'](_0x1a8a62);_0x4e6fc4[_0x249ce6(0xd4)](_0x249ce6(0x103),_0x303f96),_0x5cd19d[_0x249ce6(0xf9)]((0x0,r[_0x249ce6(0xdd)])(()=>_0x4e6fc4[_0x249ce6(0x108)](_0x249ce6(0x103),_0x303f96)));})['pipe']((0x0,a['share'])()),'message$':new a[(_0x27cf58(0xce))](_0x52feb5=>{const _0x50db5f=_0x27cf58;let _0xacbe78=_0x52bd4f=>_0x52feb5[_0x50db5f(0xe1)](_0x52bd4f);_0x4e6fc4['addEventListener']('message',_0xacbe78),_0x5cd19d[_0x50db5f(0xf9)]((0x0,r[_0x50db5f(0xdd)])(()=>_0x4e6fc4[_0x50db5f(0x108)](_0x50db5f(0xe8),_0xacbe78)));})['pipe']((0x0,a[_0x27cf58(0xe9)])())};}catch(_0x229543){return console['error'](_0x229543),null;}}};f=d([u(0x0,r[_0x1964b5(0xdb)])],f);function _0x43df(_0x4eb887,_0x5d6272){_0x4eb887=_0x4eb887-0xc8;const _0x37f626=_0x37f6();let _0x43df88=_0x37f626[_0x4eb887];return _0x43df88;}function p(_0x2f30ff){'@babel/helpers - typeof';const _0x15d6b5=_0x1964b5;return p=typeof Symbol==_0x15d6b5(0xd7)&&typeof Symbol['iterator']==_0x15d6b5(0x10a)?function(_0xa31c5b){return typeof _0xa31c5b;}:function(_0x277c23){const _0x1e6fe4=_0x15d6b5;return _0x277c23&&typeof Symbol==_0x1e6fe4(0xd7)&&_0x277c23['constructor']===Symbol&&_0x277c23!==Symbol[_0x1e6fe4(0xf3)]?_0x1e6fe4(0x10a):typeof _0x277c23;},p(_0x2f30ff);}function m(_0x23124e,_0x9b02e3){const _0x1b48fa=_0x1964b5;if(p(_0x23124e)!=_0x1b48fa(0xe0)||!_0x23124e)return _0x23124e;var _0x39880e;if(typeof Symbol<'u'&&(_0x39880e=_0x23124e[Symbol[_0x1b48fa(0xc8)]])!==void 0x0){var _0x4930a8=_0x39880e['call'](_0x23124e,_0x9b02e3||_0x1b48fa(0xd6));if(p(_0x4930a8)!=_0x1b48fa(0xe0))return _0x4930a8;throw TypeError(_0x1b48fa(0xf8));}return(_0x9b02e3===_0x1b48fa(0xd3)?String:Number)(_0x23124e);}function h(_0x4bf0f3){const _0x4138c2=_0x1964b5;var _0x1a7a27=m(_0x4bf0f3,_0x4138c2(0xd3));return p(_0x1a7a27)==_0x4138c2(0x10a)?_0x1a7a27:_0x1a7a27+'';}function g(_0x40658b,_0x90951f,_0xdf3119){return(_0x90951f=h(_0x90951f))in _0x40658b?Object['defineProperty'](_0x40658b,_0x90951f,{'value':_0xdf3119,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40658b[_0x90951f]=_0xdf3119,_0x40658b;}let _=class extends r['Plugin']{constructor(_0xbdd87=l,_0x1bb250,_0x2adb90){const _0x559410=_0x1964b5;super(),this[_0x559410(0x100)]=_0xbdd87,this[_0x559410(0x107)]=_0x1bb250,this[_0x559410(0xee)]=_0x2adb90;let {..._0x1cf2f0}=(0x0,r[_0x559410(0xde)])({},l,this[_0x559410(0x100)]);this[_0x559410(0x107)][_0x559410(0x105)](_0x559410(0xff),_0x1cf2f0);}[_0x1964b5(0xe2)](){const _0xd3eff4=_0x1964b5;this[_0xd3eff4(0xd0)]();}[_0x1964b5(0xd0)](){const _0x5f1ffc=_0x1964b5;(0x0,r[_0x5f1ffc(0xca)])(this['_injector'],[[i['ISocketService'],{'useClass':f}]]);}};g(_,_0x1964b5(0xec),_0x1964b5(0xcc)),g(_,'packageName',s),g(_,_0x1964b5(0xfe),c),_=d([(0x0,r[_0x1964b5(0x102)])(n[_0x1964b5(0x106)],i[_0x1964b5(0xd1)],e['UniverCollaborationPlugin'],t[_0x1964b5(0xed)]),u(0x1,r[_0x1964b5(0xdb)]),u(0x2,(0x0,r[_0x1964b5(0xf6)])(r['Injector']))],_);let v=class extends t[_0x1964b5(0xd5)]{constructor(_0x4ff054,_0x4ab89f,_0x327e9f,_0x50d1c9,_0x396dba){const _0x5d76d0=_0x1964b5;super(_0x4ff054,_0x4ab89f,_0x327e9f,_0x50d1c9,_0x396dba);let _0x225179=this['_configService'][_0x5d76d0(0xfa)](t[_0x5d76d0(0xdf)]);this[_0x5d76d0(0xc9)][_0x5d76d0(0x109)]({'interceptor':(_0x4d4d7e,_0x4519e8)=>{const _0x7a8625=_0x5d76d0;let _0x121bac=_0x4d4d7e[_0x7a8625(0x10b)];if(_0x225179!=null&&_0x225179['customHeaders']){for(let _0x40a968 in _0x225179[_0x7a8625(0x104)])_0x121bac[_0x7a8625(0x101)](_0x40a968,_0x225179[_0x7a8625(0x104)][_0x40a968]);}return _0x4519e8(_0x4d4d7e);}});}async['createSocket'](_0x5c72d3){const _0x51ae32=_0x1964b5;return this[_0x51ae32(0xe5)](_0x5c72d3);}};v=d([u(0x0,(0x0,r[_0x1964b5(0xf6)])(r['Injector'])),u(0x1,(0x0,r['Inject'])(i['HTTPService'])),u(0x2,r['IConfigService']),u(0x3,r[_0x1964b5(0xe4)]),u(0x4,e['ISnapshotServerService'])],v),Object[_0x1964b5(0xef)](exports,_0x1964b5(0xd9),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x1964b5(0xef)](exports,_0x1964b5(0xf0),{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5c5736=_0x1a65;(function(_0x50d104,_0x191f12){const _0x3ad77b=_0x1a65,_0x1acffb=_0x50d104();while(!![]){try{const _0x41a5ce=-parseInt(_0x3ad77b(0xb1))/0x1*(parseInt(_0x3ad77b(0xd0))/0x2)+-parseInt(_0x3ad77b(0xb4))/0x3+parseInt(_0x3ad77b(0xde))/0x4+parseInt(_0x3ad77b(0xd8))/0x5*(parseInt(_0x3ad77b(0xc9))/0x6)+parseInt(_0x3ad77b(0xb7))/0x7+-parseInt(_0x3ad77b(0xcc))/0x8*(parseInt(_0x3ad77b(0xb9))/0x9)+-parseInt(_0x3ad77b(0xc8))/0xa*(-parseInt(_0x3ad77b(0xbb))/0xb);if(_0x41a5ce===_0x191f12)break;else _0x1acffb['push'](_0x1acffb['shift']());}catch(_0xd41a51){_0x1acffb['push'](_0x1acffb['shift']());}}}(_0x21dc,0xe3f96));function _0x21dc(){const _0x3f62fe=['customHeaders','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','8KbBaNa','_configService','_httpService','pluginName','556806HwKvNd','object','length','symbol','error','default','pipe','setConfig','8970305MyZWRh','_registerDependencies','constructor','_injector','createSocket','message','5012676OiQorB','decorate','addEventListener','prototype','_doCreateSocket','6whoWfZ','toPrimitive','_config','3773538vKzDwX','send','next','126091nhmSWf','1.5.0','4240449XVaGhU','collaboration-client-node.config','44LxENzM','add','defineProperty','getOwnPropertyDescriptor','function','close','@univerjs-pro/collaboration-client-node','open','getConfig','removeEventListener','registerHTTPInterceptor','packageName','iterator','3169910GslBoV','6mtzHfA'];_0x21dc=function(){return _0x3f62fe;};return _0x21dc();}import{ISnapshotServerService as _0x315d99,UniverCollaborationPlugin as _0x3c9b38}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1871fa,CollaborationSocketService as _0x126b73,UniverCollaborationClientPlugin as _0x2d1a44}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x21378c}from'@univerjs-pro/license';import{DependentOn as _0x4679d4,Disposable as _0x4b2a42,DisposableCollection as _0x2f75fb,IConfigService as _0x566325,ILogService as _0xc16fad,Inject as _0x5322bc,Injector as _0x669579,Plugin as _0x2ca854,merge as _0x586a27,registerDependencies as _0x37ca6a,toDisposable as _0x159ab8}from'@univerjs/core';import{HTTPService as _0x9c7f3e,ISocketService as _0x2dc373,UniverNetworkPlugin as _0x2f0628}from'@univerjs/network';import{Observable as _0x399bb6,share as _0xeaf8f3}from'rxjs';import{WebSocket as _0x367cb6}from'ws';var C=_0x5c5736(0xc1),w=_0x5c5736(0xb8);const T={};function E(_0x4e8232,_0x4a74c2){return function(_0x2280ca,_0xdb882b){_0x4a74c2(_0x2280ca,_0xdb882b,_0x4e8232);};}function D(_0x4aae77,_0x5bf02c,_0x42674d,_0x3b57cd){const _0x4d4153=_0x5c5736;var _0xfc0c20=arguments[_0x4d4153(0xd2)],_0x3b799a=_0xfc0c20<0x3?_0x5bf02c:_0x3b57cd===null?_0x3b57cd=Object[_0x4d4153(0xbe)](_0x5bf02c,_0x42674d):_0x3b57cd,_0x401442;if(typeof Reflect==_0x4d4153(0xd1)&&typeof Reflect[_0x4d4153(0xdf)]==_0x4d4153(0xbf))_0x3b799a=Reflect[_0x4d4153(0xdf)](_0x4aae77,_0x5bf02c,_0x42674d,_0x3b57cd);else{for(var _0x1f159d=_0x4aae77[_0x4d4153(0xd2)]-0x1;_0x1f159d>=0x0;_0x1f159d--)(_0x401442=_0x4aae77[_0x1f159d])&&(_0x3b799a=(_0xfc0c20<0x3?_0x401442(_0x3b799a):_0xfc0c20>0x3?_0x401442(_0x5bf02c,_0x42674d,_0x3b799a):_0x401442(_0x5bf02c,_0x42674d))||_0x3b799a);}return _0xfc0c20>0x3&&_0x3b799a&&Object['defineProperty'](_0x5bf02c,_0x42674d,_0x3b799a),_0x3b799a;}let O=class extends _0x4b2a42{constructor(_0x2325f9){super(),this['_configService']=_0x2325f9;}[_0x5c5736(0xdc)](_0x3aa334){const _0x564ef6=_0x5c5736;var _0x57969c;let _0x5455d7=((_0x57969c=this[_0x564ef6(0xcd)]['getConfig'](_0x1871fa))==null?void 0x0:_0x57969c['customHeaders'])||{};try{let _0xb819eb=new _0x367cb6(_0x3aa334,{'headers':{..._0x5455d7}}),_0x4ab92f=new _0x2f75fb();return{'URL':_0x3aa334,'close':(_0xcfa829,_0x5e4640)=>{_0xb819eb['close'](_0xcfa829,_0x5e4640),_0x4ab92f['dispose']();},'send':_0x4d3180=>{const _0x4c8a9d=_0x564ef6;_0xb819eb[_0x4c8a9d(0xb5)](_0x4d3180);},'open$':new _0x399bb6(_0x327a4b=>{const _0x244b76=_0x564ef6;let _0x16efeb=_0x69244c=>_0x327a4b['next'](_0x69244c);_0xb819eb['addEventListener']('open',_0x16efeb),_0x4ab92f[_0x244b76(0xbc)](_0x159ab8(()=>_0xb819eb[_0x244b76(0xc4)](_0x244b76(0xc2),_0x16efeb)));})[_0x564ef6(0xd6)](_0xeaf8f3()),'close$':new _0x399bb6(_0x5602cf=>{const _0x441f82=_0x564ef6;let _0x3e79d1=_0x5da07f=>_0x5602cf[_0x441f82(0xb6)](_0x5da07f);_0xb819eb['addEventListener']('close',_0x3e79d1),_0x4ab92f[_0x441f82(0xbc)](_0x159ab8(()=>_0xb819eb[_0x441f82(0xc4)](_0x441f82(0xc0),_0x3e79d1)));})[_0x564ef6(0xd6)](_0xeaf8f3()),'error$':new _0x399bb6(_0x48545c=>{const _0x49cffd=_0x564ef6;let _0x1050a5=_0x50a749=>_0x48545c['next'](_0x50a749);_0xb819eb[_0x49cffd(0xe0)](_0x49cffd(0xd4),_0x1050a5),_0x4ab92f[_0x49cffd(0xbc)](_0x159ab8(()=>_0xb819eb[_0x49cffd(0xc4)](_0x49cffd(0xd4),_0x1050a5)));})[_0x564ef6(0xd6)](_0xeaf8f3()),'message$':new _0x399bb6(_0x2d0736=>{const _0x4fea7a=_0x564ef6;let _0x2e53bd=_0x4ffbed=>_0x2d0736[_0x4fea7a(0xb6)](_0x4ffbed);_0xb819eb['addEventListener'](_0x4fea7a(0xdd),_0x2e53bd),_0x4ab92f[_0x4fea7a(0xbc)](_0x159ab8(()=>_0xb819eb[_0x4fea7a(0xc4)](_0x4fea7a(0xdd),_0x2e53bd)));})[_0x564ef6(0xd6)](_0xeaf8f3())};}catch(_0x198e19){return console[_0x564ef6(0xd4)](_0x198e19),null;}}};O=D([E(0x0,_0x566325)],O);function k(_0x46b9f2){'@babel/helpers - typeof';const _0xbf82b5=_0x5c5736;return k=typeof Symbol==_0xbf82b5(0xbf)&&typeof Symbol[_0xbf82b5(0xc7)]==_0xbf82b5(0xd3)?function(_0x1832b2){return typeof _0x1832b2;}:function(_0x4bc765){const _0x4545f5=_0xbf82b5;return _0x4bc765&&typeof Symbol==_0x4545f5(0xbf)&&_0x4bc765[_0x4545f5(0xda)]===Symbol&&_0x4bc765!==Symbol[_0x4545f5(0xaf)]?_0x4545f5(0xd3):typeof _0x4bc765;},k(_0x46b9f2);}function A(_0x2d6fed,_0x3b8dc0){const _0x55f8a4=_0x5c5736;if(k(_0x2d6fed)!=_0x55f8a4(0xd1)||!_0x2d6fed)return _0x2d6fed;var _0x1e4586;if(typeof Symbol<'u'&&(_0x1e4586=_0x2d6fed[Symbol[_0x55f8a4(0xb2)]])!==void 0x0){var _0x10348c=_0x1e4586['call'](_0x2d6fed,_0x3b8dc0||_0x55f8a4(0xd5));if(k(_0x10348c)!='object')return _0x10348c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3b8dc0==='string'?String:Number)(_0x2d6fed);}function j(_0x11c940){const _0x59981d=_0x5c5736;var _0x560e3f=A(_0x11c940,'string');return k(_0x560e3f)==_0x59981d(0xd3)?_0x560e3f:_0x560e3f+'';}function M(_0x41b5f6,_0x50a09c,_0x83cc3b){const _0xc3b925=_0x5c5736;return(_0x50a09c=j(_0x50a09c))in _0x41b5f6?Object[_0xc3b925(0xbd)](_0x41b5f6,_0x50a09c,{'value':_0x83cc3b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x41b5f6[_0x50a09c]=_0x83cc3b,_0x41b5f6;}let N=class extends _0x2ca854{constructor(_0xa08031=T,_0x53e7ee,_0x25364b){const _0x4db3a9=_0x5c5736;super(),this[_0x4db3a9(0xb3)]=_0xa08031,this['_configService']=_0x53e7ee,this[_0x4db3a9(0xdb)]=_0x25364b;let {..._0x2eece6}=_0x586a27({},T,this[_0x4db3a9(0xb3)]);this['_configService'][_0x4db3a9(0xd7)](_0x4db3a9(0xba),_0x2eece6);}['onStarting'](){const _0x1512d4=_0x5c5736;this[_0x1512d4(0xd9)]();}[_0x5c5736(0xd9)](){const _0x350e47=_0x5c5736;_0x37ca6a(this[_0x350e47(0xdb)],[[_0x2dc373,{'useClass':O}]]);}};M(N,_0x5c5736(0xcf),_0x5c5736(0xcb)),M(N,_0x5c5736(0xc6),C),M(N,'version',w),N=D([_0x4679d4(_0x21378c,_0x2f0628,_0x3c9b38,_0x2d1a44),E(0x1,_0x566325),E(0x2,_0x5322bc(_0x669579))],N);let P=class extends _0x126b73{constructor(_0x336b27,_0x59a342,_0x8edd57,_0x544973,_0x2cbefb){const _0x4b2de4=_0x5c5736;super(_0x336b27,_0x59a342,_0x8edd57,_0x544973,_0x2cbefb);let _0x213953=this[_0x4b2de4(0xcd)][_0x4b2de4(0xc3)](_0x1871fa);this[_0x4b2de4(0xce)][_0x4b2de4(0xc5)]({'interceptor':(_0x420339,_0x3c2b9d)=>{const _0x32c7f8=_0x4b2de4;let _0x2719b5=_0x420339['headers'];if(_0x213953!=null&&_0x213953[_0x32c7f8(0xca)]){for(let _0x311b55 in _0x213953[_0x32c7f8(0xca)])_0x2719b5['set'](_0x311b55,_0x213953[_0x32c7f8(0xca)][_0x311b55]);}return _0x3c2b9d(_0x420339);}});}async[_0x5c5736(0xdc)](_0xd77edb){const _0x5aca64=_0x5c5736;return this[_0x5aca64(0xb0)](_0xd77edb);}};P=D([E(0x0,_0x5322bc(_0x669579)),E(0x1,_0x5322bc(_0x9c7f3e)),E(0x2,_0x566325),E(0x3,_0xc16fad),E(0x4,_0x315d99)],P);function _0x1a65(_0x4f9f6b,_0x14760f){_0x4f9f6b=_0x4f9f6b-0xaf;const _0x21dc56=_0x21dc();let _0x1a65e0=_0x21dc56[_0x4f9f6b];return _0x1a65e0;}export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0x4e5ede=_0x552d;(function(_0x3ee7c4,_0x433baf){const _0x10ba5b=_0x552d,_0x37f7c4=_0x3ee7c4();while(!![]){try{const _0x5be1a6=-parseInt(_0x10ba5b(0x10c))/0x1*(-parseInt(_0x10ba5b(0x104))/0x2)+parseInt(_0x10ba5b(0x110))/0x3*(parseInt(_0x10ba5b(0x130))/0x4)+parseInt(_0x10ba5b(0x11a))/0x5+-parseInt(_0x10ba5b(0x12c))/0x6+parseInt(_0x10ba5b(0x12d))/0x7*(-parseInt(_0x10ba5b(0x12b))/0x8)+parseInt(_0x10ba5b(0x11f))/0x9*(parseInt(_0x10ba5b(0x109))/0xa)+parseInt(_0x10ba5b(0x108))/0xb;if(_0x5be1a6===_0x433baf)break;else _0x37f7c4['push'](_0x37f7c4['shift']());}catch(_0x4499d6){_0x37f7c4['push'](_0x37f7c4['shift']());}}}(_0x2c5b,0xe8e53));function _0x552d(_0x29107d,_0x2e1f5f){_0x29107d=_0x29107d-0x104;const _0x2c5b99=_0x2c5b();let _0x552d46=_0x2c5b99[_0x29107d];return _0x552d46;}import{ISnapshotServerService as _0x326cbd,UniverCollaborationPlugin as _0x3e5c6e}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2b6ab3,CollaborationSocketService as _0x2786a9,UniverCollaborationClientPlugin as _0x535c1b}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x19c837}from'@univerjs-pro/license';function _0x2c5b(){const _0x125238=['1010PdzPvq','object','prototype','3607hPKBFy','_config','call','iterator','1188gzJMkT','function','_registerDependencies','createSocket','pipe','getConfig','send','_httpService','removeEventListener','constructor','1472475FWhCYC','next','length','headers','_injector','72918VwrxfR','registerHTTPInterceptor','customHeaders','defineProperty','symbol','close','dispose','getOwnPropertyDescriptor','onStarting','string','error','set','8NaoogK','9190512kWdqrP','4059349OoEomG','add','collaboration-client-node.config','1092WKLqdM','decorate','message','setConfig','addEventListener','open','packageName','226EsXEJZ','toPrimitive','pluginName','_configService','15808122ZeechC'];_0x2c5b=function(){return _0x125238;};return _0x2c5b();}import{DependentOn as _0x354757,Disposable as _0x3eb992,DisposableCollection as _0x421a87,IConfigService as _0x14ebb6,ILogService as _0x438094,Inject as _0x2230a9,Injector as _0x47ab99,Plugin as _0x2b7407,merge as _0x26d366,registerDependencies as _0x10eca6,toDisposable as _0x11414c}from'@univerjs/core';import{HTTPService as _0x5b9e3f,ISocketService as _0x2d4145,UniverNetworkPlugin as _0x5e7747}from'@univerjs/network';import{Observable as _0x56148f,share as _0x30a152}from'rxjs';import{WebSocket as _0x63fb79}from'ws';var C='@univerjs-pro/collaboration-client-node',w='1.5.1';const T={};function E(_0x1e4a83,_0xea7fd3){return function(_0x4866a4,_0x351f22){_0xea7fd3(_0x4866a4,_0x351f22,_0x1e4a83);};}function D(_0x1ced99,_0xa4acba,_0x2765fa,_0x1413e3){const _0xa146dd=_0x552d;var _0x4329ca=arguments[_0xa146dd(0x11c)],_0xab9118=_0x4329ca<0x3?_0xa4acba:_0x1413e3===null?_0x1413e3=Object[_0xa146dd(0x126)](_0xa4acba,_0x2765fa):_0x1413e3,_0x2a8886;if(typeof Reflect==_0xa146dd(0x10a)&&typeof Reflect['decorate']==_0xa146dd(0x111))_0xab9118=Reflect[_0xa146dd(0x131)](_0x1ced99,_0xa4acba,_0x2765fa,_0x1413e3);else{for(var _0xe77767=_0x1ced99[_0xa146dd(0x11c)]-0x1;_0xe77767>=0x0;_0xe77767--)(_0x2a8886=_0x1ced99[_0xe77767])&&(_0xab9118=(_0x4329ca<0x3?_0x2a8886(_0xab9118):_0x4329ca>0x3?_0x2a8886(_0xa4acba,_0x2765fa,_0xab9118):_0x2a8886(_0xa4acba,_0x2765fa))||_0xab9118);}return _0x4329ca>0x3&&_0xab9118&&Object[_0xa146dd(0x122)](_0xa4acba,_0x2765fa,_0xab9118),_0xab9118;}let O=class extends _0x3eb992{constructor(_0x15fa4d){const _0x366f6c=_0x552d;super(),this[_0x366f6c(0x107)]=_0x15fa4d;}[_0x4e5ede(0x113)](_0x1ac2a0){const _0x2d4cbc=_0x4e5ede;var _0x2d61b8;let _0x311408=((_0x2d61b8=this[_0x2d4cbc(0x107)][_0x2d4cbc(0x115)](_0x2b6ab3))==null?void 0x0:_0x2d61b8[_0x2d4cbc(0x121)])||{};try{let _0x3e2a4a=new _0x63fb79(_0x1ac2a0,{'headers':{..._0x311408}}),_0x270485=new _0x421a87();return{'URL':_0x1ac2a0,'close':(_0x26ea07,_0x1ea03f)=>{const _0x3fc34e=_0x2d4cbc;_0x3e2a4a[_0x3fc34e(0x124)](_0x26ea07,_0x1ea03f),_0x270485[_0x3fc34e(0x125)]();},'send':_0x2e0a58=>{const _0x1bb720=_0x2d4cbc;_0x3e2a4a[_0x1bb720(0x116)](_0x2e0a58);},'open$':new _0x56148f(_0x159f88=>{const _0x136750=_0x2d4cbc;let _0x20f89c=_0x4a3cef=>_0x159f88[_0x136750(0x11b)](_0x4a3cef);_0x3e2a4a['addEventListener']('open',_0x20f89c),_0x270485[_0x136750(0x12e)](_0x11414c(()=>_0x3e2a4a[_0x136750(0x118)](_0x136750(0x135),_0x20f89c)));})['pipe'](_0x30a152()),'close$':new _0x56148f(_0x510e38=>{const _0x51be4e=_0x2d4cbc;let _0x2e1505=_0x4cf132=>_0x510e38[_0x51be4e(0x11b)](_0x4cf132);_0x3e2a4a['addEventListener'](_0x51be4e(0x124),_0x2e1505),_0x270485[_0x51be4e(0x12e)](_0x11414c(()=>_0x3e2a4a[_0x51be4e(0x118)](_0x51be4e(0x124),_0x2e1505)));})[_0x2d4cbc(0x114)](_0x30a152()),'error$':new _0x56148f(_0x18ec05=>{const _0x98126d=_0x2d4cbc;let _0x4d7f00=_0x21b930=>_0x18ec05[_0x98126d(0x11b)](_0x21b930);_0x3e2a4a[_0x98126d(0x134)](_0x98126d(0x129),_0x4d7f00),_0x270485[_0x98126d(0x12e)](_0x11414c(()=>_0x3e2a4a['removeEventListener'](_0x98126d(0x129),_0x4d7f00)));})[_0x2d4cbc(0x114)](_0x30a152()),'message$':new _0x56148f(_0x1ee8d5=>{const _0x5f4d22=_0x2d4cbc;let _0x2d1217=_0x56cd20=>_0x1ee8d5[_0x5f4d22(0x11b)](_0x56cd20);_0x3e2a4a[_0x5f4d22(0x134)]('message',_0x2d1217),_0x270485[_0x5f4d22(0x12e)](_0x11414c(()=>_0x3e2a4a[_0x5f4d22(0x118)](_0x5f4d22(0x132),_0x2d1217)));})['pipe'](_0x30a152())};}catch(_0x987be8){return console[_0x2d4cbc(0x129)](_0x987be8),null;}}};O=D([E(0x0,_0x14ebb6)],O);function k(_0x57ebc5){'@babel/helpers - typeof';const _0x5c4121=_0x4e5ede;return k=typeof Symbol==_0x5c4121(0x111)&&typeof Symbol[_0x5c4121(0x10f)]==_0x5c4121(0x123)?function(_0x1fa2c5){return typeof _0x1fa2c5;}:function(_0x374e5e){const _0x2cfce4=_0x5c4121;return _0x374e5e&&typeof Symbol=='function'&&_0x374e5e[_0x2cfce4(0x119)]===Symbol&&_0x374e5e!==Symbol[_0x2cfce4(0x10b)]?'symbol':typeof _0x374e5e;},k(_0x57ebc5);}function A(_0x4781d2,_0x1aacf6){const _0x4a714f=_0x4e5ede;if(k(_0x4781d2)!=_0x4a714f(0x10a)||!_0x4781d2)return _0x4781d2;var _0x58526d;if(typeof Symbol<'u'&&(_0x58526d=_0x4781d2[Symbol[_0x4a714f(0x105)]])!==void 0x0){var _0x25f054=_0x58526d[_0x4a714f(0x10e)](_0x4781d2,_0x1aacf6||'default');if(k(_0x25f054)!='object')return _0x25f054;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1aacf6===_0x4a714f(0x128)?String:Number)(_0x4781d2);}function j(_0x454662){const _0x550f1d=_0x4e5ede;var _0x3f3bd4=A(_0x454662,_0x550f1d(0x128));return k(_0x3f3bd4)=='symbol'?_0x3f3bd4:_0x3f3bd4+'';}function M(_0x2cca8b,_0x3dccd8,_0x4acee8){return(_0x3dccd8=j(_0x3dccd8))in _0x2cca8b?Object['defineProperty'](_0x2cca8b,_0x3dccd8,{'value':_0x4acee8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2cca8b[_0x3dccd8]=_0x4acee8,_0x2cca8b;}let N=class extends _0x2b7407{constructor(_0x459d0b=T,_0x244bf4,_0x2a43fc){const _0xf52eb8=_0x4e5ede;super(),this[_0xf52eb8(0x10d)]=_0x459d0b,this[_0xf52eb8(0x107)]=_0x244bf4,this[_0xf52eb8(0x11e)]=_0x2a43fc;let {..._0x2e3d5a}=_0x26d366({},T,this[_0xf52eb8(0x10d)]);this[_0xf52eb8(0x107)][_0xf52eb8(0x133)](_0xf52eb8(0x12f),_0x2e3d5a);}[_0x4e5ede(0x127)](){const _0x3d5379=_0x4e5ede;this[_0x3d5379(0x112)]();}[_0x4e5ede(0x112)](){const _0x47d1dd=_0x4e5ede;_0x10eca6(this[_0x47d1dd(0x11e)],[[_0x2d4145,{'useClass':O}]]);}};M(N,_0x4e5ede(0x106),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),M(N,_0x4e5ede(0x136),C),M(N,'version',w),N=D([_0x354757(_0x19c837,_0x5e7747,_0x3e5c6e,_0x535c1b),E(0x1,_0x14ebb6),E(0x2,_0x2230a9(_0x47ab99))],N);let P=class extends _0x2786a9{constructor(_0x416048,_0x188e2d,_0x52e635,_0x2e88c8,_0x5ad41c){const _0x103f79=_0x4e5ede;super(_0x416048,_0x188e2d,_0x52e635,_0x2e88c8,_0x5ad41c);let _0x32ad77=this[_0x103f79(0x107)][_0x103f79(0x115)](_0x2b6ab3);this[_0x103f79(0x117)][_0x103f79(0x120)]({'interceptor':(_0x54d7d8,_0x322182)=>{const _0x17df32=_0x103f79;let _0x10110e=_0x54d7d8[_0x17df32(0x11d)];if(_0x32ad77!=null&&_0x32ad77[_0x17df32(0x121)]){for(let _0x25d8a5 in _0x32ad77[_0x17df32(0x121)])_0x10110e[_0x17df32(0x12a)](_0x25d8a5,_0x32ad77[_0x17df32(0x121)][_0x25d8a5]);}return _0x322182(_0x54d7d8);}});}async['createSocket'](_0x4b439d){return this['_doCreateSocket'](_0x4b439d);}};P=D([E(0x0,_0x2230a9(_0x47ab99)),E(0x1,_0x2230a9(_0x5b9e3f)),E(0x2,_0x14ebb6),E(0x3,_0x438094),E(0x4,_0x326cbd)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5c5736=_0x1a65;(function(_0x50d104,_0x191f12){const _0x3ad77b=_0x1a65,_0x1acffb=_0x50d104();while(!![]){try{const _0x41a5ce=-parseInt(_0x3ad77b(0xb1))/0x1*(parseInt(_0x3ad77b(0xd0))/0x2)+-parseInt(_0x3ad77b(0xb4))/0x3+parseInt(_0x3ad77b(0xde))/0x4+parseInt(_0x3ad77b(0xd8))/0x5*(parseInt(_0x3ad77b(0xc9))/0x6)+parseInt(_0x3ad77b(0xb7))/0x7+-parseInt(_0x3ad77b(0xcc))/0x8*(parseInt(_0x3ad77b(0xb9))/0x9)+-parseInt(_0x3ad77b(0xc8))/0xa*(-parseInt(_0x3ad77b(0xbb))/0xb);if(_0x41a5ce===_0x191f12)break;else _0x1acffb['push'](_0x1acffb['shift']());}catch(_0xd41a51){_0x1acffb['push'](_0x1acffb['shift']());}}}(_0x21dc,0xe3f96));function _0x21dc(){const _0x3f62fe=['customHeaders','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','8KbBaNa','_configService','_httpService','pluginName','556806HwKvNd','object','length','symbol','error','default','pipe','setConfig','8970305MyZWRh','_registerDependencies','constructor','_injector','createSocket','message','5012676OiQorB','decorate','addEventListener','prototype','_doCreateSocket','6whoWfZ','toPrimitive','_config','3773538vKzDwX','send','next','126091nhmSWf','1.5.0','4240449XVaGhU','collaboration-client-node.config','44LxENzM','add','defineProperty','getOwnPropertyDescriptor','function','close','@univerjs-pro/collaboration-client-node','open','getConfig','removeEventListener','registerHTTPInterceptor','packageName','iterator','3169910GslBoV','6mtzHfA'];_0x21dc=function(){return _0x3f62fe;};return _0x21dc();}import{ISnapshotServerService as _0x315d99,UniverCollaborationPlugin as _0x3c9b38}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1871fa,CollaborationSocketService as _0x126b73,UniverCollaborationClientPlugin as _0x2d1a44}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x21378c}from'@univerjs-pro/license';import{DependentOn as _0x4679d4,Disposable as _0x4b2a42,DisposableCollection as _0x2f75fb,IConfigService as _0x566325,ILogService as _0xc16fad,Inject as _0x5322bc,Injector as _0x669579,Plugin as _0x2ca854,merge as _0x586a27,registerDependencies as _0x37ca6a,toDisposable as _0x159ab8}from'@univerjs/core';import{HTTPService as _0x9c7f3e,ISocketService as _0x2dc373,UniverNetworkPlugin as _0x2f0628}from'@univerjs/network';import{Observable as _0x399bb6,share as _0xeaf8f3}from'rxjs';import{WebSocket as _0x367cb6}from'ws';var C=_0x5c5736(0xc1),w=_0x5c5736(0xb8);const T={};function E(_0x4e8232,_0x4a74c2){return function(_0x2280ca,_0xdb882b){_0x4a74c2(_0x2280ca,_0xdb882b,_0x4e8232);};}function D(_0x4aae77,_0x5bf02c,_0x42674d,_0x3b57cd){const _0x4d4153=_0x5c5736;var _0xfc0c20=arguments[_0x4d4153(0xd2)],_0x3b799a=_0xfc0c20<0x3?_0x5bf02c:_0x3b57cd===null?_0x3b57cd=Object[_0x4d4153(0xbe)](_0x5bf02c,_0x42674d):_0x3b57cd,_0x401442;if(typeof Reflect==_0x4d4153(0xd1)&&typeof Reflect[_0x4d4153(0xdf)]==_0x4d4153(0xbf))_0x3b799a=Reflect[_0x4d4153(0xdf)](_0x4aae77,_0x5bf02c,_0x42674d,_0x3b57cd);else{for(var _0x1f159d=_0x4aae77[_0x4d4153(0xd2)]-0x1;_0x1f159d>=0x0;_0x1f159d--)(_0x401442=_0x4aae77[_0x1f159d])&&(_0x3b799a=(_0xfc0c20<0x3?_0x401442(_0x3b799a):_0xfc0c20>0x3?_0x401442(_0x5bf02c,_0x42674d,_0x3b799a):_0x401442(_0x5bf02c,_0x42674d))||_0x3b799a);}return _0xfc0c20>0x3&&_0x3b799a&&Object['defineProperty'](_0x5bf02c,_0x42674d,_0x3b799a),_0x3b799a;}let O=class extends _0x4b2a42{constructor(_0x2325f9){super(),this['_configService']=_0x2325f9;}[_0x5c5736(0xdc)](_0x3aa334){const _0x564ef6=_0x5c5736;var _0x57969c;let _0x5455d7=((_0x57969c=this[_0x564ef6(0xcd)]['getConfig'](_0x1871fa))==null?void 0x0:_0x57969c['customHeaders'])||{};try{let _0xb819eb=new _0x367cb6(_0x3aa334,{'headers':{..._0x5455d7}}),_0x4ab92f=new _0x2f75fb();return{'URL':_0x3aa334,'close':(_0xcfa829,_0x5e4640)=>{_0xb819eb['close'](_0xcfa829,_0x5e4640),_0x4ab92f['dispose']();},'send':_0x4d3180=>{const _0x4c8a9d=_0x564ef6;_0xb819eb[_0x4c8a9d(0xb5)](_0x4d3180);},'open$':new _0x399bb6(_0x327a4b=>{const _0x244b76=_0x564ef6;let _0x16efeb=_0x69244c=>_0x327a4b['next'](_0x69244c);_0xb819eb['addEventListener']('open',_0x16efeb),_0x4ab92f[_0x244b76(0xbc)](_0x159ab8(()=>_0xb819eb[_0x244b76(0xc4)](_0x244b76(0xc2),_0x16efeb)));})[_0x564ef6(0xd6)](_0xeaf8f3()),'close$':new _0x399bb6(_0x5602cf=>{const _0x441f82=_0x564ef6;let _0x3e79d1=_0x5da07f=>_0x5602cf[_0x441f82(0xb6)](_0x5da07f);_0xb819eb['addEventListener']('close',_0x3e79d1),_0x4ab92f[_0x441f82(0xbc)](_0x159ab8(()=>_0xb819eb[_0x441f82(0xc4)](_0x441f82(0xc0),_0x3e79d1)));})[_0x564ef6(0xd6)](_0xeaf8f3()),'error$':new _0x399bb6(_0x48545c=>{const _0x49cffd=_0x564ef6;let _0x1050a5=_0x50a749=>_0x48545c['next'](_0x50a749);_0xb819eb[_0x49cffd(0xe0)](_0x49cffd(0xd4),_0x1050a5),_0x4ab92f[_0x49cffd(0xbc)](_0x159ab8(()=>_0xb819eb[_0x49cffd(0xc4)](_0x49cffd(0xd4),_0x1050a5)));})[_0x564ef6(0xd6)](_0xeaf8f3()),'message$':new _0x399bb6(_0x2d0736=>{const _0x4fea7a=_0x564ef6;let _0x2e53bd=_0x4ffbed=>_0x2d0736[_0x4fea7a(0xb6)](_0x4ffbed);_0xb819eb['addEventListener'](_0x4fea7a(0xdd),_0x2e53bd),_0x4ab92f[_0x4fea7a(0xbc)](_0x159ab8(()=>_0xb819eb[_0x4fea7a(0xc4)](_0x4fea7a(0xdd),_0x2e53bd)));})[_0x564ef6(0xd6)](_0xeaf8f3())};}catch(_0x198e19){return console[_0x564ef6(0xd4)](_0x198e19),null;}}};O=D([E(0x0,_0x566325)],O);function k(_0x46b9f2){'@babel/helpers - typeof';const _0xbf82b5=_0x5c5736;return k=typeof Symbol==_0xbf82b5(0xbf)&&typeof Symbol[_0xbf82b5(0xc7)]==_0xbf82b5(0xd3)?function(_0x1832b2){return typeof _0x1832b2;}:function(_0x4bc765){const _0x4545f5=_0xbf82b5;return _0x4bc765&&typeof Symbol==_0x4545f5(0xbf)&&_0x4bc765[_0x4545f5(0xda)]===Symbol&&_0x4bc765!==Symbol[_0x4545f5(0xaf)]?_0x4545f5(0xd3):typeof _0x4bc765;},k(_0x46b9f2);}function A(_0x2d6fed,_0x3b8dc0){const _0x55f8a4=_0x5c5736;if(k(_0x2d6fed)!=_0x55f8a4(0xd1)||!_0x2d6fed)return _0x2d6fed;var _0x1e4586;if(typeof Symbol<'u'&&(_0x1e4586=_0x2d6fed[Symbol[_0x55f8a4(0xb2)]])!==void 0x0){var _0x10348c=_0x1e4586['call'](_0x2d6fed,_0x3b8dc0||_0x55f8a4(0xd5));if(k(_0x10348c)!='object')return _0x10348c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3b8dc0==='string'?String:Number)(_0x2d6fed);}function j(_0x11c940){const _0x59981d=_0x5c5736;var _0x560e3f=A(_0x11c940,'string');return k(_0x560e3f)==_0x59981d(0xd3)?_0x560e3f:_0x560e3f+'';}function M(_0x41b5f6,_0x50a09c,_0x83cc3b){const _0xc3b925=_0x5c5736;return(_0x50a09c=j(_0x50a09c))in _0x41b5f6?Object[_0xc3b925(0xbd)](_0x41b5f6,_0x50a09c,{'value':_0x83cc3b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x41b5f6[_0x50a09c]=_0x83cc3b,_0x41b5f6;}let N=class extends _0x2ca854{constructor(_0xa08031=T,_0x53e7ee,_0x25364b){const _0x4db3a9=_0x5c5736;super(),this[_0x4db3a9(0xb3)]=_0xa08031,this['_configService']=_0x53e7ee,this[_0x4db3a9(0xdb)]=_0x25364b;let {..._0x2eece6}=_0x586a27({},T,this[_0x4db3a9(0xb3)]);this['_configService'][_0x4db3a9(0xd7)](_0x4db3a9(0xba),_0x2eece6);}['onStarting'](){const _0x1512d4=_0x5c5736;this[_0x1512d4(0xd9)]();}[_0x5c5736(0xd9)](){const _0x350e47=_0x5c5736;_0x37ca6a(this[_0x350e47(0xdb)],[[_0x2dc373,{'useClass':O}]]);}};M(N,_0x5c5736(0xcf),_0x5c5736(0xcb)),M(N,_0x5c5736(0xc6),C),M(N,'version',w),N=D([_0x4679d4(_0x21378c,_0x2f0628,_0x3c9b38,_0x2d1a44),E(0x1,_0x566325),E(0x2,_0x5322bc(_0x669579))],N);let P=class extends _0x126b73{constructor(_0x336b27,_0x59a342,_0x8edd57,_0x544973,_0x2cbefb){const _0x4b2de4=_0x5c5736;super(_0x336b27,_0x59a342,_0x8edd57,_0x544973,_0x2cbefb);let _0x213953=this[_0x4b2de4(0xcd)][_0x4b2de4(0xc3)](_0x1871fa);this[_0x4b2de4(0xce)][_0x4b2de4(0xc5)]({'interceptor':(_0x420339,_0x3c2b9d)=>{const _0x32c7f8=_0x4b2de4;let _0x2719b5=_0x420339['headers'];if(_0x213953!=null&&_0x213953[_0x32c7f8(0xca)]){for(let _0x311b55 in _0x213953[_0x32c7f8(0xca)])_0x2719b5['set'](_0x311b55,_0x213953[_0x32c7f8(0xca)][_0x311b55]);}return _0x3c2b9d(_0x420339);}});}async[_0x5c5736(0xdc)](_0xd77edb){const _0x5aca64=_0x5c5736;return this[_0x5aca64(0xb0)](_0xd77edb);}};P=D([E(0x0,_0x5322bc(_0x669579)),E(0x1,_0x5322bc(_0x9c7f3e)),E(0x2,_0x566325),E(0x3,_0xc16fad),E(0x4,_0x315d99)],P);function _0x1a65(_0x4f9f6b,_0x14760f){_0x4f9f6b=_0x4f9f6b-0xaf;const _0x21dc56=_0x21dc();let _0x1a65e0=_0x21dc56[_0x4f9f6b];return _0x1a65e0;}export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0x4e5ede=_0x552d;(function(_0x3ee7c4,_0x433baf){const _0x10ba5b=_0x552d,_0x37f7c4=_0x3ee7c4();while(!![]){try{const _0x5be1a6=-parseInt(_0x10ba5b(0x10c))/0x1*(-parseInt(_0x10ba5b(0x104))/0x2)+parseInt(_0x10ba5b(0x110))/0x3*(parseInt(_0x10ba5b(0x130))/0x4)+parseInt(_0x10ba5b(0x11a))/0x5+-parseInt(_0x10ba5b(0x12c))/0x6+parseInt(_0x10ba5b(0x12d))/0x7*(-parseInt(_0x10ba5b(0x12b))/0x8)+parseInt(_0x10ba5b(0x11f))/0x9*(parseInt(_0x10ba5b(0x109))/0xa)+parseInt(_0x10ba5b(0x108))/0xb;if(_0x5be1a6===_0x433baf)break;else _0x37f7c4['push'](_0x37f7c4['shift']());}catch(_0x4499d6){_0x37f7c4['push'](_0x37f7c4['shift']());}}}(_0x2c5b,0xe8e53));function _0x552d(_0x29107d,_0x2e1f5f){_0x29107d=_0x29107d-0x104;const _0x2c5b99=_0x2c5b();let _0x552d46=_0x2c5b99[_0x29107d];return _0x552d46;}import{ISnapshotServerService as _0x326cbd,UniverCollaborationPlugin as _0x3e5c6e}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2b6ab3,CollaborationSocketService as _0x2786a9,UniverCollaborationClientPlugin as _0x535c1b}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x19c837}from'@univerjs-pro/license';function _0x2c5b(){const _0x125238=['1010PdzPvq','object','prototype','3607hPKBFy','_config','call','iterator','1188gzJMkT','function','_registerDependencies','createSocket','pipe','getConfig','send','_httpService','removeEventListener','constructor','1472475FWhCYC','next','length','headers','_injector','72918VwrxfR','registerHTTPInterceptor','customHeaders','defineProperty','symbol','close','dispose','getOwnPropertyDescriptor','onStarting','string','error','set','8NaoogK','9190512kWdqrP','4059349OoEomG','add','collaboration-client-node.config','1092WKLqdM','decorate','message','setConfig','addEventListener','open','packageName','226EsXEJZ','toPrimitive','pluginName','_configService','15808122ZeechC'];_0x2c5b=function(){return _0x125238;};return _0x2c5b();}import{DependentOn as _0x354757,Disposable as _0x3eb992,DisposableCollection as _0x421a87,IConfigService as _0x14ebb6,ILogService as _0x438094,Inject as _0x2230a9,Injector as _0x47ab99,Plugin as _0x2b7407,merge as _0x26d366,registerDependencies as _0x10eca6,toDisposable as _0x11414c}from'@univerjs/core';import{HTTPService as _0x5b9e3f,ISocketService as _0x2d4145,UniverNetworkPlugin as _0x5e7747}from'@univerjs/network';import{Observable as _0x56148f,share as _0x30a152}from'rxjs';import{WebSocket as _0x63fb79}from'ws';var C='@univerjs-pro/collaboration-client-node',w='1.5.1';const T={};function E(_0x1e4a83,_0xea7fd3){return function(_0x4866a4,_0x351f22){_0xea7fd3(_0x4866a4,_0x351f22,_0x1e4a83);};}function D(_0x1ced99,_0xa4acba,_0x2765fa,_0x1413e3){const _0xa146dd=_0x552d;var _0x4329ca=arguments[_0xa146dd(0x11c)],_0xab9118=_0x4329ca<0x3?_0xa4acba:_0x1413e3===null?_0x1413e3=Object[_0xa146dd(0x126)](_0xa4acba,_0x2765fa):_0x1413e3,_0x2a8886;if(typeof Reflect==_0xa146dd(0x10a)&&typeof Reflect['decorate']==_0xa146dd(0x111))_0xab9118=Reflect[_0xa146dd(0x131)](_0x1ced99,_0xa4acba,_0x2765fa,_0x1413e3);else{for(var _0xe77767=_0x1ced99[_0xa146dd(0x11c)]-0x1;_0xe77767>=0x0;_0xe77767--)(_0x2a8886=_0x1ced99[_0xe77767])&&(_0xab9118=(_0x4329ca<0x3?_0x2a8886(_0xab9118):_0x4329ca>0x3?_0x2a8886(_0xa4acba,_0x2765fa,_0xab9118):_0x2a8886(_0xa4acba,_0x2765fa))||_0xab9118);}return _0x4329ca>0x3&&_0xab9118&&Object[_0xa146dd(0x122)](_0xa4acba,_0x2765fa,_0xab9118),_0xab9118;}let O=class extends _0x3eb992{constructor(_0x15fa4d){const _0x366f6c=_0x552d;super(),this[_0x366f6c(0x107)]=_0x15fa4d;}[_0x4e5ede(0x113)](_0x1ac2a0){const _0x2d4cbc=_0x4e5ede;var _0x2d61b8;let _0x311408=((_0x2d61b8=this[_0x2d4cbc(0x107)][_0x2d4cbc(0x115)](_0x2b6ab3))==null?void 0x0:_0x2d61b8[_0x2d4cbc(0x121)])||{};try{let _0x3e2a4a=new _0x63fb79(_0x1ac2a0,{'headers':{..._0x311408}}),_0x270485=new _0x421a87();return{'URL':_0x1ac2a0,'close':(_0x26ea07,_0x1ea03f)=>{const _0x3fc34e=_0x2d4cbc;_0x3e2a4a[_0x3fc34e(0x124)](_0x26ea07,_0x1ea03f),_0x270485[_0x3fc34e(0x125)]();},'send':_0x2e0a58=>{const _0x1bb720=_0x2d4cbc;_0x3e2a4a[_0x1bb720(0x116)](_0x2e0a58);},'open$':new _0x56148f(_0x159f88=>{const _0x136750=_0x2d4cbc;let _0x20f89c=_0x4a3cef=>_0x159f88[_0x136750(0x11b)](_0x4a3cef);_0x3e2a4a['addEventListener']('open',_0x20f89c),_0x270485[_0x136750(0x12e)](_0x11414c(()=>_0x3e2a4a[_0x136750(0x118)](_0x136750(0x135),_0x20f89c)));})['pipe'](_0x30a152()),'close$':new _0x56148f(_0x510e38=>{const _0x51be4e=_0x2d4cbc;let _0x2e1505=_0x4cf132=>_0x510e38[_0x51be4e(0x11b)](_0x4cf132);_0x3e2a4a['addEventListener'](_0x51be4e(0x124),_0x2e1505),_0x270485[_0x51be4e(0x12e)](_0x11414c(()=>_0x3e2a4a[_0x51be4e(0x118)](_0x51be4e(0x124),_0x2e1505)));})[_0x2d4cbc(0x114)](_0x30a152()),'error$':new _0x56148f(_0x18ec05=>{const _0x98126d=_0x2d4cbc;let _0x4d7f00=_0x21b930=>_0x18ec05[_0x98126d(0x11b)](_0x21b930);_0x3e2a4a[_0x98126d(0x134)](_0x98126d(0x129),_0x4d7f00),_0x270485[_0x98126d(0x12e)](_0x11414c(()=>_0x3e2a4a['removeEventListener'](_0x98126d(0x129),_0x4d7f00)));})[_0x2d4cbc(0x114)](_0x30a152()),'message$':new _0x56148f(_0x1ee8d5=>{const _0x5f4d22=_0x2d4cbc;let _0x2d1217=_0x56cd20=>_0x1ee8d5[_0x5f4d22(0x11b)](_0x56cd20);_0x3e2a4a[_0x5f4d22(0x134)]('message',_0x2d1217),_0x270485[_0x5f4d22(0x12e)](_0x11414c(()=>_0x3e2a4a[_0x5f4d22(0x118)](_0x5f4d22(0x132),_0x2d1217)));})['pipe'](_0x30a152())};}catch(_0x987be8){return console[_0x2d4cbc(0x129)](_0x987be8),null;}}};O=D([E(0x0,_0x14ebb6)],O);function k(_0x57ebc5){'@babel/helpers - typeof';const _0x5c4121=_0x4e5ede;return k=typeof Symbol==_0x5c4121(0x111)&&typeof Symbol[_0x5c4121(0x10f)]==_0x5c4121(0x123)?function(_0x1fa2c5){return typeof _0x1fa2c5;}:function(_0x374e5e){const _0x2cfce4=_0x5c4121;return _0x374e5e&&typeof Symbol=='function'&&_0x374e5e[_0x2cfce4(0x119)]===Symbol&&_0x374e5e!==Symbol[_0x2cfce4(0x10b)]?'symbol':typeof _0x374e5e;},k(_0x57ebc5);}function A(_0x4781d2,_0x1aacf6){const _0x4a714f=_0x4e5ede;if(k(_0x4781d2)!=_0x4a714f(0x10a)||!_0x4781d2)return _0x4781d2;var _0x58526d;if(typeof Symbol<'u'&&(_0x58526d=_0x4781d2[Symbol[_0x4a714f(0x105)]])!==void 0x0){var _0x25f054=_0x58526d[_0x4a714f(0x10e)](_0x4781d2,_0x1aacf6||'default');if(k(_0x25f054)!='object')return _0x25f054;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1aacf6===_0x4a714f(0x128)?String:Number)(_0x4781d2);}function j(_0x454662){const _0x550f1d=_0x4e5ede;var _0x3f3bd4=A(_0x454662,_0x550f1d(0x128));return k(_0x3f3bd4)=='symbol'?_0x3f3bd4:_0x3f3bd4+'';}function M(_0x2cca8b,_0x3dccd8,_0x4acee8){return(_0x3dccd8=j(_0x3dccd8))in _0x2cca8b?Object['defineProperty'](_0x2cca8b,_0x3dccd8,{'value':_0x4acee8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2cca8b[_0x3dccd8]=_0x4acee8,_0x2cca8b;}let N=class extends _0x2b7407{constructor(_0x459d0b=T,_0x244bf4,_0x2a43fc){const _0xf52eb8=_0x4e5ede;super(),this[_0xf52eb8(0x10d)]=_0x459d0b,this[_0xf52eb8(0x107)]=_0x244bf4,this[_0xf52eb8(0x11e)]=_0x2a43fc;let {..._0x2e3d5a}=_0x26d366({},T,this[_0xf52eb8(0x10d)]);this[_0xf52eb8(0x107)][_0xf52eb8(0x133)](_0xf52eb8(0x12f),_0x2e3d5a);}[_0x4e5ede(0x127)](){const _0x3d5379=_0x4e5ede;this[_0x3d5379(0x112)]();}[_0x4e5ede(0x112)](){const _0x47d1dd=_0x4e5ede;_0x10eca6(this[_0x47d1dd(0x11e)],[[_0x2d4145,{'useClass':O}]]);}};M(N,_0x4e5ede(0x106),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),M(N,_0x4e5ede(0x136),C),M(N,'version',w),N=D([_0x354757(_0x19c837,_0x5e7747,_0x3e5c6e,_0x535c1b),E(0x1,_0x14ebb6),E(0x2,_0x2230a9(_0x47ab99))],N);let P=class extends _0x2786a9{constructor(_0x416048,_0x188e2d,_0x52e635,_0x2e88c8,_0x5ad41c){const _0x103f79=_0x4e5ede;super(_0x416048,_0x188e2d,_0x52e635,_0x2e88c8,_0x5ad41c);let _0x32ad77=this[_0x103f79(0x107)][_0x103f79(0x115)](_0x2b6ab3);this[_0x103f79(0x117)][_0x103f79(0x120)]({'interceptor':(_0x54d7d8,_0x322182)=>{const _0x17df32=_0x103f79;let _0x10110e=_0x54d7d8[_0x17df32(0x11d)];if(_0x32ad77!=null&&_0x32ad77[_0x17df32(0x121)]){for(let _0x25d8a5 in _0x32ad77[_0x17df32(0x121)])_0x10110e[_0x17df32(0x12a)](_0x25d8a5,_0x32ad77[_0x17df32(0x121)][_0x25d8a5]);}return _0x322182(_0x54d7d8);}});}async['createSocket'](_0x4b439d){return this['_doCreateSocket'](_0x4b439d);}};P=D([E(0x0,_0x2230a9(_0x47ab99)),E(0x1,_0x2230a9(_0x5b9e3f)),E(0x2,_0x14ebb6),E(0x3,_0x438094),E(0x4,_0x326cbd)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4fae(_0x2b77fb,_0x43b407){_0x2b77fb=_0x2b77fb-0xf7;const _0x4db131=_0x4db1();let _0x4fae48=_0x4db131[_0x2b77fb];return _0x4fae48;}(function(_0x30279f,_0x4a2e9d){const _0x3f7b87=_0x4fae,_0x32e481=_0x30279f();while(!![]){try{const _0x2b82f2=-parseInt(_0x3f7b87(0x150))/0x1*(parseInt(_0x3f7b87(0x11d))/0x2)+-parseInt(_0x3f7b87(0x10a))/0x3*(-parseInt(_0x3f7b87(0x11a))/0x4)+parseInt(_0x3f7b87(0x142))/0x5*(-parseInt(_0x3f7b87(0x104))/0x6)+parseInt(_0x3f7b87(0x14d))/0x7+parseInt(_0x3f7b87(0x13b))/0x8*(-parseInt(_0x3f7b87(0x141))/0x9)+-parseInt(_0x3f7b87(0x126))/0xa*(parseInt(_0x3f7b87(0x123))/0xb)+-parseInt(_0x3f7b87(0x106))/0xc*(-parseInt(_0x3f7b87(0x122))/0xd);if(_0x2b82f2===_0x4a2e9d)break;else _0x32e481['push'](_0x32e481['shift']());}catch(_0x2688d2){_0x32e481['push'](_0x32e481['shift']());}}}(_0x4db1,0xe69b3),function(_0x996545,_0x14e226){const _0x37d037=_0x4fae;typeof exports==_0x37d037(0x110)&&typeof module<'u'?_0x14e226(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x37d037(0xfc)&&define[_0x37d037(0xfd)]?define([_0x37d037(0x140),_0x37d037(0x14c),_0x37d037(0x108),_0x37d037(0xf9),_0x37d037(0x115),_0x37d037(0x107),_0x37d037(0x14a)],_0x14e226):(_0x996545=typeof globalThis<'u'?globalThis:_0x996545||self,_0x14e226(_0x996545[_0x37d037(0x111)]={},_0x996545[_0x37d037(0x118)],_0x996545[_0x37d037(0x147)],_0x996545[_0x37d037(0x131)],_0x996545[_0x37d037(0x12b)],_0x996545['UniverNetwork'],_0x996545[_0x37d037(0x14a)]));}(this,function(_0x57ef3c,_0x58149b,_0x45eaca,_0x7c75e,_0x2b6870,_0x364c73,_0x4701c4){const _0x2afafa=_0x4fae;Object[_0x2afafa(0x121)](_0x57ef3c,Symbol[_0x2afafa(0x119)],{'value':_0x2afafa(0x11c)});var _0x44d7fb=(_0x237d42,_0x1e977c)=>()=>(_0x1e977c||(_0x237d42((_0x1e977c={'exports':{}})['exports'],_0x1e977c,_0x1e977c[_0x2afafa(0x140)]),_0x237d42=null),_0x1e977c[_0x2afafa(0x140)]),_0x54b9d8=_0x2afafa(0x116),_0x23ebe1='1.5.0';let _0x6f3327={};var _0x8e9d62=_0x44d7fb((_0x5d3511,_0x1e54c6)=>{_0x1e54c6['exports']=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x4e7ec9(_0x5131d4,_0x434d87){return function(_0x1cfb0c,_0xd2791f){_0x434d87(_0x1cfb0c,_0xd2791f,_0x5131d4);};}function _0x45bc58(_0x36caa5,_0xe6c7de,_0x3fb0c4,_0x4321dc){const _0x419eb7=_0x2afafa;var _0x29c2c7=arguments[_0x419eb7(0x134)],_0x4c23a2=_0x29c2c7<0x3?_0xe6c7de:_0x4321dc===null?_0x4321dc=Object[_0x419eb7(0x132)](_0xe6c7de,_0x3fb0c4):_0x4321dc,_0x195fac;if(typeof Reflect==_0x419eb7(0x110)&&typeof Reflect[_0x419eb7(0xfb)]==_0x419eb7(0xfc))_0x4c23a2=Reflect['decorate'](_0x36caa5,_0xe6c7de,_0x3fb0c4,_0x4321dc);else{for(var _0x5c2f95=_0x36caa5[_0x419eb7(0x134)]-0x1;_0x5c2f95>=0x0;_0x5c2f95--)(_0x195fac=_0x36caa5[_0x5c2f95])&&(_0x4c23a2=(_0x29c2c7<0x3?_0x195fac(_0x4c23a2):_0x29c2c7>0x3?_0x195fac(_0xe6c7de,_0x3fb0c4,_0x4c23a2):_0x195fac(_0xe6c7de,_0x3fb0c4))||_0x4c23a2);}return _0x29c2c7>0x3&&_0x4c23a2&&Object[_0x419eb7(0x121)](_0xe6c7de,_0x3fb0c4,_0x4c23a2),_0x4c23a2;}let _0x36cdd8=class extends _0x2b6870[_0x2afafa(0x128)]{constructor(_0x99fb05){const _0x5b96bd=_0x2afafa;super(),this[_0x5b96bd(0x12c)]=_0x99fb05;}[_0x2afafa(0x11e)](_0x54bebc){const _0x585f88=_0x2afafa;var _0x525584;let _0x220a46=((_0x525584=this[_0x585f88(0x12c)][_0x585f88(0x112)](_0x45eaca[_0x585f88(0x10c)]))==null?void 0x0:_0x525584[_0x585f88(0x10d)])||{};try{let _0x116ce0=new _0x8e9d62[(_0x585f88(0x135))](_0x54bebc,{'headers':{..._0x220a46}}),_0x3096a9=new _0x2b6870[(_0x585f88(0x12e))]();return{'URL':_0x54bebc,'close':(_0x5f22ab,_0x4d95b8)=>{const _0x28e53d=_0x585f88;_0x116ce0['close'](_0x5f22ab,_0x4d95b8),_0x3096a9[_0x28e53d(0x13f)]();},'send':_0x5dbab8=>{const _0x3ebdf6=_0x585f88;_0x116ce0[_0x3ebdf6(0x12f)](_0x5dbab8);},'open$':new _0x4701c4[(_0x585f88(0x149))](_0x35d699=>{const _0x272a58=_0x585f88;let _0x4cf03c=_0x47ef36=>_0x35d699[_0x272a58(0x13c)](_0x47ef36);_0x116ce0['addEventListener'](_0x272a58(0x101),_0x4cf03c),_0x3096a9[_0x272a58(0x14b)]((0x0,_0x2b6870[_0x272a58(0x151)])(()=>_0x116ce0[_0x272a58(0x105)]('open',_0x4cf03c)));})[_0x585f88(0x137)]((0x0,_0x4701c4['share'])()),'close$':new _0x4701c4[(_0x585f88(0x149))](_0x1ae7d1=>{const _0x286824=_0x585f88;let _0x110365=_0x411fc8=>_0x1ae7d1[_0x286824(0x13c)](_0x411fc8);_0x116ce0[_0x286824(0xfa)](_0x286824(0x13e),_0x110365),_0x3096a9[_0x286824(0x14b)]((0x0,_0x2b6870[_0x286824(0x151)])(()=>_0x116ce0[_0x286824(0x105)](_0x286824(0x13e),_0x110365)));})[_0x585f88(0x137)]((0x0,_0x4701c4[_0x585f88(0x148)])()),'error$':new _0x4701c4[(_0x585f88(0x149))](_0x37fa04=>{const _0x1a38ff=_0x585f88;let _0x1dd25d=_0x5c3285=>_0x37fa04[_0x1a38ff(0x13c)](_0x5c3285);_0x116ce0[_0x1a38ff(0xfa)](_0x1a38ff(0x10f),_0x1dd25d),_0x3096a9[_0x1a38ff(0x14b)]((0x0,_0x2b6870[_0x1a38ff(0x151)])(()=>_0x116ce0[_0x1a38ff(0x105)](_0x1a38ff(0x10f),_0x1dd25d)));})[_0x585f88(0x137)]((0x0,_0x4701c4[_0x585f88(0x148)])()),'message$':new _0x4701c4['Observable'](_0x1775ec=>{const _0x43e83d=_0x585f88;let _0x120a9f=_0x13b5f1=>_0x1775ec['next'](_0x13b5f1);_0x116ce0[_0x43e83d(0xfa)](_0x43e83d(0x14e),_0x120a9f),_0x3096a9[_0x43e83d(0x14b)]((0x0,_0x2b6870[_0x43e83d(0x151)])(()=>_0x116ce0[_0x43e83d(0x105)]('message',_0x120a9f)));})[_0x585f88(0x137)]((0x0,_0x4701c4['share'])())};}catch(_0x12f0ea){return console[_0x585f88(0x10f)](_0x12f0ea),null;}}};_0x36cdd8=_0x45bc58([_0x4e7ec9(0x0,_0x2b6870[_0x2afafa(0x129)])],_0x36cdd8);function _0x130e9c(_0x55044f){'@babel/helpers - typeof';const _0x551133=_0x2afafa;return _0x130e9c=typeof Symbol==_0x551133(0xfc)&&typeof Symbol[_0x551133(0x125)]==_0x551133(0x143)?function(_0x24907c){return typeof _0x24907c;}:function(_0x23864b){const _0x1fdb41=_0x551133;return _0x23864b&&typeof Symbol=='function'&&_0x23864b[_0x1fdb41(0x124)]===Symbol&&_0x23864b!==Symbol[_0x1fdb41(0x10e)]?_0x1fdb41(0x143):typeof _0x23864b;},_0x130e9c(_0x55044f);}function _0x3e5d9d(_0x556e29,_0xcb6d28){const _0x3b4fe8=_0x2afafa;if(_0x130e9c(_0x556e29)!=_0x3b4fe8(0x110)||!_0x556e29)return _0x556e29;var _0x161544;if(typeof Symbol<'u'&&(_0x161544=_0x556e29[Symbol['toPrimitive']])!==void 0x0){var _0x5bffaf=_0x161544[_0x3b4fe8(0x127)](_0x556e29,_0xcb6d28||_0x3b4fe8(0x146));if(_0x130e9c(_0x5bffaf)!='object')return _0x5bffaf;throw TypeError(_0x3b4fe8(0x109));}return(_0xcb6d28===_0x3b4fe8(0x103)?String:Number)(_0x556e29);}function _0x38c905(_0x5de944){const _0x977f91=_0x2afafa;var _0x5bb55f=_0x3e5d9d(_0x5de944,_0x977f91(0x103));return _0x130e9c(_0x5bb55f)==_0x977f91(0x143)?_0x5bb55f:_0x5bb55f+'';}function _0x327e80(_0x1ae843,_0xaa032f,_0x5e68af){const _0x3dbac5=_0x2afafa;return(_0xaa032f=_0x38c905(_0xaa032f))in _0x1ae843?Object[_0x3dbac5(0x121)](_0x1ae843,_0xaa032f,{'value':_0x5e68af,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1ae843[_0xaa032f]=_0x5e68af,_0x1ae843;}let _0x2b2e2c=class extends _0x2b6870[_0x2afafa(0x117)]{constructor(_0x5db03c=_0x6f3327,_0x6fc766,_0x11fa5e){const _0x4f052d=_0x2afafa;super(),this[_0x4f052d(0x14f)]=_0x5db03c,this['_configService']=_0x6fc766,this[_0x4f052d(0x12d)]=_0x11fa5e;let {..._0x31fe93}=(0x0,_0x2b6870[_0x4f052d(0x120)])({},_0x6f3327,this[_0x4f052d(0x14f)]);this[_0x4f052d(0x12c)]['setConfig']('collaboration-client-node.config',_0x31fe93);}[_0x2afafa(0x130)](){const _0x36e7d4=_0x2afafa;this[_0x36e7d4(0x139)]();}[_0x2afafa(0x139)](){const _0x1041cd=_0x2afafa;(0x0,_0x2b6870['registerDependencies'])(this[_0x1041cd(0x12d)],[[_0x364c73[_0x1041cd(0xfe)],{'useClass':_0x36cdd8}]]);}};_0x327e80(_0x2b2e2c,_0x2afafa(0x11f),_0x2afafa(0xf7)),_0x327e80(_0x2b2e2c,'packageName',_0x54b9d8),_0x327e80(_0x2b2e2c,_0x2afafa(0xff),_0x23ebe1),_0x2b2e2c=_0x45bc58([(0x0,_0x2b6870[_0x2afafa(0x13d)])(_0x7c75e[_0x2afafa(0x10b)],_0x364c73[_0x2afafa(0x144)],_0x58149b[_0x2afafa(0x11b)],_0x45eaca['UniverCollaborationClientPlugin']),_0x4e7ec9(0x1,_0x2b6870[_0x2afafa(0x129)]),_0x4e7ec9(0x2,(0x0,_0x2b6870[_0x2afafa(0x113)])(_0x2b6870['Injector']))],_0x2b2e2c);let _0x791d9c=class extends _0x45eaca[_0x2afafa(0x145)]{constructor(_0x5b61ef,_0x468c9d,_0x2f5c09,_0x211cc4,_0x3794bf){const _0x5bda47=_0x2afafa;super(_0x5b61ef,_0x468c9d,_0x2f5c09,_0x211cc4,_0x3794bf);let _0x3b375d=this['_configService'][_0x5bda47(0x112)](_0x45eaca[_0x5bda47(0x10c)]);this[_0x5bda47(0x138)]['registerHTTPInterceptor']({'interceptor':(_0x58e03f,_0x3739e3)=>{const _0x2b5960=_0x5bda47;let _0x5b88ed=_0x58e03f[_0x2b5960(0xf8)];if(_0x3b375d!=null&&_0x3b375d[_0x2b5960(0x10d)]){for(let _0xfca1ca in _0x3b375d['customHeaders'])_0x5b88ed[_0x2b5960(0x133)](_0xfca1ca,_0x3b375d[_0x2b5960(0x10d)][_0xfca1ca]);}return _0x3739e3(_0x58e03f);}});}async[_0x2afafa(0x11e)](_0x48e7d8){const _0xb79001=_0x2afafa;return this[_0xb79001(0x114)](_0x48e7d8);}};_0x791d9c=_0x45bc58([_0x4e7ec9(0x0,(0x0,_0x2b6870[_0x2afafa(0x113)])(_0x2b6870[_0x2afafa(0x100)])),_0x4e7ec9(0x1,(0x0,_0x2b6870[_0x2afafa(0x113)])(_0x364c73['HTTPService'])),_0x4e7ec9(0x2,_0x2b6870[_0x2afafa(0x129)]),_0x4e7ec9(0x3,_0x2b6870[_0x2afafa(0x12a)]),_0x4e7ec9(0x4,_0x58149b[_0x2afafa(0x13a)])],_0x791d9c),Object[_0x2afafa(0x121)](_0x57ef3c,_0x2afafa(0x136),{'enumerable':!0x0,'get':function(){return _0x791d9c;}}),Object[_0x2afafa(0x121)](_0x57ef3c,_0x2afafa(0x102),{'enumerable':!0x0,'get':function(){return _0x2b2e2c;}});}));function _0x4db1(){const _0x135c86=['getConfig','Inject','_doCreateSocket','@univerjs/core','@univerjs-pro/collaboration-client-node','Plugin','UniverProCollaboration','toStringTag','668UqDWOX','UniverCollaborationPlugin','Module','9114eWMVfR','createSocket','pluginName','merge','defineProperty','117TTnGJe','341OjMhVs','constructor','iterator','553510ETOgjJ','call','Disposable','IConfigService','ILogService','UniverCore','_configService','_injector','DisposableCollection','send','onStarting','UniverProLicense','getOwnPropertyDescriptor','set','length','WebSocket','NodeCollaborationSocketService','pipe','_httpService','_registerDependencies','ISnapshotServerService','4120naitGs','next','DependentOn','close','dispose','exports','10287xJsOGS','16225AzxNBk','symbol','UniverNetworkPlugin','CollaborationSocketService','default','UniverProCollaborationClient','share','Observable','rxjs','add','@univerjs-pro/collaboration','12175030mvlDyG','message','_config','405KRbliL','toDisposable','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','headers','@univerjs-pro/license','addEventListener','decorate','function','amd','ISocketService','version','Injector','open','UniverCollaborationClientNodePlugin','string','2778vrptMv','removeEventListener','6400272uECkhL','@univerjs/network','@univerjs-pro/collaboration-client','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1035AdcXJn','UniverLicensePlugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','customHeaders','prototype','error','object','UniverProCollaborationClientNode'];_0x4db1=function(){return _0x135c86;};return _0x4db1();}
1
+ function _0x80d9(_0x2e3aa,_0x542233){_0x2e3aa=_0x2e3aa-0x10b;const _0x24a3fc=_0x24a3();let _0x80d97=_0x24a3fc[_0x2e3aa];return _0x80d97;}(function(_0x4f827c,_0x495dcc){const _0x345811=_0x80d9,_0x5f5a00=_0x4f827c();while(!![]){try{const _0x3d104e=parseInt(_0x345811(0x123))/0x1*(parseInt(_0x345811(0x150))/0x2)+parseInt(_0x345811(0x157))/0x3*(-parseInt(_0x345811(0x149))/0x4)+parseInt(_0x345811(0x139))/0x5+-parseInt(_0x345811(0x13c))/0x6+-parseInt(_0x345811(0x141))/0x7*(parseInt(_0x345811(0x11b))/0x8)+-parseInt(_0x345811(0x14f))/0x9*(-parseInt(_0x345811(0x112))/0xa)+parseInt(_0x345811(0x12e))/0xb*(-parseInt(_0x345811(0x15f))/0xc);if(_0x3d104e===_0x495dcc)break;else _0x5f5a00['push'](_0x5f5a00['shift']());}catch(_0x4aafb3){_0x5f5a00['push'](_0x5f5a00['shift']());}}}(_0x24a3,0x4fb94),function(_0x1750bc,_0x54e3cf){const _0x2ae5c3=_0x80d9;typeof exports==_0x2ae5c3(0x13b)&&typeof module<'u'?_0x54e3cf(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define=='function'&&define[_0x2ae5c3(0x138)]?define([_0x2ae5c3(0x126),_0x2ae5c3(0x110),_0x2ae5c3(0x162),_0x2ae5c3(0x125),_0x2ae5c3(0x10d),_0x2ae5c3(0x131),'rxjs'],_0x54e3cf):(_0x1750bc=typeof globalThis<'u'?globalThis:_0x1750bc||self,_0x54e3cf(_0x1750bc[_0x2ae5c3(0x135)]={},_0x1750bc[_0x2ae5c3(0x14c)],_0x1750bc[_0x2ae5c3(0x130)],_0x1750bc[_0x2ae5c3(0x153)],_0x1750bc[_0x2ae5c3(0x147)],_0x1750bc[_0x2ae5c3(0x12d)],_0x1750bc[_0x2ae5c3(0x133)]));}(this,function(_0xe08eb,_0x26b81e,_0x399a18,_0x521bf9,_0x51ba76,_0x14dd9c,_0x146c64){const _0x3709ce=_0x80d9;Object[_0x3709ce(0x142)](_0xe08eb,Symbol[_0x3709ce(0x154)],{'value':_0x3709ce(0x140)});var _0xa06070=(_0x25bb82,_0xa1daa0)=>()=>(_0xa1daa0||(_0x25bb82((_0xa1daa0={'exports':{}})[_0x3709ce(0x126)],_0xa1daa0,_0xa1daa0[_0x3709ce(0x126)]),_0x25bb82=null),_0xa1daa0[_0x3709ce(0x126)]),_0x47df93=_0x3709ce(0x15c),_0x18159c=_0x3709ce(0x155);let _0x3e1b8b={};var _0x5f1e16=_0xa06070((_0x4855cb,_0x5e1efa)=>{_0x5e1efa['exports']=function(){const _0x409134=_0x80d9;throw Error(_0x409134(0x144));};})();function _0x55e838(_0x3c19ac,_0x57240c){return function(_0x4aff3a,_0x427342){_0x57240c(_0x4aff3a,_0x427342,_0x3c19ac);};}function _0x166fcd(_0x42ebe7,_0x46a6e9,_0x558b2a,_0x4ec728){const _0x257a39=_0x3709ce;var _0x117c69=arguments[_0x257a39(0x11f)],_0x106aef=_0x117c69<0x3?_0x46a6e9:_0x4ec728===null?_0x4ec728=Object[_0x257a39(0x163)](_0x46a6e9,_0x558b2a):_0x4ec728,_0x589c5b;if(typeof Reflect==_0x257a39(0x13b)&&typeof Reflect[_0x257a39(0x152)]=='function')_0x106aef=Reflect[_0x257a39(0x152)](_0x42ebe7,_0x46a6e9,_0x558b2a,_0x4ec728);else{for(var _0x15a8b7=_0x42ebe7[_0x257a39(0x11f)]-0x1;_0x15a8b7>=0x0;_0x15a8b7--)(_0x589c5b=_0x42ebe7[_0x15a8b7])&&(_0x106aef=(_0x117c69<0x3?_0x589c5b(_0x106aef):_0x117c69>0x3?_0x589c5b(_0x46a6e9,_0x558b2a,_0x106aef):_0x589c5b(_0x46a6e9,_0x558b2a))||_0x106aef);}return _0x117c69>0x3&&_0x106aef&&Object[_0x257a39(0x142)](_0x46a6e9,_0x558b2a,_0x106aef),_0x106aef;}let _0x57495d=class extends _0x51ba76['Disposable']{constructor(_0x53026c){super(),this['_configService']=_0x53026c;}[_0x3709ce(0x15e)](_0x39677d){const _0x196dc2=_0x3709ce;var _0x1994e1;let _0x2e9af2=((_0x1994e1=this[_0x196dc2(0x11d)][_0x196dc2(0x11c)](_0x399a18[_0x196dc2(0x124)]))==null?void 0x0:_0x1994e1['customHeaders'])||{};try{let _0x5c0bfe=new _0x5f1e16[(_0x196dc2(0x118))](_0x39677d,{'headers':{..._0x2e9af2}}),_0x4b3b85=new _0x51ba76[(_0x196dc2(0x10e))]();return{'URL':_0x39677d,'close':(_0x5d0995,_0xdde263)=>{const _0x4a38fc=_0x196dc2;_0x5c0bfe[_0x4a38fc(0x14d)](_0x5d0995,_0xdde263),_0x4b3b85[_0x4a38fc(0x146)]();},'send':_0x1abb42=>{_0x5c0bfe['send'](_0x1abb42);},'open$':new _0x146c64[(_0x196dc2(0x116))](_0x40baec=>{const _0x37a3d8=_0x196dc2;let _0x44b6f3=_0x2e6f64=>_0x40baec['next'](_0x2e6f64);_0x5c0bfe[_0x37a3d8(0x15b)]('open',_0x44b6f3),_0x4b3b85[_0x37a3d8(0x132)]((0x0,_0x51ba76[_0x37a3d8(0x111)])(()=>_0x5c0bfe['removeEventListener'](_0x37a3d8(0x13d),_0x44b6f3)));})[_0x196dc2(0x159)]((0x0,_0x146c64[_0x196dc2(0x13f)])()),'close$':new _0x146c64[(_0x196dc2(0x116))](_0x586cb4=>{const _0x3725b0=_0x196dc2;let _0x535baf=_0x57681d=>_0x586cb4['next'](_0x57681d);_0x5c0bfe[_0x3725b0(0x15b)](_0x3725b0(0x14d),_0x535baf),_0x4b3b85['add']((0x0,_0x51ba76[_0x3725b0(0x111)])(()=>_0x5c0bfe[_0x3725b0(0x128)](_0x3725b0(0x14d),_0x535baf)));})[_0x196dc2(0x159)]((0x0,_0x146c64[_0x196dc2(0x13f)])()),'error$':new _0x146c64[(_0x196dc2(0x116))](_0x55ea88=>{const _0x277995=_0x196dc2;let _0x26bc19=_0x43d48b=>_0x55ea88['next'](_0x43d48b);_0x5c0bfe[_0x277995(0x15b)](_0x277995(0x115),_0x26bc19),_0x4b3b85[_0x277995(0x132)]((0x0,_0x51ba76[_0x277995(0x111)])(()=>_0x5c0bfe[_0x277995(0x128)](_0x277995(0x115),_0x26bc19)));})[_0x196dc2(0x159)]((0x0,_0x146c64[_0x196dc2(0x13f)])()),'message$':new _0x146c64[(_0x196dc2(0x116))](_0x4d3557=>{const _0x41f9cf=_0x196dc2;let _0xe11b2c=_0x563953=>_0x4d3557[_0x41f9cf(0x122)](_0x563953);_0x5c0bfe[_0x41f9cf(0x15b)](_0x41f9cf(0x15a),_0xe11b2c),_0x4b3b85[_0x41f9cf(0x132)]((0x0,_0x51ba76[_0x41f9cf(0x111)])(()=>_0x5c0bfe[_0x41f9cf(0x128)](_0x41f9cf(0x15a),_0xe11b2c)));})['pipe']((0x0,_0x146c64['share'])())};}catch(_0x5c1cc1){return console['error'](_0x5c1cc1),null;}}};_0x57495d=_0x166fcd([_0x55e838(0x0,_0x51ba76[_0x3709ce(0x156)])],_0x57495d);function _0x3ba571(_0x59e21e){'@babel/helpers - typeof';const _0x2782de=_0x3709ce;return _0x3ba571=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x2782de(0x120)?function(_0x1e4dd3){return typeof _0x1e4dd3;}:function(_0x311f00){const _0x31c047=_0x2782de;return _0x311f00&&typeof Symbol=='function'&&_0x311f00[_0x31c047(0x160)]===Symbol&&_0x311f00!==Symbol[_0x31c047(0x11e)]?_0x31c047(0x120):typeof _0x311f00;},_0x3ba571(_0x59e21e);}function _0x224a78(_0x4aabf7,_0x16aec7){const _0x437e00=_0x3709ce;if(_0x3ba571(_0x4aabf7)!=_0x437e00(0x13b)||!_0x4aabf7)return _0x4aabf7;var _0x3e74c8;if(typeof Symbol<'u'&&(_0x3e74c8=_0x4aabf7[Symbol[_0x437e00(0x12f)]])!==void 0x0){var _0x439a70=_0x3e74c8['call'](_0x4aabf7,_0x16aec7||_0x437e00(0x137));if(_0x3ba571(_0x439a70)!=_0x437e00(0x13b))return _0x439a70;throw TypeError(_0x437e00(0x129));}return(_0x16aec7===_0x437e00(0x148)?String:Number)(_0x4aabf7);}function _0x6cf7d(_0xf25e59){const _0x4053a1=_0x3709ce;var _0x2c16e3=_0x224a78(_0xf25e59,_0x4053a1(0x148));return _0x3ba571(_0x2c16e3)==_0x4053a1(0x120)?_0x2c16e3:_0x2c16e3+'';}function _0xf7399(_0x1a71b7,_0x18127e,_0x138150){const _0x29a793=_0x3709ce;return(_0x18127e=_0x6cf7d(_0x18127e))in _0x1a71b7?Object[_0x29a793(0x142)](_0x1a71b7,_0x18127e,{'value':_0x138150,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1a71b7[_0x18127e]=_0x138150,_0x1a71b7;}let _0x2b2ac3=class extends _0x51ba76[_0x3709ce(0x12a)]{constructor(_0x52ffef=_0x3e1b8b,_0x367c82,_0xca4c8e){const _0x3d0454=_0x3709ce;super(),this[_0x3d0454(0x143)]=_0x52ffef,this['_configService']=_0x367c82,this['_injector']=_0xca4c8e;let {..._0x5b1d8a}=(0x0,_0x51ba76['merge'])({},_0x3e1b8b,this[_0x3d0454(0x143)]);this[_0x3d0454(0x11d)]['setConfig'](_0x3d0454(0x12b),_0x5b1d8a);}[_0x3709ce(0x11a)](){this['_registerDependencies']();}[_0x3709ce(0x14e)](){const _0x4f300a=_0x3709ce;(0x0,_0x51ba76['registerDependencies'])(this['_injector'],[[_0x14dd9c[_0x4f300a(0x145)],{'useClass':_0x57495d}]]);}};_0xf7399(_0x2b2ac3,_0x3709ce(0x151),_0x3709ce(0x127)),_0xf7399(_0x2b2ac3,_0x3709ce(0x14b),_0x47df93),_0xf7399(_0x2b2ac3,_0x3709ce(0x119),_0x18159c),_0x2b2ac3=_0x166fcd([(0x0,_0x51ba76[_0x3709ce(0x134)])(_0x521bf9[_0x3709ce(0x114)],_0x14dd9c[_0x3709ce(0x113)],_0x26b81e[_0x3709ce(0x161)],_0x399a18[_0x3709ce(0x117)]),_0x55e838(0x1,_0x51ba76[_0x3709ce(0x156)]),_0x55e838(0x2,(0x0,_0x51ba76['Inject'])(_0x51ba76['Injector']))],_0x2b2ac3);let _0x5c759b=class extends _0x399a18[_0x3709ce(0x10c)]{constructor(_0x3b83af,_0x3f994a,_0x1c602c,_0x5e3855,_0x350d77){const _0x4d4608=_0x3709ce;super(_0x3b83af,_0x3f994a,_0x1c602c,_0x5e3855,_0x350d77);let _0x132a78=this[_0x4d4608(0x11d)]['getConfig'](_0x399a18[_0x4d4608(0x124)]);this[_0x4d4608(0x136)][_0x4d4608(0x158)]({'interceptor':(_0xf68ed3,_0x1719a5)=>{const _0x150ed9=_0x4d4608;let _0x19d924=_0xf68ed3[_0x150ed9(0x10f)];if(_0x132a78!=null&&_0x132a78[_0x150ed9(0x13a)]){for(let _0x4006d0 in _0x132a78[_0x150ed9(0x13a)])_0x19d924['set'](_0x4006d0,_0x132a78['customHeaders'][_0x4006d0]);}return _0x1719a5(_0xf68ed3);}});}async[_0x3709ce(0x15e)](_0x4cce65){return this['_doCreateSocket'](_0x4cce65);}};_0x5c759b=_0x166fcd([_0x55e838(0x0,(0x0,_0x51ba76[_0x3709ce(0x10b)])(_0x51ba76[_0x3709ce(0x13e)])),_0x55e838(0x1,(0x0,_0x51ba76['Inject'])(_0x14dd9c[_0x3709ce(0x15d)])),_0x55e838(0x2,_0x51ba76[_0x3709ce(0x156)]),_0x55e838(0x3,_0x51ba76[_0x3709ce(0x12c)]),_0x55e838(0x4,_0x26b81e[_0x3709ce(0x164)])],_0x5c759b),Object[_0x3709ce(0x142)](_0xe08eb,_0x3709ce(0x121),{'enumerable':!0x0,'get':function(){return _0x5c759b;}}),Object['defineProperty'](_0xe08eb,_0x3709ce(0x14a),{'enumerable':!0x0,'get':function(){return _0x2b2ac3;}});}));function _0x24a3(){const _0x1945a7=['decorate','UniverProLicense','toStringTag','1.5.1','IConfigService','387867zJBXBb','registerHTTPInterceptor','pipe','message','addEventListener','@univerjs-pro/collaboration-client-node','HTTPService','createSocket','21456GOGULX','constructor','UniverCollaborationPlugin','@univerjs-pro/collaboration-client','getOwnPropertyDescriptor','ISnapshotServerService','Inject','CollaborationSocketService','@univerjs/core','DisposableCollection','headers','@univerjs-pro/collaboration','toDisposable','800ghMIAu','UniverNetworkPlugin','UniverLicensePlugin','error','Observable','UniverCollaborationClientPlugin','WebSocket','version','onStarting','24AYKPLh','getConfig','_configService','prototype','length','symbol','NodeCollaborationSocketService','next','1uYoucX','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','@univerjs-pro/license','exports','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','removeEventListener','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Plugin','collaboration-client-node.config','ILogService','UniverNetwork','2640YkmCLH','toPrimitive','UniverProCollaborationClient','@univerjs/network','add','rxjs','DependentOn','UniverProCollaborationClientNode','_httpService','default','amd','227105WgmVsg','customHeaders','object','1412562dClhEA','open','Injector','share','Module','205730BJfcVh','defineProperty','_config','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','ISocketService','dispose','UniverCore','string','8AxBEwN','UniverCollaborationClientNodePlugin','packageName','UniverProCollaboration','close','_registerDependencies','72396ndmdNK','1297804LFVvnB','pluginName'];_0x24a3=function(){return _0x1945a7;};return _0x24a3();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "private": false,
5
5
  "description": "Node.js collaboration client plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -51,16 +51,16 @@
51
51
  "rxjs": ">=7.0.0"
52
52
  },
53
53
  "dependencies": {
54
- "@univerjs-pro/collaboration": "1.5.0",
55
- "@univerjs-pro/collaboration-client": "1.5.0",
56
- "@univerjs-pro/license": "1.5.0",
57
- "@univerjs/core": "1.5.0",
58
- "@univerjs/network": "1.5.0",
54
+ "@univerjs-pro/collaboration": "1.5.1",
55
+ "@univerjs-pro/collaboration-client": "1.5.1",
56
+ "@univerjs-pro/license": "1.5.1",
57
+ "@univerjs/core": "1.5.1",
58
+ "@univerjs/network": "1.5.1",
59
59
  "ws": "8.21.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/ws": "8.18.1",
63
- "@univerjs-infra/shared": "1.5.0",
63
+ "@univerjs-infra/shared": "1.5.1",
64
64
  "rxjs": "7.8.2",
65
65
  "tsrs": "0.23.0-ts7.1.0-beta",
66
66
  "vitest": "^5.1.0"