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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,9 +8,9 @@
8
8
 
9
9
  ## Package Overview
10
10
 
11
- | Package | UMD global | CSS | Locales | Facade entry |
12
- | --- | --- | :---: | :---: | :---: |
13
- | `@univerjs-pro/collaboration-client-node` | `UniverProCollaborationClientNode` | No | No | No |
11
+ | Package | UMD global | CSS | Locales | Facade entry | Worker entry |
12
+ | --- | --- | :---: | :---: | :---: | :---: |
13
+ | `@univerjs-pro/collaboration-client-node` | `UniverProCollaborationClientNode` | No | No | No | No |
14
14
 
15
15
  ## Installation
16
16
 
@@ -20,21 +20,18 @@ pnpm add @univerjs-pro/collaboration-client-node
20
20
  npm install @univerjs-pro/collaboration-client-node
21
21
  ```
22
22
 
23
- Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
24
-
25
23
  ## Usage
26
24
 
25
+ Start with the [integration setup](https://docs.univer.ai/) for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
26
+
27
27
  ```ts
28
28
  import { UniverCollaborationClientNodePlugin } from '@univerjs-pro/collaboration-client-node';
29
29
 
30
30
  univer.registerPlugin(UniverCollaborationClientNodePlugin);
31
31
  ```
32
32
 
33
- ## Integration Notes
34
-
35
- - Keep this package on the same version as the other `@univerjs/*` and `@univerjs-pro/*` packages in your application.
36
-
37
33
  ## Resources
38
34
 
39
- - [Documentation](https://docs.univer.ai/guides/pro)
35
+ - [Documentation](https://docs.univer.ai)
40
36
  - [NPM package](https://npmjs.com/package/@univerjs-pro/collaboration-client-node)
37
+ - [GitHub repository](https://github.com/dream-num/univer-pro)
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x19b43e=_0x5501;(function(_0x3cc664,_0x793c04){const _0x980ddd=_0x5501,_0x4f3140=_0x3cc664();while(!![]){try{const _0x3a2cbf=parseInt(_0x980ddd(0x1cc))/0x1+-parseInt(_0x980ddd(0x1db))/0x2*(-parseInt(_0x980ddd(0x1d0))/0x3)+parseInt(_0x980ddd(0x1c8))/0x4*(parseInt(_0x980ddd(0x1d8))/0x5)+-parseInt(_0x980ddd(0x1c3))/0x6*(-parseInt(_0x980ddd(0x1c9))/0x7)+-parseInt(_0x980ddd(0x1d7))/0x8+-parseInt(_0x980ddd(0x1c7))/0x9*(parseInt(_0x980ddd(0x1fe))/0xa)+parseInt(_0x980ddd(0x1ed))/0xb;if(_0x3a2cbf===_0x793c04)break;else _0x4f3140['push'](_0x4f3140['shift']());}catch(_0x22317b){_0x4f3140['push'](_0x4f3140['shift']());}}}(_0x56d3,0xeeeca),Object[_0x19b43e(0x1ef)](exports,Symbol[_0x19b43e(0x1ee)],{'value':'Module'}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs-pro/license'),r=require('@univerjs/core'),i=require('@univerjs/network'),a=require('rxjs'),o=require('ws');var s='@univerjs-pro/collaboration-client-node',c=_0x19b43e(0x1be);const l={};function u(_0x122d3e,_0x4c6804){return function(_0x425998,_0x3cf72f){_0x4c6804(_0x425998,_0x3cf72f,_0x122d3e);};}function d(_0x4c4b47,_0x230df8,_0x41f2bd,_0x21767c){const _0x5bd8ca=_0x19b43e;var _0x263baf=arguments['length'],_0x1e8843=_0x263baf<0x3?_0x230df8:_0x21767c===null?_0x21767c=Object[_0x5bd8ca(0x1c0)](_0x230df8,_0x41f2bd):_0x21767c,_0x16f48c;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x5bd8ca(0x1b8))_0x1e8843=Reflect[_0x5bd8ca(0x1c2)](_0x4c4b47,_0x230df8,_0x41f2bd,_0x21767c);else{for(var _0x5b63f7=_0x4c4b47[_0x5bd8ca(0x1bd)]-0x1;_0x5b63f7>=0x0;_0x5b63f7--)(_0x16f48c=_0x4c4b47[_0x5b63f7])&&(_0x1e8843=(_0x263baf<0x3?_0x16f48c(_0x1e8843):_0x263baf>0x3?_0x16f48c(_0x230df8,_0x41f2bd,_0x1e8843):_0x16f48c(_0x230df8,_0x41f2bd))||_0x1e8843);}return _0x263baf>0x3&&_0x1e8843&&Object[_0x5bd8ca(0x1ef)](_0x230df8,_0x41f2bd,_0x1e8843),_0x1e8843;}function _0x5501(_0x49a12,_0x361ade){_0x49a12=_0x49a12-0x1b7;const _0x56d352=_0x56d3();let _0x550187=_0x56d352[_0x49a12];return _0x550187;}let f=class extends r[_0x19b43e(0x1d9)]{constructor(_0x32cff2){const _0x5b1f37=_0x19b43e;super(),this[_0x5b1f37(0x1ba)]=_0x32cff2;}[_0x19b43e(0x1d1)](_0xa6014b){const _0x2450ae=_0x19b43e;var _0x5890f0;let _0x2d5899=((_0x5890f0=this[_0x2450ae(0x1ba)][_0x2450ae(0x1dd)](t[_0x2450ae(0x1f8)]))==null?void 0x0:_0x5890f0['customHeaders'])||{};try{let _0x42a305=new o[(_0x2450ae(0x1e1))](_0xa6014b,{'headers':{..._0x2d5899}}),_0x15a995=new r[(_0x2450ae(0x1e5))]();return{'URL':_0xa6014b,'close':(_0x3a244b,_0x22fad8)=>{const _0x25c1d0=_0x2450ae;_0x42a305[_0x25c1d0(0x1c5)](_0x3a244b,_0x22fad8),_0x15a995[_0x25c1d0(0x1bf)]();},'send':_0x37caea=>{const _0x3da734=_0x2450ae;_0x42a305[_0x3da734(0x1bb)](_0x37caea);},'open$':new a[(_0x2450ae(0x1cd))](_0x4696e7=>{const _0x214dda=_0x2450ae;let _0x51e9ab=_0x7e3aea=>_0x4696e7[_0x214dda(0x1da)](_0x7e3aea);_0x42a305['addEventListener']('open',_0x51e9ab),_0x15a995['add']((0x0,r[_0x214dda(0x1dc)])(()=>_0x42a305[_0x214dda(0x1d2)](_0x214dda(0x1e4),_0x51e9ab)));})[_0x2450ae(0x1b7)]((0x0,a[_0x2450ae(0x1e0)])()),'close$':new a['Observable'](_0x45728d=>{const _0x544cd2=_0x2450ae;let _0x31a708=_0x546ec3=>_0x45728d[_0x544cd2(0x1da)](_0x546ec3);_0x42a305[_0x544cd2(0x1f5)]('close',_0x31a708),_0x15a995['add']((0x0,r[_0x544cd2(0x1dc)])(()=>_0x42a305[_0x544cd2(0x1d2)](_0x544cd2(0x1c5),_0x31a708)));})[_0x2450ae(0x1b7)]((0x0,a[_0x2450ae(0x1e0)])()),'error$':new a['Observable'](_0x29e933=>{const _0x2051fb=_0x2450ae;let _0x3093d4=_0x4a7851=>_0x29e933[_0x2051fb(0x1da)](_0x4a7851);_0x42a305[_0x2051fb(0x1f5)](_0x2051fb(0x1c6),_0x3093d4),_0x15a995['add']((0x0,r[_0x2051fb(0x1dc)])(()=>_0x42a305[_0x2051fb(0x1d2)]('error',_0x3093d4)));})[_0x2450ae(0x1b7)]((0x0,a[_0x2450ae(0x1e0)])()),'message$':new a[(_0x2450ae(0x1cd))](_0x4459dc=>{const _0xa350ac=_0x2450ae;let _0x42af7e=_0x438c0c=>_0x4459dc['next'](_0x438c0c);_0x42a305[_0xa350ac(0x1f5)]('message',_0x42af7e),_0x15a995[_0xa350ac(0x1e6)]((0x0,r[_0xa350ac(0x1dc)])(()=>_0x42a305[_0xa350ac(0x1d2)](_0xa350ac(0x1f1),_0x42af7e)));})[_0x2450ae(0x1b7)]((0x0,a['share'])())};}catch(_0x224c65){return console['error'](_0x224c65),null;}}};f=d([u(0x0,r[_0x19b43e(0x1f2)])],f);function p(_0x4104cc){'@babel/helpers - typeof';const _0x3503e3=_0x19b43e;return p=typeof Symbol=='function'&&typeof Symbol[_0x3503e3(0x1e3)]==_0x3503e3(0x1e8)?function(_0x249e6e){return typeof _0x249e6e;}:function(_0x25596a){const _0x592d1c=_0x3503e3;return _0x25596a&&typeof Symbol==_0x592d1c(0x1b8)&&_0x25596a[_0x592d1c(0x1e2)]===Symbol&&_0x25596a!==Symbol['prototype']?_0x592d1c(0x1e8):typeof _0x25596a;},p(_0x4104cc);}function m(_0x3bda2d,_0x218596){const _0x3cd6ef=_0x19b43e;if(p(_0x3bda2d)!='object'||!_0x3bda2d)return _0x3bda2d;var _0x3cf574=_0x3bda2d[Symbol[_0x3cd6ef(0x1d4)]];if(_0x3cf574!==void 0x0){var _0x4274e3=_0x3cf574[_0x3cd6ef(0x1f6)](_0x3bda2d,_0x218596||_0x3cd6ef(0x1cb));if(p(_0x4274e3)!='object')return _0x4274e3;throw TypeError(_0x3cd6ef(0x1eb));}return(_0x218596==='string'?String:Number)(_0x3bda2d);}function h(_0x19f298){var _0x489b0b=m(_0x19f298,'string');return p(_0x489b0b)=='symbol'?_0x489b0b:_0x489b0b+'';}function g(_0x247e6b,_0x2ca4ee,_0x5c64c0){return(_0x2ca4ee=h(_0x2ca4ee))in _0x247e6b?Object['defineProperty'](_0x247e6b,_0x2ca4ee,{'value':_0x5c64c0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x247e6b[_0x2ca4ee]=_0x5c64c0,_0x247e6b;}let _=class extends r[_0x19b43e(0x1bc)]{constructor(_0x4caec5=l,_0xbb8460,_0x1e97ab){const _0x7477ef=_0x19b43e;super(),this[_0x7477ef(0x1fa)]=_0x4caec5,this[_0x7477ef(0x1ba)]=_0xbb8460,this['_injector']=_0x1e97ab;let {..._0x11a5e6}=(0x0,r[_0x7477ef(0x1c1)])({},l,this[_0x7477ef(0x1fa)]);this[_0x7477ef(0x1ba)][_0x7477ef(0x1ce)](_0x7477ef(0x1f7),_0x11a5e6);}[_0x19b43e(0x1d6)](){const _0xe50ea1=_0x19b43e;this[_0xe50ea1(0x1ec)]();}[_0x19b43e(0x1ec)](){const _0x13ccf9=_0x19b43e;(0x0,r[_0x13ccf9(0x1fc)])(this[_0x13ccf9(0x1b9)],[[i[_0x13ccf9(0x1e7)],{'useClass':f}]]);}};g(_,'pluginName',_0x19b43e(0x1f4)),g(_,'packageName',s),g(_,'version',c),_=d([(0x0,r[_0x19b43e(0x1f3)])(n[_0x19b43e(0x1cf)],i[_0x19b43e(0x1de)],e['UniverCollaborationPlugin'],t[_0x19b43e(0x1fd)]),u(0x1,r[_0x19b43e(0x1f2)]),u(0x2,(0x0,r[_0x19b43e(0x1df)])(r[_0x19b43e(0x1d5)]))],_);function _0x56d3(){const _0x26179e=['Observable','setConfig','UniverLicensePlugin','54012eNICFB','createSocket','removeEventListener','HTTPService','toPrimitive','Injector','onStarting','13196032YDgikq','74380oWWdZn','Disposable','next','148BZjxeQ','toDisposable','getConfig','UniverNetworkPlugin','Inject','share','WebSocket','constructor','iterator','open','DisposableCollection','add','ISocketService','symbol','customHeaders','set','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_registerDependencies','10549616aywcXV','toStringTag','defineProperty','_doCreateSocket','message','IConfigService','DependentOn','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','addEventListener','call','collaboration-client-node.config','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','CollaborationSocketService','_config','NodeCollaborationSocketService','registerDependencies','UniverCollaborationClientPlugin','10UzrQTM','pipe','function','_injector','_configService','send','Plugin','length','1.3.1','dispose','getOwnPropertyDescriptor','merge','decorate','5166732ReZSKo','ILogService','close','error','10434717SwGxpB','128raeOzd','7BLHFPR','UniverCollaborationClientNodePlugin','default','159045sxbFuv'];_0x56d3=function(){return _0x26179e;};return _0x56d3();}let v=class extends t[_0x19b43e(0x1f9)]{constructor(_0x47be6e,_0x23b76c,_0x5656a2,_0x35ac2f,_0x1eadc9){const _0x260e15=_0x19b43e;super(_0x47be6e,_0x23b76c,_0x5656a2,_0x35ac2f,_0x1eadc9);let _0x44ef5c=this['_configService'][_0x260e15(0x1dd)](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x328c74,_0x3e98af)=>{const _0x28bceb=_0x260e15;let _0x47bcd3=_0x328c74['headers'];if(_0x44ef5c!=null&&_0x44ef5c[_0x28bceb(0x1e9)]){for(let _0x351108 in _0x44ef5c['customHeaders'])_0x47bcd3[_0x28bceb(0x1ea)](_0x351108,_0x44ef5c[_0x28bceb(0x1e9)][_0x351108]);}return _0x3e98af(_0x328c74);}});}async[_0x19b43e(0x1d1)](_0x1b33c8){const _0x4fb193=_0x19b43e;return this[_0x4fb193(0x1f0)](_0x1b33c8);}};v=d([u(0x0,(0x0,r[_0x19b43e(0x1df)])(r['Injector'])),u(0x1,(0x0,r[_0x19b43e(0x1df)])(i[_0x19b43e(0x1d3)])),u(0x2,r[_0x19b43e(0x1f2)]),u(0x3,r[_0x19b43e(0x1c4)]),u(0x4,e['ISnapshotServerService'])],v),Object[_0x19b43e(0x1ef)](exports,_0x19b43e(0x1fb),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x19b43e(0x1ef)](exports,_0x19b43e(0x1ca),{'enumerable':!0x0,'get':function(){return _;}});
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();}
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2568(_0x34c56c,_0x3a12d1){_0x34c56c=_0x34c56c-0x13f;const _0x2c1d3b=_0x2c1d();let _0x2568c6=_0x2c1d3b[_0x34c56c];return _0x2568c6;}const _0x3ed49b=_0x2568;(function(_0x3b1be8,_0x2110a0){const _0x4d09ff=_0x2568,_0x3c7b43=_0x3b1be8();while(!![]){try{const _0x3d072f=-parseInt(_0x4d09ff(0x140))/0x1*(parseInt(_0x4d09ff(0x145))/0x2)+-parseInt(_0x4d09ff(0x169))/0x3+parseInt(_0x4d09ff(0x15a))/0x4*(-parseInt(_0x4d09ff(0x161))/0x5)+-parseInt(_0x4d09ff(0x15d))/0x6*(parseInt(_0x4d09ff(0x15c))/0x7)+-parseInt(_0x4d09ff(0x16b))/0x8*(parseInt(_0x4d09ff(0x154))/0x9)+parseInt(_0x4d09ff(0x14c))/0xa*(parseInt(_0x4d09ff(0x153))/0xb)+-parseInt(_0x4d09ff(0x143))/0xc*(-parseInt(_0x4d09ff(0x151))/0xd);if(_0x3d072f===_0x2110a0)break;else _0x3c7b43['push'](_0x3c7b43['shift']());}catch(_0x4ed8d7){_0x3c7b43['push'](_0x3c7b43['shift']());}}}(_0x2c1d,0xf1052));import{ISnapshotServerService as _0x12d40d,UniverCollaborationPlugin as _0x247ccd}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2b8ddf,CollaborationSocketService as _0x405c78,UniverCollaborationClientPlugin as _0x28d393}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x253fce}from'@univerjs-pro/license';import{DependentOn as _0xd9fdd5,Disposable as _0x2958fe,DisposableCollection as _0x40c93b,IConfigService as _0x3c1060,ILogService as _0x385b76,Inject as _0x1dd1db,Injector as _0x1464a6,Plugin as _0xea637b,merge as _0x592ba3,registerDependencies as _0x3fe490,toDisposable as _0x1cd99c}from'@univerjs/core';import{HTTPService as _0x1d6519,ISocketService as _0x5a2968,UniverNetworkPlugin as _0x283729}from'@univerjs/network';import{Observable as _0x543202,share as _0x170ea9}from'rxjs';function _0x2c1d(){const _0x376f96=['headers','_httpService','toPrimitive','set','_config','1708rMDfWz','createSocket','705061YoafYY','84gONUHz','version','pipe','setConfig','1685CzyGzX','customHeaders','next','default','message','getOwnPropertyDescriptor','decorate','1.3.1','4434684fUjVNc','defineProperty','8BDDPhV','prototype','_registerDependencies','_injector','add','registerHTTPInterceptor','iterator','@univerjs-pro/collaboration-client-node','error','length','onStarting','31mXJUFP','addEventListener','send','53024808jiNpKI','close','55696jPTdiv','symbol','getConfig','open','packageName','removeEventListener','_configService','41050VKeDdZ','function','string','object','constructor','13rRctmV','pluginName','1958JQtgpt','2400021bQHmhs'];_0x2c1d=function(){return _0x376f96;};return _0x2c1d();}import{WebSocket as _0x24ba19}from'ws';var C=_0x3ed49b(0x172),w=_0x3ed49b(0x168);const T={};function E(_0x15096d,_0x4aa84e){return function(_0xaabefb,_0x1e72b2){_0x4aa84e(_0xaabefb,_0x1e72b2,_0x15096d);};}function D(_0x17a492,_0x369697,_0x97ab39,_0x36e575){const _0x1884f3=_0x3ed49b;var _0x4b03ca=arguments[_0x1884f3(0x174)],_0x4a7ecd=_0x4b03ca<0x3?_0x369697:_0x36e575===null?_0x36e575=Object[_0x1884f3(0x166)](_0x369697,_0x97ab39):_0x36e575,_0x4a80d1;if(typeof Reflect==_0x1884f3(0x14f)&&typeof Reflect[_0x1884f3(0x167)]==_0x1884f3(0x14d))_0x4a7ecd=Reflect['decorate'](_0x17a492,_0x369697,_0x97ab39,_0x36e575);else{for(var _0x1adf98=_0x17a492[_0x1884f3(0x174)]-0x1;_0x1adf98>=0x0;_0x1adf98--)(_0x4a80d1=_0x17a492[_0x1adf98])&&(_0x4a7ecd=(_0x4b03ca<0x3?_0x4a80d1(_0x4a7ecd):_0x4b03ca>0x3?_0x4a80d1(_0x369697,_0x97ab39,_0x4a7ecd):_0x4a80d1(_0x369697,_0x97ab39))||_0x4a7ecd);}return _0x4b03ca>0x3&&_0x4a7ecd&&Object['defineProperty'](_0x369697,_0x97ab39,_0x4a7ecd),_0x4a7ecd;}let O=class extends _0x2958fe{constructor(_0x1203cb){super(),this['_configService']=_0x1203cb;}[_0x3ed49b(0x15b)](_0x514da7){const _0x473ca4=_0x3ed49b;var _0x2947b9;let _0x3da7a2=((_0x2947b9=this[_0x473ca4(0x14b)][_0x473ca4(0x147)](_0x2b8ddf))==null?void 0x0:_0x2947b9['customHeaders'])||{};try{let _0x1ff457=new _0x24ba19(_0x514da7,{'headers':{..._0x3da7a2}}),_0x5669e5=new _0x40c93b();return{'URL':_0x514da7,'close':(_0xbe1ee3,_0x4fb394)=>{const _0x5d1016=_0x473ca4;_0x1ff457[_0x5d1016(0x144)](_0xbe1ee3,_0x4fb394),_0x5669e5['dispose']();},'send':_0x2aaf35=>{const _0x29b77b=_0x473ca4;_0x1ff457[_0x29b77b(0x142)](_0x2aaf35);},'open$':new _0x543202(_0x1fd000=>{const _0x15c8e9=_0x473ca4;let _0x51474e=_0x52625d=>_0x1fd000[_0x15c8e9(0x163)](_0x52625d);_0x1ff457[_0x15c8e9(0x141)](_0x15c8e9(0x148),_0x51474e),_0x5669e5[_0x15c8e9(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x15c8e9(0x14a)](_0x15c8e9(0x148),_0x51474e)));})[_0x473ca4(0x15f)](_0x170ea9()),'close$':new _0x543202(_0x48dddc=>{const _0x560941=_0x473ca4;let _0x2d5531=_0x22a694=>_0x48dddc[_0x560941(0x163)](_0x22a694);_0x1ff457['addEventListener'](_0x560941(0x144),_0x2d5531),_0x5669e5[_0x560941(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x560941(0x14a)](_0x560941(0x144),_0x2d5531)));})['pipe'](_0x170ea9()),'error$':new _0x543202(_0x853607=>{const _0x48af71=_0x473ca4;let _0x53f4ac=_0x2b4543=>_0x853607['next'](_0x2b4543);_0x1ff457[_0x48af71(0x141)](_0x48af71(0x173),_0x53f4ac),_0x5669e5[_0x48af71(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x48af71(0x14a)](_0x48af71(0x173),_0x53f4ac)));})['pipe'](_0x170ea9()),'message$':new _0x543202(_0x43ad72=>{const _0x5ccb40=_0x473ca4;let _0x3c1269=_0x594c67=>_0x43ad72[_0x5ccb40(0x163)](_0x594c67);_0x1ff457[_0x5ccb40(0x141)](_0x5ccb40(0x165),_0x3c1269),_0x5669e5[_0x5ccb40(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x5ccb40(0x14a)](_0x5ccb40(0x165),_0x3c1269)));})['pipe'](_0x170ea9())};}catch(_0x5de2e9){return console['error'](_0x5de2e9),null;}}};O=D([E(0x0,_0x3c1060)],O);function k(_0x3a2880){'@babel/helpers - typeof';const _0x5eca6b=_0x3ed49b;return k=typeof Symbol==_0x5eca6b(0x14d)&&typeof Symbol[_0x5eca6b(0x171)]==_0x5eca6b(0x146)?function(_0x166943){return typeof _0x166943;}:function(_0x40e748){const _0x77d203=_0x5eca6b;return _0x40e748&&typeof Symbol==_0x77d203(0x14d)&&_0x40e748[_0x77d203(0x150)]===Symbol&&_0x40e748!==Symbol[_0x77d203(0x16c)]?_0x77d203(0x146):typeof _0x40e748;},k(_0x3a2880);}function A(_0x142f86,_0x1b278e){const _0x2831a2=_0x3ed49b;if(k(_0x142f86)!=_0x2831a2(0x14f)||!_0x142f86)return _0x142f86;var _0x1a0ccd=_0x142f86[Symbol[_0x2831a2(0x157)]];if(_0x1a0ccd!==void 0x0){var _0x472441=_0x1a0ccd['call'](_0x142f86,_0x1b278e||_0x2831a2(0x164));if(k(_0x472441)!=_0x2831a2(0x14f))return _0x472441;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1b278e===_0x2831a2(0x14e)?String:Number)(_0x142f86);}function j(_0x881ed4){const _0x2e20ec=_0x3ed49b;var _0x545ad8=A(_0x881ed4,_0x2e20ec(0x14e));return k(_0x545ad8)==_0x2e20ec(0x146)?_0x545ad8:_0x545ad8+'';}function M(_0x45e617,_0x22f246,_0x14297c){const _0x135de2=_0x3ed49b;return(_0x22f246=j(_0x22f246))in _0x45e617?Object[_0x135de2(0x16a)](_0x45e617,_0x22f246,{'value':_0x14297c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x45e617[_0x22f246]=_0x14297c,_0x45e617;}let N=class extends _0xea637b{constructor(_0x9a8666=T,_0x47d2db,_0x475b0e){const _0x1d7fe6=_0x3ed49b;super(),this['_config']=_0x9a8666,this[_0x1d7fe6(0x14b)]=_0x47d2db,this['_injector']=_0x475b0e;let {..._0xad2b1f}=_0x592ba3({},T,this[_0x1d7fe6(0x159)]);this['_configService'][_0x1d7fe6(0x160)]('collaboration-client-node.config',_0xad2b1f);}[_0x3ed49b(0x13f)](){this['_registerDependencies']();}[_0x3ed49b(0x16d)](){const _0x4b95ea=_0x3ed49b;_0x3fe490(this[_0x4b95ea(0x16e)],[[_0x5a2968,{'useClass':O}]]);}};M(N,_0x3ed49b(0x152),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),M(N,_0x3ed49b(0x149),C),M(N,_0x3ed49b(0x15e),w),N=D([_0xd9fdd5(_0x253fce,_0x283729,_0x247ccd,_0x28d393),E(0x1,_0x3c1060),E(0x2,_0x1dd1db(_0x1464a6))],N);let P=class extends _0x405c78{constructor(_0x48ac84,_0x179940,_0x3dd094,_0x53991c,_0x719401){const _0x224f03=_0x3ed49b;super(_0x48ac84,_0x179940,_0x3dd094,_0x53991c,_0x719401);let _0x5c9a53=this[_0x224f03(0x14b)]['getConfig'](_0x2b8ddf);this[_0x224f03(0x156)][_0x224f03(0x170)]({'interceptor':(_0x5511a4,_0x114cb0)=>{const _0x4bdc72=_0x224f03;let _0x157b15=_0x5511a4[_0x4bdc72(0x155)];if(_0x5c9a53!=null&&_0x5c9a53[_0x4bdc72(0x162)]){for(let _0x25bc70 in _0x5c9a53[_0x4bdc72(0x162)])_0x157b15[_0x4bdc72(0x158)](_0x25bc70,_0x5c9a53[_0x4bdc72(0x162)][_0x25bc70]);}return _0x114cb0(_0x5511a4);}});}async[_0x3ed49b(0x15b)](_0x3827a7){return this['_doCreateSocket'](_0x3827a7);}};P=D([E(0x0,_0x1dd1db(_0x1464a6)),E(0x1,_0x1dd1db(_0x1d6519)),E(0x2,_0x3c1060),E(0x3,_0x385b76),E(0x4,_0x12d40d)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
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};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2568(_0x34c56c,_0x3a12d1){_0x34c56c=_0x34c56c-0x13f;const _0x2c1d3b=_0x2c1d();let _0x2568c6=_0x2c1d3b[_0x34c56c];return _0x2568c6;}const _0x3ed49b=_0x2568;(function(_0x3b1be8,_0x2110a0){const _0x4d09ff=_0x2568,_0x3c7b43=_0x3b1be8();while(!![]){try{const _0x3d072f=-parseInt(_0x4d09ff(0x140))/0x1*(parseInt(_0x4d09ff(0x145))/0x2)+-parseInt(_0x4d09ff(0x169))/0x3+parseInt(_0x4d09ff(0x15a))/0x4*(-parseInt(_0x4d09ff(0x161))/0x5)+-parseInt(_0x4d09ff(0x15d))/0x6*(parseInt(_0x4d09ff(0x15c))/0x7)+-parseInt(_0x4d09ff(0x16b))/0x8*(parseInt(_0x4d09ff(0x154))/0x9)+parseInt(_0x4d09ff(0x14c))/0xa*(parseInt(_0x4d09ff(0x153))/0xb)+-parseInt(_0x4d09ff(0x143))/0xc*(-parseInt(_0x4d09ff(0x151))/0xd);if(_0x3d072f===_0x2110a0)break;else _0x3c7b43['push'](_0x3c7b43['shift']());}catch(_0x4ed8d7){_0x3c7b43['push'](_0x3c7b43['shift']());}}}(_0x2c1d,0xf1052));import{ISnapshotServerService as _0x12d40d,UniverCollaborationPlugin as _0x247ccd}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2b8ddf,CollaborationSocketService as _0x405c78,UniverCollaborationClientPlugin as _0x28d393}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x253fce}from'@univerjs-pro/license';import{DependentOn as _0xd9fdd5,Disposable as _0x2958fe,DisposableCollection as _0x40c93b,IConfigService as _0x3c1060,ILogService as _0x385b76,Inject as _0x1dd1db,Injector as _0x1464a6,Plugin as _0xea637b,merge as _0x592ba3,registerDependencies as _0x3fe490,toDisposable as _0x1cd99c}from'@univerjs/core';import{HTTPService as _0x1d6519,ISocketService as _0x5a2968,UniverNetworkPlugin as _0x283729}from'@univerjs/network';import{Observable as _0x543202,share as _0x170ea9}from'rxjs';function _0x2c1d(){const _0x376f96=['headers','_httpService','toPrimitive','set','_config','1708rMDfWz','createSocket','705061YoafYY','84gONUHz','version','pipe','setConfig','1685CzyGzX','customHeaders','next','default','message','getOwnPropertyDescriptor','decorate','1.3.1','4434684fUjVNc','defineProperty','8BDDPhV','prototype','_registerDependencies','_injector','add','registerHTTPInterceptor','iterator','@univerjs-pro/collaboration-client-node','error','length','onStarting','31mXJUFP','addEventListener','send','53024808jiNpKI','close','55696jPTdiv','symbol','getConfig','open','packageName','removeEventListener','_configService','41050VKeDdZ','function','string','object','constructor','13rRctmV','pluginName','1958JQtgpt','2400021bQHmhs'];_0x2c1d=function(){return _0x376f96;};return _0x2c1d();}import{WebSocket as _0x24ba19}from'ws';var C=_0x3ed49b(0x172),w=_0x3ed49b(0x168);const T={};function E(_0x15096d,_0x4aa84e){return function(_0xaabefb,_0x1e72b2){_0x4aa84e(_0xaabefb,_0x1e72b2,_0x15096d);};}function D(_0x17a492,_0x369697,_0x97ab39,_0x36e575){const _0x1884f3=_0x3ed49b;var _0x4b03ca=arguments[_0x1884f3(0x174)],_0x4a7ecd=_0x4b03ca<0x3?_0x369697:_0x36e575===null?_0x36e575=Object[_0x1884f3(0x166)](_0x369697,_0x97ab39):_0x36e575,_0x4a80d1;if(typeof Reflect==_0x1884f3(0x14f)&&typeof Reflect[_0x1884f3(0x167)]==_0x1884f3(0x14d))_0x4a7ecd=Reflect['decorate'](_0x17a492,_0x369697,_0x97ab39,_0x36e575);else{for(var _0x1adf98=_0x17a492[_0x1884f3(0x174)]-0x1;_0x1adf98>=0x0;_0x1adf98--)(_0x4a80d1=_0x17a492[_0x1adf98])&&(_0x4a7ecd=(_0x4b03ca<0x3?_0x4a80d1(_0x4a7ecd):_0x4b03ca>0x3?_0x4a80d1(_0x369697,_0x97ab39,_0x4a7ecd):_0x4a80d1(_0x369697,_0x97ab39))||_0x4a7ecd);}return _0x4b03ca>0x3&&_0x4a7ecd&&Object['defineProperty'](_0x369697,_0x97ab39,_0x4a7ecd),_0x4a7ecd;}let O=class extends _0x2958fe{constructor(_0x1203cb){super(),this['_configService']=_0x1203cb;}[_0x3ed49b(0x15b)](_0x514da7){const _0x473ca4=_0x3ed49b;var _0x2947b9;let _0x3da7a2=((_0x2947b9=this[_0x473ca4(0x14b)][_0x473ca4(0x147)](_0x2b8ddf))==null?void 0x0:_0x2947b9['customHeaders'])||{};try{let _0x1ff457=new _0x24ba19(_0x514da7,{'headers':{..._0x3da7a2}}),_0x5669e5=new _0x40c93b();return{'URL':_0x514da7,'close':(_0xbe1ee3,_0x4fb394)=>{const _0x5d1016=_0x473ca4;_0x1ff457[_0x5d1016(0x144)](_0xbe1ee3,_0x4fb394),_0x5669e5['dispose']();},'send':_0x2aaf35=>{const _0x29b77b=_0x473ca4;_0x1ff457[_0x29b77b(0x142)](_0x2aaf35);},'open$':new _0x543202(_0x1fd000=>{const _0x15c8e9=_0x473ca4;let _0x51474e=_0x52625d=>_0x1fd000[_0x15c8e9(0x163)](_0x52625d);_0x1ff457[_0x15c8e9(0x141)](_0x15c8e9(0x148),_0x51474e),_0x5669e5[_0x15c8e9(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x15c8e9(0x14a)](_0x15c8e9(0x148),_0x51474e)));})[_0x473ca4(0x15f)](_0x170ea9()),'close$':new _0x543202(_0x48dddc=>{const _0x560941=_0x473ca4;let _0x2d5531=_0x22a694=>_0x48dddc[_0x560941(0x163)](_0x22a694);_0x1ff457['addEventListener'](_0x560941(0x144),_0x2d5531),_0x5669e5[_0x560941(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x560941(0x14a)](_0x560941(0x144),_0x2d5531)));})['pipe'](_0x170ea9()),'error$':new _0x543202(_0x853607=>{const _0x48af71=_0x473ca4;let _0x53f4ac=_0x2b4543=>_0x853607['next'](_0x2b4543);_0x1ff457[_0x48af71(0x141)](_0x48af71(0x173),_0x53f4ac),_0x5669e5[_0x48af71(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x48af71(0x14a)](_0x48af71(0x173),_0x53f4ac)));})['pipe'](_0x170ea9()),'message$':new _0x543202(_0x43ad72=>{const _0x5ccb40=_0x473ca4;let _0x3c1269=_0x594c67=>_0x43ad72[_0x5ccb40(0x163)](_0x594c67);_0x1ff457[_0x5ccb40(0x141)](_0x5ccb40(0x165),_0x3c1269),_0x5669e5[_0x5ccb40(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x5ccb40(0x14a)](_0x5ccb40(0x165),_0x3c1269)));})['pipe'](_0x170ea9())};}catch(_0x5de2e9){return console['error'](_0x5de2e9),null;}}};O=D([E(0x0,_0x3c1060)],O);function k(_0x3a2880){'@babel/helpers - typeof';const _0x5eca6b=_0x3ed49b;return k=typeof Symbol==_0x5eca6b(0x14d)&&typeof Symbol[_0x5eca6b(0x171)]==_0x5eca6b(0x146)?function(_0x166943){return typeof _0x166943;}:function(_0x40e748){const _0x77d203=_0x5eca6b;return _0x40e748&&typeof Symbol==_0x77d203(0x14d)&&_0x40e748[_0x77d203(0x150)]===Symbol&&_0x40e748!==Symbol[_0x77d203(0x16c)]?_0x77d203(0x146):typeof _0x40e748;},k(_0x3a2880);}function A(_0x142f86,_0x1b278e){const _0x2831a2=_0x3ed49b;if(k(_0x142f86)!=_0x2831a2(0x14f)||!_0x142f86)return _0x142f86;var _0x1a0ccd=_0x142f86[Symbol[_0x2831a2(0x157)]];if(_0x1a0ccd!==void 0x0){var _0x472441=_0x1a0ccd['call'](_0x142f86,_0x1b278e||_0x2831a2(0x164));if(k(_0x472441)!=_0x2831a2(0x14f))return _0x472441;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1b278e===_0x2831a2(0x14e)?String:Number)(_0x142f86);}function j(_0x881ed4){const _0x2e20ec=_0x3ed49b;var _0x545ad8=A(_0x881ed4,_0x2e20ec(0x14e));return k(_0x545ad8)==_0x2e20ec(0x146)?_0x545ad8:_0x545ad8+'';}function M(_0x45e617,_0x22f246,_0x14297c){const _0x135de2=_0x3ed49b;return(_0x22f246=j(_0x22f246))in _0x45e617?Object[_0x135de2(0x16a)](_0x45e617,_0x22f246,{'value':_0x14297c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x45e617[_0x22f246]=_0x14297c,_0x45e617;}let N=class extends _0xea637b{constructor(_0x9a8666=T,_0x47d2db,_0x475b0e){const _0x1d7fe6=_0x3ed49b;super(),this['_config']=_0x9a8666,this[_0x1d7fe6(0x14b)]=_0x47d2db,this['_injector']=_0x475b0e;let {..._0xad2b1f}=_0x592ba3({},T,this[_0x1d7fe6(0x159)]);this['_configService'][_0x1d7fe6(0x160)]('collaboration-client-node.config',_0xad2b1f);}[_0x3ed49b(0x13f)](){this['_registerDependencies']();}[_0x3ed49b(0x16d)](){const _0x4b95ea=_0x3ed49b;_0x3fe490(this[_0x4b95ea(0x16e)],[[_0x5a2968,{'useClass':O}]]);}};M(N,_0x3ed49b(0x152),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),M(N,_0x3ed49b(0x149),C),M(N,_0x3ed49b(0x15e),w),N=D([_0xd9fdd5(_0x253fce,_0x283729,_0x247ccd,_0x28d393),E(0x1,_0x3c1060),E(0x2,_0x1dd1db(_0x1464a6))],N);let P=class extends _0x405c78{constructor(_0x48ac84,_0x179940,_0x3dd094,_0x53991c,_0x719401){const _0x224f03=_0x3ed49b;super(_0x48ac84,_0x179940,_0x3dd094,_0x53991c,_0x719401);let _0x5c9a53=this[_0x224f03(0x14b)]['getConfig'](_0x2b8ddf);this[_0x224f03(0x156)][_0x224f03(0x170)]({'interceptor':(_0x5511a4,_0x114cb0)=>{const _0x4bdc72=_0x224f03;let _0x157b15=_0x5511a4[_0x4bdc72(0x155)];if(_0x5c9a53!=null&&_0x5c9a53[_0x4bdc72(0x162)]){for(let _0x25bc70 in _0x5c9a53[_0x4bdc72(0x162)])_0x157b15[_0x4bdc72(0x158)](_0x25bc70,_0x5c9a53[_0x4bdc72(0x162)][_0x25bc70]);}return _0x114cb0(_0x5511a4);}});}async[_0x3ed49b(0x15b)](_0x3827a7){return this['_doCreateSocket'](_0x3827a7);}};P=D([E(0x0,_0x1dd1db(_0x1464a6)),E(0x1,_0x1dd1db(_0x1d6519)),E(0x2,_0x3c1060),E(0x3,_0x385b76),E(0x4,_0x12d40d)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
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};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0xcfad3e,_0xd2d50d){const _0x1fb8d0=_0x2b48,_0x1db8f3=_0xcfad3e();while(!![]){try{const _0x11fce7=parseInt(_0x1fb8d0(0x220))/0x1+-parseInt(_0x1fb8d0(0x1fc))/0x2+parseInt(_0x1fb8d0(0x20e))/0x3*(parseInt(_0x1fb8d0(0x222))/0x4)+parseInt(_0x1fb8d0(0x1f4))/0x5*(-parseInt(_0x1fb8d0(0x1eb))/0x6)+-parseInt(_0x1fb8d0(0x1de))/0x7*(-parseInt(_0x1fb8d0(0x1df))/0x8)+parseInt(_0x1fb8d0(0x227))/0x9*(parseInt(_0x1fb8d0(0x20f))/0xa)+-parseInt(_0x1fb8d0(0x22b))/0xb;if(_0x11fce7===_0xd2d50d)break;else _0x1db8f3['push'](_0x1db8f3['shift']());}catch(_0x194bc5){_0x1db8f3['push'](_0x1db8f3['shift']());}}}(_0x2c4d,0xc065f),function(_0x598e6e,_0x5d53d4){const _0x532449=_0x2b48;typeof exports==_0x532449(0x22c)&&typeof module<'u'?_0x5d53d4(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x532449(0x1f2)&&define[_0x532449(0x1e8)]?define([_0x532449(0x1fa),_0x532449(0x218),_0x532449(0x1fd),'@univerjs-pro/license',_0x532449(0x1f7),'@univerjs/network',_0x532449(0x1f8)],_0x5d53d4):(_0x598e6e=typeof globalThis<'u'?globalThis:_0x598e6e||self,_0x5d53d4(_0x598e6e[_0x532449(0x1dd)]={},_0x598e6e[_0x532449(0x205)],_0x598e6e[_0x532449(0x1fb)],_0x598e6e[_0x532449(0x20a)],_0x598e6e[_0x532449(0x1fe)],_0x598e6e[_0x532449(0x209)],_0x598e6e[_0x532449(0x1f8)]));}(this,function(_0x275261,_0x33baee,_0x42c9eb,_0x38218c,_0x4f0a9c,_0xd724,_0xf9958){const _0x48fe57=_0x2b48;Object[_0x48fe57(0x1e0)](_0x275261,Symbol[_0x48fe57(0x221)],{'value':_0x48fe57(0x1f9)});var _0x531be8=(_0x18209a,_0x2ccf79)=>()=>(_0x2ccf79||(_0x18209a((_0x2ccf79={'exports':{}})[_0x48fe57(0x1fa)],_0x2ccf79),_0x18209a=null),_0x2ccf79[_0x48fe57(0x1fa)]),_0x2ba5fa=_0x48fe57(0x22a),_0x19db15='1.3.1';let _0x538689={};var _0x27373c=_0x531be8((_0x1dfee6,_0x204bde)=>{const _0x14f09b=_0x48fe57;_0x204bde[_0x14f09b(0x1fa)]=function(){const _0x4b39cb=_0x14f09b;throw Error(_0x4b39cb(0x1dc));};})();function _0x1f0d1f(_0x1912f7,_0x43ae14){return function(_0x5cb74d,_0x26b548){_0x43ae14(_0x5cb74d,_0x26b548,_0x1912f7);};}function _0x2b33af(_0x31cccf,_0xbb62e,_0x5b4c68,_0x487c86){const _0x32a690=_0x48fe57;var _0x9eed97=arguments[_0x32a690(0x21a)],_0x42afd4=_0x9eed97<0x3?_0xbb62e:_0x487c86===null?_0x487c86=Object[_0x32a690(0x20c)](_0xbb62e,_0x5b4c68):_0x487c86,_0x28d548;if(typeof Reflect=='object'&&typeof Reflect[_0x32a690(0x200)]==_0x32a690(0x1f2))_0x42afd4=Reflect[_0x32a690(0x200)](_0x31cccf,_0xbb62e,_0x5b4c68,_0x487c86);else{for(var _0x5319a8=_0x31cccf[_0x32a690(0x21a)]-0x1;_0x5319a8>=0x0;_0x5319a8--)(_0x28d548=_0x31cccf[_0x5319a8])&&(_0x42afd4=(_0x9eed97<0x3?_0x28d548(_0x42afd4):_0x9eed97>0x3?_0x28d548(_0xbb62e,_0x5b4c68,_0x42afd4):_0x28d548(_0xbb62e,_0x5b4c68))||_0x42afd4);}return _0x9eed97>0x3&&_0x42afd4&&Object[_0x32a690(0x1e0)](_0xbb62e,_0x5b4c68,_0x42afd4),_0x42afd4;}let _0x29d974=class extends _0x4f0a9c[_0x48fe57(0x223)]{constructor(_0x3f8592){const _0x33690b=_0x48fe57;super(),this[_0x33690b(0x20d)]=_0x3f8592;}[_0x48fe57(0x215)](_0x46b043){const _0x445da6=_0x48fe57;var _0x168c2d;let _0x22fd68=((_0x168c2d=this['_configService'][_0x445da6(0x21e)](_0x42c9eb[_0x445da6(0x225)]))==null?void 0x0:_0x168c2d['customHeaders'])||{};try{let _0x43d006=new _0x27373c['WebSocket'](_0x46b043,{'headers':{..._0x22fd68}}),_0x10b30f=new _0x4f0a9c[(_0x445da6(0x1ed))]();return{'URL':_0x46b043,'close':(_0x34acfe,_0xd7c512)=>{const _0x31873b=_0x445da6;_0x43d006[_0x31873b(0x21d)](_0x34acfe,_0xd7c512),_0x10b30f['dispose']();},'send':_0x2d4828=>{const _0xd22707=_0x445da6;_0x43d006[_0xd22707(0x208)](_0x2d4828);},'open$':new _0xf9958[(_0x445da6(0x228))](_0x3584a8=>{const _0x121c80=_0x445da6;let _0x433543=_0x9375bb=>_0x3584a8[_0x121c80(0x1db)](_0x9375bb);_0x43d006[_0x121c80(0x229)]('open',_0x433543),_0x10b30f['add']((0x0,_0x4f0a9c[_0x121c80(0x1f6)])(()=>_0x43d006[_0x121c80(0x224)](_0x121c80(0x1e3),_0x433543)));})['pipe']((0x0,_0xf9958['share'])()),'close$':new _0xf9958[(_0x445da6(0x228))](_0xc74477=>{const _0x5f072f=_0x445da6;let _0x3a7bf3=_0x479322=>_0xc74477[_0x5f072f(0x1db)](_0x479322);_0x43d006[_0x5f072f(0x229)](_0x5f072f(0x21d),_0x3a7bf3),_0x10b30f[_0x5f072f(0x1e2)]((0x0,_0x4f0a9c[_0x5f072f(0x1f6)])(()=>_0x43d006[_0x5f072f(0x224)](_0x5f072f(0x21d),_0x3a7bf3)));})[_0x445da6(0x1e4)]((0x0,_0xf9958['share'])()),'error$':new _0xf9958[(_0x445da6(0x228))](_0x58f55f=>{const _0x47775e=_0x445da6;let _0x159210=_0x57f5e2=>_0x58f55f[_0x47775e(0x1db)](_0x57f5e2);_0x43d006[_0x47775e(0x229)]('error',_0x159210),_0x10b30f[_0x47775e(0x1e2)]((0x0,_0x4f0a9c[_0x47775e(0x1f6)])(()=>_0x43d006[_0x47775e(0x224)](_0x47775e(0x202),_0x159210)));})['pipe']((0x0,_0xf9958['share'])()),'message$':new _0xf9958[(_0x445da6(0x228))](_0x1ba8be=>{const _0x20d0f9=_0x445da6;let _0xa0da42=_0x19a1e8=>_0x1ba8be[_0x20d0f9(0x1db)](_0x19a1e8);_0x43d006[_0x20d0f9(0x229)](_0x20d0f9(0x207),_0xa0da42),_0x10b30f[_0x20d0f9(0x1e2)]((0x0,_0x4f0a9c[_0x20d0f9(0x1f6)])(()=>_0x43d006[_0x20d0f9(0x224)](_0x20d0f9(0x207),_0xa0da42)));})[_0x445da6(0x1e4)]((0x0,_0xf9958[_0x445da6(0x214)])())};}catch(_0x3bf289){return console['error'](_0x3bf289),null;}}};_0x29d974=_0x2b33af([_0x1f0d1f(0x0,_0x4f0a9c['IConfigService'])],_0x29d974);function _0xc5f758(_0x37a95e){'@babel/helpers - typeof';const _0x489107=_0x48fe57;return _0xc5f758=typeof Symbol==_0x489107(0x1f2)&&typeof Symbol[_0x489107(0x216)]==_0x489107(0x219)?function(_0x62e74f){return typeof _0x62e74f;}:function(_0x27ad41){const _0x3bed87=_0x489107;return _0x27ad41&&typeof Symbol==_0x3bed87(0x1f2)&&_0x27ad41['constructor']===Symbol&&_0x27ad41!==Symbol['prototype']?_0x3bed87(0x219):typeof _0x27ad41;},_0xc5f758(_0x37a95e);}function _0x11a466(_0x5685a1,_0x1e758f){const _0x54fdc4=_0x48fe57;if(_0xc5f758(_0x5685a1)!=_0x54fdc4(0x22c)||!_0x5685a1)return _0x5685a1;var _0x4773ef=_0x5685a1[Symbol[_0x54fdc4(0x1e7)]];if(_0x4773ef!==void 0x0){var _0x5813d7=_0x4773ef[_0x54fdc4(0x21f)](_0x5685a1,_0x1e758f||_0x54fdc4(0x1ec));if(_0xc5f758(_0x5813d7)!=_0x54fdc4(0x22c))return _0x5813d7;throw TypeError(_0x54fdc4(0x1f1));}return(_0x1e758f===_0x54fdc4(0x217)?String:Number)(_0x5685a1);}function _0x904c01(_0x7d1b55){const _0x1d87f7=_0x48fe57;var _0x29ec98=_0x11a466(_0x7d1b55,_0x1d87f7(0x217));return _0xc5f758(_0x29ec98)==_0x1d87f7(0x219)?_0x29ec98:_0x29ec98+'';}function _0x1ed979(_0x3009da,_0x50541f,_0x478ade){const _0x3d0485=_0x48fe57;return(_0x50541f=_0x904c01(_0x50541f))in _0x3009da?Object[_0x3d0485(0x1e0)](_0x3009da,_0x50541f,{'value':_0x478ade,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3009da[_0x50541f]=_0x478ade,_0x3009da;}let _0x567e25=class extends _0x4f0a9c[_0x48fe57(0x1ee)]{constructor(_0x39cb39=_0x538689,_0x369bef,_0xe8c047){const _0x1f3ad4=_0x48fe57;super(),this[_0x1f3ad4(0x203)]=_0x39cb39,this[_0x1f3ad4(0x20d)]=_0x369bef,this['_injector']=_0xe8c047;let {..._0x3c812f}=(0x0,_0x4f0a9c[_0x1f3ad4(0x22d)])({},_0x538689,this['_config']);this[_0x1f3ad4(0x20d)][_0x1f3ad4(0x1e1)](_0x1f3ad4(0x1f5),_0x3c812f);}['onStarting'](){this['_registerDependencies']();}['_registerDependencies'](){const _0x484e98=_0x48fe57;(0x0,_0x4f0a9c['registerDependencies'])(this[_0x484e98(0x20b)],[[_0xd724[_0x484e98(0x213)],{'useClass':_0x29d974}]]);}};_0x1ed979(_0x567e25,_0x48fe57(0x1e5),_0x48fe57(0x1f3)),_0x1ed979(_0x567e25,_0x48fe57(0x211),_0x2ba5fa),_0x1ed979(_0x567e25,'version',_0x19db15),_0x567e25=_0x2b33af([(0x0,_0x4f0a9c[_0x48fe57(0x212)])(_0x38218c['UniverLicensePlugin'],_0xd724[_0x48fe57(0x210)],_0x33baee['UniverCollaborationPlugin'],_0x42c9eb['UniverCollaborationClientPlugin']),_0x1f0d1f(0x1,_0x4f0a9c[_0x48fe57(0x21c)]),_0x1f0d1f(0x2,(0x0,_0x4f0a9c[_0x48fe57(0x1e9)])(_0x4f0a9c[_0x48fe57(0x204)]))],_0x567e25);let _0x286def=class extends _0x42c9eb[_0x48fe57(0x201)]{constructor(_0x24d5c3,_0x5d7b49,_0xaf3fe6,_0x32bcf6,_0x486010){const _0xc6e8fa=_0x48fe57;super(_0x24d5c3,_0x5d7b49,_0xaf3fe6,_0x32bcf6,_0x486010);let _0x32ed5d=this['_configService'][_0xc6e8fa(0x21e)](_0x42c9eb[_0xc6e8fa(0x225)]);this[_0xc6e8fa(0x1ea)]['registerHTTPInterceptor']({'interceptor':(_0x3d2a2c,_0x56a1a4)=>{const _0x2ddf1f=_0xc6e8fa;let _0x1d8ae1=_0x3d2a2c[_0x2ddf1f(0x206)];if(_0x32ed5d!=null&&_0x32ed5d['customHeaders']){for(let _0x4dbd68 in _0x32ed5d[_0x2ddf1f(0x21b)])_0x1d8ae1['set'](_0x4dbd68,_0x32ed5d['customHeaders'][_0x4dbd68]);}return _0x56a1a4(_0x3d2a2c);}});}async[_0x48fe57(0x215)](_0x3eb8c8){const _0x5ec966=_0x48fe57;return this[_0x5ec966(0x1ff)](_0x3eb8c8);}};_0x286def=_0x2b33af([_0x1f0d1f(0x0,(0x0,_0x4f0a9c[_0x48fe57(0x1e9)])(_0x4f0a9c[_0x48fe57(0x204)])),_0x1f0d1f(0x1,(0x0,_0x4f0a9c[_0x48fe57(0x1e9)])(_0xd724['HTTPService'])),_0x1f0d1f(0x2,_0x4f0a9c[_0x48fe57(0x21c)]),_0x1f0d1f(0x3,_0x4f0a9c[_0x48fe57(0x1ef)]),_0x1f0d1f(0x4,_0x33baee[_0x48fe57(0x226)])],_0x286def),Object[_0x48fe57(0x1e0)](_0x275261,_0x48fe57(0x1f0),{'enumerable':!0x0,'get':function(){return _0x286def;}}),Object[_0x48fe57(0x1e0)](_0x275261,_0x48fe57(0x1e6),{'enumerable':!0x0,'get':function(){return _0x567e25;}});}));function _0x2b48(_0x379a1c,_0x2c00fa){_0x379a1c=_0x379a1c-0x1db;const _0x2c4df9=_0x2c4d();let _0x2b48da=_0x2c4df9[_0x379a1c];return _0x2b48da;}function _0x2c4d(){const _0x1998b1=['send','UniverNetwork','UniverProLicense','_injector','getOwnPropertyDescriptor','_configService','1049541aIGBzc','20LDbiFH','UniverNetworkPlugin','packageName','DependentOn','ISocketService','share','createSocket','iterator','string','@univerjs-pro/collaboration','symbol','length','customHeaders','IConfigService','close','getConfig','call','578070JDVgEx','toStringTag','8eTARUx','Disposable','removeEventListener','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','ISnapshotServerService','4334139JDUeQL','Observable','addEventListener','@univerjs-pro/collaboration-client-node','15490123YKovNp','object','merge','next','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','UniverProCollaborationClientNode','162862pTixnh','424MLPVIF','defineProperty','setConfig','add','open','pipe','pluginName','UniverCollaborationClientNodePlugin','toPrimitive','amd','Inject','_httpService','8478AmBLoo','default','DisposableCollection','Plugin','ILogService','NodeCollaborationSocketService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','function','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','3470oFwSKN','collaboration-client-node.config','toDisposable','@univerjs/core','rxjs','Module','exports','UniverProCollaborationClient','594252gXUAYm','@univerjs-pro/collaboration-client','UniverCore','_doCreateSocket','decorate','CollaborationSocketService','error','_config','Injector','UniverProCollaboration','headers','message'];_0x2c4d=function(){return _0x1998b1;};return _0x2c4d();}
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();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.3.1",
3
+ "version": "1.5.0",
4
4
  "private": false,
5
5
  "description": "Node.js collaboration client plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -51,27 +51,27 @@
51
51
  "rxjs": ">=7.0.0"
52
52
  },
53
53
  "dependencies": {
54
- "@univerjs-pro/collaboration": "1.3.1",
55
- "@univerjs-pro/collaboration-client": "1.3.1",
56
- "@univerjs-pro/license": "1.3.1",
57
- "@univerjs/core": "1.3.1",
58
- "@univerjs/network": "1.3.1",
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",
59
59
  "ws": "8.21.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/ws": "8.18.1",
63
- "@univerjs-infra/shared": "1.3.1",
63
+ "@univerjs-infra/shared": "1.5.0",
64
64
  "rxjs": "7.8.2",
65
- "typescript": "^6.0.3",
66
- "vitest": "^5.0.4"
65
+ "tsrs": "0.23.0-ts7.1.0-beta",
66
+ "vitest": "^5.1.0"
67
67
  },
68
68
  "scripts": {
69
69
  "test": "vitest run",
70
70
  "test:watch": "vitest",
71
71
  "coverage": "vitest run --coverage",
72
- "typecheck": "tsc --noEmit",
72
+ "typecheck": "tsrs --noEmit",
73
73
  "build:bundle": "univer-cli build --nodeFirst",
74
- "build:types": "tsc -p tsconfig.node.json",
74
+ "build:types": "tsrs -p tsconfig.node.json",
75
75
  "build": "pnpm run build:bundle && pnpm run build:types"
76
76
  },
77
77
  "module": "./lib/es/index.js"