@univerjs-pro/live-share 0.15.1 → 0.15.2-insiders.20260119-edc718c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x2e206d=_0x2305;(function(_0x45be9d,_0x4634c7){const _0x3e02fd=_0x2305,_0x4767c2=_0x45be9d();while(!![]){try{const _0xc77e9a=-parseInt(_0x3e02fd(0xa2))/0x1*(parseInt(_0x3e02fd(0xa8))/0x2)+parseInt(_0x3e02fd(0xaa))/0x3+parseInt(_0x3e02fd(0xa9))/0x4*(-parseInt(_0x3e02fd(0xbd))/0x5)+-parseInt(_0x3e02fd(0x9f))/0x6*(parseInt(_0x3e02fd(0xab))/0x7)+parseInt(_0x3e02fd(0xc1))/0x8*(-parseInt(_0x3e02fd(0x9c))/0x9)+parseInt(_0x3e02fd(0xb8))/0xa+parseInt(_0x3e02fd(0x9b))/0xb*(parseInt(_0x3e02fd(0xbb))/0xc);if(_0xc77e9a===_0x4634c7)break;else _0x4767c2['push'](_0x4767c2['shift']());}catch(_0x3ef101){_0x4767c2['push'](_0x4767c2['shift']());}}}(_0x4227,0x7aeb7));function _0x4227(){const _0x2f578d=['126SraUtt','getSheetId','startFollowing','30ppHeCE','getActiveSheet','stopFollowing','8641IjDeuk','getRenderById','_injector','getId','_commandService','PRESENTING','104IghgSO','1059628FBAEtI','322386rdnKsa','50092kUIzhK','getLiveShareStatus','No\x20active\x20workbook\x20found.','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','tryStartPresenting','IDLE','IRenderManagerService','SetScrollOperation','getStatus','LiveShareController','LiveShareStatus','startRow','6116450ZxqtyO','startColumn','FEnum','24fVdxQx','getLiveShareCoordinatorSync','10rGFPXu','getActiveWorkbook','FUniver','FRange','66672OYsrQN','syncExecuteCommand','extend','get','getUnitId','LiveShareStatusEnum','_initialize','5037857bJZPSw'];_0x4227=function(){return _0x2f578d;};return _0x4227();}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[_0x2e206d(0xc0)]{[_0x2e206d(0x9a)](_0x951729,_0x343cef,_0x269e65,_0x3e59e2,_0x213c14){const _0x378e2=_0x2e206d,_0x104e50=_0x951729[_0x378e2(0x97)](n['LiveShareController']),_0x11c88d=_0x951729[_0x378e2(0x97)](g[_0x378e2(0xb2)]),_0x93249f=_0x343cef[_0x378e2(0x98)](),_0x47d49a=_0x343cef[_0x378e2(0xa0)](),_0xd95114=_0x104e50['getLiveShareCoordinatorSync'](_0x93249f);(_0xd95114==null?void 0x0:_0xd95114[_0x378e2(0xb4)]())!==n[_0x378e2(0xb6)][_0x378e2(0xa7)]||(_0x269e65[_0x378e2(0x9d)]()!==_0x47d49a[_0x378e2(0x9d)]()&&this[_0x378e2(0xa6)]['executeCommand'](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x93249f,'subUnitId':_0x269e65[_0x378e2(0x9d)]()}),!_0x11c88d[_0x378e2(0xa3)](_0x93249f))||_0x213c14[_0x378e2(0xc2)](f[_0x378e2(0xb3)]['id'],{'unitId':_0x343cef['getUnitId'](),'sheetId':_0x269e65[_0x378e2(0x9d)](),'sheetViewStartRow':_0x3e59e2[_0x378e2(0xb7)],'sheetViewStartColumn':_0x3e59e2[_0x378e2(0xb9)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x2e206d(0xc0)][_0x2e206d(0xc3)](w);function _0x2305(_0x47d1ab,_0x58476b){_0x47d1ab=_0x47d1ab-0x97;const _0x42274b=_0x4227();let _0x2305fb=_0x42274b[_0x47d1ab];return _0x2305fb;}class C extends a[_0x2e206d(0xbf)]{[_0x2e206d(0xac)](){const _0x214c1e=_0x2e206d;var _0x536257,_0x296d5d;const _0x5c2be0=this[_0x214c1e(0xa4)][_0x214c1e(0x97)](n[_0x214c1e(0xb5)]),_0x2b6e75=(_0x536257=this[_0x214c1e(0xbe)]())==null?void 0x0:_0x536257[_0x214c1e(0xa5)]();if(!_0x2b6e75)throw new Error(_0x214c1e(0xad));const _0xa630f9=_0x5c2be0[_0x214c1e(0xbc)](_0x2b6e75);return(_0x296d5d=_0xa630f9==null?void 0x0:_0xa630f9[_0x214c1e(0xb4)]())!=null?_0x296d5d:n[_0x214c1e(0xb6)][_0x214c1e(0xb1)];}[_0x2e206d(0x9e)](){const _0x3c1144=_0x2e206d;var _0x2ad776;const _0x4bc6a5=this[_0x3c1144(0xa4)][_0x3c1144(0x97)](n[_0x3c1144(0xb5)]),_0xed67f8=(_0x2ad776=this[_0x3c1144(0xbe)]())==null?void 0x0:_0x2ad776[_0x3c1144(0xa5)]();if(!_0xed67f8)throw new Error(_0x3c1144(0xad));const _0x41df1b=_0x4bc6a5[_0x3c1144(0xbc)](_0xed67f8);if(!_0x41df1b)throw new Error(_0x3c1144(0xaf));_0x41df1b[_0x3c1144(0x9e)]();}[_0x2e206d(0xa1)](){const _0xb384f7=_0x2e206d;var _0x4a4064;const _0x2633a4=this[_0xb384f7(0xa4)][_0xb384f7(0x97)](n['LiveShareController']),_0x58ecd2=(_0x4a4064=this[_0xb384f7(0xbe)]())==null?void 0x0:_0x4a4064['getId']();if(!_0x58ecd2)throw new Error(_0xb384f7(0xad));const _0x27650b=_0x2633a4[_0xb384f7(0xbc)](_0x58ecd2);if(!_0x27650b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x27650b['stopFollowing']();}['startPresenting'](){const _0x25057b=_0x2e206d;var _0x32432d;const _0x1ac440=this[_0x25057b(0xa4)][_0x25057b(0x97)](n[_0x25057b(0xb5)]),_0x454d1e=(_0x32432d=this[_0x25057b(0xbe)]())==null?void 0x0:_0x32432d['getId']();if(!_0x454d1e)throw new Error('No\x20active\x20workbook\x20found.');const _0x4360e7=_0x1ac440['getLiveShareCoordinatorSync'](_0x454d1e);if(!_0x4360e7)throw new Error(_0x25057b(0xaf));_0x4360e7[_0x25057b(0xb0)]();}[_0x2e206d(0xae)](){const _0x5bdef4=_0x2e206d;var _0x55a6c3;const _0x4fab6f=this[_0x5bdef4(0xa4)][_0x5bdef4(0x97)](n[_0x5bdef4(0xb5)]),_0x45937d=(_0x55a6c3=this[_0x5bdef4(0xbe)]())==null?void 0x0:_0x55a6c3[_0x5bdef4(0xa5)]();if(!_0x45937d)throw new Error(_0x5bdef4(0xad));const _0x4bd878=_0x4fab6f[_0x5bdef4(0xbc)](_0x45937d);if(!_0x4bd878)throw new Error(_0x5bdef4(0xaf));_0x4bd878['stopPresenting']();}}a[_0x2e206d(0xbf)]['extend'](C);class L extends a[_0x2e206d(0xba)]{get[_0x2e206d(0x99)](){const _0x707f91=_0x2e206d;return n[_0x707f91(0xb6)];}}a[_0x2e206d(0xba)][_0x2e206d(0xc3)](L);
1
+ 'use strict';const _0x8fc801=_0x30bf;function _0x30bf(_0x28ea87,_0x2c9fed){_0x28ea87=_0x28ea87-0x1c6;const _0x1ce3c4=_0x1ce3();let _0x30bf64=_0x1ce3c4[_0x28ea87];return _0x30bf64;}(function(_0x2e35d0,_0x4a0f42){const _0x607f12=_0x30bf,_0x11e279=_0x2e35d0();while(!![]){try{const _0x79564d=parseInt(_0x607f12(0x1e7))/0x1*(-parseInt(_0x607f12(0x1d8))/0x2)+parseInt(_0x607f12(0x1d5))/0x3+parseInt(_0x607f12(0x1cc))/0x4*(-parseInt(_0x607f12(0x1da))/0x5)+-parseInt(_0x607f12(0x1e0))/0x6+parseInt(_0x607f12(0x1c6))/0x7+-parseInt(_0x607f12(0x1d1))/0x8*(parseInt(_0x607f12(0x1c7))/0x9)+parseInt(_0x607f12(0x1d2))/0xa;if(_0x79564d===_0x4a0f42)break;else _0x11e279['push'](_0x11e279['shift']());}catch(_0x2dc044){_0x11e279['push'](_0x11e279['shift']());}}}(_0x1ce3,0x96593));function _0x1ce3(){const _0x459263=['defineProperty','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','12409AvSuZc','428155yzBzgV','52911zXhgJl','getLiveShareCoordinatorSync','IUniverInstanceService','extend','UNIVER_SHEET','65908Dogfla','startFollowing','getUnitId','IDLE','_liveShareController','848wWPYcr','38237740ToTfvB','_injector','startPresenting','255849xMxTum','UniverInstanceType','FUniver','166yAzwhX','getStatus','180ouychW','No\x20active\x20workbook\x20found.','LiveShareStatus','stopFollowing','tryStartPresenting','LiveShareStatusEnum','6648612EzzWbe','getCurrentUnitOfType','get','stopPresenting','LiveShareController'];_0x1ce3=function(){return _0x459263;};return _0x1ce3();}var h=Object[_0x8fc801(0x1e5)],u=(_0x6be222,_0xd746a1,_0x39559b)=>_0xd746a1 in _0x6be222?h(_0x6be222,_0xd746a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x39559b}):_0x6be222[_0xd746a1]=_0x39559b,S=(_0x337cfc,_0x593d0b,_0x5e67a8)=>u(_0x337cfc,typeof _0x593d0b!='symbol'?_0x593d0b+'':_0x593d0b,_0x5e67a8);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');class I extends c[_0x8fc801(0x1d7)]{constructor(){const _0x5f1a4d=_0x8fc801;super(...arguments),S(this,_0x5f1a4d(0x1d0));}['_initialize'](_0x26a774){const _0x3e0ba0=_0x8fc801;this['_liveShareController']=_0x26a774[_0x3e0ba0(0x1e2)](s[_0x3e0ba0(0x1e4)]);}['getLiveShareStatus'](){const _0x2a70f7=_0x8fc801;var _0x5c3e6e;const _0x3ea3dd=this[_0x2a70f7(0x1d3)]['get'](n['IUniverInstanceService'])[_0x2a70f7(0x1e1)](n['UniverInstanceType'][_0x2a70f7(0x1cb)]);if(!_0x3ea3dd)throw new Error(_0x2a70f7(0x1db));const _0x3d9f57=_0x3ea3dd[_0x2a70f7(0x1ce)](),_0x30b3ae=this[_0x2a70f7(0x1d0)][_0x2a70f7(0x1c8)](_0x3d9f57);return(_0x5c3e6e=_0x30b3ae==null?void 0x0:_0x30b3ae[_0x2a70f7(0x1d9)]())!=null?_0x5c3e6e:s[_0x2a70f7(0x1dc)][_0x2a70f7(0x1cf)];}[_0x8fc801(0x1cd)](){const _0x16b8e3=_0x8fc801,_0x147466=this[_0x16b8e3(0x1d3)][_0x16b8e3(0x1e2)](n[_0x16b8e3(0x1c9)])[_0x16b8e3(0x1e1)](n[_0x16b8e3(0x1d6)][_0x16b8e3(0x1cb)]);if(!_0x147466)throw new Error('No\x20active\x20workbook\x20found.');const _0x2212e5=_0x147466[_0x16b8e3(0x1ce)](),_0x59e616=this[_0x16b8e3(0x1d0)]['getLiveShareCoordinatorSync'](_0x2212e5);if(!_0x59e616)throw new Error(_0x16b8e3(0x1e6));_0x59e616['startFollowing']();}[_0x8fc801(0x1dd)](){const _0x30581e=_0x8fc801,_0x253f78=this[_0x30581e(0x1d3)][_0x30581e(0x1e2)](n['IUniverInstanceService'])[_0x30581e(0x1e1)](n[_0x30581e(0x1d6)]['UNIVER_SHEET']);if(!_0x253f78)throw new Error(_0x30581e(0x1db));const _0x200bec=_0x253f78[_0x30581e(0x1ce)](),_0x2d271b=this[_0x30581e(0x1d0)][_0x30581e(0x1c8)](_0x200bec);if(!_0x2d271b)throw new Error(_0x30581e(0x1e6));_0x2d271b[_0x30581e(0x1dd)]();}[_0x8fc801(0x1d4)](){const _0x21a3ba=_0x8fc801,_0x241741=this[_0x21a3ba(0x1d3)][_0x21a3ba(0x1e2)](n[_0x21a3ba(0x1c9)])[_0x21a3ba(0x1e1)](n[_0x21a3ba(0x1d6)][_0x21a3ba(0x1cb)]);if(!_0x241741)throw new Error('No\x20active\x20workbook\x20found.');const _0x36c9ef=_0x241741[_0x21a3ba(0x1ce)](),_0xc92358=this[_0x21a3ba(0x1d0)][_0x21a3ba(0x1c8)](_0x36c9ef);if(!_0xc92358)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xc92358[_0x21a3ba(0x1de)]();}[_0x8fc801(0x1e3)](){const _0x4ac69a=_0x8fc801,_0x6ace94=this[_0x4ac69a(0x1d3)]['get'](n['IUniverInstanceService'])['getCurrentUnitOfType'](n[_0x4ac69a(0x1d6)][_0x4ac69a(0x1cb)]);if(!_0x6ace94)throw new Error(_0x4ac69a(0x1db));const _0x4576aa=_0x6ace94['getUnitId'](),_0x1b3b8f=this[_0x4ac69a(0x1d0)]['getLiveShareCoordinatorSync'](_0x4576aa);if(!_0x1b3b8f)throw new Error(_0x4ac69a(0x1e6));_0x1b3b8f['stopPresenting']();}}c[_0x8fc801(0x1d7)][_0x8fc801(0x1ca)](I);class l extends c['FEnum']{get[_0x8fc801(0x1df)](){const _0x3169b1=_0x8fc801;return s[_0x3169b1(0x1dc)];}}c['FEnum'][_0x8fc801(0x1ca)](l);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x4d0976=_0x3585;(function(_0x5dc395,_0x4960bf){const _0x37e53a=_0x3585,_0x51e03=_0x5dc395();while(!![]){try{const _0xa37d7a=-parseInt(_0x37e53a(0x209))/0x1+parseInt(_0x37e53a(0x180))/0x2*(parseInt(_0x37e53a(0x1cd))/0x3)+parseInt(_0x37e53a(0x14b))/0x4+-parseInt(_0x37e53a(0x175))/0x5*(parseInt(_0x37e53a(0x1fa))/0x6)+-parseInt(_0x37e53a(0x1fd))/0x7+parseInt(_0x37e53a(0x143))/0x8+-parseInt(_0x37e53a(0x17d))/0x9*(parseInt(_0x37e53a(0x203))/0xa);if(_0xa37d7a===_0x4960bf)break;else _0x51e03['push'](_0x51e03['shift']());}catch(_0x490738){_0x51e03['push'](_0x51e03['shift']());}}}(_0x4eed,0x2517c));var T=Object['defineProperty'],U=(_0x15e87f,_0x5e8f1a,_0xaa0fa)=>_0x5e8f1a in _0x15e87f?T(_0x15e87f,_0x5e8f1a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xaa0fa}):_0x15e87f[_0x5e8f1a]=_0xaa0fa,_=(_0x21349b,_0x4a80f9,_0x565ddb)=>U(_0x21349b,typeof _0x4a80f9!=_0x4d0976(0x1f2)?_0x4a80f9+'':_0x4a80f9,_0x565ddb);Object[_0x4d0976(0x1e4)](exports,Symbol[_0x4d0976(0x140)],{'value':_0x4d0976(0x215)});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:_0x55a7d8,..._0x5c17be}){const _0x15b8fd=_0x4d0976,{icon:_0x4f8788,id:_0x58c43e,className:_0x3002fb,extend:_0x1deeed,..._0x189306}=_0x5c17be,_0x54354c=(_0x15b8fd(0x19a)+_0x58c43e+'\x20'+(_0x3002fb||''))[_0x15b8fd(0x1b6)](),_0x22ec89=v['useRef']('_'+H());return j(_0x4f8788,''+_0x58c43e,{'defIds':_0x4f8788[_0x15b8fd(0x145)],'idSuffix':_0x22ec89[_0x15b8fd(0x1e1)]},{'ref':_0x55a7d8,'className':_0x54354c,..._0x189306},_0x1deeed);}function j(_0x324428,_0xaa5d85,_0x3e45d3,_0x5d95ac,_0x25f2ba){const _0x17fadc=_0x4d0976;return v['createElement'](_0x324428[_0x17fadc(0x1ad)],{'key':_0xaa5d85,...y(_0x324428,_0x3e45d3,_0x25f2ba),..._0x5d95ac},(F(_0x324428,_0x3e45d3)['children']||[])[_0x17fadc(0x1ab)]((_0xbc6ca,_0x17cb9f)=>j(_0xbc6ca,_0xaa5d85+'-'+_0x324428[_0x17fadc(0x1ad)]+'-'+_0x17cb9f,_0x3e45d3,void 0x0,_0x25f2ba)));}function y(_0x350b3b,_0x523325,_0x1bb8b9){const _0x4a9536=_0x4d0976,_0x4dd055={..._0x350b3b[_0x4a9536(0x1da)]};_0x1bb8b9!=null&&_0x1bb8b9[_0x4a9536(0x17b)]&&_0x4dd055['fill']==='colorChannel1'&&(_0x4dd055[_0x4a9536(0x213)]=_0x1bb8b9['colorChannel1']),_0x350b3b[_0x4a9536(0x1ad)]==='mask'&&_0x4dd055['id']&&(_0x4dd055['id']=_0x4dd055['id']+_0x523325[_0x4a9536(0x16a)]),Object[_0x4a9536(0x1fb)](_0x4dd055)['forEach'](([_0x1d703b,_0x873969])=>{const _0x5d92d9=_0x4a9536;_0x1d703b==='mask'&&typeof _0x873969=='string'&&(_0x4dd055[_0x1d703b]=_0x873969[_0x5d92d9(0x1fc)](/url\(#(.*)\)/,_0x5d92d9(0x1a2)+_0x523325[_0x5d92d9(0x16a)]+')'));});const {defIds:_0x44ca12}=_0x523325;return!_0x44ca12||_0x44ca12[_0x4a9536(0x144)]===0x0||(_0x350b3b['tag']===_0x4a9536(0x15d)&&_0x4dd055[_0x4a9536(0x14d)]&&(_0x4dd055['xlink:href']=_0x4dd055[_0x4a9536(0x14d)]+_0x523325[_0x4a9536(0x16a)]),Object['entries'](_0x4dd055)['forEach'](([_0x1f8d17,_0x5ec019])=>{const _0x495017=_0x4a9536;typeof _0x5ec019==_0x495017(0x1eb)&&(_0x4dd055[_0x1f8d17]=_0x5ec019[_0x495017(0x1fc)](/url\(#(.*)\)/,_0x495017(0x1a2)+_0x523325[_0x495017(0x16a)]+')'));})),_0x4dd055;}function F(_0xebfc46,_0x1e9170){const _0x25203=_0x4d0976;var _0x20a30d;const {defIds:_0x338ccc}=_0x1e9170;return!_0x338ccc||_0x338ccc[_0x25203(0x144)]===0x0?_0xebfc46:_0xebfc46[_0x25203(0x1ad)]==='defs'&&((_0x20a30d=_0xebfc46[_0x25203(0x17c)])!=null&&_0x20a30d[_0x25203(0x144)])?{..._0xebfc46,'children':_0xebfc46[_0x25203(0x17c)][_0x25203(0x1ab)](_0x178158=>typeof _0x178158[_0x25203(0x1da)]['id']==_0x25203(0x1eb)&&_0x338ccc&&_0x338ccc[_0x25203(0x1a7)](_0x178158[_0x25203(0x1da)]['id'])?{..._0x178158,'attrs':{..._0x178158[_0x25203(0x1da)],'id':_0x178158['attrs']['id']+_0x1e9170[_0x25203(0x16a)]}}:_0x178158)}:_0xebfc46;}function H(){const _0x4fb265=_0x4d0976;return Math[_0x4fb265(0x198)]()[_0x4fb265(0x1c4)](0x24)[_0x4fb265(0x151)](0x2,0x8);}x[_0x4d0976(0x18d)]='UniverIcon';const V={'tag':'svg','attrs':{'xmlns':_0x4d0976(0x1d5),'fill':_0x4d0976(0x195),'viewBox':_0x4d0976(0x157),'width':_0x4d0976(0x147),'height':_0x4d0976(0x147)},'children':[{'tag':_0x4d0976(0x1d6),'attrs':{'fill':'currentColor','d':_0x4d0976(0x1b2)}},{'tag':_0x4d0976(0x1d6),'attrs':{'fill':_0x4d0976(0x161),'d':_0x4d0976(0x14c),'fillRule':_0x4d0976(0x1bf),'clipRule':'evenodd'}}]},R=v[_0x4d0976(0x1e9)](function(_0x1a1f70,_0x39df96){const _0x444e33=_0x4d0976;return v['createElement'](x,Object['assign']({},_0x1a1f70,{'id':_0x444e33(0x1c1),'ref':_0x39df96,'icon':V}));});R['displayName']=_0x4d0976(0x1f6);class E extends o[_0x4d0976(0x1c7)]{constructor(){const _0xd6dbfa=_0x4d0976;super(...arguments),_(this,_0xd6dbfa(0x1ee),new Set()),_(this,_0xd6dbfa(0x17a),new Set());}[_0x4d0976(0x1b1)](_0xb6ac4d){const _0x32cf6e=_0x4d0976;return this[_0x32cf6e(0x1ee)][_0x32cf6e(0x16b)](_0xb6ac4d),o['toDisposable'](()=>this[_0x32cf6e(0x1ee)]['delete'](_0xb6ac4d));}[_0x4d0976(0x178)](_0x46fa59){const _0x14f2df=_0x4d0976;return this[_0x14f2df(0x17a)][_0x14f2df(0x16b)](_0x46fa59),o[_0x14f2df(0x211)](()=>this[_0x14f2df(0x17a)][_0x14f2df(0x202)](_0x46fa59));}['shouldShareOperation'](_0x5367ed){const _0x3b8b32=_0x4d0976;return this[_0x3b8b32(0x1ee)]['has'](_0x5367ed);}[_0x4d0976(0x150)](_0x1e0f31){const _0x5db449=_0x4d0976;return Array['from'](this[_0x5db449(0x17a)])[_0x5db449(0x1ab)](_0x1d41b0=>_0x1d41b0(_0x1e0f31));}}var M=Object[_0x4d0976(0x1f4)],P=(_0x455d7d,_0xbb4afc,_0x1d4483,_0x1f6d11)=>{for(var _0x19e7ba=_0x1f6d11>0x1?void 0x0:_0x1f6d11?M(_0xbb4afc,_0x1d4483):_0xbb4afc,_0x829c5=_0x455d7d['length']-0x1,_0x518dc2;_0x829c5>=0x0;_0x829c5--)(_0x518dc2=_0x455d7d[_0x829c5])&&(_0x19e7ba=_0x518dc2(_0x19e7ba)||_0x19e7ba);return _0x19e7ba;},S=(_0x146174,_0x246913)=>(_0x445e72,_0x33d340)=>_0x246913(_0x445e72,_0x33d340,_0x146174);exports[_0x4d0976(0x1fe)]=class extends o[_0x4d0976(0x1b4)]{constructor(_0x4dbb46,_0x221ffc,_0x413be7){const _0x3c4d95=_0x4d0976;super(),_(this,'_entities',new Map()),(this[_0x3c4d95(0x162)]=_0x4dbb46,this[_0x3c4d95(0x1b8)]=_0x221ffc,this[_0x3c4d95(0x1d3)]=_0x413be7,this[_0x3c4d95(0x18b)]());}async[_0x4d0976(0x1df)](_0x2a8319){const _0x1b59f7=_0x4d0976;return this[_0x1b59f7(0x1f9)]['has'](_0x2a8319)||await this[_0x1b59f7(0x172)](_0x2a8319),this[_0x1b59f7(0x1f9)]['get'](_0x2a8319);}[_0x4d0976(0x190)](_0x1ff8f2){const _0x121f1c=_0x4d0976;var _0x1bfefb;return(_0x1bfefb=this[_0x121f1c(0x1f9)][_0x121f1c(0x16d)](_0x1ff8f2))!=null?_0x1bfefb:null;}[_0x4d0976(0x18b)](){const _0x3fba37=_0x4d0976;this[_0x3fba37(0x162)]['getTypeOfUnitAdded$'](o[_0x3fba37(0x19c)]['UNIVER_SHEET'])[_0x3fba37(0x15f)](I[_0x3fba37(0x167)](this[_0x3fba37(0x152)]))['subscribe'](async _0x1ae623=>{const _0x17f454=_0x3fba37,_0x32cae5=_0x1ae623[_0x17f454(0x186)]();this[_0x17f454(0x1f9)][_0x17f454(0x1ac)](_0x32cae5)||this[_0x17f454(0x172)](_0x32cae5);}),this['_univerInstanceService'][_0x3fba37(0x217)](o[_0x3fba37(0x19c)][_0x3fba37(0x15e)])[_0x3fba37(0x15f)](I[_0x3fba37(0x167)](this['dispose$']))[_0x3fba37(0x1cf)](_0x537556=>{const _0x33d538=_0x3fba37,_0x59a4da=_0x537556[_0x33d538(0x186)](),_0x361f97=this[_0x33d538(0x1f9)][_0x33d538(0x16d)](_0x59a4da);_0x361f97==null||_0x361f97[_0x33d538(0x1c3)]();});}async['_startLiveShareCoordinator'](_0x5e9257){const _0x4bdaf5=_0x4d0976,_0x45d62a=await this[_0x4bdaf5(0x1d3)][_0x4bdaf5(0x181)](_0x5e9257),_0x13ab2b=this[_0x4bdaf5(0x1b8)][_0x4bdaf5(0x214)](exports[_0x4bdaf5(0x20c)],_0x5e9257,_0x45d62a);return _0x13ab2b['init'](),this[_0x4bdaf5(0x1f9)]['set'](_0x5e9257,_0x13ab2b),_0x13ab2b;}},exports['LiveShareController']=P([S(0x0,o[_0x4d0976(0x174)]),S(0x1,o[_0x4d0976(0x148)](o[_0x4d0976(0x16f)])),S(0x2,o[_0x4d0976(0x148)](b[_0x4d0976(0x177)]))],exports[_0x4d0976(0x1fe)]);function _0x3585(_0x10d67e,_0x2926b5){_0x10d67e=_0x10d67e-0x13f;const _0x4eedbb=_0x4eed();let _0x358547=_0x4eedbb[_0x10d67e];return _0x358547;}var u=(_0x424d3d=>(_0x424d3d['OFFLINE']=_0x4d0976(0x1c8),_0x424d3d[_0x4d0976(0x16c)]=_0x4d0976(0x1c0),_0x424d3d[_0x4d0976(0x18c)]=_0x4d0976(0x1c2),_0x424d3d[_0x4d0976(0x1b5)]=_0x4d0976(0x1a3),_0x424d3d[_0x4d0976(0x1af)]=_0x4d0976(0x15a),_0x424d3d))(u||{});const k=_0x4d0976(0x1aa),q=0xc8;exports[_0x4d0976(0x20c)]=class extends o['RxDisposable']{constructor(_0x1a13c7,_0x14a9c0,_0x40bc41,_0x47888c,_0x224ed0){const _0x1771c2=_0x4d0976;super(),_(this,'_status$',new O[(_0x1771c2(0x20d))](_0x1771c2(0x1c0))),_(this,_0x1771c2(0x1ff),this['_status$']['asObservable']()),_(this,_0x1771c2(0x18b),!0x1),_(this,_0x1771c2(0x191),null),_(this,'_presenter',null),(this[_0x1771c2(0x1dc)]=_0x1a13c7,this['_collabSession']=_0x14a9c0,this[_0x1771c2(0x1be)]=_0x40bc41,this[_0x1771c2(0x1bb)]=_0x47888c,this[_0x1771c2(0x1ba)]=_0x224ed0);}get[_0x4d0976(0x20b)](){const _0x562e25=_0x4d0976;return this[_0x562e25(0x1de)][_0x562e25(0x201)]();}[_0x4d0976(0x1c3)](){const _0x293e43=_0x4d0976;var _0x2dfc77;(_0x2dfc77=this[_0x293e43(0x191)])==null||_0x2dfc77[_0x293e43(0x1c3)](),this[_0x293e43(0x1de)][_0x293e43(0x1a4)]('idle'),this[_0x293e43(0x1de)][_0x293e43(0x1f7)]();}[_0x4d0976(0x173)](){return this['_status'];}[_0x4d0976(0x1e6)](){const _0x14dcbf=_0x4d0976;this[_0x14dcbf(0x18b)]||(this[_0x14dcbf(0x18b)]=!0x0,this['_collabSession']['sessionStatus$'][_0x14dcbf(0x15f)](I[_0x14dcbf(0x167)](this['dispose$']))[_0x14dcbf(0x1cf)](_0x2f6161=>{const _0x30b2f8=_0x14dcbf;switch(_0x2f6161){case b['SessionStatus'][_0x30b2f8(0x155)]:this['_handleOffline']();break;case b['SessionStatus'][_0x30b2f8(0x20e)]:this[_0x30b2f8(0x1d7)]();break;}}),this[_0x14dcbf(0x168)][_0x14dcbf(0x1cb)][_0x14dcbf(0x15f)](I[_0x14dcbf(0x167)](this[_0x14dcbf(0x152)]))[_0x14dcbf(0x1cf)](_0x468e2a=>{const _0x4a8c20=_0x14dcbf,{eventID:_0x22eb76}=_0x468e2a;switch(_0x22eb76){case d[_0x4a8c20(0x1c9)][_0x4a8c20(0x1c6)]:this[_0x4a8c20(0x1ce)](_0x468e2a);break;case d[_0x4a8c20(0x1c9)]['LIVESHARE_OPERATION']:this[_0x4a8c20(0x1f3)](_0x468e2a);break;case d[_0x4a8c20(0x1c9)][_0x4a8c20(0x14f)]:this[_0x4a8c20(0x1e5)]();break;case d[_0x4a8c20(0x1c9)][_0x4a8c20(0x14a)]:this['_handleNewChangeSets'](_0x468e2a);break;}}));}[_0x4d0976(0x17e)](){const _0x24127c=_0x4d0976;this['_collabSession'][_0x24127c(0x1e3)]({'eventID':d[_0x24127c(0x1c9)][_0x24127c(0x146)],'data':{'unitID':this[_0x24127c(0x1dc)],'userID':this[_0x24127c(0x168)]['getMemberID']()}},this[_0x24127c(0x1dc)]);}[_0x4d0976(0x1d2)](){const _0x39366d=_0x4d0976;this['_status']===_0x39366d(0x15a)&&(this[_0x39366d(0x1de)][_0x39366d(0x1a4)]('idle'),this[_0x39366d(0x168)][_0x39366d(0x1e3)]({'eventID':d[_0x39366d(0x1c9)][_0x39366d(0x14f)],'data':{'unitID':this[_0x39366d(0x1dc)]}},this['_unitID']));}[_0x4d0976(0x14e)](){const _0x18ff70=_0x4d0976;this[_0x18ff70(0x20b)]===_0x18ff70(0x1a3)&&(this[_0x18ff70(0x1de)][_0x18ff70(0x1a4)]('following'),this[_0x18ff70(0x205)]());}['stopFollowing'](){const _0x30f331=_0x4d0976;this[_0x30f331(0x20b)]===_0x30f331(0x1c2)&&this[_0x30f331(0x156)]();}[_0x4d0976(0x1ce)](_0x1e21f8){const _0xe0aa67=_0x4d0976,{presenter:_0x94db33}=_0x1e21f8[_0xe0aa67(0x1d0)],_0x239416=this[_0xe0aa67(0x168)][_0xe0aa67(0x171)]();this[_0xe0aa67(0x196)]=_0x94db33,_0x94db33===_0x239416?(this['_stopFollowing'](),this[_0xe0aa67(0x1ef)]()):this[_0xe0aa67(0x20b)]!==_0xe0aa67(0x1a3)&&(this[_0xe0aa67(0x1ea)](),this[_0xe0aa67(0x205)]());}[_0x4d0976(0x218)](){const _0x53be1f=_0x4d0976,_0x4966db={'eventID':d['CollaborationEvent'][_0x53be1f(0x1d8)]};this[_0x53be1f(0x168)][_0x53be1f(0x1e3)](_0x4966db,this[_0x53be1f(0x1dc)]);}['_handleTerminate'](){const _0x45c00d=_0x4d0976;this[_0x45c00d(0x196)]=null,this[_0x45c00d(0x20b)]!==_0x45c00d(0x15a)&&this[_0x45c00d(0x1f5)]();}[_0x4d0976(0x1ca)](_0x32b56f){const _0x521009=_0x4d0976;if(this[_0x521009(0x20b)]===_0x521009(0x1c2)&&this[_0x521009(0x196)]===_0x32b56f[_0x521009(0x1d0)][_0x521009(0x1e2)]){const _0x2449ae=d[_0x521009(0x1d1)](_0x32b56f[_0x521009(0x1d0)])['mutations'][_0x521009(0x166)]()[_0x521009(0x1b3)](_0x56a231=>_0x56a231['id']===C[_0x521009(0x19f)]['id']);if(_0x2449ae){const _0x2f0eee=_0x2449ae[_0x521009(0x1a5)][_0x521009(0x1bd)],_0x4e4b1d=_0x2449ae[_0x521009(0x1a5)][_0x521009(0x1a0)]['id'];setTimeout(()=>{const _0xc5753f=_0x521009;this[_0xc5753f(0x1ba)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x2f0eee,'subUnitId':_0x4e4b1d},{'fromCollab':!0x0});});}}}[_0x4d0976(0x1ef)](){const _0x381cd1=_0x4d0976;this[_0x381cd1(0x1de)][_0x381cd1(0x1a4)](_0x381cd1(0x15a));const _0x4ecd69=new Map(),_0x39d37f=this['_commandDisposable']=new o['DisposableCollection']();_0x39d37f[_0x381cd1(0x16b)](o['toDisposable'](()=>{const _0x51957c=_0x381cd1;_0x4ecd69[_0x51957c(0x1ed)](_0x410430=>_0x410430[_0x51957c(0x1f7)]()),_0x4ecd69['clear']();})),_0x39d37f[_0x381cd1(0x16b)](this[_0x381cd1(0x1ba)]['onCommandExecuted'](_0x58dc44=>{const _0x263f3d=_0x381cd1;var _0x152df5;if(_0x58dc44[_0x263f3d(0x1ec)]!==o[_0x263f3d(0x1a9)]['OPERATION']||!this[_0x263f3d(0x1bb)][_0x263f3d(0x188)](_0x58dc44['id']))return;const {id:_0x56f62a}=_0x58dc44;let _0x5ae54b;_0x4ecd69[_0x263f3d(0x1ac)](_0x56f62a)?_0x5ae54b=_0x4ecd69[_0x263f3d(0x16d)](_0x56f62a):(_0x5ae54b=new O[(_0x263f3d(0x212))](),_0x4ecd69[_0x263f3d(0x153)](_0x56f62a,_0x5ae54b),_0x5ae54b[_0x263f3d(0x15f)](I[_0x263f3d(0x154)]((_0x152df5=this[_0x263f3d(0x1be)][_0x263f3d(0x183)](k))!=null?_0x152df5:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x263f3d(0x1cf)](_0xe7d73a=>{const _0x2eb47b=_0x263f3d;this[_0x2eb47b(0x168)][_0x2eb47b(0x1e3)]({'eventID':d[_0x2eb47b(0x1c9)][_0x2eb47b(0x141)],'data':{'unitID':this[_0x2eb47b(0x1dc)],'operations':{[_0xe7d73a['id']]:{'id':_0xe7d73a['id'],'params':JSON['stringify'](_0xe7d73a[_0x2eb47b(0x1a5)])}}}},this['_unitID']);})),_0x5ae54b['next'](_0x58dc44);})),this['_liveShareService'][_0x381cd1(0x150)](this[_0x381cd1(0x1dc)])[_0x381cd1(0x1ed)](_0xaabc3=>this['_collabSession'][_0x381cd1(0x1e3)]({'eventID':d[_0x381cd1(0x1c9)][_0x381cd1(0x141)],'data':{'unitID':this[_0x381cd1(0x1dc)],'operations':{[_0xaabc3['id']]:{'id':_0xaabc3['id'],'params':JSON[_0x381cd1(0x189)](_0xaabc3['params'])}}}},this['_unitID']));}[_0x4d0976(0x1ea)](){const _0xfc8ab2=_0x4d0976;var _0x32cc7d;this[_0xfc8ab2(0x1de)]['next']('idle'),(_0x32cc7d=this[_0xfc8ab2(0x191)])==null||_0x32cc7d[_0xfc8ab2(0x1c3)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x5a6617=_0x4d0976;var _0x1da6a6;(_0x1da6a6=this['_commandDisposable'])==null||_0x1da6a6['dispose'](),this['_status$']['next'](_0x5a6617(0x1c2));}[_0x4d0976(0x1f5)](){const _0x4e0864=_0x4d0976;var _0x4a9dbb;this[_0x4e0864(0x1de)][_0x4e0864(0x1a4)](_0x4e0864(0x1c0)),(_0x4a9dbb=this[_0x4e0864(0x191)])==null||_0x4a9dbb['dispose'](),this[_0x4e0864(0x191)]=null;}['_stopFollowing'](){const _0x5a6d40=_0x4d0976;var _0x39c946;this['_status$'][_0x5a6d40(0x1a4)](_0x5a6d40(0x1a3)),(_0x39c946=this[_0x5a6d40(0x191)])==null||_0x39c946['dispose']();}[_0x4d0976(0x1f3)](_0x116029){const _0x14e8be=_0x4d0976;if(['presenting',_0x14e8be(0x1a3),_0x14e8be(0x1c8)][_0x14e8be(0x1a7)](this[_0x14e8be(0x20b)])||!_0x116029[_0x14e8be(0x1d0)][_0x14e8be(0x169)]||_0x116029[_0x14e8be(0x1d0)]['presenter']===this[_0x14e8be(0x168)][_0x14e8be(0x171)]())return;this['_status']===_0x14e8be(0x1c0)&&this[_0x14e8be(0x205)]();const _0x5ef747=_0x116029['data'][_0x14e8be(0x13f)];Object[_0x14e8be(0x204)](_0x5ef747)[_0x14e8be(0x1ed)](_0x479ebd=>{const _0x27a630=_0x14e8be;this[_0x27a630(0x1ba)][_0x27a630(0x1e7)](_0x479ebd['id'],_0x479ebd['params']?JSON[_0x27a630(0x142)](_0x479ebd[_0x27a630(0x1a5)]):null,{'fromCollab':!0x0});});}[_0x4d0976(0x149)](){const _0x1c3467=_0x4d0976;var _0x9f0c12;this[_0x1c3467(0x1de)]['next']('offline'),(_0x9f0c12=this['_commandDisposable'])==null||_0x9f0c12[_0x1c3467(0x1c3)]();}[_0x4d0976(0x1d7)](){const _0x479660=_0x4d0976;this[_0x479660(0x1de)]['next'](_0x479660(0x1c0)),this['_fetchOperations']();}},exports[_0x4d0976(0x20c)]=P([S(0x2,o[_0x4d0976(0x18f)]),S(0x3,o[_0x4d0976(0x148)](E)),S(0x4,o['ICommandService'])],exports[_0x4d0976(0x20c)]);function $(){const _0x28ed26=_0x4d0976,_0x392f0c=p[_0x28ed26(0x1f8)](exports[_0x28ed26(0x1fe)]),_0x3aa40a=p[_0x28ed26(0x1f8)](o['IUniverInstanceService']),_0x5990c4=p[_0x28ed26(0x1a6)](()=>_0x3aa40a[_0x28ed26(0x1cc)](o[_0x28ed26(0x19c)][_0x28ed26(0x15e)]),void 0x0,!0x1,[]),[_0xd61876,_0x50c948]=v[_0x28ed26(0x165)](null),[_0x24edf,_0x47ec3f]=v[_0x28ed26(0x165)](u[_0x28ed26(0x16c)]),_0x41181a=v[_0x28ed26(0x1b0)](null);return v[_0x28ed26(0x1b9)](()=>(_0x5990c4&&_0x392f0c[_0x28ed26(0x1df)](_0x5990c4[_0x28ed26(0x186)]())[_0x28ed26(0x163)](_0x4420ee=>{const _0x32d142=_0x28ed26;_0x50c948(_0x4420ee),_0x41181a[_0x32d142(0x1e1)]=_0x4420ee[_0x32d142(0x1ff)][_0x32d142(0x1cf)](_0x56a773=>{_0x47ec3f(_0x56a773);});}),()=>{const _0x1119ac=_0x28ed26;var _0x3391b6;(_0x3391b6=_0x41181a[_0x1119ac(0x1e1)])==null||_0x3391b6[_0x1119ac(0x197)](),_0x41181a[_0x1119ac(0x1e1)]=null;}),[_0x5990c4,_0x392f0c]),_0xd61876?l['jsx'](f[_0x28ed26(0x170)],{'align':_0x28ed26(0x185),'disabled':_0x24edf===u[_0x28ed26(0x155)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x28ed26(0x200)](W,{'status':_0x24edf,'coordinator':_0xd61876}),'children':l['jsx'](_0x28ed26(0x19b),{'className':f[_0x28ed26(0x207)](_0x28ed26(0x1e8),{'univer-cursor-not-allowed':_0x24edf===u[_0x28ed26(0x155)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x24edf!==u[_0x28ed26(0x155)]}),'type':'button','children':l[_0x28ed26(0x200)](R,{'className':_0x28ed26(0x193)})})}):null;}function W(_0x527270){const _0x48dac7=_0x4d0976,{status:_0x45ae62,coordinator:_0x4a11ed}=_0x527270;switch(_0x45ae62){case u[_0x48dac7(0x16c)]:return l[_0x48dac7(0x200)](G,{'coordinator':_0x4a11ed});case u[_0x48dac7(0x18c)]:return l[_0x48dac7(0x200)](B,{'coordinator':_0x4a11ed});case u['NOT_FOLLOWING']:return l[_0x48dac7(0x200)](Y,{'coordinator':_0x4a11ed});case u['OFFLINE']:return l['jsx'](J,{});case u['PRESENTING']:return l['jsx'](Z,{'coordinator':_0x4a11ed});default:return null;}}function G(_0x39de7a){const _0x1ba152=_0x4d0976,{coordinator:_0x54c85a}=_0x39de7a;return l[_0x1ba152(0x1dd)](l[_0x1ba152(0x1e0)],{'children':[l['jsx']('div',{'className':_0x1ba152(0x160),'children':'Present\x20this\x20document'}),l[_0x1ba152(0x200)](f[_0x1ba152(0x194)],{'onClick':()=>_0x54c85a[_0x1ba152(0x17e)](),'children':_0x1ba152(0x159)})]});}function B(_0x40bf2a){const _0x1c45ac=_0x4d0976,{coordinator:_0x40cd6d}=_0x40bf2a;return l[_0x1c45ac(0x1dd)](l[_0x1c45ac(0x1e0)],{'children':[l['jsx'](_0x1c45ac(0x208),{'className':_0x1c45ac(0x160),'children':_0x1c45ac(0x1db)}),l[_0x1c45ac(0x200)](f[_0x1c45ac(0x194)],{'onClick':()=>_0x40cd6d[_0x1c45ac(0x176)](),'children':_0x1c45ac(0x1a1)})]});}function Y(_0x2cb329){const _0x422925=_0x4d0976,{coordinator:_0x58735d}=_0x2cb329;return l[_0x422925(0x1dd)](l[_0x422925(0x1e0)],{'children':[l[_0x422925(0x200)](_0x422925(0x208),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x422925(0x182)}),l[_0x422925(0x200)](f[_0x422925(0x194)],{'variant':'text','onClick':()=>_0x58735d['startFollowing'](),'children':_0x422925(0x20a)})]});}function Z(_0x1db767){const _0x5df3d4=_0x4d0976,{coordinator:_0x5b4435}=_0x1db767;return l['jsxs'](l[_0x5df3d4(0x1e0)],{'children':[l[_0x5df3d4(0x200)](_0x5df3d4(0x208),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5df3d4(0x216)}),l[_0x5df3d4(0x200)](f[_0x5df3d4(0x194)],{'variant':_0x5df3d4(0x20f),'onClick':()=>_0x5b4435[_0x5df3d4(0x1d2)](),'children':_0x5df3d4(0x1d4)})]});}function J(){const _0x3f8451=_0x4d0976;return l[_0x3f8451(0x200)](l[_0x3f8451(0x1e0)],{'children':_0x3f8451(0x1a8)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x5dd57e,_0x3ce292,_0x18a402,_0x53a049)=>{const _0x59d7bb=_0x4d0976;for(var _0x229b0a=_0x53a049>0x1?void 0x0:_0x53a049?K(_0x3ce292,_0x18a402):_0x3ce292,_0x447a2b=_0x5dd57e[_0x59d7bb(0x144)]-0x1,_0x16efc2;_0x447a2b>=0x0;_0x447a2b--)(_0x16efc2=_0x5dd57e[_0x447a2b])&&(_0x229b0a=_0x16efc2(_0x229b0a)||_0x229b0a);return _0x229b0a;},L=(_0x2d8daf,_0x4a871e)=>(_0x5c6f3c,_0x318212)=>_0x4a871e(_0x5c6f3c,_0x318212,_0x2d8daf);exports[_0x4d0976(0x1bc)]=class extends o['Disposable']{constructor(_0x850116,_0x3e34d0){const _0x310e67=_0x4d0976;super(),this[_0x310e67(0x1b8)]=_0x850116,this['_uiPartsService']=_0x3e34d0,this[_0x310e67(0x1f1)]();}[_0x4d0976(0x1f1)](){const _0x3f1f94=_0x4d0976;this[_0x3f1f94(0x18e)](this[_0x3f1f94(0x16e)][_0x3f1f94(0x179)](p[_0x3f1f94(0x15c)][_0x3f1f94(0x18a)],()=>p[_0x3f1f94(0x187)]($,this['_injector'])));}},exports[_0x4d0976(0x1bc)]=z([L(0x0,o['Inject'](o[_0x4d0976(0x16f)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);const Q='live-share.config',w={};var X=Object[_0x4d0976(0x1f4)],ee=(_0x3faa0f,_0x30aa92,_0x5ae238,_0xa664cf)=>{for(var _0x41943f=_0xa664cf>0x1?void 0x0:_0xa664cf?X(_0x30aa92,_0x5ae238):_0x30aa92,_0x3d550a=_0x3faa0f['length']-0x1,_0xaca5e1;_0x3d550a>=0x0;_0x3d550a--)(_0xaca5e1=_0x3faa0f[_0x3d550a])&&(_0x41943f=_0xaca5e1(_0x41943f)||_0x41943f);return _0x41943f;},te=(_0x2f5fdf,_0x460394)=>(_0x4e5e45,_0x3ba6c2)=>_0x460394(_0x4e5e45,_0x3ba6c2,_0x2f5fdf);let m=class extends o[_0x4d0976(0x1c7)]{constructor(_0x5db4fd){const _0x3332ef=_0x4d0976;super(),this[_0x3332ef(0x1bb)]=_0x5db4fd,this[_0x3332ef(0x18b)]();}[_0x4d0976(0x18b)](){const _0x3b5db2=_0x4d0976;[D[_0x3b5db2(0x15b)]['id'],D['SetScrollOperation']['id'],C[_0x3b5db2(0x1b7)]['id']][_0x3b5db2(0x1ed)](_0x31ddc4=>{const _0x5f3c49=_0x3b5db2;this[_0x5f3c49(0x18e)](this[_0x5f3c49(0x1bb)][_0x5f3c49(0x1b1)](_0x31ddc4));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object['defineProperty'],se=Object[_0x4d0976(0x1f4)],ne=(_0x9cb9b4,_0x4ac5d3,_0x506b2a)=>_0x4ac5d3 in _0x9cb9b4?ie(_0x9cb9b4,_0x4ac5d3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x506b2a}):_0x9cb9b4[_0x4ac5d3]=_0x506b2a,re=(_0x363717,_0x2658fa,_0x2bcff1,_0xc6a2a2)=>{const _0x14a7ac=_0x4d0976;for(var _0x283b70=_0xc6a2a2>0x1?void 0x0:_0xc6a2a2?se(_0x2658fa,_0x2bcff1):_0x2658fa,_0x43e0fb=_0x363717[_0x14a7ac(0x144)]-0x1,_0x3c2415;_0x43e0fb>=0x0;_0x43e0fb--)(_0x3c2415=_0x363717[_0x43e0fb])&&(_0x283b70=_0x3c2415(_0x283b70)||_0x283b70);return _0x283b70;},N=(_0x10326e,_0x4f6cad)=>(_0x4e7c82,_0x31f5cb)=>_0x4f6cad(_0x4e7c82,_0x31f5cb,_0x10326e),A=(_0x282605,_0x54ddbd,_0x1b0c83)=>ne(_0x282605,typeof _0x54ddbd!=_0x4d0976(0x1f2)?_0x54ddbd+'':_0x54ddbd,_0x1b0c83);const oe=_0x4d0976(0x210);function _0x4eed(){const _0xbc2cfe=['requireSession','You\x27re\x20not\x20following\x20the\x20presenter','getConfig','merge','end','getUnitId','connectInjector','shouldShareOperation','stringify','HEADER_MENU','_init','FOLLOWING','displayName','disposeWithMe','IConfigService','getLiveShareCoordinatorSync','_commandDisposable','_config','univer-size-4','Button','none','_presenter','unsubscribe','random','UNIVER_UNKNOWN','univerjs-icon\x20univerjs-icon-','button','UniverInstanceType','override','UniverCollaborationClientPlugin','InsertSheetMutation','sheet','Stop\x20following','url(#$1','not-following','next','params','useObservable','includes','You\x27are\x20offline.','CommandType','SAME_OPERATION_SHARE_INTERVAL','map','has','tag','onRendered','PRESENTING','useRef','registerSharedOperation','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','find','RxDisposable','NOT_FOLLOWING','trim','SetWorksheetActiveOperation','_injector','useEffect','_commandService','_liveShareService','DesktopLiveShareController','unitId','_configService','evenodd','idle','live-share-icon','following','dispose','toString','registerDependencies','LIVESHARE_NEW_HOST','Disposable','offline','CollaborationEvent','_handleNewChangeSets','event$','getCurrentTypeOfUnit$','69558QaONob','_handleNewHost','subscribe','data','parseProtocolChangeset','stopPresenting','_collabSessionService','Stop\x20presenting','http://www.w3.org/2000/svg','path','_handleOnline','LIVESHARE_FETCH_OPERATIONS','DependentOn','attrs','You\x27re\x20following\x20the\x20presenter','_unitID','jsxs','_status$','getLiveShareCoordinator','Fragment','current','memberID','send','defineProperty','_handleTerminate','init','executeCommand','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','forwardRef','_stopPresenting','string','type','forEach','_sharedOperations','_startPresenting','setConfig','_mountLiveShare','symbol','_handleOperation','getOwnPropertyDescriptor','_beIdle','LiveShareIcon','complete','useDependency','_entities','90mcZini','entries','replace','1110872RwGTCI','LiveShareController','status$','jsx','getValue','delete','6250Qjlqqc','values','_startFollowing','pluginName','clsx','div','164080wWvaLH','Start\x20following','_status','LiveShareCoordinator','BehaviorSubject','ONLINE','default','UNIVER_LIVE_SHARE_PLUGIN','toDisposable','Subject','fill','createInstance','Module','You\x27re\x20presenting\x20the\x20document','getTypeOfUnitDisposed$','_fetchOperations','operations','toStringTag','LIVESHARE_OPERATION','parse','2276288npfWDz','length','defIds','LIVESHARE_REQUEST_HOST','1em','Inject','_handleOffline','NEW_CHANGESETS','1026592TwhqhI','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','xlink:href','startFollowing','LIVESHARE_TERMINATE','getInitialStates','substring','dispose$','set','throttleTime','OFFLINE','_stopFollowing','0\x200\x2017\x2017','LiveShareService','Start','presenting','SetZoomRatioOperation','BuiltInUIPart','use','UNIVER_SHEET','pipe','univer-mb-3\x20univer-w-full\x20univer-text-sm','currentColor','_univerInstanceService','then','touchDependencies','useState','reverse','takeUntil','_collabSession','presenter','idSuffix','add','IDLE','get','_uiPartsService','Injector','Dropdown','getMemberID','_startLiveShareCoordinator','getStatus','IUniverInstanceService','31615AKMMvZ','stopFollowing','CollaborationSessionService','registerInitialStateReporter','registerComponent','_reporters','colorChannel1','children','927XYkIbC','tryStartPresenting','UniverLiveSharePlugin','8qLXLqm'];_0x4eed=function(){return _0xbc2cfe;};return _0x4eed();}exports[_0x4d0976(0x17f)]=class extends o['Plugin']{constructor(_0x72a9e3=w,_0x5e16d1,_0x3c25b5){const _0x8cd89e=_0x4d0976;super(),this[_0x8cd89e(0x192)]=_0x72a9e3,this[_0x8cd89e(0x1b8)]=_0x5e16d1,this[_0x8cd89e(0x1be)]=_0x3c25b5;const {..._0x4923d2}=o[_0x8cd89e(0x184)]({},w,this[_0x8cd89e(0x192)]);this[_0x8cd89e(0x1be)][_0x8cd89e(0x1f0)](Q,_0x4923d2);}['onStarting'](){const _0x4e7a59=_0x4d0976;o[_0x4e7a59(0x1c5)](this['_injector'],o['mergeOverrideWithDependencies']([[E],[exports[_0x4e7a59(0x1fe)]],[m],[exports['DesktopLiveShareController']]],this[_0x4e7a59(0x192)][_0x4e7a59(0x19d)])),o['touchDependencies'](this['_injector'],[[m]]);}[_0x4d0976(0x1ae)](){const _0x42b8b0=_0x4d0976;o[_0x42b8b0(0x164)](this[_0x42b8b0(0x1b8)],[[exports[_0x42b8b0(0x1bc)]]]);}},A(exports[_0x4d0976(0x17f)],_0x4d0976(0x1ec),o[_0x4d0976(0x19c)][_0x4d0976(0x199)]),A(exports['UniverLiveSharePlugin'],_0x4d0976(0x206),oe),exports[_0x4d0976(0x17f)]=re([o[_0x4d0976(0x1d9)](b[_0x4d0976(0x19e)]),N(0x1,o[_0x4d0976(0x148)](o[_0x4d0976(0x16f)])),N(0x2,o[_0x4d0976(0x18f)])],exports[_0x4d0976(0x17f)]),exports['LiveShare']=$,exports[_0x4d0976(0x158)]=E,exports['LiveShareStatus']=u;
1
+ 'use strict';const _0x4c0162=_0xf66b;(function(_0x290d37,_0x4ab46c){const _0x33b098=_0xf66b,_0x1b72f9=_0x290d37();while(!![]){try{const _0x366087=parseInt(_0x33b098(0xf6))/0x1*(-parseInt(_0x33b098(0x158))/0x2)+parseInt(_0x33b098(0x13f))/0x3+-parseInt(_0x33b098(0xf4))/0x4+-parseInt(_0x33b098(0xc0))/0x5*(-parseInt(_0x33b098(0x112))/0x6)+parseInt(_0x33b098(0x134))/0x7*(-parseInt(_0x33b098(0x189))/0x8)+parseInt(_0x33b098(0x13d))/0x9*(parseInt(_0x33b098(0x110))/0xa)+parseInt(_0x33b098(0xb8))/0xb;if(_0x366087===_0x4ab46c)break;else _0x1b72f9['push'](_0x1b72f9['shift']());}catch(_0x4e448e){_0x1b72f9['push'](_0x1b72f9['shift']());}}}(_0x2686,0x5d80a));function _0x2686(){const _0x4bb846=['_startFollowing','UniverInstanceType','IDLE','You\x27are\x20offline.','1608LTFQjS','following','LiveShareController','forwardRef','BehaviorSubject','getUnitId','operations','Start\x20following','type','getStatus','Fragment','_handleOnline','_handleOffline','FOLLOWING','params','_entities','memberID','9783059NtHxNi','live-share.config','executeCommand','getLiveShareCoordinatorSync','LIVESHARE_NEW_HOST','SetZoomRatioOperation','connectInjector','defineProperty','425dJbxra','getCurrentTypeOfUnit$','event$','_fetchOperations','getInitialStates','get','idle','pluginName','_handleNewChangeSets','next','_status','UniverLiveSharePlugin','You\x27re\x20presenting\x20the\x20document','getConfig','mutations','Inject','_commandService','assign','_stopFollowing','jsxs','IConfigService','_presenter','entries','values','getLiveShareCoordinator','merge','NOT_FOLLOWING','BuiltInUIPart','dispose$','createElement','fill','toString','send','useRef','replace','Start','registerComponent','sessionStatus$','1em','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','stopFollowing','url(#$1','registerInitialStateReporter','CollaborationEvent','Module','_sharedOperations','Disposable','Stop\x20presenting','sheet','UniverIcon','touchDependencies','stopPresenting','2997968sMXOqB','dispose','3grnEdK','UNIVER_SHEET','_stopPresenting','length','forEach','unsubscribe','NEW_CHANGESETS','LiveShareIcon','currentColor','Plugin','_collabSession','registerSharedOperation','button','attrs','LIVESHARE_OPERATION','toDisposable','add','IUniverInstanceService','presenting','_beIdle','useEffect','LiveShare','SAME_OPERATION_SHARE_INTERVAL','DependentOn','UNIVER_UNKNOWN','_mountLiveShare','4762600sDobsq','Present\x20this\x20document','18492AcIyRU','throttleTime','not-following','map','from','symbol','_unitID','DesktopLiveShareController','Button','idSuffix','complete','0\x200\x2017\x2017','_startLiveShareCoordinator','mask','displayName','init','find','http://www.w3.org/2000/svg','substring','data','LIVESHARE_FETCH_OPERATIONS','UNIVER_LIVE_SHARE_PLUGIN','svg','SetScrollOperation','current','presenter','reverse','use','path','LiveShareStatus','random','offline','_injector','_commandDisposable','20902SlTqVA','_configService','setConfig','colorChannel1','_univerInstanceService','registerDependencies','tag','div','univerjs-icon\x20univerjs-icon-','9Zwlclv','_config','1912380KCMQTE','defIds','asObservable','ICommandService','_status$','DisposableCollection','defs','Stop\x20following','useDependency','startFollowing','_uiPartsService','IUIPartsService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getTypeOfUnitDisposed$','xlink:href','default','univer-mb-3\x20univer-w-full\x20univer-text-sm','string','set','SetWorksheetActiveOperation','_handleTerminate','takeUntil','none','_liveShareService','requireSession','354930RnmBkt','clsx','evenodd','_handleOperation','trim','stringify','children','_reporters','Dropdown','delete','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','parseProtocolChangeset','_init','UniverCollaborationClientPlugin','createInstance','LiveShareCoordinator','onRendered','shouldShareOperation','CommandType','SessionStatus','parse','jsx','OFFLINE','_startPresenting','getOwnPropertyDescriptor','You\x27re\x20following\x20the\x20presenter','disposeWithMe','LiveShareService','_collabSessionService','LIVESHARE_REQUEST_HOST','useState','PRESENTING','getMemberID','subscribe','status$','Injector','pipe','then','toStringTag','onCommandExecuted','override','RxDisposable','_handleNewHost','has','clear'];_0x2686=function(){return _0x4bb846;};return _0x2686();}var T=Object[_0x4c0162(0xbf)],U=(_0x378543,_0x40cbe1,_0x1af112)=>_0x40cbe1 in _0x378543?T(_0x378543,_0x40cbe1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1af112}):_0x378543[_0x40cbe1]=_0x1af112,_=(_0x23e1d9,_0xfbcdcc,_0x373705)=>U(_0x23e1d9,typeof _0xfbcdcc!=_0x4c0162(0x117)?_0xfbcdcc+'':_0xfbcdcc,_0x373705);Object[_0x4c0162(0xbf)](exports,Symbol[_0x4c0162(0x17e)],{'value':_0x4c0162(0xec)});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:_0x7ebd4d,..._0x29e80e}){const _0x32e049=_0x4c0162,{icon:_0x111a07,id:_0xf366d0,className:_0x548376,extend:_0x1deef4,..._0x3ea90a}=_0x29e80e,_0x288f64=(_0x32e049(0x13c)+_0xf366d0+'\x20'+(_0x548376||''))[_0x32e049(0x15c)](),_0x1f8b8e=v[_0x32e049(0xe1)]('_'+H());return j(_0x111a07,''+_0xf366d0,{'defIds':_0x111a07[_0x32e049(0x140)],'idSuffix':_0x1f8b8e['current']},{'ref':_0x7ebd4d,'className':_0x288f64,..._0x3ea90a},_0x1deef4);}function j(_0x536c4b,_0x4378dc,_0x46e4d8,_0x23fed7,_0x4e4cde){const _0x11c357=_0x4c0162;return v['createElement'](_0x536c4b['tag'],{'key':_0x4378dc,...y(_0x536c4b,_0x46e4d8,_0x4e4cde),..._0x23fed7},(F(_0x536c4b,_0x46e4d8)[_0x11c357(0x15e)]||[])[_0x11c357(0x115)]((_0x218ab0,_0x136e94)=>j(_0x218ab0,_0x4378dc+'-'+_0x536c4b[_0x11c357(0x13a)]+'-'+_0x136e94,_0x46e4d8,void 0x0,_0x4e4cde)));}function y(_0xca844d,_0xfe1926,_0x23f90c){const _0xba8aa1=_0x4c0162,_0x1cbbf8={..._0xca844d['attrs']};_0x23f90c!=null&&_0x23f90c['colorChannel1']&&_0x1cbbf8[_0xba8aa1(0xde)]===_0xba8aa1(0x137)&&(_0x1cbbf8[_0xba8aa1(0xde)]=_0x23f90c['colorChannel1']),_0xca844d['tag']===_0xba8aa1(0x11f)&&_0x1cbbf8['id']&&(_0x1cbbf8['id']=_0x1cbbf8['id']+_0xfe1926['idSuffix']),Object[_0xba8aa1(0xd6)](_0x1cbbf8)['forEach'](([_0x45f5ae,_0x214af8])=>{const _0x43a05b=_0xba8aa1;_0x45f5ae===_0x43a05b(0x11f)&&typeof _0x214af8==_0x43a05b(0x150)&&(_0x1cbbf8[_0x45f5ae]=_0x214af8[_0x43a05b(0xe2)](/url\(#(.*)\)/,_0x43a05b(0xe9)+_0xfe1926[_0x43a05b(0x11b)]+')'));});const {defIds:_0x513cca}=_0xfe1926;return!_0x513cca||_0x513cca[_0xba8aa1(0xf9)]===0x0||(_0xca844d[_0xba8aa1(0x13a)]===_0xba8aa1(0x12d)&&_0x1cbbf8[_0xba8aa1(0x14d)]&&(_0x1cbbf8[_0xba8aa1(0x14d)]=_0x1cbbf8[_0xba8aa1(0x14d)]+_0xfe1926[_0xba8aa1(0x11b)]),Object[_0xba8aa1(0xd6)](_0x1cbbf8)[_0xba8aa1(0xfa)](([_0x309bd8,_0x1b7438])=>{const _0x421ffc=_0xba8aa1;typeof _0x1b7438==_0x421ffc(0x150)&&(_0x1cbbf8[_0x309bd8]=_0x1b7438['replace'](/url\(#(.*)\)/,'url(#$1'+_0xfe1926[_0x421ffc(0x11b)]+')'));})),_0x1cbbf8;}function F(_0x3fefbe,_0xfdf756){const _0x2b1d15=_0x4c0162;var _0x34406f;const {defIds:_0x21a8cd}=_0xfdf756;return!_0x21a8cd||_0x21a8cd['length']===0x0?_0x3fefbe:_0x3fefbe['tag']===_0x2b1d15(0x145)&&((_0x34406f=_0x3fefbe[_0x2b1d15(0x15e)])!=null&&_0x34406f[_0x2b1d15(0xf9)])?{..._0x3fefbe,'children':_0x3fefbe[_0x2b1d15(0x15e)][_0x2b1d15(0x115)](_0x34e3c5=>typeof _0x34e3c5[_0x2b1d15(0x103)]['id']==_0x2b1d15(0x150)&&_0x21a8cd&&_0x21a8cd['includes'](_0x34e3c5[_0x2b1d15(0x103)]['id'])?{..._0x34e3c5,'attrs':{..._0x34e3c5['attrs'],'id':_0x34e3c5[_0x2b1d15(0x103)]['id']+_0xfdf756[_0x2b1d15(0x11b)]}}:_0x34e3c5)}:_0x3fefbe;}function H(){const _0x130d21=_0x4c0162;return Math[_0x130d21(0x130)]()[_0x130d21(0xdf)](0x24)[_0x130d21(0x124)](0x2,0x8);}x[_0x4c0162(0x120)]=_0x4c0162(0xf1);const V={'tag':_0x4c0162(0x128),'attrs':{'xmlns':_0x4c0162(0x123),'fill':_0x4c0162(0x155),'viewBox':_0x4c0162(0x11d),'width':_0x4c0162(0xe6),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x4c0162(0xfe),'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':_0x4c0162(0x12e),'attrs':{'fill':_0x4c0162(0xfe),'d':_0x4c0162(0xe7),'fillRule':_0x4c0162(0x15a),'clipRule':_0x4c0162(0x15a)}}]},R=v[_0x4c0162(0x18c)](function(_0x5cfe2b,_0x3d18e6){const _0x43a1af=_0x4c0162;return v[_0x43a1af(0xdd)](x,Object[_0x43a1af(0xd1)]({},_0x5cfe2b,{'id':'live-share-icon','ref':_0x3d18e6,'icon':V}));});R[_0x4c0162(0x120)]=_0x4c0162(0xfd);class E extends o['Disposable']{constructor(){const _0xf63e0a=_0x4c0162;super(...arguments),_(this,_0xf63e0a(0xed),new Set()),_(this,_0xf63e0a(0x15f),new Set());}[_0x4c0162(0x101)](_0x24d34a){const _0x3c914e=_0x4c0162;return this[_0x3c914e(0xed)]['add'](_0x24d34a),o[_0x3c914e(0x105)](()=>this[_0x3c914e(0xed)][_0x3c914e(0x161)](_0x24d34a));}[_0x4c0162(0xea)](_0x592dca){const _0x556cf5=_0x4c0162;return this['_reporters']['add'](_0x592dca),o[_0x556cf5(0x105)](()=>this[_0x556cf5(0x15f)][_0x556cf5(0x161)](_0x592dca));}[_0x4c0162(0x169)](_0x5d51e8){const _0x2bc47d=_0x4c0162;return this[_0x2bc47d(0xed)][_0x2bc47d(0x183)](_0x5d51e8);}[_0x4c0162(0xc4)](_0x16037c){const _0x186230=_0x4c0162;return Array[_0x186230(0x116)](this[_0x186230(0x15f)])[_0x186230(0x115)](_0x487621=>_0x487621(_0x16037c));}}var M=Object[_0x4c0162(0x170)],P=(_0x3ef408,_0x5819eb,_0x5c8cda,_0x29751a)=>{const _0x5a3bae=_0x4c0162;for(var _0x31f832=_0x29751a>0x1?void 0x0:_0x29751a?M(_0x5819eb,_0x5c8cda):_0x5819eb,_0x2fc171=_0x3ef408[_0x5a3bae(0xf9)]-0x1,_0x4b5153;_0x2fc171>=0x0;_0x2fc171--)(_0x4b5153=_0x3ef408[_0x2fc171])&&(_0x31f832=_0x4b5153(_0x31f832)||_0x31f832);return _0x31f832;},S=(_0x5d1f9e,_0x37dc49)=>(_0x42befb,_0x414e4c)=>_0x37dc49(_0x42befb,_0x414e4c,_0x5d1f9e);exports[_0x4c0162(0x18b)]=class extends o[_0x4c0162(0x181)]{constructor(_0x561931,_0xdbcef0,_0x189853){const _0x15d2d6=_0x4c0162;super(),_(this,_0x15d2d6(0xb6),new Map()),(this[_0x15d2d6(0x138)]=_0x561931,this[_0x15d2d6(0x132)]=_0xdbcef0,this[_0x15d2d6(0x174)]=_0x189853,this[_0x15d2d6(0x164)]());}async[_0x4c0162(0xd8)](_0x5363a4){const _0x2314ae=_0x4c0162;return this['_entities'][_0x2314ae(0x183)](_0x5363a4)||await this['_startLiveShareCoordinator'](_0x5363a4),this[_0x2314ae(0xb6)]['get'](_0x5363a4);}[_0x4c0162(0xbb)](_0x56d0de){const _0x4e3824=_0x4c0162;var _0x28ed82;return(_0x28ed82=this[_0x4e3824(0xb6)]['get'](_0x56d0de))!=null?_0x28ed82:null;}[_0x4c0162(0x164)](){const _0xfd4be1=_0x4c0162;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0xfd4be1(0x186)][_0xfd4be1(0xf7)])['pipe'](I[_0xfd4be1(0x154)](this[_0xfd4be1(0xdc)]))[_0xfd4be1(0x179)](async _0x3520ae=>{const _0x2ed61a=_0xfd4be1,_0x4f7704=_0x3520ae[_0x2ed61a(0x18e)]();this[_0x2ed61a(0xb6)][_0x2ed61a(0x183)](_0x4f7704)||this[_0x2ed61a(0x11e)](_0x4f7704);}),this[_0xfd4be1(0x138)][_0xfd4be1(0x14c)](o[_0xfd4be1(0x186)][_0xfd4be1(0xf7)])['pipe'](I[_0xfd4be1(0x154)](this[_0xfd4be1(0xdc)]))['subscribe'](_0x3ae0cb=>{const _0x32ab9b=_0xfd4be1,_0x4816ae=_0x3ae0cb[_0x32ab9b(0x18e)](),_0x2938eb=this[_0x32ab9b(0xb6)][_0x32ab9b(0xc5)](_0x4816ae);_0x2938eb==null||_0x2938eb[_0x32ab9b(0xf5)]();});}async[_0x4c0162(0x11e)](_0x446917){const _0x754d70=_0x4c0162,_0x45fd91=await this[_0x754d70(0x174)][_0x754d70(0x157)](_0x446917),_0x42743a=this['_injector'][_0x754d70(0x166)](exports[_0x754d70(0x167)],_0x446917,_0x45fd91);return _0x42743a[_0x754d70(0x121)](),this[_0x754d70(0xb6)][_0x754d70(0x151)](_0x446917,_0x42743a),_0x42743a;}},exports[_0x4c0162(0x18b)]=P([S(0x0,o[_0x4c0162(0x107)]),S(0x1,o[_0x4c0162(0xcf)](o[_0x4c0162(0x17b)])),S(0x2,o[_0x4c0162(0xcf)](b['CollaborationSessionService']))],exports[_0x4c0162(0x18b)]);var u=(_0x2f1870=>(_0x2f1870[_0x4c0162(0x16e)]=_0x4c0162(0x131),_0x2f1870['IDLE']=_0x4c0162(0xc6),_0x2f1870['FOLLOWING']=_0x4c0162(0x18a),_0x2f1870['NOT_FOLLOWING']='not-following',_0x2f1870['PRESENTING']=_0x4c0162(0x108),_0x2f1870))(u||{});const k=_0x4c0162(0x10c),q=0xc8;exports[_0x4c0162(0x167)]=class extends o[_0x4c0162(0x181)]{constructor(_0x29ea86,_0x104b1a,_0x2a4994,_0x4f2924,_0x29616a){const _0x1dc708=_0x4c0162;super(),_(this,_0x1dc708(0x143),new O[(_0x1dc708(0x18d))](_0x1dc708(0xc6))),_(this,_0x1dc708(0x17a),this[_0x1dc708(0x143)][_0x1dc708(0x141)]()),_(this,_0x1dc708(0x164),!0x1),_(this,_0x1dc708(0x133),null),_(this,_0x1dc708(0xd5),null),(this['_unitID']=_0x29ea86,this[_0x1dc708(0x100)]=_0x104b1a,this[_0x1dc708(0x135)]=_0x2a4994,this['_liveShareService']=_0x4f2924,this[_0x1dc708(0xd0)]=_0x29616a);}get[_0x4c0162(0xca)](){const _0x17d742=_0x4c0162;return this[_0x17d742(0x143)]['getValue']();}[_0x4c0162(0xf5)](){const _0x169a20=_0x4c0162;var _0x1b4f8b;(_0x1b4f8b=this[_0x169a20(0x133)])==null||_0x1b4f8b[_0x169a20(0xf5)](),this[_0x169a20(0x143)][_0x169a20(0xc9)](_0x169a20(0xc6)),this[_0x169a20(0x143)]['complete']();}[_0x4c0162(0x192)](){return this['_status'];}[_0x4c0162(0x121)](){const _0x2c5d11=_0x4c0162;this['_init']||(this[_0x2c5d11(0x164)]=!0x0,this[_0x2c5d11(0x100)][_0x2c5d11(0xe5)][_0x2c5d11(0x17c)](I[_0x2c5d11(0x154)](this[_0x2c5d11(0xdc)]))[_0x2c5d11(0x179)](_0x5d9900=>{const _0x2fc857=_0x2c5d11;switch(_0x5d9900){case b[_0x2fc857(0x16b)]['OFFLINE']:this['_handleOffline']();break;case b[_0x2fc857(0x16b)]['ONLINE']:this['_handleOnline']();break;}}),this[_0x2c5d11(0x100)][_0x2c5d11(0xc2)][_0x2c5d11(0x17c)](I[_0x2c5d11(0x154)](this[_0x2c5d11(0xdc)]))[_0x2c5d11(0x179)](_0x206628=>{const _0x326839=_0x2c5d11,{eventID:_0x3061ea}=_0x206628;switch(_0x3061ea){case d[_0x326839(0xeb)][_0x326839(0xbc)]:this[_0x326839(0x182)](_0x206628);break;case d['CollaborationEvent'][_0x326839(0x104)]:this[_0x326839(0x15b)](_0x206628);break;case d[_0x326839(0xeb)]['LIVESHARE_TERMINATE']:this[_0x326839(0x153)]();break;case d['CollaborationEvent'][_0x326839(0xfc)]:this[_0x326839(0xc8)](_0x206628);break;}}));}['tryStartPresenting'](){const _0x4a2726=_0x4c0162;this[_0x4a2726(0x100)]['send']({'eventID':d['CollaborationEvent'][_0x4a2726(0x175)],'data':{'unitID':this[_0x4a2726(0x118)],'userID':this['_collabSession'][_0x4a2726(0x178)]()}},this[_0x4a2726(0x118)]);}[_0x4c0162(0xf3)](){const _0x538cf2=_0x4c0162;this[_0x538cf2(0xca)]==='presenting'&&(this[_0x538cf2(0x143)][_0x538cf2(0xc9)](_0x538cf2(0xc6)),this[_0x538cf2(0x100)][_0x538cf2(0xe0)]({'eventID':d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x538cf2(0x118)]));}['startFollowing'](){const _0x10d8a3=_0x4c0162;this[_0x10d8a3(0xca)]===_0x10d8a3(0x114)&&(this[_0x10d8a3(0x143)][_0x10d8a3(0xc9)](_0x10d8a3(0x18a)),this[_0x10d8a3(0x185)]());}[_0x4c0162(0xe8)](){const _0x733c33=_0x4c0162;this[_0x733c33(0xca)]===_0x733c33(0x18a)&&this[_0x733c33(0xd2)]();}['_handleNewHost'](_0x35f720){const _0x4afbc9=_0x4c0162,{presenter:_0xf5851b}=_0x35f720[_0x4afbc9(0x125)],_0x2e9b5f=this['_collabSession']['getMemberID']();this[_0x4afbc9(0xd5)]=_0xf5851b,_0xf5851b===_0x2e9b5f?(this[_0x4afbc9(0xd2)](),this[_0x4afbc9(0x16f)]()):this[_0x4afbc9(0xca)]!==_0x4afbc9(0x114)&&(this[_0x4afbc9(0xf8)](),this[_0x4afbc9(0x185)]());}['_fetchOperations'](){const _0x154872=_0x4c0162,_0x4cb97c={'eventID':d[_0x154872(0xeb)][_0x154872(0x126)]};this[_0x154872(0x100)][_0x154872(0xe0)](_0x4cb97c,this[_0x154872(0x118)]);}[_0x4c0162(0x153)](){const _0x5bf930=_0x4c0162;this[_0x5bf930(0xd5)]=null,this[_0x5bf930(0xca)]!==_0x5bf930(0x108)&&this[_0x5bf930(0x109)]();}[_0x4c0162(0xc8)](_0x324164){const _0x56255e=_0x4c0162;if(this[_0x56255e(0xca)]===_0x56255e(0x18a)&&this[_0x56255e(0xd5)]===_0x324164[_0x56255e(0x125)][_0x56255e(0xb7)]){const _0x314824=d[_0x56255e(0x163)](_0x324164[_0x56255e(0x125)])[_0x56255e(0xce)][_0x56255e(0x12c)]()[_0x56255e(0x122)](_0x40ca29=>_0x40ca29['id']===C['InsertSheetMutation']['id']);if(_0x314824){const _0x58f882=_0x314824['params']['unitId'],_0x1d5829=_0x314824['params'][_0x56255e(0xf0)]['id'];setTimeout(()=>{const _0x341847=_0x56255e;this[_0x341847(0xd0)][_0x341847(0xba)](C[_0x341847(0x152)]['id'],{'unitId':_0x58f882,'subUnitId':_0x1d5829},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x15db28=_0x4c0162;this[_0x15db28(0x143)][_0x15db28(0xc9)](_0x15db28(0x108));const _0x33e24b=new Map(),_0x192fed=this[_0x15db28(0x133)]=new o[(_0x15db28(0x144))]();_0x192fed[_0x15db28(0x106)](o['toDisposable'](()=>{const _0x332914=_0x15db28;_0x33e24b[_0x332914(0xfa)](_0x3018f6=>_0x3018f6[_0x332914(0x11c)]()),_0x33e24b[_0x332914(0x184)]();})),_0x192fed['add'](this[_0x15db28(0xd0)][_0x15db28(0x17f)](_0x4ccb0f=>{const _0x2a7869=_0x15db28;var _0x5a9978;if(_0x4ccb0f[_0x2a7869(0x191)]!==o[_0x2a7869(0x16a)]['OPERATION']||!this[_0x2a7869(0x156)][_0x2a7869(0x169)](_0x4ccb0f['id']))return;const {id:_0x3c6c6c}=_0x4ccb0f;let _0x15a881;_0x33e24b[_0x2a7869(0x183)](_0x3c6c6c)?_0x15a881=_0x33e24b[_0x2a7869(0xc5)](_0x3c6c6c):(_0x15a881=new O['Subject'](),_0x33e24b['set'](_0x3c6c6c,_0x15a881),_0x15a881['pipe'](I[_0x2a7869(0x113)]((_0x5a9978=this[_0x2a7869(0x135)][_0x2a7869(0xcd)](k))!=null?_0x5a9978:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2a7869(0x179)](_0x1d6ece=>{const _0x2272fd=_0x2a7869;this[_0x2272fd(0x100)][_0x2272fd(0xe0)]({'eventID':d[_0x2272fd(0xeb)][_0x2272fd(0x104)],'data':{'unitID':this['_unitID'],'operations':{[_0x1d6ece['id']]:{'id':_0x1d6ece['id'],'params':JSON[_0x2272fd(0x15d)](_0x1d6ece[_0x2272fd(0xb5)])}}}},this[_0x2272fd(0x118)]);})),_0x15a881[_0x2a7869(0xc9)](_0x4ccb0f);})),this[_0x15db28(0x156)][_0x15db28(0xc4)](this[_0x15db28(0x118)])[_0x15db28(0xfa)](_0xe81ae3=>this['_collabSession'][_0x15db28(0xe0)]({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x15db28(0x118)],'operations':{[_0xe81ae3['id']]:{'id':_0xe81ae3['id'],'params':JSON['stringify'](_0xe81ae3[_0x15db28(0xb5)])}}}},this[_0x15db28(0x118)]));}[_0x4c0162(0xf8)](){const _0x239132=_0x4c0162;var _0x4c3793;this['_status$'][_0x239132(0xc9)](_0x239132(0xc6)),(_0x4c3793=this[_0x239132(0x133)])==null||_0x4c3793[_0x239132(0xf5)](),this[_0x239132(0x133)]=null;}['_startFollowing'](){const _0x2fe660=_0x4c0162;var _0x447957;(_0x447957=this['_commandDisposable'])==null||_0x447957[_0x2fe660(0xf5)](),this[_0x2fe660(0x143)][_0x2fe660(0xc9)](_0x2fe660(0x18a));}[_0x4c0162(0x109)](){const _0x49add4=_0x4c0162;var _0x51659f;this[_0x49add4(0x143)]['next'](_0x49add4(0xc6)),(_0x51659f=this[_0x49add4(0x133)])==null||_0x51659f['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x1bb377=_0x4c0162;var _0x527c13;this[_0x1bb377(0x143)]['next'](_0x1bb377(0x114)),(_0x527c13=this[_0x1bb377(0x133)])==null||_0x527c13['dispose']();}[_0x4c0162(0x15b)](_0xa27a64){const _0x2bb1ee=_0x4c0162;if(['presenting',_0x2bb1ee(0x114),_0x2bb1ee(0x131)]['includes'](this[_0x2bb1ee(0xca)])||!_0xa27a64[_0x2bb1ee(0x125)][_0x2bb1ee(0x12b)]||_0xa27a64[_0x2bb1ee(0x125)][_0x2bb1ee(0x12b)]===this[_0x2bb1ee(0x100)][_0x2bb1ee(0x178)]())return;this[_0x2bb1ee(0xca)]===_0x2bb1ee(0xc6)&&this[_0x2bb1ee(0x185)]();const _0x12744e=_0xa27a64[_0x2bb1ee(0x125)][_0x2bb1ee(0x18f)];Object[_0x2bb1ee(0xd7)](_0x12744e)[_0x2bb1ee(0xfa)](_0x5911ae=>{const _0x41da01=_0x2bb1ee;this[_0x41da01(0xd0)][_0x41da01(0xba)](_0x5911ae['id'],_0x5911ae[_0x41da01(0xb5)]?JSON[_0x41da01(0x16c)](_0x5911ae[_0x41da01(0xb5)]):null,{'fromCollab':!0x0});});}[_0x4c0162(0xb3)](){const _0x461195=_0x4c0162;var _0x34c1d9;this[_0x461195(0x143)]['next'](_0x461195(0x131)),(_0x34c1d9=this['_commandDisposable'])==null||_0x34c1d9[_0x461195(0xf5)]();}[_0x4c0162(0xb2)](){const _0x2e500a=_0x4c0162;this[_0x2e500a(0x143)][_0x2e500a(0xc9)]('idle'),this[_0x2e500a(0xc3)]();}},exports[_0x4c0162(0x167)]=P([S(0x2,o[_0x4c0162(0xd4)]),S(0x3,o[_0x4c0162(0xcf)](E)),S(0x4,o[_0x4c0162(0x142)])],exports[_0x4c0162(0x167)]);function $(){const _0x2e5216=_0x4c0162,_0xc25e84=p[_0x2e5216(0x147)](exports[_0x2e5216(0x18b)]),_0x3bbc1d=p[_0x2e5216(0x147)](o['IUniverInstanceService']),_0x24c836=p['useObservable'](()=>_0x3bbc1d[_0x2e5216(0xc1)](o[_0x2e5216(0x186)][_0x2e5216(0xf7)]),void 0x0,!0x1,[]),[_0x155115,_0x5113e2]=v[_0x2e5216(0x176)](null),[_0x27c0a2,_0x11abd4]=v[_0x2e5216(0x176)](u[_0x2e5216(0x187)]),_0x44cf01=v[_0x2e5216(0xe1)](null);return v[_0x2e5216(0x10a)](()=>(_0x24c836&&_0xc25e84[_0x2e5216(0xd8)](_0x24c836[_0x2e5216(0x18e)]())[_0x2e5216(0x17d)](_0x532b4c=>{const _0x21c506=_0x2e5216;_0x5113e2(_0x532b4c),_0x44cf01[_0x21c506(0x12a)]=_0x532b4c[_0x21c506(0x17a)][_0x21c506(0x179)](_0x181886=>{_0x11abd4(_0x181886);});}),()=>{const _0x487c9d=_0x2e5216;var _0x2cbeed;(_0x2cbeed=_0x44cf01[_0x487c9d(0x12a)])==null||_0x2cbeed[_0x487c9d(0xfb)](),_0x44cf01[_0x487c9d(0x12a)]=null;}),[_0x24c836,_0xc25e84]),_0x155115?l[_0x2e5216(0x16d)](f[_0x2e5216(0x160)],{'align':'end','disabled':_0x27c0a2===u[_0x2e5216(0x16e)],'className':_0x2e5216(0x162),'overlay':l[_0x2e5216(0x16d)](W,{'status':_0x27c0a2,'coordinator':_0x155115}),'children':l[_0x2e5216(0x16d)](_0x2e5216(0x102),{'className':f[_0x2e5216(0x159)](_0x2e5216(0x14b),{'univer-cursor-not-allowed':_0x27c0a2===u[_0x2e5216(0x16e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x27c0a2!==u[_0x2e5216(0x16e)]}),'type':'button','children':l[_0x2e5216(0x16d)](R,{'className':'univer-size-4'})})}):null;}function W(_0xc4ad6f){const _0x530a2d=_0x4c0162,{status:_0x33b345,coordinator:_0x315caa}=_0xc4ad6f;switch(_0x33b345){case u['IDLE']:return l[_0x530a2d(0x16d)](G,{'coordinator':_0x315caa});case u[_0x530a2d(0xb4)]:return l[_0x530a2d(0x16d)](B,{'coordinator':_0x315caa});case u[_0x530a2d(0xda)]:return l[_0x530a2d(0x16d)](Y,{'coordinator':_0x315caa});case u[_0x530a2d(0x16e)]:return l[_0x530a2d(0x16d)](J,{});case u[_0x530a2d(0x177)]:return l[_0x530a2d(0x16d)](Z,{'coordinator':_0x315caa});default:return null;}}function G(_0x321e4a){const _0x8552bc=_0x4c0162,{coordinator:_0x56402f}=_0x321e4a;return l[_0x8552bc(0xd3)](l[_0x8552bc(0xb1)],{'children':[l['jsx']('div',{'className':_0x8552bc(0x14f),'children':_0x8552bc(0x111)}),l[_0x8552bc(0x16d)](f['Button'],{'onClick':()=>_0x56402f['tryStartPresenting'](),'children':_0x8552bc(0xe3)})]});}function B(_0x1ac1f9){const _0x4a4d3b=_0x4c0162,{coordinator:_0x449e54}=_0x1ac1f9;return l[_0x4a4d3b(0xd3)](l['Fragment'],{'children':[l[_0x4a4d3b(0x16d)](_0x4a4d3b(0x13b),{'className':_0x4a4d3b(0x14f),'children':_0x4a4d3b(0x171)}),l[_0x4a4d3b(0x16d)](f[_0x4a4d3b(0x11a)],{'onClick':()=>_0x449e54[_0x4a4d3b(0xe8)](),'children':_0x4a4d3b(0x146)})]});}function Y(_0x1d50d0){const _0x21f310=_0x4c0162,{coordinator:_0x13008a}=_0x1d50d0;return l['jsxs'](l[_0x21f310(0xb1)],{'children':[l[_0x21f310(0x16d)](_0x21f310(0x13b),{'className':_0x21f310(0x14f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x21f310(0x16d)](f['Button'],{'variant':'text','onClick':()=>_0x13008a[_0x21f310(0x148)](),'children':_0x21f310(0x190)})]});}function Z(_0x12a8c7){const _0x49a4d9=_0x4c0162,{coordinator:_0x54e1cc}=_0x12a8c7;return l[_0x49a4d9(0xd3)](l[_0x49a4d9(0xb1)],{'children':[l[_0x49a4d9(0x16d)](_0x49a4d9(0x13b),{'className':_0x49a4d9(0x14f),'children':_0x49a4d9(0xcc)}),l['jsx'](f[_0x49a4d9(0x11a)],{'variant':_0x49a4d9(0x14e),'onClick':()=>_0x54e1cc[_0x49a4d9(0xf3)](),'children':_0x49a4d9(0xef)})]});}function J(){const _0x24c982=_0x4c0162;return l[_0x24c982(0x16d)](l[_0x24c982(0xb1)],{'children':_0x24c982(0x188)});}var K=Object[_0x4c0162(0x170)],z=(_0x59b8f5,_0x4356b7,_0x48f923,_0x4c78ef)=>{const _0xccfcbf=_0x4c0162;for(var _0x2ce4a2=_0x4c78ef>0x1?void 0x0:_0x4c78ef?K(_0x4356b7,_0x48f923):_0x4356b7,_0x7cf666=_0x59b8f5[_0xccfcbf(0xf9)]-0x1,_0x2b8ab5;_0x7cf666>=0x0;_0x7cf666--)(_0x2b8ab5=_0x59b8f5[_0x7cf666])&&(_0x2ce4a2=_0x2b8ab5(_0x2ce4a2)||_0x2ce4a2);return _0x2ce4a2;},L=(_0x425e39,_0x46edb9)=>(_0x1445d9,_0x469098)=>_0x46edb9(_0x1445d9,_0x469098,_0x425e39);exports[_0x4c0162(0x119)]=class extends o['Disposable']{constructor(_0x4e40a5,_0x5f51b3){const _0xe71c1b=_0x4c0162;super(),this[_0xe71c1b(0x132)]=_0x4e40a5,this[_0xe71c1b(0x149)]=_0x5f51b3,this['_mountLiveShare']();}[_0x4c0162(0x10f)](){const _0x449306=_0x4c0162;this[_0x449306(0x172)](this[_0x449306(0x149)][_0x449306(0xe4)](p[_0x449306(0xdb)]['HEADER_MENU'],()=>p[_0x449306(0xbe)]($,this[_0x449306(0x132)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x4c0162(0xcf)](o[_0x4c0162(0x17b)])),L(0x1,p[_0x4c0162(0x14a)])],exports[_0x4c0162(0x119)]);const Q=_0x4c0162(0xb9),w={};function _0xf66b(_0xcb26c,_0x172666){_0xcb26c=_0xcb26c-0xb1;const _0x26863b=_0x2686();let _0xf66bbb=_0x26863b[_0xcb26c];return _0xf66bbb;}var X=Object['getOwnPropertyDescriptor'],ee=(_0x386f1a,_0x365b74,_0x3b3076,_0x571e8d)=>{const _0x2bb21c=_0x4c0162;for(var _0x4e57a6=_0x571e8d>0x1?void 0x0:_0x571e8d?X(_0x365b74,_0x3b3076):_0x365b74,_0x326d34=_0x386f1a[_0x2bb21c(0xf9)]-0x1,_0x19a9b0;_0x326d34>=0x0;_0x326d34--)(_0x19a9b0=_0x386f1a[_0x326d34])&&(_0x4e57a6=_0x19a9b0(_0x4e57a6)||_0x4e57a6);return _0x4e57a6;},te=(_0xc3b167,_0x3e4afe)=>(_0x1a0b39,_0x1f9669)=>_0x3e4afe(_0x1a0b39,_0x1f9669,_0xc3b167);let m=class extends o[_0x4c0162(0xee)]{constructor(_0x4cc9c0){const _0x2be7b=_0x4c0162;super(),this[_0x2be7b(0x156)]=_0x4cc9c0,this[_0x2be7b(0x164)]();}['_init'](){const _0x1a0aa6=_0x4c0162;[D[_0x1a0aa6(0xbd)]['id'],D[_0x1a0aa6(0x129)]['id'],C['SetWorksheetActiveOperation']['id']][_0x1a0aa6(0xfa)](_0xa41494=>{const _0x165f6d=_0x1a0aa6;this[_0x165f6d(0x172)](this[_0x165f6d(0x156)]['registerSharedOperation'](_0xa41494));});}};m=ee([te(0x0,o[_0x4c0162(0xcf)](E))],m);var ie=Object[_0x4c0162(0xbf)],se=Object[_0x4c0162(0x170)],ne=(_0x2245e3,_0x34e4c8,_0x42e291)=>_0x34e4c8 in _0x2245e3?ie(_0x2245e3,_0x34e4c8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42e291}):_0x2245e3[_0x34e4c8]=_0x42e291,re=(_0x178ff3,_0x27e916,_0xfcabd0,_0x4b164f)=>{const _0x25870c=_0x4c0162;for(var _0x545fdb=_0x4b164f>0x1?void 0x0:_0x4b164f?se(_0x27e916,_0xfcabd0):_0x27e916,_0x4f43c8=_0x178ff3[_0x25870c(0xf9)]-0x1,_0xc8ba51;_0x4f43c8>=0x0;_0x4f43c8--)(_0xc8ba51=_0x178ff3[_0x4f43c8])&&(_0x545fdb=_0xc8ba51(_0x545fdb)||_0x545fdb);return _0x545fdb;},N=(_0x40383a,_0x2ae114)=>(_0x24cc54,_0x36f120)=>_0x2ae114(_0x24cc54,_0x36f120,_0x40383a),A=(_0x20dec4,_0x162dac,_0x36fa77)=>ne(_0x20dec4,typeof _0x162dac!=_0x4c0162(0x117)?_0x162dac+'':_0x162dac,_0x36fa77);const oe=_0x4c0162(0x127);exports[_0x4c0162(0xcb)]=class extends o[_0x4c0162(0xff)]{constructor(_0x5ae5ae=w,_0x3ef4a6,_0x1799c4){const _0x225078=_0x4c0162;super(),this['_config']=_0x5ae5ae,this[_0x225078(0x132)]=_0x3ef4a6,this[_0x225078(0x135)]=_0x1799c4;const {..._0x2b91c8}=o[_0x225078(0xd9)]({},w,this[_0x225078(0x13e)]);this[_0x225078(0x135)][_0x225078(0x136)](Q,_0x2b91c8);}['onStarting'](){const _0xfb1673=_0x4c0162;o[_0xfb1673(0x139)](this['_injector'],o['mergeOverrideWithDependencies']([[E],[exports['LiveShareController']],[m],[exports['DesktopLiveShareController']]],this[_0xfb1673(0x13e)][_0xfb1673(0x180)])),o[_0xfb1673(0xf2)](this[_0xfb1673(0x132)],[[m]]);}[_0x4c0162(0x168)](){const _0x5ae4de=_0x4c0162;o['touchDependencies'](this[_0x5ae4de(0x132)],[[exports[_0x5ae4de(0x119)]]]);}},A(exports[_0x4c0162(0xcb)],'type',o[_0x4c0162(0x186)][_0x4c0162(0x10e)]),A(exports[_0x4c0162(0xcb)],_0x4c0162(0xc7),oe),exports[_0x4c0162(0xcb)]=re([o[_0x4c0162(0x10d)](b[_0x4c0162(0x165)]),N(0x1,o[_0x4c0162(0xcf)](o['Injector'])),N(0x2,o[_0x4c0162(0xd4)])],exports['UniverLiveSharePlugin']),exports[_0x4c0162(0x10b)]=$,exports[_0x4c0162(0x173)]=E,exports[_0x4c0162(0x12f)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x4dc8b8=_0x5f36;(function(_0x56391e,_0x14e451){const _0x5f5d97=_0x5f36,_0x4737ab=_0x56391e();while(!![]){try{const _0x40c56f=-parseInt(_0x5f5d97(0x126))/0x1+parseInt(_0x5f5d97(0x12f))/0x2+-parseInt(_0x5f5d97(0x12e))/0x3+-parseInt(_0x5f5d97(0x129))/0x4+-parseInt(_0x5f5d97(0x127))/0x5*(-parseInt(_0x5f5d97(0x136))/0x6)+-parseInt(_0x5f5d97(0x12d))/0x7+-parseInt(_0x5f5d97(0x141))/0x8*(-parseInt(_0x5f5d97(0x125))/0x9);if(_0x40c56f===_0x14e451)break;else _0x4737ab['push'](_0x4737ab['shift']());}catch(_0x3a287d){_0x4737ab['push'](_0x4737ab['shift']());}}}(_0x3fb5,0x9b8ee));import{LiveShareController as _0x11290f,LiveShareStatus as _0xe8dad1}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x3b91eb}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xcf9b4e}from'@univerjs/sheets';function _0x3fb5(){const _0x2962ce=['getId','getLiveShareStatus','LiveShareStatusEnum','getActiveWorkbook','_commandService','96RIFatp','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','startRow','_injector','syncExecuteCommand','getActiveSheet','_initialize','get','extend','getRenderById','5464dAhRoE','stopPresenting','stopFollowing','IDLE','getUnitId','executeCommand','47565IhiKMB','1014794KqwhKq','43185hHoaaW','No\x20active\x20workbook\x20found.','3863632GoQMZt','getLiveShareCoordinatorSync','startFollowing','getSheetId','6661242rjvuAu','2610495QsgezT','1383584DxuqpI','PRESENTING'];_0x3fb5=function(){return _0x2962ce;};return _0x3fb5();}import{SetScrollOperation as _0x32cbe6}from'@univerjs/sheets-ui';import{FRange as _0x33eb4b}from'@univerjs/sheets/facade';import{FUniver as _0x312ea3,FEnum as _0x27e15c}from'@univerjs/core/facade';function _0x5f36(_0x5b72d9,_0xc0e600){_0x5b72d9=_0x5b72d9-0x120;const _0x3fb5b5=_0x3fb5();let _0x5f362a=_0x3fb5b5[_0x5b72d9];return _0x5f362a;}class I extends _0x33eb4b{[_0x4dc8b8(0x13d)](_0x1ec14c,_0x133e30,_0x568002,_0x58f5cc,_0x4a305a){const _0x2b1bde=_0x4dc8b8,_0x40be68=_0x1ec14c['get'](_0x11290f),_0x3a78d7=_0x1ec14c['get'](_0x3b91eb),_0x3b274f=_0x133e30[_0x2b1bde(0x123)](),_0x1b3f49=_0x133e30[_0x2b1bde(0x13c)](),_0x47f63d=_0x40be68['getLiveShareCoordinatorSync'](_0x3b274f);(_0x47f63d==null?void 0x0:_0x47f63d[_0x2b1bde(0x138)]())!==_0xe8dad1[_0x2b1bde(0x130)]||(_0x568002[_0x2b1bde(0x12c)]()!==_0x1b3f49[_0x2b1bde(0x12c)]()&&this[_0x2b1bde(0x135)][_0x2b1bde(0x124)](_0xcf9b4e['id'],{'unitId':_0x3b274f,'subUnitId':_0x568002[_0x2b1bde(0x12c)]()}),!_0x3a78d7[_0x2b1bde(0x140)](_0x3b274f))||_0x4a305a[_0x2b1bde(0x13b)](_0x32cbe6['id'],{'unitId':_0x133e30[_0x2b1bde(0x123)](),'sheetId':_0x568002[_0x2b1bde(0x12c)](),'sheetViewStartRow':_0x58f5cc[_0x2b1bde(0x139)],'sheetViewStartColumn':_0x58f5cc['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x33eb4b[_0x4dc8b8(0x13f)](I);class m extends _0x312ea3{[_0x4dc8b8(0x132)](){const _0xbd8d38=_0x4dc8b8;var _0x416d3f,_0xc24bc6;const _0x58591b=this['_injector'][_0xbd8d38(0x13e)](_0x11290f),_0x51930c=(_0x416d3f=this[_0xbd8d38(0x134)]())==null?void 0x0:_0x416d3f[_0xbd8d38(0x131)]();if(!_0x51930c)throw new Error('No\x20active\x20workbook\x20found.');const _0x57dab9=_0x58591b['getLiveShareCoordinatorSync'](_0x51930c);return(_0xc24bc6=_0x57dab9==null?void 0x0:_0x57dab9[_0xbd8d38(0x138)]())!=null?_0xc24bc6:_0xe8dad1[_0xbd8d38(0x122)];}[_0x4dc8b8(0x12b)](){const _0x1f752a=_0x4dc8b8;var _0x542b57;const _0xaccd06=this[_0x1f752a(0x13a)][_0x1f752a(0x13e)](_0x11290f),_0x4b827c=(_0x542b57=this[_0x1f752a(0x134)]())==null?void 0x0:_0x542b57[_0x1f752a(0x131)]();if(!_0x4b827c)throw new Error(_0x1f752a(0x128));const _0x191e82=_0xaccd06[_0x1f752a(0x12a)](_0x4b827c);if(!_0x191e82)throw new Error(_0x1f752a(0x137));_0x191e82['startFollowing']();}[_0x4dc8b8(0x121)](){const _0x39d780=_0x4dc8b8;var _0x25b4c3;const _0x21a42b=this['_injector'][_0x39d780(0x13e)](_0x11290f),_0x2bd5c4=(_0x25b4c3=this[_0x39d780(0x134)]())==null?void 0x0:_0x25b4c3['getId']();if(!_0x2bd5c4)throw new Error(_0x39d780(0x128));const _0x42b55e=_0x21a42b[_0x39d780(0x12a)](_0x2bd5c4);if(!_0x42b55e)throw new Error(_0x39d780(0x137));_0x42b55e[_0x39d780(0x121)]();}['startPresenting'](){const _0x3e4747=_0x4dc8b8;var _0x5b140a;const _0x299277=this[_0x3e4747(0x13a)]['get'](_0x11290f),_0x25a92e=(_0x5b140a=this[_0x3e4747(0x134)]())==null?void 0x0:_0x5b140a['getId']();if(!_0x25a92e)throw new Error(_0x3e4747(0x128));const _0x54a805=_0x299277['getLiveShareCoordinatorSync'](_0x25a92e);if(!_0x54a805)throw new Error(_0x3e4747(0x137));_0x54a805['tryStartPresenting']();}[_0x4dc8b8(0x120)](){const _0x95585d=_0x4dc8b8;var _0x3b3fbd;const _0x362097=this[_0x95585d(0x13a)][_0x95585d(0x13e)](_0x11290f),_0x174521=(_0x3b3fbd=this[_0x95585d(0x134)]())==null?void 0x0:_0x3b3fbd[_0x95585d(0x131)]();if(!_0x174521)throw new Error(_0x95585d(0x128));const _0x1ba602=_0x362097['getLiveShareCoordinatorSync'](_0x174521);if(!_0x1ba602)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1ba602[_0x95585d(0x120)]();}}_0x312ea3[_0x4dc8b8(0x13f)](m);class C extends _0x27e15c{get[_0x4dc8b8(0x133)](){return _0xe8dad1;}}_0x27e15c[_0x4dc8b8(0x13f)](C);
1
+ const _0x2346d5=_0x30d6;(function(_0x2fae06,_0x20ffe3){const _0x4e9714=_0x30d6,_0x595cc6=_0x2fae06();while(!![]){try{const _0x4e6bb4=-parseInt(_0x4e9714(0x199))/0x1*(parseInt(_0x4e9714(0x19d))/0x2)+-parseInt(_0x4e9714(0x17e))/0x3+parseInt(_0x4e9714(0x184))/0x4*(parseInt(_0x4e9714(0x198))/0x5)+parseInt(_0x4e9714(0x18b))/0x6*(parseInt(_0x4e9714(0x19e))/0x7)+-parseInt(_0x4e9714(0x19c))/0x8*(parseInt(_0x4e9714(0x182))/0x9)+-parseInt(_0x4e9714(0x19a))/0xa*(-parseInt(_0x4e9714(0x181))/0xb)+parseInt(_0x4e9714(0x190))/0xc;if(_0x4e6bb4===_0x20ffe3)break;else _0x595cc6['push'](_0x595cc6['shift']());}catch(_0x5edf99){_0x595cc6['push'](_0x595cc6['shift']());}}}(_0x15dd,0x7dde9));var l=Object[_0x2346d5(0x188)],w=(_0x5a7024,_0x12944b,_0x1c31b1)=>_0x12944b in _0x5a7024?l(_0x5a7024,_0x12944b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c31b1}):_0x5a7024[_0x12944b]=_0x1c31b1,v=(_0x2de969,_0x15fe06,_0x39e15a)=>w(_0x2de969,typeof _0x15fe06!=_0x2346d5(0x196)?_0x15fe06+'':_0x15fe06,_0x39e15a);import{LiveShareController as _0x332209,LiveShareStatus as _0x1303a9}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x187d32,UniverInstanceType as _0x82eb64}from'@univerjs/core';import{FUniver as _0xf81daa,FEnum as _0x4fe857}from'@univerjs/core/facade';function _0x30d6(_0x27c937,_0x5d005d){_0x27c937=_0x27c937-0x17e;const _0x15dd9d=_0x15dd();let _0x30d658=_0x15dd9d[_0x27c937];return _0x30d658;}class g extends _0xf81daa{constructor(){super(...arguments),v(this,'_liveShareController');}[_0x2346d5(0x193)](_0x3eb2f7){const _0x5353fc=_0x2346d5;this[_0x5353fc(0x18d)]=_0x3eb2f7[_0x5353fc(0x18f)](_0x332209);}[_0x2346d5(0x186)](){const _0x51ae3d=_0x2346d5;var _0x59941a;const _0xce8cf4=this[_0x51ae3d(0x194)][_0x51ae3d(0x18f)](_0x187d32)[_0x51ae3d(0x19b)](_0x82eb64[_0x51ae3d(0x187)]);if(!_0xce8cf4)throw new Error(_0x51ae3d(0x18c));const _0x30c97b=_0xce8cf4[_0x51ae3d(0x183)](),_0x500a4a=this[_0x51ae3d(0x18d)][_0x51ae3d(0x185)](_0x30c97b);return(_0x59941a=_0x500a4a==null?void 0x0:_0x500a4a['getStatus']())!=null?_0x59941a:_0x1303a9[_0x51ae3d(0x191)];}[_0x2346d5(0x17f)](){const _0x541125=_0x2346d5,_0x4ca904=this[_0x541125(0x194)]['get'](_0x187d32)[_0x541125(0x19b)](_0x82eb64[_0x541125(0x187)]);if(!_0x4ca904)throw new Error(_0x541125(0x18c));const _0x15f770=_0x4ca904[_0x541125(0x183)](),_0x1d7d5b=this['_liveShareController'][_0x541125(0x185)](_0x15f770);if(!_0x1d7d5b)throw new Error(_0x541125(0x180));_0x1d7d5b[_0x541125(0x17f)]();}[_0x2346d5(0x18a)](){const _0x59e30d=_0x2346d5,_0x46adf8=this[_0x59e30d(0x194)][_0x59e30d(0x18f)](_0x187d32)['getCurrentUnitOfType'](_0x82eb64['UNIVER_SHEET']);if(!_0x46adf8)throw new Error(_0x59e30d(0x18c));const _0x3f923f=_0x46adf8[_0x59e30d(0x183)](),_0x25da06=this[_0x59e30d(0x18d)]['getLiveShareCoordinatorSync'](_0x3f923f);if(!_0x25da06)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x25da06[_0x59e30d(0x18a)]();}[_0x2346d5(0x18e)](){const _0xf58e82=_0x2346d5,_0x4fe41e=this[_0xf58e82(0x194)][_0xf58e82(0x18f)](_0x187d32)[_0xf58e82(0x19b)](_0x82eb64[_0xf58e82(0x187)]);if(!_0x4fe41e)throw new Error(_0xf58e82(0x18c));const _0x28eb9d=_0x4fe41e['getUnitId'](),_0x1645fb=this[_0xf58e82(0x18d)][_0xf58e82(0x185)](_0x28eb9d);if(!_0x1645fb)throw new Error(_0xf58e82(0x180));_0x1645fb[_0xf58e82(0x192)]();}[_0x2346d5(0x189)](){const _0x1a725a=_0x2346d5,_0x86f55e=this[_0x1a725a(0x194)]['get'](_0x187d32)[_0x1a725a(0x19b)](_0x82eb64[_0x1a725a(0x187)]);if(!_0x86f55e)throw new Error(_0x1a725a(0x18c));const _0x8e1d48=_0x86f55e['getUnitId'](),_0x285e40=this[_0x1a725a(0x18d)]['getLiveShareCoordinatorSync'](_0x8e1d48);if(!_0x285e40)throw new Error(_0x1a725a(0x180));_0x285e40[_0x1a725a(0x189)]();}}_0xf81daa[_0x2346d5(0x197)](g);function _0x15dd(){const _0x5e0e54=['LiveShareStatusEnum','symbol','extend','5laBbxc','6184hAaEwo','130IfvkIM','getCurrentUnitOfType','8XrAwlc','142NFOPBp','920829npZsZH','2178288lSUoxz','startFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','293029GIUssg','5397219kxXFfl','getUnitId','3298896etlfWJ','getLiveShareCoordinatorSync','getLiveShareStatus','UNIVER_SHEET','defineProperty','stopPresenting','stopFollowing','42ejytgP','No\x20active\x20workbook\x20found.','_liveShareController','startPresenting','get','2262624AABLwR','IDLE','tryStartPresenting','_initialize','_injector'];_0x15dd=function(){return _0x5e0e54;};return _0x15dd();}class f extends _0x4fe857{get[_0x2346d5(0x195)](){return _0x1303a9;}}_0x4fe857[_0x2346d5(0x197)](f);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x96827c=_0xc50a;(function(_0xd3712b,_0x354222){const _0x2158d7=_0xc50a,_0x30913c=_0xd3712b();while(!![]){try{const _0x589f98=parseInt(_0x2158d7(0x194))/0x1+-parseInt(_0x2158d7(0x19b))/0x2*(parseInt(_0x2158d7(0x192))/0x3)+parseInt(_0x2158d7(0x1cd))/0x4*(-parseInt(_0x2158d7(0x184))/0x5)+-parseInt(_0x2158d7(0x1c4))/0x6*(parseInt(_0x2158d7(0x15a))/0x7)+-parseInt(_0x2158d7(0x1c0))/0x8*(-parseInt(_0x2158d7(0x16c))/0x9)+parseInt(_0x2158d7(0x1ac))/0xa*(-parseInt(_0x2158d7(0x1d5))/0xb)+-parseInt(_0x2158d7(0x1b4))/0xc*(-parseInt(_0x2158d7(0x1c8))/0xd);if(_0x589f98===_0x354222)break;else _0x30913c['push'](_0x30913c['shift']());}catch(_0x14c68d){_0x30913c['push'](_0x30913c['shift']());}}}(_0x29f7,0xeb18f));var J=Object[_0x96827c(0x1c1)],K=(_0xa54691,_0x1a35fc,_0xf29bd0)=>_0x1a35fc in _0xa54691?J(_0xa54691,_0x1a35fc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf29bd0}):_0xa54691[_0x1a35fc]=_0xf29bd0,u=(_0x3f7de1,_0x472ac0,_0x4914df)=>K(_0x3f7de1,typeof _0x472ac0!=_0x96827c(0x170)?_0x472ac0+'':_0x472ac0,_0x4914df);import{Disposable as _0x542443,toDisposable as _0x29da0b,IUniverInstanceService as _0x172570,Inject as _0x12159d,Injector as _0x10d13f,IConfigService as _0x30c056,ICommandService as _0x2cd8ca,RxDisposable as _0x221d5c,UniverInstanceType as _0x3415ab,DisposableCollection as _0x4bebde,CommandType as _0x533ba2,DependentOn as _0x367be1,Plugin as _0x178a4f,merge as _0x280048,registerDependencies as _0x49d66e,mergeOverrideWithDependencies as _0x49ea46,touchDependencies as _0x48236d}from'@univerjs/core';import{useDependency as _0x32ebdd,useObservable as _0x47f62b,IUIPartsService as _0x4111d1,BuiltInUIPart as _0x3ca98e,connectInjector as _0x170c5e}from'@univerjs/ui';import{jsx as _0x30e740,jsxs as _0x28108f,Fragment as _0x298014}from'react/jsx-runtime';import{Dropdown as _0x49027d,clsx as _0x12f4d7,Button as _0x23fa9e}from'@univerjs/design';import{useRef as _0x259872,createElement as _0x34459e,forwardRef as _0x29a658,useState as _0x2d673d,useEffect as _0x2c5085}from'react';function _0x29f7(){const _0x161af5=['next','_status','Start','SAME_OPERATION_SHARE_INTERVAL','_stopFollowing','onRendered','string','attrs','getMemberID','stopFollowing','map','Stop\x20presenting','526911zDhpdc','getTypeOfUnitAdded$','_handleTerminate','getUnitId','_startPresenting','colorChannel1','length','startFollowing','mask','getOwnPropertyDescriptor','univerjs-icon\x20univerjs-icon-','live-share.config','live-share-icon','1em','_sharedOperations','svg','_mountLiveShare','has','2907CVYxcl','PRESENTING','dispose','set','symbol','_fetchOperations','NOT_FOLLOWING','getConfig','random','_status$','data','stringify','then','_init','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','evenodd','dispose$','delete','init','complete','substring','tag','registerSharedOperation','idSuffix','30bmAoId','_entities','default','current','getLiveShareCoordinator','univer-size-4','_commandService','text','sheet','getValue','subscribe','end','path','_handleOperation','258231fiIXOY','trim','33447NLIluL','_collabSessionService','LIVESHARE_REQUEST_HOST','_presenter','_beIdle','_injector','fill','12rjICTz','mutations','HEADER_MENU','_reporters','shouldShareOperation','_liveShareService','_configService','children','forEach','sessionStatus$','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20presenting\x20the\x20document','entries','xlink:href','executeCommand','type','requireSession','168690eyiYnp','onStarting','0\x200\x2017\x2017','div','replace','_commandDisposable','createInstance','params','509496mHCOJX','values','stopPresenting','use','OFFLINE','status$','currentColor','add','clear','toString','displayName','You\x27are\x20offline.','36744mdMzUJ','defineProperty','presenter','none','54ZxWkUA','following','getLiveShareCoordinatorSync','Start\x20following','611hAzCZJ','send','_startLiveShareCoordinator','offline','memberID','4076fIVbFZ','onCommandExecuted','Present\x20this\x20document','setConfig','disposeWithMe','_config','Stop\x20following','tryStartPresenting','880RvJyaD','pluginName','presenting','_univerInstanceService','_stopPresenting','FOLLOWING','univer-mb-3\x20univer-w-full\x20univer-text-sm','getCurrentTypeOfUnit$','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_handleNewHost','not-following','LIVESHARE_TERMINATE','You\x27re\x20following\x20the\x20presenter','pipe','reverse','_unitID','LIVESHARE_FETCH_OPERATIONS','getStatus','getTypeOfUnitDisposed$','http://www.w3.org/2000/svg','IDLE','asObservable','NEW_CHANGESETS','_startFollowing','url(#$1','registerComponent','LIVESHARE_OPERATION','UNIVER_UNKNOWN','idle','LIVESHARE_NEW_HOST','_collabSession','OPERATION','_uiPartsService','UNIVER_SHEET','UniverIcon','_handleNewChangeSets','get'];_0x29f7=function(){return _0x161af5;};return _0x29f7();}import{CollaborationEvent as _0x1c8312,parseProtocolChangeset as _0x4a62c5}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5c85ce,SessionStatus as _0x316cc8,UniverCollaborationClientPlugin as _0x5aee68}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x26236c,SetWorksheetActiveOperation as _0x2132ea}from'@univerjs/sheets';import{BehaviorSubject as _0x2e23fe,Subject as _0x48d54b}from'rxjs';import{takeUntil as _0x4c7ad1,throttleTime as _0x3567da}from'rxjs/operators';import{SetZoomRatioOperation as _0x61211d,SetScrollOperation as _0xd8d9c7}from'@univerjs/sheets-ui';function k({ref:_0x4fffce,..._0x389294}){const _0xcf3bcb=_0x96827c,{icon:_0x287d26,id:_0x30c33c,className:_0x1ecc20,extend:_0x41f10c,..._0x24e1e7}=_0x389294,_0x75f5bb=(_0xcf3bcb(0x164)+_0x30c33c+'\x20'+(_0x1ecc20||''))[_0xcf3bcb(0x193)](),_0xb951bc=_0x259872('_'+Oe());return G(_0x287d26,''+_0x30c33c,{'defIds':_0x287d26['defIds'],'idSuffix':_0xb951bc[_0xcf3bcb(0x187)]},{'ref':_0x4fffce,'className':_0x75f5bb,..._0x24e1e7},_0x41f10c);}function G(_0x2e2440,_0x30873f,_0x3ac1a7,_0x53efb2,_0x4ec982){const _0x56092b=_0x96827c;return _0x34459e(_0x2e2440[_0x56092b(0x181)],{'key':_0x30873f,...be(_0x2e2440,_0x3ac1a7,_0x4ec982),..._0x53efb2},(Ee(_0x2e2440,_0x3ac1a7)[_0x56092b(0x1a2)]||[])[_0x56092b(0x158)]((_0x186fdf,_0x438bf5)=>G(_0x186fdf,_0x30873f+'-'+_0x2e2440[_0x56092b(0x181)]+'-'+_0x438bf5,_0x3ac1a7,void 0x0,_0x4ec982)));}function be(_0x42a7f5,_0x5872b4,_0x279cec){const _0x2d9bba=_0x96827c,_0x3c9e5b={..._0x42a7f5[_0x2d9bba(0x155)]};_0x279cec!=null&&_0x279cec[_0x2d9bba(0x15f)]&&_0x3c9e5b[_0x2d9bba(0x19a)]===_0x2d9bba(0x15f)&&(_0x3c9e5b[_0x2d9bba(0x19a)]=_0x279cec[_0x2d9bba(0x15f)]),_0x42a7f5['tag']===_0x2d9bba(0x162)&&_0x3c9e5b['id']&&(_0x3c9e5b['id']=_0x3c9e5b['id']+_0x5872b4[_0x2d9bba(0x183)]),Object[_0x2d9bba(0x1a7)](_0x3c9e5b)[_0x2d9bba(0x1a3)](([_0x1fddf5,_0xf3e4f2])=>{const _0x19f11f=_0x2d9bba;_0x1fddf5===_0x19f11f(0x162)&&typeof _0xf3e4f2==_0x19f11f(0x154)&&(_0x3c9e5b[_0x1fddf5]=_0xf3e4f2['replace'](/url\(#(.*)\)/,_0x19f11f(0x141)+_0x5872b4[_0x19f11f(0x183)]+')'));});const {defIds:_0xb0e04d}=_0x5872b4;return!_0xb0e04d||_0xb0e04d[_0x2d9bba(0x160)]===0x0||(_0x42a7f5['tag']===_0x2d9bba(0x1b7)&&_0x3c9e5b[_0x2d9bba(0x1a8)]&&(_0x3c9e5b[_0x2d9bba(0x1a8)]=_0x3c9e5b['xlink:href']+_0x5872b4[_0x2d9bba(0x183)]),Object['entries'](_0x3c9e5b)[_0x2d9bba(0x1a3)](([_0x313681,_0x4e4e36])=>{const _0xe477e=_0x2d9bba;typeof _0x4e4e36==_0xe477e(0x154)&&(_0x3c9e5b[_0x313681]=_0x4e4e36[_0xe477e(0x1b0)](/url\(#(.*)\)/,_0xe477e(0x141)+_0x5872b4[_0xe477e(0x183)]+')'));})),_0x3c9e5b;}function Ee(_0x3659df,_0xbb87a){const _0x4d50ae=_0x96827c;var _0x5151c9;const {defIds:_0x8233dc}=_0xbb87a;return!_0x8233dc||_0x8233dc['length']===0x0?_0x3659df:_0x3659df[_0x4d50ae(0x181)]==='defs'&&((_0x5151c9=_0x3659df['children'])!=null&&_0x5151c9['length'])?{..._0x3659df,'children':_0x3659df[_0x4d50ae(0x1a2)]['map'](_0x1788c5=>typeof _0x1788c5['attrs']['id']==_0x4d50ae(0x154)&&_0x8233dc&&_0x8233dc['includes'](_0x1788c5[_0x4d50ae(0x155)]['id'])?{..._0x1788c5,'attrs':{..._0x1788c5[_0x4d50ae(0x155)],'id':_0x1788c5['attrs']['id']+_0xbb87a['idSuffix']}}:_0x1788c5)}:_0x3659df;}function Oe(){const _0x3fa474=_0x96827c;return Math[_0x3fa474(0x174)]()[_0x3fa474(0x1bd)](0x24)[_0x3fa474(0x180)](0x2,0x8);}k[_0x96827c(0x1be)]=_0x96827c(0x14b);const we={'tag':_0x96827c(0x169),'attrs':{'xmlns':_0x96827c(0x13c),'fill':_0x96827c(0x1c3),'viewBox':_0x96827c(0x1ae),'width':_0x96827c(0x167),'height':_0x96827c(0x167)},'children':[{'tag':'path','attrs':{'fill':_0x96827c(0x1ba),'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':_0x96827c(0x190),'attrs':{'fill':_0x96827c(0x1ba),'d':_0x96827c(0x131),'fillRule':_0x96827c(0x17b),'clipRule':'evenodd'}}]},W=_0x29a658(function(_0x5b9e7f,_0x50ce43){const _0x4fb716=_0x96827c;return _0x34459e(k,Object['assign']({},_0x5b9e7f,{'id':_0x4fb716(0x166),'ref':_0x50ce43,'icon':we}));});W['displayName']='LiveShareIcon';class L extends _0x542443{constructor(){const _0x539cf1=_0x96827c;super(...arguments),u(this,_0x539cf1(0x168),new Set()),u(this,_0x539cf1(0x19e),new Set());}[_0x96827c(0x182)](_0x415e9f){const _0x33f6df=_0x96827c;return this[_0x33f6df(0x168)]['add'](_0x415e9f),_0x29da0b(()=>this[_0x33f6df(0x168)][_0x33f6df(0x17d)](_0x415e9f));}['registerInitialStateReporter'](_0x1b64fa){const _0x1dabaf=_0x96827c;return this[_0x1dabaf(0x19e)]['add'](_0x1b64fa),_0x29da0b(()=>this[_0x1dabaf(0x19e)][_0x1dabaf(0x17d)](_0x1b64fa));}[_0x96827c(0x19f)](_0x5cd651){const _0x52ffb9=_0x96827c;return this['_sharedOperations'][_0x52ffb9(0x16b)](_0x5cd651);}['getInitialStates'](_0x516c47){return Array['from'](this['_reporters'])['map'](_0x3093ca=>_0x3093ca(_0x516c47));}}var Ne=Object[_0x96827c(0x163)],Y=(_0x39f342,_0x2a0e94,_0x3ce163,_0x537574)=>{const _0x5cab04=_0x96827c;for(var _0x5a4d8b=_0x537574>0x1?void 0x0:_0x537574?Ne(_0x2a0e94,_0x3ce163):_0x2a0e94,_0x54c6dd=_0x39f342[_0x5cab04(0x160)]-0x1,_0xc36c41;_0x54c6dd>=0x0;_0x54c6dd--)(_0xc36c41=_0x39f342[_0x54c6dd])&&(_0x5a4d8b=_0xc36c41(_0x5a4d8b)||_0x5a4d8b);return _0x5a4d8b;},_=(_0x1972dd,_0x46ee3e)=>(_0x31fde8,_0x5df4bd)=>_0x46ee3e(_0x31fde8,_0x5df4bd,_0x1972dd);let S=class extends _0x221d5c{constructor(_0x3257ff,_0x2958d3,_0x2558d6){const _0x5ea6a9=_0x96827c;super(),u(this,_0x5ea6a9(0x185),new Map()),(this[_0x5ea6a9(0x12c)]=_0x3257ff,this['_injector']=_0x2958d3,this[_0x5ea6a9(0x195)]=_0x2558d6,this[_0x5ea6a9(0x179)]());}async[_0x96827c(0x188)](_0x33c624){const _0x2d25ef=_0x96827c;return this[_0x2d25ef(0x185)][_0x2d25ef(0x16b)](_0x33c624)||await this[_0x2d25ef(0x1ca)](_0x33c624),this[_0x2d25ef(0x185)][_0x2d25ef(0x14d)](_0x33c624);}[_0x96827c(0x1c6)](_0x321fae){const _0x155f33=_0x96827c;var _0x10ec32;return(_0x10ec32=this[_0x155f33(0x185)][_0x155f33(0x14d)](_0x321fae))!=null?_0x10ec32:null;}[_0x96827c(0x179)](){const _0x1ed15c=_0x96827c;this[_0x1ed15c(0x12c)][_0x1ed15c(0x15b)](_0x3415ab[_0x1ed15c(0x14a)])[_0x1ed15c(0x136)](_0x4c7ad1(this['dispose$']))[_0x1ed15c(0x18e)](async _0x419699=>{const _0x27d7d9=_0x1ed15c,_0xde0805=_0x419699['getUnitId']();this[_0x27d7d9(0x185)]['has'](_0xde0805)||this[_0x27d7d9(0x1ca)](_0xde0805);}),this[_0x1ed15c(0x12c)][_0x1ed15c(0x13b)](_0x3415ab[_0x1ed15c(0x14a)])['pipe'](_0x4c7ad1(this[_0x1ed15c(0x17c)]))[_0x1ed15c(0x18e)](_0x4c9513=>{const _0x82641d=_0x1ed15c,_0xa5d87d=_0x4c9513[_0x82641d(0x15d)](),_0x57a3c3=this['_entities'][_0x82641d(0x14d)](_0xa5d87d);_0x57a3c3==null||_0x57a3c3['dispose']();});}async[_0x96827c(0x1ca)](_0x2b4390){const _0x77e740=_0x96827c,_0x5ee16d=await this['_collabSessionService'][_0x77e740(0x1ab)](_0x2b4390),_0xda9c84=this[_0x77e740(0x199)][_0x77e740(0x1b2)](N,_0x2b4390,_0x5ee16d);return _0xda9c84[_0x77e740(0x17e)](),this['_entities'][_0x77e740(0x16f)](_0x2b4390,_0xda9c84),_0xda9c84;}};S=Y([_(0x0,_0x172570),_(0x1,_0x12159d(_0x10d13f)),_(0x2,_0x12159d(_0x5c85ce))],S);var c=(_0x3b8f6c=>(_0x3b8f6c[_0x96827c(0x1b8)]=_0x96827c(0x1cb),_0x3b8f6c[_0x96827c(0x13d)]=_0x96827c(0x145),_0x3b8f6c['FOLLOWING']=_0x96827c(0x1c5),_0x3b8f6c[_0x96827c(0x172)]=_0x96827c(0x133),_0x3b8f6c[_0x96827c(0x16d)]=_0x96827c(0x12b),_0x3b8f6c))(c||{});const Ce=_0x96827c(0x151),De=0xc8;let N=class extends _0x221d5c{constructor(_0x172afe,_0x3ce982,_0x43c932,_0x26a86a,_0x19db69){const _0x27875e=_0x96827c;super(),u(this,'_status$',new _0x2e23fe('idle')),u(this,_0x27875e(0x1b9),this[_0x27875e(0x175)][_0x27875e(0x13e)]()),u(this,'_init',!0x1),u(this,_0x27875e(0x1b1),null),u(this,_0x27875e(0x197),null),(this[_0x27875e(0x138)]=_0x172afe,this[_0x27875e(0x147)]=_0x3ce982,this['_configService']=_0x43c932,this['_liveShareService']=_0x26a86a,this['_commandService']=_0x19db69);}get[_0x96827c(0x14f)](){const _0x1f1df6=_0x96827c;return this['_status$'][_0x1f1df6(0x18d)]();}[_0x96827c(0x16e)](){const _0x42b689=_0x96827c;var _0x31aca4;(_0x31aca4=this['_commandDisposable'])==null||_0x31aca4['dispose'](),this['_status$'][_0x42b689(0x14e)](_0x42b689(0x145)),this[_0x42b689(0x175)][_0x42b689(0x17f)]();}[_0x96827c(0x13a)](){const _0x4ded30=_0x96827c;return this[_0x4ded30(0x14f)];}[_0x96827c(0x17e)](){const _0x5e960d=_0x96827c;this[_0x5e960d(0x179)]||(this[_0x5e960d(0x179)]=!0x0,this['_collabSession'][_0x5e960d(0x1a4)][_0x5e960d(0x136)](_0x4c7ad1(this[_0x5e960d(0x17c)]))[_0x5e960d(0x18e)](_0x4d29e8=>{const _0xdc2860=_0x5e960d;switch(_0x4d29e8){case _0x316cc8[_0xdc2860(0x1b8)]:this['_handleOffline']();break;case _0x316cc8['ONLINE']:this['_handleOnline']();break;}}),this[_0x5e960d(0x147)]['event$'][_0x5e960d(0x136)](_0x4c7ad1(this['dispose$']))[_0x5e960d(0x18e)](_0x342c83=>{const _0x2eb484=_0x5e960d,{eventID:_0x128eb9}=_0x342c83;switch(_0x128eb9){case _0x1c8312[_0x2eb484(0x146)]:this[_0x2eb484(0x132)](_0x342c83);break;case _0x1c8312[_0x2eb484(0x143)]:this['_handleOperation'](_0x342c83);break;case _0x1c8312[_0x2eb484(0x134)]:this[_0x2eb484(0x15c)]();break;case _0x1c8312[_0x2eb484(0x13f)]:this['_handleNewChangeSets'](_0x342c83);break;}}));}[_0x96827c(0x1d4)](){const _0x2e485f=_0x96827c;this[_0x2e485f(0x147)][_0x2e485f(0x1c9)]({'eventID':_0x1c8312[_0x2e485f(0x196)],'data':{'unitID':this[_0x2e485f(0x138)],'userID':this[_0x2e485f(0x147)][_0x2e485f(0x156)]()}},this[_0x2e485f(0x138)]);}[_0x96827c(0x1b6)](){const _0x39f130=_0x96827c;this[_0x39f130(0x14f)]===_0x39f130(0x12b)&&(this[_0x39f130(0x175)][_0x39f130(0x14e)](_0x39f130(0x145)),this[_0x39f130(0x147)][_0x39f130(0x1c9)]({'eventID':_0x1c8312[_0x39f130(0x134)],'data':{'unitID':this['_unitID']}},this[_0x39f130(0x138)]));}['startFollowing'](){const _0x58e15f=_0x96827c;this[_0x58e15f(0x14f)]===_0x58e15f(0x133)&&(this[_0x58e15f(0x175)]['next']('following'),this[_0x58e15f(0x140)]());}['stopFollowing'](){const _0x14c85d=_0x96827c;this['_status']===_0x14c85d(0x1c5)&&this[_0x14c85d(0x152)]();}[_0x96827c(0x132)](_0x10aad5){const _0x1fa370=_0x96827c,{presenter:_0x5dbb8b}=_0x10aad5[_0x1fa370(0x176)],_0x65d22d=this[_0x1fa370(0x147)][_0x1fa370(0x156)]();this[_0x1fa370(0x197)]=_0x5dbb8b,_0x5dbb8b===_0x65d22d?(this[_0x1fa370(0x152)](),this[_0x1fa370(0x15e)]()):this[_0x1fa370(0x14f)]!==_0x1fa370(0x133)&&(this[_0x1fa370(0x12d)](),this[_0x1fa370(0x140)]());}[_0x96827c(0x171)](){const _0x1b2eb7=_0x96827c,_0x409c9c={'eventID':_0x1c8312[_0x1b2eb7(0x139)]};this[_0x1b2eb7(0x147)]['send'](_0x409c9c,this['_unitID']);}[_0x96827c(0x15c)](){const _0x327db2=_0x96827c;this['_presenter']=null,this[_0x327db2(0x14f)]!=='presenting'&&this['_beIdle']();}[_0x96827c(0x14c)](_0x43a545){const _0x4792de=_0x96827c;if(this[_0x4792de(0x14f)]===_0x4792de(0x1c5)&&this[_0x4792de(0x197)]===_0x43a545[_0x4792de(0x176)][_0x4792de(0x1cc)]){const _0x401f31=_0x4a62c5(_0x43a545[_0x4792de(0x176)])[_0x4792de(0x19c)][_0x4792de(0x137)]()['find'](_0x2819c9=>_0x2819c9['id']===_0x26236c['id']);if(_0x401f31){const _0x2ffc2e=_0x401f31[_0x4792de(0x1b3)]['unitId'],_0x552514=_0x401f31['params'][_0x4792de(0x18c)]['id'];setTimeout(()=>{const _0x2ac54f=_0x4792de;this[_0x2ac54f(0x18a)]['executeCommand'](_0x2132ea['id'],{'unitId':_0x2ffc2e,'subUnitId':_0x552514},{'fromCollab':!0x0});});}}}[_0x96827c(0x15e)](){const _0xac8d7=_0x96827c;this[_0xac8d7(0x175)][_0xac8d7(0x14e)](_0xac8d7(0x12b));const _0x146b51=new Map(),_0x3614b4=this['_commandDisposable']=new _0x4bebde();_0x3614b4[_0xac8d7(0x1bb)](_0x29da0b(()=>{const _0x5a4557=_0xac8d7;_0x146b51[_0x5a4557(0x1a3)](_0x3ef1a1=>_0x3ef1a1[_0x5a4557(0x17f)]()),_0x146b51[_0x5a4557(0x1bc)]();})),_0x3614b4['add'](this[_0xac8d7(0x18a)][_0xac8d7(0x1ce)](_0x5c1619=>{const _0x2f2919=_0xac8d7;var _0x3d5dff;if(_0x5c1619[_0x2f2919(0x1aa)]!==_0x533ba2[_0x2f2919(0x148)]||!this[_0x2f2919(0x1a0)][_0x2f2919(0x19f)](_0x5c1619['id']))return;const {id:_0x53cbb8}=_0x5c1619;let _0x162a78;_0x146b51['has'](_0x53cbb8)?_0x162a78=_0x146b51[_0x2f2919(0x14d)](_0x53cbb8):(_0x162a78=new _0x48d54b(),_0x146b51[_0x2f2919(0x16f)](_0x53cbb8,_0x162a78),_0x162a78[_0x2f2919(0x136)](_0x3567da((_0x3d5dff=this[_0x2f2919(0x1a1)][_0x2f2919(0x173)](Ce))!=null?_0x3d5dff:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2f2919(0x18e)](_0x387181=>{const _0x6dfca3=_0x2f2919;this[_0x6dfca3(0x147)][_0x6dfca3(0x1c9)]({'eventID':_0x1c8312[_0x6dfca3(0x143)],'data':{'unitID':this[_0x6dfca3(0x138)],'operations':{[_0x387181['id']]:{'id':_0x387181['id'],'params':JSON[_0x6dfca3(0x177)](_0x387181[_0x6dfca3(0x1b3)])}}}},this['_unitID']);})),_0x162a78[_0x2f2919(0x14e)](_0x5c1619);})),this[_0xac8d7(0x1a0)]['getInitialStates'](this[_0xac8d7(0x138)])[_0xac8d7(0x1a3)](_0x2dd37c=>this[_0xac8d7(0x147)][_0xac8d7(0x1c9)]({'eventID':_0x1c8312['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xac8d7(0x138)],'operations':{[_0x2dd37c['id']]:{'id':_0x2dd37c['id'],'params':JSON[_0xac8d7(0x177)](_0x2dd37c['params'])}}}},this['_unitID']));}[_0x96827c(0x12d)](){const _0x2324c8=_0x96827c;var _0x5ea30c;this[_0x2324c8(0x175)][_0x2324c8(0x14e)](_0x2324c8(0x145)),(_0x5ea30c=this[_0x2324c8(0x1b1)])==null||_0x5ea30c['dispose'](),this[_0x2324c8(0x1b1)]=null;}[_0x96827c(0x140)](){const _0x33d552=_0x96827c;var _0x1ccb84;(_0x1ccb84=this[_0x33d552(0x1b1)])==null||_0x1ccb84[_0x33d552(0x16e)](),this[_0x33d552(0x175)][_0x33d552(0x14e)]('following');}[_0x96827c(0x198)](){const _0x3c0984=_0x96827c;var _0xcc4733;this['_status$'][_0x3c0984(0x14e)]('idle'),(_0xcc4733=this[_0x3c0984(0x1b1)])==null||_0xcc4733['dispose'](),this[_0x3c0984(0x1b1)]=null;}[_0x96827c(0x152)](){const _0x534fac=_0x96827c;var _0x322dba;this[_0x534fac(0x175)][_0x534fac(0x14e)]('not-following'),(_0x322dba=this[_0x534fac(0x1b1)])==null||_0x322dba[_0x534fac(0x16e)]();}[_0x96827c(0x191)](_0x533c1d){const _0x151c03=_0x96827c;if(['presenting',_0x151c03(0x133),_0x151c03(0x1cb)]['includes'](this[_0x151c03(0x14f)])||!_0x533c1d[_0x151c03(0x176)]['presenter']||_0x533c1d['data'][_0x151c03(0x1c2)]===this[_0x151c03(0x147)][_0x151c03(0x156)]())return;this[_0x151c03(0x14f)]===_0x151c03(0x145)&&this[_0x151c03(0x140)]();const _0x1d7866=_0x533c1d[_0x151c03(0x176)]['operations'];Object[_0x151c03(0x1b5)](_0x1d7866)[_0x151c03(0x1a3)](_0x2898bd=>{const _0xf7efbb=_0x151c03;this[_0xf7efbb(0x18a)][_0xf7efbb(0x1a9)](_0x2898bd['id'],_0x2898bd[_0xf7efbb(0x1b3)]?JSON['parse'](_0x2898bd[_0xf7efbb(0x1b3)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4bfac9=_0x96827c;var _0x24fdc0;this[_0x4bfac9(0x175)][_0x4bfac9(0x14e)](_0x4bfac9(0x1cb)),(_0x24fdc0=this[_0x4bfac9(0x1b1)])==null||_0x24fdc0[_0x4bfac9(0x16e)]();}['_handleOnline'](){const _0x55549c=_0x96827c;this['_status$']['next']('idle'),this[_0x55549c(0x171)]();}};N=Y([_(0x2,_0x30c056),_(0x3,_0x12159d(L)),_(0x4,_0x2cd8ca)],N);function Le(){const _0x1ff1f9=_0x96827c,_0x1cdad9=_0x32ebdd(S),_0x1163b2=_0x32ebdd(_0x172570),_0x48468d=_0x47f62b(()=>_0x1163b2[_0x1ff1f9(0x130)](_0x3415ab[_0x1ff1f9(0x14a)]),void 0x0,!0x1,[]),[_0x4f6c03,_0x3c455f]=_0x2d673d(null),[_0x246acb,_0x5e1369]=_0x2d673d(c[_0x1ff1f9(0x13d)]),_0x1766d9=_0x259872(null);return _0x2c5085(()=>(_0x48468d&&_0x1cdad9[_0x1ff1f9(0x188)](_0x48468d[_0x1ff1f9(0x15d)]())[_0x1ff1f9(0x178)](_0x12a446=>{const _0x10d923=_0x1ff1f9;_0x3c455f(_0x12a446),_0x1766d9[_0x10d923(0x187)]=_0x12a446[_0x10d923(0x1b9)][_0x10d923(0x18e)](_0x4b3a29=>{_0x5e1369(_0x4b3a29);});}),()=>{const _0x7d8849=_0x1ff1f9;var _0x2cd906;(_0x2cd906=_0x1766d9[_0x7d8849(0x187)])==null||_0x2cd906['unsubscribe'](),_0x1766d9['current']=null;}),[_0x48468d,_0x1cdad9]),_0x4f6c03?_0x30e740(_0x49027d,{'align':_0x1ff1f9(0x18f),'disabled':_0x246acb===c[_0x1ff1f9(0x1b8)],'className':_0x1ff1f9(0x17a),'overlay':_0x30e740(Re,{'status':_0x246acb,'coordinator':_0x4f6c03}),'children':_0x30e740('button',{'className':_0x12f4d7('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x246acb===c[_0x1ff1f9(0x1b8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x246acb!==c[_0x1ff1f9(0x1b8)]}),'type':'button','children':_0x30e740(W,{'className':_0x1ff1f9(0x189)})})}):null;}function Re(_0xb308f2){const _0x590c1a=_0x96827c,{status:_0x13032a,coordinator:_0x3bbfd2}=_0xb308f2;switch(_0x13032a){case c['IDLE']:return _0x30e740($e,{'coordinator':_0x3bbfd2});case c[_0x590c1a(0x12e)]:return _0x30e740(xe,{'coordinator':_0x3bbfd2});case c[_0x590c1a(0x172)]:return _0x30e740(Pe,{'coordinator':_0x3bbfd2});case c[_0x590c1a(0x1b8)]:return _0x30e740(Te,{});case c[_0x590c1a(0x16d)]:return _0x30e740(Ae,{'coordinator':_0x3bbfd2});default:return null;}}function $e(_0x288407){const _0x279469=_0x96827c,{coordinator:_0x572ad3}=_0x288407;return _0x28108f(_0x298014,{'children':[_0x30e740(_0x279469(0x1af),{'className':_0x279469(0x12f),'children':_0x279469(0x1cf)}),_0x30e740(_0x23fa9e,{'onClick':()=>_0x572ad3[_0x279469(0x1d4)](),'children':_0x279469(0x150)})]});}function xe(_0x33565a){const _0x567e02=_0x96827c,{coordinator:_0x30403c}=_0x33565a;return _0x28108f(_0x298014,{'children':[_0x30e740('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x567e02(0x135)}),_0x30e740(_0x23fa9e,{'onClick':()=>_0x30403c[_0x567e02(0x157)](),'children':_0x567e02(0x1d3)})]});}function Pe(_0x364044){const _0x30a097=_0x96827c,{coordinator:_0x5eda4e}=_0x364044;return _0x28108f(_0x298014,{'children':[_0x30e740(_0x30a097(0x1af),{'className':_0x30a097(0x12f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x30e740(_0x23fa9e,{'variant':_0x30a097(0x18b),'onClick':()=>_0x5eda4e[_0x30a097(0x161)](),'children':_0x30a097(0x1c7)})]});}function Ae(_0x2e0d9a){const _0x3c1c89=_0x96827c,{coordinator:_0x3cbbe8}=_0x2e0d9a;return _0x28108f(_0x298014,{'children':[_0x30e740(_0x3c1c89(0x1af),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3c1c89(0x1a6)}),_0x30e740(_0x23fa9e,{'variant':_0x3c1c89(0x186),'onClick':()=>_0x3cbbe8[_0x3c1c89(0x1b6)](),'children':_0x3c1c89(0x159)})]});}function _0xc50a(_0x266c05,_0x5dfeae){_0x266c05=_0x266c05-0x12a;const _0x29f73d=_0x29f7();let _0xc50abe=_0x29f73d[_0x266c05];return _0xc50abe;}function Te(){const _0x3ec1ad=_0x96827c;return _0x30e740(_0x298014,{'children':_0x3ec1ad(0x1bf)});}var Fe=Object[_0x96827c(0x163)],He=(_0x4c7a69,_0x432ad7,_0x47a85b,_0x80312b)=>{const _0x45dd27=_0x96827c;for(var _0x331422=_0x80312b>0x1?void 0x0:_0x80312b?Fe(_0x432ad7,_0x47a85b):_0x432ad7,_0x3fed9f=_0x4c7a69[_0x45dd27(0x160)]-0x1,_0x5b50aa;_0x3fed9f>=0x0;_0x3fed9f--)(_0x5b50aa=_0x4c7a69[_0x3fed9f])&&(_0x331422=_0x5b50aa(_0x331422)||_0x331422);return _0x331422;},A=(_0x9a10be,_0x2e8888)=>(_0x4c3dd8,_0x1ecd26)=>_0x2e8888(_0x4c3dd8,_0x1ecd26,_0x9a10be);let m=class extends _0x542443{constructor(_0x55893a,_0x4f86db){const _0x50f3e0=_0x96827c;super(),this[_0x50f3e0(0x199)]=_0x55893a,this[_0x50f3e0(0x149)]=_0x4f86db,this[_0x50f3e0(0x16a)]();}[_0x96827c(0x16a)](){const _0x43a835=_0x96827c;this[_0x43a835(0x1d1)](this['_uiPartsService'][_0x43a835(0x142)](_0x3ca98e[_0x43a835(0x19d)],()=>_0x170c5e(Le,this[_0x43a835(0x199)])));}};m=He([A(0x0,_0x12159d(_0x10d13f)),A(0x1,_0x4111d1)],m);const ye=_0x96827c(0x165),T={};var Ue=Object[_0x96827c(0x163)],Ve=(_0x26eb8c,_0x547ff3,_0x220c6b,_0x293d30)=>{const _0xcb9906=_0x96827c;for(var _0x49d27f=_0x293d30>0x1?void 0x0:_0x293d30?Ue(_0x547ff3,_0x220c6b):_0x547ff3,_0x13fe2b=_0x26eb8c[_0xcb9906(0x160)]-0x1,_0x25080e;_0x13fe2b>=0x0;_0x13fe2b--)(_0x25080e=_0x26eb8c[_0x13fe2b])&&(_0x49d27f=_0x25080e(_0x49d27f)||_0x49d27f);return _0x49d27f;},je=(_0x4c96a9,_0x18aa71)=>(_0x3c77d0,_0x4ade44)=>_0x18aa71(_0x3c77d0,_0x4ade44,_0x4c96a9);let I=class extends _0x542443{constructor(_0x5ca450){const _0x7ad533=_0x96827c;super(),this[_0x7ad533(0x1a0)]=_0x5ca450,this[_0x7ad533(0x179)]();}[_0x96827c(0x179)](){const _0x4d6377=_0x96827c;[_0x61211d['id'],_0xd8d9c7['id'],_0x2132ea['id']][_0x4d6377(0x1a3)](_0x3642ad=>{const _0x2e36a3=_0x4d6377;this[_0x2e36a3(0x1d1)](this[_0x2e36a3(0x1a0)]['registerSharedOperation'](_0x3642ad));});}};I=Ve([je(0x0,_0x12159d(L))],I);var Me=Object[_0x96827c(0x1c1)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x136074,_0x7c1fa5,_0x185795)=>_0x7c1fa5 in _0x136074?Me(_0x136074,_0x7c1fa5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x185795}):_0x136074[_0x7c1fa5]=_0x185795,We=(_0x519d63,_0xe3e663,_0x54484c,_0x24d333)=>{const _0x405711=_0x96827c;for(var _0xafdfbc=_0x24d333>0x1?void 0x0:_0x24d333?ke(_0xe3e663,_0x54484c):_0xe3e663,_0x49dd8d=_0x519d63[_0x405711(0x160)]-0x1,_0x580f5c;_0x49dd8d>=0x0;_0x49dd8d--)(_0x580f5c=_0x519d63[_0x49dd8d])&&(_0xafdfbc=_0x580f5c(_0xafdfbc)||_0xafdfbc);return _0xafdfbc;},F=(_0x43898e,_0x4bdf90)=>(_0x4fbea8,_0x2c1e6c)=>_0x4bdf90(_0x4fbea8,_0x2c1e6c,_0x43898e),B=(_0x584304,_0x509b00,_0x4f0acf)=>Ge(_0x584304,typeof _0x509b00!=_0x96827c(0x170)?_0x509b00+'':_0x509b00,_0x4f0acf);const Ye=_0x96827c(0x1a5);let b=class extends _0x178a4f{constructor(_0x1e340c=T,_0x1680e9,_0x3ba132){const _0x4ba32a=_0x96827c;super(),this[_0x4ba32a(0x1d2)]=_0x1e340c,this[_0x4ba32a(0x199)]=_0x1680e9,this[_0x4ba32a(0x1a1)]=_0x3ba132;const {..._0x3c0c05}=_0x280048({},T,this[_0x4ba32a(0x1d2)]);this[_0x4ba32a(0x1a1)][_0x4ba32a(0x1d0)](ye,_0x3c0c05);}[_0x96827c(0x1ad)](){const _0x2f5af0=_0x96827c;_0x49d66e(this[_0x2f5af0(0x199)],_0x49ea46([[L],[S],[I],[m]],this[_0x2f5af0(0x1d2)]['override'])),_0x48236d(this['_injector'],[[I]]);}[_0x96827c(0x153)](){_0x48236d(this['_injector'],[[m]]);}};B(b,_0x96827c(0x1aa),_0x3415ab[_0x96827c(0x144)]),B(b,_0x96827c(0x12a),Ye),b=We([_0x367be1(_0x5aee68),F(0x1,_0x12159d(_0x10d13f)),F(0x2,_0x30c056)],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 _0x592408=_0x293d;(function(_0x38139e,_0x34835c){const _0x5bc4f0=_0x293d,_0x2d1908=_0x38139e();while(!![]){try{const _0x1aa606=parseInt(_0x5bc4f0(0x20e))/0x1*(-parseInt(_0x5bc4f0(0x24d))/0x2)+-parseInt(_0x5bc4f0(0x235))/0x3+-parseInt(_0x5bc4f0(0x1e4))/0x4+parseInt(_0x5bc4f0(0x22d))/0x5+parseInt(_0x5bc4f0(0x218))/0x6+-parseInt(_0x5bc4f0(0x21d))/0x7+parseInt(_0x5bc4f0(0x242))/0x8;if(_0x1aa606===_0x34835c)break;else _0x2d1908['push'](_0x2d1908['shift']());}catch(_0x4702e9){_0x2d1908['push'](_0x2d1908['shift']());}}}(_0x40ff,0x9ef19));var J=Object[_0x592408(0x1d4)],K=(_0x25694b,_0x5775e6,_0x463e02)=>_0x5775e6 in _0x25694b?J(_0x25694b,_0x5775e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x463e02}):_0x25694b[_0x5775e6]=_0x463e02,u=(_0x12abe7,_0x35b39c,_0x38c3c7)=>K(_0x12abe7,typeof _0x35b39c!='symbol'?_0x35b39c+'':_0x35b39c,_0x38c3c7);import{Disposable as _0x33ef8e,toDisposable as _0x20dd5b,IUniverInstanceService as _0x53f99e,Inject as _0x311fb0,Injector as _0x24ee9e,IConfigService as _0x3de0b0,ICommandService as _0x148cf9,RxDisposable as _0x1c3605,UniverInstanceType as _0x538a9c,DisposableCollection as _0x3daf0f,CommandType as _0x4f6879,DependentOn as _0x23f815,Plugin as _0x13b402,merge as _0x1bcd48,registerDependencies as _0x135b87,mergeOverrideWithDependencies as _0x1312ff,touchDependencies as _0x8d80af}from'@univerjs/core';import{useDependency as _0x204cae,useObservable as _0xb7854a,IUIPartsService as _0x8de62a,BuiltInUIPart as _0x11ce85,connectInjector as _0x4f5fb6}from'@univerjs/ui';import{jsx as _0x4a42da,jsxs as _0x38eaf4,Fragment as _0x29e3a5}from'react/jsx-runtime';import{Dropdown as _0x9f7729,clsx as _0x421684,Button as _0x24ed50}from'@univerjs/design';import{useRef as _0x20004a,createElement as _0x5ab196,forwardRef as _0x3fde48,useState as _0x4a1d9e,useEffect as _0x1e0d3a}from'react';import{CollaborationEvent as _0x2c77f3,parseProtocolChangeset as _0xbe98ce}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x34794b,SessionStatus as _0x34eb0b,UniverCollaborationClientPlugin as _0x3d09b1}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4a66bf,SetWorksheetActiveOperation as _0xc6f41a}from'@univerjs/sheets';import{BehaviorSubject as _0x5eee04,Subject as _0x402774}from'rxjs';import{takeUntil as _0x2f8329,throttleTime as _0x598727}from'rxjs/operators';import{SetZoomRatioOperation as _0x26ffad,SetScrollOperation as _0xeb207}from'@univerjs/sheets-ui';function k({ref:_0x27b357,..._0x8aadbc}){const _0x31a1dd=_0x592408,{icon:_0x3897d1,id:_0x1be106,className:_0x5589c4,extend:_0x2ccd93,..._0x3b6fee}=_0x8aadbc,_0x496bd4=('univerjs-icon\x20univerjs-icon-'+_0x1be106+'\x20'+(_0x5589c4||''))['trim'](),_0x3c9c50=_0x20004a('_'+Oe());return G(_0x3897d1,''+_0x1be106,{'defIds':_0x3897d1['defIds'],'idSuffix':_0x3c9c50[_0x31a1dd(0x1ee)]},{'ref':_0x27b357,'className':_0x496bd4,..._0x3b6fee},_0x2ccd93);}function G(_0x280e8b,_0x37d25c,_0x40d904,_0x4be9bd,_0x27bf3d){const _0x54de1c=_0x592408;return _0x5ab196(_0x280e8b['tag'],{'key':_0x37d25c,...be(_0x280e8b,_0x40d904,_0x27bf3d),..._0x4be9bd},(Ee(_0x280e8b,_0x40d904)[_0x54de1c(0x23e)]||[])[_0x54de1c(0x215)]((_0x26490c,_0x2bb720)=>G(_0x26490c,_0x37d25c+'-'+_0x280e8b[_0x54de1c(0x24a)]+'-'+_0x2bb720,_0x40d904,void 0x0,_0x27bf3d)));}function be(_0x3c5c0a,_0x3398da,_0x47ee34){const _0x55a73f=_0x592408,_0x1ead94={..._0x3c5c0a[_0x55a73f(0x1ca)]};_0x47ee34!=null&&_0x47ee34['colorChannel1']&&_0x1ead94['fill']===_0x55a73f(0x213)&&(_0x1ead94[_0x55a73f(0x1e2)]=_0x47ee34[_0x55a73f(0x213)]),_0x3c5c0a['tag']==='mask'&&_0x1ead94['id']&&(_0x1ead94['id']=_0x1ead94['id']+_0x3398da[_0x55a73f(0x1dd)]),Object[_0x55a73f(0x20d)](_0x1ead94)[_0x55a73f(0x246)](([_0x1a55fd,_0x5981b0])=>{const _0x23e574=_0x55a73f;_0x1a55fd===_0x23e574(0x202)&&typeof _0x5981b0==_0x23e574(0x1ae)&&(_0x1ead94[_0x1a55fd]=_0x5981b0[_0x23e574(0x208)](/url\(#(.*)\)/,'url(#$1'+_0x3398da[_0x23e574(0x1dd)]+')'));});const {defIds:_0x5a5b75}=_0x3398da;return!_0x5a5b75||_0x5a5b75['length']===0x0||(_0x3c5c0a[_0x55a73f(0x24a)]===_0x55a73f(0x23f)&&_0x1ead94['xlink:href']&&(_0x1ead94[_0x55a73f(0x1dc)]=_0x1ead94[_0x55a73f(0x1dc)]+_0x3398da[_0x55a73f(0x1dd)]),Object[_0x55a73f(0x20d)](_0x1ead94)[_0x55a73f(0x246)](([_0x3367cc,_0x48a836])=>{const _0x5a80b3=_0x55a73f;typeof _0x48a836==_0x5a80b3(0x1ae)&&(_0x1ead94[_0x3367cc]=_0x48a836['replace'](/url\(#(.*)\)/,'url(#$1'+_0x3398da[_0x5a80b3(0x1dd)]+')'));})),_0x1ead94;}function Ee(_0x192aae,_0x4322e2){const _0x44136d=_0x592408;var _0x469cdb;const {defIds:_0x23b6a2}=_0x4322e2;return!_0x23b6a2||_0x23b6a2[_0x44136d(0x244)]===0x0?_0x192aae:_0x192aae[_0x44136d(0x24a)]==='defs'&&((_0x469cdb=_0x192aae[_0x44136d(0x23e)])!=null&&_0x469cdb['length'])?{..._0x192aae,'children':_0x192aae[_0x44136d(0x23e)][_0x44136d(0x215)](_0x21694a=>typeof _0x21694a[_0x44136d(0x1ca)]['id']=='string'&&_0x23b6a2&&_0x23b6a2[_0x44136d(0x1f3)](_0x21694a[_0x44136d(0x1ca)]['id'])?{..._0x21694a,'attrs':{..._0x21694a[_0x44136d(0x1ca)],'id':_0x21694a[_0x44136d(0x1ca)]['id']+_0x4322e2[_0x44136d(0x1dd)]}}:_0x21694a)}:_0x192aae;}function Oe(){const _0x64d690=_0x592408;return Math[_0x64d690(0x225)]()[_0x64d690(0x230)](0x24)[_0x64d690(0x228)](0x2,0x8);}k['displayName']=_0x592408(0x232);const we={'tag':'svg','attrs':{'xmlns':_0x592408(0x20b),'fill':_0x592408(0x1c2),'viewBox':_0x592408(0x227),'width':'1em','height':'1em'},'children':[{'tag':_0x592408(0x223),'attrs':{'fill':_0x592408(0x1d1),'d':_0x592408(0x1fe)}},{'tag':_0x592408(0x223),'attrs':{'fill':_0x592408(0x1d1),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':'evenodd'}}]},W=_0x3fde48(function(_0x395d52,_0x4d971a){const _0x218af1=_0x592408;return _0x5ab196(k,Object[_0x218af1(0x1e6)]({},_0x395d52,{'id':_0x218af1(0x212),'ref':_0x4d971a,'icon':we}));});W[_0x592408(0x1f0)]=_0x592408(0x21c);class L extends _0x33ef8e{constructor(){const _0x13e232=_0x592408;super(...arguments),u(this,_0x13e232(0x1af),new Set()),u(this,_0x13e232(0x217),new Set());}['registerSharedOperation'](_0x48d44c){const _0x237079=_0x592408;return this['_sharedOperations'][_0x237079(0x245)](_0x48d44c),_0x20dd5b(()=>this[_0x237079(0x1af)][_0x237079(0x1d6)](_0x48d44c));}[_0x592408(0x1ce)](_0x1f2f06){const _0xb1e29a=_0x592408;return this['_reporters'][_0xb1e29a(0x245)](_0x1f2f06),_0x20dd5b(()=>this['_reporters']['delete'](_0x1f2f06));}[_0x592408(0x1fb)](_0x3dbbb4){const _0x5024b0=_0x592408;return this[_0x5024b0(0x1af)][_0x5024b0(0x1b4)](_0x3dbbb4);}['getInitialStates'](_0x1a2470){const _0x5d2471=_0x592408;return Array[_0x5d2471(0x248)](this[_0x5d2471(0x217)])[_0x5d2471(0x215)](_0x3f337f=>_0x3f337f(_0x1a2470));}}var Ne=Object[_0x592408(0x1f8)],Y=(_0x5a55d4,_0x303de6,_0x5bd326,_0x88f0d0)=>{const _0x16006a=_0x592408;for(var _0x1f2db4=_0x88f0d0>0x1?void 0x0:_0x88f0d0?Ne(_0x303de6,_0x5bd326):_0x303de6,_0x3c04d5=_0x5a55d4[_0x16006a(0x244)]-0x1,_0x3d44b2;_0x3c04d5>=0x0;_0x3c04d5--)(_0x3d44b2=_0x5a55d4[_0x3c04d5])&&(_0x1f2db4=_0x3d44b2(_0x1f2db4)||_0x1f2db4);return _0x1f2db4;},_=(_0x29c6ae,_0x46f958)=>(_0x52d675,_0x447703)=>_0x46f958(_0x52d675,_0x447703,_0x29c6ae);let S=class extends _0x1c3605{constructor(_0x2d81b5,_0x22f4aa,_0x4ed05f){const _0x4a7a6e=_0x592408;super(),u(this,_0x4a7a6e(0x24c),new Map()),(this['_univerInstanceService']=_0x2d81b5,this['_injector']=_0x22f4aa,this[_0x4a7a6e(0x24f)]=_0x4ed05f,this['_init']());}async[_0x592408(0x1d5)](_0x234e50){const _0x1edb53=_0x592408;return this[_0x1edb53(0x24c)][_0x1edb53(0x1b4)](_0x234e50)||await this[_0x1edb53(0x1bf)](_0x234e50),this[_0x1edb53(0x24c)][_0x1edb53(0x1d8)](_0x234e50);}[_0x592408(0x22f)](_0xd8c30){const _0x1d0e4b=_0x592408;var _0x9d0516;return(_0x9d0516=this[_0x1d0e4b(0x24c)][_0x1d0e4b(0x1d8)](_0xd8c30))!=null?_0x9d0516:null;}[_0x592408(0x1ff)](){const _0x22d9d0=_0x592408;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x538a9c[_0x22d9d0(0x247)])['pipe'](_0x2f8329(this[_0x22d9d0(0x1d2)]))[_0x22d9d0(0x1fa)](async _0x564d05=>{const _0x577942=_0x22d9d0,_0x58f3d7=_0x564d05[_0x577942(0x22e)]();this[_0x577942(0x24c)][_0x577942(0x1b4)](_0x58f3d7)||this[_0x577942(0x1bf)](_0x58f3d7);}),this[_0x22d9d0(0x236)][_0x22d9d0(0x21a)](_0x538a9c[_0x22d9d0(0x247)])[_0x22d9d0(0x1d9)](_0x2f8329(this[_0x22d9d0(0x1d2)]))[_0x22d9d0(0x1fa)](_0x4c3b6b=>{const _0x48b16b=_0x22d9d0,_0x119eec=_0x4c3b6b[_0x48b16b(0x22e)](),_0xca6e10=this[_0x48b16b(0x24c)][_0x48b16b(0x1d8)](_0x119eec);_0xca6e10==null||_0xca6e10[_0x48b16b(0x1d0)]();});}async[_0x592408(0x1bf)](_0x436f00){const _0x1155cb=_0x592408,_0x4c3720=await this['_collabSessionService'][_0x1155cb(0x1db)](_0x436f00),_0x131bd0=this[_0x1155cb(0x1b2)][_0x1155cb(0x216)](N,_0x436f00,_0x4c3720);return _0x131bd0[_0x1155cb(0x209)](),this[_0x1155cb(0x24c)][_0x1155cb(0x1bc)](_0x436f00,_0x131bd0),_0x131bd0;}};S=Y([_(0x0,_0x53f99e),_(0x1,_0x311fb0(_0x24ee9e)),_(0x2,_0x311fb0(_0x34794b))],S);var c=(_0x34dd14=>(_0x34dd14[_0x592408(0x21e)]=_0x592408(0x1e3),_0x34dd14[_0x592408(0x1b1)]='idle',_0x34dd14[_0x592408(0x226)]=_0x592408(0x1f6),_0x34dd14['NOT_FOLLOWING']=_0x592408(0x1cd),_0x34dd14[_0x592408(0x203)]='presenting',_0x34dd14))(c||{});const Ce=_0x592408(0x1b0),De=0xc8;let N=class extends _0x1c3605{constructor(_0x417e43,_0x3ddf84,_0x40872e,_0x22dbd0,_0x3d40d9){const _0x46cf5e=_0x592408;super(),u(this,_0x46cf5e(0x201),new _0x5eee04(_0x46cf5e(0x1ba))),u(this,_0x46cf5e(0x1f5),this['_status$'][_0x46cf5e(0x1eb)]()),u(this,_0x46cf5e(0x1ff),!0x1),u(this,_0x46cf5e(0x1c1),null),u(this,_0x46cf5e(0x1c7),null),(this[_0x46cf5e(0x1c8)]=_0x417e43,this['_collabSession']=_0x3ddf84,this[_0x46cf5e(0x1ac)]=_0x40872e,this[_0x46cf5e(0x211)]=_0x22dbd0,this['_commandService']=_0x3d40d9);}get['_status'](){const _0x5dfec7=_0x592408;return this['_status$'][_0x5dfec7(0x205)]();}[_0x592408(0x1d0)](){const _0x2bcc83=_0x592408;var _0x40e54d;(_0x40e54d=this[_0x2bcc83(0x1c1)])==null||_0x40e54d[_0x2bcc83(0x1d0)](),this[_0x2bcc83(0x201)][_0x2bcc83(0x1c3)]('idle'),this[_0x2bcc83(0x201)]['complete']();}['getStatus'](){const _0x274a14=_0x592408;return this[_0x274a14(0x200)];}[_0x592408(0x209)](){const _0x59ced1=_0x592408;this[_0x59ced1(0x1ff)]||(this[_0x59ced1(0x1ff)]=!0x0,this[_0x59ced1(0x1c6)][_0x59ced1(0x1ea)][_0x59ced1(0x1d9)](_0x2f8329(this[_0x59ced1(0x1d2)]))['subscribe'](_0x582ae2=>{const _0x25e366=_0x59ced1;switch(_0x582ae2){case _0x34eb0b[_0x25e366(0x21e)]:this[_0x25e366(0x222)]();break;case _0x34eb0b[_0x25e366(0x210)]:this[_0x25e366(0x1bb)]();break;}}),this[_0x59ced1(0x1c6)]['event$'][_0x59ced1(0x1d9)](_0x2f8329(this[_0x59ced1(0x1d2)]))[_0x59ced1(0x1fa)](_0xf58ae3=>{const _0x4e3c8a=_0x59ced1,{eventID:_0x4eb6bc}=_0xf58ae3;switch(_0x4eb6bc){case _0x2c77f3[_0x4e3c8a(0x220)]:this[_0x4e3c8a(0x234)](_0xf58ae3);break;case _0x2c77f3['LIVESHARE_OPERATION']:this[_0x4e3c8a(0x1d7)](_0xf58ae3);break;case _0x2c77f3[_0x4e3c8a(0x1df)]:this[_0x4e3c8a(0x224)]();break;case _0x2c77f3[_0x4e3c8a(0x24e)]:this[_0x4e3c8a(0x20f)](_0xf58ae3);break;}}));}[_0x592408(0x23b)](){const _0x1bb5ea=_0x592408;this['_collabSession'][_0x1bb5ea(0x1ef)]({'eventID':_0x2c77f3[_0x1bb5ea(0x1b9)],'data':{'unitID':this[_0x1bb5ea(0x1c8)],'userID':this[_0x1bb5ea(0x1c6)][_0x1bb5ea(0x1cc)]()}},this[_0x1bb5ea(0x1c8)]);}[_0x592408(0x1fd)](){const _0x6d8a06=_0x592408;this[_0x6d8a06(0x200)]===_0x6d8a06(0x1cf)&&(this['_status$'][_0x6d8a06(0x1c3)](_0x6d8a06(0x1ba)),this[_0x6d8a06(0x1c6)]['send']({'eventID':_0x2c77f3[_0x6d8a06(0x1df)],'data':{'unitID':this[_0x6d8a06(0x1c8)]}},this[_0x6d8a06(0x1c8)]));}[_0x592408(0x1f1)](){const _0x4d78e2=_0x592408;this[_0x4d78e2(0x200)]===_0x4d78e2(0x1cd)&&(this[_0x4d78e2(0x201)]['next'](_0x4d78e2(0x1f6)),this['_startFollowing']());}[_0x592408(0x1be)](){const _0x417637=_0x592408;this[_0x417637(0x200)]===_0x417637(0x1f6)&&this['_stopFollowing']();}[_0x592408(0x234)](_0x49c768){const _0x4688b8=_0x592408,{presenter:_0x75bb78}=_0x49c768[_0x4688b8(0x1f2)],_0x291a99=this['_collabSession'][_0x4688b8(0x1cc)]();this[_0x4688b8(0x1c7)]=_0x75bb78,_0x75bb78===_0x291a99?(this[_0x4688b8(0x21b)](),this[_0x4688b8(0x207)]()):this['_status']!==_0x4688b8(0x1cd)&&(this[_0x4688b8(0x1d3)](),this['_startFollowing']());}[_0x592408(0x23a)](){const _0xafa2ec=_0x592408,_0x5c4ec9={'eventID':_0x2c77f3[_0xafa2ec(0x1f4)]};this['_collabSession'][_0xafa2ec(0x1ef)](_0x5c4ec9,this[_0xafa2ec(0x1c8)]);}[_0x592408(0x224)](){const _0x277b95=_0x592408;this[_0x277b95(0x1c7)]=null,this['_status']!==_0x277b95(0x1cf)&&this[_0x277b95(0x238)]();}[_0x592408(0x20f)](_0x2135e3){const _0x587d22=_0x592408;if(this[_0x587d22(0x200)]===_0x587d22(0x1f6)&&this[_0x587d22(0x1c7)]===_0x2135e3[_0x587d22(0x1f2)][_0x587d22(0x221)]){const _0x390eec=_0xbe98ce(_0x2135e3[_0x587d22(0x1f2)])['mutations']['reverse']()['find'](_0x21ab2e=>_0x21ab2e['id']===_0x4a66bf['id']);if(_0x390eec){const _0x5831dc=_0x390eec['params'][_0x587d22(0x1f9)],_0x321222=_0x390eec[_0x587d22(0x1ed)][_0x587d22(0x1e1)]['id'];setTimeout(()=>{const _0x5e311e=_0x587d22;this[_0x5e311e(0x229)][_0x5e311e(0x206)](_0xc6f41a['id'],{'unitId':_0x5831dc,'subUnitId':_0x321222},{'fromCollab':!0x0});});}}}[_0x592408(0x207)](){const _0x4200e7=_0x592408;this[_0x4200e7(0x201)][_0x4200e7(0x1c3)](_0x4200e7(0x1cf));const _0x52bef0=new Map(),_0xd9b92e=this[_0x4200e7(0x1c1)]=new _0x3daf0f();_0xd9b92e['add'](_0x20dd5b(()=>{const _0x2ab5e7=_0x4200e7;_0x52bef0[_0x2ab5e7(0x246)](_0x390319=>_0x390319['complete']()),_0x52bef0[_0x2ab5e7(0x219)]();})),_0xd9b92e[_0x4200e7(0x245)](this[_0x4200e7(0x229)][_0x4200e7(0x237)](_0x37f7ee=>{const _0x2d0503=_0x4200e7;var _0x32a5ce;if(_0x37f7ee[_0x2d0503(0x1c9)]!==_0x4f6879[_0x2d0503(0x1e7)]||!this['_liveShareService'][_0x2d0503(0x1fb)](_0x37f7ee['id']))return;const {id:_0x74279a}=_0x37f7ee;let _0x3a33f0;_0x52bef0[_0x2d0503(0x1b4)](_0x74279a)?_0x3a33f0=_0x52bef0[_0x2d0503(0x1d8)](_0x74279a):(_0x3a33f0=new _0x402774(),_0x52bef0[_0x2d0503(0x1bc)](_0x74279a,_0x3a33f0),_0x3a33f0[_0x2d0503(0x1d9)](_0x598727((_0x32a5ce=this['_configService'][_0x2d0503(0x241)](Ce))!=null?_0x32a5ce:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2d0503(0x1fa)](_0x4a37d6=>{const _0x409813=_0x2d0503;this[_0x409813(0x1c6)][_0x409813(0x1ef)]({'eventID':_0x2c77f3[_0x409813(0x23d)],'data':{'unitID':this[_0x409813(0x1c8)],'operations':{[_0x4a37d6['id']]:{'id':_0x4a37d6['id'],'params':JSON['stringify'](_0x4a37d6[_0x409813(0x1ed)])}}}},this[_0x409813(0x1c8)]);})),_0x3a33f0[_0x2d0503(0x1c3)](_0x37f7ee);})),this['_liveShareService'][_0x4200e7(0x23c)](this['_unitID'])[_0x4200e7(0x246)](_0x138c81=>this['_collabSession'][_0x4200e7(0x1ef)]({'eventID':_0x2c77f3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4200e7(0x1c8)],'operations':{[_0x138c81['id']]:{'id':_0x138c81['id'],'params':JSON[_0x4200e7(0x204)](_0x138c81[_0x4200e7(0x1ed)])}}}},this['_unitID']));}[_0x592408(0x1d3)](){const _0x569646=_0x592408;var _0x3cb3aa;this[_0x569646(0x201)][_0x569646(0x1c3)](_0x569646(0x1ba)),(_0x3cb3aa=this[_0x569646(0x1c1)])==null||_0x3cb3aa[_0x569646(0x1d0)](),this[_0x569646(0x1c1)]=null;}[_0x592408(0x1b6)](){const _0x3b6c97=_0x592408;var _0x1a1c32;(_0x1a1c32=this[_0x3b6c97(0x1c1)])==null||_0x1a1c32[_0x3b6c97(0x1d0)](),this[_0x3b6c97(0x201)][_0x3b6c97(0x1c3)](_0x3b6c97(0x1f6));}['_beIdle'](){const _0x4d375d=_0x592408;var _0x10dae2;this['_status$'][_0x4d375d(0x1c3)](_0x4d375d(0x1ba)),(_0x10dae2=this[_0x4d375d(0x1c1)])==null||_0x10dae2[_0x4d375d(0x1d0)](),this[_0x4d375d(0x1c1)]=null;}[_0x592408(0x21b)](){const _0x541b13=_0x592408;var _0xfe4b6;this[_0x541b13(0x201)][_0x541b13(0x1c3)](_0x541b13(0x1cd)),(_0xfe4b6=this[_0x541b13(0x1c1)])==null||_0xfe4b6['dispose']();}[_0x592408(0x1d7)](_0x40b74a){const _0x37e93a=_0x592408;if(['presenting',_0x37e93a(0x1cd),_0x37e93a(0x1e3)][_0x37e93a(0x1f3)](this[_0x37e93a(0x200)])||!_0x40b74a[_0x37e93a(0x1f2)][_0x37e93a(0x249)]||_0x40b74a['data']['presenter']===this[_0x37e93a(0x1c6)][_0x37e93a(0x1cc)]())return;this[_0x37e93a(0x200)]===_0x37e93a(0x1ba)&&this['_startFollowing']();const _0x408097=_0x40b74a['data'][_0x37e93a(0x243)];Object['values'](_0x408097)['forEach'](_0x566915=>{const _0x2f7d38=_0x37e93a;this[_0x2f7d38(0x229)]['executeCommand'](_0x566915['id'],_0x566915[_0x2f7d38(0x1ed)]?JSON['parse'](_0x566915['params']):null,{'fromCollab':!0x0});});}[_0x592408(0x222)](){const _0x449f0a=_0x592408;var _0xdc7d27;this[_0x449f0a(0x201)][_0x449f0a(0x1c3)](_0x449f0a(0x1e3)),(_0xdc7d27=this[_0x449f0a(0x1c1)])==null||_0xdc7d27[_0x449f0a(0x1d0)]();}[_0x592408(0x1bb)](){const _0x2414b5=_0x592408;this[_0x2414b5(0x201)]['next'](_0x2414b5(0x1ba)),this[_0x2414b5(0x23a)]();}};N=Y([_(0x2,_0x3de0b0),_(0x3,_0x311fb0(L)),_(0x4,_0x148cf9)],N);function Le(){const _0x1b272a=_0x592408,_0x5028e8=_0x204cae(S),_0x69a3f0=_0x204cae(_0x53f99e),_0x560d12=_0xb7854a(()=>_0x69a3f0[_0x1b272a(0x1c0)](_0x538a9c[_0x1b272a(0x247)]),void 0x0,!0x1,[]),[_0x357fff,_0x316b66]=_0x4a1d9e(null),[_0x37f0a5,_0x3ed1ca]=_0x4a1d9e(c['IDLE']),_0x469dbd=_0x20004a(null);return _0x1e0d3a(()=>(_0x560d12&&_0x5028e8['getLiveShareCoordinator'](_0x560d12[_0x1b272a(0x22e)]())[_0x1b272a(0x24b)](_0x27e0f2=>{const _0x222a12=_0x1b272a;_0x316b66(_0x27e0f2),_0x469dbd['current']=_0x27e0f2[_0x222a12(0x1f5)][_0x222a12(0x1fa)](_0x2ec750=>{_0x3ed1ca(_0x2ec750);});}),()=>{const _0x22fd6b=_0x1b272a;var _0x4cca82;(_0x4cca82=_0x469dbd[_0x22fd6b(0x1ee)])==null||_0x4cca82[_0x22fd6b(0x1cb)](),_0x469dbd['current']=null;}),[_0x560d12,_0x5028e8]),_0x357fff?_0x4a42da(_0x9f7729,{'align':_0x1b272a(0x1c4),'disabled':_0x37f0a5===c['OFFLINE'],'className':_0x1b272a(0x1e5),'overlay':_0x4a42da(Re,{'status':_0x37f0a5,'coordinator':_0x357fff}),'children':_0x4a42da('button',{'className':_0x421684(_0x1b272a(0x1b3),{'univer-cursor-not-allowed':_0x37f0a5===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x37f0a5!==c[_0x1b272a(0x21e)]}),'type':_0x1b272a(0x214),'children':_0x4a42da(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2f3259){const _0x511d50=_0x592408,{status:_0x4d06e9,coordinator:_0x143c35}=_0x2f3259;switch(_0x4d06e9){case c[_0x511d50(0x1b1)]:return _0x4a42da($e,{'coordinator':_0x143c35});case c[_0x511d50(0x226)]:return _0x4a42da(xe,{'coordinator':_0x143c35});case c[_0x511d50(0x1b7)]:return _0x4a42da(Pe,{'coordinator':_0x143c35});case c[_0x511d50(0x21e)]:return _0x4a42da(Te,{});case c[_0x511d50(0x203)]:return _0x4a42da(Ae,{'coordinator':_0x143c35});default:return null;}}function $e(_0x15742d){const _0x64e20d=_0x592408,{coordinator:_0xb4a93b}=_0x15742d;return _0x38eaf4(_0x29e3a5,{'children':[_0x4a42da(_0x64e20d(0x22b),{'className':_0x64e20d(0x231),'children':_0x64e20d(0x1e8)}),_0x4a42da(_0x24ed50,{'onClick':()=>_0xb4a93b[_0x64e20d(0x23b)](),'children':_0x64e20d(0x1b5)})]});}function xe(_0x1e5387){const _0x472a9e=_0x592408,{coordinator:_0x215513}=_0x1e5387;return _0x38eaf4(_0x29e3a5,{'children':[_0x4a42da(_0x472a9e(0x22b),{'className':_0x472a9e(0x231),'children':_0x472a9e(0x1e9)}),_0x4a42da(_0x24ed50,{'onClick':()=>_0x215513[_0x472a9e(0x1be)](),'children':_0x472a9e(0x239)})]});}function Pe(_0x2e2091){const _0xdc9403=_0x592408,{coordinator:_0x3a838a}=_0x2e2091;return _0x38eaf4(_0x29e3a5,{'children':[_0x4a42da('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4a42da(_0x24ed50,{'variant':_0xdc9403(0x1ad),'onClick':()=>_0x3a838a[_0xdc9403(0x1f1)](),'children':_0xdc9403(0x1c5)})]});}function Ae(_0x3aa827){const _0x59da29=_0x592408,{coordinator:_0x432edc}=_0x3aa827;return _0x38eaf4(_0x29e3a5,{'children':[_0x4a42da(_0x59da29(0x22b),{'className':_0x59da29(0x231),'children':_0x59da29(0x22a)}),_0x4a42da(_0x24ed50,{'variant':_0x59da29(0x20a),'onClick':()=>_0x432edc[_0x59da29(0x1fd)](),'children':_0x59da29(0x233)})]});}function Te(){return _0x4a42da(_0x29e3a5,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x592408(0x1f8)],He=(_0x32e00f,_0x16da39,_0x20c2f8,_0xc070d7)=>{const _0x2f2fd0=_0x592408;for(var _0x3c7882=_0xc070d7>0x1?void 0x0:_0xc070d7?Fe(_0x16da39,_0x20c2f8):_0x16da39,_0x319d18=_0x32e00f[_0x2f2fd0(0x244)]-0x1,_0x226565;_0x319d18>=0x0;_0x319d18--)(_0x226565=_0x32e00f[_0x319d18])&&(_0x3c7882=_0x226565(_0x3c7882)||_0x3c7882);return _0x3c7882;},A=(_0x20c8b2,_0x4705e7)=>(_0x38d6d1,_0x77714d)=>_0x4705e7(_0x38d6d1,_0x77714d,_0x20c8b2);let m=class extends _0x33ef8e{constructor(_0x5831ff,_0x2e5c47){const _0x590b74=_0x592408;super(),this[_0x590b74(0x1b2)]=_0x5831ff,this[_0x590b74(0x1de)]=_0x2e5c47,this[_0x590b74(0x240)]();}[_0x592408(0x240)](){const _0x512834=_0x592408;this['disposeWithMe'](this[_0x512834(0x1de)]['registerComponent'](_0x11ce85[_0x512834(0x1f7)],()=>_0x4f5fb6(Le,this[_0x512834(0x1b2)])));}};function _0x293d(_0x40fdb7,_0x94f80){_0x40fdb7=_0x40fdb7-0x1ab;const _0x40ff8b=_0x40ff();let _0x293d6c=_0x40ff8b[_0x40fdb7];return _0x293d6c;}m=He([A(0x0,_0x311fb0(_0x24ee9e)),A(0x1,_0x8de62a)],m);const ye=_0x592408(0x1da),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x27ce8c,_0x4b5540,_0xcbfec7,_0x2e6cb5)=>{for(var _0x129a67=_0x2e6cb5>0x1?void 0x0:_0x2e6cb5?Ue(_0x4b5540,_0xcbfec7):_0x4b5540,_0xafe55a=_0x27ce8c['length']-0x1,_0x2c85a0;_0xafe55a>=0x0;_0xafe55a--)(_0x2c85a0=_0x27ce8c[_0xafe55a])&&(_0x129a67=_0x2c85a0(_0x129a67)||_0x129a67);return _0x129a67;},je=(_0x589fd1,_0x23e718)=>(_0x842216,_0x5429f5)=>_0x23e718(_0x842216,_0x5429f5,_0x589fd1);let I=class extends _0x33ef8e{constructor(_0x4f4012){const _0x56a98e=_0x592408;super(),this[_0x56a98e(0x211)]=_0x4f4012,this[_0x56a98e(0x1ff)]();}['_init'](){const _0x780702=_0x592408;[_0x26ffad['id'],_0xeb207['id'],_0xc6f41a['id']][_0x780702(0x246)](_0x1d5d07=>{const _0x12fb16=_0x780702;this[_0x12fb16(0x20c)](this[_0x12fb16(0x211)][_0x12fb16(0x1ab)](_0x1d5d07));});}};I=Ve([je(0x0,_0x311fb0(L))],I);function _0x40ff(){const _0x127166=['disposeWithMe','entries','7zIQclS','_handleNewChangeSets','ONLINE','_liveShareService','live-share-icon','colorChannel1','button','map','createInstance','_reporters','75210HMeIUw','clear','getTypeOfUnitDisposed$','_stopFollowing','LiveShareIcon','7916524hragxB','OFFLINE','onRendered','LIVESHARE_NEW_HOST','memberID','_handleOffline','path','_handleTerminate','random','FOLLOWING','0\x200\x2017\x2017','substring','_commandService','You\x27re\x20presenting\x20the\x20document','div','setConfig','5922850hiOKQE','getUnitId','getLiveShareCoordinatorSync','toString','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverIcon','Stop\x20presenting','_handleNewHost','1044705apDLaJ','_univerInstanceService','onCommandExecuted','_beIdle','Stop\x20following','_fetchOperations','tryStartPresenting','getInitialStates','LIVESHARE_OPERATION','children','use','_mountLiveShare','getConfig','13657264RvdmWB','operations','length','add','forEach','UNIVER_SHEET','from','presenter','tag','then','_entities','108772MrDIwv','NEW_CHANGESETS','_collabSessionService','registerSharedOperation','_configService','text','string','_sharedOperations','SAME_OPERATION_SHARE_INTERVAL','IDLE','_injector','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','has','Start','_startFollowing','NOT_FOLLOWING','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_REQUEST_HOST','idle','_handleOnline','set','override','stopFollowing','_startLiveShareCoordinator','getCurrentTypeOfUnit$','_commandDisposable','none','next','end','Start\x20following','_collabSession','_presenter','_unitID','type','attrs','unsubscribe','getMemberID','not-following','registerInitialStateReporter','presenting','dispose','currentColor','dispose$','_stopPresenting','defineProperty','getLiveShareCoordinator','delete','_handleOperation','get','pipe','live-share.config','requireSession','xlink:href','idSuffix','_uiPartsService','LIVESHARE_TERMINATE','pluginName','sheet','fill','offline','1573444WVCrcm','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','assign','OPERATION','Present\x20this\x20document','You\x27re\x20following\x20the\x20presenter','sessionStatus$','asObservable','onStarting','params','current','send','displayName','startFollowing','data','includes','LIVESHARE_FETCH_OPERATIONS','status$','following','HEADER_MENU','getOwnPropertyDescriptor','unitId','subscribe','shouldShareOperation','_config','stopPresenting','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','_init','_status','_status$','mask','PRESENTING','stringify','getValue','executeCommand','_startPresenting','replace','init','default','http://www.w3.org/2000/svg'];_0x40ff=function(){return _0x127166;};return _0x40ff();}var Me=Object[_0x592408(0x1d4)],ke=Object[_0x592408(0x1f8)],Ge=(_0x7c1980,_0x4e5481,_0x3e4bfe)=>_0x4e5481 in _0x7c1980?Me(_0x7c1980,_0x4e5481,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e4bfe}):_0x7c1980[_0x4e5481]=_0x3e4bfe,We=(_0x37369a,_0x2b61a8,_0x2f3f03,_0x441760)=>{const _0x53ff5d=_0x592408;for(var _0x359d2a=_0x441760>0x1?void 0x0:_0x441760?ke(_0x2b61a8,_0x2f3f03):_0x2b61a8,_0x1d7a72=_0x37369a[_0x53ff5d(0x244)]-0x1,_0x4ac5cb;_0x1d7a72>=0x0;_0x1d7a72--)(_0x4ac5cb=_0x37369a[_0x1d7a72])&&(_0x359d2a=_0x4ac5cb(_0x359d2a)||_0x359d2a);return _0x359d2a;},F=(_0x537364,_0x43476a)=>(_0x4f0ed1,_0x410faa)=>_0x43476a(_0x4f0ed1,_0x410faa,_0x537364),B=(_0x9ce590,_0x5f358d,_0x2a34bc)=>Ge(_0x9ce590,typeof _0x5f358d!='symbol'?_0x5f358d+'':_0x5f358d,_0x2a34bc);const Ye=_0x592408(0x1b8);let b=class extends _0x13b402{constructor(_0x39ca85=T,_0x2efb02,_0x1d6f46){const _0x5929fe=_0x592408;super(),this[_0x5929fe(0x1fc)]=_0x39ca85,this[_0x5929fe(0x1b2)]=_0x2efb02,this['_configService']=_0x1d6f46;const {..._0x1de41e}=_0x1bcd48({},T,this['_config']);this[_0x5929fe(0x1ac)][_0x5929fe(0x22c)](ye,_0x1de41e);}[_0x592408(0x1ec)](){const _0x1862d5=_0x592408;_0x135b87(this[_0x1862d5(0x1b2)],_0x1312ff([[L],[S],[I],[m]],this['_config'][_0x1862d5(0x1bd)])),_0x8d80af(this['_injector'],[[I]]);}[_0x592408(0x21f)](){const _0x361b11=_0x592408;_0x8d80af(this[_0x361b11(0x1b2)],[[m]]);}};B(b,'type',_0x538a9c['UNIVER_UNKNOWN']),B(b,_0x592408(0x1e0),Ye),b=We([_0x23f815(_0x3d09b1),F(0x1,_0x311fb0(_0x24ee9e)),F(0x2,_0x3de0b0)],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 _0x4dc8b8=_0x5f36;(function(_0x56391e,_0x14e451){const _0x5f5d97=_0x5f36,_0x4737ab=_0x56391e();while(!![]){try{const _0x40c56f=-parseInt(_0x5f5d97(0x126))/0x1+parseInt(_0x5f5d97(0x12f))/0x2+-parseInt(_0x5f5d97(0x12e))/0x3+-parseInt(_0x5f5d97(0x129))/0x4+-parseInt(_0x5f5d97(0x127))/0x5*(-parseInt(_0x5f5d97(0x136))/0x6)+-parseInt(_0x5f5d97(0x12d))/0x7+-parseInt(_0x5f5d97(0x141))/0x8*(-parseInt(_0x5f5d97(0x125))/0x9);if(_0x40c56f===_0x14e451)break;else _0x4737ab['push'](_0x4737ab['shift']());}catch(_0x3a287d){_0x4737ab['push'](_0x4737ab['shift']());}}}(_0x3fb5,0x9b8ee));import{LiveShareController as _0x11290f,LiveShareStatus as _0xe8dad1}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x3b91eb}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xcf9b4e}from'@univerjs/sheets';function _0x3fb5(){const _0x2962ce=['getId','getLiveShareStatus','LiveShareStatusEnum','getActiveWorkbook','_commandService','96RIFatp','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','startRow','_injector','syncExecuteCommand','getActiveSheet','_initialize','get','extend','getRenderById','5464dAhRoE','stopPresenting','stopFollowing','IDLE','getUnitId','executeCommand','47565IhiKMB','1014794KqwhKq','43185hHoaaW','No\x20active\x20workbook\x20found.','3863632GoQMZt','getLiveShareCoordinatorSync','startFollowing','getSheetId','6661242rjvuAu','2610495QsgezT','1383584DxuqpI','PRESENTING'];_0x3fb5=function(){return _0x2962ce;};return _0x3fb5();}import{SetScrollOperation as _0x32cbe6}from'@univerjs/sheets-ui';import{FRange as _0x33eb4b}from'@univerjs/sheets/facade';import{FUniver as _0x312ea3,FEnum as _0x27e15c}from'@univerjs/core/facade';function _0x5f36(_0x5b72d9,_0xc0e600){_0x5b72d9=_0x5b72d9-0x120;const _0x3fb5b5=_0x3fb5();let _0x5f362a=_0x3fb5b5[_0x5b72d9];return _0x5f362a;}class I extends _0x33eb4b{[_0x4dc8b8(0x13d)](_0x1ec14c,_0x133e30,_0x568002,_0x58f5cc,_0x4a305a){const _0x2b1bde=_0x4dc8b8,_0x40be68=_0x1ec14c['get'](_0x11290f),_0x3a78d7=_0x1ec14c['get'](_0x3b91eb),_0x3b274f=_0x133e30[_0x2b1bde(0x123)](),_0x1b3f49=_0x133e30[_0x2b1bde(0x13c)](),_0x47f63d=_0x40be68['getLiveShareCoordinatorSync'](_0x3b274f);(_0x47f63d==null?void 0x0:_0x47f63d[_0x2b1bde(0x138)]())!==_0xe8dad1[_0x2b1bde(0x130)]||(_0x568002[_0x2b1bde(0x12c)]()!==_0x1b3f49[_0x2b1bde(0x12c)]()&&this[_0x2b1bde(0x135)][_0x2b1bde(0x124)](_0xcf9b4e['id'],{'unitId':_0x3b274f,'subUnitId':_0x568002[_0x2b1bde(0x12c)]()}),!_0x3a78d7[_0x2b1bde(0x140)](_0x3b274f))||_0x4a305a[_0x2b1bde(0x13b)](_0x32cbe6['id'],{'unitId':_0x133e30[_0x2b1bde(0x123)](),'sheetId':_0x568002[_0x2b1bde(0x12c)](),'sheetViewStartRow':_0x58f5cc[_0x2b1bde(0x139)],'sheetViewStartColumn':_0x58f5cc['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x33eb4b[_0x4dc8b8(0x13f)](I);class m extends _0x312ea3{[_0x4dc8b8(0x132)](){const _0xbd8d38=_0x4dc8b8;var _0x416d3f,_0xc24bc6;const _0x58591b=this['_injector'][_0xbd8d38(0x13e)](_0x11290f),_0x51930c=(_0x416d3f=this[_0xbd8d38(0x134)]())==null?void 0x0:_0x416d3f[_0xbd8d38(0x131)]();if(!_0x51930c)throw new Error('No\x20active\x20workbook\x20found.');const _0x57dab9=_0x58591b['getLiveShareCoordinatorSync'](_0x51930c);return(_0xc24bc6=_0x57dab9==null?void 0x0:_0x57dab9[_0xbd8d38(0x138)]())!=null?_0xc24bc6:_0xe8dad1[_0xbd8d38(0x122)];}[_0x4dc8b8(0x12b)](){const _0x1f752a=_0x4dc8b8;var _0x542b57;const _0xaccd06=this[_0x1f752a(0x13a)][_0x1f752a(0x13e)](_0x11290f),_0x4b827c=(_0x542b57=this[_0x1f752a(0x134)]())==null?void 0x0:_0x542b57[_0x1f752a(0x131)]();if(!_0x4b827c)throw new Error(_0x1f752a(0x128));const _0x191e82=_0xaccd06[_0x1f752a(0x12a)](_0x4b827c);if(!_0x191e82)throw new Error(_0x1f752a(0x137));_0x191e82['startFollowing']();}[_0x4dc8b8(0x121)](){const _0x39d780=_0x4dc8b8;var _0x25b4c3;const _0x21a42b=this['_injector'][_0x39d780(0x13e)](_0x11290f),_0x2bd5c4=(_0x25b4c3=this[_0x39d780(0x134)]())==null?void 0x0:_0x25b4c3['getId']();if(!_0x2bd5c4)throw new Error(_0x39d780(0x128));const _0x42b55e=_0x21a42b[_0x39d780(0x12a)](_0x2bd5c4);if(!_0x42b55e)throw new Error(_0x39d780(0x137));_0x42b55e[_0x39d780(0x121)]();}['startPresenting'](){const _0x3e4747=_0x4dc8b8;var _0x5b140a;const _0x299277=this[_0x3e4747(0x13a)]['get'](_0x11290f),_0x25a92e=(_0x5b140a=this[_0x3e4747(0x134)]())==null?void 0x0:_0x5b140a['getId']();if(!_0x25a92e)throw new Error(_0x3e4747(0x128));const _0x54a805=_0x299277['getLiveShareCoordinatorSync'](_0x25a92e);if(!_0x54a805)throw new Error(_0x3e4747(0x137));_0x54a805['tryStartPresenting']();}[_0x4dc8b8(0x120)](){const _0x95585d=_0x4dc8b8;var _0x3b3fbd;const _0x362097=this[_0x95585d(0x13a)][_0x95585d(0x13e)](_0x11290f),_0x174521=(_0x3b3fbd=this[_0x95585d(0x134)]())==null?void 0x0:_0x3b3fbd[_0x95585d(0x131)]();if(!_0x174521)throw new Error(_0x95585d(0x128));const _0x1ba602=_0x362097['getLiveShareCoordinatorSync'](_0x174521);if(!_0x1ba602)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1ba602[_0x95585d(0x120)]();}}_0x312ea3[_0x4dc8b8(0x13f)](m);class C extends _0x27e15c{get[_0x4dc8b8(0x133)](){return _0xe8dad1;}}_0x27e15c[_0x4dc8b8(0x13f)](C);
1
+ const _0x2346d5=_0x30d6;(function(_0x2fae06,_0x20ffe3){const _0x4e9714=_0x30d6,_0x595cc6=_0x2fae06();while(!![]){try{const _0x4e6bb4=-parseInt(_0x4e9714(0x199))/0x1*(parseInt(_0x4e9714(0x19d))/0x2)+-parseInt(_0x4e9714(0x17e))/0x3+parseInt(_0x4e9714(0x184))/0x4*(parseInt(_0x4e9714(0x198))/0x5)+parseInt(_0x4e9714(0x18b))/0x6*(parseInt(_0x4e9714(0x19e))/0x7)+-parseInt(_0x4e9714(0x19c))/0x8*(parseInt(_0x4e9714(0x182))/0x9)+-parseInt(_0x4e9714(0x19a))/0xa*(-parseInt(_0x4e9714(0x181))/0xb)+parseInt(_0x4e9714(0x190))/0xc;if(_0x4e6bb4===_0x20ffe3)break;else _0x595cc6['push'](_0x595cc6['shift']());}catch(_0x5edf99){_0x595cc6['push'](_0x595cc6['shift']());}}}(_0x15dd,0x7dde9));var l=Object[_0x2346d5(0x188)],w=(_0x5a7024,_0x12944b,_0x1c31b1)=>_0x12944b in _0x5a7024?l(_0x5a7024,_0x12944b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c31b1}):_0x5a7024[_0x12944b]=_0x1c31b1,v=(_0x2de969,_0x15fe06,_0x39e15a)=>w(_0x2de969,typeof _0x15fe06!=_0x2346d5(0x196)?_0x15fe06+'':_0x15fe06,_0x39e15a);import{LiveShareController as _0x332209,LiveShareStatus as _0x1303a9}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x187d32,UniverInstanceType as _0x82eb64}from'@univerjs/core';import{FUniver as _0xf81daa,FEnum as _0x4fe857}from'@univerjs/core/facade';function _0x30d6(_0x27c937,_0x5d005d){_0x27c937=_0x27c937-0x17e;const _0x15dd9d=_0x15dd();let _0x30d658=_0x15dd9d[_0x27c937];return _0x30d658;}class g extends _0xf81daa{constructor(){super(...arguments),v(this,'_liveShareController');}[_0x2346d5(0x193)](_0x3eb2f7){const _0x5353fc=_0x2346d5;this[_0x5353fc(0x18d)]=_0x3eb2f7[_0x5353fc(0x18f)](_0x332209);}[_0x2346d5(0x186)](){const _0x51ae3d=_0x2346d5;var _0x59941a;const _0xce8cf4=this[_0x51ae3d(0x194)][_0x51ae3d(0x18f)](_0x187d32)[_0x51ae3d(0x19b)](_0x82eb64[_0x51ae3d(0x187)]);if(!_0xce8cf4)throw new Error(_0x51ae3d(0x18c));const _0x30c97b=_0xce8cf4[_0x51ae3d(0x183)](),_0x500a4a=this[_0x51ae3d(0x18d)][_0x51ae3d(0x185)](_0x30c97b);return(_0x59941a=_0x500a4a==null?void 0x0:_0x500a4a['getStatus']())!=null?_0x59941a:_0x1303a9[_0x51ae3d(0x191)];}[_0x2346d5(0x17f)](){const _0x541125=_0x2346d5,_0x4ca904=this[_0x541125(0x194)]['get'](_0x187d32)[_0x541125(0x19b)](_0x82eb64[_0x541125(0x187)]);if(!_0x4ca904)throw new Error(_0x541125(0x18c));const _0x15f770=_0x4ca904[_0x541125(0x183)](),_0x1d7d5b=this['_liveShareController'][_0x541125(0x185)](_0x15f770);if(!_0x1d7d5b)throw new Error(_0x541125(0x180));_0x1d7d5b[_0x541125(0x17f)]();}[_0x2346d5(0x18a)](){const _0x59e30d=_0x2346d5,_0x46adf8=this[_0x59e30d(0x194)][_0x59e30d(0x18f)](_0x187d32)['getCurrentUnitOfType'](_0x82eb64['UNIVER_SHEET']);if(!_0x46adf8)throw new Error(_0x59e30d(0x18c));const _0x3f923f=_0x46adf8[_0x59e30d(0x183)](),_0x25da06=this[_0x59e30d(0x18d)]['getLiveShareCoordinatorSync'](_0x3f923f);if(!_0x25da06)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x25da06[_0x59e30d(0x18a)]();}[_0x2346d5(0x18e)](){const _0xf58e82=_0x2346d5,_0x4fe41e=this[_0xf58e82(0x194)][_0xf58e82(0x18f)](_0x187d32)[_0xf58e82(0x19b)](_0x82eb64[_0xf58e82(0x187)]);if(!_0x4fe41e)throw new Error(_0xf58e82(0x18c));const _0x28eb9d=_0x4fe41e['getUnitId'](),_0x1645fb=this[_0xf58e82(0x18d)][_0xf58e82(0x185)](_0x28eb9d);if(!_0x1645fb)throw new Error(_0xf58e82(0x180));_0x1645fb[_0xf58e82(0x192)]();}[_0x2346d5(0x189)](){const _0x1a725a=_0x2346d5,_0x86f55e=this[_0x1a725a(0x194)]['get'](_0x187d32)[_0x1a725a(0x19b)](_0x82eb64[_0x1a725a(0x187)]);if(!_0x86f55e)throw new Error(_0x1a725a(0x18c));const _0x8e1d48=_0x86f55e['getUnitId'](),_0x285e40=this[_0x1a725a(0x18d)]['getLiveShareCoordinatorSync'](_0x8e1d48);if(!_0x285e40)throw new Error(_0x1a725a(0x180));_0x285e40[_0x1a725a(0x189)]();}}_0xf81daa[_0x2346d5(0x197)](g);function _0x15dd(){const _0x5e0e54=['LiveShareStatusEnum','symbol','extend','5laBbxc','6184hAaEwo','130IfvkIM','getCurrentUnitOfType','8XrAwlc','142NFOPBp','920829npZsZH','2178288lSUoxz','startFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','293029GIUssg','5397219kxXFfl','getUnitId','3298896etlfWJ','getLiveShareCoordinatorSync','getLiveShareStatus','UNIVER_SHEET','defineProperty','stopPresenting','stopFollowing','42ejytgP','No\x20active\x20workbook\x20found.','_liveShareController','startPresenting','get','2262624AABLwR','IDLE','tryStartPresenting','_initialize','_injector'];_0x15dd=function(){return _0x5e0e54;};return _0x15dd();}class f extends _0x4fe857{get[_0x2346d5(0x195)](){return _0x1303a9;}}_0x4fe857[_0x2346d5(0x197)](f);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x96827c=_0xc50a;(function(_0xd3712b,_0x354222){const _0x2158d7=_0xc50a,_0x30913c=_0xd3712b();while(!![]){try{const _0x589f98=parseInt(_0x2158d7(0x194))/0x1+-parseInt(_0x2158d7(0x19b))/0x2*(parseInt(_0x2158d7(0x192))/0x3)+parseInt(_0x2158d7(0x1cd))/0x4*(-parseInt(_0x2158d7(0x184))/0x5)+-parseInt(_0x2158d7(0x1c4))/0x6*(parseInt(_0x2158d7(0x15a))/0x7)+-parseInt(_0x2158d7(0x1c0))/0x8*(-parseInt(_0x2158d7(0x16c))/0x9)+parseInt(_0x2158d7(0x1ac))/0xa*(-parseInt(_0x2158d7(0x1d5))/0xb)+-parseInt(_0x2158d7(0x1b4))/0xc*(-parseInt(_0x2158d7(0x1c8))/0xd);if(_0x589f98===_0x354222)break;else _0x30913c['push'](_0x30913c['shift']());}catch(_0x14c68d){_0x30913c['push'](_0x30913c['shift']());}}}(_0x29f7,0xeb18f));var J=Object[_0x96827c(0x1c1)],K=(_0xa54691,_0x1a35fc,_0xf29bd0)=>_0x1a35fc in _0xa54691?J(_0xa54691,_0x1a35fc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf29bd0}):_0xa54691[_0x1a35fc]=_0xf29bd0,u=(_0x3f7de1,_0x472ac0,_0x4914df)=>K(_0x3f7de1,typeof _0x472ac0!=_0x96827c(0x170)?_0x472ac0+'':_0x472ac0,_0x4914df);import{Disposable as _0x542443,toDisposable as _0x29da0b,IUniverInstanceService as _0x172570,Inject as _0x12159d,Injector as _0x10d13f,IConfigService as _0x30c056,ICommandService as _0x2cd8ca,RxDisposable as _0x221d5c,UniverInstanceType as _0x3415ab,DisposableCollection as _0x4bebde,CommandType as _0x533ba2,DependentOn as _0x367be1,Plugin as _0x178a4f,merge as _0x280048,registerDependencies as _0x49d66e,mergeOverrideWithDependencies as _0x49ea46,touchDependencies as _0x48236d}from'@univerjs/core';import{useDependency as _0x32ebdd,useObservable as _0x47f62b,IUIPartsService as _0x4111d1,BuiltInUIPart as _0x3ca98e,connectInjector as _0x170c5e}from'@univerjs/ui';import{jsx as _0x30e740,jsxs as _0x28108f,Fragment as _0x298014}from'react/jsx-runtime';import{Dropdown as _0x49027d,clsx as _0x12f4d7,Button as _0x23fa9e}from'@univerjs/design';import{useRef as _0x259872,createElement as _0x34459e,forwardRef as _0x29a658,useState as _0x2d673d,useEffect as _0x2c5085}from'react';function _0x29f7(){const _0x161af5=['next','_status','Start','SAME_OPERATION_SHARE_INTERVAL','_stopFollowing','onRendered','string','attrs','getMemberID','stopFollowing','map','Stop\x20presenting','526911zDhpdc','getTypeOfUnitAdded$','_handleTerminate','getUnitId','_startPresenting','colorChannel1','length','startFollowing','mask','getOwnPropertyDescriptor','univerjs-icon\x20univerjs-icon-','live-share.config','live-share-icon','1em','_sharedOperations','svg','_mountLiveShare','has','2907CVYxcl','PRESENTING','dispose','set','symbol','_fetchOperations','NOT_FOLLOWING','getConfig','random','_status$','data','stringify','then','_init','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','evenodd','dispose$','delete','init','complete','substring','tag','registerSharedOperation','idSuffix','30bmAoId','_entities','default','current','getLiveShareCoordinator','univer-size-4','_commandService','text','sheet','getValue','subscribe','end','path','_handleOperation','258231fiIXOY','trim','33447NLIluL','_collabSessionService','LIVESHARE_REQUEST_HOST','_presenter','_beIdle','_injector','fill','12rjICTz','mutations','HEADER_MENU','_reporters','shouldShareOperation','_liveShareService','_configService','children','forEach','sessionStatus$','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20presenting\x20the\x20document','entries','xlink:href','executeCommand','type','requireSession','168690eyiYnp','onStarting','0\x200\x2017\x2017','div','replace','_commandDisposable','createInstance','params','509496mHCOJX','values','stopPresenting','use','OFFLINE','status$','currentColor','add','clear','toString','displayName','You\x27are\x20offline.','36744mdMzUJ','defineProperty','presenter','none','54ZxWkUA','following','getLiveShareCoordinatorSync','Start\x20following','611hAzCZJ','send','_startLiveShareCoordinator','offline','memberID','4076fIVbFZ','onCommandExecuted','Present\x20this\x20document','setConfig','disposeWithMe','_config','Stop\x20following','tryStartPresenting','880RvJyaD','pluginName','presenting','_univerInstanceService','_stopPresenting','FOLLOWING','univer-mb-3\x20univer-w-full\x20univer-text-sm','getCurrentTypeOfUnit$','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_handleNewHost','not-following','LIVESHARE_TERMINATE','You\x27re\x20following\x20the\x20presenter','pipe','reverse','_unitID','LIVESHARE_FETCH_OPERATIONS','getStatus','getTypeOfUnitDisposed$','http://www.w3.org/2000/svg','IDLE','asObservable','NEW_CHANGESETS','_startFollowing','url(#$1','registerComponent','LIVESHARE_OPERATION','UNIVER_UNKNOWN','idle','LIVESHARE_NEW_HOST','_collabSession','OPERATION','_uiPartsService','UNIVER_SHEET','UniverIcon','_handleNewChangeSets','get'];_0x29f7=function(){return _0x161af5;};return _0x29f7();}import{CollaborationEvent as _0x1c8312,parseProtocolChangeset as _0x4a62c5}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5c85ce,SessionStatus as _0x316cc8,UniverCollaborationClientPlugin as _0x5aee68}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x26236c,SetWorksheetActiveOperation as _0x2132ea}from'@univerjs/sheets';import{BehaviorSubject as _0x2e23fe,Subject as _0x48d54b}from'rxjs';import{takeUntil as _0x4c7ad1,throttleTime as _0x3567da}from'rxjs/operators';import{SetZoomRatioOperation as _0x61211d,SetScrollOperation as _0xd8d9c7}from'@univerjs/sheets-ui';function k({ref:_0x4fffce,..._0x389294}){const _0xcf3bcb=_0x96827c,{icon:_0x287d26,id:_0x30c33c,className:_0x1ecc20,extend:_0x41f10c,..._0x24e1e7}=_0x389294,_0x75f5bb=(_0xcf3bcb(0x164)+_0x30c33c+'\x20'+(_0x1ecc20||''))[_0xcf3bcb(0x193)](),_0xb951bc=_0x259872('_'+Oe());return G(_0x287d26,''+_0x30c33c,{'defIds':_0x287d26['defIds'],'idSuffix':_0xb951bc[_0xcf3bcb(0x187)]},{'ref':_0x4fffce,'className':_0x75f5bb,..._0x24e1e7},_0x41f10c);}function G(_0x2e2440,_0x30873f,_0x3ac1a7,_0x53efb2,_0x4ec982){const _0x56092b=_0x96827c;return _0x34459e(_0x2e2440[_0x56092b(0x181)],{'key':_0x30873f,...be(_0x2e2440,_0x3ac1a7,_0x4ec982),..._0x53efb2},(Ee(_0x2e2440,_0x3ac1a7)[_0x56092b(0x1a2)]||[])[_0x56092b(0x158)]((_0x186fdf,_0x438bf5)=>G(_0x186fdf,_0x30873f+'-'+_0x2e2440[_0x56092b(0x181)]+'-'+_0x438bf5,_0x3ac1a7,void 0x0,_0x4ec982)));}function be(_0x42a7f5,_0x5872b4,_0x279cec){const _0x2d9bba=_0x96827c,_0x3c9e5b={..._0x42a7f5[_0x2d9bba(0x155)]};_0x279cec!=null&&_0x279cec[_0x2d9bba(0x15f)]&&_0x3c9e5b[_0x2d9bba(0x19a)]===_0x2d9bba(0x15f)&&(_0x3c9e5b[_0x2d9bba(0x19a)]=_0x279cec[_0x2d9bba(0x15f)]),_0x42a7f5['tag']===_0x2d9bba(0x162)&&_0x3c9e5b['id']&&(_0x3c9e5b['id']=_0x3c9e5b['id']+_0x5872b4[_0x2d9bba(0x183)]),Object[_0x2d9bba(0x1a7)](_0x3c9e5b)[_0x2d9bba(0x1a3)](([_0x1fddf5,_0xf3e4f2])=>{const _0x19f11f=_0x2d9bba;_0x1fddf5===_0x19f11f(0x162)&&typeof _0xf3e4f2==_0x19f11f(0x154)&&(_0x3c9e5b[_0x1fddf5]=_0xf3e4f2['replace'](/url\(#(.*)\)/,_0x19f11f(0x141)+_0x5872b4[_0x19f11f(0x183)]+')'));});const {defIds:_0xb0e04d}=_0x5872b4;return!_0xb0e04d||_0xb0e04d[_0x2d9bba(0x160)]===0x0||(_0x42a7f5['tag']===_0x2d9bba(0x1b7)&&_0x3c9e5b[_0x2d9bba(0x1a8)]&&(_0x3c9e5b[_0x2d9bba(0x1a8)]=_0x3c9e5b['xlink:href']+_0x5872b4[_0x2d9bba(0x183)]),Object['entries'](_0x3c9e5b)[_0x2d9bba(0x1a3)](([_0x313681,_0x4e4e36])=>{const _0xe477e=_0x2d9bba;typeof _0x4e4e36==_0xe477e(0x154)&&(_0x3c9e5b[_0x313681]=_0x4e4e36[_0xe477e(0x1b0)](/url\(#(.*)\)/,_0xe477e(0x141)+_0x5872b4[_0xe477e(0x183)]+')'));})),_0x3c9e5b;}function Ee(_0x3659df,_0xbb87a){const _0x4d50ae=_0x96827c;var _0x5151c9;const {defIds:_0x8233dc}=_0xbb87a;return!_0x8233dc||_0x8233dc['length']===0x0?_0x3659df:_0x3659df[_0x4d50ae(0x181)]==='defs'&&((_0x5151c9=_0x3659df['children'])!=null&&_0x5151c9['length'])?{..._0x3659df,'children':_0x3659df[_0x4d50ae(0x1a2)]['map'](_0x1788c5=>typeof _0x1788c5['attrs']['id']==_0x4d50ae(0x154)&&_0x8233dc&&_0x8233dc['includes'](_0x1788c5[_0x4d50ae(0x155)]['id'])?{..._0x1788c5,'attrs':{..._0x1788c5[_0x4d50ae(0x155)],'id':_0x1788c5['attrs']['id']+_0xbb87a['idSuffix']}}:_0x1788c5)}:_0x3659df;}function Oe(){const _0x3fa474=_0x96827c;return Math[_0x3fa474(0x174)]()[_0x3fa474(0x1bd)](0x24)[_0x3fa474(0x180)](0x2,0x8);}k[_0x96827c(0x1be)]=_0x96827c(0x14b);const we={'tag':_0x96827c(0x169),'attrs':{'xmlns':_0x96827c(0x13c),'fill':_0x96827c(0x1c3),'viewBox':_0x96827c(0x1ae),'width':_0x96827c(0x167),'height':_0x96827c(0x167)},'children':[{'tag':'path','attrs':{'fill':_0x96827c(0x1ba),'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':_0x96827c(0x190),'attrs':{'fill':_0x96827c(0x1ba),'d':_0x96827c(0x131),'fillRule':_0x96827c(0x17b),'clipRule':'evenodd'}}]},W=_0x29a658(function(_0x5b9e7f,_0x50ce43){const _0x4fb716=_0x96827c;return _0x34459e(k,Object['assign']({},_0x5b9e7f,{'id':_0x4fb716(0x166),'ref':_0x50ce43,'icon':we}));});W['displayName']='LiveShareIcon';class L extends _0x542443{constructor(){const _0x539cf1=_0x96827c;super(...arguments),u(this,_0x539cf1(0x168),new Set()),u(this,_0x539cf1(0x19e),new Set());}[_0x96827c(0x182)](_0x415e9f){const _0x33f6df=_0x96827c;return this[_0x33f6df(0x168)]['add'](_0x415e9f),_0x29da0b(()=>this[_0x33f6df(0x168)][_0x33f6df(0x17d)](_0x415e9f));}['registerInitialStateReporter'](_0x1b64fa){const _0x1dabaf=_0x96827c;return this[_0x1dabaf(0x19e)]['add'](_0x1b64fa),_0x29da0b(()=>this[_0x1dabaf(0x19e)][_0x1dabaf(0x17d)](_0x1b64fa));}[_0x96827c(0x19f)](_0x5cd651){const _0x52ffb9=_0x96827c;return this['_sharedOperations'][_0x52ffb9(0x16b)](_0x5cd651);}['getInitialStates'](_0x516c47){return Array['from'](this['_reporters'])['map'](_0x3093ca=>_0x3093ca(_0x516c47));}}var Ne=Object[_0x96827c(0x163)],Y=(_0x39f342,_0x2a0e94,_0x3ce163,_0x537574)=>{const _0x5cab04=_0x96827c;for(var _0x5a4d8b=_0x537574>0x1?void 0x0:_0x537574?Ne(_0x2a0e94,_0x3ce163):_0x2a0e94,_0x54c6dd=_0x39f342[_0x5cab04(0x160)]-0x1,_0xc36c41;_0x54c6dd>=0x0;_0x54c6dd--)(_0xc36c41=_0x39f342[_0x54c6dd])&&(_0x5a4d8b=_0xc36c41(_0x5a4d8b)||_0x5a4d8b);return _0x5a4d8b;},_=(_0x1972dd,_0x46ee3e)=>(_0x31fde8,_0x5df4bd)=>_0x46ee3e(_0x31fde8,_0x5df4bd,_0x1972dd);let S=class extends _0x221d5c{constructor(_0x3257ff,_0x2958d3,_0x2558d6){const _0x5ea6a9=_0x96827c;super(),u(this,_0x5ea6a9(0x185),new Map()),(this[_0x5ea6a9(0x12c)]=_0x3257ff,this['_injector']=_0x2958d3,this[_0x5ea6a9(0x195)]=_0x2558d6,this[_0x5ea6a9(0x179)]());}async[_0x96827c(0x188)](_0x33c624){const _0x2d25ef=_0x96827c;return this[_0x2d25ef(0x185)][_0x2d25ef(0x16b)](_0x33c624)||await this[_0x2d25ef(0x1ca)](_0x33c624),this[_0x2d25ef(0x185)][_0x2d25ef(0x14d)](_0x33c624);}[_0x96827c(0x1c6)](_0x321fae){const _0x155f33=_0x96827c;var _0x10ec32;return(_0x10ec32=this[_0x155f33(0x185)][_0x155f33(0x14d)](_0x321fae))!=null?_0x10ec32:null;}[_0x96827c(0x179)](){const _0x1ed15c=_0x96827c;this[_0x1ed15c(0x12c)][_0x1ed15c(0x15b)](_0x3415ab[_0x1ed15c(0x14a)])[_0x1ed15c(0x136)](_0x4c7ad1(this['dispose$']))[_0x1ed15c(0x18e)](async _0x419699=>{const _0x27d7d9=_0x1ed15c,_0xde0805=_0x419699['getUnitId']();this[_0x27d7d9(0x185)]['has'](_0xde0805)||this[_0x27d7d9(0x1ca)](_0xde0805);}),this[_0x1ed15c(0x12c)][_0x1ed15c(0x13b)](_0x3415ab[_0x1ed15c(0x14a)])['pipe'](_0x4c7ad1(this[_0x1ed15c(0x17c)]))[_0x1ed15c(0x18e)](_0x4c9513=>{const _0x82641d=_0x1ed15c,_0xa5d87d=_0x4c9513[_0x82641d(0x15d)](),_0x57a3c3=this['_entities'][_0x82641d(0x14d)](_0xa5d87d);_0x57a3c3==null||_0x57a3c3['dispose']();});}async[_0x96827c(0x1ca)](_0x2b4390){const _0x77e740=_0x96827c,_0x5ee16d=await this['_collabSessionService'][_0x77e740(0x1ab)](_0x2b4390),_0xda9c84=this[_0x77e740(0x199)][_0x77e740(0x1b2)](N,_0x2b4390,_0x5ee16d);return _0xda9c84[_0x77e740(0x17e)](),this['_entities'][_0x77e740(0x16f)](_0x2b4390,_0xda9c84),_0xda9c84;}};S=Y([_(0x0,_0x172570),_(0x1,_0x12159d(_0x10d13f)),_(0x2,_0x12159d(_0x5c85ce))],S);var c=(_0x3b8f6c=>(_0x3b8f6c[_0x96827c(0x1b8)]=_0x96827c(0x1cb),_0x3b8f6c[_0x96827c(0x13d)]=_0x96827c(0x145),_0x3b8f6c['FOLLOWING']=_0x96827c(0x1c5),_0x3b8f6c[_0x96827c(0x172)]=_0x96827c(0x133),_0x3b8f6c[_0x96827c(0x16d)]=_0x96827c(0x12b),_0x3b8f6c))(c||{});const Ce=_0x96827c(0x151),De=0xc8;let N=class extends _0x221d5c{constructor(_0x172afe,_0x3ce982,_0x43c932,_0x26a86a,_0x19db69){const _0x27875e=_0x96827c;super(),u(this,'_status$',new _0x2e23fe('idle')),u(this,_0x27875e(0x1b9),this[_0x27875e(0x175)][_0x27875e(0x13e)]()),u(this,'_init',!0x1),u(this,_0x27875e(0x1b1),null),u(this,_0x27875e(0x197),null),(this[_0x27875e(0x138)]=_0x172afe,this[_0x27875e(0x147)]=_0x3ce982,this['_configService']=_0x43c932,this['_liveShareService']=_0x26a86a,this['_commandService']=_0x19db69);}get[_0x96827c(0x14f)](){const _0x1f1df6=_0x96827c;return this['_status$'][_0x1f1df6(0x18d)]();}[_0x96827c(0x16e)](){const _0x42b689=_0x96827c;var _0x31aca4;(_0x31aca4=this['_commandDisposable'])==null||_0x31aca4['dispose'](),this['_status$'][_0x42b689(0x14e)](_0x42b689(0x145)),this[_0x42b689(0x175)][_0x42b689(0x17f)]();}[_0x96827c(0x13a)](){const _0x4ded30=_0x96827c;return this[_0x4ded30(0x14f)];}[_0x96827c(0x17e)](){const _0x5e960d=_0x96827c;this[_0x5e960d(0x179)]||(this[_0x5e960d(0x179)]=!0x0,this['_collabSession'][_0x5e960d(0x1a4)][_0x5e960d(0x136)](_0x4c7ad1(this[_0x5e960d(0x17c)]))[_0x5e960d(0x18e)](_0x4d29e8=>{const _0xdc2860=_0x5e960d;switch(_0x4d29e8){case _0x316cc8[_0xdc2860(0x1b8)]:this['_handleOffline']();break;case _0x316cc8['ONLINE']:this['_handleOnline']();break;}}),this[_0x5e960d(0x147)]['event$'][_0x5e960d(0x136)](_0x4c7ad1(this['dispose$']))[_0x5e960d(0x18e)](_0x342c83=>{const _0x2eb484=_0x5e960d,{eventID:_0x128eb9}=_0x342c83;switch(_0x128eb9){case _0x1c8312[_0x2eb484(0x146)]:this[_0x2eb484(0x132)](_0x342c83);break;case _0x1c8312[_0x2eb484(0x143)]:this['_handleOperation'](_0x342c83);break;case _0x1c8312[_0x2eb484(0x134)]:this[_0x2eb484(0x15c)]();break;case _0x1c8312[_0x2eb484(0x13f)]:this['_handleNewChangeSets'](_0x342c83);break;}}));}[_0x96827c(0x1d4)](){const _0x2e485f=_0x96827c;this[_0x2e485f(0x147)][_0x2e485f(0x1c9)]({'eventID':_0x1c8312[_0x2e485f(0x196)],'data':{'unitID':this[_0x2e485f(0x138)],'userID':this[_0x2e485f(0x147)][_0x2e485f(0x156)]()}},this[_0x2e485f(0x138)]);}[_0x96827c(0x1b6)](){const _0x39f130=_0x96827c;this[_0x39f130(0x14f)]===_0x39f130(0x12b)&&(this[_0x39f130(0x175)][_0x39f130(0x14e)](_0x39f130(0x145)),this[_0x39f130(0x147)][_0x39f130(0x1c9)]({'eventID':_0x1c8312[_0x39f130(0x134)],'data':{'unitID':this['_unitID']}},this[_0x39f130(0x138)]));}['startFollowing'](){const _0x58e15f=_0x96827c;this[_0x58e15f(0x14f)]===_0x58e15f(0x133)&&(this[_0x58e15f(0x175)]['next']('following'),this[_0x58e15f(0x140)]());}['stopFollowing'](){const _0x14c85d=_0x96827c;this['_status']===_0x14c85d(0x1c5)&&this[_0x14c85d(0x152)]();}[_0x96827c(0x132)](_0x10aad5){const _0x1fa370=_0x96827c,{presenter:_0x5dbb8b}=_0x10aad5[_0x1fa370(0x176)],_0x65d22d=this[_0x1fa370(0x147)][_0x1fa370(0x156)]();this[_0x1fa370(0x197)]=_0x5dbb8b,_0x5dbb8b===_0x65d22d?(this[_0x1fa370(0x152)](),this[_0x1fa370(0x15e)]()):this[_0x1fa370(0x14f)]!==_0x1fa370(0x133)&&(this[_0x1fa370(0x12d)](),this[_0x1fa370(0x140)]());}[_0x96827c(0x171)](){const _0x1b2eb7=_0x96827c,_0x409c9c={'eventID':_0x1c8312[_0x1b2eb7(0x139)]};this[_0x1b2eb7(0x147)]['send'](_0x409c9c,this['_unitID']);}[_0x96827c(0x15c)](){const _0x327db2=_0x96827c;this['_presenter']=null,this[_0x327db2(0x14f)]!=='presenting'&&this['_beIdle']();}[_0x96827c(0x14c)](_0x43a545){const _0x4792de=_0x96827c;if(this[_0x4792de(0x14f)]===_0x4792de(0x1c5)&&this[_0x4792de(0x197)]===_0x43a545[_0x4792de(0x176)][_0x4792de(0x1cc)]){const _0x401f31=_0x4a62c5(_0x43a545[_0x4792de(0x176)])[_0x4792de(0x19c)][_0x4792de(0x137)]()['find'](_0x2819c9=>_0x2819c9['id']===_0x26236c['id']);if(_0x401f31){const _0x2ffc2e=_0x401f31[_0x4792de(0x1b3)]['unitId'],_0x552514=_0x401f31['params'][_0x4792de(0x18c)]['id'];setTimeout(()=>{const _0x2ac54f=_0x4792de;this[_0x2ac54f(0x18a)]['executeCommand'](_0x2132ea['id'],{'unitId':_0x2ffc2e,'subUnitId':_0x552514},{'fromCollab':!0x0});});}}}[_0x96827c(0x15e)](){const _0xac8d7=_0x96827c;this[_0xac8d7(0x175)][_0xac8d7(0x14e)](_0xac8d7(0x12b));const _0x146b51=new Map(),_0x3614b4=this['_commandDisposable']=new _0x4bebde();_0x3614b4[_0xac8d7(0x1bb)](_0x29da0b(()=>{const _0x5a4557=_0xac8d7;_0x146b51[_0x5a4557(0x1a3)](_0x3ef1a1=>_0x3ef1a1[_0x5a4557(0x17f)]()),_0x146b51[_0x5a4557(0x1bc)]();})),_0x3614b4['add'](this[_0xac8d7(0x18a)][_0xac8d7(0x1ce)](_0x5c1619=>{const _0x2f2919=_0xac8d7;var _0x3d5dff;if(_0x5c1619[_0x2f2919(0x1aa)]!==_0x533ba2[_0x2f2919(0x148)]||!this[_0x2f2919(0x1a0)][_0x2f2919(0x19f)](_0x5c1619['id']))return;const {id:_0x53cbb8}=_0x5c1619;let _0x162a78;_0x146b51['has'](_0x53cbb8)?_0x162a78=_0x146b51[_0x2f2919(0x14d)](_0x53cbb8):(_0x162a78=new _0x48d54b(),_0x146b51[_0x2f2919(0x16f)](_0x53cbb8,_0x162a78),_0x162a78[_0x2f2919(0x136)](_0x3567da((_0x3d5dff=this[_0x2f2919(0x1a1)][_0x2f2919(0x173)](Ce))!=null?_0x3d5dff:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2f2919(0x18e)](_0x387181=>{const _0x6dfca3=_0x2f2919;this[_0x6dfca3(0x147)][_0x6dfca3(0x1c9)]({'eventID':_0x1c8312[_0x6dfca3(0x143)],'data':{'unitID':this[_0x6dfca3(0x138)],'operations':{[_0x387181['id']]:{'id':_0x387181['id'],'params':JSON[_0x6dfca3(0x177)](_0x387181[_0x6dfca3(0x1b3)])}}}},this['_unitID']);})),_0x162a78[_0x2f2919(0x14e)](_0x5c1619);})),this[_0xac8d7(0x1a0)]['getInitialStates'](this[_0xac8d7(0x138)])[_0xac8d7(0x1a3)](_0x2dd37c=>this[_0xac8d7(0x147)][_0xac8d7(0x1c9)]({'eventID':_0x1c8312['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xac8d7(0x138)],'operations':{[_0x2dd37c['id']]:{'id':_0x2dd37c['id'],'params':JSON[_0xac8d7(0x177)](_0x2dd37c['params'])}}}},this['_unitID']));}[_0x96827c(0x12d)](){const _0x2324c8=_0x96827c;var _0x5ea30c;this[_0x2324c8(0x175)][_0x2324c8(0x14e)](_0x2324c8(0x145)),(_0x5ea30c=this[_0x2324c8(0x1b1)])==null||_0x5ea30c['dispose'](),this[_0x2324c8(0x1b1)]=null;}[_0x96827c(0x140)](){const _0x33d552=_0x96827c;var _0x1ccb84;(_0x1ccb84=this[_0x33d552(0x1b1)])==null||_0x1ccb84[_0x33d552(0x16e)](),this[_0x33d552(0x175)][_0x33d552(0x14e)]('following');}[_0x96827c(0x198)](){const _0x3c0984=_0x96827c;var _0xcc4733;this['_status$'][_0x3c0984(0x14e)]('idle'),(_0xcc4733=this[_0x3c0984(0x1b1)])==null||_0xcc4733['dispose'](),this[_0x3c0984(0x1b1)]=null;}[_0x96827c(0x152)](){const _0x534fac=_0x96827c;var _0x322dba;this[_0x534fac(0x175)][_0x534fac(0x14e)]('not-following'),(_0x322dba=this[_0x534fac(0x1b1)])==null||_0x322dba[_0x534fac(0x16e)]();}[_0x96827c(0x191)](_0x533c1d){const _0x151c03=_0x96827c;if(['presenting',_0x151c03(0x133),_0x151c03(0x1cb)]['includes'](this[_0x151c03(0x14f)])||!_0x533c1d[_0x151c03(0x176)]['presenter']||_0x533c1d['data'][_0x151c03(0x1c2)]===this[_0x151c03(0x147)][_0x151c03(0x156)]())return;this[_0x151c03(0x14f)]===_0x151c03(0x145)&&this[_0x151c03(0x140)]();const _0x1d7866=_0x533c1d[_0x151c03(0x176)]['operations'];Object[_0x151c03(0x1b5)](_0x1d7866)[_0x151c03(0x1a3)](_0x2898bd=>{const _0xf7efbb=_0x151c03;this[_0xf7efbb(0x18a)][_0xf7efbb(0x1a9)](_0x2898bd['id'],_0x2898bd[_0xf7efbb(0x1b3)]?JSON['parse'](_0x2898bd[_0xf7efbb(0x1b3)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4bfac9=_0x96827c;var _0x24fdc0;this[_0x4bfac9(0x175)][_0x4bfac9(0x14e)](_0x4bfac9(0x1cb)),(_0x24fdc0=this[_0x4bfac9(0x1b1)])==null||_0x24fdc0[_0x4bfac9(0x16e)]();}['_handleOnline'](){const _0x55549c=_0x96827c;this['_status$']['next']('idle'),this[_0x55549c(0x171)]();}};N=Y([_(0x2,_0x30c056),_(0x3,_0x12159d(L)),_(0x4,_0x2cd8ca)],N);function Le(){const _0x1ff1f9=_0x96827c,_0x1cdad9=_0x32ebdd(S),_0x1163b2=_0x32ebdd(_0x172570),_0x48468d=_0x47f62b(()=>_0x1163b2[_0x1ff1f9(0x130)](_0x3415ab[_0x1ff1f9(0x14a)]),void 0x0,!0x1,[]),[_0x4f6c03,_0x3c455f]=_0x2d673d(null),[_0x246acb,_0x5e1369]=_0x2d673d(c[_0x1ff1f9(0x13d)]),_0x1766d9=_0x259872(null);return _0x2c5085(()=>(_0x48468d&&_0x1cdad9[_0x1ff1f9(0x188)](_0x48468d[_0x1ff1f9(0x15d)]())[_0x1ff1f9(0x178)](_0x12a446=>{const _0x10d923=_0x1ff1f9;_0x3c455f(_0x12a446),_0x1766d9[_0x10d923(0x187)]=_0x12a446[_0x10d923(0x1b9)][_0x10d923(0x18e)](_0x4b3a29=>{_0x5e1369(_0x4b3a29);});}),()=>{const _0x7d8849=_0x1ff1f9;var _0x2cd906;(_0x2cd906=_0x1766d9[_0x7d8849(0x187)])==null||_0x2cd906['unsubscribe'](),_0x1766d9['current']=null;}),[_0x48468d,_0x1cdad9]),_0x4f6c03?_0x30e740(_0x49027d,{'align':_0x1ff1f9(0x18f),'disabled':_0x246acb===c[_0x1ff1f9(0x1b8)],'className':_0x1ff1f9(0x17a),'overlay':_0x30e740(Re,{'status':_0x246acb,'coordinator':_0x4f6c03}),'children':_0x30e740('button',{'className':_0x12f4d7('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x246acb===c[_0x1ff1f9(0x1b8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x246acb!==c[_0x1ff1f9(0x1b8)]}),'type':'button','children':_0x30e740(W,{'className':_0x1ff1f9(0x189)})})}):null;}function Re(_0xb308f2){const _0x590c1a=_0x96827c,{status:_0x13032a,coordinator:_0x3bbfd2}=_0xb308f2;switch(_0x13032a){case c['IDLE']:return _0x30e740($e,{'coordinator':_0x3bbfd2});case c[_0x590c1a(0x12e)]:return _0x30e740(xe,{'coordinator':_0x3bbfd2});case c[_0x590c1a(0x172)]:return _0x30e740(Pe,{'coordinator':_0x3bbfd2});case c[_0x590c1a(0x1b8)]:return _0x30e740(Te,{});case c[_0x590c1a(0x16d)]:return _0x30e740(Ae,{'coordinator':_0x3bbfd2});default:return null;}}function $e(_0x288407){const _0x279469=_0x96827c,{coordinator:_0x572ad3}=_0x288407;return _0x28108f(_0x298014,{'children':[_0x30e740(_0x279469(0x1af),{'className':_0x279469(0x12f),'children':_0x279469(0x1cf)}),_0x30e740(_0x23fa9e,{'onClick':()=>_0x572ad3[_0x279469(0x1d4)](),'children':_0x279469(0x150)})]});}function xe(_0x33565a){const _0x567e02=_0x96827c,{coordinator:_0x30403c}=_0x33565a;return _0x28108f(_0x298014,{'children':[_0x30e740('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x567e02(0x135)}),_0x30e740(_0x23fa9e,{'onClick':()=>_0x30403c[_0x567e02(0x157)](),'children':_0x567e02(0x1d3)})]});}function Pe(_0x364044){const _0x30a097=_0x96827c,{coordinator:_0x5eda4e}=_0x364044;return _0x28108f(_0x298014,{'children':[_0x30e740(_0x30a097(0x1af),{'className':_0x30a097(0x12f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x30e740(_0x23fa9e,{'variant':_0x30a097(0x18b),'onClick':()=>_0x5eda4e[_0x30a097(0x161)](),'children':_0x30a097(0x1c7)})]});}function Ae(_0x2e0d9a){const _0x3c1c89=_0x96827c,{coordinator:_0x3cbbe8}=_0x2e0d9a;return _0x28108f(_0x298014,{'children':[_0x30e740(_0x3c1c89(0x1af),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3c1c89(0x1a6)}),_0x30e740(_0x23fa9e,{'variant':_0x3c1c89(0x186),'onClick':()=>_0x3cbbe8[_0x3c1c89(0x1b6)](),'children':_0x3c1c89(0x159)})]});}function _0xc50a(_0x266c05,_0x5dfeae){_0x266c05=_0x266c05-0x12a;const _0x29f73d=_0x29f7();let _0xc50abe=_0x29f73d[_0x266c05];return _0xc50abe;}function Te(){const _0x3ec1ad=_0x96827c;return _0x30e740(_0x298014,{'children':_0x3ec1ad(0x1bf)});}var Fe=Object[_0x96827c(0x163)],He=(_0x4c7a69,_0x432ad7,_0x47a85b,_0x80312b)=>{const _0x45dd27=_0x96827c;for(var _0x331422=_0x80312b>0x1?void 0x0:_0x80312b?Fe(_0x432ad7,_0x47a85b):_0x432ad7,_0x3fed9f=_0x4c7a69[_0x45dd27(0x160)]-0x1,_0x5b50aa;_0x3fed9f>=0x0;_0x3fed9f--)(_0x5b50aa=_0x4c7a69[_0x3fed9f])&&(_0x331422=_0x5b50aa(_0x331422)||_0x331422);return _0x331422;},A=(_0x9a10be,_0x2e8888)=>(_0x4c3dd8,_0x1ecd26)=>_0x2e8888(_0x4c3dd8,_0x1ecd26,_0x9a10be);let m=class extends _0x542443{constructor(_0x55893a,_0x4f86db){const _0x50f3e0=_0x96827c;super(),this[_0x50f3e0(0x199)]=_0x55893a,this[_0x50f3e0(0x149)]=_0x4f86db,this[_0x50f3e0(0x16a)]();}[_0x96827c(0x16a)](){const _0x43a835=_0x96827c;this[_0x43a835(0x1d1)](this['_uiPartsService'][_0x43a835(0x142)](_0x3ca98e[_0x43a835(0x19d)],()=>_0x170c5e(Le,this[_0x43a835(0x199)])));}};m=He([A(0x0,_0x12159d(_0x10d13f)),A(0x1,_0x4111d1)],m);const ye=_0x96827c(0x165),T={};var Ue=Object[_0x96827c(0x163)],Ve=(_0x26eb8c,_0x547ff3,_0x220c6b,_0x293d30)=>{const _0xcb9906=_0x96827c;for(var _0x49d27f=_0x293d30>0x1?void 0x0:_0x293d30?Ue(_0x547ff3,_0x220c6b):_0x547ff3,_0x13fe2b=_0x26eb8c[_0xcb9906(0x160)]-0x1,_0x25080e;_0x13fe2b>=0x0;_0x13fe2b--)(_0x25080e=_0x26eb8c[_0x13fe2b])&&(_0x49d27f=_0x25080e(_0x49d27f)||_0x49d27f);return _0x49d27f;},je=(_0x4c96a9,_0x18aa71)=>(_0x3c77d0,_0x4ade44)=>_0x18aa71(_0x3c77d0,_0x4ade44,_0x4c96a9);let I=class extends _0x542443{constructor(_0x5ca450){const _0x7ad533=_0x96827c;super(),this[_0x7ad533(0x1a0)]=_0x5ca450,this[_0x7ad533(0x179)]();}[_0x96827c(0x179)](){const _0x4d6377=_0x96827c;[_0x61211d['id'],_0xd8d9c7['id'],_0x2132ea['id']][_0x4d6377(0x1a3)](_0x3642ad=>{const _0x2e36a3=_0x4d6377;this[_0x2e36a3(0x1d1)](this[_0x2e36a3(0x1a0)]['registerSharedOperation'](_0x3642ad));});}};I=Ve([je(0x0,_0x12159d(L))],I);var Me=Object[_0x96827c(0x1c1)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x136074,_0x7c1fa5,_0x185795)=>_0x7c1fa5 in _0x136074?Me(_0x136074,_0x7c1fa5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x185795}):_0x136074[_0x7c1fa5]=_0x185795,We=(_0x519d63,_0xe3e663,_0x54484c,_0x24d333)=>{const _0x405711=_0x96827c;for(var _0xafdfbc=_0x24d333>0x1?void 0x0:_0x24d333?ke(_0xe3e663,_0x54484c):_0xe3e663,_0x49dd8d=_0x519d63[_0x405711(0x160)]-0x1,_0x580f5c;_0x49dd8d>=0x0;_0x49dd8d--)(_0x580f5c=_0x519d63[_0x49dd8d])&&(_0xafdfbc=_0x580f5c(_0xafdfbc)||_0xafdfbc);return _0xafdfbc;},F=(_0x43898e,_0x4bdf90)=>(_0x4fbea8,_0x2c1e6c)=>_0x4bdf90(_0x4fbea8,_0x2c1e6c,_0x43898e),B=(_0x584304,_0x509b00,_0x4f0acf)=>Ge(_0x584304,typeof _0x509b00!=_0x96827c(0x170)?_0x509b00+'':_0x509b00,_0x4f0acf);const Ye=_0x96827c(0x1a5);let b=class extends _0x178a4f{constructor(_0x1e340c=T,_0x1680e9,_0x3ba132){const _0x4ba32a=_0x96827c;super(),this[_0x4ba32a(0x1d2)]=_0x1e340c,this[_0x4ba32a(0x199)]=_0x1680e9,this[_0x4ba32a(0x1a1)]=_0x3ba132;const {..._0x3c0c05}=_0x280048({},T,this[_0x4ba32a(0x1d2)]);this[_0x4ba32a(0x1a1)][_0x4ba32a(0x1d0)](ye,_0x3c0c05);}[_0x96827c(0x1ad)](){const _0x2f5af0=_0x96827c;_0x49d66e(this[_0x2f5af0(0x199)],_0x49ea46([[L],[S],[I],[m]],this[_0x2f5af0(0x1d2)]['override'])),_0x48236d(this['_injector'],[[I]]);}[_0x96827c(0x153)](){_0x48236d(this['_injector'],[[m]]);}};B(b,_0x96827c(0x1aa),_0x3415ab[_0x96827c(0x144)]),B(b,_0x96827c(0x12a),Ye),b=We([_0x367be1(_0x5aee68),F(0x1,_0x12159d(_0x10d13f)),F(0x2,_0x30c056)],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 _0x592408=_0x293d;(function(_0x38139e,_0x34835c){const _0x5bc4f0=_0x293d,_0x2d1908=_0x38139e();while(!![]){try{const _0x1aa606=parseInt(_0x5bc4f0(0x20e))/0x1*(-parseInt(_0x5bc4f0(0x24d))/0x2)+-parseInt(_0x5bc4f0(0x235))/0x3+-parseInt(_0x5bc4f0(0x1e4))/0x4+parseInt(_0x5bc4f0(0x22d))/0x5+parseInt(_0x5bc4f0(0x218))/0x6+-parseInt(_0x5bc4f0(0x21d))/0x7+parseInt(_0x5bc4f0(0x242))/0x8;if(_0x1aa606===_0x34835c)break;else _0x2d1908['push'](_0x2d1908['shift']());}catch(_0x4702e9){_0x2d1908['push'](_0x2d1908['shift']());}}}(_0x40ff,0x9ef19));var J=Object[_0x592408(0x1d4)],K=(_0x25694b,_0x5775e6,_0x463e02)=>_0x5775e6 in _0x25694b?J(_0x25694b,_0x5775e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x463e02}):_0x25694b[_0x5775e6]=_0x463e02,u=(_0x12abe7,_0x35b39c,_0x38c3c7)=>K(_0x12abe7,typeof _0x35b39c!='symbol'?_0x35b39c+'':_0x35b39c,_0x38c3c7);import{Disposable as _0x33ef8e,toDisposable as _0x20dd5b,IUniverInstanceService as _0x53f99e,Inject as _0x311fb0,Injector as _0x24ee9e,IConfigService as _0x3de0b0,ICommandService as _0x148cf9,RxDisposable as _0x1c3605,UniverInstanceType as _0x538a9c,DisposableCollection as _0x3daf0f,CommandType as _0x4f6879,DependentOn as _0x23f815,Plugin as _0x13b402,merge as _0x1bcd48,registerDependencies as _0x135b87,mergeOverrideWithDependencies as _0x1312ff,touchDependencies as _0x8d80af}from'@univerjs/core';import{useDependency as _0x204cae,useObservable as _0xb7854a,IUIPartsService as _0x8de62a,BuiltInUIPart as _0x11ce85,connectInjector as _0x4f5fb6}from'@univerjs/ui';import{jsx as _0x4a42da,jsxs as _0x38eaf4,Fragment as _0x29e3a5}from'react/jsx-runtime';import{Dropdown as _0x9f7729,clsx as _0x421684,Button as _0x24ed50}from'@univerjs/design';import{useRef as _0x20004a,createElement as _0x5ab196,forwardRef as _0x3fde48,useState as _0x4a1d9e,useEffect as _0x1e0d3a}from'react';import{CollaborationEvent as _0x2c77f3,parseProtocolChangeset as _0xbe98ce}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x34794b,SessionStatus as _0x34eb0b,UniverCollaborationClientPlugin as _0x3d09b1}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4a66bf,SetWorksheetActiveOperation as _0xc6f41a}from'@univerjs/sheets';import{BehaviorSubject as _0x5eee04,Subject as _0x402774}from'rxjs';import{takeUntil as _0x2f8329,throttleTime as _0x598727}from'rxjs/operators';import{SetZoomRatioOperation as _0x26ffad,SetScrollOperation as _0xeb207}from'@univerjs/sheets-ui';function k({ref:_0x27b357,..._0x8aadbc}){const _0x31a1dd=_0x592408,{icon:_0x3897d1,id:_0x1be106,className:_0x5589c4,extend:_0x2ccd93,..._0x3b6fee}=_0x8aadbc,_0x496bd4=('univerjs-icon\x20univerjs-icon-'+_0x1be106+'\x20'+(_0x5589c4||''))['trim'](),_0x3c9c50=_0x20004a('_'+Oe());return G(_0x3897d1,''+_0x1be106,{'defIds':_0x3897d1['defIds'],'idSuffix':_0x3c9c50[_0x31a1dd(0x1ee)]},{'ref':_0x27b357,'className':_0x496bd4,..._0x3b6fee},_0x2ccd93);}function G(_0x280e8b,_0x37d25c,_0x40d904,_0x4be9bd,_0x27bf3d){const _0x54de1c=_0x592408;return _0x5ab196(_0x280e8b['tag'],{'key':_0x37d25c,...be(_0x280e8b,_0x40d904,_0x27bf3d),..._0x4be9bd},(Ee(_0x280e8b,_0x40d904)[_0x54de1c(0x23e)]||[])[_0x54de1c(0x215)]((_0x26490c,_0x2bb720)=>G(_0x26490c,_0x37d25c+'-'+_0x280e8b[_0x54de1c(0x24a)]+'-'+_0x2bb720,_0x40d904,void 0x0,_0x27bf3d)));}function be(_0x3c5c0a,_0x3398da,_0x47ee34){const _0x55a73f=_0x592408,_0x1ead94={..._0x3c5c0a[_0x55a73f(0x1ca)]};_0x47ee34!=null&&_0x47ee34['colorChannel1']&&_0x1ead94['fill']===_0x55a73f(0x213)&&(_0x1ead94[_0x55a73f(0x1e2)]=_0x47ee34[_0x55a73f(0x213)]),_0x3c5c0a['tag']==='mask'&&_0x1ead94['id']&&(_0x1ead94['id']=_0x1ead94['id']+_0x3398da[_0x55a73f(0x1dd)]),Object[_0x55a73f(0x20d)](_0x1ead94)[_0x55a73f(0x246)](([_0x1a55fd,_0x5981b0])=>{const _0x23e574=_0x55a73f;_0x1a55fd===_0x23e574(0x202)&&typeof _0x5981b0==_0x23e574(0x1ae)&&(_0x1ead94[_0x1a55fd]=_0x5981b0[_0x23e574(0x208)](/url\(#(.*)\)/,'url(#$1'+_0x3398da[_0x23e574(0x1dd)]+')'));});const {defIds:_0x5a5b75}=_0x3398da;return!_0x5a5b75||_0x5a5b75['length']===0x0||(_0x3c5c0a[_0x55a73f(0x24a)]===_0x55a73f(0x23f)&&_0x1ead94['xlink:href']&&(_0x1ead94[_0x55a73f(0x1dc)]=_0x1ead94[_0x55a73f(0x1dc)]+_0x3398da[_0x55a73f(0x1dd)]),Object[_0x55a73f(0x20d)](_0x1ead94)[_0x55a73f(0x246)](([_0x3367cc,_0x48a836])=>{const _0x5a80b3=_0x55a73f;typeof _0x48a836==_0x5a80b3(0x1ae)&&(_0x1ead94[_0x3367cc]=_0x48a836['replace'](/url\(#(.*)\)/,'url(#$1'+_0x3398da[_0x5a80b3(0x1dd)]+')'));})),_0x1ead94;}function Ee(_0x192aae,_0x4322e2){const _0x44136d=_0x592408;var _0x469cdb;const {defIds:_0x23b6a2}=_0x4322e2;return!_0x23b6a2||_0x23b6a2[_0x44136d(0x244)]===0x0?_0x192aae:_0x192aae[_0x44136d(0x24a)]==='defs'&&((_0x469cdb=_0x192aae[_0x44136d(0x23e)])!=null&&_0x469cdb['length'])?{..._0x192aae,'children':_0x192aae[_0x44136d(0x23e)][_0x44136d(0x215)](_0x21694a=>typeof _0x21694a[_0x44136d(0x1ca)]['id']=='string'&&_0x23b6a2&&_0x23b6a2[_0x44136d(0x1f3)](_0x21694a[_0x44136d(0x1ca)]['id'])?{..._0x21694a,'attrs':{..._0x21694a[_0x44136d(0x1ca)],'id':_0x21694a[_0x44136d(0x1ca)]['id']+_0x4322e2[_0x44136d(0x1dd)]}}:_0x21694a)}:_0x192aae;}function Oe(){const _0x64d690=_0x592408;return Math[_0x64d690(0x225)]()[_0x64d690(0x230)](0x24)[_0x64d690(0x228)](0x2,0x8);}k['displayName']=_0x592408(0x232);const we={'tag':'svg','attrs':{'xmlns':_0x592408(0x20b),'fill':_0x592408(0x1c2),'viewBox':_0x592408(0x227),'width':'1em','height':'1em'},'children':[{'tag':_0x592408(0x223),'attrs':{'fill':_0x592408(0x1d1),'d':_0x592408(0x1fe)}},{'tag':_0x592408(0x223),'attrs':{'fill':_0x592408(0x1d1),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':'evenodd'}}]},W=_0x3fde48(function(_0x395d52,_0x4d971a){const _0x218af1=_0x592408;return _0x5ab196(k,Object[_0x218af1(0x1e6)]({},_0x395d52,{'id':_0x218af1(0x212),'ref':_0x4d971a,'icon':we}));});W[_0x592408(0x1f0)]=_0x592408(0x21c);class L extends _0x33ef8e{constructor(){const _0x13e232=_0x592408;super(...arguments),u(this,_0x13e232(0x1af),new Set()),u(this,_0x13e232(0x217),new Set());}['registerSharedOperation'](_0x48d44c){const _0x237079=_0x592408;return this['_sharedOperations'][_0x237079(0x245)](_0x48d44c),_0x20dd5b(()=>this[_0x237079(0x1af)][_0x237079(0x1d6)](_0x48d44c));}[_0x592408(0x1ce)](_0x1f2f06){const _0xb1e29a=_0x592408;return this['_reporters'][_0xb1e29a(0x245)](_0x1f2f06),_0x20dd5b(()=>this['_reporters']['delete'](_0x1f2f06));}[_0x592408(0x1fb)](_0x3dbbb4){const _0x5024b0=_0x592408;return this[_0x5024b0(0x1af)][_0x5024b0(0x1b4)](_0x3dbbb4);}['getInitialStates'](_0x1a2470){const _0x5d2471=_0x592408;return Array[_0x5d2471(0x248)](this[_0x5d2471(0x217)])[_0x5d2471(0x215)](_0x3f337f=>_0x3f337f(_0x1a2470));}}var Ne=Object[_0x592408(0x1f8)],Y=(_0x5a55d4,_0x303de6,_0x5bd326,_0x88f0d0)=>{const _0x16006a=_0x592408;for(var _0x1f2db4=_0x88f0d0>0x1?void 0x0:_0x88f0d0?Ne(_0x303de6,_0x5bd326):_0x303de6,_0x3c04d5=_0x5a55d4[_0x16006a(0x244)]-0x1,_0x3d44b2;_0x3c04d5>=0x0;_0x3c04d5--)(_0x3d44b2=_0x5a55d4[_0x3c04d5])&&(_0x1f2db4=_0x3d44b2(_0x1f2db4)||_0x1f2db4);return _0x1f2db4;},_=(_0x29c6ae,_0x46f958)=>(_0x52d675,_0x447703)=>_0x46f958(_0x52d675,_0x447703,_0x29c6ae);let S=class extends _0x1c3605{constructor(_0x2d81b5,_0x22f4aa,_0x4ed05f){const _0x4a7a6e=_0x592408;super(),u(this,_0x4a7a6e(0x24c),new Map()),(this['_univerInstanceService']=_0x2d81b5,this['_injector']=_0x22f4aa,this[_0x4a7a6e(0x24f)]=_0x4ed05f,this['_init']());}async[_0x592408(0x1d5)](_0x234e50){const _0x1edb53=_0x592408;return this[_0x1edb53(0x24c)][_0x1edb53(0x1b4)](_0x234e50)||await this[_0x1edb53(0x1bf)](_0x234e50),this[_0x1edb53(0x24c)][_0x1edb53(0x1d8)](_0x234e50);}[_0x592408(0x22f)](_0xd8c30){const _0x1d0e4b=_0x592408;var _0x9d0516;return(_0x9d0516=this[_0x1d0e4b(0x24c)][_0x1d0e4b(0x1d8)](_0xd8c30))!=null?_0x9d0516:null;}[_0x592408(0x1ff)](){const _0x22d9d0=_0x592408;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x538a9c[_0x22d9d0(0x247)])['pipe'](_0x2f8329(this[_0x22d9d0(0x1d2)]))[_0x22d9d0(0x1fa)](async _0x564d05=>{const _0x577942=_0x22d9d0,_0x58f3d7=_0x564d05[_0x577942(0x22e)]();this[_0x577942(0x24c)][_0x577942(0x1b4)](_0x58f3d7)||this[_0x577942(0x1bf)](_0x58f3d7);}),this[_0x22d9d0(0x236)][_0x22d9d0(0x21a)](_0x538a9c[_0x22d9d0(0x247)])[_0x22d9d0(0x1d9)](_0x2f8329(this[_0x22d9d0(0x1d2)]))[_0x22d9d0(0x1fa)](_0x4c3b6b=>{const _0x48b16b=_0x22d9d0,_0x119eec=_0x4c3b6b[_0x48b16b(0x22e)](),_0xca6e10=this[_0x48b16b(0x24c)][_0x48b16b(0x1d8)](_0x119eec);_0xca6e10==null||_0xca6e10[_0x48b16b(0x1d0)]();});}async[_0x592408(0x1bf)](_0x436f00){const _0x1155cb=_0x592408,_0x4c3720=await this['_collabSessionService'][_0x1155cb(0x1db)](_0x436f00),_0x131bd0=this[_0x1155cb(0x1b2)][_0x1155cb(0x216)](N,_0x436f00,_0x4c3720);return _0x131bd0[_0x1155cb(0x209)](),this[_0x1155cb(0x24c)][_0x1155cb(0x1bc)](_0x436f00,_0x131bd0),_0x131bd0;}};S=Y([_(0x0,_0x53f99e),_(0x1,_0x311fb0(_0x24ee9e)),_(0x2,_0x311fb0(_0x34794b))],S);var c=(_0x34dd14=>(_0x34dd14[_0x592408(0x21e)]=_0x592408(0x1e3),_0x34dd14[_0x592408(0x1b1)]='idle',_0x34dd14[_0x592408(0x226)]=_0x592408(0x1f6),_0x34dd14['NOT_FOLLOWING']=_0x592408(0x1cd),_0x34dd14[_0x592408(0x203)]='presenting',_0x34dd14))(c||{});const Ce=_0x592408(0x1b0),De=0xc8;let N=class extends _0x1c3605{constructor(_0x417e43,_0x3ddf84,_0x40872e,_0x22dbd0,_0x3d40d9){const _0x46cf5e=_0x592408;super(),u(this,_0x46cf5e(0x201),new _0x5eee04(_0x46cf5e(0x1ba))),u(this,_0x46cf5e(0x1f5),this['_status$'][_0x46cf5e(0x1eb)]()),u(this,_0x46cf5e(0x1ff),!0x1),u(this,_0x46cf5e(0x1c1),null),u(this,_0x46cf5e(0x1c7),null),(this[_0x46cf5e(0x1c8)]=_0x417e43,this['_collabSession']=_0x3ddf84,this[_0x46cf5e(0x1ac)]=_0x40872e,this[_0x46cf5e(0x211)]=_0x22dbd0,this['_commandService']=_0x3d40d9);}get['_status'](){const _0x5dfec7=_0x592408;return this['_status$'][_0x5dfec7(0x205)]();}[_0x592408(0x1d0)](){const _0x2bcc83=_0x592408;var _0x40e54d;(_0x40e54d=this[_0x2bcc83(0x1c1)])==null||_0x40e54d[_0x2bcc83(0x1d0)](),this[_0x2bcc83(0x201)][_0x2bcc83(0x1c3)]('idle'),this[_0x2bcc83(0x201)]['complete']();}['getStatus'](){const _0x274a14=_0x592408;return this[_0x274a14(0x200)];}[_0x592408(0x209)](){const _0x59ced1=_0x592408;this[_0x59ced1(0x1ff)]||(this[_0x59ced1(0x1ff)]=!0x0,this[_0x59ced1(0x1c6)][_0x59ced1(0x1ea)][_0x59ced1(0x1d9)](_0x2f8329(this[_0x59ced1(0x1d2)]))['subscribe'](_0x582ae2=>{const _0x25e366=_0x59ced1;switch(_0x582ae2){case _0x34eb0b[_0x25e366(0x21e)]:this[_0x25e366(0x222)]();break;case _0x34eb0b[_0x25e366(0x210)]:this[_0x25e366(0x1bb)]();break;}}),this[_0x59ced1(0x1c6)]['event$'][_0x59ced1(0x1d9)](_0x2f8329(this[_0x59ced1(0x1d2)]))[_0x59ced1(0x1fa)](_0xf58ae3=>{const _0x4e3c8a=_0x59ced1,{eventID:_0x4eb6bc}=_0xf58ae3;switch(_0x4eb6bc){case _0x2c77f3[_0x4e3c8a(0x220)]:this[_0x4e3c8a(0x234)](_0xf58ae3);break;case _0x2c77f3['LIVESHARE_OPERATION']:this[_0x4e3c8a(0x1d7)](_0xf58ae3);break;case _0x2c77f3[_0x4e3c8a(0x1df)]:this[_0x4e3c8a(0x224)]();break;case _0x2c77f3[_0x4e3c8a(0x24e)]:this[_0x4e3c8a(0x20f)](_0xf58ae3);break;}}));}[_0x592408(0x23b)](){const _0x1bb5ea=_0x592408;this['_collabSession'][_0x1bb5ea(0x1ef)]({'eventID':_0x2c77f3[_0x1bb5ea(0x1b9)],'data':{'unitID':this[_0x1bb5ea(0x1c8)],'userID':this[_0x1bb5ea(0x1c6)][_0x1bb5ea(0x1cc)]()}},this[_0x1bb5ea(0x1c8)]);}[_0x592408(0x1fd)](){const _0x6d8a06=_0x592408;this[_0x6d8a06(0x200)]===_0x6d8a06(0x1cf)&&(this['_status$'][_0x6d8a06(0x1c3)](_0x6d8a06(0x1ba)),this[_0x6d8a06(0x1c6)]['send']({'eventID':_0x2c77f3[_0x6d8a06(0x1df)],'data':{'unitID':this[_0x6d8a06(0x1c8)]}},this[_0x6d8a06(0x1c8)]));}[_0x592408(0x1f1)](){const _0x4d78e2=_0x592408;this[_0x4d78e2(0x200)]===_0x4d78e2(0x1cd)&&(this[_0x4d78e2(0x201)]['next'](_0x4d78e2(0x1f6)),this['_startFollowing']());}[_0x592408(0x1be)](){const _0x417637=_0x592408;this[_0x417637(0x200)]===_0x417637(0x1f6)&&this['_stopFollowing']();}[_0x592408(0x234)](_0x49c768){const _0x4688b8=_0x592408,{presenter:_0x75bb78}=_0x49c768[_0x4688b8(0x1f2)],_0x291a99=this['_collabSession'][_0x4688b8(0x1cc)]();this[_0x4688b8(0x1c7)]=_0x75bb78,_0x75bb78===_0x291a99?(this[_0x4688b8(0x21b)](),this[_0x4688b8(0x207)]()):this['_status']!==_0x4688b8(0x1cd)&&(this[_0x4688b8(0x1d3)](),this['_startFollowing']());}[_0x592408(0x23a)](){const _0xafa2ec=_0x592408,_0x5c4ec9={'eventID':_0x2c77f3[_0xafa2ec(0x1f4)]};this['_collabSession'][_0xafa2ec(0x1ef)](_0x5c4ec9,this[_0xafa2ec(0x1c8)]);}[_0x592408(0x224)](){const _0x277b95=_0x592408;this[_0x277b95(0x1c7)]=null,this['_status']!==_0x277b95(0x1cf)&&this[_0x277b95(0x238)]();}[_0x592408(0x20f)](_0x2135e3){const _0x587d22=_0x592408;if(this[_0x587d22(0x200)]===_0x587d22(0x1f6)&&this[_0x587d22(0x1c7)]===_0x2135e3[_0x587d22(0x1f2)][_0x587d22(0x221)]){const _0x390eec=_0xbe98ce(_0x2135e3[_0x587d22(0x1f2)])['mutations']['reverse']()['find'](_0x21ab2e=>_0x21ab2e['id']===_0x4a66bf['id']);if(_0x390eec){const _0x5831dc=_0x390eec['params'][_0x587d22(0x1f9)],_0x321222=_0x390eec[_0x587d22(0x1ed)][_0x587d22(0x1e1)]['id'];setTimeout(()=>{const _0x5e311e=_0x587d22;this[_0x5e311e(0x229)][_0x5e311e(0x206)](_0xc6f41a['id'],{'unitId':_0x5831dc,'subUnitId':_0x321222},{'fromCollab':!0x0});});}}}[_0x592408(0x207)](){const _0x4200e7=_0x592408;this[_0x4200e7(0x201)][_0x4200e7(0x1c3)](_0x4200e7(0x1cf));const _0x52bef0=new Map(),_0xd9b92e=this[_0x4200e7(0x1c1)]=new _0x3daf0f();_0xd9b92e['add'](_0x20dd5b(()=>{const _0x2ab5e7=_0x4200e7;_0x52bef0[_0x2ab5e7(0x246)](_0x390319=>_0x390319['complete']()),_0x52bef0[_0x2ab5e7(0x219)]();})),_0xd9b92e[_0x4200e7(0x245)](this[_0x4200e7(0x229)][_0x4200e7(0x237)](_0x37f7ee=>{const _0x2d0503=_0x4200e7;var _0x32a5ce;if(_0x37f7ee[_0x2d0503(0x1c9)]!==_0x4f6879[_0x2d0503(0x1e7)]||!this['_liveShareService'][_0x2d0503(0x1fb)](_0x37f7ee['id']))return;const {id:_0x74279a}=_0x37f7ee;let _0x3a33f0;_0x52bef0[_0x2d0503(0x1b4)](_0x74279a)?_0x3a33f0=_0x52bef0[_0x2d0503(0x1d8)](_0x74279a):(_0x3a33f0=new _0x402774(),_0x52bef0[_0x2d0503(0x1bc)](_0x74279a,_0x3a33f0),_0x3a33f0[_0x2d0503(0x1d9)](_0x598727((_0x32a5ce=this['_configService'][_0x2d0503(0x241)](Ce))!=null?_0x32a5ce:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2d0503(0x1fa)](_0x4a37d6=>{const _0x409813=_0x2d0503;this[_0x409813(0x1c6)][_0x409813(0x1ef)]({'eventID':_0x2c77f3[_0x409813(0x23d)],'data':{'unitID':this[_0x409813(0x1c8)],'operations':{[_0x4a37d6['id']]:{'id':_0x4a37d6['id'],'params':JSON['stringify'](_0x4a37d6[_0x409813(0x1ed)])}}}},this[_0x409813(0x1c8)]);})),_0x3a33f0[_0x2d0503(0x1c3)](_0x37f7ee);})),this['_liveShareService'][_0x4200e7(0x23c)](this['_unitID'])[_0x4200e7(0x246)](_0x138c81=>this['_collabSession'][_0x4200e7(0x1ef)]({'eventID':_0x2c77f3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4200e7(0x1c8)],'operations':{[_0x138c81['id']]:{'id':_0x138c81['id'],'params':JSON[_0x4200e7(0x204)](_0x138c81[_0x4200e7(0x1ed)])}}}},this['_unitID']));}[_0x592408(0x1d3)](){const _0x569646=_0x592408;var _0x3cb3aa;this[_0x569646(0x201)][_0x569646(0x1c3)](_0x569646(0x1ba)),(_0x3cb3aa=this[_0x569646(0x1c1)])==null||_0x3cb3aa[_0x569646(0x1d0)](),this[_0x569646(0x1c1)]=null;}[_0x592408(0x1b6)](){const _0x3b6c97=_0x592408;var _0x1a1c32;(_0x1a1c32=this[_0x3b6c97(0x1c1)])==null||_0x1a1c32[_0x3b6c97(0x1d0)](),this[_0x3b6c97(0x201)][_0x3b6c97(0x1c3)](_0x3b6c97(0x1f6));}['_beIdle'](){const _0x4d375d=_0x592408;var _0x10dae2;this['_status$'][_0x4d375d(0x1c3)](_0x4d375d(0x1ba)),(_0x10dae2=this[_0x4d375d(0x1c1)])==null||_0x10dae2[_0x4d375d(0x1d0)](),this[_0x4d375d(0x1c1)]=null;}[_0x592408(0x21b)](){const _0x541b13=_0x592408;var _0xfe4b6;this[_0x541b13(0x201)][_0x541b13(0x1c3)](_0x541b13(0x1cd)),(_0xfe4b6=this[_0x541b13(0x1c1)])==null||_0xfe4b6['dispose']();}[_0x592408(0x1d7)](_0x40b74a){const _0x37e93a=_0x592408;if(['presenting',_0x37e93a(0x1cd),_0x37e93a(0x1e3)][_0x37e93a(0x1f3)](this[_0x37e93a(0x200)])||!_0x40b74a[_0x37e93a(0x1f2)][_0x37e93a(0x249)]||_0x40b74a['data']['presenter']===this[_0x37e93a(0x1c6)][_0x37e93a(0x1cc)]())return;this[_0x37e93a(0x200)]===_0x37e93a(0x1ba)&&this['_startFollowing']();const _0x408097=_0x40b74a['data'][_0x37e93a(0x243)];Object['values'](_0x408097)['forEach'](_0x566915=>{const _0x2f7d38=_0x37e93a;this[_0x2f7d38(0x229)]['executeCommand'](_0x566915['id'],_0x566915[_0x2f7d38(0x1ed)]?JSON['parse'](_0x566915['params']):null,{'fromCollab':!0x0});});}[_0x592408(0x222)](){const _0x449f0a=_0x592408;var _0xdc7d27;this[_0x449f0a(0x201)][_0x449f0a(0x1c3)](_0x449f0a(0x1e3)),(_0xdc7d27=this[_0x449f0a(0x1c1)])==null||_0xdc7d27[_0x449f0a(0x1d0)]();}[_0x592408(0x1bb)](){const _0x2414b5=_0x592408;this[_0x2414b5(0x201)]['next'](_0x2414b5(0x1ba)),this[_0x2414b5(0x23a)]();}};N=Y([_(0x2,_0x3de0b0),_(0x3,_0x311fb0(L)),_(0x4,_0x148cf9)],N);function Le(){const _0x1b272a=_0x592408,_0x5028e8=_0x204cae(S),_0x69a3f0=_0x204cae(_0x53f99e),_0x560d12=_0xb7854a(()=>_0x69a3f0[_0x1b272a(0x1c0)](_0x538a9c[_0x1b272a(0x247)]),void 0x0,!0x1,[]),[_0x357fff,_0x316b66]=_0x4a1d9e(null),[_0x37f0a5,_0x3ed1ca]=_0x4a1d9e(c['IDLE']),_0x469dbd=_0x20004a(null);return _0x1e0d3a(()=>(_0x560d12&&_0x5028e8['getLiveShareCoordinator'](_0x560d12[_0x1b272a(0x22e)]())[_0x1b272a(0x24b)](_0x27e0f2=>{const _0x222a12=_0x1b272a;_0x316b66(_0x27e0f2),_0x469dbd['current']=_0x27e0f2[_0x222a12(0x1f5)][_0x222a12(0x1fa)](_0x2ec750=>{_0x3ed1ca(_0x2ec750);});}),()=>{const _0x22fd6b=_0x1b272a;var _0x4cca82;(_0x4cca82=_0x469dbd[_0x22fd6b(0x1ee)])==null||_0x4cca82[_0x22fd6b(0x1cb)](),_0x469dbd['current']=null;}),[_0x560d12,_0x5028e8]),_0x357fff?_0x4a42da(_0x9f7729,{'align':_0x1b272a(0x1c4),'disabled':_0x37f0a5===c['OFFLINE'],'className':_0x1b272a(0x1e5),'overlay':_0x4a42da(Re,{'status':_0x37f0a5,'coordinator':_0x357fff}),'children':_0x4a42da('button',{'className':_0x421684(_0x1b272a(0x1b3),{'univer-cursor-not-allowed':_0x37f0a5===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x37f0a5!==c[_0x1b272a(0x21e)]}),'type':_0x1b272a(0x214),'children':_0x4a42da(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2f3259){const _0x511d50=_0x592408,{status:_0x4d06e9,coordinator:_0x143c35}=_0x2f3259;switch(_0x4d06e9){case c[_0x511d50(0x1b1)]:return _0x4a42da($e,{'coordinator':_0x143c35});case c[_0x511d50(0x226)]:return _0x4a42da(xe,{'coordinator':_0x143c35});case c[_0x511d50(0x1b7)]:return _0x4a42da(Pe,{'coordinator':_0x143c35});case c[_0x511d50(0x21e)]:return _0x4a42da(Te,{});case c[_0x511d50(0x203)]:return _0x4a42da(Ae,{'coordinator':_0x143c35});default:return null;}}function $e(_0x15742d){const _0x64e20d=_0x592408,{coordinator:_0xb4a93b}=_0x15742d;return _0x38eaf4(_0x29e3a5,{'children':[_0x4a42da(_0x64e20d(0x22b),{'className':_0x64e20d(0x231),'children':_0x64e20d(0x1e8)}),_0x4a42da(_0x24ed50,{'onClick':()=>_0xb4a93b[_0x64e20d(0x23b)](),'children':_0x64e20d(0x1b5)})]});}function xe(_0x1e5387){const _0x472a9e=_0x592408,{coordinator:_0x215513}=_0x1e5387;return _0x38eaf4(_0x29e3a5,{'children':[_0x4a42da(_0x472a9e(0x22b),{'className':_0x472a9e(0x231),'children':_0x472a9e(0x1e9)}),_0x4a42da(_0x24ed50,{'onClick':()=>_0x215513[_0x472a9e(0x1be)](),'children':_0x472a9e(0x239)})]});}function Pe(_0x2e2091){const _0xdc9403=_0x592408,{coordinator:_0x3a838a}=_0x2e2091;return _0x38eaf4(_0x29e3a5,{'children':[_0x4a42da('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4a42da(_0x24ed50,{'variant':_0xdc9403(0x1ad),'onClick':()=>_0x3a838a[_0xdc9403(0x1f1)](),'children':_0xdc9403(0x1c5)})]});}function Ae(_0x3aa827){const _0x59da29=_0x592408,{coordinator:_0x432edc}=_0x3aa827;return _0x38eaf4(_0x29e3a5,{'children':[_0x4a42da(_0x59da29(0x22b),{'className':_0x59da29(0x231),'children':_0x59da29(0x22a)}),_0x4a42da(_0x24ed50,{'variant':_0x59da29(0x20a),'onClick':()=>_0x432edc[_0x59da29(0x1fd)](),'children':_0x59da29(0x233)})]});}function Te(){return _0x4a42da(_0x29e3a5,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x592408(0x1f8)],He=(_0x32e00f,_0x16da39,_0x20c2f8,_0xc070d7)=>{const _0x2f2fd0=_0x592408;for(var _0x3c7882=_0xc070d7>0x1?void 0x0:_0xc070d7?Fe(_0x16da39,_0x20c2f8):_0x16da39,_0x319d18=_0x32e00f[_0x2f2fd0(0x244)]-0x1,_0x226565;_0x319d18>=0x0;_0x319d18--)(_0x226565=_0x32e00f[_0x319d18])&&(_0x3c7882=_0x226565(_0x3c7882)||_0x3c7882);return _0x3c7882;},A=(_0x20c8b2,_0x4705e7)=>(_0x38d6d1,_0x77714d)=>_0x4705e7(_0x38d6d1,_0x77714d,_0x20c8b2);let m=class extends _0x33ef8e{constructor(_0x5831ff,_0x2e5c47){const _0x590b74=_0x592408;super(),this[_0x590b74(0x1b2)]=_0x5831ff,this[_0x590b74(0x1de)]=_0x2e5c47,this[_0x590b74(0x240)]();}[_0x592408(0x240)](){const _0x512834=_0x592408;this['disposeWithMe'](this[_0x512834(0x1de)]['registerComponent'](_0x11ce85[_0x512834(0x1f7)],()=>_0x4f5fb6(Le,this[_0x512834(0x1b2)])));}};function _0x293d(_0x40fdb7,_0x94f80){_0x40fdb7=_0x40fdb7-0x1ab;const _0x40ff8b=_0x40ff();let _0x293d6c=_0x40ff8b[_0x40fdb7];return _0x293d6c;}m=He([A(0x0,_0x311fb0(_0x24ee9e)),A(0x1,_0x8de62a)],m);const ye=_0x592408(0x1da),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x27ce8c,_0x4b5540,_0xcbfec7,_0x2e6cb5)=>{for(var _0x129a67=_0x2e6cb5>0x1?void 0x0:_0x2e6cb5?Ue(_0x4b5540,_0xcbfec7):_0x4b5540,_0xafe55a=_0x27ce8c['length']-0x1,_0x2c85a0;_0xafe55a>=0x0;_0xafe55a--)(_0x2c85a0=_0x27ce8c[_0xafe55a])&&(_0x129a67=_0x2c85a0(_0x129a67)||_0x129a67);return _0x129a67;},je=(_0x589fd1,_0x23e718)=>(_0x842216,_0x5429f5)=>_0x23e718(_0x842216,_0x5429f5,_0x589fd1);let I=class extends _0x33ef8e{constructor(_0x4f4012){const _0x56a98e=_0x592408;super(),this[_0x56a98e(0x211)]=_0x4f4012,this[_0x56a98e(0x1ff)]();}['_init'](){const _0x780702=_0x592408;[_0x26ffad['id'],_0xeb207['id'],_0xc6f41a['id']][_0x780702(0x246)](_0x1d5d07=>{const _0x12fb16=_0x780702;this[_0x12fb16(0x20c)](this[_0x12fb16(0x211)][_0x12fb16(0x1ab)](_0x1d5d07));});}};I=Ve([je(0x0,_0x311fb0(L))],I);function _0x40ff(){const _0x127166=['disposeWithMe','entries','7zIQclS','_handleNewChangeSets','ONLINE','_liveShareService','live-share-icon','colorChannel1','button','map','createInstance','_reporters','75210HMeIUw','clear','getTypeOfUnitDisposed$','_stopFollowing','LiveShareIcon','7916524hragxB','OFFLINE','onRendered','LIVESHARE_NEW_HOST','memberID','_handleOffline','path','_handleTerminate','random','FOLLOWING','0\x200\x2017\x2017','substring','_commandService','You\x27re\x20presenting\x20the\x20document','div','setConfig','5922850hiOKQE','getUnitId','getLiveShareCoordinatorSync','toString','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverIcon','Stop\x20presenting','_handleNewHost','1044705apDLaJ','_univerInstanceService','onCommandExecuted','_beIdle','Stop\x20following','_fetchOperations','tryStartPresenting','getInitialStates','LIVESHARE_OPERATION','children','use','_mountLiveShare','getConfig','13657264RvdmWB','operations','length','add','forEach','UNIVER_SHEET','from','presenter','tag','then','_entities','108772MrDIwv','NEW_CHANGESETS','_collabSessionService','registerSharedOperation','_configService','text','string','_sharedOperations','SAME_OPERATION_SHARE_INTERVAL','IDLE','_injector','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','has','Start','_startFollowing','NOT_FOLLOWING','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_REQUEST_HOST','idle','_handleOnline','set','override','stopFollowing','_startLiveShareCoordinator','getCurrentTypeOfUnit$','_commandDisposable','none','next','end','Start\x20following','_collabSession','_presenter','_unitID','type','attrs','unsubscribe','getMemberID','not-following','registerInitialStateReporter','presenting','dispose','currentColor','dispose$','_stopPresenting','defineProperty','getLiveShareCoordinator','delete','_handleOperation','get','pipe','live-share.config','requireSession','xlink:href','idSuffix','_uiPartsService','LIVESHARE_TERMINATE','pluginName','sheet','fill','offline','1573444WVCrcm','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','assign','OPERATION','Present\x20this\x20document','You\x27re\x20following\x20the\x20presenter','sessionStatus$','asObservable','onStarting','params','current','send','displayName','startFollowing','data','includes','LIVESHARE_FETCH_OPERATIONS','status$','following','HEADER_MENU','getOwnPropertyDescriptor','unitId','subscribe','shouldShareOperation','_config','stopPresenting','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','_init','_status','_status$','mask','PRESENTING','stringify','getValue','executeCommand','_startPresenting','replace','init','default','http://www.w3.org/2000/svg'];_0x40ff=function(){return _0x127166;};return _0x40ff();}var Me=Object[_0x592408(0x1d4)],ke=Object[_0x592408(0x1f8)],Ge=(_0x7c1980,_0x4e5481,_0x3e4bfe)=>_0x4e5481 in _0x7c1980?Me(_0x7c1980,_0x4e5481,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e4bfe}):_0x7c1980[_0x4e5481]=_0x3e4bfe,We=(_0x37369a,_0x2b61a8,_0x2f3f03,_0x441760)=>{const _0x53ff5d=_0x592408;for(var _0x359d2a=_0x441760>0x1?void 0x0:_0x441760?ke(_0x2b61a8,_0x2f3f03):_0x2b61a8,_0x1d7a72=_0x37369a[_0x53ff5d(0x244)]-0x1,_0x4ac5cb;_0x1d7a72>=0x0;_0x1d7a72--)(_0x4ac5cb=_0x37369a[_0x1d7a72])&&(_0x359d2a=_0x4ac5cb(_0x359d2a)||_0x359d2a);return _0x359d2a;},F=(_0x537364,_0x43476a)=>(_0x4f0ed1,_0x410faa)=>_0x43476a(_0x4f0ed1,_0x410faa,_0x537364),B=(_0x9ce590,_0x5f358d,_0x2a34bc)=>Ge(_0x9ce590,typeof _0x5f358d!='symbol'?_0x5f358d+'':_0x5f358d,_0x2a34bc);const Ye=_0x592408(0x1b8);let b=class extends _0x13b402{constructor(_0x39ca85=T,_0x2efb02,_0x1d6f46){const _0x5929fe=_0x592408;super(),this[_0x5929fe(0x1fc)]=_0x39ca85,this[_0x5929fe(0x1b2)]=_0x2efb02,this['_configService']=_0x1d6f46;const {..._0x1de41e}=_0x1bcd48({},T,this['_config']);this[_0x5929fe(0x1ac)][_0x5929fe(0x22c)](ye,_0x1de41e);}[_0x592408(0x1ec)](){const _0x1862d5=_0x592408;_0x135b87(this[_0x1862d5(0x1b2)],_0x1312ff([[L],[S],[I],[m]],this['_config'][_0x1862d5(0x1bd)])),_0x8d80af(this['_injector'],[[I]]);}[_0x592408(0x21f)](){const _0x361b11=_0x592408;_0x8d80af(this[_0x361b11(0x1b2)],[[m]]);}};B(b,'type',_0x538a9c['UNIVER_UNKNOWN']),B(b,_0x592408(0x1e0),Ye),b=We([_0x23f815(_0x3d09b1),F(0x1,_0x311fb0(_0x24ee9e)),F(0x2,_0x3de0b0)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
@@ -1,3 +1,4 @@
1
+ import { Injector } from '@univerjs/core';
1
2
  import { LiveShareStatus } from '@univerjs-pro/live-share';
2
3
  import { FUniver } from '@univerjs/core/facade';
3
4
  /**
@@ -26,6 +27,8 @@ interface IFUniverLiveShareMixin {
26
27
  stopPresenting(): void;
27
28
  }
28
29
  export declare class FUniverLiveShareMixin extends FUniver implements IFUniverLiveShareMixin {
30
+ private _liveShareController;
31
+ _initialize(injector: Injector): void;
29
32
  getLiveShareStatus(): LiveShareStatus;
30
33
  startFollowing(): void;
31
34
  stopFollowing(): void;
@@ -1,3 +1,2 @@
1
- import './f-range';
2
1
  import './f-univer';
3
2
  import './f-enum';
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x4b28(){const _0x316b74=['IDLE','4048986tcqelA','getUnitId','LiveShareController','stopPresenting','_injector','UniverSheetsFacade','437746dhPJrs','function','70327nKRLMc','syncExecuteCommand','startFollowing','UniverSheetsUi','getId','@univerjs/core/facade','@univerjs-pro/live-share','No\x20active\x20workbook\x20found.','IRenderManagerService','getLiveShareCoordinatorSync','UniverEngineRender','UniverSheets','UniverCoreFacade','getActiveSheet','FEnum','3670212vrUbvA','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','tryStartPresenting','FUniver','_commandService','897235BXBfLt','LiveShareStatus','66501xUgORH','416ygRIkO','getStatus','getActiveWorkbook','212202CBDWtY','extend','startPresenting','stopFollowing','startRow','get','40hmsMdG','LiveShareStatusEnum','getSheetId','SetScrollOperation','FRange'];_0x4b28=function(){return _0x316b74;};return _0x4b28();}function _0x2347(_0x178951,_0x5223b7){_0x178951=_0x178951-0x112;const _0x4b2891=_0x4b28();let _0x234783=_0x4b2891[_0x178951];return _0x234783;}(function(_0x50588a,_0x48861d){const _0x1b55d4=_0x2347,_0x2f6ebd=_0x50588a();while(!![]){try{const _0x32061d=-parseInt(_0x1b55d4(0x116))/0x1+-parseInt(_0x1b55d4(0x114))/0x2+parseInt(_0x1b55d4(0x130))/0x3*(-parseInt(_0x1b55d4(0x136))/0x4)+-parseInt(_0x1b55d4(0x12a))/0x5+parseInt(_0x1b55d4(0x13c))/0x6+parseInt(_0x1b55d4(0x125))/0x7+-parseInt(_0x1b55d4(0x12d))/0x8*(-parseInt(_0x1b55d4(0x12c))/0x9);if(_0x32061d===_0x48861d)break;else _0x2f6ebd['push'](_0x2f6ebd['shift']());}catch(_0x8af4f1){_0x2f6ebd['push'](_0x2f6ebd['shift']());}}}(_0x4b28,0x6375c),function(_0x4d267b,_0x4dd07e){const _0x4cd22d=_0x2347;typeof exports=='object'&&typeof module<'u'?_0x4dd07e(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==_0x4cd22d(0x115)&&define['amd']?define([_0x4cd22d(0x11c),'@univerjs/engine-render','@univerjs/sheets','@univerjs/sheets-ui','@univerjs/sheets/facade',_0x4cd22d(0x11b)],_0x4dd07e):(_0x4d267b=typeof globalThis<'u'?globalThis:_0x4d267b||self,_0x4dd07e(_0x4d267b['UniverProLiveShare'],_0x4d267b[_0x4cd22d(0x120)],_0x4d267b[_0x4cd22d(0x121)],_0x4d267b[_0x4cd22d(0x119)],_0x4d267b[_0x4cd22d(0x113)],_0x4d267b[_0x4cd22d(0x122)]));}(this,function(_0x3c84f1,_0x4af1e3,_0x38977c,_0x329804,_0x4777d3,_0x385198){'use strict';const _0x1a0932=_0x2347;class _0x2f0447 extends _0x4777d3[_0x1a0932(0x13a)]{['_initialize'](_0x468686,_0x56c90d,_0x5cf3e5,_0x545c11,_0x4ba90e){const _0x59c3b0=_0x1a0932,_0x10972d=_0x468686[_0x59c3b0(0x135)](_0x3c84f1[_0x59c3b0(0x13e)]),_0x5ee5ab=_0x468686['get'](_0x4af1e3[_0x59c3b0(0x11e)]),_0x1cc437=_0x56c90d[_0x59c3b0(0x13d)](),_0x448191=_0x56c90d[_0x59c3b0(0x123)](),_0x5610ec=_0x10972d[_0x59c3b0(0x11f)](_0x1cc437);(_0x5610ec==null?void 0x0:_0x5610ec[_0x59c3b0(0x12e)]())!==_0x3c84f1[_0x59c3b0(0x12b)]['PRESENTING']||(_0x5cf3e5[_0x59c3b0(0x138)]()!==_0x448191[_0x59c3b0(0x138)]()&&this[_0x59c3b0(0x129)]['executeCommand'](_0x38977c['SetWorksheetActiveOperation']['id'],{'unitId':_0x1cc437,'subUnitId':_0x5cf3e5[_0x59c3b0(0x138)]()}),!_0x5ee5ab['getRenderById'](_0x1cc437))||_0x4ba90e[_0x59c3b0(0x117)](_0x329804[_0x59c3b0(0x139)]['id'],{'unitId':_0x56c90d['getUnitId'](),'sheetId':_0x5cf3e5['getSheetId'](),'sheetViewStartRow':_0x545c11[_0x59c3b0(0x134)],'sheetViewStartColumn':_0x545c11['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4777d3[_0x1a0932(0x13a)][_0x1a0932(0x131)](_0x2f0447);class _0x294804 extends _0x385198[_0x1a0932(0x128)]{['getLiveShareStatus'](){const _0x5173f5=_0x1a0932;var _0x58e317,_0x5555f7;const _0x53a2ff=this[_0x5173f5(0x112)][_0x5173f5(0x135)](_0x3c84f1[_0x5173f5(0x13e)]),_0x2bfe50=(_0x58e317=this[_0x5173f5(0x12f)]())==null?void 0x0:_0x58e317[_0x5173f5(0x11a)]();if(!_0x2bfe50)throw new Error(_0x5173f5(0x11d));const _0x197b69=_0x53a2ff[_0x5173f5(0x11f)](_0x2bfe50);return(_0x5555f7=_0x197b69==null?void 0x0:_0x197b69['getStatus']())!=null?_0x5555f7:_0x3c84f1[_0x5173f5(0x12b)][_0x5173f5(0x13b)];}['startFollowing'](){const _0x267982=_0x1a0932;var _0x19901a;const _0x3ec9d3=this['_injector'][_0x267982(0x135)](_0x3c84f1[_0x267982(0x13e)]),_0x44aa90=(_0x19901a=this[_0x267982(0x12f)]())==null?void 0x0:_0x19901a[_0x267982(0x11a)]();if(!_0x44aa90)throw new Error(_0x267982(0x11d));const _0x5f5407=_0x3ec9d3[_0x267982(0x11f)](_0x44aa90);if(!_0x5f5407)throw new Error(_0x267982(0x126));_0x5f5407[_0x267982(0x118)]();}[_0x1a0932(0x133)](){const _0x518342=_0x1a0932;var _0x345421;const _0x3537d3=this[_0x518342(0x112)][_0x518342(0x135)](_0x3c84f1['LiveShareController']),_0x13e67b=(_0x345421=this['getActiveWorkbook']())==null?void 0x0:_0x345421['getId']();if(!_0x13e67b)throw new Error(_0x518342(0x11d));const _0x412f20=_0x3537d3[_0x518342(0x11f)](_0x13e67b);if(!_0x412f20)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x412f20[_0x518342(0x133)]();}[_0x1a0932(0x132)](){const _0xf85628=_0x1a0932;var _0x53769a;const _0x160392=this['_injector']['get'](_0x3c84f1['LiveShareController']),_0x500da0=(_0x53769a=this[_0xf85628(0x12f)]())==null?void 0x0:_0x53769a[_0xf85628(0x11a)]();if(!_0x500da0)throw new Error('No\x20active\x20workbook\x20found.');const _0x248b0c=_0x160392[_0xf85628(0x11f)](_0x500da0);if(!_0x248b0c)throw new Error(_0xf85628(0x126));_0x248b0c[_0xf85628(0x127)]();}[_0x1a0932(0x13f)](){const _0x9c49c6=_0x1a0932;var _0x3c439e;const _0xb45a64=this[_0x9c49c6(0x112)][_0x9c49c6(0x135)](_0x3c84f1[_0x9c49c6(0x13e)]),_0x26bf88=(_0x3c439e=this[_0x9c49c6(0x12f)]())==null?void 0x0:_0x3c439e[_0x9c49c6(0x11a)]();if(!_0x26bf88)throw new Error('No\x20active\x20workbook\x20found.');const _0x5db2b8=_0xb45a64[_0x9c49c6(0x11f)](_0x26bf88);if(!_0x5db2b8)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5db2b8[_0x9c49c6(0x13f)]();}}_0x385198[_0x1a0932(0x128)]['extend'](_0x294804);class _0xf04b13 extends _0x385198[_0x1a0932(0x124)]{get[_0x1a0932(0x137)](){return _0x3c84f1['LiveShareStatus'];}}_0x385198['FEnum'][_0x1a0932(0x131)](_0xf04b13);}));
1
+ function _0x292a(){const _0x60747d=['@univerjs-pro/live-share','No\x20active\x20workbook\x20found.','LiveShareStatusEnum','183yEdkaz','startFollowing','5030828ckINkN','27tkBGKe','_initialize','stopPresenting','@univerjs/core/facade','14148yPRbKM','getCurrentUnitOfType','FUniver','742712jMsdly','UniverProLiveShare','UNIVER_SHEET','_injector','amd','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','defineProperty','82460cYDdDo','_liveShareController','UniverInstanceType','LiveShareStatus','LiveShareController','9fPLgfY','getUnitId','tryStartPresenting','6282ShPFsD','function','startPresenting','1019710qiHilf','IDLE','FEnum','15294WnviKu','UniverCoreFacade','UniverCore','IUniverInstanceService','object','getLiveShareCoordinatorSync','@univerjs/core','get','symbol','1092CrNFdS','extend','stopFollowing'];_0x292a=function(){return _0x60747d;};return _0x292a();}function _0x37a5(_0xaed825,_0x51acb8){_0xaed825=_0xaed825-0x163;const _0x292abb=_0x292a();let _0x37a581=_0x292abb[_0xaed825];return _0x37a581;}(function(_0x253b5e,_0x373e3d){const _0x556d5f=_0x37a5,_0x3dab37=_0x253b5e();while(!![]){try{const _0xf2fe81=-parseInt(_0x556d5f(0x169))/0x1*(-parseInt(_0x556d5f(0x185))/0x2)+-parseInt(_0x556d5f(0x166))/0x3*(-parseInt(_0x556d5f(0x16d))/0x4)+-parseInt(_0x556d5f(0x177))/0x5+-parseInt(_0x556d5f(0x17f))/0x6*(-parseInt(_0x556d5f(0x18e))/0x7)+-parseInt(_0x556d5f(0x170))/0x8+parseInt(_0x556d5f(0x17c))/0x9*(parseInt(_0x556d5f(0x182))/0xa)+-parseInt(_0x556d5f(0x168))/0xb;if(_0xf2fe81===_0x373e3d)break;else _0x3dab37['push'](_0x3dab37['shift']());}catch(_0x2fc36e){_0x3dab37['push'](_0x3dab37['shift']());}}}(_0x292a,0x1d812),function(_0x15b0bf,_0x1a085e){const _0x249cb0=_0x37a5;typeof exports==_0x249cb0(0x189)&&typeof module<'u'?_0x1a085e(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x249cb0(0x180)&&define[_0x249cb0(0x174)]?define([_0x249cb0(0x163),_0x249cb0(0x18b),_0x249cb0(0x16c)],_0x1a085e):(_0x15b0bf=typeof globalThis<'u'?globalThis:_0x15b0bf||self,_0x1a085e(_0x15b0bf[_0x249cb0(0x171)],_0x15b0bf[_0x249cb0(0x187)],_0x15b0bf[_0x249cb0(0x186)]));}(this,function(_0x4a0570,_0x483380,_0x25f3b0){'use strict';const _0x423ac7=_0x37a5;var _0x5d4e29=Object[_0x423ac7(0x176)],_0x3aa415=(_0x42dd60,_0x4ea416,_0x1514bd)=>_0x4ea416 in _0x42dd60?_0x5d4e29(_0x42dd60,_0x4ea416,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1514bd}):_0x42dd60[_0x4ea416]=_0x1514bd,_0x5d40b7=(_0x4d9772,_0x701bb,_0x28f218)=>_0x3aa415(_0x4d9772,typeof _0x701bb!=_0x423ac7(0x18d)?_0x701bb+'':_0x701bb,_0x28f218);class _0x41c76d extends _0x25f3b0[_0x423ac7(0x16f)]{constructor(){const _0x2d426e=_0x423ac7;super(...arguments),_0x5d40b7(this,_0x2d426e(0x178));}[_0x423ac7(0x16a)](_0x35587d){const _0x4410fc=_0x423ac7;this[_0x4410fc(0x178)]=_0x35587d['get'](_0x4a0570[_0x4410fc(0x17b)]);}['getLiveShareStatus'](){const _0x23a586=_0x423ac7;var _0x24b2ea;const _0x4e38c8=this['_injector'][_0x23a586(0x18c)](_0x483380[_0x23a586(0x188)])[_0x23a586(0x16e)](_0x483380[_0x23a586(0x179)][_0x23a586(0x172)]);if(!_0x4e38c8)throw new Error('No\x20active\x20workbook\x20found.');const _0x2bd245=_0x4e38c8[_0x23a586(0x17d)](),_0x259c86=this[_0x23a586(0x178)][_0x23a586(0x18a)](_0x2bd245);return(_0x24b2ea=_0x259c86==null?void 0x0:_0x259c86['getStatus']())!=null?_0x24b2ea:_0x4a0570[_0x23a586(0x17a)][_0x23a586(0x183)];}['startFollowing'](){const _0x32c0aa=_0x423ac7,_0x16abe3=this['_injector'][_0x32c0aa(0x18c)](_0x483380[_0x32c0aa(0x188)])[_0x32c0aa(0x16e)](_0x483380[_0x32c0aa(0x179)][_0x32c0aa(0x172)]);if(!_0x16abe3)throw new Error(_0x32c0aa(0x164));const _0x15bb31=_0x16abe3[_0x32c0aa(0x17d)](),_0x1b27ea=this[_0x32c0aa(0x178)][_0x32c0aa(0x18a)](_0x15bb31);if(!_0x1b27ea)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1b27ea[_0x32c0aa(0x167)]();}[_0x423ac7(0x190)](){const _0x5eb332=_0x423ac7,_0xe884e7=this[_0x5eb332(0x173)]['get'](_0x483380[_0x5eb332(0x188)])['getCurrentUnitOfType'](_0x483380['UniverInstanceType']['UNIVER_SHEET']);if(!_0xe884e7)throw new Error(_0x5eb332(0x164));const _0x52412f=_0xe884e7['getUnitId'](),_0x1631c8=this[_0x5eb332(0x178)][_0x5eb332(0x18a)](_0x52412f);if(!_0x1631c8)throw new Error(_0x5eb332(0x175));_0x1631c8[_0x5eb332(0x190)]();}[_0x423ac7(0x181)](){const _0x3ec0e9=_0x423ac7,_0x49fef9=this[_0x3ec0e9(0x173)][_0x3ec0e9(0x18c)](_0x483380[_0x3ec0e9(0x188)])[_0x3ec0e9(0x16e)](_0x483380['UniverInstanceType'][_0x3ec0e9(0x172)]);if(!_0x49fef9)throw new Error(_0x3ec0e9(0x164));const _0x36f59b=_0x49fef9[_0x3ec0e9(0x17d)](),_0xb0eee4=this[_0x3ec0e9(0x178)]['getLiveShareCoordinatorSync'](_0x36f59b);if(!_0xb0eee4)throw new Error(_0x3ec0e9(0x175));_0xb0eee4[_0x3ec0e9(0x17e)]();}[_0x423ac7(0x16b)](){const _0x5a2552=_0x423ac7,_0x7a3a0a=this['_injector'][_0x5a2552(0x18c)](_0x483380[_0x5a2552(0x188)])[_0x5a2552(0x16e)](_0x483380[_0x5a2552(0x179)][_0x5a2552(0x172)]);if(!_0x7a3a0a)throw new Error('No\x20active\x20workbook\x20found.');const _0x15730e=_0x7a3a0a[_0x5a2552(0x17d)](),_0x2f4ccd=this[_0x5a2552(0x178)][_0x5a2552(0x18a)](_0x15730e);if(!_0x2f4ccd)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2f4ccd['stopPresenting']();}}_0x25f3b0['FUniver'][_0x423ac7(0x18f)](_0x41c76d);class _0x38c148 extends _0x25f3b0[_0x423ac7(0x184)]{get[_0x423ac7(0x165)](){return _0x4a0570['LiveShareStatus'];}}_0x25f3b0[_0x423ac7(0x184)][_0x423ac7(0x18f)](_0x38c148);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5a66db,_0x2e0fe9){const _0x3afc79=_0xd2f2,_0x1fe7c2=_0x5a66db();while(!![]){try{const _0xbbac4c=-parseInt(_0x3afc79(0x263))/0x1+parseInt(_0x3afc79(0x1eb))/0x2+-parseInt(_0x3afc79(0x1b0))/0x3+-parseInt(_0x3afc79(0x1c2))/0x4+-parseInt(_0x3afc79(0x266))/0x5+parseInt(_0x3afc79(0x20c))/0x6+parseInt(_0x3afc79(0x235))/0x7*(parseInt(_0x3afc79(0x1f2))/0x8);if(_0xbbac4c===_0x2e0fe9)break;else _0x1fe7c2['push'](_0x1fe7c2['shift']());}catch(_0x28c637){_0x1fe7c2['push'](_0x1fe7c2['shift']());}}}(_0x5e27,0xdee23),function(_0x2bd4fe,_0x423c1e){const _0x3a81b9=_0xd2f2;typeof exports==_0x3a81b9(0x195)&&typeof module<'u'?_0x423c1e(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==_0x3a81b9(0x252)&&define['amd']?define([_0x3a81b9(0x1bb),_0x3a81b9(0x183),'@univerjs/ui',_0x3a81b9(0x19b),_0x3a81b9(0x23d),_0x3a81b9(0x221),_0x3a81b9(0x22e),_0x3a81b9(0x204),_0x3a81b9(0x1b2),_0x3a81b9(0x1a0),_0x3a81b9(0x1f6),_0x3a81b9(0x25d)],_0x423c1e):(_0x2bd4fe=typeof globalThis<'u'?globalThis:_0x2bd4fe||self,_0x423c1e(_0x2bd4fe['UniverProLiveShare']={},_0x2bd4fe['UniverCore'],_0x2bd4fe[_0x3a81b9(0x197)],_0x2bd4fe[_0x3a81b9(0x256)],_0x2bd4fe[_0x3a81b9(0x199)],_0x2bd4fe[_0x3a81b9(0x256)],_0x2bd4fe[_0x3a81b9(0x210)],_0x2bd4fe[_0x3a81b9(0x207)],_0x2bd4fe[_0x3a81b9(0x19c)],_0x2bd4fe['rxjs'],_0x2bd4fe[_0x3a81b9(0x1a0)][_0x3a81b9(0x18f)],_0x2bd4fe['UniverSheetsUi']));}(this,function(_0x1fea00,_0x2e89dd,_0x5f5a79,_0x4745ae,_0x136f1d,_0x59afef,_0x3b7a48,_0x4fe92b,_0x3880cf,_0x29f1b6,_0x3b6202,_0x2b112b){'use strict';const _0x2d7c7a=_0xd2f2;var _0x4936d7=Object[_0x2d7c7a(0x1d4)],_0xc9b2ba=(_0x5664de,_0x5a1958,_0x1329e9)=>_0x5a1958 in _0x5664de?_0x4936d7(_0x5664de,_0x5a1958,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1329e9}):_0x5664de[_0x5a1958]=_0x1329e9,_0x26d76c=(_0x92e730,_0x34a471,_0x109213)=>_0xc9b2ba(_0x92e730,typeof _0x34a471!=_0x2d7c7a(0x21e)?_0x34a471+'':_0x34a471,_0x109213);function _0x2a87f4({ref:_0x4183fc,..._0x34524b}){const _0x57fc15=_0x2d7c7a,{icon:_0x3317cc,id:_0xd05c66,className:_0x25f6ff,extend:_0x470179,..._0x4724fd}=_0x34524b,_0x1b5abb=(_0x57fc15(0x1f4)+_0xd05c66+'\x20'+(_0x25f6ff||''))[_0x57fc15(0x245)](),_0x18bc1d=_0x59afef[_0x57fc15(0x1d8)]('_'+_0x1d6ef5());return _0x36886f(_0x3317cc,''+_0xd05c66,{'defIds':_0x3317cc[_0x57fc15(0x198)],'idSuffix':_0x18bc1d[_0x57fc15(0x255)]},{'ref':_0x4183fc,'className':_0x1b5abb,..._0x4724fd},_0x470179);}function _0x36886f(_0x29563c,_0x34a997,_0x18accd,_0x1c3ac5,_0x472df2){const _0x28d441=_0x2d7c7a;return _0x59afef['createElement'](_0x29563c[_0x28d441(0x238)],{'key':_0x34a997,..._0x518082(_0x29563c,_0x18accd,_0x472df2),..._0x1c3ac5},(_0x4b87b0(_0x29563c,_0x18accd)['children']||[])['map']((_0x2d3eb2,_0x276d05)=>_0x36886f(_0x2d3eb2,_0x34a997+'-'+_0x29563c[_0x28d441(0x238)]+'-'+_0x276d05,_0x18accd,void 0x0,_0x472df2)));}function _0x518082(_0x439a11,_0x50942f,_0x1c7239){const _0x46fb63=_0x2d7c7a,_0x3d0969={..._0x439a11[_0x46fb63(0x24d)]};_0x1c7239!=null&&_0x1c7239[_0x46fb63(0x19e)]&&_0x3d0969['fill']===_0x46fb63(0x19e)&&(_0x3d0969[_0x46fb63(0x250)]=_0x1c7239['colorChannel1']),_0x439a11[_0x46fb63(0x238)]===_0x46fb63(0x1aa)&&_0x3d0969['id']&&(_0x3d0969['id']=_0x3d0969['id']+_0x50942f[_0x46fb63(0x25b)]),Object['entries'](_0x3d0969)[_0x46fb63(0x1c4)](([_0x45df3f,_0x3e4246])=>{const _0x827f06=_0x46fb63;_0x45df3f===_0x827f06(0x1aa)&&typeof _0x3e4246==_0x827f06(0x209)&&(_0x3d0969[_0x45df3f]=_0x3e4246[_0x827f06(0x1be)](/url\(#(.*)\)/,_0x827f06(0x267)+_0x50942f['idSuffix']+')'));});const {defIds:_0x43999f}=_0x50942f;return!_0x43999f||_0x43999f[_0x46fb63(0x231)]===0x0||(_0x439a11[_0x46fb63(0x238)]==='use'&&_0x3d0969[_0x46fb63(0x1bd)]&&(_0x3d0969[_0x46fb63(0x1bd)]=_0x3d0969[_0x46fb63(0x1bd)]+_0x50942f[_0x46fb63(0x25b)]),Object[_0x46fb63(0x20d)](_0x3d0969)['forEach'](([_0x23ed56,_0x31f0e7])=>{const _0x1e4f10=_0x46fb63;typeof _0x31f0e7==_0x1e4f10(0x209)&&(_0x3d0969[_0x23ed56]=_0x31f0e7[_0x1e4f10(0x1be)](/url\(#(.*)\)/,'url(#$1'+_0x50942f['idSuffix']+')'));})),_0x3d0969;}function _0x4b87b0(_0x6ac2b8,_0x2c4492){const _0x5357ed=_0x2d7c7a;var _0x49cb29;const {defIds:_0x3e7921}=_0x2c4492;return!_0x3e7921||_0x3e7921[_0x5357ed(0x231)]===0x0?_0x6ac2b8:_0x6ac2b8[_0x5357ed(0x238)]===_0x5357ed(0x1da)&&((_0x49cb29=_0x6ac2b8['children'])!=null&&_0x49cb29[_0x5357ed(0x231)])?{..._0x6ac2b8,'children':_0x6ac2b8[_0x5357ed(0x185)][_0x5357ed(0x21a)](_0x114030=>typeof _0x114030[_0x5357ed(0x24d)]['id']==_0x5357ed(0x209)&&_0x3e7921&&_0x3e7921[_0x5357ed(0x1cd)](_0x114030[_0x5357ed(0x24d)]['id'])?{..._0x114030,'attrs':{..._0x114030[_0x5357ed(0x24d)],'id':_0x114030[_0x5357ed(0x24d)]['id']+_0x2c4492[_0x5357ed(0x25b)]}}:_0x114030)}:_0x6ac2b8;}function _0x1d6ef5(){const _0x2572f7=_0x2d7c7a;return Math[_0x2572f7(0x1e0)]()[_0x2572f7(0x22c)](0x24)[_0x2572f7(0x25f)](0x2,0x8);}_0x2a87f4[_0x2d7c7a(0x254)]='UniverIcon';const _0x5a2c70={'tag':'svg','attrs':{'xmlns':_0x2d7c7a(0x1f0),'fill':_0x2d7c7a(0x1e1),'viewBox':'0\x200\x2017\x2017','width':_0x2d7c7a(0x225),'height':'1em'},'children':[{'tag':_0x2d7c7a(0x201),'attrs':{'fill':'currentColor','d':_0x2d7c7a(0x1a4)}},{'tag':_0x2d7c7a(0x201),'attrs':{'fill':_0x2d7c7a(0x24a),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x2d7c7a(0x1ed),'clipRule':_0x2d7c7a(0x1ed)}}]},_0x5c44bd=_0x59afef[_0x2d7c7a(0x1a6)](function(_0x32d97a,_0x383aef){const _0x430fac=_0x2d7c7a;return _0x59afef[_0x430fac(0x208)](_0x2a87f4,Object[_0x430fac(0x222)]({},_0x32d97a,{'id':'live-share-icon','ref':_0x383aef,'icon':_0x5a2c70}));});_0x5c44bd['displayName']=_0x2d7c7a(0x232);class _0x45550f extends _0x2e89dd[_0x2d7c7a(0x1dd)]{constructor(){const _0x108b6e=_0x2d7c7a;super(...arguments),_0x26d76c(this,_0x108b6e(0x229),new Set()),_0x26d76c(this,_0x108b6e(0x24c),new Set());}[_0x2d7c7a(0x21b)](_0x200f92){const _0x2d1429=_0x2d7c7a;return this[_0x2d1429(0x229)][_0x2d1429(0x1e3)](_0x200f92),_0x2e89dd['toDisposable'](()=>this[_0x2d1429(0x229)][_0x2d1429(0x249)](_0x200f92));}[_0x2d7c7a(0x1b9)](_0xa759fc){const _0x8047f6=_0x2d7c7a;return this[_0x8047f6(0x24c)][_0x8047f6(0x1e3)](_0xa759fc),_0x2e89dd[_0x8047f6(0x22b)](()=>this[_0x8047f6(0x24c)][_0x8047f6(0x249)](_0xa759fc));}[_0x2d7c7a(0x1ca)](_0x36849d){const _0x265f6a=_0x2d7c7a;return this[_0x265f6a(0x229)]['has'](_0x36849d);}[_0x2d7c7a(0x22a)](_0x218a00){const _0x581b0f=_0x2d7c7a;return Array[_0x581b0f(0x1d2)](this[_0x581b0f(0x24c)])[_0x581b0f(0x21a)](_0x8d5bdf=>_0x8d5bdf(_0x218a00));}}var _0x208f7c=Object['getOwnPropertyDescriptor'],_0x1683f3=(_0x17e62d,_0x1e8719,_0x11a431,_0x59262b)=>{const _0x283ac5=_0x2d7c7a;for(var _0x3eb465=_0x59262b>0x1?void 0x0:_0x59262b?_0x208f7c(_0x1e8719,_0x11a431):_0x1e8719,_0xc2b6cf=_0x17e62d[_0x283ac5(0x231)]-0x1,_0x1f03e5;_0xc2b6cf>=0x0;_0xc2b6cf--)(_0x1f03e5=_0x17e62d[_0xc2b6cf])&&(_0x3eb465=_0x1f03e5(_0x3eb465)||_0x3eb465);return _0x3eb465;},_0x386c73=(_0x5c6feb,_0x4c24d6)=>(_0x294c5b,_0xed3798)=>_0x4c24d6(_0x294c5b,_0xed3798,_0x5c6feb);_0x1fea00[_0x2d7c7a(0x1fe)]=class extends _0x2e89dd[_0x2d7c7a(0x21d)]{constructor(_0x43e969,_0x433044,_0x54059a){const _0x3bcff1=_0x2d7c7a;super(),_0x26d76c(this,_0x3bcff1(0x1fa),new Map()),(this[_0x3bcff1(0x1f8)]=_0x43e969,this['_injector']=_0x433044,this[_0x3bcff1(0x1e9)]=_0x54059a,this['_init']());}async[_0x2d7c7a(0x1c8)](_0x5afc20){const _0x168e43=_0x2d7c7a;return this[_0x168e43(0x1fa)][_0x168e43(0x1b1)](_0x5afc20)||await this[_0x168e43(0x214)](_0x5afc20),this['_entities'][_0x168e43(0x1de)](_0x5afc20);}['getLiveShareCoordinatorSync'](_0x1b2b03){const _0x10ad58=_0x2d7c7a;var _0x5ec9ec;return(_0x5ec9ec=this[_0x10ad58(0x1fa)]['get'](_0x1b2b03))!=null?_0x5ec9ec:null;}['_init'](){const _0x452e15=_0x2d7c7a;this[_0x452e15(0x1f8)][_0x452e15(0x223)](_0x2e89dd[_0x452e15(0x1e5)][_0x452e15(0x1ad)])[_0x452e15(0x213)](_0x3b6202[_0x452e15(0x24f)](this[_0x452e15(0x1d5)]))[_0x452e15(0x193)](async _0xc50dc3=>{const _0x23ee89=_0x452e15,_0x31d40f=_0xc50dc3[_0x23ee89(0x216)]();this[_0x23ee89(0x1fa)][_0x23ee89(0x1b1)](_0x31d40f)||this[_0x23ee89(0x214)](_0x31d40f);}),this['_univerInstanceService'][_0x452e15(0x215)](_0x2e89dd['UniverInstanceType'][_0x452e15(0x1ad)])[_0x452e15(0x213)](_0x3b6202['takeUntil'](this[_0x452e15(0x1d5)]))[_0x452e15(0x193)](_0x532b65=>{const _0x4f8be4=_0x452e15,_0x4f495c=_0x532b65[_0x4f8be4(0x216)](),_0x36abba=this[_0x4f8be4(0x1fa)][_0x4f8be4(0x1de)](_0x4f495c);_0x36abba==null||_0x36abba['dispose']();});}async['_startLiveShareCoordinator'](_0x4ecd54){const _0x19ccc1=_0x2d7c7a,_0x5e782d=await this[_0x19ccc1(0x1e9)][_0x19ccc1(0x224)](_0x4ecd54),_0x17cce1=this[_0x19ccc1(0x262)]['createInstance'](_0x1fea00[_0x19ccc1(0x219)],_0x4ecd54,_0x5e782d);return _0x17cce1[_0x19ccc1(0x23b)](),this[_0x19ccc1(0x1fa)]['set'](_0x4ecd54,_0x17cce1),_0x17cce1;}},_0x1fea00[_0x2d7c7a(0x1fe)]=_0x1683f3([_0x386c73(0x0,_0x2e89dd[_0x2d7c7a(0x218)]),_0x386c73(0x1,_0x2e89dd[_0x2d7c7a(0x1a7)](_0x2e89dd[_0x2d7c7a(0x202)])),_0x386c73(0x2,_0x2e89dd[_0x2d7c7a(0x1a7)](_0x4fe92b[_0x2d7c7a(0x1df)]))],_0x1fea00[_0x2d7c7a(0x1fe)]);var _0x1915d4=(_0x5002f9=>(_0x5002f9[_0x2d7c7a(0x239)]=_0x2d7c7a(0x1ce),_0x5002f9['IDLE']=_0x2d7c7a(0x23c),_0x5002f9[_0x2d7c7a(0x1ac)]='following',_0x5002f9[_0x2d7c7a(0x203)]='not-following',_0x5002f9[_0x2d7c7a(0x21f)]=_0x2d7c7a(0x1b3),_0x5002f9))(_0x1915d4||{});const _0x421d10=_0x2d7c7a(0x20e),_0x2498f5=0xc8;_0x1fea00[_0x2d7c7a(0x219)]=class extends _0x2e89dd[_0x2d7c7a(0x21d)]{constructor(_0x520fb0,_0x23fda0,_0x347eb6,_0xc3410b,_0x352350){const _0x4746ed=_0x2d7c7a;super(),_0x26d76c(this,_0x4746ed(0x206),new _0x29f1b6[(_0x4746ed(0x1ea))](_0x4746ed(0x23c))),_0x26d76c(this,_0x4746ed(0x220),this[_0x4746ed(0x206)]['asObservable']()),_0x26d76c(this,_0x4746ed(0x1e8),!0x1),_0x26d76c(this,_0x4746ed(0x1a1),null),_0x26d76c(this,_0x4746ed(0x265),null),(this[_0x4746ed(0x18c)]=_0x520fb0,this[_0x4746ed(0x227)]=_0x23fda0,this[_0x4746ed(0x1f1)]=_0x347eb6,this[_0x4746ed(0x1b8)]=_0xc3410b,this[_0x4746ed(0x1ec)]=_0x352350);}get[_0x2d7c7a(0x25e)](){const _0x1a6139=_0x2d7c7a;return this[_0x1a6139(0x206)][_0x1a6139(0x264)]();}['dispose'](){const _0x545c14=_0x2d7c7a;var _0x43cd88;(_0x43cd88=this[_0x545c14(0x1a1)])==null||_0x43cd88[_0x545c14(0x25a)](),this[_0x545c14(0x206)][_0x545c14(0x234)]('idle'),this[_0x545c14(0x206)][_0x545c14(0x1c5)]();}[_0x2d7c7a(0x1a3)](){const _0x2c54a4=_0x2d7c7a;return this[_0x2c54a4(0x25e)];}[_0x2d7c7a(0x23b)](){const _0x349a88=_0x2d7c7a;this[_0x349a88(0x1e8)]||(this[_0x349a88(0x1e8)]=!0x0,this[_0x349a88(0x227)][_0x349a88(0x194)][_0x349a88(0x213)](_0x3b6202['takeUntil'](this[_0x349a88(0x1d5)]))['subscribe'](_0x10ea5f=>{const _0x21f86c=_0x349a88;switch(_0x10ea5f){case _0x4fe92b[_0x21f86c(0x1fb)][_0x21f86c(0x239)]:this['_handleOffline']();break;case _0x4fe92b[_0x21f86c(0x1fb)][_0x21f86c(0x1db)]:this[_0x21f86c(0x1f9)]();break;}}),this[_0x349a88(0x227)][_0x349a88(0x257)][_0x349a88(0x213)](_0x3b6202[_0x349a88(0x24f)](this['dispose$']))[_0x349a88(0x193)](_0x790018=>{const _0x413f86=_0x349a88,{eventID:_0x234ad7}=_0x790018;switch(_0x234ad7){case _0x3b7a48[_0x413f86(0x189)]['LIVESHARE_NEW_HOST']:this[_0x413f86(0x1d3)](_0x790018);break;case _0x3b7a48[_0x413f86(0x189)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x790018);break;case _0x3b7a48['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x413f86(0x243)]();break;case _0x3b7a48[_0x413f86(0x189)][_0x413f86(0x244)]:this['_handleNewChangeSets'](_0x790018);break;}}));}[_0x2d7c7a(0x1a2)](){const _0x299cee=_0x2d7c7a;this[_0x299cee(0x227)][_0x299cee(0x1f5)]({'eventID':_0x3b7a48[_0x299cee(0x189)][_0x299cee(0x1d7)],'data':{'unitID':this['_unitID'],'userID':this[_0x299cee(0x227)][_0x299cee(0x1c9)]()}},this['_unitID']);}[_0x2d7c7a(0x24b)](){const _0x5e365e=_0x2d7c7a;this[_0x5e365e(0x25e)]===_0x5e365e(0x1b3)&&(this[_0x5e365e(0x206)][_0x5e365e(0x234)](_0x5e365e(0x23c)),this[_0x5e365e(0x227)][_0x5e365e(0x1f5)]({'eventID':_0x3b7a48[_0x5e365e(0x189)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x5e365e(0x18c)]));}[_0x2d7c7a(0x23a)](){const _0x241ef5=_0x2d7c7a;this['_status']===_0x241ef5(0x217)&&(this['_status$']['next'](_0x241ef5(0x24e)),this[_0x241ef5(0x1d6)]());}[_0x2d7c7a(0x1b6)](){const _0x555997=_0x2d7c7a;this['_status']===_0x555997(0x24e)&&this[_0x555997(0x212)]();}[_0x2d7c7a(0x1d3)](_0x5e646a){const _0x51235c=_0x2d7c7a,{presenter:_0x13b0d1}=_0x5e646a[_0x51235c(0x1c6)],_0x281e8e=this[_0x51235c(0x227)]['getMemberID']();this[_0x51235c(0x265)]=_0x13b0d1,_0x13b0d1===_0x281e8e?(this[_0x51235c(0x212)](),this['_startPresenting']()):this[_0x51235c(0x25e)]!==_0x51235c(0x217)&&(this[_0x51235c(0x21c)](),this[_0x51235c(0x1d6)]());}[_0x2d7c7a(0x1c0)](){const _0x45d13d=_0x2d7c7a,_0x51e2a0={'eventID':_0x3b7a48[_0x45d13d(0x189)][_0x45d13d(0x230)]};this[_0x45d13d(0x227)][_0x45d13d(0x1f5)](_0x51e2a0,this[_0x45d13d(0x18c)]);}['_handleTerminate'](){const _0x21dda2=_0x2d7c7a;this[_0x21dda2(0x265)]=null,this['_status']!==_0x21dda2(0x1b3)&&this[_0x21dda2(0x1cf)]();}[_0x2d7c7a(0x259)](_0x12d01b){const _0x33c1e1=_0x2d7c7a;if(this[_0x33c1e1(0x25e)]===_0x33c1e1(0x24e)&&this[_0x33c1e1(0x265)]===_0x12d01b[_0x33c1e1(0x1c6)][_0x33c1e1(0x19d)]){const _0x2a75a7=_0x3b7a48['parseProtocolChangeset'](_0x12d01b['data'])['mutations'][_0x33c1e1(0x19f)]()['find'](_0x2f1de5=>_0x2f1de5['id']===_0x3880cf[_0x33c1e1(0x1bf)]['id']);if(_0x2a75a7){const _0x5c29a0=_0x2a75a7[_0x33c1e1(0x246)]['unitId'],_0x5a1791=_0x2a75a7[_0x33c1e1(0x246)][_0x33c1e1(0x1a9)]['id'];setTimeout(()=>{const _0x2d8f73=_0x33c1e1;this[_0x2d8f73(0x1ec)][_0x2d8f73(0x1ba)](_0x3880cf[_0x2d8f73(0x20b)]['id'],{'unitId':_0x5c29a0,'subUnitId':_0x5a1791},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x24d307=_0x2d7c7a;this[_0x24d307(0x206)][_0x24d307(0x234)]('presenting');const _0x2a871a=new Map(),_0x1025f5=this[_0x24d307(0x1a1)]=new _0x2e89dd[(_0x24d307(0x20a))]();_0x1025f5[_0x24d307(0x1e3)](_0x2e89dd[_0x24d307(0x22b)](()=>{const _0x21b42f=_0x24d307;_0x2a871a[_0x21b42f(0x1c4)](_0x31bf99=>_0x31bf99[_0x21b42f(0x1c5)]()),_0x2a871a[_0x21b42f(0x1d1)]();})),_0x1025f5[_0x24d307(0x1e3)](this['_commandService'][_0x24d307(0x188)](_0x469ec4=>{const _0x36e458=_0x24d307;var _0x20bc51;if(_0x469ec4['type']!==_0x2e89dd[_0x36e458(0x240)]['OPERATION']||!this[_0x36e458(0x1b8)][_0x36e458(0x1ca)](_0x469ec4['id']))return;const {id:_0x48b2f6}=_0x469ec4;let _0x155fa7;_0x2a871a[_0x36e458(0x1b1)](_0x48b2f6)?_0x155fa7=_0x2a871a[_0x36e458(0x1de)](_0x48b2f6):(_0x155fa7=new _0x29f1b6[(_0x36e458(0x18a))](),_0x2a871a[_0x36e458(0x260)](_0x48b2f6,_0x155fa7),_0x155fa7[_0x36e458(0x213)](_0x3b6202[_0x36e458(0x196)]((_0x20bc51=this[_0x36e458(0x1f1)][_0x36e458(0x205)](_0x421d10))!=null?_0x20bc51:_0x2498f5,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x7da0f1=>{const _0x1485ed=_0x36e458;this[_0x1485ed(0x227)][_0x1485ed(0x1f5)]({'eventID':_0x3b7a48[_0x1485ed(0x189)][_0x1485ed(0x182)],'data':{'unitID':this[_0x1485ed(0x18c)],'operations':{[_0x7da0f1['id']]:{'id':_0x7da0f1['id'],'params':JSON[_0x1485ed(0x1fc)](_0x7da0f1['params'])}}}},this[_0x1485ed(0x18c)]);})),_0x155fa7[_0x36e458(0x234)](_0x469ec4);})),this['_liveShareService'][_0x24d307(0x22a)](this[_0x24d307(0x18c)])[_0x24d307(0x1c4)](_0x260019=>this['_collabSession'][_0x24d307(0x1f5)]({'eventID':_0x3b7a48[_0x24d307(0x189)][_0x24d307(0x182)],'data':{'unitID':this[_0x24d307(0x18c)],'operations':{[_0x260019['id']]:{'id':_0x260019['id'],'params':JSON[_0x24d307(0x1fc)](_0x260019[_0x24d307(0x246)])}}}},this[_0x24d307(0x18c)]));}[_0x2d7c7a(0x21c)](){const _0x2248dc=_0x2d7c7a;var _0x1e715f;this['_status$'][_0x2248dc(0x234)](_0x2248dc(0x23c)),(_0x1e715f=this[_0x2248dc(0x1a1)])==null||_0x1e715f[_0x2248dc(0x25a)](),this['_commandDisposable']=null;}[_0x2d7c7a(0x1d6)](){const _0x15063f=_0x2d7c7a;var _0xd397ba;(_0xd397ba=this['_commandDisposable'])==null||_0xd397ba['dispose'](),this['_status$'][_0x15063f(0x234)](_0x15063f(0x24e));}[_0x2d7c7a(0x1cf)](){const _0x269bc0=_0x2d7c7a;var _0xf4af2;this['_status$'][_0x269bc0(0x234)](_0x269bc0(0x23c)),(_0xf4af2=this['_commandDisposable'])==null||_0xf4af2['dispose'](),this['_commandDisposable']=null;}[_0x2d7c7a(0x212)](){const _0x2f1bde=_0x2d7c7a;var _0x128ed3;this['_status$']['next']('not-following'),(_0x128ed3=this[_0x2f1bde(0x1a1)])==null||_0x128ed3['dispose']();}[_0x2d7c7a(0x1d9)](_0xa6efd6){const _0x58ee74=_0x2d7c7a;if([_0x58ee74(0x1b3),_0x58ee74(0x217),_0x58ee74(0x1ce)][_0x58ee74(0x1cd)](this[_0x58ee74(0x25e)])||!_0xa6efd6['data'][_0x58ee74(0x1b5)]||_0xa6efd6[_0x58ee74(0x1c6)][_0x58ee74(0x1b5)]===this[_0x58ee74(0x227)][_0x58ee74(0x1c9)]())return;this[_0x58ee74(0x25e)]===_0x58ee74(0x23c)&&this['_startFollowing']();const _0x392a2d=_0xa6efd6[_0x58ee74(0x1c6)][_0x58ee74(0x1f7)];Object[_0x58ee74(0x233)](_0x392a2d)[_0x58ee74(0x1c4)](_0x538cdd=>{const _0xbd6716=_0x58ee74;this[_0xbd6716(0x1ec)][_0xbd6716(0x1ba)](_0x538cdd['id'],_0x538cdd[_0xbd6716(0x246)]?JSON['parse'](_0x538cdd[_0xbd6716(0x246)]):null,{'fromCollab':!0x0});});}[_0x2d7c7a(0x25c)](){const _0x3fe3b5=_0x2d7c7a;var _0x33234a;this['_status$'][_0x3fe3b5(0x234)](_0x3fe3b5(0x1ce)),(_0x33234a=this['_commandDisposable'])==null||_0x33234a['dispose']();}[_0x2d7c7a(0x1f9)](){const _0x239b65=_0x2d7c7a;this['_status$'][_0x239b65(0x234)](_0x239b65(0x23c)),this[_0x239b65(0x1c0)]();}},_0x1fea00[_0x2d7c7a(0x219)]=_0x1683f3([_0x386c73(0x2,_0x2e89dd[_0x2d7c7a(0x1cb)]),_0x386c73(0x3,_0x2e89dd[_0x2d7c7a(0x1a7)](_0x45550f)),_0x386c73(0x4,_0x2e89dd['ICommandService'])],_0x1fea00[_0x2d7c7a(0x219)]);function _0x2fc5cf(){const _0x5913e2=_0x2d7c7a,_0xf41b19=_0x5f5a79[_0x5913e2(0x237)](_0x1fea00[_0x5913e2(0x1fe)]),_0x48d2e9=_0x5f5a79[_0x5913e2(0x237)](_0x2e89dd['IUniverInstanceService']),_0x27b7c6=_0x5f5a79['useObservable'](()=>_0x48d2e9[_0x5913e2(0x1c7)](_0x2e89dd['UniverInstanceType'][_0x5913e2(0x1ad)]),void 0x0,!0x1,[]),[_0x6a748c,_0x580c3a]=_0x59afef[_0x5913e2(0x187)](null),[_0x180285,_0x49a759]=_0x59afef[_0x5913e2(0x187)](_0x1915d4[_0x5913e2(0x22f)]),_0x1c91c4=_0x59afef[_0x5913e2(0x1d8)](null);return _0x59afef[_0x5913e2(0x1e6)](()=>(_0x27b7c6&&_0xf41b19['getLiveShareCoordinator'](_0x27b7c6[_0x5913e2(0x216)]())[_0x5913e2(0x1c1)](_0x54c4c3=>{_0x580c3a(_0x54c4c3),_0x1c91c4['current']=_0x54c4c3['status$']['subscribe'](_0x41a43a=>{_0x49a759(_0x41a43a);});}),()=>{const _0x2057f4=_0x5913e2;var _0x2b539d;(_0x2b539d=_0x1c91c4[_0x2057f4(0x255)])==null||_0x2b539d[_0x2057f4(0x258)](),_0x1c91c4[_0x2057f4(0x255)]=null;}),[_0x27b7c6,_0xf41b19]),_0x6a748c?_0x4745ae[_0x5913e2(0x1ee)](_0x136f1d['Dropdown'],{'align':'end','disabled':_0x180285===_0x1915d4['OFFLINE'],'className':_0x5913e2(0x192),'overlay':_0x4745ae[_0x5913e2(0x1ee)](_0x28bb8e,{'status':_0x180285,'coordinator':_0x6a748c}),'children':_0x4745ae['jsx'](_0x5913e2(0x19a),{'className':_0x136f1d['clsx'](_0x5913e2(0x23f),{'univer-cursor-not-allowed':_0x180285===_0x1915d4['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x180285!==_0x1915d4[_0x5913e2(0x239)]}),'type':_0x5913e2(0x19a),'children':_0x4745ae[_0x5913e2(0x1ee)](_0x5c44bd,{'className':_0x5913e2(0x186)})})}):null;}function _0x28bb8e(_0x29bbde){const _0x2e6ec3=_0x2d7c7a,{status:_0x33e953,coordinator:_0x3bc0fa}=_0x29bbde;switch(_0x33e953){case _0x1915d4['IDLE']:return _0x4745ae[_0x2e6ec3(0x1ee)](_0x1fd70a,{'coordinator':_0x3bc0fa});case _0x1915d4['FOLLOWING']:return _0x4745ae['jsx'](_0x4f7551,{'coordinator':_0x3bc0fa});case _0x1915d4[_0x2e6ec3(0x203)]:return _0x4745ae['jsx'](_0x469ec6,{'coordinator':_0x3bc0fa});case _0x1915d4[_0x2e6ec3(0x239)]:return _0x4745ae[_0x2e6ec3(0x1ee)](_0x2f5ee1,{});case _0x1915d4[_0x2e6ec3(0x21f)]:return _0x4745ae[_0x2e6ec3(0x1ee)](_0x45f69f,{'coordinator':_0x3bc0fa});default:return null;}}function _0x1fd70a(_0x5bda39){const _0x2bdef1=_0x2d7c7a,{coordinator:_0x442b53}=_0x5bda39;return _0x4745ae[_0x2bdef1(0x1b4)](_0x4745ae['Fragment'],{'children':[_0x4745ae['jsx'](_0x2bdef1(0x20f),{'className':_0x2bdef1(0x1e2),'children':'Present\x20this\x20document'}),_0x4745ae['jsx'](_0x136f1d[_0x2bdef1(0x1fd)],{'onClick':()=>_0x442b53[_0x2bdef1(0x1a2)](),'children':_0x2bdef1(0x1ab)})]});}function _0x4f7551(_0x4be6d6){const _0x690adf=_0x2d7c7a,{coordinator:_0x651557}=_0x4be6d6;return _0x4745ae[_0x690adf(0x1b4)](_0x4745ae[_0x690adf(0x200)],{'children':[_0x4745ae[_0x690adf(0x1ee)](_0x690adf(0x20f),{'className':_0x690adf(0x1e2),'children':_0x690adf(0x261)}),_0x4745ae[_0x690adf(0x1ee)](_0x136f1d['Button'],{'onClick':()=>_0x651557[_0x690adf(0x1b6)](),'children':_0x690adf(0x241)})]});}function _0x469ec6(_0x307937){const _0x545be8=_0x2d7c7a,{coordinator:_0x306f40}=_0x307937;return _0x4745ae[_0x545be8(0x1b4)](_0x4745ae[_0x545be8(0x200)],{'children':[_0x4745ae['jsx'](_0x545be8(0x20f),{'className':_0x545be8(0x1e2),'children':_0x545be8(0x18e)}),_0x4745ae[_0x545be8(0x1ee)](_0x136f1d['Button'],{'variant':_0x545be8(0x1c3),'onClick':()=>_0x306f40['startFollowing'](),'children':_0x545be8(0x242)})]});}function _0x45f69f(_0x2c189c){const _0x13bf7e=_0x2d7c7a,{coordinator:_0x4f9f6c}=_0x2c189c;return _0x4745ae[_0x13bf7e(0x1b4)](_0x4745ae[_0x13bf7e(0x200)],{'children':[_0x4745ae['jsx'](_0x13bf7e(0x20f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x13bf7e(0x248)}),_0x4745ae[_0x13bf7e(0x1ee)](_0x136f1d['Button'],{'variant':_0x13bf7e(0x1bc),'onClick':()=>_0x4f9f6c[_0x13bf7e(0x24b)](),'children':'Stop\x20presenting'})]});}function _0x2f5ee1(){const _0x14b1d2=_0x2d7c7a;return _0x4745ae[_0x14b1d2(0x1ee)](_0x4745ae['Fragment'],{'children':_0x14b1d2(0x1a8)});}var _0x1c910e=Object[_0x2d7c7a(0x1d0)],_0x53903f=(_0x39833e,_0x56ea64,_0x4c4cc4,_0x263794)=>{const _0x36046c=_0x2d7c7a;for(var _0x5095b9=_0x263794>0x1?void 0x0:_0x263794?_0x1c910e(_0x56ea64,_0x4c4cc4):_0x56ea64,_0x4b1ee6=_0x39833e[_0x36046c(0x231)]-0x1,_0xa2435;_0x4b1ee6>=0x0;_0x4b1ee6--)(_0xa2435=_0x39833e[_0x4b1ee6])&&(_0x5095b9=_0xa2435(_0x5095b9)||_0x5095b9);return _0x5095b9;},_0x2044a5=(_0x13a39b,_0x117a7b)=>(_0x1d14a3,_0x3bdab3)=>_0x117a7b(_0x1d14a3,_0x3bdab3,_0x13a39b);_0x1fea00[_0x2d7c7a(0x251)]=class extends _0x2e89dd[_0x2d7c7a(0x1dd)]{constructor(_0x300ee9,_0x25c661){const _0x306108=_0x2d7c7a;super(),this[_0x306108(0x262)]=_0x300ee9,this[_0x306108(0x1e4)]=_0x25c661,this[_0x306108(0x1ae)]();}['_mountLiveShare'](){const _0x489e1e=_0x2d7c7a;this[_0x489e1e(0x18b)](this[_0x489e1e(0x1e4)][_0x489e1e(0x181)](_0x5f5a79[_0x489e1e(0x1a5)][_0x489e1e(0x236)],()=>_0x5f5a79[_0x489e1e(0x184)](_0x2fc5cf,this[_0x489e1e(0x262)])));}},_0x1fea00['DesktopLiveShareController']=_0x53903f([_0x2044a5(0x0,_0x2e89dd[_0x2d7c7a(0x1a7)](_0x2e89dd[_0x2d7c7a(0x202)])),_0x2044a5(0x1,_0x5f5a79[_0x2d7c7a(0x1dc)])],_0x1fea00['DesktopLiveShareController']);const _0xcbc583='live-share.config',_0x52fae0={};var _0x341aca=Object[_0x2d7c7a(0x1d0)],_0x5e37be=(_0x3557e5,_0x38bf57,_0x4917ae,_0x187ccc)=>{for(var _0x23d354=_0x187ccc>0x1?void 0x0:_0x187ccc?_0x341aca(_0x38bf57,_0x4917ae):_0x38bf57,_0x21d28d=_0x3557e5['length']-0x1,_0x18fa6e;_0x21d28d>=0x0;_0x21d28d--)(_0x18fa6e=_0x3557e5[_0x21d28d])&&(_0x23d354=_0x18fa6e(_0x23d354)||_0x23d354);return _0x23d354;},_0x5d8f8a=(_0x5b1eef,_0x73ff89)=>(_0x4edf6a,_0x2bf821)=>_0x73ff89(_0x4edf6a,_0x2bf821,_0x5b1eef);let _0x7effa6=class extends _0x2e89dd[_0x2d7c7a(0x1dd)]{constructor(_0x55a913){const _0x21661e=_0x2d7c7a;super(),this['_liveShareService']=_0x55a913,this[_0x21661e(0x1e8)]();}[_0x2d7c7a(0x1e8)](){const _0x5ec356=_0x2d7c7a;[_0x2b112b[_0x5ec356(0x226)]['id'],_0x2b112b['SetScrollOperation']['id'],_0x3880cf[_0x5ec356(0x20b)]['id']][_0x5ec356(0x1c4)](_0x35c81b=>{const _0x27aa45=_0x5ec356;this[_0x27aa45(0x18b)](this['_liveShareService'][_0x27aa45(0x21b)](_0x35c81b));});}};_0x7effa6=_0x5e37be([_0x5d8f8a(0x0,_0x2e89dd[_0x2d7c7a(0x1a7)](_0x45550f))],_0x7effa6);var _0x3a32bd=Object['defineProperty'],_0x3c9e03=Object[_0x2d7c7a(0x1d0)],_0x280582=(_0x1d0303,_0x1d2def,_0x4180ba)=>_0x1d2def in _0x1d0303?_0x3a32bd(_0x1d0303,_0x1d2def,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4180ba}):_0x1d0303[_0x1d2def]=_0x4180ba,_0x1473a2=(_0x915c12,_0x54ef97,_0x343368,_0x26a73f)=>{for(var _0x282633=_0x26a73f>0x1?void 0x0:_0x26a73f?_0x3c9e03(_0x54ef97,_0x343368):_0x54ef97,_0x5caff1=_0x915c12['length']-0x1,_0xc0f6fe;_0x5caff1>=0x0;_0x5caff1--)(_0xc0f6fe=_0x915c12[_0x5caff1])&&(_0x282633=_0xc0f6fe(_0x282633)||_0x282633);return _0x282633;},_0x627b24=(_0x5174d6,_0x31b37c)=>(_0x136ef6,_0x27cac3)=>_0x31b37c(_0x136ef6,_0x27cac3,_0x5174d6),_0x58da5f=(_0x267212,_0x21eeb9,_0x63c1f3)=>_0x280582(_0x267212,typeof _0x21eeb9!=_0x2d7c7a(0x21e)?_0x21eeb9+'':_0x21eeb9,_0x63c1f3);const _0x59cfe0=_0x2d7c7a(0x1b7);_0x1fea00['UniverLiveSharePlugin']=class extends _0x2e89dd[_0x2d7c7a(0x23e)]{constructor(_0x4d729d=_0x52fae0,_0x4b9306,_0x1e1c44){const _0x1c9c81=_0x2d7c7a;super(),this['_config']=_0x4d729d,this[_0x1c9c81(0x262)]=_0x4b9306,this['_configService']=_0x1e1c44;const {..._0x19f2a4}=_0x2e89dd[_0x1c9c81(0x228)]({},_0x52fae0,this['_config']);this[_0x1c9c81(0x1f1)]['setConfig'](_0xcbc583,_0x19f2a4);}[_0x2d7c7a(0x247)](){const _0x2cbb9b=_0x2d7c7a;_0x2e89dd[_0x2cbb9b(0x1cc)](this[_0x2cbb9b(0x262)],_0x2e89dd['mergeOverrideWithDependencies']([[_0x45550f],[_0x1fea00[_0x2cbb9b(0x1fe)]],[_0x7effa6],[_0x1fea00['DesktopLiveShareController']]],this[_0x2cbb9b(0x22d)]['override'])),_0x2e89dd[_0x2cbb9b(0x253)](this['_injector'],[[_0x7effa6]]);}[_0x2d7c7a(0x211)](){const _0x140db6=_0x2d7c7a;_0x2e89dd[_0x140db6(0x253)](this[_0x140db6(0x262)],[[_0x1fea00[_0x140db6(0x251)]]]);}},_0x58da5f(_0x1fea00[_0x2d7c7a(0x1ef)],_0x2d7c7a(0x1ff),_0x2e89dd[_0x2d7c7a(0x1e5)][_0x2d7c7a(0x190)]),_0x58da5f(_0x1fea00['UniverLiveSharePlugin'],_0x2d7c7a(0x1f3),_0x59cfe0),_0x1fea00[_0x2d7c7a(0x1ef)]=_0x1473a2([_0x2e89dd['DependentOn'](_0x4fe92b['UniverCollaborationClientPlugin']),_0x627b24(0x1,_0x2e89dd[_0x2d7c7a(0x1a7)](_0x2e89dd[_0x2d7c7a(0x202)])),_0x627b24(0x2,_0x2e89dd[_0x2d7c7a(0x1cb)])],_0x1fea00[_0x2d7c7a(0x1ef)]),_0x1fea00['LiveShare']=_0x2fc5cf,_0x1fea00[_0x2d7c7a(0x1e7)]=_0x45550f,_0x1fea00[_0x2d7c7a(0x18d)]=_0x1915d4,Object[_0x2d7c7a(0x1d4)](_0x1fea00,Symbol[_0x2d7c7a(0x191)],{'value':_0x2d7c7a(0x1af)});}));function _0xd2f2(_0x5a2e0c,_0x7f917b){_0x5a2e0c=_0x5a2e0c-0x181;const _0x5e27ad=_0x5e27();let _0xd2f2a4=_0x5e27ad[_0x5a2e0c];return _0xd2f2a4;}function _0x5e27(){const _0x216bd7=['univer-border-none\x20univer-text-gray-600\x20univer-outline-none','CommandType','Stop\x20following','Start\x20following','_handleTerminate','NEW_CHANGESETS','trim','params','onStarting','You\x27re\x20presenting\x20the\x20document','delete','currentColor','stopPresenting','_reporters','attrs','following','takeUntil','fill','DesktopLiveShareController','function','touchDependencies','displayName','current','React','event$','unsubscribe','_handleNewChangeSets','dispose','idSuffix','_handleOffline','@univerjs/sheets-ui','_status','substring','set','You\x27re\x20following\x20the\x20presenter','_injector','541230EEDuiI','getValue','_presenter','3247960LSRJft','url(#$1','registerComponent','LIVESHARE_OPERATION','@univerjs/core','connectInjector','children','univer-size-4','useState','onCommandExecuted','CollaborationEvent','Subject','disposeWithMe','_unitID','LiveShareStatus','You\x27re\x20not\x20following\x20the\x20presenter','operators','UNIVER_UNKNOWN','toStringTag','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','sessionStatus$','object','throttleTime','UniverUi','defIds','UniverDesign','button','react/jsx-runtime','UniverSheets','memberID','colorChannel1','reverse','rxjs','_commandDisposable','tryStartPresenting','getStatus','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','BuiltInUIPart','forwardRef','Inject','You\x27are\x20offline.','sheet','mask','Start','FOLLOWING','UNIVER_SHEET','_mountLiveShare','Module','4722609nafjoT','has','@univerjs/sheets','presenting','jsxs','presenter','stopFollowing','UNIVER_LIVE_SHARE_PLUGIN','_liveShareService','registerInitialStateReporter','executeCommand','exports','default','xlink:href','replace','InsertSheetMutation','_fetchOperations','then','6221092LGJWby','text','forEach','complete','data','getCurrentTypeOfUnit$','getLiveShareCoordinator','getMemberID','shouldShareOperation','IConfigService','registerDependencies','includes','offline','_beIdle','getOwnPropertyDescriptor','clear','from','_handleNewHost','defineProperty','dispose$','_startFollowing','LIVESHARE_REQUEST_HOST','useRef','_handleOperation','defs','ONLINE','IUIPartsService','Disposable','get','CollaborationSessionService','random','none','univer-mb-3\x20univer-w-full\x20univer-text-sm','add','_uiPartsService','UniverInstanceType','useEffect','LiveShareService','_init','_collabSessionService','BehaviorSubject','578854KmkZgG','_commandService','evenodd','jsx','UniverLiveSharePlugin','http://www.w3.org/2000/svg','_configService','336WsyavI','pluginName','univerjs-icon\x20univerjs-icon-','send','rxjs/operators','operations','_univerInstanceService','_handleOnline','_entities','SessionStatus','stringify','Button','LiveShareController','type','Fragment','path','Injector','NOT_FOLLOWING','@univerjs-pro/collaboration-client','getConfig','_status$','UniverProCollaborationClient','createElement','string','DisposableCollection','SetWorksheetActiveOperation','8721360xsqTyo','entries','SAME_OPERATION_SHARE_INTERVAL','div','UniverProCollaboration','onRendered','_stopFollowing','pipe','_startLiveShareCoordinator','getTypeOfUnitDisposed$','getUnitId','not-following','IUniverInstanceService','LiveShareCoordinator','map','registerSharedOperation','_stopPresenting','RxDisposable','symbol','PRESENTING','status$','react','assign','getTypeOfUnitAdded$','requireSession','1em','SetZoomRatioOperation','_collabSession','merge','_sharedOperations','getInitialStates','toDisposable','toString','_config','@univerjs-pro/collaboration','IDLE','LIVESHARE_FETCH_OPERATIONS','length','LiveShareIcon','values','next','581707uCMHSg','HEADER_MENU','useDependency','tag','OFFLINE','startFollowing','init','idle','@univerjs/design','Plugin'];_0x5e27=function(){return _0x216bd7;};return _0x5e27();}
1
+ function _0x37ee(){const _0x2de2d3=['tag','stopPresenting','_init','Button','SetZoomRatioOperation','FOLLOWING','Plugin','useState','map','SessionStatus','SetWorksheetActiveOperation','end','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','not-following','getTypeOfUnitAdded$','DisposableCollection','_stopPresenting','5UQVtUT','SAME_OPERATION_SHARE_INTERVAL','_presenter','_collabSessionService','getInitialStates','unsubscribe','UniverProLiveShare','_startPresenting','data','_sharedOperations','pipe','12HYQxUv','defineProperty','UniverSheetsUi','clsx','_univerInstanceService','CommandType','parse','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','tryStartPresenting','sessionStatus$','useRef','IUIPartsService','operations','toString','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','onCommandExecuted','delete','OFFLINE','Injector','_handleOffline','Start','CollaborationSessionService','complete','_unitID','@univerjs-pro/collaboration-client','LIVESHARE_NEW_HOST','string','attrs','registerDependencies','LIVESHARE_OPERATION','idle','getMemberID','UNIVER_UNKNOWN','svg','_injector','url(#$1','PRESENTING','NOT_FOLLOWING','live-share-icon','subscribe','init','jsxs','_liveShareService','presenting','6glvaCJ','offline','You\x27re\x20not\x20following\x20the\x20presenter','getStatus','merge','getLiveShareCoordinator','_configService','jsx','symbol','Inject','IUniverInstanceService','evenodd','_status','react/jsx-runtime','1em','operators','toStringTag','presenter','2492076jeMwFK','20780617vsfQiX','@univerjs/design','LiveShareService','rxjs/operators','registerInitialStateReporter','_startFollowing','add','_mountLiveShare','startFollowing','includes','react','following','_fetchOperations','React','text','mergeOverrideWithDependencies','object','idSuffix','from','UNIVER_SHEET','LiveShareCoordinator','UniverDesign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','children','button','takeUntil','path','throttleTime','touchDependencies','replace','UniverInstanceType','find','colorChannel1','defIds','UniverLiveSharePlugin','@univerjs-pro/collaboration','xlink:href','13155432jTRYFV','@univerjs/core','BuiltInUIPart','5545640bMyGyW','LiveShareController','stopFollowing','_uiPartsService','getOwnPropertyDescriptor','UniverProCollaboration','fill','onStarting','RxDisposable','length','reverse','IDLE','asObservable','Subject','type','override','UniverCollaborationClientPlugin','Fragment','currentColor','toDisposable','_status$','UniverIcon','getUnitId','dispose','12023560xqENwI','Start\x20following','505651YwywGN','forEach','onRendered','InsertSheetMutation','ICommandService','UniverUi','DesktopLiveShareController','status$','CollaborationEvent','univer-size-4','_startLiveShareCoordinator','registerSharedOperation','You\x27re\x20presenting\x20the\x20document','LiveShare','displayName','div','exports','params','disposeWithMe','entries','_commandService','287553MpcDiw','univer-mb-3\x20univer-w-full\x20univer-text-sm','_beIdle','shouldShareOperation','_stopFollowing','useEffect','Disposable','_handleNewHost','parseProtocolChangeset','getLiveShareCoordinatorSync','assign','getValue','LIVESHARE_TERMINATE','_entities','_commandDisposable','current','univerjs-icon\x20univerjs-icon-','Stop\x20presenting','use','OPERATION','has','mutations','memberID','createElement','Stop\x20following','_handleOnline','executeCommand','clear','LiveShareIcon','IConfigService','DependentOn','Present\x20this\x20document','send','@univerjs/sheets-ui','stringify','get','_config','event$','Module','none','next','getTypeOfUnitDisposed$','_collabSession','_reporters','9hdAkSe','NEW_CHANGESETS','rxjs','dispose$'];_0x37ee=function(){return _0x2de2d3;};return _0x37ee();}function _0x1e60(_0x378cfb,_0x58edcf){_0x378cfb=_0x378cfb-0x134;const _0x37ee7a=_0x37ee();let _0x1e60b2=_0x37ee7a[_0x378cfb];return _0x1e60b2;}(function(_0x59ab77,_0x457704){const _0x413c57=_0x1e60,_0x30e39d=_0x59ab77();while(!![]){try{const _0x12d53c=-parseInt(_0x413c57(0x134))/0x1*(-parseInt(_0x413c57(0x1c1))/0x2)+-parseInt(_0x413c57(0x1d3))/0x3+-parseInt(_0x413c57(0x1fc))/0x4*(parseInt(_0x413c57(0x18a))/0x5)+-parseInt(_0x413c57(0x195))/0x6*(-parseInt(_0x413c57(0x149))/0x7)+-parseInt(_0x413c57(0x1f9))/0x8*(parseInt(_0x413c57(0x175))/0x9)+parseInt(_0x413c57(0x214))/0xa+parseInt(_0x413c57(0x1d4))/0xb;if(_0x12d53c===_0x457704)break;else _0x30e39d['push'](_0x30e39d['shift']());}catch(_0xad435a){_0x30e39d['push'](_0x30e39d['shift']());}}}(_0x37ee,0xca69b),function(_0x516a47,_0x5e11ce){const _0x5c3bc8=_0x1e60;typeof exports==_0x5c3bc8(0x1e4)&&typeof module<'u'?_0x5e11ce(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define['amd']?define([_0x5c3bc8(0x144),_0x5c3bc8(0x1fa),'@univerjs/ui',_0x5c3bc8(0x1ce),_0x5c3bc8(0x1d5),_0x5c3bc8(0x1de),_0x5c3bc8(0x1f7),_0x5c3bc8(0x1ad),'@univerjs/sheets',_0x5c3bc8(0x177),_0x5c3bc8(0x1d7),_0x5c3bc8(0x16a)],_0x5e11ce):(_0x516a47=typeof globalThis<'u'?globalThis:_0x516a47||self,_0x5e11ce(_0x516a47[_0x5c3bc8(0x190)]={},_0x516a47['UniverCore'],_0x516a47[_0x5c3bc8(0x139)],_0x516a47[_0x5c3bc8(0x1e1)],_0x516a47[_0x5c3bc8(0x1e9)],_0x516a47['React'],_0x516a47[_0x5c3bc8(0x201)],_0x516a47['UniverProCollaborationClient'],_0x516a47['UniverSheets'],_0x516a47[_0x5c3bc8(0x177)],_0x516a47[_0x5c3bc8(0x177)][_0x5c3bc8(0x1d0)],_0x516a47[_0x5c3bc8(0x197)]));}(this,function(_0x360f1c,_0x90b24f,_0x25839f,_0x44b23a,_0x639229,_0x4ea418,_0x2082d3,_0xc6c7db,_0x32dd66,_0x410d6d,_0x3f3f91,_0xa977cd){'use strict';const _0x266c87=_0x1e60;var _0x485d06=Object['defineProperty'],_0x559458=(_0x2eb42f,_0x587885,_0x202bed)=>_0x587885 in _0x2eb42f?_0x485d06(_0x2eb42f,_0x587885,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x202bed}):_0x2eb42f[_0x587885]=_0x202bed,_0x3ef9fe=(_0x21f0b2,_0x3ff6e8,_0x54d0ba)=>_0x559458(_0x21f0b2,typeof _0x3ff6e8!=_0x266c87(0x1c9)?_0x3ff6e8+'':_0x3ff6e8,_0x54d0ba);function _0xd7bc73({ref:_0x582653,..._0x216fad}){const _0x2d3dd4=_0x266c87,{icon:_0x2e9aef,id:_0x19d7eb,className:_0x44c75f,extend:_0x3c8338,..._0x3ee99d}=_0x216fad,_0x229255=(_0x2d3dd4(0x159)+_0x19d7eb+'\x20'+(_0x44c75f||''))['trim'](),_0x5801db=_0x4ea418[_0x2d3dd4(0x19f)]('_'+_0x30fc93());return _0x1755e5(_0x2e9aef,''+_0x19d7eb,{'defIds':_0x2e9aef[_0x2d3dd4(0x1f5)],'idSuffix':_0x5801db[_0x2d3dd4(0x158)]},{'ref':_0x582653,'className':_0x229255,..._0x3ee99d},_0x3c8338);}function _0x1755e5(_0x26e65a,_0x2a9628,_0x97252,_0xf8977,_0x31cc8e){const _0x4ca0ac=_0x266c87;return _0x4ea418[_0x4ca0ac(0x160)](_0x26e65a[_0x4ca0ac(0x179)],{'key':_0x2a9628,..._0x255843(_0x26e65a,_0x97252,_0x31cc8e),..._0xf8977},(_0x391376(_0x26e65a,_0x97252)[_0x4ca0ac(0x1eb)]||[])[_0x4ca0ac(0x181)]((_0xdd9fa4,_0x106417)=>_0x1755e5(_0xdd9fa4,_0x2a9628+'-'+_0x26e65a[_0x4ca0ac(0x179)]+'-'+_0x106417,_0x97252,void 0x0,_0x31cc8e)));}function _0x255843(_0x17bd95,_0x1868ce,_0x46ee33){const _0x21e9e1=_0x266c87,_0x2c3e67={..._0x17bd95[_0x21e9e1(0x1b0)]};_0x46ee33!=null&&_0x46ee33['colorChannel1']&&_0x2c3e67[_0x21e9e1(0x202)]===_0x21e9e1(0x1f4)&&(_0x2c3e67[_0x21e9e1(0x202)]=_0x46ee33['colorChannel1']),_0x17bd95['tag']==='mask'&&_0x2c3e67['id']&&(_0x2c3e67['id']=_0x2c3e67['id']+_0x1868ce[_0x21e9e1(0x1e5)]),Object[_0x21e9e1(0x147)](_0x2c3e67)['forEach'](([_0x32002c,_0x491823])=>{const _0x58e118=_0x21e9e1;_0x32002c==='mask'&&typeof _0x491823==_0x58e118(0x1af)&&(_0x2c3e67[_0x32002c]=_0x491823[_0x58e118(0x1f1)](/url\(#(.*)\)/,_0x58e118(0x1b8)+_0x1868ce[_0x58e118(0x1e5)]+')'));});const {defIds:_0x1be0d2}=_0x1868ce;return!_0x1be0d2||_0x1be0d2[_0x21e9e1(0x205)]===0x0||(_0x17bd95[_0x21e9e1(0x179)]===_0x21e9e1(0x15b)&&_0x2c3e67[_0x21e9e1(0x1f8)]&&(_0x2c3e67[_0x21e9e1(0x1f8)]=_0x2c3e67[_0x21e9e1(0x1f8)]+_0x1868ce['idSuffix']),Object[_0x21e9e1(0x147)](_0x2c3e67)[_0x21e9e1(0x135)](([_0x2319a4,_0x2e3732])=>{const _0x40e656=_0x21e9e1;typeof _0x2e3732==_0x40e656(0x1af)&&(_0x2c3e67[_0x2319a4]=_0x2e3732[_0x40e656(0x1f1)](/url\(#(.*)\)/,'url(#$1'+_0x1868ce[_0x40e656(0x1e5)]+')'));})),_0x2c3e67;}function _0x391376(_0x1e1c0a,_0xed0f65){const _0x214996=_0x266c87;var _0x52da68;const {defIds:_0x5d8c3d}=_0xed0f65;return!_0x5d8c3d||_0x5d8c3d['length']===0x0?_0x1e1c0a:_0x1e1c0a[_0x214996(0x179)]==='defs'&&((_0x52da68=_0x1e1c0a[_0x214996(0x1eb)])!=null&&_0x52da68['length'])?{..._0x1e1c0a,'children':_0x1e1c0a[_0x214996(0x1eb)][_0x214996(0x181)](_0x3e4a69=>typeof _0x3e4a69[_0x214996(0x1b0)]['id']==_0x214996(0x1af)&&_0x5d8c3d&&_0x5d8c3d['includes'](_0x3e4a69[_0x214996(0x1b0)]['id'])?{..._0x3e4a69,'attrs':{..._0x3e4a69[_0x214996(0x1b0)],'id':_0x3e4a69['attrs']['id']+_0xed0f65[_0x214996(0x1e5)]}}:_0x3e4a69)}:_0x1e1c0a;}function _0x30fc93(){const _0x46bf58=_0x266c87;return Math['random']()[_0x46bf58(0x1a2)](0x24)['substring'](0x2,0x8);}_0xd7bc73['displayName']=_0x266c87(0x211);const _0x54fdd1={'tag':_0x266c87(0x1b6),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x266c87(0x170),'viewBox':'0\x200\x2017\x2017','width':_0x266c87(0x1cf),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x266c87(0x20e),'d':_0x266c87(0x185)}},{'tag':_0x266c87(0x1ee),'attrs':{'fill':'currentColor','d':_0x266c87(0x19c),'fillRule':_0x266c87(0x1cc),'clipRule':_0x266c87(0x1cc)}}]},_0x187896=_0x4ea418['forwardRef'](function(_0x59a2b3,_0xfad159){const _0x11e050=_0x266c87;return _0x4ea418[_0x11e050(0x160)](_0xd7bc73,Object[_0x11e050(0x153)]({},_0x59a2b3,{'id':_0x11e050(0x1bb),'ref':_0xfad159,'icon':_0x54fdd1}));});_0x187896[_0x266c87(0x142)]=_0x266c87(0x165);class _0x485919 extends _0x90b24f[_0x266c87(0x14f)]{constructor(){const _0x1b9146=_0x266c87;super(...arguments),_0x3ef9fe(this,_0x1b9146(0x193),new Set()),_0x3ef9fe(this,_0x1b9146(0x174),new Set());}[_0x266c87(0x13f)](_0xf46bca){const _0xb83d1a=_0x266c87;return this[_0xb83d1a(0x193)][_0xb83d1a(0x1da)](_0xf46bca),_0x90b24f[_0xb83d1a(0x20f)](()=>this['_sharedOperations'][_0xb83d1a(0x1a5)](_0xf46bca));}[_0x266c87(0x1d8)](_0x249f65){const _0x1425e6=_0x266c87;return this[_0x1425e6(0x174)]['add'](_0x249f65),_0x90b24f[_0x1425e6(0x20f)](()=>this['_reporters'][_0x1425e6(0x1a5)](_0x249f65));}[_0x266c87(0x14c)](_0x38a3d4){const _0x554a85=_0x266c87;return this['_sharedOperations'][_0x554a85(0x15d)](_0x38a3d4);}[_0x266c87(0x18e)](_0x4ce5c5){const _0x3f50db=_0x266c87;return Array[_0x3f50db(0x1e6)](this['_reporters'])[_0x3f50db(0x181)](_0x5331e4=>_0x5331e4(_0x4ce5c5));}}var _0x4b9494=Object['getOwnPropertyDescriptor'],_0x16e761=(_0x5dd2bc,_0x188358,_0x469399,_0x5eedee)=>{const _0x1555ff=_0x266c87;for(var _0x26a738=_0x5eedee>0x1?void 0x0:_0x5eedee?_0x4b9494(_0x188358,_0x469399):_0x188358,_0x435db4=_0x5dd2bc[_0x1555ff(0x205)]-0x1,_0x4b13c4;_0x435db4>=0x0;_0x435db4--)(_0x4b13c4=_0x5dd2bc[_0x435db4])&&(_0x26a738=_0x4b13c4(_0x26a738)||_0x26a738);return _0x26a738;},_0x4f60ab=(_0x5d0f5a,_0x54c9a4)=>(_0x226c70,_0x1e59b4)=>_0x54c9a4(_0x226c70,_0x1e59b4,_0x5d0f5a);_0x360f1c[_0x266c87(0x1fd)]=class extends _0x90b24f[_0x266c87(0x204)]{constructor(_0x22089e,_0x85abff,_0x1b35c9){const _0x391185=_0x266c87;super(),_0x3ef9fe(this,_0x391185(0x156),new Map()),(this['_univerInstanceService']=_0x22089e,this['_injector']=_0x85abff,this[_0x391185(0x18d)]=_0x1b35c9,this[_0x391185(0x17b)]());}async[_0x266c87(0x1c6)](_0x2113a6){const _0x308968=_0x266c87;return this['_entities']['has'](_0x2113a6)||await this[_0x308968(0x13e)](_0x2113a6),this[_0x308968(0x156)][_0x308968(0x16c)](_0x2113a6);}[_0x266c87(0x152)](_0x3bea7f){const _0x44c20a=_0x266c87;var _0x52da11;return(_0x52da11=this['_entities'][_0x44c20a(0x16c)](_0x3bea7f))!=null?_0x52da11:null;}['_init'](){const _0x2e9eee=_0x266c87;this['_univerInstanceService'][_0x2e9eee(0x187)](_0x90b24f[_0x2e9eee(0x1f2)][_0x2e9eee(0x1e7)])['pipe'](_0x3f3f91[_0x2e9eee(0x1ed)](this[_0x2e9eee(0x178)]))[_0x2e9eee(0x1bc)](async _0x8a85a7=>{const _0x446a6b=_0x2e9eee,_0x1ff96c=_0x8a85a7[_0x446a6b(0x212)]();this[_0x446a6b(0x156)]['has'](_0x1ff96c)||this[_0x446a6b(0x13e)](_0x1ff96c);}),this[_0x2e9eee(0x199)][_0x2e9eee(0x172)](_0x90b24f[_0x2e9eee(0x1f2)][_0x2e9eee(0x1e7)])[_0x2e9eee(0x194)](_0x3f3f91[_0x2e9eee(0x1ed)](this[_0x2e9eee(0x178)]))[_0x2e9eee(0x1bc)](_0x2eca68=>{const _0x5b57a8=_0x2e9eee,_0x5461b3=_0x2eca68[_0x5b57a8(0x212)](),_0x40cadc=this['_entities'][_0x5b57a8(0x16c)](_0x5461b3);_0x40cadc==null||_0x40cadc[_0x5b57a8(0x213)]();});}async['_startLiveShareCoordinator'](_0x3e60bc){const _0x12574c=_0x266c87,_0x54972d=await this['_collabSessionService']['requireSession'](_0x3e60bc),_0x590380=this[_0x12574c(0x1b7)]['createInstance'](_0x360f1c[_0x12574c(0x1e8)],_0x3e60bc,_0x54972d);return _0x590380['init'](),this[_0x12574c(0x156)]['set'](_0x3e60bc,_0x590380),_0x590380;}},_0x360f1c[_0x266c87(0x1fd)]=_0x16e761([_0x4f60ab(0x0,_0x90b24f['IUniverInstanceService']),_0x4f60ab(0x1,_0x90b24f[_0x266c87(0x1ca)](_0x90b24f['Injector'])),_0x4f60ab(0x2,_0x90b24f['Inject'](_0xc6c7db[_0x266c87(0x1aa)]))],_0x360f1c[_0x266c87(0x1fd)]);var _0x5526e1=(_0x48947a=>(_0x48947a['OFFLINE']=_0x266c87(0x1c2),_0x48947a['IDLE']=_0x266c87(0x1b3),_0x48947a[_0x266c87(0x17e)]=_0x266c87(0x1df),_0x48947a[_0x266c87(0x1ba)]=_0x266c87(0x186),_0x48947a[_0x266c87(0x1b9)]=_0x266c87(0x1c0),_0x48947a))(_0x5526e1||{});const _0x39055c=_0x266c87(0x18b),_0x2bf06d=0xc8;_0x360f1c[_0x266c87(0x1e8)]=class extends _0x90b24f['RxDisposable']{constructor(_0x27409b,_0x494275,_0x12d54d,_0x29fa7b,_0x4f3f3d){const _0x11c7a2=_0x266c87;super(),_0x3ef9fe(this,_0x11c7a2(0x210),new _0x410d6d['BehaviorSubject']('idle')),_0x3ef9fe(this,_0x11c7a2(0x13b),this[_0x11c7a2(0x210)][_0x11c7a2(0x208)]()),_0x3ef9fe(this,_0x11c7a2(0x17b),!0x1),_0x3ef9fe(this,'_commandDisposable',null),_0x3ef9fe(this,_0x11c7a2(0x18c),null),(this[_0x11c7a2(0x1ac)]=_0x27409b,this['_collabSession']=_0x494275,this[_0x11c7a2(0x1c7)]=_0x12d54d,this['_liveShareService']=_0x29fa7b,this[_0x11c7a2(0x148)]=_0x4f3f3d);}get['_status'](){const _0x4f2093=_0x266c87;return this[_0x4f2093(0x210)][_0x4f2093(0x154)]();}[_0x266c87(0x213)](){const _0x2f6adc=_0x266c87;var _0x5293e4;(_0x5293e4=this[_0x2f6adc(0x157)])==null||_0x5293e4[_0x2f6adc(0x213)](),this['_status$']['next'](_0x2f6adc(0x1b3)),this[_0x2f6adc(0x210)]['complete']();}[_0x266c87(0x1c4)](){return this['_status'];}[_0x266c87(0x1bd)](){const _0x186a0b=_0x266c87;this[_0x186a0b(0x17b)]||(this[_0x186a0b(0x17b)]=!0x0,this[_0x186a0b(0x173)][_0x186a0b(0x19e)][_0x186a0b(0x194)](_0x3f3f91[_0x186a0b(0x1ed)](this[_0x186a0b(0x178)]))['subscribe'](_0x6e4ce5=>{const _0x118f82=_0x186a0b;switch(_0x6e4ce5){case _0xc6c7db[_0x118f82(0x182)][_0x118f82(0x1a6)]:this[_0x118f82(0x1a8)]();break;case _0xc6c7db['SessionStatus']['ONLINE']:this[_0x118f82(0x162)]();break;}}),this[_0x186a0b(0x173)][_0x186a0b(0x16e)]['pipe'](_0x3f3f91['takeUntil'](this[_0x186a0b(0x178)]))[_0x186a0b(0x1bc)](_0x172678=>{const _0x40d4f3=_0x186a0b,{eventID:_0x2a388d}=_0x172678;switch(_0x2a388d){case _0x2082d3[_0x40d4f3(0x13c)][_0x40d4f3(0x1ae)]:this[_0x40d4f3(0x150)](_0x172678);break;case _0x2082d3['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x172678);break;case _0x2082d3[_0x40d4f3(0x13c)][_0x40d4f3(0x155)]:this['_handleTerminate']();break;case _0x2082d3['CollaborationEvent'][_0x40d4f3(0x176)]:this['_handleNewChangeSets'](_0x172678);break;}}));}[_0x266c87(0x19d)](){const _0x2c303f=_0x266c87;this[_0x2c303f(0x173)][_0x2c303f(0x169)]({'eventID':_0x2082d3[_0x2c303f(0x13c)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x2c303f(0x1ac)],'userID':this[_0x2c303f(0x173)]['getMemberID']()}},this['_unitID']);}[_0x266c87(0x17a)](){const _0x32d76b=_0x266c87;this[_0x32d76b(0x1cd)]===_0x32d76b(0x1c0)&&(this[_0x32d76b(0x210)]['next']('idle'),this[_0x32d76b(0x173)][_0x32d76b(0x169)]({'eventID':_0x2082d3['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x32d76b(0x1ac)]}},this[_0x32d76b(0x1ac)]));}[_0x266c87(0x1dc)](){const _0x1bb7ab=_0x266c87;this[_0x1bb7ab(0x1cd)]==='not-following'&&(this[_0x1bb7ab(0x210)][_0x1bb7ab(0x171)](_0x1bb7ab(0x1df)),this['_startFollowing']());}[_0x266c87(0x1fe)](){const _0x5d8d55=_0x266c87;this[_0x5d8d55(0x1cd)]===_0x5d8d55(0x1df)&&this[_0x5d8d55(0x14d)]();}['_handleNewHost'](_0x2be94f){const _0xcae7c7=_0x266c87,{presenter:_0xc8bebf}=_0x2be94f[_0xcae7c7(0x192)],_0x3a3c64=this['_collabSession'][_0xcae7c7(0x1b4)]();this['_presenter']=_0xc8bebf,_0xc8bebf===_0x3a3c64?(this[_0xcae7c7(0x14d)](),this['_startPresenting']()):this[_0xcae7c7(0x1cd)]!=='not-following'&&(this[_0xcae7c7(0x189)](),this[_0xcae7c7(0x1d9)]());}[_0x266c87(0x1e0)](){const _0x14a097=_0x266c87,_0x503eee={'eventID':_0x2082d3[_0x14a097(0x13c)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x14a097(0x173)][_0x14a097(0x169)](_0x503eee,this[_0x14a097(0x1ac)]);}['_handleTerminate'](){const _0x246c15=_0x266c87;this[_0x246c15(0x18c)]=null,this[_0x246c15(0x1cd)]!==_0x246c15(0x1c0)&&this[_0x246c15(0x14b)]();}['_handleNewChangeSets'](_0x52434a){const _0xedbea9=_0x266c87;if(this[_0xedbea9(0x1cd)]===_0xedbea9(0x1df)&&this[_0xedbea9(0x18c)]===_0x52434a[_0xedbea9(0x192)][_0xedbea9(0x15f)]){const _0x2404cd=_0x2082d3[_0xedbea9(0x151)](_0x52434a['data'])[_0xedbea9(0x15e)][_0xedbea9(0x206)]()[_0xedbea9(0x1f3)](_0x52bfa1=>_0x52bfa1['id']===_0x32dd66[_0xedbea9(0x137)]['id']);if(_0x2404cd){const _0x39b8b9=_0x2404cd[_0xedbea9(0x145)]['unitId'],_0x1b66be=_0x2404cd[_0xedbea9(0x145)]['sheet']['id'];setTimeout(()=>{const _0x20a889=_0xedbea9;this[_0x20a889(0x148)]['executeCommand'](_0x32dd66[_0x20a889(0x183)]['id'],{'unitId':_0x39b8b9,'subUnitId':_0x1b66be},{'fromCollab':!0x0});});}}}[_0x266c87(0x191)](){const _0x4f153b=_0x266c87;this[_0x4f153b(0x210)]['next'](_0x4f153b(0x1c0));const _0x3cad48=new Map(),_0x5b0e83=this[_0x4f153b(0x157)]=new _0x90b24f[(_0x4f153b(0x188))]();_0x5b0e83[_0x4f153b(0x1da)](_0x90b24f[_0x4f153b(0x20f)](()=>{const _0x409681=_0x4f153b;_0x3cad48[_0x409681(0x135)](_0x5417a3=>_0x5417a3[_0x409681(0x1ab)]()),_0x3cad48[_0x409681(0x164)]();})),_0x5b0e83['add'](this[_0x4f153b(0x148)][_0x4f153b(0x1a4)](_0x2e54ed=>{const _0x59ff9d=_0x4f153b;var _0x31f927;if(_0x2e54ed[_0x59ff9d(0x20a)]!==_0x90b24f[_0x59ff9d(0x19a)][_0x59ff9d(0x15c)]||!this[_0x59ff9d(0x1bf)]['shouldShareOperation'](_0x2e54ed['id']))return;const {id:_0x476153}=_0x2e54ed;let _0x261847;_0x3cad48['has'](_0x476153)?_0x261847=_0x3cad48[_0x59ff9d(0x16c)](_0x476153):(_0x261847=new _0x410d6d[(_0x59ff9d(0x209))](),_0x3cad48['set'](_0x476153,_0x261847),_0x261847['pipe'](_0x3f3f91[_0x59ff9d(0x1ef)]((_0x31f927=this[_0x59ff9d(0x1c7)]['getConfig'](_0x39055c))!=null?_0x31f927:_0x2bf06d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59ff9d(0x1bc)](_0x112567=>{const _0x1f466b=_0x59ff9d;this[_0x1f466b(0x173)][_0x1f466b(0x169)]({'eventID':_0x2082d3[_0x1f466b(0x13c)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1f466b(0x1ac)],'operations':{[_0x112567['id']]:{'id':_0x112567['id'],'params':JSON[_0x1f466b(0x16b)](_0x112567[_0x1f466b(0x145)])}}}},this['_unitID']);})),_0x261847['next'](_0x2e54ed);})),this[_0x4f153b(0x1bf)]['getInitialStates'](this[_0x4f153b(0x1ac)])[_0x4f153b(0x135)](_0x186a15=>this[_0x4f153b(0x173)][_0x4f153b(0x169)]({'eventID':_0x2082d3[_0x4f153b(0x13c)][_0x4f153b(0x1b2)],'data':{'unitID':this[_0x4f153b(0x1ac)],'operations':{[_0x186a15['id']]:{'id':_0x186a15['id'],'params':JSON[_0x4f153b(0x16b)](_0x186a15[_0x4f153b(0x145)])}}}},this[_0x4f153b(0x1ac)]));}[_0x266c87(0x189)](){const _0x199647=_0x266c87;var _0x183192;this['_status$']['next'](_0x199647(0x1b3)),(_0x183192=this[_0x199647(0x157)])==null||_0x183192[_0x199647(0x213)](),this[_0x199647(0x157)]=null;}[_0x266c87(0x1d9)](){const _0x2237ef=_0x266c87;var _0x41cf4e;(_0x41cf4e=this[_0x2237ef(0x157)])==null||_0x41cf4e[_0x2237ef(0x213)](),this[_0x2237ef(0x210)][_0x2237ef(0x171)](_0x2237ef(0x1df));}[_0x266c87(0x14b)](){const _0x35ebd6=_0x266c87;var _0x1ceac3;this[_0x35ebd6(0x210)][_0x35ebd6(0x171)](_0x35ebd6(0x1b3)),(_0x1ceac3=this['_commandDisposable'])==null||_0x1ceac3[_0x35ebd6(0x213)](),this[_0x35ebd6(0x157)]=null;}[_0x266c87(0x14d)](){const _0x21d5db=_0x266c87;var _0x90a9ab;this[_0x21d5db(0x210)][_0x21d5db(0x171)](_0x21d5db(0x186)),(_0x90a9ab=this[_0x21d5db(0x157)])==null||_0x90a9ab[_0x21d5db(0x213)]();}['_handleOperation'](_0x555c0b){const _0x563b88=_0x266c87;if(['presenting',_0x563b88(0x186),_0x563b88(0x1c2)][_0x563b88(0x1dd)](this['_status'])||!_0x555c0b[_0x563b88(0x192)][_0x563b88(0x1d2)]||_0x555c0b[_0x563b88(0x192)]['presenter']===this[_0x563b88(0x173)][_0x563b88(0x1b4)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0x5dff46=_0x555c0b[_0x563b88(0x192)][_0x563b88(0x1a1)];Object['values'](_0x5dff46)[_0x563b88(0x135)](_0x4360b0=>{const _0x42b061=_0x563b88;this[_0x42b061(0x148)][_0x42b061(0x163)](_0x4360b0['id'],_0x4360b0[_0x42b061(0x145)]?JSON[_0x42b061(0x19b)](_0x4360b0[_0x42b061(0x145)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4f9231=_0x266c87;var _0x1d48b1;this['_status$']['next']('offline'),(_0x1d48b1=this[_0x4f9231(0x157)])==null||_0x1d48b1[_0x4f9231(0x213)]();}[_0x266c87(0x162)](){const _0x9b5da5=_0x266c87;this['_status$'][_0x9b5da5(0x171)](_0x9b5da5(0x1b3)),this[_0x9b5da5(0x1e0)]();}},_0x360f1c[_0x266c87(0x1e8)]=_0x16e761([_0x4f60ab(0x2,_0x90b24f[_0x266c87(0x166)]),_0x4f60ab(0x3,_0x90b24f[_0x266c87(0x1ca)](_0x485919)),_0x4f60ab(0x4,_0x90b24f[_0x266c87(0x138)])],_0x360f1c[_0x266c87(0x1e8)]);function _0x44cbfc(){const _0x5a5748=_0x266c87,_0x4ac58a=_0x25839f['useDependency'](_0x360f1c[_0x5a5748(0x1fd)]),_0x155463=_0x25839f['useDependency'](_0x90b24f[_0x5a5748(0x1cb)]),_0x10053c=_0x25839f['useObservable'](()=>_0x155463['getCurrentTypeOfUnit$'](_0x90b24f[_0x5a5748(0x1f2)][_0x5a5748(0x1e7)]),void 0x0,!0x1,[]),[_0x402eac,_0x6eb725]=_0x4ea418[_0x5a5748(0x180)](null),[_0x5bef49,_0x5d3b65]=_0x4ea418[_0x5a5748(0x180)](_0x5526e1[_0x5a5748(0x207)]),_0x24780e=_0x4ea418[_0x5a5748(0x19f)](null);return _0x4ea418[_0x5a5748(0x14e)](()=>(_0x10053c&&_0x4ac58a[_0x5a5748(0x1c6)](_0x10053c['getUnitId']())['then'](_0x2252b6=>{const _0x1a01eb=_0x5a5748;_0x6eb725(_0x2252b6),_0x24780e[_0x1a01eb(0x158)]=_0x2252b6[_0x1a01eb(0x13b)][_0x1a01eb(0x1bc)](_0x526193=>{_0x5d3b65(_0x526193);});}),()=>{const _0x3c9dba=_0x5a5748;var _0x33ff94;(_0x33ff94=_0x24780e[_0x3c9dba(0x158)])==null||_0x33ff94[_0x3c9dba(0x18f)](),_0x24780e[_0x3c9dba(0x158)]=null;}),[_0x10053c,_0x4ac58a]),_0x402eac?_0x44b23a['jsx'](_0x639229['Dropdown'],{'align':_0x5a5748(0x184),'disabled':_0x5bef49===_0x5526e1[_0x5a5748(0x1a6)],'className':_0x5a5748(0x1a3),'overlay':_0x44b23a[_0x5a5748(0x1c8)](_0x5b5ea3,{'status':_0x5bef49,'coordinator':_0x402eac}),'children':_0x44b23a[_0x5a5748(0x1c8)](_0x5a5748(0x1ec),{'className':_0x639229[_0x5a5748(0x198)](_0x5a5748(0x1ea),{'univer-cursor-not-allowed':_0x5bef49===_0x5526e1[_0x5a5748(0x1a6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5bef49!==_0x5526e1['OFFLINE']}),'type':_0x5a5748(0x1ec),'children':_0x44b23a[_0x5a5748(0x1c8)](_0x187896,{'className':_0x5a5748(0x13d)})})}):null;}function _0x5b5ea3(_0x3c4c7b){const _0x501385=_0x266c87,{status:_0x33951c,coordinator:_0x1791cb}=_0x3c4c7b;switch(_0x33951c){case _0x5526e1[_0x501385(0x207)]:return _0x44b23a['jsx'](_0x587228,{'coordinator':_0x1791cb});case _0x5526e1[_0x501385(0x17e)]:return _0x44b23a['jsx'](_0x2a3656,{'coordinator':_0x1791cb});case _0x5526e1[_0x501385(0x1ba)]:return _0x44b23a['jsx'](_0x4742b8,{'coordinator':_0x1791cb});case _0x5526e1[_0x501385(0x1a6)]:return _0x44b23a[_0x501385(0x1c8)](_0x2739cc,{});case _0x5526e1[_0x501385(0x1b9)]:return _0x44b23a[_0x501385(0x1c8)](_0x39c9dd,{'coordinator':_0x1791cb});default:return null;}}function _0x587228(_0x59b141){const _0x12cee0=_0x266c87,{coordinator:_0x262f52}=_0x59b141;return _0x44b23a['jsxs'](_0x44b23a[_0x12cee0(0x20d)],{'children':[_0x44b23a['jsx'](_0x12cee0(0x143),{'className':_0x12cee0(0x14a),'children':_0x12cee0(0x168)}),_0x44b23a[_0x12cee0(0x1c8)](_0x639229['Button'],{'onClick':()=>_0x262f52['tryStartPresenting'](),'children':_0x12cee0(0x1a9)})]});}function _0x2a3656(_0x56f9f7){const _0x212cf3=_0x266c87,{coordinator:_0xe3f540}=_0x56f9f7;return _0x44b23a[_0x212cf3(0x1be)](_0x44b23a[_0x212cf3(0x20d)],{'children':[_0x44b23a[_0x212cf3(0x1c8)](_0x212cf3(0x143),{'className':_0x212cf3(0x14a),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x44b23a[_0x212cf3(0x1c8)](_0x639229[_0x212cf3(0x17c)],{'onClick':()=>_0xe3f540[_0x212cf3(0x1fe)](),'children':_0x212cf3(0x161)})]});}function _0x4742b8(_0x2f84d6){const _0x133197=_0x266c87,{coordinator:_0x412ba8}=_0x2f84d6;return _0x44b23a[_0x133197(0x1be)](_0x44b23a[_0x133197(0x20d)],{'children':[_0x44b23a[_0x133197(0x1c8)](_0x133197(0x143),{'className':_0x133197(0x14a),'children':_0x133197(0x1c3)}),_0x44b23a[_0x133197(0x1c8)](_0x639229[_0x133197(0x17c)],{'variant':_0x133197(0x1e2),'onClick':()=>_0x412ba8[_0x133197(0x1dc)](),'children':_0x133197(0x215)})]});}function _0x39c9dd(_0x5e9f05){const _0x176f83=_0x266c87,{coordinator:_0x47d53b}=_0x5e9f05;return _0x44b23a[_0x176f83(0x1be)](_0x44b23a[_0x176f83(0x20d)],{'children':[_0x44b23a[_0x176f83(0x1c8)](_0x176f83(0x143),{'className':_0x176f83(0x14a),'children':_0x176f83(0x140)}),_0x44b23a[_0x176f83(0x1c8)](_0x639229[_0x176f83(0x17c)],{'variant':'default','onClick':()=>_0x47d53b['stopPresenting'](),'children':_0x176f83(0x15a)})]});}function _0x2739cc(){return _0x44b23a['jsx'](_0x44b23a['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x4d4124=Object[_0x266c87(0x200)],_0x5163ec=(_0x24c137,_0x4d39cf,_0xa91976,_0x356324)=>{const _0xcd30c3=_0x266c87;for(var _0x3f8bf8=_0x356324>0x1?void 0x0:_0x356324?_0x4d4124(_0x4d39cf,_0xa91976):_0x4d39cf,_0x333493=_0x24c137[_0xcd30c3(0x205)]-0x1,_0x76db8;_0x333493>=0x0;_0x333493--)(_0x76db8=_0x24c137[_0x333493])&&(_0x3f8bf8=_0x76db8(_0x3f8bf8)||_0x3f8bf8);return _0x3f8bf8;},_0x4c4dc9=(_0x1ce08d,_0x1a97c8)=>(_0x356911,_0x3ff614)=>_0x1a97c8(_0x356911,_0x3ff614,_0x1ce08d);_0x360f1c[_0x266c87(0x13a)]=class extends _0x90b24f[_0x266c87(0x14f)]{constructor(_0x4c6b30,_0x2c30ce){const _0x36d8bb=_0x266c87;super(),this[_0x36d8bb(0x1b7)]=_0x4c6b30,this[_0x36d8bb(0x1ff)]=_0x2c30ce,this[_0x36d8bb(0x1db)]();}[_0x266c87(0x1db)](){const _0x5035ce=_0x266c87;this[_0x5035ce(0x146)](this[_0x5035ce(0x1ff)]['registerComponent'](_0x25839f[_0x5035ce(0x1fb)]['HEADER_MENU'],()=>_0x25839f['connectInjector'](_0x44cbfc,this['_injector'])));}},_0x360f1c[_0x266c87(0x13a)]=_0x5163ec([_0x4c4dc9(0x0,_0x90b24f[_0x266c87(0x1ca)](_0x90b24f[_0x266c87(0x1a7)])),_0x4c4dc9(0x1,_0x25839f[_0x266c87(0x1a0)])],_0x360f1c['DesktopLiveShareController']);const _0x5b9b25='live-share.config',_0x38dca2={};var _0x1c8bf8=Object[_0x266c87(0x200)],_0xd22ddf=(_0x3fa7cc,_0x5f2e0d,_0x1363c4,_0x34cea2)=>{const _0x1a8bfb=_0x266c87;for(var _0x590b33=_0x34cea2>0x1?void 0x0:_0x34cea2?_0x1c8bf8(_0x5f2e0d,_0x1363c4):_0x5f2e0d,_0x2c6f00=_0x3fa7cc[_0x1a8bfb(0x205)]-0x1,_0x1428f1;_0x2c6f00>=0x0;_0x2c6f00--)(_0x1428f1=_0x3fa7cc[_0x2c6f00])&&(_0x590b33=_0x1428f1(_0x590b33)||_0x590b33);return _0x590b33;},_0xeea5c1=(_0x594edd,_0x1f78f0)=>(_0x567c7d,_0x100415)=>_0x1f78f0(_0x567c7d,_0x100415,_0x594edd);let _0xb269f8=class extends _0x90b24f['Disposable']{constructor(_0x13dc51){const _0x43ebaa=_0x266c87;super(),this[_0x43ebaa(0x1bf)]=_0x13dc51,this['_init']();}[_0x266c87(0x17b)](){const _0x2b0165=_0x266c87;[_0xa977cd[_0x2b0165(0x17d)]['id'],_0xa977cd['SetScrollOperation']['id'],_0x32dd66[_0x2b0165(0x183)]['id']]['forEach'](_0x51ca8b=>{const _0x2a3eec=_0x2b0165;this[_0x2a3eec(0x146)](this[_0x2a3eec(0x1bf)][_0x2a3eec(0x13f)](_0x51ca8b));});}};_0xb269f8=_0xd22ddf([_0xeea5c1(0x0,_0x90b24f[_0x266c87(0x1ca)](_0x485919))],_0xb269f8);var _0x43e009=Object['defineProperty'],_0x21bed6=Object[_0x266c87(0x200)],_0x3c0cc3=(_0x2cd56d,_0x20a0d1,_0x2c0531)=>_0x20a0d1 in _0x2cd56d?_0x43e009(_0x2cd56d,_0x20a0d1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c0531}):_0x2cd56d[_0x20a0d1]=_0x2c0531,_0x5862e3=(_0x9ca83d,_0x3f26a0,_0x5b4984,_0x546a42)=>{const _0x40a0c6=_0x266c87;for(var _0x2a2847=_0x546a42>0x1?void 0x0:_0x546a42?_0x21bed6(_0x3f26a0,_0x5b4984):_0x3f26a0,_0x588600=_0x9ca83d[_0x40a0c6(0x205)]-0x1,_0x5b5113;_0x588600>=0x0;_0x588600--)(_0x5b5113=_0x9ca83d[_0x588600])&&(_0x2a2847=_0x5b5113(_0x2a2847)||_0x2a2847);return _0x2a2847;},_0x57d575=(_0x2d04fc,_0x53b156)=>(_0x2b52e7,_0x538faf)=>_0x53b156(_0x2b52e7,_0x538faf,_0x2d04fc),_0x3eee37=(_0xf51395,_0x15ad1b,_0x6a8dbd)=>_0x3c0cc3(_0xf51395,typeof _0x15ad1b!='symbol'?_0x15ad1b+'':_0x15ad1b,_0x6a8dbd);const _0x302152='UNIVER_LIVE_SHARE_PLUGIN';_0x360f1c['UniverLiveSharePlugin']=class extends _0x90b24f[_0x266c87(0x17f)]{constructor(_0x4b67be=_0x38dca2,_0x179628,_0x423461){const _0xc3c53e=_0x266c87;super(),this[_0xc3c53e(0x16d)]=_0x4b67be,this[_0xc3c53e(0x1b7)]=_0x179628,this[_0xc3c53e(0x1c7)]=_0x423461;const {..._0x3bab4c}=_0x90b24f[_0xc3c53e(0x1c5)]({},_0x38dca2,this[_0xc3c53e(0x16d)]);this['_configService']['setConfig'](_0x5b9b25,_0x3bab4c);}[_0x266c87(0x203)](){const _0x370348=_0x266c87;_0x90b24f[_0x370348(0x1b1)](this[_0x370348(0x1b7)],_0x90b24f[_0x370348(0x1e3)]([[_0x485919],[_0x360f1c['LiveShareController']],[_0xb269f8],[_0x360f1c[_0x370348(0x13a)]]],this[_0x370348(0x16d)][_0x370348(0x20b)])),_0x90b24f[_0x370348(0x1f0)](this[_0x370348(0x1b7)],[[_0xb269f8]]);}[_0x266c87(0x136)](){const _0x3b2d28=_0x266c87;_0x90b24f['touchDependencies'](this[_0x3b2d28(0x1b7)],[[_0x360f1c['DesktopLiveShareController']]]);}},_0x3eee37(_0x360f1c[_0x266c87(0x1f6)],_0x266c87(0x20a),_0x90b24f['UniverInstanceType'][_0x266c87(0x1b5)]),_0x3eee37(_0x360f1c[_0x266c87(0x1f6)],'pluginName',_0x302152),_0x360f1c[_0x266c87(0x1f6)]=_0x5862e3([_0x90b24f[_0x266c87(0x167)](_0xc6c7db[_0x266c87(0x20c)]),_0x57d575(0x1,_0x90b24f[_0x266c87(0x1ca)](_0x90b24f['Injector'])),_0x57d575(0x2,_0x90b24f[_0x266c87(0x166)])],_0x360f1c['UniverLiveSharePlugin']),_0x360f1c[_0x266c87(0x141)]=_0x44cbfc,_0x360f1c[_0x266c87(0x1d6)]=_0x485919,_0x360f1c['LiveShareStatus']=_0x5526e1,Object[_0x266c87(0x196)](_0x360f1c,Symbol[_0x266c87(0x1d1)],{'value':_0x266c87(0x16f)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.15.1",
3
+ "version": "0.15.2-insiders.20260119-edc718c",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,14 +57,13 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.1.1",
60
- "@univerjs-pro/collaboration": "0.15.1",
61
- "@univerjs-pro/collaboration-client": "0.15.1",
62
- "@univerjs/core": "0.15.1",
63
- "@univerjs/design": "0.15.1",
64
- "@univerjs/engine-render": "0.15.1",
65
- "@univerjs/sheets-ui": "0.15.1",
66
- "@univerjs/sheets": "0.15.1",
67
- "@univerjs/ui": "0.15.1"
60
+ "@univerjs-pro/collaboration": "0.15.2-insiders.20260119-edc718c",
61
+ "@univerjs-pro/collaboration-client": "0.15.2-insiders.20260119-edc718c",
62
+ "@univerjs/core": "0.15.2-insiders.20260119-edc718c",
63
+ "@univerjs/design": "0.15.2-insiders.20260119-edc718c",
64
+ "@univerjs/sheets": "0.15.2-insiders.20260119-edc718c",
65
+ "@univerjs/ui": "0.15.2-insiders.20260119-edc718c",
66
+ "@univerjs/sheets-ui": "0.15.2-insiders.20260119-edc718c"
68
67
  },
69
68
  "devDependencies": {
70
69
  "postcss": "^8.5.6",
@@ -74,8 +73,8 @@
74
73
  "typescript": "^5.9.3",
75
74
  "vite": "^7.3.1",
76
75
  "vitest": "^4.0.16",
77
- "@univerjs-infra/shared": "0.15.1",
78
- "@univerjs/protocol": "0.1.48"
76
+ "@univerjs/protocol": "0.1.48",
77
+ "@univerjs-infra/shared": "0.15.2"
79
78
  },
80
79
  "scripts": {
81
80
  "test": "vitest run",
@@ -1,17 +0,0 @@
1
- import { ICommandService, Injector, IRange, Workbook, Worksheet } from '@univerjs/core';
2
- import { FRange } from '@univerjs/sheets/facade';
3
- /**
4
- * @ignore
5
- */
6
- export interface IFRangeLiveShareMixin {
7
- }
8
- /**
9
- * @ignore
10
- */
11
- export declare class FRangeLiveShareMixin extends FRange implements IFRangeLiveShareMixin {
12
- _initialize(injector: Injector, workbook: Workbook, worksheet: Worksheet, range: IRange, commandService: ICommandService): void;
13
- }
14
- declare module '@univerjs/sheets/facade' {
15
- interface FRange extends IFRangeLiveShareMixin {
16
- }
17
- }