@univerjs-pro/live-share 0.15.1 → 0.15.2-insiders.20260122-b1556b1

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 _0x4560ad=_0x339c;function _0x303e(){const _0x50e234=['FUniver','getLiveShareCoordinatorSync','204jpSFFh','symbol','defineProperty','298373VTynQP','479961pGiPOF','FEnum','tryStartPresenting','2jmojCt','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','35Dncthi','stopPresenting','getCurrentUnitOfType','startFollowing','9jwGhEi','223740aEQEVU','stopFollowing','10858270fKloYe','LiveShareStatus','UNIVER_SHEET','_liveShareController','IUniverInstanceService','366056FoXEQx','2181605JIjJFK','LiveShareController','_injector','No\x20active\x20workbook\x20found.','IDLE','getUnitId','6LpILOf','104kXmFqU','get','4qKdzCh','1710842hhCuBF','UniverInstanceType','_initialize'];_0x303e=function(){return _0x50e234;};return _0x303e();}function _0x339c(_0x2a926d,_0x2a6010){_0x2a926d=_0x2a926d-0x77;const _0x303e81=_0x303e();let _0x339c49=_0x303e81[_0x2a926d];return _0x339c49;}(function(_0x2c59ae,_0x2e45ae){const _0x5a239a=_0x339c,_0x3a6dd5=_0x2c59ae();while(!![]){try{const _0x1ca8d1=-parseInt(_0x5a239a(0x89))/0x1*(-parseInt(_0x5a239a(0x8d))/0x2)+-parseInt(_0x5a239a(0x8a))/0x3*(-parseInt(_0x5a239a(0x80))/0x4)+parseInt(_0x5a239a(0x77))/0x5*(parseInt(_0x5a239a(0x7d))/0x6)+parseInt(_0x5a239a(0x8f))/0x7*(parseInt(_0x5a239a(0x9b))/0x8)+-parseInt(_0x5a239a(0x93))/0x9*(-parseInt(_0x5a239a(0x96))/0xa)+parseInt(_0x5a239a(0x94))/0xb*(-parseInt(_0x5a239a(0x86))/0xc)+parseInt(_0x5a239a(0x7e))/0xd*(-parseInt(_0x5a239a(0x81))/0xe);if(_0x1ca8d1===_0x2e45ae)break;else _0x3a6dd5['push'](_0x3a6dd5['shift']());}catch(_0x5ee778){_0x3a6dd5['push'](_0x3a6dd5['shift']());}}}(_0x303e,0xd8481));var h=Object[_0x4560ad(0x88)],u=(_0x44f6e8,_0x16c2a0,_0x3fb687)=>_0x16c2a0 in _0x44f6e8?h(_0x44f6e8,_0x16c2a0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fb687}):_0x44f6e8[_0x16c2a0]=_0x3fb687,S=(_0x1dbc95,_0x1b2f08,_0x4bd433)=>u(_0x1dbc95,typeof _0x1b2f08!=_0x4560ad(0x87)?_0x1b2f08+'':_0x1b2f08,_0x4bd433);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');class I extends c[_0x4560ad(0x84)]{constructor(){super(...arguments),S(this,'_liveShareController');}[_0x4560ad(0x83)](_0x27632a){const _0x304ab7=_0x4560ad;this[_0x304ab7(0x99)]=_0x27632a['get'](s[_0x304ab7(0x78)]);}['getLiveShareStatus'](){const _0x36c1d2=_0x4560ad;var _0x227440;const _0x422488=this['_injector'][_0x36c1d2(0x7f)](n[_0x36c1d2(0x9a)])['getCurrentUnitOfType'](n['UniverInstanceType'][_0x36c1d2(0x98)]);if(!_0x422488)throw new Error(_0x36c1d2(0x7a));const _0x2221d1=_0x422488[_0x36c1d2(0x7c)](),_0x1983e1=this[_0x36c1d2(0x99)][_0x36c1d2(0x85)](_0x2221d1);return(_0x227440=_0x1983e1==null?void 0x0:_0x1983e1['getStatus']())!=null?_0x227440:s[_0x36c1d2(0x97)][_0x36c1d2(0x7b)];}[_0x4560ad(0x92)](){const _0xc9cd26=_0x4560ad,_0x691ef=this[_0xc9cd26(0x79)][_0xc9cd26(0x7f)](n[_0xc9cd26(0x9a)])[_0xc9cd26(0x91)](n[_0xc9cd26(0x82)][_0xc9cd26(0x98)]);if(!_0x691ef)throw new Error(_0xc9cd26(0x7a));const _0x31be0f=_0x691ef[_0xc9cd26(0x7c)](),_0x26de0b=this[_0xc9cd26(0x99)][_0xc9cd26(0x85)](_0x31be0f);if(!_0x26de0b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x26de0b['startFollowing']();}[_0x4560ad(0x95)](){const _0x5b8647=_0x4560ad,_0x4134a3=this[_0x5b8647(0x79)][_0x5b8647(0x7f)](n[_0x5b8647(0x9a)])[_0x5b8647(0x91)](n[_0x5b8647(0x82)]['UNIVER_SHEET']);if(!_0x4134a3)throw new Error(_0x5b8647(0x7a));const _0x39a8b0=_0x4134a3[_0x5b8647(0x7c)](),_0x374540=this[_0x5b8647(0x99)][_0x5b8647(0x85)](_0x39a8b0);if(!_0x374540)throw new Error(_0x5b8647(0x8e));_0x374540[_0x5b8647(0x95)]();}['startPresenting'](){const _0x513b48=_0x4560ad,_0x31cce6=this['_injector'][_0x513b48(0x7f)](n[_0x513b48(0x9a)])[_0x513b48(0x91)](n[_0x513b48(0x82)][_0x513b48(0x98)]);if(!_0x31cce6)throw new Error(_0x513b48(0x7a));const _0x1faf85=_0x31cce6['getUnitId'](),_0x223e5d=this[_0x513b48(0x99)][_0x513b48(0x85)](_0x1faf85);if(!_0x223e5d)throw new Error(_0x513b48(0x8e));_0x223e5d[_0x513b48(0x8c)]();}[_0x4560ad(0x90)](){const _0x2a86d7=_0x4560ad,_0x2b627a=this['_injector'][_0x2a86d7(0x7f)](n[_0x2a86d7(0x9a)])[_0x2a86d7(0x91)](n[_0x2a86d7(0x82)][_0x2a86d7(0x98)]);if(!_0x2b627a)throw new Error(_0x2a86d7(0x7a));const _0x51d5bc=_0x2b627a['getUnitId'](),_0x243e2b=this[_0x2a86d7(0x99)][_0x2a86d7(0x85)](_0x51d5bc);if(!_0x243e2b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x243e2b['stopPresenting']();}}c[_0x4560ad(0x84)]['extend'](I);class l extends c[_0x4560ad(0x8b)]{get['LiveShareStatusEnum'](){const _0x368ad3=_0x4560ad;return s[_0x368ad3(0x97)];}}c[_0x4560ad(0x8b)]['extend'](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 _0x1d9ea9=_0x139a;function _0x139a(_0x1f4d30,_0x56bfec){_0x1f4d30=_0x1f4d30-0x130;const _0x404a2a=_0x404a();let _0x139a5e=_0x404a2a[_0x1f4d30];return _0x139a5e;}(function(_0x4e002d,_0x4ae108){const _0xd9a285=_0x139a,_0x2ea1d1=_0x4e002d();while(!![]){try{const _0x53311e=-parseInt(_0xd9a285(0x17b))/0x1*(parseInt(_0xd9a285(0x1b3))/0x2)+parseInt(_0xd9a285(0x168))/0x3*(parseInt(_0xd9a285(0x1fe))/0x4)+-parseInt(_0xd9a285(0x1c5))/0x5*(parseInt(_0xd9a285(0x1f6))/0x6)+-parseInt(_0xd9a285(0x1b1))/0x7+-parseInt(_0xd9a285(0x1d6))/0x8+parseInt(_0xd9a285(0x16f))/0x9*(parseInt(_0xd9a285(0x1d4))/0xa)+parseInt(_0xd9a285(0x14a))/0xb*(parseInt(_0xd9a285(0x1c7))/0xc);if(_0x53311e===_0x4ae108)break;else _0x2ea1d1['push'](_0x2ea1d1['shift']());}catch(_0x2d17bf){_0x2ea1d1['push'](_0x2ea1d1['shift']());}}}(_0x404a,0x4983f));var T=Object[_0x1d9ea9(0x1d8)],U=(_0x803bd1,_0x374a56,_0x26a156)=>_0x374a56 in _0x803bd1?T(_0x803bd1,_0x374a56,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26a156}):_0x803bd1[_0x374a56]=_0x26a156,_=(_0x27bceb,_0x352a5b,_0x560837)=>U(_0x27bceb,typeof _0x352a5b!=_0x1d9ea9(0x205)?_0x352a5b+'':_0x352a5b,_0x560837);Object['defineProperty'](exports,Symbol[_0x1d9ea9(0x130)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x1783df,..._0x5d601f}){const _0x29d143=_0x1d9ea9,{icon:_0x29a573,id:_0x3abc1a,className:_0x1cafbe,extend:_0x104f19,..._0x2e655a}=_0x5d601f,_0x218ffd=(_0x29d143(0x1ca)+_0x3abc1a+'\x20'+(_0x1cafbe||''))[_0x29d143(0x176)](),_0x15db80=v[_0x29d143(0x16d)]('_'+H());return j(_0x29a573,''+_0x3abc1a,{'defIds':_0x29a573[_0x29d143(0x1d1)],'idSuffix':_0x15db80[_0x29d143(0x1c6)]},{'ref':_0x1783df,'className':_0x218ffd,..._0x2e655a},_0x104f19);}function j(_0x372226,_0x1e0919,_0x1c0c62,_0x1f3495,_0x4cb9e5){const _0x32515c=_0x1d9ea9;return v[_0x32515c(0x1b2)](_0x372226[_0x32515c(0x13a)],{'key':_0x1e0919,...y(_0x372226,_0x1c0c62,_0x4cb9e5),..._0x1f3495},(F(_0x372226,_0x1c0c62)[_0x32515c(0x17a)]||[])[_0x32515c(0x1a1)]((_0x55f5fc,_0x1fba43)=>j(_0x55f5fc,_0x1e0919+'-'+_0x372226['tag']+'-'+_0x1fba43,_0x1c0c62,void 0x0,_0x4cb9e5)));}function y(_0x16e35f,_0x457de9,_0x471fbe){const _0x1946a8=_0x1d9ea9,_0x181eaa={..._0x16e35f[_0x1946a8(0x1c0)]};_0x471fbe!=null&&_0x471fbe[_0x1946a8(0x156)]&&_0x181eaa[_0x1946a8(0x186)]===_0x1946a8(0x156)&&(_0x181eaa['fill']=_0x471fbe[_0x1946a8(0x156)]),_0x16e35f[_0x1946a8(0x13a)]===_0x1946a8(0x1e2)&&_0x181eaa['id']&&(_0x181eaa['id']=_0x181eaa['id']+_0x457de9[_0x1946a8(0x1e0)]),Object['entries'](_0x181eaa)[_0x1946a8(0x207)](([_0x45e4fe,_0x42f3f4])=>{const _0xe109c9=_0x1946a8;_0x45e4fe==='mask'&&typeof _0x42f3f4==_0xe109c9(0x138)&&(_0x181eaa[_0x45e4fe]=_0x42f3f4[_0xe109c9(0x1da)](/url\(#(.*)\)/,_0xe109c9(0x1eb)+_0x457de9[_0xe109c9(0x1e0)]+')'));});const {defIds:_0x5c3bff}=_0x457de9;return!_0x5c3bff||_0x5c3bff[_0x1946a8(0x1e9)]===0x0||(_0x16e35f[_0x1946a8(0x13a)]==='use'&&_0x181eaa[_0x1946a8(0x1a8)]&&(_0x181eaa[_0x1946a8(0x1a8)]=_0x181eaa[_0x1946a8(0x1a8)]+_0x457de9[_0x1946a8(0x1e0)]),Object['entries'](_0x181eaa)[_0x1946a8(0x207)](([_0x40bd17,_0x391cab])=>{const _0xcbfc64=_0x1946a8;typeof _0x391cab==_0xcbfc64(0x138)&&(_0x181eaa[_0x40bd17]=_0x391cab[_0xcbfc64(0x1da)](/url\(#(.*)\)/,_0xcbfc64(0x1eb)+_0x457de9[_0xcbfc64(0x1e0)]+')'));})),_0x181eaa;}function F(_0x957d31,_0x243eb7){const _0x54a575=_0x1d9ea9;var _0x15b2fd;const {defIds:_0x56cf85}=_0x243eb7;return!_0x56cf85||_0x56cf85[_0x54a575(0x1e9)]===0x0?_0x957d31:_0x957d31[_0x54a575(0x13a)]===_0x54a575(0x1e3)&&((_0x15b2fd=_0x957d31[_0x54a575(0x17a)])!=null&&_0x15b2fd[_0x54a575(0x1e9)])?{..._0x957d31,'children':_0x957d31['children']['map'](_0x1391ca=>typeof _0x1391ca['attrs']['id']==_0x54a575(0x138)&&_0x56cf85&&_0x56cf85[_0x54a575(0x14f)](_0x1391ca[_0x54a575(0x1c0)]['id'])?{..._0x1391ca,'attrs':{..._0x1391ca[_0x54a575(0x1c0)],'id':_0x1391ca[_0x54a575(0x1c0)]['id']+_0x243eb7[_0x54a575(0x1e0)]}}:_0x1391ca)}:_0x957d31;}function H(){const _0x1a2c1f=_0x1d9ea9;return Math['random']()[_0x1a2c1f(0x174)](0x24)['substring'](0x2,0x8);}x[_0x1d9ea9(0x1a4)]=_0x1d9ea9(0x155);const V={'tag':'svg','attrs':{'xmlns':_0x1d9ea9(0x173),'fill':_0x1d9ea9(0x149),'viewBox':_0x1d9ea9(0x14d),'width':_0x1d9ea9(0x151),'height':'1em'},'children':[{'tag':_0x1d9ea9(0x163),'attrs':{'fill':_0x1d9ea9(0x18f),'d':_0x1d9ea9(0x146)}},{'tag':_0x1d9ea9(0x163),'attrs':{'fill':_0x1d9ea9(0x18f),'d':_0x1d9ea9(0x1e6),'fillRule':_0x1d9ea9(0x206),'clipRule':_0x1d9ea9(0x206)}}]},R=v[_0x1d9ea9(0x161)](function(_0x11ac3f,_0x4a62c2){const _0x2e8c2e=_0x1d9ea9;return v[_0x2e8c2e(0x1b2)](x,Object[_0x2e8c2e(0x15d)]({},_0x11ac3f,{'id':_0x2e8c2e(0x1c8),'ref':_0x4a62c2,'icon':V}));});R[_0x1d9ea9(0x1a4)]=_0x1d9ea9(0x15a);class E extends o[_0x1d9ea9(0x183)]{constructor(){const _0xf4510c=_0x1d9ea9;super(...arguments),_(this,_0xf4510c(0x1ac),new Set()),_(this,_0xf4510c(0x1cb),new Set());}['registerSharedOperation'](_0x16ebf6){const _0x4e3054=_0x1d9ea9;return this[_0x4e3054(0x1ac)][_0x4e3054(0x1d0)](_0x16ebf6),o[_0x4e3054(0x18b)](()=>this['_sharedOperations'][_0x4e3054(0x1d9)](_0x16ebf6));}[_0x1d9ea9(0x142)](_0xcb8417){const _0x4f586f=_0x1d9ea9;return this[_0x4f586f(0x1cb)][_0x4f586f(0x1d0)](_0xcb8417),o[_0x4f586f(0x18b)](()=>this[_0x4f586f(0x1cb)][_0x4f586f(0x1d9)](_0xcb8417));}[_0x1d9ea9(0x1bf)](_0x32a02c){const _0x4d2836=_0x1d9ea9;return this[_0x4d2836(0x1ac)][_0x4d2836(0x157)](_0x32a02c);}['getInitialStates'](_0x5c1c5e){const _0x1ec02d=_0x1d9ea9;return Array[_0x1ec02d(0x13c)](this[_0x1ec02d(0x1cb)])['map'](_0x3ecf36=>_0x3ecf36(_0x5c1c5e));}}var M=Object[_0x1d9ea9(0x162)],P=(_0x41558e,_0x3be231,_0x3e4d23,_0x3ea0e3)=>{const _0x23877e=_0x1d9ea9;for(var _0x1b1837=_0x3ea0e3>0x1?void 0x0:_0x3ea0e3?M(_0x3be231,_0x3e4d23):_0x3be231,_0x1a9e83=_0x41558e[_0x23877e(0x1e9)]-0x1,_0x131919;_0x1a9e83>=0x0;_0x1a9e83--)(_0x131919=_0x41558e[_0x1a9e83])&&(_0x1b1837=_0x131919(_0x1b1837)||_0x1b1837);return _0x1b1837;},S=(_0x2d8817,_0x5bc823)=>(_0xf20d72,_0x2786b4)=>_0x5bc823(_0xf20d72,_0x2786b4,_0x2d8817);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0xdab5e1,_0xd36f7a,_0x1a3cde){const _0x403018=_0x1d9ea9;super(),_(this,'_entities',new Map()),(this[_0x403018(0x154)]=_0xdab5e1,this[_0x403018(0x1b6)]=_0xd36f7a,this[_0x403018(0x172)]=_0x1a3cde,this[_0x403018(0x1ee)]());}async[_0x1d9ea9(0x20b)](_0x421e77){const _0x22519e=_0x1d9ea9;return this[_0x22519e(0x1dd)][_0x22519e(0x157)](_0x421e77)||await this['_startLiveShareCoordinator'](_0x421e77),this[_0x22519e(0x1dd)][_0x22519e(0x170)](_0x421e77);}['getLiveShareCoordinatorSync'](_0x27d6cd){const _0x2be595=_0x1d9ea9;var _0x32da45;return(_0x32da45=this[_0x2be595(0x1dd)]['get'](_0x27d6cd))!=null?_0x32da45:null;}[_0x1d9ea9(0x1ee)](){const _0x402d9a=_0x1d9ea9;this['_univerInstanceService'][_0x402d9a(0x18e)](o[_0x402d9a(0x188)]['UNIVER_SHEET'])[_0x402d9a(0x197)](I[_0x402d9a(0x1dc)](this['dispose$']))[_0x402d9a(0x1f3)](async _0x3ee5e0=>{const _0x55c5f0=_0x402d9a,_0x2a166f=_0x3ee5e0[_0x55c5f0(0x1db)]();this['_entities'][_0x55c5f0(0x157)](_0x2a166f)||this['_startLiveShareCoordinator'](_0x2a166f);}),this[_0x402d9a(0x154)][_0x402d9a(0x1ec)](o[_0x402d9a(0x188)][_0x402d9a(0x148)])[_0x402d9a(0x197)](I[_0x402d9a(0x1dc)](this[_0x402d9a(0x132)]))[_0x402d9a(0x1f3)](_0x553cb9=>{const _0x36b386=_0x402d9a,_0x1c510f=_0x553cb9[_0x36b386(0x1db)](),_0x500b31=this[_0x36b386(0x1dd)][_0x36b386(0x170)](_0x1c510f);_0x500b31==null||_0x500b31[_0x36b386(0x1f8)]();});}async['_startLiveShareCoordinator'](_0x5c14b5){const _0x4d745b=_0x1d9ea9,_0x148d83=await this['_collabSessionService'][_0x4d745b(0x1bc)](_0x5c14b5),_0x2f4b9=this[_0x4d745b(0x1b6)]['createInstance'](exports[_0x4d745b(0x18a)],_0x5c14b5,_0x148d83);return _0x2f4b9[_0x4d745b(0x164)](),this[_0x4d745b(0x1dd)][_0x4d745b(0x1f7)](_0x5c14b5,_0x2f4b9),_0x2f4b9;}},exports['LiveShareController']=P([S(0x0,o[_0x1d9ea9(0x15c)]),S(0x1,o[_0x1d9ea9(0x1d2)](o[_0x1d9ea9(0x20a)])),S(0x2,o[_0x1d9ea9(0x1d2)](b[_0x1d9ea9(0x140)]))],exports[_0x1d9ea9(0x1a9)]);var u=(_0x24d9f4=>(_0x24d9f4['OFFLINE']=_0x1d9ea9(0x13f),_0x24d9f4[_0x1d9ea9(0x152)]=_0x1d9ea9(0x141),_0x24d9f4[_0x1d9ea9(0x184)]='following',_0x24d9f4[_0x1d9ea9(0x143)]='not-following',_0x24d9f4['PRESENTING']=_0x1d9ea9(0x131),_0x24d9f4))(u||{});const k=_0x1d9ea9(0x1a0),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x1d9ea9(0x153)]{constructor(_0x23eacc,_0x68f8e0,_0x513299,_0xa9a534,_0x3d6ac9){const _0x34b660=_0x1d9ea9;super(),_(this,_0x34b660(0x196),new O[(_0x34b660(0x144))](_0x34b660(0x141))),_(this,'status$',this[_0x34b660(0x196)][_0x34b660(0x1e1)]()),_(this,_0x34b660(0x1ee),!0x1),_(this,_0x34b660(0x17d),null),_(this,'_presenter',null),(this[_0x34b660(0x190)]=_0x23eacc,this['_collabSession']=_0x68f8e0,this[_0x34b660(0x194)]=_0x513299,this[_0x34b660(0x1ce)]=_0xa9a534,this[_0x34b660(0x1bd)]=_0x3d6ac9);}get[_0x1d9ea9(0x150)](){const _0x5c583f=_0x1d9ea9;return this[_0x5c583f(0x196)][_0x5c583f(0x1f4)]();}['dispose'](){const _0x35a52f=_0x1d9ea9;var _0x2a62e6;(_0x2a62e6=this[_0x35a52f(0x17d)])==null||_0x2a62e6[_0x35a52f(0x1f8)](),this[_0x35a52f(0x196)][_0x35a52f(0x200)](_0x35a52f(0x141)),this[_0x35a52f(0x196)][_0x35a52f(0x204)]();}['getStatus'](){const _0x11450a=_0x1d9ea9;return this[_0x11450a(0x150)];}['init'](){const _0x55343b=_0x1d9ea9;this['_init']||(this[_0x55343b(0x1ee)]=!0x0,this[_0x55343b(0x13b)][_0x55343b(0x1cd)][_0x55343b(0x197)](I[_0x55343b(0x1dc)](this['dispose$']))[_0x55343b(0x1f3)](_0x246e8a=>{const _0x4ec0ad=_0x55343b;switch(_0x246e8a){case b[_0x4ec0ad(0x1d5)][_0x4ec0ad(0x177)]:this[_0x4ec0ad(0x1bb)]();break;case b[_0x4ec0ad(0x1d5)]['ONLINE']:this[_0x4ec0ad(0x203)]();break;}}),this['_collabSession']['event$'][_0x55343b(0x197)](I[_0x55343b(0x1dc)](this[_0x55343b(0x132)]))['subscribe'](_0x5c5b93=>{const _0x6a5396=_0x55343b,{eventID:_0x32e6e6}=_0x5c5b93;switch(_0x32e6e6){case d[_0x6a5396(0x187)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x5c5b93);break;case d[_0x6a5396(0x187)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x5c5b93);break;case d[_0x6a5396(0x187)][_0x6a5396(0x1e8)]:this[_0x6a5396(0x1ae)]();break;case d[_0x6a5396(0x187)][_0x6a5396(0x199)]:this['_handleNewChangeSets'](_0x5c5b93);break;}}));}['tryStartPresenting'](){const _0x3602ae=_0x1d9ea9;this[_0x3602ae(0x13b)][_0x3602ae(0x193)]({'eventID':d[_0x3602ae(0x187)][_0x3602ae(0x1e5)],'data':{'unitID':this['_unitID'],'userID':this[_0x3602ae(0x13b)][_0x3602ae(0x1c9)]()}},this[_0x3602ae(0x190)]);}[_0x1d9ea9(0x1a5)](){const _0x2fe1fb=_0x1d9ea9;this[_0x2fe1fb(0x150)]==='presenting'&&(this[_0x2fe1fb(0x196)][_0x2fe1fb(0x200)]('idle'),this[_0x2fe1fb(0x13b)][_0x2fe1fb(0x193)]({'eventID':d['CollaborationEvent'][_0x2fe1fb(0x1e8)],'data':{'unitID':this['_unitID']}},this[_0x2fe1fb(0x190)]));}['startFollowing'](){const _0x2b9622=_0x1d9ea9;this['_status']===_0x2b9622(0x1fb)&&(this['_status$']['next'](_0x2b9622(0x1e7)),this[_0x2b9622(0x133)]());}[_0x1d9ea9(0x1b9)](){const _0x1bcb11=_0x1d9ea9;this['_status']==='following'&&this[_0x1bcb11(0x18c)]();}['_handleNewHost'](_0x27e1b6){const _0x2e1cb2=_0x1d9ea9,{presenter:_0x429c2a}=_0x27e1b6[_0x2e1cb2(0x1f5)],_0x519fe8=this[_0x2e1cb2(0x13b)][_0x2e1cb2(0x1c9)]();this['_presenter']=_0x429c2a,_0x429c2a===_0x519fe8?(this[_0x2e1cb2(0x18c)](),this['_startPresenting']()):this[_0x2e1cb2(0x150)]!=='not-following'&&(this[_0x2e1cb2(0x209)](),this[_0x2e1cb2(0x133)]());}[_0x1d9ea9(0x165)](){const _0x45de6e=_0x1d9ea9,_0x145f13={'eventID':d[_0x45de6e(0x187)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x45de6e(0x13b)]['send'](_0x145f13,this['_unitID']);}[_0x1d9ea9(0x1ae)](){const _0x41b031=_0x1d9ea9;this[_0x41b031(0x1c3)]=null,this[_0x41b031(0x150)]!==_0x41b031(0x131)&&this[_0x41b031(0x1df)]();}['_handleNewChangeSets'](_0x4c889b){const _0x504432=_0x1d9ea9;if(this[_0x504432(0x150)]==='following'&&this[_0x504432(0x1c3)]===_0x4c889b['data'][_0x504432(0x139)]){const _0xd8cf6f=d['parseProtocolChangeset'](_0x4c889b['data'])[_0x504432(0x1f2)][_0x504432(0x16b)]()[_0x504432(0x1ad)](_0x3493d2=>_0x3493d2['id']===C[_0x504432(0x181)]['id']);if(_0xd8cf6f){const _0x1c1059=_0xd8cf6f['params'][_0x504432(0x1e4)],_0x544ee9=_0xd8cf6f[_0x504432(0x179)]['sheet']['id'];setTimeout(()=>{const _0x4d0c8f=_0x504432;this[_0x4d0c8f(0x1bd)][_0x4d0c8f(0x158)](C[_0x4d0c8f(0x1fa)]['id'],{'unitId':_0x1c1059,'subUnitId':_0x544ee9},{'fromCollab':!0x0});});}}}[_0x1d9ea9(0x1f9)](){const _0x2e70e9=_0x1d9ea9;this[_0x2e70e9(0x196)][_0x2e70e9(0x200)](_0x2e70e9(0x131));const _0xc58957=new Map(),_0x1da933=this['_commandDisposable']=new o['DisposableCollection']();_0x1da933[_0x2e70e9(0x1d0)](o['toDisposable'](()=>{const _0x2d3a60=_0x2e70e9;_0xc58957[_0x2d3a60(0x207)](_0x25a738=>_0x25a738[_0x2d3a60(0x204)]()),_0xc58957[_0x2d3a60(0x1ff)]();})),_0x1da933['add'](this[_0x2e70e9(0x1bd)][_0x2e70e9(0x1b5)](_0x51f2f6=>{const _0xda690b=_0x2e70e9;var _0x22131e;if(_0x51f2f6[_0xda690b(0x1af)]!==o[_0xda690b(0x13e)][_0xda690b(0x160)]||!this[_0xda690b(0x1ce)][_0xda690b(0x1bf)](_0x51f2f6['id']))return;const {id:_0x31f322}=_0x51f2f6;let _0xf9d13b;_0xc58957[_0xda690b(0x157)](_0x31f322)?_0xf9d13b=_0xc58957[_0xda690b(0x170)](_0x31f322):(_0xf9d13b=new O[(_0xda690b(0x135))](),_0xc58957[_0xda690b(0x1f7)](_0x31f322,_0xf9d13b),_0xf9d13b[_0xda690b(0x197)](I[_0xda690b(0x19a)]((_0x22131e=this['_configService'][_0xda690b(0x198)](k))!=null?_0x22131e:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xda690b(0x1f3)](_0x38fa7c=>{const _0x49446a=_0xda690b;this[_0x49446a(0x13b)][_0x49446a(0x193)]({'eventID':d[_0x49446a(0x187)][_0x49446a(0x1ea)],'data':{'unitID':this[_0x49446a(0x190)],'operations':{[_0x38fa7c['id']]:{'id':_0x38fa7c['id'],'params':JSON[_0x49446a(0x185)](_0x38fa7c[_0x49446a(0x179)])}}}},this[_0x49446a(0x190)]);})),_0xf9d13b[_0xda690b(0x200)](_0x51f2f6);})),this[_0x2e70e9(0x1ce)]['getInitialStates'](this[_0x2e70e9(0x190)])[_0x2e70e9(0x207)](_0x5f3e61=>this['_collabSession'][_0x2e70e9(0x193)]({'eventID':d[_0x2e70e9(0x187)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x5f3e61['id']]:{'id':_0x5f3e61['id'],'params':JSON[_0x2e70e9(0x185)](_0x5f3e61['params'])}}}},this[_0x2e70e9(0x190)]));}['_stopPresenting'](){const _0x5eb832=_0x1d9ea9;var _0x5b5453;this[_0x5eb832(0x196)][_0x5eb832(0x200)](_0x5eb832(0x141)),(_0x5b5453=this[_0x5eb832(0x17d)])==null||_0x5b5453['dispose'](),this[_0x5eb832(0x17d)]=null;}[_0x1d9ea9(0x133)](){const _0x18c44b=_0x1d9ea9;var _0x2e2233;(_0x2e2233=this[_0x18c44b(0x17d)])==null||_0x2e2233[_0x18c44b(0x1f8)](),this[_0x18c44b(0x196)]['next']('following');}['_beIdle'](){const _0x3e834a=_0x1d9ea9;var _0x145bc8;this[_0x3e834a(0x196)][_0x3e834a(0x200)]('idle'),(_0x145bc8=this[_0x3e834a(0x17d)])==null||_0x145bc8[_0x3e834a(0x1f8)](),this[_0x3e834a(0x17d)]=null;}[_0x1d9ea9(0x18c)](){const _0x46673a=_0x1d9ea9;var _0x2fbb67;this[_0x46673a(0x196)]['next']('not-following'),(_0x2fbb67=this[_0x46673a(0x17d)])==null||_0x2fbb67['dispose']();}[_0x1d9ea9(0x208)](_0xad75f0){const _0x59e430=_0x1d9ea9;if(['presenting',_0x59e430(0x1fb),_0x59e430(0x13f)]['includes'](this[_0x59e430(0x150)])||!_0xad75f0[_0x59e430(0x1f5)][_0x59e430(0x1a2)]||_0xad75f0['data'][_0x59e430(0x1a2)]===this[_0x59e430(0x13b)]['getMemberID']())return;this['_status']===_0x59e430(0x141)&&this[_0x59e430(0x133)]();const _0x3da69b=_0xad75f0[_0x59e430(0x1f5)][_0x59e430(0x1ab)];Object[_0x59e430(0x19b)](_0x3da69b)['forEach'](_0x2ddac4=>{const _0x3c9ab8=_0x59e430;this['_commandService'][_0x3c9ab8(0x158)](_0x2ddac4['id'],_0x2ddac4[_0x3c9ab8(0x179)]?JSON['parse'](_0x2ddac4[_0x3c9ab8(0x179)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0xb41015=_0x1d9ea9;var _0x468358;this['_status$'][_0xb41015(0x200)](_0xb41015(0x13f)),(_0x468358=this['_commandDisposable'])==null||_0x468358[_0xb41015(0x1f8)]();}[_0x1d9ea9(0x203)](){const _0x1ddb85=_0x1d9ea9;this[_0x1ddb85(0x196)]['next'](_0x1ddb85(0x141)),this[_0x1ddb85(0x165)]();}},exports[_0x1d9ea9(0x18a)]=P([S(0x2,o[_0x1d9ea9(0x15e)]),S(0x3,o[_0x1d9ea9(0x1d2)](E)),S(0x4,o[_0x1d9ea9(0x1f1)])],exports[_0x1d9ea9(0x18a)]);function $(){const _0x386be0=_0x1d9ea9,_0x6a9901=p['useDependency'](exports['LiveShareController']),_0x2c87f1=p[_0x386be0(0x17c)](o[_0x386be0(0x15c)]),_0x451a5b=p[_0x386be0(0x14c)](()=>_0x2c87f1[_0x386be0(0x1a6)](o['UniverInstanceType'][_0x386be0(0x148)]),void 0x0,!0x1,[]),[_0x17da5e,_0x2b7c88]=v[_0x386be0(0x15f)](null),[_0x560282,_0x332abf]=v['useState'](u[_0x386be0(0x152)]),_0x58155c=v['useRef'](null);return v[_0x386be0(0x1a7)](()=>(_0x451a5b&&_0x6a9901[_0x386be0(0x20b)](_0x451a5b[_0x386be0(0x1db)]())[_0x386be0(0x16c)](_0x3e3f50=>{const _0x542a39=_0x386be0;_0x2b7c88(_0x3e3f50),_0x58155c[_0x542a39(0x1c6)]=_0x3e3f50[_0x542a39(0x169)]['subscribe'](_0x4a9dd3=>{_0x332abf(_0x4a9dd3);});}),()=>{const _0x1801ef=_0x386be0;var _0x2391a1;(_0x2391a1=_0x58155c[_0x1801ef(0x1c6)])==null||_0x2391a1[_0x1801ef(0x1ed)](),_0x58155c[_0x1801ef(0x1c6)]=null;}),[_0x451a5b,_0x6a9901]),_0x17da5e?l[_0x386be0(0x201)](f[_0x386be0(0x15b)],{'align':_0x386be0(0x145),'disabled':_0x560282===u[_0x386be0(0x177)],'className':_0x386be0(0x192),'overlay':l[_0x386be0(0x201)](W,{'status':_0x560282,'coordinator':_0x17da5e}),'children':l[_0x386be0(0x201)](_0x386be0(0x189),{'className':f['clsx'](_0x386be0(0x180),{'univer-cursor-not-allowed':_0x560282===u[_0x386be0(0x177)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x560282!==u[_0x386be0(0x177)]}),'type':_0x386be0(0x189),'children':l[_0x386be0(0x201)](R,{'className':_0x386be0(0x1cf)})})}):null;}function W(_0x53333a){const _0x3f5bd9=_0x1d9ea9,{status:_0x38930c,coordinator:_0x4c5c28}=_0x53333a;switch(_0x38930c){case u[_0x3f5bd9(0x152)]:return l[_0x3f5bd9(0x201)](G,{'coordinator':_0x4c5c28});case u['FOLLOWING']:return l[_0x3f5bd9(0x201)](B,{'coordinator':_0x4c5c28});case u[_0x3f5bd9(0x143)]:return l[_0x3f5bd9(0x201)](Y,{'coordinator':_0x4c5c28});case u[_0x3f5bd9(0x177)]:return l[_0x3f5bd9(0x201)](J,{});case u[_0x3f5bd9(0x16e)]:return l['jsx'](Z,{'coordinator':_0x4c5c28});default:return null;}}function G(_0x3deab2){const _0x59f1dd=_0x1d9ea9,{coordinator:_0x5d5c12}=_0x3deab2;return l[_0x59f1dd(0x195)](l['Fragment'],{'children':[l[_0x59f1dd(0x201)](_0x59f1dd(0x147),{'className':_0x59f1dd(0x1b0),'children':_0x59f1dd(0x1fc)}),l[_0x59f1dd(0x201)](f[_0x59f1dd(0x1d7)],{'onClick':()=>_0x5d5c12[_0x59f1dd(0x17e)](),'children':_0x59f1dd(0x16a)})]});}function B(_0x27233b){const _0x4d30e1=_0x1d9ea9,{coordinator:_0x36dcab}=_0x27233b;return l[_0x4d30e1(0x195)](l[_0x4d30e1(0x136)],{'children':[l[_0x4d30e1(0x201)](_0x4d30e1(0x147),{'className':_0x4d30e1(0x1b0),'children':_0x4d30e1(0x1ef)}),l[_0x4d30e1(0x201)](f[_0x4d30e1(0x1d7)],{'onClick':()=>_0x36dcab[_0x4d30e1(0x1b9)](),'children':_0x4d30e1(0x18d)})]});}function Y(_0x7ec19e){const _0x5233d0=_0x1d9ea9,{coordinator:_0x566aec}=_0x7ec19e;return l[_0x5233d0(0x195)](l[_0x5233d0(0x136)],{'children':[l[_0x5233d0(0x201)](_0x5233d0(0x147),{'className':_0x5233d0(0x1b0),'children':_0x5233d0(0x17f)}),l[_0x5233d0(0x201)](f['Button'],{'variant':_0x5233d0(0x1de),'onClick':()=>_0x566aec[_0x5233d0(0x1d3)](),'children':_0x5233d0(0x19e)})]});}function Z(_0x4dc593){const _0x46d335=_0x1d9ea9,{coordinator:_0x3e8551}=_0x4dc593;return l[_0x46d335(0x195)](l[_0x46d335(0x136)],{'children':[l[_0x46d335(0x201)](_0x46d335(0x147),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x46d335(0x1b4)}),l[_0x46d335(0x201)](f[_0x46d335(0x1d7)],{'variant':_0x46d335(0x1b8),'onClick':()=>_0x3e8551['stopPresenting'](),'children':_0x46d335(0x159)})]});}function _0x404a(){const _0x3c68b6=['evenodd','forEach','_handleOperation','_stopPresenting','Injector','getLiveShareCoordinator','toStringTag','presenting','dispose$','_startFollowing','onRendered','Subject','Fragment','_mountLiveShare','string','memberID','tag','_collabSession','from','DependentOn','CommandType','offline','CollaborationSessionService','idle','registerInitialStateReporter','NOT_FOLLOWING','BehaviorSubject','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','div','UNIVER_SHEET','none','190663sIgAZT','HEADER_MENU','useObservable','0\x200\x2017\x2017','SetZoomRatioOperation','includes','_status','1em','IDLE','RxDisposable','_univerInstanceService','UniverIcon','colorChannel1','has','executeCommand','Stop\x20presenting','LiveShareIcon','Dropdown','IUniverInstanceService','assign','IConfigService','useState','OPERATION','forwardRef','getOwnPropertyDescriptor','path','init','_fetchOperations','LiveShare','registerDependencies','943683wxFJvD','status$','Start','reverse','then','useRef','PRESENTING','117405LswEia','get','UNIVER_UNKNOWN','_collabSessionService','http://www.w3.org/2000/svg','toString','registerComponent','trim','OFFLINE','touchDependencies','params','children','178819cPyRLB','useDependency','_commandDisposable','tryStartPresenting','You\x27re\x20not\x20following\x20the\x20presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','InsertSheetMutation','onStarting','Disposable','FOLLOWING','stringify','fill','CollaborationEvent','UniverInstanceType','button','LiveShareCoordinator','toDisposable','_stopFollowing','Stop\x20following','getTypeOfUnitAdded$','currentColor','_unitID','_uiPartsService','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','send','_configService','jsxs','_status$','pipe','getConfig','NEW_CHANGESETS','throttleTime','values','setConfig','merge','Start\x20following','pluginName','SAME_OPERATION_SHARE_INTERVAL','map','presenter','disposeWithMe','displayName','stopPresenting','getCurrentTypeOfUnit$','useEffect','xlink:href','LiveShareController','IUIPartsService','operations','_sharedOperations','find','_handleTerminate','type','univer-mb-3\x20univer-w-full\x20univer-text-sm','1909117zGWrTU','createElement','2JLcmWP','You\x27re\x20presenting\x20the\x20document','onCommandExecuted','_injector','mergeOverrideWithDependencies','default','stopFollowing','DesktopLiveShareController','_handleOffline','requireSession','_commandService','LiveShareStatus','shouldShareOperation','attrs','live-share.config','LiveShareService','_presenter','override','790boKrvt','current','348ObgQiQ','live-share-icon','getMemberID','univerjs-icon\x20univerjs-icon-','_reporters','UniverLiveSharePlugin','sessionStatus$','_liveShareService','univer-size-4','add','defIds','Inject','startFollowing','190pbwUkp','SessionStatus','703088HNxmdA','Button','defineProperty','delete','replace','getUnitId','takeUntil','_entities','text','_beIdle','idSuffix','asObservable','mask','defs','unitId','LIVESHARE_REQUEST_HOST','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','following','LIVESHARE_TERMINATE','length','LIVESHARE_OPERATION','url(#$1','getTypeOfUnitDisposed$','unsubscribe','_init','You\x27re\x20following\x20the\x20presenter','connectInjector','ICommandService','mutations','subscribe','getValue','data','8526UbhXJS','set','dispose','_startPresenting','SetWorksheetActiveOperation','not-following','Present\x20this\x20document','BuiltInUIPart','4vWBfoc','clear','next','jsx','_config','_handleOnline','complete','symbol'];_0x404a=function(){return _0x3c68b6;};return _0x404a();}function J(){const _0x2c93af=_0x1d9ea9;return l[_0x2c93af(0x201)](l[_0x2c93af(0x136)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x1d9ea9(0x162)],z=(_0x1f083b,_0x3d80a1,_0x31dedb,_0x504a83)=>{const _0x85d71=_0x1d9ea9;for(var _0x58a49b=_0x504a83>0x1?void 0x0:_0x504a83?K(_0x3d80a1,_0x31dedb):_0x3d80a1,_0x295c55=_0x1f083b[_0x85d71(0x1e9)]-0x1,_0x510b46;_0x295c55>=0x0;_0x295c55--)(_0x510b46=_0x1f083b[_0x295c55])&&(_0x58a49b=_0x510b46(_0x58a49b)||_0x58a49b);return _0x58a49b;},L=(_0x214abf,_0x508cd0)=>(_0x2d7008,_0x9141af)=>_0x508cd0(_0x2d7008,_0x9141af,_0x214abf);exports[_0x1d9ea9(0x1ba)]=class extends o['Disposable']{constructor(_0xb6d067,_0x23bb5d){const _0x598d94=_0x1d9ea9;super(),this['_injector']=_0xb6d067,this[_0x598d94(0x191)]=_0x23bb5d,this[_0x598d94(0x137)]();}[_0x1d9ea9(0x137)](){const _0xbb3e0d=_0x1d9ea9;this[_0xbb3e0d(0x1a3)](this[_0xbb3e0d(0x191)][_0xbb3e0d(0x175)](p[_0xbb3e0d(0x1fd)][_0xbb3e0d(0x14b)],()=>p[_0xbb3e0d(0x1f0)]($,this[_0xbb3e0d(0x1b6)])));}},exports[_0x1d9ea9(0x1ba)]=z([L(0x0,o[_0x1d9ea9(0x1d2)](o[_0x1d9ea9(0x20a)])),L(0x1,p[_0x1d9ea9(0x1aa)])],exports[_0x1d9ea9(0x1ba)]);const Q=_0x1d9ea9(0x1c1),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x2b8ae3,_0x1cc3ad,_0x13aa54,_0x5c0370)=>{const _0x199312=_0x1d9ea9;for(var _0x46f392=_0x5c0370>0x1?void 0x0:_0x5c0370?X(_0x1cc3ad,_0x13aa54):_0x1cc3ad,_0x433e44=_0x2b8ae3[_0x199312(0x1e9)]-0x1,_0x23f852;_0x433e44>=0x0;_0x433e44--)(_0x23f852=_0x2b8ae3[_0x433e44])&&(_0x46f392=_0x23f852(_0x46f392)||_0x46f392);return _0x46f392;},te=(_0x34feef,_0x2c82ed)=>(_0x462c1e,_0x312d7a)=>_0x2c82ed(_0x462c1e,_0x312d7a,_0x34feef);let m=class extends o[_0x1d9ea9(0x183)]{constructor(_0x2d4ba0){const _0x58999e=_0x1d9ea9;super(),this[_0x58999e(0x1ce)]=_0x2d4ba0,this['_init']();}['_init'](){const _0x4344ce=_0x1d9ea9;[D[_0x4344ce(0x14e)]['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x9e750e=>{const _0x199851=_0x4344ce;this[_0x199851(0x1a3)](this[_0x199851(0x1ce)]['registerSharedOperation'](_0x9e750e));});}};m=ee([te(0x0,o[_0x1d9ea9(0x1d2)](E))],m);var ie=Object[_0x1d9ea9(0x1d8)],se=Object[_0x1d9ea9(0x162)],ne=(_0x1a5cd1,_0x3cfddd,_0x159661)=>_0x3cfddd in _0x1a5cd1?ie(_0x1a5cd1,_0x3cfddd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x159661}):_0x1a5cd1[_0x3cfddd]=_0x159661,re=(_0x15e96b,_0x16281f,_0x393d5c,_0x132b62)=>{const _0xfc5eb7=_0x1d9ea9;for(var _0x4fcb04=_0x132b62>0x1?void 0x0:_0x132b62?se(_0x16281f,_0x393d5c):_0x16281f,_0x594109=_0x15e96b[_0xfc5eb7(0x1e9)]-0x1,_0x77738b;_0x594109>=0x0;_0x594109--)(_0x77738b=_0x15e96b[_0x594109])&&(_0x4fcb04=_0x77738b(_0x4fcb04)||_0x4fcb04);return _0x4fcb04;},N=(_0x361b1e,_0xbf056c)=>(_0x5437cb,_0x51d2b5)=>_0xbf056c(_0x5437cb,_0x51d2b5,_0x361b1e),A=(_0xb89ff3,_0x42a7f0,_0x869994)=>ne(_0xb89ff3,typeof _0x42a7f0!=_0x1d9ea9(0x205)?_0x42a7f0+'':_0x42a7f0,_0x869994);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x1d9ea9(0x1cc)]=class extends o['Plugin']{constructor(_0x3a4ff3=w,_0x5cd3bd,_0x484915){const _0x2da7d8=_0x1d9ea9;super(),this['_config']=_0x3a4ff3,this['_injector']=_0x5cd3bd,this[_0x2da7d8(0x194)]=_0x484915;const {..._0x59be56}=o[_0x2da7d8(0x19d)]({},w,this[_0x2da7d8(0x202)]);this[_0x2da7d8(0x194)][_0x2da7d8(0x19c)](Q,_0x59be56);}[_0x1d9ea9(0x182)](){const _0x386494=_0x1d9ea9;o[_0x386494(0x167)](this['_injector'],o[_0x386494(0x1b7)]([[E],[exports['LiveShareController']],[m],[exports[_0x386494(0x1ba)]]],this[_0x386494(0x202)][_0x386494(0x1c4)])),o[_0x386494(0x178)](this[_0x386494(0x1b6)],[[m]]);}[_0x1d9ea9(0x134)](){const _0x380483=_0x1d9ea9;o['touchDependencies'](this[_0x380483(0x1b6)],[[exports[_0x380483(0x1ba)]]]);}},A(exports[_0x1d9ea9(0x1cc)],_0x1d9ea9(0x1af),o[_0x1d9ea9(0x188)][_0x1d9ea9(0x171)]),A(exports[_0x1d9ea9(0x1cc)],_0x1d9ea9(0x19f),oe),exports[_0x1d9ea9(0x1cc)]=re([o[_0x1d9ea9(0x13d)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x1d9ea9(0x1d2)](o['Injector'])),N(0x2,o[_0x1d9ea9(0x15e)])],exports[_0x1d9ea9(0x1cc)]),exports[_0x1d9ea9(0x166)]=$,exports[_0x1d9ea9(0x1c2)]=E,exports[_0x1d9ea9(0x1be)]=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 _0xba1afe=_0x1575;(function(_0x238760,_0x2e3550){const _0x1d0baa=_0x1575,_0x4160ab=_0x238760();while(!![]){try{const _0x123a17=-parseInt(_0x1d0baa(0xfc))/0x1+parseInt(_0x1d0baa(0xfd))/0x2*(parseInt(_0x1d0baa(0x112))/0x3)+parseInt(_0x1d0baa(0x109))/0x4*(-parseInt(_0x1d0baa(0xfb))/0x5)+parseInt(_0x1d0baa(0x107))/0x6*(parseInt(_0x1d0baa(0x10e))/0x7)+parseInt(_0x1d0baa(0x10b))/0x8*(-parseInt(_0x1d0baa(0x103))/0x9)+parseInt(_0x1d0baa(0xfe))/0xa+parseInt(_0x1d0baa(0x105))/0xb;if(_0x123a17===_0x2e3550)break;else _0x4160ab['push'](_0x4160ab['shift']());}catch(_0x2a94e9){_0x4160ab['push'](_0x4160ab['shift']());}}}(_0x3050,0xbf777));var l=Object[_0xba1afe(0x10c)],w=(_0x135571,_0xab6bd6,_0xe1bd4c)=>_0xab6bd6 in _0x135571?l(_0x135571,_0xab6bd6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe1bd4c}):_0x135571[_0xab6bd6]=_0xe1bd4c,v=(_0x28711d,_0x5293fe,_0x1401ce)=>w(_0x28711d,typeof _0x5293fe!=_0xba1afe(0x114)?_0x5293fe+'':_0x5293fe,_0x1401ce);function _0x1575(_0x27819f,_0x41beae){_0x27819f=_0x27819f-0xfa;const _0x305017=_0x3050();let _0x1575c0=_0x305017[_0x27819f];return _0x1575c0;}function _0x3050(){const _0x2b0130=['_liveShareController','startFollowing','getLiveShareCoordinatorSync','20zOwBkI','239137Jpptex','2syNJtz','6159480NWdJzj','extend','tryStartPresenting','UNIVER_SHEET','get','3152853OHMhUX','stopFollowing','15673504gzEPgl','startPresenting','1009062AofoPm','stopPresenting','446588yHebts','No\x20active\x20workbook\x20found.','32KYZjDW','defineProperty','_injector','7lKHSpk','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','getCurrentUnitOfType','1986753iVkPuo','IDLE','symbol','getUnitId'];_0x3050=function(){return _0x2b0130;};return _0x3050();}import{LiveShareController as _0x368e14,LiveShareStatus as _0x197484}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x372a33,UniverInstanceType as _0x462e53}from'@univerjs/core';import{FUniver as _0x3fb83b,FEnum as _0x3235b8}from'@univerjs/core/facade';class g extends _0x3fb83b{constructor(){const _0x22202e=_0xba1afe;super(...arguments),v(this,_0x22202e(0x116));}['_initialize'](_0x237f06){const _0x3c3a3a=_0xba1afe;this[_0x3c3a3a(0x116)]=_0x237f06[_0x3c3a3a(0x102)](_0x368e14);}['getLiveShareStatus'](){const _0x22cdb4=_0xba1afe;var _0x57b6ec;const _0x13f37f=this[_0x22cdb4(0x10d)][_0x22cdb4(0x102)](_0x372a33)[_0x22cdb4(0x111)](_0x462e53['UNIVER_SHEET']);if(!_0x13f37f)throw new Error(_0x22cdb4(0x10a));const _0x8af84a=_0x13f37f[_0x22cdb4(0x115)](),_0x17bc84=this[_0x22cdb4(0x116)][_0x22cdb4(0xfa)](_0x8af84a);return(_0x57b6ec=_0x17bc84==null?void 0x0:_0x17bc84[_0x22cdb4(0x110)]())!=null?_0x57b6ec:_0x197484[_0x22cdb4(0x113)];}[_0xba1afe(0x117)](){const _0x135714=_0xba1afe,_0x154412=this['_injector'][_0x135714(0x102)](_0x372a33)['getCurrentUnitOfType'](_0x462e53['UNIVER_SHEET']);if(!_0x154412)throw new Error(_0x135714(0x10a));const _0xe62c89=_0x154412[_0x135714(0x115)](),_0x2c12fb=this['_liveShareController'][_0x135714(0xfa)](_0xe62c89);if(!_0x2c12fb)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2c12fb[_0x135714(0x117)]();}[_0xba1afe(0x104)](){const _0x2827d9=_0xba1afe,_0x2ab2c1=this[_0x2827d9(0x10d)]['get'](_0x372a33)[_0x2827d9(0x111)](_0x462e53[_0x2827d9(0x101)]);if(!_0x2ab2c1)throw new Error(_0x2827d9(0x10a));const _0xc846d8=_0x2ab2c1[_0x2827d9(0x115)](),_0x439a8f=this[_0x2827d9(0x116)]['getLiveShareCoordinatorSync'](_0xc846d8);if(!_0x439a8f)throw new Error(_0x2827d9(0x10f));_0x439a8f[_0x2827d9(0x104)]();}[_0xba1afe(0x106)](){const _0x5ba1af=_0xba1afe,_0x660d34=this[_0x5ba1af(0x10d)][_0x5ba1af(0x102)](_0x372a33)[_0x5ba1af(0x111)](_0x462e53[_0x5ba1af(0x101)]);if(!_0x660d34)throw new Error(_0x5ba1af(0x10a));const _0x321573=_0x660d34[_0x5ba1af(0x115)](),_0x3fc79f=this[_0x5ba1af(0x116)][_0x5ba1af(0xfa)](_0x321573);if(!_0x3fc79f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3fc79f[_0x5ba1af(0x100)]();}[_0xba1afe(0x108)](){const _0x4f1831=_0xba1afe,_0x25d029=this[_0x4f1831(0x10d)]['get'](_0x372a33)[_0x4f1831(0x111)](_0x462e53[_0x4f1831(0x101)]);if(!_0x25d029)throw new Error(_0x4f1831(0x10a));const _0x2662de=_0x25d029['getUnitId'](),_0x5c9cf1=this[_0x4f1831(0x116)][_0x4f1831(0xfa)](_0x2662de);if(!_0x5c9cf1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5c9cf1['stopPresenting']();}}_0x3fb83b['extend'](g);class f extends _0x3235b8{get['LiveShareStatusEnum'](){return _0x197484;}}_0x3235b8[_0xba1afe(0xff)](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 _0x1191b2=_0x3c6d;(function(_0x375322,_0x2ad210){const _0x4c8417=_0x3c6d,_0x4d5e73=_0x375322();while(!![]){try{const _0x39b03b=-parseInt(_0x4c8417(0x209))/0x1*(parseInt(_0x4c8417(0x198))/0x2)+parseInt(_0x4c8417(0x1a3))/0x3*(-parseInt(_0x4c8417(0x18e))/0x4)+parseInt(_0x4c8417(0x1d5))/0x5+-parseInt(_0x4c8417(0x19d))/0x6+parseInt(_0x4c8417(0x1ba))/0x7*(-parseInt(_0x4c8417(0x184))/0x8)+parseInt(_0x4c8417(0x1ea))/0x9+parseInt(_0x4c8417(0x1e6))/0xa;if(_0x39b03b===_0x2ad210)break;else _0x4d5e73['push'](_0x4d5e73['shift']());}catch(_0x546531){_0x4d5e73['push'](_0x4d5e73['shift']());}}}(_0x18ef,0x24b08));var J=Object['defineProperty'],K=(_0x45f795,_0x2a0594,_0x5601bc)=>_0x2a0594 in _0x45f795?J(_0x45f795,_0x2a0594,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5601bc}):_0x45f795[_0x2a0594]=_0x5601bc,u=(_0x5e1d5e,_0x1c187b,_0x4de588)=>K(_0x5e1d5e,typeof _0x1c187b!='symbol'?_0x1c187b+'':_0x1c187b,_0x4de588);import{Disposable as _0x42f139,toDisposable as _0x1417df,IUniverInstanceService as _0x13599b,Inject as _0x52f490,Injector as _0xfcc158,IConfigService as _0x3b6203,ICommandService as _0x1133a0,RxDisposable as _0x12d579,UniverInstanceType as _0x52ac2b,DisposableCollection as _0x12bfa0,CommandType as _0x58cba0,DependentOn as _0x31ac97,Plugin as _0x597a77,merge as _0x8b45b2,registerDependencies as _0x277ea5,mergeOverrideWithDependencies as _0x1a5bcb,touchDependencies as _0x412fe3}from'@univerjs/core';import{useDependency as _0x13c131,useObservable as _0x4a22ff,IUIPartsService as _0x40fce5,BuiltInUIPart as _0x344c8b,connectInjector as _0x1f7308}from'@univerjs/ui';import{jsx as _0x23bdaf,jsxs as _0x3c669a,Fragment as _0x2260a2}from'react/jsx-runtime';import{Dropdown as _0xa5e188,clsx as _0x5bda25,Button as _0x229044}from'@univerjs/design';function _0x3c6d(_0x27138e,_0x1d89fc){_0x27138e=_0x27138e-0x166;const _0x18ef1e=_0x18ef();let _0x3c6d4a=_0x18ef1e[_0x27138e];return _0x3c6d4a;}import{useRef as _0x26e3e5,createElement as _0x2270b1,forwardRef as _0x229bee,useState as _0x4c8df0,useEffect as _0x2e70ea}from'react';import{CollaborationEvent as _0x54850e,parseProtocolChangeset as _0x4ea61e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x46ad75,SessionStatus as _0x38f2a3,UniverCollaborationClientPlugin as _0x42c667}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x424699,SetWorksheetActiveOperation as _0x22d280}from'@univerjs/sheets';import{BehaviorSubject as _0x4ad1e3,Subject as _0x338e65}from'rxjs';import{takeUntil as _0x1096b2,throttleTime as _0x23d433}from'rxjs/operators';import{SetZoomRatioOperation as _0x2e5eb8,SetScrollOperation as _0x4c04a3}from'@univerjs/sheets-ui';function k({ref:_0x2db846,..._0x1d0a15}){const _0x38adde=_0x3c6d,{icon:_0xbcf763,id:_0x2c0994,className:_0x1076ad,extend:_0x5afb17,..._0x422897}=_0x1d0a15,_0x97ea70=(_0x38adde(0x206)+_0x2c0994+'\x20'+(_0x1076ad||''))[_0x38adde(0x210)](),_0x11f29b=_0x26e3e5('_'+Oe());return G(_0xbcf763,''+_0x2c0994,{'defIds':_0xbcf763['defIds'],'idSuffix':_0x11f29b[_0x38adde(0x1d3)]},{'ref':_0x2db846,'className':_0x97ea70,..._0x422897},_0x5afb17);}function G(_0x15c8f0,_0x5e405e,_0x110cda,_0x4befed,_0x56dbf2){const _0x1b87c2=_0x3c6d;return _0x2270b1(_0x15c8f0['tag'],{'key':_0x5e405e,...be(_0x15c8f0,_0x110cda,_0x56dbf2),..._0x4befed},(Ee(_0x15c8f0,_0x110cda)[_0x1b87c2(0x194)]||[])[_0x1b87c2(0x208)]((_0x2ed83d,_0x1e451f)=>G(_0x2ed83d,_0x5e405e+'-'+_0x15c8f0[_0x1b87c2(0x202)]+'-'+_0x1e451f,_0x110cda,void 0x0,_0x56dbf2)));}function be(_0x3c29c7,_0x5c62bc,_0x140ab5){const _0x4a5b06=_0x3c6d,_0x29b48c={..._0x3c29c7['attrs']};_0x140ab5!=null&&_0x140ab5[_0x4a5b06(0x1de)]&&_0x29b48c[_0x4a5b06(0x1dd)]===_0x4a5b06(0x1de)&&(_0x29b48c['fill']=_0x140ab5[_0x4a5b06(0x1de)]),_0x3c29c7[_0x4a5b06(0x202)]==='mask'&&_0x29b48c['id']&&(_0x29b48c['id']=_0x29b48c['id']+_0x5c62bc['idSuffix']),Object[_0x4a5b06(0x204)](_0x29b48c)[_0x4a5b06(0x1f5)](([_0x1969da,_0x193e23])=>{const _0x5e0b39=_0x4a5b06;_0x1969da===_0x5e0b39(0x1fa)&&typeof _0x193e23==_0x5e0b39(0x200)&&(_0x29b48c[_0x1969da]=_0x193e23[_0x5e0b39(0x196)](/url\(#(.*)\)/,_0x5e0b39(0x1e8)+_0x5c62bc[_0x5e0b39(0x168)]+')'));});const {defIds:_0x3db7c}=_0x5c62bc;return!_0x3db7c||_0x3db7c[_0x4a5b06(0x1fc)]===0x0||(_0x3c29c7['tag']===_0x4a5b06(0x1be)&&_0x29b48c[_0x4a5b06(0x1d4)]&&(_0x29b48c['xlink:href']=_0x29b48c['xlink:href']+_0x5c62bc[_0x4a5b06(0x168)]),Object['entries'](_0x29b48c)[_0x4a5b06(0x1f5)](([_0x31c1f0,_0x2737b2])=>{const _0x34a785=_0x4a5b06;typeof _0x2737b2==_0x34a785(0x200)&&(_0x29b48c[_0x31c1f0]=_0x2737b2['replace'](/url\(#(.*)\)/,_0x34a785(0x1e8)+_0x5c62bc[_0x34a785(0x168)]+')'));})),_0x29b48c;}function Ee(_0x108315,_0x9e1250){const _0xab565f=_0x3c6d;var _0x31520a;const {defIds:_0x4f0671}=_0x9e1250;return!_0x4f0671||_0x4f0671[_0xab565f(0x1fc)]===0x0?_0x108315:_0x108315[_0xab565f(0x202)]===_0xab565f(0x1e5)&&((_0x31520a=_0x108315[_0xab565f(0x194)])!=null&&_0x31520a[_0xab565f(0x1fc)])?{..._0x108315,'children':_0x108315[_0xab565f(0x194)][_0xab565f(0x208)](_0x449432=>typeof _0x449432[_0xab565f(0x1fe)]['id']=='string'&&_0x4f0671&&_0x4f0671[_0xab565f(0x1bf)](_0x449432[_0xab565f(0x1fe)]['id'])?{..._0x449432,'attrs':{..._0x449432[_0xab565f(0x1fe)],'id':_0x449432['attrs']['id']+_0x9e1250[_0xab565f(0x168)]}}:_0x449432)}:_0x108315;}function Oe(){const _0x47cf0e=_0x3c6d;return Math[_0x47cf0e(0x188)]()[_0x47cf0e(0x18a)](0x24)[_0x47cf0e(0x1ac)](0x2,0x8);}k[_0x1191b2(0x1ed)]=_0x1191b2(0x174);const we={'tag':_0x1191b2(0x16b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1191b2(0x1e3),'viewBox':'0\x200\x2017\x2017','width':_0x1191b2(0x192),'height':'1em'},'children':[{'tag':_0x1191b2(0x1c7),'attrs':{'fill':_0x1191b2(0x20d),'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':_0x1191b2(0x1c7),'attrs':{'fill':_0x1191b2(0x20d),'d':_0x1191b2(0x207),'fillRule':_0x1191b2(0x16d),'clipRule':'evenodd'}}]},W=_0x229bee(function(_0x55ce6c,_0x4f1fcb){return _0x2270b1(k,Object['assign']({},_0x55ce6c,{'id':'live-share-icon','ref':_0x4f1fcb,'icon':we}));});W['displayName']=_0x1191b2(0x1d6);class L extends _0x42f139{constructor(){const _0x345df2=_0x1191b2;super(...arguments),u(this,_0x345df2(0x1a1),new Set()),u(this,_0x345df2(0x1d2),new Set());}[_0x1191b2(0x19f)](_0x542655){const _0x3e75a3=_0x1191b2;return this[_0x3e75a3(0x1a1)][_0x3e75a3(0x1bb)](_0x542655),_0x1417df(()=>this['_sharedOperations'][_0x3e75a3(0x20f)](_0x542655));}['registerInitialStateReporter'](_0x476a63){const _0x15e42f=_0x1191b2;return this['_reporters'][_0x15e42f(0x1bb)](_0x476a63),_0x1417df(()=>this[_0x15e42f(0x1d2)][_0x15e42f(0x20f)](_0x476a63));}[_0x1191b2(0x17c)](_0x4118f1){const _0x5bc383=_0x1191b2;return this[_0x5bc383(0x1a1)][_0x5bc383(0x20c)](_0x4118f1);}[_0x1191b2(0x173)](_0xf020dc){const _0x76e158=_0x1191b2;return Array[_0x76e158(0x1c4)](this[_0x76e158(0x1d2)])[_0x76e158(0x208)](_0x226d29=>_0x226d29(_0xf020dc));}}var Ne=Object[_0x1191b2(0x1cb)],Y=(_0x495b86,_0x2aa9b8,_0x2f8e1f,_0x496a5b)=>{const _0x57a684=_0x1191b2;for(var _0x444968=_0x496a5b>0x1?void 0x0:_0x496a5b?Ne(_0x2aa9b8,_0x2f8e1f):_0x2aa9b8,_0x3dfa43=_0x495b86[_0x57a684(0x1fc)]-0x1,_0x5aecc4;_0x3dfa43>=0x0;_0x3dfa43--)(_0x5aecc4=_0x495b86[_0x3dfa43])&&(_0x444968=_0x5aecc4(_0x444968)||_0x444968);return _0x444968;},_=(_0x4d1ee7,_0x54bc9a)=>(_0x38f715,_0x390c40)=>_0x54bc9a(_0x38f715,_0x390c40,_0x4d1ee7);let S=class extends _0x12d579{constructor(_0x88e00b,_0x4298e1,_0x3d29e0){const _0x192423=_0x1191b2;super(),u(this,_0x192423(0x186),new Map()),(this[_0x192423(0x17f)]=_0x88e00b,this['_injector']=_0x4298e1,this['_collabSessionService']=_0x3d29e0,this[_0x192423(0x1ec)]());}async['getLiveShareCoordinator'](_0x59d1c3){const _0x1bb3ce=_0x1191b2;return this[_0x1bb3ce(0x186)][_0x1bb3ce(0x20c)](_0x59d1c3)||await this[_0x1bb3ce(0x1b3)](_0x59d1c3),this[_0x1bb3ce(0x186)][_0x1bb3ce(0x191)](_0x59d1c3);}[_0x1191b2(0x177)](_0x358ced){const _0x19f00e=_0x1191b2;var _0x32de33;return(_0x32de33=this[_0x19f00e(0x186)][_0x19f00e(0x191)](_0x358ced))!=null?_0x32de33:null;}['_init'](){const _0x453995=_0x1191b2;this['_univerInstanceService'][_0x453995(0x1d1)](_0x52ac2b[_0x453995(0x180)])['pipe'](_0x1096b2(this[_0x453995(0x18b)]))[_0x453995(0x1f1)](async _0x49d54d=>{const _0x4c7ac7=_0x453995,_0x2e687c=_0x49d54d[_0x4c7ac7(0x1e2)]();this[_0x4c7ac7(0x186)][_0x4c7ac7(0x20c)](_0x2e687c)||this[_0x4c7ac7(0x1b3)](_0x2e687c);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x52ac2b[_0x453995(0x180)])[_0x453995(0x1e9)](_0x1096b2(this[_0x453995(0x18b)]))[_0x453995(0x1f1)](_0x5d8709=>{const _0x3a8720=_0x453995,_0x4c1060=_0x5d8709['getUnitId'](),_0x346756=this[_0x3a8720(0x186)][_0x3a8720(0x191)](_0x4c1060);_0x346756==null||_0x346756[_0x3a8720(0x1eb)]();});}async[_0x1191b2(0x1b3)](_0x5e1e02){const _0x32c6f7=_0x1191b2,_0x1e17ab=await this['_collabSessionService'][_0x32c6f7(0x1da)](_0x5e1e02),_0x1346a3=this[_0x32c6f7(0x197)][_0x32c6f7(0x170)](N,_0x5e1e02,_0x1e17ab);return _0x1346a3['init'](),this[_0x32c6f7(0x186)][_0x32c6f7(0x1b2)](_0x5e1e02,_0x1346a3),_0x1346a3;}};S=Y([_(0x0,_0x13599b),_(0x1,_0x52f490(_0xfcc158)),_(0x2,_0x52f490(_0x46ad75))],S);var c=(_0xc68a38=>(_0xc68a38[_0x1191b2(0x1cc)]=_0x1191b2(0x1ee),_0xc68a38[_0x1191b2(0x20b)]=_0x1191b2(0x1cd),_0xc68a38[_0x1191b2(0x16e)]=_0x1191b2(0x1d8),_0xc68a38[_0x1191b2(0x1b0)]=_0x1191b2(0x201),_0xc68a38[_0x1191b2(0x1f9)]=_0x1191b2(0x1ae),_0xc68a38))(c||{});const Ce=_0x1191b2(0x17e),De=0xc8;let N=class extends _0x12d579{constructor(_0x38ee06,_0x293cfa,_0x227d3a,_0x38960d,_0x10dd83){const _0x509a71=_0x1191b2;super(),u(this,_0x509a71(0x1f2),new _0x4ad1e3(_0x509a71(0x1cd))),u(this,_0x509a71(0x178),this[_0x509a71(0x1f2)][_0x509a71(0x190)]()),u(this,_0x509a71(0x1ec),!0x1),u(this,_0x509a71(0x1e7),null),u(this,_0x509a71(0x171),null),(this[_0x509a71(0x1c9)]=_0x38ee06,this[_0x509a71(0x1bc)]=_0x293cfa,this[_0x509a71(0x16c)]=_0x227d3a,this['_liveShareService']=_0x38960d,this[_0x509a71(0x1e1)]=_0x10dd83);}get[_0x1191b2(0x1e4)](){const _0x3be8cc=_0x1191b2;return this[_0x3be8cc(0x1f2)][_0x3be8cc(0x1a5)]();}[_0x1191b2(0x1eb)](){const _0x3bf7f7=_0x1191b2;var _0x9559a8;(_0x9559a8=this[_0x3bf7f7(0x1e7)])==null||_0x9559a8[_0x3bf7f7(0x1eb)](),this[_0x3bf7f7(0x1f2)][_0x3bf7f7(0x1b1)]('idle'),this[_0x3bf7f7(0x1f2)][_0x3bf7f7(0x1ab)]();}[_0x1191b2(0x19b)](){const _0x17c770=_0x1191b2;return this[_0x17c770(0x1e4)];}[_0x1191b2(0x16a)](){const _0x986724=_0x1191b2;this[_0x986724(0x1ec)]||(this[_0x986724(0x1ec)]=!0x0,this['_collabSession'][_0x986724(0x17d)][_0x986724(0x1e9)](_0x1096b2(this[_0x986724(0x18b)]))[_0x986724(0x1f1)](_0x5061fc=>{const _0x114fed=_0x986724;switch(_0x5061fc){case _0x38f2a3[_0x114fed(0x1cc)]:this[_0x114fed(0x199)]();break;case _0x38f2a3[_0x114fed(0x1d0)]:this[_0x114fed(0x185)]();break;}}),this[_0x986724(0x1bc)][_0x986724(0x1a7)][_0x986724(0x1e9)](_0x1096b2(this[_0x986724(0x18b)]))[_0x986724(0x1f1)](_0x1b57e7=>{const _0x4154a3=_0x986724,{eventID:_0x3d71ee}=_0x1b57e7;switch(_0x3d71ee){case _0x54850e[_0x4154a3(0x20a)]:this[_0x4154a3(0x211)](_0x1b57e7);break;case _0x54850e[_0x4154a3(0x166)]:this[_0x4154a3(0x1f6)](_0x1b57e7);break;case _0x54850e['LIVESHARE_TERMINATE']:this[_0x4154a3(0x1b5)]();break;case _0x54850e[_0x4154a3(0x18d)]:this[_0x4154a3(0x1ef)](_0x1b57e7);break;}}));}[_0x1191b2(0x182)](){const _0x272cac=_0x1191b2;this[_0x272cac(0x1bc)][_0x272cac(0x1d9)]({'eventID':_0x54850e['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x272cac(0x1c9)],'userID':this[_0x272cac(0x1bc)]['getMemberID']()}},this[_0x272cac(0x1c9)]);}[_0x1191b2(0x1c6)](){const _0x381341=_0x1191b2;this[_0x381341(0x1e4)]===_0x381341(0x1ae)&&(this['_status$'][_0x381341(0x1b1)]('idle'),this[_0x381341(0x1bc)][_0x381341(0x1d9)]({'eventID':_0x54850e['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x381341(0x1c9)]));}[_0x1191b2(0x1a6)](){const _0x53e064=_0x1191b2;this[_0x53e064(0x1e4)]===_0x53e064(0x201)&&(this[_0x53e064(0x1f2)][_0x53e064(0x1b1)]('following'),this[_0x53e064(0x20e)]());}[_0x1191b2(0x1b4)](){const _0x561b48=_0x1191b2;this[_0x561b48(0x1e4)]===_0x561b48(0x1d8)&&this[_0x561b48(0x1cf)]();}[_0x1191b2(0x211)](_0x35f29e){const _0x5b0cc6=_0x1191b2,{presenter:_0x7f9b81}=_0x35f29e[_0x5b0cc6(0x1bd)],_0x482ed1=this[_0x5b0cc6(0x1bc)][_0x5b0cc6(0x1ca)]();this['_presenter']=_0x7f9b81,_0x7f9b81===_0x482ed1?(this[_0x5b0cc6(0x1cf)](),this[_0x5b0cc6(0x175)]()):this[_0x5b0cc6(0x1e4)]!=='not-following'&&(this[_0x5b0cc6(0x172)](),this[_0x5b0cc6(0x20e)]());}['_fetchOperations'](){const _0x35b053=_0x1191b2,_0xd85293={'eventID':_0x54850e[_0x35b053(0x1db)]};this[_0x35b053(0x1bc)][_0x35b053(0x1d9)](_0xd85293,this[_0x35b053(0x1c9)]);}[_0x1191b2(0x1b5)](){const _0x1c81b9=_0x1191b2;this[_0x1c81b9(0x171)]=null,this[_0x1c81b9(0x1e4)]!==_0x1c81b9(0x1ae)&&this[_0x1c81b9(0x176)]();}[_0x1191b2(0x1ef)](_0x284dd7){const _0x887c70=_0x1191b2;if(this[_0x887c70(0x1e4)]===_0x887c70(0x1d8)&&this['_presenter']===_0x284dd7[_0x887c70(0x1bd)][_0x887c70(0x1c5)]){const _0x329ab8=_0x4ea61e(_0x284dd7[_0x887c70(0x1bd)])[_0x887c70(0x17a)][_0x887c70(0x1c2)]()[_0x887c70(0x195)](_0x2c1ee7=>_0x2c1ee7['id']===_0x424699['id']);if(_0x329ab8){const _0x49d467=_0x329ab8[_0x887c70(0x193)][_0x887c70(0x1b9)],_0x81f4b0=_0x329ab8[_0x887c70(0x193)][_0x887c70(0x1f8)]['id'];setTimeout(()=>{const _0x21dd88=_0x887c70;this[_0x21dd88(0x1e1)][_0x21dd88(0x1c3)](_0x22d280['id'],{'unitId':_0x49d467,'subUnitId':_0x81f4b0},{'fromCollab':!0x0});});}}}[_0x1191b2(0x175)](){const _0x36a5a0=_0x1191b2;this['_status$'][_0x36a5a0(0x1b1)](_0x36a5a0(0x1ae));const _0x43250b=new Map(),_0x22e6eb=this[_0x36a5a0(0x1e7)]=new _0x12bfa0();_0x22e6eb[_0x36a5a0(0x1bb)](_0x1417df(()=>{const _0x446eb7=_0x36a5a0;_0x43250b[_0x446eb7(0x1f5)](_0xe2b1a3=>_0xe2b1a3[_0x446eb7(0x1ab)]()),_0x43250b[_0x446eb7(0x189)]();})),_0x22e6eb['add'](this[_0x36a5a0(0x1e1)]['onCommandExecuted'](_0x258568=>{const _0x2c4ba8=_0x36a5a0;var _0x537d31;if(_0x258568[_0x2c4ba8(0x1fd)]!==_0x58cba0[_0x2c4ba8(0x181)]||!this['_liveShareService'][_0x2c4ba8(0x17c)](_0x258568['id']))return;const {id:_0x3f04f2}=_0x258568;let _0x55c0e4;_0x43250b['has'](_0x3f04f2)?_0x55c0e4=_0x43250b[_0x2c4ba8(0x191)](_0x3f04f2):(_0x55c0e4=new _0x338e65(),_0x43250b[_0x2c4ba8(0x1b2)](_0x3f04f2,_0x55c0e4),_0x55c0e4['pipe'](_0x23d433((_0x537d31=this['_configService'][_0x2c4ba8(0x1c1)](Ce))!=null?_0x537d31:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c4ba8(0x1f1)](_0x5f4677=>{const _0x16abe5=_0x2c4ba8;this['_collabSession'][_0x16abe5(0x1d9)]({'eventID':_0x54850e[_0x16abe5(0x166)],'data':{'unitID':this[_0x16abe5(0x1c9)],'operations':{[_0x5f4677['id']]:{'id':_0x5f4677['id'],'params':JSON[_0x16abe5(0x1df)](_0x5f4677[_0x16abe5(0x193)])}}}},this[_0x16abe5(0x1c9)]);})),_0x55c0e4[_0x2c4ba8(0x1b1)](_0x258568);})),this[_0x36a5a0(0x16f)]['getInitialStates'](this[_0x36a5a0(0x1c9)])[_0x36a5a0(0x1f5)](_0x5607f5=>this[_0x36a5a0(0x1bc)][_0x36a5a0(0x1d9)]({'eventID':_0x54850e[_0x36a5a0(0x166)],'data':{'unitID':this['_unitID'],'operations':{[_0x5607f5['id']]:{'id':_0x5607f5['id'],'params':JSON[_0x36a5a0(0x1df)](_0x5607f5[_0x36a5a0(0x193)])}}}},this[_0x36a5a0(0x1c9)]));}[_0x1191b2(0x172)](){const _0x36bb17=_0x1191b2;var _0x246115;this['_status$'][_0x36bb17(0x1b1)](_0x36bb17(0x1cd)),(_0x246115=this[_0x36bb17(0x1e7)])==null||_0x246115[_0x36bb17(0x1eb)](),this[_0x36bb17(0x1e7)]=null;}[_0x1191b2(0x20e)](){const _0x338b3d=_0x1191b2;var _0x2b76a4;(_0x2b76a4=this[_0x338b3d(0x1e7)])==null||_0x2b76a4['dispose'](),this[_0x338b3d(0x1f2)][_0x338b3d(0x1b1)](_0x338b3d(0x1d8));}[_0x1191b2(0x176)](){const _0x42bd77=_0x1191b2;var _0x389e24;this[_0x42bd77(0x1f2)][_0x42bd77(0x1b1)](_0x42bd77(0x1cd)),(_0x389e24=this[_0x42bd77(0x1e7)])==null||_0x389e24[_0x42bd77(0x1eb)](),this[_0x42bd77(0x1e7)]=null;}[_0x1191b2(0x1cf)](){const _0x326b8c=_0x1191b2;var _0x172890;this[_0x326b8c(0x1f2)][_0x326b8c(0x1b1)](_0x326b8c(0x201)),(_0x172890=this[_0x326b8c(0x1e7)])==null||_0x172890[_0x326b8c(0x1eb)]();}[_0x1191b2(0x1f6)](_0x212d99){const _0x3d982d=_0x1191b2;if([_0x3d982d(0x1ae),_0x3d982d(0x201),_0x3d982d(0x1ee)]['includes'](this['_status'])||!_0x212d99[_0x3d982d(0x1bd)][_0x3d982d(0x1b6)]||_0x212d99['data']['presenter']===this['_collabSession']['getMemberID']())return;this[_0x3d982d(0x1e4)]===_0x3d982d(0x1cd)&&this[_0x3d982d(0x20e)]();const _0x5b4ed5=_0x212d99[_0x3d982d(0x1bd)][_0x3d982d(0x1e0)];Object[_0x3d982d(0x1f7)](_0x5b4ed5)['forEach'](_0x1ce5fd=>{const _0x2952b5=_0x3d982d;this[_0x2952b5(0x1e1)][_0x2952b5(0x1c3)](_0x1ce5fd['id'],_0x1ce5fd[_0x2952b5(0x193)]?JSON[_0x2952b5(0x1ce)](_0x1ce5fd[_0x2952b5(0x193)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3434ae=_0x1191b2;var _0x5040be;this['_status$'][_0x3434ae(0x1b1)](_0x3434ae(0x1ee)),(_0x5040be=this[_0x3434ae(0x1e7)])==null||_0x5040be['dispose']();}['_handleOnline'](){const _0x1ad42b=_0x1191b2;this[_0x1ad42b(0x1f2)][_0x1ad42b(0x1b1)](_0x1ad42b(0x1cd)),this['_fetchOperations']();}};N=Y([_(0x2,_0x3b6203),_(0x3,_0x52f490(L)),_(0x4,_0x1133a0)],N);function _0x18ef(){const _0x2c07e1=['fill','colorChannel1','stringify','operations','_commandService','getUnitId','none','_status','defs','4569200XiUAfa','_commandDisposable','url(#$1','pipe','1588023xgFIcT','dispose','_init','displayName','offline','_handleNewChangeSets','You\x27re\x20not\x20following\x20the\x20presenter','subscribe','_status$','registerComponent','_uiPartsService','forEach','_handleOperation','values','sheet','PRESENTING','mask','setConfig','length','type','attrs','then','string','not-following','tag','pluginName','entries','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','univerjs-icon\x20univerjs-icon-','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','map','5191WjNups','LIVESHARE_NEW_HOST','IDLE','has','currentColor','_startFollowing','delete','trim','_handleNewHost','LIVESHARE_OPERATION','live-share.config','idSuffix','Start','init','svg','_configService','evenodd','FOLLOWING','_liveShareService','createInstance','_presenter','_stopPresenting','getInitialStates','UniverIcon','_startPresenting','_beIdle','getLiveShareCoordinatorSync','status$','div','mutations','unsubscribe','shouldShareOperation','sessionStatus$','SAME_OPERATION_SHARE_INTERVAL','_univerInstanceService','UNIVER_SHEET','OPERATION','tryStartPresenting','Stop\x20presenting','553856mVrDyc','_handleOnline','_entities','_mountLiveShare','random','clear','toString','dispose$','_config','NEW_CHANGESETS','52ZweQzB','You\x27re\x20following\x20the\x20presenter','asObservable','get','1em','params','children','find','replace','_injector','18nInjSU','_handleOffline','univer-size-4','getStatus','UNIVER_UNKNOWN','549390GdTUZv','getLiveShareCoordinator','registerSharedOperation','onStarting','_sharedOperations','You\x27are\x20offline.','45732gZnCMh','HEADER_MENU','getValue','startFollowing','event$','defineProperty','button','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','complete','substring','getCurrentTypeOfUnit$','presenting','onRendered','NOT_FOLLOWING','next','set','_startLiveShareCoordinator','stopFollowing','_handleTerminate','presenter','override','Stop\x20following','unitId','21htOeON','add','_collabSession','data','use','includes','UNIVER_LIVE_SHARE_PLUGIN','getConfig','reverse','executeCommand','from','memberID','stopPresenting','path','Present\x20this\x20document','_unitID','getMemberID','getOwnPropertyDescriptor','OFFLINE','idle','parse','_stopFollowing','ONLINE','getTypeOfUnitAdded$','_reporters','current','xlink:href','305325bpcbWy','LiveShareIcon','end','following','send','requireSession','LIVESHARE_FETCH_OPERATIONS','univer-mb-3\x20univer-w-full\x20univer-text-sm'];_0x18ef=function(){return _0x2c07e1;};return _0x18ef();}function Le(){const _0x3fc323=_0x1191b2,_0x5be799=_0x13c131(S),_0x29c354=_0x13c131(_0x13599b),_0x2130a8=_0x4a22ff(()=>_0x29c354[_0x3fc323(0x1ad)](_0x52ac2b['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x468fb7,_0x363d66]=_0x4c8df0(null),[_0x585c36,_0x8f7a2d]=_0x4c8df0(c['IDLE']),_0x13b400=_0x26e3e5(null);return _0x2e70ea(()=>(_0x2130a8&&_0x5be799[_0x3fc323(0x19e)](_0x2130a8[_0x3fc323(0x1e2)]())[_0x3fc323(0x1ff)](_0x5bb7fd=>{const _0xdf8946=_0x3fc323;_0x363d66(_0x5bb7fd),_0x13b400[_0xdf8946(0x1d3)]=_0x5bb7fd[_0xdf8946(0x178)]['subscribe'](_0x1a5505=>{_0x8f7a2d(_0x1a5505);});}),()=>{const _0x2794b0=_0x3fc323;var _0xd0e2c8;(_0xd0e2c8=_0x13b400[_0x2794b0(0x1d3)])==null||_0xd0e2c8[_0x2794b0(0x17b)](),_0x13b400[_0x2794b0(0x1d3)]=null;}),[_0x2130a8,_0x5be799]),_0x468fb7?_0x23bdaf(_0xa5e188,{'align':_0x3fc323(0x1d7),'disabled':_0x585c36===c[_0x3fc323(0x1cc)],'className':_0x3fc323(0x205),'overlay':_0x23bdaf(Re,{'status':_0x585c36,'coordinator':_0x468fb7}),'children':_0x23bdaf(_0x3fc323(0x1a9),{'className':_0x5bda25(_0x3fc323(0x1aa),{'univer-cursor-not-allowed':_0x585c36===c[_0x3fc323(0x1cc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x585c36!==c[_0x3fc323(0x1cc)]}),'type':_0x3fc323(0x1a9),'children':_0x23bdaf(W,{'className':_0x3fc323(0x19a)})})}):null;}function Re(_0x4a220f){const _0x1c09ad=_0x1191b2,{status:_0x4cb5e6,coordinator:_0x103fd1}=_0x4a220f;switch(_0x4cb5e6){case c[_0x1c09ad(0x20b)]:return _0x23bdaf($e,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x16e)]:return _0x23bdaf(xe,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x1b0)]:return _0x23bdaf(Pe,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x1cc)]:return _0x23bdaf(Te,{});case c[_0x1c09ad(0x1f9)]:return _0x23bdaf(Ae,{'coordinator':_0x103fd1});default:return null;}}function $e(_0x41c802){const _0x310efb=_0x1191b2,{coordinator:_0x410a14}=_0x41c802;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf(_0x310efb(0x179),{'className':_0x310efb(0x1dc),'children':_0x310efb(0x1c8)}),_0x23bdaf(_0x229044,{'onClick':()=>_0x410a14['tryStartPresenting'](),'children':_0x310efb(0x169)})]});}function xe(_0x480756){const _0x39a72a=_0x1191b2,{coordinator:_0x51204c}=_0x480756;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf('div',{'className':_0x39a72a(0x1dc),'children':_0x39a72a(0x18f)}),_0x23bdaf(_0x229044,{'onClick':()=>_0x51204c[_0x39a72a(0x1b4)](),'children':_0x39a72a(0x1b8)})]});}function Pe(_0x11538d){const _0x523dae=_0x1191b2,{coordinator:_0x44e5c9}=_0x11538d;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf('div',{'className':_0x523dae(0x1dc),'children':_0x523dae(0x1f0)}),_0x23bdaf(_0x229044,{'variant':'text','onClick':()=>_0x44e5c9['startFollowing'](),'children':'Start\x20following'})]});}function Ae(_0x1a0e0f){const _0x1497a0=_0x1191b2,{coordinator:_0x29ba19}=_0x1a0e0f;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf(_0x1497a0(0x179),{'className':_0x1497a0(0x1dc),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x23bdaf(_0x229044,{'variant':'default','onClick':()=>_0x29ba19[_0x1497a0(0x1c6)](),'children':_0x1497a0(0x183)})]});}function Te(){const _0x30693d=_0x1191b2;return _0x23bdaf(_0x2260a2,{'children':_0x30693d(0x1a2)});}var Fe=Object[_0x1191b2(0x1cb)],He=(_0x5ca343,_0x5b619b,_0x13067a,_0x3297af)=>{for(var _0x413a50=_0x3297af>0x1?void 0x0:_0x3297af?Fe(_0x5b619b,_0x13067a):_0x5b619b,_0x334f6c=_0x5ca343['length']-0x1,_0x14e78a;_0x334f6c>=0x0;_0x334f6c--)(_0x14e78a=_0x5ca343[_0x334f6c])&&(_0x413a50=_0x14e78a(_0x413a50)||_0x413a50);return _0x413a50;},A=(_0x23edb1,_0x466f95)=>(_0x1311a5,_0x268e25)=>_0x466f95(_0x1311a5,_0x268e25,_0x23edb1);let m=class extends _0x42f139{constructor(_0x4aea36,_0x330108){const _0x3bb5dc=_0x1191b2;super(),this[_0x3bb5dc(0x197)]=_0x4aea36,this[_0x3bb5dc(0x1f4)]=_0x330108,this[_0x3bb5dc(0x187)]();}[_0x1191b2(0x187)](){const _0x3041c6=_0x1191b2;this['disposeWithMe'](this[_0x3041c6(0x1f4)][_0x3041c6(0x1f3)](_0x344c8b[_0x3041c6(0x1a4)],()=>_0x1f7308(Le,this[_0x3041c6(0x197)])));}};m=He([A(0x0,_0x52f490(_0xfcc158)),A(0x1,_0x40fce5)],m);const ye=_0x1191b2(0x167),T={};var Ue=Object[_0x1191b2(0x1cb)],Ve=(_0x12e81c,_0x10d8ff,_0x4c1d34,_0x14a214)=>{const _0x5e97d3=_0x1191b2;for(var _0x32f752=_0x14a214>0x1?void 0x0:_0x14a214?Ue(_0x10d8ff,_0x4c1d34):_0x10d8ff,_0x3bb14c=_0x12e81c[_0x5e97d3(0x1fc)]-0x1,_0x111bb1;_0x3bb14c>=0x0;_0x3bb14c--)(_0x111bb1=_0x12e81c[_0x3bb14c])&&(_0x32f752=_0x111bb1(_0x32f752)||_0x32f752);return _0x32f752;},je=(_0x5ce6c1,_0x43bc64)=>(_0x20307b,_0x5a2e88)=>_0x43bc64(_0x20307b,_0x5a2e88,_0x5ce6c1);let I=class extends _0x42f139{constructor(_0x276cc9){const _0xdcceaf=_0x1191b2;super(),this[_0xdcceaf(0x16f)]=_0x276cc9,this[_0xdcceaf(0x1ec)]();}['_init'](){const _0x20c950=_0x1191b2;[_0x2e5eb8['id'],_0x4c04a3['id'],_0x22d280['id']][_0x20c950(0x1f5)](_0x4e1022=>{const _0x4ca05a=_0x20c950;this['disposeWithMe'](this[_0x4ca05a(0x16f)][_0x4ca05a(0x19f)](_0x4e1022));});}};I=Ve([je(0x0,_0x52f490(L))],I);var Me=Object[_0x1191b2(0x1a8)],ke=Object[_0x1191b2(0x1cb)],Ge=(_0x430524,_0x4c3d91,_0x2adbd6)=>_0x4c3d91 in _0x430524?Me(_0x430524,_0x4c3d91,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2adbd6}):_0x430524[_0x4c3d91]=_0x2adbd6,We=(_0x4240b8,_0xe2fffc,_0x4b037f,_0x51f531)=>{const _0x247721=_0x1191b2;for(var _0x25052b=_0x51f531>0x1?void 0x0:_0x51f531?ke(_0xe2fffc,_0x4b037f):_0xe2fffc,_0x1411e3=_0x4240b8[_0x247721(0x1fc)]-0x1,_0x401bee;_0x1411e3>=0x0;_0x1411e3--)(_0x401bee=_0x4240b8[_0x1411e3])&&(_0x25052b=_0x401bee(_0x25052b)||_0x25052b);return _0x25052b;},F=(_0x22b2c0,_0x5a2661)=>(_0x375af8,_0x5beab9)=>_0x5a2661(_0x375af8,_0x5beab9,_0x22b2c0),B=(_0x403063,_0x516ba0,_0x2f7d83)=>Ge(_0x403063,typeof _0x516ba0!='symbol'?_0x516ba0+'':_0x516ba0,_0x2f7d83);const Ye=_0x1191b2(0x1c0);let b=class extends _0x597a77{constructor(_0x3e96e2=T,_0x452945,_0x3844ad){const _0x58b97e=_0x1191b2;super(),this[_0x58b97e(0x18c)]=_0x3e96e2,this[_0x58b97e(0x197)]=_0x452945,this[_0x58b97e(0x16c)]=_0x3844ad;const {..._0xde74f8}=_0x8b45b2({},T,this[_0x58b97e(0x18c)]);this['_configService'][_0x58b97e(0x1fb)](ye,_0xde74f8);}[_0x1191b2(0x1a0)](){const _0x3bc167=_0x1191b2;_0x277ea5(this[_0x3bc167(0x197)],_0x1a5bcb([[L],[S],[I],[m]],this[_0x3bc167(0x18c)][_0x3bc167(0x1b7)])),_0x412fe3(this[_0x3bc167(0x197)],[[I]]);}[_0x1191b2(0x1af)](){const _0x46bbf4=_0x1191b2;_0x412fe3(this[_0x46bbf4(0x197)],[[m]]);}};B(b,_0x1191b2(0x1fd),_0x52ac2b[_0x1191b2(0x19c)]),B(b,_0x1191b2(0x203),Ye),b=We([_0x31ac97(_0x42c667),F(0x1,_0x52f490(_0xfcc158)),F(0x2,_0x3b6203)],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 _0xba1afe=_0x1575;(function(_0x238760,_0x2e3550){const _0x1d0baa=_0x1575,_0x4160ab=_0x238760();while(!![]){try{const _0x123a17=-parseInt(_0x1d0baa(0xfc))/0x1+parseInt(_0x1d0baa(0xfd))/0x2*(parseInt(_0x1d0baa(0x112))/0x3)+parseInt(_0x1d0baa(0x109))/0x4*(-parseInt(_0x1d0baa(0xfb))/0x5)+parseInt(_0x1d0baa(0x107))/0x6*(parseInt(_0x1d0baa(0x10e))/0x7)+parseInt(_0x1d0baa(0x10b))/0x8*(-parseInt(_0x1d0baa(0x103))/0x9)+parseInt(_0x1d0baa(0xfe))/0xa+parseInt(_0x1d0baa(0x105))/0xb;if(_0x123a17===_0x2e3550)break;else _0x4160ab['push'](_0x4160ab['shift']());}catch(_0x2a94e9){_0x4160ab['push'](_0x4160ab['shift']());}}}(_0x3050,0xbf777));var l=Object[_0xba1afe(0x10c)],w=(_0x135571,_0xab6bd6,_0xe1bd4c)=>_0xab6bd6 in _0x135571?l(_0x135571,_0xab6bd6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe1bd4c}):_0x135571[_0xab6bd6]=_0xe1bd4c,v=(_0x28711d,_0x5293fe,_0x1401ce)=>w(_0x28711d,typeof _0x5293fe!=_0xba1afe(0x114)?_0x5293fe+'':_0x5293fe,_0x1401ce);function _0x1575(_0x27819f,_0x41beae){_0x27819f=_0x27819f-0xfa;const _0x305017=_0x3050();let _0x1575c0=_0x305017[_0x27819f];return _0x1575c0;}function _0x3050(){const _0x2b0130=['_liveShareController','startFollowing','getLiveShareCoordinatorSync','20zOwBkI','239137Jpptex','2syNJtz','6159480NWdJzj','extend','tryStartPresenting','UNIVER_SHEET','get','3152853OHMhUX','stopFollowing','15673504gzEPgl','startPresenting','1009062AofoPm','stopPresenting','446588yHebts','No\x20active\x20workbook\x20found.','32KYZjDW','defineProperty','_injector','7lKHSpk','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','getCurrentUnitOfType','1986753iVkPuo','IDLE','symbol','getUnitId'];_0x3050=function(){return _0x2b0130;};return _0x3050();}import{LiveShareController as _0x368e14,LiveShareStatus as _0x197484}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x372a33,UniverInstanceType as _0x462e53}from'@univerjs/core';import{FUniver as _0x3fb83b,FEnum as _0x3235b8}from'@univerjs/core/facade';class g extends _0x3fb83b{constructor(){const _0x22202e=_0xba1afe;super(...arguments),v(this,_0x22202e(0x116));}['_initialize'](_0x237f06){const _0x3c3a3a=_0xba1afe;this[_0x3c3a3a(0x116)]=_0x237f06[_0x3c3a3a(0x102)](_0x368e14);}['getLiveShareStatus'](){const _0x22cdb4=_0xba1afe;var _0x57b6ec;const _0x13f37f=this[_0x22cdb4(0x10d)][_0x22cdb4(0x102)](_0x372a33)[_0x22cdb4(0x111)](_0x462e53['UNIVER_SHEET']);if(!_0x13f37f)throw new Error(_0x22cdb4(0x10a));const _0x8af84a=_0x13f37f[_0x22cdb4(0x115)](),_0x17bc84=this[_0x22cdb4(0x116)][_0x22cdb4(0xfa)](_0x8af84a);return(_0x57b6ec=_0x17bc84==null?void 0x0:_0x17bc84[_0x22cdb4(0x110)]())!=null?_0x57b6ec:_0x197484[_0x22cdb4(0x113)];}[_0xba1afe(0x117)](){const _0x135714=_0xba1afe,_0x154412=this['_injector'][_0x135714(0x102)](_0x372a33)['getCurrentUnitOfType'](_0x462e53['UNIVER_SHEET']);if(!_0x154412)throw new Error(_0x135714(0x10a));const _0xe62c89=_0x154412[_0x135714(0x115)](),_0x2c12fb=this['_liveShareController'][_0x135714(0xfa)](_0xe62c89);if(!_0x2c12fb)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2c12fb[_0x135714(0x117)]();}[_0xba1afe(0x104)](){const _0x2827d9=_0xba1afe,_0x2ab2c1=this[_0x2827d9(0x10d)]['get'](_0x372a33)[_0x2827d9(0x111)](_0x462e53[_0x2827d9(0x101)]);if(!_0x2ab2c1)throw new Error(_0x2827d9(0x10a));const _0xc846d8=_0x2ab2c1[_0x2827d9(0x115)](),_0x439a8f=this[_0x2827d9(0x116)]['getLiveShareCoordinatorSync'](_0xc846d8);if(!_0x439a8f)throw new Error(_0x2827d9(0x10f));_0x439a8f[_0x2827d9(0x104)]();}[_0xba1afe(0x106)](){const _0x5ba1af=_0xba1afe,_0x660d34=this[_0x5ba1af(0x10d)][_0x5ba1af(0x102)](_0x372a33)[_0x5ba1af(0x111)](_0x462e53[_0x5ba1af(0x101)]);if(!_0x660d34)throw new Error(_0x5ba1af(0x10a));const _0x321573=_0x660d34[_0x5ba1af(0x115)](),_0x3fc79f=this[_0x5ba1af(0x116)][_0x5ba1af(0xfa)](_0x321573);if(!_0x3fc79f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3fc79f[_0x5ba1af(0x100)]();}[_0xba1afe(0x108)](){const _0x4f1831=_0xba1afe,_0x25d029=this[_0x4f1831(0x10d)]['get'](_0x372a33)[_0x4f1831(0x111)](_0x462e53[_0x4f1831(0x101)]);if(!_0x25d029)throw new Error(_0x4f1831(0x10a));const _0x2662de=_0x25d029['getUnitId'](),_0x5c9cf1=this[_0x4f1831(0x116)][_0x4f1831(0xfa)](_0x2662de);if(!_0x5c9cf1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5c9cf1['stopPresenting']();}}_0x3fb83b['extend'](g);class f extends _0x3235b8{get['LiveShareStatusEnum'](){return _0x197484;}}_0x3235b8[_0xba1afe(0xff)](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 _0x1191b2=_0x3c6d;(function(_0x375322,_0x2ad210){const _0x4c8417=_0x3c6d,_0x4d5e73=_0x375322();while(!![]){try{const _0x39b03b=-parseInt(_0x4c8417(0x209))/0x1*(parseInt(_0x4c8417(0x198))/0x2)+parseInt(_0x4c8417(0x1a3))/0x3*(-parseInt(_0x4c8417(0x18e))/0x4)+parseInt(_0x4c8417(0x1d5))/0x5+-parseInt(_0x4c8417(0x19d))/0x6+parseInt(_0x4c8417(0x1ba))/0x7*(-parseInt(_0x4c8417(0x184))/0x8)+parseInt(_0x4c8417(0x1ea))/0x9+parseInt(_0x4c8417(0x1e6))/0xa;if(_0x39b03b===_0x2ad210)break;else _0x4d5e73['push'](_0x4d5e73['shift']());}catch(_0x546531){_0x4d5e73['push'](_0x4d5e73['shift']());}}}(_0x18ef,0x24b08));var J=Object['defineProperty'],K=(_0x45f795,_0x2a0594,_0x5601bc)=>_0x2a0594 in _0x45f795?J(_0x45f795,_0x2a0594,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5601bc}):_0x45f795[_0x2a0594]=_0x5601bc,u=(_0x5e1d5e,_0x1c187b,_0x4de588)=>K(_0x5e1d5e,typeof _0x1c187b!='symbol'?_0x1c187b+'':_0x1c187b,_0x4de588);import{Disposable as _0x42f139,toDisposable as _0x1417df,IUniverInstanceService as _0x13599b,Inject as _0x52f490,Injector as _0xfcc158,IConfigService as _0x3b6203,ICommandService as _0x1133a0,RxDisposable as _0x12d579,UniverInstanceType as _0x52ac2b,DisposableCollection as _0x12bfa0,CommandType as _0x58cba0,DependentOn as _0x31ac97,Plugin as _0x597a77,merge as _0x8b45b2,registerDependencies as _0x277ea5,mergeOverrideWithDependencies as _0x1a5bcb,touchDependencies as _0x412fe3}from'@univerjs/core';import{useDependency as _0x13c131,useObservable as _0x4a22ff,IUIPartsService as _0x40fce5,BuiltInUIPart as _0x344c8b,connectInjector as _0x1f7308}from'@univerjs/ui';import{jsx as _0x23bdaf,jsxs as _0x3c669a,Fragment as _0x2260a2}from'react/jsx-runtime';import{Dropdown as _0xa5e188,clsx as _0x5bda25,Button as _0x229044}from'@univerjs/design';function _0x3c6d(_0x27138e,_0x1d89fc){_0x27138e=_0x27138e-0x166;const _0x18ef1e=_0x18ef();let _0x3c6d4a=_0x18ef1e[_0x27138e];return _0x3c6d4a;}import{useRef as _0x26e3e5,createElement as _0x2270b1,forwardRef as _0x229bee,useState as _0x4c8df0,useEffect as _0x2e70ea}from'react';import{CollaborationEvent as _0x54850e,parseProtocolChangeset as _0x4ea61e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x46ad75,SessionStatus as _0x38f2a3,UniverCollaborationClientPlugin as _0x42c667}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x424699,SetWorksheetActiveOperation as _0x22d280}from'@univerjs/sheets';import{BehaviorSubject as _0x4ad1e3,Subject as _0x338e65}from'rxjs';import{takeUntil as _0x1096b2,throttleTime as _0x23d433}from'rxjs/operators';import{SetZoomRatioOperation as _0x2e5eb8,SetScrollOperation as _0x4c04a3}from'@univerjs/sheets-ui';function k({ref:_0x2db846,..._0x1d0a15}){const _0x38adde=_0x3c6d,{icon:_0xbcf763,id:_0x2c0994,className:_0x1076ad,extend:_0x5afb17,..._0x422897}=_0x1d0a15,_0x97ea70=(_0x38adde(0x206)+_0x2c0994+'\x20'+(_0x1076ad||''))[_0x38adde(0x210)](),_0x11f29b=_0x26e3e5('_'+Oe());return G(_0xbcf763,''+_0x2c0994,{'defIds':_0xbcf763['defIds'],'idSuffix':_0x11f29b[_0x38adde(0x1d3)]},{'ref':_0x2db846,'className':_0x97ea70,..._0x422897},_0x5afb17);}function G(_0x15c8f0,_0x5e405e,_0x110cda,_0x4befed,_0x56dbf2){const _0x1b87c2=_0x3c6d;return _0x2270b1(_0x15c8f0['tag'],{'key':_0x5e405e,...be(_0x15c8f0,_0x110cda,_0x56dbf2),..._0x4befed},(Ee(_0x15c8f0,_0x110cda)[_0x1b87c2(0x194)]||[])[_0x1b87c2(0x208)]((_0x2ed83d,_0x1e451f)=>G(_0x2ed83d,_0x5e405e+'-'+_0x15c8f0[_0x1b87c2(0x202)]+'-'+_0x1e451f,_0x110cda,void 0x0,_0x56dbf2)));}function be(_0x3c29c7,_0x5c62bc,_0x140ab5){const _0x4a5b06=_0x3c6d,_0x29b48c={..._0x3c29c7['attrs']};_0x140ab5!=null&&_0x140ab5[_0x4a5b06(0x1de)]&&_0x29b48c[_0x4a5b06(0x1dd)]===_0x4a5b06(0x1de)&&(_0x29b48c['fill']=_0x140ab5[_0x4a5b06(0x1de)]),_0x3c29c7[_0x4a5b06(0x202)]==='mask'&&_0x29b48c['id']&&(_0x29b48c['id']=_0x29b48c['id']+_0x5c62bc['idSuffix']),Object[_0x4a5b06(0x204)](_0x29b48c)[_0x4a5b06(0x1f5)](([_0x1969da,_0x193e23])=>{const _0x5e0b39=_0x4a5b06;_0x1969da===_0x5e0b39(0x1fa)&&typeof _0x193e23==_0x5e0b39(0x200)&&(_0x29b48c[_0x1969da]=_0x193e23[_0x5e0b39(0x196)](/url\(#(.*)\)/,_0x5e0b39(0x1e8)+_0x5c62bc[_0x5e0b39(0x168)]+')'));});const {defIds:_0x3db7c}=_0x5c62bc;return!_0x3db7c||_0x3db7c[_0x4a5b06(0x1fc)]===0x0||(_0x3c29c7['tag']===_0x4a5b06(0x1be)&&_0x29b48c[_0x4a5b06(0x1d4)]&&(_0x29b48c['xlink:href']=_0x29b48c['xlink:href']+_0x5c62bc[_0x4a5b06(0x168)]),Object['entries'](_0x29b48c)[_0x4a5b06(0x1f5)](([_0x31c1f0,_0x2737b2])=>{const _0x34a785=_0x4a5b06;typeof _0x2737b2==_0x34a785(0x200)&&(_0x29b48c[_0x31c1f0]=_0x2737b2['replace'](/url\(#(.*)\)/,_0x34a785(0x1e8)+_0x5c62bc[_0x34a785(0x168)]+')'));})),_0x29b48c;}function Ee(_0x108315,_0x9e1250){const _0xab565f=_0x3c6d;var _0x31520a;const {defIds:_0x4f0671}=_0x9e1250;return!_0x4f0671||_0x4f0671[_0xab565f(0x1fc)]===0x0?_0x108315:_0x108315[_0xab565f(0x202)]===_0xab565f(0x1e5)&&((_0x31520a=_0x108315[_0xab565f(0x194)])!=null&&_0x31520a[_0xab565f(0x1fc)])?{..._0x108315,'children':_0x108315[_0xab565f(0x194)][_0xab565f(0x208)](_0x449432=>typeof _0x449432[_0xab565f(0x1fe)]['id']=='string'&&_0x4f0671&&_0x4f0671[_0xab565f(0x1bf)](_0x449432[_0xab565f(0x1fe)]['id'])?{..._0x449432,'attrs':{..._0x449432[_0xab565f(0x1fe)],'id':_0x449432['attrs']['id']+_0x9e1250[_0xab565f(0x168)]}}:_0x449432)}:_0x108315;}function Oe(){const _0x47cf0e=_0x3c6d;return Math[_0x47cf0e(0x188)]()[_0x47cf0e(0x18a)](0x24)[_0x47cf0e(0x1ac)](0x2,0x8);}k[_0x1191b2(0x1ed)]=_0x1191b2(0x174);const we={'tag':_0x1191b2(0x16b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1191b2(0x1e3),'viewBox':'0\x200\x2017\x2017','width':_0x1191b2(0x192),'height':'1em'},'children':[{'tag':_0x1191b2(0x1c7),'attrs':{'fill':_0x1191b2(0x20d),'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':_0x1191b2(0x1c7),'attrs':{'fill':_0x1191b2(0x20d),'d':_0x1191b2(0x207),'fillRule':_0x1191b2(0x16d),'clipRule':'evenodd'}}]},W=_0x229bee(function(_0x55ce6c,_0x4f1fcb){return _0x2270b1(k,Object['assign']({},_0x55ce6c,{'id':'live-share-icon','ref':_0x4f1fcb,'icon':we}));});W['displayName']=_0x1191b2(0x1d6);class L extends _0x42f139{constructor(){const _0x345df2=_0x1191b2;super(...arguments),u(this,_0x345df2(0x1a1),new Set()),u(this,_0x345df2(0x1d2),new Set());}[_0x1191b2(0x19f)](_0x542655){const _0x3e75a3=_0x1191b2;return this[_0x3e75a3(0x1a1)][_0x3e75a3(0x1bb)](_0x542655),_0x1417df(()=>this['_sharedOperations'][_0x3e75a3(0x20f)](_0x542655));}['registerInitialStateReporter'](_0x476a63){const _0x15e42f=_0x1191b2;return this['_reporters'][_0x15e42f(0x1bb)](_0x476a63),_0x1417df(()=>this[_0x15e42f(0x1d2)][_0x15e42f(0x20f)](_0x476a63));}[_0x1191b2(0x17c)](_0x4118f1){const _0x5bc383=_0x1191b2;return this[_0x5bc383(0x1a1)][_0x5bc383(0x20c)](_0x4118f1);}[_0x1191b2(0x173)](_0xf020dc){const _0x76e158=_0x1191b2;return Array[_0x76e158(0x1c4)](this[_0x76e158(0x1d2)])[_0x76e158(0x208)](_0x226d29=>_0x226d29(_0xf020dc));}}var Ne=Object[_0x1191b2(0x1cb)],Y=(_0x495b86,_0x2aa9b8,_0x2f8e1f,_0x496a5b)=>{const _0x57a684=_0x1191b2;for(var _0x444968=_0x496a5b>0x1?void 0x0:_0x496a5b?Ne(_0x2aa9b8,_0x2f8e1f):_0x2aa9b8,_0x3dfa43=_0x495b86[_0x57a684(0x1fc)]-0x1,_0x5aecc4;_0x3dfa43>=0x0;_0x3dfa43--)(_0x5aecc4=_0x495b86[_0x3dfa43])&&(_0x444968=_0x5aecc4(_0x444968)||_0x444968);return _0x444968;},_=(_0x4d1ee7,_0x54bc9a)=>(_0x38f715,_0x390c40)=>_0x54bc9a(_0x38f715,_0x390c40,_0x4d1ee7);let S=class extends _0x12d579{constructor(_0x88e00b,_0x4298e1,_0x3d29e0){const _0x192423=_0x1191b2;super(),u(this,_0x192423(0x186),new Map()),(this[_0x192423(0x17f)]=_0x88e00b,this['_injector']=_0x4298e1,this['_collabSessionService']=_0x3d29e0,this[_0x192423(0x1ec)]());}async['getLiveShareCoordinator'](_0x59d1c3){const _0x1bb3ce=_0x1191b2;return this[_0x1bb3ce(0x186)][_0x1bb3ce(0x20c)](_0x59d1c3)||await this[_0x1bb3ce(0x1b3)](_0x59d1c3),this[_0x1bb3ce(0x186)][_0x1bb3ce(0x191)](_0x59d1c3);}[_0x1191b2(0x177)](_0x358ced){const _0x19f00e=_0x1191b2;var _0x32de33;return(_0x32de33=this[_0x19f00e(0x186)][_0x19f00e(0x191)](_0x358ced))!=null?_0x32de33:null;}['_init'](){const _0x453995=_0x1191b2;this['_univerInstanceService'][_0x453995(0x1d1)](_0x52ac2b[_0x453995(0x180)])['pipe'](_0x1096b2(this[_0x453995(0x18b)]))[_0x453995(0x1f1)](async _0x49d54d=>{const _0x4c7ac7=_0x453995,_0x2e687c=_0x49d54d[_0x4c7ac7(0x1e2)]();this[_0x4c7ac7(0x186)][_0x4c7ac7(0x20c)](_0x2e687c)||this[_0x4c7ac7(0x1b3)](_0x2e687c);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x52ac2b[_0x453995(0x180)])[_0x453995(0x1e9)](_0x1096b2(this[_0x453995(0x18b)]))[_0x453995(0x1f1)](_0x5d8709=>{const _0x3a8720=_0x453995,_0x4c1060=_0x5d8709['getUnitId'](),_0x346756=this[_0x3a8720(0x186)][_0x3a8720(0x191)](_0x4c1060);_0x346756==null||_0x346756[_0x3a8720(0x1eb)]();});}async[_0x1191b2(0x1b3)](_0x5e1e02){const _0x32c6f7=_0x1191b2,_0x1e17ab=await this['_collabSessionService'][_0x32c6f7(0x1da)](_0x5e1e02),_0x1346a3=this[_0x32c6f7(0x197)][_0x32c6f7(0x170)](N,_0x5e1e02,_0x1e17ab);return _0x1346a3['init'](),this[_0x32c6f7(0x186)][_0x32c6f7(0x1b2)](_0x5e1e02,_0x1346a3),_0x1346a3;}};S=Y([_(0x0,_0x13599b),_(0x1,_0x52f490(_0xfcc158)),_(0x2,_0x52f490(_0x46ad75))],S);var c=(_0xc68a38=>(_0xc68a38[_0x1191b2(0x1cc)]=_0x1191b2(0x1ee),_0xc68a38[_0x1191b2(0x20b)]=_0x1191b2(0x1cd),_0xc68a38[_0x1191b2(0x16e)]=_0x1191b2(0x1d8),_0xc68a38[_0x1191b2(0x1b0)]=_0x1191b2(0x201),_0xc68a38[_0x1191b2(0x1f9)]=_0x1191b2(0x1ae),_0xc68a38))(c||{});const Ce=_0x1191b2(0x17e),De=0xc8;let N=class extends _0x12d579{constructor(_0x38ee06,_0x293cfa,_0x227d3a,_0x38960d,_0x10dd83){const _0x509a71=_0x1191b2;super(),u(this,_0x509a71(0x1f2),new _0x4ad1e3(_0x509a71(0x1cd))),u(this,_0x509a71(0x178),this[_0x509a71(0x1f2)][_0x509a71(0x190)]()),u(this,_0x509a71(0x1ec),!0x1),u(this,_0x509a71(0x1e7),null),u(this,_0x509a71(0x171),null),(this[_0x509a71(0x1c9)]=_0x38ee06,this[_0x509a71(0x1bc)]=_0x293cfa,this[_0x509a71(0x16c)]=_0x227d3a,this['_liveShareService']=_0x38960d,this[_0x509a71(0x1e1)]=_0x10dd83);}get[_0x1191b2(0x1e4)](){const _0x3be8cc=_0x1191b2;return this[_0x3be8cc(0x1f2)][_0x3be8cc(0x1a5)]();}[_0x1191b2(0x1eb)](){const _0x3bf7f7=_0x1191b2;var _0x9559a8;(_0x9559a8=this[_0x3bf7f7(0x1e7)])==null||_0x9559a8[_0x3bf7f7(0x1eb)](),this[_0x3bf7f7(0x1f2)][_0x3bf7f7(0x1b1)]('idle'),this[_0x3bf7f7(0x1f2)][_0x3bf7f7(0x1ab)]();}[_0x1191b2(0x19b)](){const _0x17c770=_0x1191b2;return this[_0x17c770(0x1e4)];}[_0x1191b2(0x16a)](){const _0x986724=_0x1191b2;this[_0x986724(0x1ec)]||(this[_0x986724(0x1ec)]=!0x0,this['_collabSession'][_0x986724(0x17d)][_0x986724(0x1e9)](_0x1096b2(this[_0x986724(0x18b)]))[_0x986724(0x1f1)](_0x5061fc=>{const _0x114fed=_0x986724;switch(_0x5061fc){case _0x38f2a3[_0x114fed(0x1cc)]:this[_0x114fed(0x199)]();break;case _0x38f2a3[_0x114fed(0x1d0)]:this[_0x114fed(0x185)]();break;}}),this[_0x986724(0x1bc)][_0x986724(0x1a7)][_0x986724(0x1e9)](_0x1096b2(this[_0x986724(0x18b)]))[_0x986724(0x1f1)](_0x1b57e7=>{const _0x4154a3=_0x986724,{eventID:_0x3d71ee}=_0x1b57e7;switch(_0x3d71ee){case _0x54850e[_0x4154a3(0x20a)]:this[_0x4154a3(0x211)](_0x1b57e7);break;case _0x54850e[_0x4154a3(0x166)]:this[_0x4154a3(0x1f6)](_0x1b57e7);break;case _0x54850e['LIVESHARE_TERMINATE']:this[_0x4154a3(0x1b5)]();break;case _0x54850e[_0x4154a3(0x18d)]:this[_0x4154a3(0x1ef)](_0x1b57e7);break;}}));}[_0x1191b2(0x182)](){const _0x272cac=_0x1191b2;this[_0x272cac(0x1bc)][_0x272cac(0x1d9)]({'eventID':_0x54850e['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x272cac(0x1c9)],'userID':this[_0x272cac(0x1bc)]['getMemberID']()}},this[_0x272cac(0x1c9)]);}[_0x1191b2(0x1c6)](){const _0x381341=_0x1191b2;this[_0x381341(0x1e4)]===_0x381341(0x1ae)&&(this['_status$'][_0x381341(0x1b1)]('idle'),this[_0x381341(0x1bc)][_0x381341(0x1d9)]({'eventID':_0x54850e['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x381341(0x1c9)]));}[_0x1191b2(0x1a6)](){const _0x53e064=_0x1191b2;this[_0x53e064(0x1e4)]===_0x53e064(0x201)&&(this[_0x53e064(0x1f2)][_0x53e064(0x1b1)]('following'),this[_0x53e064(0x20e)]());}[_0x1191b2(0x1b4)](){const _0x561b48=_0x1191b2;this[_0x561b48(0x1e4)]===_0x561b48(0x1d8)&&this[_0x561b48(0x1cf)]();}[_0x1191b2(0x211)](_0x35f29e){const _0x5b0cc6=_0x1191b2,{presenter:_0x7f9b81}=_0x35f29e[_0x5b0cc6(0x1bd)],_0x482ed1=this[_0x5b0cc6(0x1bc)][_0x5b0cc6(0x1ca)]();this['_presenter']=_0x7f9b81,_0x7f9b81===_0x482ed1?(this[_0x5b0cc6(0x1cf)](),this[_0x5b0cc6(0x175)]()):this[_0x5b0cc6(0x1e4)]!=='not-following'&&(this[_0x5b0cc6(0x172)](),this[_0x5b0cc6(0x20e)]());}['_fetchOperations'](){const _0x35b053=_0x1191b2,_0xd85293={'eventID':_0x54850e[_0x35b053(0x1db)]};this[_0x35b053(0x1bc)][_0x35b053(0x1d9)](_0xd85293,this[_0x35b053(0x1c9)]);}[_0x1191b2(0x1b5)](){const _0x1c81b9=_0x1191b2;this[_0x1c81b9(0x171)]=null,this[_0x1c81b9(0x1e4)]!==_0x1c81b9(0x1ae)&&this[_0x1c81b9(0x176)]();}[_0x1191b2(0x1ef)](_0x284dd7){const _0x887c70=_0x1191b2;if(this[_0x887c70(0x1e4)]===_0x887c70(0x1d8)&&this['_presenter']===_0x284dd7[_0x887c70(0x1bd)][_0x887c70(0x1c5)]){const _0x329ab8=_0x4ea61e(_0x284dd7[_0x887c70(0x1bd)])[_0x887c70(0x17a)][_0x887c70(0x1c2)]()[_0x887c70(0x195)](_0x2c1ee7=>_0x2c1ee7['id']===_0x424699['id']);if(_0x329ab8){const _0x49d467=_0x329ab8[_0x887c70(0x193)][_0x887c70(0x1b9)],_0x81f4b0=_0x329ab8[_0x887c70(0x193)][_0x887c70(0x1f8)]['id'];setTimeout(()=>{const _0x21dd88=_0x887c70;this[_0x21dd88(0x1e1)][_0x21dd88(0x1c3)](_0x22d280['id'],{'unitId':_0x49d467,'subUnitId':_0x81f4b0},{'fromCollab':!0x0});});}}}[_0x1191b2(0x175)](){const _0x36a5a0=_0x1191b2;this['_status$'][_0x36a5a0(0x1b1)](_0x36a5a0(0x1ae));const _0x43250b=new Map(),_0x22e6eb=this[_0x36a5a0(0x1e7)]=new _0x12bfa0();_0x22e6eb[_0x36a5a0(0x1bb)](_0x1417df(()=>{const _0x446eb7=_0x36a5a0;_0x43250b[_0x446eb7(0x1f5)](_0xe2b1a3=>_0xe2b1a3[_0x446eb7(0x1ab)]()),_0x43250b[_0x446eb7(0x189)]();})),_0x22e6eb['add'](this[_0x36a5a0(0x1e1)]['onCommandExecuted'](_0x258568=>{const _0x2c4ba8=_0x36a5a0;var _0x537d31;if(_0x258568[_0x2c4ba8(0x1fd)]!==_0x58cba0[_0x2c4ba8(0x181)]||!this['_liveShareService'][_0x2c4ba8(0x17c)](_0x258568['id']))return;const {id:_0x3f04f2}=_0x258568;let _0x55c0e4;_0x43250b['has'](_0x3f04f2)?_0x55c0e4=_0x43250b[_0x2c4ba8(0x191)](_0x3f04f2):(_0x55c0e4=new _0x338e65(),_0x43250b[_0x2c4ba8(0x1b2)](_0x3f04f2,_0x55c0e4),_0x55c0e4['pipe'](_0x23d433((_0x537d31=this['_configService'][_0x2c4ba8(0x1c1)](Ce))!=null?_0x537d31:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c4ba8(0x1f1)](_0x5f4677=>{const _0x16abe5=_0x2c4ba8;this['_collabSession'][_0x16abe5(0x1d9)]({'eventID':_0x54850e[_0x16abe5(0x166)],'data':{'unitID':this[_0x16abe5(0x1c9)],'operations':{[_0x5f4677['id']]:{'id':_0x5f4677['id'],'params':JSON[_0x16abe5(0x1df)](_0x5f4677[_0x16abe5(0x193)])}}}},this[_0x16abe5(0x1c9)]);})),_0x55c0e4[_0x2c4ba8(0x1b1)](_0x258568);})),this[_0x36a5a0(0x16f)]['getInitialStates'](this[_0x36a5a0(0x1c9)])[_0x36a5a0(0x1f5)](_0x5607f5=>this[_0x36a5a0(0x1bc)][_0x36a5a0(0x1d9)]({'eventID':_0x54850e[_0x36a5a0(0x166)],'data':{'unitID':this['_unitID'],'operations':{[_0x5607f5['id']]:{'id':_0x5607f5['id'],'params':JSON[_0x36a5a0(0x1df)](_0x5607f5[_0x36a5a0(0x193)])}}}},this[_0x36a5a0(0x1c9)]));}[_0x1191b2(0x172)](){const _0x36bb17=_0x1191b2;var _0x246115;this['_status$'][_0x36bb17(0x1b1)](_0x36bb17(0x1cd)),(_0x246115=this[_0x36bb17(0x1e7)])==null||_0x246115[_0x36bb17(0x1eb)](),this[_0x36bb17(0x1e7)]=null;}[_0x1191b2(0x20e)](){const _0x338b3d=_0x1191b2;var _0x2b76a4;(_0x2b76a4=this[_0x338b3d(0x1e7)])==null||_0x2b76a4['dispose'](),this[_0x338b3d(0x1f2)][_0x338b3d(0x1b1)](_0x338b3d(0x1d8));}[_0x1191b2(0x176)](){const _0x42bd77=_0x1191b2;var _0x389e24;this[_0x42bd77(0x1f2)][_0x42bd77(0x1b1)](_0x42bd77(0x1cd)),(_0x389e24=this[_0x42bd77(0x1e7)])==null||_0x389e24[_0x42bd77(0x1eb)](),this[_0x42bd77(0x1e7)]=null;}[_0x1191b2(0x1cf)](){const _0x326b8c=_0x1191b2;var _0x172890;this[_0x326b8c(0x1f2)][_0x326b8c(0x1b1)](_0x326b8c(0x201)),(_0x172890=this[_0x326b8c(0x1e7)])==null||_0x172890[_0x326b8c(0x1eb)]();}[_0x1191b2(0x1f6)](_0x212d99){const _0x3d982d=_0x1191b2;if([_0x3d982d(0x1ae),_0x3d982d(0x201),_0x3d982d(0x1ee)]['includes'](this['_status'])||!_0x212d99[_0x3d982d(0x1bd)][_0x3d982d(0x1b6)]||_0x212d99['data']['presenter']===this['_collabSession']['getMemberID']())return;this[_0x3d982d(0x1e4)]===_0x3d982d(0x1cd)&&this[_0x3d982d(0x20e)]();const _0x5b4ed5=_0x212d99[_0x3d982d(0x1bd)][_0x3d982d(0x1e0)];Object[_0x3d982d(0x1f7)](_0x5b4ed5)['forEach'](_0x1ce5fd=>{const _0x2952b5=_0x3d982d;this[_0x2952b5(0x1e1)][_0x2952b5(0x1c3)](_0x1ce5fd['id'],_0x1ce5fd[_0x2952b5(0x193)]?JSON[_0x2952b5(0x1ce)](_0x1ce5fd[_0x2952b5(0x193)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3434ae=_0x1191b2;var _0x5040be;this['_status$'][_0x3434ae(0x1b1)](_0x3434ae(0x1ee)),(_0x5040be=this[_0x3434ae(0x1e7)])==null||_0x5040be['dispose']();}['_handleOnline'](){const _0x1ad42b=_0x1191b2;this[_0x1ad42b(0x1f2)][_0x1ad42b(0x1b1)](_0x1ad42b(0x1cd)),this['_fetchOperations']();}};N=Y([_(0x2,_0x3b6203),_(0x3,_0x52f490(L)),_(0x4,_0x1133a0)],N);function _0x18ef(){const _0x2c07e1=['fill','colorChannel1','stringify','operations','_commandService','getUnitId','none','_status','defs','4569200XiUAfa','_commandDisposable','url(#$1','pipe','1588023xgFIcT','dispose','_init','displayName','offline','_handleNewChangeSets','You\x27re\x20not\x20following\x20the\x20presenter','subscribe','_status$','registerComponent','_uiPartsService','forEach','_handleOperation','values','sheet','PRESENTING','mask','setConfig','length','type','attrs','then','string','not-following','tag','pluginName','entries','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','univerjs-icon\x20univerjs-icon-','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','map','5191WjNups','LIVESHARE_NEW_HOST','IDLE','has','currentColor','_startFollowing','delete','trim','_handleNewHost','LIVESHARE_OPERATION','live-share.config','idSuffix','Start','init','svg','_configService','evenodd','FOLLOWING','_liveShareService','createInstance','_presenter','_stopPresenting','getInitialStates','UniverIcon','_startPresenting','_beIdle','getLiveShareCoordinatorSync','status$','div','mutations','unsubscribe','shouldShareOperation','sessionStatus$','SAME_OPERATION_SHARE_INTERVAL','_univerInstanceService','UNIVER_SHEET','OPERATION','tryStartPresenting','Stop\x20presenting','553856mVrDyc','_handleOnline','_entities','_mountLiveShare','random','clear','toString','dispose$','_config','NEW_CHANGESETS','52ZweQzB','You\x27re\x20following\x20the\x20presenter','asObservable','get','1em','params','children','find','replace','_injector','18nInjSU','_handleOffline','univer-size-4','getStatus','UNIVER_UNKNOWN','549390GdTUZv','getLiveShareCoordinator','registerSharedOperation','onStarting','_sharedOperations','You\x27are\x20offline.','45732gZnCMh','HEADER_MENU','getValue','startFollowing','event$','defineProperty','button','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','complete','substring','getCurrentTypeOfUnit$','presenting','onRendered','NOT_FOLLOWING','next','set','_startLiveShareCoordinator','stopFollowing','_handleTerminate','presenter','override','Stop\x20following','unitId','21htOeON','add','_collabSession','data','use','includes','UNIVER_LIVE_SHARE_PLUGIN','getConfig','reverse','executeCommand','from','memberID','stopPresenting','path','Present\x20this\x20document','_unitID','getMemberID','getOwnPropertyDescriptor','OFFLINE','idle','parse','_stopFollowing','ONLINE','getTypeOfUnitAdded$','_reporters','current','xlink:href','305325bpcbWy','LiveShareIcon','end','following','send','requireSession','LIVESHARE_FETCH_OPERATIONS','univer-mb-3\x20univer-w-full\x20univer-text-sm'];_0x18ef=function(){return _0x2c07e1;};return _0x18ef();}function Le(){const _0x3fc323=_0x1191b2,_0x5be799=_0x13c131(S),_0x29c354=_0x13c131(_0x13599b),_0x2130a8=_0x4a22ff(()=>_0x29c354[_0x3fc323(0x1ad)](_0x52ac2b['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x468fb7,_0x363d66]=_0x4c8df0(null),[_0x585c36,_0x8f7a2d]=_0x4c8df0(c['IDLE']),_0x13b400=_0x26e3e5(null);return _0x2e70ea(()=>(_0x2130a8&&_0x5be799[_0x3fc323(0x19e)](_0x2130a8[_0x3fc323(0x1e2)]())[_0x3fc323(0x1ff)](_0x5bb7fd=>{const _0xdf8946=_0x3fc323;_0x363d66(_0x5bb7fd),_0x13b400[_0xdf8946(0x1d3)]=_0x5bb7fd[_0xdf8946(0x178)]['subscribe'](_0x1a5505=>{_0x8f7a2d(_0x1a5505);});}),()=>{const _0x2794b0=_0x3fc323;var _0xd0e2c8;(_0xd0e2c8=_0x13b400[_0x2794b0(0x1d3)])==null||_0xd0e2c8[_0x2794b0(0x17b)](),_0x13b400[_0x2794b0(0x1d3)]=null;}),[_0x2130a8,_0x5be799]),_0x468fb7?_0x23bdaf(_0xa5e188,{'align':_0x3fc323(0x1d7),'disabled':_0x585c36===c[_0x3fc323(0x1cc)],'className':_0x3fc323(0x205),'overlay':_0x23bdaf(Re,{'status':_0x585c36,'coordinator':_0x468fb7}),'children':_0x23bdaf(_0x3fc323(0x1a9),{'className':_0x5bda25(_0x3fc323(0x1aa),{'univer-cursor-not-allowed':_0x585c36===c[_0x3fc323(0x1cc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x585c36!==c[_0x3fc323(0x1cc)]}),'type':_0x3fc323(0x1a9),'children':_0x23bdaf(W,{'className':_0x3fc323(0x19a)})})}):null;}function Re(_0x4a220f){const _0x1c09ad=_0x1191b2,{status:_0x4cb5e6,coordinator:_0x103fd1}=_0x4a220f;switch(_0x4cb5e6){case c[_0x1c09ad(0x20b)]:return _0x23bdaf($e,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x16e)]:return _0x23bdaf(xe,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x1b0)]:return _0x23bdaf(Pe,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x1cc)]:return _0x23bdaf(Te,{});case c[_0x1c09ad(0x1f9)]:return _0x23bdaf(Ae,{'coordinator':_0x103fd1});default:return null;}}function $e(_0x41c802){const _0x310efb=_0x1191b2,{coordinator:_0x410a14}=_0x41c802;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf(_0x310efb(0x179),{'className':_0x310efb(0x1dc),'children':_0x310efb(0x1c8)}),_0x23bdaf(_0x229044,{'onClick':()=>_0x410a14['tryStartPresenting'](),'children':_0x310efb(0x169)})]});}function xe(_0x480756){const _0x39a72a=_0x1191b2,{coordinator:_0x51204c}=_0x480756;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf('div',{'className':_0x39a72a(0x1dc),'children':_0x39a72a(0x18f)}),_0x23bdaf(_0x229044,{'onClick':()=>_0x51204c[_0x39a72a(0x1b4)](),'children':_0x39a72a(0x1b8)})]});}function Pe(_0x11538d){const _0x523dae=_0x1191b2,{coordinator:_0x44e5c9}=_0x11538d;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf('div',{'className':_0x523dae(0x1dc),'children':_0x523dae(0x1f0)}),_0x23bdaf(_0x229044,{'variant':'text','onClick':()=>_0x44e5c9['startFollowing'](),'children':'Start\x20following'})]});}function Ae(_0x1a0e0f){const _0x1497a0=_0x1191b2,{coordinator:_0x29ba19}=_0x1a0e0f;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf(_0x1497a0(0x179),{'className':_0x1497a0(0x1dc),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x23bdaf(_0x229044,{'variant':'default','onClick':()=>_0x29ba19[_0x1497a0(0x1c6)](),'children':_0x1497a0(0x183)})]});}function Te(){const _0x30693d=_0x1191b2;return _0x23bdaf(_0x2260a2,{'children':_0x30693d(0x1a2)});}var Fe=Object[_0x1191b2(0x1cb)],He=(_0x5ca343,_0x5b619b,_0x13067a,_0x3297af)=>{for(var _0x413a50=_0x3297af>0x1?void 0x0:_0x3297af?Fe(_0x5b619b,_0x13067a):_0x5b619b,_0x334f6c=_0x5ca343['length']-0x1,_0x14e78a;_0x334f6c>=0x0;_0x334f6c--)(_0x14e78a=_0x5ca343[_0x334f6c])&&(_0x413a50=_0x14e78a(_0x413a50)||_0x413a50);return _0x413a50;},A=(_0x23edb1,_0x466f95)=>(_0x1311a5,_0x268e25)=>_0x466f95(_0x1311a5,_0x268e25,_0x23edb1);let m=class extends _0x42f139{constructor(_0x4aea36,_0x330108){const _0x3bb5dc=_0x1191b2;super(),this[_0x3bb5dc(0x197)]=_0x4aea36,this[_0x3bb5dc(0x1f4)]=_0x330108,this[_0x3bb5dc(0x187)]();}[_0x1191b2(0x187)](){const _0x3041c6=_0x1191b2;this['disposeWithMe'](this[_0x3041c6(0x1f4)][_0x3041c6(0x1f3)](_0x344c8b[_0x3041c6(0x1a4)],()=>_0x1f7308(Le,this[_0x3041c6(0x197)])));}};m=He([A(0x0,_0x52f490(_0xfcc158)),A(0x1,_0x40fce5)],m);const ye=_0x1191b2(0x167),T={};var Ue=Object[_0x1191b2(0x1cb)],Ve=(_0x12e81c,_0x10d8ff,_0x4c1d34,_0x14a214)=>{const _0x5e97d3=_0x1191b2;for(var _0x32f752=_0x14a214>0x1?void 0x0:_0x14a214?Ue(_0x10d8ff,_0x4c1d34):_0x10d8ff,_0x3bb14c=_0x12e81c[_0x5e97d3(0x1fc)]-0x1,_0x111bb1;_0x3bb14c>=0x0;_0x3bb14c--)(_0x111bb1=_0x12e81c[_0x3bb14c])&&(_0x32f752=_0x111bb1(_0x32f752)||_0x32f752);return _0x32f752;},je=(_0x5ce6c1,_0x43bc64)=>(_0x20307b,_0x5a2e88)=>_0x43bc64(_0x20307b,_0x5a2e88,_0x5ce6c1);let I=class extends _0x42f139{constructor(_0x276cc9){const _0xdcceaf=_0x1191b2;super(),this[_0xdcceaf(0x16f)]=_0x276cc9,this[_0xdcceaf(0x1ec)]();}['_init'](){const _0x20c950=_0x1191b2;[_0x2e5eb8['id'],_0x4c04a3['id'],_0x22d280['id']][_0x20c950(0x1f5)](_0x4e1022=>{const _0x4ca05a=_0x20c950;this['disposeWithMe'](this[_0x4ca05a(0x16f)][_0x4ca05a(0x19f)](_0x4e1022));});}};I=Ve([je(0x0,_0x52f490(L))],I);var Me=Object[_0x1191b2(0x1a8)],ke=Object[_0x1191b2(0x1cb)],Ge=(_0x430524,_0x4c3d91,_0x2adbd6)=>_0x4c3d91 in _0x430524?Me(_0x430524,_0x4c3d91,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2adbd6}):_0x430524[_0x4c3d91]=_0x2adbd6,We=(_0x4240b8,_0xe2fffc,_0x4b037f,_0x51f531)=>{const _0x247721=_0x1191b2;for(var _0x25052b=_0x51f531>0x1?void 0x0:_0x51f531?ke(_0xe2fffc,_0x4b037f):_0xe2fffc,_0x1411e3=_0x4240b8[_0x247721(0x1fc)]-0x1,_0x401bee;_0x1411e3>=0x0;_0x1411e3--)(_0x401bee=_0x4240b8[_0x1411e3])&&(_0x25052b=_0x401bee(_0x25052b)||_0x25052b);return _0x25052b;},F=(_0x22b2c0,_0x5a2661)=>(_0x375af8,_0x5beab9)=>_0x5a2661(_0x375af8,_0x5beab9,_0x22b2c0),B=(_0x403063,_0x516ba0,_0x2f7d83)=>Ge(_0x403063,typeof _0x516ba0!='symbol'?_0x516ba0+'':_0x516ba0,_0x2f7d83);const Ye=_0x1191b2(0x1c0);let b=class extends _0x597a77{constructor(_0x3e96e2=T,_0x452945,_0x3844ad){const _0x58b97e=_0x1191b2;super(),this[_0x58b97e(0x18c)]=_0x3e96e2,this[_0x58b97e(0x197)]=_0x452945,this[_0x58b97e(0x16c)]=_0x3844ad;const {..._0xde74f8}=_0x8b45b2({},T,this[_0x58b97e(0x18c)]);this['_configService'][_0x58b97e(0x1fb)](ye,_0xde74f8);}[_0x1191b2(0x1a0)](){const _0x3bc167=_0x1191b2;_0x277ea5(this[_0x3bc167(0x197)],_0x1a5bcb([[L],[S],[I],[m]],this[_0x3bc167(0x18c)][_0x3bc167(0x1b7)])),_0x412fe3(this[_0x3bc167(0x197)],[[I]]);}[_0x1191b2(0x1af)](){const _0x46bbf4=_0x1191b2;_0x412fe3(this[_0x46bbf4(0x197)],[[m]]);}};B(b,_0x1191b2(0x1fd),_0x52ac2b[_0x1191b2(0x19c)]),B(b,_0x1191b2(0x203),Ye),b=We([_0x31ac97(_0x42c667),F(0x1,_0x52f490(_0xfcc158)),F(0x2,_0x3b6203)],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 _0x1b2f(_0x16ac72,_0x17b1fa){_0x16ac72=_0x16ac72-0x1c6;const _0xef3301=_0xef33();let _0x1b2f00=_0xef3301[_0x16ac72];return _0x1b2f00;}(function(_0x4b8692,_0x4839c1){const _0x444cdf=_0x1b2f,_0x358157=_0x4b8692();while(!![]){try{const _0x2f2761=-parseInt(_0x444cdf(0x1e4))/0x1*(-parseInt(_0x444cdf(0x1d2))/0x2)+parseInt(_0x444cdf(0x1e5))/0x3+parseInt(_0x444cdf(0x1e6))/0x4*(parseInt(_0x444cdf(0x1ce))/0x5)+-parseInt(_0x444cdf(0x1f0))/0x6*(parseInt(_0x444cdf(0x1e9))/0x7)+-parseInt(_0x444cdf(0x1d8))/0x8+parseInt(_0x444cdf(0x1de))/0x9*(-parseInt(_0x444cdf(0x1ea))/0xa)+parseInt(_0x444cdf(0x1ec))/0xb;if(_0x2f2761===_0x4839c1)break;else _0x358157['push'](_0x358157['shift']());}catch(_0x44a70a){_0x358157['push'](_0x358157['shift']());}}}(_0xef33,0x66f38),function(_0x3132a1,_0x37967f){const _0x26f7e4=_0x1b2f;typeof exports=='object'&&typeof module<'u'?_0x37967f(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x26f7e4(0x1cc)&&define[_0x26f7e4(0x1db)]?define([_0x26f7e4(0x1d6),_0x26f7e4(0x1d9),_0x26f7e4(0x1d7)],_0x37967f):(_0x3132a1=typeof globalThis<'u'?globalThis:_0x3132a1||self,_0x37967f(_0x3132a1[_0x26f7e4(0x1da)],_0x3132a1[_0x26f7e4(0x1ee)],_0x3132a1[_0x26f7e4(0x1df)]));}(this,function(_0x10e21c,_0x36c8ce,_0x20bf55){'use strict';const _0x131bb3=_0x1b2f;var _0x573eb0=Object[_0x131bb3(0x1e2)],_0x3e61ac=(_0x546562,_0x25bd00,_0x48818d)=>_0x25bd00 in _0x546562?_0x573eb0(_0x546562,_0x25bd00,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48818d}):_0x546562[_0x25bd00]=_0x48818d,_0x464a47=(_0x1d2850,_0x325902,_0x3ece79)=>_0x3e61ac(_0x1d2850,typeof _0x325902!=_0x131bb3(0x1cf)?_0x325902+'':_0x325902,_0x3ece79);class _0x49a55e extends _0x20bf55[_0x131bb3(0x1e0)]{constructor(){const _0x5d84cb=_0x131bb3;super(...arguments),_0x464a47(this,_0x5d84cb(0x1f1));}[_0x131bb3(0x1cd)](_0x4175cd){const _0x26df19=_0x131bb3;this[_0x26df19(0x1f1)]=_0x4175cd[_0x26df19(0x1d0)](_0x10e21c[_0x26df19(0x1e7)]);}['getLiveShareStatus'](){const _0x473a39=_0x131bb3;var _0xecedb;const _0x7ce27d=this[_0x473a39(0x1eb)][_0x473a39(0x1d0)](_0x36c8ce[_0x473a39(0x1d3)])[_0x473a39(0x1ed)](_0x36c8ce[_0x473a39(0x1ca)][_0x473a39(0x1c6)]);if(!_0x7ce27d)throw new Error(_0x473a39(0x1c7));const _0x7292a4=_0x7ce27d[_0x473a39(0x1dd)](),_0x36a09a=this['_liveShareController'][_0x473a39(0x1e8)](_0x7292a4);return(_0xecedb=_0x36a09a==null?void 0x0:_0x36a09a['getStatus']())!=null?_0xecedb:_0x10e21c[_0x473a39(0x1cb)][_0x473a39(0x1ef)];}[_0x131bb3(0x1d1)](){const _0x4bfb6e=_0x131bb3,_0x2ae002=this[_0x4bfb6e(0x1eb)][_0x4bfb6e(0x1d0)](_0x36c8ce['IUniverInstanceService'])[_0x4bfb6e(0x1ed)](_0x36c8ce[_0x4bfb6e(0x1ca)][_0x4bfb6e(0x1c6)]);if(!_0x2ae002)throw new Error(_0x4bfb6e(0x1c7));const _0x2ab482=_0x2ae002['getUnitId'](),_0x1549aa=this[_0x4bfb6e(0x1f1)][_0x4bfb6e(0x1e8)](_0x2ab482);if(!_0x1549aa)throw new Error(_0x4bfb6e(0x1c9));_0x1549aa[_0x4bfb6e(0x1d1)]();}['stopFollowing'](){const _0x1699c4=_0x131bb3,_0x90bd00=this[_0x1699c4(0x1eb)][_0x1699c4(0x1d0)](_0x36c8ce[_0x1699c4(0x1d3)])['getCurrentUnitOfType'](_0x36c8ce['UniverInstanceType'][_0x1699c4(0x1c6)]);if(!_0x90bd00)throw new Error(_0x1699c4(0x1c7));const _0x1ad299=_0x90bd00['getUnitId'](),_0x525c64=this['_liveShareController'][_0x1699c4(0x1e8)](_0x1ad299);if(!_0x525c64)throw new Error(_0x1699c4(0x1c9));_0x525c64[_0x1699c4(0x1c8)]();}[_0x131bb3(0x1d5)](){const _0x5b63ec=_0x131bb3,_0x5d64f2=this[_0x5b63ec(0x1eb)]['get'](_0x36c8ce['IUniverInstanceService'])[_0x5b63ec(0x1ed)](_0x36c8ce[_0x5b63ec(0x1ca)][_0x5b63ec(0x1c6)]);if(!_0x5d64f2)throw new Error(_0x5b63ec(0x1c7));const _0x2e6d33=_0x5d64f2['getUnitId'](),_0x1dcbd3=this['_liveShareController'][_0x5b63ec(0x1e8)](_0x2e6d33);if(!_0x1dcbd3)throw new Error(_0x5b63ec(0x1c9));_0x1dcbd3[_0x5b63ec(0x1d4)]();}[_0x131bb3(0x1dc)](){const _0x4c540a=_0x131bb3,_0x4d82b3=this[_0x4c540a(0x1eb)]['get'](_0x36c8ce['IUniverInstanceService'])[_0x4c540a(0x1ed)](_0x36c8ce[_0x4c540a(0x1ca)][_0x4c540a(0x1c6)]);if(!_0x4d82b3)throw new Error(_0x4c540a(0x1c7));const _0x296215=_0x4d82b3['getUnitId'](),_0x39aa1c=this[_0x4c540a(0x1f1)][_0x4c540a(0x1e8)](_0x296215);if(!_0x39aa1c)throw new Error(_0x4c540a(0x1c9));_0x39aa1c['stopPresenting']();}}_0x20bf55[_0x131bb3(0x1e0)][_0x131bb3(0x1e3)](_0x49a55e);class _0x8da196 extends _0x20bf55['FEnum']{get[_0x131bb3(0x1e1)](){const _0x177b32=_0x131bb3;return _0x10e21c[_0x177b32(0x1cb)];}}_0x20bf55['FEnum'][_0x131bb3(0x1e3)](_0x8da196);}));function _0xef33(){const _0x486ac8=['UniverCoreFacade','FUniver','LiveShareStatusEnum','defineProperty','extend','194433CwWMcH','208548Qyasdm','24DBnGtU','LiveShareController','getLiveShareCoordinatorSync','1310330BLdoaH','70hOcuIf','_injector','278773NAlbjB','getCurrentUnitOfType','UniverCore','IDLE','6PnFtfk','_liveShareController','UNIVER_SHEET','No\x20active\x20workbook\x20found.','stopFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UniverInstanceType','LiveShareStatus','function','_initialize','596815XgtvWJ','symbol','get','startFollowing','2GziHkt','IUniverInstanceService','tryStartPresenting','startPresenting','@univerjs-pro/live-share','@univerjs/core/facade','1045912loYcqH','@univerjs/core','UniverProLiveShare','amd','stopPresenting','getUnitId','341811dzcKNL'];_0xef33=function(){return _0x486ac8;};return _0xef33();}
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(_0x4678fc,_0x533038){const _0x38525b=_0x5a6d,_0xcebde=_0x4678fc();while(!![]){try{const _0x24647d=parseInt(_0x38525b(0xe5))/0x1+-parseInt(_0x38525b(0xfc))/0x2*(parseInt(_0x38525b(0x17e))/0x3)+-parseInt(_0x38525b(0xb4))/0x4+-parseInt(_0x38525b(0x104))/0x5*(parseInt(_0x38525b(0x110))/0x6)+-parseInt(_0x38525b(0x179))/0x7*(parseInt(_0x38525b(0x122))/0x8)+parseInt(_0x38525b(0x139))/0x9*(parseInt(_0x38525b(0xbd))/0xa)+-parseInt(_0x38525b(0xe7))/0xb*(-parseInt(_0x38525b(0xaf))/0xc);if(_0x24647d===_0x533038)break;else _0xcebde['push'](_0xcebde['shift']());}catch(_0x574b97){_0xcebde['push'](_0xcebde['shift']());}}}(_0x4622,0x5288c),function(_0x5ca170,_0x3297e2){const _0x446a9b=_0x5a6d;typeof exports=='object'&&typeof module<'u'?_0x3297e2(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==_0x446a9b(0x107)&&define[_0x446a9b(0x12a)]?define([_0x446a9b(0x13a),_0x446a9b(0x146),_0x446a9b(0xb1),_0x446a9b(0x15d),_0x446a9b(0x11d),_0x446a9b(0x17f),_0x446a9b(0xfd),_0x446a9b(0xf7),_0x446a9b(0xb6),'rxjs',_0x446a9b(0xdb),_0x446a9b(0x105)],_0x3297e2):(_0x5ca170=typeof globalThis<'u'?globalThis:_0x5ca170||self,_0x3297e2(_0x5ca170['UniverProLiveShare']={},_0x5ca170[_0x446a9b(0x11b)],_0x5ca170[_0x446a9b(0x10f)],_0x5ca170[_0x446a9b(0x17a)],_0x5ca170[_0x446a9b(0xfb)],_0x5ca170[_0x446a9b(0x17a)],_0x5ca170['UniverProCollaboration'],_0x5ca170[_0x446a9b(0x13f)],_0x5ca170[_0x446a9b(0x121)],_0x5ca170[_0x446a9b(0xc6)],_0x5ca170['rxjs'][_0x446a9b(0xf5)],_0x5ca170[_0x446a9b(0x136)]));}(this,function(_0xb111cc,_0x4c6753,_0x462432,_0x1a7374,_0x17fd4c,_0x18d1ec,_0x4361d9,_0x5a4563,_0x57d05a,_0x3a52e9,_0x29a6c7,_0x290a03){'use strict';const _0x18f5c5=_0x5a6d;var _0x5b0c64=Object[_0x18f5c5(0x12f)],_0x2cdc91=(_0x3737f8,_0x587626,_0x14d572)=>_0x587626 in _0x3737f8?_0x5b0c64(_0x3737f8,_0x587626,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14d572}):_0x3737f8[_0x587626]=_0x14d572,_0x3b8ef1=(_0xa67856,_0x3afa65,_0x50b938)=>_0x2cdc91(_0xa67856,typeof _0x3afa65!='symbol'?_0x3afa65+'':_0x3afa65,_0x50b938);function _0x22a2dc({ref:_0x483fa9,..._0x1a881a}){const _0x2ea157=_0x18f5c5,{icon:_0x4eb951,id:_0x171c6c,className:_0x5cb6c1,extend:_0x503a2b,..._0x90069c}=_0x1a881a,_0x20e750=(_0x2ea157(0xdf)+_0x171c6c+'\x20'+(_0x5cb6c1||''))[_0x2ea157(0x16e)](),_0x72926c=_0x18d1ec['useRef']('_'+_0x420418());return _0x24d52a(_0x4eb951,''+_0x171c6c,{'defIds':_0x4eb951[_0x2ea157(0x181)],'idSuffix':_0x72926c[_0x2ea157(0xe6)]},{'ref':_0x483fa9,'className':_0x20e750,..._0x90069c},_0x503a2b);}function _0x24d52a(_0x2e5f56,_0x229bad,_0x319a65,_0x581e67,_0x2cbcc4){const _0x42c150=_0x18f5c5;return _0x18d1ec[_0x42c150(0x135)](_0x2e5f56['tag'],{'key':_0x229bad,..._0x4efeb5(_0x2e5f56,_0x319a65,_0x2cbcc4),..._0x581e67},(_0x47ddd5(_0x2e5f56,_0x319a65)['children']||[])[_0x42c150(0x15c)]((_0x4411a8,_0x1f83e6)=>_0x24d52a(_0x4411a8,_0x229bad+'-'+_0x2e5f56['tag']+'-'+_0x1f83e6,_0x319a65,void 0x0,_0x2cbcc4)));}function _0x4efeb5(_0x30fe01,_0x3322a2,_0x1e1a72){const _0x2ef1dc=_0x18f5c5,_0x2b9095={..._0x30fe01['attrs']};_0x1e1a72!=null&&_0x1e1a72[_0x2ef1dc(0xc5)]&&_0x2b9095[_0x2ef1dc(0x170)]===_0x2ef1dc(0xc5)&&(_0x2b9095[_0x2ef1dc(0x170)]=_0x1e1a72['colorChannel1']),_0x30fe01[_0x2ef1dc(0x13c)]===_0x2ef1dc(0x180)&&_0x2b9095['id']&&(_0x2b9095['id']=_0x2b9095['id']+_0x3322a2[_0x2ef1dc(0x17c)]),Object['entries'](_0x2b9095)[_0x2ef1dc(0x109)](([_0x5bdb67,_0x14ebd5])=>{const _0x30761e=_0x2ef1dc;_0x5bdb67===_0x30761e(0x180)&&typeof _0x14ebd5==_0x30761e(0xb2)&&(_0x2b9095[_0x5bdb67]=_0x14ebd5[_0x30761e(0xfe)](/url\(#(.*)\)/,_0x30761e(0x101)+_0x3322a2['idSuffix']+')'));});const {defIds:_0xa673b}=_0x3322a2;return!_0xa673b||_0xa673b['length']===0x0||(_0x30fe01[_0x2ef1dc(0x13c)]==='use'&&_0x2b9095[_0x2ef1dc(0xcc)]&&(_0x2b9095[_0x2ef1dc(0xcc)]=_0x2b9095[_0x2ef1dc(0xcc)]+_0x3322a2[_0x2ef1dc(0x17c)]),Object[_0x2ef1dc(0x116)](_0x2b9095)['forEach'](([_0x958f44,_0x489871])=>{const _0x432dea=_0x2ef1dc;typeof _0x489871==_0x432dea(0xb2)&&(_0x2b9095[_0x958f44]=_0x489871[_0x432dea(0xfe)](/url\(#(.*)\)/,'url(#$1'+_0x3322a2['idSuffix']+')'));})),_0x2b9095;}function _0x47ddd5(_0x15ed73,_0x5bc13d){const _0x361999=_0x18f5c5;var _0x12d877;const {defIds:_0x404156}=_0x5bc13d;return!_0x404156||_0x404156[_0x361999(0x151)]===0x0?_0x15ed73:_0x15ed73[_0x361999(0x13c)]===_0x361999(0xd2)&&((_0x12d877=_0x15ed73[_0x361999(0xf2)])!=null&&_0x12d877[_0x361999(0x151)])?{..._0x15ed73,'children':_0x15ed73[_0x361999(0xf2)][_0x361999(0x15c)](_0x59d01a=>typeof _0x59d01a[_0x361999(0x163)]['id']==_0x361999(0xb2)&&_0x404156&&_0x404156[_0x361999(0x14f)](_0x59d01a['attrs']['id'])?{..._0x59d01a,'attrs':{..._0x59d01a[_0x361999(0x163)],'id':_0x59d01a[_0x361999(0x163)]['id']+_0x5bc13d['idSuffix']}}:_0x59d01a)}:_0x15ed73;}function _0x420418(){const _0x587dc9=_0x18f5c5;return Math['random']()[_0x587dc9(0x19d)](0x24)['substring'](0x2,0x8);}_0x22a2dc['displayName']='UniverIcon';const _0x370a10={'tag':_0x18f5c5(0x14d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x18f5c5(0x156),'viewBox':_0x18f5c5(0x162),'width':_0x18f5c5(0x143),'height':_0x18f5c5(0x143)},'children':[{'tag':_0x18f5c5(0xd8),'attrs':{'fill':'currentColor','d':_0x18f5c5(0xc8)}},{'tag':_0x18f5c5(0xd8),'attrs':{'fill':_0x18f5c5(0x118),'d':_0x18f5c5(0x18a),'fillRule':_0x18f5c5(0x14e),'clipRule':_0x18f5c5(0x14e)}}]},_0x24d395=_0x18d1ec['forwardRef'](function(_0x50413f,_0x2e8c63){const _0x574b18=_0x18f5c5;return _0x18d1ec['createElement'](_0x22a2dc,Object[_0x574b18(0xf1)]({},_0x50413f,{'id':_0x574b18(0xb0),'ref':_0x2e8c63,'icon':_0x370a10}));});_0x24d395[_0x18f5c5(0x11f)]=_0x18f5c5(0x159);class _0x3c7620 extends _0x4c6753['Disposable']{constructor(){const _0x527fb4=_0x18f5c5;super(...arguments),_0x3b8ef1(this,_0x527fb4(0x18d),new Set()),_0x3b8ef1(this,_0x527fb4(0x11a),new Set());}['registerSharedOperation'](_0x507721){const _0x353ab0=_0x18f5c5;return this[_0x353ab0(0x18d)][_0x353ab0(0x112)](_0x507721),_0x4c6753['toDisposable'](()=>this['_sharedOperations'][_0x353ab0(0x177)](_0x507721));}[_0x18f5c5(0xee)](_0x5d6d31){const _0x341641=_0x18f5c5;return this[_0x341641(0x11a)][_0x341641(0x112)](_0x5d6d31),_0x4c6753['toDisposable'](()=>this['_reporters'][_0x341641(0x177)](_0x5d6d31));}[_0x18f5c5(0x198)](_0x4b1b2b){const _0x28f4da=_0x18f5c5;return this[_0x28f4da(0x18d)][_0x28f4da(0x19a)](_0x4b1b2b);}[_0x18f5c5(0x108)](_0x52d5ee){const _0x448683=_0x18f5c5;return Array[_0x448683(0x14c)](this[_0x448683(0x11a)])['map'](_0x50e626=>_0x50e626(_0x52d5ee));}}var _0x3278d9=Object[_0x18f5c5(0x10a)],_0x2f2ace=(_0x5e1d53,_0x41c542,_0x19122d,_0x141976)=>{const _0x1a7c88=_0x18f5c5;for(var _0x40707c=_0x141976>0x1?void 0x0:_0x141976?_0x3278d9(_0x41c542,_0x19122d):_0x41c542,_0x644112=_0x5e1d53[_0x1a7c88(0x151)]-0x1,_0x5a504b;_0x644112>=0x0;_0x644112--)(_0x5a504b=_0x5e1d53[_0x644112])&&(_0x40707c=_0x5a504b(_0x40707c)||_0x40707c);return _0x40707c;},_0x210108=(_0x59cb3c,_0x1e4866)=>(_0x560e6c,_0x4cac2c)=>_0x1e4866(_0x560e6c,_0x4cac2c,_0x59cb3c);_0xb111cc[_0x18f5c5(0x175)]=class extends _0x4c6753['RxDisposable']{constructor(_0x5f6a4a,_0x31d724,_0x214ab7){const _0x10ead7=_0x18f5c5;super(),_0x3b8ef1(this,_0x10ead7(0xfa),new Map()),(this[_0x10ead7(0x114)]=_0x5f6a4a,this[_0x10ead7(0xed)]=_0x31d724,this['_collabSessionService']=_0x214ab7,this[_0x10ead7(0xe8)]());}async[_0x18f5c5(0x111)](_0x2d7027){const _0x4af5f6=_0x18f5c5;return this[_0x4af5f6(0xfa)]['has'](_0x2d7027)||await this[_0x4af5f6(0x140)](_0x2d7027),this['_entities']['get'](_0x2d7027);}[_0x18f5c5(0xf4)](_0x2f2a2e){const _0xef048f=_0x18f5c5;var _0x2b023f;return(_0x2b023f=this['_entities'][_0xef048f(0x150)](_0x2f2a2e))!=null?_0x2b023f:null;}[_0x18f5c5(0xe8)](){const _0x39f9d4=_0x18f5c5;this[_0x39f9d4(0x114)]['getTypeOfUnitAdded$'](_0x4c6753[_0x39f9d4(0x166)]['UNIVER_SHEET'])['pipe'](_0x29a6c7[_0x39f9d4(0x131)](this[_0x39f9d4(0x12e)]))[_0x39f9d4(0xd9)](async _0x440617=>{const _0x12463a=_0x39f9d4,_0x3a4d94=_0x440617[_0x12463a(0xd4)]();this[_0x12463a(0xfa)][_0x12463a(0x19a)](_0x3a4d94)||this[_0x12463a(0x140)](_0x3a4d94);}),this[_0x39f9d4(0x114)][_0x39f9d4(0xca)](_0x4c6753['UniverInstanceType'][_0x39f9d4(0x16d)])[_0x39f9d4(0xb9)](_0x29a6c7[_0x39f9d4(0x131)](this['dispose$']))[_0x39f9d4(0xd9)](_0x36d7f=>{const _0x5a6f1b=_0x39f9d4,_0x1ec7fc=_0x36d7f[_0x5a6f1b(0xd4)](),_0x16c6b4=this[_0x5a6f1b(0xfa)][_0x5a6f1b(0x150)](_0x1ec7fc);_0x16c6b4==null||_0x16c6b4['dispose']();});}async[_0x18f5c5(0x140)](_0x2568dc){const _0x2185ca=_0x18f5c5,_0x53c282=await this[_0x2185ca(0x12d)][_0x2185ca(0xe3)](_0x2568dc),_0x419ba2=this[_0x2185ca(0xed)][_0x2185ca(0x182)](_0xb111cc[_0x2185ca(0x183)],_0x2568dc,_0x53c282);return _0x419ba2[_0x2185ca(0x144)](),this[_0x2185ca(0xfa)][_0x2185ca(0x14b)](_0x2568dc,_0x419ba2),_0x419ba2;}},_0xb111cc[_0x18f5c5(0x175)]=_0x2f2ace([_0x210108(0x0,_0x4c6753[_0x18f5c5(0x165)]),_0x210108(0x1,_0x4c6753['Inject'](_0x4c6753[_0x18f5c5(0xf6)])),_0x210108(0x2,_0x4c6753[_0x18f5c5(0x141)](_0x5a4563[_0x18f5c5(0x103)]))],_0xb111cc['LiveShareController']);var _0x2850bb=(_0x29389a=>(_0x29389a['OFFLINE']=_0x18f5c5(0xbc),_0x29389a[_0x18f5c5(0x168)]='idle',_0x29389a[_0x18f5c5(0xc9)]=_0x18f5c5(0xad),_0x29389a[_0x18f5c5(0x18b)]=_0x18f5c5(0x152),_0x29389a[_0x18f5c5(0x173)]=_0x18f5c5(0x160),_0x29389a))(_0x2850bb||{});const _0x2da41f=_0x18f5c5(0x172),_0x40259b=0xc8;_0xb111cc[_0x18f5c5(0x183)]=class extends _0x4c6753[_0x18f5c5(0x197)]{constructor(_0x4f1578,_0x5e4d97,_0x221480,_0x2aecfb,_0x54a5a9){const _0x97bf0=_0x18f5c5;super(),_0x3b8ef1(this,_0x97bf0(0x13d),new _0x3a52e9[(_0x97bf0(0x157))]('idle')),_0x3b8ef1(this,_0x97bf0(0xf0),this[_0x97bf0(0x13d)][_0x97bf0(0x189)]()),_0x3b8ef1(this,_0x97bf0(0xe8),!0x1),_0x3b8ef1(this,_0x97bf0(0x12c),null),_0x3b8ef1(this,_0x97bf0(0x11e),null),(this[_0x97bf0(0x195)]=_0x4f1578,this[_0x97bf0(0x126)]=_0x5e4d97,this[_0x97bf0(0x14a)]=_0x221480,this['_liveShareService']=_0x2aecfb,this[_0x97bf0(0x169)]=_0x54a5a9);}get[_0x18f5c5(0xba)](){const _0x2330e0=_0x18f5c5;return this[_0x2330e0(0x13d)][_0x2330e0(0xd3)]();}[_0x18f5c5(0xc0)](){const _0x5fe829=_0x18f5c5;var _0x123bd2;(_0x123bd2=this[_0x5fe829(0x12c)])==null||_0x123bd2[_0x5fe829(0xc0)](),this['_status$'][_0x5fe829(0x19c)](_0x5fe829(0x19b)),this[_0x5fe829(0x13d)]['complete']();}[_0x18f5c5(0xd6)](){const _0x315cde=_0x18f5c5;return this[_0x315cde(0xba)];}[_0x18f5c5(0x144)](){const _0x33f23a=_0x18f5c5;this[_0x33f23a(0xe8)]||(this[_0x33f23a(0xe8)]=!0x0,this[_0x33f23a(0x126)][_0x33f23a(0xd0)][_0x33f23a(0xb9)](_0x29a6c7['takeUntil'](this[_0x33f23a(0x12e)]))['subscribe'](_0x5c9bcd=>{const _0x4870ef=_0x33f23a;switch(_0x5c9bcd){case _0x5a4563['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case _0x5a4563['SessionStatus'][_0x4870ef(0x13e)]:this[_0x4870ef(0x142)]();break;}}),this[_0x33f23a(0x126)]['event$'][_0x33f23a(0xb9)](_0x29a6c7[_0x33f23a(0x131)](this['dispose$']))['subscribe'](_0x2bceb0=>{const _0x56b808=_0x33f23a,{eventID:_0x4b4a04}=_0x2bceb0;switch(_0x4b4a04){case _0x4361d9[_0x56b808(0xf9)][_0x56b808(0xe2)]:this[_0x56b808(0x128)](_0x2bceb0);break;case _0x4361d9[_0x56b808(0xf9)][_0x56b808(0xff)]:this['_handleOperation'](_0x2bceb0);break;case _0x4361d9['CollaborationEvent'][_0x56b808(0xcf)]:this['_handleTerminate']();break;case _0x4361d9[_0x56b808(0xf9)][_0x56b808(0x11c)]:this['_handleNewChangeSets'](_0x2bceb0);break;}}));}['tryStartPresenting'](){const _0x127aea=_0x18f5c5;this[_0x127aea(0x126)][_0x127aea(0xd5)]({'eventID':_0x4361d9[_0x127aea(0xf9)][_0x127aea(0x193)],'data':{'unitID':this[_0x127aea(0x195)],'userID':this[_0x127aea(0x126)][_0x127aea(0x16b)]()}},this['_unitID']);}[_0x18f5c5(0x15e)](){const _0x42cf39=_0x18f5c5;this[_0x42cf39(0xba)]==='presenting'&&(this['_status$'][_0x42cf39(0x19c)]('idle'),this['_collabSession'][_0x42cf39(0xd5)]({'eventID':_0x4361d9['CollaborationEvent'][_0x42cf39(0xcf)],'data':{'unitID':this[_0x42cf39(0x195)]}},this['_unitID']));}[_0x18f5c5(0x186)](){const _0x189f75=_0x18f5c5;this[_0x189f75(0xba)]===_0x189f75(0x152)&&(this['_status$'][_0x189f75(0x19c)](_0x189f75(0xad)),this[_0x189f75(0x16c)]());}['stopFollowing'](){const _0x5d06fc=_0x18f5c5;this['_status']===_0x5d06fc(0xad)&&this[_0x5d06fc(0x18f)]();}[_0x18f5c5(0x128)](_0x2423e8){const _0x5ef370=_0x18f5c5,{presenter:_0x103ad8}=_0x2423e8['data'],_0x273b38=this[_0x5ef370(0x126)][_0x5ef370(0x16b)]();this[_0x5ef370(0x11e)]=_0x103ad8,_0x103ad8===_0x273b38?(this[_0x5ef370(0x18f)](),this[_0x5ef370(0xc2)]()):this['_status']!==_0x5ef370(0x152)&&(this['_stopPresenting'](),this[_0x5ef370(0x16c)]());}['_fetchOperations'](){const _0x4752ef=_0x18f5c5,_0x3f55a8={'eventID':_0x4361d9[_0x4752ef(0xf9)][_0x4752ef(0xae)]};this[_0x4752ef(0x126)]['send'](_0x3f55a8,this['_unitID']);}['_handleTerminate'](){const _0xa086d6=_0x18f5c5;this[_0xa086d6(0x11e)]=null,this[_0xa086d6(0xba)]!==_0xa086d6(0x160)&&this[_0xa086d6(0xc1)]();}[_0x18f5c5(0xef)](_0x1f8ff2){const _0x5135bc=_0x18f5c5;if(this['_status']===_0x5135bc(0xad)&&this['_presenter']===_0x1f8ff2['data'][_0x5135bc(0xe4)]){const _0x21f5a5=_0x4361d9['parseProtocolChangeset'](_0x1f8ff2[_0x5135bc(0xf3)])[_0x5135bc(0x155)][_0x5135bc(0xeb)]()[_0x5135bc(0xec)](_0x4c8b46=>_0x4c8b46['id']===_0x57d05a[_0x5135bc(0xc4)]['id']);if(_0x21f5a5){const _0xfff753=_0x21f5a5['params'][_0x5135bc(0xbb)],_0x14166f=_0x21f5a5['params'][_0x5135bc(0x15f)]['id'];setTimeout(()=>{const _0x22d03d=_0x5135bc;this[_0x22d03d(0x169)][_0x22d03d(0x199)](_0x57d05a[_0x22d03d(0xb5)]['id'],{'unitId':_0xfff753,'subUnitId':_0x14166f},{'fromCollab':!0x0});});}}}[_0x18f5c5(0xc2)](){const _0x1cd883=_0x18f5c5;this['_status$'][_0x1cd883(0x19c)](_0x1cd883(0x160));const _0x483717=new Map(),_0x5f29e7=this['_commandDisposable']=new _0x4c6753[(_0x1cd883(0x158))]();_0x5f29e7[_0x1cd883(0x112)](_0x4c6753['toDisposable'](()=>{const _0x106e7f=_0x1cd883;_0x483717[_0x106e7f(0x109)](_0x2de76b=>_0x2de76b[_0x106e7f(0x191)]()),_0x483717[_0x106e7f(0x188)]();})),_0x5f29e7['add'](this[_0x1cd883(0x169)][_0x1cd883(0x153)](_0x282433=>{const _0x415fba=_0x1cd883;var _0x31adf1;if(_0x282433[_0x415fba(0x15a)]!==_0x4c6753[_0x415fba(0xd7)][_0x415fba(0x167)]||!this[_0x415fba(0x176)][_0x415fba(0x198)](_0x282433['id']))return;const {id:_0x815d36}=_0x282433;let _0x2b1f18;_0x483717[_0x415fba(0x19a)](_0x815d36)?_0x2b1f18=_0x483717[_0x415fba(0x150)](_0x815d36):(_0x2b1f18=new _0x3a52e9['Subject'](),_0x483717[_0x415fba(0x14b)](_0x815d36,_0x2b1f18),_0x2b1f18[_0x415fba(0xb9)](_0x29a6c7[_0x415fba(0x115)]((_0x31adf1=this[_0x415fba(0x14a)][_0x415fba(0xce)](_0x2da41f))!=null?_0x31adf1:_0x40259b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x415fba(0xd9)](_0x4e2693=>{const _0xee3880=_0x415fba;this[_0xee3880(0x126)][_0xee3880(0xd5)]({'eventID':_0x4361d9['CollaborationEvent'][_0xee3880(0xff)],'data':{'unitID':this[_0xee3880(0x195)],'operations':{[_0x4e2693['id']]:{'id':_0x4e2693['id'],'params':JSON[_0xee3880(0xbf)](_0x4e2693[_0xee3880(0xdd)])}}}},this[_0xee3880(0x195)]);})),_0x2b1f18[_0x415fba(0x19c)](_0x282433);})),this['_liveShareService'][_0x1cd883(0x108)](this['_unitID'])[_0x1cd883(0x109)](_0x3da5bb=>this['_collabSession']['send']({'eventID':_0x4361d9[_0x1cd883(0xf9)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1cd883(0x195)],'operations':{[_0x3da5bb['id']]:{'id':_0x3da5bb['id'],'params':JSON[_0x1cd883(0xbf)](_0x3da5bb[_0x1cd883(0xdd)])}}}},this['_unitID']));}[_0x18f5c5(0xb8)](){const _0xe47c76=_0x18f5c5;var _0x352f55;this[_0xe47c76(0x13d)]['next'](_0xe47c76(0x19b)),(_0x352f55=this[_0xe47c76(0x12c)])==null||_0x352f55[_0xe47c76(0xc0)](),this[_0xe47c76(0x12c)]=null;}[_0x18f5c5(0x16c)](){const _0x1c4c30=_0x18f5c5;var _0x92c3d2;(_0x92c3d2=this[_0x1c4c30(0x12c)])==null||_0x92c3d2[_0x1c4c30(0xc0)](),this[_0x1c4c30(0x13d)][_0x1c4c30(0x19c)](_0x1c4c30(0xad));}[_0x18f5c5(0xc1)](){const _0x4af6d0=_0x18f5c5;var _0x17d946;this['_status$'][_0x4af6d0(0x19c)](_0x4af6d0(0x19b)),(_0x17d946=this[_0x4af6d0(0x12c)])==null||_0x17d946['dispose'](),this[_0x4af6d0(0x12c)]=null;}[_0x18f5c5(0x18f)](){const _0xaa8544=_0x18f5c5;var _0x2227b9;this[_0xaa8544(0x13d)]['next'](_0xaa8544(0x152)),(_0x2227b9=this[_0xaa8544(0x12c)])==null||_0x2227b9[_0xaa8544(0xc0)]();}['_handleOperation'](_0x9f5619){const _0xcbf4a=_0x18f5c5;if(['presenting','not-following',_0xcbf4a(0xbc)][_0xcbf4a(0x14f)](this[_0xcbf4a(0xba)])||!_0x9f5619[_0xcbf4a(0xf3)]['presenter']||_0x9f5619[_0xcbf4a(0xf3)][_0xcbf4a(0x113)]===this['_collabSession'][_0xcbf4a(0x16b)]())return;this['_status']==='idle'&&this[_0xcbf4a(0x16c)]();const _0x5fb6db=_0x9f5619[_0xcbf4a(0xf3)]['operations'];Object[_0xcbf4a(0xc7)](_0x5fb6db)[_0xcbf4a(0x109)](_0x64e42a=>{const _0x30c86d=_0xcbf4a;this[_0x30c86d(0x169)][_0x30c86d(0x199)](_0x64e42a['id'],_0x64e42a[_0x30c86d(0xdd)]?JSON['parse'](_0x64e42a[_0x30c86d(0xdd)]):null,{'fromCollab':!0x0});});}[_0x18f5c5(0x102)](){const _0x3541ce=_0x18f5c5;var _0x2b7187;this['_status$'][_0x3541ce(0x19c)](_0x3541ce(0xbc)),(_0x2b7187=this[_0x3541ce(0x12c)])==null||_0x2b7187['dispose']();}['_handleOnline'](){const _0x4095bf=_0x18f5c5;this[_0x4095bf(0x13d)][_0x4095bf(0x19c)](_0x4095bf(0x19b)),this[_0x4095bf(0x10b)]();}},_0xb111cc['LiveShareCoordinator']=_0x2f2ace([_0x210108(0x2,_0x4c6753['IConfigService']),_0x210108(0x3,_0x4c6753[_0x18f5c5(0x141)](_0x3c7620)),_0x210108(0x4,_0x4c6753['ICommandService'])],_0xb111cc[_0x18f5c5(0x183)]);function _0x4e517b(){const _0x99798a=_0x18f5c5,_0x4e3530=_0x462432[_0x99798a(0x10d)](_0xb111cc[_0x99798a(0x175)]),_0x41c2f2=_0x462432['useDependency'](_0x4c6753[_0x99798a(0x165)]),_0x187f89=_0x462432[_0x99798a(0x196)](()=>_0x41c2f2[_0x99798a(0x178)](_0x4c6753[_0x99798a(0x166)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x51bd81,_0x1c477c]=_0x18d1ec[_0x99798a(0x119)](null),[_0x16b8ce,_0x465ec3]=_0x18d1ec[_0x99798a(0x119)](_0x2850bb[_0x99798a(0x168)]),_0xac22d4=_0x18d1ec[_0x99798a(0xc3)](null);return _0x18d1ec[_0x99798a(0x117)](()=>(_0x187f89&&_0x4e3530[_0x99798a(0x111)](_0x187f89[_0x99798a(0xd4)]())[_0x99798a(0x16f)](_0xa24730=>{const _0x44b86f=_0x99798a;_0x1c477c(_0xa24730),_0xac22d4[_0x44b86f(0xe6)]=_0xa24730[_0x44b86f(0xf0)][_0x44b86f(0xd9)](_0x2dc646=>{_0x465ec3(_0x2dc646);});}),()=>{const _0x1bd003=_0x99798a;var _0x1ed434;(_0x1ed434=_0xac22d4[_0x1bd003(0xe6)])==null||_0x1ed434[_0x1bd003(0x161)](),_0xac22d4[_0x1bd003(0xe6)]=null;}),[_0x187f89,_0x4e3530]),_0x51bd81?_0x1a7374[_0x99798a(0x190)](_0x17fd4c[_0x99798a(0xf8)],{'align':_0x99798a(0x125),'disabled':_0x16b8ce===_0x2850bb[_0x99798a(0xe1)],'className':_0x99798a(0x148),'overlay':_0x1a7374[_0x99798a(0x190)](_0x501ada,{'status':_0x16b8ce,'coordinator':_0x51bd81}),'children':_0x1a7374[_0x99798a(0x190)]('button',{'className':_0x17fd4c['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x16b8ce===_0x2850bb[_0x99798a(0xe1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x16b8ce!==_0x2850bb[_0x99798a(0xe1)]}),'type':_0x99798a(0x138),'children':_0x1a7374[_0x99798a(0x190)](_0x24d395,{'className':'univer-size-4'})})}):null;}function _0x501ada(_0x425410){const _0x50ecba=_0x18f5c5,{status:_0x5502ee,coordinator:_0x13d83c}=_0x425410;switch(_0x5502ee){case _0x2850bb[_0x50ecba(0x168)]:return _0x1a7374[_0x50ecba(0x190)](_0x90695,{'coordinator':_0x13d83c});case _0x2850bb[_0x50ecba(0xc9)]:return _0x1a7374[_0x50ecba(0x190)](_0x243c6d,{'coordinator':_0x13d83c});case _0x2850bb[_0x50ecba(0x18b)]:return _0x1a7374[_0x50ecba(0x190)](_0x39580d,{'coordinator':_0x13d83c});case _0x2850bb[_0x50ecba(0xe1)]:return _0x1a7374[_0x50ecba(0x190)](_0x2e427d,{});case _0x2850bb[_0x50ecba(0x173)]:return _0x1a7374[_0x50ecba(0x190)](_0xbf04f5,{'coordinator':_0x13d83c});default:return null;}}function _0x90695(_0x5b231c){const _0x43b5dd=_0x18f5c5,{coordinator:_0x2c38a7}=_0x5b231c;return _0x1a7374[_0x43b5dd(0x17b)](_0x1a7374[_0x43b5dd(0x18e)],{'children':[_0x1a7374[_0x43b5dd(0x190)](_0x43b5dd(0x17d),{'className':_0x43b5dd(0xb7),'children':_0x43b5dd(0xdc)}),_0x1a7374[_0x43b5dd(0x190)](_0x17fd4c[_0x43b5dd(0x147)],{'onClick':()=>_0x2c38a7['tryStartPresenting'](),'children':_0x43b5dd(0x18c)})]});}function _0x243c6d(_0x5c7593){const _0x3f6e17=_0x18f5c5,{coordinator:_0x181fc0}=_0x5c7593;return _0x1a7374[_0x3f6e17(0x17b)](_0x1a7374[_0x3f6e17(0x18e)],{'children':[_0x1a7374[_0x3f6e17(0x190)](_0x3f6e17(0x17d),{'className':_0x3f6e17(0xb7),'children':_0x3f6e17(0x132)}),_0x1a7374[_0x3f6e17(0x190)](_0x17fd4c[_0x3f6e17(0x147)],{'onClick':()=>_0x181fc0[_0x3f6e17(0xea)](),'children':_0x3f6e17(0x194)})]});}function _0x39580d(_0x2a0497){const _0x5980b9=_0x18f5c5,{coordinator:_0x49ce72}=_0x2a0497;return _0x1a7374[_0x5980b9(0x17b)](_0x1a7374['Fragment'],{'children':[_0x1a7374[_0x5980b9(0x190)]('div',{'className':_0x5980b9(0xb7),'children':_0x5980b9(0x120)}),_0x1a7374[_0x5980b9(0x190)](_0x17fd4c[_0x5980b9(0x147)],{'variant':'text','onClick':()=>_0x49ce72[_0x5980b9(0x186)](),'children':_0x5980b9(0x171)})]});}function _0xbf04f5(_0x2b62b7){const _0x2fed92=_0x18f5c5,{coordinator:_0x56c1ab}=_0x2b62b7;return _0x1a7374['jsxs'](_0x1a7374['Fragment'],{'children':[_0x1a7374[_0x2fed92(0x190)](_0x2fed92(0x17d),{'className':_0x2fed92(0xb7),'children':_0x2fed92(0xe9)}),_0x1a7374[_0x2fed92(0x190)](_0x17fd4c[_0x2fed92(0x147)],{'variant':'default','onClick':()=>_0x56c1ab[_0x2fed92(0x15e)](),'children':_0x2fed92(0x145)})]});}function _0x2e427d(){const _0x175e96=_0x18f5c5;return _0x1a7374[_0x175e96(0x190)](_0x1a7374[_0x175e96(0x18e)],{'children':_0x175e96(0xb3)});}var _0x2415d9=Object[_0x18f5c5(0x10a)],_0x33841a=(_0x5bd820,_0x3d078f,_0x2d58a0,_0x49e3f2)=>{const _0x26d071=_0x18f5c5;for(var _0x4d6a88=_0x49e3f2>0x1?void 0x0:_0x49e3f2?_0x2415d9(_0x3d078f,_0x2d58a0):_0x3d078f,_0x2ff254=_0x5bd820[_0x26d071(0x151)]-0x1,_0x2fbaab;_0x2ff254>=0x0;_0x2ff254--)(_0x2fbaab=_0x5bd820[_0x2ff254])&&(_0x4d6a88=_0x2fbaab(_0x4d6a88)||_0x4d6a88);return _0x4d6a88;},_0x54a7bc=(_0x482f2b,_0x285ea7)=>(_0x37ac69,_0x5a7a90)=>_0x285ea7(_0x37ac69,_0x5a7a90,_0x482f2b);_0xb111cc['DesktopLiveShareController']=class extends _0x4c6753[_0x18f5c5(0x134)]{constructor(_0x37673c,_0x3bee8b){const _0x5b85f6=_0x18f5c5;super(),this['_injector']=_0x37673c,this[_0x5b85f6(0x100)]=_0x3bee8b,this[_0x5b85f6(0x154)]();}[_0x18f5c5(0x154)](){const _0x1497ff=_0x18f5c5;this[_0x1497ff(0x12b)](this[_0x1497ff(0x100)][_0x1497ff(0x164)](_0x462432[_0x1497ff(0x184)][_0x1497ff(0x10c)],()=>_0x462432[_0x1497ff(0xde)](_0x4e517b,this[_0x1497ff(0xed)])));}},_0xb111cc[_0x18f5c5(0xcd)]=_0x33841a([_0x54a7bc(0x0,_0x4c6753[_0x18f5c5(0x141)](_0x4c6753['Injector'])),_0x54a7bc(0x1,_0x462432[_0x18f5c5(0x123)])],_0xb111cc['DesktopLiveShareController']);const _0x438c1a=_0x18f5c5(0x130),_0x22ade5={};var _0x16f195=Object[_0x18f5c5(0x10a)],_0x5dbf3e=(_0x3a6ae9,_0x1e4cb4,_0x52ced4,_0x1840eb)=>{const _0x1a22a8=_0x18f5c5;for(var _0x15357c=_0x1840eb>0x1?void 0x0:_0x1840eb?_0x16f195(_0x1e4cb4,_0x52ced4):_0x1e4cb4,_0x203ec3=_0x3a6ae9[_0x1a22a8(0x151)]-0x1,_0x530250;_0x203ec3>=0x0;_0x203ec3--)(_0x530250=_0x3a6ae9[_0x203ec3])&&(_0x15357c=_0x530250(_0x15357c)||_0x15357c);return _0x15357c;},_0x11b073=(_0x31046e,_0x37939e)=>(_0x45af68,_0x4590ec)=>_0x37939e(_0x45af68,_0x4590ec,_0x31046e);let _0x34efb6=class extends _0x4c6753[_0x18f5c5(0x134)]{constructor(_0x696e6c){const _0x7bbe25=_0x18f5c5;super(),this[_0x7bbe25(0x176)]=_0x696e6c,this[_0x7bbe25(0xe8)]();}[_0x18f5c5(0xe8)](){const _0x1adedf=_0x18f5c5;[_0x290a03[_0x1adedf(0x10e)]['id'],_0x290a03[_0x1adedf(0x192)]['id'],_0x57d05a['SetWorksheetActiveOperation']['id']][_0x1adedf(0x109)](_0x49ee1a=>{const _0x22da44=_0x1adedf;this['disposeWithMe'](this[_0x22da44(0x176)][_0x22da44(0x185)](_0x49ee1a));});}};_0x34efb6=_0x5dbf3e([_0x11b073(0x0,_0x4c6753['Inject'](_0x3c7620))],_0x34efb6);var _0x2e7e4f=Object['defineProperty'],_0x42533f=Object['getOwnPropertyDescriptor'],_0x3c3465=(_0x1f59fe,_0x554e0d,_0x3a39f6)=>_0x554e0d in _0x1f59fe?_0x2e7e4f(_0x1f59fe,_0x554e0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a39f6}):_0x1f59fe[_0x554e0d]=_0x3a39f6,_0x5e4889=(_0x20157c,_0x160eb9,_0x462d1e,_0x21dd5e)=>{const _0x9d0c1=_0x18f5c5;for(var _0x478705=_0x21dd5e>0x1?void 0x0:_0x21dd5e?_0x42533f(_0x160eb9,_0x462d1e):_0x160eb9,_0x16c5a2=_0x20157c[_0x9d0c1(0x151)]-0x1,_0x5b3021;_0x16c5a2>=0x0;_0x16c5a2--)(_0x5b3021=_0x20157c[_0x16c5a2])&&(_0x478705=_0x5b3021(_0x478705)||_0x478705);return _0x478705;},_0x11d38e=(_0x5532f4,_0x5effb5)=>(_0x36dddc,_0x2d6f67)=>_0x5effb5(_0x36dddc,_0x2d6f67,_0x5532f4),_0x431ee0=(_0x35e3d6,_0x284dc2,_0x418b01)=>_0x3c3465(_0x35e3d6,typeof _0x284dc2!=_0x18f5c5(0x106)?_0x284dc2+'':_0x284dc2,_0x418b01);const _0x1ed42f=_0x18f5c5(0x187);_0xb111cc[_0x18f5c5(0x174)]=class extends _0x4c6753[_0x18f5c5(0x137)]{constructor(_0x33ae53=_0x22ade5,_0x5ac544,_0x51b82f){const _0x166891=_0x18f5c5;super(),this['_config']=_0x33ae53,this['_injector']=_0x5ac544,this[_0x166891(0x14a)]=_0x51b82f;const {..._0xed28d3}=_0x4c6753[_0x166891(0x124)]({},_0x22ade5,this['_config']);this['_configService']['setConfig'](_0x438c1a,_0xed28d3);}['onStarting'](){const _0x2124c1=_0x18f5c5;_0x4c6753[_0x2124c1(0xe0)](this['_injector'],_0x4c6753[_0x2124c1(0x16a)]([[_0x3c7620],[_0xb111cc[_0x2124c1(0x175)]],[_0x34efb6],[_0xb111cc['DesktopLiveShareController']]],this[_0x2124c1(0x15b)][_0x2124c1(0xda)])),_0x4c6753[_0x2124c1(0x129)](this['_injector'],[[_0x34efb6]]);}[_0x18f5c5(0xbe)](){const _0x3aede3=_0x18f5c5;_0x4c6753[_0x3aede3(0x129)](this[_0x3aede3(0xed)],[[_0xb111cc['DesktopLiveShareController']]]);}},_0x431ee0(_0xb111cc['UniverLiveSharePlugin'],'type',_0x4c6753['UniverInstanceType'][_0x18f5c5(0x127)]),_0x431ee0(_0xb111cc[_0x18f5c5(0x174)],'pluginName',_0x1ed42f),_0xb111cc[_0x18f5c5(0x174)]=_0x5e4889([_0x4c6753[_0x18f5c5(0x133)](_0x5a4563[_0x18f5c5(0x13b)]),_0x11d38e(0x1,_0x4c6753[_0x18f5c5(0x141)](_0x4c6753['Injector'])),_0x11d38e(0x2,_0x4c6753['IConfigService'])],_0xb111cc['UniverLiveSharePlugin']),_0xb111cc[_0x18f5c5(0xcb)]=_0x4e517b,_0xb111cc['LiveShareService']=_0x3c7620,_0xb111cc['LiveShareStatus']=_0x2850bb,Object[_0x18f5c5(0x12f)](_0xb111cc,Symbol[_0x18f5c5(0x149)],{'value':_0x18f5c5(0xd1)});}));function _0x5a6d(_0x4fe3be,_0x5d7dfe){_0x4fe3be=_0x4fe3be-0xad;const _0x4622eb=_0x4622();let _0x5a6dff=_0x4622eb[_0x4fe3be];return _0x5a6dff;}function _0x4622(){const _0x2de368=['end','_collabSession','UNIVER_UNKNOWN','_handleNewHost','touchDependencies','amd','disposeWithMe','_commandDisposable','_collabSessionService','dispose$','defineProperty','live-share.config','takeUntil','You\x27re\x20following\x20the\x20presenter','DependentOn','Disposable','createElement','UniverSheetsUi','Plugin','button','18arwqlH','exports','UniverCollaborationClientPlugin','tag','_status$','ONLINE','UniverProCollaborationClient','_startLiveShareCoordinator','Inject','_handleOnline','1em','init','Stop\x20presenting','@univerjs/core','Button','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','toStringTag','_configService','set','from','svg','evenodd','includes','get','length','not-following','onCommandExecuted','_mountLiveShare','mutations','none','BehaviorSubject','DisposableCollection','LiveShareIcon','type','_config','map','react/jsx-runtime','stopPresenting','sheet','presenting','unsubscribe','0\x200\x2017\x2017','attrs','registerComponent','IUniverInstanceService','UniverInstanceType','OPERATION','IDLE','_commandService','mergeOverrideWithDependencies','getMemberID','_startFollowing','UNIVER_SHEET','trim','then','fill','Start\x20following','SAME_OPERATION_SHARE_INTERVAL','PRESENTING','UniverLiveSharePlugin','LiveShareController','_liveShareService','delete','getCurrentTypeOfUnit$','28pnJFoU','React','jsxs','idSuffix','div','188919qVRZBN','react','mask','defIds','createInstance','LiveShareCoordinator','BuiltInUIPart','registerSharedOperation','startFollowing','UNIVER_LIVE_SHARE_PLUGIN','clear','asObservable','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','NOT_FOLLOWING','Start','_sharedOperations','Fragment','_stopFollowing','jsx','complete','SetScrollOperation','LIVESHARE_REQUEST_HOST','Stop\x20following','_unitID','useObservable','RxDisposable','shouldShareOperation','executeCommand','has','idle','next','toString','following','LIVESHARE_FETCH_OPERATIONS','96BjNfuc','live-share-icon','@univerjs/ui','string','You\x27are\x20offline.','655216fEDFFG','SetWorksheetActiveOperation','@univerjs/sheets','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting','pipe','_status','unitId','offline','397370rhgaZD','onRendered','stringify','dispose','_beIdle','_startPresenting','useRef','InsertSheetMutation','colorChannel1','rxjs','values','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','FOLLOWING','getTypeOfUnitDisposed$','LiveShare','xlink:href','DesktopLiveShareController','getConfig','LIVESHARE_TERMINATE','sessionStatus$','Module','defs','getValue','getUnitId','send','getStatus','CommandType','path','subscribe','override','rxjs/operators','Present\x20this\x20document','params','connectInjector','univerjs-icon\x20univerjs-icon-','registerDependencies','OFFLINE','LIVESHARE_NEW_HOST','requireSession','memberID','55915eRpwDR','current','1443706tAbUtk','_init','You\x27re\x20presenting\x20the\x20document','stopFollowing','reverse','find','_injector','registerInitialStateReporter','_handleNewChangeSets','status$','assign','children','data','getLiveShareCoordinatorSync','operators','Injector','@univerjs-pro/collaboration-client','Dropdown','CollaborationEvent','_entities','UniverDesign','2CZvddr','@univerjs-pro/collaboration','replace','LIVESHARE_OPERATION','_uiPartsService','url(#$1','_handleOffline','CollaborationSessionService','772085IBXLkn','@univerjs/sheets-ui','symbol','function','getInitialStates','forEach','getOwnPropertyDescriptor','_fetchOperations','HEADER_MENU','useDependency','SetZoomRatioOperation','UniverUi','24nTUKYI','getLiveShareCoordinator','add','presenter','_univerInstanceService','throttleTime','entries','useEffect','currentColor','useState','_reporters','UniverCore','NEW_CHANGESETS','@univerjs/design','_presenter','displayName','You\x27re\x20not\x20following\x20the\x20presenter','UniverSheets','5704TRnneb','IUIPartsService','merge'];_0x4622=function(){return _0x2de368;};return _0x4622();}
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.20260122-b1556b1",
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.20260122-b1556b1",
61
+ "@univerjs/design": "0.15.2-insiders.20260122-b1556b1",
62
+ "@univerjs-pro/collaboration-client": "0.15.2-insiders.20260122-b1556b1",
63
+ "@univerjs/core": "0.15.2-insiders.20260122-b1556b1",
64
+ "@univerjs/sheets": "0.15.2-insiders.20260122-b1556b1",
65
+ "@univerjs/sheets-ui": "0.15.2-insiders.20260122-b1556b1",
66
+ "@univerjs/ui": "0.15.2-insiders.20260122-b1556b1"
68
67
  },
69
68
  "devDependencies": {
70
69
  "postcss": "^8.5.6",
@@ -74,7 +73,7 @@
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",
76
+ "@univerjs-infra/shared": "0.15.2",
78
77
  "@univerjs/protocol": "0.1.48"
79
78
  },
80
79
  "scripts": {
@@ -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
- }