@univerjs-pro/live-share 0.15.2 → 0.15.3

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 _0x2c19e6=_0x12b3;(function(_0x4d28f8,_0x55d323){const _0x4c95d6=_0x12b3,_0x5e408d=_0x4d28f8();while(!![]){try{const _0x15fc1d=-parseInt(_0x4c95d6(0xb4))/0x1*(parseInt(_0x4c95d6(0xbb))/0x2)+-parseInt(_0x4c95d6(0xc2))/0x3*(-parseInt(_0x4c95d6(0xd7))/0x4)+parseInt(_0x4c95d6(0xc6))/0x5*(parseInt(_0x4c95d6(0xc3))/0x6)+-parseInt(_0x4c95d6(0xd2))/0x7*(-parseInt(_0x4c95d6(0xca))/0x8)+parseInt(_0x4c95d6(0xc8))/0x9*(-parseInt(_0x4c95d6(0xcc))/0xa)+-parseInt(_0x4c95d6(0xd5))/0xb*(-parseInt(_0x4c95d6(0xd3))/0xc)+-parseInt(_0x4c95d6(0xbd))/0xd;if(_0x15fc1d===_0x55d323)break;else _0x5e408d['push'](_0x5e408d['shift']());}catch(_0x5c5c82){_0x5e408d['push'](_0x5e408d['shift']());}}}(_0x400d,0x9f6aa));function _0x12b3(_0x1d9377,_0x445e3f){_0x1d9377=_0x1d9377-0xb1;const _0x400d1f=_0x400d();let _0x12b379=_0x400d1f[_0x1d9377];return _0x12b379;}var h=Object[_0x2c19e6(0xb9)],u=(_0x4d5df9,_0xb59e0,_0x32023f)=>_0xb59e0 in _0x4d5df9?h(_0x4d5df9,_0xb59e0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32023f}):_0x4d5df9[_0xb59e0]=_0x32023f,S=(_0x1bbe66,_0x157a23,_0x149dc6)=>u(_0x1bbe66,typeof _0x157a23!=_0x2c19e6(0xb6)?_0x157a23+'':_0x157a23,_0x149dc6);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');class I extends c['FUniver']{constructor(){const _0x55e531=_0x2c19e6;super(...arguments),S(this,_0x55e531(0xbe));}[_0x2c19e6(0xc0)](_0xb7e082){const _0x53546f=_0x2c19e6;this[_0x53546f(0xbe)]=_0xb7e082['get'](s[_0x53546f(0xb3)]);}[_0x2c19e6(0xb7)](){const _0x4eab87=_0x2c19e6;var _0x3c52b5;const _0x1da04f=this[_0x4eab87(0xd1)]['get'](n['IUniverInstanceService'])[_0x4eab87(0xb5)](n[_0x4eab87(0xc1)][_0x4eab87(0xcd)]);if(!_0x1da04f)throw new Error(_0x4eab87(0xc5));const _0x986efe=_0x1da04f[_0x4eab87(0xd8)](),_0x366e72=this[_0x4eab87(0xbe)][_0x4eab87(0xbf)](_0x986efe);return(_0x3c52b5=_0x366e72==null?void 0x0:_0x366e72[_0x4eab87(0xba)]())!=null?_0x3c52b5:s[_0x4eab87(0xd6)][_0x4eab87(0xc9)];}[_0x2c19e6(0xd0)](){const _0x4f54b4=_0x2c19e6,_0x5a67cf=this['_injector'][_0x4f54b4(0xc4)](n[_0x4f54b4(0xcf)])['getCurrentUnitOfType'](n[_0x4f54b4(0xc1)][_0x4f54b4(0xcd)]);if(!_0x5a67cf)throw new Error('No\x20active\x20workbook\x20found.');const _0x8163d6=_0x5a67cf[_0x4f54b4(0xd8)](),_0x3df70d=this['_liveShareController'][_0x4f54b4(0xbf)](_0x8163d6);if(!_0x3df70d)throw new Error(_0x4f54b4(0xb1));_0x3df70d[_0x4f54b4(0xd0)]();}[_0x2c19e6(0xb2)](){const _0x2d3800=_0x2c19e6,_0x445756=this[_0x2d3800(0xd1)][_0x2d3800(0xc4)](n[_0x2d3800(0xcf)])[_0x2d3800(0xb5)](n[_0x2d3800(0xc1)]['UNIVER_SHEET']);if(!_0x445756)throw new Error('No\x20active\x20workbook\x20found.');const _0x2991b4=_0x445756[_0x2d3800(0xd8)](),_0x4cbc90=this[_0x2d3800(0xbe)]['getLiveShareCoordinatorSync'](_0x2991b4);if(!_0x4cbc90)throw new Error(_0x2d3800(0xb1));_0x4cbc90[_0x2d3800(0xb2)]();}[_0x2c19e6(0xbc)](){const _0x12b6f9=_0x2c19e6,_0x62b778=this['_injector'][_0x12b6f9(0xc4)](n['IUniverInstanceService'])[_0x12b6f9(0xb5)](n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x62b778)throw new Error('No\x20active\x20workbook\x20found.');const _0x2b63c7=_0x62b778['getUnitId'](),_0x3d2027=this['_liveShareController'][_0x12b6f9(0xbf)](_0x2b63c7);if(!_0x3d2027)throw new Error(_0x12b6f9(0xb1));_0x3d2027[_0x12b6f9(0xcb)]();}[_0x2c19e6(0xb8)](){const _0x4a0034=_0x2c19e6,_0x37f927=this[_0x4a0034(0xd1)][_0x4a0034(0xc4)](n['IUniverInstanceService'])[_0x4a0034(0xb5)](n[_0x4a0034(0xc1)][_0x4a0034(0xcd)]);if(!_0x37f927)throw new Error(_0x4a0034(0xc5));const _0x216947=_0x37f927[_0x4a0034(0xd8)](),_0x401c18=this[_0x4a0034(0xbe)]['getLiveShareCoordinatorSync'](_0x216947);if(!_0x401c18)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x401c18['stopPresenting']();}}c[_0x2c19e6(0xc7)][_0x2c19e6(0xd4)](I);class l extends c[_0x2c19e6(0xce)]{get['LiveShareStatusEnum'](){const _0xbc23a=_0x2c19e6;return s[_0xbc23a(0xd6)];}}function _0x400d(){const _0x139b8f=['getStatus','362gNpUgC','startPresenting','23670582iQrJpc','_liveShareController','getLiveShareCoordinatorSync','_initialize','UniverInstanceType','683409LAGDXK','2842566VdPNhy','get','No\x20active\x20workbook\x20found.','5nrgwSd','FUniver','21474lLoSKN','IDLE','6079992HaikRx','tryStartPresenting','710KthySN','UNIVER_SHEET','FEnum','IUniverInstanceService','startFollowing','_injector','7lGuZqp','1140OUqIgY','extend','114631OlnXnF','LiveShareStatus','16FMzQxX','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopFollowing','LiveShareController','2717RxGCpd','getCurrentUnitOfType','symbol','getLiveShareStatus','stopPresenting','defineProperty'];_0x400d=function(){return _0x139b8f;};return _0x400d();}c['FEnum'][_0x2c19e6(0xd4)](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 _0x2dfb8c=_0x21a5;(function(_0x2418fa,_0x32d88b){const _0xa53c7e=_0x21a5,_0x116fc5=_0x2418fa();while(!![]){try{const _0x210749=-parseInt(_0xa53c7e(0x136))/0x1*(-parseInt(_0xa53c7e(0x91))/0x2)+-parseInt(_0xa53c7e(0x130))/0x3*(-parseInt(_0xa53c7e(0x119))/0x4)+parseInt(_0xa53c7e(0xa4))/0x5+-parseInt(_0xa53c7e(0x114))/0x6+parseInt(_0xa53c7e(0x11a))/0x7+-parseInt(_0xa53c7e(0xa9))/0x8+parseInt(_0xa53c7e(0x126))/0x9*(parseInt(_0xa53c7e(0xb7))/0xa);if(_0x210749===_0x32d88b)break;else _0x116fc5['push'](_0x116fc5['shift']());}catch(_0x429072){_0x116fc5['push'](_0x116fc5['shift']());}}}(_0x228d,0xdc57d));function _0x228d(){const _0x2282e7=['LiveShareStatus','getTypeOfUnitAdded$','DependentOn','_fetchOperations','from','86fSTLVB','_beIdle','FOLLOWING','useEffect','forwardRef','connectInjector','_init','then','NEW_CHANGESETS','presenter','ONLINE','LIVESHARE_TERMINATE','onRendered','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','UNIVER_LIVE_SHARE_PLUGIN','colorChannel1','has','executeCommand','_handleNewHost','5671110HoKhDR','Subject','LIVESHARE_REQUEST_HOST','_config','Stop\x20following','14209712KdSmsT','asObservable','end','_collabSessionService','children','SetZoomRatioOperation','SetScrollOperation','merge','init','Disposable','next','_startFollowing','useDependency','get','73110NaaGiR','_univerInstanceService','_presenter','getValue','idSuffix','useRef','unitId','fill','NOT_FOLLOWING','map','createElement','_collabSession','complete','assign','IUniverInstanceService','set','defineProperty','find','subscribe','pipe','toStringTag','_mountLiveShare','params','_configService','string','UniverLiveSharePlugin','jsx','_sharedOperations','forEach','_status$','_commandService','IDLE','RxDisposable','_handleOffline','_startLiveShareCoordinator','ICommandService','CollaborationEvent','SetWorksheetActiveOperation','_injector','getUnitId','Dropdown','shouldShareOperation','IConfigService','_uiPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','CollaborationSessionService','0\x200\x2017\x2017','Injector','parse','_handleTerminate','UNIVER_SHEET','div','not-following','current','mask','_handleOnline','registerComponent','Fragment','text','stopFollowing','attrs','_stopFollowing','Button','parseProtocolChangeset','type','live-share-icon','BehaviorSubject','override','registerInitialStateReporter','getCurrentTypeOfUnit$','startFollowing','_unitID','1em','following','getLiveShareCoordinatorSync','LiveShare','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','throttleTime','replace','registerSharedOperation','data','setConfig','xlink:href','stopPresenting','registerDependencies','LiveShareService','takeUntil','useState','LIVESHARE_FETCH_OPERATIONS','You\x27re\x20following\x20the\x20presenter','presenting','tryStartPresenting','4554864xgINfw','reverse','LiveShareController','status$','sheet','9244zgBkOb','2646182ztoVjN','_entities','tag','idle','touchDependencies','_status','none','DesktopLiveShareController','stringify','includes','currentColor','offline','1782rRdyCB','getLiveShareCoordinator','Module','_stopPresenting','substring','url(#$1','clsx','unsubscribe','Inject','defs','204dhJBQQ','onCommandExecuted','default','_liveShareService','You\x27re\x20not\x20following\x20the\x20presenter','displayName','7463ZaXZJW','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','Start\x20following','add','toDisposable','InsertSheetMutation','mergeOverrideWithDependencies','getMemberID','LIVESHARE_OPERATION','getInitialStates','mutations','send','entries','svg','path','dispose$','getTypeOfUnitDisposed$','univerjs-icon\x20univerjs-icon-','UniverInstanceType','disposeWithMe','_handleOperation','Present\x20this\x20document','delete','PRESENTING','live-share.config','_commandDisposable','length','button','LiveShareCoordinator','_reporters','OFFLINE','jsxs','HEADER_MENU','Start','evenodd','Stop\x20presenting','memberID','SessionStatus','use','getOwnPropertyDescriptor','clear','dispose','defIds'];_0x228d=function(){return _0x2282e7;};return _0x228d();}var T=Object[_0x2dfb8c(0xc7)],U=(_0xee2162,_0xdddd9e,_0x420a9b)=>_0xdddd9e in _0xee2162?T(_0xee2162,_0xdddd9e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x420a9b}):_0xee2162[_0xdddd9e]=_0x420a9b,_=(_0x127228,_0xc4001d,_0x4c3db3)=>U(_0x127228,typeof _0xc4001d!='symbol'?_0xc4001d+'':_0xc4001d,_0x4c3db3);Object['defineProperty'](exports,Symbol[_0x2dfb8c(0xcb)],{'value':_0x2dfb8c(0x128)});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:_0x490a4e,..._0x38395d}){const _0x4fc5a3=_0x2dfb8c,{icon:_0x1dfc6f,id:_0x38a270,className:_0x4d5c8e,extend:_0xc0db,..._0x3d4528}=_0x38395d,_0x2723d4=(_0x4fc5a3(0x147)+_0x38a270+'\x20'+(_0x4d5c8e||''))['trim'](),_0xf11804=v[_0x4fc5a3(0xbc)]('_'+H());return j(_0x1dfc6f,''+_0x38a270,{'defIds':_0x1dfc6f[_0x4fc5a3(0x8b)],'idSuffix':_0xf11804[_0x4fc5a3(0xed)]},{'ref':_0x490a4e,'className':_0x2723d4,..._0x3d4528},_0xc0db);}function j(_0x44db8f,_0x555f13,_0x2eb647,_0xe7621e,_0x41ce31){const _0x529aba=_0x2dfb8c;return v['createElement'](_0x44db8f['tag'],{'key':_0x555f13,...y(_0x44db8f,_0x2eb647,_0x41ce31),..._0xe7621e},(F(_0x44db8f,_0x2eb647)[_0x529aba(0xad)]||[])[_0x529aba(0xc0)]((_0x5ddcbf,_0xcf27b8)=>j(_0x5ddcbf,_0x555f13+'-'+_0x44db8f['tag']+'-'+_0xcf27b8,_0x2eb647,void 0x0,_0x41ce31)));}function y(_0x536e80,_0xd96e75,_0x42e5f9){const _0x432161=_0x2dfb8c,_0x31c377={..._0x536e80[_0x432161(0xf4)]};_0x42e5f9!=null&&_0x42e5f9[_0x432161(0xa0)]&&_0x31c377[_0x432161(0xbe)]==='colorChannel1'&&(_0x31c377[_0x432161(0xbe)]=_0x42e5f9[_0x432161(0xa0)]),_0x536e80[_0x432161(0x11c)]===_0x432161(0xee)&&_0x31c377['id']&&(_0x31c377['id']=_0x31c377['id']+_0xd96e75[_0x432161(0xbb)]),Object[_0x432161(0x142)](_0x31c377)['forEach'](([_0x4c4883,_0x142c1c])=>{const _0x2c2cf1=_0x432161;_0x4c4883===_0x2c2cf1(0xee)&&typeof _0x142c1c==_0x2c2cf1(0xcf)&&(_0x31c377[_0x4c4883]=_0x142c1c['replace'](/url\(#(.*)\)/,'url(#$1'+_0xd96e75['idSuffix']+')'));});const {defIds:_0x2c6242}=_0xd96e75;return!_0x2c6242||_0x2c6242['length']===0x0||(_0x536e80[_0x432161(0x11c)]===_0x432161(0x87)&&_0x31c377[_0x432161(0x10a)]&&(_0x31c377[_0x432161(0x10a)]=_0x31c377[_0x432161(0x10a)]+_0xd96e75[_0x432161(0xbb)]),Object['entries'](_0x31c377)['forEach'](([_0x413e2d,_0x40e933])=>{const _0x2c0d1b=_0x432161;typeof _0x40e933=='string'&&(_0x31c377[_0x413e2d]=_0x40e933[_0x2c0d1b(0x106)](/url\(#(.*)\)/,_0x2c0d1b(0x12b)+_0xd96e75[_0x2c0d1b(0xbb)]+')'));})),_0x31c377;}function F(_0x8f107a,_0x8856fa){const _0x195ac9=_0x2dfb8c;var _0xe30e8c;const {defIds:_0x7f2b6d}=_0x8856fa;return!_0x7f2b6d||_0x7f2b6d[_0x195ac9(0x7b)]===0x0?_0x8f107a:_0x8f107a[_0x195ac9(0x11c)]===_0x195ac9(0x12f)&&((_0xe30e8c=_0x8f107a[_0x195ac9(0xad)])!=null&&_0xe30e8c[_0x195ac9(0x7b)])?{..._0x8f107a,'children':_0x8f107a[_0x195ac9(0xad)][_0x195ac9(0xc0)](_0x4e634f=>typeof _0x4e634f['attrs']['id']==_0x195ac9(0xcf)&&_0x7f2b6d&&_0x7f2b6d['includes'](_0x4e634f['attrs']['id'])?{..._0x4e634f,'attrs':{..._0x4e634f[_0x195ac9(0xf4)],'id':_0x4e634f['attrs']['id']+_0x8856fa[_0x195ac9(0xbb)]}}:_0x4e634f)}:_0x8f107a;}function H(){const _0xa0364=_0x2dfb8c;return Math['random']()['toString'](0x24)[_0xa0364(0x12a)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':_0x2dfb8c(0x143),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2dfb8c(0x120),'viewBox':_0x2dfb8c(0xe6),'width':'1em','height':_0x2dfb8c(0x100)},'children':[{'tag':_0x2dfb8c(0x144),'attrs':{'fill':_0x2dfb8c(0x124),'d':_0x2dfb8c(0x104)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x2dfb8c(0x137),'fillRule':'evenodd','clipRule':_0x2dfb8c(0x83)}}]},R=v[_0x2dfb8c(0x95)](function(_0xce0be3,_0x48380e){const _0x29cf57=_0x2dfb8c;return v[_0x29cf57(0xc1)](x,Object[_0x29cf57(0xc4)]({},_0xce0be3,{'id':_0x29cf57(0xf9),'ref':_0x48380e,'icon':V}));});R[_0x2dfb8c(0x135)]='LiveShareIcon';class E extends o[_0x2dfb8c(0xb2)]{constructor(){const _0x554aed=_0x2dfb8c;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x554aed(0x7e),new Set());}['registerSharedOperation'](_0x1b5bdf){const _0xa1ac3d=_0x2dfb8c;return this[_0xa1ac3d(0xd2)][_0xa1ac3d(0x139)](_0x1b5bdf),o[_0xa1ac3d(0x13a)](()=>this['_sharedOperations'][_0xa1ac3d(0x77)](_0x1b5bdf));}[_0x2dfb8c(0xfc)](_0x2603f9){const _0x4282b3=_0x2dfb8c;return this['_reporters'][_0x4282b3(0x139)](_0x2603f9),o[_0x4282b3(0x13a)](()=>this['_reporters'][_0x4282b3(0x77)](_0x2603f9));}[_0x2dfb8c(0xe0)](_0x20abec){const _0x49b2ef=_0x2dfb8c;return this[_0x49b2ef(0xd2)]['has'](_0x20abec);}[_0x2dfb8c(0x13f)](_0x23ea8d){const _0x5bc66e=_0x2dfb8c;return Array[_0x5bc66e(0x90)](this[_0x5bc66e(0x7e)])[_0x5bc66e(0xc0)](_0x2e88d6=>_0x2e88d6(_0x23ea8d));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x513c36,_0x77fd67,_0x1496f2,_0x3a4af9)=>{const _0x4011f9=_0x2dfb8c;for(var _0x2fa3d2=_0x3a4af9>0x1?void 0x0:_0x3a4af9?M(_0x77fd67,_0x1496f2):_0x77fd67,_0x28f425=_0x513c36[_0x4011f9(0x7b)]-0x1,_0x8ca6a2;_0x28f425>=0x0;_0x28f425--)(_0x8ca6a2=_0x513c36[_0x28f425])&&(_0x2fa3d2=_0x8ca6a2(_0x2fa3d2)||_0x2fa3d2);return _0x2fa3d2;},S=(_0x18507f,_0x3810c2)=>(_0x4fe22d,_0x194ba1)=>_0x3810c2(_0x4fe22d,_0x194ba1,_0x18507f);function _0x21a5(_0x258846,_0x3bbfc2){_0x258846=_0x258846-0x73;const _0x228dd2=_0x228d();let _0x21a562=_0x228dd2[_0x258846];return _0x21a562;}exports[_0x2dfb8c(0x116)]=class extends o[_0x2dfb8c(0xd7)]{constructor(_0x4d4acf,_0x3a86c4,_0x25e15c){const _0x5540bd=_0x2dfb8c;super(),_(this,_0x5540bd(0x11b),new Map()),(this[_0x5540bd(0xb8)]=_0x4d4acf,this[_0x5540bd(0xdd)]=_0x3a86c4,this[_0x5540bd(0xac)]=_0x25e15c,this[_0x5540bd(0x97)]());}async[_0x2dfb8c(0x127)](_0x34c656){const _0x38d836=_0x2dfb8c;return this[_0x38d836(0x11b)][_0x38d836(0xa1)](_0x34c656)||await this[_0x38d836(0xd9)](_0x34c656),this[_0x38d836(0x11b)][_0x38d836(0xb6)](_0x34c656);}[_0x2dfb8c(0x102)](_0x46ee2d){const _0x4900cf=_0x2dfb8c;var _0x21d1ec;return(_0x21d1ec=this['_entities'][_0x4900cf(0xb6)](_0x46ee2d))!=null?_0x21d1ec:null;}['_init'](){const _0x1ff9b9=_0x2dfb8c;this['_univerInstanceService'][_0x1ff9b9(0x8d)](o['UniverInstanceType'][_0x1ff9b9(0xea)])[_0x1ff9b9(0xca)](I[_0x1ff9b9(0x10e)](this[_0x1ff9b9(0x145)]))[_0x1ff9b9(0xc9)](async _0xcf57=>{const _0x48a28c=_0x1ff9b9,_0x400cb5=_0xcf57[_0x48a28c(0xde)]();this[_0x48a28c(0x11b)]['has'](_0x400cb5)||this['_startLiveShareCoordinator'](_0x400cb5);}),this[_0x1ff9b9(0xb8)][_0x1ff9b9(0x146)](o['UniverInstanceType'][_0x1ff9b9(0xea)])[_0x1ff9b9(0xca)](I['takeUntil'](this['dispose$']))[_0x1ff9b9(0xc9)](_0x5d3793=>{const _0x4b5e08=_0x1ff9b9,_0x5da70d=_0x5d3793[_0x4b5e08(0xde)](),_0xb3d4d8=this['_entities'][_0x4b5e08(0xb6)](_0x5da70d);_0xb3d4d8==null||_0xb3d4d8[_0x4b5e08(0x8a)]();});}async['_startLiveShareCoordinator'](_0x576f2f){const _0x26793e=_0x2dfb8c,_0x46b6da=await this[_0x26793e(0xac)]['requireSession'](_0x576f2f),_0x3cd6cc=this[_0x26793e(0xdd)]['createInstance'](exports['LiveShareCoordinator'],_0x576f2f,_0x46b6da);return _0x3cd6cc['init'](),this['_entities'][_0x26793e(0xc6)](_0x576f2f,_0x3cd6cc),_0x3cd6cc;}},exports['LiveShareController']=P([S(0x0,o[_0x2dfb8c(0xc5)]),S(0x1,o[_0x2dfb8c(0x12e)](o[_0x2dfb8c(0xe7)])),S(0x2,o[_0x2dfb8c(0x12e)](b[_0x2dfb8c(0xe5)]))],exports[_0x2dfb8c(0x116)]);var u=(_0x513bef=>(_0x513bef[_0x2dfb8c(0x7f)]=_0x2dfb8c(0x125),_0x513bef[_0x2dfb8c(0xd6)]=_0x2dfb8c(0x11d),_0x513bef[_0x2dfb8c(0x93)]=_0x2dfb8c(0x101),_0x513bef[_0x2dfb8c(0xbf)]=_0x2dfb8c(0xec),_0x513bef[_0x2dfb8c(0x78)]=_0x2dfb8c(0x112),_0x513bef))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x2dfb8c(0xd7)]{constructor(_0x16a750,_0x1e10e6,_0x5905e5,_0x57a05d,_0x199b08){const _0x100f9e=_0x2dfb8c;super(),_(this,_0x100f9e(0xd4),new O[(_0x100f9e(0xfa))](_0x100f9e(0x11d))),_(this,_0x100f9e(0x117),this['_status$'][_0x100f9e(0xaa)]()),_(this,_0x100f9e(0x97),!0x1),_(this,_0x100f9e(0x7a),null),_(this,_0x100f9e(0xb9),null),(this[_0x100f9e(0xff)]=_0x16a750,this[_0x100f9e(0xc2)]=_0x1e10e6,this[_0x100f9e(0xce)]=_0x5905e5,this['_liveShareService']=_0x57a05d,this[_0x100f9e(0xd5)]=_0x199b08);}get[_0x2dfb8c(0x11f)](){const _0x5766be=_0x2dfb8c;return this[_0x5766be(0xd4)][_0x5766be(0xba)]();}['dispose'](){const _0x3c96cd=_0x2dfb8c;var _0x2a7322;(_0x2a7322=this[_0x3c96cd(0x7a)])==null||_0x2a7322[_0x3c96cd(0x8a)](),this[_0x3c96cd(0xd4)][_0x3c96cd(0xb3)](_0x3c96cd(0x11d)),this['_status$']['complete']();}['getStatus'](){return this['_status'];}[_0x2dfb8c(0xb1)](){const _0x300a14=_0x2dfb8c;this[_0x300a14(0x97)]||(this[_0x300a14(0x97)]=!0x0,this[_0x300a14(0xc2)]['sessionStatus$'][_0x300a14(0xca)](I['takeUntil'](this['dispose$']))[_0x300a14(0xc9)](_0x14b870=>{const _0xb05585=_0x300a14;switch(_0x14b870){case b[_0xb05585(0x86)][_0xb05585(0x7f)]:this[_0xb05585(0xd8)]();break;case b[_0xb05585(0x86)][_0xb05585(0x9b)]:this[_0xb05585(0xef)]();break;}}),this[_0x300a14(0xc2)]['event$'][_0x300a14(0xca)](I[_0x300a14(0x10e)](this[_0x300a14(0x145)]))[_0x300a14(0xc9)](_0x1db1a0=>{const _0xb2b8c4=_0x300a14,{eventID:_0x2f1850}=_0x1db1a0;switch(_0x2f1850){case d[_0xb2b8c4(0xdb)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x1db1a0);break;case d[_0xb2b8c4(0xdb)]['LIVESHARE_OPERATION']:this[_0xb2b8c4(0x75)](_0x1db1a0);break;case d[_0xb2b8c4(0xdb)][_0xb2b8c4(0x9c)]:this[_0xb2b8c4(0xe9)]();break;case d[_0xb2b8c4(0xdb)][_0xb2b8c4(0x99)]:this['_handleNewChangeSets'](_0x1db1a0);break;}}));}[_0x2dfb8c(0x113)](){const _0x2421c8=_0x2dfb8c;this['_collabSession'][_0x2421c8(0x141)]({'eventID':d[_0x2421c8(0xdb)][_0x2421c8(0xa6)],'data':{'unitID':this[_0x2421c8(0xff)],'userID':this[_0x2421c8(0xc2)][_0x2421c8(0x13d)]()}},this['_unitID']);}[_0x2dfb8c(0x10b)](){const _0x165d72=_0x2dfb8c;this[_0x165d72(0x11f)]==='presenting'&&(this[_0x165d72(0xd4)]['next']('idle'),this['_collabSession']['send']({'eventID':d[_0x165d72(0xdb)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x2dfb8c(0xfe)](){const _0x4ae450=_0x2dfb8c;this[_0x4ae450(0x11f)]==='not-following'&&(this['_status$'][_0x4ae450(0xb3)]('following'),this[_0x4ae450(0xb4)]());}[_0x2dfb8c(0xf3)](){const _0x59f1cc=_0x2dfb8c;this[_0x59f1cc(0x11f)]===_0x59f1cc(0x101)&&this[_0x59f1cc(0xf5)]();}[_0x2dfb8c(0xa3)](_0xa8abbf){const _0x417c0c=_0x2dfb8c,{presenter:_0x3473dd}=_0xa8abbf[_0x417c0c(0x108)],_0x5d24ac=this[_0x417c0c(0xc2)][_0x417c0c(0x13d)]();this[_0x417c0c(0xb9)]=_0x3473dd,_0x3473dd===_0x5d24ac?(this[_0x417c0c(0xf5)](),this[_0x417c0c(0xe4)]()):this[_0x417c0c(0x11f)]!=='not-following'&&(this[_0x417c0c(0x129)](),this['_startFollowing']());}[_0x2dfb8c(0x8f)](){const _0x4e591a=_0x2dfb8c,_0x5bc3ca={'eventID':d['CollaborationEvent'][_0x4e591a(0x110)]};this['_collabSession'][_0x4e591a(0x141)](_0x5bc3ca,this[_0x4e591a(0xff)]);}['_handleTerminate'](){const _0x17c159=_0x2dfb8c;this[_0x17c159(0xb9)]=null,this[_0x17c159(0x11f)]!=='presenting'&&this[_0x17c159(0x92)]();}['_handleNewChangeSets'](_0xb5d72){const _0xafcdda=_0x2dfb8c;if(this['_status']===_0xafcdda(0x101)&&this[_0xafcdda(0xb9)]===_0xb5d72[_0xafcdda(0x108)][_0xafcdda(0x85)]){const _0x53edf=d[_0xafcdda(0xf7)](_0xb5d72[_0xafcdda(0x108)])[_0xafcdda(0x140)][_0xafcdda(0x115)]()[_0xafcdda(0xc8)](_0x35eac9=>_0x35eac9['id']===C[_0xafcdda(0x13b)]['id']);if(_0x53edf){const _0x438650=_0x53edf[_0xafcdda(0xcd)][_0xafcdda(0xbd)],_0x1011f3=_0x53edf[_0xafcdda(0xcd)][_0xafcdda(0x118)]['id'];setTimeout(()=>{const _0x23ced4=_0xafcdda;this[_0x23ced4(0xd5)][_0x23ced4(0xa2)](C[_0x23ced4(0xdc)]['id'],{'unitId':_0x438650,'subUnitId':_0x1011f3},{'fromCollab':!0x0});});}}}[_0x2dfb8c(0xe4)](){const _0xc06cc1=_0x2dfb8c;this[_0xc06cc1(0xd4)][_0xc06cc1(0xb3)](_0xc06cc1(0x112));const _0x34950a=new Map(),_0x1d7da7=this[_0xc06cc1(0x7a)]=new o['DisposableCollection']();_0x1d7da7[_0xc06cc1(0x139)](o[_0xc06cc1(0x13a)](()=>{const _0x4f5fce=_0xc06cc1;_0x34950a[_0x4f5fce(0xd3)](_0x3c2f73=>_0x3c2f73[_0x4f5fce(0xc3)]()),_0x34950a[_0x4f5fce(0x89)]();})),_0x1d7da7[_0xc06cc1(0x139)](this[_0xc06cc1(0xd5)][_0xc06cc1(0x131)](_0x2cb178=>{const _0x2f27fc=_0xc06cc1;var _0xf30d55;if(_0x2cb178[_0x2f27fc(0xf8)]!==o['CommandType']['OPERATION']||!this[_0x2f27fc(0x133)][_0x2f27fc(0xe0)](_0x2cb178['id']))return;const {id:_0x64cd38}=_0x2cb178;let _0x2a2270;_0x34950a['has'](_0x64cd38)?_0x2a2270=_0x34950a[_0x2f27fc(0xb6)](_0x64cd38):(_0x2a2270=new O[(_0x2f27fc(0xa5))](),_0x34950a[_0x2f27fc(0xc6)](_0x64cd38,_0x2a2270),_0x2a2270[_0x2f27fc(0xca)](I[_0x2f27fc(0x105)]((_0xf30d55=this['_configService']['getConfig'](k))!=null?_0xf30d55:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2f27fc(0xc9)](_0x4a3202=>{const _0x233065=_0x2f27fc;this['_collabSession']['send']({'eventID':d[_0x233065(0xdb)][_0x233065(0x13e)],'data':{'unitID':this[_0x233065(0xff)],'operations':{[_0x4a3202['id']]:{'id':_0x4a3202['id'],'params':JSON[_0x233065(0x122)](_0x4a3202[_0x233065(0xcd)])}}}},this[_0x233065(0xff)]);})),_0x2a2270[_0x2f27fc(0xb3)](_0x2cb178);})),this['_liveShareService']['getInitialStates'](this[_0xc06cc1(0xff)])['forEach'](_0x36cab4=>this[_0xc06cc1(0xc2)]['send']({'eventID':d[_0xc06cc1(0xdb)][_0xc06cc1(0x13e)],'data':{'unitID':this[_0xc06cc1(0xff)],'operations':{[_0x36cab4['id']]:{'id':_0x36cab4['id'],'params':JSON[_0xc06cc1(0x122)](_0x36cab4[_0xc06cc1(0xcd)])}}}},this[_0xc06cc1(0xff)]));}[_0x2dfb8c(0x129)](){const _0x472164=_0x2dfb8c;var _0x109caa;this[_0x472164(0xd4)][_0x472164(0xb3)](_0x472164(0x11d)),(_0x109caa=this['_commandDisposable'])==null||_0x109caa[_0x472164(0x8a)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x146e33=_0x2dfb8c;var _0x389ba1;(_0x389ba1=this[_0x146e33(0x7a)])==null||_0x389ba1['dispose'](),this[_0x146e33(0xd4)][_0x146e33(0xb3)]('following');}[_0x2dfb8c(0x92)](){const _0x5b39ad=_0x2dfb8c;var _0x541526;this[_0x5b39ad(0xd4)]['next'](_0x5b39ad(0x11d)),(_0x541526=this['_commandDisposable'])==null||_0x541526['dispose'](),this[_0x5b39ad(0x7a)]=null;}[_0x2dfb8c(0xf5)](){const _0x53c8d6=_0x2dfb8c;var _0xc64968;this[_0x53c8d6(0xd4)][_0x53c8d6(0xb3)]('not-following'),(_0xc64968=this[_0x53c8d6(0x7a)])==null||_0xc64968[_0x53c8d6(0x8a)]();}[_0x2dfb8c(0x75)](_0x6e45db){const _0x3420cc=_0x2dfb8c;if([_0x3420cc(0x112),_0x3420cc(0xec),_0x3420cc(0x125)][_0x3420cc(0x123)](this['_status'])||!_0x6e45db[_0x3420cc(0x108)][_0x3420cc(0x9a)]||_0x6e45db[_0x3420cc(0x108)][_0x3420cc(0x9a)]===this[_0x3420cc(0xc2)][_0x3420cc(0x13d)]())return;this[_0x3420cc(0x11f)]===_0x3420cc(0x11d)&&this['_startFollowing']();const _0x1ff049=_0x6e45db[_0x3420cc(0x108)]['operations'];Object['values'](_0x1ff049)[_0x3420cc(0xd3)](_0x2dd77a=>{const _0x358eb6=_0x3420cc;this[_0x358eb6(0xd5)][_0x358eb6(0xa2)](_0x2dd77a['id'],_0x2dd77a[_0x358eb6(0xcd)]?JSON[_0x358eb6(0xe8)](_0x2dd77a[_0x358eb6(0xcd)]):null,{'fromCollab':!0x0});});}[_0x2dfb8c(0xd8)](){const _0x2e668f=_0x2dfb8c;var _0x57774f;this[_0x2e668f(0xd4)]['next'](_0x2e668f(0x125)),(_0x57774f=this['_commandDisposable'])==null||_0x57774f[_0x2e668f(0x8a)]();}[_0x2dfb8c(0xef)](){const _0xa0c45e=_0x2dfb8c;this[_0xa0c45e(0xd4)][_0xa0c45e(0xb3)]('idle'),this[_0xa0c45e(0x8f)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x2dfb8c(0xe1)]),S(0x3,o[_0x2dfb8c(0x12e)](E)),S(0x4,o[_0x2dfb8c(0xda)])],exports[_0x2dfb8c(0x7d)]);function $(){const _0x5a4637=_0x2dfb8c,_0x174cfb=p['useDependency'](exports[_0x5a4637(0x116)]),_0xb6c1b7=p[_0x5a4637(0xb5)](o[_0x5a4637(0xc5)]),_0x20005a=p['useObservable'](()=>_0xb6c1b7[_0x5a4637(0xfd)](o[_0x5a4637(0x73)][_0x5a4637(0xea)]),void 0x0,!0x1,[]),[_0x316d94,_0x4a94c8]=v['useState'](null),[_0x59a08e,_0x531478]=v[_0x5a4637(0x10f)](u['IDLE']),_0x34dc8c=v[_0x5a4637(0xbc)](null);return v[_0x5a4637(0x94)](()=>(_0x20005a&&_0x174cfb[_0x5a4637(0x127)](_0x20005a[_0x5a4637(0xde)]())[_0x5a4637(0x98)](_0x6a32d1=>{const _0xce7f3e=_0x5a4637;_0x4a94c8(_0x6a32d1),_0x34dc8c[_0xce7f3e(0xed)]=_0x6a32d1[_0xce7f3e(0x117)]['subscribe'](_0x17365c=>{_0x531478(_0x17365c);});}),()=>{const _0x32ba44=_0x5a4637;var _0x2fa7a6;(_0x2fa7a6=_0x34dc8c['current'])==null||_0x2fa7a6[_0x32ba44(0x12d)](),_0x34dc8c['current']=null;}),[_0x20005a,_0x174cfb]),_0x316d94?l[_0x5a4637(0xd1)](f[_0x5a4637(0xdf)],{'align':_0x5a4637(0xab),'disabled':_0x59a08e===u[_0x5a4637(0x7f)],'className':_0x5a4637(0x9e),'overlay':l[_0x5a4637(0xd1)](W,{'status':_0x59a08e,'coordinator':_0x316d94}),'children':l[_0x5a4637(0xd1)](_0x5a4637(0x7c),{'className':f[_0x5a4637(0x12c)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x59a08e===u[_0x5a4637(0x7f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x59a08e!==u[_0x5a4637(0x7f)]}),'type':_0x5a4637(0x7c),'children':l['jsx'](R,{'className':'univer-size-4'})})}):null;}function W(_0x13c4b1){const _0x3f8737=_0x2dfb8c,{status:_0x4e4502,coordinator:_0x420180}=_0x13c4b1;switch(_0x4e4502){case u[_0x3f8737(0xd6)]:return l[_0x3f8737(0xd1)](G,{'coordinator':_0x420180});case u[_0x3f8737(0x93)]:return l['jsx'](B,{'coordinator':_0x420180});case u[_0x3f8737(0xbf)]:return l['jsx'](Y,{'coordinator':_0x420180});case u[_0x3f8737(0x7f)]:return l[_0x3f8737(0xd1)](J,{});case u[_0x3f8737(0x78)]:return l[_0x3f8737(0xd1)](Z,{'coordinator':_0x420180});default:return null;}}function G(_0x4e009c){const _0x21e2f1=_0x2dfb8c,{coordinator:_0x341bf2}=_0x4e009c;return l[_0x21e2f1(0x80)](l['Fragment'],{'children':[l[_0x21e2f1(0xd1)]('div',{'className':_0x21e2f1(0xe3),'children':_0x21e2f1(0x76)}),l[_0x21e2f1(0xd1)](f['Button'],{'onClick':()=>_0x341bf2[_0x21e2f1(0x113)](),'children':_0x21e2f1(0x82)})]});}function B(_0x479990){const _0x2deec2=_0x2dfb8c,{coordinator:_0x4b3cd8}=_0x479990;return l[_0x2deec2(0x80)](l[_0x2deec2(0xf1)],{'children':[l[_0x2deec2(0xd1)](_0x2deec2(0xeb),{'className':_0x2deec2(0xe3),'children':_0x2deec2(0x111)}),l[_0x2deec2(0xd1)](f['Button'],{'onClick':()=>_0x4b3cd8['stopFollowing'](),'children':_0x2deec2(0xa8)})]});}function Y(_0x397edd){const _0x40ed02=_0x2dfb8c,{coordinator:_0x290a08}=_0x397edd;return l['jsxs'](l['Fragment'],{'children':[l['jsx']('div',{'className':_0x40ed02(0xe3),'children':_0x40ed02(0x134)}),l[_0x40ed02(0xd1)](f[_0x40ed02(0xf6)],{'variant':_0x40ed02(0xf2),'onClick':()=>_0x290a08[_0x40ed02(0xfe)](),'children':_0x40ed02(0x138)})]});}function Z(_0x4037d6){const _0x44b4e3=_0x2dfb8c,{coordinator:_0x5e2087}=_0x4037d6;return l['jsxs'](l['Fragment'],{'children':[l[_0x44b4e3(0xd1)](_0x44b4e3(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x44b4e3(0xd1)](f['Button'],{'variant':_0x44b4e3(0x132),'onClick':()=>_0x5e2087['stopPresenting'](),'children':_0x44b4e3(0x84)})]});}function J(){const _0x4ceb24=_0x2dfb8c;return l[_0x4ceb24(0xd1)](l[_0x4ceb24(0xf1)],{'children':'You\x27are\x20offline.'});}var K=Object['getOwnPropertyDescriptor'],z=(_0xe2f3c9,_0x12a67a,_0x54ee30,_0x3fad16)=>{const _0x200ec4=_0x2dfb8c;for(var _0x5b6be2=_0x3fad16>0x1?void 0x0:_0x3fad16?K(_0x12a67a,_0x54ee30):_0x12a67a,_0x35bbb8=_0xe2f3c9[_0x200ec4(0x7b)]-0x1,_0x2ec688;_0x35bbb8>=0x0;_0x35bbb8--)(_0x2ec688=_0xe2f3c9[_0x35bbb8])&&(_0x5b6be2=_0x2ec688(_0x5b6be2)||_0x5b6be2);return _0x5b6be2;},L=(_0x36bca2,_0x1ee03e)=>(_0xaed26a,_0x45b6d4)=>_0x1ee03e(_0xaed26a,_0x45b6d4,_0x36bca2);exports[_0x2dfb8c(0x121)]=class extends o[_0x2dfb8c(0xb2)]{constructor(_0x4924bf,_0x118f34){const _0x57f1d4=_0x2dfb8c;super(),this[_0x57f1d4(0xdd)]=_0x4924bf,this['_uiPartsService']=_0x118f34,this[_0x57f1d4(0xcc)]();}[_0x2dfb8c(0xcc)](){const _0x34ad4f=_0x2dfb8c;this[_0x34ad4f(0x74)](this[_0x34ad4f(0xe2)][_0x34ad4f(0xf0)](p['BuiltInUIPart'][_0x34ad4f(0x81)],()=>p[_0x34ad4f(0x96)]($,this[_0x34ad4f(0xdd)])));}},exports[_0x2dfb8c(0x121)]=z([L(0x0,o[_0x2dfb8c(0x12e)](o['Injector'])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);const Q=_0x2dfb8c(0x79),w={};var X=Object[_0x2dfb8c(0x88)],ee=(_0x1cecbf,_0x5ccd10,_0x7780d4,_0x5580ed)=>{const _0x3f18f8=_0x2dfb8c;for(var _0xf019ee=_0x5580ed>0x1?void 0x0:_0x5580ed?X(_0x5ccd10,_0x7780d4):_0x5ccd10,_0x19f0d0=_0x1cecbf[_0x3f18f8(0x7b)]-0x1,_0xe71be4;_0x19f0d0>=0x0;_0x19f0d0--)(_0xe71be4=_0x1cecbf[_0x19f0d0])&&(_0xf019ee=_0xe71be4(_0xf019ee)||_0xf019ee);return _0xf019ee;},te=(_0x39be3c,_0xcb8dba)=>(_0x1c5d66,_0x13f657)=>_0xcb8dba(_0x1c5d66,_0x13f657,_0x39be3c);let m=class extends o[_0x2dfb8c(0xb2)]{constructor(_0x274f0f){const _0x5983e0=_0x2dfb8c;super(),this[_0x5983e0(0x133)]=_0x274f0f,this['_init']();}[_0x2dfb8c(0x97)](){const _0x12c760=_0x2dfb8c;[D[_0x12c760(0xae)]['id'],D[_0x12c760(0xaf)]['id'],C['SetWorksheetActiveOperation']['id']][_0x12c760(0xd3)](_0x418740=>{const _0x5ab702=_0x12c760;this[_0x5ab702(0x74)](this[_0x5ab702(0x133)][_0x5ab702(0x107)](_0x418740));});}};m=ee([te(0x0,o[_0x2dfb8c(0x12e)](E))],m);var ie=Object[_0x2dfb8c(0xc7)],se=Object[_0x2dfb8c(0x88)],ne=(_0x19c70e,_0x940e82,_0x1c736e)=>_0x940e82 in _0x19c70e?ie(_0x19c70e,_0x940e82,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c736e}):_0x19c70e[_0x940e82]=_0x1c736e,re=(_0x51b08d,_0x413303,_0x1f9cbf,_0x372cac)=>{const _0xcac63e=_0x2dfb8c;for(var _0xfce9c3=_0x372cac>0x1?void 0x0:_0x372cac?se(_0x413303,_0x1f9cbf):_0x413303,_0x298590=_0x51b08d[_0xcac63e(0x7b)]-0x1,_0x2cfaad;_0x298590>=0x0;_0x298590--)(_0x2cfaad=_0x51b08d[_0x298590])&&(_0xfce9c3=_0x2cfaad(_0xfce9c3)||_0xfce9c3);return _0xfce9c3;},N=(_0x51593f,_0x86516e)=>(_0x1af014,_0x365c54)=>_0x86516e(_0x1af014,_0x365c54,_0x51593f),A=(_0x3f089a,_0xfe82e1,_0x4f988b)=>ne(_0x3f089a,typeof _0xfe82e1!='symbol'?_0xfe82e1+'':_0xfe82e1,_0x4f988b);const oe=_0x2dfb8c(0x9f);exports[_0x2dfb8c(0xd0)]=class extends o['Plugin']{constructor(_0x15c377=w,_0x14f1bb,_0x27cd87){const _0x580077=_0x2dfb8c;super(),this[_0x580077(0xa7)]=_0x15c377,this[_0x580077(0xdd)]=_0x14f1bb,this[_0x580077(0xce)]=_0x27cd87;const {..._0x38b89b}=o[_0x580077(0xb0)]({},w,this[_0x580077(0xa7)]);this['_configService'][_0x580077(0x109)](Q,_0x38b89b);}['onStarting'](){const _0x350ecd=_0x2dfb8c;o[_0x350ecd(0x10c)](this[_0x350ecd(0xdd)],o[_0x350ecd(0x13c)]([[E],[exports[_0x350ecd(0x116)]],[m],[exports[_0x350ecd(0x121)]]],this[_0x350ecd(0xa7)][_0x350ecd(0xfb)])),o[_0x350ecd(0x11e)](this[_0x350ecd(0xdd)],[[m]]);}[_0x2dfb8c(0x9d)](){const _0x3c01bd=_0x2dfb8c;o[_0x3c01bd(0x11e)](this[_0x3c01bd(0xdd)],[[exports[_0x3c01bd(0x121)]]]);}},A(exports['UniverLiveSharePlugin'],_0x2dfb8c(0xf8),o['UniverInstanceType']['UNIVER_UNKNOWN']),A(exports[_0x2dfb8c(0xd0)],'pluginName',oe),exports[_0x2dfb8c(0xd0)]=re([o[_0x2dfb8c(0x8e)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x2dfb8c(0x12e)](o[_0x2dfb8c(0xe7)])),N(0x2,o[_0x2dfb8c(0xe1)])],exports['UniverLiveSharePlugin']),exports[_0x2dfb8c(0x103)]=$,exports[_0x2dfb8c(0x10d)]=E,exports[_0x2dfb8c(0x8c)]=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 _0x3a64e1=_0x3aa3;(function(_0x217ef9,_0x380c9d){const _0x367b1a=_0x3aa3,_0x251386=_0x217ef9();while(!![]){try{const _0x466578=parseInt(_0x367b1a(0xe9))/0x1*(parseInt(_0x367b1a(0xe2))/0x2)+parseInt(_0x367b1a(0xe5))/0x3+-parseInt(_0x367b1a(0xec))/0x4+-parseInt(_0x367b1a(0xdb))/0x5*(parseInt(_0x367b1a(0xf0))/0x6)+-parseInt(_0x367b1a(0xd6))/0x7*(parseInt(_0x367b1a(0xe8))/0x8)+parseInt(_0x367b1a(0xeb))/0x9*(-parseInt(_0x367b1a(0xd5))/0xa)+parseInt(_0x367b1a(0xda))/0xb*(parseInt(_0x367b1a(0xdf))/0xc);if(_0x466578===_0x380c9d)break;else _0x251386['push'](_0x251386['shift']());}catch(_0x29cfe8){_0x251386['push'](_0x251386['shift']());}}}(_0x18c6,0xae809));function _0x18c6(){const _0x2b7caa=['32MnGqlm','1160363MXJFwo','tryStartPresenting','9BNmdbE','4318908INMSri','UNIVER_SHEET','get','stopFollowing','119628UiBVvD','stopPresenting','getCurrentUnitOfType','getLiveShareCoordinatorSync','6419480YFYnrZ','1077027HOEJpD','getUnitId','_liveShareController','_injector','978351oukNtC','5TYXMRk','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','defineProperty','startFollowing','192ElykdL','No\x20active\x20workbook\x20found.','extend','2XaInUY','_initialize','getStatus','1465197BFGXFF','symbol','IDLE'];_0x18c6=function(){return _0x2b7caa;};return _0x18c6();}var l=Object[_0x3a64e1(0xdd)],w=(_0x1fbb24,_0x30f657,_0x561ddc)=>_0x30f657 in _0x1fbb24?l(_0x1fbb24,_0x30f657,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x561ddc}):_0x1fbb24[_0x30f657]=_0x561ddc,v=(_0x10fbf7,_0x253066,_0x7a933e)=>w(_0x10fbf7,typeof _0x253066!=_0x3a64e1(0xe6)?_0x253066+'':_0x253066,_0x7a933e);function _0x3aa3(_0x4020b9,_0x309383){_0x4020b9=_0x4020b9-0xd2;const _0x18c668=_0x18c6();let _0x3aa371=_0x18c668[_0x4020b9];return _0x3aa371;}import{LiveShareController as _0x57bf1b,LiveShareStatus as _0x4e7f8e}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x4db51e,UniverInstanceType as _0x12eead}from'@univerjs/core';import{FUniver as _0x1e722f,FEnum as _0x1fe8a2}from'@univerjs/core/facade';class g extends _0x1e722f{constructor(){const _0x2b193d=_0x3a64e1;super(...arguments),v(this,_0x2b193d(0xd8));}[_0x3a64e1(0xe3)](_0x4eb906){const _0x5f5b75=_0x3a64e1;this[_0x5f5b75(0xd8)]=_0x4eb906[_0x5f5b75(0xee)](_0x57bf1b);}['getLiveShareStatus'](){const _0xad5af7=_0x3a64e1;var _0x2511db;const _0xb6f987=this['_injector'][_0xad5af7(0xee)](_0x4db51e)[_0xad5af7(0xd3)](_0x12eead[_0xad5af7(0xed)]);if(!_0xb6f987)throw new Error('No\x20active\x20workbook\x20found.');const _0x51a1c7=_0xb6f987[_0xad5af7(0xd7)](),_0x489d49=this[_0xad5af7(0xd8)][_0xad5af7(0xd4)](_0x51a1c7);return(_0x2511db=_0x489d49==null?void 0x0:_0x489d49[_0xad5af7(0xe4)]())!=null?_0x2511db:_0x4e7f8e[_0xad5af7(0xe7)];}['startFollowing'](){const _0x255760=_0x3a64e1,_0xd02ba7=this[_0x255760(0xd9)][_0x255760(0xee)](_0x4db51e)[_0x255760(0xd3)](_0x12eead['UNIVER_SHEET']);if(!_0xd02ba7)throw new Error(_0x255760(0xe0));const _0x61393f=_0xd02ba7[_0x255760(0xd7)](),_0xe7866a=this[_0x255760(0xd8)]['getLiveShareCoordinatorSync'](_0x61393f);if(!_0xe7866a)throw new Error(_0x255760(0xdc));_0xe7866a[_0x255760(0xde)]();}[_0x3a64e1(0xef)](){const _0x2550b1=_0x3a64e1,_0x477671=this[_0x2550b1(0xd9)][_0x2550b1(0xee)](_0x4db51e)['getCurrentUnitOfType'](_0x12eead['UNIVER_SHEET']);if(!_0x477671)throw new Error('No\x20active\x20workbook\x20found.');const _0x1d7d85=_0x477671[_0x2550b1(0xd7)](),_0x3ec5b9=this[_0x2550b1(0xd8)][_0x2550b1(0xd4)](_0x1d7d85);if(!_0x3ec5b9)throw new Error(_0x2550b1(0xdc));_0x3ec5b9[_0x2550b1(0xef)]();}['startPresenting'](){const _0x3a6557=_0x3a64e1,_0x3590c5=this[_0x3a6557(0xd9)][_0x3a6557(0xee)](_0x4db51e)[_0x3a6557(0xd3)](_0x12eead[_0x3a6557(0xed)]);if(!_0x3590c5)throw new Error(_0x3a6557(0xe0));const _0x5a2cf9=_0x3590c5['getUnitId'](),_0x3b1cd7=this[_0x3a6557(0xd8)]['getLiveShareCoordinatorSync'](_0x5a2cf9);if(!_0x3b1cd7)throw new Error(_0x3a6557(0xdc));_0x3b1cd7[_0x3a6557(0xea)]();}[_0x3a64e1(0xd2)](){const _0x1074ba=_0x3a64e1,_0x32368b=this[_0x1074ba(0xd9)][_0x1074ba(0xee)](_0x4db51e)[_0x1074ba(0xd3)](_0x12eead[_0x1074ba(0xed)]);if(!_0x32368b)throw new Error(_0x1074ba(0xe0));const _0x3869cc=_0x32368b[_0x1074ba(0xd7)](),_0x2698e6=this[_0x1074ba(0xd8)]['getLiveShareCoordinatorSync'](_0x3869cc);if(!_0x2698e6)throw new Error(_0x1074ba(0xdc));_0x2698e6[_0x1074ba(0xd2)]();}}_0x1e722f['extend'](g);class f extends _0x1fe8a2{get['LiveShareStatusEnum'](){return _0x4e7f8e;}}_0x1fe8a2[_0x3a64e1(0xe1)](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 _0x3161ce=_0x5432;(function(_0xe9e216,_0x499a4b){const _0x2cd15d=_0x5432,_0x5f2cb6=_0xe9e216();while(!![]){try{const _0x507ac7=-parseInt(_0x2cd15d(0x117))/0x1*(parseInt(_0x2cd15d(0xbe))/0x2)+-parseInt(_0x2cd15d(0xf5))/0x3*(-parseInt(_0x2cd15d(0xc6))/0x4)+-parseInt(_0x2cd15d(0xec))/0x5+parseInt(_0x2cd15d(0xd3))/0x6+-parseInt(_0x2cd15d(0xfb))/0x7*(-parseInt(_0x2cd15d(0xf9))/0x8)+-parseInt(_0x2cd15d(0x122))/0x9*(parseInt(_0x2cd15d(0xf7))/0xa)+-parseInt(_0x2cd15d(0xab))/0xb*(-parseInt(_0x2cd15d(0x116))/0xc);if(_0x507ac7===_0x499a4b)break;else _0x5f2cb6['push'](_0x5f2cb6['shift']());}catch(_0x30b8b4){_0x5f2cb6['push'](_0x5f2cb6['shift']());}}}(_0x8a2f,0x26dfa));var J=Object[_0x3161ce(0xc9)],K=(_0x3b3c27,_0x63425f,_0x32df1a)=>_0x63425f in _0x3b3c27?J(_0x3b3c27,_0x63425f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32df1a}):_0x3b3c27[_0x63425f]=_0x32df1a,u=(_0x247481,_0x5cbac4,_0x55545c)=>K(_0x247481,typeof _0x5cbac4!=_0x3161ce(0xaf)?_0x5cbac4+'':_0x5cbac4,_0x55545c);import{Disposable as _0x38683d,toDisposable as _0x145942,IUniverInstanceService as _0x3f7773,Inject as _0x14252a,Injector as _0x5e11ad,IConfigService as _0x2b6132,ICommandService as _0x5327ed,RxDisposable as _0x2c7418,UniverInstanceType as _0x3d3727,DisposableCollection as _0x274dd9,CommandType as _0x3db63d,DependentOn as _0x10d5a5,Plugin as _0x1104c7,merge as _0x204de3,registerDependencies as _0x149c15,mergeOverrideWithDependencies as _0x2f3879,touchDependencies as _0xcdf2ee}from'@univerjs/core';import{useDependency as _0x2e8a9e,useObservable as _0x76447,IUIPartsService as _0x3fa8c9,BuiltInUIPart as _0x5f0230,connectInjector as _0x4c8d2a}from'@univerjs/ui';import{jsx as _0x525ba2,jsxs as _0x40011d,Fragment as _0x52ab07}from'react/jsx-runtime';import{Dropdown as _0x3fbb2d,clsx as _0x5ab19b,Button as _0x4174df}from'@univerjs/design';import{useRef as _0x2753f6,createElement as _0x5e5e58,forwardRef as _0x1a7ba8,useState as _0x3039b2,useEffect as _0x4dcff2}from'react';import{CollaborationEvent as _0x1c8be3,parseProtocolChangeset as _0x44e6c4}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x383e89,SessionStatus as _0x1b3f3b,UniverCollaborationClientPlugin as _0x145b3d}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x33dc4d,SetWorksheetActiveOperation as _0x5a80bb}from'@univerjs/sheets';import{BehaviorSubject as _0x4ab38a,Subject as _0x104484}from'rxjs';import{takeUntil as _0x5e9ba,throttleTime as _0x496b70}from'rxjs/operators';import{SetZoomRatioOperation as _0xefd7a1,SetScrollOperation as _0x592fec}from'@univerjs/sheets-ui';function k({ref:_0x2d4af4,..._0x3b49ca}){const _0x45878c=_0x3161ce,{icon:_0x458afc,id:_0x5e20ab,className:_0x3598fc,extend:_0x3ba1cf,..._0x401adf}=_0x3b49ca,_0x4496b0=(_0x45878c(0xbf)+_0x5e20ab+'\x20'+(_0x3598fc||''))[_0x45878c(0xb4)](),_0x42a0cb=_0x2753f6('_'+Oe());return G(_0x458afc,''+_0x5e20ab,{'defIds':_0x458afc[_0x45878c(0x11e)],'idSuffix':_0x42a0cb['current']},{'ref':_0x2d4af4,'className':_0x4496b0,..._0x401adf},_0x3ba1cf);}function G(_0x406940,_0x158976,_0x426cbb,_0x5bf2d5,_0x23ed99){const _0x17347d=_0x3161ce;return _0x5e5e58(_0x406940[_0x17347d(0x108)],{'key':_0x158976,...be(_0x406940,_0x426cbb,_0x23ed99),..._0x5bf2d5},(Ee(_0x406940,_0x426cbb)[_0x17347d(0x124)]||[])['map']((_0x205edb,_0x493923)=>G(_0x205edb,_0x158976+'-'+_0x406940[_0x17347d(0x108)]+'-'+_0x493923,_0x426cbb,void 0x0,_0x23ed99)));}function be(_0x5b1ba0,_0x1e16d0,_0x5d9f5e){const _0x5bd510=_0x3161ce,_0x418bc5={..._0x5b1ba0[_0x5bd510(0xb0)]};_0x5d9f5e!=null&&_0x5d9f5e[_0x5bd510(0xa4)]&&_0x418bc5[_0x5bd510(0xe3)]===_0x5bd510(0xa4)&&(_0x418bc5[_0x5bd510(0xe3)]=_0x5d9f5e['colorChannel1']),_0x5b1ba0[_0x5bd510(0x108)]===_0x5bd510(0xf1)&&_0x418bc5['id']&&(_0x418bc5['id']=_0x418bc5['id']+_0x1e16d0[_0x5bd510(0xcb)]),Object[_0x5bd510(0xeb)](_0x418bc5)[_0x5bd510(0xe6)](([_0x39f393,_0x43a80a])=>{const _0x57ed7a=_0x5bd510;_0x39f393===_0x57ed7a(0xf1)&&typeof _0x43a80a==_0x57ed7a(0xb3)&&(_0x418bc5[_0x39f393]=_0x43a80a[_0x57ed7a(0x133)](/url\(#(.*)\)/,_0x57ed7a(0x101)+_0x1e16d0[_0x57ed7a(0xcb)]+')'));});const {defIds:_0xeeb102}=_0x1e16d0;return!_0xeeb102||_0xeeb102[_0x5bd510(0xe7)]===0x0||(_0x5b1ba0[_0x5bd510(0x108)]==='use'&&_0x418bc5[_0x5bd510(0xc4)]&&(_0x418bc5[_0x5bd510(0xc4)]=_0x418bc5[_0x5bd510(0xc4)]+_0x1e16d0[_0x5bd510(0xcb)]),Object[_0x5bd510(0xeb)](_0x418bc5)['forEach'](([_0x2bf6e9,_0x239423])=>{const _0x5ee2e3=_0x5bd510;typeof _0x239423==_0x5ee2e3(0xb3)&&(_0x418bc5[_0x2bf6e9]=_0x239423[_0x5ee2e3(0x133)](/url\(#(.*)\)/,_0x5ee2e3(0x101)+_0x1e16d0[_0x5ee2e3(0xcb)]+')'));})),_0x418bc5;}function Ee(_0x1a5601,_0xfc905a){const _0x37f846=_0x3161ce;var _0x3ca25d;const {defIds:_0x2d6e11}=_0xfc905a;return!_0x2d6e11||_0x2d6e11['length']===0x0?_0x1a5601:_0x1a5601[_0x37f846(0x108)]===_0x37f846(0xef)&&((_0x3ca25d=_0x1a5601[_0x37f846(0x124)])!=null&&_0x3ca25d[_0x37f846(0xe7)])?{..._0x1a5601,'children':_0x1a5601['children'][_0x37f846(0x11b)](_0x2a2fdd=>typeof _0x2a2fdd[_0x37f846(0xb0)]['id']=='string'&&_0x2d6e11&&_0x2d6e11[_0x37f846(0xfa)](_0x2a2fdd[_0x37f846(0xb0)]['id'])?{..._0x2a2fdd,'attrs':{..._0x2a2fdd['attrs'],'id':_0x2a2fdd['attrs']['id']+_0xfc905a['idSuffix']}}:_0x2a2fdd)}:_0x1a5601;}function Oe(){const _0x1f12c3=_0x3161ce;return Math['random']()[_0x1f12c3(0xad)](0x24)['substring'](0x2,0x8);}k[_0x3161ce(0xe9)]=_0x3161ce(0xf0);const we={'tag':_0x3161ce(0xc0),'attrs':{'xmlns':_0x3161ce(0x13e),'fill':_0x3161ce(0xdd),'viewBox':_0x3161ce(0x110),'width':_0x3161ce(0x123),'height':_0x3161ce(0x123)},'children':[{'tag':_0x3161ce(0x139),'attrs':{'fill':_0x3161ce(0x12b),'d':_0x3161ce(0x105)}},{'tag':'path','attrs':{'fill':_0x3161ce(0x12b),'d':_0x3161ce(0xa2),'fillRule':_0x3161ce(0xdc),'clipRule':_0x3161ce(0xdc)}}]},W=_0x1a7ba8(function(_0x12ee0d,_0x7b928a){const _0x32c9ee=_0x3161ce;return _0x5e5e58(k,Object[_0x32c9ee(0x134)]({},_0x12ee0d,{'id':_0x32c9ee(0x10c),'ref':_0x7b928a,'icon':we}));});W[_0x3161ce(0xe9)]='LiveShareIcon';function _0x8a2f(){const _0x398be8=['_handleTerminate','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','text','colorChannel1','_liveShareService','idle','presenting','LIVESHARE_NEW_HOST','Start\x20following','operations','724361AUozCJ','onStarting','toString','_handleOperation','symbol','attrs','getUnitId','clear','string','trim','LIVESHARE_REQUEST_HOST','default','complete','_stopPresenting','_commandDisposable','Stop\x20presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','getInitialStates','_startFollowing','2DOwmlt','univerjs-icon\x20univerjs-icon-','svg','mutations','offline','_entities','xlink:href','init','12xgGBEI','_collabSession','_presenter','defineProperty','FOLLOWING','idSuffix','end','_collabSessionService','_configService','_injector','tryStartPresenting','IDLE','set','715050YjcYFt','next','following','_univerInstanceService','LIVESHARE_TERMINATE','getLiveShareCoordinatorSync','dispose','stringify','shouldShareOperation','evenodd','none','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','presenter','_status','UNIVER_SHEET','_startLiveShareCoordinator','fill','OFFLINE','_handleNewChangeSets','forEach','length','not-following','displayName','disposeWithMe','entries','646655nksKQA','override','button','defs','UniverIcon','mask','getLiveShareCoordinator','LIVESHARE_OPERATION','unitId','51999RvDGbx','registerInitialStateReporter','210QSNMya','subscribe','317256RLTpbM','includes','42rgUQmW','_mountLiveShare','send','getStatus','registerSharedOperation','_beIdle','url(#$1','SAME_OPERATION_SHARE_INTERVAL','_unitID','add','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','getOwnPropertyDescriptor','You\x27re\x20not\x20following\x20the\x20presenter','tag','then','data','get','live-share-icon','_config','_startPresenting','requireSession','0\x200\x2017\x2017','Present\x20this\x20document','delete','pipe','live-share.config','UNIVER_UNKNOWN','36pzJEsh','309271NRrfUu','event$','params','PRESENTING','map','_handleNewHost','type','defIds','NOT_FOLLOWING','_status$','_sharedOperations','3789BtNkGm','1em','children','LIVESHARE_FETCH_OPERATIONS','getConfig','_reporters','getValue','UNIVER_LIVE_SHARE_PLUGIN','_init','currentColor','Start','_handleOnline','Stop\x20following','executeCommand','getTypeOfUnitAdded$','ONLINE','setConfig','replace','assign','current','getMemberID','stopFollowing','You\x27are\x20offline.','path','_stopFollowing','div','NEW_CHANGESETS','_fetchOperations','http://www.w3.org/2000/svg','onRendered','registerComponent','stopPresenting','startFollowing','_commandService','_handleOffline','status$','values','_uiPartsService','dispose$','OPERATION','has'];_0x8a2f=function(){return _0x398be8;};return _0x8a2f();}class L extends _0x38683d{constructor(){const _0x1c4487=_0x3161ce;super(...arguments),u(this,_0x1c4487(0x121),new Set()),u(this,'_reporters',new Set());}[_0x3161ce(0xff)](_0x162192){const _0xc0a628=_0x3161ce;return this['_sharedOperations'][_0xc0a628(0x104)](_0x162192),_0x145942(()=>this[_0xc0a628(0x121)]['delete'](_0x162192));}[_0x3161ce(0xf6)](_0x2347e5){const _0x76d00=_0x3161ce;return this['_reporters'][_0x76d00(0x104)](_0x2347e5),_0x145942(()=>this[_0x76d00(0x127)][_0x76d00(0x112)](_0x2347e5));}[_0x3161ce(0xdb)](_0x3a5ab1){const _0x3218b1=_0x3161ce;return this['_sharedOperations'][_0x3218b1(0xa0)](_0x3a5ab1);}[_0x3161ce(0xbc)](_0x63ba77){const _0x1a5131=_0x3161ce;return Array['from'](this['_reporters'])[_0x1a5131(0x11b)](_0x36dc6d=>_0x36dc6d(_0x63ba77));}}var Ne=Object[_0x3161ce(0x106)],Y=(_0xa22727,_0x2a249d,_0x66f8b7,_0x2502c3)=>{const _0x141347=_0x3161ce;for(var _0x376df6=_0x2502c3>0x1?void 0x0:_0x2502c3?Ne(_0x2a249d,_0x66f8b7):_0x2a249d,_0x49605b=_0xa22727[_0x141347(0xe7)]-0x1,_0x6ed335;_0x49605b>=0x0;_0x49605b--)(_0x6ed335=_0xa22727[_0x49605b])&&(_0x376df6=_0x6ed335(_0x376df6)||_0x376df6);return _0x376df6;},_=(_0x41fccc,_0x132676)=>(_0x4bf7fd,_0x479861)=>_0x132676(_0x4bf7fd,_0x479861,_0x41fccc);let S=class extends _0x2c7418{constructor(_0x1d8880,_0x4056e7,_0x5f2174){const _0x33897e=_0x3161ce;super(),u(this,_0x33897e(0xc3),new Map()),(this[_0x33897e(0xd6)]=_0x1d8880,this[_0x33897e(0xcf)]=_0x4056e7,this[_0x33897e(0xcd)]=_0x5f2174,this[_0x33897e(0x12a)]());}async['getLiveShareCoordinator'](_0x2d99bd){const _0x45b2a8=_0x3161ce;return this[_0x45b2a8(0xc3)]['has'](_0x2d99bd)||await this['_startLiveShareCoordinator'](_0x2d99bd),this[_0x45b2a8(0xc3)][_0x45b2a8(0x10b)](_0x2d99bd);}[_0x3161ce(0xd8)](_0x5da28a){const _0x52841c=_0x3161ce;var _0x5e24b0;return(_0x5e24b0=this[_0x52841c(0xc3)][_0x52841c(0x10b)](_0x5da28a))!=null?_0x5e24b0:null;}[_0x3161ce(0x12a)](){const _0x544ac1=_0x3161ce;this[_0x544ac1(0xd6)][_0x544ac1(0x130)](_0x3d3727[_0x544ac1(0xe1)])[_0x544ac1(0x113)](_0x5e9ba(this[_0x544ac1(0x9e)]))['subscribe'](async _0x552a4b=>{const _0x55622b=_0x544ac1,_0x145531=_0x552a4b['getUnitId']();this[_0x55622b(0xc3)][_0x55622b(0xa0)](_0x145531)||this[_0x55622b(0xe2)](_0x145531);}),this[_0x544ac1(0xd6)]['getTypeOfUnitDisposed$'](_0x3d3727[_0x544ac1(0xe1)])[_0x544ac1(0x113)](_0x5e9ba(this[_0x544ac1(0x9e)]))['subscribe'](_0x5cec92=>{const _0x2793c1=_0x544ac1,_0x18c72b=_0x5cec92['getUnitId'](),_0x3ab835=this['_entities'][_0x2793c1(0x10b)](_0x18c72b);_0x3ab835==null||_0x3ab835[_0x2793c1(0xd9)]();});}async[_0x3161ce(0xe2)](_0x2ff801){const _0x5214b7=_0x3161ce,_0x18a8ba=await this['_collabSessionService'][_0x5214b7(0x10f)](_0x2ff801),_0x5f5c3c=this[_0x5214b7(0xcf)]['createInstance'](N,_0x2ff801,_0x18a8ba);return _0x5f5c3c[_0x5214b7(0xc5)](),this[_0x5214b7(0xc3)][_0x5214b7(0xd2)](_0x2ff801,_0x5f5c3c),_0x5f5c3c;}};S=Y([_(0x0,_0x3f7773),_(0x1,_0x14252a(_0x5e11ad)),_(0x2,_0x14252a(_0x383e89))],S);var c=(_0x1405aa=>(_0x1405aa[_0x3161ce(0xe4)]=_0x3161ce(0xc2),_0x1405aa[_0x3161ce(0xd1)]=_0x3161ce(0xa6),_0x1405aa[_0x3161ce(0xca)]=_0x3161ce(0xd5),_0x1405aa[_0x3161ce(0x11f)]='not-following',_0x1405aa['PRESENTING']=_0x3161ce(0xa7),_0x1405aa))(c||{});const Ce=_0x3161ce(0x102),De=0xc8;let N=class extends _0x2c7418{constructor(_0x475055,_0x27523b,_0x4cd19f,_0x1c7a91,_0x58b56b){const _0x26120d=_0x3161ce;super(),u(this,'_status$',new _0x4ab38a(_0x26120d(0xa6))),u(this,_0x26120d(0x9b),this[_0x26120d(0x120)]['asObservable']()),u(this,'_init',!0x1),u(this,_0x26120d(0xb9),null),u(this,_0x26120d(0xc8),null),(this[_0x26120d(0x103)]=_0x475055,this[_0x26120d(0xc7)]=_0x27523b,this['_configService']=_0x4cd19f,this['_liveShareService']=_0x1c7a91,this[_0x26120d(0x99)]=_0x58b56b);}get['_status'](){const _0x37439b=_0x3161ce;return this['_status$'][_0x37439b(0x128)]();}[_0x3161ce(0xd9)](){const _0x4f56cc=_0x3161ce;var _0x1718ff;(_0x1718ff=this['_commandDisposable'])==null||_0x1718ff[_0x4f56cc(0xd9)](),this[_0x4f56cc(0x120)][_0x4f56cc(0xd4)](_0x4f56cc(0xa6)),this[_0x4f56cc(0x120)][_0x4f56cc(0xb7)]();}[_0x3161ce(0xfe)](){const _0x4923e0=_0x3161ce;return this[_0x4923e0(0xe0)];}[_0x3161ce(0xc5)](){const _0x2f9775=_0x3161ce;this[_0x2f9775(0x12a)]||(this[_0x2f9775(0x12a)]=!0x0,this[_0x2f9775(0xc7)]['sessionStatus$'][_0x2f9775(0x113)](_0x5e9ba(this[_0x2f9775(0x9e)]))['subscribe'](_0x5ab8ef=>{const _0x3301f5=_0x2f9775;switch(_0x5ab8ef){case _0x1b3f3b[_0x3301f5(0xe4)]:this[_0x3301f5(0x9a)]();break;case _0x1b3f3b[_0x3301f5(0x131)]:this[_0x3301f5(0x12d)]();break;}}),this[_0x2f9775(0xc7)][_0x2f9775(0x118)][_0x2f9775(0x113)](_0x5e9ba(this[_0x2f9775(0x9e)]))[_0x2f9775(0xf8)](_0x2bfdc5=>{const _0x3d0c52=_0x2f9775,{eventID:_0x5ae880}=_0x2bfdc5;switch(_0x5ae880){case _0x1c8be3[_0x3d0c52(0xa8)]:this['_handleNewHost'](_0x2bfdc5);break;case _0x1c8be3[_0x3d0c52(0xf3)]:this[_0x3d0c52(0xae)](_0x2bfdc5);break;case _0x1c8be3['LIVESHARE_TERMINATE']:this[_0x3d0c52(0xa1)]();break;case _0x1c8be3[_0x3d0c52(0x13c)]:this[_0x3d0c52(0xe5)](_0x2bfdc5);break;}}));}[_0x3161ce(0xd0)](){const _0x5178e5=_0x3161ce;this['_collabSession'][_0x5178e5(0xfd)]({'eventID':_0x1c8be3[_0x5178e5(0xb5)],'data':{'unitID':this[_0x5178e5(0x103)],'userID':this[_0x5178e5(0xc7)][_0x5178e5(0x136)]()}},this[_0x5178e5(0x103)]);}[_0x3161ce(0x141)](){const _0x2022bb=_0x3161ce;this[_0x2022bb(0xe0)]===_0x2022bb(0xa7)&&(this[_0x2022bb(0x120)]['next']('idle'),this[_0x2022bb(0xc7)][_0x2022bb(0xfd)]({'eventID':_0x1c8be3[_0x2022bb(0xd7)],'data':{'unitID':this['_unitID']}},this[_0x2022bb(0x103)]));}[_0x3161ce(0x98)](){const _0x2b9b04=_0x3161ce;this[_0x2b9b04(0xe0)]==='not-following'&&(this[_0x2b9b04(0x120)][_0x2b9b04(0xd4)](_0x2b9b04(0xd5)),this[_0x2b9b04(0xbd)]());}[_0x3161ce(0x137)](){const _0x4b9398=_0x3161ce;this[_0x4b9398(0xe0)]===_0x4b9398(0xd5)&&this[_0x4b9398(0x13a)]();}[_0x3161ce(0x11c)](_0x19be9a){const _0x141f26=_0x3161ce,{presenter:_0x548e36}=_0x19be9a[_0x141f26(0x10a)],_0x32cd5e=this[_0x141f26(0xc7)]['getMemberID']();this[_0x141f26(0xc8)]=_0x548e36,_0x548e36===_0x32cd5e?(this[_0x141f26(0x13a)](),this[_0x141f26(0x10e)]()):this['_status']!==_0x141f26(0xe8)&&(this['_stopPresenting'](),this[_0x141f26(0xbd)]());}[_0x3161ce(0x13d)](){const _0x3af3ba=_0x3161ce,_0x1cb094={'eventID':_0x1c8be3[_0x3af3ba(0x125)]};this['_collabSession']['send'](_0x1cb094,this['_unitID']);}[_0x3161ce(0xa1)](){const _0x27b875=_0x3161ce;this[_0x27b875(0xc8)]=null,this['_status']!==_0x27b875(0xa7)&&this[_0x27b875(0x100)]();}[_0x3161ce(0xe5)](_0x4d2222){const _0x3ba348=_0x3161ce;if(this[_0x3ba348(0xe0)]==='following'&&this[_0x3ba348(0xc8)]===_0x4d2222[_0x3ba348(0x10a)]['memberID']){const _0x10f8c3=_0x44e6c4(_0x4d2222['data'])[_0x3ba348(0xc1)]['reverse']()['find'](_0x2922b4=>_0x2922b4['id']===_0x33dc4d['id']);if(_0x10f8c3){const _0x20c598=_0x10f8c3[_0x3ba348(0x119)][_0x3ba348(0xf4)],_0x5b4268=_0x10f8c3[_0x3ba348(0x119)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x5a80bb['id'],{'unitId':_0x20c598,'subUnitId':_0x5b4268},{'fromCollab':!0x0});});}}}[_0x3161ce(0x10e)](){const _0x483c69=_0x3161ce;this[_0x483c69(0x120)][_0x483c69(0xd4)](_0x483c69(0xa7));const _0x417c7f=new Map(),_0x3944d1=this[_0x483c69(0xb9)]=new _0x274dd9();_0x3944d1[_0x483c69(0x104)](_0x145942(()=>{const _0x3a7038=_0x483c69;_0x417c7f[_0x3a7038(0xe6)](_0x59aec9=>_0x59aec9[_0x3a7038(0xb7)]()),_0x417c7f[_0x3a7038(0xb2)]();})),_0x3944d1[_0x483c69(0x104)](this[_0x483c69(0x99)]['onCommandExecuted'](_0x54775e=>{const _0x4a2a9e=_0x483c69;var _0x600c72;if(_0x54775e[_0x4a2a9e(0x11d)]!==_0x3db63d[_0x4a2a9e(0x9f)]||!this[_0x4a2a9e(0xa5)][_0x4a2a9e(0xdb)](_0x54775e['id']))return;const {id:_0x390027}=_0x54775e;let _0x20a213;_0x417c7f['has'](_0x390027)?_0x20a213=_0x417c7f['get'](_0x390027):(_0x20a213=new _0x104484(),_0x417c7f['set'](_0x390027,_0x20a213),_0x20a213[_0x4a2a9e(0x113)](_0x496b70((_0x600c72=this['_configService'][_0x4a2a9e(0x126)](Ce))!=null?_0x600c72:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x33a46e=>{const _0x26ca0e=_0x4a2a9e;this[_0x26ca0e(0xc7)]['send']({'eventID':_0x1c8be3[_0x26ca0e(0xf3)],'data':{'unitID':this[_0x26ca0e(0x103)],'operations':{[_0x33a46e['id']]:{'id':_0x33a46e['id'],'params':JSON['stringify'](_0x33a46e['params'])}}}},this[_0x26ca0e(0x103)]);})),_0x20a213[_0x4a2a9e(0xd4)](_0x54775e);})),this[_0x483c69(0xa5)][_0x483c69(0xbc)](this[_0x483c69(0x103)])[_0x483c69(0xe6)](_0xda8394=>this[_0x483c69(0xc7)][_0x483c69(0xfd)]({'eventID':_0x1c8be3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x483c69(0x103)],'operations':{[_0xda8394['id']]:{'id':_0xda8394['id'],'params':JSON[_0x483c69(0xda)](_0xda8394[_0x483c69(0x119)])}}}},this[_0x483c69(0x103)]));}[_0x3161ce(0xb8)](){const _0x3d1ce0=_0x3161ce;var _0x2d3082;this[_0x3d1ce0(0x120)]['next'](_0x3d1ce0(0xa6)),(_0x2d3082=this[_0x3d1ce0(0xb9)])==null||_0x2d3082[_0x3d1ce0(0xd9)](),this['_commandDisposable']=null;}[_0x3161ce(0xbd)](){const _0x291e30=_0x3161ce;var _0x2240fa;(_0x2240fa=this[_0x291e30(0xb9)])==null||_0x2240fa[_0x291e30(0xd9)](),this[_0x291e30(0x120)]['next'](_0x291e30(0xd5));}[_0x3161ce(0x100)](){const _0x3876d1=_0x3161ce;var _0x76b030;this[_0x3876d1(0x120)][_0x3876d1(0xd4)](_0x3876d1(0xa6)),(_0x76b030=this['_commandDisposable'])==null||_0x76b030['dispose'](),this[_0x3876d1(0xb9)]=null;}['_stopFollowing'](){const _0x4ccd24=_0x3161ce;var _0x367f51;this[_0x4ccd24(0x120)][_0x4ccd24(0xd4)](_0x4ccd24(0xe8)),(_0x367f51=this[_0x4ccd24(0xb9)])==null||_0x367f51['dispose']();}[_0x3161ce(0xae)](_0x576669){const _0x4fa02c=_0x3161ce;if([_0x4fa02c(0xa7),_0x4fa02c(0xe8),_0x4fa02c(0xc2)]['includes'](this[_0x4fa02c(0xe0)])||!_0x576669[_0x4fa02c(0x10a)][_0x4fa02c(0xdf)]||_0x576669['data'][_0x4fa02c(0xdf)]===this[_0x4fa02c(0xc7)][_0x4fa02c(0x136)]())return;this['_status']===_0x4fa02c(0xa6)&&this[_0x4fa02c(0xbd)]();const _0x478620=_0x576669[_0x4fa02c(0x10a)][_0x4fa02c(0xaa)];Object[_0x4fa02c(0x9c)](_0x478620)[_0x4fa02c(0xe6)](_0x3854d4=>{const _0x25f223=_0x4fa02c;this[_0x25f223(0x99)][_0x25f223(0x12f)](_0x3854d4['id'],_0x3854d4[_0x25f223(0x119)]?JSON['parse'](_0x3854d4[_0x25f223(0x119)]):null,{'fromCollab':!0x0});});}[_0x3161ce(0x9a)](){const _0x395918=_0x3161ce;var _0x15ef93;this['_status$'][_0x395918(0xd4)](_0x395918(0xc2)),(_0x15ef93=this['_commandDisposable'])==null||_0x15ef93[_0x395918(0xd9)]();}['_handleOnline'](){const _0x5d6eee=_0x3161ce;this[_0x5d6eee(0x120)]['next'](_0x5d6eee(0xa6)),this[_0x5d6eee(0x13d)]();}};N=Y([_(0x2,_0x2b6132),_(0x3,_0x14252a(L)),_(0x4,_0x5327ed)],N);function Le(){const _0x376963=_0x3161ce,_0x20417d=_0x2e8a9e(S),_0x16948f=_0x2e8a9e(_0x3f7773),_0x4798e0=_0x76447(()=>_0x16948f['getCurrentTypeOfUnit$'](_0x3d3727[_0x376963(0xe1)]),void 0x0,!0x1,[]),[_0x38307f,_0x552d78]=_0x3039b2(null),[_0x5e7b9f,_0x51d446]=_0x3039b2(c['IDLE']),_0x1fce8b=_0x2753f6(null);return _0x4dcff2(()=>(_0x4798e0&&_0x20417d[_0x376963(0xf2)](_0x4798e0[_0x376963(0xb1)]())[_0x376963(0x109)](_0x17a83c=>{const _0x396c47=_0x376963;_0x552d78(_0x17a83c),_0x1fce8b[_0x396c47(0x135)]=_0x17a83c['status$'][_0x396c47(0xf8)](_0x438d08=>{_0x51d446(_0x438d08);});}),()=>{const _0x5d0275=_0x376963;var _0x1f9964;(_0x1f9964=_0x1fce8b[_0x5d0275(0x135)])==null||_0x1f9964['unsubscribe'](),_0x1fce8b[_0x5d0275(0x135)]=null;}),[_0x4798e0,_0x20417d]),_0x38307f?_0x525ba2(_0x3fbb2d,{'align':_0x376963(0xcc),'disabled':_0x5e7b9f===c[_0x376963(0xe4)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x525ba2(Re,{'status':_0x5e7b9f,'coordinator':_0x38307f}),'children':_0x525ba2(_0x376963(0xee),{'className':_0x5ab19b(_0x376963(0xde),{'univer-cursor-not-allowed':_0x5e7b9f===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5e7b9f!==c['OFFLINE']}),'type':'button','children':_0x525ba2(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2abddc){const _0x3bda20=_0x3161ce,{status:_0x245e60,coordinator:_0x39ee81}=_0x2abddc;switch(_0x245e60){case c[_0x3bda20(0xd1)]:return _0x525ba2($e,{'coordinator':_0x39ee81});case c['FOLLOWING']:return _0x525ba2(xe,{'coordinator':_0x39ee81});case c[_0x3bda20(0x11f)]:return _0x525ba2(Pe,{'coordinator':_0x39ee81});case c[_0x3bda20(0xe4)]:return _0x525ba2(Te,{});case c[_0x3bda20(0x11a)]:return _0x525ba2(Ae,{'coordinator':_0x39ee81});default:return null;}}function $e(_0xd84d8e){const _0x5cf4fb=_0x3161ce,{coordinator:_0x2eb979}=_0xd84d8e;return _0x40011d(_0x52ab07,{'children':[_0x525ba2(_0x5cf4fb(0x13b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5cf4fb(0x111)}),_0x525ba2(_0x4174df,{'onClick':()=>_0x2eb979[_0x5cf4fb(0xd0)](),'children':_0x5cf4fb(0x12c)})]});}function xe(_0x3774cc){const _0x11dd0f=_0x3161ce,{coordinator:_0x1e52e8}=_0x3774cc;return _0x40011d(_0x52ab07,{'children':[_0x525ba2('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x525ba2(_0x4174df,{'onClick':()=>_0x1e52e8[_0x11dd0f(0x137)](),'children':_0x11dd0f(0x12e)})]});}function Pe(_0x5b41d5){const _0x1f77f9=_0x3161ce,{coordinator:_0x591a8b}=_0x5b41d5;return _0x40011d(_0x52ab07,{'children':[_0x525ba2(_0x1f77f9(0x13b),{'className':_0x1f77f9(0xbb),'children':_0x1f77f9(0x107)}),_0x525ba2(_0x4174df,{'variant':_0x1f77f9(0xa3),'onClick':()=>_0x591a8b[_0x1f77f9(0x98)](),'children':_0x1f77f9(0xa9)})]});}function Ae(_0x4211dc){const _0x5947f6=_0x3161ce,{coordinator:_0x5ede1c}=_0x4211dc;return _0x40011d(_0x52ab07,{'children':[_0x525ba2(_0x5947f6(0x13b),{'className':_0x5947f6(0xbb),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x525ba2(_0x4174df,{'variant':_0x5947f6(0xb6),'onClick':()=>_0x5ede1c[_0x5947f6(0x141)](),'children':_0x5947f6(0xba)})]});}function Te(){const _0xee815f=_0x3161ce;return _0x525ba2(_0x52ab07,{'children':_0xee815f(0x138)});}var Fe=Object[_0x3161ce(0x106)],He=(_0x1ed413,_0x203ac8,_0x103d15,_0x2905bc)=>{const _0xd58940=_0x3161ce;for(var _0x1c1aa0=_0x2905bc>0x1?void 0x0:_0x2905bc?Fe(_0x203ac8,_0x103d15):_0x203ac8,_0x3ccc44=_0x1ed413[_0xd58940(0xe7)]-0x1,_0x4ac5ae;_0x3ccc44>=0x0;_0x3ccc44--)(_0x4ac5ae=_0x1ed413[_0x3ccc44])&&(_0x1c1aa0=_0x4ac5ae(_0x1c1aa0)||_0x1c1aa0);return _0x1c1aa0;},A=(_0x42a870,_0x377299)=>(_0x5a721d,_0x24170e)=>_0x377299(_0x5a721d,_0x24170e,_0x42a870);let m=class extends _0x38683d{constructor(_0x5d6aca,_0x5a7d7c){const _0x58aaae=_0x3161ce;super(),this[_0x58aaae(0xcf)]=_0x5d6aca,this['_uiPartsService']=_0x5a7d7c,this[_0x58aaae(0xfc)]();}[_0x3161ce(0xfc)](){const _0x570384=_0x3161ce;this[_0x570384(0xea)](this[_0x570384(0x9d)][_0x570384(0x140)](_0x5f0230['HEADER_MENU'],()=>_0x4c8d2a(Le,this[_0x570384(0xcf)])));}};m=He([A(0x0,_0x14252a(_0x5e11ad)),A(0x1,_0x3fa8c9)],m);const ye=_0x3161ce(0x114),T={};function _0x5432(_0x567e3e,_0x13d1f1){_0x567e3e=_0x567e3e-0x98;const _0x8a2f9f=_0x8a2f();let _0x543227=_0x8a2f9f[_0x567e3e];return _0x543227;}var Ue=Object[_0x3161ce(0x106)],Ve=(_0x4e7c04,_0x427ddb,_0x3773c5,_0x30a4b5)=>{const _0x12405c=_0x3161ce;for(var _0x3719d8=_0x30a4b5>0x1?void 0x0:_0x30a4b5?Ue(_0x427ddb,_0x3773c5):_0x427ddb,_0x26e630=_0x4e7c04[_0x12405c(0xe7)]-0x1,_0x4f12af;_0x26e630>=0x0;_0x26e630--)(_0x4f12af=_0x4e7c04[_0x26e630])&&(_0x3719d8=_0x4f12af(_0x3719d8)||_0x3719d8);return _0x3719d8;},je=(_0x2e2cd5,_0x3f59e2)=>(_0x179311,_0x9768d9)=>_0x3f59e2(_0x179311,_0x9768d9,_0x2e2cd5);let I=class extends _0x38683d{constructor(_0x1cb9cb){const _0x1576ec=_0x3161ce;super(),this[_0x1576ec(0xa5)]=_0x1cb9cb,this['_init']();}[_0x3161ce(0x12a)](){[_0xefd7a1['id'],_0x592fec['id'],_0x5a80bb['id']]['forEach'](_0x292b69=>{const _0x154265=_0x5432;this[_0x154265(0xea)](this['_liveShareService'][_0x154265(0xff)](_0x292b69));});}};I=Ve([je(0x0,_0x14252a(L))],I);var Me=Object[_0x3161ce(0xc9)],ke=Object[_0x3161ce(0x106)],Ge=(_0x2d9178,_0x6b847c,_0x32ae1f)=>_0x6b847c in _0x2d9178?Me(_0x2d9178,_0x6b847c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32ae1f}):_0x2d9178[_0x6b847c]=_0x32ae1f,We=(_0x10d86a,_0x28f65c,_0x11760,_0x2482b4)=>{const _0x590840=_0x3161ce;for(var _0xfc1d8f=_0x2482b4>0x1?void 0x0:_0x2482b4?ke(_0x28f65c,_0x11760):_0x28f65c,_0x146da7=_0x10d86a[_0x590840(0xe7)]-0x1,_0x417961;_0x146da7>=0x0;_0x146da7--)(_0x417961=_0x10d86a[_0x146da7])&&(_0xfc1d8f=_0x417961(_0xfc1d8f)||_0xfc1d8f);return _0xfc1d8f;},F=(_0x82643e,_0x175300)=>(_0xde8b07,_0x4bd07e)=>_0x175300(_0xde8b07,_0x4bd07e,_0x82643e),B=(_0x21eb43,_0x4caa17,_0x137747)=>Ge(_0x21eb43,typeof _0x4caa17!='symbol'?_0x4caa17+'':_0x4caa17,_0x137747);const Ye=_0x3161ce(0x129);let b=class extends _0x1104c7{constructor(_0xbbf878=T,_0x160915,_0x5424a4){const _0x2b0204=_0x3161ce;super(),this[_0x2b0204(0x10d)]=_0xbbf878,this[_0x2b0204(0xcf)]=_0x160915,this[_0x2b0204(0xce)]=_0x5424a4;const {..._0x57892d}=_0x204de3({},T,this[_0x2b0204(0x10d)]);this[_0x2b0204(0xce)][_0x2b0204(0x132)](ye,_0x57892d);}[_0x3161ce(0xac)](){const _0x20f91a=_0x3161ce;_0x149c15(this[_0x20f91a(0xcf)],_0x2f3879([[L],[S],[I],[m]],this[_0x20f91a(0x10d)][_0x20f91a(0xed)])),_0xcdf2ee(this[_0x20f91a(0xcf)],[[I]]);}[_0x3161ce(0x13f)](){const _0x499f0d=_0x3161ce;_0xcdf2ee(this[_0x499f0d(0xcf)],[[m]]);}};B(b,_0x3161ce(0x11d),_0x3d3727[_0x3161ce(0x115)]),B(b,'pluginName',Ye),b=We([_0x10d5a5(_0x145b3d),F(0x1,_0x14252a(_0x5e11ad)),F(0x2,_0x2b6132)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
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 _0x3a64e1=_0x3aa3;(function(_0x217ef9,_0x380c9d){const _0x367b1a=_0x3aa3,_0x251386=_0x217ef9();while(!![]){try{const _0x466578=parseInt(_0x367b1a(0xe9))/0x1*(parseInt(_0x367b1a(0xe2))/0x2)+parseInt(_0x367b1a(0xe5))/0x3+-parseInt(_0x367b1a(0xec))/0x4+-parseInt(_0x367b1a(0xdb))/0x5*(parseInt(_0x367b1a(0xf0))/0x6)+-parseInt(_0x367b1a(0xd6))/0x7*(parseInt(_0x367b1a(0xe8))/0x8)+parseInt(_0x367b1a(0xeb))/0x9*(-parseInt(_0x367b1a(0xd5))/0xa)+parseInt(_0x367b1a(0xda))/0xb*(parseInt(_0x367b1a(0xdf))/0xc);if(_0x466578===_0x380c9d)break;else _0x251386['push'](_0x251386['shift']());}catch(_0x29cfe8){_0x251386['push'](_0x251386['shift']());}}}(_0x18c6,0xae809));function _0x18c6(){const _0x2b7caa=['32MnGqlm','1160363MXJFwo','tryStartPresenting','9BNmdbE','4318908INMSri','UNIVER_SHEET','get','stopFollowing','119628UiBVvD','stopPresenting','getCurrentUnitOfType','getLiveShareCoordinatorSync','6419480YFYnrZ','1077027HOEJpD','getUnitId','_liveShareController','_injector','978351oukNtC','5TYXMRk','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','defineProperty','startFollowing','192ElykdL','No\x20active\x20workbook\x20found.','extend','2XaInUY','_initialize','getStatus','1465197BFGXFF','symbol','IDLE'];_0x18c6=function(){return _0x2b7caa;};return _0x18c6();}var l=Object[_0x3a64e1(0xdd)],w=(_0x1fbb24,_0x30f657,_0x561ddc)=>_0x30f657 in _0x1fbb24?l(_0x1fbb24,_0x30f657,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x561ddc}):_0x1fbb24[_0x30f657]=_0x561ddc,v=(_0x10fbf7,_0x253066,_0x7a933e)=>w(_0x10fbf7,typeof _0x253066!=_0x3a64e1(0xe6)?_0x253066+'':_0x253066,_0x7a933e);function _0x3aa3(_0x4020b9,_0x309383){_0x4020b9=_0x4020b9-0xd2;const _0x18c668=_0x18c6();let _0x3aa371=_0x18c668[_0x4020b9];return _0x3aa371;}import{LiveShareController as _0x57bf1b,LiveShareStatus as _0x4e7f8e}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x4db51e,UniverInstanceType as _0x12eead}from'@univerjs/core';import{FUniver as _0x1e722f,FEnum as _0x1fe8a2}from'@univerjs/core/facade';class g extends _0x1e722f{constructor(){const _0x2b193d=_0x3a64e1;super(...arguments),v(this,_0x2b193d(0xd8));}[_0x3a64e1(0xe3)](_0x4eb906){const _0x5f5b75=_0x3a64e1;this[_0x5f5b75(0xd8)]=_0x4eb906[_0x5f5b75(0xee)](_0x57bf1b);}['getLiveShareStatus'](){const _0xad5af7=_0x3a64e1;var _0x2511db;const _0xb6f987=this['_injector'][_0xad5af7(0xee)](_0x4db51e)[_0xad5af7(0xd3)](_0x12eead[_0xad5af7(0xed)]);if(!_0xb6f987)throw new Error('No\x20active\x20workbook\x20found.');const _0x51a1c7=_0xb6f987[_0xad5af7(0xd7)](),_0x489d49=this[_0xad5af7(0xd8)][_0xad5af7(0xd4)](_0x51a1c7);return(_0x2511db=_0x489d49==null?void 0x0:_0x489d49[_0xad5af7(0xe4)]())!=null?_0x2511db:_0x4e7f8e[_0xad5af7(0xe7)];}['startFollowing'](){const _0x255760=_0x3a64e1,_0xd02ba7=this[_0x255760(0xd9)][_0x255760(0xee)](_0x4db51e)[_0x255760(0xd3)](_0x12eead['UNIVER_SHEET']);if(!_0xd02ba7)throw new Error(_0x255760(0xe0));const _0x61393f=_0xd02ba7[_0x255760(0xd7)](),_0xe7866a=this[_0x255760(0xd8)]['getLiveShareCoordinatorSync'](_0x61393f);if(!_0xe7866a)throw new Error(_0x255760(0xdc));_0xe7866a[_0x255760(0xde)]();}[_0x3a64e1(0xef)](){const _0x2550b1=_0x3a64e1,_0x477671=this[_0x2550b1(0xd9)][_0x2550b1(0xee)](_0x4db51e)['getCurrentUnitOfType'](_0x12eead['UNIVER_SHEET']);if(!_0x477671)throw new Error('No\x20active\x20workbook\x20found.');const _0x1d7d85=_0x477671[_0x2550b1(0xd7)](),_0x3ec5b9=this[_0x2550b1(0xd8)][_0x2550b1(0xd4)](_0x1d7d85);if(!_0x3ec5b9)throw new Error(_0x2550b1(0xdc));_0x3ec5b9[_0x2550b1(0xef)]();}['startPresenting'](){const _0x3a6557=_0x3a64e1,_0x3590c5=this[_0x3a6557(0xd9)][_0x3a6557(0xee)](_0x4db51e)[_0x3a6557(0xd3)](_0x12eead[_0x3a6557(0xed)]);if(!_0x3590c5)throw new Error(_0x3a6557(0xe0));const _0x5a2cf9=_0x3590c5['getUnitId'](),_0x3b1cd7=this[_0x3a6557(0xd8)]['getLiveShareCoordinatorSync'](_0x5a2cf9);if(!_0x3b1cd7)throw new Error(_0x3a6557(0xdc));_0x3b1cd7[_0x3a6557(0xea)]();}[_0x3a64e1(0xd2)](){const _0x1074ba=_0x3a64e1,_0x32368b=this[_0x1074ba(0xd9)][_0x1074ba(0xee)](_0x4db51e)[_0x1074ba(0xd3)](_0x12eead[_0x1074ba(0xed)]);if(!_0x32368b)throw new Error(_0x1074ba(0xe0));const _0x3869cc=_0x32368b[_0x1074ba(0xd7)](),_0x2698e6=this[_0x1074ba(0xd8)]['getLiveShareCoordinatorSync'](_0x3869cc);if(!_0x2698e6)throw new Error(_0x1074ba(0xdc));_0x2698e6[_0x1074ba(0xd2)]();}}_0x1e722f['extend'](g);class f extends _0x1fe8a2{get['LiveShareStatusEnum'](){return _0x4e7f8e;}}_0x1fe8a2[_0x3a64e1(0xe1)](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 _0x3161ce=_0x5432;(function(_0xe9e216,_0x499a4b){const _0x2cd15d=_0x5432,_0x5f2cb6=_0xe9e216();while(!![]){try{const _0x507ac7=-parseInt(_0x2cd15d(0x117))/0x1*(parseInt(_0x2cd15d(0xbe))/0x2)+-parseInt(_0x2cd15d(0xf5))/0x3*(-parseInt(_0x2cd15d(0xc6))/0x4)+-parseInt(_0x2cd15d(0xec))/0x5+parseInt(_0x2cd15d(0xd3))/0x6+-parseInt(_0x2cd15d(0xfb))/0x7*(-parseInt(_0x2cd15d(0xf9))/0x8)+-parseInt(_0x2cd15d(0x122))/0x9*(parseInt(_0x2cd15d(0xf7))/0xa)+-parseInt(_0x2cd15d(0xab))/0xb*(-parseInt(_0x2cd15d(0x116))/0xc);if(_0x507ac7===_0x499a4b)break;else _0x5f2cb6['push'](_0x5f2cb6['shift']());}catch(_0x30b8b4){_0x5f2cb6['push'](_0x5f2cb6['shift']());}}}(_0x8a2f,0x26dfa));var J=Object[_0x3161ce(0xc9)],K=(_0x3b3c27,_0x63425f,_0x32df1a)=>_0x63425f in _0x3b3c27?J(_0x3b3c27,_0x63425f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32df1a}):_0x3b3c27[_0x63425f]=_0x32df1a,u=(_0x247481,_0x5cbac4,_0x55545c)=>K(_0x247481,typeof _0x5cbac4!=_0x3161ce(0xaf)?_0x5cbac4+'':_0x5cbac4,_0x55545c);import{Disposable as _0x38683d,toDisposable as _0x145942,IUniverInstanceService as _0x3f7773,Inject as _0x14252a,Injector as _0x5e11ad,IConfigService as _0x2b6132,ICommandService as _0x5327ed,RxDisposable as _0x2c7418,UniverInstanceType as _0x3d3727,DisposableCollection as _0x274dd9,CommandType as _0x3db63d,DependentOn as _0x10d5a5,Plugin as _0x1104c7,merge as _0x204de3,registerDependencies as _0x149c15,mergeOverrideWithDependencies as _0x2f3879,touchDependencies as _0xcdf2ee}from'@univerjs/core';import{useDependency as _0x2e8a9e,useObservable as _0x76447,IUIPartsService as _0x3fa8c9,BuiltInUIPart as _0x5f0230,connectInjector as _0x4c8d2a}from'@univerjs/ui';import{jsx as _0x525ba2,jsxs as _0x40011d,Fragment as _0x52ab07}from'react/jsx-runtime';import{Dropdown as _0x3fbb2d,clsx as _0x5ab19b,Button as _0x4174df}from'@univerjs/design';import{useRef as _0x2753f6,createElement as _0x5e5e58,forwardRef as _0x1a7ba8,useState as _0x3039b2,useEffect as _0x4dcff2}from'react';import{CollaborationEvent as _0x1c8be3,parseProtocolChangeset as _0x44e6c4}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x383e89,SessionStatus as _0x1b3f3b,UniverCollaborationClientPlugin as _0x145b3d}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x33dc4d,SetWorksheetActiveOperation as _0x5a80bb}from'@univerjs/sheets';import{BehaviorSubject as _0x4ab38a,Subject as _0x104484}from'rxjs';import{takeUntil as _0x5e9ba,throttleTime as _0x496b70}from'rxjs/operators';import{SetZoomRatioOperation as _0xefd7a1,SetScrollOperation as _0x592fec}from'@univerjs/sheets-ui';function k({ref:_0x2d4af4,..._0x3b49ca}){const _0x45878c=_0x3161ce,{icon:_0x458afc,id:_0x5e20ab,className:_0x3598fc,extend:_0x3ba1cf,..._0x401adf}=_0x3b49ca,_0x4496b0=(_0x45878c(0xbf)+_0x5e20ab+'\x20'+(_0x3598fc||''))[_0x45878c(0xb4)](),_0x42a0cb=_0x2753f6('_'+Oe());return G(_0x458afc,''+_0x5e20ab,{'defIds':_0x458afc[_0x45878c(0x11e)],'idSuffix':_0x42a0cb['current']},{'ref':_0x2d4af4,'className':_0x4496b0,..._0x401adf},_0x3ba1cf);}function G(_0x406940,_0x158976,_0x426cbb,_0x5bf2d5,_0x23ed99){const _0x17347d=_0x3161ce;return _0x5e5e58(_0x406940[_0x17347d(0x108)],{'key':_0x158976,...be(_0x406940,_0x426cbb,_0x23ed99),..._0x5bf2d5},(Ee(_0x406940,_0x426cbb)[_0x17347d(0x124)]||[])['map']((_0x205edb,_0x493923)=>G(_0x205edb,_0x158976+'-'+_0x406940[_0x17347d(0x108)]+'-'+_0x493923,_0x426cbb,void 0x0,_0x23ed99)));}function be(_0x5b1ba0,_0x1e16d0,_0x5d9f5e){const _0x5bd510=_0x3161ce,_0x418bc5={..._0x5b1ba0[_0x5bd510(0xb0)]};_0x5d9f5e!=null&&_0x5d9f5e[_0x5bd510(0xa4)]&&_0x418bc5[_0x5bd510(0xe3)]===_0x5bd510(0xa4)&&(_0x418bc5[_0x5bd510(0xe3)]=_0x5d9f5e['colorChannel1']),_0x5b1ba0[_0x5bd510(0x108)]===_0x5bd510(0xf1)&&_0x418bc5['id']&&(_0x418bc5['id']=_0x418bc5['id']+_0x1e16d0[_0x5bd510(0xcb)]),Object[_0x5bd510(0xeb)](_0x418bc5)[_0x5bd510(0xe6)](([_0x39f393,_0x43a80a])=>{const _0x57ed7a=_0x5bd510;_0x39f393===_0x57ed7a(0xf1)&&typeof _0x43a80a==_0x57ed7a(0xb3)&&(_0x418bc5[_0x39f393]=_0x43a80a[_0x57ed7a(0x133)](/url\(#(.*)\)/,_0x57ed7a(0x101)+_0x1e16d0[_0x57ed7a(0xcb)]+')'));});const {defIds:_0xeeb102}=_0x1e16d0;return!_0xeeb102||_0xeeb102[_0x5bd510(0xe7)]===0x0||(_0x5b1ba0[_0x5bd510(0x108)]==='use'&&_0x418bc5[_0x5bd510(0xc4)]&&(_0x418bc5[_0x5bd510(0xc4)]=_0x418bc5[_0x5bd510(0xc4)]+_0x1e16d0[_0x5bd510(0xcb)]),Object[_0x5bd510(0xeb)](_0x418bc5)['forEach'](([_0x2bf6e9,_0x239423])=>{const _0x5ee2e3=_0x5bd510;typeof _0x239423==_0x5ee2e3(0xb3)&&(_0x418bc5[_0x2bf6e9]=_0x239423[_0x5ee2e3(0x133)](/url\(#(.*)\)/,_0x5ee2e3(0x101)+_0x1e16d0[_0x5ee2e3(0xcb)]+')'));})),_0x418bc5;}function Ee(_0x1a5601,_0xfc905a){const _0x37f846=_0x3161ce;var _0x3ca25d;const {defIds:_0x2d6e11}=_0xfc905a;return!_0x2d6e11||_0x2d6e11['length']===0x0?_0x1a5601:_0x1a5601[_0x37f846(0x108)]===_0x37f846(0xef)&&((_0x3ca25d=_0x1a5601[_0x37f846(0x124)])!=null&&_0x3ca25d[_0x37f846(0xe7)])?{..._0x1a5601,'children':_0x1a5601['children'][_0x37f846(0x11b)](_0x2a2fdd=>typeof _0x2a2fdd[_0x37f846(0xb0)]['id']=='string'&&_0x2d6e11&&_0x2d6e11[_0x37f846(0xfa)](_0x2a2fdd[_0x37f846(0xb0)]['id'])?{..._0x2a2fdd,'attrs':{..._0x2a2fdd['attrs'],'id':_0x2a2fdd['attrs']['id']+_0xfc905a['idSuffix']}}:_0x2a2fdd)}:_0x1a5601;}function Oe(){const _0x1f12c3=_0x3161ce;return Math['random']()[_0x1f12c3(0xad)](0x24)['substring'](0x2,0x8);}k[_0x3161ce(0xe9)]=_0x3161ce(0xf0);const we={'tag':_0x3161ce(0xc0),'attrs':{'xmlns':_0x3161ce(0x13e),'fill':_0x3161ce(0xdd),'viewBox':_0x3161ce(0x110),'width':_0x3161ce(0x123),'height':_0x3161ce(0x123)},'children':[{'tag':_0x3161ce(0x139),'attrs':{'fill':_0x3161ce(0x12b),'d':_0x3161ce(0x105)}},{'tag':'path','attrs':{'fill':_0x3161ce(0x12b),'d':_0x3161ce(0xa2),'fillRule':_0x3161ce(0xdc),'clipRule':_0x3161ce(0xdc)}}]},W=_0x1a7ba8(function(_0x12ee0d,_0x7b928a){const _0x32c9ee=_0x3161ce;return _0x5e5e58(k,Object[_0x32c9ee(0x134)]({},_0x12ee0d,{'id':_0x32c9ee(0x10c),'ref':_0x7b928a,'icon':we}));});W[_0x3161ce(0xe9)]='LiveShareIcon';function _0x8a2f(){const _0x398be8=['_handleTerminate','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','text','colorChannel1','_liveShareService','idle','presenting','LIVESHARE_NEW_HOST','Start\x20following','operations','724361AUozCJ','onStarting','toString','_handleOperation','symbol','attrs','getUnitId','clear','string','trim','LIVESHARE_REQUEST_HOST','default','complete','_stopPresenting','_commandDisposable','Stop\x20presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','getInitialStates','_startFollowing','2DOwmlt','univerjs-icon\x20univerjs-icon-','svg','mutations','offline','_entities','xlink:href','init','12xgGBEI','_collabSession','_presenter','defineProperty','FOLLOWING','idSuffix','end','_collabSessionService','_configService','_injector','tryStartPresenting','IDLE','set','715050YjcYFt','next','following','_univerInstanceService','LIVESHARE_TERMINATE','getLiveShareCoordinatorSync','dispose','stringify','shouldShareOperation','evenodd','none','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','presenter','_status','UNIVER_SHEET','_startLiveShareCoordinator','fill','OFFLINE','_handleNewChangeSets','forEach','length','not-following','displayName','disposeWithMe','entries','646655nksKQA','override','button','defs','UniverIcon','mask','getLiveShareCoordinator','LIVESHARE_OPERATION','unitId','51999RvDGbx','registerInitialStateReporter','210QSNMya','subscribe','317256RLTpbM','includes','42rgUQmW','_mountLiveShare','send','getStatus','registerSharedOperation','_beIdle','url(#$1','SAME_OPERATION_SHARE_INTERVAL','_unitID','add','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','getOwnPropertyDescriptor','You\x27re\x20not\x20following\x20the\x20presenter','tag','then','data','get','live-share-icon','_config','_startPresenting','requireSession','0\x200\x2017\x2017','Present\x20this\x20document','delete','pipe','live-share.config','UNIVER_UNKNOWN','36pzJEsh','309271NRrfUu','event$','params','PRESENTING','map','_handleNewHost','type','defIds','NOT_FOLLOWING','_status$','_sharedOperations','3789BtNkGm','1em','children','LIVESHARE_FETCH_OPERATIONS','getConfig','_reporters','getValue','UNIVER_LIVE_SHARE_PLUGIN','_init','currentColor','Start','_handleOnline','Stop\x20following','executeCommand','getTypeOfUnitAdded$','ONLINE','setConfig','replace','assign','current','getMemberID','stopFollowing','You\x27are\x20offline.','path','_stopFollowing','div','NEW_CHANGESETS','_fetchOperations','http://www.w3.org/2000/svg','onRendered','registerComponent','stopPresenting','startFollowing','_commandService','_handleOffline','status$','values','_uiPartsService','dispose$','OPERATION','has'];_0x8a2f=function(){return _0x398be8;};return _0x8a2f();}class L extends _0x38683d{constructor(){const _0x1c4487=_0x3161ce;super(...arguments),u(this,_0x1c4487(0x121),new Set()),u(this,'_reporters',new Set());}[_0x3161ce(0xff)](_0x162192){const _0xc0a628=_0x3161ce;return this['_sharedOperations'][_0xc0a628(0x104)](_0x162192),_0x145942(()=>this[_0xc0a628(0x121)]['delete'](_0x162192));}[_0x3161ce(0xf6)](_0x2347e5){const _0x76d00=_0x3161ce;return this['_reporters'][_0x76d00(0x104)](_0x2347e5),_0x145942(()=>this[_0x76d00(0x127)][_0x76d00(0x112)](_0x2347e5));}[_0x3161ce(0xdb)](_0x3a5ab1){const _0x3218b1=_0x3161ce;return this['_sharedOperations'][_0x3218b1(0xa0)](_0x3a5ab1);}[_0x3161ce(0xbc)](_0x63ba77){const _0x1a5131=_0x3161ce;return Array['from'](this['_reporters'])[_0x1a5131(0x11b)](_0x36dc6d=>_0x36dc6d(_0x63ba77));}}var Ne=Object[_0x3161ce(0x106)],Y=(_0xa22727,_0x2a249d,_0x66f8b7,_0x2502c3)=>{const _0x141347=_0x3161ce;for(var _0x376df6=_0x2502c3>0x1?void 0x0:_0x2502c3?Ne(_0x2a249d,_0x66f8b7):_0x2a249d,_0x49605b=_0xa22727[_0x141347(0xe7)]-0x1,_0x6ed335;_0x49605b>=0x0;_0x49605b--)(_0x6ed335=_0xa22727[_0x49605b])&&(_0x376df6=_0x6ed335(_0x376df6)||_0x376df6);return _0x376df6;},_=(_0x41fccc,_0x132676)=>(_0x4bf7fd,_0x479861)=>_0x132676(_0x4bf7fd,_0x479861,_0x41fccc);let S=class extends _0x2c7418{constructor(_0x1d8880,_0x4056e7,_0x5f2174){const _0x33897e=_0x3161ce;super(),u(this,_0x33897e(0xc3),new Map()),(this[_0x33897e(0xd6)]=_0x1d8880,this[_0x33897e(0xcf)]=_0x4056e7,this[_0x33897e(0xcd)]=_0x5f2174,this[_0x33897e(0x12a)]());}async['getLiveShareCoordinator'](_0x2d99bd){const _0x45b2a8=_0x3161ce;return this[_0x45b2a8(0xc3)]['has'](_0x2d99bd)||await this['_startLiveShareCoordinator'](_0x2d99bd),this[_0x45b2a8(0xc3)][_0x45b2a8(0x10b)](_0x2d99bd);}[_0x3161ce(0xd8)](_0x5da28a){const _0x52841c=_0x3161ce;var _0x5e24b0;return(_0x5e24b0=this[_0x52841c(0xc3)][_0x52841c(0x10b)](_0x5da28a))!=null?_0x5e24b0:null;}[_0x3161ce(0x12a)](){const _0x544ac1=_0x3161ce;this[_0x544ac1(0xd6)][_0x544ac1(0x130)](_0x3d3727[_0x544ac1(0xe1)])[_0x544ac1(0x113)](_0x5e9ba(this[_0x544ac1(0x9e)]))['subscribe'](async _0x552a4b=>{const _0x55622b=_0x544ac1,_0x145531=_0x552a4b['getUnitId']();this[_0x55622b(0xc3)][_0x55622b(0xa0)](_0x145531)||this[_0x55622b(0xe2)](_0x145531);}),this[_0x544ac1(0xd6)]['getTypeOfUnitDisposed$'](_0x3d3727[_0x544ac1(0xe1)])[_0x544ac1(0x113)](_0x5e9ba(this[_0x544ac1(0x9e)]))['subscribe'](_0x5cec92=>{const _0x2793c1=_0x544ac1,_0x18c72b=_0x5cec92['getUnitId'](),_0x3ab835=this['_entities'][_0x2793c1(0x10b)](_0x18c72b);_0x3ab835==null||_0x3ab835[_0x2793c1(0xd9)]();});}async[_0x3161ce(0xe2)](_0x2ff801){const _0x5214b7=_0x3161ce,_0x18a8ba=await this['_collabSessionService'][_0x5214b7(0x10f)](_0x2ff801),_0x5f5c3c=this[_0x5214b7(0xcf)]['createInstance'](N,_0x2ff801,_0x18a8ba);return _0x5f5c3c[_0x5214b7(0xc5)](),this[_0x5214b7(0xc3)][_0x5214b7(0xd2)](_0x2ff801,_0x5f5c3c),_0x5f5c3c;}};S=Y([_(0x0,_0x3f7773),_(0x1,_0x14252a(_0x5e11ad)),_(0x2,_0x14252a(_0x383e89))],S);var c=(_0x1405aa=>(_0x1405aa[_0x3161ce(0xe4)]=_0x3161ce(0xc2),_0x1405aa[_0x3161ce(0xd1)]=_0x3161ce(0xa6),_0x1405aa[_0x3161ce(0xca)]=_0x3161ce(0xd5),_0x1405aa[_0x3161ce(0x11f)]='not-following',_0x1405aa['PRESENTING']=_0x3161ce(0xa7),_0x1405aa))(c||{});const Ce=_0x3161ce(0x102),De=0xc8;let N=class extends _0x2c7418{constructor(_0x475055,_0x27523b,_0x4cd19f,_0x1c7a91,_0x58b56b){const _0x26120d=_0x3161ce;super(),u(this,'_status$',new _0x4ab38a(_0x26120d(0xa6))),u(this,_0x26120d(0x9b),this[_0x26120d(0x120)]['asObservable']()),u(this,'_init',!0x1),u(this,_0x26120d(0xb9),null),u(this,_0x26120d(0xc8),null),(this[_0x26120d(0x103)]=_0x475055,this[_0x26120d(0xc7)]=_0x27523b,this['_configService']=_0x4cd19f,this['_liveShareService']=_0x1c7a91,this[_0x26120d(0x99)]=_0x58b56b);}get['_status'](){const _0x37439b=_0x3161ce;return this['_status$'][_0x37439b(0x128)]();}[_0x3161ce(0xd9)](){const _0x4f56cc=_0x3161ce;var _0x1718ff;(_0x1718ff=this['_commandDisposable'])==null||_0x1718ff[_0x4f56cc(0xd9)](),this[_0x4f56cc(0x120)][_0x4f56cc(0xd4)](_0x4f56cc(0xa6)),this[_0x4f56cc(0x120)][_0x4f56cc(0xb7)]();}[_0x3161ce(0xfe)](){const _0x4923e0=_0x3161ce;return this[_0x4923e0(0xe0)];}[_0x3161ce(0xc5)](){const _0x2f9775=_0x3161ce;this[_0x2f9775(0x12a)]||(this[_0x2f9775(0x12a)]=!0x0,this[_0x2f9775(0xc7)]['sessionStatus$'][_0x2f9775(0x113)](_0x5e9ba(this[_0x2f9775(0x9e)]))['subscribe'](_0x5ab8ef=>{const _0x3301f5=_0x2f9775;switch(_0x5ab8ef){case _0x1b3f3b[_0x3301f5(0xe4)]:this[_0x3301f5(0x9a)]();break;case _0x1b3f3b[_0x3301f5(0x131)]:this[_0x3301f5(0x12d)]();break;}}),this[_0x2f9775(0xc7)][_0x2f9775(0x118)][_0x2f9775(0x113)](_0x5e9ba(this[_0x2f9775(0x9e)]))[_0x2f9775(0xf8)](_0x2bfdc5=>{const _0x3d0c52=_0x2f9775,{eventID:_0x5ae880}=_0x2bfdc5;switch(_0x5ae880){case _0x1c8be3[_0x3d0c52(0xa8)]:this['_handleNewHost'](_0x2bfdc5);break;case _0x1c8be3[_0x3d0c52(0xf3)]:this[_0x3d0c52(0xae)](_0x2bfdc5);break;case _0x1c8be3['LIVESHARE_TERMINATE']:this[_0x3d0c52(0xa1)]();break;case _0x1c8be3[_0x3d0c52(0x13c)]:this[_0x3d0c52(0xe5)](_0x2bfdc5);break;}}));}[_0x3161ce(0xd0)](){const _0x5178e5=_0x3161ce;this['_collabSession'][_0x5178e5(0xfd)]({'eventID':_0x1c8be3[_0x5178e5(0xb5)],'data':{'unitID':this[_0x5178e5(0x103)],'userID':this[_0x5178e5(0xc7)][_0x5178e5(0x136)]()}},this[_0x5178e5(0x103)]);}[_0x3161ce(0x141)](){const _0x2022bb=_0x3161ce;this[_0x2022bb(0xe0)]===_0x2022bb(0xa7)&&(this[_0x2022bb(0x120)]['next']('idle'),this[_0x2022bb(0xc7)][_0x2022bb(0xfd)]({'eventID':_0x1c8be3[_0x2022bb(0xd7)],'data':{'unitID':this['_unitID']}},this[_0x2022bb(0x103)]));}[_0x3161ce(0x98)](){const _0x2b9b04=_0x3161ce;this[_0x2b9b04(0xe0)]==='not-following'&&(this[_0x2b9b04(0x120)][_0x2b9b04(0xd4)](_0x2b9b04(0xd5)),this[_0x2b9b04(0xbd)]());}[_0x3161ce(0x137)](){const _0x4b9398=_0x3161ce;this[_0x4b9398(0xe0)]===_0x4b9398(0xd5)&&this[_0x4b9398(0x13a)]();}[_0x3161ce(0x11c)](_0x19be9a){const _0x141f26=_0x3161ce,{presenter:_0x548e36}=_0x19be9a[_0x141f26(0x10a)],_0x32cd5e=this[_0x141f26(0xc7)]['getMemberID']();this[_0x141f26(0xc8)]=_0x548e36,_0x548e36===_0x32cd5e?(this[_0x141f26(0x13a)](),this[_0x141f26(0x10e)]()):this['_status']!==_0x141f26(0xe8)&&(this['_stopPresenting'](),this[_0x141f26(0xbd)]());}[_0x3161ce(0x13d)](){const _0x3af3ba=_0x3161ce,_0x1cb094={'eventID':_0x1c8be3[_0x3af3ba(0x125)]};this['_collabSession']['send'](_0x1cb094,this['_unitID']);}[_0x3161ce(0xa1)](){const _0x27b875=_0x3161ce;this[_0x27b875(0xc8)]=null,this['_status']!==_0x27b875(0xa7)&&this[_0x27b875(0x100)]();}[_0x3161ce(0xe5)](_0x4d2222){const _0x3ba348=_0x3161ce;if(this[_0x3ba348(0xe0)]==='following'&&this[_0x3ba348(0xc8)]===_0x4d2222[_0x3ba348(0x10a)]['memberID']){const _0x10f8c3=_0x44e6c4(_0x4d2222['data'])[_0x3ba348(0xc1)]['reverse']()['find'](_0x2922b4=>_0x2922b4['id']===_0x33dc4d['id']);if(_0x10f8c3){const _0x20c598=_0x10f8c3[_0x3ba348(0x119)][_0x3ba348(0xf4)],_0x5b4268=_0x10f8c3[_0x3ba348(0x119)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x5a80bb['id'],{'unitId':_0x20c598,'subUnitId':_0x5b4268},{'fromCollab':!0x0});});}}}[_0x3161ce(0x10e)](){const _0x483c69=_0x3161ce;this[_0x483c69(0x120)][_0x483c69(0xd4)](_0x483c69(0xa7));const _0x417c7f=new Map(),_0x3944d1=this[_0x483c69(0xb9)]=new _0x274dd9();_0x3944d1[_0x483c69(0x104)](_0x145942(()=>{const _0x3a7038=_0x483c69;_0x417c7f[_0x3a7038(0xe6)](_0x59aec9=>_0x59aec9[_0x3a7038(0xb7)]()),_0x417c7f[_0x3a7038(0xb2)]();})),_0x3944d1[_0x483c69(0x104)](this[_0x483c69(0x99)]['onCommandExecuted'](_0x54775e=>{const _0x4a2a9e=_0x483c69;var _0x600c72;if(_0x54775e[_0x4a2a9e(0x11d)]!==_0x3db63d[_0x4a2a9e(0x9f)]||!this[_0x4a2a9e(0xa5)][_0x4a2a9e(0xdb)](_0x54775e['id']))return;const {id:_0x390027}=_0x54775e;let _0x20a213;_0x417c7f['has'](_0x390027)?_0x20a213=_0x417c7f['get'](_0x390027):(_0x20a213=new _0x104484(),_0x417c7f['set'](_0x390027,_0x20a213),_0x20a213[_0x4a2a9e(0x113)](_0x496b70((_0x600c72=this['_configService'][_0x4a2a9e(0x126)](Ce))!=null?_0x600c72:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x33a46e=>{const _0x26ca0e=_0x4a2a9e;this[_0x26ca0e(0xc7)]['send']({'eventID':_0x1c8be3[_0x26ca0e(0xf3)],'data':{'unitID':this[_0x26ca0e(0x103)],'operations':{[_0x33a46e['id']]:{'id':_0x33a46e['id'],'params':JSON['stringify'](_0x33a46e['params'])}}}},this[_0x26ca0e(0x103)]);})),_0x20a213[_0x4a2a9e(0xd4)](_0x54775e);})),this[_0x483c69(0xa5)][_0x483c69(0xbc)](this[_0x483c69(0x103)])[_0x483c69(0xe6)](_0xda8394=>this[_0x483c69(0xc7)][_0x483c69(0xfd)]({'eventID':_0x1c8be3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x483c69(0x103)],'operations':{[_0xda8394['id']]:{'id':_0xda8394['id'],'params':JSON[_0x483c69(0xda)](_0xda8394[_0x483c69(0x119)])}}}},this[_0x483c69(0x103)]));}[_0x3161ce(0xb8)](){const _0x3d1ce0=_0x3161ce;var _0x2d3082;this[_0x3d1ce0(0x120)]['next'](_0x3d1ce0(0xa6)),(_0x2d3082=this[_0x3d1ce0(0xb9)])==null||_0x2d3082[_0x3d1ce0(0xd9)](),this['_commandDisposable']=null;}[_0x3161ce(0xbd)](){const _0x291e30=_0x3161ce;var _0x2240fa;(_0x2240fa=this[_0x291e30(0xb9)])==null||_0x2240fa[_0x291e30(0xd9)](),this[_0x291e30(0x120)]['next'](_0x291e30(0xd5));}[_0x3161ce(0x100)](){const _0x3876d1=_0x3161ce;var _0x76b030;this[_0x3876d1(0x120)][_0x3876d1(0xd4)](_0x3876d1(0xa6)),(_0x76b030=this['_commandDisposable'])==null||_0x76b030['dispose'](),this[_0x3876d1(0xb9)]=null;}['_stopFollowing'](){const _0x4ccd24=_0x3161ce;var _0x367f51;this[_0x4ccd24(0x120)][_0x4ccd24(0xd4)](_0x4ccd24(0xe8)),(_0x367f51=this[_0x4ccd24(0xb9)])==null||_0x367f51['dispose']();}[_0x3161ce(0xae)](_0x576669){const _0x4fa02c=_0x3161ce;if([_0x4fa02c(0xa7),_0x4fa02c(0xe8),_0x4fa02c(0xc2)]['includes'](this[_0x4fa02c(0xe0)])||!_0x576669[_0x4fa02c(0x10a)][_0x4fa02c(0xdf)]||_0x576669['data'][_0x4fa02c(0xdf)]===this[_0x4fa02c(0xc7)][_0x4fa02c(0x136)]())return;this['_status']===_0x4fa02c(0xa6)&&this[_0x4fa02c(0xbd)]();const _0x478620=_0x576669[_0x4fa02c(0x10a)][_0x4fa02c(0xaa)];Object[_0x4fa02c(0x9c)](_0x478620)[_0x4fa02c(0xe6)](_0x3854d4=>{const _0x25f223=_0x4fa02c;this[_0x25f223(0x99)][_0x25f223(0x12f)](_0x3854d4['id'],_0x3854d4[_0x25f223(0x119)]?JSON['parse'](_0x3854d4[_0x25f223(0x119)]):null,{'fromCollab':!0x0});});}[_0x3161ce(0x9a)](){const _0x395918=_0x3161ce;var _0x15ef93;this['_status$'][_0x395918(0xd4)](_0x395918(0xc2)),(_0x15ef93=this['_commandDisposable'])==null||_0x15ef93[_0x395918(0xd9)]();}['_handleOnline'](){const _0x5d6eee=_0x3161ce;this[_0x5d6eee(0x120)]['next'](_0x5d6eee(0xa6)),this[_0x5d6eee(0x13d)]();}};N=Y([_(0x2,_0x2b6132),_(0x3,_0x14252a(L)),_(0x4,_0x5327ed)],N);function Le(){const _0x376963=_0x3161ce,_0x20417d=_0x2e8a9e(S),_0x16948f=_0x2e8a9e(_0x3f7773),_0x4798e0=_0x76447(()=>_0x16948f['getCurrentTypeOfUnit$'](_0x3d3727[_0x376963(0xe1)]),void 0x0,!0x1,[]),[_0x38307f,_0x552d78]=_0x3039b2(null),[_0x5e7b9f,_0x51d446]=_0x3039b2(c['IDLE']),_0x1fce8b=_0x2753f6(null);return _0x4dcff2(()=>(_0x4798e0&&_0x20417d[_0x376963(0xf2)](_0x4798e0[_0x376963(0xb1)]())[_0x376963(0x109)](_0x17a83c=>{const _0x396c47=_0x376963;_0x552d78(_0x17a83c),_0x1fce8b[_0x396c47(0x135)]=_0x17a83c['status$'][_0x396c47(0xf8)](_0x438d08=>{_0x51d446(_0x438d08);});}),()=>{const _0x5d0275=_0x376963;var _0x1f9964;(_0x1f9964=_0x1fce8b[_0x5d0275(0x135)])==null||_0x1f9964['unsubscribe'](),_0x1fce8b[_0x5d0275(0x135)]=null;}),[_0x4798e0,_0x20417d]),_0x38307f?_0x525ba2(_0x3fbb2d,{'align':_0x376963(0xcc),'disabled':_0x5e7b9f===c[_0x376963(0xe4)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x525ba2(Re,{'status':_0x5e7b9f,'coordinator':_0x38307f}),'children':_0x525ba2(_0x376963(0xee),{'className':_0x5ab19b(_0x376963(0xde),{'univer-cursor-not-allowed':_0x5e7b9f===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5e7b9f!==c['OFFLINE']}),'type':'button','children':_0x525ba2(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2abddc){const _0x3bda20=_0x3161ce,{status:_0x245e60,coordinator:_0x39ee81}=_0x2abddc;switch(_0x245e60){case c[_0x3bda20(0xd1)]:return _0x525ba2($e,{'coordinator':_0x39ee81});case c['FOLLOWING']:return _0x525ba2(xe,{'coordinator':_0x39ee81});case c[_0x3bda20(0x11f)]:return _0x525ba2(Pe,{'coordinator':_0x39ee81});case c[_0x3bda20(0xe4)]:return _0x525ba2(Te,{});case c[_0x3bda20(0x11a)]:return _0x525ba2(Ae,{'coordinator':_0x39ee81});default:return null;}}function $e(_0xd84d8e){const _0x5cf4fb=_0x3161ce,{coordinator:_0x2eb979}=_0xd84d8e;return _0x40011d(_0x52ab07,{'children':[_0x525ba2(_0x5cf4fb(0x13b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5cf4fb(0x111)}),_0x525ba2(_0x4174df,{'onClick':()=>_0x2eb979[_0x5cf4fb(0xd0)](),'children':_0x5cf4fb(0x12c)})]});}function xe(_0x3774cc){const _0x11dd0f=_0x3161ce,{coordinator:_0x1e52e8}=_0x3774cc;return _0x40011d(_0x52ab07,{'children':[_0x525ba2('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x525ba2(_0x4174df,{'onClick':()=>_0x1e52e8[_0x11dd0f(0x137)](),'children':_0x11dd0f(0x12e)})]});}function Pe(_0x5b41d5){const _0x1f77f9=_0x3161ce,{coordinator:_0x591a8b}=_0x5b41d5;return _0x40011d(_0x52ab07,{'children':[_0x525ba2(_0x1f77f9(0x13b),{'className':_0x1f77f9(0xbb),'children':_0x1f77f9(0x107)}),_0x525ba2(_0x4174df,{'variant':_0x1f77f9(0xa3),'onClick':()=>_0x591a8b[_0x1f77f9(0x98)](),'children':_0x1f77f9(0xa9)})]});}function Ae(_0x4211dc){const _0x5947f6=_0x3161ce,{coordinator:_0x5ede1c}=_0x4211dc;return _0x40011d(_0x52ab07,{'children':[_0x525ba2(_0x5947f6(0x13b),{'className':_0x5947f6(0xbb),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x525ba2(_0x4174df,{'variant':_0x5947f6(0xb6),'onClick':()=>_0x5ede1c[_0x5947f6(0x141)](),'children':_0x5947f6(0xba)})]});}function Te(){const _0xee815f=_0x3161ce;return _0x525ba2(_0x52ab07,{'children':_0xee815f(0x138)});}var Fe=Object[_0x3161ce(0x106)],He=(_0x1ed413,_0x203ac8,_0x103d15,_0x2905bc)=>{const _0xd58940=_0x3161ce;for(var _0x1c1aa0=_0x2905bc>0x1?void 0x0:_0x2905bc?Fe(_0x203ac8,_0x103d15):_0x203ac8,_0x3ccc44=_0x1ed413[_0xd58940(0xe7)]-0x1,_0x4ac5ae;_0x3ccc44>=0x0;_0x3ccc44--)(_0x4ac5ae=_0x1ed413[_0x3ccc44])&&(_0x1c1aa0=_0x4ac5ae(_0x1c1aa0)||_0x1c1aa0);return _0x1c1aa0;},A=(_0x42a870,_0x377299)=>(_0x5a721d,_0x24170e)=>_0x377299(_0x5a721d,_0x24170e,_0x42a870);let m=class extends _0x38683d{constructor(_0x5d6aca,_0x5a7d7c){const _0x58aaae=_0x3161ce;super(),this[_0x58aaae(0xcf)]=_0x5d6aca,this['_uiPartsService']=_0x5a7d7c,this[_0x58aaae(0xfc)]();}[_0x3161ce(0xfc)](){const _0x570384=_0x3161ce;this[_0x570384(0xea)](this[_0x570384(0x9d)][_0x570384(0x140)](_0x5f0230['HEADER_MENU'],()=>_0x4c8d2a(Le,this[_0x570384(0xcf)])));}};m=He([A(0x0,_0x14252a(_0x5e11ad)),A(0x1,_0x3fa8c9)],m);const ye=_0x3161ce(0x114),T={};function _0x5432(_0x567e3e,_0x13d1f1){_0x567e3e=_0x567e3e-0x98;const _0x8a2f9f=_0x8a2f();let _0x543227=_0x8a2f9f[_0x567e3e];return _0x543227;}var Ue=Object[_0x3161ce(0x106)],Ve=(_0x4e7c04,_0x427ddb,_0x3773c5,_0x30a4b5)=>{const _0x12405c=_0x3161ce;for(var _0x3719d8=_0x30a4b5>0x1?void 0x0:_0x30a4b5?Ue(_0x427ddb,_0x3773c5):_0x427ddb,_0x26e630=_0x4e7c04[_0x12405c(0xe7)]-0x1,_0x4f12af;_0x26e630>=0x0;_0x26e630--)(_0x4f12af=_0x4e7c04[_0x26e630])&&(_0x3719d8=_0x4f12af(_0x3719d8)||_0x3719d8);return _0x3719d8;},je=(_0x2e2cd5,_0x3f59e2)=>(_0x179311,_0x9768d9)=>_0x3f59e2(_0x179311,_0x9768d9,_0x2e2cd5);let I=class extends _0x38683d{constructor(_0x1cb9cb){const _0x1576ec=_0x3161ce;super(),this[_0x1576ec(0xa5)]=_0x1cb9cb,this['_init']();}[_0x3161ce(0x12a)](){[_0xefd7a1['id'],_0x592fec['id'],_0x5a80bb['id']]['forEach'](_0x292b69=>{const _0x154265=_0x5432;this[_0x154265(0xea)](this['_liveShareService'][_0x154265(0xff)](_0x292b69));});}};I=Ve([je(0x0,_0x14252a(L))],I);var Me=Object[_0x3161ce(0xc9)],ke=Object[_0x3161ce(0x106)],Ge=(_0x2d9178,_0x6b847c,_0x32ae1f)=>_0x6b847c in _0x2d9178?Me(_0x2d9178,_0x6b847c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32ae1f}):_0x2d9178[_0x6b847c]=_0x32ae1f,We=(_0x10d86a,_0x28f65c,_0x11760,_0x2482b4)=>{const _0x590840=_0x3161ce;for(var _0xfc1d8f=_0x2482b4>0x1?void 0x0:_0x2482b4?ke(_0x28f65c,_0x11760):_0x28f65c,_0x146da7=_0x10d86a[_0x590840(0xe7)]-0x1,_0x417961;_0x146da7>=0x0;_0x146da7--)(_0x417961=_0x10d86a[_0x146da7])&&(_0xfc1d8f=_0x417961(_0xfc1d8f)||_0xfc1d8f);return _0xfc1d8f;},F=(_0x82643e,_0x175300)=>(_0xde8b07,_0x4bd07e)=>_0x175300(_0xde8b07,_0x4bd07e,_0x82643e),B=(_0x21eb43,_0x4caa17,_0x137747)=>Ge(_0x21eb43,typeof _0x4caa17!='symbol'?_0x4caa17+'':_0x4caa17,_0x137747);const Ye=_0x3161ce(0x129);let b=class extends _0x1104c7{constructor(_0xbbf878=T,_0x160915,_0x5424a4){const _0x2b0204=_0x3161ce;super(),this[_0x2b0204(0x10d)]=_0xbbf878,this[_0x2b0204(0xcf)]=_0x160915,this[_0x2b0204(0xce)]=_0x5424a4;const {..._0x57892d}=_0x204de3({},T,this[_0x2b0204(0x10d)]);this[_0x2b0204(0xce)][_0x2b0204(0x132)](ye,_0x57892d);}[_0x3161ce(0xac)](){const _0x20f91a=_0x3161ce;_0x149c15(this[_0x20f91a(0xcf)],_0x2f3879([[L],[S],[I],[m]],this[_0x20f91a(0x10d)][_0x20f91a(0xed)])),_0xcdf2ee(this[_0x20f91a(0xcf)],[[I]]);}[_0x3161ce(0x13f)](){const _0x499f0d=_0x3161ce;_0xcdf2ee(this[_0x499f0d(0xcf)],[[m]]);}};B(b,_0x3161ce(0x11d),_0x3d3727[_0x3161ce(0x115)]),B(b,'pluginName',Ye),b=We([_0x10d5a5(_0x145b3d),F(0x1,_0x14252a(_0x5e11ad)),F(0x2,_0x2b6132)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
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(_0x48107a,_0x3afceb){const _0x1993da=_0x23e9,_0x3a0e13=_0x48107a();while(!![]){try{const _0x1ccbe7=parseInt(_0x1993da(0x13f))/0x1*(-parseInt(_0x1993da(0x157))/0x2)+-parseInt(_0x1993da(0x148))/0x3*(parseInt(_0x1993da(0x14a))/0x4)+-parseInt(_0x1993da(0x14f))/0x5+-parseInt(_0x1993da(0x161))/0x6*(parseInt(_0x1993da(0x145))/0x7)+parseInt(_0x1993da(0x15a))/0x8*(parseInt(_0x1993da(0x154))/0x9)+-parseInt(_0x1993da(0x162))/0xa+parseInt(_0x1993da(0x158))/0xb;if(_0x1ccbe7===_0x3afceb)break;else _0x3a0e13['push'](_0x3a0e13['shift']());}catch(_0x25466c){_0x3a0e13['push'](_0x3a0e13['shift']());}}}(_0x5ac8,0x44ac5),function(_0x3f597e,_0x34771a){const _0x2da517=_0x23e9;typeof exports==_0x2da517(0x15c)&&typeof module<'u'?_0x34771a(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x2da517(0x152)&&define[_0x2da517(0x155)]?define([_0x2da517(0x159),_0x2da517(0x163),_0x2da517(0x160)],_0x34771a):(_0x3f597e=typeof globalThis<'u'?globalThis:_0x3f597e||self,_0x34771a(_0x3f597e['UniverProLiveShare'],_0x3f597e[_0x2da517(0x15d)],_0x3f597e[_0x2da517(0x15e)]));}(this,function(_0x4fce01,_0x538435,_0x2b399e){'use strict';const _0x294fd2=_0x23e9;var _0x2d0b41=Object[_0x294fd2(0x147)],_0x50190e=(_0x2f6194,_0x59b829,_0x5e07eb)=>_0x59b829 in _0x2f6194?_0x2d0b41(_0x2f6194,_0x59b829,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e07eb}):_0x2f6194[_0x59b829]=_0x5e07eb,_0x15be7a=(_0x268f7c,_0x344be7,_0x4ec3bd)=>_0x50190e(_0x268f7c,typeof _0x344be7!=_0x294fd2(0x150)?_0x344be7+'':_0x344be7,_0x4ec3bd);class _0xffcb8d extends _0x2b399e['FUniver']{constructor(){const _0xb4b7b7=_0x294fd2;super(...arguments),_0x15be7a(this,_0xb4b7b7(0x165));}[_0x294fd2(0x144)](_0x81cdd1){const _0x1b95df=_0x294fd2;this[_0x1b95df(0x165)]=_0x81cdd1[_0x1b95df(0x156)](_0x4fce01[_0x1b95df(0x15b)]);}[_0x294fd2(0x141)](){const _0x3b2e55=_0x294fd2;var _0x8cba97;const _0x3354a1=this[_0x3b2e55(0x15f)][_0x3b2e55(0x156)](_0x538435[_0x3b2e55(0x13d)])[_0x3b2e55(0x166)](_0x538435['UniverInstanceType'][_0x3b2e55(0x167)]);if(!_0x3354a1)throw new Error(_0x3b2e55(0x14c));const _0x2c02a8=_0x3354a1[_0x3b2e55(0x153)](),_0x2f37e8=this[_0x3b2e55(0x165)]['getLiveShareCoordinatorSync'](_0x2c02a8);return(_0x8cba97=_0x2f37e8==null?void 0x0:_0x2f37e8[_0x3b2e55(0x14d)]())!=null?_0x8cba97:_0x4fce01[_0x3b2e55(0x13b)]['IDLE'];}[_0x294fd2(0x164)](){const _0x1ea6e4=_0x294fd2,_0x5f54e6=this[_0x1ea6e4(0x15f)][_0x1ea6e4(0x156)](_0x538435[_0x1ea6e4(0x13d)])[_0x1ea6e4(0x166)](_0x538435[_0x1ea6e4(0x146)][_0x1ea6e4(0x167)]);if(!_0x5f54e6)throw new Error(_0x1ea6e4(0x14c));const _0x1b32c8=_0x5f54e6[_0x1ea6e4(0x153)](),_0x33d3f4=this[_0x1ea6e4(0x165)][_0x1ea6e4(0x14b)](_0x1b32c8);if(!_0x33d3f4)throw new Error(_0x1ea6e4(0x140));_0x33d3f4[_0x1ea6e4(0x164)]();}[_0x294fd2(0x14e)](){const _0x7aa4c=_0x294fd2,_0x62f761=this[_0x7aa4c(0x15f)][_0x7aa4c(0x156)](_0x538435['IUniverInstanceService'])[_0x7aa4c(0x166)](_0x538435[_0x7aa4c(0x146)][_0x7aa4c(0x167)]);if(!_0x62f761)throw new Error('No\x20active\x20workbook\x20found.');const _0x3c2d92=_0x62f761[_0x7aa4c(0x153)](),_0x2f2e32=this[_0x7aa4c(0x165)]['getLiveShareCoordinatorSync'](_0x3c2d92);if(!_0x2f2e32)throw new Error(_0x7aa4c(0x140));_0x2f2e32['stopFollowing']();}[_0x294fd2(0x13e)](){const _0x59447e=_0x294fd2,_0x2e7d9e=this['_injector'][_0x59447e(0x156)](_0x538435['IUniverInstanceService'])['getCurrentUnitOfType'](_0x538435[_0x59447e(0x146)][_0x59447e(0x167)]);if(!_0x2e7d9e)throw new Error(_0x59447e(0x14c));const _0x84a698=_0x2e7d9e[_0x59447e(0x153)](),_0x1004de=this[_0x59447e(0x165)]['getLiveShareCoordinatorSync'](_0x84a698);if(!_0x1004de)throw new Error(_0x59447e(0x140));_0x1004de[_0x59447e(0x13c)]();}[_0x294fd2(0x142)](){const _0xbb3787=_0x294fd2,_0x5100df=this['_injector'][_0xbb3787(0x156)](_0x538435[_0xbb3787(0x13d)])[_0xbb3787(0x166)](_0x538435[_0xbb3787(0x146)][_0xbb3787(0x167)]);if(!_0x5100df)throw new Error('No\x20active\x20workbook\x20found.');const _0x3690b4=_0x5100df[_0xbb3787(0x153)](),_0x2fdea6=this[_0xbb3787(0x165)][_0xbb3787(0x14b)](_0x3690b4);if(!_0x2fdea6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2fdea6[_0xbb3787(0x142)]();}}_0x2b399e[_0x294fd2(0x143)][_0x294fd2(0x151)](_0xffcb8d);class _0x19b6c8 extends _0x2b399e[_0x294fd2(0x149)]{get['LiveShareStatusEnum'](){const _0x2f3f53=_0x294fd2;return _0x4fce01[_0x2f3f53(0x13b)];}}_0x2b399e[_0x294fd2(0x149)][_0x294fd2(0x151)](_0x19b6c8);}));function _0x23e9(_0x5175b0,_0x5170fd){_0x5175b0=_0x5175b0-0x13b;const _0x5ac859=_0x5ac8();let _0x23e9ba=_0x5ac859[_0x5175b0];return _0x23e9ba;}function _0x5ac8(){const _0x51b0f0=['1112MmabqA','LiveShareController','object','UniverCore','UniverCoreFacade','_injector','@univerjs/core/facade','12NXHJAN','2358260WPLwkL','@univerjs/core','startFollowing','_liveShareController','getCurrentUnitOfType','UNIVER_SHEET','LiveShareStatus','tryStartPresenting','IUniverInstanceService','startPresenting','2RGarcl','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareStatus','stopPresenting','FUniver','_initialize','404803eyAHCh','UniverInstanceType','defineProperty','15kWgtBa','FEnum','136448BtyOoW','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','getStatus','stopFollowing','1272480hEsnix','symbol','extend','function','getUnitId','10737KzrTtf','amd','get','309788KvSbli','13219646dItrMF','@univerjs-pro/live-share'];_0x5ac8=function(){return _0x51b0f0;};return _0x5ac8();}
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 _0x577f(_0x372d9d,_0x3beeb0){_0x372d9d=_0x372d9d-0xad;const _0x455eb4=_0x455e();let _0x577f5e=_0x455eb4[_0x372d9d];return _0x577f5e;}function _0x455e(){const _0x13ae3c=['reverse','text','IUniverInstanceService','14wASCEC','throttleTime','PRESENTING','UniverSheetsUi','jsx','getInitialStates','exports','complete','live-share.config','_stopFollowing','assign','univerjs-icon\x20univerjs-icon-','Start\x20following','not-following','_status','defIds','_handleOffline','useState','UniverLiveSharePlugin','_startLiveShareCoordinator','following','React','LIVESHARE_FETCH_OPERATIONS','univer-size-4','set','params','requireSession','_beIdle','stopFollowing','Injector','_commandDisposable','parse','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_OPERATION','onRendered','SessionStatus','136260QrlPxu','CollaborationEvent','LiveShareIcon','values','_stopPresenting','Module','CommandType','operators','Present\x20this\x20document','substring','string','_sharedOperations','onCommandExecuted','240715JlNdsH','12lcobaa','_handleNewHost','LIVESHARE_REQUEST_HOST','SetScrollOperation','merge','button','react','DependentOn','UniverSheets','setConfig','default','LiveShareController','has','1em','live-share-icon','evenodd','UNIVER_SHEET','145786aKWfQC','sheet','toDisposable','UniverProCollaborationClient','LiveShareCoordinator','registerSharedOperation','dispose','asObservable','svg','getUnitId','send','@univerjs/sheets-ui','350FsZAuP','data','Plugin','_handleTerminate','useObservable','add','registerInitialStateReporter','subscribe','80bgCdfd','_config','DesktopLiveShareController','@univerjs/core','presenting','IConfigService','init','map','disposeWithMe','status$','current','448650KaoocE','_handleOnline','OPERATION','operations','getConfig','next','clsx','BehaviorSubject','UNIVER_UNKNOWN','LiveShareStatus','getTypeOfUnitDisposed$','pipe','13QOTKYp','_handleOperation','pluginName','_startPresenting','getValue','sessionStatus$','type','@univerjs-pro/collaboration-client','0\x200\x2017\x2017','CollaborationSessionService','toStringTag','colorChannel1','3IfUHtU','override','_mountLiveShare','mutations','unitId','children','url(#$1','clear','delete','UniverDesign','rxjs/operators','getStatus','presenter','RxDisposable','forEach','object','stopPresenting','startFollowing','Fragment','SetWorksheetActiveOperation','You\x27re\x20following\x20the\x20presenter','getOwnPropertyDescriptor','@univerjs-pro/collaboration','symbol','shouldShareOperation','_liveShareService','HEADER_MENU','length','IDLE','get','event$','xlink:href','getMemberID','path','div','_presenter','getLiveShareCoordinator','jsxs','entries','touchDependencies','registerDependencies','getLiveShareCoordinatorSync','_collabSessionService','_collabSession','defineProperty','dispose$','forwardRef','idle','attrs','_univerInstanceService','_status$','_startFollowing','_configService','react/jsx-runtime','_handleNewChangeSets','takeUntil','mask','SAME_OPERATION_SHARE_INTERVAL','includes','3182784EaAwNo','UniverCore','function','rxjs','fill','_unitID','LiveShareService','UniverInstanceType','BuiltInUIPart','_entities','NOT_FOLLOWING','registerComponent','executeCommand','FOLLOWING','InsertSheetMutation','currentColor','Inject','You\x27re\x20presenting\x20the\x20document','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','Button','connectInjector','_reporters','NEW_CHANGESETS','idSuffix','useDependency','createElement','UniverUi','Subject','OFFLINE','_fetchOperations','913rzPsPr','tag','_commandService','random','useEffect','Disposable','IUIPartsService','_injector','useRef','153333aiYajx','offline','none','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','_uiPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_init'];_0x455e=function(){return _0x13ae3c;};return _0x455e();}(function(_0x48eec4,_0x127dc4){const _0x4ea182=_0x577f,_0x5213b1=_0x48eec4();while(!![]){try{const _0x4eb222=-parseInt(_0x4ea182(0x126))/0x1+parseInt(_0x4ea182(0x173))/0x2*(parseInt(_0x4ea182(0xc3))/0x3)+-parseInt(_0x4ea182(0x162))/0x4*(-parseInt(_0x4ea182(0x161))/0x5)+-parseInt(_0x4ea182(0x192))/0x6*(-parseInt(_0x4ea182(0x130))/0x7)+parseInt(_0x4ea182(0x187))/0x8*(parseInt(_0x4ea182(0x154))/0x9)+parseInt(_0x4ea182(0x17f))/0xa*(parseInt(_0x4ea182(0x11d))/0xb)+-parseInt(_0x4ea182(0xfe))/0xc*(parseInt(_0x4ea182(0xb7))/0xd);if(_0x4eb222===_0x127dc4)break;else _0x5213b1['push'](_0x5213b1['shift']());}catch(_0x342691){_0x5213b1['push'](_0x5213b1['shift']());}}}(_0x455e,0x190d4),function(_0x3b5c6d,_0xa02de6){const _0x495229=_0x577f;typeof exports==_0x495229(0xd2)&&typeof module<'u'?_0xa02de6(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==_0x495229(0x100)&&define['amd']?define([_0x495229(0x136),_0x495229(0x18a),'@univerjs/ui',_0x495229(0xf8),'@univerjs/design',_0x495229(0x168),_0x495229(0xd9),_0x495229(0xbe),'@univerjs/sheets',_0x495229(0x101),_0x495229(0xcd),_0x495229(0x17e)],_0xa02de6):(_0x3b5c6d=typeof globalThis<'u'?globalThis:_0x3b5c6d||self,_0xa02de6(_0x3b5c6d['UniverProLiveShare']={},_0x3b5c6d[_0x495229(0xff)],_0x3b5c6d[_0x495229(0x119)],_0x3b5c6d[_0x495229(0x145)],_0x3b5c6d[_0x495229(0xcc)],_0x3b5c6d[_0x495229(0x145)],_0x3b5c6d['UniverProCollaboration'],_0x3b5c6d[_0x495229(0x176)],_0x3b5c6d[_0x495229(0x16a)],_0x3b5c6d[_0x495229(0x101)],_0x3b5c6d[_0x495229(0x101)][_0x495229(0x15b)],_0x3b5c6d[_0x495229(0x133)]));}(this,function(_0xd6edbd,_0x23ca38,_0x11871e,_0x37bbbc,_0x3e2498,_0x1a1d01,_0x1dc02e,_0x330d33,_0x5b423e,_0x4fde45,_0x3545ba,_0x5e7b34){'use strict';const _0x4d1bed=_0x577f;var _0x50add7=Object[_0x4d1bed(0xef)],_0x50922b=(_0x435e53,_0x4230dd,_0x5a9314)=>_0x4230dd in _0x435e53?_0x50add7(_0x435e53,_0x4230dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a9314}):_0x435e53[_0x4230dd]=_0x5a9314,_0x2fcc5c=(_0x299919,_0x1e5854,_0x46267d)=>_0x50922b(_0x299919,typeof _0x1e5854!=_0x4d1bed(0xda)?_0x1e5854+'':_0x1e5854,_0x46267d);function _0x56ceb2({ref:_0x1c2639,..._0x361ab8}){const _0xda5c0c=_0x4d1bed,{icon:_0x33594d,id:_0xc85d3b,className:_0x5ed5ba,extend:_0x297e13,..._0x67aa3b}=_0x361ab8,_0x1b08b3=(_0xda5c0c(0x13b)+_0xc85d3b+'\x20'+(_0x5ed5ba||''))['trim'](),_0x2813f5=_0x1a1d01[_0xda5c0c(0x125)]('_'+_0x312d9d());return _0x392dbf(_0x33594d,''+_0xc85d3b,{'defIds':_0x33594d[_0xda5c0c(0x13f)],'idSuffix':_0x2813f5['current']},{'ref':_0x1c2639,'className':_0x1b08b3,..._0x67aa3b},_0x297e13);}function _0x392dbf(_0xefa539,_0x26c080,_0x43a319,_0x5af50a,_0x4d5eab){const _0x2881bc=_0x4d1bed;return _0x1a1d01[_0x2881bc(0x118)](_0xefa539['tag'],{'key':_0x26c080,..._0x450e1a(_0xefa539,_0x43a319,_0x4d5eab),..._0x5af50a},(_0x21f69a(_0xefa539,_0x43a319)['children']||[])[_0x2881bc(0x18e)]((_0x5b213d,_0xe8846f)=>_0x392dbf(_0x5b213d,_0x26c080+'-'+_0xefa539[_0x2881bc(0x11e)]+'-'+_0xe8846f,_0x43a319,void 0x0,_0x4d5eab)));}function _0x450e1a(_0x5d0082,_0x4ed77d,_0x16d69e){const _0x3f0030=_0x4d1bed,_0x1b4a62={..._0x5d0082[_0x3f0030(0xf3)]};_0x16d69e!=null&&_0x16d69e[_0x3f0030(0xc2)]&&_0x1b4a62[_0x3f0030(0x102)]===_0x3f0030(0xc2)&&(_0x1b4a62['fill']=_0x16d69e[_0x3f0030(0xc2)]),_0x5d0082[_0x3f0030(0x11e)]===_0x3f0030(0xfb)&&_0x1b4a62['id']&&(_0x1b4a62['id']=_0x1b4a62['id']+_0x4ed77d[_0x3f0030(0x116)]),Object[_0x3f0030(0xe9)](_0x1b4a62)['forEach'](([_0x1bf19b,_0xa6e7f2])=>{const _0x4e6f04=_0x3f0030;_0x1bf19b===_0x4e6f04(0xfb)&&typeof _0xa6e7f2==_0x4e6f04(0x15e)&&(_0x1b4a62[_0x1bf19b]=_0xa6e7f2['replace'](/url\(#(.*)\)/,_0x4e6f04(0xc9)+_0x4ed77d[_0x4e6f04(0x116)]+')'));});const {defIds:_0x53e1dc}=_0x4ed77d;return!_0x53e1dc||_0x53e1dc['length']===0x0||(_0x5d0082[_0x3f0030(0x11e)]==='use'&&_0x1b4a62[_0x3f0030(0xe2)]&&(_0x1b4a62[_0x3f0030(0xe2)]=_0x1b4a62[_0x3f0030(0xe2)]+_0x4ed77d[_0x3f0030(0x116)]),Object['entries'](_0x1b4a62)[_0x3f0030(0xd1)](([_0x5102ee,_0x1daa9d])=>{const _0x39af65=_0x3f0030;typeof _0x1daa9d==_0x39af65(0x15e)&&(_0x1b4a62[_0x5102ee]=_0x1daa9d['replace'](/url\(#(.*)\)/,_0x39af65(0xc9)+_0x4ed77d[_0x39af65(0x116)]+')'));})),_0x1b4a62;}function _0x21f69a(_0x19a2d1,_0xd1fd8e){const _0xc0d1a2=_0x4d1bed;var _0x14ab78;const {defIds:_0x5576d6}=_0xd1fd8e;return!_0x5576d6||_0x5576d6[_0xc0d1a2(0xde)]===0x0?_0x19a2d1:_0x19a2d1['tag']==='defs'&&((_0x14ab78=_0x19a2d1[_0xc0d1a2(0xc8)])!=null&&_0x14ab78['length'])?{..._0x19a2d1,'children':_0x19a2d1[_0xc0d1a2(0xc8)][_0xc0d1a2(0x18e)](_0x430fea=>typeof _0x430fea['attrs']['id']=='string'&&_0x5576d6&&_0x5576d6[_0xc0d1a2(0xfd)](_0x430fea['attrs']['id'])?{..._0x430fea,'attrs':{..._0x430fea[_0xc0d1a2(0xf3)],'id':_0x430fea['attrs']['id']+_0xd1fd8e[_0xc0d1a2(0x116)]}}:_0x430fea)}:_0x19a2d1;}function _0x312d9d(){const _0x29c66e=_0x4d1bed;return Math[_0x29c66e(0x120)]()['toString'](0x24)[_0x29c66e(0x15d)](0x2,0x8);}_0x56ceb2['displayName']='UniverIcon';const _0x5e6ba8={'tag':_0x4d1bed(0x17b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4d1bed(0x128),'viewBox':_0x4d1bed(0xbf),'width':'1em','height':_0x4d1bed(0x16f)},'children':[{'tag':_0x4d1bed(0xe4),'attrs':{'fill':_0x4d1bed(0x10d),'d':_0x4d1bed(0x129)}},{'tag':_0x4d1bed(0xe4),'attrs':{'fill':_0x4d1bed(0x10d),'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':_0x4d1bed(0x171),'clipRule':'evenodd'}}]},_0x146194=_0x1a1d01[_0x4d1bed(0xf1)](function(_0x2c6401,_0x506216){const _0x28435d=_0x4d1bed;return _0x1a1d01['createElement'](_0x56ceb2,Object[_0x28435d(0x13a)]({},_0x2c6401,{'id':_0x28435d(0x170),'ref':_0x506216,'icon':_0x5e6ba8}));});_0x146194['displayName']=_0x4d1bed(0x156);class _0x4a9382 extends _0x23ca38[_0x4d1bed(0x122)]{constructor(){const _0x47c1fb=_0x4d1bed;super(...arguments),_0x2fcc5c(this,'_sharedOperations',new Set()),_0x2fcc5c(this,_0x47c1fb(0x114),new Set());}[_0x4d1bed(0x178)](_0x479413){const _0x5940f6=_0x4d1bed;return this[_0x5940f6(0x15f)][_0x5940f6(0x184)](_0x479413),_0x23ca38[_0x5940f6(0x175)](()=>this[_0x5940f6(0x15f)][_0x5940f6(0xcb)](_0x479413));}[_0x4d1bed(0x185)](_0x52bc6e){const _0xc90cdb=_0x4d1bed;return this[_0xc90cdb(0x114)][_0xc90cdb(0x184)](_0x52bc6e),_0x23ca38[_0xc90cdb(0x175)](()=>this[_0xc90cdb(0x114)]['delete'](_0x52bc6e));}[_0x4d1bed(0xdb)](_0x539e73){const _0x489ed3=_0x4d1bed;return this[_0x489ed3(0x15f)]['has'](_0x539e73);}[_0x4d1bed(0x135)](_0x119415){const _0x42d526=_0x4d1bed;return Array['from'](this['_reporters'])[_0x42d526(0x18e)](_0x502bed=>_0x502bed(_0x119415));}}var _0xd9845=Object[_0x4d1bed(0xd8)],_0x1a2629=(_0x54e890,_0x4bb39b,_0x399cb5,_0x2305a1)=>{const _0x199b24=_0x4d1bed;for(var _0x565c89=_0x2305a1>0x1?void 0x0:_0x2305a1?_0xd9845(_0x4bb39b,_0x399cb5):_0x4bb39b,_0x14308c=_0x54e890[_0x199b24(0xde)]-0x1,_0x43328c;_0x14308c>=0x0;_0x14308c--)(_0x43328c=_0x54e890[_0x14308c])&&(_0x565c89=_0x43328c(_0x565c89)||_0x565c89);return _0x565c89;},_0xacafc2=(_0x5f50c6,_0x51fd70)=>(_0x237ddd,_0x1a20bc)=>_0x51fd70(_0x237ddd,_0x1a20bc,_0x5f50c6);_0xd6edbd[_0x4d1bed(0x16d)]=class extends _0x23ca38[_0x4d1bed(0xd0)]{constructor(_0x4c166f,_0x3a874c,_0x28e025){const _0x122a00=_0x4d1bed;super(),_0x2fcc5c(this,'_entities',new Map()),(this[_0x122a00(0xf4)]=_0x4c166f,this[_0x122a00(0x124)]=_0x3a874c,this[_0x122a00(0xed)]=_0x28e025,this[_0x122a00(0x12c)]());}async['getLiveShareCoordinator'](_0x2449a4){const _0x4db2f6=_0x4d1bed;return this[_0x4db2f6(0x107)]['has'](_0x2449a4)||await this[_0x4db2f6(0x143)](_0x2449a4),this[_0x4db2f6(0x107)]['get'](_0x2449a4);}[_0x4d1bed(0xec)](_0x40a7ac){const _0x3f79ed=_0x4d1bed;var _0x16b655;return(_0x16b655=this['_entities'][_0x3f79ed(0xe0)](_0x40a7ac))!=null?_0x16b655:null;}[_0x4d1bed(0x12c)](){const _0x1daf68=_0x4d1bed;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x23ca38[_0x1daf68(0x105)][_0x1daf68(0x172)])['pipe'](_0x3545ba['takeUntil'](this[_0x1daf68(0xf0)]))[_0x1daf68(0x186)](async _0x2c1f2=>{const _0x3f79ff=_0x1daf68,_0x32eaef=_0x2c1f2[_0x3f79ff(0x17c)]();this[_0x3f79ff(0x107)][_0x3f79ff(0x16e)](_0x32eaef)||this['_startLiveShareCoordinator'](_0x32eaef);}),this[_0x1daf68(0xf4)][_0x1daf68(0xb5)](_0x23ca38[_0x1daf68(0x105)][_0x1daf68(0x172)])['pipe'](_0x3545ba[_0x1daf68(0xfa)](this[_0x1daf68(0xf0)]))['subscribe'](_0x43de35=>{const _0x315de6=_0x1daf68,_0x4b7129=_0x43de35[_0x315de6(0x17c)](),_0x24ab55=this[_0x315de6(0x107)][_0x315de6(0xe0)](_0x4b7129);_0x24ab55==null||_0x24ab55['dispose']();});}async['_startLiveShareCoordinator'](_0x37b822){const _0x378871=_0x4d1bed,_0x3c98aa=await this[_0x378871(0xed)][_0x378871(0x14a)](_0x37b822),_0x20fdcb=this[_0x378871(0x124)]['createInstance'](_0xd6edbd[_0x378871(0x177)],_0x37b822,_0x3c98aa);return _0x20fdcb['init'](),this[_0x378871(0x107)][_0x378871(0x148)](_0x37b822,_0x20fdcb),_0x20fdcb;}},_0xd6edbd[_0x4d1bed(0x16d)]=_0x1a2629([_0xacafc2(0x0,_0x23ca38[_0x4d1bed(0x12f)]),_0xacafc2(0x1,_0x23ca38['Inject'](_0x23ca38[_0x4d1bed(0x14d)])),_0xacafc2(0x2,_0x23ca38[_0x4d1bed(0x10e)](_0x330d33[_0x4d1bed(0xc0)]))],_0xd6edbd[_0x4d1bed(0x16d)]);var _0xbf16ad=(_0x42b649=>(_0x42b649[_0x4d1bed(0x11b)]=_0x4d1bed(0x127),_0x42b649[_0x4d1bed(0xdf)]='idle',_0x42b649['FOLLOWING']=_0x4d1bed(0x144),_0x42b649[_0x4d1bed(0x108)]=_0x4d1bed(0x13d),_0x42b649[_0x4d1bed(0x132)]='presenting',_0x42b649))(_0xbf16ad||{});const _0x524a0d=_0x4d1bed(0xfc),_0x34410b=0xc8;_0xd6edbd[_0x4d1bed(0x177)]=class extends _0x23ca38[_0x4d1bed(0xd0)]{constructor(_0x225b1d,_0x5de456,_0x5cf7ed,_0x194c9b,_0x201e80){const _0x5cbf0d=_0x4d1bed;super(),_0x2fcc5c(this,'_status$',new _0x4fde45[(_0x5cbf0d(0xb2))](_0x5cbf0d(0xf2))),_0x2fcc5c(this,_0x5cbf0d(0x190),this['_status$'][_0x5cbf0d(0x17a)]()),_0x2fcc5c(this,_0x5cbf0d(0x12c),!0x1),_0x2fcc5c(this,'_commandDisposable',null),_0x2fcc5c(this,_0x5cbf0d(0xe6),null),(this['_unitID']=_0x225b1d,this['_collabSession']=_0x5de456,this['_configService']=_0x5cf7ed,this['_liveShareService']=_0x194c9b,this[_0x5cbf0d(0x11f)]=_0x201e80);}get['_status'](){const _0x22a5db=_0x4d1bed;return this[_0x22a5db(0xf5)][_0x22a5db(0xbb)]();}['dispose'](){const _0x48c719=_0x4d1bed;var _0x58971f;(_0x58971f=this[_0x48c719(0x14e)])==null||_0x58971f[_0x48c719(0x179)](),this['_status$'][_0x48c719(0xb0)](_0x48c719(0xf2)),this[_0x48c719(0xf5)][_0x48c719(0x137)]();}[_0x4d1bed(0xce)](){const _0x101633=_0x4d1bed;return this[_0x101633(0x13e)];}[_0x4d1bed(0x18d)](){const _0x2204c6=_0x4d1bed;this[_0x2204c6(0x12c)]||(this[_0x2204c6(0x12c)]=!0x0,this[_0x2204c6(0xee)][_0x2204c6(0xbc)][_0x2204c6(0xb6)](_0x3545ba[_0x2204c6(0xfa)](this['dispose$']))[_0x2204c6(0x186)](_0x1ce9b5=>{const _0x2dc275=_0x2204c6;switch(_0x1ce9b5){case _0x330d33[_0x2dc275(0x153)][_0x2dc275(0x11b)]:this[_0x2dc275(0x140)]();break;case _0x330d33[_0x2dc275(0x153)]['ONLINE']:this['_handleOnline']();break;}}),this[_0x2204c6(0xee)][_0x2204c6(0xe1)]['pipe'](_0x3545ba[_0x2204c6(0xfa)](this[_0x2204c6(0xf0)]))[_0x2204c6(0x186)](_0x240fa1=>{const _0x549d56=_0x2204c6,{eventID:_0x3a5e0f}=_0x240fa1;switch(_0x3a5e0f){case _0x1dc02e[_0x549d56(0x155)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x240fa1);break;case _0x1dc02e[_0x549d56(0x155)][_0x549d56(0x151)]:this[_0x549d56(0xb8)](_0x240fa1);break;case _0x1dc02e[_0x549d56(0x155)][_0x549d56(0x110)]:this[_0x549d56(0x182)]();break;case _0x1dc02e[_0x549d56(0x155)][_0x549d56(0x115)]:this[_0x549d56(0xf9)](_0x240fa1);break;}}));}['tryStartPresenting'](){const _0x59d3f0=_0x4d1bed;this[_0x59d3f0(0xee)][_0x59d3f0(0x17d)]({'eventID':_0x1dc02e[_0x59d3f0(0x155)][_0x59d3f0(0x164)],'data':{'unitID':this['_unitID'],'userID':this[_0x59d3f0(0xee)][_0x59d3f0(0xe3)]()}},this['_unitID']);}[_0x4d1bed(0xd3)](){const _0x5eadb4=_0x4d1bed;this['_status']==='presenting'&&(this[_0x5eadb4(0xf5)][_0x5eadb4(0xb0)]('idle'),this[_0x5eadb4(0xee)][_0x5eadb4(0x17d)]({'eventID':_0x1dc02e[_0x5eadb4(0x155)][_0x5eadb4(0x110)],'data':{'unitID':this[_0x5eadb4(0x103)]}},this[_0x5eadb4(0x103)]));}[_0x4d1bed(0xd4)](){const _0x88d01e=_0x4d1bed;this[_0x88d01e(0x13e)]===_0x88d01e(0x13d)&&(this[_0x88d01e(0xf5)][_0x88d01e(0xb0)]('following'),this[_0x88d01e(0xf6)]());}[_0x4d1bed(0x14c)](){const _0x104b8b=_0x4d1bed;this[_0x104b8b(0x13e)]===_0x104b8b(0x144)&&this['_stopFollowing']();}[_0x4d1bed(0x163)](_0x34f35a){const _0x114237=_0x4d1bed,{presenter:_0x11619d}=_0x34f35a['data'],_0x37c5e0=this[_0x114237(0xee)]['getMemberID']();this['_presenter']=_0x11619d,_0x11619d===_0x37c5e0?(this[_0x114237(0x139)](),this[_0x114237(0xba)]()):this[_0x114237(0x13e)]!==_0x114237(0x13d)&&(this[_0x114237(0x158)](),this[_0x114237(0xf6)]());}[_0x4d1bed(0x11c)](){const _0x3b0fe8=_0x4d1bed,_0xa9c742={'eventID':_0x1dc02e[_0x3b0fe8(0x155)][_0x3b0fe8(0x146)]};this[_0x3b0fe8(0xee)]['send'](_0xa9c742,this[_0x3b0fe8(0x103)]);}[_0x4d1bed(0x182)](){const _0x55b557=_0x4d1bed;this[_0x55b557(0xe6)]=null,this['_status']!==_0x55b557(0x18b)&&this['_beIdle']();}[_0x4d1bed(0xf9)](_0xa5501e){const _0x3bab69=_0x4d1bed;if(this[_0x3bab69(0x13e)]===_0x3bab69(0x144)&&this[_0x3bab69(0xe6)]===_0xa5501e[_0x3bab69(0x180)]['memberID']){const _0x1e8cc2=_0x1dc02e['parseProtocolChangeset'](_0xa5501e['data'])[_0x3bab69(0xc6)][_0x3bab69(0x12d)]()['find'](_0x4e4cd9=>_0x4e4cd9['id']===_0x5b423e[_0x3bab69(0x10c)]['id']);if(_0x1e8cc2){const _0x1992fe=_0x1e8cc2[_0x3bab69(0x149)][_0x3bab69(0xc7)],_0x31cd2d=_0x1e8cc2['params'][_0x3bab69(0x174)]['id'];setTimeout(()=>{const _0x2c14e5=_0x3bab69;this['_commandService'][_0x2c14e5(0x10a)](_0x5b423e[_0x2c14e5(0xd6)]['id'],{'unitId':_0x1992fe,'subUnitId':_0x31cd2d},{'fromCollab':!0x0});});}}}[_0x4d1bed(0xba)](){const _0x55e150=_0x4d1bed;this[_0x55e150(0xf5)]['next']('presenting');const _0x18d133=new Map(),_0x17bbd1=this[_0x55e150(0x14e)]=new _0x23ca38['DisposableCollection']();_0x17bbd1[_0x55e150(0x184)](_0x23ca38[_0x55e150(0x175)](()=>{const _0x518125=_0x55e150;_0x18d133[_0x518125(0xd1)](_0x211007=>_0x211007[_0x518125(0x137)]()),_0x18d133[_0x518125(0xca)]();})),_0x17bbd1[_0x55e150(0x184)](this[_0x55e150(0x11f)][_0x55e150(0x160)](_0x52e40e=>{const _0x27bf7a=_0x55e150;var _0x1fbbf4;if(_0x52e40e['type']!==_0x23ca38[_0x27bf7a(0x15a)][_0x27bf7a(0xad)]||!this[_0x27bf7a(0xdc)][_0x27bf7a(0xdb)](_0x52e40e['id']))return;const {id:_0x259bde}=_0x52e40e;let _0x59062e;_0x18d133[_0x27bf7a(0x16e)](_0x259bde)?_0x59062e=_0x18d133[_0x27bf7a(0xe0)](_0x259bde):(_0x59062e=new _0x4fde45[(_0x27bf7a(0x11a))](),_0x18d133[_0x27bf7a(0x148)](_0x259bde,_0x59062e),_0x59062e[_0x27bf7a(0xb6)](_0x3545ba[_0x27bf7a(0x131)]((_0x1fbbf4=this[_0x27bf7a(0xf7)][_0x27bf7a(0xaf)](_0x524a0d))!=null?_0x1fbbf4:_0x34410b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x27bf7a(0x186)](_0x19eba5=>{const _0x30ac76=_0x27bf7a;this[_0x30ac76(0xee)][_0x30ac76(0x17d)]({'eventID':_0x1dc02e[_0x30ac76(0x155)][_0x30ac76(0x151)],'data':{'unitID':this['_unitID'],'operations':{[_0x19eba5['id']]:{'id':_0x19eba5['id'],'params':JSON['stringify'](_0x19eba5[_0x30ac76(0x149)])}}}},this[_0x30ac76(0x103)]);})),_0x59062e['next'](_0x52e40e);})),this[_0x55e150(0xdc)][_0x55e150(0x135)](this[_0x55e150(0x103)])[_0x55e150(0xd1)](_0x9878d4=>this[_0x55e150(0xee)][_0x55e150(0x17d)]({'eventID':_0x1dc02e[_0x55e150(0x155)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x55e150(0x103)],'operations':{[_0x9878d4['id']]:{'id':_0x9878d4['id'],'params':JSON['stringify'](_0x9878d4[_0x55e150(0x149)])}}}},this[_0x55e150(0x103)]));}[_0x4d1bed(0x158)](){const _0x5a90d9=_0x4d1bed;var _0x3c08e4;this[_0x5a90d9(0xf5)][_0x5a90d9(0xb0)](_0x5a90d9(0xf2)),(_0x3c08e4=this[_0x5a90d9(0x14e)])==null||_0x3c08e4[_0x5a90d9(0x179)](),this[_0x5a90d9(0x14e)]=null;}[_0x4d1bed(0xf6)](){const _0x42bcdf=_0x4d1bed;var _0x321239;(_0x321239=this[_0x42bcdf(0x14e)])==null||_0x321239[_0x42bcdf(0x179)](),this[_0x42bcdf(0xf5)][_0x42bcdf(0xb0)](_0x42bcdf(0x144));}[_0x4d1bed(0x14b)](){const _0x7cf7c8=_0x4d1bed;var _0x50390e;this[_0x7cf7c8(0xf5)][_0x7cf7c8(0xb0)](_0x7cf7c8(0xf2)),(_0x50390e=this[_0x7cf7c8(0x14e)])==null||_0x50390e[_0x7cf7c8(0x179)](),this[_0x7cf7c8(0x14e)]=null;}[_0x4d1bed(0x139)](){const _0x23274c=_0x4d1bed;var _0xeac04f;this[_0x23274c(0xf5)][_0x23274c(0xb0)](_0x23274c(0x13d)),(_0xeac04f=this['_commandDisposable'])==null||_0xeac04f[_0x23274c(0x179)]();}[_0x4d1bed(0xb8)](_0x408dc9){const _0x2f699a=_0x4d1bed;if([_0x2f699a(0x18b),'not-following',_0x2f699a(0x127)]['includes'](this[_0x2f699a(0x13e)])||!_0x408dc9[_0x2f699a(0x180)][_0x2f699a(0xcf)]||_0x408dc9['data']['presenter']===this[_0x2f699a(0xee)][_0x2f699a(0xe3)]())return;this[_0x2f699a(0x13e)]===_0x2f699a(0xf2)&&this[_0x2f699a(0xf6)]();const _0x1ecc2c=_0x408dc9[_0x2f699a(0x180)][_0x2f699a(0xae)];Object[_0x2f699a(0x157)](_0x1ecc2c)[_0x2f699a(0xd1)](_0x41c8b4=>{const _0x5c572b=_0x2f699a;this[_0x5c572b(0x11f)][_0x5c572b(0x10a)](_0x41c8b4['id'],_0x41c8b4[_0x5c572b(0x149)]?JSON[_0x5c572b(0x14f)](_0x41c8b4[_0x5c572b(0x149)]):null,{'fromCollab':!0x0});});}[_0x4d1bed(0x140)](){const _0xd512df=_0x4d1bed;var _0x405ce8;this[_0xd512df(0xf5)][_0xd512df(0xb0)]('offline'),(_0x405ce8=this[_0xd512df(0x14e)])==null||_0x405ce8[_0xd512df(0x179)]();}[_0x4d1bed(0x193)](){const _0x429612=_0x4d1bed;this[_0x429612(0xf5)]['next']('idle'),this[_0x429612(0x11c)]();}},_0xd6edbd['LiveShareCoordinator']=_0x1a2629([_0xacafc2(0x2,_0x23ca38[_0x4d1bed(0x18c)]),_0xacafc2(0x3,_0x23ca38['Inject'](_0x4a9382)),_0xacafc2(0x4,_0x23ca38['ICommandService'])],_0xd6edbd['LiveShareCoordinator']);function _0x5ee3cb(){const _0x5b8e9c=_0x4d1bed,_0x412a26=_0x11871e[_0x5b8e9c(0x117)](_0xd6edbd[_0x5b8e9c(0x16d)]),_0x9cf8f6=_0x11871e[_0x5b8e9c(0x117)](_0x23ca38[_0x5b8e9c(0x12f)]),_0x2b0f7f=_0x11871e[_0x5b8e9c(0x183)](()=>_0x9cf8f6[_0x5b8e9c(0x111)](_0x23ca38[_0x5b8e9c(0x105)][_0x5b8e9c(0x172)]),void 0x0,!0x1,[]),[_0x5b4822,_0x269570]=_0x1a1d01[_0x5b8e9c(0x141)](null),[_0x188429,_0xc11342]=_0x1a1d01[_0x5b8e9c(0x141)](_0xbf16ad[_0x5b8e9c(0xdf)]),_0x19ecf9=_0x1a1d01['useRef'](null);return _0x1a1d01[_0x5b8e9c(0x121)](()=>(_0x2b0f7f&&_0x412a26[_0x5b8e9c(0xe7)](_0x2b0f7f[_0x5b8e9c(0x17c)]())['then'](_0x35476c=>{const _0x59b97e=_0x5b8e9c;_0x269570(_0x35476c),_0x19ecf9[_0x59b97e(0x191)]=_0x35476c['status$'][_0x59b97e(0x186)](_0x5b730a=>{_0xc11342(_0x5b730a);});}),()=>{const _0x5eb70d=_0x5b8e9c;var _0x309e6e;(_0x309e6e=_0x19ecf9[_0x5eb70d(0x191)])==null||_0x309e6e['unsubscribe'](),_0x19ecf9[_0x5eb70d(0x191)]=null;}),[_0x2b0f7f,_0x412a26]),_0x5b4822?_0x37bbbc[_0x5b8e9c(0x134)](_0x3e2498['Dropdown'],{'align':'end','disabled':_0x188429===_0xbf16ad[_0x5b8e9c(0x11b)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x37bbbc[_0x5b8e9c(0x134)](_0x17a28b,{'status':_0x188429,'coordinator':_0x5b4822}),'children':_0x37bbbc[_0x5b8e9c(0x134)]('button',{'className':_0x3e2498[_0x5b8e9c(0xb1)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x188429===_0xbf16ad['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x188429!==_0xbf16ad[_0x5b8e9c(0x11b)]}),'type':_0x5b8e9c(0x167),'children':_0x37bbbc[_0x5b8e9c(0x134)](_0x146194,{'className':_0x5b8e9c(0x147)})})}):null;}function _0x17a28b(_0x488628){const _0x1a0db7=_0x4d1bed,{status:_0x283d6e,coordinator:_0x4cf524}=_0x488628;switch(_0x283d6e){case _0xbf16ad[_0x1a0db7(0xdf)]:return _0x37bbbc[_0x1a0db7(0x134)](_0x54ccbc,{'coordinator':_0x4cf524});case _0xbf16ad[_0x1a0db7(0x10b)]:return _0x37bbbc[_0x1a0db7(0x134)](_0x1678b3,{'coordinator':_0x4cf524});case _0xbf16ad[_0x1a0db7(0x108)]:return _0x37bbbc[_0x1a0db7(0x134)](_0x398626,{'coordinator':_0x4cf524});case _0xbf16ad[_0x1a0db7(0x11b)]:return _0x37bbbc[_0x1a0db7(0x134)](_0x105bcb,{});case _0xbf16ad['PRESENTING']:return _0x37bbbc[_0x1a0db7(0x134)](_0x4ed9fe,{'coordinator':_0x4cf524});default:return null;}}function _0x54ccbc(_0x421b8){const _0x5479a6=_0x4d1bed,{coordinator:_0x5cad1f}=_0x421b8;return _0x37bbbc[_0x5479a6(0xe8)](_0x37bbbc[_0x5479a6(0xd5)],{'children':[_0x37bbbc['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5479a6(0x15c)}),_0x37bbbc[_0x5479a6(0x134)](_0x3e2498[_0x5479a6(0x112)],{'onClick':()=>_0x5cad1f['tryStartPresenting'](),'children':'Start'})]});}function _0x1678b3(_0x157fc1){const _0x5caae9=_0x4d1bed,{coordinator:_0x54b157}=_0x157fc1;return _0x37bbbc[_0x5caae9(0xe8)](_0x37bbbc['Fragment'],{'children':[_0x37bbbc[_0x5caae9(0x134)](_0x5caae9(0xe5),{'className':_0x5caae9(0x12b),'children':_0x5caae9(0xd7)}),_0x37bbbc[_0x5caae9(0x134)](_0x3e2498['Button'],{'onClick':()=>_0x54b157[_0x5caae9(0x14c)](),'children':'Stop\x20following'})]});}function _0x398626(_0x2d490e){const _0x552ab3=_0x4d1bed,{coordinator:_0x42fb09}=_0x2d490e;return _0x37bbbc['jsxs'](_0x37bbbc['Fragment'],{'children':[_0x37bbbc[_0x552ab3(0x134)]('div',{'className':_0x552ab3(0x12b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x37bbbc[_0x552ab3(0x134)](_0x3e2498[_0x552ab3(0x112)],{'variant':_0x552ab3(0x12e),'onClick':()=>_0x42fb09[_0x552ab3(0xd4)](),'children':_0x552ab3(0x13c)})]});}function _0x4ed9fe(_0x52aa89){const _0x1c4a57=_0x4d1bed,{coordinator:_0x56fea9}=_0x52aa89;return _0x37bbbc['jsxs'](_0x37bbbc[_0x1c4a57(0xd5)],{'children':[_0x37bbbc[_0x1c4a57(0x134)]('div',{'className':_0x1c4a57(0x12b),'children':_0x1c4a57(0x10f)}),_0x37bbbc[_0x1c4a57(0x134)](_0x3e2498[_0x1c4a57(0x112)],{'variant':_0x1c4a57(0x16c),'onClick':()=>_0x56fea9[_0x1c4a57(0xd3)](),'children':'Stop\x20presenting'})]});}function _0x105bcb(){const _0x54cac4=_0x4d1bed;return _0x37bbbc[_0x54cac4(0x134)](_0x37bbbc[_0x54cac4(0xd5)],{'children':'You\x27are\x20offline.'});}var _0x976bc1=Object[_0x4d1bed(0xd8)],_0x645d76=(_0x182498,_0x401793,_0x3e83c1,_0x195f18)=>{const _0x2012ca=_0x4d1bed;for(var _0x52719c=_0x195f18>0x1?void 0x0:_0x195f18?_0x976bc1(_0x401793,_0x3e83c1):_0x401793,_0x318e0b=_0x182498[_0x2012ca(0xde)]-0x1,_0xab9e5a;_0x318e0b>=0x0;_0x318e0b--)(_0xab9e5a=_0x182498[_0x318e0b])&&(_0x52719c=_0xab9e5a(_0x52719c)||_0x52719c);return _0x52719c;},_0x43603a=(_0x385565,_0xe21fe8)=>(_0x268811,_0x9fdeae)=>_0xe21fe8(_0x268811,_0x9fdeae,_0x385565);_0xd6edbd[_0x4d1bed(0x189)]=class extends _0x23ca38[_0x4d1bed(0x122)]{constructor(_0x31657a,_0x939576){const _0x406ffa=_0x4d1bed;super(),this[_0x406ffa(0x124)]=_0x31657a,this[_0x406ffa(0x12a)]=_0x939576,this[_0x406ffa(0xc5)]();}[_0x4d1bed(0xc5)](){const _0x322dc6=_0x4d1bed;this[_0x322dc6(0x18f)](this[_0x322dc6(0x12a)][_0x322dc6(0x109)](_0x11871e[_0x322dc6(0x106)][_0x322dc6(0xdd)],()=>_0x11871e[_0x322dc6(0x113)](_0x5ee3cb,this[_0x322dc6(0x124)])));}},_0xd6edbd[_0x4d1bed(0x189)]=_0x645d76([_0x43603a(0x0,_0x23ca38[_0x4d1bed(0x10e)](_0x23ca38[_0x4d1bed(0x14d)])),_0x43603a(0x1,_0x11871e[_0x4d1bed(0x123)])],_0xd6edbd[_0x4d1bed(0x189)]);const _0x517978=_0x4d1bed(0x138),_0x127e44={};var _0x4f03c5=Object[_0x4d1bed(0xd8)],_0x5e1653=(_0x7cadee,_0x27de71,_0x118623,_0x2ab506)=>{const _0x144ca6=_0x4d1bed;for(var _0x48ac1f=_0x2ab506>0x1?void 0x0:_0x2ab506?_0x4f03c5(_0x27de71,_0x118623):_0x27de71,_0x28e62d=_0x7cadee[_0x144ca6(0xde)]-0x1,_0x350a4b;_0x28e62d>=0x0;_0x28e62d--)(_0x350a4b=_0x7cadee[_0x28e62d])&&(_0x48ac1f=_0x350a4b(_0x48ac1f)||_0x48ac1f);return _0x48ac1f;},_0x5149e7=(_0x4d8c30,_0x5d2ace)=>(_0x149e6f,_0x4f0808)=>_0x5d2ace(_0x149e6f,_0x4f0808,_0x4d8c30);let _0x52d848=class extends _0x23ca38[_0x4d1bed(0x122)]{constructor(_0x2523c5){const _0x37b56b=_0x4d1bed;super(),this[_0x37b56b(0xdc)]=_0x2523c5,this[_0x37b56b(0x12c)]();}['_init'](){const _0x131ff6=_0x4d1bed;[_0x5e7b34['SetZoomRatioOperation']['id'],_0x5e7b34[_0x131ff6(0x165)]['id'],_0x5b423e[_0x131ff6(0xd6)]['id']][_0x131ff6(0xd1)](_0x4019b3=>{const _0x9376c8=_0x131ff6;this[_0x9376c8(0x18f)](this[_0x9376c8(0xdc)][_0x9376c8(0x178)](_0x4019b3));});}};_0x52d848=_0x5e1653([_0x5149e7(0x0,_0x23ca38['Inject'](_0x4a9382))],_0x52d848);var _0x112838=Object['defineProperty'],_0x455fd2=Object[_0x4d1bed(0xd8)],_0x1a9997=(_0x2937fd,_0x479119,_0x46281f)=>_0x479119 in _0x2937fd?_0x112838(_0x2937fd,_0x479119,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46281f}):_0x2937fd[_0x479119]=_0x46281f,_0x4c0cf9=(_0x34c184,_0x3eaec1,_0x56c039,_0x10d810)=>{const _0x255747=_0x4d1bed;for(var _0x482049=_0x10d810>0x1?void 0x0:_0x10d810?_0x455fd2(_0x3eaec1,_0x56c039):_0x3eaec1,_0xe8d642=_0x34c184[_0x255747(0xde)]-0x1,_0x26e466;_0xe8d642>=0x0;_0xe8d642--)(_0x26e466=_0x34c184[_0xe8d642])&&(_0x482049=_0x26e466(_0x482049)||_0x482049);return _0x482049;},_0x31dec7=(_0x99c4e0,_0x32887a)=>(_0x11f812,_0xbb8076)=>_0x32887a(_0x11f812,_0xbb8076,_0x99c4e0),_0x24bd29=(_0x309f22,_0x39557c,_0x5c5118)=>_0x1a9997(_0x309f22,typeof _0x39557c!=_0x4d1bed(0xda)?_0x39557c+'':_0x39557c,_0x5c5118);const _0x20446a=_0x4d1bed(0x150);_0xd6edbd[_0x4d1bed(0x142)]=class extends _0x23ca38[_0x4d1bed(0x181)]{constructor(_0x26f632=_0x127e44,_0x1a27ea,_0x31b711){const _0x317699=_0x4d1bed;super(),this[_0x317699(0x188)]=_0x26f632,this[_0x317699(0x124)]=_0x1a27ea,this['_configService']=_0x31b711;const {..._0x1ce773}=_0x23ca38[_0x317699(0x166)]({},_0x127e44,this[_0x317699(0x188)]);this[_0x317699(0xf7)][_0x317699(0x16b)](_0x517978,_0x1ce773);}['onStarting'](){const _0x1fdcc6=_0x4d1bed;_0x23ca38[_0x1fdcc6(0xeb)](this['_injector'],_0x23ca38['mergeOverrideWithDependencies']([[_0x4a9382],[_0xd6edbd[_0x1fdcc6(0x16d)]],[_0x52d848],[_0xd6edbd['DesktopLiveShareController']]],this[_0x1fdcc6(0x188)][_0x1fdcc6(0xc4)])),_0x23ca38['touchDependencies'](this[_0x1fdcc6(0x124)],[[_0x52d848]]);}[_0x4d1bed(0x152)](){const _0x1bcdaf=_0x4d1bed;_0x23ca38[_0x1bcdaf(0xea)](this[_0x1bcdaf(0x124)],[[_0xd6edbd['DesktopLiveShareController']]]);}},_0x24bd29(_0xd6edbd[_0x4d1bed(0x142)],_0x4d1bed(0xbd),_0x23ca38[_0x4d1bed(0x105)][_0x4d1bed(0xb3)]),_0x24bd29(_0xd6edbd[_0x4d1bed(0x142)],_0x4d1bed(0xb9),_0x20446a),_0xd6edbd[_0x4d1bed(0x142)]=_0x4c0cf9([_0x23ca38[_0x4d1bed(0x169)](_0x330d33['UniverCollaborationClientPlugin']),_0x31dec7(0x1,_0x23ca38['Inject'](_0x23ca38[_0x4d1bed(0x14d)])),_0x31dec7(0x2,_0x23ca38[_0x4d1bed(0x18c)])],_0xd6edbd['UniverLiveSharePlugin']),_0xd6edbd['LiveShare']=_0x5ee3cb,_0xd6edbd[_0x4d1bed(0x104)]=_0x4a9382,_0xd6edbd[_0x4d1bed(0xb4)]=_0xbf16ad,Object['defineProperty'](_0xd6edbd,Symbol[_0x4d1bed(0xc1)],{'value':_0x4d1bed(0x159)});}));
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",
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": "0.15.3",
61
+ "@univerjs/core": "0.15.3",
62
+ "@univerjs/design": "0.15.3",
63
+ "@univerjs/sheets-ui": "0.15.3",
64
+ "@univerjs/sheets": "0.15.3",
65
+ "@univerjs-pro/collaboration-client": "0.15.3",
66
+ "@univerjs/ui": "0.15.3"
67
67
  },
68
68
  "devDependencies": {
69
69
  "postcss": "^8.5.6",
@@ -73,7 +73,7 @@
73
73
  "typescript": "^5.9.3",
74
74
  "vite": "^7.3.1",
75
75
  "vitest": "^4.0.16",
76
- "@univerjs-infra/shared": "0.15.2",
76
+ "@univerjs-infra/shared": "0.15.3",
77
77
  "@univerjs/protocol": "0.1.48"
78
78
  },
79
79
  "scripts": {