@univerjs-pro/collaboration-client-node 0.19.0 → 0.20.0-insiders.20260411-27a8c24

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 _0x15c55e=_0x4c55;(function(_0x594457,_0x3dcc3e){const _0x1d0651=_0x4c55,_0x12cd88=_0x594457();while(!![]){try{const _0x1c9592=parseInt(_0x1d0651(0x1d2))/0x1+-parseInt(_0x1d0651(0x1b6))/0x2+parseInt(_0x1d0651(0x1b1))/0x3+parseInt(_0x1d0651(0x1d8))/0x4+-parseInt(_0x1d0651(0x1c5))/0x5+-parseInt(_0x1d0651(0x1ba))/0x6+parseInt(_0x1d0651(0x1bd))/0x7;if(_0x1c9592===_0x3dcc3e)break;else _0x12cd88['push'](_0x12cd88['shift']());}catch(_0x5a21c2){_0x12cd88['push'](_0x12cd88['shift']());}}}(_0x5b6f,0xa15ee),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x15c55e(0x1bc)}));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=_0x15c55e(0x1a4);Symbol(o);const s={};var c=_0x15c55e(0x1e0),l=_0x15c55e(0x1be);function u(_0x36defb,_0x1bd013){return function(_0x55abef,_0x5aee02){_0x1bd013(_0x55abef,_0x5aee02,_0x36defb);};}function _0x4c55(_0x2bf214,_0x1d2cba){_0x2bf214=_0x2bf214-0x1a4;const _0x5b6fd2=_0x5b6f();let _0x4c5567=_0x5b6fd2[_0x2bf214];return _0x4c5567;}function _0x5b6f(){const _0x18a56d=['onStarting','1522394RKvRnS','registerDependencies','close','IConfigService','5112228LobuLO','_httpService','Module','18302984BRDGoW','0.19.0','createSocket','_configService','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','Disposable','_injector','_doCreateSocket','6033830kkbWkD','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getConfig','next','open','constructor','share','error','Plugin','length','symbol','_registerDependencies','74674COjvlr','decorate','object','Injector','addEventListener','prototype','2101928okYSug','toPrimitive','UniverCollaborationClientPlugin','defineProperty','message','registerHTTPInterceptor','ISnapshotServerService','Inject','@univerjs-pro/collaboration-client-node','string','toDisposable','COLLABORATION_CLIENT_NODE_CONFIG_KEY','function','collaboration-client-node.config','setConfig','add','headers','UniverCollaborationClientNodePlugin','ILogService','customHeaders','pipe','getOwnPropertyDescriptor','default','iterator','version','DependentOn','798321LRUJpa','Observable','packageName','removeEventListener'];_0x5b6f=function(){return _0x18a56d;};return _0x5b6f();}function d(_0x57b3c8,_0x2171c6,_0x4c4cec,_0x4d836e){const _0x15b1bf=_0x15c55e;var _0x1041dd=arguments[_0x15b1bf(0x1cf)],_0x471257=_0x1041dd<0x3?_0x2171c6:_0x4d836e===null?_0x4d836e=Object[_0x15b1bf(0x1ac)](_0x2171c6,_0x4c4cec):_0x4d836e,_0x52db54;if(typeof Reflect==_0x15b1bf(0x1d4)&&typeof Reflect[_0x15b1bf(0x1d3)]=='function')_0x471257=Reflect[_0x15b1bf(0x1d3)](_0x57b3c8,_0x2171c6,_0x4c4cec,_0x4d836e);else{for(var _0x20c920=_0x57b3c8['length']-0x1;_0x20c920>=0x0;_0x20c920--)(_0x52db54=_0x57b3c8[_0x20c920])&&(_0x471257=(_0x1041dd<0x3?_0x52db54(_0x471257):_0x1041dd>0x3?_0x52db54(_0x2171c6,_0x4c4cec,_0x471257):_0x52db54(_0x2171c6,_0x4c4cec))||_0x471257);}return _0x1041dd>0x3&&_0x471257&&Object[_0x15b1bf(0x1db)](_0x2171c6,_0x4c4cec,_0x471257),_0x471257;}let f=class extends t[_0x15c55e(0x1c2)]{constructor(_0x56d9c9){const _0x386354=_0x15c55e;super(),this[_0x386354(0x1c0)]=_0x56d9c9;}[_0x15c55e(0x1bf)](_0x3aa8a5){const _0x152968=_0x15c55e;var _0x4c97bf;let _0x113f09=((_0x4c97bf=this[_0x152968(0x1c0)][_0x152968(0x1c8)](e[_0x152968(0x1c7)]))==null?void 0x0:_0x4c97bf[_0x152968(0x1aa)])||{};try{let _0x5574a5=new i['WebSocket'](_0x3aa8a5,{'headers':{..._0x113f09}}),_0x147ed6=new t['DisposableCollection']();return{'URL':_0x3aa8a5,'close':(_0x562e1a,_0x14acd6)=>{const _0x39dd8c=_0x152968;_0x5574a5[_0x39dd8c(0x1b8)](_0x562e1a,_0x14acd6),_0x147ed6['dispose']();},'send':_0x28d60b=>{_0x5574a5['send'](_0x28d60b);},'open$':new r[(_0x152968(0x1b2))](_0x19bc0c=>{const _0x1fa4d2=_0x152968;let _0x562bf5=_0x442c05=>_0x19bc0c[_0x1fa4d2(0x1c9)](_0x442c05);_0x5574a5['addEventListener']('open',_0x562bf5),_0x147ed6[_0x1fa4d2(0x1a6)]((0x0,t['toDisposable'])(()=>_0x5574a5[_0x1fa4d2(0x1b4)](_0x1fa4d2(0x1ca),_0x562bf5)));})[_0x152968(0x1ab)]((0x0,r[_0x152968(0x1cc)])()),'close$':new r[(_0x152968(0x1b2))](_0x517dc8=>{const _0x35f500=_0x152968;let _0x3a6d6d=_0x3ab97e=>_0x517dc8[_0x35f500(0x1c9)](_0x3ab97e);_0x5574a5[_0x35f500(0x1d6)](_0x35f500(0x1b8),_0x3a6d6d),_0x147ed6[_0x35f500(0x1a6)]((0x0,t[_0x35f500(0x1e2)])(()=>_0x5574a5[_0x35f500(0x1b4)](_0x35f500(0x1b8),_0x3a6d6d)));})[_0x152968(0x1ab)]((0x0,r[_0x152968(0x1cc)])()),'error$':new r[(_0x152968(0x1b2))](_0x11cb14=>{const _0x6f9432=_0x152968;let _0x562da6=_0x1c1f49=>_0x11cb14[_0x6f9432(0x1c9)](_0x1c1f49);_0x5574a5[_0x6f9432(0x1d6)](_0x6f9432(0x1cd),_0x562da6),_0x147ed6['add']((0x0,t['toDisposable'])(()=>_0x5574a5[_0x6f9432(0x1b4)](_0x6f9432(0x1cd),_0x562da6)));})[_0x152968(0x1ab)]((0x0,r[_0x152968(0x1cc)])()),'message$':new r[(_0x152968(0x1b2))](_0x1fdd40=>{const _0x100e34=_0x152968;let _0x7a3f4d=_0x3bf238=>_0x1fdd40[_0x100e34(0x1c9)](_0x3bf238);_0x5574a5[_0x100e34(0x1d6)](_0x100e34(0x1dc),_0x7a3f4d),_0x147ed6['add']((0x0,t['toDisposable'])(()=>_0x5574a5[_0x100e34(0x1b4)](_0x100e34(0x1dc),_0x7a3f4d)));})[_0x152968(0x1ab)]((0x0,r[_0x152968(0x1cc)])())};}catch(_0x335ea2){return console[_0x152968(0x1cd)](_0x335ea2),null;}}};f=d([u(0x0,t['IConfigService'])],f);function p(_0x366e5e){'@babel/helpers - typeof';const _0x9b816d=_0x15c55e;return p=typeof Symbol==_0x9b816d(0x1e4)&&typeof Symbol[_0x9b816d(0x1ae)]==_0x9b816d(0x1d0)?function(_0x2e1145){return typeof _0x2e1145;}:function(_0x1244c0){const _0x2ad535=_0x9b816d;return _0x1244c0&&typeof Symbol=='function'&&_0x1244c0[_0x2ad535(0x1cb)]===Symbol&&_0x1244c0!==Symbol[_0x2ad535(0x1d7)]?'symbol':typeof _0x1244c0;},p(_0x366e5e);}function m(_0x4c08e1,_0x4544c9){const _0x1b8a5d=_0x15c55e;if(p(_0x4c08e1)!='object'||!_0x4c08e1)return _0x4c08e1;var _0xd1d065=_0x4c08e1[Symbol[_0x1b8a5d(0x1d9)]];if(_0xd1d065!==void 0x0){var _0x36920b=_0xd1d065['call'](_0x4c08e1,_0x4544c9||_0x1b8a5d(0x1ad));if(p(_0x36920b)!='object')return _0x36920b;throw TypeError(_0x1b8a5d(0x1c6));}return(_0x4544c9===_0x1b8a5d(0x1e1)?String:Number)(_0x4c08e1);}function h(_0x457f3d){const _0x64cb8b=_0x15c55e;var _0x22ead5=m(_0x457f3d,'string');return p(_0x22ead5)==_0x64cb8b(0x1d0)?_0x22ead5:_0x22ead5+'';}function g(_0x8d734e,_0x3c40d4,_0x10c522){return(_0x3c40d4=h(_0x3c40d4))in _0x8d734e?Object['defineProperty'](_0x8d734e,_0x3c40d4,{'value':_0x10c522,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x8d734e[_0x3c40d4]=_0x10c522,_0x8d734e;}let _=class extends t[_0x15c55e(0x1ce)]{constructor(_0x3d0953=s,_0x4f2291,_0x3e19af){const _0x5d5668=_0x15c55e;super(),this['_configService']=_0x4f2291,this['_injector']=_0x3e19af,this['_configService'][_0x5d5668(0x1a5)](o,_0x3d0953);}[_0x15c55e(0x1b5)](){const _0x555559=_0x15c55e;this[_0x555559(0x1d1)]();}['_registerDependencies'](){const _0x41e8af=_0x15c55e;(0x0,t[_0x41e8af(0x1b7)])(this[_0x41e8af(0x1c3)],[[n['ISocketService'],{'useClass':f}]]);}};g(_,'pluginName',_0x15c55e(0x1c1)),g(_,_0x15c55e(0x1b3),c),g(_,_0x15c55e(0x1af),l),_=d([(0x0,t[_0x15c55e(0x1b0)])(e[_0x15c55e(0x1da)]),u(0x1,t['IConfigService']),u(0x2,(0x0,t[_0x15c55e(0x1df)])(t[_0x15c55e(0x1d5)]))],_);let v=class extends e['CollaborationSocketService']{constructor(_0x2610e1,_0x424d7d,_0x46f647,_0x55a8ce,_0x5114af){const _0x2b0642=_0x15c55e;super(_0x2610e1,_0x424d7d,_0x46f647,_0x55a8ce,_0x5114af);let _0xd26850=this[_0x2b0642(0x1c0)]['getConfig'](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x2b0642(0x1bb)][_0x2b0642(0x1dd)]({'interceptor':(_0x4dae11,_0xf706d)=>{const _0xaab9e5=_0x2b0642;let _0x7e4933=_0x4dae11[_0xaab9e5(0x1a7)];if(_0xd26850!=null&&_0xd26850[_0xaab9e5(0x1aa)]){for(let _0x1e574d in _0xd26850[_0xaab9e5(0x1aa)])_0x7e4933['set'](_0x1e574d,_0xd26850['customHeaders'][_0x1e574d]);}return _0xf706d(_0x4dae11);}});}async[_0x15c55e(0x1bf)](_0x4220a3){const _0x22c1c5=_0x15c55e;return this[_0x22c1c5(0x1c4)](_0x4220a3);}};v=d([u(0x0,(0x0,t[_0x15c55e(0x1df)])(t[_0x15c55e(0x1d5)])),u(0x1,(0x0,t[_0x15c55e(0x1df)])(n['HTTPService'])),u(0x2,t[_0x15c55e(0x1b9)]),u(0x3,t[_0x15c55e(0x1a9)]),u(0x4,a[_0x15c55e(0x1de)])],v),exports[_0x15c55e(0x1e3)]=o,Object[_0x15c55e(0x1db)](exports,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return v;}}),Object['defineProperty'](exports,_0x15c55e(0x1a8),{'enumerable':!0x0,'get':function(){return _;}});
1
+ const _0x350b47=_0x3814;(function(_0x427a12,_0x2e0b15){const _0x44c57e=_0x3814,_0x5e5307=_0x427a12();while(!![]){try{const _0x2fda8f=parseInt(_0x44c57e(0x10b))/0x1+-parseInt(_0x44c57e(0x10d))/0x2*(parseInt(_0x44c57e(0x108))/0x3)+parseInt(_0x44c57e(0x11c))/0x4+-parseInt(_0x44c57e(0xff))/0x5*(-parseInt(_0x44c57e(0xed))/0x6)+-parseInt(_0x44c57e(0xf1))/0x7*(-parseInt(_0x44c57e(0x115))/0x8)+-parseInt(_0x44c57e(0x100))/0x9+-parseInt(_0x44c57e(0x10c))/0xa;if(_0x2fda8f===_0x2e0b15)break;else _0x5e5307['push'](_0x5e5307['shift']());}catch(_0x5b8b91){_0x5e5307['push'](_0x5e5307['shift']());}}}(_0x3e98,0x34c8f),Object[_0x350b47(0x11a)](exports,Symbol['toStringTag'],{'value':'Module'}));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=_0x350b47(0x10f);Symbol(o);const s={};var c=_0x350b47(0x125),l='0.20.0-insiders.20260411-27a8c24';function u(_0x5adc20,_0x5386a6){return function(_0x45fbad,_0x8d8259){_0x5386a6(_0x45fbad,_0x8d8259,_0x5adc20);};}function d(_0x29d59b,_0x50733f,_0x4ae4bb,_0x204ed7){const _0x28023d=_0x350b47;var _0x375f85=arguments[_0x28023d(0x121)],_0x12ff4f=_0x375f85<0x3?_0x50733f:_0x204ed7===null?_0x204ed7=Object[_0x28023d(0x122)](_0x50733f,_0x4ae4bb):_0x204ed7,_0x267e55;if(typeof Reflect==_0x28023d(0x126)&&typeof Reflect[_0x28023d(0xf0)]==_0x28023d(0x104))_0x12ff4f=Reflect[_0x28023d(0xf0)](_0x29d59b,_0x50733f,_0x4ae4bb,_0x204ed7);else{for(var _0x5d99e8=_0x29d59b[_0x28023d(0x121)]-0x1;_0x5d99e8>=0x0;_0x5d99e8--)(_0x267e55=_0x29d59b[_0x5d99e8])&&(_0x12ff4f=(_0x375f85<0x3?_0x267e55(_0x12ff4f):_0x375f85>0x3?_0x267e55(_0x50733f,_0x4ae4bb,_0x12ff4f):_0x267e55(_0x50733f,_0x4ae4bb))||_0x12ff4f);}return _0x375f85>0x3&&_0x12ff4f&&Object[_0x28023d(0x11a)](_0x50733f,_0x4ae4bb,_0x12ff4f),_0x12ff4f;}function _0x3e98(){const _0x16c6fe=['32IVHtnh','createSocket','prototype','headers','registerHTTPInterceptor','defineProperty','_injector','158312LyDDir','ISnapshotServerService','addEventListener','IConfigService','symbol','length','getOwnPropertyDescriptor','error','ISocketService','@univerjs-pro/collaboration-client-node','object','_doCreateSocket','send','string','getConfig','pipe','onStarting','toPrimitive','customHeaders','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','Inject','1541802EOeZHd','_registerDependencies','call','decorate','689731twYtHZ','DisposableCollection','toDisposable','iterator','_configService','version','close','removeEventListener','HTTPService','Observable','Disposable','dispose','set','next','5BCEWTz','3287358IGFxlG','Injector','CollaborationSocketService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','function','UniverCollaborationClientNodePlugin','UniverCollaborationClientPlugin','pluginName','183gcwaYK','constructor','registerDependencies','381604zyvyZx','3086050DpakvW','5974KlGSuH','Plugin','collaboration-client-node.config','add','message','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','open','share'];_0x3e98=function(){return _0x16c6fe;};return _0x3e98();}let f=class extends t[_0x350b47(0xfb)]{constructor(_0x3e35de){const _0x5f3dab=_0x350b47;super(),this[_0x5f3dab(0xf5)]=_0x3e35de;}[_0x350b47(0x116)](_0x111179){const _0xb86791=_0x350b47;var _0x55858d;let _0x3aebd2=((_0x55858d=this['_configService'][_0xb86791(0xe6)](e[_0xb86791(0x103)]))==null?void 0x0:_0x55858d[_0xb86791(0xea)])||{};try{let _0x3dafd3=new i['WebSocket'](_0x111179,{'headers':{..._0x3aebd2}}),_0x2e7d91=new t[(_0xb86791(0xf2))]();return{'URL':_0x111179,'close':(_0x213d57,_0x4dcee8)=>{const _0x23502a=_0xb86791;_0x3dafd3[_0x23502a(0xf7)](_0x213d57,_0x4dcee8),_0x2e7d91[_0x23502a(0xfc)]();},'send':_0x13e78e=>{const _0xb360bd=_0xb86791;_0x3dafd3[_0xb360bd(0x128)](_0x13e78e);},'open$':new r[(_0xb86791(0xfa))](_0x3534d2=>{const _0x3c9d79=_0xb86791;let _0x17a4ac=_0x5d16b4=>_0x3534d2['next'](_0x5d16b4);_0x3dafd3['addEventListener'](_0x3c9d79(0x113),_0x17a4ac),_0x2e7d91[_0x3c9d79(0x110)]((0x0,t[_0x3c9d79(0xf3)])(()=>_0x3dafd3[_0x3c9d79(0xf8)](_0x3c9d79(0x113),_0x17a4ac)));})['pipe']((0x0,r[_0xb86791(0x114)])()),'close$':new r[(_0xb86791(0xfa))](_0x2758e9=>{const _0x2b5821=_0xb86791;let _0x51d7f2=_0x1a2c98=>_0x2758e9[_0x2b5821(0xfe)](_0x1a2c98);_0x3dafd3['addEventListener'](_0x2b5821(0xf7),_0x51d7f2),_0x2e7d91[_0x2b5821(0x110)]((0x0,t[_0x2b5821(0xf3)])(()=>_0x3dafd3[_0x2b5821(0xf8)](_0x2b5821(0xf7),_0x51d7f2)));})[_0xb86791(0xe7)]((0x0,r['share'])()),'error$':new r[(_0xb86791(0xfa))](_0x3a1293=>{const _0x5504b3=_0xb86791;let _0x50d60e=_0x333730=>_0x3a1293[_0x5504b3(0xfe)](_0x333730);_0x3dafd3[_0x5504b3(0x11e)]('error',_0x50d60e),_0x2e7d91['add']((0x0,t[_0x5504b3(0xf3)])(()=>_0x3dafd3[_0x5504b3(0xf8)](_0x5504b3(0x123),_0x50d60e)));})[_0xb86791(0xe7)]((0x0,r['share'])()),'message$':new r[(_0xb86791(0xfa))](_0x5b3411=>{const _0x36b74d=_0xb86791;let _0x49a8ce=_0x15d9c6=>_0x5b3411[_0x36b74d(0xfe)](_0x15d9c6);_0x3dafd3[_0x36b74d(0x11e)](_0x36b74d(0x111),_0x49a8ce),_0x2e7d91[_0x36b74d(0x110)]((0x0,t['toDisposable'])(()=>_0x3dafd3['removeEventListener'](_0x36b74d(0x111),_0x49a8ce)));})[_0xb86791(0xe7)]((0x0,r[_0xb86791(0x114)])())};}catch(_0x1bd284){return console[_0xb86791(0x123)](_0x1bd284),null;}}};f=d([u(0x0,t[_0x350b47(0x11f)])],f);function p(_0x7b9f58){'@babel/helpers - typeof';const _0x35fd6e=_0x350b47;return p=typeof Symbol==_0x35fd6e(0x104)&&typeof Symbol[_0x35fd6e(0xf4)]=='symbol'?function(_0x125a0e){return typeof _0x125a0e;}:function(_0x29c176){const _0x445e92=_0x35fd6e;return _0x29c176&&typeof Symbol==_0x445e92(0x104)&&_0x29c176[_0x445e92(0x109)]===Symbol&&_0x29c176!==Symbol[_0x445e92(0x117)]?_0x445e92(0x120):typeof _0x29c176;},p(_0x7b9f58);}function m(_0x3419db,_0x41a1aa){const _0x1733a6=_0x350b47;if(p(_0x3419db)!=_0x1733a6(0x126)||!_0x3419db)return _0x3419db;var _0x4ac3c2=_0x3419db[Symbol[_0x1733a6(0xe9)]];if(_0x4ac3c2!==void 0x0){var _0x1cd7af=_0x4ac3c2[_0x1733a6(0xef)](_0x3419db,_0x41a1aa||'default');if(p(_0x1cd7af)!=_0x1733a6(0x126))return _0x1cd7af;throw TypeError(_0x1733a6(0x112));}return(_0x41a1aa===_0x1733a6(0xe5)?String:Number)(_0x3419db);}function h(_0x308524){var _0x38a198=m(_0x308524,'string');return p(_0x38a198)=='symbol'?_0x38a198:_0x38a198+'';}function g(_0x52d323,_0x4a9485,_0x319da2){const _0x8d9a79=_0x350b47;return(_0x4a9485=h(_0x4a9485))in _0x52d323?Object[_0x8d9a79(0x11a)](_0x52d323,_0x4a9485,{'value':_0x319da2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52d323[_0x4a9485]=_0x319da2,_0x52d323;}let _=class extends t[_0x350b47(0x10e)]{constructor(_0x47b039=s,_0x3f9293,_0x58896e){const _0x5b37f8=_0x350b47;super(),this['_configService']=_0x3f9293,this[_0x5b37f8(0x11b)]=_0x58896e,this[_0x5b37f8(0xf5)]['setConfig'](o,_0x47b039);}[_0x350b47(0xe8)](){const _0x3d0f14=_0x350b47;this[_0x3d0f14(0xee)]();}[_0x350b47(0xee)](){const _0x27c829=_0x350b47;(0x0,t[_0x27c829(0x10a)])(this[_0x27c829(0x11b)],[[n[_0x27c829(0x124)],{'useClass':f}]]);}};g(_,_0x350b47(0x107),_0x350b47(0xeb)),g(_,'packageName',c),g(_,_0x350b47(0xf6),l),_=d([(0x0,t['DependentOn'])(e[_0x350b47(0x106)]),u(0x1,t['IConfigService']),u(0x2,(0x0,t[_0x350b47(0xec)])(t[_0x350b47(0x101)]))],_);function _0x3814(_0x1ebcbc,_0x5b44fa){_0x1ebcbc=_0x1ebcbc-0xe5;const _0x3e98aa=_0x3e98();let _0x381447=_0x3e98aa[_0x1ebcbc];return _0x381447;}let v=class extends e[_0x350b47(0x102)]{constructor(_0x12b753,_0x28f472,_0x700023,_0x473ec5,_0x5f42c3){const _0x2f473e=_0x350b47;super(_0x12b753,_0x28f472,_0x700023,_0x473ec5,_0x5f42c3);let _0x3e0f35=this[_0x2f473e(0xf5)][_0x2f473e(0xe6)](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this['_httpService'][_0x2f473e(0x119)]({'interceptor':(_0x57d019,_0x2aff8f)=>{const _0xf947f=_0x2f473e;let _0x313f02=_0x57d019[_0xf947f(0x118)];if(_0x3e0f35!=null&&_0x3e0f35[_0xf947f(0xea)]){for(let _0x5dc5b8 in _0x3e0f35['customHeaders'])_0x313f02[_0xf947f(0xfd)](_0x5dc5b8,_0x3e0f35[_0xf947f(0xea)][_0x5dc5b8]);}return _0x2aff8f(_0x57d019);}});}async[_0x350b47(0x116)](_0x21c1e1){const _0x323ba7=_0x350b47;return this[_0x323ba7(0x127)](_0x21c1e1);}};v=d([u(0x0,(0x0,t[_0x350b47(0xec)])(t['Injector'])),u(0x1,(0x0,t[_0x350b47(0xec)])(n[_0x350b47(0xf9)])),u(0x2,t[_0x350b47(0x11f)]),u(0x3,t['ILogService']),u(0x4,a[_0x350b47(0x11d)])],v),exports['COLLABORATION_CLIENT_NODE_CONFIG_KEY']=o,Object[_0x350b47(0x11a)](exports,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x350b47(0x11a)](exports,_0x350b47(0x105),{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1af7d8=_0x1785;(function(_0x4f7b1b,_0x54fc86){const _0x514775=_0x1785,_0x310840=_0x4f7b1b();while(!![]){try{const _0x4da8e9=parseInt(_0x514775(0x1c5))/0x1+parseInt(_0x514775(0x1b8))/0x2*(parseInt(_0x514775(0x1a4))/0x3)+parseInt(_0x514775(0x1a5))/0x4+-parseInt(_0x514775(0x1b7))/0x5+-parseInt(_0x514775(0x1ba))/0x6*(parseInt(_0x514775(0x1b4))/0x7)+-parseInt(_0x514775(0x1ca))/0x8*(-parseInt(_0x514775(0x1d3))/0x9)+-parseInt(_0x514775(0x1c7))/0xa*(parseInt(_0x514775(0x1a1))/0xb);if(_0x4da8e9===_0x54fc86)break;else _0x310840['push'](_0x310840['shift']());}catch(_0x57d8f2){_0x310840['push'](_0x310840['shift']());}}}(_0x5e3f,0xacfbd));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x85256a,CollaborationSocketService as _0x3a9a14,UniverCollaborationClientPlugin as _0x28abbc}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x286b5d,Disposable as _0x439836,DisposableCollection as _0x3cc2ee,IConfigService as _0x592c5c,ILogService as _0x25296a,Inject as _0x4b9efd,Injector as _0x52f330,Plugin as _0x43bc78,registerDependencies as _0x33d93f,toDisposable as _0x255ba6}from'@univerjs/core';import{HTTPService as _0x507d26,ISocketService as _0x4307e7}from'@univerjs/network';import{Observable as _0x131207,share as _0x3f0abb}from'rxjs';import{WebSocket as _0x1de1b0}from'ws';import{ISnapshotServerService as _0x335240}from'@univerjs-pro/collaboration';const y='collaboration-client-node.config';function _0x5e3f(){const _0x3a8e0c=['250872NdlrZe','object','_injector','function','string','close','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getOwnPropertyDescriptor','add','342OGpbxN','symbol','825iwXXxR','call','_doCreateSocket','806628sxMixa','3612260Beiemm','headers','length','message','registerHTTPInterceptor','iterator','toPrimitive','set','open','@univerjs-pro/collaboration-client-node','constructor','next','_configService','_httpService','customHeaders','530628FdgWQV','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','removeEventListener','3124630znwNXt','10VeLJVg','addEventListener','6DhBplG','createSocket','onStarting','default','defineProperty','pipe','decorate','getConfig','_registerDependencies','error','0.19.0','225209JLzqoh','prototype','300670RGPzfO','packageName','setConfig'];_0x5e3f=function(){return _0x3a8e0c;};return _0x5e3f();}Symbol(y);const b={};var x=_0x1af7d8(0x1ae),S=_0x1af7d8(0x1c4);function C(_0x1b41ab,_0x5b72c2){return function(_0x24c8af,_0x25f2d7){_0x5b72c2(_0x24c8af,_0x25f2d7,_0x1b41ab);};}function _0x1785(_0x2244ca,_0x328dcc){_0x2244ca=_0x2244ca-0x1a0;const _0x5e3f92=_0x5e3f();let _0x1785c8=_0x5e3f92[_0x2244ca];return _0x1785c8;}function w(_0x15b06f,_0x40e1a6,_0x27b81f,_0x5a3844){const _0x2328c6=_0x1af7d8;var _0x368b5a=arguments[_0x2328c6(0x1a7)],_0x4e7696=_0x368b5a<0x3?_0x40e1a6:_0x5a3844===null?_0x5a3844=Object[_0x2328c6(0x1d1)](_0x40e1a6,_0x27b81f):_0x5a3844,_0x43c268;if(typeof Reflect=='object'&&typeof Reflect[_0x2328c6(0x1c0)]==_0x2328c6(0x1cd))_0x4e7696=Reflect['decorate'](_0x15b06f,_0x40e1a6,_0x27b81f,_0x5a3844);else{for(var _0x221230=_0x15b06f[_0x2328c6(0x1a7)]-0x1;_0x221230>=0x0;_0x221230--)(_0x43c268=_0x15b06f[_0x221230])&&(_0x4e7696=(_0x368b5a<0x3?_0x43c268(_0x4e7696):_0x368b5a>0x3?_0x43c268(_0x40e1a6,_0x27b81f,_0x4e7696):_0x43c268(_0x40e1a6,_0x27b81f))||_0x4e7696);}return _0x368b5a>0x3&&_0x4e7696&&Object[_0x2328c6(0x1be)](_0x40e1a6,_0x27b81f,_0x4e7696),_0x4e7696;}let T=class extends _0x439836{constructor(_0x26ade0){const _0x3e74e5=_0x1af7d8;super(),this[_0x3e74e5(0x1b1)]=_0x26ade0;}[_0x1af7d8(0x1bb)](_0x27f028){const _0x3fde3d=_0x1af7d8;var _0x610ea9;let _0x941497=((_0x610ea9=this[_0x3fde3d(0x1b1)][_0x3fde3d(0x1c1)](_0x85256a))==null?void 0x0:_0x610ea9[_0x3fde3d(0x1b3)])||{};try{let _0xed1919=new _0x1de1b0(_0x27f028,{'headers':{..._0x941497}}),_0x179904=new _0x3cc2ee();return{'URL':_0x27f028,'close':(_0x4d5672,_0x3fc200)=>{const _0x52e12a=_0x3fde3d;_0xed1919[_0x52e12a(0x1cf)](_0x4d5672,_0x3fc200),_0x179904['dispose']();},'send':_0x55bbbb=>{_0xed1919['send'](_0x55bbbb);},'open$':new _0x131207(_0x1cac58=>{const _0x4b876e=_0x3fde3d;let _0x217853=_0x311c93=>_0x1cac58[_0x4b876e(0x1b0)](_0x311c93);_0xed1919[_0x4b876e(0x1b9)](_0x4b876e(0x1ad),_0x217853),_0x179904['add'](_0x255ba6(()=>_0xed1919[_0x4b876e(0x1b6)](_0x4b876e(0x1ad),_0x217853)));})[_0x3fde3d(0x1bf)](_0x3f0abb()),'close$':new _0x131207(_0x4e31c3=>{const _0x106ff1=_0x3fde3d;let _0x4deb59=_0xfbcf4d=>_0x4e31c3[_0x106ff1(0x1b0)](_0xfbcf4d);_0xed1919[_0x106ff1(0x1b9)](_0x106ff1(0x1cf),_0x4deb59),_0x179904[_0x106ff1(0x1d2)](_0x255ba6(()=>_0xed1919['removeEventListener'](_0x106ff1(0x1cf),_0x4deb59)));})[_0x3fde3d(0x1bf)](_0x3f0abb()),'error$':new _0x131207(_0x65dd9e=>{const _0x17f8d6=_0x3fde3d;let _0x4cb23e=_0x5c8823=>_0x65dd9e[_0x17f8d6(0x1b0)](_0x5c8823);_0xed1919[_0x17f8d6(0x1b9)]('error',_0x4cb23e),_0x179904[_0x17f8d6(0x1d2)](_0x255ba6(()=>_0xed1919[_0x17f8d6(0x1b6)]('error',_0x4cb23e)));})['pipe'](_0x3f0abb()),'message$':new _0x131207(_0x4cb280=>{const _0x7979be=_0x3fde3d;let _0xc3b159=_0x1eafbd=>_0x4cb280[_0x7979be(0x1b0)](_0x1eafbd);_0xed1919[_0x7979be(0x1b9)](_0x7979be(0x1a8),_0xc3b159),_0x179904[_0x7979be(0x1d2)](_0x255ba6(()=>_0xed1919[_0x7979be(0x1b6)]('message',_0xc3b159)));})[_0x3fde3d(0x1bf)](_0x3f0abb())};}catch(_0x4c5589){return console[_0x3fde3d(0x1c3)](_0x4c5589),null;}}};T=w([C(0x0,_0x592c5c)],T);function E(_0x2d0fe7){'@babel/helpers - typeof';const _0x3fde1a=_0x1af7d8;return E=typeof Symbol==_0x3fde1a(0x1cd)&&typeof Symbol[_0x3fde1a(0x1aa)]==_0x3fde1a(0x1a0)?function(_0x4875ae){return typeof _0x4875ae;}:function(_0x3b8f4e){const _0x3ec956=_0x3fde1a;return _0x3b8f4e&&typeof Symbol=='function'&&_0x3b8f4e[_0x3ec956(0x1af)]===Symbol&&_0x3b8f4e!==Symbol[_0x3ec956(0x1c6)]?'symbol':typeof _0x3b8f4e;},E(_0x2d0fe7);}function D(_0x2ec83b,_0x2ca139){const _0x474c56=_0x1af7d8;if(E(_0x2ec83b)!=_0x474c56(0x1cb)||!_0x2ec83b)return _0x2ec83b;var _0x11dce6=_0x2ec83b[Symbol[_0x474c56(0x1ab)]];if(_0x11dce6!==void 0x0){var _0x287886=_0x11dce6[_0x474c56(0x1a2)](_0x2ec83b,_0x2ca139||_0x474c56(0x1bd));if(E(_0x287886)!=_0x474c56(0x1cb))return _0x287886;throw TypeError(_0x474c56(0x1d0));}return(_0x2ca139===_0x474c56(0x1ce)?String:Number)(_0x2ec83b);}function O(_0x902a60){const _0x11c87d=_0x1af7d8;var _0x51b50f=D(_0x902a60,_0x11c87d(0x1ce));return E(_0x51b50f)=='symbol'?_0x51b50f:_0x51b50f+'';}function k(_0x4f96e9,_0x3d42a5,_0x153820){const _0xc91849=_0x1af7d8;return(_0x3d42a5=O(_0x3d42a5))in _0x4f96e9?Object[_0xc91849(0x1be)](_0x4f96e9,_0x3d42a5,{'value':_0x153820,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f96e9[_0x3d42a5]=_0x153820,_0x4f96e9;}let A=class extends _0x43bc78{constructor(_0x17a5ec=b,_0xb4e9ed,_0x22960c){const _0x1e02b1=_0x1af7d8;super(),this[_0x1e02b1(0x1b1)]=_0xb4e9ed,this['_injector']=_0x22960c,this[_0x1e02b1(0x1b1)][_0x1e02b1(0x1c9)](y,_0x17a5ec);}[_0x1af7d8(0x1bc)](){const _0x2468c5=_0x1af7d8;this[_0x2468c5(0x1c2)]();}[_0x1af7d8(0x1c2)](){const _0x4f376b=_0x1af7d8;_0x33d93f(this[_0x4f376b(0x1cc)],[[_0x4307e7,{'useClass':T}]]);}};k(A,'pluginName',_0x1af7d8(0x1b5)),k(A,_0x1af7d8(0x1c8),x),k(A,'version',S),A=w([_0x286b5d(_0x28abbc),C(0x1,_0x592c5c),C(0x2,_0x4b9efd(_0x52f330))],A);let j=class extends _0x3a9a14{constructor(_0xffe17d,_0x54fe3d,_0xbadff6,_0x3d4af1,_0x22c9ab){const _0x2bbb43=_0x1af7d8;super(_0xffe17d,_0x54fe3d,_0xbadff6,_0x3d4af1,_0x22c9ab);let _0x590e75=this['_configService'][_0x2bbb43(0x1c1)](_0x85256a);this[_0x2bbb43(0x1b2)][_0x2bbb43(0x1a9)]({'interceptor':(_0x5b0c06,_0x1ea78a)=>{const _0x13a5e9=_0x2bbb43;let _0x496cdc=_0x5b0c06[_0x13a5e9(0x1a6)];if(_0x590e75!=null&&_0x590e75[_0x13a5e9(0x1b3)]){for(let _0x4cb59e in _0x590e75[_0x13a5e9(0x1b3)])_0x496cdc[_0x13a5e9(0x1ac)](_0x4cb59e,_0x590e75[_0x13a5e9(0x1b3)][_0x4cb59e]);}return _0x1ea78a(_0x5b0c06);}});}async[_0x1af7d8(0x1bb)](_0xb8083e){const _0x1b64ee=_0x1af7d8;return this[_0x1b64ee(0x1a3)](_0xb8083e);}};j=w([C(0x0,_0x4b9efd(_0x52f330)),C(0x1,_0x4b9efd(_0x507d26)),C(0x2,_0x592c5c),C(0x3,_0x25296a),C(0x4,_0x335240)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x28aa1d=_0x1667;(function(_0x200bf3,_0x49adcd){const _0x3ee952=_0x1667,_0x190a0a=_0x200bf3();while(!![]){try{const _0xf8ad17=-parseInt(_0x3ee952(0x1e3))/0x1+parseInt(_0x3ee952(0x1dd))/0x2+parseInt(_0x3ee952(0x1f7))/0x3+parseInt(_0x3ee952(0x1e2))/0x4*(-parseInt(_0x3ee952(0x1da))/0x5)+-parseInt(_0x3ee952(0x1d3))/0x6*(parseInt(_0x3ee952(0x1e8))/0x7)+parseInt(_0x3ee952(0x1cf))/0x8*(parseInt(_0x3ee952(0x1cd))/0x9)+parseInt(_0x3ee952(0x1d5))/0xa;if(_0xf8ad17===_0x49adcd)break;else _0x190a0a['push'](_0x190a0a['shift']());}catch(_0x52ddf7){_0x190a0a['push'](_0x190a0a['shift']());}}}(_0x2bf6,0xafda3));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1e559b,CollaborationSocketService as _0x538241,UniverCollaborationClientPlugin as _0x3cdcb3}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x133fc9,Disposable as _0x462504,DisposableCollection as _0xe0c7b1,IConfigService as _0x3c9a81,ILogService as _0x15fc99,Inject as _0x487b9c,Injector as _0x212ac0,Plugin as _0x41d7e3,registerDependencies as _0x23a1b5,toDisposable as _0x2d2530}from'@univerjs/core';import{HTTPService as _0x5a5c34,ISocketService as _0x309f97}from'@univerjs/network';import{Observable as _0x4ef3b6,share as _0x53c7a3}from'rxjs';import{WebSocket as _0x5ab6f6}from'ws';function _0x2bf6(){const _0x56d9c1=['pluginName','iterator','0.20.0-insiders.20260411-27a8c24','addEventListener','_doCreateSocket','version','function','507510YsMfCY','headers','16MXFPVP','call','customHeaders','_configService','1239354dpcJKK','add','11597740HvNDWC','getConfig','onStarting','getOwnPropertyDescriptor','next','10110wSAAKd','symbol','decorate','34900TJojju','defineProperty','pipe','message','@univerjs-pro/collaboration-client-node','512DQRuEY','560821PiShtu','createSocket','_registerDependencies','string','setConfig','14uqVoBP','packageName','length','dispose','_injector','set','prototype','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','error','default','open','object','collaboration-client-node.config','close','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1989126gUCNmE','toPrimitive'];_0x2bf6=function(){return _0x56d9c1;};return _0x2bf6();}import{ISnapshotServerService as _0x20abd4}from'@univerjs-pro/collaboration';const y=_0x28aa1d(0x1f4);Symbol(y);const b={};var x=_0x28aa1d(0x1e1),S=_0x28aa1d(0x1c8);function C(_0x1d41ba,_0x30ce99){return function(_0x27a833,_0x205a2a){_0x30ce99(_0x27a833,_0x205a2a,_0x1d41ba);};}function w(_0x4e3138,_0x53e5f0,_0x170a07,_0x45a71f){const _0x523e9c=_0x28aa1d;var _0x1602ec=arguments['length'],_0x1ba223=_0x1602ec<0x3?_0x53e5f0:_0x45a71f===null?_0x45a71f=Object[_0x523e9c(0x1d8)](_0x53e5f0,_0x170a07):_0x45a71f,_0x57df3a;if(typeof Reflect==_0x523e9c(0x1f3)&&typeof Reflect[_0x523e9c(0x1dc)]==_0x523e9c(0x1cc))_0x1ba223=Reflect['decorate'](_0x4e3138,_0x53e5f0,_0x170a07,_0x45a71f);else{for(var _0x3d9040=_0x4e3138[_0x523e9c(0x1ea)]-0x1;_0x3d9040>=0x0;_0x3d9040--)(_0x57df3a=_0x4e3138[_0x3d9040])&&(_0x1ba223=(_0x1602ec<0x3?_0x57df3a(_0x1ba223):_0x1602ec>0x3?_0x57df3a(_0x53e5f0,_0x170a07,_0x1ba223):_0x57df3a(_0x53e5f0,_0x170a07))||_0x1ba223);}return _0x1602ec>0x3&&_0x1ba223&&Object[_0x523e9c(0x1de)](_0x53e5f0,_0x170a07,_0x1ba223),_0x1ba223;}let T=class extends _0x462504{constructor(_0x4d4fd5){const _0x4d0193=_0x28aa1d;super(),this[_0x4d0193(0x1d2)]=_0x4d4fd5;}[_0x28aa1d(0x1e4)](_0x40c7e4){const _0x1902a3=_0x28aa1d;var _0x1c1c70;let _0x32d503=((_0x1c1c70=this[_0x1902a3(0x1d2)][_0x1902a3(0x1d6)](_0x1e559b))==null?void 0x0:_0x1c1c70['customHeaders'])||{};try{let _0x3d0b9c=new _0x5ab6f6(_0x40c7e4,{'headers':{..._0x32d503}}),_0x34ce6a=new _0xe0c7b1();return{'URL':_0x40c7e4,'close':(_0x3b4bac,_0x1224b7)=>{const _0x235088=_0x1902a3;_0x3d0b9c['close'](_0x3b4bac,_0x1224b7),_0x34ce6a[_0x235088(0x1eb)]();},'send':_0x114f94=>{_0x3d0b9c['send'](_0x114f94);},'open$':new _0x4ef3b6(_0x1b4ec9=>{const _0x500c0c=_0x1902a3;let _0x2166dd=_0x763115=>_0x1b4ec9[_0x500c0c(0x1d9)](_0x763115);_0x3d0b9c[_0x500c0c(0x1c9)](_0x500c0c(0x1f2),_0x2166dd),_0x34ce6a[_0x500c0c(0x1d4)](_0x2d2530(()=>_0x3d0b9c['removeEventListener']('open',_0x2166dd)));})[_0x1902a3(0x1df)](_0x53c7a3()),'close$':new _0x4ef3b6(_0x287b4a=>{const _0x557c6c=_0x1902a3;let _0x364902=_0x257749=>_0x287b4a['next'](_0x257749);_0x3d0b9c[_0x557c6c(0x1c9)](_0x557c6c(0x1f5),_0x364902),_0x34ce6a[_0x557c6c(0x1d4)](_0x2d2530(()=>_0x3d0b9c['removeEventListener']('close',_0x364902)));})[_0x1902a3(0x1df)](_0x53c7a3()),'error$':new _0x4ef3b6(_0xf0a6b3=>{const _0x39e7fb=_0x1902a3;let _0x1f3f70=_0x4af738=>_0xf0a6b3[_0x39e7fb(0x1d9)](_0x4af738);_0x3d0b9c['addEventListener']('error',_0x1f3f70),_0x34ce6a['add'](_0x2d2530(()=>_0x3d0b9c['removeEventListener']('error',_0x1f3f70)));})[_0x1902a3(0x1df)](_0x53c7a3()),'message$':new _0x4ef3b6(_0x223ece=>{const _0x4bd267=_0x1902a3;let _0x3cd69d=_0x2d5a1a=>_0x223ece[_0x4bd267(0x1d9)](_0x2d5a1a);_0x3d0b9c['addEventListener'](_0x4bd267(0x1e0),_0x3cd69d),_0x34ce6a[_0x4bd267(0x1d4)](_0x2d2530(()=>_0x3d0b9c['removeEventListener'](_0x4bd267(0x1e0),_0x3cd69d)));})['pipe'](_0x53c7a3())};}catch(_0x173fa1){return console[_0x1902a3(0x1f0)](_0x173fa1),null;}}};T=w([C(0x0,_0x3c9a81)],T);function E(_0x3e74d1){'@babel/helpers - typeof';const _0x3d05ef=_0x28aa1d;return E=typeof Symbol=='function'&&typeof Symbol[_0x3d05ef(0x1c7)]==_0x3d05ef(0x1db)?function(_0x49122d){return typeof _0x49122d;}:function(_0x2ffbc1){const _0x52cfdb=_0x3d05ef;return _0x2ffbc1&&typeof Symbol==_0x52cfdb(0x1cc)&&_0x2ffbc1['constructor']===Symbol&&_0x2ffbc1!==Symbol[_0x52cfdb(0x1ee)]?_0x52cfdb(0x1db):typeof _0x2ffbc1;},E(_0x3e74d1);}function D(_0x25ad17,_0x43cd3b){const _0x1811b8=_0x28aa1d;if(E(_0x25ad17)!=_0x1811b8(0x1f3)||!_0x25ad17)return _0x25ad17;var _0x126706=_0x25ad17[Symbol[_0x1811b8(0x1f8)]];if(_0x126706!==void 0x0){var _0x15b227=_0x126706[_0x1811b8(0x1d0)](_0x25ad17,_0x43cd3b||_0x1811b8(0x1f1));if(E(_0x15b227)!=_0x1811b8(0x1f3))return _0x15b227;throw TypeError(_0x1811b8(0x1f6));}return(_0x43cd3b===_0x1811b8(0x1e6)?String:Number)(_0x25ad17);}function O(_0x5c810a){var _0x2fd2ca=D(_0x5c810a,'string');return E(_0x2fd2ca)=='symbol'?_0x2fd2ca:_0x2fd2ca+'';}function k(_0xb48fe6,_0x3dbb21,_0x5f3455){return(_0x3dbb21=O(_0x3dbb21))in _0xb48fe6?Object['defineProperty'](_0xb48fe6,_0x3dbb21,{'value':_0x5f3455,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xb48fe6[_0x3dbb21]=_0x5f3455,_0xb48fe6;}let A=class extends _0x41d7e3{constructor(_0x1042cd=b,_0x581b71,_0x42df1c){const _0x2aac=_0x28aa1d;super(),this[_0x2aac(0x1d2)]=_0x581b71,this[_0x2aac(0x1ec)]=_0x42df1c,this[_0x2aac(0x1d2)][_0x2aac(0x1e7)](y,_0x1042cd);}[_0x28aa1d(0x1d7)](){const _0x8b49ba=_0x28aa1d;this[_0x8b49ba(0x1e5)]();}[_0x28aa1d(0x1e5)](){const _0x5368c7=_0x28aa1d;_0x23a1b5(this[_0x5368c7(0x1ec)],[[_0x309f97,{'useClass':T}]]);}};k(A,_0x28aa1d(0x1c6),_0x28aa1d(0x1ef)),k(A,_0x28aa1d(0x1e9),x),k(A,_0x28aa1d(0x1cb),S),A=w([_0x133fc9(_0x3cdcb3),C(0x1,_0x3c9a81),C(0x2,_0x487b9c(_0x212ac0))],A);function _0x1667(_0x525c24,_0x237475){_0x525c24=_0x525c24-0x1c6;const _0x2bf69d=_0x2bf6();let _0x1667d6=_0x2bf69d[_0x525c24];return _0x1667d6;}let j=class extends _0x538241{constructor(_0x4c126d,_0x41447c,_0x85a512,_0xdf9c79,_0x4431d8){const _0x24943d=_0x28aa1d;super(_0x4c126d,_0x41447c,_0x85a512,_0xdf9c79,_0x4431d8);let _0x2cdca6=this[_0x24943d(0x1d2)][_0x24943d(0x1d6)](_0x1e559b);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x476530,_0x5eec9f)=>{const _0x220ccd=_0x24943d;let _0x408397=_0x476530[_0x220ccd(0x1ce)];if(_0x2cdca6!=null&&_0x2cdca6[_0x220ccd(0x1d1)]){for(let _0x8f5754 in _0x2cdca6[_0x220ccd(0x1d1)])_0x408397[_0x220ccd(0x1ed)](_0x8f5754,_0x2cdca6[_0x220ccd(0x1d1)][_0x8f5754]);}return _0x5eec9f(_0x476530);}});}async[_0x28aa1d(0x1e4)](_0x10873e){const _0x17f26e=_0x28aa1d;return this[_0x17f26e(0x1ca)](_0x10873e);}};j=w([C(0x0,_0x487b9c(_0x212ac0)),C(0x1,_0x487b9c(_0x5a5c34)),C(0x2,_0x3c9a81),C(0x3,_0x15fc99),C(0x4,_0x20abd4)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1af7d8=_0x1785;(function(_0x4f7b1b,_0x54fc86){const _0x514775=_0x1785,_0x310840=_0x4f7b1b();while(!![]){try{const _0x4da8e9=parseInt(_0x514775(0x1c5))/0x1+parseInt(_0x514775(0x1b8))/0x2*(parseInt(_0x514775(0x1a4))/0x3)+parseInt(_0x514775(0x1a5))/0x4+-parseInt(_0x514775(0x1b7))/0x5+-parseInt(_0x514775(0x1ba))/0x6*(parseInt(_0x514775(0x1b4))/0x7)+-parseInt(_0x514775(0x1ca))/0x8*(-parseInt(_0x514775(0x1d3))/0x9)+-parseInt(_0x514775(0x1c7))/0xa*(parseInt(_0x514775(0x1a1))/0xb);if(_0x4da8e9===_0x54fc86)break;else _0x310840['push'](_0x310840['shift']());}catch(_0x57d8f2){_0x310840['push'](_0x310840['shift']());}}}(_0x5e3f,0xacfbd));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x85256a,CollaborationSocketService as _0x3a9a14,UniverCollaborationClientPlugin as _0x28abbc}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x286b5d,Disposable as _0x439836,DisposableCollection as _0x3cc2ee,IConfigService as _0x592c5c,ILogService as _0x25296a,Inject as _0x4b9efd,Injector as _0x52f330,Plugin as _0x43bc78,registerDependencies as _0x33d93f,toDisposable as _0x255ba6}from'@univerjs/core';import{HTTPService as _0x507d26,ISocketService as _0x4307e7}from'@univerjs/network';import{Observable as _0x131207,share as _0x3f0abb}from'rxjs';import{WebSocket as _0x1de1b0}from'ws';import{ISnapshotServerService as _0x335240}from'@univerjs-pro/collaboration';const y='collaboration-client-node.config';function _0x5e3f(){const _0x3a8e0c=['250872NdlrZe','object','_injector','function','string','close','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getOwnPropertyDescriptor','add','342OGpbxN','symbol','825iwXXxR','call','_doCreateSocket','806628sxMixa','3612260Beiemm','headers','length','message','registerHTTPInterceptor','iterator','toPrimitive','set','open','@univerjs-pro/collaboration-client-node','constructor','next','_configService','_httpService','customHeaders','530628FdgWQV','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','removeEventListener','3124630znwNXt','10VeLJVg','addEventListener','6DhBplG','createSocket','onStarting','default','defineProperty','pipe','decorate','getConfig','_registerDependencies','error','0.19.0','225209JLzqoh','prototype','300670RGPzfO','packageName','setConfig'];_0x5e3f=function(){return _0x3a8e0c;};return _0x5e3f();}Symbol(y);const b={};var x=_0x1af7d8(0x1ae),S=_0x1af7d8(0x1c4);function C(_0x1b41ab,_0x5b72c2){return function(_0x24c8af,_0x25f2d7){_0x5b72c2(_0x24c8af,_0x25f2d7,_0x1b41ab);};}function _0x1785(_0x2244ca,_0x328dcc){_0x2244ca=_0x2244ca-0x1a0;const _0x5e3f92=_0x5e3f();let _0x1785c8=_0x5e3f92[_0x2244ca];return _0x1785c8;}function w(_0x15b06f,_0x40e1a6,_0x27b81f,_0x5a3844){const _0x2328c6=_0x1af7d8;var _0x368b5a=arguments[_0x2328c6(0x1a7)],_0x4e7696=_0x368b5a<0x3?_0x40e1a6:_0x5a3844===null?_0x5a3844=Object[_0x2328c6(0x1d1)](_0x40e1a6,_0x27b81f):_0x5a3844,_0x43c268;if(typeof Reflect=='object'&&typeof Reflect[_0x2328c6(0x1c0)]==_0x2328c6(0x1cd))_0x4e7696=Reflect['decorate'](_0x15b06f,_0x40e1a6,_0x27b81f,_0x5a3844);else{for(var _0x221230=_0x15b06f[_0x2328c6(0x1a7)]-0x1;_0x221230>=0x0;_0x221230--)(_0x43c268=_0x15b06f[_0x221230])&&(_0x4e7696=(_0x368b5a<0x3?_0x43c268(_0x4e7696):_0x368b5a>0x3?_0x43c268(_0x40e1a6,_0x27b81f,_0x4e7696):_0x43c268(_0x40e1a6,_0x27b81f))||_0x4e7696);}return _0x368b5a>0x3&&_0x4e7696&&Object[_0x2328c6(0x1be)](_0x40e1a6,_0x27b81f,_0x4e7696),_0x4e7696;}let T=class extends _0x439836{constructor(_0x26ade0){const _0x3e74e5=_0x1af7d8;super(),this[_0x3e74e5(0x1b1)]=_0x26ade0;}[_0x1af7d8(0x1bb)](_0x27f028){const _0x3fde3d=_0x1af7d8;var _0x610ea9;let _0x941497=((_0x610ea9=this[_0x3fde3d(0x1b1)][_0x3fde3d(0x1c1)](_0x85256a))==null?void 0x0:_0x610ea9[_0x3fde3d(0x1b3)])||{};try{let _0xed1919=new _0x1de1b0(_0x27f028,{'headers':{..._0x941497}}),_0x179904=new _0x3cc2ee();return{'URL':_0x27f028,'close':(_0x4d5672,_0x3fc200)=>{const _0x52e12a=_0x3fde3d;_0xed1919[_0x52e12a(0x1cf)](_0x4d5672,_0x3fc200),_0x179904['dispose']();},'send':_0x55bbbb=>{_0xed1919['send'](_0x55bbbb);},'open$':new _0x131207(_0x1cac58=>{const _0x4b876e=_0x3fde3d;let _0x217853=_0x311c93=>_0x1cac58[_0x4b876e(0x1b0)](_0x311c93);_0xed1919[_0x4b876e(0x1b9)](_0x4b876e(0x1ad),_0x217853),_0x179904['add'](_0x255ba6(()=>_0xed1919[_0x4b876e(0x1b6)](_0x4b876e(0x1ad),_0x217853)));})[_0x3fde3d(0x1bf)](_0x3f0abb()),'close$':new _0x131207(_0x4e31c3=>{const _0x106ff1=_0x3fde3d;let _0x4deb59=_0xfbcf4d=>_0x4e31c3[_0x106ff1(0x1b0)](_0xfbcf4d);_0xed1919[_0x106ff1(0x1b9)](_0x106ff1(0x1cf),_0x4deb59),_0x179904[_0x106ff1(0x1d2)](_0x255ba6(()=>_0xed1919['removeEventListener'](_0x106ff1(0x1cf),_0x4deb59)));})[_0x3fde3d(0x1bf)](_0x3f0abb()),'error$':new _0x131207(_0x65dd9e=>{const _0x17f8d6=_0x3fde3d;let _0x4cb23e=_0x5c8823=>_0x65dd9e[_0x17f8d6(0x1b0)](_0x5c8823);_0xed1919[_0x17f8d6(0x1b9)]('error',_0x4cb23e),_0x179904[_0x17f8d6(0x1d2)](_0x255ba6(()=>_0xed1919[_0x17f8d6(0x1b6)]('error',_0x4cb23e)));})['pipe'](_0x3f0abb()),'message$':new _0x131207(_0x4cb280=>{const _0x7979be=_0x3fde3d;let _0xc3b159=_0x1eafbd=>_0x4cb280[_0x7979be(0x1b0)](_0x1eafbd);_0xed1919[_0x7979be(0x1b9)](_0x7979be(0x1a8),_0xc3b159),_0x179904[_0x7979be(0x1d2)](_0x255ba6(()=>_0xed1919[_0x7979be(0x1b6)]('message',_0xc3b159)));})[_0x3fde3d(0x1bf)](_0x3f0abb())};}catch(_0x4c5589){return console[_0x3fde3d(0x1c3)](_0x4c5589),null;}}};T=w([C(0x0,_0x592c5c)],T);function E(_0x2d0fe7){'@babel/helpers - typeof';const _0x3fde1a=_0x1af7d8;return E=typeof Symbol==_0x3fde1a(0x1cd)&&typeof Symbol[_0x3fde1a(0x1aa)]==_0x3fde1a(0x1a0)?function(_0x4875ae){return typeof _0x4875ae;}:function(_0x3b8f4e){const _0x3ec956=_0x3fde1a;return _0x3b8f4e&&typeof Symbol=='function'&&_0x3b8f4e[_0x3ec956(0x1af)]===Symbol&&_0x3b8f4e!==Symbol[_0x3ec956(0x1c6)]?'symbol':typeof _0x3b8f4e;},E(_0x2d0fe7);}function D(_0x2ec83b,_0x2ca139){const _0x474c56=_0x1af7d8;if(E(_0x2ec83b)!=_0x474c56(0x1cb)||!_0x2ec83b)return _0x2ec83b;var _0x11dce6=_0x2ec83b[Symbol[_0x474c56(0x1ab)]];if(_0x11dce6!==void 0x0){var _0x287886=_0x11dce6[_0x474c56(0x1a2)](_0x2ec83b,_0x2ca139||_0x474c56(0x1bd));if(E(_0x287886)!=_0x474c56(0x1cb))return _0x287886;throw TypeError(_0x474c56(0x1d0));}return(_0x2ca139===_0x474c56(0x1ce)?String:Number)(_0x2ec83b);}function O(_0x902a60){const _0x11c87d=_0x1af7d8;var _0x51b50f=D(_0x902a60,_0x11c87d(0x1ce));return E(_0x51b50f)=='symbol'?_0x51b50f:_0x51b50f+'';}function k(_0x4f96e9,_0x3d42a5,_0x153820){const _0xc91849=_0x1af7d8;return(_0x3d42a5=O(_0x3d42a5))in _0x4f96e9?Object[_0xc91849(0x1be)](_0x4f96e9,_0x3d42a5,{'value':_0x153820,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f96e9[_0x3d42a5]=_0x153820,_0x4f96e9;}let A=class extends _0x43bc78{constructor(_0x17a5ec=b,_0xb4e9ed,_0x22960c){const _0x1e02b1=_0x1af7d8;super(),this[_0x1e02b1(0x1b1)]=_0xb4e9ed,this['_injector']=_0x22960c,this[_0x1e02b1(0x1b1)][_0x1e02b1(0x1c9)](y,_0x17a5ec);}[_0x1af7d8(0x1bc)](){const _0x2468c5=_0x1af7d8;this[_0x2468c5(0x1c2)]();}[_0x1af7d8(0x1c2)](){const _0x4f376b=_0x1af7d8;_0x33d93f(this[_0x4f376b(0x1cc)],[[_0x4307e7,{'useClass':T}]]);}};k(A,'pluginName',_0x1af7d8(0x1b5)),k(A,_0x1af7d8(0x1c8),x),k(A,'version',S),A=w([_0x286b5d(_0x28abbc),C(0x1,_0x592c5c),C(0x2,_0x4b9efd(_0x52f330))],A);let j=class extends _0x3a9a14{constructor(_0xffe17d,_0x54fe3d,_0xbadff6,_0x3d4af1,_0x22c9ab){const _0x2bbb43=_0x1af7d8;super(_0xffe17d,_0x54fe3d,_0xbadff6,_0x3d4af1,_0x22c9ab);let _0x590e75=this['_configService'][_0x2bbb43(0x1c1)](_0x85256a);this[_0x2bbb43(0x1b2)][_0x2bbb43(0x1a9)]({'interceptor':(_0x5b0c06,_0x1ea78a)=>{const _0x13a5e9=_0x2bbb43;let _0x496cdc=_0x5b0c06[_0x13a5e9(0x1a6)];if(_0x590e75!=null&&_0x590e75[_0x13a5e9(0x1b3)]){for(let _0x4cb59e in _0x590e75[_0x13a5e9(0x1b3)])_0x496cdc[_0x13a5e9(0x1ac)](_0x4cb59e,_0x590e75[_0x13a5e9(0x1b3)][_0x4cb59e]);}return _0x1ea78a(_0x5b0c06);}});}async[_0x1af7d8(0x1bb)](_0xb8083e){const _0x1b64ee=_0x1af7d8;return this[_0x1b64ee(0x1a3)](_0xb8083e);}};j=w([C(0x0,_0x4b9efd(_0x52f330)),C(0x1,_0x4b9efd(_0x507d26)),C(0x2,_0x592c5c),C(0x3,_0x25296a),C(0x4,_0x335240)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x28aa1d=_0x1667;(function(_0x200bf3,_0x49adcd){const _0x3ee952=_0x1667,_0x190a0a=_0x200bf3();while(!![]){try{const _0xf8ad17=-parseInt(_0x3ee952(0x1e3))/0x1+parseInt(_0x3ee952(0x1dd))/0x2+parseInt(_0x3ee952(0x1f7))/0x3+parseInt(_0x3ee952(0x1e2))/0x4*(-parseInt(_0x3ee952(0x1da))/0x5)+-parseInt(_0x3ee952(0x1d3))/0x6*(parseInt(_0x3ee952(0x1e8))/0x7)+parseInt(_0x3ee952(0x1cf))/0x8*(parseInt(_0x3ee952(0x1cd))/0x9)+parseInt(_0x3ee952(0x1d5))/0xa;if(_0xf8ad17===_0x49adcd)break;else _0x190a0a['push'](_0x190a0a['shift']());}catch(_0x52ddf7){_0x190a0a['push'](_0x190a0a['shift']());}}}(_0x2bf6,0xafda3));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1e559b,CollaborationSocketService as _0x538241,UniverCollaborationClientPlugin as _0x3cdcb3}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x133fc9,Disposable as _0x462504,DisposableCollection as _0xe0c7b1,IConfigService as _0x3c9a81,ILogService as _0x15fc99,Inject as _0x487b9c,Injector as _0x212ac0,Plugin as _0x41d7e3,registerDependencies as _0x23a1b5,toDisposable as _0x2d2530}from'@univerjs/core';import{HTTPService as _0x5a5c34,ISocketService as _0x309f97}from'@univerjs/network';import{Observable as _0x4ef3b6,share as _0x53c7a3}from'rxjs';import{WebSocket as _0x5ab6f6}from'ws';function _0x2bf6(){const _0x56d9c1=['pluginName','iterator','0.20.0-insiders.20260411-27a8c24','addEventListener','_doCreateSocket','version','function','507510YsMfCY','headers','16MXFPVP','call','customHeaders','_configService','1239354dpcJKK','add','11597740HvNDWC','getConfig','onStarting','getOwnPropertyDescriptor','next','10110wSAAKd','symbol','decorate','34900TJojju','defineProperty','pipe','message','@univerjs-pro/collaboration-client-node','512DQRuEY','560821PiShtu','createSocket','_registerDependencies','string','setConfig','14uqVoBP','packageName','length','dispose','_injector','set','prototype','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','error','default','open','object','collaboration-client-node.config','close','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1989126gUCNmE','toPrimitive'];_0x2bf6=function(){return _0x56d9c1;};return _0x2bf6();}import{ISnapshotServerService as _0x20abd4}from'@univerjs-pro/collaboration';const y=_0x28aa1d(0x1f4);Symbol(y);const b={};var x=_0x28aa1d(0x1e1),S=_0x28aa1d(0x1c8);function C(_0x1d41ba,_0x30ce99){return function(_0x27a833,_0x205a2a){_0x30ce99(_0x27a833,_0x205a2a,_0x1d41ba);};}function w(_0x4e3138,_0x53e5f0,_0x170a07,_0x45a71f){const _0x523e9c=_0x28aa1d;var _0x1602ec=arguments['length'],_0x1ba223=_0x1602ec<0x3?_0x53e5f0:_0x45a71f===null?_0x45a71f=Object[_0x523e9c(0x1d8)](_0x53e5f0,_0x170a07):_0x45a71f,_0x57df3a;if(typeof Reflect==_0x523e9c(0x1f3)&&typeof Reflect[_0x523e9c(0x1dc)]==_0x523e9c(0x1cc))_0x1ba223=Reflect['decorate'](_0x4e3138,_0x53e5f0,_0x170a07,_0x45a71f);else{for(var _0x3d9040=_0x4e3138[_0x523e9c(0x1ea)]-0x1;_0x3d9040>=0x0;_0x3d9040--)(_0x57df3a=_0x4e3138[_0x3d9040])&&(_0x1ba223=(_0x1602ec<0x3?_0x57df3a(_0x1ba223):_0x1602ec>0x3?_0x57df3a(_0x53e5f0,_0x170a07,_0x1ba223):_0x57df3a(_0x53e5f0,_0x170a07))||_0x1ba223);}return _0x1602ec>0x3&&_0x1ba223&&Object[_0x523e9c(0x1de)](_0x53e5f0,_0x170a07,_0x1ba223),_0x1ba223;}let T=class extends _0x462504{constructor(_0x4d4fd5){const _0x4d0193=_0x28aa1d;super(),this[_0x4d0193(0x1d2)]=_0x4d4fd5;}[_0x28aa1d(0x1e4)](_0x40c7e4){const _0x1902a3=_0x28aa1d;var _0x1c1c70;let _0x32d503=((_0x1c1c70=this[_0x1902a3(0x1d2)][_0x1902a3(0x1d6)](_0x1e559b))==null?void 0x0:_0x1c1c70['customHeaders'])||{};try{let _0x3d0b9c=new _0x5ab6f6(_0x40c7e4,{'headers':{..._0x32d503}}),_0x34ce6a=new _0xe0c7b1();return{'URL':_0x40c7e4,'close':(_0x3b4bac,_0x1224b7)=>{const _0x235088=_0x1902a3;_0x3d0b9c['close'](_0x3b4bac,_0x1224b7),_0x34ce6a[_0x235088(0x1eb)]();},'send':_0x114f94=>{_0x3d0b9c['send'](_0x114f94);},'open$':new _0x4ef3b6(_0x1b4ec9=>{const _0x500c0c=_0x1902a3;let _0x2166dd=_0x763115=>_0x1b4ec9[_0x500c0c(0x1d9)](_0x763115);_0x3d0b9c[_0x500c0c(0x1c9)](_0x500c0c(0x1f2),_0x2166dd),_0x34ce6a[_0x500c0c(0x1d4)](_0x2d2530(()=>_0x3d0b9c['removeEventListener']('open',_0x2166dd)));})[_0x1902a3(0x1df)](_0x53c7a3()),'close$':new _0x4ef3b6(_0x287b4a=>{const _0x557c6c=_0x1902a3;let _0x364902=_0x257749=>_0x287b4a['next'](_0x257749);_0x3d0b9c[_0x557c6c(0x1c9)](_0x557c6c(0x1f5),_0x364902),_0x34ce6a[_0x557c6c(0x1d4)](_0x2d2530(()=>_0x3d0b9c['removeEventListener']('close',_0x364902)));})[_0x1902a3(0x1df)](_0x53c7a3()),'error$':new _0x4ef3b6(_0xf0a6b3=>{const _0x39e7fb=_0x1902a3;let _0x1f3f70=_0x4af738=>_0xf0a6b3[_0x39e7fb(0x1d9)](_0x4af738);_0x3d0b9c['addEventListener']('error',_0x1f3f70),_0x34ce6a['add'](_0x2d2530(()=>_0x3d0b9c['removeEventListener']('error',_0x1f3f70)));})[_0x1902a3(0x1df)](_0x53c7a3()),'message$':new _0x4ef3b6(_0x223ece=>{const _0x4bd267=_0x1902a3;let _0x3cd69d=_0x2d5a1a=>_0x223ece[_0x4bd267(0x1d9)](_0x2d5a1a);_0x3d0b9c['addEventListener'](_0x4bd267(0x1e0),_0x3cd69d),_0x34ce6a[_0x4bd267(0x1d4)](_0x2d2530(()=>_0x3d0b9c['removeEventListener'](_0x4bd267(0x1e0),_0x3cd69d)));})['pipe'](_0x53c7a3())};}catch(_0x173fa1){return console[_0x1902a3(0x1f0)](_0x173fa1),null;}}};T=w([C(0x0,_0x3c9a81)],T);function E(_0x3e74d1){'@babel/helpers - typeof';const _0x3d05ef=_0x28aa1d;return E=typeof Symbol=='function'&&typeof Symbol[_0x3d05ef(0x1c7)]==_0x3d05ef(0x1db)?function(_0x49122d){return typeof _0x49122d;}:function(_0x2ffbc1){const _0x52cfdb=_0x3d05ef;return _0x2ffbc1&&typeof Symbol==_0x52cfdb(0x1cc)&&_0x2ffbc1['constructor']===Symbol&&_0x2ffbc1!==Symbol[_0x52cfdb(0x1ee)]?_0x52cfdb(0x1db):typeof _0x2ffbc1;},E(_0x3e74d1);}function D(_0x25ad17,_0x43cd3b){const _0x1811b8=_0x28aa1d;if(E(_0x25ad17)!=_0x1811b8(0x1f3)||!_0x25ad17)return _0x25ad17;var _0x126706=_0x25ad17[Symbol[_0x1811b8(0x1f8)]];if(_0x126706!==void 0x0){var _0x15b227=_0x126706[_0x1811b8(0x1d0)](_0x25ad17,_0x43cd3b||_0x1811b8(0x1f1));if(E(_0x15b227)!=_0x1811b8(0x1f3))return _0x15b227;throw TypeError(_0x1811b8(0x1f6));}return(_0x43cd3b===_0x1811b8(0x1e6)?String:Number)(_0x25ad17);}function O(_0x5c810a){var _0x2fd2ca=D(_0x5c810a,'string');return E(_0x2fd2ca)=='symbol'?_0x2fd2ca:_0x2fd2ca+'';}function k(_0xb48fe6,_0x3dbb21,_0x5f3455){return(_0x3dbb21=O(_0x3dbb21))in _0xb48fe6?Object['defineProperty'](_0xb48fe6,_0x3dbb21,{'value':_0x5f3455,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xb48fe6[_0x3dbb21]=_0x5f3455,_0xb48fe6;}let A=class extends _0x41d7e3{constructor(_0x1042cd=b,_0x581b71,_0x42df1c){const _0x2aac=_0x28aa1d;super(),this[_0x2aac(0x1d2)]=_0x581b71,this[_0x2aac(0x1ec)]=_0x42df1c,this[_0x2aac(0x1d2)][_0x2aac(0x1e7)](y,_0x1042cd);}[_0x28aa1d(0x1d7)](){const _0x8b49ba=_0x28aa1d;this[_0x8b49ba(0x1e5)]();}[_0x28aa1d(0x1e5)](){const _0x5368c7=_0x28aa1d;_0x23a1b5(this[_0x5368c7(0x1ec)],[[_0x309f97,{'useClass':T}]]);}};k(A,_0x28aa1d(0x1c6),_0x28aa1d(0x1ef)),k(A,_0x28aa1d(0x1e9),x),k(A,_0x28aa1d(0x1cb),S),A=w([_0x133fc9(_0x3cdcb3),C(0x1,_0x3c9a81),C(0x2,_0x487b9c(_0x212ac0))],A);function _0x1667(_0x525c24,_0x237475){_0x525c24=_0x525c24-0x1c6;const _0x2bf69d=_0x2bf6();let _0x1667d6=_0x2bf69d[_0x525c24];return _0x1667d6;}let j=class extends _0x538241{constructor(_0x4c126d,_0x41447c,_0x85a512,_0xdf9c79,_0x4431d8){const _0x24943d=_0x28aa1d;super(_0x4c126d,_0x41447c,_0x85a512,_0xdf9c79,_0x4431d8);let _0x2cdca6=this[_0x24943d(0x1d2)][_0x24943d(0x1d6)](_0x1e559b);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x476530,_0x5eec9f)=>{const _0x220ccd=_0x24943d;let _0x408397=_0x476530[_0x220ccd(0x1ce)];if(_0x2cdca6!=null&&_0x2cdca6[_0x220ccd(0x1d1)]){for(let _0x8f5754 in _0x2cdca6[_0x220ccd(0x1d1)])_0x408397[_0x220ccd(0x1ed)](_0x8f5754,_0x2cdca6[_0x220ccd(0x1d1)][_0x8f5754]);}return _0x5eec9f(_0x476530);}});}async[_0x28aa1d(0x1e4)](_0x10873e){const _0x17f26e=_0x28aa1d;return this[_0x17f26e(0x1ca)](_0x10873e);}};j=w([C(0x0,_0x487b9c(_0x212ac0)),C(0x1,_0x487b9c(_0x5a5c34)),C(0x2,_0x3c9a81),C(0x3,_0x15fc99),C(0x4,_0x20abd4)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x12c6ff,_0x5b1fa0){const _0xd3997=_0x198c,_0x53c236=_0x12c6ff();while(!![]){try{const _0x2c489c=parseInt(_0xd3997(0x118))/0x1*(-parseInt(_0xd3997(0x110))/0x2)+parseInt(_0xd3997(0x147))/0x3+-parseInt(_0xd3997(0x148))/0x4+-parseInt(_0xd3997(0x109))/0x5*(parseInt(_0xd3997(0x119))/0x6)+parseInt(_0xd3997(0x12c))/0x7*(-parseInt(_0xd3997(0x105))/0x8)+parseInt(_0xd3997(0x149))/0x9*(-parseInt(_0xd3997(0x13f))/0xa)+parseInt(_0xd3997(0x137))/0xb*(parseInt(_0xd3997(0x12e))/0xc);if(_0x2c489c===_0x5b1fa0)break;else _0x53c236['push'](_0x53c236['shift']());}catch(_0x570565){_0x53c236['push'](_0x53c236['shift']());}}}(_0x5421,0x6227e),function(_0x353cab,_0x58368d){const _0x1a46fe=_0x198c;typeof exports==_0x1a46fe(0x144)&&typeof module<'u'?_0x58368d(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define=='function'&&define[_0x1a46fe(0x126)]?define([_0x1a46fe(0x134),_0x1a46fe(0x132),_0x1a46fe(0x138),_0x1a46fe(0x142),_0x1a46fe(0x141),_0x1a46fe(0x117)],_0x58368d):(_0x353cab=typeof globalThis<'u'?globalThis:_0x353cab||self,_0x58368d(_0x353cab[_0x1a46fe(0x12f)]={},_0x353cab[_0x1a46fe(0x114)],_0x353cab['UniverCore'],_0x353cab[_0x1a46fe(0x13a)],_0x353cab[_0x1a46fe(0x141)],_0x353cab[_0x1a46fe(0x125)]));}(this,function(_0xd04f7a,_0x519a10,_0xb2b17a,_0x48b893,_0x53c63a,_0x4ab3e4){const _0x54cfd0=_0x198c;Object[_0x54cfd0(0x151)](_0xd04f7a,Symbol[_0x54cfd0(0x153)],{'value':_0x54cfd0(0x135)});var _0x2f718c=(_0x31397f,_0x2d3f16)=>()=>(_0x2d3f16||_0x31397f((_0x2d3f16={'exports':{}})['exports'],_0x2d3f16),_0x2d3f16[_0x54cfd0(0x134)]);let _0x4437a6=_0x54cfd0(0x152);Symbol(_0x4437a6);let _0x38acc6={};var _0x377dc9=_0x54cfd0(0x10e),_0x31dfac=_0x54cfd0(0x11c),_0x599fcb=_0x2f718c((_0x24c77e,_0x2e43b5)=>{const _0x3052d5=_0x54cfd0;_0x2e43b5[_0x3052d5(0x134)]=function(){const _0x4f7641=_0x3052d5;throw Error(_0x4f7641(0x10c));};})();function _0x3f35d4(_0x5f1766,_0x48dc7d){return function(_0x72237d,_0x29c470){_0x48dc7d(_0x72237d,_0x29c470,_0x5f1766);};}function _0x4e88fd(_0x21f368,_0x40b9f9,_0x366b78,_0xb7cf9f){const _0x3fbfa4=_0x54cfd0;var _0x1f1f0a=arguments['length'],_0x1e2bb1=_0x1f1f0a<0x3?_0x40b9f9:_0xb7cf9f===null?_0xb7cf9f=Object[_0x3fbfa4(0x123)](_0x40b9f9,_0x366b78):_0xb7cf9f,_0x1fa128;if(typeof Reflect==_0x3fbfa4(0x144)&&typeof Reflect[_0x3fbfa4(0x13c)]==_0x3fbfa4(0x140))_0x1e2bb1=Reflect[_0x3fbfa4(0x13c)](_0x21f368,_0x40b9f9,_0x366b78,_0xb7cf9f);else{for(var _0x49da64=_0x21f368[_0x3fbfa4(0x14f)]-0x1;_0x49da64>=0x0;_0x49da64--)(_0x1fa128=_0x21f368[_0x49da64])&&(_0x1e2bb1=(_0x1f1f0a<0x3?_0x1fa128(_0x1e2bb1):_0x1f1f0a>0x3?_0x1fa128(_0x40b9f9,_0x366b78,_0x1e2bb1):_0x1fa128(_0x40b9f9,_0x366b78))||_0x1e2bb1);}return _0x1f1f0a>0x3&&_0x1e2bb1&&Object[_0x3fbfa4(0x151)](_0x40b9f9,_0x366b78,_0x1e2bb1),_0x1e2bb1;}let _0x2c4e7c=class extends _0xb2b17a['Disposable']{constructor(_0x1d1ce8){const _0x1ac6cf=_0x54cfd0;super(),this[_0x1ac6cf(0x139)]=_0x1d1ce8;}['createSocket'](_0x5070ac){const _0x42d857=_0x54cfd0;var _0x519fec;let _0x49f2bb=((_0x519fec=this[_0x42d857(0x139)]['getConfig'](_0x519a10[_0x42d857(0x108)]))==null?void 0x0:_0x519fec['customHeaders'])||{};try{let _0x401181=new _0x599fcb[(_0x42d857(0x124))](_0x5070ac,{'headers':{..._0x49f2bb}}),_0x3d7a86=new _0xb2b17a[(_0x42d857(0x104))]();return{'URL':_0x5070ac,'close':(_0x38bbcf,_0x5e7a60)=>{const _0x180492=_0x42d857;_0x401181[_0x180492(0x145)](_0x38bbcf,_0x5e7a60),_0x3d7a86['dispose']();},'send':_0x291c04=>{const _0x1ecb38=_0x42d857;_0x401181[_0x1ecb38(0x130)](_0x291c04);},'open$':new _0x53c63a['Observable'](_0x2b7474=>{const _0x2d12b9=_0x42d857;let _0xf5ab04=_0x1457fe=>_0x2b7474[_0x2d12b9(0x14a)](_0x1457fe);_0x401181[_0x2d12b9(0x111)](_0x2d12b9(0x13d),_0xf5ab04),_0x3d7a86[_0x2d12b9(0x14e)]((0x0,_0xb2b17a['toDisposable'])(()=>_0x401181['removeEventListener'](_0x2d12b9(0x13d),_0xf5ab04)));})['pipe']((0x0,_0x53c63a[_0x42d857(0x13e)])()),'close$':new _0x53c63a[(_0x42d857(0x120))](_0x37d8dd=>{const _0x5aa96e=_0x42d857;let _0x41bb0a=_0x935119=>_0x37d8dd['next'](_0x935119);_0x401181[_0x5aa96e(0x111)](_0x5aa96e(0x145),_0x41bb0a),_0x3d7a86['add']((0x0,_0xb2b17a[_0x5aa96e(0x128)])(()=>_0x401181[_0x5aa96e(0x115)](_0x5aa96e(0x145),_0x41bb0a)));})['pipe']((0x0,_0x53c63a[_0x42d857(0x13e)])()),'error$':new _0x53c63a['Observable'](_0xb6b6b5=>{const _0x56f07b=_0x42d857;let _0x1e49f3=_0x1171ba=>_0xb6b6b5[_0x56f07b(0x14a)](_0x1171ba);_0x401181['addEventListener'](_0x56f07b(0x150),_0x1e49f3),_0x3d7a86[_0x56f07b(0x14e)]((0x0,_0xb2b17a[_0x56f07b(0x128)])(()=>_0x401181[_0x56f07b(0x115)]('error',_0x1e49f3)));})[_0x42d857(0x143)]((0x0,_0x53c63a[_0x42d857(0x13e)])()),'message$':new _0x53c63a[(_0x42d857(0x120))](_0xf792e2=>{const _0x1b7a08=_0x42d857;let _0x1e18cb=_0x15f1b5=>_0xf792e2['next'](_0x15f1b5);_0x401181[_0x1b7a08(0x111)](_0x1b7a08(0x10b),_0x1e18cb),_0x3d7a86[_0x1b7a08(0x14e)]((0x0,_0xb2b17a[_0x1b7a08(0x128)])(()=>_0x401181[_0x1b7a08(0x115)]('message',_0x1e18cb)));})['pipe']((0x0,_0x53c63a[_0x42d857(0x13e)])())};}catch(_0x323e14){return console[_0x42d857(0x150)](_0x323e14),null;}}};_0x2c4e7c=_0x4e88fd([_0x3f35d4(0x0,_0xb2b17a[_0x54cfd0(0x12d)])],_0x2c4e7c);function _0x1d4ff3(_0x521583){'@babel/helpers - typeof';const _0x5f2c84=_0x54cfd0;return _0x1d4ff3=typeof Symbol==_0x5f2c84(0x140)&&typeof Symbol[_0x5f2c84(0x154)]=='symbol'?function(_0x541765){return typeof _0x541765;}:function(_0x33a3e7){const _0x1c69e2=_0x5f2c84;return _0x33a3e7&&typeof Symbol==_0x1c69e2(0x140)&&_0x33a3e7[_0x1c69e2(0x14b)]===Symbol&&_0x33a3e7!==Symbol['prototype']?_0x1c69e2(0x13b):typeof _0x33a3e7;},_0x1d4ff3(_0x521583);}function _0x35a04b(_0x31c904,_0x39bff5){const _0x49e8d8=_0x54cfd0;if(_0x1d4ff3(_0x31c904)!=_0x49e8d8(0x144)||!_0x31c904)return _0x31c904;var _0x3a7295=_0x31c904[Symbol[_0x49e8d8(0x12a)]];if(_0x3a7295!==void 0x0){var _0x516bf0=_0x3a7295[_0x49e8d8(0x11e)](_0x31c904,_0x39bff5||_0x49e8d8(0x10f));if(_0x1d4ff3(_0x516bf0)!='object')return _0x516bf0;throw TypeError(_0x49e8d8(0x129));}return(_0x39bff5===_0x49e8d8(0x11d)?String:Number)(_0x31c904);}function _0x3a96ce(_0x5875d5){const _0xb90f6f=_0x54cfd0;var _0xc470c=_0x35a04b(_0x5875d5,_0xb90f6f(0x11d));return _0x1d4ff3(_0xc470c)=='symbol'?_0xc470c:_0xc470c+'';}function _0x9c3a07(_0x4f4ce1,_0x3c4070,_0x516ae1){const _0x5c4f08=_0x54cfd0;return(_0x3c4070=_0x3a96ce(_0x3c4070))in _0x4f4ce1?Object[_0x5c4f08(0x151)](_0x4f4ce1,_0x3c4070,{'value':_0x516ae1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f4ce1[_0x3c4070]=_0x516ae1,_0x4f4ce1;}let _0x59a765=class extends _0xb2b17a[_0x54cfd0(0x11a)]{constructor(_0xac4688=_0x38acc6,_0x291bf8,_0x2b0a48){const _0x818c85=_0x54cfd0;super(),this[_0x818c85(0x139)]=_0x291bf8,this[_0x818c85(0x113)]=_0x2b0a48,this[_0x818c85(0x139)][_0x818c85(0x11b)](_0x4437a6,_0xac4688);}['onStarting'](){const _0x1431f2=_0x54cfd0;this[_0x1431f2(0x136)]();}['_registerDependencies'](){const _0x53acba=_0x54cfd0;(0x0,_0xb2b17a[_0x53acba(0x10a)])(this[_0x53acba(0x113)],[[_0x48b893['ISocketService'],{'useClass':_0x2c4e7c}]]);}};_0x9c3a07(_0x59a765,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x9c3a07(_0x59a765,_0x54cfd0(0x131),_0x377dc9),_0x9c3a07(_0x59a765,'version',_0x31dfac),_0x59a765=_0x4e88fd([(0x0,_0xb2b17a[_0x54cfd0(0x133)])(_0x519a10['UniverCollaborationClientPlugin']),_0x3f35d4(0x1,_0xb2b17a[_0x54cfd0(0x12d)]),_0x3f35d4(0x2,(0x0,_0xb2b17a[_0x54cfd0(0x116)])(_0xb2b17a[_0x54cfd0(0x112)]))],_0x59a765);let _0x6bd25d=class extends _0x519a10[_0x54cfd0(0x127)]{constructor(_0xe53e58,_0x24fc32,_0x1c81ac,_0x34ed7d,_0x157664){const _0x36b02a=_0x54cfd0;super(_0xe53e58,_0x24fc32,_0x1c81ac,_0x34ed7d,_0x157664);let _0x4d6245=this[_0x36b02a(0x139)][_0x36b02a(0x107)](_0x519a10['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this['_httpService'][_0x36b02a(0x10d)]({'interceptor':(_0x547ad0,_0x1f57b3)=>{const _0x564094=_0x36b02a;let _0x3c4d89=_0x547ad0[_0x564094(0x122)];if(_0x4d6245!=null&&_0x4d6245['customHeaders']){for(let _0x18c605 in _0x4d6245[_0x564094(0x106)])_0x3c4d89[_0x564094(0x121)](_0x18c605,_0x4d6245[_0x564094(0x106)][_0x18c605]);}return _0x1f57b3(_0x547ad0);}});}async['createSocket'](_0xbd49a7){const _0x364445=_0x54cfd0;return this[_0x364445(0x146)](_0xbd49a7);}};_0x6bd25d=_0x4e88fd([_0x3f35d4(0x0,(0x0,_0xb2b17a[_0x54cfd0(0x116)])(_0xb2b17a[_0x54cfd0(0x112)])),_0x3f35d4(0x1,(0x0,_0xb2b17a[_0x54cfd0(0x116)])(_0x48b893['HTTPService'])),_0x3f35d4(0x2,_0xb2b17a[_0x54cfd0(0x12d)]),_0x3f35d4(0x3,_0xb2b17a[_0x54cfd0(0x12b)]),_0x3f35d4(0x4,_0x4ab3e4[_0x54cfd0(0x14c)])],_0x6bd25d),_0xd04f7a[_0x54cfd0(0x14d)]=_0x4437a6,Object[_0x54cfd0(0x151)](_0xd04f7a,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x6bd25d;}}),Object[_0x54cfd0(0x151)](_0xd04f7a,_0x54cfd0(0x11f),{'enumerable':!0x0,'get':function(){return _0x59a765;}});}));function _0x198c(_0x4e40d6,_0x39a64c){_0x4e40d6=_0x4e40d6-0x104;const _0x54215a=_0x5421();let _0x198c6b=_0x54215a[_0x4e40d6];return _0x198c6b;}function _0x5421(){const _0x1cd218=['Injector','_injector','UniverProCollaborationClient','removeEventListener','Inject','@univerjs-pro/collaboration','113837wRIYKB','90DQtZul','Plugin','setConfig','0.19.0','string','call','UniverCollaborationClientNodePlugin','Observable','set','headers','getOwnPropertyDescriptor','WebSocket','UniverProCollaboration','amd','CollaborationSocketService','toDisposable','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','toPrimitive','ILogService','1904fMeQpY','IConfigService','1957212fsNdzg','UniverProCollaborationClientNode','send','packageName','@univerjs-pro/collaboration-client','DependentOn','exports','Module','_registerDependencies','44XZMvFI','@univerjs/core','_configService','UniverNetwork','symbol','decorate','open','share','975340KwdrXy','function','rxjs','@univerjs/network','pipe','object','close','_doCreateSocket','2275926ThbFDl','2157096ANwoqK','18IzcLwb','next','constructor','ISnapshotServerService','COLLABORATION_CLIENT_NODE_CONFIG_KEY','add','length','error','defineProperty','collaboration-client-node.config','toStringTag','iterator','DisposableCollection','1104qCrnZa','customHeaders','getConfig','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','41095NiEkmd','registerDependencies','message','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','registerHTTPInterceptor','@univerjs-pro/collaboration-client-node','default','2KWNrTw','addEventListener'];_0x5421=function(){return _0x1cd218;};return _0x5421();}
1
+ function _0x5205(_0x24b441,_0x278663){_0x24b441=_0x24b441-0xe5;const _0x3b6ad3=_0x3b6a();let _0x5205f2=_0x3b6ad3[_0x24b441];return _0x5205f2;}function _0x3b6a(){const _0x247f6f=['getConfig','function','decorate','toPrimitive','UniverProCollaborationClient','onStarting','20670BvBlyw','WebSocket','dispose','_configService','0.20.0-insiders.20260411-27a8c24','16975PmfRVd','DisposableCollection','share','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_doCreateSocket','UniverNetwork','string','object','NodeCollaborationSocketService','pipe','_injector','addEventListener','UniverProCollaboration','COLLABORATION_CLIENT_NODE_CONFIG_KEY','toDisposable','add','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','message','amd','removeEventListener','Injector','customHeaders','exports','registerDependencies','prototype','defineProperty','headers','_registerDependencies','@univerjs-pro/collaboration-client-node','toStringTag','setConfig','Observable','Disposable','CollaborationSocketService','default','46ejJHkv','set','12uHxwKe','version','42991ywCtiK','3837iMLvDI','collaboration-client-node.config','3284202SKilTq','iterator','HTTPService','close','UniverProCollaborationClientNode','_httpService','registerHTTPInterceptor','open','rxjs','556FUJhPa','next','UniverCollaborationClientPlugin','ISnapshotServerService','UniverCollaborationClientNodePlugin','1216qqsqwY','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs/network','constructor','ISocketService','error','542660mYDMbz','135RPjCxo','IConfigService','length','getOwnPropertyDescriptor','symbol','30819503EhNejD','Inject','createSocket'];_0x3b6a=function(){return _0x247f6f;};return _0x3b6a();}(function(_0xd5cf89,_0xe926e2){const _0x1036ad=_0x5205,_0x4b4f08=_0xd5cf89();while(!![]){try{const _0x574f58=parseInt(_0x1036ad(0x116))/0x1*(-parseInt(_0x1036ad(0x112))/0x2)+parseInt(_0x1036ad(0x117))/0x3+parseInt(_0x1036ad(0x122))/0x4*(parseInt(_0x1036ad(0xea))/0x5)+-parseInt(_0x1036ad(0x119))/0x6+-parseInt(_0x1036ad(0xef))/0x7*(parseInt(_0x1036ad(0x127))/0x8)+-parseInt(_0x1036ad(0x12e))/0x9*(parseInt(_0x1036ad(0x12d))/0xa)+parseInt(_0x1036ad(0x133))/0xb*(parseInt(_0x1036ad(0x114))/0xc);if(_0x574f58===_0xe926e2)break;else _0x4b4f08['push'](_0x4b4f08['shift']());}catch(_0x43f6b8){_0x4b4f08['push'](_0x4b4f08['shift']());}}}(_0x3b6a,0xa0df0),function(_0x519262,_0x34d2bf){const _0x3ad3c7=_0x5205;typeof exports==_0x3ad3c7(0xf6)&&typeof module<'u'?_0x34d2bf(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define==_0x3ad3c7(0xe5)&&define[_0x3ad3c7(0x101)]?define([_0x3ad3c7(0x105),'@univerjs-pro/collaboration-client','@univerjs/core',_0x3ad3c7(0x129),_0x3ad3c7(0x121),'@univerjs-pro/collaboration'],_0x34d2bf):(_0x519262=typeof globalThis<'u'?globalThis:_0x519262||self,_0x34d2bf(_0x519262[_0x3ad3c7(0x11d)]={},_0x519262[_0x3ad3c7(0xe8)],_0x519262['UniverCore'],_0x519262[_0x3ad3c7(0xf4)],_0x519262[_0x3ad3c7(0x121)],_0x519262[_0x3ad3c7(0xfb)]));}(this,function(_0x3f1412,_0x247bd2,_0x11c8b8,_0x26796f,_0x1c3f16,_0x29ce01){const _0xadc34=_0x5205;Object[_0xadc34(0x108)](_0x3f1412,Symbol[_0xadc34(0x10c)],{'value':'Module'});var _0x328783=(_0x2626b1,_0x5ecbb0)=>()=>(_0x5ecbb0||_0x2626b1((_0x5ecbb0={'exports':{}})['exports'],_0x5ecbb0),_0x5ecbb0[_0xadc34(0x105)]);let _0x35df25=_0xadc34(0x118);Symbol(_0x35df25);let _0x1e9abd={};var _0x550209=_0xadc34(0x10b),_0x215143=_0xadc34(0xee),_0x3073f7=_0x328783((_0x5278a1,_0x48f3bd)=>{const _0x42ff51=_0xadc34;_0x48f3bd[_0x42ff51(0x105)]=function(){const _0x1e5a82=_0x42ff51;throw Error(_0x1e5a82(0xff));};})();function _0x4ecd44(_0x23cf43,_0x4ef3f2){return function(_0x286fc8,_0x315c0c){_0x4ef3f2(_0x286fc8,_0x315c0c,_0x23cf43);};}function _0x2bf9a2(_0x1cc1e0,_0xdcc7b0,_0x3c0068,_0x4c06d9){const _0x47ebfb=_0xadc34;var _0x2644a4=arguments['length'],_0x43e5ee=_0x2644a4<0x3?_0xdcc7b0:_0x4c06d9===null?_0x4c06d9=Object[_0x47ebfb(0x131)](_0xdcc7b0,_0x3c0068):_0x4c06d9,_0x3efcd9;if(typeof Reflect=='object'&&typeof Reflect[_0x47ebfb(0xe6)]==_0x47ebfb(0xe5))_0x43e5ee=Reflect[_0x47ebfb(0xe6)](_0x1cc1e0,_0xdcc7b0,_0x3c0068,_0x4c06d9);else{for(var _0x7ea90c=_0x1cc1e0[_0x47ebfb(0x130)]-0x1;_0x7ea90c>=0x0;_0x7ea90c--)(_0x3efcd9=_0x1cc1e0[_0x7ea90c])&&(_0x43e5ee=(_0x2644a4<0x3?_0x3efcd9(_0x43e5ee):_0x2644a4>0x3?_0x3efcd9(_0xdcc7b0,_0x3c0068,_0x43e5ee):_0x3efcd9(_0xdcc7b0,_0x3c0068))||_0x43e5ee);}return _0x2644a4>0x3&&_0x43e5ee&&Object[_0x47ebfb(0x108)](_0xdcc7b0,_0x3c0068,_0x43e5ee),_0x43e5ee;}let _0x21ef24=class extends _0x11c8b8[_0xadc34(0x10f)]{constructor(_0xee9a86){const _0x4f76c5=_0xadc34;super(),this[_0x4f76c5(0xed)]=_0xee9a86;}[_0xadc34(0x135)](_0x40af72){const _0x1e4e3e=_0xadc34;var _0x192f80;let _0x5c8f47=((_0x192f80=this['_configService'][_0x1e4e3e(0x136)](_0x247bd2[_0x1e4e3e(0xf2)]))==null?void 0x0:_0x192f80[_0x1e4e3e(0x104)])||{};try{let _0x59e190=new _0x3073f7[(_0x1e4e3e(0xeb))](_0x40af72,{'headers':{..._0x5c8f47}}),_0x3f0114=new _0x11c8b8[(_0x1e4e3e(0xf0))]();return{'URL':_0x40af72,'close':(_0x46251d,_0x5de5b7)=>{const _0x22d331=_0x1e4e3e;_0x59e190[_0x22d331(0x11c)](_0x46251d,_0x5de5b7),_0x3f0114[_0x22d331(0xec)]();},'send':_0x45cc89=>{_0x59e190['send'](_0x45cc89);},'open$':new _0x1c3f16[(_0x1e4e3e(0x10e))](_0xa2ff52=>{const _0x312dcb=_0x1e4e3e;let _0x18af91=_0x59244a=>_0xa2ff52[_0x312dcb(0x123)](_0x59244a);_0x59e190[_0x312dcb(0xfa)](_0x312dcb(0x120),_0x18af91),_0x3f0114[_0x312dcb(0xfe)]((0x0,_0x11c8b8[_0x312dcb(0xfd)])(()=>_0x59e190[_0x312dcb(0x102)](_0x312dcb(0x120),_0x18af91)));})[_0x1e4e3e(0xf8)]((0x0,_0x1c3f16['share'])()),'close$':new _0x1c3f16['Observable'](_0x3cade0=>{const _0x5ecc7d=_0x1e4e3e;let _0x58934a=_0x23e01c=>_0x3cade0[_0x5ecc7d(0x123)](_0x23e01c);_0x59e190['addEventListener']('close',_0x58934a),_0x3f0114[_0x5ecc7d(0xfe)]((0x0,_0x11c8b8[_0x5ecc7d(0xfd)])(()=>_0x59e190[_0x5ecc7d(0x102)](_0x5ecc7d(0x11c),_0x58934a)));})['pipe']((0x0,_0x1c3f16[_0x1e4e3e(0xf1)])()),'error$':new _0x1c3f16['Observable'](_0x4b3bb0=>{const _0x588863=_0x1e4e3e;let _0x1d9c3f=_0x3854e4=>_0x4b3bb0[_0x588863(0x123)](_0x3854e4);_0x59e190[_0x588863(0xfa)](_0x588863(0x12c),_0x1d9c3f),_0x3f0114[_0x588863(0xfe)]((0x0,_0x11c8b8['toDisposable'])(()=>_0x59e190[_0x588863(0x102)](_0x588863(0x12c),_0x1d9c3f)));})[_0x1e4e3e(0xf8)]((0x0,_0x1c3f16['share'])()),'message$':new _0x1c3f16[(_0x1e4e3e(0x10e))](_0x443cb2=>{const _0x630317=_0x1e4e3e;let _0x133803=_0x3c5832=>_0x443cb2[_0x630317(0x123)](_0x3c5832);_0x59e190[_0x630317(0xfa)](_0x630317(0x100),_0x133803),_0x3f0114[_0x630317(0xfe)]((0x0,_0x11c8b8['toDisposable'])(()=>_0x59e190[_0x630317(0x102)](_0x630317(0x100),_0x133803)));})[_0x1e4e3e(0xf8)]((0x0,_0x1c3f16[_0x1e4e3e(0xf1)])())};}catch(_0x32f09f){return console[_0x1e4e3e(0x12c)](_0x32f09f),null;}}};_0x21ef24=_0x2bf9a2([_0x4ecd44(0x0,_0x11c8b8[_0xadc34(0x12f)])],_0x21ef24);function _0x4fba98(_0x1d1acb){'@babel/helpers - typeof';const _0xa0b48e=_0xadc34;return _0x4fba98=typeof Symbol==_0xa0b48e(0xe5)&&typeof Symbol[_0xa0b48e(0x11a)]==_0xa0b48e(0x132)?function(_0x5cd2f8){return typeof _0x5cd2f8;}:function(_0x41a70b){const _0x3c9d78=_0xa0b48e;return _0x41a70b&&typeof Symbol==_0x3c9d78(0xe5)&&_0x41a70b[_0x3c9d78(0x12a)]===Symbol&&_0x41a70b!==Symbol[_0x3c9d78(0x107)]?_0x3c9d78(0x132):typeof _0x41a70b;},_0x4fba98(_0x1d1acb);}function _0x28535a(_0x403092,_0x5f089f){const _0x3eb721=_0xadc34;if(_0x4fba98(_0x403092)!=_0x3eb721(0xf6)||!_0x403092)return _0x403092;var _0x381333=_0x403092[Symbol[_0x3eb721(0xe7)]];if(_0x381333!==void 0x0){var _0x14edf6=_0x381333['call'](_0x403092,_0x5f089f||_0x3eb721(0x111));if(_0x4fba98(_0x14edf6)!=_0x3eb721(0xf6))return _0x14edf6;throw TypeError(_0x3eb721(0x128));}return(_0x5f089f===_0x3eb721(0xf5)?String:Number)(_0x403092);}function _0x45d795(_0x2f2c42){const _0x1497c4=_0xadc34;var _0x3ae824=_0x28535a(_0x2f2c42,_0x1497c4(0xf5));return _0x4fba98(_0x3ae824)==_0x1497c4(0x132)?_0x3ae824:_0x3ae824+'';}function _0x81b17b(_0x5268a0,_0x224d81,_0x282c19){const _0x12d61c=_0xadc34;return(_0x224d81=_0x45d795(_0x224d81))in _0x5268a0?Object[_0x12d61c(0x108)](_0x5268a0,_0x224d81,{'value':_0x282c19,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5268a0[_0x224d81]=_0x282c19,_0x5268a0;}let _0x1d62af=class extends _0x11c8b8['Plugin']{constructor(_0x4fe095=_0x1e9abd,_0x25594b,_0x315845){const _0x23e766=_0xadc34;super(),this['_configService']=_0x25594b,this['_injector']=_0x315845,this[_0x23e766(0xed)][_0x23e766(0x10d)](_0x35df25,_0x4fe095);}[_0xadc34(0xe9)](){this['_registerDependencies']();}[_0xadc34(0x10a)](){const _0x23e41f=_0xadc34;(0x0,_0x11c8b8[_0x23e41f(0x106)])(this[_0x23e41f(0xf9)],[[_0x26796f[_0x23e41f(0x12b)],{'useClass':_0x21ef24}]]);}};_0x81b17b(_0x1d62af,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x81b17b(_0x1d62af,'packageName',_0x550209),_0x81b17b(_0x1d62af,_0xadc34(0x115),_0x215143),_0x1d62af=_0x2bf9a2([(0x0,_0x11c8b8['DependentOn'])(_0x247bd2[_0xadc34(0x124)]),_0x4ecd44(0x1,_0x11c8b8[_0xadc34(0x12f)]),_0x4ecd44(0x2,(0x0,_0x11c8b8[_0xadc34(0x134)])(_0x11c8b8[_0xadc34(0x103)]))],_0x1d62af);let _0x477c83=class extends _0x247bd2[_0xadc34(0x110)]{constructor(_0x2aeb79,_0x145224,_0x38ae5d,_0x3e0e27,_0x3cf399){const _0xe07bca=_0xadc34;super(_0x2aeb79,_0x145224,_0x38ae5d,_0x3e0e27,_0x3cf399);let _0x50933d=this['_configService']['getConfig'](_0x247bd2[_0xe07bca(0xf2)]);this[_0xe07bca(0x11e)][_0xe07bca(0x11f)]({'interceptor':(_0x524075,_0x2e0052)=>{const _0x3bbeef=_0xe07bca;let _0x51a8af=_0x524075[_0x3bbeef(0x109)];if(_0x50933d!=null&&_0x50933d[_0x3bbeef(0x104)]){for(let _0x573950 in _0x50933d[_0x3bbeef(0x104)])_0x51a8af[_0x3bbeef(0x113)](_0x573950,_0x50933d[_0x3bbeef(0x104)][_0x573950]);}return _0x2e0052(_0x524075);}});}async[_0xadc34(0x135)](_0x4219ee){const _0x3d3fa8=_0xadc34;return this[_0x3d3fa8(0xf3)](_0x4219ee);}};_0x477c83=_0x2bf9a2([_0x4ecd44(0x0,(0x0,_0x11c8b8[_0xadc34(0x134)])(_0x11c8b8['Injector'])),_0x4ecd44(0x1,(0x0,_0x11c8b8[_0xadc34(0x134)])(_0x26796f[_0xadc34(0x11b)])),_0x4ecd44(0x2,_0x11c8b8['IConfigService']),_0x4ecd44(0x3,_0x11c8b8['ILogService']),_0x4ecd44(0x4,_0x29ce01[_0xadc34(0x125)])],_0x477c83),_0x3f1412[_0xadc34(0xfc)]=_0x35df25,Object[_0xadc34(0x108)](_0x3f1412,_0xadc34(0xf7),{'enumerable':!0x0,'get':function(){return _0x477c83;}}),Object['defineProperty'](_0x3f1412,_0xadc34(0x126),{'enumerable':!0x0,'get':function(){return _0x1d62af;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "0.19.0",
3
+ "version": "0.20.0-insiders.20260411-27a8c24",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -46,17 +46,17 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "ws": "8.19.0",
49
- "@univerjs-pro/collaboration-client": "0.19.0",
50
- "@univerjs/network": "0.19.0",
51
- "@univerjs-pro/collaboration": "0.19.0",
52
- "@univerjs/core": "0.19.0"
49
+ "@univerjs-pro/collaboration": "0.20.0-insiders.20260411-27a8c24",
50
+ "@univerjs-pro/collaboration-client": "0.20.0-insiders.20260411-27a8c24",
51
+ "@univerjs/core": "0.20.0-insiders.20260411-27a8c24",
52
+ "@univerjs/network": "0.20.0-insiders.20260411-27a8c24"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/ws": "8.18.1",
56
56
  "rxjs": "7.8.2",
57
57
  "typescript": "^6.0.2",
58
58
  "vitest": "^4.1.1",
59
- "@univerjs-infra/shared": "0.19.0"
59
+ "@univerjs-infra/shared": "0.20.0"
60
60
  },
61
61
  "scripts": {
62
62
  "test": "vitest run",