@univerjs-pro/live-share 0.15.2 → 0.15.3-insiders.20260131-cbd5fac

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5b1611=_0x1318;(function(_0x5dff74,_0x2f4122){const _0x405e1d=_0x1318,_0x13663d=_0x5dff74();while(!![]){try{const _0x3ad1af=-parseInt(_0x405e1d(0x125))/0x1+-parseInt(_0x405e1d(0x117))/0x2*(parseInt(_0x405e1d(0x119))/0x3)+-parseInt(_0x405e1d(0x11f))/0x4+parseInt(_0x405e1d(0x10d))/0x5+-parseInt(_0x405e1d(0x124))/0x6*(parseInt(_0x405e1d(0x10f))/0x7)+-parseInt(_0x405e1d(0x113))/0x8+parseInt(_0x405e1d(0x126))/0x9*(parseInt(_0x405e1d(0x110))/0xa);if(_0x3ad1af===_0x2f4122)break;else _0x13663d['push'](_0x13663d['shift']());}catch(_0x5bdf72){_0x13663d['push'](_0x13663d['shift']());}}}(_0x2c93,0xeb32d));function _0x2c93(){const _0x532197=['get','9cWSvFS','LiveShareStatusEnum','startFollowing','FUniver','extend','_initialize','3272732yKvfPt','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_liveShareController','getCurrentUnitOfType','UNIVER_SHEET','186lEcLWR','1419831MLEIlU','333711NIhleR','startPresenting','IDLE','_injector','defineProperty','UniverInstanceType','FEnum','stopPresenting','getUnitId','8142470qClkCp','No\x20active\x20workbook\x20found.','389382yKcrHj','1390hRaiAw','IUniverInstanceService','getStatus','14796768yhsuwx','stopFollowing','LiveShareStatus','getLiveShareCoordinatorSync','4724uXiwtk'];_0x2c93=function(){return _0x532197;};return _0x2c93();}var h=Object[_0x5b1611(0x12a)],u=(_0x4f6a8b,_0x58bc57,_0x17cbde)=>_0x58bc57 in _0x4f6a8b?h(_0x4f6a8b,_0x58bc57,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17cbde}):_0x4f6a8b[_0x58bc57]=_0x17cbde,S=(_0x46a933,_0x36d602,_0x6cab97)=>u(_0x46a933,typeof _0x36d602!='symbol'?_0x36d602+'':_0x36d602,_0x6cab97);function _0x1318(_0x2ec545,_0x44037a){_0x2ec545=_0x2ec545-0x10d;const _0x2c9329=_0x2c93();let _0x1318f0=_0x2c9329[_0x2ec545];return _0x1318f0;}const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');class I extends c[_0x5b1611(0x11c)]{constructor(){const _0x3555d4=_0x5b1611;super(...arguments),S(this,_0x3555d4(0x121));}[_0x5b1611(0x11e)](_0x307caa){this['_liveShareController']=_0x307caa['get'](s['LiveShareController']);}['getLiveShareStatus'](){const _0x51cbed=_0x5b1611;var _0x2d1228;const _0x16a7f7=this[_0x51cbed(0x129)][_0x51cbed(0x118)](n[_0x51cbed(0x111)])[_0x51cbed(0x122)](n['UniverInstanceType'][_0x51cbed(0x123)]);if(!_0x16a7f7)throw new Error(_0x51cbed(0x10e));const _0x70930=_0x16a7f7['getUnitId'](),_0x383265=this[_0x51cbed(0x121)]['getLiveShareCoordinatorSync'](_0x70930);return(_0x2d1228=_0x383265==null?void 0x0:_0x383265[_0x51cbed(0x112)]())!=null?_0x2d1228:s[_0x51cbed(0x115)][_0x51cbed(0x128)];}[_0x5b1611(0x11b)](){const _0x3e27e1=_0x5b1611,_0x5b462a=this[_0x3e27e1(0x129)][_0x3e27e1(0x118)](n[_0x3e27e1(0x111)])[_0x3e27e1(0x122)](n[_0x3e27e1(0x12b)][_0x3e27e1(0x123)]);if(!_0x5b462a)throw new Error('No\x20active\x20workbook\x20found.');const _0x5268e1=_0x5b462a[_0x3e27e1(0x12e)](),_0x297d86=this[_0x3e27e1(0x121)]['getLiveShareCoordinatorSync'](_0x5268e1);if(!_0x297d86)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x297d86[_0x3e27e1(0x11b)]();}[_0x5b1611(0x114)](){const _0x42f25c=_0x5b1611,_0x3f006f=this[_0x42f25c(0x129)][_0x42f25c(0x118)](n['IUniverInstanceService'])[_0x42f25c(0x122)](n[_0x42f25c(0x12b)][_0x42f25c(0x123)]);if(!_0x3f006f)throw new Error(_0x42f25c(0x10e));const _0x2fddd8=_0x3f006f[_0x42f25c(0x12e)](),_0xa4a60a=this[_0x42f25c(0x121)]['getLiveShareCoordinatorSync'](_0x2fddd8);if(!_0xa4a60a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xa4a60a['stopFollowing']();}[_0x5b1611(0x127)](){const _0x169e04=_0x5b1611,_0x4da469=this['_injector']['get'](n[_0x169e04(0x111)])['getCurrentUnitOfType'](n[_0x169e04(0x12b)]['UNIVER_SHEET']);if(!_0x4da469)throw new Error(_0x169e04(0x10e));const _0x3eb046=_0x4da469['getUnitId'](),_0x249d2f=this[_0x169e04(0x121)]['getLiveShareCoordinatorSync'](_0x3eb046);if(!_0x249d2f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x249d2f['tryStartPresenting']();}[_0x5b1611(0x12d)](){const _0x1bf207=_0x5b1611,_0x2f122f=this[_0x1bf207(0x129)][_0x1bf207(0x118)](n[_0x1bf207(0x111)])[_0x1bf207(0x122)](n[_0x1bf207(0x12b)][_0x1bf207(0x123)]);if(!_0x2f122f)throw new Error(_0x1bf207(0x10e));const _0x270036=_0x2f122f[_0x1bf207(0x12e)](),_0x488511=this[_0x1bf207(0x121)][_0x1bf207(0x116)](_0x270036);if(!_0x488511)throw new Error(_0x1bf207(0x120));_0x488511[_0x1bf207(0x12d)]();}}c[_0x5b1611(0x11c)][_0x5b1611(0x11d)](I);class l extends c[_0x5b1611(0x12c)]{get[_0x5b1611(0x11a)](){const _0x14b7cb=_0x5b1611;return s[_0x14b7cb(0x115)];}}c[_0x5b1611(0x12c)][_0x5b1611(0x11d)](l);
1
+ 'use strict';const _0x4f3ddf=_0x12bb;function _0x12bb(_0x3d75dc,_0x40b13c){_0x3d75dc=_0x3d75dc-0x161;const _0x3bf3c2=_0x3bf3();let _0x12bbad=_0x3bf3c2[_0x3d75dc];return _0x12bbad;}(function(_0x4a5479,_0x501b8b){const _0x5103d1=_0x12bb,_0x158871=_0x4a5479();while(!![]){try{const _0x1c9dc4=-parseInt(_0x5103d1(0x170))/0x1+-parseInt(_0x5103d1(0x177))/0x2*(-parseInt(_0x5103d1(0x17a))/0x3)+parseInt(_0x5103d1(0x163))/0x4*(-parseInt(_0x5103d1(0x164))/0x5)+parseInt(_0x5103d1(0x16d))/0x6*(parseInt(_0x5103d1(0x173))/0x7)+parseInt(_0x5103d1(0x17d))/0x8*(parseInt(_0x5103d1(0x171))/0x9)+parseInt(_0x5103d1(0x178))/0xa*(parseInt(_0x5103d1(0x17c))/0xb)+-parseInt(_0x5103d1(0x167))/0xc;if(_0x1c9dc4===_0x501b8b)break;else _0x158871['push'](_0x158871['shift']());}catch(_0x505f09){_0x158871['push'](_0x158871['shift']());}}}(_0x3bf3,0xe4e00));function _0x3bf3(){const _0x2fc81f=['2760662sTMwrW','19080AlTYQI','IUniverInstanceService','3bWQGZB','LiveShareController','5291PaEZSV','7427624gVvVvl','extend','stopFollowing','get','getLiveShareCoordinatorSync','UNIVER_SHEET','_liveShareController','20972rGsAfT','10hUeOPR','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','20339988KvVVTw','_injector','startFollowing','LiveShareStatus','getLiveShareStatus','No\x20active\x20workbook\x20found.','647706BjRZcz','stopPresenting','IDLE','1771036GVcetP','9RGzMbc','UniverInstanceType','77aflUcB','FUniver','getCurrentUnitOfType','defineProperty'];_0x3bf3=function(){return _0x2fc81f;};return _0x3bf3();}var h=Object[_0x4f3ddf(0x176)],u=(_0x58e8a3,_0x403681,_0x5992c4)=>_0x403681 in _0x58e8a3?h(_0x58e8a3,_0x403681,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5992c4}):_0x58e8a3[_0x403681]=_0x5992c4,S=(_0x3c4149,_0x134e98,_0x3de478)=>u(_0x3c4149,typeof _0x134e98!='symbol'?_0x134e98+'':_0x134e98,_0x3de478);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');class I extends c[_0x4f3ddf(0x174)]{constructor(){super(...arguments),S(this,'_liveShareController');}['_initialize'](_0x2df78a){const _0x3ae167=_0x4f3ddf;this[_0x3ae167(0x162)]=_0x2df78a[_0x3ae167(0x180)](s[_0x3ae167(0x17b)]);}[_0x4f3ddf(0x16b)](){const _0x4211ff=_0x4f3ddf;var _0x48542c;const _0x47e141=this['_injector']['get'](n['IUniverInstanceService'])[_0x4211ff(0x175)](n['UniverInstanceType'][_0x4211ff(0x161)]);if(!_0x47e141)throw new Error('No\x20active\x20workbook\x20found.');const _0x214ab5=_0x47e141['getUnitId'](),_0x470b53=this[_0x4211ff(0x162)][_0x4211ff(0x181)](_0x214ab5);return(_0x48542c=_0x470b53==null?void 0x0:_0x470b53['getStatus']())!=null?_0x48542c:s['LiveShareStatus'][_0x4211ff(0x16f)];}[_0x4f3ddf(0x169)](){const _0x2e95df=_0x4f3ddf,_0x1eaf87=this['_injector'][_0x2e95df(0x180)](n[_0x2e95df(0x179)])[_0x2e95df(0x175)](n[_0x2e95df(0x172)]['UNIVER_SHEET']);if(!_0x1eaf87)throw new Error(_0x2e95df(0x16c));const _0x131064=_0x1eaf87[_0x2e95df(0x165)](),_0x204f5d=this[_0x2e95df(0x162)]['getLiveShareCoordinatorSync'](_0x131064);if(!_0x204f5d)throw new Error(_0x2e95df(0x166));_0x204f5d[_0x2e95df(0x169)]();}[_0x4f3ddf(0x17f)](){const _0x33a108=_0x4f3ddf,_0xfb9959=this[_0x33a108(0x168)][_0x33a108(0x180)](n['IUniverInstanceService'])[_0x33a108(0x175)](n[_0x33a108(0x172)][_0x33a108(0x161)]);if(!_0xfb9959)throw new Error(_0x33a108(0x16c));const _0x518e42=_0xfb9959[_0x33a108(0x165)](),_0x528adc=this['_liveShareController'][_0x33a108(0x181)](_0x518e42);if(!_0x528adc)throw new Error(_0x33a108(0x166));_0x528adc[_0x33a108(0x17f)]();}['startPresenting'](){const _0x31b74d=_0x4f3ddf,_0x28fccd=this['_injector'][_0x31b74d(0x180)](n[_0x31b74d(0x179)])['getCurrentUnitOfType'](n[_0x31b74d(0x172)]['UNIVER_SHEET']);if(!_0x28fccd)throw new Error(_0x31b74d(0x16c));const _0x2b59e4=_0x28fccd[_0x31b74d(0x165)](),_0x198e49=this[_0x31b74d(0x162)]['getLiveShareCoordinatorSync'](_0x2b59e4);if(!_0x198e49)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x198e49['tryStartPresenting']();}[_0x4f3ddf(0x16e)](){const _0x28ff3b=_0x4f3ddf,_0x255f1b=this[_0x28ff3b(0x168)][_0x28ff3b(0x180)](n[_0x28ff3b(0x179)])[_0x28ff3b(0x175)](n[_0x28ff3b(0x172)][_0x28ff3b(0x161)]);if(!_0x255f1b)throw new Error('No\x20active\x20workbook\x20found.');const _0x40faa3=_0x255f1b['getUnitId'](),_0x3d587e=this[_0x28ff3b(0x162)][_0x28ff3b(0x181)](_0x40faa3);if(!_0x3d587e)throw new Error(_0x28ff3b(0x166));_0x3d587e[_0x28ff3b(0x16e)]();}}c[_0x4f3ddf(0x174)][_0x4f3ddf(0x17e)](I);class l extends c['FEnum']{get['LiveShareStatusEnum'](){const _0x3ba7e=_0x4f3ddf;return s[_0x3ba7e(0x16a)];}}c['FEnum'][_0x4f3ddf(0x17e)](l);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1ab05c=_0x4e70;(function(_0x1a10ee,_0x2b77ba){const _0x16e022=_0x4e70,_0x506c87=_0x1a10ee();while(!![]){try{const _0x4cc09f=parseInt(_0x16e022(0x29d))/0x1+parseInt(_0x16e022(0x22d))/0x2*(-parseInt(_0x16e022(0x209))/0x3)+parseInt(_0x16e022(0x268))/0x4*(parseInt(_0x16e022(0x1c9))/0x5)+-parseInt(_0x16e022(0x28a))/0x6+parseInt(_0x16e022(0x257))/0x7*(parseInt(_0x16e022(0x1e5))/0x8)+-parseInt(_0x16e022(0x1d8))/0x9+-parseInt(_0x16e022(0x247))/0xa;if(_0x4cc09f===_0x2b77ba)break;else _0x506c87['push'](_0x506c87['shift']());}catch(_0x2a6632){_0x506c87['push'](_0x506c87['shift']());}}}(_0x192e,0xc388f));var T=Object[_0x1ab05c(0x1e0)],U=(_0x1b64a0,_0x32b1eb,_0x3ee22c)=>_0x32b1eb in _0x1b64a0?T(_0x1b64a0,_0x32b1eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ee22c}):_0x1b64a0[_0x32b1eb]=_0x3ee22c,_=(_0x3cc056,_0x8a3397,_0x19c4db)=>U(_0x3cc056,typeof _0x8a3397!=_0x1ab05c(0x299)?_0x8a3397+'':_0x8a3397,_0x19c4db);Object[_0x1ab05c(0x1e0)](exports,Symbol[_0x1ab05c(0x22b)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x21827d,..._0x2f7810}){const _0x56ad45=_0x1ab05c,{icon:_0xd1cb38,id:_0x1f3cb4,className:_0x3be271,extend:_0x15368b,..._0x47f6d1}=_0x2f7810,_0x1299fa=(_0x56ad45(0x1f5)+_0x1f3cb4+'\x20'+(_0x3be271||''))[_0x56ad45(0x26f)](),_0x5888d1=v[_0x56ad45(0x22c)]('_'+H());return j(_0xd1cb38,''+_0x1f3cb4,{'defIds':_0xd1cb38[_0x56ad45(0x24d)],'idSuffix':_0x5888d1[_0x56ad45(0x256)]},{'ref':_0x21827d,'className':_0x1299fa,..._0x47f6d1},_0x15368b);}function j(_0x5eb8f4,_0x2a2366,_0x44baaa,_0x5960ff,_0x12fd59){const _0x47d223=_0x1ab05c;return v[_0x47d223(0x27a)](_0x5eb8f4[_0x47d223(0x254)],{'key':_0x2a2366,...y(_0x5eb8f4,_0x44baaa,_0x12fd59),..._0x5960ff},(F(_0x5eb8f4,_0x44baaa)[_0x47d223(0x216)]||[])[_0x47d223(0x229)]((_0x28df94,_0x553abe)=>j(_0x28df94,_0x2a2366+'-'+_0x5eb8f4[_0x47d223(0x254)]+'-'+_0x553abe,_0x44baaa,void 0x0,_0x12fd59)));}function _0x4e70(_0x21553f,_0x5ed994){_0x21553f=_0x21553f-0x1c9;const _0x192ee3=_0x192e();let _0x4e7008=_0x192ee3[_0x21553f];return _0x4e7008;}function y(_0xd6982c,_0x97a082,_0x23092c){const _0x4f8baa=_0x1ab05c,_0x4abf56={..._0xd6982c[_0x4f8baa(0x1dd)]};_0x23092c!=null&&_0x23092c[_0x4f8baa(0x2a1)]&&_0x4abf56[_0x4f8baa(0x218)]==='colorChannel1'&&(_0x4abf56[_0x4f8baa(0x218)]=_0x23092c[_0x4f8baa(0x2a1)]),_0xd6982c['tag']===_0x4f8baa(0x242)&&_0x4abf56['id']&&(_0x4abf56['id']=_0x4abf56['id']+_0x97a082[_0x4f8baa(0x20c)]),Object[_0x4f8baa(0x258)](_0x4abf56)['forEach'](([_0x2ae1ad,_0x4d6869])=>{const _0x454ef8=_0x4f8baa;_0x2ae1ad===_0x454ef8(0x242)&&typeof _0x4d6869==_0x454ef8(0x245)&&(_0x4abf56[_0x2ae1ad]=_0x4d6869[_0x454ef8(0x24e)](/url\(#(.*)\)/,_0x454ef8(0x22e)+_0x97a082[_0x454ef8(0x20c)]+')'));});const {defIds:_0x2a529b}=_0x97a082;return!_0x2a529b||_0x2a529b[_0x4f8baa(0x1e2)]===0x0||(_0xd6982c[_0x4f8baa(0x254)]===_0x4f8baa(0x281)&&_0x4abf56[_0x4f8baa(0x21d)]&&(_0x4abf56['xlink:href']=_0x4abf56[_0x4f8baa(0x21d)]+_0x97a082[_0x4f8baa(0x20c)]),Object[_0x4f8baa(0x258)](_0x4abf56)[_0x4f8baa(0x269)](([_0x3f8a79,_0x18b8b3])=>{const _0x16e8b2=_0x4f8baa;typeof _0x18b8b3==_0x16e8b2(0x245)&&(_0x4abf56[_0x3f8a79]=_0x18b8b3[_0x16e8b2(0x24e)](/url\(#(.*)\)/,'url(#$1'+_0x97a082['idSuffix']+')'));})),_0x4abf56;}function F(_0x10a1a4,_0x7d8b2e){const _0x100355=_0x1ab05c;var _0x35cb70;const {defIds:_0x136f98}=_0x7d8b2e;return!_0x136f98||_0x136f98[_0x100355(0x1e2)]===0x0?_0x10a1a4:_0x10a1a4[_0x100355(0x254)]==='defs'&&((_0x35cb70=_0x10a1a4['children'])!=null&&_0x35cb70['length'])?{..._0x10a1a4,'children':_0x10a1a4['children']['map'](_0x2783eb=>typeof _0x2783eb[_0x100355(0x1dd)]['id']=='string'&&_0x136f98&&_0x136f98[_0x100355(0x206)](_0x2783eb[_0x100355(0x1dd)]['id'])?{..._0x2783eb,'attrs':{..._0x2783eb['attrs'],'id':_0x2783eb['attrs']['id']+_0x7d8b2e[_0x100355(0x20c)]}}:_0x2783eb)}:_0x10a1a4;}function H(){const _0x4b2087=_0x1ab05c;return Math[_0x4b2087(0x24b)]()['toString'](0x24)[_0x4b2087(0x271)](0x2,0x8);}x[_0x1ab05c(0x24f)]=_0x1ab05c(0x21a);const V={'tag':_0x1ab05c(0x296),'attrs':{'xmlns':_0x1ab05c(0x26c),'fill':_0x1ab05c(0x1d9),'viewBox':_0x1ab05c(0x1d4),'width':'1em','height':'1em'},'children':[{'tag':_0x1ab05c(0x2a4),'attrs':{'fill':_0x1ab05c(0x251),'d':_0x1ab05c(0x1f9)}},{'tag':_0x1ab05c(0x2a4),'attrs':{'fill':_0x1ab05c(0x251),'d':_0x1ab05c(0x28b),'fillRule':_0x1ab05c(0x1ea),'clipRule':_0x1ab05c(0x1ea)}}]},R=v[_0x1ab05c(0x29e)](function(_0x3c59ac,_0x37a9ad){const _0x1fb7cf=_0x1ab05c;return v[_0x1fb7cf(0x27a)](x,Object[_0x1fb7cf(0x293)]({},_0x3c59ac,{'id':_0x1fb7cf(0x214),'ref':_0x37a9ad,'icon':V}));});R[_0x1ab05c(0x24f)]=_0x1ab05c(0x2a2);class E extends o[_0x1ab05c(0x243)]{constructor(){const _0x20e1d5=_0x1ab05c;super(...arguments),_(this,_0x20e1d5(0x2a0),new Set()),_(this,_0x20e1d5(0x220),new Set());}[_0x1ab05c(0x292)](_0x1e0a56){const _0x2558dd=_0x1ab05c;return this['_sharedOperations'][_0x2558dd(0x298)](_0x1e0a56),o[_0x2558dd(0x29b)](()=>this[_0x2558dd(0x2a0)][_0x2558dd(0x219)](_0x1e0a56));}[_0x1ab05c(0x280)](_0x4c9ff2){const _0x28b9cf=_0x1ab05c;return this[_0x28b9cf(0x220)][_0x28b9cf(0x298)](_0x4c9ff2),o[_0x28b9cf(0x29b)](()=>this[_0x28b9cf(0x220)][_0x28b9cf(0x219)](_0x4c9ff2));}[_0x1ab05c(0x1e8)](_0x4b9aa5){const _0x5406c5=_0x1ab05c;return this[_0x5406c5(0x2a0)]['has'](_0x4b9aa5);}['getInitialStates'](_0x3f926d){const _0x5340b7=_0x1ab05c;return Array[_0x5340b7(0x22f)](this['_reporters'])[_0x5340b7(0x229)](_0x9c5340=>_0x9c5340(_0x3f926d));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x21a5a9,_0x5253f1,_0x25d907,_0x5ec29a)=>{const _0x15cd5d=_0x1ab05c;for(var _0x4631f1=_0x5ec29a>0x1?void 0x0:_0x5ec29a?M(_0x5253f1,_0x25d907):_0x5253f1,_0x3e96c7=_0x21a5a9[_0x15cd5d(0x1e2)]-0x1,_0x184573;_0x3e96c7>=0x0;_0x3e96c7--)(_0x184573=_0x21a5a9[_0x3e96c7])&&(_0x4631f1=_0x184573(_0x4631f1)||_0x4631f1);return _0x4631f1;},S=(_0x489420,_0x4ceb07)=>(_0x3d4d96,_0x519494)=>_0x4ceb07(_0x3d4d96,_0x519494,_0x489420);exports[_0x1ab05c(0x26d)]=class extends o[_0x1ab05c(0x28c)]{constructor(_0x2afb1,_0x5d8588,_0x504a2a){const _0x5cd6e1=_0x1ab05c;super(),_(this,_0x5cd6e1(0x225),new Map()),(this[_0x5cd6e1(0x230)]=_0x2afb1,this['_injector']=_0x5d8588,this[_0x5cd6e1(0x25f)]=_0x504a2a,this['_init']());}async[_0x1ab05c(0x278)](_0x160ead){const _0x36d6da=_0x1ab05c;return this[_0x36d6da(0x225)][_0x36d6da(0x25e)](_0x160ead)||await this['_startLiveShareCoordinator'](_0x160ead),this[_0x36d6da(0x225)][_0x36d6da(0x28d)](_0x160ead);}[_0x1ab05c(0x201)](_0x58def0){const _0x3d3ade=_0x1ab05c;var _0x536241;return(_0x536241=this[_0x3d3ade(0x225)][_0x3d3ade(0x28d)](_0x58def0))!=null?_0x536241:null;}['_init'](){const _0x311325=_0x1ab05c;this['_univerInstanceService'][_0x311325(0x1e3)](o[_0x311325(0x283)]['UNIVER_SHEET'])['pipe'](I[_0x311325(0x217)](this['dispose$']))[_0x311325(0x205)](async _0x34bcbd=>{const _0x1589cc=_0x311325,_0x4adbb1=_0x34bcbd[_0x1589cc(0x1f2)]();this['_entities'][_0x1589cc(0x25e)](_0x4adbb1)||this[_0x1589cc(0x21e)](_0x4adbb1);}),this[_0x311325(0x230)][_0x311325(0x279)](o[_0x311325(0x283)][_0x311325(0x208)])[_0x311325(0x215)](I['takeUntil'](this['dispose$']))[_0x311325(0x205)](_0x29a9c5=>{const _0x42126f=_0x311325,_0x2bc6d0=_0x29a9c5['getUnitId'](),_0x3225ea=this[_0x42126f(0x225)]['get'](_0x2bc6d0);_0x3225ea==null||_0x3225ea[_0x42126f(0x232)]();});}async[_0x1ab05c(0x21e)](_0x296729){const _0x25f554=_0x1ab05c,_0x32bc36=await this[_0x25f554(0x25f)][_0x25f554(0x1e9)](_0x296729),_0x1bda90=this[_0x25f554(0x222)][_0x25f554(0x28e)](exports[_0x25f554(0x264)],_0x296729,_0x32bc36);return _0x1bda90['init'](),this['_entities'][_0x25f554(0x1ee)](_0x296729,_0x1bda90),_0x1bda90;}},exports[_0x1ab05c(0x26d)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x1ab05c(0x291)](o['Injector'])),S(0x2,o['Inject'](b[_0x1ab05c(0x203)]))],exports[_0x1ab05c(0x26d)]);var u=(_0x183d0d=>(_0x183d0d[_0x1ab05c(0x25d)]='offline',_0x183d0d[_0x1ab05c(0x277)]='idle',_0x183d0d[_0x1ab05c(0x21b)]=_0x1ab05c(0x29a),_0x183d0d[_0x1ab05c(0x263)]=_0x1ab05c(0x231),_0x183d0d[_0x1ab05c(0x1f0)]=_0x1ab05c(0x270),_0x183d0d))(u||{});function _0x192e(){const _0x6d47ef=['OPERATION','4358950GefsjP','UniverLiveSharePlugin','_presenter','getInitialStates','random','live-share.config','defIds','replace','displayName','_startPresenting','currentColor','_liveShareService','tryStartPresenting','tag','getValue','current','2495108czcMCW','entries','end','univer-mb-3\x20univer-w-full\x20univer-text-sm','parseProtocolChangeset','NEW_CHANGESETS','OFFLINE','has','_collabSessionService','type','CollaborationEvent','SetZoomRatioOperation','NOT_FOLLOWING','LiveShareCoordinator','memberID','LIVESHARE_OPERATION','DesktopLiveShareController','16YKVjVA','forEach','UNIVER_LIVE_SHARE_PLUGIN','_init','http://www.w3.org/2000/svg','LiveShareController','DisposableCollection','trim','presenting','substring','stopPresenting','_commandService','mergeOverrideWithDependencies','UNIVER_UNKNOWN','executeCommand','IDLE','getLiveShareCoordinator','getTypeOfUnitDisposed$','createElement','useState','_collabSession','getCurrentTypeOfUnit$','sheet','_handleNewHost','registerInitialStateReporter','use','stopFollowing','UniverInstanceType','Start','_handleNewChangeSets','LIVESHARE_TERMINATE','div','SessionStatus','LiveShareService','665556zOCAaT','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','RxDisposable','get','createInstance','_commandDisposable','unitId','Inject','registerSharedOperation','assign','Present\x20this\x20document','params','svg','_beIdle','add','symbol','following','toDisposable','send','1143897qZAAcH','forwardRef','CommandType','_sharedOperations','colorChannel1','LiveShareIcon','ICommandService','path','958460pUhvRy','then','_handleOnline','setConfig','_handleOperation','SetWorksheetActiveOperation','stringify','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleTerminate','Button','registerComponent','0\x200\x2017\x2017','getMemberID','BuiltInUIPart','_startFollowing','2198277zkbMNI','none','_handleOffline','offline','LiveShareStatus','attrs','Injector','text','defineProperty','SAME_OPERATION_SHARE_INTERVAL','length','getTypeOfUnitAdded$','_fetchOperations','16wDKHjv','Stop\x20following','startFollowing','shouldShareOperation','requireSession','evenodd','Subject','merge','data','set','presenter','PRESENTING','IConfigService','getUnitId','throttleTime','HEADER_MENU','univerjs-icon\x20univerjs-icon-','_configService','Start\x20following','Plugin','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','default','_unitID','jsx','disposeWithMe','useDependency','idle','_mountLiveShare','getLiveShareCoordinatorSync','unsubscribe','CollaborationSessionService','pluginName','subscribe','includes','reverse','UNIVER_SHEET','24PMyVvW','SetScrollOperation','asObservable','idSuffix','univer-size-4','Fragment','touchDependencies','mutations','LiveShare','_stopFollowing','next','live-share-icon','pipe','children','takeUntil','fill','delete','UniverIcon','FOLLOWING','registerDependencies','xlink:href','_startLiveShareCoordinator','_uiPartsService','_reporters','You\x27re\x20following\x20the\x20presenter','_injector','status$','_stopPresenting','_entities','You\x27are\x20offline.','event$','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','map','find','toStringTag','useRef','257892iGUHwl','url(#$1','from','_univerInstanceService','not-following','dispose','getConfig','_status$','useEffect','DependentOn','InsertSheetMutation','UniverCollaborationClientPlugin','_status','dispose$','clear','LIVESHARE_NEW_HOST','complete','_config','IUIPartsService','onCommandExecuted','jsxs','mask','Disposable','button','string'];_0x192e=function(){return _0x6d47ef;};return _0x192e();}const k=_0x1ab05c(0x1e1),q=0xc8;exports[_0x1ab05c(0x264)]=class extends o[_0x1ab05c(0x28c)]{constructor(_0x3cda09,_0x3d8fef,_0x8b5e8a,_0x32ee22,_0x2f56dd){const _0x56b384=_0x1ab05c;super(),_(this,'_status$',new O['BehaviorSubject'](_0x56b384(0x1ff))),_(this,_0x56b384(0x223),this[_0x56b384(0x234)][_0x56b384(0x20b)]()),_(this,_0x56b384(0x26b),!0x1),_(this,_0x56b384(0x28f),null),_(this,_0x56b384(0x249),null),(this[_0x56b384(0x1fb)]=_0x3cda09,this['_collabSession']=_0x3d8fef,this['_configService']=_0x8b5e8a,this[_0x56b384(0x252)]=_0x32ee22,this['_commandService']=_0x2f56dd);}get[_0x1ab05c(0x239)](){const _0x169f82=_0x1ab05c;return this[_0x169f82(0x234)][_0x169f82(0x255)]();}['dispose'](){const _0x2a85b1=_0x1ab05c;var _0x5c2030;(_0x5c2030=this['_commandDisposable'])==null||_0x5c2030[_0x2a85b1(0x232)](),this[_0x2a85b1(0x234)][_0x2a85b1(0x213)](_0x2a85b1(0x1ff)),this[_0x2a85b1(0x234)]['complete']();}['getStatus'](){const _0xd10c5c=_0x1ab05c;return this[_0xd10c5c(0x239)];}['init'](){const _0x1a3baf=_0x1ab05c;this[_0x1a3baf(0x26b)]||(this[_0x1a3baf(0x26b)]=!0x0,this[_0x1a3baf(0x27c)]['sessionStatus$'][_0x1a3baf(0x215)](I[_0x1a3baf(0x217)](this[_0x1a3baf(0x23a)]))[_0x1a3baf(0x205)](_0x194c1a=>{const _0x1626b0=_0x1a3baf;switch(_0x194c1a){case b[_0x1626b0(0x288)][_0x1626b0(0x25d)]:this['_handleOffline']();break;case b[_0x1626b0(0x288)]['ONLINE']:this[_0x1626b0(0x1cb)]();break;}}),this[_0x1a3baf(0x27c)][_0x1a3baf(0x227)][_0x1a3baf(0x215)](I[_0x1a3baf(0x217)](this[_0x1a3baf(0x23a)]))[_0x1a3baf(0x205)](_0x3c6edd=>{const _0x30af54=_0x1a3baf,{eventID:_0x4352a2}=_0x3c6edd;switch(_0x4352a2){case d[_0x30af54(0x261)][_0x30af54(0x23c)]:this['_handleNewHost'](_0x3c6edd);break;case d['CollaborationEvent'][_0x30af54(0x266)]:this['_handleOperation'](_0x3c6edd);break;case d[_0x30af54(0x261)][_0x30af54(0x286)]:this[_0x30af54(0x1d1)]();break;case d['CollaborationEvent'][_0x30af54(0x25c)]:this[_0x30af54(0x285)](_0x3c6edd);break;}}));}[_0x1ab05c(0x253)](){const _0x320aea=_0x1ab05c;this['_collabSession'][_0x320aea(0x29c)]({'eventID':d[_0x320aea(0x261)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x320aea(0x1fb)],'userID':this[_0x320aea(0x27c)][_0x320aea(0x1d5)]()}},this['_unitID']);}[_0x1ab05c(0x272)](){const _0x393ec8=_0x1ab05c;this[_0x393ec8(0x239)]==='presenting'&&(this['_status$']['next'](_0x393ec8(0x1ff)),this['_collabSession'][_0x393ec8(0x29c)]({'eventID':d['CollaborationEvent'][_0x393ec8(0x286)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x1ab05c(0x1e7)](){const _0x3a4232=_0x1ab05c;this[_0x3a4232(0x239)]===_0x3a4232(0x231)&&(this[_0x3a4232(0x234)][_0x3a4232(0x213)]('following'),this[_0x3a4232(0x1d7)]());}[_0x1ab05c(0x282)](){const _0x16b6fa=_0x1ab05c;this['_status']===_0x16b6fa(0x29a)&&this[_0x16b6fa(0x212)]();}[_0x1ab05c(0x27f)](_0x42f898){const _0x4e905e=_0x1ab05c,{presenter:_0x509967}=_0x42f898[_0x4e905e(0x1ed)],_0x4c6b9e=this['_collabSession'][_0x4e905e(0x1d5)]();this[_0x4e905e(0x249)]=_0x509967,_0x509967===_0x4c6b9e?(this[_0x4e905e(0x212)](),this[_0x4e905e(0x250)]()):this['_status']!==_0x4e905e(0x231)&&(this[_0x4e905e(0x224)](),this[_0x4e905e(0x1d7)]());}[_0x1ab05c(0x1e4)](){const _0x12df43=_0x1ab05c,_0x160e30={'eventID':d[_0x12df43(0x261)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x12df43(0x29c)](_0x160e30,this[_0x12df43(0x1fb)]);}[_0x1ab05c(0x1d1)](){const _0x350b75=_0x1ab05c;this[_0x350b75(0x249)]=null,this['_status']!=='presenting'&&this['_beIdle']();}[_0x1ab05c(0x285)](_0x4727a2){const _0x256dac=_0x1ab05c;if(this[_0x256dac(0x239)]===_0x256dac(0x29a)&&this[_0x256dac(0x249)]===_0x4727a2[_0x256dac(0x1ed)][_0x256dac(0x265)]){const _0x38a5dc=d[_0x256dac(0x25b)](_0x4727a2[_0x256dac(0x1ed)])[_0x256dac(0x210)][_0x256dac(0x207)]()[_0x256dac(0x22a)](_0x33e799=>_0x33e799['id']===C[_0x256dac(0x237)]['id']);if(_0x38a5dc){const _0x490f7d=_0x38a5dc['params'][_0x256dac(0x290)],_0x4f5c6e=_0x38a5dc['params'][_0x256dac(0x27e)]['id'];setTimeout(()=>{const _0x561ed4=_0x256dac;this[_0x561ed4(0x273)]['executeCommand'](C[_0x561ed4(0x1ce)]['id'],{'unitId':_0x490f7d,'subUnitId':_0x4f5c6e},{'fromCollab':!0x0});});}}}[_0x1ab05c(0x250)](){const _0x6c87ee=_0x1ab05c;this[_0x6c87ee(0x234)][_0x6c87ee(0x213)](_0x6c87ee(0x270));const _0x326f09=new Map(),_0x5bb1b8=this[_0x6c87ee(0x28f)]=new o[(_0x6c87ee(0x26e))]();_0x5bb1b8[_0x6c87ee(0x298)](o['toDisposable'](()=>{const _0x551494=_0x6c87ee;_0x326f09['forEach'](_0x4ab6ed=>_0x4ab6ed[_0x551494(0x23d)]()),_0x326f09[_0x551494(0x23b)]();})),_0x5bb1b8['add'](this['_commandService'][_0x6c87ee(0x240)](_0x18896d=>{const _0x122e19=_0x6c87ee;var _0x553881;if(_0x18896d['type']!==o[_0x122e19(0x29f)][_0x122e19(0x246)]||!this['_liveShareService'][_0x122e19(0x1e8)](_0x18896d['id']))return;const {id:_0x19a3c2}=_0x18896d;let _0x2d0be2;_0x326f09[_0x122e19(0x25e)](_0x19a3c2)?_0x2d0be2=_0x326f09[_0x122e19(0x28d)](_0x19a3c2):(_0x2d0be2=new O[(_0x122e19(0x1eb))](),_0x326f09[_0x122e19(0x1ee)](_0x19a3c2,_0x2d0be2),_0x2d0be2['pipe'](I[_0x122e19(0x1f3)]((_0x553881=this[_0x122e19(0x1f6)][_0x122e19(0x233)](k))!=null?_0x553881:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x122e19(0x205)](_0x4d563b=>{const _0x59095d=_0x122e19;this[_0x59095d(0x27c)][_0x59095d(0x29c)]({'eventID':d['CollaborationEvent'][_0x59095d(0x266)],'data':{'unitID':this[_0x59095d(0x1fb)],'operations':{[_0x4d563b['id']]:{'id':_0x4d563b['id'],'params':JSON[_0x59095d(0x1cf)](_0x4d563b['params'])}}}},this['_unitID']);})),_0x2d0be2[_0x122e19(0x213)](_0x18896d);})),this[_0x6c87ee(0x252)][_0x6c87ee(0x24a)](this['_unitID'])[_0x6c87ee(0x269)](_0x1e656a=>this[_0x6c87ee(0x27c)][_0x6c87ee(0x29c)]({'eventID':d[_0x6c87ee(0x261)][_0x6c87ee(0x266)],'data':{'unitID':this[_0x6c87ee(0x1fb)],'operations':{[_0x1e656a['id']]:{'id':_0x1e656a['id'],'params':JSON[_0x6c87ee(0x1cf)](_0x1e656a[_0x6c87ee(0x295)])}}}},this[_0x6c87ee(0x1fb)]));}['_stopPresenting'](){const _0x1eadd2=_0x1ab05c;var _0x35eb2c;this[_0x1eadd2(0x234)][_0x1eadd2(0x213)](_0x1eadd2(0x1ff)),(_0x35eb2c=this['_commandDisposable'])==null||_0x35eb2c[_0x1eadd2(0x232)](),this['_commandDisposable']=null;}[_0x1ab05c(0x1d7)](){const _0xc5eda1=_0x1ab05c;var _0x1b8729;(_0x1b8729=this[_0xc5eda1(0x28f)])==null||_0x1b8729[_0xc5eda1(0x232)](),this[_0xc5eda1(0x234)][_0xc5eda1(0x213)](_0xc5eda1(0x29a));}[_0x1ab05c(0x297)](){const _0x1440a8=_0x1ab05c;var _0x17593d;this[_0x1440a8(0x234)][_0x1440a8(0x213)](_0x1440a8(0x1ff)),(_0x17593d=this[_0x1440a8(0x28f)])==null||_0x17593d[_0x1440a8(0x232)](),this[_0x1440a8(0x28f)]=null;}['_stopFollowing'](){const _0x143840=_0x1ab05c;var _0x3c93f2;this['_status$'][_0x143840(0x213)](_0x143840(0x231)),(_0x3c93f2=this['_commandDisposable'])==null||_0x3c93f2[_0x143840(0x232)]();}[_0x1ab05c(0x1cd)](_0x32bd5f){const _0x3d55e7=_0x1ab05c;if([_0x3d55e7(0x270),_0x3d55e7(0x231),'offline'][_0x3d55e7(0x206)](this[_0x3d55e7(0x239)])||!_0x32bd5f[_0x3d55e7(0x1ed)][_0x3d55e7(0x1ef)]||_0x32bd5f['data'][_0x3d55e7(0x1ef)]===this[_0x3d55e7(0x27c)][_0x3d55e7(0x1d5)]())return;this['_status']===_0x3d55e7(0x1ff)&&this[_0x3d55e7(0x1d7)]();const _0x1ba0a5=_0x32bd5f[_0x3d55e7(0x1ed)]['operations'];Object['values'](_0x1ba0a5)['forEach'](_0x285cac=>{const _0x1e063d=_0x3d55e7;this[_0x1e063d(0x273)][_0x1e063d(0x276)](_0x285cac['id'],_0x285cac[_0x1e063d(0x295)]?JSON['parse'](_0x285cac[_0x1e063d(0x295)]):null,{'fromCollab':!0x0});});}[_0x1ab05c(0x1da)](){const _0x377f62=_0x1ab05c;var _0x570d76;this[_0x377f62(0x234)][_0x377f62(0x213)](_0x377f62(0x1db)),(_0x570d76=this[_0x377f62(0x28f)])==null||_0x570d76[_0x377f62(0x232)]();}['_handleOnline'](){const _0x486901=_0x1ab05c;this[_0x486901(0x234)][_0x486901(0x213)](_0x486901(0x1ff)),this[_0x486901(0x1e4)]();}},exports[_0x1ab05c(0x264)]=P([S(0x2,o[_0x1ab05c(0x1f1)]),S(0x3,o[_0x1ab05c(0x291)](E)),S(0x4,o[_0x1ab05c(0x2a3)])],exports[_0x1ab05c(0x264)]);function $(){const _0x1be7f6=_0x1ab05c,_0x294d74=p['useDependency'](exports[_0x1be7f6(0x26d)]),_0x9b042b=p[_0x1be7f6(0x1fe)](o['IUniverInstanceService']),_0x3447a2=p['useObservable'](()=>_0x9b042b[_0x1be7f6(0x27d)](o[_0x1be7f6(0x283)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x47f9c7,_0x1b2850]=v['useState'](null),[_0x6f0fe2,_0x35646d]=v[_0x1be7f6(0x27b)](u[_0x1be7f6(0x277)]),_0x4af728=v[_0x1be7f6(0x22c)](null);return v[_0x1be7f6(0x235)](()=>(_0x3447a2&&_0x294d74[_0x1be7f6(0x278)](_0x3447a2['getUnitId']())[_0x1be7f6(0x1ca)](_0x43991d=>{const _0x3e183c=_0x1be7f6;_0x1b2850(_0x43991d),_0x4af728[_0x3e183c(0x256)]=_0x43991d[_0x3e183c(0x223)][_0x3e183c(0x205)](_0x58d0f9=>{_0x35646d(_0x58d0f9);});}),()=>{const _0x1c8a77=_0x1be7f6;var _0x3f113c;(_0x3f113c=_0x4af728['current'])==null||_0x3f113c[_0x1c8a77(0x202)](),_0x4af728[_0x1c8a77(0x256)]=null;}),[_0x3447a2,_0x294d74]),_0x47f9c7?l['jsx'](f['Dropdown'],{'align':_0x1be7f6(0x259),'disabled':_0x6f0fe2===u[_0x1be7f6(0x25d)],'className':_0x1be7f6(0x228),'overlay':l[_0x1be7f6(0x1fc)](W,{'status':_0x6f0fe2,'coordinator':_0x47f9c7}),'children':l['jsx']('button',{'className':f['clsx'](_0x1be7f6(0x1d0),{'univer-cursor-not-allowed':_0x6f0fe2===u[_0x1be7f6(0x25d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x6f0fe2!==u[_0x1be7f6(0x25d)]}),'type':_0x1be7f6(0x244),'children':l[_0x1be7f6(0x1fc)](R,{'className':_0x1be7f6(0x20d)})})}):null;}function W(_0x45efe3){const _0x2ed257=_0x1ab05c,{status:_0x404974,coordinator:_0x2f24a9}=_0x45efe3;switch(_0x404974){case u[_0x2ed257(0x277)]:return l['jsx'](G,{'coordinator':_0x2f24a9});case u['FOLLOWING']:return l['jsx'](B,{'coordinator':_0x2f24a9});case u[_0x2ed257(0x263)]:return l[_0x2ed257(0x1fc)](Y,{'coordinator':_0x2f24a9});case u[_0x2ed257(0x25d)]:return l['jsx'](J,{});case u['PRESENTING']:return l[_0x2ed257(0x1fc)](Z,{'coordinator':_0x2f24a9});default:return null;}}function G(_0xf0e3da){const _0x467d32=_0x1ab05c,{coordinator:_0x48802c}=_0xf0e3da;return l['jsxs'](l[_0x467d32(0x20e)],{'children':[l[_0x467d32(0x1fc)](_0x467d32(0x287),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x467d32(0x294)}),l[_0x467d32(0x1fc)](f[_0x467d32(0x1d2)],{'onClick':()=>_0x48802c['tryStartPresenting'](),'children':_0x467d32(0x284)})]});}function B(_0x2f317d){const _0x8b40e9=_0x1ab05c,{coordinator:_0x314b61}=_0x2f317d;return l[_0x8b40e9(0x241)](l['Fragment'],{'children':[l['jsx'](_0x8b40e9(0x287),{'className':_0x8b40e9(0x25a),'children':_0x8b40e9(0x221)}),l['jsx'](f['Button'],{'onClick':()=>_0x314b61['stopFollowing'](),'children':_0x8b40e9(0x1e6)})]});}function Y(_0x5e3883){const _0x253973=_0x1ab05c,{coordinator:_0x597ad9}=_0x5e3883;return l[_0x253973(0x241)](l['Fragment'],{'children':[l['jsx']('div',{'className':_0x253973(0x25a),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x253973(0x1fc)](f[_0x253973(0x1d2)],{'variant':_0x253973(0x1df),'onClick':()=>_0x597ad9[_0x253973(0x1e7)](),'children':_0x253973(0x1f7)})]});}function Z(_0x6bc71c){const _0x54e975=_0x1ab05c,{coordinator:_0x4fd4c9}=_0x6bc71c;return l[_0x54e975(0x241)](l['Fragment'],{'children':[l['jsx'](_0x54e975(0x287),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](f[_0x54e975(0x1d2)],{'variant':_0x54e975(0x1fa),'onClick':()=>_0x4fd4c9[_0x54e975(0x272)](),'children':'Stop\x20presenting'})]});}function J(){const _0x15e7ee=_0x1ab05c;return l[_0x15e7ee(0x1fc)](l[_0x15e7ee(0x20e)],{'children':_0x15e7ee(0x226)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x32ccb5,_0x28a8c1,_0x1b4115,_0x26519d)=>{for(var _0x38c604=_0x26519d>0x1?void 0x0:_0x26519d?K(_0x28a8c1,_0x1b4115):_0x28a8c1,_0x3a17c4=_0x32ccb5['length']-0x1,_0x522f20;_0x3a17c4>=0x0;_0x3a17c4--)(_0x522f20=_0x32ccb5[_0x3a17c4])&&(_0x38c604=_0x522f20(_0x38c604)||_0x38c604);return _0x38c604;},L=(_0x3d10f9,_0x5b8236)=>(_0x591ff4,_0x386447)=>_0x5b8236(_0x591ff4,_0x386447,_0x3d10f9);exports[_0x1ab05c(0x267)]=class extends o[_0x1ab05c(0x243)]{constructor(_0x4ad06c,_0x500292){const _0x487439=_0x1ab05c;super(),this['_injector']=_0x4ad06c,this[_0x487439(0x21f)]=_0x500292,this[_0x487439(0x200)]();}[_0x1ab05c(0x200)](){const _0x13803b=_0x1ab05c;this['disposeWithMe'](this['_uiPartsService'][_0x13803b(0x1d3)](p[_0x13803b(0x1d6)][_0x13803b(0x1f4)],()=>p['connectInjector']($,this['_injector'])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x1ab05c(0x291)](o[_0x1ab05c(0x1de)])),L(0x1,p[_0x1ab05c(0x23f)])],exports[_0x1ab05c(0x267)]);const Q=_0x1ab05c(0x24c),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x470c5f,_0x43a57d,_0x1cba68,_0x40784e)=>{const _0x120259=_0x1ab05c;for(var _0x3c60ba=_0x40784e>0x1?void 0x0:_0x40784e?X(_0x43a57d,_0x1cba68):_0x43a57d,_0x114b01=_0x470c5f[_0x120259(0x1e2)]-0x1,_0x4aea79;_0x114b01>=0x0;_0x114b01--)(_0x4aea79=_0x470c5f[_0x114b01])&&(_0x3c60ba=_0x4aea79(_0x3c60ba)||_0x3c60ba);return _0x3c60ba;},te=(_0x49f782,_0x51a2f7)=>(_0x26d271,_0x516a44)=>_0x51a2f7(_0x26d271,_0x516a44,_0x49f782);let m=class extends o[_0x1ab05c(0x243)]{constructor(_0x261d09){const _0x2e5725=_0x1ab05c;super(),this[_0x2e5725(0x252)]=_0x261d09,this[_0x2e5725(0x26b)]();}[_0x1ab05c(0x26b)](){const _0x30055e=_0x1ab05c;[D[_0x30055e(0x262)]['id'],D[_0x30055e(0x20a)]['id'],C[_0x30055e(0x1ce)]['id']][_0x30055e(0x269)](_0x3303b3=>{const _0x1a8927=_0x30055e;this[_0x1a8927(0x1fd)](this[_0x1a8927(0x252)][_0x1a8927(0x292)](_0x3303b3));});}};m=ee([te(0x0,o[_0x1ab05c(0x291)](E))],m);var ie=Object['defineProperty'],se=Object['getOwnPropertyDescriptor'],ne=(_0x238745,_0x5f0de9,_0xc2a584)=>_0x5f0de9 in _0x238745?ie(_0x238745,_0x5f0de9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc2a584}):_0x238745[_0x5f0de9]=_0xc2a584,re=(_0xb3cae0,_0x66d8ac,_0x5d767a,_0x17fc57)=>{for(var _0x3d4f93=_0x17fc57>0x1?void 0x0:_0x17fc57?se(_0x66d8ac,_0x5d767a):_0x66d8ac,_0x4231fb=_0xb3cae0['length']-0x1,_0x3784fa;_0x4231fb>=0x0;_0x4231fb--)(_0x3784fa=_0xb3cae0[_0x4231fb])&&(_0x3d4f93=_0x3784fa(_0x3d4f93)||_0x3d4f93);return _0x3d4f93;},N=(_0x8e8a89,_0x464d21)=>(_0x4af051,_0x30dd6b)=>_0x464d21(_0x4af051,_0x30dd6b,_0x8e8a89),A=(_0x3213a2,_0x1be8ea,_0x622e9e)=>ne(_0x3213a2,typeof _0x1be8ea!=_0x1ab05c(0x299)?_0x1be8ea+'':_0x1be8ea,_0x622e9e);const oe=_0x1ab05c(0x26a);exports[_0x1ab05c(0x248)]=class extends o[_0x1ab05c(0x1f8)]{constructor(_0x14e168=w,_0x42b0f2,_0x154fc4){const _0x19fd7d=_0x1ab05c;super(),this[_0x19fd7d(0x23e)]=_0x14e168,this['_injector']=_0x42b0f2,this[_0x19fd7d(0x1f6)]=_0x154fc4;const {..._0x3ea5e8}=o[_0x19fd7d(0x1ec)]({},w,this['_config']);this[_0x19fd7d(0x1f6)][_0x19fd7d(0x1cc)](Q,_0x3ea5e8);}['onStarting'](){const _0x3b1c92=_0x1ab05c;o[_0x3b1c92(0x21c)](this[_0x3b1c92(0x222)],o[_0x3b1c92(0x274)]([[E],[exports[_0x3b1c92(0x26d)]],[m],[exports['DesktopLiveShareController']]],this[_0x3b1c92(0x23e)]['override'])),o[_0x3b1c92(0x20f)](this[_0x3b1c92(0x222)],[[m]]);}['onRendered'](){const _0x210c02=_0x1ab05c;o[_0x210c02(0x20f)](this[_0x210c02(0x222)],[[exports[_0x210c02(0x267)]]]);}},A(exports[_0x1ab05c(0x248)],_0x1ab05c(0x260),o['UniverInstanceType'][_0x1ab05c(0x275)]),A(exports[_0x1ab05c(0x248)],_0x1ab05c(0x204),oe),exports[_0x1ab05c(0x248)]=re([o[_0x1ab05c(0x236)](b[_0x1ab05c(0x238)]),N(0x1,o[_0x1ab05c(0x291)](o['Injector'])),N(0x2,o[_0x1ab05c(0x1f1)])],exports[_0x1ab05c(0x248)]),exports[_0x1ab05c(0x211)]=$,exports[_0x1ab05c(0x289)]=E,exports[_0x1ab05c(0x1dc)]=u;
1
+ 'use strict';const _0xa3ede=_0x1414;(function(_0x3da658,_0x1a6a78){const _0x2752ce=_0x1414,_0x30a035=_0x3da658();while(!![]){try{const _0x45a89f=parseInt(_0x2752ce(0x1a6))/0x1*(parseInt(_0x2752ce(0x165))/0x2)+parseInt(_0x2752ce(0x112))/0x3*(-parseInt(_0x2752ce(0xe6))/0x4)+-parseInt(_0x2752ce(0x116))/0x5+parseInt(_0x2752ce(0x14c))/0x6*(parseInt(_0x2752ce(0x17d))/0x7)+-parseInt(_0x2752ce(0xf8))/0x8+parseInt(_0x2752ce(0x16b))/0x9*(-parseInt(_0x2752ce(0x14d))/0xa)+parseInt(_0x2752ce(0x107))/0xb;if(_0x45a89f===_0x1a6a78)break;else _0x30a035['push'](_0x30a035['shift']());}catch(_0x425210){_0x30a035['push'](_0x30a035['shift']());}}}(_0x409c,0xe5413));var T=Object[_0xa3ede(0xef)],U=(_0x300354,_0x427b65,_0x4d2b6b)=>_0x427b65 in _0x300354?T(_0x300354,_0x427b65,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d2b6b}):_0x300354[_0x427b65]=_0x4d2b6b,_=(_0x3679da,_0x59562d,_0x4e5e44)=>U(_0x3679da,typeof _0x59562d!=_0xa3ede(0x1ac)?_0x59562d+'':_0x59562d,_0x4e5e44);Object['defineProperty'](exports,Symbol[_0xa3ede(0x18e)],{'value':_0xa3ede(0xdd)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x2884ac,..._0x42e01f}){const _0x476eb1=_0xa3ede,{icon:_0x404bc4,id:_0x2abea8,className:_0x5e9ce9,extend:_0x1047b3,..._0x27bbe1}=_0x42e01f,_0x1d37ba=(_0x476eb1(0x1aa)+_0x2abea8+'\x20'+(_0x5e9ce9||''))['trim'](),_0x2eb3d1=v[_0x476eb1(0x12f)]('_'+H());return j(_0x404bc4,''+_0x2abea8,{'defIds':_0x404bc4[_0x476eb1(0xe3)],'idSuffix':_0x2eb3d1[_0x476eb1(0x16d)]},{'ref':_0x2884ac,'className':_0x1d37ba,..._0x27bbe1},_0x1047b3);}function j(_0x3c6c89,_0x27b0d8,_0x3cfeb7,_0x5ee408,_0x203de1){const _0x4d87ef=_0xa3ede;return v[_0x4d87ef(0x127)](_0x3c6c89[_0x4d87ef(0x161)],{'key':_0x27b0d8,...y(_0x3c6c89,_0x3cfeb7,_0x203de1),..._0x5ee408},(F(_0x3c6c89,_0x3cfeb7)[_0x4d87ef(0xe7)]||[])[_0x4d87ef(0x147)]((_0x4caf5e,_0x434a75)=>j(_0x4caf5e,_0x27b0d8+'-'+_0x3c6c89[_0x4d87ef(0x161)]+'-'+_0x434a75,_0x3cfeb7,void 0x0,_0x203de1)));}function y(_0x5565a5,_0x492f6b,_0x444303){const _0x535a99=_0xa3ede,_0x112a34={..._0x5565a5[_0x535a99(0x111)]};_0x444303!=null&&_0x444303[_0x535a99(0x122)]&&_0x112a34[_0x535a99(0x17e)]==='colorChannel1'&&(_0x112a34[_0x535a99(0x17e)]=_0x444303[_0x535a99(0x122)]),_0x5565a5[_0x535a99(0x161)]===_0x535a99(0x17a)&&_0x112a34['id']&&(_0x112a34['id']=_0x112a34['id']+_0x492f6b[_0x535a99(0x176)]),Object['entries'](_0x112a34)['forEach'](([_0xf9210a,_0x367f0d])=>{const _0x2ab9f1=_0x535a99;_0xf9210a==='mask'&&typeof _0x367f0d==_0x2ab9f1(0x17b)&&(_0x112a34[_0xf9210a]=_0x367f0d['replace'](/url\(#(.*)\)/,_0x2ab9f1(0x19b)+_0x492f6b[_0x2ab9f1(0x176)]+')'));});const {defIds:_0x18ee2e}=_0x492f6b;return!_0x18ee2e||_0x18ee2e[_0x535a99(0x18c)]===0x0||(_0x5565a5[_0x535a99(0x161)]===_0x535a99(0x13f)&&_0x112a34[_0x535a99(0xf6)]&&(_0x112a34[_0x535a99(0xf6)]=_0x112a34[_0x535a99(0xf6)]+_0x492f6b['idSuffix']),Object['entries'](_0x112a34)[_0x535a99(0x16c)](([_0x4b077,_0x326d8d])=>{const _0x2198e5=_0x535a99;typeof _0x326d8d=='string'&&(_0x112a34[_0x4b077]=_0x326d8d[_0x2198e5(0x169)](/url\(#(.*)\)/,_0x2198e5(0x19b)+_0x492f6b[_0x2198e5(0x176)]+')'));})),_0x112a34;}function F(_0x553783,_0x5ce415){const _0x474973=_0xa3ede;var _0x2dc96f;const {defIds:_0x558bb5}=_0x5ce415;return!_0x558bb5||_0x558bb5[_0x474973(0x18c)]===0x0?_0x553783:_0x553783['tag']==='defs'&&((_0x2dc96f=_0x553783['children'])!=null&&_0x2dc96f[_0x474973(0x18c)])?{..._0x553783,'children':_0x553783[_0x474973(0xe7)][_0x474973(0x147)](_0x3313d6=>typeof _0x3313d6[_0x474973(0x111)]['id']==_0x474973(0x17b)&&_0x558bb5&&_0x558bb5[_0x474973(0x128)](_0x3313d6[_0x474973(0x111)]['id'])?{..._0x3313d6,'attrs':{..._0x3313d6[_0x474973(0x111)],'id':_0x3313d6[_0x474973(0x111)]['id']+_0x5ce415[_0x474973(0x176)]}}:_0x3313d6)}:_0x553783;}function H(){const _0x3c7abf=_0xa3ede;return Math[_0x3c7abf(0x168)]()[_0x3c7abf(0x11f)](0x24)[_0x3c7abf(0xec)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':'svg','attrs':{'xmlns':_0xa3ede(0xfe),'fill':_0xa3ede(0x175),'viewBox':_0xa3ede(0x146),'width':_0xa3ede(0x12a),'height':_0xa3ede(0x12a)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0xa3ede(0x19f)}},{'tag':_0xa3ede(0x10e),'attrs':{'fill':'currentColor','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':_0xa3ede(0xfa),'clipRule':_0xa3ede(0xfa)}}]},R=v[_0xa3ede(0x137)](function(_0x5ace2e,_0x2bac1c){const _0xefde4a=_0xa3ede;return v[_0xefde4a(0x127)](x,Object['assign']({},_0x5ace2e,{'id':'live-share-icon','ref':_0x2bac1c,'icon':V}));});function _0x1414(_0x2024fb,_0x5ce453){_0x2024fb=_0x2024fb-0xdd;const _0x409cb8=_0x409c();let _0x141418=_0x409cb8[_0x2024fb];return _0x141418;}R[_0xa3ede(0x15f)]=_0xa3ede(0x11e);class E extends o[_0xa3ede(0x141)]{constructor(){const _0xea54e4=_0xa3ede;super(...arguments),_(this,_0xea54e4(0x155),new Set()),_(this,'_reporters',new Set());}['registerSharedOperation'](_0x45976f){const _0x179e48=_0xa3ede;return this[_0x179e48(0x155)][_0x179e48(0x15a)](_0x45976f),o['toDisposable'](()=>this[_0x179e48(0x155)][_0x179e48(0xf3)](_0x45976f));}[_0xa3ede(0x108)](_0x47c66d){const _0x381d42=_0xa3ede;return this[_0x381d42(0x123)][_0x381d42(0x15a)](_0x47c66d),o[_0x381d42(0x13a)](()=>this['_reporters'][_0x381d42(0xf3)](_0x47c66d));}[_0xa3ede(0x16a)](_0x32af55){return this['_sharedOperations']['has'](_0x32af55);}[_0xa3ede(0x13b)](_0x27cb93){const _0x530621=_0xa3ede;return Array['from'](this[_0x530621(0x123)])[_0x530621(0x147)](_0x51ad7d=>_0x51ad7d(_0x27cb93));}}var M=Object[_0xa3ede(0x16f)],P=(_0x253cc8,_0x1302e3,_0x38f866,_0xec46e6)=>{const _0x57c0ef=_0xa3ede;for(var _0x507e4d=_0xec46e6>0x1?void 0x0:_0xec46e6?M(_0x1302e3,_0x38f866):_0x1302e3,_0x2fc534=_0x253cc8[_0x57c0ef(0x18c)]-0x1,_0x227081;_0x2fc534>=0x0;_0x2fc534--)(_0x227081=_0x253cc8[_0x2fc534])&&(_0x507e4d=_0x227081(_0x507e4d)||_0x507e4d);return _0x507e4d;},S=(_0x12bf69,_0x111761)=>(_0x130670,_0xdd08a0)=>_0x111761(_0x130670,_0xdd08a0,_0x12bf69);exports[_0xa3ede(0x191)]=class extends o['RxDisposable']{constructor(_0x1f7cae,_0x258dab,_0x662b03){const _0x7a9516=_0xa3ede;super(),_(this,_0x7a9516(0x167),new Map()),(this['_univerInstanceService']=_0x1f7cae,this[_0x7a9516(0x106)]=_0x258dab,this[_0x7a9516(0x197)]=_0x662b03,this[_0x7a9516(0x131)]());}async[_0xa3ede(0xf9)](_0x5ef58e){const _0x232278=_0xa3ede;return this[_0x232278(0x167)][_0x232278(0xf1)](_0x5ef58e)||await this[_0x232278(0x187)](_0x5ef58e),this[_0x232278(0x167)]['get'](_0x5ef58e);}['getLiveShareCoordinatorSync'](_0x2c9abf){const _0x3f9b84=_0xa3ede;var _0x3328ae;return(_0x3328ae=this[_0x3f9b84(0x167)]['get'](_0x2c9abf))!=null?_0x3328ae:null;}[_0xa3ede(0x131)](){const _0x1c06c8=_0xa3ede;this[_0x1c06c8(0x10d)]['getTypeOfUnitAdded$'](o[_0x1c06c8(0x177)][_0x1c06c8(0x114)])['pipe'](I['takeUntil'](this[_0x1c06c8(0x196)]))[_0x1c06c8(0x14f)](async _0x17465e=>{const _0x322b81=_0x1c06c8,_0x137714=_0x17465e['getUnitId']();this[_0x322b81(0x167)][_0x322b81(0xf1)](_0x137714)||this[_0x322b81(0x187)](_0x137714);}),this[_0x1c06c8(0x10d)][_0x1c06c8(0xe0)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x1c06c8(0x17c)](I['takeUntil'](this['dispose$']))[_0x1c06c8(0x14f)](_0x3739ed=>{const _0xbe0895=_0x1c06c8,_0x5c1231=_0x3739ed[_0xbe0895(0x164)](),_0x1eacc9=this[_0xbe0895(0x167)][_0xbe0895(0x1a0)](_0x5c1231);_0x1eacc9==null||_0x1eacc9[_0xbe0895(0xdf)]();});}async[_0xa3ede(0x187)](_0x1ce4eb){const _0x557422=_0xa3ede,_0x3f3964=await this[_0x557422(0x197)][_0x557422(0x118)](_0x1ce4eb),_0x19aab8=this[_0x557422(0x106)]['createInstance'](exports[_0x557422(0x178)],_0x1ce4eb,_0x3f3964);return _0x19aab8[_0x557422(0xeb)](),this[_0x557422(0x167)]['set'](_0x1ce4eb,_0x19aab8),_0x19aab8;}},exports[_0xa3ede(0x191)]=P([S(0x0,o[_0xa3ede(0x11a)]),S(0x1,o[_0xa3ede(0x109)](o['Injector'])),S(0x2,o['Inject'](b[_0xa3ede(0x149)]))],exports[_0xa3ede(0x191)]);var u=(_0x4555d9=>(_0x4555d9['OFFLINE']=_0xa3ede(0x181),_0x4555d9[_0xa3ede(0x1a2)]='idle',_0x4555d9[_0xa3ede(0x12d)]=_0xa3ede(0x172),_0x4555d9['NOT_FOLLOWING']=_0xa3ede(0x1a1),_0x4555d9[_0xa3ede(0x1a4)]='presenting',_0x4555d9))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports['LiveShareCoordinator']=class extends o[_0xa3ede(0x133)]{constructor(_0x8c8d95,_0x587d4d,_0x403db2,_0x1dd574,_0x7c7d2b){const _0x3b37a0=_0xa3ede;super(),_(this,_0x3b37a0(0x188),new O[(_0x3b37a0(0x1ad))]('idle')),_(this,_0x3b37a0(0x121),this[_0x3b37a0(0x188)][_0x3b37a0(0x1a7)]()),_(this,_0x3b37a0(0x131),!0x1),_(this,_0x3b37a0(0x10b),null),_(this,_0x3b37a0(0x163),null),(this[_0x3b37a0(0x154)]=_0x8c8d95,this[_0x3b37a0(0x129)]=_0x587d4d,this[_0x3b37a0(0x100)]=_0x403db2,this[_0x3b37a0(0x195)]=_0x1dd574,this[_0x3b37a0(0x19a)]=_0x7c7d2b);}get[_0xa3ede(0x189)](){const _0x4bc046=_0xa3ede;return this[_0x4bc046(0x188)]['getValue']();}[_0xa3ede(0xdf)](){const _0x5d9f92=_0xa3ede;var _0x6548a9;(_0x6548a9=this[_0x5d9f92(0x10b)])==null||_0x6548a9[_0x5d9f92(0xdf)](),this[_0x5d9f92(0x188)]['next'](_0x5d9f92(0xe2)),this['_status$'][_0x5d9f92(0x18d)]();}[_0xa3ede(0x138)](){const _0x98b9ac=_0xa3ede;return this[_0x98b9ac(0x189)];}['init'](){const _0x1eea7b=_0xa3ede;this[_0x1eea7b(0x131)]||(this[_0x1eea7b(0x131)]=!0x0,this[_0x1eea7b(0x129)]['sessionStatus$'][_0x1eea7b(0x17c)](I[_0x1eea7b(0x156)](this[_0x1eea7b(0x196)]))['subscribe'](_0x25a14e=>{const _0x5b068e=_0x1eea7b;switch(_0x25a14e){case b[_0x5b068e(0x15e)][_0x5b068e(0x117)]:this[_0x5b068e(0xff)]();break;case b[_0x5b068e(0x15e)]['ONLINE']:this[_0x5b068e(0x110)]();break;}}),this[_0x1eea7b(0x129)][_0x1eea7b(0xed)][_0x1eea7b(0x17c)](I[_0x1eea7b(0x156)](this['dispose$']))[_0x1eea7b(0x14f)](_0x439c9d=>{const _0x36546f=_0x1eea7b,{eventID:_0x4b10cc}=_0x439c9d;switch(_0x4b10cc){case d[_0x36546f(0x170)][_0x36546f(0x14b)]:this['_handleNewHost'](_0x439c9d);break;case d[_0x36546f(0x170)][_0x36546f(0x18a)]:this[_0x36546f(0xf4)](_0x439c9d);break;case d[_0x36546f(0x170)]['LIVESHARE_TERMINATE']:this[_0x36546f(0x1a8)]();break;case d[_0x36546f(0x170)]['NEW_CHANGESETS']:this[_0x36546f(0x198)](_0x439c9d);break;}}));}[_0xa3ede(0xe8)](){const _0x39c099=_0xa3ede;this[_0x39c099(0x129)][_0x39c099(0xf7)]({'eventID':d[_0x39c099(0x170)][_0x39c099(0x15d)],'data':{'unitID':this[_0x39c099(0x154)],'userID':this[_0x39c099(0x129)][_0x39c099(0x135)]()}},this['_unitID']);}[_0xa3ede(0x10f)](){const _0x42ef2d=_0xa3ede;this['_status']===_0x42ef2d(0x14e)&&(this[_0x42ef2d(0x188)][_0x42ef2d(0xfc)](_0x42ef2d(0xe2)),this[_0x42ef2d(0x129)][_0x42ef2d(0xf7)]({'eventID':d[_0x42ef2d(0x170)][_0x42ef2d(0x12e)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0xa3ede(0x1a9)](){const _0x36e6a8=_0xa3ede;this['_status']===_0x36e6a8(0x1a1)&&(this[_0x36e6a8(0x188)]['next'](_0x36e6a8(0x172)),this[_0x36e6a8(0x157)]());}[_0xa3ede(0xf5)](){const _0x31e713=_0xa3ede;this[_0x31e713(0x189)]===_0x31e713(0x172)&&this['_stopFollowing']();}[_0xa3ede(0x153)](_0x248d80){const _0x50611c=_0xa3ede,{presenter:_0x4cb770}=_0x248d80[_0x50611c(0x184)],_0x4200d4=this[_0x50611c(0x129)]['getMemberID']();this[_0x50611c(0x163)]=_0x4cb770,_0x4cb770===_0x4200d4?(this['_stopFollowing'](),this[_0x50611c(0x119)]()):this[_0x50611c(0x189)]!==_0x50611c(0x1a1)&&(this[_0x50611c(0xee)](),this[_0x50611c(0x157)]());}[_0xa3ede(0x12b)](){const _0x3d95ac=_0xa3ede,_0xee313f={'eventID':d[_0x3d95ac(0x170)][_0x3d95ac(0x192)]};this[_0x3d95ac(0x129)][_0x3d95ac(0xf7)](_0xee313f,this[_0x3d95ac(0x154)]);}[_0xa3ede(0x1a8)](){const _0x858827=_0xa3ede;this[_0x858827(0x163)]=null,this['_status']!==_0x858827(0x14e)&&this[_0x858827(0x19e)]();}[_0xa3ede(0x198)](_0x5a2e6e){const _0x455c2a=_0xa3ede;if(this[_0x455c2a(0x189)]===_0x455c2a(0x172)&&this[_0x455c2a(0x163)]===_0x5a2e6e[_0x455c2a(0x184)]['memberID']){const _0x5ad206=d[_0x455c2a(0x174)](_0x5a2e6e[_0x455c2a(0x184)])[_0x455c2a(0xfd)][_0x455c2a(0x18b)]()['find'](_0x39864f=>_0x39864f['id']===C[_0x455c2a(0xe1)]['id']);if(_0x5ad206){const _0x508568=_0x5ad206[_0x455c2a(0x190)][_0x455c2a(0xe4)],_0x3da130=_0x5ad206['params'][_0x455c2a(0x12c)]['id'];setTimeout(()=>{const _0x43ce17=_0x455c2a;this[_0x43ce17(0x19a)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x508568,'subUnitId':_0x3da130},{'fromCollab':!0x0});});}}}[_0xa3ede(0x119)](){const _0x453fc6=_0xa3ede;this[_0x453fc6(0x188)][_0x453fc6(0xfc)](_0x453fc6(0x14e));const _0x1c5703=new Map(),_0x5d8ab=this[_0x453fc6(0x10b)]=new o[(_0x453fc6(0x13d))]();_0x5d8ab[_0x453fc6(0x15a)](o[_0x453fc6(0x13a)](()=>{const _0x30a249=_0x453fc6;_0x1c5703[_0x30a249(0x16c)](_0x16b8ca=>_0x16b8ca[_0x30a249(0x18d)]()),_0x1c5703[_0x30a249(0x15b)]();})),_0x5d8ab[_0x453fc6(0x15a)](this[_0x453fc6(0x19a)][_0x453fc6(0x14a)](_0x3a6088=>{const _0x3227ae=_0x453fc6;var _0x352804;if(_0x3a6088[_0x3227ae(0x11b)]!==o[_0x3227ae(0x144)]['OPERATION']||!this[_0x3227ae(0x195)][_0x3227ae(0x16a)](_0x3a6088['id']))return;const {id:_0x5d2d69}=_0x3a6088;let _0x935d05;_0x1c5703[_0x3227ae(0xf1)](_0x5d2d69)?_0x935d05=_0x1c5703['get'](_0x5d2d69):(_0x935d05=new O[(_0x3227ae(0x1a5))](),_0x1c5703[_0x3227ae(0x1a3)](_0x5d2d69,_0x935d05),_0x935d05[_0x3227ae(0x17c)](I[_0x3227ae(0x1ab)]((_0x352804=this['_configService'][_0x3227ae(0x125)](k))!=null?_0x352804:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xeb50bd=>{const _0x5d366e=_0x3227ae;this[_0x5d366e(0x129)][_0x5d366e(0xf7)]({'eventID':d[_0x5d366e(0x170)][_0x5d366e(0x18a)],'data':{'unitID':this[_0x5d366e(0x154)],'operations':{[_0xeb50bd['id']]:{'id':_0xeb50bd['id'],'params':JSON['stringify'](_0xeb50bd['params'])}}}},this[_0x5d366e(0x154)]);})),_0x935d05['next'](_0x3a6088);})),this[_0x453fc6(0x195)][_0x453fc6(0x13b)](this['_unitID'])[_0x453fc6(0x16c)](_0x127762=>this['_collabSession'][_0x453fc6(0xf7)]({'eventID':d[_0x453fc6(0x170)][_0x453fc6(0x18a)],'data':{'unitID':this[_0x453fc6(0x154)],'operations':{[_0x127762['id']]:{'id':_0x127762['id'],'params':JSON[_0x453fc6(0xf2)](_0x127762[_0x453fc6(0x190)])}}}},this[_0x453fc6(0x154)]));}[_0xa3ede(0xee)](){const _0xb68493=_0xa3ede;var _0x36c989;this['_status$']['next']('idle'),(_0x36c989=this[_0xb68493(0x10b)])==null||_0x36c989['dispose'](),this[_0xb68493(0x10b)]=null;}['_startFollowing'](){const _0x3fb340=_0xa3ede;var _0x11c4ee;(_0x11c4ee=this[_0x3fb340(0x10b)])==null||_0x11c4ee[_0x3fb340(0xdf)](),this[_0x3fb340(0x188)]['next'](_0x3fb340(0x172));}[_0xa3ede(0x19e)](){const _0x50f5ba=_0xa3ede;var _0x5a1b83;this[_0x50f5ba(0x188)][_0x50f5ba(0xfc)](_0x50f5ba(0xe2)),(_0x5a1b83=this[_0x50f5ba(0x10b)])==null||_0x5a1b83[_0x50f5ba(0xdf)](),this[_0x50f5ba(0x10b)]=null;}[_0xa3ede(0x183)](){const _0x24e0b2=_0xa3ede;var _0x1a9b4d;this['_status$']['next']('not-following'),(_0x1a9b4d=this[_0x24e0b2(0x10b)])==null||_0x1a9b4d[_0x24e0b2(0xdf)]();}[_0xa3ede(0xf4)](_0x2e69f5){const _0x4b542b=_0xa3ede;if(['presenting',_0x4b542b(0x1a1),_0x4b542b(0x181)][_0x4b542b(0x128)](this[_0x4b542b(0x189)])||!_0x2e69f5[_0x4b542b(0x184)]['presenter']||_0x2e69f5[_0x4b542b(0x184)][_0x4b542b(0x193)]===this['_collabSession'][_0x4b542b(0x135)]())return;this[_0x4b542b(0x189)]===_0x4b542b(0xe2)&&this[_0x4b542b(0x157)]();const _0x2c5761=_0x2e69f5[_0x4b542b(0x184)]['operations'];Object[_0x4b542b(0x132)](_0x2c5761)[_0x4b542b(0x16c)](_0xfbcfee=>{const _0x19ff34=_0x4b542b;this['_commandService']['executeCommand'](_0xfbcfee['id'],_0xfbcfee[_0x19ff34(0x190)]?JSON[_0x19ff34(0x18f)](_0xfbcfee['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x12523e=_0xa3ede;var _0x21e17f;this[_0x12523e(0x188)][_0x12523e(0xfc)]('offline'),(_0x21e17f=this[_0x12523e(0x10b)])==null||_0x21e17f[_0x12523e(0xdf)]();}[_0xa3ede(0x110)](){const _0x162b10=_0xa3ede;this[_0x162b10(0x188)][_0x162b10(0xfc)](_0x162b10(0xe2)),this['_fetchOperations']();}},exports[_0xa3ede(0x178)]=P([S(0x2,o[_0xa3ede(0xfb)]),S(0x3,o[_0xa3ede(0x109)](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function $(){const _0x530067=_0xa3ede,_0x5e6814=p['useDependency'](exports[_0x530067(0x191)]),_0x582743=p['useDependency'](o[_0x530067(0x11a)]),_0x114552=p['useObservable'](()=>_0x582743['getCurrentTypeOfUnit$'](o[_0x530067(0x177)][_0x530067(0x114)]),void 0x0,!0x1,[]),[_0x5c1b7a,_0x5d53a6]=v[_0x530067(0x113)](null),[_0x7a901f,_0x3f0876]=v['useState'](u[_0x530067(0x1a2)]),_0x570af4=v[_0x530067(0x12f)](null);return v[_0x530067(0x171)](()=>(_0x114552&&_0x5e6814[_0x530067(0xf9)](_0x114552['getUnitId']())[_0x530067(0x19d)](_0x45a76d=>{const _0x184d15=_0x530067;_0x5d53a6(_0x45a76d),_0x570af4[_0x184d15(0x16d)]=_0x45a76d[_0x184d15(0x121)][_0x184d15(0x14f)](_0x4e0ee0=>{_0x3f0876(_0x4e0ee0);});}),()=>{const _0x2deed0=_0x530067;var _0x414224;(_0x414224=_0x570af4['current'])==null||_0x414224[_0x2deed0(0x120)](),_0x570af4['current']=null;}),[_0x114552,_0x5e6814]),_0x5c1b7a?l[_0x530067(0x17f)](f[_0x530067(0xea)],{'align':'end','disabled':_0x7a901f===u[_0x530067(0x117)],'className':_0x530067(0x143),'overlay':l[_0x530067(0x17f)](W,{'status':_0x7a901f,'coordinator':_0x5c1b7a}),'children':l[_0x530067(0x17f)]('button',{'className':f[_0x530067(0x130)](_0x530067(0x11c),{'univer-cursor-not-allowed':_0x7a901f===u[_0x530067(0x117)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x7a901f!==u[_0x530067(0x117)]}),'type':_0x530067(0x104),'children':l['jsx'](R,{'className':_0x530067(0x101)})})}):null;}function W(_0x478f7f){const _0x718012=_0xa3ede,{status:_0x3f2e90,coordinator:_0x666873}=_0x478f7f;switch(_0x3f2e90){case u[_0x718012(0x1a2)]:return l[_0x718012(0x17f)](G,{'coordinator':_0x666873});case u[_0x718012(0x12d)]:return l[_0x718012(0x17f)](B,{'coordinator':_0x666873});case u[_0x718012(0x162)]:return l[_0x718012(0x17f)](Y,{'coordinator':_0x666873});case u[_0x718012(0x117)]:return l[_0x718012(0x17f)](J,{});case u[_0x718012(0x1a4)]:return l[_0x718012(0x17f)](Z,{'coordinator':_0x666873});default:return null;}}function G(_0x8b13e9){const _0xc1f5f9=_0xa3ede,{coordinator:_0x3e7aa1}=_0x8b13e9;return l[_0xc1f5f9(0x136)](l[_0xc1f5f9(0xe5)],{'children':[l['jsx'](_0xc1f5f9(0x10a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l['jsx'](f[_0xc1f5f9(0x159)],{'onClick':()=>_0x3e7aa1[_0xc1f5f9(0xe8)](),'children':_0xc1f5f9(0x160)})]});}function B(_0x314e66){const _0x51e54b=_0xa3ede,{coordinator:_0x5ce518}=_0x314e66;return l[_0x51e54b(0x136)](l[_0x51e54b(0xe5)],{'children':[l[_0x51e54b(0x17f)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x51e54b(0x179)}),l[_0x51e54b(0x17f)](f['Button'],{'onClick':()=>_0x5ce518['stopFollowing'](),'children':_0x51e54b(0x124)})]});}function Y(_0x265305){const _0x3a561f=_0xa3ede,{coordinator:_0x562e13}=_0x265305;return l[_0x3a561f(0x136)](l[_0x3a561f(0xe5)],{'children':[l['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3a561f(0x158)}),l['jsx'](f[_0x3a561f(0x159)],{'variant':_0x3a561f(0x126),'onClick':()=>_0x562e13['startFollowing'](),'children':_0x3a561f(0x115)})]});}function Z(_0x50e436){const _0x3d67b8=_0xa3ede,{coordinator:_0x523553}=_0x50e436;return l['jsxs'](l[_0x3d67b8(0xe5)],{'children':[l['jsx'](_0x3d67b8(0x10a),{'className':_0x3d67b8(0x11d),'children':_0x3d67b8(0x105)}),l[_0x3d67b8(0x17f)](f[_0x3d67b8(0x159)],{'variant':_0x3d67b8(0x103),'onClick':()=>_0x523553[_0x3d67b8(0x10f)](),'children':_0x3d67b8(0xf0)})]});}function J(){const _0x5bbf1e=_0xa3ede;return l[_0x5bbf1e(0x17f)](l['Fragment'],{'children':_0x5bbf1e(0x186)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x29a78f,_0x2c1996,_0x5cb021,_0x482653)=>{const _0x3a15b6=_0xa3ede;for(var _0x282cd6=_0x482653>0x1?void 0x0:_0x482653?K(_0x2c1996,_0x5cb021):_0x2c1996,_0x115bb9=_0x29a78f[_0x3a15b6(0x18c)]-0x1,_0x3946e0;_0x115bb9>=0x0;_0x115bb9--)(_0x3946e0=_0x29a78f[_0x115bb9])&&(_0x282cd6=_0x3946e0(_0x282cd6)||_0x282cd6);return _0x282cd6;},L=(_0x2a4899,_0x15e169)=>(_0x2db560,_0x399b3c)=>_0x15e169(_0x2db560,_0x399b3c,_0x2a4899);function _0x409c(){const _0x5a9246=['random','replace','shouldShareOperation','137583vlHPKK','forEach','current','UniverCollaborationClientPlugin','getOwnPropertyDescriptor','CollaborationEvent','useEffect','following','LiveShareStatus','parseProtocolChangeset','none','idSuffix','UniverInstanceType','LiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','mask','string','pipe','10311602DjXUaq','fill','jsx','LiveShareService','offline','override','_stopFollowing','data','UNIVER_UNKNOWN','You\x27are\x20offline.','_startLiveShareCoordinator','_status$','_status','LIVESHARE_OPERATION','reverse','length','complete','toStringTag','parse','params','LiveShareController','LIVESHARE_FETCH_OPERATIONS','presenter','BuiltInUIPart','_liveShareService','dispose$','_collabSessionService','_handleNewChangeSets','onStarting','_commandService','url(#$1','Injector','then','_beIdle','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','get','not-following','IDLE','set','PRESENTING','Subject','947oFQwfU','asObservable','_handleTerminate','startFollowing','univerjs-icon\x20univerjs-icon-','throttleTime','symbol','BehaviorSubject','Module','_uiPartsService','dispose','getTypeOfUnitDisposed$','InsertSheetMutation','idle','defIds','unitId','Fragment','44ZHGsDk','children','tryStartPresenting','registerDependencies','Dropdown','init','substring','event$','_stopPresenting','defineProperty','Stop\x20presenting','has','stringify','delete','_handleOperation','stopFollowing','xlink:href','send','13798616DlGxUu','getLiveShareCoordinator','evenodd','IConfigService','next','mutations','http://www.w3.org/2000/svg','_handleOffline','_configService','univer-size-4','SetWorksheetActiveOperation','default','button','You\x27re\x20presenting\x20the\x20document','_injector','55054725wxlibr','registerInitialStateReporter','Inject','div','_commandDisposable','connectInjector','_univerInstanceService','path','stopPresenting','_handleOnline','attrs','351966ARNtWE','useState','UNIVER_SHEET','Start\x20following','6906675pLCEqE','OFFLINE','requireSession','_startPresenting','IUniverInstanceService','type','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareIcon','toString','unsubscribe','status$','colorChannel1','_reporters','Stop\x20following','getConfig','text','createElement','includes','_collabSession','1em','_fetchOperations','sheet','FOLLOWING','LIVESHARE_TERMINATE','useRef','clsx','_init','values','RxDisposable','_config','getMemberID','jsxs','forwardRef','getStatus','disposeWithMe','toDisposable','getInitialStates','_mountLiveShare','DisposableCollection','registerSharedOperation','use','UNIVER_LIVE_SHARE_PLUGIN','Disposable','registerComponent','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','CommandType','SetScrollOperation','0\x200\x2017\x2017','map','setConfig','CollaborationSessionService','onCommandExecuted','LIVESHARE_NEW_HOST','6RstCGn','790NuxsaJ','presenting','subscribe','IUIPartsService','touchDependencies','pluginName','_handleNewHost','_unitID','_sharedOperations','takeUntil','_startFollowing','You\x27re\x20not\x20following\x20the\x20presenter','Button','add','clear','DesktopLiveShareController','LIVESHARE_REQUEST_HOST','SessionStatus','displayName','Start','tag','NOT_FOLLOWING','_presenter','getUnitId','138RXaXQz','UniverLiveSharePlugin','_entities'];_0x409c=function(){return _0x5a9246;};return _0x409c();}exports[_0xa3ede(0x15c)]=class extends o[_0xa3ede(0x141)]{constructor(_0x47912b,_0x496117){const _0x260cc6=_0xa3ede;super(),this['_injector']=_0x47912b,this[_0x260cc6(0xde)]=_0x496117,this['_mountLiveShare']();}[_0xa3ede(0x13c)](){const _0x2d2947=_0xa3ede;this['disposeWithMe'](this[_0x2d2947(0xde)][_0x2d2947(0x142)](p[_0x2d2947(0x194)]['HEADER_MENU'],()=>p[_0x2d2947(0x10c)]($,this[_0x2d2947(0x106)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0xa3ede(0x109)](o[_0xa3ede(0x19c)])),L(0x1,p[_0xa3ede(0x150)])],exports[_0xa3ede(0x15c)]);const Q='live-share.config',w={};var X=Object[_0xa3ede(0x16f)],ee=(_0x48cf39,_0x341092,_0xb0fe9f,_0x5f5d18)=>{const _0x8f9f22=_0xa3ede;for(var _0xe39a18=_0x5f5d18>0x1?void 0x0:_0x5f5d18?X(_0x341092,_0xb0fe9f):_0x341092,_0x134da6=_0x48cf39[_0x8f9f22(0x18c)]-0x1,_0x302ca8;_0x134da6>=0x0;_0x134da6--)(_0x302ca8=_0x48cf39[_0x134da6])&&(_0xe39a18=_0x302ca8(_0xe39a18)||_0xe39a18);return _0xe39a18;},te=(_0x378a6e,_0xe6e1e5)=>(_0x53fadb,_0x7155f2)=>_0xe6e1e5(_0x53fadb,_0x7155f2,_0x378a6e);let m=class extends o['Disposable']{constructor(_0x5c0640){const _0x6b10f2=_0xa3ede;super(),this[_0x6b10f2(0x195)]=_0x5c0640,this['_init']();}[_0xa3ede(0x131)](){const _0x2da8c0=_0xa3ede;[D['SetZoomRatioOperation']['id'],D[_0x2da8c0(0x145)]['id'],C[_0x2da8c0(0x102)]['id']][_0x2da8c0(0x16c)](_0x4e4c4c=>{const _0x66c979=_0x2da8c0;this[_0x66c979(0x139)](this[_0x66c979(0x195)][_0x66c979(0x13e)](_0x4e4c4c));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0xa3ede(0xef)],se=Object[_0xa3ede(0x16f)],ne=(_0x4de822,_0x39a374,_0x15df34)=>_0x39a374 in _0x4de822?ie(_0x4de822,_0x39a374,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15df34}):_0x4de822[_0x39a374]=_0x15df34,re=(_0xf26cfd,_0x31b7b6,_0x4abfaf,_0x46882c)=>{for(var _0x3c85ff=_0x46882c>0x1?void 0x0:_0x46882c?se(_0x31b7b6,_0x4abfaf):_0x31b7b6,_0x2f339a=_0xf26cfd['length']-0x1,_0x8ba626;_0x2f339a>=0x0;_0x2f339a--)(_0x8ba626=_0xf26cfd[_0x2f339a])&&(_0x3c85ff=_0x8ba626(_0x3c85ff)||_0x3c85ff);return _0x3c85ff;},N=(_0x464d5f,_0x115aee)=>(_0x5de1f4,_0x274a32)=>_0x115aee(_0x5de1f4,_0x274a32,_0x464d5f),A=(_0x53c07b,_0x302a6d,_0x18fae7)=>ne(_0x53c07b,typeof _0x302a6d!=_0xa3ede(0x1ac)?_0x302a6d+'':_0x302a6d,_0x18fae7);const oe=_0xa3ede(0x140);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x4ed88c=w,_0x1d3eed,_0x52da9e){const _0x1ef716=_0xa3ede;super(),this[_0x1ef716(0x134)]=_0x4ed88c,this['_injector']=_0x1d3eed,this[_0x1ef716(0x100)]=_0x52da9e;const {..._0x1a4a1c}=o['merge']({},w,this[_0x1ef716(0x134)]);this[_0x1ef716(0x100)][_0x1ef716(0x148)](Q,_0x1a4a1c);}[_0xa3ede(0x199)](){const _0x2c5755=_0xa3ede;o[_0x2c5755(0xe9)](this[_0x2c5755(0x106)],o['mergeOverrideWithDependencies']([[E],[exports[_0x2c5755(0x191)]],[m],[exports[_0x2c5755(0x15c)]]],this[_0x2c5755(0x134)][_0x2c5755(0x182)])),o[_0x2c5755(0x151)](this[_0x2c5755(0x106)],[[m]]);}['onRendered'](){const _0x48bd63=_0xa3ede;o[_0x48bd63(0x151)](this['_injector'],[[exports[_0x48bd63(0x15c)]]]);}},A(exports[_0xa3ede(0x166)],_0xa3ede(0x11b),o[_0xa3ede(0x177)][_0xa3ede(0x185)]),A(exports[_0xa3ede(0x166)],_0xa3ede(0x152),oe),exports[_0xa3ede(0x166)]=re([o['DependentOn'](b[_0xa3ede(0x16e)]),N(0x1,o[_0xa3ede(0x109)](o[_0xa3ede(0x19c)])),N(0x2,o['IConfigService'])],exports[_0xa3ede(0x166)]),exports['LiveShare']=$,exports[_0xa3ede(0x180)]=E,exports[_0xa3ede(0x173)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x566e6d=_0x1d5c;(function(_0xfe3e26,_0x3c7c00){const _0x352859=_0x1d5c,_0x2d6c75=_0xfe3e26();while(!![]){try{const _0x150c73=-parseInt(_0x352859(0x1ef))/0x1*(-parseInt(_0x352859(0x1f2))/0x2)+parseInt(_0x352859(0x1e7))/0x3+parseInt(_0x352859(0x1f4))/0x4*(parseInt(_0x352859(0x1ed))/0x5)+parseInt(_0x352859(0x1ec))/0x6*(-parseInt(_0x352859(0x1df))/0x7)+-parseInt(_0x352859(0x1f0))/0x8+-parseInt(_0x352859(0x1f3))/0x9+parseInt(_0x352859(0x1e3))/0xa*(parseInt(_0x352859(0x1e2))/0xb);if(_0x150c73===_0x3c7c00)break;else _0x2d6c75['push'](_0x2d6c75['shift']());}catch(_0x2882ef){_0x2d6c75['push'](_0x2d6c75['shift']());}}}(_0x9b4e,0x3a3db));function _0x9b4e(){const _0x5d812a=['3967513XtGjYj','20UZimWt','_liveShareController','getCurrentUnitOfType','startFollowing','503892AeFFQM','stopFollowing','stopPresenting','symbol','IDLE','5898pbuKHy','24380cfrGNl','LiveShareStatusEnum','17926hKTZcM','1110264ngNcZX','extend','6TDNNzm','3272751GaoaTs','164BMxRRG','getLiveShareCoordinatorSync','_injector','tryStartPresenting','get','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UNIVER_SHEET','_initialize','getUnitId','2863jQXlMS','No\x20active\x20workbook\x20found.','getLiveShareStatus'];_0x9b4e=function(){return _0x5d812a;};return _0x9b4e();}var l=Object['defineProperty'],w=(_0x2849d3,_0x4fe4fb,_0x3c8219)=>_0x4fe4fb in _0x2849d3?l(_0x2849d3,_0x4fe4fb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c8219}):_0x2849d3[_0x4fe4fb]=_0x3c8219,v=(_0xc198ba,_0x88243c,_0x57d0c8)=>w(_0xc198ba,typeof _0x88243c!=_0x566e6d(0x1ea)?_0x88243c+'':_0x88243c,_0x57d0c8);import{LiveShareController as _0x446f47,LiveShareStatus as _0x40ff7a}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x131130,UniverInstanceType as _0x5b3072}from'@univerjs/core';import{FUniver as _0x2b5b4d,FEnum as _0x3ec844}from'@univerjs/core/facade';class g extends _0x2b5b4d{constructor(){const _0x5cec77=_0x566e6d;super(...arguments),v(this,_0x5cec77(0x1e4));}[_0x566e6d(0x1dd)](_0x4d9c37){const _0x278247=_0x566e6d;this[_0x278247(0x1e4)]=_0x4d9c37[_0x278247(0x1da)](_0x446f47);}[_0x566e6d(0x1e1)](){const _0x3102c6=_0x566e6d;var _0x6bcf62;const _0x23b06a=this[_0x3102c6(0x1f6)][_0x3102c6(0x1da)](_0x131130)[_0x3102c6(0x1e5)](_0x5b3072[_0x3102c6(0x1dc)]);if(!_0x23b06a)throw new Error(_0x3102c6(0x1e0));const _0x5a33de=_0x23b06a[_0x3102c6(0x1de)](),_0x4c75b4=this[_0x3102c6(0x1e4)][_0x3102c6(0x1f5)](_0x5a33de);return(_0x6bcf62=_0x4c75b4==null?void 0x0:_0x4c75b4['getStatus']())!=null?_0x6bcf62:_0x40ff7a[_0x3102c6(0x1eb)];}[_0x566e6d(0x1e6)](){const _0x199c60=_0x566e6d,_0x45ff6b=this[_0x199c60(0x1f6)][_0x199c60(0x1da)](_0x131130)[_0x199c60(0x1e5)](_0x5b3072[_0x199c60(0x1dc)]);if(!_0x45ff6b)throw new Error(_0x199c60(0x1e0));const _0x4bedce=_0x45ff6b['getUnitId'](),_0x3b9280=this[_0x199c60(0x1e4)][_0x199c60(0x1f5)](_0x4bedce);if(!_0x3b9280)throw new Error(_0x199c60(0x1db));_0x3b9280[_0x199c60(0x1e6)]();}[_0x566e6d(0x1e8)](){const _0x4e861a=_0x566e6d,_0x123206=this[_0x4e861a(0x1f6)]['get'](_0x131130)['getCurrentUnitOfType'](_0x5b3072[_0x4e861a(0x1dc)]);if(!_0x123206)throw new Error(_0x4e861a(0x1e0));const _0x1e8faa=_0x123206[_0x4e861a(0x1de)](),_0x3c97aa=this[_0x4e861a(0x1e4)][_0x4e861a(0x1f5)](_0x1e8faa);if(!_0x3c97aa)throw new Error(_0x4e861a(0x1db));_0x3c97aa[_0x4e861a(0x1e8)]();}['startPresenting'](){const _0x30165d=_0x566e6d,_0x53fcdf=this['_injector']['get'](_0x131130)[_0x30165d(0x1e5)](_0x5b3072[_0x30165d(0x1dc)]);if(!_0x53fcdf)throw new Error(_0x30165d(0x1e0));const _0x408edf=_0x53fcdf[_0x30165d(0x1de)](),_0x1c207a=this[_0x30165d(0x1e4)][_0x30165d(0x1f5)](_0x408edf);if(!_0x1c207a)throw new Error(_0x30165d(0x1db));_0x1c207a[_0x30165d(0x1f7)]();}[_0x566e6d(0x1e9)](){const _0x278e82=_0x566e6d,_0x1ca5dd=this[_0x278e82(0x1f6)][_0x278e82(0x1da)](_0x131130)['getCurrentUnitOfType'](_0x5b3072[_0x278e82(0x1dc)]);if(!_0x1ca5dd)throw new Error('No\x20active\x20workbook\x20found.');const _0x16a718=_0x1ca5dd['getUnitId'](),_0x2c1e5d=this[_0x278e82(0x1e4)][_0x278e82(0x1f5)](_0x16a718);if(!_0x2c1e5d)throw new Error(_0x278e82(0x1db));_0x2c1e5d[_0x278e82(0x1e9)]();}}_0x2b5b4d[_0x566e6d(0x1f1)](g);function _0x1d5c(_0x428f88,_0x4a14bb){_0x428f88=_0x428f88-0x1da;const _0x9b4e2b=_0x9b4e();let _0x1d5cf2=_0x9b4e2b[_0x428f88];return _0x1d5cf2;}class f extends _0x3ec844{get[_0x566e6d(0x1ee)](){return _0x40ff7a;}}_0x3ec844[_0x566e6d(0x1f1)](f);
1
+ const _0x19b141=_0x53dd;(function(_0x510e30,_0x21a070){const _0x3f0bca=_0x53dd,_0x22cb3e=_0x510e30();while(!![]){try{const _0x2270cb=parseInt(_0x3f0bca(0x12b))/0x1*(parseInt(_0x3f0bca(0x120))/0x2)+parseInt(_0x3f0bca(0x122))/0x3+parseInt(_0x3f0bca(0x136))/0x4+-parseInt(_0x3f0bca(0x125))/0x5*(-parseInt(_0x3f0bca(0x12e))/0x6)+parseInt(_0x3f0bca(0x137))/0x7+parseInt(_0x3f0bca(0x11e))/0x8+parseInt(_0x3f0bca(0x121))/0x9*(-parseInt(_0x3f0bca(0x133))/0xa);if(_0x2270cb===_0x21a070)break;else _0x22cb3e['push'](_0x22cb3e['shift']());}catch(_0x4f2e98){_0x22cb3e['push'](_0x22cb3e['shift']());}}}(_0x406e,0x54b90));var l=Object[_0x19b141(0x130)],w=(_0xfdb7f9,_0x849b5a,_0xa45fa8)=>_0x849b5a in _0xfdb7f9?l(_0xfdb7f9,_0x849b5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa45fa8}):_0xfdb7f9[_0x849b5a]=_0xa45fa8,v=(_0x76a04e,_0xb9c0e0,_0x5be59d)=>w(_0x76a04e,typeof _0xb9c0e0!=_0x19b141(0x126)?_0xb9c0e0+'':_0xb9c0e0,_0x5be59d);import{LiveShareController as _0x2cb6f1,LiveShareStatus as _0x1a5913}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x240b98,UniverInstanceType as _0x5dad90}from'@univerjs/core';import{FUniver as _0x3008c3,FEnum as _0xecc156}from'@univerjs/core/facade';function _0x53dd(_0xf68f15,_0x1ff45b){_0xf68f15=_0xf68f15-0x11e;const _0x406e43=_0x406e();let _0x53dd48=_0x406e43[_0xf68f15];return _0x53dd48;}class g extends _0x3008c3{constructor(){const _0x47105d=_0x19b141;super(...arguments),v(this,_0x47105d(0x13a));}['_initialize'](_0x5728bd){const _0x43b6ae=_0x19b141;this[_0x43b6ae(0x13a)]=_0x5728bd[_0x43b6ae(0x127)](_0x2cb6f1);}[_0x19b141(0x131)](){const _0x58f527=_0x19b141;var _0x4e5aa9;const _0x5e4049=this[_0x58f527(0x139)][_0x58f527(0x127)](_0x240b98)[_0x58f527(0x124)](_0x5dad90[_0x58f527(0x12d)]);if(!_0x5e4049)throw new Error(_0x58f527(0x12a));const _0x2ea060=_0x5e4049['getUnitId'](),_0x144bc7=this[_0x58f527(0x13a)]['getLiveShareCoordinatorSync'](_0x2ea060);return(_0x4e5aa9=_0x144bc7==null?void 0x0:_0x144bc7[_0x58f527(0x12f)]())!=null?_0x4e5aa9:_0x1a5913[_0x58f527(0x132)];}[_0x19b141(0x135)](){const _0x46e1b2=_0x19b141,_0x4cd5fd=this[_0x46e1b2(0x139)][_0x46e1b2(0x127)](_0x240b98)[_0x46e1b2(0x124)](_0x5dad90[_0x46e1b2(0x12d)]);if(!_0x4cd5fd)throw new Error(_0x46e1b2(0x12a));const _0x2a4b38=_0x4cd5fd[_0x46e1b2(0x123)](),_0x22d5ad=this[_0x46e1b2(0x13a)][_0x46e1b2(0x128)](_0x2a4b38);if(!_0x22d5ad)throw new Error(_0x46e1b2(0x138));_0x22d5ad[_0x46e1b2(0x135)]();}[_0x19b141(0x12c)](){const _0x494fe7=_0x19b141,_0x3d317a=this[_0x494fe7(0x139)][_0x494fe7(0x127)](_0x240b98)[_0x494fe7(0x124)](_0x5dad90['UNIVER_SHEET']);if(!_0x3d317a)throw new Error(_0x494fe7(0x12a));const _0x517dde=_0x3d317a[_0x494fe7(0x123)](),_0x3e00e3=this[_0x494fe7(0x13a)][_0x494fe7(0x128)](_0x517dde);if(!_0x3e00e3)throw new Error(_0x494fe7(0x138));_0x3e00e3['stopFollowing']();}['startPresenting'](){const _0x2bf9bf=_0x19b141,_0x4d06e3=this['_injector']['get'](_0x240b98)['getCurrentUnitOfType'](_0x5dad90[_0x2bf9bf(0x12d)]);if(!_0x4d06e3)throw new Error(_0x2bf9bf(0x12a));const _0x585e38=_0x4d06e3['getUnitId'](),_0x45aa14=this[_0x2bf9bf(0x13a)][_0x2bf9bf(0x128)](_0x585e38);if(!_0x45aa14)throw new Error(_0x2bf9bf(0x138));_0x45aa14['tryStartPresenting']();}[_0x19b141(0x129)](){const _0x5f0070=_0x19b141,_0x2b02e2=this[_0x5f0070(0x139)][_0x5f0070(0x127)](_0x240b98)[_0x5f0070(0x124)](_0x5dad90[_0x5f0070(0x12d)]);if(!_0x2b02e2)throw new Error('No\x20active\x20workbook\x20found.');const _0x3da6de=_0x2b02e2[_0x5f0070(0x123)](),_0x17c536=this[_0x5f0070(0x13a)][_0x5f0070(0x128)](_0x3da6de);if(!_0x17c536)throw new Error(_0x5f0070(0x138));_0x17c536[_0x5f0070(0x129)]();}}function _0x406e(){const _0x454398=['1164670qWoMKd','symbol','get','getLiveShareCoordinatorSync','stopPresenting','No\x20active\x20workbook\x20found.','3PzbrAB','stopFollowing','UNIVER_SHEET','6KjpvBv','getStatus','defineProperty','getLiveShareStatus','IDLE','1360qeBBuD','extend','startFollowing','1705752SGaTMY','2801694ZfcfZm','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_injector','_liveShareController','3033064jIaGAV','LiveShareStatusEnum','352418FCoMoW','128367taiytc','958254sdfIKO','getUnitId','getCurrentUnitOfType'];_0x406e=function(){return _0x454398;};return _0x406e();}_0x3008c3[_0x19b141(0x134)](g);class f extends _0xecc156{get[_0x19b141(0x11f)](){return _0x1a5913;}}_0xecc156[_0x19b141(0x134)](f);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x390b95=_0x3116;(function(_0x35f85c,_0x39acb9){const _0xded7ad=_0x3116,_0x42951d=_0x35f85c();while(!![]){try{const _0x7d4e70=-parseInt(_0xded7ad(0x196))/0x1+parseInt(_0xded7ad(0x162))/0x2*(parseInt(_0xded7ad(0x183))/0x3)+parseInt(_0xded7ad(0x16f))/0x4*(-parseInt(_0xded7ad(0x17c))/0x5)+-parseInt(_0xded7ad(0x16a))/0x6*(-parseInt(_0xded7ad(0x1ef))/0x7)+-parseInt(_0xded7ad(0x1a0))/0x8+parseInt(_0xded7ad(0x1bd))/0x9+parseInt(_0xded7ad(0x1e9))/0xa;if(_0x7d4e70===_0x39acb9)break;else _0x42951d['push'](_0x42951d['shift']());}catch(_0x986e17){_0x42951d['push'](_0x42951d['shift']());}}}(_0x29fb,0xcc781));var J=Object[_0x390b95(0x1ce)],K=(_0x43b6cc,_0x3b9e66,_0x29a90d)=>_0x3b9e66 in _0x43b6cc?J(_0x43b6cc,_0x3b9e66,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29a90d}):_0x43b6cc[_0x3b9e66]=_0x29a90d,u=(_0x2301c9,_0x122eb5,_0x23dcb2)=>K(_0x2301c9,typeof _0x122eb5!=_0x390b95(0x15a)?_0x122eb5+'':_0x122eb5,_0x23dcb2);import{Disposable as _0x40ae42,toDisposable as _0x3bb9da,IUniverInstanceService as _0xd680c7,Inject as _0x3dd3c1,Injector as _0x3c1288,IConfigService as _0x32fcb1,ICommandService as _0x445b6b,RxDisposable as _0x27eba0,UniverInstanceType as _0x1d4865,DisposableCollection as _0x593dd5,CommandType as _0x3757e7,DependentOn as _0x13b935,Plugin as _0x31110c,merge as _0x486150,registerDependencies as _0x22adca,mergeOverrideWithDependencies as _0x5bff08,touchDependencies as _0x56943d}from'@univerjs/core';import{useDependency as _0x3f5ec,useObservable as _0x4e5406,IUIPartsService as _0x1785bb,BuiltInUIPart as _0x187feb,connectInjector as _0x1d951d}from'@univerjs/ui';import{jsx as _0x9f2121,jsxs as _0x26ec1f,Fragment as _0x21e62d}from'react/jsx-runtime';import{Dropdown as _0x2fd8bb,clsx as _0x3bba3d,Button as _0x59b2ac}from'@univerjs/design';import{useRef as _0x32a473,createElement as _0x3cda61,forwardRef as _0x10c801,useState as _0x3c8f49,useEffect as _0x3a79f1}from'react';import{CollaborationEvent as _0x12a62a,parseProtocolChangeset as _0xd51d01}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x399324,SessionStatus as _0x4a16ed,UniverCollaborationClientPlugin as _0x2d986f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x57b8f7,SetWorksheetActiveOperation as _0x4625b}from'@univerjs/sheets';import{BehaviorSubject as _0x3e6ab0,Subject as _0x2dceb8}from'rxjs';import{takeUntil as _0x2f67b3,throttleTime as _0x2091ab}from'rxjs/operators';import{SetZoomRatioOperation as _0x126ff6,SetScrollOperation as _0x4ca130}from'@univerjs/sheets-ui';function k({ref:_0x182122,..._0x17a838}){const _0x2c7e79=_0x390b95,{icon:_0xdb35dd,id:_0x117e14,className:_0x180a8d,extend:_0x16e35b,..._0xa714af}=_0x17a838,_0x1bcd89=(_0x2c7e79(0x174)+_0x117e14+'\x20'+(_0x180a8d||''))[_0x2c7e79(0x1b7)](),_0x3de69b=_0x32a473('_'+Oe());return G(_0xdb35dd,''+_0x117e14,{'defIds':_0xdb35dd[_0x2c7e79(0x165)],'idSuffix':_0x3de69b[_0x2c7e79(0x1d8)]},{'ref':_0x182122,'className':_0x1bcd89,..._0xa714af},_0x16e35b);}function G(_0x5c15ad,_0x21c101,_0x463f00,_0x2ab904,_0x5f0537){const _0x7bb978=_0x390b95;return _0x3cda61(_0x5c15ad[_0x7bb978(0x1aa)],{'key':_0x21c101,...be(_0x5c15ad,_0x463f00,_0x5f0537),..._0x2ab904},(Ee(_0x5c15ad,_0x463f00)[_0x7bb978(0x1b1)]||[])[_0x7bb978(0x1c5)]((_0x529269,_0x428ad2)=>G(_0x529269,_0x21c101+'-'+_0x5c15ad[_0x7bb978(0x1aa)]+'-'+_0x428ad2,_0x463f00,void 0x0,_0x5f0537)));}function be(_0x32330e,_0x25dd63,_0x56c732){const _0x3cec0d=_0x390b95,_0x312d90={..._0x32330e[_0x3cec0d(0x1a9)]};_0x56c732!=null&&_0x56c732['colorChannel1']&&_0x312d90[_0x3cec0d(0x19b)]===_0x3cec0d(0x19f)&&(_0x312d90[_0x3cec0d(0x19b)]=_0x56c732['colorChannel1']),_0x32330e['tag']===_0x3cec0d(0x1e8)&&_0x312d90['id']&&(_0x312d90['id']=_0x312d90['id']+_0x25dd63[_0x3cec0d(0x1c7)]),Object[_0x3cec0d(0x15d)](_0x312d90)[_0x3cec0d(0x178)](([_0x5e7481,_0x5df862])=>{const _0x388211=_0x3cec0d;_0x5e7481==='mask'&&typeof _0x5df862=='string'&&(_0x312d90[_0x5e7481]=_0x5df862[_0x388211(0x181)](/url\(#(.*)\)/,_0x388211(0x15f)+_0x25dd63[_0x388211(0x1c7)]+')'));});const {defIds:_0x236bd8}=_0x25dd63;return!_0x236bd8||_0x236bd8['length']===0x0||(_0x32330e['tag']===_0x3cec0d(0x15c)&&_0x312d90[_0x3cec0d(0x17e)]&&(_0x312d90['xlink:href']=_0x312d90[_0x3cec0d(0x17e)]+_0x25dd63[_0x3cec0d(0x1c7)]),Object[_0x3cec0d(0x15d)](_0x312d90)['forEach'](([_0x304dc7,_0x4e7022])=>{const _0x29cfe3=_0x3cec0d;typeof _0x4e7022==_0x29cfe3(0x18e)&&(_0x312d90[_0x304dc7]=_0x4e7022[_0x29cfe3(0x181)](/url\(#(.*)\)/,_0x29cfe3(0x15f)+_0x25dd63[_0x29cfe3(0x1c7)]+')'));})),_0x312d90;}function Ee(_0x2c5299,_0x5337de){const _0x29a962=_0x390b95;var _0x261564;const {defIds:_0x13cba6}=_0x5337de;return!_0x13cba6||_0x13cba6[_0x29a962(0x163)]===0x0?_0x2c5299:_0x2c5299[_0x29a962(0x1aa)]==='defs'&&((_0x261564=_0x2c5299[_0x29a962(0x1b1)])!=null&&_0x261564[_0x29a962(0x163)])?{..._0x2c5299,'children':_0x2c5299[_0x29a962(0x1b1)][_0x29a962(0x1c5)](_0xb1baee=>typeof _0xb1baee['attrs']['id']==_0x29a962(0x18e)&&_0x13cba6&&_0x13cba6[_0x29a962(0x1c0)](_0xb1baee[_0x29a962(0x1a9)]['id'])?{..._0xb1baee,'attrs':{..._0xb1baee[_0x29a962(0x1a9)],'id':_0xb1baee[_0x29a962(0x1a9)]['id']+_0x5337de[_0x29a962(0x1c7)]}}:_0xb1baee)}:_0x2c5299;}function Oe(){const _0x250754=_0x390b95;return Math[_0x250754(0x1a6)]()[_0x250754(0x1c3)](0x24)[_0x250754(0x1de)](0x2,0x8);}k[_0x390b95(0x1da)]=_0x390b95(0x1e4);const we={'tag':_0x390b95(0x19d),'attrs':{'xmlns':_0x390b95(0x1d2),'fill':_0x390b95(0x1cb),'viewBox':_0x390b95(0x1ee),'width':'1em','height':'1em'},'children':[{'tag':_0x390b95(0x1c4),'attrs':{'fill':_0x390b95(0x1ba),'d':_0x390b95(0x1d7)}},{'tag':_0x390b95(0x1c4),'attrs':{'fill':'currentColor','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':'evenodd'}}]},W=_0x10c801(function(_0x2668d6,_0x48a428){const _0x4c4339=_0x390b95;return _0x3cda61(k,Object[_0x4c4339(0x1bb)]({},_0x2668d6,{'id':_0x4c4339(0x1cd),'ref':_0x48a428,'icon':we}));});W[_0x390b95(0x1da)]=_0x390b95(0x1be);class L extends _0x40ae42{constructor(){const _0x22baf0=_0x390b95;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x22baf0(0x176),new Set());}['registerSharedOperation'](_0x593665){const _0x397871=_0x390b95;return this[_0x397871(0x1a4)]['add'](_0x593665),_0x3bb9da(()=>this['_sharedOperations']['delete'](_0x593665));}['registerInitialStateReporter'](_0x71d627){const _0x54e75e=_0x390b95;return this['_reporters']['add'](_0x71d627),_0x3bb9da(()=>this['_reporters'][_0x54e75e(0x179)](_0x71d627));}[_0x390b95(0x199)](_0x172e58){const _0x4c916a=_0x390b95;return this[_0x4c916a(0x1a4)][_0x4c916a(0x1f1)](_0x172e58);}[_0x390b95(0x1cc)](_0x3b4093){const _0x3b52a9=_0x390b95;return Array[_0x3b52a9(0x1f2)](this[_0x3b52a9(0x176)])[_0x3b52a9(0x1c5)](_0xf5f0c4=>_0xf5f0c4(_0x3b4093));}}var Ne=Object[_0x390b95(0x1b8)],Y=(_0x5369fd,_0x3ffbcb,_0x46f04d,_0x2a09e9)=>{const _0x51defc=_0x390b95;for(var _0x2bc4f4=_0x2a09e9>0x1?void 0x0:_0x2a09e9?Ne(_0x3ffbcb,_0x46f04d):_0x3ffbcb,_0x46097a=_0x5369fd[_0x51defc(0x163)]-0x1,_0x5d9805;_0x46097a>=0x0;_0x46097a--)(_0x5d9805=_0x5369fd[_0x46097a])&&(_0x2bc4f4=_0x5d9805(_0x2bc4f4)||_0x2bc4f4);return _0x2bc4f4;},_=(_0x480341,_0x307fa3)=>(_0x13bf84,_0x27db5b)=>_0x307fa3(_0x13bf84,_0x27db5b,_0x480341);let S=class extends _0x27eba0{constructor(_0x4284ca,_0x1ed5c4,_0x623a9f){const _0x31f688=_0x390b95;super(),u(this,_0x31f688(0x16e),new Map()),(this[_0x31f688(0x191)]=_0x4284ca,this[_0x31f688(0x170)]=_0x1ed5c4,this[_0x31f688(0x16d)]=_0x623a9f,this[_0x31f688(0x1af)]());}async[_0x390b95(0x1a7)](_0x5e6493){const _0x230f6e=_0x390b95;return this[_0x230f6e(0x16e)][_0x230f6e(0x1f1)](_0x5e6493)||await this['_startLiveShareCoordinator'](_0x5e6493),this['_entities'][_0x230f6e(0x194)](_0x5e6493);}[_0x390b95(0x1e5)](_0x509cfc){const _0x2c0608=_0x390b95;var _0x279eba;return(_0x279eba=this[_0x2c0608(0x16e)][_0x2c0608(0x194)](_0x509cfc))!=null?_0x279eba:null;}[_0x390b95(0x1af)](){const _0x5a3567=_0x390b95;this[_0x5a3567(0x191)][_0x5a3567(0x18b)](_0x1d4865['UNIVER_SHEET'])['pipe'](_0x2f67b3(this[_0x5a3567(0x168)]))[_0x5a3567(0x1eb)](async _0x47cef5=>{const _0x3bf214=_0x5a3567,_0x9e8970=_0x47cef5[_0x3bf214(0x1b5)]();this[_0x3bf214(0x16e)]['has'](_0x9e8970)||this[_0x3bf214(0x1c2)](_0x9e8970);}),this[_0x5a3567(0x191)][_0x5a3567(0x1f5)](_0x1d4865[_0x5a3567(0x15b)])[_0x5a3567(0x1cf)](_0x2f67b3(this[_0x5a3567(0x168)]))[_0x5a3567(0x1eb)](_0x1e0314=>{const _0x4a8fdb=_0x5a3567,_0x5e0e1a=_0x1e0314['getUnitId'](),_0x363bbc=this[_0x4a8fdb(0x16e)][_0x4a8fdb(0x194)](_0x5e0e1a);_0x363bbc==null||_0x363bbc[_0x4a8fdb(0x180)]();});}async[_0x390b95(0x1c2)](_0x40be9f){const _0x5d7e99=_0x390b95,_0x176eb9=await this[_0x5d7e99(0x16d)][_0x5d7e99(0x187)](_0x40be9f),_0x3e2547=this[_0x5d7e99(0x170)]['createInstance'](N,_0x40be9f,_0x176eb9);return _0x3e2547[_0x5d7e99(0x1b2)](),this[_0x5d7e99(0x16e)][_0x5d7e99(0x16c)](_0x40be9f,_0x3e2547),_0x3e2547;}};S=Y([_(0x0,_0xd680c7),_(0x1,_0x3dd3c1(_0x3c1288)),_(0x2,_0x3dd3c1(_0x399324))],S);var c=(_0x214d82=>(_0x214d82['OFFLINE']=_0x390b95(0x16b),_0x214d82[_0x390b95(0x1dc)]='idle',_0x214d82[_0x390b95(0x1b9)]=_0x390b95(0x190),_0x214d82[_0x390b95(0x195)]=_0x390b95(0x18d),_0x214d82[_0x390b95(0x1e2)]=_0x390b95(0x1df),_0x214d82))(c||{});const Ce=_0x390b95(0x1f4),De=0xc8;let N=class extends _0x27eba0{constructor(_0x1438db,_0x373c59,_0x5809cf,_0x4f7ad6,_0x34e8c2){const _0x1861bf=_0x390b95;super(),u(this,_0x1861bf(0x1ae),new _0x3e6ab0('idle')),u(this,_0x1861bf(0x1d6),this['_status$']['asObservable']()),u(this,_0x1861bf(0x1af),!0x1),u(this,_0x1861bf(0x1b6),null),u(this,_0x1861bf(0x164),null),(this['_unitID']=_0x1438db,this[_0x1861bf(0x1a1)]=_0x373c59,this[_0x1861bf(0x167)]=_0x5809cf,this[_0x1861bf(0x1f9)]=_0x4f7ad6,this[_0x1861bf(0x184)]=_0x34e8c2);}get['_status'](){const _0x2cc05f=_0x390b95;return this[_0x2cc05f(0x1ae)][_0x2cc05f(0x197)]();}[_0x390b95(0x180)](){const _0x151d59=_0x390b95;var _0x43e9d0;(_0x43e9d0=this[_0x151d59(0x1b6)])==null||_0x43e9d0['dispose'](),this['_status$']['next'](_0x151d59(0x1c1)),this[_0x151d59(0x1ae)][_0x151d59(0x1e6)]();}[_0x390b95(0x18a)](){const _0x4c3685=_0x390b95;return this[_0x4c3685(0x19c)];}[_0x390b95(0x1b2)](){const _0x4b4078=_0x390b95;this[_0x4b4078(0x1af)]||(this[_0x4b4078(0x1af)]=!0x0,this[_0x4b4078(0x1a1)][_0x4b4078(0x161)]['pipe'](_0x2f67b3(this[_0x4b4078(0x168)]))['subscribe'](_0x456056=>{const _0x5c7bfb=_0x4b4078;switch(_0x456056){case _0x4a16ed[_0x5c7bfb(0x1b0)]:this[_0x5c7bfb(0x1a5)]();break;case _0x4a16ed[_0x5c7bfb(0x1f6)]:this[_0x5c7bfb(0x1ea)]();break;}}),this['_collabSession'][_0x4b4078(0x1a3)]['pipe'](_0x2f67b3(this[_0x4b4078(0x168)]))[_0x4b4078(0x1eb)](_0xdd4711=>{const _0x288958=_0x4b4078,{eventID:_0x4fd861}=_0xdd4711;switch(_0x4fd861){case _0x12a62a[_0x288958(0x17f)]:this[_0x288958(0x185)](_0xdd4711);break;case _0x12a62a[_0x288958(0x1d4)]:this[_0x288958(0x19e)](_0xdd4711);break;case _0x12a62a['LIVESHARE_TERMINATE']:this[_0x288958(0x1e3)]();break;case _0x12a62a[_0x288958(0x1e0)]:this['_handleNewChangeSets'](_0xdd4711);break;}}));}[_0x390b95(0x17d)](){const _0x2695ae=_0x390b95;this[_0x2695ae(0x1a1)]['send']({'eventID':_0x12a62a[_0x2695ae(0x17a)],'data':{'unitID':this['_unitID'],'userID':this[_0x2695ae(0x1a1)][_0x2695ae(0x186)]()}},this[_0x2695ae(0x1f0)]);}['stopPresenting'](){const _0x3c3041=_0x390b95;this[_0x3c3041(0x19c)]===_0x3c3041(0x1df)&&(this['_status$'][_0x3c3041(0x17b)]('idle'),this[_0x3c3041(0x1a1)][_0x3c3041(0x1ad)]({'eventID':_0x12a62a['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3c3041(0x1f0)]}},this[_0x3c3041(0x1f0)]));}[_0x390b95(0x1db)](){const _0xc889a6=_0x390b95;this[_0xc889a6(0x19c)]===_0xc889a6(0x18d)&&(this[_0xc889a6(0x1ae)][_0xc889a6(0x17b)](_0xc889a6(0x190)),this[_0xc889a6(0x193)]());}['stopFollowing'](){const _0x1de9c7=_0x390b95;this['_status']===_0x1de9c7(0x190)&&this[_0x1de9c7(0x1bf)]();}['_handleNewHost'](_0x39f5e0){const _0x1b702e=_0x390b95,{presenter:_0x12a85a}=_0x39f5e0[_0x1b702e(0x1ec)],_0x130e64=this[_0x1b702e(0x1a1)][_0x1b702e(0x186)]();this[_0x1b702e(0x164)]=_0x12a85a,_0x12a85a===_0x130e64?(this['_stopFollowing'](),this[_0x1b702e(0x182)]()):this['_status']!==_0x1b702e(0x18d)&&(this[_0x1b702e(0x1c6)](),this['_startFollowing']());}['_fetchOperations'](){const _0x2cdc9b=_0x390b95,_0x46d4e8={'eventID':_0x12a62a[_0x2cdc9b(0x1c8)]};this[_0x2cdc9b(0x1a1)][_0x2cdc9b(0x1ad)](_0x46d4e8,this[_0x2cdc9b(0x1f0)]);}['_handleTerminate'](){const _0x2f8d8f=_0x390b95;this['_presenter']=null,this[_0x2f8d8f(0x19c)]!=='presenting'&&this[_0x2f8d8f(0x1a2)]();}['_handleNewChangeSets'](_0x3e5d5a){const _0x2e90a3=_0x390b95;if(this['_status']===_0x2e90a3(0x190)&&this['_presenter']===_0x3e5d5a[_0x2e90a3(0x1ec)]['memberID']){const _0x586c3b=_0xd51d01(_0x3e5d5a['data'])['mutations']['reverse']()[_0x2e90a3(0x1dd)](_0x39705a=>_0x39705a['id']===_0x57b8f7['id']);if(_0x586c3b){const _0x2f1f58=_0x586c3b[_0x2e90a3(0x1d5)]['unitId'],_0x576758=_0x586c3b['params']['sheet']['id'];setTimeout(()=>{const _0x1b885f=_0x2e90a3;this[_0x1b885f(0x184)]['executeCommand'](_0x4625b['id'],{'unitId':_0x2f1f58,'subUnitId':_0x576758},{'fromCollab':!0x0});});}}}[_0x390b95(0x182)](){const _0xe28ff3=_0x390b95;this['_status$'][_0xe28ff3(0x17b)](_0xe28ff3(0x1df));const _0x41643f=new Map(),_0x584b50=this[_0xe28ff3(0x1b6)]=new _0x593dd5();_0x584b50[_0xe28ff3(0x1ab)](_0x3bb9da(()=>{const _0x403875=_0xe28ff3;_0x41643f[_0x403875(0x178)](_0x35bc0c=>_0x35bc0c[_0x403875(0x1e6)]()),_0x41643f['clear']();})),_0x584b50[_0xe28ff3(0x1ab)](this['_commandService']['onCommandExecuted'](_0x199f0b=>{const _0x224aa1=_0xe28ff3;var _0x249e76;if(_0x199f0b[_0x224aa1(0x1e1)]!==_0x3757e7['OPERATION']||!this[_0x224aa1(0x1f9)][_0x224aa1(0x199)](_0x199f0b['id']))return;const {id:_0x32b36c}=_0x199f0b;let _0xd10c2;_0x41643f[_0x224aa1(0x1f1)](_0x32b36c)?_0xd10c2=_0x41643f['get'](_0x32b36c):(_0xd10c2=new _0x2dceb8(),_0x41643f[_0x224aa1(0x16c)](_0x32b36c,_0xd10c2),_0xd10c2[_0x224aa1(0x1cf)](_0x2091ab((_0x249e76=this[_0x224aa1(0x167)][_0x224aa1(0x1ca)](Ce))!=null?_0x249e76:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x224aa1(0x1eb)](_0x2763c8=>{const _0x37b94e=_0x224aa1;this[_0x37b94e(0x1a1)][_0x37b94e(0x1ad)]({'eventID':_0x12a62a[_0x37b94e(0x1d4)],'data':{'unitID':this[_0x37b94e(0x1f0)],'operations':{[_0x2763c8['id']]:{'id':_0x2763c8['id'],'params':JSON['stringify'](_0x2763c8[_0x37b94e(0x1d5)])}}}},this[_0x37b94e(0x1f0)]);})),_0xd10c2['next'](_0x199f0b);})),this[_0xe28ff3(0x1f9)][_0xe28ff3(0x1cc)](this['_unitID'])[_0xe28ff3(0x178)](_0x2746a6=>this[_0xe28ff3(0x1a1)][_0xe28ff3(0x1ad)]({'eventID':_0x12a62a[_0xe28ff3(0x1d4)],'data':{'unitID':this[_0xe28ff3(0x1f0)],'operations':{[_0x2746a6['id']]:{'id':_0x2746a6['id'],'params':JSON[_0xe28ff3(0x166)](_0x2746a6[_0xe28ff3(0x1d5)])}}}},this[_0xe28ff3(0x1f0)]));}['_stopPresenting'](){const _0x360e0f=_0x390b95;var _0x54269c;this[_0x360e0f(0x1ae)]['next'](_0x360e0f(0x1c1)),(_0x54269c=this[_0x360e0f(0x1b6)])==null||_0x54269c['dispose'](),this[_0x360e0f(0x1b6)]=null;}[_0x390b95(0x193)](){const _0x2a6711=_0x390b95;var _0x41165d;(_0x41165d=this[_0x2a6711(0x1b6)])==null||_0x41165d[_0x2a6711(0x180)](),this[_0x2a6711(0x1ae)][_0x2a6711(0x17b)](_0x2a6711(0x190));}[_0x390b95(0x1a2)](){const _0x1b5ef9=_0x390b95;var _0x23f0b4;this[_0x1b5ef9(0x1ae)]['next'](_0x1b5ef9(0x1c1)),(_0x23f0b4=this[_0x1b5ef9(0x1b6)])==null||_0x23f0b4[_0x1b5ef9(0x180)](),this['_commandDisposable']=null;}[_0x390b95(0x1bf)](){const _0x15ddcd=_0x390b95;var _0x128ec6;this[_0x15ddcd(0x1ae)][_0x15ddcd(0x17b)]('not-following'),(_0x128ec6=this[_0x15ddcd(0x1b6)])==null||_0x128ec6['dispose']();}[_0x390b95(0x19e)](_0x4518d8){const _0x55b0f4=_0x390b95;if([_0x55b0f4(0x1df),_0x55b0f4(0x18d),_0x55b0f4(0x16b)]['includes'](this[_0x55b0f4(0x19c)])||!_0x4518d8[_0x55b0f4(0x1ec)][_0x55b0f4(0x1a8)]||_0x4518d8[_0x55b0f4(0x1ec)][_0x55b0f4(0x1a8)]===this['_collabSession']['getMemberID']())return;this[_0x55b0f4(0x19c)]===_0x55b0f4(0x1c1)&&this[_0x55b0f4(0x193)]();const _0x4c5779=_0x4518d8[_0x55b0f4(0x1ec)][_0x55b0f4(0x1d3)];Object[_0x55b0f4(0x1e7)](_0x4c5779)[_0x55b0f4(0x178)](_0x3ad18c=>{const _0x22beeb=_0x55b0f4;this[_0x22beeb(0x184)][_0x22beeb(0x1ac)](_0x3ad18c['id'],_0x3ad18c[_0x22beeb(0x1d5)]?JSON['parse'](_0x3ad18c[_0x22beeb(0x1d5)]):null,{'fromCollab':!0x0});});}[_0x390b95(0x1a5)](){const _0x588f40=_0x390b95;var _0x94da79;this[_0x588f40(0x1ae)][_0x588f40(0x17b)](_0x588f40(0x16b)),(_0x94da79=this[_0x588f40(0x1b6)])==null||_0x94da79[_0x588f40(0x180)]();}[_0x390b95(0x1ea)](){const _0xaf6a0b=_0x390b95;this[_0xaf6a0b(0x1ae)][_0xaf6a0b(0x17b)](_0xaf6a0b(0x1c1)),this['_fetchOperations']();}};function _0x29fb(){const _0x4e368d=['UNIVER_UNKNOWN','_liveShareService','symbol','UNIVER_SHEET','use','entries','_mountLiveShare','url(#$1','You\x27are\x20offline.','sessionStatus$','10xOadgB','length','_presenter','defIds','stringify','_configService','dispose$','end','228fOoTjz','offline','set','_collabSessionService','_entities','3294836zJAnzU','_injector','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','_uiPartsService','pluginName','univerjs-icon\x20univerjs-icon-','setConfig','_reporters','Stop\x20following','forEach','delete','LIVESHARE_REQUEST_HOST','next','5bYcgln','tryStartPresenting','xlink:href','LIVESHARE_NEW_HOST','dispose','replace','_startPresenting','783141VlqmPn','_commandService','_handleNewHost','getMemberID','requireSession','live-share.config','Start','getStatus','getTypeOfUnitAdded$','text','not-following','string','registerComponent','following','_univerInstanceService','button','_startFollowing','get','NOT_FOLLOWING','1493758FDEklY','getValue','override','shouldShareOperation','onRendered','fill','_status','svg','_handleOperation','colorChannel1','1729312KYmYwa','_collabSession','_beIdle','event$','_sharedOperations','_handleOffline','random','getLiveShareCoordinator','presenter','attrs','tag','add','executeCommand','send','_status$','_init','OFFLINE','children','init','disposeWithMe','You\x27re\x20presenting\x20the\x20document','getUnitId','_commandDisposable','trim','getOwnPropertyDescriptor','FOLLOWING','currentColor','assign','stopPresenting','6432255FYytRE','LiveShareIcon','_stopFollowing','includes','idle','_startLiveShareCoordinator','toString','path','map','_stopPresenting','idSuffix','LIVESHARE_FETCH_OPERATIONS','You\x27re\x20following\x20the\x20presenter','getConfig','none','getInitialStates','live-share-icon','defineProperty','pipe','univer-mb-3\x20univer-w-full\x20univer-text-sm','div','http://www.w3.org/2000/svg','operations','LIVESHARE_OPERATION','params','status$','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','current','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','displayName','startFollowing','IDLE','find','substring','presenting','NEW_CHANGESETS','type','PRESENTING','_handleTerminate','UniverIcon','getLiveShareCoordinatorSync','complete','values','mask','8628680bBzsPH','_handleOnline','subscribe','data','_config','0\x200\x2017\x2017','89957EnYDuM','_unitID','has','from','registerSharedOperation','SAME_OPERATION_SHARE_INTERVAL','getTypeOfUnitDisposed$','ONLINE','Stop\x20presenting'];_0x29fb=function(){return _0x4e368d;};return _0x29fb();}N=Y([_(0x2,_0x32fcb1),_(0x3,_0x3dd3c1(L)),_(0x4,_0x445b6b)],N);function Le(){const _0x7c8887=_0x390b95,_0x39451a=_0x3f5ec(S),_0x1075ff=_0x3f5ec(_0xd680c7),_0x21b665=_0x4e5406(()=>_0x1075ff['getCurrentTypeOfUnit$'](_0x1d4865['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x594e63,_0x2bcad9]=_0x3c8f49(null),[_0x3e17f8,_0x4d1535]=_0x3c8f49(c[_0x7c8887(0x1dc)]),_0xf0c6f3=_0x32a473(null);return _0x3a79f1(()=>(_0x21b665&&_0x39451a[_0x7c8887(0x1a7)](_0x21b665[_0x7c8887(0x1b5)]())['then'](_0x40da74=>{const _0x32eeb9=_0x7c8887;_0x2bcad9(_0x40da74),_0xf0c6f3[_0x32eeb9(0x1d8)]=_0x40da74[_0x32eeb9(0x1d6)][_0x32eeb9(0x1eb)](_0x5b06d7=>{_0x4d1535(_0x5b06d7);});}),()=>{const _0x2b8758=_0x7c8887;var _0x2253a5;(_0x2253a5=_0xf0c6f3[_0x2b8758(0x1d8)])==null||_0x2253a5['unsubscribe'](),_0xf0c6f3[_0x2b8758(0x1d8)]=null;}),[_0x21b665,_0x39451a]),_0x594e63?_0x9f2121(_0x2fd8bb,{'align':_0x7c8887(0x169),'disabled':_0x3e17f8===c[_0x7c8887(0x1b0)],'className':_0x7c8887(0x171),'overlay':_0x9f2121(Re,{'status':_0x3e17f8,'coordinator':_0x594e63}),'children':_0x9f2121(_0x7c8887(0x192),{'className':_0x3bba3d(_0x7c8887(0x1d9),{'univer-cursor-not-allowed':_0x3e17f8===c[_0x7c8887(0x1b0)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3e17f8!==c[_0x7c8887(0x1b0)]}),'type':_0x7c8887(0x192),'children':_0x9f2121(W,{'className':'univer-size-4'})})}):null;}function Re(_0x1fc2ff){const _0x5612ea=_0x390b95,{status:_0x32f1e0,coordinator:_0x1d6673}=_0x1fc2ff;switch(_0x32f1e0){case c['IDLE']:return _0x9f2121($e,{'coordinator':_0x1d6673});case c[_0x5612ea(0x1b9)]:return _0x9f2121(xe,{'coordinator':_0x1d6673});case c[_0x5612ea(0x195)]:return _0x9f2121(Pe,{'coordinator':_0x1d6673});case c['OFFLINE']:return _0x9f2121(Te,{});case c[_0x5612ea(0x1e2)]:return _0x9f2121(Ae,{'coordinator':_0x1d6673});default:return null;}}function $e(_0x1de7fb){const _0x53fc07=_0x390b95,{coordinator:_0x38709a}=_0x1de7fb;return _0x26ec1f(_0x21e62d,{'children':[_0x9f2121(_0x53fc07(0x1d1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x9f2121(_0x59b2ac,{'onClick':()=>_0x38709a[_0x53fc07(0x17d)](),'children':_0x53fc07(0x189)})]});}function xe(_0x5d1c70){const _0x518fc6=_0x390b95,{coordinator:_0x7dbbd6}=_0x5d1c70;return _0x26ec1f(_0x21e62d,{'children':[_0x9f2121(_0x518fc6(0x1d1),{'className':_0x518fc6(0x1d0),'children':_0x518fc6(0x1c9)}),_0x9f2121(_0x59b2ac,{'onClick':()=>_0x7dbbd6['stopFollowing'](),'children':_0x518fc6(0x177)})]});}function Pe(_0x1dc5d2){const _0x15a286=_0x390b95,{coordinator:_0xd8f520}=_0x1dc5d2;return _0x26ec1f(_0x21e62d,{'children':[_0x9f2121('div',{'className':_0x15a286(0x1d0),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x9f2121(_0x59b2ac,{'variant':_0x15a286(0x18c),'onClick':()=>_0xd8f520[_0x15a286(0x1db)](),'children':'Start\x20following'})]});}function Ae(_0x516b67){const _0x16baab=_0x390b95,{coordinator:_0xf4b409}=_0x516b67;return _0x26ec1f(_0x21e62d,{'children':[_0x9f2121(_0x16baab(0x1d1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x16baab(0x1b4)}),_0x9f2121(_0x59b2ac,{'variant':'default','onClick':()=>_0xf4b409[_0x16baab(0x1bc)](),'children':_0x16baab(0x1f7)})]});}function Te(){const _0x2d3b32=_0x390b95;return _0x9f2121(_0x21e62d,{'children':_0x2d3b32(0x160)});}var Fe=Object[_0x390b95(0x1b8)],He=(_0x1d6e68,_0x5c24c8,_0x606f45,_0x449681)=>{const _0x1faf99=_0x390b95;for(var _0x206d2e=_0x449681>0x1?void 0x0:_0x449681?Fe(_0x5c24c8,_0x606f45):_0x5c24c8,_0x18ece5=_0x1d6e68[_0x1faf99(0x163)]-0x1,_0xf39b23;_0x18ece5>=0x0;_0x18ece5--)(_0xf39b23=_0x1d6e68[_0x18ece5])&&(_0x206d2e=_0xf39b23(_0x206d2e)||_0x206d2e);return _0x206d2e;},A=(_0x229f51,_0x26117f)=>(_0x4c46c8,_0x1f94f2)=>_0x26117f(_0x4c46c8,_0x1f94f2,_0x229f51);let m=class extends _0x40ae42{constructor(_0x37cf2e,_0xefc3e8){const _0x27cda9=_0x390b95;super(),this[_0x27cda9(0x170)]=_0x37cf2e,this[_0x27cda9(0x172)]=_0xefc3e8,this[_0x27cda9(0x15e)]();}[_0x390b95(0x15e)](){const _0x1f9b15=_0x390b95;this['disposeWithMe'](this[_0x1f9b15(0x172)][_0x1f9b15(0x18f)](_0x187feb['HEADER_MENU'],()=>_0x1d951d(Le,this['_injector'])));}};m=He([A(0x0,_0x3dd3c1(_0x3c1288)),A(0x1,_0x1785bb)],m);const ye=_0x390b95(0x188),T={};var Ue=Object[_0x390b95(0x1b8)],Ve=(_0x13e273,_0x4786ba,_0x426b8e,_0x5b59e9)=>{const _0x2c17ca=_0x390b95;for(var _0x52d2f9=_0x5b59e9>0x1?void 0x0:_0x5b59e9?Ue(_0x4786ba,_0x426b8e):_0x4786ba,_0x29eaf8=_0x13e273[_0x2c17ca(0x163)]-0x1,_0x284d4e;_0x29eaf8>=0x0;_0x29eaf8--)(_0x284d4e=_0x13e273[_0x29eaf8])&&(_0x52d2f9=_0x284d4e(_0x52d2f9)||_0x52d2f9);return _0x52d2f9;},je=(_0x577d8c,_0x558a8b)=>(_0x17216c,_0x9f1c06)=>_0x558a8b(_0x17216c,_0x9f1c06,_0x577d8c);let I=class extends _0x40ae42{constructor(_0x3a9420){const _0x2bda98=_0x390b95;super(),this[_0x2bda98(0x1f9)]=_0x3a9420,this[_0x2bda98(0x1af)]();}[_0x390b95(0x1af)](){const _0x446b8e=_0x390b95;[_0x126ff6['id'],_0x4ca130['id'],_0x4625b['id']][_0x446b8e(0x178)](_0x5c3342=>{const _0x5371bb=_0x446b8e;this[_0x5371bb(0x1b3)](this[_0x5371bb(0x1f9)][_0x5371bb(0x1f3)](_0x5c3342));});}};I=Ve([je(0x0,_0x3dd3c1(L))],I);function _0x3116(_0x227e78,_0x596816){_0x227e78=_0x227e78-0x15a;const _0x29fbb6=_0x29fb();let _0x3116a9=_0x29fbb6[_0x227e78];return _0x3116a9;}var Me=Object[_0x390b95(0x1ce)],ke=Object[_0x390b95(0x1b8)],Ge=(_0x1ac9ea,_0x101a39,_0x56bc1d)=>_0x101a39 in _0x1ac9ea?Me(_0x1ac9ea,_0x101a39,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56bc1d}):_0x1ac9ea[_0x101a39]=_0x56bc1d,We=(_0x41a0b6,_0x5eaffa,_0x250912,_0x1bcedd)=>{for(var _0xeda85e=_0x1bcedd>0x1?void 0x0:_0x1bcedd?ke(_0x5eaffa,_0x250912):_0x5eaffa,_0x3c166c=_0x41a0b6['length']-0x1,_0x2e8021;_0x3c166c>=0x0;_0x3c166c--)(_0x2e8021=_0x41a0b6[_0x3c166c])&&(_0xeda85e=_0x2e8021(_0xeda85e)||_0xeda85e);return _0xeda85e;},F=(_0xc190bc,_0x1499cf)=>(_0x20220a,_0x20dce8)=>_0x1499cf(_0x20220a,_0x20dce8,_0xc190bc),B=(_0xb1da84,_0xd940fe,_0x4759c5)=>Ge(_0xb1da84,typeof _0xd940fe!='symbol'?_0xd940fe+'':_0xd940fe,_0x4759c5);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x31110c{constructor(_0x3da3be=T,_0x256927,_0x3d5dfb){const _0x171202=_0x390b95;super(),this[_0x171202(0x1ed)]=_0x3da3be,this[_0x171202(0x170)]=_0x256927,this[_0x171202(0x167)]=_0x3d5dfb;const {..._0x4b589c}=_0x486150({},T,this[_0x171202(0x1ed)]);this[_0x171202(0x167)][_0x171202(0x175)](ye,_0x4b589c);}['onStarting'](){const _0x1049c5=_0x390b95;_0x22adca(this[_0x1049c5(0x170)],_0x5bff08([[L],[S],[I],[m]],this['_config'][_0x1049c5(0x198)])),_0x56943d(this[_0x1049c5(0x170)],[[I]]);}[_0x390b95(0x19a)](){const _0x316977=_0x390b95;_0x56943d(this[_0x316977(0x170)],[[m]]);}};B(b,_0x390b95(0x1e1),_0x1d4865[_0x390b95(0x1f8)]),B(b,_0x390b95(0x173),Ye),b=We([_0x13b935(_0x2d986f),F(0x1,_0x3dd3c1(_0x3c1288)),F(0x2,_0x32fcb1)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
1
+ const _0xeaafbf=_0xdc09;(function(_0x3c0e30,_0x38996b){const _0x4dd8d7=_0xdc09,_0x118b02=_0x3c0e30();while(!![]){try{const _0x1065c8=-parseInt(_0x4dd8d7(0x1c2))/0x1+-parseInt(_0x4dd8d7(0x1bd))/0x2+-parseInt(_0x4dd8d7(0x1bb))/0x3+-parseInt(_0x4dd8d7(0x193))/0x4+-parseInt(_0x4dd8d7(0x1a6))/0x5+parseInt(_0x4dd8d7(0x1da))/0x6*(-parseInt(_0x4dd8d7(0x1ef))/0x7)+parseInt(_0x4dd8d7(0x1c4))/0x8*(parseInt(_0x4dd8d7(0x1b8))/0x9);if(_0x1065c8===_0x38996b)break;else _0x118b02['push'](_0x118b02['shift']());}catch(_0xfd1525){_0x118b02['push'](_0x118b02['shift']());}}}(_0x8dab,0x873c4));var J=Object[_0xeaafbf(0x17b)],K=(_0xb0d402,_0x2be509,_0x26d1d6)=>_0x2be509 in _0xb0d402?J(_0xb0d402,_0x2be509,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26d1d6}):_0xb0d402[_0x2be509]=_0x26d1d6,u=(_0x34ebdc,_0x23eff7,_0x11f60a)=>K(_0x34ebdc,typeof _0x23eff7!=_0xeaafbf(0x180)?_0x23eff7+'':_0x23eff7,_0x11f60a);import{Disposable as _0x469b92,toDisposable as _0x1332f1,Inject as _0x3ffeae,Injector as _0x3e453a,RxDisposable as _0x53e8b0,UniverInstanceType as _0x59dbcd,DisposableCollection as _0x5d9210,CommandType as _0xef2d8d,IUniverInstanceService as _0xe4bcbd,IConfigService as _0x4c72af,ICommandService as _0x465a1b,DependentOn as _0x168090,Plugin as _0x5b0277,merge as _0x3e2e87,registerDependencies as _0x5b8f83,mergeOverrideWithDependencies as _0xed68fc,touchDependencies as _0x98ac8}from'@univerjs/core';import{useDependency as _0x5ec2d9,useObservable as _0x19a9c6,BuiltInUIPart as _0x4f4074,connectInjector as _0x445f22,IUIPartsService as _0x59077d}from'@univerjs/ui';import{jsx as _0x115494,jsxs as _0xe77572,Fragment as _0x8cbe17}from'react/jsx-runtime';import{Dropdown as _0x4dbc1e,clsx as _0x5af8db,Button as _0x39e985}from'@univerjs/design';import{useRef as _0x54096f,createElement as _0x14f037,forwardRef as _0x35b873,useState as _0x2b6511,useEffect as _0x51812f}from'react';import{CollaborationEvent as _0x262122,parseProtocolChangeset as _0x4ddb9c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x20d5f8,SessionStatus as _0x5d00b9,UniverCollaborationClientPlugin as _0x2f3e48}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x541fcc,SetWorksheetActiveOperation as _0x23cd6c}from'@univerjs/sheets';import{BehaviorSubject as _0xe1c438,Subject as _0x444884}from'rxjs';import{takeUntil as _0x5b42f5,throttleTime as _0x475c1c}from'rxjs/operators';import{SetZoomRatioOperation as _0x19b70e,SetScrollOperation as _0x49dea0}from'@univerjs/sheets-ui';function k({ref:_0xbb029c,..._0x4f0b59}){const _0x13959b=_0xeaafbf,{icon:_0x492154,id:_0x58f041,className:_0x4663e8,extend:_0x568981,..._0x2e4434}=_0x4f0b59,_0x36dc72=('univerjs-icon\x20univerjs-icon-'+_0x58f041+'\x20'+(_0x4663e8||''))['trim'](),_0xb7e30c=_0x54096f('_'+Oe());return G(_0x492154,''+_0x58f041,{'defIds':_0x492154[_0x13959b(0x1dc)],'idSuffix':_0xb7e30c[_0x13959b(0x1aa)]},{'ref':_0xbb029c,'className':_0x36dc72,..._0x2e4434},_0x568981);}function _0xdc09(_0x2f06b1,_0x2018aa){_0x2f06b1=_0x2f06b1-0x14c;const _0x8dab6e=_0x8dab();let _0xdc0948=_0x8dab6e[_0x2f06b1];return _0xdc0948;}function G(_0x4aa988,_0x200841,_0x965d06,_0x352386,_0x4ba864){const _0x101f96=_0xeaafbf;return _0x14f037(_0x4aa988['tag'],{'key':_0x200841,...be(_0x4aa988,_0x965d06,_0x4ba864),..._0x352386},(Ee(_0x4aa988,_0x965d06)[_0x101f96(0x1a1)]||[])[_0x101f96(0x194)]((_0xed229f,_0x372dc8)=>G(_0xed229f,_0x200841+'-'+_0x4aa988[_0x101f96(0x185)]+'-'+_0x372dc8,_0x965d06,void 0x0,_0x4ba864)));}function be(_0x260322,_0x193244,_0x1241b9){const _0x453856=_0xeaafbf,_0x1916a5={..._0x260322['attrs']};_0x1241b9!=null&&_0x1241b9[_0x453856(0x150)]&&_0x1916a5[_0x453856(0x198)]===_0x453856(0x150)&&(_0x1916a5[_0x453856(0x198)]=_0x1241b9[_0x453856(0x150)]),_0x260322['tag']===_0x453856(0x170)&&_0x1916a5['id']&&(_0x1916a5['id']=_0x1916a5['id']+_0x193244['idSuffix']),Object['entries'](_0x1916a5)[_0x453856(0x19b)](([_0x21237a,_0x2b6fb7])=>{const _0x28e993=_0x453856;_0x21237a===_0x28e993(0x170)&&typeof _0x2b6fb7==_0x28e993(0x1ae)&&(_0x1916a5[_0x21237a]=_0x2b6fb7[_0x28e993(0x173)](/url\(#(.*)\)/,'url(#$1'+_0x193244['idSuffix']+')'));});const {defIds:_0x2de0f6}=_0x193244;return!_0x2de0f6||_0x2de0f6[_0x453856(0x1eb)]===0x0||(_0x260322[_0x453856(0x185)]===_0x453856(0x16b)&&_0x1916a5['xlink:href']&&(_0x1916a5[_0x453856(0x1ba)]=_0x1916a5[_0x453856(0x1ba)]+_0x193244[_0x453856(0x181)]),Object[_0x453856(0x161)](_0x1916a5)['forEach'](([_0x381f4b,_0x4053b4])=>{const _0x28fae8=_0x453856;typeof _0x4053b4==_0x28fae8(0x1ae)&&(_0x1916a5[_0x381f4b]=_0x4053b4[_0x28fae8(0x173)](/url\(#(.*)\)/,_0x28fae8(0x165)+_0x193244[_0x28fae8(0x181)]+')'));})),_0x1916a5;}function Ee(_0x29154a,_0x42a8e8){const _0x41952d=_0xeaafbf;var _0x22b5e6;const {defIds:_0x18175e}=_0x42a8e8;return!_0x18175e||_0x18175e['length']===0x0?_0x29154a:_0x29154a['tag']==='defs'&&((_0x22b5e6=_0x29154a[_0x41952d(0x1a1)])!=null&&_0x22b5e6[_0x41952d(0x1eb)])?{..._0x29154a,'children':_0x29154a[_0x41952d(0x1a1)][_0x41952d(0x194)](_0x5ecaa4=>typeof _0x5ecaa4[_0x41952d(0x1f6)]['id']=='string'&&_0x18175e&&_0x18175e[_0x41952d(0x156)](_0x5ecaa4[_0x41952d(0x1f6)]['id'])?{..._0x5ecaa4,'attrs':{..._0x5ecaa4['attrs'],'id':_0x5ecaa4[_0x41952d(0x1f6)]['id']+_0x42a8e8[_0x41952d(0x181)]}}:_0x5ecaa4)}:_0x29154a;}function Oe(){const _0x429dad=_0xeaafbf;return Math[_0x429dad(0x154)]()['toString'](0x24)['substring'](0x2,0x8);}k['displayName']=_0xeaafbf(0x1b0);const we={'tag':_0xeaafbf(0x1d7),'attrs':{'xmlns':_0xeaafbf(0x1b4),'fill':_0xeaafbf(0x1ca),'viewBox':_0xeaafbf(0x1e8),'width':'1em','height':_0xeaafbf(0x1c5)},'children':[{'tag':_0xeaafbf(0x1d6),'attrs':{'fill':'currentColor','d':_0xeaafbf(0x1b9)}},{'tag':_0xeaafbf(0x1d6),'attrs':{'fill':_0xeaafbf(0x18e),'d':_0xeaafbf(0x199),'fillRule':_0xeaafbf(0x1ec),'clipRule':_0xeaafbf(0x1ec)}}]},W=_0x35b873(function(_0x2586dc,_0x410ffd){const _0x34b4cb=_0xeaafbf;return _0x14f037(k,Object['assign']({},_0x2586dc,{'id':_0x34b4cb(0x151),'ref':_0x410ffd,'icon':we}));});W[_0xeaafbf(0x1c3)]=_0xeaafbf(0x17e);class L extends _0x469b92{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0xeaafbf(0x1b3)](_0x3458e5){const _0x47b0b9=_0xeaafbf;return this[_0x47b0b9(0x1cd)][_0x47b0b9(0x19f)](_0x3458e5),_0x1332f1(()=>this[_0x47b0b9(0x1cd)]['delete'](_0x3458e5));}[_0xeaafbf(0x1a9)](_0x5352e4){const _0x83f52b=_0xeaafbf;return this[_0x83f52b(0x1e3)][_0x83f52b(0x19f)](_0x5352e4),_0x1332f1(()=>this[_0x83f52b(0x1e3)][_0x83f52b(0x1b6)](_0x5352e4));}[_0xeaafbf(0x155)](_0x4217a3){const _0x49c1ce=_0xeaafbf;return this[_0x49c1ce(0x1cd)]['has'](_0x4217a3);}[_0xeaafbf(0x17a)](_0x458ab1){const _0x1eefcb=_0xeaafbf;return Array[_0x1eefcb(0x174)](this['_reporters'])[_0x1eefcb(0x194)](_0x494c12=>_0x494c12(_0x458ab1));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0xeac1a2,_0x550436,_0x5bf40,_0x928e9b)=>{const _0x3898e2=_0xeaafbf;for(var _0x336691=_0x928e9b>0x1?void 0x0:_0x928e9b?Ne(_0x550436,_0x5bf40):_0x550436,_0xf083b7=_0xeac1a2[_0x3898e2(0x1eb)]-0x1,_0x27c0d7;_0xf083b7>=0x0;_0xf083b7--)(_0x27c0d7=_0xeac1a2[_0xf083b7])&&(_0x336691=_0x27c0d7(_0x336691)||_0x336691);return _0x336691;},_=(_0x2f0c3c,_0x240e29)=>(_0x548fd3,_0x1cb362)=>_0x240e29(_0x548fd3,_0x1cb362,_0x2f0c3c);let S=class extends _0x53e8b0{constructor(_0x177280,_0x178e3a,_0x4786a1){const _0x193f23=_0xeaafbf;super(),u(this,_0x193f23(0x1d3),new Map()),(this['_univerInstanceService']=_0x177280,this[_0x193f23(0x187)]=_0x178e3a,this[_0x193f23(0x1a4)]=_0x4786a1,this['_init']());}async[_0xeaafbf(0x16e)](_0x1ee66d){const _0x3e853a=_0xeaafbf;return this['_entities']['has'](_0x1ee66d)||await this[_0x3e853a(0x1de)](_0x1ee66d),this['_entities'][_0x3e853a(0x175)](_0x1ee66d);}['getLiveShareCoordinatorSync'](_0x2eaf9e){const _0x2a439b=_0xeaafbf;var _0x566f31;return(_0x566f31=this[_0x2a439b(0x1d3)]['get'](_0x2eaf9e))!=null?_0x566f31:null;}[_0xeaafbf(0x195)](){const _0x138478=_0xeaafbf;this[_0x138478(0x191)]['getTypeOfUnitAdded$'](_0x59dbcd['UNIVER_SHEET'])[_0x138478(0x1e2)](_0x5b42f5(this[_0x138478(0x1dd)]))[_0x138478(0x1a2)](async _0x4e3e4a=>{const _0x1c95df=_0x138478,_0x35a83f=_0x4e3e4a['getUnitId']();this[_0x1c95df(0x1d3)]['has'](_0x35a83f)||this['_startLiveShareCoordinator'](_0x35a83f);}),this['_univerInstanceService'][_0x138478(0x14d)](_0x59dbcd[_0x138478(0x1c9)])['pipe'](_0x5b42f5(this[_0x138478(0x1dd)]))[_0x138478(0x1a2)](_0x34b40d=>{const _0x387cdc=_0x138478,_0x2c7b46=_0x34b40d[_0x387cdc(0x1e7)](),_0x187c8c=this[_0x387cdc(0x1d3)]['get'](_0x2c7b46);_0x187c8c==null||_0x187c8c[_0x387cdc(0x1ab)]();});}async[_0xeaafbf(0x1de)](_0x2fd9b0){const _0x105aa4=_0xeaafbf,_0x5ea380=await this[_0x105aa4(0x1a4)][_0x105aa4(0x1e6)](_0x2fd9b0),_0x5c0e61=this['_injector'][_0x105aa4(0x19a)](N,_0x2fd9b0,_0x5ea380);return _0x5c0e61[_0x105aa4(0x1f2)](),this['_entities'][_0x105aa4(0x168)](_0x2fd9b0,_0x5c0e61),_0x5c0e61;}};S=Y([_(0x0,_0xe4bcbd),_(0x1,_0x3ffeae(_0x3e453a)),_(0x2,_0x3ffeae(_0x20d5f8))],S);var c=(_0x1b0196=>(_0x1b0196['OFFLINE']=_0xeaafbf(0x1b1),_0x1b0196[_0xeaafbf(0x1ea)]='idle',_0x1b0196[_0xeaafbf(0x1a7)]=_0xeaafbf(0x14f),_0x1b0196[_0xeaafbf(0x18c)]=_0xeaafbf(0x1c1),_0x1b0196[_0xeaafbf(0x1ac)]=_0xeaafbf(0x1e0),_0x1b0196))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x53e8b0{constructor(_0x3402d4,_0x10c663,_0x35e49b,_0x4cee76,_0x2ba87e){const _0x2d9361=_0xeaafbf;super(),u(this,_0x2d9361(0x1e4),new _0xe1c438('idle')),u(this,_0x2d9361(0x164),this['_status$'][_0x2d9361(0x190)]()),u(this,_0x2d9361(0x195),!0x1),u(this,_0x2d9361(0x1c7),null),u(this,_0x2d9361(0x179),null),(this['_unitID']=_0x3402d4,this['_collabSession']=_0x10c663,this['_configService']=_0x35e49b,this[_0x2d9361(0x1af)]=_0x4cee76,this[_0x2d9361(0x157)]=_0x2ba87e);}get[_0xeaafbf(0x186)](){const _0xd7cc41=_0xeaafbf;return this[_0xd7cc41(0x1e4)][_0xd7cc41(0x177)]();}[_0xeaafbf(0x1ab)](){const _0x34dd90=_0xeaafbf;var _0x37718f;(_0x37718f=this[_0x34dd90(0x1c7)])==null||_0x37718f['dispose'](),this[_0x34dd90(0x1e4)][_0x34dd90(0x16c)](_0x34dd90(0x1b5)),this['_status$']['complete']();}[_0xeaafbf(0x1a0)](){return this['_status'];}[_0xeaafbf(0x1f2)](){const _0x2fe4c5=_0xeaafbf;this['_init']||(this[_0x2fe4c5(0x195)]=!0x0,this[_0x2fe4c5(0x1d9)][_0x2fe4c5(0x1b2)]['pipe'](_0x5b42f5(this[_0x2fe4c5(0x1dd)]))['subscribe'](_0x1f2199=>{const _0x47b8dd=_0x2fe4c5;switch(_0x1f2199){case _0x5d00b9[_0x47b8dd(0x1d8)]:this[_0x47b8dd(0x15a)]();break;case _0x5d00b9['ONLINE']:this['_handleOnline']();break;}}),this[_0x2fe4c5(0x1d9)][_0x2fe4c5(0x158)][_0x2fe4c5(0x1e2)](_0x5b42f5(this[_0x2fe4c5(0x1dd)]))[_0x2fe4c5(0x1a2)](_0xb5e492=>{const _0x3ee01f=_0x2fe4c5,{eventID:_0x3962c5}=_0xb5e492;switch(_0x3962c5){case _0x262122[_0x3ee01f(0x1bc)]:this[_0x3ee01f(0x183)](_0xb5e492);break;case _0x262122['LIVESHARE_OPERATION']:this[_0x3ee01f(0x160)](_0xb5e492);break;case _0x262122[_0x3ee01f(0x1be)]:this[_0x3ee01f(0x1d5)]();break;case _0x262122[_0x3ee01f(0x169)]:this[_0x3ee01f(0x17d)](_0xb5e492);break;}}));}[_0xeaafbf(0x152)](){const _0x37ce68=_0xeaafbf;this[_0x37ce68(0x1d9)]['send']({'eventID':_0x262122[_0x37ce68(0x159)],'data':{'unitID':this[_0x37ce68(0x1f4)],'userID':this[_0x37ce68(0x1d9)][_0x37ce68(0x1d1)]()}},this[_0x37ce68(0x1f4)]);}[_0xeaafbf(0x1ce)](){const _0x119916=_0xeaafbf;this['_status']===_0x119916(0x1e0)&&(this['_status$'][_0x119916(0x16c)](_0x119916(0x1b5)),this[_0x119916(0x1d9)]['send']({'eventID':_0x262122[_0x119916(0x1be)],'data':{'unitID':this['_unitID']}},this[_0x119916(0x1f4)]));}['startFollowing'](){const _0x390d27=_0xeaafbf;this[_0x390d27(0x186)]===_0x390d27(0x1c1)&&(this[_0x390d27(0x1e4)][_0x390d27(0x16c)](_0x390d27(0x14f)),this['_startFollowing']());}[_0xeaafbf(0x178)](){const _0x5e21b5=_0xeaafbf;this['_status']===_0x5e21b5(0x14f)&&this[_0x5e21b5(0x1a3)]();}[_0xeaafbf(0x183)](_0x241bf0){const _0xb5da06=_0xeaafbf,{presenter:_0x1b5428}=_0x241bf0[_0xb5da06(0x19e)],_0x1b4d9d=this[_0xb5da06(0x1d9)][_0xb5da06(0x1d1)]();this[_0xb5da06(0x179)]=_0x1b5428,_0x1b5428===_0x1b4d9d?(this[_0xb5da06(0x1a3)](),this[_0xb5da06(0x16f)]()):this[_0xb5da06(0x186)]!=='not-following'&&(this['_stopPresenting'](),this[_0xb5da06(0x1c0)]());}[_0xeaafbf(0x176)](){const _0x5d7f54=_0xeaafbf,_0x39fe61={'eventID':_0x262122['LIVESHARE_FETCH_OPERATIONS']};this[_0x5d7f54(0x1d9)][_0x5d7f54(0x1a8)](_0x39fe61,this['_unitID']);}[_0xeaafbf(0x1d5)](){const _0x37124c=_0xeaafbf;this[_0x37124c(0x179)]=null,this[_0x37124c(0x186)]!=='presenting'&&this[_0x37124c(0x1f0)]();}[_0xeaafbf(0x17d)](_0x25ae0f){const _0x1665f8=_0xeaafbf;if(this['_status']===_0x1665f8(0x14f)&&this[_0x1665f8(0x179)]===_0x25ae0f['data']['memberID']){const _0x57189f=_0x4ddb9c(_0x25ae0f['data'])['mutations']['reverse']()[_0x1665f8(0x18b)](_0x59434=>_0x59434['id']===_0x541fcc['id']);if(_0x57189f){const _0x31bf58=_0x57189f[_0x1665f8(0x17f)][_0x1665f8(0x19c)],_0x371dbd=_0x57189f[_0x1665f8(0x17f)][_0x1665f8(0x1d2)]['id'];setTimeout(()=>{const _0x3ca709=_0x1665f8;this[_0x3ca709(0x157)]['executeCommand'](_0x23cd6c['id'],{'unitId':_0x31bf58,'subUnitId':_0x371dbd},{'fromCollab':!0x0});});}}}[_0xeaafbf(0x16f)](){const _0x2f3047=_0xeaafbf;this['_status$'][_0x2f3047(0x16c)]('presenting');const _0xe52312=new Map(),_0x57b066=this['_commandDisposable']=new _0x5d9210();_0x57b066[_0x2f3047(0x19f)](_0x1332f1(()=>{const _0x55701d=_0x2f3047;_0xe52312['forEach'](_0x4cad1d=>_0x4cad1d[_0x55701d(0x1b7)]()),_0xe52312[_0x55701d(0x14e)]();})),_0x57b066['add'](this['_commandService']['onCommandExecuted'](_0x1db345=>{const _0x448ce9=_0x2f3047;var _0x515726;if(_0x1db345[_0x448ce9(0x1df)]!==_0xef2d8d['OPERATION']||!this[_0x448ce9(0x1af)][_0x448ce9(0x155)](_0x1db345['id']))return;const {id:_0x3788fb}=_0x1db345;let _0x40e6d9;_0xe52312[_0x448ce9(0x184)](_0x3788fb)?_0x40e6d9=_0xe52312[_0x448ce9(0x175)](_0x3788fb):(_0x40e6d9=new _0x444884(),_0xe52312[_0x448ce9(0x168)](_0x3788fb,_0x40e6d9),_0x40e6d9[_0x448ce9(0x1e2)](_0x475c1c((_0x515726=this[_0x448ce9(0x1c8)][_0x448ce9(0x1a5)](Ce))!=null?_0x515726:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x448ce9(0x1a2)](_0x12703d=>{const _0x160c8c=_0x448ce9;this['_collabSession'][_0x160c8c(0x1a8)]({'eventID':_0x262122[_0x160c8c(0x18d)],'data':{'unitID':this[_0x160c8c(0x1f4)],'operations':{[_0x12703d['id']]:{'id':_0x12703d['id'],'params':JSON[_0x160c8c(0x162)](_0x12703d[_0x160c8c(0x17f)])}}}},this[_0x160c8c(0x1f4)]);})),_0x40e6d9['next'](_0x1db345);})),this[_0x2f3047(0x1af)][_0x2f3047(0x17a)](this[_0x2f3047(0x1f4)])[_0x2f3047(0x19b)](_0x59d3d3=>this['_collabSession'][_0x2f3047(0x1a8)]({'eventID':_0x262122[_0x2f3047(0x18d)],'data':{'unitID':this[_0x2f3047(0x1f4)],'operations':{[_0x59d3d3['id']]:{'id':_0x59d3d3['id'],'params':JSON['stringify'](_0x59d3d3[_0x2f3047(0x17f)])}}}},this[_0x2f3047(0x1f4)]));}[_0xeaafbf(0x1f5)](){const _0x5ce73b=_0xeaafbf;var _0x1b4eb0;this[_0x5ce73b(0x1e4)][_0x5ce73b(0x16c)](_0x5ce73b(0x1b5)),(_0x1b4eb0=this[_0x5ce73b(0x1c7)])==null||_0x1b4eb0[_0x5ce73b(0x1ab)](),this['_commandDisposable']=null;}[_0xeaafbf(0x1c0)](){const _0x5bdf5a=_0xeaafbf;var _0x52daa3;(_0x52daa3=this[_0x5bdf5a(0x1c7)])==null||_0x52daa3[_0x5bdf5a(0x1ab)](),this[_0x5bdf5a(0x1e4)][_0x5bdf5a(0x16c)]('following');}['_beIdle'](){const _0xfb8a17=_0xeaafbf;var _0x24eedc;this['_status$'][_0xfb8a17(0x16c)](_0xfb8a17(0x1b5)),(_0x24eedc=this[_0xfb8a17(0x1c7)])==null||_0x24eedc[_0xfb8a17(0x1ab)](),this[_0xfb8a17(0x1c7)]=null;}['_stopFollowing'](){const _0x9cf165=_0xeaafbf;var _0x1c2615;this[_0x9cf165(0x1e4)]['next']('not-following'),(_0x1c2615=this[_0x9cf165(0x1c7)])==null||_0x1c2615[_0x9cf165(0x1ab)]();}['_handleOperation'](_0x56bd0b){const _0x5f1201=_0xeaafbf;if(['presenting','not-following',_0x5f1201(0x1b1)][_0x5f1201(0x156)](this[_0x5f1201(0x186)])||!_0x56bd0b['data']['presenter']||_0x56bd0b[_0x5f1201(0x19e)][_0x5f1201(0x15f)]===this[_0x5f1201(0x1d9)]['getMemberID']())return;this['_status']===_0x5f1201(0x1b5)&&this['_startFollowing']();const _0x185482=_0x56bd0b[_0x5f1201(0x19e)][_0x5f1201(0x1d0)];Object[_0x5f1201(0x197)](_0x185482)[_0x5f1201(0x19b)](_0x2176bf=>{const _0x3a16ab=_0x5f1201;this[_0x3a16ab(0x157)][_0x3a16ab(0x1cb)](_0x2176bf['id'],_0x2176bf[_0x3a16ab(0x17f)]?JSON['parse'](_0x2176bf[_0x3a16ab(0x17f)]):null,{'fromCollab':!0x0});});}[_0xeaafbf(0x15a)](){const _0x41b0cf=_0xeaafbf;var _0x4655eb;this[_0x41b0cf(0x1e4)][_0x41b0cf(0x16c)](_0x41b0cf(0x1b1)),(_0x4655eb=this[_0x41b0cf(0x1c7)])==null||_0x4655eb[_0x41b0cf(0x1ab)]();}[_0xeaafbf(0x163)](){const _0x54e03c=_0xeaafbf;this[_0x54e03c(0x1e4)][_0x54e03c(0x16c)]('idle'),this['_fetchOperations']();}};N=Y([_(0x2,_0x4c72af),_(0x3,_0x3ffeae(L)),_(0x4,_0x465a1b)],N);function Le(){const _0x3e3a6b=_0xeaafbf,_0x2fe6ce=_0x5ec2d9(S),_0x14569b=_0x5ec2d9(_0xe4bcbd),_0x4ed2cf=_0x19a9c6(()=>_0x14569b[_0x3e3a6b(0x188)](_0x59dbcd['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x433c77,_0x146c40]=_0x2b6511(null),[_0x218c0a,_0x4c7962]=_0x2b6511(c[_0x3e3a6b(0x1ea)]),_0x16c7cb=_0x54096f(null);return _0x51812f(()=>(_0x4ed2cf&&_0x2fe6ce['getLiveShareCoordinator'](_0x4ed2cf[_0x3e3a6b(0x1e7)]())[_0x3e3a6b(0x18f)](_0x151884=>{const _0x2d8ee4=_0x3e3a6b;_0x146c40(_0x151884),_0x16c7cb['current']=_0x151884['status$'][_0x2d8ee4(0x1a2)](_0x4523a1=>{_0x4c7962(_0x4523a1);});}),()=>{const _0x2ed7c0=_0x3e3a6b;var _0x41decb;(_0x41decb=_0x16c7cb[_0x2ed7c0(0x1aa)])==null||_0x41decb[_0x2ed7c0(0x166)](),_0x16c7cb['current']=null;}),[_0x4ed2cf,_0x2fe6ce]),_0x433c77?_0x115494(_0x4dbc1e,{'align':_0x3e3a6b(0x19d),'disabled':_0x218c0a===c['OFFLINE'],'className':_0x3e3a6b(0x1cc),'overlay':_0x115494(Re,{'status':_0x218c0a,'coordinator':_0x433c77}),'children':_0x115494(_0x3e3a6b(0x192),{'className':_0x5af8db(_0x3e3a6b(0x15e),{'univer-cursor-not-allowed':_0x218c0a===c[_0x3e3a6b(0x1d8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x218c0a!==c['OFFLINE']}),'type':'button','children':_0x115494(W,{'className':_0x3e3a6b(0x189)})})}):null;}function Re(_0x5a29e0){const _0xa34a80=_0xeaafbf,{status:_0x191d5c,coordinator:_0x35fec2}=_0x5a29e0;switch(_0x191d5c){case c[_0xa34a80(0x1ea)]:return _0x115494($e,{'coordinator':_0x35fec2});case c[_0xa34a80(0x1a7)]:return _0x115494(xe,{'coordinator':_0x35fec2});case c[_0xa34a80(0x18c)]:return _0x115494(Pe,{'coordinator':_0x35fec2});case c[_0xa34a80(0x1d8)]:return _0x115494(Te,{});case c[_0xa34a80(0x1ac)]:return _0x115494(Ae,{'coordinator':_0x35fec2});default:return null;}}function $e(_0xed49df){const _0x446b3f=_0xeaafbf,{coordinator:_0x3d93d7}=_0xed49df;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x446b3f(0x14c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x446b3f(0x16a)}),_0x115494(_0x39e985,{'onClick':()=>_0x3d93d7[_0x446b3f(0x152)](),'children':_0x446b3f(0x18a)})]});}function xe(_0x567050){const _0x2b63c2=_0xeaafbf,{coordinator:_0x4eedf0}=_0x567050;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x2b63c2(0x14c),{'className':_0x2b63c2(0x1ee),'children':_0x2b63c2(0x1e1)}),_0x115494(_0x39e985,{'onClick':()=>_0x4eedf0[_0x2b63c2(0x178)](),'children':_0x2b63c2(0x1f1)})]});}function Pe(_0x24ca1c){const _0x42fc4e=_0xeaafbf,{coordinator:_0x140011}=_0x24ca1c;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x42fc4e(0x14c),{'className':_0x42fc4e(0x1ee),'children':_0x42fc4e(0x1db)}),_0x115494(_0x39e985,{'variant':_0x42fc4e(0x153),'onClick':()=>_0x140011[_0x42fc4e(0x1ad)](),'children':_0x42fc4e(0x1bf)})]});}function Ae(_0x57ba39){const _0x1d5485=_0xeaafbf,{coordinator:_0x2a6bc1}=_0x57ba39;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x1d5485(0x14c),{'className':_0x1d5485(0x1ee),'children':_0x1d5485(0x171)}),_0x115494(_0x39e985,{'variant':'default','onClick':()=>_0x2a6bc1['stopPresenting'](),'children':_0x1d5485(0x15c)})]});}function Te(){const _0xed729e=_0xeaafbf;return _0x115494(_0x8cbe17,{'children':_0xed729e(0x1cf)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x1070ca,_0x2ea655,_0x29f5f4,_0x2d21d1)=>{for(var _0x338152=_0x2d21d1>0x1?void 0x0:_0x2d21d1?Fe(_0x2ea655,_0x29f5f4):_0x2ea655,_0x10d774=_0x1070ca['length']-0x1,_0x4413f7;_0x10d774>=0x0;_0x10d774--)(_0x4413f7=_0x1070ca[_0x10d774])&&(_0x338152=_0x4413f7(_0x338152)||_0x338152);return _0x338152;},A=(_0x4b46c4,_0x2a4cd2)=>(_0x343d3d,_0x3a7621)=>_0x2a4cd2(_0x343d3d,_0x3a7621,_0x4b46c4);let m=class extends _0x469b92{constructor(_0x443b42,_0xceac33){const _0x14068c=_0xeaafbf;super(),this[_0x14068c(0x187)]=_0x443b42,this[_0x14068c(0x16d)]=_0xceac33,this[_0x14068c(0x1e9)]();}[_0xeaafbf(0x1e9)](){const _0x23f52b=_0xeaafbf;this[_0x23f52b(0x15d)](this[_0x23f52b(0x16d)][_0x23f52b(0x1e5)](_0x4f4074[_0x23f52b(0x15b)],()=>_0x445f22(Le,this[_0x23f52b(0x187)])));}};m=He([A(0x0,_0x3ffeae(_0x3e453a)),A(0x1,_0x59077d)],m);const ye='live-share.config',T={};var Ue=Object[_0xeaafbf(0x1d4)],Ve=(_0x5e3edc,_0x2be997,_0x290c48,_0x142563)=>{const _0x106a35=_0xeaafbf;for(var _0xb2325c=_0x142563>0x1?void 0x0:_0x142563?Ue(_0x2be997,_0x290c48):_0x2be997,_0x402af1=_0x5e3edc[_0x106a35(0x1eb)]-0x1,_0x20c30a;_0x402af1>=0x0;_0x402af1--)(_0x20c30a=_0x5e3edc[_0x402af1])&&(_0xb2325c=_0x20c30a(_0xb2325c)||_0xb2325c);return _0xb2325c;},je=(_0x354443,_0x347a1)=>(_0x3e23cb,_0x363b5b)=>_0x347a1(_0x3e23cb,_0x363b5b,_0x354443);let I=class extends _0x469b92{constructor(_0x3374f9){const _0x2d8c35=_0xeaafbf;super(),this[_0x2d8c35(0x1af)]=_0x3374f9,this['_init']();}['_init'](){[_0x19b70e['id'],_0x49dea0['id'],_0x23cd6c['id']]['forEach'](_0x4892fc=>{const _0x14136e=_0xdc09;this[_0x14136e(0x15d)](this[_0x14136e(0x1af)][_0x14136e(0x1b3)](_0x4892fc));});}};I=Ve([je(0x0,_0x3ffeae(L))],I);var Me=Object[_0xeaafbf(0x17b)],ke=Object[_0xeaafbf(0x1d4)],Ge=(_0x2d9aab,_0x2ae8c1,_0x278e7a)=>_0x2ae8c1 in _0x2d9aab?Me(_0x2d9aab,_0x2ae8c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x278e7a}):_0x2d9aab[_0x2ae8c1]=_0x278e7a,We=(_0x2d8af8,_0x59446d,_0x1620ca,_0x40fd14)=>{for(var _0x3a2f05=_0x40fd14>0x1?void 0x0:_0x40fd14?ke(_0x59446d,_0x1620ca):_0x59446d,_0x7c7518=_0x2d8af8['length']-0x1,_0x256f51;_0x7c7518>=0x0;_0x7c7518--)(_0x256f51=_0x2d8af8[_0x7c7518])&&(_0x3a2f05=_0x256f51(_0x3a2f05)||_0x3a2f05);return _0x3a2f05;},F=(_0x28e6b1,_0x24f0b7)=>(_0x852165,_0x264c14)=>_0x24f0b7(_0x852165,_0x264c14,_0x28e6b1),B=(_0x384a9c,_0x1e8801,_0xba87a7)=>Ge(_0x384a9c,typeof _0x1e8801!=_0xeaafbf(0x180)?_0x1e8801+'':_0x1e8801,_0xba87a7);const Ye=_0xeaafbf(0x1ed);let b=class extends _0x5b0277{constructor(_0x4e333b=T,_0x39bb27,_0x4ed240){const _0x148cdf=_0xeaafbf;super(),this[_0x148cdf(0x196)]=_0x4e333b,this[_0x148cdf(0x187)]=_0x39bb27,this[_0x148cdf(0x1c8)]=_0x4ed240;const {..._0x177318}=_0x3e2e87({},T,this[_0x148cdf(0x196)]);this[_0x148cdf(0x1c8)][_0x148cdf(0x182)](ye,_0x177318);}[_0xeaafbf(0x17c)](){const _0x43f473=_0xeaafbf;_0x5b8f83(this[_0x43f473(0x187)],_0xed68fc([[L],[S],[I],[m]],this[_0x43f473(0x196)][_0x43f473(0x1f3)])),_0x98ac8(this[_0x43f473(0x187)],[[I]]);}[_0xeaafbf(0x1c6)](){_0x98ac8(this['_injector'],[[m]]);}};B(b,_0xeaafbf(0x1df),_0x59dbcd[_0xeaafbf(0x167)]),B(b,_0xeaafbf(0x172),Ye),b=We([_0x168090(_0x2f3e48),F(0x1,_0x3ffeae(_0x3e453a)),F(0x2,_0x4c72af)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};function _0x8dab(){const _0x21dcb4=['You\x27are\x20offline.','operations','getMemberID','sheet','_entities','getOwnPropertyDescriptor','_handleTerminate','path','svg','OFFLINE','_collabSession','66fjrokb','You\x27re\x20not\x20following\x20the\x20presenter','defIds','dispose$','_startLiveShareCoordinator','type','presenting','You\x27re\x20following\x20the\x20presenter','pipe','_reporters','_status$','registerComponent','requireSession','getUnitId','0\x200\x2017\x2017','_mountLiveShare','IDLE','length','evenodd','UNIVER_LIVE_SHARE_PLUGIN','univer-mb-3\x20univer-w-full\x20univer-text-sm','464394hcOILR','_beIdle','Stop\x20following','init','override','_unitID','_stopPresenting','attrs','div','getTypeOfUnitDisposed$','clear','following','colorChannel1','live-share-icon','tryStartPresenting','text','random','shouldShareOperation','includes','_commandService','event$','LIVESHARE_REQUEST_HOST','_handleOffline','HEADER_MENU','Stop\x20presenting','disposeWithMe','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','presenter','_handleOperation','entries','stringify','_handleOnline','status$','url(#$1','unsubscribe','UNIVER_UNKNOWN','set','NEW_CHANGESETS','Present\x20this\x20document','use','next','_uiPartsService','getLiveShareCoordinator','_startPresenting','mask','You\x27re\x20presenting\x20the\x20document','pluginName','replace','from','get','_fetchOperations','getValue','stopFollowing','_presenter','getInitialStates','defineProperty','onStarting','_handleNewChangeSets','LiveShareIcon','params','symbol','idSuffix','setConfig','_handleNewHost','has','tag','_status','_injector','getCurrentTypeOfUnit$','univer-size-4','Start','find','NOT_FOLLOWING','LIVESHARE_OPERATION','currentColor','then','asObservable','_univerInstanceService','button','617564galGbR','map','_init','_config','values','fill','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','createInstance','forEach','unitId','end','data','add','getStatus','children','subscribe','_stopFollowing','_collabSessionService','getConfig','1966715IjmesY','FOLLOWING','send','registerInitialStateReporter','current','dispose','PRESENTING','startFollowing','string','_liveShareService','UniverIcon','offline','sessionStatus$','registerSharedOperation','http://www.w3.org/2000/svg','idle','delete','complete','9GCYmqs','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','xlink:href','2282085tUNUdw','LIVESHARE_NEW_HOST','1947232rPoilJ','LIVESHARE_TERMINATE','Start\x20following','_startFollowing','not-following','274964UGWBGz','displayName','30725560CxnjQF','1em','onRendered','_commandDisposable','_configService','UNIVER_SHEET','none','executeCommand','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','_sharedOperations','stopPresenting'];_0x8dab=function(){return _0x21dcb4;};return _0x8dab();}
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x566e6d=_0x1d5c;(function(_0xfe3e26,_0x3c7c00){const _0x352859=_0x1d5c,_0x2d6c75=_0xfe3e26();while(!![]){try{const _0x150c73=-parseInt(_0x352859(0x1ef))/0x1*(-parseInt(_0x352859(0x1f2))/0x2)+parseInt(_0x352859(0x1e7))/0x3+parseInt(_0x352859(0x1f4))/0x4*(parseInt(_0x352859(0x1ed))/0x5)+parseInt(_0x352859(0x1ec))/0x6*(-parseInt(_0x352859(0x1df))/0x7)+-parseInt(_0x352859(0x1f0))/0x8+-parseInt(_0x352859(0x1f3))/0x9+parseInt(_0x352859(0x1e3))/0xa*(parseInt(_0x352859(0x1e2))/0xb);if(_0x150c73===_0x3c7c00)break;else _0x2d6c75['push'](_0x2d6c75['shift']());}catch(_0x2882ef){_0x2d6c75['push'](_0x2d6c75['shift']());}}}(_0x9b4e,0x3a3db));function _0x9b4e(){const _0x5d812a=['3967513XtGjYj','20UZimWt','_liveShareController','getCurrentUnitOfType','startFollowing','503892AeFFQM','stopFollowing','stopPresenting','symbol','IDLE','5898pbuKHy','24380cfrGNl','LiveShareStatusEnum','17926hKTZcM','1110264ngNcZX','extend','6TDNNzm','3272751GaoaTs','164BMxRRG','getLiveShareCoordinatorSync','_injector','tryStartPresenting','get','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UNIVER_SHEET','_initialize','getUnitId','2863jQXlMS','No\x20active\x20workbook\x20found.','getLiveShareStatus'];_0x9b4e=function(){return _0x5d812a;};return _0x9b4e();}var l=Object['defineProperty'],w=(_0x2849d3,_0x4fe4fb,_0x3c8219)=>_0x4fe4fb in _0x2849d3?l(_0x2849d3,_0x4fe4fb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c8219}):_0x2849d3[_0x4fe4fb]=_0x3c8219,v=(_0xc198ba,_0x88243c,_0x57d0c8)=>w(_0xc198ba,typeof _0x88243c!=_0x566e6d(0x1ea)?_0x88243c+'':_0x88243c,_0x57d0c8);import{LiveShareController as _0x446f47,LiveShareStatus as _0x40ff7a}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x131130,UniverInstanceType as _0x5b3072}from'@univerjs/core';import{FUniver as _0x2b5b4d,FEnum as _0x3ec844}from'@univerjs/core/facade';class g extends _0x2b5b4d{constructor(){const _0x5cec77=_0x566e6d;super(...arguments),v(this,_0x5cec77(0x1e4));}[_0x566e6d(0x1dd)](_0x4d9c37){const _0x278247=_0x566e6d;this[_0x278247(0x1e4)]=_0x4d9c37[_0x278247(0x1da)](_0x446f47);}[_0x566e6d(0x1e1)](){const _0x3102c6=_0x566e6d;var _0x6bcf62;const _0x23b06a=this[_0x3102c6(0x1f6)][_0x3102c6(0x1da)](_0x131130)[_0x3102c6(0x1e5)](_0x5b3072[_0x3102c6(0x1dc)]);if(!_0x23b06a)throw new Error(_0x3102c6(0x1e0));const _0x5a33de=_0x23b06a[_0x3102c6(0x1de)](),_0x4c75b4=this[_0x3102c6(0x1e4)][_0x3102c6(0x1f5)](_0x5a33de);return(_0x6bcf62=_0x4c75b4==null?void 0x0:_0x4c75b4['getStatus']())!=null?_0x6bcf62:_0x40ff7a[_0x3102c6(0x1eb)];}[_0x566e6d(0x1e6)](){const _0x199c60=_0x566e6d,_0x45ff6b=this[_0x199c60(0x1f6)][_0x199c60(0x1da)](_0x131130)[_0x199c60(0x1e5)](_0x5b3072[_0x199c60(0x1dc)]);if(!_0x45ff6b)throw new Error(_0x199c60(0x1e0));const _0x4bedce=_0x45ff6b['getUnitId'](),_0x3b9280=this[_0x199c60(0x1e4)][_0x199c60(0x1f5)](_0x4bedce);if(!_0x3b9280)throw new Error(_0x199c60(0x1db));_0x3b9280[_0x199c60(0x1e6)]();}[_0x566e6d(0x1e8)](){const _0x4e861a=_0x566e6d,_0x123206=this[_0x4e861a(0x1f6)]['get'](_0x131130)['getCurrentUnitOfType'](_0x5b3072[_0x4e861a(0x1dc)]);if(!_0x123206)throw new Error(_0x4e861a(0x1e0));const _0x1e8faa=_0x123206[_0x4e861a(0x1de)](),_0x3c97aa=this[_0x4e861a(0x1e4)][_0x4e861a(0x1f5)](_0x1e8faa);if(!_0x3c97aa)throw new Error(_0x4e861a(0x1db));_0x3c97aa[_0x4e861a(0x1e8)]();}['startPresenting'](){const _0x30165d=_0x566e6d,_0x53fcdf=this['_injector']['get'](_0x131130)[_0x30165d(0x1e5)](_0x5b3072[_0x30165d(0x1dc)]);if(!_0x53fcdf)throw new Error(_0x30165d(0x1e0));const _0x408edf=_0x53fcdf[_0x30165d(0x1de)](),_0x1c207a=this[_0x30165d(0x1e4)][_0x30165d(0x1f5)](_0x408edf);if(!_0x1c207a)throw new Error(_0x30165d(0x1db));_0x1c207a[_0x30165d(0x1f7)]();}[_0x566e6d(0x1e9)](){const _0x278e82=_0x566e6d,_0x1ca5dd=this[_0x278e82(0x1f6)][_0x278e82(0x1da)](_0x131130)['getCurrentUnitOfType'](_0x5b3072[_0x278e82(0x1dc)]);if(!_0x1ca5dd)throw new Error('No\x20active\x20workbook\x20found.');const _0x16a718=_0x1ca5dd['getUnitId'](),_0x2c1e5d=this[_0x278e82(0x1e4)][_0x278e82(0x1f5)](_0x16a718);if(!_0x2c1e5d)throw new Error(_0x278e82(0x1db));_0x2c1e5d[_0x278e82(0x1e9)]();}}_0x2b5b4d[_0x566e6d(0x1f1)](g);function _0x1d5c(_0x428f88,_0x4a14bb){_0x428f88=_0x428f88-0x1da;const _0x9b4e2b=_0x9b4e();let _0x1d5cf2=_0x9b4e2b[_0x428f88];return _0x1d5cf2;}class f extends _0x3ec844{get[_0x566e6d(0x1ee)](){return _0x40ff7a;}}_0x3ec844[_0x566e6d(0x1f1)](f);
1
+ const _0x19b141=_0x53dd;(function(_0x510e30,_0x21a070){const _0x3f0bca=_0x53dd,_0x22cb3e=_0x510e30();while(!![]){try{const _0x2270cb=parseInt(_0x3f0bca(0x12b))/0x1*(parseInt(_0x3f0bca(0x120))/0x2)+parseInt(_0x3f0bca(0x122))/0x3+parseInt(_0x3f0bca(0x136))/0x4+-parseInt(_0x3f0bca(0x125))/0x5*(-parseInt(_0x3f0bca(0x12e))/0x6)+parseInt(_0x3f0bca(0x137))/0x7+parseInt(_0x3f0bca(0x11e))/0x8+parseInt(_0x3f0bca(0x121))/0x9*(-parseInt(_0x3f0bca(0x133))/0xa);if(_0x2270cb===_0x21a070)break;else _0x22cb3e['push'](_0x22cb3e['shift']());}catch(_0x4f2e98){_0x22cb3e['push'](_0x22cb3e['shift']());}}}(_0x406e,0x54b90));var l=Object[_0x19b141(0x130)],w=(_0xfdb7f9,_0x849b5a,_0xa45fa8)=>_0x849b5a in _0xfdb7f9?l(_0xfdb7f9,_0x849b5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa45fa8}):_0xfdb7f9[_0x849b5a]=_0xa45fa8,v=(_0x76a04e,_0xb9c0e0,_0x5be59d)=>w(_0x76a04e,typeof _0xb9c0e0!=_0x19b141(0x126)?_0xb9c0e0+'':_0xb9c0e0,_0x5be59d);import{LiveShareController as _0x2cb6f1,LiveShareStatus as _0x1a5913}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x240b98,UniverInstanceType as _0x5dad90}from'@univerjs/core';import{FUniver as _0x3008c3,FEnum as _0xecc156}from'@univerjs/core/facade';function _0x53dd(_0xf68f15,_0x1ff45b){_0xf68f15=_0xf68f15-0x11e;const _0x406e43=_0x406e();let _0x53dd48=_0x406e43[_0xf68f15];return _0x53dd48;}class g extends _0x3008c3{constructor(){const _0x47105d=_0x19b141;super(...arguments),v(this,_0x47105d(0x13a));}['_initialize'](_0x5728bd){const _0x43b6ae=_0x19b141;this[_0x43b6ae(0x13a)]=_0x5728bd[_0x43b6ae(0x127)](_0x2cb6f1);}[_0x19b141(0x131)](){const _0x58f527=_0x19b141;var _0x4e5aa9;const _0x5e4049=this[_0x58f527(0x139)][_0x58f527(0x127)](_0x240b98)[_0x58f527(0x124)](_0x5dad90[_0x58f527(0x12d)]);if(!_0x5e4049)throw new Error(_0x58f527(0x12a));const _0x2ea060=_0x5e4049['getUnitId'](),_0x144bc7=this[_0x58f527(0x13a)]['getLiveShareCoordinatorSync'](_0x2ea060);return(_0x4e5aa9=_0x144bc7==null?void 0x0:_0x144bc7[_0x58f527(0x12f)]())!=null?_0x4e5aa9:_0x1a5913[_0x58f527(0x132)];}[_0x19b141(0x135)](){const _0x46e1b2=_0x19b141,_0x4cd5fd=this[_0x46e1b2(0x139)][_0x46e1b2(0x127)](_0x240b98)[_0x46e1b2(0x124)](_0x5dad90[_0x46e1b2(0x12d)]);if(!_0x4cd5fd)throw new Error(_0x46e1b2(0x12a));const _0x2a4b38=_0x4cd5fd[_0x46e1b2(0x123)](),_0x22d5ad=this[_0x46e1b2(0x13a)][_0x46e1b2(0x128)](_0x2a4b38);if(!_0x22d5ad)throw new Error(_0x46e1b2(0x138));_0x22d5ad[_0x46e1b2(0x135)]();}[_0x19b141(0x12c)](){const _0x494fe7=_0x19b141,_0x3d317a=this[_0x494fe7(0x139)][_0x494fe7(0x127)](_0x240b98)[_0x494fe7(0x124)](_0x5dad90['UNIVER_SHEET']);if(!_0x3d317a)throw new Error(_0x494fe7(0x12a));const _0x517dde=_0x3d317a[_0x494fe7(0x123)](),_0x3e00e3=this[_0x494fe7(0x13a)][_0x494fe7(0x128)](_0x517dde);if(!_0x3e00e3)throw new Error(_0x494fe7(0x138));_0x3e00e3['stopFollowing']();}['startPresenting'](){const _0x2bf9bf=_0x19b141,_0x4d06e3=this['_injector']['get'](_0x240b98)['getCurrentUnitOfType'](_0x5dad90[_0x2bf9bf(0x12d)]);if(!_0x4d06e3)throw new Error(_0x2bf9bf(0x12a));const _0x585e38=_0x4d06e3['getUnitId'](),_0x45aa14=this[_0x2bf9bf(0x13a)][_0x2bf9bf(0x128)](_0x585e38);if(!_0x45aa14)throw new Error(_0x2bf9bf(0x138));_0x45aa14['tryStartPresenting']();}[_0x19b141(0x129)](){const _0x5f0070=_0x19b141,_0x2b02e2=this[_0x5f0070(0x139)][_0x5f0070(0x127)](_0x240b98)[_0x5f0070(0x124)](_0x5dad90[_0x5f0070(0x12d)]);if(!_0x2b02e2)throw new Error('No\x20active\x20workbook\x20found.');const _0x3da6de=_0x2b02e2[_0x5f0070(0x123)](),_0x17c536=this[_0x5f0070(0x13a)][_0x5f0070(0x128)](_0x3da6de);if(!_0x17c536)throw new Error(_0x5f0070(0x138));_0x17c536[_0x5f0070(0x129)]();}}function _0x406e(){const _0x454398=['1164670qWoMKd','symbol','get','getLiveShareCoordinatorSync','stopPresenting','No\x20active\x20workbook\x20found.','3PzbrAB','stopFollowing','UNIVER_SHEET','6KjpvBv','getStatus','defineProperty','getLiveShareStatus','IDLE','1360qeBBuD','extend','startFollowing','1705752SGaTMY','2801694ZfcfZm','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_injector','_liveShareController','3033064jIaGAV','LiveShareStatusEnum','352418FCoMoW','128367taiytc','958254sdfIKO','getUnitId','getCurrentUnitOfType'];_0x406e=function(){return _0x454398;};return _0x406e();}_0x3008c3[_0x19b141(0x134)](g);class f extends _0xecc156{get[_0x19b141(0x11f)](){return _0x1a5913;}}_0xecc156[_0x19b141(0x134)](f);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x390b95=_0x3116;(function(_0x35f85c,_0x39acb9){const _0xded7ad=_0x3116,_0x42951d=_0x35f85c();while(!![]){try{const _0x7d4e70=-parseInt(_0xded7ad(0x196))/0x1+parseInt(_0xded7ad(0x162))/0x2*(parseInt(_0xded7ad(0x183))/0x3)+parseInt(_0xded7ad(0x16f))/0x4*(-parseInt(_0xded7ad(0x17c))/0x5)+-parseInt(_0xded7ad(0x16a))/0x6*(-parseInt(_0xded7ad(0x1ef))/0x7)+-parseInt(_0xded7ad(0x1a0))/0x8+parseInt(_0xded7ad(0x1bd))/0x9+parseInt(_0xded7ad(0x1e9))/0xa;if(_0x7d4e70===_0x39acb9)break;else _0x42951d['push'](_0x42951d['shift']());}catch(_0x986e17){_0x42951d['push'](_0x42951d['shift']());}}}(_0x29fb,0xcc781));var J=Object[_0x390b95(0x1ce)],K=(_0x43b6cc,_0x3b9e66,_0x29a90d)=>_0x3b9e66 in _0x43b6cc?J(_0x43b6cc,_0x3b9e66,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29a90d}):_0x43b6cc[_0x3b9e66]=_0x29a90d,u=(_0x2301c9,_0x122eb5,_0x23dcb2)=>K(_0x2301c9,typeof _0x122eb5!=_0x390b95(0x15a)?_0x122eb5+'':_0x122eb5,_0x23dcb2);import{Disposable as _0x40ae42,toDisposable as _0x3bb9da,IUniverInstanceService as _0xd680c7,Inject as _0x3dd3c1,Injector as _0x3c1288,IConfigService as _0x32fcb1,ICommandService as _0x445b6b,RxDisposable as _0x27eba0,UniverInstanceType as _0x1d4865,DisposableCollection as _0x593dd5,CommandType as _0x3757e7,DependentOn as _0x13b935,Plugin as _0x31110c,merge as _0x486150,registerDependencies as _0x22adca,mergeOverrideWithDependencies as _0x5bff08,touchDependencies as _0x56943d}from'@univerjs/core';import{useDependency as _0x3f5ec,useObservable as _0x4e5406,IUIPartsService as _0x1785bb,BuiltInUIPart as _0x187feb,connectInjector as _0x1d951d}from'@univerjs/ui';import{jsx as _0x9f2121,jsxs as _0x26ec1f,Fragment as _0x21e62d}from'react/jsx-runtime';import{Dropdown as _0x2fd8bb,clsx as _0x3bba3d,Button as _0x59b2ac}from'@univerjs/design';import{useRef as _0x32a473,createElement as _0x3cda61,forwardRef as _0x10c801,useState as _0x3c8f49,useEffect as _0x3a79f1}from'react';import{CollaborationEvent as _0x12a62a,parseProtocolChangeset as _0xd51d01}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x399324,SessionStatus as _0x4a16ed,UniverCollaborationClientPlugin as _0x2d986f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x57b8f7,SetWorksheetActiveOperation as _0x4625b}from'@univerjs/sheets';import{BehaviorSubject as _0x3e6ab0,Subject as _0x2dceb8}from'rxjs';import{takeUntil as _0x2f67b3,throttleTime as _0x2091ab}from'rxjs/operators';import{SetZoomRatioOperation as _0x126ff6,SetScrollOperation as _0x4ca130}from'@univerjs/sheets-ui';function k({ref:_0x182122,..._0x17a838}){const _0x2c7e79=_0x390b95,{icon:_0xdb35dd,id:_0x117e14,className:_0x180a8d,extend:_0x16e35b,..._0xa714af}=_0x17a838,_0x1bcd89=(_0x2c7e79(0x174)+_0x117e14+'\x20'+(_0x180a8d||''))[_0x2c7e79(0x1b7)](),_0x3de69b=_0x32a473('_'+Oe());return G(_0xdb35dd,''+_0x117e14,{'defIds':_0xdb35dd[_0x2c7e79(0x165)],'idSuffix':_0x3de69b[_0x2c7e79(0x1d8)]},{'ref':_0x182122,'className':_0x1bcd89,..._0xa714af},_0x16e35b);}function G(_0x5c15ad,_0x21c101,_0x463f00,_0x2ab904,_0x5f0537){const _0x7bb978=_0x390b95;return _0x3cda61(_0x5c15ad[_0x7bb978(0x1aa)],{'key':_0x21c101,...be(_0x5c15ad,_0x463f00,_0x5f0537),..._0x2ab904},(Ee(_0x5c15ad,_0x463f00)[_0x7bb978(0x1b1)]||[])[_0x7bb978(0x1c5)]((_0x529269,_0x428ad2)=>G(_0x529269,_0x21c101+'-'+_0x5c15ad[_0x7bb978(0x1aa)]+'-'+_0x428ad2,_0x463f00,void 0x0,_0x5f0537)));}function be(_0x32330e,_0x25dd63,_0x56c732){const _0x3cec0d=_0x390b95,_0x312d90={..._0x32330e[_0x3cec0d(0x1a9)]};_0x56c732!=null&&_0x56c732['colorChannel1']&&_0x312d90[_0x3cec0d(0x19b)]===_0x3cec0d(0x19f)&&(_0x312d90[_0x3cec0d(0x19b)]=_0x56c732['colorChannel1']),_0x32330e['tag']===_0x3cec0d(0x1e8)&&_0x312d90['id']&&(_0x312d90['id']=_0x312d90['id']+_0x25dd63[_0x3cec0d(0x1c7)]),Object[_0x3cec0d(0x15d)](_0x312d90)[_0x3cec0d(0x178)](([_0x5e7481,_0x5df862])=>{const _0x388211=_0x3cec0d;_0x5e7481==='mask'&&typeof _0x5df862=='string'&&(_0x312d90[_0x5e7481]=_0x5df862[_0x388211(0x181)](/url\(#(.*)\)/,_0x388211(0x15f)+_0x25dd63[_0x388211(0x1c7)]+')'));});const {defIds:_0x236bd8}=_0x25dd63;return!_0x236bd8||_0x236bd8['length']===0x0||(_0x32330e['tag']===_0x3cec0d(0x15c)&&_0x312d90[_0x3cec0d(0x17e)]&&(_0x312d90['xlink:href']=_0x312d90[_0x3cec0d(0x17e)]+_0x25dd63[_0x3cec0d(0x1c7)]),Object[_0x3cec0d(0x15d)](_0x312d90)['forEach'](([_0x304dc7,_0x4e7022])=>{const _0x29cfe3=_0x3cec0d;typeof _0x4e7022==_0x29cfe3(0x18e)&&(_0x312d90[_0x304dc7]=_0x4e7022[_0x29cfe3(0x181)](/url\(#(.*)\)/,_0x29cfe3(0x15f)+_0x25dd63[_0x29cfe3(0x1c7)]+')'));})),_0x312d90;}function Ee(_0x2c5299,_0x5337de){const _0x29a962=_0x390b95;var _0x261564;const {defIds:_0x13cba6}=_0x5337de;return!_0x13cba6||_0x13cba6[_0x29a962(0x163)]===0x0?_0x2c5299:_0x2c5299[_0x29a962(0x1aa)]==='defs'&&((_0x261564=_0x2c5299[_0x29a962(0x1b1)])!=null&&_0x261564[_0x29a962(0x163)])?{..._0x2c5299,'children':_0x2c5299[_0x29a962(0x1b1)][_0x29a962(0x1c5)](_0xb1baee=>typeof _0xb1baee['attrs']['id']==_0x29a962(0x18e)&&_0x13cba6&&_0x13cba6[_0x29a962(0x1c0)](_0xb1baee[_0x29a962(0x1a9)]['id'])?{..._0xb1baee,'attrs':{..._0xb1baee[_0x29a962(0x1a9)],'id':_0xb1baee[_0x29a962(0x1a9)]['id']+_0x5337de[_0x29a962(0x1c7)]}}:_0xb1baee)}:_0x2c5299;}function Oe(){const _0x250754=_0x390b95;return Math[_0x250754(0x1a6)]()[_0x250754(0x1c3)](0x24)[_0x250754(0x1de)](0x2,0x8);}k[_0x390b95(0x1da)]=_0x390b95(0x1e4);const we={'tag':_0x390b95(0x19d),'attrs':{'xmlns':_0x390b95(0x1d2),'fill':_0x390b95(0x1cb),'viewBox':_0x390b95(0x1ee),'width':'1em','height':'1em'},'children':[{'tag':_0x390b95(0x1c4),'attrs':{'fill':_0x390b95(0x1ba),'d':_0x390b95(0x1d7)}},{'tag':_0x390b95(0x1c4),'attrs':{'fill':'currentColor','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':'evenodd'}}]},W=_0x10c801(function(_0x2668d6,_0x48a428){const _0x4c4339=_0x390b95;return _0x3cda61(k,Object[_0x4c4339(0x1bb)]({},_0x2668d6,{'id':_0x4c4339(0x1cd),'ref':_0x48a428,'icon':we}));});W[_0x390b95(0x1da)]=_0x390b95(0x1be);class L extends _0x40ae42{constructor(){const _0x22baf0=_0x390b95;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x22baf0(0x176),new Set());}['registerSharedOperation'](_0x593665){const _0x397871=_0x390b95;return this[_0x397871(0x1a4)]['add'](_0x593665),_0x3bb9da(()=>this['_sharedOperations']['delete'](_0x593665));}['registerInitialStateReporter'](_0x71d627){const _0x54e75e=_0x390b95;return this['_reporters']['add'](_0x71d627),_0x3bb9da(()=>this['_reporters'][_0x54e75e(0x179)](_0x71d627));}[_0x390b95(0x199)](_0x172e58){const _0x4c916a=_0x390b95;return this[_0x4c916a(0x1a4)][_0x4c916a(0x1f1)](_0x172e58);}[_0x390b95(0x1cc)](_0x3b4093){const _0x3b52a9=_0x390b95;return Array[_0x3b52a9(0x1f2)](this[_0x3b52a9(0x176)])[_0x3b52a9(0x1c5)](_0xf5f0c4=>_0xf5f0c4(_0x3b4093));}}var Ne=Object[_0x390b95(0x1b8)],Y=(_0x5369fd,_0x3ffbcb,_0x46f04d,_0x2a09e9)=>{const _0x51defc=_0x390b95;for(var _0x2bc4f4=_0x2a09e9>0x1?void 0x0:_0x2a09e9?Ne(_0x3ffbcb,_0x46f04d):_0x3ffbcb,_0x46097a=_0x5369fd[_0x51defc(0x163)]-0x1,_0x5d9805;_0x46097a>=0x0;_0x46097a--)(_0x5d9805=_0x5369fd[_0x46097a])&&(_0x2bc4f4=_0x5d9805(_0x2bc4f4)||_0x2bc4f4);return _0x2bc4f4;},_=(_0x480341,_0x307fa3)=>(_0x13bf84,_0x27db5b)=>_0x307fa3(_0x13bf84,_0x27db5b,_0x480341);let S=class extends _0x27eba0{constructor(_0x4284ca,_0x1ed5c4,_0x623a9f){const _0x31f688=_0x390b95;super(),u(this,_0x31f688(0x16e),new Map()),(this[_0x31f688(0x191)]=_0x4284ca,this[_0x31f688(0x170)]=_0x1ed5c4,this[_0x31f688(0x16d)]=_0x623a9f,this[_0x31f688(0x1af)]());}async[_0x390b95(0x1a7)](_0x5e6493){const _0x230f6e=_0x390b95;return this[_0x230f6e(0x16e)][_0x230f6e(0x1f1)](_0x5e6493)||await this['_startLiveShareCoordinator'](_0x5e6493),this['_entities'][_0x230f6e(0x194)](_0x5e6493);}[_0x390b95(0x1e5)](_0x509cfc){const _0x2c0608=_0x390b95;var _0x279eba;return(_0x279eba=this[_0x2c0608(0x16e)][_0x2c0608(0x194)](_0x509cfc))!=null?_0x279eba:null;}[_0x390b95(0x1af)](){const _0x5a3567=_0x390b95;this[_0x5a3567(0x191)][_0x5a3567(0x18b)](_0x1d4865['UNIVER_SHEET'])['pipe'](_0x2f67b3(this[_0x5a3567(0x168)]))[_0x5a3567(0x1eb)](async _0x47cef5=>{const _0x3bf214=_0x5a3567,_0x9e8970=_0x47cef5[_0x3bf214(0x1b5)]();this[_0x3bf214(0x16e)]['has'](_0x9e8970)||this[_0x3bf214(0x1c2)](_0x9e8970);}),this[_0x5a3567(0x191)][_0x5a3567(0x1f5)](_0x1d4865[_0x5a3567(0x15b)])[_0x5a3567(0x1cf)](_0x2f67b3(this[_0x5a3567(0x168)]))[_0x5a3567(0x1eb)](_0x1e0314=>{const _0x4a8fdb=_0x5a3567,_0x5e0e1a=_0x1e0314['getUnitId'](),_0x363bbc=this[_0x4a8fdb(0x16e)][_0x4a8fdb(0x194)](_0x5e0e1a);_0x363bbc==null||_0x363bbc[_0x4a8fdb(0x180)]();});}async[_0x390b95(0x1c2)](_0x40be9f){const _0x5d7e99=_0x390b95,_0x176eb9=await this[_0x5d7e99(0x16d)][_0x5d7e99(0x187)](_0x40be9f),_0x3e2547=this[_0x5d7e99(0x170)]['createInstance'](N,_0x40be9f,_0x176eb9);return _0x3e2547[_0x5d7e99(0x1b2)](),this[_0x5d7e99(0x16e)][_0x5d7e99(0x16c)](_0x40be9f,_0x3e2547),_0x3e2547;}};S=Y([_(0x0,_0xd680c7),_(0x1,_0x3dd3c1(_0x3c1288)),_(0x2,_0x3dd3c1(_0x399324))],S);var c=(_0x214d82=>(_0x214d82['OFFLINE']=_0x390b95(0x16b),_0x214d82[_0x390b95(0x1dc)]='idle',_0x214d82[_0x390b95(0x1b9)]=_0x390b95(0x190),_0x214d82[_0x390b95(0x195)]=_0x390b95(0x18d),_0x214d82[_0x390b95(0x1e2)]=_0x390b95(0x1df),_0x214d82))(c||{});const Ce=_0x390b95(0x1f4),De=0xc8;let N=class extends _0x27eba0{constructor(_0x1438db,_0x373c59,_0x5809cf,_0x4f7ad6,_0x34e8c2){const _0x1861bf=_0x390b95;super(),u(this,_0x1861bf(0x1ae),new _0x3e6ab0('idle')),u(this,_0x1861bf(0x1d6),this['_status$']['asObservable']()),u(this,_0x1861bf(0x1af),!0x1),u(this,_0x1861bf(0x1b6),null),u(this,_0x1861bf(0x164),null),(this['_unitID']=_0x1438db,this[_0x1861bf(0x1a1)]=_0x373c59,this[_0x1861bf(0x167)]=_0x5809cf,this[_0x1861bf(0x1f9)]=_0x4f7ad6,this[_0x1861bf(0x184)]=_0x34e8c2);}get['_status'](){const _0x2cc05f=_0x390b95;return this[_0x2cc05f(0x1ae)][_0x2cc05f(0x197)]();}[_0x390b95(0x180)](){const _0x151d59=_0x390b95;var _0x43e9d0;(_0x43e9d0=this[_0x151d59(0x1b6)])==null||_0x43e9d0['dispose'](),this['_status$']['next'](_0x151d59(0x1c1)),this[_0x151d59(0x1ae)][_0x151d59(0x1e6)]();}[_0x390b95(0x18a)](){const _0x4c3685=_0x390b95;return this[_0x4c3685(0x19c)];}[_0x390b95(0x1b2)](){const _0x4b4078=_0x390b95;this[_0x4b4078(0x1af)]||(this[_0x4b4078(0x1af)]=!0x0,this[_0x4b4078(0x1a1)][_0x4b4078(0x161)]['pipe'](_0x2f67b3(this[_0x4b4078(0x168)]))['subscribe'](_0x456056=>{const _0x5c7bfb=_0x4b4078;switch(_0x456056){case _0x4a16ed[_0x5c7bfb(0x1b0)]:this[_0x5c7bfb(0x1a5)]();break;case _0x4a16ed[_0x5c7bfb(0x1f6)]:this[_0x5c7bfb(0x1ea)]();break;}}),this['_collabSession'][_0x4b4078(0x1a3)]['pipe'](_0x2f67b3(this[_0x4b4078(0x168)]))[_0x4b4078(0x1eb)](_0xdd4711=>{const _0x288958=_0x4b4078,{eventID:_0x4fd861}=_0xdd4711;switch(_0x4fd861){case _0x12a62a[_0x288958(0x17f)]:this[_0x288958(0x185)](_0xdd4711);break;case _0x12a62a[_0x288958(0x1d4)]:this[_0x288958(0x19e)](_0xdd4711);break;case _0x12a62a['LIVESHARE_TERMINATE']:this[_0x288958(0x1e3)]();break;case _0x12a62a[_0x288958(0x1e0)]:this['_handleNewChangeSets'](_0xdd4711);break;}}));}[_0x390b95(0x17d)](){const _0x2695ae=_0x390b95;this[_0x2695ae(0x1a1)]['send']({'eventID':_0x12a62a[_0x2695ae(0x17a)],'data':{'unitID':this['_unitID'],'userID':this[_0x2695ae(0x1a1)][_0x2695ae(0x186)]()}},this[_0x2695ae(0x1f0)]);}['stopPresenting'](){const _0x3c3041=_0x390b95;this[_0x3c3041(0x19c)]===_0x3c3041(0x1df)&&(this['_status$'][_0x3c3041(0x17b)]('idle'),this[_0x3c3041(0x1a1)][_0x3c3041(0x1ad)]({'eventID':_0x12a62a['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3c3041(0x1f0)]}},this[_0x3c3041(0x1f0)]));}[_0x390b95(0x1db)](){const _0xc889a6=_0x390b95;this[_0xc889a6(0x19c)]===_0xc889a6(0x18d)&&(this[_0xc889a6(0x1ae)][_0xc889a6(0x17b)](_0xc889a6(0x190)),this[_0xc889a6(0x193)]());}['stopFollowing'](){const _0x1de9c7=_0x390b95;this['_status']===_0x1de9c7(0x190)&&this[_0x1de9c7(0x1bf)]();}['_handleNewHost'](_0x39f5e0){const _0x1b702e=_0x390b95,{presenter:_0x12a85a}=_0x39f5e0[_0x1b702e(0x1ec)],_0x130e64=this[_0x1b702e(0x1a1)][_0x1b702e(0x186)]();this[_0x1b702e(0x164)]=_0x12a85a,_0x12a85a===_0x130e64?(this['_stopFollowing'](),this[_0x1b702e(0x182)]()):this['_status']!==_0x1b702e(0x18d)&&(this[_0x1b702e(0x1c6)](),this['_startFollowing']());}['_fetchOperations'](){const _0x2cdc9b=_0x390b95,_0x46d4e8={'eventID':_0x12a62a[_0x2cdc9b(0x1c8)]};this[_0x2cdc9b(0x1a1)][_0x2cdc9b(0x1ad)](_0x46d4e8,this[_0x2cdc9b(0x1f0)]);}['_handleTerminate'](){const _0x2f8d8f=_0x390b95;this['_presenter']=null,this[_0x2f8d8f(0x19c)]!=='presenting'&&this[_0x2f8d8f(0x1a2)]();}['_handleNewChangeSets'](_0x3e5d5a){const _0x2e90a3=_0x390b95;if(this['_status']===_0x2e90a3(0x190)&&this['_presenter']===_0x3e5d5a[_0x2e90a3(0x1ec)]['memberID']){const _0x586c3b=_0xd51d01(_0x3e5d5a['data'])['mutations']['reverse']()[_0x2e90a3(0x1dd)](_0x39705a=>_0x39705a['id']===_0x57b8f7['id']);if(_0x586c3b){const _0x2f1f58=_0x586c3b[_0x2e90a3(0x1d5)]['unitId'],_0x576758=_0x586c3b['params']['sheet']['id'];setTimeout(()=>{const _0x1b885f=_0x2e90a3;this[_0x1b885f(0x184)]['executeCommand'](_0x4625b['id'],{'unitId':_0x2f1f58,'subUnitId':_0x576758},{'fromCollab':!0x0});});}}}[_0x390b95(0x182)](){const _0xe28ff3=_0x390b95;this['_status$'][_0xe28ff3(0x17b)](_0xe28ff3(0x1df));const _0x41643f=new Map(),_0x584b50=this[_0xe28ff3(0x1b6)]=new _0x593dd5();_0x584b50[_0xe28ff3(0x1ab)](_0x3bb9da(()=>{const _0x403875=_0xe28ff3;_0x41643f[_0x403875(0x178)](_0x35bc0c=>_0x35bc0c[_0x403875(0x1e6)]()),_0x41643f['clear']();})),_0x584b50[_0xe28ff3(0x1ab)](this['_commandService']['onCommandExecuted'](_0x199f0b=>{const _0x224aa1=_0xe28ff3;var _0x249e76;if(_0x199f0b[_0x224aa1(0x1e1)]!==_0x3757e7['OPERATION']||!this[_0x224aa1(0x1f9)][_0x224aa1(0x199)](_0x199f0b['id']))return;const {id:_0x32b36c}=_0x199f0b;let _0xd10c2;_0x41643f[_0x224aa1(0x1f1)](_0x32b36c)?_0xd10c2=_0x41643f['get'](_0x32b36c):(_0xd10c2=new _0x2dceb8(),_0x41643f[_0x224aa1(0x16c)](_0x32b36c,_0xd10c2),_0xd10c2[_0x224aa1(0x1cf)](_0x2091ab((_0x249e76=this[_0x224aa1(0x167)][_0x224aa1(0x1ca)](Ce))!=null?_0x249e76:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x224aa1(0x1eb)](_0x2763c8=>{const _0x37b94e=_0x224aa1;this[_0x37b94e(0x1a1)][_0x37b94e(0x1ad)]({'eventID':_0x12a62a[_0x37b94e(0x1d4)],'data':{'unitID':this[_0x37b94e(0x1f0)],'operations':{[_0x2763c8['id']]:{'id':_0x2763c8['id'],'params':JSON['stringify'](_0x2763c8[_0x37b94e(0x1d5)])}}}},this[_0x37b94e(0x1f0)]);})),_0xd10c2['next'](_0x199f0b);})),this[_0xe28ff3(0x1f9)][_0xe28ff3(0x1cc)](this['_unitID'])[_0xe28ff3(0x178)](_0x2746a6=>this[_0xe28ff3(0x1a1)][_0xe28ff3(0x1ad)]({'eventID':_0x12a62a[_0xe28ff3(0x1d4)],'data':{'unitID':this[_0xe28ff3(0x1f0)],'operations':{[_0x2746a6['id']]:{'id':_0x2746a6['id'],'params':JSON[_0xe28ff3(0x166)](_0x2746a6[_0xe28ff3(0x1d5)])}}}},this[_0xe28ff3(0x1f0)]));}['_stopPresenting'](){const _0x360e0f=_0x390b95;var _0x54269c;this[_0x360e0f(0x1ae)]['next'](_0x360e0f(0x1c1)),(_0x54269c=this[_0x360e0f(0x1b6)])==null||_0x54269c['dispose'](),this[_0x360e0f(0x1b6)]=null;}[_0x390b95(0x193)](){const _0x2a6711=_0x390b95;var _0x41165d;(_0x41165d=this[_0x2a6711(0x1b6)])==null||_0x41165d[_0x2a6711(0x180)](),this[_0x2a6711(0x1ae)][_0x2a6711(0x17b)](_0x2a6711(0x190));}[_0x390b95(0x1a2)](){const _0x1b5ef9=_0x390b95;var _0x23f0b4;this[_0x1b5ef9(0x1ae)]['next'](_0x1b5ef9(0x1c1)),(_0x23f0b4=this[_0x1b5ef9(0x1b6)])==null||_0x23f0b4[_0x1b5ef9(0x180)](),this['_commandDisposable']=null;}[_0x390b95(0x1bf)](){const _0x15ddcd=_0x390b95;var _0x128ec6;this[_0x15ddcd(0x1ae)][_0x15ddcd(0x17b)]('not-following'),(_0x128ec6=this[_0x15ddcd(0x1b6)])==null||_0x128ec6['dispose']();}[_0x390b95(0x19e)](_0x4518d8){const _0x55b0f4=_0x390b95;if([_0x55b0f4(0x1df),_0x55b0f4(0x18d),_0x55b0f4(0x16b)]['includes'](this[_0x55b0f4(0x19c)])||!_0x4518d8[_0x55b0f4(0x1ec)][_0x55b0f4(0x1a8)]||_0x4518d8[_0x55b0f4(0x1ec)][_0x55b0f4(0x1a8)]===this['_collabSession']['getMemberID']())return;this[_0x55b0f4(0x19c)]===_0x55b0f4(0x1c1)&&this[_0x55b0f4(0x193)]();const _0x4c5779=_0x4518d8[_0x55b0f4(0x1ec)][_0x55b0f4(0x1d3)];Object[_0x55b0f4(0x1e7)](_0x4c5779)[_0x55b0f4(0x178)](_0x3ad18c=>{const _0x22beeb=_0x55b0f4;this[_0x22beeb(0x184)][_0x22beeb(0x1ac)](_0x3ad18c['id'],_0x3ad18c[_0x22beeb(0x1d5)]?JSON['parse'](_0x3ad18c[_0x22beeb(0x1d5)]):null,{'fromCollab':!0x0});});}[_0x390b95(0x1a5)](){const _0x588f40=_0x390b95;var _0x94da79;this[_0x588f40(0x1ae)][_0x588f40(0x17b)](_0x588f40(0x16b)),(_0x94da79=this[_0x588f40(0x1b6)])==null||_0x94da79[_0x588f40(0x180)]();}[_0x390b95(0x1ea)](){const _0xaf6a0b=_0x390b95;this[_0xaf6a0b(0x1ae)][_0xaf6a0b(0x17b)](_0xaf6a0b(0x1c1)),this['_fetchOperations']();}};function _0x29fb(){const _0x4e368d=['UNIVER_UNKNOWN','_liveShareService','symbol','UNIVER_SHEET','use','entries','_mountLiveShare','url(#$1','You\x27are\x20offline.','sessionStatus$','10xOadgB','length','_presenter','defIds','stringify','_configService','dispose$','end','228fOoTjz','offline','set','_collabSessionService','_entities','3294836zJAnzU','_injector','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','_uiPartsService','pluginName','univerjs-icon\x20univerjs-icon-','setConfig','_reporters','Stop\x20following','forEach','delete','LIVESHARE_REQUEST_HOST','next','5bYcgln','tryStartPresenting','xlink:href','LIVESHARE_NEW_HOST','dispose','replace','_startPresenting','783141VlqmPn','_commandService','_handleNewHost','getMemberID','requireSession','live-share.config','Start','getStatus','getTypeOfUnitAdded$','text','not-following','string','registerComponent','following','_univerInstanceService','button','_startFollowing','get','NOT_FOLLOWING','1493758FDEklY','getValue','override','shouldShareOperation','onRendered','fill','_status','svg','_handleOperation','colorChannel1','1729312KYmYwa','_collabSession','_beIdle','event$','_sharedOperations','_handleOffline','random','getLiveShareCoordinator','presenter','attrs','tag','add','executeCommand','send','_status$','_init','OFFLINE','children','init','disposeWithMe','You\x27re\x20presenting\x20the\x20document','getUnitId','_commandDisposable','trim','getOwnPropertyDescriptor','FOLLOWING','currentColor','assign','stopPresenting','6432255FYytRE','LiveShareIcon','_stopFollowing','includes','idle','_startLiveShareCoordinator','toString','path','map','_stopPresenting','idSuffix','LIVESHARE_FETCH_OPERATIONS','You\x27re\x20following\x20the\x20presenter','getConfig','none','getInitialStates','live-share-icon','defineProperty','pipe','univer-mb-3\x20univer-w-full\x20univer-text-sm','div','http://www.w3.org/2000/svg','operations','LIVESHARE_OPERATION','params','status$','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','current','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','displayName','startFollowing','IDLE','find','substring','presenting','NEW_CHANGESETS','type','PRESENTING','_handleTerminate','UniverIcon','getLiveShareCoordinatorSync','complete','values','mask','8628680bBzsPH','_handleOnline','subscribe','data','_config','0\x200\x2017\x2017','89957EnYDuM','_unitID','has','from','registerSharedOperation','SAME_OPERATION_SHARE_INTERVAL','getTypeOfUnitDisposed$','ONLINE','Stop\x20presenting'];_0x29fb=function(){return _0x4e368d;};return _0x29fb();}N=Y([_(0x2,_0x32fcb1),_(0x3,_0x3dd3c1(L)),_(0x4,_0x445b6b)],N);function Le(){const _0x7c8887=_0x390b95,_0x39451a=_0x3f5ec(S),_0x1075ff=_0x3f5ec(_0xd680c7),_0x21b665=_0x4e5406(()=>_0x1075ff['getCurrentTypeOfUnit$'](_0x1d4865['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x594e63,_0x2bcad9]=_0x3c8f49(null),[_0x3e17f8,_0x4d1535]=_0x3c8f49(c[_0x7c8887(0x1dc)]),_0xf0c6f3=_0x32a473(null);return _0x3a79f1(()=>(_0x21b665&&_0x39451a[_0x7c8887(0x1a7)](_0x21b665[_0x7c8887(0x1b5)]())['then'](_0x40da74=>{const _0x32eeb9=_0x7c8887;_0x2bcad9(_0x40da74),_0xf0c6f3[_0x32eeb9(0x1d8)]=_0x40da74[_0x32eeb9(0x1d6)][_0x32eeb9(0x1eb)](_0x5b06d7=>{_0x4d1535(_0x5b06d7);});}),()=>{const _0x2b8758=_0x7c8887;var _0x2253a5;(_0x2253a5=_0xf0c6f3[_0x2b8758(0x1d8)])==null||_0x2253a5['unsubscribe'](),_0xf0c6f3[_0x2b8758(0x1d8)]=null;}),[_0x21b665,_0x39451a]),_0x594e63?_0x9f2121(_0x2fd8bb,{'align':_0x7c8887(0x169),'disabled':_0x3e17f8===c[_0x7c8887(0x1b0)],'className':_0x7c8887(0x171),'overlay':_0x9f2121(Re,{'status':_0x3e17f8,'coordinator':_0x594e63}),'children':_0x9f2121(_0x7c8887(0x192),{'className':_0x3bba3d(_0x7c8887(0x1d9),{'univer-cursor-not-allowed':_0x3e17f8===c[_0x7c8887(0x1b0)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3e17f8!==c[_0x7c8887(0x1b0)]}),'type':_0x7c8887(0x192),'children':_0x9f2121(W,{'className':'univer-size-4'})})}):null;}function Re(_0x1fc2ff){const _0x5612ea=_0x390b95,{status:_0x32f1e0,coordinator:_0x1d6673}=_0x1fc2ff;switch(_0x32f1e0){case c['IDLE']:return _0x9f2121($e,{'coordinator':_0x1d6673});case c[_0x5612ea(0x1b9)]:return _0x9f2121(xe,{'coordinator':_0x1d6673});case c[_0x5612ea(0x195)]:return _0x9f2121(Pe,{'coordinator':_0x1d6673});case c['OFFLINE']:return _0x9f2121(Te,{});case c[_0x5612ea(0x1e2)]:return _0x9f2121(Ae,{'coordinator':_0x1d6673});default:return null;}}function $e(_0x1de7fb){const _0x53fc07=_0x390b95,{coordinator:_0x38709a}=_0x1de7fb;return _0x26ec1f(_0x21e62d,{'children':[_0x9f2121(_0x53fc07(0x1d1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x9f2121(_0x59b2ac,{'onClick':()=>_0x38709a[_0x53fc07(0x17d)](),'children':_0x53fc07(0x189)})]});}function xe(_0x5d1c70){const _0x518fc6=_0x390b95,{coordinator:_0x7dbbd6}=_0x5d1c70;return _0x26ec1f(_0x21e62d,{'children':[_0x9f2121(_0x518fc6(0x1d1),{'className':_0x518fc6(0x1d0),'children':_0x518fc6(0x1c9)}),_0x9f2121(_0x59b2ac,{'onClick':()=>_0x7dbbd6['stopFollowing'](),'children':_0x518fc6(0x177)})]});}function Pe(_0x1dc5d2){const _0x15a286=_0x390b95,{coordinator:_0xd8f520}=_0x1dc5d2;return _0x26ec1f(_0x21e62d,{'children':[_0x9f2121('div',{'className':_0x15a286(0x1d0),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x9f2121(_0x59b2ac,{'variant':_0x15a286(0x18c),'onClick':()=>_0xd8f520[_0x15a286(0x1db)](),'children':'Start\x20following'})]});}function Ae(_0x516b67){const _0x16baab=_0x390b95,{coordinator:_0xf4b409}=_0x516b67;return _0x26ec1f(_0x21e62d,{'children':[_0x9f2121(_0x16baab(0x1d1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x16baab(0x1b4)}),_0x9f2121(_0x59b2ac,{'variant':'default','onClick':()=>_0xf4b409[_0x16baab(0x1bc)](),'children':_0x16baab(0x1f7)})]});}function Te(){const _0x2d3b32=_0x390b95;return _0x9f2121(_0x21e62d,{'children':_0x2d3b32(0x160)});}var Fe=Object[_0x390b95(0x1b8)],He=(_0x1d6e68,_0x5c24c8,_0x606f45,_0x449681)=>{const _0x1faf99=_0x390b95;for(var _0x206d2e=_0x449681>0x1?void 0x0:_0x449681?Fe(_0x5c24c8,_0x606f45):_0x5c24c8,_0x18ece5=_0x1d6e68[_0x1faf99(0x163)]-0x1,_0xf39b23;_0x18ece5>=0x0;_0x18ece5--)(_0xf39b23=_0x1d6e68[_0x18ece5])&&(_0x206d2e=_0xf39b23(_0x206d2e)||_0x206d2e);return _0x206d2e;},A=(_0x229f51,_0x26117f)=>(_0x4c46c8,_0x1f94f2)=>_0x26117f(_0x4c46c8,_0x1f94f2,_0x229f51);let m=class extends _0x40ae42{constructor(_0x37cf2e,_0xefc3e8){const _0x27cda9=_0x390b95;super(),this[_0x27cda9(0x170)]=_0x37cf2e,this[_0x27cda9(0x172)]=_0xefc3e8,this[_0x27cda9(0x15e)]();}[_0x390b95(0x15e)](){const _0x1f9b15=_0x390b95;this['disposeWithMe'](this[_0x1f9b15(0x172)][_0x1f9b15(0x18f)](_0x187feb['HEADER_MENU'],()=>_0x1d951d(Le,this['_injector'])));}};m=He([A(0x0,_0x3dd3c1(_0x3c1288)),A(0x1,_0x1785bb)],m);const ye=_0x390b95(0x188),T={};var Ue=Object[_0x390b95(0x1b8)],Ve=(_0x13e273,_0x4786ba,_0x426b8e,_0x5b59e9)=>{const _0x2c17ca=_0x390b95;for(var _0x52d2f9=_0x5b59e9>0x1?void 0x0:_0x5b59e9?Ue(_0x4786ba,_0x426b8e):_0x4786ba,_0x29eaf8=_0x13e273[_0x2c17ca(0x163)]-0x1,_0x284d4e;_0x29eaf8>=0x0;_0x29eaf8--)(_0x284d4e=_0x13e273[_0x29eaf8])&&(_0x52d2f9=_0x284d4e(_0x52d2f9)||_0x52d2f9);return _0x52d2f9;},je=(_0x577d8c,_0x558a8b)=>(_0x17216c,_0x9f1c06)=>_0x558a8b(_0x17216c,_0x9f1c06,_0x577d8c);let I=class extends _0x40ae42{constructor(_0x3a9420){const _0x2bda98=_0x390b95;super(),this[_0x2bda98(0x1f9)]=_0x3a9420,this[_0x2bda98(0x1af)]();}[_0x390b95(0x1af)](){const _0x446b8e=_0x390b95;[_0x126ff6['id'],_0x4ca130['id'],_0x4625b['id']][_0x446b8e(0x178)](_0x5c3342=>{const _0x5371bb=_0x446b8e;this[_0x5371bb(0x1b3)](this[_0x5371bb(0x1f9)][_0x5371bb(0x1f3)](_0x5c3342));});}};I=Ve([je(0x0,_0x3dd3c1(L))],I);function _0x3116(_0x227e78,_0x596816){_0x227e78=_0x227e78-0x15a;const _0x29fbb6=_0x29fb();let _0x3116a9=_0x29fbb6[_0x227e78];return _0x3116a9;}var Me=Object[_0x390b95(0x1ce)],ke=Object[_0x390b95(0x1b8)],Ge=(_0x1ac9ea,_0x101a39,_0x56bc1d)=>_0x101a39 in _0x1ac9ea?Me(_0x1ac9ea,_0x101a39,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56bc1d}):_0x1ac9ea[_0x101a39]=_0x56bc1d,We=(_0x41a0b6,_0x5eaffa,_0x250912,_0x1bcedd)=>{for(var _0xeda85e=_0x1bcedd>0x1?void 0x0:_0x1bcedd?ke(_0x5eaffa,_0x250912):_0x5eaffa,_0x3c166c=_0x41a0b6['length']-0x1,_0x2e8021;_0x3c166c>=0x0;_0x3c166c--)(_0x2e8021=_0x41a0b6[_0x3c166c])&&(_0xeda85e=_0x2e8021(_0xeda85e)||_0xeda85e);return _0xeda85e;},F=(_0xc190bc,_0x1499cf)=>(_0x20220a,_0x20dce8)=>_0x1499cf(_0x20220a,_0x20dce8,_0xc190bc),B=(_0xb1da84,_0xd940fe,_0x4759c5)=>Ge(_0xb1da84,typeof _0xd940fe!='symbol'?_0xd940fe+'':_0xd940fe,_0x4759c5);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x31110c{constructor(_0x3da3be=T,_0x256927,_0x3d5dfb){const _0x171202=_0x390b95;super(),this[_0x171202(0x1ed)]=_0x3da3be,this[_0x171202(0x170)]=_0x256927,this[_0x171202(0x167)]=_0x3d5dfb;const {..._0x4b589c}=_0x486150({},T,this[_0x171202(0x1ed)]);this[_0x171202(0x167)][_0x171202(0x175)](ye,_0x4b589c);}['onStarting'](){const _0x1049c5=_0x390b95;_0x22adca(this[_0x1049c5(0x170)],_0x5bff08([[L],[S],[I],[m]],this['_config'][_0x1049c5(0x198)])),_0x56943d(this[_0x1049c5(0x170)],[[I]]);}[_0x390b95(0x19a)](){const _0x316977=_0x390b95;_0x56943d(this[_0x316977(0x170)],[[m]]);}};B(b,_0x390b95(0x1e1),_0x1d4865[_0x390b95(0x1f8)]),B(b,_0x390b95(0x173),Ye),b=We([_0x13b935(_0x2d986f),F(0x1,_0x3dd3c1(_0x3c1288)),F(0x2,_0x32fcb1)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
1
+ const _0xeaafbf=_0xdc09;(function(_0x3c0e30,_0x38996b){const _0x4dd8d7=_0xdc09,_0x118b02=_0x3c0e30();while(!![]){try{const _0x1065c8=-parseInt(_0x4dd8d7(0x1c2))/0x1+-parseInt(_0x4dd8d7(0x1bd))/0x2+-parseInt(_0x4dd8d7(0x1bb))/0x3+-parseInt(_0x4dd8d7(0x193))/0x4+-parseInt(_0x4dd8d7(0x1a6))/0x5+parseInt(_0x4dd8d7(0x1da))/0x6*(-parseInt(_0x4dd8d7(0x1ef))/0x7)+parseInt(_0x4dd8d7(0x1c4))/0x8*(parseInt(_0x4dd8d7(0x1b8))/0x9);if(_0x1065c8===_0x38996b)break;else _0x118b02['push'](_0x118b02['shift']());}catch(_0xfd1525){_0x118b02['push'](_0x118b02['shift']());}}}(_0x8dab,0x873c4));var J=Object[_0xeaafbf(0x17b)],K=(_0xb0d402,_0x2be509,_0x26d1d6)=>_0x2be509 in _0xb0d402?J(_0xb0d402,_0x2be509,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26d1d6}):_0xb0d402[_0x2be509]=_0x26d1d6,u=(_0x34ebdc,_0x23eff7,_0x11f60a)=>K(_0x34ebdc,typeof _0x23eff7!=_0xeaafbf(0x180)?_0x23eff7+'':_0x23eff7,_0x11f60a);import{Disposable as _0x469b92,toDisposable as _0x1332f1,Inject as _0x3ffeae,Injector as _0x3e453a,RxDisposable as _0x53e8b0,UniverInstanceType as _0x59dbcd,DisposableCollection as _0x5d9210,CommandType as _0xef2d8d,IUniverInstanceService as _0xe4bcbd,IConfigService as _0x4c72af,ICommandService as _0x465a1b,DependentOn as _0x168090,Plugin as _0x5b0277,merge as _0x3e2e87,registerDependencies as _0x5b8f83,mergeOverrideWithDependencies as _0xed68fc,touchDependencies as _0x98ac8}from'@univerjs/core';import{useDependency as _0x5ec2d9,useObservable as _0x19a9c6,BuiltInUIPart as _0x4f4074,connectInjector as _0x445f22,IUIPartsService as _0x59077d}from'@univerjs/ui';import{jsx as _0x115494,jsxs as _0xe77572,Fragment as _0x8cbe17}from'react/jsx-runtime';import{Dropdown as _0x4dbc1e,clsx as _0x5af8db,Button as _0x39e985}from'@univerjs/design';import{useRef as _0x54096f,createElement as _0x14f037,forwardRef as _0x35b873,useState as _0x2b6511,useEffect as _0x51812f}from'react';import{CollaborationEvent as _0x262122,parseProtocolChangeset as _0x4ddb9c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x20d5f8,SessionStatus as _0x5d00b9,UniverCollaborationClientPlugin as _0x2f3e48}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x541fcc,SetWorksheetActiveOperation as _0x23cd6c}from'@univerjs/sheets';import{BehaviorSubject as _0xe1c438,Subject as _0x444884}from'rxjs';import{takeUntil as _0x5b42f5,throttleTime as _0x475c1c}from'rxjs/operators';import{SetZoomRatioOperation as _0x19b70e,SetScrollOperation as _0x49dea0}from'@univerjs/sheets-ui';function k({ref:_0xbb029c,..._0x4f0b59}){const _0x13959b=_0xeaafbf,{icon:_0x492154,id:_0x58f041,className:_0x4663e8,extend:_0x568981,..._0x2e4434}=_0x4f0b59,_0x36dc72=('univerjs-icon\x20univerjs-icon-'+_0x58f041+'\x20'+(_0x4663e8||''))['trim'](),_0xb7e30c=_0x54096f('_'+Oe());return G(_0x492154,''+_0x58f041,{'defIds':_0x492154[_0x13959b(0x1dc)],'idSuffix':_0xb7e30c[_0x13959b(0x1aa)]},{'ref':_0xbb029c,'className':_0x36dc72,..._0x2e4434},_0x568981);}function _0xdc09(_0x2f06b1,_0x2018aa){_0x2f06b1=_0x2f06b1-0x14c;const _0x8dab6e=_0x8dab();let _0xdc0948=_0x8dab6e[_0x2f06b1];return _0xdc0948;}function G(_0x4aa988,_0x200841,_0x965d06,_0x352386,_0x4ba864){const _0x101f96=_0xeaafbf;return _0x14f037(_0x4aa988['tag'],{'key':_0x200841,...be(_0x4aa988,_0x965d06,_0x4ba864),..._0x352386},(Ee(_0x4aa988,_0x965d06)[_0x101f96(0x1a1)]||[])[_0x101f96(0x194)]((_0xed229f,_0x372dc8)=>G(_0xed229f,_0x200841+'-'+_0x4aa988[_0x101f96(0x185)]+'-'+_0x372dc8,_0x965d06,void 0x0,_0x4ba864)));}function be(_0x260322,_0x193244,_0x1241b9){const _0x453856=_0xeaafbf,_0x1916a5={..._0x260322['attrs']};_0x1241b9!=null&&_0x1241b9[_0x453856(0x150)]&&_0x1916a5[_0x453856(0x198)]===_0x453856(0x150)&&(_0x1916a5[_0x453856(0x198)]=_0x1241b9[_0x453856(0x150)]),_0x260322['tag']===_0x453856(0x170)&&_0x1916a5['id']&&(_0x1916a5['id']=_0x1916a5['id']+_0x193244['idSuffix']),Object['entries'](_0x1916a5)[_0x453856(0x19b)](([_0x21237a,_0x2b6fb7])=>{const _0x28e993=_0x453856;_0x21237a===_0x28e993(0x170)&&typeof _0x2b6fb7==_0x28e993(0x1ae)&&(_0x1916a5[_0x21237a]=_0x2b6fb7[_0x28e993(0x173)](/url\(#(.*)\)/,'url(#$1'+_0x193244['idSuffix']+')'));});const {defIds:_0x2de0f6}=_0x193244;return!_0x2de0f6||_0x2de0f6[_0x453856(0x1eb)]===0x0||(_0x260322[_0x453856(0x185)]===_0x453856(0x16b)&&_0x1916a5['xlink:href']&&(_0x1916a5[_0x453856(0x1ba)]=_0x1916a5[_0x453856(0x1ba)]+_0x193244[_0x453856(0x181)]),Object[_0x453856(0x161)](_0x1916a5)['forEach'](([_0x381f4b,_0x4053b4])=>{const _0x28fae8=_0x453856;typeof _0x4053b4==_0x28fae8(0x1ae)&&(_0x1916a5[_0x381f4b]=_0x4053b4[_0x28fae8(0x173)](/url\(#(.*)\)/,_0x28fae8(0x165)+_0x193244[_0x28fae8(0x181)]+')'));})),_0x1916a5;}function Ee(_0x29154a,_0x42a8e8){const _0x41952d=_0xeaafbf;var _0x22b5e6;const {defIds:_0x18175e}=_0x42a8e8;return!_0x18175e||_0x18175e['length']===0x0?_0x29154a:_0x29154a['tag']==='defs'&&((_0x22b5e6=_0x29154a[_0x41952d(0x1a1)])!=null&&_0x22b5e6[_0x41952d(0x1eb)])?{..._0x29154a,'children':_0x29154a[_0x41952d(0x1a1)][_0x41952d(0x194)](_0x5ecaa4=>typeof _0x5ecaa4[_0x41952d(0x1f6)]['id']=='string'&&_0x18175e&&_0x18175e[_0x41952d(0x156)](_0x5ecaa4[_0x41952d(0x1f6)]['id'])?{..._0x5ecaa4,'attrs':{..._0x5ecaa4['attrs'],'id':_0x5ecaa4[_0x41952d(0x1f6)]['id']+_0x42a8e8[_0x41952d(0x181)]}}:_0x5ecaa4)}:_0x29154a;}function Oe(){const _0x429dad=_0xeaafbf;return Math[_0x429dad(0x154)]()['toString'](0x24)['substring'](0x2,0x8);}k['displayName']=_0xeaafbf(0x1b0);const we={'tag':_0xeaafbf(0x1d7),'attrs':{'xmlns':_0xeaafbf(0x1b4),'fill':_0xeaafbf(0x1ca),'viewBox':_0xeaafbf(0x1e8),'width':'1em','height':_0xeaafbf(0x1c5)},'children':[{'tag':_0xeaafbf(0x1d6),'attrs':{'fill':'currentColor','d':_0xeaafbf(0x1b9)}},{'tag':_0xeaafbf(0x1d6),'attrs':{'fill':_0xeaafbf(0x18e),'d':_0xeaafbf(0x199),'fillRule':_0xeaafbf(0x1ec),'clipRule':_0xeaafbf(0x1ec)}}]},W=_0x35b873(function(_0x2586dc,_0x410ffd){const _0x34b4cb=_0xeaafbf;return _0x14f037(k,Object['assign']({},_0x2586dc,{'id':_0x34b4cb(0x151),'ref':_0x410ffd,'icon':we}));});W[_0xeaafbf(0x1c3)]=_0xeaafbf(0x17e);class L extends _0x469b92{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0xeaafbf(0x1b3)](_0x3458e5){const _0x47b0b9=_0xeaafbf;return this[_0x47b0b9(0x1cd)][_0x47b0b9(0x19f)](_0x3458e5),_0x1332f1(()=>this[_0x47b0b9(0x1cd)]['delete'](_0x3458e5));}[_0xeaafbf(0x1a9)](_0x5352e4){const _0x83f52b=_0xeaafbf;return this[_0x83f52b(0x1e3)][_0x83f52b(0x19f)](_0x5352e4),_0x1332f1(()=>this[_0x83f52b(0x1e3)][_0x83f52b(0x1b6)](_0x5352e4));}[_0xeaafbf(0x155)](_0x4217a3){const _0x49c1ce=_0xeaafbf;return this[_0x49c1ce(0x1cd)]['has'](_0x4217a3);}[_0xeaafbf(0x17a)](_0x458ab1){const _0x1eefcb=_0xeaafbf;return Array[_0x1eefcb(0x174)](this['_reporters'])[_0x1eefcb(0x194)](_0x494c12=>_0x494c12(_0x458ab1));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0xeac1a2,_0x550436,_0x5bf40,_0x928e9b)=>{const _0x3898e2=_0xeaafbf;for(var _0x336691=_0x928e9b>0x1?void 0x0:_0x928e9b?Ne(_0x550436,_0x5bf40):_0x550436,_0xf083b7=_0xeac1a2[_0x3898e2(0x1eb)]-0x1,_0x27c0d7;_0xf083b7>=0x0;_0xf083b7--)(_0x27c0d7=_0xeac1a2[_0xf083b7])&&(_0x336691=_0x27c0d7(_0x336691)||_0x336691);return _0x336691;},_=(_0x2f0c3c,_0x240e29)=>(_0x548fd3,_0x1cb362)=>_0x240e29(_0x548fd3,_0x1cb362,_0x2f0c3c);let S=class extends _0x53e8b0{constructor(_0x177280,_0x178e3a,_0x4786a1){const _0x193f23=_0xeaafbf;super(),u(this,_0x193f23(0x1d3),new Map()),(this['_univerInstanceService']=_0x177280,this[_0x193f23(0x187)]=_0x178e3a,this[_0x193f23(0x1a4)]=_0x4786a1,this['_init']());}async[_0xeaafbf(0x16e)](_0x1ee66d){const _0x3e853a=_0xeaafbf;return this['_entities']['has'](_0x1ee66d)||await this[_0x3e853a(0x1de)](_0x1ee66d),this['_entities'][_0x3e853a(0x175)](_0x1ee66d);}['getLiveShareCoordinatorSync'](_0x2eaf9e){const _0x2a439b=_0xeaafbf;var _0x566f31;return(_0x566f31=this[_0x2a439b(0x1d3)]['get'](_0x2eaf9e))!=null?_0x566f31:null;}[_0xeaafbf(0x195)](){const _0x138478=_0xeaafbf;this[_0x138478(0x191)]['getTypeOfUnitAdded$'](_0x59dbcd['UNIVER_SHEET'])[_0x138478(0x1e2)](_0x5b42f5(this[_0x138478(0x1dd)]))[_0x138478(0x1a2)](async _0x4e3e4a=>{const _0x1c95df=_0x138478,_0x35a83f=_0x4e3e4a['getUnitId']();this[_0x1c95df(0x1d3)]['has'](_0x35a83f)||this['_startLiveShareCoordinator'](_0x35a83f);}),this['_univerInstanceService'][_0x138478(0x14d)](_0x59dbcd[_0x138478(0x1c9)])['pipe'](_0x5b42f5(this[_0x138478(0x1dd)]))[_0x138478(0x1a2)](_0x34b40d=>{const _0x387cdc=_0x138478,_0x2c7b46=_0x34b40d[_0x387cdc(0x1e7)](),_0x187c8c=this[_0x387cdc(0x1d3)]['get'](_0x2c7b46);_0x187c8c==null||_0x187c8c[_0x387cdc(0x1ab)]();});}async[_0xeaafbf(0x1de)](_0x2fd9b0){const _0x105aa4=_0xeaafbf,_0x5ea380=await this[_0x105aa4(0x1a4)][_0x105aa4(0x1e6)](_0x2fd9b0),_0x5c0e61=this['_injector'][_0x105aa4(0x19a)](N,_0x2fd9b0,_0x5ea380);return _0x5c0e61[_0x105aa4(0x1f2)](),this['_entities'][_0x105aa4(0x168)](_0x2fd9b0,_0x5c0e61),_0x5c0e61;}};S=Y([_(0x0,_0xe4bcbd),_(0x1,_0x3ffeae(_0x3e453a)),_(0x2,_0x3ffeae(_0x20d5f8))],S);var c=(_0x1b0196=>(_0x1b0196['OFFLINE']=_0xeaafbf(0x1b1),_0x1b0196[_0xeaafbf(0x1ea)]='idle',_0x1b0196[_0xeaafbf(0x1a7)]=_0xeaafbf(0x14f),_0x1b0196[_0xeaafbf(0x18c)]=_0xeaafbf(0x1c1),_0x1b0196[_0xeaafbf(0x1ac)]=_0xeaafbf(0x1e0),_0x1b0196))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x53e8b0{constructor(_0x3402d4,_0x10c663,_0x35e49b,_0x4cee76,_0x2ba87e){const _0x2d9361=_0xeaafbf;super(),u(this,_0x2d9361(0x1e4),new _0xe1c438('idle')),u(this,_0x2d9361(0x164),this['_status$'][_0x2d9361(0x190)]()),u(this,_0x2d9361(0x195),!0x1),u(this,_0x2d9361(0x1c7),null),u(this,_0x2d9361(0x179),null),(this['_unitID']=_0x3402d4,this['_collabSession']=_0x10c663,this['_configService']=_0x35e49b,this[_0x2d9361(0x1af)]=_0x4cee76,this[_0x2d9361(0x157)]=_0x2ba87e);}get[_0xeaafbf(0x186)](){const _0xd7cc41=_0xeaafbf;return this[_0xd7cc41(0x1e4)][_0xd7cc41(0x177)]();}[_0xeaafbf(0x1ab)](){const _0x34dd90=_0xeaafbf;var _0x37718f;(_0x37718f=this[_0x34dd90(0x1c7)])==null||_0x37718f['dispose'](),this[_0x34dd90(0x1e4)][_0x34dd90(0x16c)](_0x34dd90(0x1b5)),this['_status$']['complete']();}[_0xeaafbf(0x1a0)](){return this['_status'];}[_0xeaafbf(0x1f2)](){const _0x2fe4c5=_0xeaafbf;this['_init']||(this[_0x2fe4c5(0x195)]=!0x0,this[_0x2fe4c5(0x1d9)][_0x2fe4c5(0x1b2)]['pipe'](_0x5b42f5(this[_0x2fe4c5(0x1dd)]))['subscribe'](_0x1f2199=>{const _0x47b8dd=_0x2fe4c5;switch(_0x1f2199){case _0x5d00b9[_0x47b8dd(0x1d8)]:this[_0x47b8dd(0x15a)]();break;case _0x5d00b9['ONLINE']:this['_handleOnline']();break;}}),this[_0x2fe4c5(0x1d9)][_0x2fe4c5(0x158)][_0x2fe4c5(0x1e2)](_0x5b42f5(this[_0x2fe4c5(0x1dd)]))[_0x2fe4c5(0x1a2)](_0xb5e492=>{const _0x3ee01f=_0x2fe4c5,{eventID:_0x3962c5}=_0xb5e492;switch(_0x3962c5){case _0x262122[_0x3ee01f(0x1bc)]:this[_0x3ee01f(0x183)](_0xb5e492);break;case _0x262122['LIVESHARE_OPERATION']:this[_0x3ee01f(0x160)](_0xb5e492);break;case _0x262122[_0x3ee01f(0x1be)]:this[_0x3ee01f(0x1d5)]();break;case _0x262122[_0x3ee01f(0x169)]:this[_0x3ee01f(0x17d)](_0xb5e492);break;}}));}[_0xeaafbf(0x152)](){const _0x37ce68=_0xeaafbf;this[_0x37ce68(0x1d9)]['send']({'eventID':_0x262122[_0x37ce68(0x159)],'data':{'unitID':this[_0x37ce68(0x1f4)],'userID':this[_0x37ce68(0x1d9)][_0x37ce68(0x1d1)]()}},this[_0x37ce68(0x1f4)]);}[_0xeaafbf(0x1ce)](){const _0x119916=_0xeaafbf;this['_status']===_0x119916(0x1e0)&&(this['_status$'][_0x119916(0x16c)](_0x119916(0x1b5)),this[_0x119916(0x1d9)]['send']({'eventID':_0x262122[_0x119916(0x1be)],'data':{'unitID':this['_unitID']}},this[_0x119916(0x1f4)]));}['startFollowing'](){const _0x390d27=_0xeaafbf;this[_0x390d27(0x186)]===_0x390d27(0x1c1)&&(this[_0x390d27(0x1e4)][_0x390d27(0x16c)](_0x390d27(0x14f)),this['_startFollowing']());}[_0xeaafbf(0x178)](){const _0x5e21b5=_0xeaafbf;this['_status']===_0x5e21b5(0x14f)&&this[_0x5e21b5(0x1a3)]();}[_0xeaafbf(0x183)](_0x241bf0){const _0xb5da06=_0xeaafbf,{presenter:_0x1b5428}=_0x241bf0[_0xb5da06(0x19e)],_0x1b4d9d=this[_0xb5da06(0x1d9)][_0xb5da06(0x1d1)]();this[_0xb5da06(0x179)]=_0x1b5428,_0x1b5428===_0x1b4d9d?(this[_0xb5da06(0x1a3)](),this[_0xb5da06(0x16f)]()):this[_0xb5da06(0x186)]!=='not-following'&&(this['_stopPresenting'](),this[_0xb5da06(0x1c0)]());}[_0xeaafbf(0x176)](){const _0x5d7f54=_0xeaafbf,_0x39fe61={'eventID':_0x262122['LIVESHARE_FETCH_OPERATIONS']};this[_0x5d7f54(0x1d9)][_0x5d7f54(0x1a8)](_0x39fe61,this['_unitID']);}[_0xeaafbf(0x1d5)](){const _0x37124c=_0xeaafbf;this[_0x37124c(0x179)]=null,this[_0x37124c(0x186)]!=='presenting'&&this[_0x37124c(0x1f0)]();}[_0xeaafbf(0x17d)](_0x25ae0f){const _0x1665f8=_0xeaafbf;if(this['_status']===_0x1665f8(0x14f)&&this[_0x1665f8(0x179)]===_0x25ae0f['data']['memberID']){const _0x57189f=_0x4ddb9c(_0x25ae0f['data'])['mutations']['reverse']()[_0x1665f8(0x18b)](_0x59434=>_0x59434['id']===_0x541fcc['id']);if(_0x57189f){const _0x31bf58=_0x57189f[_0x1665f8(0x17f)][_0x1665f8(0x19c)],_0x371dbd=_0x57189f[_0x1665f8(0x17f)][_0x1665f8(0x1d2)]['id'];setTimeout(()=>{const _0x3ca709=_0x1665f8;this[_0x3ca709(0x157)]['executeCommand'](_0x23cd6c['id'],{'unitId':_0x31bf58,'subUnitId':_0x371dbd},{'fromCollab':!0x0});});}}}[_0xeaafbf(0x16f)](){const _0x2f3047=_0xeaafbf;this['_status$'][_0x2f3047(0x16c)]('presenting');const _0xe52312=new Map(),_0x57b066=this['_commandDisposable']=new _0x5d9210();_0x57b066[_0x2f3047(0x19f)](_0x1332f1(()=>{const _0x55701d=_0x2f3047;_0xe52312['forEach'](_0x4cad1d=>_0x4cad1d[_0x55701d(0x1b7)]()),_0xe52312[_0x55701d(0x14e)]();})),_0x57b066['add'](this['_commandService']['onCommandExecuted'](_0x1db345=>{const _0x448ce9=_0x2f3047;var _0x515726;if(_0x1db345[_0x448ce9(0x1df)]!==_0xef2d8d['OPERATION']||!this[_0x448ce9(0x1af)][_0x448ce9(0x155)](_0x1db345['id']))return;const {id:_0x3788fb}=_0x1db345;let _0x40e6d9;_0xe52312[_0x448ce9(0x184)](_0x3788fb)?_0x40e6d9=_0xe52312[_0x448ce9(0x175)](_0x3788fb):(_0x40e6d9=new _0x444884(),_0xe52312[_0x448ce9(0x168)](_0x3788fb,_0x40e6d9),_0x40e6d9[_0x448ce9(0x1e2)](_0x475c1c((_0x515726=this[_0x448ce9(0x1c8)][_0x448ce9(0x1a5)](Ce))!=null?_0x515726:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x448ce9(0x1a2)](_0x12703d=>{const _0x160c8c=_0x448ce9;this['_collabSession'][_0x160c8c(0x1a8)]({'eventID':_0x262122[_0x160c8c(0x18d)],'data':{'unitID':this[_0x160c8c(0x1f4)],'operations':{[_0x12703d['id']]:{'id':_0x12703d['id'],'params':JSON[_0x160c8c(0x162)](_0x12703d[_0x160c8c(0x17f)])}}}},this[_0x160c8c(0x1f4)]);})),_0x40e6d9['next'](_0x1db345);})),this[_0x2f3047(0x1af)][_0x2f3047(0x17a)](this[_0x2f3047(0x1f4)])[_0x2f3047(0x19b)](_0x59d3d3=>this['_collabSession'][_0x2f3047(0x1a8)]({'eventID':_0x262122[_0x2f3047(0x18d)],'data':{'unitID':this[_0x2f3047(0x1f4)],'operations':{[_0x59d3d3['id']]:{'id':_0x59d3d3['id'],'params':JSON['stringify'](_0x59d3d3[_0x2f3047(0x17f)])}}}},this[_0x2f3047(0x1f4)]));}[_0xeaafbf(0x1f5)](){const _0x5ce73b=_0xeaafbf;var _0x1b4eb0;this[_0x5ce73b(0x1e4)][_0x5ce73b(0x16c)](_0x5ce73b(0x1b5)),(_0x1b4eb0=this[_0x5ce73b(0x1c7)])==null||_0x1b4eb0[_0x5ce73b(0x1ab)](),this['_commandDisposable']=null;}[_0xeaafbf(0x1c0)](){const _0x5bdf5a=_0xeaafbf;var _0x52daa3;(_0x52daa3=this[_0x5bdf5a(0x1c7)])==null||_0x52daa3[_0x5bdf5a(0x1ab)](),this[_0x5bdf5a(0x1e4)][_0x5bdf5a(0x16c)]('following');}['_beIdle'](){const _0xfb8a17=_0xeaafbf;var _0x24eedc;this['_status$'][_0xfb8a17(0x16c)](_0xfb8a17(0x1b5)),(_0x24eedc=this[_0xfb8a17(0x1c7)])==null||_0x24eedc[_0xfb8a17(0x1ab)](),this[_0xfb8a17(0x1c7)]=null;}['_stopFollowing'](){const _0x9cf165=_0xeaafbf;var _0x1c2615;this[_0x9cf165(0x1e4)]['next']('not-following'),(_0x1c2615=this[_0x9cf165(0x1c7)])==null||_0x1c2615[_0x9cf165(0x1ab)]();}['_handleOperation'](_0x56bd0b){const _0x5f1201=_0xeaafbf;if(['presenting','not-following',_0x5f1201(0x1b1)][_0x5f1201(0x156)](this[_0x5f1201(0x186)])||!_0x56bd0b['data']['presenter']||_0x56bd0b[_0x5f1201(0x19e)][_0x5f1201(0x15f)]===this[_0x5f1201(0x1d9)]['getMemberID']())return;this['_status']===_0x5f1201(0x1b5)&&this['_startFollowing']();const _0x185482=_0x56bd0b[_0x5f1201(0x19e)][_0x5f1201(0x1d0)];Object[_0x5f1201(0x197)](_0x185482)[_0x5f1201(0x19b)](_0x2176bf=>{const _0x3a16ab=_0x5f1201;this[_0x3a16ab(0x157)][_0x3a16ab(0x1cb)](_0x2176bf['id'],_0x2176bf[_0x3a16ab(0x17f)]?JSON['parse'](_0x2176bf[_0x3a16ab(0x17f)]):null,{'fromCollab':!0x0});});}[_0xeaafbf(0x15a)](){const _0x41b0cf=_0xeaafbf;var _0x4655eb;this[_0x41b0cf(0x1e4)][_0x41b0cf(0x16c)](_0x41b0cf(0x1b1)),(_0x4655eb=this[_0x41b0cf(0x1c7)])==null||_0x4655eb[_0x41b0cf(0x1ab)]();}[_0xeaafbf(0x163)](){const _0x54e03c=_0xeaafbf;this[_0x54e03c(0x1e4)][_0x54e03c(0x16c)]('idle'),this['_fetchOperations']();}};N=Y([_(0x2,_0x4c72af),_(0x3,_0x3ffeae(L)),_(0x4,_0x465a1b)],N);function Le(){const _0x3e3a6b=_0xeaafbf,_0x2fe6ce=_0x5ec2d9(S),_0x14569b=_0x5ec2d9(_0xe4bcbd),_0x4ed2cf=_0x19a9c6(()=>_0x14569b[_0x3e3a6b(0x188)](_0x59dbcd['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x433c77,_0x146c40]=_0x2b6511(null),[_0x218c0a,_0x4c7962]=_0x2b6511(c[_0x3e3a6b(0x1ea)]),_0x16c7cb=_0x54096f(null);return _0x51812f(()=>(_0x4ed2cf&&_0x2fe6ce['getLiveShareCoordinator'](_0x4ed2cf[_0x3e3a6b(0x1e7)]())[_0x3e3a6b(0x18f)](_0x151884=>{const _0x2d8ee4=_0x3e3a6b;_0x146c40(_0x151884),_0x16c7cb['current']=_0x151884['status$'][_0x2d8ee4(0x1a2)](_0x4523a1=>{_0x4c7962(_0x4523a1);});}),()=>{const _0x2ed7c0=_0x3e3a6b;var _0x41decb;(_0x41decb=_0x16c7cb[_0x2ed7c0(0x1aa)])==null||_0x41decb[_0x2ed7c0(0x166)](),_0x16c7cb['current']=null;}),[_0x4ed2cf,_0x2fe6ce]),_0x433c77?_0x115494(_0x4dbc1e,{'align':_0x3e3a6b(0x19d),'disabled':_0x218c0a===c['OFFLINE'],'className':_0x3e3a6b(0x1cc),'overlay':_0x115494(Re,{'status':_0x218c0a,'coordinator':_0x433c77}),'children':_0x115494(_0x3e3a6b(0x192),{'className':_0x5af8db(_0x3e3a6b(0x15e),{'univer-cursor-not-allowed':_0x218c0a===c[_0x3e3a6b(0x1d8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x218c0a!==c['OFFLINE']}),'type':'button','children':_0x115494(W,{'className':_0x3e3a6b(0x189)})})}):null;}function Re(_0x5a29e0){const _0xa34a80=_0xeaafbf,{status:_0x191d5c,coordinator:_0x35fec2}=_0x5a29e0;switch(_0x191d5c){case c[_0xa34a80(0x1ea)]:return _0x115494($e,{'coordinator':_0x35fec2});case c[_0xa34a80(0x1a7)]:return _0x115494(xe,{'coordinator':_0x35fec2});case c[_0xa34a80(0x18c)]:return _0x115494(Pe,{'coordinator':_0x35fec2});case c[_0xa34a80(0x1d8)]:return _0x115494(Te,{});case c[_0xa34a80(0x1ac)]:return _0x115494(Ae,{'coordinator':_0x35fec2});default:return null;}}function $e(_0xed49df){const _0x446b3f=_0xeaafbf,{coordinator:_0x3d93d7}=_0xed49df;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x446b3f(0x14c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x446b3f(0x16a)}),_0x115494(_0x39e985,{'onClick':()=>_0x3d93d7[_0x446b3f(0x152)](),'children':_0x446b3f(0x18a)})]});}function xe(_0x567050){const _0x2b63c2=_0xeaafbf,{coordinator:_0x4eedf0}=_0x567050;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x2b63c2(0x14c),{'className':_0x2b63c2(0x1ee),'children':_0x2b63c2(0x1e1)}),_0x115494(_0x39e985,{'onClick':()=>_0x4eedf0[_0x2b63c2(0x178)](),'children':_0x2b63c2(0x1f1)})]});}function Pe(_0x24ca1c){const _0x42fc4e=_0xeaafbf,{coordinator:_0x140011}=_0x24ca1c;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x42fc4e(0x14c),{'className':_0x42fc4e(0x1ee),'children':_0x42fc4e(0x1db)}),_0x115494(_0x39e985,{'variant':_0x42fc4e(0x153),'onClick':()=>_0x140011[_0x42fc4e(0x1ad)](),'children':_0x42fc4e(0x1bf)})]});}function Ae(_0x57ba39){const _0x1d5485=_0xeaafbf,{coordinator:_0x2a6bc1}=_0x57ba39;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x1d5485(0x14c),{'className':_0x1d5485(0x1ee),'children':_0x1d5485(0x171)}),_0x115494(_0x39e985,{'variant':'default','onClick':()=>_0x2a6bc1['stopPresenting'](),'children':_0x1d5485(0x15c)})]});}function Te(){const _0xed729e=_0xeaafbf;return _0x115494(_0x8cbe17,{'children':_0xed729e(0x1cf)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x1070ca,_0x2ea655,_0x29f5f4,_0x2d21d1)=>{for(var _0x338152=_0x2d21d1>0x1?void 0x0:_0x2d21d1?Fe(_0x2ea655,_0x29f5f4):_0x2ea655,_0x10d774=_0x1070ca['length']-0x1,_0x4413f7;_0x10d774>=0x0;_0x10d774--)(_0x4413f7=_0x1070ca[_0x10d774])&&(_0x338152=_0x4413f7(_0x338152)||_0x338152);return _0x338152;},A=(_0x4b46c4,_0x2a4cd2)=>(_0x343d3d,_0x3a7621)=>_0x2a4cd2(_0x343d3d,_0x3a7621,_0x4b46c4);let m=class extends _0x469b92{constructor(_0x443b42,_0xceac33){const _0x14068c=_0xeaafbf;super(),this[_0x14068c(0x187)]=_0x443b42,this[_0x14068c(0x16d)]=_0xceac33,this[_0x14068c(0x1e9)]();}[_0xeaafbf(0x1e9)](){const _0x23f52b=_0xeaafbf;this[_0x23f52b(0x15d)](this[_0x23f52b(0x16d)][_0x23f52b(0x1e5)](_0x4f4074[_0x23f52b(0x15b)],()=>_0x445f22(Le,this[_0x23f52b(0x187)])));}};m=He([A(0x0,_0x3ffeae(_0x3e453a)),A(0x1,_0x59077d)],m);const ye='live-share.config',T={};var Ue=Object[_0xeaafbf(0x1d4)],Ve=(_0x5e3edc,_0x2be997,_0x290c48,_0x142563)=>{const _0x106a35=_0xeaafbf;for(var _0xb2325c=_0x142563>0x1?void 0x0:_0x142563?Ue(_0x2be997,_0x290c48):_0x2be997,_0x402af1=_0x5e3edc[_0x106a35(0x1eb)]-0x1,_0x20c30a;_0x402af1>=0x0;_0x402af1--)(_0x20c30a=_0x5e3edc[_0x402af1])&&(_0xb2325c=_0x20c30a(_0xb2325c)||_0xb2325c);return _0xb2325c;},je=(_0x354443,_0x347a1)=>(_0x3e23cb,_0x363b5b)=>_0x347a1(_0x3e23cb,_0x363b5b,_0x354443);let I=class extends _0x469b92{constructor(_0x3374f9){const _0x2d8c35=_0xeaafbf;super(),this[_0x2d8c35(0x1af)]=_0x3374f9,this['_init']();}['_init'](){[_0x19b70e['id'],_0x49dea0['id'],_0x23cd6c['id']]['forEach'](_0x4892fc=>{const _0x14136e=_0xdc09;this[_0x14136e(0x15d)](this[_0x14136e(0x1af)][_0x14136e(0x1b3)](_0x4892fc));});}};I=Ve([je(0x0,_0x3ffeae(L))],I);var Me=Object[_0xeaafbf(0x17b)],ke=Object[_0xeaafbf(0x1d4)],Ge=(_0x2d9aab,_0x2ae8c1,_0x278e7a)=>_0x2ae8c1 in _0x2d9aab?Me(_0x2d9aab,_0x2ae8c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x278e7a}):_0x2d9aab[_0x2ae8c1]=_0x278e7a,We=(_0x2d8af8,_0x59446d,_0x1620ca,_0x40fd14)=>{for(var _0x3a2f05=_0x40fd14>0x1?void 0x0:_0x40fd14?ke(_0x59446d,_0x1620ca):_0x59446d,_0x7c7518=_0x2d8af8['length']-0x1,_0x256f51;_0x7c7518>=0x0;_0x7c7518--)(_0x256f51=_0x2d8af8[_0x7c7518])&&(_0x3a2f05=_0x256f51(_0x3a2f05)||_0x3a2f05);return _0x3a2f05;},F=(_0x28e6b1,_0x24f0b7)=>(_0x852165,_0x264c14)=>_0x24f0b7(_0x852165,_0x264c14,_0x28e6b1),B=(_0x384a9c,_0x1e8801,_0xba87a7)=>Ge(_0x384a9c,typeof _0x1e8801!=_0xeaafbf(0x180)?_0x1e8801+'':_0x1e8801,_0xba87a7);const Ye=_0xeaafbf(0x1ed);let b=class extends _0x5b0277{constructor(_0x4e333b=T,_0x39bb27,_0x4ed240){const _0x148cdf=_0xeaafbf;super(),this[_0x148cdf(0x196)]=_0x4e333b,this[_0x148cdf(0x187)]=_0x39bb27,this[_0x148cdf(0x1c8)]=_0x4ed240;const {..._0x177318}=_0x3e2e87({},T,this[_0x148cdf(0x196)]);this[_0x148cdf(0x1c8)][_0x148cdf(0x182)](ye,_0x177318);}[_0xeaafbf(0x17c)](){const _0x43f473=_0xeaafbf;_0x5b8f83(this[_0x43f473(0x187)],_0xed68fc([[L],[S],[I],[m]],this[_0x43f473(0x196)][_0x43f473(0x1f3)])),_0x98ac8(this[_0x43f473(0x187)],[[I]]);}[_0xeaafbf(0x1c6)](){_0x98ac8(this['_injector'],[[m]]);}};B(b,_0xeaafbf(0x1df),_0x59dbcd[_0xeaafbf(0x167)]),B(b,_0xeaafbf(0x172),Ye),b=We([_0x168090(_0x2f3e48),F(0x1,_0x3ffeae(_0x3e453a)),F(0x2,_0x4c72af)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};function _0x8dab(){const _0x21dcb4=['You\x27are\x20offline.','operations','getMemberID','sheet','_entities','getOwnPropertyDescriptor','_handleTerminate','path','svg','OFFLINE','_collabSession','66fjrokb','You\x27re\x20not\x20following\x20the\x20presenter','defIds','dispose$','_startLiveShareCoordinator','type','presenting','You\x27re\x20following\x20the\x20presenter','pipe','_reporters','_status$','registerComponent','requireSession','getUnitId','0\x200\x2017\x2017','_mountLiveShare','IDLE','length','evenodd','UNIVER_LIVE_SHARE_PLUGIN','univer-mb-3\x20univer-w-full\x20univer-text-sm','464394hcOILR','_beIdle','Stop\x20following','init','override','_unitID','_stopPresenting','attrs','div','getTypeOfUnitDisposed$','clear','following','colorChannel1','live-share-icon','tryStartPresenting','text','random','shouldShareOperation','includes','_commandService','event$','LIVESHARE_REQUEST_HOST','_handleOffline','HEADER_MENU','Stop\x20presenting','disposeWithMe','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','presenter','_handleOperation','entries','stringify','_handleOnline','status$','url(#$1','unsubscribe','UNIVER_UNKNOWN','set','NEW_CHANGESETS','Present\x20this\x20document','use','next','_uiPartsService','getLiveShareCoordinator','_startPresenting','mask','You\x27re\x20presenting\x20the\x20document','pluginName','replace','from','get','_fetchOperations','getValue','stopFollowing','_presenter','getInitialStates','defineProperty','onStarting','_handleNewChangeSets','LiveShareIcon','params','symbol','idSuffix','setConfig','_handleNewHost','has','tag','_status','_injector','getCurrentTypeOfUnit$','univer-size-4','Start','find','NOT_FOLLOWING','LIVESHARE_OPERATION','currentColor','then','asObservable','_univerInstanceService','button','617564galGbR','map','_init','_config','values','fill','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','createInstance','forEach','unitId','end','data','add','getStatus','children','subscribe','_stopFollowing','_collabSessionService','getConfig','1966715IjmesY','FOLLOWING','send','registerInitialStateReporter','current','dispose','PRESENTING','startFollowing','string','_liveShareService','UniverIcon','offline','sessionStatus$','registerSharedOperation','http://www.w3.org/2000/svg','idle','delete','complete','9GCYmqs','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','xlink:href','2282085tUNUdw','LIVESHARE_NEW_HOST','1947232rPoilJ','LIVESHARE_TERMINATE','Start\x20following','_startFollowing','not-following','274964UGWBGz','displayName','30725560CxnjQF','1em','onRendered','_commandDisposable','_configService','UNIVER_SHEET','none','executeCommand','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','_sharedOperations','stopPresenting'];_0x8dab=function(){return _0x21dcb4;};return _0x8dab();}
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0xa19c(_0xf48ed1,_0x5aa442){_0xf48ed1=_0xf48ed1-0xc7;const _0x59b526=_0x59b5();let _0xa19cfc=_0x59b526[_0xf48ed1];return _0xa19cfc;}function _0x59b5(){const _0x4c7959=['IUniverInstanceService','UniverCoreFacade','getStatus','UniverCore','get','FUniver','LiveShareController','getLiveShareCoordinatorSync','3713088JpmrjS','203430htwwiI','stopPresenting','function','getLiveShareStatus','12585590WJWXFB','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','3GMSoDC','startFollowing','UNIVER_SHEET','stopFollowing','getUnitId','LiveShareStatus','UniverProLiveShare','getCurrentUnitOfType','_liveShareController','35ifBTyU','No\x20active\x20workbook\x20found.','object','506608ejSxHd','extend','@univerjs-pro/live-share','_initialize','@univerjs/core/facade','amd','360540wOMdsj','defineProperty','6080949psIJuV','_injector','82198nhcnFc','FEnum','tryStartPresenting','22pUPxir','UniverInstanceType'];_0x59b5=function(){return _0x4c7959;};return _0x59b5();}(function(_0x1f09e3,_0x3b00df){const _0x5c06e4=_0xa19c,_0x563c37=_0x1f09e3();while(!![]){try{const _0x4da938=parseInt(_0x5c06e4(0xeb))/0x1*(parseInt(_0x5c06e4(0xe8))/0x2)+parseInt(_0x5c06e4(0xd2))/0x3*(-parseInt(_0x5c06e4(0xe4))/0x4)+-parseInt(_0x5c06e4(0xcc))/0x5+parseInt(_0x5c06e4(0xcb))/0x6+-parseInt(_0x5c06e4(0xdb))/0x7*(parseInt(_0x5c06e4(0xde))/0x8)+parseInt(_0x5c06e4(0xe6))/0x9+-parseInt(_0x5c06e4(0xd0))/0xa;if(_0x4da938===_0x3b00df)break;else _0x563c37['push'](_0x563c37['shift']());}catch(_0x34d3bc){_0x563c37['push'](_0x563c37['shift']());}}}(_0x59b5,0x78485),function(_0x27893c,_0xe89520){const _0x10cfe4=_0xa19c;typeof exports==_0x10cfe4(0xdd)&&typeof module<'u'?_0xe89520(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x10cfe4(0xce)&&define[_0x10cfe4(0xe3)]?define([_0x10cfe4(0xe0),'@univerjs/core',_0x10cfe4(0xe2)],_0xe89520):(_0x27893c=typeof globalThis<'u'?globalThis:_0x27893c||self,_0xe89520(_0x27893c[_0x10cfe4(0xd8)],_0x27893c[_0x10cfe4(0xf0)],_0x27893c[_0x10cfe4(0xee)]));}(this,function(_0x2b39fd,_0x225367,_0x3f57e8){'use strict';const _0x1bb2bf=_0xa19c;var _0x58e6fc=Object[_0x1bb2bf(0xe5)],_0x1ce476=(_0x5d791c,_0x2bada9,_0x5ce5d6)=>_0x2bada9 in _0x5d791c?_0x58e6fc(_0x5d791c,_0x2bada9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5ce5d6}):_0x5d791c[_0x2bada9]=_0x5ce5d6,_0x124f27=(_0x5e8092,_0x30c084,_0x334ea9)=>_0x1ce476(_0x5e8092,typeof _0x30c084!='symbol'?_0x30c084+'':_0x30c084,_0x334ea9);class _0x5a1568 extends _0x3f57e8[_0x1bb2bf(0xc8)]{constructor(){const _0x31fe64=_0x1bb2bf;super(...arguments),_0x124f27(this,_0x31fe64(0xda));}[_0x1bb2bf(0xe1)](_0x558420){const _0x302f2f=_0x1bb2bf;this[_0x302f2f(0xda)]=_0x558420[_0x302f2f(0xc7)](_0x2b39fd[_0x302f2f(0xc9)]);}[_0x1bb2bf(0xcf)](){const _0x467ede=_0x1bb2bf;var _0x1bbbc8;const _0x331d8a=this[_0x467ede(0xe7)][_0x467ede(0xc7)](_0x225367[_0x467ede(0xed)])['getCurrentUnitOfType'](_0x225367[_0x467ede(0xec)][_0x467ede(0xd4)]);if(!_0x331d8a)throw new Error(_0x467ede(0xdc));const _0x4b197b=_0x331d8a['getUnitId'](),_0x187aea=this[_0x467ede(0xda)][_0x467ede(0xca)](_0x4b197b);return(_0x1bbbc8=_0x187aea==null?void 0x0:_0x187aea[_0x467ede(0xef)]())!=null?_0x1bbbc8:_0x2b39fd['LiveShareStatus']['IDLE'];}[_0x1bb2bf(0xd3)](){const _0x261491=_0x1bb2bf,_0xcf751e=this[_0x261491(0xe7)][_0x261491(0xc7)](_0x225367[_0x261491(0xed)])[_0x261491(0xd9)](_0x225367['UniverInstanceType'][_0x261491(0xd4)]);if(!_0xcf751e)throw new Error(_0x261491(0xdc));const _0x15fe74=_0xcf751e[_0x261491(0xd6)](),_0x2eac01=this[_0x261491(0xda)][_0x261491(0xca)](_0x15fe74);if(!_0x2eac01)throw new Error(_0x261491(0xd1));_0x2eac01[_0x261491(0xd3)]();}[_0x1bb2bf(0xd5)](){const _0x5ed184=_0x1bb2bf,_0x405a49=this[_0x5ed184(0xe7)]['get'](_0x225367[_0x5ed184(0xed)])[_0x5ed184(0xd9)](_0x225367[_0x5ed184(0xec)][_0x5ed184(0xd4)]);if(!_0x405a49)throw new Error(_0x5ed184(0xdc));const _0xe6b1=_0x405a49[_0x5ed184(0xd6)](),_0x4cd56c=this[_0x5ed184(0xda)][_0x5ed184(0xca)](_0xe6b1);if(!_0x4cd56c)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4cd56c[_0x5ed184(0xd5)]();}['startPresenting'](){const _0x4dce1d=_0x1bb2bf,_0x38a466=this[_0x4dce1d(0xe7)][_0x4dce1d(0xc7)](_0x225367[_0x4dce1d(0xed)])['getCurrentUnitOfType'](_0x225367['UniverInstanceType'][_0x4dce1d(0xd4)]);if(!_0x38a466)throw new Error(_0x4dce1d(0xdc));const _0x7fdd99=_0x38a466[_0x4dce1d(0xd6)](),_0x29524e=this[_0x4dce1d(0xda)]['getLiveShareCoordinatorSync'](_0x7fdd99);if(!_0x29524e)throw new Error(_0x4dce1d(0xd1));_0x29524e[_0x4dce1d(0xea)]();}[_0x1bb2bf(0xcd)](){const _0x2c95c0=_0x1bb2bf,_0x401cf9=this['_injector'][_0x2c95c0(0xc7)](_0x225367['IUniverInstanceService'])[_0x2c95c0(0xd9)](_0x225367[_0x2c95c0(0xec)][_0x2c95c0(0xd4)]);if(!_0x401cf9)throw new Error(_0x2c95c0(0xdc));const _0x23f9ba=_0x401cf9[_0x2c95c0(0xd6)](),_0x3fb009=this['_liveShareController'][_0x2c95c0(0xca)](_0x23f9ba);if(!_0x3fb009)throw new Error(_0x2c95c0(0xd1));_0x3fb009['stopPresenting']();}}_0x3f57e8['FUniver'][_0x1bb2bf(0xdf)](_0x5a1568);class _0x560ce6 extends _0x3f57e8['FEnum']{get['LiveShareStatusEnum'](){const _0x3432bb=_0x1bb2bf;return _0x2b39fd[_0x3432bb(0xd7)];}}_0x3f57e8[_0x1bb2bf(0xe9)][_0x1bb2bf(0xdf)](_0x560ce6);}));
1
+ function _0x5cc6(){const _0x1a4e56=['157451EsjtdZ','extend','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs/core','UNIVER_SHEET','_initialize','startFollowing','_injector','_liveShareController','1185bXJmUV','get','defineProperty','getLiveShareCoordinatorSync','LiveShareStatus','54590uwRnKz','FEnum','UniverProLiveShare','9mYzFpP','3245496ZCWIVQ','FUniver','137zMiwpn','72yyxexA','512216vaKSRF','stopPresenting','startPresenting','8376BDwjOY','symbol','319GmZfIT','getUnitId','No\x20active\x20workbook\x20found.','object','UniverCoreFacade','2195154gTFddF','UniverCore','IUniverInstanceService','getCurrentUnitOfType','getLiveShareStatus','@univerjs/core/facade','tryStartPresenting','amd','5356nJzmgf','stopFollowing','UniverInstanceType','LiveShareController'];_0x5cc6=function(){return _0x1a4e56;};return _0x5cc6();}function _0x47f4(_0x5682ba,_0x2cf5d0){_0x5682ba=_0x5682ba-0x17e;const _0x5cc6a4=_0x5cc6();let _0x47f498=_0x5cc6a4[_0x5682ba];return _0x47f498;}(function(_0xb4328c,_0x3c90ce){const _0x4cfdd2=_0x47f4,_0x43bf74=_0xb4328c();while(!![]){try{const _0x53548e=parseInt(_0x4cfdd2(0x1a3))/0x1*(-parseInt(_0x4cfdd2(0x18b))/0x2)+parseInt(_0x4cfdd2(0x1a0))/0x3*(parseInt(_0x4cfdd2(0x1a5))/0x4)+-parseInt(_0x4cfdd2(0x198))/0x5*(-parseInt(_0x4cfdd2(0x1a8))/0x6)+parseInt(_0x4cfdd2(0x18f))/0x7*(parseInt(_0x4cfdd2(0x1a4))/0x8)+-parseInt(_0x4cfdd2(0x183))/0x9+-parseInt(_0x4cfdd2(0x19d))/0xa*(-parseInt(_0x4cfdd2(0x17e))/0xb)+-parseInt(_0x4cfdd2(0x1a1))/0xc;if(_0x53548e===_0x3c90ce)break;else _0x43bf74['push'](_0x43bf74['shift']());}catch(_0x57ea7d){_0x43bf74['push'](_0x43bf74['shift']());}}}(_0x5cc6,0x2f7d0),function(_0x3e8f32,_0x4abbfe){const _0x4ed894=_0x47f4;typeof exports==_0x4ed894(0x181)&&typeof module<'u'?_0x4abbfe(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x4ed894(0x18a)]?define(['@univerjs-pro/live-share',_0x4ed894(0x192),_0x4ed894(0x188)],_0x4abbfe):(_0x3e8f32=typeof globalThis<'u'?globalThis:_0x3e8f32||self,_0x4abbfe(_0x3e8f32[_0x4ed894(0x19f)],_0x3e8f32[_0x4ed894(0x184)],_0x3e8f32[_0x4ed894(0x182)]));}(this,function(_0x4477ed,_0xb974cb,_0x3677e8){'use strict';const _0x522f26=_0x47f4;var _0x498212=Object[_0x522f26(0x19a)],_0x3f27bd=(_0x3c0a50,_0x2eebe5,_0x530460)=>_0x2eebe5 in _0x3c0a50?_0x498212(_0x3c0a50,_0x2eebe5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x530460}):_0x3c0a50[_0x2eebe5]=_0x530460,_0x28bf27=(_0x32ad56,_0x716fcb,_0x32e36f)=>_0x3f27bd(_0x32ad56,typeof _0x716fcb!=_0x522f26(0x1a9)?_0x716fcb+'':_0x716fcb,_0x32e36f);class _0x5c2251 extends _0x3677e8[_0x522f26(0x1a2)]{constructor(){const _0xa16958=_0x522f26;super(...arguments),_0x28bf27(this,_0xa16958(0x197));}[_0x522f26(0x194)](_0x145332){const _0x275fba=_0x522f26;this['_liveShareController']=_0x145332[_0x275fba(0x199)](_0x4477ed[_0x275fba(0x18e)]);}[_0x522f26(0x187)](){const _0x4f6fed=_0x522f26;var _0x19221d;const _0x168733=this['_injector'][_0x4f6fed(0x199)](_0xb974cb[_0x4f6fed(0x185)])['getCurrentUnitOfType'](_0xb974cb[_0x4f6fed(0x18d)][_0x4f6fed(0x193)]);if(!_0x168733)throw new Error(_0x4f6fed(0x180));const _0x1d9dac=_0x168733[_0x4f6fed(0x17f)](),_0x36b89f=this['_liveShareController'][_0x4f6fed(0x19b)](_0x1d9dac);return(_0x19221d=_0x36b89f==null?void 0x0:_0x36b89f['getStatus']())!=null?_0x19221d:_0x4477ed['LiveShareStatus']['IDLE'];}[_0x522f26(0x195)](){const _0x5eff36=_0x522f26,_0x53f274=this[_0x5eff36(0x196)][_0x5eff36(0x199)](_0xb974cb[_0x5eff36(0x185)])[_0x5eff36(0x186)](_0xb974cb[_0x5eff36(0x18d)][_0x5eff36(0x193)]);if(!_0x53f274)throw new Error('No\x20active\x20workbook\x20found.');const _0x41458e=_0x53f274[_0x5eff36(0x17f)](),_0x574356=this['_liveShareController'][_0x5eff36(0x19b)](_0x41458e);if(!_0x574356)throw new Error(_0x5eff36(0x191));_0x574356['startFollowing']();}[_0x522f26(0x18c)](){const _0x1b1bf7=_0x522f26,_0x192c25=this[_0x1b1bf7(0x196)][_0x1b1bf7(0x199)](_0xb974cb[_0x1b1bf7(0x185)])['getCurrentUnitOfType'](_0xb974cb['UniverInstanceType'][_0x1b1bf7(0x193)]);if(!_0x192c25)throw new Error(_0x1b1bf7(0x180));const _0x5e0314=_0x192c25[_0x1b1bf7(0x17f)](),_0x56d383=this[_0x1b1bf7(0x197)][_0x1b1bf7(0x19b)](_0x5e0314);if(!_0x56d383)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x56d383[_0x1b1bf7(0x18c)]();}[_0x522f26(0x1a7)](){const _0x1c49d3=_0x522f26,_0x2f35ea=this['_injector'][_0x1c49d3(0x199)](_0xb974cb[_0x1c49d3(0x185)])['getCurrentUnitOfType'](_0xb974cb[_0x1c49d3(0x18d)]['UNIVER_SHEET']);if(!_0x2f35ea)throw new Error(_0x1c49d3(0x180));const _0x532e2c=_0x2f35ea[_0x1c49d3(0x17f)](),_0x329754=this[_0x1c49d3(0x197)][_0x1c49d3(0x19b)](_0x532e2c);if(!_0x329754)throw new Error(_0x1c49d3(0x191));_0x329754[_0x1c49d3(0x189)]();}['stopPresenting'](){const _0x2a2f8d=_0x522f26,_0x30e2eb=this['_injector']['get'](_0xb974cb[_0x2a2f8d(0x185)])[_0x2a2f8d(0x186)](_0xb974cb[_0x2a2f8d(0x18d)][_0x2a2f8d(0x193)]);if(!_0x30e2eb)throw new Error(_0x2a2f8d(0x180));const _0x490d21=_0x30e2eb[_0x2a2f8d(0x17f)](),_0xff7bde=this[_0x2a2f8d(0x197)][_0x2a2f8d(0x19b)](_0x490d21);if(!_0xff7bde)throw new Error(_0x2a2f8d(0x191));_0xff7bde[_0x2a2f8d(0x1a6)]();}}_0x3677e8[_0x522f26(0x1a2)][_0x522f26(0x190)](_0x5c2251);class _0x355e77 extends _0x3677e8[_0x522f26(0x19e)]{get['LiveShareStatusEnum'](){const _0x70bcf9=_0x522f26;return _0x4477ed[_0x70bcf9(0x19c)];}}_0x3677e8[_0x522f26(0x19e)]['extend'](_0x355e77);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3400(_0x2ff895,_0x3938be){_0x2ff895=_0x2ff895-0x1bc;const _0x4e9a99=_0x4e9a();let _0x3400e2=_0x4e9a99[_0x2ff895];return _0x3400e2;}function _0x4e9a(){const _0x325ea6=['next','1em','_config','_fetchOperations','UniverUi','SetScrollOperation','operations','sheet','Stop\x20presenting','IConfigService','useDependency','dispose$','evenodd','attrs','_univerInstanceService','IDLE','mask','_beIdle','UniverDesign','UniverCore','defineProperty','idle','presenting','complete','LIVESHARE_REQUEST_HOST','registerSharedOperation','unsubscribe','@univerjs/sheets','_handleNewHost','UniverSheets','_stopPresenting','react','UniverProCollaborationClient','Fragment','LiveShareController','Start','event$','send','DisposableCollection','4471632gmNMLX','_startFollowing','params','getValue','forEach','unitId','DesktopLiveShareController','BuiltInUIPart','getTypeOfUnitAdded$','_handleOnline','_presenter','_init','UniverInstanceType','_entities','IUIPartsService','_handleOperation','HEADER_MENU','@univerjs/sheets-ui','jsx','trim','useObservable','override','_status','currentColor','You\x27re\x20not\x20following\x20the\x20presenter','getUnitId','univer-size-4','following','path','replace','touchDependencies','onStarting','OPERATION','dispose','@univerjs-pro/collaboration-client','has','0\x200\x2017\x2017','Disposable','assign','values','_uiPartsService','entries','LIVESHARE_NEW_HOST','current','_handleTerminate','SessionStatus','onRendered','children','NEW_CHANGESETS','onCommandExecuted','RxDisposable','throttleTime','2UZdVht','none','_configService','_stopFollowing','_handleNewChangeSets','LiveShare','SAME_OPERATION_SHARE_INTERVAL','data','not-following','useState','merge','registerComponent','LIVESHARE_OPERATION','_injector','_liveShareService','disposeWithMe','svg','getOwnPropertyDescriptor','@univerjs-pro/collaboration','map','tag','from','defIds','rxjs/operators','takeUntil','asObservable','memberID','exports','452JHrDSz','string','default','univer-mb-3\x20univer-w-full\x20univer-text-sm','BehaviorSubject','OFFLINE','mutations','LiveShareCoordinator','LiveShareService','stopPresenting','You\x27re\x20presenting\x20the\x20document','SetWorksheetActiveOperation','sessionStatus$','status$','_startLiveShareCoordinator','rxjs','executeCommand','univerjs-icon\x20univerjs-icon-','startFollowing','Stop\x20following','CollaborationSessionService','tryStartPresenting','ICommandService','3008474fDHwfY','clsx','Injector','@univerjs/core','UNIVER_SHEET','registerDependencies','div','UniverIcon','706442CmInOF','1752016llWyeF','fill','_collabSession','NOT_FOLLOWING','type','get','Start\x20following','LIVESHARE_TERMINATE','FOLLOWING','React','then','552228QLctXi','toStringTag','CollaborationEvent','IUniverInstanceService','LiveShareStatus','getConfig','getLiveShareCoordinator','Button','pluginName','live-share.config','LIVESHARE_FETCH_OPERATIONS','add','UniverCollaborationClientPlugin','Module','You\x27re\x20following\x20the\x20presenter','ONLINE','_mountLiveShare','button','requireSession','LiveShareIcon','SetZoomRatioOperation','parseProtocolChangeset','_reporters','substring','live-share-icon','init','_commandDisposable','displayName','parse','toDisposable','toString','@univerjs/design','Dropdown','PRESENTING','_startPresenting','use','_commandService','getLiveShareCoordinatorSync','colorChannel1','createElement','subscribe','getMemberID','defs','_handleOffline','url(#$1','stopFollowing','text','_unitID','12xWRtmp','jsxs','delete','UniverSheetsUi','setConfig','includes','length','8890600sJKXuD','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','xlink:href','connectInjector','46635CzkMZJ','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','_status$','idSuffix','Inject','find','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UniverLiveSharePlugin','presenter','pipe','_collabSessionService','offline','_sharedOperations','clear'];_0x4e9a=function(){return _0x325ea6;};return _0x4e9a();}(function(_0x10a58b,_0x2487ca){const _0x594579=_0x3400,_0x4517c8=_0x10a58b();while(!![]){try{const _0x2630c6=-parseInt(_0x594579(0x282))/0x1*(parseInt(_0x594579(0x247))/0x2)+-parseInt(_0x594579(0x28e))/0x3+-parseInt(_0x594579(0x263))/0x4*(-parseInt(_0x594579(0x1de))/0x5)+parseInt(_0x594579(0x1d3))/0x6*(-parseInt(_0x594579(0x27a))/0x7)+parseInt(_0x594579(0x283))/0x8+parseInt(_0x594579(0x213))/0x9+parseInt(_0x594579(0x1da))/0xa;if(_0x2630c6===_0x2487ca)break;else _0x4517c8['push'](_0x4517c8['shift']());}catch(_0x3d5a26){_0x4517c8['push'](_0x4517c8['shift']());}}}(_0x4e9a,0xdddeb),function(_0xff09e8,_0x22ccde){const _0x5e497a=_0x3400;typeof exports=='object'&&typeof module<'u'?_0x22ccde(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define['amd']?define([_0x5e497a(0x262),_0x5e497a(0x27d),'@univerjs/ui','react/jsx-runtime',_0x5e497a(0x1c2),_0x5e497a(0x20b),_0x5e497a(0x259),_0x5e497a(0x235),_0x5e497a(0x207),'rxjs',_0x5e497a(0x25e),_0x5e497a(0x224)],_0x22ccde):(_0xff09e8=typeof globalThis<'u'?globalThis:_0xff09e8||self,_0x22ccde(_0xff09e8['UniverProLiveShare']={},_0xff09e8[_0x5e497a(0x1ff)],_0xff09e8[_0x5e497a(0x1f0)],_0xff09e8[_0x5e497a(0x28c)],_0xff09e8[_0x5e497a(0x1fe)],_0xff09e8[_0x5e497a(0x28c)],_0xff09e8['UniverProCollaboration'],_0xff09e8[_0x5e497a(0x20c)],_0xff09e8[_0x5e497a(0x209)],_0xff09e8[_0x5e497a(0x272)],_0xff09e8[_0x5e497a(0x272)]['operators'],_0xff09e8[_0x5e497a(0x1d6)]));}(this,function(_0x4d3dfd,_0x32ef99,_0x237a82,_0x2bdc67,_0x4871f0,_0x549f2a,_0x3318d0,_0x59879d,_0x467a62,_0x1cec5d,_0x3734af,_0x28c725){'use strict';const _0x2a1b0c=_0x3400;var _0x3936a2=Object[_0x2a1b0c(0x200)],_0x24203f=(_0x382d6f,_0x4387ca,_0xd76ce3)=>_0x4387ca in _0x382d6f?_0x3936a2(_0x382d6f,_0x4387ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd76ce3}):_0x382d6f[_0x4387ca]=_0xd76ce3,_0x4c9b1c=(_0x5456e4,_0x583e90,_0x5b6af2)=>_0x24203f(_0x5456e4,typeof _0x583e90!='symbol'?_0x583e90+'':_0x583e90,_0x5b6af2);function _0x53c976({ref:_0x4167c2,..._0x2334a9}){const _0x4bff42=_0x2a1b0c,{icon:_0x12d06a,id:_0x2686f0,className:_0x1e03d6,extend:_0x433db4,..._0x503cb9}=_0x2334a9,_0x1b6292=(_0x4bff42(0x274)+_0x2686f0+'\x20'+(_0x1e03d6||''))[_0x4bff42(0x226)](),_0x3ea302=_0x549f2a['useRef']('_'+_0x73a23b());return _0x54811c(_0x12d06a,''+_0x2686f0,{'defIds':_0x12d06a[_0x4bff42(0x25d)],'idSuffix':_0x3ea302['current']},{'ref':_0x4167c2,'className':_0x1b6292,..._0x503cb9},_0x433db4);}function _0x54811c(_0x5424a4,_0x135082,_0x2e2417,_0x118760,_0x4df68a){const _0x4e497d=_0x2a1b0c;return _0x549f2a[_0x4e497d(0x1ca)](_0x5424a4['tag'],{'key':_0x135082,..._0x77b86c(_0x5424a4,_0x2e2417,_0x4df68a),..._0x118760},(_0xa486d1(_0x5424a4,_0x2e2417)[_0x4e497d(0x242)]||[])['map']((_0x295f8c,_0x466a9c)=>_0x54811c(_0x295f8c,_0x135082+'-'+_0x5424a4[_0x4e497d(0x25b)]+'-'+_0x466a9c,_0x2e2417,void 0x0,_0x4df68a)));}function _0x77b86c(_0x439028,_0x2d1931,_0x57ae31){const _0x3dc837=_0x2a1b0c,_0x2fdcdf={..._0x439028[_0x3dc837(0x1f9)]};_0x57ae31!=null&&_0x57ae31[_0x3dc837(0x1c9)]&&_0x2fdcdf[_0x3dc837(0x284)]==='colorChannel1'&&(_0x2fdcdf[_0x3dc837(0x284)]=_0x57ae31[_0x3dc837(0x1c9)]),_0x439028[_0x3dc837(0x25b)]===_0x3dc837(0x1fc)&&_0x2fdcdf['id']&&(_0x2fdcdf['id']=_0x2fdcdf['id']+_0x2d1931[_0x3dc837(0x1e1)]),Object['entries'](_0x2fdcdf)['forEach'](([_0x5e48a9,_0x4f32c4])=>{const _0x5cce97=_0x3dc837;_0x5e48a9==='mask'&&typeof _0x4f32c4==_0x5cce97(0x264)&&(_0x2fdcdf[_0x5e48a9]=_0x4f32c4[_0x5cce97(0x230)](/url\(#(.*)\)/,_0x5cce97(0x1cf)+_0x2d1931[_0x5cce97(0x1e1)]+')'));});const {defIds:_0x535bfa}=_0x2d1931;return!_0x535bfa||_0x535bfa[_0x3dc837(0x1d9)]===0x0||(_0x439028['tag']===_0x3dc837(0x1c6)&&_0x2fdcdf[_0x3dc837(0x1dc)]&&(_0x2fdcdf['xlink:href']=_0x2fdcdf[_0x3dc837(0x1dc)]+_0x2d1931[_0x3dc837(0x1e1)]),Object[_0x3dc837(0x23c)](_0x2fdcdf)[_0x3dc837(0x217)](([_0x1bb973,_0x30d5bc])=>{const _0x5800ea=_0x3dc837;typeof _0x30d5bc==_0x5800ea(0x264)&&(_0x2fdcdf[_0x1bb973]=_0x30d5bc[_0x5800ea(0x230)](/url\(#(.*)\)/,_0x5800ea(0x1cf)+_0x2d1931[_0x5800ea(0x1e1)]+')'));})),_0x2fdcdf;}function _0xa486d1(_0x52784d,_0xa66f7a){const _0x33063e=_0x2a1b0c;var _0x259649;const {defIds:_0x4740c5}=_0xa66f7a;return!_0x4740c5||_0x4740c5[_0x33063e(0x1d9)]===0x0?_0x52784d:_0x52784d[_0x33063e(0x25b)]===_0x33063e(0x1cd)&&((_0x259649=_0x52784d['children'])!=null&&_0x259649[_0x33063e(0x1d9)])?{..._0x52784d,'children':_0x52784d['children'][_0x33063e(0x25a)](_0x742f7d=>typeof _0x742f7d[_0x33063e(0x1f9)]['id']==_0x33063e(0x264)&&_0x4740c5&&_0x4740c5[_0x33063e(0x1d8)](_0x742f7d[_0x33063e(0x1f9)]['id'])?{..._0x742f7d,'attrs':{..._0x742f7d[_0x33063e(0x1f9)],'id':_0x742f7d[_0x33063e(0x1f9)]['id']+_0xa66f7a[_0x33063e(0x1e1)]}}:_0x742f7d)}:_0x52784d;}function _0x73a23b(){const _0x2caeea=_0x2a1b0c;return Math['random']()[_0x2caeea(0x1c1)](0x24)[_0x2caeea(0x2a5)](0x2,0x8);}_0x53c976[_0x2a1b0c(0x1be)]=_0x2a1b0c(0x281);const _0x40fe20={'tag':_0x2a1b0c(0x257),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2a1b0c(0x248),'viewBox':_0x2a1b0c(0x237),'width':_0x2a1b0c(0x1ed),'height':'1em'},'children':[{'tag':_0x2a1b0c(0x22f),'attrs':{'fill':_0x2a1b0c(0x22a),'d':_0x2a1b0c(0x1df)}},{'tag':'path','attrs':{'fill':_0x2a1b0c(0x22a),'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':_0x2a1b0c(0x1f8),'clipRule':_0x2a1b0c(0x1f8)}}]},_0x488643=_0x549f2a['forwardRef'](function(_0x132fad,_0x2e4816){const _0x2cc216=_0x2a1b0c;return _0x549f2a[_0x2cc216(0x1ca)](_0x53c976,Object[_0x2cc216(0x239)]({},_0x132fad,{'id':_0x2cc216(0x2a6),'ref':_0x2e4816,'icon':_0x40fe20}));});_0x488643[_0x2a1b0c(0x1be)]=_0x2a1b0c(0x2a1);class _0x169058 extends _0x32ef99[_0x2a1b0c(0x238)]{constructor(){const _0x4e1edb=_0x2a1b0c;super(...arguments),_0x4c9b1c(this,_0x4e1edb(0x1ea),new Set()),_0x4c9b1c(this,_0x4e1edb(0x2a4),new Set());}[_0x2a1b0c(0x205)](_0x45df3d){const _0x29b33b=_0x2a1b0c;return this['_sharedOperations'][_0x29b33b(0x299)](_0x45df3d),_0x32ef99['toDisposable'](()=>this[_0x29b33b(0x1ea)]['delete'](_0x45df3d));}['registerInitialStateReporter'](_0x449fd8){const _0x5528cd=_0x2a1b0c;return this['_reporters'][_0x5528cd(0x299)](_0x449fd8),_0x32ef99['toDisposable'](()=>this[_0x5528cd(0x2a4)][_0x5528cd(0x1d5)](_0x449fd8));}['shouldShareOperation'](_0xfcea9e){const _0x2db634=_0x2a1b0c;return this[_0x2db634(0x1ea)][_0x2db634(0x236)](_0xfcea9e);}['getInitialStates'](_0x1a3147){const _0xb4e88b=_0x2a1b0c;return Array[_0xb4e88b(0x25c)](this['_reporters'])[_0xb4e88b(0x25a)](_0x50bdbd=>_0x50bdbd(_0x1a3147));}}var _0x34ec12=Object[_0x2a1b0c(0x258)],_0x127dee=(_0x1b3320,_0x126b2b,_0x2636d5,_0x33c793)=>{const _0x56ae56=_0x2a1b0c;for(var _0x19180e=_0x33c793>0x1?void 0x0:_0x33c793?_0x34ec12(_0x126b2b,_0x2636d5):_0x126b2b,_0x4a5825=_0x1b3320[_0x56ae56(0x1d9)]-0x1,_0x382c85;_0x4a5825>=0x0;_0x4a5825--)(_0x382c85=_0x1b3320[_0x4a5825])&&(_0x19180e=_0x382c85(_0x19180e)||_0x19180e);return _0x19180e;},_0x225975=(_0x4d1f61,_0x4e7716)=>(_0x40d372,_0x3bfa4f)=>_0x4e7716(_0x40d372,_0x3bfa4f,_0x4d1f61);_0x4d3dfd[_0x2a1b0c(0x20e)]=class extends _0x32ef99[_0x2a1b0c(0x245)]{constructor(_0x495e07,_0x3f9c0e,_0x257c2a){const _0x2fabec=_0x2a1b0c;super(),_0x4c9b1c(this,_0x2fabec(0x220),new Map()),(this[_0x2fabec(0x1fa)]=_0x495e07,this[_0x2fabec(0x254)]=_0x3f9c0e,this[_0x2fabec(0x1e8)]=_0x257c2a,this[_0x2fabec(0x21e)]());}async[_0x2a1b0c(0x294)](_0x23806d){const _0x4a2ab8=_0x2a1b0c;return this[_0x4a2ab8(0x220)][_0x4a2ab8(0x236)](_0x23806d)||await this[_0x4a2ab8(0x271)](_0x23806d),this[_0x4a2ab8(0x220)][_0x4a2ab8(0x288)](_0x23806d);}[_0x2a1b0c(0x1c8)](_0x133e8d){const _0x432671=_0x2a1b0c;var _0x357f7a;return(_0x357f7a=this[_0x432671(0x220)][_0x432671(0x288)](_0x133e8d))!=null?_0x357f7a:null;}[_0x2a1b0c(0x21e)](){const _0x540150=_0x2a1b0c;this[_0x540150(0x1fa)][_0x540150(0x21b)](_0x32ef99[_0x540150(0x21f)][_0x540150(0x27e)])[_0x540150(0x1e7)](_0x3734af[_0x540150(0x25f)](this[_0x540150(0x1f7)]))[_0x540150(0x1cb)](async _0x3ca008=>{const _0x1cec5e=_0x540150,_0x24ff6c=_0x3ca008['getUnitId']();this[_0x1cec5e(0x220)][_0x1cec5e(0x236)](_0x24ff6c)||this[_0x1cec5e(0x271)](_0x24ff6c);}),this[_0x540150(0x1fa)]['getTypeOfUnitDisposed$'](_0x32ef99[_0x540150(0x21f)][_0x540150(0x27e)])[_0x540150(0x1e7)](_0x3734af[_0x540150(0x25f)](this['dispose$']))['subscribe'](_0x5917d4=>{const _0xe6a157=_0x540150,_0x2189f4=_0x5917d4[_0xe6a157(0x22c)](),_0x252808=this[_0xe6a157(0x220)][_0xe6a157(0x288)](_0x2189f4);_0x252808==null||_0x252808['dispose']();});}async[_0x2a1b0c(0x271)](_0x565354){const _0x10758e=_0x2a1b0c,_0x565175=await this[_0x10758e(0x1e8)][_0x10758e(0x2a0)](_0x565354),_0x5a9b4d=this[_0x10758e(0x254)]['createInstance'](_0x4d3dfd['LiveShareCoordinator'],_0x565354,_0x565175);return _0x5a9b4d[_0x10758e(0x1bc)](),this[_0x10758e(0x220)]['set'](_0x565354,_0x5a9b4d),_0x5a9b4d;}},_0x4d3dfd['LiveShareController']=_0x127dee([_0x225975(0x0,_0x32ef99[_0x2a1b0c(0x291)]),_0x225975(0x1,_0x32ef99[_0x2a1b0c(0x1e2)](_0x32ef99[_0x2a1b0c(0x27c)])),_0x225975(0x2,_0x32ef99[_0x2a1b0c(0x1e2)](_0x59879d[_0x2a1b0c(0x277)]))],_0x4d3dfd[_0x2a1b0c(0x20e)]);var _0x4685f8=(_0x3862d2=>(_0x3862d2[_0x2a1b0c(0x268)]=_0x2a1b0c(0x1e9),_0x3862d2['IDLE']=_0x2a1b0c(0x201),_0x3862d2[_0x2a1b0c(0x28b)]=_0x2a1b0c(0x22e),_0x3862d2[_0x2a1b0c(0x286)]='not-following',_0x3862d2[_0x2a1b0c(0x1c4)]=_0x2a1b0c(0x202),_0x3862d2))(_0x4685f8||{});const _0x350a50=_0x2a1b0c(0x24d),_0x35974e=0xc8;_0x4d3dfd[_0x2a1b0c(0x26a)]=class extends _0x32ef99[_0x2a1b0c(0x245)]{constructor(_0x636f0f,_0x57f107,_0x5c1dcf,_0x3d7d8c,_0x4f7125){const _0xd59505=_0x2a1b0c;super(),_0x4c9b1c(this,_0xd59505(0x1e0),new _0x1cec5d[(_0xd59505(0x267))](_0xd59505(0x201))),_0x4c9b1c(this,_0xd59505(0x270),this[_0xd59505(0x1e0)][_0xd59505(0x260)]()),_0x4c9b1c(this,_0xd59505(0x21e),!0x1),_0x4c9b1c(this,_0xd59505(0x1bd),null),_0x4c9b1c(this,_0xd59505(0x21d),null),(this[_0xd59505(0x1d2)]=_0x636f0f,this[_0xd59505(0x285)]=_0x57f107,this['_configService']=_0x5c1dcf,this[_0xd59505(0x255)]=_0x3d7d8c,this[_0xd59505(0x1c7)]=_0x4f7125);}get[_0x2a1b0c(0x229)](){const _0x4baf2e=_0x2a1b0c;return this['_status$'][_0x4baf2e(0x216)]();}[_0x2a1b0c(0x234)](){const _0x2b35ce=_0x2a1b0c;var _0x853bf5;(_0x853bf5=this[_0x2b35ce(0x1bd)])==null||_0x853bf5['dispose'](),this[_0x2b35ce(0x1e0)]['next'](_0x2b35ce(0x201)),this[_0x2b35ce(0x1e0)][_0x2b35ce(0x203)]();}['getStatus'](){const _0xd6a977=_0x2a1b0c;return this[_0xd6a977(0x229)];}[_0x2a1b0c(0x1bc)](){const _0x4cc690=_0x2a1b0c;this[_0x4cc690(0x21e)]||(this[_0x4cc690(0x21e)]=!0x0,this[_0x4cc690(0x285)][_0x4cc690(0x26f)][_0x4cc690(0x1e7)](_0x3734af['takeUntil'](this[_0x4cc690(0x1f7)]))[_0x4cc690(0x1cb)](_0xa6ab6d=>{const _0xe72147=_0x4cc690;switch(_0xa6ab6d){case _0x59879d['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case _0x59879d[_0xe72147(0x240)][_0xe72147(0x29d)]:this[_0xe72147(0x21c)]();break;}}),this[_0x4cc690(0x285)][_0x4cc690(0x210)][_0x4cc690(0x1e7)](_0x3734af[_0x4cc690(0x25f)](this['dispose$']))[_0x4cc690(0x1cb)](_0x4b5b6a=>{const _0xd65540=_0x4cc690,{eventID:_0x26a471}=_0x4b5b6a;switch(_0x26a471){case _0x3318d0['CollaborationEvent'][_0xd65540(0x23d)]:this[_0xd65540(0x208)](_0x4b5b6a);break;case _0x3318d0[_0xd65540(0x290)][_0xd65540(0x253)]:this[_0xd65540(0x222)](_0x4b5b6a);break;case _0x3318d0['CollaborationEvent'][_0xd65540(0x28a)]:this['_handleTerminate']();break;case _0x3318d0[_0xd65540(0x290)][_0xd65540(0x243)]:this[_0xd65540(0x24b)](_0x4b5b6a);break;}}));}['tryStartPresenting'](){const _0x10a4ba=_0x2a1b0c;this[_0x10a4ba(0x285)][_0x10a4ba(0x211)]({'eventID':_0x3318d0[_0x10a4ba(0x290)][_0x10a4ba(0x204)],'data':{'unitID':this[_0x10a4ba(0x1d2)],'userID':this[_0x10a4ba(0x285)][_0x10a4ba(0x1cc)]()}},this['_unitID']);}[_0x2a1b0c(0x26c)](){const _0x418ad6=_0x2a1b0c;this[_0x418ad6(0x229)]===_0x418ad6(0x202)&&(this[_0x418ad6(0x1e0)][_0x418ad6(0x1ec)](_0x418ad6(0x201)),this[_0x418ad6(0x285)]['send']({'eventID':_0x3318d0[_0x418ad6(0x290)][_0x418ad6(0x28a)],'data':{'unitID':this[_0x418ad6(0x1d2)]}},this[_0x418ad6(0x1d2)]));}[_0x2a1b0c(0x275)](){const _0x339fdf=_0x2a1b0c;this['_status']===_0x339fdf(0x24f)&&(this[_0x339fdf(0x1e0)]['next'](_0x339fdf(0x22e)),this[_0x339fdf(0x214)]());}[_0x2a1b0c(0x1d0)](){const _0x41dbf3=_0x2a1b0c;this['_status']===_0x41dbf3(0x22e)&&this[_0x41dbf3(0x24a)]();}[_0x2a1b0c(0x208)](_0x30df8f){const _0x7e4251=_0x2a1b0c,{presenter:_0x220710}=_0x30df8f['data'],_0x271051=this['_collabSession'][_0x7e4251(0x1cc)]();this[_0x7e4251(0x21d)]=_0x220710,_0x220710===_0x271051?(this[_0x7e4251(0x24a)](),this[_0x7e4251(0x1c5)]()):this[_0x7e4251(0x229)]!==_0x7e4251(0x24f)&&(this['_stopPresenting'](),this['_startFollowing']());}['_fetchOperations'](){const _0x5ac1d8=_0x2a1b0c,_0x400b6e={'eventID':_0x3318d0['CollaborationEvent'][_0x5ac1d8(0x298)]};this[_0x5ac1d8(0x285)]['send'](_0x400b6e,this[_0x5ac1d8(0x1d2)]);}[_0x2a1b0c(0x23f)](){this['_presenter']=null,this['_status']!=='presenting'&&this['_beIdle']();}[_0x2a1b0c(0x24b)](_0x1a73a0){const _0x10cbe9=_0x2a1b0c;if(this[_0x10cbe9(0x229)]===_0x10cbe9(0x22e)&&this[_0x10cbe9(0x21d)]===_0x1a73a0[_0x10cbe9(0x24e)][_0x10cbe9(0x261)]){const _0x13a117=_0x3318d0[_0x10cbe9(0x2a3)](_0x1a73a0['data'])[_0x10cbe9(0x269)]['reverse']()[_0x10cbe9(0x1e3)](_0x1243c8=>_0x1243c8['id']===_0x467a62['InsertSheetMutation']['id']);if(_0x13a117){const _0x16f2c7=_0x13a117[_0x10cbe9(0x215)][_0x10cbe9(0x218)],_0x40fa0c=_0x13a117[_0x10cbe9(0x215)][_0x10cbe9(0x1f3)]['id'];setTimeout(()=>{const _0x35f3e2=_0x10cbe9;this[_0x35f3e2(0x1c7)][_0x35f3e2(0x273)](_0x467a62['SetWorksheetActiveOperation']['id'],{'unitId':_0x16f2c7,'subUnitId':_0x40fa0c},{'fromCollab':!0x0});});}}}[_0x2a1b0c(0x1c5)](){const _0xea96c=_0x2a1b0c;this[_0xea96c(0x1e0)]['next']('presenting');const _0x371cc0=new Map(),_0x438128=this['_commandDisposable']=new _0x32ef99[(_0xea96c(0x212))]();_0x438128['add'](_0x32ef99[_0xea96c(0x1c0)](()=>{const _0x48e255=_0xea96c;_0x371cc0['forEach'](_0x26525c=>_0x26525c[_0x48e255(0x203)]()),_0x371cc0[_0x48e255(0x1eb)]();})),_0x438128['add'](this['_commandService'][_0xea96c(0x244)](_0x1877d8=>{const _0x48d289=_0xea96c;var _0x3a5b86;if(_0x1877d8[_0x48d289(0x287)]!==_0x32ef99['CommandType'][_0x48d289(0x233)]||!this[_0x48d289(0x255)]['shouldShareOperation'](_0x1877d8['id']))return;const {id:_0x46dd65}=_0x1877d8;let _0x40d776;_0x371cc0[_0x48d289(0x236)](_0x46dd65)?_0x40d776=_0x371cc0['get'](_0x46dd65):(_0x40d776=new _0x1cec5d['Subject'](),_0x371cc0['set'](_0x46dd65,_0x40d776),_0x40d776[_0x48d289(0x1e7)](_0x3734af[_0x48d289(0x246)]((_0x3a5b86=this[_0x48d289(0x249)][_0x48d289(0x293)](_0x350a50))!=null?_0x3a5b86:_0x35974e,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x48d289(0x1cb)](_0x6f648f=>{const _0x4449fe=_0x48d289;this[_0x4449fe(0x285)][_0x4449fe(0x211)]({'eventID':_0x3318d0['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4449fe(0x1d2)],'operations':{[_0x6f648f['id']]:{'id':_0x6f648f['id'],'params':JSON['stringify'](_0x6f648f[_0x4449fe(0x215)])}}}},this[_0x4449fe(0x1d2)]);})),_0x40d776[_0x48d289(0x1ec)](_0x1877d8);})),this[_0xea96c(0x255)]['getInitialStates'](this[_0xea96c(0x1d2)])['forEach'](_0xffb519=>this['_collabSession'][_0xea96c(0x211)]({'eventID':_0x3318d0['CollaborationEvent'][_0xea96c(0x253)],'data':{'unitID':this['_unitID'],'operations':{[_0xffb519['id']]:{'id':_0xffb519['id'],'params':JSON['stringify'](_0xffb519[_0xea96c(0x215)])}}}},this[_0xea96c(0x1d2)]));}[_0x2a1b0c(0x20a)](){const _0x9a3215=_0x2a1b0c;var _0x146d66;this['_status$'][_0x9a3215(0x1ec)](_0x9a3215(0x201)),(_0x146d66=this[_0x9a3215(0x1bd)])==null||_0x146d66['dispose'](),this[_0x9a3215(0x1bd)]=null;}['_startFollowing'](){const _0x894171=_0x2a1b0c;var _0x3a1006;(_0x3a1006=this[_0x894171(0x1bd)])==null||_0x3a1006[_0x894171(0x234)](),this[_0x894171(0x1e0)][_0x894171(0x1ec)](_0x894171(0x22e));}[_0x2a1b0c(0x1fd)](){const _0x15d025=_0x2a1b0c;var _0x21321d;this[_0x15d025(0x1e0)][_0x15d025(0x1ec)]('idle'),(_0x21321d=this[_0x15d025(0x1bd)])==null||_0x21321d[_0x15d025(0x234)](),this[_0x15d025(0x1bd)]=null;}[_0x2a1b0c(0x24a)](){const _0x1fb84f=_0x2a1b0c;var _0x403e88;this['_status$'][_0x1fb84f(0x1ec)](_0x1fb84f(0x24f)),(_0x403e88=this[_0x1fb84f(0x1bd)])==null||_0x403e88[_0x1fb84f(0x234)]();}[_0x2a1b0c(0x222)](_0x5ee277){const _0x42f7bf=_0x2a1b0c;if([_0x42f7bf(0x202),_0x42f7bf(0x24f),'offline']['includes'](this['_status'])||!_0x5ee277[_0x42f7bf(0x24e)][_0x42f7bf(0x1e6)]||_0x5ee277[_0x42f7bf(0x24e)][_0x42f7bf(0x1e6)]===this['_collabSession'][_0x42f7bf(0x1cc)]())return;this['_status']===_0x42f7bf(0x201)&&this[_0x42f7bf(0x214)]();const _0x5c69e5=_0x5ee277['data'][_0x42f7bf(0x1f2)];Object[_0x42f7bf(0x23a)](_0x5c69e5)['forEach'](_0x3cf455=>{const _0x22f3ea=_0x42f7bf;this[_0x22f3ea(0x1c7)][_0x22f3ea(0x273)](_0x3cf455['id'],_0x3cf455[_0x22f3ea(0x215)]?JSON[_0x22f3ea(0x1bf)](_0x3cf455[_0x22f3ea(0x215)]):null,{'fromCollab':!0x0});});}[_0x2a1b0c(0x1ce)](){const _0x546c44=_0x2a1b0c;var _0x4f7080;this[_0x546c44(0x1e0)][_0x546c44(0x1ec)](_0x546c44(0x1e9)),(_0x4f7080=this[_0x546c44(0x1bd)])==null||_0x4f7080[_0x546c44(0x234)]();}[_0x2a1b0c(0x21c)](){const _0x3532b9=_0x2a1b0c;this[_0x3532b9(0x1e0)]['next']('idle'),this[_0x3532b9(0x1ef)]();}},_0x4d3dfd[_0x2a1b0c(0x26a)]=_0x127dee([_0x225975(0x2,_0x32ef99[_0x2a1b0c(0x1f5)]),_0x225975(0x3,_0x32ef99[_0x2a1b0c(0x1e2)](_0x169058)),_0x225975(0x4,_0x32ef99[_0x2a1b0c(0x279)])],_0x4d3dfd['LiveShareCoordinator']);function _0x31a5a0(){const _0x56a95b=_0x2a1b0c,_0x1c5d43=_0x237a82[_0x56a95b(0x1f6)](_0x4d3dfd[_0x56a95b(0x20e)]),_0x5de32e=_0x237a82[_0x56a95b(0x1f6)](_0x32ef99[_0x56a95b(0x291)]),_0x8d6be5=_0x237a82[_0x56a95b(0x227)](()=>_0x5de32e['getCurrentTypeOfUnit$'](_0x32ef99[_0x56a95b(0x21f)][_0x56a95b(0x27e)]),void 0x0,!0x1,[]),[_0x1c1cfa,_0x586971]=_0x549f2a[_0x56a95b(0x250)](null),[_0x323e99,_0x8c9750]=_0x549f2a['useState'](_0x4685f8[_0x56a95b(0x1fb)]),_0x2253bf=_0x549f2a['useRef'](null);return _0x549f2a['useEffect'](()=>(_0x8d6be5&&_0x1c5d43[_0x56a95b(0x294)](_0x8d6be5[_0x56a95b(0x22c)]())[_0x56a95b(0x28d)](_0xcf19cc=>{const _0x38c197=_0x56a95b;_0x586971(_0xcf19cc),_0x2253bf[_0x38c197(0x23e)]=_0xcf19cc[_0x38c197(0x270)][_0x38c197(0x1cb)](_0x493b0=>{_0x8c9750(_0x493b0);});}),()=>{const _0x4422b7=_0x56a95b;var _0x2fa163;(_0x2fa163=_0x2253bf[_0x4422b7(0x23e)])==null||_0x2fa163[_0x4422b7(0x206)](),_0x2253bf[_0x4422b7(0x23e)]=null;}),[_0x8d6be5,_0x1c5d43]),_0x1c1cfa?_0x2bdc67[_0x56a95b(0x225)](_0x4871f0[_0x56a95b(0x1c3)],{'align':'end','disabled':_0x323e99===_0x4685f8[_0x56a95b(0x268)],'className':_0x56a95b(0x1db),'overlay':_0x2bdc67[_0x56a95b(0x225)](_0x23b42e,{'status':_0x323e99,'coordinator':_0x1c1cfa}),'children':_0x2bdc67[_0x56a95b(0x225)]('button',{'className':_0x4871f0[_0x56a95b(0x27b)](_0x56a95b(0x1e4),{'univer-cursor-not-allowed':_0x323e99===_0x4685f8[_0x56a95b(0x268)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x323e99!==_0x4685f8[_0x56a95b(0x268)]}),'type':_0x56a95b(0x29f),'children':_0x2bdc67['jsx'](_0x488643,{'className':_0x56a95b(0x22d)})})}):null;}function _0x23b42e(_0x4a226f){const _0x50528d=_0x2a1b0c,{status:_0x51506f,coordinator:_0xb71fd4}=_0x4a226f;switch(_0x51506f){case _0x4685f8[_0x50528d(0x1fb)]:return _0x2bdc67[_0x50528d(0x225)](_0x1b1e7f,{'coordinator':_0xb71fd4});case _0x4685f8[_0x50528d(0x28b)]:return _0x2bdc67['jsx'](_0x502bee,{'coordinator':_0xb71fd4});case _0x4685f8[_0x50528d(0x286)]:return _0x2bdc67['jsx'](_0x3ae135,{'coordinator':_0xb71fd4});case _0x4685f8['OFFLINE']:return _0x2bdc67[_0x50528d(0x225)](_0x1c85c6,{});case _0x4685f8[_0x50528d(0x1c4)]:return _0x2bdc67['jsx'](_0x4e9e5e,{'coordinator':_0xb71fd4});default:return null;}}function _0x1b1e7f(_0x1740e3){const _0x572148=_0x2a1b0c,{coordinator:_0x5253fc}=_0x1740e3;return _0x2bdc67['jsxs'](_0x2bdc67[_0x572148(0x20d)],{'children':[_0x2bdc67[_0x572148(0x225)](_0x572148(0x280),{'className':_0x572148(0x266),'children':'Present\x20this\x20document'}),_0x2bdc67[_0x572148(0x225)](_0x4871f0[_0x572148(0x295)],{'onClick':()=>_0x5253fc[_0x572148(0x278)](),'children':_0x572148(0x20f)})]});}function _0x502bee(_0xb0c078){const _0x2899fd=_0x2a1b0c,{coordinator:_0x4cd8a0}=_0xb0c078;return _0x2bdc67['jsxs'](_0x2bdc67['Fragment'],{'children':[_0x2bdc67['jsx'](_0x2899fd(0x280),{'className':_0x2899fd(0x266),'children':_0x2899fd(0x29c)}),_0x2bdc67[_0x2899fd(0x225)](_0x4871f0[_0x2899fd(0x295)],{'onClick':()=>_0x4cd8a0[_0x2899fd(0x1d0)](),'children':_0x2899fd(0x276)})]});}function _0x3ae135(_0x444cd9){const _0x523e8c=_0x2a1b0c,{coordinator:_0x57d1bd}=_0x444cd9;return _0x2bdc67[_0x523e8c(0x1d4)](_0x2bdc67[_0x523e8c(0x20d)],{'children':[_0x2bdc67[_0x523e8c(0x225)](_0x523e8c(0x280),{'className':_0x523e8c(0x266),'children':_0x523e8c(0x22b)}),_0x2bdc67[_0x523e8c(0x225)](_0x4871f0[_0x523e8c(0x295)],{'variant':_0x523e8c(0x1d1),'onClick':()=>_0x57d1bd[_0x523e8c(0x275)](),'children':_0x523e8c(0x289)})]});}function _0x4e9e5e(_0x4c33cd){const _0x4b2ce3=_0x2a1b0c,{coordinator:_0x248d71}=_0x4c33cd;return _0x2bdc67[_0x4b2ce3(0x1d4)](_0x2bdc67[_0x4b2ce3(0x20d)],{'children':[_0x2bdc67['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4b2ce3(0x26d)}),_0x2bdc67[_0x4b2ce3(0x225)](_0x4871f0[_0x4b2ce3(0x295)],{'variant':_0x4b2ce3(0x265),'onClick':()=>_0x248d71[_0x4b2ce3(0x26c)](),'children':_0x4b2ce3(0x1f4)})]});}function _0x1c85c6(){const _0x28e04e=_0x2a1b0c;return _0x2bdc67[_0x28e04e(0x225)](_0x2bdc67[_0x28e04e(0x20d)],{'children':'You\x27are\x20offline.'});}var _0x29cfca=Object[_0x2a1b0c(0x258)],_0x1ae7db=(_0x1cba38,_0x2208e3,_0x2bc806,_0x3f89e5)=>{for(var _0x613d90=_0x3f89e5>0x1?void 0x0:_0x3f89e5?_0x29cfca(_0x2208e3,_0x2bc806):_0x2208e3,_0x5d4015=_0x1cba38['length']-0x1,_0x21b592;_0x5d4015>=0x0;_0x5d4015--)(_0x21b592=_0x1cba38[_0x5d4015])&&(_0x613d90=_0x21b592(_0x613d90)||_0x613d90);return _0x613d90;},_0x7c486e=(_0x1083bf,_0x140af5)=>(_0x48fbde,_0x42b4da)=>_0x140af5(_0x48fbde,_0x42b4da,_0x1083bf);_0x4d3dfd[_0x2a1b0c(0x219)]=class extends _0x32ef99[_0x2a1b0c(0x238)]{constructor(_0x4de6c4,_0x2eb630){const _0x196f5f=_0x2a1b0c;super(),this[_0x196f5f(0x254)]=_0x4de6c4,this[_0x196f5f(0x23b)]=_0x2eb630,this['_mountLiveShare']();}[_0x2a1b0c(0x29e)](){const _0x1a1df4=_0x2a1b0c;this[_0x1a1df4(0x256)](this['_uiPartsService'][_0x1a1df4(0x252)](_0x237a82[_0x1a1df4(0x21a)][_0x1a1df4(0x223)],()=>_0x237a82[_0x1a1df4(0x1dd)](_0x31a5a0,this[_0x1a1df4(0x254)])));}},_0x4d3dfd[_0x2a1b0c(0x219)]=_0x1ae7db([_0x7c486e(0x0,_0x32ef99[_0x2a1b0c(0x1e2)](_0x32ef99['Injector'])),_0x7c486e(0x1,_0x237a82[_0x2a1b0c(0x221)])],_0x4d3dfd['DesktopLiveShareController']);const _0x30b573=_0x2a1b0c(0x297),_0x470e18={};var _0x1a36ca=Object['getOwnPropertyDescriptor'],_0x3c5894=(_0x367450,_0x132175,_0x1e88a7,_0x1eb5c1)=>{for(var _0x48a601=_0x1eb5c1>0x1?void 0x0:_0x1eb5c1?_0x1a36ca(_0x132175,_0x1e88a7):_0x132175,_0x518771=_0x367450['length']-0x1,_0x31a2c3;_0x518771>=0x0;_0x518771--)(_0x31a2c3=_0x367450[_0x518771])&&(_0x48a601=_0x31a2c3(_0x48a601)||_0x48a601);return _0x48a601;},_0x539fe6=(_0x3d1346,_0x28d4a1)=>(_0x3c6042,_0x176c94)=>_0x28d4a1(_0x3c6042,_0x176c94,_0x3d1346);let _0x5c7314=class extends _0x32ef99[_0x2a1b0c(0x238)]{constructor(_0x55405a){const _0x50eae5=_0x2a1b0c;super(),this[_0x50eae5(0x255)]=_0x55405a,this['_init']();}[_0x2a1b0c(0x21e)](){const _0x3838f3=_0x2a1b0c;[_0x28c725[_0x3838f3(0x2a2)]['id'],_0x28c725[_0x3838f3(0x1f1)]['id'],_0x467a62[_0x3838f3(0x26e)]['id']][_0x3838f3(0x217)](_0x747def=>{const _0x5b4218=_0x3838f3;this[_0x5b4218(0x256)](this['_liveShareService'][_0x5b4218(0x205)](_0x747def));});}};_0x5c7314=_0x3c5894([_0x539fe6(0x0,_0x32ef99[_0x2a1b0c(0x1e2)](_0x169058))],_0x5c7314);var _0xd000e4=Object[_0x2a1b0c(0x200)],_0x1f2e8d=Object[_0x2a1b0c(0x258)],_0x1bd4c8=(_0x4877cb,_0x2da58f,_0x14f330)=>_0x2da58f in _0x4877cb?_0xd000e4(_0x4877cb,_0x2da58f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14f330}):_0x4877cb[_0x2da58f]=_0x14f330,_0x39074c=(_0x5aa652,_0x1e081f,_0x527059,_0x44a730)=>{for(var _0x15c6b1=_0x44a730>0x1?void 0x0:_0x44a730?_0x1f2e8d(_0x1e081f,_0x527059):_0x1e081f,_0x53fd2e=_0x5aa652['length']-0x1,_0xe612c5;_0x53fd2e>=0x0;_0x53fd2e--)(_0xe612c5=_0x5aa652[_0x53fd2e])&&(_0x15c6b1=_0xe612c5(_0x15c6b1)||_0x15c6b1);return _0x15c6b1;},_0x3eb360=(_0x5c6639,_0x2afba3)=>(_0x543293,_0x263222)=>_0x2afba3(_0x543293,_0x263222,_0x5c6639),_0x12aae8=(_0x2d3505,_0x40bda0,_0x2717c2)=>_0x1bd4c8(_0x2d3505,typeof _0x40bda0!='symbol'?_0x40bda0+'':_0x40bda0,_0x2717c2);const _0x5b41dc='UNIVER_LIVE_SHARE_PLUGIN';_0x4d3dfd[_0x2a1b0c(0x1e5)]=class extends _0x32ef99['Plugin']{constructor(_0x4bee3f=_0x470e18,_0x3e4bb9,_0x1311d1){const _0x5914c7=_0x2a1b0c;super(),this[_0x5914c7(0x1ee)]=_0x4bee3f,this['_injector']=_0x3e4bb9,this[_0x5914c7(0x249)]=_0x1311d1;const {..._0xac29e7}=_0x32ef99[_0x5914c7(0x251)]({},_0x470e18,this[_0x5914c7(0x1ee)]);this['_configService'][_0x5914c7(0x1d7)](_0x30b573,_0xac29e7);}[_0x2a1b0c(0x232)](){const _0x5218e5=_0x2a1b0c;_0x32ef99[_0x5218e5(0x27f)](this[_0x5218e5(0x254)],_0x32ef99['mergeOverrideWithDependencies']([[_0x169058],[_0x4d3dfd[_0x5218e5(0x20e)]],[_0x5c7314],[_0x4d3dfd[_0x5218e5(0x219)]]],this['_config'][_0x5218e5(0x228)])),_0x32ef99[_0x5218e5(0x231)](this[_0x5218e5(0x254)],[[_0x5c7314]]);}[_0x2a1b0c(0x241)](){const _0x229804=_0x2a1b0c;_0x32ef99[_0x229804(0x231)](this[_0x229804(0x254)],[[_0x4d3dfd['DesktopLiveShareController']]]);}},_0x12aae8(_0x4d3dfd[_0x2a1b0c(0x1e5)],'type',_0x32ef99[_0x2a1b0c(0x21f)]['UNIVER_UNKNOWN']),_0x12aae8(_0x4d3dfd[_0x2a1b0c(0x1e5)],_0x2a1b0c(0x296),_0x5b41dc),_0x4d3dfd['UniverLiveSharePlugin']=_0x39074c([_0x32ef99['DependentOn'](_0x59879d[_0x2a1b0c(0x29a)]),_0x3eb360(0x1,_0x32ef99['Inject'](_0x32ef99[_0x2a1b0c(0x27c)])),_0x3eb360(0x2,_0x32ef99[_0x2a1b0c(0x1f5)])],_0x4d3dfd[_0x2a1b0c(0x1e5)]),_0x4d3dfd[_0x2a1b0c(0x24c)]=_0x31a5a0,_0x4d3dfd[_0x2a1b0c(0x26b)]=_0x169058,_0x4d3dfd[_0x2a1b0c(0x292)]=_0x4685f8,Object[_0x2a1b0c(0x200)](_0x4d3dfd,Symbol[_0x2a1b0c(0x28f)],{'value':_0x2a1b0c(0x29b)});}));
1
+ function _0x5045(){const _0x48dae2=['915035youKiY','_liveShareService','react','presenter','getLiveShareCoordinatorSync','toDisposable','tryStartPresenting','575999YioADH','status$','shouldShareOperation','_entities','240MKoiyI','@univerjs/design','mergeOverrideWithDependencies','UNIVER_SHEET','jsxs','@univerjs-pro/collaboration-client','You\x27re\x20not\x20following\x20the\x20presenter','IConfigService','LIVESHARE_TERMINATE','_commandDisposable','Inject','Button','complete','use','LiveShareService','UNIVER_UNKNOWN','defineProperty','SessionStatus','_beIdle','_collabSessionService','IDLE','react/jsx-runtime','NOT_FOLLOWING','next','mutations','exports','has','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','string','_handleNewChangeSets','takeUntil','Module','_handleOperation','registerInitialStateReporter','getValue','pipe','univerjs-icon\x20univerjs-icon-','idSuffix','from','text','_init','event$','@univerjs/ui','xlink:href','live-share.config','PRESENTING','_mountLiveShare','1em','getUnitId','url(#$1','_handleTerminate','colorChannel1','UniverInstanceType','object','forEach','jsx','operations','mask','delete','@univerjs/sheets','0\x200\x2017\x2017','currentColor','_handleOffline','useState','LiveShareController','UniverProCollaboration','getTypeOfUnitAdded$','LIVESHARE_REQUEST_HOST','React','send','parseProtocolChangeset','@univerjs/sheets-ui','getCurrentTypeOfUnit$','fill','18THTKQa','symbol','_stopPresenting','_startPresenting','_configService','forwardRef','values','BehaviorSubject','set','DependentOn','onRendered','BuiltInUIPart','803370DjBfNI','live-share-icon','_fetchOperations','pluginName','CommandType','LIVESHARE_OPERATION','trim','OPERATION','stringify','attrs','function','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','toStringTag','_collabSession','executeCommand','defIds','Start','displayName','memberID','univer-mb-3\x20univer-w-full\x20univer-text-sm','getLiveShareCoordinator','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','rxjs','useRef','tag','Injector','_stopFollowing','OFFLINE','LIVESHARE_FETCH_OPERATIONS','button','connectInjector','InsertSheetMutation','_status','FOLLOWING','svg','http://www.w3.org/2000/svg','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','touchDependencies','useDependency','presenting','UniverCollaborationClientPlugin','type','rxjs/operators','HEADER_MENU','You\x27are\x20offline.','UniverDesign','registerDependencies','following','_presenter','Plugin','data','RxDisposable','@univerjs-pro/collaboration','Present\x20this\x20document','dispose','You\x27re\x20following\x20the\x20presenter','onStarting','reverse','_startFollowing','_unitID','UniverProLiveShare','SetWorksheetActiveOperation','disposeWithMe','requireSession','path','_status$','@univerjs/core','SAME_OPERATION_SHARE_INTERVAL','8694954jCeTRa','entries','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20presenting\x20the\x20document','get','current','stopFollowing','div','add','createElement','stopPresenting','unitId','IUniverInstanceService','offline','Start\x20following','replace','getTypeOfUnitDisposed$','UniverProCollaborationClient','asObservable','dispose$','defs','CollaborationEvent','idle','LiveShare','LiveShareCoordinator','init','785530TFqCNj','params','startFollowing','length','then','sessionStatus$','evenodd','_univerInstanceService','getMemberID','end','sheet','UniverSheetsUi','includes','subscribe','_commandService','DesktopLiveShareController','assign','_handleNewHost','find','CollaborationSessionService','NEW_CHANGESETS','ICommandService','UniverLiveSharePlugin','map','_handleOnline','Fragment','_reporters','operators','_injector','_config','1379vEfHwO','getOwnPropertyDescriptor','unsubscribe','Subject','not-following','85888UbIHaw','getInitialStates','Stop\x20following','Disposable','clear','children','getStatus','Dropdown','_startLiveShareCoordinator','_sharedOperations','21496StrxDf','registerComponent'];_0x5045=function(){return _0x48dae2;};return _0x5045();}function _0x3042(_0x4ceaa7,_0x254c3c){_0x4ceaa7=_0x4ceaa7-0x16d;const _0x5045a3=_0x5045();let _0x3042df=_0x5045a3[_0x4ceaa7];return _0x3042df;}(function(_0x596752,_0x3cad45){const _0xf4d860=_0x3042,_0x19a7a8=_0x596752();while(!![]){try{const _0x35e8cf=parseInt(_0xf4d860(0x1b6))/0x1+-parseInt(_0xf4d860(0x210))/0x2+parseInt(_0xf4d860(0x1ba))/0x3*(parseInt(_0xf4d860(0x1a3))/0x4)+parseInt(_0xf4d860(0x1af))/0x5+-parseInt(_0xf4d860(0x254))/0x6+-parseInt(_0xf4d860(0x19e))/0x7*(-parseInt(_0xf4d860(0x1ad))/0x8)+-parseInt(_0xf4d860(0x204))/0x9*(parseInt(_0xf4d860(0x180))/0xa);if(_0x35e8cf===_0x3cad45)break;else _0x19a7a8['push'](_0x19a7a8['shift']());}catch(_0x46acda){_0x19a7a8['push'](_0x19a7a8['shift']());}}}(_0x5045,0xf3b0b),function(_0x53332a,_0x2b1868){const _0x106b6c=_0x3042;typeof exports==_0x106b6c(0x1ef)&&typeof module<'u'?_0x2b1868(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x106b6c(0x21a)&&define['amd']?define([_0x106b6c(0x1d3),_0x106b6c(0x252),_0x106b6c(0x1e4),_0x106b6c(0x1cf),_0x106b6c(0x1bb),_0x106b6c(0x1b1),_0x106b6c(0x244),_0x106b6c(0x1bf),_0x106b6c(0x1f5),_0x106b6c(0x226),_0x106b6c(0x23a),_0x106b6c(0x201)],_0x2b1868):(_0x53332a=typeof globalThis<'u'?globalThis:_0x53332a||self,_0x2b1868(_0x53332a[_0x106b6c(0x24c)]={},_0x53332a['UniverCore'],_0x53332a['UniverUi'],_0x53332a[_0x106b6c(0x1fe)],_0x53332a[_0x106b6c(0x23d)],_0x53332a[_0x106b6c(0x1fe)],_0x53332a[_0x106b6c(0x1fb)],_0x53332a[_0x106b6c(0x177)],_0x53332a['UniverSheets'],_0x53332a[_0x106b6c(0x226)],_0x53332a['rxjs'][_0x106b6c(0x19b)],_0x53332a[_0x106b6c(0x18b)]));}(this,function(_0x14c64b,_0x3b08ea,_0x38aee4,_0x7a8eef,_0x52db5b,_0x1f34a2,_0x783a72,_0x40969f,_0x251183,_0x116976,_0x1fbc4f,_0x192478){'use strict';const _0x5eb223=_0x3042;var _0x15c28c=Object[_0x5eb223(0x1ca)],_0x3c20d7=(_0x21593b,_0x2eb5ee,_0x24b87f)=>_0x2eb5ee in _0x21593b?_0x15c28c(_0x21593b,_0x2eb5ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24b87f}):_0x21593b[_0x2eb5ee]=_0x24b87f,_0x1e0155=(_0x4dc528,_0x3e17fe,_0x7ebd63)=>_0x3c20d7(_0x4dc528,typeof _0x3e17fe!=_0x5eb223(0x205)?_0x3e17fe+'':_0x3e17fe,_0x7ebd63);function _0x41c359({ref:_0x194369,..._0x32f431}){const _0x334f9b=_0x5eb223,{icon:_0x2a85c1,id:_0x2e7033,className:_0x4d2e00,extend:_0x229223,..._0x3da465}=_0x32f431,_0x13cc38=(_0x334f9b(0x1de)+_0x2e7033+'\x20'+(_0x4d2e00||''))[_0x334f9b(0x216)](),_0x2ae2d1=_0x1f34a2['useRef']('_'+_0x496c9a());return _0x572cb4(_0x2a85c1,''+_0x2e7033,{'defIds':_0x2a85c1[_0x334f9b(0x21f)],'idSuffix':_0x2ae2d1['current']},{'ref':_0x194369,'className':_0x13cc38,..._0x3da465},_0x229223);}function _0x572cb4(_0x35339d,_0x21323c,_0x5836aa,_0x297608,_0x3db32a){const _0x4a0ef6=_0x5eb223;return _0x1f34a2['createElement'](_0x35339d['tag'],{'key':_0x21323c,..._0x81421d(_0x35339d,_0x5836aa,_0x3db32a),..._0x297608},(_0x5e03e7(_0x35339d,_0x5836aa)[_0x4a0ef6(0x1a8)]||[])['map']((_0xa7ef93,_0x5556b0)=>_0x572cb4(_0xa7ef93,_0x21323c+'-'+_0x35339d[_0x4a0ef6(0x228)]+'-'+_0x5556b0,_0x5836aa,void 0x0,_0x3db32a)));}function _0x81421d(_0x4ea638,_0x4993e4,_0x577ec0){const _0x102094=_0x5eb223,_0x4cc069={..._0x4ea638['attrs']};_0x577ec0!=null&&_0x577ec0['colorChannel1']&&_0x4cc069[_0x102094(0x203)]==='colorChannel1'&&(_0x4cc069[_0x102094(0x203)]=_0x577ec0[_0x102094(0x1ed)]),_0x4ea638['tag']===_0x102094(0x1f3)&&_0x4cc069['id']&&(_0x4cc069['id']=_0x4cc069['id']+_0x4993e4['idSuffix']),Object['entries'](_0x4cc069)['forEach'](([_0x11185e,_0x47fb21])=>{const _0x50f43d=_0x102094;_0x11185e===_0x50f43d(0x1f3)&&typeof _0x47fb21==_0x50f43d(0x1d6)&&(_0x4cc069[_0x11185e]=_0x47fb21['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4993e4[_0x50f43d(0x1df)]+')'));});const {defIds:_0x309eb6}=_0x4993e4;return!_0x309eb6||_0x309eb6['length']===0x0||(_0x4ea638['tag']===_0x102094(0x1c7)&&_0x4cc069[_0x102094(0x1e5)]&&(_0x4cc069[_0x102094(0x1e5)]=_0x4cc069['xlink:href']+_0x4993e4[_0x102094(0x1df)]),Object[_0x102094(0x255)](_0x4cc069)[_0x102094(0x1f0)](([_0x48b678,_0x3427b2])=>{const _0xa376c2=_0x102094;typeof _0x3427b2==_0xa376c2(0x1d6)&&(_0x4cc069[_0x48b678]=_0x3427b2[_0xa376c2(0x175)](/url\(#(.*)\)/,_0xa376c2(0x1eb)+_0x4993e4['idSuffix']+')'));})),_0x4cc069;}function _0x5e03e7(_0x2cac65,_0x1f51e7){const _0x267b27=_0x5eb223;var _0x32bf3d;const {defIds:_0x4aaef6}=_0x1f51e7;return!_0x4aaef6||_0x4aaef6[_0x267b27(0x183)]===0x0?_0x2cac65:_0x2cac65[_0x267b27(0x228)]===_0x267b27(0x17a)&&((_0x32bf3d=_0x2cac65[_0x267b27(0x1a8)])!=null&&_0x32bf3d[_0x267b27(0x183)])?{..._0x2cac65,'children':_0x2cac65[_0x267b27(0x1a8)][_0x267b27(0x197)](_0x573928=>typeof _0x573928[_0x267b27(0x219)]['id']==_0x267b27(0x1d6)&&_0x4aaef6&&_0x4aaef6['includes'](_0x573928[_0x267b27(0x219)]['id'])?{..._0x573928,'attrs':{..._0x573928['attrs'],'id':_0x573928[_0x267b27(0x219)]['id']+_0x1f51e7[_0x267b27(0x1df)]}}:_0x573928)}:_0x2cac65;}function _0x496c9a(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x41c359[_0x5eb223(0x221)]='UniverIcon';const _0x4cc053={'tag':_0x5eb223(0x232),'attrs':{'xmlns':_0x5eb223(0x233),'fill':'none','viewBox':_0x5eb223(0x1f6),'width':_0x5eb223(0x1e9),'height':_0x5eb223(0x1e9)},'children':[{'tag':_0x5eb223(0x250),'attrs':{'fill':_0x5eb223(0x1f7),'d':_0x5eb223(0x1d5)}},{'tag':_0x5eb223(0x250),'attrs':{'fill':'currentColor','d':_0x5eb223(0x225),'fillRule':_0x5eb223(0x186),'clipRule':_0x5eb223(0x186)}}]},_0x1f8833=_0x1f34a2[_0x5eb223(0x209)](function(_0xa8ec08,_0x3eb833){const _0x1a06a8=_0x5eb223;return _0x1f34a2[_0x1a06a8(0x16f)](_0x41c359,Object[_0x1a06a8(0x190)]({},_0xa8ec08,{'id':_0x1a06a8(0x211),'ref':_0x3eb833,'icon':_0x4cc053}));});_0x1f8833['displayName']='LiveShareIcon';class _0x17df7c extends _0x3b08ea['Disposable']{constructor(){const _0x3fc30e=_0x5eb223;super(...arguments),_0x1e0155(this,_0x3fc30e(0x1ac),new Set()),_0x1e0155(this,_0x3fc30e(0x19a),new Set());}['registerSharedOperation'](_0x169fb7){const _0x4b1f2a=_0x5eb223;return this[_0x4b1f2a(0x1ac)][_0x4b1f2a(0x16e)](_0x169fb7),_0x3b08ea[_0x4b1f2a(0x1b4)](()=>this['_sharedOperations'][_0x4b1f2a(0x1f4)](_0x169fb7));}[_0x5eb223(0x1db)](_0x29ca7c){const _0x42ce4d=_0x5eb223;return this[_0x42ce4d(0x19a)][_0x42ce4d(0x16e)](_0x29ca7c),_0x3b08ea[_0x42ce4d(0x1b4)](()=>this[_0x42ce4d(0x19a)][_0x42ce4d(0x1f4)](_0x29ca7c));}[_0x5eb223(0x1b8)](_0x59a279){const _0x3089f5=_0x5eb223;return this['_sharedOperations'][_0x3089f5(0x1d4)](_0x59a279);}['getInitialStates'](_0x1258b6){const _0x28c1ba=_0x5eb223;return Array[_0x28c1ba(0x1e0)](this['_reporters'])['map'](_0x5eca17=>_0x5eca17(_0x1258b6));}}var _0x10bb46=Object[_0x5eb223(0x19f)],_0x1cfc5e=(_0x3b7f96,_0x2e6b1b,_0x2c1570,_0x285569)=>{for(var _0x13d114=_0x285569>0x1?void 0x0:_0x285569?_0x10bb46(_0x2e6b1b,_0x2c1570):_0x2e6b1b,_0x27dc79=_0x3b7f96['length']-0x1,_0xe00bd8;_0x27dc79>=0x0;_0x27dc79--)(_0xe00bd8=_0x3b7f96[_0x27dc79])&&(_0x13d114=_0xe00bd8(_0x13d114)||_0x13d114);return _0x13d114;},_0x25ca2a=(_0x3662fb,_0x510d95)=>(_0x2582dc,_0x464624)=>_0x510d95(_0x2582dc,_0x464624,_0x3662fb);_0x14c64b[_0x5eb223(0x1fa)]=class extends _0x3b08ea['RxDisposable']{constructor(_0x2b2fae,_0x2724b7,_0x2db5ca){const _0x9d2c90=_0x5eb223;super(),_0x1e0155(this,_0x9d2c90(0x1b9),new Map()),(this[_0x9d2c90(0x187)]=_0x2b2fae,this[_0x9d2c90(0x19c)]=_0x2724b7,this[_0x9d2c90(0x1cd)]=_0x2db5ca,this[_0x9d2c90(0x1e2)]());}async['getLiveShareCoordinator'](_0x4bfbd0){const _0x337039=_0x5eb223;return this['_entities'][_0x337039(0x1d4)](_0x4bfbd0)||await this[_0x337039(0x1ab)](_0x4bfbd0),this[_0x337039(0x1b9)]['get'](_0x4bfbd0);}[_0x5eb223(0x1b3)](_0x46bb2e){var _0x32a828;return(_0x32a828=this['_entities']['get'](_0x46bb2e))!=null?_0x32a828:null;}['_init'](){const _0x2c9ae1=_0x5eb223;this[_0x2c9ae1(0x187)][_0x2c9ae1(0x1fc)](_0x3b08ea[_0x2c9ae1(0x1ee)]['UNIVER_SHEET'])[_0x2c9ae1(0x1dd)](_0x1fbc4f[_0x2c9ae1(0x1d8)](this[_0x2c9ae1(0x179)]))[_0x2c9ae1(0x18d)](async _0x799fd9=>{const _0x4441eb=_0x2c9ae1,_0x2d859c=_0x799fd9[_0x4441eb(0x1ea)]();this[_0x4441eb(0x1b9)][_0x4441eb(0x1d4)](_0x2d859c)||this[_0x4441eb(0x1ab)](_0x2d859c);}),this[_0x2c9ae1(0x187)][_0x2c9ae1(0x176)](_0x3b08ea['UniverInstanceType'][_0x2c9ae1(0x1bd)])['pipe'](_0x1fbc4f[_0x2c9ae1(0x1d8)](this[_0x2c9ae1(0x179)]))[_0x2c9ae1(0x18d)](_0x811623=>{const _0x1849f6=_0x2c9ae1,_0x486abd=_0x811623[_0x1849f6(0x1ea)](),_0x396b93=this[_0x1849f6(0x1b9)][_0x1849f6(0x258)](_0x486abd);_0x396b93==null||_0x396b93['dispose']();});}async[_0x5eb223(0x1ab)](_0x59ca2e){const _0x56971e=_0x5eb223,_0x237285=await this['_collabSessionService'][_0x56971e(0x24f)](_0x59ca2e),_0x1c3d20=this[_0x56971e(0x19c)]['createInstance'](_0x14c64b[_0x56971e(0x17e)],_0x59ca2e,_0x237285);return _0x1c3d20[_0x56971e(0x17f)](),this[_0x56971e(0x1b9)][_0x56971e(0x20c)](_0x59ca2e,_0x1c3d20),_0x1c3d20;}},_0x14c64b[_0x5eb223(0x1fa)]=_0x1cfc5e([_0x25ca2a(0x0,_0x3b08ea['IUniverInstanceService']),_0x25ca2a(0x1,_0x3b08ea[_0x5eb223(0x1c4)](_0x3b08ea[_0x5eb223(0x229)])),_0x25ca2a(0x2,_0x3b08ea['Inject'](_0x40969f[_0x5eb223(0x193)]))],_0x14c64b[_0x5eb223(0x1fa)]);var _0x43b619=(_0x5d57bb=>(_0x5d57bb[_0x5eb223(0x22b)]='offline',_0x5d57bb['IDLE']=_0x5eb223(0x17c),_0x5d57bb[_0x5eb223(0x231)]='following',_0x5d57bb['NOT_FOLLOWING']=_0x5eb223(0x1a2),_0x5d57bb[_0x5eb223(0x1e7)]=_0x5eb223(0x237),_0x5d57bb))(_0x43b619||{});const _0x4b9604=_0x5eb223(0x253),_0x4e8a3f=0xc8;_0x14c64b[_0x5eb223(0x17e)]=class extends _0x3b08ea[_0x5eb223(0x243)]{constructor(_0x57ff91,_0x376199,_0x2c392f,_0x3c3a62,_0x452cd9){const _0x42fe3e=_0x5eb223;super(),_0x1e0155(this,_0x42fe3e(0x251),new _0x116976[(_0x42fe3e(0x20b))](_0x42fe3e(0x17c))),_0x1e0155(this,_0x42fe3e(0x1b7),this[_0x42fe3e(0x251)][_0x42fe3e(0x178)]()),_0x1e0155(this,'_init',!0x1),_0x1e0155(this,_0x42fe3e(0x1c3),null),_0x1e0155(this,_0x42fe3e(0x240),null),(this[_0x42fe3e(0x24b)]=_0x57ff91,this[_0x42fe3e(0x21d)]=_0x376199,this[_0x42fe3e(0x208)]=_0x2c392f,this[_0x42fe3e(0x1b0)]=_0x3c3a62,this['_commandService']=_0x452cd9);}get[_0x5eb223(0x230)](){const _0x1bc0ba=_0x5eb223;return this[_0x1bc0ba(0x251)][_0x1bc0ba(0x1dc)]();}['dispose'](){const _0x1e39d2=_0x5eb223;var _0x239707;(_0x239707=this[_0x1e39d2(0x1c3)])==null||_0x239707[_0x1e39d2(0x246)](),this[_0x1e39d2(0x251)]['next']('idle'),this[_0x1e39d2(0x251)][_0x1e39d2(0x1c6)]();}[_0x5eb223(0x1a9)](){const _0x1fa8ec=_0x5eb223;return this[_0x1fa8ec(0x230)];}[_0x5eb223(0x17f)](){const _0x13bac7=_0x5eb223;this[_0x13bac7(0x1e2)]||(this[_0x13bac7(0x1e2)]=!0x0,this[_0x13bac7(0x21d)][_0x13bac7(0x185)][_0x13bac7(0x1dd)](_0x1fbc4f[_0x13bac7(0x1d8)](this[_0x13bac7(0x179)]))['subscribe'](_0x3a5d43=>{const _0x41a405=_0x13bac7;switch(_0x3a5d43){case _0x40969f[_0x41a405(0x1cb)][_0x41a405(0x22b)]:this[_0x41a405(0x1f8)]();break;case _0x40969f[_0x41a405(0x1cb)]['ONLINE']:this[_0x41a405(0x198)]();break;}}),this[_0x13bac7(0x21d)][_0x13bac7(0x1e3)][_0x13bac7(0x1dd)](_0x1fbc4f[_0x13bac7(0x1d8)](this['dispose$']))[_0x13bac7(0x18d)](_0x44c2f7=>{const _0xafbeed=_0x13bac7,{eventID:_0x38d204}=_0x44c2f7;switch(_0x38d204){case _0x783a72[_0xafbeed(0x17b)]['LIVESHARE_NEW_HOST']:this[_0xafbeed(0x191)](_0x44c2f7);break;case _0x783a72[_0xafbeed(0x17b)][_0xafbeed(0x215)]:this[_0xafbeed(0x1da)](_0x44c2f7);break;case _0x783a72['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0xafbeed(0x1ec)]();break;case _0x783a72[_0xafbeed(0x17b)][_0xafbeed(0x194)]:this[_0xafbeed(0x1d7)](_0x44c2f7);break;}}));}[_0x5eb223(0x1b5)](){const _0x16d3f4=_0x5eb223;this[_0x16d3f4(0x21d)][_0x16d3f4(0x1ff)]({'eventID':_0x783a72[_0x16d3f4(0x17b)][_0x16d3f4(0x1fd)],'data':{'unitID':this['_unitID'],'userID':this[_0x16d3f4(0x21d)][_0x16d3f4(0x188)]()}},this[_0x16d3f4(0x24b)]);}[_0x5eb223(0x170)](){const _0x1949a5=_0x5eb223;this['_status']==='presenting'&&(this[_0x1949a5(0x251)]['next'](_0x1949a5(0x17c)),this[_0x1949a5(0x21d)][_0x1949a5(0x1ff)]({'eventID':_0x783a72[_0x1949a5(0x17b)][_0x1949a5(0x1c2)],'data':{'unitID':this['_unitID']}},this[_0x1949a5(0x24b)]));}['startFollowing'](){const _0x3e3262=_0x5eb223;this[_0x3e3262(0x230)]===_0x3e3262(0x1a2)&&(this[_0x3e3262(0x251)][_0x3e3262(0x1d1)](_0x3e3262(0x23f)),this[_0x3e3262(0x24a)]());}[_0x5eb223(0x25a)](){const _0x52e193=_0x5eb223;this[_0x52e193(0x230)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x307379){const _0x377977=_0x5eb223,{presenter:_0x22f236}=_0x307379[_0x377977(0x242)],_0x4a86bb=this[_0x377977(0x21d)][_0x377977(0x188)]();this[_0x377977(0x240)]=_0x22f236,_0x22f236===_0x4a86bb?(this['_stopFollowing'](),this[_0x377977(0x207)]()):this[_0x377977(0x230)]!==_0x377977(0x1a2)&&(this[_0x377977(0x206)](),this[_0x377977(0x24a)]());}[_0x5eb223(0x212)](){const _0x530a2d=_0x5eb223,_0x2e4d2a={'eventID':_0x783a72[_0x530a2d(0x17b)][_0x530a2d(0x22c)]};this['_collabSession']['send'](_0x2e4d2a,this[_0x530a2d(0x24b)]);}[_0x5eb223(0x1ec)](){const _0x4f2d9f=_0x5eb223;this[_0x4f2d9f(0x240)]=null,this[_0x4f2d9f(0x230)]!==_0x4f2d9f(0x237)&&this[_0x4f2d9f(0x1cc)]();}['_handleNewChangeSets'](_0x6e86d5){const _0x635e72=_0x5eb223;if(this[_0x635e72(0x230)]==='following'&&this['_presenter']===_0x6e86d5['data'][_0x635e72(0x222)]){const _0x28e984=_0x783a72[_0x635e72(0x200)](_0x6e86d5[_0x635e72(0x242)])[_0x635e72(0x1d2)][_0x635e72(0x249)]()[_0x635e72(0x192)](_0xa86460=>_0xa86460['id']===_0x251183[_0x635e72(0x22f)]['id']);if(_0x28e984){const _0x4d5b47=_0x28e984[_0x635e72(0x181)][_0x635e72(0x171)],_0x4863cb=_0x28e984[_0x635e72(0x181)][_0x635e72(0x18a)]['id'];setTimeout(()=>{const _0x3e365a=_0x635e72;this[_0x3e365a(0x18e)]['executeCommand'](_0x251183[_0x3e365a(0x24d)]['id'],{'unitId':_0x4d5b47,'subUnitId':_0x4863cb},{'fromCollab':!0x0});});}}}[_0x5eb223(0x207)](){const _0x463a20=_0x5eb223;this[_0x463a20(0x251)][_0x463a20(0x1d1)]('presenting');const _0xb76fbb=new Map(),_0x5559a0=this[_0x463a20(0x1c3)]=new _0x3b08ea['DisposableCollection']();_0x5559a0[_0x463a20(0x16e)](_0x3b08ea[_0x463a20(0x1b4)](()=>{const _0xc35cf7=_0x463a20;_0xb76fbb[_0xc35cf7(0x1f0)](_0x46f5c7=>_0x46f5c7['complete']()),_0xb76fbb[_0xc35cf7(0x1a7)]();})),_0x5559a0[_0x463a20(0x16e)](this[_0x463a20(0x18e)]['onCommandExecuted'](_0x812a9e=>{const _0x3c6fc4=_0x463a20;var _0x4ce1d4;if(_0x812a9e[_0x3c6fc4(0x239)]!==_0x3b08ea[_0x3c6fc4(0x214)][_0x3c6fc4(0x217)]||!this['_liveShareService']['shouldShareOperation'](_0x812a9e['id']))return;const {id:_0x4d88a2}=_0x812a9e;let _0xe32717;_0xb76fbb[_0x3c6fc4(0x1d4)](_0x4d88a2)?_0xe32717=_0xb76fbb['get'](_0x4d88a2):(_0xe32717=new _0x116976[(_0x3c6fc4(0x1a1))](),_0xb76fbb[_0x3c6fc4(0x20c)](_0x4d88a2,_0xe32717),_0xe32717[_0x3c6fc4(0x1dd)](_0x1fbc4f['throttleTime']((_0x4ce1d4=this[_0x3c6fc4(0x208)]['getConfig'](_0x4b9604))!=null?_0x4ce1d4:_0x4e8a3f,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x54f501=>{const _0x3079e7=_0x3c6fc4;this[_0x3079e7(0x21d)][_0x3079e7(0x1ff)]({'eventID':_0x783a72[_0x3079e7(0x17b)][_0x3079e7(0x215)],'data':{'unitID':this[_0x3079e7(0x24b)],'operations':{[_0x54f501['id']]:{'id':_0x54f501['id'],'params':JSON[_0x3079e7(0x218)](_0x54f501[_0x3079e7(0x181)])}}}},this[_0x3079e7(0x24b)]);})),_0xe32717[_0x3c6fc4(0x1d1)](_0x812a9e);})),this[_0x463a20(0x1b0)][_0x463a20(0x1a4)](this[_0x463a20(0x24b)])['forEach'](_0x9f9535=>this[_0x463a20(0x21d)][_0x463a20(0x1ff)]({'eventID':_0x783a72['CollaborationEvent'][_0x463a20(0x215)],'data':{'unitID':this[_0x463a20(0x24b)],'operations':{[_0x9f9535['id']]:{'id':_0x9f9535['id'],'params':JSON[_0x463a20(0x218)](_0x9f9535[_0x463a20(0x181)])}}}},this[_0x463a20(0x24b)]));}['_stopPresenting'](){const _0x32deb3=_0x5eb223;var _0x447e1b;this[_0x32deb3(0x251)][_0x32deb3(0x1d1)](_0x32deb3(0x17c)),(_0x447e1b=this['_commandDisposable'])==null||_0x447e1b[_0x32deb3(0x246)](),this[_0x32deb3(0x1c3)]=null;}[_0x5eb223(0x24a)](){const _0xd68181=_0x5eb223;var _0x25be54;(_0x25be54=this[_0xd68181(0x1c3)])==null||_0x25be54['dispose'](),this[_0xd68181(0x251)][_0xd68181(0x1d1)](_0xd68181(0x23f));}['_beIdle'](){const _0x42abe3=_0x5eb223;var _0x15e5f5;this['_status$'][_0x42abe3(0x1d1)](_0x42abe3(0x17c)),(_0x15e5f5=this['_commandDisposable'])==null||_0x15e5f5[_0x42abe3(0x246)](),this[_0x42abe3(0x1c3)]=null;}[_0x5eb223(0x22a)](){const _0x5531a8=_0x5eb223;var _0x26c7c8;this[_0x5531a8(0x251)][_0x5531a8(0x1d1)](_0x5531a8(0x1a2)),(_0x26c7c8=this['_commandDisposable'])==null||_0x26c7c8[_0x5531a8(0x246)]();}[_0x5eb223(0x1da)](_0x4b248a){const _0x48c5d4=_0x5eb223;if(['presenting',_0x48c5d4(0x1a2),_0x48c5d4(0x173)][_0x48c5d4(0x18c)](this[_0x48c5d4(0x230)])||!_0x4b248a['data']['presenter']||_0x4b248a[_0x48c5d4(0x242)][_0x48c5d4(0x1b2)]===this[_0x48c5d4(0x21d)]['getMemberID']())return;this[_0x48c5d4(0x230)]==='idle'&&this[_0x48c5d4(0x24a)]();const _0x40448f=_0x4b248a[_0x48c5d4(0x242)][_0x48c5d4(0x1f2)];Object[_0x48c5d4(0x20a)](_0x40448f)[_0x48c5d4(0x1f0)](_0x527575=>{const _0x3a4b80=_0x48c5d4;this['_commandService'][_0x3a4b80(0x21e)](_0x527575['id'],_0x527575[_0x3a4b80(0x181)]?JSON['parse'](_0x527575[_0x3a4b80(0x181)]):null,{'fromCollab':!0x0});});}[_0x5eb223(0x1f8)](){const _0x731ee2=_0x5eb223;var _0x3dea1e;this['_status$'][_0x731ee2(0x1d1)](_0x731ee2(0x173)),(_0x3dea1e=this['_commandDisposable'])==null||_0x3dea1e[_0x731ee2(0x246)]();}[_0x5eb223(0x198)](){const _0x9aee88=_0x5eb223;this['_status$'][_0x9aee88(0x1d1)]('idle'),this[_0x9aee88(0x212)]();}},_0x14c64b['LiveShareCoordinator']=_0x1cfc5e([_0x25ca2a(0x2,_0x3b08ea[_0x5eb223(0x1c1)]),_0x25ca2a(0x3,_0x3b08ea['Inject'](_0x17df7c)),_0x25ca2a(0x4,_0x3b08ea[_0x5eb223(0x195)])],_0x14c64b['LiveShareCoordinator']);function _0x222f8b(){const _0x41b199=_0x5eb223,_0x5b8602=_0x38aee4[_0x41b199(0x236)](_0x14c64b[_0x41b199(0x1fa)]),_0x6d19e=_0x38aee4[_0x41b199(0x236)](_0x3b08ea[_0x41b199(0x172)]),_0x441f3b=_0x38aee4['useObservable'](()=>_0x6d19e[_0x41b199(0x202)](_0x3b08ea[_0x41b199(0x1ee)][_0x41b199(0x1bd)]),void 0x0,!0x1,[]),[_0x211a3e,_0x363399]=_0x1f34a2[_0x41b199(0x1f9)](null),[_0x2be25d,_0x9d6322]=_0x1f34a2[_0x41b199(0x1f9)](_0x43b619['IDLE']),_0x2ee513=_0x1f34a2[_0x41b199(0x227)](null);return _0x1f34a2['useEffect'](()=>(_0x441f3b&&_0x5b8602[_0x41b199(0x224)](_0x441f3b[_0x41b199(0x1ea)]())[_0x41b199(0x184)](_0x2a5852=>{const _0x595bec=_0x41b199;_0x363399(_0x2a5852),_0x2ee513[_0x595bec(0x259)]=_0x2a5852[_0x595bec(0x1b7)][_0x595bec(0x18d)](_0x225aa4=>{_0x9d6322(_0x225aa4);});}),()=>{const _0x129c9f=_0x41b199;var _0x44751b;(_0x44751b=_0x2ee513['current'])==null||_0x44751b[_0x129c9f(0x1a0)](),_0x2ee513[_0x129c9f(0x259)]=null;}),[_0x441f3b,_0x5b8602]),_0x211a3e?_0x7a8eef['jsx'](_0x52db5b[_0x41b199(0x1aa)],{'align':_0x41b199(0x189),'disabled':_0x2be25d===_0x43b619[_0x41b199(0x22b)],'className':_0x41b199(0x21b),'overlay':_0x7a8eef[_0x41b199(0x1f1)](_0x2f49e5,{'status':_0x2be25d,'coordinator':_0x211a3e}),'children':_0x7a8eef[_0x41b199(0x1f1)](_0x41b199(0x22d),{'className':_0x52db5b['clsx'](_0x41b199(0x234),{'univer-cursor-not-allowed':_0x2be25d===_0x43b619['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2be25d!==_0x43b619[_0x41b199(0x22b)]}),'type':'button','children':_0x7a8eef[_0x41b199(0x1f1)](_0x1f8833,{'className':'univer-size-4'})})}):null;}function _0x2f49e5(_0x38cec3){const _0x311d1b=_0x5eb223,{status:_0x3854ab,coordinator:_0x178f6f}=_0x38cec3;switch(_0x3854ab){case _0x43b619[_0x311d1b(0x1ce)]:return _0x7a8eef[_0x311d1b(0x1f1)](_0x536f7f,{'coordinator':_0x178f6f});case _0x43b619[_0x311d1b(0x231)]:return _0x7a8eef[_0x311d1b(0x1f1)](_0x108732,{'coordinator':_0x178f6f});case _0x43b619[_0x311d1b(0x1d0)]:return _0x7a8eef[_0x311d1b(0x1f1)](_0x509845,{'coordinator':_0x178f6f});case _0x43b619[_0x311d1b(0x22b)]:return _0x7a8eef[_0x311d1b(0x1f1)](_0x3e48c9,{});case _0x43b619[_0x311d1b(0x1e7)]:return _0x7a8eef[_0x311d1b(0x1f1)](_0x18d8ad,{'coordinator':_0x178f6f});default:return null;}}function _0x536f7f(_0x224566){const _0x5f35b0=_0x5eb223,{coordinator:_0x4d1370}=_0x224566;return _0x7a8eef[_0x5f35b0(0x1be)](_0x7a8eef[_0x5f35b0(0x199)],{'children':[_0x7a8eef[_0x5f35b0(0x1f1)](_0x5f35b0(0x16d),{'className':_0x5f35b0(0x223),'children':_0x5f35b0(0x245)}),_0x7a8eef[_0x5f35b0(0x1f1)](_0x52db5b['Button'],{'onClick':()=>_0x4d1370[_0x5f35b0(0x1b5)](),'children':_0x5f35b0(0x220)})]});}function _0x108732(_0x57be52){const _0x1fb9ef=_0x5eb223,{coordinator:_0xfa032}=_0x57be52;return _0x7a8eef['jsxs'](_0x7a8eef[_0x1fb9ef(0x199)],{'children':[_0x7a8eef[_0x1fb9ef(0x1f1)](_0x1fb9ef(0x16d),{'className':_0x1fb9ef(0x223),'children':_0x1fb9ef(0x247)}),_0x7a8eef[_0x1fb9ef(0x1f1)](_0x52db5b[_0x1fb9ef(0x1c5)],{'onClick':()=>_0xfa032[_0x1fb9ef(0x25a)](),'children':_0x1fb9ef(0x1a5)})]});}function _0x509845(_0x323bce){const _0x586118=_0x5eb223,{coordinator:_0x1dcb1e}=_0x323bce;return _0x7a8eef['jsxs'](_0x7a8eef[_0x586118(0x199)],{'children':[_0x7a8eef[_0x586118(0x1f1)](_0x586118(0x16d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x586118(0x1c0)}),_0x7a8eef[_0x586118(0x1f1)](_0x52db5b[_0x586118(0x1c5)],{'variant':_0x586118(0x1e1),'onClick':()=>_0x1dcb1e[_0x586118(0x182)](),'children':_0x586118(0x174)})]});}function _0x18d8ad(_0x185021){const _0x1c4b9c=_0x5eb223,{coordinator:_0x33866d}=_0x185021;return _0x7a8eef[_0x1c4b9c(0x1be)](_0x7a8eef[_0x1c4b9c(0x199)],{'children':[_0x7a8eef['jsx'](_0x1c4b9c(0x16d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1c4b9c(0x257)}),_0x7a8eef[_0x1c4b9c(0x1f1)](_0x52db5b[_0x1c4b9c(0x1c5)],{'variant':'default','onClick':()=>_0x33866d[_0x1c4b9c(0x170)](),'children':'Stop\x20presenting'})]});}function _0x3e48c9(){const _0x2eeb7a=_0x5eb223;return _0x7a8eef[_0x2eeb7a(0x1f1)](_0x7a8eef['Fragment'],{'children':_0x2eeb7a(0x23c)});}var _0x18e130=Object[_0x5eb223(0x19f)],_0x1f4784=(_0x5c180c,_0x464a43,_0x3bbe3d,_0x3b5033)=>{const _0x6d684b=_0x5eb223;for(var _0x2e4df6=_0x3b5033>0x1?void 0x0:_0x3b5033?_0x18e130(_0x464a43,_0x3bbe3d):_0x464a43,_0x1a6165=_0x5c180c[_0x6d684b(0x183)]-0x1,_0x11d446;_0x1a6165>=0x0;_0x1a6165--)(_0x11d446=_0x5c180c[_0x1a6165])&&(_0x2e4df6=_0x11d446(_0x2e4df6)||_0x2e4df6);return _0x2e4df6;},_0x515fdf=(_0x3045af,_0x2acbe4)=>(_0x56e5f1,_0x49d59d)=>_0x2acbe4(_0x56e5f1,_0x49d59d,_0x3045af);_0x14c64b['DesktopLiveShareController']=class extends _0x3b08ea[_0x5eb223(0x1a6)]{constructor(_0x211729,_0x28c858){const _0x5450c6=_0x5eb223;super(),this[_0x5450c6(0x19c)]=_0x211729,this['_uiPartsService']=_0x28c858,this[_0x5450c6(0x1e8)]();}[_0x5eb223(0x1e8)](){const _0x581424=_0x5eb223;this[_0x581424(0x24e)](this['_uiPartsService'][_0x581424(0x1ae)](_0x38aee4[_0x581424(0x20f)][_0x581424(0x23b)],()=>_0x38aee4[_0x581424(0x22e)](_0x222f8b,this[_0x581424(0x19c)])));}},_0x14c64b['DesktopLiveShareController']=_0x1f4784([_0x515fdf(0x0,_0x3b08ea[_0x5eb223(0x1c4)](_0x3b08ea[_0x5eb223(0x229)])),_0x515fdf(0x1,_0x38aee4['IUIPartsService'])],_0x14c64b[_0x5eb223(0x18f)]);const _0x29b329=_0x5eb223(0x1e6),_0x8b2a92={};var _0x86c6fa=Object[_0x5eb223(0x19f)],_0x1bf6a5=(_0x54aac9,_0x3a6d9b,_0xb4298e,_0x4a1cbf)=>{const _0x2b8e23=_0x5eb223;for(var _0x425472=_0x4a1cbf>0x1?void 0x0:_0x4a1cbf?_0x86c6fa(_0x3a6d9b,_0xb4298e):_0x3a6d9b,_0x57ddcb=_0x54aac9[_0x2b8e23(0x183)]-0x1,_0x557d2c;_0x57ddcb>=0x0;_0x57ddcb--)(_0x557d2c=_0x54aac9[_0x57ddcb])&&(_0x425472=_0x557d2c(_0x425472)||_0x425472);return _0x425472;},_0x2abed2=(_0x2cebb0,_0x7f8287)=>(_0x6de0d1,_0x13db94)=>_0x7f8287(_0x6de0d1,_0x13db94,_0x2cebb0);let _0x201342=class extends _0x3b08ea['Disposable']{constructor(_0xb7e199){const _0x2aaa32=_0x5eb223;super(),this['_liveShareService']=_0xb7e199,this[_0x2aaa32(0x1e2)]();}['_init'](){const _0x559dfd=_0x5eb223;[_0x192478['SetZoomRatioOperation']['id'],_0x192478['SetScrollOperation']['id'],_0x251183[_0x559dfd(0x24d)]['id']][_0x559dfd(0x1f0)](_0x1298f3=>{const _0x3ab413=_0x559dfd;this[_0x3ab413(0x24e)](this[_0x3ab413(0x1b0)]['registerSharedOperation'](_0x1298f3));});}};_0x201342=_0x1bf6a5([_0x2abed2(0x0,_0x3b08ea[_0x5eb223(0x1c4)](_0x17df7c))],_0x201342);var _0x5e864e=Object['defineProperty'],_0x9ebeef=Object[_0x5eb223(0x19f)],_0x59ae8f=(_0x3da65f,_0x43e3e6,_0x4cbd48)=>_0x43e3e6 in _0x3da65f?_0x5e864e(_0x3da65f,_0x43e3e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4cbd48}):_0x3da65f[_0x43e3e6]=_0x4cbd48,_0xc7c0ed=(_0x43922a,_0x3ed0d2,_0x5ca36a,_0x30e9f0)=>{const _0x2b86e2=_0x5eb223;for(var _0x5c2dc4=_0x30e9f0>0x1?void 0x0:_0x30e9f0?_0x9ebeef(_0x3ed0d2,_0x5ca36a):_0x3ed0d2,_0x56083a=_0x43922a[_0x2b86e2(0x183)]-0x1,_0x29d316;_0x56083a>=0x0;_0x56083a--)(_0x29d316=_0x43922a[_0x56083a])&&(_0x5c2dc4=_0x29d316(_0x5c2dc4)||_0x5c2dc4);return _0x5c2dc4;},_0x5d3601=(_0x3ef1e9,_0x1e9747)=>(_0x19e167,_0x2c8f9b)=>_0x1e9747(_0x19e167,_0x2c8f9b,_0x3ef1e9),_0x41a621=(_0x25fa07,_0x1e979d,_0x9e25b6)=>_0x59ae8f(_0x25fa07,typeof _0x1e979d!=_0x5eb223(0x205)?_0x1e979d+'':_0x1e979d,_0x9e25b6);const _0xd872ed=_0x5eb223(0x256);_0x14c64b[_0x5eb223(0x196)]=class extends _0x3b08ea[_0x5eb223(0x241)]{constructor(_0x50066d=_0x8b2a92,_0x5b10b6,_0x86d5c5){const _0x2ca827=_0x5eb223;super(),this[_0x2ca827(0x19d)]=_0x50066d,this[_0x2ca827(0x19c)]=_0x5b10b6,this[_0x2ca827(0x208)]=_0x86d5c5;const {..._0x2148f9}=_0x3b08ea['merge']({},_0x8b2a92,this[_0x2ca827(0x19d)]);this['_configService']['setConfig'](_0x29b329,_0x2148f9);}[_0x5eb223(0x248)](){const _0x2a9366=_0x5eb223;_0x3b08ea[_0x2a9366(0x23e)](this[_0x2a9366(0x19c)],_0x3b08ea[_0x2a9366(0x1bc)]([[_0x17df7c],[_0x14c64b[_0x2a9366(0x1fa)]],[_0x201342],[_0x14c64b['DesktopLiveShareController']]],this[_0x2a9366(0x19d)]['override'])),_0x3b08ea[_0x2a9366(0x235)](this['_injector'],[[_0x201342]]);}[_0x5eb223(0x20e)](){const _0x5af82a=_0x5eb223;_0x3b08ea[_0x5af82a(0x235)](this[_0x5af82a(0x19c)],[[_0x14c64b[_0x5af82a(0x18f)]]]);}},_0x41a621(_0x14c64b[_0x5eb223(0x196)],_0x5eb223(0x239),_0x3b08ea[_0x5eb223(0x1ee)][_0x5eb223(0x1c9)]),_0x41a621(_0x14c64b['UniverLiveSharePlugin'],_0x5eb223(0x213),_0xd872ed),_0x14c64b[_0x5eb223(0x196)]=_0xc7c0ed([_0x3b08ea[_0x5eb223(0x20d)](_0x40969f[_0x5eb223(0x238)]),_0x5d3601(0x1,_0x3b08ea[_0x5eb223(0x1c4)](_0x3b08ea[_0x5eb223(0x229)])),_0x5d3601(0x2,_0x3b08ea['IConfigService'])],_0x14c64b[_0x5eb223(0x196)]),_0x14c64b[_0x5eb223(0x17d)]=_0x222f8b,_0x14c64b[_0x5eb223(0x1c8)]=_0x17df7c,_0x14c64b['LiveShareStatus']=_0x43b619,Object['defineProperty'](_0x14c64b,Symbol[_0x5eb223(0x21c)],{'value':_0x5eb223(0x1d9)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.15.2",
3
+ "version": "0.15.3-insiders.20260131-cbd5fac",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,13 +57,13 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.1.1",
60
- "@univerjs-pro/collaboration": "0.15.2",
61
- "@univerjs-pro/collaboration-client": "0.15.2",
62
- "@univerjs/sheets": "0.15.2",
63
- "@univerjs/design": "0.15.2",
64
- "@univerjs/core": "0.15.2",
65
- "@univerjs/ui": "0.15.2",
66
- "@univerjs/sheets-ui": "0.15.2"
60
+ "@univerjs-pro/collaboration-client": "0.15.3-insiders.20260131-cbd5fac",
61
+ "@univerjs-pro/collaboration": "0.15.3-insiders.20260131-cbd5fac",
62
+ "@univerjs/design": "0.15.3-insiders.20260131-cbd5fac",
63
+ "@univerjs/sheets": "0.15.3-insiders.20260131-cbd5fac",
64
+ "@univerjs/sheets-ui": "0.15.3-insiders.20260131-cbd5fac",
65
+ "@univerjs/ui": "0.15.3-insiders.20260131-cbd5fac",
66
+ "@univerjs/core": "0.15.3-insiders.20260131-cbd5fac"
67
67
  },
68
68
  "devDependencies": {
69
69
  "postcss": "^8.5.6",
@@ -72,9 +72,9 @@
72
72
  "tailwindcss": "^3.4.17",
73
73
  "typescript": "^5.9.3",
74
74
  "vite": "^7.3.1",
75
- "vitest": "^4.0.16",
76
- "@univerjs-infra/shared": "0.15.2",
77
- "@univerjs/protocol": "0.1.48"
75
+ "vitest": "^4.0.18",
76
+ "@univerjs/protocol": "0.1.48",
77
+ "@univerjs-infra/shared": "0.15.3"
78
78
  },
79
79
  "scripts": {
80
80
  "test": "vitest run",