@univerjs-pro/collaboration-client-node 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3b8054=_0x2d22;(function(_0x17693b,_0x1ec0a0){const _0x277cea=_0x2d22,_0xf869aa=_0x17693b();while(!![]){try{const _0x3d6ed3=-parseInt(_0x277cea(0x1c2))/0x1*(-parseInt(_0x277cea(0x1be))/0x2)+-parseInt(_0x277cea(0x1c7))/0x3+-parseInt(_0x277cea(0x1d2))/0x4*(-parseInt(_0x277cea(0x1c4))/0x5)+parseInt(_0x277cea(0x1c0))/0x6*(parseInt(_0x277cea(0x1e1))/0x7)+parseInt(_0x277cea(0x1ef))/0x8*(-parseInt(_0x277cea(0x1f6))/0x9)+parseInt(_0x277cea(0x1fc))/0xa+-parseInt(_0x277cea(0x1cf))/0xb*(parseInt(_0x277cea(0x1f9))/0xc);if(_0x3d6ed3===_0x1ec0a0)break;else _0xf869aa['push'](_0xf869aa['shift']());}catch(_0x4b2ab0){_0xf869aa['push'](_0xf869aa['shift']());}}}(_0x3e3c,0x3b208),Object[_0x3b8054(0x1e7)](exports,Symbol[_0x3b8054(0x207)],{'value':_0x3b8054(0x1fe)}));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=_0x3b8054(0x1bf),c=_0x3b8054(0x1fa);const l={};function u(_0x2a9b89,_0x31ce44){return function(_0x5de45a,_0x3bdf23){_0x31ce44(_0x5de45a,_0x3bdf23,_0x2a9b89);};}function _0x2d22(_0x31b31d,_0xf4361){_0x31b31d=_0x31b31d-0x1be;const _0x3e3c79=_0x3e3c();let _0x2d2240=_0x3e3c79[_0x31b31d];return _0x2d2240;}function d(_0x22a4e4,_0x1875ab,_0x2727aa,_0x2309c5){const _0x58da79=_0x3b8054;var _0x32bf5d=arguments['length'],_0x69df89=_0x32bf5d<0x3?_0x1875ab:_0x2309c5===null?_0x2309c5=Object[_0x58da79(0x1ec)](_0x1875ab,_0x2727aa):_0x2309c5,_0x31b1f6;if(typeof Reflect==_0x58da79(0x1d6)&&typeof Reflect[_0x58da79(0x1f5)]==_0x58da79(0x1f1))_0x69df89=Reflect[_0x58da79(0x1f5)](_0x22a4e4,_0x1875ab,_0x2727aa,_0x2309c5);else{for(var _0x24140f=_0x22a4e4[_0x58da79(0x1c3)]-0x1;_0x24140f>=0x0;_0x24140f--)(_0x31b1f6=_0x22a4e4[_0x24140f])&&(_0x69df89=(_0x32bf5d<0x3?_0x31b1f6(_0x69df89):_0x32bf5d>0x3?_0x31b1f6(_0x1875ab,_0x2727aa,_0x69df89):_0x31b1f6(_0x1875ab,_0x2727aa))||_0x69df89);}return _0x32bf5d>0x3&&_0x69df89&&Object[_0x58da79(0x1e7)](_0x1875ab,_0x2727aa,_0x69df89),_0x69df89;}let f=class extends r[_0x3b8054(0x206)]{constructor(_0x3384bc){const _0x23d26a=_0x3b8054;super(),this[_0x23d26a(0x1ce)]=_0x3384bc;}[_0x3b8054(0x203)](_0x2f58e4){const _0x8021d=_0x3b8054;var _0x3e6d95;let _0x327b11=((_0x3e6d95=this[_0x8021d(0x1ce)][_0x8021d(0x1cc)](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x3e6d95[_0x8021d(0x1d7)])||{};try{let _0x4f2d4d=new o[(_0x8021d(0x1f7))](_0x2f58e4,{'headers':{..._0x327b11}}),_0x3c5de8=new r[(_0x8021d(0x1e8))]();return{'URL':_0x2f58e4,'close':(_0x36500f,_0x2329e0)=>{const _0x1c7f4a=_0x8021d;_0x4f2d4d[_0x1c7f4a(0x1c9)](_0x36500f,_0x2329e0),_0x3c5de8[_0x1c7f4a(0x202)]();},'send':_0x56aa9f=>{const _0x3f9a8b=_0x8021d;_0x4f2d4d[_0x3f9a8b(0x201)](_0x56aa9f);},'open$':new a['Observable'](_0x4b00d6=>{const _0x2c2909=_0x8021d;let _0x3c0658=_0x39da54=>_0x4b00d6[_0x2c2909(0x1d8)](_0x39da54);_0x4f2d4d['addEventListener']('open',_0x3c0658),_0x3c5de8[_0x2c2909(0x204)]((0x0,r[_0x2c2909(0x1e3)])(()=>_0x4f2d4d[_0x2c2909(0x1f4)]('open',_0x3c0658)));})[_0x8021d(0x1d1)]((0x0,a['share'])()),'close$':new a[(_0x8021d(0x1ee))](_0x11cfd8=>{const _0x20c2a6=_0x8021d;let _0x38489c=_0xa90a36=>_0x11cfd8[_0x20c2a6(0x1d8)](_0xa90a36);_0x4f2d4d[_0x20c2a6(0x1d9)]('close',_0x38489c),_0x3c5de8[_0x20c2a6(0x204)]((0x0,r['toDisposable'])(()=>_0x4f2d4d['removeEventListener'](_0x20c2a6(0x1c9),_0x38489c)));})[_0x8021d(0x1d1)]((0x0,a['share'])()),'error$':new a['Observable'](_0x3ea297=>{const _0x30f7af=_0x8021d;let _0x2cdb23=_0x53bc24=>_0x3ea297['next'](_0x53bc24);_0x4f2d4d[_0x30f7af(0x1d9)](_0x30f7af(0x1e5),_0x2cdb23),_0x3c5de8[_0x30f7af(0x204)]((0x0,r[_0x30f7af(0x1e3)])(()=>_0x4f2d4d[_0x30f7af(0x1f4)]('error',_0x2cdb23)));})['pipe']((0x0,a[_0x8021d(0x1de)])()),'message$':new a['Observable'](_0x3d966f=>{const _0x4fb425=_0x8021d;let _0x2c4551=_0x330a38=>_0x3d966f[_0x4fb425(0x1d8)](_0x330a38);_0x4f2d4d[_0x4fb425(0x1d9)](_0x4fb425(0x1e9),_0x2c4551),_0x3c5de8[_0x4fb425(0x204)]((0x0,r['toDisposable'])(()=>_0x4f2d4d[_0x4fb425(0x1f4)](_0x4fb425(0x1e9),_0x2c4551)));})[_0x8021d(0x1d1)]((0x0,a[_0x8021d(0x1de)])())};}catch(_0x4f37d7){return console[_0x8021d(0x1e5)](_0x4f37d7),null;}}};f=d([u(0x0,r[_0x3b8054(0x1d0)])],f);function p(_0x425013){'@babel/helpers - typeof';const _0x3b9d6a=_0x3b8054;return p=typeof Symbol==_0x3b9d6a(0x1f1)&&typeof Symbol[_0x3b9d6a(0x1c8)]==_0x3b9d6a(0x1fd)?function(_0x3cbd35){return typeof _0x3cbd35;}:function(_0x5655ca){const _0x4dc320=_0x3b9d6a;return _0x5655ca&&typeof Symbol=='function'&&_0x5655ca['constructor']===Symbol&&_0x5655ca!==Symbol[_0x4dc320(0x1ea)]?_0x4dc320(0x1fd):typeof _0x5655ca;},p(_0x425013);}function m(_0x3bcfa7,_0x458670){const _0x36da10=_0x3b8054;if(p(_0x3bcfa7)!=_0x36da10(0x1d6)||!_0x3bcfa7)return _0x3bcfa7;var _0x2e6264=_0x3bcfa7[Symbol['toPrimitive']];if(_0x2e6264!==void 0x0){var _0x30338e=_0x2e6264[_0x36da10(0x1ed)](_0x3bcfa7,_0x458670||'default');if(p(_0x30338e)!=_0x36da10(0x1d6))return _0x30338e;throw TypeError(_0x36da10(0x1d4));}return(_0x458670===_0x36da10(0x200)?String:Number)(_0x3bcfa7);}function h(_0x53408a){const _0x5d92b3=_0x3b8054;var _0x1904f7=m(_0x53408a,_0x5d92b3(0x200));return p(_0x1904f7)==_0x5d92b3(0x1fd)?_0x1904f7:_0x1904f7+'';}function g(_0x1399e4,_0x5bbcb0,_0x1c7fd7){const _0x580fcf=_0x3b8054;return(_0x5bbcb0=h(_0x5bbcb0))in _0x1399e4?Object[_0x580fcf(0x1e7)](_0x1399e4,_0x5bbcb0,{'value':_0x1c7fd7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1399e4[_0x5bbcb0]=_0x1c7fd7,_0x1399e4;}let _=class extends r[_0x3b8054(0x1d3)]{constructor(_0x55639f=l,_0x4b5e44,_0x126c1b){const _0x5f0cf1=_0x3b8054;super(),this[_0x5f0cf1(0x1c5)]=_0x55639f,this[_0x5f0cf1(0x1ce)]=_0x4b5e44,this[_0x5f0cf1(0x1c6)]=_0x126c1b;let {..._0x483a3c}=(0x0,r[_0x5f0cf1(0x1f0)])({},l,this['_config']);this[_0x5f0cf1(0x1ce)][_0x5f0cf1(0x1cd)]('collaboration-client-node.config',_0x483a3c);}[_0x3b8054(0x1ca)](){const _0x1c2fa0=_0x3b8054;this[_0x1c2fa0(0x1e6)]();}[_0x3b8054(0x1e6)](){const _0x37ec33=_0x3b8054;(0x0,r[_0x37ec33(0x1ff)])(this[_0x37ec33(0x1c6)],[[i[_0x37ec33(0x1cb)],{'useClass':f}]]);}};g(_,'pluginName',_0x3b8054(0x1fb)),g(_,_0x3b8054(0x1e2),s),g(_,_0x3b8054(0x1da),c),_=d([(0x0,r['DependentOn'])(n[_0x3b8054(0x1c1)],i['UniverNetworkPlugin'],e[_0x3b8054(0x1dc)],t['UniverCollaborationClientPlugin']),u(0x1,r[_0x3b8054(0x1d0)]),u(0x2,(0x0,r['Inject'])(r[_0x3b8054(0x1d5)]))],_);let v=class extends t[_0x3b8054(0x1e4)]{constructor(_0x4b1e3c,_0x5c8ab6,_0x46b0b1,_0x364267,_0x50459a){const _0x36fa43=_0x3b8054;super(_0x4b1e3c,_0x5c8ab6,_0x46b0b1,_0x364267,_0x50459a);let _0x46891a=this[_0x36fa43(0x1ce)][_0x36fa43(0x1cc)](t[_0x36fa43(0x1eb)]);this[_0x36fa43(0x1df)][_0x36fa43(0x1f2)]({'interceptor':(_0x5b1d84,_0x1ad3d9)=>{const _0x48ab6f=_0x36fa43;let _0x464de5=_0x5b1d84[_0x48ab6f(0x1f8)];if(_0x46891a!=null&&_0x46891a[_0x48ab6f(0x1d7)]){for(let _0x26db24 in _0x46891a[_0x48ab6f(0x1d7)])_0x464de5[_0x48ab6f(0x1e0)](_0x26db24,_0x46891a[_0x48ab6f(0x1d7)][_0x26db24]);}return _0x1ad3d9(_0x5b1d84);}});}async[_0x3b8054(0x203)](_0x2689c1){const _0x437f4c=_0x3b8054;return this[_0x437f4c(0x1dd)](_0x2689c1);}};function _0x3e3c(){const _0x5e5be5=['16119imVqeF','WebSocket','headers','120qJlsHK','1.0.0','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','4372760PBYLLh','symbol','Module','registerDependencies','string','send','dispose','createSocket','add','ILogService','Disposable','toStringTag','447130KoPKJO','@univerjs-pro/collaboration-client-node','64020lAfCBX','UniverLicensePlugin','1PywvKY','length','5975ozTaTL','_config','_injector','1074972gWDusZ','iterator','close','onStarting','ISocketService','getConfig','setConfig','_configService','524403aaQbEA','IConfigService','pipe','156hvgUKI','Plugin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Injector','object','customHeaders','next','addEventListener','version','Inject','UniverCollaborationPlugin','_doCreateSocket','share','_httpService','set','252jnocUA','packageName','toDisposable','CollaborationSocketService','error','_registerDependencies','defineProperty','DisposableCollection','message','prototype','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getOwnPropertyDescriptor','call','Observable','64BgPTUn','merge','function','registerHTTPInterceptor','NodeCollaborationSocketService','removeEventListener','decorate'];_0x3e3c=function(){return _0x5e5be5;};return _0x3e3c();}v=d([u(0x0,(0x0,r[_0x3b8054(0x1db)])(r[_0x3b8054(0x1d5)])),u(0x1,(0x0,r[_0x3b8054(0x1db)])(i['HTTPService'])),u(0x2,r['IConfigService']),u(0x3,r[_0x3b8054(0x205)]),u(0x4,e['ISnapshotServerService'])],v),Object[_0x3b8054(0x1e7)](exports,_0x3b8054(0x1f3),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x3b8054(0x1e7)](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
1
+ const _0x21f943=_0x3baf;(function(_0x5be20f,_0x5c71fb){const _0x4a6136=_0x3baf,_0x3254e9=_0x5be20f();while(!![]){try{const _0x1e206f=parseInt(_0x4a6136(0x169))/0x1*(-parseInt(_0x4a6136(0x170))/0x2)+-parseInt(_0x4a6136(0x160))/0x3+parseInt(_0x4a6136(0x14c))/0x4+-parseInt(_0x4a6136(0x131))/0x5*(parseInt(_0x4a6136(0x145))/0x6)+-parseInt(_0x4a6136(0x12e))/0x7+-parseInt(_0x4a6136(0x158))/0x8*(parseInt(_0x4a6136(0x136))/0x9)+parseInt(_0x4a6136(0x14f))/0xa;if(_0x1e206f===_0x5c71fb)break;else _0x3254e9['push'](_0x3254e9['shift']());}catch(_0x3763e2){_0x3254e9['push'](_0x3254e9['shift']());}}}(_0x2233,0xa714f),Object[_0x21f943(0x133)](exports,Symbol[_0x21f943(0x15e)],{'value':_0x21f943(0x14e)}));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=_0x21f943(0x14a),c='1.0.2';const l={};function u(_0x24a1c6,_0x51d1a9){return function(_0xa25440,_0x3ff4f0){_0x51d1a9(_0xa25440,_0x3ff4f0,_0x24a1c6);};}function d(_0xb49f7d,_0x45e2ad,_0xc87078,_0x4e548c){const _0x168be5=_0x21f943;var _0x2bfc91=arguments['length'],_0x5e4e5f=_0x2bfc91<0x3?_0x45e2ad:_0x4e548c===null?_0x4e548c=Object['getOwnPropertyDescriptor'](_0x45e2ad,_0xc87078):_0x4e548c,_0x5627f2;if(typeof Reflect==_0x168be5(0x155)&&typeof Reflect[_0x168be5(0x13b)]==_0x168be5(0x156))_0x5e4e5f=Reflect['decorate'](_0xb49f7d,_0x45e2ad,_0xc87078,_0x4e548c);else{for(var _0x1c8f7b=_0xb49f7d[_0x168be5(0x148)]-0x1;_0x1c8f7b>=0x0;_0x1c8f7b--)(_0x5627f2=_0xb49f7d[_0x1c8f7b])&&(_0x5e4e5f=(_0x2bfc91<0x3?_0x5627f2(_0x5e4e5f):_0x2bfc91>0x3?_0x5627f2(_0x45e2ad,_0xc87078,_0x5e4e5f):_0x5627f2(_0x45e2ad,_0xc87078))||_0x5e4e5f);}return _0x2bfc91>0x3&&_0x5e4e5f&&Object[_0x168be5(0x133)](_0x45e2ad,_0xc87078,_0x5e4e5f),_0x5e4e5f;}let f=class extends r[_0x21f943(0x134)]{constructor(_0x47da69){const _0x23a412=_0x21f943;super(),this[_0x23a412(0x165)]=_0x47da69;}[_0x21f943(0x137)](_0x4d4a3c){const _0x15c54a=_0x21f943;var _0x5e51c8;let _0x12bce5=((_0x5e51c8=this['_configService']['getConfig'](t[_0x15c54a(0x139)]))==null?void 0x0:_0x5e51c8[_0x15c54a(0x130)])||{};try{let _0x35ca00=new o[(_0x15c54a(0x149))](_0x4d4a3c,{'headers':{..._0x12bce5}}),_0x4a946f=new r[(_0x15c54a(0x140))]();return{'URL':_0x4d4a3c,'close':(_0x589e7f,_0x549c0e)=>{const _0x2c39f6=_0x15c54a;_0x35ca00[_0x2c39f6(0x12f)](_0x589e7f,_0x549c0e),_0x4a946f[_0x2c39f6(0x135)]();},'send':_0x4c31dd=>{_0x35ca00['send'](_0x4c31dd);},'open$':new a['Observable'](_0x12953f=>{const _0x1776da=_0x15c54a;let _0x1b44de=_0x45399f=>_0x12953f['next'](_0x45399f);_0x35ca00[_0x1776da(0x166)]('open',_0x1b44de),_0x4a946f[_0x1776da(0x151)]((0x0,r['toDisposable'])(()=>_0x35ca00[_0x1776da(0x16a)](_0x1776da(0x14b),_0x1b44de)));})['pipe']((0x0,a[_0x15c54a(0x142)])()),'close$':new a['Observable'](_0x516204=>{const _0x414177=_0x15c54a;let _0x102f9a=_0xd67fb8=>_0x516204[_0x414177(0x16e)](_0xd67fb8);_0x35ca00[_0x414177(0x166)](_0x414177(0x12f),_0x102f9a),_0x4a946f[_0x414177(0x151)]((0x0,r[_0x414177(0x152)])(()=>_0x35ca00[_0x414177(0x16a)]('close',_0x102f9a)));})[_0x15c54a(0x13f)]((0x0,a['share'])()),'error$':new a[(_0x15c54a(0x167))](_0x4bd8ac=>{const _0x495edb=_0x15c54a;let _0x3b08ae=_0x1a426d=>_0x4bd8ac['next'](_0x1a426d);_0x35ca00[_0x495edb(0x166)](_0x495edb(0x13e),_0x3b08ae),_0x4a946f[_0x495edb(0x151)]((0x0,r[_0x495edb(0x152)])(()=>_0x35ca00['removeEventListener']('error',_0x3b08ae)));})[_0x15c54a(0x13f)]((0x0,a[_0x15c54a(0x142)])()),'message$':new a[(_0x15c54a(0x167))](_0x2f44cb=>{const _0x57b623=_0x15c54a;let _0x1623f0=_0x7389e7=>_0x2f44cb[_0x57b623(0x16e)](_0x7389e7);_0x35ca00[_0x57b623(0x166)]('message',_0x1623f0),_0x4a946f[_0x57b623(0x151)]((0x0,r[_0x57b623(0x152)])(()=>_0x35ca00[_0x57b623(0x16a)](_0x57b623(0x164),_0x1623f0)));})['pipe']((0x0,a['share'])())};}catch(_0x4f6a25){return console[_0x15c54a(0x13e)](_0x4f6a25),null;}}};f=d([u(0x0,r[_0x21f943(0x14d)])],f);function p(_0x51767c){'@babel/helpers - typeof';const _0x477e79=_0x21f943;return p=typeof Symbol==_0x477e79(0x156)&&typeof Symbol[_0x477e79(0x168)]=='symbol'?function(_0x2fd087){return typeof _0x2fd087;}:function(_0xfbc9cd){const _0x43447e=_0x477e79;return _0xfbc9cd&&typeof Symbol==_0x43447e(0x156)&&_0xfbc9cd[_0x43447e(0x16b)]===Symbol&&_0xfbc9cd!==Symbol[_0x43447e(0x157)]?_0x43447e(0x153):typeof _0xfbc9cd;},p(_0x51767c);}function m(_0x12e141,_0x59e1ec){const _0x4897cf=_0x21f943;if(p(_0x12e141)!='object'||!_0x12e141)return _0x12e141;var _0x1674d7=_0x12e141[Symbol[_0x4897cf(0x15f)]];if(_0x1674d7!==void 0x0){var _0x4da1e6=_0x1674d7['call'](_0x12e141,_0x59e1ec||_0x4897cf(0x13c));if(p(_0x4da1e6)!=_0x4897cf(0x155))return _0x4da1e6;throw TypeError(_0x4897cf(0x16f));}return(_0x59e1ec==='string'?String:Number)(_0x12e141);}function h(_0x20a210){const _0x4f8dae=_0x21f943;var _0xbe9afa=m(_0x20a210,_0x4f8dae(0x147));return p(_0xbe9afa)==_0x4f8dae(0x153)?_0xbe9afa:_0xbe9afa+'';}function g(_0x1d15fc,_0x47d364,_0x4845c0){return(_0x47d364=h(_0x47d364))in _0x1d15fc?Object['defineProperty'](_0x1d15fc,_0x47d364,{'value':_0x4845c0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1d15fc[_0x47d364]=_0x4845c0,_0x1d15fc;}function _0x2233(){const _0x26647f=['version','message','_configService','addEventListener','Observable','iterator','1JKARKe','removeEventListener','constructor','Plugin','headers','next','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1068478hfWWyk','merge','packageName','Inject','72982gINJUE','close','customHeaders','60MBuceK','pluginName','defineProperty','Disposable','dispose','5090427HzTPuL','createSocket','_registerDependencies','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','decorate','default','UniverNetworkPlugin','error','pipe','DisposableCollection','NodeCollaborationSocketService','share','UniverCollaborationClientNodePlugin','getConfig','324426OMyEKf','HTTPService','string','length','WebSocket','@univerjs-pro/collaboration-client-node','open','3246312qTjojs','IConfigService','Module','24924180BSTcih','_config','add','toDisposable','symbol','UniverCollaborationClientPlugin','object','function','prototype','8WifKLs','set','_injector','ISnapshotServerService','setConfig','onStarting','toStringTag','toPrimitive','2581527ucLglB','_doCreateSocket','ILogService'];_0x2233=function(){return _0x26647f;};return _0x2233();}let _=class extends r[_0x21f943(0x16c)]{constructor(_0x54172c=l,_0x49f54b,_0x12eef2){const _0x1878a1=_0x21f943;super(),this[_0x1878a1(0x150)]=_0x54172c,this[_0x1878a1(0x165)]=_0x49f54b,this[_0x1878a1(0x15a)]=_0x12eef2;let {..._0x12a961}=(0x0,r[_0x1878a1(0x171)])({},l,this[_0x1878a1(0x150)]);this[_0x1878a1(0x165)][_0x1878a1(0x15c)]('collaboration-client-node.config',_0x12a961);}[_0x21f943(0x15d)](){const _0x1a0dba=_0x21f943;this[_0x1a0dba(0x138)]();}['_registerDependencies'](){(0x0,r['registerDependencies'])(this['_injector'],[[i['ISocketService'],{'useClass':f}]]);}};function _0x3baf(_0x35e73d,_0x5e8bb4){_0x35e73d=_0x35e73d-0x12e;const _0x223392=_0x2233();let _0x3bafe8=_0x223392[_0x35e73d];return _0x3bafe8;}g(_,_0x21f943(0x132),_0x21f943(0x13a)),g(_,_0x21f943(0x172),s),g(_,_0x21f943(0x163),c),_=d([(0x0,r['DependentOn'])(n['UniverLicensePlugin'],i[_0x21f943(0x13d)],e['UniverCollaborationPlugin'],t[_0x21f943(0x154)]),u(0x1,r[_0x21f943(0x14d)]),u(0x2,(0x0,r[_0x21f943(0x173)])(r['Injector']))],_);let v=class extends t['CollaborationSocketService']{constructor(_0x271ecf,_0x571974,_0x9ce44,_0x318197,_0x137198){const _0x8a04ce=_0x21f943;super(_0x271ecf,_0x571974,_0x9ce44,_0x318197,_0x137198);let _0x6664e5=this['_configService'][_0x8a04ce(0x144)](t[_0x8a04ce(0x139)]);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0xc19426,_0xfaf713)=>{const _0x54c299=_0x8a04ce;let _0x318be8=_0xc19426[_0x54c299(0x16d)];if(_0x6664e5!=null&&_0x6664e5[_0x54c299(0x130)]){for(let _0x23a96d in _0x6664e5[_0x54c299(0x130)])_0x318be8[_0x54c299(0x159)](_0x23a96d,_0x6664e5['customHeaders'][_0x23a96d]);}return _0xfaf713(_0xc19426);}});}async['createSocket'](_0x1f13bd){const _0x607c43=_0x21f943;return this[_0x607c43(0x161)](_0x1f13bd);}};v=d([u(0x0,(0x0,r[_0x21f943(0x173)])(r['Injector'])),u(0x1,(0x0,r[_0x21f943(0x173)])(i[_0x21f943(0x146)])),u(0x2,r['IConfigService']),u(0x3,r[_0x21f943(0x162)]),u(0x4,e[_0x21f943(0x15b)])],v),Object['defineProperty'](exports,_0x21f943(0x141),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x21f943(0x133)](exports,_0x21f943(0x143),{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2a4366=_0x4fe8;(function(_0x5581cc,_0x54bc11){const _0x5237d3=_0x4fe8,_0x5e46d3=_0x5581cc();while(!![]){try{const _0x23a977=parseInt(_0x5237d3(0x147))/0x1*(parseInt(_0x5237d3(0x13c))/0x2)+parseInt(_0x5237d3(0x15f))/0x3+parseInt(_0x5237d3(0x160))/0x4+-parseInt(_0x5237d3(0x15a))/0x5*(parseInt(_0x5237d3(0x134))/0x6)+parseInt(_0x5237d3(0x13b))/0x7+parseInt(_0x5237d3(0x12f))/0x8*(parseInt(_0x5237d3(0x136))/0x9)+-parseInt(_0x5237d3(0x14f))/0xa*(parseInt(_0x5237d3(0x15b))/0xb);if(_0x23a977===_0x54bc11)break;else _0x5e46d3['push'](_0x5e46d3['shift']());}catch(_0x5e4107){_0x5e46d3['push'](_0x5e46d3['shift']());}}}(_0xd02c,0x6ff46));import{ISnapshotServerService as _0x3180c2,UniverCollaborationPlugin as _0x2fb57c}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xbf4e2,CollaborationSocketService as _0x2c515f,UniverCollaborationClientPlugin as _0xfe9b8}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x4174ff}from'@univerjs-pro/license';import{DependentOn as _0x2b7dc9,Disposable as _0x78400,DisposableCollection as _0x5d9907,IConfigService as _0x4df45e,ILogService as _0x382d11,Inject as _0x276453,Injector as _0x491da6,Plugin as _0x409ff4,merge as _0x31982b,registerDependencies as _0x5dfa3c,toDisposable as _0x5d0986}from'@univerjs/core';import{HTTPService as _0x2bae5b,ISocketService as _0x16afa6,UniverNetworkPlugin as _0xd6a96c}from'@univerjs/network';import{Observable as _0x2019af,share as _0x66cac3}from'rxjs';import{WebSocket as _0x35b80e}from'ws';var C=_0x2a4366(0x140),w=_0x2a4366(0x157);const T={};function E(_0x2b9300,_0x2854fb){return function(_0x43226c,_0x413b23){_0x2854fb(_0x43226c,_0x413b23,_0x2b9300);};}function D(_0x365488,_0x4102da,_0x27b4ed,_0x5abe71){const _0x338b89=_0x2a4366;var _0x198116=arguments[_0x338b89(0x13e)],_0x1a2eff=_0x198116<0x3?_0x4102da:_0x5abe71===null?_0x5abe71=Object[_0x338b89(0x159)](_0x4102da,_0x27b4ed):_0x5abe71,_0x136151;if(typeof Reflect==_0x338b89(0x12e)&&typeof Reflect[_0x338b89(0x13f)]==_0x338b89(0x150))_0x1a2eff=Reflect[_0x338b89(0x13f)](_0x365488,_0x4102da,_0x27b4ed,_0x5abe71);else{for(var _0x309aa2=_0x365488[_0x338b89(0x13e)]-0x1;_0x309aa2>=0x0;_0x309aa2--)(_0x136151=_0x365488[_0x309aa2])&&(_0x1a2eff=(_0x198116<0x3?_0x136151(_0x1a2eff):_0x198116>0x3?_0x136151(_0x4102da,_0x27b4ed,_0x1a2eff):_0x136151(_0x4102da,_0x27b4ed))||_0x1a2eff);}return _0x198116>0x3&&_0x1a2eff&&Object[_0x338b89(0x153)](_0x4102da,_0x27b4ed,_0x1a2eff),_0x1a2eff;}let O=class extends _0x78400{constructor(_0x4a6045){const _0x516078=_0x2a4366;super(),this[_0x516078(0x14e)]=_0x4a6045;}[_0x2a4366(0x151)](_0xfc5184){const _0x5079ed=_0x2a4366;var _0x294a0a;let _0x2669a1=((_0x294a0a=this[_0x5079ed(0x14e)]['getConfig'](_0xbf4e2))==null?void 0x0:_0x294a0a['customHeaders'])||{};try{let _0x3ad00e=new _0x35b80e(_0xfc5184,{'headers':{..._0x2669a1}}),_0x362cb=new _0x5d9907();return{'URL':_0xfc5184,'close':(_0x53bd0f,_0x2409b2)=>{const _0x1a126b=_0x5079ed;_0x3ad00e[_0x1a126b(0x133)](_0x53bd0f,_0x2409b2),_0x362cb[_0x1a126b(0x130)]();},'send':_0x47977e=>{const _0x25adb1=_0x5079ed;_0x3ad00e[_0x25adb1(0x14d)](_0x47977e);},'open$':new _0x2019af(_0x16670f=>{const _0x389594=_0x5079ed;let _0x3f7578=_0x2aab32=>_0x16670f[_0x389594(0x15d)](_0x2aab32);_0x3ad00e['addEventListener'](_0x389594(0x141),_0x3f7578),_0x362cb[_0x389594(0x12d)](_0x5d0986(()=>_0x3ad00e[_0x389594(0x144)]('open',_0x3f7578)));})[_0x5079ed(0x158)](_0x66cac3()),'close$':new _0x2019af(_0x6612b2=>{const _0x1a53f8=_0x5079ed;let _0x2b9bbd=_0x939fdf=>_0x6612b2[_0x1a53f8(0x15d)](_0x939fdf);_0x3ad00e[_0x1a53f8(0x156)]('close',_0x2b9bbd),_0x362cb['add'](_0x5d0986(()=>_0x3ad00e[_0x1a53f8(0x144)](_0x1a53f8(0x133),_0x2b9bbd)));})['pipe'](_0x66cac3()),'error$':new _0x2019af(_0x2c01e9=>{const _0x29a75b=_0x5079ed;let _0x4c98b4=_0x16ce8f=>_0x2c01e9['next'](_0x16ce8f);_0x3ad00e['addEventListener']('error',_0x4c98b4),_0x362cb[_0x29a75b(0x12d)](_0x5d0986(()=>_0x3ad00e['removeEventListener'](_0x29a75b(0x137),_0x4c98b4)));})[_0x5079ed(0x158)](_0x66cac3()),'message$':new _0x2019af(_0x22c530=>{const _0x576e9c=_0x5079ed;let _0x51f70b=_0x18f0d5=>_0x22c530['next'](_0x18f0d5);_0x3ad00e[_0x576e9c(0x156)](_0x576e9c(0x161),_0x51f70b),_0x362cb[_0x576e9c(0x12d)](_0x5d0986(()=>_0x3ad00e[_0x576e9c(0x144)](_0x576e9c(0x161),_0x51f70b)));})[_0x5079ed(0x158)](_0x66cac3())};}catch(_0x27ee26){return console[_0x5079ed(0x137)](_0x27ee26),null;}}};O=D([E(0x0,_0x4df45e)],O);function _0x4fe8(_0x2f441e,_0x13610d){_0x2f441e=_0x2f441e-0x12d;const _0xd02c62=_0xd02c();let _0x4fe890=_0xd02c62[_0x2f441e];return _0x4fe890;}function k(_0x376486){'@babel/helpers - typeof';const _0x56a6aa=_0x2a4366;return k=typeof Symbol==_0x56a6aa(0x150)&&typeof Symbol[_0x56a6aa(0x132)]==_0x56a6aa(0x15e)?function(_0x5025f2){return typeof _0x5025f2;}:function(_0x4ebe13){const _0x4b8042=_0x56a6aa;return _0x4ebe13&&typeof Symbol==_0x4b8042(0x150)&&_0x4ebe13[_0x4b8042(0x142)]===Symbol&&_0x4ebe13!==Symbol[_0x4b8042(0x152)]?_0x4b8042(0x15e):typeof _0x4ebe13;},k(_0x376486);}function A(_0x5531d8,_0x224677){const _0x5183e4=_0x2a4366;if(k(_0x5531d8)!=_0x5183e4(0x12e)||!_0x5531d8)return _0x5531d8;var _0x4182b1=_0x5531d8[Symbol[_0x5183e4(0x14c)]];if(_0x4182b1!==void 0x0){var _0x459c85=_0x4182b1[_0x5183e4(0x138)](_0x5531d8,_0x224677||_0x5183e4(0x131));if(k(_0x459c85)!='object')return _0x459c85;throw TypeError(_0x5183e4(0x13a));}return(_0x224677===_0x5183e4(0x149)?String:Number)(_0x5531d8);}function j(_0x3ab50c){const _0x8a5dd3=_0x2a4366;var _0x825211=A(_0x3ab50c,_0x8a5dd3(0x149));return k(_0x825211)==_0x8a5dd3(0x15e)?_0x825211:_0x825211+'';}function M(_0x1edd42,_0x3869ac,_0x180d8d){const _0x50973a=_0x2a4366;return(_0x3869ac=j(_0x3869ac))in _0x1edd42?Object[_0x50973a(0x153)](_0x1edd42,_0x3869ac,{'value':_0x180d8d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1edd42[_0x3869ac]=_0x180d8d,_0x1edd42;}let N=class extends _0x409ff4{constructor(_0x511583=T,_0x21af77,_0x702ace){const _0x23d2c6=_0x2a4366;super(),this[_0x23d2c6(0x143)]=_0x511583,this[_0x23d2c6(0x14e)]=_0x21af77,this[_0x23d2c6(0x145)]=_0x702ace;let {..._0x25ca7a}=_0x31982b({},T,this[_0x23d2c6(0x143)]);this[_0x23d2c6(0x14e)][_0x23d2c6(0x13d)](_0x23d2c6(0x154),_0x25ca7a);}[_0x2a4366(0x155)](){const _0x77c0c8=_0x2a4366;this[_0x77c0c8(0x148)]();}[_0x2a4366(0x148)](){_0x5dfa3c(this['_injector'],[[_0x16afa6,{'useClass':O}]]);}};M(N,_0x2a4366(0x15c),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),M(N,_0x2a4366(0x139),C),M(N,_0x2a4366(0x14b),w),N=D([_0x2b7dc9(_0x4174ff,_0xd6a96c,_0x2fb57c,_0xfe9b8),E(0x1,_0x4df45e),E(0x2,_0x276453(_0x491da6))],N);let P=class extends _0x2c515f{constructor(_0x594c75,_0x10dc8a,_0x311acf,_0x38e86b,_0x3110c0){const _0x5dadbc=_0x2a4366;super(_0x594c75,_0x10dc8a,_0x311acf,_0x38e86b,_0x3110c0);let _0x1cb493=this[_0x5dadbc(0x14e)][_0x5dadbc(0x135)](_0xbf4e2);this[_0x5dadbc(0x14a)]['registerHTTPInterceptor']({'interceptor':(_0x449acd,_0x10fcb9)=>{const _0x45b8a2=_0x5dadbc;let _0x38217e=_0x449acd['headers'];if(_0x1cb493!=null&&_0x1cb493[_0x45b8a2(0x146)]){for(let _0x57240a in _0x1cb493[_0x45b8a2(0x146)])_0x38217e['set'](_0x57240a,_0x1cb493[_0x45b8a2(0x146)][_0x57240a]);}return _0x10fcb9(_0x449acd);}});}async[_0x2a4366(0x151)](_0x28b8c1){return this['_doCreateSocket'](_0x28b8c1);}};function _0xd02c(){const _0x5f56db=['55byYUpD','pluginName','next','symbol','208026wuiNsF','2323384zEXhVv','message','add','object','40lSZXey','dispose','default','iterator','close','34590fgWvMX','getConfig','1290888AFfdND','error','call','packageName','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','3775709KHPlLK','1687192UlsNgJ','setConfig','length','decorate','@univerjs-pro/collaboration-client-node','open','constructor','_config','removeEventListener','_injector','customHeaders','1KcbCBt','_registerDependencies','string','_httpService','version','toPrimitive','send','_configService','2957800ZFZeYV','function','createSocket','prototype','defineProperty','collaboration-client-node.config','onStarting','addEventListener','1.0.0','pipe','getOwnPropertyDescriptor','705HRDSGa'];_0xd02c=function(){return _0x5f56db;};return _0xd02c();}P=D([E(0x0,_0x276453(_0x491da6)),E(0x1,_0x276453(_0x2bae5b)),E(0x2,_0x4df45e),E(0x3,_0x382d11),E(0x4,_0x3180c2)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0xfad198=_0xd045;(function(_0x34a991,_0x46d0d0){const _0x304f2f=_0xd045,_0x36c11e=_0x34a991();while(!![]){try{const _0x5c9406=parseInt(_0x304f2f(0x16a))/0x1+parseInt(_0x304f2f(0x14c))/0x2+parseInt(_0x304f2f(0x15d))/0x3+parseInt(_0x304f2f(0x167))/0x4+-parseInt(_0x304f2f(0x15e))/0x5*(-parseInt(_0x304f2f(0x14d))/0x6)+parseInt(_0x304f2f(0x150))/0x7+parseInt(_0x304f2f(0x151))/0x8*(-parseInt(_0x304f2f(0x164))/0x9);if(_0x5c9406===_0x46d0d0)break;else _0x36c11e['push'](_0x36c11e['shift']());}catch(_0x42e37a){_0x36c11e['push'](_0x36c11e['shift']());}}}(_0x1634,0x59829));import{ISnapshotServerService as _0x2baad9,UniverCollaborationPlugin as _0x24cf9f}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x482dfd,CollaborationSocketService as _0x219388,UniverCollaborationClientPlugin as _0x411ea4}from'@univerjs-pro/collaboration-client';function _0x1634(){const _0x4147d6=['close','pipe','removeEventListener','length','customHeaders','open','function','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','add','getOwnPropertyDescriptor','_injector','1919943wvGkMS','2170VfkgGp','createSocket','next','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pluginName','_configService','10732833zFoqev','constructor','object','2616312NpjiSB','_doCreateSocket','packageName','512275viFyxH','_registerDependencies','dispose','iterator','toPrimitive','_config','symbol','defineProperty','message','addEventListener','decorate','1121940ZcxwOJ','2970OWOTCf','error','string','1187011qKxWrV','16Thqoqw'];_0x1634=function(){return _0x4147d6;};return _0x1634();}import{UniverLicensePlugin as _0x4bd8eb}from'@univerjs-pro/license';import{DependentOn as _0x216067,Disposable as _0x128357,DisposableCollection as _0x5175d2,IConfigService as _0x306740,ILogService as _0x9cd830,Inject as _0x2506a5,Injector as _0x18b828,Plugin as _0xd6760d,merge as _0x517c45,registerDependencies as _0x550118,toDisposable as _0x1f6998}from'@univerjs/core';import{HTTPService as _0x10e6d2,ISocketService as _0x546886,UniverNetworkPlugin as _0xb71c24}from'@univerjs/network';import{Observable as _0x424874,share as _0xfb593d}from'rxjs';import{WebSocket as _0x4b4fc7}from'ws';var C='@univerjs-pro/collaboration-client-node',w='1.0.2';const T={};function _0xd045(_0x159435,_0x413c6e){_0x159435=_0x159435-0x149;const _0x163481=_0x1634();let _0xd045c6=_0x163481[_0x159435];return _0xd045c6;}function E(_0x2bb152,_0x485ff5){return function(_0x15b5ef,_0x590302){_0x485ff5(_0x15b5ef,_0x590302,_0x2bb152);};}function D(_0x538ed2,_0x1fc6f2,_0x440e2f,_0x4bcd9d){const _0x132b70=_0xd045;var _0x4034f1=arguments[_0x132b70(0x155)],_0x18b934=_0x4034f1<0x3?_0x1fc6f2:_0x4bcd9d===null?_0x4bcd9d=Object[_0x132b70(0x15b)](_0x1fc6f2,_0x440e2f):_0x4bcd9d,_0x52903e;if(typeof Reflect==_0x132b70(0x166)&&typeof Reflect['decorate']==_0x132b70(0x158))_0x18b934=Reflect[_0x132b70(0x14b)](_0x538ed2,_0x1fc6f2,_0x440e2f,_0x4bcd9d);else{for(var _0x5b94a0=_0x538ed2['length']-0x1;_0x5b94a0>=0x0;_0x5b94a0--)(_0x52903e=_0x538ed2[_0x5b94a0])&&(_0x18b934=(_0x4034f1<0x3?_0x52903e(_0x18b934):_0x4034f1>0x3?_0x52903e(_0x1fc6f2,_0x440e2f,_0x18b934):_0x52903e(_0x1fc6f2,_0x440e2f))||_0x18b934);}return _0x4034f1>0x3&&_0x18b934&&Object[_0x132b70(0x171)](_0x1fc6f2,_0x440e2f,_0x18b934),_0x18b934;}let O=class extends _0x128357{constructor(_0x4c4942){const _0x240b84=_0xd045;super(),this[_0x240b84(0x163)]=_0x4c4942;}[_0xfad198(0x15f)](_0x32284e){const _0xda97ba=_0xfad198;var _0x4d4117;let _0x3a60ba=((_0x4d4117=this['_configService']['getConfig'](_0x482dfd))==null?void 0x0:_0x4d4117[_0xda97ba(0x156)])||{};try{let _0x5ac80c=new _0x4b4fc7(_0x32284e,{'headers':{..._0x3a60ba}}),_0x3c7d31=new _0x5175d2();return{'URL':_0x32284e,'close':(_0x403458,_0x47b97d)=>{const _0x7a7de1=_0xda97ba;_0x5ac80c[_0x7a7de1(0x152)](_0x403458,_0x47b97d),_0x3c7d31[_0x7a7de1(0x16c)]();},'send':_0x38b4c4=>{_0x5ac80c['send'](_0x38b4c4);},'open$':new _0x424874(_0x41e4cd=>{const _0x5ecea3=_0xda97ba;let _0x4d3864=_0x30858f=>_0x41e4cd['next'](_0x30858f);_0x5ac80c[_0x5ecea3(0x14a)](_0x5ecea3(0x157),_0x4d3864),_0x3c7d31[_0x5ecea3(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x5ecea3(0x154)](_0x5ecea3(0x157),_0x4d3864)));})[_0xda97ba(0x153)](_0xfb593d()),'close$':new _0x424874(_0x2c3684=>{const _0x1306ea=_0xda97ba;let _0xf0ee44=_0x4ffd38=>_0x2c3684[_0x1306ea(0x160)](_0x4ffd38);_0x5ac80c[_0x1306ea(0x14a)](_0x1306ea(0x152),_0xf0ee44),_0x3c7d31[_0x1306ea(0x15a)](_0x1f6998(()=>_0x5ac80c['removeEventListener'](_0x1306ea(0x152),_0xf0ee44)));})[_0xda97ba(0x153)](_0xfb593d()),'error$':new _0x424874(_0x41622f=>{const _0x53fc12=_0xda97ba;let _0x153aaf=_0x179b74=>_0x41622f[_0x53fc12(0x160)](_0x179b74);_0x5ac80c['addEventListener'](_0x53fc12(0x14e),_0x153aaf),_0x3c7d31[_0x53fc12(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x53fc12(0x154)]('error',_0x153aaf)));})[_0xda97ba(0x153)](_0xfb593d()),'message$':new _0x424874(_0x14e405=>{const _0x5e717a=_0xda97ba;let _0x4e9eaf=_0x41e3bf=>_0x14e405[_0x5e717a(0x160)](_0x41e3bf);_0x5ac80c[_0x5e717a(0x14a)](_0x5e717a(0x149),_0x4e9eaf),_0x3c7d31[_0x5e717a(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x5e717a(0x154)](_0x5e717a(0x149),_0x4e9eaf)));})[_0xda97ba(0x153)](_0xfb593d())};}catch(_0x3ddf67){return console[_0xda97ba(0x14e)](_0x3ddf67),null;}}};O=D([E(0x0,_0x306740)],O);function k(_0x5b526d){'@babel/helpers - typeof';const _0x174283=_0xfad198;return k=typeof Symbol==_0x174283(0x158)&&typeof Symbol[_0x174283(0x16d)]==_0x174283(0x170)?function(_0x2067f5){return typeof _0x2067f5;}:function(_0x231b23){const _0x2241b6=_0x174283;return _0x231b23&&typeof Symbol==_0x2241b6(0x158)&&_0x231b23[_0x2241b6(0x165)]===Symbol&&_0x231b23!==Symbol['prototype']?_0x2241b6(0x170):typeof _0x231b23;},k(_0x5b526d);}function A(_0x420680,_0x4c3706){const _0x1e2eff=_0xfad198;if(k(_0x420680)!=_0x1e2eff(0x166)||!_0x420680)return _0x420680;var _0x5ef63a=_0x420680[Symbol[_0x1e2eff(0x16e)]];if(_0x5ef63a!==void 0x0){var _0x3aea78=_0x5ef63a['call'](_0x420680,_0x4c3706||'default');if(k(_0x3aea78)!=_0x1e2eff(0x166))return _0x3aea78;throw TypeError(_0x1e2eff(0x161));}return(_0x4c3706===_0x1e2eff(0x14f)?String:Number)(_0x420680);}function j(_0x14d832){const _0x32d49a=_0xfad198;var _0x209345=A(_0x14d832,'string');return k(_0x209345)==_0x32d49a(0x170)?_0x209345:_0x209345+'';}function M(_0x593076,_0x2f9a3d,_0x366b7a){const _0x2e8ab1=_0xfad198;return(_0x2f9a3d=j(_0x2f9a3d))in _0x593076?Object[_0x2e8ab1(0x171)](_0x593076,_0x2f9a3d,{'value':_0x366b7a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x593076[_0x2f9a3d]=_0x366b7a,_0x593076;}let N=class extends _0xd6760d{constructor(_0x12e74d=T,_0x335765,_0xeccbae){const _0x1907fb=_0xfad198;super(),this['_config']=_0x12e74d,this[_0x1907fb(0x163)]=_0x335765,this[_0x1907fb(0x15c)]=_0xeccbae;let {..._0x52e976}=_0x517c45({},T,this[_0x1907fb(0x16f)]);this[_0x1907fb(0x163)]['setConfig']('collaboration-client-node.config',_0x52e976);}['onStarting'](){const _0x4e05f1=_0xfad198;this[_0x4e05f1(0x16b)]();}[_0xfad198(0x16b)](){const _0x445ac1=_0xfad198;_0x550118(this[_0x445ac1(0x15c)],[[_0x546886,{'useClass':O}]]);}};M(N,_0xfad198(0x162),_0xfad198(0x159)),M(N,_0xfad198(0x169),C),M(N,'version',w),N=D([_0x216067(_0x4bd8eb,_0xb71c24,_0x24cf9f,_0x411ea4),E(0x1,_0x306740),E(0x2,_0x2506a5(_0x18b828))],N);let P=class extends _0x219388{constructor(_0xf7ae8a,_0x23e6c7,_0x2f00c4,_0x2e101e,_0x5747e8){const _0x6dbaf1=_0xfad198;super(_0xf7ae8a,_0x23e6c7,_0x2f00c4,_0x2e101e,_0x5747e8);let _0x1db92c=this[_0x6dbaf1(0x163)]['getConfig'](_0x482dfd);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x1eb59d,_0x4ed5bd)=>{const _0x3160f2=_0x6dbaf1;let _0x276679=_0x1eb59d['headers'];if(_0x1db92c!=null&&_0x1db92c[_0x3160f2(0x156)]){for(let _0x2f066e in _0x1db92c[_0x3160f2(0x156)])_0x276679['set'](_0x2f066e,_0x1db92c[_0x3160f2(0x156)][_0x2f066e]);}return _0x4ed5bd(_0x1eb59d);}});}async[_0xfad198(0x15f)](_0x6fc791){const _0x4f6c51=_0xfad198;return this[_0x4f6c51(0x168)](_0x6fc791);}};P=D([E(0x0,_0x2506a5(_0x18b828)),E(0x1,_0x2506a5(_0x10e6d2)),E(0x2,_0x306740),E(0x3,_0x9cd830),E(0x4,_0x2baad9)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2a4366=_0x4fe8;(function(_0x5581cc,_0x54bc11){const _0x5237d3=_0x4fe8,_0x5e46d3=_0x5581cc();while(!![]){try{const _0x23a977=parseInt(_0x5237d3(0x147))/0x1*(parseInt(_0x5237d3(0x13c))/0x2)+parseInt(_0x5237d3(0x15f))/0x3+parseInt(_0x5237d3(0x160))/0x4+-parseInt(_0x5237d3(0x15a))/0x5*(parseInt(_0x5237d3(0x134))/0x6)+parseInt(_0x5237d3(0x13b))/0x7+parseInt(_0x5237d3(0x12f))/0x8*(parseInt(_0x5237d3(0x136))/0x9)+-parseInt(_0x5237d3(0x14f))/0xa*(parseInt(_0x5237d3(0x15b))/0xb);if(_0x23a977===_0x54bc11)break;else _0x5e46d3['push'](_0x5e46d3['shift']());}catch(_0x5e4107){_0x5e46d3['push'](_0x5e46d3['shift']());}}}(_0xd02c,0x6ff46));import{ISnapshotServerService as _0x3180c2,UniverCollaborationPlugin as _0x2fb57c}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xbf4e2,CollaborationSocketService as _0x2c515f,UniverCollaborationClientPlugin as _0xfe9b8}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x4174ff}from'@univerjs-pro/license';import{DependentOn as _0x2b7dc9,Disposable as _0x78400,DisposableCollection as _0x5d9907,IConfigService as _0x4df45e,ILogService as _0x382d11,Inject as _0x276453,Injector as _0x491da6,Plugin as _0x409ff4,merge as _0x31982b,registerDependencies as _0x5dfa3c,toDisposable as _0x5d0986}from'@univerjs/core';import{HTTPService as _0x2bae5b,ISocketService as _0x16afa6,UniverNetworkPlugin as _0xd6a96c}from'@univerjs/network';import{Observable as _0x2019af,share as _0x66cac3}from'rxjs';import{WebSocket as _0x35b80e}from'ws';var C=_0x2a4366(0x140),w=_0x2a4366(0x157);const T={};function E(_0x2b9300,_0x2854fb){return function(_0x43226c,_0x413b23){_0x2854fb(_0x43226c,_0x413b23,_0x2b9300);};}function D(_0x365488,_0x4102da,_0x27b4ed,_0x5abe71){const _0x338b89=_0x2a4366;var _0x198116=arguments[_0x338b89(0x13e)],_0x1a2eff=_0x198116<0x3?_0x4102da:_0x5abe71===null?_0x5abe71=Object[_0x338b89(0x159)](_0x4102da,_0x27b4ed):_0x5abe71,_0x136151;if(typeof Reflect==_0x338b89(0x12e)&&typeof Reflect[_0x338b89(0x13f)]==_0x338b89(0x150))_0x1a2eff=Reflect[_0x338b89(0x13f)](_0x365488,_0x4102da,_0x27b4ed,_0x5abe71);else{for(var _0x309aa2=_0x365488[_0x338b89(0x13e)]-0x1;_0x309aa2>=0x0;_0x309aa2--)(_0x136151=_0x365488[_0x309aa2])&&(_0x1a2eff=(_0x198116<0x3?_0x136151(_0x1a2eff):_0x198116>0x3?_0x136151(_0x4102da,_0x27b4ed,_0x1a2eff):_0x136151(_0x4102da,_0x27b4ed))||_0x1a2eff);}return _0x198116>0x3&&_0x1a2eff&&Object[_0x338b89(0x153)](_0x4102da,_0x27b4ed,_0x1a2eff),_0x1a2eff;}let O=class extends _0x78400{constructor(_0x4a6045){const _0x516078=_0x2a4366;super(),this[_0x516078(0x14e)]=_0x4a6045;}[_0x2a4366(0x151)](_0xfc5184){const _0x5079ed=_0x2a4366;var _0x294a0a;let _0x2669a1=((_0x294a0a=this[_0x5079ed(0x14e)]['getConfig'](_0xbf4e2))==null?void 0x0:_0x294a0a['customHeaders'])||{};try{let _0x3ad00e=new _0x35b80e(_0xfc5184,{'headers':{..._0x2669a1}}),_0x362cb=new _0x5d9907();return{'URL':_0xfc5184,'close':(_0x53bd0f,_0x2409b2)=>{const _0x1a126b=_0x5079ed;_0x3ad00e[_0x1a126b(0x133)](_0x53bd0f,_0x2409b2),_0x362cb[_0x1a126b(0x130)]();},'send':_0x47977e=>{const _0x25adb1=_0x5079ed;_0x3ad00e[_0x25adb1(0x14d)](_0x47977e);},'open$':new _0x2019af(_0x16670f=>{const _0x389594=_0x5079ed;let _0x3f7578=_0x2aab32=>_0x16670f[_0x389594(0x15d)](_0x2aab32);_0x3ad00e['addEventListener'](_0x389594(0x141),_0x3f7578),_0x362cb[_0x389594(0x12d)](_0x5d0986(()=>_0x3ad00e[_0x389594(0x144)]('open',_0x3f7578)));})[_0x5079ed(0x158)](_0x66cac3()),'close$':new _0x2019af(_0x6612b2=>{const _0x1a53f8=_0x5079ed;let _0x2b9bbd=_0x939fdf=>_0x6612b2[_0x1a53f8(0x15d)](_0x939fdf);_0x3ad00e[_0x1a53f8(0x156)]('close',_0x2b9bbd),_0x362cb['add'](_0x5d0986(()=>_0x3ad00e[_0x1a53f8(0x144)](_0x1a53f8(0x133),_0x2b9bbd)));})['pipe'](_0x66cac3()),'error$':new _0x2019af(_0x2c01e9=>{const _0x29a75b=_0x5079ed;let _0x4c98b4=_0x16ce8f=>_0x2c01e9['next'](_0x16ce8f);_0x3ad00e['addEventListener']('error',_0x4c98b4),_0x362cb[_0x29a75b(0x12d)](_0x5d0986(()=>_0x3ad00e['removeEventListener'](_0x29a75b(0x137),_0x4c98b4)));})[_0x5079ed(0x158)](_0x66cac3()),'message$':new _0x2019af(_0x22c530=>{const _0x576e9c=_0x5079ed;let _0x51f70b=_0x18f0d5=>_0x22c530['next'](_0x18f0d5);_0x3ad00e[_0x576e9c(0x156)](_0x576e9c(0x161),_0x51f70b),_0x362cb[_0x576e9c(0x12d)](_0x5d0986(()=>_0x3ad00e[_0x576e9c(0x144)](_0x576e9c(0x161),_0x51f70b)));})[_0x5079ed(0x158)](_0x66cac3())};}catch(_0x27ee26){return console[_0x5079ed(0x137)](_0x27ee26),null;}}};O=D([E(0x0,_0x4df45e)],O);function _0x4fe8(_0x2f441e,_0x13610d){_0x2f441e=_0x2f441e-0x12d;const _0xd02c62=_0xd02c();let _0x4fe890=_0xd02c62[_0x2f441e];return _0x4fe890;}function k(_0x376486){'@babel/helpers - typeof';const _0x56a6aa=_0x2a4366;return k=typeof Symbol==_0x56a6aa(0x150)&&typeof Symbol[_0x56a6aa(0x132)]==_0x56a6aa(0x15e)?function(_0x5025f2){return typeof _0x5025f2;}:function(_0x4ebe13){const _0x4b8042=_0x56a6aa;return _0x4ebe13&&typeof Symbol==_0x4b8042(0x150)&&_0x4ebe13[_0x4b8042(0x142)]===Symbol&&_0x4ebe13!==Symbol[_0x4b8042(0x152)]?_0x4b8042(0x15e):typeof _0x4ebe13;},k(_0x376486);}function A(_0x5531d8,_0x224677){const _0x5183e4=_0x2a4366;if(k(_0x5531d8)!=_0x5183e4(0x12e)||!_0x5531d8)return _0x5531d8;var _0x4182b1=_0x5531d8[Symbol[_0x5183e4(0x14c)]];if(_0x4182b1!==void 0x0){var _0x459c85=_0x4182b1[_0x5183e4(0x138)](_0x5531d8,_0x224677||_0x5183e4(0x131));if(k(_0x459c85)!='object')return _0x459c85;throw TypeError(_0x5183e4(0x13a));}return(_0x224677===_0x5183e4(0x149)?String:Number)(_0x5531d8);}function j(_0x3ab50c){const _0x8a5dd3=_0x2a4366;var _0x825211=A(_0x3ab50c,_0x8a5dd3(0x149));return k(_0x825211)==_0x8a5dd3(0x15e)?_0x825211:_0x825211+'';}function M(_0x1edd42,_0x3869ac,_0x180d8d){const _0x50973a=_0x2a4366;return(_0x3869ac=j(_0x3869ac))in _0x1edd42?Object[_0x50973a(0x153)](_0x1edd42,_0x3869ac,{'value':_0x180d8d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1edd42[_0x3869ac]=_0x180d8d,_0x1edd42;}let N=class extends _0x409ff4{constructor(_0x511583=T,_0x21af77,_0x702ace){const _0x23d2c6=_0x2a4366;super(),this[_0x23d2c6(0x143)]=_0x511583,this[_0x23d2c6(0x14e)]=_0x21af77,this[_0x23d2c6(0x145)]=_0x702ace;let {..._0x25ca7a}=_0x31982b({},T,this[_0x23d2c6(0x143)]);this[_0x23d2c6(0x14e)][_0x23d2c6(0x13d)](_0x23d2c6(0x154),_0x25ca7a);}[_0x2a4366(0x155)](){const _0x77c0c8=_0x2a4366;this[_0x77c0c8(0x148)]();}[_0x2a4366(0x148)](){_0x5dfa3c(this['_injector'],[[_0x16afa6,{'useClass':O}]]);}};M(N,_0x2a4366(0x15c),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),M(N,_0x2a4366(0x139),C),M(N,_0x2a4366(0x14b),w),N=D([_0x2b7dc9(_0x4174ff,_0xd6a96c,_0x2fb57c,_0xfe9b8),E(0x1,_0x4df45e),E(0x2,_0x276453(_0x491da6))],N);let P=class extends _0x2c515f{constructor(_0x594c75,_0x10dc8a,_0x311acf,_0x38e86b,_0x3110c0){const _0x5dadbc=_0x2a4366;super(_0x594c75,_0x10dc8a,_0x311acf,_0x38e86b,_0x3110c0);let _0x1cb493=this[_0x5dadbc(0x14e)][_0x5dadbc(0x135)](_0xbf4e2);this[_0x5dadbc(0x14a)]['registerHTTPInterceptor']({'interceptor':(_0x449acd,_0x10fcb9)=>{const _0x45b8a2=_0x5dadbc;let _0x38217e=_0x449acd['headers'];if(_0x1cb493!=null&&_0x1cb493[_0x45b8a2(0x146)]){for(let _0x57240a in _0x1cb493[_0x45b8a2(0x146)])_0x38217e['set'](_0x57240a,_0x1cb493[_0x45b8a2(0x146)][_0x57240a]);}return _0x10fcb9(_0x449acd);}});}async[_0x2a4366(0x151)](_0x28b8c1){return this['_doCreateSocket'](_0x28b8c1);}};function _0xd02c(){const _0x5f56db=['55byYUpD','pluginName','next','symbol','208026wuiNsF','2323384zEXhVv','message','add','object','40lSZXey','dispose','default','iterator','close','34590fgWvMX','getConfig','1290888AFfdND','error','call','packageName','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','3775709KHPlLK','1687192UlsNgJ','setConfig','length','decorate','@univerjs-pro/collaboration-client-node','open','constructor','_config','removeEventListener','_injector','customHeaders','1KcbCBt','_registerDependencies','string','_httpService','version','toPrimitive','send','_configService','2957800ZFZeYV','function','createSocket','prototype','defineProperty','collaboration-client-node.config','onStarting','addEventListener','1.0.0','pipe','getOwnPropertyDescriptor','705HRDSGa'];_0xd02c=function(){return _0x5f56db;};return _0xd02c();}P=D([E(0x0,_0x276453(_0x491da6)),E(0x1,_0x276453(_0x2bae5b)),E(0x2,_0x4df45e),E(0x3,_0x382d11),E(0x4,_0x3180c2)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0xfad198=_0xd045;(function(_0x34a991,_0x46d0d0){const _0x304f2f=_0xd045,_0x36c11e=_0x34a991();while(!![]){try{const _0x5c9406=parseInt(_0x304f2f(0x16a))/0x1+parseInt(_0x304f2f(0x14c))/0x2+parseInt(_0x304f2f(0x15d))/0x3+parseInt(_0x304f2f(0x167))/0x4+-parseInt(_0x304f2f(0x15e))/0x5*(-parseInt(_0x304f2f(0x14d))/0x6)+parseInt(_0x304f2f(0x150))/0x7+parseInt(_0x304f2f(0x151))/0x8*(-parseInt(_0x304f2f(0x164))/0x9);if(_0x5c9406===_0x46d0d0)break;else _0x36c11e['push'](_0x36c11e['shift']());}catch(_0x42e37a){_0x36c11e['push'](_0x36c11e['shift']());}}}(_0x1634,0x59829));import{ISnapshotServerService as _0x2baad9,UniverCollaborationPlugin as _0x24cf9f}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x482dfd,CollaborationSocketService as _0x219388,UniverCollaborationClientPlugin as _0x411ea4}from'@univerjs-pro/collaboration-client';function _0x1634(){const _0x4147d6=['close','pipe','removeEventListener','length','customHeaders','open','function','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','add','getOwnPropertyDescriptor','_injector','1919943wvGkMS','2170VfkgGp','createSocket','next','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pluginName','_configService','10732833zFoqev','constructor','object','2616312NpjiSB','_doCreateSocket','packageName','512275viFyxH','_registerDependencies','dispose','iterator','toPrimitive','_config','symbol','defineProperty','message','addEventListener','decorate','1121940ZcxwOJ','2970OWOTCf','error','string','1187011qKxWrV','16Thqoqw'];_0x1634=function(){return _0x4147d6;};return _0x1634();}import{UniverLicensePlugin as _0x4bd8eb}from'@univerjs-pro/license';import{DependentOn as _0x216067,Disposable as _0x128357,DisposableCollection as _0x5175d2,IConfigService as _0x306740,ILogService as _0x9cd830,Inject as _0x2506a5,Injector as _0x18b828,Plugin as _0xd6760d,merge as _0x517c45,registerDependencies as _0x550118,toDisposable as _0x1f6998}from'@univerjs/core';import{HTTPService as _0x10e6d2,ISocketService as _0x546886,UniverNetworkPlugin as _0xb71c24}from'@univerjs/network';import{Observable as _0x424874,share as _0xfb593d}from'rxjs';import{WebSocket as _0x4b4fc7}from'ws';var C='@univerjs-pro/collaboration-client-node',w='1.0.2';const T={};function _0xd045(_0x159435,_0x413c6e){_0x159435=_0x159435-0x149;const _0x163481=_0x1634();let _0xd045c6=_0x163481[_0x159435];return _0xd045c6;}function E(_0x2bb152,_0x485ff5){return function(_0x15b5ef,_0x590302){_0x485ff5(_0x15b5ef,_0x590302,_0x2bb152);};}function D(_0x538ed2,_0x1fc6f2,_0x440e2f,_0x4bcd9d){const _0x132b70=_0xd045;var _0x4034f1=arguments[_0x132b70(0x155)],_0x18b934=_0x4034f1<0x3?_0x1fc6f2:_0x4bcd9d===null?_0x4bcd9d=Object[_0x132b70(0x15b)](_0x1fc6f2,_0x440e2f):_0x4bcd9d,_0x52903e;if(typeof Reflect==_0x132b70(0x166)&&typeof Reflect['decorate']==_0x132b70(0x158))_0x18b934=Reflect[_0x132b70(0x14b)](_0x538ed2,_0x1fc6f2,_0x440e2f,_0x4bcd9d);else{for(var _0x5b94a0=_0x538ed2['length']-0x1;_0x5b94a0>=0x0;_0x5b94a0--)(_0x52903e=_0x538ed2[_0x5b94a0])&&(_0x18b934=(_0x4034f1<0x3?_0x52903e(_0x18b934):_0x4034f1>0x3?_0x52903e(_0x1fc6f2,_0x440e2f,_0x18b934):_0x52903e(_0x1fc6f2,_0x440e2f))||_0x18b934);}return _0x4034f1>0x3&&_0x18b934&&Object[_0x132b70(0x171)](_0x1fc6f2,_0x440e2f,_0x18b934),_0x18b934;}let O=class extends _0x128357{constructor(_0x4c4942){const _0x240b84=_0xd045;super(),this[_0x240b84(0x163)]=_0x4c4942;}[_0xfad198(0x15f)](_0x32284e){const _0xda97ba=_0xfad198;var _0x4d4117;let _0x3a60ba=((_0x4d4117=this['_configService']['getConfig'](_0x482dfd))==null?void 0x0:_0x4d4117[_0xda97ba(0x156)])||{};try{let _0x5ac80c=new _0x4b4fc7(_0x32284e,{'headers':{..._0x3a60ba}}),_0x3c7d31=new _0x5175d2();return{'URL':_0x32284e,'close':(_0x403458,_0x47b97d)=>{const _0x7a7de1=_0xda97ba;_0x5ac80c[_0x7a7de1(0x152)](_0x403458,_0x47b97d),_0x3c7d31[_0x7a7de1(0x16c)]();},'send':_0x38b4c4=>{_0x5ac80c['send'](_0x38b4c4);},'open$':new _0x424874(_0x41e4cd=>{const _0x5ecea3=_0xda97ba;let _0x4d3864=_0x30858f=>_0x41e4cd['next'](_0x30858f);_0x5ac80c[_0x5ecea3(0x14a)](_0x5ecea3(0x157),_0x4d3864),_0x3c7d31[_0x5ecea3(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x5ecea3(0x154)](_0x5ecea3(0x157),_0x4d3864)));})[_0xda97ba(0x153)](_0xfb593d()),'close$':new _0x424874(_0x2c3684=>{const _0x1306ea=_0xda97ba;let _0xf0ee44=_0x4ffd38=>_0x2c3684[_0x1306ea(0x160)](_0x4ffd38);_0x5ac80c[_0x1306ea(0x14a)](_0x1306ea(0x152),_0xf0ee44),_0x3c7d31[_0x1306ea(0x15a)](_0x1f6998(()=>_0x5ac80c['removeEventListener'](_0x1306ea(0x152),_0xf0ee44)));})[_0xda97ba(0x153)](_0xfb593d()),'error$':new _0x424874(_0x41622f=>{const _0x53fc12=_0xda97ba;let _0x153aaf=_0x179b74=>_0x41622f[_0x53fc12(0x160)](_0x179b74);_0x5ac80c['addEventListener'](_0x53fc12(0x14e),_0x153aaf),_0x3c7d31[_0x53fc12(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x53fc12(0x154)]('error',_0x153aaf)));})[_0xda97ba(0x153)](_0xfb593d()),'message$':new _0x424874(_0x14e405=>{const _0x5e717a=_0xda97ba;let _0x4e9eaf=_0x41e3bf=>_0x14e405[_0x5e717a(0x160)](_0x41e3bf);_0x5ac80c[_0x5e717a(0x14a)](_0x5e717a(0x149),_0x4e9eaf),_0x3c7d31[_0x5e717a(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x5e717a(0x154)](_0x5e717a(0x149),_0x4e9eaf)));})[_0xda97ba(0x153)](_0xfb593d())};}catch(_0x3ddf67){return console[_0xda97ba(0x14e)](_0x3ddf67),null;}}};O=D([E(0x0,_0x306740)],O);function k(_0x5b526d){'@babel/helpers - typeof';const _0x174283=_0xfad198;return k=typeof Symbol==_0x174283(0x158)&&typeof Symbol[_0x174283(0x16d)]==_0x174283(0x170)?function(_0x2067f5){return typeof _0x2067f5;}:function(_0x231b23){const _0x2241b6=_0x174283;return _0x231b23&&typeof Symbol==_0x2241b6(0x158)&&_0x231b23[_0x2241b6(0x165)]===Symbol&&_0x231b23!==Symbol['prototype']?_0x2241b6(0x170):typeof _0x231b23;},k(_0x5b526d);}function A(_0x420680,_0x4c3706){const _0x1e2eff=_0xfad198;if(k(_0x420680)!=_0x1e2eff(0x166)||!_0x420680)return _0x420680;var _0x5ef63a=_0x420680[Symbol[_0x1e2eff(0x16e)]];if(_0x5ef63a!==void 0x0){var _0x3aea78=_0x5ef63a['call'](_0x420680,_0x4c3706||'default');if(k(_0x3aea78)!=_0x1e2eff(0x166))return _0x3aea78;throw TypeError(_0x1e2eff(0x161));}return(_0x4c3706===_0x1e2eff(0x14f)?String:Number)(_0x420680);}function j(_0x14d832){const _0x32d49a=_0xfad198;var _0x209345=A(_0x14d832,'string');return k(_0x209345)==_0x32d49a(0x170)?_0x209345:_0x209345+'';}function M(_0x593076,_0x2f9a3d,_0x366b7a){const _0x2e8ab1=_0xfad198;return(_0x2f9a3d=j(_0x2f9a3d))in _0x593076?Object[_0x2e8ab1(0x171)](_0x593076,_0x2f9a3d,{'value':_0x366b7a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x593076[_0x2f9a3d]=_0x366b7a,_0x593076;}let N=class extends _0xd6760d{constructor(_0x12e74d=T,_0x335765,_0xeccbae){const _0x1907fb=_0xfad198;super(),this['_config']=_0x12e74d,this[_0x1907fb(0x163)]=_0x335765,this[_0x1907fb(0x15c)]=_0xeccbae;let {..._0x52e976}=_0x517c45({},T,this[_0x1907fb(0x16f)]);this[_0x1907fb(0x163)]['setConfig']('collaboration-client-node.config',_0x52e976);}['onStarting'](){const _0x4e05f1=_0xfad198;this[_0x4e05f1(0x16b)]();}[_0xfad198(0x16b)](){const _0x445ac1=_0xfad198;_0x550118(this[_0x445ac1(0x15c)],[[_0x546886,{'useClass':O}]]);}};M(N,_0xfad198(0x162),_0xfad198(0x159)),M(N,_0xfad198(0x169),C),M(N,'version',w),N=D([_0x216067(_0x4bd8eb,_0xb71c24,_0x24cf9f,_0x411ea4),E(0x1,_0x306740),E(0x2,_0x2506a5(_0x18b828))],N);let P=class extends _0x219388{constructor(_0xf7ae8a,_0x23e6c7,_0x2f00c4,_0x2e101e,_0x5747e8){const _0x6dbaf1=_0xfad198;super(_0xf7ae8a,_0x23e6c7,_0x2f00c4,_0x2e101e,_0x5747e8);let _0x1db92c=this[_0x6dbaf1(0x163)]['getConfig'](_0x482dfd);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x1eb59d,_0x4ed5bd)=>{const _0x3160f2=_0x6dbaf1;let _0x276679=_0x1eb59d['headers'];if(_0x1db92c!=null&&_0x1db92c[_0x3160f2(0x156)]){for(let _0x2f066e in _0x1db92c[_0x3160f2(0x156)])_0x276679['set'](_0x2f066e,_0x1db92c[_0x3160f2(0x156)][_0x2f066e]);}return _0x4ed5bd(_0x1eb59d);}});}async[_0xfad198(0x15f)](_0x6fc791){const _0x4f6c51=_0xfad198;return this[_0x4f6c51(0x168)](_0x6fc791);}};P=D([E(0x0,_0x2506a5(_0x18b828)),E(0x1,_0x2506a5(_0x10e6d2)),E(0x2,_0x306740),E(0x3,_0x9cd830),E(0x4,_0x2baad9)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4516(){const _0x1e5965=['prototype','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Disposable','registerDependencies','error','constructor','open','createSocket','customHeaders','Observable','@univerjs-pro/collaboration-client','toStringTag','_config','4VubTbF','rxjs','2332CKIoat','default','24669359UDMKlu','headers','UniverNetwork','add','version','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','function','388075gLHynG','getConfig','_injector','removeEventListener','ISnapshotServerService','HTTPService','ISocketService','CollaborationSocketService','registerHTTPInterceptor','ILogService','iterator','Plugin','UniverProCollaborationClientNode','length','toDisposable','addEventListener','7968264GonhQs','_registerDependencies','NodeCollaborationSocketService','share','close','message','UniverCore','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','object','UniverCollaborationClientNodePlugin','735BSPqim','IConfigService','symbol','UniverProCollaboration','955161TBCQXs','Inject','merge','_doCreateSocket','DisposableCollection','UniverProCollaborationClient','onStarting','defineProperty','UniverProLicense','@univerjs/core','_configService','@univerjs-pro/collaboration-client-node','dispose','UniverCollaborationPlugin','6279375ZwSJmO','getOwnPropertyDescriptor','pluginName','exports','Module','string','100Hfabnm','Injector','toPrimitive','next','setConfig','call','set','6672OlQrmq','pipe','16818XQXNrE'];_0x4516=function(){return _0x1e5965;};return _0x4516();}function _0x5391(_0x29be90,_0x15b2a3){_0x29be90=_0x29be90-0x1bb;const _0x4516e5=_0x4516();let _0x5391dd=_0x4516e5[_0x29be90];return _0x5391dd;}(function(_0x41087c,_0x56338b){const _0x376aac=_0x5391,_0xd39d4d=_0x41087c();while(!![]){try{const _0xdd7667=-parseInt(_0x376aac(0x20e))/0x1*(parseInt(_0x376aac(0x203))/0x2)+parseInt(_0x376aac(0x1f3))/0x3*(-parseInt(_0x376aac(0x205))/0x4)+-parseInt(_0x376aac(0x1e6))/0x5+-parseInt(_0x376aac(0x1f5))/0x6*(parseInt(_0x376aac(0x1d4))/0x7)+parseInt(_0x376aac(0x1ca))/0x8+parseInt(_0x376aac(0x1d8))/0x9*(parseInt(_0x376aac(0x1ec))/0xa)+parseInt(_0x376aac(0x207))/0xb;if(_0xdd7667===_0x56338b)break;else _0xd39d4d['push'](_0xd39d4d['shift']());}catch(_0x5ecd42){_0xd39d4d['push'](_0xd39d4d['shift']());}}}(_0x4516,0xa54c4),function(_0x44f7f2,_0x3e1156){const _0x14694a=_0x5391;typeof exports==_0x14694a(0x1d2)&&typeof module<'u'?_0x3e1156(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x14694a(0x20d)&&define['amd']?define(['exports','@univerjs-pro/collaboration',_0x14694a(0x200),'@univerjs-pro/license',_0x14694a(0x1e1),'@univerjs/network',_0x14694a(0x204)],_0x3e1156):(_0x44f7f2=typeof globalThis<'u'?globalThis:_0x44f7f2||self,_0x3e1156(_0x44f7f2[_0x14694a(0x1c6)]={},_0x44f7f2[_0x14694a(0x1d7)],_0x44f7f2[_0x14694a(0x1dd)],_0x44f7f2[_0x14694a(0x1e0)],_0x44f7f2[_0x14694a(0x1d0)],_0x44f7f2[_0x14694a(0x209)],_0x44f7f2[_0x14694a(0x204)]));}(this,function(_0x526775,_0x4087ac,_0x23e206,_0x580e8d,_0x37fd06,_0x27900d,_0x1684cc){const _0x49832e=_0x5391;Object[_0x49832e(0x1df)](_0x526775,Symbol[_0x49832e(0x201)],{'value':_0x49832e(0x1ea)});var _0x1fea84=(_0x2bdf96,_0x55218f)=>()=>(_0x55218f||(_0x2bdf96((_0x55218f={'exports':{}})[_0x49832e(0x1e9)],_0x55218f),_0x2bdf96=null),_0x55218f[_0x49832e(0x1e9)]),_0x23779b=_0x49832e(0x1e3),_0x228cae='1.0.0';let _0x21cbb7={};var _0x126216=_0x1fea84((_0xa5af69,_0x551fc3)=>{const _0x270abe=_0x49832e;_0x551fc3[_0x270abe(0x1e9)]=function(){const _0x3ee746=_0x270abe;throw Error(_0x3ee746(0x1d1));};})();function _0x70b58d(_0x3a15f6,_0x5642ce){return function(_0x55025a,_0x27ec68){_0x5642ce(_0x55025a,_0x27ec68,_0x3a15f6);};}function _0x18e18c(_0x4e4f49,_0x1c751d,_0x1d8025,_0x406de8){const _0x356880=_0x49832e;var _0x53b693=arguments[_0x356880(0x1c7)],_0x429759=_0x53b693<0x3?_0x1c751d:_0x406de8===null?_0x406de8=Object[_0x356880(0x1e7)](_0x1c751d,_0x1d8025):_0x406de8,_0x58f797;if(typeof Reflect==_0x356880(0x1d2)&&typeof Reflect['decorate']==_0x356880(0x20d))_0x429759=Reflect['decorate'](_0x4e4f49,_0x1c751d,_0x1d8025,_0x406de8);else{for(var _0x5408da=_0x4e4f49['length']-0x1;_0x5408da>=0x0;_0x5408da--)(_0x58f797=_0x4e4f49[_0x5408da])&&(_0x429759=(_0x53b693<0x3?_0x58f797(_0x429759):_0x53b693>0x3?_0x58f797(_0x1c751d,_0x1d8025,_0x429759):_0x58f797(_0x1c751d,_0x1d8025))||_0x429759);}return _0x53b693>0x3&&_0x429759&&Object[_0x356880(0x1df)](_0x1c751d,_0x1d8025,_0x429759),_0x429759;}let _0x5ceebf=class extends _0x37fd06[_0x49832e(0x1f8)]{constructor(_0x50f208){const _0xe7da6c=_0x49832e;super(),this[_0xe7da6c(0x1e2)]=_0x50f208;}['createSocket'](_0x1ff068){const _0x40be8a=_0x49832e;var _0x3d310d;let _0x34418e=((_0x3d310d=this[_0x40be8a(0x1e2)][_0x40be8a(0x1bb)](_0x23e206[_0x40be8a(0x20c)]))==null?void 0x0:_0x3d310d[_0x40be8a(0x1fe)])||{};try{let _0x4d8107=new _0x126216['WebSocket'](_0x1ff068,{'headers':{..._0x34418e}}),_0x4b88bf=new _0x37fd06[(_0x40be8a(0x1dc))]();return{'URL':_0x1ff068,'close':(_0x4e616a,_0x229cc3)=>{const _0x5391fc=_0x40be8a;_0x4d8107['close'](_0x4e616a,_0x229cc3),_0x4b88bf[_0x5391fc(0x1e4)]();},'send':_0x1d9da2=>{_0x4d8107['send'](_0x1d9da2);},'open$':new _0x1684cc['Observable'](_0x28fcf9=>{const _0x45f9f5=_0x40be8a;let _0x16fce6=_0x312cc0=>_0x28fcf9['next'](_0x312cc0);_0x4d8107[_0x45f9f5(0x1c9)](_0x45f9f5(0x1fc),_0x16fce6),_0x4b88bf[_0x45f9f5(0x20a)]((0x0,_0x37fd06[_0x45f9f5(0x1c8)])(()=>_0x4d8107[_0x45f9f5(0x1bd)]('open',_0x16fce6)));})['pipe']((0x0,_0x1684cc[_0x40be8a(0x1cd)])()),'close$':new _0x1684cc[(_0x40be8a(0x1ff))](_0x53b1f5=>{const _0x19b575=_0x40be8a;let _0x3ebf88=_0x2ceeca=>_0x53b1f5[_0x19b575(0x1ef)](_0x2ceeca);_0x4d8107[_0x19b575(0x1c9)](_0x19b575(0x1ce),_0x3ebf88),_0x4b88bf['add']((0x0,_0x37fd06['toDisposable'])(()=>_0x4d8107[_0x19b575(0x1bd)](_0x19b575(0x1ce),_0x3ebf88)));})[_0x40be8a(0x1f4)]((0x0,_0x1684cc[_0x40be8a(0x1cd)])()),'error$':new _0x1684cc[(_0x40be8a(0x1ff))](_0x5dfe1e=>{const _0xfd02a3=_0x40be8a;let _0x18bf79=_0x7c511=>_0x5dfe1e[_0xfd02a3(0x1ef)](_0x7c511);_0x4d8107[_0xfd02a3(0x1c9)](_0xfd02a3(0x1fa),_0x18bf79),_0x4b88bf['add']((0x0,_0x37fd06[_0xfd02a3(0x1c8)])(()=>_0x4d8107['removeEventListener'](_0xfd02a3(0x1fa),_0x18bf79)));})['pipe']((0x0,_0x1684cc[_0x40be8a(0x1cd)])()),'message$':new _0x1684cc[(_0x40be8a(0x1ff))](_0x42e8f1=>{const _0x388e22=_0x40be8a;let _0x3cda25=_0x4c1ff4=>_0x42e8f1[_0x388e22(0x1ef)](_0x4c1ff4);_0x4d8107[_0x388e22(0x1c9)](_0x388e22(0x1cf),_0x3cda25),_0x4b88bf[_0x388e22(0x20a)]((0x0,_0x37fd06[_0x388e22(0x1c8)])(()=>_0x4d8107['removeEventListener'](_0x388e22(0x1cf),_0x3cda25)));})[_0x40be8a(0x1f4)]((0x0,_0x1684cc[_0x40be8a(0x1cd)])())};}catch(_0x6dd46d){return console['error'](_0x6dd46d),null;}}};_0x5ceebf=_0x18e18c([_0x70b58d(0x0,_0x37fd06['IConfigService'])],_0x5ceebf);function _0x5e6621(_0x25d77b){'@babel/helpers - typeof';const _0x461a2f=_0x49832e;return _0x5e6621=typeof Symbol==_0x461a2f(0x20d)&&typeof Symbol[_0x461a2f(0x1c4)]==_0x461a2f(0x1d6)?function(_0x1e55d9){return typeof _0x1e55d9;}:function(_0x462cd5){const _0x3c70d9=_0x461a2f;return _0x462cd5&&typeof Symbol==_0x3c70d9(0x20d)&&_0x462cd5[_0x3c70d9(0x1fb)]===Symbol&&_0x462cd5!==Symbol[_0x3c70d9(0x1f6)]?_0x3c70d9(0x1d6):typeof _0x462cd5;},_0x5e6621(_0x25d77b);}function _0x36dd42(_0xf540c0,_0x33303d){const _0x2d0882=_0x49832e;if(_0x5e6621(_0xf540c0)!=_0x2d0882(0x1d2)||!_0xf540c0)return _0xf540c0;var _0x26786e=_0xf540c0[Symbol[_0x2d0882(0x1ee)]];if(_0x26786e!==void 0x0){var _0x5dc63a=_0x26786e[_0x2d0882(0x1f1)](_0xf540c0,_0x33303d||_0x2d0882(0x206));if(_0x5e6621(_0x5dc63a)!=_0x2d0882(0x1d2))return _0x5dc63a;throw TypeError(_0x2d0882(0x1f7));}return(_0x33303d==='string'?String:Number)(_0xf540c0);}function _0x454c85(_0x380b61){const _0x141a97=_0x49832e;var _0x2b3ff9=_0x36dd42(_0x380b61,_0x141a97(0x1eb));return _0x5e6621(_0x2b3ff9)==_0x141a97(0x1d6)?_0x2b3ff9:_0x2b3ff9+'';}function _0x28514e(_0xe6694f,_0x773564,_0x1ffeba){const _0x4cf469=_0x49832e;return(_0x773564=_0x454c85(_0x773564))in _0xe6694f?Object[_0x4cf469(0x1df)](_0xe6694f,_0x773564,{'value':_0x1ffeba,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xe6694f[_0x773564]=_0x1ffeba,_0xe6694f;}let _0x83ed47=class extends _0x37fd06[_0x49832e(0x1c5)]{constructor(_0x190be5=_0x21cbb7,_0x12ac16,_0x410150){const _0x270b36=_0x49832e;super(),this['_config']=_0x190be5,this[_0x270b36(0x1e2)]=_0x12ac16,this[_0x270b36(0x1bc)]=_0x410150;let {..._0x51f5b0}=(0x0,_0x37fd06[_0x270b36(0x1da)])({},_0x21cbb7,this[_0x270b36(0x202)]);this[_0x270b36(0x1e2)][_0x270b36(0x1f0)]('collaboration-client-node.config',_0x51f5b0);}[_0x49832e(0x1de)](){const _0x30999b=_0x49832e;this[_0x30999b(0x1cb)]();}['_registerDependencies'](){const _0x3fa39c=_0x49832e;(0x0,_0x37fd06[_0x3fa39c(0x1f9)])(this[_0x3fa39c(0x1bc)],[[_0x27900d[_0x3fa39c(0x1c0)],{'useClass':_0x5ceebf}]]);}};_0x28514e(_0x83ed47,_0x49832e(0x1e8),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x28514e(_0x83ed47,'packageName',_0x23779b),_0x28514e(_0x83ed47,_0x49832e(0x20b),_0x228cae),_0x83ed47=_0x18e18c([(0x0,_0x37fd06['DependentOn'])(_0x580e8d['UniverLicensePlugin'],_0x27900d['UniverNetworkPlugin'],_0x4087ac[_0x49832e(0x1e5)],_0x23e206['UniverCollaborationClientPlugin']),_0x70b58d(0x1,_0x37fd06[_0x49832e(0x1d5)]),_0x70b58d(0x2,(0x0,_0x37fd06['Inject'])(_0x37fd06[_0x49832e(0x1ed)]))],_0x83ed47);let _0x54c09d=class extends _0x23e206[_0x49832e(0x1c1)]{constructor(_0x5ed2c1,_0x496481,_0x384a7e,_0x2d2992,_0x182285){const _0x3df4db=_0x49832e;super(_0x5ed2c1,_0x496481,_0x384a7e,_0x2d2992,_0x182285);let _0x39e48b=this[_0x3df4db(0x1e2)][_0x3df4db(0x1bb)](_0x23e206['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this['_httpService'][_0x3df4db(0x1c2)]({'interceptor':(_0x5abc19,_0x23bf77)=>{const _0x1453d8=_0x3df4db;let _0x2a66a3=_0x5abc19[_0x1453d8(0x208)];if(_0x39e48b!=null&&_0x39e48b[_0x1453d8(0x1fe)]){for(let _0x38b70b in _0x39e48b[_0x1453d8(0x1fe)])_0x2a66a3[_0x1453d8(0x1f2)](_0x38b70b,_0x39e48b['customHeaders'][_0x38b70b]);}return _0x23bf77(_0x5abc19);}});}async[_0x49832e(0x1fd)](_0x4a9849){const _0x4c4c25=_0x49832e;return this[_0x4c4c25(0x1db)](_0x4a9849);}};_0x54c09d=_0x18e18c([_0x70b58d(0x0,(0x0,_0x37fd06[_0x49832e(0x1d9)])(_0x37fd06[_0x49832e(0x1ed)])),_0x70b58d(0x1,(0x0,_0x37fd06[_0x49832e(0x1d9)])(_0x27900d[_0x49832e(0x1bf)])),_0x70b58d(0x2,_0x37fd06[_0x49832e(0x1d5)]),_0x70b58d(0x3,_0x37fd06[_0x49832e(0x1c3)]),_0x70b58d(0x4,_0x4087ac[_0x49832e(0x1be)])],_0x54c09d),Object[_0x49832e(0x1df)](_0x526775,_0x49832e(0x1cc),{'enumerable':!0x0,'get':function(){return _0x54c09d;}}),Object[_0x49832e(0x1df)](_0x526775,_0x49832e(0x1d3),{'enumerable':!0x0,'get':function(){return _0x83ed47;}});}));
1
+ (function(_0x6e6680,_0x197f2a){const _0x4be454=_0x320e,_0x3a06ff=_0x6e6680();while(!![]){try{const _0x32d896=-parseInt(_0x4be454(0xee))/0x1+-parseInt(_0x4be454(0xeb))/0x2*(parseInt(_0x4be454(0xf0))/0x3)+parseInt(_0x4be454(0xcb))/0x4*(-parseInt(_0x4be454(0x107))/0x5)+-parseInt(_0x4be454(0xde))/0x6*(parseInt(_0x4be454(0xef))/0x7)+parseInt(_0x4be454(0x104))/0x8+parseInt(_0x4be454(0x11a))/0x9+parseInt(_0x4be454(0xd6))/0xa;if(_0x32d896===_0x197f2a)break;else _0x3a06ff['push'](_0x3a06ff['shift']());}catch(_0x4e47d1){_0x3a06ff['push'](_0x3a06ff['shift']());}}}(_0x4f0f,0x282e0),function(_0x1389ac,_0x2319a4){const _0x3ba199=_0x320e;typeof exports==_0x3ba199(0xcc)&&typeof module<'u'?_0x2319a4(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x3ba199(0x109)&&define[_0x3ba199(0xd4)]?define([_0x3ba199(0x11b),_0x3ba199(0x108),_0x3ba199(0x115),_0x3ba199(0xf4),'@univerjs/core',_0x3ba199(0xe7),_0x3ba199(0xea)],_0x2319a4):(_0x1389ac=typeof globalThis<'u'?globalThis:_0x1389ac||self,_0x2319a4(_0x1389ac[_0x3ba199(0xe8)]={},_0x1389ac[_0x3ba199(0xd7)],_0x1389ac['UniverProCollaborationClient'],_0x1389ac[_0x3ba199(0xd3)],_0x1389ac['UniverCore'],_0x1389ac[_0x3ba199(0xf1)],_0x1389ac[_0x3ba199(0xea)]));}(this,function(_0x246147,_0x4779d5,_0x36e02d,_0x3ebb5e,_0x283cc9,_0x3ba9c9,_0x5c87e7){const _0x1ee019=_0x320e;Object[_0x1ee019(0x102)](_0x246147,Symbol[_0x1ee019(0xfb)],{'value':_0x1ee019(0xfd)});var _0x48c5fc=(_0x493240,_0x4e1307)=>()=>(_0x4e1307||(_0x493240((_0x4e1307={'exports':{}})[_0x1ee019(0x11b)],_0x4e1307),_0x493240=null),_0x4e1307[_0x1ee019(0x11b)]),_0x535d99=_0x1ee019(0xd5),_0x218412=_0x1ee019(0xcd);let _0x46d112={};var _0x2a4704=_0x48c5fc((_0x353b17,_0x48eff2)=>{_0x48eff2['exports']=function(){const _0x2a3a90=_0x320e;throw Error(_0x2a3a90(0x106));};})();function _0x54e5b1(_0xa120a5,_0x2d6a2c){return function(_0x38a9fe,_0x3d7bf6){_0x2d6a2c(_0x38a9fe,_0x3d7bf6,_0xa120a5);};}function _0x32e2c0(_0x439741,_0x4f336a,_0x435298,_0x1a1945){const _0x4a9784=_0x1ee019;var _0x79dd65=arguments[_0x4a9784(0x114)],_0x59c4c0=_0x79dd65<0x3?_0x4f336a:_0x1a1945===null?_0x1a1945=Object['getOwnPropertyDescriptor'](_0x4f336a,_0x435298):_0x1a1945,_0x54b747;if(typeof Reflect==_0x4a9784(0xcc)&&typeof Reflect[_0x4a9784(0x120)]==_0x4a9784(0x109))_0x59c4c0=Reflect['decorate'](_0x439741,_0x4f336a,_0x435298,_0x1a1945);else{for(var _0x1397a6=_0x439741['length']-0x1;_0x1397a6>=0x0;_0x1397a6--)(_0x54b747=_0x439741[_0x1397a6])&&(_0x59c4c0=(_0x79dd65<0x3?_0x54b747(_0x59c4c0):_0x79dd65>0x3?_0x54b747(_0x4f336a,_0x435298,_0x59c4c0):_0x54b747(_0x4f336a,_0x435298))||_0x59c4c0);}return _0x79dd65>0x3&&_0x59c4c0&&Object[_0x4a9784(0x102)](_0x4f336a,_0x435298,_0x59c4c0),_0x59c4c0;}let _0x30aa20=class extends _0x283cc9[_0x1ee019(0x118)]{constructor(_0x3f8378){const _0x31ba40=_0x1ee019;super(),this[_0x31ba40(0xd1)]=_0x3f8378;}[_0x1ee019(0x10b)](_0x53fa1f){const _0x3219ab=_0x1ee019;var _0x460512;let _0x5ed631=((_0x460512=this[_0x3219ab(0xd1)]['getConfig'](_0x36e02d[_0x3219ab(0x10c)]))==null?void 0x0:_0x460512['customHeaders'])||{};try{let _0x45fc1e=new _0x2a4704[(_0x3219ab(0x11c))](_0x53fa1f,{'headers':{..._0x5ed631}}),_0x5c5714=new _0x283cc9[(_0x3219ab(0xcf))]();return{'URL':_0x53fa1f,'close':(_0x4c110b,_0xe7109c)=>{const _0x117154=_0x3219ab;_0x45fc1e[_0x117154(0x11d)](_0x4c110b,_0xe7109c),_0x5c5714[_0x117154(0xe6)]();},'send':_0x514839=>{_0x45fc1e['send'](_0x514839);},'open$':new _0x5c87e7['Observable'](_0x373da9=>{const _0x4ddd4d=_0x3219ab;let _0x1539c2=_0x3a8211=>_0x373da9[_0x4ddd4d(0xf6)](_0x3a8211);_0x45fc1e['addEventListener'](_0x4ddd4d(0x105),_0x1539c2),_0x5c5714[_0x4ddd4d(0xfe)]((0x0,_0x283cc9[_0x4ddd4d(0x10f)])(()=>_0x45fc1e[_0x4ddd4d(0x10d)]('open',_0x1539c2)));})[_0x3219ab(0x11e)]((0x0,_0x5c87e7[_0x3219ab(0xe2)])()),'close$':new _0x5c87e7[(_0x3219ab(0x100))](_0x59bd03=>{const _0x7a69f0=_0x3219ab;let _0x1efa8e=_0x27faf3=>_0x59bd03[_0x7a69f0(0xf6)](_0x27faf3);_0x45fc1e['addEventListener'](_0x7a69f0(0x11d),_0x1efa8e),_0x5c5714[_0x7a69f0(0xfe)]((0x0,_0x283cc9[_0x7a69f0(0x10f)])(()=>_0x45fc1e['removeEventListener']('close',_0x1efa8e)));})[_0x3219ab(0x11e)]((0x0,_0x5c87e7[_0x3219ab(0xe2)])()),'error$':new _0x5c87e7[(_0x3219ab(0x100))](_0x1c4f89=>{const _0xf779e0=_0x3219ab;let _0x3f42f8=_0x5ab67c=>_0x1c4f89['next'](_0x5ab67c);_0x45fc1e[_0xf779e0(0xf9)](_0xf779e0(0x101),_0x3f42f8),_0x5c5714[_0xf779e0(0xfe)]((0x0,_0x283cc9[_0xf779e0(0x10f)])(()=>_0x45fc1e[_0xf779e0(0x10d)]('error',_0x3f42f8)));})[_0x3219ab(0x11e)]((0x0,_0x5c87e7[_0x3219ab(0xe2)])()),'message$':new _0x5c87e7['Observable'](_0x200c7b=>{const _0x5cdcff=_0x3219ab;let _0x3b9f16=_0x4e2982=>_0x200c7b[_0x5cdcff(0xf6)](_0x4e2982);_0x45fc1e[_0x5cdcff(0xf9)]('message',_0x3b9f16),_0x5c5714['add']((0x0,_0x283cc9['toDisposable'])(()=>_0x45fc1e[_0x5cdcff(0x10d)](_0x5cdcff(0xdc),_0x3b9f16)));})[_0x3219ab(0x11e)]((0x0,_0x5c87e7[_0x3219ab(0xe2)])())};}catch(_0x2d5cd7){return console[_0x3219ab(0x101)](_0x2d5cd7),null;}}};_0x30aa20=_0x32e2c0([_0x54e5b1(0x0,_0x283cc9['IConfigService'])],_0x30aa20);function _0x52d483(_0x4222cd){'@babel/helpers - typeof';const _0xbb683a=_0x1ee019;return _0x52d483=typeof Symbol==_0xbb683a(0x109)&&typeof Symbol[_0xbb683a(0xfc)]==_0xbb683a(0x117)?function(_0x26c141){return typeof _0x26c141;}:function(_0x3f7d7f){const _0xf8f671=_0xbb683a;return _0x3f7d7f&&typeof Symbol==_0xf8f671(0x109)&&_0x3f7d7f[_0xf8f671(0xf7)]===Symbol&&_0x3f7d7f!==Symbol['prototype']?'symbol':typeof _0x3f7d7f;},_0x52d483(_0x4222cd);}function _0x4baf65(_0x54a08b,_0x20cfe3){const _0x2d1160=_0x1ee019;if(_0x52d483(_0x54a08b)!='object'||!_0x54a08b)return _0x54a08b;var _0x2bc59f=_0x54a08b[Symbol[_0x2d1160(0x10e)]];if(_0x2bc59f!==void 0x0){var _0x436295=_0x2bc59f['call'](_0x54a08b,_0x20cfe3||_0x2d1160(0xe0));if(_0x52d483(_0x436295)!=_0x2d1160(0xcc))return _0x436295;throw TypeError(_0x2d1160(0x11f));}return(_0x20cfe3==='string'?String:Number)(_0x54a08b);}function _0x328873(_0x43278e){const _0x330817=_0x1ee019;var _0x462b96=_0x4baf65(_0x43278e,_0x330817(0xdd));return _0x52d483(_0x462b96)==_0x330817(0x117)?_0x462b96:_0x462b96+'';}function _0x1f2da9(_0x54803c,_0x359c78,_0x409d13){const _0x18db15=_0x1ee019;return(_0x359c78=_0x328873(_0x359c78))in _0x54803c?Object[_0x18db15(0x102)](_0x54803c,_0x359c78,{'value':_0x409d13,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54803c[_0x359c78]=_0x409d13,_0x54803c;}let _0x44b582=class extends _0x283cc9[_0x1ee019(0xd0)]{constructor(_0x5242c8=_0x46d112,_0x389127,_0x4e3597){const _0x44aec6=_0x1ee019;super(),this[_0x44aec6(0xec)]=_0x5242c8,this['_configService']=_0x389127,this[_0x44aec6(0xd8)]=_0x4e3597;let {..._0x434fdd}=(0x0,_0x283cc9[_0x44aec6(0xd9)])({},_0x46d112,this[_0x44aec6(0xec)]);this['_configService'][_0x44aec6(0xe4)]('collaboration-client-node.config',_0x434fdd);}[_0x1ee019(0xce)](){const _0x546c0a=_0x1ee019;this[_0x546c0a(0x111)]();}[_0x1ee019(0x111)](){const _0x4a0bc1=_0x1ee019;(0x0,_0x283cc9[_0x4a0bc1(0x112)])(this[_0x4a0bc1(0xd8)],[[_0x3ba9c9[_0x4a0bc1(0x10a)],{'useClass':_0x30aa20}]]);}};_0x1f2da9(_0x44b582,_0x1ee019(0xda),_0x1ee019(0xe1)),_0x1f2da9(_0x44b582,_0x1ee019(0xfa),_0x535d99),_0x1f2da9(_0x44b582,_0x1ee019(0xf3),_0x218412),_0x44b582=_0x32e2c0([(0x0,_0x283cc9[_0x1ee019(0xf8)])(_0x3ebb5e[_0x1ee019(0xf5)],_0x3ba9c9[_0x1ee019(0xca)],_0x4779d5[_0x1ee019(0x113)],_0x36e02d[_0x1ee019(0x103)]),_0x54e5b1(0x1,_0x283cc9[_0x1ee019(0xe5)]),_0x54e5b1(0x2,(0x0,_0x283cc9[_0x1ee019(0x119)])(_0x283cc9[_0x1ee019(0xed)]))],_0x44b582);let _0x43a785=class extends _0x36e02d[_0x1ee019(0xdb)]{constructor(_0x54a2bd,_0x172a2b,_0x33d960,_0x24afad,_0x43c95b){const _0x98c81a=_0x1ee019;super(_0x54a2bd,_0x172a2b,_0x33d960,_0x24afad,_0x43c95b);let _0x30d1b5=this['_configService'][_0x98c81a(0x116)](_0x36e02d[_0x98c81a(0x10c)]);this[_0x98c81a(0x110)]['registerHTTPInterceptor']({'interceptor':(_0x157b09,_0x5bd56f)=>{const _0x13f5fc=_0x98c81a;let _0x3c11a6=_0x157b09[_0x13f5fc(0x121)];if(_0x30d1b5!=null&&_0x30d1b5['customHeaders']){for(let _0x5eb971 in _0x30d1b5['customHeaders'])_0x3c11a6[_0x13f5fc(0xe3)](_0x5eb971,_0x30d1b5[_0x13f5fc(0xdf)][_0x5eb971]);}return _0x5bd56f(_0x157b09);}});}async[_0x1ee019(0x10b)](_0x465d36){return this['_doCreateSocket'](_0x465d36);}};_0x43a785=_0x32e2c0([_0x54e5b1(0x0,(0x0,_0x283cc9[_0x1ee019(0x119)])(_0x283cc9[_0x1ee019(0xed)])),_0x54e5b1(0x1,(0x0,_0x283cc9[_0x1ee019(0x119)])(_0x3ba9c9[_0x1ee019(0xf2)])),_0x54e5b1(0x2,_0x283cc9[_0x1ee019(0xe5)]),_0x54e5b1(0x3,_0x283cc9[_0x1ee019(0xe9)]),_0x54e5b1(0x4,_0x4779d5[_0x1ee019(0xff)])],_0x43a785),Object[_0x1ee019(0x102)](_0x246147,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x43a785;}}),Object['defineProperty'](_0x246147,_0x1ee019(0xd2),{'enumerable':!0x0,'get':function(){return _0x44b582;}});}));function _0x320e(_0x47163d,_0x2bf40a){_0x47163d=_0x47163d-0xca;const _0x4f0f6b=_0x4f0f();let _0x320ee4=_0x4f0f6b[_0x47163d];return _0x320ee4;}function _0x4f0f(){const _0x44c1d=['@univerjs-pro/license','UniverLicensePlugin','next','constructor','DependentOn','addEventListener','packageName','toStringTag','iterator','Module','add','ISnapshotServerService','Observable','error','defineProperty','UniverCollaborationClientPlugin','1680064hZBpNC','open','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','1129035SPVsnk','@univerjs-pro/collaboration','function','ISocketService','createSocket','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','removeEventListener','toPrimitive','toDisposable','_httpService','_registerDependencies','registerDependencies','UniverCollaborationPlugin','length','@univerjs-pro/collaboration-client','getConfig','symbol','Disposable','Inject','1879920FLaAlc','exports','WebSocket','close','pipe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','decorate','headers','UniverNetworkPlugin','4hIHaze','object','1.0.2','onStarting','DisposableCollection','Plugin','_configService','UniverCollaborationClientNodePlugin','UniverProLicense','amd','@univerjs-pro/collaboration-client-node','5645060Tnqcxx','UniverProCollaboration','_injector','merge','pluginName','CollaborationSocketService','message','string','6WyViJp','customHeaders','default','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','share','set','setConfig','IConfigService','dispose','@univerjs/network','UniverProCollaborationClientNode','ILogService','rxjs','497894pRBQmw','_config','Injector','324766QsZndP','135086vvOvJD','3gxmzxW','UniverNetwork','HTTPService','version'];_0x4f0f=function(){return _0x44c1d;};return _0x4f0f();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
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.0.0",
55
- "@univerjs-pro/collaboration-client": "1.0.0",
56
- "@univerjs-pro/license": "1.0.0",
57
- "@univerjs/core": "1.0.0",
58
- "@univerjs/network": "1.0.0",
54
+ "@univerjs-pro/collaboration": "1.0.2",
55
+ "@univerjs-pro/collaboration-client": "1.0.2",
56
+ "@univerjs-pro/license": "1.0.2",
57
+ "@univerjs/core": "1.0.2",
58
+ "@univerjs/network": "1.0.2",
59
59
  "ws": "8.21.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/ws": "8.18.1",
63
- "@univerjs-infra/shared": "1.0.0",
63
+ "@univerjs-infra/shared": "1.0.2",
64
64
  "rxjs": "7.8.2",
65
65
  "typescript": "^6.0.3",
66
66
  "vitest": "^5.0.0"
@@ -1,5 +0,0 @@
1
- export declare const COLLABORATION_CLIENT_NODE_CONFIG_KEY = "collaboration-client-node.config";
2
- export declare const configSymbol: unique symbol;
3
- export interface IUniverCollaborationClientNodeConfig {
4
- }
5
- export declare const defaultPluginConfig: IUniverCollaborationClientNodeConfig;