@univerjs-pro/collaboration-client-node 1.0.0-alpha.7 → 1.0.0-beta.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 _0x5669ad=_0x4f6a;function _0x50ff(){const _0x42d45d=['DisposableCollection','_config','11885qSKJHc','merge','31560110xNyOCh','_httpService','version','toDisposable','DependentOn','toStringTag','iterator','311KACCps','ISocketService','symbol','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','string','customHeaders','@univerjs-pro/collaboration-client-node','addEventListener','setConfig','5838108Jnqpjm','prototype','decorate','dispose','WebSocket','1.0.0-alpha.7','HTTPService','_doCreateSocket','7312459IxTJmO','object','constructor','pipe','createSocket','UniverCollaborationClientNodePlugin','close','Observable','_configService','next','send','add','removeEventListener','packageName','getConfig','open','message','654xtgQgr','234auperW','toPrimitive','onStarting','share','default','Inject','Plugin','registerDependencies','6411664ejIWjS','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','error','597960gcGKRC','function','_injector','_registerDependencies','CollaborationSocketService','registerHTTPInterceptor','headers','UniverCollaborationClientPlugin','Disposable','Injector','defineProperty','11290nPHUip','length','NodeCollaborationSocketService','IConfigService'];_0x50ff=function(){return _0x42d45d;};return _0x50ff();}(function(_0x4822fe,_0x386aa7){const _0x5a5eb1=_0x4f6a,_0x2bc05a=_0x4822fe();while(!![]){try{const _0x216a5b=parseInt(_0x5a5eb1(0x11b))/0x1*(parseInt(_0x5a5eb1(0x154))/0x2)+parseInt(_0x5a5eb1(0x124))/0x3+parseInt(_0x5a5eb1(0x146))/0x4+-parseInt(_0x5a5eb1(0x112))/0x5*(parseInt(_0x5a5eb1(0x13d))/0x6)+parseInt(_0x5a5eb1(0x12c))/0x7+parseInt(_0x5a5eb1(0x149))/0x8*(-parseInt(_0x5a5eb1(0x13e))/0x9)+-parseInt(_0x5a5eb1(0x114))/0xa;if(_0x216a5b===_0x386aa7)break;else _0x2bc05a['push'](_0x2bc05a['shift']());}catch(_0x358f77){_0x2bc05a['push'](_0x2bc05a['shift']());}}}(_0x50ff,0xf1df6),Object[_0x5669ad(0x153)](exports,Symbol[_0x5669ad(0x119)],{'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');var o=_0x5669ad(0x121),s=_0x5669ad(0x129);const c={};function _0x4f6a(_0x43ae6f,_0x9f07d2){_0x43ae6f=_0x43ae6f-0x10e;const _0x50ffec=_0x50ff();let _0x4f6a1b=_0x50ffec[_0x43ae6f];return _0x4f6a1b;}function l(_0x40e87a,_0x53bef2){return function(_0x1a99ac,_0x40bae4){_0x53bef2(_0x1a99ac,_0x40bae4,_0x40e87a);};}function u(_0x5de84b,_0x5a7cb6,_0x5c1cbb,_0x5528a8){const _0x15899e=_0x5669ad;var _0x52a564=arguments[_0x15899e(0x155)],_0x491c2=_0x52a564<0x3?_0x5a7cb6:_0x5528a8===null?_0x5528a8=Object['getOwnPropertyDescriptor'](_0x5a7cb6,_0x5c1cbb):_0x5528a8,_0x3f758d;if(typeof Reflect==_0x15899e(0x12d)&&typeof Reflect[_0x15899e(0x126)]==_0x15899e(0x14a))_0x491c2=Reflect['decorate'](_0x5de84b,_0x5a7cb6,_0x5c1cbb,_0x5528a8);else{for(var _0x5c62aa=_0x5de84b[_0x15899e(0x155)]-0x1;_0x5c62aa>=0x0;_0x5c62aa--)(_0x3f758d=_0x5de84b[_0x5c62aa])&&(_0x491c2=(_0x52a564<0x3?_0x3f758d(_0x491c2):_0x52a564>0x3?_0x3f758d(_0x5a7cb6,_0x5c1cbb,_0x491c2):_0x3f758d(_0x5a7cb6,_0x5c1cbb))||_0x491c2);}return _0x52a564>0x3&&_0x491c2&&Object[_0x15899e(0x153)](_0x5a7cb6,_0x5c1cbb,_0x491c2),_0x491c2;}let d=class extends t[_0x5669ad(0x151)]{constructor(_0x362de9){const _0x371173=_0x5669ad;super(),this[_0x371173(0x134)]=_0x362de9;}[_0x5669ad(0x130)](_0x53dfaa){const _0x49b8cc=_0x5669ad;var _0x5a6bea;let _0x617213=((_0x5a6bea=this[_0x49b8cc(0x134)][_0x49b8cc(0x13a)](e[_0x49b8cc(0x147)]))==null?void 0x0:_0x5a6bea[_0x49b8cc(0x120)])||{};try{let _0x30dd7e=new i[(_0x49b8cc(0x128))](_0x53dfaa,{'headers':{..._0x617213}}),_0x2e0582=new t[(_0x49b8cc(0x110))]();return{'URL':_0x53dfaa,'close':(_0x1141fd,_0x13d44b)=>{const _0x12197f=_0x49b8cc;_0x30dd7e[_0x12197f(0x132)](_0x1141fd,_0x13d44b),_0x2e0582[_0x12197f(0x127)]();},'send':_0x25dfc0=>{const _0x2b5f00=_0x49b8cc;_0x30dd7e[_0x2b5f00(0x136)](_0x25dfc0);},'open$':new r['Observable'](_0x2e135f=>{const _0x5e259b=_0x49b8cc;let _0x3d38f0=_0x3041c2=>_0x2e135f[_0x5e259b(0x135)](_0x3041c2);_0x30dd7e[_0x5e259b(0x122)](_0x5e259b(0x13b),_0x3d38f0),_0x2e0582[_0x5e259b(0x137)]((0x0,t[_0x5e259b(0x117)])(()=>_0x30dd7e[_0x5e259b(0x138)](_0x5e259b(0x13b),_0x3d38f0)));})[_0x49b8cc(0x12f)]((0x0,r[_0x49b8cc(0x141)])()),'close$':new r[(_0x49b8cc(0x133))](_0x13c7d9=>{const _0x5e31ab=_0x49b8cc;let _0x385a16=_0x264a9b=>_0x13c7d9[_0x5e31ab(0x135)](_0x264a9b);_0x30dd7e[_0x5e31ab(0x122)](_0x5e31ab(0x132),_0x385a16),_0x2e0582['add']((0x0,t['toDisposable'])(()=>_0x30dd7e[_0x5e31ab(0x138)](_0x5e31ab(0x132),_0x385a16)));})[_0x49b8cc(0x12f)]((0x0,r[_0x49b8cc(0x141)])()),'error$':new r[(_0x49b8cc(0x133))](_0x2ceb63=>{const _0x22d944=_0x49b8cc;let _0x2bb77f=_0x5025aa=>_0x2ceb63[_0x22d944(0x135)](_0x5025aa);_0x30dd7e[_0x22d944(0x122)](_0x22d944(0x148),_0x2bb77f),_0x2e0582[_0x22d944(0x137)]((0x0,t[_0x22d944(0x117)])(()=>_0x30dd7e['removeEventListener']('error',_0x2bb77f)));})[_0x49b8cc(0x12f)]((0x0,r['share'])()),'message$':new r['Observable'](_0x519319=>{const _0x36aad4=_0x49b8cc;let _0x2aa196=_0x44688e=>_0x519319['next'](_0x44688e);_0x30dd7e['addEventListener']('message',_0x2aa196),_0x2e0582[_0x36aad4(0x137)]((0x0,t['toDisposable'])(()=>_0x30dd7e[_0x36aad4(0x138)](_0x36aad4(0x13c),_0x2aa196)));})[_0x49b8cc(0x12f)]((0x0,r[_0x49b8cc(0x141)])())};}catch(_0x63ab88){return console[_0x49b8cc(0x148)](_0x63ab88),null;}}};d=u([l(0x0,t[_0x5669ad(0x10f)])],d);function f(_0x1de610){'@babel/helpers - typeof';const _0x5de100=_0x5669ad;return f=typeof Symbol==_0x5de100(0x14a)&&typeof Symbol[_0x5de100(0x11a)]==_0x5de100(0x11d)?function(_0x1e626c){return typeof _0x1e626c;}:function(_0x2f1957){const _0x59d02f=_0x5de100;return _0x2f1957&&typeof Symbol==_0x59d02f(0x14a)&&_0x2f1957[_0x59d02f(0x12e)]===Symbol&&_0x2f1957!==Symbol[_0x59d02f(0x125)]?_0x59d02f(0x11d):typeof _0x2f1957;},f(_0x1de610);}function p(_0xb69ede,_0x505f65){const _0x387c6f=_0x5669ad;if(f(_0xb69ede)!='object'||!_0xb69ede)return _0xb69ede;var _0x47fd4d=_0xb69ede[Symbol[_0x387c6f(0x13f)]];if(_0x47fd4d!==void 0x0){var _0x1c6036=_0x47fd4d['call'](_0xb69ede,_0x505f65||_0x387c6f(0x142));if(f(_0x1c6036)!='object')return _0x1c6036;throw TypeError(_0x387c6f(0x11e));}return(_0x505f65===_0x387c6f(0x11f)?String:Number)(_0xb69ede);}function m(_0x1b9ead){const _0x4d65f2=_0x5669ad;var _0x1c2f32=p(_0x1b9ead,'string');return f(_0x1c2f32)==_0x4d65f2(0x11d)?_0x1c2f32:_0x1c2f32+'';}function h(_0x4cf27d,_0x8f4c1d,_0x175e0b){const _0x42fc7f=_0x5669ad;return(_0x8f4c1d=m(_0x8f4c1d))in _0x4cf27d?Object[_0x42fc7f(0x153)](_0x4cf27d,_0x8f4c1d,{'value':_0x175e0b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4cf27d[_0x8f4c1d]=_0x175e0b,_0x4cf27d;}let g=class extends t[_0x5669ad(0x144)]{constructor(_0x3d933d=c,_0x2c990d,_0x258fa9){const _0x3ea775=_0x5669ad;super(),this[_0x3ea775(0x111)]=_0x3d933d,this[_0x3ea775(0x134)]=_0x2c990d,this[_0x3ea775(0x14b)]=_0x258fa9;let {..._0xc059d9}=(0x0,t[_0x3ea775(0x113)])({},c,this[_0x3ea775(0x111)]);this['_configService'][_0x3ea775(0x123)]('collaboration-client-node.config',_0xc059d9);}[_0x5669ad(0x140)](){this['_registerDependencies']();}[_0x5669ad(0x14c)](){const _0x180ac9=_0x5669ad;(0x0,t[_0x180ac9(0x145)])(this[_0x180ac9(0x14b)],[[n[_0x180ac9(0x11c)],{'useClass':d}]]);}};h(g,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),h(g,_0x5669ad(0x139),o),h(g,_0x5669ad(0x116),s),g=u([(0x0,t[_0x5669ad(0x118)])(e[_0x5669ad(0x150)]),l(0x1,t[_0x5669ad(0x10f)]),l(0x2,(0x0,t[_0x5669ad(0x143)])(t[_0x5669ad(0x152)]))],g);let _=class extends e[_0x5669ad(0x14d)]{constructor(_0x48ed90,_0x45c603,_0x19f736,_0x2a6c38,_0x17c399){const _0x140c40=_0x5669ad;super(_0x48ed90,_0x45c603,_0x19f736,_0x2a6c38,_0x17c399);let _0x4c7855=this[_0x140c40(0x134)][_0x140c40(0x13a)](e[_0x140c40(0x147)]);this[_0x140c40(0x115)][_0x140c40(0x14e)]({'interceptor':(_0x553779,_0x4f7cc7)=>{const _0x13d81=_0x140c40;let _0x38e53f=_0x553779[_0x13d81(0x14f)];if(_0x4c7855!=null&&_0x4c7855[_0x13d81(0x120)]){for(let _0x291bda in _0x4c7855[_0x13d81(0x120)])_0x38e53f['set'](_0x291bda,_0x4c7855[_0x13d81(0x120)][_0x291bda]);}return _0x4f7cc7(_0x553779);}});}async[_0x5669ad(0x130)](_0x3d441c){const _0xd491a=_0x5669ad;return this[_0xd491a(0x12b)](_0x3d441c);}};_=u([l(0x0,(0x0,t['Inject'])(t['Injector'])),l(0x1,(0x0,t['Inject'])(n[_0x5669ad(0x12a)])),l(0x2,t[_0x5669ad(0x10f)]),l(0x3,t['ILogService']),l(0x4,a['ISnapshotServerService'])],_),Object[_0x5669ad(0x153)](exports,_0x5669ad(0x10e),{'enumerable':!0x0,'get':function(){return _;}}),Object['defineProperty'](exports,_0x5669ad(0x131),{'enumerable':!0x0,'get':function(){return g;}});
1
+ const _0x243580=_0x2fd1;(function(_0x4c8673,_0x1869e0){const _0x440fb=_0x2fd1,_0x346f1a=_0x4c8673();while(!![]){try{const _0x8e174c=-parseInt(_0x440fb(0x190))/0x1*(-parseInt(_0x440fb(0x15c))/0x2)+-parseInt(_0x440fb(0x18b))/0x3*(parseInt(_0x440fb(0x191))/0x4)+parseInt(_0x440fb(0x161))/0x5+parseInt(_0x440fb(0x18c))/0x6+-parseInt(_0x440fb(0x186))/0x7*(-parseInt(_0x440fb(0x19a))/0x8)+parseInt(_0x440fb(0x185))/0x9*(parseInt(_0x440fb(0x19b))/0xa)+-parseInt(_0x440fb(0x194))/0xb;if(_0x8e174c===_0x1869e0)break;else _0x346f1a['push'](_0x346f1a['shift']());}catch(_0x44e8c4){_0x346f1a['push'](_0x346f1a['shift']());}}}(_0xb78f,0x7b9d0),Object[_0x243580(0x162)](exports,Symbol['toStringTag'],{'value':_0x243580(0x192)}));function _0xb78f(){const _0x49d896=['onStarting','ISocketService','createSocket','collaboration-client-node.config','Inject','_config','send','ISnapshotServerService','DisposableCollection','registerHTTPInterceptor','open','toDisposable','symbol','_registerDependencies','customHeaders','UniverCollaborationClientNodePlugin','constructor','_httpService','Disposable','getConfig','length','UniverCollaborationPlugin','add','1.0.0-beta.0','UniverLicensePlugin','set','close','next','iterator','11403bTCekh','7XPFmAQ','IConfigService','object','Injector','string','178806aqlaAq','1358118DHRzXf','Observable','Plugin','function','23wACLxs','32xpgmQV','Module','UniverNetworkPlugin','26945556lWrZBE','share','prototype','pipe','default','_injector','6554120GKKNvO','7140cxUBTz','getOwnPropertyDescriptor','@univerjs-pro/collaboration-client-node','addEventListener','setConfig','removeEventListener','call','49814yVQzPx','_configService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','message','_doCreateSocket','4548075EdAzJL','defineProperty','pluginName','decorate','toPrimitive','error','NodeCollaborationSocketService'];_0xb78f=function(){return _0x49d896;};return _0xb78f();}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=_0x243580(0x157),c=_0x243580(0x17f);const l={};function u(_0x498a57,_0xcb1221){return function(_0x2bac66,_0x4f9100){_0xcb1221(_0x2bac66,_0x4f9100,_0x498a57);};}function d(_0x4056ea,_0x2879c1,_0x1c7366,_0x5998b4){const _0x55d3c7=_0x243580;var _0x244c89=arguments[_0x55d3c7(0x17c)],_0x15945=_0x244c89<0x3?_0x2879c1:_0x5998b4===null?_0x5998b4=Object[_0x55d3c7(0x156)](_0x2879c1,_0x1c7366):_0x5998b4,_0x2847be;if(typeof Reflect=='object'&&typeof Reflect[_0x55d3c7(0x164)]==_0x55d3c7(0x18f))_0x15945=Reflect['decorate'](_0x4056ea,_0x2879c1,_0x1c7366,_0x5998b4);else{for(var _0x44c0e7=_0x4056ea[_0x55d3c7(0x17c)]-0x1;_0x44c0e7>=0x0;_0x44c0e7--)(_0x2847be=_0x4056ea[_0x44c0e7])&&(_0x15945=(_0x244c89<0x3?_0x2847be(_0x15945):_0x244c89>0x3?_0x2847be(_0x2879c1,_0x1c7366,_0x15945):_0x2847be(_0x2879c1,_0x1c7366))||_0x15945);}return _0x244c89>0x3&&_0x15945&&Object[_0x55d3c7(0x162)](_0x2879c1,_0x1c7366,_0x15945),_0x15945;}let f=class extends r[_0x243580(0x17a)]{constructor(_0x1b3efe){const _0x2b9d9f=_0x243580;super(),this[_0x2b9d9f(0x15d)]=_0x1b3efe;}['createSocket'](_0x369ca5){const _0x2ff893=_0x243580;var _0x1e39a0;let _0x364e9b=((_0x1e39a0=this[_0x2ff893(0x15d)][_0x2ff893(0x17b)](t[_0x2ff893(0x15e)]))==null?void 0x0:_0x1e39a0[_0x2ff893(0x176)])||{};try{let _0x554c3c=new o['WebSocket'](_0x369ca5,{'headers':{..._0x364e9b}}),_0x821771=new r[(_0x2ff893(0x170))]();return{'URL':_0x369ca5,'close':(_0x316392,_0x2d1960)=>{const _0x39dc2e=_0x2ff893;_0x554c3c[_0x39dc2e(0x182)](_0x316392,_0x2d1960),_0x821771['dispose']();},'send':_0x7f0080=>{const _0x4be711=_0x2ff893;_0x554c3c[_0x4be711(0x16e)](_0x7f0080);},'open$':new a[(_0x2ff893(0x18d))](_0x119107=>{const _0x511eb3=_0x2ff893;let _0x4287e1=_0x8b625d=>_0x119107['next'](_0x8b625d);_0x554c3c[_0x511eb3(0x158)](_0x511eb3(0x172),_0x4287e1),_0x821771[_0x511eb3(0x17e)]((0x0,r[_0x511eb3(0x173)])(()=>_0x554c3c[_0x511eb3(0x15a)](_0x511eb3(0x172),_0x4287e1)));})[_0x2ff893(0x197)]((0x0,a['share'])()),'close$':new a[(_0x2ff893(0x18d))](_0x5ded9b=>{const _0x4b70d2=_0x2ff893;let _0x4e1332=_0x3b1beb=>_0x5ded9b[_0x4b70d2(0x183)](_0x3b1beb);_0x554c3c[_0x4b70d2(0x158)](_0x4b70d2(0x182),_0x4e1332),_0x821771[_0x4b70d2(0x17e)]((0x0,r[_0x4b70d2(0x173)])(()=>_0x554c3c[_0x4b70d2(0x15a)](_0x4b70d2(0x182),_0x4e1332)));})[_0x2ff893(0x197)]((0x0,a['share'])()),'error$':new a[(_0x2ff893(0x18d))](_0x31c106=>{const _0xa929a6=_0x2ff893;let _0x5e3e91=_0xcb5305=>_0x31c106[_0xa929a6(0x183)](_0xcb5305);_0x554c3c[_0xa929a6(0x158)](_0xa929a6(0x166),_0x5e3e91),_0x821771[_0xa929a6(0x17e)]((0x0,r['toDisposable'])(()=>_0x554c3c[_0xa929a6(0x15a)]('error',_0x5e3e91)));})['pipe']((0x0,a[_0x2ff893(0x195)])()),'message$':new a['Observable'](_0x53ee9a=>{const _0x51ad33=_0x2ff893;let _0x12b7a7=_0x55a903=>_0x53ee9a['next'](_0x55a903);_0x554c3c[_0x51ad33(0x158)](_0x51ad33(0x15f),_0x12b7a7),_0x821771[_0x51ad33(0x17e)]((0x0,r[_0x51ad33(0x173)])(()=>_0x554c3c[_0x51ad33(0x15a)](_0x51ad33(0x15f),_0x12b7a7)));})['pipe']((0x0,a[_0x2ff893(0x195)])())};}catch(_0x130aad){return console[_0x2ff893(0x166)](_0x130aad),null;}}};f=d([u(0x0,r[_0x243580(0x187)])],f);function p(_0x4063d3){'@babel/helpers - typeof';const _0x447853=_0x243580;return p=typeof Symbol=='function'&&typeof Symbol[_0x447853(0x184)]==_0x447853(0x174)?function(_0x542def){return typeof _0x542def;}:function(_0x30c6eb){const _0x56aab8=_0x447853;return _0x30c6eb&&typeof Symbol==_0x56aab8(0x18f)&&_0x30c6eb[_0x56aab8(0x178)]===Symbol&&_0x30c6eb!==Symbol[_0x56aab8(0x196)]?'symbol':typeof _0x30c6eb;},p(_0x4063d3);}function m(_0x5b6b9e,_0x7b9720){const _0x1e5f0a=_0x243580;if(p(_0x5b6b9e)!=_0x1e5f0a(0x188)||!_0x5b6b9e)return _0x5b6b9e;var _0x47884c=_0x5b6b9e[Symbol[_0x1e5f0a(0x165)]];if(_0x47884c!==void 0x0){var _0x12c132=_0x47884c[_0x1e5f0a(0x15b)](_0x5b6b9e,_0x7b9720||_0x1e5f0a(0x198));if(p(_0x12c132)!=_0x1e5f0a(0x188))return _0x12c132;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x7b9720==='string'?String:Number)(_0x5b6b9e);}function h(_0x48d707){const _0x740da9=_0x243580;var _0x44f6d9=m(_0x48d707,_0x740da9(0x18a));return p(_0x44f6d9)==_0x740da9(0x174)?_0x44f6d9:_0x44f6d9+'';}function g(_0x8487c9,_0x1912dc,_0x35bead){return(_0x1912dc=h(_0x1912dc))in _0x8487c9?Object['defineProperty'](_0x8487c9,_0x1912dc,{'value':_0x35bead,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x8487c9[_0x1912dc]=_0x35bead,_0x8487c9;}let _=class extends r[_0x243580(0x18e)]{constructor(_0x4cbb02=l,_0xb53873,_0x5b1a00){const _0x36e2e3=_0x243580;super(),this[_0x36e2e3(0x16d)]=_0x4cbb02,this[_0x36e2e3(0x15d)]=_0xb53873,this[_0x36e2e3(0x199)]=_0x5b1a00;let {..._0x8544c5}=(0x0,r['merge'])({},l,this[_0x36e2e3(0x16d)]);this[_0x36e2e3(0x15d)][_0x36e2e3(0x159)](_0x36e2e3(0x16b),_0x8544c5);}[_0x243580(0x168)](){const _0x78773=_0x243580;this[_0x78773(0x175)]();}[_0x243580(0x175)](){const _0x2c164f=_0x243580;(0x0,r['registerDependencies'])(this[_0x2c164f(0x199)],[[i[_0x2c164f(0x169)],{'useClass':f}]]);}};g(_,_0x243580(0x163),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),g(_,'packageName',s),g(_,'version',c),_=d([(0x0,r['DependentOn'])(n[_0x243580(0x180)],i[_0x243580(0x193)],e[_0x243580(0x17d)],t['UniverCollaborationClientPlugin']),u(0x1,r['IConfigService']),u(0x2,(0x0,r[_0x243580(0x16c)])(r[_0x243580(0x189)]))],_);let v=class extends t['CollaborationSocketService']{constructor(_0x2b25b2,_0x411936,_0x1ce98d,_0x3dcace,_0x5b059b){const _0x2af245=_0x243580;super(_0x2b25b2,_0x411936,_0x1ce98d,_0x3dcace,_0x5b059b);let _0x4acf38=this[_0x2af245(0x15d)]['getConfig'](t[_0x2af245(0x15e)]);this[_0x2af245(0x179)][_0x2af245(0x171)]({'interceptor':(_0x4d13c4,_0x56c752)=>{const _0x39fbdb=_0x2af245;let _0x5b661f=_0x4d13c4['headers'];if(_0x4acf38!=null&&_0x4acf38['customHeaders']){for(let _0x7bf623 in _0x4acf38[_0x39fbdb(0x176)])_0x5b661f[_0x39fbdb(0x181)](_0x7bf623,_0x4acf38[_0x39fbdb(0x176)][_0x7bf623]);}return _0x56c752(_0x4d13c4);}});}async[_0x243580(0x16a)](_0x3e23df){const _0x29081d=_0x243580;return this[_0x29081d(0x160)](_0x3e23df);}};function _0x2fd1(_0x510627,_0xcba76f){_0x510627=_0x510627-0x156;const _0xb78fac=_0xb78f();let _0x2fd15a=_0xb78fac[_0x510627];return _0x2fd15a;}v=d([u(0x0,(0x0,r[_0x243580(0x16c)])(r[_0x243580(0x189)])),u(0x1,(0x0,r[_0x243580(0x16c)])(i['HTTPService'])),u(0x2,r[_0x243580(0x187)]),u(0x3,r['ILogService']),u(0x4,e[_0x243580(0x16f)])],v),Object[_0x243580(0x162)](exports,_0x243580(0x167),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x243580(0x162)](exports,_0x243580(0x177),{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5cda16=_0x20c8;(function(_0x2bbdb5,_0x55cc11){const _0x2d5316=_0x20c8,_0x313545=_0x2bbdb5();while(!![]){try{const _0x3fd490=-parseInt(_0x2d5316(0x189))/0x1*(-parseInt(_0x2d5316(0x1af))/0x2)+-parseInt(_0x2d5316(0x1ae))/0x3*(parseInt(_0x2d5316(0x1a3))/0x4)+parseInt(_0x2d5316(0x1b3))/0x5*(-parseInt(_0x2d5316(0x18b))/0x6)+-parseInt(_0x2d5316(0x1a9))/0x7+-parseInt(_0x2d5316(0x1b4))/0x8+parseInt(_0x2d5316(0x18e))/0x9+parseInt(_0x2d5316(0x1ac))/0xa;if(_0x3fd490===_0x55cc11)break;else _0x313545['push'](_0x313545['shift']());}catch(_0x58f603){_0x313545['push'](_0x313545['shift']());}}}(_0x307f,0xbd590));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1e26a3,CollaborationSocketService as _0x34cc33,UniverCollaborationClientPlugin as _0x179376}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x2f70f7,Disposable as _0x274d29,DisposableCollection as _0x4f6dd7,IConfigService as _0x16d363,ILogService as _0x5c3772,Inject as _0x499c14,Injector as _0x207556,Plugin as _0x51ac31,merge as _0x40abab,registerDependencies as _0x1a53a2,toDisposable as _0x274a58}from'@univerjs/core';import{HTTPService as _0x988b6c,ISocketService as _0x5d3214}from'@univerjs/network';import{Observable as _0x706c8a,share as _0x96d6e5}from'rxjs';import{WebSocket as _0x566053}from'ws';function _0x307f(){const _0x50ab35=['defineProperty','createSocket','onStarting','customHeaders','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2580592KAyVic','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','add','12761690GExUjd','packageName','3JXqYjx','2cgcpYX','getConfig','next','_httpService','65hnUslw','10049136jlmHOh','pluginName','string','_doCreateSocket','call','addEventListener','1067908xGhExS','error','267114ietTgI','function','close','13291911AUcuHb','_config','object','default','symbol','decorate','_registerDependencies','_injector','getOwnPropertyDescriptor','@univerjs-pro/collaboration-client-node','prototype','registerHTTPInterceptor','toPrimitive','_configService','length','send','removeEventListener','1.0.0-alpha.7','headers','constructor','pipe','3367372ctaidv'];_0x307f=function(){return _0x50ab35;};return _0x307f();}import{ISnapshotServerService as _0x1e8a53}from'@univerjs-pro/collaboration';var b=_0x5cda16(0x197),x=_0x5cda16(0x19f);const S={};function _0x20c8(_0x223b98,_0x2f6231){_0x223b98=_0x223b98-0x188;const _0x307f81=_0x307f();let _0x20c8e3=_0x307f81[_0x223b98];return _0x20c8e3;}function C(_0x4733b5,_0x553cb8){return function(_0x54741e,_0x4c92dd){_0x553cb8(_0x54741e,_0x4c92dd,_0x4733b5);};}function w(_0x483c9b,_0x5f6a43,_0x516acc,_0x4a96a5){const _0x488a07=_0x5cda16;var _0xb11651=arguments[_0x488a07(0x19c)],_0xfc6dae=_0xb11651<0x3?_0x5f6a43:_0x4a96a5===null?_0x4a96a5=Object[_0x488a07(0x196)](_0x5f6a43,_0x516acc):_0x4a96a5,_0x570709;if(typeof Reflect==_0x488a07(0x190)&&typeof Reflect[_0x488a07(0x193)]==_0x488a07(0x18c))_0xfc6dae=Reflect[_0x488a07(0x193)](_0x483c9b,_0x5f6a43,_0x516acc,_0x4a96a5);else{for(var _0x39cd85=_0x483c9b[_0x488a07(0x19c)]-0x1;_0x39cd85>=0x0;_0x39cd85--)(_0x570709=_0x483c9b[_0x39cd85])&&(_0xfc6dae=(_0xb11651<0x3?_0x570709(_0xfc6dae):_0xb11651>0x3?_0x570709(_0x5f6a43,_0x516acc,_0xfc6dae):_0x570709(_0x5f6a43,_0x516acc))||_0xfc6dae);}return _0xb11651>0x3&&_0xfc6dae&&Object[_0x488a07(0x1a4)](_0x5f6a43,_0x516acc,_0xfc6dae),_0xfc6dae;}let T=class extends _0x274d29{constructor(_0x5bb3b2){const _0x4db1ab=_0x5cda16;super(),this[_0x4db1ab(0x19b)]=_0x5bb3b2;}['createSocket'](_0x247160){const _0x3e6da3=_0x5cda16;var _0x9b4f02;let _0x53b27b=((_0x9b4f02=this['_configService'][_0x3e6da3(0x1b0)](_0x1e26a3))==null?void 0x0:_0x9b4f02[_0x3e6da3(0x1a7)])||{};try{let _0x2516d5=new _0x566053(_0x247160,{'headers':{..._0x53b27b}}),_0x194bdc=new _0x4f6dd7();return{'URL':_0x247160,'close':(_0x3e6ef2,_0x3e4cca)=>{_0x2516d5['close'](_0x3e6ef2,_0x3e4cca),_0x194bdc['dispose']();},'send':_0x33bb57=>{const _0xcf954b=_0x3e6da3;_0x2516d5[_0xcf954b(0x19d)](_0x33bb57);},'open$':new _0x706c8a(_0x4c8d04=>{const _0x1f88a5=_0x3e6da3;let _0x4056e4=_0x1028a6=>_0x4c8d04[_0x1f88a5(0x1b1)](_0x1028a6);_0x2516d5[_0x1f88a5(0x188)]('open',_0x4056e4),_0x194bdc[_0x1f88a5(0x1ab)](_0x274a58(()=>_0x2516d5[_0x1f88a5(0x19e)]('open',_0x4056e4)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'close$':new _0x706c8a(_0x3e8f83=>{const _0x4b0393=_0x3e6da3;let _0x4bbd2a=_0x1a9744=>_0x3e8f83['next'](_0x1a9744);_0x2516d5[_0x4b0393(0x188)](_0x4b0393(0x18d),_0x4bbd2a),_0x194bdc['add'](_0x274a58(()=>_0x2516d5[_0x4b0393(0x19e)](_0x4b0393(0x18d),_0x4bbd2a)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'error$':new _0x706c8a(_0x147046=>{const _0x473d15=_0x3e6da3;let _0x26bd70=_0x505b77=>_0x147046[_0x473d15(0x1b1)](_0x505b77);_0x2516d5[_0x473d15(0x188)](_0x473d15(0x18a),_0x26bd70),_0x194bdc[_0x473d15(0x1ab)](_0x274a58(()=>_0x2516d5[_0x473d15(0x19e)](_0x473d15(0x18a),_0x26bd70)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'message$':new _0x706c8a(_0x1f1bd6=>{const _0x4d9413=_0x3e6da3;let _0x5b9e0d=_0x1379e2=>_0x1f1bd6[_0x4d9413(0x1b1)](_0x1379e2);_0x2516d5['addEventListener']('message',_0x5b9e0d),_0x194bdc['add'](_0x274a58(()=>_0x2516d5['removeEventListener']('message',_0x5b9e0d)));})['pipe'](_0x96d6e5())};}catch(_0x4c1fe9){return console['error'](_0x4c1fe9),null;}}};T=w([C(0x0,_0x16d363)],T);function E(_0x6fb48d){'@babel/helpers - typeof';return E=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x80ce80){return typeof _0x80ce80;}:function(_0x4db599){const _0xf0c7e7=_0x20c8;return _0x4db599&&typeof Symbol==_0xf0c7e7(0x18c)&&_0x4db599[_0xf0c7e7(0x1a1)]===Symbol&&_0x4db599!==Symbol[_0xf0c7e7(0x198)]?_0xf0c7e7(0x192):typeof _0x4db599;},E(_0x6fb48d);}function D(_0x30b10d,_0x9ac783){const _0x8a51b0=_0x5cda16;if(E(_0x30b10d)!='object'||!_0x30b10d)return _0x30b10d;var _0xcc83b1=_0x30b10d[Symbol[_0x8a51b0(0x19a)]];if(_0xcc83b1!==void 0x0){var _0x4a08fd=_0xcc83b1[_0x8a51b0(0x1b8)](_0x30b10d,_0x9ac783||_0x8a51b0(0x191));if(E(_0x4a08fd)!=_0x8a51b0(0x190))return _0x4a08fd;throw TypeError(_0x8a51b0(0x1a8));}return(_0x9ac783===_0x8a51b0(0x1b6)?String:Number)(_0x30b10d);}function O(_0x143c5d){const _0x2a367f=_0x5cda16;var _0x3cec51=D(_0x143c5d,_0x2a367f(0x1b6));return E(_0x3cec51)=='symbol'?_0x3cec51:_0x3cec51+'';}function k(_0x3f8e54,_0x120ad0,_0x1d5a06){return(_0x120ad0=O(_0x120ad0))in _0x3f8e54?Object['defineProperty'](_0x3f8e54,_0x120ad0,{'value':_0x1d5a06,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f8e54[_0x120ad0]=_0x1d5a06,_0x3f8e54;}let A=class extends _0x51ac31{constructor(_0x2430c9=S,_0x145b45,_0x20fb2f){const _0x15638c=_0x5cda16;super(),this['_config']=_0x2430c9,this['_configService']=_0x145b45,this[_0x15638c(0x195)]=_0x20fb2f;let {..._0x394c74}=_0x40abab({},S,this[_0x15638c(0x18f)]);this['_configService']['setConfig']('collaboration-client-node.config',_0x394c74);}[_0x5cda16(0x1a6)](){this['_registerDependencies']();}[_0x5cda16(0x194)](){const _0x71e4c0=_0x5cda16;_0x1a53a2(this[_0x71e4c0(0x195)],[[_0x5d3214,{'useClass':T}]]);}};k(A,_0x5cda16(0x1b5),_0x5cda16(0x1aa)),k(A,_0x5cda16(0x1ad),b),k(A,'version',x),A=w([_0x2f70f7(_0x179376),C(0x1,_0x16d363),C(0x2,_0x499c14(_0x207556))],A);let j=class extends _0x34cc33{constructor(_0x181bc7,_0x4ba23e,_0x44c783,_0x47725a,_0x43f43b){const _0x4e1a4f=_0x5cda16;super(_0x181bc7,_0x4ba23e,_0x44c783,_0x47725a,_0x43f43b);let _0x126b21=this[_0x4e1a4f(0x19b)]['getConfig'](_0x1e26a3);this[_0x4e1a4f(0x1b2)][_0x4e1a4f(0x199)]({'interceptor':(_0xeb0a3,_0x2cdec0)=>{const _0x15eceb=_0x4e1a4f;let _0x5a4da4=_0xeb0a3[_0x15eceb(0x1a0)];if(_0x126b21!=null&&_0x126b21[_0x15eceb(0x1a7)]){for(let _0x5ede87 in _0x126b21[_0x15eceb(0x1a7)])_0x5a4da4['set'](_0x5ede87,_0x126b21[_0x15eceb(0x1a7)][_0x5ede87]);}return _0x2cdec0(_0xeb0a3);}});}async[_0x5cda16(0x1a5)](_0x1781dd){const _0x519268=_0x5cda16;return this[_0x519268(0x1b7)](_0x1781dd);}};j=w([C(0x0,_0x499c14(_0x207556)),C(0x1,_0x499c14(_0x988b6c)),C(0x2,_0x16d363),C(0x3,_0x5c3772),C(0x4,_0x1e8a53)],j);export{j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x3b6ca0=_0x387f;(function(_0x234dd1,_0x56b1d7){const _0x147fb7=_0x387f,_0x55e851=_0x234dd1();while(!![]){try{const _0x24c2bf=-parseInt(_0x147fb7(0x10d))/0x1+-parseInt(_0x147fb7(0xfc))/0x2+-parseInt(_0x147fb7(0xf8))/0x3+parseInt(_0x147fb7(0xe7))/0x4*(parseInt(_0x147fb7(0x10b))/0x5)+parseInt(_0x147fb7(0x107))/0x6*(parseInt(_0x147fb7(0xf7))/0x7)+parseInt(_0x147fb7(0xf4))/0x8+parseInt(_0x147fb7(0xf0))/0x9;if(_0x24c2bf===_0x56b1d7)break;else _0x55e851['push'](_0x55e851['shift']());}catch(_0x333d51){_0x55e851['push'](_0x55e851['shift']());}}}(_0x2cce,0x1d1ae));import{ISnapshotServerService as _0x273df5,UniverCollaborationPlugin as _0x507fb4}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x57ca1b,CollaborationSocketService as _0x1227d2,UniverCollaborationClientPlugin as _0x113637}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x4191f7}from'@univerjs-pro/license';import{DependentOn as _0x1b1156,Disposable as _0x4e0a69,DisposableCollection as _0xfed7b4,IConfigService as _0x3b6310,ILogService as _0x3a20b0,Inject as _0x418e9c,Injector as _0x10c1dd,Plugin as _0x4494c0,merge as _0xbbbd18,registerDependencies as _0x565b92,toDisposable as _0x4ee5bb}from'@univerjs/core';import{HTTPService as _0x245e64,ISocketService as _0x379874,UniverNetworkPlugin as _0x1b40ae}from'@univerjs/network';import{Observable as _0x11449a,share as _0x2d17be}from'rxjs';import{WebSocket as _0x229b7f}from'ws';var C=_0x3b6ca0(0x10f),w=_0x3b6ca0(0xed);const T={};function E(_0x17f717,_0x4d19b0){return function(_0x3b5322,_0x80bde7){_0x4d19b0(_0x3b5322,_0x80bde7,_0x17f717);};}function D(_0x3de28b,_0x5806ba,_0x2b13b7,_0x44bb5d){const _0x3e50aa=_0x3b6ca0;var _0x53e5b0=arguments[_0x3e50aa(0xfb)],_0x5eb9a7=_0x53e5b0<0x3?_0x5806ba:_0x44bb5d===null?_0x44bb5d=Object[_0x3e50aa(0xf6)](_0x5806ba,_0x2b13b7):_0x44bb5d,_0x11b3ec;if(typeof Reflect=='object'&&typeof Reflect[_0x3e50aa(0x106)]==_0x3e50aa(0xf9))_0x5eb9a7=Reflect[_0x3e50aa(0x106)](_0x3de28b,_0x5806ba,_0x2b13b7,_0x44bb5d);else{for(var _0x3a17a2=_0x3de28b[_0x3e50aa(0xfb)]-0x1;_0x3a17a2>=0x0;_0x3a17a2--)(_0x11b3ec=_0x3de28b[_0x3a17a2])&&(_0x5eb9a7=(_0x53e5b0<0x3?_0x11b3ec(_0x5eb9a7):_0x53e5b0>0x3?_0x11b3ec(_0x5806ba,_0x2b13b7,_0x5eb9a7):_0x11b3ec(_0x5806ba,_0x2b13b7))||_0x5eb9a7);}return _0x53e5b0>0x3&&_0x5eb9a7&&Object['defineProperty'](_0x5806ba,_0x2b13b7,_0x5eb9a7),_0x5eb9a7;}let O=class extends _0x4e0a69{constructor(_0x45859f){const _0x3f9f3a=_0x3b6ca0;super(),this[_0x3f9f3a(0xf3)]=_0x45859f;}[_0x3b6ca0(0xea)](_0x350817){const _0x556f5b=_0x3b6ca0;var _0x2de61a;let _0x469e56=((_0x2de61a=this['_configService'][_0x556f5b(0xee)](_0x57ca1b))==null?void 0x0:_0x2de61a[_0x556f5b(0x115)])||{};try{let _0x45e9c8=new _0x229b7f(_0x350817,{'headers':{..._0x469e56}}),_0x18ebd9=new _0xfed7b4();return{'URL':_0x350817,'close':(_0x1a2666,_0x4b8ef9)=>{const _0x227848=_0x556f5b;_0x45e9c8[_0x227848(0x103)](_0x1a2666,_0x4b8ef9),_0x18ebd9[_0x227848(0xf5)]();},'send':_0x47bbbc=>{_0x45e9c8['send'](_0x47bbbc);},'open$':new _0x11449a(_0x566e24=>{const _0x156459=_0x556f5b;let _0x5c2029=_0x512c5a=>_0x566e24[_0x156459(0x104)](_0x512c5a);_0x45e9c8[_0x156459(0x117)](_0x156459(0xec),_0x5c2029),_0x18ebd9['add'](_0x4ee5bb(()=>_0x45e9c8['removeEventListener'](_0x156459(0xec),_0x5c2029)));})['pipe'](_0x2d17be()),'close$':new _0x11449a(_0x139617=>{const _0x3ca06a=_0x556f5b;let _0x4ce0b3=_0x526f85=>_0x139617[_0x3ca06a(0x104)](_0x526f85);_0x45e9c8[_0x3ca06a(0x117)](_0x3ca06a(0x103),_0x4ce0b3),_0x18ebd9['add'](_0x4ee5bb(()=>_0x45e9c8[_0x3ca06a(0xe8)]('close',_0x4ce0b3)));})[_0x556f5b(0xe9)](_0x2d17be()),'error$':new _0x11449a(_0x5de6b9=>{const _0x15ab52=_0x556f5b;let _0x9eacef=_0x592a66=>_0x5de6b9['next'](_0x592a66);_0x45e9c8[_0x15ab52(0x117)](_0x15ab52(0x100),_0x9eacef),_0x18ebd9[_0x15ab52(0xe5)](_0x4ee5bb(()=>_0x45e9c8[_0x15ab52(0xe8)](_0x15ab52(0x100),_0x9eacef)));})[_0x556f5b(0xe9)](_0x2d17be()),'message$':new _0x11449a(_0x2b3fcf=>{const _0x1fa9ae=_0x556f5b;let _0x59a683=_0x4b0f45=>_0x2b3fcf['next'](_0x4b0f45);_0x45e9c8[_0x1fa9ae(0x117)](_0x1fa9ae(0x114),_0x59a683),_0x18ebd9[_0x1fa9ae(0xe5)](_0x4ee5bb(()=>_0x45e9c8['removeEventListener'](_0x1fa9ae(0x114),_0x59a683)));})['pipe'](_0x2d17be())};}catch(_0x41295c){return console[_0x556f5b(0x100)](_0x41295c),null;}}};function _0x387f(_0x3e3329,_0x25026c){_0x3e3329=_0x3e3329-0xe5;const _0x2cce3c=_0x2cce();let _0x387f1a=_0x2cce3c[_0x3e3329];return _0x387f1a;}O=D([E(0x0,_0x3b6310)],O);function _0x2cce(){const _0x1eee20=['default','collaboration-client-node.config','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','message','customHeaders','prototype','addEventListener','packageName','add','call','4lgHyrQ','removeEventListener','pipe','createSocket','defineProperty','open','1.0.0-beta.0','getConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1211112neAjqn','_injector','string','_configService','650504ZsrKht','dispose','getOwnPropertyDescriptor','49154CCqxjE','580434kHdsAR','function','pluginName','length','18280zcHylc','setConfig','headers','symbol','error','onStarting','_registerDependencies','close','next','_httpService','decorate','12Mfdlmp','version','toPrimitive','_config','973740nxhfVJ','iterator','102841iIBWgv','object','@univerjs-pro/collaboration-client-node','registerHTTPInterceptor'];_0x2cce=function(){return _0x1eee20;};return _0x2cce();}function k(_0x4126f8){'@babel/helpers - typeof';const _0x192d01=_0x3b6ca0;return k=typeof Symbol=='function'&&typeof Symbol[_0x192d01(0x10c)]==_0x192d01(0xff)?function(_0xe3553d){return typeof _0xe3553d;}:function(_0x1fd918){const _0x5032a8=_0x192d01;return _0x1fd918&&typeof Symbol==_0x5032a8(0xf9)&&_0x1fd918['constructor']===Symbol&&_0x1fd918!==Symbol[_0x5032a8(0x116)]?_0x5032a8(0xff):typeof _0x1fd918;},k(_0x4126f8);}function A(_0x39db12,_0x258d7a){const _0x109c17=_0x3b6ca0;if(k(_0x39db12)!=_0x109c17(0x10e)||!_0x39db12)return _0x39db12;var _0x90ac99=_0x39db12[Symbol[_0x109c17(0x109)]];if(_0x90ac99!==void 0x0){var _0x1c3e9a=_0x90ac99[_0x109c17(0xe6)](_0x39db12,_0x258d7a||_0x109c17(0x111));if(k(_0x1c3e9a)!=_0x109c17(0x10e))return _0x1c3e9a;throw TypeError(_0x109c17(0xef));}return(_0x258d7a===_0x109c17(0xf2)?String:Number)(_0x39db12);}function j(_0x31857b){const _0x131c47=_0x3b6ca0;var _0x8d2ba3=A(_0x31857b,_0x131c47(0xf2));return k(_0x8d2ba3)==_0x131c47(0xff)?_0x8d2ba3:_0x8d2ba3+'';}function M(_0x2a65d6,_0x29a12a,_0x542308){const _0x57a349=_0x3b6ca0;return(_0x29a12a=j(_0x29a12a))in _0x2a65d6?Object[_0x57a349(0xeb)](_0x2a65d6,_0x29a12a,{'value':_0x542308,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2a65d6[_0x29a12a]=_0x542308,_0x2a65d6;}let N=class extends _0x4494c0{constructor(_0x171a67=T,_0x3461d5,_0x10c464){const _0x28d3a0=_0x3b6ca0;super(),this[_0x28d3a0(0x10a)]=_0x171a67,this[_0x28d3a0(0xf3)]=_0x3461d5,this[_0x28d3a0(0xf1)]=_0x10c464;let {..._0x2d9c22}=_0xbbbd18({},T,this[_0x28d3a0(0x10a)]);this['_configService'][_0x28d3a0(0xfd)](_0x28d3a0(0x112),_0x2d9c22);}[_0x3b6ca0(0x101)](){const _0x2ca10b=_0x3b6ca0;this[_0x2ca10b(0x102)]();}['_registerDependencies'](){const _0xd8d326=_0x3b6ca0;_0x565b92(this[_0xd8d326(0xf1)],[[_0x379874,{'useClass':O}]]);}};M(N,_0x3b6ca0(0xfa),_0x3b6ca0(0x113)),M(N,_0x3b6ca0(0x118),C),M(N,_0x3b6ca0(0x108),w),N=D([_0x1b1156(_0x4191f7,_0x1b40ae,_0x507fb4,_0x113637),E(0x1,_0x3b6310),E(0x2,_0x418e9c(_0x10c1dd))],N);let P=class extends _0x1227d2{constructor(_0x27d442,_0x1e5594,_0x17f553,_0x59b4ea,_0x59e457){const _0x1a85d2=_0x3b6ca0;super(_0x27d442,_0x1e5594,_0x17f553,_0x59b4ea,_0x59e457);let _0x43bc03=this[_0x1a85d2(0xf3)][_0x1a85d2(0xee)](_0x57ca1b);this[_0x1a85d2(0x105)][_0x1a85d2(0x110)]({'interceptor':(_0x29cb17,_0x2913d3)=>{const _0x581781=_0x1a85d2;let _0xacc05d=_0x29cb17[_0x581781(0xfe)];if(_0x43bc03!=null&&_0x43bc03[_0x581781(0x115)]){for(let _0x18f79c in _0x43bc03[_0x581781(0x115)])_0xacc05d['set'](_0x18f79c,_0x43bc03[_0x581781(0x115)][_0x18f79c]);}return _0x2913d3(_0x29cb17);}});}async[_0x3b6ca0(0xea)](_0x2058c5){return this['_doCreateSocket'](_0x2058c5);}};P=D([E(0x0,_0x418e9c(_0x10c1dd)),E(0x1,_0x418e9c(_0x245e64)),E(0x2,_0x3b6310),E(0x3,_0x3a20b0),E(0x4,_0x273df5)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5cda16=_0x20c8;(function(_0x2bbdb5,_0x55cc11){const _0x2d5316=_0x20c8,_0x313545=_0x2bbdb5();while(!![]){try{const _0x3fd490=-parseInt(_0x2d5316(0x189))/0x1*(-parseInt(_0x2d5316(0x1af))/0x2)+-parseInt(_0x2d5316(0x1ae))/0x3*(parseInt(_0x2d5316(0x1a3))/0x4)+parseInt(_0x2d5316(0x1b3))/0x5*(-parseInt(_0x2d5316(0x18b))/0x6)+-parseInt(_0x2d5316(0x1a9))/0x7+-parseInt(_0x2d5316(0x1b4))/0x8+parseInt(_0x2d5316(0x18e))/0x9+parseInt(_0x2d5316(0x1ac))/0xa;if(_0x3fd490===_0x55cc11)break;else _0x313545['push'](_0x313545['shift']());}catch(_0x58f603){_0x313545['push'](_0x313545['shift']());}}}(_0x307f,0xbd590));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1e26a3,CollaborationSocketService as _0x34cc33,UniverCollaborationClientPlugin as _0x179376}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x2f70f7,Disposable as _0x274d29,DisposableCollection as _0x4f6dd7,IConfigService as _0x16d363,ILogService as _0x5c3772,Inject as _0x499c14,Injector as _0x207556,Plugin as _0x51ac31,merge as _0x40abab,registerDependencies as _0x1a53a2,toDisposable as _0x274a58}from'@univerjs/core';import{HTTPService as _0x988b6c,ISocketService as _0x5d3214}from'@univerjs/network';import{Observable as _0x706c8a,share as _0x96d6e5}from'rxjs';import{WebSocket as _0x566053}from'ws';function _0x307f(){const _0x50ab35=['defineProperty','createSocket','onStarting','customHeaders','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2580592KAyVic','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','add','12761690GExUjd','packageName','3JXqYjx','2cgcpYX','getConfig','next','_httpService','65hnUslw','10049136jlmHOh','pluginName','string','_doCreateSocket','call','addEventListener','1067908xGhExS','error','267114ietTgI','function','close','13291911AUcuHb','_config','object','default','symbol','decorate','_registerDependencies','_injector','getOwnPropertyDescriptor','@univerjs-pro/collaboration-client-node','prototype','registerHTTPInterceptor','toPrimitive','_configService','length','send','removeEventListener','1.0.0-alpha.7','headers','constructor','pipe','3367372ctaidv'];_0x307f=function(){return _0x50ab35;};return _0x307f();}import{ISnapshotServerService as _0x1e8a53}from'@univerjs-pro/collaboration';var b=_0x5cda16(0x197),x=_0x5cda16(0x19f);const S={};function _0x20c8(_0x223b98,_0x2f6231){_0x223b98=_0x223b98-0x188;const _0x307f81=_0x307f();let _0x20c8e3=_0x307f81[_0x223b98];return _0x20c8e3;}function C(_0x4733b5,_0x553cb8){return function(_0x54741e,_0x4c92dd){_0x553cb8(_0x54741e,_0x4c92dd,_0x4733b5);};}function w(_0x483c9b,_0x5f6a43,_0x516acc,_0x4a96a5){const _0x488a07=_0x5cda16;var _0xb11651=arguments[_0x488a07(0x19c)],_0xfc6dae=_0xb11651<0x3?_0x5f6a43:_0x4a96a5===null?_0x4a96a5=Object[_0x488a07(0x196)](_0x5f6a43,_0x516acc):_0x4a96a5,_0x570709;if(typeof Reflect==_0x488a07(0x190)&&typeof Reflect[_0x488a07(0x193)]==_0x488a07(0x18c))_0xfc6dae=Reflect[_0x488a07(0x193)](_0x483c9b,_0x5f6a43,_0x516acc,_0x4a96a5);else{for(var _0x39cd85=_0x483c9b[_0x488a07(0x19c)]-0x1;_0x39cd85>=0x0;_0x39cd85--)(_0x570709=_0x483c9b[_0x39cd85])&&(_0xfc6dae=(_0xb11651<0x3?_0x570709(_0xfc6dae):_0xb11651>0x3?_0x570709(_0x5f6a43,_0x516acc,_0xfc6dae):_0x570709(_0x5f6a43,_0x516acc))||_0xfc6dae);}return _0xb11651>0x3&&_0xfc6dae&&Object[_0x488a07(0x1a4)](_0x5f6a43,_0x516acc,_0xfc6dae),_0xfc6dae;}let T=class extends _0x274d29{constructor(_0x5bb3b2){const _0x4db1ab=_0x5cda16;super(),this[_0x4db1ab(0x19b)]=_0x5bb3b2;}['createSocket'](_0x247160){const _0x3e6da3=_0x5cda16;var _0x9b4f02;let _0x53b27b=((_0x9b4f02=this['_configService'][_0x3e6da3(0x1b0)](_0x1e26a3))==null?void 0x0:_0x9b4f02[_0x3e6da3(0x1a7)])||{};try{let _0x2516d5=new _0x566053(_0x247160,{'headers':{..._0x53b27b}}),_0x194bdc=new _0x4f6dd7();return{'URL':_0x247160,'close':(_0x3e6ef2,_0x3e4cca)=>{_0x2516d5['close'](_0x3e6ef2,_0x3e4cca),_0x194bdc['dispose']();},'send':_0x33bb57=>{const _0xcf954b=_0x3e6da3;_0x2516d5[_0xcf954b(0x19d)](_0x33bb57);},'open$':new _0x706c8a(_0x4c8d04=>{const _0x1f88a5=_0x3e6da3;let _0x4056e4=_0x1028a6=>_0x4c8d04[_0x1f88a5(0x1b1)](_0x1028a6);_0x2516d5[_0x1f88a5(0x188)]('open',_0x4056e4),_0x194bdc[_0x1f88a5(0x1ab)](_0x274a58(()=>_0x2516d5[_0x1f88a5(0x19e)]('open',_0x4056e4)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'close$':new _0x706c8a(_0x3e8f83=>{const _0x4b0393=_0x3e6da3;let _0x4bbd2a=_0x1a9744=>_0x3e8f83['next'](_0x1a9744);_0x2516d5[_0x4b0393(0x188)](_0x4b0393(0x18d),_0x4bbd2a),_0x194bdc['add'](_0x274a58(()=>_0x2516d5[_0x4b0393(0x19e)](_0x4b0393(0x18d),_0x4bbd2a)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'error$':new _0x706c8a(_0x147046=>{const _0x473d15=_0x3e6da3;let _0x26bd70=_0x505b77=>_0x147046[_0x473d15(0x1b1)](_0x505b77);_0x2516d5[_0x473d15(0x188)](_0x473d15(0x18a),_0x26bd70),_0x194bdc[_0x473d15(0x1ab)](_0x274a58(()=>_0x2516d5[_0x473d15(0x19e)](_0x473d15(0x18a),_0x26bd70)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'message$':new _0x706c8a(_0x1f1bd6=>{const _0x4d9413=_0x3e6da3;let _0x5b9e0d=_0x1379e2=>_0x1f1bd6[_0x4d9413(0x1b1)](_0x1379e2);_0x2516d5['addEventListener']('message',_0x5b9e0d),_0x194bdc['add'](_0x274a58(()=>_0x2516d5['removeEventListener']('message',_0x5b9e0d)));})['pipe'](_0x96d6e5())};}catch(_0x4c1fe9){return console['error'](_0x4c1fe9),null;}}};T=w([C(0x0,_0x16d363)],T);function E(_0x6fb48d){'@babel/helpers - typeof';return E=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x80ce80){return typeof _0x80ce80;}:function(_0x4db599){const _0xf0c7e7=_0x20c8;return _0x4db599&&typeof Symbol==_0xf0c7e7(0x18c)&&_0x4db599[_0xf0c7e7(0x1a1)]===Symbol&&_0x4db599!==Symbol[_0xf0c7e7(0x198)]?_0xf0c7e7(0x192):typeof _0x4db599;},E(_0x6fb48d);}function D(_0x30b10d,_0x9ac783){const _0x8a51b0=_0x5cda16;if(E(_0x30b10d)!='object'||!_0x30b10d)return _0x30b10d;var _0xcc83b1=_0x30b10d[Symbol[_0x8a51b0(0x19a)]];if(_0xcc83b1!==void 0x0){var _0x4a08fd=_0xcc83b1[_0x8a51b0(0x1b8)](_0x30b10d,_0x9ac783||_0x8a51b0(0x191));if(E(_0x4a08fd)!=_0x8a51b0(0x190))return _0x4a08fd;throw TypeError(_0x8a51b0(0x1a8));}return(_0x9ac783===_0x8a51b0(0x1b6)?String:Number)(_0x30b10d);}function O(_0x143c5d){const _0x2a367f=_0x5cda16;var _0x3cec51=D(_0x143c5d,_0x2a367f(0x1b6));return E(_0x3cec51)=='symbol'?_0x3cec51:_0x3cec51+'';}function k(_0x3f8e54,_0x120ad0,_0x1d5a06){return(_0x120ad0=O(_0x120ad0))in _0x3f8e54?Object['defineProperty'](_0x3f8e54,_0x120ad0,{'value':_0x1d5a06,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f8e54[_0x120ad0]=_0x1d5a06,_0x3f8e54;}let A=class extends _0x51ac31{constructor(_0x2430c9=S,_0x145b45,_0x20fb2f){const _0x15638c=_0x5cda16;super(),this['_config']=_0x2430c9,this['_configService']=_0x145b45,this[_0x15638c(0x195)]=_0x20fb2f;let {..._0x394c74}=_0x40abab({},S,this[_0x15638c(0x18f)]);this['_configService']['setConfig']('collaboration-client-node.config',_0x394c74);}[_0x5cda16(0x1a6)](){this['_registerDependencies']();}[_0x5cda16(0x194)](){const _0x71e4c0=_0x5cda16;_0x1a53a2(this[_0x71e4c0(0x195)],[[_0x5d3214,{'useClass':T}]]);}};k(A,_0x5cda16(0x1b5),_0x5cda16(0x1aa)),k(A,_0x5cda16(0x1ad),b),k(A,'version',x),A=w([_0x2f70f7(_0x179376),C(0x1,_0x16d363),C(0x2,_0x499c14(_0x207556))],A);let j=class extends _0x34cc33{constructor(_0x181bc7,_0x4ba23e,_0x44c783,_0x47725a,_0x43f43b){const _0x4e1a4f=_0x5cda16;super(_0x181bc7,_0x4ba23e,_0x44c783,_0x47725a,_0x43f43b);let _0x126b21=this[_0x4e1a4f(0x19b)]['getConfig'](_0x1e26a3);this[_0x4e1a4f(0x1b2)][_0x4e1a4f(0x199)]({'interceptor':(_0xeb0a3,_0x2cdec0)=>{const _0x15eceb=_0x4e1a4f;let _0x5a4da4=_0xeb0a3[_0x15eceb(0x1a0)];if(_0x126b21!=null&&_0x126b21[_0x15eceb(0x1a7)]){for(let _0x5ede87 in _0x126b21[_0x15eceb(0x1a7)])_0x5a4da4['set'](_0x5ede87,_0x126b21[_0x15eceb(0x1a7)][_0x5ede87]);}return _0x2cdec0(_0xeb0a3);}});}async[_0x5cda16(0x1a5)](_0x1781dd){const _0x519268=_0x5cda16;return this[_0x519268(0x1b7)](_0x1781dd);}};j=w([C(0x0,_0x499c14(_0x207556)),C(0x1,_0x499c14(_0x988b6c)),C(0x2,_0x16d363),C(0x3,_0x5c3772),C(0x4,_0x1e8a53)],j);export{j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x3b6ca0=_0x387f;(function(_0x234dd1,_0x56b1d7){const _0x147fb7=_0x387f,_0x55e851=_0x234dd1();while(!![]){try{const _0x24c2bf=-parseInt(_0x147fb7(0x10d))/0x1+-parseInt(_0x147fb7(0xfc))/0x2+-parseInt(_0x147fb7(0xf8))/0x3+parseInt(_0x147fb7(0xe7))/0x4*(parseInt(_0x147fb7(0x10b))/0x5)+parseInt(_0x147fb7(0x107))/0x6*(parseInt(_0x147fb7(0xf7))/0x7)+parseInt(_0x147fb7(0xf4))/0x8+parseInt(_0x147fb7(0xf0))/0x9;if(_0x24c2bf===_0x56b1d7)break;else _0x55e851['push'](_0x55e851['shift']());}catch(_0x333d51){_0x55e851['push'](_0x55e851['shift']());}}}(_0x2cce,0x1d1ae));import{ISnapshotServerService as _0x273df5,UniverCollaborationPlugin as _0x507fb4}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x57ca1b,CollaborationSocketService as _0x1227d2,UniverCollaborationClientPlugin as _0x113637}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x4191f7}from'@univerjs-pro/license';import{DependentOn as _0x1b1156,Disposable as _0x4e0a69,DisposableCollection as _0xfed7b4,IConfigService as _0x3b6310,ILogService as _0x3a20b0,Inject as _0x418e9c,Injector as _0x10c1dd,Plugin as _0x4494c0,merge as _0xbbbd18,registerDependencies as _0x565b92,toDisposable as _0x4ee5bb}from'@univerjs/core';import{HTTPService as _0x245e64,ISocketService as _0x379874,UniverNetworkPlugin as _0x1b40ae}from'@univerjs/network';import{Observable as _0x11449a,share as _0x2d17be}from'rxjs';import{WebSocket as _0x229b7f}from'ws';var C=_0x3b6ca0(0x10f),w=_0x3b6ca0(0xed);const T={};function E(_0x17f717,_0x4d19b0){return function(_0x3b5322,_0x80bde7){_0x4d19b0(_0x3b5322,_0x80bde7,_0x17f717);};}function D(_0x3de28b,_0x5806ba,_0x2b13b7,_0x44bb5d){const _0x3e50aa=_0x3b6ca0;var _0x53e5b0=arguments[_0x3e50aa(0xfb)],_0x5eb9a7=_0x53e5b0<0x3?_0x5806ba:_0x44bb5d===null?_0x44bb5d=Object[_0x3e50aa(0xf6)](_0x5806ba,_0x2b13b7):_0x44bb5d,_0x11b3ec;if(typeof Reflect=='object'&&typeof Reflect[_0x3e50aa(0x106)]==_0x3e50aa(0xf9))_0x5eb9a7=Reflect[_0x3e50aa(0x106)](_0x3de28b,_0x5806ba,_0x2b13b7,_0x44bb5d);else{for(var _0x3a17a2=_0x3de28b[_0x3e50aa(0xfb)]-0x1;_0x3a17a2>=0x0;_0x3a17a2--)(_0x11b3ec=_0x3de28b[_0x3a17a2])&&(_0x5eb9a7=(_0x53e5b0<0x3?_0x11b3ec(_0x5eb9a7):_0x53e5b0>0x3?_0x11b3ec(_0x5806ba,_0x2b13b7,_0x5eb9a7):_0x11b3ec(_0x5806ba,_0x2b13b7))||_0x5eb9a7);}return _0x53e5b0>0x3&&_0x5eb9a7&&Object['defineProperty'](_0x5806ba,_0x2b13b7,_0x5eb9a7),_0x5eb9a7;}let O=class extends _0x4e0a69{constructor(_0x45859f){const _0x3f9f3a=_0x3b6ca0;super(),this[_0x3f9f3a(0xf3)]=_0x45859f;}[_0x3b6ca0(0xea)](_0x350817){const _0x556f5b=_0x3b6ca0;var _0x2de61a;let _0x469e56=((_0x2de61a=this['_configService'][_0x556f5b(0xee)](_0x57ca1b))==null?void 0x0:_0x2de61a[_0x556f5b(0x115)])||{};try{let _0x45e9c8=new _0x229b7f(_0x350817,{'headers':{..._0x469e56}}),_0x18ebd9=new _0xfed7b4();return{'URL':_0x350817,'close':(_0x1a2666,_0x4b8ef9)=>{const _0x227848=_0x556f5b;_0x45e9c8[_0x227848(0x103)](_0x1a2666,_0x4b8ef9),_0x18ebd9[_0x227848(0xf5)]();},'send':_0x47bbbc=>{_0x45e9c8['send'](_0x47bbbc);},'open$':new _0x11449a(_0x566e24=>{const _0x156459=_0x556f5b;let _0x5c2029=_0x512c5a=>_0x566e24[_0x156459(0x104)](_0x512c5a);_0x45e9c8[_0x156459(0x117)](_0x156459(0xec),_0x5c2029),_0x18ebd9['add'](_0x4ee5bb(()=>_0x45e9c8['removeEventListener'](_0x156459(0xec),_0x5c2029)));})['pipe'](_0x2d17be()),'close$':new _0x11449a(_0x139617=>{const _0x3ca06a=_0x556f5b;let _0x4ce0b3=_0x526f85=>_0x139617[_0x3ca06a(0x104)](_0x526f85);_0x45e9c8[_0x3ca06a(0x117)](_0x3ca06a(0x103),_0x4ce0b3),_0x18ebd9['add'](_0x4ee5bb(()=>_0x45e9c8[_0x3ca06a(0xe8)]('close',_0x4ce0b3)));})[_0x556f5b(0xe9)](_0x2d17be()),'error$':new _0x11449a(_0x5de6b9=>{const _0x15ab52=_0x556f5b;let _0x9eacef=_0x592a66=>_0x5de6b9['next'](_0x592a66);_0x45e9c8[_0x15ab52(0x117)](_0x15ab52(0x100),_0x9eacef),_0x18ebd9[_0x15ab52(0xe5)](_0x4ee5bb(()=>_0x45e9c8[_0x15ab52(0xe8)](_0x15ab52(0x100),_0x9eacef)));})[_0x556f5b(0xe9)](_0x2d17be()),'message$':new _0x11449a(_0x2b3fcf=>{const _0x1fa9ae=_0x556f5b;let _0x59a683=_0x4b0f45=>_0x2b3fcf['next'](_0x4b0f45);_0x45e9c8[_0x1fa9ae(0x117)](_0x1fa9ae(0x114),_0x59a683),_0x18ebd9[_0x1fa9ae(0xe5)](_0x4ee5bb(()=>_0x45e9c8['removeEventListener'](_0x1fa9ae(0x114),_0x59a683)));})['pipe'](_0x2d17be())};}catch(_0x41295c){return console[_0x556f5b(0x100)](_0x41295c),null;}}};function _0x387f(_0x3e3329,_0x25026c){_0x3e3329=_0x3e3329-0xe5;const _0x2cce3c=_0x2cce();let _0x387f1a=_0x2cce3c[_0x3e3329];return _0x387f1a;}O=D([E(0x0,_0x3b6310)],O);function _0x2cce(){const _0x1eee20=['default','collaboration-client-node.config','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','message','customHeaders','prototype','addEventListener','packageName','add','call','4lgHyrQ','removeEventListener','pipe','createSocket','defineProperty','open','1.0.0-beta.0','getConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1211112neAjqn','_injector','string','_configService','650504ZsrKht','dispose','getOwnPropertyDescriptor','49154CCqxjE','580434kHdsAR','function','pluginName','length','18280zcHylc','setConfig','headers','symbol','error','onStarting','_registerDependencies','close','next','_httpService','decorate','12Mfdlmp','version','toPrimitive','_config','973740nxhfVJ','iterator','102841iIBWgv','object','@univerjs-pro/collaboration-client-node','registerHTTPInterceptor'];_0x2cce=function(){return _0x1eee20;};return _0x2cce();}function k(_0x4126f8){'@babel/helpers - typeof';const _0x192d01=_0x3b6ca0;return k=typeof Symbol=='function'&&typeof Symbol[_0x192d01(0x10c)]==_0x192d01(0xff)?function(_0xe3553d){return typeof _0xe3553d;}:function(_0x1fd918){const _0x5032a8=_0x192d01;return _0x1fd918&&typeof Symbol==_0x5032a8(0xf9)&&_0x1fd918['constructor']===Symbol&&_0x1fd918!==Symbol[_0x5032a8(0x116)]?_0x5032a8(0xff):typeof _0x1fd918;},k(_0x4126f8);}function A(_0x39db12,_0x258d7a){const _0x109c17=_0x3b6ca0;if(k(_0x39db12)!=_0x109c17(0x10e)||!_0x39db12)return _0x39db12;var _0x90ac99=_0x39db12[Symbol[_0x109c17(0x109)]];if(_0x90ac99!==void 0x0){var _0x1c3e9a=_0x90ac99[_0x109c17(0xe6)](_0x39db12,_0x258d7a||_0x109c17(0x111));if(k(_0x1c3e9a)!=_0x109c17(0x10e))return _0x1c3e9a;throw TypeError(_0x109c17(0xef));}return(_0x258d7a===_0x109c17(0xf2)?String:Number)(_0x39db12);}function j(_0x31857b){const _0x131c47=_0x3b6ca0;var _0x8d2ba3=A(_0x31857b,_0x131c47(0xf2));return k(_0x8d2ba3)==_0x131c47(0xff)?_0x8d2ba3:_0x8d2ba3+'';}function M(_0x2a65d6,_0x29a12a,_0x542308){const _0x57a349=_0x3b6ca0;return(_0x29a12a=j(_0x29a12a))in _0x2a65d6?Object[_0x57a349(0xeb)](_0x2a65d6,_0x29a12a,{'value':_0x542308,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2a65d6[_0x29a12a]=_0x542308,_0x2a65d6;}let N=class extends _0x4494c0{constructor(_0x171a67=T,_0x3461d5,_0x10c464){const _0x28d3a0=_0x3b6ca0;super(),this[_0x28d3a0(0x10a)]=_0x171a67,this[_0x28d3a0(0xf3)]=_0x3461d5,this[_0x28d3a0(0xf1)]=_0x10c464;let {..._0x2d9c22}=_0xbbbd18({},T,this[_0x28d3a0(0x10a)]);this['_configService'][_0x28d3a0(0xfd)](_0x28d3a0(0x112),_0x2d9c22);}[_0x3b6ca0(0x101)](){const _0x2ca10b=_0x3b6ca0;this[_0x2ca10b(0x102)]();}['_registerDependencies'](){const _0xd8d326=_0x3b6ca0;_0x565b92(this[_0xd8d326(0xf1)],[[_0x379874,{'useClass':O}]]);}};M(N,_0x3b6ca0(0xfa),_0x3b6ca0(0x113)),M(N,_0x3b6ca0(0x118),C),M(N,_0x3b6ca0(0x108),w),N=D([_0x1b1156(_0x4191f7,_0x1b40ae,_0x507fb4,_0x113637),E(0x1,_0x3b6310),E(0x2,_0x418e9c(_0x10c1dd))],N);let P=class extends _0x1227d2{constructor(_0x27d442,_0x1e5594,_0x17f553,_0x59b4ea,_0x59e457){const _0x1a85d2=_0x3b6ca0;super(_0x27d442,_0x1e5594,_0x17f553,_0x59b4ea,_0x59e457);let _0x43bc03=this[_0x1a85d2(0xf3)][_0x1a85d2(0xee)](_0x57ca1b);this[_0x1a85d2(0x105)][_0x1a85d2(0x110)]({'interceptor':(_0x29cb17,_0x2913d3)=>{const _0x581781=_0x1a85d2;let _0xacc05d=_0x29cb17[_0x581781(0xfe)];if(_0x43bc03!=null&&_0x43bc03[_0x581781(0x115)]){for(let _0x18f79c in _0x43bc03[_0x581781(0x115)])_0xacc05d['set'](_0x18f79c,_0x43bc03[_0x581781(0x115)][_0x18f79c]);}return _0x2913d3(_0x29cb17);}});}async[_0x3b6ca0(0xea)](_0x2058c5){return this['_doCreateSocket'](_0x2058c5);}};P=D([E(0x0,_0x418e9c(_0x10c1dd)),E(0x1,_0x418e9c(_0x245e64)),E(0x2,_0x3b6310),E(0x3,_0x3a20b0),E(0x4,_0x273df5)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1de9(_0x4b141d,_0x4317f1){_0x4b141d=_0x4b141d-0x18b;const _0xb44255=_0xb442();let _0x1de97d=_0xb44255[_0x4b141d];return _0x1de97d;}function _0xb442(){const _0x3bf200=['4UgAbkE','send','2290320oXwEhZ','call','UniverNetwork','setConfig','CollaborationSocketService','headers','registerHTTPInterceptor','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Inject','toStringTag','474574HqEqlC','length','close','_doCreateSocket','merge','version','@univerjs-pro/collaboration','createSocket','Plugin','customHeaders','@univerjs/core','prototype','constructor','WebSocket','_httpService','UniverProCollaboration','iterator','decorate','pipe','_config','Injector','default','54342WEuAKX','removeEventListener','share','getOwnPropertyDescriptor','287gQmVBK','add','open','ISocketService','ILogService','rxjs','NodeCollaborationSocketService','object','packageName','672531RdJHrF','UniverProCollaborationClient','4051704McinRF','pluginName','Observable','symbol','function','1.0.0-alpha.7','_configService','UniverCollaborationClientPlugin','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','collaboration-client-node.config','next','@univerjs-pro/collaboration-client','HTTPService','string','1762844KvAoVv','onStarting','getConfig','registerDependencies','@univerjs/network','exports','_injector','ISnapshotServerService','IConfigService','addEventListener','toDisposable','message','error','@univerjs-pro/collaboration-client-node','defineProperty','21961638FTWlIW'];_0xb442=function(){return _0x3bf200;};return _0xb442();}(function(_0x5f0980,_0xfb72f2){const _0x1131f0=_0x1de9,_0x39dd8a=_0x5f0980();while(!![]){try{const _0x383f4a=parseInt(_0x1131f0(0x1c6))/0x1+parseInt(_0x1131f0(0x1ba))/0x2*(parseInt(_0x1131f0(0x19a))/0x3)+parseInt(_0x1131f0(0x1aa))/0x4+parseInt(_0x1131f0(0x1bc))/0x5+parseInt(_0x1131f0(0x18d))/0x6*(parseInt(_0x1131f0(0x191))/0x7)+parseInt(_0x1131f0(0x19c))/0x8+-parseInt(_0x1131f0(0x1b9))/0x9;if(_0x383f4a===_0xfb72f2)break;else _0x39dd8a['push'](_0x39dd8a['shift']());}catch(_0x3a02e3){_0x39dd8a['push'](_0x39dd8a['shift']());}}}(_0xb442,0x3f4f9),function(_0x57eeaa,_0xf27bc){const _0x5a4556=_0x1de9;typeof exports==_0x5a4556(0x198)&&typeof module<'u'?_0xf27bc(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x5a4556(0x1a0)&&define['amd']?define([_0x5a4556(0x1af),_0x5a4556(0x1a7),_0x5a4556(0x1d0),_0x5a4556(0x1ae),'rxjs',_0x5a4556(0x1cc)],_0xf27bc):(_0x57eeaa=typeof globalThis<'u'?globalThis:_0x57eeaa||self,_0xf27bc(_0x57eeaa['UniverProCollaborationClientNode']={},_0x57eeaa[_0x5a4556(0x19b)],_0x57eeaa['UniverCore'],_0x57eeaa[_0x5a4556(0x1be)],_0x57eeaa[_0x5a4556(0x196)],_0x57eeaa[_0x5a4556(0x1d5)]));}(this,function(_0x2a28c3,_0x21977d,_0x29b1e9,_0x1fc00f,_0x562211,_0x66ca4){const _0xeab5f6=_0x1de9;Object[_0xeab5f6(0x1b8)](_0x2a28c3,Symbol[_0xeab5f6(0x1c5)],{'value':'Module'});var _0x1b90af=(_0x45b1e7,_0x2173e2)=>()=>(_0x2173e2||(_0x45b1e7((_0x2173e2={'exports':{}})[_0xeab5f6(0x1af)],_0x2173e2),_0x45b1e7=null),_0x2173e2[_0xeab5f6(0x1af)]),_0xb524a3=_0xeab5f6(0x1b7),_0x37c92d=_0xeab5f6(0x1a1);let _0x80eb7d={};var _0x2d9872=_0x1b90af((_0x9b8bfb,_0x26d908)=>{_0x26d908['exports']=function(){const _0x39d7ae=_0x1de9;throw Error(_0x39d7ae(0x1a4));};})();function _0x258b5b(_0x888ce5,_0xbd1500){return function(_0x278ba7,_0x296d58){_0xbd1500(_0x278ba7,_0x296d58,_0x888ce5);};}function _0x346b7d(_0x22e3d4,_0x2d173f,_0xfc2793,_0x2b4731){const _0x6a3755=_0xeab5f6;var _0x569980=arguments[_0x6a3755(0x1c7)],_0x2853e4=_0x569980<0x3?_0x2d173f:_0x2b4731===null?_0x2b4731=Object[_0x6a3755(0x190)](_0x2d173f,_0xfc2793):_0x2b4731,_0x598368;if(typeof Reflect==_0x6a3755(0x198)&&typeof Reflect[_0x6a3755(0x1d7)]==_0x6a3755(0x1a0))_0x2853e4=Reflect[_0x6a3755(0x1d7)](_0x22e3d4,_0x2d173f,_0xfc2793,_0x2b4731);else{for(var _0x528b9b=_0x22e3d4[_0x6a3755(0x1c7)]-0x1;_0x528b9b>=0x0;_0x528b9b--)(_0x598368=_0x22e3d4[_0x528b9b])&&(_0x2853e4=(_0x569980<0x3?_0x598368(_0x2853e4):_0x569980>0x3?_0x598368(_0x2d173f,_0xfc2793,_0x2853e4):_0x598368(_0x2d173f,_0xfc2793))||_0x2853e4);}return _0x569980>0x3&&_0x2853e4&&Object[_0x6a3755(0x1b8)](_0x2d173f,_0xfc2793,_0x2853e4),_0x2853e4;}let _0x3e13dd=class extends _0x29b1e9['Disposable']{constructor(_0x491fbb){const _0x2631af=_0xeab5f6;super(),this[_0x2631af(0x1a2)]=_0x491fbb;}[_0xeab5f6(0x1cd)](_0x4bc1ea){const _0x4aa48d=_0xeab5f6;var _0x43d7c7;let _0x50c874=((_0x43d7c7=this[_0x4aa48d(0x1a2)][_0x4aa48d(0x1ac)](_0x21977d[_0x4aa48d(0x1c3)]))==null?void 0x0:_0x43d7c7[_0x4aa48d(0x1cf)])||{};try{let _0x4aaf73=new _0x2d9872[(_0x4aa48d(0x1d3))](_0x4bc1ea,{'headers':{..._0x50c874}}),_0x5c1ac4=new _0x29b1e9['DisposableCollection']();return{'URL':_0x4bc1ea,'close':(_0x13cf24,_0xfb24a3)=>{const _0x1a6636=_0x4aa48d;_0x4aaf73[_0x1a6636(0x1c8)](_0x13cf24,_0xfb24a3),_0x5c1ac4['dispose']();},'send':_0x63ea00=>{const _0xf7df20=_0x4aa48d;_0x4aaf73[_0xf7df20(0x1bb)](_0x63ea00);},'open$':new _0x562211[(_0x4aa48d(0x19e))](_0x16455e=>{const _0x2e13dc=_0x4aa48d;let _0x6bc9e6=_0x4b58de=>_0x16455e[_0x2e13dc(0x1a6)](_0x4b58de);_0x4aaf73['addEventListener'](_0x2e13dc(0x193),_0x6bc9e6),_0x5c1ac4[_0x2e13dc(0x192)]((0x0,_0x29b1e9['toDisposable'])(()=>_0x4aaf73[_0x2e13dc(0x18e)](_0x2e13dc(0x193),_0x6bc9e6)));})[_0x4aa48d(0x1d8)]((0x0,_0x562211['share'])()),'close$':new _0x562211[(_0x4aa48d(0x19e))](_0xdf10e3=>{const _0x4fd38a=_0x4aa48d;let _0x389dac=_0x42076f=>_0xdf10e3[_0x4fd38a(0x1a6)](_0x42076f);_0x4aaf73[_0x4fd38a(0x1b3)]('close',_0x389dac),_0x5c1ac4[_0x4fd38a(0x192)]((0x0,_0x29b1e9[_0x4fd38a(0x1b4)])(()=>_0x4aaf73[_0x4fd38a(0x18e)](_0x4fd38a(0x1c8),_0x389dac)));})[_0x4aa48d(0x1d8)]((0x0,_0x562211['share'])()),'error$':new _0x562211['Observable'](_0x231c5f=>{const _0x213392=_0x4aa48d;let _0x2ab111=_0x536f15=>_0x231c5f[_0x213392(0x1a6)](_0x536f15);_0x4aaf73[_0x213392(0x1b3)](_0x213392(0x1b6),_0x2ab111),_0x5c1ac4[_0x213392(0x192)]((0x0,_0x29b1e9[_0x213392(0x1b4)])(()=>_0x4aaf73[_0x213392(0x18e)]('error',_0x2ab111)));})[_0x4aa48d(0x1d8)]((0x0,_0x562211[_0x4aa48d(0x18f)])()),'message$':new _0x562211[(_0x4aa48d(0x19e))](_0x204fd0=>{const _0x30fd34=_0x4aa48d;let _0x578a99=_0x458a6a=>_0x204fd0[_0x30fd34(0x1a6)](_0x458a6a);_0x4aaf73['addEventListener'](_0x30fd34(0x1b5),_0x578a99),_0x5c1ac4[_0x30fd34(0x192)]((0x0,_0x29b1e9[_0x30fd34(0x1b4)])(()=>_0x4aaf73[_0x30fd34(0x18e)](_0x30fd34(0x1b5),_0x578a99)));})[_0x4aa48d(0x1d8)]((0x0,_0x562211[_0x4aa48d(0x18f)])())};}catch(_0xb82aef){return console[_0x4aa48d(0x1b6)](_0xb82aef),null;}}};_0x3e13dd=_0x346b7d([_0x258b5b(0x0,_0x29b1e9[_0xeab5f6(0x1b2)])],_0x3e13dd);function _0x232c23(_0x5c531a){'@babel/helpers - typeof';const _0x3c14bb=_0xeab5f6;return _0x232c23=typeof Symbol==_0x3c14bb(0x1a0)&&typeof Symbol[_0x3c14bb(0x1d6)]==_0x3c14bb(0x19f)?function(_0x550a1b){return typeof _0x550a1b;}:function(_0x2fd3e1){const _0x37d253=_0x3c14bb;return _0x2fd3e1&&typeof Symbol==_0x37d253(0x1a0)&&_0x2fd3e1[_0x37d253(0x1d2)]===Symbol&&_0x2fd3e1!==Symbol[_0x37d253(0x1d1)]?_0x37d253(0x19f):typeof _0x2fd3e1;},_0x232c23(_0x5c531a);}function _0x2aec87(_0x50c2c0,_0x31749a){const _0x3dd9f8=_0xeab5f6;if(_0x232c23(_0x50c2c0)!=_0x3dd9f8(0x198)||!_0x50c2c0)return _0x50c2c0;var _0x141e96=_0x50c2c0[Symbol['toPrimitive']];if(_0x141e96!==void 0x0){var _0x3315f8=_0x141e96[_0x3dd9f8(0x1bd)](_0x50c2c0,_0x31749a||_0x3dd9f8(0x18c));if(_0x232c23(_0x3315f8)!=_0x3dd9f8(0x198))return _0x3315f8;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x31749a==='string'?String:Number)(_0x50c2c0);}function _0x2b67f8(_0x1616ad){const _0x4081bc=_0xeab5f6;var _0x1807ec=_0x2aec87(_0x1616ad,_0x4081bc(0x1a9));return _0x232c23(_0x1807ec)==_0x4081bc(0x19f)?_0x1807ec:_0x1807ec+'';}function _0x5e6462(_0x51634e,_0x413ba5,_0x335d4a){const _0x496261=_0xeab5f6;return(_0x413ba5=_0x2b67f8(_0x413ba5))in _0x51634e?Object[_0x496261(0x1b8)](_0x51634e,_0x413ba5,{'value':_0x335d4a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x51634e[_0x413ba5]=_0x335d4a,_0x51634e;}let _0x62f332=class extends _0x29b1e9[_0xeab5f6(0x1ce)]{constructor(_0x38419e=_0x80eb7d,_0x1b4781,_0x14aa4a){const _0x11fa9c=_0xeab5f6;super(),this['_config']=_0x38419e,this[_0x11fa9c(0x1a2)]=_0x1b4781,this[_0x11fa9c(0x1b0)]=_0x14aa4a;let {..._0x3ebbb2}=(0x0,_0x29b1e9[_0x11fa9c(0x1ca)])({},_0x80eb7d,this[_0x11fa9c(0x1d9)]);this['_configService'][_0x11fa9c(0x1bf)](_0x11fa9c(0x1a5),_0x3ebbb2);}[_0xeab5f6(0x1ab)](){this['_registerDependencies']();}['_registerDependencies'](){const _0x260081=_0xeab5f6;(0x0,_0x29b1e9[_0x260081(0x1ad)])(this[_0x260081(0x1b0)],[[_0x1fc00f[_0x260081(0x194)],{'useClass':_0x3e13dd}]]);}};_0x5e6462(_0x62f332,_0xeab5f6(0x19d),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x5e6462(_0x62f332,_0xeab5f6(0x199),_0xb524a3),_0x5e6462(_0x62f332,_0xeab5f6(0x1cb),_0x37c92d),_0x62f332=_0x346b7d([(0x0,_0x29b1e9['DependentOn'])(_0x21977d[_0xeab5f6(0x1a3)]),_0x258b5b(0x1,_0x29b1e9[_0xeab5f6(0x1b2)]),_0x258b5b(0x2,(0x0,_0x29b1e9[_0xeab5f6(0x1c4)])(_0x29b1e9[_0xeab5f6(0x18b)]))],_0x62f332);let _0x994b4a=class extends _0x21977d[_0xeab5f6(0x1c0)]{constructor(_0x19bada,_0x5bb8a9,_0x5db681,_0x43f42e,_0x77572d){const _0x4c38e1=_0xeab5f6;super(_0x19bada,_0x5bb8a9,_0x5db681,_0x43f42e,_0x77572d);let _0x1ca5fa=this[_0x4c38e1(0x1a2)][_0x4c38e1(0x1ac)](_0x21977d['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x4c38e1(0x1d4)][_0x4c38e1(0x1c2)]({'interceptor':(_0x5b5889,_0x47d4c8)=>{const _0x45d11a=_0x4c38e1;let _0x59b9b7=_0x5b5889[_0x45d11a(0x1c1)];if(_0x1ca5fa!=null&&_0x1ca5fa[_0x45d11a(0x1cf)]){for(let _0x5e84af in _0x1ca5fa[_0x45d11a(0x1cf)])_0x59b9b7['set'](_0x5e84af,_0x1ca5fa[_0x45d11a(0x1cf)][_0x5e84af]);}return _0x47d4c8(_0x5b5889);}});}async['createSocket'](_0x887f48){const _0x183b8b=_0xeab5f6;return this[_0x183b8b(0x1c9)](_0x887f48);}};_0x994b4a=_0x346b7d([_0x258b5b(0x0,(0x0,_0x29b1e9['Inject'])(_0x29b1e9[_0xeab5f6(0x18b)])),_0x258b5b(0x1,(0x0,_0x29b1e9['Inject'])(_0x1fc00f[_0xeab5f6(0x1a8)])),_0x258b5b(0x2,_0x29b1e9[_0xeab5f6(0x1b2)]),_0x258b5b(0x3,_0x29b1e9[_0xeab5f6(0x195)]),_0x258b5b(0x4,_0x66ca4[_0xeab5f6(0x1b1)])],_0x994b4a),Object['defineProperty'](_0x2a28c3,_0xeab5f6(0x197),{'enumerable':!0x0,'get':function(){return _0x994b4a;}}),Object['defineProperty'](_0x2a28c3,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _0x62f332;}});}));
1
+ (function(_0x4d123b,_0x1ae7ed){const _0x4eb133=_0x5a67,_0x12b85b=_0x4d123b();while(!![]){try{const _0x212b88=-parseInt(_0x4eb133(0x243))/0x1*(-parseInt(_0x4eb133(0x222))/0x2)+-parseInt(_0x4eb133(0x23e))/0x3*(-parseInt(_0x4eb133(0x1f9))/0x4)+-parseInt(_0x4eb133(0x1fb))/0x5*(parseInt(_0x4eb133(0x1fc))/0x6)+parseInt(_0x4eb133(0x22b))/0x7*(-parseInt(_0x4eb133(0x248))/0x8)+-parseInt(_0x4eb133(0x22a))/0x9+-parseInt(_0x4eb133(0x247))/0xa*(-parseInt(_0x4eb133(0x23b))/0xb)+parseInt(_0x4eb133(0x21e))/0xc;if(_0x212b88===_0x1ae7ed)break;else _0x12b85b['push'](_0x12b85b['shift']());}catch(_0x6e0f8c){_0x12b85b['push'](_0x12b85b['shift']());}}}(_0x1112,0x29400),function(_0x4ce2de,_0x2d6272){const _0x5b312e=_0x5a67;typeof exports==_0x5b312e(0x244)&&typeof module<'u'?_0x2d6272(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x5b312e(0x203)&&define['amd']?define(['exports','@univerjs-pro/collaboration',_0x5b312e(0x227),_0x5b312e(0x21d),_0x5b312e(0x229),_0x5b312e(0x209),_0x5b312e(0x228)],_0x2d6272):(_0x4ce2de=typeof globalThis<'u'?globalThis:_0x4ce2de||self,_0x2d6272(_0x4ce2de[_0x5b312e(0x237)]={},_0x4ce2de['UniverProCollaboration'],_0x4ce2de[_0x5b312e(0x219)],_0x4ce2de[_0x5b312e(0x233)],_0x4ce2de['UniverCore'],_0x4ce2de[_0x5b312e(0x210)],_0x4ce2de[_0x5b312e(0x228)]));}(this,function(_0x580277,_0x697832,_0x34fe81,_0x465a1a,_0x1702ca,_0x402637,_0x1c089e){const _0x4dde1e=_0x5a67;Object[_0x4dde1e(0x21b)](_0x580277,Symbol[_0x4dde1e(0x206)],{'value':'Module'});var _0x2a8632=(_0x271cbc,_0x49c5cf)=>()=>(_0x49c5cf||(_0x271cbc((_0x49c5cf={'exports':{}})[_0x4dde1e(0x1fd)],_0x49c5cf),_0x271cbc=null),_0x49c5cf[_0x4dde1e(0x1fd)]),_0x39afe9=_0x4dde1e(0x1f6),_0x2c4d4c=_0x4dde1e(0x21a);let _0x1466f7={};var _0x3add2b=_0x2a8632((_0x68d9a0,_0x535fc6)=>{_0x535fc6['exports']=function(){const _0x338bd2=_0x5a67;throw Error(_0x338bd2(0x1ff));};})();function _0xbb7d3a(_0x60469d,_0x453eae){return function(_0x2daaa8,_0x220556){_0x453eae(_0x2daaa8,_0x220556,_0x60469d);};}function _0x29dba9(_0x47ff48,_0x267978,_0x1877bc,_0x2bdf8c){const _0x242751=_0x4dde1e;var _0xc85e74=arguments[_0x242751(0x22d)],_0x27aa2b=_0xc85e74<0x3?_0x267978:_0x2bdf8c===null?_0x2bdf8c=Object['getOwnPropertyDescriptor'](_0x267978,_0x1877bc):_0x2bdf8c,_0x42a258;if(typeof Reflect==_0x242751(0x244)&&typeof Reflect[_0x242751(0x202)]==_0x242751(0x203))_0x27aa2b=Reflect[_0x242751(0x202)](_0x47ff48,_0x267978,_0x1877bc,_0x2bdf8c);else{for(var _0x4ce2e3=_0x47ff48[_0x242751(0x22d)]-0x1;_0x4ce2e3>=0x0;_0x4ce2e3--)(_0x42a258=_0x47ff48[_0x4ce2e3])&&(_0x27aa2b=(_0xc85e74<0x3?_0x42a258(_0x27aa2b):_0xc85e74>0x3?_0x42a258(_0x267978,_0x1877bc,_0x27aa2b):_0x42a258(_0x267978,_0x1877bc))||_0x27aa2b);}return _0xc85e74>0x3&&_0x27aa2b&&Object[_0x242751(0x21b)](_0x267978,_0x1877bc,_0x27aa2b),_0x27aa2b;}let _0x177232=class extends _0x1702ca[_0x4dde1e(0x224)]{constructor(_0x330e31){const _0x201d4c=_0x4dde1e;super(),this[_0x201d4c(0x240)]=_0x330e31;}[_0x4dde1e(0x232)](_0x5da254){const _0x4a9a59=_0x4dde1e;var _0x9b9550;let _0x437608=((_0x9b9550=this[_0x4a9a59(0x240)][_0x4a9a59(0x214)](_0x34fe81[_0x4a9a59(0x207)]))==null?void 0x0:_0x9b9550[_0x4a9a59(0x234)])||{};try{let _0x4468e9=new _0x3add2b[(_0x4a9a59(0x215))](_0x5da254,{'headers':{..._0x437608}}),_0x4c4db9=new _0x1702ca[(_0x4a9a59(0x226))]();return{'URL':_0x5da254,'close':(_0x539b22,_0x2314dd)=>{const _0x4b82aa=_0x4a9a59;_0x4468e9[_0x4b82aa(0x241)](_0x539b22,_0x2314dd),_0x4c4db9[_0x4b82aa(0x1f8)]();},'send':_0x194570=>{_0x4468e9['send'](_0x194570);},'open$':new _0x1c089e[(_0x4a9a59(0x201))](_0x16e40f=>{const _0x3d7436=_0x4a9a59;let _0x25e0b5=_0x348368=>_0x16e40f['next'](_0x348368);_0x4468e9[_0x3d7436(0x235)](_0x3d7436(0x221),_0x25e0b5),_0x4c4db9[_0x3d7436(0x236)]((0x0,_0x1702ca[_0x3d7436(0x1f4)])(()=>_0x4468e9[_0x3d7436(0x230)]('open',_0x25e0b5)));})[_0x4a9a59(0x238)]((0x0,_0x1c089e['share'])()),'close$':new _0x1c089e[(_0x4a9a59(0x201))](_0x476b4b=>{const _0x5b6b08=_0x4a9a59;let _0x176cdf=_0x4587d4=>_0x476b4b[_0x5b6b08(0x211)](_0x4587d4);_0x4468e9[_0x5b6b08(0x235)](_0x5b6b08(0x241),_0x176cdf),_0x4c4db9[_0x5b6b08(0x236)]((0x0,_0x1702ca[_0x5b6b08(0x1f4)])(()=>_0x4468e9['removeEventListener'](_0x5b6b08(0x241),_0x176cdf)));})[_0x4a9a59(0x238)]((0x0,_0x1c089e['share'])()),'error$':new _0x1c089e[(_0x4a9a59(0x201))](_0x336626=>{const _0x5948de=_0x4a9a59;let _0x2d0942=_0x100cad=>_0x336626[_0x5948de(0x211)](_0x100cad);_0x4468e9[_0x5948de(0x235)](_0x5948de(0x223),_0x2d0942),_0x4c4db9[_0x5948de(0x236)]((0x0,_0x1702ca['toDisposable'])(()=>_0x4468e9[_0x5948de(0x230)](_0x5948de(0x223),_0x2d0942)));})['pipe']((0x0,_0x1c089e['share'])()),'message$':new _0x1c089e[(_0x4a9a59(0x201))](_0x2cff9b=>{const _0x2ed290=_0x4a9a59;let _0x5c83b4=_0x3ced2b=>_0x2cff9b[_0x2ed290(0x211)](_0x3ced2b);_0x4468e9[_0x2ed290(0x235)](_0x2ed290(0x231),_0x5c83b4),_0x4c4db9[_0x2ed290(0x236)]((0x0,_0x1702ca[_0x2ed290(0x1f4)])(()=>_0x4468e9[_0x2ed290(0x230)](_0x2ed290(0x231),_0x5c83b4)));})['pipe']((0x0,_0x1c089e[_0x4a9a59(0x21f)])())};}catch(_0x52e99b){return console[_0x4a9a59(0x223)](_0x52e99b),null;}}};_0x177232=_0x29dba9([_0xbb7d3a(0x0,_0x1702ca['IConfigService'])],_0x177232);function _0x18b8f2(_0x1976ed){'@babel/helpers - typeof';const _0x74c715=_0x4dde1e;return _0x18b8f2=typeof Symbol==_0x74c715(0x203)&&typeof Symbol[_0x74c715(0x1f3)]==_0x74c715(0x218)?function(_0x11da27){return typeof _0x11da27;}:function(_0x2f4a46){const _0x3b7c7a=_0x74c715;return _0x2f4a46&&typeof Symbol==_0x3b7c7a(0x203)&&_0x2f4a46['constructor']===Symbol&&_0x2f4a46!==Symbol['prototype']?'symbol':typeof _0x2f4a46;},_0x18b8f2(_0x1976ed);}function _0x546b28(_0x358534,_0x2eb63d){const _0x1606ee=_0x4dde1e;if(_0x18b8f2(_0x358534)!='object'||!_0x358534)return _0x358534;var _0x24059b=_0x358534[Symbol[_0x1606ee(0x217)]];if(_0x24059b!==void 0x0){var _0x2cd04c=_0x24059b[_0x1606ee(0x22f)](_0x358534,_0x2eb63d||_0x1606ee(0x20b));if(_0x18b8f2(_0x2cd04c)!=_0x1606ee(0x244))return _0x2cd04c;throw TypeError(_0x1606ee(0x225));}return(_0x2eb63d===_0x1606ee(0x220)?String:Number)(_0x358534);}function _0x262d88(_0x4dd3df){const _0x4e744=_0x4dde1e;var _0x52bc6c=_0x546b28(_0x4dd3df,_0x4e744(0x220));return _0x18b8f2(_0x52bc6c)==_0x4e744(0x218)?_0x52bc6c:_0x52bc6c+'';}function _0x5b3680(_0x5d5477,_0x5c1935,_0x1ba5d1){const _0x26004e=_0x4dde1e;return(_0x5c1935=_0x262d88(_0x5c1935))in _0x5d5477?Object[_0x26004e(0x21b)](_0x5d5477,_0x5c1935,{'value':_0x1ba5d1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5d5477[_0x5c1935]=_0x1ba5d1,_0x5d5477;}let _0xcdf363=class extends _0x1702ca['Plugin']{constructor(_0x5da7d5=_0x1466f7,_0x207a1a,_0x39d42c){const _0xa81889=_0x4dde1e;super(),this[_0xa81889(0x23f)]=_0x5da7d5,this[_0xa81889(0x240)]=_0x207a1a,this[_0xa81889(0x21c)]=_0x39d42c;let {..._0x3c2595}=(0x0,_0x1702ca[_0xa81889(0x216)])({},_0x1466f7,this[_0xa81889(0x23f)]);this[_0xa81889(0x240)][_0xa81889(0x22e)](_0xa81889(0x213),_0x3c2595);}['onStarting'](){const _0x3c1f4f=_0x4dde1e;this[_0x3c1f4f(0x23d)]();}['_registerDependencies'](){const _0x5d9d90=_0x4dde1e;(0x0,_0x1702ca[_0x5d9d90(0x20d)])(this[_0x5d9d90(0x21c)],[[_0x402637[_0x5d9d90(0x20c)],{'useClass':_0x177232}]]);}};_0x5b3680(_0xcdf363,_0x4dde1e(0x242),_0x4dde1e(0x212)),_0x5b3680(_0xcdf363,_0x4dde1e(0x200),_0x39afe9),_0x5b3680(_0xcdf363,_0x4dde1e(0x20a),_0x2c4d4c),_0xcdf363=_0x29dba9([(0x0,_0x1702ca[_0x4dde1e(0x239)])(_0x465a1a[_0x4dde1e(0x1f7)],_0x402637[_0x4dde1e(0x1fa)],_0x697832[_0x4dde1e(0x208)],_0x34fe81[_0x4dde1e(0x246)]),_0xbb7d3a(0x1,_0x1702ca[_0x4dde1e(0x20e)]),_0xbb7d3a(0x2,(0x0,_0x1702ca[_0x4dde1e(0x23a)])(_0x1702ca['Injector']))],_0xcdf363);let _0x2b3409=class extends _0x34fe81[_0x4dde1e(0x1f5)]{constructor(_0xdf7a24,_0xad6435,_0xf8622d,_0x38858e,_0x279b49){const _0x302a6b=_0x4dde1e;super(_0xdf7a24,_0xad6435,_0xf8622d,_0x38858e,_0x279b49);let _0x41f16b=this[_0x302a6b(0x240)][_0x302a6b(0x214)](_0x34fe81[_0x302a6b(0x207)]);this[_0x302a6b(0x245)][_0x302a6b(0x23c)]({'interceptor':(_0x22b4c5,_0xa87240)=>{const _0x3b3d11=_0x302a6b;let _0x588e4a=_0x22b4c5['headers'];if(_0x41f16b!=null&&_0x41f16b[_0x3b3d11(0x234)]){for(let _0x58706f in _0x41f16b['customHeaders'])_0x588e4a['set'](_0x58706f,_0x41f16b[_0x3b3d11(0x234)][_0x58706f]);}return _0xa87240(_0x22b4c5);}});}async[_0x4dde1e(0x232)](_0x2161e1){const _0x25fd54=_0x4dde1e;return this[_0x25fd54(0x1fe)](_0x2161e1);}};_0x2b3409=_0x29dba9([_0xbb7d3a(0x0,(0x0,_0x1702ca[_0x4dde1e(0x23a)])(_0x1702ca['Injector'])),_0xbb7d3a(0x1,(0x0,_0x1702ca[_0x4dde1e(0x23a)])(_0x402637[_0x4dde1e(0x20f)])),_0xbb7d3a(0x2,_0x1702ca[_0x4dde1e(0x20e)]),_0xbb7d3a(0x3,_0x1702ca[_0x4dde1e(0x205)]),_0xbb7d3a(0x4,_0x697832[_0x4dde1e(0x22c)])],_0x2b3409),Object[_0x4dde1e(0x21b)](_0x580277,_0x4dde1e(0x204),{'enumerable':!0x0,'get':function(){return _0x2b3409;}}),Object[_0x4dde1e(0x21b)](_0x580277,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _0xcdf363;}});}));function _0x5a67(_0x2970c2,_0x3ec5b8){_0x2970c2=_0x2970c2-0x1f3;const _0x11128e=_0x1112();let _0x5a67ff=_0x11128e[_0x2970c2];return _0x5a67ff;}function _0x1112(){const _0x2f2ee0=['Inject','16093UwhjTX','registerHTTPInterceptor','_registerDependencies','723JgASCW','_config','_configService','close','pluginName','1pHsSWx','object','_httpService','UniverCollaborationClientPlugin','1370bXnjvV','680NECcGq','iterator','toDisposable','CollaborationSocketService','@univerjs-pro/collaboration-client-node','UniverLicensePlugin','dispose','4844WQKlbi','UniverNetworkPlugin','500210lmczCf','18AOgFBk','exports','_doCreateSocket','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','packageName','Observable','decorate','function','NodeCollaborationSocketService','ILogService','toStringTag','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','UniverCollaborationPlugin','@univerjs/network','version','default','ISocketService','registerDependencies','IConfigService','HTTPService','UniverNetwork','next','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','collaboration-client-node.config','getConfig','WebSocket','merge','toPrimitive','symbol','UniverProCollaborationClient','1.0.0-beta.0','defineProperty','_injector','@univerjs-pro/license','1160172KgmirH','share','string','open','507786XbvZfk','error','Disposable','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DisposableCollection','@univerjs-pro/collaboration-client','rxjs','@univerjs/core','973305OZckEk','21875ZPtXDh','ISnapshotServerService','length','setConfig','call','removeEventListener','message','createSocket','UniverProLicense','customHeaders','addEventListener','add','UniverProCollaborationClientNode','pipe','DependentOn'];_0x1112=function(){return _0x2f2ee0;};return _0x1112();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.0.0-alpha.7",
3
+ "version": "1.0.0-beta.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>",
@@ -52,17 +52,18 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "ws": "8.21.0",
55
- "@univerjs-pro/collaboration-client": "1.0.0-alpha.7",
56
- "@univerjs/core": "1.0.0-alpha.7",
57
- "@univerjs/network": "1.0.0-alpha.7",
58
- "@univerjs-pro/collaboration": "1.0.0-alpha.7"
55
+ "@univerjs-pro/license": "1.0.0-beta.0",
56
+ "@univerjs/core": "1.0.0-beta.0",
57
+ "@univerjs/network": "1.0.0-beta.0",
58
+ "@univerjs-pro/collaboration-client": "1.0.0-beta.0",
59
+ "@univerjs-pro/collaboration": "1.0.0-beta.0"
59
60
  },
60
61
  "devDependencies": {
61
62
  "@types/ws": "8.18.1",
62
63
  "rxjs": "7.8.2",
63
64
  "typescript": "^6.0.3",
64
65
  "vitest": "^4.1.10",
65
- "@univerjs-infra/shared": "1.0.0-alpha.7"
66
+ "@univerjs-infra/shared": "1.0.0-beta.0"
66
67
  },
67
68
  "scripts": {
68
69
  "test": "vitest run",