@univerjs-pro/live-share 0.12.3 → 0.12.4

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 _0x47354e=_0x8875;(function(_0x178ac8,_0x1d141a){const _0xb9bbdc=_0x8875,_0x3fcf83=_0x178ac8();while(!![]){try{const _0x29af32=-parseInt(_0xb9bbdc(0x117))/0x1+-parseInt(_0xb9bbdc(0x107))/0x2*(parseInt(_0xb9bbdc(0x108))/0x3)+-parseInt(_0xb9bbdc(0xfa))/0x4+parseInt(_0xb9bbdc(0x10b))/0x5*(parseInt(_0xb9bbdc(0x10e))/0x6)+parseInt(_0xb9bbdc(0xff))/0x7+-parseInt(_0xb9bbdc(0xfe))/0x8*(parseInt(_0xb9bbdc(0xf4))/0x9)+parseInt(_0xb9bbdc(0x11d))/0xa;if(_0x29af32===_0x1d141a)break;else _0x3fcf83['push'](_0x3fcf83['shift']());}catch(_0x17b3eb){_0x3fcf83['push'](_0x3fcf83['shift']());}}}(_0xf733,0xc34d5));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');function _0x8875(_0x150136,_0x2dff40){const _0xf73324=_0xf733();return _0x8875=function(_0x8875e3,_0x21429f){_0x8875e3=_0x8875e3-0xf4;let _0x3c6a26=_0xf73324[_0x8875e3];return _0x3c6a26;},_0x8875(_0x150136,_0x2dff40);}function _0xf733(){const _0x4bfe31=['2220085XYRjlT','getLiveShareCoordinatorSync','FRange','FEnum','getSheetId','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','4LGxEOw','103446qKOSxn','_commandService','PRESENTING','235jLkzGc','getId','IRenderManagerService','19872sXkHbR','startRow','LiveShareController','No\x20active\x20workbook\x20found.','FUniver','syncExecuteCommand','get','IDLE','LiveShareStatusEnum','806100oCXzIu','getRenderById','_initialize','SetWorksheetActiveOperation','SetScrollOperation','getActiveWorkbook','28943780lkpxOG','getActiveSheet','extend','4320LdfSLy','getUnitId','executeCommand','stopFollowing','LiveShareStatus','startFollowing','597824FCzUqU','startColumn','startPresenting','stopPresenting','25712eKkbAv'];_0xf733=function(){return _0x4bfe31;};return _0xf733();}class w extends d[_0x47354e(0x101)]{[_0x47354e(0x119)](_0x51507e,_0x275786,_0x51107a,_0xb3c59f,_0x32e93c){const _0x28e44a=_0x47354e,_0x7d8517=_0x51507e[_0x28e44a(0x114)](n[_0x28e44a(0x110)]),_0x4cc330=_0x51507e[_0x28e44a(0x114)](g[_0x28e44a(0x10d)]),_0x17a2fb=_0x275786[_0x28e44a(0xf5)](),_0x35062a=_0x275786[_0x28e44a(0x11e)](),_0x1ed17e=_0x7d8517['getLiveShareCoordinatorSync'](_0x17a2fb);(_0x1ed17e==null?void 0x0:_0x1ed17e['getStatus']())!==n[_0x28e44a(0xf8)][_0x28e44a(0x10a)]||(_0x51107a[_0x28e44a(0x103)]()!==_0x35062a[_0x28e44a(0x103)]()&&this[_0x28e44a(0x109)][_0x28e44a(0xf6)](u[_0x28e44a(0x11a)]['id'],{'unitId':_0x17a2fb,'subUnitId':_0x51107a[_0x28e44a(0x103)]()}),!_0x4cc330[_0x28e44a(0x118)](_0x17a2fb))||_0x32e93c[_0x28e44a(0x113)](f[_0x28e44a(0x11b)]['id'],{'unitId':_0x275786['getUnitId'](),'sheetId':_0x51107a[_0x28e44a(0x103)](),'sheetViewStartRow':_0xb3c59f[_0x28e44a(0x10f)],'sheetViewStartColumn':_0xb3c59f[_0x28e44a(0xfb)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x47354e(0x101)][_0x47354e(0x11f)](w);class C extends a[_0x47354e(0x112)]{['getLiveShareStatus'](){const _0x263bbb=_0x47354e;var _0x3f02b4,_0x39a637;const _0x53ce99=this['_injector'][_0x263bbb(0x114)](n[_0x263bbb(0x110)]),_0xea4120=(_0x3f02b4=this[_0x263bbb(0x11c)]())==null?void 0x0:_0x3f02b4['getId']();if(!_0xea4120)throw new Error(_0x263bbb(0x111));const _0x11f1d5=_0x53ce99[_0x263bbb(0x100)](_0xea4120);return(_0x39a637=_0x11f1d5==null?void 0x0:_0x11f1d5[_0x263bbb(0x106)]())!=null?_0x39a637:n['LiveShareStatus'][_0x263bbb(0x115)];}[_0x47354e(0xf9)](){const _0x29e6c=_0x47354e;var _0x4e6896;const _0x4ff013=this['_injector']['get'](n['LiveShareController']),_0x4c23da=(_0x4e6896=this['getActiveWorkbook']())==null?void 0x0:_0x4e6896[_0x29e6c(0x10c)]();if(!_0x4c23da)throw new Error('No\x20active\x20workbook\x20found.');const _0x5ec4cf=_0x4ff013[_0x29e6c(0x100)](_0x4c23da);if(!_0x5ec4cf)throw new Error(_0x29e6c(0x105));_0x5ec4cf[_0x29e6c(0xf9)]();}[_0x47354e(0xf7)](){const _0x35780c=_0x47354e;var _0xcc67a7;const _0x3eed94=this['_injector'][_0x35780c(0x114)](n['LiveShareController']),_0x43746b=(_0xcc67a7=this[_0x35780c(0x11c)]())==null?void 0x0:_0xcc67a7[_0x35780c(0x10c)]();if(!_0x43746b)throw new Error(_0x35780c(0x111));const _0x298df7=_0x3eed94[_0x35780c(0x100)](_0x43746b);if(!_0x298df7)throw new Error(_0x35780c(0x105));_0x298df7['stopFollowing']();}[_0x47354e(0xfc)](){const _0x2dfdb5=_0x47354e;var _0x369090;const _0x218ea4=this[_0x2dfdb5(0x104)][_0x2dfdb5(0x114)](n[_0x2dfdb5(0x110)]),_0x1fbcc6=(_0x369090=this['getActiveWorkbook']())==null?void 0x0:_0x369090[_0x2dfdb5(0x10c)]();if(!_0x1fbcc6)throw new Error(_0x2dfdb5(0x111));const _0x17ad4a=_0x218ea4[_0x2dfdb5(0x100)](_0x1fbcc6);if(!_0x17ad4a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x17ad4a['tryStartPresenting']();}[_0x47354e(0xfd)](){const _0x1f9c56=_0x47354e;var _0x190379;const _0x24dd64=this[_0x1f9c56(0x104)][_0x1f9c56(0x114)](n['LiveShareController']),_0x17bdbb=(_0x190379=this[_0x1f9c56(0x11c)]())==null?void 0x0:_0x190379[_0x1f9c56(0x10c)]();if(!_0x17bdbb)throw new Error('No\x20active\x20workbook\x20found.');const _0x5a714d=_0x24dd64[_0x1f9c56(0x100)](_0x17bdbb);if(!_0x5a714d)throw new Error(_0x1f9c56(0x105));_0x5a714d['stopPresenting']();}}a['FUniver'][_0x47354e(0x11f)](C);class L extends a[_0x47354e(0x102)]{get[_0x47354e(0x116)](){const _0x44046c=_0x47354e;return n[_0x44046c(0xf8)];}}a['FEnum'][_0x47354e(0x11f)](L);
1
+ 'use strict';const _0x8b1261=_0x5402;function _0x5402(_0x24929f,_0x1f9386){_0x24929f=_0x24929f-0xdf;const _0x572104=_0x5721();let _0x5402c6=_0x572104[_0x24929f];return _0x5402c6;}(function(_0xb18c9,_0x4ccf70){const _0x15e649=_0x5402,_0x5e6c99=_0xb18c9();while(!![]){try{const _0x2d5ed9=-parseInt(_0x15e649(0xf7))/0x1+parseInt(_0x15e649(0xfc))/0x2*(parseInt(_0x15e649(0xe4))/0x3)+parseInt(_0x15e649(0xff))/0x4*(-parseInt(_0x15e649(0x109))/0x5)+parseInt(_0x15e649(0xe3))/0x6*(parseInt(_0x15e649(0xe1))/0x7)+-parseInt(_0x15e649(0xea))/0x8*(-parseInt(_0x15e649(0xed))/0x9)+-parseInt(_0x15e649(0x10a))/0xa*(parseInt(_0x15e649(0xdf))/0xb)+parseInt(_0x15e649(0x108))/0xc*(parseInt(_0x15e649(0x100))/0xd);if(_0x2d5ed9===_0x4ccf70)break;else _0x5e6c99['push'](_0x5e6c99['shift']());}catch(_0x4dfaa4){_0x5e6c99['push'](_0x5e6c99['shift']());}}}(_0x5721,0xb4aad));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[_0x8b1261(0xe0)]{[_0x8b1261(0xfb)](_0xec7bc8,_0xd75148,_0x8cd401,_0xc95b32,_0x16f77f){const _0xfb3a9=_0x8b1261,_0x493dbe=_0xec7bc8[_0xfb3a9(0xe5)](n[_0xfb3a9(0xe9)]),_0x851284=_0xec7bc8[_0xfb3a9(0xe5)](g[_0xfb3a9(0xee)]),_0x565867=_0xd75148[_0xfb3a9(0x107)](),_0x4e7c01=_0xd75148[_0xfb3a9(0xe2)](),_0x4f577f=_0x493dbe['getLiveShareCoordinatorSync'](_0x565867);(_0x4f577f==null?void 0x0:_0x4f577f[_0xfb3a9(0xf4)]())!==n['LiveShareStatus'][_0xfb3a9(0xfe)]||(_0x8cd401[_0xfb3a9(0xec)]()!==_0x4e7c01[_0xfb3a9(0xec)]()&&this['_commandService']['executeCommand'](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x565867,'subUnitId':_0x8cd401[_0xfb3a9(0xec)]()}),!_0x851284[_0xfb3a9(0x10b)](_0x565867))||_0x16f77f[_0xfb3a9(0x101)](f[_0xfb3a9(0xfa)]['id'],{'unitId':_0xd75148[_0xfb3a9(0x107)](),'sheetId':_0x8cd401[_0xfb3a9(0xec)](),'sheetViewStartRow':_0xc95b32['startRow'],'sheetViewStartColumn':_0xc95b32[_0xfb3a9(0xf8)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x8b1261(0xe0)][_0x8b1261(0xf1)](w);function _0x5721(){const _0x37cde8=['stopPresenting','startPresenting','getStatus','IDLE','stopFollowing','1411018TqhxWC','startColumn','tryStartPresenting','SetScrollOperation','_initialize','50XnaaRM','No\x20active\x20workbook\x20found.','PRESENTING','46076rFzyjP','833417TrFolG','syncExecuteCommand','FEnum','_injector','getLiveShareStatus','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','getUnitId','132wvevlj','70MPSSxe','12470WxplpQ','getRenderById','7073oLHwFV','FRange','1866214zjXPta','getActiveSheet','30rYNJoX','74946XyGlRT','get','FUniver','getLiveShareCoordinatorSync','getId','LiveShareController','3610872mvXCLZ','getActiveWorkbook','getSheetId','9CGnmkl','IRenderManagerService','LiveShareStatusEnum','LiveShareStatus','extend'];_0x5721=function(){return _0x37cde8;};return _0x5721();}class C extends a['FUniver']{[_0x8b1261(0x104)](){const _0x40e5ae=_0x8b1261;var _0x45dc08,_0x59a9cb;const _0x225081=this['_injector'][_0x40e5ae(0xe5)](n[_0x40e5ae(0xe9)]),_0x342967=(_0x45dc08=this[_0x40e5ae(0xeb)]())==null?void 0x0:_0x45dc08['getId']();if(!_0x342967)throw new Error(_0x40e5ae(0xfd));const _0x1b61cd=_0x225081[_0x40e5ae(0xe7)](_0x342967);return(_0x59a9cb=_0x1b61cd==null?void 0x0:_0x1b61cd[_0x40e5ae(0xf4)]())!=null?_0x59a9cb:n[_0x40e5ae(0xf0)][_0x40e5ae(0xf5)];}[_0x8b1261(0x106)](){const _0x5dbcd6=_0x8b1261;var _0xc34b72;const _0x28d6ce=this[_0x5dbcd6(0x103)][_0x5dbcd6(0xe5)](n[_0x5dbcd6(0xe9)]),_0xd44151=(_0xc34b72=this[_0x5dbcd6(0xeb)]())==null?void 0x0:_0xc34b72[_0x5dbcd6(0xe8)]();if(!_0xd44151)throw new Error(_0x5dbcd6(0xfd));const _0x414373=_0x28d6ce[_0x5dbcd6(0xe7)](_0xd44151);if(!_0x414373)throw new Error(_0x5dbcd6(0x105));_0x414373['startFollowing']();}[_0x8b1261(0xf6)](){const _0x5983d=_0x8b1261;var _0x50c9b1;const _0x322c3f=this[_0x5983d(0x103)][_0x5983d(0xe5)](n[_0x5983d(0xe9)]),_0x330d00=(_0x50c9b1=this['getActiveWorkbook']())==null?void 0x0:_0x50c9b1['getId']();if(!_0x330d00)throw new Error(_0x5983d(0xfd));const _0x5b49a4=_0x322c3f[_0x5983d(0xe7)](_0x330d00);if(!_0x5b49a4)throw new Error(_0x5983d(0x105));_0x5b49a4['stopFollowing']();}[_0x8b1261(0xf3)](){const _0x5f3d18=_0x8b1261;var _0x1ed603;const _0x58a38b=this[_0x5f3d18(0x103)]['get'](n[_0x5f3d18(0xe9)]),_0x197e06=(_0x1ed603=this[_0x5f3d18(0xeb)]())==null?void 0x0:_0x1ed603[_0x5f3d18(0xe8)]();if(!_0x197e06)throw new Error(_0x5f3d18(0xfd));const _0x3698dd=_0x58a38b[_0x5f3d18(0xe7)](_0x197e06);if(!_0x3698dd)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3698dd[_0x5f3d18(0xf9)]();}['stopPresenting'](){const _0x196447=_0x8b1261;var _0xc1802b;const _0x44d720=this['_injector'][_0x196447(0xe5)](n[_0x196447(0xe9)]),_0x410674=(_0xc1802b=this[_0x196447(0xeb)]())==null?void 0x0:_0xc1802b['getId']();if(!_0x410674)throw new Error(_0x196447(0xfd));const _0x351419=_0x44d720['getLiveShareCoordinatorSync'](_0x410674);if(!_0x351419)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x351419[_0x196447(0xf2)]();}}a[_0x8b1261(0xe6)][_0x8b1261(0xf1)](C);class L extends a[_0x8b1261(0x102)]{get[_0x8b1261(0xef)](){const _0x238bf1=_0x8b1261;return n[_0x238bf1(0xf0)];}}a[_0x8b1261(0x102)][_0x8b1261(0xf1)](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x557c04=_0x2d86;function _0x5f2a(){const _0x83b2f6=['7cIrqEL','Injector','_entities','0\x200\x2017\x2017','UniverIcon','_config','getLiveShareCoordinator','clear','SetZoomRatioOperation','live-share-icon','SetScrollOperation','subscribe','PRESENTING','stopFollowing','LiveShareController','map','LiveShareStatus','getValue','get','_startFollowing','following','url(#$1','LIVESHARE_FETCH_OPERATIONS','_unitID','text','toDisposable','useDependency','9uZliwp','use','Start\x20following','clsx','children','div','Dropdown','1em','Inject','status$','ONLINE','getStatus','24YqoJfL','colorChannel1','event$','Module','then','getUnitId','372xyeksX','startFollowing','stopPresenting','HEADER_MENU','tryStartPresenting','disposeWithMe','_liveShareService','toString','values','getCurrentTypeOfUnit$','live-share.config','http://www.w3.org/2000/svg','parse','_commandDisposable','IConfigService','getOwnPropertyDescriptor','Fragment','memberID','requireSession','_stopFollowing','UniverCollaborationClientPlugin','not-following','OPERATION','1398cYnRUY','getConfig','_uiPartsService','sheet','LiveShareCoordinator','idSuffix','set','init','BuiltInUIPart','substring','evenodd','OFFLINE','delete','useState','_univerInstanceService','forwardRef','jsxs','_commandService','_handleOperation','FOLLOWING','LiveShareService','presenter','displayName','replace','SetWorksheetActiveOperation','offline','trim','LIVESHARE_TERMINATE','Present\x20this\x20document','defIds','includes','path','_init','LIVESHARE_OPERATION','Plugin','string','CommandType','_sharedOperations','button','type','current','useObservable','setConfig','send','DesktopLiveShareController','Subject','sessionStatus$','_beIdle','UniverLiveSharePlugin','has','dispose','touchDependencies','_collabSession','currentColor','BehaviorSubject','515585IWxFhc','You\x27re\x20not\x20following\x20the\x20presenter','params','_collabSessionService','complete','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','mutations','fill','onCommandExecuted','forEach','takeUntil','5473490PdsrRh','connectInjector','Stop\x20following','You\x27re\x20presenting\x20the\x20document','SessionStatus','onStarting','UniverInstanceType','random','_handleOnline','_startPresenting','symbol','Start','shouldShareOperation','registerSharedOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','_injector','assign','IUIPartsService','xlink:href','CollaborationEvent','IDLE','_fetchOperations','pipe','svg','add','getMemberID','unitId','defineProperty','_handleTerminate','attrs','entries','UNIVER_UNKNOWN','getTypeOfUnitDisposed$','jsx','univerjs-icon\x20univerjs-icon-','_status','next','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','mergeOverrideWithDependencies','LIVESHARE_NEW_HOST','executeCommand','UNIVER_LIVE_SHARE_PLUGIN','_startLiveShareCoordinator','data','presenting','reverse','_handleNewChangeSets','_presenter','override','pluginName','useRef','getLiveShareCoordinatorSync','dispose$','LiveShare','_handleNewHost','parseProtocolChangeset','operations','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleOffline','length','2161672wprdhK','773796ivZNoq','stringify','6035359piJZcy','_reporters','registerInitialStateReporter','RxDisposable','_status$','getTypeOfUnitAdded$','27076CCOFDc','_configService','tag','registerDependencies','InsertSheetMutation','getInitialStates','Button','Disposable','_stopPresenting','mask','idle','UNIVER_SHEET','_mountLiveShare'];_0x5f2a=function(){return _0x83b2f6;};return _0x5f2a();}(function(_0x28ed11,_0x474c59){const _0x11cc48=_0x2d86,_0x73b1a2=_0x28ed11();while(!![]){try{const _0x88a8f8=-parseInt(_0x11cc48(0x95))/0x1*(parseInt(_0x11cc48(0xac))/0x2)+parseInt(_0x11cc48(0x12c))/0x3+-parseInt(_0x11cc48(0x134))/0x4+parseInt(_0x11cc48(0xe3))/0x5*(-parseInt(_0x11cc48(0x8f))/0x6)+-parseInt(_0x11cc48(0x141))/0x7*(parseInt(_0x11cc48(0x12b))/0x8)+parseInt(_0x11cc48(0x83))/0x9*(parseInt(_0x11cc48(0xef))/0xa)+parseInt(_0x11cc48(0x12e))/0xb;if(_0x88a8f8===_0x474c59)break;else _0x73b1a2['push'](_0x73b1a2['shift']());}catch(_0x4157fe){_0x73b1a2['push'](_0x73b1a2['shift']());}}}(_0x5f2a,0x62bfc));var T=Object[_0x557c04(0x10a)],U=(_0x4c8d3f,_0x22130b,_0x34ba3a)=>_0x22130b in _0x4c8d3f?T(_0x4c8d3f,_0x22130b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34ba3a}):_0x4c8d3f[_0x22130b]=_0x34ba3a,_=(_0x3d8d19,_0x29d1f6,_0x3f4419)=>U(_0x3d8d19,typeof _0x29d1f6!=_0x557c04(0xf9)?_0x29d1f6+'':_0x29d1f6,_0x3f4419);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x557c04(0x92)});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:_0x481058,..._0xf693c9}){const _0x5c6d29=_0x557c04,{icon:_0xe6b45,id:_0x419053,className:_0x46227b,extend:_0x1f0a76,..._0x5dda74}=_0xf693c9,_0x2e5209=(_0x5c6d29(0x111)+_0x419053+'\x20'+(_0x46227b||''))[_0x5c6d29(0xc6)](),_0x5010aa=v[_0x5c6d29(0x121)]('_'+H());return j(_0xe6b45,''+_0x419053,{'defIds':_0xe6b45[_0x5c6d29(0xc9)],'idSuffix':_0x5010aa[_0x5c6d29(0xd4)]},{'ref':_0x481058,'className':_0x2e5209,..._0x5dda74},_0x1f0a76);}function j(_0x3ad838,_0x35e57b,_0x2f13ef,_0x2ba3e5,_0x30cdd0){const _0x16f21a=_0x557c04;return v['createElement'](_0x3ad838[_0x16f21a(0x136)],{'key':_0x35e57b,...y(_0x3ad838,_0x2f13ef,_0x30cdd0),..._0x2ba3e5},(F(_0x3ad838,_0x2f13ef)[_0x16f21a(0x87)]||[])[_0x16f21a(0x150)]((_0x41f3fd,_0x14c8b0)=>j(_0x41f3fd,_0x35e57b+'-'+_0x3ad838[_0x16f21a(0x136)]+'-'+_0x14c8b0,_0x2f13ef,void 0x0,_0x30cdd0)));}function y(_0x490e9f,_0x582790,_0x3ce4d5){const _0x4ab3dd=_0x557c04,_0xf927b6={..._0x490e9f[_0x4ab3dd(0x10c)]};_0x3ce4d5!=null&&_0x3ce4d5[_0x4ab3dd(0x90)]&&_0xf927b6[_0x4ab3dd(0xeb)]===_0x4ab3dd(0x90)&&(_0xf927b6[_0x4ab3dd(0xeb)]=_0x3ce4d5[_0x4ab3dd(0x90)]),_0x490e9f['tag']===_0x4ab3dd(0x13d)&&_0xf927b6['id']&&(_0xf927b6['id']=_0xf927b6['id']+_0x582790[_0x4ab3dd(0xb1)]),Object[_0x4ab3dd(0x10d)](_0xf927b6)[_0x4ab3dd(0xed)](([_0xaa5a2a,_0x4807e3])=>{const _0x14a344=_0x4ab3dd;_0xaa5a2a==='mask'&&typeof _0x4807e3==_0x14a344(0xcf)&&(_0xf927b6[_0xaa5a2a]=_0x4807e3['replace'](/url\(#(.*)\)/,_0x14a344(0x156)+_0x582790[_0x14a344(0xb1)]+')'));});const {defIds:_0x164eb9}=_0x582790;return!_0x164eb9||_0x164eb9[_0x4ab3dd(0x12a)]===0x0||(_0x490e9f[_0x4ab3dd(0x136)]===_0x4ab3dd(0x84)&&_0xf927b6[_0x4ab3dd(0x101)]&&(_0xf927b6[_0x4ab3dd(0x101)]=_0xf927b6[_0x4ab3dd(0x101)]+_0x582790['idSuffix']),Object[_0x4ab3dd(0x10d)](_0xf927b6)[_0x4ab3dd(0xed)](([_0x2e8fb2,_0x4e411f])=>{const _0x352f0b=_0x4ab3dd;typeof _0x4e411f==_0x352f0b(0xcf)&&(_0xf927b6[_0x2e8fb2]=_0x4e411f[_0x352f0b(0xc3)](/url\(#(.*)\)/,_0x352f0b(0x156)+_0x582790[_0x352f0b(0xb1)]+')'));})),_0xf927b6;}function F(_0x566f3c,_0x32c11d){const _0x64eb45=_0x557c04;var _0x1bdd5e;const {defIds:_0x187045}=_0x32c11d;return!_0x187045||_0x187045[_0x64eb45(0x12a)]===0x0?_0x566f3c:_0x566f3c[_0x64eb45(0x136)]==='defs'&&((_0x1bdd5e=_0x566f3c[_0x64eb45(0x87)])!=null&&_0x1bdd5e['length'])?{..._0x566f3c,'children':_0x566f3c['children'][_0x64eb45(0x150)](_0x1cbfb7=>typeof _0x1cbfb7['attrs']['id']==_0x64eb45(0xcf)&&_0x187045&&_0x187045[_0x64eb45(0xca)](_0x1cbfb7['attrs']['id'])?{..._0x1cbfb7,'attrs':{..._0x1cbfb7[_0x64eb45(0x10c)],'id':_0x1cbfb7[_0x64eb45(0x10c)]['id']+_0x32c11d[_0x64eb45(0xb1)]}}:_0x1cbfb7)}:_0x566f3c;}function H(){const _0x1ae4c1=_0x557c04;return Math[_0x1ae4c1(0xf6)]()[_0x1ae4c1(0x9c)](0x24)[_0x1ae4c1(0xb5)](0x2,0x8);}x[_0x557c04(0xc2)]=_0x557c04(0x145);const V={'tag':_0x557c04(0x106),'attrs':{'xmlns':_0x557c04(0xa0),'fill':'none','viewBox':_0x557c04(0x144),'width':_0x557c04(0x8a),'height':_0x557c04(0x8a)},'children':[{'tag':'path','attrs':{'fill':_0x557c04(0xe1),'d':_0x557c04(0x114)}},{'tag':_0x557c04(0xcb),'attrs':{'fill':_0x557c04(0xe1),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x557c04(0xb6)}}]},R=v[_0x557c04(0xbb)](function(_0x1a5504,_0x1be0dd){const _0x36798c=_0x557c04;return v['createElement'](x,Object[_0x36798c(0xff)]({},_0x1a5504,{'id':_0x36798c(0x14a),'ref':_0x1be0dd,'icon':V}));});R[_0x557c04(0xc2)]='LiveShareIcon';class E extends o[_0x557c04(0x13b)]{constructor(){const _0x4899cb=_0x557c04;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x4899cb(0x12f),new Set());}[_0x557c04(0xfc)](_0x4580bb){const _0x55c87d=_0x557c04;return this[_0x55c87d(0xd1)][_0x55c87d(0x107)](_0x4580bb),o[_0x55c87d(0x81)](()=>this[_0x55c87d(0xd1)][_0x55c87d(0xb8)](_0x4580bb));}[_0x557c04(0x130)](_0x55dbd9){const _0x24015b=_0x557c04;return this['_reporters'][_0x24015b(0x107)](_0x55dbd9),o[_0x24015b(0x81)](()=>this[_0x24015b(0x12f)][_0x24015b(0xb8)](_0x55dbd9));}[_0x557c04(0xfb)](_0x27a063){const _0x7556c=_0x557c04;return this[_0x7556c(0xd1)][_0x7556c(0xdd)](_0x27a063);}[_0x557c04(0x139)](_0x275e2b){const _0x5e96bc=_0x557c04;return Array['from'](this[_0x5e96bc(0x12f)])[_0x5e96bc(0x150)](_0x53a005=>_0x53a005(_0x275e2b));}}var M=Object[_0x557c04(0xa4)],P=(_0x3492ce,_0x1c9ccc,_0x539c95,_0x28d77b)=>{const _0x18a5ba=_0x557c04;for(var _0x1551b6=_0x28d77b>0x1?void 0x0:_0x28d77b?M(_0x1c9ccc,_0x539c95):_0x1c9ccc,_0x520510=_0x3492ce[_0x18a5ba(0x12a)]-0x1,_0x5868e9;_0x520510>=0x0;_0x520510--)(_0x5868e9=_0x3492ce[_0x520510])&&(_0x1551b6=_0x5868e9(_0x1551b6)||_0x1551b6);return _0x1551b6;},S=(_0x2347c1,_0x29a25e)=>(_0x1e491c,_0x4b2591)=>_0x29a25e(_0x1e491c,_0x4b2591,_0x2347c1);exports['LiveShareController']=class extends o[_0x557c04(0x131)]{constructor(_0x409dde,_0x23b490,_0x1a2800){const _0x474852=_0x557c04;super(),_(this,_0x474852(0x143),new Map()),(this['_univerInstanceService']=_0x409dde,this[_0x474852(0xfe)]=_0x23b490,this[_0x474852(0xe6)]=_0x1a2800,this[_0x474852(0xcc)]());}async[_0x557c04(0x147)](_0x4940a4){const _0x4b9d60=_0x557c04;return this['_entities'][_0x4b9d60(0xdd)](_0x4940a4)||await this[_0x4b9d60(0x119)](_0x4940a4),this[_0x4b9d60(0x143)][_0x4b9d60(0x153)](_0x4940a4);}[_0x557c04(0x122)](_0x1bd06b){const _0x493815=_0x557c04;var _0x36191d;return(_0x36191d=this[_0x493815(0x143)][_0x493815(0x153)](_0x1bd06b))!=null?_0x36191d:null;}[_0x557c04(0xcc)](){const _0x45f1fd=_0x557c04;this['_univerInstanceService'][_0x45f1fd(0x133)](o['UniverInstanceType'][_0x45f1fd(0x13f)])['pipe'](I[_0x45f1fd(0xee)](this[_0x45f1fd(0x123)]))['subscribe'](async _0x43fef2=>{const _0x5ce727=_0x45f1fd,_0x805857=_0x43fef2['getUnitId']();this[_0x5ce727(0x143)]['has'](_0x805857)||this[_0x5ce727(0x119)](_0x805857);}),this[_0x45f1fd(0xba)][_0x45f1fd(0x10f)](o['UniverInstanceType'][_0x45f1fd(0x13f)])[_0x45f1fd(0x105)](I[_0x45f1fd(0xee)](this[_0x45f1fd(0x123)]))[_0x45f1fd(0x14c)](_0x2076c6=>{const _0x42e88b=_0x45f1fd,_0x4c3e48=_0x2076c6[_0x42e88b(0x94)](),_0x197b1f=this[_0x42e88b(0x143)][_0x42e88b(0x153)](_0x4c3e48);_0x197b1f==null||_0x197b1f[_0x42e88b(0xde)]();});}async[_0x557c04(0x119)](_0xd485c7){const _0x39907a=_0x557c04,_0x5971a2=await this['_collabSessionService'][_0x39907a(0xa7)](_0xd485c7),_0x5d00d4=this['_injector']['createInstance'](exports[_0x39907a(0xb0)],_0xd485c7,_0x5971a2);return _0x5d00d4['init'](),this[_0x39907a(0x143)][_0x39907a(0xb2)](_0xd485c7,_0x5d00d4),_0x5d00d4;}},exports[_0x557c04(0x14f)]=P([S(0x0,o[_0x557c04(0xe9)]),S(0x1,o[_0x557c04(0x8b)](o[_0x557c04(0x142)])),S(0x2,o[_0x557c04(0x8b)](b['CollaborationSessionService']))],exports[_0x557c04(0x14f)]);var u=(_0x13b0af=>(_0x13b0af['OFFLINE']=_0x557c04(0xc5),_0x13b0af[_0x557c04(0x103)]=_0x557c04(0x13e),_0x13b0af[_0x557c04(0xbf)]=_0x557c04(0x155),_0x13b0af['NOT_FOLLOWING']=_0x557c04(0xaa),_0x13b0af[_0x557c04(0x14d)]='presenting',_0x13b0af))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x557c04(0xb0)]=class extends o[_0x557c04(0x131)]{constructor(_0x5656d9,_0xb069e,_0x2bdef9,_0x4407e0,_0x32cfbd){const _0x1aaafb=_0x557c04;super(),_(this,_0x1aaafb(0x132),new O[(_0x1aaafb(0xe2))](_0x1aaafb(0x13e))),_(this,_0x1aaafb(0x8c),this[_0x1aaafb(0x132)]['asObservable']()),_(this,_0x1aaafb(0xcc),!0x1),_(this,'_commandDisposable',null),_(this,_0x1aaafb(0x11e),null),(this[_0x1aaafb(0x158)]=_0x5656d9,this[_0x1aaafb(0xe0)]=_0xb069e,this[_0x1aaafb(0x135)]=_0x2bdef9,this[_0x1aaafb(0x9b)]=_0x4407e0,this[_0x1aaafb(0xbd)]=_0x32cfbd);}get[_0x557c04(0x112)](){const _0x1178ca=_0x557c04;return this[_0x1178ca(0x132)][_0x1178ca(0x152)]();}[_0x557c04(0xde)](){const _0x45c26f=_0x557c04;var _0xabf614;(_0xabf614=this[_0x45c26f(0xa2)])==null||_0xabf614[_0x45c26f(0xde)](),this[_0x45c26f(0x132)]['next'](_0x45c26f(0x13e)),this['_status$'][_0x45c26f(0xe7)]();}[_0x557c04(0x8e)](){const _0x5ee812=_0x557c04;return this[_0x5ee812(0x112)];}[_0x557c04(0xb3)](){const _0x40c836=_0x557c04;this[_0x40c836(0xcc)]||(this[_0x40c836(0xcc)]=!0x0,this[_0x40c836(0xe0)][_0x40c836(0xda)][_0x40c836(0x105)](I[_0x40c836(0xee)](this[_0x40c836(0x123)]))[_0x40c836(0x14c)](_0x520ddc=>{const _0xdcc801=_0x40c836;switch(_0x520ddc){case b[_0xdcc801(0xf3)][_0xdcc801(0xb7)]:this[_0xdcc801(0x129)]();break;case b[_0xdcc801(0xf3)][_0xdcc801(0x8d)]:this[_0xdcc801(0xf7)]();break;}}),this[_0x40c836(0xe0)][_0x40c836(0x91)][_0x40c836(0x105)](I[_0x40c836(0xee)](this[_0x40c836(0x123)]))[_0x40c836(0x14c)](_0x58dfdd=>{const _0x57c581=_0x40c836,{eventID:_0x3e58fb}=_0x58dfdd;switch(_0x3e58fb){case d[_0x57c581(0x102)][_0x57c581(0x116)]:this[_0x57c581(0x125)](_0x58dfdd);break;case d['CollaborationEvent'][_0x57c581(0xcd)]:this[_0x57c581(0xbe)](_0x58dfdd);break;case d[_0x57c581(0x102)][_0x57c581(0xc7)]:this[_0x57c581(0x10b)]();break;case d[_0x57c581(0x102)]['NEW_CHANGESETS']:this[_0x57c581(0x11d)](_0x58dfdd);break;}}));}['tryStartPresenting'](){const _0x564479=_0x557c04;this[_0x564479(0xe0)][_0x564479(0xd7)]({'eventID':d[_0x564479(0x102)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x564479(0x158)],'userID':this[_0x564479(0xe0)][_0x564479(0x108)]()}},this[_0x564479(0x158)]);}[_0x557c04(0x97)](){const _0x5237e4=_0x557c04;this[_0x5237e4(0x112)]===_0x5237e4(0x11b)&&(this[_0x5237e4(0x132)][_0x5237e4(0x113)](_0x5237e4(0x13e)),this[_0x5237e4(0xe0)][_0x5237e4(0xd7)]({'eventID':d[_0x5237e4(0x102)][_0x5237e4(0xc7)],'data':{'unitID':this[_0x5237e4(0x158)]}},this[_0x5237e4(0x158)]));}[_0x557c04(0x96)](){const _0x54c3a6=_0x557c04;this[_0x54c3a6(0x112)]===_0x54c3a6(0xaa)&&(this[_0x54c3a6(0x132)][_0x54c3a6(0x113)](_0x54c3a6(0x155)),this[_0x54c3a6(0x154)]());}[_0x557c04(0x14e)](){const _0x3a5e1b=_0x557c04;this[_0x3a5e1b(0x112)]===_0x3a5e1b(0x155)&&this['_stopFollowing']();}[_0x557c04(0x125)](_0x3b0fc4){const _0x55075f=_0x557c04,{presenter:_0x51740d}=_0x3b0fc4[_0x55075f(0x11a)],_0x25f918=this['_collabSession'][_0x55075f(0x108)]();this['_presenter']=_0x51740d,_0x51740d===_0x25f918?(this[_0x55075f(0xa8)](),this[_0x55075f(0xf8)]()):this[_0x55075f(0x112)]!==_0x55075f(0xaa)&&(this[_0x55075f(0x13c)](),this['_startFollowing']());}['_fetchOperations'](){const _0x6d3563=_0x557c04,_0x3ca65f={'eventID':d['CollaborationEvent'][_0x6d3563(0x157)]};this['_collabSession']['send'](_0x3ca65f,this[_0x6d3563(0x158)]);}[_0x557c04(0x10b)](){const _0x482b3a=_0x557c04;this[_0x482b3a(0x11e)]=null,this[_0x482b3a(0x112)]!==_0x482b3a(0x11b)&&this[_0x482b3a(0xdb)]();}[_0x557c04(0x11d)](_0x31f2e8){const _0x3e3db1=_0x557c04;if(this[_0x3e3db1(0x112)]===_0x3e3db1(0x155)&&this[_0x3e3db1(0x11e)]===_0x31f2e8[_0x3e3db1(0x11a)][_0x3e3db1(0xa6)]){const _0x31ee40=d[_0x3e3db1(0x126)](_0x31f2e8[_0x3e3db1(0x11a)])[_0x3e3db1(0xea)][_0x3e3db1(0x11c)]()['find'](_0x224009=>_0x224009['id']===C[_0x3e3db1(0x138)]['id']);if(_0x31ee40){const _0x32e4ea=_0x31ee40['params'][_0x3e3db1(0x109)],_0x1c977c=_0x31ee40['params'][_0x3e3db1(0xaf)]['id'];setTimeout(()=>{const _0x1fbb53=_0x3e3db1;this[_0x1fbb53(0xbd)][_0x1fbb53(0x117)](C[_0x1fbb53(0xc4)]['id'],{'unitId':_0x32e4ea,'subUnitId':_0x1c977c},{'fromCollab':!0x0});});}}}[_0x557c04(0xf8)](){const _0x1b7c32=_0x557c04;this['_status$'][_0x1b7c32(0x113)](_0x1b7c32(0x11b));const _0x191cf9=new Map(),_0x16155c=this['_commandDisposable']=new o['DisposableCollection']();_0x16155c['add'](o[_0x1b7c32(0x81)](()=>{const _0x1dbaa6=_0x1b7c32;_0x191cf9['forEach'](_0x2bddc3=>_0x2bddc3[_0x1dbaa6(0xe7)]()),_0x191cf9[_0x1dbaa6(0x148)]();})),_0x16155c['add'](this[_0x1b7c32(0xbd)][_0x1b7c32(0xec)](_0x19c7c1=>{const _0x297319=_0x1b7c32;var _0x5ae1ca;if(_0x19c7c1[_0x297319(0xd3)]!==o[_0x297319(0xd0)][_0x297319(0xab)]||!this['_liveShareService'][_0x297319(0xfb)](_0x19c7c1['id']))return;const {id:_0x3a577f}=_0x19c7c1;let _0x4fa0b8;_0x191cf9[_0x297319(0xdd)](_0x3a577f)?_0x4fa0b8=_0x191cf9[_0x297319(0x153)](_0x3a577f):(_0x4fa0b8=new O[(_0x297319(0xd9))](),_0x191cf9['set'](_0x3a577f,_0x4fa0b8),_0x4fa0b8[_0x297319(0x105)](I['throttleTime']((_0x5ae1ca=this[_0x297319(0x135)][_0x297319(0xad)](k))!=null?_0x5ae1ca:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x297319(0x14c)](_0x3b5ead=>{const _0x29015a=_0x297319;this[_0x29015a(0xe0)][_0x29015a(0xd7)]({'eventID':d[_0x29015a(0x102)][_0x29015a(0xcd)],'data':{'unitID':this['_unitID'],'operations':{[_0x3b5ead['id']]:{'id':_0x3b5ead['id'],'params':JSON[_0x29015a(0x12d)](_0x3b5ead[_0x29015a(0xe5)])}}}},this[_0x29015a(0x158)]);})),_0x4fa0b8[_0x297319(0x113)](_0x19c7c1);})),this[_0x1b7c32(0x9b)][_0x1b7c32(0x139)](this['_unitID'])['forEach'](_0x2b1b42=>this['_collabSession'][_0x1b7c32(0xd7)]({'eventID':d[_0x1b7c32(0x102)][_0x1b7c32(0xcd)],'data':{'unitID':this[_0x1b7c32(0x158)],'operations':{[_0x2b1b42['id']]:{'id':_0x2b1b42['id'],'params':JSON['stringify'](_0x2b1b42[_0x1b7c32(0xe5)])}}}},this['_unitID']));}[_0x557c04(0x13c)](){const _0x25509d=_0x557c04;var _0x391b4a;this[_0x25509d(0x132)]['next']('idle'),(_0x391b4a=this[_0x25509d(0xa2)])==null||_0x391b4a[_0x25509d(0xde)](),this[_0x25509d(0xa2)]=null;}[_0x557c04(0x154)](){const _0x21db10=_0x557c04;var _0x310a01;(_0x310a01=this[_0x21db10(0xa2)])==null||_0x310a01[_0x21db10(0xde)](),this['_status$'][_0x21db10(0x113)]('following');}[_0x557c04(0xdb)](){const _0x3a5433=_0x557c04;var _0x26c5a5;this['_status$'][_0x3a5433(0x113)](_0x3a5433(0x13e)),(_0x26c5a5=this['_commandDisposable'])==null||_0x26c5a5[_0x3a5433(0xde)](),this[_0x3a5433(0xa2)]=null;}[_0x557c04(0xa8)](){const _0x541930=_0x557c04;var _0x308874;this[_0x541930(0x132)][_0x541930(0x113)](_0x541930(0xaa)),(_0x308874=this[_0x541930(0xa2)])==null||_0x308874['dispose']();}['_handleOperation'](_0x5e5712){const _0x54d7cd=_0x557c04;if([_0x54d7cd(0x11b),'not-following',_0x54d7cd(0xc5)][_0x54d7cd(0xca)](this['_status'])||!_0x5e5712[_0x54d7cd(0x11a)][_0x54d7cd(0xc1)]||_0x5e5712[_0x54d7cd(0x11a)][_0x54d7cd(0xc1)]===this[_0x54d7cd(0xe0)][_0x54d7cd(0x108)]())return;this[_0x54d7cd(0x112)]===_0x54d7cd(0x13e)&&this[_0x54d7cd(0x154)]();const _0xcdb119=_0x5e5712[_0x54d7cd(0x11a)][_0x54d7cd(0x127)];Object[_0x54d7cd(0x9d)](_0xcdb119)[_0x54d7cd(0xed)](_0x37b4a1=>{const _0x30f53c=_0x54d7cd;this[_0x30f53c(0xbd)]['executeCommand'](_0x37b4a1['id'],_0x37b4a1['params']?JSON[_0x30f53c(0xa1)](_0x37b4a1[_0x30f53c(0xe5)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5cc0b5=_0x557c04;var _0x32d29c;this[_0x5cc0b5(0x132)]['next']('offline'),(_0x32d29c=this[_0x5cc0b5(0xa2)])==null||_0x32d29c[_0x5cc0b5(0xde)]();}['_handleOnline'](){const _0x2f080a=_0x557c04;this[_0x2f080a(0x132)][_0x2f080a(0x113)](_0x2f080a(0x13e)),this[_0x2f080a(0x104)]();}},exports[_0x557c04(0xb0)]=P([S(0x2,o[_0x557c04(0xa3)]),S(0x3,o[_0x557c04(0x8b)](E)),S(0x4,o['ICommandService'])],exports[_0x557c04(0xb0)]);function $(){const _0x4fac57=_0x557c04,_0x4365ba=p['useDependency'](exports[_0x4fac57(0x14f)]),_0x5d418f=p[_0x4fac57(0x82)](o[_0x4fac57(0xe9)]),_0x22a218=p[_0x4fac57(0xd5)](()=>_0x5d418f[_0x4fac57(0x9e)](o[_0x4fac57(0xf5)][_0x4fac57(0x13f)]),void 0x0,!0x1,[]),[_0x389557,_0x358234]=v['useState'](null),[_0x5773b1,_0x2bf206]=v[_0x4fac57(0xb9)](u[_0x4fac57(0x103)]),_0x40eaea=v[_0x4fac57(0x121)](null);return v['useEffect'](()=>(_0x22a218&&_0x4365ba[_0x4fac57(0x147)](_0x22a218[_0x4fac57(0x94)]())[_0x4fac57(0x93)](_0x4f0585=>{const _0x173eb9=_0x4fac57;_0x358234(_0x4f0585),_0x40eaea[_0x173eb9(0xd4)]=_0x4f0585[_0x173eb9(0x8c)][_0x173eb9(0x14c)](_0x1d01fc=>{_0x2bf206(_0x1d01fc);});}),()=>{const _0x1dcdd4=_0x4fac57;var _0x108a70;(_0x108a70=_0x40eaea[_0x1dcdd4(0xd4)])==null||_0x108a70['unsubscribe'](),_0x40eaea[_0x1dcdd4(0xd4)]=null;}),[_0x22a218,_0x4365ba]),_0x389557?l[_0x4fac57(0x110)](f[_0x4fac57(0x89)],{'align':'end','disabled':_0x5773b1===u[_0x4fac57(0xb7)],'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[_0x4fac57(0x110)](W,{'status':_0x5773b1,'coordinator':_0x389557}),'children':l[_0x4fac57(0x110)](_0x4fac57(0xd2),{'className':f[_0x4fac57(0x86)](_0x4fac57(0x128),{'univer-cursor-not-allowed':_0x5773b1===u[_0x4fac57(0xb7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5773b1!==u['OFFLINE']}),'type':_0x4fac57(0xd2),'children':l[_0x4fac57(0x110)](R,{'className':'univer-size-4'})})}):null;}function W(_0x372b2a){const _0x51e667=_0x557c04,{status:_0x186919,coordinator:_0x9aaf65}=_0x372b2a;switch(_0x186919){case u[_0x51e667(0x103)]:return l[_0x51e667(0x110)](G,{'coordinator':_0x9aaf65});case u[_0x51e667(0xbf)]:return l[_0x51e667(0x110)](B,{'coordinator':_0x9aaf65});case u['NOT_FOLLOWING']:return l[_0x51e667(0x110)](Y,{'coordinator':_0x9aaf65});case u[_0x51e667(0xb7)]:return l[_0x51e667(0x110)](J,{});case u[_0x51e667(0x14d)]:return l[_0x51e667(0x110)](Z,{'coordinator':_0x9aaf65});default:return null;}}function G(_0x2eb49a){const _0xaeecce=_0x557c04,{coordinator:_0x8449e8}=_0x2eb49a;return l[_0xaeecce(0xbc)](l['Fragment'],{'children':[l[_0xaeecce(0x110)](_0xaeecce(0x88),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xaeecce(0xc8)}),l[_0xaeecce(0x110)](f['Button'],{'onClick':()=>_0x8449e8[_0xaeecce(0x99)](),'children':_0xaeecce(0xfa)})]});}function B(_0x521dd0){const _0x4e11e9=_0x557c04,{coordinator:_0x141958}=_0x521dd0;return l['jsxs'](l[_0x4e11e9(0xa5)],{'children':[l['jsx'](_0x4e11e9(0x88),{'className':_0x4e11e9(0xfd),'children':_0x4e11e9(0xe8)}),l[_0x4e11e9(0x110)](f[_0x4e11e9(0x13a)],{'onClick':()=>_0x141958[_0x4e11e9(0x14e)](),'children':_0x4e11e9(0xf1)})]});}function Y(_0x1608aa){const _0x1b4172=_0x557c04,{coordinator:_0x570682}=_0x1608aa;return l[_0x1b4172(0xbc)](l[_0x1b4172(0xa5)],{'children':[l['jsx'](_0x1b4172(0x88),{'className':_0x1b4172(0xfd),'children':_0x1b4172(0xe4)}),l['jsx'](f[_0x1b4172(0x13a)],{'variant':_0x1b4172(0x159),'onClick':()=>_0x570682[_0x1b4172(0x96)](),'children':_0x1b4172(0x85)})]});}function Z(_0x4c6eb7){const _0x33c166=_0x557c04,{coordinator:_0x722e0c}=_0x4c6eb7;return l['jsxs'](l[_0x33c166(0xa5)],{'children':[l['jsx'](_0x33c166(0x88),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x33c166(0xf2)}),l[_0x33c166(0x110)](f[_0x33c166(0x13a)],{'variant':'default','onClick':()=>_0x722e0c['stopPresenting'](),'children':'Stop\x20presenting'})]});}function J(){const _0x53a325=_0x557c04;return l['jsx'](l[_0x53a325(0xa5)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x557c04(0xa4)],z=(_0xa96d7,_0xa25f9d,_0x11df96,_0x30c6e0)=>{const _0x5acf53=_0x557c04;for(var _0x5602b3=_0x30c6e0>0x1?void 0x0:_0x30c6e0?K(_0xa25f9d,_0x11df96):_0xa25f9d,_0x429005=_0xa96d7[_0x5acf53(0x12a)]-0x1,_0x44a84f;_0x429005>=0x0;_0x429005--)(_0x44a84f=_0xa96d7[_0x429005])&&(_0x5602b3=_0x44a84f(_0x5602b3)||_0x5602b3);return _0x5602b3;},L=(_0x166a4b,_0x59170c)=>(_0x17ae95,_0x4af04a)=>_0x59170c(_0x17ae95,_0x4af04a,_0x166a4b);exports['DesktopLiveShareController']=class extends o[_0x557c04(0x13b)]{constructor(_0x2ee938,_0x4eb44b){const _0xeaa2a5=_0x557c04;super(),this[_0xeaa2a5(0xfe)]=_0x2ee938,this[_0xeaa2a5(0xae)]=_0x4eb44b,this[_0xeaa2a5(0x140)]();}['_mountLiveShare'](){const _0x69504b=_0x557c04;this[_0x69504b(0x9a)](this['_uiPartsService']['registerComponent'](p[_0x69504b(0xb4)][_0x69504b(0x98)],()=>p[_0x69504b(0xf0)]($,this[_0x69504b(0xfe)])));}},exports[_0x557c04(0xd8)]=z([L(0x0,o['Inject'](o['Injector'])),L(0x1,p[_0x557c04(0x100)])],exports['DesktopLiveShareController']);const Q=_0x557c04(0x9f),w={};var X=Object[_0x557c04(0xa4)],ee=(_0x55e75c,_0x4da847,_0x211ebc,_0x3a0c64)=>{const _0x3a0b65=_0x557c04;for(var _0x1be8f3=_0x3a0c64>0x1?void 0x0:_0x3a0c64?X(_0x4da847,_0x211ebc):_0x4da847,_0x573f91=_0x55e75c[_0x3a0b65(0x12a)]-0x1,_0x43f0de;_0x573f91>=0x0;_0x573f91--)(_0x43f0de=_0x55e75c[_0x573f91])&&(_0x1be8f3=_0x43f0de(_0x1be8f3)||_0x1be8f3);return _0x1be8f3;},te=(_0x14fe0b,_0x467eb6)=>(_0x49e61a,_0x515c89)=>_0x467eb6(_0x49e61a,_0x515c89,_0x14fe0b);let m=class extends o['Disposable']{constructor(_0x217b21){super(),this['_liveShareService']=_0x217b21,this['_init']();}['_init'](){const _0x1d8809=_0x557c04;[D[_0x1d8809(0x149)]['id'],D[_0x1d8809(0x14b)]['id'],C['SetWorksheetActiveOperation']['id']][_0x1d8809(0xed)](_0x419d65=>{const _0x33f67e=_0x1d8809;this['disposeWithMe'](this[_0x33f67e(0x9b)][_0x33f67e(0xfc)](_0x419d65));});}};function _0x2d86(_0x2bf38a,_0x25e813){const _0x5f2a71=_0x5f2a();return _0x2d86=function(_0x2d8665,_0x100b11){_0x2d8665=_0x2d8665-0x81;let _0x18ba7e=_0x5f2a71[_0x2d8665];return _0x18ba7e;},_0x2d86(_0x2bf38a,_0x25e813);}m=ee([te(0x0,o[_0x557c04(0x8b)](E))],m);var ie=Object[_0x557c04(0x10a)],se=Object[_0x557c04(0xa4)],ne=(_0x16f97b,_0x39ea79,_0x556d9a)=>_0x39ea79 in _0x16f97b?ie(_0x16f97b,_0x39ea79,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x556d9a}):_0x16f97b[_0x39ea79]=_0x556d9a,re=(_0x2f756e,_0x2012eb,_0x213b93,_0x3c5b21)=>{const _0x5a3ac8=_0x557c04;for(var _0x42c8f8=_0x3c5b21>0x1?void 0x0:_0x3c5b21?se(_0x2012eb,_0x213b93):_0x2012eb,_0x455004=_0x2f756e[_0x5a3ac8(0x12a)]-0x1,_0x2bd81b;_0x455004>=0x0;_0x455004--)(_0x2bd81b=_0x2f756e[_0x455004])&&(_0x42c8f8=_0x2bd81b(_0x42c8f8)||_0x42c8f8);return _0x42c8f8;},N=(_0x420b67,_0x11382e)=>(_0x1c445d,_0x26c38f)=>_0x11382e(_0x1c445d,_0x26c38f,_0x420b67),A=(_0x463c57,_0x2814d1,_0x2e1fb0)=>ne(_0x463c57,typeof _0x2814d1!=_0x557c04(0xf9)?_0x2814d1+'':_0x2814d1,_0x2e1fb0);const oe=_0x557c04(0x118);exports['UniverLiveSharePlugin']=class extends o[_0x557c04(0xce)]{constructor(_0x66c09=w,_0xb4579a,_0x42eff8){const _0x5ad6ec=_0x557c04;super(),this[_0x5ad6ec(0x146)]=_0x66c09,this[_0x5ad6ec(0xfe)]=_0xb4579a,this[_0x5ad6ec(0x135)]=_0x42eff8;const {..._0x18de49}=o['merge']({},w,this['_config']);this['_configService'][_0x5ad6ec(0xd6)](Q,_0x18de49);}[_0x557c04(0xf4)](){const _0xe790b9=_0x557c04;o[_0xe790b9(0x137)](this[_0xe790b9(0xfe)],o[_0xe790b9(0x115)]([[E],[exports[_0xe790b9(0x14f)]],[m],[exports[_0xe790b9(0xd8)]]],this[_0xe790b9(0x146)][_0xe790b9(0x11f)])),o[_0xe790b9(0xdf)](this[_0xe790b9(0xfe)],[[m]]);}['onRendered'](){const _0x1fd30c=_0x557c04;o['touchDependencies'](this['_injector'],[[exports[_0x1fd30c(0xd8)]]]);}},A(exports[_0x557c04(0xdc)],_0x557c04(0xd3),o['UniverInstanceType'][_0x557c04(0x10e)]),A(exports[_0x557c04(0xdc)],_0x557c04(0x120),oe),exports[_0x557c04(0xdc)]=re([o['DependentOn'](b[_0x557c04(0xa9)]),N(0x1,o[_0x557c04(0x8b)](o[_0x557c04(0x142)])),N(0x2,o[_0x557c04(0xa3)])],exports[_0x557c04(0xdc)]),exports[_0x557c04(0x124)]=$,exports[_0x557c04(0xc0)]=E,exports[_0x557c04(0x151)]=u;
1
+ 'use strict';const _0x3bf8b1=_0x54cd;(function(_0x4a907f,_0x138a3f){const _0x14f2bd=_0x54cd,_0x5ee503=_0x4a907f();while(!![]){try{const _0x5b307b=-parseInt(_0x14f2bd(0x20c))/0x1*(parseInt(_0x14f2bd(0x1fd))/0x2)+parseInt(_0x14f2bd(0x16c))/0x3*(parseInt(_0x14f2bd(0x1ec))/0x4)+-parseInt(_0x14f2bd(0x1e8))/0x5+-parseInt(_0x14f2bd(0x1e0))/0x6*(-parseInt(_0x14f2bd(0x1f3))/0x7)+parseInt(_0x14f2bd(0x197))/0x8+parseInt(_0x14f2bd(0x151))/0x9+parseInt(_0x14f2bd(0x1f8))/0xa;if(_0x5b307b===_0x138a3f)break;else _0x5ee503['push'](_0x5ee503['shift']());}catch(_0x57f727){_0x5ee503['push'](_0x5ee503['shift']());}}}(_0x2195,0xa1531));var T=Object[_0x3bf8b1(0x1c3)],U=(_0x53b6b7,_0x33bd01,_0x401c18)=>_0x33bd01 in _0x53b6b7?T(_0x53b6b7,_0x33bd01,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x401c18}):_0x53b6b7[_0x33bd01]=_0x401c18,_=(_0x3172f5,_0x320475,_0x1fa23f)=>U(_0x3172f5,typeof _0x320475!='symbol'?_0x320475+'':_0x320475,_0x1fa23f);Object[_0x3bf8b1(0x1c3)](exports,Symbol[_0x3bf8b1(0x173)],{'value':_0x3bf8b1(0x1ab)});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:_0x1b1635,..._0x1f5456}){const _0x48e57c=_0x3bf8b1,{icon:_0x49dafe,id:_0x15caf5,className:_0x1226e2,extend:_0x2f8c51,..._0x3abc38}=_0x1f5456,_0x54cacd=('univerjs-icon\x20univerjs-icon-'+_0x15caf5+'\x20'+(_0x1226e2||''))[_0x48e57c(0x1fe)](),_0x2c3314=v[_0x48e57c(0x1e9)]('_'+H());return j(_0x49dafe,''+_0x15caf5,{'defIds':_0x49dafe[_0x48e57c(0x171)],'idSuffix':_0x2c3314[_0x48e57c(0x1ed)]},{'ref':_0x1b1635,'className':_0x54cacd,..._0x3abc38},_0x2f8c51);}function _0x54cd(_0x44af07,_0x58f546){_0x44af07=_0x44af07-0x140;const _0x2195cd=_0x2195();let _0x54cd49=_0x2195cd[_0x44af07];return _0x54cd49;}function j(_0x2ba811,_0x1b3620,_0xdb0e4f,_0x14fe57,_0xad740){const _0xd372b=_0x3bf8b1;return v[_0xd372b(0x1f2)](_0x2ba811['tag'],{'key':_0x1b3620,...y(_0x2ba811,_0xdb0e4f,_0xad740),..._0x14fe57},(F(_0x2ba811,_0xdb0e4f)[_0xd372b(0x1cc)]||[])[_0xd372b(0x1a5)]((_0x5de3f7,_0x5d2b4c)=>j(_0x5de3f7,_0x1b3620+'-'+_0x2ba811[_0xd372b(0x1b9)]+'-'+_0x5d2b4c,_0xdb0e4f,void 0x0,_0xad740)));}function y(_0x385fa9,_0x33a1d9,_0x1ea4cc){const _0x2a4e09=_0x3bf8b1,_0x3c2ae7={..._0x385fa9['attrs']};_0x1ea4cc!=null&&_0x1ea4cc[_0x2a4e09(0x164)]&&_0x3c2ae7[_0x2a4e09(0x206)]===_0x2a4e09(0x164)&&(_0x3c2ae7[_0x2a4e09(0x206)]=_0x1ea4cc[_0x2a4e09(0x164)]),_0x385fa9[_0x2a4e09(0x1b9)]===_0x2a4e09(0x1c1)&&_0x3c2ae7['id']&&(_0x3c2ae7['id']=_0x3c2ae7['id']+_0x33a1d9[_0x2a4e09(0x188)]),Object['entries'](_0x3c2ae7)[_0x2a4e09(0x1d9)](([_0x4130ba,_0x2cfe69])=>{const _0x86b75a=_0x2a4e09;_0x4130ba===_0x86b75a(0x1c1)&&typeof _0x2cfe69==_0x86b75a(0x1db)&&(_0x3c2ae7[_0x4130ba]=_0x2cfe69[_0x86b75a(0x1c5)](/url\(#(.*)\)/,'url(#$1'+_0x33a1d9['idSuffix']+')'));});const {defIds:_0x2a5025}=_0x33a1d9;return!_0x2a5025||_0x2a5025['length']===0x0||(_0x385fa9[_0x2a4e09(0x1b9)]===_0x2a4e09(0x198)&&_0x3c2ae7[_0x2a4e09(0x1a7)]&&(_0x3c2ae7[_0x2a4e09(0x1a7)]=_0x3c2ae7[_0x2a4e09(0x1a7)]+_0x33a1d9['idSuffix']),Object[_0x2a4e09(0x1ee)](_0x3c2ae7)[_0x2a4e09(0x1d9)](([_0x137df1,_0x1b8a2c])=>{const _0x357921=_0x2a4e09;typeof _0x1b8a2c=='string'&&(_0x3c2ae7[_0x137df1]=_0x1b8a2c[_0x357921(0x1c5)](/url\(#(.*)\)/,'url(#$1'+_0x33a1d9['idSuffix']+')'));})),_0x3c2ae7;}function F(_0xd00e2,_0x45b00a){const _0x4234b1=_0x3bf8b1;var _0x1f6a6c;const {defIds:_0x5962e8}=_0x45b00a;return!_0x5962e8||_0x5962e8['length']===0x0?_0xd00e2:_0xd00e2[_0x4234b1(0x1b9)]===_0x4234b1(0x152)&&((_0x1f6a6c=_0xd00e2['children'])!=null&&_0x1f6a6c['length'])?{..._0xd00e2,'children':_0xd00e2[_0x4234b1(0x1cc)][_0x4234b1(0x1a5)](_0x5d6c73=>typeof _0x5d6c73['attrs']['id']==_0x4234b1(0x1db)&&_0x5962e8&&_0x5962e8[_0x4234b1(0x1bc)](_0x5d6c73[_0x4234b1(0x201)]['id'])?{..._0x5d6c73,'attrs':{..._0x5d6c73[_0x4234b1(0x201)],'id':_0x5d6c73[_0x4234b1(0x201)]['id']+_0x45b00a[_0x4234b1(0x188)]}}:_0x5d6c73)}:_0xd00e2;}function H(){const _0x3b9522=_0x3bf8b1;return Math[_0x3b9522(0x1ad)]()[_0x3b9522(0x180)](0x24)['substring'](0x2,0x8);}function _0x2195(){const _0x597283=['merge','_beIdle','LIVESHARE_OPERATION','InsertSheetMutation','_stopPresenting','_init','length','requireSession','SetWorksheetActiveOperation','BuiltInUIPart','registerDependencies','mergeOverrideWithDependencies','_mountLiveShare','You\x27re\x20following\x20the\x20presenter','_commandService','colorChannel1','complete','You\x27re\x20not\x20following\x20the\x20presenter','Inject','NOT_FOLLOWING','throttleTime','memberID','ICommandService','81oaTjcE','IConfigService','then','CollaborationEvent','asObservable','defIds','OFFLINE','toStringTag','DesktopLiveShareController','Fragment','getConfig','getInitialStates','unsubscribe','Injector','_handleNewChangeSets','IUniverInstanceService','path','_reporters','_handleOnline','_handleTerminate','toString','PRESENTING','currentColor','SAME_OPERATION_SHARE_INTERVAL','_fetchOperations','idle','NEW_CHANGESETS','clear','idSuffix','_startLiveShareCoordinator','evenodd','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','1em','univer-size-4','getCurrentTypeOfUnit$','text','UniverInstanceType','not-following','startFollowing','clsx','_presenter','getTypeOfUnitDisposed$','_injector','856704gjnLQn','use','Stop\x20following','_entities','sheet','values','LiveShareController','_startFollowing','LiveShareStatus','SetZoomRatioOperation','status$','univer-mb-3\x20univer-w-full\x20univer-text-sm','offline','touchDependencies','map','SetScrollOperation','xlink:href','displayName','You\x27are\x20offline.','Dropdown','Module','operations','random','pluginName','connectInjector','_status','getMemberID','LIVESHARE_FETCH_OPERATIONS','IDLE','next','params','LIVESHARE_NEW_HOST','type','data','tag','_commandDisposable','shouldShareOperation','includes','LiveShareService','unitId','useState','_startPresenting','mask','live-share.config','defineProperty','getLiveShareCoordinatorSync','replace','toDisposable','stringify','none','from','DisposableCollection','http://www.w3.org/2000/svg','children','_sharedOperations','mutations','UNIVER_UNKNOWN','Disposable','BehaviorSubject','UniverIcon','registerSharedOperation','has','_collabSession','SessionStatus','tryStartPresenting','delete','forEach','dispose','string','get','LiveShareIcon','ONLINE','_config','465066ZSXqxL','button','presenter','_collabSessionService','override','subscribe','init','stopPresenting','3610705RSKCYJ','useRef','event$','_unitID','35444DviYcc','current','entries','jsxs','LIVESHARE_TERMINATE','jsx','createElement','77lJxrKk','Button','getStatus','_univerInstanceService','IUIPartsService','123630vAmuVA','set','_configService','_handleOperation','presenting','4qiGFGn','trim','Start','UNIVER_SHEET','attrs','add','CommandType','send','_status$','fill','disposeWithMe','onCommandExecuted','0\x200\x2017\x2017','_uiPartsService','svg','137639WSItLV','_handleOffline','Stop\x20presenting','takeUntil','Subject','_liveShareService','_handleNewHost','LiveShareCoordinator','useDependency','UniverLiveSharePlugin','CollaborationSessionService','getLiveShareCoordinator','Plugin','onStarting','FOLLOWING','following','dispose$','getUnitId','UniverCollaborationClientPlugin','sessionStatus$','Present\x20this\x20document','find','parse','executeCommand','default','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','4021965kYVhEl','defs','pipe','div'];_0x2195=function(){return _0x597283;};return _0x2195();}x[_0x3bf8b1(0x1a8)]=_0x3bf8b1(0x1d2);const V={'tag':_0x3bf8b1(0x20b),'attrs':{'xmlns':_0x3bf8b1(0x1cb),'fill':_0x3bf8b1(0x1c8),'viewBox':_0x3bf8b1(0x209),'width':_0x3bf8b1(0x18c),'height':_0x3bf8b1(0x18c)},'children':[{'tag':'path','attrs':{'fill':_0x3bf8b1(0x182),'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':_0x3bf8b1(0x17c),'attrs':{'fill':_0x3bf8b1(0x182),'d':_0x3bf8b1(0x150),'fillRule':_0x3bf8b1(0x18a),'clipRule':_0x3bf8b1(0x18a)}}]},R=v['forwardRef'](function(_0x4ce5c9,_0x1e886a){return v['createElement'](x,Object['assign']({},_0x4ce5c9,{'id':'live-share-icon','ref':_0x1e886a,'icon':V}));});R[_0x3bf8b1(0x1a8)]=_0x3bf8b1(0x1dd);class E extends o[_0x3bf8b1(0x1d0)]{constructor(){const _0x342a7f=_0x3bf8b1;super(...arguments),_(this,_0x342a7f(0x1cd),new Set()),_(this,_0x342a7f(0x17d),new Set());}[_0x3bf8b1(0x1d3)](_0x40b563){const _0x1d1f04=_0x3bf8b1;return this[_0x1d1f04(0x1cd)]['add'](_0x40b563),o[_0x1d1f04(0x1c6)](()=>this[_0x1d1f04(0x1cd)][_0x1d1f04(0x1d8)](_0x40b563));}['registerInitialStateReporter'](_0x37ab6c){const _0x201fcd=_0x3bf8b1;return this[_0x201fcd(0x17d)]['add'](_0x37ab6c),o[_0x201fcd(0x1c6)](()=>this[_0x201fcd(0x17d)][_0x201fcd(0x1d8)](_0x37ab6c));}[_0x3bf8b1(0x1bb)](_0x13eda9){const _0x4949e1=_0x3bf8b1;return this['_sharedOperations'][_0x4949e1(0x1d4)](_0x13eda9);}[_0x3bf8b1(0x177)](_0x43d894){const _0x57b40a=_0x3bf8b1;return Array[_0x57b40a(0x1c9)](this[_0x57b40a(0x17d)])[_0x57b40a(0x1a5)](_0x49e6b6=>_0x49e6b6(_0x43d894));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x2ba8fb,_0x565df3,_0x3a9f0a,_0x4702e6)=>{const _0x25f2e5=_0x3bf8b1;for(var _0x2496bd=_0x4702e6>0x1?void 0x0:_0x4702e6?M(_0x565df3,_0x3a9f0a):_0x565df3,_0x2f43ce=_0x2ba8fb[_0x25f2e5(0x15b)]-0x1,_0x513bcb;_0x2f43ce>=0x0;_0x2f43ce--)(_0x513bcb=_0x2ba8fb[_0x2f43ce])&&(_0x2496bd=_0x513bcb(_0x2496bd)||_0x2496bd);return _0x2496bd;},S=(_0x5e61f9,_0x43c24a)=>(_0x22c057,_0x103e07)=>_0x43c24a(_0x22c057,_0x103e07,_0x5e61f9);exports[_0x3bf8b1(0x19d)]=class extends o['RxDisposable']{constructor(_0x510ac9,_0x528323,_0x729f93){const _0x2fed71=_0x3bf8b1;super(),_(this,_0x2fed71(0x19a),new Map()),(this[_0x2fed71(0x1f6)]=_0x510ac9,this[_0x2fed71(0x196)]=_0x528323,this[_0x2fed71(0x1e3)]=_0x729f93,this[_0x2fed71(0x15a)]());}async[_0x3bf8b1(0x142)](_0x51b87a){const _0x1f3db9=_0x3bf8b1;return this[_0x1f3db9(0x19a)][_0x1f3db9(0x1d4)](_0x51b87a)||await this['_startLiveShareCoordinator'](_0x51b87a),this[_0x1f3db9(0x19a)][_0x1f3db9(0x1dc)](_0x51b87a);}[_0x3bf8b1(0x1c4)](_0xd71344){const _0xa97bb9=_0x3bf8b1;var _0x596e91;return(_0x596e91=this[_0xa97bb9(0x19a)]['get'](_0xd71344))!=null?_0x596e91:null;}[_0x3bf8b1(0x15a)](){const _0x227395=_0x3bf8b1;this[_0x227395(0x1f6)]['getTypeOfUnitAdded$'](o[_0x227395(0x190)][_0x227395(0x200)])[_0x227395(0x153)](I[_0x227395(0x20f)](this[_0x227395(0x147)]))['subscribe'](async _0x2ac375=>{const _0x57a44c=_0x227395,_0x46cc57=_0x2ac375[_0x57a44c(0x148)]();this[_0x57a44c(0x19a)][_0x57a44c(0x1d4)](_0x46cc57)||this[_0x57a44c(0x189)](_0x46cc57);}),this['_univerInstanceService'][_0x227395(0x195)](o['UniverInstanceType'][_0x227395(0x200)])[_0x227395(0x153)](I[_0x227395(0x20f)](this['dispose$']))[_0x227395(0x1e5)](_0x99a2f7=>{const _0x2a5b64=_0x227395,_0x269696=_0x99a2f7[_0x2a5b64(0x148)](),_0x162363=this[_0x2a5b64(0x19a)]['get'](_0x269696);_0x162363==null||_0x162363[_0x2a5b64(0x1da)]();});}async['_startLiveShareCoordinator'](_0x57a088){const _0x1983b9=_0x3bf8b1,_0x269369=await this[_0x1983b9(0x1e3)][_0x1983b9(0x15c)](_0x57a088),_0x4288b8=this[_0x1983b9(0x196)]['createInstance'](exports[_0x1983b9(0x213)],_0x57a088,_0x269369);return _0x4288b8['init'](),this[_0x1983b9(0x19a)][_0x1983b9(0x1f9)](_0x57a088,_0x4288b8),_0x4288b8;}},exports['LiveShareController']=P([S(0x0,o[_0x3bf8b1(0x17b)]),S(0x1,o[_0x3bf8b1(0x167)](o[_0x3bf8b1(0x179)])),S(0x2,o['Inject'](b[_0x3bf8b1(0x141)]))],exports[_0x3bf8b1(0x19d)]);var u=(_0xf97e29=>(_0xf97e29[_0x3bf8b1(0x172)]=_0x3bf8b1(0x1a3),_0xf97e29[_0x3bf8b1(0x1b3)]=_0x3bf8b1(0x185),_0xf97e29['FOLLOWING']=_0x3bf8b1(0x146),_0xf97e29['NOT_FOLLOWING']=_0x3bf8b1(0x191),_0xf97e29['PRESENTING']=_0x3bf8b1(0x1fc),_0xf97e29))(u||{});const k=_0x3bf8b1(0x183),q=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x58531f,_0x4e9b1f,_0x129077,_0x4c4ee7,_0x2d1137){const _0x36e0bb=_0x3bf8b1;super(),_(this,_0x36e0bb(0x205),new O[(_0x36e0bb(0x1d1))](_0x36e0bb(0x185))),_(this,_0x36e0bb(0x1a1),this[_0x36e0bb(0x205)][_0x36e0bb(0x170)]()),_(this,_0x36e0bb(0x15a),!0x1),_(this,_0x36e0bb(0x1ba),null),_(this,_0x36e0bb(0x194),null),(this['_unitID']=_0x58531f,this[_0x36e0bb(0x1d5)]=_0x4e9b1f,this[_0x36e0bb(0x1fa)]=_0x129077,this[_0x36e0bb(0x211)]=_0x4c4ee7,this['_commandService']=_0x2d1137);}get['_status'](){const _0x59c2ad=_0x3bf8b1;return this[_0x59c2ad(0x205)]['getValue']();}['dispose'](){const _0x2fef33=_0x3bf8b1;var _0x31b00c;(_0x31b00c=this[_0x2fef33(0x1ba)])==null||_0x31b00c['dispose'](),this[_0x2fef33(0x205)][_0x2fef33(0x1b4)]('idle'),this[_0x2fef33(0x205)][_0x2fef33(0x165)]();}[_0x3bf8b1(0x1f5)](){const _0x3a4d16=_0x3bf8b1;return this[_0x3a4d16(0x1b0)];}[_0x3bf8b1(0x1e6)](){const _0x5ace84=_0x3bf8b1;this[_0x5ace84(0x15a)]||(this[_0x5ace84(0x15a)]=!0x0,this[_0x5ace84(0x1d5)][_0x5ace84(0x14a)][_0x5ace84(0x153)](I[_0x5ace84(0x20f)](this['dispose$']))['subscribe'](_0x81cd48=>{const _0x19aab6=_0x5ace84;switch(_0x81cd48){case b[_0x19aab6(0x1d6)]['OFFLINE']:this[_0x19aab6(0x20d)]();break;case b[_0x19aab6(0x1d6)][_0x19aab6(0x1de)]:this[_0x19aab6(0x17e)]();break;}}),this['_collabSession'][_0x5ace84(0x1ea)][_0x5ace84(0x153)](I[_0x5ace84(0x20f)](this[_0x5ace84(0x147)]))['subscribe'](_0x5838be=>{const _0xb21d9f=_0x5ace84,{eventID:_0x8a1d55}=_0x5838be;switch(_0x8a1d55){case d[_0xb21d9f(0x16f)][_0xb21d9f(0x1b6)]:this['_handleNewHost'](_0x5838be);break;case d[_0xb21d9f(0x16f)]['LIVESHARE_OPERATION']:this[_0xb21d9f(0x1fb)](_0x5838be);break;case d[_0xb21d9f(0x16f)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case d['CollaborationEvent'][_0xb21d9f(0x186)]:this[_0xb21d9f(0x17a)](_0x5838be);break;}}));}[_0x3bf8b1(0x1d7)](){const _0x98a35=_0x3bf8b1;this['_collabSession'][_0x98a35(0x204)]({'eventID':d[_0x98a35(0x16f)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x98a35(0x1eb)],'userID':this['_collabSession'][_0x98a35(0x1b1)]()}},this[_0x98a35(0x1eb)]);}[_0x3bf8b1(0x1e7)](){const _0x13254c=_0x3bf8b1;this[_0x13254c(0x1b0)]===_0x13254c(0x1fc)&&(this['_status$'][_0x13254c(0x1b4)](_0x13254c(0x185)),this[_0x13254c(0x1d5)]['send']({'eventID':d[_0x13254c(0x16f)][_0x13254c(0x1f0)],'data':{'unitID':this[_0x13254c(0x1eb)]}},this[_0x13254c(0x1eb)]));}[_0x3bf8b1(0x192)](){const _0x65266=_0x3bf8b1;this[_0x65266(0x1b0)]===_0x65266(0x191)&&(this['_status$'][_0x65266(0x1b4)](_0x65266(0x146)),this[_0x65266(0x19e)]());}['stopFollowing'](){const _0x3af4df=_0x3bf8b1;this[_0x3af4df(0x1b0)]===_0x3af4df(0x146)&&this['_stopFollowing']();}[_0x3bf8b1(0x212)](_0x3fbb8a){const _0x50b595=_0x3bf8b1,{presenter:_0x1ddffd}=_0x3fbb8a[_0x50b595(0x1b8)],_0x30beb5=this[_0x50b595(0x1d5)][_0x50b595(0x1b1)]();this[_0x50b595(0x194)]=_0x1ddffd,_0x1ddffd===_0x30beb5?(this['_stopFollowing'](),this[_0x50b595(0x1c0)]()):this[_0x50b595(0x1b0)]!==_0x50b595(0x191)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3bf8b1(0x184)](){const _0x56e4bc=_0x3bf8b1,_0x356a00={'eventID':d['CollaborationEvent'][_0x56e4bc(0x1b2)]};this['_collabSession'][_0x56e4bc(0x204)](_0x356a00,this['_unitID']);}[_0x3bf8b1(0x17f)](){const _0x3a4f21=_0x3bf8b1;this[_0x3a4f21(0x194)]=null,this[_0x3a4f21(0x1b0)]!==_0x3a4f21(0x1fc)&&this[_0x3a4f21(0x156)]();}[_0x3bf8b1(0x17a)](_0x273543){const _0x47fd11=_0x3bf8b1;if(this[_0x47fd11(0x1b0)]===_0x47fd11(0x146)&&this[_0x47fd11(0x194)]===_0x273543['data'][_0x47fd11(0x16a)]){const _0x23c1c7=d['parseProtocolChangeset'](_0x273543[_0x47fd11(0x1b8)])[_0x47fd11(0x1ce)]['reverse']()[_0x47fd11(0x14c)](_0x13c4f0=>_0x13c4f0['id']===C[_0x47fd11(0x158)]['id']);if(_0x23c1c7){const _0x3a49e8=_0x23c1c7['params'][_0x47fd11(0x1be)],_0x214e3c=_0x23c1c7[_0x47fd11(0x1b5)][_0x47fd11(0x19b)]['id'];setTimeout(()=>{const _0x81fe65=_0x47fd11;this[_0x81fe65(0x163)][_0x81fe65(0x14e)](C[_0x81fe65(0x15d)]['id'],{'unitId':_0x3a49e8,'subUnitId':_0x214e3c},{'fromCollab':!0x0});});}}}[_0x3bf8b1(0x1c0)](){const _0x1ee3d9=_0x3bf8b1;this['_status$'][_0x1ee3d9(0x1b4)](_0x1ee3d9(0x1fc));const _0x5b21b0=new Map(),_0x5cae18=this['_commandDisposable']=new o[(_0x1ee3d9(0x1ca))]();_0x5cae18[_0x1ee3d9(0x202)](o[_0x1ee3d9(0x1c6)](()=>{const _0x4a6970=_0x1ee3d9;_0x5b21b0[_0x4a6970(0x1d9)](_0x53c4cb=>_0x53c4cb[_0x4a6970(0x165)]()),_0x5b21b0[_0x4a6970(0x187)]();})),_0x5cae18[_0x1ee3d9(0x202)](this[_0x1ee3d9(0x163)][_0x1ee3d9(0x208)](_0x1592a9=>{const _0x44ddf3=_0x1ee3d9;var _0x18f7b7;if(_0x1592a9[_0x44ddf3(0x1b7)]!==o[_0x44ddf3(0x203)]['OPERATION']||!this['_liveShareService'][_0x44ddf3(0x1bb)](_0x1592a9['id']))return;const {id:_0x40be3d}=_0x1592a9;let _0x525dcb;_0x5b21b0[_0x44ddf3(0x1d4)](_0x40be3d)?_0x525dcb=_0x5b21b0[_0x44ddf3(0x1dc)](_0x40be3d):(_0x525dcb=new O[(_0x44ddf3(0x210))](),_0x5b21b0[_0x44ddf3(0x1f9)](_0x40be3d,_0x525dcb),_0x525dcb[_0x44ddf3(0x153)](I[_0x44ddf3(0x169)]((_0x18f7b7=this[_0x44ddf3(0x1fa)][_0x44ddf3(0x176)](k))!=null?_0x18f7b7:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3a3535=>{const _0x4b6d2a=_0x44ddf3;this[_0x4b6d2a(0x1d5)]['send']({'eventID':d[_0x4b6d2a(0x16f)][_0x4b6d2a(0x157)],'data':{'unitID':this[_0x4b6d2a(0x1eb)],'operations':{[_0x3a3535['id']]:{'id':_0x3a3535['id'],'params':JSON[_0x4b6d2a(0x1c7)](_0x3a3535['params'])}}}},this['_unitID']);})),_0x525dcb[_0x44ddf3(0x1b4)](_0x1592a9);})),this[_0x1ee3d9(0x211)][_0x1ee3d9(0x177)](this[_0x1ee3d9(0x1eb)])[_0x1ee3d9(0x1d9)](_0x51d839=>this[_0x1ee3d9(0x1d5)][_0x1ee3d9(0x204)]({'eventID':d[_0x1ee3d9(0x16f)][_0x1ee3d9(0x157)],'data':{'unitID':this[_0x1ee3d9(0x1eb)],'operations':{[_0x51d839['id']]:{'id':_0x51d839['id'],'params':JSON['stringify'](_0x51d839[_0x1ee3d9(0x1b5)])}}}},this['_unitID']));}[_0x3bf8b1(0x159)](){const _0x56c09d=_0x3bf8b1;var _0x1cea07;this[_0x56c09d(0x205)][_0x56c09d(0x1b4)]('idle'),(_0x1cea07=this[_0x56c09d(0x1ba)])==null||_0x1cea07[_0x56c09d(0x1da)](),this['_commandDisposable']=null;}[_0x3bf8b1(0x19e)](){const _0xf63e=_0x3bf8b1;var _0x25295a;(_0x25295a=this[_0xf63e(0x1ba)])==null||_0x25295a[_0xf63e(0x1da)](),this['_status$']['next']('following');}['_beIdle'](){const _0x14ba9e=_0x3bf8b1;var _0x194174;this[_0x14ba9e(0x205)]['next']('idle'),(_0x194174=this[_0x14ba9e(0x1ba)])==null||_0x194174[_0x14ba9e(0x1da)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x31b4bf=_0x3bf8b1;var _0x14598d;this[_0x31b4bf(0x205)][_0x31b4bf(0x1b4)](_0x31b4bf(0x191)),(_0x14598d=this['_commandDisposable'])==null||_0x14598d[_0x31b4bf(0x1da)]();}[_0x3bf8b1(0x1fb)](_0x438a30){const _0x489c0c=_0x3bf8b1;if([_0x489c0c(0x1fc),'not-following',_0x489c0c(0x1a3)]['includes'](this[_0x489c0c(0x1b0)])||!_0x438a30[_0x489c0c(0x1b8)][_0x489c0c(0x1e2)]||_0x438a30['data'][_0x489c0c(0x1e2)]===this[_0x489c0c(0x1d5)]['getMemberID']())return;this[_0x489c0c(0x1b0)]==='idle'&&this[_0x489c0c(0x19e)]();const _0x9d8f32=_0x438a30[_0x489c0c(0x1b8)][_0x489c0c(0x1ac)];Object[_0x489c0c(0x19c)](_0x9d8f32)['forEach'](_0x280fac=>{const _0x2344d8=_0x489c0c;this[_0x2344d8(0x163)][_0x2344d8(0x14e)](_0x280fac['id'],_0x280fac[_0x2344d8(0x1b5)]?JSON[_0x2344d8(0x14d)](_0x280fac[_0x2344d8(0x1b5)]):null,{'fromCollab':!0x0});});}[_0x3bf8b1(0x20d)](){const _0x28e9ab=_0x3bf8b1;var _0x24ff55;this['_status$'][_0x28e9ab(0x1b4)]('offline'),(_0x24ff55=this[_0x28e9ab(0x1ba)])==null||_0x24ff55[_0x28e9ab(0x1da)]();}[_0x3bf8b1(0x17e)](){const _0x242d7d=_0x3bf8b1;this[_0x242d7d(0x205)][_0x242d7d(0x1b4)](_0x242d7d(0x185)),this[_0x242d7d(0x184)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x3bf8b1(0x16d)]),S(0x3,o[_0x3bf8b1(0x167)](E)),S(0x4,o[_0x3bf8b1(0x16b)])],exports[_0x3bf8b1(0x213)]);function $(){const _0x291ca8=_0x3bf8b1,_0x16f4ce=p[_0x291ca8(0x214)](exports[_0x291ca8(0x19d)]),_0x3e395b=p['useDependency'](o[_0x291ca8(0x17b)]),_0x1b4882=p['useObservable'](()=>_0x3e395b[_0x291ca8(0x18e)](o[_0x291ca8(0x190)][_0x291ca8(0x200)]),void 0x0,!0x1,[]),[_0x4d4931,_0x5033ba]=v['useState'](null),[_0xec5472,_0xac66df]=v[_0x291ca8(0x1bf)](u[_0x291ca8(0x1b3)]),_0x45ba66=v[_0x291ca8(0x1e9)](null);return v['useEffect'](()=>(_0x1b4882&&_0x16f4ce[_0x291ca8(0x142)](_0x1b4882[_0x291ca8(0x148)]())[_0x291ca8(0x16e)](_0x1abaab=>{const _0x9c041f=_0x291ca8;_0x5033ba(_0x1abaab),_0x45ba66[_0x9c041f(0x1ed)]=_0x1abaab[_0x9c041f(0x1a1)][_0x9c041f(0x1e5)](_0x5a9264=>{_0xac66df(_0x5a9264);});}),()=>{const _0x52ef71=_0x291ca8;var _0x236fa9;(_0x236fa9=_0x45ba66[_0x52ef71(0x1ed)])==null||_0x236fa9[_0x52ef71(0x178)](),_0x45ba66['current']=null;}),[_0x1b4882,_0x16f4ce]),_0x4d4931?l[_0x291ca8(0x1f1)](f[_0x291ca8(0x1aa)],{'align':'end','disabled':_0xec5472===u[_0x291ca8(0x172)],'className':_0x291ca8(0x18b),'overlay':l['jsx'](W,{'status':_0xec5472,'coordinator':_0x4d4931}),'children':l['jsx'](_0x291ca8(0x1e1),{'className':f[_0x291ca8(0x193)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xec5472===u[_0x291ca8(0x172)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xec5472!==u[_0x291ca8(0x172)]}),'type':_0x291ca8(0x1e1),'children':l[_0x291ca8(0x1f1)](R,{'className':_0x291ca8(0x18d)})})}):null;}function W(_0x56d086){const _0x3f5358=_0x3bf8b1,{status:_0x576b5e,coordinator:_0x5821b0}=_0x56d086;switch(_0x576b5e){case u[_0x3f5358(0x1b3)]:return l[_0x3f5358(0x1f1)](G,{'coordinator':_0x5821b0});case u[_0x3f5358(0x145)]:return l[_0x3f5358(0x1f1)](B,{'coordinator':_0x5821b0});case u[_0x3f5358(0x168)]:return l[_0x3f5358(0x1f1)](Y,{'coordinator':_0x5821b0});case u[_0x3f5358(0x172)]:return l[_0x3f5358(0x1f1)](J,{});case u[_0x3f5358(0x181)]:return l[_0x3f5358(0x1f1)](Z,{'coordinator':_0x5821b0});default:return null;}}function G(_0x56f425){const _0x395c23=_0x3bf8b1,{coordinator:_0x19c84e}=_0x56f425;return l[_0x395c23(0x1ef)](l[_0x395c23(0x175)],{'children':[l[_0x395c23(0x1f1)](_0x395c23(0x154),{'className':_0x395c23(0x1a2),'children':_0x395c23(0x14b)}),l[_0x395c23(0x1f1)](f[_0x395c23(0x1f4)],{'onClick':()=>_0x19c84e[_0x395c23(0x1d7)](),'children':_0x395c23(0x1ff)})]});}function B(_0x1b5cbc){const _0x2ed32f=_0x3bf8b1,{coordinator:_0x2efa6e}=_0x1b5cbc;return l[_0x2ed32f(0x1ef)](l['Fragment'],{'children':[l[_0x2ed32f(0x1f1)]('div',{'className':_0x2ed32f(0x1a2),'children':_0x2ed32f(0x162)}),l[_0x2ed32f(0x1f1)](f[_0x2ed32f(0x1f4)],{'onClick':()=>_0x2efa6e['stopFollowing'](),'children':_0x2ed32f(0x199)})]});}function Y(_0x347e69){const _0x38ef6d=_0x3bf8b1,{coordinator:_0xdd8854}=_0x347e69;return l[_0x38ef6d(0x1ef)](l[_0x38ef6d(0x175)],{'children':[l['jsx'](_0x38ef6d(0x154),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x38ef6d(0x166)}),l[_0x38ef6d(0x1f1)](f[_0x38ef6d(0x1f4)],{'variant':_0x38ef6d(0x18f),'onClick':()=>_0xdd8854[_0x38ef6d(0x192)](),'children':'Start\x20following'})]});}function Z(_0xeaf4f4){const _0x192f51=_0x3bf8b1,{coordinator:_0x4df6b1}=_0xeaf4f4;return l[_0x192f51(0x1ef)](l['Fragment'],{'children':[l[_0x192f51(0x1f1)]('div',{'className':_0x192f51(0x1a2),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x192f51(0x1f1)](f[_0x192f51(0x1f4)],{'variant':_0x192f51(0x14f),'onClick':()=>_0x4df6b1[_0x192f51(0x1e7)](),'children':_0x192f51(0x20e)})]});}function J(){const _0x2270ea=_0x3bf8b1;return l[_0x2270ea(0x1f1)](l['Fragment'],{'children':_0x2270ea(0x1a9)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x52b1b2,_0x24f05b,_0x5da2f4,_0x38c1b4)=>{const _0x281350=_0x3bf8b1;for(var _0x26b5d3=_0x38c1b4>0x1?void 0x0:_0x38c1b4?K(_0x24f05b,_0x5da2f4):_0x24f05b,_0x2440e1=_0x52b1b2[_0x281350(0x15b)]-0x1,_0x2c7f4a;_0x2440e1>=0x0;_0x2440e1--)(_0x2c7f4a=_0x52b1b2[_0x2440e1])&&(_0x26b5d3=_0x2c7f4a(_0x26b5d3)||_0x26b5d3);return _0x26b5d3;},L=(_0x6ff18,_0x5cc798)=>(_0x53fd8e,_0x4fa9e5)=>_0x5cc798(_0x53fd8e,_0x4fa9e5,_0x6ff18);exports[_0x3bf8b1(0x174)]=class extends o[_0x3bf8b1(0x1d0)]{constructor(_0x406e91,_0x37248e){const _0x349b0f=_0x3bf8b1;super(),this[_0x349b0f(0x196)]=_0x406e91,this[_0x349b0f(0x20a)]=_0x37248e,this[_0x349b0f(0x161)]();}['_mountLiveShare'](){const _0x142150=_0x3bf8b1;this[_0x142150(0x207)](this['_uiPartsService']['registerComponent'](p[_0x142150(0x15e)]['HEADER_MENU'],()=>p[_0x142150(0x1af)]($,this['_injector'])));}},exports[_0x3bf8b1(0x174)]=z([L(0x0,o[_0x3bf8b1(0x167)](o[_0x3bf8b1(0x179)])),L(0x1,p[_0x3bf8b1(0x1f7)])],exports[_0x3bf8b1(0x174)]);const Q=_0x3bf8b1(0x1c2),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x2845e4,_0x591acb,_0x23f0aa,_0x49d1aa)=>{const _0x15020a=_0x3bf8b1;for(var _0x3c8d01=_0x49d1aa>0x1?void 0x0:_0x49d1aa?X(_0x591acb,_0x23f0aa):_0x591acb,_0x14caab=_0x2845e4[_0x15020a(0x15b)]-0x1,_0x2cbaf5;_0x14caab>=0x0;_0x14caab--)(_0x2cbaf5=_0x2845e4[_0x14caab])&&(_0x3c8d01=_0x2cbaf5(_0x3c8d01)||_0x3c8d01);return _0x3c8d01;},te=(_0x76dd90,_0x465fca)=>(_0x1daf90,_0x43e028)=>_0x465fca(_0x1daf90,_0x43e028,_0x76dd90);let m=class extends o[_0x3bf8b1(0x1d0)]{constructor(_0x3393a9){const _0xe7a249=_0x3bf8b1;super(),this[_0xe7a249(0x211)]=_0x3393a9,this[_0xe7a249(0x15a)]();}[_0x3bf8b1(0x15a)](){const _0x251c4a=_0x3bf8b1;[D[_0x251c4a(0x1a0)]['id'],D[_0x251c4a(0x1a6)]['id'],C[_0x251c4a(0x15d)]['id']][_0x251c4a(0x1d9)](_0x513a06=>{const _0xb77def=_0x251c4a;this['disposeWithMe'](this[_0xb77def(0x211)][_0xb77def(0x1d3)](_0x513a06));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x3bf8b1(0x1c3)],se=Object['getOwnPropertyDescriptor'],ne=(_0xf2b976,_0x2a4a13,_0x552247)=>_0x2a4a13 in _0xf2b976?ie(_0xf2b976,_0x2a4a13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x552247}):_0xf2b976[_0x2a4a13]=_0x552247,re=(_0x31e09a,_0x57f078,_0x3b49f9,_0x5f4d91)=>{const _0x4c48a0=_0x3bf8b1;for(var _0x2dacaa=_0x5f4d91>0x1?void 0x0:_0x5f4d91?se(_0x57f078,_0x3b49f9):_0x57f078,_0x557e93=_0x31e09a[_0x4c48a0(0x15b)]-0x1,_0x328b43;_0x557e93>=0x0;_0x557e93--)(_0x328b43=_0x31e09a[_0x557e93])&&(_0x2dacaa=_0x328b43(_0x2dacaa)||_0x2dacaa);return _0x2dacaa;},N=(_0x30b657,_0x4bc9e3)=>(_0x434370,_0x1e3176)=>_0x4bc9e3(_0x434370,_0x1e3176,_0x30b657),A=(_0x5ec3d0,_0x3e7b69,_0x171e27)=>ne(_0x5ec3d0,typeof _0x3e7b69!='symbol'?_0x3e7b69+'':_0x3e7b69,_0x171e27);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x3bf8b1(0x140)]=class extends o[_0x3bf8b1(0x143)]{constructor(_0x24ba40=w,_0x192c21,_0x9b6692){const _0x171475=_0x3bf8b1;super(),this[_0x171475(0x1df)]=_0x24ba40,this[_0x171475(0x196)]=_0x192c21,this[_0x171475(0x1fa)]=_0x9b6692;const {..._0x413cfc}=o[_0x171475(0x155)]({},w,this[_0x171475(0x1df)]);this[_0x171475(0x1fa)]['setConfig'](Q,_0x413cfc);}[_0x3bf8b1(0x144)](){const _0x31803a=_0x3bf8b1;o[_0x31803a(0x15f)](this[_0x31803a(0x196)],o[_0x31803a(0x160)]([[E],[exports['LiveShareController']],[m],[exports[_0x31803a(0x174)]]],this[_0x31803a(0x1df)][_0x31803a(0x1e4)])),o[_0x31803a(0x1a4)](this['_injector'],[[m]]);}['onRendered'](){const _0xeade5f=_0x3bf8b1;o['touchDependencies'](this[_0xeade5f(0x196)],[[exports[_0xeade5f(0x174)]]]);}},A(exports[_0x3bf8b1(0x140)],'type',o['UniverInstanceType'][_0x3bf8b1(0x1cf)]),A(exports[_0x3bf8b1(0x140)],_0x3bf8b1(0x1ae),oe),exports['UniverLiveSharePlugin']=re([o['DependentOn'](b[_0x3bf8b1(0x149)]),N(0x1,o['Inject'](o[_0x3bf8b1(0x179)])),N(0x2,o[_0x3bf8b1(0x16d)])],exports[_0x3bf8b1(0x140)]),exports['LiveShare']=$,exports[_0x3bf8b1(0x1bd)]=E,exports[_0x3bf8b1(0x19f)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x364c8a=_0x285d;(function(_0x3a2731,_0x53b725){const _0x474556=_0x285d,_0x1f4bde=_0x3a2731();while(!![]){try{const _0x4e0e74=-parseInt(_0x474556(0x197))/0x1+-parseInt(_0x474556(0x19c))/0x2+parseInt(_0x474556(0x1ae))/0x3*(parseInt(_0x474556(0x1a4))/0x4)+parseInt(_0x474556(0x1a8))/0x5*(parseInt(_0x474556(0x1a3))/0x6)+-parseInt(_0x474556(0x1ad))/0x7+parseInt(_0x474556(0x1a9))/0x8*(-parseInt(_0x474556(0x190))/0x9)+parseInt(_0x474556(0x19b))/0xa*(parseInt(_0x474556(0x1a5))/0xb);if(_0x4e0e74===_0x53b725)break;else _0x1f4bde['push'](_0x1f4bde['shift']());}catch(_0x8a1861){_0x1f4bde['push'](_0x1f4bde['shift']());}}}(_0x13c5,0xb97a8));import{LiveShareController as _0xe6e695,LiveShareStatus as _0xf99993}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x92f1ce}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x40cefd}from'@univerjs/sheets';function _0x13c5(){const _0x52bc73=['_commandService','startPresenting','1479122hfvyjx','getActiveWorkbook','startRow','startColumn','34633120MmCEiI','2231776SXnyFI','_injector','getLiveShareCoordinatorSync','getSheetId','_initialize','tryStartPresenting','startFollowing','6LTxvPj','8kxbQqu','11azWisD','executeCommand','extend','1447085msFrZn','8uzGRea','No\x20active\x20workbook\x20found.','PRESENTING','getId','1914388aJYKFM','269949uthRqI','IDLE','syncExecuteCommand','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2740329GgyCSA','getUnitId','get','stopFollowing','getStatus'];_0x13c5=function(){return _0x52bc73;};return _0x13c5();}import{SetScrollOperation as _0x5a7a7f}from'@univerjs/sheets-ui';import{FRange as _0x13d6fc}from'@univerjs/sheets/facade';import{FUniver as _0x99dee3,FEnum as _0x42d318}from'@univerjs/core/facade';class I extends _0x13d6fc{[_0x364c8a(0x1a0)](_0x3b3707,_0x2646a4,_0x2ba177,_0x3a902f,_0x5435b2){const _0x18614c=_0x364c8a,_0x29fcb8=_0x3b3707[_0x18614c(0x192)](_0xe6e695),_0x25d58d=_0x3b3707[_0x18614c(0x192)](_0x92f1ce),_0x4b0d1a=_0x2646a4[_0x18614c(0x191)](),_0x2a2c09=_0x2646a4['getActiveSheet'](),_0x4ae63a=_0x29fcb8[_0x18614c(0x19e)](_0x4b0d1a);(_0x4ae63a==null?void 0x0:_0x4ae63a[_0x18614c(0x194)]())!==_0xf99993[_0x18614c(0x1ab)]||(_0x2ba177['getSheetId']()!==_0x2a2c09[_0x18614c(0x19f)]()&&this[_0x18614c(0x195)][_0x18614c(0x1a6)](_0x40cefd['id'],{'unitId':_0x4b0d1a,'subUnitId':_0x2ba177[_0x18614c(0x19f)]()}),!_0x25d58d['getRenderById'](_0x4b0d1a))||_0x5435b2[_0x18614c(0x18e)](_0x5a7a7f['id'],{'unitId':_0x2646a4[_0x18614c(0x191)](),'sheetId':_0x2ba177['getSheetId'](),'sheetViewStartRow':_0x3a902f[_0x18614c(0x199)],'sheetViewStartColumn':_0x3a902f[_0x18614c(0x19a)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x285d(_0x20ccda,_0x35090f){const _0x13c51b=_0x13c5();return _0x285d=function(_0x285d40,_0x580952){_0x285d40=_0x285d40-0x18e;let _0x18db7d=_0x13c51b[_0x285d40];return _0x18db7d;},_0x285d(_0x20ccda,_0x35090f);}_0x13d6fc['extend'](I);class m extends _0x99dee3{['getLiveShareStatus'](){const _0x5579db=_0x364c8a;var _0x3ab854,_0x1b6d4f;const _0x1aae08=this['_injector'][_0x5579db(0x192)](_0xe6e695),_0x18f085=(_0x3ab854=this['getActiveWorkbook']())==null?void 0x0:_0x3ab854[_0x5579db(0x1ac)]();if(!_0x18f085)throw new Error(_0x5579db(0x1aa));const _0x502600=_0x1aae08[_0x5579db(0x19e)](_0x18f085);return(_0x1b6d4f=_0x502600==null?void 0x0:_0x502600[_0x5579db(0x194)]())!=null?_0x1b6d4f:_0xf99993[_0x5579db(0x1af)];}['startFollowing'](){const _0x3a754f=_0x364c8a;var _0x136cfc;const _0xdfa234=this[_0x3a754f(0x19d)][_0x3a754f(0x192)](_0xe6e695),_0x16c4b1=(_0x136cfc=this['getActiveWorkbook']())==null?void 0x0:_0x136cfc[_0x3a754f(0x1ac)]();if(!_0x16c4b1)throw new Error('No\x20active\x20workbook\x20found.');const _0x382c78=_0xdfa234[_0x3a754f(0x19e)](_0x16c4b1);if(!_0x382c78)throw new Error(_0x3a754f(0x18f));_0x382c78[_0x3a754f(0x1a2)]();}[_0x364c8a(0x193)](){const _0x1746c2=_0x364c8a;var _0x35c55c;const _0x1658cf=this[_0x1746c2(0x19d)][_0x1746c2(0x192)](_0xe6e695),_0x383f30=(_0x35c55c=this[_0x1746c2(0x198)]())==null?void 0x0:_0x35c55c[_0x1746c2(0x1ac)]();if(!_0x383f30)throw new Error(_0x1746c2(0x1aa));const _0x15f529=_0x1658cf[_0x1746c2(0x19e)](_0x383f30);if(!_0x15f529)throw new Error(_0x1746c2(0x18f));_0x15f529['stopFollowing']();}[_0x364c8a(0x196)](){const _0x4ea349=_0x364c8a;var _0x3ef428;const _0x20e6d8=this[_0x4ea349(0x19d)][_0x4ea349(0x192)](_0xe6e695),_0x30e6b8=(_0x3ef428=this[_0x4ea349(0x198)]())==null?void 0x0:_0x3ef428[_0x4ea349(0x1ac)]();if(!_0x30e6b8)throw new Error(_0x4ea349(0x1aa));const _0x5689d1=_0x20e6d8[_0x4ea349(0x19e)](_0x30e6b8);if(!_0x5689d1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5689d1[_0x4ea349(0x1a1)]();}['stopPresenting'](){const _0x4af348=_0x364c8a;var _0x399ada;const _0x9934ad=this[_0x4af348(0x19d)]['get'](_0xe6e695),_0x739f32=(_0x399ada=this[_0x4af348(0x198)]())==null?void 0x0:_0x399ada[_0x4af348(0x1ac)]();if(!_0x739f32)throw new Error('No\x20active\x20workbook\x20found.');const _0xb71475=_0x9934ad['getLiveShareCoordinatorSync'](_0x739f32);if(!_0xb71475)throw new Error(_0x4af348(0x18f));_0xb71475['stopPresenting']();}}_0x99dee3[_0x364c8a(0x1a7)](m);class C extends _0x42d318{get['LiveShareStatusEnum'](){return _0xf99993;}}_0x42d318[_0x364c8a(0x1a7)](C);
1
+ const _0x51945a=_0x522f;function _0x32a6(){const _0x64d1cb=['3087525Iqkwxk','5882404TSKzMY','1506876pukGCF','getUnitId','getLiveShareStatus','startRow','getStatus','startColumn','getSheetId','stopFollowing','12TEjuhz','executeCommand','_injector','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','extend','getId','_initialize','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','5568IvZHoJ','537500VMoJLc','syncExecuteCommand','startPresenting','IDLE','10OwlkKA','_commandService','6lXnArd','573332kihXve','getActiveWorkbook','8kPZpZj','5998491BtDnOH','get'];_0x32a6=function(){return _0x64d1cb;};return _0x32a6();}(function(_0x1b646a,_0x2fc0fe){const _0x3db0ea=_0x522f,_0xc75d1=_0x1b646a();while(!![]){try{const _0x557c5d=-parseInt(_0x3db0ea(0x177))/0x1+parseInt(_0x3db0ea(0x17f))/0x2*(parseInt(_0x3db0ea(0x17e))/0x3)+parseInt(_0x3db0ea(0x178))/0x4+parseInt(_0x3db0ea(0x184))/0x5+parseInt(_0x3db0ea(0x18e))/0x6*(-parseInt(_0x3db0ea(0x186))/0x7)+-parseInt(_0x3db0ea(0x181))/0x8*(parseInt(_0x3db0ea(0x182))/0x9)+-parseInt(_0x3db0ea(0x17c))/0xa*(-parseInt(_0x3db0ea(0x185))/0xb);if(_0x557c5d===_0x2fc0fe)break;else _0xc75d1['push'](_0xc75d1['shift']());}catch(_0x54081a){_0xc75d1['push'](_0xc75d1['shift']());}}}(_0x32a6,0xb8e7d));import{LiveShareController as _0x4ff4aa,LiveShareStatus as _0x2a2d81}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4c4911}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x18d3f9}from'@univerjs/sheets';function _0x522f(_0x2b8cc9,_0x1c5616){_0x2b8cc9=_0x2b8cc9-0x16f;const _0x32a6c4=_0x32a6();let _0x522fd5=_0x32a6c4[_0x2b8cc9];return _0x522fd5;}import{SetScrollOperation as _0x39312a}from'@univerjs/sheets-ui';import{FRange as _0x363235}from'@univerjs/sheets/facade';import{FUniver as _0x47b429,FEnum as _0x36e1e3}from'@univerjs/core/facade';class I extends _0x363235{[_0x51945a(0x174)](_0x443719,_0x17675a,_0x1c259f,_0x17416b,_0x5d0501){const _0x1c0dc9=_0x51945a,_0x925940=_0x443719[_0x1c0dc9(0x183)](_0x4ff4aa),_0xcac281=_0x443719[_0x1c0dc9(0x183)](_0x4c4911),_0x4d412e=_0x17675a[_0x1c0dc9(0x187)](),_0x42cc61=_0x17675a['getActiveSheet'](),_0xb5b64e=_0x925940[_0x1c0dc9(0x176)](_0x4d412e);(_0xb5b64e==null?void 0x0:_0xb5b64e[_0x1c0dc9(0x18a)]())!==_0x2a2d81['PRESENTING']||(_0x1c259f['getSheetId']()!==_0x42cc61[_0x1c0dc9(0x18c)]()&&this[_0x1c0dc9(0x17d)][_0x1c0dc9(0x18f)](_0x18d3f9['id'],{'unitId':_0x4d412e,'subUnitId':_0x1c259f[_0x1c0dc9(0x18c)]()}),!_0xcac281['getRenderById'](_0x4d412e))||_0x5d0501[_0x1c0dc9(0x179)](_0x39312a['id'],{'unitId':_0x17675a['getUnitId'](),'sheetId':_0x1c259f[_0x1c0dc9(0x18c)](),'sheetViewStartRow':_0x17416b[_0x1c0dc9(0x189)],'sheetViewStartColumn':_0x17416b[_0x1c0dc9(0x18b)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x363235['extend'](I);class m extends _0x47b429{[_0x51945a(0x188)](){const _0x567ed8=_0x51945a;var _0x337683,_0x13aef0;const _0x1d6a7d=this[_0x567ed8(0x16f)][_0x567ed8(0x183)](_0x4ff4aa),_0x346df1=(_0x337683=this[_0x567ed8(0x180)]())==null?void 0x0:_0x337683[_0x567ed8(0x173)]();if(!_0x346df1)throw new Error('No\x20active\x20workbook\x20found.');const _0x52ceb9=_0x1d6a7d[_0x567ed8(0x176)](_0x346df1);return(_0x13aef0=_0x52ceb9==null?void 0x0:_0x52ceb9[_0x567ed8(0x18a)]())!=null?_0x13aef0:_0x2a2d81[_0x567ed8(0x17b)];}['startFollowing'](){const _0x1b7b94=_0x51945a;var _0x5bd31e;const _0x12b72d=this[_0x1b7b94(0x16f)][_0x1b7b94(0x183)](_0x4ff4aa),_0x35ae0a=(_0x5bd31e=this[_0x1b7b94(0x180)]())==null?void 0x0:_0x5bd31e['getId']();if(!_0x35ae0a)throw new Error(_0x1b7b94(0x175));const _0x107e73=_0x12b72d[_0x1b7b94(0x176)](_0x35ae0a);if(!_0x107e73)throw new Error(_0x1b7b94(0x171));_0x107e73['startFollowing']();}[_0x51945a(0x18d)](){const _0x2e2744=_0x51945a;var _0x20458a;const _0x128d6d=this[_0x2e2744(0x16f)][_0x2e2744(0x183)](_0x4ff4aa),_0x59ffae=(_0x20458a=this['getActiveWorkbook']())==null?void 0x0:_0x20458a[_0x2e2744(0x173)]();if(!_0x59ffae)throw new Error(_0x2e2744(0x175));const _0x3c6a67=_0x128d6d[_0x2e2744(0x176)](_0x59ffae);if(!_0x3c6a67)throw new Error(_0x2e2744(0x171));_0x3c6a67[_0x2e2744(0x18d)]();}[_0x51945a(0x17a)](){const _0x98636d=_0x51945a;var _0x5c9b76;const _0x5a3188=this[_0x98636d(0x16f)][_0x98636d(0x183)](_0x4ff4aa),_0x1df158=(_0x5c9b76=this[_0x98636d(0x180)]())==null?void 0x0:_0x5c9b76['getId']();if(!_0x1df158)throw new Error('No\x20active\x20workbook\x20found.');const _0x21ec05=_0x5a3188['getLiveShareCoordinatorSync'](_0x1df158);if(!_0x21ec05)throw new Error(_0x98636d(0x171));_0x21ec05['tryStartPresenting']();}[_0x51945a(0x170)](){const _0x55ad39=_0x51945a;var _0x17e2e4;const _0x37fbd8=this['_injector']['get'](_0x4ff4aa),_0x25467e=(_0x17e2e4=this[_0x55ad39(0x180)]())==null?void 0x0:_0x17e2e4[_0x55ad39(0x173)]();if(!_0x25467e)throw new Error(_0x55ad39(0x175));const _0x197cce=_0x37fbd8['getLiveShareCoordinatorSync'](_0x25467e);if(!_0x197cce)throw new Error(_0x55ad39(0x171));_0x197cce[_0x55ad39(0x170)]();}}_0x47b429[_0x51945a(0x172)](m);class C extends _0x36e1e3{get['LiveShareStatusEnum'](){return _0x2a2d81;}}_0x36e1e3['extend'](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x33f3a0=_0x2e44;(function(_0x5ad21f,_0x3dc78a){const _0x5d7d3f=_0x2e44,_0x18ce42=_0x5ad21f();while(!![]){try{const _0x20d940=-parseInt(_0x5d7d3f(0x225))/0x1*(-parseInt(_0x5d7d3f(0x1f2))/0x2)+-parseInt(_0x5d7d3f(0x25c))/0x3*(parseInt(_0x5d7d3f(0x274))/0x4)+parseInt(_0x5d7d3f(0x23f))/0x5+-parseInt(_0x5d7d3f(0x203))/0x6+-parseInt(_0x5d7d3f(0x249))/0x7*(-parseInt(_0x5d7d3f(0x264))/0x8)+parseInt(_0x5d7d3f(0x22b))/0x9*(parseInt(_0x5d7d3f(0x239))/0xa)+-parseInt(_0x5d7d3f(0x21f))/0xb*(parseInt(_0x5d7d3f(0x1ce))/0xc);if(_0x20d940===_0x3dc78a)break;else _0x18ce42['push'](_0x18ce42['shift']());}catch(_0x4c97a6){_0x18ce42['push'](_0x18ce42['shift']());}}}(_0x459e,0xad3af));var J=Object[_0x33f3a0(0x236)],K=(_0xc79036,_0x4e3ecf,_0xd7d539)=>_0x4e3ecf in _0xc79036?J(_0xc79036,_0x4e3ecf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd7d539}):_0xc79036[_0x4e3ecf]=_0xd7d539,u=(_0x4422ad,_0x345867,_0x3f3468)=>K(_0x4422ad,typeof _0x345867!='symbol'?_0x345867+'':_0x345867,_0x3f3468);import{Disposable as _0x123ebc,toDisposable as _0x31e46f,IUniverInstanceService as _0x56e919,Inject as _0x4770f0,Injector as _0x52080b,IConfigService as _0x404a20,ICommandService as _0x3d793e,RxDisposable as _0x17838a,UniverInstanceType as _0x1afb45,DisposableCollection as _0x5321e8,CommandType as _0x4795cf,DependentOn as _0x83a676,Plugin as _0x14031e,merge as _0x2fd27e,registerDependencies as _0x293650,mergeOverrideWithDependencies as _0x57eb35,touchDependencies as _0x19de09}from'@univerjs/core';import{useDependency as _0x26c8a9,useObservable as _0x4c2a85,IUIPartsService as _0x510518,BuiltInUIPart as _0x221148,connectInjector as _0x1211a}from'@univerjs/ui';import{jsx as _0x2d6d1e,jsxs as _0x4bfea3,Fragment as _0x4d5d84}from'react/jsx-runtime';import{Dropdown as _0x2eaec2,clsx as _0xf2d602,Button as _0x5c367e}from'@univerjs/design';import{useRef as _0x278b84,createElement as _0x3b10f6,forwardRef as _0x10402b,useState as _0x575f52,useEffect as _0x1a5f41}from'react';import{CollaborationEvent as _0xb16a85,parseProtocolChangeset as _0xcaafe2}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x58b373,SessionStatus as _0x178ef0,UniverCollaborationClientPlugin as _0x5984b3}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x10d1bf,SetWorksheetActiveOperation as _0x46858f}from'@univerjs/sheets';import{BehaviorSubject as _0x176527,Subject as _0x3a662b}from'rxjs';import{takeUntil as _0x37843a,throttleTime as _0x5f4e61}from'rxjs/operators';import{SetZoomRatioOperation as _0x57d381,SetScrollOperation as _0x23a13f}from'@univerjs/sheets-ui';function k({ref:_0x5b4cea,..._0x38787f}){const _0x3aa2f8=_0x33f3a0,{icon:_0x35d148,id:_0x19eaf2,className:_0x2a3884,extend:_0x303024,..._0x53100e}=_0x38787f,_0x15fd1b=(_0x3aa2f8(0x270)+_0x19eaf2+'\x20'+(_0x2a3884||''))[_0x3aa2f8(0x251)](),_0x50b4e7=_0x278b84('_'+Oe());return G(_0x35d148,''+_0x19eaf2,{'defIds':_0x35d148['defIds'],'idSuffix':_0x50b4e7['current']},{'ref':_0x5b4cea,'className':_0x15fd1b,..._0x53100e},_0x303024);}function G(_0x556d60,_0x9df4d4,_0x4fb525,_0xdf95c,_0x29ec95){const _0x46d3d6=_0x33f3a0;return _0x3b10f6(_0x556d60[_0x46d3d6(0x241)],{'key':_0x9df4d4,...be(_0x556d60,_0x4fb525,_0x29ec95),..._0xdf95c},(Ee(_0x556d60,_0x4fb525)[_0x46d3d6(0x1db)]||[])[_0x46d3d6(0x208)]((_0x401c42,_0x2cd970)=>G(_0x401c42,_0x9df4d4+'-'+_0x556d60[_0x46d3d6(0x241)]+'-'+_0x2cd970,_0x4fb525,void 0x0,_0x29ec95)));}function be(_0x3fc3ee,_0x278250,_0x114b3d){const _0x1be6fd=_0x33f3a0,_0x5e231b={..._0x3fc3ee['attrs']};_0x114b3d!=null&&_0x114b3d[_0x1be6fd(0x1f8)]&&_0x5e231b['fill']===_0x1be6fd(0x1f8)&&(_0x5e231b['fill']=_0x114b3d['colorChannel1']),_0x3fc3ee[_0x1be6fd(0x241)]===_0x1be6fd(0x1e0)&&_0x5e231b['id']&&(_0x5e231b['id']=_0x5e231b['id']+_0x278250[_0x1be6fd(0x245)]),Object[_0x1be6fd(0x23c)](_0x5e231b)[_0x1be6fd(0x228)](([_0x1cff51,_0x396038])=>{const _0x55f7d7=_0x1be6fd;_0x1cff51===_0x55f7d7(0x1e0)&&typeof _0x396038==_0x55f7d7(0x224)&&(_0x5e231b[_0x1cff51]=_0x396038[_0x55f7d7(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x278250[_0x55f7d7(0x245)]+')'));});const {defIds:_0xdade56}=_0x278250;return!_0xdade56||_0xdade56[_0x1be6fd(0x21b)]===0x0||(_0x3fc3ee[_0x1be6fd(0x241)]===_0x1be6fd(0x258)&&_0x5e231b['xlink:href']&&(_0x5e231b[_0x1be6fd(0x1e2)]=_0x5e231b[_0x1be6fd(0x1e2)]+_0x278250[_0x1be6fd(0x245)]),Object[_0x1be6fd(0x23c)](_0x5e231b)[_0x1be6fd(0x228)](([_0x3d541b,_0x515e38])=>{const _0x350485=_0x1be6fd;typeof _0x515e38==_0x350485(0x224)&&(_0x5e231b[_0x3d541b]=_0x515e38[_0x350485(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x278250[_0x350485(0x245)]+')'));})),_0x5e231b;}function Ee(_0x42c0ef,_0xd6ce40){const _0x230fdd=_0x33f3a0;var _0x3f6687;const {defIds:_0x1768f8}=_0xd6ce40;return!_0x1768f8||_0x1768f8['length']===0x0?_0x42c0ef:_0x42c0ef['tag']===_0x230fdd(0x1de)&&((_0x3f6687=_0x42c0ef['children'])!=null&&_0x3f6687[_0x230fdd(0x21b)])?{..._0x42c0ef,'children':_0x42c0ef['children'][_0x230fdd(0x208)](_0x1e6bad=>typeof _0x1e6bad[_0x230fdd(0x247)]['id']=='string'&&_0x1768f8&&_0x1768f8['includes'](_0x1e6bad[_0x230fdd(0x247)]['id'])?{..._0x1e6bad,'attrs':{..._0x1e6bad[_0x230fdd(0x247)],'id':_0x1e6bad[_0x230fdd(0x247)]['id']+_0xd6ce40[_0x230fdd(0x245)]}}:_0x1e6bad)}:_0x42c0ef;}function Oe(){const _0x39159b=_0x33f3a0;return Math[_0x39159b(0x237)]()[_0x39159b(0x1e6)](0x24)[_0x39159b(0x206)](0x2,0x8);}k[_0x33f3a0(0x20a)]=_0x33f3a0(0x25a);const we={'tag':'svg','attrs':{'xmlns':_0x33f3a0(0x1e5),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x33f3a0(0x23d),'height':'1em'},'children':[{'tag':_0x33f3a0(0x254),'attrs':{'fill':_0x33f3a0(0x21c),'d':_0x33f3a0(0x1f0)}},{'tag':_0x33f3a0(0x254),'attrs':{'fill':'currentColor','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':_0x33f3a0(0x1f4),'clipRule':_0x33f3a0(0x1f4)}}]},W=_0x10402b(function(_0x1133f4,_0x52c04b){const _0x4d89e6=_0x33f3a0;return _0x3b10f6(k,Object[_0x4d89e6(0x1d9)]({},_0x1133f4,{'id':_0x4d89e6(0x207),'ref':_0x52c04b,'icon':we}));});W[_0x33f3a0(0x20a)]='LiveShareIcon';class L extends _0x123ebc{constructor(){const _0x34dc27=_0x33f3a0;super(...arguments),u(this,_0x34dc27(0x1d0),new Set()),u(this,_0x34dc27(0x229),new Set());}['registerSharedOperation'](_0x914821){const _0x403db7=_0x33f3a0;return this['_sharedOperations'][_0x403db7(0x25b)](_0x914821),_0x31e46f(()=>this[_0x403db7(0x1d0)]['delete'](_0x914821));}['registerInitialStateReporter'](_0xb43a22){const _0x5385b1=_0x33f3a0;return this[_0x5385b1(0x229)][_0x5385b1(0x25b)](_0xb43a22),_0x31e46f(()=>this[_0x5385b1(0x229)]['delete'](_0xb43a22));}[_0x33f3a0(0x26d)](_0x1c1763){const _0x503683=_0x33f3a0;return this['_sharedOperations'][_0x503683(0x244)](_0x1c1763);}[_0x33f3a0(0x1fd)](_0x1267ab){const _0x24e62b=_0x33f3a0;return Array['from'](this[_0x24e62b(0x229)])[_0x24e62b(0x208)](_0x4fafe4=>_0x4fafe4(_0x1267ab));}}var Ne=Object[_0x33f3a0(0x24d)],Y=(_0x3ea768,_0x58f61a,_0xe93ef6,_0x51aebd)=>{const _0x67f94d=_0x33f3a0;for(var _0x4426c3=_0x51aebd>0x1?void 0x0:_0x51aebd?Ne(_0x58f61a,_0xe93ef6):_0x58f61a,_0x48ce84=_0x3ea768[_0x67f94d(0x21b)]-0x1,_0xdd11bf;_0x48ce84>=0x0;_0x48ce84--)(_0xdd11bf=_0x3ea768[_0x48ce84])&&(_0x4426c3=_0xdd11bf(_0x4426c3)||_0x4426c3);return _0x4426c3;},_=(_0x513a9f,_0x4ba8f1)=>(_0xfc4201,_0x4eb585)=>_0x4ba8f1(_0xfc4201,_0x4eb585,_0x513a9f);let S=class extends _0x17838a{constructor(_0x3758db,_0x4933f8,_0x5bf668){const _0x1894cf=_0x33f3a0;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3758db,this[_0x1894cf(0x1f9)]=_0x4933f8,this[_0x1894cf(0x1e4)]=_0x5bf668,this[_0x1894cf(0x23e)]());}async[_0x33f3a0(0x218)](_0x57f0fb){const _0x454f11=_0x33f3a0;return this[_0x454f11(0x275)]['has'](_0x57f0fb)||await this['_startLiveShareCoordinator'](_0x57f0fb),this[_0x454f11(0x275)][_0x454f11(0x20b)](_0x57f0fb);}[_0x33f3a0(0x22d)](_0x58cc5d){const _0x23bc19=_0x33f3a0;var _0x48ad61;return(_0x48ad61=this[_0x23bc19(0x275)][_0x23bc19(0x20b)](_0x58cc5d))!=null?_0x48ad61:null;}['_init'](){const _0x214d50=_0x33f3a0;this[_0x214d50(0x1d1)][_0x214d50(0x20c)](_0x1afb45[_0x214d50(0x1e1)])[_0x214d50(0x256)](_0x37843a(this['dispose$']))[_0x214d50(0x25e)](async _0x12f3c4=>{const _0x132751=_0x214d50,_0x454f48=_0x12f3c4[_0x132751(0x1f5)]();this[_0x132751(0x275)]['has'](_0x454f48)||this[_0x132751(0x1ee)](_0x454f48);}),this[_0x214d50(0x1d1)][_0x214d50(0x1da)](_0x1afb45[_0x214d50(0x1e1)])[_0x214d50(0x256)](_0x37843a(this['dispose$']))[_0x214d50(0x25e)](_0x3c7707=>{const _0x17a399=_0x214d50,_0x459a59=_0x3c7707[_0x17a399(0x1f5)](),_0xef1edc=this[_0x17a399(0x275)]['get'](_0x459a59);_0xef1edc==null||_0xef1edc[_0x17a399(0x26c)]();});}async[_0x33f3a0(0x1ee)](_0x674802){const _0x4402a1=_0x33f3a0,_0x2dc03b=await this[_0x4402a1(0x1e4)][_0x4402a1(0x243)](_0x674802),_0x4a00c3=this[_0x4402a1(0x1f9)][_0x4402a1(0x234)](N,_0x674802,_0x2dc03b);return _0x4a00c3[_0x4402a1(0x205)](),this[_0x4402a1(0x275)][_0x4402a1(0x1d2)](_0x674802,_0x4a00c3),_0x4a00c3;}};S=Y([_(0x0,_0x56e919),_(0x1,_0x4770f0(_0x52080b)),_(0x2,_0x4770f0(_0x58b373))],S);var c=(_0x27bf23=>(_0x27bf23[_0x33f3a0(0x24c)]='offline',_0x27bf23[_0x33f3a0(0x260)]=_0x33f3a0(0x1eb),_0x27bf23['FOLLOWING']='following',_0x27bf23['NOT_FOLLOWING']=_0x33f3a0(0x238),_0x27bf23['PRESENTING']=_0x33f3a0(0x255),_0x27bf23))(c||{});const Ce=_0x33f3a0(0x1df),De=0xc8;let N=class extends _0x17838a{constructor(_0x1d22cf,_0x92e78,_0x22e8c4,_0x52fee2,_0x1db30a){const _0x51c258=_0x33f3a0;super(),u(this,'_status$',new _0x176527('idle')),u(this,_0x51c258(0x1dd),this[_0x51c258(0x230)][_0x51c258(0x1dc)]()),u(this,'_init',!0x1),u(this,_0x51c258(0x268),null),u(this,'_presenter',null),(this[_0x51c258(0x263)]=_0x1d22cf,this[_0x51c258(0x1f1)]=_0x92e78,this[_0x51c258(0x23a)]=_0x22e8c4,this[_0x51c258(0x215)]=_0x52fee2,this[_0x51c258(0x1d4)]=_0x1db30a);}get['_status'](){const _0x438f46=_0x33f3a0;return this['_status$'][_0x438f46(0x1e3)]();}[_0x33f3a0(0x26c)](){const _0x27ec2c=_0x33f3a0;var _0x72d230;(_0x72d230=this[_0x27ec2c(0x268)])==null||_0x72d230['dispose'](),this['_status$'][_0x27ec2c(0x24b)](_0x27ec2c(0x1eb)),this[_0x27ec2c(0x230)][_0x27ec2c(0x220)]();}[_0x33f3a0(0x252)](){const _0x11edac=_0x33f3a0;return this[_0x11edac(0x25d)];}[_0x33f3a0(0x205)](){const _0x102587=_0x33f3a0;this['_init']||(this[_0x102587(0x23e)]=!0x0,this['_collabSession'][_0x102587(0x20f)][_0x102587(0x256)](_0x37843a(this['dispose$']))[_0x102587(0x25e)](_0x5ef95c=>{const _0x443f08=_0x102587;switch(_0x5ef95c){case _0x178ef0[_0x443f08(0x24c)]:this['_handleOffline']();break;case _0x178ef0[_0x443f08(0x257)]:this['_handleOnline']();break;}}),this[_0x102587(0x1f1)][_0x102587(0x222)][_0x102587(0x256)](_0x37843a(this[_0x102587(0x250)]))['subscribe'](_0x1be2fe=>{const _0x1fcfc9=_0x102587,{eventID:_0x1d0554}=_0x1be2fe;switch(_0x1d0554){case _0xb16a85[_0x1fcfc9(0x227)]:this[_0x1fcfc9(0x202)](_0x1be2fe);break;case _0xb16a85[_0x1fcfc9(0x1cf)]:this[_0x1fcfc9(0x232)](_0x1be2fe);break;case _0xb16a85[_0x1fcfc9(0x272)]:this['_handleTerminate']();break;case _0xb16a85[_0x1fcfc9(0x22f)]:this[_0x1fcfc9(0x200)](_0x1be2fe);break;}}));}['tryStartPresenting'](){const _0x25bb1b=_0x33f3a0;this[_0x25bb1b(0x1f1)][_0x25bb1b(0x253)]({'eventID':_0xb16a85['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x25bb1b(0x263)],'userID':this[_0x25bb1b(0x1f1)]['getMemberID']()}},this['_unitID']);}[_0x33f3a0(0x265)](){const _0x2f25aa=_0x33f3a0;this[_0x2f25aa(0x25d)]===_0x2f25aa(0x255)&&(this[_0x2f25aa(0x230)][_0x2f25aa(0x24b)](_0x2f25aa(0x1eb)),this[_0x2f25aa(0x1f1)][_0x2f25aa(0x253)]({'eventID':_0xb16a85[_0x2f25aa(0x272)],'data':{'unitID':this[_0x2f25aa(0x263)]}},this[_0x2f25aa(0x263)]));}['startFollowing'](){const _0x1316ad=_0x33f3a0;this['_status']===_0x1316ad(0x238)&&(this[_0x1316ad(0x230)]['next'](_0x1316ad(0x20e)),this['_startFollowing']());}[_0x33f3a0(0x248)](){const _0x4f16b7=_0x33f3a0;this[_0x4f16b7(0x25d)]===_0x4f16b7(0x20e)&&this[_0x4f16b7(0x26e)]();}[_0x33f3a0(0x202)](_0xbe7f27){const _0x592550=_0x33f3a0,{presenter:_0x1eb49d}=_0xbe7f27[_0x592550(0x214)],_0x16cf76=this[_0x592550(0x1f1)][_0x592550(0x216)]();this['_presenter']=_0x1eb49d,_0x1eb49d===_0x16cf76?(this['_stopFollowing'](),this[_0x592550(0x231)]()):this['_status']!==_0x592550(0x238)&&(this['_stopPresenting'](),this[_0x592550(0x211)]());}[_0x33f3a0(0x266)](){const _0x2e5bfd=_0x33f3a0,_0x4b6f72={'eventID':_0xb16a85['LIVESHARE_FETCH_OPERATIONS']};this[_0x2e5bfd(0x1f1)]['send'](_0x4b6f72,this[_0x2e5bfd(0x263)]);}[_0x33f3a0(0x1ef)](){const _0x40b8ab=_0x33f3a0;this[_0x40b8ab(0x1d7)]=null,this['_status']!==_0x40b8ab(0x255)&&this[_0x40b8ab(0x26a)]();}['_handleNewChangeSets'](_0x4801c3){const _0x4a918b=_0x33f3a0;if(this[_0x4a918b(0x25d)]===_0x4a918b(0x20e)&&this[_0x4a918b(0x1d7)]===_0x4801c3[_0x4a918b(0x214)]['memberID']){const _0x17c52d=_0xcaafe2(_0x4801c3[_0x4a918b(0x214)])[_0x4a918b(0x1ed)]['reverse']()[_0x4a918b(0x1e9)](_0x11313d=>_0x11313d['id']===_0x10d1bf['id']);if(_0x17c52d){const _0x327873=_0x17c52d[_0x4a918b(0x273)][_0x4a918b(0x267)],_0x432f38=_0x17c52d[_0x4a918b(0x273)][_0x4a918b(0x242)]['id'];setTimeout(()=>{const _0x1dfce2=_0x4a918b;this['_commandService'][_0x1dfce2(0x235)](_0x46858f['id'],{'unitId':_0x327873,'subUnitId':_0x432f38},{'fromCollab':!0x0});});}}}[_0x33f3a0(0x231)](){const _0x1f510d=_0x33f3a0;this[_0x1f510d(0x230)]['next'](_0x1f510d(0x255));const _0x2cd3f8=new Map(),_0x124d72=this[_0x1f510d(0x268)]=new _0x5321e8();_0x124d72[_0x1f510d(0x25b)](_0x31e46f(()=>{const _0x6feaf5=_0x1f510d;_0x2cd3f8[_0x6feaf5(0x228)](_0x3d00fa=>_0x3d00fa[_0x6feaf5(0x220)]()),_0x2cd3f8[_0x6feaf5(0x1ec)]();})),_0x124d72[_0x1f510d(0x25b)](this[_0x1f510d(0x1d4)]['onCommandExecuted'](_0xc6c9aa=>{const _0x41c79a=_0x1f510d;var _0x4fbf23;if(_0xc6c9aa[_0x41c79a(0x1fa)]!==_0x4795cf[_0x41c79a(0x21e)]||!this[_0x41c79a(0x215)][_0x41c79a(0x26d)](_0xc6c9aa['id']))return;const {id:_0x4cbfb6}=_0xc6c9aa;let _0x40e576;_0x2cd3f8[_0x41c79a(0x244)](_0x4cbfb6)?_0x40e576=_0x2cd3f8[_0x41c79a(0x20b)](_0x4cbfb6):(_0x40e576=new _0x3a662b(),_0x2cd3f8[_0x41c79a(0x1d2)](_0x4cbfb6,_0x40e576),_0x40e576[_0x41c79a(0x256)](_0x5f4e61((_0x4fbf23=this[_0x41c79a(0x23a)][_0x41c79a(0x22c)](Ce))!=null?_0x4fbf23:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x215ed=>{const _0x5ceb31=_0x41c79a;this['_collabSession']['send']({'eventID':_0xb16a85[_0x5ceb31(0x1cf)],'data':{'unitID':this[_0x5ceb31(0x263)],'operations':{[_0x215ed['id']]:{'id':_0x215ed['id'],'params':JSON[_0x5ceb31(0x1d5)](_0x215ed[_0x5ceb31(0x273)])}}}},this[_0x5ceb31(0x263)]);})),_0x40e576[_0x41c79a(0x24b)](_0xc6c9aa);})),this[_0x1f510d(0x215)][_0x1f510d(0x1fd)](this[_0x1f510d(0x263)])['forEach'](_0x144ee2=>this[_0x1f510d(0x1f1)][_0x1f510d(0x253)]({'eventID':_0xb16a85[_0x1f510d(0x1cf)],'data':{'unitID':this['_unitID'],'operations':{[_0x144ee2['id']]:{'id':_0x144ee2['id'],'params':JSON[_0x1f510d(0x1d5)](_0x144ee2[_0x1f510d(0x273)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x30eb79=_0x33f3a0;var _0xf112d3;this[_0x30eb79(0x230)]['next'](_0x30eb79(0x1eb)),(_0xf112d3=this['_commandDisposable'])==null||_0xf112d3[_0x30eb79(0x26c)](),this[_0x30eb79(0x268)]=null;}[_0x33f3a0(0x211)](){const _0x10ccbf=_0x33f3a0;var _0xae736d;(_0xae736d=this[_0x10ccbf(0x268)])==null||_0xae736d[_0x10ccbf(0x26c)](),this[_0x10ccbf(0x230)][_0x10ccbf(0x24b)](_0x10ccbf(0x20e));}[_0x33f3a0(0x26a)](){const _0x2139e5=_0x33f3a0;var _0x2fcef5;this['_status$'][_0x2139e5(0x24b)](_0x2139e5(0x1eb)),(_0x2fcef5=this['_commandDisposable'])==null||_0x2fcef5[_0x2139e5(0x26c)](),this['_commandDisposable']=null;}[_0x33f3a0(0x26e)](){const _0x179e36=_0x33f3a0;var _0x3cbe93;this[_0x179e36(0x230)][_0x179e36(0x24b)](_0x179e36(0x238)),(_0x3cbe93=this['_commandDisposable'])==null||_0x3cbe93['dispose']();}[_0x33f3a0(0x232)](_0x2de9b2){const _0x13c3c3=_0x33f3a0;if(['presenting','not-following',_0x13c3c3(0x1f3)]['includes'](this[_0x13c3c3(0x25d)])||!_0x2de9b2['data'][_0x13c3c3(0x221)]||_0x2de9b2[_0x13c3c3(0x214)][_0x13c3c3(0x221)]===this[_0x13c3c3(0x1f1)]['getMemberID']())return;this['_status']===_0x13c3c3(0x1eb)&&this[_0x13c3c3(0x211)]();const _0x59baa4=_0x2de9b2[_0x13c3c3(0x214)]['operations'];Object[_0x13c3c3(0x226)](_0x59baa4)[_0x13c3c3(0x228)](_0x9dbcdf=>{const _0x50be95=_0x13c3c3;this[_0x50be95(0x1d4)]['executeCommand'](_0x9dbcdf['id'],_0x9dbcdf[_0x50be95(0x273)]?JSON['parse'](_0x9dbcdf['params']):null,{'fromCollab':!0x0});});}[_0x33f3a0(0x1f6)](){const _0x488d37=_0x33f3a0;var _0x3eb656;this[_0x488d37(0x230)][_0x488d37(0x24b)](_0x488d37(0x1f3)),(_0x3eb656=this['_commandDisposable'])==null||_0x3eb656['dispose']();}[_0x33f3a0(0x209)](){const _0xeccbed=_0x33f3a0;this[_0xeccbed(0x230)][_0xeccbed(0x24b)](_0xeccbed(0x1eb)),this['_fetchOperations']();}};N=Y([_(0x2,_0x404a20),_(0x3,_0x4770f0(L)),_(0x4,_0x3d793e)],N);function Le(){const _0x103675=_0x33f3a0,_0x47e73a=_0x26c8a9(S),_0xa11217=_0x26c8a9(_0x56e919),_0x481d3a=_0x4c2a85(()=>_0xa11217[_0x103675(0x261)](_0x1afb45[_0x103675(0x1e1)]),void 0x0,!0x1,[]),[_0x691107,_0x505fb3]=_0x575f52(null),[_0x21ed23,_0x35588a]=_0x575f52(c[_0x103675(0x260)]),_0x48e1ff=_0x278b84(null);return _0x1a5f41(()=>(_0x481d3a&&_0x47e73a[_0x103675(0x218)](_0x481d3a[_0x103675(0x1f5)]())[_0x103675(0x1e8)](_0x2b0487=>{const _0x120805=_0x103675;_0x505fb3(_0x2b0487),_0x48e1ff[_0x120805(0x204)]=_0x2b0487[_0x120805(0x1dd)]['subscribe'](_0x5cace3=>{_0x35588a(_0x5cace3);});}),()=>{const _0x1a4c97=_0x103675;var _0x8285d4;(_0x8285d4=_0x48e1ff[_0x1a4c97(0x204)])==null||_0x8285d4[_0x1a4c97(0x25f)](),_0x48e1ff[_0x1a4c97(0x204)]=null;}),[_0x481d3a,_0x47e73a]),_0x691107?_0x2d6d1e(_0x2eaec2,{'align':'end','disabled':_0x21ed23===c[_0x103675(0x24c)],'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':_0x2d6d1e(Re,{'status':_0x21ed23,'coordinator':_0x691107}),'children':_0x2d6d1e(_0x103675(0x246),{'className':_0xf2d602(_0x103675(0x240),{'univer-cursor-not-allowed':_0x21ed23===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x21ed23!==c[_0x103675(0x24c)]}),'type':'button','children':_0x2d6d1e(W,{'className':_0x103675(0x24a)})})}):null;}function Re(_0x3d0acf){const _0x450982=_0x33f3a0,{status:_0x797ae3,coordinator:_0x262bff}=_0x3d0acf;switch(_0x797ae3){case c[_0x450982(0x260)]:return _0x2d6d1e($e,{'coordinator':_0x262bff});case c[_0x450982(0x219)]:return _0x2d6d1e(xe,{'coordinator':_0x262bff});case c[_0x450982(0x217)]:return _0x2d6d1e(Pe,{'coordinator':_0x262bff});case c[_0x450982(0x24c)]:return _0x2d6d1e(Te,{});case c[_0x450982(0x22e)]:return _0x2d6d1e(Ae,{'coordinator':_0x262bff});default:return null;}}function $e(_0x2c0556){const _0xb39eb6=_0x33f3a0,{coordinator:_0x5438de}=_0x2c0556;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0xb39eb6(0x1d8),{'className':_0xb39eb6(0x201),'children':_0xb39eb6(0x20d)}),_0x2d6d1e(_0x5c367e,{'onClick':()=>_0x5438de[_0xb39eb6(0x1fc)](),'children':_0xb39eb6(0x1fe)})]});}function xe(_0x3ca096){const _0x570720=_0x33f3a0,{coordinator:_0x270136}=_0x3ca096;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x570720(0x1d8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x570720(0x21a)}),_0x2d6d1e(_0x5c367e,{'onClick':()=>_0x270136[_0x570720(0x248)](),'children':_0x570720(0x271)})]});}function Pe(_0x2814d4){const _0x4b4f9f=_0x33f3a0,{coordinator:_0x9c82ea}=_0x2814d4;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x4b4f9f(0x1d8),{'className':_0x4b4f9f(0x201),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2d6d1e(_0x5c367e,{'variant':_0x4b4f9f(0x1e7),'onClick':()=>_0x9c82ea[_0x4b4f9f(0x26f)](),'children':_0x4b4f9f(0x23b)})]});}function _0x2e44(_0x3092a4,_0x401c74){const _0x459eeb=_0x459e();return _0x2e44=function(_0x2e445d,_0x53bdb7){_0x2e445d=_0x2e445d-0x1cd;let _0x228b44=_0x459eeb[_0x2e445d];return _0x228b44;},_0x2e44(_0x3092a4,_0x401c74);}function Ae(_0x18efe1){const _0x1bd3fa=_0x33f3a0,{coordinator:_0x36bfab}=_0x18efe1;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x1bd3fa(0x1d8),{'className':_0x1bd3fa(0x201),'children':_0x1bd3fa(0x223)}),_0x2d6d1e(_0x5c367e,{'variant':_0x1bd3fa(0x1d3),'onClick':()=>_0x36bfab[_0x1bd3fa(0x265)](),'children':_0x1bd3fa(0x24f)})]});}function Te(){const _0x1d19e6=_0x33f3a0;return _0x2d6d1e(_0x4d5d84,{'children':_0x1d19e6(0x262)});}function _0x459e(){const _0x319f14=['then','find','UNIVER_LIVE_SHARE_PLUGIN','idle','clear','mutations','_startLiveShareCoordinator','_handleTerminate','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','_collabSession','6548cYaHGT','offline','evenodd','getUnitId','_handleOffline','onStarting','colorChannel1','_injector','type','_config','tryStartPresenting','getInitialStates','Start','UNIVER_UNKNOWN','_handleNewChangeSets','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleNewHost','3897354pFxpWA','current','init','substring','live-share-icon','map','_handleOnline','displayName','get','getTypeOfUnitAdded$','Present\x20this\x20document','following','sessionStatus$','registerComponent','_startFollowing','_mountLiveShare','symbol','data','_liveShareService','getMemberID','NOT_FOLLOWING','getLiveShareCoordinator','FOLLOWING','You\x27re\x20following\x20the\x20presenter','length','currentColor','onRendered','OPERATION','154pAdmzt','complete','presenter','event$','You\x27re\x20presenting\x20the\x20document','string','403bpgUFw','values','LIVESHARE_NEW_HOST','forEach','_reporters','_uiPartsService','4840578mXqWdu','getConfig','getLiveShareCoordinatorSync','PRESENTING','NEW_CHANGESETS','_status$','_startPresenting','_handleOperation','live-share.config','createInstance','executeCommand','defineProperty','random','not-following','20rJFGbN','_configService','Start\x20following','entries','1em','_init','1538675bIhIiP','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','tag','sheet','requireSession','has','idSuffix','button','attrs','stopFollowing','7zJipyD','univer-size-4','next','OFFLINE','getOwnPropertyDescriptor','pluginName','Stop\x20presenting','dispose$','trim','getStatus','send','path','presenting','pipe','ONLINE','use','setConfig','UniverIcon','add','1449531jcXMMh','_status','subscribe','unsubscribe','IDLE','getCurrentTypeOfUnit$','You\x27are\x20offline.','_unitID','9970856joVBuC','stopPresenting','_fetchOperations','unitId','_commandDisposable','registerSharedOperation','_beIdle','HEADER_MENU','dispose','shouldShareOperation','_stopFollowing','startFollowing','univerjs-icon\x20univerjs-icon-','Stop\x20following','LIVESHARE_TERMINATE','params','8CKhPyB','_entities','disposeWithMe','1391772jUAKCs','LIVESHARE_OPERATION','_sharedOperations','_univerInstanceService','set','default','_commandService','stringify','replace','_presenter','div','assign','getTypeOfUnitDisposed$','children','asObservable','status$','defs','SAME_OPERATION_SHARE_INTERVAL','mask','UNIVER_SHEET','xlink:href','getValue','_collabSessionService','http://www.w3.org/2000/svg','toString','text'];_0x459e=function(){return _0x319f14;};return _0x459e();}var Fe=Object[_0x33f3a0(0x24d)],He=(_0x535aa1,_0x2cfb62,_0x20c910,_0x221642)=>{const _0x2e46f8=_0x33f3a0;for(var _0x3eab47=_0x221642>0x1?void 0x0:_0x221642?Fe(_0x2cfb62,_0x20c910):_0x2cfb62,_0x6843ee=_0x535aa1[_0x2e46f8(0x21b)]-0x1,_0x5d6e07;_0x6843ee>=0x0;_0x6843ee--)(_0x5d6e07=_0x535aa1[_0x6843ee])&&(_0x3eab47=_0x5d6e07(_0x3eab47)||_0x3eab47);return _0x3eab47;},A=(_0x2082db,_0x1c9007)=>(_0x3a82e9,_0x5a5420)=>_0x1c9007(_0x3a82e9,_0x5a5420,_0x2082db);let m=class extends _0x123ebc{constructor(_0x155636,_0x29070b){const _0x218fd6=_0x33f3a0;super(),this[_0x218fd6(0x1f9)]=_0x155636,this[_0x218fd6(0x22a)]=_0x29070b,this[_0x218fd6(0x212)]();}['_mountLiveShare'](){const _0x4fd0a9=_0x33f3a0;this[_0x4fd0a9(0x1cd)](this[_0x4fd0a9(0x22a)][_0x4fd0a9(0x210)](_0x221148[_0x4fd0a9(0x26b)],()=>_0x1211a(Le,this[_0x4fd0a9(0x1f9)])));}};m=He([A(0x0,_0x4770f0(_0x52080b)),A(0x1,_0x510518)],m);const ye=_0x33f3a0(0x233),T={};var Ue=Object[_0x33f3a0(0x24d)],Ve=(_0x18732e,_0x239b6f,_0x4a5423,_0x530734)=>{for(var _0x59246b=_0x530734>0x1?void 0x0:_0x530734?Ue(_0x239b6f,_0x4a5423):_0x239b6f,_0x470036=_0x18732e['length']-0x1,_0x4992ab;_0x470036>=0x0;_0x470036--)(_0x4992ab=_0x18732e[_0x470036])&&(_0x59246b=_0x4992ab(_0x59246b)||_0x59246b);return _0x59246b;},je=(_0x139394,_0x19e9e5)=>(_0x3ce7e5,_0x1ae217)=>_0x19e9e5(_0x3ce7e5,_0x1ae217,_0x139394);let I=class extends _0x123ebc{constructor(_0x40e231){super(),this['_liveShareService']=_0x40e231,this['_init']();}[_0x33f3a0(0x23e)](){const _0x225112=_0x33f3a0;[_0x57d381['id'],_0x23a13f['id'],_0x46858f['id']][_0x225112(0x228)](_0x19bbd2=>{const _0x3e5e75=_0x225112;this[_0x3e5e75(0x1cd)](this[_0x3e5e75(0x215)][_0x3e5e75(0x269)](_0x19bbd2));});}};I=Ve([je(0x0,_0x4770f0(L))],I);var Me=Object[_0x33f3a0(0x236)],ke=Object[_0x33f3a0(0x24d)],Ge=(_0x36770f,_0x38d812,_0x45f783)=>_0x38d812 in _0x36770f?Me(_0x36770f,_0x38d812,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45f783}):_0x36770f[_0x38d812]=_0x45f783,We=(_0x5d40fc,_0x1bb5c9,_0x5a2148,_0x279338)=>{const _0x54a75e=_0x33f3a0;for(var _0x3d6b82=_0x279338>0x1?void 0x0:_0x279338?ke(_0x1bb5c9,_0x5a2148):_0x1bb5c9,_0x205263=_0x5d40fc[_0x54a75e(0x21b)]-0x1,_0x428e3b;_0x205263>=0x0;_0x205263--)(_0x428e3b=_0x5d40fc[_0x205263])&&(_0x3d6b82=_0x428e3b(_0x3d6b82)||_0x3d6b82);return _0x3d6b82;},F=(_0x32706a,_0x4d4ec2)=>(_0x3c8d7c,_0x3af40d)=>_0x4d4ec2(_0x3c8d7c,_0x3af40d,_0x32706a),B=(_0x4d41b7,_0x110354,_0x4ca6b3)=>Ge(_0x4d41b7,typeof _0x110354!=_0x33f3a0(0x213)?_0x110354+'':_0x110354,_0x4ca6b3);const Ye=_0x33f3a0(0x1ea);let b=class extends _0x14031e{constructor(_0x229764=T,_0x10c5e9,_0x1f9e0e){const _0x41a4b8=_0x33f3a0;super(),this[_0x41a4b8(0x1fb)]=_0x229764,this[_0x41a4b8(0x1f9)]=_0x10c5e9,this[_0x41a4b8(0x23a)]=_0x1f9e0e;const {..._0x24f8e6}=_0x2fd27e({},T,this[_0x41a4b8(0x1fb)]);this[_0x41a4b8(0x23a)][_0x41a4b8(0x259)](ye,_0x24f8e6);}[_0x33f3a0(0x1f7)](){const _0x2eeb34=_0x33f3a0;_0x293650(this[_0x2eeb34(0x1f9)],_0x57eb35([[L],[S],[I],[m]],this['_config']['override'])),_0x19de09(this[_0x2eeb34(0x1f9)],[[I]]);}[_0x33f3a0(0x21d)](){_0x19de09(this['_injector'],[[m]]);}};B(b,'type',_0x1afb45[_0x33f3a0(0x1ff)]),B(b,_0x33f3a0(0x24e),Ye),b=We([_0x83a676(_0x5984b3),F(0x1,_0x4770f0(_0x52080b)),F(0x2,_0x404a20)],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 _0x5f210e=_0x4205;(function(_0x77f3f4,_0x4391ac){const _0xeb3014=_0x4205,_0x4700f2=_0x77f3f4();while(!![]){try{const _0xa9259d=parseInt(_0xeb3014(0x220))/0x1*(-parseInt(_0xeb3014(0x21a))/0x2)+-parseInt(_0xeb3014(0x1bd))/0x3*(-parseInt(_0xeb3014(0x205))/0x4)+parseInt(_0xeb3014(0x1dd))/0x5+-parseInt(_0xeb3014(0x1a1))/0x6+parseInt(_0xeb3014(0x1ec))/0x7*(-parseInt(_0xeb3014(0x1ae))/0x8)+-parseInt(_0xeb3014(0x1e1))/0x9+-parseInt(_0xeb3014(0x22a))/0xa*(-parseInt(_0xeb3014(0x1fd))/0xb);if(_0xa9259d===_0x4391ac)break;else _0x4700f2['push'](_0x4700f2['shift']());}catch(_0x429913){_0x4700f2['push'](_0x4700f2['shift']());}}}(_0x6842,0x194f6));var J=Object[_0x5f210e(0x222)],K=(_0x1ca8dc,_0x31bb47,_0x414c95)=>_0x31bb47 in _0x1ca8dc?J(_0x1ca8dc,_0x31bb47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x414c95}):_0x1ca8dc[_0x31bb47]=_0x414c95,u=(_0x4dc91b,_0x33d0d7,_0x10facd)=>K(_0x4dc91b,typeof _0x33d0d7!='symbol'?_0x33d0d7+'':_0x33d0d7,_0x10facd);import{Disposable as _0x4347cc,toDisposable as _0x4a1250,IUniverInstanceService as _0x29aa4f,Inject as _0x4937f2,Injector as _0x179f2d,IConfigService as _0x333494,ICommandService as _0x422603,RxDisposable as _0xbb3b5b,UniverInstanceType as _0x4cded3,DisposableCollection as _0x42a077,CommandType as _0x1dfff3,DependentOn as _0x190b72,Plugin as _0x406235,merge as _0x2df91a,registerDependencies as _0x173359,mergeOverrideWithDependencies as _0x20d4d6,touchDependencies as _0x1d822a}from'@univerjs/core';import{useDependency as _0x1394d4,useObservable as _0x30edbe,IUIPartsService as _0x6bedd5,BuiltInUIPart as _0x102999,connectInjector as _0x1ca43}from'@univerjs/ui';import{jsx as _0x28f4b5,jsxs as _0x526545,Fragment as _0x3d9444}from'react/jsx-runtime';import{Dropdown as _0x12b65d,clsx as _0x403356,Button as _0x36a71c}from'@univerjs/design';function _0x6842(){const _0x237418=['evenodd','dispose$','645612rTxkYB','_startLiveShareCoordinator','requireSession','_unitID','defs','_sharedOperations','toString','getMemberID','_handleTerminate','params','fill','stringify','use','248JysBoL','LIVESHARE_TERMINATE','getValue','values','getLiveShareCoordinatorSync','getOwnPropertyDescriptor','OFFLINE','LIVESHARE_REQUEST_HOST','_handleOperation','map','LIVESHARE_NEW_HOST','getCurrentTypeOfUnit$','_uiPartsService','get','stopPresenting','2634wesgnK','_fetchOperations','setConfig','children','following','_commandDisposable','displayName','svg','idle','url(#$1','disposeWithMe','colorChannel1','_handleNewChangeSets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleNewHost','You\x27re\x20following\x20the\x20presenter','Stop\x20following','currentColor','init','live-share-icon','delete','SAME_OPERATION_SHARE_INTERVAL','none','startFollowing','_beIdle','add','_stopPresenting','reverse','data','forEach','string','_init','1028825bkmOJp','getStatus','onCommandExecuted','subscribe','1681983CFciHU','offline','pipe','xlink:href','_config','executeCommand','from','_stopFollowing','entries','mask','asObservable','36806PgwcLz','sessionStatus$','Stop\x20presenting','_injector','IDLE','unitId','_univerInstanceService','includes','_liveShareService','replace','status$','tag','symbol','Start','button','_handleOffline','complete','817872BWPviN','assign','Present\x20this\x20document','operations','http://www.w3.org/2000/svg','next','_presenter','getLiveShareCoordinator','128czdKqw','div','_configService','onStarting','OPERATION','has','tryStartPresenting','substring','FOLLOWING','trim','UNIVER_SHEET','registerSharedOperation','random','univer-size-4','_commandService','shouldShareOperation','_startFollowing','stopFollowing','_collabSession','_handleOnline','_startPresenting','16czMjLw','You\x27re\x20presenting\x20the\x20document','createInstance','not-following','getConfig','1em','14852zACCQY','_mountLiveShare','defineProperty','memberID','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','event$','default','idSuffix','0\x200\x2017\x2017','registerInitialStateReporter','60drqWGr','pluginName','univer-mb-3\x20univer-w-full\x20univer-text-sm','getInitialStates','_reporters','set','type','send','LIVESHARE_OPERATION','_status$','PRESENTING','_status','clear','defIds','current','_entities','attrs','LiveShareIcon','getTypeOfUnitAdded$','presenting','length','sheet','dispose','presenter','univerjs-icon\x20univerjs-icon-','HEADER_MENU','getUnitId'];_0x6842=function(){return _0x237418;};return _0x6842();}import{useRef as _0x31ae4f,createElement as _0x3b18d7,forwardRef as _0x2f499a,useState as _0x1f1cf5,useEffect as _0x109cfc}from'react';import{CollaborationEvent as _0x46ef97,parseProtocolChangeset as _0x34a695}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x59cabe,SessionStatus as _0x51023d,UniverCollaborationClientPlugin as _0x363746}from'@univerjs-pro/collaboration-client';function _0x4205(_0x1e8f61,_0x18387b){_0x1e8f61=_0x1e8f61-0x19d;const _0x684275=_0x6842();let _0x4205ef=_0x684275[_0x1e8f61];return _0x4205ef;}import{InsertSheetMutation as _0x19729f,SetWorksheetActiveOperation as _0x2e84d3}from'@univerjs/sheets';import{BehaviorSubject as _0x28b056,Subject as _0x4f0fd5}from'rxjs';import{takeUntil as _0x2e8cf2,throttleTime as _0x258f82}from'rxjs/operators';import{SetZoomRatioOperation as _0x31f67b,SetScrollOperation as _0x487be7}from'@univerjs/sheets-ui';function k({ref:_0x9f714e,..._0x49d3e0}){const _0x3651f3=_0x5f210e,{icon:_0x53a727,id:_0x478e97,className:_0x5f4c11,extend:_0x9e631,..._0x30ac5e}=_0x49d3e0,_0x56d5d3=(_0x3651f3(0x242)+_0x478e97+'\x20'+(_0x5f4c11||''))[_0x3651f3(0x20e)](),_0x3caaf1=_0x31ae4f('_'+Oe());return G(_0x53a727,''+_0x478e97,{'defIds':_0x53a727[_0x3651f3(0x237)],'idSuffix':_0x3caaf1[_0x3651f3(0x238)]},{'ref':_0x9f714e,'className':_0x56d5d3,..._0x30ac5e},_0x9e631);}function G(_0x29bf56,_0x478156,_0x2476ce,_0x1b3560,_0x5d6aa6){const _0x2c26e7=_0x5f210e;return _0x3b18d7(_0x29bf56[_0x2c26e7(0x1f7)],{'key':_0x478156,...be(_0x29bf56,_0x2476ce,_0x5d6aa6),..._0x1b3560},(Ee(_0x29bf56,_0x2476ce)['children']||[])[_0x2c26e7(0x1b7)]((_0x419c69,_0x58ded4)=>G(_0x419c69,_0x478156+'-'+_0x29bf56[_0x2c26e7(0x1f7)]+'-'+_0x58ded4,_0x2476ce,void 0x0,_0x5d6aa6)));}function be(_0x3a03ed,_0x40135b,_0x25314e){const _0x24acfd=_0x5f210e,_0x42387f={..._0x3a03ed[_0x24acfd(0x23a)]};_0x25314e!=null&&_0x25314e[_0x24acfd(0x1c8)]&&_0x42387f[_0x24acfd(0x1ab)]===_0x24acfd(0x1c8)&&(_0x42387f[_0x24acfd(0x1ab)]=_0x25314e[_0x24acfd(0x1c8)]),_0x3a03ed[_0x24acfd(0x1f7)]===_0x24acfd(0x1ea)&&_0x42387f['id']&&(_0x42387f['id']=_0x42387f['id']+_0x40135b[_0x24acfd(0x227)]),Object['entries'](_0x42387f)[_0x24acfd(0x1da)](([_0x58dc04,_0x5a7633])=>{const _0x289b33=_0x24acfd;_0x58dc04===_0x289b33(0x1ea)&&typeof _0x5a7633==_0x289b33(0x1db)&&(_0x42387f[_0x58dc04]=_0x5a7633[_0x289b33(0x1f5)](/url\(#(.*)\)/,_0x289b33(0x1c6)+_0x40135b[_0x289b33(0x227)]+')'));});const {defIds:_0xc7ff80}=_0x40135b;return!_0xc7ff80||_0xc7ff80[_0x24acfd(0x23e)]===0x0||(_0x3a03ed['tag']===_0x24acfd(0x1ad)&&_0x42387f[_0x24acfd(0x1e4)]&&(_0x42387f[_0x24acfd(0x1e4)]=_0x42387f[_0x24acfd(0x1e4)]+_0x40135b[_0x24acfd(0x227)]),Object[_0x24acfd(0x1e9)](_0x42387f)[_0x24acfd(0x1da)](([_0x745b18,_0x31b2f9])=>{const _0x39a2ea=_0x24acfd;typeof _0x31b2f9==_0x39a2ea(0x1db)&&(_0x42387f[_0x745b18]=_0x31b2f9['replace'](/url\(#(.*)\)/,'url(#$1'+_0x40135b[_0x39a2ea(0x227)]+')'));})),_0x42387f;}function Ee(_0x2053d5,_0x463b30){const _0x1a8588=_0x5f210e;var _0x19393e;const {defIds:_0x477302}=_0x463b30;return!_0x477302||_0x477302[_0x1a8588(0x23e)]===0x0?_0x2053d5:_0x2053d5[_0x1a8588(0x1f7)]===_0x1a8588(0x1a5)&&((_0x19393e=_0x2053d5[_0x1a8588(0x1c0)])!=null&&_0x19393e[_0x1a8588(0x23e)])?{..._0x2053d5,'children':_0x2053d5[_0x1a8588(0x1c0)][_0x1a8588(0x1b7)](_0x46760c=>typeof _0x46760c['attrs']['id']=='string'&&_0x477302&&_0x477302[_0x1a8588(0x1f3)](_0x46760c[_0x1a8588(0x23a)]['id'])?{..._0x46760c,'attrs':{..._0x46760c[_0x1a8588(0x23a)],'id':_0x46760c[_0x1a8588(0x23a)]['id']+_0x463b30[_0x1a8588(0x227)]}}:_0x46760c)}:_0x2053d5;}function Oe(){const _0x55c2cd=_0x5f210e;return Math[_0x55c2cd(0x211)]()[_0x55c2cd(0x1a7)](0x24)[_0x55c2cd(0x20c)](0x2,0x8);}k[_0x5f210e(0x1c3)]='UniverIcon';const we={'tag':_0x5f210e(0x1c4),'attrs':{'xmlns':_0x5f210e(0x201),'fill':_0x5f210e(0x1d3),'viewBox':_0x5f210e(0x228),'width':_0x5f210e(0x21f),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5f210e(0x1ce),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x5f210e(0x224),'fillRule':'evenodd','clipRule':_0x5f210e(0x19f)}}]},W=_0x2f499a(function(_0x5a2083,_0x5aff48){const _0x620a94=_0x5f210e;return _0x3b18d7(k,Object[_0x620a94(0x1fe)]({},_0x5a2083,{'id':_0x620a94(0x1d0),'ref':_0x5aff48,'icon':we}));});W[_0x5f210e(0x1c3)]=_0x5f210e(0x23b);class L extends _0x4347cc{constructor(){const _0x418bd8=_0x5f210e;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x418bd8(0x22e),new Set());}[_0x5f210e(0x210)](_0x5cad0d){const _0x3bf3a0=_0x5f210e;return this[_0x3bf3a0(0x1a6)]['add'](_0x5cad0d),_0x4a1250(()=>this[_0x3bf3a0(0x1a6)][_0x3bf3a0(0x1d1)](_0x5cad0d));}[_0x5f210e(0x229)](_0x4cfa56){const _0x585956=_0x5f210e;return this['_reporters'][_0x585956(0x1d6)](_0x4cfa56),_0x4a1250(()=>this[_0x585956(0x22e)][_0x585956(0x1d1)](_0x4cfa56));}[_0x5f210e(0x214)](_0x4e598d){const _0x733095=_0x5f210e;return this[_0x733095(0x1a6)][_0x733095(0x20a)](_0x4e598d);}[_0x5f210e(0x22d)](_0x1e402e){const _0x4f558b=_0x5f210e;return Array[_0x4f558b(0x1e7)](this['_reporters'])[_0x4f558b(0x1b7)](_0x5ca0a4=>_0x5ca0a4(_0x1e402e));}}var Ne=Object[_0x5f210e(0x1b3)],Y=(_0x25be2c,_0x116969,_0x2f9838,_0x1104ad)=>{const _0x450e1f=_0x5f210e;for(var _0x59d459=_0x1104ad>0x1?void 0x0:_0x1104ad?Ne(_0x116969,_0x2f9838):_0x116969,_0x3354b8=_0x25be2c[_0x450e1f(0x23e)]-0x1,_0x130364;_0x3354b8>=0x0;_0x3354b8--)(_0x130364=_0x25be2c[_0x3354b8])&&(_0x59d459=_0x130364(_0x59d459)||_0x59d459);return _0x59d459;},_=(_0x196aba,_0x1752f7)=>(_0x42bd81,_0x53426b)=>_0x1752f7(_0x42bd81,_0x53426b,_0x196aba);let S=class extends _0xbb3b5b{constructor(_0x3a718d,_0x1967bc,_0x1736fd){const _0x3610ef=_0x5f210e;super(),u(this,_0x3610ef(0x239),new Map()),(this[_0x3610ef(0x1f2)]=_0x3a718d,this['_injector']=_0x1967bc,this['_collabSessionService']=_0x1736fd,this[_0x3610ef(0x1dc)]());}async[_0x5f210e(0x204)](_0x7e5df5){const _0x2fe540=_0x5f210e;return this[_0x2fe540(0x239)][_0x2fe540(0x20a)](_0x7e5df5)||await this[_0x2fe540(0x1a2)](_0x7e5df5),this[_0x2fe540(0x239)][_0x2fe540(0x1bb)](_0x7e5df5);}[_0x5f210e(0x1b2)](_0x5a6fbe){const _0x456e44=_0x5f210e;var _0x1275b4;return(_0x1275b4=this[_0x456e44(0x239)]['get'](_0x5a6fbe))!=null?_0x1275b4:null;}['_init'](){const _0x305aca=_0x5f210e;this[_0x305aca(0x1f2)][_0x305aca(0x23c)](_0x4cded3[_0x305aca(0x20f)])[_0x305aca(0x1e3)](_0x2e8cf2(this[_0x305aca(0x1a0)]))[_0x305aca(0x1e0)](async _0x26d6b4=>{const _0x93351b=_0x305aca,_0x11661b=_0x26d6b4[_0x93351b(0x19e)]();this['_entities']['has'](_0x11661b)||this[_0x93351b(0x1a2)](_0x11661b);}),this[_0x305aca(0x1f2)]['getTypeOfUnitDisposed$'](_0x4cded3[_0x305aca(0x20f)])[_0x305aca(0x1e3)](_0x2e8cf2(this[_0x305aca(0x1a0)]))[_0x305aca(0x1e0)](_0x1b3982=>{const _0x1659d5=_0x305aca,_0x3e0bf7=_0x1b3982[_0x1659d5(0x19e)](),_0xa5f47c=this[_0x1659d5(0x239)]['get'](_0x3e0bf7);_0xa5f47c==null||_0xa5f47c['dispose']();});}async[_0x5f210e(0x1a2)](_0x2791ef){const _0x148183=_0x5f210e,_0xf25f8d=await this['_collabSessionService'][_0x148183(0x1a3)](_0x2791ef),_0x546f28=this[_0x148183(0x1ef)][_0x148183(0x21c)](N,_0x2791ef,_0xf25f8d);return _0x546f28[_0x148183(0x1cf)](),this[_0x148183(0x239)][_0x148183(0x22f)](_0x2791ef,_0x546f28),_0x546f28;}};S=Y([_(0x0,_0x29aa4f),_(0x1,_0x4937f2(_0x179f2d)),_(0x2,_0x4937f2(_0x59cabe))],S);var c=(_0xc00f77=>(_0xc00f77['OFFLINE']=_0x5f210e(0x1e2),_0xc00f77[_0x5f210e(0x1f0)]=_0x5f210e(0x1c5),_0xc00f77[_0x5f210e(0x20d)]=_0x5f210e(0x1c1),_0xc00f77['NOT_FOLLOWING']='not-following',_0xc00f77[_0x5f210e(0x234)]=_0x5f210e(0x23d),_0xc00f77))(c||{});const Ce=_0x5f210e(0x1d2),De=0xc8;let N=class extends _0xbb3b5b{constructor(_0x174e05,_0x3780f3,_0x1e15f4,_0xddd3c6,_0x500fc0){const _0x574a1a=_0x5f210e;super(),u(this,_0x574a1a(0x233),new _0x28b056(_0x574a1a(0x1c5))),u(this,_0x574a1a(0x1f6),this[_0x574a1a(0x233)][_0x574a1a(0x1eb)]()),u(this,_0x574a1a(0x1dc),!0x1),u(this,'_commandDisposable',null),u(this,_0x574a1a(0x203),null),(this[_0x574a1a(0x1a4)]=_0x174e05,this[_0x574a1a(0x217)]=_0x3780f3,this[_0x574a1a(0x207)]=_0x1e15f4,this[_0x574a1a(0x1f4)]=_0xddd3c6,this[_0x574a1a(0x213)]=_0x500fc0);}get[_0x5f210e(0x235)](){const _0x5693ff=_0x5f210e;return this[_0x5693ff(0x233)][_0x5693ff(0x1b0)]();}[_0x5f210e(0x240)](){const _0x24ca52=_0x5f210e;var _0x18d3e8;(_0x18d3e8=this[_0x24ca52(0x1c2)])==null||_0x18d3e8[_0x24ca52(0x240)](),this[_0x24ca52(0x233)][_0x24ca52(0x202)](_0x24ca52(0x1c5)),this[_0x24ca52(0x233)][_0x24ca52(0x1fc)]();}[_0x5f210e(0x1de)](){const _0x5a41bb=_0x5f210e;return this[_0x5a41bb(0x235)];}[_0x5f210e(0x1cf)](){const _0x471ed=_0x5f210e;this[_0x471ed(0x1dc)]||(this[_0x471ed(0x1dc)]=!0x0,this['_collabSession'][_0x471ed(0x1ed)]['pipe'](_0x2e8cf2(this[_0x471ed(0x1a0)]))['subscribe'](_0x4c43b0=>{const _0x15958d=_0x471ed;switch(_0x4c43b0){case _0x51023d[_0x15958d(0x1b4)]:this[_0x15958d(0x1fb)]();break;case _0x51023d['ONLINE']:this[_0x15958d(0x218)]();break;}}),this[_0x471ed(0x217)][_0x471ed(0x225)][_0x471ed(0x1e3)](_0x2e8cf2(this[_0x471ed(0x1a0)]))[_0x471ed(0x1e0)](_0xc530e6=>{const _0x286662=_0x471ed,{eventID:_0x5d6772}=_0xc530e6;switch(_0x5d6772){case _0x46ef97[_0x286662(0x1b8)]:this[_0x286662(0x1cb)](_0xc530e6);break;case _0x46ef97[_0x286662(0x232)]:this[_0x286662(0x1b6)](_0xc530e6);break;case _0x46ef97[_0x286662(0x1af)]:this[_0x286662(0x1a9)]();break;case _0x46ef97['NEW_CHANGESETS']:this[_0x286662(0x1c9)](_0xc530e6);break;}}));}[_0x5f210e(0x20b)](){const _0x402c77=_0x5f210e;this[_0x402c77(0x217)]['send']({'eventID':_0x46ef97[_0x402c77(0x1b5)],'data':{'unitID':this[_0x402c77(0x1a4)],'userID':this[_0x402c77(0x217)][_0x402c77(0x1a8)]()}},this[_0x402c77(0x1a4)]);}[_0x5f210e(0x1bc)](){const _0x35c601=_0x5f210e;this[_0x35c601(0x235)]===_0x35c601(0x23d)&&(this[_0x35c601(0x233)][_0x35c601(0x202)]('idle'),this[_0x35c601(0x217)][_0x35c601(0x231)]({'eventID':_0x46ef97[_0x35c601(0x1af)],'data':{'unitID':this[_0x35c601(0x1a4)]}},this['_unitID']));}[_0x5f210e(0x1d4)](){const _0x5be0c6=_0x5f210e;this['_status']==='not-following'&&(this['_status$'][_0x5be0c6(0x202)](_0x5be0c6(0x1c1)),this[_0x5be0c6(0x215)]());}[_0x5f210e(0x216)](){const _0x4e3a41=_0x5f210e;this[_0x4e3a41(0x235)]===_0x4e3a41(0x1c1)&&this[_0x4e3a41(0x1e8)]();}[_0x5f210e(0x1cb)](_0x39f759){const _0x2d28ce=_0x5f210e,{presenter:_0x49be82}=_0x39f759[_0x2d28ce(0x1d9)],_0x4a0661=this[_0x2d28ce(0x217)][_0x2d28ce(0x1a8)]();this['_presenter']=_0x49be82,_0x49be82===_0x4a0661?(this[_0x2d28ce(0x1e8)](),this[_0x2d28ce(0x219)]()):this[_0x2d28ce(0x235)]!=='not-following'&&(this['_stopPresenting'](),this[_0x2d28ce(0x215)]());}[_0x5f210e(0x1be)](){const _0x1f4e49=_0x5f210e,_0x24e6b9={'eventID':_0x46ef97['LIVESHARE_FETCH_OPERATIONS']};this[_0x1f4e49(0x217)][_0x1f4e49(0x231)](_0x24e6b9,this[_0x1f4e49(0x1a4)]);}['_handleTerminate'](){const _0x1c59a8=_0x5f210e;this[_0x1c59a8(0x203)]=null,this[_0x1c59a8(0x235)]!==_0x1c59a8(0x23d)&&this[_0x1c59a8(0x1d5)]();}[_0x5f210e(0x1c9)](_0x4ee355){const _0x46b9fb=_0x5f210e;if(this[_0x46b9fb(0x235)]===_0x46b9fb(0x1c1)&&this[_0x46b9fb(0x203)]===_0x4ee355[_0x46b9fb(0x1d9)][_0x46b9fb(0x223)]){const _0x5ad1c6=_0x34a695(_0x4ee355[_0x46b9fb(0x1d9)])['mutations'][_0x46b9fb(0x1d8)]()['find'](_0xd529e3=>_0xd529e3['id']===_0x19729f['id']);if(_0x5ad1c6){const _0x1fe012=_0x5ad1c6[_0x46b9fb(0x1aa)][_0x46b9fb(0x1f1)],_0x1cb5a0=_0x5ad1c6[_0x46b9fb(0x1aa)][_0x46b9fb(0x23f)]['id'];setTimeout(()=>{const _0xa8eec5=_0x46b9fb;this[_0xa8eec5(0x213)][_0xa8eec5(0x1e6)](_0x2e84d3['id'],{'unitId':_0x1fe012,'subUnitId':_0x1cb5a0},{'fromCollab':!0x0});});}}}[_0x5f210e(0x219)](){const _0x5155dc=_0x5f210e;this['_status$'][_0x5155dc(0x202)]('presenting');const _0x4a7a16=new Map(),_0x3bf5c4=this['_commandDisposable']=new _0x42a077();_0x3bf5c4[_0x5155dc(0x1d6)](_0x4a1250(()=>{const _0x44c526=_0x5155dc;_0x4a7a16[_0x44c526(0x1da)](_0x48ae2d=>_0x48ae2d[_0x44c526(0x1fc)]()),_0x4a7a16[_0x44c526(0x236)]();})),_0x3bf5c4[_0x5155dc(0x1d6)](this['_commandService'][_0x5155dc(0x1df)](_0x9cf3d8=>{const _0x313a1f=_0x5155dc;var _0x20ad03;if(_0x9cf3d8[_0x313a1f(0x230)]!==_0x1dfff3[_0x313a1f(0x209)]||!this['_liveShareService'][_0x313a1f(0x214)](_0x9cf3d8['id']))return;const {id:_0x3e7b2b}=_0x9cf3d8;let _0x1aed76;_0x4a7a16['has'](_0x3e7b2b)?_0x1aed76=_0x4a7a16['get'](_0x3e7b2b):(_0x1aed76=new _0x4f0fd5(),_0x4a7a16[_0x313a1f(0x22f)](_0x3e7b2b,_0x1aed76),_0x1aed76[_0x313a1f(0x1e3)](_0x258f82((_0x20ad03=this['_configService'][_0x313a1f(0x21e)](Ce))!=null?_0x20ad03:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x313a1f(0x1e0)](_0x1d35fb=>{const _0x198ec0=_0x313a1f;this[_0x198ec0(0x217)]['send']({'eventID':_0x46ef97[_0x198ec0(0x232)],'data':{'unitID':this[_0x198ec0(0x1a4)],'operations':{[_0x1d35fb['id']]:{'id':_0x1d35fb['id'],'params':JSON[_0x198ec0(0x1ac)](_0x1d35fb[_0x198ec0(0x1aa)])}}}},this[_0x198ec0(0x1a4)]);})),_0x1aed76['next'](_0x9cf3d8);})),this[_0x5155dc(0x1f4)]['getInitialStates'](this[_0x5155dc(0x1a4)])[_0x5155dc(0x1da)](_0x35b374=>this[_0x5155dc(0x217)][_0x5155dc(0x231)]({'eventID':_0x46ef97['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5155dc(0x1a4)],'operations':{[_0x35b374['id']]:{'id':_0x35b374['id'],'params':JSON[_0x5155dc(0x1ac)](_0x35b374['params'])}}}},this['_unitID']));}[_0x5f210e(0x1d7)](){const _0x366330=_0x5f210e;var _0x50a4fc;this['_status$'][_0x366330(0x202)]('idle'),(_0x50a4fc=this[_0x366330(0x1c2)])==null||_0x50a4fc[_0x366330(0x240)](),this[_0x366330(0x1c2)]=null;}[_0x5f210e(0x215)](){const _0x309dc9=_0x5f210e;var _0x159c0b;(_0x159c0b=this[_0x309dc9(0x1c2)])==null||_0x159c0b[_0x309dc9(0x240)](),this[_0x309dc9(0x233)][_0x309dc9(0x202)]('following');}['_beIdle'](){const _0x392d64=_0x5f210e;var _0x1965f5;this[_0x392d64(0x233)][_0x392d64(0x202)]('idle'),(_0x1965f5=this[_0x392d64(0x1c2)])==null||_0x1965f5['dispose'](),this['_commandDisposable']=null;}[_0x5f210e(0x1e8)](){const _0x27e1dd=_0x5f210e;var _0x13d45b;this[_0x27e1dd(0x233)][_0x27e1dd(0x202)](_0x27e1dd(0x21d)),(_0x13d45b=this[_0x27e1dd(0x1c2)])==null||_0x13d45b['dispose']();}['_handleOperation'](_0xd034e0){const _0x3e6311=_0x5f210e;if([_0x3e6311(0x23d),_0x3e6311(0x21d),_0x3e6311(0x1e2)][_0x3e6311(0x1f3)](this[_0x3e6311(0x235)])||!_0xd034e0[_0x3e6311(0x1d9)][_0x3e6311(0x241)]||_0xd034e0[_0x3e6311(0x1d9)]['presenter']===this[_0x3e6311(0x217)][_0x3e6311(0x1a8)]())return;this['_status']===_0x3e6311(0x1c5)&&this[_0x3e6311(0x215)]();const _0x23361d=_0xd034e0[_0x3e6311(0x1d9)][_0x3e6311(0x200)];Object[_0x3e6311(0x1b1)](_0x23361d)['forEach'](_0x22898a=>{const _0x2812f2=_0x3e6311;this['_commandService'][_0x2812f2(0x1e6)](_0x22898a['id'],_0x22898a['params']?JSON['parse'](_0x22898a[_0x2812f2(0x1aa)]):null,{'fromCollab':!0x0});});}[_0x5f210e(0x1fb)](){const _0x3250d9=_0x5f210e;var _0x33c312;this[_0x3250d9(0x233)][_0x3250d9(0x202)](_0x3250d9(0x1e2)),(_0x33c312=this[_0x3250d9(0x1c2)])==null||_0x33c312[_0x3250d9(0x240)]();}['_handleOnline'](){const _0x2a94c3=_0x5f210e;this[_0x2a94c3(0x233)][_0x2a94c3(0x202)](_0x2a94c3(0x1c5)),this[_0x2a94c3(0x1be)]();}};N=Y([_(0x2,_0x333494),_(0x3,_0x4937f2(L)),_(0x4,_0x422603)],N);function Le(){const _0x58f66f=_0x5f210e,_0x228b58=_0x1394d4(S),_0x5bd705=_0x1394d4(_0x29aa4f),_0xfa6d6f=_0x30edbe(()=>_0x5bd705[_0x58f66f(0x1b9)](_0x4cded3[_0x58f66f(0x20f)]),void 0x0,!0x1,[]),[_0x408d08,_0x33fa29]=_0x1f1cf5(null),[_0x3eaa33,_0xd1d095]=_0x1f1cf5(c[_0x58f66f(0x1f0)]),_0x1a2e98=_0x31ae4f(null);return _0x109cfc(()=>(_0xfa6d6f&&_0x228b58['getLiveShareCoordinator'](_0xfa6d6f[_0x58f66f(0x19e)]())['then'](_0x4294a4=>{const _0x3473ca=_0x58f66f;_0x33fa29(_0x4294a4),_0x1a2e98['current']=_0x4294a4['status$'][_0x3473ca(0x1e0)](_0x2ec87b=>{_0xd1d095(_0x2ec87b);});}),()=>{const _0x10148f=_0x58f66f;var _0x2c46d5;(_0x2c46d5=_0x1a2e98[_0x10148f(0x238)])==null||_0x2c46d5['unsubscribe'](),_0x1a2e98['current']=null;}),[_0xfa6d6f,_0x228b58]),_0x408d08?_0x28f4b5(_0x12b65d,{'align':'end','disabled':_0x3eaa33===c[_0x58f66f(0x1b4)],'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':_0x28f4b5(Re,{'status':_0x3eaa33,'coordinator':_0x408d08}),'children':_0x28f4b5('button',{'className':_0x403356(_0x58f66f(0x1ca),{'univer-cursor-not-allowed':_0x3eaa33===c[_0x58f66f(0x1b4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3eaa33!==c[_0x58f66f(0x1b4)]}),'type':_0x58f66f(0x1fa),'children':_0x28f4b5(W,{'className':_0x58f66f(0x212)})})}):null;}function Re(_0x8f9d25){const _0x202da3=_0x5f210e,{status:_0x3ebe08,coordinator:_0x18e96f}=_0x8f9d25;switch(_0x3ebe08){case c[_0x202da3(0x1f0)]:return _0x28f4b5($e,{'coordinator':_0x18e96f});case c[_0x202da3(0x20d)]:return _0x28f4b5(xe,{'coordinator':_0x18e96f});case c['NOT_FOLLOWING']:return _0x28f4b5(Pe,{'coordinator':_0x18e96f});case c[_0x202da3(0x1b4)]:return _0x28f4b5(Te,{});case c[_0x202da3(0x234)]:return _0x28f4b5(Ae,{'coordinator':_0x18e96f});default:return null;}}function $e(_0x12c38f){const _0x5550f9=_0x5f210e,{coordinator:_0x4cab37}=_0x12c38f;return _0x526545(_0x3d9444,{'children':[_0x28f4b5('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5550f9(0x1ff)}),_0x28f4b5(_0x36a71c,{'onClick':()=>_0x4cab37['tryStartPresenting'](),'children':_0x5550f9(0x1f9)})]});}function xe(_0x179491){const _0x36c323=_0x5f210e,{coordinator:_0x215503}=_0x179491;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0x36c323(0x206),{'className':_0x36c323(0x22c),'children':_0x36c323(0x1cc)}),_0x28f4b5(_0x36a71c,{'onClick':()=>_0x215503[_0x36c323(0x216)](),'children':_0x36c323(0x1cd)})]});}function Pe(_0x280386){const _0x55c36c=_0x5f210e,{coordinator:_0x1dda82}=_0x280386;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0x55c36c(0x206),{'className':_0x55c36c(0x22c),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x28f4b5(_0x36a71c,{'variant':'text','onClick':()=>_0x1dda82[_0x55c36c(0x1d4)](),'children':'Start\x20following'})]});}function Ae(_0x556d30){const _0xd99098=_0x5f210e,{coordinator:_0x3b5a07}=_0x556d30;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0xd99098(0x206),{'className':_0xd99098(0x22c),'children':_0xd99098(0x21b)}),_0x28f4b5(_0x36a71c,{'variant':_0xd99098(0x226),'onClick':()=>_0x3b5a07[_0xd99098(0x1bc)](),'children':_0xd99098(0x1ee)})]});}function Te(){return _0x28f4b5(_0x3d9444,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x5f210e(0x1b3)],He=(_0x614e67,_0x5b7117,_0x310441,_0x18f6a7)=>{const _0x56789a=_0x5f210e;for(var _0x1a0ca4=_0x18f6a7>0x1?void 0x0:_0x18f6a7?Fe(_0x5b7117,_0x310441):_0x5b7117,_0x26e932=_0x614e67[_0x56789a(0x23e)]-0x1,_0x17ea06;_0x26e932>=0x0;_0x26e932--)(_0x17ea06=_0x614e67[_0x26e932])&&(_0x1a0ca4=_0x17ea06(_0x1a0ca4)||_0x1a0ca4);return _0x1a0ca4;},A=(_0x573a5d,_0x2ee4f2)=>(_0x212a65,_0x1ff948)=>_0x2ee4f2(_0x212a65,_0x1ff948,_0x573a5d);let m=class extends _0x4347cc{constructor(_0x6072c,_0x57d4f2){const _0x210867=_0x5f210e;super(),this[_0x210867(0x1ef)]=_0x6072c,this['_uiPartsService']=_0x57d4f2,this[_0x210867(0x221)]();}[_0x5f210e(0x221)](){const _0x4af5d3=_0x5f210e;this['disposeWithMe'](this[_0x4af5d3(0x1ba)]['registerComponent'](_0x102999[_0x4af5d3(0x19d)],()=>_0x1ca43(Le,this[_0x4af5d3(0x1ef)])));}};m=He([A(0x0,_0x4937f2(_0x179f2d)),A(0x1,_0x6bedd5)],m);const ye='live-share.config',T={};var Ue=Object[_0x5f210e(0x1b3)],Ve=(_0x98c8b1,_0x16017f,_0x47cb7f,_0x4ff2bb)=>{const _0x2e1b2c=_0x5f210e;for(var _0x3a7015=_0x4ff2bb>0x1?void 0x0:_0x4ff2bb?Ue(_0x16017f,_0x47cb7f):_0x16017f,_0x1cadf3=_0x98c8b1[_0x2e1b2c(0x23e)]-0x1,_0x4ef1be;_0x1cadf3>=0x0;_0x1cadf3--)(_0x4ef1be=_0x98c8b1[_0x1cadf3])&&(_0x3a7015=_0x4ef1be(_0x3a7015)||_0x3a7015);return _0x3a7015;},je=(_0x5abc9e,_0x3a0755)=>(_0x2b4d78,_0x52240c)=>_0x3a0755(_0x2b4d78,_0x52240c,_0x5abc9e);let I=class extends _0x4347cc{constructor(_0x2be0e9){const _0x4d5ecb=_0x5f210e;super(),this[_0x4d5ecb(0x1f4)]=_0x2be0e9,this['_init']();}['_init'](){const _0x47349f=_0x5f210e;[_0x31f67b['id'],_0x487be7['id'],_0x2e84d3['id']][_0x47349f(0x1da)](_0x122e40=>{const _0x23a3af=_0x47349f;this[_0x23a3af(0x1c7)](this['_liveShareService'][_0x23a3af(0x210)](_0x122e40));});}};I=Ve([je(0x0,_0x4937f2(L))],I);var Me=Object[_0x5f210e(0x222)],ke=Object[_0x5f210e(0x1b3)],Ge=(_0x4b9c9a,_0x4fa621,_0x2ad77d)=>_0x4fa621 in _0x4b9c9a?Me(_0x4b9c9a,_0x4fa621,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ad77d}):_0x4b9c9a[_0x4fa621]=_0x2ad77d,We=(_0x3ad683,_0x35e603,_0x35b713,_0x44d90c)=>{for(var _0x536587=_0x44d90c>0x1?void 0x0:_0x44d90c?ke(_0x35e603,_0x35b713):_0x35e603,_0x3d1a5=_0x3ad683['length']-0x1,_0x172b5a;_0x3d1a5>=0x0;_0x3d1a5--)(_0x172b5a=_0x3ad683[_0x3d1a5])&&(_0x536587=_0x172b5a(_0x536587)||_0x536587);return _0x536587;},F=(_0x3f5441,_0x36e944)=>(_0xde85b,_0x4e3465)=>_0x36e944(_0xde85b,_0x4e3465,_0x3f5441),B=(_0x1b039e,_0x2685d0,_0x16bc47)=>Ge(_0x1b039e,typeof _0x2685d0!=_0x5f210e(0x1f8)?_0x2685d0+'':_0x2685d0,_0x16bc47);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x406235{constructor(_0x110357=T,_0x154dcc,_0x428787){const _0x480e9b=_0x5f210e;super(),this[_0x480e9b(0x1e5)]=_0x110357,this[_0x480e9b(0x1ef)]=_0x154dcc,this[_0x480e9b(0x207)]=_0x428787;const {..._0x10025f}=_0x2df91a({},T,this['_config']);this[_0x480e9b(0x207)][_0x480e9b(0x1bf)](ye,_0x10025f);}[_0x5f210e(0x208)](){const _0x3a1e2b=_0x5f210e;_0x173359(this['_injector'],_0x20d4d6([[L],[S],[I],[m]],this[_0x3a1e2b(0x1e5)]['override'])),_0x1d822a(this[_0x3a1e2b(0x1ef)],[[I]]);}['onRendered'](){const _0x5d6b78=_0x5f210e;_0x1d822a(this[_0x5d6b78(0x1ef)],[[m]]);}};B(b,_0x5f210e(0x230),_0x4cded3['UNIVER_UNKNOWN']),B(b,_0x5f210e(0x22b),Ye),b=We([_0x190b72(_0x363746),F(0x1,_0x4937f2(_0x179f2d)),F(0x2,_0x333494)],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 _0x364c8a=_0x285d;(function(_0x3a2731,_0x53b725){const _0x474556=_0x285d,_0x1f4bde=_0x3a2731();while(!![]){try{const _0x4e0e74=-parseInt(_0x474556(0x197))/0x1+-parseInt(_0x474556(0x19c))/0x2+parseInt(_0x474556(0x1ae))/0x3*(parseInt(_0x474556(0x1a4))/0x4)+parseInt(_0x474556(0x1a8))/0x5*(parseInt(_0x474556(0x1a3))/0x6)+-parseInt(_0x474556(0x1ad))/0x7+parseInt(_0x474556(0x1a9))/0x8*(-parseInt(_0x474556(0x190))/0x9)+parseInt(_0x474556(0x19b))/0xa*(parseInt(_0x474556(0x1a5))/0xb);if(_0x4e0e74===_0x53b725)break;else _0x1f4bde['push'](_0x1f4bde['shift']());}catch(_0x8a1861){_0x1f4bde['push'](_0x1f4bde['shift']());}}}(_0x13c5,0xb97a8));import{LiveShareController as _0xe6e695,LiveShareStatus as _0xf99993}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x92f1ce}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x40cefd}from'@univerjs/sheets';function _0x13c5(){const _0x52bc73=['_commandService','startPresenting','1479122hfvyjx','getActiveWorkbook','startRow','startColumn','34633120MmCEiI','2231776SXnyFI','_injector','getLiveShareCoordinatorSync','getSheetId','_initialize','tryStartPresenting','startFollowing','6LTxvPj','8kxbQqu','11azWisD','executeCommand','extend','1447085msFrZn','8uzGRea','No\x20active\x20workbook\x20found.','PRESENTING','getId','1914388aJYKFM','269949uthRqI','IDLE','syncExecuteCommand','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2740329GgyCSA','getUnitId','get','stopFollowing','getStatus'];_0x13c5=function(){return _0x52bc73;};return _0x13c5();}import{SetScrollOperation as _0x5a7a7f}from'@univerjs/sheets-ui';import{FRange as _0x13d6fc}from'@univerjs/sheets/facade';import{FUniver as _0x99dee3,FEnum as _0x42d318}from'@univerjs/core/facade';class I extends _0x13d6fc{[_0x364c8a(0x1a0)](_0x3b3707,_0x2646a4,_0x2ba177,_0x3a902f,_0x5435b2){const _0x18614c=_0x364c8a,_0x29fcb8=_0x3b3707[_0x18614c(0x192)](_0xe6e695),_0x25d58d=_0x3b3707[_0x18614c(0x192)](_0x92f1ce),_0x4b0d1a=_0x2646a4[_0x18614c(0x191)](),_0x2a2c09=_0x2646a4['getActiveSheet'](),_0x4ae63a=_0x29fcb8[_0x18614c(0x19e)](_0x4b0d1a);(_0x4ae63a==null?void 0x0:_0x4ae63a[_0x18614c(0x194)]())!==_0xf99993[_0x18614c(0x1ab)]||(_0x2ba177['getSheetId']()!==_0x2a2c09[_0x18614c(0x19f)]()&&this[_0x18614c(0x195)][_0x18614c(0x1a6)](_0x40cefd['id'],{'unitId':_0x4b0d1a,'subUnitId':_0x2ba177[_0x18614c(0x19f)]()}),!_0x25d58d['getRenderById'](_0x4b0d1a))||_0x5435b2[_0x18614c(0x18e)](_0x5a7a7f['id'],{'unitId':_0x2646a4[_0x18614c(0x191)](),'sheetId':_0x2ba177['getSheetId'](),'sheetViewStartRow':_0x3a902f[_0x18614c(0x199)],'sheetViewStartColumn':_0x3a902f[_0x18614c(0x19a)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x285d(_0x20ccda,_0x35090f){const _0x13c51b=_0x13c5();return _0x285d=function(_0x285d40,_0x580952){_0x285d40=_0x285d40-0x18e;let _0x18db7d=_0x13c51b[_0x285d40];return _0x18db7d;},_0x285d(_0x20ccda,_0x35090f);}_0x13d6fc['extend'](I);class m extends _0x99dee3{['getLiveShareStatus'](){const _0x5579db=_0x364c8a;var _0x3ab854,_0x1b6d4f;const _0x1aae08=this['_injector'][_0x5579db(0x192)](_0xe6e695),_0x18f085=(_0x3ab854=this['getActiveWorkbook']())==null?void 0x0:_0x3ab854[_0x5579db(0x1ac)]();if(!_0x18f085)throw new Error(_0x5579db(0x1aa));const _0x502600=_0x1aae08[_0x5579db(0x19e)](_0x18f085);return(_0x1b6d4f=_0x502600==null?void 0x0:_0x502600[_0x5579db(0x194)]())!=null?_0x1b6d4f:_0xf99993[_0x5579db(0x1af)];}['startFollowing'](){const _0x3a754f=_0x364c8a;var _0x136cfc;const _0xdfa234=this[_0x3a754f(0x19d)][_0x3a754f(0x192)](_0xe6e695),_0x16c4b1=(_0x136cfc=this['getActiveWorkbook']())==null?void 0x0:_0x136cfc[_0x3a754f(0x1ac)]();if(!_0x16c4b1)throw new Error('No\x20active\x20workbook\x20found.');const _0x382c78=_0xdfa234[_0x3a754f(0x19e)](_0x16c4b1);if(!_0x382c78)throw new Error(_0x3a754f(0x18f));_0x382c78[_0x3a754f(0x1a2)]();}[_0x364c8a(0x193)](){const _0x1746c2=_0x364c8a;var _0x35c55c;const _0x1658cf=this[_0x1746c2(0x19d)][_0x1746c2(0x192)](_0xe6e695),_0x383f30=(_0x35c55c=this[_0x1746c2(0x198)]())==null?void 0x0:_0x35c55c[_0x1746c2(0x1ac)]();if(!_0x383f30)throw new Error(_0x1746c2(0x1aa));const _0x15f529=_0x1658cf[_0x1746c2(0x19e)](_0x383f30);if(!_0x15f529)throw new Error(_0x1746c2(0x18f));_0x15f529['stopFollowing']();}[_0x364c8a(0x196)](){const _0x4ea349=_0x364c8a;var _0x3ef428;const _0x20e6d8=this[_0x4ea349(0x19d)][_0x4ea349(0x192)](_0xe6e695),_0x30e6b8=(_0x3ef428=this[_0x4ea349(0x198)]())==null?void 0x0:_0x3ef428[_0x4ea349(0x1ac)]();if(!_0x30e6b8)throw new Error(_0x4ea349(0x1aa));const _0x5689d1=_0x20e6d8[_0x4ea349(0x19e)](_0x30e6b8);if(!_0x5689d1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5689d1[_0x4ea349(0x1a1)]();}['stopPresenting'](){const _0x4af348=_0x364c8a;var _0x399ada;const _0x9934ad=this[_0x4af348(0x19d)]['get'](_0xe6e695),_0x739f32=(_0x399ada=this[_0x4af348(0x198)]())==null?void 0x0:_0x399ada[_0x4af348(0x1ac)]();if(!_0x739f32)throw new Error('No\x20active\x20workbook\x20found.');const _0xb71475=_0x9934ad['getLiveShareCoordinatorSync'](_0x739f32);if(!_0xb71475)throw new Error(_0x4af348(0x18f));_0xb71475['stopPresenting']();}}_0x99dee3[_0x364c8a(0x1a7)](m);class C extends _0x42d318{get['LiveShareStatusEnum'](){return _0xf99993;}}_0x42d318[_0x364c8a(0x1a7)](C);
1
+ const _0x51945a=_0x522f;function _0x32a6(){const _0x64d1cb=['3087525Iqkwxk','5882404TSKzMY','1506876pukGCF','getUnitId','getLiveShareStatus','startRow','getStatus','startColumn','getSheetId','stopFollowing','12TEjuhz','executeCommand','_injector','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','extend','getId','_initialize','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','5568IvZHoJ','537500VMoJLc','syncExecuteCommand','startPresenting','IDLE','10OwlkKA','_commandService','6lXnArd','573332kihXve','getActiveWorkbook','8kPZpZj','5998491BtDnOH','get'];_0x32a6=function(){return _0x64d1cb;};return _0x32a6();}(function(_0x1b646a,_0x2fc0fe){const _0x3db0ea=_0x522f,_0xc75d1=_0x1b646a();while(!![]){try{const _0x557c5d=-parseInt(_0x3db0ea(0x177))/0x1+parseInt(_0x3db0ea(0x17f))/0x2*(parseInt(_0x3db0ea(0x17e))/0x3)+parseInt(_0x3db0ea(0x178))/0x4+parseInt(_0x3db0ea(0x184))/0x5+parseInt(_0x3db0ea(0x18e))/0x6*(-parseInt(_0x3db0ea(0x186))/0x7)+-parseInt(_0x3db0ea(0x181))/0x8*(parseInt(_0x3db0ea(0x182))/0x9)+-parseInt(_0x3db0ea(0x17c))/0xa*(-parseInt(_0x3db0ea(0x185))/0xb);if(_0x557c5d===_0x2fc0fe)break;else _0xc75d1['push'](_0xc75d1['shift']());}catch(_0x54081a){_0xc75d1['push'](_0xc75d1['shift']());}}}(_0x32a6,0xb8e7d));import{LiveShareController as _0x4ff4aa,LiveShareStatus as _0x2a2d81}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4c4911}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x18d3f9}from'@univerjs/sheets';function _0x522f(_0x2b8cc9,_0x1c5616){_0x2b8cc9=_0x2b8cc9-0x16f;const _0x32a6c4=_0x32a6();let _0x522fd5=_0x32a6c4[_0x2b8cc9];return _0x522fd5;}import{SetScrollOperation as _0x39312a}from'@univerjs/sheets-ui';import{FRange as _0x363235}from'@univerjs/sheets/facade';import{FUniver as _0x47b429,FEnum as _0x36e1e3}from'@univerjs/core/facade';class I extends _0x363235{[_0x51945a(0x174)](_0x443719,_0x17675a,_0x1c259f,_0x17416b,_0x5d0501){const _0x1c0dc9=_0x51945a,_0x925940=_0x443719[_0x1c0dc9(0x183)](_0x4ff4aa),_0xcac281=_0x443719[_0x1c0dc9(0x183)](_0x4c4911),_0x4d412e=_0x17675a[_0x1c0dc9(0x187)](),_0x42cc61=_0x17675a['getActiveSheet'](),_0xb5b64e=_0x925940[_0x1c0dc9(0x176)](_0x4d412e);(_0xb5b64e==null?void 0x0:_0xb5b64e[_0x1c0dc9(0x18a)]())!==_0x2a2d81['PRESENTING']||(_0x1c259f['getSheetId']()!==_0x42cc61[_0x1c0dc9(0x18c)]()&&this[_0x1c0dc9(0x17d)][_0x1c0dc9(0x18f)](_0x18d3f9['id'],{'unitId':_0x4d412e,'subUnitId':_0x1c259f[_0x1c0dc9(0x18c)]()}),!_0xcac281['getRenderById'](_0x4d412e))||_0x5d0501[_0x1c0dc9(0x179)](_0x39312a['id'],{'unitId':_0x17675a['getUnitId'](),'sheetId':_0x1c259f[_0x1c0dc9(0x18c)](),'sheetViewStartRow':_0x17416b[_0x1c0dc9(0x189)],'sheetViewStartColumn':_0x17416b[_0x1c0dc9(0x18b)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x363235['extend'](I);class m extends _0x47b429{[_0x51945a(0x188)](){const _0x567ed8=_0x51945a;var _0x337683,_0x13aef0;const _0x1d6a7d=this[_0x567ed8(0x16f)][_0x567ed8(0x183)](_0x4ff4aa),_0x346df1=(_0x337683=this[_0x567ed8(0x180)]())==null?void 0x0:_0x337683[_0x567ed8(0x173)]();if(!_0x346df1)throw new Error('No\x20active\x20workbook\x20found.');const _0x52ceb9=_0x1d6a7d[_0x567ed8(0x176)](_0x346df1);return(_0x13aef0=_0x52ceb9==null?void 0x0:_0x52ceb9[_0x567ed8(0x18a)]())!=null?_0x13aef0:_0x2a2d81[_0x567ed8(0x17b)];}['startFollowing'](){const _0x1b7b94=_0x51945a;var _0x5bd31e;const _0x12b72d=this[_0x1b7b94(0x16f)][_0x1b7b94(0x183)](_0x4ff4aa),_0x35ae0a=(_0x5bd31e=this[_0x1b7b94(0x180)]())==null?void 0x0:_0x5bd31e['getId']();if(!_0x35ae0a)throw new Error(_0x1b7b94(0x175));const _0x107e73=_0x12b72d[_0x1b7b94(0x176)](_0x35ae0a);if(!_0x107e73)throw new Error(_0x1b7b94(0x171));_0x107e73['startFollowing']();}[_0x51945a(0x18d)](){const _0x2e2744=_0x51945a;var _0x20458a;const _0x128d6d=this[_0x2e2744(0x16f)][_0x2e2744(0x183)](_0x4ff4aa),_0x59ffae=(_0x20458a=this['getActiveWorkbook']())==null?void 0x0:_0x20458a[_0x2e2744(0x173)]();if(!_0x59ffae)throw new Error(_0x2e2744(0x175));const _0x3c6a67=_0x128d6d[_0x2e2744(0x176)](_0x59ffae);if(!_0x3c6a67)throw new Error(_0x2e2744(0x171));_0x3c6a67[_0x2e2744(0x18d)]();}[_0x51945a(0x17a)](){const _0x98636d=_0x51945a;var _0x5c9b76;const _0x5a3188=this[_0x98636d(0x16f)][_0x98636d(0x183)](_0x4ff4aa),_0x1df158=(_0x5c9b76=this[_0x98636d(0x180)]())==null?void 0x0:_0x5c9b76['getId']();if(!_0x1df158)throw new Error('No\x20active\x20workbook\x20found.');const _0x21ec05=_0x5a3188['getLiveShareCoordinatorSync'](_0x1df158);if(!_0x21ec05)throw new Error(_0x98636d(0x171));_0x21ec05['tryStartPresenting']();}[_0x51945a(0x170)](){const _0x55ad39=_0x51945a;var _0x17e2e4;const _0x37fbd8=this['_injector']['get'](_0x4ff4aa),_0x25467e=(_0x17e2e4=this[_0x55ad39(0x180)]())==null?void 0x0:_0x17e2e4[_0x55ad39(0x173)]();if(!_0x25467e)throw new Error(_0x55ad39(0x175));const _0x197cce=_0x37fbd8['getLiveShareCoordinatorSync'](_0x25467e);if(!_0x197cce)throw new Error(_0x55ad39(0x171));_0x197cce[_0x55ad39(0x170)]();}}_0x47b429[_0x51945a(0x172)](m);class C extends _0x36e1e3{get['LiveShareStatusEnum'](){return _0x2a2d81;}}_0x36e1e3['extend'](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x33f3a0=_0x2e44;(function(_0x5ad21f,_0x3dc78a){const _0x5d7d3f=_0x2e44,_0x18ce42=_0x5ad21f();while(!![]){try{const _0x20d940=-parseInt(_0x5d7d3f(0x225))/0x1*(-parseInt(_0x5d7d3f(0x1f2))/0x2)+-parseInt(_0x5d7d3f(0x25c))/0x3*(parseInt(_0x5d7d3f(0x274))/0x4)+parseInt(_0x5d7d3f(0x23f))/0x5+-parseInt(_0x5d7d3f(0x203))/0x6+-parseInt(_0x5d7d3f(0x249))/0x7*(-parseInt(_0x5d7d3f(0x264))/0x8)+parseInt(_0x5d7d3f(0x22b))/0x9*(parseInt(_0x5d7d3f(0x239))/0xa)+-parseInt(_0x5d7d3f(0x21f))/0xb*(parseInt(_0x5d7d3f(0x1ce))/0xc);if(_0x20d940===_0x3dc78a)break;else _0x18ce42['push'](_0x18ce42['shift']());}catch(_0x4c97a6){_0x18ce42['push'](_0x18ce42['shift']());}}}(_0x459e,0xad3af));var J=Object[_0x33f3a0(0x236)],K=(_0xc79036,_0x4e3ecf,_0xd7d539)=>_0x4e3ecf in _0xc79036?J(_0xc79036,_0x4e3ecf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd7d539}):_0xc79036[_0x4e3ecf]=_0xd7d539,u=(_0x4422ad,_0x345867,_0x3f3468)=>K(_0x4422ad,typeof _0x345867!='symbol'?_0x345867+'':_0x345867,_0x3f3468);import{Disposable as _0x123ebc,toDisposable as _0x31e46f,IUniverInstanceService as _0x56e919,Inject as _0x4770f0,Injector as _0x52080b,IConfigService as _0x404a20,ICommandService as _0x3d793e,RxDisposable as _0x17838a,UniverInstanceType as _0x1afb45,DisposableCollection as _0x5321e8,CommandType as _0x4795cf,DependentOn as _0x83a676,Plugin as _0x14031e,merge as _0x2fd27e,registerDependencies as _0x293650,mergeOverrideWithDependencies as _0x57eb35,touchDependencies as _0x19de09}from'@univerjs/core';import{useDependency as _0x26c8a9,useObservable as _0x4c2a85,IUIPartsService as _0x510518,BuiltInUIPart as _0x221148,connectInjector as _0x1211a}from'@univerjs/ui';import{jsx as _0x2d6d1e,jsxs as _0x4bfea3,Fragment as _0x4d5d84}from'react/jsx-runtime';import{Dropdown as _0x2eaec2,clsx as _0xf2d602,Button as _0x5c367e}from'@univerjs/design';import{useRef as _0x278b84,createElement as _0x3b10f6,forwardRef as _0x10402b,useState as _0x575f52,useEffect as _0x1a5f41}from'react';import{CollaborationEvent as _0xb16a85,parseProtocolChangeset as _0xcaafe2}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x58b373,SessionStatus as _0x178ef0,UniverCollaborationClientPlugin as _0x5984b3}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x10d1bf,SetWorksheetActiveOperation as _0x46858f}from'@univerjs/sheets';import{BehaviorSubject as _0x176527,Subject as _0x3a662b}from'rxjs';import{takeUntil as _0x37843a,throttleTime as _0x5f4e61}from'rxjs/operators';import{SetZoomRatioOperation as _0x57d381,SetScrollOperation as _0x23a13f}from'@univerjs/sheets-ui';function k({ref:_0x5b4cea,..._0x38787f}){const _0x3aa2f8=_0x33f3a0,{icon:_0x35d148,id:_0x19eaf2,className:_0x2a3884,extend:_0x303024,..._0x53100e}=_0x38787f,_0x15fd1b=(_0x3aa2f8(0x270)+_0x19eaf2+'\x20'+(_0x2a3884||''))[_0x3aa2f8(0x251)](),_0x50b4e7=_0x278b84('_'+Oe());return G(_0x35d148,''+_0x19eaf2,{'defIds':_0x35d148['defIds'],'idSuffix':_0x50b4e7['current']},{'ref':_0x5b4cea,'className':_0x15fd1b,..._0x53100e},_0x303024);}function G(_0x556d60,_0x9df4d4,_0x4fb525,_0xdf95c,_0x29ec95){const _0x46d3d6=_0x33f3a0;return _0x3b10f6(_0x556d60[_0x46d3d6(0x241)],{'key':_0x9df4d4,...be(_0x556d60,_0x4fb525,_0x29ec95),..._0xdf95c},(Ee(_0x556d60,_0x4fb525)[_0x46d3d6(0x1db)]||[])[_0x46d3d6(0x208)]((_0x401c42,_0x2cd970)=>G(_0x401c42,_0x9df4d4+'-'+_0x556d60[_0x46d3d6(0x241)]+'-'+_0x2cd970,_0x4fb525,void 0x0,_0x29ec95)));}function be(_0x3fc3ee,_0x278250,_0x114b3d){const _0x1be6fd=_0x33f3a0,_0x5e231b={..._0x3fc3ee['attrs']};_0x114b3d!=null&&_0x114b3d[_0x1be6fd(0x1f8)]&&_0x5e231b['fill']===_0x1be6fd(0x1f8)&&(_0x5e231b['fill']=_0x114b3d['colorChannel1']),_0x3fc3ee[_0x1be6fd(0x241)]===_0x1be6fd(0x1e0)&&_0x5e231b['id']&&(_0x5e231b['id']=_0x5e231b['id']+_0x278250[_0x1be6fd(0x245)]),Object[_0x1be6fd(0x23c)](_0x5e231b)[_0x1be6fd(0x228)](([_0x1cff51,_0x396038])=>{const _0x55f7d7=_0x1be6fd;_0x1cff51===_0x55f7d7(0x1e0)&&typeof _0x396038==_0x55f7d7(0x224)&&(_0x5e231b[_0x1cff51]=_0x396038[_0x55f7d7(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x278250[_0x55f7d7(0x245)]+')'));});const {defIds:_0xdade56}=_0x278250;return!_0xdade56||_0xdade56[_0x1be6fd(0x21b)]===0x0||(_0x3fc3ee[_0x1be6fd(0x241)]===_0x1be6fd(0x258)&&_0x5e231b['xlink:href']&&(_0x5e231b[_0x1be6fd(0x1e2)]=_0x5e231b[_0x1be6fd(0x1e2)]+_0x278250[_0x1be6fd(0x245)]),Object[_0x1be6fd(0x23c)](_0x5e231b)[_0x1be6fd(0x228)](([_0x3d541b,_0x515e38])=>{const _0x350485=_0x1be6fd;typeof _0x515e38==_0x350485(0x224)&&(_0x5e231b[_0x3d541b]=_0x515e38[_0x350485(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x278250[_0x350485(0x245)]+')'));})),_0x5e231b;}function Ee(_0x42c0ef,_0xd6ce40){const _0x230fdd=_0x33f3a0;var _0x3f6687;const {defIds:_0x1768f8}=_0xd6ce40;return!_0x1768f8||_0x1768f8['length']===0x0?_0x42c0ef:_0x42c0ef['tag']===_0x230fdd(0x1de)&&((_0x3f6687=_0x42c0ef['children'])!=null&&_0x3f6687[_0x230fdd(0x21b)])?{..._0x42c0ef,'children':_0x42c0ef['children'][_0x230fdd(0x208)](_0x1e6bad=>typeof _0x1e6bad[_0x230fdd(0x247)]['id']=='string'&&_0x1768f8&&_0x1768f8['includes'](_0x1e6bad[_0x230fdd(0x247)]['id'])?{..._0x1e6bad,'attrs':{..._0x1e6bad[_0x230fdd(0x247)],'id':_0x1e6bad[_0x230fdd(0x247)]['id']+_0xd6ce40[_0x230fdd(0x245)]}}:_0x1e6bad)}:_0x42c0ef;}function Oe(){const _0x39159b=_0x33f3a0;return Math[_0x39159b(0x237)]()[_0x39159b(0x1e6)](0x24)[_0x39159b(0x206)](0x2,0x8);}k[_0x33f3a0(0x20a)]=_0x33f3a0(0x25a);const we={'tag':'svg','attrs':{'xmlns':_0x33f3a0(0x1e5),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x33f3a0(0x23d),'height':'1em'},'children':[{'tag':_0x33f3a0(0x254),'attrs':{'fill':_0x33f3a0(0x21c),'d':_0x33f3a0(0x1f0)}},{'tag':_0x33f3a0(0x254),'attrs':{'fill':'currentColor','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':_0x33f3a0(0x1f4),'clipRule':_0x33f3a0(0x1f4)}}]},W=_0x10402b(function(_0x1133f4,_0x52c04b){const _0x4d89e6=_0x33f3a0;return _0x3b10f6(k,Object[_0x4d89e6(0x1d9)]({},_0x1133f4,{'id':_0x4d89e6(0x207),'ref':_0x52c04b,'icon':we}));});W[_0x33f3a0(0x20a)]='LiveShareIcon';class L extends _0x123ebc{constructor(){const _0x34dc27=_0x33f3a0;super(...arguments),u(this,_0x34dc27(0x1d0),new Set()),u(this,_0x34dc27(0x229),new Set());}['registerSharedOperation'](_0x914821){const _0x403db7=_0x33f3a0;return this['_sharedOperations'][_0x403db7(0x25b)](_0x914821),_0x31e46f(()=>this[_0x403db7(0x1d0)]['delete'](_0x914821));}['registerInitialStateReporter'](_0xb43a22){const _0x5385b1=_0x33f3a0;return this[_0x5385b1(0x229)][_0x5385b1(0x25b)](_0xb43a22),_0x31e46f(()=>this[_0x5385b1(0x229)]['delete'](_0xb43a22));}[_0x33f3a0(0x26d)](_0x1c1763){const _0x503683=_0x33f3a0;return this['_sharedOperations'][_0x503683(0x244)](_0x1c1763);}[_0x33f3a0(0x1fd)](_0x1267ab){const _0x24e62b=_0x33f3a0;return Array['from'](this[_0x24e62b(0x229)])[_0x24e62b(0x208)](_0x4fafe4=>_0x4fafe4(_0x1267ab));}}var Ne=Object[_0x33f3a0(0x24d)],Y=(_0x3ea768,_0x58f61a,_0xe93ef6,_0x51aebd)=>{const _0x67f94d=_0x33f3a0;for(var _0x4426c3=_0x51aebd>0x1?void 0x0:_0x51aebd?Ne(_0x58f61a,_0xe93ef6):_0x58f61a,_0x48ce84=_0x3ea768[_0x67f94d(0x21b)]-0x1,_0xdd11bf;_0x48ce84>=0x0;_0x48ce84--)(_0xdd11bf=_0x3ea768[_0x48ce84])&&(_0x4426c3=_0xdd11bf(_0x4426c3)||_0x4426c3);return _0x4426c3;},_=(_0x513a9f,_0x4ba8f1)=>(_0xfc4201,_0x4eb585)=>_0x4ba8f1(_0xfc4201,_0x4eb585,_0x513a9f);let S=class extends _0x17838a{constructor(_0x3758db,_0x4933f8,_0x5bf668){const _0x1894cf=_0x33f3a0;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3758db,this[_0x1894cf(0x1f9)]=_0x4933f8,this[_0x1894cf(0x1e4)]=_0x5bf668,this[_0x1894cf(0x23e)]());}async[_0x33f3a0(0x218)](_0x57f0fb){const _0x454f11=_0x33f3a0;return this[_0x454f11(0x275)]['has'](_0x57f0fb)||await this['_startLiveShareCoordinator'](_0x57f0fb),this[_0x454f11(0x275)][_0x454f11(0x20b)](_0x57f0fb);}[_0x33f3a0(0x22d)](_0x58cc5d){const _0x23bc19=_0x33f3a0;var _0x48ad61;return(_0x48ad61=this[_0x23bc19(0x275)][_0x23bc19(0x20b)](_0x58cc5d))!=null?_0x48ad61:null;}['_init'](){const _0x214d50=_0x33f3a0;this[_0x214d50(0x1d1)][_0x214d50(0x20c)](_0x1afb45[_0x214d50(0x1e1)])[_0x214d50(0x256)](_0x37843a(this['dispose$']))[_0x214d50(0x25e)](async _0x12f3c4=>{const _0x132751=_0x214d50,_0x454f48=_0x12f3c4[_0x132751(0x1f5)]();this[_0x132751(0x275)]['has'](_0x454f48)||this[_0x132751(0x1ee)](_0x454f48);}),this[_0x214d50(0x1d1)][_0x214d50(0x1da)](_0x1afb45[_0x214d50(0x1e1)])[_0x214d50(0x256)](_0x37843a(this['dispose$']))[_0x214d50(0x25e)](_0x3c7707=>{const _0x17a399=_0x214d50,_0x459a59=_0x3c7707[_0x17a399(0x1f5)](),_0xef1edc=this[_0x17a399(0x275)]['get'](_0x459a59);_0xef1edc==null||_0xef1edc[_0x17a399(0x26c)]();});}async[_0x33f3a0(0x1ee)](_0x674802){const _0x4402a1=_0x33f3a0,_0x2dc03b=await this[_0x4402a1(0x1e4)][_0x4402a1(0x243)](_0x674802),_0x4a00c3=this[_0x4402a1(0x1f9)][_0x4402a1(0x234)](N,_0x674802,_0x2dc03b);return _0x4a00c3[_0x4402a1(0x205)](),this[_0x4402a1(0x275)][_0x4402a1(0x1d2)](_0x674802,_0x4a00c3),_0x4a00c3;}};S=Y([_(0x0,_0x56e919),_(0x1,_0x4770f0(_0x52080b)),_(0x2,_0x4770f0(_0x58b373))],S);var c=(_0x27bf23=>(_0x27bf23[_0x33f3a0(0x24c)]='offline',_0x27bf23[_0x33f3a0(0x260)]=_0x33f3a0(0x1eb),_0x27bf23['FOLLOWING']='following',_0x27bf23['NOT_FOLLOWING']=_0x33f3a0(0x238),_0x27bf23['PRESENTING']=_0x33f3a0(0x255),_0x27bf23))(c||{});const Ce=_0x33f3a0(0x1df),De=0xc8;let N=class extends _0x17838a{constructor(_0x1d22cf,_0x92e78,_0x22e8c4,_0x52fee2,_0x1db30a){const _0x51c258=_0x33f3a0;super(),u(this,'_status$',new _0x176527('idle')),u(this,_0x51c258(0x1dd),this[_0x51c258(0x230)][_0x51c258(0x1dc)]()),u(this,'_init',!0x1),u(this,_0x51c258(0x268),null),u(this,'_presenter',null),(this[_0x51c258(0x263)]=_0x1d22cf,this[_0x51c258(0x1f1)]=_0x92e78,this[_0x51c258(0x23a)]=_0x22e8c4,this[_0x51c258(0x215)]=_0x52fee2,this[_0x51c258(0x1d4)]=_0x1db30a);}get['_status'](){const _0x438f46=_0x33f3a0;return this['_status$'][_0x438f46(0x1e3)]();}[_0x33f3a0(0x26c)](){const _0x27ec2c=_0x33f3a0;var _0x72d230;(_0x72d230=this[_0x27ec2c(0x268)])==null||_0x72d230['dispose'](),this['_status$'][_0x27ec2c(0x24b)](_0x27ec2c(0x1eb)),this[_0x27ec2c(0x230)][_0x27ec2c(0x220)]();}[_0x33f3a0(0x252)](){const _0x11edac=_0x33f3a0;return this[_0x11edac(0x25d)];}[_0x33f3a0(0x205)](){const _0x102587=_0x33f3a0;this['_init']||(this[_0x102587(0x23e)]=!0x0,this['_collabSession'][_0x102587(0x20f)][_0x102587(0x256)](_0x37843a(this['dispose$']))[_0x102587(0x25e)](_0x5ef95c=>{const _0x443f08=_0x102587;switch(_0x5ef95c){case _0x178ef0[_0x443f08(0x24c)]:this['_handleOffline']();break;case _0x178ef0[_0x443f08(0x257)]:this['_handleOnline']();break;}}),this[_0x102587(0x1f1)][_0x102587(0x222)][_0x102587(0x256)](_0x37843a(this[_0x102587(0x250)]))['subscribe'](_0x1be2fe=>{const _0x1fcfc9=_0x102587,{eventID:_0x1d0554}=_0x1be2fe;switch(_0x1d0554){case _0xb16a85[_0x1fcfc9(0x227)]:this[_0x1fcfc9(0x202)](_0x1be2fe);break;case _0xb16a85[_0x1fcfc9(0x1cf)]:this[_0x1fcfc9(0x232)](_0x1be2fe);break;case _0xb16a85[_0x1fcfc9(0x272)]:this['_handleTerminate']();break;case _0xb16a85[_0x1fcfc9(0x22f)]:this[_0x1fcfc9(0x200)](_0x1be2fe);break;}}));}['tryStartPresenting'](){const _0x25bb1b=_0x33f3a0;this[_0x25bb1b(0x1f1)][_0x25bb1b(0x253)]({'eventID':_0xb16a85['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x25bb1b(0x263)],'userID':this[_0x25bb1b(0x1f1)]['getMemberID']()}},this['_unitID']);}[_0x33f3a0(0x265)](){const _0x2f25aa=_0x33f3a0;this[_0x2f25aa(0x25d)]===_0x2f25aa(0x255)&&(this[_0x2f25aa(0x230)][_0x2f25aa(0x24b)](_0x2f25aa(0x1eb)),this[_0x2f25aa(0x1f1)][_0x2f25aa(0x253)]({'eventID':_0xb16a85[_0x2f25aa(0x272)],'data':{'unitID':this[_0x2f25aa(0x263)]}},this[_0x2f25aa(0x263)]));}['startFollowing'](){const _0x1316ad=_0x33f3a0;this['_status']===_0x1316ad(0x238)&&(this[_0x1316ad(0x230)]['next'](_0x1316ad(0x20e)),this['_startFollowing']());}[_0x33f3a0(0x248)](){const _0x4f16b7=_0x33f3a0;this[_0x4f16b7(0x25d)]===_0x4f16b7(0x20e)&&this[_0x4f16b7(0x26e)]();}[_0x33f3a0(0x202)](_0xbe7f27){const _0x592550=_0x33f3a0,{presenter:_0x1eb49d}=_0xbe7f27[_0x592550(0x214)],_0x16cf76=this[_0x592550(0x1f1)][_0x592550(0x216)]();this['_presenter']=_0x1eb49d,_0x1eb49d===_0x16cf76?(this['_stopFollowing'](),this[_0x592550(0x231)]()):this['_status']!==_0x592550(0x238)&&(this['_stopPresenting'](),this[_0x592550(0x211)]());}[_0x33f3a0(0x266)](){const _0x2e5bfd=_0x33f3a0,_0x4b6f72={'eventID':_0xb16a85['LIVESHARE_FETCH_OPERATIONS']};this[_0x2e5bfd(0x1f1)]['send'](_0x4b6f72,this[_0x2e5bfd(0x263)]);}[_0x33f3a0(0x1ef)](){const _0x40b8ab=_0x33f3a0;this[_0x40b8ab(0x1d7)]=null,this['_status']!==_0x40b8ab(0x255)&&this[_0x40b8ab(0x26a)]();}['_handleNewChangeSets'](_0x4801c3){const _0x4a918b=_0x33f3a0;if(this[_0x4a918b(0x25d)]===_0x4a918b(0x20e)&&this[_0x4a918b(0x1d7)]===_0x4801c3[_0x4a918b(0x214)]['memberID']){const _0x17c52d=_0xcaafe2(_0x4801c3[_0x4a918b(0x214)])[_0x4a918b(0x1ed)]['reverse']()[_0x4a918b(0x1e9)](_0x11313d=>_0x11313d['id']===_0x10d1bf['id']);if(_0x17c52d){const _0x327873=_0x17c52d[_0x4a918b(0x273)][_0x4a918b(0x267)],_0x432f38=_0x17c52d[_0x4a918b(0x273)][_0x4a918b(0x242)]['id'];setTimeout(()=>{const _0x1dfce2=_0x4a918b;this['_commandService'][_0x1dfce2(0x235)](_0x46858f['id'],{'unitId':_0x327873,'subUnitId':_0x432f38},{'fromCollab':!0x0});});}}}[_0x33f3a0(0x231)](){const _0x1f510d=_0x33f3a0;this[_0x1f510d(0x230)]['next'](_0x1f510d(0x255));const _0x2cd3f8=new Map(),_0x124d72=this[_0x1f510d(0x268)]=new _0x5321e8();_0x124d72[_0x1f510d(0x25b)](_0x31e46f(()=>{const _0x6feaf5=_0x1f510d;_0x2cd3f8[_0x6feaf5(0x228)](_0x3d00fa=>_0x3d00fa[_0x6feaf5(0x220)]()),_0x2cd3f8[_0x6feaf5(0x1ec)]();})),_0x124d72[_0x1f510d(0x25b)](this[_0x1f510d(0x1d4)]['onCommandExecuted'](_0xc6c9aa=>{const _0x41c79a=_0x1f510d;var _0x4fbf23;if(_0xc6c9aa[_0x41c79a(0x1fa)]!==_0x4795cf[_0x41c79a(0x21e)]||!this[_0x41c79a(0x215)][_0x41c79a(0x26d)](_0xc6c9aa['id']))return;const {id:_0x4cbfb6}=_0xc6c9aa;let _0x40e576;_0x2cd3f8[_0x41c79a(0x244)](_0x4cbfb6)?_0x40e576=_0x2cd3f8[_0x41c79a(0x20b)](_0x4cbfb6):(_0x40e576=new _0x3a662b(),_0x2cd3f8[_0x41c79a(0x1d2)](_0x4cbfb6,_0x40e576),_0x40e576[_0x41c79a(0x256)](_0x5f4e61((_0x4fbf23=this[_0x41c79a(0x23a)][_0x41c79a(0x22c)](Ce))!=null?_0x4fbf23:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x215ed=>{const _0x5ceb31=_0x41c79a;this['_collabSession']['send']({'eventID':_0xb16a85[_0x5ceb31(0x1cf)],'data':{'unitID':this[_0x5ceb31(0x263)],'operations':{[_0x215ed['id']]:{'id':_0x215ed['id'],'params':JSON[_0x5ceb31(0x1d5)](_0x215ed[_0x5ceb31(0x273)])}}}},this[_0x5ceb31(0x263)]);})),_0x40e576[_0x41c79a(0x24b)](_0xc6c9aa);})),this[_0x1f510d(0x215)][_0x1f510d(0x1fd)](this[_0x1f510d(0x263)])['forEach'](_0x144ee2=>this[_0x1f510d(0x1f1)][_0x1f510d(0x253)]({'eventID':_0xb16a85[_0x1f510d(0x1cf)],'data':{'unitID':this['_unitID'],'operations':{[_0x144ee2['id']]:{'id':_0x144ee2['id'],'params':JSON[_0x1f510d(0x1d5)](_0x144ee2[_0x1f510d(0x273)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x30eb79=_0x33f3a0;var _0xf112d3;this[_0x30eb79(0x230)]['next'](_0x30eb79(0x1eb)),(_0xf112d3=this['_commandDisposable'])==null||_0xf112d3[_0x30eb79(0x26c)](),this[_0x30eb79(0x268)]=null;}[_0x33f3a0(0x211)](){const _0x10ccbf=_0x33f3a0;var _0xae736d;(_0xae736d=this[_0x10ccbf(0x268)])==null||_0xae736d[_0x10ccbf(0x26c)](),this[_0x10ccbf(0x230)][_0x10ccbf(0x24b)](_0x10ccbf(0x20e));}[_0x33f3a0(0x26a)](){const _0x2139e5=_0x33f3a0;var _0x2fcef5;this['_status$'][_0x2139e5(0x24b)](_0x2139e5(0x1eb)),(_0x2fcef5=this['_commandDisposable'])==null||_0x2fcef5[_0x2139e5(0x26c)](),this['_commandDisposable']=null;}[_0x33f3a0(0x26e)](){const _0x179e36=_0x33f3a0;var _0x3cbe93;this[_0x179e36(0x230)][_0x179e36(0x24b)](_0x179e36(0x238)),(_0x3cbe93=this['_commandDisposable'])==null||_0x3cbe93['dispose']();}[_0x33f3a0(0x232)](_0x2de9b2){const _0x13c3c3=_0x33f3a0;if(['presenting','not-following',_0x13c3c3(0x1f3)]['includes'](this[_0x13c3c3(0x25d)])||!_0x2de9b2['data'][_0x13c3c3(0x221)]||_0x2de9b2[_0x13c3c3(0x214)][_0x13c3c3(0x221)]===this[_0x13c3c3(0x1f1)]['getMemberID']())return;this['_status']===_0x13c3c3(0x1eb)&&this[_0x13c3c3(0x211)]();const _0x59baa4=_0x2de9b2[_0x13c3c3(0x214)]['operations'];Object[_0x13c3c3(0x226)](_0x59baa4)[_0x13c3c3(0x228)](_0x9dbcdf=>{const _0x50be95=_0x13c3c3;this[_0x50be95(0x1d4)]['executeCommand'](_0x9dbcdf['id'],_0x9dbcdf[_0x50be95(0x273)]?JSON['parse'](_0x9dbcdf['params']):null,{'fromCollab':!0x0});});}[_0x33f3a0(0x1f6)](){const _0x488d37=_0x33f3a0;var _0x3eb656;this[_0x488d37(0x230)][_0x488d37(0x24b)](_0x488d37(0x1f3)),(_0x3eb656=this['_commandDisposable'])==null||_0x3eb656['dispose']();}[_0x33f3a0(0x209)](){const _0xeccbed=_0x33f3a0;this[_0xeccbed(0x230)][_0xeccbed(0x24b)](_0xeccbed(0x1eb)),this['_fetchOperations']();}};N=Y([_(0x2,_0x404a20),_(0x3,_0x4770f0(L)),_(0x4,_0x3d793e)],N);function Le(){const _0x103675=_0x33f3a0,_0x47e73a=_0x26c8a9(S),_0xa11217=_0x26c8a9(_0x56e919),_0x481d3a=_0x4c2a85(()=>_0xa11217[_0x103675(0x261)](_0x1afb45[_0x103675(0x1e1)]),void 0x0,!0x1,[]),[_0x691107,_0x505fb3]=_0x575f52(null),[_0x21ed23,_0x35588a]=_0x575f52(c[_0x103675(0x260)]),_0x48e1ff=_0x278b84(null);return _0x1a5f41(()=>(_0x481d3a&&_0x47e73a[_0x103675(0x218)](_0x481d3a[_0x103675(0x1f5)]())[_0x103675(0x1e8)](_0x2b0487=>{const _0x120805=_0x103675;_0x505fb3(_0x2b0487),_0x48e1ff[_0x120805(0x204)]=_0x2b0487[_0x120805(0x1dd)]['subscribe'](_0x5cace3=>{_0x35588a(_0x5cace3);});}),()=>{const _0x1a4c97=_0x103675;var _0x8285d4;(_0x8285d4=_0x48e1ff[_0x1a4c97(0x204)])==null||_0x8285d4[_0x1a4c97(0x25f)](),_0x48e1ff[_0x1a4c97(0x204)]=null;}),[_0x481d3a,_0x47e73a]),_0x691107?_0x2d6d1e(_0x2eaec2,{'align':'end','disabled':_0x21ed23===c[_0x103675(0x24c)],'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':_0x2d6d1e(Re,{'status':_0x21ed23,'coordinator':_0x691107}),'children':_0x2d6d1e(_0x103675(0x246),{'className':_0xf2d602(_0x103675(0x240),{'univer-cursor-not-allowed':_0x21ed23===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x21ed23!==c[_0x103675(0x24c)]}),'type':'button','children':_0x2d6d1e(W,{'className':_0x103675(0x24a)})})}):null;}function Re(_0x3d0acf){const _0x450982=_0x33f3a0,{status:_0x797ae3,coordinator:_0x262bff}=_0x3d0acf;switch(_0x797ae3){case c[_0x450982(0x260)]:return _0x2d6d1e($e,{'coordinator':_0x262bff});case c[_0x450982(0x219)]:return _0x2d6d1e(xe,{'coordinator':_0x262bff});case c[_0x450982(0x217)]:return _0x2d6d1e(Pe,{'coordinator':_0x262bff});case c[_0x450982(0x24c)]:return _0x2d6d1e(Te,{});case c[_0x450982(0x22e)]:return _0x2d6d1e(Ae,{'coordinator':_0x262bff});default:return null;}}function $e(_0x2c0556){const _0xb39eb6=_0x33f3a0,{coordinator:_0x5438de}=_0x2c0556;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0xb39eb6(0x1d8),{'className':_0xb39eb6(0x201),'children':_0xb39eb6(0x20d)}),_0x2d6d1e(_0x5c367e,{'onClick':()=>_0x5438de[_0xb39eb6(0x1fc)](),'children':_0xb39eb6(0x1fe)})]});}function xe(_0x3ca096){const _0x570720=_0x33f3a0,{coordinator:_0x270136}=_0x3ca096;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x570720(0x1d8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x570720(0x21a)}),_0x2d6d1e(_0x5c367e,{'onClick':()=>_0x270136[_0x570720(0x248)](),'children':_0x570720(0x271)})]});}function Pe(_0x2814d4){const _0x4b4f9f=_0x33f3a0,{coordinator:_0x9c82ea}=_0x2814d4;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x4b4f9f(0x1d8),{'className':_0x4b4f9f(0x201),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2d6d1e(_0x5c367e,{'variant':_0x4b4f9f(0x1e7),'onClick':()=>_0x9c82ea[_0x4b4f9f(0x26f)](),'children':_0x4b4f9f(0x23b)})]});}function _0x2e44(_0x3092a4,_0x401c74){const _0x459eeb=_0x459e();return _0x2e44=function(_0x2e445d,_0x53bdb7){_0x2e445d=_0x2e445d-0x1cd;let _0x228b44=_0x459eeb[_0x2e445d];return _0x228b44;},_0x2e44(_0x3092a4,_0x401c74);}function Ae(_0x18efe1){const _0x1bd3fa=_0x33f3a0,{coordinator:_0x36bfab}=_0x18efe1;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x1bd3fa(0x1d8),{'className':_0x1bd3fa(0x201),'children':_0x1bd3fa(0x223)}),_0x2d6d1e(_0x5c367e,{'variant':_0x1bd3fa(0x1d3),'onClick':()=>_0x36bfab[_0x1bd3fa(0x265)](),'children':_0x1bd3fa(0x24f)})]});}function Te(){const _0x1d19e6=_0x33f3a0;return _0x2d6d1e(_0x4d5d84,{'children':_0x1d19e6(0x262)});}function _0x459e(){const _0x319f14=['then','find','UNIVER_LIVE_SHARE_PLUGIN','idle','clear','mutations','_startLiveShareCoordinator','_handleTerminate','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','_collabSession','6548cYaHGT','offline','evenodd','getUnitId','_handleOffline','onStarting','colorChannel1','_injector','type','_config','tryStartPresenting','getInitialStates','Start','UNIVER_UNKNOWN','_handleNewChangeSets','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleNewHost','3897354pFxpWA','current','init','substring','live-share-icon','map','_handleOnline','displayName','get','getTypeOfUnitAdded$','Present\x20this\x20document','following','sessionStatus$','registerComponent','_startFollowing','_mountLiveShare','symbol','data','_liveShareService','getMemberID','NOT_FOLLOWING','getLiveShareCoordinator','FOLLOWING','You\x27re\x20following\x20the\x20presenter','length','currentColor','onRendered','OPERATION','154pAdmzt','complete','presenter','event$','You\x27re\x20presenting\x20the\x20document','string','403bpgUFw','values','LIVESHARE_NEW_HOST','forEach','_reporters','_uiPartsService','4840578mXqWdu','getConfig','getLiveShareCoordinatorSync','PRESENTING','NEW_CHANGESETS','_status$','_startPresenting','_handleOperation','live-share.config','createInstance','executeCommand','defineProperty','random','not-following','20rJFGbN','_configService','Start\x20following','entries','1em','_init','1538675bIhIiP','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','tag','sheet','requireSession','has','idSuffix','button','attrs','stopFollowing','7zJipyD','univer-size-4','next','OFFLINE','getOwnPropertyDescriptor','pluginName','Stop\x20presenting','dispose$','trim','getStatus','send','path','presenting','pipe','ONLINE','use','setConfig','UniverIcon','add','1449531jcXMMh','_status','subscribe','unsubscribe','IDLE','getCurrentTypeOfUnit$','You\x27are\x20offline.','_unitID','9970856joVBuC','stopPresenting','_fetchOperations','unitId','_commandDisposable','registerSharedOperation','_beIdle','HEADER_MENU','dispose','shouldShareOperation','_stopFollowing','startFollowing','univerjs-icon\x20univerjs-icon-','Stop\x20following','LIVESHARE_TERMINATE','params','8CKhPyB','_entities','disposeWithMe','1391772jUAKCs','LIVESHARE_OPERATION','_sharedOperations','_univerInstanceService','set','default','_commandService','stringify','replace','_presenter','div','assign','getTypeOfUnitDisposed$','children','asObservable','status$','defs','SAME_OPERATION_SHARE_INTERVAL','mask','UNIVER_SHEET','xlink:href','getValue','_collabSessionService','http://www.w3.org/2000/svg','toString','text'];_0x459e=function(){return _0x319f14;};return _0x459e();}var Fe=Object[_0x33f3a0(0x24d)],He=(_0x535aa1,_0x2cfb62,_0x20c910,_0x221642)=>{const _0x2e46f8=_0x33f3a0;for(var _0x3eab47=_0x221642>0x1?void 0x0:_0x221642?Fe(_0x2cfb62,_0x20c910):_0x2cfb62,_0x6843ee=_0x535aa1[_0x2e46f8(0x21b)]-0x1,_0x5d6e07;_0x6843ee>=0x0;_0x6843ee--)(_0x5d6e07=_0x535aa1[_0x6843ee])&&(_0x3eab47=_0x5d6e07(_0x3eab47)||_0x3eab47);return _0x3eab47;},A=(_0x2082db,_0x1c9007)=>(_0x3a82e9,_0x5a5420)=>_0x1c9007(_0x3a82e9,_0x5a5420,_0x2082db);let m=class extends _0x123ebc{constructor(_0x155636,_0x29070b){const _0x218fd6=_0x33f3a0;super(),this[_0x218fd6(0x1f9)]=_0x155636,this[_0x218fd6(0x22a)]=_0x29070b,this[_0x218fd6(0x212)]();}['_mountLiveShare'](){const _0x4fd0a9=_0x33f3a0;this[_0x4fd0a9(0x1cd)](this[_0x4fd0a9(0x22a)][_0x4fd0a9(0x210)](_0x221148[_0x4fd0a9(0x26b)],()=>_0x1211a(Le,this[_0x4fd0a9(0x1f9)])));}};m=He([A(0x0,_0x4770f0(_0x52080b)),A(0x1,_0x510518)],m);const ye=_0x33f3a0(0x233),T={};var Ue=Object[_0x33f3a0(0x24d)],Ve=(_0x18732e,_0x239b6f,_0x4a5423,_0x530734)=>{for(var _0x59246b=_0x530734>0x1?void 0x0:_0x530734?Ue(_0x239b6f,_0x4a5423):_0x239b6f,_0x470036=_0x18732e['length']-0x1,_0x4992ab;_0x470036>=0x0;_0x470036--)(_0x4992ab=_0x18732e[_0x470036])&&(_0x59246b=_0x4992ab(_0x59246b)||_0x59246b);return _0x59246b;},je=(_0x139394,_0x19e9e5)=>(_0x3ce7e5,_0x1ae217)=>_0x19e9e5(_0x3ce7e5,_0x1ae217,_0x139394);let I=class extends _0x123ebc{constructor(_0x40e231){super(),this['_liveShareService']=_0x40e231,this['_init']();}[_0x33f3a0(0x23e)](){const _0x225112=_0x33f3a0;[_0x57d381['id'],_0x23a13f['id'],_0x46858f['id']][_0x225112(0x228)](_0x19bbd2=>{const _0x3e5e75=_0x225112;this[_0x3e5e75(0x1cd)](this[_0x3e5e75(0x215)][_0x3e5e75(0x269)](_0x19bbd2));});}};I=Ve([je(0x0,_0x4770f0(L))],I);var Me=Object[_0x33f3a0(0x236)],ke=Object[_0x33f3a0(0x24d)],Ge=(_0x36770f,_0x38d812,_0x45f783)=>_0x38d812 in _0x36770f?Me(_0x36770f,_0x38d812,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45f783}):_0x36770f[_0x38d812]=_0x45f783,We=(_0x5d40fc,_0x1bb5c9,_0x5a2148,_0x279338)=>{const _0x54a75e=_0x33f3a0;for(var _0x3d6b82=_0x279338>0x1?void 0x0:_0x279338?ke(_0x1bb5c9,_0x5a2148):_0x1bb5c9,_0x205263=_0x5d40fc[_0x54a75e(0x21b)]-0x1,_0x428e3b;_0x205263>=0x0;_0x205263--)(_0x428e3b=_0x5d40fc[_0x205263])&&(_0x3d6b82=_0x428e3b(_0x3d6b82)||_0x3d6b82);return _0x3d6b82;},F=(_0x32706a,_0x4d4ec2)=>(_0x3c8d7c,_0x3af40d)=>_0x4d4ec2(_0x3c8d7c,_0x3af40d,_0x32706a),B=(_0x4d41b7,_0x110354,_0x4ca6b3)=>Ge(_0x4d41b7,typeof _0x110354!=_0x33f3a0(0x213)?_0x110354+'':_0x110354,_0x4ca6b3);const Ye=_0x33f3a0(0x1ea);let b=class extends _0x14031e{constructor(_0x229764=T,_0x10c5e9,_0x1f9e0e){const _0x41a4b8=_0x33f3a0;super(),this[_0x41a4b8(0x1fb)]=_0x229764,this[_0x41a4b8(0x1f9)]=_0x10c5e9,this[_0x41a4b8(0x23a)]=_0x1f9e0e;const {..._0x24f8e6}=_0x2fd27e({},T,this[_0x41a4b8(0x1fb)]);this[_0x41a4b8(0x23a)][_0x41a4b8(0x259)](ye,_0x24f8e6);}[_0x33f3a0(0x1f7)](){const _0x2eeb34=_0x33f3a0;_0x293650(this[_0x2eeb34(0x1f9)],_0x57eb35([[L],[S],[I],[m]],this['_config']['override'])),_0x19de09(this[_0x2eeb34(0x1f9)],[[I]]);}[_0x33f3a0(0x21d)](){_0x19de09(this['_injector'],[[m]]);}};B(b,'type',_0x1afb45[_0x33f3a0(0x1ff)]),B(b,_0x33f3a0(0x24e),Ye),b=We([_0x83a676(_0x5984b3),F(0x1,_0x4770f0(_0x52080b)),F(0x2,_0x404a20)],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 _0x5f210e=_0x4205;(function(_0x77f3f4,_0x4391ac){const _0xeb3014=_0x4205,_0x4700f2=_0x77f3f4();while(!![]){try{const _0xa9259d=parseInt(_0xeb3014(0x220))/0x1*(-parseInt(_0xeb3014(0x21a))/0x2)+-parseInt(_0xeb3014(0x1bd))/0x3*(-parseInt(_0xeb3014(0x205))/0x4)+parseInt(_0xeb3014(0x1dd))/0x5+-parseInt(_0xeb3014(0x1a1))/0x6+parseInt(_0xeb3014(0x1ec))/0x7*(-parseInt(_0xeb3014(0x1ae))/0x8)+-parseInt(_0xeb3014(0x1e1))/0x9+-parseInt(_0xeb3014(0x22a))/0xa*(-parseInt(_0xeb3014(0x1fd))/0xb);if(_0xa9259d===_0x4391ac)break;else _0x4700f2['push'](_0x4700f2['shift']());}catch(_0x429913){_0x4700f2['push'](_0x4700f2['shift']());}}}(_0x6842,0x194f6));var J=Object[_0x5f210e(0x222)],K=(_0x1ca8dc,_0x31bb47,_0x414c95)=>_0x31bb47 in _0x1ca8dc?J(_0x1ca8dc,_0x31bb47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x414c95}):_0x1ca8dc[_0x31bb47]=_0x414c95,u=(_0x4dc91b,_0x33d0d7,_0x10facd)=>K(_0x4dc91b,typeof _0x33d0d7!='symbol'?_0x33d0d7+'':_0x33d0d7,_0x10facd);import{Disposable as _0x4347cc,toDisposable as _0x4a1250,IUniverInstanceService as _0x29aa4f,Inject as _0x4937f2,Injector as _0x179f2d,IConfigService as _0x333494,ICommandService as _0x422603,RxDisposable as _0xbb3b5b,UniverInstanceType as _0x4cded3,DisposableCollection as _0x42a077,CommandType as _0x1dfff3,DependentOn as _0x190b72,Plugin as _0x406235,merge as _0x2df91a,registerDependencies as _0x173359,mergeOverrideWithDependencies as _0x20d4d6,touchDependencies as _0x1d822a}from'@univerjs/core';import{useDependency as _0x1394d4,useObservable as _0x30edbe,IUIPartsService as _0x6bedd5,BuiltInUIPart as _0x102999,connectInjector as _0x1ca43}from'@univerjs/ui';import{jsx as _0x28f4b5,jsxs as _0x526545,Fragment as _0x3d9444}from'react/jsx-runtime';import{Dropdown as _0x12b65d,clsx as _0x403356,Button as _0x36a71c}from'@univerjs/design';function _0x6842(){const _0x237418=['evenodd','dispose$','645612rTxkYB','_startLiveShareCoordinator','requireSession','_unitID','defs','_sharedOperations','toString','getMemberID','_handleTerminate','params','fill','stringify','use','248JysBoL','LIVESHARE_TERMINATE','getValue','values','getLiveShareCoordinatorSync','getOwnPropertyDescriptor','OFFLINE','LIVESHARE_REQUEST_HOST','_handleOperation','map','LIVESHARE_NEW_HOST','getCurrentTypeOfUnit$','_uiPartsService','get','stopPresenting','2634wesgnK','_fetchOperations','setConfig','children','following','_commandDisposable','displayName','svg','idle','url(#$1','disposeWithMe','colorChannel1','_handleNewChangeSets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleNewHost','You\x27re\x20following\x20the\x20presenter','Stop\x20following','currentColor','init','live-share-icon','delete','SAME_OPERATION_SHARE_INTERVAL','none','startFollowing','_beIdle','add','_stopPresenting','reverse','data','forEach','string','_init','1028825bkmOJp','getStatus','onCommandExecuted','subscribe','1681983CFciHU','offline','pipe','xlink:href','_config','executeCommand','from','_stopFollowing','entries','mask','asObservable','36806PgwcLz','sessionStatus$','Stop\x20presenting','_injector','IDLE','unitId','_univerInstanceService','includes','_liveShareService','replace','status$','tag','symbol','Start','button','_handleOffline','complete','817872BWPviN','assign','Present\x20this\x20document','operations','http://www.w3.org/2000/svg','next','_presenter','getLiveShareCoordinator','128czdKqw','div','_configService','onStarting','OPERATION','has','tryStartPresenting','substring','FOLLOWING','trim','UNIVER_SHEET','registerSharedOperation','random','univer-size-4','_commandService','shouldShareOperation','_startFollowing','stopFollowing','_collabSession','_handleOnline','_startPresenting','16czMjLw','You\x27re\x20presenting\x20the\x20document','createInstance','not-following','getConfig','1em','14852zACCQY','_mountLiveShare','defineProperty','memberID','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','event$','default','idSuffix','0\x200\x2017\x2017','registerInitialStateReporter','60drqWGr','pluginName','univer-mb-3\x20univer-w-full\x20univer-text-sm','getInitialStates','_reporters','set','type','send','LIVESHARE_OPERATION','_status$','PRESENTING','_status','clear','defIds','current','_entities','attrs','LiveShareIcon','getTypeOfUnitAdded$','presenting','length','sheet','dispose','presenter','univerjs-icon\x20univerjs-icon-','HEADER_MENU','getUnitId'];_0x6842=function(){return _0x237418;};return _0x6842();}import{useRef as _0x31ae4f,createElement as _0x3b18d7,forwardRef as _0x2f499a,useState as _0x1f1cf5,useEffect as _0x109cfc}from'react';import{CollaborationEvent as _0x46ef97,parseProtocolChangeset as _0x34a695}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x59cabe,SessionStatus as _0x51023d,UniverCollaborationClientPlugin as _0x363746}from'@univerjs-pro/collaboration-client';function _0x4205(_0x1e8f61,_0x18387b){_0x1e8f61=_0x1e8f61-0x19d;const _0x684275=_0x6842();let _0x4205ef=_0x684275[_0x1e8f61];return _0x4205ef;}import{InsertSheetMutation as _0x19729f,SetWorksheetActiveOperation as _0x2e84d3}from'@univerjs/sheets';import{BehaviorSubject as _0x28b056,Subject as _0x4f0fd5}from'rxjs';import{takeUntil as _0x2e8cf2,throttleTime as _0x258f82}from'rxjs/operators';import{SetZoomRatioOperation as _0x31f67b,SetScrollOperation as _0x487be7}from'@univerjs/sheets-ui';function k({ref:_0x9f714e,..._0x49d3e0}){const _0x3651f3=_0x5f210e,{icon:_0x53a727,id:_0x478e97,className:_0x5f4c11,extend:_0x9e631,..._0x30ac5e}=_0x49d3e0,_0x56d5d3=(_0x3651f3(0x242)+_0x478e97+'\x20'+(_0x5f4c11||''))[_0x3651f3(0x20e)](),_0x3caaf1=_0x31ae4f('_'+Oe());return G(_0x53a727,''+_0x478e97,{'defIds':_0x53a727[_0x3651f3(0x237)],'idSuffix':_0x3caaf1[_0x3651f3(0x238)]},{'ref':_0x9f714e,'className':_0x56d5d3,..._0x30ac5e},_0x9e631);}function G(_0x29bf56,_0x478156,_0x2476ce,_0x1b3560,_0x5d6aa6){const _0x2c26e7=_0x5f210e;return _0x3b18d7(_0x29bf56[_0x2c26e7(0x1f7)],{'key':_0x478156,...be(_0x29bf56,_0x2476ce,_0x5d6aa6),..._0x1b3560},(Ee(_0x29bf56,_0x2476ce)['children']||[])[_0x2c26e7(0x1b7)]((_0x419c69,_0x58ded4)=>G(_0x419c69,_0x478156+'-'+_0x29bf56[_0x2c26e7(0x1f7)]+'-'+_0x58ded4,_0x2476ce,void 0x0,_0x5d6aa6)));}function be(_0x3a03ed,_0x40135b,_0x25314e){const _0x24acfd=_0x5f210e,_0x42387f={..._0x3a03ed[_0x24acfd(0x23a)]};_0x25314e!=null&&_0x25314e[_0x24acfd(0x1c8)]&&_0x42387f[_0x24acfd(0x1ab)]===_0x24acfd(0x1c8)&&(_0x42387f[_0x24acfd(0x1ab)]=_0x25314e[_0x24acfd(0x1c8)]),_0x3a03ed[_0x24acfd(0x1f7)]===_0x24acfd(0x1ea)&&_0x42387f['id']&&(_0x42387f['id']=_0x42387f['id']+_0x40135b[_0x24acfd(0x227)]),Object['entries'](_0x42387f)[_0x24acfd(0x1da)](([_0x58dc04,_0x5a7633])=>{const _0x289b33=_0x24acfd;_0x58dc04===_0x289b33(0x1ea)&&typeof _0x5a7633==_0x289b33(0x1db)&&(_0x42387f[_0x58dc04]=_0x5a7633[_0x289b33(0x1f5)](/url\(#(.*)\)/,_0x289b33(0x1c6)+_0x40135b[_0x289b33(0x227)]+')'));});const {defIds:_0xc7ff80}=_0x40135b;return!_0xc7ff80||_0xc7ff80[_0x24acfd(0x23e)]===0x0||(_0x3a03ed['tag']===_0x24acfd(0x1ad)&&_0x42387f[_0x24acfd(0x1e4)]&&(_0x42387f[_0x24acfd(0x1e4)]=_0x42387f[_0x24acfd(0x1e4)]+_0x40135b[_0x24acfd(0x227)]),Object[_0x24acfd(0x1e9)](_0x42387f)[_0x24acfd(0x1da)](([_0x745b18,_0x31b2f9])=>{const _0x39a2ea=_0x24acfd;typeof _0x31b2f9==_0x39a2ea(0x1db)&&(_0x42387f[_0x745b18]=_0x31b2f9['replace'](/url\(#(.*)\)/,'url(#$1'+_0x40135b[_0x39a2ea(0x227)]+')'));})),_0x42387f;}function Ee(_0x2053d5,_0x463b30){const _0x1a8588=_0x5f210e;var _0x19393e;const {defIds:_0x477302}=_0x463b30;return!_0x477302||_0x477302[_0x1a8588(0x23e)]===0x0?_0x2053d5:_0x2053d5[_0x1a8588(0x1f7)]===_0x1a8588(0x1a5)&&((_0x19393e=_0x2053d5[_0x1a8588(0x1c0)])!=null&&_0x19393e[_0x1a8588(0x23e)])?{..._0x2053d5,'children':_0x2053d5[_0x1a8588(0x1c0)][_0x1a8588(0x1b7)](_0x46760c=>typeof _0x46760c['attrs']['id']=='string'&&_0x477302&&_0x477302[_0x1a8588(0x1f3)](_0x46760c[_0x1a8588(0x23a)]['id'])?{..._0x46760c,'attrs':{..._0x46760c[_0x1a8588(0x23a)],'id':_0x46760c[_0x1a8588(0x23a)]['id']+_0x463b30[_0x1a8588(0x227)]}}:_0x46760c)}:_0x2053d5;}function Oe(){const _0x55c2cd=_0x5f210e;return Math[_0x55c2cd(0x211)]()[_0x55c2cd(0x1a7)](0x24)[_0x55c2cd(0x20c)](0x2,0x8);}k[_0x5f210e(0x1c3)]='UniverIcon';const we={'tag':_0x5f210e(0x1c4),'attrs':{'xmlns':_0x5f210e(0x201),'fill':_0x5f210e(0x1d3),'viewBox':_0x5f210e(0x228),'width':_0x5f210e(0x21f),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5f210e(0x1ce),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x5f210e(0x224),'fillRule':'evenodd','clipRule':_0x5f210e(0x19f)}}]},W=_0x2f499a(function(_0x5a2083,_0x5aff48){const _0x620a94=_0x5f210e;return _0x3b18d7(k,Object[_0x620a94(0x1fe)]({},_0x5a2083,{'id':_0x620a94(0x1d0),'ref':_0x5aff48,'icon':we}));});W[_0x5f210e(0x1c3)]=_0x5f210e(0x23b);class L extends _0x4347cc{constructor(){const _0x418bd8=_0x5f210e;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x418bd8(0x22e),new Set());}[_0x5f210e(0x210)](_0x5cad0d){const _0x3bf3a0=_0x5f210e;return this[_0x3bf3a0(0x1a6)]['add'](_0x5cad0d),_0x4a1250(()=>this[_0x3bf3a0(0x1a6)][_0x3bf3a0(0x1d1)](_0x5cad0d));}[_0x5f210e(0x229)](_0x4cfa56){const _0x585956=_0x5f210e;return this['_reporters'][_0x585956(0x1d6)](_0x4cfa56),_0x4a1250(()=>this[_0x585956(0x22e)][_0x585956(0x1d1)](_0x4cfa56));}[_0x5f210e(0x214)](_0x4e598d){const _0x733095=_0x5f210e;return this[_0x733095(0x1a6)][_0x733095(0x20a)](_0x4e598d);}[_0x5f210e(0x22d)](_0x1e402e){const _0x4f558b=_0x5f210e;return Array[_0x4f558b(0x1e7)](this['_reporters'])[_0x4f558b(0x1b7)](_0x5ca0a4=>_0x5ca0a4(_0x1e402e));}}var Ne=Object[_0x5f210e(0x1b3)],Y=(_0x25be2c,_0x116969,_0x2f9838,_0x1104ad)=>{const _0x450e1f=_0x5f210e;for(var _0x59d459=_0x1104ad>0x1?void 0x0:_0x1104ad?Ne(_0x116969,_0x2f9838):_0x116969,_0x3354b8=_0x25be2c[_0x450e1f(0x23e)]-0x1,_0x130364;_0x3354b8>=0x0;_0x3354b8--)(_0x130364=_0x25be2c[_0x3354b8])&&(_0x59d459=_0x130364(_0x59d459)||_0x59d459);return _0x59d459;},_=(_0x196aba,_0x1752f7)=>(_0x42bd81,_0x53426b)=>_0x1752f7(_0x42bd81,_0x53426b,_0x196aba);let S=class extends _0xbb3b5b{constructor(_0x3a718d,_0x1967bc,_0x1736fd){const _0x3610ef=_0x5f210e;super(),u(this,_0x3610ef(0x239),new Map()),(this[_0x3610ef(0x1f2)]=_0x3a718d,this['_injector']=_0x1967bc,this['_collabSessionService']=_0x1736fd,this[_0x3610ef(0x1dc)]());}async[_0x5f210e(0x204)](_0x7e5df5){const _0x2fe540=_0x5f210e;return this[_0x2fe540(0x239)][_0x2fe540(0x20a)](_0x7e5df5)||await this[_0x2fe540(0x1a2)](_0x7e5df5),this[_0x2fe540(0x239)][_0x2fe540(0x1bb)](_0x7e5df5);}[_0x5f210e(0x1b2)](_0x5a6fbe){const _0x456e44=_0x5f210e;var _0x1275b4;return(_0x1275b4=this[_0x456e44(0x239)]['get'](_0x5a6fbe))!=null?_0x1275b4:null;}['_init'](){const _0x305aca=_0x5f210e;this[_0x305aca(0x1f2)][_0x305aca(0x23c)](_0x4cded3[_0x305aca(0x20f)])[_0x305aca(0x1e3)](_0x2e8cf2(this[_0x305aca(0x1a0)]))[_0x305aca(0x1e0)](async _0x26d6b4=>{const _0x93351b=_0x305aca,_0x11661b=_0x26d6b4[_0x93351b(0x19e)]();this['_entities']['has'](_0x11661b)||this[_0x93351b(0x1a2)](_0x11661b);}),this[_0x305aca(0x1f2)]['getTypeOfUnitDisposed$'](_0x4cded3[_0x305aca(0x20f)])[_0x305aca(0x1e3)](_0x2e8cf2(this[_0x305aca(0x1a0)]))[_0x305aca(0x1e0)](_0x1b3982=>{const _0x1659d5=_0x305aca,_0x3e0bf7=_0x1b3982[_0x1659d5(0x19e)](),_0xa5f47c=this[_0x1659d5(0x239)]['get'](_0x3e0bf7);_0xa5f47c==null||_0xa5f47c['dispose']();});}async[_0x5f210e(0x1a2)](_0x2791ef){const _0x148183=_0x5f210e,_0xf25f8d=await this['_collabSessionService'][_0x148183(0x1a3)](_0x2791ef),_0x546f28=this[_0x148183(0x1ef)][_0x148183(0x21c)](N,_0x2791ef,_0xf25f8d);return _0x546f28[_0x148183(0x1cf)](),this[_0x148183(0x239)][_0x148183(0x22f)](_0x2791ef,_0x546f28),_0x546f28;}};S=Y([_(0x0,_0x29aa4f),_(0x1,_0x4937f2(_0x179f2d)),_(0x2,_0x4937f2(_0x59cabe))],S);var c=(_0xc00f77=>(_0xc00f77['OFFLINE']=_0x5f210e(0x1e2),_0xc00f77[_0x5f210e(0x1f0)]=_0x5f210e(0x1c5),_0xc00f77[_0x5f210e(0x20d)]=_0x5f210e(0x1c1),_0xc00f77['NOT_FOLLOWING']='not-following',_0xc00f77[_0x5f210e(0x234)]=_0x5f210e(0x23d),_0xc00f77))(c||{});const Ce=_0x5f210e(0x1d2),De=0xc8;let N=class extends _0xbb3b5b{constructor(_0x174e05,_0x3780f3,_0x1e15f4,_0xddd3c6,_0x500fc0){const _0x574a1a=_0x5f210e;super(),u(this,_0x574a1a(0x233),new _0x28b056(_0x574a1a(0x1c5))),u(this,_0x574a1a(0x1f6),this[_0x574a1a(0x233)][_0x574a1a(0x1eb)]()),u(this,_0x574a1a(0x1dc),!0x1),u(this,'_commandDisposable',null),u(this,_0x574a1a(0x203),null),(this[_0x574a1a(0x1a4)]=_0x174e05,this[_0x574a1a(0x217)]=_0x3780f3,this[_0x574a1a(0x207)]=_0x1e15f4,this[_0x574a1a(0x1f4)]=_0xddd3c6,this[_0x574a1a(0x213)]=_0x500fc0);}get[_0x5f210e(0x235)](){const _0x5693ff=_0x5f210e;return this[_0x5693ff(0x233)][_0x5693ff(0x1b0)]();}[_0x5f210e(0x240)](){const _0x24ca52=_0x5f210e;var _0x18d3e8;(_0x18d3e8=this[_0x24ca52(0x1c2)])==null||_0x18d3e8[_0x24ca52(0x240)](),this[_0x24ca52(0x233)][_0x24ca52(0x202)](_0x24ca52(0x1c5)),this[_0x24ca52(0x233)][_0x24ca52(0x1fc)]();}[_0x5f210e(0x1de)](){const _0x5a41bb=_0x5f210e;return this[_0x5a41bb(0x235)];}[_0x5f210e(0x1cf)](){const _0x471ed=_0x5f210e;this[_0x471ed(0x1dc)]||(this[_0x471ed(0x1dc)]=!0x0,this['_collabSession'][_0x471ed(0x1ed)]['pipe'](_0x2e8cf2(this[_0x471ed(0x1a0)]))['subscribe'](_0x4c43b0=>{const _0x15958d=_0x471ed;switch(_0x4c43b0){case _0x51023d[_0x15958d(0x1b4)]:this[_0x15958d(0x1fb)]();break;case _0x51023d['ONLINE']:this[_0x15958d(0x218)]();break;}}),this[_0x471ed(0x217)][_0x471ed(0x225)][_0x471ed(0x1e3)](_0x2e8cf2(this[_0x471ed(0x1a0)]))[_0x471ed(0x1e0)](_0xc530e6=>{const _0x286662=_0x471ed,{eventID:_0x5d6772}=_0xc530e6;switch(_0x5d6772){case _0x46ef97[_0x286662(0x1b8)]:this[_0x286662(0x1cb)](_0xc530e6);break;case _0x46ef97[_0x286662(0x232)]:this[_0x286662(0x1b6)](_0xc530e6);break;case _0x46ef97[_0x286662(0x1af)]:this[_0x286662(0x1a9)]();break;case _0x46ef97['NEW_CHANGESETS']:this[_0x286662(0x1c9)](_0xc530e6);break;}}));}[_0x5f210e(0x20b)](){const _0x402c77=_0x5f210e;this[_0x402c77(0x217)]['send']({'eventID':_0x46ef97[_0x402c77(0x1b5)],'data':{'unitID':this[_0x402c77(0x1a4)],'userID':this[_0x402c77(0x217)][_0x402c77(0x1a8)]()}},this[_0x402c77(0x1a4)]);}[_0x5f210e(0x1bc)](){const _0x35c601=_0x5f210e;this[_0x35c601(0x235)]===_0x35c601(0x23d)&&(this[_0x35c601(0x233)][_0x35c601(0x202)]('idle'),this[_0x35c601(0x217)][_0x35c601(0x231)]({'eventID':_0x46ef97[_0x35c601(0x1af)],'data':{'unitID':this[_0x35c601(0x1a4)]}},this['_unitID']));}[_0x5f210e(0x1d4)](){const _0x5be0c6=_0x5f210e;this['_status']==='not-following'&&(this['_status$'][_0x5be0c6(0x202)](_0x5be0c6(0x1c1)),this[_0x5be0c6(0x215)]());}[_0x5f210e(0x216)](){const _0x4e3a41=_0x5f210e;this[_0x4e3a41(0x235)]===_0x4e3a41(0x1c1)&&this[_0x4e3a41(0x1e8)]();}[_0x5f210e(0x1cb)](_0x39f759){const _0x2d28ce=_0x5f210e,{presenter:_0x49be82}=_0x39f759[_0x2d28ce(0x1d9)],_0x4a0661=this[_0x2d28ce(0x217)][_0x2d28ce(0x1a8)]();this['_presenter']=_0x49be82,_0x49be82===_0x4a0661?(this[_0x2d28ce(0x1e8)](),this[_0x2d28ce(0x219)]()):this[_0x2d28ce(0x235)]!=='not-following'&&(this['_stopPresenting'](),this[_0x2d28ce(0x215)]());}[_0x5f210e(0x1be)](){const _0x1f4e49=_0x5f210e,_0x24e6b9={'eventID':_0x46ef97['LIVESHARE_FETCH_OPERATIONS']};this[_0x1f4e49(0x217)][_0x1f4e49(0x231)](_0x24e6b9,this[_0x1f4e49(0x1a4)]);}['_handleTerminate'](){const _0x1c59a8=_0x5f210e;this[_0x1c59a8(0x203)]=null,this[_0x1c59a8(0x235)]!==_0x1c59a8(0x23d)&&this[_0x1c59a8(0x1d5)]();}[_0x5f210e(0x1c9)](_0x4ee355){const _0x46b9fb=_0x5f210e;if(this[_0x46b9fb(0x235)]===_0x46b9fb(0x1c1)&&this[_0x46b9fb(0x203)]===_0x4ee355[_0x46b9fb(0x1d9)][_0x46b9fb(0x223)]){const _0x5ad1c6=_0x34a695(_0x4ee355[_0x46b9fb(0x1d9)])['mutations'][_0x46b9fb(0x1d8)]()['find'](_0xd529e3=>_0xd529e3['id']===_0x19729f['id']);if(_0x5ad1c6){const _0x1fe012=_0x5ad1c6[_0x46b9fb(0x1aa)][_0x46b9fb(0x1f1)],_0x1cb5a0=_0x5ad1c6[_0x46b9fb(0x1aa)][_0x46b9fb(0x23f)]['id'];setTimeout(()=>{const _0xa8eec5=_0x46b9fb;this[_0xa8eec5(0x213)][_0xa8eec5(0x1e6)](_0x2e84d3['id'],{'unitId':_0x1fe012,'subUnitId':_0x1cb5a0},{'fromCollab':!0x0});});}}}[_0x5f210e(0x219)](){const _0x5155dc=_0x5f210e;this['_status$'][_0x5155dc(0x202)]('presenting');const _0x4a7a16=new Map(),_0x3bf5c4=this['_commandDisposable']=new _0x42a077();_0x3bf5c4[_0x5155dc(0x1d6)](_0x4a1250(()=>{const _0x44c526=_0x5155dc;_0x4a7a16[_0x44c526(0x1da)](_0x48ae2d=>_0x48ae2d[_0x44c526(0x1fc)]()),_0x4a7a16[_0x44c526(0x236)]();})),_0x3bf5c4[_0x5155dc(0x1d6)](this['_commandService'][_0x5155dc(0x1df)](_0x9cf3d8=>{const _0x313a1f=_0x5155dc;var _0x20ad03;if(_0x9cf3d8[_0x313a1f(0x230)]!==_0x1dfff3[_0x313a1f(0x209)]||!this['_liveShareService'][_0x313a1f(0x214)](_0x9cf3d8['id']))return;const {id:_0x3e7b2b}=_0x9cf3d8;let _0x1aed76;_0x4a7a16['has'](_0x3e7b2b)?_0x1aed76=_0x4a7a16['get'](_0x3e7b2b):(_0x1aed76=new _0x4f0fd5(),_0x4a7a16[_0x313a1f(0x22f)](_0x3e7b2b,_0x1aed76),_0x1aed76[_0x313a1f(0x1e3)](_0x258f82((_0x20ad03=this['_configService'][_0x313a1f(0x21e)](Ce))!=null?_0x20ad03:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x313a1f(0x1e0)](_0x1d35fb=>{const _0x198ec0=_0x313a1f;this[_0x198ec0(0x217)]['send']({'eventID':_0x46ef97[_0x198ec0(0x232)],'data':{'unitID':this[_0x198ec0(0x1a4)],'operations':{[_0x1d35fb['id']]:{'id':_0x1d35fb['id'],'params':JSON[_0x198ec0(0x1ac)](_0x1d35fb[_0x198ec0(0x1aa)])}}}},this[_0x198ec0(0x1a4)]);})),_0x1aed76['next'](_0x9cf3d8);})),this[_0x5155dc(0x1f4)]['getInitialStates'](this[_0x5155dc(0x1a4)])[_0x5155dc(0x1da)](_0x35b374=>this[_0x5155dc(0x217)][_0x5155dc(0x231)]({'eventID':_0x46ef97['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5155dc(0x1a4)],'operations':{[_0x35b374['id']]:{'id':_0x35b374['id'],'params':JSON[_0x5155dc(0x1ac)](_0x35b374['params'])}}}},this['_unitID']));}[_0x5f210e(0x1d7)](){const _0x366330=_0x5f210e;var _0x50a4fc;this['_status$'][_0x366330(0x202)]('idle'),(_0x50a4fc=this[_0x366330(0x1c2)])==null||_0x50a4fc[_0x366330(0x240)](),this[_0x366330(0x1c2)]=null;}[_0x5f210e(0x215)](){const _0x309dc9=_0x5f210e;var _0x159c0b;(_0x159c0b=this[_0x309dc9(0x1c2)])==null||_0x159c0b[_0x309dc9(0x240)](),this[_0x309dc9(0x233)][_0x309dc9(0x202)]('following');}['_beIdle'](){const _0x392d64=_0x5f210e;var _0x1965f5;this[_0x392d64(0x233)][_0x392d64(0x202)]('idle'),(_0x1965f5=this[_0x392d64(0x1c2)])==null||_0x1965f5['dispose'](),this['_commandDisposable']=null;}[_0x5f210e(0x1e8)](){const _0x27e1dd=_0x5f210e;var _0x13d45b;this[_0x27e1dd(0x233)][_0x27e1dd(0x202)](_0x27e1dd(0x21d)),(_0x13d45b=this[_0x27e1dd(0x1c2)])==null||_0x13d45b['dispose']();}['_handleOperation'](_0xd034e0){const _0x3e6311=_0x5f210e;if([_0x3e6311(0x23d),_0x3e6311(0x21d),_0x3e6311(0x1e2)][_0x3e6311(0x1f3)](this[_0x3e6311(0x235)])||!_0xd034e0[_0x3e6311(0x1d9)][_0x3e6311(0x241)]||_0xd034e0[_0x3e6311(0x1d9)]['presenter']===this[_0x3e6311(0x217)][_0x3e6311(0x1a8)]())return;this['_status']===_0x3e6311(0x1c5)&&this[_0x3e6311(0x215)]();const _0x23361d=_0xd034e0[_0x3e6311(0x1d9)][_0x3e6311(0x200)];Object[_0x3e6311(0x1b1)](_0x23361d)['forEach'](_0x22898a=>{const _0x2812f2=_0x3e6311;this['_commandService'][_0x2812f2(0x1e6)](_0x22898a['id'],_0x22898a['params']?JSON['parse'](_0x22898a[_0x2812f2(0x1aa)]):null,{'fromCollab':!0x0});});}[_0x5f210e(0x1fb)](){const _0x3250d9=_0x5f210e;var _0x33c312;this[_0x3250d9(0x233)][_0x3250d9(0x202)](_0x3250d9(0x1e2)),(_0x33c312=this[_0x3250d9(0x1c2)])==null||_0x33c312[_0x3250d9(0x240)]();}['_handleOnline'](){const _0x2a94c3=_0x5f210e;this[_0x2a94c3(0x233)][_0x2a94c3(0x202)](_0x2a94c3(0x1c5)),this[_0x2a94c3(0x1be)]();}};N=Y([_(0x2,_0x333494),_(0x3,_0x4937f2(L)),_(0x4,_0x422603)],N);function Le(){const _0x58f66f=_0x5f210e,_0x228b58=_0x1394d4(S),_0x5bd705=_0x1394d4(_0x29aa4f),_0xfa6d6f=_0x30edbe(()=>_0x5bd705[_0x58f66f(0x1b9)](_0x4cded3[_0x58f66f(0x20f)]),void 0x0,!0x1,[]),[_0x408d08,_0x33fa29]=_0x1f1cf5(null),[_0x3eaa33,_0xd1d095]=_0x1f1cf5(c[_0x58f66f(0x1f0)]),_0x1a2e98=_0x31ae4f(null);return _0x109cfc(()=>(_0xfa6d6f&&_0x228b58['getLiveShareCoordinator'](_0xfa6d6f[_0x58f66f(0x19e)]())['then'](_0x4294a4=>{const _0x3473ca=_0x58f66f;_0x33fa29(_0x4294a4),_0x1a2e98['current']=_0x4294a4['status$'][_0x3473ca(0x1e0)](_0x2ec87b=>{_0xd1d095(_0x2ec87b);});}),()=>{const _0x10148f=_0x58f66f;var _0x2c46d5;(_0x2c46d5=_0x1a2e98[_0x10148f(0x238)])==null||_0x2c46d5['unsubscribe'](),_0x1a2e98['current']=null;}),[_0xfa6d6f,_0x228b58]),_0x408d08?_0x28f4b5(_0x12b65d,{'align':'end','disabled':_0x3eaa33===c[_0x58f66f(0x1b4)],'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':_0x28f4b5(Re,{'status':_0x3eaa33,'coordinator':_0x408d08}),'children':_0x28f4b5('button',{'className':_0x403356(_0x58f66f(0x1ca),{'univer-cursor-not-allowed':_0x3eaa33===c[_0x58f66f(0x1b4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3eaa33!==c[_0x58f66f(0x1b4)]}),'type':_0x58f66f(0x1fa),'children':_0x28f4b5(W,{'className':_0x58f66f(0x212)})})}):null;}function Re(_0x8f9d25){const _0x202da3=_0x5f210e,{status:_0x3ebe08,coordinator:_0x18e96f}=_0x8f9d25;switch(_0x3ebe08){case c[_0x202da3(0x1f0)]:return _0x28f4b5($e,{'coordinator':_0x18e96f});case c[_0x202da3(0x20d)]:return _0x28f4b5(xe,{'coordinator':_0x18e96f});case c['NOT_FOLLOWING']:return _0x28f4b5(Pe,{'coordinator':_0x18e96f});case c[_0x202da3(0x1b4)]:return _0x28f4b5(Te,{});case c[_0x202da3(0x234)]:return _0x28f4b5(Ae,{'coordinator':_0x18e96f});default:return null;}}function $e(_0x12c38f){const _0x5550f9=_0x5f210e,{coordinator:_0x4cab37}=_0x12c38f;return _0x526545(_0x3d9444,{'children':[_0x28f4b5('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5550f9(0x1ff)}),_0x28f4b5(_0x36a71c,{'onClick':()=>_0x4cab37['tryStartPresenting'](),'children':_0x5550f9(0x1f9)})]});}function xe(_0x179491){const _0x36c323=_0x5f210e,{coordinator:_0x215503}=_0x179491;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0x36c323(0x206),{'className':_0x36c323(0x22c),'children':_0x36c323(0x1cc)}),_0x28f4b5(_0x36a71c,{'onClick':()=>_0x215503[_0x36c323(0x216)](),'children':_0x36c323(0x1cd)})]});}function Pe(_0x280386){const _0x55c36c=_0x5f210e,{coordinator:_0x1dda82}=_0x280386;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0x55c36c(0x206),{'className':_0x55c36c(0x22c),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x28f4b5(_0x36a71c,{'variant':'text','onClick':()=>_0x1dda82[_0x55c36c(0x1d4)](),'children':'Start\x20following'})]});}function Ae(_0x556d30){const _0xd99098=_0x5f210e,{coordinator:_0x3b5a07}=_0x556d30;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0xd99098(0x206),{'className':_0xd99098(0x22c),'children':_0xd99098(0x21b)}),_0x28f4b5(_0x36a71c,{'variant':_0xd99098(0x226),'onClick':()=>_0x3b5a07[_0xd99098(0x1bc)](),'children':_0xd99098(0x1ee)})]});}function Te(){return _0x28f4b5(_0x3d9444,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x5f210e(0x1b3)],He=(_0x614e67,_0x5b7117,_0x310441,_0x18f6a7)=>{const _0x56789a=_0x5f210e;for(var _0x1a0ca4=_0x18f6a7>0x1?void 0x0:_0x18f6a7?Fe(_0x5b7117,_0x310441):_0x5b7117,_0x26e932=_0x614e67[_0x56789a(0x23e)]-0x1,_0x17ea06;_0x26e932>=0x0;_0x26e932--)(_0x17ea06=_0x614e67[_0x26e932])&&(_0x1a0ca4=_0x17ea06(_0x1a0ca4)||_0x1a0ca4);return _0x1a0ca4;},A=(_0x573a5d,_0x2ee4f2)=>(_0x212a65,_0x1ff948)=>_0x2ee4f2(_0x212a65,_0x1ff948,_0x573a5d);let m=class extends _0x4347cc{constructor(_0x6072c,_0x57d4f2){const _0x210867=_0x5f210e;super(),this[_0x210867(0x1ef)]=_0x6072c,this['_uiPartsService']=_0x57d4f2,this[_0x210867(0x221)]();}[_0x5f210e(0x221)](){const _0x4af5d3=_0x5f210e;this['disposeWithMe'](this[_0x4af5d3(0x1ba)]['registerComponent'](_0x102999[_0x4af5d3(0x19d)],()=>_0x1ca43(Le,this[_0x4af5d3(0x1ef)])));}};m=He([A(0x0,_0x4937f2(_0x179f2d)),A(0x1,_0x6bedd5)],m);const ye='live-share.config',T={};var Ue=Object[_0x5f210e(0x1b3)],Ve=(_0x98c8b1,_0x16017f,_0x47cb7f,_0x4ff2bb)=>{const _0x2e1b2c=_0x5f210e;for(var _0x3a7015=_0x4ff2bb>0x1?void 0x0:_0x4ff2bb?Ue(_0x16017f,_0x47cb7f):_0x16017f,_0x1cadf3=_0x98c8b1[_0x2e1b2c(0x23e)]-0x1,_0x4ef1be;_0x1cadf3>=0x0;_0x1cadf3--)(_0x4ef1be=_0x98c8b1[_0x1cadf3])&&(_0x3a7015=_0x4ef1be(_0x3a7015)||_0x3a7015);return _0x3a7015;},je=(_0x5abc9e,_0x3a0755)=>(_0x2b4d78,_0x52240c)=>_0x3a0755(_0x2b4d78,_0x52240c,_0x5abc9e);let I=class extends _0x4347cc{constructor(_0x2be0e9){const _0x4d5ecb=_0x5f210e;super(),this[_0x4d5ecb(0x1f4)]=_0x2be0e9,this['_init']();}['_init'](){const _0x47349f=_0x5f210e;[_0x31f67b['id'],_0x487be7['id'],_0x2e84d3['id']][_0x47349f(0x1da)](_0x122e40=>{const _0x23a3af=_0x47349f;this[_0x23a3af(0x1c7)](this['_liveShareService'][_0x23a3af(0x210)](_0x122e40));});}};I=Ve([je(0x0,_0x4937f2(L))],I);var Me=Object[_0x5f210e(0x222)],ke=Object[_0x5f210e(0x1b3)],Ge=(_0x4b9c9a,_0x4fa621,_0x2ad77d)=>_0x4fa621 in _0x4b9c9a?Me(_0x4b9c9a,_0x4fa621,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ad77d}):_0x4b9c9a[_0x4fa621]=_0x2ad77d,We=(_0x3ad683,_0x35e603,_0x35b713,_0x44d90c)=>{for(var _0x536587=_0x44d90c>0x1?void 0x0:_0x44d90c?ke(_0x35e603,_0x35b713):_0x35e603,_0x3d1a5=_0x3ad683['length']-0x1,_0x172b5a;_0x3d1a5>=0x0;_0x3d1a5--)(_0x172b5a=_0x3ad683[_0x3d1a5])&&(_0x536587=_0x172b5a(_0x536587)||_0x536587);return _0x536587;},F=(_0x3f5441,_0x36e944)=>(_0xde85b,_0x4e3465)=>_0x36e944(_0xde85b,_0x4e3465,_0x3f5441),B=(_0x1b039e,_0x2685d0,_0x16bc47)=>Ge(_0x1b039e,typeof _0x2685d0!=_0x5f210e(0x1f8)?_0x2685d0+'':_0x2685d0,_0x16bc47);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x406235{constructor(_0x110357=T,_0x154dcc,_0x428787){const _0x480e9b=_0x5f210e;super(),this[_0x480e9b(0x1e5)]=_0x110357,this[_0x480e9b(0x1ef)]=_0x154dcc,this[_0x480e9b(0x207)]=_0x428787;const {..._0x10025f}=_0x2df91a({},T,this['_config']);this[_0x480e9b(0x207)][_0x480e9b(0x1bf)](ye,_0x10025f);}[_0x5f210e(0x208)](){const _0x3a1e2b=_0x5f210e;_0x173359(this['_injector'],_0x20d4d6([[L],[S],[I],[m]],this[_0x3a1e2b(0x1e5)]['override'])),_0x1d822a(this[_0x3a1e2b(0x1ef)],[[I]]);}['onRendered'](){const _0x5d6b78=_0x5f210e;_0x1d822a(this[_0x5d6b78(0x1ef)],[[m]]);}};B(b,_0x5f210e(0x230),_0x4cded3['UNIVER_UNKNOWN']),B(b,_0x5f210e(0x22b),Ye),b=We([_0x190b72(_0x363746),F(0x1,_0x4937f2(_0x179f2d)),F(0x2,_0x333494)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x39019b,_0x243225){const _0x1fbe3a=_0x4a7b,_0x5c76ae=_0x39019b();while(!![]){try{const _0x4c4483=parseInt(_0x1fbe3a(0x1e8))/0x1*(parseInt(_0x1fbe3a(0x1de))/0x2)+-parseInt(_0x1fbe3a(0x1d0))/0x3+-parseInt(_0x1fbe3a(0x1dd))/0x4+-parseInt(_0x1fbe3a(0x1c1))/0x5*(parseInt(_0x1fbe3a(0x1d4))/0x6)+parseInt(_0x1fbe3a(0x1cf))/0x7*(parseInt(_0x1fbe3a(0x1be))/0x8)+-parseInt(_0x1fbe3a(0x1e5))/0x9+parseInt(_0x1fbe3a(0x1bf))/0xa;if(_0x4c4483===_0x243225)break;else _0x5c76ae['push'](_0x5c76ae['shift']());}catch(_0x5b9eb4){_0x5c76ae['push'](_0x5c76ae['shift']());}}}(_0x4078,0x764dd),function(_0x3bc4d0,_0x3be743){const _0x1b5f7e=_0x4a7b;typeof exports=='object'&&typeof module<'u'?_0x3be743(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x1b5f7e(0x1ea)]?define([_0x1b5f7e(0x1e1),_0x1b5f7e(0x1d3),_0x1b5f7e(0x1d7),'@univerjs/sheets-ui','@univerjs/sheets/facade',_0x1b5f7e(0x1e7)],_0x3be743):(_0x3bc4d0=typeof globalThis<'u'?globalThis:_0x3bc4d0||self,_0x3be743(_0x3bc4d0[_0x1b5f7e(0x1bb)],_0x3bc4d0[_0x1b5f7e(0x1c4)],_0x3bc4d0[_0x1b5f7e(0x1c3)],_0x3bc4d0['UniverSheetsUi'],_0x3bc4d0[_0x1b5f7e(0x1c2)],_0x3bc4d0[_0x1b5f7e(0x1e9)]));}(this,function(_0x1c30b5,_0x75bc3c,_0x3d4fed,_0x4c877b,_0x4d5e29,_0x174b03){'use strict';const _0x15db05=_0x4a7b;class _0x7c440b extends _0x4d5e29[_0x15db05(0x1dc)]{[_0x15db05(0x1d6)](_0x209466,_0xb9af2e,_0x5575a2,_0x21bdee,_0x3cfc4b){const _0x57ef1f=_0x15db05,_0x42659a=_0x209466[_0x57ef1f(0x1c6)](_0x1c30b5[_0x57ef1f(0x1df)]),_0x371899=_0x209466['get'](_0x75bc3c['IRenderManagerService']),_0x44f332=_0xb9af2e[_0x57ef1f(0x1c0)](),_0x420767=_0xb9af2e[_0x57ef1f(0x1e3)](),_0xd7c482=_0x42659a[_0x57ef1f(0x1c8)](_0x44f332);(_0xd7c482==null?void 0x0:_0xd7c482[_0x57ef1f(0x1ca)]())!==_0x1c30b5['LiveShareStatus'][_0x57ef1f(0x1d9)]||(_0x5575a2[_0x57ef1f(0x1c5)]()!==_0x420767['getSheetId']()&&this[_0x57ef1f(0x1e6)]['executeCommand'](_0x3d4fed['SetWorksheetActiveOperation']['id'],{'unitId':_0x44f332,'subUnitId':_0x5575a2[_0x57ef1f(0x1c5)]()}),!_0x371899['getRenderById'](_0x44f332))||_0x3cfc4b[_0x57ef1f(0x1bc)](_0x4c877b[_0x57ef1f(0x1bd)]['id'],{'unitId':_0xb9af2e[_0x57ef1f(0x1c0)](),'sheetId':_0x5575a2[_0x57ef1f(0x1c5)](),'sheetViewStartRow':_0x21bdee[_0x57ef1f(0x1e4)],'sheetViewStartColumn':_0x21bdee['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4d5e29[_0x15db05(0x1dc)][_0x15db05(0x1ce)](_0x7c440b);class _0x543892 extends _0x174b03[_0x15db05(0x1ba)]{[_0x15db05(0x1cd)](){const _0xa3d31a=_0x15db05;var _0x38e417,_0x47fe33;const _0x453dac=this[_0xa3d31a(0x1cc)][_0xa3d31a(0x1c6)](_0x1c30b5[_0xa3d31a(0x1df)]),_0x4020e7=(_0x38e417=this['getActiveWorkbook']())==null?void 0x0:_0x38e417[_0xa3d31a(0x1db)]();if(!_0x4020e7)throw new Error(_0xa3d31a(0x1da));const _0x2b3ac8=_0x453dac[_0xa3d31a(0x1c8)](_0x4020e7);return(_0x47fe33=_0x2b3ac8==null?void 0x0:_0x2b3ac8[_0xa3d31a(0x1ca)]())!=null?_0x47fe33:_0x1c30b5[_0xa3d31a(0x1e0)][_0xa3d31a(0x1c9)];}[_0x15db05(0x1cb)](){const _0x5180a7=_0x15db05;var _0x55007c;const _0x3644e3=this[_0x5180a7(0x1cc)]['get'](_0x1c30b5[_0x5180a7(0x1df)]),_0x18cd26=(_0x55007c=this[_0x5180a7(0x1d8)]())==null?void 0x0:_0x55007c[_0x5180a7(0x1db)]();if(!_0x18cd26)throw new Error(_0x5180a7(0x1da));const _0x4b6903=_0x3644e3[_0x5180a7(0x1c8)](_0x18cd26);if(!_0x4b6903)throw new Error(_0x5180a7(0x1c7));_0x4b6903[_0x5180a7(0x1cb)]();}[_0x15db05(0x1d5)](){const _0x2c8a2c=_0x15db05;var _0x492808;const _0x1baef1=this[_0x2c8a2c(0x1cc)][_0x2c8a2c(0x1c6)](_0x1c30b5[_0x2c8a2c(0x1df)]),_0x31ea0a=(_0x492808=this['getActiveWorkbook']())==null?void 0x0:_0x492808[_0x2c8a2c(0x1db)]();if(!_0x31ea0a)throw new Error(_0x2c8a2c(0x1da));const _0x2b40c4=_0x1baef1[_0x2c8a2c(0x1c8)](_0x31ea0a);if(!_0x2b40c4)throw new Error(_0x2c8a2c(0x1c7));_0x2b40c4[_0x2c8a2c(0x1d5)]();}[_0x15db05(0x1e2)](){const _0x57607f=_0x15db05;var _0x1f1e6d;const _0x8b86=this[_0x57607f(0x1cc)][_0x57607f(0x1c6)](_0x1c30b5[_0x57607f(0x1df)]),_0x273d0c=(_0x1f1e6d=this[_0x57607f(0x1d8)]())==null?void 0x0:_0x1f1e6d[_0x57607f(0x1db)]();if(!_0x273d0c)throw new Error(_0x57607f(0x1da));const _0x26fdbc=_0x8b86[_0x57607f(0x1c8)](_0x273d0c);if(!_0x26fdbc)throw new Error(_0x57607f(0x1c7));_0x26fdbc[_0x57607f(0x1ec)]();}[_0x15db05(0x1d2)](){const _0x45623b=_0x15db05;var _0x3d1088;const _0x39877a=this['_injector'][_0x45623b(0x1c6)](_0x1c30b5[_0x45623b(0x1df)]),_0x5cbcf4=(_0x3d1088=this['getActiveWorkbook']())==null?void 0x0:_0x3d1088[_0x45623b(0x1db)]();if(!_0x5cbcf4)throw new Error(_0x45623b(0x1da));const _0x99a03e=_0x39877a['getLiveShareCoordinatorSync'](_0x5cbcf4);if(!_0x99a03e)throw new Error(_0x45623b(0x1c7));_0x99a03e[_0x45623b(0x1d2)]();}}_0x174b03[_0x15db05(0x1ba)][_0x15db05(0x1ce)](_0x543892);class _0x428b36 extends _0x174b03[_0x15db05(0x1d1)]{get[_0x15db05(0x1eb)](){const _0x2205bc=_0x15db05;return _0x1c30b5[_0x2205bc(0x1e0)];}}_0x174b03[_0x15db05(0x1d1)][_0x15db05(0x1ce)](_0x428b36);}));function _0x4a7b(_0x189c78,_0x23d669){const _0x407864=_0x4078();return _0x4a7b=function(_0x4a7b16,_0x55b8c9){_0x4a7b16=_0x4a7b16-0x1ba;let _0x1b0867=_0x407864[_0x4a7b16];return _0x1b0867;},_0x4a7b(_0x189c78,_0x23d669);}function _0x4078(){const _0x384898=['getSheetId','get','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareCoordinatorSync','IDLE','getStatus','startFollowing','_injector','getLiveShareStatus','extend','3674671RutETk','2164872mTVVjP','FEnum','stopPresenting','@univerjs/engine-render','17412rayTkN','stopFollowing','_initialize','@univerjs/sheets','getActiveWorkbook','PRESENTING','No\x20active\x20workbook\x20found.','getId','FRange','1326552TmVaEv','18huNRrT','LiveShareController','LiveShareStatus','@univerjs-pro/live-share','startPresenting','getActiveSheet','startRow','6452325CyiclR','_commandService','@univerjs/core/facade','91167mNqMzk','UniverCoreFacade','amd','LiveShareStatusEnum','tryStartPresenting','FUniver','UniverProLiveShare','syncExecuteCommand','SetScrollOperation','8byxLrc','13329960NvltVN','getUnitId','730rEcRjN','UniverSheetsFacade','UniverSheets','UniverEngineRender'];_0x4078=function(){return _0x384898;};return _0x4078();}
1
+ (function(_0x1c7526,_0x19b96b){const _0x92d578=_0x12b0,_0x5d0078=_0x1c7526();while(!![]){try{const _0x1069fd=-parseInt(_0x92d578(0x1fe))/0x1+-parseInt(_0x92d578(0x214))/0x2+parseInt(_0x92d578(0x1f7))/0x3+parseInt(_0x92d578(0x20f))/0x4*(-parseInt(_0x92d578(0x21c))/0x5)+parseInt(_0x92d578(0x20a))/0x6+parseInt(_0x92d578(0x1f0))/0x7+parseInt(_0x92d578(0x218))/0x8;if(_0x1069fd===_0x19b96b)break;else _0x5d0078['push'](_0x5d0078['shift']());}catch(_0x3cb459){_0x5d0078['push'](_0x5d0078['shift']());}}}(_0x4ab9,0x2ebeb),function(_0x378754,_0x4b9bca){const _0x2d2bb1=_0x12b0;typeof exports=='object'&&typeof module<'u'?_0x4b9bca(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==_0x2d2bb1(0x201)&&define[_0x2d2bb1(0x1fa)]?define([_0x2d2bb1(0x21a),'@univerjs/engine-render',_0x2d2bb1(0x21b),_0x2d2bb1(0x1ee),_0x2d2bb1(0x216),'@univerjs/core/facade'],_0x4b9bca):(_0x378754=typeof globalThis<'u'?globalThis:_0x378754||self,_0x4b9bca(_0x378754[_0x2d2bb1(0x213)],_0x378754[_0x2d2bb1(0x212)],_0x378754[_0x2d2bb1(0x20e)],_0x378754['UniverSheetsUi'],_0x378754['UniverSheetsFacade'],_0x378754['UniverCoreFacade']));}(this,function(_0x4a32b0,_0x5b79fe,_0x552c5a,_0x1b35f1,_0x4d4fa5,_0x3e3a88){'use strict';const _0x752485=_0x12b0;class _0x3acd89 extends _0x4d4fa5[_0x752485(0x207)]{[_0x752485(0x1ef)](_0x150f3d,_0x572ab7,_0x5ab226,_0x203bbe,_0x460064){const _0x53b5c2=_0x752485,_0x3b39d9=_0x150f3d['get'](_0x4a32b0[_0x53b5c2(0x200)]),_0x220c2e=_0x150f3d['get'](_0x5b79fe[_0x53b5c2(0x1f6)]),_0x32e252=_0x572ab7[_0x53b5c2(0x1f2)](),_0x5a520a=_0x572ab7[_0x53b5c2(0x20c)](),_0x41fded=_0x3b39d9['getLiveShareCoordinatorSync'](_0x32e252);(_0x41fded==null?void 0x0:_0x41fded[_0x53b5c2(0x1fb)]())!==_0x4a32b0['LiveShareStatus'][_0x53b5c2(0x1fc)]||(_0x5ab226[_0x53b5c2(0x204)]()!==_0x5a520a['getSheetId']()&&this[_0x53b5c2(0x1fd)][_0x53b5c2(0x202)](_0x552c5a[_0x53b5c2(0x215)]['id'],{'unitId':_0x32e252,'subUnitId':_0x5ab226[_0x53b5c2(0x204)]()}),!_0x220c2e['getRenderById'](_0x32e252))||_0x460064[_0x53b5c2(0x1f4)](_0x1b35f1[_0x53b5c2(0x209)]['id'],{'unitId':_0x572ab7['getUnitId'](),'sheetId':_0x5ab226['getSheetId'](),'sheetViewStartRow':_0x203bbe[_0x53b5c2(0x1f9)],'sheetViewStartColumn':_0x203bbe['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4d4fa5['FRange'][_0x752485(0x211)](_0x3acd89);class _0xb4e3ec extends _0x3e3a88[_0x752485(0x1f8)]{['getLiveShareStatus'](){const _0x86b577=_0x752485;var _0x3caf45,_0x4aec2f;const _0x380a91=this[_0x86b577(0x210)]['get'](_0x4a32b0[_0x86b577(0x200)]),_0xfefa23=(_0x3caf45=this['getActiveWorkbook']())==null?void 0x0:_0x3caf45[_0x86b577(0x1ed)]();if(!_0xfefa23)throw new Error(_0x86b577(0x1f5));const _0x15fe55=_0x380a91[_0x86b577(0x1f1)](_0xfefa23);return(_0x4aec2f=_0x15fe55==null?void 0x0:_0x15fe55[_0x86b577(0x1fb)]())!=null?_0x4aec2f:_0x4a32b0[_0x86b577(0x205)][_0x86b577(0x20b)];}['startFollowing'](){const _0x5212ea=_0x752485;var _0x5f3ba8;const _0x3e62dc=this[_0x5212ea(0x210)][_0x5212ea(0x217)](_0x4a32b0['LiveShareController']),_0x4a7efe=(_0x5f3ba8=this['getActiveWorkbook']())==null?void 0x0:_0x5f3ba8['getId']();if(!_0x4a7efe)throw new Error('No\x20active\x20workbook\x20found.');const _0xfac539=_0x3e62dc[_0x5212ea(0x1f1)](_0x4a7efe);if(!_0xfac539)throw new Error(_0x5212ea(0x1f3));_0xfac539[_0x5212ea(0x203)]();}[_0x752485(0x219)](){const _0x31a48e=_0x752485;var _0x5eef76;const _0x2d42c6=this['_injector'][_0x31a48e(0x217)](_0x4a32b0[_0x31a48e(0x200)]),_0x1d1b24=(_0x5eef76=this[_0x31a48e(0x208)]())==null?void 0x0:_0x5eef76[_0x31a48e(0x1ed)]();if(!_0x1d1b24)throw new Error(_0x31a48e(0x1f5));const _0x3e409a=_0x2d42c6[_0x31a48e(0x1f1)](_0x1d1b24);if(!_0x3e409a)throw new Error(_0x31a48e(0x1f3));_0x3e409a[_0x31a48e(0x219)]();}[_0x752485(0x20d)](){const _0x45690c=_0x752485;var _0x69a30b;const _0x121410=this[_0x45690c(0x210)][_0x45690c(0x217)](_0x4a32b0[_0x45690c(0x200)]),_0x385827=(_0x69a30b=this[_0x45690c(0x208)]())==null?void 0x0:_0x69a30b[_0x45690c(0x1ed)]();if(!_0x385827)throw new Error('No\x20active\x20workbook\x20found.');const _0x556c91=_0x121410[_0x45690c(0x1f1)](_0x385827);if(!_0x556c91)throw new Error(_0x45690c(0x1f3));_0x556c91[_0x45690c(0x206)]();}['stopPresenting'](){const _0xc54304=_0x752485;var _0x2affb6;const _0x3ded56=this[_0xc54304(0x210)][_0xc54304(0x217)](_0x4a32b0[_0xc54304(0x200)]),_0x57f755=(_0x2affb6=this[_0xc54304(0x208)]())==null?void 0x0:_0x2affb6[_0xc54304(0x1ed)]();if(!_0x57f755)throw new Error('No\x20active\x20workbook\x20found.');const _0x5f0fe3=_0x3ded56[_0xc54304(0x1f1)](_0x57f755);if(!_0x5f0fe3)throw new Error(_0xc54304(0x1f3));_0x5f0fe3[_0xc54304(0x1ff)]();}}_0x3e3a88[_0x752485(0x1f8)][_0x752485(0x211)](_0xb4e3ec);class _0x1e57ae extends _0x3e3a88['FEnum']{get['LiveShareStatusEnum'](){const _0x5e7a0f=_0x752485;return _0x4a32b0[_0x5e7a0f(0x205)];}}_0x3e3a88['FEnum'][_0x752485(0x211)](_0x1e57ae);}));function _0x12b0(_0x31f4a5,_0x172c05){_0x31f4a5=_0x31f4a5-0x1ed;const _0x4ab999=_0x4ab9();let _0x12b087=_0x4ab999[_0x31f4a5];return _0x12b087;}function _0x4ab9(){const _0x15362d=['FUniver','startRow','amd','getStatus','PRESENTING','_commandService','257111plLSVg','stopPresenting','LiveShareController','function','executeCommand','startFollowing','getSheetId','LiveShareStatus','tryStartPresenting','FRange','getActiveWorkbook','SetScrollOperation','1825428BprZAA','IDLE','getActiveSheet','startPresenting','UniverSheets','239556XTAHJh','_injector','extend','UniverEngineRender','UniverProLiveShare','737730XiuztV','SetWorksheetActiveOperation','@univerjs/sheets/facade','get','5409600hmMeuA','stopFollowing','@univerjs-pro/live-share','@univerjs/sheets','30AHltYc','getId','@univerjs/sheets-ui','_initialize','374843txEkCQ','getLiveShareCoordinatorSync','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','syncExecuteCommand','No\x20active\x20workbook\x20found.','IRenderManagerService','428370jylYVS'];_0x4ab9=function(){return _0x15362d;};return _0x4ab9();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4f5f9e,_0x41caf6){const _0x4dd168=_0x3b74,_0x2ef464=_0x4f5f9e();while(!![]){try{const _0x162b7d=parseInt(_0x4dd168(0x18b))/0x1+parseInt(_0x4dd168(0x1cf))/0x2+parseInt(_0x4dd168(0x236))/0x3+-parseInt(_0x4dd168(0x1cd))/0x4+-parseInt(_0x4dd168(0x1a4))/0x5+parseInt(_0x4dd168(0x23f))/0x6+-parseInt(_0x4dd168(0x21d))/0x7;if(_0x162b7d===_0x41caf6)break;else _0x2ef464['push'](_0x2ef464['shift']());}catch(_0x1a58ef){_0x2ef464['push'](_0x2ef464['shift']());}}}(_0x34c6,0x62d21),function(_0x35d8b7,_0x56ac8b){const _0x182ac3=_0x3b74;typeof exports==_0x182ac3(0x1ac)&&typeof module<'u'?_0x56ac8b(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==_0x182ac3(0x24c)&&define[_0x182ac3(0x1b3)]?define([_0x182ac3(0x1d5),'@univerjs/core',_0x182ac3(0x22a),_0x182ac3(0x1c6),'@univerjs/design',_0x182ac3(0x1f8),_0x182ac3(0x25f),_0x182ac3(0x23a),_0x182ac3(0x24f),_0x182ac3(0x195),_0x182ac3(0x21f),_0x182ac3(0x1b2)],_0x56ac8b):(_0x35d8b7=typeof globalThis<'u'?globalThis:_0x35d8b7||self,_0x56ac8b(_0x35d8b7[_0x182ac3(0x18c)]={},_0x35d8b7[_0x182ac3(0x211)],_0x35d8b7[_0x182ac3(0x250)],_0x35d8b7[_0x182ac3(0x218)],_0x35d8b7[_0x182ac3(0x192)],_0x35d8b7[_0x182ac3(0x218)],_0x35d8b7['UniverProCollaboration'],_0x35d8b7[_0x182ac3(0x238)],_0x35d8b7[_0x182ac3(0x1b7)],_0x35d8b7['rxjs'],_0x35d8b7[_0x182ac3(0x195)]['operators'],_0x35d8b7[_0x182ac3(0x1e3)]));}(this,function(_0x2b074c,_0xf7e530,_0x2e0b21,_0x535191,_0x5c0ad8,_0x35919f,_0x239d0a,_0x53c83b,_0x40af1c,_0x5b9003,_0x2bb546,_0x40b946){'use strict';const _0x540c4d=_0x3b74;var _0x22e27d=Object['defineProperty'],_0x5a8659=(_0x2aa5fa,_0x3ce4cd,_0xf3f509)=>_0x3ce4cd in _0x2aa5fa?_0x22e27d(_0x2aa5fa,_0x3ce4cd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf3f509}):_0x2aa5fa[_0x3ce4cd]=_0xf3f509,_0x566ec3=(_0x338157,_0x4e1428,_0x511224)=>_0x5a8659(_0x338157,typeof _0x4e1428!=_0x540c4d(0x17d)?_0x4e1428+'':_0x4e1428,_0x511224);function _0x18be59({ref:_0x134fc0,..._0x34ca32}){const _0x3e75b2=_0x540c4d,{icon:_0x192185,id:_0x2bf6fd,className:_0x2fcd81,extend:_0x47e195,..._0xae5fda}=_0x34ca32,_0x2d736b=(_0x3e75b2(0x239)+_0x2bf6fd+'\x20'+(_0x2fcd81||''))[_0x3e75b2(0x204)](),_0x4773f2=_0x35919f[_0x3e75b2(0x232)]('_'+_0x3194f1());return _0x3c7861(_0x192185,''+_0x2bf6fd,{'defIds':_0x192185['defIds'],'idSuffix':_0x4773f2['current']},{'ref':_0x134fc0,'className':_0x2d736b,..._0xae5fda},_0x47e195);}function _0x3c7861(_0x3677e0,_0x1c4fb4,_0x3d8775,_0x38f180,_0x111481){const _0x3427d2=_0x540c4d;return _0x35919f[_0x3427d2(0x1c7)](_0x3677e0['tag'],{'key':_0x1c4fb4,..._0x892fd3(_0x3677e0,_0x3d8775,_0x111481),..._0x38f180},(_0x2529d8(_0x3677e0,_0x3d8775)[_0x3427d2(0x1d6)]||[])['map']((_0x2d869a,_0x184b04)=>_0x3c7861(_0x2d869a,_0x1c4fb4+'-'+_0x3677e0[_0x3427d2(0x21a)]+'-'+_0x184b04,_0x3d8775,void 0x0,_0x111481)));}function _0x892fd3(_0x20db63,_0x36bc5c,_0x38402b){const _0x256295=_0x540c4d,_0x1b8e46={..._0x20db63[_0x256295(0x21c)]};_0x38402b!=null&&_0x38402b['colorChannel1']&&_0x1b8e46[_0x256295(0x248)]===_0x256295(0x185)&&(_0x1b8e46[_0x256295(0x248)]=_0x38402b[_0x256295(0x185)]),_0x20db63[_0x256295(0x21a)]===_0x256295(0x1c4)&&_0x1b8e46['id']&&(_0x1b8e46['id']=_0x1b8e46['id']+_0x36bc5c[_0x256295(0x214)]),Object[_0x256295(0x258)](_0x1b8e46)[_0x256295(0x1f1)](([_0x374e2c,_0x526aa2])=>{const _0x1a4525=_0x256295;_0x374e2c===_0x1a4525(0x1c4)&&typeof _0x526aa2==_0x1a4525(0x201)&&(_0x1b8e46[_0x374e2c]=_0x526aa2['replace'](/url\(#(.*)\)/,'url(#$1'+_0x36bc5c[_0x1a4525(0x214)]+')'));});const {defIds:_0x18fec3}=_0x36bc5c;return!_0x18fec3||_0x18fec3[_0x256295(0x1cb)]===0x0||(_0x20db63[_0x256295(0x21a)]===_0x256295(0x230)&&_0x1b8e46[_0x256295(0x19f)]&&(_0x1b8e46[_0x256295(0x19f)]=_0x1b8e46[_0x256295(0x19f)]+_0x36bc5c[_0x256295(0x214)]),Object['entries'](_0x1b8e46)[_0x256295(0x1f1)](([_0x529caf,_0x1b0f85])=>{const _0xb2e0b6=_0x256295;typeof _0x1b0f85==_0xb2e0b6(0x201)&&(_0x1b8e46[_0x529caf]=_0x1b0f85[_0xb2e0b6(0x20a)](/url\(#(.*)\)/,_0xb2e0b6(0x23d)+_0x36bc5c['idSuffix']+')'));})),_0x1b8e46;}function _0x2529d8(_0x1c9b08,_0x996b1e){const _0x1d504d=_0x540c4d;var _0x316b11;const {defIds:_0x54b301}=_0x996b1e;return!_0x54b301||_0x54b301['length']===0x0?_0x1c9b08:_0x1c9b08[_0x1d504d(0x21a)]===_0x1d504d(0x1a0)&&((_0x316b11=_0x1c9b08[_0x1d504d(0x1d6)])!=null&&_0x316b11[_0x1d504d(0x1cb)])?{..._0x1c9b08,'children':_0x1c9b08[_0x1d504d(0x1d6)][_0x1d504d(0x25a)](_0x3904a1=>typeof _0x3904a1[_0x1d504d(0x21c)]['id']==_0x1d504d(0x201)&&_0x54b301&&_0x54b301[_0x1d504d(0x1f4)](_0x3904a1[_0x1d504d(0x21c)]['id'])?{..._0x3904a1,'attrs':{..._0x3904a1[_0x1d504d(0x21c)],'id':_0x3904a1[_0x1d504d(0x21c)]['id']+_0x996b1e[_0x1d504d(0x214)]}}:_0x3904a1)}:_0x1c9b08;}function _0x3194f1(){const _0x2ec129=_0x540c4d;return Math[_0x2ec129(0x25e)]()[_0x2ec129(0x180)](0x24)[_0x2ec129(0x1be)](0x2,0x8);}_0x18be59['displayName']=_0x540c4d(0x1c9);const _0x160485={'tag':'svg','attrs':{'xmlns':_0x540c4d(0x188),'fill':'none','viewBox':_0x540c4d(0x22b),'width':'1em','height':_0x540c4d(0x231)},'children':[{'tag':_0x540c4d(0x183),'attrs':{'fill':_0x540c4d(0x233),'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':_0x540c4d(0x183),'attrs':{'fill':_0x540c4d(0x233),'d':_0x540c4d(0x1e0),'fillRule':'evenodd','clipRule':_0x540c4d(0x1f7)}}]},_0x1a3f78=_0x35919f['forwardRef'](function(_0x57944c,_0x2f9fde){const _0x160f62=_0x540c4d;return _0x35919f[_0x160f62(0x1c7)](_0x18be59,Object[_0x160f62(0x182)]({},_0x57944c,{'id':'live-share-icon','ref':_0x2f9fde,'icon':_0x160485}));});_0x1a3f78['displayName']='LiveShareIcon';class _0x26f884 extends _0xf7e530[_0x540c4d(0x1a3)]{constructor(){const _0x2f6a4f=_0x540c4d;super(...arguments),_0x566ec3(this,_0x2f6a4f(0x259),new Set()),_0x566ec3(this,_0x2f6a4f(0x181),new Set());}[_0x540c4d(0x224)](_0x304008){const _0x4d96fe=_0x540c4d;return this[_0x4d96fe(0x259)][_0x4d96fe(0x23c)](_0x304008),_0xf7e530['toDisposable'](()=>this[_0x4d96fe(0x259)][_0x4d96fe(0x19c)](_0x304008));}['registerInitialStateReporter'](_0x4ee020){const _0x572b04=_0x540c4d;return this['_reporters'][_0x572b04(0x23c)](_0x4ee020),_0xf7e530[_0x572b04(0x22f)](()=>this['_reporters']['delete'](_0x4ee020));}[_0x540c4d(0x20c)](_0x5005ae){const _0x42462f=_0x540c4d;return this[_0x42462f(0x259)]['has'](_0x5005ae);}[_0x540c4d(0x1e5)](_0x4685e0){const _0x904beb=_0x540c4d;return Array['from'](this[_0x904beb(0x181)])[_0x904beb(0x25a)](_0x17d5be=>_0x17d5be(_0x4685e0));}}var _0x5f4a01=Object[_0x540c4d(0x221)],_0x4a3f82=(_0x46d70b,_0x2e1fa8,_0x4e80b2,_0x102f08)=>{const _0x4329f5=_0x540c4d;for(var _0x50bad5=_0x102f08>0x1?void 0x0:_0x102f08?_0x5f4a01(_0x2e1fa8,_0x4e80b2):_0x2e1fa8,_0x588b16=_0x46d70b[_0x4329f5(0x1cb)]-0x1,_0x2eeb50;_0x588b16>=0x0;_0x588b16--)(_0x2eeb50=_0x46d70b[_0x588b16])&&(_0x50bad5=_0x2eeb50(_0x50bad5)||_0x50bad5);return _0x50bad5;},_0x193f45=(_0x48483a,_0x3e4159)=>(_0x3a5979,_0x556c26)=>_0x3e4159(_0x3a5979,_0x556c26,_0x48483a);_0x2b074c[_0x540c4d(0x200)]=class extends _0xf7e530[_0x540c4d(0x205)]{constructor(_0x382152,_0x1788da,_0x46968e){const _0x38298f=_0x540c4d;super(),_0x566ec3(this,_0x38298f(0x20e),new Map()),(this[_0x38298f(0x1c8)]=_0x382152,this[_0x38298f(0x251)]=_0x1788da,this['_collabSessionService']=_0x46968e,this[_0x38298f(0x1e9)]());}async[_0x540c4d(0x186)](_0x1e759e){const _0x1b249b=_0x540c4d;return this[_0x1b249b(0x20e)][_0x1b249b(0x18d)](_0x1e759e)||await this[_0x1b249b(0x252)](_0x1e759e),this[_0x1b249b(0x20e)][_0x1b249b(0x1fd)](_0x1e759e);}[_0x540c4d(0x1b5)](_0x93fb91){const _0x908408=_0x540c4d;var _0x308cf4;return(_0x308cf4=this[_0x908408(0x20e)][_0x908408(0x1fd)](_0x93fb91))!=null?_0x308cf4:null;}['_init'](){const _0x3d7808=_0x540c4d;this['_univerInstanceService'][_0x3d7808(0x184)](_0xf7e530['UniverInstanceType'][_0x3d7808(0x1a1)])['pipe'](_0x2bb546[_0x3d7808(0x1f0)](this[_0x3d7808(0x1c2)]))[_0x3d7808(0x187)](async _0x1f03b7=>{const _0x471231=_0x3d7808,_0x4c2a9a=_0x1f03b7[_0x471231(0x1fe)]();this[_0x471231(0x20e)]['has'](_0x4c2a9a)||this['_startLiveShareCoordinator'](_0x4c2a9a);}),this[_0x3d7808(0x1c8)]['getTypeOfUnitDisposed$'](_0xf7e530['UniverInstanceType']['UNIVER_SHEET'])[_0x3d7808(0x1aa)](_0x2bb546[_0x3d7808(0x1f0)](this[_0x3d7808(0x1c2)]))['subscribe'](_0x436cef=>{const _0x5204e8=_0x3d7808,_0x2d02af=_0x436cef['getUnitId'](),_0x269d1c=this[_0x5204e8(0x20e)][_0x5204e8(0x1fd)](_0x2d02af);_0x269d1c==null||_0x269d1c[_0x5204e8(0x19e)]();});}async['_startLiveShareCoordinator'](_0x411efe){const _0x48d448=_0x540c4d,_0x2dc49a=await this['_collabSessionService'][_0x48d448(0x1b9)](_0x411efe),_0x52a69b=this[_0x48d448(0x251)][_0x48d448(0x1dc)](_0x2b074c[_0x48d448(0x213)],_0x411efe,_0x2dc49a);return _0x52a69b[_0x48d448(0x1d7)](),this[_0x48d448(0x20e)][_0x48d448(0x1a9)](_0x411efe,_0x52a69b),_0x52a69b;}},_0x2b074c[_0x540c4d(0x200)]=_0x4a3f82([_0x193f45(0x0,_0xf7e530[_0x540c4d(0x24b)]),_0x193f45(0x1,_0xf7e530['Inject'](_0xf7e530[_0x540c4d(0x23b)])),_0x193f45(0x2,_0xf7e530['Inject'](_0x53c83b[_0x540c4d(0x1a2)]))],_0x2b074c[_0x540c4d(0x200)]);var _0x12cd74=(_0x33afb9=>(_0x33afb9[_0x540c4d(0x1f2)]=_0x540c4d(0x1e8),_0x33afb9['IDLE']=_0x540c4d(0x1ef),_0x33afb9[_0x540c4d(0x20f)]=_0x540c4d(0x17f),_0x33afb9['NOT_FOLLOWING']=_0x540c4d(0x1bc),_0x33afb9[_0x540c4d(0x203)]=_0x540c4d(0x1eb),_0x33afb9))(_0x12cd74||{});const _0x128531=_0x540c4d(0x209),_0x29eb16=0xc8;_0x2b074c[_0x540c4d(0x213)]=class extends _0xf7e530[_0x540c4d(0x205)]{constructor(_0x12e2b8,_0x254f21,_0x2ab6ed,_0x538488,_0x3a2965){const _0x28a53b=_0x540c4d;super(),_0x566ec3(this,_0x28a53b(0x220),new _0x5b9003['BehaviorSubject'](_0x28a53b(0x1ef))),_0x566ec3(this,_0x28a53b(0x242),this[_0x28a53b(0x220)][_0x28a53b(0x1ed)]()),_0x566ec3(this,_0x28a53b(0x1e9),!0x1),_0x566ec3(this,_0x28a53b(0x194),null),_0x566ec3(this,_0x28a53b(0x243),null),(this[_0x28a53b(0x17e)]=_0x12e2b8,this[_0x28a53b(0x215)]=_0x254f21,this[_0x28a53b(0x1cc)]=_0x2ab6ed,this[_0x28a53b(0x208)]=_0x538488,this['_commandService']=_0x3a2965);}get[_0x540c4d(0x1c3)](){const _0x2cc2e1=_0x540c4d;return this[_0x2cc2e1(0x220)][_0x2cc2e1(0x1da)]();}[_0x540c4d(0x19e)](){const _0x27c210=_0x540c4d;var _0x3f2c54;(_0x3f2c54=this['_commandDisposable'])==null||_0x3f2c54['dispose'](),this[_0x27c210(0x220)][_0x27c210(0x1bf)]('idle'),this['_status$'][_0x27c210(0x217)]();}[_0x540c4d(0x1e4)](){const _0x14366d=_0x540c4d;return this[_0x14366d(0x1c3)];}['init'](){const _0x1adcc5=_0x540c4d;this[_0x1adcc5(0x1e9)]||(this[_0x1adcc5(0x1e9)]=!0x0,this['_collabSession'][_0x1adcc5(0x241)]['pipe'](_0x2bb546['takeUntil'](this[_0x1adcc5(0x1c2)]))[_0x1adcc5(0x187)](_0x207a8e=>{const _0x21e7b7=_0x1adcc5;switch(_0x207a8e){case _0x53c83b[_0x21e7b7(0x226)][_0x21e7b7(0x1f2)]:this[_0x21e7b7(0x189)]();break;case _0x53c83b[_0x21e7b7(0x226)]['ONLINE']:this[_0x21e7b7(0x24e)]();break;}}),this[_0x1adcc5(0x215)][_0x1adcc5(0x1bd)][_0x1adcc5(0x1aa)](_0x2bb546[_0x1adcc5(0x1f0)](this[_0x1adcc5(0x1c2)]))[_0x1adcc5(0x187)](_0x128928=>{const _0x40b7d2=_0x1adcc5,{eventID:_0x195f4c}=_0x128928;switch(_0x195f4c){case _0x239d0a[_0x40b7d2(0x1d1)]['LIVESHARE_NEW_HOST']:this[_0x40b7d2(0x1ca)](_0x128928);break;case _0x239d0a[_0x40b7d2(0x1d1)][_0x40b7d2(0x19d)]:this[_0x40b7d2(0x1ec)](_0x128928);break;case _0x239d0a[_0x40b7d2(0x1d1)][_0x40b7d2(0x199)]:this[_0x40b7d2(0x25d)]();break;case _0x239d0a[_0x40b7d2(0x1d1)][_0x40b7d2(0x237)]:this['_handleNewChangeSets'](_0x128928);break;}}));}[_0x540c4d(0x216)](){const _0x21deb1=_0x540c4d;this[_0x21deb1(0x215)][_0x21deb1(0x249)]({'eventID':_0x239d0a['CollaborationEvent'][_0x21deb1(0x18f)],'data':{'unitID':this[_0x21deb1(0x17e)],'userID':this[_0x21deb1(0x215)][_0x21deb1(0x25b)]()}},this['_unitID']);}['stopPresenting'](){const _0x4a8a81=_0x540c4d;this[_0x4a8a81(0x1c3)]===_0x4a8a81(0x1eb)&&(this['_status$'][_0x4a8a81(0x1bf)](_0x4a8a81(0x1ef)),this[_0x4a8a81(0x215)][_0x4a8a81(0x249)]({'eventID':_0x239d0a[_0x4a8a81(0x1d1)][_0x4a8a81(0x199)],'data':{'unitID':this[_0x4a8a81(0x17e)]}},this[_0x4a8a81(0x17e)]));}['startFollowing'](){const _0x3a7928=_0x540c4d;this[_0x3a7928(0x1c3)]===_0x3a7928(0x1bc)&&(this[_0x3a7928(0x220)]['next'](_0x3a7928(0x17f)),this[_0x3a7928(0x219)]());}[_0x540c4d(0x253)](){const _0x5ceb6f=_0x540c4d;this['_status']===_0x5ceb6f(0x17f)&&this['_stopFollowing']();}[_0x540c4d(0x1ca)](_0xcf48af){const _0x323c49=_0x540c4d,{presenter:_0x5b3861}=_0xcf48af[_0x323c49(0x24d)],_0x579574=this['_collabSession'][_0x323c49(0x25b)]();this[_0x323c49(0x243)]=_0x5b3861,_0x5b3861===_0x579574?(this[_0x323c49(0x197)](),this[_0x323c49(0x1a5)]()):this[_0x323c49(0x1c3)]!==_0x323c49(0x1bc)&&(this['_stopPresenting'](),this[_0x323c49(0x219)]());}[_0x540c4d(0x1c0)](){const _0x19e2ae=_0x540c4d,_0x58abce={'eventID':_0x239d0a[_0x19e2ae(0x1d1)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x19e2ae(0x249)](_0x58abce,this[_0x19e2ae(0x17e)]);}[_0x540c4d(0x25d)](){const _0x3bbe9d=_0x540c4d;this['_presenter']=null,this['_status']!==_0x3bbe9d(0x1eb)&&this[_0x3bbe9d(0x18a)]();}[_0x540c4d(0x1a7)](_0x43a57e){const _0x1f392c=_0x540c4d;if(this[_0x1f392c(0x1c3)]==='following'&&this[_0x1f392c(0x243)]===_0x43a57e[_0x1f392c(0x24d)][_0x1f392c(0x247)]){const _0x181961=_0x239d0a['parseProtocolChangeset'](_0x43a57e[_0x1f392c(0x24d)])[_0x1f392c(0x179)][_0x1f392c(0x207)]()[_0x1f392c(0x25c)](_0x5f51ad=>_0x5f51ad['id']===_0x40af1c[_0x1f392c(0x17c)]['id']);if(_0x181961){const _0x3101be=_0x181961[_0x1f392c(0x191)][_0x1f392c(0x22e)],_0x423b75=_0x181961[_0x1f392c(0x191)]['sheet']['id'];setTimeout(()=>{const _0x51cca0=_0x1f392c;this[_0x51cca0(0x229)][_0x51cca0(0x1f6)](_0x40af1c[_0x51cca0(0x228)]['id'],{'unitId':_0x3101be,'subUnitId':_0x423b75},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1bf3e0=_0x540c4d;this[_0x1bf3e0(0x220)][_0x1bf3e0(0x1bf)](_0x1bf3e0(0x1eb));const _0x327dbb=new Map(),_0x201e14=this[_0x1bf3e0(0x194)]=new _0xf7e530[(_0x1bf3e0(0x1df))]();_0x201e14[_0x1bf3e0(0x23c)](_0xf7e530[_0x1bf3e0(0x22f)](()=>{const _0x2dc779=_0x1bf3e0;_0x327dbb['forEach'](_0x4f1eaa=>_0x4f1eaa['complete']()),_0x327dbb[_0x2dc779(0x1ff)]();})),_0x201e14[_0x1bf3e0(0x23c)](this[_0x1bf3e0(0x229)][_0x1bf3e0(0x1b4)](_0x461806=>{const _0x36b7d4=_0x1bf3e0;var _0x1bb7df;if(_0x461806[_0x36b7d4(0x24a)]!==_0xf7e530[_0x36b7d4(0x17b)][_0x36b7d4(0x1d9)]||!this[_0x36b7d4(0x208)][_0x36b7d4(0x20c)](_0x461806['id']))return;const {id:_0x311a21}=_0x461806;let _0x421296;_0x327dbb[_0x36b7d4(0x18d)](_0x311a21)?_0x421296=_0x327dbb[_0x36b7d4(0x1fd)](_0x311a21):(_0x421296=new _0x5b9003[(_0x36b7d4(0x1ba))](),_0x327dbb[_0x36b7d4(0x1a9)](_0x311a21,_0x421296),_0x421296['pipe'](_0x2bb546[_0x36b7d4(0x23e)]((_0x1bb7df=this[_0x36b7d4(0x1cc)]['getConfig'](_0x128531))!=null?_0x1bb7df:_0x29eb16,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x385e15=>{const _0x4279f2=_0x36b7d4;this[_0x4279f2(0x215)][_0x4279f2(0x249)]({'eventID':_0x239d0a['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x385e15['id']]:{'id':_0x385e15['id'],'params':JSON[_0x4279f2(0x1c5)](_0x385e15[_0x4279f2(0x191)])}}}},this[_0x4279f2(0x17e)]);})),_0x421296[_0x36b7d4(0x1bf)](_0x461806);})),this[_0x1bf3e0(0x208)][_0x1bf3e0(0x1e5)](this[_0x1bf3e0(0x17e)])['forEach'](_0x4b4184=>this[_0x1bf3e0(0x215)]['send']({'eventID':_0x239d0a[_0x1bf3e0(0x1d1)][_0x1bf3e0(0x19d)],'data':{'unitID':this[_0x1bf3e0(0x17e)],'operations':{[_0x4b4184['id']]:{'id':_0x4b4184['id'],'params':JSON['stringify'](_0x4b4184[_0x1bf3e0(0x191)])}}}},this[_0x1bf3e0(0x17e)]));}[_0x540c4d(0x1fa)](){const _0x52dee0=_0x540c4d;var _0x4f2507;this[_0x52dee0(0x220)][_0x52dee0(0x1bf)](_0x52dee0(0x1ef)),(_0x4f2507=this[_0x52dee0(0x194)])==null||_0x4f2507['dispose'](),this[_0x52dee0(0x194)]=null;}['_startFollowing'](){const _0x345d32=_0x540c4d;var _0x396228;(_0x396228=this[_0x345d32(0x194)])==null||_0x396228[_0x345d32(0x19e)](),this['_status$'][_0x345d32(0x1bf)](_0x345d32(0x17f));}[_0x540c4d(0x18a)](){const _0x446ca6=_0x540c4d;var _0x945edc;this['_status$']['next'](_0x446ca6(0x1ef)),(_0x945edc=this['_commandDisposable'])==null||_0x945edc[_0x446ca6(0x19e)](),this[_0x446ca6(0x194)]=null;}[_0x540c4d(0x197)](){const _0x23d5fb=_0x540c4d;var _0x42f7c1;this[_0x23d5fb(0x220)][_0x23d5fb(0x1bf)]('not-following'),(_0x42f7c1=this['_commandDisposable'])==null||_0x42f7c1['dispose']();}[_0x540c4d(0x1ec)](_0x2a50a6){const _0x3f6d23=_0x540c4d;if([_0x3f6d23(0x1eb),_0x3f6d23(0x1bc),_0x3f6d23(0x1e8)][_0x3f6d23(0x1f4)](this[_0x3f6d23(0x1c3)])||!_0x2a50a6[_0x3f6d23(0x24d)]['presenter']||_0x2a50a6[_0x3f6d23(0x24d)][_0x3f6d23(0x240)]===this[_0x3f6d23(0x215)][_0x3f6d23(0x25b)]())return;this[_0x3f6d23(0x1c3)]===_0x3f6d23(0x1ef)&&this[_0x3f6d23(0x219)]();const _0x24dc0f=_0x2a50a6[_0x3f6d23(0x24d)][_0x3f6d23(0x1e6)];Object['values'](_0x24dc0f)['forEach'](_0x54188a=>{const _0x3e9d11=_0x3f6d23;this[_0x3e9d11(0x229)][_0x3e9d11(0x1f6)](_0x54188a['id'],_0x54188a[_0x3e9d11(0x191)]?JSON[_0x3e9d11(0x1bb)](_0x54188a[_0x3e9d11(0x191)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x514442=_0x540c4d;var _0x4001f0;this[_0x514442(0x220)]['next'](_0x514442(0x1e8)),(_0x4001f0=this[_0x514442(0x194)])==null||_0x4001f0['dispose']();}['_handleOnline'](){const _0x111fde=_0x540c4d;this[_0x111fde(0x220)][_0x111fde(0x1bf)](_0x111fde(0x1ef)),this[_0x111fde(0x1c0)]();}},_0x2b074c[_0x540c4d(0x213)]=_0x4a3f82([_0x193f45(0x2,_0xf7e530[_0x540c4d(0x198)]),_0x193f45(0x3,_0xf7e530[_0x540c4d(0x1fc)](_0x26f884)),_0x193f45(0x4,_0xf7e530[_0x540c4d(0x256)])],_0x2b074c['LiveShareCoordinator']);function _0x22f5cf(){const _0x5b6449=_0x540c4d,_0x3bb70f=_0x2e0b21['useDependency'](_0x2b074c[_0x5b6449(0x200)]),_0x9f80f6=_0x2e0b21[_0x5b6449(0x18e)](_0xf7e530[_0x5b6449(0x24b)]),_0x4ab8a8=_0x2e0b21[_0x5b6449(0x246)](()=>_0x9f80f6[_0x5b6449(0x1dd)](_0xf7e530[_0x5b6449(0x255)][_0x5b6449(0x1a1)]),void 0x0,!0x1,[]),[_0x4d885b,_0x1b7ed8]=_0x35919f[_0x5b6449(0x1f5)](null),[_0x5f4149,_0x37104b]=_0x35919f[_0x5b6449(0x1f5)](_0x12cd74[_0x5b6449(0x196)]),_0x4a0191=_0x35919f[_0x5b6449(0x232)](null);return _0x35919f['useEffect'](()=>(_0x4ab8a8&&_0x3bb70f[_0x5b6449(0x186)](_0x4ab8a8[_0x5b6449(0x1fe)]())[_0x5b6449(0x22c)](_0x1a7569=>{const _0x3aa893=_0x5b6449;_0x1b7ed8(_0x1a7569),_0x4a0191['current']=_0x1a7569[_0x3aa893(0x242)]['subscribe'](_0x5cef14=>{_0x37104b(_0x5cef14);});}),()=>{const _0x2169b2=_0x5b6449;var _0x403207;(_0x403207=_0x4a0191['current'])==null||_0x403207[_0x2169b2(0x22d)](),_0x4a0191[_0x2169b2(0x1ce)]=null;}),[_0x4ab8a8,_0x3bb70f]),_0x4d885b?_0x535191['jsx'](_0x5c0ad8['Dropdown'],{'align':_0x5b6449(0x20d),'disabled':_0x5f4149===_0x12cd74['OFFLINE'],'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':_0x535191[_0x5b6449(0x245)](_0xfa31d6,{'status':_0x5f4149,'coordinator':_0x4d885b}),'children':_0x535191[_0x5b6449(0x245)]('button',{'className':_0x5c0ad8[_0x5b6449(0x1d8)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x5f4149===_0x12cd74[_0x5b6449(0x1f2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5f4149!==_0x12cd74['OFFLINE']}),'type':_0x5b6449(0x21e),'children':_0x535191['jsx'](_0x1a3f78,{'className':_0x5b6449(0x1e2)})})}):null;}function _0xfa31d6(_0x14b3d1){const _0xe26a74=_0x540c4d,{status:_0x2b6b58,coordinator:_0x1f02f4}=_0x14b3d1;switch(_0x2b6b58){case _0x12cd74['IDLE']:return _0x535191[_0xe26a74(0x245)](_0x460e5f,{'coordinator':_0x1f02f4});case _0x12cd74[_0xe26a74(0x20f)]:return _0x535191['jsx'](_0xebc7ad,{'coordinator':_0x1f02f4});case _0x12cd74[_0xe26a74(0x254)]:return _0x535191['jsx'](_0x841f29,{'coordinator':_0x1f02f4});case _0x12cd74[_0xe26a74(0x1f2)]:return _0x535191[_0xe26a74(0x245)](_0x1ee286,{});case _0x12cd74[_0xe26a74(0x203)]:return _0x535191[_0xe26a74(0x245)](_0x2b080f,{'coordinator':_0x1f02f4});default:return null;}}function _0x460e5f(_0x5c8e49){const _0x218a48=_0x540c4d,{coordinator:_0x12e583}=_0x5c8e49;return _0x535191[_0x218a48(0x1d0)](_0x535191[_0x218a48(0x1ae)],{'children':[_0x535191[_0x218a48(0x245)](_0x218a48(0x190),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x218a48(0x227)}),_0x535191[_0x218a48(0x245)](_0x5c0ad8[_0x218a48(0x1ea)],{'onClick':()=>_0x12e583[_0x218a48(0x216)](),'children':'Start'})]});}function _0xebc7ad(_0x3a528b){const _0x2cf738=_0x540c4d,{coordinator:_0x33abc6}=_0x3a528b;return _0x535191[_0x2cf738(0x1d0)](_0x535191[_0x2cf738(0x1ae)],{'children':[_0x535191[_0x2cf738(0x245)]('div',{'className':_0x2cf738(0x1c1),'children':_0x2cf738(0x1d3)}),_0x535191['jsx'](_0x5c0ad8['Button'],{'onClick':()=>_0x33abc6['stopFollowing'](),'children':_0x2cf738(0x257)})]});}function _0x841f29(_0x980149){const _0x4c1118=_0x540c4d,{coordinator:_0x1210b4}=_0x980149;return _0x535191[_0x4c1118(0x1d0)](_0x535191[_0x4c1118(0x1ae)],{'children':[_0x535191[_0x4c1118(0x245)](_0x4c1118(0x190),{'className':_0x4c1118(0x1c1),'children':_0x4c1118(0x1a6)}),_0x535191[_0x4c1118(0x245)](_0x5c0ad8[_0x4c1118(0x1ea)],{'variant':_0x4c1118(0x19b),'onClick':()=>_0x1210b4[_0x4c1118(0x1ab)](),'children':_0x4c1118(0x1e1)})]});}function _0x2b080f(_0x4e12a7){const _0x3f28ec=_0x540c4d,{coordinator:_0x531a8c}=_0x4e12a7;return _0x535191[_0x3f28ec(0x1d0)](_0x535191[_0x3f28ec(0x1ae)],{'children':[_0x535191[_0x3f28ec(0x245)](_0x3f28ec(0x190),{'className':_0x3f28ec(0x1c1),'children':_0x3f28ec(0x1f3)}),_0x535191[_0x3f28ec(0x245)](_0x5c0ad8[_0x3f28ec(0x1ea)],{'variant':_0x3f28ec(0x210),'onClick':()=>_0x531a8c[_0x3f28ec(0x212)](),'children':_0x3f28ec(0x223)})]});}function _0x1ee286(){const _0x496cc6=_0x540c4d;return _0x535191[_0x496cc6(0x245)](_0x535191['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x3a3904=Object[_0x540c4d(0x221)],_0x559f44=(_0x443e9a,_0x508251,_0x5c51b5,_0xb9bda1)=>{const _0x68ccd8=_0x540c4d;for(var _0x1072a7=_0xb9bda1>0x1?void 0x0:_0xb9bda1?_0x3a3904(_0x508251,_0x5c51b5):_0x508251,_0x9cfa4f=_0x443e9a[_0x68ccd8(0x1cb)]-0x1,_0x1c995f;_0x9cfa4f>=0x0;_0x9cfa4f--)(_0x1c995f=_0x443e9a[_0x9cfa4f])&&(_0x1072a7=_0x1c995f(_0x1072a7)||_0x1072a7);return _0x1072a7;},_0x28aa96=(_0x3e888e,_0x26cd0a)=>(_0x49814f,_0x18290a)=>_0x26cd0a(_0x49814f,_0x18290a,_0x3e888e);_0x2b074c['DesktopLiveShareController']=class extends _0xf7e530[_0x540c4d(0x1a3)]{constructor(_0x45905d,_0x5f47c0){const _0x3cacda=_0x540c4d;super(),this[_0x3cacda(0x251)]=_0x45905d,this[_0x3cacda(0x202)]=_0x5f47c0,this[_0x3cacda(0x244)]();}[_0x540c4d(0x244)](){const _0x3a4b8e=_0x540c4d;this[_0x3a4b8e(0x1a8)](this[_0x3a4b8e(0x202)][_0x3a4b8e(0x1ee)](_0x2e0b21[_0x3a4b8e(0x1e7)]['HEADER_MENU'],()=>_0x2e0b21[_0x3a4b8e(0x1db)](_0x22f5cf,this[_0x3a4b8e(0x251)])));}},_0x2b074c['DesktopLiveShareController']=_0x559f44([_0x28aa96(0x0,_0xf7e530[_0x540c4d(0x1fc)](_0xf7e530[_0x540c4d(0x23b)])),_0x28aa96(0x1,_0x2e0b21[_0x540c4d(0x222)])],_0x2b074c[_0x540c4d(0x1b6)]);const _0x9753b=_0x540c4d(0x235),_0x1b4c71={};var _0x2ae4f3=Object['getOwnPropertyDescriptor'],_0x154f7b=(_0x12703a,_0x395407,_0x3dce37,_0x1dc5bc)=>{const _0x2fcf28=_0x540c4d;for(var _0x466c77=_0x1dc5bc>0x1?void 0x0:_0x1dc5bc?_0x2ae4f3(_0x395407,_0x3dce37):_0x395407,_0x5cfe7a=_0x12703a[_0x2fcf28(0x1cb)]-0x1,_0x2e8586;_0x5cfe7a>=0x0;_0x5cfe7a--)(_0x2e8586=_0x12703a[_0x5cfe7a])&&(_0x466c77=_0x2e8586(_0x466c77)||_0x466c77);return _0x466c77;},_0x2ade5b=(_0x4fbc05,_0x146c8f)=>(_0x4171cd,_0x57a9fb)=>_0x146c8f(_0x4171cd,_0x57a9fb,_0x4fbc05);let _0x4c9acf=class extends _0xf7e530[_0x540c4d(0x1a3)]{constructor(_0x39e0b2){const _0x511f05=_0x540c4d;super(),this['_liveShareService']=_0x39e0b2,this[_0x511f05(0x1e9)]();}[_0x540c4d(0x1e9)](){const _0x33b509=_0x540c4d;[_0x40b946[_0x33b509(0x1f9)]['id'],_0x40b946['SetScrollOperation']['id'],_0x40af1c[_0x33b509(0x228)]['id']][_0x33b509(0x1f1)](_0x2a5899=>{const _0x3e291e=_0x33b509;this[_0x3e291e(0x1a8)](this['_liveShareService'][_0x3e291e(0x224)](_0x2a5899));});}};_0x4c9acf=_0x154f7b([_0x2ade5b(0x0,_0xf7e530[_0x540c4d(0x1fc)](_0x26f884))],_0x4c9acf);var _0x56d05b=Object['defineProperty'],_0x2ab3af=Object[_0x540c4d(0x221)],_0x119484=(_0x471295,_0x5d75d6,_0xd6ef30)=>_0x5d75d6 in _0x471295?_0x56d05b(_0x471295,_0x5d75d6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd6ef30}):_0x471295[_0x5d75d6]=_0xd6ef30,_0x292e34=(_0xd366a8,_0x181f2b,_0x4e0bcd,_0x5684ae)=>{const _0x128a9d=_0x540c4d;for(var _0x28d2a=_0x5684ae>0x1?void 0x0:_0x5684ae?_0x2ab3af(_0x181f2b,_0x4e0bcd):_0x181f2b,_0x4dedb5=_0xd366a8[_0x128a9d(0x1cb)]-0x1,_0x1d3d17;_0x4dedb5>=0x0;_0x4dedb5--)(_0x1d3d17=_0xd366a8[_0x4dedb5])&&(_0x28d2a=_0x1d3d17(_0x28d2a)||_0x28d2a);return _0x28d2a;},_0x2e1fbd=(_0x309946,_0x1665b6)=>(_0x2c3e57,_0x29b0bc)=>_0x1665b6(_0x2c3e57,_0x29b0bc,_0x309946),_0xe78de6=(_0x4f26c4,_0x3e1213,_0x3423bd)=>_0x119484(_0x4f26c4,typeof _0x3e1213!='symbol'?_0x3e1213+'':_0x3e1213,_0x3423bd);const _0x274b51=_0x540c4d(0x1b1);_0x2b074c['UniverLiveSharePlugin']=class extends _0xf7e530['Plugin']{constructor(_0xca3255=_0x1b4c71,_0x15980f,_0x5c2a52){const _0x23990f=_0x540c4d;super(),this[_0x23990f(0x1de)]=_0xca3255,this[_0x23990f(0x251)]=_0x15980f,this[_0x23990f(0x1cc)]=_0x5c2a52;const {..._0x12cc6b}=_0xf7e530[_0x23990f(0x193)]({},_0x1b4c71,this[_0x23990f(0x1de)]);this['_configService'][_0x23990f(0x20b)](_0x9753b,_0x12cc6b);}['onStarting'](){const _0x461c20=_0x540c4d;_0xf7e530['registerDependencies'](this['_injector'],_0xf7e530['mergeOverrideWithDependencies']([[_0x26f884],[_0x2b074c['LiveShareController']],[_0x4c9acf],[_0x2b074c[_0x461c20(0x1b6)]]],this[_0x461c20(0x1de)]['override'])),_0xf7e530[_0x461c20(0x1b0)](this[_0x461c20(0x251)],[[_0x4c9acf]]);}[_0x540c4d(0x234)](){const _0x37d390=_0x540c4d;_0xf7e530['touchDependencies'](this[_0x37d390(0x251)],[[_0x2b074c[_0x37d390(0x1b6)]]]);}},_0xe78de6(_0x2b074c[_0x540c4d(0x19a)],'type',_0xf7e530['UniverInstanceType'][_0x540c4d(0x1d2)]),_0xe78de6(_0x2b074c['UniverLiveSharePlugin'],_0x540c4d(0x21b),_0x274b51),_0x2b074c[_0x540c4d(0x19a)]=_0x292e34([_0xf7e530[_0x540c4d(0x1af)](_0x53c83b[_0x540c4d(0x1b8)]),_0x2e1fbd(0x1,_0xf7e530['Inject'](_0xf7e530[_0x540c4d(0x23b)])),_0x2e1fbd(0x2,_0xf7e530['IConfigService'])],_0x2b074c[_0x540c4d(0x19a)]),_0x2b074c[_0x540c4d(0x1fb)]=_0x22f5cf,_0x2b074c[_0x540c4d(0x206)]=_0x26f884,_0x2b074c[_0x540c4d(0x1ad)]=_0x12cd74,Object[_0x540c4d(0x17a)](_0x2b074c,Symbol[_0x540c4d(0x225)],{'value':_0x540c4d(0x1d4)});}));function _0x3b74(_0x190f56,_0x58065d){const _0x34c65d=_0x34c6();return _0x3b74=function(_0x3b74d6,_0x5e8b56){_0x3b74d6=_0x3b74d6-0x179;let _0x5f44fc=_0x34c65d[_0x3b74d6];return _0x5f44fc;},_0x3b74(_0x190f56,_0x58065d);}function _0x34c6(){const _0x40fa36=['UniverCollaborationClientPlugin','requireSession','Subject','parse','not-following','event$','substring','next','_fetchOperations','univer-mb-3\x20univer-w-full\x20univer-text-sm','dispose$','_status','mask','stringify','react/jsx-runtime','createElement','_univerInstanceService','UniverIcon','_handleNewHost','length','_configService','880468ffXMKI','current','162044sYUecU','jsxs','CollaborationEvent','UNIVER_UNKNOWN','You\x27re\x20following\x20the\x20presenter','Module','exports','children','init','clsx','OPERATION','getValue','connectInjector','createInstance','getCurrentTypeOfUnit$','_config','DisposableCollection','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','Start\x20following','univer-size-4','UniverSheetsUi','getStatus','getInitialStates','operations','BuiltInUIPart','offline','_init','Button','presenting','_handleOperation','asObservable','registerComponent','idle','takeUntil','forEach','OFFLINE','You\x27re\x20presenting\x20the\x20document','includes','useState','executeCommand','evenodd','react','SetZoomRatioOperation','_stopPresenting','LiveShare','Inject','get','getUnitId','clear','LiveShareController','string','_uiPartsService','PRESENTING','trim','RxDisposable','LiveShareService','reverse','_liveShareService','SAME_OPERATION_SHARE_INTERVAL','replace','setConfig','shouldShareOperation','end','_entities','FOLLOWING','default','UniverCore','stopPresenting','LiveShareCoordinator','idSuffix','_collabSession','tryStartPresenting','complete','React','_startFollowing','tag','pluginName','attrs','1221591efPQlb','button','rxjs/operators','_status$','getOwnPropertyDescriptor','IUIPartsService','Stop\x20presenting','registerSharedOperation','toStringTag','SessionStatus','Present\x20this\x20document','SetWorksheetActiveOperation','_commandService','@univerjs/ui','0\x200\x2017\x2017','then','unsubscribe','unitId','toDisposable','use','1em','useRef','currentColor','onRendered','live-share.config','1149225FIuSol','NEW_CHANGESETS','UniverProCollaborationClient','univerjs-icon\x20univerjs-icon-','@univerjs-pro/collaboration-client','Injector','add','url(#$1','throttleTime','2998710xypFMc','presenter','sessionStatus$','status$','_presenter','_mountLiveShare','jsx','useObservable','memberID','fill','send','type','IUniverInstanceService','function','data','_handleOnline','@univerjs/sheets','UniverUi','_injector','_startLiveShareCoordinator','stopFollowing','NOT_FOLLOWING','UniverInstanceType','ICommandService','Stop\x20following','entries','_sharedOperations','map','getMemberID','find','_handleTerminate','random','@univerjs-pro/collaboration','mutations','defineProperty','CommandType','InsertSheetMutation','symbol','_unitID','following','toString','_reporters','assign','path','getTypeOfUnitAdded$','colorChannel1','getLiveShareCoordinator','subscribe','http://www.w3.org/2000/svg','_handleOffline','_beIdle','440206KQYZBh','UniverProLiveShare','has','useDependency','LIVESHARE_REQUEST_HOST','div','params','UniverDesign','merge','_commandDisposable','rxjs','IDLE','_stopFollowing','IConfigService','LIVESHARE_TERMINATE','UniverLiveSharePlugin','text','delete','LIVESHARE_OPERATION','dispose','xlink:href','defs','UNIVER_SHEET','CollaborationSessionService','Disposable','3023445nzHDJY','_startPresenting','You\x27re\x20not\x20following\x20the\x20presenter','_handleNewChangeSets','disposeWithMe','set','pipe','startFollowing','object','LiveShareStatus','Fragment','DependentOn','touchDependencies','UNIVER_LIVE_SHARE_PLUGIN','@univerjs/sheets-ui','amd','onCommandExecuted','getLiveShareCoordinatorSync','DesktopLiveShareController','UniverSheets'];_0x34c6=function(){return _0x40fa36;};return _0x34c6();}
1
+ (function(_0xeedef3,_0x5b2ecc){const _0x580baa=_0x2d88,_0xec2e70=_0xeedef3();while(!![]){try{const _0x371569=parseInt(_0x580baa(0x181))/0x1+parseInt(_0x580baa(0x129))/0x2*(parseInt(_0x580baa(0xdc))/0x3)+-parseInt(_0x580baa(0x185))/0x4*(parseInt(_0x580baa(0xc3))/0x5)+parseInt(_0x580baa(0x114))/0x6*(-parseInt(_0x580baa(0x123))/0x7)+-parseInt(_0x580baa(0x121))/0x8+parseInt(_0x580baa(0x191))/0x9*(-parseInt(_0x580baa(0xbc))/0xa)+parseInt(_0x580baa(0xf6))/0xb;if(_0x371569===_0x5b2ecc)break;else _0xec2e70['push'](_0xec2e70['shift']());}catch(_0x26e4d2){_0xec2e70['push'](_0xec2e70['shift']());}}}(_0x57dc,0x49c12),function(_0x454a0b,_0x2af9a8){const _0x54de4b=_0x2d88;typeof exports==_0x54de4b(0x11e)&&typeof module<'u'?_0x2af9a8(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==_0x54de4b(0xed)&&define['amd']?define(['exports',_0x54de4b(0x14b),_0x54de4b(0x14f),_0x54de4b(0x115),_0x54de4b(0x146),_0x54de4b(0x13b),'@univerjs-pro/collaboration','@univerjs-pro/collaboration-client',_0x54de4b(0x107),_0x54de4b(0x196),'rxjs/operators',_0x54de4b(0xe5)],_0x2af9a8):(_0x454a0b=typeof globalThis<'u'?globalThis:_0x454a0b||self,_0x2af9a8(_0x454a0b[_0x54de4b(0x14e)]={},_0x454a0b[_0x54de4b(0x139)],_0x454a0b[_0x54de4b(0x194)],_0x454a0b[_0x54de4b(0x12f)],_0x454a0b[_0x54de4b(0xf4)],_0x454a0b[_0x54de4b(0x12f)],_0x454a0b[_0x54de4b(0xb7)],_0x454a0b[_0x54de4b(0x16e)],_0x454a0b[_0x54de4b(0xd1)],_0x454a0b['rxjs'],_0x454a0b['rxjs'][_0x54de4b(0xbd)],_0x454a0b['UniverSheetsUi']));}(this,function(_0x1d53d8,_0x1397df,_0x4da58e,_0x4e7be3,_0x1f13cb,_0x34a161,_0x4e00b2,_0x405ccc,_0x3cdbdd,_0x912b8,_0xdde623,_0x56053b){'use strict';const _0xae0692=_0x2d88;var _0x755593=Object['defineProperty'],_0x2b9bc1=(_0x297996,_0x11a580,_0x795d94)=>_0x11a580 in _0x297996?_0x755593(_0x297996,_0x11a580,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x795d94}):_0x297996[_0x11a580]=_0x795d94,_0x16daf4=(_0x44acf5,_0x55f8f3,_0x20fb5d)=>_0x2b9bc1(_0x44acf5,typeof _0x55f8f3!=_0xae0692(0x111)?_0x55f8f3+'':_0x55f8f3,_0x20fb5d);function _0x5c3958({ref:_0x26d89f,..._0x1d3462}){const _0x1d779b=_0xae0692,{icon:_0x5c9b88,id:_0x28fa35,className:_0x52f228,extend:_0x2cae1b,..._0x53fd28}=_0x1d3462,_0x1a8847=(_0x1d779b(0x137)+_0x28fa35+'\x20'+(_0x52f228||''))[_0x1d779b(0x133)](),_0x221255=_0x34a161[_0x1d779b(0x178)]('_'+_0x49e592());return _0x170b76(_0x5c9b88,''+_0x28fa35,{'defIds':_0x5c9b88[_0x1d779b(0x179)],'idSuffix':_0x221255[_0x1d779b(0x173)]},{'ref':_0x26d89f,'className':_0x1a8847,..._0x53fd28},_0x2cae1b);}function _0x170b76(_0x2925e2,_0xc17adb,_0x5b95d0,_0x34d574,_0x18bd8d){const _0xd46a5c=_0xae0692;return _0x34a161[_0xd46a5c(0x106)](_0x2925e2[_0xd46a5c(0x11d)],{'key':_0xc17adb,..._0x47aff1(_0x2925e2,_0x5b95d0,_0x18bd8d),..._0x34d574},(_0x31bd17(_0x2925e2,_0x5b95d0)[_0xd46a5c(0x166)]||[])[_0xd46a5c(0xec)]((_0xff916f,_0x174ffa)=>_0x170b76(_0xff916f,_0xc17adb+'-'+_0x2925e2[_0xd46a5c(0x11d)]+'-'+_0x174ffa,_0x5b95d0,void 0x0,_0x18bd8d)));}function _0x47aff1(_0x557a8a,_0x37c660,_0x5184eb){const _0x5770bb=_0xae0692,_0x524c58={..._0x557a8a['attrs']};_0x5184eb!=null&&_0x5184eb[_0x5770bb(0x197)]&&_0x524c58[_0x5770bb(0x180)]===_0x5770bb(0x197)&&(_0x524c58[_0x5770bb(0x180)]=_0x5184eb['colorChannel1']),_0x557a8a[_0x5770bb(0x11d)]===_0x5770bb(0xe3)&&_0x524c58['id']&&(_0x524c58['id']=_0x524c58['id']+_0x37c660[_0x5770bb(0xf8)]),Object[_0x5770bb(0x169)](_0x524c58)['forEach'](([_0x5e8222,_0x425c94])=>{const _0x28accc=_0x5770bb;_0x5e8222===_0x28accc(0xe3)&&typeof _0x425c94==_0x28accc(0xd7)&&(_0x524c58[_0x5e8222]=_0x425c94[_0x28accc(0xe2)](/url\(#(.*)\)/,'url(#$1'+_0x37c660[_0x28accc(0xf8)]+')'));});const {defIds:_0x1a7738}=_0x37c660;return!_0x1a7738||_0x1a7738[_0x5770bb(0xe8)]===0x0||(_0x557a8a[_0x5770bb(0x11d)]==='use'&&_0x524c58[_0x5770bb(0x100)]&&(_0x524c58[_0x5770bb(0x100)]=_0x524c58[_0x5770bb(0x100)]+_0x37c660[_0x5770bb(0xf8)]),Object[_0x5770bb(0x169)](_0x524c58)[_0x5770bb(0xbf)](([_0x341915,_0x173e6f])=>{const _0x443248=_0x5770bb;typeof _0x173e6f==_0x443248(0xd7)&&(_0x524c58[_0x341915]=_0x173e6f['replace'](/url\(#(.*)\)/,_0x443248(0x119)+_0x37c660[_0x443248(0xf8)]+')'));})),_0x524c58;}function _0x31bd17(_0x5f039c,_0x560bd4){const _0x185205=_0xae0692;var _0x16b8d2;const {defIds:_0x34efb6}=_0x560bd4;return!_0x34efb6||_0x34efb6[_0x185205(0xe8)]===0x0?_0x5f039c:_0x5f039c[_0x185205(0x11d)]===_0x185205(0x187)&&((_0x16b8d2=_0x5f039c[_0x185205(0x166)])!=null&&_0x16b8d2[_0x185205(0xe8)])?{..._0x5f039c,'children':_0x5f039c[_0x185205(0x166)][_0x185205(0xec)](_0x3395ff=>typeof _0x3395ff[_0x185205(0x16d)]['id']==_0x185205(0xd7)&&_0x34efb6&&_0x34efb6[_0x185205(0xfa)](_0x3395ff['attrs']['id'])?{..._0x3395ff,'attrs':{..._0x3395ff['attrs'],'id':_0x3395ff[_0x185205(0x16d)]['id']+_0x560bd4[_0x185205(0xf8)]}}:_0x3395ff)}:_0x5f039c;}function _0x49e592(){const _0x56798d=_0xae0692;return Math['random']()[_0x56798d(0xe1)](0x24)['substring'](0x2,0x8);}_0x5c3958[_0xae0692(0x17b)]=_0xae0692(0x17c);const _0x4eba07={'tag':_0xae0692(0xe7),'attrs':{'xmlns':_0xae0692(0x151),'fill':'none','viewBox':_0xae0692(0x192),'width':_0xae0692(0xde),'height':_0xae0692(0xde)},'children':[{'tag':_0xae0692(0x104),'attrs':{'fill':_0xae0692(0xf9),'d':_0xae0692(0x174)}},{'tag':_0xae0692(0x104),'attrs':{'fill':_0xae0692(0xf9),'d':_0xae0692(0xd8),'fillRule':_0xae0692(0x117),'clipRule':_0xae0692(0x117)}}]},_0x21b4bb=_0x34a161[_0xae0692(0x14a)](function(_0x3877a0,_0x45d510){const _0x3bb879=_0xae0692;return _0x34a161[_0x3bb879(0x106)](_0x5c3958,Object[_0x3bb879(0x11a)]({},_0x3877a0,{'id':_0x3bb879(0x182),'ref':_0x45d510,'icon':_0x4eba07}));});_0x21b4bb['displayName']=_0xae0692(0xd3);class _0x2aa38c extends _0x1397df[_0xae0692(0x183)]{constructor(){const _0x5af0b4=_0xae0692;super(...arguments),_0x16daf4(this,_0x5af0b4(0xbe),new Set()),_0x16daf4(this,_0x5af0b4(0x19d),new Set());}['registerSharedOperation'](_0x51c3d2){const _0x53a22d=_0xae0692;return this[_0x53a22d(0xbe)][_0x53a22d(0x171)](_0x51c3d2),_0x1397df[_0x53a22d(0xc4)](()=>this[_0x53a22d(0xbe)][_0x53a22d(0x168)](_0x51c3d2));}[_0xae0692(0xc8)](_0x1a4cf2){const _0x360af5=_0xae0692;return this[_0x360af5(0x19d)][_0x360af5(0x171)](_0x1a4cf2),_0x1397df[_0x360af5(0xc4)](()=>this[_0x360af5(0x19d)][_0x360af5(0x168)](_0x1a4cf2));}[_0xae0692(0x112)](_0x314465){const _0x2e428a=_0xae0692;return this[_0x2e428a(0xbe)][_0x2e428a(0x128)](_0x314465);}['getInitialStates'](_0x3216d3){const _0x3e9081=_0xae0692;return Array['from'](this[_0x3e9081(0x19d)])[_0x3e9081(0xec)](_0x3f73a1=>_0x3f73a1(_0x3216d3));}}var _0xc7b8c6=Object[_0xae0692(0x11c)],_0x558cf2=(_0x4c1db5,_0x527e66,_0x5bad0a,_0x589082)=>{const _0x2d74db=_0xae0692;for(var _0x11cb2c=_0x589082>0x1?void 0x0:_0x589082?_0xc7b8c6(_0x527e66,_0x5bad0a):_0x527e66,_0x94ad4e=_0x4c1db5[_0x2d74db(0xe8)]-0x1,_0x54cbab;_0x94ad4e>=0x0;_0x94ad4e--)(_0x54cbab=_0x4c1db5[_0x94ad4e])&&(_0x11cb2c=_0x54cbab(_0x11cb2c)||_0x11cb2c);return _0x11cb2c;},_0x286e77=(_0x22ae76,_0x30e53b)=>(_0x42f393,_0xb31f21)=>_0x30e53b(_0x42f393,_0xb31f21,_0x22ae76);_0x1d53d8[_0xae0692(0x12d)]=class extends _0x1397df['RxDisposable']{constructor(_0x349228,_0xe3d42c,_0x5038be){const _0x3ce1a7=_0xae0692;super(),_0x16daf4(this,_0x3ce1a7(0x147),new Map()),(this[_0x3ce1a7(0x109)]=_0x349228,this[_0x3ce1a7(0x160)]=_0xe3d42c,this[_0x3ce1a7(0xb9)]=_0x5038be,this['_init']());}async[_0xae0692(0x141)](_0x259899){const _0x462d4a=_0xae0692;return this[_0x462d4a(0x147)][_0x462d4a(0x128)](_0x259899)||await this[_0x462d4a(0xe0)](_0x259899),this[_0x462d4a(0x147)][_0x462d4a(0x190)](_0x259899);}[_0xae0692(0xf3)](_0x10337d){const _0x3fd52f=_0xae0692;var _0x2f74e2;return(_0x2f74e2=this[_0x3fd52f(0x147)][_0x3fd52f(0x190)](_0x10337d))!=null?_0x2f74e2:null;}[_0xae0692(0x12a)](){const _0xda3b5c=_0xae0692;this[_0xda3b5c(0x109)]['getTypeOfUnitAdded$'](_0x1397df[_0xda3b5c(0xdd)]['UNIVER_SHEET'])[_0xda3b5c(0xda)](_0xdde623[_0xda3b5c(0x11f)](this[_0xda3b5c(0xf7)]))[_0xda3b5c(0x13e)](async _0x4501de=>{const _0xa80360=_0xda3b5c,_0x5ee04f=_0x4501de[_0xa80360(0x17d)]();this['_entities']['has'](_0x5ee04f)||this[_0xa80360(0xe0)](_0x5ee04f);}),this[_0xda3b5c(0x109)]['getTypeOfUnitDisposed$'](_0x1397df[_0xda3b5c(0xdd)][_0xda3b5c(0xc7)])['pipe'](_0xdde623[_0xda3b5c(0x11f)](this[_0xda3b5c(0xf7)]))['subscribe'](_0x485546=>{const _0x388358=_0xda3b5c,_0x4656cb=_0x485546[_0x388358(0x17d)](),_0x43fae2=this[_0x388358(0x147)][_0x388358(0x190)](_0x4656cb);_0x43fae2==null||_0x43fae2[_0x388358(0x157)]();});}async[_0xae0692(0xe0)](_0x584211){const _0x5c33bd=_0xae0692,_0x1e56be=await this['_collabSessionService'][_0x5c33bd(0xd9)](_0x584211),_0x3759b8=this['_injector']['createInstance'](_0x1d53d8['LiveShareCoordinator'],_0x584211,_0x1e56be);return _0x3759b8['init'](),this[_0x5c33bd(0x147)][_0x5c33bd(0x122)](_0x584211,_0x3759b8),_0x3759b8;}},_0x1d53d8[_0xae0692(0x12d)]=_0x558cf2([_0x286e77(0x0,_0x1397df[_0xae0692(0x101)]),_0x286e77(0x1,_0x1397df[_0xae0692(0xd2)](_0x1397df[_0xae0692(0x18c)])),_0x286e77(0x2,_0x1397df['Inject'](_0x405ccc[_0xae0692(0xef)]))],_0x1d53d8[_0xae0692(0x12d)]);var _0x5d2a2f=(_0x48a300=>(_0x48a300['OFFLINE']='offline',_0x48a300[_0xae0692(0x10d)]=_0xae0692(0xd4),_0x48a300[_0xae0692(0x130)]=_0xae0692(0x189),_0x48a300[_0xae0692(0xeb)]='not-following',_0x48a300[_0xae0692(0x12e)]=_0xae0692(0xcc),_0x48a300))(_0x5d2a2f||{});const _0x1a4ba1=_0xae0692(0x138),_0x3e7848=0xc8;_0x1d53d8[_0xae0692(0x16a)]=class extends _0x1397df[_0xae0692(0x18e)]{constructor(_0x5a9985,_0x982c5b,_0x1df5b0,_0x46dc3b,_0x59051f){const _0x87cfee=_0xae0692;super(),_0x16daf4(this,'_status$',new _0x912b8[(_0x87cfee(0x110))](_0x87cfee(0xd4))),_0x16daf4(this,_0x87cfee(0x15e),this['_status$'][_0x87cfee(0x153)]()),_0x16daf4(this,_0x87cfee(0x12a),!0x1),_0x16daf4(this,'_commandDisposable',null),_0x16daf4(this,'_presenter',null),(this['_unitID']=_0x5a9985,this[_0x87cfee(0x19c)]=_0x982c5b,this[_0x87cfee(0x19a)]=_0x1df5b0,this['_liveShareService']=_0x46dc3b,this[_0x87cfee(0x188)]=_0x59051f);}get['_status'](){const _0x292138=_0xae0692;return this['_status$'][_0x292138(0xf2)]();}[_0xae0692(0x157)](){const _0x6f3e12=_0xae0692;var _0x271db1;(_0x271db1=this[_0x6f3e12(0x16f)])==null||_0x271db1[_0x6f3e12(0x157)](),this[_0x6f3e12(0xfd)][_0x6f3e12(0xcf)](_0x6f3e12(0xd4)),this[_0x6f3e12(0xfd)]['complete']();}['getStatus'](){const _0x42757e=_0xae0692;return this[_0x42757e(0x170)];}[_0xae0692(0x15a)](){const _0x42622b=_0xae0692;this[_0x42622b(0x12a)]||(this[_0x42622b(0x12a)]=!0x0,this[_0x42622b(0x19c)][_0x42622b(0x163)]['pipe'](_0xdde623[_0x42622b(0x11f)](this[_0x42622b(0xf7)]))['subscribe'](_0x56631e=>{const _0x1297cb=_0x42622b;switch(_0x56631e){case _0x405ccc[_0x1297cb(0x135)][_0x1297cb(0x177)]:this[_0x1297cb(0x102)]();break;case _0x405ccc[_0x1297cb(0x135)]['ONLINE']:this[_0x1297cb(0xba)]();break;}}),this['_collabSession'][_0x42622b(0x132)][_0x42622b(0xda)](_0xdde623[_0x42622b(0x11f)](this['dispose$']))[_0x42622b(0x13e)](_0x430583=>{const _0x495be5=_0x42622b,{eventID:_0x44aeed}=_0x430583;switch(_0x44aeed){case _0x4e00b2[_0x495be5(0xbb)][_0x495be5(0xea)]:this[_0x495be5(0x184)](_0x430583);break;case _0x4e00b2[_0x495be5(0xbb)][_0x495be5(0x14c)]:this[_0x495be5(0x145)](_0x430583);break;case _0x4e00b2[_0x495be5(0xbb)][_0x495be5(0xfe)]:this['_handleTerminate']();break;case _0x4e00b2[_0x495be5(0xbb)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x430583);break;}}));}[_0xae0692(0x116)](){const _0x26a503=_0xae0692;this[_0x26a503(0x19c)][_0x26a503(0x11b)]({'eventID':_0x4e00b2['CollaborationEvent'][_0x26a503(0x195)],'data':{'unitID':this[_0x26a503(0xb6)],'userID':this[_0x26a503(0x19c)][_0x26a503(0x15c)]()}},this[_0x26a503(0xb6)]);}['stopPresenting'](){const _0x443a7c=_0xae0692;this[_0x443a7c(0x170)]===_0x443a7c(0xcc)&&(this[_0x443a7c(0xfd)][_0x443a7c(0xcf)](_0x443a7c(0xd4)),this[_0x443a7c(0x19c)][_0x443a7c(0x11b)]({'eventID':_0x4e00b2[_0x443a7c(0xbb)][_0x443a7c(0xfe)],'data':{'unitID':this[_0x443a7c(0xb6)]}},this[_0x443a7c(0xb6)]));}['startFollowing'](){const _0x550cd4=_0xae0692;this[_0x550cd4(0x170)]===_0x550cd4(0x136)&&(this[_0x550cd4(0xfd)][_0x550cd4(0xcf)](_0x550cd4(0x189)),this[_0x550cd4(0xb5)]());}[_0xae0692(0xfc)](){const _0x65c717=_0xae0692;this[_0x65c717(0x170)]===_0x65c717(0x189)&&this[_0x65c717(0x15f)]();}[_0xae0692(0x184)](_0x3cc054){const _0x3eb7c9=_0xae0692,{presenter:_0x214701}=_0x3cc054[_0x3eb7c9(0x113)],_0x550aa4=this['_collabSession'][_0x3eb7c9(0x15c)]();this[_0x3eb7c9(0xfb)]=_0x214701,_0x214701===_0x550aa4?(this[_0x3eb7c9(0x15f)](),this[_0x3eb7c9(0x108)]()):this[_0x3eb7c9(0x170)]!==_0x3eb7c9(0x136)&&(this[_0x3eb7c9(0x175)](),this[_0x3eb7c9(0xb5)]());}['_fetchOperations'](){const _0x4b641a=_0xae0692,_0x1cc8b6={'eventID':_0x4e00b2['CollaborationEvent'][_0x4b641a(0x152)]};this[_0x4b641a(0x19c)]['send'](_0x1cc8b6,this['_unitID']);}[_0xae0692(0x10b)](){const _0x2d5480=_0xae0692;this[_0x2d5480(0xfb)]=null,this[_0x2d5480(0x170)]!=='presenting'&&this[_0x2d5480(0x16c)]();}[_0xae0692(0xff)](_0x491a63){const _0x391274=_0xae0692;if(this['_status']==='following'&&this['_presenter']===_0x491a63[_0x391274(0x113)][_0x391274(0x17f)]){const _0x155f06=_0x4e00b2[_0x391274(0xca)](_0x491a63[_0x391274(0x113)])[_0x391274(0x12b)]['reverse']()['find'](_0x7535c3=>_0x7535c3['id']===_0x3cdbdd[_0x391274(0x17a)]['id']);if(_0x155f06){const _0xa87e90=_0x155f06[_0x391274(0xc1)][_0x391274(0xee)],_0x4e00a8=_0x155f06[_0x391274(0xc1)][_0x391274(0xcb)]['id'];setTimeout(()=>{const _0x416c21=_0x391274;this[_0x416c21(0x188)]['executeCommand'](_0x3cdbdd[_0x416c21(0x105)]['id'],{'unitId':_0xa87e90,'subUnitId':_0x4e00a8},{'fromCollab':!0x0});});}}}[_0xae0692(0x108)](){const _0x761a78=_0xae0692;this[_0x761a78(0xfd)][_0x761a78(0xcf)]('presenting');const _0x5ad8c1=new Map(),_0x1d8a19=this[_0x761a78(0x16f)]=new _0x1397df[(_0x761a78(0xc5))]();_0x1d8a19[_0x761a78(0x171)](_0x1397df['toDisposable'](()=>{const _0x4730fc=_0x761a78;_0x5ad8c1[_0x4730fc(0xbf)](_0xcf77fc=>_0xcf77fc[_0x4730fc(0x150)]()),_0x5ad8c1[_0x4730fc(0x15b)]();})),_0x1d8a19['add'](this[_0x761a78(0x188)][_0x761a78(0x165)](_0x363551=>{const _0x566c6c=_0x761a78;var _0x43380c;if(_0x363551[_0x566c6c(0x198)]!==_0x1397df[_0x566c6c(0x124)][_0x566c6c(0xe9)]||!this[_0x566c6c(0x13f)]['shouldShareOperation'](_0x363551['id']))return;const {id:_0x24b9e3}=_0x363551;let _0x25f08a;_0x5ad8c1[_0x566c6c(0x128)](_0x24b9e3)?_0x25f08a=_0x5ad8c1['get'](_0x24b9e3):(_0x25f08a=new _0x912b8[(_0x566c6c(0x127))](),_0x5ad8c1[_0x566c6c(0x122)](_0x24b9e3,_0x25f08a),_0x25f08a[_0x566c6c(0xda)](_0xdde623[_0x566c6c(0x13a)]((_0x43380c=this[_0x566c6c(0x19a)]['getConfig'](_0x1a4ba1))!=null?_0x43380c:_0x3e7848,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x566c6c(0x13e)](_0x23f599=>{const _0x3eedf7=_0x566c6c;this[_0x3eedf7(0x19c)][_0x3eedf7(0x11b)]({'eventID':_0x4e00b2[_0x3eedf7(0xbb)][_0x3eedf7(0x14c)],'data':{'unitID':this[_0x3eedf7(0xb6)],'operations':{[_0x23f599['id']]:{'id':_0x23f599['id'],'params':JSON['stringify'](_0x23f599[_0x3eedf7(0xc1)])}}}},this['_unitID']);})),_0x25f08a['next'](_0x363551);})),this[_0x761a78(0x13f)][_0x761a78(0x12c)](this[_0x761a78(0xb6)])['forEach'](_0x266a19=>this['_collabSession']['send']({'eventID':_0x4e00b2['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x761a78(0xb6)],'operations':{[_0x266a19['id']]:{'id':_0x266a19['id'],'params':JSON[_0x761a78(0x176)](_0x266a19['params'])}}}},this[_0x761a78(0xb6)]));}[_0xae0692(0x175)](){const _0x12a392=_0xae0692;var _0xf34590;this[_0x12a392(0xfd)][_0x12a392(0xcf)](_0x12a392(0xd4)),(_0xf34590=this[_0x12a392(0x16f)])==null||_0xf34590[_0x12a392(0x157)](),this[_0x12a392(0x16f)]=null;}[_0xae0692(0xb5)](){const _0x3d42fd=_0xae0692;var _0x4348e0;(_0x4348e0=this[_0x3d42fd(0x16f)])==null||_0x4348e0[_0x3d42fd(0x157)](),this[_0x3d42fd(0xfd)][_0x3d42fd(0xcf)]('following');}[_0xae0692(0x16c)](){const _0xd40040=_0xae0692;var _0x44ccee;this[_0xd40040(0xfd)][_0xd40040(0xcf)](_0xd40040(0xd4)),(_0x44ccee=this[_0xd40040(0x16f)])==null||_0x44ccee['dispose'](),this[_0xd40040(0x16f)]=null;}[_0xae0692(0x15f)](){const _0x4da205=_0xae0692;var _0x19045a;this[_0x4da205(0xfd)]['next']('not-following'),(_0x19045a=this[_0x4da205(0x16f)])==null||_0x19045a[_0x4da205(0x157)]();}['_handleOperation'](_0xfde2db){const _0x6d36eb=_0xae0692;if([_0x6d36eb(0xcc),_0x6d36eb(0x136),_0x6d36eb(0x156)]['includes'](this[_0x6d36eb(0x170)])||!_0xfde2db[_0x6d36eb(0x113)][_0x6d36eb(0x13c)]||_0xfde2db[_0x6d36eb(0x113)][_0x6d36eb(0x13c)]===this[_0x6d36eb(0x19c)][_0x6d36eb(0x15c)]())return;this[_0x6d36eb(0x170)]==='idle'&&this[_0x6d36eb(0xb5)]();const _0x15fb83=_0xfde2db[_0x6d36eb(0x113)][_0x6d36eb(0x18f)];Object[_0x6d36eb(0x126)](_0x15fb83)[_0x6d36eb(0xbf)](_0x2f63ff=>{const _0x47a085=_0x6d36eb;this['_commandService'][_0x47a085(0x149)](_0x2f63ff['id'],_0x2f63ff['params']?JSON['parse'](_0x2f63ff['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x20d663=_0xae0692;var _0xcd50ff;this[_0x20d663(0xfd)][_0x20d663(0xcf)](_0x20d663(0x156)),(_0xcd50ff=this[_0x20d663(0x16f)])==null||_0xcd50ff[_0x20d663(0x157)]();}[_0xae0692(0xba)](){const _0x470216=_0xae0692;this['_status$'][_0x470216(0xcf)](_0x470216(0xd4)),this[_0x470216(0xcd)]();}},_0x1d53d8['LiveShareCoordinator']=_0x558cf2([_0x286e77(0x2,_0x1397df[_0xae0692(0x16b)]),_0x286e77(0x3,_0x1397df['Inject'](_0x2aa38c)),_0x286e77(0x4,_0x1397df['ICommandService'])],_0x1d53d8['LiveShareCoordinator']);function _0x4ee34d(){const _0x2daf59=_0xae0692,_0xcdd38c=_0x4da58e[_0x2daf59(0x10f)](_0x1d53d8[_0x2daf59(0x12d)]),_0x96a6f=_0x4da58e[_0x2daf59(0x10f)](_0x1397df['IUniverInstanceService']),_0x116bd7=_0x4da58e[_0x2daf59(0xd6)](()=>_0x96a6f['getCurrentTypeOfUnit$'](_0x1397df['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x73a6ce,_0x2f9d87]=_0x34a161[_0x2daf59(0xc6)](null),[_0x587043,_0x53ba4b]=_0x34a161[_0x2daf59(0xc6)](_0x5d2a2f[_0x2daf59(0x10d)]),_0x24c711=_0x34a161[_0x2daf59(0x178)](null);return _0x34a161[_0x2daf59(0xb8)](()=>(_0x116bd7&&_0xcdd38c['getLiveShareCoordinator'](_0x116bd7[_0x2daf59(0x17d)]())['then'](_0x4e2e31=>{const _0x146213=_0x2daf59;_0x2f9d87(_0x4e2e31),_0x24c711[_0x146213(0x173)]=_0x4e2e31[_0x146213(0x15e)][_0x146213(0x13e)](_0x96a40d=>{_0x53ba4b(_0x96a40d);});}),()=>{const _0x4e2715=_0x2daf59;var _0x4a564c;(_0x4a564c=_0x24c711['current'])==null||_0x4a564c[_0x4e2715(0x193)](),_0x24c711['current']=null;}),[_0x116bd7,_0xcdd38c]),_0x73a6ce?_0x4e7be3[_0x2daf59(0x19b)](_0x1f13cb['Dropdown'],{'align':'end','disabled':_0x587043===_0x5d2a2f['OFFLINE'],'className':_0x2daf59(0xdb),'overlay':_0x4e7be3[_0x2daf59(0x19b)](_0x15408e,{'status':_0x587043,'coordinator':_0x73a6ce}),'children':_0x4e7be3[_0x2daf59(0x19b)](_0x2daf59(0x155),{'className':_0x1f13cb[_0x2daf59(0x140)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x587043===_0x5d2a2f[_0x2daf59(0x177)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x587043!==_0x5d2a2f['OFFLINE']}),'type':_0x2daf59(0x155),'children':_0x4e7be3[_0x2daf59(0x19b)](_0x21b4bb,{'className':_0x2daf59(0x14d)})})}):null;}function _0x15408e(_0x5acb55){const _0x4b7e75=_0xae0692,{status:_0x285649,coordinator:_0x526b70}=_0x5acb55;switch(_0x285649){case _0x5d2a2f[_0x4b7e75(0x10d)]:return _0x4e7be3[_0x4b7e75(0x19b)](_0xae5710,{'coordinator':_0x526b70});case _0x5d2a2f['FOLLOWING']:return _0x4e7be3[_0x4b7e75(0x19b)](_0x457e35,{'coordinator':_0x526b70});case _0x5d2a2f[_0x4b7e75(0xeb)]:return _0x4e7be3[_0x4b7e75(0x19b)](_0x56c882,{'coordinator':_0x526b70});case _0x5d2a2f[_0x4b7e75(0x177)]:return _0x4e7be3[_0x4b7e75(0x19b)](_0x47d51e,{});case _0x5d2a2f[_0x4b7e75(0x12e)]:return _0x4e7be3[_0x4b7e75(0x19b)](_0x4d191f,{'coordinator':_0x526b70});default:return null;}}function _0xae5710(_0x4a2af8){const _0x3675f7=_0xae0692,{coordinator:_0x3e00af}=_0x4a2af8;return _0x4e7be3[_0x3675f7(0x144)](_0x4e7be3[_0x3675f7(0xc2)],{'children':[_0x4e7be3['jsx'](_0x3675f7(0x10c),{'className':_0x3675f7(0xce),'children':_0x3675f7(0x186)}),_0x4e7be3[_0x3675f7(0x19b)](_0x1f13cb[_0x3675f7(0x172)],{'onClick':()=>_0x3e00af[_0x3675f7(0x116)](),'children':_0x3675f7(0x134)})]});}function _0x457e35(_0x9adbda){const _0x533cd0=_0xae0692,{coordinator:_0x15b2e9}=_0x9adbda;return _0x4e7be3[_0x533cd0(0x144)](_0x4e7be3[_0x533cd0(0xc2)],{'children':[_0x4e7be3['jsx'](_0x533cd0(0x10c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x533cd0(0x125)}),_0x4e7be3[_0x533cd0(0x19b)](_0x1f13cb[_0x533cd0(0x172)],{'onClick':()=>_0x15b2e9[_0x533cd0(0xfc)](),'children':'Stop\x20following'})]});}function _0x56c882(_0x4d50cc){const _0x3479cb=_0xae0692,{coordinator:_0x2bb6df}=_0x4d50cc;return _0x4e7be3[_0x3479cb(0x144)](_0x4e7be3['Fragment'],{'children':[_0x4e7be3['jsx'](_0x3479cb(0x10c),{'className':_0x3479cb(0xce),'children':_0x3479cb(0x167)}),_0x4e7be3[_0x3479cb(0x19b)](_0x1f13cb['Button'],{'variant':_0x3479cb(0x154),'onClick':()=>_0x2bb6df['startFollowing'](),'children':_0x3479cb(0xc9)})]});}function _0x4d191f(_0x1973d6){const _0x468d49=_0xae0692,{coordinator:_0x3a6aa2}=_0x1973d6;return _0x4e7be3[_0x468d49(0x144)](_0x4e7be3[_0x468d49(0xc2)],{'children':[_0x4e7be3[_0x468d49(0x19b)](_0x468d49(0x10c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x4e7be3['jsx'](_0x1f13cb['Button'],{'variant':_0x468d49(0x142),'onClick':()=>_0x3a6aa2[_0x468d49(0x103)](),'children':_0x468d49(0x164)})]});}function _0x47d51e(){const _0x2ef5e2=_0xae0692;return _0x4e7be3[_0x2ef5e2(0x19b)](_0x4e7be3[_0x2ef5e2(0xc2)],{'children':_0x2ef5e2(0x148)});}var _0x142a45=Object[_0xae0692(0x11c)],_0x576e4f=(_0x512136,_0x1321ae,_0x228931,_0x5072e1)=>{const _0x3c71ea=_0xae0692;for(var _0x45be2e=_0x5072e1>0x1?void 0x0:_0x5072e1?_0x142a45(_0x1321ae,_0x228931):_0x1321ae,_0x5db439=_0x512136[_0x3c71ea(0xe8)]-0x1,_0x599fe7;_0x5db439>=0x0;_0x5db439--)(_0x599fe7=_0x512136[_0x5db439])&&(_0x45be2e=_0x599fe7(_0x45be2e)||_0x45be2e);return _0x45be2e;},_0x30fa92=(_0x3cd562,_0x2d2c75)=>(_0x43c6b5,_0x452c86)=>_0x2d2c75(_0x43c6b5,_0x452c86,_0x3cd562);_0x1d53d8[_0xae0692(0xf0)]=class extends _0x1397df[_0xae0692(0x183)]{constructor(_0x903adb,_0x16315d){const _0x25ec17=_0xae0692;super(),this['_injector']=_0x903adb,this[_0x25ec17(0x18d)]=_0x16315d,this['_mountLiveShare']();}[_0xae0692(0xe6)](){const _0x27e8fe=_0xae0692;this[_0x27e8fe(0xf1)](this[_0x27e8fe(0x18d)][_0x27e8fe(0x120)](_0x4da58e['BuiltInUIPart'][_0x27e8fe(0xd0)],()=>_0x4da58e['connectInjector'](_0x4ee34d,this[_0x27e8fe(0x160)])));}},_0x1d53d8[_0xae0692(0xf0)]=_0x576e4f([_0x30fa92(0x0,_0x1397df[_0xae0692(0xd2)](_0x1397df[_0xae0692(0x18c)])),_0x30fa92(0x1,_0x4da58e['IUIPartsService'])],_0x1d53d8[_0xae0692(0xf0)]);const _0x3ed653=_0xae0692(0x161),_0xb1c6b={};var _0x5ebd2d=Object[_0xae0692(0x11c)],_0x21aef6=(_0x5eb4d0,_0x147885,_0x290cbd,_0x394d94)=>{for(var _0x1fdcc5=_0x394d94>0x1?void 0x0:_0x394d94?_0x5ebd2d(_0x147885,_0x290cbd):_0x147885,_0xa96662=_0x5eb4d0['length']-0x1,_0x126ec8;_0xa96662>=0x0;_0xa96662--)(_0x126ec8=_0x5eb4d0[_0xa96662])&&(_0x1fdcc5=_0x126ec8(_0x1fdcc5)||_0x1fdcc5);return _0x1fdcc5;},_0x384ebc=(_0x8106da,_0x18d231)=>(_0x10b812,_0x88ee13)=>_0x18d231(_0x10b812,_0x88ee13,_0x8106da);let _0x3c95c3=class extends _0x1397df[_0xae0692(0x183)]{constructor(_0x18c39c){const _0x39d19f=_0xae0692;super(),this[_0x39d19f(0x13f)]=_0x18c39c,this[_0x39d19f(0x12a)]();}['_init'](){const _0x42ae48=_0xae0692;[_0x56053b[_0x42ae48(0xd5)]['id'],_0x56053b[_0x42ae48(0x10e)]['id'],_0x3cdbdd[_0x42ae48(0x105)]['id']][_0x42ae48(0xbf)](_0x194370=>{const _0x3df671=_0x42ae48;this[_0x3df671(0xf1)](this[_0x3df671(0x13f)]['registerSharedOperation'](_0x194370));});}};_0x3c95c3=_0x21aef6([_0x384ebc(0x0,_0x1397df[_0xae0692(0xd2)](_0x2aa38c))],_0x3c95c3);var _0x5d8e7c=Object[_0xae0692(0x10a)],_0x77951a=Object[_0xae0692(0x11c)],_0x4aa0d2=(_0x31fbbe,_0x25b175,_0x413bd9)=>_0x25b175 in _0x31fbbe?_0x5d8e7c(_0x31fbbe,_0x25b175,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x413bd9}):_0x31fbbe[_0x25b175]=_0x413bd9,_0x13bed6=(_0x2b6ea4,_0x47326c,_0x48b597,_0xc404c9)=>{const _0x1569b5=_0xae0692;for(var _0x37da21=_0xc404c9>0x1?void 0x0:_0xc404c9?_0x77951a(_0x47326c,_0x48b597):_0x47326c,_0x4c352a=_0x2b6ea4[_0x1569b5(0xe8)]-0x1,_0x110db0;_0x4c352a>=0x0;_0x4c352a--)(_0x110db0=_0x2b6ea4[_0x4c352a])&&(_0x37da21=_0x110db0(_0x37da21)||_0x37da21);return _0x37da21;},_0x439e4a=(_0x5407b0,_0x5b7eed)=>(_0x2ed323,_0x4a1a34)=>_0x5b7eed(_0x2ed323,_0x4a1a34,_0x5407b0),_0x5d983f=(_0x56e38d,_0xd2ac93,_0x4c97e4)=>_0x4aa0d2(_0x56e38d,typeof _0xd2ac93!=_0xae0692(0x111)?_0xd2ac93+'':_0xd2ac93,_0x4c97e4);const _0x1adb4c=_0xae0692(0x199);_0x1d53d8[_0xae0692(0x17e)]=class extends _0x1397df[_0xae0692(0x118)]{constructor(_0x15b52b=_0xb1c6b,_0x3c34c4,_0x3f886e){const _0x37b8ca=_0xae0692;super(),this['_config']=_0x15b52b,this['_injector']=_0x3c34c4,this['_configService']=_0x3f886e;const {..._0x30ffb1}=_0x1397df[_0x37b8ca(0x143)]({},_0xb1c6b,this[_0x37b8ca(0xb4)]);this['_configService'][_0x37b8ca(0x18b)](_0x3ed653,_0x30ffb1);}[_0xae0692(0x15d)](){const _0x1d953b=_0xae0692;_0x1397df['registerDependencies'](this[_0x1d953b(0x160)],_0x1397df[_0x1d953b(0x158)]([[_0x2aa38c],[_0x1d53d8[_0x1d953b(0x12d)]],[_0x3c95c3],[_0x1d53d8[_0x1d953b(0xf0)]]],this[_0x1d953b(0xb4)][_0x1d953b(0xdf)])),_0x1397df[_0x1d953b(0xc0)](this[_0x1d953b(0x160)],[[_0x3c95c3]]);}[_0xae0692(0x13d)](){const _0x65b49a=_0xae0692;_0x1397df[_0x65b49a(0xc0)](this[_0x65b49a(0x160)],[[_0x1d53d8[_0x65b49a(0xf0)]]]);}},_0x5d983f(_0x1d53d8[_0xae0692(0x17e)],_0xae0692(0x198),_0x1397df[_0xae0692(0xdd)]['UNIVER_UNKNOWN']),_0x5d983f(_0x1d53d8['UniverLiveSharePlugin'],_0xae0692(0xe4),_0x1adb4c),_0x1d53d8[_0xae0692(0x17e)]=_0x13bed6([_0x1397df[_0xae0692(0x131)](_0x405ccc['UniverCollaborationClientPlugin']),_0x439e4a(0x1,_0x1397df['Inject'](_0x1397df[_0xae0692(0x18c)])),_0x439e4a(0x2,_0x1397df[_0xae0692(0x16b)])],_0x1d53d8[_0xae0692(0x17e)]),_0x1d53d8[_0xae0692(0xf5)]=_0x4ee34d,_0x1d53d8[_0xae0692(0x18a)]=_0x2aa38c,_0x1d53d8['LiveShareStatus']=_0x5d2a2f,Object[_0xae0692(0x10a)](_0x1d53d8,Symbol[_0xae0692(0x162)],{'value':_0xae0692(0x159)});}));function _0x2d88(_0x1a91e4,_0x12b8d4){_0x1a91e4=_0x1a91e4-0xb4;const _0x57dca2=_0x57dc();let _0x2d8852=_0x57dca2[_0x1a91e4];return _0x2d8852;}function _0x57dc(){const _0x48f159=['UniverProCollaboration','useEffect','_collabSessionService','_handleOnline','CollaborationEvent','2300630gOiEAj','operators','_sharedOperations','forEach','touchDependencies','params','Fragment','800RJDlRC','toDisposable','DisposableCollection','useState','UNIVER_SHEET','registerInitialStateReporter','Start\x20following','parseProtocolChangeset','sheet','presenting','_fetchOperations','univer-mb-3\x20univer-w-full\x20univer-text-sm','next','HEADER_MENU','UniverSheets','Inject','LiveShareIcon','idle','SetZoomRatioOperation','useObservable','string','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','requireSession','pipe','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','15ijxHuh','UniverInstanceType','1em','override','_startLiveShareCoordinator','toString','replace','mask','pluginName','@univerjs/sheets-ui','_mountLiveShare','svg','length','OPERATION','LIVESHARE_NEW_HOST','NOT_FOLLOWING','map','function','unitId','CollaborationSessionService','DesktopLiveShareController','disposeWithMe','getValue','getLiveShareCoordinatorSync','UniverDesign','LiveShare','9830942FqvHRO','dispose$','idSuffix','currentColor','includes','_presenter','stopFollowing','_status$','LIVESHARE_TERMINATE','_handleNewChangeSets','xlink:href','IUniverInstanceService','_handleOffline','stopPresenting','path','SetWorksheetActiveOperation','createElement','@univerjs/sheets','_startPresenting','_univerInstanceService','defineProperty','_handleTerminate','div','IDLE','SetScrollOperation','useDependency','BehaviorSubject','symbol','shouldShareOperation','data','30bORUsZ','react/jsx-runtime','tryStartPresenting','evenodd','Plugin','url(#$1','assign','send','getOwnPropertyDescriptor','tag','object','takeUntil','registerComponent','2997776iYhUaB','set','134533ucMVxU','CommandType','You\x27re\x20following\x20the\x20presenter','values','Subject','has','137980qQgiUD','_init','mutations','getInitialStates','LiveShareController','PRESENTING','React','FOLLOWING','DependentOn','event$','trim','Start','SessionStatus','not-following','univerjs-icon\x20univerjs-icon-','SAME_OPERATION_SHARE_INTERVAL','UniverCore','throttleTime','react','presenter','onRendered','subscribe','_liveShareService','clsx','getLiveShareCoordinator','default','merge','jsxs','_handleOperation','@univerjs/design','_entities','You\x27are\x20offline.','executeCommand','forwardRef','@univerjs/core','LIVESHARE_OPERATION','univer-size-4','UniverProLiveShare','@univerjs/ui','complete','http://www.w3.org/2000/svg','LIVESHARE_FETCH_OPERATIONS','asObservable','text','button','offline','dispose','mergeOverrideWithDependencies','Module','init','clear','getMemberID','onStarting','status$','_stopFollowing','_injector','live-share.config','toStringTag','sessionStatus$','Stop\x20presenting','onCommandExecuted','children','You\x27re\x20not\x20following\x20the\x20presenter','delete','entries','LiveShareCoordinator','IConfigService','_beIdle','attrs','UniverProCollaborationClient','_commandDisposable','_status','add','Button','current','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','_stopPresenting','stringify','OFFLINE','useRef','defIds','InsertSheetMutation','displayName','UniverIcon','getUnitId','UniverLiveSharePlugin','memberID','fill','253729ZlYJMp','live-share-icon','Disposable','_handleNewHost','6484MiuAjN','Present\x20this\x20document','defs','_commandService','following','LiveShareService','setConfig','Injector','_uiPartsService','RxDisposable','operations','get','18qOUcdz','0\x200\x2017\x2017','unsubscribe','UniverUi','LIVESHARE_REQUEST_HOST','rxjs','colorChannel1','type','UNIVER_LIVE_SHARE_PLUGIN','_configService','jsx','_collabSession','_reporters','_config','_startFollowing','_unitID'];_0x57dc=function(){return _0x48f159;};return _0x57dc();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.12.3",
3
+ "version": "0.12.4",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,14 +57,14 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.0.2",
60
- "@univerjs-pro/collaboration-client": "0.12.3",
61
- "@univerjs/core": "0.12.3",
62
- "@univerjs-pro/collaboration": "0.12.3",
63
- "@univerjs/engine-render": "0.12.3",
64
- "@univerjs/design": "0.12.3",
65
- "@univerjs/sheets": "0.12.3",
66
- "@univerjs/sheets-ui": "0.12.3",
67
- "@univerjs/ui": "0.12.3"
60
+ "@univerjs-pro/collaboration": "0.12.4",
61
+ "@univerjs-pro/collaboration-client": "0.12.4",
62
+ "@univerjs/core": "0.12.4",
63
+ "@univerjs/engine-render": "0.12.4",
64
+ "@univerjs/design": "0.12.4",
65
+ "@univerjs/sheets-ui": "0.12.4",
66
+ "@univerjs/ui": "0.12.4",
67
+ "@univerjs/sheets": "0.12.4"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -72,9 +72,9 @@
72
72
  "rxjs": "7.8.2",
73
73
  "tailwindcss": "^3.4.17",
74
74
  "typescript": "^5.9.3",
75
- "vite": "^7.2.4",
76
- "vitest": "^4.0.14",
77
- "@univerjs-infra/shared": "0.12.3",
75
+ "vite": "^7.2.6",
76
+ "vitest": "^4.0.15",
77
+ "@univerjs-infra/shared": "0.12.4",
78
78
  "@univerjs/protocol": "0.1.47"
79
79
  },
80
80
  "scripts": {