@univerjs-pro/live-share 0.10.14-nightly.202511080715 → 0.11.0-nightly.202511151013

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 _0x4341c0=_0x27ac;(function(_0x51c66c,_0x216738){const _0x3e7a62=_0x27ac,_0x2b4dff=_0x51c66c();while(!![]){try{const _0x3c2a80=-parseInt(_0x3e7a62(0x15f))/0x1+parseInt(_0x3e7a62(0x17f))/0x2*(parseInt(_0x3e7a62(0x160))/0x3)+-parseInt(_0x3e7a62(0x16c))/0x4+parseInt(_0x3e7a62(0x170))/0x5+-parseInt(_0x3e7a62(0x16a))/0x6+parseInt(_0x3e7a62(0x182))/0x7+parseInt(_0x3e7a62(0x171))/0x8*(parseInt(_0x3e7a62(0x176))/0x9);if(_0x3c2a80===_0x216738)break;else _0x2b4dff['push'](_0x2b4dff['shift']());}catch(_0x38adeb){_0x2b4dff['push'](_0x2b4dff['shift']());}}}(_0x5bb7,0x3ff09));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d['FRange']{[_0x4341c0(0x15c)](_0x185b46,_0x11a390,_0xd94cb1,_0x138370,_0x3fb61f){const _0x13c998=_0x4341c0,_0x29e940=_0x185b46[_0x13c998(0x17d)](n['LiveShareController']),_0xc99692=_0x185b46[_0x13c998(0x17d)](g['IRenderManagerService']),_0x43dfb2=_0x11a390[_0x13c998(0x163)](),_0x64b2fb=_0x11a390[_0x13c998(0x161)](),_0x396156=_0x29e940[_0x13c998(0x15e)](_0x43dfb2);(_0x396156==null?void 0x0:_0x396156[_0x13c998(0x165)]())!==n['LiveShareStatus'][_0x13c998(0x175)]||(_0xd94cb1[_0x13c998(0x178)]()!==_0x64b2fb[_0x13c998(0x178)]()&&this['_commandService'][_0x13c998(0x179)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x43dfb2,'subUnitId':_0xd94cb1[_0x13c998(0x178)]()}),!_0xc99692[_0x13c998(0x173)](_0x43dfb2))||_0x3fb61f[_0x13c998(0x17c)](f[_0x13c998(0x172)]['id'],{'unitId':_0x11a390[_0x13c998(0x163)](),'sheetId':_0xd94cb1[_0x13c998(0x178)](),'sheetViewStartRow':_0x138370[_0x13c998(0x17a)],'sheetViewStartColumn':_0x138370[_0x13c998(0x166)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x27ac(_0x41d401,_0x1ca0b6){const _0x5bb713=_0x5bb7();return _0x27ac=function(_0x27accf,_0x87b7fa){_0x27accf=_0x27accf-0x15b;let _0x3c6594=_0x5bb713[_0x27accf];return _0x3c6594;},_0x27ac(_0x41d401,_0x1ca0b6);}d[_0x4341c0(0x16d)][_0x4341c0(0x15b)](w);class C extends a['FUniver']{[_0x4341c0(0x16b)](){const _0x2f0952=_0x4341c0;var _0x3d6bdd,_0x1fdc7c;const _0x4cd513=this['_injector'][_0x2f0952(0x17d)](n[_0x2f0952(0x180)]),_0x4529df=(_0x3d6bdd=this[_0x2f0952(0x174)]())==null?void 0x0:_0x3d6bdd['getId']();if(!_0x4529df)throw new Error(_0x2f0952(0x181));const _0x428570=_0x4cd513[_0x2f0952(0x15e)](_0x4529df);return(_0x1fdc7c=_0x428570==null?void 0x0:_0x428570[_0x2f0952(0x165)]())!=null?_0x1fdc7c:n[_0x2f0952(0x17e)][_0x2f0952(0x16e)];}[_0x4341c0(0x177)](){const _0xef0b7a=_0x4341c0;var _0x2233de;const _0x4030d1=this[_0xef0b7a(0x15d)][_0xef0b7a(0x17d)](n[_0xef0b7a(0x180)]),_0x2fe604=(_0x2233de=this[_0xef0b7a(0x174)]())==null?void 0x0:_0x2233de[_0xef0b7a(0x164)]();if(!_0x2fe604)throw new Error('No\x20active\x20workbook\x20found.');const _0x52401f=_0x4030d1[_0xef0b7a(0x15e)](_0x2fe604);if(!_0x52401f)throw new Error(_0xef0b7a(0x169));_0x52401f['startFollowing']();}[_0x4341c0(0x162)](){const _0x4f252f=_0x4341c0;var _0x593d42;const _0x4e9940=this[_0x4f252f(0x15d)][_0x4f252f(0x17d)](n['LiveShareController']),_0x48c722=(_0x593d42=this[_0x4f252f(0x174)]())==null?void 0x0:_0x593d42[_0x4f252f(0x164)]();if(!_0x48c722)throw new Error(_0x4f252f(0x181));const _0x531628=_0x4e9940[_0x4f252f(0x15e)](_0x48c722);if(!_0x531628)throw new Error(_0x4f252f(0x169));_0x531628[_0x4f252f(0x162)]();}[_0x4341c0(0x167)](){const _0x3a6592=_0x4341c0;var _0x18d402;const _0x297d79=this[_0x3a6592(0x15d)]['get'](n[_0x3a6592(0x180)]),_0x355f08=(_0x18d402=this['getActiveWorkbook']())==null?void 0x0:_0x18d402[_0x3a6592(0x164)]();if(!_0x355f08)throw new Error(_0x3a6592(0x181));const _0x287939=_0x297d79[_0x3a6592(0x15e)](_0x355f08);if(!_0x287939)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x287939['tryStartPresenting']();}['stopPresenting'](){const _0x32bf7d=_0x4341c0;var _0xe029fb;const _0x578f5b=this[_0x32bf7d(0x15d)][_0x32bf7d(0x17d)](n[_0x32bf7d(0x180)]),_0x19a70e=(_0xe029fb=this['getActiveWorkbook']())==null?void 0x0:_0xe029fb[_0x32bf7d(0x164)]();if(!_0x19a70e)throw new Error(_0x32bf7d(0x181));const _0x5965d3=_0x578f5b[_0x32bf7d(0x15e)](_0x19a70e);if(!_0x5965d3)throw new Error(_0x32bf7d(0x169));_0x5965d3[_0x32bf7d(0x168)]();}}a['FUniver'][_0x4341c0(0x15b)](C);function _0x5bb7(){const _0x302b80=['No\x20active\x20workbook\x20found.','720713GTBFLP','extend','_initialize','_injector','getLiveShareCoordinatorSync','344215eggOwq','118956zaFrdn','getActiveSheet','stopFollowing','getUnitId','getId','getStatus','startColumn','startPresenting','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','3124974wKxgrs','getLiveShareStatus','2022976oKNNYI','FRange','IDLE','LiveShareStatusEnum','149905DbALYc','152MzMZFc','SetScrollOperation','getRenderById','getActiveWorkbook','PRESENTING','691623csLqIH','startFollowing','getSheetId','executeCommand','startRow','FEnum','syncExecuteCommand','get','LiveShareStatus','2NgibaP','LiveShareController'];_0x5bb7=function(){return _0x302b80;};return _0x5bb7();}class L extends a[_0x4341c0(0x17b)]{get[_0x4341c0(0x16f)](){const _0x68f125=_0x4341c0;return n[_0x68f125(0x17e)];}}a[_0x4341c0(0x17b)][_0x4341c0(0x15b)](L);
1
+ 'use strict';function _0x40ea(){const _0x32c725=['FRange','No\x20active\x20workbook\x20found.','extend','stopFollowing','_injector','IDLE','9YRHkAc','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','getSheetId','LiveShareStatus','6UpPWJl','stopPresenting','LiveShareStatusEnum','getUnitId','startRow','LiveShareController','getRenderById','getActiveSheet','SetWorksheetActiveOperation','9366fsLSZc','getStatus','FUniver','syncExecuteCommand','getActiveWorkbook','getId','tryStartPresenting','IRenderManagerService','startColumn','FEnum','5077690geqOky','2742044KphCfq','getLiveShareStatus','1070PdqoQw','getLiveShareCoordinatorSync','3GOcjYl','4239784vRAqWs','1507394fZEuxG','get','13805572ssqYpH','235717QTqOHf'];_0x40ea=function(){return _0x32c725;};return _0x40ea();}const _0x417af8=_0x56eb;function _0x56eb(_0x25f8e9,_0x602e34){const _0x40ea47=_0x40ea();return _0x56eb=function(_0x56ebbe,_0x3e6ab8){_0x56ebbe=_0x56ebbe-0x117;let _0x1e3c4d=_0x40ea47[_0x56ebbe];return _0x1e3c4d;},_0x56eb(_0x25f8e9,_0x602e34);}(function(_0x5e9e4a,_0x790f8d){const _0x4da5eb=_0x56eb,_0xc0b250=_0x5e9e4a();while(!![]){try{const _0x1804b6=parseInt(_0x4da5eb(0x13d))/0x1*(parseInt(_0x4da5eb(0x120))/0x2)+parseInt(_0x4da5eb(0x138))/0x3*(-parseInt(_0x4da5eb(0x134))/0x4)+-parseInt(_0x4da5eb(0x136))/0x5*(-parseInt(_0x4da5eb(0x129))/0x6)+parseInt(_0x4da5eb(0x13a))/0x7+-parseInt(_0x4da5eb(0x139))/0x8*(-parseInt(_0x4da5eb(0x11b))/0x9)+parseInt(_0x4da5eb(0x133))/0xa+-parseInt(_0x4da5eb(0x13c))/0xb;if(_0x1804b6===_0x790f8d)break;else _0xc0b250['push'](_0xc0b250['shift']());}catch(_0x3966e4){_0xc0b250['push'](_0xc0b250['shift']());}}}(_0x40ea,0x565be));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d[_0x417af8(0x13e)]{['_initialize'](_0x495a6c,_0x2fe091,_0x3d3e25,_0x26be9a,_0x2c81e3){const _0x58f992=_0x417af8,_0x15ae9b=_0x495a6c[_0x58f992(0x13b)](n[_0x58f992(0x125)]),_0x2cb68c=_0x495a6c[_0x58f992(0x13b)](g[_0x58f992(0x130)]),_0x26f1c9=_0x2fe091[_0x58f992(0x123)](),_0x390810=_0x2fe091[_0x58f992(0x127)](),_0x16953f=_0x15ae9b[_0x58f992(0x137)](_0x26f1c9);(_0x16953f==null?void 0x0:_0x16953f[_0x58f992(0x12a)]())!==n[_0x58f992(0x11f)]['PRESENTING']||(_0x3d3e25[_0x58f992(0x11e)]()!==_0x390810[_0x58f992(0x11e)]()&&this['_commandService']['executeCommand'](u[_0x58f992(0x128)]['id'],{'unitId':_0x26f1c9,'subUnitId':_0x3d3e25[_0x58f992(0x11e)]()}),!_0x2cb68c[_0x58f992(0x126)](_0x26f1c9))||_0x2c81e3[_0x58f992(0x12c)](f['SetScrollOperation']['id'],{'unitId':_0x2fe091['getUnitId'](),'sheetId':_0x3d3e25['getSheetId'](),'sheetViewStartRow':_0x26be9a[_0x58f992(0x124)],'sheetViewStartColumn':_0x26be9a[_0x58f992(0x131)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x417af8(0x13e)]['extend'](w);class C extends a['FUniver']{[_0x417af8(0x135)](){const _0x50e46c=_0x417af8;var _0x78a8d8,_0x4f8dc3;const _0x3469b5=this[_0x50e46c(0x119)]['get'](n[_0x50e46c(0x125)]),_0xc244e8=(_0x78a8d8=this[_0x50e46c(0x12d)]())==null?void 0x0:_0x78a8d8[_0x50e46c(0x12e)]();if(!_0xc244e8)throw new Error(_0x50e46c(0x13f));const _0x9ceafc=_0x3469b5[_0x50e46c(0x137)](_0xc244e8);return(_0x4f8dc3=_0x9ceafc==null?void 0x0:_0x9ceafc[_0x50e46c(0x12a)]())!=null?_0x4f8dc3:n[_0x50e46c(0x11f)][_0x50e46c(0x11a)];}[_0x417af8(0x11d)](){const _0x58e997=_0x417af8;var _0x346186;const _0x279123=this[_0x58e997(0x119)][_0x58e997(0x13b)](n[_0x58e997(0x125)]),_0x3c5d00=(_0x346186=this[_0x58e997(0x12d)]())==null?void 0x0:_0x346186[_0x58e997(0x12e)]();if(!_0x3c5d00)throw new Error(_0x58e997(0x13f));const _0x19987f=_0x279123[_0x58e997(0x137)](_0x3c5d00);if(!_0x19987f)throw new Error(_0x58e997(0x11c));_0x19987f[_0x58e997(0x11d)]();}[_0x417af8(0x118)](){const _0x4a77a0=_0x417af8;var _0x30e7cc;const _0x156861=this[_0x4a77a0(0x119)][_0x4a77a0(0x13b)](n[_0x4a77a0(0x125)]),_0x13ae6d=(_0x30e7cc=this[_0x4a77a0(0x12d)]())==null?void 0x0:_0x30e7cc['getId']();if(!_0x13ae6d)throw new Error(_0x4a77a0(0x13f));const _0x37b7a4=_0x156861['getLiveShareCoordinatorSync'](_0x13ae6d);if(!_0x37b7a4)throw new Error(_0x4a77a0(0x11c));_0x37b7a4[_0x4a77a0(0x118)]();}['startPresenting'](){const _0x1ca321=_0x417af8;var _0x51664d;const _0x8bfdbf=this[_0x1ca321(0x119)][_0x1ca321(0x13b)](n[_0x1ca321(0x125)]),_0x1f5bad=(_0x51664d=this[_0x1ca321(0x12d)]())==null?void 0x0:_0x51664d[_0x1ca321(0x12e)]();if(!_0x1f5bad)throw new Error('No\x20active\x20workbook\x20found.');const _0x47d77d=_0x8bfdbf[_0x1ca321(0x137)](_0x1f5bad);if(!_0x47d77d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x47d77d[_0x1ca321(0x12f)]();}[_0x417af8(0x121)](){const _0x5ed5c4=_0x417af8;var _0x2dbf59;const _0x235c01=this[_0x5ed5c4(0x119)][_0x5ed5c4(0x13b)](n['LiveShareController']),_0x364b40=(_0x2dbf59=this[_0x5ed5c4(0x12d)]())==null?void 0x0:_0x2dbf59['getId']();if(!_0x364b40)throw new Error(_0x5ed5c4(0x13f));const _0x2f6c40=_0x235c01['getLiveShareCoordinatorSync'](_0x364b40);if(!_0x2f6c40)throw new Error(_0x5ed5c4(0x11c));_0x2f6c40[_0x5ed5c4(0x121)]();}}a[_0x417af8(0x12b)][_0x417af8(0x117)](C);class L extends a['FEnum']{get[_0x417af8(0x122)](){const _0x13024e=_0x417af8;return n[_0x13024e(0x11f)];}}a[_0x417af8(0x132)][_0x417af8(0x117)](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x4fae1d=_0x439a;(function(_0x4f72ec,_0x262431){const _0x13eddc=_0x439a,_0x33e078=_0x4f72ec();while(!![]){try{const _0x442db0=parseInt(_0x13eddc(0x197))/0x1+parseInt(_0x13eddc(0x206))/0x2+-parseInt(_0x13eddc(0x1f4))/0x3+parseInt(_0x13eddc(0x1c5))/0x4+parseInt(_0x13eddc(0x22b))/0x5*(parseInt(_0x13eddc(0x166))/0x6)+-parseInt(_0x13eddc(0x1ef))/0x7*(parseInt(_0x13eddc(0x19c))/0x8)+parseInt(_0x13eddc(0x17a))/0x9;if(_0x442db0===_0x262431)break;else _0x33e078['push'](_0x33e078['shift']());}catch(_0x3a02f3){_0x33e078['push'](_0x33e078['shift']());}}}(_0x2244,0xe1fed));var T=Object[_0x4fae1d(0x16f)],U=(_0x407ec7,_0x35ad5d,_0x4ab2b6)=>_0x35ad5d in _0x407ec7?T(_0x407ec7,_0x35ad5d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ab2b6}):_0x407ec7[_0x35ad5d]=_0x4ab2b6,_=(_0x509134,_0x5f0619,_0xc1d847)=>U(_0x509134,typeof _0x5f0619!=_0x4fae1d(0x1c1)?_0x5f0619+'':_0x5f0619,_0xc1d847);Object[_0x4fae1d(0x16f)](exports,Symbol[_0x4fae1d(0x1c8)],{'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:_0x12eb28,..._0x10fc12}){const _0x236e11=_0x4fae1d,{icon:_0x220f8f,id:_0x3cdf16,className:_0x69d7c8,extend:_0xe56670,..._0x2d3280}=_0x10fc12,_0x4ba7b7=(_0x236e11(0x1bc)+_0x3cdf16+'\x20'+(_0x69d7c8||''))[_0x236e11(0x219)](),_0x40fc16=v['useRef']('_'+H());return j(_0x220f8f,''+_0x3cdf16,{'defIds':_0x220f8f[_0x236e11(0x192)],'idSuffix':_0x40fc16['current']},{'ref':_0x12eb28,'className':_0x4ba7b7,..._0x2d3280},_0xe56670);}function j(_0x4ea341,_0x12678c,_0x2fa94f,_0x2ed096,_0x1205d1){const _0x4fbb76=_0x4fae1d;return v[_0x4fbb76(0x18f)](_0x4ea341[_0x4fbb76(0x1b3)],{'key':_0x12678c,...y(_0x4ea341,_0x2fa94f,_0x1205d1),..._0x2ed096},(F(_0x4ea341,_0x2fa94f)['children']||[])[_0x4fbb76(0x1ca)]((_0x28d3f1,_0x4377dd)=>j(_0x28d3f1,_0x12678c+'-'+_0x4ea341[_0x4fbb76(0x1b3)]+'-'+_0x4377dd,_0x2fa94f,void 0x0,_0x1205d1)));}function y(_0x2aa221,_0x310f75,_0xe7ff32){const _0x1de10d=_0x4fae1d,_0x3176d5={..._0x2aa221[_0x1de10d(0x172)]};_0xe7ff32!=null&&_0xe7ff32[_0x1de10d(0x1d7)]&&_0x3176d5[_0x1de10d(0x20b)]===_0x1de10d(0x1d7)&&(_0x3176d5[_0x1de10d(0x20b)]=_0xe7ff32[_0x1de10d(0x1d7)]),_0x2aa221['tag']===_0x1de10d(0x201)&&_0x3176d5['id']&&(_0x3176d5['id']=_0x3176d5['id']+_0x310f75[_0x1de10d(0x227)]),Object[_0x1de10d(0x199)](_0x3176d5)[_0x1de10d(0x189)](([_0x3ef840,_0x4d3c35])=>{const _0x63353e=_0x1de10d;_0x3ef840===_0x63353e(0x201)&&typeof _0x4d3c35=='string'&&(_0x3176d5[_0x3ef840]=_0x4d3c35[_0x63353e(0x208)](/url\(#(.*)\)/,_0x63353e(0x1b1)+_0x310f75['idSuffix']+')'));});const {defIds:_0x36266e}=_0x310f75;return!_0x36266e||_0x36266e[_0x1de10d(0x170)]===0x0||(_0x2aa221[_0x1de10d(0x1b3)]==='use'&&_0x3176d5['xlink:href']&&(_0x3176d5[_0x1de10d(0x16d)]=_0x3176d5[_0x1de10d(0x16d)]+_0x310f75[_0x1de10d(0x227)]),Object[_0x1de10d(0x199)](_0x3176d5)['forEach'](([_0x5fd082,_0x284b0d])=>{const _0x15c475=_0x1de10d;typeof _0x284b0d==_0x15c475(0x216)&&(_0x3176d5[_0x5fd082]=_0x284b0d[_0x15c475(0x208)](/url\(#(.*)\)/,_0x15c475(0x1b1)+_0x310f75[_0x15c475(0x227)]+')'));})),_0x3176d5;}function F(_0x2c0d80,_0x338a4d){const _0x598c2f=_0x4fae1d;var _0x2e39a5;const {defIds:_0x354ace}=_0x338a4d;return!_0x354ace||_0x354ace[_0x598c2f(0x170)]===0x0?_0x2c0d80:_0x2c0d80[_0x598c2f(0x1b3)]==='defs'&&((_0x2e39a5=_0x2c0d80[_0x598c2f(0x165)])!=null&&_0x2e39a5[_0x598c2f(0x170)])?{..._0x2c0d80,'children':_0x2c0d80[_0x598c2f(0x165)]['map'](_0x50e4b3=>typeof _0x50e4b3[_0x598c2f(0x172)]['id']=='string'&&_0x354ace&&_0x354ace['includes'](_0x50e4b3[_0x598c2f(0x172)]['id'])?{..._0x50e4b3,'attrs':{..._0x50e4b3[_0x598c2f(0x172)],'id':_0x50e4b3[_0x598c2f(0x172)]['id']+_0x338a4d[_0x598c2f(0x227)]}}:_0x50e4b3)}:_0x2c0d80;}function H(){const _0x1226f4=_0x4fae1d;return Math[_0x1226f4(0x19e)]()[_0x1226f4(0x17d)](0x24)[_0x1226f4(0x169)](0x2,0x8);}x[_0x4fae1d(0x1f0)]='UniverIcon';const V={'tag':_0x4fae1d(0x185),'attrs':{'xmlns':_0x4fae1d(0x195),'fill':'none','viewBox':_0x4fae1d(0x1fa),'width':'1em','height':_0x4fae1d(0x228)},'children':[{'tag':_0x4fae1d(0x1a7),'attrs':{'fill':'currentColor','d':_0x4fae1d(0x20a)}},{'tag':_0x4fae1d(0x1a7),'attrs':{'fill':'currentColor','d':_0x4fae1d(0x168),'fillRule':_0x4fae1d(0x175),'clipRule':'evenodd'}}]},R=v[_0x4fae1d(0x21f)](function(_0xe707d,_0x1958da){const _0x9e66b7=_0x4fae1d;return v[_0x9e66b7(0x18f)](x,Object[_0x9e66b7(0x1b6)]({},_0xe707d,{'id':_0x9e66b7(0x1dd),'ref':_0x1958da,'icon':V}));});R[_0x4fae1d(0x1f0)]=_0x4fae1d(0x21b);class E extends o['Disposable']{constructor(){const _0x2c942c=_0x4fae1d;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x2c942c(0x22a),new Set());}[_0x4fae1d(0x17e)](_0xfb94ae){const _0x277662=_0x4fae1d;return this[_0x277662(0x1c0)][_0x277662(0x174)](_0xfb94ae),o[_0x277662(0x1ab)](()=>this['_sharedOperations']['delete'](_0xfb94ae));}[_0x4fae1d(0x1cf)](_0x4bfbb2){const _0x54cf87=_0x4fae1d;return this[_0x54cf87(0x22a)][_0x54cf87(0x174)](_0x4bfbb2),o['toDisposable'](()=>this[_0x54cf87(0x22a)][_0x54cf87(0x1db)](_0x4bfbb2));}[_0x4fae1d(0x1e7)](_0x3df2d6){const _0xa8401f=_0x4fae1d;return this[_0xa8401f(0x1c0)]['has'](_0x3df2d6);}[_0x4fae1d(0x1da)](_0x333546){const _0x1cefc4=_0x4fae1d;return Array[_0x1cefc4(0x173)](this['_reporters'])['map'](_0x4c6df5=>_0x4c6df5(_0x333546));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x5a3439,_0x2c748c,_0x5cd5b2,_0x1abc50)=>{const _0x269656=_0x4fae1d;for(var _0x378a69=_0x1abc50>0x1?void 0x0:_0x1abc50?M(_0x2c748c,_0x5cd5b2):_0x2c748c,_0x13a8d8=_0x5a3439[_0x269656(0x170)]-0x1,_0x1ab315;_0x13a8d8>=0x0;_0x13a8d8--)(_0x1ab315=_0x5a3439[_0x13a8d8])&&(_0x378a69=_0x1ab315(_0x378a69)||_0x378a69);return _0x378a69;},S=(_0x4beca8,_0xa14f3e)=>(_0x4c86cf,_0x4a8957)=>_0xa14f3e(_0x4c86cf,_0x4a8957,_0x4beca8);exports[_0x4fae1d(0x198)]=class extends o[_0x4fae1d(0x1dc)]{constructor(_0x229998,_0x13f9cb,_0x5c72bd){const _0x389580=_0x4fae1d;super(),_(this,_0x389580(0x19f),new Map()),(this['_univerInstanceService']=_0x229998,this[_0x389580(0x1fc)]=_0x13f9cb,this[_0x389580(0x194)]=_0x5c72bd,this[_0x389580(0x1d0)]());}async['getLiveShareCoordinator'](_0x5068fc){const _0x15dd6f=_0x4fae1d;return this['_entities']['has'](_0x5068fc)||await this[_0x15dd6f(0x1cc)](_0x5068fc),this['_entities']['get'](_0x5068fc);}['getLiveShareCoordinatorSync'](_0x340dc6){const _0x546df9=_0x4fae1d;var _0x129767;return(_0x129767=this['_entities'][_0x546df9(0x18c)](_0x340dc6))!=null?_0x129767:null;}[_0x4fae1d(0x1d0)](){const _0x56330b=_0x4fae1d;this[_0x56330b(0x207)][_0x56330b(0x1a3)](o[_0x56330b(0x1a8)][_0x56330b(0x210)])['pipe'](I[_0x56330b(0x1bb)](this[_0x56330b(0x225)]))[_0x56330b(0x16b)](async _0x3e6e26=>{const _0x242a7e=_0x56330b,_0x2e65df=_0x3e6e26[_0x242a7e(0x1be)]();this[_0x242a7e(0x19f)]['has'](_0x2e65df)||this['_startLiveShareCoordinator'](_0x2e65df);}),this[_0x56330b(0x207)][_0x56330b(0x1af)](o[_0x56330b(0x1a8)][_0x56330b(0x210)])[_0x56330b(0x200)](I[_0x56330b(0x1bb)](this['dispose$']))[_0x56330b(0x16b)](_0xfe7609=>{const _0x2a0add=_0x56330b,_0x1a239c=_0xfe7609[_0x2a0add(0x1be)](),_0x13e516=this[_0x2a0add(0x19f)][_0x2a0add(0x18c)](_0x1a239c);_0x13e516==null||_0x13e516[_0x2a0add(0x213)]();});}async[_0x4fae1d(0x1cc)](_0x3c74dd){const _0x4f465f=_0x4fae1d,_0x44e744=await this[_0x4f465f(0x194)][_0x4f465f(0x204)](_0x3c74dd),_0x2c23e0=this['_injector'][_0x4f465f(0x221)](exports['LiveShareCoordinator'],_0x3c74dd,_0x44e744);return _0x2c23e0[_0x4f465f(0x1b0)](),this[_0x4f465f(0x19f)][_0x4f465f(0x20e)](_0x3c74dd,_0x2c23e0),_0x2c23e0;}},exports['LiveShareController']=P([S(0x0,o[_0x4fae1d(0x1bd)]),S(0x1,o[_0x4fae1d(0x18a)](o[_0x4fae1d(0x1c2)])),S(0x2,o[_0x4fae1d(0x18a)](b[_0x4fae1d(0x1df)]))],exports['LiveShareController']);var u=(_0xff8237=>(_0xff8237[_0x4fae1d(0x167)]='offline',_0xff8237[_0x4fae1d(0x179)]=_0x4fae1d(0x1ed),_0xff8237['FOLLOWING']=_0x4fae1d(0x16a),_0xff8237[_0x4fae1d(0x212)]='not-following',_0xff8237[_0x4fae1d(0x22f)]=_0x4fae1d(0x16c),_0xff8237))(u||{});const k=_0x4fae1d(0x22c),q=0xc8;exports[_0x4fae1d(0x230)]=class extends o['RxDisposable']{constructor(_0x2701e3,_0xdc2bcb,_0x5d02c7,_0x2c17d2,_0x243a09){const _0x1a25ee=_0x4fae1d;super(),_(this,_0x1a25ee(0x1a5),new O[(_0x1a25ee(0x1b4))]('idle')),_(this,_0x1a25ee(0x188),this['_status$'][_0x1a25ee(0x187)]()),_(this,_0x1a25ee(0x1d0),!0x1),_(this,_0x1a25ee(0x181),null),_(this,_0x1a25ee(0x1ec),null),(this[_0x1a25ee(0x190)]=_0x2701e3,this['_collabSession']=_0xdc2bcb,this['_configService']=_0x5d02c7,this[_0x1a25ee(0x1f7)]=_0x2c17d2,this[_0x1a25ee(0x1e0)]=_0x243a09);}get['_status'](){const _0x22eaf8=_0x4fae1d;return this[_0x22eaf8(0x1a5)][_0x22eaf8(0x1b5)]();}['dispose'](){const _0x294058=_0x4fae1d;var _0x56ba7c;(_0x56ba7c=this[_0x294058(0x181)])==null||_0x56ba7c[_0x294058(0x213)](),this[_0x294058(0x1a5)][_0x294058(0x1e5)](_0x294058(0x1ed)),this[_0x294058(0x1a5)][_0x294058(0x1e3)]();}[_0x4fae1d(0x1a4)](){return this['_status'];}[_0x4fae1d(0x1b0)](){const _0x581f0b=_0x4fae1d;this[_0x581f0b(0x1d0)]||(this[_0x581f0b(0x1d0)]=!0x0,this[_0x581f0b(0x1f5)]['sessionStatus$']['pipe'](I['takeUntil'](this[_0x581f0b(0x225)]))[_0x581f0b(0x16b)](_0x1d4ee3=>{const _0x1f28bc=_0x581f0b;switch(_0x1d4ee3){case b[_0x1f28bc(0x1ff)][_0x1f28bc(0x167)]:this[_0x1f28bc(0x1e8)]();break;case b[_0x1f28bc(0x1ff)]['ONLINE']:this[_0x1f28bc(0x18e)]();break;}}),this[_0x581f0b(0x1f5)]['event$'][_0x581f0b(0x200)](I[_0x581f0b(0x1bb)](this['dispose$']))[_0x581f0b(0x16b)](_0x36ecb3=>{const _0x40474a=_0x581f0b,{eventID:_0x367ab2}=_0x36ecb3;switch(_0x367ab2){case d[_0x40474a(0x1fb)][_0x40474a(0x22d)]:this[_0x40474a(0x1a2)](_0x36ecb3);break;case d[_0x40474a(0x1fb)][_0x40474a(0x19a)]:this[_0x40474a(0x183)](_0x36ecb3);break;case d[_0x40474a(0x1fb)][_0x40474a(0x1a9)]:this[_0x40474a(0x1d3)]();break;case d[_0x40474a(0x1fb)][_0x40474a(0x19b)]:this['_handleNewChangeSets'](_0x36ecb3);break;}}));}[_0x4fae1d(0x229)](){const _0x1a0473=_0x4fae1d;this[_0x1a0473(0x1f5)]['send']({'eventID':d[_0x1a0473(0x1fb)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1a0473(0x190)],'userID':this[_0x1a0473(0x1f5)]['getMemberID']()}},this[_0x1a0473(0x190)]);}[_0x4fae1d(0x1ad)](){const _0x3e247b=_0x4fae1d;this[_0x3e247b(0x18d)]===_0x3e247b(0x16c)&&(this[_0x3e247b(0x1a5)][_0x3e247b(0x1e5)](_0x3e247b(0x1ed)),this['_collabSession']['send']({'eventID':d['CollaborationEvent'][_0x3e247b(0x1a9)],'data':{'unitID':this[_0x3e247b(0x190)]}},this[_0x3e247b(0x190)]));}['startFollowing'](){const _0x162792=_0x4fae1d;this[_0x162792(0x18d)]==='not-following'&&(this[_0x162792(0x1a5)][_0x162792(0x1e5)](_0x162792(0x16a)),this['_startFollowing']());}[_0x4fae1d(0x1a1)](){const _0x5da19a=_0x4fae1d;this['_status']===_0x5da19a(0x16a)&&this[_0x5da19a(0x1ae)]();}[_0x4fae1d(0x1a2)](_0x26b276){const _0x1931d8=_0x4fae1d,{presenter:_0x4b445b}=_0x26b276[_0x1931d8(0x180)],_0x4e061d=this['_collabSession'][_0x1931d8(0x1d1)]();this['_presenter']=_0x4b445b,_0x4b445b===_0x4e061d?(this['_stopFollowing'](),this[_0x1931d8(0x1fe)]()):this[_0x1931d8(0x18d)]!==_0x1931d8(0x1d8)&&(this[_0x1931d8(0x182)](),this['_startFollowing']());}[_0x4fae1d(0x1d9)](){const _0x429a07=_0x4fae1d,_0x563369={'eventID':d[_0x429a07(0x1fb)][_0x429a07(0x217)]};this['_collabSession'][_0x429a07(0x1b8)](_0x563369,this['_unitID']);}['_handleTerminate'](){const _0x45889f=_0x4fae1d;this[_0x45889f(0x1ec)]=null,this[_0x45889f(0x18d)]!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x5bc2cd){const _0x38529d=_0x4fae1d;if(this['_status']===_0x38529d(0x16a)&&this[_0x38529d(0x1ec)]===_0x5bc2cd[_0x38529d(0x180)][_0x38529d(0x17c)]){const _0x3b92ca=d[_0x38529d(0x223)](_0x5bc2cd['data'])[_0x38529d(0x20c)]['reverse']()[_0x38529d(0x1b2)](_0x21d9e6=>_0x21d9e6['id']===C['InsertSheetMutation']['id']);if(_0x3b92ca){const _0x22b2b4=_0x3b92ca[_0x38529d(0x1f2)]['unitId'],_0x1bd6a5=_0x3b92ca['params'][_0x38529d(0x1c3)]['id'];setTimeout(()=>{const _0x3963a5=_0x38529d;this['_commandService'][_0x3963a5(0x224)](C[_0x3963a5(0x177)]['id'],{'unitId':_0x22b2b4,'subUnitId':_0x1bd6a5},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x23a088=_0x4fae1d;this[_0x23a088(0x1a5)]['next'](_0x23a088(0x16c));const _0x21f212=new Map(),_0x2f230c=this['_commandDisposable']=new o['DisposableCollection']();_0x2f230c['add'](o['toDisposable'](()=>{const _0x45a915=_0x23a088;_0x21f212[_0x45a915(0x189)](_0x188b2c=>_0x188b2c[_0x45a915(0x1e3)]()),_0x21f212[_0x45a915(0x193)]();})),_0x2f230c[_0x23a088(0x174)](this[_0x23a088(0x1e0)]['onCommandExecuted'](_0x52c572=>{const _0x1e9543=_0x23a088;var _0x350abf;if(_0x52c572[_0x1e9543(0x1f1)]!==o[_0x1e9543(0x21a)][_0x1e9543(0x226)]||!this[_0x1e9543(0x1f7)][_0x1e9543(0x1e7)](_0x52c572['id']))return;const {id:_0x9fe8d9}=_0x52c572;let _0x200d48;_0x21f212['has'](_0x9fe8d9)?_0x200d48=_0x21f212['get'](_0x9fe8d9):(_0x200d48=new O['Subject'](),_0x21f212['set'](_0x9fe8d9,_0x200d48),_0x200d48[_0x1e9543(0x200)](I[_0x1e9543(0x1ba)]((_0x350abf=this[_0x1e9543(0x17f)][_0x1e9543(0x1eb)](k))!=null?_0x350abf:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x16fbeb=>{const _0x3d6a55=_0x1e9543;this[_0x3d6a55(0x1f5)][_0x3d6a55(0x1b8)]({'eventID':d[_0x3d6a55(0x1fb)][_0x3d6a55(0x19a)],'data':{'unitID':this['_unitID'],'operations':{[_0x16fbeb['id']]:{'id':_0x16fbeb['id'],'params':JSON['stringify'](_0x16fbeb[_0x3d6a55(0x1f2)])}}}},this['_unitID']);})),_0x200d48[_0x1e9543(0x1e5)](_0x52c572);})),this[_0x23a088(0x1f7)]['getInitialStates'](this[_0x23a088(0x190)])[_0x23a088(0x189)](_0x14f675=>this[_0x23a088(0x1f5)][_0x23a088(0x1b8)]({'eventID':d[_0x23a088(0x1fb)][_0x23a088(0x19a)],'data':{'unitID':this[_0x23a088(0x190)],'operations':{[_0x14f675['id']]:{'id':_0x14f675['id'],'params':JSON[_0x23a088(0x178)](_0x14f675['params'])}}}},this['_unitID']));}[_0x4fae1d(0x182)](){const _0x3ef5a4=_0x4fae1d;var _0x2032ad;this['_status$']['next']('idle'),(_0x2032ad=this[_0x3ef5a4(0x181)])==null||_0x2032ad['dispose'](),this['_commandDisposable']=null;}[_0x4fae1d(0x184)](){const _0xd84e31=_0x4fae1d;var _0x48b29a;(_0x48b29a=this[_0xd84e31(0x181)])==null||_0x48b29a[_0xd84e31(0x213)](),this[_0xd84e31(0x1a5)][_0xd84e31(0x1e5)]('following');}[_0x4fae1d(0x1a0)](){const _0x19bebc=_0x4fae1d;var _0xbb8325;this[_0x19bebc(0x1a5)][_0x19bebc(0x1e5)](_0x19bebc(0x1ed)),(_0xbb8325=this['_commandDisposable'])==null||_0xbb8325[_0x19bebc(0x213)](),this[_0x19bebc(0x181)]=null;}[_0x4fae1d(0x1ae)](){const _0x3f68fd=_0x4fae1d;var _0x3e7869;this['_status$']['next'](_0x3f68fd(0x1d8)),(_0x3e7869=this[_0x3f68fd(0x181)])==null||_0x3e7869[_0x3f68fd(0x213)]();}[_0x4fae1d(0x183)](_0x253bbb){const _0x847be1=_0x4fae1d;if([_0x847be1(0x16c),_0x847be1(0x1d8),_0x847be1(0x18b)][_0x847be1(0x171)](this[_0x847be1(0x18d)])||!_0x253bbb[_0x847be1(0x180)][_0x847be1(0x1d6)]||_0x253bbb[_0x847be1(0x180)][_0x847be1(0x1d6)]===this[_0x847be1(0x1f5)][_0x847be1(0x1d1)]())return;this[_0x847be1(0x18d)]==='idle'&&this[_0x847be1(0x184)]();const _0x5036a1=_0x253bbb['data'][_0x847be1(0x1f6)];Object[_0x847be1(0x16e)](_0x5036a1)[_0x847be1(0x189)](_0x14a066=>{const _0x2420a3=_0x847be1;this['_commandService'][_0x2420a3(0x224)](_0x14a066['id'],_0x14a066[_0x2420a3(0x1f2)]?JSON[_0x2420a3(0x232)](_0x14a066['params']):null,{'fromCollab':!0x0});});}[_0x4fae1d(0x1e8)](){const _0xf780be=_0x4fae1d;var _0x2a90ae;this[_0xf780be(0x1a5)]['next'](_0xf780be(0x18b)),(_0x2a90ae=this['_commandDisposable'])==null||_0x2a90ae[_0xf780be(0x213)]();}[_0x4fae1d(0x18e)](){const _0x2c818c=_0x4fae1d;this['_status$'][_0x2c818c(0x1e5)](_0x2c818c(0x1ed)),this[_0x2c818c(0x1d9)]();}},exports[_0x4fae1d(0x230)]=P([S(0x2,o['IConfigService']),S(0x3,o['Inject'](E)),S(0x4,o[_0x4fae1d(0x1ce)])],exports['LiveShareCoordinator']);function $(){const _0x2772e4=_0x4fae1d,_0x3a4beb=p[_0x2772e4(0x1f3)](exports[_0x2772e4(0x198)]),_0x11c810=p[_0x2772e4(0x1f3)](o[_0x2772e4(0x1bd)]),_0x3ad5f5=p[_0x2772e4(0x231)](()=>_0x11c810[_0x2772e4(0x1d4)](o[_0x2772e4(0x1a8)][_0x2772e4(0x210)]),void 0x0,!0x1,[]),[_0x4e0de0,_0x17f10f]=v[_0x2772e4(0x1d5)](null),[_0x1913a8,_0x2efdfd]=v[_0x2772e4(0x1d5)](u['IDLE']),_0x4c4f7e=v[_0x2772e4(0x176)](null);return v['useEffect'](()=>(_0x3ad5f5&&_0x3a4beb['getLiveShareCoordinator'](_0x3ad5f5[_0x2772e4(0x1be)]())[_0x2772e4(0x1e2)](_0x1ae26d=>{const _0x2dcea5=_0x2772e4;_0x17f10f(_0x1ae26d),_0x4c4f7e[_0x2dcea5(0x1e1)]=_0x1ae26d[_0x2dcea5(0x188)][_0x2dcea5(0x16b)](_0x21159b=>{_0x2efdfd(_0x21159b);});}),()=>{const _0x18d96b=_0x2772e4;var _0x14b5f4;(_0x14b5f4=_0x4c4f7e[_0x18d96b(0x1e1)])==null||_0x14b5f4[_0x18d96b(0x1e9)](),_0x4c4f7e['current']=null;}),[_0x3ad5f5,_0x3a4beb]),_0x4e0de0?l['jsx'](f[_0x2772e4(0x1b7)],{'align':'end','disabled':_0x1913a8===u[_0x2772e4(0x167)],'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['jsx'](W,{'status':_0x1913a8,'coordinator':_0x4e0de0}),'children':l['jsx']('button',{'className':f[_0x2772e4(0x1e4)](_0x2772e4(0x1ea),{'univer-cursor-not-allowed':_0x1913a8===u[_0x2772e4(0x167)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1913a8!==u[_0x2772e4(0x167)]}),'type':_0x2772e4(0x1c4),'children':l['jsx'](R,{'className':_0x2772e4(0x1c6)})})}):null;}function W(_0x1ac431){const _0x2af6b5=_0x4fae1d,{status:_0x44520d,coordinator:_0x3ebdb2}=_0x1ac431;switch(_0x44520d){case u[_0x2af6b5(0x179)]:return l[_0x2af6b5(0x214)](G,{'coordinator':_0x3ebdb2});case u[_0x2af6b5(0x1f8)]:return l['jsx'](B,{'coordinator':_0x3ebdb2});case u[_0x2af6b5(0x212)]:return l[_0x2af6b5(0x214)](Y,{'coordinator':_0x3ebdb2});case u['OFFLINE']:return l[_0x2af6b5(0x214)](J,{});case u[_0x2af6b5(0x22f)]:return l[_0x2af6b5(0x214)](Z,{'coordinator':_0x3ebdb2});default:return null;}}function G(_0x1f7c23){const _0x48231f=_0x4fae1d,{coordinator:_0x3cbdf2}=_0x1f7c23;return l['jsxs'](l[_0x48231f(0x1ac)],{'children':[l[_0x48231f(0x214)](_0x48231f(0x203),{'className':_0x48231f(0x205),'children':'Present\x20this\x20document'}),l['jsx'](f['Button'],{'onClick':()=>_0x3cbdf2[_0x48231f(0x229)](),'children':_0x48231f(0x22e)})]});}function B(_0xff3470){const _0x577c00=_0x4fae1d,{coordinator:_0x5002a7}=_0xff3470;return l[_0x577c00(0x19d)](l[_0x577c00(0x1ac)],{'children':[l[_0x577c00(0x214)]('div',{'className':_0x577c00(0x205),'children':_0x577c00(0x1bf)}),l['jsx'](f[_0x577c00(0x1c9)],{'onClick':()=>_0x5002a7['stopFollowing'](),'children':_0x577c00(0x1d2)})]});}function _0x439a(_0x7ccb5a,_0x540a4d){const _0x2244f1=_0x2244();return _0x439a=function(_0x439adc,_0x448d24){_0x439adc=_0x439adc-0x165;let _0x20efd9=_0x2244f1[_0x439adc];return _0x20efd9;},_0x439a(_0x7ccb5a,_0x540a4d);}function Y(_0x229333){const _0x32aee2=_0x4fae1d,{coordinator:_0xafde83}=_0x229333;return l[_0x32aee2(0x19d)](l[_0x32aee2(0x1ac)],{'children':[l[_0x32aee2(0x214)]('div',{'className':_0x32aee2(0x205),'children':_0x32aee2(0x1f9)}),l[_0x32aee2(0x214)](f[_0x32aee2(0x1c9)],{'variant':_0x32aee2(0x211),'onClick':()=>_0xafde83['startFollowing'](),'children':'Start\x20following'})]});}function Z(_0x432c8b){const _0x129330=_0x4fae1d,{coordinator:_0x2ad783}=_0x432c8b;return l[_0x129330(0x19d)](l[_0x129330(0x1ac)],{'children':[l['jsx'](_0x129330(0x203),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x129330(0x214)](f['Button'],{'variant':'default','onClick':()=>_0x2ad783[_0x129330(0x1ad)](),'children':'Stop\x20presenting'})]});}function J(){const _0x4b45e2=_0x4fae1d;return l[_0x4b45e2(0x214)](l[_0x4b45e2(0x1ac)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x4fae1d(0x17b)],z=(_0x2fa8ad,_0x263625,_0x521416,_0x37310c)=>{const _0x45b866=_0x4fae1d;for(var _0x22f7bc=_0x37310c>0x1?void 0x0:_0x37310c?K(_0x263625,_0x521416):_0x263625,_0x2ddbac=_0x2fa8ad[_0x45b866(0x170)]-0x1,_0x4b2cb5;_0x2ddbac>=0x0;_0x2ddbac--)(_0x4b2cb5=_0x2fa8ad[_0x2ddbac])&&(_0x22f7bc=_0x4b2cb5(_0x22f7bc)||_0x22f7bc);return _0x22f7bc;},L=(_0x25764e,_0x4f8e37)=>(_0x5bdeaf,_0x5221f4)=>_0x4f8e37(_0x5bdeaf,_0x5221f4,_0x25764e);exports[_0x4fae1d(0x1fd)]=class extends o[_0x4fae1d(0x202)]{constructor(_0x35ddb1,_0x4e1096){const _0x3d0ea3=_0x4fae1d;super(),this[_0x3d0ea3(0x1fc)]=_0x35ddb1,this[_0x3d0ea3(0x1de)]=_0x4e1096,this['_mountLiveShare']();}[_0x4fae1d(0x21d)](){const _0x28f761=_0x4fae1d;this[_0x28f761(0x1c7)](this[_0x28f761(0x1de)]['registerComponent'](p['BuiltInUIPart'][_0x28f761(0x209)],()=>p[_0x28f761(0x186)]($,this['_injector'])));}},exports['DesktopLiveShareController']=z([L(0x0,o['Inject'](o[_0x4fae1d(0x1c2)])),L(0x1,p[_0x4fae1d(0x196)])],exports[_0x4fae1d(0x1fd)]);const Q=_0x4fae1d(0x20f),w={};var X=Object[_0x4fae1d(0x17b)],ee=(_0x393d76,_0x1f90f2,_0x5de8f9,_0x2b6d22)=>{const _0x3a558d=_0x4fae1d;for(var _0x53825d=_0x2b6d22>0x1?void 0x0:_0x2b6d22?X(_0x1f90f2,_0x5de8f9):_0x1f90f2,_0x6a8a7d=_0x393d76[_0x3a558d(0x170)]-0x1,_0x423b0d;_0x6a8a7d>=0x0;_0x6a8a7d--)(_0x423b0d=_0x393d76[_0x6a8a7d])&&(_0x53825d=_0x423b0d(_0x53825d)||_0x53825d);return _0x53825d;},te=(_0x1a7c35,_0x1139e0)=>(_0x12839e,_0x2bbae2)=>_0x1139e0(_0x12839e,_0x2bbae2,_0x1a7c35);let m=class extends o['Disposable']{constructor(_0xae82f1){const _0x447c83=_0x4fae1d;super(),this['_liveShareService']=_0xae82f1,this[_0x447c83(0x1d0)]();}[_0x4fae1d(0x1d0)](){const _0x24a653=_0x4fae1d;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x24a653(0x177)]['id']]['forEach'](_0x58ef78=>{const _0x3685d7=_0x24a653;this[_0x3685d7(0x1c7)](this[_0x3685d7(0x1f7)][_0x3685d7(0x17e)](_0x58ef78));});}};m=ee([te(0x0,o[_0x4fae1d(0x18a)](E))],m);var ie=Object[_0x4fae1d(0x16f)],se=Object[_0x4fae1d(0x17b)],ne=(_0x1572a7,_0x1c6f69,_0x48cffc)=>_0x1c6f69 in _0x1572a7?ie(_0x1572a7,_0x1c6f69,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48cffc}):_0x1572a7[_0x1c6f69]=_0x48cffc,re=(_0x308dbc,_0x2e092f,_0x1cc72c,_0x15b725)=>{const _0x21b1a3=_0x4fae1d;for(var _0x29e0bb=_0x15b725>0x1?void 0x0:_0x15b725?se(_0x2e092f,_0x1cc72c):_0x2e092f,_0xbb9f10=_0x308dbc[_0x21b1a3(0x170)]-0x1,_0x1837fa;_0xbb9f10>=0x0;_0xbb9f10--)(_0x1837fa=_0x308dbc[_0xbb9f10])&&(_0x29e0bb=_0x1837fa(_0x29e0bb)||_0x29e0bb);return _0x29e0bb;},N=(_0x447597,_0x19827b)=>(_0x57233e,_0x31a157)=>_0x19827b(_0x57233e,_0x31a157,_0x447597),A=(_0x286c82,_0x1eeca2,_0x37ad67)=>ne(_0x286c82,typeof _0x1eeca2!=_0x4fae1d(0x1c1)?_0x1eeca2+'':_0x1eeca2,_0x37ad67);const oe=_0x4fae1d(0x1ee);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0xb9e9f8=w,_0x4f111b,_0x3ae5f2){const _0x40276d=_0x4fae1d;super(),this[_0x40276d(0x218)]=_0xb9e9f8,this[_0x40276d(0x1fc)]=_0x4f111b,this[_0x40276d(0x17f)]=_0x3ae5f2;const {..._0x455b11}=o[_0x40276d(0x1cb)]({},w,this[_0x40276d(0x218)]);this[_0x40276d(0x17f)]['setConfig'](Q,_0x455b11);}['onStarting'](){const _0x448e9a=_0x4fae1d;o[_0x448e9a(0x21e)](this['_injector'],o[_0x448e9a(0x191)]([[E],[exports['LiveShareController']],[m],[exports[_0x448e9a(0x1fd)]]],this[_0x448e9a(0x218)][_0x448e9a(0x21c)])),o[_0x448e9a(0x222)](this[_0x448e9a(0x1fc)],[[m]]);}[_0x4fae1d(0x1a6)](){const _0x22cb50=_0x4fae1d;o[_0x22cb50(0x222)](this[_0x22cb50(0x1fc)],[[exports[_0x22cb50(0x1fd)]]]);}},A(exports['UniverLiveSharePlugin'],_0x4fae1d(0x1f1),o['UniverInstanceType']['UNIVER_UNKNOWN']),A(exports[_0x4fae1d(0x20d)],_0x4fae1d(0x1b9),oe),exports['UniverLiveSharePlugin']=re([o['DependentOn'](b[_0x4fae1d(0x220)]),N(0x1,o['Inject'](o[_0x4fae1d(0x1c2)])),N(0x2,o[_0x4fae1d(0x1aa)])],exports[_0x4fae1d(0x20d)]),exports[_0x4fae1d(0x1cd)]=$,exports[_0x4fae1d(0x215)]=E,exports[_0x4fae1d(0x1e6)]=u;function _0x2244(){const _0x3aaee4=['_fetchOperations','getInitialStates','delete','RxDisposable','live-share-icon','_uiPartsService','CollaborationSessionService','_commandService','current','then','complete','clsx','next','LiveShareStatus','shouldShareOperation','_handleOffline','unsubscribe','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getConfig','_presenter','idle','UNIVER_LIVE_SHARE_PLUGIN','10226517QPQiov','displayName','type','params','useDependency','5415822xzFXuc','_collabSession','operations','_liveShareService','FOLLOWING','You\x27re\x20not\x20following\x20the\x20presenter','0\x200\x2017\x2017','CollaborationEvent','_injector','DesktopLiveShareController','_startPresenting','SessionStatus','pipe','mask','Disposable','div','requireSession','univer-mb-3\x20univer-w-full\x20univer-text-sm','396692zOiHYR','_univerInstanceService','replace','HEADER_MENU','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','fill','mutations','UniverLiveSharePlugin','set','live-share.config','UNIVER_SHEET','text','NOT_FOLLOWING','dispose','jsx','LiveShareService','string','LIVESHARE_FETCH_OPERATIONS','_config','trim','CommandType','LiveShareIcon','override','_mountLiveShare','registerDependencies','forwardRef','UniverCollaborationClientPlugin','createInstance','touchDependencies','parseProtocolChangeset','executeCommand','dispose$','OPERATION','idSuffix','1em','tryStartPresenting','_reporters','34745zKwSdL','SAME_OPERATION_SHARE_INTERVAL','LIVESHARE_NEW_HOST','Start','PRESENTING','LiveShareCoordinator','useObservable','parse','children','996bMZtlD','OFFLINE','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','substring','following','subscribe','presenting','xlink:href','values','defineProperty','length','includes','attrs','from','add','evenodd','useRef','SetWorksheetActiveOperation','stringify','IDLE','9289656echoaw','getOwnPropertyDescriptor','memberID','toString','registerSharedOperation','_configService','data','_commandDisposable','_stopPresenting','_handleOperation','_startFollowing','svg','connectInjector','asObservable','status$','forEach','Inject','offline','get','_status','_handleOnline','createElement','_unitID','mergeOverrideWithDependencies','defIds','clear','_collabSessionService','http://www.w3.org/2000/svg','IUIPartsService','360015pUqlRw','LiveShareController','entries','LIVESHARE_OPERATION','NEW_CHANGESETS','8tKhLwg','jsxs','random','_entities','_beIdle','stopFollowing','_handleNewHost','getTypeOfUnitAdded$','getStatus','_status$','onRendered','path','UniverInstanceType','LIVESHARE_TERMINATE','IConfigService','toDisposable','Fragment','stopPresenting','_stopFollowing','getTypeOfUnitDisposed$','init','url(#$1','find','tag','BehaviorSubject','getValue','assign','Dropdown','send','pluginName','throttleTime','takeUntil','univerjs-icon\x20univerjs-icon-','IUniverInstanceService','getUnitId','You\x27re\x20following\x20the\x20presenter','_sharedOperations','symbol','Injector','sheet','button','5791212Qwsvti','univer-size-4','disposeWithMe','toStringTag','Button','map','merge','_startLiveShareCoordinator','LiveShare','ICommandService','registerInitialStateReporter','_init','getMemberID','Stop\x20following','_handleTerminate','getCurrentTypeOfUnit$','useState','presenter','colorChannel1','not-following'];_0x2244=function(){return _0x3aaee4;};return _0x2244();}
1
+ 'use strict';const _0x286937=_0x4e45;(function(_0x32649d,_0x5a4d66){const _0x7e6b8a=_0x4e45,_0xb56f85=_0x32649d();while(!![]){try{const _0x4300c3=-parseInt(_0x7e6b8a(0x11b))/0x1+-parseInt(_0x7e6b8a(0x139))/0x2+-parseInt(_0x7e6b8a(0x15a))/0x3*(-parseInt(_0x7e6b8a(0x17d))/0x4)+parseInt(_0x7e6b8a(0xc0))/0x5*(parseInt(_0x7e6b8a(0x16c))/0x6)+-parseInt(_0x7e6b8a(0x180))/0x7+parseInt(_0x7e6b8a(0xc8))/0x8*(-parseInt(_0x7e6b8a(0x15d))/0x9)+parseInt(_0x7e6b8a(0xe2))/0xa;if(_0x4300c3===_0x5a4d66)break;else _0xb56f85['push'](_0xb56f85['shift']());}catch(_0x179627){_0xb56f85['push'](_0xb56f85['shift']());}}}(_0x158b,0x2881a));var T=Object['defineProperty'],U=(_0x4a7c4b,_0x2a89ea,_0x2b3728)=>_0x2a89ea in _0x4a7c4b?T(_0x4a7c4b,_0x2a89ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b3728}):_0x4a7c4b[_0x2a89ea]=_0x2b3728,_=(_0x5b9624,_0x440621,_0x28408e)=>U(_0x5b9624,typeof _0x440621!=_0x286937(0x184)?_0x440621+'':_0x440621,_0x28408e);Object['defineProperty'](exports,Symbol[_0x286937(0x104)],{'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:_0x2ab3e5,..._0x2f80e5}){const _0x590750=_0x286937,{icon:_0x142449,id:_0x281639,className:_0xd55491,extend:_0x5e3240,..._0x5baf8f}=_0x2f80e5,_0x255a46=(_0x590750(0xf7)+_0x281639+'\x20'+(_0xd55491||''))[_0x590750(0x117)](),_0x4668f0=v['useRef']('_'+H());return j(_0x142449,''+_0x281639,{'defIds':_0x142449[_0x590750(0x110)],'idSuffix':_0x4668f0[_0x590750(0xc7)]},{'ref':_0x2ab3e5,'className':_0x255a46,..._0x5baf8f},_0x5e3240);}function j(_0x22c48b,_0x1c5d34,_0x25de3f,_0x2b1233,_0xf4e1d7){const _0x3332b5=_0x286937;return v[_0x3332b5(0x171)](_0x22c48b[_0x3332b5(0x10f)],{'key':_0x1c5d34,...y(_0x22c48b,_0x25de3f,_0xf4e1d7),..._0x2b1233},(F(_0x22c48b,_0x25de3f)[_0x3332b5(0x12d)]||[])[_0x3332b5(0x122)]((_0x5098ee,_0x1873bc)=>j(_0x5098ee,_0x1c5d34+'-'+_0x22c48b[_0x3332b5(0x10f)]+'-'+_0x1873bc,_0x25de3f,void 0x0,_0xf4e1d7)));}function y(_0xcdc85e,_0x492b50,_0x477643){const _0x528310=_0x286937,_0x510869={..._0xcdc85e[_0x528310(0x128)]};_0x477643!=null&&_0x477643[_0x528310(0x129)]&&_0x510869[_0x528310(0xb7)]===_0x528310(0x129)&&(_0x510869['fill']=_0x477643[_0x528310(0x129)]),_0xcdc85e['tag']===_0x528310(0xf3)&&_0x510869['id']&&(_0x510869['id']=_0x510869['id']+_0x492b50[_0x528310(0x185)]),Object[_0x528310(0x160)](_0x510869)[_0x528310(0x183)](([_0x51fd53,_0x23d1f2])=>{const _0x2edd53=_0x528310;_0x51fd53==='mask'&&typeof _0x23d1f2==_0x2edd53(0xfa)&&(_0x510869[_0x51fd53]=_0x23d1f2[_0x2edd53(0x178)](/url\(#(.*)\)/,_0x2edd53(0x11f)+_0x492b50[_0x2edd53(0x185)]+')'));});const {defIds:_0x37ad2c}=_0x492b50;return!_0x37ad2c||_0x37ad2c[_0x528310(0x10e)]===0x0||(_0xcdc85e['tag']===_0x528310(0xd1)&&_0x510869[_0x528310(0xc3)]&&(_0x510869[_0x528310(0xc3)]=_0x510869[_0x528310(0xc3)]+_0x492b50[_0x528310(0x185)]),Object[_0x528310(0x160)](_0x510869)[_0x528310(0x183)](([_0xc90a82,_0x3c3d35])=>{const _0x535ceb=_0x528310;typeof _0x3c3d35==_0x535ceb(0xfa)&&(_0x510869[_0xc90a82]=_0x3c3d35[_0x535ceb(0x178)](/url\(#(.*)\)/,_0x535ceb(0x11f)+_0x492b50[_0x535ceb(0x185)]+')'));})),_0x510869;}function F(_0x2fc76a,_0x4468f0){const _0xfc7bb8=_0x286937;var _0x2acc82;const {defIds:_0x2b1126}=_0x4468f0;return!_0x2b1126||_0x2b1126['length']===0x0?_0x2fc76a:_0x2fc76a[_0xfc7bb8(0x10f)]===_0xfc7bb8(0x150)&&((_0x2acc82=_0x2fc76a['children'])!=null&&_0x2acc82[_0xfc7bb8(0x10e)])?{..._0x2fc76a,'children':_0x2fc76a[_0xfc7bb8(0x12d)]['map'](_0x4e461c=>typeof _0x4e461c[_0xfc7bb8(0x128)]['id']==_0xfc7bb8(0xfa)&&_0x2b1126&&_0x2b1126[_0xfc7bb8(0x162)](_0x4e461c[_0xfc7bb8(0x128)]['id'])?{..._0x4e461c,'attrs':{..._0x4e461c[_0xfc7bb8(0x128)],'id':_0x4e461c['attrs']['id']+_0x4468f0[_0xfc7bb8(0x185)]}}:_0x4e461c)}:_0x2fc76a;}function H(){const _0x31870e=_0x286937;return Math[_0x31870e(0x126)]()[_0x31870e(0x105)](0x24)[_0x31870e(0x14b)](0x2,0x8);}x[_0x286937(0xe8)]=_0x286937(0x127);const V={'tag':_0x286937(0x136),'attrs':{'xmlns':_0x286937(0x16f),'fill':_0x286937(0x17a),'viewBox':'0\x200\x2017\x2017','width':_0x286937(0x16a),'height':_0x286937(0x16a)},'children':[{'tag':_0x286937(0xcc),'attrs':{'fill':_0x286937(0x172),'d':_0x286937(0xbe)}},{'tag':_0x286937(0xcc),'attrs':{'fill':_0x286937(0x172),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x286937(0xdb)}}]},R=v[_0x286937(0x114)](function(_0x51e9c2,_0x1e7c7d){const _0x4269ca=_0x286937;return v[_0x4269ca(0x171)](x,Object[_0x4269ca(0x158)]({},_0x51e9c2,{'id':_0x4269ca(0xf5),'ref':_0x1e7c7d,'icon':V}));});R[_0x286937(0xe8)]='LiveShareIcon';class E extends o[_0x286937(0xfb)]{constructor(){const _0x4cd332=_0x286937;super(...arguments),_(this,_0x4cd332(0xdd),new Set()),_(this,'_reporters',new Set());}[_0x286937(0x131)](_0x27d9c0){const _0x5ccfc6=_0x286937;return this[_0x5ccfc6(0xdd)][_0x5ccfc6(0x166)](_0x27d9c0),o[_0x5ccfc6(0x134)](()=>this[_0x5ccfc6(0xdd)][_0x5ccfc6(0x113)](_0x27d9c0));}[_0x286937(0x173)](_0x2c4cc9){const _0x5c2042=_0x286937;return this[_0x5c2042(0x174)][_0x5c2042(0x166)](_0x2c4cc9),o[_0x5c2042(0x134)](()=>this['_reporters']['delete'](_0x2c4cc9));}['shouldShareOperation'](_0x3f01f3){const _0x4ec4d4=_0x286937;return this[_0x4ec4d4(0xdd)]['has'](_0x3f01f3);}[_0x286937(0x119)](_0x2aff00){const _0x27149b=_0x286937;return Array[_0x27149b(0x12b)](this[_0x27149b(0x174)])[_0x27149b(0x122)](_0x5f00b0=>_0x5f00b0(_0x2aff00));}}var M=Object[_0x286937(0x111)],P=(_0x2cf151,_0x1f27fa,_0x57440b,_0x2c0e69)=>{const _0xd3b3ac=_0x286937;for(var _0x4b9148=_0x2c0e69>0x1?void 0x0:_0x2c0e69?M(_0x1f27fa,_0x57440b):_0x1f27fa,_0x57e200=_0x2cf151[_0xd3b3ac(0x10e)]-0x1,_0x457444;_0x57e200>=0x0;_0x57e200--)(_0x457444=_0x2cf151[_0x57e200])&&(_0x4b9148=_0x457444(_0x4b9148)||_0x4b9148);return _0x4b9148;},S=(_0x2e294c,_0x53ea0d)=>(_0x500104,_0x227acd)=>_0x53ea0d(_0x500104,_0x227acd,_0x2e294c);exports['LiveShareController']=class extends o[_0x286937(0xed)]{constructor(_0x4dc28d,_0x211788,_0xac5abb){const _0x4d5c71=_0x286937;super(),_(this,'_entities',new Map()),(this[_0x4d5c71(0x124)]=_0x4dc28d,this[_0x4d5c71(0x18b)]=_0x211788,this[_0x4d5c71(0x157)]=_0xac5abb,this[_0x4d5c71(0x188)]());}async[_0x286937(0xc6)](_0x6a324a){const _0x4abd40=_0x286937;return this['_entities'][_0x4abd40(0xbb)](_0x6a324a)||await this[_0x4abd40(0xeb)](_0x6a324a),this[_0x4abd40(0x186)][_0x4abd40(0x10c)](_0x6a324a);}[_0x286937(0x164)](_0x40c95e){const _0x58e4c2=_0x286937;var _0x5824c4;return(_0x5824c4=this[_0x58e4c2(0x186)][_0x58e4c2(0x10c)](_0x40c95e))!=null?_0x5824c4:null;}[_0x286937(0x188)](){const _0x26bb70=_0x286937;this[_0x26bb70(0x124)]['getTypeOfUnitAdded$'](o[_0x26bb70(0x103)]['UNIVER_SHEET'])[_0x26bb70(0xea)](I['takeUntil'](this['dispose$']))[_0x26bb70(0x138)](async _0x31c67e=>{const _0x4c11da=_0x26bb70,_0x5f127a=_0x31c67e[_0x4c11da(0xcd)]();this[_0x4c11da(0x186)][_0x4c11da(0xbb)](_0x5f127a)||this[_0x4c11da(0xeb)](_0x5f127a);}),this['_univerInstanceService'][_0x26bb70(0x17b)](o[_0x26bb70(0x103)][_0x26bb70(0xc4)])[_0x26bb70(0xea)](I[_0x26bb70(0xc9)](this[_0x26bb70(0xdc)]))[_0x26bb70(0x138)](_0xb9e470=>{const _0x373dea=_0x26bb70,_0x5639ed=_0xb9e470['getUnitId'](),_0x37de13=this['_entities'][_0x373dea(0x10c)](_0x5639ed);_0x37de13==null||_0x37de13[_0x373dea(0xf0)]();});}async['_startLiveShareCoordinator'](_0x74833c){const _0x191cf3=_0x286937,_0x2438a1=await this['_collabSessionService'][_0x191cf3(0xb5)](_0x74833c),_0x227f6e=this[_0x191cf3(0x18b)][_0x191cf3(0xec)](exports[_0x191cf3(0x142)],_0x74833c,_0x2438a1);return _0x227f6e[_0x191cf3(0x18c)](),this[_0x191cf3(0x186)][_0x191cf3(0xd9)](_0x74833c,_0x227f6e),_0x227f6e;}},exports['LiveShareController']=P([S(0x0,o[_0x286937(0xbc)]),S(0x1,o[_0x286937(0xdf)](o[_0x286937(0x14e)])),S(0x2,o[_0x286937(0xdf)](b[_0x286937(0xbd)]))],exports[_0x286937(0x151)]);var u=(_0x44c409=>(_0x44c409[_0x286937(0x102)]=_0x286937(0x17c),_0x44c409['IDLE']=_0x286937(0x154),_0x44c409[_0x286937(0xd6)]='following',_0x44c409[_0x286937(0x16b)]='not-following',_0x44c409[_0x286937(0x11d)]=_0x286937(0x15c),_0x44c409))(u||{});function _0x158b(){const _0x4a15a7=['getMemberID','set','override','evenodd','dispose$','_sharedOperations','ONLINE','Inject','startFollowing','stopPresenting','3109580WDiWyI','IDLE','onCommandExecuted','presenter','_stopFollowing','_beIdle','displayName','UNIVER_UNKNOWN','pipe','_startLiveShareCoordinator','createInstance','RxDisposable','_collabSession','useState','dispose','sessionStatus$','registerDependencies','mask','values','live-share-icon','unsubscribe','univerjs-icon\x20univerjs-icon-','status$','IUIPartsService','string','Disposable','LiveShareService','next','LIVESHARE_NEW_HOST','_handleTerminate','Fragment','div','OFFLINE','UniverInstanceType','toStringTag','toString','_status$','BuiltInUIPart','useDependency','_status','live-share.config','_unitID','get','sheet','length','tag','defIds','getOwnPropertyDescriptor','_commandDisposable','delete','forwardRef','complete','onRendered','trim','LIVESHARE_TERMINATE','getInitialStates','_startFollowing','199827CkoRJd','SetZoomRatioOperation','PRESENTING','_fetchOperations','url(#$1','UniverCollaborationClientPlugin','LIVESHARE_OPERATION','map','find','_univerInstanceService','stopFollowing','random','UniverIcon','attrs','colorChannel1','DesktopLiveShareController','from','data','children','Subject','_configService','SetWorksheetActiveOperation','registerSharedOperation','useObservable','unitId','toDisposable','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','svg','You\x27re\x20presenting\x20the\x20document','subscribe','231924MJPWvy','_handleOperation','SAME_OPERATION_SHARE_INTERVAL','touchDependencies','disposeWithMe','You\x27are\x20offline.','_commandService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','default','LiveShareCoordinator','_startPresenting','mutations','throttleTime','HEADER_MENU','UNIVER_LIVE_SHARE_PLUGIN','Stop\x20following','setConfig','shouldShareOperation','substring','Stop\x20presenting','useEffect','Injector','jsx','defs','LiveShareController','_config','stringify','idle','You\x27re\x20not\x20following\x20the\x20presenter','_presenter','_collabSessionService','assign','DisposableCollection','3Vlhzyk','connectInjector','presenting','18XNjEXc','reverse','send','entries','getStatus','includes','Button','getLiveShareCoordinatorSync','clsx','add','SessionStatus','defineProperty','_stopPresenting','1em','NOT_FOLLOWING','18GcnbNl','You\x27re\x20following\x20the\x20presenter','parseProtocolChangeset','http://www.w3.org/2000/svg','not-following','createElement','currentColor','registerInitialStateReporter','_reporters','following','Present\x20this\x20document','CollaborationEvent','replace','IConfigService','none','getTypeOfUnitDisposed$','offline','813208pkZKpf','_liveShareService','end','57099UFcBSO','InsertSheetMutation','NEW_CHANGESETS','forEach','symbol','idSuffix','_entities','univer-mb-3\x20univer-w-full\x20univer-text-sm','_init','getConfig','memberID','_injector','init','_handleNewChangeSets','requireSession','LiveShare','fill','LIVESHARE_REQUEST_HOST','_uiPartsService','DependentOn','has','IUniverInstanceService','CollaborationSessionService','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','_handleNewHost','464390hJFzir','BehaviorSubject','jsxs','xlink:href','UNIVER_SHEET','button','getLiveShareCoordinator','current','1212136mXPYIr','takeUntil','params','mergeOverrideWithDependencies','path','getUnitId','UniverLiveSharePlugin','type','_handleOffline','use','_mountLiveShare','tryStartPresenting','_handleOnline','clear','FOLLOWING','merge'];_0x158b=function(){return _0x4a15a7;};return _0x158b();}const k=_0x286937(0x13b),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x286937(0xed)]{constructor(_0x338e0d,_0x1f572f,_0x34f303,_0x5ca9db,_0x3399fe){const _0x355593=_0x286937;super(),_(this,_0x355593(0x106),new O[(_0x355593(0xc1))](_0x355593(0x154))),_(this,_0x355593(0xf8),this['_status$']['asObservable']()),_(this,'_init',!0x1),_(this,_0x355593(0x112),null),_(this,_0x355593(0x156),null),(this[_0x355593(0x10b)]=_0x338e0d,this[_0x355593(0xee)]=_0x1f572f,this[_0x355593(0x12f)]=_0x34f303,this[_0x355593(0x17e)]=_0x5ca9db,this['_commandService']=_0x3399fe);}get[_0x286937(0x109)](){const _0xb1c9c6=_0x286937;return this[_0xb1c9c6(0x106)]['getValue']();}['dispose'](){const _0x286148=_0x286937;var _0x2342d7;(_0x2342d7=this[_0x286148(0x112)])==null||_0x2342d7[_0x286148(0xf0)](),this[_0x286148(0x106)]['next']('idle'),this['_status$'][_0x286148(0x115)]();}[_0x286937(0x161)](){const _0x31e17c=_0x286937;return this[_0x31e17c(0x109)];}[_0x286937(0x18c)](){const _0x541040=_0x286937;this[_0x541040(0x188)]||(this['_init']=!0x0,this['_collabSession'][_0x541040(0xf1)][_0x541040(0xea)](I[_0x541040(0xc9)](this[_0x541040(0xdc)]))['subscribe'](_0x4c0c21=>{const _0x26422b=_0x541040;switch(_0x4c0c21){case b[_0x26422b(0x167)]['OFFLINE']:this[_0x26422b(0xd0)]();break;case b[_0x26422b(0x167)][_0x26422b(0xde)]:this[_0x26422b(0xd4)]();break;}}),this['_collabSession']['event$'][_0x541040(0xea)](I[_0x541040(0xc9)](this[_0x541040(0xdc)]))[_0x541040(0x138)](_0xc5c272=>{const _0x59f729=_0x541040,{eventID:_0x4f6739}=_0xc5c272;switch(_0x4f6739){case d[_0x59f729(0x177)][_0x59f729(0xfe)]:this[_0x59f729(0xbf)](_0xc5c272);break;case d[_0x59f729(0x177)][_0x59f729(0x121)]:this[_0x59f729(0x13a)](_0xc5c272);break;case d[_0x59f729(0x177)][_0x59f729(0x118)]:this[_0x59f729(0xff)]();break;case d[_0x59f729(0x177)][_0x59f729(0x182)]:this[_0x59f729(0xb4)](_0xc5c272);break;}}));}[_0x286937(0xd3)](){const _0xf7a365=_0x286937;this[_0xf7a365(0xee)][_0xf7a365(0x15f)]({'eventID':d[_0xf7a365(0x177)][_0xf7a365(0xb8)],'data':{'unitID':this[_0xf7a365(0x10b)],'userID':this[_0xf7a365(0xee)][_0xf7a365(0xd8)]()}},this[_0xf7a365(0x10b)]);}[_0x286937(0xe1)](){const _0x77d9c9=_0x286937;this[_0x77d9c9(0x109)]===_0x77d9c9(0x15c)&&(this['_status$'][_0x77d9c9(0xfd)](_0x77d9c9(0x154)),this['_collabSession']['send']({'eventID':d[_0x77d9c9(0x177)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x286937(0xe0)](){const _0x289c0d=_0x286937;this[_0x289c0d(0x109)]===_0x289c0d(0x170)&&(this[_0x289c0d(0x106)][_0x289c0d(0xfd)](_0x289c0d(0x175)),this[_0x289c0d(0x11a)]());}[_0x286937(0x125)](){const _0x27b8a8=_0x286937;this['_status']===_0x27b8a8(0x175)&&this['_stopFollowing']();}[_0x286937(0xbf)](_0x5ee7ee){const _0x59ef7b=_0x286937,{presenter:_0x67c70f}=_0x5ee7ee[_0x59ef7b(0x12c)],_0x532e69=this['_collabSession'][_0x59ef7b(0xd8)]();this[_0x59ef7b(0x156)]=_0x67c70f,_0x67c70f===_0x532e69?(this[_0x59ef7b(0xe6)](),this[_0x59ef7b(0x143)]()):this[_0x59ef7b(0x109)]!=='not-following'&&(this[_0x59ef7b(0x169)](),this[_0x59ef7b(0x11a)]());}[_0x286937(0x11e)](){const _0x2e6ff2=_0x286937,_0x5af39a={'eventID':d[_0x2e6ff2(0x177)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x2e6ff2(0xee)][_0x2e6ff2(0x15f)](_0x5af39a,this[_0x2e6ff2(0x10b)]);}[_0x286937(0xff)](){const _0x4cec83=_0x286937;this[_0x4cec83(0x156)]=null,this['_status']!==_0x4cec83(0x15c)&&this[_0x4cec83(0xe7)]();}[_0x286937(0xb4)](_0x5382a6){const _0x5678ef=_0x286937;if(this[_0x5678ef(0x109)]===_0x5678ef(0x175)&&this[_0x5678ef(0x156)]===_0x5382a6['data'][_0x5678ef(0x18a)]){const _0x5dd8dc=d[_0x5678ef(0x16e)](_0x5382a6[_0x5678ef(0x12c)])[_0x5678ef(0x144)][_0x5678ef(0x15e)]()[_0x5678ef(0x123)](_0x52f781=>_0x52f781['id']===C[_0x5678ef(0x181)]['id']);if(_0x5dd8dc){const _0xebbe4b=_0x5dd8dc[_0x5678ef(0xca)][_0x5678ef(0x133)],_0x285d19=_0x5dd8dc[_0x5678ef(0xca)][_0x5678ef(0x10d)]['id'];setTimeout(()=>{const _0x421b86=_0x5678ef;this[_0x421b86(0x13f)]['executeCommand'](C[_0x421b86(0x130)]['id'],{'unitId':_0xebbe4b,'subUnitId':_0x285d19},{'fromCollab':!0x0});});}}}[_0x286937(0x143)](){const _0x338e60=_0x286937;this[_0x338e60(0x106)][_0x338e60(0xfd)](_0x338e60(0x15c));const _0x43ebc4=new Map(),_0xf918d0=this['_commandDisposable']=new o[(_0x338e60(0x159))]();_0xf918d0[_0x338e60(0x166)](o[_0x338e60(0x134)](()=>{const _0x59be45=_0x338e60;_0x43ebc4['forEach'](_0x2b278f=>_0x2b278f['complete']()),_0x43ebc4[_0x59be45(0xd5)]();})),_0xf918d0[_0x338e60(0x166)](this[_0x338e60(0x13f)][_0x338e60(0xe4)](_0x1b52c1=>{const _0x249f92=_0x338e60;var _0x257c62;if(_0x1b52c1[_0x249f92(0xcf)]!==o['CommandType']['OPERATION']||!this[_0x249f92(0x17e)][_0x249f92(0x14a)](_0x1b52c1['id']))return;const {id:_0x432500}=_0x1b52c1;let _0x54a7a8;_0x43ebc4['has'](_0x432500)?_0x54a7a8=_0x43ebc4['get'](_0x432500):(_0x54a7a8=new O[(_0x249f92(0x12e))](),_0x43ebc4['set'](_0x432500,_0x54a7a8),_0x54a7a8[_0x249f92(0xea)](I[_0x249f92(0x145)]((_0x257c62=this[_0x249f92(0x12f)][_0x249f92(0x189)](k))!=null?_0x257c62:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x249f92(0x138)](_0xd5ae89=>{const _0x5498a8=_0x249f92;this[_0x5498a8(0xee)][_0x5498a8(0x15f)]({'eventID':d[_0x5498a8(0x177)][_0x5498a8(0x121)],'data':{'unitID':this[_0x5498a8(0x10b)],'operations':{[_0xd5ae89['id']]:{'id':_0xd5ae89['id'],'params':JSON['stringify'](_0xd5ae89[_0x5498a8(0xca)])}}}},this[_0x5498a8(0x10b)]);})),_0x54a7a8[_0x249f92(0xfd)](_0x1b52c1);})),this[_0x338e60(0x17e)]['getInitialStates'](this['_unitID'])[_0x338e60(0x183)](_0x5d452e=>this['_collabSession'][_0x338e60(0x15f)]({'eventID':d[_0x338e60(0x177)][_0x338e60(0x121)],'data':{'unitID':this[_0x338e60(0x10b)],'operations':{[_0x5d452e['id']]:{'id':_0x5d452e['id'],'params':JSON[_0x338e60(0x153)](_0x5d452e['params'])}}}},this[_0x338e60(0x10b)]));}[_0x286937(0x169)](){const _0x31062c=_0x286937;var _0x55740a;this['_status$'][_0x31062c(0xfd)](_0x31062c(0x154)),(_0x55740a=this[_0x31062c(0x112)])==null||_0x55740a[_0x31062c(0xf0)](),this[_0x31062c(0x112)]=null;}[_0x286937(0x11a)](){const _0x4a15a9=_0x286937;var _0x3ed257;(_0x3ed257=this[_0x4a15a9(0x112)])==null||_0x3ed257[_0x4a15a9(0xf0)](),this[_0x4a15a9(0x106)][_0x4a15a9(0xfd)](_0x4a15a9(0x175));}[_0x286937(0xe7)](){const _0x3a7413=_0x286937;var _0x52e181;this['_status$']['next']('idle'),(_0x52e181=this[_0x3a7413(0x112)])==null||_0x52e181[_0x3a7413(0xf0)](),this[_0x3a7413(0x112)]=null;}[_0x286937(0xe6)](){const _0x172ded=_0x286937;var _0x5d5aa0;this['_status$']['next'](_0x172ded(0x170)),(_0x5d5aa0=this[_0x172ded(0x112)])==null||_0x5d5aa0[_0x172ded(0xf0)]();}[_0x286937(0x13a)](_0x55eb0b){const _0x17170=_0x286937;if([_0x17170(0x15c),_0x17170(0x170),_0x17170(0x17c)][_0x17170(0x162)](this['_status'])||!_0x55eb0b[_0x17170(0x12c)][_0x17170(0xe5)]||_0x55eb0b[_0x17170(0x12c)][_0x17170(0xe5)]===this[_0x17170(0xee)]['getMemberID']())return;this[_0x17170(0x109)]==='idle'&&this[_0x17170(0x11a)]();const _0x30c235=_0x55eb0b['data']['operations'];Object[_0x17170(0xf4)](_0x30c235)[_0x17170(0x183)](_0x3e50e8=>{this['_commandService']['executeCommand'](_0x3e50e8['id'],_0x3e50e8['params']?JSON['parse'](_0x3e50e8['params']):null,{'fromCollab':!0x0});});}[_0x286937(0xd0)](){const _0x575643=_0x286937;var _0x162e1c;this[_0x575643(0x106)][_0x575643(0xfd)](_0x575643(0x17c)),(_0x162e1c=this['_commandDisposable'])==null||_0x162e1c['dispose']();}[_0x286937(0xd4)](){const _0x526991=_0x286937;this[_0x526991(0x106)][_0x526991(0xfd)]('idle'),this['_fetchOperations']();}},exports[_0x286937(0x142)]=P([S(0x2,o[_0x286937(0x179)]),S(0x3,o[_0x286937(0xdf)](E)),S(0x4,o['ICommandService'])],exports[_0x286937(0x142)]);function $(){const _0x45187c=_0x286937,_0x30d68e=p[_0x45187c(0x108)](exports[_0x45187c(0x151)]),_0x5681f0=p[_0x45187c(0x108)](o[_0x45187c(0xbc)]),_0x231f06=p[_0x45187c(0x132)](()=>_0x5681f0['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x45187c(0xc4)]),void 0x0,!0x1,[]),[_0x5640ab,_0x5b8565]=v[_0x45187c(0xef)](null),[_0x43c787,_0x16000f]=v[_0x45187c(0xef)](u[_0x45187c(0xe3)]),_0x4b6a13=v['useRef'](null);return v[_0x45187c(0x14d)](()=>(_0x231f06&&_0x30d68e['getLiveShareCoordinator'](_0x231f06['getUnitId']())['then'](_0x507611=>{const _0x5505da=_0x45187c;_0x5b8565(_0x507611),_0x4b6a13['current']=_0x507611['status$'][_0x5505da(0x138)](_0x4a1316=>{_0x16000f(_0x4a1316);});}),()=>{const _0x143971=_0x45187c;var _0x17d2bf;(_0x17d2bf=_0x4b6a13[_0x143971(0xc7)])==null||_0x17d2bf[_0x143971(0xf6)](),_0x4b6a13[_0x143971(0xc7)]=null;}),[_0x231f06,_0x30d68e]),_0x5640ab?l['jsx'](f['Dropdown'],{'align':_0x45187c(0x17f),'disabled':_0x43c787===u[_0x45187c(0x102)],'className':_0x45187c(0x135),'overlay':l[_0x45187c(0x14f)](W,{'status':_0x43c787,'coordinator':_0x5640ab}),'children':l[_0x45187c(0x14f)](_0x45187c(0xc5),{'className':f[_0x45187c(0x165)](_0x45187c(0x140),{'univer-cursor-not-allowed':_0x43c787===u[_0x45187c(0x102)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x43c787!==u[_0x45187c(0x102)]}),'type':_0x45187c(0xc5),'children':l['jsx'](R,{'className':'univer-size-4'})})}):null;}function W(_0x918dbb){const _0x166e21=_0x286937,{status:_0x101132,coordinator:_0x22b4c1}=_0x918dbb;switch(_0x101132){case u[_0x166e21(0xe3)]:return l[_0x166e21(0x14f)](G,{'coordinator':_0x22b4c1});case u[_0x166e21(0xd6)]:return l['jsx'](B,{'coordinator':_0x22b4c1});case u['NOT_FOLLOWING']:return l[_0x166e21(0x14f)](Y,{'coordinator':_0x22b4c1});case u['OFFLINE']:return l['jsx'](J,{});case u['PRESENTING']:return l[_0x166e21(0x14f)](Z,{'coordinator':_0x22b4c1});default:return null;}}function G(_0x5d279b){const _0x415d44=_0x286937,{coordinator:_0x21244f}=_0x5d279b;return l[_0x415d44(0xc2)](l['Fragment'],{'children':[l[_0x415d44(0x14f)](_0x415d44(0x101),{'className':_0x415d44(0x187),'children':_0x415d44(0x176)}),l['jsx'](f[_0x415d44(0x163)],{'onClick':()=>_0x21244f[_0x415d44(0xd3)](),'children':'Start'})]});}function B(_0x56c1db){const _0x184109=_0x286937,{coordinator:_0x4ba151}=_0x56c1db;return l[_0x184109(0xc2)](l['Fragment'],{'children':[l[_0x184109(0x14f)](_0x184109(0x101),{'className':_0x184109(0x187),'children':_0x184109(0x16d)}),l['jsx'](f['Button'],{'onClick':()=>_0x4ba151[_0x184109(0x125)](),'children':_0x184109(0x148)})]});}function Y(_0x26f7a3){const _0x15085c=_0x286937,{coordinator:_0x2115a9}=_0x26f7a3;return l[_0x15085c(0xc2)](l['Fragment'],{'children':[l[_0x15085c(0x14f)](_0x15085c(0x101),{'className':_0x15085c(0x187),'children':_0x15085c(0x155)}),l[_0x15085c(0x14f)](f[_0x15085c(0x163)],{'variant':'text','onClick':()=>_0x2115a9[_0x15085c(0xe0)](),'children':'Start\x20following'})]});}function Z(_0x2a92da){const _0x32ff20=_0x286937,{coordinator:_0x42d6fa}=_0x2a92da;return l['jsxs'](l[_0x32ff20(0x100)],{'children':[l[_0x32ff20(0x14f)](_0x32ff20(0x101),{'className':_0x32ff20(0x187),'children':_0x32ff20(0x137)}),l[_0x32ff20(0x14f)](f['Button'],{'variant':_0x32ff20(0x141),'onClick':()=>_0x42d6fa[_0x32ff20(0xe1)](),'children':_0x32ff20(0x14c)})]});}function J(){const _0x3e510b=_0x286937;return l[_0x3e510b(0x14f)](l[_0x3e510b(0x100)],{'children':_0x3e510b(0x13e)});}function _0x4e45(_0x4cbc3d,_0xe27694){const _0x158bf1=_0x158b();return _0x4e45=function(_0x4e4540,_0x3116fc){_0x4e4540=_0x4e4540-0xb4;let _0x38aee1=_0x158bf1[_0x4e4540];return _0x38aee1;},_0x4e45(_0x4cbc3d,_0xe27694);}var K=Object[_0x286937(0x111)],z=(_0xa886d3,_0xa61e17,_0x30d05e,_0x315ad2)=>{const _0x22c6b=_0x286937;for(var _0x18b02d=_0x315ad2>0x1?void 0x0:_0x315ad2?K(_0xa61e17,_0x30d05e):_0xa61e17,_0x56a5b6=_0xa886d3[_0x22c6b(0x10e)]-0x1,_0x305c8f;_0x56a5b6>=0x0;_0x56a5b6--)(_0x305c8f=_0xa886d3[_0x56a5b6])&&(_0x18b02d=_0x305c8f(_0x18b02d)||_0x18b02d);return _0x18b02d;},L=(_0x47716b,_0x5e252e)=>(_0x2e8b14,_0x129d2e)=>_0x5e252e(_0x2e8b14,_0x129d2e,_0x47716b);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0x178e56,_0x2d3e19){const _0x48b4c7=_0x286937;super(),this[_0x48b4c7(0x18b)]=_0x178e56,this[_0x48b4c7(0xb9)]=_0x2d3e19,this['_mountLiveShare']();}[_0x286937(0xd2)](){const _0x387f61=_0x286937;this[_0x387f61(0x13d)](this[_0x387f61(0xb9)]['registerComponent'](p[_0x387f61(0x107)][_0x387f61(0x146)],()=>p[_0x387f61(0x15b)]($,this[_0x387f61(0x18b)])));}},exports[_0x286937(0x12a)]=z([L(0x0,o[_0x286937(0xdf)](o[_0x286937(0x14e)])),L(0x1,p[_0x286937(0xf9)])],exports[_0x286937(0x12a)]);const Q=_0x286937(0x10a),w={};var X=Object[_0x286937(0x111)],ee=(_0x4b942d,_0x3cdcfc,_0x1da7fd,_0x172fc2)=>{const _0x301b37=_0x286937;for(var _0x1ffd72=_0x172fc2>0x1?void 0x0:_0x172fc2?X(_0x3cdcfc,_0x1da7fd):_0x3cdcfc,_0x5e818b=_0x4b942d[_0x301b37(0x10e)]-0x1,_0x580fc3;_0x5e818b>=0x0;_0x5e818b--)(_0x580fc3=_0x4b942d[_0x5e818b])&&(_0x1ffd72=_0x580fc3(_0x1ffd72)||_0x1ffd72);return _0x1ffd72;},te=(_0x459780,_0x3ad60c)=>(_0x325c50,_0x2f6ee4)=>_0x3ad60c(_0x325c50,_0x2f6ee4,_0x459780);let m=class extends o[_0x286937(0xfb)]{constructor(_0x359f35){const _0x5269e0=_0x286937;super(),this[_0x5269e0(0x17e)]=_0x359f35,this['_init']();}['_init'](){const _0xe489a6=_0x286937;[D[_0xe489a6(0x11c)]['id'],D['SetScrollOperation']['id'],C[_0xe489a6(0x130)]['id']]['forEach'](_0xf06ad4=>{const _0x3cb842=_0xe489a6;this['disposeWithMe'](this[_0x3cb842(0x17e)][_0x3cb842(0x131)](_0xf06ad4));});}};m=ee([te(0x0,o[_0x286937(0xdf)](E))],m);var ie=Object[_0x286937(0x168)],se=Object[_0x286937(0x111)],ne=(_0x2d6204,_0xee05e3,_0x58213e)=>_0xee05e3 in _0x2d6204?ie(_0x2d6204,_0xee05e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58213e}):_0x2d6204[_0xee05e3]=_0x58213e,re=(_0x311b5b,_0x54b7ac,_0x18a3c5,_0x1f50c4)=>{for(var _0x31ad16=_0x1f50c4>0x1?void 0x0:_0x1f50c4?se(_0x54b7ac,_0x18a3c5):_0x54b7ac,_0x318401=_0x311b5b['length']-0x1,_0x7968c5;_0x318401>=0x0;_0x318401--)(_0x7968c5=_0x311b5b[_0x318401])&&(_0x31ad16=_0x7968c5(_0x31ad16)||_0x31ad16);return _0x31ad16;},N=(_0x32feee,_0x28366)=>(_0x3a521e,_0x46d9ac)=>_0x28366(_0x3a521e,_0x46d9ac,_0x32feee),A=(_0xc9469,_0x5ab12a,_0x20aa93)=>ne(_0xc9469,typeof _0x5ab12a!=_0x286937(0x184)?_0x5ab12a+'':_0x5ab12a,_0x20aa93);const oe=_0x286937(0x147);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x59b45f=w,_0x1286de,_0x4dfa3c){const _0x5746df=_0x286937;super(),this[_0x5746df(0x152)]=_0x59b45f,this['_injector']=_0x1286de,this['_configService']=_0x4dfa3c;const {..._0x1a949b}=o[_0x5746df(0xd7)]({},w,this[_0x5746df(0x152)]);this['_configService'][_0x5746df(0x149)](Q,_0x1a949b);}['onStarting'](){const _0x1ccfc9=_0x286937;o[_0x1ccfc9(0xf2)](this[_0x1ccfc9(0x18b)],o[_0x1ccfc9(0xcb)]([[E],[exports[_0x1ccfc9(0x151)]],[m],[exports['DesktopLiveShareController']]],this[_0x1ccfc9(0x152)][_0x1ccfc9(0xda)])),o['touchDependencies'](this[_0x1ccfc9(0x18b)],[[m]]);}[_0x286937(0x116)](){const _0x9cc075=_0x286937;o[_0x9cc075(0x13c)](this[_0x9cc075(0x18b)],[[exports[_0x9cc075(0x12a)]]]);}},A(exports[_0x286937(0xce)],'type',o[_0x286937(0x103)][_0x286937(0xe9)]),A(exports[_0x286937(0xce)],'pluginName',oe),exports[_0x286937(0xce)]=re([o[_0x286937(0xba)](b[_0x286937(0x120)]),N(0x1,o[_0x286937(0xdf)](o['Injector'])),N(0x2,o[_0x286937(0x179)])],exports['UniverLiveSharePlugin']),exports[_0x286937(0xb6)]=$,exports[_0x286937(0xfc)]=E,exports['LiveShareStatus']=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x598157=_0x3f5c;(function(_0x539e72,_0x3c0536){const _0x391e3f=_0x3f5c,_0x385aa0=_0x539e72();while(!![]){try{const _0x3b0d24=-parseInt(_0x391e3f(0x12c))/0x1+parseInt(_0x391e3f(0x130))/0x2*(parseInt(_0x391e3f(0x123))/0x3)+parseInt(_0x391e3f(0x11c))/0x4+-parseInt(_0x391e3f(0x135))/0x5+parseInt(_0x391e3f(0x13a))/0x6*(-parseInt(_0x391e3f(0x12e))/0x7)+-parseInt(_0x391e3f(0x11f))/0x8+parseInt(_0x391e3f(0x13b))/0x9;if(_0x3b0d24===_0x3c0536)break;else _0x385aa0['push'](_0x385aa0['shift']());}catch(_0x18b068){_0x385aa0['push'](_0x385aa0['shift']());}}}(_0x236a,0xcee0d));import{LiveShareController as _0x4e84d9,LiveShareStatus as _0x46cd90}from'@univerjs-pro/live-share';function _0x3f5c(_0x1a91c0,_0x34613d){const _0x236aa1=_0x236a();return _0x3f5c=function(_0x3f5c0a,_0x4246ad){_0x3f5c0a=_0x3f5c0a-0x11c;let _0x533d97=_0x236aa1[_0x3f5c0a];return _0x533d97;},_0x3f5c(_0x1a91c0,_0x34613d);}function _0x236a(){const _0x4f7d1d=['No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startRow','getLiveShareStatus','_initialize','getUnitId','getId','PRESENTING','106057vPOLSO','LiveShareStatusEnum','42hEourS','extend','99332NiakLU','get','getActiveSheet','getStatus','getSheetId','6184030uOLMuh','getLiveShareCoordinatorSync','startColumn','_injector','stopFollowing','860094JfZtSm','18941310NvZurF','3201824KvWdYV','stopPresenting','startFollowing','29712HozqaU','getActiveWorkbook','getRenderById','syncExecuteCommand','9pHWsKs'];_0x236a=function(){return _0x4f7d1d;};return _0x236a();}import{IRenderManagerService as _0x3d767c}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x18b6d3}from'@univerjs/sheets';import{SetScrollOperation as _0x44a959}from'@univerjs/sheets-ui';import{FRange as _0x16a75b}from'@univerjs/sheets/facade';import{FUniver as _0x2f59de,FEnum as _0x2ba21d}from'@univerjs/core/facade';class I extends _0x16a75b{[_0x598157(0x128)](_0x1b3a2b,_0x17bbf5,_0x42ced5,_0x3da8c7,_0x29f17c){const _0x146afc=_0x598157,_0x4ba5c6=_0x1b3a2b[_0x146afc(0x131)](_0x4e84d9),_0x12c11e=_0x1b3a2b['get'](_0x3d767c),_0x426400=_0x17bbf5[_0x146afc(0x129)](),_0x301ece=_0x17bbf5[_0x146afc(0x132)](),_0x2bee39=_0x4ba5c6[_0x146afc(0x136)](_0x426400);(_0x2bee39==null?void 0x0:_0x2bee39[_0x146afc(0x133)]())!==_0x46cd90[_0x146afc(0x12b)]||(_0x42ced5[_0x146afc(0x134)]()!==_0x301ece[_0x146afc(0x134)]()&&this['_commandService']['executeCommand'](_0x18b6d3['id'],{'unitId':_0x426400,'subUnitId':_0x42ced5['getSheetId']()}),!_0x12c11e[_0x146afc(0x121)](_0x426400))||_0x29f17c[_0x146afc(0x122)](_0x44a959['id'],{'unitId':_0x17bbf5[_0x146afc(0x129)](),'sheetId':_0x42ced5['getSheetId'](),'sheetViewStartRow':_0x3da8c7[_0x146afc(0x126)],'sheetViewStartColumn':_0x3da8c7[_0x146afc(0x137)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x16a75b[_0x598157(0x12f)](I);class m extends _0x2f59de{[_0x598157(0x127)](){const _0x4910ed=_0x598157;var _0x4f026e,_0x254ac9;const _0x4e41fa=this[_0x4910ed(0x138)][_0x4910ed(0x131)](_0x4e84d9),_0xd28915=(_0x4f026e=this['getActiveWorkbook']())==null?void 0x0:_0x4f026e['getId']();if(!_0xd28915)throw new Error(_0x4910ed(0x124));const _0x1587c0=_0x4e41fa[_0x4910ed(0x136)](_0xd28915);return(_0x254ac9=_0x1587c0==null?void 0x0:_0x1587c0['getStatus']())!=null?_0x254ac9:_0x46cd90['IDLE'];}[_0x598157(0x11e)](){const _0x289b91=_0x598157;var _0x268a96;const _0x21e29e=this[_0x289b91(0x138)]['get'](_0x4e84d9),_0x43c1cb=(_0x268a96=this[_0x289b91(0x120)]())==null?void 0x0:_0x268a96['getId']();if(!_0x43c1cb)throw new Error(_0x289b91(0x124));const _0x53a4e3=_0x21e29e[_0x289b91(0x136)](_0x43c1cb);if(!_0x53a4e3)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x53a4e3[_0x289b91(0x11e)]();}['stopFollowing'](){const _0x26525d=_0x598157;var _0x42c114;const _0x37db52=this[_0x26525d(0x138)][_0x26525d(0x131)](_0x4e84d9),_0x22e94a=(_0x42c114=this[_0x26525d(0x120)]())==null?void 0x0:_0x42c114[_0x26525d(0x12a)]();if(!_0x22e94a)throw new Error(_0x26525d(0x124));const _0x243cd9=_0x37db52[_0x26525d(0x136)](_0x22e94a);if(!_0x243cd9)throw new Error(_0x26525d(0x125));_0x243cd9[_0x26525d(0x139)]();}['startPresenting'](){const _0x2885ad=_0x598157;var _0x3e2fcb;const _0x4105da=this[_0x2885ad(0x138)][_0x2885ad(0x131)](_0x4e84d9),_0x180005=(_0x3e2fcb=this[_0x2885ad(0x120)]())==null?void 0x0:_0x3e2fcb[_0x2885ad(0x12a)]();if(!_0x180005)throw new Error(_0x2885ad(0x124));const _0x435e4e=_0x4105da[_0x2885ad(0x136)](_0x180005);if(!_0x435e4e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x435e4e['tryStartPresenting']();}[_0x598157(0x11d)](){const _0x5732cd=_0x598157;var _0xe6b558;const _0x5f32c7=this[_0x5732cd(0x138)][_0x5732cd(0x131)](_0x4e84d9),_0x79191e=(_0xe6b558=this[_0x5732cd(0x120)]())==null?void 0x0:_0xe6b558[_0x5732cd(0x12a)]();if(!_0x79191e)throw new Error('No\x20active\x20workbook\x20found.');const _0x585a04=_0x5f32c7[_0x5732cd(0x136)](_0x79191e);if(!_0x585a04)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x585a04['stopPresenting']();}}_0x2f59de['extend'](m);class C extends _0x2ba21d{get[_0x598157(0x12d)](){return _0x46cd90;}}_0x2ba21d[_0x598157(0x12f)](C);
1
+ const _0x2c8835=_0x446d;(function(_0x335d8a,_0x53f694){const _0x47e140=_0x446d,_0x15efdb=_0x335d8a();while(!![]){try{const _0x3609b8=-parseInt(_0x47e140(0x166))/0x1+parseInt(_0x47e140(0x167))/0x2*(-parseInt(_0x47e140(0x156))/0x3)+parseInt(_0x47e140(0x16a))/0x4+-parseInt(_0x47e140(0x14f))/0x5*(-parseInt(_0x47e140(0x14b))/0x6)+parseInt(_0x47e140(0x160))/0x7+-parseInt(_0x47e140(0x15c))/0x8+-parseInt(_0x47e140(0x151))/0x9*(-parseInt(_0x47e140(0x14c))/0xa);if(_0x3609b8===_0x53f694)break;else _0x15efdb['push'](_0x15efdb['shift']());}catch(_0x1f8464){_0x15efdb['push'](_0x15efdb['shift']());}}}(_0x3d75,0x1d5c8));import{LiveShareController as _0x241c67,LiveShareStatus as _0x7a9635}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4c8f29}from'@univerjs/engine-render';function _0x446d(_0x19a8ce,_0x52fd48){const _0x3d7580=_0x3d75();return _0x446d=function(_0x446d79,_0x37b2b0){_0x446d79=_0x446d79-0x14b;let _0x407986=_0x3d7580[_0x446d79];return _0x407986;},_0x446d(_0x19a8ce,_0x52fd48);}import{SetWorksheetActiveOperation as _0xe8d4e8}from'@univerjs/sheets';import{SetScrollOperation as _0x26191c}from'@univerjs/sheets-ui';import{FRange as _0x52721d}from'@univerjs/sheets/facade';import{FUniver as _0x352c42,FEnum as _0x514a6e}from'@univerjs/core/facade';class I extends _0x52721d{[_0x2c8835(0x165)](_0x4960e3,_0x24e408,_0x29140d,_0x3fa3ab,_0x243dac){const _0x4b0806=_0x2c8835,_0x1d6918=_0x4960e3[_0x4b0806(0x15e)](_0x241c67),_0x3940d7=_0x4960e3[_0x4b0806(0x15e)](_0x4c8f29),_0x3e1394=_0x24e408['getUnitId'](),_0x3c360d=_0x24e408[_0x4b0806(0x153)](),_0x29f215=_0x1d6918[_0x4b0806(0x154)](_0x3e1394);(_0x29f215==null?void 0x0:_0x29f215[_0x4b0806(0x16b)]())!==_0x7a9635[_0x4b0806(0x150)]||(_0x29140d[_0x4b0806(0x152)]()!==_0x3c360d['getSheetId']()&&this[_0x4b0806(0x15b)]['executeCommand'](_0xe8d4e8['id'],{'unitId':_0x3e1394,'subUnitId':_0x29140d['getSheetId']()}),!_0x3940d7[_0x4b0806(0x14d)](_0x3e1394))||_0x243dac[_0x4b0806(0x15a)](_0x26191c['id'],{'unitId':_0x24e408['getUnitId'](),'sheetId':_0x29140d[_0x4b0806(0x152)](),'sheetViewStartRow':_0x3fa3ab[_0x4b0806(0x15f)],'sheetViewStartColumn':_0x3fa3ab[_0x4b0806(0x159)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x52721d[_0x2c8835(0x169)](I);class m extends _0x352c42{[_0x2c8835(0x14e)](){const _0x3e4837=_0x2c8835;var _0xd08e42,_0x1ceaba;const _0x3a40f9=this['_injector'][_0x3e4837(0x15e)](_0x241c67),_0x5ac724=(_0xd08e42=this[_0x3e4837(0x157)]())==null?void 0x0:_0xd08e42[_0x3e4837(0x155)]();if(!_0x5ac724)throw new Error(_0x3e4837(0x163));const _0x52ea62=_0x3a40f9[_0x3e4837(0x154)](_0x5ac724);return(_0x1ceaba=_0x52ea62==null?void 0x0:_0x52ea62[_0x3e4837(0x16b)]())!=null?_0x1ceaba:_0x7a9635[_0x3e4837(0x161)];}[_0x2c8835(0x158)](){const _0x584c95=_0x2c8835;var _0x2fe493;const _0x3bbc39=this[_0x584c95(0x168)][_0x584c95(0x15e)](_0x241c67),_0x1b29c4=(_0x2fe493=this[_0x584c95(0x157)]())==null?void 0x0:_0x2fe493[_0x584c95(0x155)]();if(!_0x1b29c4)throw new Error('No\x20active\x20workbook\x20found.');const _0x432bc6=_0x3bbc39[_0x584c95(0x154)](_0x1b29c4);if(!_0x432bc6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x432bc6[_0x584c95(0x158)]();}[_0x2c8835(0x16c)](){const _0x1cb8b8=_0x2c8835;var _0x5797c2;const _0x40e57c=this['_injector'][_0x1cb8b8(0x15e)](_0x241c67),_0x5d824d=(_0x5797c2=this[_0x1cb8b8(0x157)]())==null?void 0x0:_0x5797c2[_0x1cb8b8(0x155)]();if(!_0x5d824d)throw new Error(_0x1cb8b8(0x163));const _0x78ed96=_0x40e57c[_0x1cb8b8(0x154)](_0x5d824d);if(!_0x78ed96)throw new Error(_0x1cb8b8(0x164));_0x78ed96[_0x1cb8b8(0x16c)]();}[_0x2c8835(0x15d)](){const _0x2bd584=_0x2c8835;var _0x4f54a5;const _0x159439=this[_0x2bd584(0x168)][_0x2bd584(0x15e)](_0x241c67),_0x100c86=(_0x4f54a5=this[_0x2bd584(0x157)]())==null?void 0x0:_0x4f54a5[_0x2bd584(0x155)]();if(!_0x100c86)throw new Error('No\x20active\x20workbook\x20found.');const _0x5a539e=_0x159439[_0x2bd584(0x154)](_0x100c86);if(!_0x5a539e)throw new Error(_0x2bd584(0x164));_0x5a539e['tryStartPresenting']();}[_0x2c8835(0x16d)](){const _0x4b554b=_0x2c8835;var _0x11dcbd;const _0x158adc=this[_0x4b554b(0x168)][_0x4b554b(0x15e)](_0x241c67),_0x677b7b=(_0x11dcbd=this['getActiveWorkbook']())==null?void 0x0:_0x11dcbd[_0x4b554b(0x155)]();if(!_0x677b7b)throw new Error(_0x4b554b(0x163));const _0x1bdfe0=_0x158adc[_0x4b554b(0x154)](_0x677b7b);if(!_0x1bdfe0)throw new Error(_0x4b554b(0x164));_0x1bdfe0[_0x4b554b(0x16d)]();}}_0x352c42['extend'](m);class C extends _0x514a6e{get[_0x2c8835(0x162)](){return _0x7a9635;}}_0x514a6e[_0x2c8835(0x169)](C);function _0x3d75(){const _0x4e361a=['extend','954812JpYvuM','getStatus','stopFollowing','stopPresenting','246ukYLEZ','26230JMkrbO','getRenderById','getLiveShareStatus','3330mVANJs','PRESENTING','81WHbObp','getSheetId','getActiveSheet','getLiveShareCoordinatorSync','getId','3DCUzcf','getActiveWorkbook','startFollowing','startColumn','syncExecuteCommand','_commandService','876144EwMytE','startPresenting','get','startRow','1681302HAPfxX','IDLE','LiveShareStatusEnum','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_initialize','189514nFCYip','221012tiivii','_injector'];_0x3d75=function(){return _0x4e361a;};return _0x3d75();}
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x373afb=_0xfdad;(function(_0x331313,_0x105631){const _0xbae83=_0xfdad,_0x5c5324=_0x331313();while(!![]){try{const _0x4abc6b=parseInt(_0xbae83(0x9a))/0x1+-parseInt(_0xbae83(0xa1))/0x2*(-parseInt(_0xbae83(0xb8))/0x3)+-parseInt(_0xbae83(0xea))/0x4*(parseInt(_0xbae83(0x11f))/0x5)+parseInt(_0xbae83(0x12c))/0x6*(-parseInt(_0xbae83(0x12d))/0x7)+parseInt(_0xbae83(0xec))/0x8+parseInt(_0xbae83(0xf8))/0x9*(-parseInt(_0xbae83(0xf7))/0xa)+-parseInt(_0xbae83(0xbe))/0xb*(parseInt(_0xbae83(0x11c))/0xc);if(_0x4abc6b===_0x105631)break;else _0x5c5324['push'](_0x5c5324['shift']());}catch(_0x779218){_0x5c5324['push'](_0x5c5324['shift']());}}}(_0x2c6a,0xad834));var J=Object[_0x373afb(0xca)],K=(_0x23cba8,_0x2013d3,_0x42f183)=>_0x2013d3 in _0x23cba8?J(_0x23cba8,_0x2013d3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42f183}):_0x23cba8[_0x2013d3]=_0x42f183,u=(_0x1860e1,_0x27c00e,_0x5cf248)=>K(_0x1860e1,typeof _0x27c00e!=_0x373afb(0x119)?_0x27c00e+'':_0x27c00e,_0x5cf248);import{Disposable as _0x2fe247,toDisposable as _0x1ac75e,IUniverInstanceService as _0x34e9fa,Inject as _0x44b869,Injector as _0x9ae918,IConfigService as _0x4f1855,ICommandService as _0x4c5df3,RxDisposable as _0x372ae2,UniverInstanceType as _0x3279a2,DisposableCollection as _0x4e5770,CommandType as _0x3d9b5a,DependentOn as _0xacdf87,Plugin as _0x31b36f,merge as _0x1066e5,registerDependencies as _0x1e94e5,mergeOverrideWithDependencies as _0xef3678,touchDependencies as _0x495760}from'@univerjs/core';import{useDependency as _0x228f76,useObservable as _0x4b62b2,IUIPartsService as _0x19674a,BuiltInUIPart as _0x50235b,connectInjector as _0xd9524e}from'@univerjs/ui';import{jsx as _0x38bc83,jsxs as _0x5c6850,Fragment as _0x3d4178}from'react/jsx-runtime';import{Dropdown as _0x425cde,clsx as _0x1f887d,Button as _0x4c4b88}from'@univerjs/design';import{useRef as _0x4fde8f,createElement as _0x564b18,forwardRef as _0x47812d,useState as _0x348257,useEffect as _0x56a4e1}from'react';function _0xfdad(_0x1fb984,_0xc98ef4){const _0x2c6a67=_0x2c6a();return _0xfdad=function(_0xfdada9,_0x3439d2){_0xfdada9=_0xfdada9-0x8b;let _0x50407c=_0x2c6a67[_0xfdada9];return _0x50407c;},_0xfdad(_0x1fb984,_0xc98ef4);}import{CollaborationEvent as _0x8c2ef9,parseProtocolChangeset as _0x1b1fac}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x386d31,SessionStatus as _0x2b61a0,UniverCollaborationClientPlugin as _0x2b2af9}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3e4c4f,SetWorksheetActiveOperation as _0x573678}from'@univerjs/sheets';import{BehaviorSubject as _0x59b090,Subject as _0x241eea}from'rxjs';import{takeUntil as _0x1ece35,throttleTime as _0x8122a8}from'rxjs/operators';import{SetZoomRatioOperation as _0x134bb0,SetScrollOperation as _0x355a6f}from'@univerjs/sheets-ui';function k({ref:_0x36d23e,..._0x24625c}){const _0x3df57a=_0x373afb,{icon:_0x5b67e1,id:_0x72f218,className:_0x338231,extend:_0x4f1020,..._0x1a6576}=_0x24625c,_0xa1e11c=(_0x3df57a(0x121)+_0x72f218+'\x20'+(_0x338231||''))[_0x3df57a(0xc1)](),_0x35a027=_0x4fde8f('_'+Oe());return G(_0x5b67e1,''+_0x72f218,{'defIds':_0x5b67e1[_0x3df57a(0x124)],'idSuffix':_0x35a027[_0x3df57a(0xef)]},{'ref':_0x36d23e,'className':_0xa1e11c,..._0x1a6576},_0x4f1020);}function G(_0x5245ff,_0x468b5f,_0x1bce61,_0x50066b,_0x8dbfeb){const _0x48cfa7=_0x373afb;return _0x564b18(_0x5245ff[_0x48cfa7(0xfa)],{'key':_0x468b5f,...be(_0x5245ff,_0x1bce61,_0x8dbfeb),..._0x50066b},(Ee(_0x5245ff,_0x1bce61)[_0x48cfa7(0xad)]||[])[_0x48cfa7(0x114)]((_0x2ff82e,_0x408c5f)=>G(_0x2ff82e,_0x468b5f+'-'+_0x5245ff['tag']+'-'+_0x408c5f,_0x1bce61,void 0x0,_0x8dbfeb)));}function be(_0x4dc6cc,_0x473a0d,_0x2d75c5){const _0x1dec6b=_0x373afb,_0x1c7563={..._0x4dc6cc['attrs']};_0x2d75c5!=null&&_0x2d75c5[_0x1dec6b(0x95)]&&_0x1c7563[_0x1dec6b(0x118)]===_0x1dec6b(0x95)&&(_0x1c7563['fill']=_0x2d75c5[_0x1dec6b(0x95)]),_0x4dc6cc[_0x1dec6b(0xfa)]===_0x1dec6b(0xe3)&&_0x1c7563['id']&&(_0x1c7563['id']=_0x1c7563['id']+_0x473a0d[_0x1dec6b(0x113)]),Object[_0x1dec6b(0xf9)](_0x1c7563)[_0x1dec6b(0xa2)](([_0x312f9a,_0x461259])=>{const _0x4d45d2=_0x1dec6b;_0x312f9a===_0x4d45d2(0xe3)&&typeof _0x461259=='string'&&(_0x1c7563[_0x312f9a]=_0x461259['replace'](/url\(#(.*)\)/,_0x4d45d2(0x9e)+_0x473a0d['idSuffix']+')'));});const {defIds:_0x2994f7}=_0x473a0d;return!_0x2994f7||_0x2994f7['length']===0x0||(_0x4dc6cc[_0x1dec6b(0xfa)]==='use'&&_0x1c7563[_0x1dec6b(0xf2)]&&(_0x1c7563[_0x1dec6b(0xf2)]=_0x1c7563[_0x1dec6b(0xf2)]+_0x473a0d[_0x1dec6b(0x113)]),Object[_0x1dec6b(0xf9)](_0x1c7563)[_0x1dec6b(0xa2)](([_0x4fcb71,_0x63504b])=>{const _0x17ed05=_0x1dec6b;typeof _0x63504b==_0x17ed05(0xb9)&&(_0x1c7563[_0x4fcb71]=_0x63504b['replace'](/url\(#(.*)\)/,'url(#$1'+_0x473a0d[_0x17ed05(0x113)]+')'));})),_0x1c7563;}function Ee(_0x2b60a4,_0x3af416){const _0x356020=_0x373afb;var _0x5baccd;const {defIds:_0x41fa5c}=_0x3af416;return!_0x41fa5c||_0x41fa5c[_0x356020(0xa7)]===0x0?_0x2b60a4:_0x2b60a4[_0x356020(0xfa)]===_0x356020(0xc3)&&((_0x5baccd=_0x2b60a4[_0x356020(0xad)])!=null&&_0x5baccd[_0x356020(0xa7)])?{..._0x2b60a4,'children':_0x2b60a4[_0x356020(0xad)][_0x356020(0x114)](_0x24d51b=>typeof _0x24d51b['attrs']['id']==_0x356020(0xb9)&&_0x41fa5c&&_0x41fa5c[_0x356020(0x111)](_0x24d51b[_0x356020(0x100)]['id'])?{..._0x24d51b,'attrs':{..._0x24d51b['attrs'],'id':_0x24d51b[_0x356020(0x100)]['id']+_0x3af416[_0x356020(0x113)]}}:_0x24d51b)}:_0x2b60a4;}function Oe(){const _0x30e88e=_0x373afb;return Math[_0x30e88e(0xd0)]()['toString'](0x24)[_0x30e88e(0x9f)](0x2,0x8);}k[_0x373afb(0xd4)]='UniverIcon';const we={'tag':_0x373afb(0xb3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x373afb(0x10f),'viewBox':_0x373afb(0xaa),'width':_0x373afb(0xe4),'height':_0x373afb(0xe4)},'children':[{'tag':_0x373afb(0x115),'attrs':{'fill':_0x373afb(0x102),'d':_0x373afb(0xab)}},{'tag':_0x373afb(0x115),'attrs':{'fill':_0x373afb(0x102),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x373afb(0xa0),'clipRule':_0x373afb(0xa0)}}]},W=_0x47812d(function(_0x5325a4,_0x42d077){const _0x16bc43=_0x373afb;return _0x564b18(k,Object[_0x16bc43(0x12e)]({},_0x5325a4,{'id':_0x16bc43(0x8d),'ref':_0x42d077,'icon':we}));});W[_0x373afb(0xd4)]='LiveShareIcon';class L extends _0x2fe247{constructor(){const _0x131bcf=_0x373afb;super(...arguments),u(this,_0x131bcf(0x128),new Set()),u(this,_0x131bcf(0x12a),new Set());}['registerSharedOperation'](_0x1ca56e){const _0xd1e286=_0x373afb;return this[_0xd1e286(0x128)][_0xd1e286(0x11e)](_0x1ca56e),_0x1ac75e(()=>this[_0xd1e286(0x128)]['delete'](_0x1ca56e));}[_0x373afb(0xdb)](_0x2817e1){const _0xfe4ad1=_0x373afb;return this[_0xfe4ad1(0x12a)]['add'](_0x2817e1),_0x1ac75e(()=>this[_0xfe4ad1(0x12a)][_0xfe4ad1(0xfe)](_0x2817e1));}[_0x373afb(0x99)](_0x2dff99){const _0x5864da=_0x373afb;return this[_0x5864da(0x128)][_0x5864da(0xc4)](_0x2dff99);}[_0x373afb(0xac)](_0x2bfd8c){const _0x135b08=_0x373afb;return Array['from'](this[_0x135b08(0x12a)])[_0x135b08(0x114)](_0x15189e=>_0x15189e(_0x2bfd8c));}}var Ne=Object[_0x373afb(0xf5)],Y=(_0x4957b1,_0x28b4b8,_0x50ed55,_0x4253b4)=>{const _0x4518ef=_0x373afb;for(var _0x276a73=_0x4253b4>0x1?void 0x0:_0x4253b4?Ne(_0x28b4b8,_0x50ed55):_0x28b4b8,_0x12c417=_0x4957b1[_0x4518ef(0xa7)]-0x1,_0x1f0ef5;_0x12c417>=0x0;_0x12c417--)(_0x1f0ef5=_0x4957b1[_0x12c417])&&(_0x276a73=_0x1f0ef5(_0x276a73)||_0x276a73);return _0x276a73;},_=(_0x4ac365,_0x3f5a96)=>(_0x559595,_0x36d3c0)=>_0x3f5a96(_0x559595,_0x36d3c0,_0x4ac365);let S=class extends _0x372ae2{constructor(_0xf02443,_0x498446,_0x10a0d8){const _0x1c1a31=_0x373afb;super(),u(this,_0x1c1a31(0xc7),new Map()),(this[_0x1c1a31(0xcc)]=_0xf02443,this['_injector']=_0x498446,this['_collabSessionService']=_0x10a0d8,this[_0x1c1a31(0xf4)]());}async[_0x373afb(0xcb)](_0x1120f6){const _0x593acc=_0x373afb;return this['_entities']['has'](_0x1120f6)||await this[_0x593acc(0x8b)](_0x1120f6),this['_entities'][_0x593acc(0x110)](_0x1120f6);}['getLiveShareCoordinatorSync'](_0x35ca1c){const _0x4901f1=_0x373afb;var _0x41c180;return(_0x41c180=this[_0x4901f1(0xc7)]['get'](_0x35ca1c))!=null?_0x41c180:null;}['_init'](){const _0x436b2e=_0x373afb;this[_0x436b2e(0xcc)][_0x436b2e(0xc8)](_0x3279a2['UNIVER_SHEET'])[_0x436b2e(0x96)](_0x1ece35(this[_0x436b2e(0xc2)]))[_0x436b2e(0xb1)](async _0x1092c6=>{const _0x404ecf=_0x436b2e,_0x520e30=_0x1092c6[_0x404ecf(0xa4)]();this[_0x404ecf(0xc7)][_0x404ecf(0xc4)](_0x520e30)||this['_startLiveShareCoordinator'](_0x520e30);}),this[_0x436b2e(0xcc)][_0x436b2e(0x10d)](_0x3279a2['UNIVER_SHEET'])[_0x436b2e(0x96)](_0x1ece35(this[_0x436b2e(0xc2)]))['subscribe'](_0x442fc3=>{const _0x182aee=_0x436b2e,_0xb90867=_0x442fc3['getUnitId'](),_0x178032=this[_0x182aee(0xc7)][_0x182aee(0x110)](_0xb90867);_0x178032==null||_0x178032[_0x182aee(0xd7)]();});}async['_startLiveShareCoordinator'](_0x5444cb){const _0x404059=_0x373afb,_0x450720=await this['_collabSessionService'][_0x404059(0x92)](_0x5444cb),_0x46ae15=this['_injector'][_0x404059(0xeb)](N,_0x5444cb,_0x450720);return _0x46ae15[_0x404059(0x123)](),this['_entities'][_0x404059(0x116)](_0x5444cb,_0x46ae15),_0x46ae15;}};S=Y([_(0x0,_0x34e9fa),_(0x1,_0x44b869(_0x9ae918)),_(0x2,_0x44b869(_0x386d31))],S);var c=(_0x30a0bd=>(_0x30a0bd[_0x373afb(0x132)]='offline',_0x30a0bd['IDLE']='idle',_0x30a0bd[_0x373afb(0xbf)]=_0x373afb(0x10a),_0x30a0bd['NOT_FOLLOWING']=_0x373afb(0xf0),_0x30a0bd[_0x373afb(0x126)]=_0x373afb(0x12b),_0x30a0bd))(c||{});const Ce=_0x373afb(0xd9),De=0xc8;let N=class extends _0x372ae2{constructor(_0x1e9468,_0xec6728,_0x255ffa,_0x389a45,_0x13be00){const _0x14e226=_0x373afb;super(),u(this,'_status$',new _0x59b090('idle')),u(this,'status$',this[_0x14e226(0x134)][_0x14e226(0x130)]()),u(this,_0x14e226(0xf4),!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this['_unitID']=_0x1e9468,this[_0x14e226(0x107)]=_0xec6728,this[_0x14e226(0x10c)]=_0x255ffa,this[_0x14e226(0xbd)]=_0x389a45,this[_0x14e226(0xa3)]=_0x13be00);}get[_0x373afb(0xdc)](){const _0x5dfdf9=_0x373afb;return this[_0x5dfdf9(0x134)][_0x5dfdf9(0xff)]();}[_0x373afb(0xd7)](){const _0x146ec8=_0x373afb;var _0x722907;(_0x722907=this[_0x146ec8(0xd3)])==null||_0x722907[_0x146ec8(0xd7)](),this[_0x146ec8(0x134)]['next'](_0x146ec8(0x97)),this['_status$'][_0x146ec8(0x11a)]();}['getStatus'](){return this['_status'];}[_0x373afb(0x123)](){const _0x347c15=_0x373afb;this[_0x347c15(0xf4)]||(this[_0x347c15(0xf4)]=!0x0,this[_0x347c15(0x107)][_0x347c15(0x125)]['pipe'](_0x1ece35(this[_0x347c15(0xc2)]))[_0x347c15(0xb1)](_0x531712=>{const _0x18bdb4=_0x347c15;switch(_0x531712){case _0x2b61a0[_0x18bdb4(0x132)]:this[_0x18bdb4(0xf1)]();break;case _0x2b61a0[_0x18bdb4(0xee)]:this[_0x18bdb4(0xc6)]();break;}}),this[_0x347c15(0x107)][_0x347c15(0xe5)][_0x347c15(0x96)](_0x1ece35(this[_0x347c15(0xc2)]))[_0x347c15(0xb1)](_0x731256=>{const _0x59555a=_0x347c15,{eventID:_0x32068e}=_0x731256;switch(_0x32068e){case _0x8c2ef9['LIVESHARE_NEW_HOST']:this[_0x59555a(0x11b)](_0x731256);break;case _0x8c2ef9[_0x59555a(0xb4)]:this[_0x59555a(0xbc)](_0x731256);break;case _0x8c2ef9['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x8c2ef9[_0x59555a(0xdd)]:this[_0x59555a(0xcf)](_0x731256);break;}}));}['tryStartPresenting'](){const _0xf4b852=_0x373afb;this['_collabSession']['send']({'eventID':_0x8c2ef9[_0xf4b852(0xdf)],'data':{'unitID':this[_0xf4b852(0xc9)],'userID':this[_0xf4b852(0x107)][_0xf4b852(0xfc)]()}},this[_0xf4b852(0xc9)]);}[_0x373afb(0xfb)](){const _0x2f74fe=_0x373afb;this[_0x2f74fe(0xdc)]===_0x2f74fe(0x12b)&&(this[_0x2f74fe(0x134)][_0x2f74fe(0xce)](_0x2f74fe(0x97)),this[_0x2f74fe(0x107)][_0x2f74fe(0xcd)]({'eventID':_0x8c2ef9[_0x2f74fe(0xbb)],'data':{'unitID':this[_0x2f74fe(0xc9)]}},this[_0x2f74fe(0xc9)]));}[_0x373afb(0x103)](){const _0x1f0519=_0x373afb;this[_0x1f0519(0xdc)]===_0x1f0519(0xf0)&&(this[_0x1f0519(0x134)][_0x1f0519(0xce)]('following'),this[_0x1f0519(0x9c)]());}[_0x373afb(0x9d)](){const _0x26310d=_0x373afb;this[_0x26310d(0xdc)]===_0x26310d(0x10a)&&this['_stopFollowing']();}['_handleNewHost'](_0x194eaa){const _0x3c21c9=_0x373afb,{presenter:_0x1b032c}=_0x194eaa['data'],_0x90204e=this['_collabSession'][_0x3c21c9(0xfc)]();this[_0x3c21c9(0xd6)]=_0x1b032c,_0x1b032c===_0x90204e?(this[_0x3c21c9(0xae)](),this['_startPresenting']()):this[_0x3c21c9(0xdc)]!==_0x3c21c9(0xf0)&&(this[_0x3c21c9(0xf6)](),this[_0x3c21c9(0x9c)]());}[_0x373afb(0xa6)](){const _0x27a39b=_0x373afb,_0x5b7651={'eventID':_0x8c2ef9['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x27a39b(0xcd)](_0x5b7651,this[_0x27a39b(0xc9)]);}[_0x373afb(0x108)](){const _0x17b0d2=_0x373afb;this[_0x17b0d2(0xd6)]=null,this[_0x17b0d2(0xdc)]!==_0x17b0d2(0x12b)&&this[_0x17b0d2(0xa5)]();}[_0x373afb(0xcf)](_0x49fa0b){const _0x14c015=_0x373afb;if(this[_0x14c015(0xdc)]===_0x14c015(0x10a)&&this[_0x14c015(0xd6)]===_0x49fa0b['data'][_0x14c015(0xde)]){const _0x573164=_0x1b1fac(_0x49fa0b['data'])[_0x14c015(0x94)][_0x14c015(0xe7)]()[_0x14c015(0x9b)](_0x48f604=>_0x48f604['id']===_0x3e4c4f['id']);if(_0x573164){const _0x4240c3=_0x573164[_0x14c015(0x8f)][_0x14c015(0xd2)],_0x42bc0c=_0x573164[_0x14c015(0x8f)][_0x14c015(0x8e)]['id'];setTimeout(()=>{const _0x200fd7=_0x14c015;this[_0x200fd7(0xa3)][_0x200fd7(0x120)](_0x573678['id'],{'unitId':_0x4240c3,'subUnitId':_0x42bc0c},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x599a5d=_0x373afb;this[_0x599a5d(0x134)][_0x599a5d(0xce)](_0x599a5d(0x12b));const _0x32ccb5=new Map(),_0x1b07e1=this['_commandDisposable']=new _0x4e5770();_0x1b07e1[_0x599a5d(0x11e)](_0x1ac75e(()=>{const _0x4a2901=_0x599a5d;_0x32ccb5['forEach'](_0x5b73b2=>_0x5b73b2[_0x4a2901(0x11a)]()),_0x32ccb5[_0x4a2901(0xba)]();})),_0x1b07e1[_0x599a5d(0x11e)](this[_0x599a5d(0xa3)][_0x599a5d(0x117)](_0x172814=>{const _0x4c9d51=_0x599a5d;var _0x2efe0a;if(_0x172814[_0x4c9d51(0x133)]!==_0x3d9b5a[_0x4c9d51(0xc5)]||!this[_0x4c9d51(0xbd)]['shouldShareOperation'](_0x172814['id']))return;const {id:_0xdc67f0}=_0x172814;let _0x15672e;_0x32ccb5[_0x4c9d51(0xc4)](_0xdc67f0)?_0x15672e=_0x32ccb5[_0x4c9d51(0x110)](_0xdc67f0):(_0x15672e=new _0x241eea(),_0x32ccb5[_0x4c9d51(0x116)](_0xdc67f0,_0x15672e),_0x15672e[_0x4c9d51(0x96)](_0x8122a8((_0x2efe0a=this[_0x4c9d51(0x10c)]['getConfig'](Ce))!=null?_0x2efe0a:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4c9d51(0xb1)](_0x290e91=>{const _0x39c90c=_0x4c9d51;this['_collabSession'][_0x39c90c(0xcd)]({'eventID':_0x8c2ef9[_0x39c90c(0xb4)],'data':{'unitID':this[_0x39c90c(0xc9)],'operations':{[_0x290e91['id']]:{'id':_0x290e91['id'],'params':JSON['stringify'](_0x290e91['params'])}}}},this[_0x39c90c(0xc9)]);})),_0x15672e[_0x4c9d51(0xce)](_0x172814);})),this[_0x599a5d(0xbd)][_0x599a5d(0xac)](this[_0x599a5d(0xc9)])[_0x599a5d(0xa2)](_0x169550=>this[_0x599a5d(0x107)][_0x599a5d(0xcd)]({'eventID':_0x8c2ef9[_0x599a5d(0xb4)],'data':{'unitID':this[_0x599a5d(0xc9)],'operations':{[_0x169550['id']]:{'id':_0x169550['id'],'params':JSON[_0x599a5d(0x12f)](_0x169550['params'])}}}},this[_0x599a5d(0xc9)]));}[_0x373afb(0xf6)](){const _0x2fb652=_0x373afb;var _0x56f75a;this[_0x2fb652(0x134)]['next'](_0x2fb652(0x97)),(_0x56f75a=this[_0x2fb652(0xd3)])==null||_0x56f75a['dispose'](),this[_0x2fb652(0xd3)]=null;}[_0x373afb(0x9c)](){const _0x60c111=_0x373afb;var _0x293ce4;(_0x293ce4=this[_0x60c111(0xd3)])==null||_0x293ce4[_0x60c111(0xd7)](),this[_0x60c111(0x134)][_0x60c111(0xce)](_0x60c111(0x10a));}[_0x373afb(0xa5)](){const _0x36d7de=_0x373afb;var _0x19b8cd;this[_0x36d7de(0x134)][_0x36d7de(0xce)](_0x36d7de(0x97)),(_0x19b8cd=this[_0x36d7de(0xd3)])==null||_0x19b8cd[_0x36d7de(0xd7)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x5efc2b=_0x373afb;var _0x1d6a63;this[_0x5efc2b(0x134)][_0x5efc2b(0xce)](_0x5efc2b(0xf0)),(_0x1d6a63=this[_0x5efc2b(0xd3)])==null||_0x1d6a63[_0x5efc2b(0xd7)]();}[_0x373afb(0xbc)](_0xfcce72){const _0x3d3b04=_0x373afb;if([_0x3d3b04(0x12b),_0x3d3b04(0xf0),_0x3d3b04(0xb0)]['includes'](this[_0x3d3b04(0xdc)])||!_0xfcce72[_0x3d3b04(0xfd)][_0x3d3b04(0xa8)]||_0xfcce72[_0x3d3b04(0xfd)][_0x3d3b04(0xa8)]===this[_0x3d3b04(0x107)][_0x3d3b04(0xfc)]())return;this[_0x3d3b04(0xdc)]===_0x3d3b04(0x97)&&this[_0x3d3b04(0x9c)]();const _0x2e7ccd=_0xfcce72['data'][_0x3d3b04(0x109)];Object[_0x3d3b04(0x101)](_0x2e7ccd)[_0x3d3b04(0xa2)](_0x3c0e26=>{const _0x206e60=_0x3d3b04;this['_commandService'][_0x206e60(0x120)](_0x3c0e26['id'],_0x3c0e26['params']?JSON[_0x206e60(0x10b)](_0x3c0e26[_0x206e60(0x8f)]):null,{'fromCollab':!0x0});});}[_0x373afb(0xf1)](){const _0x5981ca=_0x373afb;var _0x195dfc;this[_0x5981ca(0x134)][_0x5981ca(0xce)](_0x5981ca(0xb0)),(_0x195dfc=this['_commandDisposable'])==null||_0x195dfc[_0x5981ca(0xd7)]();}['_handleOnline'](){const _0x2eebe4=_0x373afb;this[_0x2eebe4(0x134)][_0x2eebe4(0xce)](_0x2eebe4(0x97)),this['_fetchOperations']();}};N=Y([_(0x2,_0x4f1855),_(0x3,_0x44b869(L)),_(0x4,_0x4c5df3)],N);function Le(){const _0x790222=_0x373afb,_0x1bbd41=_0x228f76(S),_0x24afe7=_0x228f76(_0x34e9fa),_0x156f85=_0x4b62b2(()=>_0x24afe7[_0x790222(0xda)](_0x3279a2['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x2b6b96,_0x5b2543]=_0x348257(null),[_0x243175,_0x1fda9d]=_0x348257(c[_0x790222(0x91)]),_0x11b665=_0x4fde8f(null);return _0x56a4e1(()=>(_0x156f85&&_0x1bbd41[_0x790222(0xcb)](_0x156f85[_0x790222(0xa4)]())['then'](_0x53eb7f=>{const _0x32d716=_0x790222;_0x5b2543(_0x53eb7f),_0x11b665[_0x32d716(0xef)]=_0x53eb7f[_0x32d716(0xd1)][_0x32d716(0xb1)](_0x16c70c=>{_0x1fda9d(_0x16c70c);});}),()=>{const _0x10411e=_0x790222;var _0x4dc5d5;(_0x4dc5d5=_0x11b665[_0x10411e(0xef)])==null||_0x4dc5d5[_0x10411e(0xa9)](),_0x11b665[_0x10411e(0xef)]=null;}),[_0x156f85,_0x1bbd41]),_0x2b6b96?_0x38bc83(_0x425cde,{'align':_0x790222(0x11d),'disabled':_0x243175===c[_0x790222(0x132)],'className':_0x790222(0xb7),'overlay':_0x38bc83(Re,{'status':_0x243175,'coordinator':_0x2b6b96}),'children':_0x38bc83(_0x790222(0xe1),{'className':_0x1f887d(_0x790222(0x105),{'univer-cursor-not-allowed':_0x243175===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x243175!==c['OFFLINE']}),'type':_0x790222(0xe1),'children':_0x38bc83(W,{'className':_0x790222(0x135)})})}):null;}function Re(_0x4460d2){const _0xdc7a93=_0x373afb,{status:_0x5b2a2c,coordinator:_0x573a23}=_0x4460d2;switch(_0x5b2a2c){case c[_0xdc7a93(0x91)]:return _0x38bc83($e,{'coordinator':_0x573a23});case c['FOLLOWING']:return _0x38bc83(xe,{'coordinator':_0x573a23});case c[_0xdc7a93(0xd8)]:return _0x38bc83(Pe,{'coordinator':_0x573a23});case c[_0xdc7a93(0x132)]:return _0x38bc83(Te,{});case c[_0xdc7a93(0x126)]:return _0x38bc83(Ae,{'coordinator':_0x573a23});default:return null;}}function _0x2c6a(){const _0x37c689=['_config','none','get','includes','You\x27re\x20following\x20the\x20presenter','idSuffix','map','path','set','onCommandExecuted','fill','symbol','complete','_handleNewHost','192EvSVpg','end','add','5VsRZsU','executeCommand','univerjs-icon\x20univerjs-icon-','div','init','defIds','sessionStatus$','PRESENTING','You\x27re\x20not\x20following\x20the\x20presenter','_sharedOperations','pluginName','_reporters','presenting','6nizBbj','385070IDbALI','assign','stringify','asObservable','UNIVER_LIVE_SHARE_PLUGIN','OFFLINE','type','_status$','univer-size-4','_startLiveShareCoordinator','Stop\x20following','live-share-icon','sheet','params','registerComponent','IDLE','requireSession','tryStartPresenting','mutations','colorChannel1','pipe','idle','univer-mb-3\x20univer-w-full\x20univer-text-sm','shouldShareOperation','1180837YeiPDv','find','_startFollowing','stopFollowing','url(#$1','substring','evenodd','44vHQgyf','forEach','_commandService','getUnitId','_beIdle','_fetchOperations','length','presenter','unsubscribe','0\x200\x2017\x2017','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','getInitialStates','children','_stopFollowing','Start','offline','subscribe','disposeWithMe','svg','LIVESHARE_OPERATION','You\x27are\x20offline.','Present\x20this\x20document','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','113493QPGQiJ','string','clear','LIVESHARE_TERMINATE','_handleOperation','_liveShareService','362384HkaKwr','FOLLOWING','onStarting','trim','dispose$','defs','has','OPERATION','_handleOnline','_entities','getTypeOfUnitAdded$','_unitID','defineProperty','getLiveShareCoordinator','_univerInstanceService','send','next','_handleNewChangeSets','random','status$','unitId','_commandDisposable','displayName','UNIVER_UNKNOWN','_presenter','dispose','NOT_FOLLOWING','SAME_OPERATION_SHARE_INTERVAL','getCurrentTypeOfUnit$','registerInitialStateReporter','_status','NEW_CHANGESETS','memberID','LIVESHARE_REQUEST_HOST','_mountLiveShare','button','_injector','mask','1em','event$','Start\x20following','reverse','You\x27re\x20presenting\x20the\x20document','Stop\x20presenting','4882596ZhDnEo','createInstance','11229520wnrKWG','HEADER_MENU','ONLINE','current','not-following','_handleOffline','xlink:href','override','_init','getOwnPropertyDescriptor','_stopPresenting','20cEtFij','4065021sAxeLq','entries','tag','stopPresenting','getMemberID','data','delete','getValue','attrs','values','currentColor','startFollowing','default','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_uiPartsService','_collabSession','_handleTerminate','operations','following','parse','_configService','getTypeOfUnitDisposed$'];_0x2c6a=function(){return _0x37c689;};return _0x2c6a();}function $e(_0x23aefb){const _0xc849a=_0x373afb,{coordinator:_0x1b880d}=_0x23aefb;return _0x5c6850(_0x3d4178,{'children':[_0x38bc83(_0xc849a(0x122),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc849a(0xb6)}),_0x38bc83(_0x4c4b88,{'onClick':()=>_0x1b880d[_0xc849a(0x93)](),'children':_0xc849a(0xaf)})]});}function xe(_0x4ede01){const _0x5a9ef3=_0x373afb,{coordinator:_0x2a3f43}=_0x4ede01;return _0x5c6850(_0x3d4178,{'children':[_0x38bc83('div',{'className':_0x5a9ef3(0x98),'children':_0x5a9ef3(0x112)}),_0x38bc83(_0x4c4b88,{'onClick':()=>_0x2a3f43['stopFollowing'](),'children':_0x5a9ef3(0x8c)})]});}function Pe(_0xb95a9b){const _0x511281=_0x373afb,{coordinator:_0x54610c}=_0xb95a9b;return _0x5c6850(_0x3d4178,{'children':[_0x38bc83(_0x511281(0x122),{'className':_0x511281(0x98),'children':_0x511281(0x127)}),_0x38bc83(_0x4c4b88,{'variant':'text','onClick':()=>_0x54610c[_0x511281(0x103)](),'children':_0x511281(0xe6)})]});}function Ae(_0x21bdad){const _0x4a0dfd=_0x373afb,{coordinator:_0x55938b}=_0x21bdad;return _0x5c6850(_0x3d4178,{'children':[_0x38bc83('div',{'className':_0x4a0dfd(0x98),'children':_0x4a0dfd(0xe8)}),_0x38bc83(_0x4c4b88,{'variant':_0x4a0dfd(0x104),'onClick':()=>_0x55938b[_0x4a0dfd(0xfb)](),'children':_0x4a0dfd(0xe9)})]});}function Te(){const _0x59c8a4=_0x373afb;return _0x38bc83(_0x3d4178,{'children':_0x59c8a4(0xb5)});}var Fe=Object[_0x373afb(0xf5)],He=(_0x5909e2,_0x5a9129,_0x2b798b,_0xc66490)=>{const _0x2b4f85=_0x373afb;for(var _0x45b7db=_0xc66490>0x1?void 0x0:_0xc66490?Fe(_0x5a9129,_0x2b798b):_0x5a9129,_0x3d2216=_0x5909e2[_0x2b4f85(0xa7)]-0x1,_0x53f92f;_0x3d2216>=0x0;_0x3d2216--)(_0x53f92f=_0x5909e2[_0x3d2216])&&(_0x45b7db=_0x53f92f(_0x45b7db)||_0x45b7db);return _0x45b7db;},A=(_0x20702e,_0x52e5a8)=>(_0x599489,_0x30960d)=>_0x52e5a8(_0x599489,_0x30960d,_0x20702e);let m=class extends _0x2fe247{constructor(_0x36bb67,_0xe659a7){const _0x1dd5ee=_0x373afb;super(),this['_injector']=_0x36bb67,this[_0x1dd5ee(0x106)]=_0xe659a7,this[_0x1dd5ee(0xe0)]();}[_0x373afb(0xe0)](){const _0x38bdd0=_0x373afb;this[_0x38bdd0(0xb2)](this['_uiPartsService'][_0x38bdd0(0x90)](_0x50235b[_0x38bdd0(0xed)],()=>_0xd9524e(Le,this[_0x38bdd0(0xe2)])));}};m=He([A(0x0,_0x44b869(_0x9ae918)),A(0x1,_0x19674a)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x5b738b,_0x80071f,_0x24d5ae,_0x34cd1e)=>{for(var _0x419006=_0x34cd1e>0x1?void 0x0:_0x34cd1e?Ue(_0x80071f,_0x24d5ae):_0x80071f,_0x1fc4fe=_0x5b738b['length']-0x1,_0x5dafe4;_0x1fc4fe>=0x0;_0x1fc4fe--)(_0x5dafe4=_0x5b738b[_0x1fc4fe])&&(_0x419006=_0x5dafe4(_0x419006)||_0x419006);return _0x419006;},je=(_0x2eb5ac,_0x2910ce)=>(_0x577196,_0x51e6ea)=>_0x2910ce(_0x577196,_0x51e6ea,_0x2eb5ac);let I=class extends _0x2fe247{constructor(_0x1f9348){const _0x168ee8=_0x373afb;super(),this[_0x168ee8(0xbd)]=_0x1f9348,this[_0x168ee8(0xf4)]();}[_0x373afb(0xf4)](){const _0x172035=_0x373afb;[_0x134bb0['id'],_0x355a6f['id'],_0x573678['id']][_0x172035(0xa2)](_0x29018b=>{const _0xdf18ee=_0x172035;this[_0xdf18ee(0xb2)](this[_0xdf18ee(0xbd)]['registerSharedOperation'](_0x29018b));});}};I=Ve([je(0x0,_0x44b869(L))],I);var Me=Object[_0x373afb(0xca)],ke=Object[_0x373afb(0xf5)],Ge=(_0x2da04f,_0x1716bf,_0x6cc873)=>_0x1716bf in _0x2da04f?Me(_0x2da04f,_0x1716bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6cc873}):_0x2da04f[_0x1716bf]=_0x6cc873,We=(_0xc496a7,_0x1916c8,_0x11f1a5,_0x37c556)=>{const _0x467bb6=_0x373afb;for(var _0x5d3a36=_0x37c556>0x1?void 0x0:_0x37c556?ke(_0x1916c8,_0x11f1a5):_0x1916c8,_0x5071e1=_0xc496a7[_0x467bb6(0xa7)]-0x1,_0x5151eb;_0x5071e1>=0x0;_0x5071e1--)(_0x5151eb=_0xc496a7[_0x5071e1])&&(_0x5d3a36=_0x5151eb(_0x5d3a36)||_0x5d3a36);return _0x5d3a36;},F=(_0x14bed2,_0x14a0d3)=>(_0x2ae82f,_0x431a39)=>_0x14a0d3(_0x2ae82f,_0x431a39,_0x14bed2),B=(_0x380747,_0x924f52,_0x2c1642)=>Ge(_0x380747,typeof _0x924f52!=_0x373afb(0x119)?_0x924f52+'':_0x924f52,_0x2c1642);const Ye=_0x373afb(0x131);let b=class extends _0x31b36f{constructor(_0x1ecf49=T,_0x2ea4bb,_0x4930cd){const _0x30b0bb=_0x373afb;super(),this[_0x30b0bb(0x10e)]=_0x1ecf49,this['_injector']=_0x2ea4bb,this[_0x30b0bb(0x10c)]=_0x4930cd;const {..._0xc518f}=_0x1066e5({},T,this['_config']);this[_0x30b0bb(0x10c)]['setConfig'](ye,_0xc518f);}[_0x373afb(0xc0)](){const _0x587387=_0x373afb;_0x1e94e5(this[_0x587387(0xe2)],_0xef3678([[L],[S],[I],[m]],this[_0x587387(0x10e)][_0x587387(0xf3)])),_0x495760(this[_0x587387(0xe2)],[[I]]);}['onRendered'](){const _0x40efd2=_0x373afb;_0x495760(this[_0x40efd2(0xe2)],[[m]]);}};B(b,'type',_0x3279a2[_0x373afb(0xd5)]),B(b,_0x373afb(0x129),Ye),b=We([_0xacdf87(_0x2b2af9),F(0x1,_0x44b869(_0x9ae918)),F(0x2,_0x4f1855)],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 _0x466b10=_0x2fc8;(function(_0x3626d1,_0x23da67){const _0x45aec7=_0x2fc8,_0x8e61fd=_0x3626d1();while(!![]){try{const _0x48c8d8=parseInt(_0x45aec7(0x219))/0x1+-parseInt(_0x45aec7(0x1d6))/0x2+parseInt(_0x45aec7(0x242))/0x3*(parseInt(_0x45aec7(0x257))/0x4)+parseInt(_0x45aec7(0x254))/0x5+parseInt(_0x45aec7(0x277))/0x6*(-parseInt(_0x45aec7(0x213))/0x7)+-parseInt(_0x45aec7(0x233))/0x8+parseInt(_0x45aec7(0x25c))/0x9*(-parseInt(_0x45aec7(0x1f3))/0xa);if(_0x48c8d8===_0x23da67)break;else _0x8e61fd['push'](_0x8e61fd['shift']());}catch(_0xebfcd1){_0x8e61fd['push'](_0x8e61fd['shift']());}}}(_0x357a,0xbf71a));var J=Object[_0x466b10(0x264)],K=(_0xe41e0b,_0x53190b,_0x5dfba6)=>_0x53190b in _0xe41e0b?J(_0xe41e0b,_0x53190b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dfba6}):_0xe41e0b[_0x53190b]=_0x5dfba6,u=(_0x534186,_0x439d01,_0x13b7be)=>K(_0x534186,typeof _0x439d01!='symbol'?_0x439d01+'':_0x439d01,_0x13b7be);import{Disposable as _0x420bef,toDisposable as _0x2eefa6,IUniverInstanceService as _0x2136d5,Inject as _0xb810a1,Injector as _0x42925d,IConfigService as _0x534aaa,ICommandService as _0x462048,RxDisposable as _0x42c56f,UniverInstanceType as _0x5da7e1,DisposableCollection as _0x5c3901,CommandType as _0x5c0f1e,DependentOn as _0x426f35,Plugin as _0x1ab38a,merge as _0x153f93,registerDependencies as _0x40c418,mergeOverrideWithDependencies as _0x26a6d8,touchDependencies as _0x321cc3}from'@univerjs/core';import{useDependency as _0x57b7f1,useObservable as _0x2f47a8,IUIPartsService as _0x13733b,BuiltInUIPart as _0x325241,connectInjector as _0x5e2acd}from'@univerjs/ui';import{jsx as _0x284072,jsxs as _0x2842a9,Fragment as _0x3f7b64}from'react/jsx-runtime';import{Dropdown as _0x4d67da,clsx as _0x3b0bb0,Button as _0x55525b}from'@univerjs/design';import{useRef as _0x42cbc5,createElement as _0x345555,forwardRef as _0x3c8360,useState as _0x34edd8,useEffect as _0x2e4dde}from'react';import{CollaborationEvent as _0x4f8dac,parseProtocolChangeset as _0x1aca7c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32ee9c,SessionStatus as _0x2c2d1f,UniverCollaborationClientPlugin as _0x27fd59}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x27298e,SetWorksheetActiveOperation as _0x1cd2eb}from'@univerjs/sheets';import{BehaviorSubject as _0x4e0347,Subject as _0x5885a2}from'rxjs';import{takeUntil as _0x2b8aab,throttleTime as _0x3853a5}from'rxjs/operators';import{SetZoomRatioOperation as _0x54dcf4,SetScrollOperation as _0x59b67c}from'@univerjs/sheets-ui';function k({ref:_0x56e881,..._0x8a0ea0}){const _0x4313f2=_0x466b10,{icon:_0xdffd6,id:_0x3a411c,className:_0x3857f2,extend:_0x437451,..._0x472013}=_0x8a0ea0,_0x49a098=('univerjs-icon\x20univerjs-icon-'+_0x3a411c+'\x20'+(_0x3857f2||''))['trim'](),_0x1bf568=_0x42cbc5('_'+Oe());return G(_0xdffd6,''+_0x3a411c,{'defIds':_0xdffd6[_0x4313f2(0x1e9)],'idSuffix':_0x1bf568[_0x4313f2(0x260)]},{'ref':_0x56e881,'className':_0x49a098,..._0x472013},_0x437451);}function G(_0x36dab8,_0x14e2ad,_0x388ceb,_0xe44f09,_0x31239d){const _0x457d2f=_0x466b10;return _0x345555(_0x36dab8[_0x457d2f(0x1d5)],{'key':_0x14e2ad,...be(_0x36dab8,_0x388ceb,_0x31239d),..._0xe44f09},(Ee(_0x36dab8,_0x388ceb)[_0x457d2f(0x1da)]||[])['map']((_0x143ae9,_0x2fb417)=>G(_0x143ae9,_0x14e2ad+'-'+_0x36dab8[_0x457d2f(0x1d5)]+'-'+_0x2fb417,_0x388ceb,void 0x0,_0x31239d)));}function be(_0x193212,_0x5225b8,_0x52778d){const _0x144ca5=_0x466b10,_0x4e407c={..._0x193212[_0x144ca5(0x23e)]};_0x52778d!=null&&_0x52778d[_0x144ca5(0x252)]&&_0x4e407c[_0x144ca5(0x269)]==='colorChannel1'&&(_0x4e407c[_0x144ca5(0x269)]=_0x52778d['colorChannel1']),_0x193212[_0x144ca5(0x1d5)]==='mask'&&_0x4e407c['id']&&(_0x4e407c['id']=_0x4e407c['id']+_0x5225b8[_0x144ca5(0x20f)]),Object[_0x144ca5(0x24c)](_0x4e407c)[_0x144ca5(0x21f)](([_0x337893,_0x589733])=>{const _0x2f5315=_0x144ca5;_0x337893==='mask'&&typeof _0x589733==_0x2f5315(0x25e)&&(_0x4e407c[_0x337893]=_0x589733['replace'](/url\(#(.*)\)/,_0x2f5315(0x273)+_0x5225b8[_0x2f5315(0x20f)]+')'));});const {defIds:_0x253c66}=_0x5225b8;return!_0x253c66||_0x253c66[_0x144ca5(0x225)]===0x0||(_0x193212['tag']==='use'&&_0x4e407c['xlink:href']&&(_0x4e407c[_0x144ca5(0x1d8)]=_0x4e407c['xlink:href']+_0x5225b8[_0x144ca5(0x20f)]),Object[_0x144ca5(0x24c)](_0x4e407c)[_0x144ca5(0x21f)](([_0x5581e5,_0x171030])=>{const _0x32af2b=_0x144ca5;typeof _0x171030==_0x32af2b(0x25e)&&(_0x4e407c[_0x5581e5]=_0x171030[_0x32af2b(0x22a)](/url\(#(.*)\)/,_0x32af2b(0x273)+_0x5225b8[_0x32af2b(0x20f)]+')'));})),_0x4e407c;}function _0x357a(){const _0x1c4ba2=['_status','disposeWithMe','getMemberID','univer-size-4','get','OPERATION','getUnitId','asObservable','attrs','event$','displayName','PRESENTING','3165MfJiok','You\x27are\x20offline.','UNIVER_SHEET','getConfig','_handleTerminate','getValue','LIVESHARE_OPERATION','init','LIVESHARE_REQUEST_HOST','NOT_FOLLOWING','entries','getOwnPropertyDescriptor','UNIVER_UNKNOWN','params','status$','_configService','colorChannel1','NEW_CHANGESETS','506440UAbPaJ','_init','stopPresenting','3032UyPZYu','complete','You\x27re\x20presenting\x20the\x20document','memberID','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','30798qOIaYn','unitId','string','_startFollowing','current','evenodd','live-share.config','_unitID','defineProperty','1em','mutations','getTypeOfUnitDisposed$','getCurrentTypeOfUnit$','fill','type','following','none','presenting','setConfig','IDLE','_sharedOperations','getInitialStates','You\x27re\x20not\x20following\x20the\x20presenter','url(#$1','_beIdle','_presenter','data','1608414RAbKHp','delete','_stopFollowing','_commandDisposable','tag','261130MtvYBC','LIVESHARE_TERMINATE','xlink:href','symbol','children','_startPresenting','values','next','onCommandExecuted','Start','FOLLOWING','_mountLiveShare','registerSharedOperation','LIVESHARE_FETCH_OPERATIONS','_status$','has','startFollowing','default','currentColor','defIds','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-mb-3\x20univer-w-full\x20univer-text-sm','override','subscribe','includes','button','HEADER_MENU','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','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','730MDRAmK','_config','_collabSession','dispose','OFFLINE','offline','add','idle','Present\x20this\x20document','onStarting','defs','text','_reporters','send','_handleNewHost','UniverIcon','getTypeOfUnitAdded$','div','assign','tryStartPresenting','reverse','LIVESHARE_NEW_HOST','requireSession','_handleOnline','shouldShareOperation','executeCommand','_collabSessionService','http://www.w3.org/2000/svg','idSuffix','_handleOffline','set','dispose$','28FjsQDi','getLiveShareCoordinator','path','_handleNewChangeSets','You\x27re\x20following\x20the\x20presenter','_univerInstanceService','1405489RARwvP','Stop\x20following','end','pipe','getStatus','createInstance','forEach','_uiPartsService','not-following','presenter','_handleOperation','_liveShareService','length','_stopPresenting','_fetchOperations','stopFollowing','sheet','replace','parse','0\x200\x2017\x2017','_startLiveShareCoordinator','_commandService','SAME_OPERATION_SHARE_INTERVAL','onRendered','_injector','toString','557328kyMpoS','_entities','pluginName'];_0x357a=function(){return _0x1c4ba2;};return _0x357a();}function Ee(_0x48c89a,_0x1479e5){const _0xdca510=_0x466b10;var _0x3b9069;const {defIds:_0x476edd}=_0x1479e5;return!_0x476edd||_0x476edd[_0xdca510(0x225)]===0x0?_0x48c89a:_0x48c89a[_0xdca510(0x1d5)]===_0xdca510(0x1fd)&&((_0x3b9069=_0x48c89a[_0xdca510(0x1da)])!=null&&_0x3b9069[_0xdca510(0x225)])?{..._0x48c89a,'children':_0x48c89a['children']['map'](_0x5eadee=>typeof _0x5eadee[_0xdca510(0x23e)]['id']==_0xdca510(0x25e)&&_0x476edd&&_0x476edd[_0xdca510(0x1ee)](_0x5eadee[_0xdca510(0x23e)]['id'])?{..._0x5eadee,'attrs':{..._0x5eadee[_0xdca510(0x23e)],'id':_0x5eadee[_0xdca510(0x23e)]['id']+_0x1479e5[_0xdca510(0x20f)]}}:_0x5eadee)}:_0x48c89a;}function Oe(){const _0x2e54c3=_0x466b10;return Math['random']()[_0x2e54c3(0x232)](0x24)['substring'](0x2,0x8);}k[_0x466b10(0x240)]=_0x466b10(0x202);const we={'tag':'svg','attrs':{'xmlns':_0x466b10(0x20e),'fill':_0x466b10(0x26c),'viewBox':_0x466b10(0x22c),'width':_0x466b10(0x265),'height':_0x466b10(0x265)},'children':[{'tag':_0x466b10(0x215),'attrs':{'fill':'currentColor','d':_0x466b10(0x25b)}},{'tag':_0x466b10(0x215),'attrs':{'fill':_0x466b10(0x1e8),'d':_0x466b10(0x1f1),'fillRule':_0x466b10(0x261),'clipRule':_0x466b10(0x261)}}]},W=_0x3c8360(function(_0x85f375,_0x1fb5b6){const _0x238ac1=_0x466b10;return _0x345555(k,Object[_0x238ac1(0x205)]({},_0x85f375,{'id':'live-share-icon','ref':_0x1fb5b6,'icon':we}));});W[_0x466b10(0x240)]='LiveShareIcon';class L extends _0x420bef{constructor(){const _0x534244=_0x466b10;super(...arguments),u(this,_0x534244(0x270),new Set()),u(this,_0x534244(0x1ff),new Set());}['registerSharedOperation'](_0x283131){const _0xec1a2e=_0x466b10;return this[_0xec1a2e(0x270)]['add'](_0x283131),_0x2eefa6(()=>this[_0xec1a2e(0x270)][_0xec1a2e(0x1d2)](_0x283131));}['registerInitialStateReporter'](_0x2bcae4){const _0x5d9c51=_0x466b10;return this[_0x5d9c51(0x1ff)][_0x5d9c51(0x1f9)](_0x2bcae4),_0x2eefa6(()=>this[_0x5d9c51(0x1ff)][_0x5d9c51(0x1d2)](_0x2bcae4));}[_0x466b10(0x20b)](_0x27b4e1){const _0x22a577=_0x466b10;return this[_0x22a577(0x270)][_0x22a577(0x1e5)](_0x27b4e1);}[_0x466b10(0x271)](_0x21cfca){const _0x28622f=_0x466b10;return Array['from'](this[_0x28622f(0x1ff)])['map'](_0xae5419=>_0xae5419(_0x21cfca));}}function _0x2fc8(_0x4eae40,_0x1bf369){const _0x357a1e=_0x357a();return _0x2fc8=function(_0x2fc8b5,_0x285da0){_0x2fc8b5=_0x2fc8b5-0x1d2;let _0x4f78d4=_0x357a1e[_0x2fc8b5];return _0x4f78d4;},_0x2fc8(_0x4eae40,_0x1bf369);}var Ne=Object[_0x466b10(0x24d)],Y=(_0x247e4e,_0x5ab1bf,_0x2311d0,_0x3039bc)=>{for(var _0xd525ca=_0x3039bc>0x1?void 0x0:_0x3039bc?Ne(_0x5ab1bf,_0x2311d0):_0x5ab1bf,_0x250c14=_0x247e4e['length']-0x1,_0x4acf00;_0x250c14>=0x0;_0x250c14--)(_0x4acf00=_0x247e4e[_0x250c14])&&(_0xd525ca=_0x4acf00(_0xd525ca)||_0xd525ca);return _0xd525ca;},_=(_0x4cff14,_0x134983)=>(_0x177e5d,_0x400f5e)=>_0x134983(_0x177e5d,_0x400f5e,_0x4cff14);let S=class extends _0x42c56f{constructor(_0x12aa1b,_0x3369ed,_0x3b2100){const _0x538447=_0x466b10;super(),u(this,'_entities',new Map()),(this[_0x538447(0x218)]=_0x12aa1b,this[_0x538447(0x231)]=_0x3369ed,this[_0x538447(0x20d)]=_0x3b2100,this[_0x538447(0x255)]());}async[_0x466b10(0x214)](_0x4cc403){const _0x3a8be6=_0x466b10;return this[_0x3a8be6(0x234)]['has'](_0x4cc403)||await this[_0x3a8be6(0x22d)](_0x4cc403),this[_0x3a8be6(0x234)][_0x3a8be6(0x23a)](_0x4cc403);}['getLiveShareCoordinatorSync'](_0x4d60ac){const _0x294aee=_0x466b10;var _0x5080d1;return(_0x5080d1=this[_0x294aee(0x234)][_0x294aee(0x23a)](_0x4d60ac))!=null?_0x5080d1:null;}[_0x466b10(0x255)](){const _0x462bfb=_0x466b10;this[_0x462bfb(0x218)][_0x462bfb(0x203)](_0x5da7e1[_0x462bfb(0x244)])[_0x462bfb(0x21c)](_0x2b8aab(this[_0x462bfb(0x212)]))[_0x462bfb(0x1ed)](async _0x2a6ec0=>{const _0x53687e=_0x462bfb,_0x351f05=_0x2a6ec0[_0x53687e(0x23c)]();this[_0x53687e(0x234)][_0x53687e(0x1e5)](_0x351f05)||this[_0x53687e(0x22d)](_0x351f05);}),this[_0x462bfb(0x218)][_0x462bfb(0x267)](_0x5da7e1[_0x462bfb(0x244)])[_0x462bfb(0x21c)](_0x2b8aab(this['dispose$']))['subscribe'](_0x4fe067=>{const _0xab9415=_0x462bfb,_0x974fbe=_0x4fe067['getUnitId'](),_0x5cbd94=this[_0xab9415(0x234)][_0xab9415(0x23a)](_0x974fbe);_0x5cbd94==null||_0x5cbd94[_0xab9415(0x1f6)]();});}async[_0x466b10(0x22d)](_0x23b9ed){const _0x4d6911=_0x466b10,_0x537694=await this[_0x4d6911(0x20d)][_0x4d6911(0x209)](_0x23b9ed),_0x11c03c=this[_0x4d6911(0x231)][_0x4d6911(0x21e)](N,_0x23b9ed,_0x537694);return _0x11c03c[_0x4d6911(0x249)](),this[_0x4d6911(0x234)][_0x4d6911(0x211)](_0x23b9ed,_0x11c03c),_0x11c03c;}};S=Y([_(0x0,_0x2136d5),_(0x1,_0xb810a1(_0x42925d)),_(0x2,_0xb810a1(_0x32ee9c))],S);var c=(_0x7d2b6b=>(_0x7d2b6b[_0x466b10(0x1f7)]=_0x466b10(0x1f8),_0x7d2b6b[_0x466b10(0x26f)]=_0x466b10(0x1fa),_0x7d2b6b['FOLLOWING']='following',_0x7d2b6b['NOT_FOLLOWING']='not-following',_0x7d2b6b[_0x466b10(0x241)]=_0x466b10(0x26d),_0x7d2b6b))(c||{});const Ce=_0x466b10(0x22f),De=0xc8;let N=class extends _0x42c56f{constructor(_0xa665c2,_0x391052,_0x56364f,_0x58779e,_0x90e7d2){const _0x1141fa=_0x466b10;super(),u(this,_0x1141fa(0x1e4),new _0x4e0347(_0x1141fa(0x1fa))),u(this,'status$',this[_0x1141fa(0x1e4)][_0x1141fa(0x23d)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this[_0x1141fa(0x263)]=_0xa665c2,this[_0x1141fa(0x1f5)]=_0x391052,this[_0x1141fa(0x251)]=_0x56364f,this[_0x1141fa(0x224)]=_0x58779e,this[_0x1141fa(0x22e)]=_0x90e7d2);}get[_0x466b10(0x236)](){const _0x5853e1=_0x466b10;return this[_0x5853e1(0x1e4)][_0x5853e1(0x247)]();}['dispose'](){const _0x1698e1=_0x466b10;var _0x148295;(_0x148295=this[_0x1698e1(0x1d4)])==null||_0x148295[_0x1698e1(0x1f6)](),this[_0x1698e1(0x1e4)][_0x1698e1(0x1dd)](_0x1698e1(0x1fa)),this[_0x1698e1(0x1e4)][_0x1698e1(0x258)]();}[_0x466b10(0x21d)](){const _0x28440c=_0x466b10;return this[_0x28440c(0x236)];}[_0x466b10(0x249)](){const _0x3c242e=_0x466b10;this['_init']||(this[_0x3c242e(0x255)]=!0x0,this[_0x3c242e(0x1f5)]['sessionStatus$']['pipe'](_0x2b8aab(this[_0x3c242e(0x212)]))[_0x3c242e(0x1ed)](_0x4d7096=>{const _0x4393dd=_0x3c242e;switch(_0x4d7096){case _0x2c2d1f[_0x4393dd(0x1f7)]:this[_0x4393dd(0x210)]();break;case _0x2c2d1f['ONLINE']:this['_handleOnline']();break;}}),this[_0x3c242e(0x1f5)][_0x3c242e(0x23f)]['pipe'](_0x2b8aab(this['dispose$']))[_0x3c242e(0x1ed)](_0x1a3914=>{const _0x5541c8=_0x3c242e,{eventID:_0x33595d}=_0x1a3914;switch(_0x33595d){case _0x4f8dac[_0x5541c8(0x208)]:this['_handleNewHost'](_0x1a3914);break;case _0x4f8dac[_0x5541c8(0x248)]:this[_0x5541c8(0x223)](_0x1a3914);break;case _0x4f8dac[_0x5541c8(0x1d7)]:this[_0x5541c8(0x246)]();break;case _0x4f8dac[_0x5541c8(0x253)]:this['_handleNewChangeSets'](_0x1a3914);break;}}));}[_0x466b10(0x206)](){const _0x1d3e1b=_0x466b10;this[_0x1d3e1b(0x1f5)][_0x1d3e1b(0x200)]({'eventID':_0x4f8dac[_0x1d3e1b(0x24a)],'data':{'unitID':this[_0x1d3e1b(0x263)],'userID':this[_0x1d3e1b(0x1f5)]['getMemberID']()}},this['_unitID']);}[_0x466b10(0x256)](){const _0x14b4e3=_0x466b10;this[_0x14b4e3(0x236)]==='presenting'&&(this[_0x14b4e3(0x1e4)][_0x14b4e3(0x1dd)](_0x14b4e3(0x1fa)),this[_0x14b4e3(0x1f5)][_0x14b4e3(0x200)]({'eventID':_0x4f8dac['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x14b4e3(0x263)]}},this['_unitID']));}[_0x466b10(0x1e6)](){const _0x3deff0=_0x466b10;this['_status']===_0x3deff0(0x221)&&(this[_0x3deff0(0x1e4)][_0x3deff0(0x1dd)]('following'),this[_0x3deff0(0x25f)]());}[_0x466b10(0x228)](){const _0x1759eb=_0x466b10;this[_0x1759eb(0x236)]===_0x1759eb(0x26b)&&this[_0x1759eb(0x1d3)]();}[_0x466b10(0x201)](_0x3122bb){const _0x1ecd4d=_0x466b10,{presenter:_0x2f0213}=_0x3122bb[_0x1ecd4d(0x276)],_0x27ea90=this[_0x1ecd4d(0x1f5)]['getMemberID']();this['_presenter']=_0x2f0213,_0x2f0213===_0x27ea90?(this['_stopFollowing'](),this[_0x1ecd4d(0x1db)]()):this[_0x1ecd4d(0x236)]!=='not-following'&&(this[_0x1ecd4d(0x226)](),this[_0x1ecd4d(0x25f)]());}[_0x466b10(0x227)](){const _0x199c73=_0x466b10,_0x3ce07e={'eventID':_0x4f8dac[_0x199c73(0x1e3)]};this['_collabSession'][_0x199c73(0x200)](_0x3ce07e,this[_0x199c73(0x263)]);}['_handleTerminate'](){const _0x546a9d=_0x466b10;this[_0x546a9d(0x275)]=null,this[_0x546a9d(0x236)]!==_0x546a9d(0x26d)&&this[_0x546a9d(0x274)]();}[_0x466b10(0x216)](_0xe39262){const _0x3db4de=_0x466b10;if(this[_0x3db4de(0x236)]===_0x3db4de(0x26b)&&this[_0x3db4de(0x275)]===_0xe39262[_0x3db4de(0x276)][_0x3db4de(0x25a)]){const _0x3dc36c=_0x1aca7c(_0xe39262[_0x3db4de(0x276)])[_0x3db4de(0x266)][_0x3db4de(0x207)]()['find'](_0x57ae51=>_0x57ae51['id']===_0x27298e['id']);if(_0x3dc36c){const _0x154067=_0x3dc36c[_0x3db4de(0x24f)][_0x3db4de(0x25d)],_0x262a15=_0x3dc36c[_0x3db4de(0x24f)][_0x3db4de(0x229)]['id'];setTimeout(()=>{const _0x8cdea2=_0x3db4de;this[_0x8cdea2(0x22e)][_0x8cdea2(0x20c)](_0x1cd2eb['id'],{'unitId':_0x154067,'subUnitId':_0x262a15},{'fromCollab':!0x0});});}}}[_0x466b10(0x1db)](){const _0x36c0f2=_0x466b10;this['_status$'][_0x36c0f2(0x1dd)](_0x36c0f2(0x26d));const _0x353dee=new Map(),_0x5321c8=this[_0x36c0f2(0x1d4)]=new _0x5c3901();_0x5321c8[_0x36c0f2(0x1f9)](_0x2eefa6(()=>{const _0x20851a=_0x36c0f2;_0x353dee[_0x20851a(0x21f)](_0x3fa4c0=>_0x3fa4c0['complete']()),_0x353dee['clear']();})),_0x5321c8[_0x36c0f2(0x1f9)](this[_0x36c0f2(0x22e)][_0x36c0f2(0x1de)](_0x147d71=>{const _0x59fc17=_0x36c0f2;var _0xf4dac5;if(_0x147d71[_0x59fc17(0x26a)]!==_0x5c0f1e[_0x59fc17(0x23b)]||!this[_0x59fc17(0x224)][_0x59fc17(0x20b)](_0x147d71['id']))return;const {id:_0x3503f5}=_0x147d71;let _0x292949;_0x353dee[_0x59fc17(0x1e5)](_0x3503f5)?_0x292949=_0x353dee[_0x59fc17(0x23a)](_0x3503f5):(_0x292949=new _0x5885a2(),_0x353dee[_0x59fc17(0x211)](_0x3503f5,_0x292949),_0x292949[_0x59fc17(0x21c)](_0x3853a5((_0xf4dac5=this[_0x59fc17(0x251)][_0x59fc17(0x245)](Ce))!=null?_0xf4dac5:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59fc17(0x1ed)](_0xda6466=>{const _0x303ecc=_0x59fc17;this[_0x303ecc(0x1f5)]['send']({'eventID':_0x4f8dac['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0xda6466['id']]:{'id':_0xda6466['id'],'params':JSON['stringify'](_0xda6466[_0x303ecc(0x24f)])}}}},this[_0x303ecc(0x263)]);})),_0x292949['next'](_0x147d71);})),this['_liveShareService'][_0x36c0f2(0x271)](this['_unitID'])[_0x36c0f2(0x21f)](_0x5400a4=>this['_collabSession'][_0x36c0f2(0x200)]({'eventID':_0x4f8dac[_0x36c0f2(0x248)],'data':{'unitID':this[_0x36c0f2(0x263)],'operations':{[_0x5400a4['id']]:{'id':_0x5400a4['id'],'params':JSON['stringify'](_0x5400a4[_0x36c0f2(0x24f)])}}}},this[_0x36c0f2(0x263)]));}['_stopPresenting'](){const _0x156e4a=_0x466b10;var _0x1fb473;this[_0x156e4a(0x1e4)][_0x156e4a(0x1dd)](_0x156e4a(0x1fa)),(_0x1fb473=this[_0x156e4a(0x1d4)])==null||_0x1fb473[_0x156e4a(0x1f6)](),this[_0x156e4a(0x1d4)]=null;}[_0x466b10(0x25f)](){const _0xb65f8a=_0x466b10;var _0x3f7e3d;(_0x3f7e3d=this[_0xb65f8a(0x1d4)])==null||_0x3f7e3d[_0xb65f8a(0x1f6)](),this[_0xb65f8a(0x1e4)][_0xb65f8a(0x1dd)](_0xb65f8a(0x26b));}['_beIdle'](){const _0xbd18fb=_0x466b10;var _0x52a3d5;this[_0xbd18fb(0x1e4)][_0xbd18fb(0x1dd)]('idle'),(_0x52a3d5=this[_0xbd18fb(0x1d4)])==null||_0x52a3d5['dispose'](),this[_0xbd18fb(0x1d4)]=null;}['_stopFollowing'](){const _0x20f90b=_0x466b10;var _0x1b118d;this[_0x20f90b(0x1e4)][_0x20f90b(0x1dd)]('not-following'),(_0x1b118d=this[_0x20f90b(0x1d4)])==null||_0x1b118d[_0x20f90b(0x1f6)]();}[_0x466b10(0x223)](_0x1457a9){const _0x6a1fde=_0x466b10;if([_0x6a1fde(0x26d),_0x6a1fde(0x221),_0x6a1fde(0x1f8)]['includes'](this[_0x6a1fde(0x236)])||!_0x1457a9['data'][_0x6a1fde(0x222)]||_0x1457a9[_0x6a1fde(0x276)][_0x6a1fde(0x222)]===this[_0x6a1fde(0x1f5)][_0x6a1fde(0x238)]())return;this[_0x6a1fde(0x236)]==='idle'&&this['_startFollowing']();const _0x490f4e=_0x1457a9[_0x6a1fde(0x276)]['operations'];Object[_0x6a1fde(0x1dc)](_0x490f4e)[_0x6a1fde(0x21f)](_0x51ea88=>{const _0x36017c=_0x6a1fde;this[_0x36017c(0x22e)][_0x36017c(0x20c)](_0x51ea88['id'],_0x51ea88[_0x36017c(0x24f)]?JSON[_0x36017c(0x22b)](_0x51ea88[_0x36017c(0x24f)]):null,{'fromCollab':!0x0});});}[_0x466b10(0x210)](){const _0x99c559=_0x466b10;var _0x273f2d;this[_0x99c559(0x1e4)][_0x99c559(0x1dd)](_0x99c559(0x1f8)),(_0x273f2d=this[_0x99c559(0x1d4)])==null||_0x273f2d['dispose']();}[_0x466b10(0x20a)](){const _0x1b8c42=_0x466b10;this['_status$'][_0x1b8c42(0x1dd)](_0x1b8c42(0x1fa)),this['_fetchOperations']();}};N=Y([_(0x2,_0x534aaa),_(0x3,_0xb810a1(L)),_(0x4,_0x462048)],N);function Le(){const _0x3f93f9=_0x466b10,_0x10611e=_0x57b7f1(S),_0x1816dc=_0x57b7f1(_0x2136d5),_0x276c7a=_0x2f47a8(()=>_0x1816dc[_0x3f93f9(0x268)](_0x5da7e1[_0x3f93f9(0x244)]),void 0x0,!0x1,[]),[_0x156f8b,_0x3e5743]=_0x34edd8(null),[_0x4b5522,_0x5283c2]=_0x34edd8(c[_0x3f93f9(0x26f)]),_0x223344=_0x42cbc5(null);return _0x2e4dde(()=>(_0x276c7a&&_0x10611e['getLiveShareCoordinator'](_0x276c7a[_0x3f93f9(0x23c)]())['then'](_0xb3fff9=>{const _0x2a6217=_0x3f93f9;_0x3e5743(_0xb3fff9),_0x223344[_0x2a6217(0x260)]=_0xb3fff9[_0x2a6217(0x250)]['subscribe'](_0x2f145d=>{_0x5283c2(_0x2f145d);});}),()=>{const _0x4d2de4=_0x3f93f9;var _0x3e5943;(_0x3e5943=_0x223344[_0x4d2de4(0x260)])==null||_0x3e5943['unsubscribe'](),_0x223344[_0x4d2de4(0x260)]=null;}),[_0x276c7a,_0x10611e]),_0x156f8b?_0x284072(_0x4d67da,{'align':_0x3f93f9(0x21b),'disabled':_0x4b5522===c['OFFLINE'],'className':_0x3f93f9(0x1ea),'overlay':_0x284072(Re,{'status':_0x4b5522,'coordinator':_0x156f8b}),'children':_0x284072(_0x3f93f9(0x1ef),{'className':_0x3b0bb0(_0x3f93f9(0x1f2),{'univer-cursor-not-allowed':_0x4b5522===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4b5522!==c[_0x3f93f9(0x1f7)]}),'type':_0x3f93f9(0x1ef),'children':_0x284072(W,{'className':_0x3f93f9(0x239)})})}):null;}function Re(_0x3a0ee2){const _0x26f4be=_0x466b10,{status:_0x41654e,coordinator:_0x3bf71f}=_0x3a0ee2;switch(_0x41654e){case c[_0x26f4be(0x26f)]:return _0x284072($e,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x1e0)]:return _0x284072(xe,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x24b)]:return _0x284072(Pe,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x1f7)]:return _0x284072(Te,{});case c[_0x26f4be(0x241)]:return _0x284072(Ae,{'coordinator':_0x3bf71f});default:return null;}}function $e(_0x3665d1){const _0x92b163=_0x466b10,{coordinator:_0x2ad800}=_0x3665d1;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x92b163(0x204),{'className':_0x92b163(0x1eb),'children':_0x92b163(0x1fb)}),_0x284072(_0x55525b,{'onClick':()=>_0x2ad800['tryStartPresenting'](),'children':_0x92b163(0x1df)})]});}function xe(_0x7fa473){const _0x20cb4c=_0x466b10,{coordinator:_0x4c3d9e}=_0x7fa473;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x20cb4c(0x204),{'className':_0x20cb4c(0x1eb),'children':_0x20cb4c(0x217)}),_0x284072(_0x55525b,{'onClick':()=>_0x4c3d9e[_0x20cb4c(0x228)](),'children':_0x20cb4c(0x21a)})]});}function Pe(_0x5839f4){const _0x5ce9d5=_0x466b10,{coordinator:_0x1e8ea5}=_0x5839f4;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x5ce9d5(0x204),{'className':_0x5ce9d5(0x1eb),'children':_0x5ce9d5(0x272)}),_0x284072(_0x55525b,{'variant':_0x5ce9d5(0x1fe),'onClick':()=>_0x1e8ea5[_0x5ce9d5(0x1e6)](),'children':'Start\x20following'})]});}function Ae(_0x2a2a29){const _0x20e38d=_0x466b10,{coordinator:_0x2f847f}=_0x2a2a29;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x20e38d(0x204),{'className':_0x20e38d(0x1eb),'children':_0x20e38d(0x259)}),_0x284072(_0x55525b,{'variant':_0x20e38d(0x1e7),'onClick':()=>_0x2f847f[_0x20e38d(0x256)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x404097=_0x466b10;return _0x284072(_0x3f7b64,{'children':_0x404097(0x243)});}var Fe=Object[_0x466b10(0x24d)],He=(_0x3af4a8,_0x54c977,_0x45f71f,_0x18468e)=>{const _0x59dd6d=_0x466b10;for(var _0x482524=_0x18468e>0x1?void 0x0:_0x18468e?Fe(_0x54c977,_0x45f71f):_0x54c977,_0x43c9fc=_0x3af4a8[_0x59dd6d(0x225)]-0x1,_0x502c84;_0x43c9fc>=0x0;_0x43c9fc--)(_0x502c84=_0x3af4a8[_0x43c9fc])&&(_0x482524=_0x502c84(_0x482524)||_0x482524);return _0x482524;},A=(_0x35aba6,_0xf7c588)=>(_0x35d55c,_0x2aa1df)=>_0xf7c588(_0x35d55c,_0x2aa1df,_0x35aba6);let m=class extends _0x420bef{constructor(_0x404c5e,_0x1dc60f){const _0x212348=_0x466b10;super(),this[_0x212348(0x231)]=_0x404c5e,this['_uiPartsService']=_0x1dc60f,this[_0x212348(0x1e1)]();}[_0x466b10(0x1e1)](){const _0x15d5d9=_0x466b10;this[_0x15d5d9(0x237)](this[_0x15d5d9(0x220)]['registerComponent'](_0x325241[_0x15d5d9(0x1f0)],()=>_0x5e2acd(Le,this[_0x15d5d9(0x231)])));}};m=He([A(0x0,_0xb810a1(_0x42925d)),A(0x1,_0x13733b)],m);const ye=_0x466b10(0x262),T={};var Ue=Object[_0x466b10(0x24d)],Ve=(_0x46324b,_0x6736d6,_0x582f21,_0x3e0ae3)=>{const _0x24f45b=_0x466b10;for(var _0x35e3c2=_0x3e0ae3>0x1?void 0x0:_0x3e0ae3?Ue(_0x6736d6,_0x582f21):_0x6736d6,_0x2e3ba0=_0x46324b[_0x24f45b(0x225)]-0x1,_0xf878c0;_0x2e3ba0>=0x0;_0x2e3ba0--)(_0xf878c0=_0x46324b[_0x2e3ba0])&&(_0x35e3c2=_0xf878c0(_0x35e3c2)||_0x35e3c2);return _0x35e3c2;},je=(_0x5d8027,_0x4b18db)=>(_0x1c10e9,_0x8d8840)=>_0x4b18db(_0x1c10e9,_0x8d8840,_0x5d8027);let I=class extends _0x420bef{constructor(_0x1331c2){const _0x199c97=_0x466b10;super(),this[_0x199c97(0x224)]=_0x1331c2,this[_0x199c97(0x255)]();}[_0x466b10(0x255)](){[_0x54dcf4['id'],_0x59b67c['id'],_0x1cd2eb['id']]['forEach'](_0x208667=>{const _0xbbf640=_0x2fc8;this[_0xbbf640(0x237)](this['_liveShareService'][_0xbbf640(0x1e2)](_0x208667));});}};I=Ve([je(0x0,_0xb810a1(L))],I);var Me=Object[_0x466b10(0x264)],ke=Object[_0x466b10(0x24d)],Ge=(_0x2721e2,_0x3f4edc,_0x421d52)=>_0x3f4edc in _0x2721e2?Me(_0x2721e2,_0x3f4edc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x421d52}):_0x2721e2[_0x3f4edc]=_0x421d52,We=(_0x4bc93a,_0x3dba69,_0x577d56,_0x4a8b14)=>{const _0x462c7c=_0x466b10;for(var _0x3a2089=_0x4a8b14>0x1?void 0x0:_0x4a8b14?ke(_0x3dba69,_0x577d56):_0x3dba69,_0x293090=_0x4bc93a[_0x462c7c(0x225)]-0x1,_0x577587;_0x293090>=0x0;_0x293090--)(_0x577587=_0x4bc93a[_0x293090])&&(_0x3a2089=_0x577587(_0x3a2089)||_0x3a2089);return _0x3a2089;},F=(_0x96b8f6,_0x27683f)=>(_0x30d0bc,_0x3f9793)=>_0x27683f(_0x30d0bc,_0x3f9793,_0x96b8f6),B=(_0x3c5f67,_0x36697a,_0x629966)=>Ge(_0x3c5f67,typeof _0x36697a!=_0x466b10(0x1d9)?_0x36697a+'':_0x36697a,_0x629966);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x1ab38a{constructor(_0x595ff1=T,_0xe2e66f,_0x27027b){const _0x1b79f1=_0x466b10;super(),this['_config']=_0x595ff1,this[_0x1b79f1(0x231)]=_0xe2e66f,this['_configService']=_0x27027b;const {..._0x1ca6ef}=_0x153f93({},T,this[_0x1b79f1(0x1f4)]);this[_0x1b79f1(0x251)][_0x1b79f1(0x26e)](ye,_0x1ca6ef);}[_0x466b10(0x1fc)](){const _0x10f164=_0x466b10;_0x40c418(this[_0x10f164(0x231)],_0x26a6d8([[L],[S],[I],[m]],this[_0x10f164(0x1f4)][_0x10f164(0x1ec)])),_0x321cc3(this[_0x10f164(0x231)],[[I]]);}[_0x466b10(0x230)](){const _0x46d3c8=_0x466b10;_0x321cc3(this[_0x46d3c8(0x231)],[[m]]);}};B(b,_0x466b10(0x26a),_0x5da7e1[_0x466b10(0x24e)]),B(b,_0x466b10(0x235),Ye),b=We([_0x426f35(_0x27fd59),F(0x1,_0xb810a1(_0x42925d)),F(0x2,_0x534aaa)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x598157=_0x3f5c;(function(_0x539e72,_0x3c0536){const _0x391e3f=_0x3f5c,_0x385aa0=_0x539e72();while(!![]){try{const _0x3b0d24=-parseInt(_0x391e3f(0x12c))/0x1+parseInt(_0x391e3f(0x130))/0x2*(parseInt(_0x391e3f(0x123))/0x3)+parseInt(_0x391e3f(0x11c))/0x4+-parseInt(_0x391e3f(0x135))/0x5+parseInt(_0x391e3f(0x13a))/0x6*(-parseInt(_0x391e3f(0x12e))/0x7)+-parseInt(_0x391e3f(0x11f))/0x8+parseInt(_0x391e3f(0x13b))/0x9;if(_0x3b0d24===_0x3c0536)break;else _0x385aa0['push'](_0x385aa0['shift']());}catch(_0x18b068){_0x385aa0['push'](_0x385aa0['shift']());}}}(_0x236a,0xcee0d));import{LiveShareController as _0x4e84d9,LiveShareStatus as _0x46cd90}from'@univerjs-pro/live-share';function _0x3f5c(_0x1a91c0,_0x34613d){const _0x236aa1=_0x236a();return _0x3f5c=function(_0x3f5c0a,_0x4246ad){_0x3f5c0a=_0x3f5c0a-0x11c;let _0x533d97=_0x236aa1[_0x3f5c0a];return _0x533d97;},_0x3f5c(_0x1a91c0,_0x34613d);}function _0x236a(){const _0x4f7d1d=['No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startRow','getLiveShareStatus','_initialize','getUnitId','getId','PRESENTING','106057vPOLSO','LiveShareStatusEnum','42hEourS','extend','99332NiakLU','get','getActiveSheet','getStatus','getSheetId','6184030uOLMuh','getLiveShareCoordinatorSync','startColumn','_injector','stopFollowing','860094JfZtSm','18941310NvZurF','3201824KvWdYV','stopPresenting','startFollowing','29712HozqaU','getActiveWorkbook','getRenderById','syncExecuteCommand','9pHWsKs'];_0x236a=function(){return _0x4f7d1d;};return _0x236a();}import{IRenderManagerService as _0x3d767c}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x18b6d3}from'@univerjs/sheets';import{SetScrollOperation as _0x44a959}from'@univerjs/sheets-ui';import{FRange as _0x16a75b}from'@univerjs/sheets/facade';import{FUniver as _0x2f59de,FEnum as _0x2ba21d}from'@univerjs/core/facade';class I extends _0x16a75b{[_0x598157(0x128)](_0x1b3a2b,_0x17bbf5,_0x42ced5,_0x3da8c7,_0x29f17c){const _0x146afc=_0x598157,_0x4ba5c6=_0x1b3a2b[_0x146afc(0x131)](_0x4e84d9),_0x12c11e=_0x1b3a2b['get'](_0x3d767c),_0x426400=_0x17bbf5[_0x146afc(0x129)](),_0x301ece=_0x17bbf5[_0x146afc(0x132)](),_0x2bee39=_0x4ba5c6[_0x146afc(0x136)](_0x426400);(_0x2bee39==null?void 0x0:_0x2bee39[_0x146afc(0x133)]())!==_0x46cd90[_0x146afc(0x12b)]||(_0x42ced5[_0x146afc(0x134)]()!==_0x301ece[_0x146afc(0x134)]()&&this['_commandService']['executeCommand'](_0x18b6d3['id'],{'unitId':_0x426400,'subUnitId':_0x42ced5['getSheetId']()}),!_0x12c11e[_0x146afc(0x121)](_0x426400))||_0x29f17c[_0x146afc(0x122)](_0x44a959['id'],{'unitId':_0x17bbf5[_0x146afc(0x129)](),'sheetId':_0x42ced5['getSheetId'](),'sheetViewStartRow':_0x3da8c7[_0x146afc(0x126)],'sheetViewStartColumn':_0x3da8c7[_0x146afc(0x137)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x16a75b[_0x598157(0x12f)](I);class m extends _0x2f59de{[_0x598157(0x127)](){const _0x4910ed=_0x598157;var _0x4f026e,_0x254ac9;const _0x4e41fa=this[_0x4910ed(0x138)][_0x4910ed(0x131)](_0x4e84d9),_0xd28915=(_0x4f026e=this['getActiveWorkbook']())==null?void 0x0:_0x4f026e['getId']();if(!_0xd28915)throw new Error(_0x4910ed(0x124));const _0x1587c0=_0x4e41fa[_0x4910ed(0x136)](_0xd28915);return(_0x254ac9=_0x1587c0==null?void 0x0:_0x1587c0['getStatus']())!=null?_0x254ac9:_0x46cd90['IDLE'];}[_0x598157(0x11e)](){const _0x289b91=_0x598157;var _0x268a96;const _0x21e29e=this[_0x289b91(0x138)]['get'](_0x4e84d9),_0x43c1cb=(_0x268a96=this[_0x289b91(0x120)]())==null?void 0x0:_0x268a96['getId']();if(!_0x43c1cb)throw new Error(_0x289b91(0x124));const _0x53a4e3=_0x21e29e[_0x289b91(0x136)](_0x43c1cb);if(!_0x53a4e3)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x53a4e3[_0x289b91(0x11e)]();}['stopFollowing'](){const _0x26525d=_0x598157;var _0x42c114;const _0x37db52=this[_0x26525d(0x138)][_0x26525d(0x131)](_0x4e84d9),_0x22e94a=(_0x42c114=this[_0x26525d(0x120)]())==null?void 0x0:_0x42c114[_0x26525d(0x12a)]();if(!_0x22e94a)throw new Error(_0x26525d(0x124));const _0x243cd9=_0x37db52[_0x26525d(0x136)](_0x22e94a);if(!_0x243cd9)throw new Error(_0x26525d(0x125));_0x243cd9[_0x26525d(0x139)]();}['startPresenting'](){const _0x2885ad=_0x598157;var _0x3e2fcb;const _0x4105da=this[_0x2885ad(0x138)][_0x2885ad(0x131)](_0x4e84d9),_0x180005=(_0x3e2fcb=this[_0x2885ad(0x120)]())==null?void 0x0:_0x3e2fcb[_0x2885ad(0x12a)]();if(!_0x180005)throw new Error(_0x2885ad(0x124));const _0x435e4e=_0x4105da[_0x2885ad(0x136)](_0x180005);if(!_0x435e4e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x435e4e['tryStartPresenting']();}[_0x598157(0x11d)](){const _0x5732cd=_0x598157;var _0xe6b558;const _0x5f32c7=this[_0x5732cd(0x138)][_0x5732cd(0x131)](_0x4e84d9),_0x79191e=(_0xe6b558=this[_0x5732cd(0x120)]())==null?void 0x0:_0xe6b558[_0x5732cd(0x12a)]();if(!_0x79191e)throw new Error('No\x20active\x20workbook\x20found.');const _0x585a04=_0x5f32c7[_0x5732cd(0x136)](_0x79191e);if(!_0x585a04)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x585a04['stopPresenting']();}}_0x2f59de['extend'](m);class C extends _0x2ba21d{get[_0x598157(0x12d)](){return _0x46cd90;}}_0x2ba21d[_0x598157(0x12f)](C);
1
+ const _0x2c8835=_0x446d;(function(_0x335d8a,_0x53f694){const _0x47e140=_0x446d,_0x15efdb=_0x335d8a();while(!![]){try{const _0x3609b8=-parseInt(_0x47e140(0x166))/0x1+parseInt(_0x47e140(0x167))/0x2*(-parseInt(_0x47e140(0x156))/0x3)+parseInt(_0x47e140(0x16a))/0x4+-parseInt(_0x47e140(0x14f))/0x5*(-parseInt(_0x47e140(0x14b))/0x6)+parseInt(_0x47e140(0x160))/0x7+-parseInt(_0x47e140(0x15c))/0x8+-parseInt(_0x47e140(0x151))/0x9*(-parseInt(_0x47e140(0x14c))/0xa);if(_0x3609b8===_0x53f694)break;else _0x15efdb['push'](_0x15efdb['shift']());}catch(_0x1f8464){_0x15efdb['push'](_0x15efdb['shift']());}}}(_0x3d75,0x1d5c8));import{LiveShareController as _0x241c67,LiveShareStatus as _0x7a9635}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4c8f29}from'@univerjs/engine-render';function _0x446d(_0x19a8ce,_0x52fd48){const _0x3d7580=_0x3d75();return _0x446d=function(_0x446d79,_0x37b2b0){_0x446d79=_0x446d79-0x14b;let _0x407986=_0x3d7580[_0x446d79];return _0x407986;},_0x446d(_0x19a8ce,_0x52fd48);}import{SetWorksheetActiveOperation as _0xe8d4e8}from'@univerjs/sheets';import{SetScrollOperation as _0x26191c}from'@univerjs/sheets-ui';import{FRange as _0x52721d}from'@univerjs/sheets/facade';import{FUniver as _0x352c42,FEnum as _0x514a6e}from'@univerjs/core/facade';class I extends _0x52721d{[_0x2c8835(0x165)](_0x4960e3,_0x24e408,_0x29140d,_0x3fa3ab,_0x243dac){const _0x4b0806=_0x2c8835,_0x1d6918=_0x4960e3[_0x4b0806(0x15e)](_0x241c67),_0x3940d7=_0x4960e3[_0x4b0806(0x15e)](_0x4c8f29),_0x3e1394=_0x24e408['getUnitId'](),_0x3c360d=_0x24e408[_0x4b0806(0x153)](),_0x29f215=_0x1d6918[_0x4b0806(0x154)](_0x3e1394);(_0x29f215==null?void 0x0:_0x29f215[_0x4b0806(0x16b)]())!==_0x7a9635[_0x4b0806(0x150)]||(_0x29140d[_0x4b0806(0x152)]()!==_0x3c360d['getSheetId']()&&this[_0x4b0806(0x15b)]['executeCommand'](_0xe8d4e8['id'],{'unitId':_0x3e1394,'subUnitId':_0x29140d['getSheetId']()}),!_0x3940d7[_0x4b0806(0x14d)](_0x3e1394))||_0x243dac[_0x4b0806(0x15a)](_0x26191c['id'],{'unitId':_0x24e408['getUnitId'](),'sheetId':_0x29140d[_0x4b0806(0x152)](),'sheetViewStartRow':_0x3fa3ab[_0x4b0806(0x15f)],'sheetViewStartColumn':_0x3fa3ab[_0x4b0806(0x159)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x52721d[_0x2c8835(0x169)](I);class m extends _0x352c42{[_0x2c8835(0x14e)](){const _0x3e4837=_0x2c8835;var _0xd08e42,_0x1ceaba;const _0x3a40f9=this['_injector'][_0x3e4837(0x15e)](_0x241c67),_0x5ac724=(_0xd08e42=this[_0x3e4837(0x157)]())==null?void 0x0:_0xd08e42[_0x3e4837(0x155)]();if(!_0x5ac724)throw new Error(_0x3e4837(0x163));const _0x52ea62=_0x3a40f9[_0x3e4837(0x154)](_0x5ac724);return(_0x1ceaba=_0x52ea62==null?void 0x0:_0x52ea62[_0x3e4837(0x16b)]())!=null?_0x1ceaba:_0x7a9635[_0x3e4837(0x161)];}[_0x2c8835(0x158)](){const _0x584c95=_0x2c8835;var _0x2fe493;const _0x3bbc39=this[_0x584c95(0x168)][_0x584c95(0x15e)](_0x241c67),_0x1b29c4=(_0x2fe493=this[_0x584c95(0x157)]())==null?void 0x0:_0x2fe493[_0x584c95(0x155)]();if(!_0x1b29c4)throw new Error('No\x20active\x20workbook\x20found.');const _0x432bc6=_0x3bbc39[_0x584c95(0x154)](_0x1b29c4);if(!_0x432bc6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x432bc6[_0x584c95(0x158)]();}[_0x2c8835(0x16c)](){const _0x1cb8b8=_0x2c8835;var _0x5797c2;const _0x40e57c=this['_injector'][_0x1cb8b8(0x15e)](_0x241c67),_0x5d824d=(_0x5797c2=this[_0x1cb8b8(0x157)]())==null?void 0x0:_0x5797c2[_0x1cb8b8(0x155)]();if(!_0x5d824d)throw new Error(_0x1cb8b8(0x163));const _0x78ed96=_0x40e57c[_0x1cb8b8(0x154)](_0x5d824d);if(!_0x78ed96)throw new Error(_0x1cb8b8(0x164));_0x78ed96[_0x1cb8b8(0x16c)]();}[_0x2c8835(0x15d)](){const _0x2bd584=_0x2c8835;var _0x4f54a5;const _0x159439=this[_0x2bd584(0x168)][_0x2bd584(0x15e)](_0x241c67),_0x100c86=(_0x4f54a5=this[_0x2bd584(0x157)]())==null?void 0x0:_0x4f54a5[_0x2bd584(0x155)]();if(!_0x100c86)throw new Error('No\x20active\x20workbook\x20found.');const _0x5a539e=_0x159439[_0x2bd584(0x154)](_0x100c86);if(!_0x5a539e)throw new Error(_0x2bd584(0x164));_0x5a539e['tryStartPresenting']();}[_0x2c8835(0x16d)](){const _0x4b554b=_0x2c8835;var _0x11dcbd;const _0x158adc=this[_0x4b554b(0x168)][_0x4b554b(0x15e)](_0x241c67),_0x677b7b=(_0x11dcbd=this['getActiveWorkbook']())==null?void 0x0:_0x11dcbd[_0x4b554b(0x155)]();if(!_0x677b7b)throw new Error(_0x4b554b(0x163));const _0x1bdfe0=_0x158adc[_0x4b554b(0x154)](_0x677b7b);if(!_0x1bdfe0)throw new Error(_0x4b554b(0x164));_0x1bdfe0[_0x4b554b(0x16d)]();}}_0x352c42['extend'](m);class C extends _0x514a6e{get[_0x2c8835(0x162)](){return _0x7a9635;}}_0x514a6e[_0x2c8835(0x169)](C);function _0x3d75(){const _0x4e361a=['extend','954812JpYvuM','getStatus','stopFollowing','stopPresenting','246ukYLEZ','26230JMkrbO','getRenderById','getLiveShareStatus','3330mVANJs','PRESENTING','81WHbObp','getSheetId','getActiveSheet','getLiveShareCoordinatorSync','getId','3DCUzcf','getActiveWorkbook','startFollowing','startColumn','syncExecuteCommand','_commandService','876144EwMytE','startPresenting','get','startRow','1681302HAPfxX','IDLE','LiveShareStatusEnum','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_initialize','189514nFCYip','221012tiivii','_injector'];_0x3d75=function(){return _0x4e361a;};return _0x3d75();}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x373afb=_0xfdad;(function(_0x331313,_0x105631){const _0xbae83=_0xfdad,_0x5c5324=_0x331313();while(!![]){try{const _0x4abc6b=parseInt(_0xbae83(0x9a))/0x1+-parseInt(_0xbae83(0xa1))/0x2*(-parseInt(_0xbae83(0xb8))/0x3)+-parseInt(_0xbae83(0xea))/0x4*(parseInt(_0xbae83(0x11f))/0x5)+parseInt(_0xbae83(0x12c))/0x6*(-parseInt(_0xbae83(0x12d))/0x7)+parseInt(_0xbae83(0xec))/0x8+parseInt(_0xbae83(0xf8))/0x9*(-parseInt(_0xbae83(0xf7))/0xa)+-parseInt(_0xbae83(0xbe))/0xb*(parseInt(_0xbae83(0x11c))/0xc);if(_0x4abc6b===_0x105631)break;else _0x5c5324['push'](_0x5c5324['shift']());}catch(_0x779218){_0x5c5324['push'](_0x5c5324['shift']());}}}(_0x2c6a,0xad834));var J=Object[_0x373afb(0xca)],K=(_0x23cba8,_0x2013d3,_0x42f183)=>_0x2013d3 in _0x23cba8?J(_0x23cba8,_0x2013d3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42f183}):_0x23cba8[_0x2013d3]=_0x42f183,u=(_0x1860e1,_0x27c00e,_0x5cf248)=>K(_0x1860e1,typeof _0x27c00e!=_0x373afb(0x119)?_0x27c00e+'':_0x27c00e,_0x5cf248);import{Disposable as _0x2fe247,toDisposable as _0x1ac75e,IUniverInstanceService as _0x34e9fa,Inject as _0x44b869,Injector as _0x9ae918,IConfigService as _0x4f1855,ICommandService as _0x4c5df3,RxDisposable as _0x372ae2,UniverInstanceType as _0x3279a2,DisposableCollection as _0x4e5770,CommandType as _0x3d9b5a,DependentOn as _0xacdf87,Plugin as _0x31b36f,merge as _0x1066e5,registerDependencies as _0x1e94e5,mergeOverrideWithDependencies as _0xef3678,touchDependencies as _0x495760}from'@univerjs/core';import{useDependency as _0x228f76,useObservable as _0x4b62b2,IUIPartsService as _0x19674a,BuiltInUIPart as _0x50235b,connectInjector as _0xd9524e}from'@univerjs/ui';import{jsx as _0x38bc83,jsxs as _0x5c6850,Fragment as _0x3d4178}from'react/jsx-runtime';import{Dropdown as _0x425cde,clsx as _0x1f887d,Button as _0x4c4b88}from'@univerjs/design';import{useRef as _0x4fde8f,createElement as _0x564b18,forwardRef as _0x47812d,useState as _0x348257,useEffect as _0x56a4e1}from'react';function _0xfdad(_0x1fb984,_0xc98ef4){const _0x2c6a67=_0x2c6a();return _0xfdad=function(_0xfdada9,_0x3439d2){_0xfdada9=_0xfdada9-0x8b;let _0x50407c=_0x2c6a67[_0xfdada9];return _0x50407c;},_0xfdad(_0x1fb984,_0xc98ef4);}import{CollaborationEvent as _0x8c2ef9,parseProtocolChangeset as _0x1b1fac}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x386d31,SessionStatus as _0x2b61a0,UniverCollaborationClientPlugin as _0x2b2af9}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3e4c4f,SetWorksheetActiveOperation as _0x573678}from'@univerjs/sheets';import{BehaviorSubject as _0x59b090,Subject as _0x241eea}from'rxjs';import{takeUntil as _0x1ece35,throttleTime as _0x8122a8}from'rxjs/operators';import{SetZoomRatioOperation as _0x134bb0,SetScrollOperation as _0x355a6f}from'@univerjs/sheets-ui';function k({ref:_0x36d23e,..._0x24625c}){const _0x3df57a=_0x373afb,{icon:_0x5b67e1,id:_0x72f218,className:_0x338231,extend:_0x4f1020,..._0x1a6576}=_0x24625c,_0xa1e11c=(_0x3df57a(0x121)+_0x72f218+'\x20'+(_0x338231||''))[_0x3df57a(0xc1)](),_0x35a027=_0x4fde8f('_'+Oe());return G(_0x5b67e1,''+_0x72f218,{'defIds':_0x5b67e1[_0x3df57a(0x124)],'idSuffix':_0x35a027[_0x3df57a(0xef)]},{'ref':_0x36d23e,'className':_0xa1e11c,..._0x1a6576},_0x4f1020);}function G(_0x5245ff,_0x468b5f,_0x1bce61,_0x50066b,_0x8dbfeb){const _0x48cfa7=_0x373afb;return _0x564b18(_0x5245ff[_0x48cfa7(0xfa)],{'key':_0x468b5f,...be(_0x5245ff,_0x1bce61,_0x8dbfeb),..._0x50066b},(Ee(_0x5245ff,_0x1bce61)[_0x48cfa7(0xad)]||[])[_0x48cfa7(0x114)]((_0x2ff82e,_0x408c5f)=>G(_0x2ff82e,_0x468b5f+'-'+_0x5245ff['tag']+'-'+_0x408c5f,_0x1bce61,void 0x0,_0x8dbfeb)));}function be(_0x4dc6cc,_0x473a0d,_0x2d75c5){const _0x1dec6b=_0x373afb,_0x1c7563={..._0x4dc6cc['attrs']};_0x2d75c5!=null&&_0x2d75c5[_0x1dec6b(0x95)]&&_0x1c7563[_0x1dec6b(0x118)]===_0x1dec6b(0x95)&&(_0x1c7563['fill']=_0x2d75c5[_0x1dec6b(0x95)]),_0x4dc6cc[_0x1dec6b(0xfa)]===_0x1dec6b(0xe3)&&_0x1c7563['id']&&(_0x1c7563['id']=_0x1c7563['id']+_0x473a0d[_0x1dec6b(0x113)]),Object[_0x1dec6b(0xf9)](_0x1c7563)[_0x1dec6b(0xa2)](([_0x312f9a,_0x461259])=>{const _0x4d45d2=_0x1dec6b;_0x312f9a===_0x4d45d2(0xe3)&&typeof _0x461259=='string'&&(_0x1c7563[_0x312f9a]=_0x461259['replace'](/url\(#(.*)\)/,_0x4d45d2(0x9e)+_0x473a0d['idSuffix']+')'));});const {defIds:_0x2994f7}=_0x473a0d;return!_0x2994f7||_0x2994f7['length']===0x0||(_0x4dc6cc[_0x1dec6b(0xfa)]==='use'&&_0x1c7563[_0x1dec6b(0xf2)]&&(_0x1c7563[_0x1dec6b(0xf2)]=_0x1c7563[_0x1dec6b(0xf2)]+_0x473a0d[_0x1dec6b(0x113)]),Object[_0x1dec6b(0xf9)](_0x1c7563)[_0x1dec6b(0xa2)](([_0x4fcb71,_0x63504b])=>{const _0x17ed05=_0x1dec6b;typeof _0x63504b==_0x17ed05(0xb9)&&(_0x1c7563[_0x4fcb71]=_0x63504b['replace'](/url\(#(.*)\)/,'url(#$1'+_0x473a0d[_0x17ed05(0x113)]+')'));})),_0x1c7563;}function Ee(_0x2b60a4,_0x3af416){const _0x356020=_0x373afb;var _0x5baccd;const {defIds:_0x41fa5c}=_0x3af416;return!_0x41fa5c||_0x41fa5c[_0x356020(0xa7)]===0x0?_0x2b60a4:_0x2b60a4[_0x356020(0xfa)]===_0x356020(0xc3)&&((_0x5baccd=_0x2b60a4[_0x356020(0xad)])!=null&&_0x5baccd[_0x356020(0xa7)])?{..._0x2b60a4,'children':_0x2b60a4[_0x356020(0xad)][_0x356020(0x114)](_0x24d51b=>typeof _0x24d51b['attrs']['id']==_0x356020(0xb9)&&_0x41fa5c&&_0x41fa5c[_0x356020(0x111)](_0x24d51b[_0x356020(0x100)]['id'])?{..._0x24d51b,'attrs':{..._0x24d51b['attrs'],'id':_0x24d51b[_0x356020(0x100)]['id']+_0x3af416[_0x356020(0x113)]}}:_0x24d51b)}:_0x2b60a4;}function Oe(){const _0x30e88e=_0x373afb;return Math[_0x30e88e(0xd0)]()['toString'](0x24)[_0x30e88e(0x9f)](0x2,0x8);}k[_0x373afb(0xd4)]='UniverIcon';const we={'tag':_0x373afb(0xb3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x373afb(0x10f),'viewBox':_0x373afb(0xaa),'width':_0x373afb(0xe4),'height':_0x373afb(0xe4)},'children':[{'tag':_0x373afb(0x115),'attrs':{'fill':_0x373afb(0x102),'d':_0x373afb(0xab)}},{'tag':_0x373afb(0x115),'attrs':{'fill':_0x373afb(0x102),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x373afb(0xa0),'clipRule':_0x373afb(0xa0)}}]},W=_0x47812d(function(_0x5325a4,_0x42d077){const _0x16bc43=_0x373afb;return _0x564b18(k,Object[_0x16bc43(0x12e)]({},_0x5325a4,{'id':_0x16bc43(0x8d),'ref':_0x42d077,'icon':we}));});W[_0x373afb(0xd4)]='LiveShareIcon';class L extends _0x2fe247{constructor(){const _0x131bcf=_0x373afb;super(...arguments),u(this,_0x131bcf(0x128),new Set()),u(this,_0x131bcf(0x12a),new Set());}['registerSharedOperation'](_0x1ca56e){const _0xd1e286=_0x373afb;return this[_0xd1e286(0x128)][_0xd1e286(0x11e)](_0x1ca56e),_0x1ac75e(()=>this[_0xd1e286(0x128)]['delete'](_0x1ca56e));}[_0x373afb(0xdb)](_0x2817e1){const _0xfe4ad1=_0x373afb;return this[_0xfe4ad1(0x12a)]['add'](_0x2817e1),_0x1ac75e(()=>this[_0xfe4ad1(0x12a)][_0xfe4ad1(0xfe)](_0x2817e1));}[_0x373afb(0x99)](_0x2dff99){const _0x5864da=_0x373afb;return this[_0x5864da(0x128)][_0x5864da(0xc4)](_0x2dff99);}[_0x373afb(0xac)](_0x2bfd8c){const _0x135b08=_0x373afb;return Array['from'](this[_0x135b08(0x12a)])[_0x135b08(0x114)](_0x15189e=>_0x15189e(_0x2bfd8c));}}var Ne=Object[_0x373afb(0xf5)],Y=(_0x4957b1,_0x28b4b8,_0x50ed55,_0x4253b4)=>{const _0x4518ef=_0x373afb;for(var _0x276a73=_0x4253b4>0x1?void 0x0:_0x4253b4?Ne(_0x28b4b8,_0x50ed55):_0x28b4b8,_0x12c417=_0x4957b1[_0x4518ef(0xa7)]-0x1,_0x1f0ef5;_0x12c417>=0x0;_0x12c417--)(_0x1f0ef5=_0x4957b1[_0x12c417])&&(_0x276a73=_0x1f0ef5(_0x276a73)||_0x276a73);return _0x276a73;},_=(_0x4ac365,_0x3f5a96)=>(_0x559595,_0x36d3c0)=>_0x3f5a96(_0x559595,_0x36d3c0,_0x4ac365);let S=class extends _0x372ae2{constructor(_0xf02443,_0x498446,_0x10a0d8){const _0x1c1a31=_0x373afb;super(),u(this,_0x1c1a31(0xc7),new Map()),(this[_0x1c1a31(0xcc)]=_0xf02443,this['_injector']=_0x498446,this['_collabSessionService']=_0x10a0d8,this[_0x1c1a31(0xf4)]());}async[_0x373afb(0xcb)](_0x1120f6){const _0x593acc=_0x373afb;return this['_entities']['has'](_0x1120f6)||await this[_0x593acc(0x8b)](_0x1120f6),this['_entities'][_0x593acc(0x110)](_0x1120f6);}['getLiveShareCoordinatorSync'](_0x35ca1c){const _0x4901f1=_0x373afb;var _0x41c180;return(_0x41c180=this[_0x4901f1(0xc7)]['get'](_0x35ca1c))!=null?_0x41c180:null;}['_init'](){const _0x436b2e=_0x373afb;this[_0x436b2e(0xcc)][_0x436b2e(0xc8)](_0x3279a2['UNIVER_SHEET'])[_0x436b2e(0x96)](_0x1ece35(this[_0x436b2e(0xc2)]))[_0x436b2e(0xb1)](async _0x1092c6=>{const _0x404ecf=_0x436b2e,_0x520e30=_0x1092c6[_0x404ecf(0xa4)]();this[_0x404ecf(0xc7)][_0x404ecf(0xc4)](_0x520e30)||this['_startLiveShareCoordinator'](_0x520e30);}),this[_0x436b2e(0xcc)][_0x436b2e(0x10d)](_0x3279a2['UNIVER_SHEET'])[_0x436b2e(0x96)](_0x1ece35(this[_0x436b2e(0xc2)]))['subscribe'](_0x442fc3=>{const _0x182aee=_0x436b2e,_0xb90867=_0x442fc3['getUnitId'](),_0x178032=this[_0x182aee(0xc7)][_0x182aee(0x110)](_0xb90867);_0x178032==null||_0x178032[_0x182aee(0xd7)]();});}async['_startLiveShareCoordinator'](_0x5444cb){const _0x404059=_0x373afb,_0x450720=await this['_collabSessionService'][_0x404059(0x92)](_0x5444cb),_0x46ae15=this['_injector'][_0x404059(0xeb)](N,_0x5444cb,_0x450720);return _0x46ae15[_0x404059(0x123)](),this['_entities'][_0x404059(0x116)](_0x5444cb,_0x46ae15),_0x46ae15;}};S=Y([_(0x0,_0x34e9fa),_(0x1,_0x44b869(_0x9ae918)),_(0x2,_0x44b869(_0x386d31))],S);var c=(_0x30a0bd=>(_0x30a0bd[_0x373afb(0x132)]='offline',_0x30a0bd['IDLE']='idle',_0x30a0bd[_0x373afb(0xbf)]=_0x373afb(0x10a),_0x30a0bd['NOT_FOLLOWING']=_0x373afb(0xf0),_0x30a0bd[_0x373afb(0x126)]=_0x373afb(0x12b),_0x30a0bd))(c||{});const Ce=_0x373afb(0xd9),De=0xc8;let N=class extends _0x372ae2{constructor(_0x1e9468,_0xec6728,_0x255ffa,_0x389a45,_0x13be00){const _0x14e226=_0x373afb;super(),u(this,'_status$',new _0x59b090('idle')),u(this,'status$',this[_0x14e226(0x134)][_0x14e226(0x130)]()),u(this,_0x14e226(0xf4),!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this['_unitID']=_0x1e9468,this[_0x14e226(0x107)]=_0xec6728,this[_0x14e226(0x10c)]=_0x255ffa,this[_0x14e226(0xbd)]=_0x389a45,this[_0x14e226(0xa3)]=_0x13be00);}get[_0x373afb(0xdc)](){const _0x5dfdf9=_0x373afb;return this[_0x5dfdf9(0x134)][_0x5dfdf9(0xff)]();}[_0x373afb(0xd7)](){const _0x146ec8=_0x373afb;var _0x722907;(_0x722907=this[_0x146ec8(0xd3)])==null||_0x722907[_0x146ec8(0xd7)](),this[_0x146ec8(0x134)]['next'](_0x146ec8(0x97)),this['_status$'][_0x146ec8(0x11a)]();}['getStatus'](){return this['_status'];}[_0x373afb(0x123)](){const _0x347c15=_0x373afb;this[_0x347c15(0xf4)]||(this[_0x347c15(0xf4)]=!0x0,this[_0x347c15(0x107)][_0x347c15(0x125)]['pipe'](_0x1ece35(this[_0x347c15(0xc2)]))[_0x347c15(0xb1)](_0x531712=>{const _0x18bdb4=_0x347c15;switch(_0x531712){case _0x2b61a0[_0x18bdb4(0x132)]:this[_0x18bdb4(0xf1)]();break;case _0x2b61a0[_0x18bdb4(0xee)]:this[_0x18bdb4(0xc6)]();break;}}),this[_0x347c15(0x107)][_0x347c15(0xe5)][_0x347c15(0x96)](_0x1ece35(this[_0x347c15(0xc2)]))[_0x347c15(0xb1)](_0x731256=>{const _0x59555a=_0x347c15,{eventID:_0x32068e}=_0x731256;switch(_0x32068e){case _0x8c2ef9['LIVESHARE_NEW_HOST']:this[_0x59555a(0x11b)](_0x731256);break;case _0x8c2ef9[_0x59555a(0xb4)]:this[_0x59555a(0xbc)](_0x731256);break;case _0x8c2ef9['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x8c2ef9[_0x59555a(0xdd)]:this[_0x59555a(0xcf)](_0x731256);break;}}));}['tryStartPresenting'](){const _0xf4b852=_0x373afb;this['_collabSession']['send']({'eventID':_0x8c2ef9[_0xf4b852(0xdf)],'data':{'unitID':this[_0xf4b852(0xc9)],'userID':this[_0xf4b852(0x107)][_0xf4b852(0xfc)]()}},this[_0xf4b852(0xc9)]);}[_0x373afb(0xfb)](){const _0x2f74fe=_0x373afb;this[_0x2f74fe(0xdc)]===_0x2f74fe(0x12b)&&(this[_0x2f74fe(0x134)][_0x2f74fe(0xce)](_0x2f74fe(0x97)),this[_0x2f74fe(0x107)][_0x2f74fe(0xcd)]({'eventID':_0x8c2ef9[_0x2f74fe(0xbb)],'data':{'unitID':this[_0x2f74fe(0xc9)]}},this[_0x2f74fe(0xc9)]));}[_0x373afb(0x103)](){const _0x1f0519=_0x373afb;this[_0x1f0519(0xdc)]===_0x1f0519(0xf0)&&(this[_0x1f0519(0x134)][_0x1f0519(0xce)]('following'),this[_0x1f0519(0x9c)]());}[_0x373afb(0x9d)](){const _0x26310d=_0x373afb;this[_0x26310d(0xdc)]===_0x26310d(0x10a)&&this['_stopFollowing']();}['_handleNewHost'](_0x194eaa){const _0x3c21c9=_0x373afb,{presenter:_0x1b032c}=_0x194eaa['data'],_0x90204e=this['_collabSession'][_0x3c21c9(0xfc)]();this[_0x3c21c9(0xd6)]=_0x1b032c,_0x1b032c===_0x90204e?(this[_0x3c21c9(0xae)](),this['_startPresenting']()):this[_0x3c21c9(0xdc)]!==_0x3c21c9(0xf0)&&(this[_0x3c21c9(0xf6)](),this[_0x3c21c9(0x9c)]());}[_0x373afb(0xa6)](){const _0x27a39b=_0x373afb,_0x5b7651={'eventID':_0x8c2ef9['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x27a39b(0xcd)](_0x5b7651,this[_0x27a39b(0xc9)]);}[_0x373afb(0x108)](){const _0x17b0d2=_0x373afb;this[_0x17b0d2(0xd6)]=null,this[_0x17b0d2(0xdc)]!==_0x17b0d2(0x12b)&&this[_0x17b0d2(0xa5)]();}[_0x373afb(0xcf)](_0x49fa0b){const _0x14c015=_0x373afb;if(this[_0x14c015(0xdc)]===_0x14c015(0x10a)&&this[_0x14c015(0xd6)]===_0x49fa0b['data'][_0x14c015(0xde)]){const _0x573164=_0x1b1fac(_0x49fa0b['data'])[_0x14c015(0x94)][_0x14c015(0xe7)]()[_0x14c015(0x9b)](_0x48f604=>_0x48f604['id']===_0x3e4c4f['id']);if(_0x573164){const _0x4240c3=_0x573164[_0x14c015(0x8f)][_0x14c015(0xd2)],_0x42bc0c=_0x573164[_0x14c015(0x8f)][_0x14c015(0x8e)]['id'];setTimeout(()=>{const _0x200fd7=_0x14c015;this[_0x200fd7(0xa3)][_0x200fd7(0x120)](_0x573678['id'],{'unitId':_0x4240c3,'subUnitId':_0x42bc0c},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x599a5d=_0x373afb;this[_0x599a5d(0x134)][_0x599a5d(0xce)](_0x599a5d(0x12b));const _0x32ccb5=new Map(),_0x1b07e1=this['_commandDisposable']=new _0x4e5770();_0x1b07e1[_0x599a5d(0x11e)](_0x1ac75e(()=>{const _0x4a2901=_0x599a5d;_0x32ccb5['forEach'](_0x5b73b2=>_0x5b73b2[_0x4a2901(0x11a)]()),_0x32ccb5[_0x4a2901(0xba)]();})),_0x1b07e1[_0x599a5d(0x11e)](this[_0x599a5d(0xa3)][_0x599a5d(0x117)](_0x172814=>{const _0x4c9d51=_0x599a5d;var _0x2efe0a;if(_0x172814[_0x4c9d51(0x133)]!==_0x3d9b5a[_0x4c9d51(0xc5)]||!this[_0x4c9d51(0xbd)]['shouldShareOperation'](_0x172814['id']))return;const {id:_0xdc67f0}=_0x172814;let _0x15672e;_0x32ccb5[_0x4c9d51(0xc4)](_0xdc67f0)?_0x15672e=_0x32ccb5[_0x4c9d51(0x110)](_0xdc67f0):(_0x15672e=new _0x241eea(),_0x32ccb5[_0x4c9d51(0x116)](_0xdc67f0,_0x15672e),_0x15672e[_0x4c9d51(0x96)](_0x8122a8((_0x2efe0a=this[_0x4c9d51(0x10c)]['getConfig'](Ce))!=null?_0x2efe0a:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4c9d51(0xb1)](_0x290e91=>{const _0x39c90c=_0x4c9d51;this['_collabSession'][_0x39c90c(0xcd)]({'eventID':_0x8c2ef9[_0x39c90c(0xb4)],'data':{'unitID':this[_0x39c90c(0xc9)],'operations':{[_0x290e91['id']]:{'id':_0x290e91['id'],'params':JSON['stringify'](_0x290e91['params'])}}}},this[_0x39c90c(0xc9)]);})),_0x15672e[_0x4c9d51(0xce)](_0x172814);})),this[_0x599a5d(0xbd)][_0x599a5d(0xac)](this[_0x599a5d(0xc9)])[_0x599a5d(0xa2)](_0x169550=>this[_0x599a5d(0x107)][_0x599a5d(0xcd)]({'eventID':_0x8c2ef9[_0x599a5d(0xb4)],'data':{'unitID':this[_0x599a5d(0xc9)],'operations':{[_0x169550['id']]:{'id':_0x169550['id'],'params':JSON[_0x599a5d(0x12f)](_0x169550['params'])}}}},this[_0x599a5d(0xc9)]));}[_0x373afb(0xf6)](){const _0x2fb652=_0x373afb;var _0x56f75a;this[_0x2fb652(0x134)]['next'](_0x2fb652(0x97)),(_0x56f75a=this[_0x2fb652(0xd3)])==null||_0x56f75a['dispose'](),this[_0x2fb652(0xd3)]=null;}[_0x373afb(0x9c)](){const _0x60c111=_0x373afb;var _0x293ce4;(_0x293ce4=this[_0x60c111(0xd3)])==null||_0x293ce4[_0x60c111(0xd7)](),this[_0x60c111(0x134)][_0x60c111(0xce)](_0x60c111(0x10a));}[_0x373afb(0xa5)](){const _0x36d7de=_0x373afb;var _0x19b8cd;this[_0x36d7de(0x134)][_0x36d7de(0xce)](_0x36d7de(0x97)),(_0x19b8cd=this[_0x36d7de(0xd3)])==null||_0x19b8cd[_0x36d7de(0xd7)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x5efc2b=_0x373afb;var _0x1d6a63;this[_0x5efc2b(0x134)][_0x5efc2b(0xce)](_0x5efc2b(0xf0)),(_0x1d6a63=this[_0x5efc2b(0xd3)])==null||_0x1d6a63[_0x5efc2b(0xd7)]();}[_0x373afb(0xbc)](_0xfcce72){const _0x3d3b04=_0x373afb;if([_0x3d3b04(0x12b),_0x3d3b04(0xf0),_0x3d3b04(0xb0)]['includes'](this[_0x3d3b04(0xdc)])||!_0xfcce72[_0x3d3b04(0xfd)][_0x3d3b04(0xa8)]||_0xfcce72[_0x3d3b04(0xfd)][_0x3d3b04(0xa8)]===this[_0x3d3b04(0x107)][_0x3d3b04(0xfc)]())return;this[_0x3d3b04(0xdc)]===_0x3d3b04(0x97)&&this[_0x3d3b04(0x9c)]();const _0x2e7ccd=_0xfcce72['data'][_0x3d3b04(0x109)];Object[_0x3d3b04(0x101)](_0x2e7ccd)[_0x3d3b04(0xa2)](_0x3c0e26=>{const _0x206e60=_0x3d3b04;this['_commandService'][_0x206e60(0x120)](_0x3c0e26['id'],_0x3c0e26['params']?JSON[_0x206e60(0x10b)](_0x3c0e26[_0x206e60(0x8f)]):null,{'fromCollab':!0x0});});}[_0x373afb(0xf1)](){const _0x5981ca=_0x373afb;var _0x195dfc;this[_0x5981ca(0x134)][_0x5981ca(0xce)](_0x5981ca(0xb0)),(_0x195dfc=this['_commandDisposable'])==null||_0x195dfc[_0x5981ca(0xd7)]();}['_handleOnline'](){const _0x2eebe4=_0x373afb;this[_0x2eebe4(0x134)][_0x2eebe4(0xce)](_0x2eebe4(0x97)),this['_fetchOperations']();}};N=Y([_(0x2,_0x4f1855),_(0x3,_0x44b869(L)),_(0x4,_0x4c5df3)],N);function Le(){const _0x790222=_0x373afb,_0x1bbd41=_0x228f76(S),_0x24afe7=_0x228f76(_0x34e9fa),_0x156f85=_0x4b62b2(()=>_0x24afe7[_0x790222(0xda)](_0x3279a2['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x2b6b96,_0x5b2543]=_0x348257(null),[_0x243175,_0x1fda9d]=_0x348257(c[_0x790222(0x91)]),_0x11b665=_0x4fde8f(null);return _0x56a4e1(()=>(_0x156f85&&_0x1bbd41[_0x790222(0xcb)](_0x156f85[_0x790222(0xa4)]())['then'](_0x53eb7f=>{const _0x32d716=_0x790222;_0x5b2543(_0x53eb7f),_0x11b665[_0x32d716(0xef)]=_0x53eb7f[_0x32d716(0xd1)][_0x32d716(0xb1)](_0x16c70c=>{_0x1fda9d(_0x16c70c);});}),()=>{const _0x10411e=_0x790222;var _0x4dc5d5;(_0x4dc5d5=_0x11b665[_0x10411e(0xef)])==null||_0x4dc5d5[_0x10411e(0xa9)](),_0x11b665[_0x10411e(0xef)]=null;}),[_0x156f85,_0x1bbd41]),_0x2b6b96?_0x38bc83(_0x425cde,{'align':_0x790222(0x11d),'disabled':_0x243175===c[_0x790222(0x132)],'className':_0x790222(0xb7),'overlay':_0x38bc83(Re,{'status':_0x243175,'coordinator':_0x2b6b96}),'children':_0x38bc83(_0x790222(0xe1),{'className':_0x1f887d(_0x790222(0x105),{'univer-cursor-not-allowed':_0x243175===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x243175!==c['OFFLINE']}),'type':_0x790222(0xe1),'children':_0x38bc83(W,{'className':_0x790222(0x135)})})}):null;}function Re(_0x4460d2){const _0xdc7a93=_0x373afb,{status:_0x5b2a2c,coordinator:_0x573a23}=_0x4460d2;switch(_0x5b2a2c){case c[_0xdc7a93(0x91)]:return _0x38bc83($e,{'coordinator':_0x573a23});case c['FOLLOWING']:return _0x38bc83(xe,{'coordinator':_0x573a23});case c[_0xdc7a93(0xd8)]:return _0x38bc83(Pe,{'coordinator':_0x573a23});case c[_0xdc7a93(0x132)]:return _0x38bc83(Te,{});case c[_0xdc7a93(0x126)]:return _0x38bc83(Ae,{'coordinator':_0x573a23});default:return null;}}function _0x2c6a(){const _0x37c689=['_config','none','get','includes','You\x27re\x20following\x20the\x20presenter','idSuffix','map','path','set','onCommandExecuted','fill','symbol','complete','_handleNewHost','192EvSVpg','end','add','5VsRZsU','executeCommand','univerjs-icon\x20univerjs-icon-','div','init','defIds','sessionStatus$','PRESENTING','You\x27re\x20not\x20following\x20the\x20presenter','_sharedOperations','pluginName','_reporters','presenting','6nizBbj','385070IDbALI','assign','stringify','asObservable','UNIVER_LIVE_SHARE_PLUGIN','OFFLINE','type','_status$','univer-size-4','_startLiveShareCoordinator','Stop\x20following','live-share-icon','sheet','params','registerComponent','IDLE','requireSession','tryStartPresenting','mutations','colorChannel1','pipe','idle','univer-mb-3\x20univer-w-full\x20univer-text-sm','shouldShareOperation','1180837YeiPDv','find','_startFollowing','stopFollowing','url(#$1','substring','evenodd','44vHQgyf','forEach','_commandService','getUnitId','_beIdle','_fetchOperations','length','presenter','unsubscribe','0\x200\x2017\x2017','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','getInitialStates','children','_stopFollowing','Start','offline','subscribe','disposeWithMe','svg','LIVESHARE_OPERATION','You\x27are\x20offline.','Present\x20this\x20document','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','113493QPGQiJ','string','clear','LIVESHARE_TERMINATE','_handleOperation','_liveShareService','362384HkaKwr','FOLLOWING','onStarting','trim','dispose$','defs','has','OPERATION','_handleOnline','_entities','getTypeOfUnitAdded$','_unitID','defineProperty','getLiveShareCoordinator','_univerInstanceService','send','next','_handleNewChangeSets','random','status$','unitId','_commandDisposable','displayName','UNIVER_UNKNOWN','_presenter','dispose','NOT_FOLLOWING','SAME_OPERATION_SHARE_INTERVAL','getCurrentTypeOfUnit$','registerInitialStateReporter','_status','NEW_CHANGESETS','memberID','LIVESHARE_REQUEST_HOST','_mountLiveShare','button','_injector','mask','1em','event$','Start\x20following','reverse','You\x27re\x20presenting\x20the\x20document','Stop\x20presenting','4882596ZhDnEo','createInstance','11229520wnrKWG','HEADER_MENU','ONLINE','current','not-following','_handleOffline','xlink:href','override','_init','getOwnPropertyDescriptor','_stopPresenting','20cEtFij','4065021sAxeLq','entries','tag','stopPresenting','getMemberID','data','delete','getValue','attrs','values','currentColor','startFollowing','default','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_uiPartsService','_collabSession','_handleTerminate','operations','following','parse','_configService','getTypeOfUnitDisposed$'];_0x2c6a=function(){return _0x37c689;};return _0x2c6a();}function $e(_0x23aefb){const _0xc849a=_0x373afb,{coordinator:_0x1b880d}=_0x23aefb;return _0x5c6850(_0x3d4178,{'children':[_0x38bc83(_0xc849a(0x122),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc849a(0xb6)}),_0x38bc83(_0x4c4b88,{'onClick':()=>_0x1b880d[_0xc849a(0x93)](),'children':_0xc849a(0xaf)})]});}function xe(_0x4ede01){const _0x5a9ef3=_0x373afb,{coordinator:_0x2a3f43}=_0x4ede01;return _0x5c6850(_0x3d4178,{'children':[_0x38bc83('div',{'className':_0x5a9ef3(0x98),'children':_0x5a9ef3(0x112)}),_0x38bc83(_0x4c4b88,{'onClick':()=>_0x2a3f43['stopFollowing'](),'children':_0x5a9ef3(0x8c)})]});}function Pe(_0xb95a9b){const _0x511281=_0x373afb,{coordinator:_0x54610c}=_0xb95a9b;return _0x5c6850(_0x3d4178,{'children':[_0x38bc83(_0x511281(0x122),{'className':_0x511281(0x98),'children':_0x511281(0x127)}),_0x38bc83(_0x4c4b88,{'variant':'text','onClick':()=>_0x54610c[_0x511281(0x103)](),'children':_0x511281(0xe6)})]});}function Ae(_0x21bdad){const _0x4a0dfd=_0x373afb,{coordinator:_0x55938b}=_0x21bdad;return _0x5c6850(_0x3d4178,{'children':[_0x38bc83('div',{'className':_0x4a0dfd(0x98),'children':_0x4a0dfd(0xe8)}),_0x38bc83(_0x4c4b88,{'variant':_0x4a0dfd(0x104),'onClick':()=>_0x55938b[_0x4a0dfd(0xfb)](),'children':_0x4a0dfd(0xe9)})]});}function Te(){const _0x59c8a4=_0x373afb;return _0x38bc83(_0x3d4178,{'children':_0x59c8a4(0xb5)});}var Fe=Object[_0x373afb(0xf5)],He=(_0x5909e2,_0x5a9129,_0x2b798b,_0xc66490)=>{const _0x2b4f85=_0x373afb;for(var _0x45b7db=_0xc66490>0x1?void 0x0:_0xc66490?Fe(_0x5a9129,_0x2b798b):_0x5a9129,_0x3d2216=_0x5909e2[_0x2b4f85(0xa7)]-0x1,_0x53f92f;_0x3d2216>=0x0;_0x3d2216--)(_0x53f92f=_0x5909e2[_0x3d2216])&&(_0x45b7db=_0x53f92f(_0x45b7db)||_0x45b7db);return _0x45b7db;},A=(_0x20702e,_0x52e5a8)=>(_0x599489,_0x30960d)=>_0x52e5a8(_0x599489,_0x30960d,_0x20702e);let m=class extends _0x2fe247{constructor(_0x36bb67,_0xe659a7){const _0x1dd5ee=_0x373afb;super(),this['_injector']=_0x36bb67,this[_0x1dd5ee(0x106)]=_0xe659a7,this[_0x1dd5ee(0xe0)]();}[_0x373afb(0xe0)](){const _0x38bdd0=_0x373afb;this[_0x38bdd0(0xb2)](this['_uiPartsService'][_0x38bdd0(0x90)](_0x50235b[_0x38bdd0(0xed)],()=>_0xd9524e(Le,this[_0x38bdd0(0xe2)])));}};m=He([A(0x0,_0x44b869(_0x9ae918)),A(0x1,_0x19674a)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x5b738b,_0x80071f,_0x24d5ae,_0x34cd1e)=>{for(var _0x419006=_0x34cd1e>0x1?void 0x0:_0x34cd1e?Ue(_0x80071f,_0x24d5ae):_0x80071f,_0x1fc4fe=_0x5b738b['length']-0x1,_0x5dafe4;_0x1fc4fe>=0x0;_0x1fc4fe--)(_0x5dafe4=_0x5b738b[_0x1fc4fe])&&(_0x419006=_0x5dafe4(_0x419006)||_0x419006);return _0x419006;},je=(_0x2eb5ac,_0x2910ce)=>(_0x577196,_0x51e6ea)=>_0x2910ce(_0x577196,_0x51e6ea,_0x2eb5ac);let I=class extends _0x2fe247{constructor(_0x1f9348){const _0x168ee8=_0x373afb;super(),this[_0x168ee8(0xbd)]=_0x1f9348,this[_0x168ee8(0xf4)]();}[_0x373afb(0xf4)](){const _0x172035=_0x373afb;[_0x134bb0['id'],_0x355a6f['id'],_0x573678['id']][_0x172035(0xa2)](_0x29018b=>{const _0xdf18ee=_0x172035;this[_0xdf18ee(0xb2)](this[_0xdf18ee(0xbd)]['registerSharedOperation'](_0x29018b));});}};I=Ve([je(0x0,_0x44b869(L))],I);var Me=Object[_0x373afb(0xca)],ke=Object[_0x373afb(0xf5)],Ge=(_0x2da04f,_0x1716bf,_0x6cc873)=>_0x1716bf in _0x2da04f?Me(_0x2da04f,_0x1716bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6cc873}):_0x2da04f[_0x1716bf]=_0x6cc873,We=(_0xc496a7,_0x1916c8,_0x11f1a5,_0x37c556)=>{const _0x467bb6=_0x373afb;for(var _0x5d3a36=_0x37c556>0x1?void 0x0:_0x37c556?ke(_0x1916c8,_0x11f1a5):_0x1916c8,_0x5071e1=_0xc496a7[_0x467bb6(0xa7)]-0x1,_0x5151eb;_0x5071e1>=0x0;_0x5071e1--)(_0x5151eb=_0xc496a7[_0x5071e1])&&(_0x5d3a36=_0x5151eb(_0x5d3a36)||_0x5d3a36);return _0x5d3a36;},F=(_0x14bed2,_0x14a0d3)=>(_0x2ae82f,_0x431a39)=>_0x14a0d3(_0x2ae82f,_0x431a39,_0x14bed2),B=(_0x380747,_0x924f52,_0x2c1642)=>Ge(_0x380747,typeof _0x924f52!=_0x373afb(0x119)?_0x924f52+'':_0x924f52,_0x2c1642);const Ye=_0x373afb(0x131);let b=class extends _0x31b36f{constructor(_0x1ecf49=T,_0x2ea4bb,_0x4930cd){const _0x30b0bb=_0x373afb;super(),this[_0x30b0bb(0x10e)]=_0x1ecf49,this['_injector']=_0x2ea4bb,this[_0x30b0bb(0x10c)]=_0x4930cd;const {..._0xc518f}=_0x1066e5({},T,this['_config']);this[_0x30b0bb(0x10c)]['setConfig'](ye,_0xc518f);}[_0x373afb(0xc0)](){const _0x587387=_0x373afb;_0x1e94e5(this[_0x587387(0xe2)],_0xef3678([[L],[S],[I],[m]],this[_0x587387(0x10e)][_0x587387(0xf3)])),_0x495760(this[_0x587387(0xe2)],[[I]]);}['onRendered'](){const _0x40efd2=_0x373afb;_0x495760(this[_0x40efd2(0xe2)],[[m]]);}};B(b,'type',_0x3279a2[_0x373afb(0xd5)]),B(b,_0x373afb(0x129),Ye),b=We([_0xacdf87(_0x2b2af9),F(0x1,_0x44b869(_0x9ae918)),F(0x2,_0x4f1855)],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 _0x466b10=_0x2fc8;(function(_0x3626d1,_0x23da67){const _0x45aec7=_0x2fc8,_0x8e61fd=_0x3626d1();while(!![]){try{const _0x48c8d8=parseInt(_0x45aec7(0x219))/0x1+-parseInt(_0x45aec7(0x1d6))/0x2+parseInt(_0x45aec7(0x242))/0x3*(parseInt(_0x45aec7(0x257))/0x4)+parseInt(_0x45aec7(0x254))/0x5+parseInt(_0x45aec7(0x277))/0x6*(-parseInt(_0x45aec7(0x213))/0x7)+-parseInt(_0x45aec7(0x233))/0x8+parseInt(_0x45aec7(0x25c))/0x9*(-parseInt(_0x45aec7(0x1f3))/0xa);if(_0x48c8d8===_0x23da67)break;else _0x8e61fd['push'](_0x8e61fd['shift']());}catch(_0xebfcd1){_0x8e61fd['push'](_0x8e61fd['shift']());}}}(_0x357a,0xbf71a));var J=Object[_0x466b10(0x264)],K=(_0xe41e0b,_0x53190b,_0x5dfba6)=>_0x53190b in _0xe41e0b?J(_0xe41e0b,_0x53190b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dfba6}):_0xe41e0b[_0x53190b]=_0x5dfba6,u=(_0x534186,_0x439d01,_0x13b7be)=>K(_0x534186,typeof _0x439d01!='symbol'?_0x439d01+'':_0x439d01,_0x13b7be);import{Disposable as _0x420bef,toDisposable as _0x2eefa6,IUniverInstanceService as _0x2136d5,Inject as _0xb810a1,Injector as _0x42925d,IConfigService as _0x534aaa,ICommandService as _0x462048,RxDisposable as _0x42c56f,UniverInstanceType as _0x5da7e1,DisposableCollection as _0x5c3901,CommandType as _0x5c0f1e,DependentOn as _0x426f35,Plugin as _0x1ab38a,merge as _0x153f93,registerDependencies as _0x40c418,mergeOverrideWithDependencies as _0x26a6d8,touchDependencies as _0x321cc3}from'@univerjs/core';import{useDependency as _0x57b7f1,useObservable as _0x2f47a8,IUIPartsService as _0x13733b,BuiltInUIPart as _0x325241,connectInjector as _0x5e2acd}from'@univerjs/ui';import{jsx as _0x284072,jsxs as _0x2842a9,Fragment as _0x3f7b64}from'react/jsx-runtime';import{Dropdown as _0x4d67da,clsx as _0x3b0bb0,Button as _0x55525b}from'@univerjs/design';import{useRef as _0x42cbc5,createElement as _0x345555,forwardRef as _0x3c8360,useState as _0x34edd8,useEffect as _0x2e4dde}from'react';import{CollaborationEvent as _0x4f8dac,parseProtocolChangeset as _0x1aca7c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32ee9c,SessionStatus as _0x2c2d1f,UniverCollaborationClientPlugin as _0x27fd59}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x27298e,SetWorksheetActiveOperation as _0x1cd2eb}from'@univerjs/sheets';import{BehaviorSubject as _0x4e0347,Subject as _0x5885a2}from'rxjs';import{takeUntil as _0x2b8aab,throttleTime as _0x3853a5}from'rxjs/operators';import{SetZoomRatioOperation as _0x54dcf4,SetScrollOperation as _0x59b67c}from'@univerjs/sheets-ui';function k({ref:_0x56e881,..._0x8a0ea0}){const _0x4313f2=_0x466b10,{icon:_0xdffd6,id:_0x3a411c,className:_0x3857f2,extend:_0x437451,..._0x472013}=_0x8a0ea0,_0x49a098=('univerjs-icon\x20univerjs-icon-'+_0x3a411c+'\x20'+(_0x3857f2||''))['trim'](),_0x1bf568=_0x42cbc5('_'+Oe());return G(_0xdffd6,''+_0x3a411c,{'defIds':_0xdffd6[_0x4313f2(0x1e9)],'idSuffix':_0x1bf568[_0x4313f2(0x260)]},{'ref':_0x56e881,'className':_0x49a098,..._0x472013},_0x437451);}function G(_0x36dab8,_0x14e2ad,_0x388ceb,_0xe44f09,_0x31239d){const _0x457d2f=_0x466b10;return _0x345555(_0x36dab8[_0x457d2f(0x1d5)],{'key':_0x14e2ad,...be(_0x36dab8,_0x388ceb,_0x31239d),..._0xe44f09},(Ee(_0x36dab8,_0x388ceb)[_0x457d2f(0x1da)]||[])['map']((_0x143ae9,_0x2fb417)=>G(_0x143ae9,_0x14e2ad+'-'+_0x36dab8[_0x457d2f(0x1d5)]+'-'+_0x2fb417,_0x388ceb,void 0x0,_0x31239d)));}function be(_0x193212,_0x5225b8,_0x52778d){const _0x144ca5=_0x466b10,_0x4e407c={..._0x193212[_0x144ca5(0x23e)]};_0x52778d!=null&&_0x52778d[_0x144ca5(0x252)]&&_0x4e407c[_0x144ca5(0x269)]==='colorChannel1'&&(_0x4e407c[_0x144ca5(0x269)]=_0x52778d['colorChannel1']),_0x193212[_0x144ca5(0x1d5)]==='mask'&&_0x4e407c['id']&&(_0x4e407c['id']=_0x4e407c['id']+_0x5225b8[_0x144ca5(0x20f)]),Object[_0x144ca5(0x24c)](_0x4e407c)[_0x144ca5(0x21f)](([_0x337893,_0x589733])=>{const _0x2f5315=_0x144ca5;_0x337893==='mask'&&typeof _0x589733==_0x2f5315(0x25e)&&(_0x4e407c[_0x337893]=_0x589733['replace'](/url\(#(.*)\)/,_0x2f5315(0x273)+_0x5225b8[_0x2f5315(0x20f)]+')'));});const {defIds:_0x253c66}=_0x5225b8;return!_0x253c66||_0x253c66[_0x144ca5(0x225)]===0x0||(_0x193212['tag']==='use'&&_0x4e407c['xlink:href']&&(_0x4e407c[_0x144ca5(0x1d8)]=_0x4e407c['xlink:href']+_0x5225b8[_0x144ca5(0x20f)]),Object[_0x144ca5(0x24c)](_0x4e407c)[_0x144ca5(0x21f)](([_0x5581e5,_0x171030])=>{const _0x32af2b=_0x144ca5;typeof _0x171030==_0x32af2b(0x25e)&&(_0x4e407c[_0x5581e5]=_0x171030[_0x32af2b(0x22a)](/url\(#(.*)\)/,_0x32af2b(0x273)+_0x5225b8[_0x32af2b(0x20f)]+')'));})),_0x4e407c;}function _0x357a(){const _0x1c4ba2=['_status','disposeWithMe','getMemberID','univer-size-4','get','OPERATION','getUnitId','asObservable','attrs','event$','displayName','PRESENTING','3165MfJiok','You\x27are\x20offline.','UNIVER_SHEET','getConfig','_handleTerminate','getValue','LIVESHARE_OPERATION','init','LIVESHARE_REQUEST_HOST','NOT_FOLLOWING','entries','getOwnPropertyDescriptor','UNIVER_UNKNOWN','params','status$','_configService','colorChannel1','NEW_CHANGESETS','506440UAbPaJ','_init','stopPresenting','3032UyPZYu','complete','You\x27re\x20presenting\x20the\x20document','memberID','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','30798qOIaYn','unitId','string','_startFollowing','current','evenodd','live-share.config','_unitID','defineProperty','1em','mutations','getTypeOfUnitDisposed$','getCurrentTypeOfUnit$','fill','type','following','none','presenting','setConfig','IDLE','_sharedOperations','getInitialStates','You\x27re\x20not\x20following\x20the\x20presenter','url(#$1','_beIdle','_presenter','data','1608414RAbKHp','delete','_stopFollowing','_commandDisposable','tag','261130MtvYBC','LIVESHARE_TERMINATE','xlink:href','symbol','children','_startPresenting','values','next','onCommandExecuted','Start','FOLLOWING','_mountLiveShare','registerSharedOperation','LIVESHARE_FETCH_OPERATIONS','_status$','has','startFollowing','default','currentColor','defIds','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-mb-3\x20univer-w-full\x20univer-text-sm','override','subscribe','includes','button','HEADER_MENU','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','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','730MDRAmK','_config','_collabSession','dispose','OFFLINE','offline','add','idle','Present\x20this\x20document','onStarting','defs','text','_reporters','send','_handleNewHost','UniverIcon','getTypeOfUnitAdded$','div','assign','tryStartPresenting','reverse','LIVESHARE_NEW_HOST','requireSession','_handleOnline','shouldShareOperation','executeCommand','_collabSessionService','http://www.w3.org/2000/svg','idSuffix','_handleOffline','set','dispose$','28FjsQDi','getLiveShareCoordinator','path','_handleNewChangeSets','You\x27re\x20following\x20the\x20presenter','_univerInstanceService','1405489RARwvP','Stop\x20following','end','pipe','getStatus','createInstance','forEach','_uiPartsService','not-following','presenter','_handleOperation','_liveShareService','length','_stopPresenting','_fetchOperations','stopFollowing','sheet','replace','parse','0\x200\x2017\x2017','_startLiveShareCoordinator','_commandService','SAME_OPERATION_SHARE_INTERVAL','onRendered','_injector','toString','557328kyMpoS','_entities','pluginName'];_0x357a=function(){return _0x1c4ba2;};return _0x357a();}function Ee(_0x48c89a,_0x1479e5){const _0xdca510=_0x466b10;var _0x3b9069;const {defIds:_0x476edd}=_0x1479e5;return!_0x476edd||_0x476edd[_0xdca510(0x225)]===0x0?_0x48c89a:_0x48c89a[_0xdca510(0x1d5)]===_0xdca510(0x1fd)&&((_0x3b9069=_0x48c89a[_0xdca510(0x1da)])!=null&&_0x3b9069[_0xdca510(0x225)])?{..._0x48c89a,'children':_0x48c89a['children']['map'](_0x5eadee=>typeof _0x5eadee[_0xdca510(0x23e)]['id']==_0xdca510(0x25e)&&_0x476edd&&_0x476edd[_0xdca510(0x1ee)](_0x5eadee[_0xdca510(0x23e)]['id'])?{..._0x5eadee,'attrs':{..._0x5eadee[_0xdca510(0x23e)],'id':_0x5eadee[_0xdca510(0x23e)]['id']+_0x1479e5[_0xdca510(0x20f)]}}:_0x5eadee)}:_0x48c89a;}function Oe(){const _0x2e54c3=_0x466b10;return Math['random']()[_0x2e54c3(0x232)](0x24)['substring'](0x2,0x8);}k[_0x466b10(0x240)]=_0x466b10(0x202);const we={'tag':'svg','attrs':{'xmlns':_0x466b10(0x20e),'fill':_0x466b10(0x26c),'viewBox':_0x466b10(0x22c),'width':_0x466b10(0x265),'height':_0x466b10(0x265)},'children':[{'tag':_0x466b10(0x215),'attrs':{'fill':'currentColor','d':_0x466b10(0x25b)}},{'tag':_0x466b10(0x215),'attrs':{'fill':_0x466b10(0x1e8),'d':_0x466b10(0x1f1),'fillRule':_0x466b10(0x261),'clipRule':_0x466b10(0x261)}}]},W=_0x3c8360(function(_0x85f375,_0x1fb5b6){const _0x238ac1=_0x466b10;return _0x345555(k,Object[_0x238ac1(0x205)]({},_0x85f375,{'id':'live-share-icon','ref':_0x1fb5b6,'icon':we}));});W[_0x466b10(0x240)]='LiveShareIcon';class L extends _0x420bef{constructor(){const _0x534244=_0x466b10;super(...arguments),u(this,_0x534244(0x270),new Set()),u(this,_0x534244(0x1ff),new Set());}['registerSharedOperation'](_0x283131){const _0xec1a2e=_0x466b10;return this[_0xec1a2e(0x270)]['add'](_0x283131),_0x2eefa6(()=>this[_0xec1a2e(0x270)][_0xec1a2e(0x1d2)](_0x283131));}['registerInitialStateReporter'](_0x2bcae4){const _0x5d9c51=_0x466b10;return this[_0x5d9c51(0x1ff)][_0x5d9c51(0x1f9)](_0x2bcae4),_0x2eefa6(()=>this[_0x5d9c51(0x1ff)][_0x5d9c51(0x1d2)](_0x2bcae4));}[_0x466b10(0x20b)](_0x27b4e1){const _0x22a577=_0x466b10;return this[_0x22a577(0x270)][_0x22a577(0x1e5)](_0x27b4e1);}[_0x466b10(0x271)](_0x21cfca){const _0x28622f=_0x466b10;return Array['from'](this[_0x28622f(0x1ff)])['map'](_0xae5419=>_0xae5419(_0x21cfca));}}function _0x2fc8(_0x4eae40,_0x1bf369){const _0x357a1e=_0x357a();return _0x2fc8=function(_0x2fc8b5,_0x285da0){_0x2fc8b5=_0x2fc8b5-0x1d2;let _0x4f78d4=_0x357a1e[_0x2fc8b5];return _0x4f78d4;},_0x2fc8(_0x4eae40,_0x1bf369);}var Ne=Object[_0x466b10(0x24d)],Y=(_0x247e4e,_0x5ab1bf,_0x2311d0,_0x3039bc)=>{for(var _0xd525ca=_0x3039bc>0x1?void 0x0:_0x3039bc?Ne(_0x5ab1bf,_0x2311d0):_0x5ab1bf,_0x250c14=_0x247e4e['length']-0x1,_0x4acf00;_0x250c14>=0x0;_0x250c14--)(_0x4acf00=_0x247e4e[_0x250c14])&&(_0xd525ca=_0x4acf00(_0xd525ca)||_0xd525ca);return _0xd525ca;},_=(_0x4cff14,_0x134983)=>(_0x177e5d,_0x400f5e)=>_0x134983(_0x177e5d,_0x400f5e,_0x4cff14);let S=class extends _0x42c56f{constructor(_0x12aa1b,_0x3369ed,_0x3b2100){const _0x538447=_0x466b10;super(),u(this,'_entities',new Map()),(this[_0x538447(0x218)]=_0x12aa1b,this[_0x538447(0x231)]=_0x3369ed,this[_0x538447(0x20d)]=_0x3b2100,this[_0x538447(0x255)]());}async[_0x466b10(0x214)](_0x4cc403){const _0x3a8be6=_0x466b10;return this[_0x3a8be6(0x234)]['has'](_0x4cc403)||await this[_0x3a8be6(0x22d)](_0x4cc403),this[_0x3a8be6(0x234)][_0x3a8be6(0x23a)](_0x4cc403);}['getLiveShareCoordinatorSync'](_0x4d60ac){const _0x294aee=_0x466b10;var _0x5080d1;return(_0x5080d1=this[_0x294aee(0x234)][_0x294aee(0x23a)](_0x4d60ac))!=null?_0x5080d1:null;}[_0x466b10(0x255)](){const _0x462bfb=_0x466b10;this[_0x462bfb(0x218)][_0x462bfb(0x203)](_0x5da7e1[_0x462bfb(0x244)])[_0x462bfb(0x21c)](_0x2b8aab(this[_0x462bfb(0x212)]))[_0x462bfb(0x1ed)](async _0x2a6ec0=>{const _0x53687e=_0x462bfb,_0x351f05=_0x2a6ec0[_0x53687e(0x23c)]();this[_0x53687e(0x234)][_0x53687e(0x1e5)](_0x351f05)||this[_0x53687e(0x22d)](_0x351f05);}),this[_0x462bfb(0x218)][_0x462bfb(0x267)](_0x5da7e1[_0x462bfb(0x244)])[_0x462bfb(0x21c)](_0x2b8aab(this['dispose$']))['subscribe'](_0x4fe067=>{const _0xab9415=_0x462bfb,_0x974fbe=_0x4fe067['getUnitId'](),_0x5cbd94=this[_0xab9415(0x234)][_0xab9415(0x23a)](_0x974fbe);_0x5cbd94==null||_0x5cbd94[_0xab9415(0x1f6)]();});}async[_0x466b10(0x22d)](_0x23b9ed){const _0x4d6911=_0x466b10,_0x537694=await this[_0x4d6911(0x20d)][_0x4d6911(0x209)](_0x23b9ed),_0x11c03c=this[_0x4d6911(0x231)][_0x4d6911(0x21e)](N,_0x23b9ed,_0x537694);return _0x11c03c[_0x4d6911(0x249)](),this[_0x4d6911(0x234)][_0x4d6911(0x211)](_0x23b9ed,_0x11c03c),_0x11c03c;}};S=Y([_(0x0,_0x2136d5),_(0x1,_0xb810a1(_0x42925d)),_(0x2,_0xb810a1(_0x32ee9c))],S);var c=(_0x7d2b6b=>(_0x7d2b6b[_0x466b10(0x1f7)]=_0x466b10(0x1f8),_0x7d2b6b[_0x466b10(0x26f)]=_0x466b10(0x1fa),_0x7d2b6b['FOLLOWING']='following',_0x7d2b6b['NOT_FOLLOWING']='not-following',_0x7d2b6b[_0x466b10(0x241)]=_0x466b10(0x26d),_0x7d2b6b))(c||{});const Ce=_0x466b10(0x22f),De=0xc8;let N=class extends _0x42c56f{constructor(_0xa665c2,_0x391052,_0x56364f,_0x58779e,_0x90e7d2){const _0x1141fa=_0x466b10;super(),u(this,_0x1141fa(0x1e4),new _0x4e0347(_0x1141fa(0x1fa))),u(this,'status$',this[_0x1141fa(0x1e4)][_0x1141fa(0x23d)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this[_0x1141fa(0x263)]=_0xa665c2,this[_0x1141fa(0x1f5)]=_0x391052,this[_0x1141fa(0x251)]=_0x56364f,this[_0x1141fa(0x224)]=_0x58779e,this[_0x1141fa(0x22e)]=_0x90e7d2);}get[_0x466b10(0x236)](){const _0x5853e1=_0x466b10;return this[_0x5853e1(0x1e4)][_0x5853e1(0x247)]();}['dispose'](){const _0x1698e1=_0x466b10;var _0x148295;(_0x148295=this[_0x1698e1(0x1d4)])==null||_0x148295[_0x1698e1(0x1f6)](),this[_0x1698e1(0x1e4)][_0x1698e1(0x1dd)](_0x1698e1(0x1fa)),this[_0x1698e1(0x1e4)][_0x1698e1(0x258)]();}[_0x466b10(0x21d)](){const _0x28440c=_0x466b10;return this[_0x28440c(0x236)];}[_0x466b10(0x249)](){const _0x3c242e=_0x466b10;this['_init']||(this[_0x3c242e(0x255)]=!0x0,this[_0x3c242e(0x1f5)]['sessionStatus$']['pipe'](_0x2b8aab(this[_0x3c242e(0x212)]))[_0x3c242e(0x1ed)](_0x4d7096=>{const _0x4393dd=_0x3c242e;switch(_0x4d7096){case _0x2c2d1f[_0x4393dd(0x1f7)]:this[_0x4393dd(0x210)]();break;case _0x2c2d1f['ONLINE']:this['_handleOnline']();break;}}),this[_0x3c242e(0x1f5)][_0x3c242e(0x23f)]['pipe'](_0x2b8aab(this['dispose$']))[_0x3c242e(0x1ed)](_0x1a3914=>{const _0x5541c8=_0x3c242e,{eventID:_0x33595d}=_0x1a3914;switch(_0x33595d){case _0x4f8dac[_0x5541c8(0x208)]:this['_handleNewHost'](_0x1a3914);break;case _0x4f8dac[_0x5541c8(0x248)]:this[_0x5541c8(0x223)](_0x1a3914);break;case _0x4f8dac[_0x5541c8(0x1d7)]:this[_0x5541c8(0x246)]();break;case _0x4f8dac[_0x5541c8(0x253)]:this['_handleNewChangeSets'](_0x1a3914);break;}}));}[_0x466b10(0x206)](){const _0x1d3e1b=_0x466b10;this[_0x1d3e1b(0x1f5)][_0x1d3e1b(0x200)]({'eventID':_0x4f8dac[_0x1d3e1b(0x24a)],'data':{'unitID':this[_0x1d3e1b(0x263)],'userID':this[_0x1d3e1b(0x1f5)]['getMemberID']()}},this['_unitID']);}[_0x466b10(0x256)](){const _0x14b4e3=_0x466b10;this[_0x14b4e3(0x236)]==='presenting'&&(this[_0x14b4e3(0x1e4)][_0x14b4e3(0x1dd)](_0x14b4e3(0x1fa)),this[_0x14b4e3(0x1f5)][_0x14b4e3(0x200)]({'eventID':_0x4f8dac['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x14b4e3(0x263)]}},this['_unitID']));}[_0x466b10(0x1e6)](){const _0x3deff0=_0x466b10;this['_status']===_0x3deff0(0x221)&&(this[_0x3deff0(0x1e4)][_0x3deff0(0x1dd)]('following'),this[_0x3deff0(0x25f)]());}[_0x466b10(0x228)](){const _0x1759eb=_0x466b10;this[_0x1759eb(0x236)]===_0x1759eb(0x26b)&&this[_0x1759eb(0x1d3)]();}[_0x466b10(0x201)](_0x3122bb){const _0x1ecd4d=_0x466b10,{presenter:_0x2f0213}=_0x3122bb[_0x1ecd4d(0x276)],_0x27ea90=this[_0x1ecd4d(0x1f5)]['getMemberID']();this['_presenter']=_0x2f0213,_0x2f0213===_0x27ea90?(this['_stopFollowing'](),this[_0x1ecd4d(0x1db)]()):this[_0x1ecd4d(0x236)]!=='not-following'&&(this[_0x1ecd4d(0x226)](),this[_0x1ecd4d(0x25f)]());}[_0x466b10(0x227)](){const _0x199c73=_0x466b10,_0x3ce07e={'eventID':_0x4f8dac[_0x199c73(0x1e3)]};this['_collabSession'][_0x199c73(0x200)](_0x3ce07e,this[_0x199c73(0x263)]);}['_handleTerminate'](){const _0x546a9d=_0x466b10;this[_0x546a9d(0x275)]=null,this[_0x546a9d(0x236)]!==_0x546a9d(0x26d)&&this[_0x546a9d(0x274)]();}[_0x466b10(0x216)](_0xe39262){const _0x3db4de=_0x466b10;if(this[_0x3db4de(0x236)]===_0x3db4de(0x26b)&&this[_0x3db4de(0x275)]===_0xe39262[_0x3db4de(0x276)][_0x3db4de(0x25a)]){const _0x3dc36c=_0x1aca7c(_0xe39262[_0x3db4de(0x276)])[_0x3db4de(0x266)][_0x3db4de(0x207)]()['find'](_0x57ae51=>_0x57ae51['id']===_0x27298e['id']);if(_0x3dc36c){const _0x154067=_0x3dc36c[_0x3db4de(0x24f)][_0x3db4de(0x25d)],_0x262a15=_0x3dc36c[_0x3db4de(0x24f)][_0x3db4de(0x229)]['id'];setTimeout(()=>{const _0x8cdea2=_0x3db4de;this[_0x8cdea2(0x22e)][_0x8cdea2(0x20c)](_0x1cd2eb['id'],{'unitId':_0x154067,'subUnitId':_0x262a15},{'fromCollab':!0x0});});}}}[_0x466b10(0x1db)](){const _0x36c0f2=_0x466b10;this['_status$'][_0x36c0f2(0x1dd)](_0x36c0f2(0x26d));const _0x353dee=new Map(),_0x5321c8=this[_0x36c0f2(0x1d4)]=new _0x5c3901();_0x5321c8[_0x36c0f2(0x1f9)](_0x2eefa6(()=>{const _0x20851a=_0x36c0f2;_0x353dee[_0x20851a(0x21f)](_0x3fa4c0=>_0x3fa4c0['complete']()),_0x353dee['clear']();})),_0x5321c8[_0x36c0f2(0x1f9)](this[_0x36c0f2(0x22e)][_0x36c0f2(0x1de)](_0x147d71=>{const _0x59fc17=_0x36c0f2;var _0xf4dac5;if(_0x147d71[_0x59fc17(0x26a)]!==_0x5c0f1e[_0x59fc17(0x23b)]||!this[_0x59fc17(0x224)][_0x59fc17(0x20b)](_0x147d71['id']))return;const {id:_0x3503f5}=_0x147d71;let _0x292949;_0x353dee[_0x59fc17(0x1e5)](_0x3503f5)?_0x292949=_0x353dee[_0x59fc17(0x23a)](_0x3503f5):(_0x292949=new _0x5885a2(),_0x353dee[_0x59fc17(0x211)](_0x3503f5,_0x292949),_0x292949[_0x59fc17(0x21c)](_0x3853a5((_0xf4dac5=this[_0x59fc17(0x251)][_0x59fc17(0x245)](Ce))!=null?_0xf4dac5:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59fc17(0x1ed)](_0xda6466=>{const _0x303ecc=_0x59fc17;this[_0x303ecc(0x1f5)]['send']({'eventID':_0x4f8dac['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0xda6466['id']]:{'id':_0xda6466['id'],'params':JSON['stringify'](_0xda6466[_0x303ecc(0x24f)])}}}},this[_0x303ecc(0x263)]);})),_0x292949['next'](_0x147d71);})),this['_liveShareService'][_0x36c0f2(0x271)](this['_unitID'])[_0x36c0f2(0x21f)](_0x5400a4=>this['_collabSession'][_0x36c0f2(0x200)]({'eventID':_0x4f8dac[_0x36c0f2(0x248)],'data':{'unitID':this[_0x36c0f2(0x263)],'operations':{[_0x5400a4['id']]:{'id':_0x5400a4['id'],'params':JSON['stringify'](_0x5400a4[_0x36c0f2(0x24f)])}}}},this[_0x36c0f2(0x263)]));}['_stopPresenting'](){const _0x156e4a=_0x466b10;var _0x1fb473;this[_0x156e4a(0x1e4)][_0x156e4a(0x1dd)](_0x156e4a(0x1fa)),(_0x1fb473=this[_0x156e4a(0x1d4)])==null||_0x1fb473[_0x156e4a(0x1f6)](),this[_0x156e4a(0x1d4)]=null;}[_0x466b10(0x25f)](){const _0xb65f8a=_0x466b10;var _0x3f7e3d;(_0x3f7e3d=this[_0xb65f8a(0x1d4)])==null||_0x3f7e3d[_0xb65f8a(0x1f6)](),this[_0xb65f8a(0x1e4)][_0xb65f8a(0x1dd)](_0xb65f8a(0x26b));}['_beIdle'](){const _0xbd18fb=_0x466b10;var _0x52a3d5;this[_0xbd18fb(0x1e4)][_0xbd18fb(0x1dd)]('idle'),(_0x52a3d5=this[_0xbd18fb(0x1d4)])==null||_0x52a3d5['dispose'](),this[_0xbd18fb(0x1d4)]=null;}['_stopFollowing'](){const _0x20f90b=_0x466b10;var _0x1b118d;this[_0x20f90b(0x1e4)][_0x20f90b(0x1dd)]('not-following'),(_0x1b118d=this[_0x20f90b(0x1d4)])==null||_0x1b118d[_0x20f90b(0x1f6)]();}[_0x466b10(0x223)](_0x1457a9){const _0x6a1fde=_0x466b10;if([_0x6a1fde(0x26d),_0x6a1fde(0x221),_0x6a1fde(0x1f8)]['includes'](this[_0x6a1fde(0x236)])||!_0x1457a9['data'][_0x6a1fde(0x222)]||_0x1457a9[_0x6a1fde(0x276)][_0x6a1fde(0x222)]===this[_0x6a1fde(0x1f5)][_0x6a1fde(0x238)]())return;this[_0x6a1fde(0x236)]==='idle'&&this['_startFollowing']();const _0x490f4e=_0x1457a9[_0x6a1fde(0x276)]['operations'];Object[_0x6a1fde(0x1dc)](_0x490f4e)[_0x6a1fde(0x21f)](_0x51ea88=>{const _0x36017c=_0x6a1fde;this[_0x36017c(0x22e)][_0x36017c(0x20c)](_0x51ea88['id'],_0x51ea88[_0x36017c(0x24f)]?JSON[_0x36017c(0x22b)](_0x51ea88[_0x36017c(0x24f)]):null,{'fromCollab':!0x0});});}[_0x466b10(0x210)](){const _0x99c559=_0x466b10;var _0x273f2d;this[_0x99c559(0x1e4)][_0x99c559(0x1dd)](_0x99c559(0x1f8)),(_0x273f2d=this[_0x99c559(0x1d4)])==null||_0x273f2d['dispose']();}[_0x466b10(0x20a)](){const _0x1b8c42=_0x466b10;this['_status$'][_0x1b8c42(0x1dd)](_0x1b8c42(0x1fa)),this['_fetchOperations']();}};N=Y([_(0x2,_0x534aaa),_(0x3,_0xb810a1(L)),_(0x4,_0x462048)],N);function Le(){const _0x3f93f9=_0x466b10,_0x10611e=_0x57b7f1(S),_0x1816dc=_0x57b7f1(_0x2136d5),_0x276c7a=_0x2f47a8(()=>_0x1816dc[_0x3f93f9(0x268)](_0x5da7e1[_0x3f93f9(0x244)]),void 0x0,!0x1,[]),[_0x156f8b,_0x3e5743]=_0x34edd8(null),[_0x4b5522,_0x5283c2]=_0x34edd8(c[_0x3f93f9(0x26f)]),_0x223344=_0x42cbc5(null);return _0x2e4dde(()=>(_0x276c7a&&_0x10611e['getLiveShareCoordinator'](_0x276c7a[_0x3f93f9(0x23c)]())['then'](_0xb3fff9=>{const _0x2a6217=_0x3f93f9;_0x3e5743(_0xb3fff9),_0x223344[_0x2a6217(0x260)]=_0xb3fff9[_0x2a6217(0x250)]['subscribe'](_0x2f145d=>{_0x5283c2(_0x2f145d);});}),()=>{const _0x4d2de4=_0x3f93f9;var _0x3e5943;(_0x3e5943=_0x223344[_0x4d2de4(0x260)])==null||_0x3e5943['unsubscribe'](),_0x223344[_0x4d2de4(0x260)]=null;}),[_0x276c7a,_0x10611e]),_0x156f8b?_0x284072(_0x4d67da,{'align':_0x3f93f9(0x21b),'disabled':_0x4b5522===c['OFFLINE'],'className':_0x3f93f9(0x1ea),'overlay':_0x284072(Re,{'status':_0x4b5522,'coordinator':_0x156f8b}),'children':_0x284072(_0x3f93f9(0x1ef),{'className':_0x3b0bb0(_0x3f93f9(0x1f2),{'univer-cursor-not-allowed':_0x4b5522===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4b5522!==c[_0x3f93f9(0x1f7)]}),'type':_0x3f93f9(0x1ef),'children':_0x284072(W,{'className':_0x3f93f9(0x239)})})}):null;}function Re(_0x3a0ee2){const _0x26f4be=_0x466b10,{status:_0x41654e,coordinator:_0x3bf71f}=_0x3a0ee2;switch(_0x41654e){case c[_0x26f4be(0x26f)]:return _0x284072($e,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x1e0)]:return _0x284072(xe,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x24b)]:return _0x284072(Pe,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x1f7)]:return _0x284072(Te,{});case c[_0x26f4be(0x241)]:return _0x284072(Ae,{'coordinator':_0x3bf71f});default:return null;}}function $e(_0x3665d1){const _0x92b163=_0x466b10,{coordinator:_0x2ad800}=_0x3665d1;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x92b163(0x204),{'className':_0x92b163(0x1eb),'children':_0x92b163(0x1fb)}),_0x284072(_0x55525b,{'onClick':()=>_0x2ad800['tryStartPresenting'](),'children':_0x92b163(0x1df)})]});}function xe(_0x7fa473){const _0x20cb4c=_0x466b10,{coordinator:_0x4c3d9e}=_0x7fa473;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x20cb4c(0x204),{'className':_0x20cb4c(0x1eb),'children':_0x20cb4c(0x217)}),_0x284072(_0x55525b,{'onClick':()=>_0x4c3d9e[_0x20cb4c(0x228)](),'children':_0x20cb4c(0x21a)})]});}function Pe(_0x5839f4){const _0x5ce9d5=_0x466b10,{coordinator:_0x1e8ea5}=_0x5839f4;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x5ce9d5(0x204),{'className':_0x5ce9d5(0x1eb),'children':_0x5ce9d5(0x272)}),_0x284072(_0x55525b,{'variant':_0x5ce9d5(0x1fe),'onClick':()=>_0x1e8ea5[_0x5ce9d5(0x1e6)](),'children':'Start\x20following'})]});}function Ae(_0x2a2a29){const _0x20e38d=_0x466b10,{coordinator:_0x2f847f}=_0x2a2a29;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x20e38d(0x204),{'className':_0x20e38d(0x1eb),'children':_0x20e38d(0x259)}),_0x284072(_0x55525b,{'variant':_0x20e38d(0x1e7),'onClick':()=>_0x2f847f[_0x20e38d(0x256)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x404097=_0x466b10;return _0x284072(_0x3f7b64,{'children':_0x404097(0x243)});}var Fe=Object[_0x466b10(0x24d)],He=(_0x3af4a8,_0x54c977,_0x45f71f,_0x18468e)=>{const _0x59dd6d=_0x466b10;for(var _0x482524=_0x18468e>0x1?void 0x0:_0x18468e?Fe(_0x54c977,_0x45f71f):_0x54c977,_0x43c9fc=_0x3af4a8[_0x59dd6d(0x225)]-0x1,_0x502c84;_0x43c9fc>=0x0;_0x43c9fc--)(_0x502c84=_0x3af4a8[_0x43c9fc])&&(_0x482524=_0x502c84(_0x482524)||_0x482524);return _0x482524;},A=(_0x35aba6,_0xf7c588)=>(_0x35d55c,_0x2aa1df)=>_0xf7c588(_0x35d55c,_0x2aa1df,_0x35aba6);let m=class extends _0x420bef{constructor(_0x404c5e,_0x1dc60f){const _0x212348=_0x466b10;super(),this[_0x212348(0x231)]=_0x404c5e,this['_uiPartsService']=_0x1dc60f,this[_0x212348(0x1e1)]();}[_0x466b10(0x1e1)](){const _0x15d5d9=_0x466b10;this[_0x15d5d9(0x237)](this[_0x15d5d9(0x220)]['registerComponent'](_0x325241[_0x15d5d9(0x1f0)],()=>_0x5e2acd(Le,this[_0x15d5d9(0x231)])));}};m=He([A(0x0,_0xb810a1(_0x42925d)),A(0x1,_0x13733b)],m);const ye=_0x466b10(0x262),T={};var Ue=Object[_0x466b10(0x24d)],Ve=(_0x46324b,_0x6736d6,_0x582f21,_0x3e0ae3)=>{const _0x24f45b=_0x466b10;for(var _0x35e3c2=_0x3e0ae3>0x1?void 0x0:_0x3e0ae3?Ue(_0x6736d6,_0x582f21):_0x6736d6,_0x2e3ba0=_0x46324b[_0x24f45b(0x225)]-0x1,_0xf878c0;_0x2e3ba0>=0x0;_0x2e3ba0--)(_0xf878c0=_0x46324b[_0x2e3ba0])&&(_0x35e3c2=_0xf878c0(_0x35e3c2)||_0x35e3c2);return _0x35e3c2;},je=(_0x5d8027,_0x4b18db)=>(_0x1c10e9,_0x8d8840)=>_0x4b18db(_0x1c10e9,_0x8d8840,_0x5d8027);let I=class extends _0x420bef{constructor(_0x1331c2){const _0x199c97=_0x466b10;super(),this[_0x199c97(0x224)]=_0x1331c2,this[_0x199c97(0x255)]();}[_0x466b10(0x255)](){[_0x54dcf4['id'],_0x59b67c['id'],_0x1cd2eb['id']]['forEach'](_0x208667=>{const _0xbbf640=_0x2fc8;this[_0xbbf640(0x237)](this['_liveShareService'][_0xbbf640(0x1e2)](_0x208667));});}};I=Ve([je(0x0,_0xb810a1(L))],I);var Me=Object[_0x466b10(0x264)],ke=Object[_0x466b10(0x24d)],Ge=(_0x2721e2,_0x3f4edc,_0x421d52)=>_0x3f4edc in _0x2721e2?Me(_0x2721e2,_0x3f4edc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x421d52}):_0x2721e2[_0x3f4edc]=_0x421d52,We=(_0x4bc93a,_0x3dba69,_0x577d56,_0x4a8b14)=>{const _0x462c7c=_0x466b10;for(var _0x3a2089=_0x4a8b14>0x1?void 0x0:_0x4a8b14?ke(_0x3dba69,_0x577d56):_0x3dba69,_0x293090=_0x4bc93a[_0x462c7c(0x225)]-0x1,_0x577587;_0x293090>=0x0;_0x293090--)(_0x577587=_0x4bc93a[_0x293090])&&(_0x3a2089=_0x577587(_0x3a2089)||_0x3a2089);return _0x3a2089;},F=(_0x96b8f6,_0x27683f)=>(_0x30d0bc,_0x3f9793)=>_0x27683f(_0x30d0bc,_0x3f9793,_0x96b8f6),B=(_0x3c5f67,_0x36697a,_0x629966)=>Ge(_0x3c5f67,typeof _0x36697a!=_0x466b10(0x1d9)?_0x36697a+'':_0x36697a,_0x629966);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x1ab38a{constructor(_0x595ff1=T,_0xe2e66f,_0x27027b){const _0x1b79f1=_0x466b10;super(),this['_config']=_0x595ff1,this[_0x1b79f1(0x231)]=_0xe2e66f,this['_configService']=_0x27027b;const {..._0x1ca6ef}=_0x153f93({},T,this[_0x1b79f1(0x1f4)]);this[_0x1b79f1(0x251)][_0x1b79f1(0x26e)](ye,_0x1ca6ef);}[_0x466b10(0x1fc)](){const _0x10f164=_0x466b10;_0x40c418(this[_0x10f164(0x231)],_0x26a6d8([[L],[S],[I],[m]],this[_0x10f164(0x1f4)][_0x10f164(0x1ec)])),_0x321cc3(this[_0x10f164(0x231)],[[I]]);}[_0x466b10(0x230)](){const _0x46d3c8=_0x466b10;_0x321cc3(this[_0x46d3c8(0x231)],[[m]]);}};B(b,_0x466b10(0x26a),_0x5da7e1[_0x466b10(0x24e)]),B(b,_0x466b10(0x235),Ye),b=We([_0x426f35(_0x27fd59),F(0x1,_0xb810a1(_0x42925d)),F(0x2,_0x534aaa)],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 _0x2a83(){const _0x34b582=['UniverSheets','@univerjs-pro/live-share','extend','SetScrollOperation','startColumn','UniverCoreFacade','773802tCiubT','FUniver','amd','tryStartPresenting','862197jFlnvl','12RAjMew','No\x20active\x20workbook\x20found.','LiveShareStatusEnum','PRESENTING','getStatus','startRow','20EHcACd','stopFollowing','LiveShareStatus','getSheetId','function','getId','startPresenting','startFollowing','104844eYMogB','UniverEngineRender','getLiveShareStatus','getLiveShareCoordinatorSync','getActiveWorkbook','FRange','LiveShareController','FEnum','920862EAeqXD','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','29696yLBgxq','stopPresenting','@univerjs/sheets-ui','getActiveSheet','get','32354cMUoQd','_commandService','getUnitId','1294448tgiQFm','object'];_0x2a83=function(){return _0x34b582;};return _0x2a83();}function _0x5c67(_0x1b1dff,_0x154984){const _0x2a83eb=_0x2a83();return _0x5c67=function(_0x5c678e,_0x471d66){_0x5c678e=_0x5c678e-0x1f1;let _0x4f4d91=_0x2a83eb[_0x5c678e];return _0x4f4d91;},_0x5c67(_0x1b1dff,_0x154984);}(function(_0x48f08e,_0x4820b8){const _0x5491ea=_0x5c67,_0x4dc521=_0x48f08e();while(!![]){try{const _0x39686d=-parseInt(_0x5491ea(0x20c))/0x1+parseInt(_0x5491ea(0x211))/0x2*(-parseInt(_0x5491ea(0x1f3))/0x3)+parseInt(_0x5491ea(0x201))/0x4*(-parseInt(_0x5491ea(0x1f9))/0x5)+parseInt(_0x5491ea(0x21c))/0x6+parseInt(_0x5491ea(0x1f2))/0x7+parseInt(_0x5491ea(0x214))/0x8+-parseInt(_0x5491ea(0x209))/0x9;if(_0x39686d===_0x4820b8)break;else _0x4dc521['push'](_0x4dc521['shift']());}catch(_0x2a30bf){_0x4dc521['push'](_0x4dc521['shift']());}}}(_0x2a83,0x1b6fa),function(_0x1fa758,_0x379727){const _0x2b54df=_0x5c67;typeof exports==_0x2b54df(0x215)&&typeof module<'u'?_0x379727(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x2b54df(0x1fd)&&define[_0x2b54df(0x21e)]?define([_0x2b54df(0x217),'@univerjs/engine-render','@univerjs/sheets',_0x2b54df(0x20e),'@univerjs/sheets/facade','@univerjs/core/facade'],_0x379727):(_0x1fa758=typeof globalThis<'u'?globalThis:_0x1fa758||self,_0x379727(_0x1fa758['UniverProLiveShare'],_0x1fa758[_0x2b54df(0x202)],_0x1fa758[_0x2b54df(0x216)],_0x1fa758['UniverSheetsUi'],_0x1fa758['UniverSheetsFacade'],_0x1fa758[_0x2b54df(0x21b)]));}(this,function(_0xe86113,_0x7ae7c8,_0x4e9bca,_0x3729ff,_0x236902,_0x4674ef){'use strict';const _0x594df9=_0x5c67;class _0x1d7ced extends _0x236902[_0x594df9(0x206)]{['_initialize'](_0x5898af,_0x5bd0c1,_0x3e7ad3,_0x707f18,_0x51bf80){const _0x4e0bb7=_0x594df9,_0x474df8=_0x5898af[_0x4e0bb7(0x210)](_0xe86113[_0x4e0bb7(0x207)]),_0x22c272=_0x5898af['get'](_0x7ae7c8['IRenderManagerService']),_0x3276c4=_0x5bd0c1['getUnitId'](),_0x1f9d33=_0x5bd0c1[_0x4e0bb7(0x20f)](),_0x407ffd=_0x474df8['getLiveShareCoordinatorSync'](_0x3276c4);(_0x407ffd==null?void 0x0:_0x407ffd[_0x4e0bb7(0x1f7)]())!==_0xe86113['LiveShareStatus'][_0x4e0bb7(0x1f6)]||(_0x3e7ad3['getSheetId']()!==_0x1f9d33['getSheetId']()&&this[_0x4e0bb7(0x212)]['executeCommand'](_0x4e9bca['SetWorksheetActiveOperation']['id'],{'unitId':_0x3276c4,'subUnitId':_0x3e7ad3[_0x4e0bb7(0x1fc)]()}),!_0x22c272['getRenderById'](_0x3276c4))||_0x51bf80['syncExecuteCommand'](_0x3729ff[_0x4e0bb7(0x219)]['id'],{'unitId':_0x5bd0c1[_0x4e0bb7(0x213)](),'sheetId':_0x3e7ad3[_0x4e0bb7(0x1fc)](),'sheetViewStartRow':_0x707f18[_0x4e0bb7(0x1f8)],'sheetViewStartColumn':_0x707f18[_0x4e0bb7(0x21a)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x236902[_0x594df9(0x206)]['extend'](_0x1d7ced);class _0xf02493 extends _0x4674ef[_0x594df9(0x21d)]{[_0x594df9(0x203)](){const _0x421033=_0x594df9;var _0x277e8a,_0x20b8e3;const _0x3a776d=this[_0x421033(0x20a)][_0x421033(0x210)](_0xe86113[_0x421033(0x207)]),_0x132f7e=(_0x277e8a=this['getActiveWorkbook']())==null?void 0x0:_0x277e8a[_0x421033(0x1fe)]();if(!_0x132f7e)throw new Error(_0x421033(0x1f4));const _0x330eda=_0x3a776d['getLiveShareCoordinatorSync'](_0x132f7e);return(_0x20b8e3=_0x330eda==null?void 0x0:_0x330eda['getStatus']())!=null?_0x20b8e3:_0xe86113[_0x421033(0x1fb)]['IDLE'];}[_0x594df9(0x200)](){const _0x2edd5f=_0x594df9;var _0xbafcf8;const _0x26ad9d=this[_0x2edd5f(0x20a)][_0x2edd5f(0x210)](_0xe86113['LiveShareController']),_0x561b58=(_0xbafcf8=this['getActiveWorkbook']())==null?void 0x0:_0xbafcf8[_0x2edd5f(0x1fe)]();if(!_0x561b58)throw new Error(_0x2edd5f(0x1f4));const _0x4d307d=_0x26ad9d['getLiveShareCoordinatorSync'](_0x561b58);if(!_0x4d307d)throw new Error(_0x2edd5f(0x20b));_0x4d307d['startFollowing']();}[_0x594df9(0x1fa)](){const _0x167e71=_0x594df9;var _0x12a84f;const _0x77d6aa=this['_injector'][_0x167e71(0x210)](_0xe86113[_0x167e71(0x207)]),_0x5817af=(_0x12a84f=this['getActiveWorkbook']())==null?void 0x0:_0x12a84f[_0x167e71(0x1fe)]();if(!_0x5817af)throw new Error(_0x167e71(0x1f4));const _0x562737=_0x77d6aa[_0x167e71(0x204)](_0x5817af);if(!_0x562737)throw new Error(_0x167e71(0x20b));_0x562737['stopFollowing']();}[_0x594df9(0x1ff)](){const _0x5d90d1=_0x594df9;var _0x320937;const _0xc63cc1=this[_0x5d90d1(0x20a)][_0x5d90d1(0x210)](_0xe86113[_0x5d90d1(0x207)]),_0x4de168=(_0x320937=this[_0x5d90d1(0x205)]())==null?void 0x0:_0x320937[_0x5d90d1(0x1fe)]();if(!_0x4de168)throw new Error('No\x20active\x20workbook\x20found.');const _0x28137c=_0xc63cc1[_0x5d90d1(0x204)](_0x4de168);if(!_0x28137c)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x28137c[_0x5d90d1(0x1f1)]();}[_0x594df9(0x20d)](){const _0x34ec8e=_0x594df9;var _0x25ec64;const _0x262d8c=this[_0x34ec8e(0x20a)]['get'](_0xe86113[_0x34ec8e(0x207)]),_0x51b88c=(_0x25ec64=this[_0x34ec8e(0x205)]())==null?void 0x0:_0x25ec64['getId']();if(!_0x51b88c)throw new Error(_0x34ec8e(0x1f4));const _0x3a3ec3=_0x262d8c[_0x34ec8e(0x204)](_0x51b88c);if(!_0x3a3ec3)throw new Error(_0x34ec8e(0x20b));_0x3a3ec3['stopPresenting']();}}_0x4674ef[_0x594df9(0x21d)][_0x594df9(0x218)](_0xf02493);class _0x2e2494 extends _0x4674ef[_0x594df9(0x208)]{get[_0x594df9(0x1f5)](){return _0xe86113['LiveShareStatus'];}}_0x4674ef[_0x594df9(0x208)][_0x594df9(0x218)](_0x2e2494);}));
1
+ function _0x34f5(){const _0x3e3e73=['stopPresenting','@univerjs/core/facade','FEnum','startFollowing','getSheetId','480152LqmUPo','getId','4405992DoqXWm','tryStartPresenting','LiveShareStatus','LiveShareController','273KYctfP','IRenderManagerService','UniverEngineRender','function','object','SetScrollOperation','@univerjs/engine-render','854010gUSafA','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getActiveWorkbook','29976BOddyi','_initialize','amd','@univerjs/sheets-ui','extend','@univerjs/sheets/facade','LiveShareStatusEnum','27YaFVIG','_commandService','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','FRange','stopFollowing','getLiveShareStatus','get','493850skuCfc','SetWorksheetActiveOperation','startRow','PRESENTING','6964270uiONgz','getStatus','FUniver','IDLE','@univerjs/sheets','_injector','4HSiLaT','startPresenting','getRenderById','UniverSheets','651261kkTtnT','UniverCoreFacade'];_0x34f5=function(){return _0x3e3e73;};return _0x34f5();}function _0x3494(_0x300c40,_0x409d72){const _0x34f538=_0x34f5();return _0x3494=function(_0x3494ab,_0x1748b9){_0x3494ab=_0x3494ab-0x1a6;let _0x5cac9d=_0x34f538[_0x3494ab];return _0x5cac9d;},_0x3494(_0x300c40,_0x409d72);}(function(_0x9c1dd9,_0x24b5d9){const _0xb5615=_0x3494,_0x31d90c=_0x9c1dd9();while(!![]){try{const _0x418b88=parseInt(_0xb5615(0x1bf))/0x1+-parseInt(_0xb5615(0x1cc))/0x2+-parseInt(_0xb5615(0x1b8))/0x3+parseInt(_0xb5615(0x1b4))/0x4*(parseInt(_0xb5615(0x1ae))/0x5)+-parseInt(_0xb5615(0x1c1))/0x6+-parseInt(_0xb5615(0x1c5))/0x7*(-parseInt(_0xb5615(0x1d0))/0x8)+parseInt(_0xb5615(0x1d7))/0x9*(parseInt(_0xb5615(0x1aa))/0xa);if(_0x418b88===_0x24b5d9)break;else _0x31d90c['push'](_0x31d90c['shift']());}catch(_0x25f38a){_0x31d90c['push'](_0x31d90c['shift']());}}}(_0x34f5,0xc0986),function(_0x9676c5,_0x24de6b){const _0x5628aa=_0x3494;typeof exports==_0x5628aa(0x1c9)&&typeof module<'u'?_0x24de6b(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x5628aa(0x1c8)&&define[_0x5628aa(0x1d2)]?define(['@univerjs-pro/live-share',_0x5628aa(0x1cb),_0x5628aa(0x1b2),_0x5628aa(0x1d3),_0x5628aa(0x1d5),_0x5628aa(0x1bb)],_0x24de6b):(_0x9676c5=typeof globalThis<'u'?globalThis:_0x9676c5||self,_0x24de6b(_0x9676c5['UniverProLiveShare'],_0x9676c5[_0x5628aa(0x1c7)],_0x9676c5[_0x5628aa(0x1b7)],_0x9676c5['UniverSheetsUi'],_0x9676c5['UniverSheetsFacade'],_0x9676c5[_0x5628aa(0x1b9)]));}(this,function(_0x3b3965,_0x17536b,_0x3cccb7,_0x223a71,_0x89a614,_0x28d2a8){'use strict';const _0x52579d=_0x3494;class _0x1b6a06 extends _0x89a614['FRange']{[_0x52579d(0x1d1)](_0x163f69,_0x18a757,_0x48accc,_0x2acd22,_0x2b4786){const _0x5d53ef=_0x52579d,_0x3e68cb=_0x163f69[_0x5d53ef(0x1a9)](_0x3b3965[_0x5d53ef(0x1c4)]),_0x6b779b=_0x163f69[_0x5d53ef(0x1a9)](_0x17536b[_0x5d53ef(0x1c6)]),_0x3866de=_0x18a757[_0x5d53ef(0x1cd)](),_0x411f0c=_0x18a757['getActiveSheet'](),_0x55f6a1=_0x3e68cb[_0x5d53ef(0x1d9)](_0x3866de);(_0x55f6a1==null?void 0x0:_0x55f6a1[_0x5d53ef(0x1af)]())!==_0x3b3965[_0x5d53ef(0x1c3)][_0x5d53ef(0x1ad)]||(_0x48accc[_0x5d53ef(0x1be)]()!==_0x411f0c[_0x5d53ef(0x1be)]()&&this[_0x5d53ef(0x1d8)]['executeCommand'](_0x3cccb7[_0x5d53ef(0x1ab)]['id'],{'unitId':_0x3866de,'subUnitId':_0x48accc[_0x5d53ef(0x1be)]()}),!_0x6b779b[_0x5d53ef(0x1b6)](_0x3866de))||_0x2b4786['syncExecuteCommand'](_0x223a71[_0x5d53ef(0x1ca)]['id'],{'unitId':_0x18a757['getUnitId'](),'sheetId':_0x48accc['getSheetId'](),'sheetViewStartRow':_0x2acd22[_0x5d53ef(0x1ac)],'sheetViewStartColumn':_0x2acd22['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x89a614[_0x52579d(0x1a6)][_0x52579d(0x1d4)](_0x1b6a06);class _0x2e671c extends _0x28d2a8[_0x52579d(0x1b0)]{[_0x52579d(0x1a8)](){const _0x4d98c4=_0x52579d;var _0x561af1,_0x4c1f79;const _0x9fb92d=this['_injector'][_0x4d98c4(0x1a9)](_0x3b3965[_0x4d98c4(0x1c4)]),_0x566979=(_0x561af1=this[_0x4d98c4(0x1cf)]())==null?void 0x0:_0x561af1[_0x4d98c4(0x1c0)]();if(!_0x566979)throw new Error(_0x4d98c4(0x1da));const _0x2ed066=_0x9fb92d[_0x4d98c4(0x1d9)](_0x566979);return(_0x4c1f79=_0x2ed066==null?void 0x0:_0x2ed066[_0x4d98c4(0x1af)]())!=null?_0x4c1f79:_0x3b3965['LiveShareStatus'][_0x4d98c4(0x1b1)];}[_0x52579d(0x1bd)](){const _0x53acc0=_0x52579d;var _0x2931eb;const _0x38a461=this[_0x53acc0(0x1b3)][_0x53acc0(0x1a9)](_0x3b3965[_0x53acc0(0x1c4)]),_0x4a965e=(_0x2931eb=this['getActiveWorkbook']())==null?void 0x0:_0x2931eb[_0x53acc0(0x1c0)]();if(!_0x4a965e)throw new Error(_0x53acc0(0x1da));const _0x33f77b=_0x38a461['getLiveShareCoordinatorSync'](_0x4a965e);if(!_0x33f77b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x33f77b[_0x53acc0(0x1bd)]();}[_0x52579d(0x1a7)](){const _0x195d9a=_0x52579d;var _0x56e26f;const _0x19ecab=this['_injector'][_0x195d9a(0x1a9)](_0x3b3965[_0x195d9a(0x1c4)]),_0x146f71=(_0x56e26f=this[_0x195d9a(0x1cf)]())==null?void 0x0:_0x56e26f[_0x195d9a(0x1c0)]();if(!_0x146f71)throw new Error('No\x20active\x20workbook\x20found.');const _0x1ad614=_0x19ecab['getLiveShareCoordinatorSync'](_0x146f71);if(!_0x1ad614)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1ad614[_0x195d9a(0x1a7)]();}[_0x52579d(0x1b5)](){const _0x2ae041=_0x52579d;var _0x1b4ccb;const _0x47f504=this[_0x2ae041(0x1b3)][_0x2ae041(0x1a9)](_0x3b3965[_0x2ae041(0x1c4)]),_0x229c2d=(_0x1b4ccb=this[_0x2ae041(0x1cf)]())==null?void 0x0:_0x1b4ccb[_0x2ae041(0x1c0)]();if(!_0x229c2d)throw new Error(_0x2ae041(0x1da));const _0x2b494f=_0x47f504[_0x2ae041(0x1d9)](_0x229c2d);if(!_0x2b494f)throw new Error(_0x2ae041(0x1ce));_0x2b494f[_0x2ae041(0x1c2)]();}[_0x52579d(0x1ba)](){const _0xb579e4=_0x52579d;var _0x1a1cb4;const _0xd0a1b9=this[_0xb579e4(0x1b3)][_0xb579e4(0x1a9)](_0x3b3965[_0xb579e4(0x1c4)]),_0x44bff5=(_0x1a1cb4=this['getActiveWorkbook']())==null?void 0x0:_0x1a1cb4[_0xb579e4(0x1c0)]();if(!_0x44bff5)throw new Error(_0xb579e4(0x1da));const _0x2e30a9=_0xd0a1b9[_0xb579e4(0x1d9)](_0x44bff5);if(!_0x2e30a9)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2e30a9[_0xb579e4(0x1ba)]();}}_0x28d2a8[_0x52579d(0x1b0)]['extend'](_0x2e671c);class _0x2ae9a8 extends _0x28d2a8[_0x52579d(0x1bc)]{get[_0x52579d(0x1d6)](){const _0x2f52ab=_0x52579d;return _0x3b3965[_0x2f52ab(0x1c3)];}}_0x28d2a8[_0x52579d(0x1bc)][_0x52579d(0x1d4)](_0x2ae9a8);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x11c4(){const _0x513a3c=['LIVESHARE_OPERATION','_presenter','set','startFollowing','toStringTag','Dropdown','IDLE','univer-size-4','You\x27are\x20offline.','unsubscribe','_status','init','IConfigService','UniverLiveSharePlugin','getUnitId','UNIVER_UNKNOWN','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','length','has','LIVESHARE_NEW_HOST','override','LiveShare','react','You\x27re\x20following\x20the\x20presenter','_configService','DependentOn','LiveShareStatus','getValue','ICommandService','getInitialStates','data','useState','NOT_FOLLOWING','RxDisposable','LiveShareService','none','BuiltInUIPart','HEADER_MENU','dispose','registerInitialStateReporter','univer-mb-3\x20univer-w-full\x20univer-text-sm','ONLINE','tag','subscribe','presenting','UniverCore','You\x27re\x20not\x20following\x20the\x20presenter','@univerjs/ui','_status$','SessionStatus','tryStartPresenting','LIVESHARE_REQUEST_HOST','object','displayName','NEW_CHANGESETS','touchDependencies','_handleTerminate','_startLiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UniverProLiveShare','Injector','FOLLOWING','getStatus','add','_reporters','presenter','@univerjs-pro/collaboration-client','LiveShareIcon','Stop\x20presenting','_handleNewHost','5KMyECp','get','UniverSheetsUi','replace','fill','PRESENTING','registerDependencies','xlink:href','_liveShareService','type','_startFollowing','0\x200\x2017\x2017','getConfig','_collabSession','getTypeOfUnitDisposed$','_collabSessionService','values','asObservable','assign','not-following','univerjs-icon\x20univerjs-icon-','SetScrollOperation','CommandType','includes','Button','UniverProCollaborationClient','Inject','getOwnPropertyDescriptor','parse','delete','_beIdle','Disposable','useEffect','UniverCollaborationClientPlugin','UniverProCollaboration','idSuffix','UniverInstanceType','registerComponent','_unitID','registerSharedOperation','entries','currentColor','UNIVER_LIVE_SHARE_PLUGIN','clsx','_mountLiveShare','CollaborationEvent','offline','clear','following','map','_commandService','requireSession','InsertSheetMutation','live-share.config','from','pluginName','Fragment','_init','_handleOperation','@univerjs/sheets','shouldShareOperation','reverse','getLiveShareCoordinator','818GnzdiK','idle','_stopPresenting','_uiPartsService','280180sGhOBP','OFFLINE','button','memberID','merge','LiveShareCoordinator','use','255GXQhic','_config','_handleNewChangeSets','symbol','mask','url(#$1','end','_injector','UniverIcon','359496EcCJqf','LiveShareController','text','substring','OPERATION','children','@univerjs-pro/collaboration','takeUntil','SetWorksheetActiveOperation','Subject','355950UdqQjF','Start\x20following','SAME_OPERATION_SHARE_INTERVAL','path','1237026WsCTtm','66445DsjNXi','defIds','throttleTime','defs','toDisposable','_sharedOperations','string','_fetchOperations','1115172iCVtpi','setConfig','LIVESHARE_TERMINATE','next','UniverUi','attrs','_handleOnline','_handleOffline','IUIPartsService','event$','http://www.w3.org/2000/svg','getTypeOfUnitAdded$','onStarting','function','_startPresenting','@univerjs/core','getMemberID','createElement','_univerInstanceService','stopPresenting','onCommandExecuted','rxjs','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','stopFollowing','mergeOverrideWithDependencies','_entities','params','1em','exports','live-share-icon','dispose$','DesktopLiveShareController','jsx','useRef','status$','getCurrentTypeOfUnit$','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','connectInjector','defineProperty','current','default','Present\x20this\x20document','complete','pipe','SetZoomRatioOperation','svg','amd','You\x27re\x20presenting\x20the\x20document','_commandDisposable','disposeWithMe','send','colorChannel1','executeCommand','_stopFollowing','forEach','UNIVER_SHEET','jsxs','div'];_0x11c4=function(){return _0x513a3c;};return _0x11c4();}function _0x2243(_0x5cd65c,_0x4a09c2){const _0x11c42b=_0x11c4();return _0x2243=function(_0x2243ec,_0x2f1572){_0x2243ec=_0x2243ec-0x183;let _0x42a1a3=_0x11c42b[_0x2243ec];return _0x42a1a3;},_0x2243(_0x5cd65c,_0x4a09c2);}(function(_0x5ba848,_0x1b6fb9){const _0x10b2ff=_0x2243,_0xc7d896=_0x5ba848();while(!![]){try{const _0x4b108c=-parseInt(_0x10b2ff(0x1bb))/0x1+parseInt(_0x10b2ff(0x198))/0x2*(parseInt(_0x10b2ff(0x1a3))/0x3)+parseInt(_0x10b2ff(0x19c))/0x4*(parseInt(_0x10b2ff(0x243))/0x5)+parseInt(_0x10b2ff(0x1b6))/0x6+parseInt(_0x10b2ff(0x1ba))/0x7+-parseInt(_0x10b2ff(0x1ac))/0x8+-parseInt(_0x10b2ff(0x1c3))/0x9;if(_0x4b108c===_0x1b6fb9)break;else _0xc7d896['push'](_0xc7d896['shift']());}catch(_0x5424ad){_0xc7d896['push'](_0xc7d896['shift']());}}}(_0x11c4,0x19c5b),function(_0x1592a1,_0xc11038){const _0x2105a0=_0x2243;typeof exports==_0x2105a0(0x231)&&typeof module<'u'?_0xc11038(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==_0x2105a0(0x1d0)&&define[_0x2105a0(0x1f1)]?define([_0x2105a0(0x1df),_0x2105a0(0x1d2),_0x2105a0(0x22c),'react/jsx-runtime','@univerjs/design',_0x2105a0(0x213),_0x2105a0(0x1b2),_0x2105a0(0x23f),_0x2105a0(0x194),_0x2105a0(0x1d8),'rxjs/operators','@univerjs/sheets-ui'],_0xc11038):(_0x1592a1=typeof globalThis<'u'?globalThis:_0x1592a1||self,_0xc11038(_0x1592a1[_0x2105a0(0x238)]={},_0x1592a1[_0x2105a0(0x22a)],_0x1592a1[_0x2105a0(0x1c7)],_0x1592a1['React'],_0x1592a1['UniverDesign'],_0x1592a1['React'],_0x1592a1[_0x2105a0(0x265)],_0x1592a1[_0x2105a0(0x25c)],_0x1592a1['UniverSheets'],_0x1592a1[_0x2105a0(0x1d8)],_0x1592a1[_0x2105a0(0x1d8)]['operators'],_0x1592a1[_0x2105a0(0x245)]));}(this,function(_0x4c1693,_0x20c1f7,_0x54245a,_0xc7886b,_0x2ba6f4,_0x5f729d,_0xe29517,_0xe899b4,_0x5b7117,_0x1fb564,_0x149d8b,_0xaa5d52){'use strict';const _0xc4a02e=_0x2243;var _0x3867c0=Object[_0xc4a02e(0x1e9)],_0x1baef1=(_0x53baf6,_0x4bd2e3,_0x53a393)=>_0x4bd2e3 in _0x53baf6?_0x3867c0(_0x53baf6,_0x4bd2e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53a393}):_0x53baf6[_0x4bd2e3]=_0x53a393,_0x586a21=(_0x3a350b,_0xcce5f,_0x247ded)=>_0x1baef1(_0x3a350b,typeof _0xcce5f!=_0xc4a02e(0x1a6)?_0xcce5f+'':_0xcce5f,_0x247ded);function _0x5dc5f6({ref:_0x5af8d7,..._0x37d8f8}){const _0x2b5b7d=_0xc4a02e,{icon:_0x5dcf74,id:_0x28c4bb,className:_0x2d5b37,extend:_0xad065a,..._0x3da77d}=_0x37d8f8,_0xd63b73=(_0x2b5b7d(0x257)+_0x28c4bb+'\x20'+(_0x2d5b37||''))['trim'](),_0x554637=_0x5f729d[_0x2b5b7d(0x1e4)]('_'+_0x31b79d());return _0x2d1bd0(_0x5dcf74,''+_0x28c4bb,{'defIds':_0x5dcf74[_0x2b5b7d(0x1bc)],'idSuffix':_0x554637[_0x2b5b7d(0x1ea)]},{'ref':_0x5af8d7,'className':_0xd63b73,..._0x3da77d},_0xad065a);}function _0x2d1bd0(_0x16156d,_0x35d756,_0x8f9b5c,_0x400592,_0x2a1fed){const _0x534671=_0xc4a02e;return _0x5f729d[_0x534671(0x1d4)](_0x16156d[_0x534671(0x227)],{'key':_0x35d756,..._0x1d6153(_0x16156d,_0x8f9b5c,_0x2a1fed),..._0x400592},(_0xd082ff(_0x16156d,_0x8f9b5c)['children']||[])[_0x534671(0x18a)]((_0x441c05,_0x5c4a26)=>_0x2d1bd0(_0x441c05,_0x35d756+'-'+_0x16156d[_0x534671(0x227)]+'-'+_0x5c4a26,_0x8f9b5c,void 0x0,_0x2a1fed)));}function _0x1d6153(_0x58f868,_0xbe9c5b,_0x469118){const _0x499442=_0xc4a02e,_0x3b9c43={..._0x58f868[_0x499442(0x1c8)]};_0x469118!=null&&_0x469118['colorChannel1']&&_0x3b9c43[_0x499442(0x247)]===_0x499442(0x1f6)&&(_0x3b9c43[_0x499442(0x247)]=_0x469118[_0x499442(0x1f6)]),_0x58f868[_0x499442(0x227)]===_0x499442(0x1a7)&&_0x3b9c43['id']&&(_0x3b9c43['id']=_0x3b9c43['id']+_0xbe9c5b[_0x499442(0x266)]),Object[_0x499442(0x26b)](_0x3b9c43)[_0x499442(0x1f9)](([_0x215302,_0x3023da])=>{const _0x505c97=_0x499442;_0x215302===_0x505c97(0x1a7)&&typeof _0x3023da==_0x505c97(0x1c1)&&(_0x3b9c43[_0x215302]=_0x3023da['replace'](/url\(#(.*)\)/,_0x505c97(0x1a8)+_0xbe9c5b[_0x505c97(0x266)]+')'));});const {defIds:_0x27bfba}=_0xbe9c5b;return!_0x27bfba||_0x27bfba[_0x499442(0x20e)]===0x0||(_0x58f868[_0x499442(0x227)]===_0x499442(0x1a2)&&_0x3b9c43[_0x499442(0x24a)]&&(_0x3b9c43[_0x499442(0x24a)]=_0x3b9c43[_0x499442(0x24a)]+_0xbe9c5b['idSuffix']),Object['entries'](_0x3b9c43)['forEach'](([_0x1af6b0,_0x393913])=>{const _0x4e437a=_0x499442;typeof _0x393913==_0x4e437a(0x1c1)&&(_0x3b9c43[_0x1af6b0]=_0x393913[_0x4e437a(0x246)](/url\(#(.*)\)/,_0x4e437a(0x1a8)+_0xbe9c5b['idSuffix']+')'));})),_0x3b9c43;}function _0xd082ff(_0x180ec2,_0x594634){const _0x2532ea=_0xc4a02e;var _0x3e53d7;const {defIds:_0x194e95}=_0x594634;return!_0x194e95||_0x194e95['length']===0x0?_0x180ec2:_0x180ec2['tag']===_0x2532ea(0x1be)&&((_0x3e53d7=_0x180ec2[_0x2532ea(0x1b1)])!=null&&_0x3e53d7[_0x2532ea(0x20e)])?{..._0x180ec2,'children':_0x180ec2[_0x2532ea(0x1b1)][_0x2532ea(0x18a)](_0x1cbee7=>typeof _0x1cbee7[_0x2532ea(0x1c8)]['id']==_0x2532ea(0x1c1)&&_0x194e95&&_0x194e95[_0x2532ea(0x25a)](_0x1cbee7[_0x2532ea(0x1c8)]['id'])?{..._0x1cbee7,'attrs':{..._0x1cbee7['attrs'],'id':_0x1cbee7['attrs']['id']+_0x594634[_0x2532ea(0x266)]}}:_0x1cbee7)}:_0x180ec2;}function _0x31b79d(){const _0x1d420f=_0xc4a02e;return Math['random']()['toString'](0x24)[_0x1d420f(0x1af)](0x2,0x8);}_0x5dc5f6['displayName']=_0xc4a02e(0x1ab);const _0x512c93={'tag':_0xc4a02e(0x1f0),'attrs':{'xmlns':_0xc4a02e(0x1cd),'fill':_0xc4a02e(0x220),'viewBox':_0xc4a02e(0x24e),'width':'1em','height':_0xc4a02e(0x1de)},'children':[{'tag':_0xc4a02e(0x1b9),'attrs':{'fill':_0xc4a02e(0x26c),'d':_0xc4a02e(0x1d9)}},{'tag':'path','attrs':{'fill':_0xc4a02e(0x26c),'d':_0xc4a02e(0x1e7),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x58e8ce=_0x5f729d['forwardRef'](function(_0x5f441d,_0x3c93c7){const _0x41f766=_0xc4a02e;return _0x5f729d['createElement'](_0x5dc5f6,Object[_0x41f766(0x255)]({},_0x5f441d,{'id':_0x41f766(0x1e0),'ref':_0x3c93c7,'icon':_0x512c93}));});_0x58e8ce[_0xc4a02e(0x232)]=_0xc4a02e(0x240);class _0x1b3fb8 extends _0x20c1f7['Disposable']{constructor(){const _0x438824=_0xc4a02e;super(...arguments),_0x586a21(this,_0x438824(0x1c0),new Set()),_0x586a21(this,_0x438824(0x23d),new Set());}['registerSharedOperation'](_0x4cfd29){const _0x183819=_0xc4a02e;return this[_0x183819(0x1c0)][_0x183819(0x23c)](_0x4cfd29),_0x20c1f7[_0x183819(0x1bf)](()=>this[_0x183819(0x1c0)][_0x183819(0x260)](_0x4cfd29));}[_0xc4a02e(0x224)](_0x45e098){const _0x14c8a3=_0xc4a02e;return this['_reporters']['add'](_0x45e098),_0x20c1f7[_0x14c8a3(0x1bf)](()=>this[_0x14c8a3(0x23d)][_0x14c8a3(0x260)](_0x45e098));}['shouldShareOperation'](_0xbfa2c){const _0x14e750=_0xc4a02e;return this[_0x14e750(0x1c0)]['has'](_0xbfa2c);}[_0xc4a02e(0x21a)](_0x1676d9){const _0x2dc4a8=_0xc4a02e;return Array[_0x2dc4a8(0x18f)](this[_0x2dc4a8(0x23d)])[_0x2dc4a8(0x18a)](_0xaa47fc=>_0xaa47fc(_0x1676d9));}}var _0x5b8d2c=Object[_0xc4a02e(0x25e)],_0x2f758a=(_0x45d182,_0x29016d,_0x58b6b8,_0x58ab03)=>{for(var _0x4f77f6=_0x58ab03>0x1?void 0x0:_0x58ab03?_0x5b8d2c(_0x29016d,_0x58b6b8):_0x29016d,_0x5940c4=_0x45d182['length']-0x1,_0x2097cb;_0x5940c4>=0x0;_0x5940c4--)(_0x2097cb=_0x45d182[_0x5940c4])&&(_0x4f77f6=_0x2097cb(_0x4f77f6)||_0x4f77f6);return _0x4f77f6;},_0x4f1cc4=(_0x308aff,_0x4c1dbe)=>(_0x3cf82a,_0x56eb9c)=>_0x4c1dbe(_0x3cf82a,_0x56eb9c,_0x308aff);_0x4c1693[_0xc4a02e(0x1ad)]=class extends _0x20c1f7[_0xc4a02e(0x21e)]{constructor(_0x2972fc,_0x4b6884,_0xb9c655){const _0x583b9f=_0xc4a02e;super(),_0x586a21(this,_0x583b9f(0x1dc),new Map()),(this[_0x583b9f(0x1d5)]=_0x2972fc,this[_0x583b9f(0x1aa)]=_0x4b6884,this[_0x583b9f(0x252)]=_0xb9c655,this[_0x583b9f(0x192)]());}async['getLiveShareCoordinator'](_0xca8325){const _0x1a23bb=_0xc4a02e;return this[_0x1a23bb(0x1dc)][_0x1a23bb(0x20f)](_0xca8325)||await this[_0x1a23bb(0x236)](_0xca8325),this['_entities'][_0x1a23bb(0x244)](_0xca8325);}['getLiveShareCoordinatorSync'](_0x99a34f){const _0x483452=_0xc4a02e;var _0x430b0b;return(_0x430b0b=this[_0x483452(0x1dc)][_0x483452(0x244)](_0x99a34f))!=null?_0x430b0b:null;}[_0xc4a02e(0x192)](){const _0x3d14fb=_0xc4a02e;this[_0x3d14fb(0x1d5)][_0x3d14fb(0x1ce)](_0x20c1f7[_0x3d14fb(0x267)][_0x3d14fb(0x1fa)])[_0x3d14fb(0x1ee)](_0x149d8b['takeUntil'](this[_0x3d14fb(0x1e1)]))[_0x3d14fb(0x228)](async _0x570d20=>{const _0x2576b5=_0x3d14fb,_0x419b51=_0x570d20[_0x2576b5(0x20b)]();this[_0x2576b5(0x1dc)][_0x2576b5(0x20f)](_0x419b51)||this[_0x2576b5(0x236)](_0x419b51);}),this[_0x3d14fb(0x1d5)][_0x3d14fb(0x251)](_0x20c1f7[_0x3d14fb(0x267)][_0x3d14fb(0x1fa)])[_0x3d14fb(0x1ee)](_0x149d8b['takeUntil'](this[_0x3d14fb(0x1e1)]))['subscribe'](_0xd3f1a8=>{const _0x3b555c=_0x3d14fb,_0x395302=_0xd3f1a8[_0x3b555c(0x20b)](),_0x2d6dcc=this['_entities'][_0x3b555c(0x244)](_0x395302);_0x2d6dcc==null||_0x2d6dcc['dispose']();});}async['_startLiveShareCoordinator'](_0x46aafd){const _0x2c69b5=_0xc4a02e,_0x92a6ec=await this[_0x2c69b5(0x252)][_0x2c69b5(0x18c)](_0x46aafd),_0x5f20f3=this[_0x2c69b5(0x1aa)]['createInstance'](_0x4c1693[_0x2c69b5(0x1a1)],_0x46aafd,_0x92a6ec);return _0x5f20f3[_0x2c69b5(0x208)](),this['_entities'][_0x2c69b5(0x1ff)](_0x46aafd,_0x5f20f3),_0x5f20f3;}},_0x4c1693[_0xc4a02e(0x1ad)]=_0x2f758a([_0x4f1cc4(0x0,_0x20c1f7['IUniverInstanceService']),_0x4f1cc4(0x1,_0x20c1f7['Inject'](_0x20c1f7[_0xc4a02e(0x239)])),_0x4f1cc4(0x2,_0x20c1f7['Inject'](_0xe899b4['CollaborationSessionService']))],_0x4c1693['LiveShareController']);var _0x3426aa=(_0xfa45d8=>(_0xfa45d8['OFFLINE']='offline',_0xfa45d8[_0xc4a02e(0x203)]=_0xc4a02e(0x199),_0xfa45d8[_0xc4a02e(0x23a)]='following',_0xfa45d8[_0xc4a02e(0x21d)]=_0xc4a02e(0x256),_0xfa45d8[_0xc4a02e(0x248)]=_0xc4a02e(0x229),_0xfa45d8))(_0x3426aa||{});const _0x5f260d=_0xc4a02e(0x1b8),_0x4366e9=0xc8;_0x4c1693[_0xc4a02e(0x1a1)]=class extends _0x20c1f7[_0xc4a02e(0x21e)]{constructor(_0x14dde1,_0x719025,_0x1a9557,_0xfe7abb,_0x1cd432){const _0x25b10b=_0xc4a02e;super(),_0x586a21(this,_0x25b10b(0x22d),new _0x1fb564['BehaviorSubject'](_0x25b10b(0x199))),_0x586a21(this,_0x25b10b(0x1e5),this[_0x25b10b(0x22d)][_0x25b10b(0x254)]()),_0x586a21(this,_0x25b10b(0x192),!0x1),_0x586a21(this,'_commandDisposable',null),_0x586a21(this,_0x25b10b(0x1fe),null),(this[_0x25b10b(0x269)]=_0x14dde1,this['_collabSession']=_0x719025,this[_0x25b10b(0x215)]=_0x1a9557,this[_0x25b10b(0x24b)]=_0xfe7abb,this['_commandService']=_0x1cd432);}get[_0xc4a02e(0x207)](){const _0x35e653=_0xc4a02e;return this[_0x35e653(0x22d)][_0x35e653(0x218)]();}['dispose'](){const _0x1b9a2c=_0xc4a02e;var _0x47e553;(_0x47e553=this[_0x1b9a2c(0x1f3)])==null||_0x47e553['dispose'](),this[_0x1b9a2c(0x22d)][_0x1b9a2c(0x1c6)](_0x1b9a2c(0x199)),this[_0x1b9a2c(0x22d)][_0x1b9a2c(0x1ed)]();}[_0xc4a02e(0x23b)](){const _0x124613=_0xc4a02e;return this[_0x124613(0x207)];}['init'](){const _0x529557=_0xc4a02e;this['_init']||(this[_0x529557(0x192)]=!0x0,this[_0x529557(0x250)]['sessionStatus$'][_0x529557(0x1ee)](_0x149d8b[_0x529557(0x1b3)](this[_0x529557(0x1e1)]))[_0x529557(0x228)](_0x2ad7c3=>{const _0x13f59e=_0x529557;switch(_0x2ad7c3){case _0xe899b4[_0x13f59e(0x22e)][_0x13f59e(0x19d)]:this[_0x13f59e(0x1ca)]();break;case _0xe899b4['SessionStatus'][_0x13f59e(0x226)]:this[_0x13f59e(0x1c9)]();break;}}),this[_0x529557(0x250)][_0x529557(0x1cc)][_0x529557(0x1ee)](_0x149d8b[_0x529557(0x1b3)](this[_0x529557(0x1e1)]))['subscribe'](_0x433e65=>{const _0xa09742=_0x529557,{eventID:_0x490f47}=_0x433e65;switch(_0x490f47){case _0xe29517[_0xa09742(0x186)][_0xa09742(0x210)]:this['_handleNewHost'](_0x433e65);break;case _0xe29517['CollaborationEvent'][_0xa09742(0x1fd)]:this[_0xa09742(0x193)](_0x433e65);break;case _0xe29517[_0xa09742(0x186)][_0xa09742(0x1c5)]:this[_0xa09742(0x235)]();break;case _0xe29517[_0xa09742(0x186)][_0xa09742(0x233)]:this[_0xa09742(0x1a5)](_0x433e65);break;}}));}[_0xc4a02e(0x22f)](){const _0x5bab21=_0xc4a02e;this[_0x5bab21(0x250)]['send']({'eventID':_0xe29517[_0x5bab21(0x186)][_0x5bab21(0x230)],'data':{'unitID':this[_0x5bab21(0x269)],'userID':this['_collabSession']['getMemberID']()}},this[_0x5bab21(0x269)]);}[_0xc4a02e(0x1d6)](){const _0x22969d=_0xc4a02e;this[_0x22969d(0x207)]===_0x22969d(0x229)&&(this[_0x22969d(0x22d)][_0x22969d(0x1c6)](_0x22969d(0x199)),this[_0x22969d(0x250)][_0x22969d(0x1f5)]({'eventID':_0xe29517[_0x22969d(0x186)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x22969d(0x269)]}},this[_0x22969d(0x269)]));}[_0xc4a02e(0x200)](){const _0x880fb0=_0xc4a02e;this[_0x880fb0(0x207)]==='not-following'&&(this[_0x880fb0(0x22d)][_0x880fb0(0x1c6)](_0x880fb0(0x189)),this['_startFollowing']());}[_0xc4a02e(0x1da)](){this['_status']==='following'&&this['_stopFollowing']();}[_0xc4a02e(0x242)](_0x55dfcd){const _0x32c656=_0xc4a02e,{presenter:_0x8ffd90}=_0x55dfcd['data'],_0x29edb7=this[_0x32c656(0x250)][_0x32c656(0x1d3)]();this[_0x32c656(0x1fe)]=_0x8ffd90,_0x8ffd90===_0x29edb7?(this[_0x32c656(0x1f8)](),this[_0x32c656(0x1d1)]()):this[_0x32c656(0x207)]!==_0x32c656(0x256)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0xc4a02e(0x1c2)](){const _0x32ade0=_0xc4a02e,_0x8206a8={'eventID':_0xe29517[_0x32ade0(0x186)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x32ade0(0x1f5)](_0x8206a8,this[_0x32ade0(0x269)]);}['_handleTerminate'](){const _0xc19d33=_0xc4a02e;this[_0xc19d33(0x1fe)]=null,this[_0xc19d33(0x207)]!==_0xc19d33(0x229)&&this[_0xc19d33(0x261)]();}['_handleNewChangeSets'](_0x85ef16){const _0x3eb736=_0xc4a02e;if(this[_0x3eb736(0x207)]===_0x3eb736(0x189)&&this['_presenter']===_0x85ef16['data'][_0x3eb736(0x19f)]){const _0x570298=_0xe29517['parseProtocolChangeset'](_0x85ef16[_0x3eb736(0x21b)])['mutations'][_0x3eb736(0x196)]()['find'](_0x1683f0=>_0x1683f0['id']===_0x5b7117[_0x3eb736(0x18d)]['id']);if(_0x570298){const _0x31e9b8=_0x570298[_0x3eb736(0x1dd)]['unitId'],_0x41b457=_0x570298['params']['sheet']['id'];setTimeout(()=>{const _0xfbcd4a=_0x3eb736;this[_0xfbcd4a(0x18b)][_0xfbcd4a(0x1f7)](_0x5b7117[_0xfbcd4a(0x1b4)]['id'],{'unitId':_0x31e9b8,'subUnitId':_0x41b457},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x133f3b=_0xc4a02e;this[_0x133f3b(0x22d)][_0x133f3b(0x1c6)]('presenting');const _0x4e91d6=new Map(),_0x2906db=this[_0x133f3b(0x1f3)]=new _0x20c1f7['DisposableCollection']();_0x2906db[_0x133f3b(0x23c)](_0x20c1f7[_0x133f3b(0x1bf)](()=>{const _0x16ba95=_0x133f3b;_0x4e91d6['forEach'](_0x43e371=>_0x43e371[_0x16ba95(0x1ed)]()),_0x4e91d6[_0x16ba95(0x188)]();})),_0x2906db[_0x133f3b(0x23c)](this[_0x133f3b(0x18b)][_0x133f3b(0x1d7)](_0x28388f=>{const _0xb15dfb=_0x133f3b;var _0x1b37df;if(_0x28388f[_0xb15dfb(0x24c)]!==_0x20c1f7[_0xb15dfb(0x259)][_0xb15dfb(0x1b0)]||!this[_0xb15dfb(0x24b)][_0xb15dfb(0x195)](_0x28388f['id']))return;const {id:_0xad5c70}=_0x28388f;let _0x83b44b;_0x4e91d6['has'](_0xad5c70)?_0x83b44b=_0x4e91d6[_0xb15dfb(0x244)](_0xad5c70):(_0x83b44b=new _0x1fb564[(_0xb15dfb(0x1b5))](),_0x4e91d6[_0xb15dfb(0x1ff)](_0xad5c70,_0x83b44b),_0x83b44b['pipe'](_0x149d8b[_0xb15dfb(0x1bd)]((_0x1b37df=this['_configService'][_0xb15dfb(0x24f)](_0x5f260d))!=null?_0x1b37df:_0x4366e9,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5bb23e=>{const _0x445630=_0xb15dfb;this['_collabSession'][_0x445630(0x1f5)]({'eventID':_0xe29517[_0x445630(0x186)][_0x445630(0x1fd)],'data':{'unitID':this[_0x445630(0x269)],'operations':{[_0x5bb23e['id']]:{'id':_0x5bb23e['id'],'params':JSON['stringify'](_0x5bb23e[_0x445630(0x1dd)])}}}},this[_0x445630(0x269)]);})),_0x83b44b['next'](_0x28388f);})),this[_0x133f3b(0x24b)][_0x133f3b(0x21a)](this[_0x133f3b(0x269)])['forEach'](_0x4e89bb=>this[_0x133f3b(0x250)]['send']({'eventID':_0xe29517[_0x133f3b(0x186)][_0x133f3b(0x1fd)],'data':{'unitID':this[_0x133f3b(0x269)],'operations':{[_0x4e89bb['id']]:{'id':_0x4e89bb['id'],'params':JSON['stringify'](_0x4e89bb[_0x133f3b(0x1dd)])}}}},this['_unitID']));}[_0xc4a02e(0x19a)](){const _0x1c866c=_0xc4a02e;var _0xe03ef9;this[_0x1c866c(0x22d)][_0x1c866c(0x1c6)](_0x1c866c(0x199)),(_0xe03ef9=this['_commandDisposable'])==null||_0xe03ef9[_0x1c866c(0x223)](),this[_0x1c866c(0x1f3)]=null;}['_startFollowing'](){const _0x5c1c4c=_0xc4a02e;var _0x4eca16;(_0x4eca16=this[_0x5c1c4c(0x1f3)])==null||_0x4eca16[_0x5c1c4c(0x223)](),this[_0x5c1c4c(0x22d)][_0x5c1c4c(0x1c6)](_0x5c1c4c(0x189));}[_0xc4a02e(0x261)](){const _0x4d1ea2=_0xc4a02e;var _0x3cbbbe;this[_0x4d1ea2(0x22d)][_0x4d1ea2(0x1c6)](_0x4d1ea2(0x199)),(_0x3cbbbe=this[_0x4d1ea2(0x1f3)])==null||_0x3cbbbe[_0x4d1ea2(0x223)](),this[_0x4d1ea2(0x1f3)]=null;}[_0xc4a02e(0x1f8)](){const _0x46e341=_0xc4a02e;var _0x1bb208;this[_0x46e341(0x22d)][_0x46e341(0x1c6)]('not-following'),(_0x1bb208=this[_0x46e341(0x1f3)])==null||_0x1bb208[_0x46e341(0x223)]();}['_handleOperation'](_0x4a2009){const _0x781de1=_0xc4a02e;if([_0x781de1(0x229),_0x781de1(0x256),_0x781de1(0x187)]['includes'](this['_status'])||!_0x4a2009[_0x781de1(0x21b)][_0x781de1(0x23e)]||_0x4a2009[_0x781de1(0x21b)][_0x781de1(0x23e)]===this[_0x781de1(0x250)][_0x781de1(0x1d3)]())return;this['_status']===_0x781de1(0x199)&&this[_0x781de1(0x24d)]();const _0x130aa1=_0x4a2009['data']['operations'];Object[_0x781de1(0x253)](_0x130aa1)[_0x781de1(0x1f9)](_0x125734=>{const _0x13d7c2=_0x781de1;this['_commandService'][_0x13d7c2(0x1f7)](_0x125734['id'],_0x125734[_0x13d7c2(0x1dd)]?JSON[_0x13d7c2(0x25f)](_0x125734[_0x13d7c2(0x1dd)]):null,{'fromCollab':!0x0});});}[_0xc4a02e(0x1ca)](){const _0xfb7248=_0xc4a02e;var _0x5dfd30;this[_0xfb7248(0x22d)]['next'](_0xfb7248(0x187)),(_0x5dfd30=this[_0xfb7248(0x1f3)])==null||_0x5dfd30[_0xfb7248(0x223)]();}[_0xc4a02e(0x1c9)](){const _0x264f96=_0xc4a02e;this['_status$'][_0x264f96(0x1c6)](_0x264f96(0x199)),this[_0x264f96(0x1c2)]();}},_0x4c1693[_0xc4a02e(0x1a1)]=_0x2f758a([_0x4f1cc4(0x2,_0x20c1f7[_0xc4a02e(0x209)]),_0x4f1cc4(0x3,_0x20c1f7[_0xc4a02e(0x25d)](_0x1b3fb8)),_0x4f1cc4(0x4,_0x20c1f7[_0xc4a02e(0x219)])],_0x4c1693[_0xc4a02e(0x1a1)]);function _0x1cad71(){const _0x2f0449=_0xc4a02e,_0x10bbb7=_0x54245a['useDependency'](_0x4c1693[_0x2f0449(0x1ad)]),_0xf4ddf5=_0x54245a['useDependency'](_0x20c1f7['IUniverInstanceService']),_0x3292cc=_0x54245a['useObservable'](()=>_0xf4ddf5[_0x2f0449(0x1e6)](_0x20c1f7[_0x2f0449(0x267)][_0x2f0449(0x1fa)]),void 0x0,!0x1,[]),[_0x18159e,_0x5a052a]=_0x5f729d[_0x2f0449(0x21c)](null),[_0x396bb3,_0x1e780e]=_0x5f729d['useState'](_0x3426aa[_0x2f0449(0x203)]),_0x203112=_0x5f729d['useRef'](null);return _0x5f729d[_0x2f0449(0x263)](()=>(_0x3292cc&&_0x10bbb7[_0x2f0449(0x197)](_0x3292cc[_0x2f0449(0x20b)]())['then'](_0x1d1beb=>{const _0x58cc91=_0x2f0449;_0x5a052a(_0x1d1beb),_0x203112['current']=_0x1d1beb['status$'][_0x58cc91(0x228)](_0x3ee84a=>{_0x1e780e(_0x3ee84a);});}),()=>{const _0x2575df=_0x2f0449;var _0x582281;(_0x582281=_0x203112[_0x2575df(0x1ea)])==null||_0x582281[_0x2575df(0x206)](),_0x203112[_0x2575df(0x1ea)]=null;}),[_0x3292cc,_0x10bbb7]),_0x18159e?_0xc7886b['jsx'](_0x2ba6f4[_0x2f0449(0x202)],{'align':_0x2f0449(0x1a9),'disabled':_0x396bb3===_0x3426aa[_0x2f0449(0x19d)],'className':_0x2f0449(0x20d),'overlay':_0xc7886b[_0x2f0449(0x1e3)](_0x3f18ba,{'status':_0x396bb3,'coordinator':_0x18159e}),'children':_0xc7886b[_0x2f0449(0x1e3)](_0x2f0449(0x19e),{'className':_0x2ba6f4[_0x2f0449(0x184)](_0x2f0449(0x237),{'univer-cursor-not-allowed':_0x396bb3===_0x3426aa[_0x2f0449(0x19d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x396bb3!==_0x3426aa['OFFLINE']}),'type':_0x2f0449(0x19e),'children':_0xc7886b[_0x2f0449(0x1e3)](_0x58e8ce,{'className':_0x2f0449(0x204)})})}):null;}function _0x3f18ba(_0x59b155){const _0xdafced=_0xc4a02e,{status:_0x4e4a1f,coordinator:_0x192710}=_0x59b155;switch(_0x4e4a1f){case _0x3426aa[_0xdafced(0x203)]:return _0xc7886b[_0xdafced(0x1e3)](_0x2b92d8,{'coordinator':_0x192710});case _0x3426aa['FOLLOWING']:return _0xc7886b[_0xdafced(0x1e3)](_0x2b56ad,{'coordinator':_0x192710});case _0x3426aa['NOT_FOLLOWING']:return _0xc7886b[_0xdafced(0x1e3)](_0x214e7f,{'coordinator':_0x192710});case _0x3426aa[_0xdafced(0x19d)]:return _0xc7886b[_0xdafced(0x1e3)](_0x3990cf,{});case _0x3426aa[_0xdafced(0x248)]:return _0xc7886b[_0xdafced(0x1e3)](_0x7bfe81,{'coordinator':_0x192710});default:return null;}}function _0x2b92d8(_0xb0a576){const _0x23c6b5=_0xc4a02e,{coordinator:_0x67c939}=_0xb0a576;return _0xc7886b['jsxs'](_0xc7886b['Fragment'],{'children':[_0xc7886b[_0x23c6b5(0x1e3)]('div',{'className':_0x23c6b5(0x225),'children':_0x23c6b5(0x1ec)}),_0xc7886b[_0x23c6b5(0x1e3)](_0x2ba6f4[_0x23c6b5(0x25b)],{'onClick':()=>_0x67c939[_0x23c6b5(0x22f)](),'children':'Start'})]});}function _0x2b56ad(_0x4a546d){const _0x2406d1=_0xc4a02e,{coordinator:_0x1cf486}=_0x4a546d;return _0xc7886b[_0x2406d1(0x1fb)](_0xc7886b[_0x2406d1(0x191)],{'children':[_0xc7886b['jsx'](_0x2406d1(0x1fc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2406d1(0x214)}),_0xc7886b['jsx'](_0x2ba6f4[_0x2406d1(0x25b)],{'onClick':()=>_0x1cf486[_0x2406d1(0x1da)](),'children':'Stop\x20following'})]});}function _0x214e7f(_0x98c6f2){const _0x37c239=_0xc4a02e,{coordinator:_0xb1c67d}=_0x98c6f2;return _0xc7886b['jsxs'](_0xc7886b[_0x37c239(0x191)],{'children':[_0xc7886b[_0x37c239(0x1e3)]('div',{'className':_0x37c239(0x225),'children':_0x37c239(0x22b)}),_0xc7886b[_0x37c239(0x1e3)](_0x2ba6f4[_0x37c239(0x25b)],{'variant':_0x37c239(0x1ae),'onClick':()=>_0xb1c67d['startFollowing'](),'children':_0x37c239(0x1b7)})]});}function _0x7bfe81(_0x42fda7){const _0x4c6ebd=_0xc4a02e,{coordinator:_0x12ef90}=_0x42fda7;return _0xc7886b[_0x4c6ebd(0x1fb)](_0xc7886b[_0x4c6ebd(0x191)],{'children':[_0xc7886b['jsx'](_0x4c6ebd(0x1fc),{'className':_0x4c6ebd(0x225),'children':_0x4c6ebd(0x1f2)}),_0xc7886b['jsx'](_0x2ba6f4[_0x4c6ebd(0x25b)],{'variant':_0x4c6ebd(0x1eb),'onClick':()=>_0x12ef90[_0x4c6ebd(0x1d6)](),'children':_0x4c6ebd(0x241)})]});}function _0x3990cf(){const _0x40654b=_0xc4a02e;return _0xc7886b[_0x40654b(0x1e3)](_0xc7886b[_0x40654b(0x191)],{'children':_0x40654b(0x205)});}var _0x52595e=Object['getOwnPropertyDescriptor'],_0x1bbafb=(_0x3d97d0,_0x5d3be6,_0x39536a,_0x1d26aa)=>{const _0x59c089=_0xc4a02e;for(var _0x2417c5=_0x1d26aa>0x1?void 0x0:_0x1d26aa?_0x52595e(_0x5d3be6,_0x39536a):_0x5d3be6,_0x5416ba=_0x3d97d0[_0x59c089(0x20e)]-0x1,_0x44ec1d;_0x5416ba>=0x0;_0x5416ba--)(_0x44ec1d=_0x3d97d0[_0x5416ba])&&(_0x2417c5=_0x44ec1d(_0x2417c5)||_0x2417c5);return _0x2417c5;},_0x1c2f4f=(_0x350c43,_0x147b01)=>(_0x38d8e9,_0x25d24f)=>_0x147b01(_0x38d8e9,_0x25d24f,_0x350c43);_0x4c1693[_0xc4a02e(0x1e2)]=class extends _0x20c1f7[_0xc4a02e(0x262)]{constructor(_0x9c4f9a,_0x367ca7){const _0x5c4714=_0xc4a02e;super(),this['_injector']=_0x9c4f9a,this[_0x5c4714(0x19b)]=_0x367ca7,this[_0x5c4714(0x185)]();}[_0xc4a02e(0x185)](){const _0x2aa91a=_0xc4a02e;this[_0x2aa91a(0x1f4)](this[_0x2aa91a(0x19b)][_0x2aa91a(0x268)](_0x54245a[_0x2aa91a(0x221)][_0x2aa91a(0x222)],()=>_0x54245a[_0x2aa91a(0x1e8)](_0x1cad71,this[_0x2aa91a(0x1aa)])));}},_0x4c1693[_0xc4a02e(0x1e2)]=_0x1bbafb([_0x1c2f4f(0x0,_0x20c1f7[_0xc4a02e(0x25d)](_0x20c1f7[_0xc4a02e(0x239)])),_0x1c2f4f(0x1,_0x54245a[_0xc4a02e(0x1cb)])],_0x4c1693[_0xc4a02e(0x1e2)]);const _0x5e9959=_0xc4a02e(0x18e),_0x4b6236={};var _0x5973da=Object[_0xc4a02e(0x25e)],_0x305720=(_0x3b167a,_0x10dbd2,_0x34c4a1,_0x4e0229)=>{const _0x29393b=_0xc4a02e;for(var _0x5e4854=_0x4e0229>0x1?void 0x0:_0x4e0229?_0x5973da(_0x10dbd2,_0x34c4a1):_0x10dbd2,_0x395d90=_0x3b167a[_0x29393b(0x20e)]-0x1,_0x3dac46;_0x395d90>=0x0;_0x395d90--)(_0x3dac46=_0x3b167a[_0x395d90])&&(_0x5e4854=_0x3dac46(_0x5e4854)||_0x5e4854);return _0x5e4854;},_0x4c7eb9=(_0x42cef8,_0x4d1292)=>(_0x401851,_0x1c55a6)=>_0x4d1292(_0x401851,_0x1c55a6,_0x42cef8);let _0x54e732=class extends _0x20c1f7[_0xc4a02e(0x262)]{constructor(_0x35ecef){const _0x5421a7=_0xc4a02e;super(),this[_0x5421a7(0x24b)]=_0x35ecef,this[_0x5421a7(0x192)]();}['_init'](){const _0x4d1914=_0xc4a02e;[_0xaa5d52[_0x4d1914(0x1ef)]['id'],_0xaa5d52[_0x4d1914(0x258)]['id'],_0x5b7117['SetWorksheetActiveOperation']['id']][_0x4d1914(0x1f9)](_0x3dac90=>{const _0x59e849=_0x4d1914;this[_0x59e849(0x1f4)](this['_liveShareService'][_0x59e849(0x26a)](_0x3dac90));});}};_0x54e732=_0x305720([_0x4c7eb9(0x0,_0x20c1f7[_0xc4a02e(0x25d)](_0x1b3fb8))],_0x54e732);var _0x5a2111=Object[_0xc4a02e(0x1e9)],_0x1424e3=Object[_0xc4a02e(0x25e)],_0x4027dc=(_0xb6479a,_0xf7de93,_0x16ba15)=>_0xf7de93 in _0xb6479a?_0x5a2111(_0xb6479a,_0xf7de93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16ba15}):_0xb6479a[_0xf7de93]=_0x16ba15,_0x255636=(_0x38e604,_0x2ad3b5,_0x259bfd,_0x2f5301)=>{const _0x5e17fe=_0xc4a02e;for(var _0x5aca99=_0x2f5301>0x1?void 0x0:_0x2f5301?_0x1424e3(_0x2ad3b5,_0x259bfd):_0x2ad3b5,_0x44cb4e=_0x38e604[_0x5e17fe(0x20e)]-0x1,_0x32c5b6;_0x44cb4e>=0x0;_0x44cb4e--)(_0x32c5b6=_0x38e604[_0x44cb4e])&&(_0x5aca99=_0x32c5b6(_0x5aca99)||_0x5aca99);return _0x5aca99;},_0x5cafc1=(_0x4ef20a,_0x18afe4)=>(_0x4a1d7d,_0xc23e97)=>_0x18afe4(_0x4a1d7d,_0xc23e97,_0x4ef20a),_0x564e34=(_0x2b6fdd,_0x57ea7a,_0x188e12)=>_0x4027dc(_0x2b6fdd,typeof _0x57ea7a!=_0xc4a02e(0x1a6)?_0x57ea7a+'':_0x57ea7a,_0x188e12);const _0x37460b=_0xc4a02e(0x183);_0x4c1693[_0xc4a02e(0x20a)]=class extends _0x20c1f7['Plugin']{constructor(_0x1fbf7f=_0x4b6236,_0x5ca86e,_0x5024f8){const _0x1d4473=_0xc4a02e;super(),this['_config']=_0x1fbf7f,this[_0x1d4473(0x1aa)]=_0x5ca86e,this[_0x1d4473(0x215)]=_0x5024f8;const {..._0x2c4091}=_0x20c1f7[_0x1d4473(0x1a0)]({},_0x4b6236,this[_0x1d4473(0x1a4)]);this[_0x1d4473(0x215)][_0x1d4473(0x1c4)](_0x5e9959,_0x2c4091);}[_0xc4a02e(0x1cf)](){const _0x4a2096=_0xc4a02e;_0x20c1f7[_0x4a2096(0x249)](this[_0x4a2096(0x1aa)],_0x20c1f7[_0x4a2096(0x1db)]([[_0x1b3fb8],[_0x4c1693[_0x4a2096(0x1ad)]],[_0x54e732],[_0x4c1693[_0x4a2096(0x1e2)]]],this[_0x4a2096(0x1a4)][_0x4a2096(0x211)])),_0x20c1f7[_0x4a2096(0x234)](this['_injector'],[[_0x54e732]]);}['onRendered'](){const _0x3b9950=_0xc4a02e;_0x20c1f7[_0x3b9950(0x234)](this[_0x3b9950(0x1aa)],[[_0x4c1693[_0x3b9950(0x1e2)]]]);}},_0x564e34(_0x4c1693[_0xc4a02e(0x20a)],_0xc4a02e(0x24c),_0x20c1f7[_0xc4a02e(0x267)][_0xc4a02e(0x20c)]),_0x564e34(_0x4c1693[_0xc4a02e(0x20a)],_0xc4a02e(0x190),_0x37460b),_0x4c1693['UniverLiveSharePlugin']=_0x255636([_0x20c1f7[_0xc4a02e(0x216)](_0xe899b4[_0xc4a02e(0x264)]),_0x5cafc1(0x1,_0x20c1f7['Inject'](_0x20c1f7[_0xc4a02e(0x239)])),_0x5cafc1(0x2,_0x20c1f7['IConfigService'])],_0x4c1693[_0xc4a02e(0x20a)]),_0x4c1693[_0xc4a02e(0x212)]=_0x1cad71,_0x4c1693[_0xc4a02e(0x21f)]=_0x1b3fb8,_0x4c1693[_0xc4a02e(0x217)]=_0x3426aa,Object[_0xc4a02e(0x1e9)](_0x4c1693,Symbol[_0xc4a02e(0x201)],{'value':'Module'});}));
1
+ function _0x26be(_0x3c0141,_0x47df5e){const _0x40528d=_0x4052();return _0x26be=function(_0x26be72,_0xc68b0e){_0x26be72=_0x26be72-0x1a3;let _0x2f769d=_0x40528d[_0x26be72];return _0x2f769d;},_0x26be(_0x3c0141,_0x47df5e);}function _0x4052(){const _0x46e57a=['@univerjs/ui','univer-size-4','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','CollaborationEvent','delete','presenter','_unitID','LiveShareController','LIVESHARE_TERMINATE','send','UniverSheetsUi','unsubscribe','Fragment','12cVRLRD','registerComponent','react/jsx-runtime','Subject','current','getUnitId','takeUntil','_startFollowing','getValue','_liveShareService','sheet','operators','_beIdle','add','IUniverInstanceService','LiveShareService','getTypeOfUnitDisposed$','You\x27re\x20not\x20following\x20the\x20presenter','mergeOverrideWithDependencies','assign','tryStartPresenting','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','LiveShareIcon','defineProperty','LiveShareStatus','shouldShareOperation','ICommandService','set','DisposableCollection','asObservable','You\x27re\x20presenting\x20the\x20document','DependentOn','117954wkvIqs','@univerjs-pro/collaboration','onStarting','_handleOnline','InsertSheetMutation','has','_injector','executeCommand','UniverLiveSharePlugin','requireSession','complete','toDisposable','colorChannel1','getConfig','Disposable','useDependency','@univerjs-pro/collaboration-client','idSuffix','SessionStatus','default','length','useRef','substring','button','currentColor','IDLE','react','IConfigService','onRendered','setConfig','getMemberID','LiveShareCoordinator','forwardRef','values','_fetchOperations','_reporters','_handleOperation','subscribe','toString','following','text','tag','0\x200\x2017\x2017','Injector','from','clsx','_sharedOperations','dispose','createElement','getLiveShareCoordinatorSync','exports','http://www.w3.org/2000/svg','5618696stLPUj','204ExeLEr','pipe','_entities','rxjs','symbol','getLiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UniverIcon','Start','div','registerDependencies','_config','function','NOT_FOLLOWING','xlink:href','React','_init','UNIVER_LIVE_SHARE_PLUGIN','UniverSheets','entries','_handleNewChangeSets','idle','not-following','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','then','mask','svg','displayName','_startLiveShareCoordinator','_handleNewHost','attrs','defs','throttleTime','NEW_CHANGESETS','CollaborationSessionService','live-share.config','live-share-icon','sessionStatus$','override','Start\x20following','_presenter','_univerInstanceService','type','_startPresenting','data','presenting','getCurrentTypeOfUnit$','getInitialStates','LIVESHARE_OPERATION','status$','getTypeOfUnitAdded$','_configService','_status$','37490FoEZjI','Inject','get','42LHrpTE','UniverProCollaboration','BuiltInUIPart','SetWorksheetActiveOperation','evenodd','replace','parseProtocolChangeset','Present\x20this\x20document','event$','You\x27are\x20offline.','10dppwOk','_commandService','SetScrollOperation','startFollowing','CommandType','onCommandExecuted','getOwnPropertyDescriptor','url(#$1','stopPresenting','params','UniverCollaborationClientPlugin','UniverDesign','LIVESHARE_REQUEST_HOST','Stop\x20following','Button','forEach','mutations','3592281OeSsrJ','object','@univerjs/core','SAME_OPERATION_SHARE_INTERVAL','merge','_collabSession','Module','FOLLOWING','jsxs','_mountLiveShare','map','IUIPartsService','LIVESHARE_NEW_HOST','34xthsFG','RxDisposable','OFFLINE','next','HEADER_MENU','includes','@univerjs/design','174660eZLHwG','UNIVER_UNKNOWN','path','useState','40160LFfBUu','jsx','_handleOffline','dispose$','reverse','children','_stopPresenting','LIVESHARE_FETCH_OPERATIONS','registerSharedOperation','_handleTerminate','stringify','useEffect','UniverCore','UniverInstanceType','_commandDisposable','LiveShare','4781367AShDde','_stopFollowing','fill','createInstance','stopFollowing','1em','rxjs/operators','univer-mb-3\x20univer-w-full\x20univer-text-sm','clear','getStatus','univerjs-icon\x20univerjs-icon-','_collabSessionService','offline','touchDependencies','UNIVER_SHEET','_status','DesktopLiveShareController','PRESENTING','init'];_0x4052=function(){return _0x46e57a;};return _0x4052();}(function(_0x57d463,_0x32093e){const _0x19ff1e=_0x26be,_0x17ecf2=_0x57d463();while(!![]){try{const _0x55fea0=parseInt(_0x19ff1e(0x1b3))/0x1*(-parseInt(_0x19ff1e(0x1de))/0x2)+-parseInt(_0x19ff1e(0x26f))/0x3*(-parseInt(_0x19ff1e(0x1e9))/0x4)+parseInt(_0x19ff1e(0x1e5))/0x5+-parseInt(_0x19ff1e(0x23a))/0x6*(-parseInt(_0x19ff1e(0x1b6))/0x7)+-parseInt(_0x19ff1e(0x26e))/0x8+-parseInt(_0x19ff1e(0x1f9))/0x9*(-parseInt(_0x19ff1e(0x1c0))/0xa)+-parseInt(_0x19ff1e(0x1d1))/0xb*(-parseInt(_0x19ff1e(0x219))/0xc);if(_0x55fea0===_0x32093e)break;else _0x17ecf2['push'](_0x17ecf2['shift']());}catch(_0x1590f7){_0x17ecf2['push'](_0x17ecf2['shift']());}}}(_0x4052,0x565ed),function(_0x316cfc,_0x1de4c1){const _0xa0b79=_0x26be;typeof exports==_0xa0b79(0x1d2)&&typeof module<'u'?_0x1de4c1(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==_0xa0b79(0x27b)&&define['amd']?define([_0xa0b79(0x26c),_0xa0b79(0x1d3),_0xa0b79(0x20c),_0xa0b79(0x21b),_0xa0b79(0x1e4),_0xa0b79(0x254),_0xa0b79(0x23b),_0xa0b79(0x24a),'@univerjs/sheets','rxjs',_0xa0b79(0x1ff),'@univerjs/sheets-ui'],_0x1de4c1):(_0x316cfc=typeof globalThis<'u'?globalThis:_0x316cfc||self,_0x1de4c1(_0x316cfc['UniverProLiveShare']={},_0x316cfc[_0xa0b79(0x1f5)],_0x316cfc['UniverUi'],_0x316cfc[_0xa0b79(0x27e)],_0x316cfc[_0xa0b79(0x1cb)],_0x316cfc['React'],_0x316cfc[_0xa0b79(0x1b7)],_0x316cfc['UniverProCollaborationClient'],_0x316cfc[_0xa0b79(0x281)],_0x316cfc[_0xa0b79(0x272)],_0x316cfc[_0xa0b79(0x272)][_0xa0b79(0x224)],_0x316cfc[_0xa0b79(0x216)]));}(this,function(_0x13d81c,_0x1d786e,_0xf1bd4c,_0x35cb2b,_0x446433,_0x8c7f55,_0x1fca55,_0xc0c90e,_0x15e0c1,_0x321dc8,_0x3c765f,_0x2dd477){'use strict';const _0x2a0c15=_0x26be;var _0x353feb=Object[_0x2a0c15(0x231)],_0x4329df=(_0x161b67,_0x262591,_0x303180)=>_0x262591 in _0x161b67?_0x353feb(_0x161b67,_0x262591,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x303180}):_0x161b67[_0x262591]=_0x303180,_0x2a87fc=(_0xcc9999,_0x3e28d2,_0x58ab3b)=>_0x4329df(_0xcc9999,typeof _0x3e28d2!=_0x2a0c15(0x273)?_0x3e28d2+'':_0x3e28d2,_0x58ab3b);function _0x22604d({ref:_0x4f3e07,..._0x2c8da8}){const _0x1695fe=_0x2a0c15,{icon:_0x46a881,id:_0x5867dd,className:_0x35be50,extend:_0x273420,..._0xbd261a}=_0x2c8da8,_0x1f06f7=(_0x1695fe(0x203)+_0x5867dd+'\x20'+(_0x35be50||''))['trim'](),_0x9d07b7=_0x8c7f55[_0x1695fe(0x24f)]('_'+_0x3c5743());return _0x90bea2(_0x46a881,''+_0x5867dd,{'defIds':_0x46a881['defIds'],'idSuffix':_0x9d07b7[_0x1695fe(0x21d)]},{'ref':_0x4f3e07,'className':_0x1f06f7,..._0xbd261a},_0x273420);}function _0x90bea2(_0x30bc8f,_0x56229b,_0x453a5c,_0xa94e2e,_0x11cf72){const _0x2d280f=_0x2a0c15;return _0x8c7f55[_0x2d280f(0x26a)](_0x30bc8f[_0x2d280f(0x263)],{'key':_0x56229b,..._0x43c647(_0x30bc8f,_0x453a5c,_0x11cf72),..._0xa94e2e},(_0x4c2eb6(_0x30bc8f,_0x453a5c)['children']||[])[_0x2d280f(0x1db)]((_0x20041d,_0x1fe60c)=>_0x90bea2(_0x20041d,_0x56229b+'-'+_0x30bc8f['tag']+'-'+_0x1fe60c,_0x453a5c,void 0x0,_0x11cf72)));}function _0x43c647(_0x589de6,_0x3bcca6,_0x47b444){const _0x4ac327=_0x2a0c15,_0x25405d={..._0x589de6['attrs']};_0x47b444!=null&&_0x47b444[_0x4ac327(0x246)]&&_0x25405d[_0x4ac327(0x1fb)]===_0x4ac327(0x246)&&(_0x25405d['fill']=_0x47b444['colorChannel1']),_0x589de6[_0x4ac327(0x263)]===_0x4ac327(0x288)&&_0x25405d['id']&&(_0x25405d['id']=_0x25405d['id']+_0x3bcca6[_0x4ac327(0x24b)]),Object[_0x4ac327(0x282)](_0x25405d)['forEach'](([_0x5c59b4,_0x5a4200])=>{const _0x448a27=_0x4ac327;_0x5c59b4==='mask'&&typeof _0x5a4200=='string'&&(_0x25405d[_0x5c59b4]=_0x5a4200['replace'](/url\(#(.*)\)/,_0x448a27(0x1c7)+_0x3bcca6['idSuffix']+')'));});const {defIds:_0x427f75}=_0x3bcca6;return!_0x427f75||_0x427f75[_0x4ac327(0x24e)]===0x0||(_0x589de6['tag']==='use'&&_0x25405d[_0x4ac327(0x27d)]&&(_0x25405d[_0x4ac327(0x27d)]=_0x25405d[_0x4ac327(0x27d)]+_0x3bcca6[_0x4ac327(0x24b)]),Object[_0x4ac327(0x282)](_0x25405d)[_0x4ac327(0x1cf)](([_0x2d58fd,_0x1267cb])=>{const _0x4aaf62=_0x4ac327;typeof _0x1267cb=='string'&&(_0x25405d[_0x2d58fd]=_0x1267cb[_0x4aaf62(0x1bb)](/url\(#(.*)\)/,_0x4aaf62(0x1c7)+_0x3bcca6[_0x4aaf62(0x24b)]+')'));})),_0x25405d;}function _0x4c2eb6(_0x29adf2,_0x58a08c){const _0x520c23=_0x2a0c15;var _0x8ae63c;const {defIds:_0x5c6099}=_0x58a08c;return!_0x5c6099||_0x5c6099[_0x520c23(0x24e)]===0x0?_0x29adf2:_0x29adf2[_0x520c23(0x263)]===_0x520c23(0x28e)&&((_0x8ae63c=_0x29adf2[_0x520c23(0x1ee)])!=null&&_0x8ae63c[_0x520c23(0x24e)])?{..._0x29adf2,'children':_0x29adf2[_0x520c23(0x1ee)][_0x520c23(0x1db)](_0x378434=>typeof _0x378434[_0x520c23(0x28d)]['id']=='string'&&_0x5c6099&&_0x5c6099[_0x520c23(0x1e3)](_0x378434['attrs']['id'])?{..._0x378434,'attrs':{..._0x378434[_0x520c23(0x28d)],'id':_0x378434[_0x520c23(0x28d)]['id']+_0x58a08c[_0x520c23(0x24b)]}}:_0x378434)}:_0x29adf2;}function _0x3c5743(){const _0x445d50=_0x2a0c15;return Math['random']()[_0x445d50(0x260)](0x24)[_0x445d50(0x250)](0x2,0x8);}_0x22604d[_0x2a0c15(0x28a)]=_0x2a0c15(0x276);const _0xa31d67={'tag':_0x2a0c15(0x289),'attrs':{'xmlns':_0x2a0c15(0x26d),'fill':'none','viewBox':_0x2a0c15(0x264),'width':_0x2a0c15(0x1fe),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x2a0c15(0x252),'d':_0x2a0c15(0x22e)}},{'tag':_0x2a0c15(0x1e7),'attrs':{'fill':'currentColor','d':_0x2a0c15(0x20e),'fillRule':_0x2a0c15(0x1ba),'clipRule':'evenodd'}}]},_0x54d1c5=_0x8c7f55[_0x2a0c15(0x25a)](function(_0x13eb99,_0x1aa48a){const _0x3f0261=_0x2a0c15;return _0x8c7f55['createElement'](_0x22604d,Object[_0x3f0261(0x22c)]({},_0x13eb99,{'id':_0x3f0261(0x293),'ref':_0x1aa48a,'icon':_0xa31d67}));});_0x54d1c5[_0x2a0c15(0x28a)]=_0x2a0c15(0x230);class _0x46fbca extends _0x1d786e[_0x2a0c15(0x248)]{constructor(){const _0x40eba5=_0x2a0c15;super(...arguments),_0x2a87fc(this,_0x40eba5(0x268),new Set()),_0x2a87fc(this,_0x40eba5(0x25d),new Set());}['registerSharedOperation'](_0x36c987){const _0x4f4717=_0x2a0c15;return this['_sharedOperations'][_0x4f4717(0x226)](_0x36c987),_0x1d786e[_0x4f4717(0x245)](()=>this['_sharedOperations']['delete'](_0x36c987));}['registerInitialStateReporter'](_0xe85188){const _0x215b37=_0x2a0c15;return this[_0x215b37(0x25d)][_0x215b37(0x226)](_0xe85188),_0x1d786e[_0x215b37(0x245)](()=>this[_0x215b37(0x25d)][_0x215b37(0x210)](_0xe85188));}[_0x2a0c15(0x233)](_0x5ed5e0){const _0x23785a=_0x2a0c15;return this[_0x23785a(0x268)][_0x23785a(0x23f)](_0x5ed5e0);}[_0x2a0c15(0x1ad)](_0x55df76){const _0x3696cc=_0x2a0c15;return Array[_0x3696cc(0x266)](this[_0x3696cc(0x25d)])[_0x3696cc(0x1db)](_0x2ee763=>_0x2ee763(_0x55df76));}}var _0x358647=Object[_0x2a0c15(0x1c6)],_0x28ac43=(_0x11622e,_0x3bef8c,_0xb46b36,_0x547b4a)=>{const _0x4fb9ee=_0x2a0c15;for(var _0x4e36a0=_0x547b4a>0x1?void 0x0:_0x547b4a?_0x358647(_0x3bef8c,_0xb46b36):_0x3bef8c,_0x1fc924=_0x11622e[_0x4fb9ee(0x24e)]-0x1,_0x5711e4;_0x1fc924>=0x0;_0x1fc924--)(_0x5711e4=_0x11622e[_0x1fc924])&&(_0x4e36a0=_0x5711e4(_0x4e36a0)||_0x4e36a0);return _0x4e36a0;},_0x2dac69=(_0x248e24,_0x3c62e5)=>(_0xd6baa6,_0x159396)=>_0x3c62e5(_0xd6baa6,_0x159396,_0x248e24);_0x13d81c[_0x2a0c15(0x213)]=class extends _0x1d786e[_0x2a0c15(0x1df)]{constructor(_0x14022f,_0x2c4fd6,_0x477bfc){const _0x4e8239=_0x2a0c15;super(),_0x2a87fc(this,'_entities',new Map()),(this[_0x4e8239(0x1a7)]=_0x14022f,this[_0x4e8239(0x240)]=_0x2c4fd6,this[_0x4e8239(0x204)]=_0x477bfc,this[_0x4e8239(0x27f)]());}async[_0x2a0c15(0x274)](_0x30175e){const _0x5b09ae=_0x2a0c15;return this[_0x5b09ae(0x271)][_0x5b09ae(0x23f)](_0x30175e)||await this[_0x5b09ae(0x28b)](_0x30175e),this[_0x5b09ae(0x271)][_0x5b09ae(0x1b5)](_0x30175e);}[_0x2a0c15(0x26b)](_0x29ef99){const _0xbcd3ef=_0x2a0c15;var _0x2cd477;return(_0x2cd477=this[_0xbcd3ef(0x271)][_0xbcd3ef(0x1b5)](_0x29ef99))!=null?_0x2cd477:null;}['_init'](){const _0x21f1ff=_0x2a0c15;this[_0x21f1ff(0x1a7)][_0x21f1ff(0x1b0)](_0x1d786e[_0x21f1ff(0x1f6)][_0x21f1ff(0x207)])[_0x21f1ff(0x270)](_0x3c765f[_0x21f1ff(0x21f)](this[_0x21f1ff(0x1ec)]))[_0x21f1ff(0x25f)](async _0x2de74f=>{const _0x5f567e=_0x21f1ff,_0x70080f=_0x2de74f[_0x5f567e(0x21e)]();this[_0x5f567e(0x271)][_0x5f567e(0x23f)](_0x70080f)||this[_0x5f567e(0x28b)](_0x70080f);}),this[_0x21f1ff(0x1a7)][_0x21f1ff(0x229)](_0x1d786e[_0x21f1ff(0x1f6)][_0x21f1ff(0x207)])[_0x21f1ff(0x270)](_0x3c765f['takeUntil'](this[_0x21f1ff(0x1ec)]))[_0x21f1ff(0x25f)](_0x18d737=>{const _0x33811d=_0x21f1ff,_0x310136=_0x18d737['getUnitId'](),_0x343ad6=this[_0x33811d(0x271)][_0x33811d(0x1b5)](_0x310136);_0x343ad6==null||_0x343ad6['dispose']();});}async[_0x2a0c15(0x28b)](_0x15a94f){const _0x5cdaed=_0x2a0c15,_0x3fb1e6=await this[_0x5cdaed(0x204)][_0x5cdaed(0x243)](_0x15a94f),_0x5e285e=this[_0x5cdaed(0x240)][_0x5cdaed(0x1fc)](_0x13d81c[_0x5cdaed(0x259)],_0x15a94f,_0x3fb1e6);return _0x5e285e[_0x5cdaed(0x20b)](),this[_0x5cdaed(0x271)][_0x5cdaed(0x235)](_0x15a94f,_0x5e285e),_0x5e285e;}},_0x13d81c[_0x2a0c15(0x213)]=_0x28ac43([_0x2dac69(0x0,_0x1d786e[_0x2a0c15(0x227)]),_0x2dac69(0x1,_0x1d786e[_0x2a0c15(0x1b4)](_0x1d786e[_0x2a0c15(0x265)])),_0x2dac69(0x2,_0x1d786e[_0x2a0c15(0x1b4)](_0xc0c90e[_0x2a0c15(0x291)]))],_0x13d81c[_0x2a0c15(0x213)]);var _0x70cee6=(_0x428f7d=>(_0x428f7d[_0x2a0c15(0x1e0)]='offline',_0x428f7d[_0x2a0c15(0x253)]=_0x2a0c15(0x284),_0x428f7d[_0x2a0c15(0x1d8)]=_0x2a0c15(0x261),_0x428f7d[_0x2a0c15(0x27c)]=_0x2a0c15(0x285),_0x428f7d[_0x2a0c15(0x20a)]=_0x2a0c15(0x1ab),_0x428f7d))(_0x70cee6||{});const _0x643444=_0x2a0c15(0x1d4),_0x5e1e7e=0xc8;_0x13d81c[_0x2a0c15(0x259)]=class extends _0x1d786e[_0x2a0c15(0x1df)]{constructor(_0x47066f,_0xb9394e,_0x17f695,_0x5aaedf,_0x1a6a89){const _0x3a2ec6=_0x2a0c15;super(),_0x2a87fc(this,'_status$',new _0x321dc8['BehaviorSubject'](_0x3a2ec6(0x284))),_0x2a87fc(this,_0x3a2ec6(0x1af),this['_status$'][_0x3a2ec6(0x237)]()),_0x2a87fc(this,'_init',!0x1),_0x2a87fc(this,_0x3a2ec6(0x1f7),null),_0x2a87fc(this,_0x3a2ec6(0x1a6),null),(this[_0x3a2ec6(0x212)]=_0x47066f,this[_0x3a2ec6(0x1d6)]=_0xb9394e,this[_0x3a2ec6(0x1b1)]=_0x17f695,this['_liveShareService']=_0x5aaedf,this[_0x3a2ec6(0x1c1)]=_0x1a6a89);}get[_0x2a0c15(0x208)](){const _0x474bc6=_0x2a0c15;return this[_0x474bc6(0x1b2)][_0x474bc6(0x221)]();}['dispose'](){const _0x24acf0=_0x2a0c15;var _0x2265b8;(_0x2265b8=this[_0x24acf0(0x1f7)])==null||_0x2265b8[_0x24acf0(0x269)](),this[_0x24acf0(0x1b2)][_0x24acf0(0x1e1)](_0x24acf0(0x284)),this[_0x24acf0(0x1b2)][_0x24acf0(0x244)]();}[_0x2a0c15(0x202)](){const _0x44f95f=_0x2a0c15;return this[_0x44f95f(0x208)];}[_0x2a0c15(0x20b)](){const _0x2d93ea=_0x2a0c15;this[_0x2d93ea(0x27f)]||(this['_init']=!0x0,this[_0x2d93ea(0x1d6)][_0x2d93ea(0x1a3)]['pipe'](_0x3c765f['takeUntil'](this[_0x2d93ea(0x1ec)]))[_0x2d93ea(0x25f)](_0x5c0c4b=>{const _0x3bd6fb=_0x2d93ea;switch(_0x5c0c4b){case _0xc0c90e[_0x3bd6fb(0x24c)][_0x3bd6fb(0x1e0)]:this[_0x3bd6fb(0x1eb)]();break;case _0xc0c90e[_0x3bd6fb(0x24c)]['ONLINE']:this[_0x3bd6fb(0x23d)]();break;}}),this['_collabSession'][_0x2d93ea(0x1be)][_0x2d93ea(0x270)](_0x3c765f[_0x2d93ea(0x21f)](this[_0x2d93ea(0x1ec)]))[_0x2d93ea(0x25f)](_0x5081db=>{const _0x43ba68=_0x2d93ea,{eventID:_0x65b0a6}=_0x5081db;switch(_0x65b0a6){case _0x1fca55['CollaborationEvent'][_0x43ba68(0x1dd)]:this[_0x43ba68(0x28c)](_0x5081db);break;case _0x1fca55['CollaborationEvent'][_0x43ba68(0x1ae)]:this[_0x43ba68(0x25e)](_0x5081db);break;case _0x1fca55[_0x43ba68(0x20f)][_0x43ba68(0x214)]:this['_handleTerminate']();break;case _0x1fca55['CollaborationEvent'][_0x43ba68(0x290)]:this[_0x43ba68(0x283)](_0x5081db);break;}}));}[_0x2a0c15(0x22d)](){const _0x37f708=_0x2a0c15;this['_collabSession'][_0x37f708(0x215)]({'eventID':_0x1fca55[_0x37f708(0x20f)][_0x37f708(0x1cc)],'data':{'unitID':this[_0x37f708(0x212)],'userID':this[_0x37f708(0x1d6)][_0x37f708(0x258)]()}},this[_0x37f708(0x212)]);}[_0x2a0c15(0x1c8)](){const _0x21e68c=_0x2a0c15;this[_0x21e68c(0x208)]===_0x21e68c(0x1ab)&&(this[_0x21e68c(0x1b2)][_0x21e68c(0x1e1)](_0x21e68c(0x284)),this[_0x21e68c(0x1d6)][_0x21e68c(0x215)]({'eventID':_0x1fca55[_0x21e68c(0x20f)][_0x21e68c(0x214)],'data':{'unitID':this['_unitID']}},this[_0x21e68c(0x212)]));}[_0x2a0c15(0x1c3)](){const _0x12d261=_0x2a0c15;this['_status']===_0x12d261(0x285)&&(this[_0x12d261(0x1b2)]['next']('following'),this[_0x12d261(0x220)]());}[_0x2a0c15(0x1fd)](){const _0x5a821a=_0x2a0c15;this['_status']===_0x5a821a(0x261)&&this['_stopFollowing']();}['_handleNewHost'](_0x780630){const _0x107a6a=_0x2a0c15,{presenter:_0x4aade3}=_0x780630[_0x107a6a(0x1aa)],_0x34190b=this['_collabSession'][_0x107a6a(0x258)]();this[_0x107a6a(0x1a6)]=_0x4aade3,_0x4aade3===_0x34190b?(this['_stopFollowing'](),this[_0x107a6a(0x1a9)]()):this['_status']!==_0x107a6a(0x285)&&(this[_0x107a6a(0x1ef)](),this[_0x107a6a(0x220)]());}[_0x2a0c15(0x25c)](){const _0x417804=_0x2a0c15,_0x372c54={'eventID':_0x1fca55['CollaborationEvent'][_0x417804(0x1f0)]};this[_0x417804(0x1d6)][_0x417804(0x215)](_0x372c54,this[_0x417804(0x212)]);}[_0x2a0c15(0x1f2)](){const _0x3e7076=_0x2a0c15;this[_0x3e7076(0x1a6)]=null,this[_0x3e7076(0x208)]!==_0x3e7076(0x1ab)&&this[_0x3e7076(0x225)]();}[_0x2a0c15(0x283)](_0x5e56ac){const _0x47b453=_0x2a0c15;if(this[_0x47b453(0x208)]===_0x47b453(0x261)&&this[_0x47b453(0x1a6)]===_0x5e56ac[_0x47b453(0x1aa)]['memberID']){const _0x1c4dbc=_0x1fca55[_0x47b453(0x1bc)](_0x5e56ac[_0x47b453(0x1aa)])[_0x47b453(0x1d0)][_0x47b453(0x1ed)]()['find'](_0x4ddc54=>_0x4ddc54['id']===_0x15e0c1[_0x47b453(0x23e)]['id']);if(_0x1c4dbc){const _0x38e7da=_0x1c4dbc[_0x47b453(0x1c9)]['unitId'],_0x2c80bb=_0x1c4dbc['params'][_0x47b453(0x223)]['id'];setTimeout(()=>{const _0x14bea8=_0x47b453;this[_0x14bea8(0x1c1)][_0x14bea8(0x241)](_0x15e0c1['SetWorksheetActiveOperation']['id'],{'unitId':_0x38e7da,'subUnitId':_0x2c80bb},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1ed31a=_0x2a0c15;this[_0x1ed31a(0x1b2)][_0x1ed31a(0x1e1)]('presenting');const _0x381218=new Map(),_0xdee7ef=this['_commandDisposable']=new _0x1d786e[(_0x1ed31a(0x236))]();_0xdee7ef[_0x1ed31a(0x226)](_0x1d786e[_0x1ed31a(0x245)](()=>{const _0x4583db=_0x1ed31a;_0x381218[_0x4583db(0x1cf)](_0x589092=>_0x589092[_0x4583db(0x244)]()),_0x381218[_0x4583db(0x201)]();})),_0xdee7ef[_0x1ed31a(0x226)](this[_0x1ed31a(0x1c1)][_0x1ed31a(0x1c5)](_0x4f9b0c=>{const _0x2d1815=_0x1ed31a;var _0x2ca498;if(_0x4f9b0c[_0x2d1815(0x1a8)]!==_0x1d786e[_0x2d1815(0x1c4)]['OPERATION']||!this[_0x2d1815(0x222)][_0x2d1815(0x233)](_0x4f9b0c['id']))return;const {id:_0xfad404}=_0x4f9b0c;let _0x51fd30;_0x381218['has'](_0xfad404)?_0x51fd30=_0x381218[_0x2d1815(0x1b5)](_0xfad404):(_0x51fd30=new _0x321dc8[(_0x2d1815(0x21c))](),_0x381218[_0x2d1815(0x235)](_0xfad404,_0x51fd30),_0x51fd30[_0x2d1815(0x270)](_0x3c765f[_0x2d1815(0x28f)]((_0x2ca498=this[_0x2d1815(0x1b1)][_0x2d1815(0x247)](_0x643444))!=null?_0x2ca498:_0x5e1e7e,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x71f91a=>{const _0x2015c5=_0x2d1815;this['_collabSession'][_0x2015c5(0x215)]({'eventID':_0x1fca55[_0x2015c5(0x20f)][_0x2015c5(0x1ae)],'data':{'unitID':this[_0x2015c5(0x212)],'operations':{[_0x71f91a['id']]:{'id':_0x71f91a['id'],'params':JSON[_0x2015c5(0x1f3)](_0x71f91a[_0x2015c5(0x1c9)])}}}},this['_unitID']);})),_0x51fd30[_0x2d1815(0x1e1)](_0x4f9b0c);})),this[_0x1ed31a(0x222)][_0x1ed31a(0x1ad)](this[_0x1ed31a(0x212)])[_0x1ed31a(0x1cf)](_0x43dec5=>this['_collabSession'][_0x1ed31a(0x215)]({'eventID':_0x1fca55['CollaborationEvent'][_0x1ed31a(0x1ae)],'data':{'unitID':this[_0x1ed31a(0x212)],'operations':{[_0x43dec5['id']]:{'id':_0x43dec5['id'],'params':JSON[_0x1ed31a(0x1f3)](_0x43dec5[_0x1ed31a(0x1c9)])}}}},this['_unitID']));}[_0x2a0c15(0x1ef)](){const _0x580bf3=_0x2a0c15;var _0x1f9c25;this[_0x580bf3(0x1b2)][_0x580bf3(0x1e1)](_0x580bf3(0x284)),(_0x1f9c25=this['_commandDisposable'])==null||_0x1f9c25[_0x580bf3(0x269)](),this[_0x580bf3(0x1f7)]=null;}[_0x2a0c15(0x220)](){const _0x5b1329=_0x2a0c15;var _0x71e9ca;(_0x71e9ca=this[_0x5b1329(0x1f7)])==null||_0x71e9ca['dispose'](),this[_0x5b1329(0x1b2)][_0x5b1329(0x1e1)]('following');}['_beIdle'](){const _0x511c5f=_0x2a0c15;var _0xf8c16d;this['_status$'][_0x511c5f(0x1e1)](_0x511c5f(0x284)),(_0xf8c16d=this[_0x511c5f(0x1f7)])==null||_0xf8c16d['dispose'](),this[_0x511c5f(0x1f7)]=null;}[_0x2a0c15(0x1fa)](){const _0xb0378a=_0x2a0c15;var _0x18fbf2;this[_0xb0378a(0x1b2)][_0xb0378a(0x1e1)](_0xb0378a(0x285)),(_0x18fbf2=this[_0xb0378a(0x1f7)])==null||_0x18fbf2[_0xb0378a(0x269)]();}['_handleOperation'](_0x14337d){const _0x39ab2e=_0x2a0c15;if([_0x39ab2e(0x1ab),'not-following',_0x39ab2e(0x205)][_0x39ab2e(0x1e3)](this[_0x39ab2e(0x208)])||!_0x14337d[_0x39ab2e(0x1aa)]['presenter']||_0x14337d['data'][_0x39ab2e(0x211)]===this[_0x39ab2e(0x1d6)]['getMemberID']())return;this[_0x39ab2e(0x208)]===_0x39ab2e(0x284)&&this[_0x39ab2e(0x220)]();const _0x46de2b=_0x14337d[_0x39ab2e(0x1aa)]['operations'];Object[_0x39ab2e(0x25b)](_0x46de2b)[_0x39ab2e(0x1cf)](_0x52ec24=>{const _0xe9b51f=_0x39ab2e;this[_0xe9b51f(0x1c1)][_0xe9b51f(0x241)](_0x52ec24['id'],_0x52ec24[_0xe9b51f(0x1c9)]?JSON['parse'](_0x52ec24[_0xe9b51f(0x1c9)]):null,{'fromCollab':!0x0});});}[_0x2a0c15(0x1eb)](){const _0x33e1d4=_0x2a0c15;var _0xffa5f8;this['_status$'][_0x33e1d4(0x1e1)](_0x33e1d4(0x205)),(_0xffa5f8=this[_0x33e1d4(0x1f7)])==null||_0xffa5f8[_0x33e1d4(0x269)]();}['_handleOnline'](){const _0x4f7233=_0x2a0c15;this[_0x4f7233(0x1b2)][_0x4f7233(0x1e1)](_0x4f7233(0x284)),this[_0x4f7233(0x25c)]();}},_0x13d81c[_0x2a0c15(0x259)]=_0x28ac43([_0x2dac69(0x2,_0x1d786e[_0x2a0c15(0x255)]),_0x2dac69(0x3,_0x1d786e[_0x2a0c15(0x1b4)](_0x46fbca)),_0x2dac69(0x4,_0x1d786e[_0x2a0c15(0x234)])],_0x13d81c[_0x2a0c15(0x259)]);function _0xef583f(){const _0x54b932=_0x2a0c15,_0x15bce0=_0xf1bd4c[_0x54b932(0x249)](_0x13d81c[_0x54b932(0x213)]),_0x39586c=_0xf1bd4c['useDependency'](_0x1d786e[_0x54b932(0x227)]),_0x8704a9=_0xf1bd4c['useObservable'](()=>_0x39586c[_0x54b932(0x1ac)](_0x1d786e['UniverInstanceType'][_0x54b932(0x207)]),void 0x0,!0x1,[]),[_0x381fe6,_0x2c4a19]=_0x8c7f55[_0x54b932(0x1e8)](null),[_0x1defb8,_0x386795]=_0x8c7f55[_0x54b932(0x1e8)](_0x70cee6[_0x54b932(0x253)]),_0x3fcd05=_0x8c7f55['useRef'](null);return _0x8c7f55[_0x54b932(0x1f4)](()=>(_0x8704a9&&_0x15bce0[_0x54b932(0x274)](_0x8704a9['getUnitId']())[_0x54b932(0x287)](_0x29abbc=>{const _0x2a6b75=_0x54b932;_0x2c4a19(_0x29abbc),_0x3fcd05[_0x2a6b75(0x21d)]=_0x29abbc['status$']['subscribe'](_0x3e6f76=>{_0x386795(_0x3e6f76);});}),()=>{const _0x314e21=_0x54b932;var _0x428f60;(_0x428f60=_0x3fcd05['current'])==null||_0x428f60[_0x314e21(0x217)](),_0x3fcd05[_0x314e21(0x21d)]=null;}),[_0x8704a9,_0x15bce0]),_0x381fe6?_0x35cb2b[_0x54b932(0x1ea)](_0x446433['Dropdown'],{'align':'end','disabled':_0x1defb8===_0x70cee6[_0x54b932(0x1e0)],'className':_0x54b932(0x286),'overlay':_0x35cb2b['jsx'](_0x3913ab,{'status':_0x1defb8,'coordinator':_0x381fe6}),'children':_0x35cb2b[_0x54b932(0x1ea)](_0x54b932(0x251),{'className':_0x446433[_0x54b932(0x267)](_0x54b932(0x275),{'univer-cursor-not-allowed':_0x1defb8===_0x70cee6['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1defb8!==_0x70cee6[_0x54b932(0x1e0)]}),'type':_0x54b932(0x251),'children':_0x35cb2b[_0x54b932(0x1ea)](_0x54d1c5,{'className':_0x54b932(0x20d)})})}):null;}function _0x3913ab(_0x10eecc){const _0x131ba0=_0x2a0c15,{status:_0x3cccc3,coordinator:_0x3d5195}=_0x10eecc;switch(_0x3cccc3){case _0x70cee6['IDLE']:return _0x35cb2b[_0x131ba0(0x1ea)](_0x1af99f,{'coordinator':_0x3d5195});case _0x70cee6[_0x131ba0(0x1d8)]:return _0x35cb2b[_0x131ba0(0x1ea)](_0x81f35c,{'coordinator':_0x3d5195});case _0x70cee6['NOT_FOLLOWING']:return _0x35cb2b[_0x131ba0(0x1ea)](_0x3777fd,{'coordinator':_0x3d5195});case _0x70cee6[_0x131ba0(0x1e0)]:return _0x35cb2b[_0x131ba0(0x1ea)](_0x391148,{});case _0x70cee6[_0x131ba0(0x20a)]:return _0x35cb2b[_0x131ba0(0x1ea)](_0x2e2d93,{'coordinator':_0x3d5195});default:return null;}}function _0x1af99f(_0x58cfc5){const _0x5bdf5d=_0x2a0c15,{coordinator:_0x4cc052}=_0x58cfc5;return _0x35cb2b[_0x5bdf5d(0x1d9)](_0x35cb2b[_0x5bdf5d(0x218)],{'children':[_0x35cb2b['jsx'](_0x5bdf5d(0x278),{'className':_0x5bdf5d(0x200),'children':_0x5bdf5d(0x1bd)}),_0x35cb2b['jsx'](_0x446433[_0x5bdf5d(0x1ce)],{'onClick':()=>_0x4cc052[_0x5bdf5d(0x22d)](),'children':_0x5bdf5d(0x277)})]});}function _0x81f35c(_0x285ec6){const _0x3c8896=_0x2a0c15,{coordinator:_0x46b516}=_0x285ec6;return _0x35cb2b[_0x3c8896(0x1d9)](_0x35cb2b['Fragment'],{'children':[_0x35cb2b[_0x3c8896(0x1ea)](_0x3c8896(0x278),{'className':_0x3c8896(0x200),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x35cb2b[_0x3c8896(0x1ea)](_0x446433[_0x3c8896(0x1ce)],{'onClick':()=>_0x46b516['stopFollowing'](),'children':_0x3c8896(0x1cd)})]});}function _0x3777fd(_0x48dd43){const _0x5efba6=_0x2a0c15,{coordinator:_0x2cf45f}=_0x48dd43;return _0x35cb2b['jsxs'](_0x35cb2b[_0x5efba6(0x218)],{'children':[_0x35cb2b[_0x5efba6(0x1ea)](_0x5efba6(0x278),{'className':_0x5efba6(0x200),'children':_0x5efba6(0x22a)}),_0x35cb2b[_0x5efba6(0x1ea)](_0x446433[_0x5efba6(0x1ce)],{'variant':_0x5efba6(0x262),'onClick':()=>_0x2cf45f['startFollowing'](),'children':_0x5efba6(0x1a5)})]});}function _0x2e2d93(_0x4471b5){const _0x1fb6f8=_0x2a0c15,{coordinator:_0x5179ba}=_0x4471b5;return _0x35cb2b[_0x1fb6f8(0x1d9)](_0x35cb2b['Fragment'],{'children':[_0x35cb2b[_0x1fb6f8(0x1ea)](_0x1fb6f8(0x278),{'className':_0x1fb6f8(0x200),'children':_0x1fb6f8(0x238)}),_0x35cb2b['jsx'](_0x446433[_0x1fb6f8(0x1ce)],{'variant':_0x1fb6f8(0x24d),'onClick':()=>_0x5179ba[_0x1fb6f8(0x1c8)](),'children':'Stop\x20presenting'})]});}function _0x391148(){const _0x5649b4=_0x2a0c15;return _0x35cb2b['jsx'](_0x35cb2b[_0x5649b4(0x218)],{'children':_0x5649b4(0x1bf)});}var _0xa3449c=Object['getOwnPropertyDescriptor'],_0x1ca773=(_0x373787,_0x53cdf7,_0x52e7ef,_0x5a5548)=>{const _0x1590d7=_0x2a0c15;for(var _0x2be4f5=_0x5a5548>0x1?void 0x0:_0x5a5548?_0xa3449c(_0x53cdf7,_0x52e7ef):_0x53cdf7,_0x1d1467=_0x373787[_0x1590d7(0x24e)]-0x1,_0x3d2629;_0x1d1467>=0x0;_0x1d1467--)(_0x3d2629=_0x373787[_0x1d1467])&&(_0x2be4f5=_0x3d2629(_0x2be4f5)||_0x2be4f5);return _0x2be4f5;},_0x11fd78=(_0x3ba0c6,_0x23f79e)=>(_0xbdf2a1,_0x39d912)=>_0x23f79e(_0xbdf2a1,_0x39d912,_0x3ba0c6);_0x13d81c['DesktopLiveShareController']=class extends _0x1d786e[_0x2a0c15(0x248)]{constructor(_0x3c9be7,_0x2dd18d){const _0x1363d0=_0x2a0c15;super(),this[_0x1363d0(0x240)]=_0x3c9be7,this[_0x1363d0(0x22f)]=_0x2dd18d,this[_0x1363d0(0x1da)]();}['_mountLiveShare'](){const _0x48778f=_0x2a0c15;this['disposeWithMe'](this[_0x48778f(0x22f)][_0x48778f(0x21a)](_0xf1bd4c[_0x48778f(0x1b8)][_0x48778f(0x1e2)],()=>_0xf1bd4c['connectInjector'](_0xef583f,this[_0x48778f(0x240)])));}},_0x13d81c[_0x2a0c15(0x209)]=_0x1ca773([_0x11fd78(0x0,_0x1d786e[_0x2a0c15(0x1b4)](_0x1d786e[_0x2a0c15(0x265)])),_0x11fd78(0x1,_0xf1bd4c[_0x2a0c15(0x1dc)])],_0x13d81c[_0x2a0c15(0x209)]);const _0x5535d6=_0x2a0c15(0x292),_0x5cce89={};var _0x54b9a6=Object[_0x2a0c15(0x1c6)],_0x4ce6ad=(_0x46720d,_0xe500e,_0x39dbaf,_0x4327fd)=>{for(var _0x26bd40=_0x4327fd>0x1?void 0x0:_0x4327fd?_0x54b9a6(_0xe500e,_0x39dbaf):_0xe500e,_0x49d1ea=_0x46720d['length']-0x1,_0x5cf95f;_0x49d1ea>=0x0;_0x49d1ea--)(_0x5cf95f=_0x46720d[_0x49d1ea])&&(_0x26bd40=_0x5cf95f(_0x26bd40)||_0x26bd40);return _0x26bd40;},_0xc2ffa1=(_0xf581ba,_0x43c989)=>(_0x1c353b,_0x3a5dda)=>_0x43c989(_0x1c353b,_0x3a5dda,_0xf581ba);let _0xc7a29a=class extends _0x1d786e[_0x2a0c15(0x248)]{constructor(_0x3e8790){const _0x279cf9=_0x2a0c15;super(),this['_liveShareService']=_0x3e8790,this[_0x279cf9(0x27f)]();}[_0x2a0c15(0x27f)](){const _0x667d63=_0x2a0c15;[_0x2dd477['SetZoomRatioOperation']['id'],_0x2dd477[_0x667d63(0x1c2)]['id'],_0x15e0c1[_0x667d63(0x1b9)]['id']][_0x667d63(0x1cf)](_0x4e9f64=>{const _0x133d6f=_0x667d63;this['disposeWithMe'](this[_0x133d6f(0x222)][_0x133d6f(0x1f1)](_0x4e9f64));});}};_0xc7a29a=_0x4ce6ad([_0xc2ffa1(0x0,_0x1d786e[_0x2a0c15(0x1b4)](_0x46fbca))],_0xc7a29a);var _0x1d5a55=Object[_0x2a0c15(0x231)],_0x50a886=Object['getOwnPropertyDescriptor'],_0x5d7325=(_0x2a2518,_0x5ee9eb,_0x5bcbe8)=>_0x5ee9eb in _0x2a2518?_0x1d5a55(_0x2a2518,_0x5ee9eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bcbe8}):_0x2a2518[_0x5ee9eb]=_0x5bcbe8,_0x4174bc=(_0x150226,_0x21b484,_0x2e97f4,_0x26c0e6)=>{for(var _0x40635d=_0x26c0e6>0x1?void 0x0:_0x26c0e6?_0x50a886(_0x21b484,_0x2e97f4):_0x21b484,_0x146c02=_0x150226['length']-0x1,_0xfa26c;_0x146c02>=0x0;_0x146c02--)(_0xfa26c=_0x150226[_0x146c02])&&(_0x40635d=_0xfa26c(_0x40635d)||_0x40635d);return _0x40635d;},_0x491cb3=(_0x108616,_0x3e7059)=>(_0x28cc18,_0x241441)=>_0x3e7059(_0x28cc18,_0x241441,_0x108616),_0x8c5b43=(_0x3b2002,_0x30a267,_0x450631)=>_0x5d7325(_0x3b2002,typeof _0x30a267!=_0x2a0c15(0x273)?_0x30a267+'':_0x30a267,_0x450631);const _0x3b4b49=_0x2a0c15(0x280);_0x13d81c[_0x2a0c15(0x242)]=class extends _0x1d786e['Plugin']{constructor(_0x502160=_0x5cce89,_0x616d46,_0x44857a){const _0x4efc51=_0x2a0c15;super(),this[_0x4efc51(0x27a)]=_0x502160,this['_injector']=_0x616d46,this[_0x4efc51(0x1b1)]=_0x44857a;const {..._0x329833}=_0x1d786e[_0x4efc51(0x1d5)]({},_0x5cce89,this[_0x4efc51(0x27a)]);this[_0x4efc51(0x1b1)][_0x4efc51(0x257)](_0x5535d6,_0x329833);}[_0x2a0c15(0x23c)](){const _0x28d571=_0x2a0c15;_0x1d786e[_0x28d571(0x279)](this['_injector'],_0x1d786e[_0x28d571(0x22b)]([[_0x46fbca],[_0x13d81c[_0x28d571(0x213)]],[_0xc7a29a],[_0x13d81c[_0x28d571(0x209)]]],this[_0x28d571(0x27a)][_0x28d571(0x1a4)])),_0x1d786e[_0x28d571(0x206)](this[_0x28d571(0x240)],[[_0xc7a29a]]);}[_0x2a0c15(0x256)](){const _0x1a1cea=_0x2a0c15;_0x1d786e['touchDependencies'](this[_0x1a1cea(0x240)],[[_0x13d81c['DesktopLiveShareController']]]);}},_0x8c5b43(_0x13d81c['UniverLiveSharePlugin'],_0x2a0c15(0x1a8),_0x1d786e[_0x2a0c15(0x1f6)][_0x2a0c15(0x1e6)]),_0x8c5b43(_0x13d81c[_0x2a0c15(0x242)],'pluginName',_0x3b4b49),_0x13d81c['UniverLiveSharePlugin']=_0x4174bc([_0x1d786e[_0x2a0c15(0x239)](_0xc0c90e[_0x2a0c15(0x1ca)]),_0x491cb3(0x1,_0x1d786e[_0x2a0c15(0x1b4)](_0x1d786e['Injector'])),_0x491cb3(0x2,_0x1d786e[_0x2a0c15(0x255)])],_0x13d81c['UniverLiveSharePlugin']),_0x13d81c[_0x2a0c15(0x1f8)]=_0xef583f,_0x13d81c[_0x2a0c15(0x228)]=_0x46fbca,_0x13d81c[_0x2a0c15(0x232)]=_0x70cee6,Object['defineProperty'](_0x13d81c,Symbol['toStringTag'],{'value':_0x2a0c15(0x1d7)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.10.14-nightly.202511080715",
3
+ "version": "0.11.0-nightly.202511151013",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,14 +57,14 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.0.2",
60
- "@univerjs-pro/collaboration": "0.10.14-nightly.202511080715",
61
- "@univerjs/core": "0.10.14-nightly.202511080715",
62
- "@univerjs-pro/collaboration-client": "0.10.14-nightly.202511080715",
63
- "@univerjs/design": "0.10.14-nightly.202511080715",
64
- "@univerjs/sheets": "0.10.14-nightly.202511080715",
65
- "@univerjs/engine-render": "0.10.14-nightly.202511080715",
66
- "@univerjs/sheets-ui": "0.10.14-nightly.202511080715",
67
- "@univerjs/ui": "0.10.14-nightly.202511080715"
60
+ "@univerjs-pro/collaboration": "0.11.0-nightly.202511151013",
61
+ "@univerjs-pro/collaboration-client": "0.11.0-nightly.202511151013",
62
+ "@univerjs/core": "0.11.0-nightly.202511151013",
63
+ "@univerjs/design": "0.11.0-nightly.202511151013",
64
+ "@univerjs/engine-render": "0.11.0-nightly.202511151013",
65
+ "@univerjs/sheets-ui": "0.11.0-nightly.202511151013",
66
+ "@univerjs/ui": "0.11.0-nightly.202511151013",
67
+ "@univerjs/sheets": "0.11.0-nightly.202511151013"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -72,9 +72,9 @@
72
72
  "rxjs": "7.8.2",
73
73
  "tailwindcss": "^3.4.17",
74
74
  "typescript": "^5.9.3",
75
- "vite": "^7.1.12",
75
+ "vite": "^7.2.2",
76
76
  "vitest": "^3.2.4",
77
- "@univerjs-infra/shared": "0.10.14",
77
+ "@univerjs-infra/shared": "0.11.0",
78
78
  "@univerjs/protocol": "0.1.47"
79
79
  },
80
80
  "scripts": {