@univerjs-pro/live-share 0.15.3-insiders.20260131-b9b8805 → 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 _0x199ffd=_0x5557;(function(_0x25144b,_0x160ed4){const _0x5d60d1=_0x5557,_0x4d102a=_0x25144b();while(!![]){try{const _0x690048=-parseInt(_0x5d60d1(0xe9))/0x1+-parseInt(_0x5d60d1(0xe1))/0x2+parseInt(_0x5d60d1(0xe2))/0x3+parseInt(_0x5d60d1(0xd4))/0x4+parseInt(_0x5d60d1(0xd9))/0x5+parseInt(_0x5d60d1(0xe8))/0x6+-parseInt(_0x5d60d1(0xe3))/0x7*(parseInt(_0x5d60d1(0xd3))/0x8);if(_0x690048===_0x160ed4)break;else _0x4d102a['push'](_0x4d102a['shift']());}catch(_0x3b8bd0){_0x4d102a['push'](_0x4d102a['shift']());}}}(_0x55d5,0x586ed));var h=Object[_0x199ffd(0xd6)],u=(_0x4bdfc1,_0x51ffe8,_0x53bd5e)=>_0x51ffe8 in _0x4bdfc1?h(_0x4bdfc1,_0x51ffe8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53bd5e}):_0x4bdfc1[_0x51ffe8]=_0x53bd5e,S=(_0x1e305c,_0x4f0da6,_0x1fb81b)=>u(_0x1e305c,typeof _0x4f0da6!=_0x199ffd(0xcf)?_0x4f0da6+'':_0x4f0da6,_0x1fb81b);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');function _0x5557(_0x55d507,_0xa68bd6){_0x55d507=_0x55d507-0xc9;const _0x55d59a=_0x55d5();let _0x555760=_0x55d59a[_0x55d507];return _0x555760;}class I extends c['FUniver']{constructor(){const _0x4112c1=_0x199ffd;super(...arguments),S(this,_0x4112c1(0xdd));}[_0x199ffd(0xcd)](_0x47e388){const _0x144e0e=_0x199ffd;this[_0x144e0e(0xdd)]=_0x47e388[_0x144e0e(0xda)](s[_0x144e0e(0xd0)]);}[_0x199ffd(0xc9)](){const _0x2b54e1=_0x199ffd;var _0x387571;const _0x192a7f=this[_0x2b54e1(0xea)][_0x2b54e1(0xda)](n[_0x2b54e1(0xd2)])['getCurrentUnitOfType'](n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x192a7f)throw new Error('No\x20active\x20workbook\x20found.');const _0x7fdb75=_0x192a7f['getUnitId'](),_0x2cac47=this['_liveShareController'][_0x2b54e1(0xdc)](_0x7fdb75);return(_0x387571=_0x2cac47==null?void 0x0:_0x2cac47['getStatus']())!=null?_0x387571:s[_0x2b54e1(0xd8)][_0x2b54e1(0xe7)];}[_0x199ffd(0xcc)](){const _0x40ab56=_0x199ffd,_0x830f31=this[_0x40ab56(0xea)][_0x40ab56(0xda)](n[_0x40ab56(0xd2)])[_0x40ab56(0xe4)](n[_0x40ab56(0xdf)][_0x40ab56(0xd5)]);if(!_0x830f31)throw new Error(_0x40ab56(0xde));const _0x87a03f=_0x830f31[_0x40ab56(0xce)](),_0x3e2489=this['_liveShareController'][_0x40ab56(0xdc)](_0x87a03f);if(!_0x3e2489)throw new Error(_0x40ab56(0xcb));_0x3e2489[_0x40ab56(0xcc)]();}[_0x199ffd(0xe6)](){const _0x13e14d=_0x199ffd,_0x26ed4c=this[_0x13e14d(0xea)][_0x13e14d(0xda)](n[_0x13e14d(0xd2)])[_0x13e14d(0xe4)](n[_0x13e14d(0xdf)]['UNIVER_SHEET']);if(!_0x26ed4c)throw new Error('No\x20active\x20workbook\x20found.');const _0x9f2df7=_0x26ed4c[_0x13e14d(0xce)](),_0x184fdb=this['_liveShareController'][_0x13e14d(0xdc)](_0x9f2df7);if(!_0x184fdb)throw new Error(_0x13e14d(0xcb));_0x184fdb[_0x13e14d(0xe6)]();}[_0x199ffd(0xe0)](){const _0x50dc10=_0x199ffd,_0x142a09=this[_0x50dc10(0xea)][_0x50dc10(0xda)](n[_0x50dc10(0xd2)])['getCurrentUnitOfType'](n[_0x50dc10(0xdf)][_0x50dc10(0xd5)]);if(!_0x142a09)throw new Error('No\x20active\x20workbook\x20found.');const _0x4704d0=_0x142a09[_0x50dc10(0xce)](),_0x3389b3=this[_0x50dc10(0xdd)][_0x50dc10(0xdc)](_0x4704d0);if(!_0x3389b3)throw new Error(_0x50dc10(0xcb));_0x3389b3[_0x50dc10(0xca)]();}[_0x199ffd(0xdb)](){const _0x50941d=_0x199ffd,_0x10d704=this['_injector'][_0x50941d(0xda)](n[_0x50941d(0xd2)])['getCurrentUnitOfType'](n[_0x50941d(0xdf)]['UNIVER_SHEET']);if(!_0x10d704)throw new Error(_0x50941d(0xde));const _0x1532c5=_0x10d704[_0x50941d(0xce)](),_0x11e74c=this[_0x50941d(0xdd)]['getLiveShareCoordinatorSync'](_0x1532c5);if(!_0x11e74c)throw new Error(_0x50941d(0xcb));_0x11e74c[_0x50941d(0xdb)]();}}c[_0x199ffd(0xd1)]['extend'](I);function _0x55d5(){const _0x3169b7=['FUniver','IUniverInstanceService','24WwfljM','2835844vuCfAZ','UNIVER_SHEET','defineProperty','LiveShareStatusEnum','LiveShareStatus','263380LODdjF','get','stopPresenting','getLiveShareCoordinatorSync','_liveShareController','No\x20active\x20workbook\x20found.','UniverInstanceType','startPresenting','698298oDfYkp','2096601NlnwAH','2377270sZwfOe','getCurrentUnitOfType','extend','stopFollowing','IDLE','2436930CaFdBD','136459UAcKat','_injector','getLiveShareStatus','tryStartPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','_initialize','getUnitId','symbol','LiveShareController'];_0x55d5=function(){return _0x3169b7;};return _0x55d5();}class l extends c['FEnum']{get[_0x199ffd(0xd7)](){return s['LiveShareStatus'];}}c['FEnum'][_0x199ffd(0xe5)](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 _0x1fd348=_0xa007;(function(_0x461b18,_0x32e70b){const _0xfb21f7=_0xa007,_0x42e09e=_0x461b18();while(!![]){try{const _0x51eb1d=-parseInt(_0xfb21f7(0xd7))/0x1+-parseInt(_0xfb21f7(0x18b))/0x2*(parseInt(_0xfb21f7(0x155))/0x3)+-parseInt(_0xfb21f7(0x113))/0x4+parseInt(_0xfb21f7(0xea))/0x5*(parseInt(_0xfb21f7(0x10b))/0x6)+parseInt(_0xfb21f7(0x192))/0x7+-parseInt(_0xfb21f7(0xd8))/0x8+parseInt(_0xfb21f7(0xd6))/0x9*(parseInt(_0xfb21f7(0x11b))/0xa);if(_0x51eb1d===_0x32e70b)break;else _0x42e09e['push'](_0x42e09e['shift']());}catch(_0x59f4cd){_0x42e09e['push'](_0x42e09e['shift']());}}}(_0x57a8,0x99762));var T=Object['defineProperty'],U=(_0xce50db,_0x5e800e,_0x1cba45)=>_0x5e800e in _0xce50db?T(_0xce50db,_0x5e800e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cba45}):_0xce50db[_0x5e800e]=_0x1cba45,_=(_0x530ca2,_0x46c029,_0x213282)=>U(_0x530ca2,typeof _0x46c029!=_0x1fd348(0xe4)?_0x46c029+'':_0x46c029,_0x213282);Object[_0x1fd348(0x10d)](exports,Symbol[_0x1fd348(0x120)],{'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:_0xb6bb66,..._0x535a9d}){const _0x2a345a=_0x1fd348,{icon:_0x185216,id:_0x511c18,className:_0x1ec6a6,extend:_0x15939a,..._0x1e9c0e}=_0x535a9d,_0x3dc88d=(_0x2a345a(0x197)+_0x511c18+'\x20'+(_0x1ec6a6||''))[_0x2a345a(0x144)](),_0x3c8d0e=v[_0x2a345a(0x19a)]('_'+H());return j(_0x185216,''+_0x511c18,{'defIds':_0x185216['defIds'],'idSuffix':_0x3c8d0e[_0x2a345a(0x15f)]},{'ref':_0xb6bb66,'className':_0x3dc88d,..._0x1e9c0e},_0x15939a);}function j(_0x1da547,_0x3321a4,_0x5c22d9,_0x1fcf52,_0x166a2a){const _0x1c88ac=_0x1fd348;return v[_0x1c88ac(0x11c)](_0x1da547['tag'],{'key':_0x3321a4,...y(_0x1da547,_0x5c22d9,_0x166a2a),..._0x1fcf52},(F(_0x1da547,_0x5c22d9)[_0x1c88ac(0x17d)]||[])[_0x1c88ac(0x143)]((_0x35b5f6,_0x1b386a)=>j(_0x35b5f6,_0x3321a4+'-'+_0x1da547[_0x1c88ac(0x12a)]+'-'+_0x1b386a,_0x5c22d9,void 0x0,_0x166a2a)));}function y(_0x5304c6,_0x5bff17,_0x2eefae){const _0x2a1d94=_0x1fd348,_0x35eb71={..._0x5304c6[_0x2a1d94(0x135)]};_0x2eefae!=null&&_0x2eefae[_0x2a1d94(0x129)]&&_0x35eb71[_0x2a1d94(0x149)]===_0x2a1d94(0x129)&&(_0x35eb71[_0x2a1d94(0x149)]=_0x2eefae[_0x2a1d94(0x129)]),_0x5304c6[_0x2a1d94(0x12a)]===_0x2a1d94(0x196)&&_0x35eb71['id']&&(_0x35eb71['id']=_0x35eb71['id']+_0x5bff17['idSuffix']),Object['entries'](_0x35eb71)[_0x2a1d94(0x148)](([_0x16865c,_0x3d2fe6])=>{const _0x46e6be=_0x2a1d94;_0x16865c===_0x46e6be(0x196)&&typeof _0x3d2fe6==_0x46e6be(0xe3)&&(_0x35eb71[_0x16865c]=_0x3d2fe6['replace'](/url\(#(.*)\)/,_0x46e6be(0x130)+_0x5bff17['idSuffix']+')'));});const {defIds:_0x5aeb44}=_0x5bff17;return!_0x5aeb44||_0x5aeb44['length']===0x0||(_0x5304c6[_0x2a1d94(0x12a)]===_0x2a1d94(0x18d)&&_0x35eb71[_0x2a1d94(0xe6)]&&(_0x35eb71[_0x2a1d94(0xe6)]=_0x35eb71[_0x2a1d94(0xe6)]+_0x5bff17['idSuffix']),Object[_0x2a1d94(0x181)](_0x35eb71)[_0x2a1d94(0x148)](([_0x525cb0,_0x157c67])=>{const _0x42499f=_0x2a1d94;typeof _0x157c67==_0x42499f(0xe3)&&(_0x35eb71[_0x525cb0]=_0x157c67[_0x42499f(0xe7)](/url\(#(.*)\)/,_0x42499f(0x130)+_0x5bff17[_0x42499f(0x128)]+')'));})),_0x35eb71;}function F(_0x24523b,_0x5a9c9c){const _0x5a4064=_0x1fd348;var _0x27a06b;const {defIds:_0x4f407e}=_0x5a9c9c;return!_0x4f407e||_0x4f407e['length']===0x0?_0x24523b:_0x24523b[_0x5a4064(0x12a)]===_0x5a4064(0x177)&&((_0x27a06b=_0x24523b[_0x5a4064(0x17d)])!=null&&_0x27a06b[_0x5a4064(0x15e)])?{..._0x24523b,'children':_0x24523b[_0x5a4064(0x17d)][_0x5a4064(0x143)](_0x597f1=>typeof _0x597f1[_0x5a4064(0x135)]['id']==_0x5a4064(0xe3)&&_0x4f407e&&_0x4f407e[_0x5a4064(0x160)](_0x597f1['attrs']['id'])?{..._0x597f1,'attrs':{..._0x597f1['attrs'],'id':_0x597f1[_0x5a4064(0x135)]['id']+_0x5a9c9c['idSuffix']}}:_0x597f1)}:_0x24523b;}function H(){const _0x16d97a=_0x1fd348;return Math[_0x16d97a(0x153)]()[_0x16d97a(0x195)](0x24)[_0x16d97a(0x132)](0x2,0x8);}x[_0x1fd348(0x15a)]=_0x1fd348(0xd9);const V={'tag':_0x1fd348(0x183),'attrs':{'xmlns':_0x1fd348(0x139),'fill':_0x1fd348(0x12c),'viewBox':_0x1fd348(0xed),'width':_0x1fd348(0xcd),'height':'1em'},'children':[{'tag':_0x1fd348(0x1aa),'attrs':{'fill':_0x1fd348(0x13a),'d':_0x1fd348(0x164)}},{'tag':'path','attrs':{'fill':_0x1fd348(0x13a),'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':_0x1fd348(0xd5),'clipRule':_0x1fd348(0xd5)}}]},R=v[_0x1fd348(0x1a2)](function(_0x10e687,_0x12d0f2){const _0x1383a9=_0x1fd348;return v[_0x1383a9(0x11c)](x,Object[_0x1383a9(0x11e)]({},_0x10e687,{'id':'live-share-icon','ref':_0x12d0f2,'icon':V}));});R[_0x1fd348(0x15a)]='LiveShareIcon';class E extends o[_0x1fd348(0x18a)]{constructor(){const _0x279a76=_0x1fd348;super(...arguments),_(this,_0x279a76(0x127),new Set()),_(this,_0x279a76(0xff),new Set());}[_0x1fd348(0x12f)](_0x4d2666){const _0x588c09=_0x1fd348;return this['_sharedOperations']['add'](_0x4d2666),o['toDisposable'](()=>this[_0x588c09(0x127)][_0x588c09(0xe8)](_0x4d2666));}[_0x1fd348(0x172)](_0x352cb3){const _0x5d6ed0=_0x1fd348;return this[_0x5d6ed0(0xff)][_0x5d6ed0(0x175)](_0x352cb3),o[_0x5d6ed0(0x168)](()=>this['_reporters'][_0x5d6ed0(0xe8)](_0x352cb3));}[_0x1fd348(0x133)](_0x28022d){const _0x3eb741=_0x1fd348;return this[_0x3eb741(0x127)][_0x3eb741(0x150)](_0x28022d);}[_0x1fd348(0x104)](_0x26acac){const _0x1dcdf7=_0x1fd348;return Array[_0x1dcdf7(0x14f)](this['_reporters'])[_0x1dcdf7(0x143)](_0x37c8e0=>_0x37c8e0(_0x26acac));}}var M=Object[_0x1fd348(0xfe)],P=(_0x3353e8,_0x35afa1,_0x3c7389,_0x3ecc5f)=>{const _0x1f6e4c=_0x1fd348;for(var _0x55c780=_0x3ecc5f>0x1?void 0x0:_0x3ecc5f?M(_0x35afa1,_0x3c7389):_0x35afa1,_0x6b8e98=_0x3353e8[_0x1f6e4c(0x15e)]-0x1,_0x193ebd;_0x6b8e98>=0x0;_0x6b8e98--)(_0x193ebd=_0x3353e8[_0x6b8e98])&&(_0x55c780=_0x193ebd(_0x55c780)||_0x55c780);return _0x55c780;},S=(_0x424158,_0x4a9f3d)=>(_0x12af7e,_0x3082ba)=>_0x4a9f3d(_0x12af7e,_0x3082ba,_0x424158);exports[_0x1fd348(0x152)]=class extends o['RxDisposable']{constructor(_0x24bffe,_0x57ac9d,_0x2bb1d4){const _0x2c4e79=_0x1fd348;super(),_(this,_0x2c4e79(0x17b),new Map()),(this[_0x2c4e79(0xda)]=_0x24bffe,this[_0x2c4e79(0x16b)]=_0x57ac9d,this['_collabSessionService']=_0x2bb1d4,this[_0x2c4e79(0x122)]());}async[_0x1fd348(0x18f)](_0x3f8f40){return this['_entities']['has'](_0x3f8f40)||await this['_startLiveShareCoordinator'](_0x3f8f40),this['_entities']['get'](_0x3f8f40);}[_0x1fd348(0xf4)](_0x3891a2){const _0x21d053=_0x1fd348;var _0x68e4e8;return(_0x68e4e8=this[_0x21d053(0x17b)][_0x21d053(0x115)](_0x3891a2))!=null?_0x68e4e8:null;}[_0x1fd348(0x122)](){const _0xc8f1cb=_0x1fd348;this[_0xc8f1cb(0xda)]['getTypeOfUnitAdded$'](o[_0xc8f1cb(0x119)][_0xc8f1cb(0x187)])[_0xc8f1cb(0xe9)](I['takeUntil'](this['dispose$']))[_0xc8f1cb(0x114)](async _0x513c69=>{const _0x52056f=_0xc8f1cb,_0x2b4c73=_0x513c69['getUnitId']();this[_0x52056f(0x17b)][_0x52056f(0x150)](_0x2b4c73)||this[_0x52056f(0xf9)](_0x2b4c73);}),this[_0xc8f1cb(0xda)][_0xc8f1cb(0x161)](o[_0xc8f1cb(0x119)][_0xc8f1cb(0x187)])[_0xc8f1cb(0xe9)](I['takeUntil'](this[_0xc8f1cb(0x13b)]))[_0xc8f1cb(0x114)](_0x31428c=>{const _0x117f11=_0xc8f1cb,_0x4cbbd7=_0x31428c['getUnitId'](),_0x32b510=this[_0x117f11(0x17b)]['get'](_0x4cbbd7);_0x32b510==null||_0x32b510[_0x117f11(0xf5)]();});}async[_0x1fd348(0xf9)](_0x2a64c5){const _0x3b084f=_0x1fd348,_0x5052fd=await this[_0x3b084f(0x10c)][_0x3b084f(0x140)](_0x2a64c5),_0x93d141=this['_injector']['createInstance'](exports[_0x3b084f(0x137)],_0x2a64c5,_0x5052fd);return _0x93d141[_0x3b084f(0x16c)](),this[_0x3b084f(0x17b)][_0x3b084f(0x100)](_0x2a64c5,_0x93d141),_0x93d141;}},exports[_0x1fd348(0x152)]=P([S(0x0,o[_0x1fd348(0x17f)]),S(0x1,o[_0x1fd348(0x103)](o['Injector'])),S(0x2,o[_0x1fd348(0x103)](b[_0x1fd348(0x101)]))],exports[_0x1fd348(0x152)]);var u=(_0x21db48=>(_0x21db48['OFFLINE']='offline',_0x21db48[_0x1fd348(0x18e)]=_0x1fd348(0x159),_0x21db48[_0x1fd348(0x198)]=_0x1fd348(0x10a),_0x21db48[_0x1fd348(0xe5)]='not-following',_0x21db48[_0x1fd348(0x16e)]=_0x1fd348(0x107),_0x21db48))(u||{});const k=_0x1fd348(0x191),q=0xc8;exports[_0x1fd348(0x137)]=class extends o[_0x1fd348(0x163)]{constructor(_0x4c99ea,_0x1cf720,_0x392b63,_0x55bb72,_0x4cca8c){const _0x48e511=_0x1fd348;super(),_(this,_0x48e511(0x17c),new O[(_0x48e511(0xd2))](_0x48e511(0x159))),_(this,_0x48e511(0xfd),this[_0x48e511(0x17c)][_0x48e511(0x105)]()),_(this,_0x48e511(0x122),!0x1),_(this,_0x48e511(0xe2),null),_(this,_0x48e511(0xeb),null),(this[_0x48e511(0x167)]=_0x4c99ea,this['_collabSession']=_0x1cf720,this['_configService']=_0x392b63,this[_0x48e511(0x19d)]=_0x55bb72,this[_0x48e511(0x117)]=_0x4cca8c);}get[_0x1fd348(0x158)](){const _0x5c51a9=_0x1fd348;return this[_0x5c51a9(0x17c)][_0x5c51a9(0x142)]();}[_0x1fd348(0xf5)](){const _0x50b860=_0x1fd348;var _0x185a68;(_0x185a68=this[_0x50b860(0xe2)])==null||_0x185a68['dispose'](),this[_0x50b860(0x17c)][_0x50b860(0x157)](_0x50b860(0x159)),this['_status$']['complete']();}['getStatus'](){const _0x2525fc=_0x1fd348;return this[_0x2525fc(0x158)];}[_0x1fd348(0x16c)](){const _0x5e558c=_0x1fd348;this[_0x5e558c(0x122)]||(this[_0x5e558c(0x122)]=!0x0,this['_collabSession']['sessionStatus$'][_0x5e558c(0xe9)](I['takeUntil'](this[_0x5e558c(0x13b)]))[_0x5e558c(0x114)](_0x3aba48=>{const _0x40fdcd=_0x5e558c;switch(_0x3aba48){case b[_0x40fdcd(0x188)]['OFFLINE']:this[_0x40fdcd(0x17e)]();break;case b[_0x40fdcd(0x188)]['ONLINE']:this[_0x40fdcd(0x173)]();break;}}),this[_0x5e558c(0xf1)][_0x5e558c(0x185)][_0x5e558c(0xe9)](I[_0x5e558c(0x179)](this[_0x5e558c(0x13b)]))['subscribe'](_0x1061ee=>{const _0x2b050b=_0x5e558c,{eventID:_0x58a740}=_0x1061ee;switch(_0x58a740){case d['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x2b050b(0x180)](_0x1061ee);break;case d[_0x2b050b(0xf0)][_0x2b050b(0x111)]:this[_0x2b050b(0x15c)](_0x1061ee);break;case d[_0x2b050b(0xf0)][_0x2b050b(0x1a6)]:this[_0x2b050b(0xf3)]();break;case d[_0x2b050b(0xf0)][_0x2b050b(0x124)]:this[_0x2b050b(0x156)](_0x1061ee);break;}}));}[_0x1fd348(0xd1)](){const _0x5bee05=_0x1fd348;this[_0x5bee05(0xf1)][_0x5bee05(0x109)]({'eventID':d['CollaborationEvent'][_0x5bee05(0x112)],'data':{'unitID':this[_0x5bee05(0x167)],'userID':this[_0x5bee05(0xf1)][_0x5bee05(0x12b)]()}},this[_0x5bee05(0x167)]);}[_0x1fd348(0x18c)](){const _0x1c3ac7=_0x1fd348;this[_0x1c3ac7(0x158)]===_0x1c3ac7(0x107)&&(this['_status$'][_0x1c3ac7(0x157)](_0x1c3ac7(0x159)),this[_0x1c3ac7(0xf1)][_0x1c3ac7(0x109)]({'eventID':d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1c3ac7(0x167)]}},this['_unitID']));}['startFollowing'](){const _0x3b31ae=_0x1fd348;this[_0x3b31ae(0x158)]==='not-following'&&(this['_status$'][_0x3b31ae(0x157)](_0x3b31ae(0x10a)),this[_0x3b31ae(0x14c)]());}[_0x1fd348(0x118)](){const _0x540ba8=_0x1fd348;this[_0x540ba8(0x158)]===_0x540ba8(0x10a)&&this[_0x540ba8(0xfc)]();}['_handleNewHost'](_0x21824b){const _0x2835cd=_0x1fd348,{presenter:_0x53abf5}=_0x21824b[_0x2835cd(0x1a7)],_0x4db7ac=this[_0x2835cd(0xf1)][_0x2835cd(0x12b)]();this[_0x2835cd(0xeb)]=_0x53abf5,_0x53abf5===_0x4db7ac?(this[_0x2835cd(0xfc)](),this['_startPresenting']()):this[_0x2835cd(0x158)]!==_0x2835cd(0x15b)&&(this[_0x2835cd(0x184)](),this[_0x2835cd(0x14c)]());}[_0x1fd348(0x13f)](){const _0x544c3e=_0x1fd348,_0x3b59eb={'eventID':d['CollaborationEvent'][_0x544c3e(0x13e)]};this[_0x544c3e(0xf1)][_0x544c3e(0x109)](_0x3b59eb,this[_0x544c3e(0x167)]);}[_0x1fd348(0xf3)](){const _0x335622=_0x1fd348;this[_0x335622(0xeb)]=null,this[_0x335622(0x158)]!==_0x335622(0x107)&&this[_0x335622(0x11a)]();}[_0x1fd348(0x156)](_0x2aa9b9){const _0x4385c7=_0x1fd348;if(this[_0x4385c7(0x158)]==='following'&&this[_0x4385c7(0xeb)]===_0x2aa9b9[_0x4385c7(0x1a7)][_0x4385c7(0x102)]){const _0x450b57=d[_0x4385c7(0x16a)](_0x2aa9b9['data'])[_0x4385c7(0xe1)][_0x4385c7(0xe0)]()['find'](_0x46b65a=>_0x46b65a['id']===C[_0x4385c7(0x146)]['id']);if(_0x450b57){const _0x495d69=_0x450b57[_0x4385c7(0x12e)][_0x4385c7(0x16d)],_0x222bc9=_0x450b57[_0x4385c7(0x12e)][_0x4385c7(0x199)]['id'];setTimeout(()=>{const _0x51c554=_0x4385c7;this['_commandService'][_0x51c554(0x193)](C[_0x51c554(0xd4)]['id'],{'unitId':_0x495d69,'subUnitId':_0x222bc9},{'fromCollab':!0x0});});}}}[_0x1fd348(0x10e)](){const _0x424ed8=_0x1fd348;this[_0x424ed8(0x17c)][_0x424ed8(0x157)]('presenting');const _0x1861d5=new Map(),_0x1369e5=this[_0x424ed8(0xe2)]=new o['DisposableCollection']();_0x1369e5['add'](o[_0x424ed8(0x168)](()=>{const _0x31224c=_0x424ed8;_0x1861d5[_0x31224c(0x148)](_0x93ef1a=>_0x93ef1a[_0x31224c(0xcf)]()),_0x1861d5[_0x31224c(0x151)]();})),_0x1369e5[_0x424ed8(0x175)](this[_0x424ed8(0x117)][_0x424ed8(0xdf)](_0x5a5328=>{const _0x4c8a28=_0x424ed8;var _0x554528;if(_0x5a5328[_0x4c8a28(0x11d)]!==o[_0x4c8a28(0xfb)][_0x4c8a28(0x1ab)]||!this[_0x4c8a28(0x19d)]['shouldShareOperation'](_0x5a5328['id']))return;const {id:_0x4e9f66}=_0x5a5328;let _0x232a5c;_0x1861d5[_0x4c8a28(0x150)](_0x4e9f66)?_0x232a5c=_0x1861d5[_0x4c8a28(0x115)](_0x4e9f66):(_0x232a5c=new O[(_0x4c8a28(0x14d))](),_0x1861d5[_0x4c8a28(0x100)](_0x4e9f66,_0x232a5c),_0x232a5c[_0x4c8a28(0xe9)](I[_0x4c8a28(0x131)]((_0x554528=this['_configService'][_0x4c8a28(0x166)](k))!=null?_0x554528:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x9202c7=>{const _0x1b553a=_0x4c8a28;this[_0x1b553a(0xf1)][_0x1b553a(0x109)]({'eventID':d[_0x1b553a(0xf0)][_0x1b553a(0x111)],'data':{'unitID':this[_0x1b553a(0x167)],'operations':{[_0x9202c7['id']]:{'id':_0x9202c7['id'],'params':JSON[_0x1b553a(0xf2)](_0x9202c7[_0x1b553a(0x12e)])}}}},this['_unitID']);})),_0x232a5c[_0x4c8a28(0x157)](_0x5a5328);})),this['_liveShareService']['getInitialStates'](this[_0x424ed8(0x167)])[_0x424ed8(0x148)](_0x47f5ae=>this['_collabSession'][_0x424ed8(0x109)]({'eventID':d[_0x424ed8(0xf0)][_0x424ed8(0x111)],'data':{'unitID':this[_0x424ed8(0x167)],'operations':{[_0x47f5ae['id']]:{'id':_0x47f5ae['id'],'params':JSON[_0x424ed8(0xf2)](_0x47f5ae[_0x424ed8(0x12e)])}}}},this[_0x424ed8(0x167)]));}['_stopPresenting'](){const _0x55ffc7=_0x1fd348;var _0x551858;this['_status$']['next']('idle'),(_0x551858=this[_0x55ffc7(0xe2)])==null||_0x551858[_0x55ffc7(0xf5)](),this[_0x55ffc7(0xe2)]=null;}['_startFollowing'](){const _0x16ad44=_0x1fd348;var _0x588103;(_0x588103=this[_0x16ad44(0xe2)])==null||_0x588103[_0x16ad44(0xf5)](),this[_0x16ad44(0x17c)]['next'](_0x16ad44(0x10a));}['_beIdle'](){const _0x10aecb=_0x1fd348;var _0x5f2d00;this[_0x10aecb(0x17c)]['next'](_0x10aecb(0x159)),(_0x5f2d00=this[_0x10aecb(0xe2)])==null||_0x5f2d00[_0x10aecb(0xf5)](),this[_0x10aecb(0xe2)]=null;}[_0x1fd348(0xfc)](){const _0x59456e=_0x1fd348;var _0x399d41;this['_status$'][_0x59456e(0x157)]('not-following'),(_0x399d41=this[_0x59456e(0xe2)])==null||_0x399d41[_0x59456e(0xf5)]();}[_0x1fd348(0x15c)](_0x19fb85){const _0x39d245=_0x1fd348;if([_0x39d245(0x107),'not-following',_0x39d245(0x11f)]['includes'](this['_status'])||!_0x19fb85[_0x39d245(0x1a7)][_0x39d245(0x145)]||_0x19fb85[_0x39d245(0x1a7)][_0x39d245(0x145)]===this['_collabSession'][_0x39d245(0x12b)]())return;this[_0x39d245(0x158)]===_0x39d245(0x159)&&this[_0x39d245(0x14c)]();const _0x119004=_0x19fb85['data'][_0x39d245(0x19e)];Object[_0x39d245(0x19c)](_0x119004)['forEach'](_0x340090=>{const _0x559404=_0x39d245;this[_0x559404(0x117)][_0x559404(0x193)](_0x340090['id'],_0x340090[_0x559404(0x12e)]?JSON[_0x559404(0x1a8)](_0x340090[_0x559404(0x12e)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3051a5=_0x1fd348;var _0x3be3f0;this[_0x3051a5(0x17c)][_0x3051a5(0x157)](_0x3051a5(0x11f)),(_0x3be3f0=this['_commandDisposable'])==null||_0x3be3f0[_0x3051a5(0xf5)]();}[_0x1fd348(0x173)](){const _0x38639c=_0x1fd348;this[_0x38639c(0x17c)][_0x38639c(0x157)](_0x38639c(0x159)),this['_fetchOperations']();}},exports[_0x1fd348(0x137)]=P([S(0x2,o[_0x1fd348(0xf7)]),S(0x3,o[_0x1fd348(0x103)](E)),S(0x4,o[_0x1fd348(0x126)])],exports[_0x1fd348(0x137)]);function $(){const _0x45a451=_0x1fd348,_0x4f58b8=p['useDependency'](exports['LiveShareController']),_0x72c0de=p[_0x45a451(0x194)](o[_0x45a451(0x17f)]),_0xa0595c=p['useObservable'](()=>_0x72c0de[_0x45a451(0xfa)](o['UniverInstanceType'][_0x45a451(0x187)]),void 0x0,!0x1,[]),[_0x310272,_0x2c83b8]=v[_0x45a451(0x138)](null),[_0x55638c,_0x393d23]=v['useState'](u['IDLE']),_0x146b30=v['useRef'](null);return v[_0x45a451(0x190)](()=>(_0xa0595c&&_0x4f58b8[_0x45a451(0x18f)](_0xa0595c['getUnitId']())[_0x45a451(0x1a1)](_0x4dd9fb=>{const _0x1b0eb7=_0x45a451;_0x2c83b8(_0x4dd9fb),_0x146b30[_0x1b0eb7(0x15f)]=_0x4dd9fb[_0x1b0eb7(0xfd)]['subscribe'](_0x4c7251=>{_0x393d23(_0x4c7251);});}),()=>{const _0x53fc0d=_0x45a451;var _0x93c168;(_0x93c168=_0x146b30['current'])==null||_0x93c168[_0x53fc0d(0x154)](),_0x146b30[_0x53fc0d(0x15f)]=null;}),[_0xa0595c,_0x4f58b8]),_0x310272?l[_0x45a451(0xde)](f['Dropdown'],{'align':_0x45a451(0x14b),'disabled':_0x55638c===u[_0x45a451(0x116)],'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':l[_0x45a451(0xde)](W,{'status':_0x55638c,'coordinator':_0x310272}),'children':l[_0x45a451(0xde)]('button',{'className':f[_0x45a451(0x15d)](_0x45a451(0x14a),{'univer-cursor-not-allowed':_0x55638c===u[_0x45a451(0x116)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x55638c!==u[_0x45a451(0x116)]}),'type':_0x45a451(0x1a5),'children':l[_0x45a451(0xde)](R,{'className':_0x45a451(0xce)})})}):null;}function W(_0x206bcd){const _0x217fbf=_0x1fd348,{status:_0x670296,coordinator:_0x25da6b}=_0x206bcd;switch(_0x670296){case u['IDLE']:return l[_0x217fbf(0xde)](G,{'coordinator':_0x25da6b});case u[_0x217fbf(0x198)]:return l[_0x217fbf(0xde)](B,{'coordinator':_0x25da6b});case u[_0x217fbf(0xe5)]:return l['jsx'](Y,{'coordinator':_0x25da6b});case u['OFFLINE']:return l['jsx'](J,{});case u['PRESENTING']:return l['jsx'](Z,{'coordinator':_0x25da6b});default:return null;}}function G(_0x34e5c3){const _0x22f021=_0x1fd348,{coordinator:_0x466e9e}=_0x34e5c3;return l[_0x22f021(0x162)](l['Fragment'],{'children':[l[_0x22f021(0xde)](_0x22f021(0x141),{'className':_0x22f021(0xd3),'children':_0x22f021(0x17a)}),l[_0x22f021(0xde)](f[_0x22f021(0x14e)],{'onClick':()=>_0x466e9e[_0x22f021(0xd1)](),'children':_0x22f021(0xdc)})]});}function B(_0x446071){const _0x513ac2=_0x1fd348,{coordinator:_0x165e58}=_0x446071;return l[_0x513ac2(0x162)](l[_0x513ac2(0x186)],{'children':[l['jsx'](_0x513ac2(0x141),{'className':_0x513ac2(0xd3),'children':_0x513ac2(0x165)}),l[_0x513ac2(0xde)](f[_0x513ac2(0x14e)],{'onClick':()=>_0x165e58[_0x513ac2(0x118)](),'children':'Stop\x20following'})]});}function Y(_0x3d860b){const _0x5006ad=_0x1fd348,{coordinator:_0x24cbd2}=_0x3d860b;return l['jsxs'](l['Fragment'],{'children':[l[_0x5006ad(0xde)](_0x5006ad(0x141),{'className':_0x5006ad(0xd3),'children':_0x5006ad(0x170)}),l[_0x5006ad(0xde)](f[_0x5006ad(0x14e)],{'variant':_0x5006ad(0xd0),'onClick':()=>_0x24cbd2[_0x5006ad(0x16f)](),'children':_0x5006ad(0x125)})]});}function Z(_0x4afd97){const _0x4f54e1=_0x1fd348,{coordinator:_0x4fef9b}=_0x4afd97;return l[_0x4f54e1(0x162)](l['Fragment'],{'children':[l[_0x4f54e1(0xde)](_0x4f54e1(0x141),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4f54e1(0x10f)}),l[_0x4f54e1(0xde)](f[_0x4f54e1(0x14e)],{'variant':_0x4f54e1(0x123),'onClick':()=>_0x4fef9b[_0x4f54e1(0x18c)](),'children':_0x4f54e1(0x189)})]});}function J(){const _0xbc44f9=_0x1fd348;return l['jsx'](l[_0xbc44f9(0x186)],{'children':_0xbc44f9(0x108)});}function _0xa007(_0x58ec80,_0x4fd6be){_0x58ec80=_0x58ec80-0xcd;const _0x57a874=_0x57a8();let _0xa0077b=_0x57a874[_0x58ec80];return _0xa0077b;}var K=Object[_0x1fd348(0xfe)],z=(_0x527c8c,_0x4d268b,_0x7b7d1f,_0x3c4435)=>{for(var _0x3d1c2f=_0x3c4435>0x1?void 0x0:_0x3c4435?K(_0x4d268b,_0x7b7d1f):_0x4d268b,_0x4d1e8c=_0x527c8c['length']-0x1,_0x49db05;_0x4d1e8c>=0x0;_0x4d1e8c--)(_0x49db05=_0x527c8c[_0x4d1e8c])&&(_0x3d1c2f=_0x49db05(_0x3d1c2f)||_0x3d1c2f);return _0x3d1c2f;},L=(_0x27951d,_0x13da31)=>(_0x482993,_0x1289c4)=>_0x13da31(_0x482993,_0x1289c4,_0x27951d);exports['DesktopLiveShareController']=class extends o[_0x1fd348(0x18a)]{constructor(_0x4a8935,_0x142746){const _0x4f8143=_0x1fd348;super(),this[_0x4f8143(0x16b)]=_0x4a8935,this[_0x4f8143(0x13c)]=_0x142746,this[_0x4f8143(0x182)]();}[_0x1fd348(0x182)](){const _0x236606=_0x1fd348;this[_0x236606(0x19b)](this[_0x236606(0x13c)][_0x236606(0x1a3)](p[_0x236606(0x106)][_0x236606(0x110)],()=>p['connectInjector']($,this[_0x236606(0x16b)])));}},exports[_0x1fd348(0x147)]=z([L(0x0,o[_0x1fd348(0x103)](o[_0x1fd348(0x169)])),L(0x1,p[_0x1fd348(0xee)])],exports[_0x1fd348(0x147)]);const Q=_0x1fd348(0x19f),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x20624c,_0x569e8c,_0x55e309,_0x2bcc46)=>{const _0x253998=_0x1fd348;for(var _0x848755=_0x2bcc46>0x1?void 0x0:_0x2bcc46?X(_0x569e8c,_0x55e309):_0x569e8c,_0x133d3a=_0x20624c[_0x253998(0x15e)]-0x1,_0x481256;_0x133d3a>=0x0;_0x133d3a--)(_0x481256=_0x20624c[_0x133d3a])&&(_0x848755=_0x481256(_0x848755)||_0x848755);return _0x848755;},te=(_0x16f6ff,_0x51a5ec)=>(_0x3e3a67,_0x5e6675)=>_0x51a5ec(_0x3e3a67,_0x5e6675,_0x16f6ff);let m=class extends o[_0x1fd348(0x18a)]{constructor(_0xfa289){const _0x2d0985=_0x1fd348;super(),this[_0x2d0985(0x19d)]=_0xfa289,this[_0x2d0985(0x122)]();}[_0x1fd348(0x122)](){const _0x2dae66=_0x1fd348;[D[_0x2dae66(0xf8)]['id'],D[_0x2dae66(0x136)]['id'],C[_0x2dae66(0xd4)]['id']][_0x2dae66(0x148)](_0x21de4a=>{const _0x5b9f3d=_0x2dae66;this[_0x5b9f3d(0x19b)](this['_liveShareService'][_0x5b9f3d(0x12f)](_0x21de4a));});}};m=ee([te(0x0,o[_0x1fd348(0x103)](E))],m);function _0x57a8(){const _0x40c611=['requireSession','div','getValue','map','trim','presenter','InsertSheetMutation','DesktopLiveShareController','forEach','fill','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','end','_startFollowing','Subject','Button','from','has','clear','LiveShareController','random','unsubscribe','186aEpGVI','_handleNewChangeSets','next','_status','idle','displayName','not-following','_handleOperation','clsx','length','current','includes','getTypeOfUnitDisposed$','jsxs','RxDisposable','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','You\x27re\x20following\x20the\x20presenter','getConfig','_unitID','toDisposable','Injector','parseProtocolChangeset','_injector','init','unitId','PRESENTING','startFollowing','You\x27re\x20not\x20following\x20the\x20presenter','touchDependencies','registerInitialStateReporter','_handleOnline','UNIVER_UNKNOWN','add','_configService','defs','UniverCollaborationClientPlugin','takeUntil','Present\x20this\x20document','_entities','_status$','children','_handleOffline','IUniverInstanceService','_handleNewHost','entries','_mountLiveShare','svg','_stopPresenting','event$','Fragment','UNIVER_SHEET','SessionStatus','Stop\x20presenting','Disposable','19252jLAYvj','stopPresenting','use','IDLE','getLiveShareCoordinator','useEffect','SAME_OPERATION_SHARE_INTERVAL','3508778MzAohG','executeCommand','useDependency','toString','mask','univerjs-icon\x20univerjs-icon-','FOLLOWING','sheet','useRef','disposeWithMe','values','_liveShareService','operations','live-share.config','merge','then','forwardRef','registerComponent','LiveShare','button','LIVESHARE_TERMINATE','data','parse','Plugin','path','OPERATION','1em','univer-size-4','complete','text','tryStartPresenting','BehaviorSubject','univer-mb-3\x20univer-w-full\x20univer-text-sm','SetWorksheetActiveOperation','evenodd','1719LpMfsW','846751TerYCC','6310568PpFyLk','UniverIcon','_univerInstanceService','UNIVER_LIVE_SHARE_PLUGIN','Start','onRendered','jsx','onCommandExecuted','reverse','mutations','_commandDisposable','string','symbol','NOT_FOLLOWING','xlink:href','replace','delete','pipe','25vPmBNu','_presenter','LiveShareStatus','0\x200\x2017\x2017','IUIPartsService','LiveShareService','CollaborationEvent','_collabSession','stringify','_handleTerminate','getLiveShareCoordinatorSync','dispose','override','IConfigService','SetZoomRatioOperation','_startLiveShareCoordinator','getCurrentTypeOfUnit$','CommandType','_stopFollowing','status$','getOwnPropertyDescriptor','_reporters','set','CollaborationSessionService','memberID','Inject','getInitialStates','asObservable','BuiltInUIPart','presenting','You\x27are\x20offline.','send','following','976248zENfEp','_collabSessionService','defineProperty','_startPresenting','You\x27re\x20presenting\x20the\x20document','HEADER_MENU','LIVESHARE_OPERATION','LIVESHARE_REQUEST_HOST','567560RotpZt','subscribe','get','OFFLINE','_commandService','stopFollowing','UniverInstanceType','_beIdle','88380vvlBRb','createElement','type','assign','offline','toStringTag','_config','_init','default','NEW_CHANGESETS','Start\x20following','ICommandService','_sharedOperations','idSuffix','colorChannel1','tag','getMemberID','none','DependentOn','params','registerSharedOperation','url(#$1','throttleTime','substring','shouldShareOperation','UniverLiveSharePlugin','attrs','SetScrollOperation','LiveShareCoordinator','useState','http://www.w3.org/2000/svg','currentColor','dispose$','_uiPartsService','setConfig','LIVESHARE_FETCH_OPERATIONS','_fetchOperations'];_0x57a8=function(){return _0x40c611;};return _0x57a8();}var ie=Object[_0x1fd348(0x10d)],se=Object['getOwnPropertyDescriptor'],ne=(_0x18c99c,_0x29179a,_0x34b2e7)=>_0x29179a in _0x18c99c?ie(_0x18c99c,_0x29179a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34b2e7}):_0x18c99c[_0x29179a]=_0x34b2e7,re=(_0x280ea3,_0x1c651e,_0x55e98e,_0x5d85e8)=>{const _0x42747e=_0x1fd348;for(var _0x482915=_0x5d85e8>0x1?void 0x0:_0x5d85e8?se(_0x1c651e,_0x55e98e):_0x1c651e,_0x8c23c=_0x280ea3[_0x42747e(0x15e)]-0x1,_0x2e6ca3;_0x8c23c>=0x0;_0x8c23c--)(_0x2e6ca3=_0x280ea3[_0x8c23c])&&(_0x482915=_0x2e6ca3(_0x482915)||_0x482915);return _0x482915;},N=(_0x348c3d,_0x2111df)=>(_0x4ffee3,_0x47a5c7)=>_0x2111df(_0x4ffee3,_0x47a5c7,_0x348c3d),A=(_0x459050,_0x1deac3,_0x34f117)=>ne(_0x459050,typeof _0x1deac3!=_0x1fd348(0xe4)?_0x1deac3+'':_0x1deac3,_0x34f117);const oe=_0x1fd348(0xdb);exports['UniverLiveSharePlugin']=class extends o[_0x1fd348(0x1a9)]{constructor(_0x4e191b=w,_0x4f7a88,_0x1333a7){const _0x35a91e=_0x1fd348;super(),this[_0x35a91e(0x121)]=_0x4e191b,this[_0x35a91e(0x16b)]=_0x4f7a88,this[_0x35a91e(0x176)]=_0x1333a7;const {..._0x21f580}=o[_0x35a91e(0x1a0)]({},w,this[_0x35a91e(0x121)]);this['_configService'][_0x35a91e(0x13d)](Q,_0x21f580);}['onStarting'](){const _0xe3f5d=_0x1fd348;o['registerDependencies'](this[_0xe3f5d(0x16b)],o['mergeOverrideWithDependencies']([[E],[exports[_0xe3f5d(0x152)]],[m],[exports['DesktopLiveShareController']]],this[_0xe3f5d(0x121)][_0xe3f5d(0xf6)])),o[_0xe3f5d(0x171)](this[_0xe3f5d(0x16b)],[[m]]);}[_0x1fd348(0xdd)](){const _0x18e4aa=_0x1fd348;o[_0x18e4aa(0x171)](this['_injector'],[[exports[_0x18e4aa(0x147)]]]);}},A(exports[_0x1fd348(0x134)],'type',o['UniverInstanceType'][_0x1fd348(0x174)]),A(exports[_0x1fd348(0x134)],'pluginName',oe),exports[_0x1fd348(0x134)]=re([o[_0x1fd348(0x12d)](b[_0x1fd348(0x178)]),N(0x1,o[_0x1fd348(0x103)](o[_0x1fd348(0x169)])),N(0x2,o[_0x1fd348(0xf7)])],exports[_0x1fd348(0x134)]),exports[_0x1fd348(0x1a4)]=$,exports[_0x1fd348(0xef)]=E,exports[_0x1fd348(0xec)]=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
- function _0x3656(){const _0xb26a08=['getLiveShareCoordinatorSync','18fUtzzN','1042PEDedq','_initialize','getStatus','No\x20active\x20workbook\x20found.','startFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','509LvPkbq','startPresenting','8AzVUzw','stopPresenting','11EhMFVx','87642Aaszak','defineProperty','stopFollowing','756685SZVSnB','6436325JFadDk','getCurrentUnitOfType','getUnitId','_injector','_liveShareController','getLiveShareStatus','UNIVER_SHEET','6827247wXYAJJ','extend','IDLE','151832obIGfY','LiveShareStatusEnum','1056730sCnWCe','get'];_0x3656=function(){return _0xb26a08;};return _0x3656();}function _0x2848(_0x2249a3,_0x5f15aa){_0x2249a3=_0x2249a3-0xc7;const _0x3656ff=_0x3656();let _0x284883=_0x3656ff[_0x2249a3];return _0x284883;}const _0x51c276=_0x2848;(function(_0x21c34f,_0x5be724){const _0x114fa2=_0x2848,_0x2f1d0b=_0x21c34f();while(!![]){try{const _0x319609=-parseInt(_0x114fa2(0xc7))/0x1*(-parseInt(_0x114fa2(0xe0))/0x2)+parseInt(_0x114fa2(0xcc))/0x3+parseInt(_0x114fa2(0xda))/0x4+-parseInt(_0x114fa2(0xcf))/0x5*(-parseInt(_0x114fa2(0xdf))/0x6)+-parseInt(_0x114fa2(0xd0))/0x7*(parseInt(_0x114fa2(0xc9))/0x8)+parseInt(_0x114fa2(0xd7))/0x9+parseInt(_0x114fa2(0xdc))/0xa*(-parseInt(_0x114fa2(0xcb))/0xb);if(_0x319609===_0x5be724)break;else _0x2f1d0b['push'](_0x2f1d0b['shift']());}catch(_0x58f759){_0x2f1d0b['push'](_0x2f1d0b['shift']());}}}(_0x3656,0x7ee7f));var l=Object[_0x51c276(0xcd)],w=(_0x278a8b,_0x2e95b4,_0x4ecd76)=>_0x2e95b4 in _0x278a8b?l(_0x278a8b,_0x2e95b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ecd76}):_0x278a8b[_0x2e95b4]=_0x4ecd76,v=(_0x3876a1,_0x422d25,_0x539fdc)=>w(_0x3876a1,typeof _0x422d25!='symbol'?_0x422d25+'':_0x422d25,_0x539fdc);import{LiveShareController as _0x27c601,LiveShareStatus as _0x177451}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x375412,UniverInstanceType as _0x39c699}from'@univerjs/core';import{FUniver as _0x499820,FEnum as _0x3e7ed2}from'@univerjs/core/facade';class g extends _0x499820{constructor(){const _0x24c0bc=_0x51c276;super(...arguments),v(this,_0x24c0bc(0xd4));}[_0x51c276(0xe1)](_0x522c9d){const _0x1678dd=_0x51c276;this[_0x1678dd(0xd4)]=_0x522c9d['get'](_0x27c601);}[_0x51c276(0xd5)](){const _0x449d2d=_0x51c276;var _0xd8db0d;const _0xcf97ba=this[_0x449d2d(0xd3)]['get'](_0x375412)[_0x449d2d(0xd1)](_0x39c699[_0x449d2d(0xd6)]);if(!_0xcf97ba)throw new Error(_0x449d2d(0xe3));const _0x4285e6=_0xcf97ba[_0x449d2d(0xd2)](),_0x482a0d=this[_0x449d2d(0xd4)][_0x449d2d(0xde)](_0x4285e6);return(_0xd8db0d=_0x482a0d==null?void 0x0:_0x482a0d[_0x449d2d(0xe2)]())!=null?_0xd8db0d:_0x177451[_0x449d2d(0xd9)];}[_0x51c276(0xe4)](){const _0x43044c=_0x51c276,_0x1604d7=this[_0x43044c(0xd3)][_0x43044c(0xdd)](_0x375412)[_0x43044c(0xd1)](_0x39c699['UNIVER_SHEET']);if(!_0x1604d7)throw new Error(_0x43044c(0xe3));const _0x1fa117=_0x1604d7[_0x43044c(0xd2)](),_0x2c5a89=this[_0x43044c(0xd4)]['getLiveShareCoordinatorSync'](_0x1fa117);if(!_0x2c5a89)throw new Error(_0x43044c(0xe5));_0x2c5a89[_0x43044c(0xe4)]();}[_0x51c276(0xce)](){const _0x3b67f1=_0x51c276,_0x26d9f4=this[_0x3b67f1(0xd3)][_0x3b67f1(0xdd)](_0x375412)[_0x3b67f1(0xd1)](_0x39c699[_0x3b67f1(0xd6)]);if(!_0x26d9f4)throw new Error(_0x3b67f1(0xe3));const _0x45dbbb=_0x26d9f4['getUnitId'](),_0x4ad5f1=this[_0x3b67f1(0xd4)]['getLiveShareCoordinatorSync'](_0x45dbbb);if(!_0x4ad5f1)throw new Error(_0x3b67f1(0xe5));_0x4ad5f1[_0x3b67f1(0xce)]();}[_0x51c276(0xc8)](){const _0x226a47=_0x51c276,_0x932ee7=this[_0x226a47(0xd3)][_0x226a47(0xdd)](_0x375412)[_0x226a47(0xd1)](_0x39c699['UNIVER_SHEET']);if(!_0x932ee7)throw new Error(_0x226a47(0xe3));const _0x3f0357=_0x932ee7[_0x226a47(0xd2)](),_0x4ffc2a=this[_0x226a47(0xd4)][_0x226a47(0xde)](_0x3f0357);if(!_0x4ffc2a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4ffc2a['tryStartPresenting']();}[_0x51c276(0xca)](){const _0x4ac2c6=_0x51c276,_0x118424=this[_0x4ac2c6(0xd3)][_0x4ac2c6(0xdd)](_0x375412)[_0x4ac2c6(0xd1)](_0x39c699[_0x4ac2c6(0xd6)]);if(!_0x118424)throw new Error('No\x20active\x20workbook\x20found.');const _0x936750=_0x118424['getUnitId'](),_0x392581=this[_0x4ac2c6(0xd4)][_0x4ac2c6(0xde)](_0x936750);if(!_0x392581)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x392581['stopPresenting']();}}_0x499820[_0x51c276(0xd8)](g);class f extends _0x3e7ed2{get[_0x51c276(0xdb)](){return _0x177451;}}_0x3e7ed2[_0x51c276(0xd8)](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 _0x3a48b0=_0x24da;(function(_0x2d507c,_0x512c41){const _0x37d282=_0x24da,_0x4619a9=_0x2d507c();while(!![]){try{const _0x476a05=parseInt(_0x37d282(0x175))/0x1*(-parseInt(_0x37d282(0x16d))/0x2)+-parseInt(_0x37d282(0x176))/0x3+-parseInt(_0x37d282(0x13f))/0x4*(-parseInt(_0x37d282(0x1c5))/0x5)+-parseInt(_0x37d282(0x141))/0x6*(parseInt(_0x37d282(0x183))/0x7)+parseInt(_0x37d282(0x14b))/0x8*(parseInt(_0x37d282(0x140))/0x9)+-parseInt(_0x37d282(0x12f))/0xa+parseInt(_0x37d282(0x147))/0xb*(parseInt(_0x37d282(0x12a))/0xc);if(_0x476a05===_0x512c41)break;else _0x4619a9['push'](_0x4619a9['shift']());}catch(_0x463c5c){_0x4619a9['push'](_0x4619a9['shift']());}}}(_0x1866,0x639a5));var J=Object[_0x3a48b0(0x126)],K=(_0x58c613,_0x50059e,_0x3bfb64)=>_0x50059e in _0x58c613?J(_0x58c613,_0x50059e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bfb64}):_0x58c613[_0x50059e]=_0x3bfb64,u=(_0x4375c3,_0x103317,_0x54a65a)=>K(_0x4375c3,typeof _0x103317!=_0x3a48b0(0x170)?_0x103317+'':_0x103317,_0x54a65a);import{Disposable as _0xdc5bc,toDisposable as _0x4c5488,Inject as _0x3cc5dc,Injector as _0x40bad3,RxDisposable as _0x3cf172,UniverInstanceType as _0x46f478,DisposableCollection as _0x186e13,CommandType as _0x2644e5,IUniverInstanceService as _0x155e3b,IConfigService as _0x3609ed,ICommandService as _0x4bc6e7,DependentOn as _0xeaa0b2,Plugin as _0x2c2008,merge as _0x46002f,registerDependencies as _0x4ce657,mergeOverrideWithDependencies as _0x46574a,touchDependencies as _0x4d5b23}from'@univerjs/core';import{useDependency as _0x35feb0,useObservable as _0x3009e7,BuiltInUIPart as _0x50392a,connectInjector as _0x57a52a,IUIPartsService as _0x25e85a}from'@univerjs/ui';import{jsx as _0x40948b,jsxs as _0x46a17b,Fragment as _0x4b0054}from'react/jsx-runtime';import{Dropdown as _0x1174ca,clsx as _0x3f01c6,Button as _0x5c9227}from'@univerjs/design';import{useRef as _0x2ed13b,createElement as _0x405a1f,forwardRef as _0x4785f6,useState as _0x247868,useEffect as _0x3307bc}from'react';import{CollaborationEvent as _0x9ef2e2,parseProtocolChangeset as _0x592d58}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4ec532,SessionStatus as _0x3b064e,UniverCollaborationClientPlugin as _0x148cb5}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5e2ee2,SetWorksheetActiveOperation as _0x24e2a6}from'@univerjs/sheets';import{BehaviorSubject as _0x177dca,Subject as _0x24aae7}from'rxjs';import{takeUntil as _0x4e5b2e,throttleTime as _0x3a9e24}from'rxjs/operators';import{SetZoomRatioOperation as _0x46bd10,SetScrollOperation as _0x47775a}from'@univerjs/sheets-ui';function k({ref:_0x232902,..._0x1cffc8}){const _0x332326=_0x3a48b0,{icon:_0x61c613,id:_0x2eb174,className:_0x8d5ce2,extend:_0x4d9904,..._0x56dc15}=_0x1cffc8,_0x199378=(_0x332326(0x1b4)+_0x2eb174+'\x20'+(_0x8d5ce2||''))['trim'](),_0x4dce4e=_0x2ed13b('_'+Oe());return G(_0x61c613,''+_0x2eb174,{'defIds':_0x61c613[_0x332326(0x15b)],'idSuffix':_0x4dce4e[_0x332326(0x161)]},{'ref':_0x232902,'className':_0x199378,..._0x56dc15},_0x4d9904);}function G(_0x313ad4,_0x387da8,_0x8516cb,_0x45eb90,_0x12c850){const _0x5cdde3=_0x3a48b0;return _0x405a1f(_0x313ad4[_0x5cdde3(0x163)],{'key':_0x387da8,...be(_0x313ad4,_0x8516cb,_0x12c850),..._0x45eb90},(Ee(_0x313ad4,_0x8516cb)['children']||[])['map']((_0x1aabee,_0x2a2457)=>G(_0x1aabee,_0x387da8+'-'+_0x313ad4['tag']+'-'+_0x2a2457,_0x8516cb,void 0x0,_0x12c850)));}function be(_0x512cd5,_0x319eb8,_0x4cb4c9){const _0x174cb1=_0x3a48b0,_0x285b23={..._0x512cd5[_0x174cb1(0x1b1)]};_0x4cb4c9!=null&&_0x4cb4c9['colorChannel1']&&_0x285b23['fill']===_0x174cb1(0x1c2)&&(_0x285b23[_0x174cb1(0x138)]=_0x4cb4c9['colorChannel1']),_0x512cd5[_0x174cb1(0x163)]==='mask'&&_0x285b23['id']&&(_0x285b23['id']=_0x285b23['id']+_0x319eb8[_0x174cb1(0x159)]),Object[_0x174cb1(0x122)](_0x285b23)[_0x174cb1(0x1b7)](([_0x44e491,_0x57684d])=>{const _0x55d141=_0x174cb1;_0x44e491==='mask'&&typeof _0x57684d==_0x55d141(0x168)&&(_0x285b23[_0x44e491]=_0x57684d[_0x55d141(0x166)](/url\(#(.*)\)/,'url(#$1'+_0x319eb8[_0x55d141(0x159)]+')'));});const {defIds:_0xe56201}=_0x319eb8;return!_0xe56201||_0xe56201[_0x174cb1(0x1ad)]===0x0||(_0x512cd5[_0x174cb1(0x163)]===_0x174cb1(0x1be)&&_0x285b23[_0x174cb1(0x14e)]&&(_0x285b23[_0x174cb1(0x14e)]=_0x285b23[_0x174cb1(0x14e)]+_0x319eb8[_0x174cb1(0x159)]),Object[_0x174cb1(0x122)](_0x285b23)['forEach'](([_0x522e34,_0x18337b])=>{const _0x11501c=_0x174cb1;typeof _0x18337b==_0x11501c(0x168)&&(_0x285b23[_0x522e34]=_0x18337b['replace'](/url\(#(.*)\)/,_0x11501c(0x16e)+_0x319eb8[_0x11501c(0x159)]+')'));})),_0x285b23;}function Ee(_0x4c9762,_0x2afb29){const _0x1fce3e=_0x3a48b0;var _0xc2ca90;const {defIds:_0x52e97f}=_0x2afb29;return!_0x52e97f||_0x52e97f[_0x1fce3e(0x1ad)]===0x0?_0x4c9762:_0x4c9762[_0x1fce3e(0x163)]===_0x1fce3e(0x1c9)&&((_0xc2ca90=_0x4c9762[_0x1fce3e(0x1b2)])!=null&&_0xc2ca90[_0x1fce3e(0x1ad)])?{..._0x4c9762,'children':_0x4c9762[_0x1fce3e(0x1b2)][_0x1fce3e(0x18e)](_0x2328d9=>typeof _0x2328d9[_0x1fce3e(0x1b1)]['id']==_0x1fce3e(0x168)&&_0x52e97f&&_0x52e97f[_0x1fce3e(0x11e)](_0x2328d9[_0x1fce3e(0x1b1)]['id'])?{..._0x2328d9,'attrs':{..._0x2328d9[_0x1fce3e(0x1b1)],'id':_0x2328d9[_0x1fce3e(0x1b1)]['id']+_0x2afb29[_0x1fce3e(0x159)]}}:_0x2328d9)}:_0x4c9762;}function Oe(){const _0x2fa3ef=_0x3a48b0;return Math[_0x2fa3ef(0x1c3)]()[_0x2fa3ef(0x169)](0x24)[_0x2fa3ef(0x178)](0x2,0x8);}k[_0x3a48b0(0x136)]=_0x3a48b0(0x121);const we={'tag':'svg','attrs':{'xmlns':_0x3a48b0(0x197),'fill':_0x3a48b0(0x164),'viewBox':_0x3a48b0(0x16b),'width':_0x3a48b0(0x154),'height':'1em'},'children':[{'tag':_0x3a48b0(0x198),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x3a48b0(0x198),'attrs':{'fill':_0x3a48b0(0x171),'d':_0x3a48b0(0x1b9),'fillRule':_0x3a48b0(0x167),'clipRule':_0x3a48b0(0x167)}}]},W=_0x4785f6(function(_0x1ebb35,_0xbcdeca){const _0x412318=_0x3a48b0;return _0x405a1f(k,Object[_0x412318(0x15c)]({},_0x1ebb35,{'id':_0x412318(0x19c),'ref':_0xbcdeca,'icon':we}));});function _0x1866(){const _0xf525bc=['setConfig','_handleOnline','IDLE','defineProperty','getTypeOfUnitDisposed$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','pipe','24TvTjhF','FOLLOWING','send','PRESENTING','shouldShareOperation','6215210btnMea','_startFollowing','getConfig','params','override','stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','displayName','LIVESHARE_NEW_HOST','fill','OFFLINE','UNIVER_LIVE_SHARE_PLUGIN','parse','_beIdle','_handleOffline','_startPresenting','2661380uKaeXc','153wSKVWo','6AJSBMw','dispose$','presenting','data','Start\x20following','_handleNewHost','2557522xoUuKO','dispose','requireSession','clear','265568OAYtTh','unitId','operations','xlink:href','registerSharedOperation','_commandService','getOwnPropertyDescriptor','univer-size-4','_config','1em','type','_presenter','div','You\x27re\x20following\x20the\x20presenter','idSuffix','tryStartPresenting','defIds','assign','_handleNewChangeSets','stopPresenting','_handleTerminate','_injector','current','_init','tag','none','NEW_CHANGESETS','replace','evenodd','string','toString','button','0\x200\x2017\x2017','_sharedOperations','37528yCSVmj','url(#$1','mutations','symbol','currentColor','complete','_fetchOperations','_liveShareService','8BDelBK','939162jxNykl','idle','substring','UNIVER_UNKNOWN','_handleOperation','getMemberID','next','getStatus','_configService','disposeWithMe','status$','Stop\x20presenting','_entities','1414147BRJtmR','get','sheet','UNIVER_SHEET','startFollowing','You\x27re\x20presenting\x20the\x20document','add','then','presenter','unsubscribe','init','map','LIVESHARE_TERMINATE','SAME_OPERATION_SHARE_INTERVAL','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','_unitID','default','_status','getInitialStates','createInstance','http://www.w3.org/2000/svg','path','You\x27re\x20not\x20following\x20the\x20presenter','find','_univerInstanceService','live-share-icon','offline','live-share.config','subscribe','ONLINE','_reporters','getValue','set','LiveShareIcon','reverse','from','registerInitialStateReporter','end','has','stringify','_collabSessionService','onStarting','length','LIVESHARE_FETCH_OPERATIONS','_status$','executeCommand','attrs','children','delete','univerjs-icon\x20univerjs-icon-','_collabSession','LIVESHARE_OPERATION','forEach','Stop\x20following','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','getLiveShareCoordinator','_stopPresenting','_stopFollowing','HEADER_MENU','use','_commandDisposable','NOT_FOLLOWING','memberID','colorChannel1','random','onRendered','5wiQhee','OPERATION','following','Start','defs','LIVESHARE_REQUEST_HOST','not-following','getUnitId','includes','_mountLiveShare','text','UniverIcon','entries'];_0x1866=function(){return _0xf525bc;};return _0x1866();}W[_0x3a48b0(0x136)]=_0x3a48b0(0x1a4);class L extends _0xdc5bc{constructor(){const _0x2620a5=_0x3a48b0;super(...arguments),u(this,_0x2620a5(0x16c),new Set()),u(this,_0x2620a5(0x1a1),new Set());}['registerSharedOperation'](_0x403b19){const _0x2dd2be=_0x3a48b0;return this[_0x2dd2be(0x16c)][_0x2dd2be(0x189)](_0x403b19),_0x4c5488(()=>this[_0x2dd2be(0x16c)][_0x2dd2be(0x1b3)](_0x403b19));}[_0x3a48b0(0x1a7)](_0x1b8add){const _0x1099fd=_0x3a48b0;return this[_0x1099fd(0x1a1)][_0x1099fd(0x189)](_0x1b8add),_0x4c5488(()=>this[_0x1099fd(0x1a1)][_0x1099fd(0x1b3)](_0x1b8add));}[_0x3a48b0(0x12e)](_0xdd6c27){const _0x43d216=_0x3a48b0;return this[_0x43d216(0x16c)][_0x43d216(0x1a9)](_0xdd6c27);}[_0x3a48b0(0x195)](_0x5b4295){const _0x1bd610=_0x3a48b0;return Array[_0x1bd610(0x1a6)](this[_0x1bd610(0x1a1)])[_0x1bd610(0x18e)](_0x323240=>_0x323240(_0x5b4295));}}var Ne=Object[_0x3a48b0(0x151)],Y=(_0x426be1,_0x590d59,_0x54995b,_0x5852eb)=>{const _0x4c51d3=_0x3a48b0;for(var _0x1687c9=_0x5852eb>0x1?void 0x0:_0x5852eb?Ne(_0x590d59,_0x54995b):_0x590d59,_0xc2ce7c=_0x426be1[_0x4c51d3(0x1ad)]-0x1,_0x2795cf;_0xc2ce7c>=0x0;_0xc2ce7c--)(_0x2795cf=_0x426be1[_0xc2ce7c])&&(_0x1687c9=_0x2795cf(_0x1687c9)||_0x1687c9);return _0x1687c9;},_=(_0x17a9b8,_0x2f8e53)=>(_0x53faae,_0x5c0e80)=>_0x2f8e53(_0x53faae,_0x5c0e80,_0x17a9b8);let S=class extends _0x3cf172{constructor(_0x249c38,_0x226c37,_0x566a53){const _0x5789cc=_0x3a48b0;super(),u(this,_0x5789cc(0x182),new Map()),(this[_0x5789cc(0x19b)]=_0x249c38,this[_0x5789cc(0x160)]=_0x226c37,this[_0x5789cc(0x1ab)]=_0x566a53,this['_init']());}async[_0x3a48b0(0x1ba)](_0x211db0){const _0x17facf=_0x3a48b0;return this[_0x17facf(0x182)]['has'](_0x211db0)||await this['_startLiveShareCoordinator'](_0x211db0),this['_entities']['get'](_0x211db0);}['getLiveShareCoordinatorSync'](_0x1228d4){const _0x29bdfc=_0x3a48b0;var _0x1a18da;return(_0x1a18da=this[_0x29bdfc(0x182)][_0x29bdfc(0x184)](_0x1228d4))!=null?_0x1a18da:null;}[_0x3a48b0(0x162)](){const _0x379a58=_0x3a48b0;this[_0x379a58(0x19b)]['getTypeOfUnitAdded$'](_0x46f478[_0x379a58(0x186)])['pipe'](_0x4e5b2e(this[_0x379a58(0x142)]))[_0x379a58(0x19f)](async _0x505ca3=>{const _0x810ba0=_0x379a58,_0x3023df=_0x505ca3[_0x810ba0(0x11d)]();this[_0x810ba0(0x182)][_0x810ba0(0x1a9)](_0x3023df)||this['_startLiveShareCoordinator'](_0x3023df);}),this['_univerInstanceService'][_0x379a58(0x127)](_0x46f478[_0x379a58(0x186)])[_0x379a58(0x129)](_0x4e5b2e(this[_0x379a58(0x142)]))['subscribe'](_0xa56c91=>{const _0x2e3340=_0x379a58,_0x41abec=_0xa56c91[_0x2e3340(0x11d)](),_0x22d12d=this[_0x2e3340(0x182)]['get'](_0x41abec);_0x22d12d==null||_0x22d12d['dispose']();});}async['_startLiveShareCoordinator'](_0x4dcdd1){const _0x5b8728=_0x3a48b0,_0x188c9a=await this[_0x5b8728(0x1ab)][_0x5b8728(0x149)](_0x4dcdd1),_0x4aed20=this[_0x5b8728(0x160)][_0x5b8728(0x196)](N,_0x4dcdd1,_0x188c9a);return _0x4aed20[_0x5b8728(0x18d)](),this[_0x5b8728(0x182)]['set'](_0x4dcdd1,_0x4aed20),_0x4aed20;}};S=Y([_(0x0,_0x155e3b),_(0x1,_0x3cc5dc(_0x40bad3)),_(0x2,_0x3cc5dc(_0x4ec532))],S);var c=(_0x501d2b=>(_0x501d2b['OFFLINE']=_0x3a48b0(0x19d),_0x501d2b[_0x3a48b0(0x125)]=_0x3a48b0(0x177),_0x501d2b['FOLLOWING']=_0x3a48b0(0x1c7),_0x501d2b[_0x3a48b0(0x1c0)]=_0x3a48b0(0x11c),_0x501d2b[_0x3a48b0(0x12d)]=_0x3a48b0(0x143),_0x501d2b))(c||{});function _0x24da(_0x3647a3,_0x5a3580){_0x3647a3=_0x3647a3-0x11c;const _0x186615=_0x1866();let _0x24daae=_0x186615[_0x3647a3];return _0x24daae;}const Ce=_0x3a48b0(0x190),De=0xc8;let N=class extends _0x3cf172{constructor(_0x57df03,_0x48eae4,_0x1efcd3,_0x12283d,_0xd7ff84){const _0x317ede=_0x3a48b0;super(),u(this,_0x317ede(0x1af),new _0x177dca(_0x317ede(0x177))),u(this,_0x317ede(0x180),this['_status$']['asObservable']()),u(this,'_init',!0x1),u(this,_0x317ede(0x1bf),null),u(this,'_presenter',null),(this[_0x317ede(0x192)]=_0x57df03,this['_collabSession']=_0x48eae4,this[_0x317ede(0x17e)]=_0x1efcd3,this[_0x317ede(0x174)]=_0x12283d,this[_0x317ede(0x150)]=_0xd7ff84);}get[_0x3a48b0(0x194)](){const _0x2eabae=_0x3a48b0;return this[_0x2eabae(0x1af)][_0x2eabae(0x1a2)]();}[_0x3a48b0(0x148)](){const _0x35a210=_0x3a48b0;var _0xe130a1;(_0xe130a1=this['_commandDisposable'])==null||_0xe130a1[_0x35a210(0x148)](),this[_0x35a210(0x1af)][_0x35a210(0x17c)](_0x35a210(0x177)),this[_0x35a210(0x1af)][_0x35a210(0x172)]();}[_0x3a48b0(0x17d)](){const _0x1f8cd7=_0x3a48b0;return this[_0x1f8cd7(0x194)];}['init'](){const _0x1baaf8=_0x3a48b0;this[_0x1baaf8(0x162)]||(this['_init']=!0x0,this[_0x1baaf8(0x1b5)]['sessionStatus$'][_0x1baaf8(0x129)](_0x4e5b2e(this[_0x1baaf8(0x142)]))[_0x1baaf8(0x19f)](_0x551b30=>{const _0x57ed06=_0x1baaf8;switch(_0x551b30){case _0x3b064e[_0x57ed06(0x139)]:this['_handleOffline']();break;case _0x3b064e[_0x57ed06(0x1a0)]:this[_0x57ed06(0x124)]();break;}}),this[_0x1baaf8(0x1b5)]['event$']['pipe'](_0x4e5b2e(this[_0x1baaf8(0x142)]))[_0x1baaf8(0x19f)](_0x1c41f7=>{const _0x5bea3f=_0x1baaf8,{eventID:_0xeda5de}=_0x1c41f7;switch(_0xeda5de){case _0x9ef2e2[_0x5bea3f(0x137)]:this[_0x5bea3f(0x146)](_0x1c41f7);break;case _0x9ef2e2[_0x5bea3f(0x1b6)]:this[_0x5bea3f(0x17a)](_0x1c41f7);break;case _0x9ef2e2['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x9ef2e2[_0x5bea3f(0x165)]:this['_handleNewChangeSets'](_0x1c41f7);break;}}));}[_0x3a48b0(0x15a)](){const _0x1443de=_0x3a48b0;this[_0x1443de(0x1b5)]['send']({'eventID':_0x9ef2e2[_0x1443de(0x1ca)],'data':{'unitID':this[_0x1443de(0x192)],'userID':this[_0x1443de(0x1b5)][_0x1443de(0x17b)]()}},this[_0x1443de(0x192)]);}[_0x3a48b0(0x15e)](){const _0x525173=_0x3a48b0;this[_0x525173(0x194)]===_0x525173(0x143)&&(this[_0x525173(0x1af)][_0x525173(0x17c)]('idle'),this[_0x525173(0x1b5)][_0x525173(0x12c)]({'eventID':_0x9ef2e2[_0x525173(0x18f)],'data':{'unitID':this[_0x525173(0x192)]}},this[_0x525173(0x192)]));}[_0x3a48b0(0x187)](){const _0x2592fb=_0x3a48b0;this['_status']===_0x2592fb(0x11c)&&(this[_0x2592fb(0x1af)][_0x2592fb(0x17c)](_0x2592fb(0x1c7)),this[_0x2592fb(0x130)]());}[_0x3a48b0(0x134)](){const _0x3306cb=_0x3a48b0;this[_0x3306cb(0x194)]===_0x3306cb(0x1c7)&&this[_0x3306cb(0x1bc)]();}[_0x3a48b0(0x146)](_0x5f04d6){const _0x3a2242=_0x3a48b0,{presenter:_0x168053}=_0x5f04d6['data'],_0x4e8891=this['_collabSession'][_0x3a2242(0x17b)]();this[_0x3a2242(0x156)]=_0x168053,_0x168053===_0x4e8891?(this[_0x3a2242(0x1bc)](),this[_0x3a2242(0x13e)]()):this[_0x3a2242(0x194)]!==_0x3a2242(0x11c)&&(this[_0x3a2242(0x1bb)](),this[_0x3a2242(0x130)]());}[_0x3a48b0(0x173)](){const _0x42f569=_0x3a48b0,_0x5b94f9={'eventID':_0x9ef2e2[_0x42f569(0x1ae)]};this[_0x42f569(0x1b5)][_0x42f569(0x12c)](_0x5b94f9,this[_0x42f569(0x192)]);}[_0x3a48b0(0x15f)](){const _0x4d1f5c=_0x3a48b0;this['_presenter']=null,this[_0x4d1f5c(0x194)]!==_0x4d1f5c(0x143)&&this[_0x4d1f5c(0x13c)]();}[_0x3a48b0(0x15d)](_0x3ed8f5){const _0x2d2aaa=_0x3a48b0;if(this['_status']===_0x2d2aaa(0x1c7)&&this[_0x2d2aaa(0x156)]===_0x3ed8f5[_0x2d2aaa(0x144)][_0x2d2aaa(0x1c1)]){const _0x20a341=_0x592d58(_0x3ed8f5[_0x2d2aaa(0x144)])[_0x2d2aaa(0x16f)][_0x2d2aaa(0x1a5)]()[_0x2d2aaa(0x19a)](_0x15e5d1=>_0x15e5d1['id']===_0x5e2ee2['id']);if(_0x20a341){const _0x340248=_0x20a341[_0x2d2aaa(0x132)][_0x2d2aaa(0x14c)],_0x31bf19=_0x20a341['params'][_0x2d2aaa(0x185)]['id'];setTimeout(()=>{const _0x457913=_0x2d2aaa;this[_0x457913(0x150)][_0x457913(0x1b0)](_0x24e2a6['id'],{'unitId':_0x340248,'subUnitId':_0x31bf19},{'fromCollab':!0x0});});}}}[_0x3a48b0(0x13e)](){const _0x450884=_0x3a48b0;this[_0x450884(0x1af)][_0x450884(0x17c)](_0x450884(0x143));const _0x4da42f=new Map(),_0x2e1c46=this['_commandDisposable']=new _0x186e13();_0x2e1c46['add'](_0x4c5488(()=>{const _0x1ff69f=_0x450884;_0x4da42f[_0x1ff69f(0x1b7)](_0x3d2d5c=>_0x3d2d5c[_0x1ff69f(0x172)]()),_0x4da42f[_0x1ff69f(0x14a)]();})),_0x2e1c46[_0x450884(0x189)](this['_commandService']['onCommandExecuted'](_0x488f48=>{const _0x4ee9ba=_0x450884;var _0x3aa6e4;if(_0x488f48[_0x4ee9ba(0x155)]!==_0x2644e5[_0x4ee9ba(0x1c6)]||!this['_liveShareService'][_0x4ee9ba(0x12e)](_0x488f48['id']))return;const {id:_0x4a1f48}=_0x488f48;let _0x23a48b;_0x4da42f[_0x4ee9ba(0x1a9)](_0x4a1f48)?_0x23a48b=_0x4da42f[_0x4ee9ba(0x184)](_0x4a1f48):(_0x23a48b=new _0x24aae7(),_0x4da42f[_0x4ee9ba(0x1a3)](_0x4a1f48,_0x23a48b),_0x23a48b[_0x4ee9ba(0x129)](_0x3a9e24((_0x3aa6e4=this['_configService'][_0x4ee9ba(0x131)](Ce))!=null?_0x3aa6e4:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ee9ba(0x19f)](_0x1a749c=>{const _0x3851d2=_0x4ee9ba;this['_collabSession'][_0x3851d2(0x12c)]({'eventID':_0x9ef2e2[_0x3851d2(0x1b6)],'data':{'unitID':this[_0x3851d2(0x192)],'operations':{[_0x1a749c['id']]:{'id':_0x1a749c['id'],'params':JSON[_0x3851d2(0x1aa)](_0x1a749c[_0x3851d2(0x132)])}}}},this[_0x3851d2(0x192)]);})),_0x23a48b[_0x4ee9ba(0x17c)](_0x488f48);})),this['_liveShareService'][_0x450884(0x195)](this[_0x450884(0x192)])[_0x450884(0x1b7)](_0x22a9e8=>this['_collabSession'][_0x450884(0x12c)]({'eventID':_0x9ef2e2[_0x450884(0x1b6)],'data':{'unitID':this[_0x450884(0x192)],'operations':{[_0x22a9e8['id']]:{'id':_0x22a9e8['id'],'params':JSON[_0x450884(0x1aa)](_0x22a9e8['params'])}}}},this['_unitID']));}[_0x3a48b0(0x1bb)](){const _0x4d99f9=_0x3a48b0;var _0x350df0;this[_0x4d99f9(0x1af)]['next'](_0x4d99f9(0x177)),(_0x350df0=this['_commandDisposable'])==null||_0x350df0[_0x4d99f9(0x148)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x41de9c=_0x3a48b0;var _0x4205c4;(_0x4205c4=this[_0x41de9c(0x1bf)])==null||_0x4205c4[_0x41de9c(0x148)](),this[_0x41de9c(0x1af)][_0x41de9c(0x17c)](_0x41de9c(0x1c7));}[_0x3a48b0(0x13c)](){const _0x14b3c2=_0x3a48b0;var _0x17e11c;this[_0x14b3c2(0x1af)][_0x14b3c2(0x17c)](_0x14b3c2(0x177)),(_0x17e11c=this[_0x14b3c2(0x1bf)])==null||_0x17e11c[_0x14b3c2(0x148)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x54f8af=_0x3a48b0;var _0xdadff5;this['_status$'][_0x54f8af(0x17c)](_0x54f8af(0x11c)),(_0xdadff5=this[_0x54f8af(0x1bf)])==null||_0xdadff5[_0x54f8af(0x148)]();}[_0x3a48b0(0x17a)](_0x1468a5){const _0x4d68b1=_0x3a48b0;if(['presenting',_0x4d68b1(0x11c),_0x4d68b1(0x19d)][_0x4d68b1(0x11e)](this[_0x4d68b1(0x194)])||!_0x1468a5[_0x4d68b1(0x144)][_0x4d68b1(0x18b)]||_0x1468a5[_0x4d68b1(0x144)][_0x4d68b1(0x18b)]===this[_0x4d68b1(0x1b5)][_0x4d68b1(0x17b)]())return;this['_status']===_0x4d68b1(0x177)&&this[_0x4d68b1(0x130)]();const _0x9a57d8=_0x1468a5[_0x4d68b1(0x144)][_0x4d68b1(0x14d)];Object['values'](_0x9a57d8)[_0x4d68b1(0x1b7)](_0xd38bf=>{const _0x54e3c0=_0x4d68b1;this[_0x54e3c0(0x150)][_0x54e3c0(0x1b0)](_0xd38bf['id'],_0xd38bf[_0x54e3c0(0x132)]?JSON[_0x54e3c0(0x13b)](_0xd38bf[_0x54e3c0(0x132)]):null,{'fromCollab':!0x0});});}[_0x3a48b0(0x13d)](){const _0x805573=_0x3a48b0;var _0x282d05;this[_0x805573(0x1af)][_0x805573(0x17c)](_0x805573(0x19d)),(_0x282d05=this[_0x805573(0x1bf)])==null||_0x282d05['dispose']();}[_0x3a48b0(0x124)](){const _0x3803cf=_0x3a48b0;this[_0x3803cf(0x1af)][_0x3803cf(0x17c)](_0x3803cf(0x177)),this[_0x3803cf(0x173)]();}};N=Y([_(0x2,_0x3609ed),_(0x3,_0x3cc5dc(L)),_(0x4,_0x4bc6e7)],N);function Le(){const _0x1dd7f3=_0x3a48b0,_0x220fc1=_0x35feb0(S),_0x41f9ed=_0x35feb0(_0x155e3b),_0x27a5a5=_0x3009e7(()=>_0x41f9ed['getCurrentTypeOfUnit$'](_0x46f478[_0x1dd7f3(0x186)]),void 0x0,!0x1,[]),[_0x325e28,_0x4593a4]=_0x247868(null),[_0x391ad4,_0x505d3f]=_0x247868(c['IDLE']),_0x199200=_0x2ed13b(null);return _0x3307bc(()=>(_0x27a5a5&&_0x220fc1[_0x1dd7f3(0x1ba)](_0x27a5a5['getUnitId']())[_0x1dd7f3(0x18a)](_0x50c59a=>{const _0x48d3c8=_0x1dd7f3;_0x4593a4(_0x50c59a),_0x199200['current']=_0x50c59a['status$'][_0x48d3c8(0x19f)](_0x299cd2=>{_0x505d3f(_0x299cd2);});}),()=>{const _0x50347a=_0x1dd7f3;var _0x1b46e6;(_0x1b46e6=_0x199200[_0x50347a(0x161)])==null||_0x1b46e6[_0x50347a(0x18c)](),_0x199200[_0x50347a(0x161)]=null;}),[_0x27a5a5,_0x220fc1]),_0x325e28?_0x40948b(_0x1174ca,{'align':_0x1dd7f3(0x1a8),'disabled':_0x391ad4===c[_0x1dd7f3(0x139)],'className':_0x1dd7f3(0x191),'overlay':_0x40948b(Re,{'status':_0x391ad4,'coordinator':_0x325e28}),'children':_0x40948b(_0x1dd7f3(0x16a),{'className':_0x3f01c6(_0x1dd7f3(0x128),{'univer-cursor-not-allowed':_0x391ad4===c[_0x1dd7f3(0x139)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x391ad4!==c[_0x1dd7f3(0x139)]}),'type':_0x1dd7f3(0x16a),'children':_0x40948b(W,{'className':_0x1dd7f3(0x152)})})}):null;}function Re(_0x4653c1){const _0x41b38b=_0x3a48b0,{status:_0x4ebb78,coordinator:_0x14e0c5}=_0x4653c1;switch(_0x4ebb78){case c[_0x41b38b(0x125)]:return _0x40948b($e,{'coordinator':_0x14e0c5});case c[_0x41b38b(0x12b)]:return _0x40948b(xe,{'coordinator':_0x14e0c5});case c[_0x41b38b(0x1c0)]:return _0x40948b(Pe,{'coordinator':_0x14e0c5});case c[_0x41b38b(0x139)]:return _0x40948b(Te,{});case c[_0x41b38b(0x12d)]:return _0x40948b(Ae,{'coordinator':_0x14e0c5});default:return null;}}function $e(_0x33afa8){const _0x31c492=_0x3a48b0,{coordinator:_0x3e3239}=_0x33afa8;return _0x46a17b(_0x4b0054,{'children':[_0x40948b(_0x31c492(0x157),{'className':_0x31c492(0x135),'children':'Present\x20this\x20document'}),_0x40948b(_0x5c9227,{'onClick':()=>_0x3e3239[_0x31c492(0x15a)](),'children':_0x31c492(0x1c8)})]});}function xe(_0xa947ff){const _0xdea2a5=_0x3a48b0,{coordinator:_0x557512}=_0xa947ff;return _0x46a17b(_0x4b0054,{'children':[_0x40948b(_0xdea2a5(0x157),{'className':_0xdea2a5(0x135),'children':_0xdea2a5(0x158)}),_0x40948b(_0x5c9227,{'onClick':()=>_0x557512['stopFollowing'](),'children':_0xdea2a5(0x1b8)})]});}function Pe(_0x2e9be2){const _0x6e8af8=_0x3a48b0,{coordinator:_0x5ca46e}=_0x2e9be2;return _0x46a17b(_0x4b0054,{'children':[_0x40948b(_0x6e8af8(0x157),{'className':_0x6e8af8(0x135),'children':_0x6e8af8(0x199)}),_0x40948b(_0x5c9227,{'variant':_0x6e8af8(0x120),'onClick':()=>_0x5ca46e[_0x6e8af8(0x187)](),'children':_0x6e8af8(0x145)})]});}function Ae(_0x5331e7){const _0x2d043f=_0x3a48b0,{coordinator:_0xe776f0}=_0x5331e7;return _0x46a17b(_0x4b0054,{'children':[_0x40948b(_0x2d043f(0x157),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2d043f(0x188)}),_0x40948b(_0x5c9227,{'variant':_0x2d043f(0x193),'onClick':()=>_0xe776f0[_0x2d043f(0x15e)](),'children':_0x2d043f(0x181)})]});}function Te(){return _0x40948b(_0x4b0054,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x3a48b0(0x151)],He=(_0x4a69c4,_0x32bce8,_0x5693ed,_0x413137)=>{const _0x488d8d=_0x3a48b0;for(var _0x548eaf=_0x413137>0x1?void 0x0:_0x413137?Fe(_0x32bce8,_0x5693ed):_0x32bce8,_0x2c1cdb=_0x4a69c4[_0x488d8d(0x1ad)]-0x1,_0x26f9dd;_0x2c1cdb>=0x0;_0x2c1cdb--)(_0x26f9dd=_0x4a69c4[_0x2c1cdb])&&(_0x548eaf=_0x26f9dd(_0x548eaf)||_0x548eaf);return _0x548eaf;},A=(_0x2f94a2,_0x259a0f)=>(_0x24eefb,_0x1d8309)=>_0x259a0f(_0x24eefb,_0x1d8309,_0x2f94a2);let m=class extends _0xdc5bc{constructor(_0x13f32b,_0x4b0d54){const _0x3f5d68=_0x3a48b0;super(),this[_0x3f5d68(0x160)]=_0x13f32b,this['_uiPartsService']=_0x4b0d54,this[_0x3f5d68(0x11f)]();}[_0x3a48b0(0x11f)](){const _0x1c31ff=_0x3a48b0;this[_0x1c31ff(0x17f)](this['_uiPartsService']['registerComponent'](_0x50392a[_0x1c31ff(0x1bd)],()=>_0x57a52a(Le,this['_injector'])));}};m=He([A(0x0,_0x3cc5dc(_0x40bad3)),A(0x1,_0x25e85a)],m);const ye=_0x3a48b0(0x19e),T={};var Ue=Object[_0x3a48b0(0x151)],Ve=(_0x311b28,_0x3beadb,_0x1158ac,_0x2ba428)=>{const _0x1105b6=_0x3a48b0;for(var _0x1f739c=_0x2ba428>0x1?void 0x0:_0x2ba428?Ue(_0x3beadb,_0x1158ac):_0x3beadb,_0x13ddf6=_0x311b28[_0x1105b6(0x1ad)]-0x1,_0x18edc4;_0x13ddf6>=0x0;_0x13ddf6--)(_0x18edc4=_0x311b28[_0x13ddf6])&&(_0x1f739c=_0x18edc4(_0x1f739c)||_0x1f739c);return _0x1f739c;},je=(_0x20d649,_0x1602b7)=>(_0x19066f,_0x41a38d)=>_0x1602b7(_0x19066f,_0x41a38d,_0x20d649);let I=class extends _0xdc5bc{constructor(_0x125572){const _0x135ca9=_0x3a48b0;super(),this['_liveShareService']=_0x125572,this[_0x135ca9(0x162)]();}[_0x3a48b0(0x162)](){const _0x277dce=_0x3a48b0;[_0x46bd10['id'],_0x47775a['id'],_0x24e2a6['id']][_0x277dce(0x1b7)](_0x1e44ca=>{const _0x2331ca=_0x277dce;this[_0x2331ca(0x17f)](this[_0x2331ca(0x174)][_0x2331ca(0x14f)](_0x1e44ca));});}};I=Ve([je(0x0,_0x3cc5dc(L))],I);var Me=Object[_0x3a48b0(0x126)],ke=Object[_0x3a48b0(0x151)],Ge=(_0xe55661,_0x3c480b,_0x4dfbd4)=>_0x3c480b in _0xe55661?Me(_0xe55661,_0x3c480b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4dfbd4}):_0xe55661[_0x3c480b]=_0x4dfbd4,We=(_0x55fd20,_0xc2fe45,_0x1a713a,_0x1b4b67)=>{const _0x271d6d=_0x3a48b0;for(var _0x470ab0=_0x1b4b67>0x1?void 0x0:_0x1b4b67?ke(_0xc2fe45,_0x1a713a):_0xc2fe45,_0x90d51c=_0x55fd20[_0x271d6d(0x1ad)]-0x1,_0x236415;_0x90d51c>=0x0;_0x90d51c--)(_0x236415=_0x55fd20[_0x90d51c])&&(_0x470ab0=_0x236415(_0x470ab0)||_0x470ab0);return _0x470ab0;},F=(_0x322ae5,_0x233444)=>(_0x463364,_0x10fa6f)=>_0x233444(_0x463364,_0x10fa6f,_0x322ae5),B=(_0x187df0,_0x3de30b,_0x3f1a60)=>Ge(_0x187df0,typeof _0x3de30b!=_0x3a48b0(0x170)?_0x3de30b+'':_0x3de30b,_0x3f1a60);const Ye=_0x3a48b0(0x13a);let b=class extends _0x2c2008{constructor(_0x5324dd=T,_0x395ee4,_0x35a199){const _0x1b72c3=_0x3a48b0;super(),this[_0x1b72c3(0x153)]=_0x5324dd,this[_0x1b72c3(0x160)]=_0x395ee4,this[_0x1b72c3(0x17e)]=_0x35a199;const {..._0x3e8f36}=_0x46002f({},T,this[_0x1b72c3(0x153)]);this[_0x1b72c3(0x17e)][_0x1b72c3(0x123)](ye,_0x3e8f36);}[_0x3a48b0(0x1ac)](){const _0x5e874e=_0x3a48b0;_0x4ce657(this['_injector'],_0x46574a([[L],[S],[I],[m]],this[_0x5e874e(0x153)][_0x5e874e(0x133)])),_0x4d5b23(this[_0x5e874e(0x160)],[[I]]);}[_0x3a48b0(0x1c4)](){const _0x4b2ec1=_0x3a48b0;_0x4d5b23(this[_0x4b2ec1(0x160)],[[m]]);}};B(b,'type',_0x46f478[_0x3a48b0(0x179)]),B(b,'pluginName',Ye),b=We([_0xeaa0b2(_0x148cb5),F(0x1,_0x3cc5dc(_0x40bad3)),F(0x2,_0x3609ed)],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
- function _0x3656(){const _0xb26a08=['getLiveShareCoordinatorSync','18fUtzzN','1042PEDedq','_initialize','getStatus','No\x20active\x20workbook\x20found.','startFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','509LvPkbq','startPresenting','8AzVUzw','stopPresenting','11EhMFVx','87642Aaszak','defineProperty','stopFollowing','756685SZVSnB','6436325JFadDk','getCurrentUnitOfType','getUnitId','_injector','_liveShareController','getLiveShareStatus','UNIVER_SHEET','6827247wXYAJJ','extend','IDLE','151832obIGfY','LiveShareStatusEnum','1056730sCnWCe','get'];_0x3656=function(){return _0xb26a08;};return _0x3656();}function _0x2848(_0x2249a3,_0x5f15aa){_0x2249a3=_0x2249a3-0xc7;const _0x3656ff=_0x3656();let _0x284883=_0x3656ff[_0x2249a3];return _0x284883;}const _0x51c276=_0x2848;(function(_0x21c34f,_0x5be724){const _0x114fa2=_0x2848,_0x2f1d0b=_0x21c34f();while(!![]){try{const _0x319609=-parseInt(_0x114fa2(0xc7))/0x1*(-parseInt(_0x114fa2(0xe0))/0x2)+parseInt(_0x114fa2(0xcc))/0x3+parseInt(_0x114fa2(0xda))/0x4+-parseInt(_0x114fa2(0xcf))/0x5*(-parseInt(_0x114fa2(0xdf))/0x6)+-parseInt(_0x114fa2(0xd0))/0x7*(parseInt(_0x114fa2(0xc9))/0x8)+parseInt(_0x114fa2(0xd7))/0x9+parseInt(_0x114fa2(0xdc))/0xa*(-parseInt(_0x114fa2(0xcb))/0xb);if(_0x319609===_0x5be724)break;else _0x2f1d0b['push'](_0x2f1d0b['shift']());}catch(_0x58f759){_0x2f1d0b['push'](_0x2f1d0b['shift']());}}}(_0x3656,0x7ee7f));var l=Object[_0x51c276(0xcd)],w=(_0x278a8b,_0x2e95b4,_0x4ecd76)=>_0x2e95b4 in _0x278a8b?l(_0x278a8b,_0x2e95b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ecd76}):_0x278a8b[_0x2e95b4]=_0x4ecd76,v=(_0x3876a1,_0x422d25,_0x539fdc)=>w(_0x3876a1,typeof _0x422d25!='symbol'?_0x422d25+'':_0x422d25,_0x539fdc);import{LiveShareController as _0x27c601,LiveShareStatus as _0x177451}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x375412,UniverInstanceType as _0x39c699}from'@univerjs/core';import{FUniver as _0x499820,FEnum as _0x3e7ed2}from'@univerjs/core/facade';class g extends _0x499820{constructor(){const _0x24c0bc=_0x51c276;super(...arguments),v(this,_0x24c0bc(0xd4));}[_0x51c276(0xe1)](_0x522c9d){const _0x1678dd=_0x51c276;this[_0x1678dd(0xd4)]=_0x522c9d['get'](_0x27c601);}[_0x51c276(0xd5)](){const _0x449d2d=_0x51c276;var _0xd8db0d;const _0xcf97ba=this[_0x449d2d(0xd3)]['get'](_0x375412)[_0x449d2d(0xd1)](_0x39c699[_0x449d2d(0xd6)]);if(!_0xcf97ba)throw new Error(_0x449d2d(0xe3));const _0x4285e6=_0xcf97ba[_0x449d2d(0xd2)](),_0x482a0d=this[_0x449d2d(0xd4)][_0x449d2d(0xde)](_0x4285e6);return(_0xd8db0d=_0x482a0d==null?void 0x0:_0x482a0d[_0x449d2d(0xe2)]())!=null?_0xd8db0d:_0x177451[_0x449d2d(0xd9)];}[_0x51c276(0xe4)](){const _0x43044c=_0x51c276,_0x1604d7=this[_0x43044c(0xd3)][_0x43044c(0xdd)](_0x375412)[_0x43044c(0xd1)](_0x39c699['UNIVER_SHEET']);if(!_0x1604d7)throw new Error(_0x43044c(0xe3));const _0x1fa117=_0x1604d7[_0x43044c(0xd2)](),_0x2c5a89=this[_0x43044c(0xd4)]['getLiveShareCoordinatorSync'](_0x1fa117);if(!_0x2c5a89)throw new Error(_0x43044c(0xe5));_0x2c5a89[_0x43044c(0xe4)]();}[_0x51c276(0xce)](){const _0x3b67f1=_0x51c276,_0x26d9f4=this[_0x3b67f1(0xd3)][_0x3b67f1(0xdd)](_0x375412)[_0x3b67f1(0xd1)](_0x39c699[_0x3b67f1(0xd6)]);if(!_0x26d9f4)throw new Error(_0x3b67f1(0xe3));const _0x45dbbb=_0x26d9f4['getUnitId'](),_0x4ad5f1=this[_0x3b67f1(0xd4)]['getLiveShareCoordinatorSync'](_0x45dbbb);if(!_0x4ad5f1)throw new Error(_0x3b67f1(0xe5));_0x4ad5f1[_0x3b67f1(0xce)]();}[_0x51c276(0xc8)](){const _0x226a47=_0x51c276,_0x932ee7=this[_0x226a47(0xd3)][_0x226a47(0xdd)](_0x375412)[_0x226a47(0xd1)](_0x39c699['UNIVER_SHEET']);if(!_0x932ee7)throw new Error(_0x226a47(0xe3));const _0x3f0357=_0x932ee7[_0x226a47(0xd2)](),_0x4ffc2a=this[_0x226a47(0xd4)][_0x226a47(0xde)](_0x3f0357);if(!_0x4ffc2a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4ffc2a['tryStartPresenting']();}[_0x51c276(0xca)](){const _0x4ac2c6=_0x51c276,_0x118424=this[_0x4ac2c6(0xd3)][_0x4ac2c6(0xdd)](_0x375412)[_0x4ac2c6(0xd1)](_0x39c699[_0x4ac2c6(0xd6)]);if(!_0x118424)throw new Error('No\x20active\x20workbook\x20found.');const _0x936750=_0x118424['getUnitId'](),_0x392581=this[_0x4ac2c6(0xd4)][_0x4ac2c6(0xde)](_0x936750);if(!_0x392581)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x392581['stopPresenting']();}}_0x499820[_0x51c276(0xd8)](g);class f extends _0x3e7ed2{get[_0x51c276(0xdb)](){return _0x177451;}}_0x3e7ed2[_0x51c276(0xd8)](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 _0x3a48b0=_0x24da;(function(_0x2d507c,_0x512c41){const _0x37d282=_0x24da,_0x4619a9=_0x2d507c();while(!![]){try{const _0x476a05=parseInt(_0x37d282(0x175))/0x1*(-parseInt(_0x37d282(0x16d))/0x2)+-parseInt(_0x37d282(0x176))/0x3+-parseInt(_0x37d282(0x13f))/0x4*(-parseInt(_0x37d282(0x1c5))/0x5)+-parseInt(_0x37d282(0x141))/0x6*(parseInt(_0x37d282(0x183))/0x7)+parseInt(_0x37d282(0x14b))/0x8*(parseInt(_0x37d282(0x140))/0x9)+-parseInt(_0x37d282(0x12f))/0xa+parseInt(_0x37d282(0x147))/0xb*(parseInt(_0x37d282(0x12a))/0xc);if(_0x476a05===_0x512c41)break;else _0x4619a9['push'](_0x4619a9['shift']());}catch(_0x463c5c){_0x4619a9['push'](_0x4619a9['shift']());}}}(_0x1866,0x639a5));var J=Object[_0x3a48b0(0x126)],K=(_0x58c613,_0x50059e,_0x3bfb64)=>_0x50059e in _0x58c613?J(_0x58c613,_0x50059e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bfb64}):_0x58c613[_0x50059e]=_0x3bfb64,u=(_0x4375c3,_0x103317,_0x54a65a)=>K(_0x4375c3,typeof _0x103317!=_0x3a48b0(0x170)?_0x103317+'':_0x103317,_0x54a65a);import{Disposable as _0xdc5bc,toDisposable as _0x4c5488,Inject as _0x3cc5dc,Injector as _0x40bad3,RxDisposable as _0x3cf172,UniverInstanceType as _0x46f478,DisposableCollection as _0x186e13,CommandType as _0x2644e5,IUniverInstanceService as _0x155e3b,IConfigService as _0x3609ed,ICommandService as _0x4bc6e7,DependentOn as _0xeaa0b2,Plugin as _0x2c2008,merge as _0x46002f,registerDependencies as _0x4ce657,mergeOverrideWithDependencies as _0x46574a,touchDependencies as _0x4d5b23}from'@univerjs/core';import{useDependency as _0x35feb0,useObservable as _0x3009e7,BuiltInUIPart as _0x50392a,connectInjector as _0x57a52a,IUIPartsService as _0x25e85a}from'@univerjs/ui';import{jsx as _0x40948b,jsxs as _0x46a17b,Fragment as _0x4b0054}from'react/jsx-runtime';import{Dropdown as _0x1174ca,clsx as _0x3f01c6,Button as _0x5c9227}from'@univerjs/design';import{useRef as _0x2ed13b,createElement as _0x405a1f,forwardRef as _0x4785f6,useState as _0x247868,useEffect as _0x3307bc}from'react';import{CollaborationEvent as _0x9ef2e2,parseProtocolChangeset as _0x592d58}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4ec532,SessionStatus as _0x3b064e,UniverCollaborationClientPlugin as _0x148cb5}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5e2ee2,SetWorksheetActiveOperation as _0x24e2a6}from'@univerjs/sheets';import{BehaviorSubject as _0x177dca,Subject as _0x24aae7}from'rxjs';import{takeUntil as _0x4e5b2e,throttleTime as _0x3a9e24}from'rxjs/operators';import{SetZoomRatioOperation as _0x46bd10,SetScrollOperation as _0x47775a}from'@univerjs/sheets-ui';function k({ref:_0x232902,..._0x1cffc8}){const _0x332326=_0x3a48b0,{icon:_0x61c613,id:_0x2eb174,className:_0x8d5ce2,extend:_0x4d9904,..._0x56dc15}=_0x1cffc8,_0x199378=(_0x332326(0x1b4)+_0x2eb174+'\x20'+(_0x8d5ce2||''))['trim'](),_0x4dce4e=_0x2ed13b('_'+Oe());return G(_0x61c613,''+_0x2eb174,{'defIds':_0x61c613[_0x332326(0x15b)],'idSuffix':_0x4dce4e[_0x332326(0x161)]},{'ref':_0x232902,'className':_0x199378,..._0x56dc15},_0x4d9904);}function G(_0x313ad4,_0x387da8,_0x8516cb,_0x45eb90,_0x12c850){const _0x5cdde3=_0x3a48b0;return _0x405a1f(_0x313ad4[_0x5cdde3(0x163)],{'key':_0x387da8,...be(_0x313ad4,_0x8516cb,_0x12c850),..._0x45eb90},(Ee(_0x313ad4,_0x8516cb)['children']||[])['map']((_0x1aabee,_0x2a2457)=>G(_0x1aabee,_0x387da8+'-'+_0x313ad4['tag']+'-'+_0x2a2457,_0x8516cb,void 0x0,_0x12c850)));}function be(_0x512cd5,_0x319eb8,_0x4cb4c9){const _0x174cb1=_0x3a48b0,_0x285b23={..._0x512cd5[_0x174cb1(0x1b1)]};_0x4cb4c9!=null&&_0x4cb4c9['colorChannel1']&&_0x285b23['fill']===_0x174cb1(0x1c2)&&(_0x285b23[_0x174cb1(0x138)]=_0x4cb4c9['colorChannel1']),_0x512cd5[_0x174cb1(0x163)]==='mask'&&_0x285b23['id']&&(_0x285b23['id']=_0x285b23['id']+_0x319eb8[_0x174cb1(0x159)]),Object[_0x174cb1(0x122)](_0x285b23)[_0x174cb1(0x1b7)](([_0x44e491,_0x57684d])=>{const _0x55d141=_0x174cb1;_0x44e491==='mask'&&typeof _0x57684d==_0x55d141(0x168)&&(_0x285b23[_0x44e491]=_0x57684d[_0x55d141(0x166)](/url\(#(.*)\)/,'url(#$1'+_0x319eb8[_0x55d141(0x159)]+')'));});const {defIds:_0xe56201}=_0x319eb8;return!_0xe56201||_0xe56201[_0x174cb1(0x1ad)]===0x0||(_0x512cd5[_0x174cb1(0x163)]===_0x174cb1(0x1be)&&_0x285b23[_0x174cb1(0x14e)]&&(_0x285b23[_0x174cb1(0x14e)]=_0x285b23[_0x174cb1(0x14e)]+_0x319eb8[_0x174cb1(0x159)]),Object[_0x174cb1(0x122)](_0x285b23)['forEach'](([_0x522e34,_0x18337b])=>{const _0x11501c=_0x174cb1;typeof _0x18337b==_0x11501c(0x168)&&(_0x285b23[_0x522e34]=_0x18337b['replace'](/url\(#(.*)\)/,_0x11501c(0x16e)+_0x319eb8[_0x11501c(0x159)]+')'));})),_0x285b23;}function Ee(_0x4c9762,_0x2afb29){const _0x1fce3e=_0x3a48b0;var _0xc2ca90;const {defIds:_0x52e97f}=_0x2afb29;return!_0x52e97f||_0x52e97f[_0x1fce3e(0x1ad)]===0x0?_0x4c9762:_0x4c9762[_0x1fce3e(0x163)]===_0x1fce3e(0x1c9)&&((_0xc2ca90=_0x4c9762[_0x1fce3e(0x1b2)])!=null&&_0xc2ca90[_0x1fce3e(0x1ad)])?{..._0x4c9762,'children':_0x4c9762[_0x1fce3e(0x1b2)][_0x1fce3e(0x18e)](_0x2328d9=>typeof _0x2328d9[_0x1fce3e(0x1b1)]['id']==_0x1fce3e(0x168)&&_0x52e97f&&_0x52e97f[_0x1fce3e(0x11e)](_0x2328d9[_0x1fce3e(0x1b1)]['id'])?{..._0x2328d9,'attrs':{..._0x2328d9[_0x1fce3e(0x1b1)],'id':_0x2328d9[_0x1fce3e(0x1b1)]['id']+_0x2afb29[_0x1fce3e(0x159)]}}:_0x2328d9)}:_0x4c9762;}function Oe(){const _0x2fa3ef=_0x3a48b0;return Math[_0x2fa3ef(0x1c3)]()[_0x2fa3ef(0x169)](0x24)[_0x2fa3ef(0x178)](0x2,0x8);}k[_0x3a48b0(0x136)]=_0x3a48b0(0x121);const we={'tag':'svg','attrs':{'xmlns':_0x3a48b0(0x197),'fill':_0x3a48b0(0x164),'viewBox':_0x3a48b0(0x16b),'width':_0x3a48b0(0x154),'height':'1em'},'children':[{'tag':_0x3a48b0(0x198),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x3a48b0(0x198),'attrs':{'fill':_0x3a48b0(0x171),'d':_0x3a48b0(0x1b9),'fillRule':_0x3a48b0(0x167),'clipRule':_0x3a48b0(0x167)}}]},W=_0x4785f6(function(_0x1ebb35,_0xbcdeca){const _0x412318=_0x3a48b0;return _0x405a1f(k,Object[_0x412318(0x15c)]({},_0x1ebb35,{'id':_0x412318(0x19c),'ref':_0xbcdeca,'icon':we}));});function _0x1866(){const _0xf525bc=['setConfig','_handleOnline','IDLE','defineProperty','getTypeOfUnitDisposed$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','pipe','24TvTjhF','FOLLOWING','send','PRESENTING','shouldShareOperation','6215210btnMea','_startFollowing','getConfig','params','override','stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','displayName','LIVESHARE_NEW_HOST','fill','OFFLINE','UNIVER_LIVE_SHARE_PLUGIN','parse','_beIdle','_handleOffline','_startPresenting','2661380uKaeXc','153wSKVWo','6AJSBMw','dispose$','presenting','data','Start\x20following','_handleNewHost','2557522xoUuKO','dispose','requireSession','clear','265568OAYtTh','unitId','operations','xlink:href','registerSharedOperation','_commandService','getOwnPropertyDescriptor','univer-size-4','_config','1em','type','_presenter','div','You\x27re\x20following\x20the\x20presenter','idSuffix','tryStartPresenting','defIds','assign','_handleNewChangeSets','stopPresenting','_handleTerminate','_injector','current','_init','tag','none','NEW_CHANGESETS','replace','evenodd','string','toString','button','0\x200\x2017\x2017','_sharedOperations','37528yCSVmj','url(#$1','mutations','symbol','currentColor','complete','_fetchOperations','_liveShareService','8BDelBK','939162jxNykl','idle','substring','UNIVER_UNKNOWN','_handleOperation','getMemberID','next','getStatus','_configService','disposeWithMe','status$','Stop\x20presenting','_entities','1414147BRJtmR','get','sheet','UNIVER_SHEET','startFollowing','You\x27re\x20presenting\x20the\x20document','add','then','presenter','unsubscribe','init','map','LIVESHARE_TERMINATE','SAME_OPERATION_SHARE_INTERVAL','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','_unitID','default','_status','getInitialStates','createInstance','http://www.w3.org/2000/svg','path','You\x27re\x20not\x20following\x20the\x20presenter','find','_univerInstanceService','live-share-icon','offline','live-share.config','subscribe','ONLINE','_reporters','getValue','set','LiveShareIcon','reverse','from','registerInitialStateReporter','end','has','stringify','_collabSessionService','onStarting','length','LIVESHARE_FETCH_OPERATIONS','_status$','executeCommand','attrs','children','delete','univerjs-icon\x20univerjs-icon-','_collabSession','LIVESHARE_OPERATION','forEach','Stop\x20following','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','getLiveShareCoordinator','_stopPresenting','_stopFollowing','HEADER_MENU','use','_commandDisposable','NOT_FOLLOWING','memberID','colorChannel1','random','onRendered','5wiQhee','OPERATION','following','Start','defs','LIVESHARE_REQUEST_HOST','not-following','getUnitId','includes','_mountLiveShare','text','UniverIcon','entries'];_0x1866=function(){return _0xf525bc;};return _0x1866();}W[_0x3a48b0(0x136)]=_0x3a48b0(0x1a4);class L extends _0xdc5bc{constructor(){const _0x2620a5=_0x3a48b0;super(...arguments),u(this,_0x2620a5(0x16c),new Set()),u(this,_0x2620a5(0x1a1),new Set());}['registerSharedOperation'](_0x403b19){const _0x2dd2be=_0x3a48b0;return this[_0x2dd2be(0x16c)][_0x2dd2be(0x189)](_0x403b19),_0x4c5488(()=>this[_0x2dd2be(0x16c)][_0x2dd2be(0x1b3)](_0x403b19));}[_0x3a48b0(0x1a7)](_0x1b8add){const _0x1099fd=_0x3a48b0;return this[_0x1099fd(0x1a1)][_0x1099fd(0x189)](_0x1b8add),_0x4c5488(()=>this[_0x1099fd(0x1a1)][_0x1099fd(0x1b3)](_0x1b8add));}[_0x3a48b0(0x12e)](_0xdd6c27){const _0x43d216=_0x3a48b0;return this[_0x43d216(0x16c)][_0x43d216(0x1a9)](_0xdd6c27);}[_0x3a48b0(0x195)](_0x5b4295){const _0x1bd610=_0x3a48b0;return Array[_0x1bd610(0x1a6)](this[_0x1bd610(0x1a1)])[_0x1bd610(0x18e)](_0x323240=>_0x323240(_0x5b4295));}}var Ne=Object[_0x3a48b0(0x151)],Y=(_0x426be1,_0x590d59,_0x54995b,_0x5852eb)=>{const _0x4c51d3=_0x3a48b0;for(var _0x1687c9=_0x5852eb>0x1?void 0x0:_0x5852eb?Ne(_0x590d59,_0x54995b):_0x590d59,_0xc2ce7c=_0x426be1[_0x4c51d3(0x1ad)]-0x1,_0x2795cf;_0xc2ce7c>=0x0;_0xc2ce7c--)(_0x2795cf=_0x426be1[_0xc2ce7c])&&(_0x1687c9=_0x2795cf(_0x1687c9)||_0x1687c9);return _0x1687c9;},_=(_0x17a9b8,_0x2f8e53)=>(_0x53faae,_0x5c0e80)=>_0x2f8e53(_0x53faae,_0x5c0e80,_0x17a9b8);let S=class extends _0x3cf172{constructor(_0x249c38,_0x226c37,_0x566a53){const _0x5789cc=_0x3a48b0;super(),u(this,_0x5789cc(0x182),new Map()),(this[_0x5789cc(0x19b)]=_0x249c38,this[_0x5789cc(0x160)]=_0x226c37,this[_0x5789cc(0x1ab)]=_0x566a53,this['_init']());}async[_0x3a48b0(0x1ba)](_0x211db0){const _0x17facf=_0x3a48b0;return this[_0x17facf(0x182)]['has'](_0x211db0)||await this['_startLiveShareCoordinator'](_0x211db0),this['_entities']['get'](_0x211db0);}['getLiveShareCoordinatorSync'](_0x1228d4){const _0x29bdfc=_0x3a48b0;var _0x1a18da;return(_0x1a18da=this[_0x29bdfc(0x182)][_0x29bdfc(0x184)](_0x1228d4))!=null?_0x1a18da:null;}[_0x3a48b0(0x162)](){const _0x379a58=_0x3a48b0;this[_0x379a58(0x19b)]['getTypeOfUnitAdded$'](_0x46f478[_0x379a58(0x186)])['pipe'](_0x4e5b2e(this[_0x379a58(0x142)]))[_0x379a58(0x19f)](async _0x505ca3=>{const _0x810ba0=_0x379a58,_0x3023df=_0x505ca3[_0x810ba0(0x11d)]();this[_0x810ba0(0x182)][_0x810ba0(0x1a9)](_0x3023df)||this['_startLiveShareCoordinator'](_0x3023df);}),this['_univerInstanceService'][_0x379a58(0x127)](_0x46f478[_0x379a58(0x186)])[_0x379a58(0x129)](_0x4e5b2e(this[_0x379a58(0x142)]))['subscribe'](_0xa56c91=>{const _0x2e3340=_0x379a58,_0x41abec=_0xa56c91[_0x2e3340(0x11d)](),_0x22d12d=this[_0x2e3340(0x182)]['get'](_0x41abec);_0x22d12d==null||_0x22d12d['dispose']();});}async['_startLiveShareCoordinator'](_0x4dcdd1){const _0x5b8728=_0x3a48b0,_0x188c9a=await this[_0x5b8728(0x1ab)][_0x5b8728(0x149)](_0x4dcdd1),_0x4aed20=this[_0x5b8728(0x160)][_0x5b8728(0x196)](N,_0x4dcdd1,_0x188c9a);return _0x4aed20[_0x5b8728(0x18d)](),this[_0x5b8728(0x182)]['set'](_0x4dcdd1,_0x4aed20),_0x4aed20;}};S=Y([_(0x0,_0x155e3b),_(0x1,_0x3cc5dc(_0x40bad3)),_(0x2,_0x3cc5dc(_0x4ec532))],S);var c=(_0x501d2b=>(_0x501d2b['OFFLINE']=_0x3a48b0(0x19d),_0x501d2b[_0x3a48b0(0x125)]=_0x3a48b0(0x177),_0x501d2b['FOLLOWING']=_0x3a48b0(0x1c7),_0x501d2b[_0x3a48b0(0x1c0)]=_0x3a48b0(0x11c),_0x501d2b[_0x3a48b0(0x12d)]=_0x3a48b0(0x143),_0x501d2b))(c||{});function _0x24da(_0x3647a3,_0x5a3580){_0x3647a3=_0x3647a3-0x11c;const _0x186615=_0x1866();let _0x24daae=_0x186615[_0x3647a3];return _0x24daae;}const Ce=_0x3a48b0(0x190),De=0xc8;let N=class extends _0x3cf172{constructor(_0x57df03,_0x48eae4,_0x1efcd3,_0x12283d,_0xd7ff84){const _0x317ede=_0x3a48b0;super(),u(this,_0x317ede(0x1af),new _0x177dca(_0x317ede(0x177))),u(this,_0x317ede(0x180),this['_status$']['asObservable']()),u(this,'_init',!0x1),u(this,_0x317ede(0x1bf),null),u(this,'_presenter',null),(this[_0x317ede(0x192)]=_0x57df03,this['_collabSession']=_0x48eae4,this[_0x317ede(0x17e)]=_0x1efcd3,this[_0x317ede(0x174)]=_0x12283d,this[_0x317ede(0x150)]=_0xd7ff84);}get[_0x3a48b0(0x194)](){const _0x2eabae=_0x3a48b0;return this[_0x2eabae(0x1af)][_0x2eabae(0x1a2)]();}[_0x3a48b0(0x148)](){const _0x35a210=_0x3a48b0;var _0xe130a1;(_0xe130a1=this['_commandDisposable'])==null||_0xe130a1[_0x35a210(0x148)](),this[_0x35a210(0x1af)][_0x35a210(0x17c)](_0x35a210(0x177)),this[_0x35a210(0x1af)][_0x35a210(0x172)]();}[_0x3a48b0(0x17d)](){const _0x1f8cd7=_0x3a48b0;return this[_0x1f8cd7(0x194)];}['init'](){const _0x1baaf8=_0x3a48b0;this[_0x1baaf8(0x162)]||(this['_init']=!0x0,this[_0x1baaf8(0x1b5)]['sessionStatus$'][_0x1baaf8(0x129)](_0x4e5b2e(this[_0x1baaf8(0x142)]))[_0x1baaf8(0x19f)](_0x551b30=>{const _0x57ed06=_0x1baaf8;switch(_0x551b30){case _0x3b064e[_0x57ed06(0x139)]:this['_handleOffline']();break;case _0x3b064e[_0x57ed06(0x1a0)]:this[_0x57ed06(0x124)]();break;}}),this[_0x1baaf8(0x1b5)]['event$']['pipe'](_0x4e5b2e(this[_0x1baaf8(0x142)]))[_0x1baaf8(0x19f)](_0x1c41f7=>{const _0x5bea3f=_0x1baaf8,{eventID:_0xeda5de}=_0x1c41f7;switch(_0xeda5de){case _0x9ef2e2[_0x5bea3f(0x137)]:this[_0x5bea3f(0x146)](_0x1c41f7);break;case _0x9ef2e2[_0x5bea3f(0x1b6)]:this[_0x5bea3f(0x17a)](_0x1c41f7);break;case _0x9ef2e2['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x9ef2e2[_0x5bea3f(0x165)]:this['_handleNewChangeSets'](_0x1c41f7);break;}}));}[_0x3a48b0(0x15a)](){const _0x1443de=_0x3a48b0;this[_0x1443de(0x1b5)]['send']({'eventID':_0x9ef2e2[_0x1443de(0x1ca)],'data':{'unitID':this[_0x1443de(0x192)],'userID':this[_0x1443de(0x1b5)][_0x1443de(0x17b)]()}},this[_0x1443de(0x192)]);}[_0x3a48b0(0x15e)](){const _0x525173=_0x3a48b0;this[_0x525173(0x194)]===_0x525173(0x143)&&(this[_0x525173(0x1af)][_0x525173(0x17c)]('idle'),this[_0x525173(0x1b5)][_0x525173(0x12c)]({'eventID':_0x9ef2e2[_0x525173(0x18f)],'data':{'unitID':this[_0x525173(0x192)]}},this[_0x525173(0x192)]));}[_0x3a48b0(0x187)](){const _0x2592fb=_0x3a48b0;this['_status']===_0x2592fb(0x11c)&&(this[_0x2592fb(0x1af)][_0x2592fb(0x17c)](_0x2592fb(0x1c7)),this[_0x2592fb(0x130)]());}[_0x3a48b0(0x134)](){const _0x3306cb=_0x3a48b0;this[_0x3306cb(0x194)]===_0x3306cb(0x1c7)&&this[_0x3306cb(0x1bc)]();}[_0x3a48b0(0x146)](_0x5f04d6){const _0x3a2242=_0x3a48b0,{presenter:_0x168053}=_0x5f04d6['data'],_0x4e8891=this['_collabSession'][_0x3a2242(0x17b)]();this[_0x3a2242(0x156)]=_0x168053,_0x168053===_0x4e8891?(this[_0x3a2242(0x1bc)](),this[_0x3a2242(0x13e)]()):this[_0x3a2242(0x194)]!==_0x3a2242(0x11c)&&(this[_0x3a2242(0x1bb)](),this[_0x3a2242(0x130)]());}[_0x3a48b0(0x173)](){const _0x42f569=_0x3a48b0,_0x5b94f9={'eventID':_0x9ef2e2[_0x42f569(0x1ae)]};this[_0x42f569(0x1b5)][_0x42f569(0x12c)](_0x5b94f9,this[_0x42f569(0x192)]);}[_0x3a48b0(0x15f)](){const _0x4d1f5c=_0x3a48b0;this['_presenter']=null,this[_0x4d1f5c(0x194)]!==_0x4d1f5c(0x143)&&this[_0x4d1f5c(0x13c)]();}[_0x3a48b0(0x15d)](_0x3ed8f5){const _0x2d2aaa=_0x3a48b0;if(this['_status']===_0x2d2aaa(0x1c7)&&this[_0x2d2aaa(0x156)]===_0x3ed8f5[_0x2d2aaa(0x144)][_0x2d2aaa(0x1c1)]){const _0x20a341=_0x592d58(_0x3ed8f5[_0x2d2aaa(0x144)])[_0x2d2aaa(0x16f)][_0x2d2aaa(0x1a5)]()[_0x2d2aaa(0x19a)](_0x15e5d1=>_0x15e5d1['id']===_0x5e2ee2['id']);if(_0x20a341){const _0x340248=_0x20a341[_0x2d2aaa(0x132)][_0x2d2aaa(0x14c)],_0x31bf19=_0x20a341['params'][_0x2d2aaa(0x185)]['id'];setTimeout(()=>{const _0x457913=_0x2d2aaa;this[_0x457913(0x150)][_0x457913(0x1b0)](_0x24e2a6['id'],{'unitId':_0x340248,'subUnitId':_0x31bf19},{'fromCollab':!0x0});});}}}[_0x3a48b0(0x13e)](){const _0x450884=_0x3a48b0;this[_0x450884(0x1af)][_0x450884(0x17c)](_0x450884(0x143));const _0x4da42f=new Map(),_0x2e1c46=this['_commandDisposable']=new _0x186e13();_0x2e1c46['add'](_0x4c5488(()=>{const _0x1ff69f=_0x450884;_0x4da42f[_0x1ff69f(0x1b7)](_0x3d2d5c=>_0x3d2d5c[_0x1ff69f(0x172)]()),_0x4da42f[_0x1ff69f(0x14a)]();})),_0x2e1c46[_0x450884(0x189)](this['_commandService']['onCommandExecuted'](_0x488f48=>{const _0x4ee9ba=_0x450884;var _0x3aa6e4;if(_0x488f48[_0x4ee9ba(0x155)]!==_0x2644e5[_0x4ee9ba(0x1c6)]||!this['_liveShareService'][_0x4ee9ba(0x12e)](_0x488f48['id']))return;const {id:_0x4a1f48}=_0x488f48;let _0x23a48b;_0x4da42f[_0x4ee9ba(0x1a9)](_0x4a1f48)?_0x23a48b=_0x4da42f[_0x4ee9ba(0x184)](_0x4a1f48):(_0x23a48b=new _0x24aae7(),_0x4da42f[_0x4ee9ba(0x1a3)](_0x4a1f48,_0x23a48b),_0x23a48b[_0x4ee9ba(0x129)](_0x3a9e24((_0x3aa6e4=this['_configService'][_0x4ee9ba(0x131)](Ce))!=null?_0x3aa6e4:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ee9ba(0x19f)](_0x1a749c=>{const _0x3851d2=_0x4ee9ba;this['_collabSession'][_0x3851d2(0x12c)]({'eventID':_0x9ef2e2[_0x3851d2(0x1b6)],'data':{'unitID':this[_0x3851d2(0x192)],'operations':{[_0x1a749c['id']]:{'id':_0x1a749c['id'],'params':JSON[_0x3851d2(0x1aa)](_0x1a749c[_0x3851d2(0x132)])}}}},this[_0x3851d2(0x192)]);})),_0x23a48b[_0x4ee9ba(0x17c)](_0x488f48);})),this['_liveShareService'][_0x450884(0x195)](this[_0x450884(0x192)])[_0x450884(0x1b7)](_0x22a9e8=>this['_collabSession'][_0x450884(0x12c)]({'eventID':_0x9ef2e2[_0x450884(0x1b6)],'data':{'unitID':this[_0x450884(0x192)],'operations':{[_0x22a9e8['id']]:{'id':_0x22a9e8['id'],'params':JSON[_0x450884(0x1aa)](_0x22a9e8['params'])}}}},this['_unitID']));}[_0x3a48b0(0x1bb)](){const _0x4d99f9=_0x3a48b0;var _0x350df0;this[_0x4d99f9(0x1af)]['next'](_0x4d99f9(0x177)),(_0x350df0=this['_commandDisposable'])==null||_0x350df0[_0x4d99f9(0x148)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x41de9c=_0x3a48b0;var _0x4205c4;(_0x4205c4=this[_0x41de9c(0x1bf)])==null||_0x4205c4[_0x41de9c(0x148)](),this[_0x41de9c(0x1af)][_0x41de9c(0x17c)](_0x41de9c(0x1c7));}[_0x3a48b0(0x13c)](){const _0x14b3c2=_0x3a48b0;var _0x17e11c;this[_0x14b3c2(0x1af)][_0x14b3c2(0x17c)](_0x14b3c2(0x177)),(_0x17e11c=this[_0x14b3c2(0x1bf)])==null||_0x17e11c[_0x14b3c2(0x148)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x54f8af=_0x3a48b0;var _0xdadff5;this['_status$'][_0x54f8af(0x17c)](_0x54f8af(0x11c)),(_0xdadff5=this[_0x54f8af(0x1bf)])==null||_0xdadff5[_0x54f8af(0x148)]();}[_0x3a48b0(0x17a)](_0x1468a5){const _0x4d68b1=_0x3a48b0;if(['presenting',_0x4d68b1(0x11c),_0x4d68b1(0x19d)][_0x4d68b1(0x11e)](this[_0x4d68b1(0x194)])||!_0x1468a5[_0x4d68b1(0x144)][_0x4d68b1(0x18b)]||_0x1468a5[_0x4d68b1(0x144)][_0x4d68b1(0x18b)]===this[_0x4d68b1(0x1b5)][_0x4d68b1(0x17b)]())return;this['_status']===_0x4d68b1(0x177)&&this[_0x4d68b1(0x130)]();const _0x9a57d8=_0x1468a5[_0x4d68b1(0x144)][_0x4d68b1(0x14d)];Object['values'](_0x9a57d8)[_0x4d68b1(0x1b7)](_0xd38bf=>{const _0x54e3c0=_0x4d68b1;this[_0x54e3c0(0x150)][_0x54e3c0(0x1b0)](_0xd38bf['id'],_0xd38bf[_0x54e3c0(0x132)]?JSON[_0x54e3c0(0x13b)](_0xd38bf[_0x54e3c0(0x132)]):null,{'fromCollab':!0x0});});}[_0x3a48b0(0x13d)](){const _0x805573=_0x3a48b0;var _0x282d05;this[_0x805573(0x1af)][_0x805573(0x17c)](_0x805573(0x19d)),(_0x282d05=this[_0x805573(0x1bf)])==null||_0x282d05['dispose']();}[_0x3a48b0(0x124)](){const _0x3803cf=_0x3a48b0;this[_0x3803cf(0x1af)][_0x3803cf(0x17c)](_0x3803cf(0x177)),this[_0x3803cf(0x173)]();}};N=Y([_(0x2,_0x3609ed),_(0x3,_0x3cc5dc(L)),_(0x4,_0x4bc6e7)],N);function Le(){const _0x1dd7f3=_0x3a48b0,_0x220fc1=_0x35feb0(S),_0x41f9ed=_0x35feb0(_0x155e3b),_0x27a5a5=_0x3009e7(()=>_0x41f9ed['getCurrentTypeOfUnit$'](_0x46f478[_0x1dd7f3(0x186)]),void 0x0,!0x1,[]),[_0x325e28,_0x4593a4]=_0x247868(null),[_0x391ad4,_0x505d3f]=_0x247868(c['IDLE']),_0x199200=_0x2ed13b(null);return _0x3307bc(()=>(_0x27a5a5&&_0x220fc1[_0x1dd7f3(0x1ba)](_0x27a5a5['getUnitId']())[_0x1dd7f3(0x18a)](_0x50c59a=>{const _0x48d3c8=_0x1dd7f3;_0x4593a4(_0x50c59a),_0x199200['current']=_0x50c59a['status$'][_0x48d3c8(0x19f)](_0x299cd2=>{_0x505d3f(_0x299cd2);});}),()=>{const _0x50347a=_0x1dd7f3;var _0x1b46e6;(_0x1b46e6=_0x199200[_0x50347a(0x161)])==null||_0x1b46e6[_0x50347a(0x18c)](),_0x199200[_0x50347a(0x161)]=null;}),[_0x27a5a5,_0x220fc1]),_0x325e28?_0x40948b(_0x1174ca,{'align':_0x1dd7f3(0x1a8),'disabled':_0x391ad4===c[_0x1dd7f3(0x139)],'className':_0x1dd7f3(0x191),'overlay':_0x40948b(Re,{'status':_0x391ad4,'coordinator':_0x325e28}),'children':_0x40948b(_0x1dd7f3(0x16a),{'className':_0x3f01c6(_0x1dd7f3(0x128),{'univer-cursor-not-allowed':_0x391ad4===c[_0x1dd7f3(0x139)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x391ad4!==c[_0x1dd7f3(0x139)]}),'type':_0x1dd7f3(0x16a),'children':_0x40948b(W,{'className':_0x1dd7f3(0x152)})})}):null;}function Re(_0x4653c1){const _0x41b38b=_0x3a48b0,{status:_0x4ebb78,coordinator:_0x14e0c5}=_0x4653c1;switch(_0x4ebb78){case c[_0x41b38b(0x125)]:return _0x40948b($e,{'coordinator':_0x14e0c5});case c[_0x41b38b(0x12b)]:return _0x40948b(xe,{'coordinator':_0x14e0c5});case c[_0x41b38b(0x1c0)]:return _0x40948b(Pe,{'coordinator':_0x14e0c5});case c[_0x41b38b(0x139)]:return _0x40948b(Te,{});case c[_0x41b38b(0x12d)]:return _0x40948b(Ae,{'coordinator':_0x14e0c5});default:return null;}}function $e(_0x33afa8){const _0x31c492=_0x3a48b0,{coordinator:_0x3e3239}=_0x33afa8;return _0x46a17b(_0x4b0054,{'children':[_0x40948b(_0x31c492(0x157),{'className':_0x31c492(0x135),'children':'Present\x20this\x20document'}),_0x40948b(_0x5c9227,{'onClick':()=>_0x3e3239[_0x31c492(0x15a)](),'children':_0x31c492(0x1c8)})]});}function xe(_0xa947ff){const _0xdea2a5=_0x3a48b0,{coordinator:_0x557512}=_0xa947ff;return _0x46a17b(_0x4b0054,{'children':[_0x40948b(_0xdea2a5(0x157),{'className':_0xdea2a5(0x135),'children':_0xdea2a5(0x158)}),_0x40948b(_0x5c9227,{'onClick':()=>_0x557512['stopFollowing'](),'children':_0xdea2a5(0x1b8)})]});}function Pe(_0x2e9be2){const _0x6e8af8=_0x3a48b0,{coordinator:_0x5ca46e}=_0x2e9be2;return _0x46a17b(_0x4b0054,{'children':[_0x40948b(_0x6e8af8(0x157),{'className':_0x6e8af8(0x135),'children':_0x6e8af8(0x199)}),_0x40948b(_0x5c9227,{'variant':_0x6e8af8(0x120),'onClick':()=>_0x5ca46e[_0x6e8af8(0x187)](),'children':_0x6e8af8(0x145)})]});}function Ae(_0x5331e7){const _0x2d043f=_0x3a48b0,{coordinator:_0xe776f0}=_0x5331e7;return _0x46a17b(_0x4b0054,{'children':[_0x40948b(_0x2d043f(0x157),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2d043f(0x188)}),_0x40948b(_0x5c9227,{'variant':_0x2d043f(0x193),'onClick':()=>_0xe776f0[_0x2d043f(0x15e)](),'children':_0x2d043f(0x181)})]});}function Te(){return _0x40948b(_0x4b0054,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x3a48b0(0x151)],He=(_0x4a69c4,_0x32bce8,_0x5693ed,_0x413137)=>{const _0x488d8d=_0x3a48b0;for(var _0x548eaf=_0x413137>0x1?void 0x0:_0x413137?Fe(_0x32bce8,_0x5693ed):_0x32bce8,_0x2c1cdb=_0x4a69c4[_0x488d8d(0x1ad)]-0x1,_0x26f9dd;_0x2c1cdb>=0x0;_0x2c1cdb--)(_0x26f9dd=_0x4a69c4[_0x2c1cdb])&&(_0x548eaf=_0x26f9dd(_0x548eaf)||_0x548eaf);return _0x548eaf;},A=(_0x2f94a2,_0x259a0f)=>(_0x24eefb,_0x1d8309)=>_0x259a0f(_0x24eefb,_0x1d8309,_0x2f94a2);let m=class extends _0xdc5bc{constructor(_0x13f32b,_0x4b0d54){const _0x3f5d68=_0x3a48b0;super(),this[_0x3f5d68(0x160)]=_0x13f32b,this['_uiPartsService']=_0x4b0d54,this[_0x3f5d68(0x11f)]();}[_0x3a48b0(0x11f)](){const _0x1c31ff=_0x3a48b0;this[_0x1c31ff(0x17f)](this['_uiPartsService']['registerComponent'](_0x50392a[_0x1c31ff(0x1bd)],()=>_0x57a52a(Le,this['_injector'])));}};m=He([A(0x0,_0x3cc5dc(_0x40bad3)),A(0x1,_0x25e85a)],m);const ye=_0x3a48b0(0x19e),T={};var Ue=Object[_0x3a48b0(0x151)],Ve=(_0x311b28,_0x3beadb,_0x1158ac,_0x2ba428)=>{const _0x1105b6=_0x3a48b0;for(var _0x1f739c=_0x2ba428>0x1?void 0x0:_0x2ba428?Ue(_0x3beadb,_0x1158ac):_0x3beadb,_0x13ddf6=_0x311b28[_0x1105b6(0x1ad)]-0x1,_0x18edc4;_0x13ddf6>=0x0;_0x13ddf6--)(_0x18edc4=_0x311b28[_0x13ddf6])&&(_0x1f739c=_0x18edc4(_0x1f739c)||_0x1f739c);return _0x1f739c;},je=(_0x20d649,_0x1602b7)=>(_0x19066f,_0x41a38d)=>_0x1602b7(_0x19066f,_0x41a38d,_0x20d649);let I=class extends _0xdc5bc{constructor(_0x125572){const _0x135ca9=_0x3a48b0;super(),this['_liveShareService']=_0x125572,this[_0x135ca9(0x162)]();}[_0x3a48b0(0x162)](){const _0x277dce=_0x3a48b0;[_0x46bd10['id'],_0x47775a['id'],_0x24e2a6['id']][_0x277dce(0x1b7)](_0x1e44ca=>{const _0x2331ca=_0x277dce;this[_0x2331ca(0x17f)](this[_0x2331ca(0x174)][_0x2331ca(0x14f)](_0x1e44ca));});}};I=Ve([je(0x0,_0x3cc5dc(L))],I);var Me=Object[_0x3a48b0(0x126)],ke=Object[_0x3a48b0(0x151)],Ge=(_0xe55661,_0x3c480b,_0x4dfbd4)=>_0x3c480b in _0xe55661?Me(_0xe55661,_0x3c480b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4dfbd4}):_0xe55661[_0x3c480b]=_0x4dfbd4,We=(_0x55fd20,_0xc2fe45,_0x1a713a,_0x1b4b67)=>{const _0x271d6d=_0x3a48b0;for(var _0x470ab0=_0x1b4b67>0x1?void 0x0:_0x1b4b67?ke(_0xc2fe45,_0x1a713a):_0xc2fe45,_0x90d51c=_0x55fd20[_0x271d6d(0x1ad)]-0x1,_0x236415;_0x90d51c>=0x0;_0x90d51c--)(_0x236415=_0x55fd20[_0x90d51c])&&(_0x470ab0=_0x236415(_0x470ab0)||_0x470ab0);return _0x470ab0;},F=(_0x322ae5,_0x233444)=>(_0x463364,_0x10fa6f)=>_0x233444(_0x463364,_0x10fa6f,_0x322ae5),B=(_0x187df0,_0x3de30b,_0x3f1a60)=>Ge(_0x187df0,typeof _0x3de30b!=_0x3a48b0(0x170)?_0x3de30b+'':_0x3de30b,_0x3f1a60);const Ye=_0x3a48b0(0x13a);let b=class extends _0x2c2008{constructor(_0x5324dd=T,_0x395ee4,_0x35a199){const _0x1b72c3=_0x3a48b0;super(),this[_0x1b72c3(0x153)]=_0x5324dd,this[_0x1b72c3(0x160)]=_0x395ee4,this[_0x1b72c3(0x17e)]=_0x35a199;const {..._0x3e8f36}=_0x46002f({},T,this[_0x1b72c3(0x153)]);this[_0x1b72c3(0x17e)][_0x1b72c3(0x123)](ye,_0x3e8f36);}[_0x3a48b0(0x1ac)](){const _0x5e874e=_0x3a48b0;_0x4ce657(this['_injector'],_0x46574a([[L],[S],[I],[m]],this[_0x5e874e(0x153)][_0x5e874e(0x133)])),_0x4d5b23(this[_0x5e874e(0x160)],[[I]]);}[_0x3a48b0(0x1c4)](){const _0x4b2ec1=_0x3a48b0;_0x4d5b23(this[_0x4b2ec1(0x160)],[[m]]);}};B(b,'type',_0x46f478[_0x3a48b0(0x179)]),B(b,'pluginName',Ye),b=We([_0xeaa0b2(_0x148cb5),F(0x1,_0x3cc5dc(_0x40bad3)),F(0x2,_0x3609ed)],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 _0x19ef(_0x45575e,_0x74ce50){_0x45575e=_0x45575e-0x76;const _0x448d52=_0x448d();let _0x19efaa=_0x448d52[_0x45575e];return _0x19efaa;}(function(_0x2bb34a,_0x7e96e2){const _0x49b450=_0x19ef,_0xd32969=_0x2bb34a();while(!![]){try{const _0x4f6175=-parseInt(_0x49b450(0x8a))/0x1+parseInt(_0x49b450(0x9a))/0x2*(-parseInt(_0x49b450(0x77))/0x3)+parseInt(_0x49b450(0x81))/0x4+-parseInt(_0x49b450(0x7e))/0x5*(parseInt(_0x49b450(0x7c))/0x6)+parseInt(_0x49b450(0x8c))/0x7+-parseInt(_0x49b450(0x87))/0x8+-parseInt(_0x49b450(0x79))/0x9*(-parseInt(_0x49b450(0x83))/0xa);if(_0x4f6175===_0x7e96e2)break;else _0xd32969['push'](_0xd32969['shift']());}catch(_0x259f4d){_0xd32969['push'](_0xd32969['shift']());}}}(_0x448d,0xf0a76),function(_0xcf1c27,_0x1393ca){const _0x17939c=_0x19ef;typeof exports==_0x17939c(0x76)&&typeof module<'u'?_0x1393ca(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x17939c(0x89)&&define[_0x17939c(0x91)]?define([_0x17939c(0x9c),_0x17939c(0x94),_0x17939c(0x96)],_0x1393ca):(_0xcf1c27=typeof globalThis<'u'?globalThis:_0xcf1c27||self,_0x1393ca(_0xcf1c27[_0x17939c(0x8e)],_0xcf1c27[_0x17939c(0x9b)],_0xcf1c27['UniverCoreFacade']));}(this,function(_0x1efa23,_0x2fcff2,_0x49c941){'use strict';const _0xbfaf25=_0x19ef;var _0x2dec41=Object[_0xbfaf25(0x8d)],_0x2f3583=(_0x4b6792,_0x295ca9,_0x1b2ffc)=>_0x295ca9 in _0x4b6792?_0x2dec41(_0x4b6792,_0x295ca9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b2ffc}):_0x4b6792[_0x295ca9]=_0x1b2ffc,_0x5f41b3=(_0x34db40,_0x56cfd2,_0x228ac9)=>_0x2f3583(_0x34db40,typeof _0x56cfd2!='symbol'?_0x56cfd2+'':_0x56cfd2,_0x228ac9);class _0x5b13cf extends _0x49c941[_0xbfaf25(0x99)]{constructor(){const _0x20c63b=_0xbfaf25;super(...arguments),_0x5f41b3(this,_0x20c63b(0x98));}['_initialize'](_0x545b3f){this['_liveShareController']=_0x545b3f['get'](_0x1efa23['LiveShareController']);}[_0xbfaf25(0x7f)](){const _0x37b33f=_0xbfaf25;var _0x5cf0f2;const _0x5d599d=this['_injector'][_0x37b33f(0x9e)](_0x2fcff2['IUniverInstanceService'])['getCurrentUnitOfType'](_0x2fcff2[_0x37b33f(0x88)][_0x37b33f(0x7d)]);if(!_0x5d599d)throw new Error('No\x20active\x20workbook\x20found.');const _0x2043a1=_0x5d599d[_0x37b33f(0x7b)](),_0x3ae7ad=this[_0x37b33f(0x98)]['getLiveShareCoordinatorSync'](_0x2043a1);return(_0x5cf0f2=_0x3ae7ad==null?void 0x0:_0x3ae7ad[_0x37b33f(0x90)]())!=null?_0x5cf0f2:_0x1efa23['LiveShareStatus'][_0x37b33f(0x93)];}[_0xbfaf25(0x7a)](){const _0x5e385c=_0xbfaf25,_0x3903b4=this[_0x5e385c(0x92)][_0x5e385c(0x9e)](_0x2fcff2['IUniverInstanceService'])[_0x5e385c(0x80)](_0x2fcff2[_0x5e385c(0x88)][_0x5e385c(0x7d)]);if(!_0x3903b4)throw new Error('No\x20active\x20workbook\x20found.');const _0x2733d3=_0x3903b4[_0x5e385c(0x7b)](),_0x47f90a=this['_liveShareController'][_0x5e385c(0x8f)](_0x2733d3);if(!_0x47f90a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x47f90a[_0x5e385c(0x7a)]();}['stopFollowing'](){const _0x4514cc=_0xbfaf25,_0x55ca37=this[_0x4514cc(0x92)]['get'](_0x2fcff2[_0x4514cc(0x86)])['getCurrentUnitOfType'](_0x2fcff2[_0x4514cc(0x88)]['UNIVER_SHEET']);if(!_0x55ca37)throw new Error(_0x4514cc(0x78));const _0x5d9b7f=_0x55ca37[_0x4514cc(0x7b)](),_0x1c4a8a=this['_liveShareController'][_0x4514cc(0x8f)](_0x5d9b7f);if(!_0x1c4a8a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1c4a8a[_0x4514cc(0x9f)]();}[_0xbfaf25(0xa0)](){const _0x16ff12=_0xbfaf25,_0x44cec7=this[_0x16ff12(0x92)][_0x16ff12(0x9e)](_0x2fcff2[_0x16ff12(0x86)])[_0x16ff12(0x80)](_0x2fcff2[_0x16ff12(0x88)][_0x16ff12(0x7d)]);if(!_0x44cec7)throw new Error(_0x16ff12(0x78));const _0xded08f=_0x44cec7[_0x16ff12(0x7b)](),_0x2c775f=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xded08f);if(!_0x2c775f)throw new Error(_0x16ff12(0x85));_0x2c775f[_0x16ff12(0x95)]();}[_0xbfaf25(0x9d)](){const _0x20c715=_0xbfaf25,_0x4e737d=this['_injector'][_0x20c715(0x9e)](_0x2fcff2[_0x20c715(0x86)])['getCurrentUnitOfType'](_0x2fcff2[_0x20c715(0x88)][_0x20c715(0x7d)]);if(!_0x4e737d)throw new Error(_0x20c715(0x78));const _0x59dc9b=_0x4e737d[_0x20c715(0x7b)](),_0x9b47f3=this['_liveShareController'][_0x20c715(0x8f)](_0x59dc9b);if(!_0x9b47f3)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x9b47f3[_0x20c715(0x9d)]();}}_0x49c941[_0xbfaf25(0x99)][_0xbfaf25(0x84)](_0x5b13cf);class _0x59108f extends _0x49c941[_0xbfaf25(0x8b)]{get[_0xbfaf25(0x97)](){const _0x373065=_0xbfaf25;return _0x1efa23[_0x373065(0x82)];}}_0x49c941[_0xbfaf25(0x8b)][_0xbfaf25(0x84)](_0x59108f);}));function _0x448d(){const _0x4b20a6=['UniverProLiveShare','getLiveShareCoordinatorSync','getStatus','amd','_injector','IDLE','@univerjs/core','tryStartPresenting','@univerjs/core/facade','LiveShareStatusEnum','_liveShareController','FUniver','29416YAXMLf','UniverCore','@univerjs-pro/live-share','stopPresenting','get','stopFollowing','startPresenting','object','57eClxzQ','No\x20active\x20workbook\x20found.','9wBoGlw','startFollowing','getUnitId','2037954jNjLDU','UNIVER_SHEET','5GYkmsk','getLiveShareStatus','getCurrentUnitOfType','6654188wmsiQx','LiveShareStatus','11376130mtFabG','extend','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','IUniverInstanceService','14095896GOtckB','UniverInstanceType','function','157821HIVyUe','FEnum','5064339tMmeJw','defineProperty'];_0x448d=function(){return _0x4b20a6;};return _0x448d();}
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(_0x263ef1,_0x3aa58f){const _0x873629=_0x580b,_0x3e137a=_0x263ef1();while(!![]){try{const _0x3e5c13=-parseInt(_0x873629(0x221))/0x1*(parseInt(_0x873629(0x22f))/0x2)+parseInt(_0x873629(0x15c))/0x3*(-parseInt(_0x873629(0x178))/0x4)+-parseInt(_0x873629(0x1ad))/0x5+parseInt(_0x873629(0x21e))/0x6*(-parseInt(_0x873629(0x1f1))/0x7)+-parseInt(_0x873629(0x1f3))/0x8+parseInt(_0x873629(0x1b2))/0x9*(parseInt(_0x873629(0x16d))/0xa)+parseInt(_0x873629(0x1b7))/0xb;if(_0x3e5c13===_0x3aa58f)break;else _0x3e137a['push'](_0x3e137a['shift']());}catch(_0x2d1cad){_0x3e137a['push'](_0x3e137a['shift']());}}}(_0x4bdb,0x49184),function(_0x41b9a2,_0xe1d745){const _0x3b089e=_0x580b;typeof exports==_0x3b089e(0x167)&&typeof module<'u'?_0xe1d745(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==_0x3b089e(0x1ee)&&define[_0x3b089e(0x212)]?define([_0x3b089e(0x16a),'@univerjs/core','@univerjs/ui',_0x3b089e(0x17a),_0x3b089e(0x22d),_0x3b089e(0x1bf),_0x3b089e(0x1bc),_0x3b089e(0x207),'@univerjs/sheets',_0x3b089e(0x1c9),_0x3b089e(0x1ef),'@univerjs/sheets-ui'],_0xe1d745):(_0x41b9a2=typeof globalThis<'u'?globalThis:_0x41b9a2||self,_0xe1d745(_0x41b9a2['UniverProLiveShare']={},_0x41b9a2[_0x3b089e(0x1b5)],_0x41b9a2[_0x3b089e(0x198)],_0x41b9a2['React'],_0x41b9a2['UniverDesign'],_0x41b9a2[_0x3b089e(0x219)],_0x41b9a2[_0x3b089e(0x1bd)],_0x41b9a2['UniverProCollaborationClient'],_0x41b9a2[_0x3b089e(0x187)],_0x41b9a2['rxjs'],_0x41b9a2[_0x3b089e(0x1c9)]['operators'],_0x41b9a2[_0x3b089e(0x1a7)]));}(this,function(_0x4f6949,_0x3661a0,_0xc625f8,_0x1cf0c0,_0x3038ae,_0x1909e5,_0x3f1b37,_0x4d45c4,_0x45c3f5,_0x377157,_0x28786d,_0x41b85b){'use strict';const _0x383982=_0x580b;var _0x13e9d1=Object[_0x383982(0x192)],_0x74a945=(_0x2d6815,_0x3f2014,_0x11bd16)=>_0x3f2014 in _0x2d6815?_0x13e9d1(_0x2d6815,_0x3f2014,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11bd16}):_0x2d6815[_0x3f2014]=_0x11bd16,_0x12380a=(_0x2f6656,_0x353ada,_0x5af544)=>_0x74a945(_0x2f6656,typeof _0x353ada!=_0x383982(0x181)?_0x353ada+'':_0x353ada,_0x5af544);function _0x77efee({ref:_0x25839a,..._0x5758b0}){const _0x51072a=_0x383982,{icon:_0x5affc0,id:_0x5af71e,className:_0x54384f,extend:_0x620391,..._0x432e2e}=_0x5758b0,_0x53b4a1=('univerjs-icon\x20univerjs-icon-'+_0x5af71e+'\x20'+(_0x54384f||''))[_0x51072a(0x1f7)](),_0x2a864d=_0x1909e5[_0x51072a(0x203)]('_'+_0x31f567());return _0x58a216(_0x5affc0,''+_0x5af71e,{'defIds':_0x5affc0[_0x51072a(0x1d7)],'idSuffix':_0x2a864d[_0x51072a(0x1ab)]},{'ref':_0x25839a,'className':_0x53b4a1,..._0x432e2e},_0x620391);}function _0x58a216(_0x41dcab,_0x567989,_0x7bcfd7,_0x42213d,_0x3efa24){const _0xcd50f3=_0x383982;return _0x1909e5['createElement'](_0x41dcab[_0xcd50f3(0x21a)],{'key':_0x567989,..._0x392aac(_0x41dcab,_0x7bcfd7,_0x3efa24),..._0x42213d},(_0x4f3d0d(_0x41dcab,_0x7bcfd7)[_0xcd50f3(0x23c)]||[])['map']((_0x21d01d,_0x50f2f1)=>_0x58a216(_0x21d01d,_0x567989+'-'+_0x41dcab[_0xcd50f3(0x21a)]+'-'+_0x50f2f1,_0x7bcfd7,void 0x0,_0x3efa24)));}function _0x392aac(_0x1394c3,_0x272705,_0x4404c8){const _0x25622e=_0x383982,_0x4785ce={..._0x1394c3[_0x25622e(0x197)]};_0x4404c8!=null&&_0x4404c8['colorChannel1']&&_0x4785ce[_0x25622e(0x22a)]===_0x25622e(0x1f5)&&(_0x4785ce[_0x25622e(0x22a)]=_0x4404c8[_0x25622e(0x1f5)]),_0x1394c3[_0x25622e(0x21a)]==='mask'&&_0x4785ce['id']&&(_0x4785ce['id']=_0x4785ce['id']+_0x272705[_0x25622e(0x19a)]),Object[_0x25622e(0x1d8)](_0x4785ce)[_0x25622e(0x1d4)](([_0xf0b24c,_0x3a6593])=>{const _0x298640=_0x25622e;_0xf0b24c===_0x298640(0x15d)&&typeof _0x3a6593==_0x298640(0x1b1)&&(_0x4785ce[_0xf0b24c]=_0x3a6593['replace'](/url\(#(.*)\)/,'url(#$1'+_0x272705[_0x298640(0x19a)]+')'));});const {defIds:_0x276c55}=_0x272705;return!_0x276c55||_0x276c55[_0x25622e(0x18c)]===0x0||(_0x1394c3[_0x25622e(0x21a)]==='use'&&_0x4785ce[_0x25622e(0x23a)]&&(_0x4785ce[_0x25622e(0x23a)]=_0x4785ce[_0x25622e(0x23a)]+_0x272705[_0x25622e(0x19a)]),Object['entries'](_0x4785ce)[_0x25622e(0x1d4)](([_0x219cab,_0x2889d6])=>{const _0x25c687=_0x25622e;typeof _0x2889d6==_0x25c687(0x1b1)&&(_0x4785ce[_0x219cab]=_0x2889d6[_0x25c687(0x1a3)](/url\(#(.*)\)/,_0x25c687(0x1a9)+_0x272705[_0x25c687(0x19a)]+')'));})),_0x4785ce;}function _0x4f3d0d(_0x306f10,_0x13299a){const _0x33c7f1=_0x383982;var _0x30d480;const {defIds:_0x2674aa}=_0x13299a;return!_0x2674aa||_0x2674aa['length']===0x0?_0x306f10:_0x306f10[_0x33c7f1(0x21a)]===_0x33c7f1(0x195)&&((_0x30d480=_0x306f10[_0x33c7f1(0x23c)])!=null&&_0x30d480[_0x33c7f1(0x18c)])?{..._0x306f10,'children':_0x306f10[_0x33c7f1(0x23c)][_0x33c7f1(0x227)](_0x17ab43=>typeof _0x17ab43[_0x33c7f1(0x197)]['id']==_0x33c7f1(0x1b1)&&_0x2674aa&&_0x2674aa[_0x33c7f1(0x170)](_0x17ab43[_0x33c7f1(0x197)]['id'])?{..._0x17ab43,'attrs':{..._0x17ab43[_0x33c7f1(0x197)],'id':_0x17ab43['attrs']['id']+_0x13299a[_0x33c7f1(0x19a)]}}:_0x17ab43)}:_0x306f10;}function _0x31f567(){const _0x14351f=_0x383982;return Math[_0x14351f(0x16f)]()[_0x14351f(0x205)](0x24)['substring'](0x2,0x8);}_0x77efee[_0x383982(0x173)]='UniverIcon';const _0x556a97={'tag':_0x383982(0x1ca),'attrs':{'xmlns':_0x383982(0x160),'fill':_0x383982(0x209),'viewBox':_0x383982(0x211),'width':_0x383982(0x1cd),'height':'1em'},'children':[{'tag':_0x383982(0x23e),'attrs':{'fill':_0x383982(0x164),'d':_0x383982(0x1fe)}},{'tag':_0x383982(0x23e),'attrs':{'fill':_0x383982(0x164),'d':_0x383982(0x1d9),'fillRule':_0x383982(0x15e),'clipRule':_0x383982(0x15e)}}]},_0x5a436d=_0x1909e5[_0x383982(0x15b)](function(_0x1ce644,_0x2c7380){const _0x303471=_0x383982;return _0x1909e5['createElement'](_0x77efee,Object[_0x303471(0x213)]({},_0x1ce644,{'id':_0x303471(0x210),'ref':_0x2c7380,'icon':_0x556a97}));});_0x5a436d[_0x383982(0x173)]=_0x383982(0x1d3);class _0x2a4178 extends _0x3661a0['Disposable']{constructor(){const _0xc9aed9=_0x383982;super(...arguments),_0x12380a(this,'_sharedOperations',new Set()),_0x12380a(this,_0xc9aed9(0x1e1),new Set());}['registerSharedOperation'](_0x44c6d6){const _0x4696f3=_0x383982;return this[_0x4696f3(0x1dc)][_0x4696f3(0x22c)](_0x44c6d6),_0x3661a0['toDisposable'](()=>this[_0x4696f3(0x1dc)][_0x4696f3(0x19f)](_0x44c6d6));}[_0x383982(0x1c2)](_0x8b9ff8){const _0x487031=_0x383982;return this[_0x487031(0x1e1)]['add'](_0x8b9ff8),_0x3661a0[_0x487031(0x20a)](()=>this['_reporters']['delete'](_0x8b9ff8));}['shouldShareOperation'](_0x31714d){const _0x57d129=_0x383982;return this['_sharedOperations'][_0x57d129(0x222)](_0x31714d);}[_0x383982(0x1e7)](_0x389c97){const _0x3b0fea=_0x383982;return Array[_0x3b0fea(0x242)](this[_0x3b0fea(0x1e1)])[_0x3b0fea(0x227)](_0x48bcb7=>_0x48bcb7(_0x389c97));}}var _0x1c5fd9=Object[_0x383982(0x231)],_0x4477f4=(_0x302975,_0x50a6f2,_0x2c4a56,_0x5788fe)=>{const _0x589a80=_0x383982;for(var _0x3ddc56=_0x5788fe>0x1?void 0x0:_0x5788fe?_0x1c5fd9(_0x50a6f2,_0x2c4a56):_0x50a6f2,_0x5650d8=_0x302975[_0x589a80(0x18c)]-0x1,_0x5cdf78;_0x5650d8>=0x0;_0x5650d8--)(_0x5cdf78=_0x302975[_0x5650d8])&&(_0x3ddc56=_0x5cdf78(_0x3ddc56)||_0x3ddc56);return _0x3ddc56;},_0xe44ae=(_0x3445c6,_0x4190b0)=>(_0x615dc8,_0x200b73)=>_0x4190b0(_0x615dc8,_0x200b73,_0x3445c6);_0x4f6949['LiveShareController']=class extends _0x3661a0[_0x383982(0x236)]{constructor(_0x3af343,_0x2b7f4a,_0x4ed82b){const _0x17e312=_0x383982;super(),_0x12380a(this,_0x17e312(0x217),new Map()),(this[_0x17e312(0x16c)]=_0x3af343,this[_0x17e312(0x1fc)]=_0x2b7f4a,this[_0x17e312(0x188)]=_0x4ed82b,this['_init']());}async[_0x383982(0x163)](_0x76102){const _0x149788=_0x383982;return this[_0x149788(0x217)]['has'](_0x76102)||await this[_0x149788(0x1c4)](_0x76102),this[_0x149788(0x217)][_0x149788(0x1df)](_0x76102);}[_0x383982(0x1a0)](_0x5800cf){const _0x3ce8d0=_0x383982;var _0x4678cd;return(_0x4678cd=this['_entities'][_0x3ce8d0(0x1df)](_0x5800cf))!=null?_0x4678cd:null;}[_0x383982(0x193)](){const _0x5ca807=_0x383982;this[_0x5ca807(0x16c)][_0x5ca807(0x196)](_0x3661a0[_0x5ca807(0x184)]['UNIVER_SHEET'])[_0x5ca807(0x206)](_0x28786d[_0x5ca807(0x169)](this[_0x5ca807(0x1cc)]))[_0x5ca807(0x21c)](async _0x31c5e0=>{const _0x33270a=_0x5ca807,_0x54502f=_0x31c5e0[_0x33270a(0x1ea)]();this[_0x33270a(0x217)][_0x33270a(0x222)](_0x54502f)||this[_0x33270a(0x1c4)](_0x54502f);}),this[_0x5ca807(0x16c)][_0x5ca807(0x1cb)](_0x3661a0[_0x5ca807(0x184)][_0x5ca807(0x171)])[_0x5ca807(0x206)](_0x28786d[_0x5ca807(0x169)](this[_0x5ca807(0x1cc)]))[_0x5ca807(0x21c)](_0x1d30ca=>{const _0x2b14c2=_0x5ca807,_0xeddbf4=_0x1d30ca[_0x2b14c2(0x1ea)](),_0x3b7817=this['_entities'][_0x2b14c2(0x1df)](_0xeddbf4);_0x3b7817==null||_0x3b7817[_0x2b14c2(0x17e)]();});}async[_0x383982(0x1c4)](_0x15d5e3){const _0x199e79=_0x383982,_0x26e19a=await this[_0x199e79(0x188)][_0x199e79(0x176)](_0x15d5e3),_0x1b540a=this[_0x199e79(0x1fc)][_0x199e79(0x1b4)](_0x4f6949[_0x199e79(0x21b)],_0x15d5e3,_0x26e19a);return _0x1b540a[_0x199e79(0x19e)](),this[_0x199e79(0x217)][_0x199e79(0x18d)](_0x15d5e3,_0x1b540a),_0x1b540a;}},_0x4f6949[_0x383982(0x1ed)]=_0x4477f4([_0xe44ae(0x0,_0x3661a0[_0x383982(0x1e9)]),_0xe44ae(0x1,_0x3661a0[_0x383982(0x1ce)](_0x3661a0['Injector'])),_0xe44ae(0x2,_0x3661a0['Inject'](_0x4d45c4[_0x383982(0x1c7)]))],_0x4f6949[_0x383982(0x1ed)]);var _0x47fdc0=(_0x3ec001=>(_0x3ec001[_0x383982(0x1e8)]='offline',_0x3ec001[_0x383982(0x17c)]=_0x383982(0x23b),_0x3ec001['FOLLOWING']='following',_0x3ec001[_0x383982(0x1cf)]=_0x383982(0x21f),_0x3ec001[_0x383982(0x183)]=_0x383982(0x1ae),_0x3ec001))(_0x47fdc0||{});const _0x2c74c0=_0x383982(0x1c3),_0x50c959=0xc8;_0x4f6949[_0x383982(0x21b)]=class extends _0x3661a0['RxDisposable']{constructor(_0x20b2a8,_0x546d85,_0x369c7b,_0x44225b,_0x331962){const _0x4a5bd5=_0x383982;super(),_0x12380a(this,_0x4a5bd5(0x1a4),new _0x377157[(_0x4a5bd5(0x182))]('idle')),_0x12380a(this,_0x4a5bd5(0x20f),this['_status$']['asObservable']()),_0x12380a(this,'_init',!0x1),_0x12380a(this,_0x4a5bd5(0x1eb),null),_0x12380a(this,_0x4a5bd5(0x1a2),null),(this['_unitID']=_0x20b2a8,this[_0x4a5bd5(0x1e6)]=_0x546d85,this[_0x4a5bd5(0x1db)]=_0x369c7b,this[_0x4a5bd5(0x15f)]=_0x44225b,this['_commandService']=_0x331962);}get['_status'](){const _0x25faf7=_0x383982;return this[_0x25faf7(0x1a4)][_0x25faf7(0x218)]();}[_0x383982(0x17e)](){const _0x25e619=_0x383982;var _0x4954b1;(_0x4954b1=this[_0x25e619(0x1eb)])==null||_0x4954b1['dispose'](),this['_status$']['next'](_0x25e619(0x23b)),this['_status$'][_0x25e619(0x214)]();}['getStatus'](){const _0x1d787f=_0x383982;return this[_0x1d787f(0x16e)];}['init'](){const _0xf05f=_0x383982;this[_0xf05f(0x193)]||(this[_0xf05f(0x193)]=!0x0,this[_0xf05f(0x1e6)][_0xf05f(0x17f)][_0xf05f(0x206)](_0x28786d[_0xf05f(0x169)](this[_0xf05f(0x1cc)]))[_0xf05f(0x21c)](_0x2c4f6c=>{const _0x2697d7=_0xf05f;switch(_0x2c4f6c){case _0x4d45c4[_0x2697d7(0x19b)][_0x2697d7(0x1e8)]:this[_0x2697d7(0x1dd)]();break;case _0x4d45c4[_0x2697d7(0x19b)][_0x2697d7(0x19c)]:this[_0x2697d7(0x189)]();break;}}),this['_collabSession'][_0xf05f(0x1a5)]['pipe'](_0x28786d[_0xf05f(0x169)](this[_0xf05f(0x1cc)]))[_0xf05f(0x21c)](_0x31ae7a=>{const _0x181f4f=_0xf05f,{eventID:_0x536d95}=_0x31ae7a;switch(_0x536d95){case _0x3f1b37[_0x181f4f(0x1fd)][_0x181f4f(0x1e2)]:this[_0x181f4f(0x230)](_0x31ae7a);break;case _0x3f1b37[_0x181f4f(0x1fd)][_0x181f4f(0x1f9)]:this['_handleOperation'](_0x31ae7a);break;case _0x3f1b37[_0x181f4f(0x1fd)][_0x181f4f(0x19d)]:this['_handleTerminate']();break;case _0x3f1b37[_0x181f4f(0x1fd)]['NEW_CHANGESETS']:this[_0x181f4f(0x1ac)](_0x31ae7a);break;}}));}['tryStartPresenting'](){const _0x4d788c=_0x383982;this[_0x4d788c(0x1e6)][_0x4d788c(0x1c1)]({'eventID':_0x3f1b37[_0x4d788c(0x1fd)][_0x4d788c(0x1b3)],'data':{'unitID':this[_0x4d788c(0x1e4)],'userID':this[_0x4d788c(0x1e6)]['getMemberID']()}},this[_0x4d788c(0x1e4)]);}[_0x383982(0x244)](){const _0x425936=_0x383982;this['_status']===_0x425936(0x1ae)&&(this[_0x425936(0x1a4)][_0x425936(0x1bb)](_0x425936(0x23b)),this['_collabSession']['send']({'eventID':_0x3f1b37[_0x425936(0x1fd)][_0x425936(0x19d)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x383982(0x194)](){const _0x5458bf=_0x383982;this[_0x5458bf(0x16e)]===_0x5458bf(0x21f)&&(this[_0x5458bf(0x1a4)][_0x5458bf(0x1bb)]('following'),this['_startFollowing']());}['stopFollowing'](){const _0x437bf2=_0x383982;this['_status']===_0x437bf2(0x1aa)&&this[_0x437bf2(0x20b)]();}['_handleNewHost'](_0x341976){const _0x50147d=_0x383982,{presenter:_0x144db6}=_0x341976[_0x50147d(0x215)],_0x59856a=this[_0x50147d(0x1e6)][_0x50147d(0x190)]();this[_0x50147d(0x1a2)]=_0x144db6,_0x144db6===_0x59856a?(this['_stopFollowing'](),this[_0x50147d(0x1f4)]()):this[_0x50147d(0x16e)]!==_0x50147d(0x21f)&&(this[_0x50147d(0x1b0)](),this[_0x50147d(0x216)]());}[_0x383982(0x20e)](){const _0x2b213e=_0x383982,_0x36b921={'eventID':_0x3f1b37[_0x2b213e(0x1fd)][_0x2b213e(0x1ff)]};this[_0x2b213e(0x1e6)][_0x2b213e(0x1c1)](_0x36b921,this[_0x2b213e(0x1e4)]);}[_0x383982(0x1d0)](){const _0x377c78=_0x383982;this[_0x377c78(0x1a2)]=null,this[_0x377c78(0x16e)]!==_0x377c78(0x1ae)&&this[_0x377c78(0x204)]();}['_handleNewChangeSets'](_0x5d6c66){const _0x2a8160=_0x383982;if(this[_0x2a8160(0x16e)]===_0x2a8160(0x1aa)&&this[_0x2a8160(0x1a2)]===_0x5d6c66[_0x2a8160(0x215)][_0x2a8160(0x233)]){const _0x435440=_0x3f1b37['parseProtocolChangeset'](_0x5d6c66[_0x2a8160(0x215)])[_0x2a8160(0x172)][_0x2a8160(0x162)]()[_0x2a8160(0x17d)](_0x1ae1b9=>_0x1ae1b9['id']===_0x45c3f5[_0x2a8160(0x1c6)]['id']);if(_0x435440){const _0x16e6a1=_0x435440[_0x2a8160(0x177)]['unitId'],_0x56ab3a=_0x435440[_0x2a8160(0x177)][_0x2a8160(0x17b)]['id'];setTimeout(()=>{const _0x4d2eb5=_0x2a8160;this[_0x4d2eb5(0x165)][_0x4d2eb5(0x1e5)](_0x45c3f5[_0x4d2eb5(0x175)]['id'],{'unitId':_0x16e6a1,'subUnitId':_0x56ab3a},{'fromCollab':!0x0});});}}}[_0x383982(0x1f4)](){const _0x3bda14=_0x383982;this[_0x3bda14(0x1a4)][_0x3bda14(0x1bb)](_0x3bda14(0x1ae));const _0x198db0=new Map(),_0x4ec3fe=this[_0x3bda14(0x1eb)]=new _0x3661a0[(_0x3bda14(0x224))]();_0x4ec3fe[_0x3bda14(0x22c)](_0x3661a0[_0x3bda14(0x20a)](()=>{const _0xae4d5c=_0x3bda14;_0x198db0[_0xae4d5c(0x1d4)](_0x25cf8d=>_0x25cf8d['complete']()),_0x198db0[_0xae4d5c(0x1d2)]();})),_0x4ec3fe['add'](this['_commandService']['onCommandExecuted'](_0x34d65b=>{const _0x198f43=_0x3bda14;var _0x13a7f0;if(_0x34d65b[_0x198f43(0x229)]!==_0x3661a0[_0x198f43(0x1f8)]['OPERATION']||!this[_0x198f43(0x15f)][_0x198f43(0x220)](_0x34d65b['id']))return;const {id:_0x23cbca}=_0x34d65b;let _0x1f1eef;_0x198db0[_0x198f43(0x222)](_0x23cbca)?_0x1f1eef=_0x198db0[_0x198f43(0x1df)](_0x23cbca):(_0x1f1eef=new _0x377157['Subject'](),_0x198db0[_0x198f43(0x18d)](_0x23cbca,_0x1f1eef),_0x1f1eef[_0x198f43(0x206)](_0x28786d['throttleTime']((_0x13a7f0=this[_0x198f43(0x1db)][_0x198f43(0x21d)](_0x2c74c0))!=null?_0x13a7f0:_0x50c959,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4c5d0e=>{const _0x1285ab=_0x198f43;this[_0x1285ab(0x1e6)][_0x1285ab(0x1c1)]({'eventID':_0x3f1b37[_0x1285ab(0x1fd)][_0x1285ab(0x1f9)],'data':{'unitID':this[_0x1285ab(0x1e4)],'operations':{[_0x4c5d0e['id']]:{'id':_0x4c5d0e['id'],'params':JSON[_0x1285ab(0x199)](_0x4c5d0e[_0x1285ab(0x177)])}}}},this[_0x1285ab(0x1e4)]);})),_0x1f1eef[_0x198f43(0x1bb)](_0x34d65b);})),this[_0x3bda14(0x15f)][_0x3bda14(0x1e7)](this[_0x3bda14(0x1e4)])['forEach'](_0x4bfde8=>this[_0x3bda14(0x1e6)]['send']({'eventID':_0x3f1b37[_0x3bda14(0x1fd)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3bda14(0x1e4)],'operations':{[_0x4bfde8['id']]:{'id':_0x4bfde8['id'],'params':JSON[_0x3bda14(0x199)](_0x4bfde8['params'])}}}},this[_0x3bda14(0x1e4)]));}['_stopPresenting'](){const _0x3560f5=_0x383982;var _0x56a896;this[_0x3560f5(0x1a4)][_0x3560f5(0x1bb)]('idle'),(_0x56a896=this[_0x3560f5(0x1eb)])==null||_0x56a896[_0x3560f5(0x17e)](),this['_commandDisposable']=null;}[_0x383982(0x216)](){const _0x592bcd=_0x383982;var _0x47a16b;(_0x47a16b=this['_commandDisposable'])==null||_0x47a16b[_0x592bcd(0x17e)](),this[_0x592bcd(0x1a4)]['next'](_0x592bcd(0x1aa));}[_0x383982(0x204)](){const _0x160ad1=_0x383982;var _0x6f4d8d;this[_0x160ad1(0x1a4)]['next'](_0x160ad1(0x23b)),(_0x6f4d8d=this[_0x160ad1(0x1eb)])==null||_0x6f4d8d['dispose'](),this['_commandDisposable']=null;}[_0x383982(0x20b)](){const _0x21fd9b=_0x383982;var _0x46da51;this[_0x21fd9b(0x1a4)][_0x21fd9b(0x1bb)](_0x21fd9b(0x21f)),(_0x46da51=this[_0x21fd9b(0x1eb)])==null||_0x46da51[_0x21fd9b(0x17e)]();}[_0x383982(0x1fa)](_0x5f24b9){const _0x5e2dbd=_0x383982;if(['presenting',_0x5e2dbd(0x21f),_0x5e2dbd(0x1a6)]['includes'](this[_0x5e2dbd(0x16e)])||!_0x5f24b9[_0x5e2dbd(0x215)]['presenter']||_0x5f24b9[_0x5e2dbd(0x215)][_0x5e2dbd(0x1d1)]===this[_0x5e2dbd(0x1e6)]['getMemberID']())return;this['_status']===_0x5e2dbd(0x23b)&&this[_0x5e2dbd(0x216)]();const _0x1980f6=_0x5f24b9[_0x5e2dbd(0x215)][_0x5e2dbd(0x166)];Object[_0x5e2dbd(0x1fb)](_0x1980f6)[_0x5e2dbd(0x1d4)](_0x2cbdcd=>{const _0x344c99=_0x5e2dbd;this['_commandService'][_0x344c99(0x1e5)](_0x2cbdcd['id'],_0x2cbdcd['params']?JSON[_0x344c99(0x1af)](_0x2cbdcd[_0x344c99(0x177)]):null,{'fromCollab':!0x0});});}[_0x383982(0x1dd)](){const _0x288d86=_0x383982;var _0x344a95;this[_0x288d86(0x1a4)]['next']('offline'),(_0x344a95=this[_0x288d86(0x1eb)])==null||_0x344a95[_0x288d86(0x17e)]();}[_0x383982(0x189)](){const _0x341a5c=_0x383982;this[_0x341a5c(0x1a4)][_0x341a5c(0x1bb)](_0x341a5c(0x23b)),this['_fetchOperations']();}},_0x4f6949[_0x383982(0x21b)]=_0x4477f4([_0xe44ae(0x2,_0x3661a0[_0x383982(0x1a8)]),_0xe44ae(0x3,_0x3661a0[_0x383982(0x1ce)](_0x2a4178)),_0xe44ae(0x4,_0x3661a0['ICommandService'])],_0x4f6949[_0x383982(0x21b)]);function _0x3b1ad4(){const _0x30bee0=_0x383982,_0x3542f9=_0xc625f8['useDependency'](_0x4f6949['LiveShareController']),_0x4c475d=_0xc625f8[_0x30bee0(0x200)](_0x3661a0[_0x30bee0(0x1e9)]),_0x4fdd4a=_0xc625f8['useObservable'](()=>_0x4c475d[_0x30bee0(0x241)](_0x3661a0[_0x30bee0(0x184)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x7ec7ab,_0x1fb8c1]=_0x1909e5['useState'](null),[_0x38e8fd,_0x3c3613]=_0x1909e5[_0x30bee0(0x20c)](_0x47fdc0['IDLE']),_0x4a5ca9=_0x1909e5[_0x30bee0(0x203)](null);return _0x1909e5[_0x30bee0(0x1c5)](()=>(_0x4fdd4a&&_0x3542f9['getLiveShareCoordinator'](_0x4fdd4a[_0x30bee0(0x1ea)]())[_0x30bee0(0x191)](_0x1da931=>{const _0x3bcc65=_0x30bee0;_0x1fb8c1(_0x1da931),_0x4a5ca9['current']=_0x1da931[_0x3bcc65(0x20f)][_0x3bcc65(0x21c)](_0x1ee0e0=>{_0x3c3613(_0x1ee0e0);});}),()=>{const _0x111b6c=_0x30bee0;var _0x3e2d77;(_0x3e2d77=_0x4a5ca9[_0x111b6c(0x1ab)])==null||_0x3e2d77[_0x111b6c(0x1ec)](),_0x4a5ca9[_0x111b6c(0x1ab)]=null;}),[_0x4fdd4a,_0x3542f9]),_0x7ec7ab?_0x1cf0c0['jsx'](_0x3038ae[_0x30bee0(0x16b)],{'align':'end','disabled':_0x38e8fd===_0x47fdc0[_0x30bee0(0x1e8)],'className':_0x30bee0(0x1e3),'overlay':_0x1cf0c0[_0x30bee0(0x23d)](_0x3b86f8,{'status':_0x38e8fd,'coordinator':_0x7ec7ab}),'children':_0x1cf0c0[_0x30bee0(0x23d)](_0x30bee0(0x1a1),{'className':_0x3038ae[_0x30bee0(0x232)](_0x30bee0(0x240),{'univer-cursor-not-allowed':_0x38e8fd===_0x47fdc0[_0x30bee0(0x1e8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38e8fd!==_0x47fdc0[_0x30bee0(0x1e8)]}),'type':'button','children':_0x1cf0c0[_0x30bee0(0x23d)](_0x5a436d,{'className':_0x30bee0(0x1b8)})})}):null;}function _0x3b86f8(_0x2dab4d){const _0x17e022=_0x383982,{status:_0x4531fb,coordinator:_0x471d54}=_0x2dab4d;switch(_0x4531fb){case _0x47fdc0[_0x17e022(0x17c)]:return _0x1cf0c0[_0x17e022(0x23d)](_0x2dfe6e,{'coordinator':_0x471d54});case _0x47fdc0[_0x17e022(0x235)]:return _0x1cf0c0[_0x17e022(0x23d)](_0x314523,{'coordinator':_0x471d54});case _0x47fdc0['NOT_FOLLOWING']:return _0x1cf0c0[_0x17e022(0x23d)](_0x6e77a,{'coordinator':_0x471d54});case _0x47fdc0['OFFLINE']:return _0x1cf0c0[_0x17e022(0x23d)](_0x674361,{});case _0x47fdc0[_0x17e022(0x183)]:return _0x1cf0c0['jsx'](_0x12deeb,{'coordinator':_0x471d54});default:return null;}}function _0x2dfe6e(_0x5bdd01){const _0x393e68=_0x383982,{coordinator:_0x3cab9c}=_0x5bdd01;return _0x1cf0c0[_0x393e68(0x1de)](_0x1cf0c0['Fragment'],{'children':[_0x1cf0c0[_0x393e68(0x23d)](_0x393e68(0x1ba),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x393e68(0x18a)}),_0x1cf0c0[_0x393e68(0x23d)](_0x3038ae[_0x393e68(0x1da)],{'onClick':()=>_0x3cab9c['tryStartPresenting'](),'children':_0x393e68(0x185)})]});}function _0x314523(_0x53c90b){const _0x4884af=_0x383982,{coordinator:_0x28b6a6}=_0x53c90b;return _0x1cf0c0[_0x4884af(0x1de)](_0x1cf0c0[_0x4884af(0x208)],{'children':[_0x1cf0c0[_0x4884af(0x23d)]('div',{'className':_0x4884af(0x186),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x1cf0c0['jsx'](_0x3038ae['Button'],{'onClick':()=>_0x28b6a6[_0x4884af(0x1f0)](),'children':_0x4884af(0x228)})]});}function _0x6e77a(_0x412ce6){const _0x116123=_0x383982,{coordinator:_0x5e7fee}=_0x412ce6;return _0x1cf0c0['jsxs'](_0x1cf0c0[_0x116123(0x208)],{'children':[_0x1cf0c0['jsx'](_0x116123(0x1ba),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x116123(0x161)}),_0x1cf0c0[_0x116123(0x23d)](_0x3038ae[_0x116123(0x1da)],{'variant':'text','onClick':()=>_0x5e7fee[_0x116123(0x194)](),'children':_0x116123(0x18e)})]});}function _0x12deeb(_0x17dfe5){const _0x17bce8=_0x383982,{coordinator:_0x280c99}=_0x17dfe5;return _0x1cf0c0[_0x17bce8(0x1de)](_0x1cf0c0[_0x17bce8(0x208)],{'children':[_0x1cf0c0[_0x17bce8(0x23d)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x17bce8(0x180)}),_0x1cf0c0['jsx'](_0x3038ae[_0x17bce8(0x1da)],{'variant':_0x17bce8(0x239),'onClick':()=>_0x280c99['stopPresenting'](),'children':_0x17bce8(0x202)})]});}function _0x674361(){const _0x45a48b=_0x383982;return _0x1cf0c0[_0x45a48b(0x23d)](_0x1cf0c0[_0x45a48b(0x208)],{'children':_0x45a48b(0x1b6)});}var _0x5b174c=Object['getOwnPropertyDescriptor'],_0x3e8558=(_0x4e15d8,_0x1cf360,_0x14ee44,_0x2d53c2)=>{const _0x417f48=_0x383982;for(var _0x1917fb=_0x2d53c2>0x1?void 0x0:_0x2d53c2?_0x5b174c(_0x1cf360,_0x14ee44):_0x1cf360,_0x499b84=_0x4e15d8[_0x417f48(0x18c)]-0x1,_0x38f63e;_0x499b84>=0x0;_0x499b84--)(_0x38f63e=_0x4e15d8[_0x499b84])&&(_0x1917fb=_0x38f63e(_0x1917fb)||_0x1917fb);return _0x1917fb;},_0x24b25a=(_0x4554a5,_0x304532)=>(_0x523ec3,_0x5b0a6c)=>_0x304532(_0x523ec3,_0x5b0a6c,_0x4554a5);_0x4f6949[_0x383982(0x237)]=class extends _0x3661a0[_0x383982(0x1be)]{constructor(_0x25266d,_0x3fe872){const _0x2744dd=_0x383982;super(),this[_0x2744dd(0x1fc)]=_0x25266d,this['_uiPartsService']=_0x3fe872,this[_0x2744dd(0x243)]();}[_0x383982(0x243)](){const _0x5c2095=_0x383982;this['disposeWithMe'](this[_0x5c2095(0x1f6)]['registerComponent'](_0xc625f8[_0x5c2095(0x179)][_0x5c2095(0x225)],()=>_0xc625f8[_0x5c2095(0x18f)](_0x3b1ad4,this[_0x5c2095(0x1fc)])));}},_0x4f6949[_0x383982(0x237)]=_0x3e8558([_0x24b25a(0x0,_0x3661a0[_0x383982(0x1ce)](_0x3661a0[_0x383982(0x18b)])),_0x24b25a(0x1,_0xc625f8[_0x383982(0x20d)])],_0x4f6949[_0x383982(0x237)]);const _0x527972=_0x383982(0x238),_0x13831b={};var _0x1f5e92=Object[_0x383982(0x231)],_0x5bbdb7=(_0x22f29d,_0x363c8f,_0x9f787a,_0x76abb0)=>{const _0x4435b4=_0x383982;for(var _0x35e171=_0x76abb0>0x1?void 0x0:_0x76abb0?_0x1f5e92(_0x363c8f,_0x9f787a):_0x363c8f,_0x1e6848=_0x22f29d[_0x4435b4(0x18c)]-0x1,_0x32fc6d;_0x1e6848>=0x0;_0x1e6848--)(_0x32fc6d=_0x22f29d[_0x1e6848])&&(_0x35e171=_0x32fc6d(_0x35e171)||_0x35e171);return _0x35e171;},_0x7c96dd=(_0x5c332a,_0x23c057)=>(_0x40f9ba,_0x2506c6)=>_0x23c057(_0x40f9ba,_0x2506c6,_0x5c332a);let _0x4a31de=class extends _0x3661a0[_0x383982(0x1be)]{constructor(_0x158bd9){const _0x1371d8=_0x383982;super(),this['_liveShareService']=_0x158bd9,this[_0x1371d8(0x193)]();}['_init'](){const _0x477864=_0x383982;[_0x41b85b[_0x477864(0x1d5)]['id'],_0x41b85b[_0x477864(0x1b9)]['id'],_0x45c3f5[_0x477864(0x175)]['id']][_0x477864(0x1d4)](_0x3c5575=>{const _0x4d1646=_0x477864;this[_0x4d1646(0x223)](this[_0x4d1646(0x15f)][_0x4d1646(0x168)](_0x3c5575));});}};_0x4a31de=_0x5bbdb7([_0x7c96dd(0x0,_0x3661a0[_0x383982(0x1ce)](_0x2a4178))],_0x4a31de);var _0x63bf72=Object[_0x383982(0x192)],_0x22b6a0=Object[_0x383982(0x231)],_0x537b2f=(_0x16caea,_0x155ba5,_0x18d295)=>_0x155ba5 in _0x16caea?_0x63bf72(_0x16caea,_0x155ba5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18d295}):_0x16caea[_0x155ba5]=_0x18d295,_0x297010=(_0x351dc5,_0x1c66d6,_0x4a05bf,_0x53574f)=>{for(var _0x20d562=_0x53574f>0x1?void 0x0:_0x53574f?_0x22b6a0(_0x1c66d6,_0x4a05bf):_0x1c66d6,_0x52cd0d=_0x351dc5['length']-0x1,_0x2a7fa6;_0x52cd0d>=0x0;_0x52cd0d--)(_0x2a7fa6=_0x351dc5[_0x52cd0d])&&(_0x20d562=_0x2a7fa6(_0x20d562)||_0x20d562);return _0x20d562;},_0x19dc4a=(_0x2b27a4,_0x2091a2)=>(_0x137d66,_0x4f3713)=>_0x2091a2(_0x137d66,_0x4f3713,_0x2b27a4),_0x48b8b7=(_0x129eed,_0x46e25f,_0x5754bb)=>_0x537b2f(_0x129eed,typeof _0x46e25f!=_0x383982(0x181)?_0x46e25f+'':_0x46e25f,_0x5754bb);const _0xa62149='UNIVER_LIVE_SHARE_PLUGIN';_0x4f6949['UniverLiveSharePlugin']=class extends _0x3661a0['Plugin']{constructor(_0x362be5=_0x13831b,_0x5c299a,_0x3ca6d3){const _0x5812dd=_0x383982;super(),this['_config']=_0x362be5,this[_0x5812dd(0x1fc)]=_0x5c299a,this[_0x5812dd(0x1db)]=_0x3ca6d3;const {..._0x19ea63}=_0x3661a0['merge']({},_0x13831b,this['_config']);this['_configService'][_0x5812dd(0x201)](_0x527972,_0x19ea63);}[_0x383982(0x174)](){const _0x25d9fd=_0x383982;_0x3661a0['registerDependencies'](this[_0x25d9fd(0x1fc)],_0x3661a0[_0x25d9fd(0x1c8)]([[_0x2a4178],[_0x4f6949[_0x25d9fd(0x1ed)]],[_0x4a31de],[_0x4f6949[_0x25d9fd(0x237)]]],this[_0x25d9fd(0x22e)][_0x25d9fd(0x1d6)])),_0x3661a0[_0x25d9fd(0x1c0)](this['_injector'],[[_0x4a31de]]);}['onRendered'](){const _0x41554f=_0x383982;_0x3661a0[_0x41554f(0x1c0)](this[_0x41554f(0x1fc)],[[_0x4f6949[_0x41554f(0x237)]]]);}},_0x48b8b7(_0x4f6949[_0x383982(0x1e0)],_0x383982(0x229),_0x3661a0[_0x383982(0x184)][_0x383982(0x23f)]),_0x48b8b7(_0x4f6949[_0x383982(0x1e0)],_0x383982(0x234),_0xa62149),_0x4f6949[_0x383982(0x1e0)]=_0x297010([_0x3661a0['DependentOn'](_0x4d45c4[_0x383982(0x226)]),_0x19dc4a(0x1,_0x3661a0[_0x383982(0x1ce)](_0x3661a0['Injector'])),_0x19dc4a(0x2,_0x3661a0[_0x383982(0x1a8)])],_0x4f6949[_0x383982(0x1e0)]),_0x4f6949['LiveShare']=_0x3b1ad4,_0x4f6949['LiveShareService']=_0x2a4178,_0x4f6949[_0x383982(0x1f2)]=_0x47fdc0,Object[_0x383982(0x192)](_0x4f6949,Symbol[_0x383982(0x22b)],{'value':'Module'});}));function _0x580b(_0x157737,_0x2cbfbc){_0x157737=_0x157737-0x15b;const _0x4bdb86=_0x4bdb();let _0x580b35=_0x4bdb86[_0x157737];return _0x580b35;}function _0x4bdb(){const _0x5e27d7=['current','_handleNewChangeSets','778840HlKEfp','presenting','parse','_stopPresenting','string','440991dDtaDb','LIVESHARE_REQUEST_HOST','createInstance','UniverCore','You\x27are\x20offline.','16161343KdFdzV','univer-size-4','SetScrollOperation','div','next','@univerjs-pro/collaboration','UniverProCollaboration','Disposable','react','touchDependencies','send','registerInitialStateReporter','SAME_OPERATION_SHARE_INTERVAL','_startLiveShareCoordinator','useEffect','InsertSheetMutation','CollaborationSessionService','mergeOverrideWithDependencies','rxjs','svg','getTypeOfUnitDisposed$','dispose$','1em','Inject','NOT_FOLLOWING','_handleTerminate','presenter','clear','LiveShareIcon','forEach','SetZoomRatioOperation','override','defIds','entries','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','Button','_configService','_sharedOperations','_handleOffline','jsxs','get','UniverLiveSharePlugin','_reporters','LIVESHARE_NEW_HOST','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_unitID','executeCommand','_collabSession','getInitialStates','OFFLINE','IUniverInstanceService','getUnitId','_commandDisposable','unsubscribe','LiveShareController','function','rxjs/operators','stopFollowing','1475509JqjQHR','LiveShareStatus','3097576nfFTfK','_startPresenting','colorChannel1','_uiPartsService','trim','CommandType','LIVESHARE_OPERATION','_handleOperation','values','_injector','CollaborationEvent','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','LIVESHARE_FETCH_OPERATIONS','useDependency','setConfig','Stop\x20presenting','useRef','_beIdle','toString','pipe','@univerjs-pro/collaboration-client','Fragment','none','toDisposable','_stopFollowing','useState','IUIPartsService','_fetchOperations','status$','live-share-icon','0\x200\x2017\x2017','amd','assign','complete','data','_startFollowing','_entities','getValue','React','tag','LiveShareCoordinator','subscribe','getConfig','6tjqbWm','not-following','shouldShareOperation','4546TPZOtN','has','disposeWithMe','DisposableCollection','HEADER_MENU','UniverCollaborationClientPlugin','map','Stop\x20following','type','fill','toStringTag','add','@univerjs/design','_config','46HYSTBQ','_handleNewHost','getOwnPropertyDescriptor','clsx','memberID','pluginName','FOLLOWING','RxDisposable','DesktopLiveShareController','live-share.config','default','xlink:href','idle','children','jsx','path','UNIVER_UNKNOWN','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getCurrentTypeOfUnit$','from','_mountLiveShare','stopPresenting','forwardRef','20406KhnyFJ','mask','evenodd','_liveShareService','http://www.w3.org/2000/svg','You\x27re\x20not\x20following\x20the\x20presenter','reverse','getLiveShareCoordinator','currentColor','_commandService','operations','object','registerSharedOperation','takeUntil','exports','Dropdown','_univerInstanceService','10LWomGY','_status','random','includes','UNIVER_SHEET','mutations','displayName','onStarting','SetWorksheetActiveOperation','requireSession','params','212xVreNJ','BuiltInUIPart','react/jsx-runtime','sheet','IDLE','find','dispose','sessionStatus$','You\x27re\x20presenting\x20the\x20document','symbol','BehaviorSubject','PRESENTING','UniverInstanceType','Start','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverSheets','_collabSessionService','_handleOnline','Present\x20this\x20document','Injector','length','set','Start\x20following','connectInjector','getMemberID','then','defineProperty','_init','startFollowing','defs','getTypeOfUnitAdded$','attrs','UniverUi','stringify','idSuffix','SessionStatus','ONLINE','LIVESHARE_TERMINATE','init','delete','getLiveShareCoordinatorSync','button','_presenter','replace','_status$','event$','offline','UniverSheetsUi','IConfigService','url(#$1','following'];_0x4bdb=function(){return _0x5e27d7;};return _0x4bdb();}
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.3-insiders.20260131-b9b8805",
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.3-insiders.20260131-b9b8805",
61
- "@univerjs-pro/collaboration-client": "0.15.3-insiders.20260131-b9b8805",
62
- "@univerjs/core": "0.15.3-insiders.20260131-b9b8805",
63
- "@univerjs/sheets": "0.15.3-insiders.20260131-b9b8805",
64
- "@univerjs/design": "0.15.3-insiders.20260131-b9b8805",
65
- "@univerjs/ui": "0.15.3-insiders.20260131-b9b8805",
66
- "@univerjs/sheets-ui": "0.15.3-insiders.20260131-b9b8805"
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",
@@ -72,7 +72,7 @@
72
72
  "tailwindcss": "^3.4.17",
73
73
  "typescript": "^5.9.3",
74
74
  "vite": "^7.3.1",
75
- "vitest": "^4.0.18",
75
+ "vitest": "^4.0.16",
76
76
  "@univerjs-infra/shared": "0.15.3",
77
77
  "@univerjs/protocol": "0.1.48"
78
78
  },