@univerjs-pro/live-share 0.10.12-nightly.202510251119 → 0.10.13-nightly.202510290902

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';function _0x483a(){const _0x56be0c=['getActiveSheet','FUniver','getLiveShareCoordinatorSync','1382716JUSEhl','IRenderManagerService','getId','getActiveWorkbook','tryStartPresenting','LiveShareController','8QyAlgN','2693556VLAHaR','8532951tTkCib','36534399VgzPTB','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','No\x20active\x20workbook\x20found.','SetWorksheetActiveOperation','2219870umKpON','getUnitId','_injector','FRange','startColumn','syncExecuteCommand','startPresenting','2whsoWS','get','getSheetId','6ABEelD','SetScrollOperation','getRenderById','startFollowing','LiveShareStatusEnum','PRESENTING','LiveShareStatus','extend','getStatus','15PIAjNI','2070855WzYSce','FEnum','IDLE','1254503NXyXro','_initialize'];_0x483a=function(){return _0x56be0c;};return _0x483a();}const _0x3f9dfd=_0x1c13;(function(_0x300eed,_0x504856){const _0x2c1c7b=_0x1c13,_0x1b9098=_0x300eed();while(!![]){try{const _0x564c32=-parseInt(_0x2c1c7b(0x15c))/0x1+-parseInt(_0x2c1c7b(0x175))/0x2*(-parseInt(_0x2c1c7b(0x168))/0x3)+parseInt(_0x2c1c7b(0x161))/0x4*(-parseInt(_0x2c1c7b(0x181))/0x5)+-parseInt(_0x2c1c7b(0x178))/0x6*(parseInt(_0x2c1c7b(0x169))/0x7)+-parseInt(_0x2c1c7b(0x167))/0x8*(parseInt(_0x2c1c7b(0x159))/0x9)+parseInt(_0x2c1c7b(0x16e))/0xa+parseInt(_0x2c1c7b(0x16a))/0xb;if(_0x564c32===_0x504856)break;else _0x1b9098['push'](_0x1b9098['shift']());}catch(_0x63a09d){_0x1b9098['push'](_0x1b9098['shift']());}}}(_0x483a,0xab068));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[_0x3f9dfd(0x171)]{[_0x3f9dfd(0x15d)](_0x59634d,_0x2eb1f6,_0x1c29fc,_0x5c0e8a,_0x16dca2){const _0x2de892=_0x3f9dfd,_0x5d4752=_0x59634d['get'](n['LiveShareController']),_0x24dc8d=_0x59634d[_0x2de892(0x176)](g[_0x2de892(0x162)]),_0x452e25=_0x2eb1f6['getUnitId'](),_0x25507c=_0x2eb1f6[_0x2de892(0x15e)](),_0x4e84cb=_0x5d4752[_0x2de892(0x160)](_0x452e25);(_0x4e84cb==null?void 0x0:_0x4e84cb[_0x2de892(0x180)]())!==n['LiveShareStatus'][_0x2de892(0x17d)]||(_0x1c29fc['getSheetId']()!==_0x25507c[_0x2de892(0x177)]()&&this['_commandService']['executeCommand'](u[_0x2de892(0x16d)]['id'],{'unitId':_0x452e25,'subUnitId':_0x1c29fc[_0x2de892(0x177)]()}),!_0x24dc8d[_0x2de892(0x17a)](_0x452e25))||_0x16dca2[_0x2de892(0x173)](f[_0x2de892(0x179)]['id'],{'unitId':_0x2eb1f6[_0x2de892(0x16f)](),'sheetId':_0x1c29fc[_0x2de892(0x177)](),'sheetViewStartRow':_0x5c0e8a['startRow'],'sheetViewStartColumn':_0x5c0e8a[_0x2de892(0x172)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d['FRange'][_0x3f9dfd(0x17f)](w);class C extends a['FUniver']{['getLiveShareStatus'](){const _0x2bf40e=_0x3f9dfd;var _0x1d178b,_0xa869cb;const _0x5bd555=this['_injector']['get'](n[_0x2bf40e(0x166)]),_0x457ea8=(_0x1d178b=this[_0x2bf40e(0x164)]())==null?void 0x0:_0x1d178b[_0x2bf40e(0x163)]();if(!_0x457ea8)throw new Error(_0x2bf40e(0x16c));const _0x1ba6c9=_0x5bd555[_0x2bf40e(0x160)](_0x457ea8);return(_0xa869cb=_0x1ba6c9==null?void 0x0:_0x1ba6c9['getStatus']())!=null?_0xa869cb:n[_0x2bf40e(0x17e)][_0x2bf40e(0x15b)];}[_0x3f9dfd(0x17b)](){const _0x2e4594=_0x3f9dfd;var _0x3e661e;const _0x3977ed=this[_0x2e4594(0x170)]['get'](n[_0x2e4594(0x166)]),_0x41431b=(_0x3e661e=this[_0x2e4594(0x164)]())==null?void 0x0:_0x3e661e[_0x2e4594(0x163)]();if(!_0x41431b)throw new Error(_0x2e4594(0x16c));const _0x46f980=_0x3977ed[_0x2e4594(0x160)](_0x41431b);if(!_0x46f980)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x46f980[_0x2e4594(0x17b)]();}['stopFollowing'](){const _0x40757a=_0x3f9dfd;var _0x224f56;const _0x3de1b0=this[_0x40757a(0x170)][_0x40757a(0x176)](n['LiveShareController']),_0x24272c=(_0x224f56=this['getActiveWorkbook']())==null?void 0x0:_0x224f56[_0x40757a(0x163)]();if(!_0x24272c)throw new Error(_0x40757a(0x16c));const _0x2d669a=_0x3de1b0[_0x40757a(0x160)](_0x24272c);if(!_0x2d669a)throw new Error(_0x40757a(0x16b));_0x2d669a['stopFollowing']();}[_0x3f9dfd(0x174)](){const _0x3235df=_0x3f9dfd;var _0x1a211e;const _0x259453=this['_injector'][_0x3235df(0x176)](n['LiveShareController']),_0x436826=(_0x1a211e=this['getActiveWorkbook']())==null?void 0x0:_0x1a211e['getId']();if(!_0x436826)throw new Error('No\x20active\x20workbook\x20found.');const _0x1dea33=_0x259453[_0x3235df(0x160)](_0x436826);if(!_0x1dea33)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1dea33[_0x3235df(0x165)]();}['stopPresenting'](){const _0x320521=_0x3f9dfd;var _0x33ce88;const _0x283c7d=this[_0x320521(0x170)][_0x320521(0x176)](n[_0x320521(0x166)]),_0x12ffdc=(_0x33ce88=this['getActiveWorkbook']())==null?void 0x0:_0x33ce88[_0x320521(0x163)]();if(!_0x12ffdc)throw new Error(_0x320521(0x16c));const _0x3ea3e1=_0x283c7d[_0x320521(0x160)](_0x12ffdc);if(!_0x3ea3e1)throw new Error(_0x320521(0x16b));_0x3ea3e1['stopPresenting']();}}function _0x1c13(_0x1be132,_0xfb65b4){const _0x483a2a=_0x483a();return _0x1c13=function(_0x1c1393,_0x333d8c){_0x1c1393=_0x1c1393-0x159;let _0x3bc069=_0x483a2a[_0x1c1393];return _0x3bc069;},_0x1c13(_0x1be132,_0xfb65b4);}a[_0x3f9dfd(0x15f)][_0x3f9dfd(0x17f)](C);class L extends a[_0x3f9dfd(0x15a)]{get[_0x3f9dfd(0x17c)](){return n['LiveShareStatus'];}}a['FEnum'][_0x3f9dfd(0x17f)](L);
1
+ 'use strict';const _0x397744=_0x3f8c;function _0x4e36(){const _0x5c6ef6=['FUniver','2440EOtUqo','13858031vNEGNd','getSheetId','getStatus','LiveShareController','_commandService','stopFollowing','getUnitId','startRow','170Gozvqb','extend','PRESENTING','168516QnqJWS','tryStartPresenting','executeCommand','SetScrollOperation','getLiveShareStatus','_initialize','FEnum','204460tSBMem','getActiveWorkbook','startPresenting','getActiveSheet','get','getLiveShareCoordinatorSync','2236Oadeyv','106694QTProC','3055620wEWBvO','No\x20active\x20workbook\x20found.','startFollowing','startColumn','24MXbAiJ','9YvenQN','FRange','156345ejIFtg','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','syncExecuteCommand','IDLE','_injector','LiveShareStatus','getId'];_0x4e36=function(){return _0x5c6ef6;};return _0x4e36();}(function(_0x403a39,_0x385244){const _0xda8f2=_0x3f8c,_0x2b5bfe=_0x403a39();while(!![]){try{const _0x4416d=-parseInt(_0xda8f2(0xdc))/0x1+parseInt(_0xda8f2(0xcd))/0x2*(parseInt(_0xda8f2(0xda))/0x3)+-parseInt(_0xda8f2(0xd3))/0x4*(parseInt(_0xda8f2(0xe4))/0x5)+-parseInt(_0xda8f2(0xd5))/0x6+-parseInt(_0xda8f2(0xd4))/0x7*(parseInt(_0xda8f2(0xd9))/0x8)+-parseInt(_0xda8f2(0xc6))/0x9*(parseInt(_0xda8f2(0xc3))/0xa)+parseInt(_0xda8f2(0xe5))/0xb;if(_0x4416d===_0x385244)break;else _0x2b5bfe['push'](_0x2b5bfe['shift']());}catch(_0x38bf1c){_0x2b5bfe['push'](_0x2b5bfe['shift']());}}}(_0x4e36,0x40786));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[_0x397744(0xdb)]{[_0x397744(0xcb)](_0x2df147,_0x2a0fa1,_0x3fe84e,_0x7946e5,_0x51dbcd){const _0x422b36=_0x397744,_0x26a996=_0x2df147[_0x422b36(0xd1)](n[_0x422b36(0xe8)]),_0x1326d5=_0x2df147[_0x422b36(0xd1)](g['IRenderManagerService']),_0x379d38=_0x2a0fa1[_0x422b36(0xc1)](),_0x524392=_0x2a0fa1[_0x422b36(0xd0)](),_0x4284d6=_0x26a996[_0x422b36(0xd2)](_0x379d38);(_0x4284d6==null?void 0x0:_0x4284d6[_0x422b36(0xe7)]())!==n[_0x422b36(0xe1)][_0x422b36(0xc5)]||(_0x3fe84e[_0x422b36(0xe6)]()!==_0x524392[_0x422b36(0xe6)]()&&this[_0x422b36(0xe9)][_0x422b36(0xc8)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x379d38,'subUnitId':_0x3fe84e[_0x422b36(0xe6)]()}),!_0x1326d5['getRenderById'](_0x379d38))||_0x51dbcd[_0x422b36(0xde)](f[_0x422b36(0xc9)]['id'],{'unitId':_0x2a0fa1[_0x422b36(0xc1)](),'sheetId':_0x3fe84e[_0x422b36(0xe6)](),'sheetViewStartRow':_0x7946e5[_0x422b36(0xc2)],'sheetViewStartColumn':_0x7946e5[_0x422b36(0xd8)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x397744(0xdb)][_0x397744(0xc4)](w);class C extends a[_0x397744(0xe3)]{[_0x397744(0xca)](){const _0x4cc0e5=_0x397744;var _0x19be7d,_0x405d84;const _0x18c478=this[_0x4cc0e5(0xe0)]['get'](n[_0x4cc0e5(0xe8)]),_0x5a3e5e=(_0x19be7d=this['getActiveWorkbook']())==null?void 0x0:_0x19be7d['getId']();if(!_0x5a3e5e)throw new Error(_0x4cc0e5(0xd6));const _0x4ff872=_0x18c478[_0x4cc0e5(0xd2)](_0x5a3e5e);return(_0x405d84=_0x4ff872==null?void 0x0:_0x4ff872['getStatus']())!=null?_0x405d84:n['LiveShareStatus'][_0x4cc0e5(0xdf)];}[_0x397744(0xd7)](){const _0x153e92=_0x397744;var _0xe14ca2;const _0x2cdf5e=this['_injector'][_0x153e92(0xd1)](n[_0x153e92(0xe8)]),_0x1c8c95=(_0xe14ca2=this[_0x153e92(0xce)]())==null?void 0x0:_0xe14ca2['getId']();if(!_0x1c8c95)throw new Error(_0x153e92(0xd6));const _0x52b5c4=_0x2cdf5e[_0x153e92(0xd2)](_0x1c8c95);if(!_0x52b5c4)throw new Error(_0x153e92(0xdd));_0x52b5c4[_0x153e92(0xd7)]();}['stopFollowing'](){const _0x5d0555=_0x397744;var _0x4a9968;const _0x144ddb=this[_0x5d0555(0xe0)][_0x5d0555(0xd1)](n[_0x5d0555(0xe8)]),_0x5892a3=(_0x4a9968=this[_0x5d0555(0xce)]())==null?void 0x0:_0x4a9968[_0x5d0555(0xe2)]();if(!_0x5892a3)throw new Error('No\x20active\x20workbook\x20found.');const _0x19a7d2=_0x144ddb['getLiveShareCoordinatorSync'](_0x5892a3);if(!_0x19a7d2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x19a7d2[_0x5d0555(0xea)]();}[_0x397744(0xcf)](){const _0x4703dd=_0x397744;var _0x2bcc93;const _0x1a3162=this[_0x4703dd(0xe0)][_0x4703dd(0xd1)](n[_0x4703dd(0xe8)]),_0x53373b=(_0x2bcc93=this[_0x4703dd(0xce)]())==null?void 0x0:_0x2bcc93['getId']();if(!_0x53373b)throw new Error('No\x20active\x20workbook\x20found.');const _0x78f1ad=_0x1a3162['getLiveShareCoordinatorSync'](_0x53373b);if(!_0x78f1ad)throw new Error(_0x4703dd(0xdd));_0x78f1ad[_0x4703dd(0xc7)]();}['stopPresenting'](){const _0x3cd62f=_0x397744;var _0x289428;const _0xb39f9e=this[_0x3cd62f(0xe0)][_0x3cd62f(0xd1)](n[_0x3cd62f(0xe8)]),_0x534096=(_0x289428=this[_0x3cd62f(0xce)]())==null?void 0x0:_0x289428['getId']();if(!_0x534096)throw new Error(_0x3cd62f(0xd6));const _0x2aebe1=_0xb39f9e[_0x3cd62f(0xd2)](_0x534096);if(!_0x2aebe1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2aebe1['stopPresenting']();}}a[_0x397744(0xe3)][_0x397744(0xc4)](C);class L extends a[_0x397744(0xcc)]{get['LiveShareStatusEnum'](){const _0xffed7b=_0x397744;return n[_0xffed7b(0xe1)];}}function _0x3f8c(_0x279842,_0x5debce){const _0x4e3634=_0x4e36();return _0x3f8c=function(_0x3f8c9c,_0x17069e){_0x3f8c9c=_0x3f8c9c-0xc1;let _0x1a7c86=_0x4e3634[_0x3f8c9c];return _0x1a7c86;},_0x3f8c(_0x279842,_0x5debce);}a[_0x397744(0xcc)]['extend'](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1531cf=_0xe3b6;(function(_0x12cae8,_0xe354ca){const _0x256f0f=_0xe3b6,_0x5ec3cd=_0x12cae8();while(!![]){try{const _0x30ed1b=parseInt(_0x256f0f(0x19e))/0x1*(-parseInt(_0x256f0f(0x184))/0x2)+-parseInt(_0x256f0f(0x136))/0x3*(-parseInt(_0x256f0f(0xd6))/0x4)+parseInt(_0x256f0f(0xdf))/0x5*(-parseInt(_0x256f0f(0x17f))/0x6)+parseInt(_0x256f0f(0x125))/0x7*(parseInt(_0x256f0f(0xfd))/0x8)+parseInt(_0x256f0f(0x11b))/0x9+-parseInt(_0x256f0f(0xe2))/0xa*(-parseInt(_0x256f0f(0x147))/0xb)+-parseInt(_0x256f0f(0x164))/0xc;if(_0x30ed1b===_0xe354ca)break;else _0x5ec3cd['push'](_0x5ec3cd['shift']());}catch(_0x5acedf){_0x5ec3cd['push'](_0x5ec3cd['shift']());}}}(_0x2435,0xdcc23));var T=Object[_0x1531cf(0x131)],U=(_0x57f1ff,_0x382b7a,_0x467dde)=>_0x382b7a in _0x57f1ff?T(_0x57f1ff,_0x382b7a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x467dde}):_0x57f1ff[_0x382b7a]=_0x467dde,_=(_0x54ec77,_0x5ac4c4,_0x33cdf0)=>U(_0x54ec77,typeof _0x5ac4c4!=_0x1531cf(0x182)?_0x5ac4c4+'':_0x5ac4c4,_0x33cdf0);Object['defineProperty'](exports,Symbol[_0x1531cf(0x10a)],{'value':_0x1531cf(0x138)});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:_0x45577d,..._0x5a2449}){const _0x3c55f0=_0x1531cf,{icon:_0x31f433,id:_0x80200c,className:_0x26808d,extend:_0x17c509,..._0x289cc2}=_0x5a2449,_0xb91285=(_0x3c55f0(0x155)+_0x80200c+'\x20'+(_0x26808d||''))[_0x3c55f0(0x12a)](),_0x1fd1a=v[_0x3c55f0(0x12c)]('_'+H());return j(_0x31f433,''+_0x80200c,{'defIds':_0x31f433['defIds'],'idSuffix':_0x1fd1a[_0x3c55f0(0x145)]},{'ref':_0x45577d,'className':_0xb91285,..._0x289cc2},_0x17c509);}function j(_0x2f1b75,_0x5b6fa6,_0x2dc053,_0x5a278d,_0x3be71d){const _0x49c644=_0x1531cf;return v[_0x49c644(0x16d)](_0x2f1b75[_0x49c644(0x10f)],{'key':_0x5b6fa6,...y(_0x2f1b75,_0x2dc053,_0x3be71d),..._0x5a278d},(F(_0x2f1b75,_0x2dc053)[_0x49c644(0x154)]||[])[_0x49c644(0x11f)]((_0x20ac13,_0x2714be)=>j(_0x20ac13,_0x5b6fa6+'-'+_0x2f1b75[_0x49c644(0x10f)]+'-'+_0x2714be,_0x2dc053,void 0x0,_0x3be71d)));}function y(_0x110186,_0x162e53,_0x336f86){const _0x63bac8=_0x1531cf,_0x5c11b7={..._0x110186[_0x63bac8(0xd2)]};_0x336f86!=null&&_0x336f86['colorChannel1']&&_0x5c11b7[_0x63bac8(0xfe)]===_0x63bac8(0x14b)&&(_0x5c11b7['fill']=_0x336f86[_0x63bac8(0x14b)]),_0x110186[_0x63bac8(0x10f)]===_0x63bac8(0xdc)&&_0x5c11b7['id']&&(_0x5c11b7['id']=_0x5c11b7['id']+_0x162e53[_0x63bac8(0x146)]),Object[_0x63bac8(0x13c)](_0x5c11b7)[_0x63bac8(0xce)](([_0x2005b5,_0x5ca3a5])=>{const _0x2f8e53=_0x63bac8;_0x2005b5==='mask'&&typeof _0x5ca3a5==_0x2f8e53(0x179)&&(_0x5c11b7[_0x2005b5]=_0x5ca3a5[_0x2f8e53(0x170)](/url\(#(.*)\)/,'url(#$1'+_0x162e53[_0x2f8e53(0x146)]+')'));});const {defIds:_0x58afae}=_0x162e53;return!_0x58afae||_0x58afae[_0x63bac8(0x10d)]===0x0||(_0x110186['tag']==='use'&&_0x5c11b7[_0x63bac8(0x171)]&&(_0x5c11b7['xlink:href']=_0x5c11b7['xlink:href']+_0x162e53['idSuffix']),Object['entries'](_0x5c11b7)[_0x63bac8(0xce)](([_0x332aff,_0x3e1149])=>{const _0x4a2b8f=_0x63bac8;typeof _0x3e1149==_0x4a2b8f(0x179)&&(_0x5c11b7[_0x332aff]=_0x3e1149[_0x4a2b8f(0x170)](/url\(#(.*)\)/,'url(#$1'+_0x162e53[_0x4a2b8f(0x146)]+')'));})),_0x5c11b7;}function F(_0x54ff44,_0x4335e7){const _0x54a67b=_0x1531cf;var _0x43ad99;const {defIds:_0x5c3922}=_0x4335e7;return!_0x5c3922||_0x5c3922[_0x54a67b(0x10d)]===0x0?_0x54ff44:_0x54ff44[_0x54a67b(0x10f)]===_0x54a67b(0x102)&&((_0x43ad99=_0x54ff44[_0x54a67b(0x154)])!=null&&_0x43ad99[_0x54a67b(0x10d)])?{..._0x54ff44,'children':_0x54ff44['children'][_0x54a67b(0x11f)](_0x2b9d6d=>typeof _0x2b9d6d['attrs']['id']==_0x54a67b(0x179)&&_0x5c3922&&_0x5c3922[_0x54a67b(0xdb)](_0x2b9d6d['attrs']['id'])?{..._0x2b9d6d,'attrs':{..._0x2b9d6d[_0x54a67b(0xd2)],'id':_0x2b9d6d[_0x54a67b(0xd2)]['id']+_0x4335e7[_0x54a67b(0x146)]}}:_0x2b9d6d)}:_0x54ff44;}function _0xe3b6(_0x12867e,_0x42c1bd){const _0x24351b=_0x2435();return _0xe3b6=function(_0xe3b672,_0x174f81){_0xe3b672=_0xe3b672-0xc9;let _0x4d9afb=_0x24351b[_0xe3b672];return _0x4d9afb;},_0xe3b6(_0x12867e,_0x42c1bd);}function H(){const _0x496029=_0x1531cf;return Math[_0x496029(0x130)]()[_0x496029(0x186)](0x24)['substring'](0x2,0x8);}x[_0x1531cf(0xd8)]='UniverIcon';const V={'tag':'svg','attrs':{'xmlns':_0x1531cf(0xcc),'fill':_0x1531cf(0xee),'viewBox':_0x1531cf(0x195),'width':_0x1531cf(0x18f),'height':_0x1531cf(0x18f)},'children':[{'tag':_0x1531cf(0xe0),'attrs':{'fill':_0x1531cf(0x16c),'d':_0x1531cf(0x103)}},{'tag':_0x1531cf(0xe0),'attrs':{'fill':_0x1531cf(0x16c),'d':_0x1531cf(0x109),'fillRule':_0x1531cf(0x197),'clipRule':'evenodd'}}]},R=v[_0x1531cf(0xea)](function(_0x2c47ba,_0xb452bc){const _0x89a8af=_0x1531cf;return v[_0x89a8af(0x16d)](x,Object[_0x89a8af(0x14f)]({},_0x2c47ba,{'id':_0x89a8af(0x12e),'ref':_0xb452bc,'icon':V}));});R['displayName']='LiveShareIcon';class E extends o[_0x1531cf(0x10e)]{constructor(){const _0x221dae=_0x1531cf;super(...arguments),_(this,_0x221dae(0x156),new Set()),_(this,_0x221dae(0x1a2),new Set());}[_0x1531cf(0x196)](_0x114581){const _0x5cf882=_0x1531cf;return this[_0x5cf882(0x156)][_0x5cf882(0x183)](_0x114581),o[_0x5cf882(0xfc)](()=>this[_0x5cf882(0x156)][_0x5cf882(0x19c)](_0x114581));}[_0x1531cf(0x12d)](_0x13ba00){const _0x3c60e6=_0x1531cf;return this[_0x3c60e6(0x1a2)][_0x3c60e6(0x183)](_0x13ba00),o[_0x3c60e6(0xfc)](()=>this[_0x3c60e6(0x1a2)][_0x3c60e6(0x19c)](_0x13ba00));}[_0x1531cf(0xeb)](_0x42283c){const _0x21c269=_0x1531cf;return this['_sharedOperations'][_0x21c269(0x149)](_0x42283c);}[_0x1531cf(0x143)](_0x159668){const _0x2d62bb=_0x1531cf;return Array[_0x2d62bb(0x14c)](this[_0x2d62bb(0x1a2)])['map'](_0x50f86a=>_0x50f86a(_0x159668));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x49b968,_0x4da93a,_0x155724,_0x3efba0)=>{const _0x34cdf4=_0x1531cf;for(var _0x3d41df=_0x3efba0>0x1?void 0x0:_0x3efba0?M(_0x4da93a,_0x155724):_0x4da93a,_0x1a74d1=_0x49b968[_0x34cdf4(0x10d)]-0x1,_0x4b8c9d;_0x1a74d1>=0x0;_0x1a74d1--)(_0x4b8c9d=_0x49b968[_0x1a74d1])&&(_0x3d41df=_0x4b8c9d(_0x3d41df)||_0x3d41df);return _0x3d41df;},S=(_0x571733,_0x30c200)=>(_0x897a2d,_0x49f3e7)=>_0x30c200(_0x897a2d,_0x49f3e7,_0x571733);exports[_0x1531cf(0x1a1)]=class extends o[_0x1531cf(0x192)]{constructor(_0x71d8e3,_0x220134,_0x41eda7){const _0x4312a9=_0x1531cf;super(),_(this,'_entities',new Map()),(this[_0x4312a9(0x117)]=_0x71d8e3,this[_0x4312a9(0x15a)]=_0x220134,this[_0x4312a9(0x14a)]=_0x41eda7,this[_0x4312a9(0x166)]());}async[_0x1531cf(0x13f)](_0x2d75e5){const _0x476a55=_0x1531cf;return this[_0x476a55(0xff)][_0x476a55(0x149)](_0x2d75e5)||await this[_0x476a55(0x13b)](_0x2d75e5),this['_entities']['get'](_0x2d75e5);}[_0x1531cf(0x13e)](_0x19f20b){const _0x288d82=_0x1531cf;var _0x26b982;return(_0x26b982=this[_0x288d82(0xff)][_0x288d82(0xe8)](_0x19f20b))!=null?_0x26b982:null;}[_0x1531cf(0x166)](){const _0x118a6d=_0x1531cf;this[_0x118a6d(0x117)][_0x118a6d(0xf4)](o[_0x118a6d(0x18c)]['UNIVER_SHEET'])['pipe'](I['takeUntil'](this[_0x118a6d(0x141)]))[_0x118a6d(0x12b)](async _0x4dea90=>{const _0x45c973=_0x118a6d,_0x1c8f62=_0x4dea90[_0x45c973(0xcf)]();this[_0x45c973(0xff)]['has'](_0x1c8f62)||this[_0x45c973(0x13b)](_0x1c8f62);}),this[_0x118a6d(0x117)][_0x118a6d(0x193)](o[_0x118a6d(0x18c)][_0x118a6d(0xe6)])['pipe'](I[_0x118a6d(0x104)](this['dispose$']))[_0x118a6d(0x12b)](_0x5a4b35=>{const _0x501f7b=_0x118a6d,_0x5abfb1=_0x5a4b35[_0x501f7b(0xcf)](),_0x1750c5=this['_entities'][_0x501f7b(0xe8)](_0x5abfb1);_0x1750c5==null||_0x1750c5[_0x501f7b(0x11e)]();});}async[_0x1531cf(0x13b)](_0x408ef6){const _0x1d0145=_0x1531cf,_0x38ca01=await this[_0x1d0145(0x14a)][_0x1d0145(0x19f)](_0x408ef6),_0x131e40=this['_injector'][_0x1d0145(0x16e)](exports['LiveShareCoordinator'],_0x408ef6,_0x38ca01);return _0x131e40['init'](),this['_entities'][_0x1d0145(0xf2)](_0x408ef6,_0x131e40),_0x131e40;}},exports[_0x1531cf(0x1a1)]=P([S(0x0,o[_0x1531cf(0x181)]),S(0x1,o[_0x1531cf(0xf8)](o[_0x1531cf(0x127)])),S(0x2,o[_0x1531cf(0xf8)](b[_0x1531cf(0xf0)]))],exports[_0x1531cf(0x1a1)]);var u=(_0x4970ef=>(_0x4970ef[_0x1531cf(0x190)]=_0x1531cf(0x163),_0x4970ef['IDLE']=_0x1531cf(0xf7),_0x4970ef['FOLLOWING']=_0x1531cf(0xda),_0x4970ef['NOT_FOLLOWING']='not-following',_0x4970ef[_0x1531cf(0x157)]='presenting',_0x4970ef))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x1531cf(0x168)]=class extends o[_0x1531cf(0x192)]{constructor(_0x4945f2,_0x1f3151,_0x354507,_0x11add4,_0x3183a6){const _0x42862f=_0x1531cf;super(),_(this,'_status$',new O[(_0x42862f(0xec))](_0x42862f(0xf7))),_(this,_0x42862f(0x107),this[_0x42862f(0xf5)][_0x42862f(0xf9)]()),_(this,_0x42862f(0x166),!0x1),_(this,_0x42862f(0x128),null),_(this,_0x42862f(0x129),null),(this[_0x42862f(0x148)]=_0x4945f2,this['_collabSession']=_0x1f3151,this[_0x42862f(0xd1)]=_0x354507,this[_0x42862f(0x142)]=_0x11add4,this[_0x42862f(0x185)]=_0x3183a6);}get[_0x1531cf(0x116)](){const _0x241c53=_0x1531cf;return this[_0x241c53(0xf5)]['getValue']();}[_0x1531cf(0x11e)](){const _0x38a589=_0x1531cf;var _0x29d5db;(_0x29d5db=this[_0x38a589(0x128)])==null||_0x29d5db['dispose'](),this[_0x38a589(0xf5)][_0x38a589(0xed)](_0x38a589(0xf7)),this[_0x38a589(0xf5)][_0x38a589(0xf3)]();}['getStatus'](){const _0x29e07e=_0x1531cf;return this[_0x29e07e(0x116)];}[_0x1531cf(0xcd)](){const _0x3e8116=_0x1531cf;this[_0x3e8116(0x166)]||(this[_0x3e8116(0x166)]=!0x0,this[_0x3e8116(0xe3)][_0x3e8116(0x135)]['pipe'](I[_0x3e8116(0x104)](this[_0x3e8116(0x141)]))[_0x3e8116(0x12b)](_0x16c4ba=>{const _0x540223=_0x3e8116;switch(_0x16c4ba){case b[_0x540223(0xe9)][_0x540223(0x190)]:this['_handleOffline']();break;case b[_0x540223(0xe9)][_0x540223(0x133)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x3e8116(0x120)][_0x3e8116(0x16f)](I[_0x3e8116(0x104)](this[_0x3e8116(0x141)]))[_0x3e8116(0x12b)](_0x30f23b=>{const _0x414efa=_0x3e8116,{eventID:_0x50c773}=_0x30f23b;switch(_0x50c773){case d[_0x414efa(0x19a)][_0x414efa(0x137)]:this[_0x414efa(0x180)](_0x30f23b);break;case d[_0x414efa(0x19a)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x30f23b);break;case d[_0x414efa(0x19a)][_0x414efa(0x13a)]:this[_0x414efa(0xdd)]();break;case d[_0x414efa(0x19a)][_0x414efa(0x188)]:this['_handleNewChangeSets'](_0x30f23b);break;}}));}[_0x1531cf(0x15d)](){const _0x2fe19c=_0x1531cf;this[_0x2fe19c(0xe3)][_0x2fe19c(0x132)]({'eventID':d[_0x2fe19c(0x19a)][_0x2fe19c(0x105)],'data':{'unitID':this[_0x2fe19c(0x148)],'userID':this[_0x2fe19c(0xe3)][_0x2fe19c(0x191)]()}},this['_unitID']);}[_0x1531cf(0x198)](){const _0x48bdbb=_0x1531cf;this[_0x48bdbb(0x116)]===_0x48bdbb(0x122)&&(this[_0x48bdbb(0xf5)]['next'](_0x48bdbb(0xf7)),this['_collabSession'][_0x48bdbb(0x132)]({'eventID':d[_0x48bdbb(0x19a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x48bdbb(0x148)]}},this[_0x48bdbb(0x148)]));}[_0x1531cf(0x19b)](){const _0x21c1ce=_0x1531cf;this['_status']==='not-following'&&(this[_0x21c1ce(0xf5)][_0x21c1ce(0xed)](_0x21c1ce(0xda)),this[_0x21c1ce(0x1a0)]());}[_0x1531cf(0x110)](){const _0x5268ed=_0x1531cf;this[_0x5268ed(0x116)]===_0x5268ed(0xda)&&this['_stopFollowing']();}[_0x1531cf(0x180)](_0x41622b){const _0x34134d=_0x1531cf,{presenter:_0x4b3847}=_0x41622b['data'],_0xe44f2d=this['_collabSession']['getMemberID']();this[_0x34134d(0x129)]=_0x4b3847,_0x4b3847===_0xe44f2d?(this[_0x34134d(0x194)](),this[_0x34134d(0x158)]()):this['_status']!==_0x34134d(0x18e)&&(this[_0x34134d(0xd3)](),this['_startFollowing']());}[_0x1531cf(0x11d)](){const _0x43759b=_0x1531cf,_0x56102e={'eventID':d['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x43759b(0x132)](_0x56102e,this[_0x43759b(0x148)]);}[_0x1531cf(0xdd)](){const _0x50a5fe=_0x1531cf;this['_presenter']=null,this[_0x50a5fe(0x116)]!=='presenting'&&this[_0x50a5fe(0x14d)]();}['_handleNewChangeSets'](_0x58e5f1){const _0x4b9278=_0x1531cf;if(this[_0x4b9278(0x116)]==='following'&&this[_0x4b9278(0x129)]===_0x58e5f1['data']['memberID']){const _0x30c747=d[_0x4b9278(0x101)](_0x58e5f1['data'])['mutations'][_0x4b9278(0x113)]()[_0x4b9278(0x162)](_0x4aa406=>_0x4aa406['id']===C[_0x4b9278(0xd0)]['id']);if(_0x30c747){const _0x3855f5=_0x30c747[_0x4b9278(0x11a)][_0x4b9278(0x160)],_0x17796d=_0x30c747[_0x4b9278(0x11a)]['sheet']['id'];setTimeout(()=>{const _0xced7a=_0x4b9278;this['_commandService'][_0xced7a(0x12f)](C[_0xced7a(0x121)]['id'],{'unitId':_0x3855f5,'subUnitId':_0x17796d},{'fromCollab':!0x0});});}}}[_0x1531cf(0x158)](){const _0x5d2438=_0x1531cf;this['_status$'][_0x5d2438(0xed)](_0x5d2438(0x122));const _0x387710=new Map(),_0x241c7c=this[_0x5d2438(0x128)]=new o[(_0x5d2438(0x10c))]();_0x241c7c[_0x5d2438(0x183)](o['toDisposable'](()=>{const _0x2378fd=_0x5d2438;_0x387710[_0x2378fd(0xce)](_0x61f0ea=>_0x61f0ea['complete']()),_0x387710[_0x2378fd(0x144)]();})),_0x241c7c['add'](this[_0x5d2438(0x185)][_0x5d2438(0x11c)](_0x108f80=>{const _0x2eb39c=_0x5d2438;var _0x583402;if(_0x108f80[_0x2eb39c(0xc9)]!==o[_0x2eb39c(0x167)][_0x2eb39c(0xd9)]||!this[_0x2eb39c(0x142)][_0x2eb39c(0xeb)](_0x108f80['id']))return;const {id:_0x2de26b}=_0x108f80;let _0x1443b5;_0x387710[_0x2eb39c(0x149)](_0x2de26b)?_0x1443b5=_0x387710['get'](_0x2de26b):(_0x1443b5=new O[(_0x2eb39c(0xfb))](),_0x387710[_0x2eb39c(0xf2)](_0x2de26b,_0x1443b5),_0x1443b5['pipe'](I[_0x2eb39c(0x10b)]((_0x583402=this['_configService']['getConfig'](k))!=null?_0x583402:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2eb39c(0x12b)](_0x50b3f7=>{const _0x5ad58b=_0x2eb39c;this[_0x5ad58b(0xe3)][_0x5ad58b(0x132)]({'eventID':d[_0x5ad58b(0x19a)][_0x5ad58b(0x174)],'data':{'unitID':this[_0x5ad58b(0x148)],'operations':{[_0x50b3f7['id']]:{'id':_0x50b3f7['id'],'params':JSON[_0x5ad58b(0x172)](_0x50b3f7['params'])}}}},this[_0x5ad58b(0x148)]);})),_0x1443b5[_0x2eb39c(0xed)](_0x108f80);})),this[_0x5d2438(0x142)]['getInitialStates'](this[_0x5d2438(0x148)])['forEach'](_0x3def1c=>this[_0x5d2438(0xe3)]['send']({'eventID':d[_0x5d2438(0x19a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5d2438(0x148)],'operations':{[_0x3def1c['id']]:{'id':_0x3def1c['id'],'params':JSON[_0x5d2438(0x172)](_0x3def1c['params'])}}}},this[_0x5d2438(0x148)]));}[_0x1531cf(0xd3)](){const _0x48d6ab=_0x1531cf;var _0x3a17b0;this['_status$']['next'](_0x48d6ab(0xf7)),(_0x3a17b0=this['_commandDisposable'])==null||_0x3a17b0[_0x48d6ab(0x11e)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x10e9fd=_0x1531cf;var _0x41b19a;(_0x41b19a=this[_0x10e9fd(0x128)])==null||_0x41b19a[_0x10e9fd(0x11e)](),this[_0x10e9fd(0xf5)][_0x10e9fd(0xed)](_0x10e9fd(0xda));}[_0x1531cf(0x14d)](){const _0x3ba9da=_0x1531cf;var _0x357a67;this[_0x3ba9da(0xf5)][_0x3ba9da(0xed)](_0x3ba9da(0xf7)),(_0x357a67=this[_0x3ba9da(0x128)])==null||_0x357a67['dispose'](),this[_0x3ba9da(0x128)]=null;}[_0x1531cf(0x194)](){const _0x3c149d=_0x1531cf;var _0x85f5cd;this[_0x3c149d(0xf5)][_0x3c149d(0xed)](_0x3c149d(0x18e)),(_0x85f5cd=this[_0x3c149d(0x128)])==null||_0x85f5cd[_0x3c149d(0x11e)]();}['_handleOperation'](_0x37efb0){const _0x1d7347=_0x1531cf;if([_0x1d7347(0x122),_0x1d7347(0x18e),_0x1d7347(0x163)][_0x1d7347(0xdb)](this[_0x1d7347(0x116)])||!_0x37efb0[_0x1d7347(0x169)][_0x1d7347(0x199)]||_0x37efb0[_0x1d7347(0x169)][_0x1d7347(0x199)]===this[_0x1d7347(0xe3)]['getMemberID']())return;this[_0x1d7347(0x116)]===_0x1d7347(0xf7)&&this[_0x1d7347(0x1a0)]();const _0x1fc7d6=_0x37efb0[_0x1d7347(0x169)][_0x1d7347(0xe7)];Object['values'](_0x1fc7d6)[_0x1d7347(0xce)](_0x1b00e2=>{const _0x11be2f=_0x1d7347;this[_0x11be2f(0x185)][_0x11be2f(0x12f)](_0x1b00e2['id'],_0x1b00e2[_0x11be2f(0x11a)]?JSON[_0x11be2f(0x15f)](_0x1b00e2['params']):null,{'fromCollab':!0x0});});}[_0x1531cf(0x126)](){const _0x2a6329=_0x1531cf;var _0x586caf;this[_0x2a6329(0xf5)][_0x2a6329(0xed)](_0x2a6329(0x163)),(_0x586caf=this[_0x2a6329(0x128)])==null||_0x586caf[_0x2a6329(0x11e)]();}['_handleOnline'](){const _0xa3a9f2=_0x1531cf;this[_0xa3a9f2(0xf5)]['next'](_0xa3a9f2(0xf7)),this[_0xa3a9f2(0x11d)]();}},exports[_0x1531cf(0x168)]=P([S(0x2,o[_0x1531cf(0x100)]),S(0x3,o[_0x1531cf(0xf8)](E)),S(0x4,o[_0x1531cf(0x119)])],exports[_0x1531cf(0x168)]);function $(){const _0x278f8d=_0x1531cf,_0x1a9c76=p[_0x278f8d(0x175)](exports['LiveShareController']),_0x21170c=p['useDependency'](o[_0x278f8d(0x181)]),_0x493e6d=p[_0x278f8d(0xde)](()=>_0x21170c['getCurrentTypeOfUnit$'](o[_0x278f8d(0x18c)][_0x278f8d(0xe6)]),void 0x0,!0x1,[]),[_0x3275c6,_0x20d545]=v[_0x278f8d(0xd4)](null),[_0x24ec3c,_0x35a77e]=v[_0x278f8d(0xd4)](u[_0x278f8d(0xe1)]),_0x526edc=v['useRef'](null);return v[_0x278f8d(0x106)](()=>(_0x493e6d&&_0x1a9c76['getLiveShareCoordinator'](_0x493e6d[_0x278f8d(0xcf)]())[_0x278f8d(0x189)](_0x1f2148=>{const _0x187a79=_0x278f8d;_0x20d545(_0x1f2148),_0x526edc[_0x187a79(0x145)]=_0x1f2148[_0x187a79(0x107)][_0x187a79(0x12b)](_0x19504e=>{_0x35a77e(_0x19504e);});}),()=>{const _0x142620=_0x278f8d;var _0x17cda7;(_0x17cda7=_0x526edc['current'])==null||_0x17cda7[_0x142620(0x151)](),_0x526edc['current']=null;}),[_0x493e6d,_0x1a9c76]),_0x3275c6?l['jsx'](f[_0x278f8d(0x123)],{'align':_0x278f8d(0xd5),'disabled':_0x24ec3c===u['OFFLINE'],'className':_0x278f8d(0x178),'overlay':l[_0x278f8d(0x176)](W,{'status':_0x24ec3c,'coordinator':_0x3275c6}),'children':l[_0x278f8d(0x176)](_0x278f8d(0xe4),{'className':f[_0x278f8d(0x124)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x24ec3c===u[_0x278f8d(0x190)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x24ec3c!==u[_0x278f8d(0x190)]}),'type':'button','children':l[_0x278f8d(0x176)](R,{'className':_0x278f8d(0x16b)})})}):null;}function W(_0x3897d3){const _0x2fffa5=_0x1531cf,{status:_0x22ba68,coordinator:_0x21a23f}=_0x3897d3;switch(_0x22ba68){case u['IDLE']:return l[_0x2fffa5(0x176)](G,{'coordinator':_0x21a23f});case u['FOLLOWING']:return l[_0x2fffa5(0x176)](B,{'coordinator':_0x21a23f});case u[_0x2fffa5(0x18d)]:return l['jsx'](Y,{'coordinator':_0x21a23f});case u[_0x2fffa5(0x190)]:return l['jsx'](J,{});case u[_0x2fffa5(0x157)]:return l[_0x2fffa5(0x176)](Z,{'coordinator':_0x21a23f});default:return null;}}function _0x2435(){const _0x2edbfe=['_handleOffline','Injector','_commandDisposable','_presenter','trim','subscribe','useRef','registerInitialStateReporter','live-share-icon','executeCommand','random','defineProperty','send','ONLINE','touchDependencies','sessionStatus$','111753BlGZVh','LIVESHARE_NEW_HOST','Module','UNIVER_UNKNOWN','LIVESHARE_TERMINATE','_startLiveShareCoordinator','entries','live-share.config','getLiveShareCoordinatorSync','getLiveShareCoordinator','LiveShareStatus','dispose$','_liveShareService','getInitialStates','clear','current','idSuffix','8248966ywZfyC','_unitID','has','_collabSessionService','colorChannel1','from','_beIdle','univer-mb-3\x20univer-w-full\x20univer-text-sm','assign','registerDependencies','unsubscribe','mergeOverrideWithDependencies','BuiltInUIPart','children','univerjs-icon\x20univerjs-icon-','_sharedOperations','PRESENTING','_startPresenting','default','_injector','Button','SetZoomRatioOperation','tryStartPresenting','registerComponent','parse','unitId','Plugin','find','offline','18767616MknBqu','getOwnPropertyDescriptor','_init','CommandType','LiveShareCoordinator','data','override','univer-size-4','currentColor','createElement','createInstance','pipe','replace','xlink:href','stringify','disposeWithMe','LIVESHARE_OPERATION','useDependency','jsx','Stop\x20following','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','string','You\x27re\x20not\x20following\x20the\x20presenter','UniverLiveSharePlugin','You\x27re\x20following\x20the\x20presenter','DependentOn','merge','6YaFDjS','_handleNewHost','IUniverInstanceService','symbol','add','2GEJDXx','_commandService','toString','Fragment','NEW_CHANGESETS','then','_config','connectInjector','UniverInstanceType','NOT_FOLLOWING','not-following','1em','OFFLINE','getMemberID','RxDisposable','getTypeOfUnitDisposed$','_stopFollowing','0\x200\x2017\x2017','registerSharedOperation','evenodd','stopPresenting','presenter','CollaborationEvent','startFollowing','delete','_uiPartsService','966774dpWEYT','requireSession','_startFollowing','LiveShareController','_reporters','type','You\x27re\x20presenting\x20the\x20document','SetScrollOperation','http://www.w3.org/2000/svg','init','forEach','getUnitId','InsertSheetMutation','_configService','attrs','_stopPresenting','useState','end','124oHTtci','div','displayName','OPERATION','following','includes','mask','_handleTerminate','useObservable','8379515TXESxE','path','IDLE','20ObxruT','_collabSession','button','Present\x20this\x20document','UNIVER_SHEET','operations','get','SessionStatus','forwardRef','shouldShareOperation','BehaviorSubject','next','none','onRendered','CollaborationSessionService','_mountLiveShare','set','complete','getTypeOfUnitAdded$','_status$','text','idle','Inject','asObservable','pluginName','Subject','toDisposable','3816XDkOgr','fill','_entities','IConfigService','parseProtocolChangeset','defs','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','takeUntil','LIVESHARE_REQUEST_HOST','useEffect','status$','LiveShare','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','toStringTag','throttleTime','DisposableCollection','length','Disposable','tag','stopFollowing','jsxs','DesktopLiveShareController','reverse','UNIVER_LIVE_SHARE_PLUGIN','You\x27are\x20offline.','_status','_univerInstanceService','setConfig','ICommandService','params','12837924DzRViB','onCommandExecuted','_fetchOperations','dispose','map','event$','SetWorksheetActiveOperation','presenting','Dropdown','clsx','15113wuirWs'];_0x2435=function(){return _0x2edbfe;};return _0x2435();}function G(_0x57490e){const _0x206a4e=_0x1531cf,{coordinator:_0x495b19}=_0x57490e;return l['jsxs'](l[_0x206a4e(0x187)],{'children':[l['jsx'](_0x206a4e(0xd7),{'className':_0x206a4e(0x14e),'children':_0x206a4e(0xe5)}),l[_0x206a4e(0x176)](f[_0x206a4e(0x15b)],{'onClick':()=>_0x495b19[_0x206a4e(0x15d)](),'children':'Start'})]});}function B(_0x4f0903){const _0x255068=_0x1531cf,{coordinator:_0x457fa7}=_0x4f0903;return l[_0x255068(0x111)](l[_0x255068(0x187)],{'children':[l[_0x255068(0x176)](_0x255068(0xd7),{'className':_0x255068(0x14e),'children':_0x255068(0x17c)}),l[_0x255068(0x176)](f[_0x255068(0x15b)],{'onClick':()=>_0x457fa7['stopFollowing'](),'children':_0x255068(0x177)})]});}function Y(_0x376b97){const _0x20bedf=_0x1531cf,{coordinator:_0x44d369}=_0x376b97;return l[_0x20bedf(0x111)](l[_0x20bedf(0x187)],{'children':[l['jsx'](_0x20bedf(0xd7),{'className':_0x20bedf(0x14e),'children':_0x20bedf(0x17a)}),l['jsx'](f[_0x20bedf(0x15b)],{'variant':_0x20bedf(0xf6),'onClick':()=>_0x44d369['startFollowing'](),'children':'Start\x20following'})]});}function Z(_0x29b331){const _0x702443=_0x1531cf,{coordinator:_0x5201f2}=_0x29b331;return l[_0x702443(0x111)](l['Fragment'],{'children':[l[_0x702443(0x176)](_0x702443(0xd7),{'className':_0x702443(0x14e),'children':_0x702443(0xca)}),l[_0x702443(0x176)](f[_0x702443(0x15b)],{'variant':_0x702443(0x159),'onClick':()=>_0x5201f2[_0x702443(0x198)](),'children':'Stop\x20presenting'})]});}function J(){const _0x3005a2=_0x1531cf;return l['jsx'](l[_0x3005a2(0x187)],{'children':_0x3005a2(0x115)});}var K=Object[_0x1531cf(0x165)],z=(_0x220e41,_0x476188,_0x448841,_0x17a034)=>{const _0x2443c0=_0x1531cf;for(var _0x2c6f35=_0x17a034>0x1?void 0x0:_0x17a034?K(_0x476188,_0x448841):_0x476188,_0x1272b7=_0x220e41[_0x2443c0(0x10d)]-0x1,_0x2c5b7e;_0x1272b7>=0x0;_0x1272b7--)(_0x2c5b7e=_0x220e41[_0x1272b7])&&(_0x2c6f35=_0x2c5b7e(_0x2c6f35)||_0x2c6f35);return _0x2c6f35;},L=(_0x5a4a4b,_0xaf969e)=>(_0x18e350,_0x32b95c)=>_0xaf969e(_0x18e350,_0x32b95c,_0x5a4a4b);exports[_0x1531cf(0x112)]=class extends o[_0x1531cf(0x10e)]{constructor(_0x1f746e,_0x58d79b){const _0x3504b7=_0x1531cf;super(),this['_injector']=_0x1f746e,this[_0x3504b7(0x19d)]=_0x58d79b,this[_0x3504b7(0xf1)]();}[_0x1531cf(0xf1)](){const _0x24190f=_0x1531cf;this['disposeWithMe'](this[_0x24190f(0x19d)][_0x24190f(0x15e)](p[_0x24190f(0x153)]['HEADER_MENU'],()=>p[_0x24190f(0x18b)]($,this[_0x24190f(0x15a)])));}},exports[_0x1531cf(0x112)]=z([L(0x0,o['Inject'](o['Injector'])),L(0x1,p['IUIPartsService'])],exports[_0x1531cf(0x112)]);const Q=_0x1531cf(0x13d),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x2d3c5e,_0x422aa7,_0x82a5c6,_0x5cd520)=>{const _0x3e00f7=_0x1531cf;for(var _0x1b9d76=_0x5cd520>0x1?void 0x0:_0x5cd520?X(_0x422aa7,_0x82a5c6):_0x422aa7,_0x4a0e8c=_0x2d3c5e[_0x3e00f7(0x10d)]-0x1,_0x529920;_0x4a0e8c>=0x0;_0x4a0e8c--)(_0x529920=_0x2d3c5e[_0x4a0e8c])&&(_0x1b9d76=_0x529920(_0x1b9d76)||_0x1b9d76);return _0x1b9d76;},te=(_0x27fa3f,_0x58f8a0)=>(_0x3ccdba,_0x3d6067)=>_0x58f8a0(_0x3ccdba,_0x3d6067,_0x27fa3f);let m=class extends o['Disposable']{constructor(_0x1b9dad){const _0x97d2b5=_0x1531cf;super(),this[_0x97d2b5(0x142)]=_0x1b9dad,this[_0x97d2b5(0x166)]();}[_0x1531cf(0x166)](){const _0x3e7315=_0x1531cf;[D[_0x3e7315(0x15c)]['id'],D[_0x3e7315(0xcb)]['id'],C[_0x3e7315(0x121)]['id']][_0x3e7315(0xce)](_0x3c9bc4=>{const _0x1b22d7=_0x3e7315;this[_0x1b22d7(0x173)](this[_0x1b22d7(0x142)]['registerSharedOperation'](_0x3c9bc4));});}};m=ee([te(0x0,o[_0x1531cf(0xf8)](E))],m);var ie=Object['defineProperty'],se=Object[_0x1531cf(0x165)],ne=(_0x16cd13,_0x908ac3,_0x1d90ce)=>_0x908ac3 in _0x16cd13?ie(_0x16cd13,_0x908ac3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d90ce}):_0x16cd13[_0x908ac3]=_0x1d90ce,re=(_0x44ddcf,_0x2c8f0f,_0x239775,_0x28a7c9)=>{const _0x48cb97=_0x1531cf;for(var _0x4dab75=_0x28a7c9>0x1?void 0x0:_0x28a7c9?se(_0x2c8f0f,_0x239775):_0x2c8f0f,_0xb21dab=_0x44ddcf[_0x48cb97(0x10d)]-0x1,_0x5aa874;_0xb21dab>=0x0;_0xb21dab--)(_0x5aa874=_0x44ddcf[_0xb21dab])&&(_0x4dab75=_0x5aa874(_0x4dab75)||_0x4dab75);return _0x4dab75;},N=(_0x2b4631,_0x152f08)=>(_0x3f305b,_0x36935b)=>_0x152f08(_0x3f305b,_0x36935b,_0x2b4631),A=(_0x2393f0,_0x2f3ab9,_0x3b24ee)=>ne(_0x2393f0,typeof _0x2f3ab9!=_0x1531cf(0x182)?_0x2f3ab9+'':_0x2f3ab9,_0x3b24ee);const oe=_0x1531cf(0x114);exports[_0x1531cf(0x17b)]=class extends o[_0x1531cf(0x161)]{constructor(_0x2aed31=w,_0xa1a9e0,_0x59deaf){const _0x1332a3=_0x1531cf;super(),this[_0x1332a3(0x18a)]=_0x2aed31,this[_0x1332a3(0x15a)]=_0xa1a9e0,this[_0x1332a3(0xd1)]=_0x59deaf;const {..._0x308b8a}=o[_0x1332a3(0x17e)]({},w,this[_0x1332a3(0x18a)]);this[_0x1332a3(0xd1)][_0x1332a3(0x118)](Q,_0x308b8a);}['onStarting'](){const _0x1488f3=_0x1531cf;o[_0x1488f3(0x150)](this[_0x1488f3(0x15a)],o[_0x1488f3(0x152)]([[E],[exports[_0x1488f3(0x1a1)]],[m],[exports['DesktopLiveShareController']]],this[_0x1488f3(0x18a)][_0x1488f3(0x16a)])),o[_0x1488f3(0x134)](this[_0x1488f3(0x15a)],[[m]]);}[_0x1531cf(0xef)](){const _0x2fd15f=_0x1531cf;o[_0x2fd15f(0x134)](this[_0x2fd15f(0x15a)],[[exports[_0x2fd15f(0x112)]]]);}},A(exports['UniverLiveSharePlugin'],_0x1531cf(0xc9),o[_0x1531cf(0x18c)][_0x1531cf(0x139)]),A(exports['UniverLiveSharePlugin'],_0x1531cf(0xfa),oe),exports[_0x1531cf(0x17b)]=re([o[_0x1531cf(0x17d)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x1531cf(0xf8)](o['Injector'])),N(0x2,o[_0x1531cf(0x100)])],exports['UniverLiveSharePlugin']),exports[_0x1531cf(0x108)]=$,exports['LiveShareService']=E,exports[_0x1531cf(0x140)]=u;
1
+ 'use strict';const _0x3f9ef0=_0x41cd;(function(_0x26b630,_0x2dc4dd){const _0x43877c=_0x41cd,_0x17b84c=_0x26b630();while(!![]){try{const _0x1d970c=parseInt(_0x43877c(0x135))/0x1+-parseInt(_0x43877c(0x188))/0x2+parseInt(_0x43877c(0x179))/0x3+-parseInt(_0x43877c(0x190))/0x4+-parseInt(_0x43877c(0x1a3))/0x5+-parseInt(_0x43877c(0x131))/0x6+parseInt(_0x43877c(0x158))/0x7;if(_0x1d970c===_0x2dc4dd)break;else _0x17b84c['push'](_0x17b84c['shift']());}catch(_0x380f36){_0x17b84c['push'](_0x17b84c['shift']());}}}(_0x118c,0x43629));function _0x41cd(_0x1c0f1e,_0x318581){const _0x118cc9=_0x118c();return _0x41cd=function(_0x41cd3f,_0x1fcc48){_0x41cd3f=_0x41cd3f-0x11d;let _0x23596d=_0x118cc9[_0x41cd3f];return _0x23596d;},_0x41cd(_0x1c0f1e,_0x318581);}var T=Object['defineProperty'],U=(_0x4ea5fa,_0x2ff388,_0x127c7e)=>_0x2ff388 in _0x4ea5fa?T(_0x4ea5fa,_0x2ff388,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x127c7e}):_0x4ea5fa[_0x2ff388]=_0x127c7e,_=(_0x387b01,_0x4711c6,_0x4bf803)=>U(_0x387b01,typeof _0x4711c6!=_0x3f9ef0(0x149)?_0x4711c6+'':_0x4711c6,_0x4bf803);Object[_0x3f9ef0(0x1b1)](exports,Symbol[_0x3f9ef0(0x1a2)],{'value':_0x3f9ef0(0x1ad)});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:_0x328080,..._0x1e84a9}){const _0x295526=_0x3f9ef0,{icon:_0x39b5c3,id:_0xc36f5e,className:_0x249ad7,extend:_0x4142cb,..._0x210f71}=_0x1e84a9,_0x165b2d=(_0x295526(0x1cd)+_0xc36f5e+'\x20'+(_0x249ad7||''))[_0x295526(0x1ef)](),_0x3dc11e=v[_0x295526(0x13b)]('_'+H());return j(_0x39b5c3,''+_0xc36f5e,{'defIds':_0x39b5c3[_0x295526(0x13f)],'idSuffix':_0x3dc11e['current']},{'ref':_0x328080,'className':_0x165b2d,..._0x210f71},_0x4142cb);}function j(_0x594671,_0x37e2cb,_0x3e3bab,_0x260657,_0x10ea39){const _0x45b61c=_0x3f9ef0;return v[_0x45b61c(0x136)](_0x594671[_0x45b61c(0x19b)],{'key':_0x37e2cb,...y(_0x594671,_0x3e3bab,_0x10ea39),..._0x260657},(F(_0x594671,_0x3e3bab)[_0x45b61c(0x15f)]||[])['map']((_0x32d6c9,_0x22cf90)=>j(_0x32d6c9,_0x37e2cb+'-'+_0x594671[_0x45b61c(0x19b)]+'-'+_0x22cf90,_0x3e3bab,void 0x0,_0x10ea39)));}function y(_0x45dfb4,_0x1824ad,_0x26f334){const _0x595b8b=_0x3f9ef0,_0x4327c9={..._0x45dfb4[_0x595b8b(0x1d8)]};_0x26f334!=null&&_0x26f334[_0x595b8b(0x14c)]&&_0x4327c9['fill']===_0x595b8b(0x14c)&&(_0x4327c9['fill']=_0x26f334[_0x595b8b(0x14c)]),_0x45dfb4['tag']===_0x595b8b(0x137)&&_0x4327c9['id']&&(_0x4327c9['id']=_0x4327c9['id']+_0x1824ad['idSuffix']),Object['entries'](_0x4327c9)[_0x595b8b(0x1e0)](([_0x15df46,_0x43cf6e])=>{const _0x3c0f2f=_0x595b8b;_0x15df46===_0x3c0f2f(0x137)&&typeof _0x43cf6e==_0x3c0f2f(0x154)&&(_0x4327c9[_0x15df46]=_0x43cf6e[_0x3c0f2f(0x1b6)](/url\(#(.*)\)/,_0x3c0f2f(0x1f2)+_0x1824ad[_0x3c0f2f(0x141)]+')'));});const {defIds:_0x23f317}=_0x1824ad;return!_0x23f317||_0x23f317[_0x595b8b(0x159)]===0x0||(_0x45dfb4[_0x595b8b(0x19b)]==='use'&&_0x4327c9[_0x595b8b(0x126)]&&(_0x4327c9[_0x595b8b(0x126)]=_0x4327c9['xlink:href']+_0x1824ad[_0x595b8b(0x141)]),Object[_0x595b8b(0x163)](_0x4327c9)[_0x595b8b(0x1e0)](([_0x4fcd72,_0x30de02])=>{const _0x34cb25=_0x595b8b;typeof _0x30de02==_0x34cb25(0x154)&&(_0x4327c9[_0x4fcd72]=_0x30de02[_0x34cb25(0x1b6)](/url\(#(.*)\)/,_0x34cb25(0x1f2)+_0x1824ad[_0x34cb25(0x141)]+')'));})),_0x4327c9;}function F(_0x3717d3,_0x85322f){const _0x24613b=_0x3f9ef0;var _0xd7d70e;const {defIds:_0x411daf}=_0x85322f;return!_0x411daf||_0x411daf['length']===0x0?_0x3717d3:_0x3717d3[_0x24613b(0x19b)]===_0x24613b(0x19d)&&((_0xd7d70e=_0x3717d3[_0x24613b(0x15f)])!=null&&_0xd7d70e['length'])?{..._0x3717d3,'children':_0x3717d3[_0x24613b(0x15f)][_0x24613b(0x14e)](_0x2cccac=>typeof _0x2cccac[_0x24613b(0x1d8)]['id']==_0x24613b(0x154)&&_0x411daf&&_0x411daf[_0x24613b(0x17d)](_0x2cccac[_0x24613b(0x1d8)]['id'])?{..._0x2cccac,'attrs':{..._0x2cccac[_0x24613b(0x1d8)],'id':_0x2cccac[_0x24613b(0x1d8)]['id']+_0x85322f[_0x24613b(0x141)]}}:_0x2cccac)}:_0x3717d3;}function H(){const _0x51210c=_0x3f9ef0;return Math[_0x51210c(0x1c5)]()['toString'](0x24)[_0x51210c(0x199)](0x2,0x8);}x['displayName']=_0x3f9ef0(0x1bb);const V={'tag':_0x3f9ef0(0x192),'attrs':{'xmlns':_0x3f9ef0(0x151),'fill':_0x3f9ef0(0x138),'viewBox':_0x3f9ef0(0x1a5),'width':'1em','height':_0x3f9ef0(0x193)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x3f9ef0(0x11e)}},{'tag':_0x3f9ef0(0x1e4),'attrs':{'fill':_0x3f9ef0(0x16f),'d':_0x3f9ef0(0x184),'fillRule':'evenodd','clipRule':_0x3f9ef0(0x1d2)}}]},R=v[_0x3f9ef0(0x1e7)](function(_0x5b4a94,_0x2d14a7){const _0x4726bf=_0x3f9ef0;return v['createElement'](x,Object[_0x4726bf(0x1bf)]({},_0x5b4a94,{'id':_0x4726bf(0x1ca),'ref':_0x2d14a7,'icon':V}));});R['displayName']=_0x3f9ef0(0x172);class E extends o[_0x3f9ef0(0x18c)]{constructor(){const _0x2b42a3=_0x3f9ef0;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x2b42a3(0x1c0),new Set());}[_0x3f9ef0(0x1d7)](_0x45fa15){const _0x42b82d=_0x3f9ef0;return this[_0x42b82d(0x171)][_0x42b82d(0x17e)](_0x45fa15),o[_0x42b82d(0x1f0)](()=>this[_0x42b82d(0x171)]['delete'](_0x45fa15));}[_0x3f9ef0(0x1dd)](_0x2d077c){const _0x31e8e4=_0x3f9ef0;return this[_0x31e8e4(0x1c0)][_0x31e8e4(0x17e)](_0x2d077c),o[_0x31e8e4(0x1f0)](()=>this[_0x31e8e4(0x1c0)][_0x31e8e4(0x16e)](_0x2d077c));}['shouldShareOperation'](_0x45ab8e){const _0x2766e6=_0x3f9ef0;return this[_0x2766e6(0x171)][_0x2766e6(0x17a)](_0x45ab8e);}[_0x3f9ef0(0x14b)](_0x2ff32b){const _0x3be564=_0x3f9ef0;return Array[_0x3be564(0x1c7)](this['_reporters'])['map'](_0x1dd30d=>_0x1dd30d(_0x2ff32b));}}var M=Object[_0x3f9ef0(0x1cb)],P=(_0x3ab9a4,_0x171558,_0x138f30,_0xe3343c)=>{const _0x4bdcd6=_0x3f9ef0;for(var _0x8d602d=_0xe3343c>0x1?void 0x0:_0xe3343c?M(_0x171558,_0x138f30):_0x171558,_0x4e0e34=_0x3ab9a4[_0x4bdcd6(0x159)]-0x1,_0x9e9d76;_0x4e0e34>=0x0;_0x4e0e34--)(_0x9e9d76=_0x3ab9a4[_0x4e0e34])&&(_0x8d602d=_0x9e9d76(_0x8d602d)||_0x8d602d);return _0x8d602d;},S=(_0x10eec0,_0xe47ee3)=>(_0x31faa7,_0x46ebcf)=>_0xe47ee3(_0x31faa7,_0x46ebcf,_0x10eec0);exports['LiveShareController']=class extends o[_0x3f9ef0(0x145)]{constructor(_0x39bc42,_0x10364c,_0x2a5d5b){const _0x3e6dc0=_0x3f9ef0;super(),_(this,_0x3e6dc0(0x139),new Map()),(this['_univerInstanceService']=_0x39bc42,this[_0x3e6dc0(0x174)]=_0x10364c,this[_0x3e6dc0(0x18e)]=_0x2a5d5b,this[_0x3e6dc0(0x1c4)]());}async[_0x3f9ef0(0x142)](_0x5e953b){const _0x25ba3e=_0x3f9ef0;return this[_0x25ba3e(0x139)][_0x25ba3e(0x17a)](_0x5e953b)||await this[_0x25ba3e(0x1e6)](_0x5e953b),this['_entities'][_0x25ba3e(0x1ea)](_0x5e953b);}['getLiveShareCoordinatorSync'](_0x1543df){const _0x39e3c4=_0x3f9ef0;var _0x5c7f52;return(_0x5c7f52=this[_0x39e3c4(0x139)][_0x39e3c4(0x1ea)](_0x1543df))!=null?_0x5c7f52:null;}[_0x3f9ef0(0x1c4)](){const _0x49587e=_0x3f9ef0;this[_0x49587e(0x1b4)]['getTypeOfUnitAdded$'](o[_0x49587e(0x1d9)][_0x49587e(0x167)])['pipe'](I[_0x49587e(0x1ab)](this['dispose$']))[_0x49587e(0x13a)](async _0x23d77c=>{const _0x2032bf=_0x49587e,_0x3d9235=_0x23d77c[_0x2032bf(0x166)]();this[_0x2032bf(0x139)][_0x2032bf(0x17a)](_0x3d9235)||this[_0x2032bf(0x1e6)](_0x3d9235);}),this[_0x49587e(0x1b4)]['getTypeOfUnitDisposed$'](o[_0x49587e(0x1d9)][_0x49587e(0x167)])[_0x49587e(0x1ee)](I['takeUntil'](this[_0x49587e(0x1be)]))['subscribe'](_0x156bdb=>{const _0xab3289=_0x49587e,_0x1aa659=_0x156bdb['getUnitId'](),_0x17e2fb=this[_0xab3289(0x139)][_0xab3289(0x1ea)](_0x1aa659);_0x17e2fb==null||_0x17e2fb[_0xab3289(0x1c1)]();});}async['_startLiveShareCoordinator'](_0x2cc52c){const _0x31cbc9=_0x3f9ef0,_0x1dd2a7=await this[_0x31cbc9(0x18e)]['requireSession'](_0x2cc52c),_0x4ceaa4=this[_0x31cbc9(0x174)][_0x31cbc9(0x1a1)](exports[_0x31cbc9(0x1db)],_0x2cc52c,_0x1dd2a7);return _0x4ceaa4[_0x31cbc9(0x1d6)](),this[_0x31cbc9(0x139)][_0x31cbc9(0x1af)](_0x2cc52c,_0x4ceaa4),_0x4ceaa4;}},exports[_0x3f9ef0(0x12a)]=P([S(0x0,o[_0x3f9ef0(0x1d3)]),S(0x1,o[_0x3f9ef0(0x1c8)](o[_0x3f9ef0(0x1aa)])),S(0x2,o[_0x3f9ef0(0x1c8)](b['CollaborationSessionService']))],exports[_0x3f9ef0(0x12a)]);var u=(_0x4f8b04=>(_0x4f8b04[_0x3f9ef0(0x18d)]='offline',_0x4f8b04[_0x3f9ef0(0x178)]='idle',_0x4f8b04[_0x3f9ef0(0x195)]=_0x3f9ef0(0x120),_0x4f8b04[_0x3f9ef0(0x150)]=_0x3f9ef0(0x168),_0x4f8b04[_0x3f9ef0(0x197)]=_0x3f9ef0(0x169),_0x4f8b04))(u||{});const k=_0x3f9ef0(0x121),q=0xc8;function _0x118c(){const _0x3deef1=['LIVESHARE_TERMINATE','string','_beIdle','LIVESHARE_OPERATION','stopPresenting','3736873zncRyT','length','useEffect','unsubscribe','ONLINE','LIVESHARE_REQUEST_HOST','univer-size-4','children','end','SetZoomRatioOperation','button','entries','override','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getUnitId','UNIVER_SHEET','not-following','presenting','jsxs','merge','stopFollowing','parse','delete','currentColor','_presenter','_sharedOperations','LiveShareIcon','clear','_injector','DesktopLiveShareController','OPERATION','operations','IDLE','1221078XBzRZS','has','Subject','_fetchOperations','includes','add','Stop\x20presenting','stringify','getCurrentTypeOfUnit$','IConfigService','getMemberID','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','offline','_status$','SessionStatus','796258LrSXNs','_handleOffline','disposeWithMe','presenter','Disposable','OFFLINE','_collabSessionService','event$','256876IdENsB','UNIVER_LIVE_SHARE_PLUGIN','svg','1em','univer-mb-3\x20univer-w-full\x20univer-text-sm','FOLLOWING','NEW_CHANGESETS','PRESENTING','_status','substring','startFollowing','tag','InsertSheetMutation','defs','onCommandExecuted','onRendered','_commandDisposable','createInstance','toStringTag','2205075UomJFu','_startFollowing','0\x200\x2017\x2017','UNIVER_UNKNOWN','UniverLiveSharePlugin','You\x27re\x20not\x20following\x20the\x20presenter','You\x27re\x20presenting\x20the\x20document','Injector','takeUntil','_handleNewChangeSets','Module','LiveShare','set','_handleTerminate','defineProperty','find','mutations','_univerInstanceService','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','replace','div','default','type','idle','UniverIcon','_configService','_handleNewHost','dispose$','assign','_reporters','dispose','useState','send','_init','random','Present\x20this\x20document','from','Inject','unitId','live-share-icon','getOwnPropertyDescriptor','live-share.config','univerjs-icon\x20univerjs-icon-','Stop\x20following','_unitID','executeCommand','Start\x20following','evenodd','IUniverInstanceService','sheet','_config','init','registerSharedOperation','attrs','UniverInstanceType','_uiPartsService','LiveShareCoordinator','_liveShareService','registerInitialStateReporter','DependentOn','You\x27re\x20following\x20the\x20presenter','forEach','parseProtocolChangeset','HEADER_MENU','asObservable','path','_handleOperation','_startLiveShareCoordinator','forwardRef','data','text','get','pluginName','LiveShareService','Start','pipe','trim','toDisposable','_collabSession','url(#$1','BuiltInUIPart','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','Fragment','following','SAME_OPERATION_SHARE_INTERVAL','_stopPresenting','useObservable','_commandService','onStarting','xlink:href','setConfig','throttleTime','jsx','LiveShareController','touchDependencies','Button','tryStartPresenting','You\x27are\x20offline.','status$','_stopFollowing','1405716WAyZKc','getConfig','DisposableCollection','useDependency','472793yTxmAB','createElement','mask','none','_entities','subscribe','useRef','params','_handleOnline','SetScrollOperation','defIds','_startPresenting','idSuffix','getLiveShareCoordinator','current','SetWorksheetActiveOperation','RxDisposable','LiveShareStatus','LIVESHARE_FETCH_OPERATIONS','reverse','symbol','next','getInitialStates','colorChannel1','CollaborationEvent','map','registerDependencies','NOT_FOLLOWING','http://www.w3.org/2000/svg','_mountLiveShare'];_0x118c=function(){return _0x3deef1;};return _0x118c();}exports[_0x3f9ef0(0x1db)]=class extends o[_0x3f9ef0(0x145)]{constructor(_0x5a1811,_0x357a7b,_0x58f72f,_0x23777c,_0x47b8ed){const _0x1bf62b=_0x3f9ef0;super(),_(this,_0x1bf62b(0x186),new O['BehaviorSubject'](_0x1bf62b(0x1ba))),_(this,_0x1bf62b(0x12f),this[_0x1bf62b(0x186)][_0x1bf62b(0x1e3)]()),_(this,_0x1bf62b(0x1c4),!0x1),_(this,_0x1bf62b(0x1a0),null),_(this,_0x1bf62b(0x170),null),(this['_unitID']=_0x5a1811,this[_0x1bf62b(0x1f1)]=_0x357a7b,this[_0x1bf62b(0x1bc)]=_0x58f72f,this[_0x1bf62b(0x1dc)]=_0x23777c,this[_0x1bf62b(0x124)]=_0x47b8ed);}get[_0x3f9ef0(0x198)](){const _0x47f250=_0x3f9ef0;return this[_0x47f250(0x186)]['getValue']();}[_0x3f9ef0(0x1c1)](){const _0x3ba9bf=_0x3f9ef0;var _0x7fb619;(_0x7fb619=this[_0x3ba9bf(0x1a0)])==null||_0x7fb619[_0x3ba9bf(0x1c1)](),this[_0x3ba9bf(0x186)][_0x3ba9bf(0x14a)](_0x3ba9bf(0x1ba)),this['_status$']['complete']();}['getStatus'](){return this['_status'];}['init'](){const _0x4cb1dc=_0x3f9ef0;this[_0x4cb1dc(0x1c4)]||(this['_init']=!0x0,this[_0x4cb1dc(0x1f1)]['sessionStatus$'][_0x4cb1dc(0x1ee)](I['takeUntil'](this[_0x4cb1dc(0x1be)]))[_0x4cb1dc(0x13a)](_0x3c08ee=>{const _0x3464f4=_0x4cb1dc;switch(_0x3c08ee){case b[_0x3464f4(0x187)]['OFFLINE']:this[_0x3464f4(0x189)]();break;case b[_0x3464f4(0x187)][_0x3464f4(0x15c)]:this[_0x3464f4(0x13d)]();break;}}),this[_0x4cb1dc(0x1f1)][_0x4cb1dc(0x18f)]['pipe'](I[_0x4cb1dc(0x1ab)](this[_0x4cb1dc(0x1be)]))[_0x4cb1dc(0x13a)](_0x54ab36=>{const _0x45b39d=_0x4cb1dc,{eventID:_0xbd4f51}=_0x54ab36;switch(_0xbd4f51){case d[_0x45b39d(0x14d)]['LIVESHARE_NEW_HOST']:this[_0x45b39d(0x1bd)](_0x54ab36);break;case d[_0x45b39d(0x14d)][_0x45b39d(0x156)]:this[_0x45b39d(0x1e5)](_0x54ab36);break;case d[_0x45b39d(0x14d)][_0x45b39d(0x153)]:this[_0x45b39d(0x1b0)]();break;case d[_0x45b39d(0x14d)][_0x45b39d(0x196)]:this[_0x45b39d(0x1ac)](_0x54ab36);break;}}));}[_0x3f9ef0(0x12d)](){const _0x14bb90=_0x3f9ef0;this[_0x14bb90(0x1f1)]['send']({'eventID':d[_0x14bb90(0x14d)][_0x14bb90(0x15d)],'data':{'unitID':this[_0x14bb90(0x1cf)],'userID':this[_0x14bb90(0x1f1)][_0x14bb90(0x183)]()}},this[_0x14bb90(0x1cf)]);}[_0x3f9ef0(0x157)](){const _0x2102c3=_0x3f9ef0;this[_0x2102c3(0x198)]===_0x2102c3(0x169)&&(this[_0x2102c3(0x186)][_0x2102c3(0x14a)](_0x2102c3(0x1ba)),this[_0x2102c3(0x1f1)][_0x2102c3(0x1c3)]({'eventID':d['CollaborationEvent'][_0x2102c3(0x153)],'data':{'unitID':this[_0x2102c3(0x1cf)]}},this[_0x2102c3(0x1cf)]));}[_0x3f9ef0(0x19a)](){const _0x2f5d4c=_0x3f9ef0;this[_0x2f5d4c(0x198)]===_0x2f5d4c(0x168)&&(this[_0x2f5d4c(0x186)]['next']('following'),this['_startFollowing']());}['stopFollowing'](){this['_status']==='following'&&this['_stopFollowing']();}[_0x3f9ef0(0x1bd)](_0x22dddc){const _0x58e4b0=_0x3f9ef0,{presenter:_0x1f172f}=_0x22dddc['data'],_0x38cfe9=this[_0x58e4b0(0x1f1)][_0x58e4b0(0x183)]();this[_0x58e4b0(0x170)]=_0x1f172f,_0x1f172f===_0x38cfe9?(this[_0x58e4b0(0x130)](),this[_0x58e4b0(0x140)]()):this[_0x58e4b0(0x198)]!==_0x58e4b0(0x168)&&(this[_0x58e4b0(0x122)](),this[_0x58e4b0(0x1a4)]());}[_0x3f9ef0(0x17c)](){const _0x3808c6=_0x3f9ef0,_0x470652={'eventID':d[_0x3808c6(0x14d)][_0x3808c6(0x147)]};this[_0x3808c6(0x1f1)][_0x3808c6(0x1c3)](_0x470652,this[_0x3808c6(0x1cf)]);}[_0x3f9ef0(0x1b0)](){const _0x3e8ed4=_0x3f9ef0;this[_0x3e8ed4(0x170)]=null,this[_0x3e8ed4(0x198)]!==_0x3e8ed4(0x169)&&this[_0x3e8ed4(0x155)]();}[_0x3f9ef0(0x1ac)](_0x43e286){const _0x4d6a6e=_0x3f9ef0;if(this[_0x4d6a6e(0x198)]===_0x4d6a6e(0x120)&&this['_presenter']===_0x43e286[_0x4d6a6e(0x1e8)]['memberID']){const _0x207a68=d[_0x4d6a6e(0x1e1)](_0x43e286[_0x4d6a6e(0x1e8)])[_0x4d6a6e(0x1b3)][_0x4d6a6e(0x148)]()[_0x4d6a6e(0x1b2)](_0x26e496=>_0x26e496['id']===C[_0x4d6a6e(0x19c)]['id']);if(_0x207a68){const _0x63103a=_0x207a68[_0x4d6a6e(0x13c)][_0x4d6a6e(0x1c9)],_0x171129=_0x207a68[_0x4d6a6e(0x13c)][_0x4d6a6e(0x1d4)]['id'];setTimeout(()=>{const _0xb99f00=_0x4d6a6e;this[_0xb99f00(0x124)][_0xb99f00(0x1d0)](C[_0xb99f00(0x144)]['id'],{'unitId':_0x63103a,'subUnitId':_0x171129},{'fromCollab':!0x0});});}}}[_0x3f9ef0(0x140)](){const _0x39c7ca=_0x3f9ef0;this[_0x39c7ca(0x186)]['next'](_0x39c7ca(0x169));const _0x5846dd=new Map(),_0x2e32c3=this[_0x39c7ca(0x1a0)]=new o[(_0x39c7ca(0x133))]();_0x2e32c3['add'](o[_0x39c7ca(0x1f0)](()=>{const _0x531552=_0x39c7ca;_0x5846dd[_0x531552(0x1e0)](_0x48b80c=>_0x48b80c['complete']()),_0x5846dd[_0x531552(0x173)]();})),_0x2e32c3['add'](this[_0x39c7ca(0x124)][_0x39c7ca(0x19e)](_0x42f625=>{const _0x7004cc=_0x39c7ca;var _0x11ef4c;if(_0x42f625[_0x7004cc(0x1b9)]!==o['CommandType'][_0x7004cc(0x176)]||!this[_0x7004cc(0x1dc)]['shouldShareOperation'](_0x42f625['id']))return;const {id:_0x515622}=_0x42f625;let _0x39a939;_0x5846dd['has'](_0x515622)?_0x39a939=_0x5846dd['get'](_0x515622):(_0x39a939=new O[(_0x7004cc(0x17b))](),_0x5846dd[_0x7004cc(0x1af)](_0x515622,_0x39a939),_0x39a939[_0x7004cc(0x1ee)](I[_0x7004cc(0x128)]((_0x11ef4c=this[_0x7004cc(0x1bc)][_0x7004cc(0x132)](k))!=null?_0x11ef4c:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x7004cc(0x13a)](_0x3a4db4=>{const _0x1b75e0=_0x7004cc;this[_0x1b75e0(0x1f1)][_0x1b75e0(0x1c3)]({'eventID':d[_0x1b75e0(0x14d)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1b75e0(0x1cf)],'operations':{[_0x3a4db4['id']]:{'id':_0x3a4db4['id'],'params':JSON['stringify'](_0x3a4db4[_0x1b75e0(0x13c)])}}}},this[_0x1b75e0(0x1cf)]);})),_0x39a939['next'](_0x42f625);})),this[_0x39c7ca(0x1dc)][_0x39c7ca(0x14b)](this[_0x39c7ca(0x1cf)])[_0x39c7ca(0x1e0)](_0x3faf6e=>this[_0x39c7ca(0x1f1)][_0x39c7ca(0x1c3)]({'eventID':d['CollaborationEvent'][_0x39c7ca(0x156)],'data':{'unitID':this[_0x39c7ca(0x1cf)],'operations':{[_0x3faf6e['id']]:{'id':_0x3faf6e['id'],'params':JSON[_0x39c7ca(0x180)](_0x3faf6e[_0x39c7ca(0x13c)])}}}},this[_0x39c7ca(0x1cf)]));}[_0x3f9ef0(0x122)](){const _0xde0960=_0x3f9ef0;var _0x55599f;this[_0xde0960(0x186)][_0xde0960(0x14a)]('idle'),(_0x55599f=this[_0xde0960(0x1a0)])==null||_0x55599f[_0xde0960(0x1c1)](),this[_0xde0960(0x1a0)]=null;}[_0x3f9ef0(0x1a4)](){const _0x3112bf=_0x3f9ef0;var _0x4966ad;(_0x4966ad=this[_0x3112bf(0x1a0)])==null||_0x4966ad[_0x3112bf(0x1c1)](),this[_0x3112bf(0x186)]['next']('following');}['_beIdle'](){const _0x3b2951=_0x3f9ef0;var _0x536881;this[_0x3b2951(0x186)][_0x3b2951(0x14a)](_0x3b2951(0x1ba)),(_0x536881=this['_commandDisposable'])==null||_0x536881['dispose'](),this[_0x3b2951(0x1a0)]=null;}['_stopFollowing'](){const _0x27112a=_0x3f9ef0;var _0x495cc8;this['_status$']['next'](_0x27112a(0x168)),(_0x495cc8=this[_0x27112a(0x1a0)])==null||_0x495cc8[_0x27112a(0x1c1)]();}['_handleOperation'](_0x3c4fc1){const _0x5e3265=_0x3f9ef0;if([_0x5e3265(0x169),_0x5e3265(0x168),_0x5e3265(0x185)][_0x5e3265(0x17d)](this['_status'])||!_0x3c4fc1['data'][_0x5e3265(0x18b)]||_0x3c4fc1[_0x5e3265(0x1e8)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x5e3265(0x198)]===_0x5e3265(0x1ba)&&this['_startFollowing']();const _0x29c7e1=_0x3c4fc1[_0x5e3265(0x1e8)][_0x5e3265(0x177)];Object['values'](_0x29c7e1)[_0x5e3265(0x1e0)](_0x5f2d50=>{const _0x78e2c7=_0x5e3265;this[_0x78e2c7(0x124)]['executeCommand'](_0x5f2d50['id'],_0x5f2d50[_0x78e2c7(0x13c)]?JSON[_0x78e2c7(0x16d)](_0x5f2d50[_0x78e2c7(0x13c)]):null,{'fromCollab':!0x0});});}[_0x3f9ef0(0x189)](){const _0x40d67b=_0x3f9ef0;var _0x52eb8b;this['_status$'][_0x40d67b(0x14a)](_0x40d67b(0x185)),(_0x52eb8b=this[_0x40d67b(0x1a0)])==null||_0x52eb8b[_0x40d67b(0x1c1)]();}[_0x3f9ef0(0x13d)](){const _0x587d67=_0x3f9ef0;this['_status$'][_0x587d67(0x14a)]('idle'),this[_0x587d67(0x17c)]();}},exports[_0x3f9ef0(0x1db)]=P([S(0x2,o[_0x3f9ef0(0x182)]),S(0x3,o[_0x3f9ef0(0x1c8)](E)),S(0x4,o['ICommandService'])],exports[_0x3f9ef0(0x1db)]);function $(){const _0x2304c4=_0x3f9ef0,_0x5b4e2d=p[_0x2304c4(0x134)](exports[_0x2304c4(0x12a)]),_0x2876ee=p[_0x2304c4(0x134)](o[_0x2304c4(0x1d3)]),_0x47a89d=p[_0x2304c4(0x123)](()=>_0x2876ee[_0x2304c4(0x181)](o[_0x2304c4(0x1d9)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x265346,_0x30a775]=v[_0x2304c4(0x1c2)](null),[_0x178fa0,_0x4cf485]=v[_0x2304c4(0x1c2)](u[_0x2304c4(0x178)]),_0x2c9e2b=v[_0x2304c4(0x13b)](null);return v[_0x2304c4(0x15a)](()=>(_0x47a89d&&_0x5b4e2d[_0x2304c4(0x142)](_0x47a89d[_0x2304c4(0x166)]())['then'](_0x570dd9=>{const _0x1fbdd2=_0x2304c4;_0x30a775(_0x570dd9),_0x2c9e2b[_0x1fbdd2(0x143)]=_0x570dd9['status$'][_0x1fbdd2(0x13a)](_0x2faae3=>{_0x4cf485(_0x2faae3);});}),()=>{const _0xb1b241=_0x2304c4;var _0x19bd5a;(_0x19bd5a=_0x2c9e2b[_0xb1b241(0x143)])==null||_0x19bd5a[_0xb1b241(0x15b)](),_0x2c9e2b['current']=null;}),[_0x47a89d,_0x5b4e2d]),_0x265346?l[_0x2304c4(0x129)](f['Dropdown'],{'align':_0x2304c4(0x160),'disabled':_0x178fa0===u[_0x2304c4(0x18d)],'className':_0x2304c4(0x1b5),'overlay':l[_0x2304c4(0x129)](W,{'status':_0x178fa0,'coordinator':_0x265346}),'children':l[_0x2304c4(0x129)](_0x2304c4(0x162),{'className':f['clsx'](_0x2304c4(0x165),{'univer-cursor-not-allowed':_0x178fa0===u[_0x2304c4(0x18d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x178fa0!==u['OFFLINE']}),'type':'button','children':l[_0x2304c4(0x129)](R,{'className':_0x2304c4(0x15e)})})}):null;}function W(_0x5d3478){const _0x3dc847=_0x3f9ef0,{status:_0xffb788,coordinator:_0x5bab2f}=_0x5d3478;switch(_0xffb788){case u['IDLE']:return l[_0x3dc847(0x129)](G,{'coordinator':_0x5bab2f});case u[_0x3dc847(0x195)]:return l[_0x3dc847(0x129)](B,{'coordinator':_0x5bab2f});case u[_0x3dc847(0x150)]:return l[_0x3dc847(0x129)](Y,{'coordinator':_0x5bab2f});case u[_0x3dc847(0x18d)]:return l[_0x3dc847(0x129)](J,{});case u[_0x3dc847(0x197)]:return l[_0x3dc847(0x129)](Z,{'coordinator':_0x5bab2f});default:return null;}}function G(_0xcce522){const _0x37ca9c=_0x3f9ef0,{coordinator:_0xb6990e}=_0xcce522;return l[_0x37ca9c(0x16a)](l[_0x37ca9c(0x11f)],{'children':[l[_0x37ca9c(0x129)](_0x37ca9c(0x1b7),{'className':_0x37ca9c(0x194),'children':_0x37ca9c(0x1c6)}),l[_0x37ca9c(0x129)](f['Button'],{'onClick':()=>_0xb6990e['tryStartPresenting'](),'children':_0x37ca9c(0x1ed)})]});}function B(_0x1200d7){const _0x43cd7c=_0x3f9ef0,{coordinator:_0x3edf3f}=_0x1200d7;return l['jsxs'](l[_0x43cd7c(0x11f)],{'children':[l[_0x43cd7c(0x129)](_0x43cd7c(0x1b7),{'className':_0x43cd7c(0x194),'children':_0x43cd7c(0x1df)}),l[_0x43cd7c(0x129)](f['Button'],{'onClick':()=>_0x3edf3f[_0x43cd7c(0x16c)](),'children':_0x43cd7c(0x1ce)})]});}function Y(_0x2b5222){const _0x1cbe99=_0x3f9ef0,{coordinator:_0xfc5a52}=_0x2b5222;return l[_0x1cbe99(0x16a)](l[_0x1cbe99(0x11f)],{'children':[l[_0x1cbe99(0x129)](_0x1cbe99(0x1b7),{'className':_0x1cbe99(0x194),'children':_0x1cbe99(0x1a8)}),l[_0x1cbe99(0x129)](f['Button'],{'variant':_0x1cbe99(0x1e9),'onClick':()=>_0xfc5a52[_0x1cbe99(0x19a)](),'children':_0x1cbe99(0x1d1)})]});}function Z(_0x59d58f){const _0x266f83=_0x3f9ef0,{coordinator:_0x1663a1}=_0x59d58f;return l[_0x266f83(0x16a)](l[_0x266f83(0x11f)],{'children':[l['jsx'](_0x266f83(0x1b7),{'className':_0x266f83(0x194),'children':_0x266f83(0x1a9)}),l[_0x266f83(0x129)](f[_0x266f83(0x12c)],{'variant':_0x266f83(0x1b8),'onClick':()=>_0x1663a1['stopPresenting'](),'children':_0x266f83(0x17f)})]});}function J(){const _0x138aaf=_0x3f9ef0;return l[_0x138aaf(0x129)](l['Fragment'],{'children':_0x138aaf(0x12e)});}var K=Object[_0x3f9ef0(0x1cb)],z=(_0x43314f,_0xc08de,_0x224202,_0x1c125d)=>{const _0x1b63ed=_0x3f9ef0;for(var _0x2f8b20=_0x1c125d>0x1?void 0x0:_0x1c125d?K(_0xc08de,_0x224202):_0xc08de,_0x1d3030=_0x43314f[_0x1b63ed(0x159)]-0x1,_0x243922;_0x1d3030>=0x0;_0x1d3030--)(_0x243922=_0x43314f[_0x1d3030])&&(_0x2f8b20=_0x243922(_0x2f8b20)||_0x2f8b20);return _0x2f8b20;},L=(_0x49dc8d,_0x98dc32)=>(_0x5627b5,_0x2ccec6)=>_0x98dc32(_0x5627b5,_0x2ccec6,_0x49dc8d);exports[_0x3f9ef0(0x175)]=class extends o[_0x3f9ef0(0x18c)]{constructor(_0x4727ba,_0x5cc03a){const _0x5718e9=_0x3f9ef0;super(),this['_injector']=_0x4727ba,this[_0x5718e9(0x1da)]=_0x5cc03a,this[_0x5718e9(0x152)]();}[_0x3f9ef0(0x152)](){const _0x3bc7d4=_0x3f9ef0;this['disposeWithMe'](this[_0x3bc7d4(0x1da)]['registerComponent'](p[_0x3bc7d4(0x11d)][_0x3bc7d4(0x1e2)],()=>p['connectInjector']($,this[_0x3bc7d4(0x174)])));}},exports[_0x3f9ef0(0x175)]=z([L(0x0,o[_0x3f9ef0(0x1c8)](o[_0x3f9ef0(0x1aa)])),L(0x1,p['IUIPartsService'])],exports[_0x3f9ef0(0x175)]);const Q=_0x3f9ef0(0x1cc),w={};var X=Object[_0x3f9ef0(0x1cb)],ee=(_0x4619ed,_0x36e557,_0x2d4b21,_0x4864b7)=>{const _0x1d1c50=_0x3f9ef0;for(var _0xeef38d=_0x4864b7>0x1?void 0x0:_0x4864b7?X(_0x36e557,_0x2d4b21):_0x36e557,_0x53918c=_0x4619ed[_0x1d1c50(0x159)]-0x1,_0x4ec25b;_0x53918c>=0x0;_0x53918c--)(_0x4ec25b=_0x4619ed[_0x53918c])&&(_0xeef38d=_0x4ec25b(_0xeef38d)||_0xeef38d);return _0xeef38d;},te=(_0x5ebcbc,_0x9fd85b)=>(_0x5b1f4f,_0x59f301)=>_0x9fd85b(_0x5b1f4f,_0x59f301,_0x5ebcbc);let m=class extends o[_0x3f9ef0(0x18c)]{constructor(_0x3314af){const _0x401823=_0x3f9ef0;super(),this[_0x401823(0x1dc)]=_0x3314af,this['_init']();}[_0x3f9ef0(0x1c4)](){const _0x2a97d2=_0x3f9ef0;[D[_0x2a97d2(0x161)]['id'],D[_0x2a97d2(0x13e)]['id'],C[_0x2a97d2(0x144)]['id']][_0x2a97d2(0x1e0)](_0x23a4c3=>{const _0x5543fe=_0x2a97d2;this[_0x5543fe(0x18a)](this[_0x5543fe(0x1dc)][_0x5543fe(0x1d7)](_0x23a4c3));});}};m=ee([te(0x0,o[_0x3f9ef0(0x1c8)](E))],m);var ie=Object['defineProperty'],se=Object['getOwnPropertyDescriptor'],ne=(_0x33c6d2,_0x5088a2,_0xf88ecc)=>_0x5088a2 in _0x33c6d2?ie(_0x33c6d2,_0x5088a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf88ecc}):_0x33c6d2[_0x5088a2]=_0xf88ecc,re=(_0x41b661,_0x3224fb,_0x34c372,_0x40df9b)=>{for(var _0x330cff=_0x40df9b>0x1?void 0x0:_0x40df9b?se(_0x3224fb,_0x34c372):_0x3224fb,_0x37d4fb=_0x41b661['length']-0x1,_0x17ddfd;_0x37d4fb>=0x0;_0x37d4fb--)(_0x17ddfd=_0x41b661[_0x37d4fb])&&(_0x330cff=_0x17ddfd(_0x330cff)||_0x330cff);return _0x330cff;},N=(_0xac2ab1,_0x391199)=>(_0x56bfdc,_0x41f998)=>_0x391199(_0x56bfdc,_0x41f998,_0xac2ab1),A=(_0x38d033,_0x37da3d,_0x4a3c1c)=>ne(_0x38d033,typeof _0x37da3d!=_0x3f9ef0(0x149)?_0x37da3d+'':_0x37da3d,_0x4a3c1c);const oe=_0x3f9ef0(0x191);exports[_0x3f9ef0(0x1a7)]=class extends o['Plugin']{constructor(_0x7ea5d3=w,_0x33039b,_0x1c94fc){const _0x2c69f7=_0x3f9ef0;super(),this[_0x2c69f7(0x1d5)]=_0x7ea5d3,this[_0x2c69f7(0x174)]=_0x33039b,this['_configService']=_0x1c94fc;const {..._0x8353a8}=o[_0x2c69f7(0x16b)]({},w,this[_0x2c69f7(0x1d5)]);this[_0x2c69f7(0x1bc)][_0x2c69f7(0x127)](Q,_0x8353a8);}[_0x3f9ef0(0x125)](){const _0x295a53=_0x3f9ef0;o[_0x295a53(0x14f)](this[_0x295a53(0x174)],o['mergeOverrideWithDependencies']([[E],[exports[_0x295a53(0x12a)]],[m],[exports[_0x295a53(0x175)]]],this[_0x295a53(0x1d5)][_0x295a53(0x164)])),o[_0x295a53(0x12b)](this['_injector'],[[m]]);}[_0x3f9ef0(0x19f)](){const _0x19aaf1=_0x3f9ef0;o[_0x19aaf1(0x12b)](this[_0x19aaf1(0x174)],[[exports[_0x19aaf1(0x175)]]]);}},A(exports[_0x3f9ef0(0x1a7)],_0x3f9ef0(0x1b9),o['UniverInstanceType'][_0x3f9ef0(0x1a6)]),A(exports['UniverLiveSharePlugin'],_0x3f9ef0(0x1eb),oe),exports[_0x3f9ef0(0x1a7)]=re([o[_0x3f9ef0(0x1de)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x3f9ef0(0x1c8)](o[_0x3f9ef0(0x1aa)])),N(0x2,o[_0x3f9ef0(0x182)])],exports['UniverLiveSharePlugin']),exports[_0x3f9ef0(0x1ae)]=$,exports[_0x3f9ef0(0x1ec)]=E,exports[_0x3f9ef0(0x146)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x228979=_0x4b17;(function(_0x423d43,_0x3d75a4){const _0x361d66=_0x4b17,_0x302863=_0x423d43();while(!![]){try{const _0x235802=-parseInt(_0x361d66(0x83))/0x1*(parseInt(_0x361d66(0x72))/0x2)+parseInt(_0x361d66(0x82))/0x3*(-parseInt(_0x361d66(0x7d))/0x4)+-parseInt(_0x361d66(0x84))/0x5*(parseInt(_0x361d66(0x67))/0x6)+-parseInt(_0x361d66(0x7e))/0x7+-parseInt(_0x361d66(0x6a))/0x8+-parseInt(_0x361d66(0x88))/0x9*(-parseInt(_0x361d66(0x76))/0xa)+parseInt(_0x361d66(0x87))/0xb;if(_0x235802===_0x3d75a4)break;else _0x302863['push'](_0x302863['shift']());}catch(_0x3dea63){_0x302863['push'](_0x302863['shift']());}}}(_0x27d4,0xc7d79));import{LiveShareController as _0x12e631,LiveShareStatus as _0x4ad554}from'@univerjs-pro/live-share';function _0x27d4(){const _0x4ddeaa=['48718AoqniY','get','getActiveWorkbook','tryStartPresenting','6760aJAYsJ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startRow','IDLE','extend','stopPresenting','stopFollowing','1384088XoaJJY','4458132YIwrUH','executeCommand','syncExecuteCommand','No\x20active\x20workbook\x20found.','6dcLeqx','15CBLRWb','5aQKLuN','getUnitId','getActiveSheet','43015797PfDEWi','15597NMGPhw','getSheetId','6577806nMprQc','getId','startFollowing','11783008bJfGLf','getLiveShareCoordinatorSync','_initialize','getStatus','getRenderById','startColumn','startPresenting','_injector'];_0x27d4=function(){return _0x4ddeaa;};return _0x27d4();}import{IRenderManagerService as _0x2c6934}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x9ecc8a}from'@univerjs/sheets';import{SetScrollOperation as _0x3d7834}from'@univerjs/sheets-ui';import{FRange as _0xd9d185}from'@univerjs/sheets/facade';import{FUniver as _0x70652f,FEnum as _0x51b22f}from'@univerjs/core/facade';class I extends _0xd9d185{[_0x228979(0x6c)](_0x102b9a,_0x5c759b,_0x3f4f67,_0x521d9e,_0x41242a){const _0x2784c4=_0x228979,_0x5d02d3=_0x102b9a[_0x2784c4(0x73)](_0x12e631),_0x218a29=_0x102b9a[_0x2784c4(0x73)](_0x2c6934),_0x4189d8=_0x5c759b[_0x2784c4(0x85)](),_0x5bb240=_0x5c759b[_0x2784c4(0x86)](),_0xb8b4cb=_0x5d02d3[_0x2784c4(0x6b)](_0x4189d8);(_0xb8b4cb==null?void 0x0:_0xb8b4cb[_0x2784c4(0x6d)]())!==_0x4ad554['PRESENTING']||(_0x3f4f67[_0x2784c4(0x66)]()!==_0x5bb240['getSheetId']()&&this['_commandService'][_0x2784c4(0x7f)](_0x9ecc8a['id'],{'unitId':_0x4189d8,'subUnitId':_0x3f4f67[_0x2784c4(0x66)]()}),!_0x218a29[_0x2784c4(0x6e)](_0x4189d8))||_0x41242a[_0x2784c4(0x80)](_0x3d7834['id'],{'unitId':_0x5c759b[_0x2784c4(0x85)](),'sheetId':_0x3f4f67[_0x2784c4(0x66)](),'sheetViewStartRow':_0x521d9e[_0x2784c4(0x78)],'sheetViewStartColumn':_0x521d9e[_0x2784c4(0x6f)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xd9d185[_0x228979(0x7a)](I);class m extends _0x70652f{['getLiveShareStatus'](){const _0x37c629=_0x228979;var _0x4e3642,_0x4f711b;const _0x1e9b86=this[_0x37c629(0x71)][_0x37c629(0x73)](_0x12e631),_0x548a7e=(_0x4e3642=this[_0x37c629(0x74)]())==null?void 0x0:_0x4e3642[_0x37c629(0x68)]();if(!_0x548a7e)throw new Error(_0x37c629(0x81));const _0x134f61=_0x1e9b86[_0x37c629(0x6b)](_0x548a7e);return(_0x4f711b=_0x134f61==null?void 0x0:_0x134f61['getStatus']())!=null?_0x4f711b:_0x4ad554[_0x37c629(0x79)];}[_0x228979(0x69)](){const _0x10b743=_0x228979;var _0x56dbb3;const _0x117177=this[_0x10b743(0x71)]['get'](_0x12e631),_0x34080e=(_0x56dbb3=this['getActiveWorkbook']())==null?void 0x0:_0x56dbb3[_0x10b743(0x68)]();if(!_0x34080e)throw new Error(_0x10b743(0x81));const _0x472097=_0x117177['getLiveShareCoordinatorSync'](_0x34080e);if(!_0x472097)throw new Error(_0x10b743(0x77));_0x472097[_0x10b743(0x69)]();}[_0x228979(0x7c)](){const _0x5cf9c0=_0x228979;var _0x491e13;const _0xc10628=this[_0x5cf9c0(0x71)]['get'](_0x12e631),_0x113a9f=(_0x491e13=this[_0x5cf9c0(0x74)]())==null?void 0x0:_0x491e13[_0x5cf9c0(0x68)]();if(!_0x113a9f)throw new Error(_0x5cf9c0(0x81));const _0x2d8359=_0xc10628[_0x5cf9c0(0x6b)](_0x113a9f);if(!_0x2d8359)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2d8359[_0x5cf9c0(0x7c)]();}[_0x228979(0x70)](){const _0x158e99=_0x228979;var _0x3e8259;const _0x279016=this[_0x158e99(0x71)][_0x158e99(0x73)](_0x12e631),_0xfdc7f1=(_0x3e8259=this[_0x158e99(0x74)]())==null?void 0x0:_0x3e8259[_0x158e99(0x68)]();if(!_0xfdc7f1)throw new Error(_0x158e99(0x81));const _0x59d2ab=_0x279016['getLiveShareCoordinatorSync'](_0xfdc7f1);if(!_0x59d2ab)throw new Error(_0x158e99(0x77));_0x59d2ab[_0x158e99(0x75)]();}['stopPresenting'](){const _0x1002d9=_0x228979;var _0x5f32fc;const _0x47218=this['_injector'][_0x1002d9(0x73)](_0x12e631),_0x56d764=(_0x5f32fc=this[_0x1002d9(0x74)]())==null?void 0x0:_0x5f32fc[_0x1002d9(0x68)]();if(!_0x56d764)throw new Error(_0x1002d9(0x81));const _0x43aa41=_0x47218[_0x1002d9(0x6b)](_0x56d764);if(!_0x43aa41)throw new Error(_0x1002d9(0x77));_0x43aa41[_0x1002d9(0x7b)]();}}_0x70652f[_0x228979(0x7a)](m);class C extends _0x51b22f{get['LiveShareStatusEnum'](){return _0x4ad554;}}function _0x4b17(_0x28c5ec,_0x11b389){const _0x27d46a=_0x27d4();return _0x4b17=function(_0x4b179c,_0x10273e){_0x4b179c=_0x4b179c-0x66;let _0x1d362b=_0x27d46a[_0x4b179c];return _0x1d362b;},_0x4b17(_0x28c5ec,_0x11b389);}_0x51b22f[_0x228979(0x7a)](C);
1
+ const _0x35d540=_0x8ed9;function _0x8ed9(_0x18e553,_0x40c48c){const _0x45b37e=_0x45b3();return _0x8ed9=function(_0x8ed973,_0x5a1839){_0x8ed973=_0x8ed973-0x74;let _0x442873=_0x45b37e[_0x8ed973];return _0x442873;},_0x8ed9(_0x18e553,_0x40c48c);}(function(_0x3baa97,_0x230a0f){const _0x476629=_0x8ed9,_0x596a6a=_0x3baa97();while(!![]){try{const _0x5f3735=-parseInt(_0x476629(0x81))/0x1*(parseInt(_0x476629(0x8e))/0x2)+parseInt(_0x476629(0x8b))/0x3+-parseInt(_0x476629(0x80))/0x4*(parseInt(_0x476629(0x8a))/0x5)+-parseInt(_0x476629(0x74))/0x6*(-parseInt(_0x476629(0x86))/0x7)+-parseInt(_0x476629(0x85))/0x8+-parseInt(_0x476629(0x7b))/0x9+parseInt(_0x476629(0x78))/0xa;if(_0x5f3735===_0x230a0f)break;else _0x596a6a['push'](_0x596a6a['shift']());}catch(_0x511684){_0x596a6a['push'](_0x596a6a['shift']());}}}(_0x45b3,0xcab61));import{LiveShareController as _0x56f255,LiveShareStatus as _0x2d291f}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x19b6ba}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4c8332}from'@univerjs/sheets';function _0x45b3(){const _0x35a370=['getStatus','getActiveWorkbook','157566sPSDEQ','getId','_injector','No\x20active\x20workbook\x20found.','_initialize','PRESENTING','stopFollowing','66aSiJgO','getLiveShareCoordinatorSync','get','getActiveSheet','34356490OGavfO','executeCommand','getSheetId','8002665hBfmzV','startFollowing','syncExecuteCommand','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','4PBkpGP','1cXgPVO','startColumn','getUnitId','startRow','4959400MqBjkZ','17647zUuuAy','extend','getLiveShareStatus','_commandService','5739235qNQadL','307995UwCsPZ'];_0x45b3=function(){return _0x35a370;};return _0x45b3();}import{SetScrollOperation as _0x569b43}from'@univerjs/sheets-ui';import{FRange as _0x18699d}from'@univerjs/sheets/facade';import{FUniver as _0x54bc5e,FEnum as _0x50b179}from'@univerjs/core/facade';class I extends _0x18699d{[_0x35d540(0x92)](_0x32eb68,_0x3b3e60,_0x3b9778,_0x17a405,_0x3ab682){const _0xe000e6=_0x35d540,_0x59ad5c=_0x32eb68[_0xe000e6(0x76)](_0x56f255),_0x1a26d5=_0x32eb68['get'](_0x19b6ba),_0x237f4d=_0x3b3e60[_0xe000e6(0x83)](),_0x3eab62=_0x3b3e60[_0xe000e6(0x77)](),_0x1aa3d=_0x59ad5c['getLiveShareCoordinatorSync'](_0x237f4d);(_0x1aa3d==null?void 0x0:_0x1aa3d['getStatus']())!==_0x2d291f[_0xe000e6(0x93)]||(_0x3b9778[_0xe000e6(0x7a)]()!==_0x3eab62[_0xe000e6(0x7a)]()&&this[_0xe000e6(0x89)][_0xe000e6(0x79)](_0x4c8332['id'],{'unitId':_0x237f4d,'subUnitId':_0x3b9778[_0xe000e6(0x7a)]()}),!_0x1a26d5['getRenderById'](_0x237f4d))||_0x3ab682[_0xe000e6(0x7d)](_0x569b43['id'],{'unitId':_0x3b3e60[_0xe000e6(0x83)](),'sheetId':_0x3b9778[_0xe000e6(0x7a)](),'sheetViewStartRow':_0x17a405[_0xe000e6(0x84)],'sheetViewStartColumn':_0x17a405[_0xe000e6(0x82)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x18699d[_0x35d540(0x87)](I);class m extends _0x54bc5e{[_0x35d540(0x88)](){const _0x453c27=_0x35d540;var _0x565b0d,_0x40aafc;const _0x2c62c8=this[_0x453c27(0x90)]['get'](_0x56f255),_0x573131=(_0x565b0d=this[_0x453c27(0x8d)]())==null?void 0x0:_0x565b0d[_0x453c27(0x8f)]();if(!_0x573131)throw new Error(_0x453c27(0x91));const _0x44e31c=_0x2c62c8['getLiveShareCoordinatorSync'](_0x573131);return(_0x40aafc=_0x44e31c==null?void 0x0:_0x44e31c[_0x453c27(0x8c)]())!=null?_0x40aafc:_0x2d291f['IDLE'];}['startFollowing'](){const _0x1a8429=_0x35d540;var _0x137ffe;const _0x203ae0=this['_injector'][_0x1a8429(0x76)](_0x56f255),_0x2b04b2=(_0x137ffe=this[_0x1a8429(0x8d)]())==null?void 0x0:_0x137ffe[_0x1a8429(0x8f)]();if(!_0x2b04b2)throw new Error(_0x1a8429(0x91));const _0x1f9858=_0x203ae0[_0x1a8429(0x75)](_0x2b04b2);if(!_0x1f9858)throw new Error(_0x1a8429(0x7f));_0x1f9858[_0x1a8429(0x7c)]();}[_0x35d540(0x94)](){const _0x250e48=_0x35d540;var _0x2c6085;const _0x1d38fd=this[_0x250e48(0x90)][_0x250e48(0x76)](_0x56f255),_0x2f6536=(_0x2c6085=this[_0x250e48(0x8d)]())==null?void 0x0:_0x2c6085[_0x250e48(0x8f)]();if(!_0x2f6536)throw new Error('No\x20active\x20workbook\x20found.');const _0x537df3=_0x1d38fd[_0x250e48(0x75)](_0x2f6536);if(!_0x537df3)throw new Error(_0x250e48(0x7f));_0x537df3[_0x250e48(0x94)]();}['startPresenting'](){const _0x2329c6=_0x35d540;var _0x540ce1;const _0x5b17b0=this[_0x2329c6(0x90)][_0x2329c6(0x76)](_0x56f255),_0x259973=(_0x540ce1=this[_0x2329c6(0x8d)]())==null?void 0x0:_0x540ce1['getId']();if(!_0x259973)throw new Error('No\x20active\x20workbook\x20found.');const _0x13c037=_0x5b17b0[_0x2329c6(0x75)](_0x259973);if(!_0x13c037)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x13c037['tryStartPresenting']();}[_0x35d540(0x7e)](){const _0x3724ba=_0x35d540;var _0x57901f;const _0x8aa731=this[_0x3724ba(0x90)]['get'](_0x56f255),_0x5c5031=(_0x57901f=this[_0x3724ba(0x8d)]())==null?void 0x0:_0x57901f[_0x3724ba(0x8f)]();if(!_0x5c5031)throw new Error(_0x3724ba(0x91));const _0x650a5a=_0x8aa731[_0x3724ba(0x75)](_0x5c5031);if(!_0x650a5a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x650a5a[_0x3724ba(0x7e)]();}}_0x54bc5e[_0x35d540(0x87)](m);class C extends _0x50b179{get['LiveShareStatusEnum'](){return _0x2d291f;}}_0x50b179['extend'](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4b385e=_0x3816;(function(_0x4bac75,_0x5e62f2){const _0x277a18=_0x3816,_0x47bef8=_0x4bac75();while(!![]){try{const _0x102d05=-parseInt(_0x277a18(0xa8))/0x1*(parseInt(_0x277a18(0xf8))/0x2)+parseInt(_0x277a18(0xb2))/0x3+-parseInt(_0x277a18(0x9e))/0x4+parseInt(_0x277a18(0x74))/0x5*(-parseInt(_0x277a18(0x92))/0x6)+-parseInt(_0x277a18(0x94))/0x7+parseInt(_0x277a18(0xc3))/0x8+parseInt(_0x277a18(0x93))/0x9;if(_0x102d05===_0x5e62f2)break;else _0x47bef8['push'](_0x47bef8['shift']());}catch(_0x3ce130){_0x47bef8['push'](_0x47bef8['shift']());}}}(_0x3dcf,0xb51ef));var J=Object[_0x4b385e(0xef)],K=(_0xa8a3db,_0x5c660c,_0x21ebe7)=>_0x5c660c in _0xa8a3db?J(_0xa8a3db,_0x5c660c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21ebe7}):_0xa8a3db[_0x5c660c]=_0x21ebe7,u=(_0x5371b7,_0x73a5eb,_0x1b4416)=>K(_0x5371b7,typeof _0x73a5eb!=_0x4b385e(0xc9)?_0x73a5eb+'':_0x73a5eb,_0x1b4416);function _0x3dcf(){const _0x229e82=['executeCommand','FOLLOWING','disposeWithMe','univer-size-4','tag','_reporters','colorChannel1','type','find','1em','createInstance','forEach','end','status$','6YULNRE','16913538wxahpW','5248684LyFxGL','defs','data','onCommandExecuted','event$','NOT_FOLLOWING','_univerInstanceService','_collabSession','UNIVER_SHEET','dispose','2456044MnyNoK','from','length','current','evenodd','svg','pluginName','ONLINE','button','override','2RRUaZS','presenter','_config','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','idSuffix','getLiveShareCoordinator','attrs','idle','getTypeOfUnitDisposed$','_startLiveShareCoordinator','3353559kUnGEM','_injector','LIVESHARE_OPERATION','OPERATION','assign','substring','You\x27re\x20following\x20the\x20presenter','stringify','You\x27are\x20offline.','_entities','univerjs-icon\x20univerjs-icon-','http://www.w3.org/2000/svg','complete','params','_beIdle','_commandService','mask','2220176LoXtrF','LiveShareIcon','HEADER_MENU','url(#$1','_mountLiveShare','then','symbol','asObservable','random','Start','following','defIds','_presenter','add','_sharedOperations','string','registerInitialStateReporter','operations','getValue','_commandDisposable','replace','none','IDLE','_status','next','onStarting','onRendered','_init','offline','use','has','entries','xlink:href','PRESENTING','getTypeOfUnitAdded$','_stopPresenting','send','tryStartPresenting','_startPresenting','_liveShareService','div','_stopFollowing','_handleOnline','Stop\x20following','defineProperty','_handleNewChangeSets','LIVESHARE_TERMINATE','default','sessionStatus$','displayName','OFFLINE','getInitialStates','startFollowing','302002cyBlDP','NEW_CHANGESETS','_handleOffline','stopFollowing','registerSharedOperation','_status$','unsubscribe','registerComponent','_configService','presenting','_handleOperation','currentColor','not-following','dispose$','setConfig','getMemberID','UniverIcon','_startFollowing','LIVESHARE_REQUEST_HOST','0\x200\x2017\x2017','Present\x20this\x20document','Stop\x20presenting','_fetchOperations','getUnitId','_handleNewHost','memberID','UNIVER_LIVE_SHARE_PLUGIN','values','text','_uiPartsService','map','reverse','live-share-icon','4334805SdMhJr','init','pipe','children','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_unitID','getOwnPropertyDescriptor','path','delete','live-share.config','getConfig','You\x27re\x20not\x20following\x20the\x20presenter','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','subscribe','SAME_OPERATION_SHARE_INTERVAL','get'];_0x3dcf=function(){return _0x229e82;};return _0x3dcf();}import{Disposable as _0x55b9aa,toDisposable as _0x1f42e7,IUniverInstanceService as _0x2f6fb5,Inject as _0x560870,Injector as _0x31eff1,IConfigService as _0x290f96,ICommandService as _0x496629,RxDisposable as _0x55a73f,UniverInstanceType as _0x2d5db4,DisposableCollection as _0xa3999d,CommandType as _0x13d715,DependentOn as _0x2ae8e8,Plugin as _0x91b81e,merge as _0x473004,registerDependencies as _0x489867,mergeOverrideWithDependencies as _0x55fb95,touchDependencies as _0x20f240}from'@univerjs/core';import{useDependency as _0x1f8dd1,useObservable as _0x20a2e6,IUIPartsService as _0x23c3f9,BuiltInUIPart as _0x5934f6,connectInjector as _0x307cfd}from'@univerjs/ui';import{jsx as _0x438293,jsxs as _0x586af0,Fragment as _0x2f0f25}from'react/jsx-runtime';import{Dropdown as _0x51a47b,clsx as _0x40c4f6,Button as _0x42e7b4}from'@univerjs/design';import{useRef as _0x2ba9a6,createElement as _0xc48b3e,forwardRef as _0x3fd9ee,useState as _0x5cf7d9,useEffect as _0x588a86}from'react';import{CollaborationEvent as _0x5a2308,parseProtocolChangeset as _0x4e55cd}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x909e59,SessionStatus as _0x166cc9,UniverCollaborationClientPlugin as _0xff5435}from'@univerjs-pro/collaboration-client';function _0x3816(_0x4e4af1,_0x432e3f){const _0x3dcfcb=_0x3dcf();return _0x3816=function(_0x38160d,_0x33b89d){_0x38160d=_0x38160d-0x70;let _0x5c7349=_0x3dcfcb[_0x38160d];return _0x5c7349;},_0x3816(_0x4e4af1,_0x432e3f);}import{InsertSheetMutation as _0x42d2fb,SetWorksheetActiveOperation as _0x441168}from'@univerjs/sheets';import{BehaviorSubject as _0x5a3aa7,Subject as _0x696cda}from'rxjs';import{takeUntil as _0x2032e2,throttleTime as _0x2d0a05}from'rxjs/operators';import{SetZoomRatioOperation as _0x1fce62,SetScrollOperation as _0x3ab047}from'@univerjs/sheets-ui';function k({ref:_0x272b0d,..._0x155a92}){const _0x2faf5d=_0x4b385e,{icon:_0x7ee335,id:_0x12d0d9,className:_0x296ed0,extend:_0xd0b3c5,..._0x56a117}=_0x155a92,_0x5f4e33=(_0x2faf5d(0xbc)+_0x12d0d9+'\x20'+(_0x296ed0||''))['trim'](),_0x539c8c=_0x2ba9a6('_'+Oe());return G(_0x7ee335,''+_0x12d0d9,{'defIds':_0x7ee335[_0x2faf5d(0xce)],'idSuffix':_0x539c8c[_0x2faf5d(0xa1)]},{'ref':_0x272b0d,'className':_0x5f4e33,..._0x56a117},_0xd0b3c5);}function G(_0x4619ba,_0x531b1f,_0x16468c,_0x4d5f13,_0x23e4fe){const _0x263685=_0x4b385e;return _0xc48b3e(_0x4619ba[_0x263685(0x88)],{'key':_0x531b1f,...be(_0x4619ba,_0x16468c,_0x23e4fe),..._0x4d5f13},(Ee(_0x4619ba,_0x16468c)[_0x263685(0x77)]||[])[_0x263685(0x71)]((_0x2b58af,_0x9f8873)=>G(_0x2b58af,_0x531b1f+'-'+_0x4619ba[_0x263685(0x88)]+'-'+_0x9f8873,_0x16468c,void 0x0,_0x23e4fe)));}function be(_0x2072d2,_0x2b9087,_0x6916a2){const _0x262e7d=_0x4b385e,_0x393959={..._0x2072d2[_0x262e7d(0xae)]};_0x6916a2!=null&&_0x6916a2[_0x262e7d(0x8a)]&&_0x393959['fill']===_0x262e7d(0x8a)&&(_0x393959['fill']=_0x6916a2[_0x262e7d(0x8a)]),_0x2072d2[_0x262e7d(0x88)]===_0x262e7d(0xc2)&&_0x393959['id']&&(_0x393959['id']=_0x393959['id']+_0x2b9087[_0x262e7d(0xac)]),Object[_0x262e7d(0xe2)](_0x393959)[_0x262e7d(0x8f)](([_0x4e6a69,_0x4eb3a3])=>{const _0x47613c=_0x262e7d;_0x4e6a69===_0x47613c(0xc2)&&typeof _0x4eb3a3==_0x47613c(0xd2)&&(_0x393959[_0x4e6a69]=_0x4eb3a3[_0x47613c(0xd7)](/url\(#(.*)\)/,_0x47613c(0xc6)+_0x2b9087[_0x47613c(0xac)]+')'));});const {defIds:_0x53995a}=_0x2b9087;return!_0x53995a||_0x53995a['length']===0x0||(_0x2072d2[_0x262e7d(0x88)]===_0x262e7d(0xe0)&&_0x393959[_0x262e7d(0xe3)]&&(_0x393959[_0x262e7d(0xe3)]=_0x393959[_0x262e7d(0xe3)]+_0x2b9087[_0x262e7d(0xac)]),Object[_0x262e7d(0xe2)](_0x393959)[_0x262e7d(0x8f)](([_0x360e36,_0x2a8b39])=>{const _0x54f85b=_0x262e7d;typeof _0x2a8b39==_0x54f85b(0xd2)&&(_0x393959[_0x360e36]=_0x2a8b39[_0x54f85b(0xd7)](/url\(#(.*)\)/,_0x54f85b(0xc6)+_0x2b9087[_0x54f85b(0xac)]+')'));})),_0x393959;}function Ee(_0x413a65,_0x54fff5){const _0x19dfec=_0x4b385e;var _0x2e8f7a;const {defIds:_0x48ac0d}=_0x54fff5;return!_0x48ac0d||_0x48ac0d[_0x19dfec(0xa0)]===0x0?_0x413a65:_0x413a65[_0x19dfec(0x88)]===_0x19dfec(0x95)&&((_0x2e8f7a=_0x413a65[_0x19dfec(0x77)])!=null&&_0x2e8f7a['length'])?{..._0x413a65,'children':_0x413a65[_0x19dfec(0x77)][_0x19dfec(0x71)](_0x4bcfed=>typeof _0x4bcfed[_0x19dfec(0xae)]['id']==_0x19dfec(0xd2)&&_0x48ac0d&&_0x48ac0d['includes'](_0x4bcfed[_0x19dfec(0xae)]['id'])?{..._0x4bcfed,'attrs':{..._0x4bcfed[_0x19dfec(0xae)],'id':_0x4bcfed[_0x19dfec(0xae)]['id']+_0x54fff5['idSuffix']}}:_0x4bcfed)}:_0x413a65;}function Oe(){const _0x302ce9=_0x4b385e;return Math[_0x302ce9(0xcb)]()['toString'](0x24)[_0x302ce9(0xb7)](0x2,0x8);}k[_0x4b385e(0xf4)]=_0x4b385e(0x108);const we={'tag':_0x4b385e(0xa3),'attrs':{'xmlns':_0x4b385e(0xbd),'fill':_0x4b385e(0xd8),'viewBox':_0x4b385e(0x10b),'width':_0x4b385e(0x8d),'height':_0x4b385e(0x8d)},'children':[{'tag':'path','attrs':{'fill':_0x4b385e(0x103),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x4b385e(0x7b),'attrs':{'fill':'currentColor','d':_0x4b385e(0xab),'fillRule':_0x4b385e(0xa2),'clipRule':_0x4b385e(0xa2)}}]},W=_0x3fd9ee(function(_0x539275,_0xd32d19){const _0x5dd266=_0x4b385e;return _0xc48b3e(k,Object[_0x5dd266(0xb6)]({},_0x539275,{'id':_0x5dd266(0x73),'ref':_0xd32d19,'icon':we}));});W['displayName']=_0x4b385e(0xc4);class L extends _0x55b9aa{constructor(){const _0x299752=_0x4b385e;super(...arguments),u(this,_0x299752(0xd1),new Set()),u(this,_0x299752(0x89),new Set());}[_0x4b385e(0xfc)](_0x257061){const _0xa32498=_0x4b385e;return this[_0xa32498(0xd1)]['add'](_0x257061),_0x1f42e7(()=>this[_0xa32498(0xd1)][_0xa32498(0x7c)](_0x257061));}[_0x4b385e(0xd3)](_0x442100){const _0x104f14=_0x4b385e;return this[_0x104f14(0x89)][_0x104f14(0xd0)](_0x442100),_0x1f42e7(()=>this[_0x104f14(0x89)]['delete'](_0x442100));}['shouldShareOperation'](_0x2aef0f){const _0x122227=_0x4b385e;return this['_sharedOperations'][_0x122227(0xe1)](_0x2aef0f);}[_0x4b385e(0xf6)](_0x1d18b6){const _0x262da1=_0x4b385e;return Array[_0x262da1(0x9f)](this['_reporters'])[_0x262da1(0x71)](_0x267c42=>_0x267c42(_0x1d18b6));}}var Ne=Object[_0x4b385e(0x7a)],Y=(_0x1045b7,_0x516c55,_0xfe6300,_0x188b95)=>{const _0x1e8419=_0x4b385e;for(var _0x28d3f2=_0x188b95>0x1?void 0x0:_0x188b95?Ne(_0x516c55,_0xfe6300):_0x516c55,_0x4f6f22=_0x1045b7[_0x1e8419(0xa0)]-0x1,_0x3d5ba7;_0x4f6f22>=0x0;_0x4f6f22--)(_0x3d5ba7=_0x1045b7[_0x4f6f22])&&(_0x28d3f2=_0x3d5ba7(_0x28d3f2)||_0x28d3f2);return _0x28d3f2;},_=(_0x40a91b,_0xe6cb75)=>(_0x44b00f,_0x337321)=>_0xe6cb75(_0x44b00f,_0x337321,_0x40a91b);let S=class extends _0x55a73f{constructor(_0x2ab905,_0x4b236b,_0x2b2c0a){const _0x49a220=_0x4b385e;super(),u(this,_0x49a220(0xbb),new Map()),(this[_0x49a220(0x9a)]=_0x2ab905,this[_0x49a220(0xb3)]=_0x4b236b,this['_collabSessionService']=_0x2b2c0a,this[_0x49a220(0xde)]());}async[_0x4b385e(0xad)](_0x5ef093){const _0x44c690=_0x4b385e;return this[_0x44c690(0xbb)][_0x44c690(0xe1)](_0x5ef093)||await this[_0x44c690(0xb1)](_0x5ef093),this[_0x44c690(0xbb)][_0x44c690(0x83)](_0x5ef093);}['getLiveShareCoordinatorSync'](_0x574fa5){const _0x48403e=_0x4b385e;var _0x1647fb;return(_0x1647fb=this['_entities'][_0x48403e(0x83)](_0x574fa5))!=null?_0x1647fb:null;}[_0x4b385e(0xde)](){const _0xe22945=_0x4b385e;this[_0xe22945(0x9a)][_0xe22945(0xe5)](_0x2d5db4[_0xe22945(0x9c)])[_0xe22945(0x76)](_0x2032e2(this[_0xe22945(0x105)]))[_0xe22945(0x81)](async _0x4a24e6=>{const _0x580ccd=_0xe22945,_0x58762b=_0x4a24e6[_0x580ccd(0x10f)]();this['_entities'][_0x580ccd(0xe1)](_0x58762b)||this[_0x580ccd(0xb1)](_0x58762b);}),this[_0xe22945(0x9a)][_0xe22945(0xb0)](_0x2d5db4[_0xe22945(0x9c)])[_0xe22945(0x76)](_0x2032e2(this['dispose$']))[_0xe22945(0x81)](_0x3a1e53=>{const _0x2a628d=_0xe22945,_0x36c05b=_0x3a1e53['getUnitId'](),_0x4c0cb9=this[_0x2a628d(0xbb)][_0x2a628d(0x83)](_0x36c05b);_0x4c0cb9==null||_0x4c0cb9[_0x2a628d(0x9d)]();});}async[_0x4b385e(0xb1)](_0x3bed00){const _0xdb9f00=_0x4b385e,_0x20758c=await this['_collabSessionService']['requireSession'](_0x3bed00),_0x20223b=this[_0xdb9f00(0xb3)][_0xdb9f00(0x8e)](N,_0x3bed00,_0x20758c);return _0x20223b[_0xdb9f00(0x75)](),this[_0xdb9f00(0xbb)]['set'](_0x3bed00,_0x20223b),_0x20223b;}};S=Y([_(0x0,_0x2f6fb5),_(0x1,_0x560870(_0x31eff1)),_(0x2,_0x560870(_0x909e59))],S);var c=(_0x78e18=>(_0x78e18[_0x4b385e(0xf5)]='offline',_0x78e18[_0x4b385e(0xd9)]=_0x4b385e(0xaf),_0x78e18['FOLLOWING']=_0x4b385e(0xcd),_0x78e18['NOT_FOLLOWING']='not-following',_0x78e18['PRESENTING']='presenting',_0x78e18))(c||{});const Ce=_0x4b385e(0x82),De=0xc8;let N=class extends _0x55a73f{constructor(_0x64e6d1,_0x58b685,_0x20ce38,_0x2068f5,_0x3c8fad){const _0x5172ba=_0x4b385e;super(),u(this,_0x5172ba(0xfd),new _0x5a3aa7(_0x5172ba(0xaf))),u(this,_0x5172ba(0x91),this['_status$'][_0x5172ba(0xca)]()),u(this,'_init',!0x1),u(this,_0x5172ba(0xd6),null),u(this,_0x5172ba(0xcf),null),(this['_unitID']=_0x64e6d1,this[_0x5172ba(0x9b)]=_0x58b685,this['_configService']=_0x20ce38,this[_0x5172ba(0xea)]=_0x2068f5,this['_commandService']=_0x3c8fad);}get[_0x4b385e(0xda)](){const _0x4f0b24=_0x4b385e;return this['_status$'][_0x4f0b24(0xd5)]();}[_0x4b385e(0x9d)](){const _0x1902cd=_0x4b385e;var _0x3a834a;(_0x3a834a=this[_0x1902cd(0xd6)])==null||_0x3a834a[_0x1902cd(0x9d)](),this[_0x1902cd(0xfd)]['next'](_0x1902cd(0xaf)),this[_0x1902cd(0xfd)][_0x1902cd(0xbe)]();}['getStatus'](){const _0x4ac7a6=_0x4b385e;return this[_0x4ac7a6(0xda)];}[_0x4b385e(0x75)](){const _0x426d40=_0x4b385e;this[_0x426d40(0xde)]||(this[_0x426d40(0xde)]=!0x0,this[_0x426d40(0x9b)][_0x426d40(0xf3)][_0x426d40(0x76)](_0x2032e2(this[_0x426d40(0x105)]))['subscribe'](_0x1e1d53=>{const _0x4f25ed=_0x426d40;switch(_0x1e1d53){case _0x166cc9['OFFLINE']:this[_0x4f25ed(0xfa)]();break;case _0x166cc9[_0x4f25ed(0xa5)]:this['_handleOnline']();break;}}),this[_0x426d40(0x9b)][_0x426d40(0x98)]['pipe'](_0x2032e2(this[_0x426d40(0x105)]))['subscribe'](_0xa7b508=>{const _0x16f3cf=_0x426d40,{eventID:_0x12c00f}=_0xa7b508;switch(_0x12c00f){case _0x5a2308['LIVESHARE_NEW_HOST']:this[_0x16f3cf(0x110)](_0xa7b508);break;case _0x5a2308[_0x16f3cf(0xb4)]:this[_0x16f3cf(0x102)](_0xa7b508);break;case _0x5a2308['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x5a2308[_0x16f3cf(0xf9)]:this[_0x16f3cf(0xf0)](_0xa7b508);break;}}));}['tryStartPresenting'](){const _0x12a5ff=_0x4b385e;this[_0x12a5ff(0x9b)][_0x12a5ff(0xe7)]({'eventID':_0x5a2308[_0x12a5ff(0x10a)],'data':{'unitID':this[_0x12a5ff(0x79)],'userID':this['_collabSession'][_0x12a5ff(0x107)]()}},this[_0x12a5ff(0x79)]);}['stopPresenting'](){const _0x4583fa=_0x4b385e;this[_0x4583fa(0xda)]==='presenting'&&(this['_status$'][_0x4583fa(0xdb)]('idle'),this[_0x4583fa(0x9b)][_0x4583fa(0xe7)]({'eventID':_0x5a2308[_0x4583fa(0xf1)],'data':{'unitID':this[_0x4583fa(0x79)]}},this[_0x4583fa(0x79)]));}['startFollowing'](){const _0x3fa5c3=_0x4b385e;this[_0x3fa5c3(0xda)]==='not-following'&&(this[_0x3fa5c3(0xfd)]['next']('following'),this[_0x3fa5c3(0x109)]());}[_0x4b385e(0xfb)](){const _0x49e43a=_0x4b385e;this['_status']===_0x49e43a(0xcd)&&this[_0x49e43a(0xec)]();}['_handleNewHost'](_0x481686){const _0x161725=_0x4b385e,{presenter:_0x3d10b8}=_0x481686[_0x161725(0x96)],_0xe22f0e=this[_0x161725(0x9b)][_0x161725(0x107)]();this[_0x161725(0xcf)]=_0x3d10b8,_0x3d10b8===_0xe22f0e?(this[_0x161725(0xec)](),this['_startPresenting']()):this[_0x161725(0xda)]!==_0x161725(0x104)&&(this[_0x161725(0xe6)](),this[_0x161725(0x109)]());}[_0x4b385e(0x10e)](){const _0x57cd14=_0x4b385e,_0x26bd8d={'eventID':_0x5a2308['LIVESHARE_FETCH_OPERATIONS']};this[_0x57cd14(0x9b)][_0x57cd14(0xe7)](_0x26bd8d,this['_unitID']);}['_handleTerminate'](){const _0x2d59b6=_0x4b385e;this[_0x2d59b6(0xcf)]=null,this[_0x2d59b6(0xda)]!==_0x2d59b6(0x101)&&this['_beIdle']();}[_0x4b385e(0xf0)](_0x34ac50){const _0x4ab20e=_0x4b385e;if(this['_status']===_0x4ab20e(0xcd)&&this[_0x4ab20e(0xcf)]===_0x34ac50[_0x4ab20e(0x96)][_0x4ab20e(0x111)]){const _0x32f8cb=_0x4e55cd(_0x34ac50[_0x4ab20e(0x96)])['mutations'][_0x4ab20e(0x72)]()[_0x4ab20e(0x8c)](_0x41e2e6=>_0x41e2e6['id']===_0x42d2fb['id']);if(_0x32f8cb){const _0x24a186=_0x32f8cb['params']['unitId'],_0x4b9aeb=_0x32f8cb[_0x4ab20e(0xbf)]['sheet']['id'];setTimeout(()=>{const _0x2ba811=_0x4ab20e;this[_0x2ba811(0xc1)]['executeCommand'](_0x441168['id'],{'unitId':_0x24a186,'subUnitId':_0x4b9aeb},{'fromCollab':!0x0});});}}}[_0x4b385e(0xe9)](){const _0x2fb4b8=_0x4b385e;this[_0x2fb4b8(0xfd)][_0x2fb4b8(0xdb)]('presenting');const _0x3d74b3=new Map(),_0xdc8b26=this['_commandDisposable']=new _0xa3999d();_0xdc8b26['add'](_0x1f42e7(()=>{const _0x5ec687=_0x2fb4b8;_0x3d74b3['forEach'](_0x402ced=>_0x402ced[_0x5ec687(0xbe)]()),_0x3d74b3['clear']();})),_0xdc8b26[_0x2fb4b8(0xd0)](this[_0x2fb4b8(0xc1)][_0x2fb4b8(0x97)](_0x198a21=>{const _0x4b07cc=_0x2fb4b8;var _0x3ca204;if(_0x198a21[_0x4b07cc(0x8b)]!==_0x13d715[_0x4b07cc(0xb5)]||!this['_liveShareService']['shouldShareOperation'](_0x198a21['id']))return;const {id:_0x35ee91}=_0x198a21;let _0x16f654;_0x3d74b3[_0x4b07cc(0xe1)](_0x35ee91)?_0x16f654=_0x3d74b3[_0x4b07cc(0x83)](_0x35ee91):(_0x16f654=new _0x696cda(),_0x3d74b3['set'](_0x35ee91,_0x16f654),_0x16f654[_0x4b07cc(0x76)](_0x2d0a05((_0x3ca204=this[_0x4b07cc(0x100)][_0x4b07cc(0x7e)](Ce))!=null?_0x3ca204:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b07cc(0x81)](_0x189a51=>{const _0x59060e=_0x4b07cc;this[_0x59060e(0x9b)]['send']({'eventID':_0x5a2308[_0x59060e(0xb4)],'data':{'unitID':this['_unitID'],'operations':{[_0x189a51['id']]:{'id':_0x189a51['id'],'params':JSON['stringify'](_0x189a51[_0x59060e(0xbf)])}}}},this[_0x59060e(0x79)]);})),_0x16f654[_0x4b07cc(0xdb)](_0x198a21);})),this['_liveShareService'][_0x2fb4b8(0xf6)](this[_0x2fb4b8(0x79)])['forEach'](_0x290468=>this[_0x2fb4b8(0x9b)][_0x2fb4b8(0xe7)]({'eventID':_0x5a2308['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2fb4b8(0x79)],'operations':{[_0x290468['id']]:{'id':_0x290468['id'],'params':JSON[_0x2fb4b8(0xb9)](_0x290468['params'])}}}},this[_0x2fb4b8(0x79)]));}[_0x4b385e(0xe6)](){const _0x5438d8=_0x4b385e;var _0x26072f;this[_0x5438d8(0xfd)]['next']('idle'),(_0x26072f=this[_0x5438d8(0xd6)])==null||_0x26072f['dispose'](),this[_0x5438d8(0xd6)]=null;}[_0x4b385e(0x109)](){const _0x199f54=_0x4b385e;var _0x578e83;(_0x578e83=this[_0x199f54(0xd6)])==null||_0x578e83['dispose'](),this[_0x199f54(0xfd)][_0x199f54(0xdb)]('following');}[_0x4b385e(0xc0)](){const _0x27616d=_0x4b385e;var _0x18eaeb;this['_status$'][_0x27616d(0xdb)](_0x27616d(0xaf)),(_0x18eaeb=this[_0x27616d(0xd6)])==null||_0x18eaeb[_0x27616d(0x9d)](),this[_0x27616d(0xd6)]=null;}[_0x4b385e(0xec)](){const _0x5eb6bd=_0x4b385e;var _0x3922f5;this['_status$']['next']('not-following'),(_0x3922f5=this[_0x5eb6bd(0xd6)])==null||_0x3922f5[_0x5eb6bd(0x9d)]();}[_0x4b385e(0x102)](_0x2e4fbe){const _0x34b1b3=_0x4b385e;if([_0x34b1b3(0x101),_0x34b1b3(0x104),_0x34b1b3(0xdf)]['includes'](this[_0x34b1b3(0xda)])||!_0x2e4fbe['data'][_0x34b1b3(0xa9)]||_0x2e4fbe['data']['presenter']===this[_0x34b1b3(0x9b)][_0x34b1b3(0x107)]())return;this[_0x34b1b3(0xda)]===_0x34b1b3(0xaf)&&this['_startFollowing']();const _0x140e4c=_0x2e4fbe['data'][_0x34b1b3(0xd4)];Object[_0x34b1b3(0x113)](_0x140e4c)[_0x34b1b3(0x8f)](_0x23a6e2=>{const _0x5a04b2=_0x34b1b3;this[_0x5a04b2(0xc1)][_0x5a04b2(0x84)](_0x23a6e2['id'],_0x23a6e2['params']?JSON['parse'](_0x23a6e2[_0x5a04b2(0xbf)]):null,{'fromCollab':!0x0});});}[_0x4b385e(0xfa)](){const _0x4bd34b=_0x4b385e;var _0x5a20fd;this[_0x4bd34b(0xfd)]['next'](_0x4bd34b(0xdf)),(_0x5a20fd=this[_0x4bd34b(0xd6)])==null||_0x5a20fd[_0x4bd34b(0x9d)]();}[_0x4b385e(0xed)](){const _0x2936b5=_0x4b385e;this[_0x2936b5(0xfd)][_0x2936b5(0xdb)](_0x2936b5(0xaf)),this[_0x2936b5(0x10e)]();}};N=Y([_(0x2,_0x290f96),_(0x3,_0x560870(L)),_(0x4,_0x496629)],N);function Le(){const _0x392b48=_0x4b385e,_0x2c8069=_0x1f8dd1(S),_0x3f35bd=_0x1f8dd1(_0x2f6fb5),_0x360ba9=_0x20a2e6(()=>_0x3f35bd['getCurrentTypeOfUnit$'](_0x2d5db4['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5df032,_0x42ec6a]=_0x5cf7d9(null),[_0x4327b2,_0x5e0ce7]=_0x5cf7d9(c[_0x392b48(0xd9)]),_0x3f3679=_0x2ba9a6(null);return _0x588a86(()=>(_0x360ba9&&_0x2c8069['getLiveShareCoordinator'](_0x360ba9['getUnitId']())[_0x392b48(0xc8)](_0x4efdd2=>{const _0xd79514=_0x392b48;_0x42ec6a(_0x4efdd2),_0x3f3679[_0xd79514(0xa1)]=_0x4efdd2[_0xd79514(0x91)][_0xd79514(0x81)](_0x9c5bab=>{_0x5e0ce7(_0x9c5bab);});}),()=>{const _0x40297e=_0x392b48;var _0x508a49;(_0x508a49=_0x3f3679['current'])==null||_0x508a49[_0x40297e(0xfe)](),_0x3f3679['current']=null;}),[_0x360ba9,_0x2c8069]),_0x5df032?_0x438293(_0x51a47b,{'align':_0x392b48(0x90),'disabled':_0x4327b2===c[_0x392b48(0xf5)],'className':_0x392b48(0x80),'overlay':_0x438293(Re,{'status':_0x4327b2,'coordinator':_0x5df032}),'children':_0x438293(_0x392b48(0xa6),{'className':_0x40c4f6(_0x392b48(0x78),{'univer-cursor-not-allowed':_0x4327b2===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4327b2!==c[_0x392b48(0xf5)]}),'type':'button','children':_0x438293(W,{'className':_0x392b48(0x87)})})}):null;}function Re(_0x56069f){const _0x3b13fe=_0x4b385e,{status:_0x3c360c,coordinator:_0x113ead}=_0x56069f;switch(_0x3c360c){case c['IDLE']:return _0x438293($e,{'coordinator':_0x113ead});case c[_0x3b13fe(0x85)]:return _0x438293(xe,{'coordinator':_0x113ead});case c[_0x3b13fe(0x99)]:return _0x438293(Pe,{'coordinator':_0x113ead});case c[_0x3b13fe(0xf5)]:return _0x438293(Te,{});case c[_0x3b13fe(0xe4)]:return _0x438293(Ae,{'coordinator':_0x113ead});default:return null;}}function $e(_0x3234f0){const _0x55860c=_0x4b385e,{coordinator:_0x3c0238}=_0x3234f0;return _0x586af0(_0x2f0f25,{'children':[_0x438293(_0x55860c(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x55860c(0x10c)}),_0x438293(_0x42e7b4,{'onClick':()=>_0x3c0238[_0x55860c(0xe8)](),'children':_0x55860c(0xcc)})]});}function xe(_0x1d1a22){const _0x6f1b28=_0x4b385e,{coordinator:_0x590b67}=_0x1d1a22;return _0x586af0(_0x2f0f25,{'children':[_0x438293(_0x6f1b28(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x6f1b28(0xb8)}),_0x438293(_0x42e7b4,{'onClick':()=>_0x590b67[_0x6f1b28(0xfb)](),'children':_0x6f1b28(0xee)})]});}function Pe(_0x6a3975){const _0x3e67f3=_0x4b385e,{coordinator:_0xb85e35}=_0x6a3975;return _0x586af0(_0x2f0f25,{'children':[_0x438293(_0x3e67f3(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3e67f3(0x7f)}),_0x438293(_0x42e7b4,{'variant':_0x3e67f3(0x114),'onClick':()=>_0xb85e35[_0x3e67f3(0xf7)](),'children':'Start\x20following'})]});}function Ae(_0x1713ee){const _0x1e07cb=_0x4b385e,{coordinator:_0x46edb9}=_0x1713ee;return _0x586af0(_0x2f0f25,{'children':[_0x438293(_0x1e07cb(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x438293(_0x42e7b4,{'variant':_0x1e07cb(0xf2),'onClick':()=>_0x46edb9['stopPresenting'](),'children':_0x1e07cb(0x10d)})]});}function Te(){const _0x50ed92=_0x4b385e;return _0x438293(_0x2f0f25,{'children':_0x50ed92(0xba)});}var Fe=Object[_0x4b385e(0x7a)],He=(_0x14fcb0,_0x392abc,_0x26892a,_0x144901)=>{for(var _0x30f053=_0x144901>0x1?void 0x0:_0x144901?Fe(_0x392abc,_0x26892a):_0x392abc,_0x6b2080=_0x14fcb0['length']-0x1,_0x5f4059;_0x6b2080>=0x0;_0x6b2080--)(_0x5f4059=_0x14fcb0[_0x6b2080])&&(_0x30f053=_0x5f4059(_0x30f053)||_0x30f053);return _0x30f053;},A=(_0x2715d9,_0x10ef9b)=>(_0x236300,_0xc43959)=>_0x10ef9b(_0x236300,_0xc43959,_0x2715d9);let m=class extends _0x55b9aa{constructor(_0x432d96,_0x35a6aa){const _0x165e49=_0x4b385e;super(),this[_0x165e49(0xb3)]=_0x432d96,this['_uiPartsService']=_0x35a6aa,this[_0x165e49(0xc7)]();}[_0x4b385e(0xc7)](){const _0x174faf=_0x4b385e;this[_0x174faf(0x86)](this[_0x174faf(0x70)][_0x174faf(0xff)](_0x5934f6[_0x174faf(0xc5)],()=>_0x307cfd(Le,this[_0x174faf(0xb3)])));}};m=He([A(0x0,_0x560870(_0x31eff1)),A(0x1,_0x23c3f9)],m);const ye=_0x4b385e(0x7d),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x1c5d8c,_0x4bf762,_0x28e88c,_0x4f186a)=>{const _0x219385=_0x4b385e;for(var _0x496e28=_0x4f186a>0x1?void 0x0:_0x4f186a?Ue(_0x4bf762,_0x28e88c):_0x4bf762,_0x261c52=_0x1c5d8c[_0x219385(0xa0)]-0x1,_0x37a327;_0x261c52>=0x0;_0x261c52--)(_0x37a327=_0x1c5d8c[_0x261c52])&&(_0x496e28=_0x37a327(_0x496e28)||_0x496e28);return _0x496e28;},je=(_0x4a2875,_0x1c3b46)=>(_0x1c4557,_0x4cc21a)=>_0x1c3b46(_0x1c4557,_0x4cc21a,_0x4a2875);let I=class extends _0x55b9aa{constructor(_0x298300){const _0x3be550=_0x4b385e;super(),this['_liveShareService']=_0x298300,this[_0x3be550(0xde)]();}[_0x4b385e(0xde)](){const _0xb8165f=_0x4b385e;[_0x1fce62['id'],_0x3ab047['id'],_0x441168['id']][_0xb8165f(0x8f)](_0xc8eb5b=>{const _0x516cc2=_0xb8165f;this['disposeWithMe'](this[_0x516cc2(0xea)][_0x516cc2(0xfc)](_0xc8eb5b));});}};I=Ve([je(0x0,_0x560870(L))],I);var Me=Object[_0x4b385e(0xef)],ke=Object[_0x4b385e(0x7a)],Ge=(_0x2b47be,_0x57d4ac,_0xa2a60e)=>_0x57d4ac in _0x2b47be?Me(_0x2b47be,_0x57d4ac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa2a60e}):_0x2b47be[_0x57d4ac]=_0xa2a60e,We=(_0x5d5e61,_0x42573a,_0x5dce0c,_0x232e34)=>{const _0x62af58=_0x4b385e;for(var _0x38c172=_0x232e34>0x1?void 0x0:_0x232e34?ke(_0x42573a,_0x5dce0c):_0x42573a,_0x25381f=_0x5d5e61[_0x62af58(0xa0)]-0x1,_0x19b427;_0x25381f>=0x0;_0x25381f--)(_0x19b427=_0x5d5e61[_0x25381f])&&(_0x38c172=_0x19b427(_0x38c172)||_0x38c172);return _0x38c172;},F=(_0x5de875,_0x13171b)=>(_0x2b8e28,_0x1e158a)=>_0x13171b(_0x2b8e28,_0x1e158a,_0x5de875),B=(_0x22c666,_0x389fa4,_0x5ee340)=>Ge(_0x22c666,typeof _0x389fa4!=_0x4b385e(0xc9)?_0x389fa4+'':_0x389fa4,_0x5ee340);const Ye=_0x4b385e(0x112);let b=class extends _0x91b81e{constructor(_0x5a9ef2=T,_0x54d532,_0x55fd9d){const _0x757270=_0x4b385e;super(),this[_0x757270(0xaa)]=_0x5a9ef2,this[_0x757270(0xb3)]=_0x54d532,this[_0x757270(0x100)]=_0x55fd9d;const {..._0x316d5f}=_0x473004({},T,this[_0x757270(0xaa)]);this[_0x757270(0x100)][_0x757270(0x106)](ye,_0x316d5f);}[_0x4b385e(0xdc)](){const _0x569425=_0x4b385e;_0x489867(this[_0x569425(0xb3)],_0x55fb95([[L],[S],[I],[m]],this['_config'][_0x569425(0xa7)])),_0x20f240(this[_0x569425(0xb3)],[[I]]);}[_0x4b385e(0xdd)](){_0x20f240(this['_injector'],[[m]]);}};B(b,_0x4b385e(0x8b),_0x2d5db4['UNIVER_UNKNOWN']),B(b,_0x4b385e(0xa4),Ye),b=We([_0x2ae8e8(_0xff5435),F(0x1,_0x560870(_0x31eff1)),F(0x2,_0x290f96)],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 _0x1ff471=_0x7fae;(function(_0x67af08,_0x235412){const _0x359b7c=_0x7fae,_0x47dddf=_0x67af08();while(!![]){try{const _0x30b74c=-parseInt(_0x359b7c(0x23b))/0x1*(-parseInt(_0x359b7c(0x209))/0x2)+-parseInt(_0x359b7c(0x1c2))/0x3*(parseInt(_0x359b7c(0x1d9))/0x4)+parseInt(_0x359b7c(0x248))/0x5*(-parseInt(_0x359b7c(0x1cc))/0x6)+parseInt(_0x359b7c(0x20b))/0x7+-parseInt(_0x359b7c(0x21b))/0x8+-parseInt(_0x359b7c(0x1dd))/0x9+parseInt(_0x359b7c(0x1e9))/0xa;if(_0x30b74c===_0x235412)break;else _0x47dddf['push'](_0x47dddf['shift']());}catch(_0x41425f){_0x47dddf['push'](_0x47dddf['shift']());}}}(_0x5570,0xb8c28));var J=Object[_0x1ff471(0x240)],K=(_0x2bd2c8,_0x35c835,_0x534633)=>_0x35c835 in _0x2bd2c8?J(_0x2bd2c8,_0x35c835,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x534633}):_0x2bd2c8[_0x35c835]=_0x534633,u=(_0x48cfe1,_0xde295,_0x4bdd67)=>K(_0x48cfe1,typeof _0xde295!=_0x1ff471(0x1d4)?_0xde295+'':_0xde295,_0x4bdd67);import{Disposable as _0x5efc82,toDisposable as _0x40b029,IUniverInstanceService as _0x407f4a,Inject as _0x530cef,Injector as _0x342037,IConfigService as _0x495339,ICommandService as _0x244e30,RxDisposable as _0x27b7ba,UniverInstanceType as _0x391209,DisposableCollection as _0x4ea11a,CommandType as _0x3c20aa,DependentOn as _0x148bca,Plugin as _0x41c584,merge as _0x2c2112,registerDependencies as _0x5a0d1b,mergeOverrideWithDependencies as _0x5a4f61,touchDependencies as _0x2d8b65}from'@univerjs/core';import{useDependency as _0x11f1e0,useObservable as _0x1e059b,IUIPartsService as _0x5b30b3,BuiltInUIPart as _0x25f8f5,connectInjector as _0x33fbbf}from'@univerjs/ui';import{jsx as _0x44ff08,jsxs as _0xdeaf32,Fragment as _0x47942b}from'react/jsx-runtime';import{Dropdown as _0x21ed3d,clsx as _0x70919e,Button as _0x4f7539}from'@univerjs/design';import{useRef as _0x4576d0,createElement as _0x241ac0,forwardRef as _0x197dd8,useState as _0x155574,useEffect as _0x5bfbc0}from'react';import{CollaborationEvent as _0xb1447,parseProtocolChangeset as _0x331d5a}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x57c410,SessionStatus as _0x2ea114,UniverCollaborationClientPlugin as _0x18c6f0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x38f5e0,SetWorksheetActiveOperation as _0x5c8388}from'@univerjs/sheets';import{BehaviorSubject as _0x3757b0,Subject as _0x5667a6}from'rxjs';import{takeUntil as _0x1eb310,throttleTime as _0x193b30}from'rxjs/operators';import{SetZoomRatioOperation as _0x55628f,SetScrollOperation as _0x3efdd7}from'@univerjs/sheets-ui';function k({ref:_0x54d3c3,..._0x588c5f}){const _0x442a32=_0x1ff471,{icon:_0x3a593f,id:_0x52a812,className:_0x2b9ded,extend:_0x5d9e52,..._0xc787dc}=_0x588c5f,_0x302977=(_0x442a32(0x1db)+_0x52a812+'\x20'+(_0x2b9ded||''))[_0x442a32(0x1f3)](),_0x2773f6=_0x4576d0('_'+Oe());return G(_0x3a593f,''+_0x52a812,{'defIds':_0x3a593f[_0x442a32(0x1be)],'idSuffix':_0x2773f6[_0x442a32(0x1fc)]},{'ref':_0x54d3c3,'className':_0x302977,..._0xc787dc},_0x5d9e52);}function G(_0x26cd31,_0x51c6a2,_0x103abe,_0x974482,_0x4d40f3){const _0x16ef69=_0x1ff471;return _0x241ac0(_0x26cd31['tag'],{'key':_0x51c6a2,...be(_0x26cd31,_0x103abe,_0x4d40f3),..._0x974482},(Ee(_0x26cd31,_0x103abe)[_0x16ef69(0x1e8)]||[])['map']((_0x3decb9,_0xcda044)=>G(_0x3decb9,_0x51c6a2+'-'+_0x26cd31['tag']+'-'+_0xcda044,_0x103abe,void 0x0,_0x4d40f3)));}function be(_0x2f444c,_0x13f485,_0x51387c){const _0x17eb68=_0x1ff471,_0x324824={..._0x2f444c[_0x17eb68(0x1b3)]};_0x51387c!=null&&_0x51387c[_0x17eb68(0x1a9)]&&_0x324824[_0x17eb68(0x238)]===_0x17eb68(0x1a9)&&(_0x324824[_0x17eb68(0x238)]=_0x51387c[_0x17eb68(0x1a9)]),_0x2f444c[_0x17eb68(0x213)]==='mask'&&_0x324824['id']&&(_0x324824['id']=_0x324824['id']+_0x13f485[_0x17eb68(0x211)]),Object[_0x17eb68(0x216)](_0x324824)[_0x17eb68(0x1ad)](([_0x5ddc4a,_0x4f10f4])=>{const _0x2c57c8=_0x17eb68;_0x5ddc4a==='mask'&&typeof _0x4f10f4==_0x2c57c8(0x239)&&(_0x324824[_0x5ddc4a]=_0x4f10f4['replace'](/url\(#(.*)\)/,'url(#$1'+_0x13f485[_0x2c57c8(0x211)]+')'));});const {defIds:_0x19bfd7}=_0x13f485;return!_0x19bfd7||_0x19bfd7[_0x17eb68(0x233)]===0x0||(_0x2f444c[_0x17eb68(0x213)]===_0x17eb68(0x223)&&_0x324824[_0x17eb68(0x1f9)]&&(_0x324824[_0x17eb68(0x1f9)]=_0x324824[_0x17eb68(0x1f9)]+_0x13f485[_0x17eb68(0x211)]),Object[_0x17eb68(0x216)](_0x324824)[_0x17eb68(0x1ad)](([_0x4fbe80,_0x44586b])=>{const _0x1491e5=_0x17eb68;typeof _0x44586b==_0x1491e5(0x239)&&(_0x324824[_0x4fbe80]=_0x44586b[_0x1491e5(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x13f485[_0x1491e5(0x211)]+')'));})),_0x324824;}function Ee(_0x40f6af,_0xe39401){const _0x16df81=_0x1ff471;var _0x304159;const {defIds:_0x53abff}=_0xe39401;return!_0x53abff||_0x53abff[_0x16df81(0x233)]===0x0?_0x40f6af:_0x40f6af[_0x16df81(0x213)]==='defs'&&((_0x304159=_0x40f6af[_0x16df81(0x1e8)])!=null&&_0x304159[_0x16df81(0x233)])?{..._0x40f6af,'children':_0x40f6af[_0x16df81(0x1e8)][_0x16df81(0x1ab)](_0x2955b0=>typeof _0x2955b0[_0x16df81(0x1b3)]['id']==_0x16df81(0x239)&&_0x53abff&&_0x53abff[_0x16df81(0x1cd)](_0x2955b0[_0x16df81(0x1b3)]['id'])?{..._0x2955b0,'attrs':{..._0x2955b0[_0x16df81(0x1b3)],'id':_0x2955b0['attrs']['id']+_0xe39401['idSuffix']}}:_0x2955b0)}:_0x40f6af;}function Oe(){const _0x3058eb=_0x1ff471;return Math[_0x3058eb(0x1ea)]()[_0x3058eb(0x1a4)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x1ff471(0x20f);const we={'tag':_0x1ff471(0x1bf),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1ff471(0x1ca),'viewBox':_0x1ff471(0x1f2),'width':_0x1ff471(0x1c8),'height':_0x1ff471(0x1c8)},'children':[{'tag':'path','attrs':{'fill':_0x1ff471(0x1fb),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x1ff471(0x1fb),'d':_0x1ff471(0x1d3),'fillRule':_0x1ff471(0x21e),'clipRule':'evenodd'}}]},W=_0x197dd8(function(_0x1a2eaf,_0x3f0300){const _0x515e7e=_0x1ff471;return _0x241ac0(k,Object[_0x515e7e(0x1c1)]({},_0x1a2eaf,{'id':_0x515e7e(0x1c0),'ref':_0x3f0300,'icon':we}));});W['displayName']=_0x1ff471(0x1f7);class L extends _0x5efc82{constructor(){const _0x598f4d=_0x1ff471;super(...arguments),u(this,_0x598f4d(0x1fa),new Set()),u(this,'_reporters',new Set());}['registerSharedOperation'](_0x5e6e0a){const _0x36c790=_0x1ff471;return this['_sharedOperations']['add'](_0x5e6e0a),_0x40b029(()=>this['_sharedOperations'][_0x36c790(0x227)](_0x5e6e0a));}[_0x1ff471(0x1b0)](_0x1bf75a){const _0x22ed6a=_0x1ff471;return this[_0x22ed6a(0x1d2)][_0x22ed6a(0x21a)](_0x1bf75a),_0x40b029(()=>this['_reporters'][_0x22ed6a(0x227)](_0x1bf75a));}[_0x1ff471(0x1ff)](_0x30d843){const _0x444cec=_0x1ff471;return this[_0x444cec(0x1fa)][_0x444cec(0x222)](_0x30d843);}[_0x1ff471(0x1a6)](_0x26d9cd){const _0x12b772=_0x1ff471;return Array[_0x12b772(0x1a7)](this[_0x12b772(0x1d2)])[_0x12b772(0x1ab)](_0x16b419=>_0x16b419(_0x26d9cd));}}var Ne=Object[_0x1ff471(0x1c4)],Y=(_0x19fe3a,_0x147680,_0x34b2f9,_0x1d65c6)=>{const _0x302b59=_0x1ff471;for(var _0x3b5c18=_0x1d65c6>0x1?void 0x0:_0x1d65c6?Ne(_0x147680,_0x34b2f9):_0x147680,_0x4fe29e=_0x19fe3a[_0x302b59(0x233)]-0x1,_0x377afb;_0x4fe29e>=0x0;_0x4fe29e--)(_0x377afb=_0x19fe3a[_0x4fe29e])&&(_0x3b5c18=_0x377afb(_0x3b5c18)||_0x3b5c18);return _0x3b5c18;},_=(_0x346bd6,_0x42fa7c)=>(_0x3bdd66,_0x1146b9)=>_0x42fa7c(_0x3bdd66,_0x1146b9,_0x346bd6);let S=class extends _0x27b7ba{constructor(_0x570829,_0x20eb27,_0xef5d28){const _0x25f2e2=_0x1ff471;super(),u(this,_0x25f2e2(0x1e6),new Map()),(this[_0x25f2e2(0x1fd)]=_0x570829,this[_0x25f2e2(0x1ed)]=_0x20eb27,this[_0x25f2e2(0x1d7)]=_0xef5d28,this[_0x25f2e2(0x1c9)]());}async[_0x1ff471(0x22a)](_0x3ba235){const _0x1e084b=_0x1ff471;return this[_0x1e084b(0x1e6)]['has'](_0x3ba235)||await this[_0x1e084b(0x1fe)](_0x3ba235),this[_0x1e084b(0x1e6)][_0x1e084b(0x1a5)](_0x3ba235);}[_0x1ff471(0x220)](_0xc0e10c){const _0xec5ee5=_0x1ff471;var _0x1e1988;return(_0x1e1988=this[_0xec5ee5(0x1e6)][_0xec5ee5(0x1a5)](_0xc0e10c))!=null?_0x1e1988:null;}[_0x1ff471(0x1c9)](){const _0x4f2120=_0x1ff471;this[_0x4f2120(0x1fd)]['getTypeOfUnitAdded$'](_0x391209[_0x4f2120(0x234)])[_0x4f2120(0x1d0)](_0x1eb310(this[_0x4f2120(0x237)]))[_0x4f2120(0x1eb)](async _0x329f88=>{const _0x5f31fe=_0x4f2120,_0x4b15cf=_0x329f88[_0x5f31fe(0x212)]();this[_0x5f31fe(0x1e6)][_0x5f31fe(0x222)](_0x4b15cf)||this[_0x5f31fe(0x1fe)](_0x4b15cf);}),this[_0x4f2120(0x1fd)][_0x4f2120(0x1de)](_0x391209['UNIVER_SHEET'])[_0x4f2120(0x1d0)](_0x1eb310(this[_0x4f2120(0x237)]))[_0x4f2120(0x1eb)](_0x5bcc72=>{const _0xb0c83f=_0x4f2120,_0xba9db7=_0x5bcc72[_0xb0c83f(0x212)](),_0x4106f5=this[_0xb0c83f(0x1e6)]['get'](_0xba9db7);_0x4106f5==null||_0x4106f5['dispose']();});}async['_startLiveShareCoordinator'](_0x5d8ac4){const _0xeb6207=_0x1ff471,_0x5439d8=await this[_0xeb6207(0x1d7)]['requireSession'](_0x5d8ac4),_0x35d44b=this[_0xeb6207(0x1ed)][_0xeb6207(0x1e2)](N,_0x5d8ac4,_0x5439d8);return _0x35d44b['init'](),this[_0xeb6207(0x1e6)][_0xeb6207(0x214)](_0x5d8ac4,_0x35d44b),_0x35d44b;}};S=Y([_(0x0,_0x407f4a),_(0x1,_0x530cef(_0x342037)),_(0x2,_0x530cef(_0x57c410))],S);var c=(_0x4adbe8=>(_0x4adbe8[_0x1ff471(0x1a2)]=_0x1ff471(0x243),_0x4adbe8['IDLE']='idle',_0x4adbe8[_0x1ff471(0x1b6)]=_0x1ff471(0x21f),_0x4adbe8['NOT_FOLLOWING']=_0x1ff471(0x244),_0x4adbe8[_0x1ff471(0x21c)]=_0x1ff471(0x230),_0x4adbe8))(c||{});const Ce=_0x1ff471(0x1d5),De=0xc8;let N=class extends _0x27b7ba{constructor(_0x4b9732,_0x1fc442,_0x129c59,_0x310a79,_0x16863c){const _0x5b4e4e=_0x1ff471;super(),u(this,_0x5b4e4e(0x23f),new _0x3757b0(_0x5b4e4e(0x1b5))),u(this,'status$',this[_0x5b4e4e(0x23f)]['asObservable']()),u(this,_0x5b4e4e(0x1c9),!0x1),u(this,'_commandDisposable',null),u(this,_0x5b4e4e(0x1a3),null),(this[_0x5b4e4e(0x210)]=_0x4b9732,this[_0x5b4e4e(0x22b)]=_0x1fc442,this['_configService']=_0x129c59,this[_0x5b4e4e(0x1ae)]=_0x310a79,this[_0x5b4e4e(0x228)]=_0x16863c);}get['_status'](){const _0x4afec2=_0x1ff471;return this[_0x4afec2(0x23f)][_0x4afec2(0x217)]();}[_0x1ff471(0x1aa)](){const _0x490e09=_0x1ff471;var _0x1537bf;(_0x1537bf=this[_0x490e09(0x1d1)])==null||_0x1537bf['dispose'](),this[_0x490e09(0x23f)][_0x490e09(0x202)]('idle'),this[_0x490e09(0x23f)]['complete']();}[_0x1ff471(0x246)](){const _0x5ca0e9=_0x1ff471;return this[_0x5ca0e9(0x229)];}[_0x1ff471(0x204)](){const _0xeafc37=_0x1ff471;this['_init']||(this['_init']=!0x0,this['_collabSession']['sessionStatus$'][_0xeafc37(0x1d0)](_0x1eb310(this['dispose$']))[_0xeafc37(0x1eb)](_0x98d964=>{const _0x208f2e=_0xeafc37;switch(_0x98d964){case _0x2ea114[_0x208f2e(0x1a2)]:this[_0x208f2e(0x1bc)]();break;case _0x2ea114[_0x208f2e(0x20d)]:this[_0x208f2e(0x1b7)]();break;}}),this[_0xeafc37(0x22b)][_0xeafc37(0x23e)][_0xeafc37(0x1d0)](_0x1eb310(this[_0xeafc37(0x237)]))[_0xeafc37(0x1eb)](_0x57590c=>{const _0x5e2632=_0xeafc37,{eventID:_0x4e82df}=_0x57590c;switch(_0x4e82df){case _0xb1447['LIVESHARE_NEW_HOST']:this[_0x5e2632(0x1f6)](_0x57590c);break;case _0xb1447['LIVESHARE_OPERATION']:this[_0x5e2632(0x221)](_0x57590c);break;case _0xb1447['LIVESHARE_TERMINATE']:this[_0x5e2632(0x218)]();break;case _0xb1447[_0x5e2632(0x242)]:this['_handleNewChangeSets'](_0x57590c);break;}}));}['tryStartPresenting'](){const _0x22b46b=_0x1ff471;this[_0x22b46b(0x22b)]['send']({'eventID':_0xb1447[_0x22b46b(0x215)],'data':{'unitID':this[_0x22b46b(0x210)],'userID':this[_0x22b46b(0x22b)][_0x22b46b(0x232)]()}},this[_0x22b46b(0x210)]);}['stopPresenting'](){const _0x454ee6=_0x1ff471;this[_0x454ee6(0x229)]===_0x454ee6(0x230)&&(this[_0x454ee6(0x23f)]['next'](_0x454ee6(0x1b5)),this[_0x454ee6(0x22b)][_0x454ee6(0x22c)]({'eventID':_0xb1447[_0x454ee6(0x1f0)],'data':{'unitID':this[_0x454ee6(0x210)]}},this['_unitID']));}[_0x1ff471(0x1e3)](){const _0x216134=_0x1ff471;this[_0x216134(0x229)]===_0x216134(0x244)&&(this[_0x216134(0x23f)][_0x216134(0x202)](_0x216134(0x21f)),this['_startFollowing']());}[_0x1ff471(0x200)](){const _0x1e6a64=_0x1ff471;this['_status']===_0x1e6a64(0x21f)&&this[_0x1e6a64(0x1c6)]();}['_handleNewHost'](_0x485a12){const _0x103ddb=_0x1ff471,{presenter:_0x50273e}=_0x485a12['data'],_0xb41cf5=this['_collabSession'][_0x103ddb(0x232)]();this['_presenter']=_0x50273e,_0x50273e===_0xb41cf5?(this[_0x103ddb(0x1c6)](),this[_0x103ddb(0x219)]()):this[_0x103ddb(0x229)]!==_0x103ddb(0x244)&&(this[_0x103ddb(0x1b2)](),this[_0x103ddb(0x1e1)]());}[_0x1ff471(0x1c5)](){const _0x192748=_0x1ff471,_0x2cdf5d={'eventID':_0xb1447[_0x192748(0x21d)]};this['_collabSession'][_0x192748(0x22c)](_0x2cdf5d,this[_0x192748(0x210)]);}[_0x1ff471(0x218)](){const _0x4a5074=_0x1ff471;this['_presenter']=null,this['_status']!==_0x4a5074(0x230)&&this[_0x4a5074(0x1ac)]();}[_0x1ff471(0x1cb)](_0x4ee193){const _0x3dfc98=_0x1ff471;if(this['_status']==='following'&&this[_0x3dfc98(0x1a3)]===_0x4ee193[_0x3dfc98(0x1ef)][_0x3dfc98(0x22d)]){const _0x1861ce=_0x331d5a(_0x4ee193['data'])[_0x3dfc98(0x249)]['reverse']()[_0x3dfc98(0x20c)](_0x10d34=>_0x10d34['id']===_0x38f5e0['id']);if(_0x1861ce){const _0x5859e8=_0x1861ce[_0x3dfc98(0x1bb)][_0x3dfc98(0x1e7)],_0x21b363=_0x1861ce[_0x3dfc98(0x1bb)][_0x3dfc98(0x1d8)]['id'];setTimeout(()=>{const _0x478ec3=_0x3dfc98;this[_0x478ec3(0x228)][_0x478ec3(0x23a)](_0x5c8388['id'],{'unitId':_0x5859e8,'subUnitId':_0x21b363},{'fromCollab':!0x0});});}}}[_0x1ff471(0x219)](){const _0x488fec=_0x1ff471;this[_0x488fec(0x23f)][_0x488fec(0x202)]('presenting');const _0x2d6ee2=new Map(),_0x21ce20=this[_0x488fec(0x1d1)]=new _0x4ea11a();_0x21ce20['add'](_0x40b029(()=>{const _0x4a657b=_0x488fec;_0x2d6ee2[_0x4a657b(0x1ad)](_0x437cae=>_0x437cae[_0x4a657b(0x203)]()),_0x2d6ee2[_0x4a657b(0x20e)]();})),_0x21ce20[_0x488fec(0x21a)](this['_commandService'][_0x488fec(0x23c)](_0x4ffe17=>{const _0x5f4ba5=_0x488fec;var _0x7cf43b;if(_0x4ffe17[_0x5f4ba5(0x1b9)]!==_0x3c20aa[_0x5f4ba5(0x1e0)]||!this['_liveShareService'][_0x5f4ba5(0x1ff)](_0x4ffe17['id']))return;const {id:_0x5821aa}=_0x4ffe17;let _0x5ab94f;_0x2d6ee2[_0x5f4ba5(0x222)](_0x5821aa)?_0x5ab94f=_0x2d6ee2[_0x5f4ba5(0x1a5)](_0x5821aa):(_0x5ab94f=new _0x5667a6(),_0x2d6ee2[_0x5f4ba5(0x214)](_0x5821aa,_0x5ab94f),_0x5ab94f[_0x5f4ba5(0x1d0)](_0x193b30((_0x7cf43b=this[_0x5f4ba5(0x1b8)][_0x5f4ba5(0x224)](Ce))!=null?_0x7cf43b:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5f4ba5(0x1eb)](_0x417165=>{const _0x3feb3b=_0x5f4ba5;this[_0x3feb3b(0x22b)]['send']({'eventID':_0xb1447[_0x3feb3b(0x1cf)],'data':{'unitID':this[_0x3feb3b(0x210)],'operations':{[_0x417165['id']]:{'id':_0x417165['id'],'params':JSON[_0x3feb3b(0x225)](_0x417165[_0x3feb3b(0x1bb)])}}}},this[_0x3feb3b(0x210)]);})),_0x5ab94f[_0x5f4ba5(0x202)](_0x4ffe17);})),this[_0x488fec(0x1ae)][_0x488fec(0x1a6)](this['_unitID'])[_0x488fec(0x1ad)](_0x407797=>this[_0x488fec(0x22b)][_0x488fec(0x22c)]({'eventID':_0xb1447[_0x488fec(0x1cf)],'data':{'unitID':this[_0x488fec(0x210)],'operations':{[_0x407797['id']]:{'id':_0x407797['id'],'params':JSON[_0x488fec(0x225)](_0x407797['params'])}}}},this[_0x488fec(0x210)]));}[_0x1ff471(0x1b2)](){const _0x3499b0=_0x1ff471;var _0x5e2876;this[_0x3499b0(0x23f)][_0x3499b0(0x202)](_0x3499b0(0x1b5)),(_0x5e2876=this['_commandDisposable'])==null||_0x5e2876[_0x3499b0(0x1aa)](),this['_commandDisposable']=null;}[_0x1ff471(0x1e1)](){const _0x5ca5fa=_0x1ff471;var _0x40e911;(_0x40e911=this[_0x5ca5fa(0x1d1)])==null||_0x40e911[_0x5ca5fa(0x1aa)](),this[_0x5ca5fa(0x23f)][_0x5ca5fa(0x202)](_0x5ca5fa(0x21f));}[_0x1ff471(0x1ac)](){const _0x372a77=_0x1ff471;var _0x45999a;this[_0x372a77(0x23f)][_0x372a77(0x202)](_0x372a77(0x1b5)),(_0x45999a=this[_0x372a77(0x1d1)])==null||_0x45999a[_0x372a77(0x1aa)](),this[_0x372a77(0x1d1)]=null;}[_0x1ff471(0x1c6)](){const _0x3ca668=_0x1ff471;var _0x183a59;this[_0x3ca668(0x23f)]['next'](_0x3ca668(0x244)),(_0x183a59=this[_0x3ca668(0x1d1)])==null||_0x183a59['dispose']();}[_0x1ff471(0x221)](_0x14f9a9){const _0x56de70=_0x1ff471;if([_0x56de70(0x230),_0x56de70(0x244),_0x56de70(0x243)][_0x56de70(0x1cd)](this[_0x56de70(0x229)])||!_0x14f9a9[_0x56de70(0x1ef)][_0x56de70(0x1df)]||_0x14f9a9[_0x56de70(0x1ef)]['presenter']===this[_0x56de70(0x22b)][_0x56de70(0x232)]())return;this[_0x56de70(0x229)]===_0x56de70(0x1b5)&&this[_0x56de70(0x1e1)]();const _0x256a7d=_0x14f9a9[_0x56de70(0x1ef)][_0x56de70(0x1e4)];Object[_0x56de70(0x1dc)](_0x256a7d)['forEach'](_0x1098a5=>{const _0x829016=_0x56de70;this[_0x829016(0x228)]['executeCommand'](_0x1098a5['id'],_0x1098a5['params']?JSON['parse'](_0x1098a5[_0x829016(0x1bb)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4503d7=_0x1ff471;var _0x11193f;this[_0x4503d7(0x23f)][_0x4503d7(0x202)](_0x4503d7(0x243)),(_0x11193f=this[_0x4503d7(0x1d1)])==null||_0x11193f['dispose']();}['_handleOnline'](){const _0x25027b=_0x1ff471;this[_0x25027b(0x23f)][_0x25027b(0x202)](_0x25027b(0x1b5)),this[_0x25027b(0x1c5)]();}};N=Y([_(0x2,_0x495339),_(0x3,_0x530cef(L)),_(0x4,_0x244e30)],N);function Le(){const _0x360dd8=_0x1ff471,_0x480058=_0x11f1e0(S),_0x30294c=_0x11f1e0(_0x407f4a),_0x3103a8=_0x1e059b(()=>_0x30294c[_0x360dd8(0x1b4)](_0x391209['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3fd68c,_0x220472]=_0x155574(null),[_0x56c686,_0x178780]=_0x155574(c[_0x360dd8(0x201)]),_0xef2c91=_0x4576d0(null);return _0x5bfbc0(()=>(_0x3103a8&&_0x480058[_0x360dd8(0x22a)](_0x3103a8['getUnitId']())[_0x360dd8(0x23d)](_0x4a1edd=>{const _0x5e08dd=_0x360dd8;_0x220472(_0x4a1edd),_0xef2c91[_0x5e08dd(0x1fc)]=_0x4a1edd[_0x5e08dd(0x1ce)][_0x5e08dd(0x1eb)](_0x21c8ae=>{_0x178780(_0x21c8ae);});}),()=>{const _0x286259=_0x360dd8;var _0xb4bd9a;(_0xb4bd9a=_0xef2c91[_0x286259(0x1fc)])==null||_0xb4bd9a[_0x286259(0x1bd)](),_0xef2c91[_0x286259(0x1fc)]=null;}),[_0x3103a8,_0x480058]),_0x3fd68c?_0x44ff08(_0x21ed3d,{'align':_0x360dd8(0x1f5),'disabled':_0x56c686===c[_0x360dd8(0x1a2)],'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':_0x44ff08(Re,{'status':_0x56c686,'coordinator':_0x3fd68c}),'children':_0x44ff08(_0x360dd8(0x1c7),{'className':_0x70919e(_0x360dd8(0x236),{'univer-cursor-not-allowed':_0x56c686===c[_0x360dd8(0x1a2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56c686!==c[_0x360dd8(0x1a2)]}),'type':_0x360dd8(0x1c7),'children':_0x44ff08(W,{'className':_0x360dd8(0x205)})})}):null;}function Re(_0x28e239){const _0x39cc04=_0x1ff471,{status:_0x11d2b3,coordinator:_0x3cf1e7}=_0x28e239;switch(_0x11d2b3){case c[_0x39cc04(0x201)]:return _0x44ff08($e,{'coordinator':_0x3cf1e7});case c['FOLLOWING']:return _0x44ff08(xe,{'coordinator':_0x3cf1e7});case c[_0x39cc04(0x1a8)]:return _0x44ff08(Pe,{'coordinator':_0x3cf1e7});case c[_0x39cc04(0x1a2)]:return _0x44ff08(Te,{});case c[_0x39cc04(0x21c)]:return _0x44ff08(Ae,{'coordinator':_0x3cf1e7});default:return null;}}function $e(_0x424685){const _0x367646=_0x1ff471,{coordinator:_0x2e5116}=_0x424685;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x367646(0x241),{'className':_0x367646(0x1b1),'children':_0x367646(0x235)}),_0x44ff08(_0x4f7539,{'onClick':()=>_0x2e5116[_0x367646(0x1f1)](),'children':'Start'})]});}function xe(_0x2e1c24){const _0x4fa2e6=_0x1ff471,{coordinator:_0x54c7c5}=_0x2e1c24;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x4fa2e6(0x241),{'className':_0x4fa2e6(0x1b1),'children':_0x4fa2e6(0x208)}),_0x44ff08(_0x4f7539,{'onClick':()=>_0x54c7c5['stopFollowing'](),'children':_0x4fa2e6(0x1f8)})]});}function Pe(_0x2e475d){const _0x523dff=_0x1ff471,{coordinator:_0x448d74}=_0x2e475d;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x523dff(0x241),{'className':_0x523dff(0x1b1),'children':_0x523dff(0x1af)}),_0x44ff08(_0x4f7539,{'variant':_0x523dff(0x226),'onClick':()=>_0x448d74[_0x523dff(0x1e3)](),'children':_0x523dff(0x1ec)})]});}function Ae(_0x5f022d){const _0x89213b=_0x1ff471,{coordinator:_0x3a058c}=_0x5f022d;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08('div',{'className':_0x89213b(0x1b1),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x44ff08(_0x4f7539,{'variant':_0x89213b(0x207),'onClick':()=>_0x3a058c['stopPresenting'](),'children':_0x89213b(0x231)})]});}function Te(){return _0x44ff08(_0x47942b,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x1ff471(0x1c4)],He=(_0x2f8122,_0x524e5f,_0x361076,_0x36454d)=>{for(var _0x4c0982=_0x36454d>0x1?void 0x0:_0x36454d?Fe(_0x524e5f,_0x361076):_0x524e5f,_0x371a1a=_0x2f8122['length']-0x1,_0x65146f;_0x371a1a>=0x0;_0x371a1a--)(_0x65146f=_0x2f8122[_0x371a1a])&&(_0x4c0982=_0x65146f(_0x4c0982)||_0x4c0982);return _0x4c0982;},A=(_0x275cf4,_0xd2ddea)=>(_0x1c3e8e,_0x198788)=>_0xd2ddea(_0x1c3e8e,_0x198788,_0x275cf4);function _0x7fae(_0x3fcfbd,_0x1f6936){const _0x557056=_0x5570();return _0x7fae=function(_0x7fae7c,_0x38b49c){_0x7fae7c=_0x7fae7c-0x1a2;let _0x5cda0d=_0x557056[_0x7fae7c];return _0x5cda0d;},_0x7fae(_0x3fcfbd,_0x1f6936);}let m=class extends _0x5efc82{constructor(_0x205e68,_0x419cec){const _0x1d14f7=_0x1ff471;super(),this[_0x1d14f7(0x1ed)]=_0x205e68,this[_0x1d14f7(0x247)]=_0x419cec,this[_0x1d14f7(0x206)]();}['_mountLiveShare'](){const _0x54f196=_0x1ff471;this[_0x54f196(0x1c3)](this[_0x54f196(0x247)][_0x54f196(0x1ba)](_0x25f8f5[_0x54f196(0x1f4)],()=>_0x33fbbf(Le,this['_injector'])));}};function _0x5570(){const _0x40f71a=['_stopFollowing','button','1em','_init','none','_handleNewChangeSets','6PLIzZJ','includes','status$','LIVESHARE_OPERATION','pipe','_commandDisposable','_reporters','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','symbol','SAME_OPERATION_SHARE_INTERVAL','replace','_collabSessionService','sheet','4PhrxBd','onRendered','univerjs-icon\x20univerjs-icon-','values','11830554bUmnuc','getTypeOfUnitDisposed$','presenter','OPERATION','_startFollowing','createInstance','startFollowing','operations','override','_entities','unitId','children','28307970NfiiNQ','random','subscribe','Start\x20following','_injector','registerSharedOperation','data','LIVESHARE_TERMINATE','tryStartPresenting','0\x200\x2017\x2017','trim','HEADER_MENU','end','_handleNewHost','LiveShareIcon','Stop\x20following','xlink:href','_sharedOperations','currentColor','current','_univerInstanceService','_startLiveShareCoordinator','shouldShareOperation','stopFollowing','IDLE','next','complete','init','univer-size-4','_mountLiveShare','default','You\x27re\x20following\x20the\x20presenter','2DonwDo','UNIVER_LIVE_SHARE_PLUGIN','9211230eKNjPG','find','ONLINE','clear','UniverIcon','_unitID','idSuffix','getUnitId','tag','set','LIVESHARE_REQUEST_HOST','entries','getValue','_handleTerminate','_startPresenting','add','7099752pkzOlA','PRESENTING','LIVESHARE_FETCH_OPERATIONS','evenodd','following','getLiveShareCoordinatorSync','_handleOperation','has','use','getConfig','stringify','text','delete','_commandService','_status','getLiveShareCoordinator','_collabSession','send','memberID','setConfig','_config','presenting','Stop\x20presenting','getMemberID','length','UNIVER_SHEET','Present\x20this\x20document','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose$','fill','string','executeCommand','567211CHxsmP','onCommandExecuted','then','event$','_status$','defineProperty','div','NEW_CHANGESETS','offline','not-following','onStarting','getStatus','_uiPartsService','5036170qrStPd','mutations','UNIVER_UNKNOWN','OFFLINE','_presenter','toString','get','getInitialStates','from','NOT_FOLLOWING','colorChannel1','dispose','map','_beIdle','forEach','_liveShareService','You\x27re\x20not\x20following\x20the\x20presenter','registerInitialStateReporter','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting','attrs','getCurrentTypeOfUnit$','idle','FOLLOWING','_handleOnline','_configService','type','registerComponent','params','_handleOffline','unsubscribe','defIds','svg','live-share-icon','assign','2243739giwFqR','disposeWithMe','getOwnPropertyDescriptor','_fetchOperations'];_0x5570=function(){return _0x40f71a;};return _0x5570();}m=He([A(0x0,_0x530cef(_0x342037)),A(0x1,_0x5b30b3)],m);const ye='live-share.config',T={};var Ue=Object[_0x1ff471(0x1c4)],Ve=(_0x12667a,_0x4ebed6,_0x7838cc,_0xb0d144)=>{const _0x1495e5=_0x1ff471;for(var _0x520462=_0xb0d144>0x1?void 0x0:_0xb0d144?Ue(_0x4ebed6,_0x7838cc):_0x4ebed6,_0x21e448=_0x12667a[_0x1495e5(0x233)]-0x1,_0x4c7d42;_0x21e448>=0x0;_0x21e448--)(_0x4c7d42=_0x12667a[_0x21e448])&&(_0x520462=_0x4c7d42(_0x520462)||_0x520462);return _0x520462;},je=(_0x4a23d7,_0x367f06)=>(_0x552ec3,_0x15a8de)=>_0x367f06(_0x552ec3,_0x15a8de,_0x4a23d7);let I=class extends _0x5efc82{constructor(_0x3db742){const _0x46d09d=_0x1ff471;super(),this[_0x46d09d(0x1ae)]=_0x3db742,this[_0x46d09d(0x1c9)]();}[_0x1ff471(0x1c9)](){const _0x35b521=_0x1ff471;[_0x55628f['id'],_0x3efdd7['id'],_0x5c8388['id']][_0x35b521(0x1ad)](_0x5a0e25=>{const _0x2fc9c8=_0x35b521;this[_0x2fc9c8(0x1c3)](this[_0x2fc9c8(0x1ae)][_0x2fc9c8(0x1ee)](_0x5a0e25));});}};I=Ve([je(0x0,_0x530cef(L))],I);var Me=Object['defineProperty'],ke=Object[_0x1ff471(0x1c4)],Ge=(_0xfd20bc,_0x40da0c,_0x2633de)=>_0x40da0c in _0xfd20bc?Me(_0xfd20bc,_0x40da0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2633de}):_0xfd20bc[_0x40da0c]=_0x2633de,We=(_0x55b24f,_0x3d18f4,_0x529083,_0x109f13)=>{for(var _0x4094fc=_0x109f13>0x1?void 0x0:_0x109f13?ke(_0x3d18f4,_0x529083):_0x3d18f4,_0x92aaa0=_0x55b24f['length']-0x1,_0x5cc2ca;_0x92aaa0>=0x0;_0x92aaa0--)(_0x5cc2ca=_0x55b24f[_0x92aaa0])&&(_0x4094fc=_0x5cc2ca(_0x4094fc)||_0x4094fc);return _0x4094fc;},F=(_0x6757ab,_0x3f8d09)=>(_0x163397,_0x1447a7)=>_0x3f8d09(_0x163397,_0x1447a7,_0x6757ab),B=(_0x51fc9a,_0x5d0a91,_0x24eba7)=>Ge(_0x51fc9a,typeof _0x5d0a91!=_0x1ff471(0x1d4)?_0x5d0a91+'':_0x5d0a91,_0x24eba7);const Ye=_0x1ff471(0x20a);let b=class extends _0x41c584{constructor(_0x589e7f=T,_0x3a749b,_0x3e0ea5){const _0x4dbeeb=_0x1ff471;super(),this['_config']=_0x589e7f,this[_0x4dbeeb(0x1ed)]=_0x3a749b,this[_0x4dbeeb(0x1b8)]=_0x3e0ea5;const {..._0x2051f2}=_0x2c2112({},T,this[_0x4dbeeb(0x22f)]);this[_0x4dbeeb(0x1b8)][_0x4dbeeb(0x22e)](ye,_0x2051f2);}[_0x1ff471(0x245)](){const _0x1ee846=_0x1ff471;_0x5a0d1b(this[_0x1ee846(0x1ed)],_0x5a4f61([[L],[S],[I],[m]],this[_0x1ee846(0x22f)][_0x1ee846(0x1e5)])),_0x2d8b65(this['_injector'],[[I]]);}[_0x1ff471(0x1da)](){_0x2d8b65(this['_injector'],[[m]]);}};B(b,'type',_0x391209[_0x1ff471(0x24a)]),B(b,'pluginName',Ye),b=We([_0x148bca(_0x18c6f0),F(0x1,_0x530cef(_0x342037)),F(0x2,_0x495339)],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 _0x228979=_0x4b17;(function(_0x423d43,_0x3d75a4){const _0x361d66=_0x4b17,_0x302863=_0x423d43();while(!![]){try{const _0x235802=-parseInt(_0x361d66(0x83))/0x1*(parseInt(_0x361d66(0x72))/0x2)+parseInt(_0x361d66(0x82))/0x3*(-parseInt(_0x361d66(0x7d))/0x4)+-parseInt(_0x361d66(0x84))/0x5*(parseInt(_0x361d66(0x67))/0x6)+-parseInt(_0x361d66(0x7e))/0x7+-parseInt(_0x361d66(0x6a))/0x8+-parseInt(_0x361d66(0x88))/0x9*(-parseInt(_0x361d66(0x76))/0xa)+parseInt(_0x361d66(0x87))/0xb;if(_0x235802===_0x3d75a4)break;else _0x302863['push'](_0x302863['shift']());}catch(_0x3dea63){_0x302863['push'](_0x302863['shift']());}}}(_0x27d4,0xc7d79));import{LiveShareController as _0x12e631,LiveShareStatus as _0x4ad554}from'@univerjs-pro/live-share';function _0x27d4(){const _0x4ddeaa=['48718AoqniY','get','getActiveWorkbook','tryStartPresenting','6760aJAYsJ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startRow','IDLE','extend','stopPresenting','stopFollowing','1384088XoaJJY','4458132YIwrUH','executeCommand','syncExecuteCommand','No\x20active\x20workbook\x20found.','6dcLeqx','15CBLRWb','5aQKLuN','getUnitId','getActiveSheet','43015797PfDEWi','15597NMGPhw','getSheetId','6577806nMprQc','getId','startFollowing','11783008bJfGLf','getLiveShareCoordinatorSync','_initialize','getStatus','getRenderById','startColumn','startPresenting','_injector'];_0x27d4=function(){return _0x4ddeaa;};return _0x27d4();}import{IRenderManagerService as _0x2c6934}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x9ecc8a}from'@univerjs/sheets';import{SetScrollOperation as _0x3d7834}from'@univerjs/sheets-ui';import{FRange as _0xd9d185}from'@univerjs/sheets/facade';import{FUniver as _0x70652f,FEnum as _0x51b22f}from'@univerjs/core/facade';class I extends _0xd9d185{[_0x228979(0x6c)](_0x102b9a,_0x5c759b,_0x3f4f67,_0x521d9e,_0x41242a){const _0x2784c4=_0x228979,_0x5d02d3=_0x102b9a[_0x2784c4(0x73)](_0x12e631),_0x218a29=_0x102b9a[_0x2784c4(0x73)](_0x2c6934),_0x4189d8=_0x5c759b[_0x2784c4(0x85)](),_0x5bb240=_0x5c759b[_0x2784c4(0x86)](),_0xb8b4cb=_0x5d02d3[_0x2784c4(0x6b)](_0x4189d8);(_0xb8b4cb==null?void 0x0:_0xb8b4cb[_0x2784c4(0x6d)]())!==_0x4ad554['PRESENTING']||(_0x3f4f67[_0x2784c4(0x66)]()!==_0x5bb240['getSheetId']()&&this['_commandService'][_0x2784c4(0x7f)](_0x9ecc8a['id'],{'unitId':_0x4189d8,'subUnitId':_0x3f4f67[_0x2784c4(0x66)]()}),!_0x218a29[_0x2784c4(0x6e)](_0x4189d8))||_0x41242a[_0x2784c4(0x80)](_0x3d7834['id'],{'unitId':_0x5c759b[_0x2784c4(0x85)](),'sheetId':_0x3f4f67[_0x2784c4(0x66)](),'sheetViewStartRow':_0x521d9e[_0x2784c4(0x78)],'sheetViewStartColumn':_0x521d9e[_0x2784c4(0x6f)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xd9d185[_0x228979(0x7a)](I);class m extends _0x70652f{['getLiveShareStatus'](){const _0x37c629=_0x228979;var _0x4e3642,_0x4f711b;const _0x1e9b86=this[_0x37c629(0x71)][_0x37c629(0x73)](_0x12e631),_0x548a7e=(_0x4e3642=this[_0x37c629(0x74)]())==null?void 0x0:_0x4e3642[_0x37c629(0x68)]();if(!_0x548a7e)throw new Error(_0x37c629(0x81));const _0x134f61=_0x1e9b86[_0x37c629(0x6b)](_0x548a7e);return(_0x4f711b=_0x134f61==null?void 0x0:_0x134f61['getStatus']())!=null?_0x4f711b:_0x4ad554[_0x37c629(0x79)];}[_0x228979(0x69)](){const _0x10b743=_0x228979;var _0x56dbb3;const _0x117177=this[_0x10b743(0x71)]['get'](_0x12e631),_0x34080e=(_0x56dbb3=this['getActiveWorkbook']())==null?void 0x0:_0x56dbb3[_0x10b743(0x68)]();if(!_0x34080e)throw new Error(_0x10b743(0x81));const _0x472097=_0x117177['getLiveShareCoordinatorSync'](_0x34080e);if(!_0x472097)throw new Error(_0x10b743(0x77));_0x472097[_0x10b743(0x69)]();}[_0x228979(0x7c)](){const _0x5cf9c0=_0x228979;var _0x491e13;const _0xc10628=this[_0x5cf9c0(0x71)]['get'](_0x12e631),_0x113a9f=(_0x491e13=this[_0x5cf9c0(0x74)]())==null?void 0x0:_0x491e13[_0x5cf9c0(0x68)]();if(!_0x113a9f)throw new Error(_0x5cf9c0(0x81));const _0x2d8359=_0xc10628[_0x5cf9c0(0x6b)](_0x113a9f);if(!_0x2d8359)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2d8359[_0x5cf9c0(0x7c)]();}[_0x228979(0x70)](){const _0x158e99=_0x228979;var _0x3e8259;const _0x279016=this[_0x158e99(0x71)][_0x158e99(0x73)](_0x12e631),_0xfdc7f1=(_0x3e8259=this[_0x158e99(0x74)]())==null?void 0x0:_0x3e8259[_0x158e99(0x68)]();if(!_0xfdc7f1)throw new Error(_0x158e99(0x81));const _0x59d2ab=_0x279016['getLiveShareCoordinatorSync'](_0xfdc7f1);if(!_0x59d2ab)throw new Error(_0x158e99(0x77));_0x59d2ab[_0x158e99(0x75)]();}['stopPresenting'](){const _0x1002d9=_0x228979;var _0x5f32fc;const _0x47218=this['_injector'][_0x1002d9(0x73)](_0x12e631),_0x56d764=(_0x5f32fc=this[_0x1002d9(0x74)]())==null?void 0x0:_0x5f32fc[_0x1002d9(0x68)]();if(!_0x56d764)throw new Error(_0x1002d9(0x81));const _0x43aa41=_0x47218[_0x1002d9(0x6b)](_0x56d764);if(!_0x43aa41)throw new Error(_0x1002d9(0x77));_0x43aa41[_0x1002d9(0x7b)]();}}_0x70652f[_0x228979(0x7a)](m);class C extends _0x51b22f{get['LiveShareStatusEnum'](){return _0x4ad554;}}function _0x4b17(_0x28c5ec,_0x11b389){const _0x27d46a=_0x27d4();return _0x4b17=function(_0x4b179c,_0x10273e){_0x4b179c=_0x4b179c-0x66;let _0x1d362b=_0x27d46a[_0x4b179c];return _0x1d362b;},_0x4b17(_0x28c5ec,_0x11b389);}_0x51b22f[_0x228979(0x7a)](C);
1
+ const _0x35d540=_0x8ed9;function _0x8ed9(_0x18e553,_0x40c48c){const _0x45b37e=_0x45b3();return _0x8ed9=function(_0x8ed973,_0x5a1839){_0x8ed973=_0x8ed973-0x74;let _0x442873=_0x45b37e[_0x8ed973];return _0x442873;},_0x8ed9(_0x18e553,_0x40c48c);}(function(_0x3baa97,_0x230a0f){const _0x476629=_0x8ed9,_0x596a6a=_0x3baa97();while(!![]){try{const _0x5f3735=-parseInt(_0x476629(0x81))/0x1*(parseInt(_0x476629(0x8e))/0x2)+parseInt(_0x476629(0x8b))/0x3+-parseInt(_0x476629(0x80))/0x4*(parseInt(_0x476629(0x8a))/0x5)+-parseInt(_0x476629(0x74))/0x6*(-parseInt(_0x476629(0x86))/0x7)+-parseInt(_0x476629(0x85))/0x8+-parseInt(_0x476629(0x7b))/0x9+parseInt(_0x476629(0x78))/0xa;if(_0x5f3735===_0x230a0f)break;else _0x596a6a['push'](_0x596a6a['shift']());}catch(_0x511684){_0x596a6a['push'](_0x596a6a['shift']());}}}(_0x45b3,0xcab61));import{LiveShareController as _0x56f255,LiveShareStatus as _0x2d291f}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x19b6ba}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4c8332}from'@univerjs/sheets';function _0x45b3(){const _0x35a370=['getStatus','getActiveWorkbook','157566sPSDEQ','getId','_injector','No\x20active\x20workbook\x20found.','_initialize','PRESENTING','stopFollowing','66aSiJgO','getLiveShareCoordinatorSync','get','getActiveSheet','34356490OGavfO','executeCommand','getSheetId','8002665hBfmzV','startFollowing','syncExecuteCommand','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','4PBkpGP','1cXgPVO','startColumn','getUnitId','startRow','4959400MqBjkZ','17647zUuuAy','extend','getLiveShareStatus','_commandService','5739235qNQadL','307995UwCsPZ'];_0x45b3=function(){return _0x35a370;};return _0x45b3();}import{SetScrollOperation as _0x569b43}from'@univerjs/sheets-ui';import{FRange as _0x18699d}from'@univerjs/sheets/facade';import{FUniver as _0x54bc5e,FEnum as _0x50b179}from'@univerjs/core/facade';class I extends _0x18699d{[_0x35d540(0x92)](_0x32eb68,_0x3b3e60,_0x3b9778,_0x17a405,_0x3ab682){const _0xe000e6=_0x35d540,_0x59ad5c=_0x32eb68[_0xe000e6(0x76)](_0x56f255),_0x1a26d5=_0x32eb68['get'](_0x19b6ba),_0x237f4d=_0x3b3e60[_0xe000e6(0x83)](),_0x3eab62=_0x3b3e60[_0xe000e6(0x77)](),_0x1aa3d=_0x59ad5c['getLiveShareCoordinatorSync'](_0x237f4d);(_0x1aa3d==null?void 0x0:_0x1aa3d['getStatus']())!==_0x2d291f[_0xe000e6(0x93)]||(_0x3b9778[_0xe000e6(0x7a)]()!==_0x3eab62[_0xe000e6(0x7a)]()&&this[_0xe000e6(0x89)][_0xe000e6(0x79)](_0x4c8332['id'],{'unitId':_0x237f4d,'subUnitId':_0x3b9778[_0xe000e6(0x7a)]()}),!_0x1a26d5['getRenderById'](_0x237f4d))||_0x3ab682[_0xe000e6(0x7d)](_0x569b43['id'],{'unitId':_0x3b3e60[_0xe000e6(0x83)](),'sheetId':_0x3b9778[_0xe000e6(0x7a)](),'sheetViewStartRow':_0x17a405[_0xe000e6(0x84)],'sheetViewStartColumn':_0x17a405[_0xe000e6(0x82)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x18699d[_0x35d540(0x87)](I);class m extends _0x54bc5e{[_0x35d540(0x88)](){const _0x453c27=_0x35d540;var _0x565b0d,_0x40aafc;const _0x2c62c8=this[_0x453c27(0x90)]['get'](_0x56f255),_0x573131=(_0x565b0d=this[_0x453c27(0x8d)]())==null?void 0x0:_0x565b0d[_0x453c27(0x8f)]();if(!_0x573131)throw new Error(_0x453c27(0x91));const _0x44e31c=_0x2c62c8['getLiveShareCoordinatorSync'](_0x573131);return(_0x40aafc=_0x44e31c==null?void 0x0:_0x44e31c[_0x453c27(0x8c)]())!=null?_0x40aafc:_0x2d291f['IDLE'];}['startFollowing'](){const _0x1a8429=_0x35d540;var _0x137ffe;const _0x203ae0=this['_injector'][_0x1a8429(0x76)](_0x56f255),_0x2b04b2=(_0x137ffe=this[_0x1a8429(0x8d)]())==null?void 0x0:_0x137ffe[_0x1a8429(0x8f)]();if(!_0x2b04b2)throw new Error(_0x1a8429(0x91));const _0x1f9858=_0x203ae0[_0x1a8429(0x75)](_0x2b04b2);if(!_0x1f9858)throw new Error(_0x1a8429(0x7f));_0x1f9858[_0x1a8429(0x7c)]();}[_0x35d540(0x94)](){const _0x250e48=_0x35d540;var _0x2c6085;const _0x1d38fd=this[_0x250e48(0x90)][_0x250e48(0x76)](_0x56f255),_0x2f6536=(_0x2c6085=this[_0x250e48(0x8d)]())==null?void 0x0:_0x2c6085[_0x250e48(0x8f)]();if(!_0x2f6536)throw new Error('No\x20active\x20workbook\x20found.');const _0x537df3=_0x1d38fd[_0x250e48(0x75)](_0x2f6536);if(!_0x537df3)throw new Error(_0x250e48(0x7f));_0x537df3[_0x250e48(0x94)]();}['startPresenting'](){const _0x2329c6=_0x35d540;var _0x540ce1;const _0x5b17b0=this[_0x2329c6(0x90)][_0x2329c6(0x76)](_0x56f255),_0x259973=(_0x540ce1=this[_0x2329c6(0x8d)]())==null?void 0x0:_0x540ce1['getId']();if(!_0x259973)throw new Error('No\x20active\x20workbook\x20found.');const _0x13c037=_0x5b17b0[_0x2329c6(0x75)](_0x259973);if(!_0x13c037)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x13c037['tryStartPresenting']();}[_0x35d540(0x7e)](){const _0x3724ba=_0x35d540;var _0x57901f;const _0x8aa731=this[_0x3724ba(0x90)]['get'](_0x56f255),_0x5c5031=(_0x57901f=this[_0x3724ba(0x8d)]())==null?void 0x0:_0x57901f[_0x3724ba(0x8f)]();if(!_0x5c5031)throw new Error(_0x3724ba(0x91));const _0x650a5a=_0x8aa731[_0x3724ba(0x75)](_0x5c5031);if(!_0x650a5a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x650a5a[_0x3724ba(0x7e)]();}}_0x54bc5e[_0x35d540(0x87)](m);class C extends _0x50b179{get['LiveShareStatusEnum'](){return _0x2d291f;}}_0x50b179['extend'](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4b385e=_0x3816;(function(_0x4bac75,_0x5e62f2){const _0x277a18=_0x3816,_0x47bef8=_0x4bac75();while(!![]){try{const _0x102d05=-parseInt(_0x277a18(0xa8))/0x1*(parseInt(_0x277a18(0xf8))/0x2)+parseInt(_0x277a18(0xb2))/0x3+-parseInt(_0x277a18(0x9e))/0x4+parseInt(_0x277a18(0x74))/0x5*(-parseInt(_0x277a18(0x92))/0x6)+-parseInt(_0x277a18(0x94))/0x7+parseInt(_0x277a18(0xc3))/0x8+parseInt(_0x277a18(0x93))/0x9;if(_0x102d05===_0x5e62f2)break;else _0x47bef8['push'](_0x47bef8['shift']());}catch(_0x3ce130){_0x47bef8['push'](_0x47bef8['shift']());}}}(_0x3dcf,0xb51ef));var J=Object[_0x4b385e(0xef)],K=(_0xa8a3db,_0x5c660c,_0x21ebe7)=>_0x5c660c in _0xa8a3db?J(_0xa8a3db,_0x5c660c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21ebe7}):_0xa8a3db[_0x5c660c]=_0x21ebe7,u=(_0x5371b7,_0x73a5eb,_0x1b4416)=>K(_0x5371b7,typeof _0x73a5eb!=_0x4b385e(0xc9)?_0x73a5eb+'':_0x73a5eb,_0x1b4416);function _0x3dcf(){const _0x229e82=['executeCommand','FOLLOWING','disposeWithMe','univer-size-4','tag','_reporters','colorChannel1','type','find','1em','createInstance','forEach','end','status$','6YULNRE','16913538wxahpW','5248684LyFxGL','defs','data','onCommandExecuted','event$','NOT_FOLLOWING','_univerInstanceService','_collabSession','UNIVER_SHEET','dispose','2456044MnyNoK','from','length','current','evenodd','svg','pluginName','ONLINE','button','override','2RRUaZS','presenter','_config','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','idSuffix','getLiveShareCoordinator','attrs','idle','getTypeOfUnitDisposed$','_startLiveShareCoordinator','3353559kUnGEM','_injector','LIVESHARE_OPERATION','OPERATION','assign','substring','You\x27re\x20following\x20the\x20presenter','stringify','You\x27are\x20offline.','_entities','univerjs-icon\x20univerjs-icon-','http://www.w3.org/2000/svg','complete','params','_beIdle','_commandService','mask','2220176LoXtrF','LiveShareIcon','HEADER_MENU','url(#$1','_mountLiveShare','then','symbol','asObservable','random','Start','following','defIds','_presenter','add','_sharedOperations','string','registerInitialStateReporter','operations','getValue','_commandDisposable','replace','none','IDLE','_status','next','onStarting','onRendered','_init','offline','use','has','entries','xlink:href','PRESENTING','getTypeOfUnitAdded$','_stopPresenting','send','tryStartPresenting','_startPresenting','_liveShareService','div','_stopFollowing','_handleOnline','Stop\x20following','defineProperty','_handleNewChangeSets','LIVESHARE_TERMINATE','default','sessionStatus$','displayName','OFFLINE','getInitialStates','startFollowing','302002cyBlDP','NEW_CHANGESETS','_handleOffline','stopFollowing','registerSharedOperation','_status$','unsubscribe','registerComponent','_configService','presenting','_handleOperation','currentColor','not-following','dispose$','setConfig','getMemberID','UniverIcon','_startFollowing','LIVESHARE_REQUEST_HOST','0\x200\x2017\x2017','Present\x20this\x20document','Stop\x20presenting','_fetchOperations','getUnitId','_handleNewHost','memberID','UNIVER_LIVE_SHARE_PLUGIN','values','text','_uiPartsService','map','reverse','live-share-icon','4334805SdMhJr','init','pipe','children','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_unitID','getOwnPropertyDescriptor','path','delete','live-share.config','getConfig','You\x27re\x20not\x20following\x20the\x20presenter','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','subscribe','SAME_OPERATION_SHARE_INTERVAL','get'];_0x3dcf=function(){return _0x229e82;};return _0x3dcf();}import{Disposable as _0x55b9aa,toDisposable as _0x1f42e7,IUniverInstanceService as _0x2f6fb5,Inject as _0x560870,Injector as _0x31eff1,IConfigService as _0x290f96,ICommandService as _0x496629,RxDisposable as _0x55a73f,UniverInstanceType as _0x2d5db4,DisposableCollection as _0xa3999d,CommandType as _0x13d715,DependentOn as _0x2ae8e8,Plugin as _0x91b81e,merge as _0x473004,registerDependencies as _0x489867,mergeOverrideWithDependencies as _0x55fb95,touchDependencies as _0x20f240}from'@univerjs/core';import{useDependency as _0x1f8dd1,useObservable as _0x20a2e6,IUIPartsService as _0x23c3f9,BuiltInUIPart as _0x5934f6,connectInjector as _0x307cfd}from'@univerjs/ui';import{jsx as _0x438293,jsxs as _0x586af0,Fragment as _0x2f0f25}from'react/jsx-runtime';import{Dropdown as _0x51a47b,clsx as _0x40c4f6,Button as _0x42e7b4}from'@univerjs/design';import{useRef as _0x2ba9a6,createElement as _0xc48b3e,forwardRef as _0x3fd9ee,useState as _0x5cf7d9,useEffect as _0x588a86}from'react';import{CollaborationEvent as _0x5a2308,parseProtocolChangeset as _0x4e55cd}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x909e59,SessionStatus as _0x166cc9,UniverCollaborationClientPlugin as _0xff5435}from'@univerjs-pro/collaboration-client';function _0x3816(_0x4e4af1,_0x432e3f){const _0x3dcfcb=_0x3dcf();return _0x3816=function(_0x38160d,_0x33b89d){_0x38160d=_0x38160d-0x70;let _0x5c7349=_0x3dcfcb[_0x38160d];return _0x5c7349;},_0x3816(_0x4e4af1,_0x432e3f);}import{InsertSheetMutation as _0x42d2fb,SetWorksheetActiveOperation as _0x441168}from'@univerjs/sheets';import{BehaviorSubject as _0x5a3aa7,Subject as _0x696cda}from'rxjs';import{takeUntil as _0x2032e2,throttleTime as _0x2d0a05}from'rxjs/operators';import{SetZoomRatioOperation as _0x1fce62,SetScrollOperation as _0x3ab047}from'@univerjs/sheets-ui';function k({ref:_0x272b0d,..._0x155a92}){const _0x2faf5d=_0x4b385e,{icon:_0x7ee335,id:_0x12d0d9,className:_0x296ed0,extend:_0xd0b3c5,..._0x56a117}=_0x155a92,_0x5f4e33=(_0x2faf5d(0xbc)+_0x12d0d9+'\x20'+(_0x296ed0||''))['trim'](),_0x539c8c=_0x2ba9a6('_'+Oe());return G(_0x7ee335,''+_0x12d0d9,{'defIds':_0x7ee335[_0x2faf5d(0xce)],'idSuffix':_0x539c8c[_0x2faf5d(0xa1)]},{'ref':_0x272b0d,'className':_0x5f4e33,..._0x56a117},_0xd0b3c5);}function G(_0x4619ba,_0x531b1f,_0x16468c,_0x4d5f13,_0x23e4fe){const _0x263685=_0x4b385e;return _0xc48b3e(_0x4619ba[_0x263685(0x88)],{'key':_0x531b1f,...be(_0x4619ba,_0x16468c,_0x23e4fe),..._0x4d5f13},(Ee(_0x4619ba,_0x16468c)[_0x263685(0x77)]||[])[_0x263685(0x71)]((_0x2b58af,_0x9f8873)=>G(_0x2b58af,_0x531b1f+'-'+_0x4619ba[_0x263685(0x88)]+'-'+_0x9f8873,_0x16468c,void 0x0,_0x23e4fe)));}function be(_0x2072d2,_0x2b9087,_0x6916a2){const _0x262e7d=_0x4b385e,_0x393959={..._0x2072d2[_0x262e7d(0xae)]};_0x6916a2!=null&&_0x6916a2[_0x262e7d(0x8a)]&&_0x393959['fill']===_0x262e7d(0x8a)&&(_0x393959['fill']=_0x6916a2[_0x262e7d(0x8a)]),_0x2072d2[_0x262e7d(0x88)]===_0x262e7d(0xc2)&&_0x393959['id']&&(_0x393959['id']=_0x393959['id']+_0x2b9087[_0x262e7d(0xac)]),Object[_0x262e7d(0xe2)](_0x393959)[_0x262e7d(0x8f)](([_0x4e6a69,_0x4eb3a3])=>{const _0x47613c=_0x262e7d;_0x4e6a69===_0x47613c(0xc2)&&typeof _0x4eb3a3==_0x47613c(0xd2)&&(_0x393959[_0x4e6a69]=_0x4eb3a3[_0x47613c(0xd7)](/url\(#(.*)\)/,_0x47613c(0xc6)+_0x2b9087[_0x47613c(0xac)]+')'));});const {defIds:_0x53995a}=_0x2b9087;return!_0x53995a||_0x53995a['length']===0x0||(_0x2072d2[_0x262e7d(0x88)]===_0x262e7d(0xe0)&&_0x393959[_0x262e7d(0xe3)]&&(_0x393959[_0x262e7d(0xe3)]=_0x393959[_0x262e7d(0xe3)]+_0x2b9087[_0x262e7d(0xac)]),Object[_0x262e7d(0xe2)](_0x393959)[_0x262e7d(0x8f)](([_0x360e36,_0x2a8b39])=>{const _0x54f85b=_0x262e7d;typeof _0x2a8b39==_0x54f85b(0xd2)&&(_0x393959[_0x360e36]=_0x2a8b39[_0x54f85b(0xd7)](/url\(#(.*)\)/,_0x54f85b(0xc6)+_0x2b9087[_0x54f85b(0xac)]+')'));})),_0x393959;}function Ee(_0x413a65,_0x54fff5){const _0x19dfec=_0x4b385e;var _0x2e8f7a;const {defIds:_0x48ac0d}=_0x54fff5;return!_0x48ac0d||_0x48ac0d[_0x19dfec(0xa0)]===0x0?_0x413a65:_0x413a65[_0x19dfec(0x88)]===_0x19dfec(0x95)&&((_0x2e8f7a=_0x413a65[_0x19dfec(0x77)])!=null&&_0x2e8f7a['length'])?{..._0x413a65,'children':_0x413a65[_0x19dfec(0x77)][_0x19dfec(0x71)](_0x4bcfed=>typeof _0x4bcfed[_0x19dfec(0xae)]['id']==_0x19dfec(0xd2)&&_0x48ac0d&&_0x48ac0d['includes'](_0x4bcfed[_0x19dfec(0xae)]['id'])?{..._0x4bcfed,'attrs':{..._0x4bcfed[_0x19dfec(0xae)],'id':_0x4bcfed[_0x19dfec(0xae)]['id']+_0x54fff5['idSuffix']}}:_0x4bcfed)}:_0x413a65;}function Oe(){const _0x302ce9=_0x4b385e;return Math[_0x302ce9(0xcb)]()['toString'](0x24)[_0x302ce9(0xb7)](0x2,0x8);}k[_0x4b385e(0xf4)]=_0x4b385e(0x108);const we={'tag':_0x4b385e(0xa3),'attrs':{'xmlns':_0x4b385e(0xbd),'fill':_0x4b385e(0xd8),'viewBox':_0x4b385e(0x10b),'width':_0x4b385e(0x8d),'height':_0x4b385e(0x8d)},'children':[{'tag':'path','attrs':{'fill':_0x4b385e(0x103),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x4b385e(0x7b),'attrs':{'fill':'currentColor','d':_0x4b385e(0xab),'fillRule':_0x4b385e(0xa2),'clipRule':_0x4b385e(0xa2)}}]},W=_0x3fd9ee(function(_0x539275,_0xd32d19){const _0x5dd266=_0x4b385e;return _0xc48b3e(k,Object[_0x5dd266(0xb6)]({},_0x539275,{'id':_0x5dd266(0x73),'ref':_0xd32d19,'icon':we}));});W['displayName']=_0x4b385e(0xc4);class L extends _0x55b9aa{constructor(){const _0x299752=_0x4b385e;super(...arguments),u(this,_0x299752(0xd1),new Set()),u(this,_0x299752(0x89),new Set());}[_0x4b385e(0xfc)](_0x257061){const _0xa32498=_0x4b385e;return this[_0xa32498(0xd1)]['add'](_0x257061),_0x1f42e7(()=>this[_0xa32498(0xd1)][_0xa32498(0x7c)](_0x257061));}[_0x4b385e(0xd3)](_0x442100){const _0x104f14=_0x4b385e;return this[_0x104f14(0x89)][_0x104f14(0xd0)](_0x442100),_0x1f42e7(()=>this[_0x104f14(0x89)]['delete'](_0x442100));}['shouldShareOperation'](_0x2aef0f){const _0x122227=_0x4b385e;return this['_sharedOperations'][_0x122227(0xe1)](_0x2aef0f);}[_0x4b385e(0xf6)](_0x1d18b6){const _0x262da1=_0x4b385e;return Array[_0x262da1(0x9f)](this['_reporters'])[_0x262da1(0x71)](_0x267c42=>_0x267c42(_0x1d18b6));}}var Ne=Object[_0x4b385e(0x7a)],Y=(_0x1045b7,_0x516c55,_0xfe6300,_0x188b95)=>{const _0x1e8419=_0x4b385e;for(var _0x28d3f2=_0x188b95>0x1?void 0x0:_0x188b95?Ne(_0x516c55,_0xfe6300):_0x516c55,_0x4f6f22=_0x1045b7[_0x1e8419(0xa0)]-0x1,_0x3d5ba7;_0x4f6f22>=0x0;_0x4f6f22--)(_0x3d5ba7=_0x1045b7[_0x4f6f22])&&(_0x28d3f2=_0x3d5ba7(_0x28d3f2)||_0x28d3f2);return _0x28d3f2;},_=(_0x40a91b,_0xe6cb75)=>(_0x44b00f,_0x337321)=>_0xe6cb75(_0x44b00f,_0x337321,_0x40a91b);let S=class extends _0x55a73f{constructor(_0x2ab905,_0x4b236b,_0x2b2c0a){const _0x49a220=_0x4b385e;super(),u(this,_0x49a220(0xbb),new Map()),(this[_0x49a220(0x9a)]=_0x2ab905,this[_0x49a220(0xb3)]=_0x4b236b,this['_collabSessionService']=_0x2b2c0a,this[_0x49a220(0xde)]());}async[_0x4b385e(0xad)](_0x5ef093){const _0x44c690=_0x4b385e;return this[_0x44c690(0xbb)][_0x44c690(0xe1)](_0x5ef093)||await this[_0x44c690(0xb1)](_0x5ef093),this[_0x44c690(0xbb)][_0x44c690(0x83)](_0x5ef093);}['getLiveShareCoordinatorSync'](_0x574fa5){const _0x48403e=_0x4b385e;var _0x1647fb;return(_0x1647fb=this['_entities'][_0x48403e(0x83)](_0x574fa5))!=null?_0x1647fb:null;}[_0x4b385e(0xde)](){const _0xe22945=_0x4b385e;this[_0xe22945(0x9a)][_0xe22945(0xe5)](_0x2d5db4[_0xe22945(0x9c)])[_0xe22945(0x76)](_0x2032e2(this[_0xe22945(0x105)]))[_0xe22945(0x81)](async _0x4a24e6=>{const _0x580ccd=_0xe22945,_0x58762b=_0x4a24e6[_0x580ccd(0x10f)]();this['_entities'][_0x580ccd(0xe1)](_0x58762b)||this[_0x580ccd(0xb1)](_0x58762b);}),this[_0xe22945(0x9a)][_0xe22945(0xb0)](_0x2d5db4[_0xe22945(0x9c)])[_0xe22945(0x76)](_0x2032e2(this['dispose$']))[_0xe22945(0x81)](_0x3a1e53=>{const _0x2a628d=_0xe22945,_0x36c05b=_0x3a1e53['getUnitId'](),_0x4c0cb9=this[_0x2a628d(0xbb)][_0x2a628d(0x83)](_0x36c05b);_0x4c0cb9==null||_0x4c0cb9[_0x2a628d(0x9d)]();});}async[_0x4b385e(0xb1)](_0x3bed00){const _0xdb9f00=_0x4b385e,_0x20758c=await this['_collabSessionService']['requireSession'](_0x3bed00),_0x20223b=this[_0xdb9f00(0xb3)][_0xdb9f00(0x8e)](N,_0x3bed00,_0x20758c);return _0x20223b[_0xdb9f00(0x75)](),this[_0xdb9f00(0xbb)]['set'](_0x3bed00,_0x20223b),_0x20223b;}};S=Y([_(0x0,_0x2f6fb5),_(0x1,_0x560870(_0x31eff1)),_(0x2,_0x560870(_0x909e59))],S);var c=(_0x78e18=>(_0x78e18[_0x4b385e(0xf5)]='offline',_0x78e18[_0x4b385e(0xd9)]=_0x4b385e(0xaf),_0x78e18['FOLLOWING']=_0x4b385e(0xcd),_0x78e18['NOT_FOLLOWING']='not-following',_0x78e18['PRESENTING']='presenting',_0x78e18))(c||{});const Ce=_0x4b385e(0x82),De=0xc8;let N=class extends _0x55a73f{constructor(_0x64e6d1,_0x58b685,_0x20ce38,_0x2068f5,_0x3c8fad){const _0x5172ba=_0x4b385e;super(),u(this,_0x5172ba(0xfd),new _0x5a3aa7(_0x5172ba(0xaf))),u(this,_0x5172ba(0x91),this['_status$'][_0x5172ba(0xca)]()),u(this,'_init',!0x1),u(this,_0x5172ba(0xd6),null),u(this,_0x5172ba(0xcf),null),(this['_unitID']=_0x64e6d1,this[_0x5172ba(0x9b)]=_0x58b685,this['_configService']=_0x20ce38,this[_0x5172ba(0xea)]=_0x2068f5,this['_commandService']=_0x3c8fad);}get[_0x4b385e(0xda)](){const _0x4f0b24=_0x4b385e;return this['_status$'][_0x4f0b24(0xd5)]();}[_0x4b385e(0x9d)](){const _0x1902cd=_0x4b385e;var _0x3a834a;(_0x3a834a=this[_0x1902cd(0xd6)])==null||_0x3a834a[_0x1902cd(0x9d)](),this[_0x1902cd(0xfd)]['next'](_0x1902cd(0xaf)),this[_0x1902cd(0xfd)][_0x1902cd(0xbe)]();}['getStatus'](){const _0x4ac7a6=_0x4b385e;return this[_0x4ac7a6(0xda)];}[_0x4b385e(0x75)](){const _0x426d40=_0x4b385e;this[_0x426d40(0xde)]||(this[_0x426d40(0xde)]=!0x0,this[_0x426d40(0x9b)][_0x426d40(0xf3)][_0x426d40(0x76)](_0x2032e2(this[_0x426d40(0x105)]))['subscribe'](_0x1e1d53=>{const _0x4f25ed=_0x426d40;switch(_0x1e1d53){case _0x166cc9['OFFLINE']:this[_0x4f25ed(0xfa)]();break;case _0x166cc9[_0x4f25ed(0xa5)]:this['_handleOnline']();break;}}),this[_0x426d40(0x9b)][_0x426d40(0x98)]['pipe'](_0x2032e2(this[_0x426d40(0x105)]))['subscribe'](_0xa7b508=>{const _0x16f3cf=_0x426d40,{eventID:_0x12c00f}=_0xa7b508;switch(_0x12c00f){case _0x5a2308['LIVESHARE_NEW_HOST']:this[_0x16f3cf(0x110)](_0xa7b508);break;case _0x5a2308[_0x16f3cf(0xb4)]:this[_0x16f3cf(0x102)](_0xa7b508);break;case _0x5a2308['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x5a2308[_0x16f3cf(0xf9)]:this[_0x16f3cf(0xf0)](_0xa7b508);break;}}));}['tryStartPresenting'](){const _0x12a5ff=_0x4b385e;this[_0x12a5ff(0x9b)][_0x12a5ff(0xe7)]({'eventID':_0x5a2308[_0x12a5ff(0x10a)],'data':{'unitID':this[_0x12a5ff(0x79)],'userID':this['_collabSession'][_0x12a5ff(0x107)]()}},this[_0x12a5ff(0x79)]);}['stopPresenting'](){const _0x4583fa=_0x4b385e;this[_0x4583fa(0xda)]==='presenting'&&(this['_status$'][_0x4583fa(0xdb)]('idle'),this[_0x4583fa(0x9b)][_0x4583fa(0xe7)]({'eventID':_0x5a2308[_0x4583fa(0xf1)],'data':{'unitID':this[_0x4583fa(0x79)]}},this[_0x4583fa(0x79)]));}['startFollowing'](){const _0x3fa5c3=_0x4b385e;this[_0x3fa5c3(0xda)]==='not-following'&&(this[_0x3fa5c3(0xfd)]['next']('following'),this[_0x3fa5c3(0x109)]());}[_0x4b385e(0xfb)](){const _0x49e43a=_0x4b385e;this['_status']===_0x49e43a(0xcd)&&this[_0x49e43a(0xec)]();}['_handleNewHost'](_0x481686){const _0x161725=_0x4b385e,{presenter:_0x3d10b8}=_0x481686[_0x161725(0x96)],_0xe22f0e=this[_0x161725(0x9b)][_0x161725(0x107)]();this[_0x161725(0xcf)]=_0x3d10b8,_0x3d10b8===_0xe22f0e?(this[_0x161725(0xec)](),this['_startPresenting']()):this[_0x161725(0xda)]!==_0x161725(0x104)&&(this[_0x161725(0xe6)](),this[_0x161725(0x109)]());}[_0x4b385e(0x10e)](){const _0x57cd14=_0x4b385e,_0x26bd8d={'eventID':_0x5a2308['LIVESHARE_FETCH_OPERATIONS']};this[_0x57cd14(0x9b)][_0x57cd14(0xe7)](_0x26bd8d,this['_unitID']);}['_handleTerminate'](){const _0x2d59b6=_0x4b385e;this[_0x2d59b6(0xcf)]=null,this[_0x2d59b6(0xda)]!==_0x2d59b6(0x101)&&this['_beIdle']();}[_0x4b385e(0xf0)](_0x34ac50){const _0x4ab20e=_0x4b385e;if(this['_status']===_0x4ab20e(0xcd)&&this[_0x4ab20e(0xcf)]===_0x34ac50[_0x4ab20e(0x96)][_0x4ab20e(0x111)]){const _0x32f8cb=_0x4e55cd(_0x34ac50[_0x4ab20e(0x96)])['mutations'][_0x4ab20e(0x72)]()[_0x4ab20e(0x8c)](_0x41e2e6=>_0x41e2e6['id']===_0x42d2fb['id']);if(_0x32f8cb){const _0x24a186=_0x32f8cb['params']['unitId'],_0x4b9aeb=_0x32f8cb[_0x4ab20e(0xbf)]['sheet']['id'];setTimeout(()=>{const _0x2ba811=_0x4ab20e;this[_0x2ba811(0xc1)]['executeCommand'](_0x441168['id'],{'unitId':_0x24a186,'subUnitId':_0x4b9aeb},{'fromCollab':!0x0});});}}}[_0x4b385e(0xe9)](){const _0x2fb4b8=_0x4b385e;this[_0x2fb4b8(0xfd)][_0x2fb4b8(0xdb)]('presenting');const _0x3d74b3=new Map(),_0xdc8b26=this['_commandDisposable']=new _0xa3999d();_0xdc8b26['add'](_0x1f42e7(()=>{const _0x5ec687=_0x2fb4b8;_0x3d74b3['forEach'](_0x402ced=>_0x402ced[_0x5ec687(0xbe)]()),_0x3d74b3['clear']();})),_0xdc8b26[_0x2fb4b8(0xd0)](this[_0x2fb4b8(0xc1)][_0x2fb4b8(0x97)](_0x198a21=>{const _0x4b07cc=_0x2fb4b8;var _0x3ca204;if(_0x198a21[_0x4b07cc(0x8b)]!==_0x13d715[_0x4b07cc(0xb5)]||!this['_liveShareService']['shouldShareOperation'](_0x198a21['id']))return;const {id:_0x35ee91}=_0x198a21;let _0x16f654;_0x3d74b3[_0x4b07cc(0xe1)](_0x35ee91)?_0x16f654=_0x3d74b3[_0x4b07cc(0x83)](_0x35ee91):(_0x16f654=new _0x696cda(),_0x3d74b3['set'](_0x35ee91,_0x16f654),_0x16f654[_0x4b07cc(0x76)](_0x2d0a05((_0x3ca204=this[_0x4b07cc(0x100)][_0x4b07cc(0x7e)](Ce))!=null?_0x3ca204:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b07cc(0x81)](_0x189a51=>{const _0x59060e=_0x4b07cc;this[_0x59060e(0x9b)]['send']({'eventID':_0x5a2308[_0x59060e(0xb4)],'data':{'unitID':this['_unitID'],'operations':{[_0x189a51['id']]:{'id':_0x189a51['id'],'params':JSON['stringify'](_0x189a51[_0x59060e(0xbf)])}}}},this[_0x59060e(0x79)]);})),_0x16f654[_0x4b07cc(0xdb)](_0x198a21);})),this['_liveShareService'][_0x2fb4b8(0xf6)](this[_0x2fb4b8(0x79)])['forEach'](_0x290468=>this[_0x2fb4b8(0x9b)][_0x2fb4b8(0xe7)]({'eventID':_0x5a2308['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2fb4b8(0x79)],'operations':{[_0x290468['id']]:{'id':_0x290468['id'],'params':JSON[_0x2fb4b8(0xb9)](_0x290468['params'])}}}},this[_0x2fb4b8(0x79)]));}[_0x4b385e(0xe6)](){const _0x5438d8=_0x4b385e;var _0x26072f;this[_0x5438d8(0xfd)]['next']('idle'),(_0x26072f=this[_0x5438d8(0xd6)])==null||_0x26072f['dispose'](),this[_0x5438d8(0xd6)]=null;}[_0x4b385e(0x109)](){const _0x199f54=_0x4b385e;var _0x578e83;(_0x578e83=this[_0x199f54(0xd6)])==null||_0x578e83['dispose'](),this[_0x199f54(0xfd)][_0x199f54(0xdb)]('following');}[_0x4b385e(0xc0)](){const _0x27616d=_0x4b385e;var _0x18eaeb;this['_status$'][_0x27616d(0xdb)](_0x27616d(0xaf)),(_0x18eaeb=this[_0x27616d(0xd6)])==null||_0x18eaeb[_0x27616d(0x9d)](),this[_0x27616d(0xd6)]=null;}[_0x4b385e(0xec)](){const _0x5eb6bd=_0x4b385e;var _0x3922f5;this['_status$']['next']('not-following'),(_0x3922f5=this[_0x5eb6bd(0xd6)])==null||_0x3922f5[_0x5eb6bd(0x9d)]();}[_0x4b385e(0x102)](_0x2e4fbe){const _0x34b1b3=_0x4b385e;if([_0x34b1b3(0x101),_0x34b1b3(0x104),_0x34b1b3(0xdf)]['includes'](this[_0x34b1b3(0xda)])||!_0x2e4fbe['data'][_0x34b1b3(0xa9)]||_0x2e4fbe['data']['presenter']===this[_0x34b1b3(0x9b)][_0x34b1b3(0x107)]())return;this[_0x34b1b3(0xda)]===_0x34b1b3(0xaf)&&this['_startFollowing']();const _0x140e4c=_0x2e4fbe['data'][_0x34b1b3(0xd4)];Object[_0x34b1b3(0x113)](_0x140e4c)[_0x34b1b3(0x8f)](_0x23a6e2=>{const _0x5a04b2=_0x34b1b3;this[_0x5a04b2(0xc1)][_0x5a04b2(0x84)](_0x23a6e2['id'],_0x23a6e2['params']?JSON['parse'](_0x23a6e2[_0x5a04b2(0xbf)]):null,{'fromCollab':!0x0});});}[_0x4b385e(0xfa)](){const _0x4bd34b=_0x4b385e;var _0x5a20fd;this[_0x4bd34b(0xfd)]['next'](_0x4bd34b(0xdf)),(_0x5a20fd=this[_0x4bd34b(0xd6)])==null||_0x5a20fd[_0x4bd34b(0x9d)]();}[_0x4b385e(0xed)](){const _0x2936b5=_0x4b385e;this[_0x2936b5(0xfd)][_0x2936b5(0xdb)](_0x2936b5(0xaf)),this[_0x2936b5(0x10e)]();}};N=Y([_(0x2,_0x290f96),_(0x3,_0x560870(L)),_(0x4,_0x496629)],N);function Le(){const _0x392b48=_0x4b385e,_0x2c8069=_0x1f8dd1(S),_0x3f35bd=_0x1f8dd1(_0x2f6fb5),_0x360ba9=_0x20a2e6(()=>_0x3f35bd['getCurrentTypeOfUnit$'](_0x2d5db4['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5df032,_0x42ec6a]=_0x5cf7d9(null),[_0x4327b2,_0x5e0ce7]=_0x5cf7d9(c[_0x392b48(0xd9)]),_0x3f3679=_0x2ba9a6(null);return _0x588a86(()=>(_0x360ba9&&_0x2c8069['getLiveShareCoordinator'](_0x360ba9['getUnitId']())[_0x392b48(0xc8)](_0x4efdd2=>{const _0xd79514=_0x392b48;_0x42ec6a(_0x4efdd2),_0x3f3679[_0xd79514(0xa1)]=_0x4efdd2[_0xd79514(0x91)][_0xd79514(0x81)](_0x9c5bab=>{_0x5e0ce7(_0x9c5bab);});}),()=>{const _0x40297e=_0x392b48;var _0x508a49;(_0x508a49=_0x3f3679['current'])==null||_0x508a49[_0x40297e(0xfe)](),_0x3f3679['current']=null;}),[_0x360ba9,_0x2c8069]),_0x5df032?_0x438293(_0x51a47b,{'align':_0x392b48(0x90),'disabled':_0x4327b2===c[_0x392b48(0xf5)],'className':_0x392b48(0x80),'overlay':_0x438293(Re,{'status':_0x4327b2,'coordinator':_0x5df032}),'children':_0x438293(_0x392b48(0xa6),{'className':_0x40c4f6(_0x392b48(0x78),{'univer-cursor-not-allowed':_0x4327b2===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4327b2!==c[_0x392b48(0xf5)]}),'type':'button','children':_0x438293(W,{'className':_0x392b48(0x87)})})}):null;}function Re(_0x56069f){const _0x3b13fe=_0x4b385e,{status:_0x3c360c,coordinator:_0x113ead}=_0x56069f;switch(_0x3c360c){case c['IDLE']:return _0x438293($e,{'coordinator':_0x113ead});case c[_0x3b13fe(0x85)]:return _0x438293(xe,{'coordinator':_0x113ead});case c[_0x3b13fe(0x99)]:return _0x438293(Pe,{'coordinator':_0x113ead});case c[_0x3b13fe(0xf5)]:return _0x438293(Te,{});case c[_0x3b13fe(0xe4)]:return _0x438293(Ae,{'coordinator':_0x113ead});default:return null;}}function $e(_0x3234f0){const _0x55860c=_0x4b385e,{coordinator:_0x3c0238}=_0x3234f0;return _0x586af0(_0x2f0f25,{'children':[_0x438293(_0x55860c(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x55860c(0x10c)}),_0x438293(_0x42e7b4,{'onClick':()=>_0x3c0238[_0x55860c(0xe8)](),'children':_0x55860c(0xcc)})]});}function xe(_0x1d1a22){const _0x6f1b28=_0x4b385e,{coordinator:_0x590b67}=_0x1d1a22;return _0x586af0(_0x2f0f25,{'children':[_0x438293(_0x6f1b28(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x6f1b28(0xb8)}),_0x438293(_0x42e7b4,{'onClick':()=>_0x590b67[_0x6f1b28(0xfb)](),'children':_0x6f1b28(0xee)})]});}function Pe(_0x6a3975){const _0x3e67f3=_0x4b385e,{coordinator:_0xb85e35}=_0x6a3975;return _0x586af0(_0x2f0f25,{'children':[_0x438293(_0x3e67f3(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3e67f3(0x7f)}),_0x438293(_0x42e7b4,{'variant':_0x3e67f3(0x114),'onClick':()=>_0xb85e35[_0x3e67f3(0xf7)](),'children':'Start\x20following'})]});}function Ae(_0x1713ee){const _0x1e07cb=_0x4b385e,{coordinator:_0x46edb9}=_0x1713ee;return _0x586af0(_0x2f0f25,{'children':[_0x438293(_0x1e07cb(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x438293(_0x42e7b4,{'variant':_0x1e07cb(0xf2),'onClick':()=>_0x46edb9['stopPresenting'](),'children':_0x1e07cb(0x10d)})]});}function Te(){const _0x50ed92=_0x4b385e;return _0x438293(_0x2f0f25,{'children':_0x50ed92(0xba)});}var Fe=Object[_0x4b385e(0x7a)],He=(_0x14fcb0,_0x392abc,_0x26892a,_0x144901)=>{for(var _0x30f053=_0x144901>0x1?void 0x0:_0x144901?Fe(_0x392abc,_0x26892a):_0x392abc,_0x6b2080=_0x14fcb0['length']-0x1,_0x5f4059;_0x6b2080>=0x0;_0x6b2080--)(_0x5f4059=_0x14fcb0[_0x6b2080])&&(_0x30f053=_0x5f4059(_0x30f053)||_0x30f053);return _0x30f053;},A=(_0x2715d9,_0x10ef9b)=>(_0x236300,_0xc43959)=>_0x10ef9b(_0x236300,_0xc43959,_0x2715d9);let m=class extends _0x55b9aa{constructor(_0x432d96,_0x35a6aa){const _0x165e49=_0x4b385e;super(),this[_0x165e49(0xb3)]=_0x432d96,this['_uiPartsService']=_0x35a6aa,this[_0x165e49(0xc7)]();}[_0x4b385e(0xc7)](){const _0x174faf=_0x4b385e;this[_0x174faf(0x86)](this[_0x174faf(0x70)][_0x174faf(0xff)](_0x5934f6[_0x174faf(0xc5)],()=>_0x307cfd(Le,this[_0x174faf(0xb3)])));}};m=He([A(0x0,_0x560870(_0x31eff1)),A(0x1,_0x23c3f9)],m);const ye=_0x4b385e(0x7d),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x1c5d8c,_0x4bf762,_0x28e88c,_0x4f186a)=>{const _0x219385=_0x4b385e;for(var _0x496e28=_0x4f186a>0x1?void 0x0:_0x4f186a?Ue(_0x4bf762,_0x28e88c):_0x4bf762,_0x261c52=_0x1c5d8c[_0x219385(0xa0)]-0x1,_0x37a327;_0x261c52>=0x0;_0x261c52--)(_0x37a327=_0x1c5d8c[_0x261c52])&&(_0x496e28=_0x37a327(_0x496e28)||_0x496e28);return _0x496e28;},je=(_0x4a2875,_0x1c3b46)=>(_0x1c4557,_0x4cc21a)=>_0x1c3b46(_0x1c4557,_0x4cc21a,_0x4a2875);let I=class extends _0x55b9aa{constructor(_0x298300){const _0x3be550=_0x4b385e;super(),this['_liveShareService']=_0x298300,this[_0x3be550(0xde)]();}[_0x4b385e(0xde)](){const _0xb8165f=_0x4b385e;[_0x1fce62['id'],_0x3ab047['id'],_0x441168['id']][_0xb8165f(0x8f)](_0xc8eb5b=>{const _0x516cc2=_0xb8165f;this['disposeWithMe'](this[_0x516cc2(0xea)][_0x516cc2(0xfc)](_0xc8eb5b));});}};I=Ve([je(0x0,_0x560870(L))],I);var Me=Object[_0x4b385e(0xef)],ke=Object[_0x4b385e(0x7a)],Ge=(_0x2b47be,_0x57d4ac,_0xa2a60e)=>_0x57d4ac in _0x2b47be?Me(_0x2b47be,_0x57d4ac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa2a60e}):_0x2b47be[_0x57d4ac]=_0xa2a60e,We=(_0x5d5e61,_0x42573a,_0x5dce0c,_0x232e34)=>{const _0x62af58=_0x4b385e;for(var _0x38c172=_0x232e34>0x1?void 0x0:_0x232e34?ke(_0x42573a,_0x5dce0c):_0x42573a,_0x25381f=_0x5d5e61[_0x62af58(0xa0)]-0x1,_0x19b427;_0x25381f>=0x0;_0x25381f--)(_0x19b427=_0x5d5e61[_0x25381f])&&(_0x38c172=_0x19b427(_0x38c172)||_0x38c172);return _0x38c172;},F=(_0x5de875,_0x13171b)=>(_0x2b8e28,_0x1e158a)=>_0x13171b(_0x2b8e28,_0x1e158a,_0x5de875),B=(_0x22c666,_0x389fa4,_0x5ee340)=>Ge(_0x22c666,typeof _0x389fa4!=_0x4b385e(0xc9)?_0x389fa4+'':_0x389fa4,_0x5ee340);const Ye=_0x4b385e(0x112);let b=class extends _0x91b81e{constructor(_0x5a9ef2=T,_0x54d532,_0x55fd9d){const _0x757270=_0x4b385e;super(),this[_0x757270(0xaa)]=_0x5a9ef2,this[_0x757270(0xb3)]=_0x54d532,this[_0x757270(0x100)]=_0x55fd9d;const {..._0x316d5f}=_0x473004({},T,this[_0x757270(0xaa)]);this[_0x757270(0x100)][_0x757270(0x106)](ye,_0x316d5f);}[_0x4b385e(0xdc)](){const _0x569425=_0x4b385e;_0x489867(this[_0x569425(0xb3)],_0x55fb95([[L],[S],[I],[m]],this['_config'][_0x569425(0xa7)])),_0x20f240(this[_0x569425(0xb3)],[[I]]);}[_0x4b385e(0xdd)](){_0x20f240(this['_injector'],[[m]]);}};B(b,_0x4b385e(0x8b),_0x2d5db4['UNIVER_UNKNOWN']),B(b,_0x4b385e(0xa4),Ye),b=We([_0x2ae8e8(_0xff5435),F(0x1,_0x560870(_0x31eff1)),F(0x2,_0x290f96)],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 _0x1ff471=_0x7fae;(function(_0x67af08,_0x235412){const _0x359b7c=_0x7fae,_0x47dddf=_0x67af08();while(!![]){try{const _0x30b74c=-parseInt(_0x359b7c(0x23b))/0x1*(-parseInt(_0x359b7c(0x209))/0x2)+-parseInt(_0x359b7c(0x1c2))/0x3*(parseInt(_0x359b7c(0x1d9))/0x4)+parseInt(_0x359b7c(0x248))/0x5*(-parseInt(_0x359b7c(0x1cc))/0x6)+parseInt(_0x359b7c(0x20b))/0x7+-parseInt(_0x359b7c(0x21b))/0x8+-parseInt(_0x359b7c(0x1dd))/0x9+parseInt(_0x359b7c(0x1e9))/0xa;if(_0x30b74c===_0x235412)break;else _0x47dddf['push'](_0x47dddf['shift']());}catch(_0x41425f){_0x47dddf['push'](_0x47dddf['shift']());}}}(_0x5570,0xb8c28));var J=Object[_0x1ff471(0x240)],K=(_0x2bd2c8,_0x35c835,_0x534633)=>_0x35c835 in _0x2bd2c8?J(_0x2bd2c8,_0x35c835,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x534633}):_0x2bd2c8[_0x35c835]=_0x534633,u=(_0x48cfe1,_0xde295,_0x4bdd67)=>K(_0x48cfe1,typeof _0xde295!=_0x1ff471(0x1d4)?_0xde295+'':_0xde295,_0x4bdd67);import{Disposable as _0x5efc82,toDisposable as _0x40b029,IUniverInstanceService as _0x407f4a,Inject as _0x530cef,Injector as _0x342037,IConfigService as _0x495339,ICommandService as _0x244e30,RxDisposable as _0x27b7ba,UniverInstanceType as _0x391209,DisposableCollection as _0x4ea11a,CommandType as _0x3c20aa,DependentOn as _0x148bca,Plugin as _0x41c584,merge as _0x2c2112,registerDependencies as _0x5a0d1b,mergeOverrideWithDependencies as _0x5a4f61,touchDependencies as _0x2d8b65}from'@univerjs/core';import{useDependency as _0x11f1e0,useObservable as _0x1e059b,IUIPartsService as _0x5b30b3,BuiltInUIPart as _0x25f8f5,connectInjector as _0x33fbbf}from'@univerjs/ui';import{jsx as _0x44ff08,jsxs as _0xdeaf32,Fragment as _0x47942b}from'react/jsx-runtime';import{Dropdown as _0x21ed3d,clsx as _0x70919e,Button as _0x4f7539}from'@univerjs/design';import{useRef as _0x4576d0,createElement as _0x241ac0,forwardRef as _0x197dd8,useState as _0x155574,useEffect as _0x5bfbc0}from'react';import{CollaborationEvent as _0xb1447,parseProtocolChangeset as _0x331d5a}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x57c410,SessionStatus as _0x2ea114,UniverCollaborationClientPlugin as _0x18c6f0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x38f5e0,SetWorksheetActiveOperation as _0x5c8388}from'@univerjs/sheets';import{BehaviorSubject as _0x3757b0,Subject as _0x5667a6}from'rxjs';import{takeUntil as _0x1eb310,throttleTime as _0x193b30}from'rxjs/operators';import{SetZoomRatioOperation as _0x55628f,SetScrollOperation as _0x3efdd7}from'@univerjs/sheets-ui';function k({ref:_0x54d3c3,..._0x588c5f}){const _0x442a32=_0x1ff471,{icon:_0x3a593f,id:_0x52a812,className:_0x2b9ded,extend:_0x5d9e52,..._0xc787dc}=_0x588c5f,_0x302977=(_0x442a32(0x1db)+_0x52a812+'\x20'+(_0x2b9ded||''))[_0x442a32(0x1f3)](),_0x2773f6=_0x4576d0('_'+Oe());return G(_0x3a593f,''+_0x52a812,{'defIds':_0x3a593f[_0x442a32(0x1be)],'idSuffix':_0x2773f6[_0x442a32(0x1fc)]},{'ref':_0x54d3c3,'className':_0x302977,..._0xc787dc},_0x5d9e52);}function G(_0x26cd31,_0x51c6a2,_0x103abe,_0x974482,_0x4d40f3){const _0x16ef69=_0x1ff471;return _0x241ac0(_0x26cd31['tag'],{'key':_0x51c6a2,...be(_0x26cd31,_0x103abe,_0x4d40f3),..._0x974482},(Ee(_0x26cd31,_0x103abe)[_0x16ef69(0x1e8)]||[])['map']((_0x3decb9,_0xcda044)=>G(_0x3decb9,_0x51c6a2+'-'+_0x26cd31['tag']+'-'+_0xcda044,_0x103abe,void 0x0,_0x4d40f3)));}function be(_0x2f444c,_0x13f485,_0x51387c){const _0x17eb68=_0x1ff471,_0x324824={..._0x2f444c[_0x17eb68(0x1b3)]};_0x51387c!=null&&_0x51387c[_0x17eb68(0x1a9)]&&_0x324824[_0x17eb68(0x238)]===_0x17eb68(0x1a9)&&(_0x324824[_0x17eb68(0x238)]=_0x51387c[_0x17eb68(0x1a9)]),_0x2f444c[_0x17eb68(0x213)]==='mask'&&_0x324824['id']&&(_0x324824['id']=_0x324824['id']+_0x13f485[_0x17eb68(0x211)]),Object[_0x17eb68(0x216)](_0x324824)[_0x17eb68(0x1ad)](([_0x5ddc4a,_0x4f10f4])=>{const _0x2c57c8=_0x17eb68;_0x5ddc4a==='mask'&&typeof _0x4f10f4==_0x2c57c8(0x239)&&(_0x324824[_0x5ddc4a]=_0x4f10f4['replace'](/url\(#(.*)\)/,'url(#$1'+_0x13f485[_0x2c57c8(0x211)]+')'));});const {defIds:_0x19bfd7}=_0x13f485;return!_0x19bfd7||_0x19bfd7[_0x17eb68(0x233)]===0x0||(_0x2f444c[_0x17eb68(0x213)]===_0x17eb68(0x223)&&_0x324824[_0x17eb68(0x1f9)]&&(_0x324824[_0x17eb68(0x1f9)]=_0x324824[_0x17eb68(0x1f9)]+_0x13f485[_0x17eb68(0x211)]),Object[_0x17eb68(0x216)](_0x324824)[_0x17eb68(0x1ad)](([_0x4fbe80,_0x44586b])=>{const _0x1491e5=_0x17eb68;typeof _0x44586b==_0x1491e5(0x239)&&(_0x324824[_0x4fbe80]=_0x44586b[_0x1491e5(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x13f485[_0x1491e5(0x211)]+')'));})),_0x324824;}function Ee(_0x40f6af,_0xe39401){const _0x16df81=_0x1ff471;var _0x304159;const {defIds:_0x53abff}=_0xe39401;return!_0x53abff||_0x53abff[_0x16df81(0x233)]===0x0?_0x40f6af:_0x40f6af[_0x16df81(0x213)]==='defs'&&((_0x304159=_0x40f6af[_0x16df81(0x1e8)])!=null&&_0x304159[_0x16df81(0x233)])?{..._0x40f6af,'children':_0x40f6af[_0x16df81(0x1e8)][_0x16df81(0x1ab)](_0x2955b0=>typeof _0x2955b0[_0x16df81(0x1b3)]['id']==_0x16df81(0x239)&&_0x53abff&&_0x53abff[_0x16df81(0x1cd)](_0x2955b0[_0x16df81(0x1b3)]['id'])?{..._0x2955b0,'attrs':{..._0x2955b0[_0x16df81(0x1b3)],'id':_0x2955b0['attrs']['id']+_0xe39401['idSuffix']}}:_0x2955b0)}:_0x40f6af;}function Oe(){const _0x3058eb=_0x1ff471;return Math[_0x3058eb(0x1ea)]()[_0x3058eb(0x1a4)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x1ff471(0x20f);const we={'tag':_0x1ff471(0x1bf),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1ff471(0x1ca),'viewBox':_0x1ff471(0x1f2),'width':_0x1ff471(0x1c8),'height':_0x1ff471(0x1c8)},'children':[{'tag':'path','attrs':{'fill':_0x1ff471(0x1fb),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x1ff471(0x1fb),'d':_0x1ff471(0x1d3),'fillRule':_0x1ff471(0x21e),'clipRule':'evenodd'}}]},W=_0x197dd8(function(_0x1a2eaf,_0x3f0300){const _0x515e7e=_0x1ff471;return _0x241ac0(k,Object[_0x515e7e(0x1c1)]({},_0x1a2eaf,{'id':_0x515e7e(0x1c0),'ref':_0x3f0300,'icon':we}));});W['displayName']=_0x1ff471(0x1f7);class L extends _0x5efc82{constructor(){const _0x598f4d=_0x1ff471;super(...arguments),u(this,_0x598f4d(0x1fa),new Set()),u(this,'_reporters',new Set());}['registerSharedOperation'](_0x5e6e0a){const _0x36c790=_0x1ff471;return this['_sharedOperations']['add'](_0x5e6e0a),_0x40b029(()=>this['_sharedOperations'][_0x36c790(0x227)](_0x5e6e0a));}[_0x1ff471(0x1b0)](_0x1bf75a){const _0x22ed6a=_0x1ff471;return this[_0x22ed6a(0x1d2)][_0x22ed6a(0x21a)](_0x1bf75a),_0x40b029(()=>this['_reporters'][_0x22ed6a(0x227)](_0x1bf75a));}[_0x1ff471(0x1ff)](_0x30d843){const _0x444cec=_0x1ff471;return this[_0x444cec(0x1fa)][_0x444cec(0x222)](_0x30d843);}[_0x1ff471(0x1a6)](_0x26d9cd){const _0x12b772=_0x1ff471;return Array[_0x12b772(0x1a7)](this[_0x12b772(0x1d2)])[_0x12b772(0x1ab)](_0x16b419=>_0x16b419(_0x26d9cd));}}var Ne=Object[_0x1ff471(0x1c4)],Y=(_0x19fe3a,_0x147680,_0x34b2f9,_0x1d65c6)=>{const _0x302b59=_0x1ff471;for(var _0x3b5c18=_0x1d65c6>0x1?void 0x0:_0x1d65c6?Ne(_0x147680,_0x34b2f9):_0x147680,_0x4fe29e=_0x19fe3a[_0x302b59(0x233)]-0x1,_0x377afb;_0x4fe29e>=0x0;_0x4fe29e--)(_0x377afb=_0x19fe3a[_0x4fe29e])&&(_0x3b5c18=_0x377afb(_0x3b5c18)||_0x3b5c18);return _0x3b5c18;},_=(_0x346bd6,_0x42fa7c)=>(_0x3bdd66,_0x1146b9)=>_0x42fa7c(_0x3bdd66,_0x1146b9,_0x346bd6);let S=class extends _0x27b7ba{constructor(_0x570829,_0x20eb27,_0xef5d28){const _0x25f2e2=_0x1ff471;super(),u(this,_0x25f2e2(0x1e6),new Map()),(this[_0x25f2e2(0x1fd)]=_0x570829,this[_0x25f2e2(0x1ed)]=_0x20eb27,this[_0x25f2e2(0x1d7)]=_0xef5d28,this[_0x25f2e2(0x1c9)]());}async[_0x1ff471(0x22a)](_0x3ba235){const _0x1e084b=_0x1ff471;return this[_0x1e084b(0x1e6)]['has'](_0x3ba235)||await this[_0x1e084b(0x1fe)](_0x3ba235),this[_0x1e084b(0x1e6)][_0x1e084b(0x1a5)](_0x3ba235);}[_0x1ff471(0x220)](_0xc0e10c){const _0xec5ee5=_0x1ff471;var _0x1e1988;return(_0x1e1988=this[_0xec5ee5(0x1e6)][_0xec5ee5(0x1a5)](_0xc0e10c))!=null?_0x1e1988:null;}[_0x1ff471(0x1c9)](){const _0x4f2120=_0x1ff471;this[_0x4f2120(0x1fd)]['getTypeOfUnitAdded$'](_0x391209[_0x4f2120(0x234)])[_0x4f2120(0x1d0)](_0x1eb310(this[_0x4f2120(0x237)]))[_0x4f2120(0x1eb)](async _0x329f88=>{const _0x5f31fe=_0x4f2120,_0x4b15cf=_0x329f88[_0x5f31fe(0x212)]();this[_0x5f31fe(0x1e6)][_0x5f31fe(0x222)](_0x4b15cf)||this[_0x5f31fe(0x1fe)](_0x4b15cf);}),this[_0x4f2120(0x1fd)][_0x4f2120(0x1de)](_0x391209['UNIVER_SHEET'])[_0x4f2120(0x1d0)](_0x1eb310(this[_0x4f2120(0x237)]))[_0x4f2120(0x1eb)](_0x5bcc72=>{const _0xb0c83f=_0x4f2120,_0xba9db7=_0x5bcc72[_0xb0c83f(0x212)](),_0x4106f5=this[_0xb0c83f(0x1e6)]['get'](_0xba9db7);_0x4106f5==null||_0x4106f5['dispose']();});}async['_startLiveShareCoordinator'](_0x5d8ac4){const _0xeb6207=_0x1ff471,_0x5439d8=await this[_0xeb6207(0x1d7)]['requireSession'](_0x5d8ac4),_0x35d44b=this[_0xeb6207(0x1ed)][_0xeb6207(0x1e2)](N,_0x5d8ac4,_0x5439d8);return _0x35d44b['init'](),this[_0xeb6207(0x1e6)][_0xeb6207(0x214)](_0x5d8ac4,_0x35d44b),_0x35d44b;}};S=Y([_(0x0,_0x407f4a),_(0x1,_0x530cef(_0x342037)),_(0x2,_0x530cef(_0x57c410))],S);var c=(_0x4adbe8=>(_0x4adbe8[_0x1ff471(0x1a2)]=_0x1ff471(0x243),_0x4adbe8['IDLE']='idle',_0x4adbe8[_0x1ff471(0x1b6)]=_0x1ff471(0x21f),_0x4adbe8['NOT_FOLLOWING']=_0x1ff471(0x244),_0x4adbe8[_0x1ff471(0x21c)]=_0x1ff471(0x230),_0x4adbe8))(c||{});const Ce=_0x1ff471(0x1d5),De=0xc8;let N=class extends _0x27b7ba{constructor(_0x4b9732,_0x1fc442,_0x129c59,_0x310a79,_0x16863c){const _0x5b4e4e=_0x1ff471;super(),u(this,_0x5b4e4e(0x23f),new _0x3757b0(_0x5b4e4e(0x1b5))),u(this,'status$',this[_0x5b4e4e(0x23f)]['asObservable']()),u(this,_0x5b4e4e(0x1c9),!0x1),u(this,'_commandDisposable',null),u(this,_0x5b4e4e(0x1a3),null),(this[_0x5b4e4e(0x210)]=_0x4b9732,this[_0x5b4e4e(0x22b)]=_0x1fc442,this['_configService']=_0x129c59,this[_0x5b4e4e(0x1ae)]=_0x310a79,this[_0x5b4e4e(0x228)]=_0x16863c);}get['_status'](){const _0x4afec2=_0x1ff471;return this[_0x4afec2(0x23f)][_0x4afec2(0x217)]();}[_0x1ff471(0x1aa)](){const _0x490e09=_0x1ff471;var _0x1537bf;(_0x1537bf=this[_0x490e09(0x1d1)])==null||_0x1537bf['dispose'](),this[_0x490e09(0x23f)][_0x490e09(0x202)]('idle'),this[_0x490e09(0x23f)]['complete']();}[_0x1ff471(0x246)](){const _0x5ca0e9=_0x1ff471;return this[_0x5ca0e9(0x229)];}[_0x1ff471(0x204)](){const _0xeafc37=_0x1ff471;this['_init']||(this['_init']=!0x0,this['_collabSession']['sessionStatus$'][_0xeafc37(0x1d0)](_0x1eb310(this['dispose$']))[_0xeafc37(0x1eb)](_0x98d964=>{const _0x208f2e=_0xeafc37;switch(_0x98d964){case _0x2ea114[_0x208f2e(0x1a2)]:this[_0x208f2e(0x1bc)]();break;case _0x2ea114[_0x208f2e(0x20d)]:this[_0x208f2e(0x1b7)]();break;}}),this[_0xeafc37(0x22b)][_0xeafc37(0x23e)][_0xeafc37(0x1d0)](_0x1eb310(this[_0xeafc37(0x237)]))[_0xeafc37(0x1eb)](_0x57590c=>{const _0x5e2632=_0xeafc37,{eventID:_0x4e82df}=_0x57590c;switch(_0x4e82df){case _0xb1447['LIVESHARE_NEW_HOST']:this[_0x5e2632(0x1f6)](_0x57590c);break;case _0xb1447['LIVESHARE_OPERATION']:this[_0x5e2632(0x221)](_0x57590c);break;case _0xb1447['LIVESHARE_TERMINATE']:this[_0x5e2632(0x218)]();break;case _0xb1447[_0x5e2632(0x242)]:this['_handleNewChangeSets'](_0x57590c);break;}}));}['tryStartPresenting'](){const _0x22b46b=_0x1ff471;this[_0x22b46b(0x22b)]['send']({'eventID':_0xb1447[_0x22b46b(0x215)],'data':{'unitID':this[_0x22b46b(0x210)],'userID':this[_0x22b46b(0x22b)][_0x22b46b(0x232)]()}},this[_0x22b46b(0x210)]);}['stopPresenting'](){const _0x454ee6=_0x1ff471;this[_0x454ee6(0x229)]===_0x454ee6(0x230)&&(this[_0x454ee6(0x23f)]['next'](_0x454ee6(0x1b5)),this[_0x454ee6(0x22b)][_0x454ee6(0x22c)]({'eventID':_0xb1447[_0x454ee6(0x1f0)],'data':{'unitID':this[_0x454ee6(0x210)]}},this['_unitID']));}[_0x1ff471(0x1e3)](){const _0x216134=_0x1ff471;this[_0x216134(0x229)]===_0x216134(0x244)&&(this[_0x216134(0x23f)][_0x216134(0x202)](_0x216134(0x21f)),this['_startFollowing']());}[_0x1ff471(0x200)](){const _0x1e6a64=_0x1ff471;this['_status']===_0x1e6a64(0x21f)&&this[_0x1e6a64(0x1c6)]();}['_handleNewHost'](_0x485a12){const _0x103ddb=_0x1ff471,{presenter:_0x50273e}=_0x485a12['data'],_0xb41cf5=this['_collabSession'][_0x103ddb(0x232)]();this['_presenter']=_0x50273e,_0x50273e===_0xb41cf5?(this[_0x103ddb(0x1c6)](),this[_0x103ddb(0x219)]()):this[_0x103ddb(0x229)]!==_0x103ddb(0x244)&&(this[_0x103ddb(0x1b2)](),this[_0x103ddb(0x1e1)]());}[_0x1ff471(0x1c5)](){const _0x192748=_0x1ff471,_0x2cdf5d={'eventID':_0xb1447[_0x192748(0x21d)]};this['_collabSession'][_0x192748(0x22c)](_0x2cdf5d,this[_0x192748(0x210)]);}[_0x1ff471(0x218)](){const _0x4a5074=_0x1ff471;this['_presenter']=null,this['_status']!==_0x4a5074(0x230)&&this[_0x4a5074(0x1ac)]();}[_0x1ff471(0x1cb)](_0x4ee193){const _0x3dfc98=_0x1ff471;if(this['_status']==='following'&&this[_0x3dfc98(0x1a3)]===_0x4ee193[_0x3dfc98(0x1ef)][_0x3dfc98(0x22d)]){const _0x1861ce=_0x331d5a(_0x4ee193['data'])[_0x3dfc98(0x249)]['reverse']()[_0x3dfc98(0x20c)](_0x10d34=>_0x10d34['id']===_0x38f5e0['id']);if(_0x1861ce){const _0x5859e8=_0x1861ce[_0x3dfc98(0x1bb)][_0x3dfc98(0x1e7)],_0x21b363=_0x1861ce[_0x3dfc98(0x1bb)][_0x3dfc98(0x1d8)]['id'];setTimeout(()=>{const _0x478ec3=_0x3dfc98;this[_0x478ec3(0x228)][_0x478ec3(0x23a)](_0x5c8388['id'],{'unitId':_0x5859e8,'subUnitId':_0x21b363},{'fromCollab':!0x0});});}}}[_0x1ff471(0x219)](){const _0x488fec=_0x1ff471;this[_0x488fec(0x23f)][_0x488fec(0x202)]('presenting');const _0x2d6ee2=new Map(),_0x21ce20=this[_0x488fec(0x1d1)]=new _0x4ea11a();_0x21ce20['add'](_0x40b029(()=>{const _0x4a657b=_0x488fec;_0x2d6ee2[_0x4a657b(0x1ad)](_0x437cae=>_0x437cae[_0x4a657b(0x203)]()),_0x2d6ee2[_0x4a657b(0x20e)]();})),_0x21ce20[_0x488fec(0x21a)](this['_commandService'][_0x488fec(0x23c)](_0x4ffe17=>{const _0x5f4ba5=_0x488fec;var _0x7cf43b;if(_0x4ffe17[_0x5f4ba5(0x1b9)]!==_0x3c20aa[_0x5f4ba5(0x1e0)]||!this['_liveShareService'][_0x5f4ba5(0x1ff)](_0x4ffe17['id']))return;const {id:_0x5821aa}=_0x4ffe17;let _0x5ab94f;_0x2d6ee2[_0x5f4ba5(0x222)](_0x5821aa)?_0x5ab94f=_0x2d6ee2[_0x5f4ba5(0x1a5)](_0x5821aa):(_0x5ab94f=new _0x5667a6(),_0x2d6ee2[_0x5f4ba5(0x214)](_0x5821aa,_0x5ab94f),_0x5ab94f[_0x5f4ba5(0x1d0)](_0x193b30((_0x7cf43b=this[_0x5f4ba5(0x1b8)][_0x5f4ba5(0x224)](Ce))!=null?_0x7cf43b:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5f4ba5(0x1eb)](_0x417165=>{const _0x3feb3b=_0x5f4ba5;this[_0x3feb3b(0x22b)]['send']({'eventID':_0xb1447[_0x3feb3b(0x1cf)],'data':{'unitID':this[_0x3feb3b(0x210)],'operations':{[_0x417165['id']]:{'id':_0x417165['id'],'params':JSON[_0x3feb3b(0x225)](_0x417165[_0x3feb3b(0x1bb)])}}}},this[_0x3feb3b(0x210)]);})),_0x5ab94f[_0x5f4ba5(0x202)](_0x4ffe17);})),this[_0x488fec(0x1ae)][_0x488fec(0x1a6)](this['_unitID'])[_0x488fec(0x1ad)](_0x407797=>this[_0x488fec(0x22b)][_0x488fec(0x22c)]({'eventID':_0xb1447[_0x488fec(0x1cf)],'data':{'unitID':this[_0x488fec(0x210)],'operations':{[_0x407797['id']]:{'id':_0x407797['id'],'params':JSON[_0x488fec(0x225)](_0x407797['params'])}}}},this[_0x488fec(0x210)]));}[_0x1ff471(0x1b2)](){const _0x3499b0=_0x1ff471;var _0x5e2876;this[_0x3499b0(0x23f)][_0x3499b0(0x202)](_0x3499b0(0x1b5)),(_0x5e2876=this['_commandDisposable'])==null||_0x5e2876[_0x3499b0(0x1aa)](),this['_commandDisposable']=null;}[_0x1ff471(0x1e1)](){const _0x5ca5fa=_0x1ff471;var _0x40e911;(_0x40e911=this[_0x5ca5fa(0x1d1)])==null||_0x40e911[_0x5ca5fa(0x1aa)](),this[_0x5ca5fa(0x23f)][_0x5ca5fa(0x202)](_0x5ca5fa(0x21f));}[_0x1ff471(0x1ac)](){const _0x372a77=_0x1ff471;var _0x45999a;this[_0x372a77(0x23f)][_0x372a77(0x202)](_0x372a77(0x1b5)),(_0x45999a=this[_0x372a77(0x1d1)])==null||_0x45999a[_0x372a77(0x1aa)](),this[_0x372a77(0x1d1)]=null;}[_0x1ff471(0x1c6)](){const _0x3ca668=_0x1ff471;var _0x183a59;this[_0x3ca668(0x23f)]['next'](_0x3ca668(0x244)),(_0x183a59=this[_0x3ca668(0x1d1)])==null||_0x183a59['dispose']();}[_0x1ff471(0x221)](_0x14f9a9){const _0x56de70=_0x1ff471;if([_0x56de70(0x230),_0x56de70(0x244),_0x56de70(0x243)][_0x56de70(0x1cd)](this[_0x56de70(0x229)])||!_0x14f9a9[_0x56de70(0x1ef)][_0x56de70(0x1df)]||_0x14f9a9[_0x56de70(0x1ef)]['presenter']===this[_0x56de70(0x22b)][_0x56de70(0x232)]())return;this[_0x56de70(0x229)]===_0x56de70(0x1b5)&&this[_0x56de70(0x1e1)]();const _0x256a7d=_0x14f9a9[_0x56de70(0x1ef)][_0x56de70(0x1e4)];Object[_0x56de70(0x1dc)](_0x256a7d)['forEach'](_0x1098a5=>{const _0x829016=_0x56de70;this[_0x829016(0x228)]['executeCommand'](_0x1098a5['id'],_0x1098a5['params']?JSON['parse'](_0x1098a5[_0x829016(0x1bb)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4503d7=_0x1ff471;var _0x11193f;this[_0x4503d7(0x23f)][_0x4503d7(0x202)](_0x4503d7(0x243)),(_0x11193f=this[_0x4503d7(0x1d1)])==null||_0x11193f['dispose']();}['_handleOnline'](){const _0x25027b=_0x1ff471;this[_0x25027b(0x23f)][_0x25027b(0x202)](_0x25027b(0x1b5)),this[_0x25027b(0x1c5)]();}};N=Y([_(0x2,_0x495339),_(0x3,_0x530cef(L)),_(0x4,_0x244e30)],N);function Le(){const _0x360dd8=_0x1ff471,_0x480058=_0x11f1e0(S),_0x30294c=_0x11f1e0(_0x407f4a),_0x3103a8=_0x1e059b(()=>_0x30294c[_0x360dd8(0x1b4)](_0x391209['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3fd68c,_0x220472]=_0x155574(null),[_0x56c686,_0x178780]=_0x155574(c[_0x360dd8(0x201)]),_0xef2c91=_0x4576d0(null);return _0x5bfbc0(()=>(_0x3103a8&&_0x480058[_0x360dd8(0x22a)](_0x3103a8['getUnitId']())[_0x360dd8(0x23d)](_0x4a1edd=>{const _0x5e08dd=_0x360dd8;_0x220472(_0x4a1edd),_0xef2c91[_0x5e08dd(0x1fc)]=_0x4a1edd[_0x5e08dd(0x1ce)][_0x5e08dd(0x1eb)](_0x21c8ae=>{_0x178780(_0x21c8ae);});}),()=>{const _0x286259=_0x360dd8;var _0xb4bd9a;(_0xb4bd9a=_0xef2c91[_0x286259(0x1fc)])==null||_0xb4bd9a[_0x286259(0x1bd)](),_0xef2c91[_0x286259(0x1fc)]=null;}),[_0x3103a8,_0x480058]),_0x3fd68c?_0x44ff08(_0x21ed3d,{'align':_0x360dd8(0x1f5),'disabled':_0x56c686===c[_0x360dd8(0x1a2)],'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':_0x44ff08(Re,{'status':_0x56c686,'coordinator':_0x3fd68c}),'children':_0x44ff08(_0x360dd8(0x1c7),{'className':_0x70919e(_0x360dd8(0x236),{'univer-cursor-not-allowed':_0x56c686===c[_0x360dd8(0x1a2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56c686!==c[_0x360dd8(0x1a2)]}),'type':_0x360dd8(0x1c7),'children':_0x44ff08(W,{'className':_0x360dd8(0x205)})})}):null;}function Re(_0x28e239){const _0x39cc04=_0x1ff471,{status:_0x11d2b3,coordinator:_0x3cf1e7}=_0x28e239;switch(_0x11d2b3){case c[_0x39cc04(0x201)]:return _0x44ff08($e,{'coordinator':_0x3cf1e7});case c['FOLLOWING']:return _0x44ff08(xe,{'coordinator':_0x3cf1e7});case c[_0x39cc04(0x1a8)]:return _0x44ff08(Pe,{'coordinator':_0x3cf1e7});case c[_0x39cc04(0x1a2)]:return _0x44ff08(Te,{});case c[_0x39cc04(0x21c)]:return _0x44ff08(Ae,{'coordinator':_0x3cf1e7});default:return null;}}function $e(_0x424685){const _0x367646=_0x1ff471,{coordinator:_0x2e5116}=_0x424685;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x367646(0x241),{'className':_0x367646(0x1b1),'children':_0x367646(0x235)}),_0x44ff08(_0x4f7539,{'onClick':()=>_0x2e5116[_0x367646(0x1f1)](),'children':'Start'})]});}function xe(_0x2e1c24){const _0x4fa2e6=_0x1ff471,{coordinator:_0x54c7c5}=_0x2e1c24;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x4fa2e6(0x241),{'className':_0x4fa2e6(0x1b1),'children':_0x4fa2e6(0x208)}),_0x44ff08(_0x4f7539,{'onClick':()=>_0x54c7c5['stopFollowing'](),'children':_0x4fa2e6(0x1f8)})]});}function Pe(_0x2e475d){const _0x523dff=_0x1ff471,{coordinator:_0x448d74}=_0x2e475d;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x523dff(0x241),{'className':_0x523dff(0x1b1),'children':_0x523dff(0x1af)}),_0x44ff08(_0x4f7539,{'variant':_0x523dff(0x226),'onClick':()=>_0x448d74[_0x523dff(0x1e3)](),'children':_0x523dff(0x1ec)})]});}function Ae(_0x5f022d){const _0x89213b=_0x1ff471,{coordinator:_0x3a058c}=_0x5f022d;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08('div',{'className':_0x89213b(0x1b1),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x44ff08(_0x4f7539,{'variant':_0x89213b(0x207),'onClick':()=>_0x3a058c['stopPresenting'](),'children':_0x89213b(0x231)})]});}function Te(){return _0x44ff08(_0x47942b,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x1ff471(0x1c4)],He=(_0x2f8122,_0x524e5f,_0x361076,_0x36454d)=>{for(var _0x4c0982=_0x36454d>0x1?void 0x0:_0x36454d?Fe(_0x524e5f,_0x361076):_0x524e5f,_0x371a1a=_0x2f8122['length']-0x1,_0x65146f;_0x371a1a>=0x0;_0x371a1a--)(_0x65146f=_0x2f8122[_0x371a1a])&&(_0x4c0982=_0x65146f(_0x4c0982)||_0x4c0982);return _0x4c0982;},A=(_0x275cf4,_0xd2ddea)=>(_0x1c3e8e,_0x198788)=>_0xd2ddea(_0x1c3e8e,_0x198788,_0x275cf4);function _0x7fae(_0x3fcfbd,_0x1f6936){const _0x557056=_0x5570();return _0x7fae=function(_0x7fae7c,_0x38b49c){_0x7fae7c=_0x7fae7c-0x1a2;let _0x5cda0d=_0x557056[_0x7fae7c];return _0x5cda0d;},_0x7fae(_0x3fcfbd,_0x1f6936);}let m=class extends _0x5efc82{constructor(_0x205e68,_0x419cec){const _0x1d14f7=_0x1ff471;super(),this[_0x1d14f7(0x1ed)]=_0x205e68,this[_0x1d14f7(0x247)]=_0x419cec,this[_0x1d14f7(0x206)]();}['_mountLiveShare'](){const _0x54f196=_0x1ff471;this[_0x54f196(0x1c3)](this[_0x54f196(0x247)][_0x54f196(0x1ba)](_0x25f8f5[_0x54f196(0x1f4)],()=>_0x33fbbf(Le,this['_injector'])));}};function _0x5570(){const _0x40f71a=['_stopFollowing','button','1em','_init','none','_handleNewChangeSets','6PLIzZJ','includes','status$','LIVESHARE_OPERATION','pipe','_commandDisposable','_reporters','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','symbol','SAME_OPERATION_SHARE_INTERVAL','replace','_collabSessionService','sheet','4PhrxBd','onRendered','univerjs-icon\x20univerjs-icon-','values','11830554bUmnuc','getTypeOfUnitDisposed$','presenter','OPERATION','_startFollowing','createInstance','startFollowing','operations','override','_entities','unitId','children','28307970NfiiNQ','random','subscribe','Start\x20following','_injector','registerSharedOperation','data','LIVESHARE_TERMINATE','tryStartPresenting','0\x200\x2017\x2017','trim','HEADER_MENU','end','_handleNewHost','LiveShareIcon','Stop\x20following','xlink:href','_sharedOperations','currentColor','current','_univerInstanceService','_startLiveShareCoordinator','shouldShareOperation','stopFollowing','IDLE','next','complete','init','univer-size-4','_mountLiveShare','default','You\x27re\x20following\x20the\x20presenter','2DonwDo','UNIVER_LIVE_SHARE_PLUGIN','9211230eKNjPG','find','ONLINE','clear','UniverIcon','_unitID','idSuffix','getUnitId','tag','set','LIVESHARE_REQUEST_HOST','entries','getValue','_handleTerminate','_startPresenting','add','7099752pkzOlA','PRESENTING','LIVESHARE_FETCH_OPERATIONS','evenodd','following','getLiveShareCoordinatorSync','_handleOperation','has','use','getConfig','stringify','text','delete','_commandService','_status','getLiveShareCoordinator','_collabSession','send','memberID','setConfig','_config','presenting','Stop\x20presenting','getMemberID','length','UNIVER_SHEET','Present\x20this\x20document','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose$','fill','string','executeCommand','567211CHxsmP','onCommandExecuted','then','event$','_status$','defineProperty','div','NEW_CHANGESETS','offline','not-following','onStarting','getStatus','_uiPartsService','5036170qrStPd','mutations','UNIVER_UNKNOWN','OFFLINE','_presenter','toString','get','getInitialStates','from','NOT_FOLLOWING','colorChannel1','dispose','map','_beIdle','forEach','_liveShareService','You\x27re\x20not\x20following\x20the\x20presenter','registerInitialStateReporter','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting','attrs','getCurrentTypeOfUnit$','idle','FOLLOWING','_handleOnline','_configService','type','registerComponent','params','_handleOffline','unsubscribe','defIds','svg','live-share-icon','assign','2243739giwFqR','disposeWithMe','getOwnPropertyDescriptor','_fetchOperations'];_0x5570=function(){return _0x40f71a;};return _0x5570();}m=He([A(0x0,_0x530cef(_0x342037)),A(0x1,_0x5b30b3)],m);const ye='live-share.config',T={};var Ue=Object[_0x1ff471(0x1c4)],Ve=(_0x12667a,_0x4ebed6,_0x7838cc,_0xb0d144)=>{const _0x1495e5=_0x1ff471;for(var _0x520462=_0xb0d144>0x1?void 0x0:_0xb0d144?Ue(_0x4ebed6,_0x7838cc):_0x4ebed6,_0x21e448=_0x12667a[_0x1495e5(0x233)]-0x1,_0x4c7d42;_0x21e448>=0x0;_0x21e448--)(_0x4c7d42=_0x12667a[_0x21e448])&&(_0x520462=_0x4c7d42(_0x520462)||_0x520462);return _0x520462;},je=(_0x4a23d7,_0x367f06)=>(_0x552ec3,_0x15a8de)=>_0x367f06(_0x552ec3,_0x15a8de,_0x4a23d7);let I=class extends _0x5efc82{constructor(_0x3db742){const _0x46d09d=_0x1ff471;super(),this[_0x46d09d(0x1ae)]=_0x3db742,this[_0x46d09d(0x1c9)]();}[_0x1ff471(0x1c9)](){const _0x35b521=_0x1ff471;[_0x55628f['id'],_0x3efdd7['id'],_0x5c8388['id']][_0x35b521(0x1ad)](_0x5a0e25=>{const _0x2fc9c8=_0x35b521;this[_0x2fc9c8(0x1c3)](this[_0x2fc9c8(0x1ae)][_0x2fc9c8(0x1ee)](_0x5a0e25));});}};I=Ve([je(0x0,_0x530cef(L))],I);var Me=Object['defineProperty'],ke=Object[_0x1ff471(0x1c4)],Ge=(_0xfd20bc,_0x40da0c,_0x2633de)=>_0x40da0c in _0xfd20bc?Me(_0xfd20bc,_0x40da0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2633de}):_0xfd20bc[_0x40da0c]=_0x2633de,We=(_0x55b24f,_0x3d18f4,_0x529083,_0x109f13)=>{for(var _0x4094fc=_0x109f13>0x1?void 0x0:_0x109f13?ke(_0x3d18f4,_0x529083):_0x3d18f4,_0x92aaa0=_0x55b24f['length']-0x1,_0x5cc2ca;_0x92aaa0>=0x0;_0x92aaa0--)(_0x5cc2ca=_0x55b24f[_0x92aaa0])&&(_0x4094fc=_0x5cc2ca(_0x4094fc)||_0x4094fc);return _0x4094fc;},F=(_0x6757ab,_0x3f8d09)=>(_0x163397,_0x1447a7)=>_0x3f8d09(_0x163397,_0x1447a7,_0x6757ab),B=(_0x51fc9a,_0x5d0a91,_0x24eba7)=>Ge(_0x51fc9a,typeof _0x5d0a91!=_0x1ff471(0x1d4)?_0x5d0a91+'':_0x5d0a91,_0x24eba7);const Ye=_0x1ff471(0x20a);let b=class extends _0x41c584{constructor(_0x589e7f=T,_0x3a749b,_0x3e0ea5){const _0x4dbeeb=_0x1ff471;super(),this['_config']=_0x589e7f,this[_0x4dbeeb(0x1ed)]=_0x3a749b,this[_0x4dbeeb(0x1b8)]=_0x3e0ea5;const {..._0x2051f2}=_0x2c2112({},T,this[_0x4dbeeb(0x22f)]);this[_0x4dbeeb(0x1b8)][_0x4dbeeb(0x22e)](ye,_0x2051f2);}[_0x1ff471(0x245)](){const _0x1ee846=_0x1ff471;_0x5a0d1b(this[_0x1ee846(0x1ed)],_0x5a4f61([[L],[S],[I],[m]],this[_0x1ee846(0x22f)][_0x1ee846(0x1e5)])),_0x2d8b65(this['_injector'],[[I]]);}[_0x1ff471(0x1da)](){_0x2d8b65(this['_injector'],[[m]]);}};B(b,'type',_0x391209[_0x1ff471(0x24a)]),B(b,'pluginName',Ye),b=We([_0x148bca(_0x18c6f0),F(0x1,_0x530cef(_0x342037)),F(0x2,_0x495339)],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 _0x1353(_0x518831,_0xc4c9f3){const _0x20ec9f=_0x20ec();return _0x1353=function(_0x1353eb,_0x3c25a9){_0x1353eb=_0x1353eb-0xc2;let _0x6794ac=_0x20ec9f[_0x1353eb];return _0x6794ac;},_0x1353(_0x518831,_0xc4c9f3);}(function(_0x985f7,_0x171bbd){const _0x2dea4b=_0x1353,_0x104115=_0x985f7();while(!![]){try{const _0x1f91d9=-parseInt(_0x2dea4b(0xc9))/0x1*(parseInt(_0x2dea4b(0xcc))/0x2)+parseInt(_0x2dea4b(0xec))/0x3*(-parseInt(_0x2dea4b(0xda))/0x4)+-parseInt(_0x2dea4b(0xf5))/0x5*(-parseInt(_0x2dea4b(0xc4))/0x6)+parseInt(_0x2dea4b(0xf0))/0x7+parseInt(_0x2dea4b(0xe1))/0x8+-parseInt(_0x2dea4b(0xd3))/0x9+parseInt(_0x2dea4b(0xdf))/0xa*(parseInt(_0x2dea4b(0xe4))/0xb);if(_0x1f91d9===_0x171bbd)break;else _0x104115['push'](_0x104115['shift']());}catch(_0x3abd07){_0x104115['push'](_0x104115['shift']());}}}(_0x20ec,0x46b67),function(_0x2dc2be,_0x1721d7){const _0x4f4bfd=_0x1353;typeof exports=='object'&&typeof module<'u'?_0x1721d7(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=='function'&&define[_0x4f4bfd(0xee)]?define([_0x4f4bfd(0xdb),_0x4f4bfd(0xe0),_0x4f4bfd(0xf1),_0x4f4bfd(0xdc),_0x4f4bfd(0xcb),'@univerjs/core/facade'],_0x1721d7):(_0x2dc2be=typeof globalThis<'u'?globalThis:_0x2dc2be||self,_0x1721d7(_0x2dc2be['UniverProLiveShare'],_0x2dc2be[_0x4f4bfd(0xe8)],_0x2dc2be[_0x4f4bfd(0xf6)],_0x2dc2be[_0x4f4bfd(0xf3)],_0x2dc2be[_0x4f4bfd(0xd4)],_0x2dc2be[_0x4f4bfd(0xc5)]));}(this,function(_0x4b13c9,_0x5df8b2,_0x21bf06,_0x22d8d7,_0x441467,_0x4db8a2){'use strict';const _0x42c7f7=_0x1353;class _0x20acc3 extends _0x441467['FRange']{[_0x42c7f7(0xd6)](_0x16c851,_0x4c3075,_0x302e99,_0x2eb4e1,_0x19736f){const _0x40f3e2=_0x42c7f7,_0x244553=_0x16c851[_0x40f3e2(0xc8)](_0x4b13c9['LiveShareController']),_0xee4570=_0x16c851[_0x40f3e2(0xc8)](_0x5df8b2[_0x40f3e2(0xca)]),_0x199615=_0x4c3075[_0x40f3e2(0xc6)](),_0x27df43=_0x4c3075[_0x40f3e2(0xe5)](),_0x274033=_0x244553['getLiveShareCoordinatorSync'](_0x199615);(_0x274033==null?void 0x0:_0x274033[_0x40f3e2(0xf2)]())!==_0x4b13c9[_0x40f3e2(0xc7)][_0x40f3e2(0xdd)]||(_0x302e99[_0x40f3e2(0xe9)]()!==_0x27df43[_0x40f3e2(0xe9)]()&&this['_commandService'][_0x40f3e2(0xed)](_0x21bf06[_0x40f3e2(0xd1)]['id'],{'unitId':_0x199615,'subUnitId':_0x302e99[_0x40f3e2(0xe9)]()}),!_0xee4570[_0x40f3e2(0xde)](_0x199615))||_0x19736f['syncExecuteCommand'](_0x22d8d7[_0x40f3e2(0xe3)]['id'],{'unitId':_0x4c3075['getUnitId'](),'sheetId':_0x302e99[_0x40f3e2(0xe9)](),'sheetViewStartRow':_0x2eb4e1[_0x40f3e2(0xe6)],'sheetViewStartColumn':_0x2eb4e1[_0x40f3e2(0xcf)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x441467['FRange'][_0x42c7f7(0xd9)](_0x20acc3);class _0x584e2e extends _0x4db8a2[_0x42c7f7(0xd5)]{[_0x42c7f7(0xcd)](){const _0x13338a=_0x42c7f7;var _0xc39c9f,_0x6980d6;const _0x343ea7=this[_0x13338a(0xeb)][_0x13338a(0xc8)](_0x4b13c9[_0x13338a(0xf4)]),_0x210f9f=(_0xc39c9f=this['getActiveWorkbook']())==null?void 0x0:_0xc39c9f[_0x13338a(0xea)]();if(!_0x210f9f)throw new Error(_0x13338a(0xd7));const _0x52f071=_0x343ea7[_0x13338a(0xe2)](_0x210f9f);return(_0x6980d6=_0x52f071==null?void 0x0:_0x52f071['getStatus']())!=null?_0x6980d6:_0x4b13c9[_0x13338a(0xc7)]['IDLE'];}['startFollowing'](){const _0x253221=_0x42c7f7;var _0x2e659e;const _0x42de0a=this['_injector']['get'](_0x4b13c9['LiveShareController']),_0x1a92e3=(_0x2e659e=this['getActiveWorkbook']())==null?void 0x0:_0x2e659e[_0x253221(0xea)]();if(!_0x1a92e3)throw new Error(_0x253221(0xd7));const _0x2b401f=_0x42de0a[_0x253221(0xe2)](_0x1a92e3);if(!_0x2b401f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2b401f[_0x253221(0xe7)]();}['stopFollowing'](){const _0x577408=_0x42c7f7;var _0x24e8ad;const _0x127495=this[_0x577408(0xeb)]['get'](_0x4b13c9[_0x577408(0xf4)]),_0x31f18f=(_0x24e8ad=this[_0x577408(0xd0)]())==null?void 0x0:_0x24e8ad[_0x577408(0xea)]();if(!_0x31f18f)throw new Error(_0x577408(0xd7));const _0x48b575=_0x127495[_0x577408(0xe2)](_0x31f18f);if(!_0x48b575)throw new Error(_0x577408(0xc3));_0x48b575[_0x577408(0xd8)]();}[_0x42c7f7(0xce)](){const _0x36aadb=_0x42c7f7;var _0x46b647;const _0x4de82a=this[_0x36aadb(0xeb)][_0x36aadb(0xc8)](_0x4b13c9['LiveShareController']),_0x5af2cc=(_0x46b647=this[_0x36aadb(0xd0)]())==null?void 0x0:_0x46b647['getId']();if(!_0x5af2cc)throw new Error('No\x20active\x20workbook\x20found.');const _0x23393c=_0x4de82a[_0x36aadb(0xe2)](_0x5af2cc);if(!_0x23393c)throw new Error(_0x36aadb(0xc3));_0x23393c[_0x36aadb(0xef)]();}['stopPresenting'](){const _0x2fa22f=_0x42c7f7;var _0x1a2c76;const _0x9f36e7=this[_0x2fa22f(0xeb)][_0x2fa22f(0xc8)](_0x4b13c9[_0x2fa22f(0xf4)]),_0x39ffb5=(_0x1a2c76=this['getActiveWorkbook']())==null?void 0x0:_0x1a2c76[_0x2fa22f(0xea)]();if(!_0x39ffb5)throw new Error('No\x20active\x20workbook\x20found.');const _0x556afb=_0x9f36e7[_0x2fa22f(0xe2)](_0x39ffb5);if(!_0x556afb)throw new Error(_0x2fa22f(0xc3));_0x556afb[_0x2fa22f(0xc2)]();}}_0x4db8a2[_0x42c7f7(0xd5)]['extend'](_0x584e2e);class _0x24fb1d extends _0x4db8a2[_0x42c7f7(0xd2)]{get['LiveShareStatusEnum'](){return _0x4b13c9['LiveShareStatus'];}}_0x4db8a2['FEnum'][_0x42c7f7(0xd9)](_0x24fb1d);}));function _0x20ec(){const _0xe5a06=['getStatus','UniverSheetsUi','LiveShareController','163655LsnfpO','UniverSheets','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','42ecaFRc','UniverCoreFacade','getUnitId','LiveShareStatus','get','63873zjZhcH','IRenderManagerService','@univerjs/sheets/facade','10ssJSwu','getLiveShareStatus','startPresenting','startColumn','getActiveWorkbook','SetWorksheetActiveOperation','FEnum','222813baAdzi','UniverSheetsFacade','FUniver','_initialize','No\x20active\x20workbook\x20found.','stopFollowing','extend','5620ufsDiN','@univerjs-pro/live-share','@univerjs/sheets-ui','PRESENTING','getRenderById','3040piAYgv','@univerjs/engine-render','4031256wHTcQO','getLiveShareCoordinatorSync','SetScrollOperation','6556Earmyt','getActiveSheet','startRow','startFollowing','UniverEngineRender','getSheetId','getId','_injector','1146sVvoWJ','executeCommand','amd','tryStartPresenting','1793841szItdJ','@univerjs/sheets'];_0x20ec=function(){return _0xe5a06;};return _0x20ec();}
1
+ (function(_0xb8513f,_0x5c2c9a){const _0x39bf04=_0x2144,_0x527e9f=_0xb8513f();while(!![]){try{const _0x174af6=-parseInt(_0x39bf04(0x84))/0x1*(-parseInt(_0x39bf04(0x9c))/0x2)+parseInt(_0x39bf04(0x94))/0x3*(-parseInt(_0x39bf04(0x92))/0x4)+-parseInt(_0x39bf04(0x8b))/0x5+-parseInt(_0x39bf04(0x7f))/0x6*(parseInt(_0x39bf04(0x70))/0x7)+-parseInt(_0x39bf04(0x7a))/0x8+parseInt(_0x39bf04(0x7b))/0x9+parseInt(_0x39bf04(0x98))/0xa*(parseInt(_0x39bf04(0x68))/0xb);if(_0x174af6===_0x5c2c9a)break;else _0x527e9f['push'](_0x527e9f['shift']());}catch(_0x4c3797){_0x527e9f['push'](_0x527e9f['shift']());}}}(_0x3237,0x8d404),function(_0x32bc3c,_0x582827){const _0x34cd1=_0x2144;typeof exports=='object'&&typeof module<'u'?_0x582827(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==_0x34cd1(0x9d)&&define[_0x34cd1(0x7e)]?define([_0x34cd1(0x96),_0x34cd1(0x72),'@univerjs/sheets',_0x34cd1(0x76),_0x34cd1(0x66),_0x34cd1(0x6a)],_0x582827):(_0x32bc3c=typeof globalThis<'u'?globalThis:_0x32bc3c||self,_0x582827(_0x32bc3c[_0x34cd1(0x77)],_0x32bc3c[_0x34cd1(0x9a)],_0x32bc3c[_0x34cd1(0x81)],_0x32bc3c[_0x34cd1(0x88)],_0x32bc3c['UniverSheetsFacade'],_0x32bc3c[_0x34cd1(0x80)]));}(this,function(_0x2749f0,_0x46e997,_0x3a8326,_0x2a4215,_0x44351d,_0x5b2c1a){'use strict';const _0x5e02e4=_0x2144;class _0x25d5bc extends _0x44351d[_0x5e02e4(0x75)]{[_0x5e02e4(0x73)](_0x5a2d7f,_0x286038,_0x27072f,_0x5aaad9,_0x3636a7){const _0xcec275=_0x5e02e4,_0x580f26=_0x5a2d7f[_0xcec275(0x78)](_0x2749f0[_0xcec275(0x91)]),_0x3bc7d4=_0x5a2d7f['get'](_0x46e997[_0xcec275(0x6e)]),_0x4cf7ee=_0x286038['getUnitId'](),_0x2e8be8=_0x286038[_0xcec275(0x7c)](),_0x4c4cd4=_0x580f26['getLiveShareCoordinatorSync'](_0x4cf7ee);(_0x4c4cd4==null?void 0x0:_0x4c4cd4['getStatus']())!==_0x2749f0[_0xcec275(0x8d)]['PRESENTING']||(_0x27072f['getSheetId']()!==_0x2e8be8[_0xcec275(0x90)]()&&this[_0xcec275(0x83)][_0xcec275(0x6f)](_0x3a8326[_0xcec275(0x82)]['id'],{'unitId':_0x4cf7ee,'subUnitId':_0x27072f[_0xcec275(0x90)]()}),!_0x3bc7d4[_0xcec275(0x93)](_0x4cf7ee))||_0x3636a7[_0xcec275(0x97)](_0x2a4215['SetScrollOperation']['id'],{'unitId':_0x286038['getUnitId'](),'sheetId':_0x27072f['getSheetId'](),'sheetViewStartRow':_0x5aaad9[_0xcec275(0x67)],'sheetViewStartColumn':_0x5aaad9[_0xcec275(0x85)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x44351d[_0x5e02e4(0x75)][_0x5e02e4(0x95)](_0x25d5bc);class _0x485338 extends _0x5b2c1a['FUniver']{[_0x5e02e4(0x6d)](){const _0x54950c=_0x5e02e4;var _0x12ba32,_0x27c742;const _0x194610=this[_0x54950c(0x6c)]['get'](_0x2749f0['LiveShareController']),_0x573c39=(_0x12ba32=this[_0x54950c(0x86)]())==null?void 0x0:_0x12ba32[_0x54950c(0x89)]();if(!_0x573c39)throw new Error(_0x54950c(0x79));const _0x4e2231=_0x194610[_0x54950c(0x6b)](_0x573c39);return(_0x27c742=_0x4e2231==null?void 0x0:_0x4e2231[_0x54950c(0x69)]())!=null?_0x27c742:_0x2749f0[_0x54950c(0x8d)][_0x54950c(0x8a)];}[_0x5e02e4(0x9b)](){const _0xa2b391=_0x5e02e4;var _0x229cc7;const _0x5ab752=this[_0xa2b391(0x6c)][_0xa2b391(0x78)](_0x2749f0['LiveShareController']),_0x5e4012=(_0x229cc7=this['getActiveWorkbook']())==null?void 0x0:_0x229cc7[_0xa2b391(0x89)]();if(!_0x5e4012)throw new Error(_0xa2b391(0x79));const _0x431f83=_0x5ab752[_0xa2b391(0x6b)](_0x5e4012);if(!_0x431f83)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x431f83[_0xa2b391(0x9b)]();}[_0x5e02e4(0x7d)](){const _0x17b1c8=_0x5e02e4;var _0x146ffb;const _0x50cca0=this[_0x17b1c8(0x6c)][_0x17b1c8(0x78)](_0x2749f0[_0x17b1c8(0x91)]),_0x5afbaa=(_0x146ffb=this['getActiveWorkbook']())==null?void 0x0:_0x146ffb[_0x17b1c8(0x89)]();if(!_0x5afbaa)throw new Error(_0x17b1c8(0x79));const _0x26eb6c=_0x50cca0[_0x17b1c8(0x6b)](_0x5afbaa);if(!_0x26eb6c)throw new Error(_0x17b1c8(0x87));_0x26eb6c['stopFollowing']();}[_0x5e02e4(0x71)](){const _0x4f2b52=_0x5e02e4;var _0x46eb7b;const _0x33c5f5=this[_0x4f2b52(0x6c)][_0x4f2b52(0x78)](_0x2749f0['LiveShareController']),_0x2b851c=(_0x46eb7b=this['getActiveWorkbook']())==null?void 0x0:_0x46eb7b['getId']();if(!_0x2b851c)throw new Error(_0x4f2b52(0x79));const _0x221aeb=_0x33c5f5[_0x4f2b52(0x6b)](_0x2b851c);if(!_0x221aeb)throw new Error(_0x4f2b52(0x87));_0x221aeb[_0x4f2b52(0x74)]();}[_0x5e02e4(0x8e)](){const _0x4c4b18=_0x5e02e4;var _0x380df7;const _0x90b47=this[_0x4c4b18(0x6c)][_0x4c4b18(0x78)](_0x2749f0[_0x4c4b18(0x91)]),_0x185af0=(_0x380df7=this[_0x4c4b18(0x86)]())==null?void 0x0:_0x380df7[_0x4c4b18(0x89)]();if(!_0x185af0)throw new Error('No\x20active\x20workbook\x20found.');const _0x285656=_0x90b47[_0x4c4b18(0x6b)](_0x185af0);if(!_0x285656)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x285656['stopPresenting']();}}_0x5b2c1a[_0x5e02e4(0x8c)][_0x5e02e4(0x95)](_0x485338);class _0x554e5a extends _0x5b2c1a[_0x5e02e4(0x99)]{get[_0x5e02e4(0x8f)](){const _0x54ac1b=_0x5e02e4;return _0x2749f0[_0x54ac1b(0x8d)];}}_0x5b2c1a[_0x5e02e4(0x99)][_0x5e02e4(0x95)](_0x554e5a);}));function _0x2144(_0x1e3a26,_0x360ce4){const _0x3237c1=_0x3237();return _0x2144=function(_0x214440,_0x2d2b75){_0x214440=_0x214440-0x66;let _0xf50ff8=_0x3237c1[_0x214440];return _0xf50ff8;},_0x2144(_0x1e3a26,_0x360ce4);}function _0x3237(){const _0x5e566f=['25137178rayIID','getStatus','@univerjs/core/facade','getLiveShareCoordinatorSync','_injector','getLiveShareStatus','IRenderManagerService','executeCommand','273wpTNnL','startPresenting','@univerjs/engine-render','_initialize','tryStartPresenting','FRange','@univerjs/sheets-ui','UniverProLiveShare','get','No\x20active\x20workbook\x20found.','4645016sDINBf','4943439uPlrcZ','getActiveSheet','stopFollowing','amd','164292KeXwgk','UniverCoreFacade','UniverSheets','SetWorksheetActiveOperation','_commandService','109579wGjHgn','startColumn','getActiveWorkbook','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UniverSheetsUi','getId','IDLE','5374020SShCbD','FUniver','LiveShareStatus','stopPresenting','LiveShareStatusEnum','getSheetId','LiveShareController','108956UKYCxd','getRenderById','33WzCndv','extend','@univerjs-pro/live-share','syncExecuteCommand','10lloZRs','FEnum','UniverEngineRender','startFollowing','14AMhHST','function','@univerjs/sheets/facade','startRow'];_0x3237=function(){return _0x5e566f;};return _0x3237();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x256c(_0x12eeb0,_0x3ba3e0){const _0x5c1070=_0x5c10();return _0x256c=function(_0x256c60,_0x12c157){_0x256c60=_0x256c60-0x7d;let _0x1ad878=_0x5c1070[_0x256c60];return _0x1ad878;},_0x256c(_0x12eeb0,_0x3ba3e0);}(function(_0x16b202,_0x5baf64){const _0x5dce13=_0x256c,_0x19bd1a=_0x16b202();while(!![]){try{const _0x9859a8=parseInt(_0x5dce13(0x144))/0x1*(-parseInt(_0x5dce13(0xba))/0x2)+-parseInt(_0x5dce13(0x13a))/0x3+-parseInt(_0x5dce13(0xce))/0x4+parseInt(_0x5dce13(0xe7))/0x5*(parseInt(_0x5dce13(0xa7))/0x6)+-parseInt(_0x5dce13(0x11d))/0x7*(parseInt(_0x5dce13(0x165))/0x8)+-parseInt(_0x5dce13(0xfe))/0x9+parseInt(_0x5dce13(0x124))/0xa;if(_0x9859a8===_0x5baf64)break;else _0x19bd1a['push'](_0x19bd1a['shift']());}catch(_0x484352){_0x19bd1a['push'](_0x19bd1a['shift']());}}}(_0x5c10,0x56779),function(_0x3c4a8b,_0x2a921b){const _0x33eaf5=_0x256c;typeof exports==_0x33eaf5(0x156)&&typeof module<'u'?_0x2a921b(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==_0x33eaf5(0x157)&&define[_0x33eaf5(0x139)]?define([_0x33eaf5(0xa8),_0x33eaf5(0xcd),_0x33eaf5(0xef),_0x33eaf5(0x141),_0x33eaf5(0x105),'react',_0x33eaf5(0x9e),_0x33eaf5(0x100),_0x33eaf5(0xd8),_0x33eaf5(0xdb),_0x33eaf5(0xdd),_0x33eaf5(0x119)],_0x2a921b):(_0x3c4a8b=typeof globalThis<'u'?globalThis:_0x3c4a8b||self,_0x2a921b(_0x3c4a8b[_0x33eaf5(0x135)]={},_0x3c4a8b['UniverCore'],_0x3c4a8b[_0x33eaf5(0xbe)],_0x3c4a8b['React'],_0x3c4a8b[_0x33eaf5(0xfc)],_0x3c4a8b[_0x33eaf5(0xc4)],_0x3c4a8b[_0x33eaf5(0xeb)],_0x3c4a8b[_0x33eaf5(0xcc)],_0x3c4a8b[_0x33eaf5(0x15f)],_0x3c4a8b['rxjs'],_0x3c4a8b[_0x33eaf5(0xdb)][_0x33eaf5(0x121)],_0x3c4a8b['UniverSheetsUi']));}(this,function(_0x15484b,_0xad28bf,_0x302684,_0x259a70,_0x2daac7,_0x367771,_0x23fdcb,_0x184063,_0x4b9290,_0x21fe1c,_0x1ab1f9,_0x982dc2){'use strict';const _0xbe9bf4=_0x256c;var _0x16cbf9=Object['defineProperty'],_0x43673a=(_0x3ec44c,_0x10fdd3,_0x32c096)=>_0x10fdd3 in _0x3ec44c?_0x16cbf9(_0x3ec44c,_0x10fdd3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32c096}):_0x3ec44c[_0x10fdd3]=_0x32c096,_0x1f8630=(_0x9b9e46,_0x1c6f8e,_0x1cbaa9)=>_0x43673a(_0x9b9e46,typeof _0x1c6f8e!=_0xbe9bf4(0x13f)?_0x1c6f8e+'':_0x1c6f8e,_0x1cbaa9);function _0x4f0b5a({ref:_0x53884c,..._0x24abd1}){const _0x538e92=_0xbe9bf4,{icon:_0x584926,id:_0x2a57e8,className:_0x3a80c9,extend:_0x1b82b5,..._0x114304}=_0x24abd1,_0x531ec6=(_0x538e92(0xee)+_0x2a57e8+'\x20'+(_0x3a80c9||''))[_0x538e92(0x96)](),_0x788047=_0x367771['useRef']('_'+_0x524430());return _0x4d9b77(_0x584926,''+_0x2a57e8,{'defIds':_0x584926[_0x538e92(0xa9)],'idSuffix':_0x788047[_0x538e92(0xc0)]},{'ref':_0x53884c,'className':_0x531ec6,..._0x114304},_0x1b82b5);}function _0x4d9b77(_0x14885e,_0x58ebad,_0x58224c,_0x26afcc,_0x116973){const _0x142acd=_0xbe9bf4;return _0x367771[_0x142acd(0x116)](_0x14885e[_0x142acd(0x14e)],{'key':_0x58ebad,..._0xaa5cc2(_0x14885e,_0x58224c,_0x116973),..._0x26afcc},(_0x36c6d5(_0x14885e,_0x58224c)['children']||[])['map']((_0xfeb3e2,_0x184245)=>_0x4d9b77(_0xfeb3e2,_0x58ebad+'-'+_0x14885e[_0x142acd(0x14e)]+'-'+_0x184245,_0x58224c,void 0x0,_0x116973)));}function _0xaa5cc2(_0x487914,_0x3b22e1,_0x3cc35d){const _0x4c2658=_0xbe9bf4,_0x25b6e4={..._0x487914['attrs']};_0x3cc35d!=null&&_0x3cc35d[_0x4c2658(0x11b)]&&_0x25b6e4[_0x4c2658(0xff)]===_0x4c2658(0x11b)&&(_0x25b6e4[_0x4c2658(0xff)]=_0x3cc35d[_0x4c2658(0x11b)]),_0x487914[_0x4c2658(0x14e)]===_0x4c2658(0x114)&&_0x25b6e4['id']&&(_0x25b6e4['id']=_0x25b6e4['id']+_0x3b22e1[_0x4c2658(0x91)]),Object[_0x4c2658(0x102)](_0x25b6e4)[_0x4c2658(0xb8)](([_0x217396,_0x4f3056])=>{const _0xc2acdd=_0x4c2658;_0x217396===_0xc2acdd(0x114)&&typeof _0x4f3056==_0xc2acdd(0xa0)&&(_0x25b6e4[_0x217396]=_0x4f3056['replace'](/url\(#(.*)\)/,_0xc2acdd(0x137)+_0x3b22e1[_0xc2acdd(0x91)]+')'));});const {defIds:_0x222eb9}=_0x3b22e1;return!_0x222eb9||_0x222eb9[_0x4c2658(0x82)]===0x0||(_0x487914[_0x4c2658(0x14e)]===_0x4c2658(0xe1)&&_0x25b6e4[_0x4c2658(0x169)]&&(_0x25b6e4[_0x4c2658(0x169)]=_0x25b6e4[_0x4c2658(0x169)]+_0x3b22e1[_0x4c2658(0x91)]),Object['entries'](_0x25b6e4)[_0x4c2658(0xb8)](([_0x144cbc,_0x3cb072])=>{const _0x2755d0=_0x4c2658;typeof _0x3cb072==_0x2755d0(0xa0)&&(_0x25b6e4[_0x144cbc]=_0x3cb072[_0x2755d0(0xec)](/url\(#(.*)\)/,_0x2755d0(0x137)+_0x3b22e1['idSuffix']+')'));})),_0x25b6e4;}function _0x36c6d5(_0x5ba678,_0x127ca9){const _0x240dd7=_0xbe9bf4;var _0x4135c8;const {defIds:_0x39e7ce}=_0x127ca9;return!_0x39e7ce||_0x39e7ce['length']===0x0?_0x5ba678:_0x5ba678[_0x240dd7(0x14e)]===_0x240dd7(0xc6)&&((_0x4135c8=_0x5ba678[_0x240dd7(0xcb)])!=null&&_0x4135c8[_0x240dd7(0x82)])?{..._0x5ba678,'children':_0x5ba678[_0x240dd7(0xcb)][_0x240dd7(0x163)](_0x528a05=>typeof _0x528a05[_0x240dd7(0x13d)]['id']==_0x240dd7(0xa0)&&_0x39e7ce&&_0x39e7ce[_0x240dd7(0x9c)](_0x528a05[_0x240dd7(0x13d)]['id'])?{..._0x528a05,'attrs':{..._0x528a05[_0x240dd7(0x13d)],'id':_0x528a05[_0x240dd7(0x13d)]['id']+_0x127ca9[_0x240dd7(0x91)]}}:_0x528a05)}:_0x5ba678;}function _0x524430(){const _0x401a18=_0xbe9bf4;return Math[_0x401a18(0x110)]()[_0x401a18(0x152)](0x24)[_0x401a18(0x9b)](0x2,0x8);}_0x4f0b5a['displayName']=_0xbe9bf4(0x153);const _0x522bb4={'tag':_0xbe9bf4(0x149),'attrs':{'xmlns':_0xbe9bf4(0x8a),'fill':_0xbe9bf4(0x111),'viewBox':_0xbe9bf4(0x80),'width':_0xbe9bf4(0x118),'height':_0xbe9bf4(0x118)},'children':[{'tag':_0xbe9bf4(0x97),'attrs':{'fill':'currentColor','d':_0xbe9bf4(0x159)}},{'tag':_0xbe9bf4(0x97),'attrs':{'fill':_0xbe9bf4(0xf2),'d':_0xbe9bf4(0x12e),'fillRule':_0xbe9bf4(0x130),'clipRule':_0xbe9bf4(0x130)}}]},_0xd21d19=_0x367771[_0xbe9bf4(0x168)](function(_0x113cd4,_0x450b1b){const _0x1a6be0=_0xbe9bf4;return _0x367771[_0x1a6be0(0x116)](_0x4f0b5a,Object[_0x1a6be0(0xf9)]({},_0x113cd4,{'id':_0x1a6be0(0x14f),'ref':_0x450b1b,'icon':_0x522bb4}));});_0xd21d19[_0xbe9bf4(0x126)]='LiveShareIcon';class _0x4e249a extends _0xad28bf['Disposable']{constructor(){const _0x32fc55=_0xbe9bf4;super(...arguments),_0x1f8630(this,_0x32fc55(0xc1),new Set()),_0x1f8630(this,_0x32fc55(0x95),new Set());}[_0xbe9bf4(0xe6)](_0x3878cd){const _0x576967=_0xbe9bf4;return this[_0x576967(0xc1)][_0x576967(0x136)](_0x3878cd),_0xad28bf[_0x576967(0x101)](()=>this[_0x576967(0xc1)]['delete'](_0x3878cd));}[_0xbe9bf4(0x98)](_0x519d21){const _0x237357=_0xbe9bf4;return this[_0x237357(0x95)][_0x237357(0x136)](_0x519d21),_0xad28bf[_0x237357(0x101)](()=>this[_0x237357(0x95)]['delete'](_0x519d21));}[_0xbe9bf4(0xf7)](_0x4677ef){return this['_sharedOperations']['has'](_0x4677ef);}[_0xbe9bf4(0x15b)](_0x148410){const _0x1f784e=_0xbe9bf4;return Array[_0x1f784e(0x9a)](this[_0x1f784e(0x95)])[_0x1f784e(0x163)](_0x4e4eb3=>_0x4e4eb3(_0x148410));}}var _0x24b505=Object[_0xbe9bf4(0xc9)],_0x539090=(_0x73a184,_0x48aea5,_0x2794c8,_0x29a7b9)=>{const _0x51bfa2=_0xbe9bf4;for(var _0x5d966a=_0x29a7b9>0x1?void 0x0:_0x29a7b9?_0x24b505(_0x48aea5,_0x2794c8):_0x48aea5,_0x29b342=_0x73a184[_0x51bfa2(0x82)]-0x1,_0x4a6524;_0x29b342>=0x0;_0x29b342--)(_0x4a6524=_0x73a184[_0x29b342])&&(_0x5d966a=_0x4a6524(_0x5d966a)||_0x5d966a);return _0x5d966a;},_0x3f15d5=(_0x35b93e,_0x48757a)=>(_0x11d054,_0xf32395)=>_0x48757a(_0x11d054,_0xf32395,_0x35b93e);_0x15484b[_0xbe9bf4(0x120)]=class extends _0xad28bf[_0xbe9bf4(0x117)]{constructor(_0x38e0fb,_0x4445f0,_0x29539c){const _0x28302e=_0xbe9bf4;super(),_0x1f8630(this,_0x28302e(0x12b),new Map()),(this[_0x28302e(0x162)]=_0x38e0fb,this['_injector']=_0x4445f0,this[_0x28302e(0xf4)]=_0x29539c,this[_0x28302e(0x129)]());}async[_0xbe9bf4(0xa6)](_0x3c164b){const _0x5e4fe9=_0xbe9bf4;return this[_0x5e4fe9(0x12b)][_0x5e4fe9(0xf3)](_0x3c164b)||await this[_0x5e4fe9(0xf0)](_0x3c164b),this[_0x5e4fe9(0x12b)][_0x5e4fe9(0xfd)](_0x3c164b);}[_0xbe9bf4(0x14c)](_0xbc1771){var _0x266a15;return(_0x266a15=this['_entities']['get'](_0xbc1771))!=null?_0x266a15:null;}[_0xbe9bf4(0x129)](){const _0xd40b76=_0xbe9bf4;this['_univerInstanceService'][_0xd40b76(0xc7)](_0xad28bf[_0xd40b76(0xe2)]['UNIVER_SHEET'])['pipe'](_0x1ab1f9[_0xd40b76(0x167)](this[_0xd40b76(0xa3)]))[_0xd40b76(0x89)](async _0x205791=>{const _0x5002aa=_0xd40b76,_0x10fcdc=_0x205791[_0x5002aa(0x11a)]();this[_0x5002aa(0x12b)][_0x5002aa(0xf3)](_0x10fcdc)||this[_0x5002aa(0xf0)](_0x10fcdc);}),this[_0xd40b76(0x162)][_0xd40b76(0xb5)](_0xad28bf[_0xd40b76(0xe2)]['UNIVER_SHEET'])[_0xd40b76(0x115)](_0x1ab1f9[_0xd40b76(0x167)](this[_0xd40b76(0xa3)]))[_0xd40b76(0x89)](_0x122f3e=>{const _0x477fbb=_0xd40b76,_0x11510a=_0x122f3e[_0x477fbb(0x11a)](),_0x490f2e=this[_0x477fbb(0x12b)]['get'](_0x11510a);_0x490f2e==null||_0x490f2e[_0x477fbb(0x8d)]();});}async[_0xbe9bf4(0xf0)](_0x53921f){const _0x5a56f5=_0xbe9bf4,_0x5ca8bf=await this[_0x5a56f5(0xf4)][_0x5a56f5(0x112)](_0x53921f),_0x15c3e9=this['_injector'][_0x5a56f5(0x134)](_0x15484b[_0x5a56f5(0x107)],_0x53921f,_0x5ca8bf);return _0x15c3e9['init'](),this[_0x5a56f5(0x12b)][_0x5a56f5(0xe4)](_0x53921f,_0x15c3e9),_0x15c3e9;}},_0x15484b['LiveShareController']=_0x539090([_0x3f15d5(0x0,_0xad28bf[_0xbe9bf4(0x86)]),_0x3f15d5(0x1,_0xad28bf['Inject'](_0xad28bf['Injector'])),_0x3f15d5(0x2,_0xad28bf[_0xbe9bf4(0x88)](_0x184063['CollaborationSessionService']))],_0x15484b[_0xbe9bf4(0x120)]);var _0x2df1d9=(_0x3ed648=>(_0x3ed648[_0xbe9bf4(0xc2)]='offline',_0x3ed648[_0xbe9bf4(0x9f)]='idle',_0x3ed648[_0xbe9bf4(0xb3)]=_0xbe9bf4(0xae),_0x3ed648[_0xbe9bf4(0x13e)]=_0xbe9bf4(0xa4),_0x3ed648['PRESENTING']=_0xbe9bf4(0xd0),_0x3ed648))(_0x2df1d9||{});const _0x386fd9=_0xbe9bf4(0x127),_0x2f5eac=0xc8;_0x15484b[_0xbe9bf4(0x107)]=class extends _0xad28bf[_0xbe9bf4(0x117)]{constructor(_0x54391a,_0x1dc3ad,_0x3b3850,_0x19a9ad,_0x488c01){const _0x4ce90d=_0xbe9bf4;super(),_0x1f8630(this,_0x4ce90d(0xda),new _0x21fe1c['BehaviorSubject'](_0x4ce90d(0x164))),_0x1f8630(this,'status$',this[_0x4ce90d(0xda)][_0x4ce90d(0x81)]()),_0x1f8630(this,_0x4ce90d(0x129),!0x1),_0x1f8630(this,_0x4ce90d(0x166),null),_0x1f8630(this,_0x4ce90d(0x99),null),(this[_0x4ce90d(0xc3)]=_0x54391a,this[_0x4ce90d(0xe3)]=_0x1dc3ad,this[_0x4ce90d(0xe8)]=_0x3b3850,this[_0x4ce90d(0x10e)]=_0x19a9ad,this[_0x4ce90d(0x10b)]=_0x488c01);}get[_0xbe9bf4(0x123)](){const _0x2f56f3=_0xbe9bf4;return this['_status$'][_0x2f56f3(0xc5)]();}[_0xbe9bf4(0x8d)](){const _0xe5911d=_0xbe9bf4;var _0x7541c3;(_0x7541c3=this[_0xe5911d(0x166)])==null||_0x7541c3['dispose'](),this['_status$'][_0xe5911d(0x92)](_0xe5911d(0x164)),this[_0xe5911d(0xda)][_0xe5911d(0xa5)]();}[_0xbe9bf4(0x132)](){const _0x38156b=_0xbe9bf4;return this[_0x38156b(0x123)];}[_0xbe9bf4(0x113)](){const _0x1e3271=_0xbe9bf4;this[_0x1e3271(0x129)]||(this[_0x1e3271(0x129)]=!0x0,this[_0x1e3271(0xe3)][_0x1e3271(0x11c)][_0x1e3271(0x115)](_0x1ab1f9['takeUntil'](this['dispose$']))[_0x1e3271(0x89)](_0x461bea=>{const _0x5c436d=_0x1e3271;switch(_0x461bea){case _0x184063['SessionStatus'][_0x5c436d(0xc2)]:this[_0x5c436d(0x11f)]();break;case _0x184063[_0x5c436d(0x106)][_0x5c436d(0x15e)]:this[_0x5c436d(0x12f)]();break;}}),this[_0x1e3271(0xe3)][_0x1e3271(0xb1)][_0x1e3271(0x115)](_0x1ab1f9['takeUntil'](this[_0x1e3271(0xa3)]))[_0x1e3271(0x89)](_0x31d5ce=>{const _0x40be92=_0x1e3271,{eventID:_0x5bece9}=_0x31d5ce;switch(_0x5bece9){case _0x23fdcb[_0x40be92(0x15a)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x31d5ce);break;case _0x23fdcb['CollaborationEvent'][_0x40be92(0x143)]:this[_0x40be92(0xaa)](_0x31d5ce);break;case _0x23fdcb['CollaborationEvent'][_0x40be92(0x108)]:this[_0x40be92(0xdf)]();break;case _0x23fdcb[_0x40be92(0x15a)][_0x40be92(0x14d)]:this[_0x40be92(0x9d)](_0x31d5ce);break;}}));}['tryStartPresenting'](){const _0x423f43=_0xbe9bf4;this[_0x423f43(0xe3)][_0x423f43(0xf8)]({'eventID':_0x23fdcb['CollaborationEvent'][_0x423f43(0x158)],'data':{'unitID':this[_0x423f43(0xc3)],'userID':this[_0x423f43(0xe3)]['getMemberID']()}},this[_0x423f43(0xc3)]);}['stopPresenting'](){const _0x502f05=_0xbe9bf4;this[_0x502f05(0x123)]===_0x502f05(0xd0)&&(this[_0x502f05(0xda)]['next'](_0x502f05(0x164)),this[_0x502f05(0xe3)][_0x502f05(0xf8)]({'eventID':_0x23fdcb[_0x502f05(0x15a)][_0x502f05(0x108)],'data':{'unitID':this[_0x502f05(0xc3)]}},this[_0x502f05(0xc3)]));}['startFollowing'](){const _0x4e9723=_0xbe9bf4;this['_status']==='not-following'&&(this[_0x4e9723(0xda)]['next']('following'),this['_startFollowing']());}[_0xbe9bf4(0x10f)](){const _0x3e730b=_0xbe9bf4;this[_0x3e730b(0x123)]===_0x3e730b(0xae)&&this[_0x3e730b(0x7d)]();}[_0xbe9bf4(0x8e)](_0x13e9f3){const _0x565bc7=_0xbe9bf4,{presenter:_0x2e040f}=_0x13e9f3[_0x565bc7(0x147)],_0x59fb9d=this[_0x565bc7(0xe3)]['getMemberID']();this[_0x565bc7(0x99)]=_0x2e040f,_0x2e040f===_0x59fb9d?(this[_0x565bc7(0x7d)](),this[_0x565bc7(0xe9)]()):this[_0x565bc7(0x123)]!==_0x565bc7(0xa4)&&(this[_0x565bc7(0x83)](),this[_0x565bc7(0x148)]());}['_fetchOperations'](){const _0xad3b41=_0xbe9bf4,_0x521a32={'eventID':_0x23fdcb['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0xad3b41(0xe3)][_0xad3b41(0xf8)](_0x521a32,this[_0xad3b41(0xc3)]);}[_0xbe9bf4(0xdf)](){const _0x126b36=_0xbe9bf4;this[_0x126b36(0x99)]=null,this[_0x126b36(0x123)]!==_0x126b36(0xd0)&&this['_beIdle']();}[_0xbe9bf4(0x9d)](_0x2f6b63){const _0x3e366b=_0xbe9bf4;if(this[_0x3e366b(0x123)]===_0x3e366b(0xae)&&this['_presenter']===_0x2f6b63[_0x3e366b(0x147)][_0x3e366b(0x84)]){const _0x3572fc=_0x23fdcb[_0x3e366b(0x10c)](_0x2f6b63[_0x3e366b(0x147)])['mutations'][_0x3e366b(0xa2)]()[_0x3e366b(0xd6)](_0x4edce5=>_0x4edce5['id']===_0x4b9290[_0x3e366b(0xb0)]['id']);if(_0x3572fc){const _0x57d784=_0x3572fc[_0x3e366b(0xd3)][_0x3e366b(0xc8)],_0x361999=_0x3572fc[_0x3e366b(0xd3)][_0x3e366b(0x8f)]['id'];setTimeout(()=>{const _0x4d797c=_0x3e366b;this[_0x4d797c(0x10b)]['executeCommand'](_0x4b9290[_0x4d797c(0xab)]['id'],{'unitId':_0x57d784,'subUnitId':_0x361999},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x2b7f49=_0xbe9bf4;this[_0x2b7f49(0xda)][_0x2b7f49(0x92)](_0x2b7f49(0xd0));const _0x449997=new Map(),_0x23ba6e=this['_commandDisposable']=new _0xad28bf['DisposableCollection']();_0x23ba6e[_0x2b7f49(0x136)](_0xad28bf[_0x2b7f49(0x101)](()=>{const _0x585681=_0x2b7f49;_0x449997[_0x585681(0xb8)](_0x33406b=>_0x33406b[_0x585681(0xa5)]()),_0x449997[_0x585681(0x85)]();})),_0x23ba6e['add'](this['_commandService'][_0x2b7f49(0x161)](_0x4e9d52=>{const _0x23ac15=_0x2b7f49;var _0xaeea2e;if(_0x4e9d52[_0x23ac15(0x13b)]!==_0xad28bf[_0x23ac15(0x7f)][_0x23ac15(0xf1)]||!this[_0x23ac15(0x10e)][_0x23ac15(0xf7)](_0x4e9d52['id']))return;const {id:_0x2ef754}=_0x4e9d52;let _0xefe72d;_0x449997[_0x23ac15(0xf3)](_0x2ef754)?_0xefe72d=_0x449997[_0x23ac15(0xfd)](_0x2ef754):(_0xefe72d=new _0x21fe1c[(_0x23ac15(0x87))](),_0x449997['set'](_0x2ef754,_0xefe72d),_0xefe72d[_0x23ac15(0x115)](_0x1ab1f9['throttleTime']((_0xaeea2e=this[_0x23ac15(0xe8)][_0x23ac15(0xed)](_0x386fd9))!=null?_0xaeea2e:_0x2f5eac,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2b8941=>{const _0x389a54=_0x23ac15;this[_0x389a54(0xe3)]['send']({'eventID':_0x23fdcb[_0x389a54(0x15a)][_0x389a54(0x143)],'data':{'unitID':this['_unitID'],'operations':{[_0x2b8941['id']]:{'id':_0x2b8941['id'],'params':JSON[_0x389a54(0x13c)](_0x2b8941['params'])}}}},this[_0x389a54(0xc3)]);})),_0xefe72d[_0x23ac15(0x92)](_0x4e9d52);})),this['_liveShareService']['getInitialStates'](this[_0x2b7f49(0xc3)])[_0x2b7f49(0xb8)](_0x18f305=>this[_0x2b7f49(0xe3)][_0x2b7f49(0xf8)]({'eventID':_0x23fdcb[_0x2b7f49(0x15a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2b7f49(0xc3)],'operations':{[_0x18f305['id']]:{'id':_0x18f305['id'],'params':JSON[_0x2b7f49(0x13c)](_0x18f305[_0x2b7f49(0xd3)])}}}},this['_unitID']));}[_0xbe9bf4(0x83)](){const _0x504898=_0xbe9bf4;var _0x938805;this['_status$'][_0x504898(0x92)](_0x504898(0x164)),(_0x938805=this[_0x504898(0x166)])==null||_0x938805['dispose'](),this[_0x504898(0x166)]=null;}[_0xbe9bf4(0x148)](){const _0x8fd9c8=_0xbe9bf4;var _0x4a8e9e;(_0x4a8e9e=this['_commandDisposable'])==null||_0x4a8e9e[_0x8fd9c8(0x8d)](),this[_0x8fd9c8(0xda)][_0x8fd9c8(0x92)]('following');}[_0xbe9bf4(0x109)](){const _0x3485b2=_0xbe9bf4;var _0xf415f2;this['_status$'][_0x3485b2(0x92)]('idle'),(_0xf415f2=this[_0x3485b2(0x166)])==null||_0xf415f2['dispose'](),this[_0x3485b2(0x166)]=null;}[_0xbe9bf4(0x7d)](){const _0x4ef650=_0xbe9bf4;var _0x432442;this[_0x4ef650(0xda)][_0x4ef650(0x92)](_0x4ef650(0xa4)),(_0x432442=this['_commandDisposable'])==null||_0x432442['dispose']();}[_0xbe9bf4(0xaa)](_0x461e9b){const _0x43fecf=_0xbe9bf4;if([_0x43fecf(0xd0),_0x43fecf(0xa4),'offline'][_0x43fecf(0x9c)](this[_0x43fecf(0x123)])||!_0x461e9b[_0x43fecf(0x147)][_0x43fecf(0x14b)]||_0x461e9b[_0x43fecf(0x147)][_0x43fecf(0x14b)]===this[_0x43fecf(0xe3)][_0x43fecf(0xbd)]())return;this[_0x43fecf(0x123)]===_0x43fecf(0x164)&&this[_0x43fecf(0x148)]();const _0x462581=_0x461e9b[_0x43fecf(0x147)][_0x43fecf(0x131)];Object[_0x43fecf(0xb9)](_0x462581)[_0x43fecf(0xb8)](_0x31a749=>{const _0x7ba6a5=_0x43fecf;this[_0x7ba6a5(0x10b)]['executeCommand'](_0x31a749['id'],_0x31a749[_0x7ba6a5(0xd3)]?JSON[_0x7ba6a5(0xd7)](_0x31a749['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x2dab15=_0xbe9bf4;var _0x737a5a;this['_status$']['next']('offline'),(_0x737a5a=this[_0x2dab15(0x166)])==null||_0x737a5a[_0x2dab15(0x8d)]();}[_0xbe9bf4(0x12f)](){const _0x52d539=_0xbe9bf4;this[_0x52d539(0xda)][_0x52d539(0x92)]('idle'),this[_0x52d539(0xd5)]();}},_0x15484b[_0xbe9bf4(0x107)]=_0x539090([_0x3f15d5(0x2,_0xad28bf[_0xbe9bf4(0x160)]),_0x3f15d5(0x3,_0xad28bf[_0xbe9bf4(0x88)](_0x4e249a)),_0x3f15d5(0x4,_0xad28bf[_0xbe9bf4(0xcf)])],_0x15484b[_0xbe9bf4(0x107)]);function _0x266b2d(){const _0x1c9a6e=_0xbe9bf4,_0x460799=_0x302684[_0x1c9a6e(0x155)](_0x15484b[_0x1c9a6e(0x120)]),_0x13bb16=_0x302684['useDependency'](_0xad28bf[_0x1c9a6e(0x86)]),_0x9e9f33=_0x302684['useObservable'](()=>_0x13bb16[_0x1c9a6e(0x12a)](_0xad28bf[_0x1c9a6e(0xe2)][_0x1c9a6e(0x14a)]),void 0x0,!0x1,[]),[_0x2339b7,_0x19b99a]=_0x367771[_0x1c9a6e(0xe5)](null),[_0x5a6848,_0x21e6a4]=_0x367771[_0x1c9a6e(0xe5)](_0x2df1d9[_0x1c9a6e(0x9f)]),_0xd9dbca=_0x367771['useRef'](null);return _0x367771[_0x1c9a6e(0xfb)](()=>(_0x9e9f33&&_0x460799[_0x1c9a6e(0xa6)](_0x9e9f33[_0x1c9a6e(0x11a)]())[_0x1c9a6e(0xca)](_0x29a330=>{const _0x5c3593=_0x1c9a6e;_0x19b99a(_0x29a330),_0xd9dbca[_0x5c3593(0xc0)]=_0x29a330['status$'][_0x5c3593(0x89)](_0x5d41ea=>{_0x21e6a4(_0x5d41ea);});}),()=>{const _0x5850a4=_0x1c9a6e;var _0x2a8c9b;(_0x2a8c9b=_0xd9dbca[_0x5850a4(0xc0)])==null||_0x2a8c9b['unsubscribe'](),_0xd9dbca[_0x5850a4(0xc0)]=null;}),[_0x9e9f33,_0x460799]),_0x2339b7?_0x259a70['jsx'](_0x2daac7[_0x1c9a6e(0xbf)],{'align':_0x1c9a6e(0x8b),'disabled':_0x5a6848===_0x2df1d9['OFFLINE'],'className':_0x1c9a6e(0x10a),'overlay':_0x259a70[_0x1c9a6e(0xe0)](_0x3aa83d,{'status':_0x5a6848,'coordinator':_0x2339b7}),'children':_0x259a70['jsx']('button',{'className':_0x2daac7[_0x1c9a6e(0xd2)](_0x1c9a6e(0x128),{'univer-cursor-not-allowed':_0x5a6848===_0x2df1d9[_0x1c9a6e(0xc2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5a6848!==_0x2df1d9[_0x1c9a6e(0xc2)]}),'type':_0x1c9a6e(0x145),'children':_0x259a70[_0x1c9a6e(0xe0)](_0xd21d19,{'className':'univer-size-4'})})}):null;}function _0x3aa83d(_0x39460f){const _0x4cce2f=_0xbe9bf4,{status:_0x392eae,coordinator:_0x2eba4d}=_0x39460f;switch(_0x392eae){case _0x2df1d9[_0x4cce2f(0x9f)]:return _0x259a70['jsx'](_0x201056,{'coordinator':_0x2eba4d});case _0x2df1d9['FOLLOWING']:return _0x259a70['jsx'](_0x31523c,{'coordinator':_0x2eba4d});case _0x2df1d9[_0x4cce2f(0x13e)]:return _0x259a70['jsx'](_0x11cc64,{'coordinator':_0x2eba4d});case _0x2df1d9[_0x4cce2f(0xc2)]:return _0x259a70[_0x4cce2f(0xe0)](_0x3f4efa,{});case _0x2df1d9[_0x4cce2f(0xac)]:return _0x259a70[_0x4cce2f(0xe0)](_0x5f0e24,{'coordinator':_0x2eba4d});default:return null;}}function _0x201056(_0x5986e0){const _0x3605a2=_0xbe9bf4,{coordinator:_0x47f0f7}=_0x5986e0;return _0x259a70[_0x3605a2(0x7e)](_0x259a70[_0x3605a2(0x151)],{'children':[_0x259a70['jsx'](_0x3605a2(0xf5),{'className':_0x3605a2(0xaf),'children':'Present\x20this\x20document'}),_0x259a70[_0x3605a2(0xe0)](_0x2daac7['Button'],{'onClick':()=>_0x47f0f7[_0x3605a2(0x93)](),'children':_0x3605a2(0x8c)})]});}function _0x31523c(_0x1978c9){const _0x4e0a5b=_0xbe9bf4,{coordinator:_0x309359}=_0x1978c9;return _0x259a70['jsxs'](_0x259a70[_0x4e0a5b(0x151)],{'children':[_0x259a70['jsx'](_0x4e0a5b(0xf5),{'className':_0x4e0a5b(0xaf),'children':_0x4e0a5b(0x15c)}),_0x259a70['jsx'](_0x2daac7['Button'],{'onClick':()=>_0x309359[_0x4e0a5b(0x10f)](),'children':_0x4e0a5b(0x15d)})]});}function _0x11cc64(_0x5dcebb){const _0xa82335=_0xbe9bf4,{coordinator:_0x135955}=_0x5dcebb;return _0x259a70[_0xa82335(0x7e)](_0x259a70[_0xa82335(0x151)],{'children':[_0x259a70[_0xa82335(0xe0)](_0xa82335(0xf5),{'className':_0xa82335(0xaf),'children':_0xa82335(0xbb)}),_0x259a70[_0xa82335(0xe0)](_0x2daac7[_0xa82335(0xad)],{'variant':_0xa82335(0xd4),'onClick':()=>_0x135955[_0xa82335(0x133)](),'children':_0xa82335(0xdc)})]});}function _0x5f0e24(_0x2d9892){const _0x39cc83=_0xbe9bf4,{coordinator:_0x5e05e3}=_0x2d9892;return _0x259a70[_0x39cc83(0x7e)](_0x259a70[_0x39cc83(0x151)],{'children':[_0x259a70['jsx']('div',{'className':_0x39cc83(0xaf),'children':_0x39cc83(0x90)}),_0x259a70[_0x39cc83(0xe0)](_0x2daac7[_0x39cc83(0xad)],{'variant':_0x39cc83(0x103),'onClick':()=>_0x5e05e3['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x3f4efa(){const _0x3f1949=_0xbe9bf4;return _0x259a70[_0x3f1949(0xe0)](_0x259a70[_0x3f1949(0x151)],{'children':'You\x27are\x20offline.'});}var _0x2938e7=Object[_0xbe9bf4(0xc9)],_0x3fc5b9=(_0x2dacdc,_0x39e0de,_0x57e65e,_0x205f67)=>{for(var _0x112f05=_0x205f67>0x1?void 0x0:_0x205f67?_0x2938e7(_0x39e0de,_0x57e65e):_0x39e0de,_0x3d0183=_0x2dacdc['length']-0x1,_0xf80130;_0x3d0183>=0x0;_0x3d0183--)(_0xf80130=_0x2dacdc[_0x3d0183])&&(_0x112f05=_0xf80130(_0x112f05)||_0x112f05);return _0x112f05;},_0x536c8a=(_0x23940e,_0x2a5889)=>(_0x186061,_0x23a8de)=>_0x2a5889(_0x186061,_0x23a8de,_0x23940e);_0x15484b[_0xbe9bf4(0xd1)]=class extends _0xad28bf['Disposable']{constructor(_0x11ef87,_0x1dd891){const _0x4c191b=_0xbe9bf4;super(),this[_0x4c191b(0xbc)]=_0x11ef87,this[_0x4c191b(0x125)]=_0x1dd891,this[_0x4c191b(0xea)]();}[_0xbe9bf4(0xea)](){const _0x1f8d74=_0xbe9bf4;this[_0x1f8d74(0x138)](this[_0x1f8d74(0x125)][_0x1f8d74(0xf6)](_0x302684[_0x1f8d74(0xd9)][_0x1f8d74(0xb2)],()=>_0x302684[_0x1f8d74(0xb6)](_0x266b2d,this['_injector'])));}},_0x15484b[_0xbe9bf4(0xd1)]=_0x3fc5b9([_0x536c8a(0x0,_0xad28bf[_0xbe9bf4(0x88)](_0xad28bf[_0xbe9bf4(0x142)])),_0x536c8a(0x1,_0x302684[_0xbe9bf4(0x154)])],_0x15484b[_0xbe9bf4(0xd1)]);const _0x404193=_0xbe9bf4(0x12d),_0x4046ef={};var _0x375116=Object['getOwnPropertyDescriptor'],_0x3710b9=(_0x15fe8d,_0x61f760,_0x27d22c,_0x4c6cdd)=>{const _0x4a554c=_0xbe9bf4;for(var _0x4f6240=_0x4c6cdd>0x1?void 0x0:_0x4c6cdd?_0x375116(_0x61f760,_0x27d22c):_0x61f760,_0x286470=_0x15fe8d[_0x4a554c(0x82)]-0x1,_0x10884f;_0x286470>=0x0;_0x286470--)(_0x10884f=_0x15fe8d[_0x286470])&&(_0x4f6240=_0x10884f(_0x4f6240)||_0x4f6240);return _0x4f6240;},_0xd005ba=(_0x3f1381,_0x2b08d7)=>(_0x5ad896,_0x4007e5)=>_0x2b08d7(_0x5ad896,_0x4007e5,_0x3f1381);let _0x5c7420=class extends _0xad28bf[_0xbe9bf4(0x146)]{constructor(_0x25ec83){const _0x16445d=_0xbe9bf4;super(),this[_0x16445d(0x10e)]=_0x25ec83,this[_0x16445d(0x129)]();}[_0xbe9bf4(0x129)](){const _0x240bab=_0xbe9bf4;[_0x982dc2[_0x240bab(0xfa)]['id'],_0x982dc2['SetScrollOperation']['id'],_0x4b9290[_0x240bab(0xab)]['id']][_0x240bab(0xb8)](_0x15152a=>{const _0x106cf7=_0x240bab;this[_0x106cf7(0x138)](this[_0x106cf7(0x10e)][_0x106cf7(0xe6)](_0x15152a));});}};_0x5c7420=_0x3710b9([_0xd005ba(0x0,_0xad28bf[_0xbe9bf4(0x88)](_0x4e249a))],_0x5c7420);var _0x234606=Object['defineProperty'],_0x33c9c3=Object[_0xbe9bf4(0xc9)],_0x4b8223=(_0x2fd2a3,_0x2d2f36,_0x3380f4)=>_0x2d2f36 in _0x2fd2a3?_0x234606(_0x2fd2a3,_0x2d2f36,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3380f4}):_0x2fd2a3[_0x2d2f36]=_0x3380f4,_0x5bf453=(_0x2173ee,_0x1d2c2d,_0x42f8a1,_0x3a8503)=>{for(var _0x54dd43=_0x3a8503>0x1?void 0x0:_0x3a8503?_0x33c9c3(_0x1d2c2d,_0x42f8a1):_0x1d2c2d,_0xcba5b6=_0x2173ee['length']-0x1,_0x873f45;_0xcba5b6>=0x0;_0xcba5b6--)(_0x873f45=_0x2173ee[_0xcba5b6])&&(_0x54dd43=_0x873f45(_0x54dd43)||_0x54dd43);return _0x54dd43;},_0x40e490=(_0x51fa50,_0x3662da)=>(_0x55ba3f,_0xbbcf70)=>_0x3662da(_0x55ba3f,_0xbbcf70,_0x51fa50),_0x1f3466=(_0x5d5096,_0x35d47c,_0xdf5082)=>_0x4b8223(_0x5d5096,typeof _0x35d47c!=_0xbe9bf4(0x13f)?_0x35d47c+'':_0x35d47c,_0xdf5082);const _0x15a5af=_0xbe9bf4(0xde);_0x15484b['UniverLiveSharePlugin']=class extends _0xad28bf[_0xbe9bf4(0x94)]{constructor(_0x4a5f3d=_0x4046ef,_0x346470,_0x21f166){const _0x33fcf7=_0xbe9bf4;super(),this[_0x33fcf7(0x12c)]=_0x4a5f3d,this[_0x33fcf7(0xbc)]=_0x346470,this[_0x33fcf7(0xe8)]=_0x21f166;const {..._0xe391e2}=_0xad28bf['merge']({},_0x4046ef,this['_config']);this[_0x33fcf7(0xe8)][_0x33fcf7(0x150)](_0x404193,_0xe391e2);}['onStarting'](){const _0x3dc4b9=_0xbe9bf4;_0xad28bf[_0x3dc4b9(0xb7)](this[_0x3dc4b9(0xbc)],_0xad28bf[_0x3dc4b9(0x104)]([[_0x4e249a],[_0x15484b[_0x3dc4b9(0x120)]],[_0x5c7420],[_0x15484b[_0x3dc4b9(0xd1)]]],this['_config'][_0x3dc4b9(0x122)])),_0xad28bf[_0x3dc4b9(0xb4)](this[_0x3dc4b9(0xbc)],[[_0x5c7420]]);}[_0xbe9bf4(0x140)](){const _0x6a91e0=_0xbe9bf4;_0xad28bf['touchDependencies'](this[_0x6a91e0(0xbc)],[[_0x15484b[_0x6a91e0(0xd1)]]]);}},_0x1f3466(_0x15484b[_0xbe9bf4(0x11e)],_0xbe9bf4(0x13b),_0xad28bf['UniverInstanceType'][_0xbe9bf4(0xa1)]),_0x1f3466(_0x15484b['UniverLiveSharePlugin'],'pluginName',_0x15a5af),_0x15484b[_0xbe9bf4(0x11e)]=_0x5bf453([_0xad28bf['DependentOn'](_0x184063['UniverCollaborationClientPlugin']),_0x40e490(0x1,_0xad28bf['Inject'](_0xad28bf[_0xbe9bf4(0x142)])),_0x40e490(0x2,_0xad28bf[_0xbe9bf4(0x160)])],_0x15484b[_0xbe9bf4(0x11e)]),_0x15484b[_0xbe9bf4(0x10d)]=_0x266b2d,_0x15484b['LiveShareService']=_0x4e249a,_0x15484b['LiveShareStatus']=_0x2df1d9,Object['defineProperty'](_0x15484b,Symbol['toStringTag'],{'value':'Module'});}));function _0x5c10(){const _0x5e9dee=['map','idle','1403952dsrDhV','_commandDisposable','takeUntil','forwardRef','xlink:href','_stopFollowing','jsxs','CommandType','0\x200\x2017\x2017','asObservable','length','_stopPresenting','memberID','clear','IUniverInstanceService','Subject','Inject','subscribe','http://www.w3.org/2000/svg','end','Start','dispose','_handleNewHost','sheet','You\x27re\x20presenting\x20the\x20document','idSuffix','next','tryStartPresenting','Plugin','_reporters','trim','path','registerInitialStateReporter','_presenter','from','substring','includes','_handleNewChangeSets','@univerjs-pro/collaboration','IDLE','string','UNIVER_UNKNOWN','reverse','dispose$','not-following','complete','getLiveShareCoordinator','78rUzLyl','exports','defIds','_handleOperation','SetWorksheetActiveOperation','PRESENTING','Button','following','univer-mb-3\x20univer-w-full\x20univer-text-sm','InsertSheetMutation','event$','HEADER_MENU','FOLLOWING','touchDependencies','getTypeOfUnitDisposed$','connectInjector','registerDependencies','forEach','values','2nKZPkP','You\x27re\x20not\x20following\x20the\x20presenter','_injector','getMemberID','UniverUi','Dropdown','current','_sharedOperations','OFFLINE','_unitID','React','getValue','defs','getTypeOfUnitAdded$','unitId','getOwnPropertyDescriptor','then','children','UniverProCollaborationClient','@univerjs/core','1974192dHYhZY','ICommandService','presenting','DesktopLiveShareController','clsx','params','text','_fetchOperations','find','parse','@univerjs/sheets','BuiltInUIPart','_status$','rxjs','Start\x20following','rxjs/operators','UNIVER_LIVE_SHARE_PLUGIN','_handleTerminate','jsx','use','UniverInstanceType','_collabSession','set','useState','registerSharedOperation','225355tIXvgD','_configService','_startPresenting','_mountLiveShare','UniverProCollaboration','replace','getConfig','univerjs-icon\x20univerjs-icon-','@univerjs/ui','_startLiveShareCoordinator','OPERATION','currentColor','has','_collabSessionService','div','registerComponent','shouldShareOperation','send','assign','SetZoomRatioOperation','useEffect','UniverDesign','get','1755477ayAFEN','fill','@univerjs-pro/collaboration-client','toDisposable','entries','default','mergeOverrideWithDependencies','@univerjs/design','SessionStatus','LiveShareCoordinator','LIVESHARE_TERMINATE','_beIdle','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','_commandService','parseProtocolChangeset','LiveShare','_liveShareService','stopFollowing','random','none','requireSession','init','mask','pipe','createElement','RxDisposable','1em','@univerjs/sheets-ui','getUnitId','colorChannel1','sessionStatus$','7IfPcUF','UniverLiveSharePlugin','_handleOffline','LiveShareController','operators','override','_status','10954520RMhQpW','_uiPartsService','displayName','SAME_OPERATION_SHARE_INTERVAL','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_init','getCurrentTypeOfUnit$','_entities','_config','live-share.config','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','_handleOnline','evenodd','operations','getStatus','startFollowing','createInstance','UniverProLiveShare','add','url(#$1','disposeWithMe','amd','111438zJMjXR','type','stringify','attrs','NOT_FOLLOWING','symbol','onRendered','react/jsx-runtime','Injector','LIVESHARE_OPERATION','425965jelHrE','button','Disposable','data','_startFollowing','svg','UNIVER_SHEET','presenter','getLiveShareCoordinatorSync','NEW_CHANGESETS','tag','live-share-icon','setConfig','Fragment','toString','UniverIcon','IUIPartsService','useDependency','object','function','LIVESHARE_REQUEST_HOST','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','CollaborationEvent','getInitialStates','You\x27re\x20following\x20the\x20presenter','Stop\x20following','ONLINE','UniverSheets','IConfigService','onCommandExecuted','_univerInstanceService'];_0x5c10=function(){return _0x5e9dee;};return _0x5c10();}
1
+ function _0x161b(_0x1dbaf4,_0x3f0613){const _0x4552ac=_0x4552();return _0x161b=function(_0x161bb5,_0x407708){_0x161bb5=_0x161bb5-0x170;let _0x4363d5=_0x4552ac[_0x161bb5];return _0x4363d5;},_0x161b(_0x1dbaf4,_0x3f0613);}function _0x4552(){const _0x546c9a=['PRESENTING','displayName','onCommandExecuted','executeCommand','none','_liveShareService','885fSmqUe','BehaviorSubject','_presenter','LIVESHARE_NEW_HOST','DesktopLiveShareController','_commandDisposable','SetWorksheetActiveOperation','_mountLiveShare','status$','UniverSheetsUi','FOLLOWING','clear','671qXwNzI','@univerjs/core','LiveShareStatus','171LwpKtW','LiveShare','idSuffix','56412VFmRmV','_collabSession','throttleTime','Inject','defIds','SAME_OPERATION_SHARE_INTERVAL','@univerjs/ui','_handleNewChangeSets','@univerjs-pro/collaboration','rxjs/operators','memberID','colorChannel1','type','mergeOverrideWithDependencies','attrs','LIVESHARE_OPERATION','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','jsx','toString','125NkJyCB','@univerjs/sheets','sheet','UniverLiveSharePlugin','univer-mb-3\x20univer-w-full\x20univer-text-sm','getCurrentTypeOfUnit$','registerDependencies','defineProperty','HEADER_MENU','_entities','amd','fill','set','useState','Present\x20this\x20document','_startPresenting','operators','registerComponent','override','tryStartPresenting','params','_config','currentColor','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Button','useDependency','getTypeOfUnitAdded$','takeUntil','getStatus','OFFLINE','IConfigService','shouldShareOperation','IUIPartsService','pluginName','delete','clsx','http://www.w3.org/2000/svg','CollaborationSessionService','react/jsx-runtime','dispose$','DependentOn','evenodd','14rEiPTB','_collabSessionService','event$','find','presenting','subscribe','RxDisposable','send','mutations','_stopPresenting','_sharedOperations','registerSharedOperation','101GwGrNe','getOwnPropertyDescriptor','toStringTag','_unitID','path','getLiveShareCoordinatorSync','_handleOnline','touchDependencies','UniverCollaborationClientPlugin','148290jNCRcQ','NOT_FOLLOWING','_handleOffline','jsxs','offline','idle','_injector','symbol','LIVESHARE_TERMINATE','React','_startLiveShareCoordinator','get','parse','56kpNdCl','text','assign','next','UniverIcon','pipe','disposeWithMe','2495103EdfGZb','toDisposable','Module','ICommandService','stringify','svg','add','UniverSheets','react','rxjs','IDLE','complete','1em','SetScrollOperation','_commandService','live-share.config','_reporters','Stop\x20presenting','getValue','end','Dropdown','Start\x20following','0\x200\x2017\x2017','_configService','replace','string','dispose','init','_startFollowing','has','@univerjs/design','@univerjs-pro/collaboration-client','default','onRendered','map','button','_handleTerminate','You\x27re\x20not\x20following\x20the\x20presenter','_univerInstanceService','asObservable','current','_fetchOperations','xlink:href','mask','forwardRef','createElement','Fragment','_beIdle','Plugin','forEach','You\x27re\x20following\x20the\x20presenter','63749kXfDjR','LiveShareController','getLiveShareCoordinator','Disposable','NEW_CHANGESETS','getMemberID','live-share-icon','getUnitId','stopFollowing','requireSession','UniverInstanceType','BuiltInUIPart','createInstance','@univerjs/sheets-ui','UniverProCollaboration','tag','div','UNIVER_SHEET','operations','function','includes','DisposableCollection','startFollowing','entries','random','OPERATION','onStarting','setConfig','not-following','You\x27are\x20offline.','_status$','connectInjector','UniverProLiveShare','use','_init','Injector','values','_stopFollowing','trim','data','following','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','UniverProCollaborationClient','_status','_uiPartsService','UniverDesign','CollaborationEvent','LiveShareCoordinator','children','defs','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','useRef','length','useEffect','2458LfaQDc','getConfig','4492qjRCYQ','CommandType','UNIVER_UNKNOWN','InsertSheetMutation','36996XXKHSl','url(#$1','LIVESHARE_FETCH_OPERATIONS'];_0x4552=function(){return _0x546c9a;};return _0x4552();}(function(_0x2f6a00,_0xf9b080){const _0x4f14a7=_0x161b,_0x465fe3=_0x2f6a00();while(!![]){try{const _0x4efc34=parseInt(_0x4f14a7(0x184))/0x1*(parseInt(_0x4f14a7(0x20a))/0x2)+-parseInt(_0x4f14a7(0x219))/0x3*(-parseInt(_0x4f14a7(0x20c))/0x4)+-parseInt(_0x4f14a7(0x23e))/0x5*(-parseInt(_0x4f14a7(0x210))/0x6)+parseInt(_0x4f14a7(0x1d4))/0x7*(-parseInt(_0x4f14a7(0x19a))/0x8)+-parseInt(_0x4f14a7(0x228))/0x9*(parseInt(_0x4f14a7(0x18d))/0xa)+-parseInt(_0x4f14a7(0x225))/0xb*(parseInt(_0x4f14a7(0x22b))/0xc)+parseInt(_0x4f14a7(0x1a1))/0xd*(parseInt(_0x4f14a7(0x178))/0xe);if(_0x4efc34===_0xf9b080)break;else _0x465fe3['push'](_0x465fe3['shift']());}catch(_0x1623d5){_0x465fe3['push'](_0x465fe3['shift']());}}}(_0x4552,0x29512),function(_0x3c3bd0,_0x3866ae){const _0x5d5dda=_0x161b;typeof exports=='object'&&typeof module<'u'?_0x3866ae(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==_0x5d5dda(0x1e7)&&define[_0x5d5dda(0x248)]?define(['exports',_0x5d5dda(0x226),_0x5d5dda(0x231),_0x5d5dda(0x174),_0x5d5dda(0x1bf),_0x5d5dda(0x1a9),_0x5d5dda(0x233),_0x5d5dda(0x1c0),_0x5d5dda(0x23f),'rxjs',_0x5d5dda(0x234),_0x5d5dda(0x1e1)],_0x3866ae):(_0x3c3bd0=typeof globalThis<'u'?globalThis:_0x3c3bd0||self,_0x3866ae(_0x3c3bd0[_0x5d5dda(0x1f4)]={},_0x3c3bd0['UniverCore'],_0x3c3bd0['UniverUi'],_0x3c3bd0['React'],_0x3c3bd0[_0x5d5dda(0x201)],_0x3c3bd0[_0x5d5dda(0x196)],_0x3c3bd0[_0x5d5dda(0x1e2)],_0x3c3bd0[_0x5d5dda(0x1fe)],_0x3c3bd0[_0x5d5dda(0x1a8)],_0x3c3bd0[_0x5d5dda(0x1aa)],_0x3c3bd0[_0x5d5dda(0x1aa)][_0x5d5dda(0x24e)],_0x3c3bd0[_0x5d5dda(0x222)]));}(this,function(_0x2491c7,_0x4042ad,_0xb7e494,_0x487dbc,_0x1656cf,_0x284080,_0x15dce3,_0x1c5d61,_0x1b9810,_0x301d6d,_0x53bd07,_0x5dafdd){'use strict';const _0xe07925=_0x161b;var _0x5ac212=Object[_0xe07925(0x245)],_0x2c39bd=(_0x27ad98,_0x3050a4,_0x24b607)=>_0x3050a4 in _0x27ad98?_0x5ac212(_0x27ad98,_0x3050a4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24b607}):_0x27ad98[_0x3050a4]=_0x24b607,_0x2b73de=(_0x59a309,_0x252e74,_0x4fafbe)=>_0x2c39bd(_0x59a309,typeof _0x252e74!=_0xe07925(0x194)?_0x252e74+'':_0x252e74,_0x4fafbe);function _0x4b1ba9({ref:_0x5983d5,..._0x5a1d5d}){const _0x20edaf=_0xe07925,{icon:_0x49236d,id:_0x352701,className:_0x2567f0,extend:_0x55a75d,..._0x1953c8}=_0x5a1d5d,_0x5a4480=('univerjs-icon\x20univerjs-icon-'+_0x352701+'\x20'+(_0x2567f0||''))[_0x20edaf(0x1fa)](),_0x27fda2=_0x284080[_0x20edaf(0x207)]('_'+_0x4f9bdc());return _0x353424(_0x49236d,''+_0x352701,{'defIds':_0x49236d[_0x20edaf(0x22f)],'idSuffix':_0x27fda2[_0x20edaf(0x1c9)]},{'ref':_0x5983d5,'className':_0x5a4480,..._0x1953c8},_0x55a75d);}function _0x353424(_0x57db41,_0x5b4b4f,_0x42d6a2,_0x5c62fd,_0x2f0612){const _0x272a27=_0xe07925;return _0x284080[_0x272a27(0x1ce)](_0x57db41[_0x272a27(0x1e3)],{'key':_0x5b4b4f,..._0x47b9fd(_0x57db41,_0x42d6a2,_0x2f0612),..._0x5c62fd},(_0x131415(_0x57db41,_0x42d6a2)[_0x272a27(0x204)]||[])[_0x272a27(0x1c3)]((_0xe13379,_0x410000)=>_0x353424(_0xe13379,_0x5b4b4f+'-'+_0x57db41[_0x272a27(0x1e3)]+'-'+_0x410000,_0x42d6a2,void 0x0,_0x2f0612)));}function _0x47b9fd(_0x315a14,_0x311eeb,_0x38ef44){const _0x5df7d6=_0xe07925,_0x466af4={..._0x315a14[_0x5df7d6(0x239)]};_0x38ef44!=null&&_0x38ef44['colorChannel1']&&_0x466af4[_0x5df7d6(0x249)]===_0x5df7d6(0x236)&&(_0x466af4[_0x5df7d6(0x249)]=_0x38ef44[_0x5df7d6(0x236)]),_0x315a14[_0x5df7d6(0x1e3)]===_0x5df7d6(0x1cc)&&_0x466af4['id']&&(_0x466af4['id']=_0x466af4['id']+_0x311eeb[_0x5df7d6(0x22a)]),Object[_0x5df7d6(0x1eb)](_0x466af4)['forEach'](([_0x332d3a,_0x30cf8f])=>{const _0x3bcbc7=_0x5df7d6;_0x332d3a===_0x3bcbc7(0x1cc)&&typeof _0x30cf8f=='string'&&(_0x466af4[_0x332d3a]=_0x30cf8f['replace'](/url\(#(.*)\)/,_0x3bcbc7(0x211)+_0x311eeb[_0x3bcbc7(0x22a)]+')'));});const {defIds:_0x4f6957}=_0x311eeb;return!_0x4f6957||_0x4f6957[_0x5df7d6(0x208)]===0x0||(_0x315a14['tag']===_0x5df7d6(0x1f5)&&_0x466af4[_0x5df7d6(0x1cb)]&&(_0x466af4['xlink:href']=_0x466af4[_0x5df7d6(0x1cb)]+_0x311eeb[_0x5df7d6(0x22a)]),Object[_0x5df7d6(0x1eb)](_0x466af4)[_0x5df7d6(0x1d2)](([_0x4e1edb,_0x10d3f9])=>{const _0x44ecbf=_0x5df7d6;typeof _0x10d3f9==_0x44ecbf(0x1ba)&&(_0x466af4[_0x4e1edb]=_0x10d3f9[_0x44ecbf(0x1b9)](/url\(#(.*)\)/,_0x44ecbf(0x211)+_0x311eeb[_0x44ecbf(0x22a)]+')'));})),_0x466af4;}function _0x131415(_0x50566f,_0x3641fd){const _0x44d6c6=_0xe07925;var _0x116a62;const {defIds:_0x477488}=_0x3641fd;return!_0x477488||_0x477488['length']===0x0?_0x50566f:_0x50566f[_0x44d6c6(0x1e3)]===_0x44d6c6(0x205)&&((_0x116a62=_0x50566f[_0x44d6c6(0x204)])!=null&&_0x116a62[_0x44d6c6(0x208)])?{..._0x50566f,'children':_0x50566f['children'][_0x44d6c6(0x1c3)](_0x16fc6b=>typeof _0x16fc6b[_0x44d6c6(0x239)]['id']=='string'&&_0x477488&&_0x477488[_0x44d6c6(0x1e8)](_0x16fc6b[_0x44d6c6(0x239)]['id'])?{..._0x16fc6b,'attrs':{..._0x16fc6b[_0x44d6c6(0x239)],'id':_0x16fc6b['attrs']['id']+_0x3641fd[_0x44d6c6(0x22a)]}}:_0x16fc6b)}:_0x50566f;}function _0x4f9bdc(){const _0x474af0=_0xe07925;return Math[_0x474af0(0x1ec)]()[_0x474af0(0x23d)](0x24)['substring'](0x2,0x8);}_0x4b1ba9[_0xe07925(0x214)]=_0xe07925(0x19e);const _0x4931fd={'tag':_0xe07925(0x1a6),'attrs':{'xmlns':_0xe07925(0x172),'fill':_0xe07925(0x217),'viewBox':_0xe07925(0x1b7),'width':_0xe07925(0x1ad),'height':_0xe07925(0x1ad)},'children':[{'tag':_0xe07925(0x188),'attrs':{'fill':_0xe07925(0x254),'d':_0xe07925(0x23b)}},{'tag':_0xe07925(0x188),'attrs':{'fill':_0xe07925(0x254),'d':_0xe07925(0x1fd),'fillRule':'evenodd','clipRule':_0xe07925(0x177)}}]},_0x4eee83=_0x284080[_0xe07925(0x1cd)](function(_0x11eb02,_0x16ea42){const _0x478e7c=_0xe07925;return _0x284080[_0x478e7c(0x1ce)](_0x4b1ba9,Object[_0x478e7c(0x19c)]({},_0x11eb02,{'id':_0x478e7c(0x1da),'ref':_0x16ea42,'icon':_0x4931fd}));});_0x4eee83[_0xe07925(0x214)]='LiveShareIcon';class _0x349095 extends _0x4042ad[_0xe07925(0x1d7)]{constructor(){const _0x24a0b5=_0xe07925;super(...arguments),_0x2b73de(this,'_sharedOperations',new Set()),_0x2b73de(this,_0x24a0b5(0x1b1),new Set());}[_0xe07925(0x183)](_0x49bb4a){const _0x326be5=_0xe07925;return this['_sharedOperations'][_0x326be5(0x1a7)](_0x49bb4a),_0x4042ad[_0x326be5(0x1a2)](()=>this[_0x326be5(0x182)]['delete'](_0x49bb4a));}['registerInitialStateReporter'](_0x3f5bd0){const _0x160754=_0xe07925;return this[_0x160754(0x1b1)][_0x160754(0x1a7)](_0x3f5bd0),_0x4042ad[_0x160754(0x1a2)](()=>this[_0x160754(0x1b1)][_0x160754(0x170)](_0x3f5bd0));}[_0xe07925(0x25d)](_0x505b49){const _0xf95b4f=_0xe07925;return this[_0xf95b4f(0x182)][_0xf95b4f(0x1be)](_0x505b49);}['getInitialStates'](_0x5eaa43){const _0x363788=_0xe07925;return Array['from'](this[_0x363788(0x1b1)])['map'](_0x5a37e5=>_0x5a37e5(_0x5eaa43));}}var _0x14874e=Object[_0xe07925(0x185)],_0x2507fd=(_0x57586b,_0x57f2ce,_0x337c3b,_0x4afa70)=>{const _0x5c33f9=_0xe07925;for(var _0x22b41d=_0x4afa70>0x1?void 0x0:_0x4afa70?_0x14874e(_0x57f2ce,_0x337c3b):_0x57f2ce,_0x1373fe=_0x57586b[_0x5c33f9(0x208)]-0x1,_0x12ff93;_0x1373fe>=0x0;_0x1373fe--)(_0x12ff93=_0x57586b[_0x1373fe])&&(_0x22b41d=_0x12ff93(_0x22b41d)||_0x22b41d);return _0x22b41d;},_0x3586da=(_0x306d1a,_0x5d141e)=>(_0x20e10c,_0xff81b2)=>_0x5d141e(_0x20e10c,_0xff81b2,_0x306d1a);_0x2491c7[_0xe07925(0x1d5)]=class extends _0x4042ad[_0xe07925(0x17e)]{constructor(_0x66ae9,_0x207b91,_0x372d17){const _0x1bfd0a=_0xe07925;super(),_0x2b73de(this,_0x1bfd0a(0x247),new Map()),(this[_0x1bfd0a(0x1c7)]=_0x66ae9,this[_0x1bfd0a(0x193)]=_0x207b91,this[_0x1bfd0a(0x179)]=_0x372d17,this[_0x1bfd0a(0x1f6)]());}async['getLiveShareCoordinator'](_0x282a21){const _0x3e82cd=_0xe07925;return this[_0x3e82cd(0x247)][_0x3e82cd(0x1be)](_0x282a21)||await this[_0x3e82cd(0x197)](_0x282a21),this[_0x3e82cd(0x247)][_0x3e82cd(0x198)](_0x282a21);}[_0xe07925(0x189)](_0x271b36){const _0x2da313=_0xe07925;var _0x20b8d7;return(_0x20b8d7=this[_0x2da313(0x247)][_0x2da313(0x198)](_0x271b36))!=null?_0x20b8d7:null;}[_0xe07925(0x1f6)](){const _0x451f49=_0xe07925;this['_univerInstanceService'][_0x451f49(0x258)](_0x4042ad[_0x451f49(0x1de)]['UNIVER_SHEET'])['pipe'](_0x53bd07[_0x451f49(0x259)](this['dispose$']))['subscribe'](async _0x56a978=>{const _0x217198=_0x451f49,_0x2002e7=_0x56a978[_0x217198(0x1db)]();this[_0x217198(0x247)][_0x217198(0x1be)](_0x2002e7)||this[_0x217198(0x197)](_0x2002e7);}),this[_0x451f49(0x1c7)]['getTypeOfUnitDisposed$'](_0x4042ad[_0x451f49(0x1de)][_0x451f49(0x1e5)])[_0x451f49(0x19f)](_0x53bd07[_0x451f49(0x259)](this[_0x451f49(0x175)]))[_0x451f49(0x17d)](_0x53db28=>{const _0x2f6fe5=_0x451f49,_0x3880d7=_0x53db28[_0x2f6fe5(0x1db)](),_0x276077=this['_entities'][_0x2f6fe5(0x198)](_0x3880d7);_0x276077==null||_0x276077['dispose']();});}async[_0xe07925(0x197)](_0x4ffc50){const _0x4ddd44=_0xe07925,_0x42482d=await this['_collabSessionService'][_0x4ddd44(0x1dd)](_0x4ffc50),_0x470cf0=this[_0x4ddd44(0x193)][_0x4ddd44(0x1e0)](_0x2491c7[_0x4ddd44(0x203)],_0x4ffc50,_0x42482d);return _0x470cf0[_0x4ddd44(0x1bc)](),this[_0x4ddd44(0x247)][_0x4ddd44(0x24a)](_0x4ffc50,_0x470cf0),_0x470cf0;}},_0x2491c7['LiveShareController']=_0x2507fd([_0x3586da(0x0,_0x4042ad['IUniverInstanceService']),_0x3586da(0x1,_0x4042ad[_0xe07925(0x22e)](_0x4042ad[_0xe07925(0x1f7)])),_0x3586da(0x2,_0x4042ad[_0xe07925(0x22e)](_0x1c5d61[_0xe07925(0x173)]))],_0x2491c7[_0xe07925(0x1d5)]);var _0x4ab54e=(_0x5cd261=>(_0x5cd261['OFFLINE']=_0xe07925(0x191),_0x5cd261['IDLE']=_0xe07925(0x192),_0x5cd261[_0xe07925(0x223)]=_0xe07925(0x1fc),_0x5cd261[_0xe07925(0x18e)]='not-following',_0x5cd261[_0xe07925(0x213)]=_0xe07925(0x17c),_0x5cd261))(_0x4ab54e||{});const _0x27ee9f=_0xe07925(0x230),_0x1aeee1=0xc8;_0x2491c7[_0xe07925(0x203)]=class extends _0x4042ad[_0xe07925(0x17e)]{constructor(_0x2cad67,_0x6336b9,_0x321583,_0x6a3c57,_0x168fe1){const _0x412856=_0xe07925;super(),_0x2b73de(this,_0x412856(0x1f2),new _0x301d6d[(_0x412856(0x21a))](_0x412856(0x192))),_0x2b73de(this,_0x412856(0x221),this['_status$'][_0x412856(0x1c8)]()),_0x2b73de(this,_0x412856(0x1f6),!0x1),_0x2b73de(this,'_commandDisposable',null),_0x2b73de(this,_0x412856(0x21b),null),(this[_0x412856(0x187)]=_0x2cad67,this['_collabSession']=_0x6336b9,this[_0x412856(0x1b8)]=_0x321583,this[_0x412856(0x218)]=_0x6a3c57,this['_commandService']=_0x168fe1);}get[_0xe07925(0x1ff)](){const _0x1d3d52=_0xe07925;return this[_0x1d3d52(0x1f2)][_0x1d3d52(0x1b3)]();}[_0xe07925(0x1bb)](){const _0x5bd4f9=_0xe07925;var _0x592452;(_0x592452=this[_0x5bd4f9(0x21e)])==null||_0x592452['dispose'](),this['_status$'][_0x5bd4f9(0x19d)](_0x5bd4f9(0x192)),this['_status$'][_0x5bd4f9(0x1ac)]();}[_0xe07925(0x25a)](){const _0x176309=_0xe07925;return this[_0x176309(0x1ff)];}['init'](){const _0x3fbc76=_0xe07925;this[_0x3fbc76(0x1f6)]||(this['_init']=!0x0,this['_collabSession']['sessionStatus$'][_0x3fbc76(0x19f)](_0x53bd07[_0x3fbc76(0x259)](this['dispose$']))[_0x3fbc76(0x17d)](_0x3a32fa=>{const _0x1ef024=_0x3fbc76;switch(_0x3a32fa){case _0x1c5d61['SessionStatus'][_0x1ef024(0x25b)]:this['_handleOffline']();break;case _0x1c5d61['SessionStatus']['ONLINE']:this['_handleOnline']();break;}}),this[_0x3fbc76(0x22c)][_0x3fbc76(0x17a)][_0x3fbc76(0x19f)](_0x53bd07[_0x3fbc76(0x259)](this['dispose$']))[_0x3fbc76(0x17d)](_0x24ad10=>{const _0x204dde=_0x3fbc76,{eventID:_0x5c5919}=_0x24ad10;switch(_0x5c5919){case _0x15dce3[_0x204dde(0x202)][_0x204dde(0x21c)]:this['_handleNewHost'](_0x24ad10);break;case _0x15dce3[_0x204dde(0x202)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x24ad10);break;case _0x15dce3[_0x204dde(0x202)][_0x204dde(0x195)]:this[_0x204dde(0x1c5)]();break;case _0x15dce3[_0x204dde(0x202)][_0x204dde(0x1d8)]:this[_0x204dde(0x232)](_0x24ad10);break;}}));}[_0xe07925(0x251)](){const _0x115eed=_0xe07925;this[_0x115eed(0x22c)][_0x115eed(0x17f)]({'eventID':_0x15dce3['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x115eed(0x187)],'userID':this[_0x115eed(0x22c)][_0x115eed(0x1d9)]()}},this['_unitID']);}['stopPresenting'](){const _0x2d0dc5=_0xe07925;this['_status']===_0x2d0dc5(0x17c)&&(this[_0x2d0dc5(0x1f2)][_0x2d0dc5(0x19d)](_0x2d0dc5(0x192)),this[_0x2d0dc5(0x22c)]['send']({'eventID':_0x15dce3[_0x2d0dc5(0x202)][_0x2d0dc5(0x195)],'data':{'unitID':this[_0x2d0dc5(0x187)]}},this[_0x2d0dc5(0x187)]));}[_0xe07925(0x1ea)](){const _0x37a45c=_0xe07925;this[_0x37a45c(0x1ff)]===_0x37a45c(0x1f0)&&(this[_0x37a45c(0x1f2)]['next'](_0x37a45c(0x1fc)),this[_0x37a45c(0x1bd)]());}[_0xe07925(0x1dc)](){const _0x411713=_0xe07925;this[_0x411713(0x1ff)]===_0x411713(0x1fc)&&this[_0x411713(0x1f9)]();}['_handleNewHost'](_0x429f9b){const _0x289e3c=_0xe07925,{presenter:_0x6b2ccb}=_0x429f9b['data'],_0x3a9d01=this[_0x289e3c(0x22c)][_0x289e3c(0x1d9)]();this[_0x289e3c(0x21b)]=_0x6b2ccb,_0x6b2ccb===_0x3a9d01?(this[_0x289e3c(0x1f9)](),this[_0x289e3c(0x24d)]()):this[_0x289e3c(0x1ff)]!==_0x289e3c(0x1f0)&&(this[_0x289e3c(0x181)](),this['_startFollowing']());}[_0xe07925(0x1ca)](){const _0x5eb70e=_0xe07925,_0x27a228={'eventID':_0x15dce3[_0x5eb70e(0x202)][_0x5eb70e(0x212)]};this['_collabSession']['send'](_0x27a228,this[_0x5eb70e(0x187)]);}[_0xe07925(0x1c5)](){const _0x2bad8f=_0xe07925;this['_presenter']=null,this[_0x2bad8f(0x1ff)]!==_0x2bad8f(0x17c)&&this[_0x2bad8f(0x1d0)]();}[_0xe07925(0x232)](_0x5ab55d){const _0x10fbbd=_0xe07925;if(this['_status']==='following'&&this[_0x10fbbd(0x21b)]===_0x5ab55d[_0x10fbbd(0x1fb)][_0x10fbbd(0x235)]){const _0x128ece=_0x15dce3['parseProtocolChangeset'](_0x5ab55d[_0x10fbbd(0x1fb)])[_0x10fbbd(0x180)]['reverse']()[_0x10fbbd(0x17b)](_0x170207=>_0x170207['id']===_0x1b9810[_0x10fbbd(0x20f)]['id']);if(_0x128ece){const _0x104279=_0x128ece[_0x10fbbd(0x252)]['unitId'],_0x813733=_0x128ece[_0x10fbbd(0x252)][_0x10fbbd(0x240)]['id'];setTimeout(()=>{const _0x55fb7d=_0x10fbbd;this[_0x55fb7d(0x1af)][_0x55fb7d(0x216)](_0x1b9810[_0x55fb7d(0x21f)]['id'],{'unitId':_0x104279,'subUnitId':_0x813733},{'fromCollab':!0x0});});}}}[_0xe07925(0x24d)](){const _0x2aa383=_0xe07925;this[_0x2aa383(0x1f2)][_0x2aa383(0x19d)]('presenting');const _0x732286=new Map(),_0x1d47f6=this[_0x2aa383(0x21e)]=new _0x4042ad[(_0x2aa383(0x1e9))]();_0x1d47f6[_0x2aa383(0x1a7)](_0x4042ad[_0x2aa383(0x1a2)](()=>{const _0x401b91=_0x2aa383;_0x732286[_0x401b91(0x1d2)](_0x228533=>_0x228533[_0x401b91(0x1ac)]()),_0x732286[_0x401b91(0x224)]();})),_0x1d47f6[_0x2aa383(0x1a7)](this[_0x2aa383(0x1af)][_0x2aa383(0x215)](_0x209d2b=>{const _0x149227=_0x2aa383;var _0x4f79bf;if(_0x209d2b[_0x149227(0x237)]!==_0x4042ad[_0x149227(0x20d)][_0x149227(0x1ed)]||!this[_0x149227(0x218)][_0x149227(0x25d)](_0x209d2b['id']))return;const {id:_0x2de7f6}=_0x209d2b;let _0x5f2f2a;_0x732286[_0x149227(0x1be)](_0x2de7f6)?_0x5f2f2a=_0x732286[_0x149227(0x198)](_0x2de7f6):(_0x5f2f2a=new _0x301d6d['Subject'](),_0x732286[_0x149227(0x24a)](_0x2de7f6,_0x5f2f2a),_0x5f2f2a[_0x149227(0x19f)](_0x53bd07[_0x149227(0x22d)]((_0x4f79bf=this['_configService'][_0x149227(0x20b)](_0x27ee9f))!=null?_0x4f79bf:_0x1aeee1,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x149227(0x17d)](_0xb0b402=>{const _0x2d89b1=_0x149227;this['_collabSession']['send']({'eventID':_0x15dce3[_0x2d89b1(0x202)][_0x2d89b1(0x23a)],'data':{'unitID':this[_0x2d89b1(0x187)],'operations':{[_0xb0b402['id']]:{'id':_0xb0b402['id'],'params':JSON['stringify'](_0xb0b402[_0x2d89b1(0x252)])}}}},this[_0x2d89b1(0x187)]);})),_0x5f2f2a[_0x149227(0x19d)](_0x209d2b);})),this[_0x2aa383(0x218)]['getInitialStates'](this[_0x2aa383(0x187)])[_0x2aa383(0x1d2)](_0x288743=>this['_collabSession'][_0x2aa383(0x17f)]({'eventID':_0x15dce3[_0x2aa383(0x202)][_0x2aa383(0x23a)],'data':{'unitID':this['_unitID'],'operations':{[_0x288743['id']]:{'id':_0x288743['id'],'params':JSON[_0x2aa383(0x1a5)](_0x288743['params'])}}}},this['_unitID']));}[_0xe07925(0x181)](){const _0x36eea6=_0xe07925;var _0x5115ee;this[_0x36eea6(0x1f2)][_0x36eea6(0x19d)](_0x36eea6(0x192)),(_0x5115ee=this['_commandDisposable'])==null||_0x5115ee[_0x36eea6(0x1bb)](),this[_0x36eea6(0x21e)]=null;}['_startFollowing'](){const _0x2f5180=_0xe07925;var _0x50d6f4;(_0x50d6f4=this[_0x2f5180(0x21e)])==null||_0x50d6f4[_0x2f5180(0x1bb)](),this['_status$']['next'](_0x2f5180(0x1fc));}[_0xe07925(0x1d0)](){const _0x1a5cea=_0xe07925;var _0x337a64;this[_0x1a5cea(0x1f2)][_0x1a5cea(0x19d)]('idle'),(_0x337a64=this[_0x1a5cea(0x21e)])==null||_0x337a64[_0x1a5cea(0x1bb)](),this['_commandDisposable']=null;}[_0xe07925(0x1f9)](){const _0x48d364=_0xe07925;var _0x5d190c;this['_status$'][_0x48d364(0x19d)](_0x48d364(0x1f0)),(_0x5d190c=this[_0x48d364(0x21e)])==null||_0x5d190c[_0x48d364(0x1bb)]();}['_handleOperation'](_0x2109cd){const _0x3b55f0=_0xe07925;if([_0x3b55f0(0x17c),_0x3b55f0(0x1f0),_0x3b55f0(0x191)][_0x3b55f0(0x1e8)](this[_0x3b55f0(0x1ff)])||!_0x2109cd[_0x3b55f0(0x1fb)]['presenter']||_0x2109cd[_0x3b55f0(0x1fb)]['presenter']===this[_0x3b55f0(0x22c)][_0x3b55f0(0x1d9)]())return;this[_0x3b55f0(0x1ff)]===_0x3b55f0(0x192)&&this[_0x3b55f0(0x1bd)]();const _0x505fd2=_0x2109cd[_0x3b55f0(0x1fb)][_0x3b55f0(0x1e6)];Object[_0x3b55f0(0x1f8)](_0x505fd2)['forEach'](_0x564078=>{const _0x3d8290=_0x3b55f0;this[_0x3d8290(0x1af)][_0x3d8290(0x216)](_0x564078['id'],_0x564078[_0x3d8290(0x252)]?JSON[_0x3d8290(0x199)](_0x564078[_0x3d8290(0x252)]):null,{'fromCollab':!0x0});});}[_0xe07925(0x18f)](){const _0x36ad8b=_0xe07925;var _0x165f89;this[_0x36ad8b(0x1f2)]['next'](_0x36ad8b(0x191)),(_0x165f89=this[_0x36ad8b(0x21e)])==null||_0x165f89[_0x36ad8b(0x1bb)]();}[_0xe07925(0x18a)](){const _0x3d30a6=_0xe07925;this[_0x3d30a6(0x1f2)]['next']('idle'),this[_0x3d30a6(0x1ca)]();}},_0x2491c7[_0xe07925(0x203)]=_0x2507fd([_0x3586da(0x2,_0x4042ad[_0xe07925(0x25c)]),_0x3586da(0x3,_0x4042ad['Inject'](_0x349095)),_0x3586da(0x4,_0x4042ad[_0xe07925(0x1a4)])],_0x2491c7[_0xe07925(0x203)]);function _0xada477(){const _0x4d7d32=_0xe07925,_0x24243a=_0xb7e494[_0x4d7d32(0x257)](_0x2491c7[_0x4d7d32(0x1d5)]),_0xdea182=_0xb7e494[_0x4d7d32(0x257)](_0x4042ad['IUniverInstanceService']),_0x440939=_0xb7e494['useObservable'](()=>_0xdea182[_0x4d7d32(0x243)](_0x4042ad[_0x4d7d32(0x1de)][_0x4d7d32(0x1e5)]),void 0x0,!0x1,[]),[_0x5b2160,_0x5d5a6e]=_0x284080[_0x4d7d32(0x24b)](null),[_0x820bd9,_0xc36e6a]=_0x284080[_0x4d7d32(0x24b)](_0x4ab54e[_0x4d7d32(0x1ab)]),_0x17b997=_0x284080[_0x4d7d32(0x207)](null);return _0x284080[_0x4d7d32(0x209)](()=>(_0x440939&&_0x24243a[_0x4d7d32(0x1d6)](_0x440939[_0x4d7d32(0x1db)]())['then'](_0x5bf23a=>{const _0x5a8ac5=_0x4d7d32;_0x5d5a6e(_0x5bf23a),_0x17b997['current']=_0x5bf23a[_0x5a8ac5(0x221)][_0x5a8ac5(0x17d)](_0x285668=>{_0xc36e6a(_0x285668);});}),()=>{const _0x3a609c=_0x4d7d32;var _0x15fa81;(_0x15fa81=_0x17b997[_0x3a609c(0x1c9)])==null||_0x15fa81['unsubscribe'](),_0x17b997[_0x3a609c(0x1c9)]=null;}),[_0x440939,_0x24243a]),_0x5b2160?_0x487dbc[_0x4d7d32(0x23c)](_0x1656cf[_0x4d7d32(0x1b5)],{'align':_0x4d7d32(0x1b4),'disabled':_0x820bd9===_0x4ab54e[_0x4d7d32(0x25b)],'className':_0x4d7d32(0x206),'overlay':_0x487dbc[_0x4d7d32(0x23c)](_0x28bf40,{'status':_0x820bd9,'coordinator':_0x5b2160}),'children':_0x487dbc['jsx'](_0x4d7d32(0x1c4),{'className':_0x1656cf[_0x4d7d32(0x171)](_0x4d7d32(0x255),{'univer-cursor-not-allowed':_0x820bd9===_0x4ab54e[_0x4d7d32(0x25b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x820bd9!==_0x4ab54e[_0x4d7d32(0x25b)]}),'type':'button','children':_0x487dbc[_0x4d7d32(0x23c)](_0x4eee83,{'className':'univer-size-4'})})}):null;}function _0x28bf40(_0x35f5bd){const _0x4cab20=_0xe07925,{status:_0x4635c9,coordinator:_0x386e6a}=_0x35f5bd;switch(_0x4635c9){case _0x4ab54e[_0x4cab20(0x1ab)]:return _0x487dbc['jsx'](_0x3ea79c,{'coordinator':_0x386e6a});case _0x4ab54e['FOLLOWING']:return _0x487dbc[_0x4cab20(0x23c)](_0x54ed8f,{'coordinator':_0x386e6a});case _0x4ab54e[_0x4cab20(0x18e)]:return _0x487dbc['jsx'](_0x148116,{'coordinator':_0x386e6a});case _0x4ab54e[_0x4cab20(0x25b)]:return _0x487dbc[_0x4cab20(0x23c)](_0x5bf57d,{});case _0x4ab54e['PRESENTING']:return _0x487dbc[_0x4cab20(0x23c)](_0x2fad0c,{'coordinator':_0x386e6a});default:return null;}}function _0x3ea79c(_0x449b2c){const _0x69dae0=_0xe07925,{coordinator:_0x3c1e38}=_0x449b2c;return _0x487dbc['jsxs'](_0x487dbc[_0x69dae0(0x1cf)],{'children':[_0x487dbc[_0x69dae0(0x23c)](_0x69dae0(0x1e4),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x69dae0(0x24c)}),_0x487dbc[_0x69dae0(0x23c)](_0x1656cf[_0x69dae0(0x256)],{'onClick':()=>_0x3c1e38[_0x69dae0(0x251)](),'children':'Start'})]});}function _0x54ed8f(_0x2ce661){const _0x57eb1f=_0xe07925,{coordinator:_0x49184f}=_0x2ce661;return _0x487dbc['jsxs'](_0x487dbc[_0x57eb1f(0x1cf)],{'children':[_0x487dbc['jsx'](_0x57eb1f(0x1e4),{'className':_0x57eb1f(0x242),'children':_0x57eb1f(0x1d3)}),_0x487dbc[_0x57eb1f(0x23c)](_0x1656cf[_0x57eb1f(0x256)],{'onClick':()=>_0x49184f['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x148116(_0x238bff){const _0x375fdb=_0xe07925,{coordinator:_0x2e6e19}=_0x238bff;return _0x487dbc['jsxs'](_0x487dbc[_0x375fdb(0x1cf)],{'children':[_0x487dbc['jsx'](_0x375fdb(0x1e4),{'className':_0x375fdb(0x242),'children':_0x375fdb(0x1c6)}),_0x487dbc[_0x375fdb(0x23c)](_0x1656cf['Button'],{'variant':_0x375fdb(0x19b),'onClick':()=>_0x2e6e19['startFollowing'](),'children':_0x375fdb(0x1b6)})]});}function _0x2fad0c(_0x280695){const _0x3ce87e=_0xe07925,{coordinator:_0xe3b3a3}=_0x280695;return _0x487dbc[_0x3ce87e(0x190)](_0x487dbc['Fragment'],{'children':[_0x487dbc[_0x3ce87e(0x23c)]('div',{'className':_0x3ce87e(0x242),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x487dbc[_0x3ce87e(0x23c)](_0x1656cf[_0x3ce87e(0x256)],{'variant':_0x3ce87e(0x1c1),'onClick':()=>_0xe3b3a3['stopPresenting'](),'children':_0x3ce87e(0x1b2)})]});}function _0x5bf57d(){const _0x1fb1f2=_0xe07925;return _0x487dbc['jsx'](_0x487dbc[_0x1fb1f2(0x1cf)],{'children':_0x1fb1f2(0x1f1)});}var _0x466f5b=Object[_0xe07925(0x185)],_0x490d4f=(_0x3b5480,_0x592390,_0x52b8ef,_0x518fb8)=>{const _0x360a67=_0xe07925;for(var _0x11232d=_0x518fb8>0x1?void 0x0:_0x518fb8?_0x466f5b(_0x592390,_0x52b8ef):_0x592390,_0x25a230=_0x3b5480[_0x360a67(0x208)]-0x1,_0x509efe;_0x25a230>=0x0;_0x25a230--)(_0x509efe=_0x3b5480[_0x25a230])&&(_0x11232d=_0x509efe(_0x11232d)||_0x11232d);return _0x11232d;},_0x451176=(_0x41f50e,_0x403f21)=>(_0x9ceb36,_0x1500d7)=>_0x403f21(_0x9ceb36,_0x1500d7,_0x41f50e);_0x2491c7[_0xe07925(0x21d)]=class extends _0x4042ad['Disposable']{constructor(_0x2d8321,_0x21c899){const _0x43765c=_0xe07925;super(),this[_0x43765c(0x193)]=_0x2d8321,this[_0x43765c(0x200)]=_0x21c899,this[_0x43765c(0x220)]();}[_0xe07925(0x220)](){const _0x35c349=_0xe07925;this[_0x35c349(0x1a0)](this['_uiPartsService'][_0x35c349(0x24f)](_0xb7e494[_0x35c349(0x1df)][_0x35c349(0x246)],()=>_0xb7e494[_0x35c349(0x1f3)](_0xada477,this[_0x35c349(0x193)])));}},_0x2491c7[_0xe07925(0x21d)]=_0x490d4f([_0x451176(0x0,_0x4042ad[_0xe07925(0x22e)](_0x4042ad[_0xe07925(0x1f7)])),_0x451176(0x1,_0xb7e494[_0xe07925(0x25e)])],_0x2491c7[_0xe07925(0x21d)]);const _0x3a1824=_0xe07925(0x1b0),_0x4d63f7={};var _0x4592a9=Object[_0xe07925(0x185)],_0x33b70b=(_0x4ec50d,_0x4aadc3,_0x261332,_0x23d25f)=>{const _0x2ec74f=_0xe07925;for(var _0x59b293=_0x23d25f>0x1?void 0x0:_0x23d25f?_0x4592a9(_0x4aadc3,_0x261332):_0x4aadc3,_0x575bdf=_0x4ec50d[_0x2ec74f(0x208)]-0x1,_0x2c7e35;_0x575bdf>=0x0;_0x575bdf--)(_0x2c7e35=_0x4ec50d[_0x575bdf])&&(_0x59b293=_0x2c7e35(_0x59b293)||_0x59b293);return _0x59b293;},_0x5d85f0=(_0x22be98,_0x64087)=>(_0x4f80d7,_0x5907ac)=>_0x64087(_0x4f80d7,_0x5907ac,_0x22be98);let _0x491240=class extends _0x4042ad[_0xe07925(0x1d7)]{constructor(_0x131648){const _0x98eb08=_0xe07925;super(),this[_0x98eb08(0x218)]=_0x131648,this['_init']();}[_0xe07925(0x1f6)](){const _0x54c90d=_0xe07925;[_0x5dafdd['SetZoomRatioOperation']['id'],_0x5dafdd[_0x54c90d(0x1ae)]['id'],_0x1b9810[_0x54c90d(0x21f)]['id']][_0x54c90d(0x1d2)](_0x21ddfa=>{const _0x37d204=_0x54c90d;this['disposeWithMe'](this[_0x37d204(0x218)]['registerSharedOperation'](_0x21ddfa));});}};_0x491240=_0x33b70b([_0x5d85f0(0x0,_0x4042ad[_0xe07925(0x22e)](_0x349095))],_0x491240);var _0x50eedc=Object[_0xe07925(0x245)],_0x2dfd36=Object[_0xe07925(0x185)],_0x199b14=(_0x1368ed,_0x5558f9,_0x3dac72)=>_0x5558f9 in _0x1368ed?_0x50eedc(_0x1368ed,_0x5558f9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dac72}):_0x1368ed[_0x5558f9]=_0x3dac72,_0x336e50=(_0x114c5b,_0x33f618,_0x38295b,_0x5880e7)=>{for(var _0x2d3a74=_0x5880e7>0x1?void 0x0:_0x5880e7?_0x2dfd36(_0x33f618,_0x38295b):_0x33f618,_0x3c2fc1=_0x114c5b['length']-0x1,_0x55be7a;_0x3c2fc1>=0x0;_0x3c2fc1--)(_0x55be7a=_0x114c5b[_0x3c2fc1])&&(_0x2d3a74=_0x55be7a(_0x2d3a74)||_0x2d3a74);return _0x2d3a74;},_0x3e368d=(_0x5af0d2,_0xf6c673)=>(_0x5c8860,_0xae139b)=>_0xf6c673(_0x5c8860,_0xae139b,_0x5af0d2),_0x580314=(_0x299eac,_0x53e3bc,_0x474830)=>_0x199b14(_0x299eac,typeof _0x53e3bc!=_0xe07925(0x194)?_0x53e3bc+'':_0x53e3bc,_0x474830);const _0x12967c='UNIVER_LIVE_SHARE_PLUGIN';_0x2491c7[_0xe07925(0x241)]=class extends _0x4042ad[_0xe07925(0x1d1)]{constructor(_0x69262=_0x4d63f7,_0x3f8430,_0x5dc628){const _0x421fb6=_0xe07925;super(),this[_0x421fb6(0x253)]=_0x69262,this[_0x421fb6(0x193)]=_0x3f8430,this[_0x421fb6(0x1b8)]=_0x5dc628;const {..._0x3502c5}=_0x4042ad['merge']({},_0x4d63f7,this[_0x421fb6(0x253)]);this[_0x421fb6(0x1b8)][_0x421fb6(0x1ef)](_0x3a1824,_0x3502c5);}[_0xe07925(0x1ee)](){const _0x4c0b47=_0xe07925;_0x4042ad[_0x4c0b47(0x244)](this[_0x4c0b47(0x193)],_0x4042ad[_0x4c0b47(0x238)]([[_0x349095],[_0x2491c7[_0x4c0b47(0x1d5)]],[_0x491240],[_0x2491c7[_0x4c0b47(0x21d)]]],this[_0x4c0b47(0x253)][_0x4c0b47(0x250)])),_0x4042ad[_0x4c0b47(0x18b)](this['_injector'],[[_0x491240]]);}[_0xe07925(0x1c2)](){const _0x361819=_0xe07925;_0x4042ad[_0x361819(0x18b)](this[_0x361819(0x193)],[[_0x2491c7[_0x361819(0x21d)]]]);}},_0x580314(_0x2491c7[_0xe07925(0x241)],_0xe07925(0x237),_0x4042ad[_0xe07925(0x1de)][_0xe07925(0x20e)]),_0x580314(_0x2491c7[_0xe07925(0x241)],_0xe07925(0x25f),_0x12967c),_0x2491c7['UniverLiveSharePlugin']=_0x336e50([_0x4042ad[_0xe07925(0x176)](_0x1c5d61[_0xe07925(0x18c)]),_0x3e368d(0x1,_0x4042ad['Inject'](_0x4042ad[_0xe07925(0x1f7)])),_0x3e368d(0x2,_0x4042ad[_0xe07925(0x25c)])],_0x2491c7['UniverLiveSharePlugin']),_0x2491c7[_0xe07925(0x229)]=_0xada477,_0x2491c7['LiveShareService']=_0x349095,_0x2491c7[_0xe07925(0x227)]=_0x4ab54e,Object['defineProperty'](_0x2491c7,Symbol[_0xe07925(0x186)],{'value':_0xe07925(0x1a3)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.10.12-nightly.202510251119",
3
+ "version": "0.10.13-nightly.202510290902",
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-client": "0.10.12-nightly.202510251119",
61
- "@univerjs-pro/collaboration": "0.10.12-nightly.202510251119",
62
- "@univerjs/core": "0.10.12-nightly.202510251119",
63
- "@univerjs/design": "0.10.12-nightly.202510251119",
64
- "@univerjs/sheets": "0.10.12-nightly.202510251119",
65
- "@univerjs/engine-render": "0.10.12-nightly.202510251119",
66
- "@univerjs/sheets-ui": "0.10.12-nightly.202510251119",
67
- "@univerjs/ui": "0.10.12-nightly.202510251119"
60
+ "@univerjs-pro/collaboration": "0.10.13-nightly.202510290902",
61
+ "@univerjs-pro/collaboration-client": "0.10.13-nightly.202510290902",
62
+ "@univerjs/design": "0.10.13-nightly.202510290902",
63
+ "@univerjs/engine-render": "0.10.13-nightly.202510290902",
64
+ "@univerjs/core": "0.10.13-nightly.202510290902",
65
+ "@univerjs/sheets": "0.10.13-nightly.202510290902",
66
+ "@univerjs/sheets-ui": "0.10.13-nightly.202510290902",
67
+ "@univerjs/ui": "0.10.13-nightly.202510290902"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -72,10 +72,10 @@
72
72
  "rxjs": "7.8.2",
73
73
  "tailwindcss": "^3.4.17",
74
74
  "typescript": "^5.9.3",
75
- "vite": "^7.1.10",
75
+ "vite": "^7.1.12",
76
76
  "vitest": "^3.2.4",
77
- "@univerjs/protocol": "0.1.47-alpha.0",
78
- "@univerjs-infra/shared": "0.10.12"
77
+ "@univerjs-infra/shared": "0.10.13",
78
+ "@univerjs/protocol": "0.1.47"
79
79
  },
80
80
  "scripts": {
81
81
  "test": "vitest run",