@univerjs-pro/collaboration-client-node 1.0.3 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x32668f=_0x3c9f;function _0x3c9f(_0x1f395b,_0x444109){_0x1f395b=_0x1f395b-0xe1;const _0x307bd4=_0x307b();let _0x3c9f8b=_0x307bd4[_0x1f395b];return _0x3c9f8b;}(function(_0x21dcd6,_0x4c3f68){const _0x20de0b=_0x3c9f,_0x49d5aa=_0x21dcd6();while(!![]){try{const _0x1e432a=-parseInt(_0x20de0b(0xe9))/0x1+-parseInt(_0x20de0b(0xf8))/0x2+parseInt(_0x20de0b(0x11e))/0x3*(parseInt(_0x20de0b(0xe7))/0x4)+parseInt(_0x20de0b(0x114))/0x5+-parseInt(_0x20de0b(0x10e))/0x6*(parseInt(_0x20de0b(0xe5))/0x7)+parseInt(_0x20de0b(0x115))/0x8+parseInt(_0x20de0b(0x103))/0x9*(parseInt(_0x20de0b(0xfb))/0xa);if(_0x1e432a===_0x4c3f68)break;else _0x49d5aa['push'](_0x49d5aa['shift']());}catch(_0xa54d27){_0x49d5aa['push'](_0x49d5aa['shift']());}}}(_0x307b,0xc4f76),Object[_0x32668f(0x11b)](exports,Symbol['toStringTag'],{'value':_0x32668f(0x122)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs-pro/license'),r=require('@univerjs/core'),i=require('@univerjs/network'),a=require('rxjs'),o=require('ws');var s=_0x32668f(0xf6),c=_0x32668f(0x11f);const l={};function u(_0x541128,_0x5034dc){return function(_0x5e6f55,_0x25474c){_0x5034dc(_0x5e6f55,_0x25474c,_0x541128);};}function _0x307b(){const _0x49625f=['collaboration-client-node.config','Injector','@univerjs-pro/collaboration-client-node','UniverCollaborationPlugin','1867964pTSAds','constructor','getConfig','10TDSCnd','merge','addEventListener','customHeaders','_httpService','open','HTTPService','ISnapshotServerService','7725069jyjSkw','share','message','_injector','IConfigService','registerHTTPInterceptor','pluginName','_configService','UniverCollaborationClientPlugin','Inject','object','34494EDCEGm','_config','close','WebSocket','setConfig','UniverNetworkPlugin','2143985cObdmD','4749336zDVRii','removeEventListener','pipe','next','string','add','defineProperty','ISocketService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','330agbHCe','1.0.3','packageName','_doCreateSocket','Module','iterator','getOwnPropertyDescriptor','version','function','DisposableCollection','_registerDependencies','CollaborationSocketService','error','toPrimitive','dispose','headers','1351fNDqbx','createSocket','53716ZlyPBE','Plugin','507682GQdUPu','onStarting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Observable','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','toDisposable','symbol','set','NodeCollaborationSocketService','DependentOn','decorate'];_0x307b=function(){return _0x49625f;};return _0x307b();}function d(_0x3f973f,_0x209d67,_0x53d8a3,_0x344e02){const _0x2fb8eb=_0x32668f;var _0x510e07=arguments['length'],_0x3df5fa=_0x510e07<0x3?_0x209d67:_0x344e02===null?_0x344e02=Object[_0x2fb8eb(0x124)](_0x209d67,_0x53d8a3):_0x344e02,_0x20733d;if(typeof Reflect=='object'&&typeof Reflect[_0x2fb8eb(0xf3)]==_0x2fb8eb(0x126))_0x3df5fa=Reflect[_0x2fb8eb(0xf3)](_0x3f973f,_0x209d67,_0x53d8a3,_0x344e02);else{for(var _0x2e6af6=_0x3f973f['length']-0x1;_0x2e6af6>=0x0;_0x2e6af6--)(_0x20733d=_0x3f973f[_0x2e6af6])&&(_0x3df5fa=(_0x510e07<0x3?_0x20733d(_0x3df5fa):_0x510e07>0x3?_0x20733d(_0x209d67,_0x53d8a3,_0x3df5fa):_0x20733d(_0x209d67,_0x53d8a3))||_0x3df5fa);}return _0x510e07>0x3&&_0x3df5fa&&Object['defineProperty'](_0x209d67,_0x53d8a3,_0x3df5fa),_0x3df5fa;}let f=class extends r['Disposable']{constructor(_0x291916){super(),this['_configService']=_0x291916;}[_0x32668f(0xe6)](_0x5e9bf6){const _0x1711e7=_0x32668f;var _0x1dcaeb;let _0x50a0b2=((_0x1dcaeb=this[_0x1711e7(0x10a)][_0x1711e7(0xfa)](t[_0x1711e7(0x11d)]))==null?void 0x0:_0x1dcaeb[_0x1711e7(0xfe)])||{};try{let _0x32ec52=new o[(_0x1711e7(0x111))](_0x5e9bf6,{'headers':{..._0x50a0b2}}),_0x4e38a5=new r[(_0x1711e7(0x127))]();return{'URL':_0x5e9bf6,'close':(_0x778192,_0x116293)=>{const _0x5652b4=_0x1711e7;_0x32ec52['close'](_0x778192,_0x116293),_0x4e38a5[_0x5652b4(0xe3)]();},'send':_0x362458=>{_0x32ec52['send'](_0x362458);},'open$':new a[(_0x1711e7(0xec))](_0x5e1add=>{const _0x3e8919=_0x1711e7;let _0x927610=_0x10d899=>_0x5e1add[_0x3e8919(0x118)](_0x10d899);_0x32ec52[_0x3e8919(0xfd)]('open',_0x927610),_0x4e38a5[_0x3e8919(0x11a)]((0x0,r['toDisposable'])(()=>_0x32ec52['removeEventListener'](_0x3e8919(0x100),_0x927610)));})[_0x1711e7(0x117)]((0x0,a[_0x1711e7(0x104)])()),'close$':new a[(_0x1711e7(0xec))](_0x22bdd5=>{const _0x13e98d=_0x1711e7;let _0x26f279=_0x399cb8=>_0x22bdd5['next'](_0x399cb8);_0x32ec52[_0x13e98d(0xfd)](_0x13e98d(0x110),_0x26f279),_0x4e38a5[_0x13e98d(0x11a)]((0x0,r['toDisposable'])(()=>_0x32ec52['removeEventListener']('close',_0x26f279)));})[_0x1711e7(0x117)]((0x0,a[_0x1711e7(0x104)])()),'error$':new a[(_0x1711e7(0xec))](_0x27c2c2=>{const _0x2bbd28=_0x1711e7;let _0x177a3f=_0x5c7a8d=>_0x27c2c2['next'](_0x5c7a8d);_0x32ec52[_0x2bbd28(0xfd)](_0x2bbd28(0xe1),_0x177a3f),_0x4e38a5['add']((0x0,r[_0x2bbd28(0xee)])(()=>_0x32ec52[_0x2bbd28(0x116)](_0x2bbd28(0xe1),_0x177a3f)));})[_0x1711e7(0x117)]((0x0,a['share'])()),'message$':new a[(_0x1711e7(0xec))](_0x364b9c=>{const _0x57a246=_0x1711e7;let _0x23356b=_0x214c32=>_0x364b9c[_0x57a246(0x118)](_0x214c32);_0x32ec52[_0x57a246(0xfd)](_0x57a246(0x105),_0x23356b),_0x4e38a5[_0x57a246(0x11a)]((0x0,r[_0x57a246(0xee)])(()=>_0x32ec52['removeEventListener'](_0x57a246(0x105),_0x23356b)));})[_0x1711e7(0x117)]((0x0,a['share'])())};}catch(_0x4f2afd){return console[_0x1711e7(0xe1)](_0x4f2afd),null;}}};f=d([u(0x0,r[_0x32668f(0x107)])],f);function p(_0xacd324){'@babel/helpers - typeof';const _0x1b6966=_0x32668f;return p=typeof Symbol=='function'&&typeof Symbol[_0x1b6966(0x123)]==_0x1b6966(0xef)?function(_0x1990ed){return typeof _0x1990ed;}:function(_0x50c556){const _0x4e4d05=_0x1b6966;return _0x50c556&&typeof Symbol=='function'&&_0x50c556[_0x4e4d05(0xf9)]===Symbol&&_0x50c556!==Symbol['prototype']?_0x4e4d05(0xef):typeof _0x50c556;},p(_0xacd324);}function m(_0x296916,_0x2b2968){const _0x283437=_0x32668f;if(p(_0x296916)!=_0x283437(0x10d)||!_0x296916)return _0x296916;var _0x431adc=_0x296916[Symbol[_0x283437(0xe2)]];if(_0x431adc!==void 0x0){var _0x7dacf9=_0x431adc['call'](_0x296916,_0x2b2968||'default');if(p(_0x7dacf9)!=_0x283437(0x10d))return _0x7dacf9;throw TypeError(_0x283437(0xeb));}return(_0x2b2968===_0x283437(0x119)?String:Number)(_0x296916);}function h(_0x3c4d48){const _0x397838=_0x32668f;var _0x14bd61=m(_0x3c4d48,_0x397838(0x119));return p(_0x14bd61)=='symbol'?_0x14bd61:_0x14bd61+'';}function g(_0x55e3f7,_0x44b382,_0x4cc518){const _0x2dc0ce=_0x32668f;return(_0x44b382=h(_0x44b382))in _0x55e3f7?Object[_0x2dc0ce(0x11b)](_0x55e3f7,_0x44b382,{'value':_0x4cc518,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x55e3f7[_0x44b382]=_0x4cc518,_0x55e3f7;}let _=class extends r[_0x32668f(0xe8)]{constructor(_0xfad946=l,_0x38f61e,_0x5abaad){const _0x4a6808=_0x32668f;super(),this[_0x4a6808(0x10f)]=_0xfad946,this['_configService']=_0x38f61e,this[_0x4a6808(0x106)]=_0x5abaad;let {..._0x4f7379}=(0x0,r[_0x4a6808(0xfc)])({},l,this[_0x4a6808(0x10f)]);this['_configService'][_0x4a6808(0x112)](_0x4a6808(0xf4),_0x4f7379);}[_0x32668f(0xea)](){const _0x318cb8=_0x32668f;this[_0x318cb8(0x128)]();}[_0x32668f(0x128)](){const _0x41a9ac=_0x32668f;(0x0,r['registerDependencies'])(this[_0x41a9ac(0x106)],[[i[_0x41a9ac(0x11c)],{'useClass':f}]]);}};g(_,_0x32668f(0x109),_0x32668f(0xed)),g(_,_0x32668f(0x120),s),g(_,_0x32668f(0x125),c),_=d([(0x0,r[_0x32668f(0xf2)])(n['UniverLicensePlugin'],i[_0x32668f(0x113)],e[_0x32668f(0xf7)],t[_0x32668f(0x10b)]),u(0x1,r[_0x32668f(0x107)]),u(0x2,(0x0,r[_0x32668f(0x10c)])(r['Injector']))],_);let v=class extends t[_0x32668f(0x129)]{constructor(_0x5bfc95,_0x200561,_0x548454,_0x3374ba,_0x3ff81d){const _0x323105=_0x32668f;super(_0x5bfc95,_0x200561,_0x548454,_0x3374ba,_0x3ff81d);let _0x526595=this[_0x323105(0x10a)][_0x323105(0xfa)](t[_0x323105(0x11d)]);this[_0x323105(0xff)][_0x323105(0x108)]({'interceptor':(_0x2a3632,_0x437eb7)=>{const _0x494835=_0x323105;let _0x69d75c=_0x2a3632[_0x494835(0xe4)];if(_0x526595!=null&&_0x526595[_0x494835(0xfe)]){for(let _0x3236d3 in _0x526595['customHeaders'])_0x69d75c[_0x494835(0xf0)](_0x3236d3,_0x526595[_0x494835(0xfe)][_0x3236d3]);}return _0x437eb7(_0x2a3632);}});}async[_0x32668f(0xe6)](_0x54e413){const _0xeb2e1c=_0x32668f;return this[_0xeb2e1c(0x121)](_0x54e413);}};v=d([u(0x0,(0x0,r[_0x32668f(0x10c)])(r[_0x32668f(0xf5)])),u(0x1,(0x0,r['Inject'])(i[_0x32668f(0x101)])),u(0x2,r[_0x32668f(0x107)]),u(0x3,r['ILogService']),u(0x4,e[_0x32668f(0x102)])],v),Object[_0x32668f(0x11b)](exports,_0x32668f(0xf1),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x32668f(0x11b)](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
1
+ const _0x340046=_0x1058;(function(_0x163a4d,_0x338364){const _0x44b38b=_0x1058,_0x588b22=_0x163a4d();while(!![]){try{const _0xdc1e49=parseInt(_0x44b38b(0xc2))/0x1*(-parseInt(_0x44b38b(0xd7))/0x2)+-parseInt(_0x44b38b(0xc9))/0x3+-parseInt(_0x44b38b(0xb9))/0x4+-parseInt(_0x44b38b(0xe0))/0x5*(-parseInt(_0x44b38b(0xc5))/0x6)+-parseInt(_0x44b38b(0xb6))/0x7+parseInt(_0x44b38b(0xeb))/0x8+-parseInt(_0x44b38b(0xf6))/0x9*(-parseInt(_0x44b38b(0xbc))/0xa);if(_0xdc1e49===_0x338364)break;else _0x588b22['push'](_0x588b22['shift']());}catch(_0x528fa5){_0x588b22['push'](_0x588b22['shift']());}}}(_0x4a61,0xda967),Object[_0x340046(0xe4)](exports,Symbol[_0x340046(0xf4)],{'value':'Module'}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs-pro/license'),r=require('@univerjs/core'),i=require('@univerjs/network'),a=require('rxjs'),o=require('ws');var s='@univerjs-pro/collaboration-client-node',c=_0x340046(0xf2);const l={};function u(_0x57eb16,_0x11d0bb){return function(_0x2a71b1,_0x179024){_0x11d0bb(_0x2a71b1,_0x179024,_0x57eb16);};}function _0x4a61(){const _0xf0a8a6=['string','10922056lXkTtO','registerDependencies','UniverCollaborationClientPlugin','next','share','_configService','_doCreateSocket','1.1.0','registerHTTPInterceptor','toStringTag','NodeCollaborationSocketService','162RQoWVL','set','Injector','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','add','iterator','call','ISocketService','5399324TjVYxT','ILogService','constructor','5029776yBGnSN','decorate','pipe','422410ktLIbH','onStarting','removeEventListener','CollaborationSocketService','Observable','Plugin','2ThsSdI','symbol','_registerDependencies','10334382RzrXRN','merge','addEventListener','Disposable','700545CqhAlP','WebSocket','pluginName','toPrimitive','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','toDisposable','getConfig','createSocket','default','_injector','message','getOwnPropertyDescriptor','ISnapshotServerService','packageName','690366wDdhlf','dispose','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','setConfig','IConfigService','object','length','customHeaders','_config','5MYqHLh','close','function','headers','defineProperty','Inject','error','HTTPService','open','DependentOn'];_0x4a61=function(){return _0xf0a8a6;};return _0x4a61();}function d(_0x28f92d,_0x111bf6,_0x326771,_0xceee72){const _0xc96142=_0x340046;var _0x58220f=arguments[_0xc96142(0xdd)],_0x3dcf76=_0x58220f<0x3?_0x111bf6:_0xceee72===null?_0xceee72=Object[_0xc96142(0xd4)](_0x111bf6,_0x326771):_0xceee72,_0x35035a;if(typeof Reflect==_0xc96142(0xdc)&&typeof Reflect[_0xc96142(0xba)]==_0xc96142(0xe2))_0x3dcf76=Reflect[_0xc96142(0xba)](_0x28f92d,_0x111bf6,_0x326771,_0xceee72);else{for(var _0x1d9eb0=_0x28f92d[_0xc96142(0xdd)]-0x1;_0x1d9eb0>=0x0;_0x1d9eb0--)(_0x35035a=_0x28f92d[_0x1d9eb0])&&(_0x3dcf76=(_0x58220f<0x3?_0x35035a(_0x3dcf76):_0x58220f>0x3?_0x35035a(_0x111bf6,_0x326771,_0x3dcf76):_0x35035a(_0x111bf6,_0x326771))||_0x3dcf76);}return _0x58220f>0x3&&_0x3dcf76&&Object[_0xc96142(0xe4)](_0x111bf6,_0x326771,_0x3dcf76),_0x3dcf76;}let f=class extends r[_0x340046(0xc8)]{constructor(_0x16d0f2){const _0x4ca404=_0x340046;super(),this[_0x4ca404(0xf0)]=_0x16d0f2;}[_0x340046(0xd0)](_0x3af1a2){const _0x56a1c4=_0x340046;var _0x219431;let _0x5ecb78=((_0x219431=this[_0x56a1c4(0xf0)]['getConfig'](t[_0x56a1c4(0xd9)]))==null?void 0x0:_0x219431[_0x56a1c4(0xde)])||{};try{let _0x13d9d7=new o[(_0x56a1c4(0xca))](_0x3af1a2,{'headers':{..._0x5ecb78}}),_0x5839d9=new r['DisposableCollection']();return{'URL':_0x3af1a2,'close':(_0x307570,_0x41b548)=>{const _0x414b5a=_0x56a1c4;_0x13d9d7[_0x414b5a(0xe1)](_0x307570,_0x41b548),_0x5839d9[_0x414b5a(0xd8)]();},'send':_0x195aaa=>{_0x13d9d7['send'](_0x195aaa);},'open$':new a[(_0x56a1c4(0xc0))](_0x4e1a10=>{const _0x250911=_0x56a1c4;let _0x46116d=_0x2c19e4=>_0x4e1a10[_0x250911(0xee)](_0x2c19e4);_0x13d9d7['addEventListener'](_0x250911(0xe8),_0x46116d),_0x5839d9[_0x250911(0xb2)]((0x0,r[_0x250911(0xce)])(()=>_0x13d9d7[_0x250911(0xbe)](_0x250911(0xe8),_0x46116d)));})[_0x56a1c4(0xbb)]((0x0,a[_0x56a1c4(0xef)])()),'close$':new a[(_0x56a1c4(0xc0))](_0x108341=>{const _0x27aef5=_0x56a1c4;let _0x1d5d7e=_0x28ffc1=>_0x108341['next'](_0x28ffc1);_0x13d9d7[_0x27aef5(0xc7)](_0x27aef5(0xe1),_0x1d5d7e),_0x5839d9[_0x27aef5(0xb2)]((0x0,r[_0x27aef5(0xce)])(()=>_0x13d9d7[_0x27aef5(0xbe)](_0x27aef5(0xe1),_0x1d5d7e)));})[_0x56a1c4(0xbb)]((0x0,a[_0x56a1c4(0xef)])()),'error$':new a[(_0x56a1c4(0xc0))](_0x299063=>{const _0x573fdb=_0x56a1c4;let _0x37a725=_0x26ce17=>_0x299063[_0x573fdb(0xee)](_0x26ce17);_0x13d9d7[_0x573fdb(0xc7)](_0x573fdb(0xe6),_0x37a725),_0x5839d9['add']((0x0,r[_0x573fdb(0xce)])(()=>_0x13d9d7[_0x573fdb(0xbe)](_0x573fdb(0xe6),_0x37a725)));})['pipe']((0x0,a[_0x56a1c4(0xef)])()),'message$':new a[(_0x56a1c4(0xc0))](_0xe17009=>{const _0x458286=_0x56a1c4;let _0x19b63f=_0x17cf58=>_0xe17009[_0x458286(0xee)](_0x17cf58);_0x13d9d7[_0x458286(0xc7)](_0x458286(0xd3),_0x19b63f),_0x5839d9[_0x458286(0xb2)]((0x0,r[_0x458286(0xce)])(()=>_0x13d9d7[_0x458286(0xbe)](_0x458286(0xd3),_0x19b63f)));})[_0x56a1c4(0xbb)]((0x0,a[_0x56a1c4(0xef)])())};}catch(_0x1a2582){return console[_0x56a1c4(0xe6)](_0x1a2582),null;}}};f=d([u(0x0,r[_0x340046(0xdb)])],f);function _0x1058(_0x49e3db,_0x3f5a34){_0x49e3db=_0x49e3db-0xb0;const _0x4a61b7=_0x4a61();let _0x10586f=_0x4a61b7[_0x49e3db];return _0x10586f;}function p(_0x53d4af){'@babel/helpers - typeof';const _0x18b817=_0x340046;return p=typeof Symbol==_0x18b817(0xe2)&&typeof Symbol[_0x18b817(0xb3)]=='symbol'?function(_0x576e16){return typeof _0x576e16;}:function(_0xd1542){const _0x304e5d=_0x18b817;return _0xd1542&&typeof Symbol=='function'&&_0xd1542[_0x304e5d(0xb8)]===Symbol&&_0xd1542!==Symbol['prototype']?_0x304e5d(0xc3):typeof _0xd1542;},p(_0x53d4af);}function m(_0x15f585,_0xd04c75){const _0x39b74a=_0x340046;if(p(_0x15f585)!=_0x39b74a(0xdc)||!_0x15f585)return _0x15f585;var _0x3bdfe5=_0x15f585[Symbol[_0x39b74a(0xcc)]];if(_0x3bdfe5!==void 0x0){var _0x3608bd=_0x3bdfe5[_0x39b74a(0xb4)](_0x15f585,_0xd04c75||_0x39b74a(0xd1));if(p(_0x3608bd)!=_0x39b74a(0xdc))return _0x3608bd;throw TypeError(_0x39b74a(0xcd));}return(_0xd04c75===_0x39b74a(0xea)?String:Number)(_0x15f585);}function h(_0x3bdfe3){const _0x186160=_0x340046;var _0x10b6b4=m(_0x3bdfe3,_0x186160(0xea));return p(_0x10b6b4)==_0x186160(0xc3)?_0x10b6b4:_0x10b6b4+'';}function g(_0x5c6b27,_0x2019f7,_0x42707d){const _0x42b8d4=_0x340046;return(_0x2019f7=h(_0x2019f7))in _0x5c6b27?Object[_0x42b8d4(0xe4)](_0x5c6b27,_0x2019f7,{'value':_0x42707d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c6b27[_0x2019f7]=_0x42707d,_0x5c6b27;}let _=class extends r[_0x340046(0xc1)]{constructor(_0xe1168d=l,_0x407af2,_0x42ac9a){const _0x4c266b=_0x340046;super(),this[_0x4c266b(0xdf)]=_0xe1168d,this[_0x4c266b(0xf0)]=_0x407af2,this[_0x4c266b(0xd2)]=_0x42ac9a;let {..._0x287263}=(0x0,r[_0x4c266b(0xc6)])({},l,this[_0x4c266b(0xdf)]);this[_0x4c266b(0xf0)][_0x4c266b(0xda)]('collaboration-client-node.config',_0x287263);}[_0x340046(0xbd)](){const _0x2b82a9=_0x340046;this[_0x2b82a9(0xc4)]();}['_registerDependencies'](){const _0x1dee7d=_0x340046;(0x0,r[_0x1dee7d(0xec)])(this[_0x1dee7d(0xd2)],[[i[_0x1dee7d(0xb5)],{'useClass':f}]]);}};g(_,_0x340046(0xcb),_0x340046(0xb1)),g(_,_0x340046(0xd6),s),g(_,'version',c),_=d([(0x0,r[_0x340046(0xe9)])(n['UniverLicensePlugin'],i['UniverNetworkPlugin'],e['UniverCollaborationPlugin'],t[_0x340046(0xed)]),u(0x1,r[_0x340046(0xdb)]),u(0x2,(0x0,r['Inject'])(r['Injector']))],_);let v=class extends t[_0x340046(0xbf)]{constructor(_0x1e295e,_0x8d19d,_0x455095,_0x464b9a,_0x50ad46){const _0x1c4183=_0x340046;super(_0x1e295e,_0x8d19d,_0x455095,_0x464b9a,_0x50ad46);let _0x6872ec=this['_configService'][_0x1c4183(0xcf)](t[_0x1c4183(0xd9)]);this['_httpService'][_0x1c4183(0xf3)]({'interceptor':(_0x1a7638,_0x562b2d)=>{const _0x2355da=_0x1c4183;let _0x361c6d=_0x1a7638[_0x2355da(0xe3)];if(_0x6872ec!=null&&_0x6872ec[_0x2355da(0xde)]){for(let _0x489710 in _0x6872ec[_0x2355da(0xde)])_0x361c6d[_0x2355da(0xf7)](_0x489710,_0x6872ec[_0x2355da(0xde)][_0x489710]);}return _0x562b2d(_0x1a7638);}});}async[_0x340046(0xd0)](_0x57f24c){const _0x3b5b94=_0x340046;return this[_0x3b5b94(0xf1)](_0x57f24c);}};v=d([u(0x0,(0x0,r[_0x340046(0xe5)])(r[_0x340046(0xb0)])),u(0x1,(0x0,r[_0x340046(0xe5)])(i[_0x340046(0xe7)])),u(0x2,r[_0x340046(0xdb)]),u(0x3,r[_0x340046(0xb7)]),u(0x4,e[_0x340046(0xd5)])],v),Object[_0x340046(0xe4)](exports,_0x340046(0xf5),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x340046(0xe4)](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2b1e1b=_0x3b12;(function(_0x3ea45a,_0x3910ee){const _0xcee7a8=_0x3b12,_0x170518=_0x3ea45a();while(!![]){try{const _0x204e27=parseInt(_0xcee7a8(0x15c))/0x1*(parseInt(_0xcee7a8(0x15b))/0x2)+parseInt(_0xcee7a8(0x14f))/0x3*(-parseInt(_0xcee7a8(0x14e))/0x4)+parseInt(_0xcee7a8(0x162))/0x5+-parseInt(_0xcee7a8(0x179))/0x6+-parseInt(_0xcee7a8(0x176))/0x7*(-parseInt(_0xcee7a8(0x175))/0x8)+parseInt(_0xcee7a8(0x17c))/0x9+-parseInt(_0xcee7a8(0x152))/0xa*(parseInt(_0xcee7a8(0x150))/0xb);if(_0x204e27===_0x3910ee)break;else _0x170518['push'](_0x170518['shift']());}catch(_0x26c178){_0x170518['push'](_0x170518['shift']());}}}(_0x2a31,0xdee4d));import{ISnapshotServerService as _0x2febfb,UniverCollaborationPlugin as _0x1ad642}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1fcdd8,CollaborationSocketService as _0x4e8da8,UniverCollaborationClientPlugin as _0x935fb0}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x1018f4}from'@univerjs-pro/license';import{DependentOn as _0x4f38f4,Disposable as _0x67090e,DisposableCollection as _0xdb8371,IConfigService as _0xf5581,ILogService as _0x2f780d,Inject as _0x5361be,Injector as _0x4c5ed7,Plugin as _0x4b51eb,merge as _0xff489b,registerDependencies as _0x17fc10,toDisposable as _0x364422}from'@univerjs/core';import{HTTPService as _0x26c6cf,ISocketService as _0x18bff4,UniverNetworkPlugin as _0x5531fb}from'@univerjs/network';import{Observable as _0x21cbcb,share as _0x1b7183}from'rxjs';import{WebSocket as _0x578461}from'ws';var C=_0x2b1e1b(0x147),w=_0x2b1e1b(0x166);const T={};function E(_0x118cde,_0x18c669){return function(_0x32d02e,_0x2ca518){_0x18c669(_0x32d02e,_0x2ca518,_0x118cde);};}function _0x3b12(_0x1c602a,_0x4ad564){_0x1c602a=_0x1c602a-0x147;const _0x2a3157=_0x2a31();let _0x3b12db=_0x2a3157[_0x1c602a];return _0x3b12db;}function D(_0xcc9e,_0x4dcdf8,_0x53a909,_0x30596e){const _0x376b2c=_0x2b1e1b;var _0x2e1ecf=arguments[_0x376b2c(0x174)],_0x56dca9=_0x2e1ecf<0x3?_0x4dcdf8:_0x30596e===null?_0x30596e=Object[_0x376b2c(0x17a)](_0x4dcdf8,_0x53a909):_0x30596e,_0x2bb3ef;if(typeof Reflect=='object'&&typeof Reflect[_0x376b2c(0x17d)]==_0x376b2c(0x169))_0x56dca9=Reflect[_0x376b2c(0x17d)](_0xcc9e,_0x4dcdf8,_0x53a909,_0x30596e);else{for(var _0x378449=_0xcc9e[_0x376b2c(0x174)]-0x1;_0x378449>=0x0;_0x378449--)(_0x2bb3ef=_0xcc9e[_0x378449])&&(_0x56dca9=(_0x2e1ecf<0x3?_0x2bb3ef(_0x56dca9):_0x2e1ecf>0x3?_0x2bb3ef(_0x4dcdf8,_0x53a909,_0x56dca9):_0x2bb3ef(_0x4dcdf8,_0x53a909))||_0x56dca9);}return _0x2e1ecf>0x3&&_0x56dca9&&Object[_0x376b2c(0x15a)](_0x4dcdf8,_0x53a909,_0x56dca9),_0x56dca9;}let O=class extends _0x67090e{constructor(_0x2a9ab4){const _0x167bf0=_0x2b1e1b;super(),this[_0x167bf0(0x156)]=_0x2a9ab4;}[_0x2b1e1b(0x167)](_0x215d8e){const _0x254f2b=_0x2b1e1b;var _0x12fabc;let _0x582c49=((_0x12fabc=this['_configService'][_0x254f2b(0x151)](_0x1fcdd8))==null?void 0x0:_0x12fabc[_0x254f2b(0x17b)])||{};try{let _0x9b1eba=new _0x578461(_0x215d8e,{'headers':{..._0x582c49}}),_0x470425=new _0xdb8371();return{'URL':_0x215d8e,'close':(_0x21649a,_0x64b954)=>{const _0x4763b2=_0x254f2b;_0x9b1eba[_0x4763b2(0x14d)](_0x21649a,_0x64b954),_0x470425[_0x4763b2(0x14c)]();},'send':_0x30d909=>{const _0x439ca8=_0x254f2b;_0x9b1eba[_0x439ca8(0x16b)](_0x30d909);},'open$':new _0x21cbcb(_0x372159=>{const _0x112b35=_0x254f2b;let _0x60557=_0x2ea334=>_0x372159[_0x112b35(0x178)](_0x2ea334);_0x9b1eba['addEventListener'](_0x112b35(0x160),_0x60557),_0x470425['add'](_0x364422(()=>_0x9b1eba['removeEventListener'](_0x112b35(0x160),_0x60557)));})[_0x254f2b(0x170)](_0x1b7183()),'close$':new _0x21cbcb(_0x12df76=>{const _0x2ebd80=_0x254f2b;let _0x28cb9b=_0x15ee08=>_0x12df76[_0x2ebd80(0x178)](_0x15ee08);_0x9b1eba[_0x2ebd80(0x154)](_0x2ebd80(0x14d),_0x28cb9b),_0x470425['add'](_0x364422(()=>_0x9b1eba[_0x2ebd80(0x171)]('close',_0x28cb9b)));})[_0x254f2b(0x170)](_0x1b7183()),'error$':new _0x21cbcb(_0x1b3b4f=>{const _0x5e2b4a=_0x254f2b;let _0x33b423=_0x1b7dea=>_0x1b3b4f[_0x5e2b4a(0x178)](_0x1b7dea);_0x9b1eba[_0x5e2b4a(0x154)](_0x5e2b4a(0x15f),_0x33b423),_0x470425['add'](_0x364422(()=>_0x9b1eba[_0x5e2b4a(0x171)](_0x5e2b4a(0x15f),_0x33b423)));})[_0x254f2b(0x170)](_0x1b7183()),'message$':new _0x21cbcb(_0x577e7a=>{const _0x31e1c3=_0x254f2b;let _0x3a8b4e=_0x22439c=>_0x577e7a[_0x31e1c3(0x178)](_0x22439c);_0x9b1eba['addEventListener'](_0x31e1c3(0x16f),_0x3a8b4e),_0x470425[_0x31e1c3(0x158)](_0x364422(()=>_0x9b1eba[_0x31e1c3(0x171)](_0x31e1c3(0x16f),_0x3a8b4e)));})['pipe'](_0x1b7183())};}catch(_0x56074d){return console[_0x254f2b(0x15f)](_0x56074d),null;}}};O=D([E(0x0,_0xf5581)],O);function k(_0x23d31c){'@babel/helpers - typeof';const _0x42906b=_0x2b1e1b;return k=typeof Symbol==_0x42906b(0x169)&&typeof Symbol[_0x42906b(0x163)]==_0x42906b(0x168)?function(_0x22c25b){return typeof _0x22c25b;}:function(_0x12f955){const _0xe63ef8=_0x42906b;return _0x12f955&&typeof Symbol==_0xe63ef8(0x169)&&_0x12f955[_0xe63ef8(0x173)]===Symbol&&_0x12f955!==Symbol[_0xe63ef8(0x177)]?_0xe63ef8(0x168):typeof _0x12f955;},k(_0x23d31c);}function A(_0x4ad5ed,_0x27a0be){const _0x288f53=_0x2b1e1b;if(k(_0x4ad5ed)!=_0x288f53(0x149)||!_0x4ad5ed)return _0x4ad5ed;var _0x3d7a65=_0x4ad5ed[Symbol[_0x288f53(0x157)]];if(_0x3d7a65!==void 0x0){var _0x20449d=_0x3d7a65[_0x288f53(0x14a)](_0x4ad5ed,_0x27a0be||_0x288f53(0x14b));if(k(_0x20449d)!='object')return _0x20449d;throw TypeError(_0x288f53(0x16a));}return(_0x27a0be==='string'?String:Number)(_0x4ad5ed);}function j(_0x3e328e){const _0x5d8606=_0x2b1e1b;var _0x1c6241=A(_0x3e328e,'string');return k(_0x1c6241)==_0x5d8606(0x168)?_0x1c6241:_0x1c6241+'';}function M(_0x40bbed,_0x345a74,_0x3a4aa2){const _0x234df3=_0x2b1e1b;return(_0x345a74=j(_0x345a74))in _0x40bbed?Object[_0x234df3(0x15a)](_0x40bbed,_0x345a74,{'value':_0x3a4aa2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40bbed[_0x345a74]=_0x3a4aa2,_0x40bbed;}let N=class extends _0x4b51eb{constructor(_0x15a818=T,_0x1614cd,_0x4776a7){const _0xf2db97=_0x2b1e1b;super(),this[_0xf2db97(0x165)]=_0x15a818,this[_0xf2db97(0x156)]=_0x1614cd,this[_0xf2db97(0x15d)]=_0x4776a7;let {..._0x195eef}=_0xff489b({},T,this['_config']);this['_configService'][_0xf2db97(0x153)](_0xf2db97(0x159),_0x195eef);}['onStarting'](){const _0x5c53a8=_0x2b1e1b;this[_0x5c53a8(0x161)]();}[_0x2b1e1b(0x161)](){const _0x279adc=_0x2b1e1b;_0x17fc10(this[_0x279adc(0x15d)],[[_0x18bff4,{'useClass':O}]]);}};function _0x2a31(){const _0x4791ab=['1755666EERVnh','1KWoNWK','_injector','_doCreateSocket','error','open','_registerDependencies','6186785SIfVJM','iterator','pluginName','_config','1.0.3','createSocket','symbol','function','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','send','_httpService','headers','set','message','pipe','removeEventListener','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','constructor','length','20152HZmkxf','3031eDYLrf','prototype','next','4555386EyQtqm','getOwnPropertyDescriptor','customHeaders','8726778kQkifI','decorate','@univerjs-pro/collaboration-client-node','version','object','call','default','dispose','close','4Fpojku','4858329ffRvuP','31064ABEBuM','getConfig','3130UzOcTq','setConfig','addEventListener','registerHTTPInterceptor','_configService','toPrimitive','add','collaboration-client-node.config','defineProperty'];_0x2a31=function(){return _0x4791ab;};return _0x2a31();}M(N,_0x2b1e1b(0x164),_0x2b1e1b(0x172)),M(N,'packageName',C),M(N,_0x2b1e1b(0x148),w),N=D([_0x4f38f4(_0x1018f4,_0x5531fb,_0x1ad642,_0x935fb0),E(0x1,_0xf5581),E(0x2,_0x5361be(_0x4c5ed7))],N);let P=class extends _0x4e8da8{constructor(_0x549310,_0x3b9b9e,_0x2233bb,_0x2437e2,_0x34cb74){const _0x1c0046=_0x2b1e1b;super(_0x549310,_0x3b9b9e,_0x2233bb,_0x2437e2,_0x34cb74);let _0x4823db=this['_configService'][_0x1c0046(0x151)](_0x1fcdd8);this[_0x1c0046(0x16c)][_0x1c0046(0x155)]({'interceptor':(_0x9ddda1,_0xf7f30e)=>{const _0x1178ef=_0x1c0046;let _0x47f313=_0x9ddda1[_0x1178ef(0x16d)];if(_0x4823db!=null&&_0x4823db[_0x1178ef(0x17b)]){for(let _0x4ecca4 in _0x4823db[_0x1178ef(0x17b)])_0x47f313[_0x1178ef(0x16e)](_0x4ecca4,_0x4823db[_0x1178ef(0x17b)][_0x4ecca4]);}return _0xf7f30e(_0x9ddda1);}});}async[_0x2b1e1b(0x167)](_0x5cac5a){const _0x32eb16=_0x2b1e1b;return this[_0x32eb16(0x15e)](_0x5cac5a);}};P=D([E(0x0,_0x5361be(_0x4c5ed7)),E(0x1,_0x5361be(_0x26c6cf)),E(0x2,_0xf5581),E(0x3,_0x2f780d),E(0x4,_0x2febfb)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0x407e30=_0x4e94;(function(_0x92a4d5,_0x44b3e1){const _0x4b8a32=_0x4e94,_0x3bd108=_0x92a4d5();while(!![]){try{const _0x448f06=-parseInt(_0x4b8a32(0x127))/0x1+-parseInt(_0x4b8a32(0x105))/0x2+-parseInt(_0x4b8a32(0x120))/0x3+parseInt(_0x4b8a32(0x121))/0x4+parseInt(_0x4b8a32(0x106))/0x5+-parseInt(_0x4b8a32(0x10c))/0x6+parseInt(_0x4b8a32(0x10d))/0x7;if(_0x448f06===_0x44b3e1)break;else _0x3bd108['push'](_0x3bd108['shift']());}catch(_0x2df963){_0x3bd108['push'](_0x3bd108['shift']());}}}(_0x5c63,0x6ea7c));import{ISnapshotServerService as _0x568942,UniverCollaborationPlugin as _0x5c6729}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3e723d,CollaborationSocketService as _0x16d96d,UniverCollaborationClientPlugin as _0x363762}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x2c7985}from'@univerjs-pro/license';import{DependentOn as _0x2ba93a,Disposable as _0x1d9623,DisposableCollection as _0x1faf6c,IConfigService as _0x58fc6e,ILogService as _0x3bb1e6,Inject as _0x3d41d3,Injector as _0x451f6e,Plugin as _0x4bd04c,merge as _0x3707cf,registerDependencies as _0x1ccb89,toDisposable as _0x18c957}from'@univerjs/core';import{HTTPService as _0x557549,ISocketService as _0x2e5c1b,UniverNetworkPlugin as _0x4dc214}from'@univerjs/network';import{Observable as _0xe69dde,share as _0x36c6c6}from'rxjs';import{WebSocket as _0x5d990d}from'ws';var C=_0x407e30(0x11a),w=_0x407e30(0x116);const T={};function E(_0x55d866,_0x522c9e){return function(_0x286b3a,_0x18cdfa){_0x522c9e(_0x286b3a,_0x18cdfa,_0x55d866);};}function D(_0x34f224,_0x1471b2,_0x22b318,_0x34caf1){const _0x41356e=_0x407e30;var _0x548918=arguments['length'],_0x3f792d=_0x548918<0x3?_0x1471b2:_0x34caf1===null?_0x34caf1=Object['getOwnPropertyDescriptor'](_0x1471b2,_0x22b318):_0x34caf1,_0xf42b7c;if(typeof Reflect==_0x41356e(0x129)&&typeof Reflect[_0x41356e(0x12d)]=='function')_0x3f792d=Reflect[_0x41356e(0x12d)](_0x34f224,_0x1471b2,_0x22b318,_0x34caf1);else{for(var _0x3bb752=_0x34f224[_0x41356e(0x104)]-0x1;_0x3bb752>=0x0;_0x3bb752--)(_0xf42b7c=_0x34f224[_0x3bb752])&&(_0x3f792d=(_0x548918<0x3?_0xf42b7c(_0x3f792d):_0x548918>0x3?_0xf42b7c(_0x1471b2,_0x22b318,_0x3f792d):_0xf42b7c(_0x1471b2,_0x22b318))||_0x3f792d);}return _0x548918>0x3&&_0x3f792d&&Object[_0x41356e(0x10a)](_0x1471b2,_0x22b318,_0x3f792d),_0x3f792d;}let O=class extends _0x1d9623{constructor(_0x56682b){const _0x48cd5f=_0x407e30;super(),this[_0x48cd5f(0x108)]=_0x56682b;}[_0x407e30(0x12b)](_0x17a9c6){const _0x721f0b=_0x407e30;var _0x164c45;let _0x11d8cc=((_0x164c45=this[_0x721f0b(0x108)]['getConfig'](_0x3e723d))==null?void 0x0:_0x164c45[_0x721f0b(0x12e)])||{};try{let _0x27d77a=new _0x5d990d(_0x17a9c6,{'headers':{..._0x11d8cc}}),_0x1e0bf0=new _0x1faf6c();return{'URL':_0x17a9c6,'close':(_0x29d8c2,_0x5e2fd8)=>{const _0xea25b9=_0x721f0b;_0x27d77a[_0xea25b9(0x119)](_0x29d8c2,_0x5e2fd8),_0x1e0bf0[_0xea25b9(0x12a)]();},'send':_0x3cacb8=>{const _0x3cfbae=_0x721f0b;_0x27d77a[_0x3cfbae(0x130)](_0x3cacb8);},'open$':new _0xe69dde(_0x5cb01f=>{const _0x444488=_0x721f0b;let _0x262cb5=_0x252fff=>_0x5cb01f[_0x444488(0x128)](_0x252fff);_0x27d77a[_0x444488(0x11e)]('open',_0x262cb5),_0x1e0bf0[_0x444488(0x114)](_0x18c957(()=>_0x27d77a[_0x444488(0x10e)](_0x444488(0x125),_0x262cb5)));})[_0x721f0b(0x109)](_0x36c6c6()),'close$':new _0xe69dde(_0x417082=>{const _0x24bb55=_0x721f0b;let _0x541764=_0x181d33=>_0x417082['next'](_0x181d33);_0x27d77a[_0x24bb55(0x11e)](_0x24bb55(0x119),_0x541764),_0x1e0bf0[_0x24bb55(0x114)](_0x18c957(()=>_0x27d77a['removeEventListener'](_0x24bb55(0x119),_0x541764)));})[_0x721f0b(0x109)](_0x36c6c6()),'error$':new _0xe69dde(_0x424fba=>{const _0x1c43d4=_0x721f0b;let _0x3449c4=_0x581ec2=>_0x424fba['next'](_0x581ec2);_0x27d77a[_0x1c43d4(0x11e)](_0x1c43d4(0x115),_0x3449c4),_0x1e0bf0[_0x1c43d4(0x114)](_0x18c957(()=>_0x27d77a['removeEventListener'](_0x1c43d4(0x115),_0x3449c4)));})[_0x721f0b(0x109)](_0x36c6c6()),'message$':new _0xe69dde(_0x588ff6=>{const _0x82e95f=_0x721f0b;let _0x28a750=_0xa558bb=>_0x588ff6[_0x82e95f(0x128)](_0xa558bb);_0x27d77a[_0x82e95f(0x11e)](_0x82e95f(0x111),_0x28a750),_0x1e0bf0['add'](_0x18c957(()=>_0x27d77a[_0x82e95f(0x10e)]('message',_0x28a750)));})['pipe'](_0x36c6c6())};}catch(_0x921670){return console[_0x721f0b(0x115)](_0x921670),null;}}};O=D([E(0x0,_0x58fc6e)],O);function k(_0x296ca1){'@babel/helpers - typeof';const _0x243b8f=_0x407e30;return k=typeof Symbol==_0x243b8f(0x10f)&&typeof Symbol['iterator']==_0x243b8f(0x12f)?function(_0x1234c7){return typeof _0x1234c7;}:function(_0x487b52){const _0x3069ca=_0x243b8f;return _0x487b52&&typeof Symbol==_0x3069ca(0x10f)&&_0x487b52['constructor']===Symbol&&_0x487b52!==Symbol[_0x3069ca(0x11f)]?_0x3069ca(0x12f):typeof _0x487b52;},k(_0x296ca1);}function A(_0x14cbb3,_0x3666e3){const _0x126529=_0x407e30;if(k(_0x14cbb3)!='object'||!_0x14cbb3)return _0x14cbb3;var _0x7d1d38=_0x14cbb3[Symbol[_0x126529(0x11d)]];if(_0x7d1d38!==void 0x0){var _0x5470cc=_0x7d1d38[_0x126529(0x12c)](_0x14cbb3,_0x3666e3||'default');if(k(_0x5470cc)!=_0x126529(0x129))return _0x5470cc;throw TypeError(_0x126529(0x123));}return(_0x3666e3===_0x126529(0x110)?String:Number)(_0x14cbb3);}function j(_0x325f49){const _0x18589e=_0x407e30;var _0x41c523=A(_0x325f49,_0x18589e(0x110));return k(_0x41c523)==_0x18589e(0x12f)?_0x41c523:_0x41c523+'';}function M(_0x16492e,_0x5d2bb3,_0x549f34){const _0x9fe1ae=_0x407e30;return(_0x5d2bb3=j(_0x5d2bb3))in _0x16492e?Object[_0x9fe1ae(0x10a)](_0x16492e,_0x5d2bb3,{'value':_0x549f34,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x16492e[_0x5d2bb3]=_0x549f34,_0x16492e;}let N=class extends _0x4bd04c{constructor(_0x5e875c=T,_0x53dd6c,_0x3102bf){const _0x3c50b8=_0x407e30;super(),this[_0x3c50b8(0x10b)]=_0x5e875c,this[_0x3c50b8(0x108)]=_0x53dd6c,this[_0x3c50b8(0x112)]=_0x3102bf;let {..._0x59ea80}=_0x3707cf({},T,this[_0x3c50b8(0x10b)]);this[_0x3c50b8(0x108)][_0x3c50b8(0x122)](_0x3c50b8(0x11c),_0x59ea80);}['onStarting'](){this['_registerDependencies']();}['_registerDependencies'](){const _0x5d15f6=_0x407e30;_0x1ccb89(this[_0x5d15f6(0x112)],[[_0x2e5c1b,{'useClass':O}]]);}};M(N,_0x407e30(0x107),_0x407e30(0x117)),M(N,'packageName',C),M(N,'version',w),N=D([_0x2ba93a(_0x2c7985,_0x4dc214,_0x5c6729,_0x363762),E(0x1,_0x58fc6e),E(0x2,_0x3d41d3(_0x451f6e))],N);let P=class extends _0x16d96d{constructor(_0x543100,_0x53eb11,_0x543761,_0x3f1498,_0x300c2d){const _0x4769bd=_0x407e30;super(_0x543100,_0x53eb11,_0x543761,_0x3f1498,_0x300c2d);let _0x7c08be=this['_configService'][_0x4769bd(0x126)](_0x3e723d);this[_0x4769bd(0x124)][_0x4769bd(0x103)]({'interceptor':(_0x7a7f9e,_0x52d40a)=>{const _0x22e237=_0x4769bd;let _0x532099=_0x7a7f9e[_0x22e237(0x11b)];if(_0x7c08be!=null&&_0x7c08be['customHeaders']){for(let _0x263822 in _0x7c08be[_0x22e237(0x12e)])_0x532099[_0x22e237(0x118)](_0x263822,_0x7c08be[_0x22e237(0x12e)][_0x263822]);}return _0x52d40a(_0x7a7f9e);}});}async[_0x407e30(0x12b)](_0x1f391e){const _0x5254a2=_0x407e30;return this[_0x5254a2(0x113)](_0x1f391e);}};P=D([E(0x0,_0x3d41d3(_0x451f6e)),E(0x1,_0x3d41d3(_0x557549)),E(0x2,_0x58fc6e),E(0x3,_0x3bb1e6),E(0x4,_0x568942)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};function _0x4e94(_0x4986c6,_0xfeef17){_0x4986c6=_0x4986c6-0x103;const _0x5c636a=_0x5c63();let _0x4e94ce=_0x5c636a[_0x4986c6];return _0x4e94ce;}function _0x5c63(){const _0x6df7da=['add','error','1.1.0','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','set','close','@univerjs-pro/collaboration-client-node','headers','collaboration-client-node.config','toPrimitive','addEventListener','prototype','1356429cKZJQt','2141716LnnvQc','setConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_httpService','open','getConfig','901802jafPsY','next','object','dispose','createSocket','call','decorate','customHeaders','symbol','send','registerHTTPInterceptor','length','448990apCesu','424360ZAFsqJ','pluginName','_configService','pipe','defineProperty','_config','2795226tbibaS','13140778uohTpw','removeEventListener','function','string','message','_injector','_doCreateSocket'];_0x5c63=function(){return _0x6df7da;};return _0x5c63();}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2b1e1b=_0x3b12;(function(_0x3ea45a,_0x3910ee){const _0xcee7a8=_0x3b12,_0x170518=_0x3ea45a();while(!![]){try{const _0x204e27=parseInt(_0xcee7a8(0x15c))/0x1*(parseInt(_0xcee7a8(0x15b))/0x2)+parseInt(_0xcee7a8(0x14f))/0x3*(-parseInt(_0xcee7a8(0x14e))/0x4)+parseInt(_0xcee7a8(0x162))/0x5+-parseInt(_0xcee7a8(0x179))/0x6+-parseInt(_0xcee7a8(0x176))/0x7*(-parseInt(_0xcee7a8(0x175))/0x8)+parseInt(_0xcee7a8(0x17c))/0x9+-parseInt(_0xcee7a8(0x152))/0xa*(parseInt(_0xcee7a8(0x150))/0xb);if(_0x204e27===_0x3910ee)break;else _0x170518['push'](_0x170518['shift']());}catch(_0x26c178){_0x170518['push'](_0x170518['shift']());}}}(_0x2a31,0xdee4d));import{ISnapshotServerService as _0x2febfb,UniverCollaborationPlugin as _0x1ad642}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1fcdd8,CollaborationSocketService as _0x4e8da8,UniverCollaborationClientPlugin as _0x935fb0}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x1018f4}from'@univerjs-pro/license';import{DependentOn as _0x4f38f4,Disposable as _0x67090e,DisposableCollection as _0xdb8371,IConfigService as _0xf5581,ILogService as _0x2f780d,Inject as _0x5361be,Injector as _0x4c5ed7,Plugin as _0x4b51eb,merge as _0xff489b,registerDependencies as _0x17fc10,toDisposable as _0x364422}from'@univerjs/core';import{HTTPService as _0x26c6cf,ISocketService as _0x18bff4,UniverNetworkPlugin as _0x5531fb}from'@univerjs/network';import{Observable as _0x21cbcb,share as _0x1b7183}from'rxjs';import{WebSocket as _0x578461}from'ws';var C=_0x2b1e1b(0x147),w=_0x2b1e1b(0x166);const T={};function E(_0x118cde,_0x18c669){return function(_0x32d02e,_0x2ca518){_0x18c669(_0x32d02e,_0x2ca518,_0x118cde);};}function _0x3b12(_0x1c602a,_0x4ad564){_0x1c602a=_0x1c602a-0x147;const _0x2a3157=_0x2a31();let _0x3b12db=_0x2a3157[_0x1c602a];return _0x3b12db;}function D(_0xcc9e,_0x4dcdf8,_0x53a909,_0x30596e){const _0x376b2c=_0x2b1e1b;var _0x2e1ecf=arguments[_0x376b2c(0x174)],_0x56dca9=_0x2e1ecf<0x3?_0x4dcdf8:_0x30596e===null?_0x30596e=Object[_0x376b2c(0x17a)](_0x4dcdf8,_0x53a909):_0x30596e,_0x2bb3ef;if(typeof Reflect=='object'&&typeof Reflect[_0x376b2c(0x17d)]==_0x376b2c(0x169))_0x56dca9=Reflect[_0x376b2c(0x17d)](_0xcc9e,_0x4dcdf8,_0x53a909,_0x30596e);else{for(var _0x378449=_0xcc9e[_0x376b2c(0x174)]-0x1;_0x378449>=0x0;_0x378449--)(_0x2bb3ef=_0xcc9e[_0x378449])&&(_0x56dca9=(_0x2e1ecf<0x3?_0x2bb3ef(_0x56dca9):_0x2e1ecf>0x3?_0x2bb3ef(_0x4dcdf8,_0x53a909,_0x56dca9):_0x2bb3ef(_0x4dcdf8,_0x53a909))||_0x56dca9);}return _0x2e1ecf>0x3&&_0x56dca9&&Object[_0x376b2c(0x15a)](_0x4dcdf8,_0x53a909,_0x56dca9),_0x56dca9;}let O=class extends _0x67090e{constructor(_0x2a9ab4){const _0x167bf0=_0x2b1e1b;super(),this[_0x167bf0(0x156)]=_0x2a9ab4;}[_0x2b1e1b(0x167)](_0x215d8e){const _0x254f2b=_0x2b1e1b;var _0x12fabc;let _0x582c49=((_0x12fabc=this['_configService'][_0x254f2b(0x151)](_0x1fcdd8))==null?void 0x0:_0x12fabc[_0x254f2b(0x17b)])||{};try{let _0x9b1eba=new _0x578461(_0x215d8e,{'headers':{..._0x582c49}}),_0x470425=new _0xdb8371();return{'URL':_0x215d8e,'close':(_0x21649a,_0x64b954)=>{const _0x4763b2=_0x254f2b;_0x9b1eba[_0x4763b2(0x14d)](_0x21649a,_0x64b954),_0x470425[_0x4763b2(0x14c)]();},'send':_0x30d909=>{const _0x439ca8=_0x254f2b;_0x9b1eba[_0x439ca8(0x16b)](_0x30d909);},'open$':new _0x21cbcb(_0x372159=>{const _0x112b35=_0x254f2b;let _0x60557=_0x2ea334=>_0x372159[_0x112b35(0x178)](_0x2ea334);_0x9b1eba['addEventListener'](_0x112b35(0x160),_0x60557),_0x470425['add'](_0x364422(()=>_0x9b1eba['removeEventListener'](_0x112b35(0x160),_0x60557)));})[_0x254f2b(0x170)](_0x1b7183()),'close$':new _0x21cbcb(_0x12df76=>{const _0x2ebd80=_0x254f2b;let _0x28cb9b=_0x15ee08=>_0x12df76[_0x2ebd80(0x178)](_0x15ee08);_0x9b1eba[_0x2ebd80(0x154)](_0x2ebd80(0x14d),_0x28cb9b),_0x470425['add'](_0x364422(()=>_0x9b1eba[_0x2ebd80(0x171)]('close',_0x28cb9b)));})[_0x254f2b(0x170)](_0x1b7183()),'error$':new _0x21cbcb(_0x1b3b4f=>{const _0x5e2b4a=_0x254f2b;let _0x33b423=_0x1b7dea=>_0x1b3b4f[_0x5e2b4a(0x178)](_0x1b7dea);_0x9b1eba[_0x5e2b4a(0x154)](_0x5e2b4a(0x15f),_0x33b423),_0x470425['add'](_0x364422(()=>_0x9b1eba[_0x5e2b4a(0x171)](_0x5e2b4a(0x15f),_0x33b423)));})[_0x254f2b(0x170)](_0x1b7183()),'message$':new _0x21cbcb(_0x577e7a=>{const _0x31e1c3=_0x254f2b;let _0x3a8b4e=_0x22439c=>_0x577e7a[_0x31e1c3(0x178)](_0x22439c);_0x9b1eba['addEventListener'](_0x31e1c3(0x16f),_0x3a8b4e),_0x470425[_0x31e1c3(0x158)](_0x364422(()=>_0x9b1eba[_0x31e1c3(0x171)](_0x31e1c3(0x16f),_0x3a8b4e)));})['pipe'](_0x1b7183())};}catch(_0x56074d){return console[_0x254f2b(0x15f)](_0x56074d),null;}}};O=D([E(0x0,_0xf5581)],O);function k(_0x23d31c){'@babel/helpers - typeof';const _0x42906b=_0x2b1e1b;return k=typeof Symbol==_0x42906b(0x169)&&typeof Symbol[_0x42906b(0x163)]==_0x42906b(0x168)?function(_0x22c25b){return typeof _0x22c25b;}:function(_0x12f955){const _0xe63ef8=_0x42906b;return _0x12f955&&typeof Symbol==_0xe63ef8(0x169)&&_0x12f955[_0xe63ef8(0x173)]===Symbol&&_0x12f955!==Symbol[_0xe63ef8(0x177)]?_0xe63ef8(0x168):typeof _0x12f955;},k(_0x23d31c);}function A(_0x4ad5ed,_0x27a0be){const _0x288f53=_0x2b1e1b;if(k(_0x4ad5ed)!=_0x288f53(0x149)||!_0x4ad5ed)return _0x4ad5ed;var _0x3d7a65=_0x4ad5ed[Symbol[_0x288f53(0x157)]];if(_0x3d7a65!==void 0x0){var _0x20449d=_0x3d7a65[_0x288f53(0x14a)](_0x4ad5ed,_0x27a0be||_0x288f53(0x14b));if(k(_0x20449d)!='object')return _0x20449d;throw TypeError(_0x288f53(0x16a));}return(_0x27a0be==='string'?String:Number)(_0x4ad5ed);}function j(_0x3e328e){const _0x5d8606=_0x2b1e1b;var _0x1c6241=A(_0x3e328e,'string');return k(_0x1c6241)==_0x5d8606(0x168)?_0x1c6241:_0x1c6241+'';}function M(_0x40bbed,_0x345a74,_0x3a4aa2){const _0x234df3=_0x2b1e1b;return(_0x345a74=j(_0x345a74))in _0x40bbed?Object[_0x234df3(0x15a)](_0x40bbed,_0x345a74,{'value':_0x3a4aa2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40bbed[_0x345a74]=_0x3a4aa2,_0x40bbed;}let N=class extends _0x4b51eb{constructor(_0x15a818=T,_0x1614cd,_0x4776a7){const _0xf2db97=_0x2b1e1b;super(),this[_0xf2db97(0x165)]=_0x15a818,this[_0xf2db97(0x156)]=_0x1614cd,this[_0xf2db97(0x15d)]=_0x4776a7;let {..._0x195eef}=_0xff489b({},T,this['_config']);this['_configService'][_0xf2db97(0x153)](_0xf2db97(0x159),_0x195eef);}['onStarting'](){const _0x5c53a8=_0x2b1e1b;this[_0x5c53a8(0x161)]();}[_0x2b1e1b(0x161)](){const _0x279adc=_0x2b1e1b;_0x17fc10(this[_0x279adc(0x15d)],[[_0x18bff4,{'useClass':O}]]);}};function _0x2a31(){const _0x4791ab=['1755666EERVnh','1KWoNWK','_injector','_doCreateSocket','error','open','_registerDependencies','6186785SIfVJM','iterator','pluginName','_config','1.0.3','createSocket','symbol','function','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','send','_httpService','headers','set','message','pipe','removeEventListener','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','constructor','length','20152HZmkxf','3031eDYLrf','prototype','next','4555386EyQtqm','getOwnPropertyDescriptor','customHeaders','8726778kQkifI','decorate','@univerjs-pro/collaboration-client-node','version','object','call','default','dispose','close','4Fpojku','4858329ffRvuP','31064ABEBuM','getConfig','3130UzOcTq','setConfig','addEventListener','registerHTTPInterceptor','_configService','toPrimitive','add','collaboration-client-node.config','defineProperty'];_0x2a31=function(){return _0x4791ab;};return _0x2a31();}M(N,_0x2b1e1b(0x164),_0x2b1e1b(0x172)),M(N,'packageName',C),M(N,_0x2b1e1b(0x148),w),N=D([_0x4f38f4(_0x1018f4,_0x5531fb,_0x1ad642,_0x935fb0),E(0x1,_0xf5581),E(0x2,_0x5361be(_0x4c5ed7))],N);let P=class extends _0x4e8da8{constructor(_0x549310,_0x3b9b9e,_0x2233bb,_0x2437e2,_0x34cb74){const _0x1c0046=_0x2b1e1b;super(_0x549310,_0x3b9b9e,_0x2233bb,_0x2437e2,_0x34cb74);let _0x4823db=this['_configService'][_0x1c0046(0x151)](_0x1fcdd8);this[_0x1c0046(0x16c)][_0x1c0046(0x155)]({'interceptor':(_0x9ddda1,_0xf7f30e)=>{const _0x1178ef=_0x1c0046;let _0x47f313=_0x9ddda1[_0x1178ef(0x16d)];if(_0x4823db!=null&&_0x4823db[_0x1178ef(0x17b)]){for(let _0x4ecca4 in _0x4823db[_0x1178ef(0x17b)])_0x47f313[_0x1178ef(0x16e)](_0x4ecca4,_0x4823db[_0x1178ef(0x17b)][_0x4ecca4]);}return _0xf7f30e(_0x9ddda1);}});}async[_0x2b1e1b(0x167)](_0x5cac5a){const _0x32eb16=_0x2b1e1b;return this[_0x32eb16(0x15e)](_0x5cac5a);}};P=D([E(0x0,_0x5361be(_0x4c5ed7)),E(0x1,_0x5361be(_0x26c6cf)),E(0x2,_0xf5581),E(0x3,_0x2f780d),E(0x4,_0x2febfb)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0x407e30=_0x4e94;(function(_0x92a4d5,_0x44b3e1){const _0x4b8a32=_0x4e94,_0x3bd108=_0x92a4d5();while(!![]){try{const _0x448f06=-parseInt(_0x4b8a32(0x127))/0x1+-parseInt(_0x4b8a32(0x105))/0x2+-parseInt(_0x4b8a32(0x120))/0x3+parseInt(_0x4b8a32(0x121))/0x4+parseInt(_0x4b8a32(0x106))/0x5+-parseInt(_0x4b8a32(0x10c))/0x6+parseInt(_0x4b8a32(0x10d))/0x7;if(_0x448f06===_0x44b3e1)break;else _0x3bd108['push'](_0x3bd108['shift']());}catch(_0x2df963){_0x3bd108['push'](_0x3bd108['shift']());}}}(_0x5c63,0x6ea7c));import{ISnapshotServerService as _0x568942,UniverCollaborationPlugin as _0x5c6729}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3e723d,CollaborationSocketService as _0x16d96d,UniverCollaborationClientPlugin as _0x363762}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x2c7985}from'@univerjs-pro/license';import{DependentOn as _0x2ba93a,Disposable as _0x1d9623,DisposableCollection as _0x1faf6c,IConfigService as _0x58fc6e,ILogService as _0x3bb1e6,Inject as _0x3d41d3,Injector as _0x451f6e,Plugin as _0x4bd04c,merge as _0x3707cf,registerDependencies as _0x1ccb89,toDisposable as _0x18c957}from'@univerjs/core';import{HTTPService as _0x557549,ISocketService as _0x2e5c1b,UniverNetworkPlugin as _0x4dc214}from'@univerjs/network';import{Observable as _0xe69dde,share as _0x36c6c6}from'rxjs';import{WebSocket as _0x5d990d}from'ws';var C=_0x407e30(0x11a),w=_0x407e30(0x116);const T={};function E(_0x55d866,_0x522c9e){return function(_0x286b3a,_0x18cdfa){_0x522c9e(_0x286b3a,_0x18cdfa,_0x55d866);};}function D(_0x34f224,_0x1471b2,_0x22b318,_0x34caf1){const _0x41356e=_0x407e30;var _0x548918=arguments['length'],_0x3f792d=_0x548918<0x3?_0x1471b2:_0x34caf1===null?_0x34caf1=Object['getOwnPropertyDescriptor'](_0x1471b2,_0x22b318):_0x34caf1,_0xf42b7c;if(typeof Reflect==_0x41356e(0x129)&&typeof Reflect[_0x41356e(0x12d)]=='function')_0x3f792d=Reflect[_0x41356e(0x12d)](_0x34f224,_0x1471b2,_0x22b318,_0x34caf1);else{for(var _0x3bb752=_0x34f224[_0x41356e(0x104)]-0x1;_0x3bb752>=0x0;_0x3bb752--)(_0xf42b7c=_0x34f224[_0x3bb752])&&(_0x3f792d=(_0x548918<0x3?_0xf42b7c(_0x3f792d):_0x548918>0x3?_0xf42b7c(_0x1471b2,_0x22b318,_0x3f792d):_0xf42b7c(_0x1471b2,_0x22b318))||_0x3f792d);}return _0x548918>0x3&&_0x3f792d&&Object[_0x41356e(0x10a)](_0x1471b2,_0x22b318,_0x3f792d),_0x3f792d;}let O=class extends _0x1d9623{constructor(_0x56682b){const _0x48cd5f=_0x407e30;super(),this[_0x48cd5f(0x108)]=_0x56682b;}[_0x407e30(0x12b)](_0x17a9c6){const _0x721f0b=_0x407e30;var _0x164c45;let _0x11d8cc=((_0x164c45=this[_0x721f0b(0x108)]['getConfig'](_0x3e723d))==null?void 0x0:_0x164c45[_0x721f0b(0x12e)])||{};try{let _0x27d77a=new _0x5d990d(_0x17a9c6,{'headers':{..._0x11d8cc}}),_0x1e0bf0=new _0x1faf6c();return{'URL':_0x17a9c6,'close':(_0x29d8c2,_0x5e2fd8)=>{const _0xea25b9=_0x721f0b;_0x27d77a[_0xea25b9(0x119)](_0x29d8c2,_0x5e2fd8),_0x1e0bf0[_0xea25b9(0x12a)]();},'send':_0x3cacb8=>{const _0x3cfbae=_0x721f0b;_0x27d77a[_0x3cfbae(0x130)](_0x3cacb8);},'open$':new _0xe69dde(_0x5cb01f=>{const _0x444488=_0x721f0b;let _0x262cb5=_0x252fff=>_0x5cb01f[_0x444488(0x128)](_0x252fff);_0x27d77a[_0x444488(0x11e)]('open',_0x262cb5),_0x1e0bf0[_0x444488(0x114)](_0x18c957(()=>_0x27d77a[_0x444488(0x10e)](_0x444488(0x125),_0x262cb5)));})[_0x721f0b(0x109)](_0x36c6c6()),'close$':new _0xe69dde(_0x417082=>{const _0x24bb55=_0x721f0b;let _0x541764=_0x181d33=>_0x417082['next'](_0x181d33);_0x27d77a[_0x24bb55(0x11e)](_0x24bb55(0x119),_0x541764),_0x1e0bf0[_0x24bb55(0x114)](_0x18c957(()=>_0x27d77a['removeEventListener'](_0x24bb55(0x119),_0x541764)));})[_0x721f0b(0x109)](_0x36c6c6()),'error$':new _0xe69dde(_0x424fba=>{const _0x1c43d4=_0x721f0b;let _0x3449c4=_0x581ec2=>_0x424fba['next'](_0x581ec2);_0x27d77a[_0x1c43d4(0x11e)](_0x1c43d4(0x115),_0x3449c4),_0x1e0bf0[_0x1c43d4(0x114)](_0x18c957(()=>_0x27d77a['removeEventListener'](_0x1c43d4(0x115),_0x3449c4)));})[_0x721f0b(0x109)](_0x36c6c6()),'message$':new _0xe69dde(_0x588ff6=>{const _0x82e95f=_0x721f0b;let _0x28a750=_0xa558bb=>_0x588ff6[_0x82e95f(0x128)](_0xa558bb);_0x27d77a[_0x82e95f(0x11e)](_0x82e95f(0x111),_0x28a750),_0x1e0bf0['add'](_0x18c957(()=>_0x27d77a[_0x82e95f(0x10e)]('message',_0x28a750)));})['pipe'](_0x36c6c6())};}catch(_0x921670){return console[_0x721f0b(0x115)](_0x921670),null;}}};O=D([E(0x0,_0x58fc6e)],O);function k(_0x296ca1){'@babel/helpers - typeof';const _0x243b8f=_0x407e30;return k=typeof Symbol==_0x243b8f(0x10f)&&typeof Symbol['iterator']==_0x243b8f(0x12f)?function(_0x1234c7){return typeof _0x1234c7;}:function(_0x487b52){const _0x3069ca=_0x243b8f;return _0x487b52&&typeof Symbol==_0x3069ca(0x10f)&&_0x487b52['constructor']===Symbol&&_0x487b52!==Symbol[_0x3069ca(0x11f)]?_0x3069ca(0x12f):typeof _0x487b52;},k(_0x296ca1);}function A(_0x14cbb3,_0x3666e3){const _0x126529=_0x407e30;if(k(_0x14cbb3)!='object'||!_0x14cbb3)return _0x14cbb3;var _0x7d1d38=_0x14cbb3[Symbol[_0x126529(0x11d)]];if(_0x7d1d38!==void 0x0){var _0x5470cc=_0x7d1d38[_0x126529(0x12c)](_0x14cbb3,_0x3666e3||'default');if(k(_0x5470cc)!=_0x126529(0x129))return _0x5470cc;throw TypeError(_0x126529(0x123));}return(_0x3666e3===_0x126529(0x110)?String:Number)(_0x14cbb3);}function j(_0x325f49){const _0x18589e=_0x407e30;var _0x41c523=A(_0x325f49,_0x18589e(0x110));return k(_0x41c523)==_0x18589e(0x12f)?_0x41c523:_0x41c523+'';}function M(_0x16492e,_0x5d2bb3,_0x549f34){const _0x9fe1ae=_0x407e30;return(_0x5d2bb3=j(_0x5d2bb3))in _0x16492e?Object[_0x9fe1ae(0x10a)](_0x16492e,_0x5d2bb3,{'value':_0x549f34,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x16492e[_0x5d2bb3]=_0x549f34,_0x16492e;}let N=class extends _0x4bd04c{constructor(_0x5e875c=T,_0x53dd6c,_0x3102bf){const _0x3c50b8=_0x407e30;super(),this[_0x3c50b8(0x10b)]=_0x5e875c,this[_0x3c50b8(0x108)]=_0x53dd6c,this[_0x3c50b8(0x112)]=_0x3102bf;let {..._0x59ea80}=_0x3707cf({},T,this[_0x3c50b8(0x10b)]);this[_0x3c50b8(0x108)][_0x3c50b8(0x122)](_0x3c50b8(0x11c),_0x59ea80);}['onStarting'](){this['_registerDependencies']();}['_registerDependencies'](){const _0x5d15f6=_0x407e30;_0x1ccb89(this[_0x5d15f6(0x112)],[[_0x2e5c1b,{'useClass':O}]]);}};M(N,_0x407e30(0x107),_0x407e30(0x117)),M(N,'packageName',C),M(N,'version',w),N=D([_0x2ba93a(_0x2c7985,_0x4dc214,_0x5c6729,_0x363762),E(0x1,_0x58fc6e),E(0x2,_0x3d41d3(_0x451f6e))],N);let P=class extends _0x16d96d{constructor(_0x543100,_0x53eb11,_0x543761,_0x3f1498,_0x300c2d){const _0x4769bd=_0x407e30;super(_0x543100,_0x53eb11,_0x543761,_0x3f1498,_0x300c2d);let _0x7c08be=this['_configService'][_0x4769bd(0x126)](_0x3e723d);this[_0x4769bd(0x124)][_0x4769bd(0x103)]({'interceptor':(_0x7a7f9e,_0x52d40a)=>{const _0x22e237=_0x4769bd;let _0x532099=_0x7a7f9e[_0x22e237(0x11b)];if(_0x7c08be!=null&&_0x7c08be['customHeaders']){for(let _0x263822 in _0x7c08be[_0x22e237(0x12e)])_0x532099[_0x22e237(0x118)](_0x263822,_0x7c08be[_0x22e237(0x12e)][_0x263822]);}return _0x52d40a(_0x7a7f9e);}});}async[_0x407e30(0x12b)](_0x1f391e){const _0x5254a2=_0x407e30;return this[_0x5254a2(0x113)](_0x1f391e);}};P=D([E(0x0,_0x3d41d3(_0x451f6e)),E(0x1,_0x3d41d3(_0x557549)),E(0x2,_0x58fc6e),E(0x3,_0x3bb1e6),E(0x4,_0x568942)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};function _0x4e94(_0x4986c6,_0xfeef17){_0x4986c6=_0x4986c6-0x103;const _0x5c636a=_0x5c63();let _0x4e94ce=_0x5c636a[_0x4986c6];return _0x4e94ce;}function _0x5c63(){const _0x6df7da=['add','error','1.1.0','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','set','close','@univerjs-pro/collaboration-client-node','headers','collaboration-client-node.config','toPrimitive','addEventListener','prototype','1356429cKZJQt','2141716LnnvQc','setConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_httpService','open','getConfig','901802jafPsY','next','object','dispose','createSocket','call','decorate','customHeaders','symbol','send','registerHTTPInterceptor','length','448990apCesu','424360ZAFsqJ','pluginName','_configService','pipe','defineProperty','_config','2795226tbibaS','13140778uohTpw','removeEventListener','function','string','message','_injector','_doCreateSocket'];_0x5c63=function(){return _0x6df7da;};return _0x5c63();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4c2087,_0x25b712){const _0x1affb2=_0x5baa,_0x4af1da=_0x4c2087();while(!![]){try{const _0xc6939b=-parseInt(_0x1affb2(0xc9))/0x1+parseInt(_0x1affb2(0x9d))/0x2+-parseInt(_0x1affb2(0x9a))/0x3*(parseInt(_0x1affb2(0xa1))/0x4)+-parseInt(_0x1affb2(0xb0))/0x5+parseInt(_0x1affb2(0x92))/0x6*(-parseInt(_0x1affb2(0x97))/0x7)+-parseInt(_0x1affb2(0x9b))/0x8*(-parseInt(_0x1affb2(0xb1))/0x9)+parseInt(_0x1affb2(0xe5))/0xa;if(_0xc6939b===_0x25b712)break;else _0x4af1da['push'](_0x4af1da['shift']());}catch(_0x1f12b9){_0x4af1da['push'](_0x4af1da['shift']());}}}(_0x36b7,0x32370),function(_0x228ad5,_0x562912){const _0x35663a=_0x5baa;typeof exports==_0x35663a(0x9c)&&typeof module<'u'?_0x562912(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x35663a(0xb8)&&define[_0x35663a(0xdf)]?define(['exports',_0x35663a(0xae),_0x35663a(0xbe),'@univerjs-pro/license',_0x35663a(0x98),'@univerjs/network',_0x35663a(0xb5)],_0x562912):(_0x228ad5=typeof globalThis<'u'?globalThis:_0x228ad5||self,_0x562912(_0x228ad5[_0x35663a(0xe6)]={},_0x228ad5['UniverProCollaboration'],_0x228ad5[_0x35663a(0xd4)],_0x228ad5[_0x35663a(0xc5)],_0x228ad5['UniverCore'],_0x228ad5[_0x35663a(0xd0)],_0x228ad5['rxjs']));}(this,function(_0x2d1b6d,_0x3705b0,_0x463fa0,_0x9d15d8,_0x2a3f98,_0x243f6a,_0x45d24c){const _0x53c39d=_0x5baa;Object[_0x53c39d(0xc4)](_0x2d1b6d,Symbol[_0x53c39d(0xb3)],{'value':_0x53c39d(0xe3)});var _0x29dbe8=(_0x18b30f,_0x200054)=>()=>(_0x200054||(_0x18b30f((_0x200054={'exports':{}})['exports'],_0x200054),_0x18b30f=null),_0x200054[_0x53c39d(0xa5)]),_0x2b55b7=_0x53c39d(0xbb),_0xbf2b35='1.0.3';let _0x2a5739={};var _0x1265e1=_0x29dbe8((_0x56991b,_0x4670a4)=>{const _0xd97de=_0x53c39d;_0x4670a4[_0xd97de(0xa5)]=function(){const _0x301f40=_0xd97de;throw Error(_0x301f40(0xa9));};})();function _0x4b1703(_0x4977ca,_0x1cb036){return function(_0x22f842,_0x56bb51){_0x1cb036(_0x22f842,_0x56bb51,_0x4977ca);};}function _0x3b37c4(_0x4f654e,_0x58ab57,_0x1992da,_0x4fb27e){const _0x589bc1=_0x53c39d;var _0x4d2c1b=arguments[_0x589bc1(0xa2)],_0x17a296=_0x4d2c1b<0x3?_0x58ab57:_0x4fb27e===null?_0x4fb27e=Object['getOwnPropertyDescriptor'](_0x58ab57,_0x1992da):_0x4fb27e,_0x4a73c1;if(typeof Reflect==_0x589bc1(0x9c)&&typeof Reflect[_0x589bc1(0xc8)]=='function')_0x17a296=Reflect['decorate'](_0x4f654e,_0x58ab57,_0x1992da,_0x4fb27e);else{for(var _0x3f16e3=_0x4f654e[_0x589bc1(0xa2)]-0x1;_0x3f16e3>=0x0;_0x3f16e3--)(_0x4a73c1=_0x4f654e[_0x3f16e3])&&(_0x17a296=(_0x4d2c1b<0x3?_0x4a73c1(_0x17a296):_0x4d2c1b>0x3?_0x4a73c1(_0x58ab57,_0x1992da,_0x17a296):_0x4a73c1(_0x58ab57,_0x1992da))||_0x17a296);}return _0x4d2c1b>0x3&&_0x17a296&&Object[_0x589bc1(0xc4)](_0x58ab57,_0x1992da,_0x17a296),_0x17a296;}let _0x26f004=class extends _0x2a3f98[_0x53c39d(0xda)]{constructor(_0x12fcd7){const _0x281371=_0x53c39d;super(),this[_0x281371(0xa4)]=_0x12fcd7;}[_0x53c39d(0xde)](_0x4a108a){const _0x5130d4=_0x53c39d;var _0x594666;let _0x4f9ed5=((_0x594666=this[_0x5130d4(0xa4)][_0x5130d4(0xd2)](_0x463fa0[_0x5130d4(0xb6)]))==null?void 0x0:_0x594666[_0x5130d4(0xab)])||{};try{let _0x115df4=new _0x1265e1[(_0x5130d4(0x93))](_0x4a108a,{'headers':{..._0x4f9ed5}}),_0x3d8243=new _0x2a3f98[(_0x5130d4(0xaa))]();return{'URL':_0x4a108a,'close':(_0x9746da,_0x226153)=>{const _0x3a6ab7=_0x5130d4;_0x115df4['close'](_0x9746da,_0x226153),_0x3d8243[_0x3a6ab7(0xd9)]();},'send':_0x5eedac=>{const _0x35b5b5=_0x5130d4;_0x115df4[_0x35b5b5(0xd7)](_0x5eedac);},'open$':new _0x45d24c[(_0x5130d4(0xcb))](_0x1a4e2c=>{const _0x304e91=_0x5130d4;let _0x5f0d45=_0x49305a=>_0x1a4e2c[_0x304e91(0xb9)](_0x49305a);_0x115df4[_0x304e91(0x96)](_0x304e91(0xbf),_0x5f0d45),_0x3d8243[_0x304e91(0xa3)]((0x0,_0x2a3f98[_0x304e91(0xa0)])(()=>_0x115df4[_0x304e91(0xb7)](_0x304e91(0xbf),_0x5f0d45)));})[_0x5130d4(0xc0)]((0x0,_0x45d24c[_0x5130d4(0x9e)])()),'close$':new _0x45d24c[(_0x5130d4(0xcb))](_0x40e402=>{const _0xc45c47=_0x5130d4;let _0xff9997=_0x4bc28e=>_0x40e402['next'](_0x4bc28e);_0x115df4['addEventListener'](_0xc45c47(0xd8),_0xff9997),_0x3d8243[_0xc45c47(0xa3)]((0x0,_0x2a3f98[_0xc45c47(0xa0)])(()=>_0x115df4[_0xc45c47(0xb7)](_0xc45c47(0xd8),_0xff9997)));})[_0x5130d4(0xc0)]((0x0,_0x45d24c[_0x5130d4(0x9e)])()),'error$':new _0x45d24c[(_0x5130d4(0xcb))](_0x542fc8=>{const _0x4481df=_0x5130d4;let _0x3bc6d1=_0x48eb12=>_0x542fc8[_0x4481df(0xb9)](_0x48eb12);_0x115df4['addEventListener'](_0x4481df(0xe7),_0x3bc6d1),_0x3d8243[_0x4481df(0xa3)]((0x0,_0x2a3f98['toDisposable'])(()=>_0x115df4[_0x4481df(0xb7)](_0x4481df(0xe7),_0x3bc6d1)));})[_0x5130d4(0xc0)]((0x0,_0x45d24c['share'])()),'message$':new _0x45d24c[(_0x5130d4(0xcb))](_0x33bb54=>{const _0x56f5b4=_0x5130d4;let _0x43e265=_0x49a0ec=>_0x33bb54[_0x56f5b4(0xb9)](_0x49a0ec);_0x115df4[_0x56f5b4(0x96)](_0x56f5b4(0xc7),_0x43e265),_0x3d8243['add']((0x0,_0x2a3f98[_0x56f5b4(0xa0)])(()=>_0x115df4[_0x56f5b4(0xb7)](_0x56f5b4(0xc7),_0x43e265)));})[_0x5130d4(0xc0)]((0x0,_0x45d24c['share'])())};}catch(_0xe535d5){return console[_0x5130d4(0xe7)](_0xe535d5),null;}}};_0x26f004=_0x3b37c4([_0x4b1703(0x0,_0x2a3f98[_0x53c39d(0xac)])],_0x26f004);function _0x57e82f(_0x2f420b){'@babel/helpers - typeof';const _0x134eb0=_0x53c39d;return _0x57e82f=typeof Symbol==_0x134eb0(0xb8)&&typeof Symbol['iterator']==_0x134eb0(0xbc)?function(_0x37654f){return typeof _0x37654f;}:function(_0x1b9943){const _0x242a28=_0x134eb0;return _0x1b9943&&typeof Symbol=='function'&&_0x1b9943[_0x242a28(0xd3)]===Symbol&&_0x1b9943!==Symbol[_0x242a28(0xc1)]?_0x242a28(0xbc):typeof _0x1b9943;},_0x57e82f(_0x2f420b);}function _0x252c01(_0x191cfe,_0x4a766c){const _0x24eea2=_0x53c39d;if(_0x57e82f(_0x191cfe)!=_0x24eea2(0x9c)||!_0x191cfe)return _0x191cfe;var _0x324537=_0x191cfe[Symbol[_0x24eea2(0xe1)]];if(_0x324537!==void 0x0){var _0x15b79b=_0x324537[_0x24eea2(0xdb)](_0x191cfe,_0x4a766c||_0x24eea2(0x91));if(_0x57e82f(_0x15b79b)!='object')return _0x15b79b;throw TypeError(_0x24eea2(0xe2));}return(_0x4a766c===_0x24eea2(0xa6)?String:Number)(_0x191cfe);}function _0x247e79(_0x2b858a){const _0x501b38=_0x53c39d;var _0x42c726=_0x252c01(_0x2b858a,_0x501b38(0xa6));return _0x57e82f(_0x42c726)==_0x501b38(0xbc)?_0x42c726:_0x42c726+'';}function _0x4e3c0d(_0x59d2be,_0x22e27f,_0x3271d8){return(_0x22e27f=_0x247e79(_0x22e27f))in _0x59d2be?Object['defineProperty'](_0x59d2be,_0x22e27f,{'value':_0x3271d8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x59d2be[_0x22e27f]=_0x3271d8,_0x59d2be;}let _0x1e062f=class extends _0x2a3f98[_0x53c39d(0x95)]{constructor(_0x59e70f=_0x2a5739,_0x34f03e,_0x1a9419){const _0x266c97=_0x53c39d;super(),this[_0x266c97(0xd1)]=_0x59e70f,this[_0x266c97(0xa4)]=_0x34f03e,this[_0x266c97(0xd6)]=_0x1a9419;let {..._0x283fd7}=(0x0,_0x2a3f98[_0x266c97(0xca)])({},_0x2a5739,this[_0x266c97(0xd1)]);this['_configService'][_0x266c97(0xad)](_0x266c97(0xb4),_0x283fd7);}[_0x53c39d(0x9f)](){this['_registerDependencies']();}['_registerDependencies'](){const _0x3ade44=_0x53c39d;(0x0,_0x2a3f98[_0x3ade44(0xd5)])(this[_0x3ade44(0xd6)],[[_0x243f6a[_0x3ade44(0xaf)],{'useClass':_0x26f004}]]);}};_0x4e3c0d(_0x1e062f,_0x53c39d(0xba),_0x53c39d(0xce)),_0x4e3c0d(_0x1e062f,_0x53c39d(0xcc),_0x2b55b7),_0x4e3c0d(_0x1e062f,_0x53c39d(0xe0),_0xbf2b35),_0x1e062f=_0x3b37c4([(0x0,_0x2a3f98[_0x53c39d(0xb2)])(_0x9d15d8[_0x53c39d(0x94)],_0x243f6a['UniverNetworkPlugin'],_0x3705b0[_0x53c39d(0xe4)],_0x463fa0[_0x53c39d(0xdd)]),_0x4b1703(0x1,_0x2a3f98[_0x53c39d(0xac)]),_0x4b1703(0x2,(0x0,_0x2a3f98[_0x53c39d(0xcd)])(_0x2a3f98['Injector']))],_0x1e062f);let _0xb82ac=class extends _0x463fa0['CollaborationSocketService']{constructor(_0x5b2d0e,_0x13d3b2,_0x53b580,_0x1dd71c,_0x4815c2){const _0x3cbebc=_0x53c39d;super(_0x5b2d0e,_0x13d3b2,_0x53b580,_0x1dd71c,_0x4815c2);let _0x48b0d1=this['_configService'][_0x3cbebc(0xd2)](_0x463fa0['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x3cbebc(0xdc)][_0x3cbebc(0xc2)]({'interceptor':(_0x3019c7,_0x28ada5)=>{const _0x3bae61=_0x3cbebc;let _0x4b2d99=_0x3019c7[_0x3bae61(0xcf)];if(_0x48b0d1!=null&&_0x48b0d1[_0x3bae61(0xab)]){for(let _0x4c1616 in _0x48b0d1['customHeaders'])_0x4b2d99['set'](_0x4c1616,_0x48b0d1[_0x3bae61(0xab)][_0x4c1616]);}return _0x28ada5(_0x3019c7);}});}async['createSocket'](_0x483d9b){return this['_doCreateSocket'](_0x483d9b);}};_0xb82ac=_0x3b37c4([_0x4b1703(0x0,(0x0,_0x2a3f98[_0x53c39d(0xcd)])(_0x2a3f98[_0x53c39d(0xc3)])),_0x4b1703(0x1,(0x0,_0x2a3f98['Inject'])(_0x243f6a[_0x53c39d(0xc6)])),_0x4b1703(0x2,_0x2a3f98[_0x53c39d(0xac)]),_0x4b1703(0x3,_0x2a3f98[_0x53c39d(0xbd)]),_0x4b1703(0x4,_0x3705b0[_0x53c39d(0xa8)])],_0xb82ac),Object[_0x53c39d(0xc4)](_0x2d1b6d,_0x53c39d(0x99),{'enumerable':!0x0,'get':function(){return _0xb82ac;}}),Object['defineProperty'](_0x2d1b6d,_0x53c39d(0xa7),{'enumerable':!0x0,'get':function(){return _0x1e062f;}});}));function _0x5baa(_0x1d7371,_0x449052){_0x1d7371=_0x1d7371-0x91;const _0x36b707=_0x36b7();let _0x5baa27=_0x36b707[_0x1d7371];return _0x5baa27;}function _0x36b7(){const _0x2b83a6=['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','removeEventListener','function','next','pluginName','@univerjs-pro/collaboration-client-node','symbol','ILogService','@univerjs-pro/collaboration-client','open','pipe','prototype','registerHTTPInterceptor','Injector','defineProperty','UniverProLicense','HTTPService','message','decorate','161111ZfRXYW','merge','Observable','packageName','Inject','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','headers','UniverNetwork','_config','getConfig','constructor','UniverProCollaborationClient','registerDependencies','_injector','send','close','dispose','Disposable','call','_httpService','UniverCollaborationClientPlugin','createSocket','amd','version','toPrimitive','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Module','UniverCollaborationPlugin','7708930zisPBj','UniverProCollaborationClientNode','error','default','114yOfxIg','WebSocket','UniverLicensePlugin','Plugin','addEventListener','38381xEycUC','@univerjs/core','NodeCollaborationSocketService','99213Xmmaaj','40JDNlyW','object','195452rxzoPC','share','onStarting','toDisposable','24dZpcad','length','add','_configService','exports','string','UniverCollaborationClientNodePlugin','ISnapshotServerService','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','DisposableCollection','customHeaders','IConfigService','setConfig','@univerjs-pro/collaboration','ISocketService','1986150BGCVRr','356409VIBlin','DependentOn','toStringTag','collaboration-client-node.config','rxjs'];_0x36b7=function(){return _0x2b83a6;};return _0x36b7();}
1
+ (function(_0x2c87c1,_0x391cf4){const _0x26c192=_0x377c,_0x41994b=_0x2c87c1();while(!![]){try{const _0xd8ab60=-parseInt(_0x26c192(0x1bc))/0x1+parseInt(_0x26c192(0x1ba))/0x2+parseInt(_0x26c192(0x189))/0x3*(parseInt(_0x26c192(0x192))/0x4)+parseInt(_0x26c192(0x187))/0x5+-parseInt(_0x26c192(0x185))/0x6*(parseInt(_0x26c192(0x1aa))/0x7)+-parseInt(_0x26c192(0x1be))/0x8+parseInt(_0x26c192(0x1b9))/0x9;if(_0xd8ab60===_0x391cf4)break;else _0x41994b['push'](_0x41994b['shift']());}catch(_0x26412a){_0x41994b['push'](_0x41994b['shift']());}}}(_0x2856,0xc0686),function(_0x5a10f6,_0x52ca0c){const _0x8fc0e9=_0x377c;typeof exports=='object'&&typeof module<'u'?_0x52ca0c(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x8fc0e9(0x1a3)&&define[_0x8fc0e9(0x166)]?define([_0x8fc0e9(0x167),_0x8fc0e9(0x180),'@univerjs-pro/collaboration-client',_0x8fc0e9(0x1a9),_0x8fc0e9(0x193),'@univerjs/network',_0x8fc0e9(0x175)],_0x52ca0c):(_0x5a10f6=typeof globalThis<'u'?globalThis:_0x5a10f6||self,_0x52ca0c(_0x5a10f6[_0x8fc0e9(0x174)]={},_0x5a10f6[_0x8fc0e9(0x169)],_0x5a10f6['UniverProCollaborationClient'],_0x5a10f6[_0x8fc0e9(0x170)],_0x5a10f6[_0x8fc0e9(0x18b)],_0x5a10f6[_0x8fc0e9(0x17a)],_0x5a10f6['rxjs']));}(this,function(_0x26ee1d,_0x49301b,_0x176623,_0x59c000,_0x1fd9ac,_0x5690d2,_0x21604a){const _0x2a0d6c=_0x377c;Object[_0x2a0d6c(0x16d)](_0x26ee1d,Symbol[_0x2a0d6c(0x19a)],{'value':_0x2a0d6c(0x183)});var _0xa1ee8d=(_0x1ebb55,_0x242996)=>()=>(_0x242996||(_0x1ebb55((_0x242996={'exports':{}})['exports'],_0x242996),_0x1ebb55=null),_0x242996[_0x2a0d6c(0x167)]),_0x40e66d='@univerjs-pro/collaboration-client-node',_0x29ae61=_0x2a0d6c(0x191);let _0x34a63b={};var _0xb1e6ce=_0xa1ee8d((_0x3074f7,_0x13de83)=>{_0x13de83['exports']=function(){const _0x180d40=_0x377c;throw Error(_0x180d40(0x1bd));};})();function _0x296258(_0x45e512,_0x47a570){return function(_0x4a33e9,_0x1409d0){_0x47a570(_0x4a33e9,_0x1409d0,_0x45e512);};}function _0x4b86e7(_0x45957,_0x21153b,_0x2c0fae,_0xd6261e){const _0x1fa92f=_0x2a0d6c;var _0x46ff75=arguments[_0x1fa92f(0x1b8)],_0x5b801e=_0x46ff75<0x3?_0x21153b:_0xd6261e===null?_0xd6261e=Object[_0x1fa92f(0x17d)](_0x21153b,_0x2c0fae):_0xd6261e,_0xe86f19;if(typeof Reflect==_0x1fa92f(0x1bb)&&typeof Reflect[_0x1fa92f(0x1a8)]==_0x1fa92f(0x1a3))_0x5b801e=Reflect[_0x1fa92f(0x1a8)](_0x45957,_0x21153b,_0x2c0fae,_0xd6261e);else{for(var _0x28babe=_0x45957[_0x1fa92f(0x1b8)]-0x1;_0x28babe>=0x0;_0x28babe--)(_0xe86f19=_0x45957[_0x28babe])&&(_0x5b801e=(_0x46ff75<0x3?_0xe86f19(_0x5b801e):_0x46ff75>0x3?_0xe86f19(_0x21153b,_0x2c0fae,_0x5b801e):_0xe86f19(_0x21153b,_0x2c0fae))||_0x5b801e);}return _0x46ff75>0x3&&_0x5b801e&&Object['defineProperty'](_0x21153b,_0x2c0fae,_0x5b801e),_0x5b801e;}let _0x3e3886=class extends _0x1fd9ac['Disposable']{constructor(_0x5ba7ce){const _0x5a0172=_0x2a0d6c;super(),this[_0x5a0172(0x179)]=_0x5ba7ce;}[_0x2a0d6c(0x198)](_0x32aac7){const _0x3b0560=_0x2a0d6c;var _0x5d204e;let _0x4331c8=((_0x5d204e=this[_0x3b0560(0x179)][_0x3b0560(0x177)](_0x176623[_0x3b0560(0x190)]))==null?void 0x0:_0x5d204e[_0x3b0560(0x194)])||{};try{let _0x5b6b96=new _0xb1e6ce[(_0x3b0560(0x16a))](_0x32aac7,{'headers':{..._0x4331c8}}),_0x2bf50d=new _0x1fd9ac[(_0x3b0560(0x19f))]();return{'URL':_0x32aac7,'close':(_0x4683ca,_0x27f101)=>{const _0x57f85d=_0x3b0560;_0x5b6b96[_0x57f85d(0x1b1)](_0x4683ca,_0x27f101),_0x2bf50d[_0x57f85d(0x1a0)]();},'send':_0x462dca=>{const _0x481ce5=_0x3b0560;_0x5b6b96[_0x481ce5(0x199)](_0x462dca);},'open$':new _0x21604a[(_0x3b0560(0x1a7))](_0x2f1f45=>{const _0x3bb2cf=_0x3b0560;let _0x5c6b28=_0x6cf204=>_0x2f1f45['next'](_0x6cf204);_0x5b6b96['addEventListener'](_0x3bb2cf(0x1ae),_0x5c6b28),_0x2bf50d[_0x3bb2cf(0x1a4)]((0x0,_0x1fd9ac[_0x3bb2cf(0x1b6)])(()=>_0x5b6b96[_0x3bb2cf(0x176)](_0x3bb2cf(0x1ae),_0x5c6b28)));})[_0x3b0560(0x16e)]((0x0,_0x21604a[_0x3b0560(0x168)])()),'close$':new _0x21604a[(_0x3b0560(0x1a7))](_0x439942=>{const _0x461cbd=_0x3b0560;let _0x3b0382=_0x2c78d9=>_0x439942[_0x461cbd(0x195)](_0x2c78d9);_0x5b6b96['addEventListener'](_0x461cbd(0x1b1),_0x3b0382),_0x2bf50d[_0x461cbd(0x1a4)]((0x0,_0x1fd9ac[_0x461cbd(0x1b6)])(()=>_0x5b6b96['removeEventListener'](_0x461cbd(0x1b1),_0x3b0382)));})['pipe']((0x0,_0x21604a[_0x3b0560(0x168)])()),'error$':new _0x21604a[(_0x3b0560(0x1a7))](_0x43de8f=>{const _0x1d5210=_0x3b0560;let _0x2850c7=_0x2a8f04=>_0x43de8f[_0x1d5210(0x195)](_0x2a8f04);_0x5b6b96[_0x1d5210(0x196)](_0x1d5210(0x19d),_0x2850c7),_0x2bf50d[_0x1d5210(0x1a4)]((0x0,_0x1fd9ac[_0x1d5210(0x1b6)])(()=>_0x5b6b96[_0x1d5210(0x176)](_0x1d5210(0x19d),_0x2850c7)));})[_0x3b0560(0x16e)]((0x0,_0x21604a[_0x3b0560(0x168)])()),'message$':new _0x21604a[(_0x3b0560(0x1a7))](_0x2bb25f=>{const _0x54a17d=_0x3b0560;let _0x474966=_0x574551=>_0x2bb25f[_0x54a17d(0x195)](_0x574551);_0x5b6b96['addEventListener'](_0x54a17d(0x1b5),_0x474966),_0x2bf50d[_0x54a17d(0x1a4)]((0x0,_0x1fd9ac['toDisposable'])(()=>_0x5b6b96[_0x54a17d(0x176)]('message',_0x474966)));})[_0x3b0560(0x16e)]((0x0,_0x21604a[_0x3b0560(0x168)])())};}catch(_0x7b4851){return console['error'](_0x7b4851),null;}}};_0x3e3886=_0x4b86e7([_0x296258(0x0,_0x1fd9ac['IConfigService'])],_0x3e3886);function _0x587bdc(_0x56bfc9){'@babel/helpers - typeof';const _0x113ec7=_0x2a0d6c;return _0x587bdc=typeof Symbol==_0x113ec7(0x1a3)&&typeof Symbol['iterator']==_0x113ec7(0x1b4)?function(_0x3354b0){return typeof _0x3354b0;}:function(_0x3f6be5){const _0x99a676=_0x113ec7;return _0x3f6be5&&typeof Symbol==_0x99a676(0x1a3)&&_0x3f6be5[_0x99a676(0x178)]===Symbol&&_0x3f6be5!==Symbol[_0x99a676(0x1af)]?'symbol':typeof _0x3f6be5;},_0x587bdc(_0x56bfc9);}function _0x54f767(_0x117c04,_0x9d2c42){const _0x4d54bc=_0x2a0d6c;if(_0x587bdc(_0x117c04)!=_0x4d54bc(0x1bb)||!_0x117c04)return _0x117c04;var _0x4746b0=_0x117c04[Symbol[_0x4d54bc(0x181)]];if(_0x4746b0!==void 0x0){var _0x44d717=_0x4746b0[_0x4d54bc(0x1b0)](_0x117c04,_0x9d2c42||_0x4d54bc(0x173));if(_0x587bdc(_0x44d717)!=_0x4d54bc(0x1bb))return _0x44d717;throw TypeError(_0x4d54bc(0x1c0));}return(_0x9d2c42===_0x4d54bc(0x18e)?String:Number)(_0x117c04);}function _0x14a553(_0x31442e){const _0x250724=_0x2a0d6c;var _0xc16aa8=_0x54f767(_0x31442e,_0x250724(0x18e));return _0x587bdc(_0xc16aa8)==_0x250724(0x1b4)?_0xc16aa8:_0xc16aa8+'';}function _0x2d6375(_0x438d94,_0x4b98e4,_0x38a309){const _0x59e087=_0x2a0d6c;return(_0x4b98e4=_0x14a553(_0x4b98e4))in _0x438d94?Object[_0x59e087(0x16d)](_0x438d94,_0x4b98e4,{'value':_0x38a309,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x438d94[_0x4b98e4]=_0x38a309,_0x438d94;}let _0x427bc7=class extends _0x1fd9ac[_0x2a0d6c(0x17f)]{constructor(_0x2d14b5=_0x34a63b,_0x113272,_0x405bba){const _0x4c005d=_0x2a0d6c;super(),this[_0x4c005d(0x172)]=_0x2d14b5,this[_0x4c005d(0x179)]=_0x113272,this[_0x4c005d(0x1b2)]=_0x405bba;let {..._0x1624f7}=(0x0,_0x1fd9ac[_0x4c005d(0x1b3)])({},_0x34a63b,this['_config']);this['_configService'][_0x4c005d(0x17c)](_0x4c005d(0x1a1),_0x1624f7);}[_0x2a0d6c(0x16b)](){this['_registerDependencies']();}[_0x2a0d6c(0x16c)](){const _0x66213f=_0x2a0d6c;(0x0,_0x1fd9ac['registerDependencies'])(this[_0x66213f(0x1b2)],[[_0x5690d2[_0x66213f(0x171)],{'useClass':_0x3e3886}]]);}};_0x2d6375(_0x427bc7,_0x2a0d6c(0x19b),_0x2a0d6c(0x16f)),_0x2d6375(_0x427bc7,_0x2a0d6c(0x17e),_0x40e66d),_0x2d6375(_0x427bc7,_0x2a0d6c(0x18d),_0x29ae61),_0x427bc7=_0x4b86e7([(0x0,_0x1fd9ac[_0x2a0d6c(0x184)])(_0x59c000[_0x2a0d6c(0x1a2)],_0x5690d2[_0x2a0d6c(0x1b7)],_0x49301b[_0x2a0d6c(0x1ad)],_0x176623[_0x2a0d6c(0x1a5)]),_0x296258(0x1,_0x1fd9ac['IConfigService']),_0x296258(0x2,(0x0,_0x1fd9ac[_0x2a0d6c(0x18f)])(_0x1fd9ac[_0x2a0d6c(0x19c)]))],_0x427bc7);let _0x153227=class extends _0x176623[_0x2a0d6c(0x1bf)]{constructor(_0x3a6c1e,_0x2997b5,_0x36fce0,_0x37b86a,_0x362eb7){const _0x50d459=_0x2a0d6c;super(_0x3a6c1e,_0x2997b5,_0x36fce0,_0x37b86a,_0x362eb7);let _0x1af42d=this['_configService'][_0x50d459(0x177)](_0x176623['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x50d459(0x19e)][_0x50d459(0x1ab)]({'interceptor':(_0x1bd716,_0xae00fb)=>{const _0x406883=_0x50d459;let _0x45b491=_0x1bd716[_0x406883(0x17b)];if(_0x1af42d!=null&&_0x1af42d['customHeaders']){for(let _0x19de67 in _0x1af42d[_0x406883(0x194)])_0x45b491[_0x406883(0x182)](_0x19de67,_0x1af42d[_0x406883(0x194)][_0x19de67]);}return _0xae00fb(_0x1bd716);}});}async['createSocket'](_0x41f16e){const _0x112bd8=_0x2a0d6c;return this[_0x112bd8(0x18c)](_0x41f16e);}};_0x153227=_0x4b86e7([_0x296258(0x0,(0x0,_0x1fd9ac['Inject'])(_0x1fd9ac['Injector'])),_0x296258(0x1,(0x0,_0x1fd9ac['Inject'])(_0x5690d2[_0x2a0d6c(0x188)])),_0x296258(0x2,_0x1fd9ac[_0x2a0d6c(0x18a)]),_0x296258(0x3,_0x1fd9ac[_0x2a0d6c(0x1ac)]),_0x296258(0x4,_0x49301b[_0x2a0d6c(0x197)])],_0x153227),Object[_0x2a0d6c(0x16d)](_0x26ee1d,_0x2a0d6c(0x186),{'enumerable':!0x0,'get':function(){return _0x153227;}}),Object['defineProperty'](_0x26ee1d,_0x2a0d6c(0x1a6),{'enumerable':!0x0,'get':function(){return _0x427bc7;}});}));function _0x377c(_0x186b9f,_0x305069){_0x186b9f=_0x186b9f-0x166;const _0x2856ca=_0x2856();let _0x377cfe=_0x2856ca[_0x186b9f];return _0x377cfe;}function _0x2856(){const _0x51d57f=['call','close','_injector','merge','symbol','message','toDisposable','UniverNetworkPlugin','length','3654774VtKvhV','1282938oxclBT','object','270703TJvEYy','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','4568976IQeosA','CollaborationSocketService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','amd','exports','share','UniverProCollaboration','WebSocket','onStarting','_registerDependencies','defineProperty','pipe','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','UniverProLicense','ISocketService','_config','default','UniverProCollaborationClientNode','rxjs','removeEventListener','getConfig','constructor','_configService','UniverNetwork','headers','setConfig','getOwnPropertyDescriptor','packageName','Plugin','@univerjs-pro/collaboration','toPrimitive','set','Module','DependentOn','229752UrOhCW','NodeCollaborationSocketService','4228685vNGEwq','HTTPService','6081xbpWhb','IConfigService','UniverCore','_doCreateSocket','version','string','Inject','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','1.1.0','916BTmLLC','@univerjs/core','customHeaders','next','addEventListener','ISnapshotServerService','createSocket','send','toStringTag','pluginName','Injector','error','_httpService','DisposableCollection','dispose','collaboration-client-node.config','UniverLicensePlugin','function','add','UniverCollaborationClientPlugin','UniverCollaborationClientNodePlugin','Observable','decorate','@univerjs-pro/license','133taJpmS','registerHTTPInterceptor','ILogService','UniverCollaborationPlugin','open','prototype'];_0x2856=function(){return _0x51d57f;};return _0x2856();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "private": false,
5
5
  "description": "Node.js collaboration client plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -51,19 +51,19 @@
51
51
  "rxjs": ">=7.0.0"
52
52
  },
53
53
  "dependencies": {
54
- "@univerjs-pro/collaboration": "1.0.3",
55
- "@univerjs-pro/collaboration-client": "1.0.3",
56
- "@univerjs-pro/license": "1.0.3",
57
- "@univerjs/core": "1.0.3",
58
- "@univerjs/network": "1.0.3",
54
+ "@univerjs-pro/collaboration": "1.1.0",
55
+ "@univerjs-pro/collaboration-client": "1.1.0",
56
+ "@univerjs-pro/license": "1.1.0",
57
+ "@univerjs/core": "1.1.0",
58
+ "@univerjs/network": "1.1.0",
59
59
  "ws": "8.21.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/ws": "8.18.1",
63
- "@univerjs-infra/shared": "1.0.3",
63
+ "@univerjs-infra/shared": "1.1.0",
64
64
  "rxjs": "7.8.2",
65
65
  "typescript": "^6.0.3",
66
- "vitest": "^5.0.0"
66
+ "vitest": "^5.0.4"
67
67
  },
68
68
  "scripts": {
69
69
  "test": "vitest run",