@univerjs-pro/live-share 0.18.0 → 0.19.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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4902d7=_0x9e8e;(function(_0x3d06c3,_0x90003b){const _0x5d0f5a=_0x9e8e,_0x3be47b=_0x3d06c3();while(!![]){try{const _0x47f9ca=parseInt(_0x5d0f5a(0x1af))/0x1*(parseInt(_0x5d0f5a(0x1cd))/0x2)+parseInt(_0x5d0f5a(0x1cb))/0x3+-parseInt(_0x5d0f5a(0x1ad))/0x4+-parseInt(_0x5d0f5a(0x1bf))/0x5+parseInt(_0x5d0f5a(0x1c9))/0x6*(-parseInt(_0x5d0f5a(0x1ac))/0x7)+-parseInt(_0x5d0f5a(0x1cf))/0x8*(parseInt(_0x5d0f5a(0x1c5))/0x9)+parseInt(_0x5d0f5a(0x1ab))/0xa;if(_0x47f9ca===_0x90003b)break;else _0x3be47b['push'](_0x3be47b['shift']());}catch(_0x28dcd3){_0x3be47b['push'](_0x3be47b['shift']());}}}(_0x1f39,0x59411));let e=require(`@univerjs-pro/live-share`),t=require(`@univerjs/core`),n=require(`@univerjs/core/facade`);function r(_0x277a47){'@babel/helpers - typeof';const _0x2320b9=_0x9e8e;return r=typeof Symbol==_0x2320b9(0x1a8)&&typeof Symbol[_0x2320b9(0x1c4)]==_0x2320b9(0x1a7)?function(_0x3fd711){return typeof _0x3fd711;}:function(_0x210515){const _0x506169=_0x2320b9;return _0x210515&&typeof Symbol==_0x506169(0x1a8)&&_0x210515[_0x506169(0x1b2)]===Symbol&&_0x210515!==Symbol[_0x506169(0x1ce)]?_0x506169(0x1a7):typeof _0x210515;},r(_0x277a47);}function _0x1f39(){const _0x5de3ce=['default','string','No\x20active\x20workbook\x20found.','IDLE','object','toPrimitive','_injector','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getCurrentUnitOfType','startPresenting','3243765iZZSQh','LiveShareStatusEnum','getStatus','get','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','iterator','1530UwxCPU','FEnum','stopFollowing','_liveShareController','12WCzrJZ','getLiveShareStatus','996645KdAWZe','LiveShareController','235666dbsYIT','prototype','18152ySMakE','FUniver','startFollowing','extend','defineProperty','IUniverInstanceService','symbol','function','UniverInstanceType','call','10799390LzyVHX','702303chxMot','1602372MjbwgJ','LiveShareStatus','5RqhRGq','getUnitId','stopPresenting','constructor','UNIVER_SHEET'];_0x1f39=function(){return _0x5de3ce;};return _0x1f39();}function i(_0x3376b0,_0x378ada){const _0x3392c8=_0x9e8e;if(r(_0x3376b0)!=_0x3392c8(0x1b8)||!_0x3376b0)return _0x3376b0;var _0x5bd6e7=_0x3376b0[Symbol[_0x3392c8(0x1b9)]];if(_0x5bd6e7!==void 0x0){var _0x379c25=_0x5bd6e7[_0x3392c8(0x1aa)](_0x3376b0,_0x378ada||_0x3392c8(0x1b4));if(r(_0x379c25)!=_0x3392c8(0x1b8))return _0x379c25;throw TypeError(_0x3392c8(0x1c3));}return(_0x378ada===_0x3392c8(0x1b5)?String:Number)(_0x3376b0);}function a(_0x4a7d88){const _0x338bd2=_0x9e8e;var _0x35a943=i(_0x4a7d88,_0x338bd2(0x1b5));return r(_0x35a943)==_0x338bd2(0x1a7)?_0x35a943:_0x35a943+'';}function o(_0x5f1086,_0x1f75f7,_0xce64e2){const _0x1f53db=_0x9e8e;return(_0x1f75f7=a(_0x1f75f7))in _0x5f1086?Object[_0x1f53db(0x1d3)](_0x5f1086,_0x1f75f7,{'value':_0xce64e2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5f1086[_0x1f75f7]=_0xce64e2,_0x5f1086;}var s=class extends n['FUniver']{constructor(..._0x3589f1){const _0x3c57e6=_0x9e8e;super(..._0x3589f1),o(this,_0x3c57e6(0x1c8),void 0x0);}['_initialize'](_0x14f110){const _0x3b733f=_0x9e8e;this[_0x3b733f(0x1c8)]=_0x14f110[_0x3b733f(0x1c2)](e[_0x3b733f(0x1cc)]);}[_0x4902d7(0x1ca)](){const _0x32eb8b=_0x4902d7;var _0x121a55;let _0x1237dc=this[_0x32eb8b(0x1ba)]['get'](t[_0x32eb8b(0x1a6)])[_0x32eb8b(0x1bd)](t[_0x32eb8b(0x1a9)][_0x32eb8b(0x1b3)]);if(!_0x1237dc)throw Error(_0x32eb8b(0x1b6));let _0x133bc6=_0x1237dc['getUnitId'](),_0x1087ae=this[_0x32eb8b(0x1c8)]['getLiveShareCoordinatorSync'](_0x133bc6);return(_0x121a55=_0x1087ae==null?void 0x0:_0x1087ae[_0x32eb8b(0x1c1)]())==null?e[_0x32eb8b(0x1ae)][_0x32eb8b(0x1b7)]:_0x121a55;}[_0x4902d7(0x1d1)](){const _0x222843=_0x4902d7;let _0x1f3540=this[_0x222843(0x1ba)][_0x222843(0x1c2)](t[_0x222843(0x1a6)])[_0x222843(0x1bd)](t[_0x222843(0x1a9)][_0x222843(0x1b3)]);if(!_0x1f3540)throw Error('No\x20active\x20workbook\x20found.');let _0x5e8c63=_0x1f3540['getUnitId'](),_0x436ee7=this[_0x222843(0x1c8)]['getLiveShareCoordinatorSync'](_0x5e8c63);if(!_0x436ee7)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x436ee7[_0x222843(0x1d1)]();}[_0x4902d7(0x1c7)](){const _0x1f8f05=_0x4902d7;let _0x1c122b=this['_injector'][_0x1f8f05(0x1c2)](t[_0x1f8f05(0x1a6)])[_0x1f8f05(0x1bd)](t[_0x1f8f05(0x1a9)][_0x1f8f05(0x1b3)]);if(!_0x1c122b)throw Error(_0x1f8f05(0x1b6));let _0x5e1e1a=_0x1c122b[_0x1f8f05(0x1b0)](),_0xd5147f=this[_0x1f8f05(0x1c8)]['getLiveShareCoordinatorSync'](_0x5e1e1a);if(!_0xd5147f)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xd5147f[_0x1f8f05(0x1c7)]();}[_0x4902d7(0x1be)](){const _0x57f580=_0x4902d7;let _0x5217c2=this['_injector']['get'](t['IUniverInstanceService'])['getCurrentUnitOfType'](t[_0x57f580(0x1a9)][_0x57f580(0x1b3)]);if(!_0x5217c2)throw Error(_0x57f580(0x1b6));let _0xed0c41=_0x5217c2[_0x57f580(0x1b0)](),_0x251cfb=this['_liveShareController'][_0x57f580(0x1bb)](_0xed0c41);if(!_0x251cfb)throw Error(_0x57f580(0x1bc));_0x251cfb['tryStartPresenting']();}[_0x4902d7(0x1b1)](){const _0x228f61=_0x4902d7;let _0x61c4fa=this[_0x228f61(0x1ba)][_0x228f61(0x1c2)](t['IUniverInstanceService'])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x228f61(0x1b3)]);if(!_0x61c4fa)throw Error(_0x228f61(0x1b6));let _0x5ab54f=_0x61c4fa[_0x228f61(0x1b0)](),_0x3df082=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x5ab54f);if(!_0x3df082)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3df082[_0x228f61(0x1b1)]();}};n[_0x4902d7(0x1d0)][_0x4902d7(0x1d2)](s);function _0x9e8e(_0x4553b2,_0x305fa9){_0x4553b2=_0x4553b2-0x1a6;const _0x1f394e=_0x1f39();let _0x9e8e72=_0x1f394e[_0x4553b2];return _0x9e8e72;}var c=class extends n['FEnum']{get[_0x4902d7(0x1c0)](){const _0x12f860=_0x4902d7;return e[_0x12f860(0x1ae)];}};n[_0x4902d7(0x1c6)][_0x4902d7(0x1d2)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x57be82=_0x56a0;(function(_0x4c7f9e,_0x2df556){const _0x1ed2ed=_0x56a0,_0x127493=_0x4c7f9e();while(!![]){try{const _0x1176f5=parseInt(_0x1ed2ed(0x135))/0x1+-parseInt(_0x1ed2ed(0xd0))/0x2+parseInt(_0x1ed2ed(0xfb))/0x3+-parseInt(_0x1ed2ed(0x143))/0x4*(-parseInt(_0x1ed2ed(0xd9))/0x5)+parseInt(_0x1ed2ed(0x150))/0x6+parseInt(_0x1ed2ed(0x10f))/0x7+-parseInt(_0x1ed2ed(0x108))/0x8*(-parseInt(_0x1ed2ed(0x147))/0x9);if(_0x1176f5===_0x2df556)break;else _0x127493['push'](_0x127493['shift']());}catch(_0x380c95){_0x127493['push'](_0x127493['shift']());}}}(_0x556d,0xd9e01),Object['defineProperty'](exports,Symbol[_0x57be82(0x14e)],{'value':'Module'}));let e=require(`@univerjs/core`),t=require(`@univerjs/ui`),n=require(`@univerjs/design`),r=require(`@univerjs/icons`),i=require(`react`),a=require(`@univerjs-pro/collaboration`),o=require(`@univerjs-pro/collaboration-client`),s=require(`@univerjs/sheets`),c=require(`rxjs`),l=require(`rxjs/operators`),u=require(`react/jsx-runtime`),d=require(`@univerjs/sheets-ui`);function f(_0x28f3c5){'@babel/helpers - typeof';const _0x45a64d=_0x57be82;return f=typeof Symbol==_0x45a64d(0x11a)&&typeof Symbol[_0x45a64d(0x140)]==_0x45a64d(0x12b)?function(_0x4e5811){return typeof _0x4e5811;}:function(_0x5b2331){const _0x2dbf6c=_0x45a64d;return _0x5b2331&&typeof Symbol==_0x2dbf6c(0x11a)&&_0x5b2331[_0x2dbf6c(0xeb)]===Symbol&&_0x5b2331!==Symbol['prototype']?_0x2dbf6c(0x12b):typeof _0x5b2331;},f(_0x28f3c5);}function p(_0x23c0ee,_0x447be7){const _0x2c1d10=_0x57be82;if(f(_0x23c0ee)!=_0x2c1d10(0xd7)||!_0x23c0ee)return _0x23c0ee;var _0x241794=_0x23c0ee[Symbol[_0x2c1d10(0x106)]];if(_0x241794!==void 0x0){var _0x2b9efb=_0x241794[_0x2c1d10(0xcf)](_0x23c0ee,_0x447be7||_0x2c1d10(0x16f));if(f(_0x2b9efb)!=_0x2c1d10(0xd7))return _0x2b9efb;throw TypeError(_0x2c1d10(0x155));}return(_0x447be7===_0x2c1d10(0xff)?String:Number)(_0x23c0ee);}function m(_0x3e9e55){const _0x509019=_0x57be82;var _0x4fca31=p(_0x3e9e55,_0x509019(0xff));return f(_0x4fca31)==_0x509019(0x12b)?_0x4fca31:_0x4fca31+'';}function h(_0x597c8e,_0x8b1544,_0x2ce8a7){const _0x15401a=_0x57be82;return(_0x8b1544=m(_0x8b1544))in _0x597c8e?Object[_0x15401a(0x125)](_0x597c8e,_0x8b1544,{'value':_0x2ce8a7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x597c8e[_0x8b1544]=_0x2ce8a7,_0x597c8e;}var g=class extends e[_0x57be82(0x122)]{constructor(..._0x392b58){const _0xac6b4e=_0x57be82;super(..._0x392b58),h(this,_0xac6b4e(0x159),new Set()),h(this,_0xac6b4e(0xd8),new Set());}['registerSharedOperation'](_0x4f9214){const _0xe7622f=_0x57be82;return this[_0xe7622f(0x159)][_0xe7622f(0xd6)](_0x4f9214),(0x0,e[_0xe7622f(0x10e)])(()=>this['_sharedOperations'][_0xe7622f(0x181)](_0x4f9214));}[_0x57be82(0x14b)](_0x4df79d){const _0xa59996=_0x57be82;return this['_reporters']['add'](_0x4df79d),(0x0,e[_0xa59996(0x10e)])(()=>this[_0xa59996(0xd8)][_0xa59996(0x181)](_0x4df79d));}[_0x57be82(0xf0)](_0x3f3802){const _0x3df8a4=_0x57be82;return this[_0x3df8a4(0x159)][_0x3df8a4(0x15c)](_0x3f3802);}[_0x57be82(0x10d)](_0x1dfc63){const _0x540249=_0x57be82;return Array[_0x540249(0x128)](this[_0x540249(0xd8)])[_0x540249(0x129)](_0x36686a=>_0x36686a(_0x1dfc63));}};function _(_0x7281f3,_0xdaa5b){return function(_0x421621,_0x5a4d9b){_0xdaa5b(_0x421621,_0x5a4d9b,_0x7281f3);};}function v(_0x51bca9,_0x284c01,_0x43a9e7,_0x1b38e4){const _0x1b89fd=_0x57be82;var _0x5a6051=arguments[_0x1b89fd(0x158)],_0x32c33c=_0x5a6051<0x3?_0x284c01:_0x1b38e4===null?_0x1b38e4=Object[_0x1b89fd(0xcd)](_0x284c01,_0x43a9e7):_0x1b38e4,_0x3d6024;if(typeof Reflect=='object'&&typeof Reflect[_0x1b89fd(0x17b)]=='function')_0x32c33c=Reflect[_0x1b89fd(0x17b)](_0x51bca9,_0x284c01,_0x43a9e7,_0x1b38e4);else{for(var _0xe3cfef=_0x51bca9[_0x1b89fd(0x158)]-0x1;_0xe3cfef>=0x0;_0xe3cfef--)(_0x3d6024=_0x51bca9[_0xe3cfef])&&(_0x32c33c=(_0x5a6051<0x3?_0x3d6024(_0x32c33c):_0x5a6051>0x3?_0x3d6024(_0x284c01,_0x43a9e7,_0x32c33c):_0x3d6024(_0x284c01,_0x43a9e7))||_0x32c33c);}return _0x5a6051>0x3&&_0x32c33c&&Object[_0x1b89fd(0x125)](_0x284c01,_0x43a9e7,_0x32c33c),_0x32c33c;}let y=class extends e[_0x57be82(0x141)]{constructor(_0x5dff12,_0x78522e,_0x5d8a8a){const _0x4daaeb=_0x57be82;super(),this['_univerInstanceService']=_0x5dff12,this[_0x4daaeb(0x11f)]=_0x78522e,this[_0x4daaeb(0xda)]=_0x5d8a8a,h(this,'_entities',new Map()),this['_init']();}async[_0x57be82(0x156)](_0x473335){const _0x12b523=_0x57be82;return this[_0x12b523(0xd4)][_0x12b523(0x15c)](_0x473335)||await this[_0x12b523(0x15f)](_0x473335),this[_0x12b523(0xd4)]['get'](_0x473335);}[_0x57be82(0xdb)](_0x86240d){const _0x1810d8=_0x57be82;var _0x1dcbb8;return(_0x1dcbb8=this[_0x1810d8(0xd4)]['get'](_0x86240d))==null?null:_0x1dcbb8;}[_0x57be82(0x146)](){const _0x477d69=_0x57be82;this[_0x477d69(0x101)][_0x477d69(0x166)](e[_0x477d69(0x103)][_0x477d69(0x13a)])[_0x477d69(0x120)]((0x0,l['takeUntil'])(this[_0x477d69(0xf9)]))['subscribe'](async _0x42c844=>{const _0x55f9ed=_0x477d69;let _0x4f77c4=_0x42c844[_0x55f9ed(0xed)]();this[_0x55f9ed(0xd4)][_0x55f9ed(0x15c)](_0x4f77c4)||this[_0x55f9ed(0x15f)](_0x4f77c4);}),this[_0x477d69(0x101)][_0x477d69(0xca)](e[_0x477d69(0x103)][_0x477d69(0x13a)])['pipe']((0x0,l[_0x477d69(0xe2)])(this[_0x477d69(0xf9)]))[_0x477d69(0x17c)](_0x4aa9c2=>{const _0x54d996=_0x477d69;let _0x43848d=_0x4aa9c2['getUnitId'](),_0x3cd56c=this[_0x54d996(0xd4)][_0x54d996(0x171)](_0x43848d);_0x3cd56c==null||_0x3cd56c['dispose']();});}async[_0x57be82(0x15f)](_0x1acb4c){const _0x286de9=_0x57be82;let _0x5b0282=await this[_0x286de9(0xda)][_0x286de9(0x151)](_0x1acb4c),_0x494e87=this[_0x286de9(0x11f)][_0x286de9(0x121)](x,_0x1acb4c,_0x5b0282);return _0x494e87[_0x286de9(0x15e)](),this[_0x286de9(0xd4)][_0x286de9(0xe1)](_0x1acb4c,_0x494e87),_0x494e87;}};y=v([_(0x0,e[_0x57be82(0x167)]),_(0x1,(0x0,e[_0x57be82(0x105)])(e['Injector'])),_(0x2,(0x0,e[_0x57be82(0x105)])(o[_0x57be82(0x11c)]))],y);let b=function(_0x5dfd10){const _0xf05283=_0x57be82;return _0x5dfd10[_0xf05283(0x144)]=_0xf05283(0x157),_0x5dfd10[_0xf05283(0x14a)]=_0xf05283(0x100),_0x5dfd10[_0xf05283(0x142)]='following',_0x5dfd10[_0xf05283(0x115)]=_0xf05283(0xc9),_0x5dfd10[_0xf05283(0xe0)]=_0xf05283(0xe4),_0x5dfd10;}({}),x=class extends e[_0x57be82(0x141)]{get['_status'](){return this['_status$']['getValue']();}constructor(_0x24c278,_0x4ea31d,_0x17fd88,_0xaefc9e,_0x683b23){const _0x3a66c5=_0x57be82;super(),this[_0x3a66c5(0x126)]=_0x24c278,this['_collabSession']=_0x4ea31d,this[_0x3a66c5(0x16b)]=_0x17fd88,this['_liveShareService']=_0xaefc9e,this[_0x3a66c5(0x176)]=_0x683b23,h(this,'_status$',new c[(_0x3a66c5(0x13d))](b[_0x3a66c5(0x14a)])),h(this,_0x3a66c5(0x127),this['_status$'][_0x3a66c5(0xfa)]()),h(this,_0x3a66c5(0x146),!0x1),h(this,_0x3a66c5(0x183),null),h(this,_0x3a66c5(0xfd),null);}[_0x57be82(0x13f)](){const _0x533cf9=_0x57be82;var _0x104584;(_0x104584=this[_0x533cf9(0x183)])==null||_0x104584['dispose'](),this['_status$'][_0x533cf9(0x124)](b[_0x533cf9(0x14a)]),this['_status$'][_0x533cf9(0xe5)]();}[_0x57be82(0xe3)](){const _0x104a8d=_0x57be82;return this[_0x104a8d(0x136)];}[_0x57be82(0x15e)](){const _0x3ceace=_0x57be82;this[_0x3ceace(0x146)]||(this[_0x3ceace(0x146)]=!0x0,this[_0x3ceace(0x182)][_0x3ceace(0x145)][_0x3ceace(0x120)]((0x0,l['takeUntil'])(this[_0x3ceace(0xf9)]))['subscribe'](_0x3853c1=>{const _0x568725=_0x3ceace;switch(_0x3853c1){case o['SessionStatus'][_0x568725(0x144)]:this[_0x568725(0x107)]();break;case o['SessionStatus'][_0x568725(0xfc)]:this[_0x568725(0x165)]();break;default:}}),this['_collabSession']['event$'][_0x3ceace(0x120)]((0x0,l[_0x3ceace(0xe2)])(this[_0x3ceace(0xf9)]))['subscribe'](_0x505d9d=>{const _0x42ed23=_0x3ceace;let {eventID:_0x2d3f}=_0x505d9d;switch(_0x2d3f){case a[_0x42ed23(0x17d)]['LIVESHARE_NEW_HOST']:this[_0x42ed23(0x16d)](_0x505d9d);break;case a[_0x42ed23(0x17d)][_0x42ed23(0x163)]:this['_handleOperation'](_0x505d9d);break;case a[_0x42ed23(0x17d)][_0x42ed23(0x10a)]:this['_handleTerminate']();break;case a[_0x42ed23(0x17d)][_0x42ed23(0xdf)]:this['_handleNewChangeSets'](_0x505d9d);break;default:}}));}['tryStartPresenting'](){const _0x24d7e9=_0x57be82;this['_collabSession'][_0x24d7e9(0x118)]({'eventID':a[_0x24d7e9(0x17d)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x24d7e9(0x126)],'userID':this[_0x24d7e9(0x182)][_0x24d7e9(0x117)]()}},this['_unitID']);}[_0x57be82(0x130)](){const _0x10cc40=_0x57be82;this['_status']===b[_0x10cc40(0xe0)]&&(this[_0x10cc40(0x170)][_0x10cc40(0x124)](b[_0x10cc40(0x14a)]),this[_0x10cc40(0x182)][_0x10cc40(0x118)]({'eventID':a[_0x10cc40(0x17d)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x10cc40(0x126)]}},this[_0x10cc40(0x126)]));}[_0x57be82(0x172)](){const _0x15e52b=_0x57be82;this['_status']===b[_0x15e52b(0x115)]&&(this[_0x15e52b(0x170)][_0x15e52b(0x124)](b[_0x15e52b(0x142)]),this['_startFollowing']());}[_0x57be82(0x114)](){const _0x4373f7=_0x57be82;this[_0x4373f7(0x136)]===b[_0x4373f7(0x142)]&&this['_stopFollowing']();}['_handleNewHost'](_0x381db1){const _0x12cffa=_0x57be82;let {presenter:_0x4a5717}=_0x381db1[_0x12cffa(0x138)],_0x165937=this[_0x12cffa(0x182)]['getMemberID']();this[_0x12cffa(0xfd)]=_0x4a5717,_0x4a5717===_0x165937?(this[_0x12cffa(0xdd)](),this['_startPresenting']()):this[_0x12cffa(0x136)]!==b[_0x12cffa(0x115)]&&(this[_0x12cffa(0x10c)](),this['_startFollowing']());}['_fetchOperations'](){const _0x52a0ef=_0x57be82;let _0x241f53={'eventID':a[_0x52a0ef(0x17d)][_0x52a0ef(0x12d)]};this[_0x52a0ef(0x182)]['send'](_0x241f53,this[_0x52a0ef(0x126)]);}[_0x57be82(0x111)](){const _0x22c379=_0x57be82;this[_0x22c379(0xfd)]=null,this[_0x22c379(0x136)]!==b['PRESENTING']&&this[_0x22c379(0xe8)]();}[_0x57be82(0xdc)](_0x33d511){const _0x3b314e=_0x57be82;if(this[_0x3b314e(0x136)]===b['FOLLOWING']&&this[_0x3b314e(0xfd)]===_0x33d511['data'][_0x3b314e(0x162)]){let _0x697c53=(0x0,a['parseProtocolChangeset'])(_0x33d511[_0x3b314e(0x138)])[_0x3b314e(0x153)][_0x3b314e(0x119)]()[_0x3b314e(0x113)](_0x4f3cc9=>_0x4f3cc9['id']===s['InsertSheetMutation']['id']);if(_0x697c53){let _0x43899a=_0x697c53[_0x3b314e(0xc6)][_0x3b314e(0x173)],_0x571ab9=_0x697c53[_0x3b314e(0xc6)]['sheet']['id'];setTimeout(()=>{const _0x3b4820=_0x3b314e;this[_0x3b4820(0x176)][_0x3b4820(0xf7)](s[_0x3b4820(0x12f)]['id'],{'unitId':_0x43899a,'subUnitId':_0x571ab9},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x55e749=_0x57be82;this['_status$']['next'](b[_0x55e749(0xe0)]);let _0x4d22a9=new Map(),_0xe7d836=this[_0x55e749(0x183)]=new e[(_0x55e749(0x12e))]();_0xe7d836[_0x55e749(0xd6)]((0x0,e[_0x55e749(0x10e)])(()=>{const _0x3cfd8b=_0x55e749;_0x4d22a9[_0x3cfd8b(0x149)](_0x3c48f6=>_0x3c48f6[_0x3cfd8b(0xe5)]()),_0x4d22a9[_0x3cfd8b(0xcc)]();})),_0xe7d836[_0x55e749(0xd6)](this[_0x55e749(0x176)]['onCommandExecuted'](_0x43bc1c=>{const _0x238f41=_0x55e749;if(_0x43bc1c[_0x238f41(0x123)]!==e[_0x238f41(0x13e)]['OPERATION']||!this[_0x238f41(0x177)][_0x238f41(0xf0)](_0x43bc1c['id']))return;let {id:_0x48bebf}=_0x43bc1c,_0x4dfb0a;if(_0x4d22a9[_0x238f41(0x15c)](_0x48bebf))_0x4dfb0a=_0x4d22a9['get'](_0x48bebf);else{var _0x2eeb4b;_0x4dfb0a=new c[(_0x238f41(0x137))](),_0x4d22a9[_0x238f41(0xe1)](_0x48bebf,_0x4dfb0a),_0x4dfb0a[_0x238f41(0x120)]((0x0,l['throttleTime'])((_0x2eeb4b=this[_0x238f41(0x16b)]['getConfig'](_0x238f41(0x148)))==null?0xc8:_0x2eeb4b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x238f41(0x17c)](_0x4ebd3e=>{const _0x2669f5=_0x238f41;this[_0x2669f5(0x182)]['send']({'eventID':a['CollaborationEvent'][_0x2669f5(0x163)],'data':{'unitID':this['_unitID'],'operations':{[_0x4ebd3e['id']]:{'id':_0x4ebd3e['id'],'params':JSON[_0x2669f5(0x164)](_0x4ebd3e[_0x2669f5(0xc6)])}}}},this[_0x2669f5(0x126)]);});}_0x4dfb0a[_0x238f41(0x124)](_0x43bc1c);})),this['_liveShareService'][_0x55e749(0x10d)](this[_0x55e749(0x126)])['forEach'](_0x1656da=>this[_0x55e749(0x182)][_0x55e749(0x118)]({'eventID':a[_0x55e749(0x17d)][_0x55e749(0x163)],'data':{'unitID':this['_unitID'],'operations':{[_0x1656da['id']]:{'id':_0x1656da['id'],'params':JSON[_0x55e749(0x164)](_0x1656da['params'])}}}},this[_0x55e749(0x126)]));}[_0x57be82(0x10c)](){const _0x30cf9d=_0x57be82;var _0x4e4806;this[_0x30cf9d(0x170)][_0x30cf9d(0x124)](b[_0x30cf9d(0x14a)]),(_0x4e4806=this[_0x30cf9d(0x183)])==null||_0x4e4806[_0x30cf9d(0x13f)](),this[_0x30cf9d(0x183)]=null;}[_0x57be82(0x16c)](){const _0x4eb0fc=_0x57be82;var _0x445aeb;(_0x445aeb=this[_0x4eb0fc(0x183)])==null||_0x445aeb[_0x4eb0fc(0x13f)](),this[_0x4eb0fc(0x170)]['next'](b[_0x4eb0fc(0x142)]);}[_0x57be82(0xe8)](){const _0x3df83e=_0x57be82;var _0x11d142;this[_0x3df83e(0x170)][_0x3df83e(0x124)](b[_0x3df83e(0x14a)]),(_0x11d142=this['_commandDisposable'])==null||_0x11d142['dispose'](),this[_0x3df83e(0x183)]=null;}[_0x57be82(0xdd)](){const _0x1ea025=_0x57be82;var _0x42b763;this[_0x1ea025(0x170)][_0x1ea025(0x124)](b['NOT_FOLLOWING']),(_0x42b763=this[_0x1ea025(0x183)])==null||_0x42b763[_0x1ea025(0x13f)]();}[_0x57be82(0x112)](_0x4eea2f){const _0x43088a=_0x57be82;if([b['PRESENTING'],b[_0x43088a(0x115)],b[_0x43088a(0x144)]][_0x43088a(0xe6)](this[_0x43088a(0x136)])||!_0x4eea2f[_0x43088a(0x138)]['presenter']||_0x4eea2f['data'][_0x43088a(0xef)]===this['_collabSession'][_0x43088a(0x117)]())return;this[_0x43088a(0x136)]===b[_0x43088a(0x14a)]&&this['_startFollowing']();let _0xb11d33=_0x4eea2f[_0x43088a(0x138)]['operations'];Object['values'](_0xb11d33)['forEach'](_0x22a116=>{const _0x53eed6=_0x43088a;this[_0x53eed6(0x176)][_0x53eed6(0xf7)](_0x22a116['id'],_0x22a116['params']?JSON[_0x53eed6(0xc8)](_0x22a116[_0x53eed6(0xc6)]):null,{'fromCollab':!0x0});});}[_0x57be82(0x107)](){const _0x5d5f63=_0x57be82;var _0x35e3c6;this[_0x5d5f63(0x170)]['next'](b[_0x5d5f63(0x144)]),(_0x35e3c6=this[_0x5d5f63(0x183)])==null||_0x35e3c6[_0x5d5f63(0x13f)]();}[_0x57be82(0x165)](){const _0x33f4a3=_0x57be82;this[_0x33f4a3(0x170)][_0x33f4a3(0x124)](b[_0x33f4a3(0x14a)]),this[_0x33f4a3(0xce)]();}};x=v([_(0x2,e[_0x57be82(0xe9)]),_(0x3,(0x0,e['Inject'])(g)),_(0x4,e['ICommandService'])],x);function S(){const _0x6c2e2c=_0x57be82;let _0x3e2480=(0x0,t[_0x6c2e2c(0xd1)])(y),_0x178897=(0x0,t['useDependency'])(e['IUniverInstanceService']),_0x2c0726=(0x0,t['useObservable'])(()=>_0x178897[_0x6c2e2c(0x17a)](e[_0x6c2e2c(0x103)][_0x6c2e2c(0x13a)]),void 0x0,!0x1,[]),[_0x8c2516,_0x4b676b]=(0x0,i['useState'])(null),[_0x23fb23,_0x29e355]=(0x0,i[_0x6c2e2c(0xf1)])(b[_0x6c2e2c(0x14a)]),_0x241fe6=(0x0,i[_0x6c2e2c(0x168)])(null);return(0x0,i[_0x6c2e2c(0x17e)])(()=>(_0x2c0726&&_0x3e2480[_0x6c2e2c(0x156)](_0x2c0726[_0x6c2e2c(0xed)]())[_0x6c2e2c(0xcb)](_0x2311fc=>{const _0xb475c9=_0x6c2e2c;_0x4b676b(_0x2311fc),_0x241fe6[_0xb475c9(0x179)]=_0x2311fc[_0xb475c9(0x127)][_0xb475c9(0x17c)](_0x459a90=>{_0x29e355(_0x459a90);});}),()=>{const _0x2d85fe=_0x6c2e2c;var _0x2612a9;(_0x2612a9=_0x241fe6['current'])==null||_0x2612a9[_0x2d85fe(0xc4)](),_0x241fe6[_0x2d85fe(0x179)]=null;}),[_0x2c0726,_0x3e2480]),_0x8c2516?(0x0,u[_0x6c2e2c(0x161)])(n[_0x6c2e2c(0xc5)],{'align':_0x6c2e2c(0x11b),'disabled':_0x23fb23===b[_0x6c2e2c(0x144)],'className':_0x6c2e2c(0x132),'overlay':(0x0,u[_0x6c2e2c(0x161)])(C,{'status':_0x23fb23,'coordinator':_0x8c2516}),'children':(0x0,u[_0x6c2e2c(0x161)])(_0x6c2e2c(0x180),{'className':(0x0,n[_0x6c2e2c(0x15a)])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x23fb23===b[_0x6c2e2c(0x144)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x23fb23!==b[_0x6c2e2c(0x144)]}),'type':'button','children':(0x0,u[_0x6c2e2c(0x161)])(r[_0x6c2e2c(0x160)],{'className':_0x6c2e2c(0x11e)})})}):null;}function C(_0x42fdee){const _0x527c07=_0x57be82;let {status:_0x28f3b4,coordinator:_0x2ec964}=_0x42fdee;switch(_0x28f3b4){case b[_0x527c07(0x14a)]:return(0x0,u[_0x527c07(0x161)])(w,{'coordinator':_0x2ec964});case b[_0x527c07(0x142)]:return(0x0,u[_0x527c07(0x161)])(T,{'coordinator':_0x2ec964});case b['NOT_FOLLOWING']:return(0x0,u[_0x527c07(0x161)])(E,{'coordinator':_0x2ec964});case b[_0x527c07(0x144)]:return(0x0,u[_0x527c07(0x161)])(O,{});case b[_0x527c07(0xe0)]:return(0x0,u[_0x527c07(0x161)])(D,{'coordinator':_0x2ec964});default:return null;}}function w(_0x1775a2){const _0x36aeae=_0x57be82;let {coordinator:_0x2a6b0e}=_0x1775a2;return(0x0,u['jsxs'])(u[_0x36aeae(0xd3)],{'children':[(0x0,u[_0x36aeae(0x161)])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x36aeae(0xc7)}),(0x0,u[_0x36aeae(0x161)])(n['Button'],{'onClick':()=>_0x2a6b0e[_0x36aeae(0x116)](),'children':'Start'})]});}function _0x556d(){const _0x276368=['status$','from','map','registerComponent','symbol','_config','LIVESHARE_FETCH_OPERATIONS','DisposableCollection','SetWorksheetActiveOperation','stopPresenting','0.18.0','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-white\x20dark:!univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','connectInjector','_mountLiveShare','487484pNBteD','_status','Subject','data','UniverCollaborationClientPlugin','UNIVER_SHEET','univer-mb-3\x20univer-w-full\x20univer-text-sm','pluginName','BehaviorSubject','CommandType','dispose','iterator','RxDisposable','FOLLOWING','22284DTXoDb','OFFLINE','sessionStatus$','_init','897525rxpwGo','SAME_OPERATION_SHARE_INTERVAL','forEach','IDLE','registerInitialStateReporter','You\x27re\x20presenting\x20the\x20document','registerSharedOperation','toStringTag','SetScrollOperation','738366WaFsNA','requireSession','LiveShare','mutations','DesktopLiveShareController','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getLiveShareCoordinator','offline','length','_sharedOperations','clsx','UNIVER_LIVE_SHARE_PLUGIN','has','mergeOverrideWithDependencies','init','_startLiveShareCoordinator','LiveShareIcon','jsx','memberID','LIVESHARE_OPERATION','stringify','_handleOnline','getTypeOfUnitAdded$','IUniverInstanceService','useRef','DependentOn','You\x27are\x20offline.','_configService','_startFollowing','_handleNewHost','packageName','default','_status$','get','startFollowing','unitId','registerDependencies','You\x27re\x20following\x20the\x20presenter','_commandService','_liveShareService','div','current','getCurrentTypeOfUnit$','decorate','subscribe','CollaborationEvent','useEffect','Injector','button','delete','_collabSession','_commandDisposable','LiveShareCoordinator','unsubscribe','Dropdown','params','Present\x20this\x20document','parse','not-following','getTypeOfUnitDisposed$','then','clear','getOwnPropertyDescriptor','_fetchOperations','call','3227280EnIvdq','useDependency','LiveShareService','Fragment','_entities','SetZoomRatioOperation','add','object','_reporters','105giZoUg','_collabSessionService','getLiveShareCoordinatorSync','_handleNewChangeSets','_stopFollowing','version','NEW_CHANGESETS','PRESENTING','set','takeUntil','getStatus','presenting','complete','includes','HEADER_MENU','_beIdle','IConfigService','text','constructor','override','getUnitId','disposeWithMe','presenter','shouldShareOperation','useState','Button','LiveShareStatus','merge','UniverLiveSharePlugin','Stop\x20presenting','executeCommand','live-share.config','dispose$','asObservable','2498796wxTWaN','ONLINE','_presenter','IUIPartsService','string','idle','_univerInstanceService','@univerjs-pro/live-share','UniverInstanceType','jsxs','Inject','toPrimitive','_handleOffline','40yZyISj','_uiPartsService','LIVESHARE_TERMINATE','UNIVER_UNKNOWN','_stopPresenting','getInitialStates','toDisposable','3128748RzlfdP','BuiltInUIPart','_handleTerminate','_handleOperation','find','stopFollowing','NOT_FOLLOWING','tryStartPresenting','getMemberID','send','reverse','function','end','CollaborationSessionService','onStarting','univer-size-4','_injector','pipe','createInstance','Disposable','type','next','defineProperty','_unitID'];_0x556d=function(){return _0x276368;};return _0x556d();}function T(_0x18cb7c){const _0x2663ad=_0x57be82;let {coordinator:_0x3a8628}=_0x18cb7c;return(0x0,u['jsxs'])(u['Fragment'],{'children':[(0x0,u[_0x2663ad(0x161)])(_0x2663ad(0x178),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2663ad(0x175)}),(0x0,u[_0x2663ad(0x161)])(n[_0x2663ad(0xf2)],{'onClick':()=>_0x3a8628['stopFollowing'](),'children':'Stop\x20following'})]});}function E(_0x308831){const _0x4c4934=_0x57be82;let {coordinator:_0x45992b}=_0x308831;return(0x0,u[_0x4c4934(0x104)])(u[_0x4c4934(0xd3)],{'children':[(0x0,u['jsx'])(_0x4c4934(0x178),{'className':_0x4c4934(0x13b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,u[_0x4c4934(0x161)])(n[_0x4c4934(0xf2)],{'variant':_0x4c4934(0xea),'onClick':()=>_0x45992b[_0x4c4934(0x172)](),'children':'Start\x20following'})]});}function D(_0x31e7a4){const _0x522fff=_0x57be82;let {coordinator:_0x5710de}=_0x31e7a4;return(0x0,u['jsxs'])(u[_0x522fff(0xd3)],{'children':[(0x0,u[_0x522fff(0x161)])(_0x522fff(0x178),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x522fff(0x14c)}),(0x0,u[_0x522fff(0x161)])(n[_0x522fff(0xf2)],{'variant':_0x522fff(0x16f),'onClick':()=>_0x5710de['stopPresenting'](),'children':_0x522fff(0xf6)})]});}function O(){const _0x235a1d=_0x57be82;return(0x0,u['jsx'])(u[_0x235a1d(0xd3)],{'children':_0x235a1d(0x16a)});}let k=class extends e[_0x57be82(0x122)]{constructor(_0x3f91d2,_0x56243c){const _0x503a42=_0x57be82;super(),this[_0x503a42(0x11f)]=_0x3f91d2,this[_0x503a42(0x109)]=_0x56243c,this[_0x503a42(0x134)]();}[_0x57be82(0x134)](){const _0x1409f2=_0x57be82;this[_0x1409f2(0xee)](this[_0x1409f2(0x109)][_0x1409f2(0x12a)](t[_0x1409f2(0x110)][_0x1409f2(0xe7)],()=>(0x0,t[_0x1409f2(0x133)])(S,this[_0x1409f2(0x11f)])));}};k=v([_(0x0,(0x0,e[_0x57be82(0x105)])(e[_0x57be82(0x17f)])),_(0x1,t[_0x57be82(0xfe)])],k);var A=_0x57be82(0x102),j=_0x57be82(0x131);const M=_0x57be82(0xf8);Symbol(M);const N={};let P=class extends e[_0x57be82(0x122)]{constructor(_0x58e4f9){const _0x5f2c87=_0x57be82;super(),this['_liveShareService']=_0x58e4f9,this[_0x5f2c87(0x146)]();}[_0x57be82(0x146)](){const _0x2bf41c=_0x57be82;[d[_0x2bf41c(0xd5)]['id'],d[_0x2bf41c(0x14f)]['id'],s[_0x2bf41c(0x12f)]['id']][_0x2bf41c(0x149)](_0xc7ec53=>{const _0x3a65d0=_0x2bf41c;this[_0x3a65d0(0xee)](this[_0x3a65d0(0x177)][_0x3a65d0(0x14d)](_0xc7ec53));});}};P=v([_(0x0,(0x0,e[_0x57be82(0x105)])(g))],P);function _0x56a0(_0x3c0b7e,_0x2bd3ac){_0x3c0b7e=_0x3c0b7e-0xc3;const _0x556d3e=_0x556d();let _0x56a08c=_0x556d3e[_0x3c0b7e];return _0x56a08c;}let F=class extends e['Plugin']{constructor(_0x1de3b2=N,_0x2c5438,_0x49a038){const _0x34c21a=_0x57be82;super(),this[_0x34c21a(0x12c)]=_0x1de3b2,this['_injector']=_0x2c5438,this[_0x34c21a(0x16b)]=_0x49a038;let {..._0x4de9f9}=(0x0,e[_0x34c21a(0xf4)])({},N,this[_0x34c21a(0x12c)]);this[_0x34c21a(0x16b)]['setConfig'](M,_0x4de9f9);}[_0x57be82(0x11d)](){const _0x2e52b7=_0x57be82;(0x0,e[_0x2e52b7(0x174)])(this[_0x2e52b7(0x11f)],(0x0,e[_0x2e52b7(0x15d)])([[g],[y],[P],[k]],this['_config'][_0x2e52b7(0xec)])),(0x0,e['touchDependencies'])(this[_0x2e52b7(0x11f)],[[P]]);}['onRendered'](){const _0x19fb8e=_0x57be82;(0x0,e['touchDependencies'])(this[_0x19fb8e(0x11f)],[[k]]);}};h(F,_0x57be82(0x123),e['UniverInstanceType'][_0x57be82(0x10b)]),h(F,_0x57be82(0x13c),_0x57be82(0x15b)),h(F,_0x57be82(0x16e),A),h(F,_0x57be82(0xde),j),F=v([(0x0,e[_0x57be82(0x169)])(o[_0x57be82(0x139)]),_(0x1,(0x0,e[_0x57be82(0x105)])(e['Injector'])),_(0x2,e['IConfigService'])],F),Object[_0x57be82(0x125)](exports,_0x57be82(0x154),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x57be82(0x152)]=S,Object[_0x57be82(0x125)](exports,'LiveShareController',{'enumerable':!0x0,'get':function(){return y;}}),Object[_0x57be82(0x125)](exports,_0x57be82(0xc3),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x57be82(0xd2)]=g,exports[_0x57be82(0xf3)]=b,Object[_0x57be82(0x125)](exports,_0x57be82(0xf5),{'enumerable':!0x0,'get':function(){return F;}});
|
|
1
|
+
const _0x72cc93=_0x40b3;(function(_0x5bd521,_0x108990){const _0x23b7e2=_0x40b3,_0x20ea82=_0x5bd521();while(!![]){try{const _0x1b3cf7=parseInt(_0x23b7e2(0x26d))/0x1+-parseInt(_0x23b7e2(0x273))/0x2*(parseInt(_0x23b7e2(0x29e))/0x3)+parseInt(_0x23b7e2(0x2a0))/0x4+-parseInt(_0x23b7e2(0x259))/0x5+parseInt(_0x23b7e2(0x22f))/0x6+parseInt(_0x23b7e2(0x218))/0x7*(parseInt(_0x23b7e2(0x260))/0x8)+-parseInt(_0x23b7e2(0x1f5))/0x9;if(_0x1b3cf7===_0x108990)break;else _0x20ea82['push'](_0x20ea82['shift']());}catch(_0x4e5ed1){_0x20ea82['push'](_0x20ea82['shift']());}}}(_0x2f39,0xbb02b),Object[_0x72cc93(0x201)](exports,Symbol[_0x72cc93(0x2ac)],{'value':'Module'}));let e=require(`@univerjs/core`),t=require(`@univerjs/ui`),n=require(`@univerjs/design`),r=require(`@univerjs/icons`),i=require(`react`),a=require(`@univerjs-pro/collaboration`),o=require(`@univerjs-pro/collaboration-client`),s=require(`@univerjs/sheets`),c=require(`rxjs`),l=require(`rxjs/operators`),u=require(`react/jsx-runtime`),d=require(`@univerjs/sheets-ui`);function f(_0x5ea520){'@babel/helpers - typeof';const _0x2ffbdd=_0x72cc93;return f=typeof Symbol==_0x2ffbdd(0x237)&&typeof Symbol[_0x2ffbdd(0x24e)]==_0x2ffbdd(0x27a)?function(_0x5dc4af){return typeof _0x5dc4af;}:function(_0x274304){const _0x590076=_0x2ffbdd;return _0x274304&&typeof Symbol==_0x590076(0x237)&&_0x274304[_0x590076(0x26b)]===Symbol&&_0x274304!==Symbol['prototype']?'symbol':typeof _0x274304;},f(_0x5ea520);}function p(_0x57c799,_0x51904d){const _0x57c2a=_0x72cc93;if(f(_0x57c799)!=_0x57c2a(0x235)||!_0x57c799)return _0x57c799;var _0x472b50=_0x57c799[Symbol[_0x57c2a(0x1f3)]];if(_0x472b50!==void 0x0){var _0x28d4a8=_0x472b50[_0x57c2a(0x20a)](_0x57c799,_0x51904d||_0x57c2a(0x298));if(f(_0x28d4a8)!='object')return _0x28d4a8;throw TypeError(_0x57c2a(0x1f6));}return(_0x51904d===_0x57c2a(0x264)?String:Number)(_0x57c799);}function m(_0x47a678){const _0x427268=_0x72cc93;var _0x548b6d=p(_0x47a678,_0x427268(0x264));return f(_0x548b6d)==_0x427268(0x27a)?_0x548b6d:_0x548b6d+'';}function h(_0x47e4ea,_0x5bb86a,_0x48a223){return(_0x5bb86a=m(_0x5bb86a))in _0x47e4ea?Object['defineProperty'](_0x47e4ea,_0x5bb86a,{'value':_0x48a223,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x47e4ea[_0x5bb86a]=_0x48a223,_0x47e4ea;}function _0x40b3(_0x5b6c3b,_0x228533){_0x5b6c3b=_0x5b6c3b-0x1f1;const _0x2f39eb=_0x2f39();let _0x40b3f9=_0x2f39eb[_0x5b6c3b];return _0x40b3f9;}var g=class extends e['Disposable']{constructor(..._0x1311cf){const _0x5e4123=_0x72cc93;super(..._0x1311cf),h(this,_0x5e4123(0x283),new Set()),h(this,_0x5e4123(0x24f),new Set());}[_0x72cc93(0x236)](_0x17d92f){const _0xfbb7ab=_0x72cc93;return this[_0xfbb7ab(0x283)][_0xfbb7ab(0x21c)](_0x17d92f),(0x0,e['toDisposable'])(()=>this[_0xfbb7ab(0x283)][_0xfbb7ab(0x272)](_0x17d92f));}[_0x72cc93(0x231)](_0x5f159a){const _0x23fa86=_0x72cc93;return this['_reporters']['add'](_0x5f159a),(0x0,e['toDisposable'])(()=>this[_0x23fa86(0x24f)][_0x23fa86(0x272)](_0x5f159a));}['shouldShareOperation'](_0x11751d){return this['_sharedOperations']['has'](_0x11751d);}['getInitialStates'](_0x4c52c3){const _0x3f0b30=_0x72cc93;return Array['from'](this['_reporters'])[_0x3f0b30(0x200)](_0x28d7a5=>_0x28d7a5(_0x4c52c3));}};function _(_0x3781f5,_0x4c70b7){return function(_0x2cfeef,_0x4e46df){_0x4c70b7(_0x2cfeef,_0x4e46df,_0x3781f5);};}function v(_0x3464d0,_0xa9a613,_0x435492,_0x10cf33){const _0x5caa8f=_0x72cc93;var _0x319229=arguments[_0x5caa8f(0x22b)],_0x6a180a=_0x319229<0x3?_0xa9a613:_0x10cf33===null?_0x10cf33=Object[_0x5caa8f(0x292)](_0xa9a613,_0x435492):_0x10cf33,_0xa10f4;if(typeof Reflect==_0x5caa8f(0x235)&&typeof Reflect[_0x5caa8f(0x2a8)]==_0x5caa8f(0x237))_0x6a180a=Reflect[_0x5caa8f(0x2a8)](_0x3464d0,_0xa9a613,_0x435492,_0x10cf33);else{for(var _0x2db007=_0x3464d0[_0x5caa8f(0x22b)]-0x1;_0x2db007>=0x0;_0x2db007--)(_0xa10f4=_0x3464d0[_0x2db007])&&(_0x6a180a=(_0x319229<0x3?_0xa10f4(_0x6a180a):_0x319229>0x3?_0xa10f4(_0xa9a613,_0x435492,_0x6a180a):_0xa10f4(_0xa9a613,_0x435492))||_0x6a180a);}return _0x319229>0x3&&_0x6a180a&&Object['defineProperty'](_0xa9a613,_0x435492,_0x6a180a),_0x6a180a;}let y=class extends e['RxDisposable']{constructor(_0x83946e,_0x1e2030,_0x22d509){const _0x5b2d0a=_0x72cc93;super(),this[_0x5b2d0a(0x2af)]=_0x83946e,this[_0x5b2d0a(0x28a)]=_0x1e2030,this['_collabSessionService']=_0x22d509,h(this,_0x5b2d0a(0x270),new Map()),this[_0x5b2d0a(0x265)]();}async['getLiveShareCoordinator'](_0x56f35c){const _0x339931=_0x72cc93;return this[_0x339931(0x270)]['has'](_0x56f35c)||await this[_0x339931(0x2ab)](_0x56f35c),this[_0x339931(0x270)][_0x339931(0x269)](_0x56f35c);}[_0x72cc93(0x228)](_0x31614c){const _0x5476d4=_0x72cc93;var _0x252d66;return(_0x252d66=this[_0x5476d4(0x270)][_0x5476d4(0x269)](_0x31614c))==null?null:_0x252d66;}[_0x72cc93(0x265)](){const _0x3e3a3e=_0x72cc93;this[_0x3e3a3e(0x2af)][_0x3e3a3e(0x2aa)](e['UniverInstanceType']['UNIVER_SHEET'])[_0x3e3a3e(0x2ad)]((0x0,l['takeUntil'])(this[_0x3e3a3e(0x24d)]))['subscribe'](async _0x14a9a5=>{const _0x5b620d=_0x3e3a3e;let _0x1cd817=_0x14a9a5[_0x5b620d(0x1f2)]();this[_0x5b620d(0x270)]['has'](_0x1cd817)||this['_startLiveShareCoordinator'](_0x1cd817);}),this[_0x3e3a3e(0x2af)][_0x3e3a3e(0x27e)](e[_0x3e3a3e(0x221)][_0x3e3a3e(0x234)])[_0x3e3a3e(0x2ad)]((0x0,l[_0x3e3a3e(0x239)])(this[_0x3e3a3e(0x24d)]))[_0x3e3a3e(0x27b)](_0xf46bfe=>{const _0xb4ee5a=_0x3e3a3e;let _0x3f8cea=_0xf46bfe['getUnitId'](),_0x3142c0=this[_0xb4ee5a(0x270)][_0xb4ee5a(0x269)](_0x3f8cea);_0x3142c0==null||_0x3142c0[_0xb4ee5a(0x293)]();});}async[_0x72cc93(0x2ab)](_0x569b47){const _0x1cf469=_0x72cc93;let _0x1c1845=await this[_0x1cf469(0x22e)]['requireSession'](_0x569b47),_0x35e4bc=this[_0x1cf469(0x28a)]['createInstance'](x,_0x569b47,_0x1c1845);return _0x35e4bc[_0x1cf469(0x232)](),this[_0x1cf469(0x270)][_0x1cf469(0x271)](_0x569b47,_0x35e4bc),_0x35e4bc;}};y=v([_(0x0,e['IUniverInstanceService']),_(0x1,(0x0,e[_0x72cc93(0x1f4)])(e['Injector'])),_(0x2,(0x0,e[_0x72cc93(0x1f4)])(o[_0x72cc93(0x27f)]))],y);let b=function(_0x2f36b5){const _0x58fa34=_0x72cc93;return _0x2f36b5['OFFLINE']=_0x58fa34(0x2a5),_0x2f36b5[_0x58fa34(0x261)]=_0x58fa34(0x28d),_0x2f36b5[_0x58fa34(0x26e)]=_0x58fa34(0x1f1),_0x2f36b5[_0x58fa34(0x214)]=_0x58fa34(0x243),_0x2f36b5[_0x58fa34(0x25c)]=_0x58fa34(0x248),_0x2f36b5;}({}),x=class extends e[_0x72cc93(0x246)]{get[_0x72cc93(0x279)](){const _0x48d80f=_0x72cc93;return this[_0x48d80f(0x240)][_0x48d80f(0x28e)]();}constructor(_0x33e16a,_0x2c8042,_0x4040ba,_0x46bcfe,_0x49dce5){const _0x3105c5=_0x72cc93;super(),this[_0x3105c5(0x225)]=_0x33e16a,this[_0x3105c5(0x2a1)]=_0x2c8042,this[_0x3105c5(0x2a7)]=_0x4040ba,this[_0x3105c5(0x210)]=_0x46bcfe,this[_0x3105c5(0x262)]=_0x49dce5,h(this,_0x3105c5(0x240),new c[(_0x3105c5(0x226))](b[_0x3105c5(0x261)])),h(this,_0x3105c5(0x1f8),this[_0x3105c5(0x240)][_0x3105c5(0x25a)]()),h(this,'_init',!0x1),h(this,'_commandDisposable',null),h(this,_0x3105c5(0x26c),null);}[_0x72cc93(0x293)](){const _0x21e628=_0x72cc93;var _0x2db859;(_0x2db859=this[_0x21e628(0x20b)])==null||_0x2db859[_0x21e628(0x293)](),this[_0x21e628(0x240)]['next'](b[_0x21e628(0x261)]),this[_0x21e628(0x240)]['complete']();}[_0x72cc93(0x1fe)](){const _0x3f72e0=_0x72cc93;return this[_0x3f72e0(0x279)];}[_0x72cc93(0x232)](){const _0xe30b7=_0x72cc93;this[_0xe30b7(0x265)]||(this[_0xe30b7(0x265)]=!0x0,this[_0xe30b7(0x2a1)][_0xe30b7(0x204)][_0xe30b7(0x2ad)]((0x0,l[_0xe30b7(0x239)])(this[_0xe30b7(0x24d)]))[_0xe30b7(0x27b)](_0x450aaf=>{const _0x59afe0=_0xe30b7;switch(_0x450aaf){case o[_0x59afe0(0x278)]['OFFLINE']:this[_0x59afe0(0x20f)]();break;case o[_0x59afe0(0x278)][_0x59afe0(0x267)]:this[_0x59afe0(0x206)]();break;default:}}),this['_collabSession'][_0xe30b7(0x1fd)][_0xe30b7(0x2ad)]((0x0,l[_0xe30b7(0x239)])(this['dispose$']))[_0xe30b7(0x27b)](_0x50d35e=>{const _0xda968f=_0xe30b7;let {eventID:_0x4f3089}=_0x50d35e;switch(_0x4f3089){case a[_0xda968f(0x222)][_0xda968f(0x23a)]:this['_handleNewHost'](_0x50d35e);break;case a[_0xda968f(0x222)][_0xda968f(0x284)]:this['_handleOperation'](_0x50d35e);break;case a[_0xda968f(0x222)][_0xda968f(0x244)]:this[_0xda968f(0x217)]();break;case a[_0xda968f(0x222)][_0xda968f(0x219)]:this['_handleNewChangeSets'](_0x50d35e);break;default:}}));}['tryStartPresenting'](){const _0x2c8cb7=_0x72cc93;this[_0x2c8cb7(0x2a1)]['send']({'eventID':a[_0x2c8cb7(0x222)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x2c8cb7(0x208)]()}},this['_unitID']);}['stopPresenting'](){const _0x5740ab=_0x72cc93;this[_0x5740ab(0x279)]===b[_0x5740ab(0x25c)]&&(this[_0x5740ab(0x240)][_0x5740ab(0x277)](b[_0x5740ab(0x261)]),this['_collabSession'][_0x5740ab(0x28f)]({'eventID':a[_0x5740ab(0x222)][_0x5740ab(0x244)],'data':{'unitID':this[_0x5740ab(0x225)]}},this[_0x5740ab(0x225)]));}['startFollowing'](){const _0xf473a3=_0x72cc93;this[_0xf473a3(0x279)]===b[_0xf473a3(0x214)]&&(this['_status$'][_0xf473a3(0x277)](b[_0xf473a3(0x26e)]),this[_0xf473a3(0x276)]());}['stopFollowing'](){const _0x311c67=_0x72cc93;this[_0x311c67(0x279)]===b['FOLLOWING']&&this[_0x311c67(0x256)]();}[_0x72cc93(0x1fb)](_0x48e5d4){const _0x17c94c=_0x72cc93;let {presenter:_0x46383f}=_0x48e5d4[_0x17c94c(0x211)],_0x496db5=this['_collabSession'][_0x17c94c(0x208)]();this[_0x17c94c(0x26c)]=_0x46383f,_0x46383f===_0x496db5?(this['_stopFollowing'](),this[_0x17c94c(0x2a9)]()):this[_0x17c94c(0x279)]!==b[_0x17c94c(0x214)]&&(this[_0x17c94c(0x22c)](),this[_0x17c94c(0x276)]());}[_0x72cc93(0x297)](){const _0x89f71=_0x72cc93;let _0x44f024={'eventID':a[_0x89f71(0x222)][_0x89f71(0x281)]};this[_0x89f71(0x2a1)][_0x89f71(0x28f)](_0x44f024,this[_0x89f71(0x225)]);}['_handleTerminate'](){const _0x1443fa=_0x72cc93;this[_0x1443fa(0x26c)]=null,this[_0x1443fa(0x279)]!==b['PRESENTING']&&this[_0x1443fa(0x25e)]();}[_0x72cc93(0x23e)](_0x1ba8af){const _0x4d221a=_0x72cc93;if(this[_0x4d221a(0x279)]===b['FOLLOWING']&&this[_0x4d221a(0x26c)]===_0x1ba8af[_0x4d221a(0x211)][_0x4d221a(0x25f)]){let _0xd8534e=(0x0,a[_0x4d221a(0x230)])(_0x1ba8af[_0x4d221a(0x211)])[_0x4d221a(0x1ff)][_0x4d221a(0x24c)]()[_0x4d221a(0x288)](_0x27d1af=>_0x27d1af['id']===s[_0x4d221a(0x223)]['id']);if(_0xd8534e){let _0x4c567d=_0xd8534e[_0x4d221a(0x249)][_0x4d221a(0x27d)],_0x36ea33=_0xd8534e[_0x4d221a(0x249)]['sheet']['id'];setTimeout(()=>{const _0x3f616b=_0x4d221a;this[_0x3f616b(0x262)][_0x3f616b(0x295)](s[_0x3f616b(0x229)]['id'],{'unitId':_0x4c567d,'subUnitId':_0x36ea33},{'fromCollab':!0x0});});}}}[_0x72cc93(0x2a9)](){const _0x2b5f1b=_0x72cc93;this['_status$'][_0x2b5f1b(0x277)](b['PRESENTING']);let _0x348137=new Map(),_0x38ec74=this['_commandDisposable']=new e[(_0x2b5f1b(0x23c))]();_0x38ec74[_0x2b5f1b(0x21c)]((0x0,e['toDisposable'])(()=>{const _0xfa5abe=_0x2b5f1b;_0x348137[_0xfa5abe(0x20c)](_0x19b451=>_0x19b451[_0xfa5abe(0x21f)]()),_0x348137[_0xfa5abe(0x1fa)]();})),_0x38ec74[_0x2b5f1b(0x21c)](this[_0x2b5f1b(0x262)]['onCommandExecuted'](_0x321c39=>{const _0x453b25=_0x2b5f1b;if(_0x321c39[_0x453b25(0x266)]!==e[_0x453b25(0x29d)][_0x453b25(0x25b)]||!this[_0x453b25(0x210)][_0x453b25(0x290)](_0x321c39['id']))return;let {id:_0x3ad993}=_0x321c39,_0x560671;if(_0x348137['has'](_0x3ad993))_0x560671=_0x348137[_0x453b25(0x269)](_0x3ad993);else{var _0x3ec95a;_0x560671=new c['Subject'](),_0x348137[_0x453b25(0x271)](_0x3ad993,_0x560671),_0x560671[_0x453b25(0x2ad)]((0x0,l[_0x453b25(0x29a)])((_0x3ec95a=this[_0x453b25(0x2a7)][_0x453b25(0x21e)](_0x453b25(0x21b)))==null?0xc8:_0x3ec95a,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x453b25(0x27b)](_0x15990d=>{const _0x10afe2=_0x453b25;this[_0x10afe2(0x2a1)]['send']({'eventID':a['CollaborationEvent'][_0x10afe2(0x284)],'data':{'unitID':this[_0x10afe2(0x225)],'operations':{[_0x15990d['id']]:{'id':_0x15990d['id'],'params':JSON[_0x10afe2(0x24a)](_0x15990d['params'])}}}},this[_0x10afe2(0x225)]);});}_0x560671[_0x453b25(0x277)](_0x321c39);})),this['_liveShareService'][_0x2b5f1b(0x23f)](this[_0x2b5f1b(0x225)])[_0x2b5f1b(0x20c)](_0x3c5e65=>this['_collabSession']['send']({'eventID':a['CollaborationEvent'][_0x2b5f1b(0x284)],'data':{'unitID':this[_0x2b5f1b(0x225)],'operations':{[_0x3c5e65['id']]:{'id':_0x3c5e65['id'],'params':JSON[_0x2b5f1b(0x24a)](_0x3c5e65[_0x2b5f1b(0x249)])}}}},this[_0x2b5f1b(0x225)]));}[_0x72cc93(0x22c)](){const _0xfeb222=_0x72cc93;var _0x3b521a;this['_status$'][_0xfeb222(0x277)](b[_0xfeb222(0x261)]),(_0x3b521a=this['_commandDisposable'])==null||_0x3b521a[_0xfeb222(0x293)](),this[_0xfeb222(0x20b)]=null;}[_0x72cc93(0x276)](){const _0x57a1df=_0x72cc93;var _0x33e3a0;(_0x33e3a0=this['_commandDisposable'])==null||_0x33e3a0[_0x57a1df(0x293)](),this[_0x57a1df(0x240)][_0x57a1df(0x277)](b[_0x57a1df(0x26e)]);}['_beIdle'](){const _0x28e1cf=_0x72cc93;var _0x6351d1;this[_0x28e1cf(0x240)][_0x28e1cf(0x277)](b[_0x28e1cf(0x261)]),(_0x6351d1=this['_commandDisposable'])==null||_0x6351d1[_0x28e1cf(0x293)](),this[_0x28e1cf(0x20b)]=null;}[_0x72cc93(0x256)](){const _0x53956b=_0x72cc93;var _0xd0e9f;this[_0x53956b(0x240)]['next'](b[_0x53956b(0x214)]),(_0xd0e9f=this[_0x53956b(0x20b)])==null||_0xd0e9f[_0x53956b(0x293)]();}[_0x72cc93(0x296)](_0x1a8ac7){const _0xd94239=_0x72cc93;if([b['PRESENTING'],b[_0xd94239(0x214)],b[_0xd94239(0x2ae)]][_0xd94239(0x26f)](this[_0xd94239(0x279)])||!_0x1a8ac7['data'][_0xd94239(0x216)]||_0x1a8ac7[_0xd94239(0x211)][_0xd94239(0x216)]===this[_0xd94239(0x2a1)][_0xd94239(0x208)]())return;this[_0xd94239(0x279)]===b[_0xd94239(0x261)]&&this[_0xd94239(0x276)]();let _0x32963a=_0x1a8ac7[_0xd94239(0x211)][_0xd94239(0x20d)];Object[_0xd94239(0x238)](_0x32963a)['forEach'](_0x43d93f=>{const _0x5aed99=_0xd94239;this[_0x5aed99(0x262)][_0x5aed99(0x295)](_0x43d93f['id'],_0x43d93f[_0x5aed99(0x249)]?JSON[_0x5aed99(0x254)](_0x43d93f[_0x5aed99(0x249)]):null,{'fromCollab':!0x0});});}[_0x72cc93(0x20f)](){const _0x54f1a0=_0x72cc93;var _0xdcf166;this[_0x54f1a0(0x240)][_0x54f1a0(0x277)](b[_0x54f1a0(0x2ae)]),(_0xdcf166=this[_0x54f1a0(0x20b)])==null||_0xdcf166[_0x54f1a0(0x293)]();}[_0x72cc93(0x206)](){const _0x5d645d=_0x72cc93;this[_0x5d645d(0x240)][_0x5d645d(0x277)](b[_0x5d645d(0x261)]),this[_0x5d645d(0x297)]();}};x=v([_(0x2,e[_0x72cc93(0x258)]),_(0x3,(0x0,e[_0x72cc93(0x1f4)])(g)),_(0x4,e[_0x72cc93(0x268)])],x);function S(){const _0x22d232=_0x72cc93;let _0x397ed6=(0x0,t['useDependency'])(y),_0xfca0de=(0x0,t[_0x22d232(0x247)])(e[_0x22d232(0x207)]),_0x3d9461=(0x0,t['useObservable'])(()=>_0xfca0de[_0x22d232(0x29f)](e['UniverInstanceType'][_0x22d232(0x234)]),void 0x0,!0x1,[]),[_0x2e3fbb,_0x57ccd0]=(0x0,i[_0x22d232(0x213)])(null),[_0x428b77,_0x2b21f2]=(0x0,i['useState'])(b[_0x22d232(0x261)]),_0x1b88c5=(0x0,i['useRef'])(null);return(0x0,i['useEffect'])(()=>(_0x3d9461&&_0x397ed6[_0x22d232(0x1fc)](_0x3d9461['getUnitId']())['then'](_0x8ac904=>{const _0x2767ef=_0x22d232;_0x57ccd0(_0x8ac904),_0x1b88c5['current']=_0x8ac904[_0x2767ef(0x1f8)][_0x2767ef(0x27b)](_0x59b795=>{_0x2b21f2(_0x59b795);});}),()=>{const _0x26bd83=_0x22d232;var _0x26c8c4;(_0x26c8c4=_0x1b88c5[_0x26bd83(0x220)])==null||_0x26c8c4[_0x26bd83(0x1f9)](),_0x1b88c5['current']=null;}),[_0x3d9461,_0x397ed6]),_0x2e3fbb?(0x0,u[_0x22d232(0x2a4)])(n[_0x22d232(0x287)],{'align':_0x22d232(0x203),'disabled':_0x428b77===b[_0x22d232(0x2ae)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':(0x0,u[_0x22d232(0x2a4)])(C,{'status':_0x428b77,'coordinator':_0x2e3fbb}),'children':(0x0,u[_0x22d232(0x2a4)])(_0x22d232(0x289),{'className':(0x0,n['clsx'])(_0x22d232(0x294),{'univer-cursor-not-allowed':_0x428b77===b[_0x22d232(0x2ae)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x428b77!==b[_0x22d232(0x2ae)]}),'type':_0x22d232(0x289),'children':(0x0,u['jsx'])(r[_0x22d232(0x251)],{'className':'univer-size-4'})})}):null;}function C(_0x36da99){const _0x414798=_0x72cc93;let {status:_0x388a2b,coordinator:_0x2340ea}=_0x36da99;switch(_0x388a2b){case b[_0x414798(0x261)]:return(0x0,u[_0x414798(0x2a4)])(w,{'coordinator':_0x2340ea});case b[_0x414798(0x26e)]:return(0x0,u[_0x414798(0x2a4)])(T,{'coordinator':_0x2340ea});case b[_0x414798(0x214)]:return(0x0,u['jsx'])(E,{'coordinator':_0x2340ea});case b[_0x414798(0x2ae)]:return(0x0,u['jsx'])(O,{});case b['PRESENTING']:return(0x0,u['jsx'])(D,{'coordinator':_0x2340ea});default:return null;}}function w(_0x34e5ca){const _0x10ede2=_0x72cc93;let {coordinator:_0x43116a}=_0x34e5ca;return(0x0,u[_0x10ede2(0x21a)])(u['Fragment'],{'children':[(0x0,u[_0x10ede2(0x2a4)])(_0x10ede2(0x27c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x10ede2(0x253)}),(0x0,u[_0x10ede2(0x2a4)])(n[_0x10ede2(0x250)],{'onClick':()=>_0x43116a[_0x10ede2(0x25d)](),'children':'Start'})]});}function T(_0x4a8c85){const _0x3fee4b=_0x72cc93;let {coordinator:_0x5ca3e6}=_0x4a8c85;return(0x0,u[_0x3fee4b(0x21a)])(u[_0x3fee4b(0x227)],{'children':[(0x0,u[_0x3fee4b(0x2a4)])(_0x3fee4b(0x27c),{'className':_0x3fee4b(0x280),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,u[_0x3fee4b(0x2a4)])(n[_0x3fee4b(0x250)],{'onClick':()=>_0x5ca3e6[_0x3fee4b(0x24b)](),'children':'Stop\x20following'})]});}function E(_0x31fc5b){const _0x106d8b=_0x72cc93;let {coordinator:_0x4bef57}=_0x31fc5b;return(0x0,u[_0x106d8b(0x21a)])(u['Fragment'],{'children':[(0x0,u[_0x106d8b(0x2a4)])(_0x106d8b(0x27c),{'className':_0x106d8b(0x280),'children':_0x106d8b(0x29b)}),(0x0,u[_0x106d8b(0x2a4)])(n[_0x106d8b(0x250)],{'variant':_0x106d8b(0x23d),'onClick':()=>_0x4bef57[_0x106d8b(0x28c)](),'children':_0x106d8b(0x22d)})]});}function D(_0xc070d0){const _0x1bec47=_0x72cc93;let {coordinator:_0x294c12}=_0xc070d0;return(0x0,u['jsxs'])(u[_0x1bec47(0x227)],{'children':[(0x0,u['jsx'])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1bec47(0x291)}),(0x0,u['jsx'])(n[_0x1bec47(0x250)],{'variant':'default','onClick':()=>_0x294c12['stopPresenting'](),'children':_0x1bec47(0x20e)})]});}function O(){const _0x15d4da=_0x72cc93;return(0x0,u[_0x15d4da(0x2a4)])(u['Fragment'],{'children':'You\x27are\x20offline.'});}let k=class extends e[_0x72cc93(0x212)]{constructor(_0x4acbd0,_0x210a3d){const _0x44fbf3=_0x72cc93;super(),this[_0x44fbf3(0x28a)]=_0x4acbd0,this[_0x44fbf3(0x245)]=_0x210a3d,this[_0x44fbf3(0x252)]();}['_mountLiveShare'](){const _0x419b14=_0x72cc93;this['disposeWithMe'](this[_0x419b14(0x245)][_0x419b14(0x202)](t[_0x419b14(0x299)]['HEADER_MENU'],()=>(0x0,t['connectInjector'])(S,this[_0x419b14(0x28a)])));}};k=v([_(0x0,(0x0,e[_0x72cc93(0x1f4)])(e['Injector'])),_(0x1,t[_0x72cc93(0x26a)])],k);var A=_0x72cc93(0x28b),j='0.19.0';const M=_0x72cc93(0x215);Symbol(M);const N={};let P=class extends e[_0x72cc93(0x212)]{constructor(_0x5d8939){const _0x12a070=_0x72cc93;super(),this[_0x12a070(0x210)]=_0x5d8939,this['_init']();}[_0x72cc93(0x265)](){const _0x3e66cf=_0x72cc93;[d[_0x3e66cf(0x257)]['id'],d['SetScrollOperation']['id'],s[_0x3e66cf(0x229)]['id']][_0x3e66cf(0x20c)](_0x319880=>{const _0x4b6287=_0x3e66cf;this[_0x4b6287(0x286)](this[_0x4b6287(0x210)][_0x4b6287(0x236)](_0x319880));});}};P=v([_(0x0,(0x0,e['Inject'])(g))],P);let F=class extends e[_0x72cc93(0x285)]{constructor(_0x2ee3e3=N,_0x5f2b64,_0x4357df){const _0x4d851b=_0x72cc93;super(),this[_0x4d851b(0x282)]=_0x2ee3e3,this[_0x4d851b(0x28a)]=_0x5f2b64,this[_0x4d851b(0x2a7)]=_0x4357df;let {..._0x182430}=(0x0,e[_0x4d851b(0x242)])({},N,this['_config']);this[_0x4d851b(0x2a7)][_0x4d851b(0x29c)](M,_0x182430);}[_0x72cc93(0x274)](){const _0x1f62df=_0x72cc93;(0x0,e[_0x1f62df(0x2a6)])(this[_0x1f62df(0x28a)],(0x0,e['mergeOverrideWithDependencies'])([[g],[y],[P],[k]],this[_0x1f62df(0x282)][_0x1f62df(0x205)])),(0x0,e['touchDependencies'])(this[_0x1f62df(0x28a)],[[P]]);}[_0x72cc93(0x233)](){const _0x5bb10d=_0x72cc93;(0x0,e['touchDependencies'])(this[_0x5bb10d(0x28a)],[[k]]);}};function _0x2f39(){const _0x31eeb0=['tryStartPresenting','_beIdle','memberID','4256qNZbdw','IDLE','_commandService','DesktopLiveShareController','string','_init','type','ONLINE','ICommandService','get','IUIPartsService','constructor','_presenter','1154396ICeOAI','FOLLOWING','includes','_entities','set','delete','12htIQrg','onStarting','LiveShareCoordinator','_startFollowing','next','SessionStatus','_status','symbol','subscribe','div','unitId','getTypeOfUnitDisposed$','CollaborationSessionService','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_FETCH_OPERATIONS','_config','_sharedOperations','LIVESHARE_OPERATION','Plugin','disposeWithMe','Dropdown','find','button','_injector','@univerjs-pro/live-share','startFollowing','idle','getValue','send','shouldShareOperation','You\x27re\x20presenting\x20the\x20document','getOwnPropertyDescriptor','dispose','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','executeCommand','_handleOperation','_fetchOperations','default','BuiltInUIPart','throttleTime','You\x27re\x20not\x20following\x20the\x20presenter','setConfig','CommandType','339870HhbMyL','getCurrentTypeOfUnit$','4596216kTSTuF','_collabSession','version','LiveShareStatus','jsx','offline','registerDependencies','_configService','decorate','_startPresenting','getTypeOfUnitAdded$','_startLiveShareCoordinator','toStringTag','pipe','OFFLINE','_univerInstanceService','following','getUnitId','toPrimitive','Inject','11046618hnVXbI','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UNIVER_LIVE_SHARE_PLUGIN','status$','unsubscribe','clear','_handleNewHost','getLiveShareCoordinator','event$','getStatus','mutations','map','defineProperty','registerComponent','end','sessionStatus$','override','_handleOnline','IUniverInstanceService','getMemberID','UNIVER_UNKNOWN','call','_commandDisposable','forEach','operations','Stop\x20presenting','_handleOffline','_liveShareService','data','Disposable','useState','NOT_FOLLOWING','live-share.config','presenter','_handleTerminate','10577mhNBUZ','NEW_CHANGESETS','jsxs','SAME_OPERATION_SHARE_INTERVAL','add','UniverCollaborationClientPlugin','getConfig','complete','current','UniverInstanceType','CollaborationEvent','InsertSheetMutation','LiveShareService','_unitID','BehaviorSubject','Fragment','getLiveShareCoordinatorSync','SetWorksheetActiveOperation','DependentOn','length','_stopPresenting','Start\x20following','_collabSessionService','1821768xbrbZJ','parseProtocolChangeset','registerInitialStateReporter','init','onRendered','UNIVER_SHEET','object','registerSharedOperation','function','values','takeUntil','LIVESHARE_NEW_HOST','Injector','DisposableCollection','text','_handleNewChangeSets','getInitialStates','_status$','pluginName','merge','not-following','LIVESHARE_TERMINATE','_uiPartsService','RxDisposable','useDependency','presenting','params','stringify','stopFollowing','reverse','dispose$','iterator','_reporters','Button','LiveShareIcon','_mountLiveShare','Present\x20this\x20document','parse','packageName','_stopFollowing','SetZoomRatioOperation','IConfigService','3688965OrOfBp','asObservable','OPERATION','PRESENTING'];_0x2f39=function(){return _0x31eeb0;};return _0x2f39();}h(F,_0x72cc93(0x266),e[_0x72cc93(0x221)][_0x72cc93(0x209)]),h(F,_0x72cc93(0x241),_0x72cc93(0x1f7)),h(F,_0x72cc93(0x255),A),h(F,_0x72cc93(0x2a2),j),F=v([(0x0,e[_0x72cc93(0x22a)])(o[_0x72cc93(0x21d)]),_(0x1,(0x0,e[_0x72cc93(0x1f4)])(e[_0x72cc93(0x23b)])),_(0x2,e[_0x72cc93(0x258)])],F),Object['defineProperty'](exports,_0x72cc93(0x263),{'enumerable':!0x0,'get':function(){return k;}}),exports['LiveShare']=S,Object[_0x72cc93(0x201)](exports,'LiveShareController',{'enumerable':!0x0,'get':function(){return y;}}),Object[_0x72cc93(0x201)](exports,_0x72cc93(0x275),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x72cc93(0x224)]=g,exports[_0x72cc93(0x2a3)]=b,Object['defineProperty'](exports,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return F;}});
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x554c9d=_0x4716;(function(_0x526816,_0x49c3d0){const _0x98149b=_0x4716,_0x274416=_0x526816();while(!![]){try{const _0x1728ff=parseInt(_0x98149b(0x8e))/0x1*(parseInt(_0x98149b(0x78))/0x2)+-parseInt(_0x98149b(0x87))/0x3*(-parseInt(_0x98149b(0x7f))/0x4)+-parseInt(_0x98149b(0x85))/0x5*(-parseInt(_0x98149b(0x7d))/0x6)+parseInt(_0x98149b(0x73))/0x7+-parseInt(_0x98149b(0x79))/0x8+parseInt(_0x98149b(0x75))/0x9+-parseInt(_0x98149b(0x6a))/0xa*(parseInt(_0x98149b(0x77))/0xb);if(_0x1728ff===_0x49c3d0)break;else _0x274416['push'](_0x274416['shift']());}catch(_0x573474){_0x274416['push'](_0x274416['shift']());}}}(_0x3c2d,0xafd13));import{LiveShareController as _0x419e5c,LiveShareStatus as _0x79f5e5}from'@univerjs-pro/live-share';function _0x4716(_0x25ca0a,_0xffe104){_0x25ca0a=_0x25ca0a-0x6a;const _0x3c2d96=_0x3c2d();let _0x4716a5=_0x3c2d96[_0x25ca0a];return _0x4716a5;}import{IUniverInstanceService as _0x1ead5e,UniverInstanceType as _0x1b0f25}from'@univerjs/core';import{FEnum as _0x6a1553,FUniver as _0x2f4533}from'@univerjs/core/facade';function o(_0x1d5d09){'@babel/helpers - typeof';const _0x1b73ce=_0x4716;return o=typeof Symbol=='function'&&typeof Symbol[_0x1b73ce(0x7c)]==_0x1b73ce(0x6d)?function(_0x57e610){return typeof _0x57e610;}:function(_0x19309f){const _0x26bffa=_0x1b73ce;return _0x19309f&&typeof Symbol=='function'&&_0x19309f[_0x26bffa(0x74)]===Symbol&&_0x19309f!==Symbol[_0x26bffa(0x8b)]?'symbol':typeof _0x19309f;},o(_0x1d5d09);}function s(_0x1d25ab,_0x27bebf){const _0x135c3a=_0x4716;if(o(_0x1d25ab)!=_0x135c3a(0x84)||!_0x1d25ab)return _0x1d25ab;var _0x35f40c=_0x1d25ab[Symbol['toPrimitive']];if(_0x35f40c!==void 0x0){var _0xc76754=_0x35f40c['call'](_0x1d25ab,_0x27bebf||_0x135c3a(0x88));if(o(_0xc76754)!=_0x135c3a(0x84))return _0xc76754;throw TypeError(_0x135c3a(0x8c));}return(_0x27bebf===_0x135c3a(0x7a)?String:Number)(_0x1d25ab);}function c(_0x535643){const _0x39e8c9=_0x4716;var _0x459d6f=s(_0x535643,_0x39e8c9(0x7a));return o(_0x459d6f)==_0x39e8c9(0x6d)?_0x459d6f:_0x459d6f+'';}function _0x3c2d(){const _0x104692=['8774bXnOQI','8385248fxxtoP','string','stopFollowing','iterator','171228Abpwuu','getCurrentUnitOfType','2316JqcEgI','LiveShareStatusEnum','tryStartPresenting','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','object','170eRubfg','getLiveShareCoordinatorSync','1866qTXooz','default','No\x20active\x20workbook\x20found.','_injector','prototype','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','startFollowing','91gueHtC','12205040wJBHoG','_initialize','IDLE','symbol','defineProperty','UNIVER_SHEET','stopPresenting','_liveShareController','get','3312652IlFTEu','constructor','7073316uPBfop','getLiveShareStatus','11xMSobn'];_0x3c2d=function(){return _0x104692;};return _0x3c2d();}function l(_0x4c9ce4,_0x3e1731,_0x3fb5c9){const _0x1edb23=_0x4716;return(_0x3e1731=c(_0x3e1731))in _0x4c9ce4?Object[_0x1edb23(0x6e)](_0x4c9ce4,_0x3e1731,{'value':_0x3fb5c9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4c9ce4[_0x3e1731]=_0x3fb5c9,_0x4c9ce4;}var u=class extends _0x2f4533{constructor(..._0x87fe94){const _0x2eed7a=_0x4716;super(..._0x87fe94),l(this,_0x2eed7a(0x71),void 0x0);}[_0x554c9d(0x6b)](_0x4333f6){const _0x32bba0=_0x554c9d;this['_liveShareController']=_0x4333f6[_0x32bba0(0x72)](_0x419e5c);}[_0x554c9d(0x76)](){const _0x636ba8=_0x554c9d;var _0x6eda5e;let _0x4701d0=this[_0x636ba8(0x8a)][_0x636ba8(0x72)](_0x1ead5e)['getCurrentUnitOfType'](_0x1b0f25[_0x636ba8(0x6f)]);if(!_0x4701d0)throw Error('No\x20active\x20workbook\x20found.');let _0x2527a1=_0x4701d0[_0x636ba8(0x82)](),_0x30fd63=this['_liveShareController'][_0x636ba8(0x86)](_0x2527a1);return(_0x6eda5e=_0x30fd63==null?void 0x0:_0x30fd63['getStatus']())==null?_0x79f5e5[_0x636ba8(0x6c)]:_0x6eda5e;}['startFollowing'](){const _0x4e9c03=_0x554c9d;let _0x3269e6=this['_injector'][_0x4e9c03(0x72)](_0x1ead5e)[_0x4e9c03(0x7e)](_0x1b0f25[_0x4e9c03(0x6f)]);if(!_0x3269e6)throw Error(_0x4e9c03(0x89));let _0x33d209=_0x3269e6[_0x4e9c03(0x82)](),_0x1066e2=this[_0x4e9c03(0x71)]['getLiveShareCoordinatorSync'](_0x33d209);if(!_0x1066e2)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1066e2[_0x4e9c03(0x8d)]();}[_0x554c9d(0x7b)](){const _0x497a11=_0x554c9d;let _0x28f71e=this[_0x497a11(0x8a)]['get'](_0x1ead5e)[_0x497a11(0x7e)](_0x1b0f25[_0x497a11(0x6f)]);if(!_0x28f71e)throw Error(_0x497a11(0x89));let _0x2ed28d=_0x28f71e[_0x497a11(0x82)](),_0x5cdd07=this['_liveShareController'][_0x497a11(0x86)](_0x2ed28d);if(!_0x5cdd07)throw Error(_0x497a11(0x83));_0x5cdd07['stopFollowing']();}['startPresenting'](){const _0x543d3d=_0x554c9d;let _0x2da5ab=this[_0x543d3d(0x8a)][_0x543d3d(0x72)](_0x1ead5e)[_0x543d3d(0x7e)](_0x1b0f25[_0x543d3d(0x6f)]);if(!_0x2da5ab)throw Error(_0x543d3d(0x89));let _0x437582=_0x2da5ab['getUnitId'](),_0x5cbd7c=this['_liveShareController'][_0x543d3d(0x86)](_0x437582);if(!_0x5cbd7c)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5cbd7c[_0x543d3d(0x81)]();}[_0x554c9d(0x70)](){const _0x575d73=_0x554c9d;let _0x59b2f8=this[_0x575d73(0x8a)]['get'](_0x1ead5e)[_0x575d73(0x7e)](_0x1b0f25[_0x575d73(0x6f)]);if(!_0x59b2f8)throw Error(_0x575d73(0x89));let _0x118a21=_0x59b2f8['getUnitId'](),_0x17f6b0=this[_0x575d73(0x71)][_0x575d73(0x86)](_0x118a21);if(!_0x17f6b0)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x17f6b0['stopPresenting']();}};_0x2f4533['extend'](u);var d=class extends _0x6a1553{get[_0x554c9d(0x80)](){return _0x79f5e5;}};_0x6a1553['extend'](d);export{};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2c4769=_0x3add;(function(_0x2f1c88,_0x2085a3){const _0x4dcdaa=_0x3add,_0x4bf412=_0x2f1c88();while(!![]){try{const _0x428c6d=-parseInt(_0x4dcdaa(0xcf))/0x1+-parseInt(_0x4dcdaa(0x157))/0x2+-parseInt(_0x4dcdaa(0xf5))/0x3+parseInt(_0x4dcdaa(0xf0))/0x4+-parseInt(_0x4dcdaa(0x11f))/0x5+parseInt(_0x4dcdaa(0xda))/0x6+-parseInt(_0x4dcdaa(0x125))/0x7*(-parseInt(_0x4dcdaa(0x152))/0x8);if(_0x428c6d===_0x2085a3)break;else _0x4bf412['push'](_0x4bf412['shift']());}catch(_0x5e4a33){_0x4bf412['push'](_0x4bf412['shift']());}}}(_0x15ef,0x7d007));import{CommandType as _0x3a5405,DependentOn as _0x9d4cf9,Disposable as _0x57dd0e,DisposableCollection as _0x215aed,ICommandService as _0x3dd35d,IConfigService as _0x43996c,IUniverInstanceService as _0x261092,Inject as _0x1b48b6,Injector as _0x4a9c22,Plugin as _0x7c0ac5,RxDisposable as _0x4f9eac,UniverInstanceType as _0x53d6b7,merge as _0x5e13f2,mergeOverrideWithDependencies as _0x4086ed,registerDependencies as _0x1da1fe,toDisposable as _0x82c7a0,touchDependencies as _0x24fee3}from'@univerjs/core';import{BuiltInUIPart as _0x4d8caf,IUIPartsService as _0xaf3c68,connectInjector as _0x56b9bf,useDependency as _0x8412e9,useObservable as _0x13c779}from'@univerjs/ui';import{Button as _0x355ab6,Dropdown as _0x4a9e75,clsx as _0x119bed}from'@univerjs/design';import{LiveShareIcon as _0x437ba5}from'@univerjs/icons';import{useEffect as _0x55c713,useRef as _0x5be6eb,useState as _0x2e17cb}from'react';import{CollaborationEvent as _0x462cc9,parseProtocolChangeset as _0x2f20c3}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2c4c0e,SessionStatus as _0x40f15e,UniverCollaborationClientPlugin as _0x5e2ff9}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4a64ee,SetWorksheetActiveOperation as _0x45b627}from'@univerjs/sheets';import{BehaviorSubject as _0x1a7f50,Subject as _0x2bf7d2}from'rxjs';import{takeUntil as _0x262fde,throttleTime as _0x263058}from'rxjs/operators';import{Fragment as _0xdcd6d,jsx as _0x26cb86,jsxs as _0x5e7cba}from'react/jsx-runtime';import{SetScrollOperation as _0x6ac03b,SetZoomRatioOperation as _0x5e8bdc}from'@univerjs/sheets-ui';function _0x3add(_0x156e72,_0x216d77){_0x156e72=_0x156e72-0xca;const _0x15ef68=_0x15ef();let _0x3addd6=_0x15ef68[_0x156e72];return _0x3addd6;}function L(_0x1d8ca2){'@babel/helpers - typeof';const _0xbdc3df=_0x3add;return L=typeof Symbol==_0xbdc3df(0xd5)&&typeof Symbol[_0xbdc3df(0x138)]==_0xbdc3df(0xeb)?function(_0x11ba94){return typeof _0x11ba94;}:function(_0x178707){const _0x3c0681=_0xbdc3df;return _0x178707&&typeof Symbol==_0x3c0681(0xd5)&&_0x178707[_0x3c0681(0x114)]===Symbol&&_0x178707!==Symbol[_0x3c0681(0x130)]?_0x3c0681(0xeb):typeof _0x178707;},L(_0x1d8ca2);}function R(_0x23cd9d,_0x1577de){const _0x171d36=_0x3add;if(L(_0x23cd9d)!='object'||!_0x23cd9d)return _0x23cd9d;var _0x19153a=_0x23cd9d[Symbol[_0x171d36(0xd1)]];if(_0x19153a!==void 0x0){var _0x2af5e2=_0x19153a[_0x171d36(0x141)](_0x23cd9d,_0x1577de||_0x171d36(0x126));if(L(_0x2af5e2)!='object')return _0x2af5e2;throw TypeError(_0x171d36(0xf9));}return(_0x1577de==='string'?String:Number)(_0x23cd9d);}function z(_0x31d045){const _0x5e32c7=_0x3add;var _0x50c9db=R(_0x31d045,'string');return L(_0x50c9db)==_0x5e32c7(0xeb)?_0x50c9db:_0x50c9db+'';}function B(_0x54df49,_0x50b565,_0x47c829){return(_0x50b565=z(_0x50b565))in _0x54df49?Object['defineProperty'](_0x54df49,_0x50b565,{'value':_0x47c829,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54df49[_0x50b565]=_0x47c829,_0x54df49;}var V=class extends _0x57dd0e{constructor(..._0xa3ff56){const _0x23846f=_0x3add;super(..._0xa3ff56),B(this,_0x23846f(0xec),new Set()),B(this,_0x23846f(0x158),new Set());}[_0x2c4769(0x142)](_0x2f9e81){const _0xa5da3a=_0x2c4769;return this[_0xa5da3a(0xec)][_0xa5da3a(0x110)](_0x2f9e81),_0x82c7a0(()=>this[_0xa5da3a(0xec)][_0xa5da3a(0xdb)](_0x2f9e81));}[_0x2c4769(0x100)](_0x1348c9){const _0x59a5a6=_0x2c4769;return this[_0x59a5a6(0x158)][_0x59a5a6(0x110)](_0x1348c9),_0x82c7a0(()=>this[_0x59a5a6(0x158)][_0x59a5a6(0xdb)](_0x1348c9));}[_0x2c4769(0x11c)](_0x5c2981){return this['_sharedOperations']['has'](_0x5c2981);}[_0x2c4769(0x154)](_0x4ee77d){const _0x878199=_0x2c4769;return Array[_0x878199(0x14b)](this['_reporters'])[_0x878199(0x101)](_0x199c30=>_0x199c30(_0x4ee77d));}};function H(_0x3e43a0,_0x1d6a1b){return function(_0x1c4ccd,_0x1eb820){_0x1d6a1b(_0x1c4ccd,_0x1eb820,_0x3e43a0);};}function U(_0x3fce25,_0x251467,_0x6c893,_0x478764){const _0x7d70e1=_0x2c4769;var _0x2c45b5=arguments['length'],_0x553a33=_0x2c45b5<0x3?_0x251467:_0x478764===null?_0x478764=Object['getOwnPropertyDescriptor'](_0x251467,_0x6c893):_0x478764,_0x395e6d;if(typeof Reflect==_0x7d70e1(0xd3)&&typeof Reflect[_0x7d70e1(0xe2)]==_0x7d70e1(0xd5))_0x553a33=Reflect[_0x7d70e1(0xe2)](_0x3fce25,_0x251467,_0x6c893,_0x478764);else{for(var _0x1d9283=_0x3fce25[_0x7d70e1(0x13d)]-0x1;_0x1d9283>=0x0;_0x1d9283--)(_0x395e6d=_0x3fce25[_0x1d9283])&&(_0x553a33=(_0x2c45b5<0x3?_0x395e6d(_0x553a33):_0x2c45b5>0x3?_0x395e6d(_0x251467,_0x6c893,_0x553a33):_0x395e6d(_0x251467,_0x6c893))||_0x553a33);}return _0x2c45b5>0x3&&_0x553a33&&Object['defineProperty'](_0x251467,_0x6c893,_0x553a33),_0x553a33;}let W=class extends _0x4f9eac{constructor(_0x53537b,_0x5186f9,_0x4dc751){const _0x557ae7=_0x2c4769;super(),this['_univerInstanceService']=_0x53537b,this[_0x557ae7(0x12a)]=_0x5186f9,this[_0x557ae7(0x12f)]=_0x4dc751,B(this,'_entities',new Map()),this[_0x557ae7(0xd2)]();}async[_0x2c4769(0xf6)](_0x3eafe7){const _0x167351=_0x2c4769;return this[_0x167351(0x14f)][_0x167351(0xf3)](_0x3eafe7)||await this[_0x167351(0x102)](_0x3eafe7),this[_0x167351(0x14f)][_0x167351(0x14d)](_0x3eafe7);}[_0x2c4769(0x106)](_0x60202){const _0x1b3e1c=_0x2c4769;var _0x354715;return(_0x354715=this[_0x1b3e1c(0x14f)][_0x1b3e1c(0x14d)](_0x60202))==null?null:_0x354715;}[_0x2c4769(0xd2)](){const _0x48d6e2=_0x2c4769;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x53d6b7['UNIVER_SHEET'])[_0x48d6e2(0xe8)](_0x262fde(this['dispose$']))[_0x48d6e2(0x120)](async _0x52f577=>{const _0xc9ca3b=_0x48d6e2;let _0x1f2167=_0x52f577[_0xc9ca3b(0xfb)]();this[_0xc9ca3b(0x14f)][_0xc9ca3b(0xf3)](_0x1f2167)||this[_0xc9ca3b(0x102)](_0x1f2167);}),this['_univerInstanceService'][_0x48d6e2(0x10d)](_0x53d6b7['UNIVER_SHEET'])['pipe'](_0x262fde(this[_0x48d6e2(0x147)]))[_0x48d6e2(0x120)](_0x14f36c=>{const _0x22b881=_0x48d6e2;let _0x502c2f=_0x14f36c[_0x22b881(0xfb)](),_0x3cdb5f=this[_0x22b881(0x14f)][_0x22b881(0x14d)](_0x502c2f);_0x3cdb5f==null||_0x3cdb5f[_0x22b881(0x122)]();});}async[_0x2c4769(0x102)](_0x28055d){const _0x237953=_0x2c4769;let _0x4c916d=await this[_0x237953(0x12f)][_0x237953(0x132)](_0x28055d),_0x2b25f5=this[_0x237953(0x12a)]['createInstance'](K,_0x28055d,_0x4c916d);return _0x2b25f5[_0x237953(0xce)](),this[_0x237953(0x14f)]['set'](_0x28055d,_0x2b25f5),_0x2b25f5;}};W=U([H(0x0,_0x261092),H(0x1,_0x1b48b6(_0x4a9c22)),H(0x2,_0x1b48b6(_0x2c4c0e))],W);let G=function(_0x3f24b2){const _0x543a38=_0x2c4769;return _0x3f24b2[_0x543a38(0xf1)]='offline',_0x3f24b2[_0x543a38(0xfd)]=_0x543a38(0xca),_0x3f24b2[_0x543a38(0x118)]='following',_0x3f24b2[_0x543a38(0x140)]='not-following',_0x3f24b2[_0x543a38(0xf4)]='presenting',_0x3f24b2;}({}),K=class extends _0x4f9eac{get['_status'](){const _0x4147bc=_0x2c4769;return this[_0x4147bc(0x12d)]['getValue']();}constructor(_0x501ffe,_0x22ebbe,_0xa6b7c7,_0x3f70cf,_0x304fce){const _0x8dc47c=_0x2c4769;super(),this[_0x8dc47c(0xff)]=_0x501ffe,this[_0x8dc47c(0x11b)]=_0x22ebbe,this['_configService']=_0xa6b7c7,this[_0x8dc47c(0x104)]=_0x3f70cf,this['_commandService']=_0x304fce,B(this,_0x8dc47c(0x12d),new _0x1a7f50(G['IDLE'])),B(this,_0x8dc47c(0xfa),this[_0x8dc47c(0x12d)][_0x8dc47c(0x14c)]()),B(this,_0x8dc47c(0xd2),!0x1),B(this,_0x8dc47c(0x135),null),B(this,_0x8dc47c(0xd9),null);}[_0x2c4769(0x122)](){const _0x4b54cc=_0x2c4769;var _0x5afa1e;(_0x5afa1e=this['_commandDisposable'])==null||_0x5afa1e[_0x4b54cc(0x122)](),this[_0x4b54cc(0x12d)][_0x4b54cc(0x109)](G[_0x4b54cc(0xfd)]),this['_status$'][_0x4b54cc(0x117)]();}[_0x2c4769(0x146)](){const _0x1e26db=_0x2c4769;return this[_0x1e26db(0xe9)];}['init'](){const _0xb45e5f=_0x2c4769;this['_init']||(this[_0xb45e5f(0xd2)]=!0x0,this[_0xb45e5f(0x11b)][_0xb45e5f(0x151)][_0xb45e5f(0xe8)](_0x262fde(this[_0xb45e5f(0x147)]))[_0xb45e5f(0x120)](_0x1c88b8=>{const _0x494596=_0xb45e5f;switch(_0x1c88b8){case _0x40f15e[_0x494596(0xf1)]:this['_handleOffline']();break;case _0x40f15e[_0x494596(0xdd)]:this[_0x494596(0xe1)]();break;default:}}),this[_0xb45e5f(0x11b)]['event$']['pipe'](_0x262fde(this[_0xb45e5f(0x147)]))['subscribe'](_0x4d1c43=>{const _0x40cdb1=_0xb45e5f;let {eventID:_0x29d2cd}=_0x4d1c43;switch(_0x29d2cd){case _0x462cc9[_0x40cdb1(0x150)]:this['_handleNewHost'](_0x4d1c43);break;case _0x462cc9['LIVESHARE_OPERATION']:this[_0x40cdb1(0x13f)](_0x4d1c43);break;case _0x462cc9['LIVESHARE_TERMINATE']:this[_0x40cdb1(0xfc)]();break;case _0x462cc9[_0x40cdb1(0xf7)]:this[_0x40cdb1(0xde)](_0x4d1c43);break;default:}}));}[_0x2c4769(0xdf)](){const _0x4035f7=_0x2c4769;this[_0x4035f7(0x11b)][_0x4035f7(0x123)]({'eventID':_0x462cc9[_0x4035f7(0x155)],'data':{'unitID':this[_0x4035f7(0xff)],'userID':this['_collabSession'][_0x4035f7(0x103)]()}},this['_unitID']);}[_0x2c4769(0xd6)](){const _0x35be4e=_0x2c4769;this[_0x35be4e(0xe9)]===G['PRESENTING']&&(this['_status$']['next'](G[_0x35be4e(0xfd)]),this[_0x35be4e(0x11b)][_0x35be4e(0x123)]({'eventID':_0x462cc9[_0x35be4e(0x156)],'data':{'unitID':this[_0x35be4e(0xff)]}},this['_unitID']));}['startFollowing'](){const _0x57c09f=_0x2c4769;this['_status']===G[_0x57c09f(0x140)]&&(this[_0x57c09f(0x12d)][_0x57c09f(0x109)](G['FOLLOWING']),this[_0x57c09f(0xd0)]());}[_0x2c4769(0x134)](){const _0x223035=_0x2c4769;this['_status']===G['FOLLOWING']&&this[_0x223035(0x116)]();}[_0x2c4769(0xe7)](_0x1ee1d2){const _0x54af32=_0x2c4769;let {presenter:_0x457299}=_0x1ee1d2[_0x54af32(0x13e)],_0x3cd228=this['_collabSession'][_0x54af32(0x103)]();this['_presenter']=_0x457299,_0x457299===_0x3cd228?(this[_0x54af32(0x116)](),this[_0x54af32(0xe4)]()):this[_0x54af32(0xe9)]!==G[_0x54af32(0x140)]&&(this['_stopPresenting'](),this[_0x54af32(0xd0)]());}[_0x2c4769(0x144)](){const _0x596673=_0x2c4769;let _0x472fdf={'eventID':_0x462cc9[_0x596673(0x12e)]};this[_0x596673(0x11b)][_0x596673(0x123)](_0x472fdf,this[_0x596673(0xff)]);}[_0x2c4769(0xfc)](){const _0x58b339=_0x2c4769;this[_0x58b339(0xd9)]=null,this[_0x58b339(0xe9)]!==G[_0x58b339(0xf4)]&&this[_0x58b339(0xd8)]();}['_handleNewChangeSets'](_0x9ec336){const _0x19e3d8=_0x2c4769;if(this[_0x19e3d8(0xe9)]===G[_0x19e3d8(0x118)]&&this['_presenter']===_0x9ec336[_0x19e3d8(0x13e)][_0x19e3d8(0x13c)]){let _0x25a3aa=_0x2f20c3(_0x9ec336[_0x19e3d8(0x13e)])['mutations']['reverse']()[_0x19e3d8(0x10b)](_0x40640a=>_0x40640a['id']===_0x4a64ee['id']);if(_0x25a3aa){let _0xb99389=_0x25a3aa[_0x19e3d8(0x139)][_0x19e3d8(0xcb)],_0x22e7b3=_0x25a3aa[_0x19e3d8(0x139)]['sheet']['id'];setTimeout(()=>{const _0x81f1d4=_0x19e3d8;this[_0x81f1d4(0x14a)][_0x81f1d4(0x113)](_0x45b627['id'],{'unitId':_0xb99389,'subUnitId':_0x22e7b3},{'fromCollab':!0x0});});}}}[_0x2c4769(0xe4)](){const _0x5820b3=_0x2c4769;this[_0x5820b3(0x12d)][_0x5820b3(0x109)](G[_0x5820b3(0xf4)]);let _0x4f416b=new Map(),_0x13fea7=this['_commandDisposable']=new _0x215aed();_0x13fea7['add'](_0x82c7a0(()=>{const _0x5d20e8=_0x5820b3;_0x4f416b[_0x5d20e8(0x131)](_0x135fa6=>_0x135fa6[_0x5d20e8(0x117)]()),_0x4f416b[_0x5d20e8(0x136)]();})),_0x13fea7[_0x5820b3(0x110)](this['_commandService']['onCommandExecuted'](_0x4b0f72=>{const _0x5362e0=_0x5820b3;if(_0x4b0f72[_0x5362e0(0x11a)]!==_0x3a5405[_0x5362e0(0x10c)]||!this[_0x5362e0(0x104)][_0x5362e0(0x11c)](_0x4b0f72['id']))return;let {id:_0xb0ffcc}=_0x4b0f72,_0x35f406;if(_0x4f416b[_0x5362e0(0xf3)](_0xb0ffcc))_0x35f406=_0x4f416b[_0x5362e0(0x14d)](_0xb0ffcc);else{var _0x4365e9;_0x35f406=new _0x2bf7d2(),_0x4f416b[_0x5362e0(0x108)](_0xb0ffcc,_0x35f406),_0x35f406[_0x5362e0(0xe8)](_0x263058((_0x4365e9=this['_configService'][_0x5362e0(0xcc)](_0x5362e0(0x13a)))==null?0xc8:_0x4365e9,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5362e0(0x120)](_0x10696f=>{const _0x296ed7=_0x5362e0;this[_0x296ed7(0x11b)]['send']({'eventID':_0x462cc9[_0x296ed7(0x11d)],'data':{'unitID':this[_0x296ed7(0xff)],'operations':{[_0x10696f['id']]:{'id':_0x10696f['id'],'params':JSON[_0x296ed7(0x107)](_0x10696f['params'])}}}},this['_unitID']);});}_0x35f406['next'](_0x4b0f72);})),this[_0x5820b3(0x104)][_0x5820b3(0x154)](this[_0x5820b3(0xff)])['forEach'](_0x1e40dc=>this[_0x5820b3(0x11b)]['send']({'eventID':_0x462cc9[_0x5820b3(0x11d)],'data':{'unitID':this[_0x5820b3(0xff)],'operations':{[_0x1e40dc['id']]:{'id':_0x1e40dc['id'],'params':JSON[_0x5820b3(0x107)](_0x1e40dc[_0x5820b3(0x139)])}}}},this[_0x5820b3(0xff)]));}[_0x2c4769(0x129)](){const _0x3c8a17=_0x2c4769;var _0x4100e9;this[_0x3c8a17(0x12d)][_0x3c8a17(0x109)](G[_0x3c8a17(0xfd)]),(_0x4100e9=this['_commandDisposable'])==null||_0x4100e9[_0x3c8a17(0x122)](),this[_0x3c8a17(0x135)]=null;}[_0x2c4769(0xd0)](){const _0x2d4d18=_0x2c4769;var _0x5febb5;(_0x5febb5=this[_0x2d4d18(0x135)])==null||_0x5febb5['dispose'](),this[_0x2d4d18(0x12d)][_0x2d4d18(0x109)](G['FOLLOWING']);}[_0x2c4769(0xd8)](){const _0x4dd045=_0x2c4769;var _0x42e353;this['_status$'][_0x4dd045(0x109)](G[_0x4dd045(0xfd)]),(_0x42e353=this[_0x4dd045(0x135)])==null||_0x42e353['dispose'](),this[_0x4dd045(0x135)]=null;}['_stopFollowing'](){const _0x3e85ca=_0x2c4769;var _0x22ea39;this['_status$']['next'](G[_0x3e85ca(0x140)]),(_0x22ea39=this[_0x3e85ca(0x135)])==null||_0x22ea39['dispose']();}[_0x2c4769(0x13f)](_0x52159f){const _0x3ee169=_0x2c4769;if([G[_0x3ee169(0xf4)],G['NOT_FOLLOWING'],G[_0x3ee169(0xf1)]]['includes'](this[_0x3ee169(0xe9)])||!_0x52159f[_0x3ee169(0x13e)]['presenter']||_0x52159f[_0x3ee169(0x13e)]['presenter']===this[_0x3ee169(0x11b)]['getMemberID']())return;this[_0x3ee169(0xe9)]===G[_0x3ee169(0xfd)]&&this[_0x3ee169(0xd0)]();let _0x422f3a=_0x52159f[_0x3ee169(0x13e)][_0x3ee169(0x127)];Object[_0x3ee169(0xed)](_0x422f3a)[_0x3ee169(0x131)](_0x2339ea=>{const _0x63c459=_0x3ee169;this['_commandService']['executeCommand'](_0x2339ea['id'],_0x2339ea[_0x63c459(0x139)]?JSON[_0x63c459(0x12b)](_0x2339ea[_0x63c459(0x139)]):null,{'fromCollab':!0x0});});}[_0x2c4769(0x11e)](){const _0x183b25=_0x2c4769;var _0x107672;this['_status$'][_0x183b25(0x109)](G[_0x183b25(0xf1)]),(_0x107672=this[_0x183b25(0x135)])==null||_0x107672[_0x183b25(0x122)]();}['_handleOnline'](){const _0x36376b=_0x2c4769;this[_0x36376b(0x12d)]['next'](G[_0x36376b(0xfd)]),this[_0x36376b(0x144)]();}};K=U([H(0x2,_0x43996c),H(0x3,_0x1b48b6(V)),H(0x4,_0x3dd35d)],K);function q(){const _0x3038b4=_0x2c4769;let _0x295c57=_0x8412e9(W),_0x447bdb=_0x8412e9(_0x261092),_0x38dafd=_0x13c779(()=>_0x447bdb[_0x3038b4(0x112)](_0x53d6b7[_0x3038b4(0x10f)]),void 0x0,!0x1,[]),[_0xd7cf52,_0x27c733]=_0x2e17cb(null),[_0x2e28c9,_0x5ea467]=_0x2e17cb(G[_0x3038b4(0xfd)]),_0x36280f=_0x5be6eb(null);return _0x55c713(()=>(_0x38dafd&&_0x295c57[_0x3038b4(0xf6)](_0x38dafd['getUnitId']())[_0x3038b4(0x13b)](_0x42eca2=>{const _0x4270e4=_0x3038b4;_0x27c733(_0x42eca2),_0x36280f[_0x4270e4(0x115)]=_0x42eca2[_0x4270e4(0xfa)]['subscribe'](_0x2b6053=>{_0x5ea467(_0x2b6053);});}),()=>{const _0x4bff15=_0x3038b4;var _0x40f670;(_0x40f670=_0x36280f[_0x4bff15(0x115)])==null||_0x40f670[_0x4bff15(0xd4)](),_0x36280f[_0x4bff15(0x115)]=null;}),[_0x38dafd,_0x295c57]),_0xd7cf52?_0x26cb86(_0x4a9e75,{'align':_0x3038b4(0xd7),'disabled':_0x2e28c9===G[_0x3038b4(0xf1)],'className':_0x3038b4(0xee),'overlay':_0x26cb86(ce,{'status':_0x2e28c9,'coordinator':_0xd7cf52}),'children':_0x26cb86(_0x3038b4(0xe6),{'className':_0x119bed('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2e28c9===G[_0x3038b4(0xf1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2e28c9!==G[_0x3038b4(0xf1)]}),'type':'button','children':_0x26cb86(_0x437ba5,{'className':'univer-size-4'})})}):null;}function ce(_0x111ecf){const _0x24dc35=_0x2c4769;let {status:_0x3332bd,coordinator:_0x4bfce0}=_0x111ecf;switch(_0x3332bd){case G[_0x24dc35(0xfd)]:return _0x26cb86(le,{'coordinator':_0x4bfce0});case G['FOLLOWING']:return _0x26cb86(ue,{'coordinator':_0x4bfce0});case G['NOT_FOLLOWING']:return _0x26cb86(de,{'coordinator':_0x4bfce0});case G[_0x24dc35(0xf1)]:return _0x26cb86(fe,{});case G[_0x24dc35(0xf4)]:return _0x26cb86(J,{'coordinator':_0x4bfce0});default:return null;}}function le(_0x3888a6){const _0x4d1925=_0x2c4769;let {coordinator:_0x521bb6}=_0x3888a6;return _0x5e7cba(_0xdcd6d,{'children':[_0x26cb86(_0x4d1925(0x153),{'className':_0x4d1925(0x10a),'children':_0x4d1925(0x10e)}),_0x26cb86(_0x355ab6,{'onClick':()=>_0x521bb6['tryStartPresenting'](),'children':_0x4d1925(0xf8)})]});}function ue(_0x462f26){const _0x28f13f=_0x2c4769;let {coordinator:_0x151114}=_0x462f26;return _0x5e7cba(_0xdcd6d,{'children':[_0x26cb86(_0x28f13f(0x153),{'className':_0x28f13f(0x10a),'children':_0x28f13f(0x111)}),_0x26cb86(_0x355ab6,{'onClick':()=>_0x151114['stopFollowing'](),'children':_0x28f13f(0x145)})]});}function de(_0x1d02b6){const _0x2ec771=_0x2c4769;let {coordinator:_0x5f4dd8}=_0x1d02b6;return _0x5e7cba(_0xdcd6d,{'children':[_0x26cb86(_0x2ec771(0x153),{'className':_0x2ec771(0x10a),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x26cb86(_0x355ab6,{'variant':_0x2ec771(0x124),'onClick':()=>_0x5f4dd8[_0x2ec771(0x119)](),'children':_0x2ec771(0xcd)})]});}function J(_0x1db2e8){const _0x4b4e99=_0x2c4769;let {coordinator:_0x1ea2bd}=_0x1db2e8;return _0x5e7cba(_0xdcd6d,{'children':[_0x26cb86(_0x4b4e99(0x153),{'className':_0x4b4e99(0x10a),'children':_0x4b4e99(0x12c)}),_0x26cb86(_0x355ab6,{'variant':'default','onClick':()=>_0x1ea2bd['stopPresenting'](),'children':_0x4b4e99(0x148)})]});}function _0x15ef(){const _0x284071=['tryStartPresenting','pluginName','_handleOnline','decorate','onStarting','_startPresenting','registerComponent','button','_handleNewHost','pipe','_status','onRendered','symbol','_sharedOperations','values','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-white\x20dark:!univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageName','2558780HxpNXB','OFFLINE','_config','has','PRESENTING','521457mQWcwd','getLiveShareCoordinator','NEW_CHANGESETS','Start','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','status$','getUnitId','_handleTerminate','IDLE','override','_unitID','registerInitialStateReporter','map','_startLiveShareCoordinator','getMemberID','_liveShareService','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinatorSync','stringify','set','next','univer-mb-3\x20univer-w-full\x20univer-text-sm','find','OPERATION','getTypeOfUnitDisposed$','Present\x20this\x20document','UNIVER_SHEET','add','You\x27re\x20following\x20the\x20presenter','getCurrentTypeOfUnit$','executeCommand','constructor','current','_stopFollowing','complete','FOLLOWING','startFollowing','type','_collabSession','shouldShareOperation','LIVESHARE_OPERATION','_handleOffline','2275680dQOtqM','subscribe','UNIVER_UNKNOWN','dispose','send','text','7PJuHbk','default','operations','You\x27are\x20offline.','_stopPresenting','_injector','parse','You\x27re\x20presenting\x20the\x20document','_status$','LIVESHARE_FETCH_OPERATIONS','_collabSessionService','prototype','forEach','requireSession','_configService','stopFollowing','_commandDisposable','clear','_mountLiveShare','iterator','params','SAME_OPERATION_SHARE_INTERVAL','then','memberID','length','data','_handleOperation','NOT_FOLLOWING','call','registerSharedOperation','_uiPartsService','_fetchOperations','Stop\x20following','getStatus','dispose$','Stop\x20presenting','disposeWithMe','_commandService','from','asObservable','get','setConfig','_entities','LIVESHARE_NEW_HOST','sessionStatus$','7495952MiYIvu','div','getInitialStates','LIVESHARE_REQUEST_HOST','LIVESHARE_TERMINATE','1087024IPRNpj','_reporters','idle','unitId','getConfig','Start\x20following','init','691159aEcZeH','_startFollowing','toPrimitive','_init','object','unsubscribe','function','stopPresenting','end','_beIdle','_presenter','4793664LfoXSA','delete','@univerjs-pro/live-share','ONLINE','_handleNewChangeSets'];_0x15ef=function(){return _0x284071;};return _0x15ef();}function fe(){const _0x111203=_0x2c4769;return _0x26cb86(_0xdcd6d,{'children':_0x111203(0x128)});}let Y=class extends _0x57dd0e{constructor(_0x4c1c84,_0x6d7ebf){const _0x5d3777=_0x2c4769;super(),this['_injector']=_0x4c1c84,this[_0x5d3777(0x143)]=_0x6d7ebf,this[_0x5d3777(0x137)]();}[_0x2c4769(0x137)](){const _0x539821=_0x2c4769;this[_0x539821(0x149)](this[_0x539821(0x143)][_0x539821(0xe5)](_0x4d8caf['HEADER_MENU'],()=>_0x56b9bf(q,this[_0x539821(0x12a)])));}};Y=U([H(0x0,_0x1b48b6(_0x4a9c22)),H(0x1,_0xaf3c68)],Y);var pe=_0x2c4769(0xdc),me='0.18.0';const X='live-share.config';Symbol(X);const Z={};let Q=class extends _0x57dd0e{constructor(_0x25608f){const _0x53f85d=_0x2c4769;super(),this[_0x53f85d(0x104)]=_0x25608f,this[_0x53f85d(0xd2)]();}[_0x2c4769(0xd2)](){[_0x5e8bdc['id'],_0x6ac03b['id'],_0x45b627['id']]['forEach'](_0x46e66d=>{const _0x26132f=_0x3add;this[_0x26132f(0x149)](this[_0x26132f(0x104)]['registerSharedOperation'](_0x46e66d));});}};Q=U([H(0x0,_0x1b48b6(V))],Q);let $=class extends _0x7c0ac5{constructor(_0x55c6e2=Z,_0x2caa4d,_0xfe55d4){const _0x5895a1=_0x2c4769;super(),this[_0x5895a1(0xf2)]=_0x55c6e2,this[_0x5895a1(0x12a)]=_0x2caa4d,this[_0x5895a1(0x133)]=_0xfe55d4;let {..._0x391311}=_0x5e13f2({},Z,this[_0x5895a1(0xf2)]);this[_0x5895a1(0x133)][_0x5895a1(0x14e)](X,_0x391311);}[_0x2c4769(0xe3)](){const _0x2585a8=_0x2c4769;_0x1da1fe(this[_0x2585a8(0x12a)],_0x4086ed([[V],[W],[Q],[Y]],this[_0x2585a8(0xf2)][_0x2585a8(0xfe)])),_0x24fee3(this[_0x2585a8(0x12a)],[[Q]]);}[_0x2c4769(0xea)](){const _0x1e320c=_0x2c4769;_0x24fee3(this[_0x1e320c(0x12a)],[[Y]]);}};B($,_0x2c4769(0x11a),_0x53d6b7[_0x2c4769(0x121)]),B($,_0x2c4769(0xe0),_0x2c4769(0x105)),B($,_0x2c4769(0xef),pe),B($,'version',me),$=U([_0x9d4cf9(_0x5e2ff9),H(0x1,_0x1b48b6(_0x4a9c22)),H(0x2,_0x43996c)],$);export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x2513a0=_0x5d5b;(function(_0x189315,_0x20ae68){const _0x5d336c=_0x5d5b,_0x2afe1b=_0x189315();while(!![]){try{const _0x2698fb=-parseInt(_0x5d336c(0xf5))/0x1+parseInt(_0x5d336c(0x80))/0x2*(-parseInt(_0x5d336c(0x99))/0x3)+parseInt(_0x5d336c(0xb4))/0x4*(parseInt(_0x5d336c(0xe4))/0x5)+parseInt(_0x5d336c(0xff))/0x6*(parseInt(_0x5d336c(0x7b))/0x7)+parseInt(_0x5d336c(0x87))/0x8*(-parseInt(_0x5d336c(0xe1))/0x9)+parseInt(_0x5d336c(0x8e))/0xa+-parseInt(_0x5d336c(0xea))/0xb*(-parseInt(_0x5d336c(0x92))/0xc);if(_0x2698fb===_0x20ae68)break;else _0x2afe1b['push'](_0x2afe1b['shift']());}catch(_0x564337){_0x2afe1b['push'](_0x2afe1b['shift']());}}}(_0x4f75,0x3583c));import{CommandType as _0x2350d3,DependentOn as _0x12cd2b,Disposable as _0x7e3118,DisposableCollection as _0x2d19bf,ICommandService as _0x5c22fb,IConfigService as _0x212af8,IUniverInstanceService as _0x19fa44,Inject as _0x1b8e3f,Injector as _0x44d9df,Plugin as _0x5aad12,RxDisposable as _0xa78c25,UniverInstanceType as _0x59028d,merge as _0x1d4a14,mergeOverrideWithDependencies as _0x580aae,registerDependencies as _0x30e8a5,toDisposable as _0x5ab2d9,touchDependencies as _0x357def}from'@univerjs/core';import{BuiltInUIPart as _0x27c8b7,IUIPartsService as _0x1fea8b,connectInjector as _0x579567,useDependency as _0x63768,useObservable as _0x3d864d}from'@univerjs/ui';import{Button as _0x39a743,Dropdown as _0x58c459,clsx as _0x10de51}from'@univerjs/design';import{LiveShareIcon as _0x569935}from'@univerjs/icons';import{useEffect as _0x23f7f4,useRef as _0x17b498,useState as _0x4b88a6}from'react';import{CollaborationEvent as _0x410fbb,parseProtocolChangeset as _0x33853e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x19e44a,SessionStatus as _0x52fdbf,UniverCollaborationClientPlugin as _0x1d07dd}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4f6c05,SetWorksheetActiveOperation as _0x4e08ea}from'@univerjs/sheets';import{BehaviorSubject as _0x3b9fa0,Subject as _0x56499e}from'rxjs';function _0x4f75(){const _0xba0521=['override','status$','You\x27are\x20offline.','memberID','384670vjwymn','registerInitialStateReporter','LIVESHARE_OPERATION','object','startFollowing','_sharedOperations','Stop\x20presenting','_uiPartsService','sheet','getValue','2694OpCEfd','_injector','set','presenter','call','complete','shouldShareOperation','You\x27re\x20presenting\x20the\x20document','setConfig','IDLE','_startFollowing','defineProperty','data','getLiveShareCoordinator','next','UNIVER_UNKNOWN','_commandService','getTypeOfUnitAdded$','OPERATION','553zWqjpw','UNIVER_SHEET','stopPresenting','sessionStatus$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','33094WPTpVB','mutations','add','packageName','createInstance','reverse','offline','24bMHAZV','presenting','_presenter','unitId','decorate','live-share.config','_handleNewHost','3113310nLCiLv','SAME_OPERATION_SHARE_INTERVAL','_collabSessionService','_stopPresenting','4188WLeQsV','registerSharedOperation','stopFollowing','div','_liveShareService','registerComponent','version','69StxOMl','stringify','subscribe','@univerjs-pro/live-share','getMemberID','getCurrentTypeOfUnit$','_beIdle','onCommandExecuted','_commandDisposable','You\x27re\x20following\x20the\x20presenter','_startLiveShareCoordinator','OFFLINE','delete','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_init','function','parse','pipe','type','getInitialStates','asObservable','_stopFollowing','onStarting','params','getLiveShareCoordinatorSync','_fetchOperations','has','256jwecuw','getUnitId','constructor','_status','ONLINE','idle','init','_configService','unsubscribe','LIVESHARE_TERMINATE','current','find','end','values','_startPresenting','length','PRESENTING','button','LIVESHARE_NEW_HOST','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_config','Present\x20this\x20document','HEADER_MENU','dispose','requireSession','LIVESHARE_REQUEST_HOST','NOT_FOLLOWING','executeCommand','_handleTerminate','_handleOnline','tryStartPresenting','get','symbol','send','_collabSession','UNIVER_LIVE_SHARE_PLUGIN','getTypeOfUnitDisposed$','default','_reporters','univer-mb-3\x20univer-w-full\x20univer-text-sm','following','_entities','0.19.0','event$','onRendered','1179918AHKtEC','_unitID','includes','25930ryaFvv','disposeWithMe','_handleOffline','FOLLOWING','_status$','getStatus','22033cwlRNP','map','prototype','forEach','then','dispose$','_handleOperation'];_0x4f75=function(){return _0xba0521;};return _0x4f75();}import{takeUntil as _0x4d26a8,throttleTime as _0x3fdd56}from'rxjs/operators';import{Fragment as _0x82c5a5,jsx as _0xd9a983,jsxs as _0x2c4e75}from'react/jsx-runtime';import{SetScrollOperation as _0x42ce5d,SetZoomRatioOperation as _0x4ad841}from'@univerjs/sheets-ui';function L(_0x984845){'@babel/helpers - typeof';const _0xc16c8c=_0x5d5b;return L=typeof Symbol==_0xc16c8c(0xa8)&&typeof Symbol['iterator']=='symbol'?function(_0x406d0d){return typeof _0x406d0d;}:function(_0x460b5b){const _0x4fb43e=_0xc16c8c;return _0x460b5b&&typeof Symbol==_0x4fb43e(0xa8)&&_0x460b5b[_0x4fb43e(0xb6)]===Symbol&&_0x460b5b!==Symbol[_0x4fb43e(0xec)]?_0x4fb43e(0xd4):typeof _0x460b5b;},L(_0x984845);}function _0x5d5b(_0x1a53bc,_0x46a1ee){_0x1a53bc=_0x1a53bc-0x6e;const _0x4f7521=_0x4f75();let _0x5d5bc4=_0x4f7521[_0x1a53bc];return _0x5d5bc4;}function R(_0xef0de5,_0x2c174a){const _0x4a3ec5=_0x5d5b;if(L(_0xef0de5)!=_0x4a3ec5(0xf8)||!_0xef0de5)return _0xef0de5;var _0x647f00=_0xef0de5[Symbol['toPrimitive']];if(_0x647f00!==void 0x0){var _0x4bba30=_0x647f00[_0x4a3ec5(0x103)](_0xef0de5,_0x2c174a||'default');if(L(_0x4bba30)!=_0x4a3ec5(0xf8))return _0x4bba30;throw TypeError(_0x4a3ec5(0xa6));}return(_0x2c174a==='string'?String:Number)(_0xef0de5);}function z(_0x238108){var _0x47eb17=R(_0x238108,'string');return L(_0x47eb17)=='symbol'?_0x47eb17:_0x47eb17+'';}function B(_0x208471,_0x511d28,_0x3d1074){const _0x9d4b2d=_0x5d5b;return(_0x511d28=z(_0x511d28))in _0x208471?Object[_0x9d4b2d(0x73)](_0x208471,_0x511d28,{'value':_0x3d1074,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x208471[_0x511d28]=_0x3d1074,_0x208471;}var V=class extends _0x7e3118{constructor(..._0x21ce42){const _0x10a3ee=_0x5d5b;super(..._0x21ce42),B(this,_0x10a3ee(0xfa),new Set()),B(this,'_reporters',new Set());}[_0x2513a0(0x93)](_0x9757b3){const _0x40cf10=_0x2513a0;return this['_sharedOperations']['add'](_0x9757b3),_0x5ab2d9(()=>this[_0x40cf10(0xfa)]['delete'](_0x9757b3));}[_0x2513a0(0xf6)](_0x4f4ef3){const _0x3b023e=_0x2513a0;return this[_0x3b023e(0xda)]['add'](_0x4f4ef3),_0x5ab2d9(()=>this[_0x3b023e(0xda)][_0x3b023e(0xa5)](_0x4f4ef3));}[_0x2513a0(0x6e)](_0xacab35){const _0x1a6ae7=_0x2513a0;return this[_0x1a6ae7(0xfa)]['has'](_0xacab35);}['getInitialStates'](_0x480131){const _0x3c7f2f=_0x2513a0;return Array['from'](this['_reporters'])[_0x3c7f2f(0xeb)](_0x3f83a8=>_0x3f83a8(_0x480131));}};function H(_0x434a55,_0x53ccaf){return function(_0x1ef524,_0x28d6ef){_0x53ccaf(_0x1ef524,_0x28d6ef,_0x434a55);};}function U(_0x4a3843,_0x56d1dc,_0x15225d,_0x38a271){const _0xae5f76=_0x2513a0;var _0x38686e=arguments['length'],_0x2284b9=_0x38686e<0x3?_0x56d1dc:_0x38a271===null?_0x38a271=Object['getOwnPropertyDescriptor'](_0x56d1dc,_0x15225d):_0x38a271,_0x2d0e5b;if(typeof Reflect==_0xae5f76(0xf8)&&typeof Reflect[_0xae5f76(0x8b)]=='function')_0x2284b9=Reflect[_0xae5f76(0x8b)](_0x4a3843,_0x56d1dc,_0x15225d,_0x38a271);else{for(var _0x4314ac=_0x4a3843[_0xae5f76(0xc3)]-0x1;_0x4314ac>=0x0;_0x4314ac--)(_0x2d0e5b=_0x4a3843[_0x4314ac])&&(_0x2284b9=(_0x38686e<0x3?_0x2d0e5b(_0x2284b9):_0x38686e>0x3?_0x2d0e5b(_0x56d1dc,_0x15225d,_0x2284b9):_0x2d0e5b(_0x56d1dc,_0x15225d))||_0x2284b9);}return _0x38686e>0x3&&_0x2284b9&&Object[_0xae5f76(0x73)](_0x56d1dc,_0x15225d,_0x2284b9),_0x2284b9;}let W=class extends _0xa78c25{constructor(_0x410298,_0x5be1d7,_0x639acd){const _0x23be2e=_0x2513a0;super(),this['_univerInstanceService']=_0x410298,this[_0x23be2e(0x100)]=_0x5be1d7,this[_0x23be2e(0x90)]=_0x639acd,B(this,_0x23be2e(0xdd),new Map()),this[_0x23be2e(0xa7)]();}async[_0x2513a0(0x75)](_0x4bb11b){const _0xb98a61=_0x2513a0;return this[_0xb98a61(0xdd)][_0xb98a61(0xb3)](_0x4bb11b)||await this[_0xb98a61(0xa3)](_0x4bb11b),this['_entities']['get'](_0x4bb11b);}[_0x2513a0(0xb1)](_0x9e99e7){const _0x5d5181=_0x2513a0;var _0xdd63a3;return(_0xdd63a3=this[_0x5d5181(0xdd)]['get'](_0x9e99e7))==null?null:_0xdd63a3;}['_init'](){const _0xeabfd8=_0x2513a0;this['_univerInstanceService'][_0xeabfd8(0x79)](_0x59028d[_0xeabfd8(0x7c)])[_0xeabfd8(0xaa)](_0x4d26a8(this[_0xeabfd8(0xef)]))[_0xeabfd8(0x9b)](async _0x1dde30=>{const _0xd7e86d=_0xeabfd8;let _0x14dce9=_0x1dde30[_0xd7e86d(0xb5)]();this[_0xd7e86d(0xdd)]['has'](_0x14dce9)||this[_0xd7e86d(0xa3)](_0x14dce9);}),this['_univerInstanceService'][_0xeabfd8(0xd8)](_0x59028d[_0xeabfd8(0x7c)])['pipe'](_0x4d26a8(this[_0xeabfd8(0xef)]))['subscribe'](_0x1f6c27=>{const _0x49b8d=_0xeabfd8;let _0xdab455=_0x1f6c27[_0x49b8d(0xb5)](),_0x16c6ed=this[_0x49b8d(0xdd)][_0x49b8d(0xd3)](_0xdab455);_0x16c6ed==null||_0x16c6ed[_0x49b8d(0xcb)]();});}async[_0x2513a0(0xa3)](_0x428d56){const _0x17e061=_0x2513a0;let _0x487a79=await this[_0x17e061(0x90)][_0x17e061(0xcc)](_0x428d56),_0x430135=this[_0x17e061(0x100)][_0x17e061(0x84)](K,_0x428d56,_0x487a79);return _0x430135[_0x17e061(0xba)](),this[_0x17e061(0xdd)][_0x17e061(0x101)](_0x428d56,_0x430135),_0x430135;}};W=U([H(0x0,_0x19fa44),H(0x1,_0x1b8e3f(_0x44d9df)),H(0x2,_0x1b8e3f(_0x19e44a))],W);let G=function(_0x2148cd){const _0x71b943=_0x2513a0;return _0x2148cd[_0x71b943(0xa4)]=_0x71b943(0x86),_0x2148cd['IDLE']=_0x71b943(0xb9),_0x2148cd['FOLLOWING']=_0x71b943(0xdc),_0x2148cd['NOT_FOLLOWING']='not-following',_0x2148cd[_0x71b943(0xc4)]=_0x71b943(0x88),_0x2148cd;}({}),K=class extends _0xa78c25{get[_0x2513a0(0xb7)](){const _0x2ee695=_0x2513a0;return this[_0x2ee695(0xe8)][_0x2ee695(0xfe)]();}constructor(_0x5ad55a,_0xe33e1d,_0xd77cfa,_0x400411,_0x2bb41b){const _0x2f3e9=_0x2513a0;super(),this[_0x2f3e9(0xe2)]=_0x5ad55a,this[_0x2f3e9(0xd6)]=_0xe33e1d,this[_0x2f3e9(0xbb)]=_0xd77cfa,this['_liveShareService']=_0x400411,this[_0x2f3e9(0x78)]=_0x2bb41b,B(this,_0x2f3e9(0xe8),new _0x3b9fa0(G[_0x2f3e9(0x71)])),B(this,_0x2f3e9(0xf2),this['_status$'][_0x2f3e9(0xad)]()),B(this,_0x2f3e9(0xa7),!0x1),B(this,_0x2f3e9(0xa1),null),B(this,_0x2f3e9(0x89),null);}[_0x2513a0(0xcb)](){const _0x3d0d73=_0x2513a0;var _0x54f3d7;(_0x54f3d7=this['_commandDisposable'])==null||_0x54f3d7[_0x3d0d73(0xcb)](),this[_0x3d0d73(0xe8)][_0x3d0d73(0x76)](G[_0x3d0d73(0x71)]),this[_0x3d0d73(0xe8)][_0x3d0d73(0x104)]();}[_0x2513a0(0xe9)](){const _0x4ed75d=_0x2513a0;return this[_0x4ed75d(0xb7)];}[_0x2513a0(0xba)](){const _0x5d252c=_0x2513a0;this[_0x5d252c(0xa7)]||(this[_0x5d252c(0xa7)]=!0x0,this[_0x5d252c(0xd6)][_0x5d252c(0x7e)][_0x5d252c(0xaa)](_0x4d26a8(this[_0x5d252c(0xef)]))['subscribe'](_0x1d4dbd=>{const _0x1e53b7=_0x5d252c;switch(_0x1d4dbd){case _0x52fdbf['OFFLINE']:this[_0x1e53b7(0xe6)]();break;case _0x52fdbf[_0x1e53b7(0xb8)]:this[_0x1e53b7(0xd1)]();break;default:}}),this[_0x5d252c(0xd6)][_0x5d252c(0xdf)]['pipe'](_0x4d26a8(this['dispose$']))[_0x5d252c(0x9b)](_0x115221=>{const _0x1fa27c=_0x5d252c;let {eventID:_0x4e5a35}=_0x115221;switch(_0x4e5a35){case _0x410fbb[_0x1fa27c(0xc6)]:this[_0x1fa27c(0x8d)](_0x115221);break;case _0x410fbb[_0x1fa27c(0xf7)]:this['_handleOperation'](_0x115221);break;case _0x410fbb[_0x1fa27c(0xbd)]:this[_0x1fa27c(0xd0)]();break;case _0x410fbb['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x115221);break;default:}}));}['tryStartPresenting'](){const _0x116ef3=_0x2513a0;this['_collabSession']['send']({'eventID':_0x410fbb[_0x116ef3(0xcd)],'data':{'unitID':this[_0x116ef3(0xe2)],'userID':this[_0x116ef3(0xd6)][_0x116ef3(0x9d)]()}},this['_unitID']);}[_0x2513a0(0x7d)](){const _0xe02768=_0x2513a0;this[_0xe02768(0xb7)]===G['PRESENTING']&&(this['_status$'][_0xe02768(0x76)](G['IDLE']),this[_0xe02768(0xd6)][_0xe02768(0xd5)]({'eventID':_0x410fbb[_0xe02768(0xbd)],'data':{'unitID':this[_0xe02768(0xe2)]}},this[_0xe02768(0xe2)]));}[_0x2513a0(0xf9)](){const _0x495650=_0x2513a0;this[_0x495650(0xb7)]===G[_0x495650(0xce)]&&(this[_0x495650(0xe8)][_0x495650(0x76)](G['FOLLOWING']),this[_0x495650(0x72)]());}[_0x2513a0(0x94)](){const _0x217f10=_0x2513a0;this[_0x217f10(0xb7)]===G[_0x217f10(0xe7)]&&this['_stopFollowing']();}[_0x2513a0(0x8d)](_0x83cd08){const _0x5259a8=_0x2513a0;let {presenter:_0x253c86}=_0x83cd08[_0x5259a8(0x74)],_0x234804=this[_0x5259a8(0xd6)][_0x5259a8(0x9d)]();this[_0x5259a8(0x89)]=_0x253c86,_0x253c86===_0x234804?(this[_0x5259a8(0xae)](),this[_0x5259a8(0xc2)]()):this['_status']!==G[_0x5259a8(0xce)]&&(this[_0x5259a8(0x91)](),this[_0x5259a8(0x72)]());}[_0x2513a0(0xb2)](){const _0x359d83=_0x2513a0;let _0x4ad5e4={'eventID':_0x410fbb['LIVESHARE_FETCH_OPERATIONS']};this[_0x359d83(0xd6)][_0x359d83(0xd5)](_0x4ad5e4,this['_unitID']);}[_0x2513a0(0xd0)](){const _0x2028eb=_0x2513a0;this['_presenter']=null,this[_0x2028eb(0xb7)]!==G[_0x2028eb(0xc4)]&&this[_0x2028eb(0x9f)]();}['_handleNewChangeSets'](_0x506c53){const _0x142b94=_0x2513a0;if(this['_status']===G['FOLLOWING']&&this[_0x142b94(0x89)]===_0x506c53[_0x142b94(0x74)][_0x142b94(0xf4)]){let _0x581e17=_0x33853e(_0x506c53[_0x142b94(0x74)])[_0x142b94(0x81)][_0x142b94(0x85)]()[_0x142b94(0xbf)](_0x4e10fd=>_0x4e10fd['id']===_0x4f6c05['id']);if(_0x581e17){let _0x2e0d94=_0x581e17['params'][_0x142b94(0x8a)],_0x1597a5=_0x581e17[_0x142b94(0xb0)][_0x142b94(0xfd)]['id'];setTimeout(()=>{const _0x2bee90=_0x142b94;this[_0x2bee90(0x78)][_0x2bee90(0xcf)](_0x4e08ea['id'],{'unitId':_0x2e0d94,'subUnitId':_0x1597a5},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x9e17d6=_0x2513a0;this[_0x9e17d6(0xe8)][_0x9e17d6(0x76)](G[_0x9e17d6(0xc4)]);let _0x713966=new Map(),_0x79972b=this[_0x9e17d6(0xa1)]=new _0x2d19bf();_0x79972b[_0x9e17d6(0x82)](_0x5ab2d9(()=>{const _0x53a95e=_0x9e17d6;_0x713966[_0x53a95e(0xed)](_0x281bd2=>_0x281bd2['complete']()),_0x713966['clear']();})),_0x79972b[_0x9e17d6(0x82)](this['_commandService'][_0x9e17d6(0xa0)](_0x395bba=>{const _0x342434=_0x9e17d6;if(_0x395bba[_0x342434(0xab)]!==_0x2350d3[_0x342434(0x7a)]||!this[_0x342434(0x96)][_0x342434(0x6e)](_0x395bba['id']))return;let {id:_0x47cb55}=_0x395bba,_0x18ecc0;if(_0x713966[_0x342434(0xb3)](_0x47cb55))_0x18ecc0=_0x713966[_0x342434(0xd3)](_0x47cb55);else{var _0x268f91;_0x18ecc0=new _0x56499e(),_0x713966['set'](_0x47cb55,_0x18ecc0),_0x18ecc0[_0x342434(0xaa)](_0x3fdd56((_0x268f91=this[_0x342434(0xbb)]['getConfig'](_0x342434(0x8f)))==null?0xc8:_0x268f91,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x342434(0x9b)](_0x3e2abf=>{const _0x4a0a3d=_0x342434;this[_0x4a0a3d(0xd6)][_0x4a0a3d(0xd5)]({'eventID':_0x410fbb['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x3e2abf['id']]:{'id':_0x3e2abf['id'],'params':JSON[_0x4a0a3d(0x9a)](_0x3e2abf[_0x4a0a3d(0xb0)])}}}},this[_0x4a0a3d(0xe2)]);});}_0x18ecc0[_0x342434(0x76)](_0x395bba);})),this['_liveShareService'][_0x9e17d6(0xac)](this[_0x9e17d6(0xe2)])[_0x9e17d6(0xed)](_0x2a13e0=>this[_0x9e17d6(0xd6)][_0x9e17d6(0xd5)]({'eventID':_0x410fbb[_0x9e17d6(0xf7)],'data':{'unitID':this[_0x9e17d6(0xe2)],'operations':{[_0x2a13e0['id']]:{'id':_0x2a13e0['id'],'params':JSON[_0x9e17d6(0x9a)](_0x2a13e0['params'])}}}},this['_unitID']));}[_0x2513a0(0x91)](){const _0x1856f7=_0x2513a0;var _0xaad460;this[_0x1856f7(0xe8)][_0x1856f7(0x76)](G[_0x1856f7(0x71)]),(_0xaad460=this[_0x1856f7(0xa1)])==null||_0xaad460[_0x1856f7(0xcb)](),this[_0x1856f7(0xa1)]=null;}[_0x2513a0(0x72)](){const _0x3dcfc0=_0x2513a0;var _0x1049a0;(_0x1049a0=this['_commandDisposable'])==null||_0x1049a0[_0x3dcfc0(0xcb)](),this['_status$'][_0x3dcfc0(0x76)](G[_0x3dcfc0(0xe7)]);}[_0x2513a0(0x9f)](){const _0xcf214f=_0x2513a0;var _0x4eab00;this[_0xcf214f(0xe8)][_0xcf214f(0x76)](G[_0xcf214f(0x71)]),(_0x4eab00=this[_0xcf214f(0xa1)])==null||_0x4eab00[_0xcf214f(0xcb)](),this['_commandDisposable']=null;}[_0x2513a0(0xae)](){const _0x581c3f=_0x2513a0;var _0x1c129a;this[_0x581c3f(0xe8)][_0x581c3f(0x76)](G[_0x581c3f(0xce)]),(_0x1c129a=this[_0x581c3f(0xa1)])==null||_0x1c129a['dispose']();}[_0x2513a0(0xf0)](_0x124414){const _0x556d36=_0x2513a0;if([G[_0x556d36(0xc4)],G[_0x556d36(0xce)],G[_0x556d36(0xa4)]][_0x556d36(0xe3)](this[_0x556d36(0xb7)])||!_0x124414[_0x556d36(0x74)]['presenter']||_0x124414[_0x556d36(0x74)][_0x556d36(0x102)]===this[_0x556d36(0xd6)][_0x556d36(0x9d)]())return;this[_0x556d36(0xb7)]===G[_0x556d36(0x71)]&&this[_0x556d36(0x72)]();let _0x4b22d8=_0x124414['data']['operations'];Object[_0x556d36(0xc1)](_0x4b22d8)['forEach'](_0x45ca4e=>{const _0x2f6a90=_0x556d36;this[_0x2f6a90(0x78)]['executeCommand'](_0x45ca4e['id'],_0x45ca4e[_0x2f6a90(0xb0)]?JSON[_0x2f6a90(0xa9)](_0x45ca4e['params']):null,{'fromCollab':!0x0});});}[_0x2513a0(0xe6)](){const _0x2a5637=_0x2513a0;var _0x17e3a2;this[_0x2a5637(0xe8)]['next'](G[_0x2a5637(0xa4)]),(_0x17e3a2=this[_0x2a5637(0xa1)])==null||_0x17e3a2[_0x2a5637(0xcb)]();}['_handleOnline'](){const _0x4415a2=_0x2513a0;this[_0x4415a2(0xe8)]['next'](G[_0x4415a2(0x71)]),this[_0x4415a2(0xb2)]();}};K=U([H(0x2,_0x212af8),H(0x3,_0x1b8e3f(V)),H(0x4,_0x5c22fb)],K);function q(){const _0x3dbe3a=_0x2513a0;let _0x38ba86=_0x63768(W),_0x3664dd=_0x63768(_0x19fa44),_0x525048=_0x3d864d(()=>_0x3664dd[_0x3dbe3a(0x9e)](_0x59028d[_0x3dbe3a(0x7c)]),void 0x0,!0x1,[]),[_0x4a844d,_0x3eeaa1]=_0x4b88a6(null),[_0x45c793,_0x5cf3eb]=_0x4b88a6(G[_0x3dbe3a(0x71)]),_0x58a79c=_0x17b498(null);return _0x23f7f4(()=>(_0x525048&&_0x38ba86[_0x3dbe3a(0x75)](_0x525048[_0x3dbe3a(0xb5)]())[_0x3dbe3a(0xee)](_0x392d0b=>{const _0x1afd00=_0x3dbe3a;_0x3eeaa1(_0x392d0b),_0x58a79c[_0x1afd00(0xbe)]=_0x392d0b[_0x1afd00(0xf2)]['subscribe'](_0x34154c=>{_0x5cf3eb(_0x34154c);});}),()=>{const _0x323a80=_0x3dbe3a;var _0x4358de;(_0x4358de=_0x58a79c[_0x323a80(0xbe)])==null||_0x4358de[_0x323a80(0xbc)](),_0x58a79c[_0x323a80(0xbe)]=null;}),[_0x525048,_0x38ba86]),_0x4a844d?_0xd9a983(_0x58c459,{'align':_0x3dbe3a(0xc0),'disabled':_0x45c793===G['OFFLINE'],'className':_0x3dbe3a(0xc7),'overlay':_0xd9a983(ce,{'status':_0x45c793,'coordinator':_0x4a844d}),'children':_0xd9a983(_0x3dbe3a(0xc5),{'className':_0x10de51(_0x3dbe3a(0x7f),{'univer-cursor-not-allowed':_0x45c793===G['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x45c793!==G['OFFLINE']}),'type':_0x3dbe3a(0xc5),'children':_0xd9a983(_0x569935,{'className':'univer-size-4'})})}):null;}function ce(_0xc373a3){const _0x2d43dd=_0x2513a0;let {status:_0x5a9b6b,coordinator:_0x15c9c0}=_0xc373a3;switch(_0x5a9b6b){case G[_0x2d43dd(0x71)]:return _0xd9a983(le,{'coordinator':_0x15c9c0});case G['FOLLOWING']:return _0xd9a983(ue,{'coordinator':_0x15c9c0});case G[_0x2d43dd(0xce)]:return _0xd9a983(de,{'coordinator':_0x15c9c0});case G['OFFLINE']:return _0xd9a983(fe,{});case G['PRESENTING']:return _0xd9a983(J,{'coordinator':_0x15c9c0});default:return null;}}function le(_0x2417ef){const _0x4be4d2=_0x2513a0;let {coordinator:_0x319c32}=_0x2417ef;return _0x2c4e75(_0x82c5a5,{'children':[_0xd9a983(_0x4be4d2(0x95),{'className':_0x4be4d2(0xdb),'children':_0x4be4d2(0xc9)}),_0xd9a983(_0x39a743,{'onClick':()=>_0x319c32[_0x4be4d2(0xd2)](),'children':'Start'})]});}function ue(_0x9bdaf8){const _0x6c33f1=_0x2513a0;let {coordinator:_0x3c90e5}=_0x9bdaf8;return _0x2c4e75(_0x82c5a5,{'children':[_0xd9a983(_0x6c33f1(0x95),{'className':_0x6c33f1(0xdb),'children':_0x6c33f1(0xa2)}),_0xd9a983(_0x39a743,{'onClick':()=>_0x3c90e5[_0x6c33f1(0x94)](),'children':'Stop\x20following'})]});}function de(_0x1f90b4){const _0x4cad0d=_0x2513a0;let {coordinator:_0x2b6492}=_0x1f90b4;return _0x2c4e75(_0x82c5a5,{'children':[_0xd9a983(_0x4cad0d(0x95),{'className':_0x4cad0d(0xdb),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0xd9a983(_0x39a743,{'variant':'text','onClick':()=>_0x2b6492[_0x4cad0d(0xf9)](),'children':'Start\x20following'})]});}function J(_0x7bcdfd){const _0x3ed32e=_0x2513a0;let {coordinator:_0x47eaba}=_0x7bcdfd;return _0x2c4e75(_0x82c5a5,{'children':[_0xd9a983(_0x3ed32e(0x95),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3ed32e(0x6f)}),_0xd9a983(_0x39a743,{'variant':_0x3ed32e(0xd9),'onClick':()=>_0x47eaba[_0x3ed32e(0x7d)](),'children':_0x3ed32e(0xfb)})]});}function fe(){const _0x35c176=_0x2513a0;return _0xd9a983(_0x82c5a5,{'children':_0x35c176(0xf3)});}let Y=class extends _0x7e3118{constructor(_0x379e14,_0x338635){super(),this['_injector']=_0x379e14,this['_uiPartsService']=_0x338635,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x464a53=_0x2513a0;this[_0x464a53(0xe5)](this[_0x464a53(0xfc)][_0x464a53(0x97)](_0x27c8b7[_0x464a53(0xca)],()=>_0x579567(q,this['_injector'])));}};Y=U([H(0x0,_0x1b8e3f(_0x44d9df)),H(0x1,_0x1fea8b)],Y);var pe=_0x2513a0(0x9c),me=_0x2513a0(0xde);const X=_0x2513a0(0x8c);Symbol(X);const Z={};let Q=class extends _0x7e3118{constructor(_0x5cb95c){const _0x17a58a=_0x2513a0;super(),this[_0x17a58a(0x96)]=_0x5cb95c,this[_0x17a58a(0xa7)]();}[_0x2513a0(0xa7)](){[_0x4ad841['id'],_0x42ce5d['id'],_0x4e08ea['id']]['forEach'](_0x15f90a=>{const _0x573058=_0x5d5b;this[_0x573058(0xe5)](this[_0x573058(0x96)][_0x573058(0x93)](_0x15f90a));});}};Q=U([H(0x0,_0x1b8e3f(V))],Q);let $=class extends _0x5aad12{constructor(_0x3b9461=Z,_0x1a84bc,_0x2bc71c){const _0x5b5419=_0x2513a0;super(),this[_0x5b5419(0xc8)]=_0x3b9461,this['_injector']=_0x1a84bc,this[_0x5b5419(0xbb)]=_0x2bc71c;let {..._0x361737}=_0x1d4a14({},Z,this[_0x5b5419(0xc8)]);this[_0x5b5419(0xbb)][_0x5b5419(0x70)](X,_0x361737);}[_0x2513a0(0xaf)](){const _0xcb0273=_0x2513a0;_0x30e8a5(this[_0xcb0273(0x100)],_0x580aae([[V],[W],[Q],[Y]],this['_config'][_0xcb0273(0xf1)])),_0x357def(this[_0xcb0273(0x100)],[[Q]]);}[_0x2513a0(0xe0)](){const _0x5d0e45=_0x2513a0;_0x357def(this[_0x5d0e45(0x100)],[[Y]]);}};B($,_0x2513a0(0xab),_0x59028d[_0x2513a0(0x77)]),B($,'pluginName',_0x2513a0(0xd7)),B($,_0x2513a0(0x83),pe),B($,_0x2513a0(0x98),me),$=U([_0x12cd2b(_0x1d07dd),H(0x1,_0x1b8e3f(_0x44d9df)),H(0x2,_0x212af8)],$);export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x554c9d=_0x4716;(function(_0x526816,_0x49c3d0){const _0x98149b=_0x4716,_0x274416=_0x526816();while(!![]){try{const _0x1728ff=parseInt(_0x98149b(0x8e))/0x1*(parseInt(_0x98149b(0x78))/0x2)+-parseInt(_0x98149b(0x87))/0x3*(-parseInt(_0x98149b(0x7f))/0x4)+-parseInt(_0x98149b(0x85))/0x5*(-parseInt(_0x98149b(0x7d))/0x6)+parseInt(_0x98149b(0x73))/0x7+-parseInt(_0x98149b(0x79))/0x8+parseInt(_0x98149b(0x75))/0x9+-parseInt(_0x98149b(0x6a))/0xa*(parseInt(_0x98149b(0x77))/0xb);if(_0x1728ff===_0x49c3d0)break;else _0x274416['push'](_0x274416['shift']());}catch(_0x573474){_0x274416['push'](_0x274416['shift']());}}}(_0x3c2d,0xafd13));import{LiveShareController as _0x419e5c,LiveShareStatus as _0x79f5e5}from'@univerjs-pro/live-share';function _0x4716(_0x25ca0a,_0xffe104){_0x25ca0a=_0x25ca0a-0x6a;const _0x3c2d96=_0x3c2d();let _0x4716a5=_0x3c2d96[_0x25ca0a];return _0x4716a5;}import{IUniverInstanceService as _0x1ead5e,UniverInstanceType as _0x1b0f25}from'@univerjs/core';import{FEnum as _0x6a1553,FUniver as _0x2f4533}from'@univerjs/core/facade';function o(_0x1d5d09){'@babel/helpers - typeof';const _0x1b73ce=_0x4716;return o=typeof Symbol=='function'&&typeof Symbol[_0x1b73ce(0x7c)]==_0x1b73ce(0x6d)?function(_0x57e610){return typeof _0x57e610;}:function(_0x19309f){const _0x26bffa=_0x1b73ce;return _0x19309f&&typeof Symbol=='function'&&_0x19309f[_0x26bffa(0x74)]===Symbol&&_0x19309f!==Symbol[_0x26bffa(0x8b)]?'symbol':typeof _0x19309f;},o(_0x1d5d09);}function s(_0x1d25ab,_0x27bebf){const _0x135c3a=_0x4716;if(o(_0x1d25ab)!=_0x135c3a(0x84)||!_0x1d25ab)return _0x1d25ab;var _0x35f40c=_0x1d25ab[Symbol['toPrimitive']];if(_0x35f40c!==void 0x0){var _0xc76754=_0x35f40c['call'](_0x1d25ab,_0x27bebf||_0x135c3a(0x88));if(o(_0xc76754)!=_0x135c3a(0x84))return _0xc76754;throw TypeError(_0x135c3a(0x8c));}return(_0x27bebf===_0x135c3a(0x7a)?String:Number)(_0x1d25ab);}function c(_0x535643){const _0x39e8c9=_0x4716;var _0x459d6f=s(_0x535643,_0x39e8c9(0x7a));return o(_0x459d6f)==_0x39e8c9(0x6d)?_0x459d6f:_0x459d6f+'';}function _0x3c2d(){const _0x104692=['8774bXnOQI','8385248fxxtoP','string','stopFollowing','iterator','171228Abpwuu','getCurrentUnitOfType','2316JqcEgI','LiveShareStatusEnum','tryStartPresenting','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','object','170eRubfg','getLiveShareCoordinatorSync','1866qTXooz','default','No\x20active\x20workbook\x20found.','_injector','prototype','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','startFollowing','91gueHtC','12205040wJBHoG','_initialize','IDLE','symbol','defineProperty','UNIVER_SHEET','stopPresenting','_liveShareController','get','3312652IlFTEu','constructor','7073316uPBfop','getLiveShareStatus','11xMSobn'];_0x3c2d=function(){return _0x104692;};return _0x3c2d();}function l(_0x4c9ce4,_0x3e1731,_0x3fb5c9){const _0x1edb23=_0x4716;return(_0x3e1731=c(_0x3e1731))in _0x4c9ce4?Object[_0x1edb23(0x6e)](_0x4c9ce4,_0x3e1731,{'value':_0x3fb5c9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4c9ce4[_0x3e1731]=_0x3fb5c9,_0x4c9ce4;}var u=class extends _0x2f4533{constructor(..._0x87fe94){const _0x2eed7a=_0x4716;super(..._0x87fe94),l(this,_0x2eed7a(0x71),void 0x0);}[_0x554c9d(0x6b)](_0x4333f6){const _0x32bba0=_0x554c9d;this['_liveShareController']=_0x4333f6[_0x32bba0(0x72)](_0x419e5c);}[_0x554c9d(0x76)](){const _0x636ba8=_0x554c9d;var _0x6eda5e;let _0x4701d0=this[_0x636ba8(0x8a)][_0x636ba8(0x72)](_0x1ead5e)['getCurrentUnitOfType'](_0x1b0f25[_0x636ba8(0x6f)]);if(!_0x4701d0)throw Error('No\x20active\x20workbook\x20found.');let _0x2527a1=_0x4701d0[_0x636ba8(0x82)](),_0x30fd63=this['_liveShareController'][_0x636ba8(0x86)](_0x2527a1);return(_0x6eda5e=_0x30fd63==null?void 0x0:_0x30fd63['getStatus']())==null?_0x79f5e5[_0x636ba8(0x6c)]:_0x6eda5e;}['startFollowing'](){const _0x4e9c03=_0x554c9d;let _0x3269e6=this['_injector'][_0x4e9c03(0x72)](_0x1ead5e)[_0x4e9c03(0x7e)](_0x1b0f25[_0x4e9c03(0x6f)]);if(!_0x3269e6)throw Error(_0x4e9c03(0x89));let _0x33d209=_0x3269e6[_0x4e9c03(0x82)](),_0x1066e2=this[_0x4e9c03(0x71)]['getLiveShareCoordinatorSync'](_0x33d209);if(!_0x1066e2)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1066e2[_0x4e9c03(0x8d)]();}[_0x554c9d(0x7b)](){const _0x497a11=_0x554c9d;let _0x28f71e=this[_0x497a11(0x8a)]['get'](_0x1ead5e)[_0x497a11(0x7e)](_0x1b0f25[_0x497a11(0x6f)]);if(!_0x28f71e)throw Error(_0x497a11(0x89));let _0x2ed28d=_0x28f71e[_0x497a11(0x82)](),_0x5cdd07=this['_liveShareController'][_0x497a11(0x86)](_0x2ed28d);if(!_0x5cdd07)throw Error(_0x497a11(0x83));_0x5cdd07['stopFollowing']();}['startPresenting'](){const _0x543d3d=_0x554c9d;let _0x2da5ab=this[_0x543d3d(0x8a)][_0x543d3d(0x72)](_0x1ead5e)[_0x543d3d(0x7e)](_0x1b0f25[_0x543d3d(0x6f)]);if(!_0x2da5ab)throw Error(_0x543d3d(0x89));let _0x437582=_0x2da5ab['getUnitId'](),_0x5cbd7c=this['_liveShareController'][_0x543d3d(0x86)](_0x437582);if(!_0x5cbd7c)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5cbd7c[_0x543d3d(0x81)]();}[_0x554c9d(0x70)](){const _0x575d73=_0x554c9d;let _0x59b2f8=this[_0x575d73(0x8a)]['get'](_0x1ead5e)[_0x575d73(0x7e)](_0x1b0f25[_0x575d73(0x6f)]);if(!_0x59b2f8)throw Error(_0x575d73(0x89));let _0x118a21=_0x59b2f8['getUnitId'](),_0x17f6b0=this[_0x575d73(0x71)][_0x575d73(0x86)](_0x118a21);if(!_0x17f6b0)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x17f6b0['stopPresenting']();}};_0x2f4533['extend'](u);var d=class extends _0x6a1553{get[_0x554c9d(0x80)](){return _0x79f5e5;}};_0x6a1553['extend'](d);export{};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2c4769=_0x3add;(function(_0x2f1c88,_0x2085a3){const _0x4dcdaa=_0x3add,_0x4bf412=_0x2f1c88();while(!![]){try{const _0x428c6d=-parseInt(_0x4dcdaa(0xcf))/0x1+-parseInt(_0x4dcdaa(0x157))/0x2+-parseInt(_0x4dcdaa(0xf5))/0x3+parseInt(_0x4dcdaa(0xf0))/0x4+-parseInt(_0x4dcdaa(0x11f))/0x5+parseInt(_0x4dcdaa(0xda))/0x6+-parseInt(_0x4dcdaa(0x125))/0x7*(-parseInt(_0x4dcdaa(0x152))/0x8);if(_0x428c6d===_0x2085a3)break;else _0x4bf412['push'](_0x4bf412['shift']());}catch(_0x5e4a33){_0x4bf412['push'](_0x4bf412['shift']());}}}(_0x15ef,0x7d007));import{CommandType as _0x3a5405,DependentOn as _0x9d4cf9,Disposable as _0x57dd0e,DisposableCollection as _0x215aed,ICommandService as _0x3dd35d,IConfigService as _0x43996c,IUniverInstanceService as _0x261092,Inject as _0x1b48b6,Injector as _0x4a9c22,Plugin as _0x7c0ac5,RxDisposable as _0x4f9eac,UniverInstanceType as _0x53d6b7,merge as _0x5e13f2,mergeOverrideWithDependencies as _0x4086ed,registerDependencies as _0x1da1fe,toDisposable as _0x82c7a0,touchDependencies as _0x24fee3}from'@univerjs/core';import{BuiltInUIPart as _0x4d8caf,IUIPartsService as _0xaf3c68,connectInjector as _0x56b9bf,useDependency as _0x8412e9,useObservable as _0x13c779}from'@univerjs/ui';import{Button as _0x355ab6,Dropdown as _0x4a9e75,clsx as _0x119bed}from'@univerjs/design';import{LiveShareIcon as _0x437ba5}from'@univerjs/icons';import{useEffect as _0x55c713,useRef as _0x5be6eb,useState as _0x2e17cb}from'react';import{CollaborationEvent as _0x462cc9,parseProtocolChangeset as _0x2f20c3}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2c4c0e,SessionStatus as _0x40f15e,UniverCollaborationClientPlugin as _0x5e2ff9}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4a64ee,SetWorksheetActiveOperation as _0x45b627}from'@univerjs/sheets';import{BehaviorSubject as _0x1a7f50,Subject as _0x2bf7d2}from'rxjs';import{takeUntil as _0x262fde,throttleTime as _0x263058}from'rxjs/operators';import{Fragment as _0xdcd6d,jsx as _0x26cb86,jsxs as _0x5e7cba}from'react/jsx-runtime';import{SetScrollOperation as _0x6ac03b,SetZoomRatioOperation as _0x5e8bdc}from'@univerjs/sheets-ui';function _0x3add(_0x156e72,_0x216d77){_0x156e72=_0x156e72-0xca;const _0x15ef68=_0x15ef();let _0x3addd6=_0x15ef68[_0x156e72];return _0x3addd6;}function L(_0x1d8ca2){'@babel/helpers - typeof';const _0xbdc3df=_0x3add;return L=typeof Symbol==_0xbdc3df(0xd5)&&typeof Symbol[_0xbdc3df(0x138)]==_0xbdc3df(0xeb)?function(_0x11ba94){return typeof _0x11ba94;}:function(_0x178707){const _0x3c0681=_0xbdc3df;return _0x178707&&typeof Symbol==_0x3c0681(0xd5)&&_0x178707[_0x3c0681(0x114)]===Symbol&&_0x178707!==Symbol[_0x3c0681(0x130)]?_0x3c0681(0xeb):typeof _0x178707;},L(_0x1d8ca2);}function R(_0x23cd9d,_0x1577de){const _0x171d36=_0x3add;if(L(_0x23cd9d)!='object'||!_0x23cd9d)return _0x23cd9d;var _0x19153a=_0x23cd9d[Symbol[_0x171d36(0xd1)]];if(_0x19153a!==void 0x0){var _0x2af5e2=_0x19153a[_0x171d36(0x141)](_0x23cd9d,_0x1577de||_0x171d36(0x126));if(L(_0x2af5e2)!='object')return _0x2af5e2;throw TypeError(_0x171d36(0xf9));}return(_0x1577de==='string'?String:Number)(_0x23cd9d);}function z(_0x31d045){const _0x5e32c7=_0x3add;var _0x50c9db=R(_0x31d045,'string');return L(_0x50c9db)==_0x5e32c7(0xeb)?_0x50c9db:_0x50c9db+'';}function B(_0x54df49,_0x50b565,_0x47c829){return(_0x50b565=z(_0x50b565))in _0x54df49?Object['defineProperty'](_0x54df49,_0x50b565,{'value':_0x47c829,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54df49[_0x50b565]=_0x47c829,_0x54df49;}var V=class extends _0x57dd0e{constructor(..._0xa3ff56){const _0x23846f=_0x3add;super(..._0xa3ff56),B(this,_0x23846f(0xec),new Set()),B(this,_0x23846f(0x158),new Set());}[_0x2c4769(0x142)](_0x2f9e81){const _0xa5da3a=_0x2c4769;return this[_0xa5da3a(0xec)][_0xa5da3a(0x110)](_0x2f9e81),_0x82c7a0(()=>this[_0xa5da3a(0xec)][_0xa5da3a(0xdb)](_0x2f9e81));}[_0x2c4769(0x100)](_0x1348c9){const _0x59a5a6=_0x2c4769;return this[_0x59a5a6(0x158)][_0x59a5a6(0x110)](_0x1348c9),_0x82c7a0(()=>this[_0x59a5a6(0x158)][_0x59a5a6(0xdb)](_0x1348c9));}[_0x2c4769(0x11c)](_0x5c2981){return this['_sharedOperations']['has'](_0x5c2981);}[_0x2c4769(0x154)](_0x4ee77d){const _0x878199=_0x2c4769;return Array[_0x878199(0x14b)](this['_reporters'])[_0x878199(0x101)](_0x199c30=>_0x199c30(_0x4ee77d));}};function H(_0x3e43a0,_0x1d6a1b){return function(_0x1c4ccd,_0x1eb820){_0x1d6a1b(_0x1c4ccd,_0x1eb820,_0x3e43a0);};}function U(_0x3fce25,_0x251467,_0x6c893,_0x478764){const _0x7d70e1=_0x2c4769;var _0x2c45b5=arguments['length'],_0x553a33=_0x2c45b5<0x3?_0x251467:_0x478764===null?_0x478764=Object['getOwnPropertyDescriptor'](_0x251467,_0x6c893):_0x478764,_0x395e6d;if(typeof Reflect==_0x7d70e1(0xd3)&&typeof Reflect[_0x7d70e1(0xe2)]==_0x7d70e1(0xd5))_0x553a33=Reflect[_0x7d70e1(0xe2)](_0x3fce25,_0x251467,_0x6c893,_0x478764);else{for(var _0x1d9283=_0x3fce25[_0x7d70e1(0x13d)]-0x1;_0x1d9283>=0x0;_0x1d9283--)(_0x395e6d=_0x3fce25[_0x1d9283])&&(_0x553a33=(_0x2c45b5<0x3?_0x395e6d(_0x553a33):_0x2c45b5>0x3?_0x395e6d(_0x251467,_0x6c893,_0x553a33):_0x395e6d(_0x251467,_0x6c893))||_0x553a33);}return _0x2c45b5>0x3&&_0x553a33&&Object['defineProperty'](_0x251467,_0x6c893,_0x553a33),_0x553a33;}let W=class extends _0x4f9eac{constructor(_0x53537b,_0x5186f9,_0x4dc751){const _0x557ae7=_0x2c4769;super(),this['_univerInstanceService']=_0x53537b,this[_0x557ae7(0x12a)]=_0x5186f9,this[_0x557ae7(0x12f)]=_0x4dc751,B(this,'_entities',new Map()),this[_0x557ae7(0xd2)]();}async[_0x2c4769(0xf6)](_0x3eafe7){const _0x167351=_0x2c4769;return this[_0x167351(0x14f)][_0x167351(0xf3)](_0x3eafe7)||await this[_0x167351(0x102)](_0x3eafe7),this[_0x167351(0x14f)][_0x167351(0x14d)](_0x3eafe7);}[_0x2c4769(0x106)](_0x60202){const _0x1b3e1c=_0x2c4769;var _0x354715;return(_0x354715=this[_0x1b3e1c(0x14f)][_0x1b3e1c(0x14d)](_0x60202))==null?null:_0x354715;}[_0x2c4769(0xd2)](){const _0x48d6e2=_0x2c4769;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x53d6b7['UNIVER_SHEET'])[_0x48d6e2(0xe8)](_0x262fde(this['dispose$']))[_0x48d6e2(0x120)](async _0x52f577=>{const _0xc9ca3b=_0x48d6e2;let _0x1f2167=_0x52f577[_0xc9ca3b(0xfb)]();this[_0xc9ca3b(0x14f)][_0xc9ca3b(0xf3)](_0x1f2167)||this[_0xc9ca3b(0x102)](_0x1f2167);}),this['_univerInstanceService'][_0x48d6e2(0x10d)](_0x53d6b7['UNIVER_SHEET'])['pipe'](_0x262fde(this[_0x48d6e2(0x147)]))[_0x48d6e2(0x120)](_0x14f36c=>{const _0x22b881=_0x48d6e2;let _0x502c2f=_0x14f36c[_0x22b881(0xfb)](),_0x3cdb5f=this[_0x22b881(0x14f)][_0x22b881(0x14d)](_0x502c2f);_0x3cdb5f==null||_0x3cdb5f[_0x22b881(0x122)]();});}async[_0x2c4769(0x102)](_0x28055d){const _0x237953=_0x2c4769;let _0x4c916d=await this[_0x237953(0x12f)][_0x237953(0x132)](_0x28055d),_0x2b25f5=this[_0x237953(0x12a)]['createInstance'](K,_0x28055d,_0x4c916d);return _0x2b25f5[_0x237953(0xce)](),this[_0x237953(0x14f)]['set'](_0x28055d,_0x2b25f5),_0x2b25f5;}};W=U([H(0x0,_0x261092),H(0x1,_0x1b48b6(_0x4a9c22)),H(0x2,_0x1b48b6(_0x2c4c0e))],W);let G=function(_0x3f24b2){const _0x543a38=_0x2c4769;return _0x3f24b2[_0x543a38(0xf1)]='offline',_0x3f24b2[_0x543a38(0xfd)]=_0x543a38(0xca),_0x3f24b2[_0x543a38(0x118)]='following',_0x3f24b2[_0x543a38(0x140)]='not-following',_0x3f24b2[_0x543a38(0xf4)]='presenting',_0x3f24b2;}({}),K=class extends _0x4f9eac{get['_status'](){const _0x4147bc=_0x2c4769;return this[_0x4147bc(0x12d)]['getValue']();}constructor(_0x501ffe,_0x22ebbe,_0xa6b7c7,_0x3f70cf,_0x304fce){const _0x8dc47c=_0x2c4769;super(),this[_0x8dc47c(0xff)]=_0x501ffe,this[_0x8dc47c(0x11b)]=_0x22ebbe,this['_configService']=_0xa6b7c7,this[_0x8dc47c(0x104)]=_0x3f70cf,this['_commandService']=_0x304fce,B(this,_0x8dc47c(0x12d),new _0x1a7f50(G['IDLE'])),B(this,_0x8dc47c(0xfa),this[_0x8dc47c(0x12d)][_0x8dc47c(0x14c)]()),B(this,_0x8dc47c(0xd2),!0x1),B(this,_0x8dc47c(0x135),null),B(this,_0x8dc47c(0xd9),null);}[_0x2c4769(0x122)](){const _0x4b54cc=_0x2c4769;var _0x5afa1e;(_0x5afa1e=this['_commandDisposable'])==null||_0x5afa1e[_0x4b54cc(0x122)](),this[_0x4b54cc(0x12d)][_0x4b54cc(0x109)](G[_0x4b54cc(0xfd)]),this['_status$'][_0x4b54cc(0x117)]();}[_0x2c4769(0x146)](){const _0x1e26db=_0x2c4769;return this[_0x1e26db(0xe9)];}['init'](){const _0xb45e5f=_0x2c4769;this['_init']||(this[_0xb45e5f(0xd2)]=!0x0,this[_0xb45e5f(0x11b)][_0xb45e5f(0x151)][_0xb45e5f(0xe8)](_0x262fde(this[_0xb45e5f(0x147)]))[_0xb45e5f(0x120)](_0x1c88b8=>{const _0x494596=_0xb45e5f;switch(_0x1c88b8){case _0x40f15e[_0x494596(0xf1)]:this['_handleOffline']();break;case _0x40f15e[_0x494596(0xdd)]:this[_0x494596(0xe1)]();break;default:}}),this[_0xb45e5f(0x11b)]['event$']['pipe'](_0x262fde(this[_0xb45e5f(0x147)]))['subscribe'](_0x4d1c43=>{const _0x40cdb1=_0xb45e5f;let {eventID:_0x29d2cd}=_0x4d1c43;switch(_0x29d2cd){case _0x462cc9[_0x40cdb1(0x150)]:this['_handleNewHost'](_0x4d1c43);break;case _0x462cc9['LIVESHARE_OPERATION']:this[_0x40cdb1(0x13f)](_0x4d1c43);break;case _0x462cc9['LIVESHARE_TERMINATE']:this[_0x40cdb1(0xfc)]();break;case _0x462cc9[_0x40cdb1(0xf7)]:this[_0x40cdb1(0xde)](_0x4d1c43);break;default:}}));}[_0x2c4769(0xdf)](){const _0x4035f7=_0x2c4769;this[_0x4035f7(0x11b)][_0x4035f7(0x123)]({'eventID':_0x462cc9[_0x4035f7(0x155)],'data':{'unitID':this[_0x4035f7(0xff)],'userID':this['_collabSession'][_0x4035f7(0x103)]()}},this['_unitID']);}[_0x2c4769(0xd6)](){const _0x35be4e=_0x2c4769;this[_0x35be4e(0xe9)]===G['PRESENTING']&&(this['_status$']['next'](G[_0x35be4e(0xfd)]),this[_0x35be4e(0x11b)][_0x35be4e(0x123)]({'eventID':_0x462cc9[_0x35be4e(0x156)],'data':{'unitID':this[_0x35be4e(0xff)]}},this['_unitID']));}['startFollowing'](){const _0x57c09f=_0x2c4769;this['_status']===G[_0x57c09f(0x140)]&&(this[_0x57c09f(0x12d)][_0x57c09f(0x109)](G['FOLLOWING']),this[_0x57c09f(0xd0)]());}[_0x2c4769(0x134)](){const _0x223035=_0x2c4769;this['_status']===G['FOLLOWING']&&this[_0x223035(0x116)]();}[_0x2c4769(0xe7)](_0x1ee1d2){const _0x54af32=_0x2c4769;let {presenter:_0x457299}=_0x1ee1d2[_0x54af32(0x13e)],_0x3cd228=this['_collabSession'][_0x54af32(0x103)]();this['_presenter']=_0x457299,_0x457299===_0x3cd228?(this[_0x54af32(0x116)](),this[_0x54af32(0xe4)]()):this[_0x54af32(0xe9)]!==G[_0x54af32(0x140)]&&(this['_stopPresenting'](),this[_0x54af32(0xd0)]());}[_0x2c4769(0x144)](){const _0x596673=_0x2c4769;let _0x472fdf={'eventID':_0x462cc9[_0x596673(0x12e)]};this[_0x596673(0x11b)][_0x596673(0x123)](_0x472fdf,this[_0x596673(0xff)]);}[_0x2c4769(0xfc)](){const _0x58b339=_0x2c4769;this[_0x58b339(0xd9)]=null,this[_0x58b339(0xe9)]!==G[_0x58b339(0xf4)]&&this[_0x58b339(0xd8)]();}['_handleNewChangeSets'](_0x9ec336){const _0x19e3d8=_0x2c4769;if(this[_0x19e3d8(0xe9)]===G[_0x19e3d8(0x118)]&&this['_presenter']===_0x9ec336[_0x19e3d8(0x13e)][_0x19e3d8(0x13c)]){let _0x25a3aa=_0x2f20c3(_0x9ec336[_0x19e3d8(0x13e)])['mutations']['reverse']()[_0x19e3d8(0x10b)](_0x40640a=>_0x40640a['id']===_0x4a64ee['id']);if(_0x25a3aa){let _0xb99389=_0x25a3aa[_0x19e3d8(0x139)][_0x19e3d8(0xcb)],_0x22e7b3=_0x25a3aa[_0x19e3d8(0x139)]['sheet']['id'];setTimeout(()=>{const _0x81f1d4=_0x19e3d8;this[_0x81f1d4(0x14a)][_0x81f1d4(0x113)](_0x45b627['id'],{'unitId':_0xb99389,'subUnitId':_0x22e7b3},{'fromCollab':!0x0});});}}}[_0x2c4769(0xe4)](){const _0x5820b3=_0x2c4769;this[_0x5820b3(0x12d)][_0x5820b3(0x109)](G[_0x5820b3(0xf4)]);let _0x4f416b=new Map(),_0x13fea7=this['_commandDisposable']=new _0x215aed();_0x13fea7['add'](_0x82c7a0(()=>{const _0x5d20e8=_0x5820b3;_0x4f416b[_0x5d20e8(0x131)](_0x135fa6=>_0x135fa6[_0x5d20e8(0x117)]()),_0x4f416b[_0x5d20e8(0x136)]();})),_0x13fea7[_0x5820b3(0x110)](this['_commandService']['onCommandExecuted'](_0x4b0f72=>{const _0x5362e0=_0x5820b3;if(_0x4b0f72[_0x5362e0(0x11a)]!==_0x3a5405[_0x5362e0(0x10c)]||!this[_0x5362e0(0x104)][_0x5362e0(0x11c)](_0x4b0f72['id']))return;let {id:_0xb0ffcc}=_0x4b0f72,_0x35f406;if(_0x4f416b[_0x5362e0(0xf3)](_0xb0ffcc))_0x35f406=_0x4f416b[_0x5362e0(0x14d)](_0xb0ffcc);else{var _0x4365e9;_0x35f406=new _0x2bf7d2(),_0x4f416b[_0x5362e0(0x108)](_0xb0ffcc,_0x35f406),_0x35f406[_0x5362e0(0xe8)](_0x263058((_0x4365e9=this['_configService'][_0x5362e0(0xcc)](_0x5362e0(0x13a)))==null?0xc8:_0x4365e9,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5362e0(0x120)](_0x10696f=>{const _0x296ed7=_0x5362e0;this[_0x296ed7(0x11b)]['send']({'eventID':_0x462cc9[_0x296ed7(0x11d)],'data':{'unitID':this[_0x296ed7(0xff)],'operations':{[_0x10696f['id']]:{'id':_0x10696f['id'],'params':JSON[_0x296ed7(0x107)](_0x10696f['params'])}}}},this['_unitID']);});}_0x35f406['next'](_0x4b0f72);})),this[_0x5820b3(0x104)][_0x5820b3(0x154)](this[_0x5820b3(0xff)])['forEach'](_0x1e40dc=>this[_0x5820b3(0x11b)]['send']({'eventID':_0x462cc9[_0x5820b3(0x11d)],'data':{'unitID':this[_0x5820b3(0xff)],'operations':{[_0x1e40dc['id']]:{'id':_0x1e40dc['id'],'params':JSON[_0x5820b3(0x107)](_0x1e40dc[_0x5820b3(0x139)])}}}},this[_0x5820b3(0xff)]));}[_0x2c4769(0x129)](){const _0x3c8a17=_0x2c4769;var _0x4100e9;this[_0x3c8a17(0x12d)][_0x3c8a17(0x109)](G[_0x3c8a17(0xfd)]),(_0x4100e9=this['_commandDisposable'])==null||_0x4100e9[_0x3c8a17(0x122)](),this[_0x3c8a17(0x135)]=null;}[_0x2c4769(0xd0)](){const _0x2d4d18=_0x2c4769;var _0x5febb5;(_0x5febb5=this[_0x2d4d18(0x135)])==null||_0x5febb5['dispose'](),this[_0x2d4d18(0x12d)][_0x2d4d18(0x109)](G['FOLLOWING']);}[_0x2c4769(0xd8)](){const _0x4dd045=_0x2c4769;var _0x42e353;this['_status$'][_0x4dd045(0x109)](G[_0x4dd045(0xfd)]),(_0x42e353=this[_0x4dd045(0x135)])==null||_0x42e353['dispose'](),this[_0x4dd045(0x135)]=null;}['_stopFollowing'](){const _0x3e85ca=_0x2c4769;var _0x22ea39;this['_status$']['next'](G[_0x3e85ca(0x140)]),(_0x22ea39=this[_0x3e85ca(0x135)])==null||_0x22ea39['dispose']();}[_0x2c4769(0x13f)](_0x52159f){const _0x3ee169=_0x2c4769;if([G[_0x3ee169(0xf4)],G['NOT_FOLLOWING'],G[_0x3ee169(0xf1)]]['includes'](this[_0x3ee169(0xe9)])||!_0x52159f[_0x3ee169(0x13e)]['presenter']||_0x52159f[_0x3ee169(0x13e)]['presenter']===this[_0x3ee169(0x11b)]['getMemberID']())return;this[_0x3ee169(0xe9)]===G[_0x3ee169(0xfd)]&&this[_0x3ee169(0xd0)]();let _0x422f3a=_0x52159f[_0x3ee169(0x13e)][_0x3ee169(0x127)];Object[_0x3ee169(0xed)](_0x422f3a)[_0x3ee169(0x131)](_0x2339ea=>{const _0x63c459=_0x3ee169;this['_commandService']['executeCommand'](_0x2339ea['id'],_0x2339ea[_0x63c459(0x139)]?JSON[_0x63c459(0x12b)](_0x2339ea[_0x63c459(0x139)]):null,{'fromCollab':!0x0});});}[_0x2c4769(0x11e)](){const _0x183b25=_0x2c4769;var _0x107672;this['_status$'][_0x183b25(0x109)](G[_0x183b25(0xf1)]),(_0x107672=this[_0x183b25(0x135)])==null||_0x107672[_0x183b25(0x122)]();}['_handleOnline'](){const _0x36376b=_0x2c4769;this[_0x36376b(0x12d)]['next'](G[_0x36376b(0xfd)]),this[_0x36376b(0x144)]();}};K=U([H(0x2,_0x43996c),H(0x3,_0x1b48b6(V)),H(0x4,_0x3dd35d)],K);function q(){const _0x3038b4=_0x2c4769;let _0x295c57=_0x8412e9(W),_0x447bdb=_0x8412e9(_0x261092),_0x38dafd=_0x13c779(()=>_0x447bdb[_0x3038b4(0x112)](_0x53d6b7[_0x3038b4(0x10f)]),void 0x0,!0x1,[]),[_0xd7cf52,_0x27c733]=_0x2e17cb(null),[_0x2e28c9,_0x5ea467]=_0x2e17cb(G[_0x3038b4(0xfd)]),_0x36280f=_0x5be6eb(null);return _0x55c713(()=>(_0x38dafd&&_0x295c57[_0x3038b4(0xf6)](_0x38dafd['getUnitId']())[_0x3038b4(0x13b)](_0x42eca2=>{const _0x4270e4=_0x3038b4;_0x27c733(_0x42eca2),_0x36280f[_0x4270e4(0x115)]=_0x42eca2[_0x4270e4(0xfa)]['subscribe'](_0x2b6053=>{_0x5ea467(_0x2b6053);});}),()=>{const _0x4bff15=_0x3038b4;var _0x40f670;(_0x40f670=_0x36280f[_0x4bff15(0x115)])==null||_0x40f670[_0x4bff15(0xd4)](),_0x36280f[_0x4bff15(0x115)]=null;}),[_0x38dafd,_0x295c57]),_0xd7cf52?_0x26cb86(_0x4a9e75,{'align':_0x3038b4(0xd7),'disabled':_0x2e28c9===G[_0x3038b4(0xf1)],'className':_0x3038b4(0xee),'overlay':_0x26cb86(ce,{'status':_0x2e28c9,'coordinator':_0xd7cf52}),'children':_0x26cb86(_0x3038b4(0xe6),{'className':_0x119bed('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2e28c9===G[_0x3038b4(0xf1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2e28c9!==G[_0x3038b4(0xf1)]}),'type':'button','children':_0x26cb86(_0x437ba5,{'className':'univer-size-4'})})}):null;}function ce(_0x111ecf){const _0x24dc35=_0x2c4769;let {status:_0x3332bd,coordinator:_0x4bfce0}=_0x111ecf;switch(_0x3332bd){case G[_0x24dc35(0xfd)]:return _0x26cb86(le,{'coordinator':_0x4bfce0});case G['FOLLOWING']:return _0x26cb86(ue,{'coordinator':_0x4bfce0});case G['NOT_FOLLOWING']:return _0x26cb86(de,{'coordinator':_0x4bfce0});case G[_0x24dc35(0xf1)]:return _0x26cb86(fe,{});case G[_0x24dc35(0xf4)]:return _0x26cb86(J,{'coordinator':_0x4bfce0});default:return null;}}function le(_0x3888a6){const _0x4d1925=_0x2c4769;let {coordinator:_0x521bb6}=_0x3888a6;return _0x5e7cba(_0xdcd6d,{'children':[_0x26cb86(_0x4d1925(0x153),{'className':_0x4d1925(0x10a),'children':_0x4d1925(0x10e)}),_0x26cb86(_0x355ab6,{'onClick':()=>_0x521bb6['tryStartPresenting'](),'children':_0x4d1925(0xf8)})]});}function ue(_0x462f26){const _0x28f13f=_0x2c4769;let {coordinator:_0x151114}=_0x462f26;return _0x5e7cba(_0xdcd6d,{'children':[_0x26cb86(_0x28f13f(0x153),{'className':_0x28f13f(0x10a),'children':_0x28f13f(0x111)}),_0x26cb86(_0x355ab6,{'onClick':()=>_0x151114['stopFollowing'](),'children':_0x28f13f(0x145)})]});}function de(_0x1d02b6){const _0x2ec771=_0x2c4769;let {coordinator:_0x5f4dd8}=_0x1d02b6;return _0x5e7cba(_0xdcd6d,{'children':[_0x26cb86(_0x2ec771(0x153),{'className':_0x2ec771(0x10a),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x26cb86(_0x355ab6,{'variant':_0x2ec771(0x124),'onClick':()=>_0x5f4dd8[_0x2ec771(0x119)](),'children':_0x2ec771(0xcd)})]});}function J(_0x1db2e8){const _0x4b4e99=_0x2c4769;let {coordinator:_0x1ea2bd}=_0x1db2e8;return _0x5e7cba(_0xdcd6d,{'children':[_0x26cb86(_0x4b4e99(0x153),{'className':_0x4b4e99(0x10a),'children':_0x4b4e99(0x12c)}),_0x26cb86(_0x355ab6,{'variant':'default','onClick':()=>_0x1ea2bd['stopPresenting'](),'children':_0x4b4e99(0x148)})]});}function _0x15ef(){const _0x284071=['tryStartPresenting','pluginName','_handleOnline','decorate','onStarting','_startPresenting','registerComponent','button','_handleNewHost','pipe','_status','onRendered','symbol','_sharedOperations','values','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-white\x20dark:!univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageName','2558780HxpNXB','OFFLINE','_config','has','PRESENTING','521457mQWcwd','getLiveShareCoordinator','NEW_CHANGESETS','Start','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','status$','getUnitId','_handleTerminate','IDLE','override','_unitID','registerInitialStateReporter','map','_startLiveShareCoordinator','getMemberID','_liveShareService','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinatorSync','stringify','set','next','univer-mb-3\x20univer-w-full\x20univer-text-sm','find','OPERATION','getTypeOfUnitDisposed$','Present\x20this\x20document','UNIVER_SHEET','add','You\x27re\x20following\x20the\x20presenter','getCurrentTypeOfUnit$','executeCommand','constructor','current','_stopFollowing','complete','FOLLOWING','startFollowing','type','_collabSession','shouldShareOperation','LIVESHARE_OPERATION','_handleOffline','2275680dQOtqM','subscribe','UNIVER_UNKNOWN','dispose','send','text','7PJuHbk','default','operations','You\x27are\x20offline.','_stopPresenting','_injector','parse','You\x27re\x20presenting\x20the\x20document','_status$','LIVESHARE_FETCH_OPERATIONS','_collabSessionService','prototype','forEach','requireSession','_configService','stopFollowing','_commandDisposable','clear','_mountLiveShare','iterator','params','SAME_OPERATION_SHARE_INTERVAL','then','memberID','length','data','_handleOperation','NOT_FOLLOWING','call','registerSharedOperation','_uiPartsService','_fetchOperations','Stop\x20following','getStatus','dispose$','Stop\x20presenting','disposeWithMe','_commandService','from','asObservable','get','setConfig','_entities','LIVESHARE_NEW_HOST','sessionStatus$','7495952MiYIvu','div','getInitialStates','LIVESHARE_REQUEST_HOST','LIVESHARE_TERMINATE','1087024IPRNpj','_reporters','idle','unitId','getConfig','Start\x20following','init','691159aEcZeH','_startFollowing','toPrimitive','_init','object','unsubscribe','function','stopPresenting','end','_beIdle','_presenter','4793664LfoXSA','delete','@univerjs-pro/live-share','ONLINE','_handleNewChangeSets'];_0x15ef=function(){return _0x284071;};return _0x15ef();}function fe(){const _0x111203=_0x2c4769;return _0x26cb86(_0xdcd6d,{'children':_0x111203(0x128)});}let Y=class extends _0x57dd0e{constructor(_0x4c1c84,_0x6d7ebf){const _0x5d3777=_0x2c4769;super(),this['_injector']=_0x4c1c84,this[_0x5d3777(0x143)]=_0x6d7ebf,this[_0x5d3777(0x137)]();}[_0x2c4769(0x137)](){const _0x539821=_0x2c4769;this[_0x539821(0x149)](this[_0x539821(0x143)][_0x539821(0xe5)](_0x4d8caf['HEADER_MENU'],()=>_0x56b9bf(q,this[_0x539821(0x12a)])));}};Y=U([H(0x0,_0x1b48b6(_0x4a9c22)),H(0x1,_0xaf3c68)],Y);var pe=_0x2c4769(0xdc),me='0.18.0';const X='live-share.config';Symbol(X);const Z={};let Q=class extends _0x57dd0e{constructor(_0x25608f){const _0x53f85d=_0x2c4769;super(),this[_0x53f85d(0x104)]=_0x25608f,this[_0x53f85d(0xd2)]();}[_0x2c4769(0xd2)](){[_0x5e8bdc['id'],_0x6ac03b['id'],_0x45b627['id']]['forEach'](_0x46e66d=>{const _0x26132f=_0x3add;this[_0x26132f(0x149)](this[_0x26132f(0x104)]['registerSharedOperation'](_0x46e66d));});}};Q=U([H(0x0,_0x1b48b6(V))],Q);let $=class extends _0x7c0ac5{constructor(_0x55c6e2=Z,_0x2caa4d,_0xfe55d4){const _0x5895a1=_0x2c4769;super(),this[_0x5895a1(0xf2)]=_0x55c6e2,this[_0x5895a1(0x12a)]=_0x2caa4d,this[_0x5895a1(0x133)]=_0xfe55d4;let {..._0x391311}=_0x5e13f2({},Z,this[_0x5895a1(0xf2)]);this[_0x5895a1(0x133)][_0x5895a1(0x14e)](X,_0x391311);}[_0x2c4769(0xe3)](){const _0x2585a8=_0x2c4769;_0x1da1fe(this[_0x2585a8(0x12a)],_0x4086ed([[V],[W],[Q],[Y]],this[_0x2585a8(0xf2)][_0x2585a8(0xfe)])),_0x24fee3(this[_0x2585a8(0x12a)],[[Q]]);}[_0x2c4769(0xea)](){const _0x1e320c=_0x2c4769;_0x24fee3(this[_0x1e320c(0x12a)],[[Y]]);}};B($,_0x2c4769(0x11a),_0x53d6b7[_0x2c4769(0x121)]),B($,_0x2c4769(0xe0),_0x2c4769(0x105)),B($,_0x2c4769(0xef),pe),B($,'version',me),$=U([_0x9d4cf9(_0x5e2ff9),H(0x1,_0x1b48b6(_0x4a9c22)),H(0x2,_0x43996c)],$);export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x2513a0=_0x5d5b;(function(_0x189315,_0x20ae68){const _0x5d336c=_0x5d5b,_0x2afe1b=_0x189315();while(!![]){try{const _0x2698fb=-parseInt(_0x5d336c(0xf5))/0x1+parseInt(_0x5d336c(0x80))/0x2*(-parseInt(_0x5d336c(0x99))/0x3)+parseInt(_0x5d336c(0xb4))/0x4*(parseInt(_0x5d336c(0xe4))/0x5)+parseInt(_0x5d336c(0xff))/0x6*(parseInt(_0x5d336c(0x7b))/0x7)+parseInt(_0x5d336c(0x87))/0x8*(-parseInt(_0x5d336c(0xe1))/0x9)+parseInt(_0x5d336c(0x8e))/0xa+-parseInt(_0x5d336c(0xea))/0xb*(-parseInt(_0x5d336c(0x92))/0xc);if(_0x2698fb===_0x20ae68)break;else _0x2afe1b['push'](_0x2afe1b['shift']());}catch(_0x564337){_0x2afe1b['push'](_0x2afe1b['shift']());}}}(_0x4f75,0x3583c));import{CommandType as _0x2350d3,DependentOn as _0x12cd2b,Disposable as _0x7e3118,DisposableCollection as _0x2d19bf,ICommandService as _0x5c22fb,IConfigService as _0x212af8,IUniverInstanceService as _0x19fa44,Inject as _0x1b8e3f,Injector as _0x44d9df,Plugin as _0x5aad12,RxDisposable as _0xa78c25,UniverInstanceType as _0x59028d,merge as _0x1d4a14,mergeOverrideWithDependencies as _0x580aae,registerDependencies as _0x30e8a5,toDisposable as _0x5ab2d9,touchDependencies as _0x357def}from'@univerjs/core';import{BuiltInUIPart as _0x27c8b7,IUIPartsService as _0x1fea8b,connectInjector as _0x579567,useDependency as _0x63768,useObservable as _0x3d864d}from'@univerjs/ui';import{Button as _0x39a743,Dropdown as _0x58c459,clsx as _0x10de51}from'@univerjs/design';import{LiveShareIcon as _0x569935}from'@univerjs/icons';import{useEffect as _0x23f7f4,useRef as _0x17b498,useState as _0x4b88a6}from'react';import{CollaborationEvent as _0x410fbb,parseProtocolChangeset as _0x33853e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x19e44a,SessionStatus as _0x52fdbf,UniverCollaborationClientPlugin as _0x1d07dd}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4f6c05,SetWorksheetActiveOperation as _0x4e08ea}from'@univerjs/sheets';import{BehaviorSubject as _0x3b9fa0,Subject as _0x56499e}from'rxjs';function _0x4f75(){const _0xba0521=['override','status$','You\x27are\x20offline.','memberID','384670vjwymn','registerInitialStateReporter','LIVESHARE_OPERATION','object','startFollowing','_sharedOperations','Stop\x20presenting','_uiPartsService','sheet','getValue','2694OpCEfd','_injector','set','presenter','call','complete','shouldShareOperation','You\x27re\x20presenting\x20the\x20document','setConfig','IDLE','_startFollowing','defineProperty','data','getLiveShareCoordinator','next','UNIVER_UNKNOWN','_commandService','getTypeOfUnitAdded$','OPERATION','553zWqjpw','UNIVER_SHEET','stopPresenting','sessionStatus$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','33094WPTpVB','mutations','add','packageName','createInstance','reverse','offline','24bMHAZV','presenting','_presenter','unitId','decorate','live-share.config','_handleNewHost','3113310nLCiLv','SAME_OPERATION_SHARE_INTERVAL','_collabSessionService','_stopPresenting','4188WLeQsV','registerSharedOperation','stopFollowing','div','_liveShareService','registerComponent','version','69StxOMl','stringify','subscribe','@univerjs-pro/live-share','getMemberID','getCurrentTypeOfUnit$','_beIdle','onCommandExecuted','_commandDisposable','You\x27re\x20following\x20the\x20presenter','_startLiveShareCoordinator','OFFLINE','delete','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_init','function','parse','pipe','type','getInitialStates','asObservable','_stopFollowing','onStarting','params','getLiveShareCoordinatorSync','_fetchOperations','has','256jwecuw','getUnitId','constructor','_status','ONLINE','idle','init','_configService','unsubscribe','LIVESHARE_TERMINATE','current','find','end','values','_startPresenting','length','PRESENTING','button','LIVESHARE_NEW_HOST','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_config','Present\x20this\x20document','HEADER_MENU','dispose','requireSession','LIVESHARE_REQUEST_HOST','NOT_FOLLOWING','executeCommand','_handleTerminate','_handleOnline','tryStartPresenting','get','symbol','send','_collabSession','UNIVER_LIVE_SHARE_PLUGIN','getTypeOfUnitDisposed$','default','_reporters','univer-mb-3\x20univer-w-full\x20univer-text-sm','following','_entities','0.19.0','event$','onRendered','1179918AHKtEC','_unitID','includes','25930ryaFvv','disposeWithMe','_handleOffline','FOLLOWING','_status$','getStatus','22033cwlRNP','map','prototype','forEach','then','dispose$','_handleOperation'];_0x4f75=function(){return _0xba0521;};return _0x4f75();}import{takeUntil as _0x4d26a8,throttleTime as _0x3fdd56}from'rxjs/operators';import{Fragment as _0x82c5a5,jsx as _0xd9a983,jsxs as _0x2c4e75}from'react/jsx-runtime';import{SetScrollOperation as _0x42ce5d,SetZoomRatioOperation as _0x4ad841}from'@univerjs/sheets-ui';function L(_0x984845){'@babel/helpers - typeof';const _0xc16c8c=_0x5d5b;return L=typeof Symbol==_0xc16c8c(0xa8)&&typeof Symbol['iterator']=='symbol'?function(_0x406d0d){return typeof _0x406d0d;}:function(_0x460b5b){const _0x4fb43e=_0xc16c8c;return _0x460b5b&&typeof Symbol==_0x4fb43e(0xa8)&&_0x460b5b[_0x4fb43e(0xb6)]===Symbol&&_0x460b5b!==Symbol[_0x4fb43e(0xec)]?_0x4fb43e(0xd4):typeof _0x460b5b;},L(_0x984845);}function _0x5d5b(_0x1a53bc,_0x46a1ee){_0x1a53bc=_0x1a53bc-0x6e;const _0x4f7521=_0x4f75();let _0x5d5bc4=_0x4f7521[_0x1a53bc];return _0x5d5bc4;}function R(_0xef0de5,_0x2c174a){const _0x4a3ec5=_0x5d5b;if(L(_0xef0de5)!=_0x4a3ec5(0xf8)||!_0xef0de5)return _0xef0de5;var _0x647f00=_0xef0de5[Symbol['toPrimitive']];if(_0x647f00!==void 0x0){var _0x4bba30=_0x647f00[_0x4a3ec5(0x103)](_0xef0de5,_0x2c174a||'default');if(L(_0x4bba30)!=_0x4a3ec5(0xf8))return _0x4bba30;throw TypeError(_0x4a3ec5(0xa6));}return(_0x2c174a==='string'?String:Number)(_0xef0de5);}function z(_0x238108){var _0x47eb17=R(_0x238108,'string');return L(_0x47eb17)=='symbol'?_0x47eb17:_0x47eb17+'';}function B(_0x208471,_0x511d28,_0x3d1074){const _0x9d4b2d=_0x5d5b;return(_0x511d28=z(_0x511d28))in _0x208471?Object[_0x9d4b2d(0x73)](_0x208471,_0x511d28,{'value':_0x3d1074,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x208471[_0x511d28]=_0x3d1074,_0x208471;}var V=class extends _0x7e3118{constructor(..._0x21ce42){const _0x10a3ee=_0x5d5b;super(..._0x21ce42),B(this,_0x10a3ee(0xfa),new Set()),B(this,'_reporters',new Set());}[_0x2513a0(0x93)](_0x9757b3){const _0x40cf10=_0x2513a0;return this['_sharedOperations']['add'](_0x9757b3),_0x5ab2d9(()=>this[_0x40cf10(0xfa)]['delete'](_0x9757b3));}[_0x2513a0(0xf6)](_0x4f4ef3){const _0x3b023e=_0x2513a0;return this[_0x3b023e(0xda)]['add'](_0x4f4ef3),_0x5ab2d9(()=>this[_0x3b023e(0xda)][_0x3b023e(0xa5)](_0x4f4ef3));}[_0x2513a0(0x6e)](_0xacab35){const _0x1a6ae7=_0x2513a0;return this[_0x1a6ae7(0xfa)]['has'](_0xacab35);}['getInitialStates'](_0x480131){const _0x3c7f2f=_0x2513a0;return Array['from'](this['_reporters'])[_0x3c7f2f(0xeb)](_0x3f83a8=>_0x3f83a8(_0x480131));}};function H(_0x434a55,_0x53ccaf){return function(_0x1ef524,_0x28d6ef){_0x53ccaf(_0x1ef524,_0x28d6ef,_0x434a55);};}function U(_0x4a3843,_0x56d1dc,_0x15225d,_0x38a271){const _0xae5f76=_0x2513a0;var _0x38686e=arguments['length'],_0x2284b9=_0x38686e<0x3?_0x56d1dc:_0x38a271===null?_0x38a271=Object['getOwnPropertyDescriptor'](_0x56d1dc,_0x15225d):_0x38a271,_0x2d0e5b;if(typeof Reflect==_0xae5f76(0xf8)&&typeof Reflect[_0xae5f76(0x8b)]=='function')_0x2284b9=Reflect[_0xae5f76(0x8b)](_0x4a3843,_0x56d1dc,_0x15225d,_0x38a271);else{for(var _0x4314ac=_0x4a3843[_0xae5f76(0xc3)]-0x1;_0x4314ac>=0x0;_0x4314ac--)(_0x2d0e5b=_0x4a3843[_0x4314ac])&&(_0x2284b9=(_0x38686e<0x3?_0x2d0e5b(_0x2284b9):_0x38686e>0x3?_0x2d0e5b(_0x56d1dc,_0x15225d,_0x2284b9):_0x2d0e5b(_0x56d1dc,_0x15225d))||_0x2284b9);}return _0x38686e>0x3&&_0x2284b9&&Object[_0xae5f76(0x73)](_0x56d1dc,_0x15225d,_0x2284b9),_0x2284b9;}let W=class extends _0xa78c25{constructor(_0x410298,_0x5be1d7,_0x639acd){const _0x23be2e=_0x2513a0;super(),this['_univerInstanceService']=_0x410298,this[_0x23be2e(0x100)]=_0x5be1d7,this[_0x23be2e(0x90)]=_0x639acd,B(this,_0x23be2e(0xdd),new Map()),this[_0x23be2e(0xa7)]();}async[_0x2513a0(0x75)](_0x4bb11b){const _0xb98a61=_0x2513a0;return this[_0xb98a61(0xdd)][_0xb98a61(0xb3)](_0x4bb11b)||await this[_0xb98a61(0xa3)](_0x4bb11b),this['_entities']['get'](_0x4bb11b);}[_0x2513a0(0xb1)](_0x9e99e7){const _0x5d5181=_0x2513a0;var _0xdd63a3;return(_0xdd63a3=this[_0x5d5181(0xdd)]['get'](_0x9e99e7))==null?null:_0xdd63a3;}['_init'](){const _0xeabfd8=_0x2513a0;this['_univerInstanceService'][_0xeabfd8(0x79)](_0x59028d[_0xeabfd8(0x7c)])[_0xeabfd8(0xaa)](_0x4d26a8(this[_0xeabfd8(0xef)]))[_0xeabfd8(0x9b)](async _0x1dde30=>{const _0xd7e86d=_0xeabfd8;let _0x14dce9=_0x1dde30[_0xd7e86d(0xb5)]();this[_0xd7e86d(0xdd)]['has'](_0x14dce9)||this[_0xd7e86d(0xa3)](_0x14dce9);}),this['_univerInstanceService'][_0xeabfd8(0xd8)](_0x59028d[_0xeabfd8(0x7c)])['pipe'](_0x4d26a8(this[_0xeabfd8(0xef)]))['subscribe'](_0x1f6c27=>{const _0x49b8d=_0xeabfd8;let _0xdab455=_0x1f6c27[_0x49b8d(0xb5)](),_0x16c6ed=this[_0x49b8d(0xdd)][_0x49b8d(0xd3)](_0xdab455);_0x16c6ed==null||_0x16c6ed[_0x49b8d(0xcb)]();});}async[_0x2513a0(0xa3)](_0x428d56){const _0x17e061=_0x2513a0;let _0x487a79=await this[_0x17e061(0x90)][_0x17e061(0xcc)](_0x428d56),_0x430135=this[_0x17e061(0x100)][_0x17e061(0x84)](K,_0x428d56,_0x487a79);return _0x430135[_0x17e061(0xba)](),this[_0x17e061(0xdd)][_0x17e061(0x101)](_0x428d56,_0x430135),_0x430135;}};W=U([H(0x0,_0x19fa44),H(0x1,_0x1b8e3f(_0x44d9df)),H(0x2,_0x1b8e3f(_0x19e44a))],W);let G=function(_0x2148cd){const _0x71b943=_0x2513a0;return _0x2148cd[_0x71b943(0xa4)]=_0x71b943(0x86),_0x2148cd['IDLE']=_0x71b943(0xb9),_0x2148cd['FOLLOWING']=_0x71b943(0xdc),_0x2148cd['NOT_FOLLOWING']='not-following',_0x2148cd[_0x71b943(0xc4)]=_0x71b943(0x88),_0x2148cd;}({}),K=class extends _0xa78c25{get[_0x2513a0(0xb7)](){const _0x2ee695=_0x2513a0;return this[_0x2ee695(0xe8)][_0x2ee695(0xfe)]();}constructor(_0x5ad55a,_0xe33e1d,_0xd77cfa,_0x400411,_0x2bb41b){const _0x2f3e9=_0x2513a0;super(),this[_0x2f3e9(0xe2)]=_0x5ad55a,this[_0x2f3e9(0xd6)]=_0xe33e1d,this[_0x2f3e9(0xbb)]=_0xd77cfa,this['_liveShareService']=_0x400411,this[_0x2f3e9(0x78)]=_0x2bb41b,B(this,_0x2f3e9(0xe8),new _0x3b9fa0(G[_0x2f3e9(0x71)])),B(this,_0x2f3e9(0xf2),this['_status$'][_0x2f3e9(0xad)]()),B(this,_0x2f3e9(0xa7),!0x1),B(this,_0x2f3e9(0xa1),null),B(this,_0x2f3e9(0x89),null);}[_0x2513a0(0xcb)](){const _0x3d0d73=_0x2513a0;var _0x54f3d7;(_0x54f3d7=this['_commandDisposable'])==null||_0x54f3d7[_0x3d0d73(0xcb)](),this[_0x3d0d73(0xe8)][_0x3d0d73(0x76)](G[_0x3d0d73(0x71)]),this[_0x3d0d73(0xe8)][_0x3d0d73(0x104)]();}[_0x2513a0(0xe9)](){const _0x4ed75d=_0x2513a0;return this[_0x4ed75d(0xb7)];}[_0x2513a0(0xba)](){const _0x5d252c=_0x2513a0;this[_0x5d252c(0xa7)]||(this[_0x5d252c(0xa7)]=!0x0,this[_0x5d252c(0xd6)][_0x5d252c(0x7e)][_0x5d252c(0xaa)](_0x4d26a8(this[_0x5d252c(0xef)]))['subscribe'](_0x1d4dbd=>{const _0x1e53b7=_0x5d252c;switch(_0x1d4dbd){case _0x52fdbf['OFFLINE']:this[_0x1e53b7(0xe6)]();break;case _0x52fdbf[_0x1e53b7(0xb8)]:this[_0x1e53b7(0xd1)]();break;default:}}),this[_0x5d252c(0xd6)][_0x5d252c(0xdf)]['pipe'](_0x4d26a8(this['dispose$']))[_0x5d252c(0x9b)](_0x115221=>{const _0x1fa27c=_0x5d252c;let {eventID:_0x4e5a35}=_0x115221;switch(_0x4e5a35){case _0x410fbb[_0x1fa27c(0xc6)]:this[_0x1fa27c(0x8d)](_0x115221);break;case _0x410fbb[_0x1fa27c(0xf7)]:this['_handleOperation'](_0x115221);break;case _0x410fbb[_0x1fa27c(0xbd)]:this[_0x1fa27c(0xd0)]();break;case _0x410fbb['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x115221);break;default:}}));}['tryStartPresenting'](){const _0x116ef3=_0x2513a0;this['_collabSession']['send']({'eventID':_0x410fbb[_0x116ef3(0xcd)],'data':{'unitID':this[_0x116ef3(0xe2)],'userID':this[_0x116ef3(0xd6)][_0x116ef3(0x9d)]()}},this['_unitID']);}[_0x2513a0(0x7d)](){const _0xe02768=_0x2513a0;this[_0xe02768(0xb7)]===G['PRESENTING']&&(this['_status$'][_0xe02768(0x76)](G['IDLE']),this[_0xe02768(0xd6)][_0xe02768(0xd5)]({'eventID':_0x410fbb[_0xe02768(0xbd)],'data':{'unitID':this[_0xe02768(0xe2)]}},this[_0xe02768(0xe2)]));}[_0x2513a0(0xf9)](){const _0x495650=_0x2513a0;this[_0x495650(0xb7)]===G[_0x495650(0xce)]&&(this[_0x495650(0xe8)][_0x495650(0x76)](G['FOLLOWING']),this[_0x495650(0x72)]());}[_0x2513a0(0x94)](){const _0x217f10=_0x2513a0;this[_0x217f10(0xb7)]===G[_0x217f10(0xe7)]&&this['_stopFollowing']();}[_0x2513a0(0x8d)](_0x83cd08){const _0x5259a8=_0x2513a0;let {presenter:_0x253c86}=_0x83cd08[_0x5259a8(0x74)],_0x234804=this[_0x5259a8(0xd6)][_0x5259a8(0x9d)]();this[_0x5259a8(0x89)]=_0x253c86,_0x253c86===_0x234804?(this[_0x5259a8(0xae)](),this[_0x5259a8(0xc2)]()):this['_status']!==G[_0x5259a8(0xce)]&&(this[_0x5259a8(0x91)](),this[_0x5259a8(0x72)]());}[_0x2513a0(0xb2)](){const _0x359d83=_0x2513a0;let _0x4ad5e4={'eventID':_0x410fbb['LIVESHARE_FETCH_OPERATIONS']};this[_0x359d83(0xd6)][_0x359d83(0xd5)](_0x4ad5e4,this['_unitID']);}[_0x2513a0(0xd0)](){const _0x2028eb=_0x2513a0;this['_presenter']=null,this[_0x2028eb(0xb7)]!==G[_0x2028eb(0xc4)]&&this[_0x2028eb(0x9f)]();}['_handleNewChangeSets'](_0x506c53){const _0x142b94=_0x2513a0;if(this['_status']===G['FOLLOWING']&&this[_0x142b94(0x89)]===_0x506c53[_0x142b94(0x74)][_0x142b94(0xf4)]){let _0x581e17=_0x33853e(_0x506c53[_0x142b94(0x74)])[_0x142b94(0x81)][_0x142b94(0x85)]()[_0x142b94(0xbf)](_0x4e10fd=>_0x4e10fd['id']===_0x4f6c05['id']);if(_0x581e17){let _0x2e0d94=_0x581e17['params'][_0x142b94(0x8a)],_0x1597a5=_0x581e17[_0x142b94(0xb0)][_0x142b94(0xfd)]['id'];setTimeout(()=>{const _0x2bee90=_0x142b94;this[_0x2bee90(0x78)][_0x2bee90(0xcf)](_0x4e08ea['id'],{'unitId':_0x2e0d94,'subUnitId':_0x1597a5},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x9e17d6=_0x2513a0;this[_0x9e17d6(0xe8)][_0x9e17d6(0x76)](G[_0x9e17d6(0xc4)]);let _0x713966=new Map(),_0x79972b=this[_0x9e17d6(0xa1)]=new _0x2d19bf();_0x79972b[_0x9e17d6(0x82)](_0x5ab2d9(()=>{const _0x53a95e=_0x9e17d6;_0x713966[_0x53a95e(0xed)](_0x281bd2=>_0x281bd2['complete']()),_0x713966['clear']();})),_0x79972b[_0x9e17d6(0x82)](this['_commandService'][_0x9e17d6(0xa0)](_0x395bba=>{const _0x342434=_0x9e17d6;if(_0x395bba[_0x342434(0xab)]!==_0x2350d3[_0x342434(0x7a)]||!this[_0x342434(0x96)][_0x342434(0x6e)](_0x395bba['id']))return;let {id:_0x47cb55}=_0x395bba,_0x18ecc0;if(_0x713966[_0x342434(0xb3)](_0x47cb55))_0x18ecc0=_0x713966[_0x342434(0xd3)](_0x47cb55);else{var _0x268f91;_0x18ecc0=new _0x56499e(),_0x713966['set'](_0x47cb55,_0x18ecc0),_0x18ecc0[_0x342434(0xaa)](_0x3fdd56((_0x268f91=this[_0x342434(0xbb)]['getConfig'](_0x342434(0x8f)))==null?0xc8:_0x268f91,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x342434(0x9b)](_0x3e2abf=>{const _0x4a0a3d=_0x342434;this[_0x4a0a3d(0xd6)][_0x4a0a3d(0xd5)]({'eventID':_0x410fbb['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x3e2abf['id']]:{'id':_0x3e2abf['id'],'params':JSON[_0x4a0a3d(0x9a)](_0x3e2abf[_0x4a0a3d(0xb0)])}}}},this[_0x4a0a3d(0xe2)]);});}_0x18ecc0[_0x342434(0x76)](_0x395bba);})),this['_liveShareService'][_0x9e17d6(0xac)](this[_0x9e17d6(0xe2)])[_0x9e17d6(0xed)](_0x2a13e0=>this[_0x9e17d6(0xd6)][_0x9e17d6(0xd5)]({'eventID':_0x410fbb[_0x9e17d6(0xf7)],'data':{'unitID':this[_0x9e17d6(0xe2)],'operations':{[_0x2a13e0['id']]:{'id':_0x2a13e0['id'],'params':JSON[_0x9e17d6(0x9a)](_0x2a13e0['params'])}}}},this['_unitID']));}[_0x2513a0(0x91)](){const _0x1856f7=_0x2513a0;var _0xaad460;this[_0x1856f7(0xe8)][_0x1856f7(0x76)](G[_0x1856f7(0x71)]),(_0xaad460=this[_0x1856f7(0xa1)])==null||_0xaad460[_0x1856f7(0xcb)](),this[_0x1856f7(0xa1)]=null;}[_0x2513a0(0x72)](){const _0x3dcfc0=_0x2513a0;var _0x1049a0;(_0x1049a0=this['_commandDisposable'])==null||_0x1049a0[_0x3dcfc0(0xcb)](),this['_status$'][_0x3dcfc0(0x76)](G[_0x3dcfc0(0xe7)]);}[_0x2513a0(0x9f)](){const _0xcf214f=_0x2513a0;var _0x4eab00;this[_0xcf214f(0xe8)][_0xcf214f(0x76)](G[_0xcf214f(0x71)]),(_0x4eab00=this[_0xcf214f(0xa1)])==null||_0x4eab00[_0xcf214f(0xcb)](),this['_commandDisposable']=null;}[_0x2513a0(0xae)](){const _0x581c3f=_0x2513a0;var _0x1c129a;this[_0x581c3f(0xe8)][_0x581c3f(0x76)](G[_0x581c3f(0xce)]),(_0x1c129a=this[_0x581c3f(0xa1)])==null||_0x1c129a['dispose']();}[_0x2513a0(0xf0)](_0x124414){const _0x556d36=_0x2513a0;if([G[_0x556d36(0xc4)],G[_0x556d36(0xce)],G[_0x556d36(0xa4)]][_0x556d36(0xe3)](this[_0x556d36(0xb7)])||!_0x124414[_0x556d36(0x74)]['presenter']||_0x124414[_0x556d36(0x74)][_0x556d36(0x102)]===this[_0x556d36(0xd6)][_0x556d36(0x9d)]())return;this[_0x556d36(0xb7)]===G[_0x556d36(0x71)]&&this[_0x556d36(0x72)]();let _0x4b22d8=_0x124414['data']['operations'];Object[_0x556d36(0xc1)](_0x4b22d8)['forEach'](_0x45ca4e=>{const _0x2f6a90=_0x556d36;this[_0x2f6a90(0x78)]['executeCommand'](_0x45ca4e['id'],_0x45ca4e[_0x2f6a90(0xb0)]?JSON[_0x2f6a90(0xa9)](_0x45ca4e['params']):null,{'fromCollab':!0x0});});}[_0x2513a0(0xe6)](){const _0x2a5637=_0x2513a0;var _0x17e3a2;this[_0x2a5637(0xe8)]['next'](G[_0x2a5637(0xa4)]),(_0x17e3a2=this[_0x2a5637(0xa1)])==null||_0x17e3a2[_0x2a5637(0xcb)]();}['_handleOnline'](){const _0x4415a2=_0x2513a0;this[_0x4415a2(0xe8)]['next'](G[_0x4415a2(0x71)]),this[_0x4415a2(0xb2)]();}};K=U([H(0x2,_0x212af8),H(0x3,_0x1b8e3f(V)),H(0x4,_0x5c22fb)],K);function q(){const _0x3dbe3a=_0x2513a0;let _0x38ba86=_0x63768(W),_0x3664dd=_0x63768(_0x19fa44),_0x525048=_0x3d864d(()=>_0x3664dd[_0x3dbe3a(0x9e)](_0x59028d[_0x3dbe3a(0x7c)]),void 0x0,!0x1,[]),[_0x4a844d,_0x3eeaa1]=_0x4b88a6(null),[_0x45c793,_0x5cf3eb]=_0x4b88a6(G[_0x3dbe3a(0x71)]),_0x58a79c=_0x17b498(null);return _0x23f7f4(()=>(_0x525048&&_0x38ba86[_0x3dbe3a(0x75)](_0x525048[_0x3dbe3a(0xb5)]())[_0x3dbe3a(0xee)](_0x392d0b=>{const _0x1afd00=_0x3dbe3a;_0x3eeaa1(_0x392d0b),_0x58a79c[_0x1afd00(0xbe)]=_0x392d0b[_0x1afd00(0xf2)]['subscribe'](_0x34154c=>{_0x5cf3eb(_0x34154c);});}),()=>{const _0x323a80=_0x3dbe3a;var _0x4358de;(_0x4358de=_0x58a79c[_0x323a80(0xbe)])==null||_0x4358de[_0x323a80(0xbc)](),_0x58a79c[_0x323a80(0xbe)]=null;}),[_0x525048,_0x38ba86]),_0x4a844d?_0xd9a983(_0x58c459,{'align':_0x3dbe3a(0xc0),'disabled':_0x45c793===G['OFFLINE'],'className':_0x3dbe3a(0xc7),'overlay':_0xd9a983(ce,{'status':_0x45c793,'coordinator':_0x4a844d}),'children':_0xd9a983(_0x3dbe3a(0xc5),{'className':_0x10de51(_0x3dbe3a(0x7f),{'univer-cursor-not-allowed':_0x45c793===G['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x45c793!==G['OFFLINE']}),'type':_0x3dbe3a(0xc5),'children':_0xd9a983(_0x569935,{'className':'univer-size-4'})})}):null;}function ce(_0xc373a3){const _0x2d43dd=_0x2513a0;let {status:_0x5a9b6b,coordinator:_0x15c9c0}=_0xc373a3;switch(_0x5a9b6b){case G[_0x2d43dd(0x71)]:return _0xd9a983(le,{'coordinator':_0x15c9c0});case G['FOLLOWING']:return _0xd9a983(ue,{'coordinator':_0x15c9c0});case G[_0x2d43dd(0xce)]:return _0xd9a983(de,{'coordinator':_0x15c9c0});case G['OFFLINE']:return _0xd9a983(fe,{});case G['PRESENTING']:return _0xd9a983(J,{'coordinator':_0x15c9c0});default:return null;}}function le(_0x2417ef){const _0x4be4d2=_0x2513a0;let {coordinator:_0x319c32}=_0x2417ef;return _0x2c4e75(_0x82c5a5,{'children':[_0xd9a983(_0x4be4d2(0x95),{'className':_0x4be4d2(0xdb),'children':_0x4be4d2(0xc9)}),_0xd9a983(_0x39a743,{'onClick':()=>_0x319c32[_0x4be4d2(0xd2)](),'children':'Start'})]});}function ue(_0x9bdaf8){const _0x6c33f1=_0x2513a0;let {coordinator:_0x3c90e5}=_0x9bdaf8;return _0x2c4e75(_0x82c5a5,{'children':[_0xd9a983(_0x6c33f1(0x95),{'className':_0x6c33f1(0xdb),'children':_0x6c33f1(0xa2)}),_0xd9a983(_0x39a743,{'onClick':()=>_0x3c90e5[_0x6c33f1(0x94)](),'children':'Stop\x20following'})]});}function de(_0x1f90b4){const _0x4cad0d=_0x2513a0;let {coordinator:_0x2b6492}=_0x1f90b4;return _0x2c4e75(_0x82c5a5,{'children':[_0xd9a983(_0x4cad0d(0x95),{'className':_0x4cad0d(0xdb),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0xd9a983(_0x39a743,{'variant':'text','onClick':()=>_0x2b6492[_0x4cad0d(0xf9)](),'children':'Start\x20following'})]});}function J(_0x7bcdfd){const _0x3ed32e=_0x2513a0;let {coordinator:_0x47eaba}=_0x7bcdfd;return _0x2c4e75(_0x82c5a5,{'children':[_0xd9a983(_0x3ed32e(0x95),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3ed32e(0x6f)}),_0xd9a983(_0x39a743,{'variant':_0x3ed32e(0xd9),'onClick':()=>_0x47eaba[_0x3ed32e(0x7d)](),'children':_0x3ed32e(0xfb)})]});}function fe(){const _0x35c176=_0x2513a0;return _0xd9a983(_0x82c5a5,{'children':_0x35c176(0xf3)});}let Y=class extends _0x7e3118{constructor(_0x379e14,_0x338635){super(),this['_injector']=_0x379e14,this['_uiPartsService']=_0x338635,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x464a53=_0x2513a0;this[_0x464a53(0xe5)](this[_0x464a53(0xfc)][_0x464a53(0x97)](_0x27c8b7[_0x464a53(0xca)],()=>_0x579567(q,this['_injector'])));}};Y=U([H(0x0,_0x1b8e3f(_0x44d9df)),H(0x1,_0x1fea8b)],Y);var pe=_0x2513a0(0x9c),me=_0x2513a0(0xde);const X=_0x2513a0(0x8c);Symbol(X);const Z={};let Q=class extends _0x7e3118{constructor(_0x5cb95c){const _0x17a58a=_0x2513a0;super(),this[_0x17a58a(0x96)]=_0x5cb95c,this[_0x17a58a(0xa7)]();}[_0x2513a0(0xa7)](){[_0x4ad841['id'],_0x42ce5d['id'],_0x4e08ea['id']]['forEach'](_0x15f90a=>{const _0x573058=_0x5d5b;this[_0x573058(0xe5)](this[_0x573058(0x96)][_0x573058(0x93)](_0x15f90a));});}};Q=U([H(0x0,_0x1b8e3f(V))],Q);let $=class extends _0x5aad12{constructor(_0x3b9461=Z,_0x1a84bc,_0x2bc71c){const _0x5b5419=_0x2513a0;super(),this[_0x5b5419(0xc8)]=_0x3b9461,this['_injector']=_0x1a84bc,this[_0x5b5419(0xbb)]=_0x2bc71c;let {..._0x361737}=_0x1d4a14({},Z,this[_0x5b5419(0xc8)]);this[_0x5b5419(0xbb)][_0x5b5419(0x70)](X,_0x361737);}[_0x2513a0(0xaf)](){const _0xcb0273=_0x2513a0;_0x30e8a5(this[_0xcb0273(0x100)],_0x580aae([[V],[W],[Q],[Y]],this['_config'][_0xcb0273(0xf1)])),_0x357def(this[_0xcb0273(0x100)],[[Q]]);}[_0x2513a0(0xe0)](){const _0x5d0e45=_0x2513a0;_0x357def(this[_0x5d0e45(0x100)],[[Y]]);}};B($,_0x2513a0(0xab),_0x59028d[_0x2513a0(0x77)]),B($,'pluginName',_0x2513a0(0xd7)),B($,_0x2513a0(0x83),pe),B($,_0x2513a0(0x98),me),$=U([_0x12cd2b(_0x1d07dd),H(0x1,_0x1b8e3f(_0x44d9df)),H(0x2,_0x212af8)],$);export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4ed3(_0x374792,_0x402012){_0x374792=_0x374792-0x198;const _0x57e554=_0x57e5();let _0x4ed35b=_0x57e554[_0x374792];return _0x4ed35b;}function _0x57e5(){const _0x26898f=['9WcqJKn','stopPresenting','_initialize','1947JHmHcM','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','call','FUniver','LiveShareStatus','startFollowing','UniverCoreFacade','constructor','67998LQwASp','string','UNIVER_SHEET','13734JYctMx','amd','defineProperty','object','_liveShareController','@univerjs/core','33560yOAbUy','21230YEwqSy','@univerjs/core/facade','IDLE','1584921cygggV','@univerjs-pro/live-share','LiveShareController','1799nrzgbq','getUnitId','2319516zekNZD','symbol','function','prototype','getCurrentUnitOfType','iterator','No\x20active\x20workbook\x20found.','4355952oqxBsY','LiveShareStatusEnum','UniverCore','_injector','FEnum','startPresenting','stopFollowing','getLiveShareCoordinatorSync','60PruBUW','getLiveShareStatus','extend','UniverInstanceType','2ySyIGT','get','IUniverInstanceService','tryStartPresenting'];_0x57e5=function(){return _0x26898f;};return _0x57e5();}(function(_0x1bbcaa,_0x16ccf3){const _0x5904c2=_0x4ed3,_0x393a1c=_0x1bbcaa();while(!![]){try{const _0x56e52a=parseInt(_0x5904c2(0x1a8))/0x1+parseInt(_0x5904c2(0x199))/0x2*(parseInt(_0x5904c2(0x1b5))/0x3)+parseInt(_0x5904c2(0x1c9))/0x4*(parseInt(_0x5904c2(0x1b2))/0x5)+-parseInt(_0x5904c2(0x1ab))/0x6*(-parseInt(_0x5904c2(0x1b8))/0x7)+-parseInt(_0x5904c2(0x1c1))/0x8*(parseInt(_0x5904c2(0x19d))/0x9)+-parseInt(_0x5904c2(0x1b1))/0xa*(parseInt(_0x5904c2(0x1a0))/0xb)+parseInt(_0x5904c2(0x1ba))/0xc;if(_0x56e52a===_0x16ccf3)break;else _0x393a1c['push'](_0x393a1c['shift']());}catch(_0x2cb229){_0x393a1c['push'](_0x393a1c['shift']());}}}(_0x57e5,0x49fcf),function(_0x384006,_0x34be3e){const _0x311499=_0x4ed3;typeof exports==_0x311499(0x1ae)&&typeof module<'u'?_0x34be3e(require(`@univerjs-pro/live-share`),require(`@univerjs/core`),require(`@univerjs/core/facade`)):typeof define=='function'&&define[_0x311499(0x1ac)]?define([_0x311499(0x1b6),_0x311499(0x1b0),_0x311499(0x1b3)],_0x34be3e):(_0x384006=typeof globalThis<'u'?globalThis:_0x384006||self,_0x34be3e(_0x384006['UniverProLiveShare'],_0x384006[_0x311499(0x1c3)],_0x384006[_0x311499(0x1a6)]));}(this,function(_0x1dd26e,_0x34cee1,_0x44859c){const _0x7d5d09=_0x4ed3;function _0x5ce86a(_0x1f865a){'@babel/helpers - typeof';const _0x239779=_0x4ed3;return _0x5ce86a=typeof Symbol==_0x239779(0x1bc)&&typeof Symbol[_0x239779(0x1bf)]==_0x239779(0x1bb)?function(_0x1505e4){return typeof _0x1505e4;}:function(_0x16becd){const _0x5f3679=_0x239779;return _0x16becd&&typeof Symbol==_0x5f3679(0x1bc)&&_0x16becd[_0x5f3679(0x1a7)]===Symbol&&_0x16becd!==Symbol[_0x5f3679(0x1bd)]?_0x5f3679(0x1bb):typeof _0x16becd;},_0x5ce86a(_0x1f865a);}function _0x19ec55(_0x380d2b,_0x5a3566){const _0x403adb=_0x4ed3;if(_0x5ce86a(_0x380d2b)!=_0x403adb(0x1ae)||!_0x380d2b)return _0x380d2b;var _0x42b79d=_0x380d2b[Symbol['toPrimitive']];if(_0x42b79d!==void 0x0){var _0x35f3a0=_0x42b79d[_0x403adb(0x1a2)](_0x380d2b,_0x5a3566||'default');if(_0x5ce86a(_0x35f3a0)!=_0x403adb(0x1ae))return _0x35f3a0;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5a3566===_0x403adb(0x1a9)?String:Number)(_0x380d2b);}function _0x10d480(_0x40c5b8){const _0x16f76c=_0x4ed3;var _0x41ffcf=_0x19ec55(_0x40c5b8,_0x16f76c(0x1a9));return _0x5ce86a(_0x41ffcf)==_0x16f76c(0x1bb)?_0x41ffcf:_0x41ffcf+'';}function _0x5731f9(_0x38ecff,_0x4f4c92,_0x5f5ad0){const _0x4e8505=_0x4ed3;return(_0x4f4c92=_0x10d480(_0x4f4c92))in _0x38ecff?Object[_0x4e8505(0x1ad)](_0x38ecff,_0x4f4c92,{'value':_0x5f5ad0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x38ecff[_0x4f4c92]=_0x5f5ad0,_0x38ecff;}var _0x218f83=class extends _0x44859c[_0x7d5d09(0x1a3)]{constructor(..._0x43a9db){const _0x5959d2=_0x7d5d09;super(..._0x43a9db),_0x5731f9(this,_0x5959d2(0x1af),void 0x0);}[_0x7d5d09(0x19f)](_0x1488d9){const _0xca7c43=_0x7d5d09;this['_liveShareController']=_0x1488d9[_0xca7c43(0x19a)](_0x1dd26e[_0xca7c43(0x1b7)]);}[_0x7d5d09(0x1ca)](){const _0x5a1186=_0x7d5d09;var _0x35de35;let _0x4321c8=this[_0x5a1186(0x1c4)][_0x5a1186(0x19a)](_0x34cee1['IUniverInstanceService'])[_0x5a1186(0x1be)](_0x34cee1['UniverInstanceType']['UNIVER_SHEET']);if(!_0x4321c8)throw Error(_0x5a1186(0x1c0));let _0x5488a5=_0x4321c8[_0x5a1186(0x1b9)](),_0x546ff6=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x5488a5);return(_0x35de35=_0x546ff6==null?void 0x0:_0x546ff6['getStatus']())==null?_0x1dd26e['LiveShareStatus'][_0x5a1186(0x1b4)]:_0x35de35;}[_0x7d5d09(0x1a5)](){const _0x372f9=_0x7d5d09;let _0x94cf20=this[_0x372f9(0x1c4)][_0x372f9(0x19a)](_0x34cee1[_0x372f9(0x19b)])[_0x372f9(0x1be)](_0x34cee1[_0x372f9(0x198)][_0x372f9(0x1aa)]);if(!_0x94cf20)throw Error(_0x372f9(0x1c0));let _0x119896=_0x94cf20[_0x372f9(0x1b9)](),_0x5eee67=this[_0x372f9(0x1af)][_0x372f9(0x1c8)](_0x119896);if(!_0x5eee67)throw Error(_0x372f9(0x1a1));_0x5eee67[_0x372f9(0x1a5)]();}[_0x7d5d09(0x1c7)](){const _0x362289=_0x7d5d09;let _0x57a1b5=this[_0x362289(0x1c4)][_0x362289(0x19a)](_0x34cee1[_0x362289(0x19b)])[_0x362289(0x1be)](_0x34cee1[_0x362289(0x198)][_0x362289(0x1aa)]);if(!_0x57a1b5)throw Error(_0x362289(0x1c0));let _0x1381d8=_0x57a1b5['getUnitId'](),_0x54a76f=this[_0x362289(0x1af)][_0x362289(0x1c8)](_0x1381d8);if(!_0x54a76f)throw Error(_0x362289(0x1a1));_0x54a76f[_0x362289(0x1c7)]();}[_0x7d5d09(0x1c6)](){const _0x5773ea=_0x7d5d09;let _0x47de69=this[_0x5773ea(0x1c4)][_0x5773ea(0x19a)](_0x34cee1['IUniverInstanceService'])[_0x5773ea(0x1be)](_0x34cee1[_0x5773ea(0x198)]['UNIVER_SHEET']);if(!_0x47de69)throw Error(_0x5773ea(0x1c0));let _0x4e24af=_0x47de69[_0x5773ea(0x1b9)](),_0x137658=this[_0x5773ea(0x1af)][_0x5773ea(0x1c8)](_0x4e24af);if(!_0x137658)throw Error(_0x5773ea(0x1a1));_0x137658[_0x5773ea(0x19c)]();}[_0x7d5d09(0x19e)](){const _0x11d5b8=_0x7d5d09;let _0x54bf52=this[_0x11d5b8(0x1c4)][_0x11d5b8(0x19a)](_0x34cee1[_0x11d5b8(0x19b)])[_0x11d5b8(0x1be)](_0x34cee1[_0x11d5b8(0x198)][_0x11d5b8(0x1aa)]);if(!_0x54bf52)throw Error(_0x11d5b8(0x1c0));let _0x1ed832=_0x54bf52[_0x11d5b8(0x1b9)](),_0x3868d5=this[_0x11d5b8(0x1af)]['getLiveShareCoordinatorSync'](_0x1ed832);if(!_0x3868d5)throw Error(_0x11d5b8(0x1a1));_0x3868d5[_0x11d5b8(0x19e)]();}};_0x44859c['FUniver'][_0x7d5d09(0x1cb)](_0x218f83);var _0x4a84c5=class extends _0x44859c[_0x7d5d09(0x1c5)]{get[_0x7d5d09(0x1c2)](){const _0x97846a=_0x7d5d09;return _0x1dd26e[_0x97846a(0x1a4)];}};_0x44859c[_0x7d5d09(0x1c5)]['extend'](_0x4a84c5);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x253d(){const _0x224ae9=['InsertSheetMutation','merge','@univerjs-pro/live-share','mergeOverrideWithDependencies','ICommandService','shouldShareOperation','useEffect','UniverSheets','clsx','_collabSession','live-share-icon','_config','_injector','assign','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-white\x20dark:!univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Plugin','throttleTime','reverse','idSuffix','getLiveShareCoordinator','init','complete','0\x200\x2017\x2017','length','path','_handleNewHost','params','React','trim','CollaborationEvent','colorChannel1','pipe','0.18.0','LIVESHARE_OPERATION','PRESENTING','7833539NdakBJ','BehaviorSubject','_mountLiveShare','SetZoomRatioOperation','connectInjector','@univerjs/sheets','503848nMfkRl','next','Fragment','UNIVER_LIVE_SHARE_PLUGIN','_init','_reporters','defIds','delete','HEADER_MENU','packageName','UniverCore','Inject','add','@univerjs/core','BuiltInUIPart','stringify','Subject','Start\x20following','_sharedOperations','includes','120WSypCS','startFollowing','SetScrollOperation','forEach','716mZEZlo','NOT_FOLLOWING','RxDisposable','createInstance','6059096JhELHG','subscribe','_univerInstanceService','prototype','xlink:href','339548nrrrUB','toDisposable','sessionStatus$','sheet','entries','UniverUi','decorate','text','LIVESHARE_TERMINATE','@univerjs/design','UniverProLiveShare','OFFLINE','createElement','useObservable','set','IUniverInstanceService','react/jsx-runtime','Disposable','version','stopPresenting','ONLINE','OPERATION','rxjs/operators','replace','CollaborationSessionService','_liveShareService','registerComponent','setConfig','44184aOAWwq','send','DependentOn','default','type','children','_stopFollowing','button','UniverProCollaborationClient','Button','status$','_status','UniverDesign','Injector','following','http://www.w3.org/2000/svg','asObservable','onCommandExecuted','mutations','getCurrentTypeOfUnit$','string','find','fill','UniverSheetsUi','touchDependencies','94743CJFJIg','current','_handleOperation','map','univer-mb-3\x20univer-w-full\x20univer-text-sm','has','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','320AohSWL','use','dispose$','_commandDisposable','UniverLiveSharePlugin','url(#$1','LIVESHARE_FETCH_OPERATIONS','_collabSessionService','You\x27are\x20offline.','getUnitId','toString','toStringTag','_fetchOperations','univer-size-4','unsubscribe','currentColor','_startPresenting','UniverInstanceType','not-following','constructor','displayName','_handleOnline','toPrimitive','_status$','LiveShareController','pluginName','Stop\x20following','dispose','LiveShareStatus','unitId','requireSession','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','values','forwardRef','@univerjs-pro/collaboration','getStatus','_handleTerminate','You\x27re\x20following\x20the\x20presenter','Module','attrs','FOLLOWING','@univerjs-pro/collaboration-client','disposeWithMe','LiveShareCoordinator','_handleNewChangeSets','registerDependencies','presenter','getMemberID','UNIVER_SHEET','defineProperty','_handleOffline','operators','operations','1em','useDependency','data','_entities','SessionStatus','end','UniverIcon','Present\x20this\x20document','svg','none','LiveShareService','stopFollowing','IConfigService','executeCommand','get','_stopPresenting','You\x27re\x20presenting\x20the\x20document','tag','_unitID','random','2382cNcjsu','_commandService','DisposableCollection','IDLE','symbol','div','jsx','mask','tryStartPresenting','takeUntil','_configService','_startFollowing','live-share.config','_startLiveShareCoordinator','parse','getOwnPropertyDescriptor','rxjs','onRendered','react','object','SetWorksheetActiveOperation','_presenter','function','jsxs','NEW_CHANGESETS','_uiPartsService','evenodd'];_0x253d=function(){return _0x224ae9;};return _0x253d();}function _0x1a80(_0x1eccf6,_0x1436d3){_0x1eccf6=_0x1eccf6-0xd3;const _0x253dbe=_0x253d();let _0x1a806f=_0x253dbe[_0x1eccf6];return _0x1a806f;}(function(_0x1f0929,_0x2666c5){const _0x414fd3=_0x1a80,_0x3f46ad=_0x1f0929();while(!![]){try{const _0x59e40a=parseInt(_0x414fd3(0x180))/0x1+-parseInt(_0x414fd3(0x1a1))/0x2+parseInt(_0x414fd3(0x13c))/0x3*(parseInt(_0x414fd3(0x198))/0x4)+-parseInt(_0x414fd3(0x194))/0x5*(-parseInt(_0x414fd3(0xd3))/0x6)+parseInt(_0x414fd3(0x17a))/0x7+-parseInt(_0x414fd3(0x19c))/0x8+parseInt(_0x414fd3(0xec))/0x9*(-parseInt(_0x414fd3(0xf3))/0xa);if(_0x59e40a===_0x2666c5)break;else _0x3f46ad['push'](_0x3f46ad['shift']());}catch(_0x1bb77d){_0x3f46ad['push'](_0x3f46ad['shift']());}}}(_0x253d,0xa5782),function(_0x1e50ed,_0x4dcc87){const _0x491cd4=_0x1a80;typeof exports=='object'&&typeof module<'u'?_0x4dcc87(exports,require(`@univerjs/core`),require(`@univerjs/ui`),require(`@univerjs/design`),require(`react`),require(`@univerjs-pro/collaboration`),require(`@univerjs-pro/collaboration-client`),require(`@univerjs/sheets`),require(`rxjs`),require(`rxjs/operators`),require(`react/jsx-runtime`),require(`@univerjs/sheets-ui`)):typeof define=='function'&&define['amd']?define(['exports',_0x491cd4(0x18d),'@univerjs/ui',_0x491cd4(0x1aa),_0x491cd4(0x14e),_0x491cd4(0x115),_0x491cd4(0x11c),_0x491cd4(0x17f),_0x491cd4(0x14c),_0x491cd4(0x1b7),_0x491cd4(0x1b1),'@univerjs/sheets-ui'],_0x4dcc87):(_0x1e50ed=typeof globalThis<'u'?globalThis:_0x1e50ed||self,_0x4dcc87(_0x1e50ed[_0x491cd4(0x1ab)]={},_0x1e50ed[_0x491cd4(0x18a)],_0x1e50ed[_0x491cd4(0x1a6)],_0x1e50ed[_0x491cd4(0xdf)],_0x1e50ed[_0x491cd4(0x172)],_0x1e50ed['UniverProCollaboration'],_0x1e50ed[_0x491cd4(0xdb)],_0x1e50ed[_0x491cd4(0x15e)],_0x1e50ed['rxjs'],_0x1e50ed[_0x491cd4(0x14c)][_0x491cd4(0x126)],_0x1e50ed[_0x491cd4(0x172)],_0x1e50ed[_0x491cd4(0xea)]));}(this,function(_0x5d1679,_0xcda847,_0x5d1c2e,_0x5be239,_0x208f95,_0x1a58ee,_0x58fcf4,_0x4b9761,_0x2f4652,_0x212c65,_0x1e1fb5,_0x4b6373){const _0xa11d48=_0x1a80;Object[_0xa11d48(0x124)](_0x5d1679,Symbol[_0xa11d48(0xfe)],{'value':_0xa11d48(0x119)});function _0x26705d({ref:_0x4abf62,..._0x50b434}){const _0x519110=_0xa11d48;let {icon:_0xd0c7ff,id:_0x56d04d,className:_0xe028f1,extend:_0x133c40,..._0x4c2dcb}=_0x50b434,_0x522a7c=('univerjs-icon\x20univerjs-icon-'+_0x56d04d+'\x20'+(_0xe028f1||''))[_0x519110(0x173)](),_0x4b7e42=(0x0,_0x208f95['useRef'])('_'+_0xec9e60());return _0x9ad5d(_0xd0c7ff,''+_0x56d04d,{'defIds':_0xd0c7ff[_0x519110(0x186)],'idSuffix':_0x4b7e42[_0x519110(0xed)]},{'ref':_0x4abf62,'className':_0x522a7c,..._0x4c2dcb},_0x133c40);}function _0x9ad5d(_0x9d82f2,_0x37147d,_0xcf918d,_0x436096,_0x4d0c9f){const _0x4c2ff1=_0xa11d48;return(0x0,_0x208f95[_0x4c2ff1(0x1ad)])(_0x9d82f2[_0x4c2ff1(0x139)],{'key':_0x37147d,..._0x2ac408(_0x9d82f2,_0xcf918d,_0x4d0c9f),..._0x436096},(_0x3a919e(_0x9d82f2,_0xcf918d)['children']||[])[_0x4c2ff1(0xef)]((_0x222b40,_0x8656e0)=>_0x9ad5d(_0x222b40,_0x37147d+'-'+_0x9d82f2[_0x4c2ff1(0x139)]+'-'+_0x8656e0,_0xcf918d,void 0x0,_0x4d0c9f)));}function _0x2ac408(_0x43b2c9,_0x6af076,_0x982970){const _0x1e5194=_0xa11d48;let _0x2bfd67={..._0x43b2c9[_0x1e5194(0x11a)]};_0x982970!=null&&_0x982970[_0x1e5194(0x175)]&&_0x2bfd67['fill']===_0x1e5194(0x175)&&(_0x2bfd67[_0x1e5194(0xe9)]=_0x982970['colorChannel1']),_0x43b2c9[_0x1e5194(0x139)]==='mask'&&_0x2bfd67['id']&&(_0x2bfd67['id']+=_0x6af076[_0x1e5194(0x169)]),Object[_0x1e5194(0x1a5)](_0x2bfd67)[_0x1e5194(0x197)](([_0x2bb01d,_0x2ecef0])=>{const _0xe8e367=_0x1e5194;_0x2bb01d===_0xe8e367(0x143)&&typeof _0x2ecef0==_0xe8e367(0xe7)&&(_0x2bfd67[_0x2bb01d]=_0x2ecef0[_0xe8e367(0x1b8)](/url\(#(.*)\)/,_0xe8e367(0xf8)+_0x6af076[_0xe8e367(0x169)]+')'));});let {defIds:_0x212622}=_0x6af076;return!_0x212622||_0x212622[_0x1e5194(0x16e)]===0x0?_0x2bfd67:(_0x43b2c9['tag']===_0x1e5194(0xf4)&&_0x2bfd67[_0x1e5194(0x1a0)]&&(_0x2bfd67[_0x1e5194(0x1a0)]+=_0x6af076[_0x1e5194(0x169)]),Object[_0x1e5194(0x1a5)](_0x2bfd67)['forEach'](([_0x272925,_0x533e74])=>{const _0x54d4a8=_0x1e5194;typeof _0x533e74==_0x54d4a8(0xe7)&&(_0x2bfd67[_0x272925]=_0x533e74[_0x54d4a8(0x1b8)](/url\(#(.*)\)/,_0x54d4a8(0xf8)+_0x6af076[_0x54d4a8(0x169)]+')'));}),_0x2bfd67);}function _0x3a919e(_0x513320,_0x168b4f){const _0x3e9a01=_0xa11d48;var _0x3b04ab;let {defIds:_0x53b8df}=_0x168b4f;return!_0x53b8df||_0x53b8df[_0x3e9a01(0x16e)]===0x0?_0x513320:_0x513320[_0x3e9a01(0x139)]==='defs'&&(_0x3b04ab=_0x513320['children'])!=null&&_0x3b04ab['length']?{..._0x513320,'children':_0x513320[_0x3e9a01(0xd8)][_0x3e9a01(0xef)](_0x4ed653=>typeof _0x4ed653[_0x3e9a01(0x11a)]['id']==_0x3e9a01(0xe7)&&_0x53b8df&&_0x53b8df['includes'](_0x4ed653[_0x3e9a01(0x11a)]['id'])?{..._0x4ed653,'attrs':{..._0x4ed653['attrs'],'id':_0x4ed653[_0x3e9a01(0x11a)]['id']+_0x168b4f['idSuffix']}}:_0x4ed653)}:_0x513320;}function _0xec9e60(){const _0x2dc880=_0xa11d48;return Math[_0x2dc880(0x13b)]()[_0x2dc880(0xfd)](0x24)['substring'](0x2,0x8);}_0x26705d['displayName']=_0xa11d48(0x12e);let _0x4fc270={'tag':_0xa11d48(0x130),'attrs':{'xmlns':_0xa11d48(0xe2),'fill':_0xa11d48(0x131),'viewBox':_0xa11d48(0x16d),'width':_0xa11d48(0x128),'height':_0xa11d48(0x128)},'children':[{'tag':_0xa11d48(0x16f),'attrs':{'fill':'currentColor','d':_0xa11d48(0x112)}},{'tag':_0xa11d48(0x16f),'attrs':{'fill':_0xa11d48(0x102),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0xa11d48(0x156)}}]},_0x1b89f5=(0x0,_0x208f95[_0xa11d48(0x114)])(function(_0xb8970a,_0x2827f2){const _0x5410d5=_0xa11d48;return(0x0,_0x208f95[_0x5410d5(0x1ad)])(_0x26705d,Object[_0x5410d5(0x164)]({},_0xb8970a,{'id':_0x5410d5(0x161),'ref':_0x2827f2,'icon':_0x4fc270}));});_0x1b89f5[_0xa11d48(0x107)]='LiveShareIcon';function _0x517eaf(_0x2d1ee7){'@babel/helpers - typeof';const _0x33f705=_0xa11d48;return _0x517eaf=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x33f705(0x140)?function(_0x36189d){return typeof _0x36189d;}:function(_0x1abab1){const _0x1a0645=_0x33f705;return _0x1abab1&&typeof Symbol==_0x1a0645(0x152)&&_0x1abab1[_0x1a0645(0x106)]===Symbol&&_0x1abab1!==Symbol[_0x1a0645(0x19f)]?'symbol':typeof _0x1abab1;},_0x517eaf(_0x2d1ee7);}function _0x4a5029(_0x1aefe7,_0x28a288){const _0x1f2393=_0xa11d48;if(_0x517eaf(_0x1aefe7)!='object'||!_0x1aefe7)return _0x1aefe7;var _0x2d7c37=_0x1aefe7[Symbol[_0x1f2393(0x109)]];if(_0x2d7c37!==void 0x0){var _0x20166c=_0x2d7c37['call'](_0x1aefe7,_0x28a288||_0x1f2393(0xd6));if(_0x517eaf(_0x20166c)!=_0x1f2393(0x14f))return _0x20166c;throw TypeError(_0x1f2393(0xf2));}return(_0x28a288===_0x1f2393(0xe7)?String:Number)(_0x1aefe7);}function _0x1a7174(_0x562871){const _0x1eb8dd=_0xa11d48;var _0x4ecb25=_0x4a5029(_0x562871,_0x1eb8dd(0xe7));return _0x517eaf(_0x4ecb25)==_0x1eb8dd(0x140)?_0x4ecb25:_0x4ecb25+'';}function _0x11665a(_0x106827,_0x577203,_0x19219f){return(_0x577203=_0x1a7174(_0x577203))in _0x106827?Object['defineProperty'](_0x106827,_0x577203,{'value':_0x19219f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x106827[_0x577203]=_0x19219f,_0x106827;}var _0x25a795=class extends _0xcda847['Disposable']{constructor(..._0x2fedb2){const _0x535b11=_0xa11d48;super(..._0x2fedb2),_0x11665a(this,_0x535b11(0x192),new Set()),_0x11665a(this,'_reporters',new Set());}['registerSharedOperation'](_0x261c11){const _0x3eca09=_0xa11d48;return this[_0x3eca09(0x192)][_0x3eca09(0x18c)](_0x261c11),(0x0,_0xcda847[_0x3eca09(0x1a2)])(()=>this['_sharedOperations'][_0x3eca09(0x187)](_0x261c11));}['registerInitialStateReporter'](_0x14470c){const _0xfeaea2=_0xa11d48;return this[_0xfeaea2(0x185)]['add'](_0x14470c),(0x0,_0xcda847[_0xfeaea2(0x1a2)])(()=>this['_reporters'][_0xfeaea2(0x187)](_0x14470c));}['shouldShareOperation'](_0x9a7d9f){const _0x28bcca=_0xa11d48;return this[_0x28bcca(0x192)][_0x28bcca(0xf1)](_0x9a7d9f);}['getInitialStates'](_0xfd88d2){const _0x499479=_0xa11d48;return Array['from'](this[_0x499479(0x185)])['map'](_0x572b1d=>_0x572b1d(_0xfd88d2));}};function _0x44b13d(_0x30e5c9,_0x4178a7){return function(_0x457c6f,_0x488ef3){_0x4178a7(_0x457c6f,_0x488ef3,_0x30e5c9);};}function _0x4f71e7(_0x3c29e9,_0x5dca3d,_0x3370d8,_0x2bdb6d){const _0x253393=_0xa11d48;var _0x50ad3f=arguments[_0x253393(0x16e)],_0x375819=_0x50ad3f<0x3?_0x5dca3d:_0x2bdb6d===null?_0x2bdb6d=Object[_0x253393(0x14b)](_0x5dca3d,_0x3370d8):_0x2bdb6d,_0xbb1c2e;if(typeof Reflect==_0x253393(0x14f)&&typeof Reflect[_0x253393(0x1a7)]==_0x253393(0x152))_0x375819=Reflect['decorate'](_0x3c29e9,_0x5dca3d,_0x3370d8,_0x2bdb6d);else{for(var _0x469f48=_0x3c29e9[_0x253393(0x16e)]-0x1;_0x469f48>=0x0;_0x469f48--)(_0xbb1c2e=_0x3c29e9[_0x469f48])&&(_0x375819=(_0x50ad3f<0x3?_0xbb1c2e(_0x375819):_0x50ad3f>0x3?_0xbb1c2e(_0x5dca3d,_0x3370d8,_0x375819):_0xbb1c2e(_0x5dca3d,_0x3370d8))||_0x375819);}return _0x50ad3f>0x3&&_0x375819&&Object['defineProperty'](_0x5dca3d,_0x3370d8,_0x375819),_0x375819;}let _0x54cbb3=class extends _0xcda847[_0xa11d48(0x19a)]{constructor(_0xdad95,_0x360a86,_0x1258ee){const _0x3173ed=_0xa11d48;super(),this['_univerInstanceService']=_0xdad95,this[_0x3173ed(0x163)]=_0x360a86,this[_0x3173ed(0xfa)]=_0x1258ee,_0x11665a(this,_0x3173ed(0x12b),new Map()),this[_0x3173ed(0x184)]();}async[_0xa11d48(0x16a)](_0x1a1458){const _0x4aeae2=_0xa11d48;return this['_entities'][_0x4aeae2(0xf1)](_0x1a1458)||await this[_0x4aeae2(0x149)](_0x1a1458),this[_0x4aeae2(0x12b)][_0x4aeae2(0x136)](_0x1a1458);}['getLiveShareCoordinatorSync'](_0x332301){var _0x327bc9;return(_0x327bc9=this['_entities']['get'](_0x332301))==null?null:_0x327bc9;}[_0xa11d48(0x184)](){const _0x519def=_0xa11d48;this[_0x519def(0x19e)]['getTypeOfUnitAdded$'](_0xcda847[_0x519def(0x104)]['UNIVER_SHEET'])[_0x519def(0x176)]((0x0,_0x212c65[_0x519def(0x145)])(this['dispose$']))['subscribe'](async _0x3803a9=>{const _0xa240a8=_0x519def;let _0x3c62c6=_0x3803a9[_0xa240a8(0xfc)]();this[_0xa240a8(0x12b)]['has'](_0x3c62c6)||this[_0xa240a8(0x149)](_0x3c62c6);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0xcda847['UniverInstanceType'][_0x519def(0x123)])[_0x519def(0x176)]((0x0,_0x212c65[_0x519def(0x145)])(this['dispose$']))[_0x519def(0x19d)](_0x12390f=>{const _0x2fdccd=_0x519def;let _0x166f95=_0x12390f[_0x2fdccd(0xfc)](),_0x4da940=this['_entities'][_0x2fdccd(0x136)](_0x166f95);_0x4da940==null||_0x4da940[_0x2fdccd(0x10e)]();});}async[_0xa11d48(0x149)](_0x4b233a){const _0x23d47b=_0xa11d48;let _0x288f21=await this[_0x23d47b(0xfa)][_0x23d47b(0x111)](_0x4b233a),_0x32363c=this[_0x23d47b(0x163)][_0x23d47b(0x19b)](_0x54ce84,_0x4b233a,_0x288f21);return _0x32363c[_0x23d47b(0x16b)](),this[_0x23d47b(0x12b)]['set'](_0x4b233a,_0x32363c),_0x32363c;}};_0x54cbb3=_0x4f71e7([_0x44b13d(0x0,_0xcda847[_0xa11d48(0x1b0)]),_0x44b13d(0x1,(0x0,_0xcda847[_0xa11d48(0x18b)])(_0xcda847[_0xa11d48(0xe0)])),_0x44b13d(0x2,(0x0,_0xcda847[_0xa11d48(0x18b)])(_0x58fcf4[_0xa11d48(0x1b9)]))],_0x54cbb3);let _0x3eaf6e=function(_0x36094d){const _0x3b06fa=_0xa11d48;return _0x36094d['OFFLINE']='offline',_0x36094d['IDLE']='idle',_0x36094d[_0x3b06fa(0x11b)]=_0x3b06fa(0xe1),_0x36094d[_0x3b06fa(0x199)]=_0x3b06fa(0x105),_0x36094d['PRESENTING']='presenting',_0x36094d;}({}),_0x54ce84=class extends _0xcda847['RxDisposable']{get[_0xa11d48(0xde)](){return this['_status$']['getValue']();}constructor(_0x5dc218,_0x5a636f,_0x2fabab,_0x40b879,_0xde280c){const _0x42b7bc=_0xa11d48;super(),this['_unitID']=_0x5dc218,this[_0x42b7bc(0x160)]=_0x5a636f,this[_0x42b7bc(0x146)]=_0x2fabab,this[_0x42b7bc(0x1ba)]=_0x40b879,this[_0x42b7bc(0x13d)]=_0xde280c,_0x11665a(this,_0x42b7bc(0x10a),new _0x2f4652[(_0x42b7bc(0x17b))](_0x3eaf6e[_0x42b7bc(0x13f)])),_0x11665a(this,_0x42b7bc(0xdd),this[_0x42b7bc(0x10a)][_0x42b7bc(0xe3)]()),_0x11665a(this,_0x42b7bc(0x184),!0x1),_0x11665a(this,_0x42b7bc(0xf6),null),_0x11665a(this,_0x42b7bc(0x151),null);}[_0xa11d48(0x10e)](){const _0x1b5868=_0xa11d48;var _0x59ccb0;(_0x59ccb0=this[_0x1b5868(0xf6)])==null||_0x59ccb0['dispose'](),this[_0x1b5868(0x10a)][_0x1b5868(0x181)](_0x3eaf6e[_0x1b5868(0x13f)]),this['_status$'][_0x1b5868(0x16c)]();}[_0xa11d48(0x116)](){return this['_status'];}[_0xa11d48(0x16b)](){const _0x88a92d=_0xa11d48;this['_init']||(this['_init']=!0x0,this[_0x88a92d(0x160)][_0x88a92d(0x1a3)][_0x88a92d(0x176)]((0x0,_0x212c65[_0x88a92d(0x145)])(this[_0x88a92d(0xf5)]))['subscribe'](_0x3c0791=>{const _0x3bf197=_0x88a92d;switch(_0x3c0791){case _0x58fcf4[_0x3bf197(0x12c)][_0x3bf197(0x1ac)]:this[_0x3bf197(0x125)]();break;case _0x58fcf4[_0x3bf197(0x12c)][_0x3bf197(0x1b5)]:this['_handleOnline']();break;default:}}),this[_0x88a92d(0x160)]['event$'][_0x88a92d(0x176)]((0x0,_0x212c65['takeUntil'])(this[_0x88a92d(0xf5)]))['subscribe'](_0x3bce60=>{const _0x2d823c=_0x88a92d;let {eventID:_0x33f9c8}=_0x3bce60;switch(_0x33f9c8){case _0x1a58ee[_0x2d823c(0x174)]['LIVESHARE_NEW_HOST']:this[_0x2d823c(0x170)](_0x3bce60);break;case _0x1a58ee['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x2d823c(0xee)](_0x3bce60);break;case _0x1a58ee[_0x2d823c(0x174)][_0x2d823c(0x1a9)]:this[_0x2d823c(0x117)]();break;case _0x1a58ee['CollaborationEvent'][_0x2d823c(0x154)]:this[_0x2d823c(0x11f)](_0x3bce60);break;default:}}));}[_0xa11d48(0x144)](){const _0x4546ae=_0xa11d48;this['_collabSession'][_0x4546ae(0xd4)]({'eventID':_0x1a58ee[_0x4546ae(0x174)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x4546ae(0x160)][_0x4546ae(0x122)]()}},this[_0x4546ae(0x13a)]);}[_0xa11d48(0x1b4)](){const _0xb9b273=_0xa11d48;this[_0xb9b273(0xde)]===_0x3eaf6e[_0xb9b273(0x179)]&&(this[_0xb9b273(0x10a)][_0xb9b273(0x181)](_0x3eaf6e[_0xb9b273(0x13f)]),this[_0xb9b273(0x160)]['send']({'eventID':_0x1a58ee[_0xb9b273(0x174)][_0xb9b273(0x1a9)],'data':{'unitID':this['_unitID']}},this[_0xb9b273(0x13a)]));}['startFollowing'](){const _0x467758=_0xa11d48;this['_status']===_0x3eaf6e[_0x467758(0x199)]&&(this[_0x467758(0x10a)][_0x467758(0x181)](_0x3eaf6e[_0x467758(0x11b)]),this['_startFollowing']());}['stopFollowing'](){const _0x1e8b67=_0xa11d48;this[_0x1e8b67(0xde)]===_0x3eaf6e[_0x1e8b67(0x11b)]&&this[_0x1e8b67(0xd9)]();}['_handleNewHost'](_0x3f9d6f){const _0x1ca8f3=_0xa11d48;let {presenter:_0x416ff5}=_0x3f9d6f[_0x1ca8f3(0x12a)],_0x5f4e60=this[_0x1ca8f3(0x160)][_0x1ca8f3(0x122)]();this[_0x1ca8f3(0x151)]=_0x416ff5,_0x416ff5===_0x5f4e60?(this['_stopFollowing'](),this[_0x1ca8f3(0x103)]()):this[_0x1ca8f3(0xde)]!==_0x3eaf6e[_0x1ca8f3(0x199)]&&(this[_0x1ca8f3(0x137)](),this[_0x1ca8f3(0x147)]());}[_0xa11d48(0xff)](){const _0x2be3b2=_0xa11d48;let _0x56988d={'eventID':_0x1a58ee[_0x2be3b2(0x174)][_0x2be3b2(0xf9)]};this['_collabSession'][_0x2be3b2(0xd4)](_0x56988d,this[_0x2be3b2(0x13a)]);}['_handleTerminate'](){const _0x15f682=_0xa11d48;this[_0x15f682(0x151)]=null,this[_0x15f682(0xde)]!==_0x3eaf6e[_0x15f682(0x179)]&&this['_beIdle']();}[_0xa11d48(0x11f)](_0x165df2){const _0x17349b=_0xa11d48;if(this[_0x17349b(0xde)]===_0x3eaf6e[_0x17349b(0x11b)]&&this['_presenter']===_0x165df2[_0x17349b(0x12a)]['memberID']){let _0x4847f8=(0x0,_0x1a58ee['parseProtocolChangeset'])(_0x165df2['data'])[_0x17349b(0xe5)][_0x17349b(0x168)]()[_0x17349b(0xe8)](_0x4493cf=>_0x4493cf['id']===_0x4b9761[_0x17349b(0x157)]['id']);if(_0x4847f8){let _0x3afc21=_0x4847f8[_0x17349b(0x171)][_0x17349b(0x110)],_0x18744f=_0x4847f8[_0x17349b(0x171)][_0x17349b(0x1a4)]['id'];setTimeout(()=>{const _0x4798ba=_0x17349b;this[_0x4798ba(0x13d)]['executeCommand'](_0x4b9761[_0x4798ba(0x150)]['id'],{'unitId':_0x3afc21,'subUnitId':_0x18744f},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x39420c=_0xa11d48;this[_0x39420c(0x10a)][_0x39420c(0x181)](_0x3eaf6e['PRESENTING']);let _0xc6e3e1=new Map(),_0x52196d=this[_0x39420c(0xf6)]=new _0xcda847[(_0x39420c(0x13e))]();_0x52196d[_0x39420c(0x18c)]((0x0,_0xcda847[_0x39420c(0x1a2)])(()=>{const _0x3b29d1=_0x39420c;_0xc6e3e1[_0x3b29d1(0x197)](_0x3fef28=>_0x3fef28[_0x3b29d1(0x16c)]()),_0xc6e3e1['clear']();})),_0x52196d[_0x39420c(0x18c)](this[_0x39420c(0x13d)][_0x39420c(0xe4)](_0x460214=>{const _0x1f4739=_0x39420c;if(_0x460214[_0x1f4739(0xd7)]!==_0xcda847['CommandType'][_0x1f4739(0x1b6)]||!this[_0x1f4739(0x1ba)][_0x1f4739(0x15c)](_0x460214['id']))return;let {id:_0x38f5d8}=_0x460214,_0x4f6037;if(_0xc6e3e1[_0x1f4739(0xf1)](_0x38f5d8))_0x4f6037=_0xc6e3e1[_0x1f4739(0x136)](_0x38f5d8);else{var _0x3d09e6;_0x4f6037=new _0x2f4652[(_0x1f4739(0x190))](),_0xc6e3e1[_0x1f4739(0x1af)](_0x38f5d8,_0x4f6037),_0x4f6037[_0x1f4739(0x176)]((0x0,_0x212c65[_0x1f4739(0x167)])((_0x3d09e6=this[_0x1f4739(0x146)]['getConfig']('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x3d09e6,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1f4739(0x19d)](_0x43df9e=>{const _0xfb1eba=_0x1f4739;this[_0xfb1eba(0x160)][_0xfb1eba(0xd4)]({'eventID':_0x1a58ee[_0xfb1eba(0x174)][_0xfb1eba(0x178)],'data':{'unitID':this[_0xfb1eba(0x13a)],'operations':{[_0x43df9e['id']]:{'id':_0x43df9e['id'],'params':JSON[_0xfb1eba(0x18f)](_0x43df9e[_0xfb1eba(0x171)])}}}},this[_0xfb1eba(0x13a)]);});}_0x4f6037[_0x1f4739(0x181)](_0x460214);})),this[_0x39420c(0x1ba)]['getInitialStates'](this[_0x39420c(0x13a)])[_0x39420c(0x197)](_0xc27a9=>this[_0x39420c(0x160)][_0x39420c(0xd4)]({'eventID':_0x1a58ee[_0x39420c(0x174)][_0x39420c(0x178)],'data':{'unitID':this[_0x39420c(0x13a)],'operations':{[_0xc27a9['id']]:{'id':_0xc27a9['id'],'params':JSON[_0x39420c(0x18f)](_0xc27a9[_0x39420c(0x171)])}}}},this[_0x39420c(0x13a)]));}[_0xa11d48(0x137)](){const _0x397d6c=_0xa11d48;var _0x1df3f1;this[_0x397d6c(0x10a)][_0x397d6c(0x181)](_0x3eaf6e[_0x397d6c(0x13f)]),(_0x1df3f1=this['_commandDisposable'])==null||_0x1df3f1[_0x397d6c(0x10e)](),this[_0x397d6c(0xf6)]=null;}['_startFollowing'](){const _0x47b1d9=_0xa11d48;var _0xacb621;(_0xacb621=this[_0x47b1d9(0xf6)])==null||_0xacb621[_0x47b1d9(0x10e)](),this[_0x47b1d9(0x10a)]['next'](_0x3eaf6e[_0x47b1d9(0x11b)]);}['_beIdle'](){const _0x21616e=_0xa11d48;var _0x5a2876;this[_0x21616e(0x10a)][_0x21616e(0x181)](_0x3eaf6e[_0x21616e(0x13f)]),(_0x5a2876=this[_0x21616e(0xf6)])==null||_0x5a2876[_0x21616e(0x10e)](),this[_0x21616e(0xf6)]=null;}[_0xa11d48(0xd9)](){const _0x30ac66=_0xa11d48;var _0x20118b;this[_0x30ac66(0x10a)][_0x30ac66(0x181)](_0x3eaf6e[_0x30ac66(0x199)]),(_0x20118b=this['_commandDisposable'])==null||_0x20118b[_0x30ac66(0x10e)]();}['_handleOperation'](_0x13b665){const _0x48a3c4=_0xa11d48;if([_0x3eaf6e['PRESENTING'],_0x3eaf6e[_0x48a3c4(0x199)],_0x3eaf6e[_0x48a3c4(0x1ac)]][_0x48a3c4(0x193)](this[_0x48a3c4(0xde)])||!_0x13b665['data']['presenter']||_0x13b665[_0x48a3c4(0x12a)][_0x48a3c4(0x121)]===this['_collabSession'][_0x48a3c4(0x122)]())return;this['_status']===_0x3eaf6e[_0x48a3c4(0x13f)]&&this[_0x48a3c4(0x147)]();let _0x2115ad=_0x13b665[_0x48a3c4(0x12a)][_0x48a3c4(0x127)];Object[_0x48a3c4(0x113)](_0x2115ad)[_0x48a3c4(0x197)](_0x3dc72b=>{const _0x4cb35a=_0x48a3c4;this[_0x4cb35a(0x13d)][_0x4cb35a(0x135)](_0x3dc72b['id'],_0x3dc72b[_0x4cb35a(0x171)]?JSON[_0x4cb35a(0x14a)](_0x3dc72b[_0x4cb35a(0x171)]):null,{'fromCollab':!0x0});});}[_0xa11d48(0x125)](){const _0x4dd6df=_0xa11d48;var _0xac33a3;this[_0x4dd6df(0x10a)][_0x4dd6df(0x181)](_0x3eaf6e[_0x4dd6df(0x1ac)]),(_0xac33a3=this['_commandDisposable'])==null||_0xac33a3['dispose']();}[_0xa11d48(0x108)](){const _0x1d2ad5=_0xa11d48;this[_0x1d2ad5(0x10a)]['next'](_0x3eaf6e['IDLE']),this[_0x1d2ad5(0xff)]();}};_0x54ce84=_0x4f71e7([_0x44b13d(0x2,_0xcda847[_0xa11d48(0x134)]),_0x44b13d(0x3,(0x0,_0xcda847[_0xa11d48(0x18b)])(_0x25a795)),_0x44b13d(0x4,_0xcda847[_0xa11d48(0x15b)])],_0x54ce84);function _0x57d4dd(){const _0x4780a0=_0xa11d48;let _0x37a07a=(0x0,_0x5d1c2e[_0x4780a0(0x129)])(_0x54cbb3),_0x48ace7=(0x0,_0x5d1c2e[_0x4780a0(0x129)])(_0xcda847[_0x4780a0(0x1b0)]),_0x33471d=(0x0,_0x5d1c2e[_0x4780a0(0x1ae)])(()=>_0x48ace7[_0x4780a0(0xe6)](_0xcda847[_0x4780a0(0x104)][_0x4780a0(0x123)]),void 0x0,!0x1,[]),[_0x46ef16,_0x55073c]=(0x0,_0x208f95['useState'])(null),[_0x2484b6,_0x1735d3]=(0x0,_0x208f95['useState'])(_0x3eaf6e['IDLE']),_0x4b01ad=(0x0,_0x208f95['useRef'])(null);return(0x0,_0x208f95[_0x4780a0(0x15d)])(()=>(_0x33471d&&_0x37a07a[_0x4780a0(0x16a)](_0x33471d['getUnitId']())['then'](_0x2b1b29=>{const _0x42323a=_0x4780a0;_0x55073c(_0x2b1b29),_0x4b01ad[_0x42323a(0xed)]=_0x2b1b29[_0x42323a(0xdd)]['subscribe'](_0x2aaed9=>{_0x1735d3(_0x2aaed9);});}),()=>{const _0x17fc45=_0x4780a0;var _0x1c6500;(_0x1c6500=_0x4b01ad['current'])==null||_0x1c6500[_0x17fc45(0x101)](),_0x4b01ad[_0x17fc45(0xed)]=null;}),[_0x33471d,_0x37a07a]),_0x46ef16?(0x0,_0x1e1fb5[_0x4780a0(0x142)])(_0x5be239['Dropdown'],{'align':_0x4780a0(0x12d),'disabled':_0x2484b6===_0x3eaf6e[_0x4780a0(0x1ac)],'className':_0x4780a0(0x165),'overlay':(0x0,_0x1e1fb5[_0x4780a0(0x142)])(_0x482084,{'status':_0x2484b6,'coordinator':_0x46ef16}),'children':(0x0,_0x1e1fb5[_0x4780a0(0x142)])(_0x4780a0(0xda),{'className':(0x0,_0x5be239[_0x4780a0(0x15f)])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2484b6===_0x3eaf6e[_0x4780a0(0x1ac)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2484b6!==_0x3eaf6e[_0x4780a0(0x1ac)]}),'type':'button','children':(0x0,_0x1e1fb5[_0x4780a0(0x142)])(_0x1b89f5,{'className':_0x4780a0(0x100)})})}):null;}function _0x482084(_0x5bbfc1){const _0x41f289=_0xa11d48;let {status:_0xb982b,coordinator:_0x410a2a}=_0x5bbfc1;switch(_0xb982b){case _0x3eaf6e['IDLE']:return(0x0,_0x1e1fb5[_0x41f289(0x142)])(_0x5108c1,{'coordinator':_0x410a2a});case _0x3eaf6e[_0x41f289(0x11b)]:return(0x0,_0x1e1fb5['jsx'])(_0x13b16d,{'coordinator':_0x410a2a});case _0x3eaf6e[_0x41f289(0x199)]:return(0x0,_0x1e1fb5[_0x41f289(0x142)])(_0xc7d40c,{'coordinator':_0x410a2a});case _0x3eaf6e[_0x41f289(0x1ac)]:return(0x0,_0x1e1fb5[_0x41f289(0x142)])(_0x21e971,{});case _0x3eaf6e[_0x41f289(0x179)]:return(0x0,_0x1e1fb5[_0x41f289(0x142)])(_0x1b66c4,{'coordinator':_0x410a2a});default:return null;}}function _0x5108c1(_0x4adbbc){const _0x28d652=_0xa11d48;let {coordinator:_0x1701b9}=_0x4adbbc;return(0x0,_0x1e1fb5[_0x28d652(0x153)])(_0x1e1fb5[_0x28d652(0x182)],{'children':[(0x0,_0x1e1fb5[_0x28d652(0x142)])(_0x28d652(0x141),{'className':_0x28d652(0xf0),'children':_0x28d652(0x12f)}),(0x0,_0x1e1fb5[_0x28d652(0x142)])(_0x5be239[_0x28d652(0xdc)],{'onClick':()=>_0x1701b9['tryStartPresenting'](),'children':'Start'})]});}function _0x13b16d(_0xe06b09){const _0x4ba252=_0xa11d48;let {coordinator:_0x414afb}=_0xe06b09;return(0x0,_0x1e1fb5[_0x4ba252(0x153)])(_0x1e1fb5[_0x4ba252(0x182)],{'children':[(0x0,_0x1e1fb5[_0x4ba252(0x142)])(_0x4ba252(0x141),{'className':_0x4ba252(0xf0),'children':_0x4ba252(0x118)}),(0x0,_0x1e1fb5[_0x4ba252(0x142)])(_0x5be239[_0x4ba252(0xdc)],{'onClick':()=>_0x414afb[_0x4ba252(0x133)](),'children':_0x4ba252(0x10d)})]});}function _0xc7d40c(_0x31f0b5){const _0x1f93db=_0xa11d48;let {coordinator:_0xea8c36}=_0x31f0b5;return(0x0,_0x1e1fb5[_0x1f93db(0x153)])(_0x1e1fb5[_0x1f93db(0x182)],{'children':[(0x0,_0x1e1fb5[_0x1f93db(0x142)])(_0x1f93db(0x141),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,_0x1e1fb5[_0x1f93db(0x142)])(_0x5be239[_0x1f93db(0xdc)],{'variant':_0x1f93db(0x1a8),'onClick':()=>_0xea8c36[_0x1f93db(0x195)](),'children':_0x1f93db(0x191)})]});}function _0x1b66c4(_0x6f3500){const _0xc98d47=_0xa11d48;let {coordinator:_0x16b312}=_0x6f3500;return(0x0,_0x1e1fb5['jsxs'])(_0x1e1fb5[_0xc98d47(0x182)],{'children':[(0x0,_0x1e1fb5['jsx'])(_0xc98d47(0x141),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc98d47(0x138)}),(0x0,_0x1e1fb5['jsx'])(_0x5be239[_0xc98d47(0xdc)],{'variant':_0xc98d47(0xd6),'onClick':()=>_0x16b312['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x21e971(){const _0x225314=_0xa11d48;return(0x0,_0x1e1fb5[_0x225314(0x142)])(_0x1e1fb5[_0x225314(0x182)],{'children':_0x225314(0xfb)});}let _0x203adb=class extends _0xcda847[_0xa11d48(0x1b2)]{constructor(_0x1f26ca,_0x2b03b2){const _0x1b93bb=_0xa11d48;super(),this[_0x1b93bb(0x163)]=_0x1f26ca,this[_0x1b93bb(0x155)]=_0x2b03b2,this[_0x1b93bb(0x17c)]();}[_0xa11d48(0x17c)](){const _0x21023d=_0xa11d48;this[_0x21023d(0x11d)](this[_0x21023d(0x155)][_0x21023d(0x1bb)](_0x5d1c2e[_0x21023d(0x18e)][_0x21023d(0x188)],()=>(0x0,_0x5d1c2e[_0x21023d(0x17e)])(_0x57d4dd,this['_injector'])));}};_0x203adb=_0x4f71e7([_0x44b13d(0x0,(0x0,_0xcda847['Inject'])(_0xcda847[_0xa11d48(0xe0)])),_0x44b13d(0x1,_0x5d1c2e['IUIPartsService'])],_0x203adb);var _0x538fed=_0xa11d48(0x159),_0x1ff177=_0xa11d48(0x177);let _0xa8f50a=_0xa11d48(0x148);Symbol(_0xa8f50a);let _0x54d1af={},_0x5c9271=class extends _0xcda847[_0xa11d48(0x1b2)]{constructor(_0x322ada){const _0x4ba398=_0xa11d48;super(),this[_0x4ba398(0x1ba)]=_0x322ada,this[_0x4ba398(0x184)]();}[_0xa11d48(0x184)](){const _0xe4c863=_0xa11d48;[_0x4b6373[_0xe4c863(0x17d)]['id'],_0x4b6373[_0xe4c863(0x196)]['id'],_0x4b9761[_0xe4c863(0x150)]['id']][_0xe4c863(0x197)](_0x386c70=>{const _0x501c80=_0xe4c863;this[_0x501c80(0x11d)](this['_liveShareService']['registerSharedOperation'](_0x386c70));});}};_0x5c9271=_0x4f71e7([_0x44b13d(0x0,(0x0,_0xcda847[_0xa11d48(0x18b)])(_0x25a795))],_0x5c9271);let _0x149243=class extends _0xcda847[_0xa11d48(0x166)]{constructor(_0x12c9b0=_0x54d1af,_0x5d17b2,_0xd24b1f){const _0x5ccf15=_0xa11d48;super(),this[_0x5ccf15(0x162)]=_0x12c9b0,this[_0x5ccf15(0x163)]=_0x5d17b2,this[_0x5ccf15(0x146)]=_0xd24b1f;let {..._0x1a46ca}=(0x0,_0xcda847[_0x5ccf15(0x158)])({},_0x54d1af,this[_0x5ccf15(0x162)]);this['_configService'][_0x5ccf15(0x1bc)](_0xa8f50a,_0x1a46ca);}['onStarting'](){const _0x5cdf2a=_0xa11d48;(0x0,_0xcda847[_0x5cdf2a(0x120)])(this[_0x5cdf2a(0x163)],(0x0,_0xcda847[_0x5cdf2a(0x15a)])([[_0x25a795],[_0x54cbb3],[_0x5c9271],[_0x203adb]],this[_0x5cdf2a(0x162)]['override'])),(0x0,_0xcda847['touchDependencies'])(this['_injector'],[[_0x5c9271]]);}[_0xa11d48(0x14d)](){const _0x20a47c=_0xa11d48;(0x0,_0xcda847[_0x20a47c(0xeb)])(this[_0x20a47c(0x163)],[[_0x203adb]]);}};_0x11665a(_0x149243,'type',_0xcda847[_0xa11d48(0x104)]['UNIVER_UNKNOWN']),_0x11665a(_0x149243,_0xa11d48(0x10c),_0xa11d48(0x183)),_0x11665a(_0x149243,_0xa11d48(0x189),_0x538fed),_0x11665a(_0x149243,_0xa11d48(0x1b3),_0x1ff177),_0x149243=_0x4f71e7([(0x0,_0xcda847[_0xa11d48(0xd5)])(_0x58fcf4['UniverCollaborationClientPlugin']),_0x44b13d(0x1,(0x0,_0xcda847[_0xa11d48(0x18b)])(_0xcda847[_0xa11d48(0xe0)])),_0x44b13d(0x2,_0xcda847[_0xa11d48(0x134)])],_0x149243),Object[_0xa11d48(0x124)](_0x5d1679,'DesktopLiveShareController',{'enumerable':!0x0,'get':function(){return _0x203adb;}}),_0x5d1679['LiveShare']=_0x57d4dd,Object['defineProperty'](_0x5d1679,_0xa11d48(0x10b),{'enumerable':!0x0,'get':function(){return _0x54cbb3;}}),Object[_0xa11d48(0x124)](_0x5d1679,_0xa11d48(0x11e),{'enumerable':!0x0,'get':function(){return _0x54ce84;}}),_0x5d1679[_0xa11d48(0x132)]=_0x25a795,_0x5d1679[_0xa11d48(0x10f)]=_0x3eaf6e,Object[_0xa11d48(0x124)](_0x5d1679,_0xa11d48(0xf7),{'enumerable':!0x0,'get':function(){return _0x149243;}});}));
|
|
1
|
+
function _0x526c(){const _0x257bb3=['tryStartPresenting','OFFLINE','presenting','clear','createElement','react/jsx-runtime','Injector','Fragment','LIVESHARE_FETCH_OPERATIONS','Start\x20following','live-share.config','reverse','990995MbkcmH','idSuffix','rxjs','path','toPrimitive','_startPresenting','UniverProLiveShare','requireSession','React','includes','fill','stopFollowing','memberID','LiveShareService','CollaborationEvent','_stopFollowing','LIVESHARE_NEW_HOST','parseProtocolChangeset','CollaborationSessionService','ICommandService','_collabSessionService','getLiveShareCoordinator','operators','_reporters','getInitialStates','9184010varPtd','IUniverInstanceService','find','decorate','CommandType','onCommandExecuted','getUnitId','unitId','1em','div','1816695XqcLsO','string','children','function','@univerjs/design','currentColor','displayName','getTypeOfUnitAdded$','getConfig','univerjs-icon\x20univerjs-icon-','button','56uzdCKW','dispose$','rxjs/operators','Subject','subscribe','Disposable','2adVweU','Stop\x20following','BuiltInUIPart','_mountLiveShare','Button','toDisposable','exports','UniverDesign','live-share-icon','getOwnPropertyDescriptor','parse','SetScrollOperation','registerDependencies','_handleOnline','UNIVER_UNKNOWN','NEW_CHANGESETS','onStarting','touchDependencies','has','length','unsubscribe','from','getMemberID','_handleOffline','forEach','You\x27are\x20offline.','jsx','_status$','@univerjs-pro/collaboration-client','type','Present\x20this\x20document','add','@univerjs/ui','UniverUi','3427237fsMNWk','prototype','sheet','UniverProCollaboration','LiveShareStatus','SetWorksheetActiveOperation','Stop\x20presenting','tag','You\x27re\x20presenting\x20the\x20document','IDLE','_startLiveShareCoordinator','forwardRef','takeUntil','attrs','current','Plugin','override','PRESENTING','Inject','_beIdle','_liveShareService','url(#$1','You\x27re\x20following\x20the\x20presenter','values','12Biqtqw','dispose','defs','data','offline','74864KjuubB','useObservable','UniverIcon','sessionStatus$','merge','LIVESHARE_TERMINATE','executeCommand','_handleOperation','createInstance','_handleNewHost','none','_commandService','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','end','@univerjs-pro/live-share','startFollowing','object','_uiPartsService','NOT_FOLLOWING','registerSharedOperation','map','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','trim','getValue','RxDisposable','UniverInstanceType','_sharedOperations','DisposableCollection','amd','react','constructor','LiveShareController','toStringTag','@univerjs/sheets-ui','_injector','UniverLiveSharePlugin','following','useDependency','_status','get','clsx','disposeWithMe','symbol','_univerInstanceService','56cnEAdl','replace','evenodd','UniverCollaborationClientPlugin','LIVESHARE_OPERATION','call','text','getLiveShareCoordinatorSync','_stopPresenting','operations','random','_entities','colorChannel1','http://www.w3.org/2000/svg','_startFollowing','_init','pipe','_configService','3785536hYBVym','@univerjs-pro/collaboration','Module','LIVESHARE_REQUEST_HOST','init','version','UniverSheets','_commandDisposable','iterator','xlink:href','UniverSheetsUi','_handleNewChangeSets','3nLhTmc','useState','DependentOn','UNIVER_SHEET','stringify','_handleTerminate','default','send','@univerjs/core','0\x200\x2017\x2017','_presenter','defineProperty','1283232LBQgQC','presenter','defIds','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerComponent','packageName','UniverProCollaborationClient','HEADER_MENU','LiveShareCoordinator','useEffect','UniverCore','_unitID','next','delete','shouldShareOperation','params','jsxs','assign','use','_collabSession','LiveShare','getStatus','complete','IConfigService','stopPresenting','useRef','FOLLOWING'];_0x526c=function(){return _0x257bb3;};return _0x526c();}function _0x342b(_0x3aa3f6,_0x104687){_0x3aa3f6=_0x3aa3f6-0xb2;const _0x526c57=_0x526c();let _0x342b2f=_0x526c57[_0x3aa3f6];return _0x342b2f;}(function(_0x1bb50f,_0x530f83){const _0x4c9976=_0x342b,_0x1a4683=_0x1bb50f();while(!![]){try{const _0x4ab269=-parseInt(_0x4c9976(0x14a))/0x1*(parseInt(_0x4c9976(0x189))/0x2)+parseInt(_0x4c9976(0xe3))/0x3*(parseInt(_0x4c9976(0xd7))/0x4)+-parseInt(_0x4c9976(0x116))/0x5+parseInt(_0x4c9976(0xef))/0x6*(-parseInt(_0x4c9976(0x144))/0x7)+parseInt(_0x4c9976(0xc5))/0x8*(parseInt(_0x4c9976(0x139))/0x9)+parseInt(_0x4c9976(0x12f))/0xa+parseInt(_0x4c9976(0x16c))/0xb*(-parseInt(_0x4c9976(0x184))/0xc);if(_0x4ab269===_0x530f83)break;else _0x1a4683['push'](_0x1a4683['shift']());}catch(_0x3d48d3){_0x1a4683['push'](_0x1a4683['shift']());}}}(_0x526c,0xefc94),function(_0xb327fa,_0x1cdf45){const _0x53d35b=_0x342b;typeof exports==_0x53d35b(0x199)&&typeof module<'u'?_0x1cdf45(exports,require(`@univerjs/core`),require(`@univerjs/ui`),require(`@univerjs/design`),require(`react`),require(`@univerjs-pro/collaboration`),require(`@univerjs-pro/collaboration-client`),require(`@univerjs/sheets`),require(`rxjs`),require(`rxjs/operators`),require(`react/jsx-runtime`),require(`@univerjs/sheets-ui`)):typeof define=='function'&&define[_0x53d35b(0xb5)]?define([_0x53d35b(0x150),_0x53d35b(0xeb),_0x53d35b(0x16a),_0x53d35b(0x13d),_0x53d35b(0xb6),_0x53d35b(0xd8),_0x53d35b(0x166),'@univerjs/sheets',_0x53d35b(0x118),_0x53d35b(0x146),_0x53d35b(0x10f),_0x53d35b(0xba)],_0x1cdf45):(_0xb327fa=typeof globalThis<'u'?globalThis:_0xb327fa||self,_0x1cdf45(_0xb327fa[_0x53d35b(0x11c)]={},_0xb327fa[_0x53d35b(0xf9)],_0xb327fa[_0x53d35b(0x16b)],_0xb327fa[_0x53d35b(0x151)],_0xb327fa[_0x53d35b(0x11e)],_0xb327fa[_0x53d35b(0x16f)],_0xb327fa[_0x53d35b(0xf5)],_0xb327fa[_0x53d35b(0xdd)],_0xb327fa['rxjs'],_0xb327fa[_0x53d35b(0x118)][_0x53d35b(0x12c)],_0xb327fa['React'],_0xb327fa[_0x53d35b(0xe1)]));}(this,function(_0x2f7e08,_0x35c157,_0x48ec07,_0x133c3f,_0x593f18,_0x1cb6ce,_0x5742c5,_0x576f29,_0x4c7a85,_0x4992c9,_0x48268c,_0x41f8d2){const _0x2c7789=_0x342b;Object['defineProperty'](_0x2f7e08,Symbol[_0x2c7789(0xb9)],{'value':_0x2c7789(0xd9)});function _0x20059d({ref:_0x2869b2,..._0x3f7a49}){const _0x5e2e5b=_0x2c7789;let {icon:_0x8ce032,id:_0x74fe6a,className:_0x5a007b,extend:_0x297937,..._0x55290a}=_0x3f7a49,_0x5c06c8=(_0x5e2e5b(0x142)+_0x74fe6a+'\x20'+(_0x5a007b||''))[_0x5e2e5b(0x19f)](),_0x3ffb10=(0x0,_0x593f18[_0x5e2e5b(0x108)])('_'+_0x21abf2());return _0x11f113(_0x8ce032,''+_0x74fe6a,{'defIds':_0x8ce032[_0x5e2e5b(0xf1)],'idSuffix':_0x3ffb10[_0x5e2e5b(0x17a)]},{'ref':_0x2869b2,'className':_0x5c06c8,..._0x55290a},_0x297937);}function _0x11f113(_0xf8befb,_0x1339a0,_0x3ed0df,_0x38ed4a,_0x1bf427){const _0x8f8a57=_0x2c7789;return(0x0,_0x593f18[_0x8f8a57(0x10e)])(_0xf8befb[_0x8f8a57(0x173)],{'key':_0x1339a0,..._0x294699(_0xf8befb,_0x3ed0df,_0x1bf427),..._0x38ed4a},(_0x1e2142(_0xf8befb,_0x3ed0df)[_0x8f8a57(0x13b)]||[])[_0x8f8a57(0x19d)]((_0x548fda,_0xc5c681)=>_0x11f113(_0x548fda,_0x1339a0+'-'+_0xf8befb['tag']+'-'+_0xc5c681,_0x3ed0df,void 0x0,_0x1bf427)));}function _0x294699(_0x5a7171,_0x185188,_0x2bb4bb){const _0x9d1da5=_0x2c7789;let _0x1bd6f2={..._0x5a7171['attrs']};_0x2bb4bb!=null&&_0x2bb4bb[_0x9d1da5(0xd1)]&&_0x1bd6f2[_0x9d1da5(0x120)]===_0x9d1da5(0xd1)&&(_0x1bd6f2[_0x9d1da5(0x120)]=_0x2bb4bb[_0x9d1da5(0xd1)]),_0x5a7171[_0x9d1da5(0x173)]==='mask'&&_0x1bd6f2['id']&&(_0x1bd6f2['id']+=_0x185188['idSuffix']),Object['entries'](_0x1bd6f2)[_0x9d1da5(0x162)](([_0x135adb,_0x57fa55])=>{const _0x2445e5=_0x9d1da5;_0x135adb==='mask'&&typeof _0x57fa55==_0x2445e5(0x13a)&&(_0x1bd6f2[_0x135adb]=_0x57fa55['replace'](/url\(#(.*)\)/,_0x2445e5(0x181)+_0x185188[_0x2445e5(0x117)]+')'));});let {defIds:_0x46c9a4}=_0x185188;return!_0x46c9a4||_0x46c9a4[_0x9d1da5(0x15d)]===0x0?_0x1bd6f2:(_0x5a7171['tag']===_0x9d1da5(0x101)&&_0x1bd6f2[_0x9d1da5(0xe0)]&&(_0x1bd6f2[_0x9d1da5(0xe0)]+=_0x185188[_0x9d1da5(0x117)]),Object['entries'](_0x1bd6f2)['forEach'](([_0x45dda2,_0x5df297])=>{const _0x31900b=_0x9d1da5;typeof _0x5df297==_0x31900b(0x13a)&&(_0x1bd6f2[_0x45dda2]=_0x5df297[_0x31900b(0xc6)](/url\(#(.*)\)/,_0x31900b(0x181)+_0x185188[_0x31900b(0x117)]+')'));}),_0x1bd6f2);}function _0x1e2142(_0x355a72,_0x3e8c7e){const _0x403e7f=_0x2c7789;var _0x449408;let {defIds:_0x52a64f}=_0x3e8c7e;return!_0x52a64f||_0x52a64f[_0x403e7f(0x15d)]===0x0?_0x355a72:_0x355a72[_0x403e7f(0x173)]===_0x403e7f(0x186)&&(_0x449408=_0x355a72[_0x403e7f(0x13b)])!=null&&_0x449408[_0x403e7f(0x15d)]?{..._0x355a72,'children':_0x355a72[_0x403e7f(0x13b)][_0x403e7f(0x19d)](_0x435e92=>typeof _0x435e92[_0x403e7f(0x179)]['id']=='string'&&_0x52a64f&&_0x52a64f[_0x403e7f(0x11f)](_0x435e92[_0x403e7f(0x179)]['id'])?{..._0x435e92,'attrs':{..._0x435e92[_0x403e7f(0x179)],'id':_0x435e92[_0x403e7f(0x179)]['id']+_0x3e8c7e[_0x403e7f(0x117)]}}:_0x435e92)}:_0x355a72;}function _0x21abf2(){const _0x40438e=_0x2c7789;return Math[_0x40438e(0xcf)]()['toString'](0x24)['substring'](0x2,0x8);}_0x20059d[_0x2c7789(0x13f)]=_0x2c7789(0x18b);let _0x5820e7={'tag':'svg','attrs':{'xmlns':_0x2c7789(0xd2),'fill':_0x2c7789(0x193),'viewBox':_0x2c7789(0xec),'width':_0x2c7789(0x137),'height':_0x2c7789(0x137)},'children':[{'tag':_0x2c7789(0x119),'attrs':{'fill':_0x2c7789(0x13e),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x2c7789(0x119),'attrs':{'fill':_0x2c7789(0x13e),'d':_0x2c7789(0x195),'fillRule':_0x2c7789(0xc7),'clipRule':'evenodd'}}]},_0x53670f=(0x0,_0x593f18[_0x2c7789(0x177)])(function(_0x6bd159,_0x56c943){const _0x4c15d9=_0x2c7789;return(0x0,_0x593f18['createElement'])(_0x20059d,Object[_0x4c15d9(0x100)]({},_0x6bd159,{'id':_0x4c15d9(0x152),'ref':_0x56c943,'icon':_0x5820e7}));});_0x53670f[_0x2c7789(0x13f)]='LiveShareIcon';function _0x345678(_0x4d1d50){'@babel/helpers - typeof';const _0xbcd8e2=_0x2c7789;return _0x345678=typeof Symbol==_0xbcd8e2(0x13c)&&typeof Symbol[_0xbcd8e2(0xdf)]==_0xbcd8e2(0xc3)?function(_0x180fe6){return typeof _0x180fe6;}:function(_0xd0cddd){const _0xfada8b=_0xbcd8e2;return _0xd0cddd&&typeof Symbol==_0xfada8b(0x13c)&&_0xd0cddd[_0xfada8b(0xb7)]===Symbol&&_0xd0cddd!==Symbol[_0xfada8b(0x16d)]?'symbol':typeof _0xd0cddd;},_0x345678(_0x4d1d50);}function _0x2f567e(_0x51d434,_0x25b323){const _0x492cf7=_0x2c7789;if(_0x345678(_0x51d434)!='object'||!_0x51d434)return _0x51d434;var _0x16b369=_0x51d434[Symbol[_0x492cf7(0x11a)]];if(_0x16b369!==void 0x0){var _0x38c5c9=_0x16b369[_0x492cf7(0xca)](_0x51d434,_0x25b323||_0x492cf7(0xe9));if(_0x345678(_0x38c5c9)!=_0x492cf7(0x199))return _0x38c5c9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x25b323===_0x492cf7(0x13a)?String:Number)(_0x51d434);}function _0x28ec2a(_0x4131ad){var _0x1f1463=_0x2f567e(_0x4131ad,'string');return _0x345678(_0x1f1463)=='symbol'?_0x1f1463:_0x1f1463+'';}function _0x8568ce(_0x1bb26b,_0x5b4d9d,_0x1f04dc){const _0xc41b97=_0x2c7789;return(_0x5b4d9d=_0x28ec2a(_0x5b4d9d))in _0x1bb26b?Object[_0xc41b97(0xee)](_0x1bb26b,_0x5b4d9d,{'value':_0x1f04dc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1bb26b[_0x5b4d9d]=_0x1f04dc,_0x1bb26b;}var _0x132840=class extends _0x35c157[_0x2c7789(0x149)]{constructor(..._0x4b4138){const _0x5caa39=_0x2c7789;super(..._0x4b4138),_0x8568ce(this,_0x5caa39(0xb3),new Set()),_0x8568ce(this,'_reporters',new Set());}['registerSharedOperation'](_0x498f72){const _0x5e39d2=_0x2c7789;return this[_0x5e39d2(0xb3)][_0x5e39d2(0x169)](_0x498f72),(0x0,_0x35c157['toDisposable'])(()=>this[_0x5e39d2(0xb3)][_0x5e39d2(0xfc)](_0x498f72));}['registerInitialStateReporter'](_0x37d344){const _0x5c6aad=_0x2c7789;return this['_reporters']['add'](_0x37d344),(0x0,_0x35c157[_0x5c6aad(0x14f)])(()=>this[_0x5c6aad(0x12d)][_0x5c6aad(0xfc)](_0x37d344));}[_0x2c7789(0xfd)](_0x2ffb43){const _0x4d9a26=_0x2c7789;return this[_0x4d9a26(0xb3)][_0x4d9a26(0x15c)](_0x2ffb43);}['getInitialStates'](_0x5b81ae){const _0x107a14=_0x2c7789;return Array[_0x107a14(0x15f)](this[_0x107a14(0x12d)])[_0x107a14(0x19d)](_0x10c590=>_0x10c590(_0x5b81ae));}};function _0x765e84(_0x33e50,_0x2d6ba1){return function(_0x534548,_0x21b554){_0x2d6ba1(_0x534548,_0x21b554,_0x33e50);};}function _0x2594f4(_0x38f320,_0x44dc6a,_0x51ed59,_0x3b7190){const _0x5addeb=_0x2c7789;var _0x1774db=arguments[_0x5addeb(0x15d)],_0x5688fe=_0x1774db<0x3?_0x44dc6a:_0x3b7190===null?_0x3b7190=Object[_0x5addeb(0x153)](_0x44dc6a,_0x51ed59):_0x3b7190,_0x58279e;if(typeof Reflect=='object'&&typeof Reflect[_0x5addeb(0x132)]==_0x5addeb(0x13c))_0x5688fe=Reflect['decorate'](_0x38f320,_0x44dc6a,_0x51ed59,_0x3b7190);else{for(var _0x3dbcb7=_0x38f320[_0x5addeb(0x15d)]-0x1;_0x3dbcb7>=0x0;_0x3dbcb7--)(_0x58279e=_0x38f320[_0x3dbcb7])&&(_0x5688fe=(_0x1774db<0x3?_0x58279e(_0x5688fe):_0x1774db>0x3?_0x58279e(_0x44dc6a,_0x51ed59,_0x5688fe):_0x58279e(_0x44dc6a,_0x51ed59))||_0x5688fe);}return _0x1774db>0x3&&_0x5688fe&&Object[_0x5addeb(0xee)](_0x44dc6a,_0x51ed59,_0x5688fe),_0x5688fe;}let _0x52d854=class extends _0x35c157['RxDisposable']{constructor(_0x414eda,_0x304150,_0x559321){const _0x4bfbe2=_0x2c7789;super(),this['_univerInstanceService']=_0x414eda,this[_0x4bfbe2(0xbb)]=_0x304150,this[_0x4bfbe2(0x12a)]=_0x559321,_0x8568ce(this,_0x4bfbe2(0xd0),new Map()),this[_0x4bfbe2(0xd4)]();}async[_0x2c7789(0x12b)](_0x277ee1){const _0x155134=_0x2c7789;return this[_0x155134(0xd0)][_0x155134(0x15c)](_0x277ee1)||await this[_0x155134(0x176)](_0x277ee1),this[_0x155134(0xd0)][_0x155134(0xc0)](_0x277ee1);}[_0x2c7789(0xcc)](_0x359483){const _0xe02993=_0x2c7789;var _0x4c3eee;return(_0x4c3eee=this[_0xe02993(0xd0)]['get'](_0x359483))==null?null:_0x4c3eee;}[_0x2c7789(0xd4)](){const _0x3d9ed5=_0x2c7789;this[_0x3d9ed5(0xc4)][_0x3d9ed5(0x140)](_0x35c157[_0x3d9ed5(0xb2)]['UNIVER_SHEET'])[_0x3d9ed5(0xd5)]((0x0,_0x4992c9[_0x3d9ed5(0x178)])(this[_0x3d9ed5(0x145)]))[_0x3d9ed5(0x148)](async _0xfee281=>{const _0x484c5c=_0x3d9ed5;let _0x4b9358=_0xfee281[_0x484c5c(0x135)]();this['_entities'][_0x484c5c(0x15c)](_0x4b9358)||this[_0x484c5c(0x176)](_0x4b9358);}),this[_0x3d9ed5(0xc4)]['getTypeOfUnitDisposed$'](_0x35c157['UniverInstanceType'][_0x3d9ed5(0xe6)])['pipe']((0x0,_0x4992c9[_0x3d9ed5(0x178)])(this[_0x3d9ed5(0x145)]))['subscribe'](_0x4d2451=>{const _0x3af2d9=_0x3d9ed5;let _0x56cc1d=_0x4d2451[_0x3af2d9(0x135)](),_0x4812dd=this[_0x3af2d9(0xd0)][_0x3af2d9(0xc0)](_0x56cc1d);_0x4812dd==null||_0x4812dd[_0x3af2d9(0x185)]();});}async[_0x2c7789(0x176)](_0x3db9fe){const _0x21f040=_0x2c7789;let _0x1742fe=await this[_0x21f040(0x12a)][_0x21f040(0x11d)](_0x3db9fe),_0x137116=this[_0x21f040(0xbb)][_0x21f040(0x191)](_0xc6cade,_0x3db9fe,_0x1742fe);return _0x137116[_0x21f040(0xdb)](),this[_0x21f040(0xd0)]['set'](_0x3db9fe,_0x137116),_0x137116;}};_0x52d854=_0x2594f4([_0x765e84(0x0,_0x35c157[_0x2c7789(0x130)]),_0x765e84(0x1,(0x0,_0x35c157[_0x2c7789(0x17e)])(_0x35c157[_0x2c7789(0x110)])),_0x765e84(0x2,(0x0,_0x35c157['Inject'])(_0x5742c5[_0x2c7789(0x128)]))],_0x52d854);let _0x5917eb=function(_0x9db625){const _0x3d7cce=_0x2c7789;return _0x9db625[_0x3d7cce(0x10b)]=_0x3d7cce(0x188),_0x9db625[_0x3d7cce(0x175)]='idle',_0x9db625[_0x3d7cce(0x109)]=_0x3d7cce(0xbd),_0x9db625[_0x3d7cce(0x19b)]='not-following',_0x9db625[_0x3d7cce(0x17d)]=_0x3d7cce(0x10c),_0x9db625;}({}),_0xc6cade=class extends _0x35c157[_0x2c7789(0x1a1)]{get[_0x2c7789(0xbf)](){const _0x3645b8=_0x2c7789;return this[_0x3645b8(0x165)][_0x3645b8(0x1a0)]();}constructor(_0x4bd42a,_0x5a67dc,_0x1d5f35,_0x16a26c,_0x4da0cc){const _0x78e445=_0x2c7789;super(),this[_0x78e445(0xfa)]=_0x4bd42a,this[_0x78e445(0x102)]=_0x5a67dc,this[_0x78e445(0xd6)]=_0x1d5f35,this[_0x78e445(0x180)]=_0x16a26c,this[_0x78e445(0x194)]=_0x4da0cc,_0x8568ce(this,'_status$',new _0x4c7a85['BehaviorSubject'](_0x5917eb[_0x78e445(0x175)])),_0x8568ce(this,'status$',this['_status$']['asObservable']()),_0x8568ce(this,_0x78e445(0xd4),!0x1),_0x8568ce(this,'_commandDisposable',null),_0x8568ce(this,_0x78e445(0xed),null);}[_0x2c7789(0x185)](){const _0x4f29d3=_0x2c7789;var _0x448300;(_0x448300=this[_0x4f29d3(0xde)])==null||_0x448300[_0x4f29d3(0x185)](),this[_0x4f29d3(0x165)][_0x4f29d3(0xfb)](_0x5917eb[_0x4f29d3(0x175)]),this[_0x4f29d3(0x165)][_0x4f29d3(0x105)]();}[_0x2c7789(0x104)](){const _0x5b5462=_0x2c7789;return this[_0x5b5462(0xbf)];}['init'](){const _0x9ddacf=_0x2c7789;this['_init']||(this[_0x9ddacf(0xd4)]=!0x0,this[_0x9ddacf(0x102)][_0x9ddacf(0x18c)][_0x9ddacf(0xd5)]((0x0,_0x4992c9[_0x9ddacf(0x178)])(this[_0x9ddacf(0x145)]))[_0x9ddacf(0x148)](_0x377563=>{const _0x4dd009=_0x9ddacf;switch(_0x377563){case _0x5742c5['SessionStatus']['OFFLINE']:this[_0x4dd009(0x161)]();break;case _0x5742c5['SessionStatus']['ONLINE']:this[_0x4dd009(0x157)]();break;default:}}),this['_collabSession']['event$'][_0x9ddacf(0xd5)]((0x0,_0x4992c9[_0x9ddacf(0x178)])(this[_0x9ddacf(0x145)]))[_0x9ddacf(0x148)](_0xbb7b01=>{const _0x1e5019=_0x9ddacf;let {eventID:_0x43c815}=_0xbb7b01;switch(_0x43c815){case _0x1cb6ce[_0x1e5019(0x124)][_0x1e5019(0x126)]:this[_0x1e5019(0x192)](_0xbb7b01);break;case _0x1cb6ce[_0x1e5019(0x124)][_0x1e5019(0xc9)]:this[_0x1e5019(0x190)](_0xbb7b01);break;case _0x1cb6ce[_0x1e5019(0x124)][_0x1e5019(0x18e)]:this[_0x1e5019(0xe8)]();break;case _0x1cb6ce['CollaborationEvent'][_0x1e5019(0x159)]:this[_0x1e5019(0xe2)](_0xbb7b01);break;default:}}));}[_0x2c7789(0x10a)](){const _0x11ea9e=_0x2c7789;this[_0x11ea9e(0x102)][_0x11ea9e(0xea)]({'eventID':_0x1cb6ce[_0x11ea9e(0x124)][_0x11ea9e(0xda)],'data':{'unitID':this[_0x11ea9e(0xfa)],'userID':this[_0x11ea9e(0x102)][_0x11ea9e(0x160)]()}},this[_0x11ea9e(0xfa)]);}[_0x2c7789(0x107)](){const _0x42ba93=_0x2c7789;this[_0x42ba93(0xbf)]===_0x5917eb['PRESENTING']&&(this['_status$'][_0x42ba93(0xfb)](_0x5917eb[_0x42ba93(0x175)]),this[_0x42ba93(0x102)]['send']({'eventID':_0x1cb6ce[_0x42ba93(0x124)][_0x42ba93(0x18e)],'data':{'unitID':this[_0x42ba93(0xfa)]}},this[_0x42ba93(0xfa)]));}[_0x2c7789(0x198)](){const _0x3a1711=_0x2c7789;this[_0x3a1711(0xbf)]===_0x5917eb[_0x3a1711(0x19b)]&&(this[_0x3a1711(0x165)][_0x3a1711(0xfb)](_0x5917eb['FOLLOWING']),this['_startFollowing']());}[_0x2c7789(0x121)](){const _0x1d5ca5=_0x2c7789;this['_status']===_0x5917eb[_0x1d5ca5(0x109)]&&this[_0x1d5ca5(0x125)]();}[_0x2c7789(0x192)](_0x59cedf){const _0x1d6bd0=_0x2c7789;let {presenter:_0xabcd7a}=_0x59cedf[_0x1d6bd0(0x187)],_0x341003=this[_0x1d6bd0(0x102)][_0x1d6bd0(0x160)]();this[_0x1d6bd0(0xed)]=_0xabcd7a,_0xabcd7a===_0x341003?(this['_stopFollowing'](),this[_0x1d6bd0(0x11b)]()):this[_0x1d6bd0(0xbf)]!==_0x5917eb[_0x1d6bd0(0x19b)]&&(this['_stopPresenting'](),this[_0x1d6bd0(0xd3)]());}['_fetchOperations'](){const _0x22606b=_0x2c7789;let _0x25c9e3={'eventID':_0x1cb6ce[_0x22606b(0x124)][_0x22606b(0x112)]};this[_0x22606b(0x102)][_0x22606b(0xea)](_0x25c9e3,this[_0x22606b(0xfa)]);}[_0x2c7789(0xe8)](){const _0x22d31e=_0x2c7789;this[_0x22d31e(0xed)]=null,this[_0x22d31e(0xbf)]!==_0x5917eb[_0x22d31e(0x17d)]&&this[_0x22d31e(0x17f)]();}[_0x2c7789(0xe2)](_0x56021b){const _0x10b7b4=_0x2c7789;if(this[_0x10b7b4(0xbf)]===_0x5917eb[_0x10b7b4(0x109)]&&this[_0x10b7b4(0xed)]===_0x56021b[_0x10b7b4(0x187)][_0x10b7b4(0x122)]){let _0x493a22=(0x0,_0x1cb6ce[_0x10b7b4(0x127)])(_0x56021b[_0x10b7b4(0x187)])['mutations'][_0x10b7b4(0x115)]()[_0x10b7b4(0x131)](_0x2827ac=>_0x2827ac['id']===_0x576f29['InsertSheetMutation']['id']);if(_0x493a22){let _0x5e4afa=_0x493a22[_0x10b7b4(0xfe)][_0x10b7b4(0x136)],_0x57802a=_0x493a22['params'][_0x10b7b4(0x16e)]['id'];setTimeout(()=>{const _0x483e82=_0x10b7b4;this['_commandService'][_0x483e82(0x18f)](_0x576f29[_0x483e82(0x171)]['id'],{'unitId':_0x5e4afa,'subUnitId':_0x57802a},{'fromCollab':!0x0});});}}}[_0x2c7789(0x11b)](){const _0x2bc606=_0x2c7789;this[_0x2bc606(0x165)][_0x2bc606(0xfb)](_0x5917eb[_0x2bc606(0x17d)]);let _0x318c00=new Map(),_0x2415dc=this[_0x2bc606(0xde)]=new _0x35c157[(_0x2bc606(0xb4))]();_0x2415dc['add']((0x0,_0x35c157[_0x2bc606(0x14f)])(()=>{const _0x1da394=_0x2bc606;_0x318c00[_0x1da394(0x162)](_0x31d474=>_0x31d474['complete']()),_0x318c00[_0x1da394(0x10d)]();})),_0x2415dc['add'](this['_commandService'][_0x2bc606(0x134)](_0x5ba0b9=>{const _0x1be77=_0x2bc606;if(_0x5ba0b9[_0x1be77(0x167)]!==_0x35c157[_0x1be77(0x133)]['OPERATION']||!this[_0x1be77(0x180)][_0x1be77(0xfd)](_0x5ba0b9['id']))return;let {id:_0xb17f18}=_0x5ba0b9,_0x20172d;if(_0x318c00[_0x1be77(0x15c)](_0xb17f18))_0x20172d=_0x318c00[_0x1be77(0xc0)](_0xb17f18);else{var _0x20cade;_0x20172d=new _0x4c7a85[(_0x1be77(0x147))](),_0x318c00['set'](_0xb17f18,_0x20172d),_0x20172d[_0x1be77(0xd5)]((0x0,_0x4992c9['throttleTime'])((_0x20cade=this[_0x1be77(0xd6)][_0x1be77(0x141)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x20cade,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1be77(0x148)](_0x11c68b=>{const _0x4567ac=_0x1be77;this[_0x4567ac(0x102)][_0x4567ac(0xea)]({'eventID':_0x1cb6ce[_0x4567ac(0x124)][_0x4567ac(0xc9)],'data':{'unitID':this[_0x4567ac(0xfa)],'operations':{[_0x11c68b['id']]:{'id':_0x11c68b['id'],'params':JSON[_0x4567ac(0xe7)](_0x11c68b[_0x4567ac(0xfe)])}}}},this['_unitID']);});}_0x20172d[_0x1be77(0xfb)](_0x5ba0b9);})),this[_0x2bc606(0x180)][_0x2bc606(0x12e)](this['_unitID'])[_0x2bc606(0x162)](_0x2ec3a0=>this['_collabSession']['send']({'eventID':_0x1cb6ce[_0x2bc606(0x124)][_0x2bc606(0xc9)],'data':{'unitID':this['_unitID'],'operations':{[_0x2ec3a0['id']]:{'id':_0x2ec3a0['id'],'params':JSON['stringify'](_0x2ec3a0[_0x2bc606(0xfe)])}}}},this[_0x2bc606(0xfa)]));}[_0x2c7789(0xcd)](){const _0x4d496a=_0x2c7789;var _0x4d4e84;this['_status$'][_0x4d496a(0xfb)](_0x5917eb['IDLE']),(_0x4d4e84=this[_0x4d496a(0xde)])==null||_0x4d4e84[_0x4d496a(0x185)](),this[_0x4d496a(0xde)]=null;}[_0x2c7789(0xd3)](){const _0x572f4a=_0x2c7789;var _0x417683;(_0x417683=this['_commandDisposable'])==null||_0x417683[_0x572f4a(0x185)](),this[_0x572f4a(0x165)][_0x572f4a(0xfb)](_0x5917eb[_0x572f4a(0x109)]);}[_0x2c7789(0x17f)](){const _0x50e9bb=_0x2c7789;var _0x5d91ca;this['_status$'][_0x50e9bb(0xfb)](_0x5917eb[_0x50e9bb(0x175)]),(_0x5d91ca=this['_commandDisposable'])==null||_0x5d91ca[_0x50e9bb(0x185)](),this[_0x50e9bb(0xde)]=null;}['_stopFollowing'](){const _0x124e44=_0x2c7789;var _0x5eb7d5;this[_0x124e44(0x165)][_0x124e44(0xfb)](_0x5917eb['NOT_FOLLOWING']),(_0x5eb7d5=this[_0x124e44(0xde)])==null||_0x5eb7d5[_0x124e44(0x185)]();}[_0x2c7789(0x190)](_0x4d81e1){const _0x38c13e=_0x2c7789;if([_0x5917eb[_0x38c13e(0x17d)],_0x5917eb[_0x38c13e(0x19b)],_0x5917eb['OFFLINE']]['includes'](this['_status'])||!_0x4d81e1['data'][_0x38c13e(0xf0)]||_0x4d81e1[_0x38c13e(0x187)]['presenter']===this[_0x38c13e(0x102)][_0x38c13e(0x160)]())return;this[_0x38c13e(0xbf)]===_0x5917eb[_0x38c13e(0x175)]&&this[_0x38c13e(0xd3)]();let _0x4d8bd5=_0x4d81e1[_0x38c13e(0x187)][_0x38c13e(0xce)];Object[_0x38c13e(0x183)](_0x4d8bd5)[_0x38c13e(0x162)](_0x4bb87a=>{const _0xa7e043=_0x38c13e;this[_0xa7e043(0x194)]['executeCommand'](_0x4bb87a['id'],_0x4bb87a['params']?JSON[_0xa7e043(0x154)](_0x4bb87a[_0xa7e043(0xfe)]):null,{'fromCollab':!0x0});});}[_0x2c7789(0x161)](){const _0x359a46=_0x2c7789;var _0x2f089d;this['_status$']['next'](_0x5917eb[_0x359a46(0x10b)]),(_0x2f089d=this['_commandDisposable'])==null||_0x2f089d['dispose']();}['_handleOnline'](){const _0x408d33=_0x2c7789;this['_status$'][_0x408d33(0xfb)](_0x5917eb[_0x408d33(0x175)]),this['_fetchOperations']();}};_0xc6cade=_0x2594f4([_0x765e84(0x2,_0x35c157[_0x2c7789(0x106)]),_0x765e84(0x3,(0x0,_0x35c157[_0x2c7789(0x17e)])(_0x132840)),_0x765e84(0x4,_0x35c157[_0x2c7789(0x129)])],_0xc6cade);function _0x3255fd(){const _0x35aa8f=_0x2c7789;let _0x4e5b8b=(0x0,_0x48ec07['useDependency'])(_0x52d854),_0x507702=(0x0,_0x48ec07[_0x35aa8f(0xbe)])(_0x35c157[_0x35aa8f(0x130)]),_0x1f3670=(0x0,_0x48ec07[_0x35aa8f(0x18a)])(()=>_0x507702['getCurrentTypeOfUnit$'](_0x35c157[_0x35aa8f(0xb2)][_0x35aa8f(0xe6)]),void 0x0,!0x1,[]),[_0x147775,_0x62dceb]=(0x0,_0x593f18[_0x35aa8f(0xe4)])(null),[_0x855afc,_0x2da85e]=(0x0,_0x593f18[_0x35aa8f(0xe4)])(_0x5917eb['IDLE']),_0x1d84ad=(0x0,_0x593f18[_0x35aa8f(0x108)])(null);return(0x0,_0x593f18[_0x35aa8f(0xf8)])(()=>(_0x1f3670&&_0x4e5b8b[_0x35aa8f(0x12b)](_0x1f3670[_0x35aa8f(0x135)]())['then'](_0x3e62fc=>{const _0x43bf72=_0x35aa8f;_0x62dceb(_0x3e62fc),_0x1d84ad[_0x43bf72(0x17a)]=_0x3e62fc['status$']['subscribe'](_0x4e08ba=>{_0x2da85e(_0x4e08ba);});}),()=>{const _0x2990c5=_0x35aa8f;var _0x43bbae;(_0x43bbae=_0x1d84ad[_0x2990c5(0x17a)])==null||_0x43bbae[_0x2990c5(0x15e)](),_0x1d84ad[_0x2990c5(0x17a)]=null;}),[_0x1f3670,_0x4e5b8b]),_0x147775?(0x0,_0x48268c[_0x35aa8f(0x164)])(_0x133c3f['Dropdown'],{'align':_0x35aa8f(0x196),'disabled':_0x855afc===_0x5917eb[_0x35aa8f(0x10b)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':(0x0,_0x48268c[_0x35aa8f(0x164)])(_0x5e47d8,{'status':_0x855afc,'coordinator':_0x147775}),'children':(0x0,_0x48268c[_0x35aa8f(0x164)])(_0x35aa8f(0x143),{'className':(0x0,_0x133c3f[_0x35aa8f(0xc1)])(_0x35aa8f(0x19e),{'univer-cursor-not-allowed':_0x855afc===_0x5917eb[_0x35aa8f(0x10b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x855afc!==_0x5917eb[_0x35aa8f(0x10b)]}),'type':_0x35aa8f(0x143),'children':(0x0,_0x48268c['jsx'])(_0x53670f,{'className':'univer-size-4'})})}):null;}function _0x5e47d8(_0x3f7c73){const _0x587776=_0x2c7789;let {status:_0xbaee2b,coordinator:_0x972d72}=_0x3f7c73;switch(_0xbaee2b){case _0x5917eb['IDLE']:return(0x0,_0x48268c[_0x587776(0x164)])(_0x487ceb,{'coordinator':_0x972d72});case _0x5917eb[_0x587776(0x109)]:return(0x0,_0x48268c[_0x587776(0x164)])(_0x46a6f2,{'coordinator':_0x972d72});case _0x5917eb[_0x587776(0x19b)]:return(0x0,_0x48268c[_0x587776(0x164)])(_0x50f88b,{'coordinator':_0x972d72});case _0x5917eb[_0x587776(0x10b)]:return(0x0,_0x48268c['jsx'])(_0x115edf,{});case _0x5917eb['PRESENTING']:return(0x0,_0x48268c[_0x587776(0x164)])(_0xde1c7d,{'coordinator':_0x972d72});default:return null;}}function _0x487ceb(_0x2798b3){const _0x13410b=_0x2c7789;let {coordinator:_0x32bf9f}=_0x2798b3;return(0x0,_0x48268c[_0x13410b(0xff)])(_0x48268c[_0x13410b(0x111)],{'children':[(0x0,_0x48268c[_0x13410b(0x164)])('div',{'className':_0x13410b(0xf2),'children':_0x13410b(0x168)}),(0x0,_0x48268c[_0x13410b(0x164)])(_0x133c3f[_0x13410b(0x14e)],{'onClick':()=>_0x32bf9f[_0x13410b(0x10a)](),'children':'Start'})]});}function _0x46a6f2(_0x3c02fe){const _0x580e45=_0x2c7789;let {coordinator:_0x1d0f92}=_0x3c02fe;return(0x0,_0x48268c[_0x580e45(0xff)])(_0x48268c[_0x580e45(0x111)],{'children':[(0x0,_0x48268c[_0x580e45(0x164)])(_0x580e45(0x138),{'className':_0x580e45(0xf2),'children':_0x580e45(0x182)}),(0x0,_0x48268c[_0x580e45(0x164)])(_0x133c3f[_0x580e45(0x14e)],{'onClick':()=>_0x1d0f92[_0x580e45(0x121)](),'children':_0x580e45(0x14b)})]});}function _0x50f88b(_0x23de5d){const _0x551d94=_0x2c7789;let {coordinator:_0x5c8355}=_0x23de5d;return(0x0,_0x48268c['jsxs'])(_0x48268c[_0x551d94(0x111)],{'children':[(0x0,_0x48268c[_0x551d94(0x164)])(_0x551d94(0x138),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,_0x48268c[_0x551d94(0x164)])(_0x133c3f[_0x551d94(0x14e)],{'variant':_0x551d94(0xcb),'onClick':()=>_0x5c8355[_0x551d94(0x198)](),'children':_0x551d94(0x113)})]});}function _0xde1c7d(_0x3ec386){const _0x40da76=_0x2c7789;let {coordinator:_0x3c28bb}=_0x3ec386;return(0x0,_0x48268c[_0x40da76(0xff)])(_0x48268c[_0x40da76(0x111)],{'children':[(0x0,_0x48268c[_0x40da76(0x164)])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x40da76(0x174)}),(0x0,_0x48268c[_0x40da76(0x164)])(_0x133c3f['Button'],{'variant':'default','onClick':()=>_0x3c28bb[_0x40da76(0x107)](),'children':_0x40da76(0x172)})]});}function _0x115edf(){const _0x1205d4=_0x2c7789;return(0x0,_0x48268c[_0x1205d4(0x164)])(_0x48268c[_0x1205d4(0x111)],{'children':_0x1205d4(0x163)});}let _0x5778fd=class extends _0x35c157[_0x2c7789(0x149)]{constructor(_0x17b380,_0x5d1baa){const _0x544fe2=_0x2c7789;super(),this[_0x544fe2(0xbb)]=_0x17b380,this[_0x544fe2(0x19a)]=_0x5d1baa,this[_0x544fe2(0x14d)]();}[_0x2c7789(0x14d)](){const _0x481d99=_0x2c7789;this[_0x481d99(0xc2)](this[_0x481d99(0x19a)][_0x481d99(0xf3)](_0x48ec07[_0x481d99(0x14c)][_0x481d99(0xf6)],()=>(0x0,_0x48ec07['connectInjector'])(_0x3255fd,this['_injector'])));}};_0x5778fd=_0x2594f4([_0x765e84(0x0,(0x0,_0x35c157[_0x2c7789(0x17e)])(_0x35c157[_0x2c7789(0x110)])),_0x765e84(0x1,_0x48ec07['IUIPartsService'])],_0x5778fd);var _0x43dd2b=_0x2c7789(0x197),_0x128d2d='0.19.0';let _0x45c1c6=_0x2c7789(0x114);Symbol(_0x45c1c6);let _0x59fdd5={},_0xa21941=class extends _0x35c157[_0x2c7789(0x149)]{constructor(_0x24ef1e){const _0x2b6e27=_0x2c7789;super(),this['_liveShareService']=_0x24ef1e,this[_0x2b6e27(0xd4)]();}[_0x2c7789(0xd4)](){const _0xc30788=_0x2c7789;[_0x41f8d2['SetZoomRatioOperation']['id'],_0x41f8d2[_0xc30788(0x155)]['id'],_0x576f29[_0xc30788(0x171)]['id']][_0xc30788(0x162)](_0x225cfa=>{const _0x12e2f1=_0xc30788;this['disposeWithMe'](this['_liveShareService'][_0x12e2f1(0x19c)](_0x225cfa));});}};_0xa21941=_0x2594f4([_0x765e84(0x0,(0x0,_0x35c157['Inject'])(_0x132840))],_0xa21941);let _0x48de36=class extends _0x35c157[_0x2c7789(0x17b)]{constructor(_0x249922=_0x59fdd5,_0x2c355e,_0x37a1f8){const _0x452034=_0x2c7789;super(),this['_config']=_0x249922,this['_injector']=_0x2c355e,this[_0x452034(0xd6)]=_0x37a1f8;let {..._0x27d5f3}=(0x0,_0x35c157[_0x452034(0x18d)])({},_0x59fdd5,this['_config']);this[_0x452034(0xd6)]['setConfig'](_0x45c1c6,_0x27d5f3);}[_0x2c7789(0x15a)](){const _0x119bcd=_0x2c7789;(0x0,_0x35c157[_0x119bcd(0x156)])(this[_0x119bcd(0xbb)],(0x0,_0x35c157['mergeOverrideWithDependencies'])([[_0x132840],[_0x52d854],[_0xa21941],[_0x5778fd]],this['_config'][_0x119bcd(0x17c)])),(0x0,_0x35c157[_0x119bcd(0x15b)])(this[_0x119bcd(0xbb)],[[_0xa21941]]);}['onRendered'](){const _0x481137=_0x2c7789;(0x0,_0x35c157[_0x481137(0x15b)])(this[_0x481137(0xbb)],[[_0x5778fd]]);}};_0x8568ce(_0x48de36,_0x2c7789(0x167),_0x35c157[_0x2c7789(0xb2)][_0x2c7789(0x158)]),_0x8568ce(_0x48de36,'pluginName','UNIVER_LIVE_SHARE_PLUGIN'),_0x8568ce(_0x48de36,_0x2c7789(0xf4),_0x43dd2b),_0x8568ce(_0x48de36,_0x2c7789(0xdc),_0x128d2d),_0x48de36=_0x2594f4([(0x0,_0x35c157[_0x2c7789(0xe5)])(_0x5742c5[_0x2c7789(0xc8)]),_0x765e84(0x1,(0x0,_0x35c157['Inject'])(_0x35c157[_0x2c7789(0x110)])),_0x765e84(0x2,_0x35c157[_0x2c7789(0x106)])],_0x48de36),Object[_0x2c7789(0xee)](_0x2f7e08,'DesktopLiveShareController',{'enumerable':!0x0,'get':function(){return _0x5778fd;}}),_0x2f7e08[_0x2c7789(0x103)]=_0x3255fd,Object[_0x2c7789(0xee)](_0x2f7e08,_0x2c7789(0xb8),{'enumerable':!0x0,'get':function(){return _0x52d854;}}),Object[_0x2c7789(0xee)](_0x2f7e08,_0x2c7789(0xf7),{'enumerable':!0x0,'get':function(){return _0xc6cade;}}),_0x2f7e08[_0x2c7789(0x123)]=_0x132840,_0x2f7e08[_0x2c7789(0x170)]=_0x5917eb,Object['defineProperty'](_0x2f7e08,_0x2c7789(0xbc),{'enumerable':!0x0,'get':function(){return _0x48de36;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,22 +57,22 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.1.1",
|
|
60
|
-
"@univerjs
|
|
61
|
-
"@univerjs
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/ui": "0.
|
|
60
|
+
"@univerjs/core": "0.19.0",
|
|
61
|
+
"@univerjs/design": "0.19.0",
|
|
62
|
+
"@univerjs/sheets": "0.19.0",
|
|
63
|
+
"@univerjs-pro/collaboration": "0.19.0",
|
|
64
|
+
"@univerjs-pro/collaboration-client": "0.19.0",
|
|
65
|
+
"@univerjs/ui": "0.19.0",
|
|
66
|
+
"@univerjs/sheets-ui": "0.19.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"postcss": "^8.5.8",
|
|
70
70
|
"react": "18.3.1",
|
|
71
71
|
"rxjs": "7.8.2",
|
|
72
72
|
"tailwindcss": "^3.4.17",
|
|
73
|
-
"typescript": "^
|
|
74
|
-
"vitest": "^4.1.
|
|
75
|
-
"@univerjs-infra/shared": "0.
|
|
73
|
+
"typescript": "^6.0.2",
|
|
74
|
+
"vitest": "^4.1.1",
|
|
75
|
+
"@univerjs-infra/shared": "0.19.0",
|
|
76
76
|
"@univerjs/protocol": "0.1.48"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|