@univerjs-pro/collaboration-client-node 1.0.0-alpha.1 → 1.0.0-insiders.20260701-0ef51b0

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 _0x500098=_0x128e;(function(_0x12b4d4,_0x3ee7f2){const _0x1bfc49=_0x128e,_0x5cc45f=_0x12b4d4();while(!![]){try{const _0x1def23=-parseInt(_0x1bfc49(0x13a))/0x1*(parseInt(_0x1bfc49(0x145))/0x2)+-parseInt(_0x1bfc49(0x137))/0x3*(parseInt(_0x1bfc49(0x164))/0x4)+-parseInt(_0x1bfc49(0x13b))/0x5+-parseInt(_0x1bfc49(0x148))/0x6*(parseInt(_0x1bfc49(0x151))/0x7)+parseInt(_0x1bfc49(0x163))/0x8+-parseInt(_0x1bfc49(0x15d))/0x9*(parseInt(_0x1bfc49(0x14b))/0xa)+parseInt(_0x1bfc49(0x173))/0xb;if(_0x1def23===_0x3ee7f2)break;else _0x5cc45f['push'](_0x5cc45f['shift']());}catch(_0x29e2e9){_0x5cc45f['push'](_0x5cc45f['shift']());}}}(_0x28e0,0xa110c),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x500098(0x157)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/network'),r=require('rxjs'),i=require('ws'),a=require('@univerjs-pro/collaboration');const o='collaboration-client-node.config',s={};var c=_0x500098(0x169),l=_0x500098(0x149);function u(_0x4af5cc,_0xcbea84){return function(_0x56216c,_0x3d2e2d){_0xcbea84(_0x56216c,_0x3d2e2d,_0x4af5cc);};}function d(_0x760e2,_0x19aae1,_0x45d979,_0x3e792b){const _0x7f9b4e=_0x500098;var _0x3906b8=arguments[_0x7f9b4e(0x150)],_0x2f1ead=_0x3906b8<0x3?_0x19aae1:_0x3e792b===null?_0x3e792b=Object['getOwnPropertyDescriptor'](_0x19aae1,_0x45d979):_0x3e792b,_0x4816df;if(typeof Reflect==_0x7f9b4e(0x154)&&typeof Reflect[_0x7f9b4e(0x166)]==_0x7f9b4e(0x14a))_0x2f1ead=Reflect[_0x7f9b4e(0x166)](_0x760e2,_0x19aae1,_0x45d979,_0x3e792b);else{for(var _0x1a8ab8=_0x760e2[_0x7f9b4e(0x150)]-0x1;_0x1a8ab8>=0x0;_0x1a8ab8--)(_0x4816df=_0x760e2[_0x1a8ab8])&&(_0x2f1ead=(_0x3906b8<0x3?_0x4816df(_0x2f1ead):_0x3906b8>0x3?_0x4816df(_0x19aae1,_0x45d979,_0x2f1ead):_0x4816df(_0x19aae1,_0x45d979))||_0x2f1ead);}return _0x3906b8>0x3&&_0x2f1ead&&Object[_0x7f9b4e(0x143)](_0x19aae1,_0x45d979,_0x2f1ead),_0x2f1ead;}let f=class extends t[_0x500098(0x15b)]{constructor(_0x1bf418){const _0xf5e4fa=_0x500098;super(),this[_0xf5e4fa(0x16f)]=_0x1bf418;}[_0x500098(0x14e)](_0x5a2672){const _0x13cd5e=_0x500098;var _0x15adeb;let _0x1b1529=((_0x15adeb=this[_0x13cd5e(0x16f)][_0x13cd5e(0x13d)](e[_0x13cd5e(0x158)]))==null?void 0x0:_0x15adeb[_0x13cd5e(0x159)])||{};try{let _0x3d4ae8=new i['WebSocket'](_0x5a2672,{'headers':{..._0x1b1529}}),_0x424116=new t['DisposableCollection']();return{'URL':_0x5a2672,'close':(_0x479144,_0x4d866f)=>{const _0x306c8a=_0x13cd5e;_0x3d4ae8[_0x306c8a(0x177)](_0x479144,_0x4d866f),_0x424116[_0x306c8a(0x171)]();},'send':_0x223b5e=>{const _0x54b5cc=_0x13cd5e;_0x3d4ae8[_0x54b5cc(0x160)](_0x223b5e);},'open$':new r['Observable'](_0x260751=>{const _0x2b6399=_0x13cd5e;let _0x3da87f=_0x358876=>_0x260751['next'](_0x358876);_0x3d4ae8[_0x2b6399(0x138)](_0x2b6399(0x136),_0x3da87f),_0x424116[_0x2b6399(0x135)]((0x0,t[_0x2b6399(0x162)])(()=>_0x3d4ae8[_0x2b6399(0x174)](_0x2b6399(0x136),_0x3da87f)));})[_0x13cd5e(0x16e)]((0x0,r[_0x13cd5e(0x15e)])()),'close$':new r[(_0x13cd5e(0x140))](_0x329412=>{const _0x53cb21=_0x13cd5e;let _0x385248=_0x156624=>_0x329412[_0x53cb21(0x165)](_0x156624);_0x3d4ae8[_0x53cb21(0x138)]('close',_0x385248),_0x424116[_0x53cb21(0x135)]((0x0,t[_0x53cb21(0x162)])(()=>_0x3d4ae8[_0x53cb21(0x174)]('close',_0x385248)));})[_0x13cd5e(0x16e)]((0x0,r['share'])()),'error$':new r['Observable'](_0x3a22d9=>{const _0x327178=_0x13cd5e;let _0x5988b1=_0xc77a2a=>_0x3a22d9['next'](_0xc77a2a);_0x3d4ae8[_0x327178(0x138)](_0x327178(0x16a),_0x5988b1),_0x424116[_0x327178(0x135)]((0x0,t[_0x327178(0x162)])(()=>_0x3d4ae8[_0x327178(0x174)](_0x327178(0x16a),_0x5988b1)));})[_0x13cd5e(0x16e)]((0x0,r[_0x13cd5e(0x15e)])()),'message$':new r[(_0x13cd5e(0x140))](_0x3216c3=>{const _0x3f35d0=_0x13cd5e;let _0x32c50d=_0x282430=>_0x3216c3[_0x3f35d0(0x165)](_0x282430);_0x3d4ae8[_0x3f35d0(0x138)](_0x3f35d0(0x16d),_0x32c50d),_0x424116[_0x3f35d0(0x135)]((0x0,t[_0x3f35d0(0x162)])(()=>_0x3d4ae8['removeEventListener']('message',_0x32c50d)));})[_0x13cd5e(0x16e)]((0x0,r[_0x13cd5e(0x15e)])())};}catch(_0x355c22){return console[_0x13cd5e(0x16a)](_0x355c22),null;}}};f=d([u(0x0,t['IConfigService'])],f);function p(_0x32e77d){'@babel/helpers - typeof';const _0x2d6118=_0x500098;return p=typeof Symbol==_0x2d6118(0x14a)&&typeof Symbol[_0x2d6118(0x14d)]==_0x2d6118(0x15a)?function(_0x1fe5cc){return typeof _0x1fe5cc;}:function(_0x89b8b7){const _0x2f43f9=_0x2d6118;return _0x89b8b7&&typeof Symbol=='function'&&_0x89b8b7[_0x2f43f9(0x15c)]===Symbol&&_0x89b8b7!==Symbol[_0x2f43f9(0x16c)]?_0x2f43f9(0x15a):typeof _0x89b8b7;},p(_0x32e77d);}function m(_0x14e86a,_0x2892b0){const _0xfa7d43=_0x500098;if(p(_0x14e86a)!=_0xfa7d43(0x154)||!_0x14e86a)return _0x14e86a;var _0x5661e3=_0x14e86a[Symbol['toPrimitive']];if(_0x5661e3!==void 0x0){var _0x5b69c3=_0x5661e3['call'](_0x14e86a,_0x2892b0||'default');if(p(_0x5b69c3)!=_0xfa7d43(0x154))return _0x5b69c3;throw TypeError(_0xfa7d43(0x142));}return(_0x2892b0===_0xfa7d43(0x13c)?String:Number)(_0x14e86a);}function h(_0x1f1b63){const _0x5701fc=_0x500098;var _0x1701b9=m(_0x1f1b63,_0x5701fc(0x13c));return p(_0x1701b9)==_0x5701fc(0x15a)?_0x1701b9:_0x1701b9+'';}function _0x28e0(){const _0x874bfe=['12835670vzencN','packageName','iterator','createSocket','_injector','length','7IMfLmv','ISnapshotServerService','registerDependencies','object','Injector','setConfig','Module','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','customHeaders','symbol','Disposable','constructor','9AxmsYA','share','headers','send','set','toDisposable','1368960eqrkzE','870388izaqUs','next','decorate','UniverCollaborationClientNodePlugin','onStarting','@univerjs-pro/collaboration-client-node','error','Inject','prototype','message','pipe','_configService','DependentOn','dispose','_httpService','43560814ZIFwcJ','removeEventListener','IConfigService','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','close','CollaborationSocketService','add','open','3rUnNrf','addEventListener','COLLABORATION_CLIENT_NODE_CONFIG_KEY','1703AhRccl','2694120eionhq','string','getConfig','_registerDependencies','pluginName','Observable','NodeCollaborationSocketService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','defineProperty','_doCreateSocket','922NcJkwg','ILogService','UniverCollaborationClientPlugin','3878394QpPOCu','1.0.0-alpha.1','function'];_0x28e0=function(){return _0x874bfe;};return _0x28e0();}function g(_0x3ff0dc,_0x33fd4a,_0x1a46e2){return(_0x33fd4a=h(_0x33fd4a))in _0x3ff0dc?Object['defineProperty'](_0x3ff0dc,_0x33fd4a,{'value':_0x1a46e2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3ff0dc[_0x33fd4a]=_0x1a46e2,_0x3ff0dc;}let _=class extends t['Plugin']{constructor(_0x442984=s,_0xb7b7ea,_0x16957a){const _0x247081=_0x500098;super(),this[_0x247081(0x16f)]=_0xb7b7ea,this[_0x247081(0x14f)]=_0x16957a,this[_0x247081(0x16f)][_0x247081(0x156)](o,_0x442984);}[_0x500098(0x168)](){const _0x34c062=_0x500098;this[_0x34c062(0x13e)]();}[_0x500098(0x13e)](){const _0x167408=_0x500098;(0x0,t[_0x167408(0x153)])(this['_injector'],[[n['ISocketService'],{'useClass':f}]]);}};g(_,_0x500098(0x13f),_0x500098(0x176)),g(_,_0x500098(0x14c),c),g(_,'version',l),_=d([(0x0,t[_0x500098(0x170)])(e[_0x500098(0x147)]),u(0x1,t[_0x500098(0x175)]),u(0x2,(0x0,t[_0x500098(0x16b)])(t['Injector']))],_);let v=class extends e[_0x500098(0x134)]{constructor(_0x3217f4,_0x358abe,_0x45b254,_0x21bf28,_0x4d6bbe){const _0xa0693f=_0x500098;super(_0x3217f4,_0x358abe,_0x45b254,_0x21bf28,_0x4d6bbe);let _0x5d0175=this[_0xa0693f(0x16f)]['getConfig'](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0xa0693f(0x172)]['registerHTTPInterceptor']({'interceptor':(_0x1ef938,_0x56dbb8)=>{const _0xd25a7f=_0xa0693f;let _0x3053ae=_0x1ef938[_0xd25a7f(0x15f)];if(_0x5d0175!=null&&_0x5d0175[_0xd25a7f(0x159)]){for(let _0x163be4 in _0x5d0175[_0xd25a7f(0x159)])_0x3053ae[_0xd25a7f(0x161)](_0x163be4,_0x5d0175[_0xd25a7f(0x159)][_0x163be4]);}return _0x56dbb8(_0x1ef938);}});}async[_0x500098(0x14e)](_0x460eb0){const _0x5149c6=_0x500098;return this[_0x5149c6(0x144)](_0x460eb0);}};function _0x128e(_0x4b5edd,_0x4027e8){_0x4b5edd=_0x4b5edd-0x134;const _0x28e05c=_0x28e0();let _0x128e35=_0x28e05c[_0x4b5edd];return _0x128e35;}v=d([u(0x0,(0x0,t['Inject'])(t[_0x500098(0x155)])),u(0x1,(0x0,t['Inject'])(n['HTTPService'])),u(0x2,t[_0x500098(0x175)]),u(0x3,t[_0x500098(0x146)]),u(0x4,a[_0x500098(0x152)])],v),exports[_0x500098(0x139)]=o,Object['defineProperty'](exports,_0x500098(0x141),{'enumerable':!0x0,'get':function(){return v;}}),Object['defineProperty'](exports,_0x500098(0x167),{'enumerable':!0x0,'get':function(){return _;}});
1
+ const _0x517ce3=_0x4386;(function(_0x503d85,_0x5ada37){const _0x1010b9=_0x4386,_0x42cd5d=_0x503d85();while(!![]){try{const _0x128d8a=-parseInt(_0x1010b9(0x1e9))/0x1*(-parseInt(_0x1010b9(0x1f3))/0x2)+-parseInt(_0x1010b9(0x201))/0x3*(-parseInt(_0x1010b9(0x1d8))/0x4)+parseInt(_0x1010b9(0x209))/0x5+-parseInt(_0x1010b9(0x218))/0x6*(-parseInt(_0x1010b9(0x203))/0x7)+parseInt(_0x1010b9(0x1ea))/0x8+parseInt(_0x1010b9(0x205))/0x9*(parseInt(_0x1010b9(0x1eb))/0xa)+-parseInt(_0x1010b9(0x1fc))/0xb;if(_0x128d8a===_0x5ada37)break;else _0x42cd5d['push'](_0x42cd5d['shift']());}catch(_0x57cb5f){_0x42cd5d['push'](_0x42cd5d['shift']());}}}(_0x20fd,0xd71b7),Object['defineProperty'](exports,Symbol[_0x517ce3(0x20e)],{'value':_0x517ce3(0x1d6)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/network'),r=require('rxjs'),i=require('ws'),a=require('@univerjs-pro/collaboration');function _0x4386(_0x1a7093,_0x311a3d){_0x1a7093=_0x1a7093-0x1d5;const _0x20fd81=_0x20fd();let _0x4386cd=_0x20fd81[_0x1a7093];return _0x4386cd;}const o=_0x517ce3(0x20f),s={};var c=_0x517ce3(0x1dd),l=_0x517ce3(0x1f5);function u(_0x3c9fe1,_0x3fdadc){return function(_0x498029,_0xb1c206){_0x3fdadc(_0x498029,_0xb1c206,_0x3c9fe1);};}function d(_0xfed6ad,_0xb56313,_0x396144,_0x202b3d){const _0x22f10c=_0x517ce3;var _0x4157fe=arguments[_0x22f10c(0x1df)],_0x133f89=_0x4157fe<0x3?_0xb56313:_0x202b3d===null?_0x202b3d=Object[_0x22f10c(0x1ec)](_0xb56313,_0x396144):_0x202b3d,_0x26b0f1;if(typeof Reflect=='object'&&typeof Reflect[_0x22f10c(0x1f2)]=='function')_0x133f89=Reflect['decorate'](_0xfed6ad,_0xb56313,_0x396144,_0x202b3d);else{for(var _0x4a3f2e=_0xfed6ad['length']-0x1;_0x4a3f2e>=0x0;_0x4a3f2e--)(_0x26b0f1=_0xfed6ad[_0x4a3f2e])&&(_0x133f89=(_0x4157fe<0x3?_0x26b0f1(_0x133f89):_0x4157fe>0x3?_0x26b0f1(_0xb56313,_0x396144,_0x133f89):_0x26b0f1(_0xb56313,_0x396144))||_0x133f89);}return _0x4157fe>0x3&&_0x133f89&&Object[_0x22f10c(0x1e6)](_0xb56313,_0x396144,_0x133f89),_0x133f89;}let f=class extends t['Disposable']{constructor(_0x981bc2){const _0x1e478c=_0x517ce3;super(),this[_0x1e478c(0x1dc)]=_0x981bc2;}[_0x517ce3(0x1ed)](_0x2af055){const _0x14d000=_0x517ce3;var _0x2fd4d9;let _0x2718df=((_0x2fd4d9=this[_0x14d000(0x1dc)][_0x14d000(0x219)](e[_0x14d000(0x1f7)]))==null?void 0x0:_0x2fd4d9[_0x14d000(0x21b)])||{};try{let _0x1b4068=new i[(_0x14d000(0x200))](_0x2af055,{'headers':{..._0x2718df}}),_0x13a8dd=new t[(_0x14d000(0x1e4))]();return{'URL':_0x2af055,'close':(_0x32ec05,_0x69ddc4)=>{const _0x5812a6=_0x14d000;_0x1b4068['close'](_0x32ec05,_0x69ddc4),_0x13a8dd[_0x5812a6(0x208)]();},'send':_0x86c144=>{const _0x5854f0=_0x14d000;_0x1b4068[_0x5854f0(0x1ef)](_0x86c144);},'open$':new r['Observable'](_0x23bd89=>{const _0x4e8134=_0x14d000;let _0x8e71bd=_0x404bad=>_0x23bd89[_0x4e8134(0x1ee)](_0x404bad);_0x1b4068['addEventListener'](_0x4e8134(0x202),_0x8e71bd),_0x13a8dd['add']((0x0,t[_0x4e8134(0x217)])(()=>_0x1b4068['removeEventListener'](_0x4e8134(0x202),_0x8e71bd)));})[_0x14d000(0x1ff)]((0x0,r['share'])()),'close$':new r[(_0x14d000(0x1de))](_0x4766c8=>{const _0x1ef8fa=_0x14d000;let _0x573612=_0x5cd92c=>_0x4766c8['next'](_0x5cd92c);_0x1b4068[_0x1ef8fa(0x1f6)](_0x1ef8fa(0x1d9),_0x573612),_0x13a8dd[_0x1ef8fa(0x1f8)]((0x0,t[_0x1ef8fa(0x217)])(()=>_0x1b4068[_0x1ef8fa(0x212)](_0x1ef8fa(0x1d9),_0x573612)));})[_0x14d000(0x1ff)]((0x0,r[_0x14d000(0x20a)])()),'error$':new r[(_0x14d000(0x1de))](_0x4ce7c8=>{const _0x120ad3=_0x14d000;let _0x499cd2=_0x28f61f=>_0x4ce7c8[_0x120ad3(0x1ee)](_0x28f61f);_0x1b4068['addEventListener'](_0x120ad3(0x204),_0x499cd2),_0x13a8dd[_0x120ad3(0x1f8)]((0x0,t['toDisposable'])(()=>_0x1b4068[_0x120ad3(0x212)]('error',_0x499cd2)));})[_0x14d000(0x1ff)]((0x0,r[_0x14d000(0x20a)])()),'message$':new r[(_0x14d000(0x1de))](_0x4f4892=>{const _0x3c75e2=_0x14d000;let _0x260e64=_0xe7c29e=>_0x4f4892[_0x3c75e2(0x1ee)](_0xe7c29e);_0x1b4068[_0x3c75e2(0x1f6)]('message',_0x260e64),_0x13a8dd['add']((0x0,t['toDisposable'])(()=>_0x1b4068[_0x3c75e2(0x212)](_0x3c75e2(0x207),_0x260e64)));})[_0x14d000(0x1ff)]((0x0,r[_0x14d000(0x20a)])())};}catch(_0x4eb0e8){return console['error'](_0x4eb0e8),null;}}};f=d([u(0x0,t[_0x517ce3(0x216)])],f);function p(_0x50618c){'@babel/helpers - typeof';const _0x3a86b6=_0x517ce3;return p=typeof Symbol==_0x3a86b6(0x1f0)&&typeof Symbol['iterator']==_0x3a86b6(0x1fe)?function(_0x121845){return typeof _0x121845;}:function(_0x297a91){const _0x1806a8=_0x3a86b6;return _0x297a91&&typeof Symbol==_0x1806a8(0x1f0)&&_0x297a91[_0x1806a8(0x214)]===Symbol&&_0x297a91!==Symbol[_0x1806a8(0x20c)]?'symbol':typeof _0x297a91;},p(_0x50618c);}function _0x20fd(){const _0x5147fe=['add','ISocketService','object','pluginName','50738556mxjaXQ','registerDependencies','symbol','pipe','WebSocket','3CeJxIw','open','5255537wgxvHg','error','1026UTHAbd','setConfig','message','dispose','2185770jshodw','share','version','prototype','ILogService','toStringTag','collaboration-client-node.config','_httpService','COLLABORATION_CLIENT_NODE_CONFIG_KEY','removeEventListener','Plugin','constructor','Injector','IConfigService','toDisposable','6xvLmjk','getConfig','ISnapshotServerService','customHeaders','_injector','Inject','call','Module','string','5696884kJoTsT','close','packageName','UniverCollaborationClientNodePlugin','_configService','@univerjs-pro/collaboration-client-node','Observable','length','set','toPrimitive','headers','default','DisposableCollection','HTTPService','defineProperty','DependentOn','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1weFDho','8688856wQYunW','130270NCNlJs','getOwnPropertyDescriptor','createSocket','next','send','function','_registerDependencies','decorate','620648YCgHfy','onStarting','1.0.0-insiders.20260701-0ef51b0','addEventListener','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'];_0x20fd=function(){return _0x5147fe;};return _0x20fd();}function m(_0x452ae9,_0x335f3f){const _0x387843=_0x517ce3;if(p(_0x452ae9)!=_0x387843(0x1fa)||!_0x452ae9)return _0x452ae9;var _0x35a567=_0x452ae9[Symbol[_0x387843(0x1e1)]];if(_0x35a567!==void 0x0){var _0x13ce0b=_0x35a567[_0x387843(0x1d5)](_0x452ae9,_0x335f3f||_0x387843(0x1e3));if(p(_0x13ce0b)!='object')return _0x13ce0b;throw TypeError(_0x387843(0x1e8));}return(_0x335f3f===_0x387843(0x1d7)?String:Number)(_0x452ae9);}function h(_0x53e1d2){const _0x32807e=_0x517ce3;var _0x43bc1f=m(_0x53e1d2,_0x32807e(0x1d7));return p(_0x43bc1f)==_0x32807e(0x1fe)?_0x43bc1f:_0x43bc1f+'';}function g(_0x168205,_0x371d11,_0x3375e4){return(_0x371d11=h(_0x371d11))in _0x168205?Object['defineProperty'](_0x168205,_0x371d11,{'value':_0x3375e4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x168205[_0x371d11]=_0x3375e4,_0x168205;}let _=class extends t[_0x517ce3(0x213)]{constructor(_0x57b5df=s,_0x14e20b,_0x346578){const _0x34a316=_0x517ce3;super(),this[_0x34a316(0x1dc)]=_0x14e20b,this[_0x34a316(0x21c)]=_0x346578,this[_0x34a316(0x1dc)][_0x34a316(0x206)](o,_0x57b5df);}[_0x517ce3(0x1f4)](){const _0xae6298=_0x517ce3;this[_0xae6298(0x1f1)]();}[_0x517ce3(0x1f1)](){const _0x5a5e2f=_0x517ce3;(0x0,t[_0x5a5e2f(0x1fd)])(this['_injector'],[[n[_0x5a5e2f(0x1f9)],{'useClass':f}]]);}};g(_,_0x517ce3(0x1fb),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),g(_,_0x517ce3(0x1da),c),g(_,_0x517ce3(0x20b),l),_=d([(0x0,t[_0x517ce3(0x1e7)])(e['UniverCollaborationClientPlugin']),u(0x1,t[_0x517ce3(0x216)]),u(0x2,(0x0,t[_0x517ce3(0x21d)])(t[_0x517ce3(0x215)]))],_);let v=class extends e['CollaborationSocketService']{constructor(_0x57eecb,_0x1942da,_0x429ad2,_0x75f29,_0x42b985){const _0x297c2f=_0x517ce3;super(_0x57eecb,_0x1942da,_0x429ad2,_0x75f29,_0x42b985);let _0x3e2d69=this['_configService'][_0x297c2f(0x219)](e[_0x297c2f(0x1f7)]);this[_0x297c2f(0x210)]['registerHTTPInterceptor']({'interceptor':(_0x408f16,_0x70b6a3)=>{const _0x210a3d=_0x297c2f;let _0x1cc01e=_0x408f16[_0x210a3d(0x1e2)];if(_0x3e2d69!=null&&_0x3e2d69['customHeaders']){for(let _0x5b5d5b in _0x3e2d69['customHeaders'])_0x1cc01e[_0x210a3d(0x1e0)](_0x5b5d5b,_0x3e2d69[_0x210a3d(0x21b)][_0x5b5d5b]);}return _0x70b6a3(_0x408f16);}});}async[_0x517ce3(0x1ed)](_0x33f93b){return this['_doCreateSocket'](_0x33f93b);}};v=d([u(0x0,(0x0,t[_0x517ce3(0x21d)])(t[_0x517ce3(0x215)])),u(0x1,(0x0,t[_0x517ce3(0x21d)])(n[_0x517ce3(0x1e5)])),u(0x2,t[_0x517ce3(0x216)]),u(0x3,t[_0x517ce3(0x20d)]),u(0x4,a[_0x517ce3(0x21a)])],v),exports[_0x517ce3(0x211)]=o,Object[_0x517ce3(0x1e6)](exports,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return v;}}),Object['defineProperty'](exports,_0x517ce3(0x1db),{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xac92aa=_0x371d;(function(_0x24f3e4,_0x2015d1){const _0x14d61a=_0x371d,_0x6835e5=_0x24f3e4();while(!![]){try{const _0x5562af=parseInt(_0x14d61a(0x186))/0x1*(-parseInt(_0x14d61a(0x17e))/0x2)+parseInt(_0x14d61a(0x1a6))/0x3*(parseInt(_0x14d61a(0x19d))/0x4)+parseInt(_0x14d61a(0x192))/0x5+parseInt(_0x14d61a(0x188))/0x6*(parseInt(_0x14d61a(0x182))/0x7)+parseInt(_0x14d61a(0x187))/0x8*(parseInt(_0x14d61a(0x178))/0x9)+-parseInt(_0x14d61a(0x194))/0xa+-parseInt(_0x14d61a(0x1a4))/0xb;if(_0x5562af===_0x2015d1)break;else _0x6835e5['push'](_0x6835e5['shift']());}catch(_0x76a757){_0x6835e5['push'](_0x6835e5['shift']());}}}(_0x2854,0x5e1ec));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x94756f,CollaborationSocketService as _0x2b1e9a,UniverCollaborationClientPlugin as _0xa1d3ad}from'@univerjs-pro/collaboration-client';import{DependentOn as _0xf9a28d,Disposable as _0x4407e6,DisposableCollection as _0x41cb13,IConfigService as _0x396948,ILogService as _0x657ce6,Inject as _0x1f5758,Injector as _0x51b714,Plugin as _0x416e72,registerDependencies as _0x539fc9,toDisposable as _0xd65bd7}from'@univerjs/core';import{HTTPService as _0x44134a,ISocketService as _0x56f629}from'@univerjs/network';import{Observable as _0x164acf,share as _0x397967}from'rxjs';import{WebSocket as _0x33c7b0}from'ws';import{ISnapshotServerService as _0x31ed16}from'@univerjs-pro/collaboration';function _0x371d(_0xbb6ef9,_0x3f48f7){_0xbb6ef9=_0xbb6ef9-0x178;const _0x285496=_0x2854();let _0x371d02=_0x285496[_0xbb6ef9];return _0x371d02;}const y=_0xac92aa(0x18e),b={};var x=_0xac92aa(0x189),S='1.0.0-alpha.1';function C(_0x4033c3,_0x406b8c){return function(_0x505a5f,_0x1029d8){_0x406b8c(_0x505a5f,_0x1029d8,_0x4033c3);};}function w(_0x4ff3b5,_0x1763f1,_0x4782b2,_0x48e062){const _0x755b62=_0xac92aa;var _0x4bbdba=arguments[_0x755b62(0x183)],_0x4fff36=_0x4bbdba<0x3?_0x1763f1:_0x48e062===null?_0x48e062=Object[_0x755b62(0x17b)](_0x1763f1,_0x4782b2):_0x48e062,_0x58a209;if(typeof Reflect==_0x755b62(0x199)&&typeof Reflect[_0x755b62(0x195)]==_0x755b62(0x18c))_0x4fff36=Reflect['decorate'](_0x4ff3b5,_0x1763f1,_0x4782b2,_0x48e062);else{for(var _0xf7b930=_0x4ff3b5[_0x755b62(0x183)]-0x1;_0xf7b930>=0x0;_0xf7b930--)(_0x58a209=_0x4ff3b5[_0xf7b930])&&(_0x4fff36=(_0x4bbdba<0x3?_0x58a209(_0x4fff36):_0x4bbdba>0x3?_0x58a209(_0x1763f1,_0x4782b2,_0x4fff36):_0x58a209(_0x1763f1,_0x4782b2))||_0x4fff36);}return _0x4bbdba>0x3&&_0x4fff36&&Object[_0x755b62(0x198)](_0x1763f1,_0x4782b2,_0x4fff36),_0x4fff36;}let T=class extends _0x4407e6{constructor(_0x493ac2){super(),this['_configService']=_0x493ac2;}['createSocket'](_0x5ba4bf){const _0x569aac=_0xac92aa;var _0x3175a6;let _0x260957=((_0x3175a6=this['_configService'][_0x569aac(0x17a)](_0x94756f))==null?void 0x0:_0x3175a6[_0x569aac(0x185)])||{};try{let _0x3b6c07=new _0x33c7b0(_0x5ba4bf,{'headers':{..._0x260957}}),_0x18bdee=new _0x41cb13();return{'URL':_0x5ba4bf,'close':(_0x5c25b3,_0x3c828c)=>{const _0x46756c=_0x569aac;_0x3b6c07[_0x46756c(0x190)](_0x5c25b3,_0x3c828c),_0x18bdee[_0x46756c(0x196)]();},'send':_0x2797ba=>{_0x3b6c07['send'](_0x2797ba);},'open$':new _0x164acf(_0x2e55fb=>{const _0x4794eb=_0x569aac;let _0x8d6553=_0x11de0a=>_0x2e55fb['next'](_0x11de0a);_0x3b6c07[_0x4794eb(0x191)](_0x4794eb(0x1aa),_0x8d6553),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x4794eb(0x18b)](_0x4794eb(0x1aa),_0x8d6553)));})[_0x569aac(0x1a8)](_0x397967()),'close$':new _0x164acf(_0x41dcff=>{const _0x490daa=_0x569aac;let _0x48e8d5=_0x4304f2=>_0x41dcff['next'](_0x4304f2);_0x3b6c07[_0x490daa(0x191)](_0x490daa(0x190),_0x48e8d5),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x490daa(0x18b)](_0x490daa(0x190),_0x48e8d5)));})[_0x569aac(0x1a8)](_0x397967()),'error$':new _0x164acf(_0x173311=>{const _0x2f7a07=_0x569aac;let _0xb979fd=_0xfaac5c=>_0x173311[_0x2f7a07(0x1a3)](_0xfaac5c);_0x3b6c07['addEventListener'](_0x2f7a07(0x19f),_0xb979fd),_0x18bdee[_0x2f7a07(0x197)](_0xd65bd7(()=>_0x3b6c07['removeEventListener'](_0x2f7a07(0x19f),_0xb979fd)));})['pipe'](_0x397967()),'message$':new _0x164acf(_0x3577b8=>{const _0x3b873d=_0x569aac;let _0x2e2e2f=_0x2ed7c8=>_0x3577b8['next'](_0x2ed7c8);_0x3b6c07[_0x3b873d(0x191)]('message',_0x2e2e2f),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x3b873d(0x18b)](_0x3b873d(0x17c),_0x2e2e2f)));})['pipe'](_0x397967())};}catch(_0x3d1720){return console[_0x569aac(0x19f)](_0x3d1720),null;}}};T=w([C(0x0,_0x396948)],T);function E(_0x4eba55){'@babel/helpers - typeof';const _0x525b3a=_0xac92aa;return E=typeof Symbol==_0x525b3a(0x18c)&&typeof Symbol[_0x525b3a(0x1a0)]==_0x525b3a(0x1a2)?function(_0x70120b){return typeof _0x70120b;}:function(_0x4b2e0b){const _0x5e66ff=_0x525b3a;return _0x4b2e0b&&typeof Symbol==_0x5e66ff(0x18c)&&_0x4b2e0b[_0x5e66ff(0x18a)]===Symbol&&_0x4b2e0b!==Symbol['prototype']?'symbol':typeof _0x4b2e0b;},E(_0x4eba55);}function D(_0x5b4b4f,_0x4084d6){const _0x3a02c7=_0xac92aa;if(E(_0x5b4b4f)!='object'||!_0x5b4b4f)return _0x5b4b4f;var _0x1792c8=_0x5b4b4f[Symbol[_0x3a02c7(0x19b)]];if(_0x1792c8!==void 0x0){var _0x5c901d=_0x1792c8[_0x3a02c7(0x180)](_0x5b4b4f,_0x4084d6||_0x3a02c7(0x1a9));if(E(_0x5c901d)!=_0x3a02c7(0x199))return _0x5c901d;throw TypeError(_0x3a02c7(0x179));}return(_0x4084d6===_0x3a02c7(0x19e)?String:Number)(_0x5b4b4f);}function O(_0x1b02ae){const _0x24f695=_0xac92aa;var _0x1e3012=D(_0x1b02ae,_0x24f695(0x19e));return E(_0x1e3012)=='symbol'?_0x1e3012:_0x1e3012+'';}function k(_0x205354,_0x466449,_0x4b5a8c){const _0xbae024=_0xac92aa;return(_0x466449=O(_0x466449))in _0x205354?Object[_0xbae024(0x198)](_0x205354,_0x466449,{'value':_0x4b5a8c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x205354[_0x466449]=_0x4b5a8c,_0x205354;}let A=class extends _0x416e72{constructor(_0x1da9f6=b,_0x4fdd5f,_0x520db6){const _0x2a9f65=_0xac92aa;super(),this['_configService']=_0x4fdd5f,this[_0x2a9f65(0x18d)]=_0x520db6,this[_0x2a9f65(0x181)][_0x2a9f65(0x1a7)](y,_0x1da9f6);}[_0xac92aa(0x19a)](){const _0x517ea8=_0xac92aa;this[_0x517ea8(0x1a1)]();}[_0xac92aa(0x1a1)](){const _0x11657a=_0xac92aa;_0x539fc9(this[_0x11657a(0x18d)],[[_0x56f629,{'useClass':T}]]);}};k(A,_0xac92aa(0x18f),_0xac92aa(0x1a5)),k(A,'packageName',x),k(A,_0xac92aa(0x193),S),A=w([_0xf9a28d(_0xa1d3ad),C(0x1,_0x396948),C(0x2,_0x1f5758(_0x51b714))],A);let j=class extends _0x2b1e9a{constructor(_0x6787f4,_0x1129ba,_0x322a69,_0x3cfee2,_0x428867){const _0x32b6c7=_0xac92aa;super(_0x6787f4,_0x1129ba,_0x322a69,_0x3cfee2,_0x428867);let _0x16b5a5=this[_0x32b6c7(0x181)][_0x32b6c7(0x17a)](_0x94756f);this[_0x32b6c7(0x184)][_0x32b6c7(0x17f)]({'interceptor':(_0x1c0f1c,_0x23ca59)=>{const _0x2ed286=_0x32b6c7;let _0x465ce6=_0x1c0f1c[_0x2ed286(0x19c)];if(_0x16b5a5!=null&&_0x16b5a5[_0x2ed286(0x185)]){for(let _0x56b75c in _0x16b5a5[_0x2ed286(0x185)])_0x465ce6[_0x2ed286(0x17d)](_0x56b75c,_0x16b5a5[_0x2ed286(0x185)][_0x56b75c]);}return _0x23ca59(_0x1c0f1c);}});}async['createSocket'](_0x53cbd7){return this['_doCreateSocket'](_0x53cbd7);}};function _0x2854(){const _0x48ba41=['toPrimitive','headers','104vetNgo','string','error','iterator','_registerDependencies','symbol','next','8802717OFNfGM','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','59526zTxgwH','setConfig','pipe','default','open','2745621QXgVKz','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getConfig','getOwnPropertyDescriptor','message','set','2tXeIMO','registerHTTPInterceptor','call','_configService','14GitPhr','length','_httpService','customHeaders','192553YozEGf','8IdBLpw','2245794SNErPt','@univerjs-pro/collaboration-client-node','constructor','removeEventListener','function','_injector','collaboration-client-node.config','pluginName','close','addEventListener','2725580oHoUHr','version','7363590ktgcCz','decorate','dispose','add','defineProperty','object','onStarting'];_0x2854=function(){return _0x48ba41;};return _0x2854();}j=w([C(0x0,_0x1f5758(_0x51b714)),C(0x1,_0x1f5758(_0x44134a)),C(0x2,_0x396948),C(0x3,_0x657ce6),C(0x4,_0x31ed16)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x4e4b7f=_0x36ac;(function(_0x5071c2,_0x3053b9){const _0xc0186f=_0x36ac,_0x3a4999=_0x5071c2();while(!![]){try{const _0x4d9ef0=parseInt(_0xc0186f(0xf1))/0x1*(parseInt(_0xc0186f(0x107))/0x2)+parseInt(_0xc0186f(0xd7))/0x3+parseInt(_0xc0186f(0xfc))/0x4*(-parseInt(_0xc0186f(0xd9))/0x5)+parseInt(_0xc0186f(0xd6))/0x6*(-parseInt(_0xc0186f(0xf4))/0x7)+parseInt(_0xc0186f(0xdd))/0x8*(-parseInt(_0xc0186f(0xfd))/0x9)+parseInt(_0xc0186f(0xef))/0xa*(parseInt(_0xc0186f(0xe9))/0xb)+parseInt(_0xc0186f(0xe5))/0xc*(-parseInt(_0xc0186f(0xe8))/0xd);if(_0x4d9ef0===_0x3053b9)break;else _0x3a4999['push'](_0x3a4999['shift']());}catch(_0x235e9e){_0x3a4999['push'](_0x3a4999['shift']());}}}(_0x4279,0x1f633));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x25def6,CollaborationSocketService as _0x163b96,UniverCollaborationClientPlugin as _0x59e4f5}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x5a5703,Disposable as _0x4922f3,DisposableCollection as _0x37ddd7,IConfigService as _0x229355,ILogService as _0x4282a7,Inject as _0x4d5e02,Injector as _0xc16b80,Plugin as _0x98534b,registerDependencies as _0x5f0d86,toDisposable as _0x19aebd}from'@univerjs/core';import{HTTPService as _0x3fd7cc,ISocketService as _0x347c8c}from'@univerjs/network';import{Observable as _0x1b87c0,share as _0xe64501}from'rxjs';import{WebSocket as _0x1ef2a1}from'ws';import{ISnapshotServerService as _0x30e1a6}from'@univerjs-pro/collaboration';const y=_0x4e4b7f(0x104),b={};var x=_0x4e4b7f(0x100),S=_0x4e4b7f(0xff);function _0x36ac(_0x2ce05e,_0x34b992){_0x2ce05e=_0x2ce05e-0xd6;const _0x4279cf=_0x4279();let _0x36ac37=_0x4279cf[_0x2ce05e];return _0x36ac37;}function C(_0x4fbf3c,_0x3f3ea5){return function(_0x48499b,_0x9e710b){_0x3f3ea5(_0x48499b,_0x9e710b,_0x4fbf3c);};}function w(_0x1f89cc,_0x7f8b59,_0x532707,_0x414938){const _0x42ea19=_0x4e4b7f;var _0x3e90d7=arguments[_0x42ea19(0xdc)],_0x1efd38=_0x3e90d7<0x3?_0x7f8b59:_0x414938===null?_0x414938=Object[_0x42ea19(0xe7)](_0x7f8b59,_0x532707):_0x414938,_0x4f99cc;if(typeof Reflect==_0x42ea19(0xf8)&&typeof Reflect[_0x42ea19(0xfa)]==_0x42ea19(0xdb))_0x1efd38=Reflect[_0x42ea19(0xfa)](_0x1f89cc,_0x7f8b59,_0x532707,_0x414938);else{for(var _0x16445d=_0x1f89cc['length']-0x1;_0x16445d>=0x0;_0x16445d--)(_0x4f99cc=_0x1f89cc[_0x16445d])&&(_0x1efd38=(_0x3e90d7<0x3?_0x4f99cc(_0x1efd38):_0x3e90d7>0x3?_0x4f99cc(_0x7f8b59,_0x532707,_0x1efd38):_0x4f99cc(_0x7f8b59,_0x532707))||_0x1efd38);}return _0x3e90d7>0x3&&_0x1efd38&&Object[_0x42ea19(0xe0)](_0x7f8b59,_0x532707,_0x1efd38),_0x1efd38;}let T=class extends _0x4922f3{constructor(_0x369abd){const _0x1d67ef=_0x4e4b7f;super(),this[_0x1d67ef(0x102)]=_0x369abd;}[_0x4e4b7f(0xda)](_0x5f5dc7){const _0x1a4641=_0x4e4b7f;var _0x5041cc;let _0x50989c=((_0x5041cc=this[_0x1a4641(0x102)][_0x1a4641(0xf5)](_0x25def6))==null?void 0x0:_0x5041cc['customHeaders'])||{};try{let _0x253dfa=new _0x1ef2a1(_0x5f5dc7,{'headers':{..._0x50989c}}),_0x4e3784=new _0x37ddd7();return{'URL':_0x5f5dc7,'close':(_0xd376ab,_0x5cae37)=>{const _0x2805c8=_0x1a4641;_0x253dfa[_0x2805c8(0xed)](_0xd376ab,_0x5cae37),_0x4e3784[_0x2805c8(0xf0)]();},'send':_0x1a85af=>{const _0xa6caae=_0x1a4641;_0x253dfa[_0xa6caae(0x108)](_0x1a85af);},'open$':new _0x1b87c0(_0x2dbbd3=>{const _0x48eecc=_0x1a4641;let _0x6ccb94=_0x34c303=>_0x2dbbd3[_0x48eecc(0xde)](_0x34c303);_0x253dfa[_0x48eecc(0xe1)](_0x48eecc(0xeb),_0x6ccb94),_0x4e3784[_0x48eecc(0xf9)](_0x19aebd(()=>_0x253dfa[_0x48eecc(0x106)](_0x48eecc(0xeb),_0x6ccb94)));})['pipe'](_0xe64501()),'close$':new _0x1b87c0(_0x459552=>{const _0x4e402c=_0x1a4641;let _0x40a449=_0x3729d2=>_0x459552[_0x4e402c(0xde)](_0x3729d2);_0x253dfa[_0x4e402c(0xe1)]('close',_0x40a449),_0x4e3784[_0x4e402c(0xf9)](_0x19aebd(()=>_0x253dfa[_0x4e402c(0x106)](_0x4e402c(0xed),_0x40a449)));})[_0x1a4641(0x109)](_0xe64501()),'error$':new _0x1b87c0(_0x41ff8b=>{const _0x1a58a3=_0x1a4641;let _0x1ae2f4=_0x4ec09e=>_0x41ff8b['next'](_0x4ec09e);_0x253dfa[_0x1a58a3(0xe1)](_0x1a58a3(0xec),_0x1ae2f4),_0x4e3784[_0x1a58a3(0xf9)](_0x19aebd(()=>_0x253dfa[_0x1a58a3(0x106)](_0x1a58a3(0xec),_0x1ae2f4)));})[_0x1a4641(0x109)](_0xe64501()),'message$':new _0x1b87c0(_0x2f91ca=>{const _0x3c980c=_0x1a4641;let _0x5c47f3=_0x3c1b87=>_0x2f91ca['next'](_0x3c1b87);_0x253dfa['addEventListener'](_0x3c980c(0xf7),_0x5c47f3),_0x4e3784[_0x3c980c(0xf9)](_0x19aebd(()=>_0x253dfa['removeEventListener'](_0x3c980c(0xf7),_0x5c47f3)));})[_0x1a4641(0x109)](_0xe64501())};}catch(_0x49cffc){return console['error'](_0x49cffc),null;}}};T=w([C(0x0,_0x229355)],T);function E(_0x103b77){'@babel/helpers - typeof';const _0xe818e=_0x4e4b7f;return E=typeof Symbol==_0xe818e(0xdb)&&typeof Symbol[_0xe818e(0x103)]=='symbol'?function(_0x26d76d){return typeof _0x26d76d;}:function(_0x58ef1d){const _0x14c8f7=_0xe818e;return _0x58ef1d&&typeof Symbol==_0x14c8f7(0xdb)&&_0x58ef1d['constructor']===Symbol&&_0x58ef1d!==Symbol[_0x14c8f7(0xea)]?_0x14c8f7(0xfe):typeof _0x58ef1d;},E(_0x103b77);}function D(_0x48b61e,_0x465d31){const _0x9107b4=_0x4e4b7f;if(E(_0x48b61e)!=_0x9107b4(0xf8)||!_0x48b61e)return _0x48b61e;var _0x133423=_0x48b61e[Symbol[_0x9107b4(0xee)]];if(_0x133423!==void 0x0){var _0x1802d7=_0x133423[_0x9107b4(0x105)](_0x48b61e,_0x465d31||_0x9107b4(0xe3));if(E(_0x1802d7)!=_0x9107b4(0xf8))return _0x1802d7;throw TypeError(_0x9107b4(0xd8));}return(_0x465d31===_0x9107b4(0xf3)?String:Number)(_0x48b61e);}function O(_0x501c7f){const _0x61d2e0=_0x4e4b7f;var _0x1ccbb2=D(_0x501c7f,'string');return E(_0x1ccbb2)==_0x61d2e0(0xfe)?_0x1ccbb2:_0x1ccbb2+'';}function k(_0xf13cda,_0x4fe61d,_0x4940b9){const _0xce2ea6=_0x4e4b7f;return(_0x4fe61d=O(_0x4fe61d))in _0xf13cda?Object[_0xce2ea6(0xe0)](_0xf13cda,_0x4fe61d,{'value':_0x4940b9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xf13cda[_0x4fe61d]=_0x4940b9,_0xf13cda;}let A=class extends _0x98534b{constructor(_0x33cab5=b,_0xaf5bbd,_0x224ddc){const _0x45247b=_0x4e4b7f;super(),this[_0x45247b(0x102)]=_0xaf5bbd,this[_0x45247b(0x10a)]=_0x224ddc,this[_0x45247b(0x102)]['setConfig'](y,_0x33cab5);}[_0x4e4b7f(0xe4)](){const _0x1006eb=_0x4e4b7f;this[_0x1006eb(0xe2)]();}[_0x4e4b7f(0xe2)](){const _0x4afe65=_0x4e4b7f;_0x5f0d86(this[_0x4afe65(0x10a)],[[_0x347c8c,{'useClass':T}]]);}};k(A,_0x4e4b7f(0xe6),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),k(A,'packageName',x),k(A,_0x4e4b7f(0xf6),S),A=w([_0x5a5703(_0x59e4f5),C(0x1,_0x229355),C(0x2,_0x4d5e02(_0xc16b80))],A);let j=class extends _0x163b96{constructor(_0x395978,_0x551133,_0x1fac44,_0x463b47,_0x4a45a){const _0x343793=_0x4e4b7f;super(_0x395978,_0x551133,_0x1fac44,_0x463b47,_0x4a45a);let _0x1706de=this[_0x343793(0x102)]['getConfig'](_0x25def6);this[_0x343793(0xfb)]['registerHTTPInterceptor']({'interceptor':(_0x1ac1af,_0x5128e5)=>{const _0x1fe656=_0x343793;let _0x5e3b32=_0x1ac1af[_0x1fe656(0xf2)];if(_0x1706de!=null&&_0x1706de[_0x1fe656(0x101)]){for(let _0x2a867a in _0x1706de['customHeaders'])_0x5e3b32[_0x1fe656(0xdf)](_0x2a867a,_0x1706de[_0x1fe656(0x101)][_0x2a867a]);}return _0x5128e5(_0x1ac1af);}});}async['createSocket'](_0x1a865e){return this['_doCreateSocket'](_0x1a865e);}};j=w([C(0x0,_0x4d5e02(_0xc16b80)),C(0x1,_0x4d5e02(_0x3fd7cc)),C(0x2,_0x229355),C(0x3,_0x4282a7),C(0x4,_0x30e1a6)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};function _0x4279(){const _0x5e5a24=['set','defineProperty','addEventListener','_registerDependencies','default','onStarting','444kHfQTW','pluginName','getOwnPropertyDescriptor','84409UxFpro','2293511ifoUUS','prototype','open','error','close','toPrimitive','10KgdgAQ','dispose','117saBsFN','headers','string','387373DIGfTC','getConfig','version','message','object','add','decorate','_httpService','36XEWiqK','175869IFjEgh','symbol','1.0.0-insiders.20260701-0ef51b0','@univerjs-pro/collaboration-client-node','customHeaders','_configService','iterator','collaboration-client-node.config','call','removeEventListener','4124okpRLn','send','pipe','_injector','12JtUeHz','665646CVHHuA','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','30760oIvBDj','createSocket','function','length','56BdPFUI','next'];_0x4279=function(){return _0x5e5a24;};return _0x4279();}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0xac92aa=_0x371d;(function(_0x24f3e4,_0x2015d1){const _0x14d61a=_0x371d,_0x6835e5=_0x24f3e4();while(!![]){try{const _0x5562af=parseInt(_0x14d61a(0x186))/0x1*(-parseInt(_0x14d61a(0x17e))/0x2)+parseInt(_0x14d61a(0x1a6))/0x3*(parseInt(_0x14d61a(0x19d))/0x4)+parseInt(_0x14d61a(0x192))/0x5+parseInt(_0x14d61a(0x188))/0x6*(parseInt(_0x14d61a(0x182))/0x7)+parseInt(_0x14d61a(0x187))/0x8*(parseInt(_0x14d61a(0x178))/0x9)+-parseInt(_0x14d61a(0x194))/0xa+-parseInt(_0x14d61a(0x1a4))/0xb;if(_0x5562af===_0x2015d1)break;else _0x6835e5['push'](_0x6835e5['shift']());}catch(_0x76a757){_0x6835e5['push'](_0x6835e5['shift']());}}}(_0x2854,0x5e1ec));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x94756f,CollaborationSocketService as _0x2b1e9a,UniverCollaborationClientPlugin as _0xa1d3ad}from'@univerjs-pro/collaboration-client';import{DependentOn as _0xf9a28d,Disposable as _0x4407e6,DisposableCollection as _0x41cb13,IConfigService as _0x396948,ILogService as _0x657ce6,Inject as _0x1f5758,Injector as _0x51b714,Plugin as _0x416e72,registerDependencies as _0x539fc9,toDisposable as _0xd65bd7}from'@univerjs/core';import{HTTPService as _0x44134a,ISocketService as _0x56f629}from'@univerjs/network';import{Observable as _0x164acf,share as _0x397967}from'rxjs';import{WebSocket as _0x33c7b0}from'ws';import{ISnapshotServerService as _0x31ed16}from'@univerjs-pro/collaboration';function _0x371d(_0xbb6ef9,_0x3f48f7){_0xbb6ef9=_0xbb6ef9-0x178;const _0x285496=_0x2854();let _0x371d02=_0x285496[_0xbb6ef9];return _0x371d02;}const y=_0xac92aa(0x18e),b={};var x=_0xac92aa(0x189),S='1.0.0-alpha.1';function C(_0x4033c3,_0x406b8c){return function(_0x505a5f,_0x1029d8){_0x406b8c(_0x505a5f,_0x1029d8,_0x4033c3);};}function w(_0x4ff3b5,_0x1763f1,_0x4782b2,_0x48e062){const _0x755b62=_0xac92aa;var _0x4bbdba=arguments[_0x755b62(0x183)],_0x4fff36=_0x4bbdba<0x3?_0x1763f1:_0x48e062===null?_0x48e062=Object[_0x755b62(0x17b)](_0x1763f1,_0x4782b2):_0x48e062,_0x58a209;if(typeof Reflect==_0x755b62(0x199)&&typeof Reflect[_0x755b62(0x195)]==_0x755b62(0x18c))_0x4fff36=Reflect['decorate'](_0x4ff3b5,_0x1763f1,_0x4782b2,_0x48e062);else{for(var _0xf7b930=_0x4ff3b5[_0x755b62(0x183)]-0x1;_0xf7b930>=0x0;_0xf7b930--)(_0x58a209=_0x4ff3b5[_0xf7b930])&&(_0x4fff36=(_0x4bbdba<0x3?_0x58a209(_0x4fff36):_0x4bbdba>0x3?_0x58a209(_0x1763f1,_0x4782b2,_0x4fff36):_0x58a209(_0x1763f1,_0x4782b2))||_0x4fff36);}return _0x4bbdba>0x3&&_0x4fff36&&Object[_0x755b62(0x198)](_0x1763f1,_0x4782b2,_0x4fff36),_0x4fff36;}let T=class extends _0x4407e6{constructor(_0x493ac2){super(),this['_configService']=_0x493ac2;}['createSocket'](_0x5ba4bf){const _0x569aac=_0xac92aa;var _0x3175a6;let _0x260957=((_0x3175a6=this['_configService'][_0x569aac(0x17a)](_0x94756f))==null?void 0x0:_0x3175a6[_0x569aac(0x185)])||{};try{let _0x3b6c07=new _0x33c7b0(_0x5ba4bf,{'headers':{..._0x260957}}),_0x18bdee=new _0x41cb13();return{'URL':_0x5ba4bf,'close':(_0x5c25b3,_0x3c828c)=>{const _0x46756c=_0x569aac;_0x3b6c07[_0x46756c(0x190)](_0x5c25b3,_0x3c828c),_0x18bdee[_0x46756c(0x196)]();},'send':_0x2797ba=>{_0x3b6c07['send'](_0x2797ba);},'open$':new _0x164acf(_0x2e55fb=>{const _0x4794eb=_0x569aac;let _0x8d6553=_0x11de0a=>_0x2e55fb['next'](_0x11de0a);_0x3b6c07[_0x4794eb(0x191)](_0x4794eb(0x1aa),_0x8d6553),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x4794eb(0x18b)](_0x4794eb(0x1aa),_0x8d6553)));})[_0x569aac(0x1a8)](_0x397967()),'close$':new _0x164acf(_0x41dcff=>{const _0x490daa=_0x569aac;let _0x48e8d5=_0x4304f2=>_0x41dcff['next'](_0x4304f2);_0x3b6c07[_0x490daa(0x191)](_0x490daa(0x190),_0x48e8d5),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x490daa(0x18b)](_0x490daa(0x190),_0x48e8d5)));})[_0x569aac(0x1a8)](_0x397967()),'error$':new _0x164acf(_0x173311=>{const _0x2f7a07=_0x569aac;let _0xb979fd=_0xfaac5c=>_0x173311[_0x2f7a07(0x1a3)](_0xfaac5c);_0x3b6c07['addEventListener'](_0x2f7a07(0x19f),_0xb979fd),_0x18bdee[_0x2f7a07(0x197)](_0xd65bd7(()=>_0x3b6c07['removeEventListener'](_0x2f7a07(0x19f),_0xb979fd)));})['pipe'](_0x397967()),'message$':new _0x164acf(_0x3577b8=>{const _0x3b873d=_0x569aac;let _0x2e2e2f=_0x2ed7c8=>_0x3577b8['next'](_0x2ed7c8);_0x3b6c07[_0x3b873d(0x191)]('message',_0x2e2e2f),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x3b873d(0x18b)](_0x3b873d(0x17c),_0x2e2e2f)));})['pipe'](_0x397967())};}catch(_0x3d1720){return console[_0x569aac(0x19f)](_0x3d1720),null;}}};T=w([C(0x0,_0x396948)],T);function E(_0x4eba55){'@babel/helpers - typeof';const _0x525b3a=_0xac92aa;return E=typeof Symbol==_0x525b3a(0x18c)&&typeof Symbol[_0x525b3a(0x1a0)]==_0x525b3a(0x1a2)?function(_0x70120b){return typeof _0x70120b;}:function(_0x4b2e0b){const _0x5e66ff=_0x525b3a;return _0x4b2e0b&&typeof Symbol==_0x5e66ff(0x18c)&&_0x4b2e0b[_0x5e66ff(0x18a)]===Symbol&&_0x4b2e0b!==Symbol['prototype']?'symbol':typeof _0x4b2e0b;},E(_0x4eba55);}function D(_0x5b4b4f,_0x4084d6){const _0x3a02c7=_0xac92aa;if(E(_0x5b4b4f)!='object'||!_0x5b4b4f)return _0x5b4b4f;var _0x1792c8=_0x5b4b4f[Symbol[_0x3a02c7(0x19b)]];if(_0x1792c8!==void 0x0){var _0x5c901d=_0x1792c8[_0x3a02c7(0x180)](_0x5b4b4f,_0x4084d6||_0x3a02c7(0x1a9));if(E(_0x5c901d)!=_0x3a02c7(0x199))return _0x5c901d;throw TypeError(_0x3a02c7(0x179));}return(_0x4084d6===_0x3a02c7(0x19e)?String:Number)(_0x5b4b4f);}function O(_0x1b02ae){const _0x24f695=_0xac92aa;var _0x1e3012=D(_0x1b02ae,_0x24f695(0x19e));return E(_0x1e3012)=='symbol'?_0x1e3012:_0x1e3012+'';}function k(_0x205354,_0x466449,_0x4b5a8c){const _0xbae024=_0xac92aa;return(_0x466449=O(_0x466449))in _0x205354?Object[_0xbae024(0x198)](_0x205354,_0x466449,{'value':_0x4b5a8c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x205354[_0x466449]=_0x4b5a8c,_0x205354;}let A=class extends _0x416e72{constructor(_0x1da9f6=b,_0x4fdd5f,_0x520db6){const _0x2a9f65=_0xac92aa;super(),this['_configService']=_0x4fdd5f,this[_0x2a9f65(0x18d)]=_0x520db6,this[_0x2a9f65(0x181)][_0x2a9f65(0x1a7)](y,_0x1da9f6);}[_0xac92aa(0x19a)](){const _0x517ea8=_0xac92aa;this[_0x517ea8(0x1a1)]();}[_0xac92aa(0x1a1)](){const _0x11657a=_0xac92aa;_0x539fc9(this[_0x11657a(0x18d)],[[_0x56f629,{'useClass':T}]]);}};k(A,_0xac92aa(0x18f),_0xac92aa(0x1a5)),k(A,'packageName',x),k(A,_0xac92aa(0x193),S),A=w([_0xf9a28d(_0xa1d3ad),C(0x1,_0x396948),C(0x2,_0x1f5758(_0x51b714))],A);let j=class extends _0x2b1e9a{constructor(_0x6787f4,_0x1129ba,_0x322a69,_0x3cfee2,_0x428867){const _0x32b6c7=_0xac92aa;super(_0x6787f4,_0x1129ba,_0x322a69,_0x3cfee2,_0x428867);let _0x16b5a5=this[_0x32b6c7(0x181)][_0x32b6c7(0x17a)](_0x94756f);this[_0x32b6c7(0x184)][_0x32b6c7(0x17f)]({'interceptor':(_0x1c0f1c,_0x23ca59)=>{const _0x2ed286=_0x32b6c7;let _0x465ce6=_0x1c0f1c[_0x2ed286(0x19c)];if(_0x16b5a5!=null&&_0x16b5a5[_0x2ed286(0x185)]){for(let _0x56b75c in _0x16b5a5[_0x2ed286(0x185)])_0x465ce6[_0x2ed286(0x17d)](_0x56b75c,_0x16b5a5[_0x2ed286(0x185)][_0x56b75c]);}return _0x23ca59(_0x1c0f1c);}});}async['createSocket'](_0x53cbd7){return this['_doCreateSocket'](_0x53cbd7);}};function _0x2854(){const _0x48ba41=['toPrimitive','headers','104vetNgo','string','error','iterator','_registerDependencies','symbol','next','8802717OFNfGM','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','59526zTxgwH','setConfig','pipe','default','open','2745621QXgVKz','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getConfig','getOwnPropertyDescriptor','message','set','2tXeIMO','registerHTTPInterceptor','call','_configService','14GitPhr','length','_httpService','customHeaders','192553YozEGf','8IdBLpw','2245794SNErPt','@univerjs-pro/collaboration-client-node','constructor','removeEventListener','function','_injector','collaboration-client-node.config','pluginName','close','addEventListener','2725580oHoUHr','version','7363590ktgcCz','decorate','dispose','add','defineProperty','object','onStarting'];_0x2854=function(){return _0x48ba41;};return _0x2854();}j=w([C(0x0,_0x1f5758(_0x51b714)),C(0x1,_0x1f5758(_0x44134a)),C(0x2,_0x396948),C(0x3,_0x657ce6),C(0x4,_0x31ed16)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x4e4b7f=_0x36ac;(function(_0x5071c2,_0x3053b9){const _0xc0186f=_0x36ac,_0x3a4999=_0x5071c2();while(!![]){try{const _0x4d9ef0=parseInt(_0xc0186f(0xf1))/0x1*(parseInt(_0xc0186f(0x107))/0x2)+parseInt(_0xc0186f(0xd7))/0x3+parseInt(_0xc0186f(0xfc))/0x4*(-parseInt(_0xc0186f(0xd9))/0x5)+parseInt(_0xc0186f(0xd6))/0x6*(-parseInt(_0xc0186f(0xf4))/0x7)+parseInt(_0xc0186f(0xdd))/0x8*(-parseInt(_0xc0186f(0xfd))/0x9)+parseInt(_0xc0186f(0xef))/0xa*(parseInt(_0xc0186f(0xe9))/0xb)+parseInt(_0xc0186f(0xe5))/0xc*(-parseInt(_0xc0186f(0xe8))/0xd);if(_0x4d9ef0===_0x3053b9)break;else _0x3a4999['push'](_0x3a4999['shift']());}catch(_0x235e9e){_0x3a4999['push'](_0x3a4999['shift']());}}}(_0x4279,0x1f633));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x25def6,CollaborationSocketService as _0x163b96,UniverCollaborationClientPlugin as _0x59e4f5}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x5a5703,Disposable as _0x4922f3,DisposableCollection as _0x37ddd7,IConfigService as _0x229355,ILogService as _0x4282a7,Inject as _0x4d5e02,Injector as _0xc16b80,Plugin as _0x98534b,registerDependencies as _0x5f0d86,toDisposable as _0x19aebd}from'@univerjs/core';import{HTTPService as _0x3fd7cc,ISocketService as _0x347c8c}from'@univerjs/network';import{Observable as _0x1b87c0,share as _0xe64501}from'rxjs';import{WebSocket as _0x1ef2a1}from'ws';import{ISnapshotServerService as _0x30e1a6}from'@univerjs-pro/collaboration';const y=_0x4e4b7f(0x104),b={};var x=_0x4e4b7f(0x100),S=_0x4e4b7f(0xff);function _0x36ac(_0x2ce05e,_0x34b992){_0x2ce05e=_0x2ce05e-0xd6;const _0x4279cf=_0x4279();let _0x36ac37=_0x4279cf[_0x2ce05e];return _0x36ac37;}function C(_0x4fbf3c,_0x3f3ea5){return function(_0x48499b,_0x9e710b){_0x3f3ea5(_0x48499b,_0x9e710b,_0x4fbf3c);};}function w(_0x1f89cc,_0x7f8b59,_0x532707,_0x414938){const _0x42ea19=_0x4e4b7f;var _0x3e90d7=arguments[_0x42ea19(0xdc)],_0x1efd38=_0x3e90d7<0x3?_0x7f8b59:_0x414938===null?_0x414938=Object[_0x42ea19(0xe7)](_0x7f8b59,_0x532707):_0x414938,_0x4f99cc;if(typeof Reflect==_0x42ea19(0xf8)&&typeof Reflect[_0x42ea19(0xfa)]==_0x42ea19(0xdb))_0x1efd38=Reflect[_0x42ea19(0xfa)](_0x1f89cc,_0x7f8b59,_0x532707,_0x414938);else{for(var _0x16445d=_0x1f89cc['length']-0x1;_0x16445d>=0x0;_0x16445d--)(_0x4f99cc=_0x1f89cc[_0x16445d])&&(_0x1efd38=(_0x3e90d7<0x3?_0x4f99cc(_0x1efd38):_0x3e90d7>0x3?_0x4f99cc(_0x7f8b59,_0x532707,_0x1efd38):_0x4f99cc(_0x7f8b59,_0x532707))||_0x1efd38);}return _0x3e90d7>0x3&&_0x1efd38&&Object[_0x42ea19(0xe0)](_0x7f8b59,_0x532707,_0x1efd38),_0x1efd38;}let T=class extends _0x4922f3{constructor(_0x369abd){const _0x1d67ef=_0x4e4b7f;super(),this[_0x1d67ef(0x102)]=_0x369abd;}[_0x4e4b7f(0xda)](_0x5f5dc7){const _0x1a4641=_0x4e4b7f;var _0x5041cc;let _0x50989c=((_0x5041cc=this[_0x1a4641(0x102)][_0x1a4641(0xf5)](_0x25def6))==null?void 0x0:_0x5041cc['customHeaders'])||{};try{let _0x253dfa=new _0x1ef2a1(_0x5f5dc7,{'headers':{..._0x50989c}}),_0x4e3784=new _0x37ddd7();return{'URL':_0x5f5dc7,'close':(_0xd376ab,_0x5cae37)=>{const _0x2805c8=_0x1a4641;_0x253dfa[_0x2805c8(0xed)](_0xd376ab,_0x5cae37),_0x4e3784[_0x2805c8(0xf0)]();},'send':_0x1a85af=>{const _0xa6caae=_0x1a4641;_0x253dfa[_0xa6caae(0x108)](_0x1a85af);},'open$':new _0x1b87c0(_0x2dbbd3=>{const _0x48eecc=_0x1a4641;let _0x6ccb94=_0x34c303=>_0x2dbbd3[_0x48eecc(0xde)](_0x34c303);_0x253dfa[_0x48eecc(0xe1)](_0x48eecc(0xeb),_0x6ccb94),_0x4e3784[_0x48eecc(0xf9)](_0x19aebd(()=>_0x253dfa[_0x48eecc(0x106)](_0x48eecc(0xeb),_0x6ccb94)));})['pipe'](_0xe64501()),'close$':new _0x1b87c0(_0x459552=>{const _0x4e402c=_0x1a4641;let _0x40a449=_0x3729d2=>_0x459552[_0x4e402c(0xde)](_0x3729d2);_0x253dfa[_0x4e402c(0xe1)]('close',_0x40a449),_0x4e3784[_0x4e402c(0xf9)](_0x19aebd(()=>_0x253dfa[_0x4e402c(0x106)](_0x4e402c(0xed),_0x40a449)));})[_0x1a4641(0x109)](_0xe64501()),'error$':new _0x1b87c0(_0x41ff8b=>{const _0x1a58a3=_0x1a4641;let _0x1ae2f4=_0x4ec09e=>_0x41ff8b['next'](_0x4ec09e);_0x253dfa[_0x1a58a3(0xe1)](_0x1a58a3(0xec),_0x1ae2f4),_0x4e3784[_0x1a58a3(0xf9)](_0x19aebd(()=>_0x253dfa[_0x1a58a3(0x106)](_0x1a58a3(0xec),_0x1ae2f4)));})[_0x1a4641(0x109)](_0xe64501()),'message$':new _0x1b87c0(_0x2f91ca=>{const _0x3c980c=_0x1a4641;let _0x5c47f3=_0x3c1b87=>_0x2f91ca['next'](_0x3c1b87);_0x253dfa['addEventListener'](_0x3c980c(0xf7),_0x5c47f3),_0x4e3784[_0x3c980c(0xf9)](_0x19aebd(()=>_0x253dfa['removeEventListener'](_0x3c980c(0xf7),_0x5c47f3)));})[_0x1a4641(0x109)](_0xe64501())};}catch(_0x49cffc){return console['error'](_0x49cffc),null;}}};T=w([C(0x0,_0x229355)],T);function E(_0x103b77){'@babel/helpers - typeof';const _0xe818e=_0x4e4b7f;return E=typeof Symbol==_0xe818e(0xdb)&&typeof Symbol[_0xe818e(0x103)]=='symbol'?function(_0x26d76d){return typeof _0x26d76d;}:function(_0x58ef1d){const _0x14c8f7=_0xe818e;return _0x58ef1d&&typeof Symbol==_0x14c8f7(0xdb)&&_0x58ef1d['constructor']===Symbol&&_0x58ef1d!==Symbol[_0x14c8f7(0xea)]?_0x14c8f7(0xfe):typeof _0x58ef1d;},E(_0x103b77);}function D(_0x48b61e,_0x465d31){const _0x9107b4=_0x4e4b7f;if(E(_0x48b61e)!=_0x9107b4(0xf8)||!_0x48b61e)return _0x48b61e;var _0x133423=_0x48b61e[Symbol[_0x9107b4(0xee)]];if(_0x133423!==void 0x0){var _0x1802d7=_0x133423[_0x9107b4(0x105)](_0x48b61e,_0x465d31||_0x9107b4(0xe3));if(E(_0x1802d7)!=_0x9107b4(0xf8))return _0x1802d7;throw TypeError(_0x9107b4(0xd8));}return(_0x465d31===_0x9107b4(0xf3)?String:Number)(_0x48b61e);}function O(_0x501c7f){const _0x61d2e0=_0x4e4b7f;var _0x1ccbb2=D(_0x501c7f,'string');return E(_0x1ccbb2)==_0x61d2e0(0xfe)?_0x1ccbb2:_0x1ccbb2+'';}function k(_0xf13cda,_0x4fe61d,_0x4940b9){const _0xce2ea6=_0x4e4b7f;return(_0x4fe61d=O(_0x4fe61d))in _0xf13cda?Object[_0xce2ea6(0xe0)](_0xf13cda,_0x4fe61d,{'value':_0x4940b9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xf13cda[_0x4fe61d]=_0x4940b9,_0xf13cda;}let A=class extends _0x98534b{constructor(_0x33cab5=b,_0xaf5bbd,_0x224ddc){const _0x45247b=_0x4e4b7f;super(),this[_0x45247b(0x102)]=_0xaf5bbd,this[_0x45247b(0x10a)]=_0x224ddc,this[_0x45247b(0x102)]['setConfig'](y,_0x33cab5);}[_0x4e4b7f(0xe4)](){const _0x1006eb=_0x4e4b7f;this[_0x1006eb(0xe2)]();}[_0x4e4b7f(0xe2)](){const _0x4afe65=_0x4e4b7f;_0x5f0d86(this[_0x4afe65(0x10a)],[[_0x347c8c,{'useClass':T}]]);}};k(A,_0x4e4b7f(0xe6),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),k(A,'packageName',x),k(A,_0x4e4b7f(0xf6),S),A=w([_0x5a5703(_0x59e4f5),C(0x1,_0x229355),C(0x2,_0x4d5e02(_0xc16b80))],A);let j=class extends _0x163b96{constructor(_0x395978,_0x551133,_0x1fac44,_0x463b47,_0x4a45a){const _0x343793=_0x4e4b7f;super(_0x395978,_0x551133,_0x1fac44,_0x463b47,_0x4a45a);let _0x1706de=this[_0x343793(0x102)]['getConfig'](_0x25def6);this[_0x343793(0xfb)]['registerHTTPInterceptor']({'interceptor':(_0x1ac1af,_0x5128e5)=>{const _0x1fe656=_0x343793;let _0x5e3b32=_0x1ac1af[_0x1fe656(0xf2)];if(_0x1706de!=null&&_0x1706de[_0x1fe656(0x101)]){for(let _0x2a867a in _0x1706de['customHeaders'])_0x5e3b32[_0x1fe656(0xdf)](_0x2a867a,_0x1706de[_0x1fe656(0x101)][_0x2a867a]);}return _0x5128e5(_0x1ac1af);}});}async['createSocket'](_0x1a865e){return this['_doCreateSocket'](_0x1a865e);}};j=w([C(0x0,_0x4d5e02(_0xc16b80)),C(0x1,_0x4d5e02(_0x3fd7cc)),C(0x2,_0x229355),C(0x3,_0x4282a7),C(0x4,_0x30e1a6)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};function _0x4279(){const _0x5e5a24=['set','defineProperty','addEventListener','_registerDependencies','default','onStarting','444kHfQTW','pluginName','getOwnPropertyDescriptor','84409UxFpro','2293511ifoUUS','prototype','open','error','close','toPrimitive','10KgdgAQ','dispose','117saBsFN','headers','string','387373DIGfTC','getConfig','version','message','object','add','decorate','_httpService','36XEWiqK','175869IFjEgh','symbol','1.0.0-insiders.20260701-0ef51b0','@univerjs-pro/collaboration-client-node','customHeaders','_configService','iterator','collaboration-client-node.config','call','removeEventListener','4124okpRLn','send','pipe','_injector','12JtUeHz','665646CVHHuA','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','30760oIvBDj','createSocket','function','length','56BdPFUI','next'];_0x4279=function(){return _0x5e5a24;};return _0x4279();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x15e7(_0x3cc28c,_0x1c5168){_0x3cc28c=_0x3cc28c-0x13d;const _0x41ae8b=_0x41ae();let _0x15e7df=_0x41ae8b[_0x3cc28c];return _0x15e7df;}function _0x41ae(){const _0x43303e=['registerDependencies','send','toDisposable','close','call','pluginName','toStringTag','ISocketService','_configService','WebSocket','iterator','collaboration-client-node.config','UniverProCollaborationClientNode','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs/network','Plugin','COLLABORATION_CLIENT_NODE_CONFIG_KEY','headers','10377240yNPCzn','onStarting','set','decorate','35UpbuJi','constructor','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','string','UniverProCollaboration','_doCreateSocket','version','685812kEEcZE','default','HTTPService','DependentOn','_httpService','27970ikJDiq','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','customHeaders','1.0.0-alpha.1','amd','prototype','add','959896qLQcDe','object','ILogService','message','setConfig','@univerjs-pro/collaboration-client','getConfig','_injector','removeEventListener','@univerjs/core','IConfigService','next','pipe','exports','@univerjs-pro/collaboration-client-node','symbol','defineProperty','DisposableCollection','getOwnPropertyDescriptor','8049304ctipGc','open','share','Observable','function','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Inject','ISnapshotServerService','290vmXFOg','registerHTTPInterceptor','rxjs','length','_registerDependencies','error','464394ziFWmq','1400463hJobqA','addEventListener','Injector','createSocket','UniverCollaborationClientPlugin','225isgCnF','packageName','@univerjs-pro/collaboration'];_0x41ae=function(){return _0x43303e;};return _0x41ae();}(function(_0x6a458,_0x4caa13){const _0x4a81d1=_0x15e7,_0x33765b=_0x6a458();while(!![]){try{const _0x361e1a=-parseInt(_0x4a81d1(0x164))/0x1+-parseInt(_0x4a81d1(0x15d))/0x2*(parseInt(_0x4a81d1(0x18b))/0x3)+parseInt(_0x4a81d1(0x158))/0x4*(parseInt(_0x4a81d1(0x151))/0x5)+-parseInt(_0x4a81d1(0x14d))/0x6+-parseInt(_0x4a81d1(0x185))/0x7+-parseInt(_0x4a81d1(0x177))/0x8+-parseInt(_0x4a81d1(0x186))/0x9*(-parseInt(_0x4a81d1(0x17f))/0xa);if(_0x361e1a===_0x4caa13)break;else _0x33765b['push'](_0x33765b['shift']());}catch(_0xc2d586){_0x33765b['push'](_0x33765b['shift']());}}}(_0x41ae,0xdc346),function(_0x2e5aea,_0x106c15){const _0x399803=_0x15e7;typeof exports=='object'&&typeof module<'u'?_0x106c15(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x399803(0x17b)&&define[_0x399803(0x161)]?define([_0x399803(0x171),_0x399803(0x169),_0x399803(0x16d),_0x399803(0x149),_0x399803(0x181),_0x399803(0x18d)],_0x106c15):(_0x2e5aea=typeof globalThis<'u'?globalThis:_0x2e5aea||self,_0x106c15(_0x2e5aea[_0x399803(0x147)]={},_0x2e5aea['UniverProCollaborationClient'],_0x2e5aea['UniverCore'],_0x2e5aea['UniverNetwork'],_0x2e5aea[_0x399803(0x181)],_0x2e5aea[_0x399803(0x155)]));}(this,function(_0x3a2596,_0x551afe,_0x25ab72,_0x41dcff,_0x5e5747,_0x16a79e){const _0x490e04=_0x15e7;Object[_0x490e04(0x174)](_0x3a2596,Symbol[_0x490e04(0x141)],{'value':'Module'});var _0x17a4ac=(_0x35b320,_0xaccb39)=>()=>(_0xaccb39||(_0x35b320((_0xaccb39={'exports':{}})[_0x490e04(0x171)],_0xaccb39),_0x35b320=null),_0xaccb39[_0x490e04(0x171)]);let _0x15958f=_0x490e04(0x146),_0xbb9016={};var _0x946850=_0x490e04(0x172),_0x1c1c2a=_0x490e04(0x160),_0x44e35d=_0x17a4ac((_0x54d45c,_0x168991)=>{const _0x6b3a08=_0x490e04;_0x168991[_0x6b3a08(0x171)]=function(){const _0x2b007b=_0x6b3a08;throw Error(_0x2b007b(0x153));};})();function _0x30738e(_0x2c00be,_0x36e986){return function(_0x2e2537,_0x145102){_0x36e986(_0x2e2537,_0x145102,_0x2c00be);};}function _0x1b6218(_0x320c56,_0xc25ebc,_0x453c11,_0x559469){const _0x33732a=_0x490e04;var _0x19cdb0=arguments[_0x33732a(0x182)],_0x4aced6=_0x19cdb0<0x3?_0xc25ebc:_0x559469===null?_0x559469=Object[_0x33732a(0x176)](_0xc25ebc,_0x453c11):_0x559469,_0x283261;if(typeof Reflect==_0x33732a(0x165)&&typeof Reflect[_0x33732a(0x150)]=='function')_0x4aced6=Reflect['decorate'](_0x320c56,_0xc25ebc,_0x453c11,_0x559469);else{for(var _0x5d32ad=_0x320c56[_0x33732a(0x182)]-0x1;_0x5d32ad>=0x0;_0x5d32ad--)(_0x283261=_0x320c56[_0x5d32ad])&&(_0x4aced6=(_0x19cdb0<0x3?_0x283261(_0x4aced6):_0x19cdb0>0x3?_0x283261(_0xc25ebc,_0x453c11,_0x4aced6):_0x283261(_0xc25ebc,_0x453c11))||_0x4aced6);}return _0x19cdb0>0x3&&_0x4aced6&&Object[_0x33732a(0x174)](_0xc25ebc,_0x453c11,_0x4aced6),_0x4aced6;}let _0x3833d0=class extends _0x25ab72['Disposable']{constructor(_0x131d8a){const _0x1e79c3=_0x490e04;super(),this[_0x1e79c3(0x143)]=_0x131d8a;}[_0x490e04(0x189)](_0x22e93b){const _0x1d514e=_0x490e04;var _0x127112;let _0x10418d=((_0x127112=this[_0x1d514e(0x143)][_0x1d514e(0x16a)](_0x551afe[_0x1d514e(0x17c)]))==null?void 0x0:_0x127112[_0x1d514e(0x15f)])||{};try{let _0x58ddd2=new _0x44e35d[(_0x1d514e(0x144))](_0x22e93b,{'headers':{..._0x10418d}}),_0x18a3de=new _0x25ab72[(_0x1d514e(0x175))]();return{'URL':_0x22e93b,'close':(_0x9c5418,_0x1f7624)=>{_0x58ddd2['close'](_0x9c5418,_0x1f7624),_0x18a3de['dispose']();},'send':_0x1f2259=>{const _0x1495c9=_0x1d514e;_0x58ddd2[_0x1495c9(0x18f)](_0x1f2259);},'open$':new _0x5e5747[(_0x1d514e(0x17a))](_0x57d7a2=>{const _0x4ff483=_0x1d514e;let _0x386200=_0x28232f=>_0x57d7a2[_0x4ff483(0x16f)](_0x28232f);_0x58ddd2[_0x4ff483(0x187)](_0x4ff483(0x178),_0x386200),_0x18a3de[_0x4ff483(0x163)]((0x0,_0x25ab72[_0x4ff483(0x13d)])(()=>_0x58ddd2[_0x4ff483(0x16c)]('open',_0x386200)));})[_0x1d514e(0x170)]((0x0,_0x5e5747[_0x1d514e(0x179)])()),'close$':new _0x5e5747['Observable'](_0x5be5c5=>{const _0x33dd52=_0x1d514e;let _0x5f1775=_0x22f081=>_0x5be5c5[_0x33dd52(0x16f)](_0x22f081);_0x58ddd2[_0x33dd52(0x187)](_0x33dd52(0x13e),_0x5f1775),_0x18a3de[_0x33dd52(0x163)]((0x0,_0x25ab72[_0x33dd52(0x13d)])(()=>_0x58ddd2[_0x33dd52(0x16c)](_0x33dd52(0x13e),_0x5f1775)));})['pipe']((0x0,_0x5e5747['share'])()),'error$':new _0x5e5747[(_0x1d514e(0x17a))](_0x1db46c=>{const _0xca2018=_0x1d514e;let _0x55d15e=_0x5673fa=>_0x1db46c['next'](_0x5673fa);_0x58ddd2[_0xca2018(0x187)]('error',_0x55d15e),_0x18a3de[_0xca2018(0x163)]((0x0,_0x25ab72[_0xca2018(0x13d)])(()=>_0x58ddd2[_0xca2018(0x16c)](_0xca2018(0x184),_0x55d15e)));})['pipe']((0x0,_0x5e5747['share'])()),'message$':new _0x5e5747[(_0x1d514e(0x17a))](_0x1752bc=>{const _0x47a9dd=_0x1d514e;let _0x146c34=_0x1a3256=>_0x1752bc[_0x47a9dd(0x16f)](_0x1a3256);_0x58ddd2[_0x47a9dd(0x187)](_0x47a9dd(0x167),_0x146c34),_0x18a3de[_0x47a9dd(0x163)]((0x0,_0x25ab72[_0x47a9dd(0x13d)])(()=>_0x58ddd2['removeEventListener'](_0x47a9dd(0x167),_0x146c34)));})[_0x1d514e(0x170)]((0x0,_0x5e5747['share'])())};}catch(_0x16405d){return console['error'](_0x16405d),null;}}};_0x3833d0=_0x1b6218([_0x30738e(0x0,_0x25ab72[_0x490e04(0x16e)])],_0x3833d0);function _0x251c91(_0x1652b2){'@babel/helpers - typeof';const _0x150583=_0x490e04;return _0x251c91=typeof Symbol==_0x150583(0x17b)&&typeof Symbol[_0x150583(0x145)]==_0x150583(0x173)?function(_0x32f735){return typeof _0x32f735;}:function(_0x573279){const _0x2a5cc9=_0x150583;return _0x573279&&typeof Symbol==_0x2a5cc9(0x17b)&&_0x573279[_0x2a5cc9(0x152)]===Symbol&&_0x573279!==Symbol[_0x2a5cc9(0x162)]?'symbol':typeof _0x573279;},_0x251c91(_0x1652b2);}function _0x5d42ea(_0xfaa4cf,_0x3b1df8){const _0xfa313f=_0x490e04;if(_0x251c91(_0xfaa4cf)!='object'||!_0xfaa4cf)return _0xfaa4cf;var _0x123660=_0xfaa4cf[Symbol['toPrimitive']];if(_0x123660!==void 0x0){var _0x5c1d2b=_0x123660[_0xfa313f(0x13f)](_0xfaa4cf,_0x3b1df8||_0xfa313f(0x159));if(_0x251c91(_0x5c1d2b)!=_0xfa313f(0x165))return _0x5c1d2b;throw TypeError(_0xfa313f(0x148));}return(_0x3b1df8===_0xfa313f(0x154)?String:Number)(_0xfaa4cf);}function _0x5a1bff(_0xf75370){const _0x134cae=_0x490e04;var _0x13d796=_0x5d42ea(_0xf75370,_0x134cae(0x154));return _0x251c91(_0x13d796)==_0x134cae(0x173)?_0x13d796:_0x13d796+'';}function _0x4cc3f2(_0x3661fd,_0x57837e,_0x14f83e){const _0x7985dc=_0x490e04;return(_0x57837e=_0x5a1bff(_0x57837e))in _0x3661fd?Object[_0x7985dc(0x174)](_0x3661fd,_0x57837e,{'value':_0x14f83e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3661fd[_0x57837e]=_0x14f83e,_0x3661fd;}let _0x3dd56b=class extends _0x25ab72[_0x490e04(0x14a)]{constructor(_0x97c411=_0xbb9016,_0x4624c5,_0x2b62aa){const _0x101372=_0x490e04;super(),this[_0x101372(0x143)]=_0x4624c5,this[_0x101372(0x16b)]=_0x2b62aa,this[_0x101372(0x143)][_0x101372(0x168)](_0x15958f,_0x97c411);}[_0x490e04(0x14e)](){const _0x17d502=_0x490e04;this[_0x17d502(0x183)]();}[_0x490e04(0x183)](){const _0x43aa54=_0x490e04;(0x0,_0x25ab72[_0x43aa54(0x18e)])(this[_0x43aa54(0x16b)],[[_0x41dcff[_0x43aa54(0x142)],{'useClass':_0x3833d0}]]);}};_0x4cc3f2(_0x3dd56b,_0x490e04(0x140),_0x490e04(0x15e)),_0x4cc3f2(_0x3dd56b,_0x490e04(0x18c),_0x946850),_0x4cc3f2(_0x3dd56b,_0x490e04(0x157),_0x1c1c2a),_0x3dd56b=_0x1b6218([(0x0,_0x25ab72[_0x490e04(0x15b)])(_0x551afe[_0x490e04(0x18a)]),_0x30738e(0x1,_0x25ab72['IConfigService']),_0x30738e(0x2,(0x0,_0x25ab72[_0x490e04(0x17d)])(_0x25ab72[_0x490e04(0x188)]))],_0x3dd56b);let _0x421366=class extends _0x551afe['CollaborationSocketService']{constructor(_0x31da9c,_0x3ed3fe,_0x30dab3,_0x590927,_0x58ffa0){const _0x37dc7e=_0x490e04;super(_0x31da9c,_0x3ed3fe,_0x30dab3,_0x590927,_0x58ffa0);let _0x1c4f27=this['_configService']['getConfig'](_0x551afe['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x37dc7e(0x15c)][_0x37dc7e(0x180)]({'interceptor':(_0x24dc71,_0x137025)=>{const _0x4fc501=_0x37dc7e;let _0x1610be=_0x24dc71[_0x4fc501(0x14c)];if(_0x1c4f27!=null&&_0x1c4f27[_0x4fc501(0x15f)]){for(let _0x2486a3 in _0x1c4f27[_0x4fc501(0x15f)])_0x1610be[_0x4fc501(0x14f)](_0x2486a3,_0x1c4f27[_0x4fc501(0x15f)][_0x2486a3]);}return _0x137025(_0x24dc71);}});}async[_0x490e04(0x189)](_0x5d9657){const _0xa83f7d=_0x490e04;return this[_0xa83f7d(0x156)](_0x5d9657);}};_0x421366=_0x1b6218([_0x30738e(0x0,(0x0,_0x25ab72['Inject'])(_0x25ab72[_0x490e04(0x188)])),_0x30738e(0x1,(0x0,_0x25ab72['Inject'])(_0x41dcff[_0x490e04(0x15a)])),_0x30738e(0x2,_0x25ab72[_0x490e04(0x16e)]),_0x30738e(0x3,_0x25ab72[_0x490e04(0x166)]),_0x30738e(0x4,_0x16a79e[_0x490e04(0x17e)])],_0x421366),_0x3a2596[_0x490e04(0x14b)]=_0x15958f,Object[_0x490e04(0x174)](_0x3a2596,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x421366;}}),Object[_0x490e04(0x174)](_0x3a2596,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _0x3dd56b;}});}));
1
+ (function(_0x1c0ab5,_0x426607){const _0x18d192=_0x300a,_0x2eede4=_0x1c0ab5();while(!![]){try{const _0x5d2ab=-parseInt(_0x18d192(0xeb))/0x1+-parseInt(_0x18d192(0xb4))/0x2+parseInt(_0x18d192(0xa6))/0x3+-parseInt(_0x18d192(0xe4))/0x4+-parseInt(_0x18d192(0xaf))/0x5*(-parseInt(_0x18d192(0xb2))/0x6)+-parseInt(_0x18d192(0xe8))/0x7+parseInt(_0x18d192(0xb5))/0x8*(parseInt(_0x18d192(0xd4))/0x9);if(_0x5d2ab===_0x426607)break;else _0x2eede4['push'](_0x2eede4['shift']());}catch(_0x481326){_0x2eede4['push'](_0x2eede4['shift']());}}}(_0x54ea,0x8bf73),function(_0x208f5a,_0xe84c85){const _0x12282c=_0x300a;typeof exports==_0x12282c(0xa8)&&typeof module<'u'?_0xe84c85(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x12282c(0xdf)&&define[_0x12282c(0xa2)]?define([_0x12282c(0xc5),_0x12282c(0xc1),'@univerjs/core',_0x12282c(0xb3),_0x12282c(0xd6),_0x12282c(0xcc)],_0xe84c85):(_0x208f5a=typeof globalThis<'u'?globalThis:_0x208f5a||self,_0xe84c85(_0x208f5a[_0x12282c(0xbe)]={},_0x208f5a['UniverProCollaborationClient'],_0x208f5a['UniverCore'],_0x208f5a[_0x12282c(0xe2)],_0x208f5a[_0x12282c(0xd6)],_0x208f5a[_0x12282c(0xd8)]));}(this,function(_0x40ba06,_0x1f98e3,_0xd1e466,_0x5b2f8a,_0x326cdd,_0x374316){const _0x5d4186=_0x300a;Object[_0x5d4186(0xdb)](_0x40ba06,Symbol[_0x5d4186(0xaa)],{'value':_0x5d4186(0xda)});var _0x32b80b=(_0x5aa44e,_0x380671)=>()=>(_0x380671||(_0x5aa44e((_0x380671={'exports':{}})[_0x5d4186(0xc5)],_0x380671),_0x5aa44e=null),_0x380671[_0x5d4186(0xc5)]);let _0x2f3b9e=_0x5d4186(0xe7),_0x48fd1d={};var _0xe9010d=_0x5d4186(0xc3),_0x4a1215=_0x5d4186(0xe6),_0x52cd82=_0x32b80b((_0x553e9a,_0x4221bd)=>{const _0xb9b691=_0x5d4186;_0x4221bd[_0xb9b691(0xc5)]=function(){const _0x2ff102=_0xb9b691;throw Error(_0x2ff102(0xa1));};})();function _0x6dd2f3(_0x306c3f,_0x2f884f){return function(_0x380808,_0x64c9a4){_0x2f884f(_0x380808,_0x64c9a4,_0x306c3f);};}function _0x1dcfde(_0x18f238,_0xe718d4,_0x29ed50,_0x1f1d08){const _0x2f1814=_0x5d4186;var _0x52d8cf=arguments['length'],_0x4dd04e=_0x52d8cf<0x3?_0xe718d4:_0x1f1d08===null?_0x1f1d08=Object[_0x2f1814(0xb9)](_0xe718d4,_0x29ed50):_0x1f1d08,_0x49e4d0;if(typeof Reflect==_0x2f1814(0xa8)&&typeof Reflect[_0x2f1814(0xc9)]==_0x2f1814(0xdf))_0x4dd04e=Reflect['decorate'](_0x18f238,_0xe718d4,_0x29ed50,_0x1f1d08);else{for(var _0x2547af=_0x18f238['length']-0x1;_0x2547af>=0x0;_0x2547af--)(_0x49e4d0=_0x18f238[_0x2547af])&&(_0x4dd04e=(_0x52d8cf<0x3?_0x49e4d0(_0x4dd04e):_0x52d8cf>0x3?_0x49e4d0(_0xe718d4,_0x29ed50,_0x4dd04e):_0x49e4d0(_0xe718d4,_0x29ed50))||_0x4dd04e);}return _0x52d8cf>0x3&&_0x4dd04e&&Object['defineProperty'](_0xe718d4,_0x29ed50,_0x4dd04e),_0x4dd04e;}let _0x5cd0cf=class extends _0xd1e466[_0x5d4186(0xb1)]{constructor(_0x49dec4){super(),this['_configService']=_0x49dec4;}[_0x5d4186(0xbc)](_0x24f876){const _0x38573=_0x5d4186;var _0x1b3ca3;let _0x1a6b8d=((_0x1b3ca3=this[_0x38573(0xbf)][_0x38573(0xcd)](_0x1f98e3['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x1b3ca3[_0x38573(0xa7)])||{};try{let _0xf5d90b=new _0x52cd82[(_0x38573(0xcf))](_0x24f876,{'headers':{..._0x1a6b8d}}),_0x15f763=new _0xd1e466['DisposableCollection']();return{'URL':_0x24f876,'close':(_0x3aa960,_0x5019b8)=>{const _0x288e09=_0x38573;_0xf5d90b[_0x288e09(0xab)](_0x3aa960,_0x5019b8),_0x15f763[_0x288e09(0xac)]();},'send':_0x1d9386=>{const _0x2856de=_0x38573;_0xf5d90b[_0x2856de(0xce)](_0x1d9386);},'open$':new _0x326cdd['Observable'](_0x4ec5b2=>{const _0x423382=_0x38573;let _0x2deaff=_0x2ea719=>_0x4ec5b2[_0x423382(0xd2)](_0x2ea719);_0xf5d90b[_0x423382(0xad)]('open',_0x2deaff),_0x15f763[_0x423382(0xd7)]((0x0,_0xd1e466[_0x423382(0xec)])(()=>_0xf5d90b[_0x423382(0xbb)](_0x423382(0xc2),_0x2deaff)));})['pipe']((0x0,_0x326cdd[_0x38573(0xc7)])()),'close$':new _0x326cdd[(_0x38573(0xd0))](_0x1b0151=>{const _0x3067a9=_0x38573;let _0x191d7e=_0x3a204f=>_0x1b0151[_0x3067a9(0xd2)](_0x3a204f);_0xf5d90b[_0x3067a9(0xad)]('close',_0x191d7e),_0x15f763['add']((0x0,_0xd1e466[_0x3067a9(0xec)])(()=>_0xf5d90b[_0x3067a9(0xbb)](_0x3067a9(0xab),_0x191d7e)));})['pipe']((0x0,_0x326cdd[_0x38573(0xc7)])()),'error$':new _0x326cdd[(_0x38573(0xd0))](_0xae63a9=>{const _0x1558c0=_0x38573;let _0x1e4cd2=_0x8c12e3=>_0xae63a9[_0x1558c0(0xd2)](_0x8c12e3);_0xf5d90b[_0x1558c0(0xad)](_0x1558c0(0xc4),_0x1e4cd2),_0x15f763[_0x1558c0(0xd7)]((0x0,_0xd1e466[_0x1558c0(0xec)])(()=>_0xf5d90b['removeEventListener'](_0x1558c0(0xc4),_0x1e4cd2)));})[_0x38573(0xde)]((0x0,_0x326cdd['share'])()),'message$':new _0x326cdd[(_0x38573(0xd0))](_0x3b0b79=>{const _0x37b1f4=_0x38573;let _0x52ddc8=_0x725829=>_0x3b0b79[_0x37b1f4(0xd2)](_0x725829);_0xf5d90b[_0x37b1f4(0xad)](_0x37b1f4(0xe9),_0x52ddc8),_0x15f763['add']((0x0,_0xd1e466['toDisposable'])(()=>_0xf5d90b[_0x37b1f4(0xbb)](_0x37b1f4(0xe9),_0x52ddc8)));})[_0x38573(0xde)]((0x0,_0x326cdd['share'])())};}catch(_0x3f39ca){return console[_0x38573(0xc4)](_0x3f39ca),null;}}};_0x5cd0cf=_0x1dcfde([_0x6dd2f3(0x0,_0xd1e466[_0x5d4186(0xd3)])],_0x5cd0cf);function _0x437421(_0x4814f0){'@babel/helpers - typeof';const _0x285f27=_0x5d4186;return _0x437421=typeof Symbol==_0x285f27(0xdf)&&typeof Symbol[_0x285f27(0xbd)]=='symbol'?function(_0x2b345b){return typeof _0x2b345b;}:function(_0x4d3237){const _0x210eef=_0x285f27;return _0x4d3237&&typeof Symbol==_0x210eef(0xdf)&&_0x4d3237[_0x210eef(0xdc)]===Symbol&&_0x4d3237!==Symbol[_0x210eef(0xed)]?'symbol':typeof _0x4d3237;},_0x437421(_0x4814f0);}function _0x33d9e1(_0x232ae8,_0x73df22){const _0x42a916=_0x5d4186;if(_0x437421(_0x232ae8)!='object'||!_0x232ae8)return _0x232ae8;var _0x594833=_0x232ae8[Symbol[_0x42a916(0xa4)]];if(_0x594833!==void 0x0){var _0x27422e=_0x594833[_0x42a916(0xe1)](_0x232ae8,_0x73df22||'default');if(_0x437421(_0x27422e)!=_0x42a916(0xa8))return _0x27422e;throw TypeError(_0x42a916(0xea));}return(_0x73df22===_0x42a916(0xb7)?String:Number)(_0x232ae8);}function _0x8e0b20(_0x6ab8f2){const _0x5b9735=_0x5d4186;var _0x54b081=_0x33d9e1(_0x6ab8f2,_0x5b9735(0xb7));return _0x437421(_0x54b081)==_0x5b9735(0xe3)?_0x54b081:_0x54b081+'';}function _0x3cf7a9(_0x28c5e1,_0x51303e,_0x208fa0){const _0x150618=_0x5d4186;return(_0x51303e=_0x8e0b20(_0x51303e))in _0x28c5e1?Object[_0x150618(0xdb)](_0x28c5e1,_0x51303e,{'value':_0x208fa0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x28c5e1[_0x51303e]=_0x208fa0,_0x28c5e1;}let _0x5dd9d6=class extends _0xd1e466['Plugin']{constructor(_0x229b93=_0x48fd1d,_0x1f9d22,_0x250a2a){const _0x5dad38=_0x5d4186;super(),this[_0x5dad38(0xbf)]=_0x1f9d22,this['_injector']=_0x250a2a,this[_0x5dad38(0xbf)][_0x5dad38(0xee)](_0x2f3b9e,_0x229b93);}[_0x5d4186(0xd5)](){const _0x403609=_0x5d4186;this[_0x403609(0xe5)]();}[_0x5d4186(0xe5)](){const _0x365e72=_0x5d4186;(0x0,_0xd1e466[_0x365e72(0xca)])(this[_0x365e72(0xdd)],[[_0x5b2f8a[_0x365e72(0xb6)],{'useClass':_0x5cd0cf}]]);}};_0x3cf7a9(_0x5dd9d6,_0x5d4186(0xc0),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x3cf7a9(_0x5dd9d6,'packageName',_0xe9010d),_0x3cf7a9(_0x5dd9d6,_0x5d4186(0xb0),_0x4a1215),_0x5dd9d6=_0x1dcfde([(0x0,_0xd1e466[_0x5d4186(0xe0)])(_0x1f98e3[_0x5d4186(0xc6)]),_0x6dd2f3(0x1,_0xd1e466[_0x5d4186(0xd3)]),_0x6dd2f3(0x2,(0x0,_0xd1e466[_0x5d4186(0xcb)])(_0xd1e466[_0x5d4186(0xa3)]))],_0x5dd9d6);let _0x17fff8=class extends _0x1f98e3[_0x5d4186(0xb8)]{constructor(_0x45afcb,_0x337a17,_0x343d3a,_0x59e6f6,_0x312d06){const _0x9fa025=_0x5d4186;super(_0x45afcb,_0x337a17,_0x343d3a,_0x59e6f6,_0x312d06);let _0x23f8c5=this[_0x9fa025(0xbf)][_0x9fa025(0xcd)](_0x1f98e3[_0x9fa025(0xa9)]);this[_0x9fa025(0xef)][_0x9fa025(0xc8)]({'interceptor':(_0x3e1e96,_0x549255)=>{const _0x848689=_0x9fa025;let _0x35685c=_0x3e1e96[_0x848689(0xa5)];if(_0x23f8c5!=null&&_0x23f8c5['customHeaders']){for(let _0x1a625a in _0x23f8c5['customHeaders'])_0x35685c['set'](_0x1a625a,_0x23f8c5[_0x848689(0xa7)][_0x1a625a]);}return _0x549255(_0x3e1e96);}});}async[_0x5d4186(0xbc)](_0x1f869e){const _0x5ca64b=_0x5d4186;return this[_0x5ca64b(0xd1)](_0x1f869e);}};_0x17fff8=_0x1dcfde([_0x6dd2f3(0x0,(0x0,_0xd1e466['Inject'])(_0xd1e466[_0x5d4186(0xa3)])),_0x6dd2f3(0x1,(0x0,_0xd1e466[_0x5d4186(0xcb)])(_0x5b2f8a['HTTPService'])),_0x6dd2f3(0x2,_0xd1e466[_0x5d4186(0xd3)]),_0x6dd2f3(0x3,_0xd1e466['ILogService']),_0x6dd2f3(0x4,_0x374316[_0x5d4186(0xba)])],_0x17fff8),_0x40ba06['COLLABORATION_CLIENT_NODE_CONFIG_KEY']=_0x2f3b9e,Object[_0x5d4186(0xdb)](_0x40ba06,_0x5d4186(0xae),{'enumerable':!0x0,'get':function(){return _0x17fff8;}}),Object['defineProperty'](_0x40ba06,_0x5d4186(0xd9),{'enumerable':!0x0,'get':function(){return _0x5dd9d6;}});}));function _0x300a(_0x4a7849,_0x289059){_0x4a7849=_0x4a7849-0xa1;const _0x54eafe=_0x54ea();let _0x300a06=_0x54eafe[_0x4a7849];return _0x300a06;}function _0x54ea(){const _0x300f6b=['toPrimitive','headers','1724373dOgrnD','customHeaders','object','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','toStringTag','close','dispose','addEventListener','NodeCollaborationSocketService','2515FWBDMo','version','Disposable','9858pHQYab','@univerjs/network','1794906KeExme','24XvWkbB','ISocketService','string','CollaborationSocketService','getOwnPropertyDescriptor','ISnapshotServerService','removeEventListener','createSocket','iterator','UniverProCollaborationClientNode','_configService','pluginName','@univerjs-pro/collaboration-client','open','@univerjs-pro/collaboration-client-node','error','exports','UniverCollaborationClientPlugin','share','registerHTTPInterceptor','decorate','registerDependencies','Inject','@univerjs-pro/collaboration','getConfig','send','WebSocket','Observable','_doCreateSocket','next','IConfigService','7212222DiCFUG','onStarting','rxjs','add','UniverProCollaboration','UniverCollaborationClientNodePlugin','Module','defineProperty','constructor','_injector','pipe','function','DependentOn','call','UniverNetwork','symbol','2458472maQczP','_registerDependencies','1.0.0-insiders.20260701-0ef51b0','collaboration-client-node.config','5922833WkHtin','message','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','873805RNbsia','toDisposable','prototype','setConfig','_httpService','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','amd','Injector'];_0x54ea=function(){return _0x300f6b;};return _0x54ea();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-insiders.20260701-0ef51b0",
4
4
  "private": false,
5
5
  "description": "Node.js collaboration client plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -52,10 +52,10 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "ws": "8.20.1",
55
- "@univerjs-pro/collaboration": "1.0.0-alpha.1",
56
- "@univerjs-pro/collaboration-client": "1.0.0-alpha.1",
57
- "@univerjs/core": "1.0.0-alpha.1",
58
- "@univerjs/network": "1.0.0-alpha.1"
55
+ "@univerjs-pro/collaboration": "1.0.0-insiders.20260701-0ef51b0",
56
+ "@univerjs-pro/collaboration-client": "1.0.0-insiders.20260701-0ef51b0",
57
+ "@univerjs/core": "1.0.0-insiders.20260701-0ef51b0",
58
+ "@univerjs/network": "1.0.0-insiders.20260701-0ef51b0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/ws": "8.18.1",