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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ 'use strict';const _0x397744=_0x3f8c;function _0x4e36(){const _0x5c6ef6=['FUniver','2440EOtUqo','13858031vNEGNd','getSheetId','getStatus','LiveShareController','_commandService','stopFollowing','getUnitId','startRow','170Gozvqb','extend','PRESENTING','168516QnqJWS','tryStartPresenting','executeCommand','SetScrollOperation','getLiveShareStatus','_initialize','FEnum','204460tSBMem','getActiveWorkbook','startPresenting','getActiveSheet','get','getLiveShareCoordinatorSync','2236Oadeyv','106694QTProC','3055620wEWBvO','No\x20active\x20workbook\x20found.','startFollowing','startColumn','24MXbAiJ','9YvenQN','FRange','156345ejIFtg','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','syncExecuteCommand','IDLE','_injector','LiveShareStatus','getId'];_0x4e36=function(){return _0x5c6ef6;};return _0x4e36();}(function(_0x403a39,_0x385244){const _0xda8f2=_0x3f8c,_0x2b5bfe=_0x403a39();while(!![]){try{const _0x4416d=-parseInt(_0xda8f2(0xdc))/0x1+parseInt(_0xda8f2(0xcd))/0x2*(parseInt(_0xda8f2(0xda))/0x3)+-parseInt(_0xda8f2(0xd3))/0x4*(parseInt(_0xda8f2(0xe4))/0x5)+-parseInt(_0xda8f2(0xd5))/0x6+-parseInt(_0xda8f2(0xd4))/0x7*(parseInt(_0xda8f2(0xd9))/0x8)+-parseInt(_0xda8f2(0xc6))/0x9*(parseInt(_0xda8f2(0xc3))/0xa)+parseInt(_0xda8f2(0xe5))/0xb;if(_0x4416d===_0x385244)break;else _0x2b5bfe['push'](_0x2b5bfe['shift']());}catch(_0x38bf1c){_0x2b5bfe['push'](_0x2b5bfe['shift']());}}}(_0x4e36,0x40786));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d[_0x397744(0xdb)]{[_0x397744(0xcb)](_0x2df147,_0x2a0fa1,_0x3fe84e,_0x7946e5,_0x51dbcd){const _0x422b36=_0x397744,_0x26a996=_0x2df147[_0x422b36(0xd1)](n[_0x422b36(0xe8)]),_0x1326d5=_0x2df147[_0x422b36(0xd1)](g['IRenderManagerService']),_0x379d38=_0x2a0fa1[_0x422b36(0xc1)](),_0x524392=_0x2a0fa1[_0x422b36(0xd0)](),_0x4284d6=_0x26a996[_0x422b36(0xd2)](_0x379d38);(_0x4284d6==null?void 0x0:_0x4284d6[_0x422b36(0xe7)]())!==n[_0x422b36(0xe1)][_0x422b36(0xc5)]||(_0x3fe84e[_0x422b36(0xe6)]()!==_0x524392[_0x422b36(0xe6)]()&&this[_0x422b36(0xe9)][_0x422b36(0xc8)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x379d38,'subUnitId':_0x3fe84e[_0x422b36(0xe6)]()}),!_0x1326d5['getRenderById'](_0x379d38))||_0x51dbcd[_0x422b36(0xde)](f[_0x422b36(0xc9)]['id'],{'unitId':_0x2a0fa1[_0x422b36(0xc1)](),'sheetId':_0x3fe84e[_0x422b36(0xe6)](),'sheetViewStartRow':_0x7946e5[_0x422b36(0xc2)],'sheetViewStartColumn':_0x7946e5[_0x422b36(0xd8)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x397744(0xdb)][_0x397744(0xc4)](w);class C extends a[_0x397744(0xe3)]{[_0x397744(0xca)](){const _0x4cc0e5=_0x397744;var _0x19be7d,_0x405d84;const _0x18c478=this[_0x4cc0e5(0xe0)]['get'](n[_0x4cc0e5(0xe8)]),_0x5a3e5e=(_0x19be7d=this['getActiveWorkbook']())==null?void 0x0:_0x19be7d['getId']();if(!_0x5a3e5e)throw new Error(_0x4cc0e5(0xd6));const _0x4ff872=_0x18c478[_0x4cc0e5(0xd2)](_0x5a3e5e);return(_0x405d84=_0x4ff872==null?void 0x0:_0x4ff872['getStatus']())!=null?_0x405d84:n['LiveShareStatus'][_0x4cc0e5(0xdf)];}[_0x397744(0xd7)](){const _0x153e92=_0x397744;var _0xe14ca2;const _0x2cdf5e=this['_injector'][_0x153e92(0xd1)](n[_0x153e92(0xe8)]),_0x1c8c95=(_0xe14ca2=this[_0x153e92(0xce)]())==null?void 0x0:_0xe14ca2['getId']();if(!_0x1c8c95)throw new Error(_0x153e92(0xd6));const _0x52b5c4=_0x2cdf5e[_0x153e92(0xd2)](_0x1c8c95);if(!_0x52b5c4)throw new Error(_0x153e92(0xdd));_0x52b5c4[_0x153e92(0xd7)]();}['stopFollowing'](){const _0x5d0555=_0x397744;var _0x4a9968;const _0x144ddb=this[_0x5d0555(0xe0)][_0x5d0555(0xd1)](n[_0x5d0555(0xe8)]),_0x5892a3=(_0x4a9968=this[_0x5d0555(0xce)]())==null?void 0x0:_0x4a9968[_0x5d0555(0xe2)]();if(!_0x5892a3)throw new Error('No\x20active\x20workbook\x20found.');const _0x19a7d2=_0x144ddb['getLiveShareCoordinatorSync'](_0x5892a3);if(!_0x19a7d2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x19a7d2[_0x5d0555(0xea)]();}[_0x397744(0xcf)](){const _0x4703dd=_0x397744;var _0x2bcc93;const _0x1a3162=this[_0x4703dd(0xe0)][_0x4703dd(0xd1)](n[_0x4703dd(0xe8)]),_0x53373b=(_0x2bcc93=this[_0x4703dd(0xce)]())==null?void 0x0:_0x2bcc93['getId']();if(!_0x53373b)throw new Error('No\x20active\x20workbook\x20found.');const _0x78f1ad=_0x1a3162['getLiveShareCoordinatorSync'](_0x53373b);if(!_0x78f1ad)throw new Error(_0x4703dd(0xdd));_0x78f1ad[_0x4703dd(0xc7)]();}['stopPresenting'](){const _0x3cd62f=_0x397744;var _0x289428;const _0xb39f9e=this[_0x3cd62f(0xe0)][_0x3cd62f(0xd1)](n[_0x3cd62f(0xe8)]),_0x534096=(_0x289428=this[_0x3cd62f(0xce)]())==null?void 0x0:_0x289428['getId']();if(!_0x534096)throw new Error(_0x3cd62f(0xd6));const _0x2aebe1=_0xb39f9e[_0x3cd62f(0xd2)](_0x534096);if(!_0x2aebe1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2aebe1['stopPresenting']();}}a[_0x397744(0xe3)][_0x397744(0xc4)](C);class L extends a[_0x397744(0xcc)]{get['LiveShareStatusEnum'](){const _0xffed7b=_0x397744;return n[_0xffed7b(0xe1)];}}function _0x3f8c(_0x279842,_0x5debce){const _0x4e3634=_0x4e36();return _0x3f8c=function(_0x3f8c9c,_0x17069e){_0x3f8c9c=_0x3f8c9c-0xc1;let _0x1a7c86=_0x4e3634[_0x3f8c9c];return _0x1a7c86;},_0x3f8c(_0x279842,_0x5debce);}a[_0x397744(0xcc)]['extend'](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x494188=_0x1cfd;(function(_0x3bf652,_0x268a1f){var _0x2ae28a=_0x1cfd,_0x2ab953=_0x3bf652();while(!![]){try{var _0x534466=-parseInt(_0x2ae28a(0x1eb))/0x1+-parseInt(_0x2ae28a(0x188))/0x2*(-parseInt(_0x2ae28a(0x1f1))/0x3)+parseInt(_0x2ae28a(0x1f0))/0x4*(parseInt(_0x2ae28a(0x1a8))/0x5)+-parseInt(_0x2ae28a(0x1e4))/0x6+parseInt(_0x2ae28a(0x1b7))/0x7*(-parseInt(_0x2ae28a(0x265))/0x8)+-parseInt(_0x2ae28a(0x1e0))/0x9+parseInt(_0x2ae28a(0x207))/0xa*(parseInt(_0x2ae28a(0x21b))/0xb);if(_0x534466===_0x268a1f)break;else _0x2ab953['push'](_0x2ab953['shift']());}catch(_0x452772){_0x2ab953['push'](_0x2ab953['shift']());}}}(_0x5736,0x2c3bc));var U=Object[_0x494188(0x23a)],F=(_0x4b45a6,_0x3f811e,_0x35175d)=>_0x3f811e in _0x4b45a6?U(_0x4b45a6,_0x3f811e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35175d}):_0x4b45a6[_0x3f811e]=_0x35175d,v=(_0x5a1767,_0x59ef00,_0x41ab7d)=>F(_0x5a1767,typeof _0x59ef00!=_0x494188(0x1da)?_0x59ef00+'':_0x59ef00,_0x41ab7d);Object['defineProperty'](exports,Symbol[_0x494188(0x1f3)],{'value':_0x494188(0x199)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x287457=_0x494188;return u=Object['assign']||function(_0x2666a9){var _0xbadda3=_0x1cfd;for(var _0x127e25,_0x4bebed=0x1,_0x5294f5=arguments[_0xbadda3(0x194)];_0x4bebed<_0x5294f5;_0x4bebed++){_0x127e25=arguments[_0x4bebed];for(var _0x426025 in _0x127e25)Object[_0xbadda3(0x236)][_0xbadda3(0x193)]['call'](_0x127e25,_0x426025)&&(_0x2666a9[_0x426025]=_0x127e25[_0x426025]);}return _0x2666a9;},u[_0x287457(0x198)](this,arguments);},$=function(_0x30a14f,_0x3b60d5){var _0x5d6391=_0x494188,_0x19ae7f={};for(var _0xad81c0 in _0x30a14f)Object['prototype'][_0x5d6391(0x193)][_0x5d6391(0x1bf)](_0x30a14f,_0xad81c0)&&_0x3b60d5[_0x5d6391(0x1dc)](_0xad81c0)<0x0&&(_0x19ae7f[_0xad81c0]=_0x30a14f[_0xad81c0]);if(_0x30a14f!=null&&typeof Object[_0x5d6391(0x1d2)]==_0x5d6391(0x267)){for(var _0x2cdf7c=0x0,_0xad81c0=Object[_0x5d6391(0x1d2)](_0x30a14f);_0x2cdf7c<_0xad81c0[_0x5d6391(0x194)];_0x2cdf7c++)_0x3b60d5[_0x5d6391(0x1dc)](_0xad81c0[_0x2cdf7c])<0x0&&Object[_0x5d6391(0x236)][_0x5d6391(0x260)][_0x5d6391(0x1bf)](_0x30a14f,_0xad81c0[_0x2cdf7c])&&(_0x19ae7f[_0xad81c0[_0x2cdf7c]]=_0x30a14f[_0xad81c0[_0x2cdf7c]]);}return _0x19ae7f;},j=f[_0x494188(0x1b1)](function(_0xc291a3,_0xa92bcf){var _0x47ae9d=_0x494188,_0x1daf9f=_0xc291a3['icon'],_0x370559=_0xc291a3['id'],_0x5ceda2=_0xc291a3[_0x47ae9d(0x217)],_0x2ab4d2=_0xc291a3['extend'],_0x324662=$(_0xc291a3,[_0x47ae9d(0x264),'id',_0x47ae9d(0x217),_0x47ae9d(0x223)]),_0x3d08d4=_0x47ae9d(0x200)['concat'](_0x370559,'\x20')['concat'](_0x5ceda2||'')[_0x47ae9d(0x213)](),_0x366fac=f[_0x47ae9d(0x19d)]('_'[_0x47ae9d(0x21e)](k()));return y(_0x1daf9f,''[_0x47ae9d(0x21e)](_0x370559),{'defIds':_0x1daf9f['defIds'],'idSuffix':_0x366fac['current']},u({'ref':_0xa92bcf,'className':_0x3d08d4},_0x324662),_0x2ab4d2);});function y(_0x233ab0,_0x32f4e5,_0x4b2a98,_0x3a5663,_0xbc19fb){var _0x202ad4=_0x494188;return f[_0x202ad4(0x22a)](_0x233ab0[_0x202ad4(0x1ce)],u(u({'key':_0x32f4e5},H(_0x233ab0,_0x4b2a98,_0xbc19fb)),_0x3a5663),(V(_0x233ab0,_0x4b2a98)[_0x202ad4(0x227)]||[])[_0x202ad4(0x1ab)](function(_0x1dc582,_0x5d813){var _0x14edcd=_0x202ad4;return y(_0x1dc582,''[_0x14edcd(0x21e)](_0x32f4e5,'-')[_0x14edcd(0x21e)](_0x233ab0['tag'],'-')[_0x14edcd(0x21e)](_0x5d813),_0x4b2a98,void 0x0,_0xbc19fb);}));}function H(_0x245c5f,_0xcc9abe,_0x176f5e){var _0x1183a9=_0x494188,_0x5564e2=u({},_0x245c5f[_0x1183a9(0x1ea)]);_0x176f5e!=null&&_0x176f5e[_0x1183a9(0x1a1)]&&_0x5564e2[_0x1183a9(0x251)]===_0x1183a9(0x1a1)&&(_0x5564e2[_0x1183a9(0x251)]=_0x176f5e[_0x1183a9(0x1a1)]),_0x245c5f[_0x1183a9(0x1ce)]==='mask'&&_0x5564e2['id']&&(_0x5564e2['id']=_0x5564e2['id']+_0xcc9abe[_0x1183a9(0x237)]),Object['entries'](_0x5564e2)[_0x1183a9(0x1d8)](function(_0x2d5866){var _0xb4f477=_0x1183a9,_0x145c37=_0x2d5866[0x0],_0x2b301f=_0x2d5866[0x1];_0x145c37===_0xb4f477(0x231)&&typeof _0x2b301f=='string'&&(_0x5564e2[_0x145c37]=_0x2b301f['replace'](/url\(#(.*)\)/,_0xb4f477(0x256)[_0xb4f477(0x21e)](_0xcc9abe['idSuffix'],')')));});var _0x5dba6d=_0xcc9abe[_0x1183a9(0x1c0)];return!_0x5dba6d||_0x5dba6d[_0x1183a9(0x194)]===0x0||(_0x245c5f[_0x1183a9(0x1ce)]===_0x1183a9(0x228)&&_0x5564e2[_0x1183a9(0x21f)]&&(_0x5564e2[_0x1183a9(0x21f)]=_0x5564e2[_0x1183a9(0x21f)]+_0xcc9abe[_0x1183a9(0x237)]),Object[_0x1183a9(0x23f)](_0x5564e2)[_0x1183a9(0x1d8)](function(_0x53b5f8){var _0x353c6f=_0x1183a9,_0x4abd84=_0x53b5f8[0x0],_0x4d7018=_0x53b5f8[0x1];typeof _0x4d7018==_0x353c6f(0x240)&&(_0x5564e2[_0x4abd84]=_0x4d7018[_0x353c6f(0x1fb)](/url\(#(.*)\)/,_0x353c6f(0x256)[_0x353c6f(0x21e)](_0xcc9abe[_0x353c6f(0x237)],')')));})),_0x5564e2;}function V(_0x3cfac0,_0x3f88e6){var _0x392400=_0x494188,_0x2f9a7f,_0x2058e7=_0x3f88e6[_0x392400(0x1c0)];return!_0x2058e7||_0x2058e7[_0x392400(0x194)]===0x0?_0x3cfac0:_0x3cfac0[_0x392400(0x1ce)]===_0x392400(0x233)&&(!((_0x2f9a7f=_0x3cfac0[_0x392400(0x227)])===null||_0x2f9a7f===void 0x0)&&_0x2f9a7f['length'])?u(u({},_0x3cfac0),{'children':_0x3cfac0[_0x392400(0x227)][_0x392400(0x1ab)](function(_0x5eddd4){var _0x216381=_0x392400;return typeof _0x5eddd4[_0x216381(0x1ea)]['id']==_0x216381(0x240)&&_0x2058e7&&_0x2058e7[_0x216381(0x1d0)](_0x5eddd4[_0x216381(0x1ea)]['id'])?u(u({},_0x5eddd4),{'attrs':u(u({},_0x5eddd4[_0x216381(0x1ea)]),{'id':_0x5eddd4[_0x216381(0x1ea)]['id']+_0x3f88e6[_0x216381(0x237)]})}):_0x5eddd4;})}):_0x3cfac0;}function k(){var _0x20f43a=_0x494188;return Math['random']()['toString'](0x24)[_0x20f43a(0x1ac)](0x2,0x8);}j[_0x494188(0x18b)]=_0x494188(0x232);var M={'tag':'svg','attrs':{'xmlns':_0x494188(0x195),'fill':_0x494188(0x22c),'viewBox':_0x494188(0x261),'width':_0x494188(0x20d),'height':_0x494188(0x20d)},'children':[{'tag':_0x494188(0x216),'attrs':{'fill':_0x494188(0x1fe),'d':_0x494188(0x1c4)}},{'tag':'path','attrs':{'fill':_0x494188(0x1fe),'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':_0x494188(0x20f),'clipRule':_0x494188(0x20f)}}]},P=f['forwardRef'](function(_0x39074d,_0x219869){var _0x3e9e3f=_0x494188;return f[_0x3e9e3f(0x22a)](j,Object['assign']({},_0x39074d,{'id':_0x3e9e3f(0x1af),'ref':_0x219869,'icon':M}));});function _0x5736(){var _0x3d3bbc=['has','_status','You\x27are\x20offline.','onStarting','disposeWithMe','throttleTime','_commandDisposable','onCommandExecuted','LIVESHARE_OPERATION','propertyIsEnumerable','0\x200\x2017\x2017','_uiPartsService','shouldShareOperation','icon','48EoLLlS','jsxs','function','connectInjector','BehaviorSubject','pipe','LiveShareController','271494PTStmj','Plugin','IUniverInstanceService','displayName','getCurrentTypeOfUnit$','parseProtocolChangeset','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','type','touchDependencies','_startPresenting','getConfig','hasOwnProperty','length','http://www.w3.org/2000/svg','You\x27re\x20not\x20following\x20the\x20presenter','init','apply','Module','Injector','_startFollowing','Fragment','useRef','delete','send','complete','colorChannel1','Button','executeCommand','values','stopFollowing','_startLiveShareCoordinator','LiveShareService','5xXEKwm','CollaborationSessionService','UNIVER_SHEET','map','substring','get','tryStartPresenting','live-share-icon','_liveShareService','forwardRef','getOwnPropertyDescriptor','_collabSessionService','_stopPresenting','NOT_FOLLOWING','_handleOperation','173187EAdxjk','operations','SessionStatus','_handleNewHost','UNIVER_UNKNOWN','offline','SetWorksheetActiveOperation','FOLLOWING','call','defIds','_handleNewChangeSets','RxDisposable','find','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','_commandService','IDLE','CollaborationEvent','button','LiveShareCoordinator','_collabSession','reverse','You\x27re\x20following\x20the\x20presenter','UniverLiveSharePlugin','tag','then','includes','memberID','getOwnPropertySymbols','following','next','_stopFollowing','Inject','current','forEach','from','symbol','IUIPartsService','indexOf','DesktopLiveShareController','SetZoomRatioOperation','CommandType','2523141DRfixQ','default','presenting','_config','2062980ZmadMk','not-following','LIVESHARE_REQUEST_HOST','useDependency','getMemberID','params','attrs','39548ORzSZz','mutations','Start\x20following','DependentOn','getUnitId','1203880IZKNZV','6kYFgJy','_unitID','toStringTag','HEADER_MENU','Disposable','ONLINE','OFFLINE','data','clear','OPERATION','replace','UniverInstanceType','_sharedOperations','currentColor','_beIdle','univerjs-icon\x20univerjs-icon-','jsx','registerSharedOperation','add','toDisposable','registerInitialStateReporter','_status$','4208890aiTdjK','div','UniverCollaborationClientPlugin','useState','subscribe','startFollowing','1em','registerComponent','evenodd','_configService','PRESENTING','univer-size-4','trim','You\x27re\x20presenting\x20the\x20document','LIVESHARE_FETCH_OPERATIONS','path','className','live-share.config','idle','Subject','11jfbbyo','_init','_entities','concat','xlink:href','dispose','useEffect','requireSession','extend','getTypeOfUnitAdded$','takeUntil','override','children','use','end','createElement','LiveShare','none','UNIVER_LIVE_SHARE_PLUGIN','unsubscribe','presenter','_mountLiveShare','mask','UniverIcon','defs','_handleOnline','useObservable','prototype','idSuffix','NEW_CHANGESETS','stopPresenting','defineProperty','set','dispose$','_handleTerminate','_presenter','entries','string','_univerInstanceService','_reporters','Present\x20this\x20document','Dropdown','stringify','getInitialStates','univer-mb-3\x20univer-w-full\x20univer-text-sm','SetScrollOperation','LiveShareStatus','pluginName','onRendered','_handleOffline','getValue','text','LIVESHARE_NEW_HOST','InsertSheetMutation','fill','_injector','BuiltInUIPart','IConfigService','Start','url(#$1'];_0x5736=function(){return _0x3d3bbc;};return _0x5736();}P[_0x494188(0x18b)]='LiveShareIcon';class O extends o[_0x494188(0x1f5)]{constructor(){var _0x2f0493=_0x494188;super(...arguments),v(this,_0x2f0493(0x1fd),new Set()),v(this,'_reporters',new Set());}[_0x494188(0x202)](_0x44b467){var _0x22df32=_0x494188;return this[_0x22df32(0x1fd)][_0x22df32(0x203)](_0x44b467),o[_0x22df32(0x204)](()=>this[_0x22df32(0x1fd)][_0x22df32(0x19e)](_0x44b467));}[_0x494188(0x205)](_0x2af5e0){var _0x367d07=_0x494188;return this[_0x367d07(0x242)]['add'](_0x2af5e0),o[_0x367d07(0x204)](()=>this[_0x367d07(0x242)][_0x367d07(0x19e)](_0x2af5e0));}[_0x494188(0x263)](_0x237e6d){var _0x6f0700=_0x494188;return this[_0x6f0700(0x1fd)][_0x6f0700(0x257)](_0x237e6d);}['getInitialStates'](_0x31aa5f){var _0x2c9972=_0x494188;return Array[_0x2c9972(0x1d9)](this['_reporters'])[_0x2c9972(0x1ab)](_0x4b9150=>_0x4b9150(_0x31aa5f));}}var q=Object[_0x494188(0x1b2)],R=(_0x7a92e1,_0xe8fa39,_0x5c04b8,_0x520392)=>{var _0x2d6992=_0x494188;for(var _0x32e0ba=_0x520392>0x1?void 0x0:_0x520392?q(_0xe8fa39,_0x5c04b8):_0xe8fa39,_0x2260db=_0x7a92e1[_0x2d6992(0x194)]-0x1,_0x2d4806;_0x2260db>=0x0;_0x2260db--)(_0x2d4806=_0x7a92e1[_0x2260db])&&(_0x32e0ba=_0x2d4806(_0x32e0ba)||_0x32e0ba);return _0x32e0ba;},S=(_0x22ebeb,_0x40c6cd)=>(_0x4c6a04,_0x41208d)=>_0x40c6cd(_0x4c6a04,_0x41208d,_0x22ebeb);exports[_0x494188(0x187)]=class extends o[_0x494188(0x1c2)]{constructor(_0x139f2a,_0x5c9141,_0x4dacd8){var _0x4b2ad3=_0x494188;super(),v(this,_0x4b2ad3(0x21d),new Map()),(this[_0x4b2ad3(0x241)]=_0x139f2a,this[_0x4b2ad3(0x252)]=_0x5c9141,this[_0x4b2ad3(0x1b3)]=_0x4dacd8,this['_init']());}async['getLiveShareCoordinator'](_0x4049b8){var _0x52eb65=_0x494188;return this['_entities'][_0x52eb65(0x257)](_0x4049b8)||await this[_0x52eb65(0x1a6)](_0x4049b8),this[_0x52eb65(0x21d)]['get'](_0x4049b8);}[_0x494188(0x21c)](){var _0x51bffc=_0x494188;this[_0x51bffc(0x241)][_0x51bffc(0x224)](o['UniverInstanceType'][_0x51bffc(0x1aa)])[_0x51bffc(0x186)](b[_0x51bffc(0x225)](this[_0x51bffc(0x23c)]))['subscribe'](async _0x1bb286=>{var _0x211cd8=_0x51bffc;const _0x5e412d=_0x1bb286[_0x211cd8(0x1ef)]();this[_0x211cd8(0x21d)][_0x211cd8(0x257)](_0x5e412d)||this[_0x211cd8(0x1a6)](_0x5e412d);}),this[_0x51bffc(0x241)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x51bffc(0x1aa)])[_0x51bffc(0x186)](b[_0x51bffc(0x225)](this[_0x51bffc(0x23c)]))[_0x51bffc(0x20b)](_0x2e28e1=>{var _0x574bf0=_0x51bffc;const _0x140b0f=_0x2e28e1['getUnitId'](),_0x4f6b11=this[_0x574bf0(0x21d)][_0x574bf0(0x1ad)](_0x140b0f);_0x4f6b11==null||_0x4f6b11[_0x574bf0(0x220)]();});}async[_0x494188(0x1a6)](_0x3082dc){var _0x59e61f=_0x494188;const _0x3d7242=await this['_collabSessionService'][_0x59e61f(0x222)](_0x3082dc),_0x28cf0d=this['_injector']['createInstance'](exports[_0x59e61f(0x1c9)],_0x3082dc,_0x3d7242);return _0x28cf0d[_0x59e61f(0x197)](),this[_0x59e61f(0x21d)][_0x59e61f(0x23b)](_0x3082dc,_0x28cf0d),_0x28cf0d;}},exports[_0x494188(0x187)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x494188(0x1d6)](o[_0x494188(0x19a)])),S(0x2,o[_0x494188(0x1d6)](m[_0x494188(0x1a9)]))],exports[_0x494188(0x187)]);var h=(_0x5b1b05=>(_0x5b1b05[_0x494188(0x1f7)]=_0x494188(0x1bc),_0x5b1b05['IDLE']=_0x494188(0x219),_0x5b1b05[_0x494188(0x1be)]=_0x494188(0x1d3),_0x5b1b05['NOT_FOLLOWING']=_0x494188(0x1e5),_0x5b1b05[_0x494188(0x211)]='presenting',_0x5b1b05))(h||{});const W='SAME_OPERATION_SHARE_INTERVAL',G=0xc8;exports[_0x494188(0x1c9)]=class extends o[_0x494188(0x1c2)]{constructor(_0xb760a4,_0x177e21,_0x2884f5,_0xe8d0f2,_0x3944a4){var _0xc09fe4=_0x494188;super(),v(this,_0xc09fe4(0x206),new w[(_0xc09fe4(0x185))](_0xc09fe4(0x219))),v(this,'status$',this['_status$']['asObservable']()),v(this,'_init',!0x1),v(this,_0xc09fe4(0x25d),null),v(this,_0xc09fe4(0x23e),null),(this['_unitID']=_0xb760a4,this[_0xc09fe4(0x1ca)]=_0x177e21,this[_0xc09fe4(0x210)]=_0x2884f5,this[_0xc09fe4(0x1b0)]=_0xe8d0f2,this['_commandService']=_0x3944a4);}get[_0x494188(0x258)](){var _0x29a618=_0x494188;return this[_0x29a618(0x206)][_0x29a618(0x24d)]();}[_0x494188(0x220)](){var _0x5058ad=_0x494188,_0x26b093;(_0x26b093=this[_0x5058ad(0x25d)])==null||_0x26b093[_0x5058ad(0x220)](),this[_0x5058ad(0x206)][_0x5058ad(0x1d4)](_0x5058ad(0x219)),this['_status$'][_0x5058ad(0x1a0)]();}[_0x494188(0x197)](){var _0x43d172=_0x494188;this['_init']||(this[_0x43d172(0x21c)]=!0x0,this[_0x43d172(0x1ca)]['sessionStatus$'][_0x43d172(0x186)](b[_0x43d172(0x225)](this[_0x43d172(0x23c)]))['subscribe'](_0x39e11f=>{var _0x2aa6cc=_0x43d172;switch(_0x39e11f){case m['SessionStatus']['OFFLINE']:this[_0x2aa6cc(0x24c)]();break;case m[_0x2aa6cc(0x1b9)][_0x2aa6cc(0x1f6)]:this[_0x2aa6cc(0x234)]();break;}}),this['_collabSession']['event$']['pipe'](b['takeUntil'](this[_0x43d172(0x23c)]))[_0x43d172(0x20b)](_0x6fb3f6=>{var _0x38ebc3=_0x43d172;const {eventID:_0x4eb884}=_0x6fb3f6;switch(_0x4eb884){case _['CollaborationEvent'][_0x38ebc3(0x24f)]:this[_0x38ebc3(0x1ba)](_0x6fb3f6);break;case _[_0x38ebc3(0x1c7)]['LIVESHARE_OPERATION']:this[_0x38ebc3(0x1b6)](_0x6fb3f6);break;case _['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x38ebc3(0x23d)]();break;case _[_0x38ebc3(0x1c7)][_0x38ebc3(0x238)]:this[_0x38ebc3(0x1c1)](_0x6fb3f6);break;}}));}[_0x494188(0x1ae)](){var _0x156709=_0x494188;this['_collabSession'][_0x156709(0x19f)]({'eventID':_['CollaborationEvent'][_0x156709(0x1e6)],'data':{'unitID':this[_0x156709(0x1f2)],'userID':this['_collabSession']['getMemberID']()}},this[_0x156709(0x1f2)]);}[_0x494188(0x239)](){var _0x29d1cc=_0x494188;this[_0x29d1cc(0x258)]==='presenting'&&(this[_0x29d1cc(0x206)][_0x29d1cc(0x1d4)](_0x29d1cc(0x219)),this['_collabSession'][_0x29d1cc(0x19f)]({'eventID':_[_0x29d1cc(0x1c7)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x29d1cc(0x1f2)]}},this[_0x29d1cc(0x1f2)]));}[_0x494188(0x20c)](){var _0x3ccd49=_0x494188;this[_0x3ccd49(0x258)]==='not-following'&&(this[_0x3ccd49(0x206)][_0x3ccd49(0x1d4)](_0x3ccd49(0x1d3)),this[_0x3ccd49(0x19b)]());}[_0x494188(0x1a5)](){var _0x282460=_0x494188;this[_0x282460(0x258)]==='following'&&this[_0x282460(0x1d5)]();}[_0x494188(0x1ba)](_0x1eda81){var _0x4b27aa=_0x494188;const {presenter:_0x2fec6f}=_0x1eda81[_0x4b27aa(0x1f8)],_0x57770c=this[_0x4b27aa(0x1ca)][_0x4b27aa(0x1e8)]();this[_0x4b27aa(0x23e)]=_0x2fec6f,_0x2fec6f===_0x57770c?(this[_0x4b27aa(0x1d5)](),this[_0x4b27aa(0x191)]()):this[_0x4b27aa(0x258)]!==_0x4b27aa(0x1e5)&&(this['_stopPresenting'](),this[_0x4b27aa(0x19b)]());}['_fetchOperations'](){var _0x4dc848=_0x494188;const _0xf6c922={'eventID':_[_0x4dc848(0x1c7)][_0x4dc848(0x215)]};this[_0x4dc848(0x1ca)][_0x4dc848(0x19f)](_0xf6c922,this['_unitID']);}['_handleTerminate'](){var _0x395137=_0x494188;this[_0x395137(0x23e)]=null,this[_0x395137(0x258)]!=='presenting'&&this[_0x395137(0x1ff)]();}[_0x494188(0x1c1)](_0x1a9e1b){var _0x3e2659=_0x494188;if(this[_0x3e2659(0x258)]==='following'&&this[_0x3e2659(0x23e)]===_0x1a9e1b['data'][_0x3e2659(0x1d1)]){const _0x27869a=_[_0x3e2659(0x18d)](_0x1a9e1b[_0x3e2659(0x1f8)])[_0x3e2659(0x1ec)][_0x3e2659(0x1cb)]()[_0x3e2659(0x1c3)](_0x2ea5a3=>_0x2ea5a3['id']===C[_0x3e2659(0x250)]['id']);if(_0x27869a){const _0x489810=_0x27869a['params']['unitId'],_0x1ee85d=_0x27869a['params']['sheet']['id'];setTimeout(()=>{var _0x18165a=_0x3e2659;this[_0x18165a(0x1c5)][_0x18165a(0x1a3)](C[_0x18165a(0x1bd)]['id'],{'unitId':_0x489810,'subUnitId':_0x1ee85d},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x75179e=_0x494188;this['_status$'][_0x75179e(0x1d4)](_0x75179e(0x1e2));const _0x3b954c=new Map(),_0x5a445a=this[_0x75179e(0x25d)]=new o['DisposableCollection']();_0x5a445a['add'](o[_0x75179e(0x204)](()=>{var _0x4531de=_0x75179e;_0x3b954c[_0x4531de(0x1d8)](_0x2e6491=>_0x2e6491[_0x4531de(0x1a0)]()),_0x3b954c[_0x4531de(0x1f9)]();})),_0x5a445a[_0x75179e(0x203)](this[_0x75179e(0x1c5)][_0x75179e(0x25e)](_0x119dca=>{var _0x3a1e1a=_0x75179e,_0x22ad65;if(_0x119dca[_0x3a1e1a(0x18f)]!==o[_0x3a1e1a(0x1df)][_0x3a1e1a(0x1fa)]||!this['_liveShareService'][_0x3a1e1a(0x263)](_0x119dca['id']))return;const {id:_0x18fcb4}=_0x119dca;let _0x201ebf;_0x3b954c[_0x3a1e1a(0x257)](_0x18fcb4)?_0x201ebf=_0x3b954c[_0x3a1e1a(0x1ad)](_0x18fcb4):(_0x201ebf=new w[(_0x3a1e1a(0x21a))](),_0x3b954c[_0x3a1e1a(0x23b)](_0x18fcb4,_0x201ebf),_0x201ebf[_0x3a1e1a(0x186)](b[_0x3a1e1a(0x25c)]((_0x22ad65=this[_0x3a1e1a(0x210)][_0x3a1e1a(0x192)](W))!=null?_0x22ad65:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1301b8=>{var _0x25e05e=_0x3a1e1a;this[_0x25e05e(0x1ca)][_0x25e05e(0x19f)]({'eventID':_['CollaborationEvent'][_0x25e05e(0x25f)],'data':{'unitID':this['_unitID'],'operations':{[_0x1301b8['id']]:{'id':_0x1301b8['id'],'params':JSON[_0x25e05e(0x245)](_0x1301b8[_0x25e05e(0x1e9)])}}}},this[_0x25e05e(0x1f2)]);})),_0x201ebf[_0x3a1e1a(0x1d4)](_0x119dca);})),this[_0x75179e(0x1b0)][_0x75179e(0x246)](this[_0x75179e(0x1f2)])[_0x75179e(0x1d8)](_0xceb4d5=>this['_collabSession']['send']({'eventID':_[_0x75179e(0x1c7)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x75179e(0x1f2)],'operations':{[_0xceb4d5['id']]:{'id':_0xceb4d5['id'],'params':JSON['stringify'](_0xceb4d5[_0x75179e(0x1e9)])}}}},this[_0x75179e(0x1f2)]));}[_0x494188(0x1b4)](){var _0x4c6bde=_0x494188,_0x22efd0;this[_0x4c6bde(0x206)][_0x4c6bde(0x1d4)](_0x4c6bde(0x219)),(_0x22efd0=this[_0x4c6bde(0x25d)])==null||_0x22efd0[_0x4c6bde(0x220)](),this[_0x4c6bde(0x25d)]=null;}[_0x494188(0x19b)](){var _0x4bdbc8=_0x494188,_0x5c61f1;(_0x5c61f1=this[_0x4bdbc8(0x25d)])==null||_0x5c61f1[_0x4bdbc8(0x220)](),this[_0x4bdbc8(0x206)][_0x4bdbc8(0x1d4)](_0x4bdbc8(0x1d3));}[_0x494188(0x1ff)](){var _0x259dab=_0x494188,_0x22e1d8;this[_0x259dab(0x206)][_0x259dab(0x1d4)](_0x259dab(0x219)),(_0x22e1d8=this[_0x259dab(0x25d)])==null||_0x22e1d8[_0x259dab(0x220)](),this[_0x259dab(0x25d)]=null;}[_0x494188(0x1d5)](){var _0x47c413=_0x494188,_0x4f9d3f;this['_status$'][_0x47c413(0x1d4)](_0x47c413(0x1e5)),(_0x4f9d3f=this[_0x47c413(0x25d)])==null||_0x4f9d3f[_0x47c413(0x220)]();}['_handleOperation'](_0x5ba7dd){var _0x1788e1=_0x494188;if(['presenting',_0x1788e1(0x1e5),'offline'][_0x1788e1(0x1d0)](this[_0x1788e1(0x258)])||!_0x5ba7dd[_0x1788e1(0x1f8)][_0x1788e1(0x22f)]||_0x5ba7dd['data']['presenter']===this[_0x1788e1(0x1ca)][_0x1788e1(0x1e8)]())return;this[_0x1788e1(0x258)]===_0x1788e1(0x219)&&this[_0x1788e1(0x19b)]();const _0x1415a8=_0x5ba7dd[_0x1788e1(0x1f8)][_0x1788e1(0x1b8)];Object[_0x1788e1(0x1a4)](_0x1415a8)['forEach'](_0xb8f7d=>{var _0x4a7f3d=_0x1788e1;this['_commandService'][_0x4a7f3d(0x1a3)](_0xb8f7d['id'],_0xb8f7d[_0x4a7f3d(0x1e9)]?JSON['parse'](_0xb8f7d[_0x4a7f3d(0x1e9)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1eddef=_0x494188,_0x3a6df6;this[_0x1eddef(0x206)][_0x1eddef(0x1d4)]('offline'),(_0x3a6df6=this[_0x1eddef(0x25d)])==null||_0x3a6df6[_0x1eddef(0x220)]();}[_0x494188(0x234)](){var _0x150418=_0x494188;this[_0x150418(0x206)]['next']('idle'),this['_fetchOperations']();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x494188(0x254)]),S(0x3,o['Inject'](O)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function A(){var _0x1fa9a5=_0x494188;const _0x6f928c=p[_0x1fa9a5(0x1e7)](exports['LiveShareController']),_0x12939c=p['useDependency'](o[_0x1fa9a5(0x18a)]),_0x4f4f4e=p[_0x1fa9a5(0x235)](()=>_0x12939c[_0x1fa9a5(0x18c)](o[_0x1fa9a5(0x1fc)][_0x1fa9a5(0x1aa)]),void 0x0,!0x1,[]),[_0x14b1cd,_0x3021fe]=f[_0x1fa9a5(0x20a)](null),[_0x2c35d2,_0x2b77c8]=f[_0x1fa9a5(0x20a)](h[_0x1fa9a5(0x1c6)]),_0x1f9148=f[_0x1fa9a5(0x19d)](null);return f[_0x1fa9a5(0x221)](()=>(_0x4f4f4e&&_0x6f928c['getLiveShareCoordinator'](_0x4f4f4e[_0x1fa9a5(0x1ef)]())[_0x1fa9a5(0x1cf)](_0x2037a2=>{var _0x618a4d=_0x1fa9a5;_0x3021fe(_0x2037a2),_0x1f9148[_0x618a4d(0x1d7)]=_0x2037a2['status$'][_0x618a4d(0x20b)](_0x3a226c=>{_0x2b77c8(_0x3a226c);});}),()=>{var _0x271749=_0x1fa9a5,_0x34f50f;(_0x34f50f=_0x1f9148[_0x271749(0x1d7)])==null||_0x34f50f[_0x271749(0x22e)](),_0x1f9148['current']=null;}),[_0x4f4f4e,_0x6f928c]),_0x14b1cd?l['jsx'](g[_0x1fa9a5(0x244)],{'align':_0x1fa9a5(0x229),'disabled':_0x2c35d2===h[_0x1fa9a5(0x1f7)],'className':_0x1fa9a5(0x18e),'overlay':l[_0x1fa9a5(0x201)](B,{'status':_0x2c35d2,'coordinator':_0x14b1cd}),'children':l[_0x1fa9a5(0x201)](_0x1fa9a5(0x1c8),{'className':g['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2c35d2===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2c35d2!==h[_0x1fa9a5(0x1f7)]}),'type':_0x1fa9a5(0x1c8),'children':l['jsx'](P,{'className':_0x1fa9a5(0x212)})})}):null;}function B(_0x26039d){var _0x24074e=_0x494188;const {status:_0x711a63,coordinator:_0x5528b9}=_0x26039d;switch(_0x711a63){case h[_0x24074e(0x1c6)]:return l[_0x24074e(0x201)](Y,{'coordinator':_0x5528b9});case h['FOLLOWING']:return l[_0x24074e(0x201)](Z,{'coordinator':_0x5528b9});case h[_0x24074e(0x1b5)]:return l['jsx'](J,{'coordinator':_0x5528b9});case h['OFFLINE']:return l[_0x24074e(0x201)](z,{});case h[_0x24074e(0x211)]:return l['jsx'](K,{'coordinator':_0x5528b9});default:return null;}}function Y(_0x37537b){var _0x21e964=_0x494188;const {coordinator:_0x190dd2}=_0x37537b;return l[_0x21e964(0x266)](l['Fragment'],{'children':[l[_0x21e964(0x201)](_0x21e964(0x208),{'className':_0x21e964(0x247),'children':_0x21e964(0x243)}),l['jsx'](g[_0x21e964(0x1a2)],{'onClick':()=>_0x190dd2[_0x21e964(0x1ae)](),'children':_0x21e964(0x255)})]});}function _0x1cfd(_0x396829,_0x315ffe){var _0x573663=_0x5736();return _0x1cfd=function(_0x1cfd2b,_0x4dcbb6){_0x1cfd2b=_0x1cfd2b-0x184;var _0x1100be=_0x573663[_0x1cfd2b];return _0x1100be;},_0x1cfd(_0x396829,_0x315ffe);}function Z(_0x2f36c5){var _0x1bbff9=_0x494188;const {coordinator:_0x275784}=_0x2f36c5;return l[_0x1bbff9(0x266)](l[_0x1bbff9(0x19c)],{'children':[l['jsx'](_0x1bbff9(0x208),{'className':_0x1bbff9(0x247),'children':_0x1bbff9(0x1cc)}),l[_0x1bbff9(0x201)](g[_0x1bbff9(0x1a2)],{'onClick':()=>_0x275784['stopFollowing'](),'children':'Stop\x20following'})]});}function J(_0x34e8d1){var _0x28600a=_0x494188;const {coordinator:_0x1862ac}=_0x34e8d1;return l[_0x28600a(0x266)](l['Fragment'],{'children':[l[_0x28600a(0x201)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28600a(0x196)}),l[_0x28600a(0x201)](g[_0x28600a(0x1a2)],{'variant':_0x28600a(0x24e),'onClick':()=>_0x1862ac[_0x28600a(0x20c)](),'children':_0x28600a(0x1ed)})]});}function K(_0x16a9dc){var _0x509d14=_0x494188;const {coordinator:_0x3fbfa1}=_0x16a9dc;return l[_0x509d14(0x266)](l['Fragment'],{'children':[l[_0x509d14(0x201)](_0x509d14(0x208),{'className':_0x509d14(0x247),'children':_0x509d14(0x214)}),l['jsx'](g[_0x509d14(0x1a2)],{'variant':_0x509d14(0x1e1),'onClick':()=>_0x3fbfa1[_0x509d14(0x239)](),'children':'Stop\x20presenting'})]});}function z(){var _0x58152e=_0x494188;return l[_0x58152e(0x201)](l[_0x58152e(0x19c)],{'children':_0x58152e(0x259)});}var Q=Object['getOwnPropertyDescriptor'],X=(_0x16ff0a,_0x2d71e8,_0x55a500,_0xbcf167)=>{for(var _0x164e18=_0xbcf167>0x1?void 0x0:_0xbcf167?Q(_0x2d71e8,_0x55a500):_0x2d71e8,_0x49b8db=_0x16ff0a['length']-0x1,_0x4aa4dc;_0x49b8db>=0x0;_0x49b8db--)(_0x4aa4dc=_0x16ff0a[_0x49b8db])&&(_0x164e18=_0x4aa4dc(_0x164e18)||_0x164e18);return _0x164e18;},x=(_0x4277c3,_0x49d70e)=>(_0x2f1ac7,_0x38ccc7)=>_0x49d70e(_0x2f1ac7,_0x38ccc7,_0x4277c3);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0x58f7e0,_0x46f1d4){var _0x5b18c2=_0x494188;super(),this['_injector']=_0x58f7e0,this[_0x5b18c2(0x262)]=_0x46f1d4,this[_0x5b18c2(0x230)]();}[_0x494188(0x230)](){var _0x8cd429=_0x494188;this[_0x8cd429(0x25b)](this[_0x8cd429(0x262)][_0x8cd429(0x20e)](p[_0x8cd429(0x253)][_0x8cd429(0x1f4)],()=>p[_0x8cd429(0x184)](A,this[_0x8cd429(0x252)])));}},exports['DesktopLiveShareController']=X([x(0x0,o['Inject'](o[_0x494188(0x19a)])),x(0x1,p[_0x494188(0x1db)])],exports[_0x494188(0x1dd)]);const ee=_0x494188(0x218),L={};var te=Object[_0x494188(0x1b2)],ie=(_0x57b2b5,_0x179dc2,_0x9236dc,_0x204576)=>{var _0xa37e72=_0x494188;for(var _0xce74b2=_0x204576>0x1?void 0x0:_0x204576?te(_0x179dc2,_0x9236dc):_0x179dc2,_0x196271=_0x57b2b5[_0xa37e72(0x194)]-0x1,_0x408bcb;_0x196271>=0x0;_0x196271--)(_0x408bcb=_0x57b2b5[_0x196271])&&(_0xce74b2=_0x408bcb(_0xce74b2)||_0xce74b2);return _0xce74b2;},ne=(_0x50c8d8,_0x37625b)=>(_0x505a4d,_0x5d231e)=>_0x37625b(_0x505a4d,_0x5d231e,_0x50c8d8);let E=class extends o[_0x494188(0x1f5)]{constructor(_0x316ea4){var _0x3d3e0e=_0x494188;super(),this['_liveShareService']=_0x316ea4,this[_0x3d3e0e(0x21c)]();}[_0x494188(0x21c)](){var _0x294643=_0x494188;[D[_0x294643(0x1de)]['id'],D[_0x294643(0x248)]['id'],C[_0x294643(0x1bd)]['id']][_0x294643(0x1d8)](_0x133c0d=>{var _0x14558e=_0x294643;this[_0x14558e(0x25b)](this['_liveShareService'][_0x14558e(0x202)](_0x133c0d));});}};E=ie([ne(0x0,o[_0x494188(0x1d6)](O))],E);var re=Object[_0x494188(0x23a)],se=Object[_0x494188(0x1b2)],oe=(_0x158f5b,_0x2e0e0c,_0x43927c)=>_0x2e0e0c in _0x158f5b?re(_0x158f5b,_0x2e0e0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43927c}):_0x158f5b[_0x2e0e0c]=_0x43927c,ae=(_0x4845c7,_0x41b267,_0x472da1,_0x498462)=>{for(var _0x338236=_0x498462>0x1?void 0x0:_0x498462?se(_0x41b267,_0x472da1):_0x41b267,_0x5f1b75=_0x4845c7['length']-0x1,_0x1bc6e6;_0x5f1b75>=0x0;_0x5f1b75--)(_0x1bc6e6=_0x4845c7[_0x5f1b75])&&(_0x338236=_0x1bc6e6(_0x338236)||_0x338236);return _0x338236;},N=(_0xeb706,_0x3c645e)=>(_0x4fe3a1,_0x3226fd)=>_0x3c645e(_0x4fe3a1,_0x3226fd,_0xeb706),T=(_0xf5e104,_0x21c5d6,_0x324ba4)=>oe(_0xf5e104,typeof _0x21c5d6!='symbol'?_0x21c5d6+'':_0x21c5d6,_0x324ba4);const le=_0x494188(0x22d);exports[_0x494188(0x1cd)]=class extends o[_0x494188(0x189)]{constructor(_0x41ce10=L,_0x3c1d40,_0x166558){var _0x39164b=_0x494188;super(),this[_0x39164b(0x1e3)]=_0x41ce10,this[_0x39164b(0x252)]=_0x3c1d40,this['_configService']=_0x166558;const {..._0x33702a}=o['merge']({},L,this[_0x39164b(0x1e3)]);this[_0x39164b(0x210)]['setConfig'](ee,_0x33702a);}[_0x494188(0x25a)](){var _0x5c40ab=_0x494188;o['registerDependencies'](this[_0x5c40ab(0x252)],o['mergeOverrideWithDependencies']([[O],[exports['LiveShareController']],[E],[exports[_0x5c40ab(0x1dd)]]],this[_0x5c40ab(0x1e3)][_0x5c40ab(0x226)])),o[_0x5c40ab(0x190)](this[_0x5c40ab(0x252)],[[E]]);}[_0x494188(0x24b)](){var _0x1ee460=_0x494188;o['touchDependencies'](this[_0x1ee460(0x252)],[[exports[_0x1ee460(0x1dd)]]]);}},T(exports[_0x494188(0x1cd)],_0x494188(0x18f),o[_0x494188(0x1fc)][_0x494188(0x1bb)]),T(exports[_0x494188(0x1cd)],_0x494188(0x24a),le),exports[_0x494188(0x1cd)]=ae([o[_0x494188(0x1ee)](m[_0x494188(0x209)]),N(0x1,o[_0x494188(0x1d6)](o[_0x494188(0x19a)])),N(0x2,o[_0x494188(0x254)])],exports['UniverLiveSharePlugin']),exports[_0x494188(0x22b)]=A,exports[_0x494188(0x1a7)]=O,exports[_0x494188(0x249)]=h;
1
+ 'use strict';const _0x3f9ef0=_0x41cd;(function(_0x26b630,_0x2dc4dd){const _0x43877c=_0x41cd,_0x17b84c=_0x26b630();while(!![]){try{const _0x1d970c=parseInt(_0x43877c(0x135))/0x1+-parseInt(_0x43877c(0x188))/0x2+parseInt(_0x43877c(0x179))/0x3+-parseInt(_0x43877c(0x190))/0x4+-parseInt(_0x43877c(0x1a3))/0x5+-parseInt(_0x43877c(0x131))/0x6+parseInt(_0x43877c(0x158))/0x7;if(_0x1d970c===_0x2dc4dd)break;else _0x17b84c['push'](_0x17b84c['shift']());}catch(_0x380f36){_0x17b84c['push'](_0x17b84c['shift']());}}}(_0x118c,0x43629));function _0x41cd(_0x1c0f1e,_0x318581){const _0x118cc9=_0x118c();return _0x41cd=function(_0x41cd3f,_0x1fcc48){_0x41cd3f=_0x41cd3f-0x11d;let _0x23596d=_0x118cc9[_0x41cd3f];return _0x23596d;},_0x41cd(_0x1c0f1e,_0x318581);}var T=Object['defineProperty'],U=(_0x4ea5fa,_0x2ff388,_0x127c7e)=>_0x2ff388 in _0x4ea5fa?T(_0x4ea5fa,_0x2ff388,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x127c7e}):_0x4ea5fa[_0x2ff388]=_0x127c7e,_=(_0x387b01,_0x4711c6,_0x4bf803)=>U(_0x387b01,typeof _0x4711c6!=_0x3f9ef0(0x149)?_0x4711c6+'':_0x4711c6,_0x4bf803);Object[_0x3f9ef0(0x1b1)](exports,Symbol[_0x3f9ef0(0x1a2)],{'value':_0x3f9ef0(0x1ad)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x328080,..._0x1e84a9}){const _0x295526=_0x3f9ef0,{icon:_0x39b5c3,id:_0xc36f5e,className:_0x249ad7,extend:_0x4142cb,..._0x210f71}=_0x1e84a9,_0x165b2d=(_0x295526(0x1cd)+_0xc36f5e+'\x20'+(_0x249ad7||''))[_0x295526(0x1ef)](),_0x3dc11e=v[_0x295526(0x13b)]('_'+H());return j(_0x39b5c3,''+_0xc36f5e,{'defIds':_0x39b5c3[_0x295526(0x13f)],'idSuffix':_0x3dc11e['current']},{'ref':_0x328080,'className':_0x165b2d,..._0x210f71},_0x4142cb);}function j(_0x594671,_0x37e2cb,_0x3e3bab,_0x260657,_0x10ea39){const _0x45b61c=_0x3f9ef0;return v[_0x45b61c(0x136)](_0x594671[_0x45b61c(0x19b)],{'key':_0x37e2cb,...y(_0x594671,_0x3e3bab,_0x10ea39),..._0x260657},(F(_0x594671,_0x3e3bab)[_0x45b61c(0x15f)]||[])['map']((_0x32d6c9,_0x22cf90)=>j(_0x32d6c9,_0x37e2cb+'-'+_0x594671[_0x45b61c(0x19b)]+'-'+_0x22cf90,_0x3e3bab,void 0x0,_0x10ea39)));}function y(_0x45dfb4,_0x1824ad,_0x26f334){const _0x595b8b=_0x3f9ef0,_0x4327c9={..._0x45dfb4[_0x595b8b(0x1d8)]};_0x26f334!=null&&_0x26f334[_0x595b8b(0x14c)]&&_0x4327c9['fill']===_0x595b8b(0x14c)&&(_0x4327c9['fill']=_0x26f334[_0x595b8b(0x14c)]),_0x45dfb4['tag']===_0x595b8b(0x137)&&_0x4327c9['id']&&(_0x4327c9['id']=_0x4327c9['id']+_0x1824ad['idSuffix']),Object['entries'](_0x4327c9)[_0x595b8b(0x1e0)](([_0x15df46,_0x43cf6e])=>{const _0x3c0f2f=_0x595b8b;_0x15df46===_0x3c0f2f(0x137)&&typeof _0x43cf6e==_0x3c0f2f(0x154)&&(_0x4327c9[_0x15df46]=_0x43cf6e[_0x3c0f2f(0x1b6)](/url\(#(.*)\)/,_0x3c0f2f(0x1f2)+_0x1824ad[_0x3c0f2f(0x141)]+')'));});const {defIds:_0x23f317}=_0x1824ad;return!_0x23f317||_0x23f317[_0x595b8b(0x159)]===0x0||(_0x45dfb4[_0x595b8b(0x19b)]==='use'&&_0x4327c9[_0x595b8b(0x126)]&&(_0x4327c9[_0x595b8b(0x126)]=_0x4327c9['xlink:href']+_0x1824ad[_0x595b8b(0x141)]),Object[_0x595b8b(0x163)](_0x4327c9)[_0x595b8b(0x1e0)](([_0x4fcd72,_0x30de02])=>{const _0x34cb25=_0x595b8b;typeof _0x30de02==_0x34cb25(0x154)&&(_0x4327c9[_0x4fcd72]=_0x30de02[_0x34cb25(0x1b6)](/url\(#(.*)\)/,_0x34cb25(0x1f2)+_0x1824ad[_0x34cb25(0x141)]+')'));})),_0x4327c9;}function F(_0x3717d3,_0x85322f){const _0x24613b=_0x3f9ef0;var _0xd7d70e;const {defIds:_0x411daf}=_0x85322f;return!_0x411daf||_0x411daf['length']===0x0?_0x3717d3:_0x3717d3[_0x24613b(0x19b)]===_0x24613b(0x19d)&&((_0xd7d70e=_0x3717d3[_0x24613b(0x15f)])!=null&&_0xd7d70e['length'])?{..._0x3717d3,'children':_0x3717d3[_0x24613b(0x15f)][_0x24613b(0x14e)](_0x2cccac=>typeof _0x2cccac[_0x24613b(0x1d8)]['id']==_0x24613b(0x154)&&_0x411daf&&_0x411daf[_0x24613b(0x17d)](_0x2cccac[_0x24613b(0x1d8)]['id'])?{..._0x2cccac,'attrs':{..._0x2cccac[_0x24613b(0x1d8)],'id':_0x2cccac[_0x24613b(0x1d8)]['id']+_0x85322f[_0x24613b(0x141)]}}:_0x2cccac)}:_0x3717d3;}function H(){const _0x51210c=_0x3f9ef0;return Math[_0x51210c(0x1c5)]()['toString'](0x24)[_0x51210c(0x199)](0x2,0x8);}x['displayName']=_0x3f9ef0(0x1bb);const V={'tag':_0x3f9ef0(0x192),'attrs':{'xmlns':_0x3f9ef0(0x151),'fill':_0x3f9ef0(0x138),'viewBox':_0x3f9ef0(0x1a5),'width':'1em','height':_0x3f9ef0(0x193)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x3f9ef0(0x11e)}},{'tag':_0x3f9ef0(0x1e4),'attrs':{'fill':_0x3f9ef0(0x16f),'d':_0x3f9ef0(0x184),'fillRule':'evenodd','clipRule':_0x3f9ef0(0x1d2)}}]},R=v[_0x3f9ef0(0x1e7)](function(_0x5b4a94,_0x2d14a7){const _0x4726bf=_0x3f9ef0;return v['createElement'](x,Object[_0x4726bf(0x1bf)]({},_0x5b4a94,{'id':_0x4726bf(0x1ca),'ref':_0x2d14a7,'icon':V}));});R['displayName']=_0x3f9ef0(0x172);class E extends o[_0x3f9ef0(0x18c)]{constructor(){const _0x2b42a3=_0x3f9ef0;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x2b42a3(0x1c0),new Set());}[_0x3f9ef0(0x1d7)](_0x45fa15){const _0x42b82d=_0x3f9ef0;return this[_0x42b82d(0x171)][_0x42b82d(0x17e)](_0x45fa15),o[_0x42b82d(0x1f0)](()=>this[_0x42b82d(0x171)]['delete'](_0x45fa15));}[_0x3f9ef0(0x1dd)](_0x2d077c){const _0x31e8e4=_0x3f9ef0;return this[_0x31e8e4(0x1c0)][_0x31e8e4(0x17e)](_0x2d077c),o[_0x31e8e4(0x1f0)](()=>this[_0x31e8e4(0x1c0)][_0x31e8e4(0x16e)](_0x2d077c));}['shouldShareOperation'](_0x45ab8e){const _0x2766e6=_0x3f9ef0;return this[_0x2766e6(0x171)][_0x2766e6(0x17a)](_0x45ab8e);}[_0x3f9ef0(0x14b)](_0x2ff32b){const _0x3be564=_0x3f9ef0;return Array[_0x3be564(0x1c7)](this['_reporters'])['map'](_0x1dd30d=>_0x1dd30d(_0x2ff32b));}}var M=Object[_0x3f9ef0(0x1cb)],P=(_0x3ab9a4,_0x171558,_0x138f30,_0xe3343c)=>{const _0x4bdcd6=_0x3f9ef0;for(var _0x8d602d=_0xe3343c>0x1?void 0x0:_0xe3343c?M(_0x171558,_0x138f30):_0x171558,_0x4e0e34=_0x3ab9a4[_0x4bdcd6(0x159)]-0x1,_0x9e9d76;_0x4e0e34>=0x0;_0x4e0e34--)(_0x9e9d76=_0x3ab9a4[_0x4e0e34])&&(_0x8d602d=_0x9e9d76(_0x8d602d)||_0x8d602d);return _0x8d602d;},S=(_0x10eec0,_0xe47ee3)=>(_0x31faa7,_0x46ebcf)=>_0xe47ee3(_0x31faa7,_0x46ebcf,_0x10eec0);exports['LiveShareController']=class extends o[_0x3f9ef0(0x145)]{constructor(_0x39bc42,_0x10364c,_0x2a5d5b){const _0x3e6dc0=_0x3f9ef0;super(),_(this,_0x3e6dc0(0x139),new Map()),(this['_univerInstanceService']=_0x39bc42,this[_0x3e6dc0(0x174)]=_0x10364c,this[_0x3e6dc0(0x18e)]=_0x2a5d5b,this[_0x3e6dc0(0x1c4)]());}async[_0x3f9ef0(0x142)](_0x5e953b){const _0x25ba3e=_0x3f9ef0;return this[_0x25ba3e(0x139)][_0x25ba3e(0x17a)](_0x5e953b)||await this[_0x25ba3e(0x1e6)](_0x5e953b),this['_entities'][_0x25ba3e(0x1ea)](_0x5e953b);}['getLiveShareCoordinatorSync'](_0x1543df){const _0x39e3c4=_0x3f9ef0;var _0x5c7f52;return(_0x5c7f52=this[_0x39e3c4(0x139)][_0x39e3c4(0x1ea)](_0x1543df))!=null?_0x5c7f52:null;}[_0x3f9ef0(0x1c4)](){const _0x49587e=_0x3f9ef0;this[_0x49587e(0x1b4)]['getTypeOfUnitAdded$'](o[_0x49587e(0x1d9)][_0x49587e(0x167)])['pipe'](I[_0x49587e(0x1ab)](this['dispose$']))[_0x49587e(0x13a)](async _0x23d77c=>{const _0x2032bf=_0x49587e,_0x3d9235=_0x23d77c[_0x2032bf(0x166)]();this[_0x2032bf(0x139)][_0x2032bf(0x17a)](_0x3d9235)||this[_0x2032bf(0x1e6)](_0x3d9235);}),this[_0x49587e(0x1b4)]['getTypeOfUnitDisposed$'](o[_0x49587e(0x1d9)][_0x49587e(0x167)])[_0x49587e(0x1ee)](I['takeUntil'](this[_0x49587e(0x1be)]))['subscribe'](_0x156bdb=>{const _0xab3289=_0x49587e,_0x1aa659=_0x156bdb['getUnitId'](),_0x17e2fb=this[_0xab3289(0x139)][_0xab3289(0x1ea)](_0x1aa659);_0x17e2fb==null||_0x17e2fb[_0xab3289(0x1c1)]();});}async['_startLiveShareCoordinator'](_0x2cc52c){const _0x31cbc9=_0x3f9ef0,_0x1dd2a7=await this[_0x31cbc9(0x18e)]['requireSession'](_0x2cc52c),_0x4ceaa4=this[_0x31cbc9(0x174)][_0x31cbc9(0x1a1)](exports[_0x31cbc9(0x1db)],_0x2cc52c,_0x1dd2a7);return _0x4ceaa4[_0x31cbc9(0x1d6)](),this[_0x31cbc9(0x139)][_0x31cbc9(0x1af)](_0x2cc52c,_0x4ceaa4),_0x4ceaa4;}},exports[_0x3f9ef0(0x12a)]=P([S(0x0,o[_0x3f9ef0(0x1d3)]),S(0x1,o[_0x3f9ef0(0x1c8)](o[_0x3f9ef0(0x1aa)])),S(0x2,o[_0x3f9ef0(0x1c8)](b['CollaborationSessionService']))],exports[_0x3f9ef0(0x12a)]);var u=(_0x4f8b04=>(_0x4f8b04[_0x3f9ef0(0x18d)]='offline',_0x4f8b04[_0x3f9ef0(0x178)]='idle',_0x4f8b04[_0x3f9ef0(0x195)]=_0x3f9ef0(0x120),_0x4f8b04[_0x3f9ef0(0x150)]=_0x3f9ef0(0x168),_0x4f8b04[_0x3f9ef0(0x197)]=_0x3f9ef0(0x169),_0x4f8b04))(u||{});const k=_0x3f9ef0(0x121),q=0xc8;function _0x118c(){const _0x3deef1=['LIVESHARE_TERMINATE','string','_beIdle','LIVESHARE_OPERATION','stopPresenting','3736873zncRyT','length','useEffect','unsubscribe','ONLINE','LIVESHARE_REQUEST_HOST','univer-size-4','children','end','SetZoomRatioOperation','button','entries','override','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getUnitId','UNIVER_SHEET','not-following','presenting','jsxs','merge','stopFollowing','parse','delete','currentColor','_presenter','_sharedOperations','LiveShareIcon','clear','_injector','DesktopLiveShareController','OPERATION','operations','IDLE','1221078XBzRZS','has','Subject','_fetchOperations','includes','add','Stop\x20presenting','stringify','getCurrentTypeOfUnit$','IConfigService','getMemberID','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','offline','_status$','SessionStatus','796258LrSXNs','_handleOffline','disposeWithMe','presenter','Disposable','OFFLINE','_collabSessionService','event$','256876IdENsB','UNIVER_LIVE_SHARE_PLUGIN','svg','1em','univer-mb-3\x20univer-w-full\x20univer-text-sm','FOLLOWING','NEW_CHANGESETS','PRESENTING','_status','substring','startFollowing','tag','InsertSheetMutation','defs','onCommandExecuted','onRendered','_commandDisposable','createInstance','toStringTag','2205075UomJFu','_startFollowing','0\x200\x2017\x2017','UNIVER_UNKNOWN','UniverLiveSharePlugin','You\x27re\x20not\x20following\x20the\x20presenter','You\x27re\x20presenting\x20the\x20document','Injector','takeUntil','_handleNewChangeSets','Module','LiveShare','set','_handleTerminate','defineProperty','find','mutations','_univerInstanceService','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','replace','div','default','type','idle','UniverIcon','_configService','_handleNewHost','dispose$','assign','_reporters','dispose','useState','send','_init','random','Present\x20this\x20document','from','Inject','unitId','live-share-icon','getOwnPropertyDescriptor','live-share.config','univerjs-icon\x20univerjs-icon-','Stop\x20following','_unitID','executeCommand','Start\x20following','evenodd','IUniverInstanceService','sheet','_config','init','registerSharedOperation','attrs','UniverInstanceType','_uiPartsService','LiveShareCoordinator','_liveShareService','registerInitialStateReporter','DependentOn','You\x27re\x20following\x20the\x20presenter','forEach','parseProtocolChangeset','HEADER_MENU','asObservable','path','_handleOperation','_startLiveShareCoordinator','forwardRef','data','text','get','pluginName','LiveShareService','Start','pipe','trim','toDisposable','_collabSession','url(#$1','BuiltInUIPart','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','Fragment','following','SAME_OPERATION_SHARE_INTERVAL','_stopPresenting','useObservable','_commandService','onStarting','xlink:href','setConfig','throttleTime','jsx','LiveShareController','touchDependencies','Button','tryStartPresenting','You\x27are\x20offline.','status$','_stopFollowing','1405716WAyZKc','getConfig','DisposableCollection','useDependency','472793yTxmAB','createElement','mask','none','_entities','subscribe','useRef','params','_handleOnline','SetScrollOperation','defIds','_startPresenting','idSuffix','getLiveShareCoordinator','current','SetWorksheetActiveOperation','RxDisposable','LiveShareStatus','LIVESHARE_FETCH_OPERATIONS','reverse','symbol','next','getInitialStates','colorChannel1','CollaborationEvent','map','registerDependencies','NOT_FOLLOWING','http://www.w3.org/2000/svg','_mountLiveShare'];_0x118c=function(){return _0x3deef1;};return _0x118c();}exports[_0x3f9ef0(0x1db)]=class extends o[_0x3f9ef0(0x145)]{constructor(_0x5a1811,_0x357a7b,_0x58f72f,_0x23777c,_0x47b8ed){const _0x1bf62b=_0x3f9ef0;super(),_(this,_0x1bf62b(0x186),new O['BehaviorSubject'](_0x1bf62b(0x1ba))),_(this,_0x1bf62b(0x12f),this[_0x1bf62b(0x186)][_0x1bf62b(0x1e3)]()),_(this,_0x1bf62b(0x1c4),!0x1),_(this,_0x1bf62b(0x1a0),null),_(this,_0x1bf62b(0x170),null),(this['_unitID']=_0x5a1811,this[_0x1bf62b(0x1f1)]=_0x357a7b,this[_0x1bf62b(0x1bc)]=_0x58f72f,this[_0x1bf62b(0x1dc)]=_0x23777c,this[_0x1bf62b(0x124)]=_0x47b8ed);}get[_0x3f9ef0(0x198)](){const _0x47f250=_0x3f9ef0;return this[_0x47f250(0x186)]['getValue']();}[_0x3f9ef0(0x1c1)](){const _0x3ba9bf=_0x3f9ef0;var _0x7fb619;(_0x7fb619=this[_0x3ba9bf(0x1a0)])==null||_0x7fb619[_0x3ba9bf(0x1c1)](),this[_0x3ba9bf(0x186)][_0x3ba9bf(0x14a)](_0x3ba9bf(0x1ba)),this['_status$']['complete']();}['getStatus'](){return this['_status'];}['init'](){const _0x4cb1dc=_0x3f9ef0;this[_0x4cb1dc(0x1c4)]||(this['_init']=!0x0,this[_0x4cb1dc(0x1f1)]['sessionStatus$'][_0x4cb1dc(0x1ee)](I['takeUntil'](this[_0x4cb1dc(0x1be)]))[_0x4cb1dc(0x13a)](_0x3c08ee=>{const _0x3464f4=_0x4cb1dc;switch(_0x3c08ee){case b[_0x3464f4(0x187)]['OFFLINE']:this[_0x3464f4(0x189)]();break;case b[_0x3464f4(0x187)][_0x3464f4(0x15c)]:this[_0x3464f4(0x13d)]();break;}}),this[_0x4cb1dc(0x1f1)][_0x4cb1dc(0x18f)]['pipe'](I[_0x4cb1dc(0x1ab)](this[_0x4cb1dc(0x1be)]))[_0x4cb1dc(0x13a)](_0x54ab36=>{const _0x45b39d=_0x4cb1dc,{eventID:_0xbd4f51}=_0x54ab36;switch(_0xbd4f51){case d[_0x45b39d(0x14d)]['LIVESHARE_NEW_HOST']:this[_0x45b39d(0x1bd)](_0x54ab36);break;case d[_0x45b39d(0x14d)][_0x45b39d(0x156)]:this[_0x45b39d(0x1e5)](_0x54ab36);break;case d[_0x45b39d(0x14d)][_0x45b39d(0x153)]:this[_0x45b39d(0x1b0)]();break;case d[_0x45b39d(0x14d)][_0x45b39d(0x196)]:this[_0x45b39d(0x1ac)](_0x54ab36);break;}}));}[_0x3f9ef0(0x12d)](){const _0x14bb90=_0x3f9ef0;this[_0x14bb90(0x1f1)]['send']({'eventID':d[_0x14bb90(0x14d)][_0x14bb90(0x15d)],'data':{'unitID':this[_0x14bb90(0x1cf)],'userID':this[_0x14bb90(0x1f1)][_0x14bb90(0x183)]()}},this[_0x14bb90(0x1cf)]);}[_0x3f9ef0(0x157)](){const _0x2102c3=_0x3f9ef0;this[_0x2102c3(0x198)]===_0x2102c3(0x169)&&(this[_0x2102c3(0x186)][_0x2102c3(0x14a)](_0x2102c3(0x1ba)),this[_0x2102c3(0x1f1)][_0x2102c3(0x1c3)]({'eventID':d['CollaborationEvent'][_0x2102c3(0x153)],'data':{'unitID':this[_0x2102c3(0x1cf)]}},this[_0x2102c3(0x1cf)]));}[_0x3f9ef0(0x19a)](){const _0x2f5d4c=_0x3f9ef0;this[_0x2f5d4c(0x198)]===_0x2f5d4c(0x168)&&(this[_0x2f5d4c(0x186)]['next']('following'),this['_startFollowing']());}['stopFollowing'](){this['_status']==='following'&&this['_stopFollowing']();}[_0x3f9ef0(0x1bd)](_0x22dddc){const _0x58e4b0=_0x3f9ef0,{presenter:_0x1f172f}=_0x22dddc['data'],_0x38cfe9=this[_0x58e4b0(0x1f1)][_0x58e4b0(0x183)]();this[_0x58e4b0(0x170)]=_0x1f172f,_0x1f172f===_0x38cfe9?(this[_0x58e4b0(0x130)](),this[_0x58e4b0(0x140)]()):this[_0x58e4b0(0x198)]!==_0x58e4b0(0x168)&&(this[_0x58e4b0(0x122)](),this[_0x58e4b0(0x1a4)]());}[_0x3f9ef0(0x17c)](){const _0x3808c6=_0x3f9ef0,_0x470652={'eventID':d[_0x3808c6(0x14d)][_0x3808c6(0x147)]};this[_0x3808c6(0x1f1)][_0x3808c6(0x1c3)](_0x470652,this[_0x3808c6(0x1cf)]);}[_0x3f9ef0(0x1b0)](){const _0x3e8ed4=_0x3f9ef0;this[_0x3e8ed4(0x170)]=null,this[_0x3e8ed4(0x198)]!==_0x3e8ed4(0x169)&&this[_0x3e8ed4(0x155)]();}[_0x3f9ef0(0x1ac)](_0x43e286){const _0x4d6a6e=_0x3f9ef0;if(this[_0x4d6a6e(0x198)]===_0x4d6a6e(0x120)&&this['_presenter']===_0x43e286[_0x4d6a6e(0x1e8)]['memberID']){const _0x207a68=d[_0x4d6a6e(0x1e1)](_0x43e286[_0x4d6a6e(0x1e8)])[_0x4d6a6e(0x1b3)][_0x4d6a6e(0x148)]()[_0x4d6a6e(0x1b2)](_0x26e496=>_0x26e496['id']===C[_0x4d6a6e(0x19c)]['id']);if(_0x207a68){const _0x63103a=_0x207a68[_0x4d6a6e(0x13c)][_0x4d6a6e(0x1c9)],_0x171129=_0x207a68[_0x4d6a6e(0x13c)][_0x4d6a6e(0x1d4)]['id'];setTimeout(()=>{const _0xb99f00=_0x4d6a6e;this[_0xb99f00(0x124)][_0xb99f00(0x1d0)](C[_0xb99f00(0x144)]['id'],{'unitId':_0x63103a,'subUnitId':_0x171129},{'fromCollab':!0x0});});}}}[_0x3f9ef0(0x140)](){const _0x39c7ca=_0x3f9ef0;this[_0x39c7ca(0x186)]['next'](_0x39c7ca(0x169));const _0x5846dd=new Map(),_0x2e32c3=this[_0x39c7ca(0x1a0)]=new o[(_0x39c7ca(0x133))]();_0x2e32c3['add'](o[_0x39c7ca(0x1f0)](()=>{const _0x531552=_0x39c7ca;_0x5846dd[_0x531552(0x1e0)](_0x48b80c=>_0x48b80c['complete']()),_0x5846dd[_0x531552(0x173)]();})),_0x2e32c3['add'](this[_0x39c7ca(0x124)][_0x39c7ca(0x19e)](_0x42f625=>{const _0x7004cc=_0x39c7ca;var _0x11ef4c;if(_0x42f625[_0x7004cc(0x1b9)]!==o['CommandType'][_0x7004cc(0x176)]||!this[_0x7004cc(0x1dc)]['shouldShareOperation'](_0x42f625['id']))return;const {id:_0x515622}=_0x42f625;let _0x39a939;_0x5846dd['has'](_0x515622)?_0x39a939=_0x5846dd['get'](_0x515622):(_0x39a939=new O[(_0x7004cc(0x17b))](),_0x5846dd[_0x7004cc(0x1af)](_0x515622,_0x39a939),_0x39a939[_0x7004cc(0x1ee)](I[_0x7004cc(0x128)]((_0x11ef4c=this[_0x7004cc(0x1bc)][_0x7004cc(0x132)](k))!=null?_0x11ef4c:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x7004cc(0x13a)](_0x3a4db4=>{const _0x1b75e0=_0x7004cc;this[_0x1b75e0(0x1f1)][_0x1b75e0(0x1c3)]({'eventID':d[_0x1b75e0(0x14d)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1b75e0(0x1cf)],'operations':{[_0x3a4db4['id']]:{'id':_0x3a4db4['id'],'params':JSON['stringify'](_0x3a4db4[_0x1b75e0(0x13c)])}}}},this[_0x1b75e0(0x1cf)]);})),_0x39a939['next'](_0x42f625);})),this[_0x39c7ca(0x1dc)][_0x39c7ca(0x14b)](this[_0x39c7ca(0x1cf)])[_0x39c7ca(0x1e0)](_0x3faf6e=>this[_0x39c7ca(0x1f1)][_0x39c7ca(0x1c3)]({'eventID':d['CollaborationEvent'][_0x39c7ca(0x156)],'data':{'unitID':this[_0x39c7ca(0x1cf)],'operations':{[_0x3faf6e['id']]:{'id':_0x3faf6e['id'],'params':JSON[_0x39c7ca(0x180)](_0x3faf6e[_0x39c7ca(0x13c)])}}}},this[_0x39c7ca(0x1cf)]));}[_0x3f9ef0(0x122)](){const _0xde0960=_0x3f9ef0;var _0x55599f;this[_0xde0960(0x186)][_0xde0960(0x14a)]('idle'),(_0x55599f=this[_0xde0960(0x1a0)])==null||_0x55599f[_0xde0960(0x1c1)](),this[_0xde0960(0x1a0)]=null;}[_0x3f9ef0(0x1a4)](){const _0x3112bf=_0x3f9ef0;var _0x4966ad;(_0x4966ad=this[_0x3112bf(0x1a0)])==null||_0x4966ad[_0x3112bf(0x1c1)](),this[_0x3112bf(0x186)]['next']('following');}['_beIdle'](){const _0x3b2951=_0x3f9ef0;var _0x536881;this[_0x3b2951(0x186)][_0x3b2951(0x14a)](_0x3b2951(0x1ba)),(_0x536881=this['_commandDisposable'])==null||_0x536881['dispose'](),this[_0x3b2951(0x1a0)]=null;}['_stopFollowing'](){const _0x27112a=_0x3f9ef0;var _0x495cc8;this['_status$']['next'](_0x27112a(0x168)),(_0x495cc8=this[_0x27112a(0x1a0)])==null||_0x495cc8[_0x27112a(0x1c1)]();}['_handleOperation'](_0x3c4fc1){const _0x5e3265=_0x3f9ef0;if([_0x5e3265(0x169),_0x5e3265(0x168),_0x5e3265(0x185)][_0x5e3265(0x17d)](this['_status'])||!_0x3c4fc1['data'][_0x5e3265(0x18b)]||_0x3c4fc1[_0x5e3265(0x1e8)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x5e3265(0x198)]===_0x5e3265(0x1ba)&&this['_startFollowing']();const _0x29c7e1=_0x3c4fc1[_0x5e3265(0x1e8)][_0x5e3265(0x177)];Object['values'](_0x29c7e1)[_0x5e3265(0x1e0)](_0x5f2d50=>{const _0x78e2c7=_0x5e3265;this[_0x78e2c7(0x124)]['executeCommand'](_0x5f2d50['id'],_0x5f2d50[_0x78e2c7(0x13c)]?JSON[_0x78e2c7(0x16d)](_0x5f2d50[_0x78e2c7(0x13c)]):null,{'fromCollab':!0x0});});}[_0x3f9ef0(0x189)](){const _0x40d67b=_0x3f9ef0;var _0x52eb8b;this['_status$'][_0x40d67b(0x14a)](_0x40d67b(0x185)),(_0x52eb8b=this[_0x40d67b(0x1a0)])==null||_0x52eb8b[_0x40d67b(0x1c1)]();}[_0x3f9ef0(0x13d)](){const _0x587d67=_0x3f9ef0;this['_status$'][_0x587d67(0x14a)]('idle'),this[_0x587d67(0x17c)]();}},exports[_0x3f9ef0(0x1db)]=P([S(0x2,o[_0x3f9ef0(0x182)]),S(0x3,o[_0x3f9ef0(0x1c8)](E)),S(0x4,o['ICommandService'])],exports[_0x3f9ef0(0x1db)]);function $(){const _0x2304c4=_0x3f9ef0,_0x5b4e2d=p[_0x2304c4(0x134)](exports[_0x2304c4(0x12a)]),_0x2876ee=p[_0x2304c4(0x134)](o[_0x2304c4(0x1d3)]),_0x47a89d=p[_0x2304c4(0x123)](()=>_0x2876ee[_0x2304c4(0x181)](o[_0x2304c4(0x1d9)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x265346,_0x30a775]=v[_0x2304c4(0x1c2)](null),[_0x178fa0,_0x4cf485]=v[_0x2304c4(0x1c2)](u[_0x2304c4(0x178)]),_0x2c9e2b=v[_0x2304c4(0x13b)](null);return v[_0x2304c4(0x15a)](()=>(_0x47a89d&&_0x5b4e2d[_0x2304c4(0x142)](_0x47a89d[_0x2304c4(0x166)]())['then'](_0x570dd9=>{const _0x1fbdd2=_0x2304c4;_0x30a775(_0x570dd9),_0x2c9e2b[_0x1fbdd2(0x143)]=_0x570dd9['status$'][_0x1fbdd2(0x13a)](_0x2faae3=>{_0x4cf485(_0x2faae3);});}),()=>{const _0xb1b241=_0x2304c4;var _0x19bd5a;(_0x19bd5a=_0x2c9e2b[_0xb1b241(0x143)])==null||_0x19bd5a[_0xb1b241(0x15b)](),_0x2c9e2b['current']=null;}),[_0x47a89d,_0x5b4e2d]),_0x265346?l[_0x2304c4(0x129)](f['Dropdown'],{'align':_0x2304c4(0x160),'disabled':_0x178fa0===u[_0x2304c4(0x18d)],'className':_0x2304c4(0x1b5),'overlay':l[_0x2304c4(0x129)](W,{'status':_0x178fa0,'coordinator':_0x265346}),'children':l[_0x2304c4(0x129)](_0x2304c4(0x162),{'className':f['clsx'](_0x2304c4(0x165),{'univer-cursor-not-allowed':_0x178fa0===u[_0x2304c4(0x18d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x178fa0!==u['OFFLINE']}),'type':'button','children':l[_0x2304c4(0x129)](R,{'className':_0x2304c4(0x15e)})})}):null;}function W(_0x5d3478){const _0x3dc847=_0x3f9ef0,{status:_0xffb788,coordinator:_0x5bab2f}=_0x5d3478;switch(_0xffb788){case u['IDLE']:return l[_0x3dc847(0x129)](G,{'coordinator':_0x5bab2f});case u[_0x3dc847(0x195)]:return l[_0x3dc847(0x129)](B,{'coordinator':_0x5bab2f});case u[_0x3dc847(0x150)]:return l[_0x3dc847(0x129)](Y,{'coordinator':_0x5bab2f});case u[_0x3dc847(0x18d)]:return l[_0x3dc847(0x129)](J,{});case u[_0x3dc847(0x197)]:return l[_0x3dc847(0x129)](Z,{'coordinator':_0x5bab2f});default:return null;}}function G(_0xcce522){const _0x37ca9c=_0x3f9ef0,{coordinator:_0xb6990e}=_0xcce522;return l[_0x37ca9c(0x16a)](l[_0x37ca9c(0x11f)],{'children':[l[_0x37ca9c(0x129)](_0x37ca9c(0x1b7),{'className':_0x37ca9c(0x194),'children':_0x37ca9c(0x1c6)}),l[_0x37ca9c(0x129)](f['Button'],{'onClick':()=>_0xb6990e['tryStartPresenting'](),'children':_0x37ca9c(0x1ed)})]});}function B(_0x1200d7){const _0x43cd7c=_0x3f9ef0,{coordinator:_0x3edf3f}=_0x1200d7;return l['jsxs'](l[_0x43cd7c(0x11f)],{'children':[l[_0x43cd7c(0x129)](_0x43cd7c(0x1b7),{'className':_0x43cd7c(0x194),'children':_0x43cd7c(0x1df)}),l[_0x43cd7c(0x129)](f['Button'],{'onClick':()=>_0x3edf3f[_0x43cd7c(0x16c)](),'children':_0x43cd7c(0x1ce)})]});}function Y(_0x2b5222){const _0x1cbe99=_0x3f9ef0,{coordinator:_0xfc5a52}=_0x2b5222;return l[_0x1cbe99(0x16a)](l[_0x1cbe99(0x11f)],{'children':[l[_0x1cbe99(0x129)](_0x1cbe99(0x1b7),{'className':_0x1cbe99(0x194),'children':_0x1cbe99(0x1a8)}),l[_0x1cbe99(0x129)](f['Button'],{'variant':_0x1cbe99(0x1e9),'onClick':()=>_0xfc5a52[_0x1cbe99(0x19a)](),'children':_0x1cbe99(0x1d1)})]});}function Z(_0x59d58f){const _0x266f83=_0x3f9ef0,{coordinator:_0x1663a1}=_0x59d58f;return l[_0x266f83(0x16a)](l[_0x266f83(0x11f)],{'children':[l['jsx'](_0x266f83(0x1b7),{'className':_0x266f83(0x194),'children':_0x266f83(0x1a9)}),l[_0x266f83(0x129)](f[_0x266f83(0x12c)],{'variant':_0x266f83(0x1b8),'onClick':()=>_0x1663a1['stopPresenting'](),'children':_0x266f83(0x17f)})]});}function J(){const _0x138aaf=_0x3f9ef0;return l[_0x138aaf(0x129)](l['Fragment'],{'children':_0x138aaf(0x12e)});}var K=Object[_0x3f9ef0(0x1cb)],z=(_0x43314f,_0xc08de,_0x224202,_0x1c125d)=>{const _0x1b63ed=_0x3f9ef0;for(var _0x2f8b20=_0x1c125d>0x1?void 0x0:_0x1c125d?K(_0xc08de,_0x224202):_0xc08de,_0x1d3030=_0x43314f[_0x1b63ed(0x159)]-0x1,_0x243922;_0x1d3030>=0x0;_0x1d3030--)(_0x243922=_0x43314f[_0x1d3030])&&(_0x2f8b20=_0x243922(_0x2f8b20)||_0x2f8b20);return _0x2f8b20;},L=(_0x49dc8d,_0x98dc32)=>(_0x5627b5,_0x2ccec6)=>_0x98dc32(_0x5627b5,_0x2ccec6,_0x49dc8d);exports[_0x3f9ef0(0x175)]=class extends o[_0x3f9ef0(0x18c)]{constructor(_0x4727ba,_0x5cc03a){const _0x5718e9=_0x3f9ef0;super(),this['_injector']=_0x4727ba,this[_0x5718e9(0x1da)]=_0x5cc03a,this[_0x5718e9(0x152)]();}[_0x3f9ef0(0x152)](){const _0x3bc7d4=_0x3f9ef0;this['disposeWithMe'](this[_0x3bc7d4(0x1da)]['registerComponent'](p[_0x3bc7d4(0x11d)][_0x3bc7d4(0x1e2)],()=>p['connectInjector']($,this[_0x3bc7d4(0x174)])));}},exports[_0x3f9ef0(0x175)]=z([L(0x0,o[_0x3f9ef0(0x1c8)](o[_0x3f9ef0(0x1aa)])),L(0x1,p['IUIPartsService'])],exports[_0x3f9ef0(0x175)]);const Q=_0x3f9ef0(0x1cc),w={};var X=Object[_0x3f9ef0(0x1cb)],ee=(_0x4619ed,_0x36e557,_0x2d4b21,_0x4864b7)=>{const _0x1d1c50=_0x3f9ef0;for(var _0xeef38d=_0x4864b7>0x1?void 0x0:_0x4864b7?X(_0x36e557,_0x2d4b21):_0x36e557,_0x53918c=_0x4619ed[_0x1d1c50(0x159)]-0x1,_0x4ec25b;_0x53918c>=0x0;_0x53918c--)(_0x4ec25b=_0x4619ed[_0x53918c])&&(_0xeef38d=_0x4ec25b(_0xeef38d)||_0xeef38d);return _0xeef38d;},te=(_0x5ebcbc,_0x9fd85b)=>(_0x5b1f4f,_0x59f301)=>_0x9fd85b(_0x5b1f4f,_0x59f301,_0x5ebcbc);let m=class extends o[_0x3f9ef0(0x18c)]{constructor(_0x3314af){const _0x401823=_0x3f9ef0;super(),this[_0x401823(0x1dc)]=_0x3314af,this['_init']();}[_0x3f9ef0(0x1c4)](){const _0x2a97d2=_0x3f9ef0;[D[_0x2a97d2(0x161)]['id'],D[_0x2a97d2(0x13e)]['id'],C[_0x2a97d2(0x144)]['id']][_0x2a97d2(0x1e0)](_0x23a4c3=>{const _0x5543fe=_0x2a97d2;this[_0x5543fe(0x18a)](this[_0x5543fe(0x1dc)][_0x5543fe(0x1d7)](_0x23a4c3));});}};m=ee([te(0x0,o[_0x3f9ef0(0x1c8)](E))],m);var ie=Object['defineProperty'],se=Object['getOwnPropertyDescriptor'],ne=(_0x33c6d2,_0x5088a2,_0xf88ecc)=>_0x5088a2 in _0x33c6d2?ie(_0x33c6d2,_0x5088a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf88ecc}):_0x33c6d2[_0x5088a2]=_0xf88ecc,re=(_0x41b661,_0x3224fb,_0x34c372,_0x40df9b)=>{for(var _0x330cff=_0x40df9b>0x1?void 0x0:_0x40df9b?se(_0x3224fb,_0x34c372):_0x3224fb,_0x37d4fb=_0x41b661['length']-0x1,_0x17ddfd;_0x37d4fb>=0x0;_0x37d4fb--)(_0x17ddfd=_0x41b661[_0x37d4fb])&&(_0x330cff=_0x17ddfd(_0x330cff)||_0x330cff);return _0x330cff;},N=(_0xac2ab1,_0x391199)=>(_0x56bfdc,_0x41f998)=>_0x391199(_0x56bfdc,_0x41f998,_0xac2ab1),A=(_0x38d033,_0x37da3d,_0x4a3c1c)=>ne(_0x38d033,typeof _0x37da3d!=_0x3f9ef0(0x149)?_0x37da3d+'':_0x37da3d,_0x4a3c1c);const oe=_0x3f9ef0(0x191);exports[_0x3f9ef0(0x1a7)]=class extends o['Plugin']{constructor(_0x7ea5d3=w,_0x33039b,_0x1c94fc){const _0x2c69f7=_0x3f9ef0;super(),this[_0x2c69f7(0x1d5)]=_0x7ea5d3,this[_0x2c69f7(0x174)]=_0x33039b,this['_configService']=_0x1c94fc;const {..._0x8353a8}=o[_0x2c69f7(0x16b)]({},w,this[_0x2c69f7(0x1d5)]);this[_0x2c69f7(0x1bc)][_0x2c69f7(0x127)](Q,_0x8353a8);}[_0x3f9ef0(0x125)](){const _0x295a53=_0x3f9ef0;o[_0x295a53(0x14f)](this[_0x295a53(0x174)],o['mergeOverrideWithDependencies']([[E],[exports[_0x295a53(0x12a)]],[m],[exports[_0x295a53(0x175)]]],this[_0x295a53(0x1d5)][_0x295a53(0x164)])),o[_0x295a53(0x12b)](this['_injector'],[[m]]);}[_0x3f9ef0(0x19f)](){const _0x19aaf1=_0x3f9ef0;o[_0x19aaf1(0x12b)](this[_0x19aaf1(0x174)],[[exports[_0x19aaf1(0x175)]]]);}},A(exports[_0x3f9ef0(0x1a7)],_0x3f9ef0(0x1b9),o['UniverInstanceType'][_0x3f9ef0(0x1a6)]),A(exports['UniverLiveSharePlugin'],_0x3f9ef0(0x1eb),oe),exports[_0x3f9ef0(0x1a7)]=re([o[_0x3f9ef0(0x1de)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x3f9ef0(0x1c8)](o[_0x3f9ef0(0x1aa)])),N(0x2,o[_0x3f9ef0(0x182)])],exports['UniverLiveSharePlugin']),exports[_0x3f9ef0(0x1ae)]=$,exports[_0x3f9ef0(0x1ec)]=E,exports[_0x3f9ef0(0x146)]=u;
@@ -0,0 +1 @@
1
+ const _0x35d540=_0x8ed9;function _0x8ed9(_0x18e553,_0x40c48c){const _0x45b37e=_0x45b3();return _0x8ed9=function(_0x8ed973,_0x5a1839){_0x8ed973=_0x8ed973-0x74;let _0x442873=_0x45b37e[_0x8ed973];return _0x442873;},_0x8ed9(_0x18e553,_0x40c48c);}(function(_0x3baa97,_0x230a0f){const _0x476629=_0x8ed9,_0x596a6a=_0x3baa97();while(!![]){try{const _0x5f3735=-parseInt(_0x476629(0x81))/0x1*(parseInt(_0x476629(0x8e))/0x2)+parseInt(_0x476629(0x8b))/0x3+-parseInt(_0x476629(0x80))/0x4*(parseInt(_0x476629(0x8a))/0x5)+-parseInt(_0x476629(0x74))/0x6*(-parseInt(_0x476629(0x86))/0x7)+-parseInt(_0x476629(0x85))/0x8+-parseInt(_0x476629(0x7b))/0x9+parseInt(_0x476629(0x78))/0xa;if(_0x5f3735===_0x230a0f)break;else _0x596a6a['push'](_0x596a6a['shift']());}catch(_0x511684){_0x596a6a['push'](_0x596a6a['shift']());}}}(_0x45b3,0xcab61));import{LiveShareController as _0x56f255,LiveShareStatus as _0x2d291f}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x19b6ba}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4c8332}from'@univerjs/sheets';function _0x45b3(){const _0x35a370=['getStatus','getActiveWorkbook','157566sPSDEQ','getId','_injector','No\x20active\x20workbook\x20found.','_initialize','PRESENTING','stopFollowing','66aSiJgO','getLiveShareCoordinatorSync','get','getActiveSheet','34356490OGavfO','executeCommand','getSheetId','8002665hBfmzV','startFollowing','syncExecuteCommand','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','4PBkpGP','1cXgPVO','startColumn','getUnitId','startRow','4959400MqBjkZ','17647zUuuAy','extend','getLiveShareStatus','_commandService','5739235qNQadL','307995UwCsPZ'];_0x45b3=function(){return _0x35a370;};return _0x45b3();}import{SetScrollOperation as _0x569b43}from'@univerjs/sheets-ui';import{FRange as _0x18699d}from'@univerjs/sheets/facade';import{FUniver as _0x54bc5e,FEnum as _0x50b179}from'@univerjs/core/facade';class I extends _0x18699d{[_0x35d540(0x92)](_0x32eb68,_0x3b3e60,_0x3b9778,_0x17a405,_0x3ab682){const _0xe000e6=_0x35d540,_0x59ad5c=_0x32eb68[_0xe000e6(0x76)](_0x56f255),_0x1a26d5=_0x32eb68['get'](_0x19b6ba),_0x237f4d=_0x3b3e60[_0xe000e6(0x83)](),_0x3eab62=_0x3b3e60[_0xe000e6(0x77)](),_0x1aa3d=_0x59ad5c['getLiveShareCoordinatorSync'](_0x237f4d);(_0x1aa3d==null?void 0x0:_0x1aa3d['getStatus']())!==_0x2d291f[_0xe000e6(0x93)]||(_0x3b9778[_0xe000e6(0x7a)]()!==_0x3eab62[_0xe000e6(0x7a)]()&&this[_0xe000e6(0x89)][_0xe000e6(0x79)](_0x4c8332['id'],{'unitId':_0x237f4d,'subUnitId':_0x3b9778[_0xe000e6(0x7a)]()}),!_0x1a26d5['getRenderById'](_0x237f4d))||_0x3ab682[_0xe000e6(0x7d)](_0x569b43['id'],{'unitId':_0x3b3e60[_0xe000e6(0x83)](),'sheetId':_0x3b9778[_0xe000e6(0x7a)](),'sheetViewStartRow':_0x17a405[_0xe000e6(0x84)],'sheetViewStartColumn':_0x17a405[_0xe000e6(0x82)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x18699d[_0x35d540(0x87)](I);class m extends _0x54bc5e{[_0x35d540(0x88)](){const _0x453c27=_0x35d540;var _0x565b0d,_0x40aafc;const _0x2c62c8=this[_0x453c27(0x90)]['get'](_0x56f255),_0x573131=(_0x565b0d=this[_0x453c27(0x8d)]())==null?void 0x0:_0x565b0d[_0x453c27(0x8f)]();if(!_0x573131)throw new Error(_0x453c27(0x91));const _0x44e31c=_0x2c62c8['getLiveShareCoordinatorSync'](_0x573131);return(_0x40aafc=_0x44e31c==null?void 0x0:_0x44e31c[_0x453c27(0x8c)]())!=null?_0x40aafc:_0x2d291f['IDLE'];}['startFollowing'](){const _0x1a8429=_0x35d540;var _0x137ffe;const _0x203ae0=this['_injector'][_0x1a8429(0x76)](_0x56f255),_0x2b04b2=(_0x137ffe=this[_0x1a8429(0x8d)]())==null?void 0x0:_0x137ffe[_0x1a8429(0x8f)]();if(!_0x2b04b2)throw new Error(_0x1a8429(0x91));const _0x1f9858=_0x203ae0[_0x1a8429(0x75)](_0x2b04b2);if(!_0x1f9858)throw new Error(_0x1a8429(0x7f));_0x1f9858[_0x1a8429(0x7c)]();}[_0x35d540(0x94)](){const _0x250e48=_0x35d540;var _0x2c6085;const _0x1d38fd=this[_0x250e48(0x90)][_0x250e48(0x76)](_0x56f255),_0x2f6536=(_0x2c6085=this[_0x250e48(0x8d)]())==null?void 0x0:_0x2c6085[_0x250e48(0x8f)]();if(!_0x2f6536)throw new Error('No\x20active\x20workbook\x20found.');const _0x537df3=_0x1d38fd[_0x250e48(0x75)](_0x2f6536);if(!_0x537df3)throw new Error(_0x250e48(0x7f));_0x537df3[_0x250e48(0x94)]();}['startPresenting'](){const _0x2329c6=_0x35d540;var _0x540ce1;const _0x5b17b0=this[_0x2329c6(0x90)][_0x2329c6(0x76)](_0x56f255),_0x259973=(_0x540ce1=this[_0x2329c6(0x8d)]())==null?void 0x0:_0x540ce1['getId']();if(!_0x259973)throw new Error('No\x20active\x20workbook\x20found.');const _0x13c037=_0x5b17b0[_0x2329c6(0x75)](_0x259973);if(!_0x13c037)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x13c037['tryStartPresenting']();}[_0x35d540(0x7e)](){const _0x3724ba=_0x35d540;var _0x57901f;const _0x8aa731=this[_0x3724ba(0x90)]['get'](_0x56f255),_0x5c5031=(_0x57901f=this[_0x3724ba(0x8d)]())==null?void 0x0:_0x57901f[_0x3724ba(0x8f)]();if(!_0x5c5031)throw new Error(_0x3724ba(0x91));const _0x650a5a=_0x8aa731[_0x3724ba(0x75)](_0x5c5031);if(!_0x650a5a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x650a5a[_0x3724ba(0x7e)]();}}_0x54bc5e[_0x35d540(0x87)](m);class C extends _0x50b179{get['LiveShareStatusEnum'](){return _0x2d291f;}}_0x50b179['extend'](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x1624f5=_0x5b64;(function(_0x53b827,_0x1d7bf4){var _0xa9d55f=_0x5b64,_0x116499=_0x53b827();while(!![]){try{var _0x426e29=parseInt(_0xa9d55f(0x165))/0x1*(-parseInt(_0xa9d55f(0x13e))/0x2)+parseInt(_0xa9d55f(0x13c))/0x3+-parseInt(_0xa9d55f(0x102))/0x4+-parseInt(_0xa9d55f(0x100))/0x5+-parseInt(_0xa9d55f(0x144))/0x6+parseInt(_0xa9d55f(0x138))/0x7*(-parseInt(_0xa9d55f(0xf5))/0x8)+parseInt(_0xa9d55f(0x167))/0x9;if(_0x426e29===_0x1d7bf4)break;else _0x116499['push'](_0x116499['shift']());}catch(_0x512ef6){_0x116499['push'](_0x116499['shift']());}}}(_0x1dcd,0x1c9d5));var q=Object[_0x1624f5(0x116)],z=(_0x3800f7,_0x137fc7,_0x38e8f7)=>_0x137fc7 in _0x3800f7?q(_0x3800f7,_0x137fc7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38e8f7}):_0x3800f7[_0x137fc7]=_0x38e8f7,d=(_0x949d89,_0x498301,_0x32f874)=>z(_0x949d89,typeof _0x498301!=_0x1624f5(0x13f)?_0x498301+'':_0x498301,_0x32f874);import{Disposable as _0x1b6eaf,toDisposable as _0x28aff6,IUniverInstanceService as _0x13109b,Inject as _0x1a16ba,Injector as _0x3396c5,IConfigService as _0x375812,ICommandService as _0x4355bd,RxDisposable as _0x1d139d,UniverInstanceType as _0x3c6f33,DisposableCollection as _0x10ce83,CommandType as _0x47f736,DependentOn as _0x3283e7,Plugin as _0x421668,merge as _0xeb06ad,registerDependencies as _0x31d9a6,mergeOverrideWithDependencies as _0x50a260,touchDependencies as _0x58db42}from'@univerjs/core';import{useDependency as _0x5de910,useObservable as _0x47a6de,IUIPartsService as _0x11fbb0,BuiltInUIPart as _0x3bea30,connectInjector as _0x2d8986}from'@univerjs/ui';import{jsx as _0xdece36,jsxs as _0x297d42,Fragment as _0x4b0c6c}from'react/jsx-runtime';import{Dropdown as _0x3c7f31,clsx as _0x3914c5,Button as _0x4fc5ad}from'@univerjs/design';import{forwardRef as _0x3e5310,useRef as _0x338ee2,createElement as _0x4d1ec5,useState as _0x281766,useEffect as _0x37dd39}from'react';import{CollaborationEvent as _0xdbe7ec,parseProtocolChangeset as _0x378c0b}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5f1249,SessionStatus as _0x110f90,UniverCollaborationClientPlugin as _0x32ab4c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1f6f57,SetWorksheetActiveOperation as _0x22b854}from'@univerjs/sheets';import{BehaviorSubject as _0x17f9f2,Subject as _0x257f72}from'rxjs';import{takeUntil as _0x55a56f,throttleTime as _0x5c958e}from'rxjs/operators';import{SetZoomRatioOperation as _0x499661,SetScrollOperation as _0x2cab7e}from'@univerjs/sheets-ui';var c=function(){var _0xdcd6fd=_0x1624f5;return c=Object[_0xdcd6fd(0x12b)]||function(_0x54a868){var _0x226f3e=_0xdcd6fd;for(var _0x10e957,_0x56e995=0x1,_0x144918=arguments[_0x226f3e(0x119)];_0x56e995<_0x144918;_0x56e995++){_0x10e957=arguments[_0x56e995];for(var _0x1ae8f7 in _0x10e957)Object[_0x226f3e(0xda)][_0x226f3e(0x13d)]['call'](_0x10e957,_0x1ae8f7)&&(_0x54a868[_0x1ae8f7]=_0x10e957[_0x1ae8f7]);}return _0x54a868;},c['apply'](this,arguments);},Oe=function(_0x235bd9,_0x2e98bf){var _0x3af152=_0x1624f5,_0x2f119f={};for(var _0x60bf77 in _0x235bd9)Object['prototype']['hasOwnProperty']['call'](_0x235bd9,_0x60bf77)&&_0x2e98bf[_0x3af152(0x105)](_0x60bf77)<0x0&&(_0x2f119f[_0x60bf77]=_0x235bd9[_0x60bf77]);if(_0x235bd9!=null&&typeof Object[_0x3af152(0x121)]=='function'){for(var _0x244ecb=0x0,_0x60bf77=Object['getOwnPropertySymbols'](_0x235bd9);_0x244ecb<_0x60bf77[_0x3af152(0x119)];_0x244ecb++)_0x2e98bf[_0x3af152(0x105)](_0x60bf77[_0x244ecb])<0x0&&Object[_0x3af152(0xda)][_0x3af152(0xde)][_0x3af152(0x126)](_0x235bd9,_0x60bf77[_0x244ecb])&&(_0x2f119f[_0x60bf77[_0x244ecb]]=_0x235bd9[_0x60bf77[_0x244ecb]]);}return _0x2f119f;},W=_0x3e5310(function(_0x185737,_0x3f7af5){var _0x4ccfac=_0x1624f5,_0xbbc366=_0x185737[_0x4ccfac(0xd4)],_0x2a8a15=_0x185737['id'],_0x4fcea8=_0x185737[_0x4ccfac(0x10c)],_0x5016b0=_0x185737['extend'],_0x57d59b=Oe(_0x185737,[_0x4ccfac(0xd4),'id','className','extend']),_0x476b9b=_0x4ccfac(0x11a)['concat'](_0x2a8a15,'\x20')[_0x4ccfac(0x11d)](_0x4fcea8||'')[_0x4ccfac(0x10d)](),_0x11dd71=_0x338ee2('_'[_0x4ccfac(0x11d)](Ne()));return Y(_0xbbc366,''[_0x4ccfac(0x11d)](_0x2a8a15),{'defIds':_0xbbc366['defIds'],'idSuffix':_0x11dd71[_0x4ccfac(0x141)]},c({'ref':_0x3f7af5,'className':_0x476b9b},_0x57d59b),_0x5016b0);});function Y(_0x43386a,_0x3c788a,_0xd065d5,_0x23bfcd,_0x1dda16){var _0x4c108b=_0x1624f5;return _0x4d1ec5(_0x43386a[_0x4c108b(0x118)],c(c({'key':_0x3c788a},Ee(_0x43386a,_0xd065d5,_0x1dda16)),_0x23bfcd),(we(_0x43386a,_0xd065d5)[_0x4c108b(0x15f)]||[])['map'](function(_0x244848,_0x719d53){var _0x7e3bbb=_0x4c108b;return Y(_0x244848,''['concat'](_0x3c788a,'-')[_0x7e3bbb(0x11d)](_0x43386a[_0x7e3bbb(0x118)],'-')['concat'](_0x719d53),_0xd065d5,void 0x0,_0x1dda16);}));}function Ee(_0x1e6fc6,_0x32cd02,_0x52b76a){var _0x4a04d5=_0x1624f5,_0x3833ed=c({},_0x1e6fc6[_0x4a04d5(0x12c)]);_0x52b76a!=null&&_0x52b76a[_0x4a04d5(0x132)]&&_0x3833ed['fill']===_0x4a04d5(0x132)&&(_0x3833ed[_0x4a04d5(0x129)]=_0x52b76a[_0x4a04d5(0x132)]),_0x1e6fc6[_0x4a04d5(0x118)]===_0x4a04d5(0x125)&&_0x3833ed['id']&&(_0x3833ed['id']=_0x3833ed['id']+_0x32cd02[_0x4a04d5(0x11b)]),Object['entries'](_0x3833ed)['forEach'](function(_0x28fd02){var _0x18dd81=_0x4a04d5,_0x2bdc1d=_0x28fd02[0x0],_0x37b000=_0x28fd02[0x1];_0x2bdc1d===_0x18dd81(0x125)&&typeof _0x37b000==_0x18dd81(0xd3)&&(_0x3833ed[_0x2bdc1d]=_0x37b000['replace'](/url\(#(.*)\)/,_0x18dd81(0x111)[_0x18dd81(0x11d)](_0x32cd02[_0x18dd81(0x11b)],')')));});var _0x51b7dc=_0x32cd02[_0x4a04d5(0xca)];return!_0x51b7dc||_0x51b7dc[_0x4a04d5(0x119)]===0x0||(_0x1e6fc6['tag']==='use'&&_0x3833ed[_0x4a04d5(0xf3)]&&(_0x3833ed[_0x4a04d5(0xf3)]=_0x3833ed[_0x4a04d5(0xf3)]+_0x32cd02[_0x4a04d5(0x11b)]),Object[_0x4a04d5(0x157)](_0x3833ed)['forEach'](function(_0x286606){var _0x387258=_0x4a04d5,_0x1e46ae=_0x286606[0x0],_0x434716=_0x286606[0x1];typeof _0x434716=='string'&&(_0x3833ed[_0x1e46ae]=_0x434716[_0x387258(0xf4)](/url\(#(.*)\)/,'url(#$1'[_0x387258(0x11d)](_0x32cd02[_0x387258(0x11b)],')')));})),_0x3833ed;}function we(_0x21db93,_0x354467){var _0x432555=_0x1624f5,_0x183735,_0x4b5562=_0x354467[_0x432555(0xca)];return!_0x4b5562||_0x4b5562['length']===0x0?_0x21db93:_0x21db93[_0x432555(0x118)]===_0x432555(0x163)&&(!((_0x183735=_0x21db93[_0x432555(0x15f)])===null||_0x183735===void 0x0)&&_0x183735[_0x432555(0x119)])?c(c({},_0x21db93),{'children':_0x21db93[_0x432555(0x15f)][_0x432555(0x108)](function(_0x5d77f4){var _0x85b954=_0x432555;return typeof _0x5d77f4[_0x85b954(0x12c)]['id']=='string'&&_0x4b5562&&_0x4b5562[_0x85b954(0xcf)](_0x5d77f4[_0x85b954(0x12c)]['id'])?c(c({},_0x5d77f4),{'attrs':c(c({},_0x5d77f4['attrs']),{'id':_0x5d77f4['attrs']['id']+_0x354467[_0x85b954(0x11b)]})}):_0x5d77f4;})}):_0x21db93;}function Ne(){var _0x997a0b=_0x1624f5;return Math[_0x997a0b(0x14f)]()['toString'](0x24)[_0x997a0b(0x158)](0x2,0x8);}W['displayName']='UniverIcon';var Ce={'tag':_0x1624f5(0xcd),'attrs':{'xmlns':_0x1624f5(0x140),'fill':_0x1624f5(0x12e),'viewBox':_0x1624f5(0x115),'width':_0x1624f5(0xc5),'height':_0x1624f5(0xc5)},'children':[{'tag':_0x1624f5(0xdc),'attrs':{'fill':_0x1624f5(0xbe),'d':_0x1624f5(0xf6)}},{'tag':_0x1624f5(0xdc),'attrs':{'fill':_0x1624f5(0xbe),'d':_0x1624f5(0x154),'fillRule':_0x1624f5(0x164),'clipRule':_0x1624f5(0x164)}}]},B=_0x3e5310(function(_0x1ead5a,_0x4e470e){var _0x3904a5=_0x1624f5;return _0x4d1ec5(W,Object[_0x3904a5(0x12b)]({},_0x1ead5a,{'id':_0x3904a5(0x148),'ref':_0x4e470e,'icon':Ce}));});B['displayName']=_0x1624f5(0x16a);class L extends _0x1b6eaf{constructor(){var _0x3e2b51=_0x1624f5;super(...arguments),d(this,_0x3e2b51(0xe8),new Set()),d(this,'_reporters',new Set());}[_0x1624f5(0x151)](_0x2207a7){var _0x431a31=_0x1624f5;return this[_0x431a31(0xe8)]['add'](_0x2207a7),_0x28aff6(()=>this[_0x431a31(0xe8)][_0x431a31(0xdf)](_0x2207a7));}[_0x1624f5(0xdd)](_0x33bc1f){var _0x42553d=_0x1624f5;return this[_0x42553d(0xc1)]['add'](_0x33bc1f),_0x28aff6(()=>this['_reporters'][_0x42553d(0xdf)](_0x33bc1f));}['shouldShareOperation'](_0xdd9c42){var _0x5e0242=_0x1624f5;return this[_0x5e0242(0xe8)]['has'](_0xdd9c42);}[_0x1624f5(0x134)](_0x2c1589){var _0x314727=_0x1624f5;return Array[_0x314727(0x122)](this[_0x314727(0xc1)])[_0x314727(0x108)](_0x43de8a=>_0x43de8a(_0x2c1589));}}function _0x1dcd(){var _0x28513a=['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','LIVESHARE_OPERATION','_unitID','_liveShareService','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','_uiPartsService','_handleOffline','stringify','next','PRESENTING','74140iuoDyB','univer-size-4','406860BLEGRW','getTypeOfUnitAdded$','div','indexOf','You\x27re\x20following\x20the\x20presenter','set','map','_startFollowing','_commandDisposable','_collabSession','className','trim','_stopPresenting','disposeWithMe','LIVESHARE_TERMINATE','url(#$1','_init','ONLINE','tryStartPresenting','0\x200\x2017\x2017','defineProperty','unsubscribe','tag','length','univerjs-icon\x20univerjs-icon-','idSuffix','_commandService','concat','_presenter','_startLiveShareCoordinator','presenter','getOwnPropertySymbols','from','OPERATION','pipe','mask','call','getCurrentTypeOfUnit$','memberID','fill','presenting','assign','attrs','onStarting','none','createInstance','getMemberID','onCommandExecuted','colorChannel1','Stop\x20following','getInitialStates','values','Start','UNIVER_SHEET','325913EimVJC','_stopFollowing','end','type','255066kFZGnw','hasOwnProperty','194EwgVdm','symbol','http://www.w3.org/2000/svg','current','send','complete','607110AyLOKQ','offline','_collabSessionService','default','live-share-icon','_config','live-share.config','_mountLiveShare','dispose$','FOLLOWING','_entities','random','NOT_FOLLOWING','registerSharedOperation','startFollowing','_handleNewHost','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','_status$','pluginName','entries','substring','stopFollowing','_fetchOperations','_injector','_handleNewChangeSets','univer-mb-3\x20univer-w-full\x20univer-text-sm','init','children','NEW_CHANGESETS','add','_beIdle','defs','evenodd','463AytIhM','setConfig','3072429zyQfNQ','following','getUnitId','LiveShareIcon','_configService','mutations','currentColor','dispose','has','_reporters','IDLE','asObservable','params','1em','forEach','getLiveShareCoordinator','parse','UNIVER_LIVE_SHARE_PLUGIN','defIds','override','OFFLINE','svg','_univerInstanceService','includes','executeCommand','registerComponent','_startPresenting','string','icon','subscribe','find','sheet','LIVESHARE_NEW_HOST','onRendered','prototype','LIVESHARE_REQUEST_HOST','path','registerInitialStateReporter','propertyIsEnumerable','delete','You\x27are\x20offline.','then','_handleOnline','not-following','getOwnPropertyDescriptor','Start\x20following','You\x27re\x20presenting\x20the\x20document','LIVESHARE_FETCH_OPERATIONS','_sharedOperations','clear','getConfig','event$','data','You\x27re\x20not\x20following\x20the\x20presenter','_status','Stop\x20presenting','idle','get','_handleTerminate','xlink:href','replace','8werfDF'];_0x1dcd=function(){return _0x28513a;};return _0x1dcd();}var De=Object['getOwnPropertyDescriptor'],Z=(_0x5e1ae9,_0x3d12fc,_0x14520e,_0x5c471f)=>{var _0x1a43e8=_0x1624f5;for(var _0x1abf9c=_0x5c471f>0x1?void 0x0:_0x5c471f?De(_0x3d12fc,_0x14520e):_0x3d12fc,_0x36eb2b=_0x5e1ae9[_0x1a43e8(0x119)]-0x1,_0x327f1f;_0x36eb2b>=0x0;_0x36eb2b--)(_0x327f1f=_0x5e1ae9[_0x36eb2b])&&(_0x1abf9c=_0x327f1f(_0x1abf9c)||_0x1abf9c);return _0x1abf9c;},f=(_0x497b82,_0xd96d94)=>(_0x235d26,_0x24c018)=>_0xd96d94(_0x235d26,_0x24c018,_0x497b82);let m=class extends _0x1d139d{constructor(_0x4ea6cd,_0x21dacf,_0x28139b){var _0x3bdab9=_0x1624f5;super(),d(this,'_entities',new Map()),(this[_0x3bdab9(0xce)]=_0x4ea6cd,this[_0x3bdab9(0x15b)]=_0x21dacf,this['_collabSessionService']=_0x28139b,this[_0x3bdab9(0x112)]());}async[_0x1624f5(0xc7)](_0x29e2e9){var _0x3bc832=_0x1624f5;return this[_0x3bc832(0x14e)][_0x3bc832(0xc0)](_0x29e2e9)||await this['_startLiveShareCoordinator'](_0x29e2e9),this[_0x3bc832(0x14e)][_0x3bc832(0xf1)](_0x29e2e9);}[_0x1624f5(0x112)](){var _0x37697d=_0x1624f5;this[_0x37697d(0xce)][_0x37697d(0x103)](_0x3c6f33[_0x37697d(0x137)])[_0x37697d(0x124)](_0x55a56f(this['dispose$']))[_0x37697d(0xd5)](async _0x368049=>{var _0x11ca06=_0x37697d;const _0x27d0d1=_0x368049[_0x11ca06(0x169)]();this['_entities'][_0x11ca06(0xc0)](_0x27d0d1)||this[_0x11ca06(0x11f)](_0x27d0d1);}),this[_0x37697d(0xce)]['getTypeOfUnitDisposed$'](_0x3c6f33[_0x37697d(0x137)])[_0x37697d(0x124)](_0x55a56f(this['dispose$']))['subscribe'](_0x8448ba=>{var _0x48842d=_0x37697d;const _0x1bc052=_0x8448ba[_0x48842d(0x169)](),_0x14fa43=this[_0x48842d(0x14e)]['get'](_0x1bc052);_0x14fa43==null||_0x14fa43[_0x48842d(0xbf)]();});}async['_startLiveShareCoordinator'](_0x2feeec){var _0x440e31=_0x1624f5;const _0x26c6b6=await this[_0x440e31(0x146)]['requireSession'](_0x2feeec),_0x328bd1=this[_0x440e31(0x15b)][_0x440e31(0x12f)](C,_0x2feeec,_0x26c6b6);return _0x328bd1[_0x440e31(0x15e)](),this['_entities'][_0x440e31(0x107)](_0x2feeec,_0x328bd1),_0x328bd1;}};m=Z([f(0x0,_0x13109b),f(0x1,_0x1a16ba(_0x3396c5)),f(0x2,_0x1a16ba(_0x5f1249))],m);var h=(_0x1a6731=>(_0x1a6731[_0x1624f5(0xcc)]=_0x1624f5(0x145),_0x1a6731[_0x1624f5(0xc2)]='idle',_0x1a6731[_0x1624f5(0x14d)]=_0x1624f5(0x168),_0x1a6731[_0x1624f5(0x150)]=_0x1624f5(0xe3),_0x1a6731[_0x1624f5(0xff)]=_0x1624f5(0x12a),_0x1a6731))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x1d139d{constructor(_0x3a6f96,_0x4b1346,_0x4b25c1,_0x964c42,_0x12700f){var _0x1f5e0d=_0x1624f5;super(),d(this,_0x1f5e0d(0x155),new _0x17f9f2(_0x1f5e0d(0xf0))),d(this,'status$',this[_0x1f5e0d(0x155)][_0x1f5e0d(0xc3)]()),d(this,'_init',!0x1),d(this,_0x1f5e0d(0x10a),null),d(this,_0x1f5e0d(0x11e),null),(this[_0x1f5e0d(0xf8)]=_0x3a6f96,this[_0x1f5e0d(0x10b)]=_0x4b1346,this['_configService']=_0x4b25c1,this['_liveShareService']=_0x964c42,this[_0x1f5e0d(0x11c)]=_0x12700f);}get[_0x1624f5(0xee)](){var _0x1a24f2=_0x1624f5;return this[_0x1a24f2(0x155)]['getValue']();}[_0x1624f5(0xbf)](){var _0x3632f3=_0x1624f5,_0x230cff;(_0x230cff=this['_commandDisposable'])==null||_0x230cff[_0x3632f3(0xbf)](),this['_status$'][_0x3632f3(0xfe)](_0x3632f3(0xf0)),this[_0x3632f3(0x155)][_0x3632f3(0x143)]();}['init'](){var _0x5a030c=_0x1624f5;this[_0x5a030c(0x112)]||(this['_init']=!0x0,this[_0x5a030c(0x10b)]['sessionStatus$'][_0x5a030c(0x124)](_0x55a56f(this[_0x5a030c(0x14c)]))[_0x5a030c(0xd5)](_0x119102=>{var _0x100286=_0x5a030c;switch(_0x119102){case _0x110f90['OFFLINE']:this[_0x100286(0xfc)]();break;case _0x110f90[_0x100286(0x113)]:this['_handleOnline']();break;}}),this[_0x5a030c(0x10b)][_0x5a030c(0xeb)]['pipe'](_0x55a56f(this[_0x5a030c(0x14c)]))[_0x5a030c(0xd5)](_0x2249cf=>{var _0xe11e7a=_0x5a030c;const {eventID:_0x15cb95}=_0x2249cf;switch(_0x15cb95){case _0xdbe7ec[_0xe11e7a(0xd8)]:this[_0xe11e7a(0x153)](_0x2249cf);break;case _0xdbe7ec['LIVESHARE_OPERATION']:this['_handleOperation'](_0x2249cf);break;case _0xdbe7ec[_0xe11e7a(0x110)]:this[_0xe11e7a(0xf2)]();break;case _0xdbe7ec[_0xe11e7a(0x160)]:this[_0xe11e7a(0x15c)](_0x2249cf);break;}}));}[_0x1624f5(0x114)](){var _0x2aa600=_0x1624f5;this[_0x2aa600(0x10b)][_0x2aa600(0x142)]({'eventID':_0xdbe7ec[_0x2aa600(0xdb)],'data':{'unitID':this[_0x2aa600(0xf8)],'userID':this[_0x2aa600(0x10b)][_0x2aa600(0x130)]()}},this[_0x2aa600(0xf8)]);}['stopPresenting'](){var _0x34c0ef=_0x1624f5;this[_0x34c0ef(0xee)]===_0x34c0ef(0x12a)&&(this[_0x34c0ef(0x155)][_0x34c0ef(0xfe)](_0x34c0ef(0xf0)),this[_0x34c0ef(0x10b)][_0x34c0ef(0x142)]({'eventID':_0xdbe7ec['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x34c0ef(0xf8)]}},this[_0x34c0ef(0xf8)]));}[_0x1624f5(0x152)](){var _0x5b78dd=_0x1624f5;this[_0x5b78dd(0xee)]===_0x5b78dd(0xe3)&&(this[_0x5b78dd(0x155)][_0x5b78dd(0xfe)](_0x5b78dd(0x168)),this[_0x5b78dd(0x109)]());}[_0x1624f5(0x159)](){var _0x2e17e8=_0x1624f5;this[_0x2e17e8(0xee)]===_0x2e17e8(0x168)&&this[_0x2e17e8(0x139)]();}[_0x1624f5(0x153)](_0x199c9f){var _0x5de5b2=_0x1624f5;const {presenter:_0xc25ece}=_0x199c9f[_0x5de5b2(0xec)],_0x2a52ec=this['_collabSession'][_0x5de5b2(0x130)]();this[_0x5de5b2(0x11e)]=_0xc25ece,_0xc25ece===_0x2a52ec?(this[_0x5de5b2(0x139)](),this[_0x5de5b2(0xd2)]()):this[_0x5de5b2(0xee)]!==_0x5de5b2(0xe3)&&(this[_0x5de5b2(0x10e)](),this[_0x5de5b2(0x109)]());}[_0x1624f5(0x15a)](){var _0x5a89dc=_0x1624f5;const _0x292f93={'eventID':_0xdbe7ec[_0x5a89dc(0xe7)]};this['_collabSession'][_0x5a89dc(0x142)](_0x292f93,this['_unitID']);}[_0x1624f5(0xf2)](){var _0xbfeedb=_0x1624f5;this[_0xbfeedb(0x11e)]=null,this['_status']!==_0xbfeedb(0x12a)&&this[_0xbfeedb(0x162)]();}[_0x1624f5(0x15c)](_0x2c0466){var _0x3a5d73=_0x1624f5;if(this[_0x3a5d73(0xee)]===_0x3a5d73(0x168)&&this[_0x3a5d73(0x11e)]===_0x2c0466[_0x3a5d73(0xec)][_0x3a5d73(0x128)]){const _0x3e108c=_0x378c0b(_0x2c0466[_0x3a5d73(0xec)])[_0x3a5d73(0xbd)]['reverse']()[_0x3a5d73(0xd6)](_0x705fd1=>_0x705fd1['id']===_0x1f6f57['id']);if(_0x3e108c){const _0x11e563=_0x3e108c[_0x3a5d73(0xc4)]['unitId'],_0x407fb6=_0x3e108c[_0x3a5d73(0xc4)][_0x3a5d73(0xd7)]['id'];setTimeout(()=>{var _0x1fc93d=_0x3a5d73;this['_commandService'][_0x1fc93d(0xd0)](_0x22b854['id'],{'unitId':_0x11e563,'subUnitId':_0x407fb6},{'fromCollab':!0x0});});}}}[_0x1624f5(0xd2)](){var _0x34e469=_0x1624f5;this[_0x34e469(0x155)]['next']('presenting');const _0x5f065f=new Map(),_0x5a2552=this[_0x34e469(0x10a)]=new _0x10ce83();_0x5a2552[_0x34e469(0x161)](_0x28aff6(()=>{var _0x4fd7bb=_0x34e469;_0x5f065f['forEach'](_0xb46e94=>_0xb46e94[_0x4fd7bb(0x143)]()),_0x5f065f[_0x4fd7bb(0xe9)]();})),_0x5a2552[_0x34e469(0x161)](this[_0x34e469(0x11c)][_0x34e469(0x131)](_0x3a5256=>{var _0x46a5da=_0x34e469,_0x373615;if(_0x3a5256[_0x46a5da(0x13b)]!==_0x47f736[_0x46a5da(0x123)]||!this[_0x46a5da(0xf9)]['shouldShareOperation'](_0x3a5256['id']))return;const {id:_0xefdcfb}=_0x3a5256;let _0x56eba9;_0x5f065f[_0x46a5da(0xc0)](_0xefdcfb)?_0x56eba9=_0x5f065f['get'](_0xefdcfb):(_0x56eba9=new _0x257f72(),_0x5f065f[_0x46a5da(0x107)](_0xefdcfb,_0x56eba9),_0x56eba9[_0x46a5da(0x124)](_0x5c958e((_0x373615=this['_configService'][_0x46a5da(0xea)](xe))!=null?_0x373615:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x46a5da(0xd5)](_0xb92a00=>{var _0x19c24e=_0x46a5da;this[_0x19c24e(0x10b)][_0x19c24e(0x142)]({'eventID':_0xdbe7ec[_0x19c24e(0xf7)],'data':{'unitID':this[_0x19c24e(0xf8)],'operations':{[_0xb92a00['id']]:{'id':_0xb92a00['id'],'params':JSON[_0x19c24e(0xfd)](_0xb92a00[_0x19c24e(0xc4)])}}}},this[_0x19c24e(0xf8)]);})),_0x56eba9[_0x46a5da(0xfe)](_0x3a5256);})),this[_0x34e469(0xf9)][_0x34e469(0x134)](this[_0x34e469(0xf8)])[_0x34e469(0xc6)](_0x27b8ad=>this[_0x34e469(0x10b)]['send']({'eventID':_0xdbe7ec[_0x34e469(0xf7)],'data':{'unitID':this['_unitID'],'operations':{[_0x27b8ad['id']]:{'id':_0x27b8ad['id'],'params':JSON['stringify'](_0x27b8ad[_0x34e469(0xc4)])}}}},this[_0x34e469(0xf8)]));}[_0x1624f5(0x10e)](){var _0x31b380=_0x1624f5,_0x3326ac;this[_0x31b380(0x155)][_0x31b380(0xfe)](_0x31b380(0xf0)),(_0x3326ac=this[_0x31b380(0x10a)])==null||_0x3326ac[_0x31b380(0xbf)](),this[_0x31b380(0x10a)]=null;}['_startFollowing'](){var _0x4f8a4b=_0x1624f5,_0x19c327;(_0x19c327=this[_0x4f8a4b(0x10a)])==null||_0x19c327[_0x4f8a4b(0xbf)](),this[_0x4f8a4b(0x155)]['next'](_0x4f8a4b(0x168));}[_0x1624f5(0x162)](){var _0x2e1604=_0x1624f5,_0xb02f06;this[_0x2e1604(0x155)][_0x2e1604(0xfe)](_0x2e1604(0xf0)),(_0xb02f06=this[_0x2e1604(0x10a)])==null||_0xb02f06[_0x2e1604(0xbf)](),this[_0x2e1604(0x10a)]=null;}[_0x1624f5(0x139)](){var _0x3a4ba1=_0x1624f5,_0x3d454f;this[_0x3a4ba1(0x155)][_0x3a4ba1(0xfe)](_0x3a4ba1(0xe3)),(_0x3d454f=this[_0x3a4ba1(0x10a)])==null||_0x3d454f[_0x3a4ba1(0xbf)]();}['_handleOperation'](_0x316364){var _0x49ac78=_0x1624f5;if([_0x49ac78(0x12a),_0x49ac78(0xe3),'offline'][_0x49ac78(0xcf)](this[_0x49ac78(0xee)])||!_0x316364[_0x49ac78(0xec)][_0x49ac78(0x120)]||_0x316364[_0x49ac78(0xec)][_0x49ac78(0x120)]===this[_0x49ac78(0x10b)][_0x49ac78(0x130)]())return;this[_0x49ac78(0xee)]===_0x49ac78(0xf0)&&this[_0x49ac78(0x109)]();const _0x2b6337=_0x316364['data']['operations'];Object[_0x49ac78(0x135)](_0x2b6337)['forEach'](_0x137ec1=>{var _0x258367=_0x49ac78;this[_0x258367(0x11c)][_0x258367(0xd0)](_0x137ec1['id'],_0x137ec1['params']?JSON[_0x258367(0xc8)](_0x137ec1['params']):null,{'fromCollab':!0x0});});}[_0x1624f5(0xfc)](){var _0x18b554=_0x1624f5,_0x197e89;this[_0x18b554(0x155)][_0x18b554(0xfe)](_0x18b554(0x145)),(_0x197e89=this['_commandDisposable'])==null||_0x197e89[_0x18b554(0xbf)]();}[_0x1624f5(0xe2)](){var _0x395dfc=_0x1624f5;this[_0x395dfc(0x155)][_0x395dfc(0xfe)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x375812),f(0x3,_0x1a16ba(L)),f(0x4,_0x4355bd)],C);function _0x5b64(_0x75cad4,_0x27882b){var _0x1dcd45=_0x1dcd();return _0x5b64=function(_0x5b64a5,_0x3f906e){_0x5b64a5=_0x5b64a5-0xbd;var _0x136e16=_0x1dcd45[_0x5b64a5];return _0x136e16;},_0x5b64(_0x75cad4,_0x27882b);}function ye(){var _0x25c236=_0x1624f5;const _0xa57749=_0x5de910(m),_0x1a69d0=_0x5de910(_0x13109b),_0x5f2013=_0x47a6de(()=>_0x1a69d0[_0x25c236(0x127)](_0x3c6f33['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x410d44,_0x892b4d]=_0x281766(null),[_0x3f177d,_0x4620a8]=_0x281766(h['IDLE']),_0x456296=_0x338ee2(null);return _0x37dd39(()=>(_0x5f2013&&_0xa57749[_0x25c236(0xc7)](_0x5f2013[_0x25c236(0x169)]())[_0x25c236(0xe1)](_0x2eab0a=>{var _0x352367=_0x25c236;_0x892b4d(_0x2eab0a),_0x456296[_0x352367(0x141)]=_0x2eab0a['status$'][_0x352367(0xd5)](_0x1471c5=>{_0x4620a8(_0x1471c5);});}),()=>{var _0x1d0b5e=_0x25c236,_0x2f5034;(_0x2f5034=_0x456296['current'])==null||_0x2f5034[_0x1d0b5e(0x117)](),_0x456296['current']=null;}),[_0x5f2013,_0xa57749]),_0x410d44?_0xdece36(_0x3c7f31,{'align':_0x25c236(0x13a),'disabled':_0x3f177d===h[_0x25c236(0xcc)],'className':_0x25c236(0xfa),'overlay':_0xdece36(Re,{'status':_0x3f177d,'coordinator':_0x410d44}),'children':_0xdece36('button',{'className':_0x3914c5('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3f177d===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f177d!==h[_0x25c236(0xcc)]}),'type':'button','children':_0xdece36(B,{'className':_0x25c236(0x101)})})}):null;}function Re(_0x272ae1){var _0x3ed1ac=_0x1624f5;const {status:_0x143f53,coordinator:_0xe25b4d}=_0x272ae1;switch(_0x143f53){case h[_0x3ed1ac(0xc2)]:return _0xdece36(Pe,{'coordinator':_0xe25b4d});case h[_0x3ed1ac(0x14d)]:return _0xdece36(Ae,{'coordinator':_0xe25b4d});case h[_0x3ed1ac(0x150)]:return _0xdece36(Te,{'coordinator':_0xe25b4d});case h['OFFLINE']:return _0xdece36(Fe,{});case h[_0x3ed1ac(0xff)]:return _0xdece36($e,{'coordinator':_0xe25b4d});default:return null;}}function Pe(_0x53480b){var _0x53fd14=_0x1624f5;const {coordinator:_0x2ec6bb}=_0x53480b;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x53fd14(0x104),{'className':_0x53fd14(0x15d),'children':'Present\x20this\x20document'}),_0xdece36(_0x4fc5ad,{'onClick':()=>_0x2ec6bb[_0x53fd14(0x114)](),'children':_0x53fd14(0x136)})]});}function Ae(_0x5e491a){var _0x3dd88b=_0x1624f5;const {coordinator:_0x1d9faa}=_0x5e491a;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x3dd88b(0x104),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3dd88b(0x106)}),_0xdece36(_0x4fc5ad,{'onClick':()=>_0x1d9faa[_0x3dd88b(0x159)](),'children':_0x3dd88b(0x133)})]});}function Te(_0x3958de){var _0x200147=_0x1624f5;const {coordinator:_0x17bafa}=_0x3958de;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x200147(0x104),{'className':_0x200147(0x15d),'children':_0x200147(0xed)}),_0xdece36(_0x4fc5ad,{'variant':'text','onClick':()=>_0x17bafa[_0x200147(0x152)](),'children':_0x200147(0xe5)})]});}function $e(_0x1bdb65){var _0x36de1c=_0x1624f5;const {coordinator:_0x32c49f}=_0x1bdb65;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x36de1c(0x104),{'className':_0x36de1c(0x15d),'children':_0x36de1c(0xe6)}),_0xdece36(_0x4fc5ad,{'variant':_0x36de1c(0x147),'onClick':()=>_0x32c49f['stopPresenting'](),'children':_0x36de1c(0xef)})]});}function Fe(){var _0x1f408e=_0x1624f5;return _0xdece36(_0x4b0c6c,{'children':_0x1f408e(0xe0)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x4a5cd0,_0x56ec7d,_0x4a07a1,_0x43f51d)=>{for(var _0x312b66=_0x43f51d>0x1?void 0x0:_0x43f51d?He(_0x56ec7d,_0x4a07a1):_0x56ec7d,_0x5e2b17=_0x4a5cd0['length']-0x1,_0x70c671;_0x5e2b17>=0x0;_0x5e2b17--)(_0x70c671=_0x4a5cd0[_0x5e2b17])&&(_0x312b66=_0x70c671(_0x312b66)||_0x312b66);return _0x312b66;},T=(_0x48b01d,_0x52bae4)=>(_0x2c23b7,_0x16a0d9)=>_0x52bae4(_0x2c23b7,_0x16a0d9,_0x48b01d);let I=class extends _0x1b6eaf{constructor(_0xddf493,_0x3f325f){var _0x33290d=_0x1624f5;super(),this['_injector']=_0xddf493,this[_0x33290d(0xfb)]=_0x3f325f,this[_0x33290d(0x14b)]();}[_0x1624f5(0x14b)](){var _0x5c9790=_0x1624f5;this[_0x5c9790(0x10f)](this[_0x5c9790(0xfb)][_0x5c9790(0xd1)](_0x3bea30['HEADER_MENU'],()=>_0x2d8986(ye,this[_0x5c9790(0x15b)])));}};I=je([T(0x0,_0x1a16ba(_0x3396c5)),T(0x1,_0x11fbb0)],I);const Ue=_0x1624f5(0x14a),$={};var Ve=Object[_0x1624f5(0xe4)],Me=(_0x33a5c8,_0x43e9d5,_0x522230,_0x347814)=>{for(var _0x19318b=_0x347814>0x1?void 0x0:_0x347814?Ve(_0x43e9d5,_0x522230):_0x43e9d5,_0x3fd19a=_0x33a5c8['length']-0x1,_0x532104;_0x3fd19a>=0x0;_0x3fd19a--)(_0x532104=_0x33a5c8[_0x3fd19a])&&(_0x19318b=_0x532104(_0x19318b)||_0x19318b);return _0x19318b;},ke=(_0x47fe43,_0x1725ee)=>(_0x41c0ef,_0x4c4ea2)=>_0x1725ee(_0x41c0ef,_0x4c4ea2,_0x47fe43);let b=class extends _0x1b6eaf{constructor(_0x555ec0){var _0x5235b1=_0x1624f5;super(),this[_0x5235b1(0xf9)]=_0x555ec0,this[_0x5235b1(0x112)]();}[_0x1624f5(0x112)](){[_0x499661['id'],_0x2cab7e['id'],_0x22b854['id']]['forEach'](_0xc969b1=>{var _0x40478d=_0x5b64;this[_0x40478d(0x10f)](this[_0x40478d(0xf9)][_0x40478d(0x151)](_0xc969b1));});}};b=Me([ke(0x0,_0x1a16ba(L))],b);var Ge=Object[_0x1624f5(0x116)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x51de7b,_0x26fc2b,_0x1c97db)=>_0x26fc2b in _0x51de7b?Ge(_0x51de7b,_0x26fc2b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c97db}):_0x51de7b[_0x26fc2b]=_0x1c97db,Be=(_0x176f47,_0xb2d4a1,_0x1cf0de,_0x146465)=>{var _0x227497=_0x1624f5;for(var _0x317f9a=_0x146465>0x1?void 0x0:_0x146465?We(_0xb2d4a1,_0x1cf0de):_0xb2d4a1,_0xc19992=_0x176f47[_0x227497(0x119)]-0x1,_0x18f836;_0xc19992>=0x0;_0xc19992--)(_0x18f836=_0x176f47[_0xc19992])&&(_0x317f9a=_0x18f836(_0x317f9a)||_0x317f9a);return _0x317f9a;},F=(_0x5e3931,_0x319e11)=>(_0x3cd99a,_0x45525a)=>_0x319e11(_0x3cd99a,_0x45525a,_0x5e3931),J=(_0x43c658,_0x1d2691,_0x5d948d)=>Ye(_0x43c658,typeof _0x1d2691!=_0x1624f5(0x13f)?_0x1d2691+'':_0x1d2691,_0x5d948d);const Ze=_0x1624f5(0xc9);let O=class extends _0x421668{constructor(_0xaefa75=$,_0x5a671f,_0x7f3fb1){var _0x45ba57=_0x1624f5;super(),this[_0x45ba57(0x149)]=_0xaefa75,this[_0x45ba57(0x15b)]=_0x5a671f,this[_0x45ba57(0x16b)]=_0x7f3fb1;const {..._0x18c999}=_0xeb06ad({},$,this[_0x45ba57(0x149)]);this[_0x45ba57(0x16b)][_0x45ba57(0x166)](Ue,_0x18c999);}[_0x1624f5(0x12d)](){var _0x5f355=_0x1624f5;_0x31d9a6(this[_0x5f355(0x15b)],_0x50a260([[L],[m],[b],[I]],this['_config'][_0x5f355(0xcb)])),_0x58db42(this[_0x5f355(0x15b)],[[b]]);}[_0x1624f5(0xd9)](){var _0x11c14b=_0x1624f5;_0x58db42(this[_0x11c14b(0x15b)],[[I]]);}};J(O,'type',_0x3c6f33['UNIVER_UNKNOWN']),J(O,_0x1624f5(0x156),Ze),O=Be([_0x3283e7(_0x32ab4c),F(0x1,_0x1a16ba(_0x3396c5)),F(0x2,_0x375812)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ const _0x1ff471=_0x7fae;(function(_0x67af08,_0x235412){const _0x359b7c=_0x7fae,_0x47dddf=_0x67af08();while(!![]){try{const _0x30b74c=-parseInt(_0x359b7c(0x23b))/0x1*(-parseInt(_0x359b7c(0x209))/0x2)+-parseInt(_0x359b7c(0x1c2))/0x3*(parseInt(_0x359b7c(0x1d9))/0x4)+parseInt(_0x359b7c(0x248))/0x5*(-parseInt(_0x359b7c(0x1cc))/0x6)+parseInt(_0x359b7c(0x20b))/0x7+-parseInt(_0x359b7c(0x21b))/0x8+-parseInt(_0x359b7c(0x1dd))/0x9+parseInt(_0x359b7c(0x1e9))/0xa;if(_0x30b74c===_0x235412)break;else _0x47dddf['push'](_0x47dddf['shift']());}catch(_0x41425f){_0x47dddf['push'](_0x47dddf['shift']());}}}(_0x5570,0xb8c28));var J=Object[_0x1ff471(0x240)],K=(_0x2bd2c8,_0x35c835,_0x534633)=>_0x35c835 in _0x2bd2c8?J(_0x2bd2c8,_0x35c835,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x534633}):_0x2bd2c8[_0x35c835]=_0x534633,u=(_0x48cfe1,_0xde295,_0x4bdd67)=>K(_0x48cfe1,typeof _0xde295!=_0x1ff471(0x1d4)?_0xde295+'':_0xde295,_0x4bdd67);import{Disposable as _0x5efc82,toDisposable as _0x40b029,IUniverInstanceService as _0x407f4a,Inject as _0x530cef,Injector as _0x342037,IConfigService as _0x495339,ICommandService as _0x244e30,RxDisposable as _0x27b7ba,UniverInstanceType as _0x391209,DisposableCollection as _0x4ea11a,CommandType as _0x3c20aa,DependentOn as _0x148bca,Plugin as _0x41c584,merge as _0x2c2112,registerDependencies as _0x5a0d1b,mergeOverrideWithDependencies as _0x5a4f61,touchDependencies as _0x2d8b65}from'@univerjs/core';import{useDependency as _0x11f1e0,useObservable as _0x1e059b,IUIPartsService as _0x5b30b3,BuiltInUIPart as _0x25f8f5,connectInjector as _0x33fbbf}from'@univerjs/ui';import{jsx as _0x44ff08,jsxs as _0xdeaf32,Fragment as _0x47942b}from'react/jsx-runtime';import{Dropdown as _0x21ed3d,clsx as _0x70919e,Button as _0x4f7539}from'@univerjs/design';import{useRef as _0x4576d0,createElement as _0x241ac0,forwardRef as _0x197dd8,useState as _0x155574,useEffect as _0x5bfbc0}from'react';import{CollaborationEvent as _0xb1447,parseProtocolChangeset as _0x331d5a}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x57c410,SessionStatus as _0x2ea114,UniverCollaborationClientPlugin as _0x18c6f0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x38f5e0,SetWorksheetActiveOperation as _0x5c8388}from'@univerjs/sheets';import{BehaviorSubject as _0x3757b0,Subject as _0x5667a6}from'rxjs';import{takeUntil as _0x1eb310,throttleTime as _0x193b30}from'rxjs/operators';import{SetZoomRatioOperation as _0x55628f,SetScrollOperation as _0x3efdd7}from'@univerjs/sheets-ui';function k({ref:_0x54d3c3,..._0x588c5f}){const _0x442a32=_0x1ff471,{icon:_0x3a593f,id:_0x52a812,className:_0x2b9ded,extend:_0x5d9e52,..._0xc787dc}=_0x588c5f,_0x302977=(_0x442a32(0x1db)+_0x52a812+'\x20'+(_0x2b9ded||''))[_0x442a32(0x1f3)](),_0x2773f6=_0x4576d0('_'+Oe());return G(_0x3a593f,''+_0x52a812,{'defIds':_0x3a593f[_0x442a32(0x1be)],'idSuffix':_0x2773f6[_0x442a32(0x1fc)]},{'ref':_0x54d3c3,'className':_0x302977,..._0xc787dc},_0x5d9e52);}function G(_0x26cd31,_0x51c6a2,_0x103abe,_0x974482,_0x4d40f3){const _0x16ef69=_0x1ff471;return _0x241ac0(_0x26cd31['tag'],{'key':_0x51c6a2,...be(_0x26cd31,_0x103abe,_0x4d40f3),..._0x974482},(Ee(_0x26cd31,_0x103abe)[_0x16ef69(0x1e8)]||[])['map']((_0x3decb9,_0xcda044)=>G(_0x3decb9,_0x51c6a2+'-'+_0x26cd31['tag']+'-'+_0xcda044,_0x103abe,void 0x0,_0x4d40f3)));}function be(_0x2f444c,_0x13f485,_0x51387c){const _0x17eb68=_0x1ff471,_0x324824={..._0x2f444c[_0x17eb68(0x1b3)]};_0x51387c!=null&&_0x51387c[_0x17eb68(0x1a9)]&&_0x324824[_0x17eb68(0x238)]===_0x17eb68(0x1a9)&&(_0x324824[_0x17eb68(0x238)]=_0x51387c[_0x17eb68(0x1a9)]),_0x2f444c[_0x17eb68(0x213)]==='mask'&&_0x324824['id']&&(_0x324824['id']=_0x324824['id']+_0x13f485[_0x17eb68(0x211)]),Object[_0x17eb68(0x216)](_0x324824)[_0x17eb68(0x1ad)](([_0x5ddc4a,_0x4f10f4])=>{const _0x2c57c8=_0x17eb68;_0x5ddc4a==='mask'&&typeof _0x4f10f4==_0x2c57c8(0x239)&&(_0x324824[_0x5ddc4a]=_0x4f10f4['replace'](/url\(#(.*)\)/,'url(#$1'+_0x13f485[_0x2c57c8(0x211)]+')'));});const {defIds:_0x19bfd7}=_0x13f485;return!_0x19bfd7||_0x19bfd7[_0x17eb68(0x233)]===0x0||(_0x2f444c[_0x17eb68(0x213)]===_0x17eb68(0x223)&&_0x324824[_0x17eb68(0x1f9)]&&(_0x324824[_0x17eb68(0x1f9)]=_0x324824[_0x17eb68(0x1f9)]+_0x13f485[_0x17eb68(0x211)]),Object[_0x17eb68(0x216)](_0x324824)[_0x17eb68(0x1ad)](([_0x4fbe80,_0x44586b])=>{const _0x1491e5=_0x17eb68;typeof _0x44586b==_0x1491e5(0x239)&&(_0x324824[_0x4fbe80]=_0x44586b[_0x1491e5(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x13f485[_0x1491e5(0x211)]+')'));})),_0x324824;}function Ee(_0x40f6af,_0xe39401){const _0x16df81=_0x1ff471;var _0x304159;const {defIds:_0x53abff}=_0xe39401;return!_0x53abff||_0x53abff[_0x16df81(0x233)]===0x0?_0x40f6af:_0x40f6af[_0x16df81(0x213)]==='defs'&&((_0x304159=_0x40f6af[_0x16df81(0x1e8)])!=null&&_0x304159[_0x16df81(0x233)])?{..._0x40f6af,'children':_0x40f6af[_0x16df81(0x1e8)][_0x16df81(0x1ab)](_0x2955b0=>typeof _0x2955b0[_0x16df81(0x1b3)]['id']==_0x16df81(0x239)&&_0x53abff&&_0x53abff[_0x16df81(0x1cd)](_0x2955b0[_0x16df81(0x1b3)]['id'])?{..._0x2955b0,'attrs':{..._0x2955b0[_0x16df81(0x1b3)],'id':_0x2955b0['attrs']['id']+_0xe39401['idSuffix']}}:_0x2955b0)}:_0x40f6af;}function Oe(){const _0x3058eb=_0x1ff471;return Math[_0x3058eb(0x1ea)]()[_0x3058eb(0x1a4)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x1ff471(0x20f);const we={'tag':_0x1ff471(0x1bf),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1ff471(0x1ca),'viewBox':_0x1ff471(0x1f2),'width':_0x1ff471(0x1c8),'height':_0x1ff471(0x1c8)},'children':[{'tag':'path','attrs':{'fill':_0x1ff471(0x1fb),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x1ff471(0x1fb),'d':_0x1ff471(0x1d3),'fillRule':_0x1ff471(0x21e),'clipRule':'evenodd'}}]},W=_0x197dd8(function(_0x1a2eaf,_0x3f0300){const _0x515e7e=_0x1ff471;return _0x241ac0(k,Object[_0x515e7e(0x1c1)]({},_0x1a2eaf,{'id':_0x515e7e(0x1c0),'ref':_0x3f0300,'icon':we}));});W['displayName']=_0x1ff471(0x1f7);class L extends _0x5efc82{constructor(){const _0x598f4d=_0x1ff471;super(...arguments),u(this,_0x598f4d(0x1fa),new Set()),u(this,'_reporters',new Set());}['registerSharedOperation'](_0x5e6e0a){const _0x36c790=_0x1ff471;return this['_sharedOperations']['add'](_0x5e6e0a),_0x40b029(()=>this['_sharedOperations'][_0x36c790(0x227)](_0x5e6e0a));}[_0x1ff471(0x1b0)](_0x1bf75a){const _0x22ed6a=_0x1ff471;return this[_0x22ed6a(0x1d2)][_0x22ed6a(0x21a)](_0x1bf75a),_0x40b029(()=>this['_reporters'][_0x22ed6a(0x227)](_0x1bf75a));}[_0x1ff471(0x1ff)](_0x30d843){const _0x444cec=_0x1ff471;return this[_0x444cec(0x1fa)][_0x444cec(0x222)](_0x30d843);}[_0x1ff471(0x1a6)](_0x26d9cd){const _0x12b772=_0x1ff471;return Array[_0x12b772(0x1a7)](this[_0x12b772(0x1d2)])[_0x12b772(0x1ab)](_0x16b419=>_0x16b419(_0x26d9cd));}}var Ne=Object[_0x1ff471(0x1c4)],Y=(_0x19fe3a,_0x147680,_0x34b2f9,_0x1d65c6)=>{const _0x302b59=_0x1ff471;for(var _0x3b5c18=_0x1d65c6>0x1?void 0x0:_0x1d65c6?Ne(_0x147680,_0x34b2f9):_0x147680,_0x4fe29e=_0x19fe3a[_0x302b59(0x233)]-0x1,_0x377afb;_0x4fe29e>=0x0;_0x4fe29e--)(_0x377afb=_0x19fe3a[_0x4fe29e])&&(_0x3b5c18=_0x377afb(_0x3b5c18)||_0x3b5c18);return _0x3b5c18;},_=(_0x346bd6,_0x42fa7c)=>(_0x3bdd66,_0x1146b9)=>_0x42fa7c(_0x3bdd66,_0x1146b9,_0x346bd6);let S=class extends _0x27b7ba{constructor(_0x570829,_0x20eb27,_0xef5d28){const _0x25f2e2=_0x1ff471;super(),u(this,_0x25f2e2(0x1e6),new Map()),(this[_0x25f2e2(0x1fd)]=_0x570829,this[_0x25f2e2(0x1ed)]=_0x20eb27,this[_0x25f2e2(0x1d7)]=_0xef5d28,this[_0x25f2e2(0x1c9)]());}async[_0x1ff471(0x22a)](_0x3ba235){const _0x1e084b=_0x1ff471;return this[_0x1e084b(0x1e6)]['has'](_0x3ba235)||await this[_0x1e084b(0x1fe)](_0x3ba235),this[_0x1e084b(0x1e6)][_0x1e084b(0x1a5)](_0x3ba235);}[_0x1ff471(0x220)](_0xc0e10c){const _0xec5ee5=_0x1ff471;var _0x1e1988;return(_0x1e1988=this[_0xec5ee5(0x1e6)][_0xec5ee5(0x1a5)](_0xc0e10c))!=null?_0x1e1988:null;}[_0x1ff471(0x1c9)](){const _0x4f2120=_0x1ff471;this[_0x4f2120(0x1fd)]['getTypeOfUnitAdded$'](_0x391209[_0x4f2120(0x234)])[_0x4f2120(0x1d0)](_0x1eb310(this[_0x4f2120(0x237)]))[_0x4f2120(0x1eb)](async _0x329f88=>{const _0x5f31fe=_0x4f2120,_0x4b15cf=_0x329f88[_0x5f31fe(0x212)]();this[_0x5f31fe(0x1e6)][_0x5f31fe(0x222)](_0x4b15cf)||this[_0x5f31fe(0x1fe)](_0x4b15cf);}),this[_0x4f2120(0x1fd)][_0x4f2120(0x1de)](_0x391209['UNIVER_SHEET'])[_0x4f2120(0x1d0)](_0x1eb310(this[_0x4f2120(0x237)]))[_0x4f2120(0x1eb)](_0x5bcc72=>{const _0xb0c83f=_0x4f2120,_0xba9db7=_0x5bcc72[_0xb0c83f(0x212)](),_0x4106f5=this[_0xb0c83f(0x1e6)]['get'](_0xba9db7);_0x4106f5==null||_0x4106f5['dispose']();});}async['_startLiveShareCoordinator'](_0x5d8ac4){const _0xeb6207=_0x1ff471,_0x5439d8=await this[_0xeb6207(0x1d7)]['requireSession'](_0x5d8ac4),_0x35d44b=this[_0xeb6207(0x1ed)][_0xeb6207(0x1e2)](N,_0x5d8ac4,_0x5439d8);return _0x35d44b['init'](),this[_0xeb6207(0x1e6)][_0xeb6207(0x214)](_0x5d8ac4,_0x35d44b),_0x35d44b;}};S=Y([_(0x0,_0x407f4a),_(0x1,_0x530cef(_0x342037)),_(0x2,_0x530cef(_0x57c410))],S);var c=(_0x4adbe8=>(_0x4adbe8[_0x1ff471(0x1a2)]=_0x1ff471(0x243),_0x4adbe8['IDLE']='idle',_0x4adbe8[_0x1ff471(0x1b6)]=_0x1ff471(0x21f),_0x4adbe8['NOT_FOLLOWING']=_0x1ff471(0x244),_0x4adbe8[_0x1ff471(0x21c)]=_0x1ff471(0x230),_0x4adbe8))(c||{});const Ce=_0x1ff471(0x1d5),De=0xc8;let N=class extends _0x27b7ba{constructor(_0x4b9732,_0x1fc442,_0x129c59,_0x310a79,_0x16863c){const _0x5b4e4e=_0x1ff471;super(),u(this,_0x5b4e4e(0x23f),new _0x3757b0(_0x5b4e4e(0x1b5))),u(this,'status$',this[_0x5b4e4e(0x23f)]['asObservable']()),u(this,_0x5b4e4e(0x1c9),!0x1),u(this,'_commandDisposable',null),u(this,_0x5b4e4e(0x1a3),null),(this[_0x5b4e4e(0x210)]=_0x4b9732,this[_0x5b4e4e(0x22b)]=_0x1fc442,this['_configService']=_0x129c59,this[_0x5b4e4e(0x1ae)]=_0x310a79,this[_0x5b4e4e(0x228)]=_0x16863c);}get['_status'](){const _0x4afec2=_0x1ff471;return this[_0x4afec2(0x23f)][_0x4afec2(0x217)]();}[_0x1ff471(0x1aa)](){const _0x490e09=_0x1ff471;var _0x1537bf;(_0x1537bf=this[_0x490e09(0x1d1)])==null||_0x1537bf['dispose'](),this[_0x490e09(0x23f)][_0x490e09(0x202)]('idle'),this[_0x490e09(0x23f)]['complete']();}[_0x1ff471(0x246)](){const _0x5ca0e9=_0x1ff471;return this[_0x5ca0e9(0x229)];}[_0x1ff471(0x204)](){const _0xeafc37=_0x1ff471;this['_init']||(this['_init']=!0x0,this['_collabSession']['sessionStatus$'][_0xeafc37(0x1d0)](_0x1eb310(this['dispose$']))[_0xeafc37(0x1eb)](_0x98d964=>{const _0x208f2e=_0xeafc37;switch(_0x98d964){case _0x2ea114[_0x208f2e(0x1a2)]:this[_0x208f2e(0x1bc)]();break;case _0x2ea114[_0x208f2e(0x20d)]:this[_0x208f2e(0x1b7)]();break;}}),this[_0xeafc37(0x22b)][_0xeafc37(0x23e)][_0xeafc37(0x1d0)](_0x1eb310(this[_0xeafc37(0x237)]))[_0xeafc37(0x1eb)](_0x57590c=>{const _0x5e2632=_0xeafc37,{eventID:_0x4e82df}=_0x57590c;switch(_0x4e82df){case _0xb1447['LIVESHARE_NEW_HOST']:this[_0x5e2632(0x1f6)](_0x57590c);break;case _0xb1447['LIVESHARE_OPERATION']:this[_0x5e2632(0x221)](_0x57590c);break;case _0xb1447['LIVESHARE_TERMINATE']:this[_0x5e2632(0x218)]();break;case _0xb1447[_0x5e2632(0x242)]:this['_handleNewChangeSets'](_0x57590c);break;}}));}['tryStartPresenting'](){const _0x22b46b=_0x1ff471;this[_0x22b46b(0x22b)]['send']({'eventID':_0xb1447[_0x22b46b(0x215)],'data':{'unitID':this[_0x22b46b(0x210)],'userID':this[_0x22b46b(0x22b)][_0x22b46b(0x232)]()}},this[_0x22b46b(0x210)]);}['stopPresenting'](){const _0x454ee6=_0x1ff471;this[_0x454ee6(0x229)]===_0x454ee6(0x230)&&(this[_0x454ee6(0x23f)]['next'](_0x454ee6(0x1b5)),this[_0x454ee6(0x22b)][_0x454ee6(0x22c)]({'eventID':_0xb1447[_0x454ee6(0x1f0)],'data':{'unitID':this[_0x454ee6(0x210)]}},this['_unitID']));}[_0x1ff471(0x1e3)](){const _0x216134=_0x1ff471;this[_0x216134(0x229)]===_0x216134(0x244)&&(this[_0x216134(0x23f)][_0x216134(0x202)](_0x216134(0x21f)),this['_startFollowing']());}[_0x1ff471(0x200)](){const _0x1e6a64=_0x1ff471;this['_status']===_0x1e6a64(0x21f)&&this[_0x1e6a64(0x1c6)]();}['_handleNewHost'](_0x485a12){const _0x103ddb=_0x1ff471,{presenter:_0x50273e}=_0x485a12['data'],_0xb41cf5=this['_collabSession'][_0x103ddb(0x232)]();this['_presenter']=_0x50273e,_0x50273e===_0xb41cf5?(this[_0x103ddb(0x1c6)](),this[_0x103ddb(0x219)]()):this[_0x103ddb(0x229)]!==_0x103ddb(0x244)&&(this[_0x103ddb(0x1b2)](),this[_0x103ddb(0x1e1)]());}[_0x1ff471(0x1c5)](){const _0x192748=_0x1ff471,_0x2cdf5d={'eventID':_0xb1447[_0x192748(0x21d)]};this['_collabSession'][_0x192748(0x22c)](_0x2cdf5d,this[_0x192748(0x210)]);}[_0x1ff471(0x218)](){const _0x4a5074=_0x1ff471;this['_presenter']=null,this['_status']!==_0x4a5074(0x230)&&this[_0x4a5074(0x1ac)]();}[_0x1ff471(0x1cb)](_0x4ee193){const _0x3dfc98=_0x1ff471;if(this['_status']==='following'&&this[_0x3dfc98(0x1a3)]===_0x4ee193[_0x3dfc98(0x1ef)][_0x3dfc98(0x22d)]){const _0x1861ce=_0x331d5a(_0x4ee193['data'])[_0x3dfc98(0x249)]['reverse']()[_0x3dfc98(0x20c)](_0x10d34=>_0x10d34['id']===_0x38f5e0['id']);if(_0x1861ce){const _0x5859e8=_0x1861ce[_0x3dfc98(0x1bb)][_0x3dfc98(0x1e7)],_0x21b363=_0x1861ce[_0x3dfc98(0x1bb)][_0x3dfc98(0x1d8)]['id'];setTimeout(()=>{const _0x478ec3=_0x3dfc98;this[_0x478ec3(0x228)][_0x478ec3(0x23a)](_0x5c8388['id'],{'unitId':_0x5859e8,'subUnitId':_0x21b363},{'fromCollab':!0x0});});}}}[_0x1ff471(0x219)](){const _0x488fec=_0x1ff471;this[_0x488fec(0x23f)][_0x488fec(0x202)]('presenting');const _0x2d6ee2=new Map(),_0x21ce20=this[_0x488fec(0x1d1)]=new _0x4ea11a();_0x21ce20['add'](_0x40b029(()=>{const _0x4a657b=_0x488fec;_0x2d6ee2[_0x4a657b(0x1ad)](_0x437cae=>_0x437cae[_0x4a657b(0x203)]()),_0x2d6ee2[_0x4a657b(0x20e)]();})),_0x21ce20[_0x488fec(0x21a)](this['_commandService'][_0x488fec(0x23c)](_0x4ffe17=>{const _0x5f4ba5=_0x488fec;var _0x7cf43b;if(_0x4ffe17[_0x5f4ba5(0x1b9)]!==_0x3c20aa[_0x5f4ba5(0x1e0)]||!this['_liveShareService'][_0x5f4ba5(0x1ff)](_0x4ffe17['id']))return;const {id:_0x5821aa}=_0x4ffe17;let _0x5ab94f;_0x2d6ee2[_0x5f4ba5(0x222)](_0x5821aa)?_0x5ab94f=_0x2d6ee2[_0x5f4ba5(0x1a5)](_0x5821aa):(_0x5ab94f=new _0x5667a6(),_0x2d6ee2[_0x5f4ba5(0x214)](_0x5821aa,_0x5ab94f),_0x5ab94f[_0x5f4ba5(0x1d0)](_0x193b30((_0x7cf43b=this[_0x5f4ba5(0x1b8)][_0x5f4ba5(0x224)](Ce))!=null?_0x7cf43b:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5f4ba5(0x1eb)](_0x417165=>{const _0x3feb3b=_0x5f4ba5;this[_0x3feb3b(0x22b)]['send']({'eventID':_0xb1447[_0x3feb3b(0x1cf)],'data':{'unitID':this[_0x3feb3b(0x210)],'operations':{[_0x417165['id']]:{'id':_0x417165['id'],'params':JSON[_0x3feb3b(0x225)](_0x417165[_0x3feb3b(0x1bb)])}}}},this[_0x3feb3b(0x210)]);})),_0x5ab94f[_0x5f4ba5(0x202)](_0x4ffe17);})),this[_0x488fec(0x1ae)][_0x488fec(0x1a6)](this['_unitID'])[_0x488fec(0x1ad)](_0x407797=>this[_0x488fec(0x22b)][_0x488fec(0x22c)]({'eventID':_0xb1447[_0x488fec(0x1cf)],'data':{'unitID':this[_0x488fec(0x210)],'operations':{[_0x407797['id']]:{'id':_0x407797['id'],'params':JSON[_0x488fec(0x225)](_0x407797['params'])}}}},this[_0x488fec(0x210)]));}[_0x1ff471(0x1b2)](){const _0x3499b0=_0x1ff471;var _0x5e2876;this[_0x3499b0(0x23f)][_0x3499b0(0x202)](_0x3499b0(0x1b5)),(_0x5e2876=this['_commandDisposable'])==null||_0x5e2876[_0x3499b0(0x1aa)](),this['_commandDisposable']=null;}[_0x1ff471(0x1e1)](){const _0x5ca5fa=_0x1ff471;var _0x40e911;(_0x40e911=this[_0x5ca5fa(0x1d1)])==null||_0x40e911[_0x5ca5fa(0x1aa)](),this[_0x5ca5fa(0x23f)][_0x5ca5fa(0x202)](_0x5ca5fa(0x21f));}[_0x1ff471(0x1ac)](){const _0x372a77=_0x1ff471;var _0x45999a;this[_0x372a77(0x23f)][_0x372a77(0x202)](_0x372a77(0x1b5)),(_0x45999a=this[_0x372a77(0x1d1)])==null||_0x45999a[_0x372a77(0x1aa)](),this[_0x372a77(0x1d1)]=null;}[_0x1ff471(0x1c6)](){const _0x3ca668=_0x1ff471;var _0x183a59;this[_0x3ca668(0x23f)]['next'](_0x3ca668(0x244)),(_0x183a59=this[_0x3ca668(0x1d1)])==null||_0x183a59['dispose']();}[_0x1ff471(0x221)](_0x14f9a9){const _0x56de70=_0x1ff471;if([_0x56de70(0x230),_0x56de70(0x244),_0x56de70(0x243)][_0x56de70(0x1cd)](this[_0x56de70(0x229)])||!_0x14f9a9[_0x56de70(0x1ef)][_0x56de70(0x1df)]||_0x14f9a9[_0x56de70(0x1ef)]['presenter']===this[_0x56de70(0x22b)][_0x56de70(0x232)]())return;this[_0x56de70(0x229)]===_0x56de70(0x1b5)&&this[_0x56de70(0x1e1)]();const _0x256a7d=_0x14f9a9[_0x56de70(0x1ef)][_0x56de70(0x1e4)];Object[_0x56de70(0x1dc)](_0x256a7d)['forEach'](_0x1098a5=>{const _0x829016=_0x56de70;this[_0x829016(0x228)]['executeCommand'](_0x1098a5['id'],_0x1098a5['params']?JSON['parse'](_0x1098a5[_0x829016(0x1bb)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4503d7=_0x1ff471;var _0x11193f;this[_0x4503d7(0x23f)][_0x4503d7(0x202)](_0x4503d7(0x243)),(_0x11193f=this[_0x4503d7(0x1d1)])==null||_0x11193f['dispose']();}['_handleOnline'](){const _0x25027b=_0x1ff471;this[_0x25027b(0x23f)][_0x25027b(0x202)](_0x25027b(0x1b5)),this[_0x25027b(0x1c5)]();}};N=Y([_(0x2,_0x495339),_(0x3,_0x530cef(L)),_(0x4,_0x244e30)],N);function Le(){const _0x360dd8=_0x1ff471,_0x480058=_0x11f1e0(S),_0x30294c=_0x11f1e0(_0x407f4a),_0x3103a8=_0x1e059b(()=>_0x30294c[_0x360dd8(0x1b4)](_0x391209['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3fd68c,_0x220472]=_0x155574(null),[_0x56c686,_0x178780]=_0x155574(c[_0x360dd8(0x201)]),_0xef2c91=_0x4576d0(null);return _0x5bfbc0(()=>(_0x3103a8&&_0x480058[_0x360dd8(0x22a)](_0x3103a8['getUnitId']())[_0x360dd8(0x23d)](_0x4a1edd=>{const _0x5e08dd=_0x360dd8;_0x220472(_0x4a1edd),_0xef2c91[_0x5e08dd(0x1fc)]=_0x4a1edd[_0x5e08dd(0x1ce)][_0x5e08dd(0x1eb)](_0x21c8ae=>{_0x178780(_0x21c8ae);});}),()=>{const _0x286259=_0x360dd8;var _0xb4bd9a;(_0xb4bd9a=_0xef2c91[_0x286259(0x1fc)])==null||_0xb4bd9a[_0x286259(0x1bd)](),_0xef2c91[_0x286259(0x1fc)]=null;}),[_0x3103a8,_0x480058]),_0x3fd68c?_0x44ff08(_0x21ed3d,{'align':_0x360dd8(0x1f5),'disabled':_0x56c686===c[_0x360dd8(0x1a2)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x44ff08(Re,{'status':_0x56c686,'coordinator':_0x3fd68c}),'children':_0x44ff08(_0x360dd8(0x1c7),{'className':_0x70919e(_0x360dd8(0x236),{'univer-cursor-not-allowed':_0x56c686===c[_0x360dd8(0x1a2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56c686!==c[_0x360dd8(0x1a2)]}),'type':_0x360dd8(0x1c7),'children':_0x44ff08(W,{'className':_0x360dd8(0x205)})})}):null;}function Re(_0x28e239){const _0x39cc04=_0x1ff471,{status:_0x11d2b3,coordinator:_0x3cf1e7}=_0x28e239;switch(_0x11d2b3){case c[_0x39cc04(0x201)]:return _0x44ff08($e,{'coordinator':_0x3cf1e7});case c['FOLLOWING']:return _0x44ff08(xe,{'coordinator':_0x3cf1e7});case c[_0x39cc04(0x1a8)]:return _0x44ff08(Pe,{'coordinator':_0x3cf1e7});case c[_0x39cc04(0x1a2)]:return _0x44ff08(Te,{});case c[_0x39cc04(0x21c)]:return _0x44ff08(Ae,{'coordinator':_0x3cf1e7});default:return null;}}function $e(_0x424685){const _0x367646=_0x1ff471,{coordinator:_0x2e5116}=_0x424685;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x367646(0x241),{'className':_0x367646(0x1b1),'children':_0x367646(0x235)}),_0x44ff08(_0x4f7539,{'onClick':()=>_0x2e5116[_0x367646(0x1f1)](),'children':'Start'})]});}function xe(_0x2e1c24){const _0x4fa2e6=_0x1ff471,{coordinator:_0x54c7c5}=_0x2e1c24;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x4fa2e6(0x241),{'className':_0x4fa2e6(0x1b1),'children':_0x4fa2e6(0x208)}),_0x44ff08(_0x4f7539,{'onClick':()=>_0x54c7c5['stopFollowing'](),'children':_0x4fa2e6(0x1f8)})]});}function Pe(_0x2e475d){const _0x523dff=_0x1ff471,{coordinator:_0x448d74}=_0x2e475d;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x523dff(0x241),{'className':_0x523dff(0x1b1),'children':_0x523dff(0x1af)}),_0x44ff08(_0x4f7539,{'variant':_0x523dff(0x226),'onClick':()=>_0x448d74[_0x523dff(0x1e3)](),'children':_0x523dff(0x1ec)})]});}function Ae(_0x5f022d){const _0x89213b=_0x1ff471,{coordinator:_0x3a058c}=_0x5f022d;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08('div',{'className':_0x89213b(0x1b1),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x44ff08(_0x4f7539,{'variant':_0x89213b(0x207),'onClick':()=>_0x3a058c['stopPresenting'](),'children':_0x89213b(0x231)})]});}function Te(){return _0x44ff08(_0x47942b,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x1ff471(0x1c4)],He=(_0x2f8122,_0x524e5f,_0x361076,_0x36454d)=>{for(var _0x4c0982=_0x36454d>0x1?void 0x0:_0x36454d?Fe(_0x524e5f,_0x361076):_0x524e5f,_0x371a1a=_0x2f8122['length']-0x1,_0x65146f;_0x371a1a>=0x0;_0x371a1a--)(_0x65146f=_0x2f8122[_0x371a1a])&&(_0x4c0982=_0x65146f(_0x4c0982)||_0x4c0982);return _0x4c0982;},A=(_0x275cf4,_0xd2ddea)=>(_0x1c3e8e,_0x198788)=>_0xd2ddea(_0x1c3e8e,_0x198788,_0x275cf4);function _0x7fae(_0x3fcfbd,_0x1f6936){const _0x557056=_0x5570();return _0x7fae=function(_0x7fae7c,_0x38b49c){_0x7fae7c=_0x7fae7c-0x1a2;let _0x5cda0d=_0x557056[_0x7fae7c];return _0x5cda0d;},_0x7fae(_0x3fcfbd,_0x1f6936);}let m=class extends _0x5efc82{constructor(_0x205e68,_0x419cec){const _0x1d14f7=_0x1ff471;super(),this[_0x1d14f7(0x1ed)]=_0x205e68,this[_0x1d14f7(0x247)]=_0x419cec,this[_0x1d14f7(0x206)]();}['_mountLiveShare'](){const _0x54f196=_0x1ff471;this[_0x54f196(0x1c3)](this[_0x54f196(0x247)][_0x54f196(0x1ba)](_0x25f8f5[_0x54f196(0x1f4)],()=>_0x33fbbf(Le,this['_injector'])));}};function _0x5570(){const _0x40f71a=['_stopFollowing','button','1em','_init','none','_handleNewChangeSets','6PLIzZJ','includes','status$','LIVESHARE_OPERATION','pipe','_commandDisposable','_reporters','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','symbol','SAME_OPERATION_SHARE_INTERVAL','replace','_collabSessionService','sheet','4PhrxBd','onRendered','univerjs-icon\x20univerjs-icon-','values','11830554bUmnuc','getTypeOfUnitDisposed$','presenter','OPERATION','_startFollowing','createInstance','startFollowing','operations','override','_entities','unitId','children','28307970NfiiNQ','random','subscribe','Start\x20following','_injector','registerSharedOperation','data','LIVESHARE_TERMINATE','tryStartPresenting','0\x200\x2017\x2017','trim','HEADER_MENU','end','_handleNewHost','LiveShareIcon','Stop\x20following','xlink:href','_sharedOperations','currentColor','current','_univerInstanceService','_startLiveShareCoordinator','shouldShareOperation','stopFollowing','IDLE','next','complete','init','univer-size-4','_mountLiveShare','default','You\x27re\x20following\x20the\x20presenter','2DonwDo','UNIVER_LIVE_SHARE_PLUGIN','9211230eKNjPG','find','ONLINE','clear','UniverIcon','_unitID','idSuffix','getUnitId','tag','set','LIVESHARE_REQUEST_HOST','entries','getValue','_handleTerminate','_startPresenting','add','7099752pkzOlA','PRESENTING','LIVESHARE_FETCH_OPERATIONS','evenodd','following','getLiveShareCoordinatorSync','_handleOperation','has','use','getConfig','stringify','text','delete','_commandService','_status','getLiveShareCoordinator','_collabSession','send','memberID','setConfig','_config','presenting','Stop\x20presenting','getMemberID','length','UNIVER_SHEET','Present\x20this\x20document','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose$','fill','string','executeCommand','567211CHxsmP','onCommandExecuted','then','event$','_status$','defineProperty','div','NEW_CHANGESETS','offline','not-following','onStarting','getStatus','_uiPartsService','5036170qrStPd','mutations','UNIVER_UNKNOWN','OFFLINE','_presenter','toString','get','getInitialStates','from','NOT_FOLLOWING','colorChannel1','dispose','map','_beIdle','forEach','_liveShareService','You\x27re\x20not\x20following\x20the\x20presenter','registerInitialStateReporter','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting','attrs','getCurrentTypeOfUnit$','idle','FOLLOWING','_handleOnline','_configService','type','registerComponent','params','_handleOffline','unsubscribe','defIds','svg','live-share-icon','assign','2243739giwFqR','disposeWithMe','getOwnPropertyDescriptor','_fetchOperations'];_0x5570=function(){return _0x40f71a;};return _0x5570();}m=He([A(0x0,_0x530cef(_0x342037)),A(0x1,_0x5b30b3)],m);const ye='live-share.config',T={};var Ue=Object[_0x1ff471(0x1c4)],Ve=(_0x12667a,_0x4ebed6,_0x7838cc,_0xb0d144)=>{const _0x1495e5=_0x1ff471;for(var _0x520462=_0xb0d144>0x1?void 0x0:_0xb0d144?Ue(_0x4ebed6,_0x7838cc):_0x4ebed6,_0x21e448=_0x12667a[_0x1495e5(0x233)]-0x1,_0x4c7d42;_0x21e448>=0x0;_0x21e448--)(_0x4c7d42=_0x12667a[_0x21e448])&&(_0x520462=_0x4c7d42(_0x520462)||_0x520462);return _0x520462;},je=(_0x4a23d7,_0x367f06)=>(_0x552ec3,_0x15a8de)=>_0x367f06(_0x552ec3,_0x15a8de,_0x4a23d7);let I=class extends _0x5efc82{constructor(_0x3db742){const _0x46d09d=_0x1ff471;super(),this[_0x46d09d(0x1ae)]=_0x3db742,this[_0x46d09d(0x1c9)]();}[_0x1ff471(0x1c9)](){const _0x35b521=_0x1ff471;[_0x55628f['id'],_0x3efdd7['id'],_0x5c8388['id']][_0x35b521(0x1ad)](_0x5a0e25=>{const _0x2fc9c8=_0x35b521;this[_0x2fc9c8(0x1c3)](this[_0x2fc9c8(0x1ae)][_0x2fc9c8(0x1ee)](_0x5a0e25));});}};I=Ve([je(0x0,_0x530cef(L))],I);var Me=Object['defineProperty'],ke=Object[_0x1ff471(0x1c4)],Ge=(_0xfd20bc,_0x40da0c,_0x2633de)=>_0x40da0c in _0xfd20bc?Me(_0xfd20bc,_0x40da0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2633de}):_0xfd20bc[_0x40da0c]=_0x2633de,We=(_0x55b24f,_0x3d18f4,_0x529083,_0x109f13)=>{for(var _0x4094fc=_0x109f13>0x1?void 0x0:_0x109f13?ke(_0x3d18f4,_0x529083):_0x3d18f4,_0x92aaa0=_0x55b24f['length']-0x1,_0x5cc2ca;_0x92aaa0>=0x0;_0x92aaa0--)(_0x5cc2ca=_0x55b24f[_0x92aaa0])&&(_0x4094fc=_0x5cc2ca(_0x4094fc)||_0x4094fc);return _0x4094fc;},F=(_0x6757ab,_0x3f8d09)=>(_0x163397,_0x1447a7)=>_0x3f8d09(_0x163397,_0x1447a7,_0x6757ab),B=(_0x51fc9a,_0x5d0a91,_0x24eba7)=>Ge(_0x51fc9a,typeof _0x5d0a91!=_0x1ff471(0x1d4)?_0x5d0a91+'':_0x5d0a91,_0x24eba7);const Ye=_0x1ff471(0x20a);let b=class extends _0x41c584{constructor(_0x589e7f=T,_0x3a749b,_0x3e0ea5){const _0x4dbeeb=_0x1ff471;super(),this['_config']=_0x589e7f,this[_0x4dbeeb(0x1ed)]=_0x3a749b,this[_0x4dbeeb(0x1b8)]=_0x3e0ea5;const {..._0x2051f2}=_0x2c2112({},T,this[_0x4dbeeb(0x22f)]);this[_0x4dbeeb(0x1b8)][_0x4dbeeb(0x22e)](ye,_0x2051f2);}[_0x1ff471(0x245)](){const _0x1ee846=_0x1ff471;_0x5a0d1b(this[_0x1ee846(0x1ed)],_0x5a4f61([[L],[S],[I],[m]],this[_0x1ee846(0x22f)][_0x1ee846(0x1e5)])),_0x2d8b65(this['_injector'],[[I]]);}[_0x1ff471(0x1da)](){_0x2d8b65(this['_injector'],[[m]]);}};B(b,'type',_0x391209[_0x1ff471(0x24a)]),B(b,'pluginName',Ye),b=We([_0x148bca(_0x18c6f0),F(0x1,_0x530cef(_0x342037)),F(0x2,_0x495339)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
package/lib/facade.js ADDED
@@ -0,0 +1 @@
1
+ const _0x35d540=_0x8ed9;function _0x8ed9(_0x18e553,_0x40c48c){const _0x45b37e=_0x45b3();return _0x8ed9=function(_0x8ed973,_0x5a1839){_0x8ed973=_0x8ed973-0x74;let _0x442873=_0x45b37e[_0x8ed973];return _0x442873;},_0x8ed9(_0x18e553,_0x40c48c);}(function(_0x3baa97,_0x230a0f){const _0x476629=_0x8ed9,_0x596a6a=_0x3baa97();while(!![]){try{const _0x5f3735=-parseInt(_0x476629(0x81))/0x1*(parseInt(_0x476629(0x8e))/0x2)+parseInt(_0x476629(0x8b))/0x3+-parseInt(_0x476629(0x80))/0x4*(parseInt(_0x476629(0x8a))/0x5)+-parseInt(_0x476629(0x74))/0x6*(-parseInt(_0x476629(0x86))/0x7)+-parseInt(_0x476629(0x85))/0x8+-parseInt(_0x476629(0x7b))/0x9+parseInt(_0x476629(0x78))/0xa;if(_0x5f3735===_0x230a0f)break;else _0x596a6a['push'](_0x596a6a['shift']());}catch(_0x511684){_0x596a6a['push'](_0x596a6a['shift']());}}}(_0x45b3,0xcab61));import{LiveShareController as _0x56f255,LiveShareStatus as _0x2d291f}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x19b6ba}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4c8332}from'@univerjs/sheets';function _0x45b3(){const _0x35a370=['getStatus','getActiveWorkbook','157566sPSDEQ','getId','_injector','No\x20active\x20workbook\x20found.','_initialize','PRESENTING','stopFollowing','66aSiJgO','getLiveShareCoordinatorSync','get','getActiveSheet','34356490OGavfO','executeCommand','getSheetId','8002665hBfmzV','startFollowing','syncExecuteCommand','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','4PBkpGP','1cXgPVO','startColumn','getUnitId','startRow','4959400MqBjkZ','17647zUuuAy','extend','getLiveShareStatus','_commandService','5739235qNQadL','307995UwCsPZ'];_0x45b3=function(){return _0x35a370;};return _0x45b3();}import{SetScrollOperation as _0x569b43}from'@univerjs/sheets-ui';import{FRange as _0x18699d}from'@univerjs/sheets/facade';import{FUniver as _0x54bc5e,FEnum as _0x50b179}from'@univerjs/core/facade';class I extends _0x18699d{[_0x35d540(0x92)](_0x32eb68,_0x3b3e60,_0x3b9778,_0x17a405,_0x3ab682){const _0xe000e6=_0x35d540,_0x59ad5c=_0x32eb68[_0xe000e6(0x76)](_0x56f255),_0x1a26d5=_0x32eb68['get'](_0x19b6ba),_0x237f4d=_0x3b3e60[_0xe000e6(0x83)](),_0x3eab62=_0x3b3e60[_0xe000e6(0x77)](),_0x1aa3d=_0x59ad5c['getLiveShareCoordinatorSync'](_0x237f4d);(_0x1aa3d==null?void 0x0:_0x1aa3d['getStatus']())!==_0x2d291f[_0xe000e6(0x93)]||(_0x3b9778[_0xe000e6(0x7a)]()!==_0x3eab62[_0xe000e6(0x7a)]()&&this[_0xe000e6(0x89)][_0xe000e6(0x79)](_0x4c8332['id'],{'unitId':_0x237f4d,'subUnitId':_0x3b9778[_0xe000e6(0x7a)]()}),!_0x1a26d5['getRenderById'](_0x237f4d))||_0x3ab682[_0xe000e6(0x7d)](_0x569b43['id'],{'unitId':_0x3b3e60[_0xe000e6(0x83)](),'sheetId':_0x3b9778[_0xe000e6(0x7a)](),'sheetViewStartRow':_0x17a405[_0xe000e6(0x84)],'sheetViewStartColumn':_0x17a405[_0xe000e6(0x82)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x18699d[_0x35d540(0x87)](I);class m extends _0x54bc5e{[_0x35d540(0x88)](){const _0x453c27=_0x35d540;var _0x565b0d,_0x40aafc;const _0x2c62c8=this[_0x453c27(0x90)]['get'](_0x56f255),_0x573131=(_0x565b0d=this[_0x453c27(0x8d)]())==null?void 0x0:_0x565b0d[_0x453c27(0x8f)]();if(!_0x573131)throw new Error(_0x453c27(0x91));const _0x44e31c=_0x2c62c8['getLiveShareCoordinatorSync'](_0x573131);return(_0x40aafc=_0x44e31c==null?void 0x0:_0x44e31c[_0x453c27(0x8c)]())!=null?_0x40aafc:_0x2d291f['IDLE'];}['startFollowing'](){const _0x1a8429=_0x35d540;var _0x137ffe;const _0x203ae0=this['_injector'][_0x1a8429(0x76)](_0x56f255),_0x2b04b2=(_0x137ffe=this[_0x1a8429(0x8d)]())==null?void 0x0:_0x137ffe[_0x1a8429(0x8f)]();if(!_0x2b04b2)throw new Error(_0x1a8429(0x91));const _0x1f9858=_0x203ae0[_0x1a8429(0x75)](_0x2b04b2);if(!_0x1f9858)throw new Error(_0x1a8429(0x7f));_0x1f9858[_0x1a8429(0x7c)]();}[_0x35d540(0x94)](){const _0x250e48=_0x35d540;var _0x2c6085;const _0x1d38fd=this[_0x250e48(0x90)][_0x250e48(0x76)](_0x56f255),_0x2f6536=(_0x2c6085=this[_0x250e48(0x8d)]())==null?void 0x0:_0x2c6085[_0x250e48(0x8f)]();if(!_0x2f6536)throw new Error('No\x20active\x20workbook\x20found.');const _0x537df3=_0x1d38fd[_0x250e48(0x75)](_0x2f6536);if(!_0x537df3)throw new Error(_0x250e48(0x7f));_0x537df3[_0x250e48(0x94)]();}['startPresenting'](){const _0x2329c6=_0x35d540;var _0x540ce1;const _0x5b17b0=this[_0x2329c6(0x90)][_0x2329c6(0x76)](_0x56f255),_0x259973=(_0x540ce1=this[_0x2329c6(0x8d)]())==null?void 0x0:_0x540ce1['getId']();if(!_0x259973)throw new Error('No\x20active\x20workbook\x20found.');const _0x13c037=_0x5b17b0[_0x2329c6(0x75)](_0x259973);if(!_0x13c037)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x13c037['tryStartPresenting']();}[_0x35d540(0x7e)](){const _0x3724ba=_0x35d540;var _0x57901f;const _0x8aa731=this[_0x3724ba(0x90)]['get'](_0x56f255),_0x5c5031=(_0x57901f=this[_0x3724ba(0x8d)]())==null?void 0x0:_0x57901f[_0x3724ba(0x8f)]();if(!_0x5c5031)throw new Error(_0x3724ba(0x91));const _0x650a5a=_0x8aa731[_0x3724ba(0x75)](_0x5c5031);if(!_0x650a5a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x650a5a[_0x3724ba(0x7e)]();}}_0x54bc5e[_0x35d540(0x87)](m);class C extends _0x50b179{get['LiveShareStatusEnum'](){return _0x2d291f;}}_0x50b179['extend'](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x1624f5=_0x5b64;(function(_0x53b827,_0x1d7bf4){var _0xa9d55f=_0x5b64,_0x116499=_0x53b827();while(!![]){try{var _0x426e29=parseInt(_0xa9d55f(0x165))/0x1*(-parseInt(_0xa9d55f(0x13e))/0x2)+parseInt(_0xa9d55f(0x13c))/0x3+-parseInt(_0xa9d55f(0x102))/0x4+-parseInt(_0xa9d55f(0x100))/0x5+-parseInt(_0xa9d55f(0x144))/0x6+parseInt(_0xa9d55f(0x138))/0x7*(-parseInt(_0xa9d55f(0xf5))/0x8)+parseInt(_0xa9d55f(0x167))/0x9;if(_0x426e29===_0x1d7bf4)break;else _0x116499['push'](_0x116499['shift']());}catch(_0x512ef6){_0x116499['push'](_0x116499['shift']());}}}(_0x1dcd,0x1c9d5));var q=Object[_0x1624f5(0x116)],z=(_0x3800f7,_0x137fc7,_0x38e8f7)=>_0x137fc7 in _0x3800f7?q(_0x3800f7,_0x137fc7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38e8f7}):_0x3800f7[_0x137fc7]=_0x38e8f7,d=(_0x949d89,_0x498301,_0x32f874)=>z(_0x949d89,typeof _0x498301!=_0x1624f5(0x13f)?_0x498301+'':_0x498301,_0x32f874);import{Disposable as _0x1b6eaf,toDisposable as _0x28aff6,IUniverInstanceService as _0x13109b,Inject as _0x1a16ba,Injector as _0x3396c5,IConfigService as _0x375812,ICommandService as _0x4355bd,RxDisposable as _0x1d139d,UniverInstanceType as _0x3c6f33,DisposableCollection as _0x10ce83,CommandType as _0x47f736,DependentOn as _0x3283e7,Plugin as _0x421668,merge as _0xeb06ad,registerDependencies as _0x31d9a6,mergeOverrideWithDependencies as _0x50a260,touchDependencies as _0x58db42}from'@univerjs/core';import{useDependency as _0x5de910,useObservable as _0x47a6de,IUIPartsService as _0x11fbb0,BuiltInUIPart as _0x3bea30,connectInjector as _0x2d8986}from'@univerjs/ui';import{jsx as _0xdece36,jsxs as _0x297d42,Fragment as _0x4b0c6c}from'react/jsx-runtime';import{Dropdown as _0x3c7f31,clsx as _0x3914c5,Button as _0x4fc5ad}from'@univerjs/design';import{forwardRef as _0x3e5310,useRef as _0x338ee2,createElement as _0x4d1ec5,useState as _0x281766,useEffect as _0x37dd39}from'react';import{CollaborationEvent as _0xdbe7ec,parseProtocolChangeset as _0x378c0b}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5f1249,SessionStatus as _0x110f90,UniverCollaborationClientPlugin as _0x32ab4c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1f6f57,SetWorksheetActiveOperation as _0x22b854}from'@univerjs/sheets';import{BehaviorSubject as _0x17f9f2,Subject as _0x257f72}from'rxjs';import{takeUntil as _0x55a56f,throttleTime as _0x5c958e}from'rxjs/operators';import{SetZoomRatioOperation as _0x499661,SetScrollOperation as _0x2cab7e}from'@univerjs/sheets-ui';var c=function(){var _0xdcd6fd=_0x1624f5;return c=Object[_0xdcd6fd(0x12b)]||function(_0x54a868){var _0x226f3e=_0xdcd6fd;for(var _0x10e957,_0x56e995=0x1,_0x144918=arguments[_0x226f3e(0x119)];_0x56e995<_0x144918;_0x56e995++){_0x10e957=arguments[_0x56e995];for(var _0x1ae8f7 in _0x10e957)Object[_0x226f3e(0xda)][_0x226f3e(0x13d)]['call'](_0x10e957,_0x1ae8f7)&&(_0x54a868[_0x1ae8f7]=_0x10e957[_0x1ae8f7]);}return _0x54a868;},c['apply'](this,arguments);},Oe=function(_0x235bd9,_0x2e98bf){var _0x3af152=_0x1624f5,_0x2f119f={};for(var _0x60bf77 in _0x235bd9)Object['prototype']['hasOwnProperty']['call'](_0x235bd9,_0x60bf77)&&_0x2e98bf[_0x3af152(0x105)](_0x60bf77)<0x0&&(_0x2f119f[_0x60bf77]=_0x235bd9[_0x60bf77]);if(_0x235bd9!=null&&typeof Object[_0x3af152(0x121)]=='function'){for(var _0x244ecb=0x0,_0x60bf77=Object['getOwnPropertySymbols'](_0x235bd9);_0x244ecb<_0x60bf77[_0x3af152(0x119)];_0x244ecb++)_0x2e98bf[_0x3af152(0x105)](_0x60bf77[_0x244ecb])<0x0&&Object[_0x3af152(0xda)][_0x3af152(0xde)][_0x3af152(0x126)](_0x235bd9,_0x60bf77[_0x244ecb])&&(_0x2f119f[_0x60bf77[_0x244ecb]]=_0x235bd9[_0x60bf77[_0x244ecb]]);}return _0x2f119f;},W=_0x3e5310(function(_0x185737,_0x3f7af5){var _0x4ccfac=_0x1624f5,_0xbbc366=_0x185737[_0x4ccfac(0xd4)],_0x2a8a15=_0x185737['id'],_0x4fcea8=_0x185737[_0x4ccfac(0x10c)],_0x5016b0=_0x185737['extend'],_0x57d59b=Oe(_0x185737,[_0x4ccfac(0xd4),'id','className','extend']),_0x476b9b=_0x4ccfac(0x11a)['concat'](_0x2a8a15,'\x20')[_0x4ccfac(0x11d)](_0x4fcea8||'')[_0x4ccfac(0x10d)](),_0x11dd71=_0x338ee2('_'[_0x4ccfac(0x11d)](Ne()));return Y(_0xbbc366,''[_0x4ccfac(0x11d)](_0x2a8a15),{'defIds':_0xbbc366['defIds'],'idSuffix':_0x11dd71[_0x4ccfac(0x141)]},c({'ref':_0x3f7af5,'className':_0x476b9b},_0x57d59b),_0x5016b0);});function Y(_0x43386a,_0x3c788a,_0xd065d5,_0x23bfcd,_0x1dda16){var _0x4c108b=_0x1624f5;return _0x4d1ec5(_0x43386a[_0x4c108b(0x118)],c(c({'key':_0x3c788a},Ee(_0x43386a,_0xd065d5,_0x1dda16)),_0x23bfcd),(we(_0x43386a,_0xd065d5)[_0x4c108b(0x15f)]||[])['map'](function(_0x244848,_0x719d53){var _0x7e3bbb=_0x4c108b;return Y(_0x244848,''['concat'](_0x3c788a,'-')[_0x7e3bbb(0x11d)](_0x43386a[_0x7e3bbb(0x118)],'-')['concat'](_0x719d53),_0xd065d5,void 0x0,_0x1dda16);}));}function Ee(_0x1e6fc6,_0x32cd02,_0x52b76a){var _0x4a04d5=_0x1624f5,_0x3833ed=c({},_0x1e6fc6[_0x4a04d5(0x12c)]);_0x52b76a!=null&&_0x52b76a[_0x4a04d5(0x132)]&&_0x3833ed['fill']===_0x4a04d5(0x132)&&(_0x3833ed[_0x4a04d5(0x129)]=_0x52b76a[_0x4a04d5(0x132)]),_0x1e6fc6[_0x4a04d5(0x118)]===_0x4a04d5(0x125)&&_0x3833ed['id']&&(_0x3833ed['id']=_0x3833ed['id']+_0x32cd02[_0x4a04d5(0x11b)]),Object['entries'](_0x3833ed)['forEach'](function(_0x28fd02){var _0x18dd81=_0x4a04d5,_0x2bdc1d=_0x28fd02[0x0],_0x37b000=_0x28fd02[0x1];_0x2bdc1d===_0x18dd81(0x125)&&typeof _0x37b000==_0x18dd81(0xd3)&&(_0x3833ed[_0x2bdc1d]=_0x37b000['replace'](/url\(#(.*)\)/,_0x18dd81(0x111)[_0x18dd81(0x11d)](_0x32cd02[_0x18dd81(0x11b)],')')));});var _0x51b7dc=_0x32cd02[_0x4a04d5(0xca)];return!_0x51b7dc||_0x51b7dc[_0x4a04d5(0x119)]===0x0||(_0x1e6fc6['tag']==='use'&&_0x3833ed[_0x4a04d5(0xf3)]&&(_0x3833ed[_0x4a04d5(0xf3)]=_0x3833ed[_0x4a04d5(0xf3)]+_0x32cd02[_0x4a04d5(0x11b)]),Object[_0x4a04d5(0x157)](_0x3833ed)['forEach'](function(_0x286606){var _0x387258=_0x4a04d5,_0x1e46ae=_0x286606[0x0],_0x434716=_0x286606[0x1];typeof _0x434716=='string'&&(_0x3833ed[_0x1e46ae]=_0x434716[_0x387258(0xf4)](/url\(#(.*)\)/,'url(#$1'[_0x387258(0x11d)](_0x32cd02[_0x387258(0x11b)],')')));})),_0x3833ed;}function we(_0x21db93,_0x354467){var _0x432555=_0x1624f5,_0x183735,_0x4b5562=_0x354467[_0x432555(0xca)];return!_0x4b5562||_0x4b5562['length']===0x0?_0x21db93:_0x21db93[_0x432555(0x118)]===_0x432555(0x163)&&(!((_0x183735=_0x21db93[_0x432555(0x15f)])===null||_0x183735===void 0x0)&&_0x183735[_0x432555(0x119)])?c(c({},_0x21db93),{'children':_0x21db93[_0x432555(0x15f)][_0x432555(0x108)](function(_0x5d77f4){var _0x85b954=_0x432555;return typeof _0x5d77f4[_0x85b954(0x12c)]['id']=='string'&&_0x4b5562&&_0x4b5562[_0x85b954(0xcf)](_0x5d77f4[_0x85b954(0x12c)]['id'])?c(c({},_0x5d77f4),{'attrs':c(c({},_0x5d77f4['attrs']),{'id':_0x5d77f4['attrs']['id']+_0x354467[_0x85b954(0x11b)]})}):_0x5d77f4;})}):_0x21db93;}function Ne(){var _0x997a0b=_0x1624f5;return Math[_0x997a0b(0x14f)]()['toString'](0x24)[_0x997a0b(0x158)](0x2,0x8);}W['displayName']='UniverIcon';var Ce={'tag':_0x1624f5(0xcd),'attrs':{'xmlns':_0x1624f5(0x140),'fill':_0x1624f5(0x12e),'viewBox':_0x1624f5(0x115),'width':_0x1624f5(0xc5),'height':_0x1624f5(0xc5)},'children':[{'tag':_0x1624f5(0xdc),'attrs':{'fill':_0x1624f5(0xbe),'d':_0x1624f5(0xf6)}},{'tag':_0x1624f5(0xdc),'attrs':{'fill':_0x1624f5(0xbe),'d':_0x1624f5(0x154),'fillRule':_0x1624f5(0x164),'clipRule':_0x1624f5(0x164)}}]},B=_0x3e5310(function(_0x1ead5a,_0x4e470e){var _0x3904a5=_0x1624f5;return _0x4d1ec5(W,Object[_0x3904a5(0x12b)]({},_0x1ead5a,{'id':_0x3904a5(0x148),'ref':_0x4e470e,'icon':Ce}));});B['displayName']=_0x1624f5(0x16a);class L extends _0x1b6eaf{constructor(){var _0x3e2b51=_0x1624f5;super(...arguments),d(this,_0x3e2b51(0xe8),new Set()),d(this,'_reporters',new Set());}[_0x1624f5(0x151)](_0x2207a7){var _0x431a31=_0x1624f5;return this[_0x431a31(0xe8)]['add'](_0x2207a7),_0x28aff6(()=>this[_0x431a31(0xe8)][_0x431a31(0xdf)](_0x2207a7));}[_0x1624f5(0xdd)](_0x33bc1f){var _0x42553d=_0x1624f5;return this[_0x42553d(0xc1)]['add'](_0x33bc1f),_0x28aff6(()=>this['_reporters'][_0x42553d(0xdf)](_0x33bc1f));}['shouldShareOperation'](_0xdd9c42){var _0x5e0242=_0x1624f5;return this[_0x5e0242(0xe8)]['has'](_0xdd9c42);}[_0x1624f5(0x134)](_0x2c1589){var _0x314727=_0x1624f5;return Array[_0x314727(0x122)](this[_0x314727(0xc1)])[_0x314727(0x108)](_0x43de8a=>_0x43de8a(_0x2c1589));}}function _0x1dcd(){var _0x28513a=['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','LIVESHARE_OPERATION','_unitID','_liveShareService','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','_uiPartsService','_handleOffline','stringify','next','PRESENTING','74140iuoDyB','univer-size-4','406860BLEGRW','getTypeOfUnitAdded$','div','indexOf','You\x27re\x20following\x20the\x20presenter','set','map','_startFollowing','_commandDisposable','_collabSession','className','trim','_stopPresenting','disposeWithMe','LIVESHARE_TERMINATE','url(#$1','_init','ONLINE','tryStartPresenting','0\x200\x2017\x2017','defineProperty','unsubscribe','tag','length','univerjs-icon\x20univerjs-icon-','idSuffix','_commandService','concat','_presenter','_startLiveShareCoordinator','presenter','getOwnPropertySymbols','from','OPERATION','pipe','mask','call','getCurrentTypeOfUnit$','memberID','fill','presenting','assign','attrs','onStarting','none','createInstance','getMemberID','onCommandExecuted','colorChannel1','Stop\x20following','getInitialStates','values','Start','UNIVER_SHEET','325913EimVJC','_stopFollowing','end','type','255066kFZGnw','hasOwnProperty','194EwgVdm','symbol','http://www.w3.org/2000/svg','current','send','complete','607110AyLOKQ','offline','_collabSessionService','default','live-share-icon','_config','live-share.config','_mountLiveShare','dispose$','FOLLOWING','_entities','random','NOT_FOLLOWING','registerSharedOperation','startFollowing','_handleNewHost','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','_status$','pluginName','entries','substring','stopFollowing','_fetchOperations','_injector','_handleNewChangeSets','univer-mb-3\x20univer-w-full\x20univer-text-sm','init','children','NEW_CHANGESETS','add','_beIdle','defs','evenodd','463AytIhM','setConfig','3072429zyQfNQ','following','getUnitId','LiveShareIcon','_configService','mutations','currentColor','dispose','has','_reporters','IDLE','asObservable','params','1em','forEach','getLiveShareCoordinator','parse','UNIVER_LIVE_SHARE_PLUGIN','defIds','override','OFFLINE','svg','_univerInstanceService','includes','executeCommand','registerComponent','_startPresenting','string','icon','subscribe','find','sheet','LIVESHARE_NEW_HOST','onRendered','prototype','LIVESHARE_REQUEST_HOST','path','registerInitialStateReporter','propertyIsEnumerable','delete','You\x27are\x20offline.','then','_handleOnline','not-following','getOwnPropertyDescriptor','Start\x20following','You\x27re\x20presenting\x20the\x20document','LIVESHARE_FETCH_OPERATIONS','_sharedOperations','clear','getConfig','event$','data','You\x27re\x20not\x20following\x20the\x20presenter','_status','Stop\x20presenting','idle','get','_handleTerminate','xlink:href','replace','8werfDF'];_0x1dcd=function(){return _0x28513a;};return _0x1dcd();}var De=Object['getOwnPropertyDescriptor'],Z=(_0x5e1ae9,_0x3d12fc,_0x14520e,_0x5c471f)=>{var _0x1a43e8=_0x1624f5;for(var _0x1abf9c=_0x5c471f>0x1?void 0x0:_0x5c471f?De(_0x3d12fc,_0x14520e):_0x3d12fc,_0x36eb2b=_0x5e1ae9[_0x1a43e8(0x119)]-0x1,_0x327f1f;_0x36eb2b>=0x0;_0x36eb2b--)(_0x327f1f=_0x5e1ae9[_0x36eb2b])&&(_0x1abf9c=_0x327f1f(_0x1abf9c)||_0x1abf9c);return _0x1abf9c;},f=(_0x497b82,_0xd96d94)=>(_0x235d26,_0x24c018)=>_0xd96d94(_0x235d26,_0x24c018,_0x497b82);let m=class extends _0x1d139d{constructor(_0x4ea6cd,_0x21dacf,_0x28139b){var _0x3bdab9=_0x1624f5;super(),d(this,'_entities',new Map()),(this[_0x3bdab9(0xce)]=_0x4ea6cd,this[_0x3bdab9(0x15b)]=_0x21dacf,this['_collabSessionService']=_0x28139b,this[_0x3bdab9(0x112)]());}async[_0x1624f5(0xc7)](_0x29e2e9){var _0x3bc832=_0x1624f5;return this[_0x3bc832(0x14e)][_0x3bc832(0xc0)](_0x29e2e9)||await this['_startLiveShareCoordinator'](_0x29e2e9),this[_0x3bc832(0x14e)][_0x3bc832(0xf1)](_0x29e2e9);}[_0x1624f5(0x112)](){var _0x37697d=_0x1624f5;this[_0x37697d(0xce)][_0x37697d(0x103)](_0x3c6f33[_0x37697d(0x137)])[_0x37697d(0x124)](_0x55a56f(this['dispose$']))[_0x37697d(0xd5)](async _0x368049=>{var _0x11ca06=_0x37697d;const _0x27d0d1=_0x368049[_0x11ca06(0x169)]();this['_entities'][_0x11ca06(0xc0)](_0x27d0d1)||this[_0x11ca06(0x11f)](_0x27d0d1);}),this[_0x37697d(0xce)]['getTypeOfUnitDisposed$'](_0x3c6f33[_0x37697d(0x137)])[_0x37697d(0x124)](_0x55a56f(this['dispose$']))['subscribe'](_0x8448ba=>{var _0x48842d=_0x37697d;const _0x1bc052=_0x8448ba[_0x48842d(0x169)](),_0x14fa43=this[_0x48842d(0x14e)]['get'](_0x1bc052);_0x14fa43==null||_0x14fa43[_0x48842d(0xbf)]();});}async['_startLiveShareCoordinator'](_0x2feeec){var _0x440e31=_0x1624f5;const _0x26c6b6=await this[_0x440e31(0x146)]['requireSession'](_0x2feeec),_0x328bd1=this[_0x440e31(0x15b)][_0x440e31(0x12f)](C,_0x2feeec,_0x26c6b6);return _0x328bd1[_0x440e31(0x15e)](),this['_entities'][_0x440e31(0x107)](_0x2feeec,_0x328bd1),_0x328bd1;}};m=Z([f(0x0,_0x13109b),f(0x1,_0x1a16ba(_0x3396c5)),f(0x2,_0x1a16ba(_0x5f1249))],m);var h=(_0x1a6731=>(_0x1a6731[_0x1624f5(0xcc)]=_0x1624f5(0x145),_0x1a6731[_0x1624f5(0xc2)]='idle',_0x1a6731[_0x1624f5(0x14d)]=_0x1624f5(0x168),_0x1a6731[_0x1624f5(0x150)]=_0x1624f5(0xe3),_0x1a6731[_0x1624f5(0xff)]=_0x1624f5(0x12a),_0x1a6731))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x1d139d{constructor(_0x3a6f96,_0x4b1346,_0x4b25c1,_0x964c42,_0x12700f){var _0x1f5e0d=_0x1624f5;super(),d(this,_0x1f5e0d(0x155),new _0x17f9f2(_0x1f5e0d(0xf0))),d(this,'status$',this[_0x1f5e0d(0x155)][_0x1f5e0d(0xc3)]()),d(this,'_init',!0x1),d(this,_0x1f5e0d(0x10a),null),d(this,_0x1f5e0d(0x11e),null),(this[_0x1f5e0d(0xf8)]=_0x3a6f96,this[_0x1f5e0d(0x10b)]=_0x4b1346,this['_configService']=_0x4b25c1,this['_liveShareService']=_0x964c42,this[_0x1f5e0d(0x11c)]=_0x12700f);}get[_0x1624f5(0xee)](){var _0x1a24f2=_0x1624f5;return this[_0x1a24f2(0x155)]['getValue']();}[_0x1624f5(0xbf)](){var _0x3632f3=_0x1624f5,_0x230cff;(_0x230cff=this['_commandDisposable'])==null||_0x230cff[_0x3632f3(0xbf)](),this['_status$'][_0x3632f3(0xfe)](_0x3632f3(0xf0)),this[_0x3632f3(0x155)][_0x3632f3(0x143)]();}['init'](){var _0x5a030c=_0x1624f5;this[_0x5a030c(0x112)]||(this['_init']=!0x0,this[_0x5a030c(0x10b)]['sessionStatus$'][_0x5a030c(0x124)](_0x55a56f(this[_0x5a030c(0x14c)]))[_0x5a030c(0xd5)](_0x119102=>{var _0x100286=_0x5a030c;switch(_0x119102){case _0x110f90['OFFLINE']:this[_0x100286(0xfc)]();break;case _0x110f90[_0x100286(0x113)]:this['_handleOnline']();break;}}),this[_0x5a030c(0x10b)][_0x5a030c(0xeb)]['pipe'](_0x55a56f(this[_0x5a030c(0x14c)]))[_0x5a030c(0xd5)](_0x2249cf=>{var _0xe11e7a=_0x5a030c;const {eventID:_0x15cb95}=_0x2249cf;switch(_0x15cb95){case _0xdbe7ec[_0xe11e7a(0xd8)]:this[_0xe11e7a(0x153)](_0x2249cf);break;case _0xdbe7ec['LIVESHARE_OPERATION']:this['_handleOperation'](_0x2249cf);break;case _0xdbe7ec[_0xe11e7a(0x110)]:this[_0xe11e7a(0xf2)]();break;case _0xdbe7ec[_0xe11e7a(0x160)]:this[_0xe11e7a(0x15c)](_0x2249cf);break;}}));}[_0x1624f5(0x114)](){var _0x2aa600=_0x1624f5;this[_0x2aa600(0x10b)][_0x2aa600(0x142)]({'eventID':_0xdbe7ec[_0x2aa600(0xdb)],'data':{'unitID':this[_0x2aa600(0xf8)],'userID':this[_0x2aa600(0x10b)][_0x2aa600(0x130)]()}},this[_0x2aa600(0xf8)]);}['stopPresenting'](){var _0x34c0ef=_0x1624f5;this[_0x34c0ef(0xee)]===_0x34c0ef(0x12a)&&(this[_0x34c0ef(0x155)][_0x34c0ef(0xfe)](_0x34c0ef(0xf0)),this[_0x34c0ef(0x10b)][_0x34c0ef(0x142)]({'eventID':_0xdbe7ec['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x34c0ef(0xf8)]}},this[_0x34c0ef(0xf8)]));}[_0x1624f5(0x152)](){var _0x5b78dd=_0x1624f5;this[_0x5b78dd(0xee)]===_0x5b78dd(0xe3)&&(this[_0x5b78dd(0x155)][_0x5b78dd(0xfe)](_0x5b78dd(0x168)),this[_0x5b78dd(0x109)]());}[_0x1624f5(0x159)](){var _0x2e17e8=_0x1624f5;this[_0x2e17e8(0xee)]===_0x2e17e8(0x168)&&this[_0x2e17e8(0x139)]();}[_0x1624f5(0x153)](_0x199c9f){var _0x5de5b2=_0x1624f5;const {presenter:_0xc25ece}=_0x199c9f[_0x5de5b2(0xec)],_0x2a52ec=this['_collabSession'][_0x5de5b2(0x130)]();this[_0x5de5b2(0x11e)]=_0xc25ece,_0xc25ece===_0x2a52ec?(this[_0x5de5b2(0x139)](),this[_0x5de5b2(0xd2)]()):this[_0x5de5b2(0xee)]!==_0x5de5b2(0xe3)&&(this[_0x5de5b2(0x10e)](),this[_0x5de5b2(0x109)]());}[_0x1624f5(0x15a)](){var _0x5a89dc=_0x1624f5;const _0x292f93={'eventID':_0xdbe7ec[_0x5a89dc(0xe7)]};this['_collabSession'][_0x5a89dc(0x142)](_0x292f93,this['_unitID']);}[_0x1624f5(0xf2)](){var _0xbfeedb=_0x1624f5;this[_0xbfeedb(0x11e)]=null,this['_status']!==_0xbfeedb(0x12a)&&this[_0xbfeedb(0x162)]();}[_0x1624f5(0x15c)](_0x2c0466){var _0x3a5d73=_0x1624f5;if(this[_0x3a5d73(0xee)]===_0x3a5d73(0x168)&&this[_0x3a5d73(0x11e)]===_0x2c0466[_0x3a5d73(0xec)][_0x3a5d73(0x128)]){const _0x3e108c=_0x378c0b(_0x2c0466[_0x3a5d73(0xec)])[_0x3a5d73(0xbd)]['reverse']()[_0x3a5d73(0xd6)](_0x705fd1=>_0x705fd1['id']===_0x1f6f57['id']);if(_0x3e108c){const _0x11e563=_0x3e108c[_0x3a5d73(0xc4)]['unitId'],_0x407fb6=_0x3e108c[_0x3a5d73(0xc4)][_0x3a5d73(0xd7)]['id'];setTimeout(()=>{var _0x1fc93d=_0x3a5d73;this['_commandService'][_0x1fc93d(0xd0)](_0x22b854['id'],{'unitId':_0x11e563,'subUnitId':_0x407fb6},{'fromCollab':!0x0});});}}}[_0x1624f5(0xd2)](){var _0x34e469=_0x1624f5;this[_0x34e469(0x155)]['next']('presenting');const _0x5f065f=new Map(),_0x5a2552=this[_0x34e469(0x10a)]=new _0x10ce83();_0x5a2552[_0x34e469(0x161)](_0x28aff6(()=>{var _0x4fd7bb=_0x34e469;_0x5f065f['forEach'](_0xb46e94=>_0xb46e94[_0x4fd7bb(0x143)]()),_0x5f065f[_0x4fd7bb(0xe9)]();})),_0x5a2552[_0x34e469(0x161)](this[_0x34e469(0x11c)][_0x34e469(0x131)](_0x3a5256=>{var _0x46a5da=_0x34e469,_0x373615;if(_0x3a5256[_0x46a5da(0x13b)]!==_0x47f736[_0x46a5da(0x123)]||!this[_0x46a5da(0xf9)]['shouldShareOperation'](_0x3a5256['id']))return;const {id:_0xefdcfb}=_0x3a5256;let _0x56eba9;_0x5f065f[_0x46a5da(0xc0)](_0xefdcfb)?_0x56eba9=_0x5f065f['get'](_0xefdcfb):(_0x56eba9=new _0x257f72(),_0x5f065f[_0x46a5da(0x107)](_0xefdcfb,_0x56eba9),_0x56eba9[_0x46a5da(0x124)](_0x5c958e((_0x373615=this['_configService'][_0x46a5da(0xea)](xe))!=null?_0x373615:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x46a5da(0xd5)](_0xb92a00=>{var _0x19c24e=_0x46a5da;this[_0x19c24e(0x10b)][_0x19c24e(0x142)]({'eventID':_0xdbe7ec[_0x19c24e(0xf7)],'data':{'unitID':this[_0x19c24e(0xf8)],'operations':{[_0xb92a00['id']]:{'id':_0xb92a00['id'],'params':JSON[_0x19c24e(0xfd)](_0xb92a00[_0x19c24e(0xc4)])}}}},this[_0x19c24e(0xf8)]);})),_0x56eba9[_0x46a5da(0xfe)](_0x3a5256);})),this[_0x34e469(0xf9)][_0x34e469(0x134)](this[_0x34e469(0xf8)])[_0x34e469(0xc6)](_0x27b8ad=>this[_0x34e469(0x10b)]['send']({'eventID':_0xdbe7ec[_0x34e469(0xf7)],'data':{'unitID':this['_unitID'],'operations':{[_0x27b8ad['id']]:{'id':_0x27b8ad['id'],'params':JSON['stringify'](_0x27b8ad[_0x34e469(0xc4)])}}}},this[_0x34e469(0xf8)]));}[_0x1624f5(0x10e)](){var _0x31b380=_0x1624f5,_0x3326ac;this[_0x31b380(0x155)][_0x31b380(0xfe)](_0x31b380(0xf0)),(_0x3326ac=this[_0x31b380(0x10a)])==null||_0x3326ac[_0x31b380(0xbf)](),this[_0x31b380(0x10a)]=null;}['_startFollowing'](){var _0x4f8a4b=_0x1624f5,_0x19c327;(_0x19c327=this[_0x4f8a4b(0x10a)])==null||_0x19c327[_0x4f8a4b(0xbf)](),this[_0x4f8a4b(0x155)]['next'](_0x4f8a4b(0x168));}[_0x1624f5(0x162)](){var _0x2e1604=_0x1624f5,_0xb02f06;this[_0x2e1604(0x155)][_0x2e1604(0xfe)](_0x2e1604(0xf0)),(_0xb02f06=this[_0x2e1604(0x10a)])==null||_0xb02f06[_0x2e1604(0xbf)](),this[_0x2e1604(0x10a)]=null;}[_0x1624f5(0x139)](){var _0x3a4ba1=_0x1624f5,_0x3d454f;this[_0x3a4ba1(0x155)][_0x3a4ba1(0xfe)](_0x3a4ba1(0xe3)),(_0x3d454f=this[_0x3a4ba1(0x10a)])==null||_0x3d454f[_0x3a4ba1(0xbf)]();}['_handleOperation'](_0x316364){var _0x49ac78=_0x1624f5;if([_0x49ac78(0x12a),_0x49ac78(0xe3),'offline'][_0x49ac78(0xcf)](this[_0x49ac78(0xee)])||!_0x316364[_0x49ac78(0xec)][_0x49ac78(0x120)]||_0x316364[_0x49ac78(0xec)][_0x49ac78(0x120)]===this[_0x49ac78(0x10b)][_0x49ac78(0x130)]())return;this[_0x49ac78(0xee)]===_0x49ac78(0xf0)&&this[_0x49ac78(0x109)]();const _0x2b6337=_0x316364['data']['operations'];Object[_0x49ac78(0x135)](_0x2b6337)['forEach'](_0x137ec1=>{var _0x258367=_0x49ac78;this[_0x258367(0x11c)][_0x258367(0xd0)](_0x137ec1['id'],_0x137ec1['params']?JSON[_0x258367(0xc8)](_0x137ec1['params']):null,{'fromCollab':!0x0});});}[_0x1624f5(0xfc)](){var _0x18b554=_0x1624f5,_0x197e89;this[_0x18b554(0x155)][_0x18b554(0xfe)](_0x18b554(0x145)),(_0x197e89=this['_commandDisposable'])==null||_0x197e89[_0x18b554(0xbf)]();}[_0x1624f5(0xe2)](){var _0x395dfc=_0x1624f5;this[_0x395dfc(0x155)][_0x395dfc(0xfe)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x375812),f(0x3,_0x1a16ba(L)),f(0x4,_0x4355bd)],C);function _0x5b64(_0x75cad4,_0x27882b){var _0x1dcd45=_0x1dcd();return _0x5b64=function(_0x5b64a5,_0x3f906e){_0x5b64a5=_0x5b64a5-0xbd;var _0x136e16=_0x1dcd45[_0x5b64a5];return _0x136e16;},_0x5b64(_0x75cad4,_0x27882b);}function ye(){var _0x25c236=_0x1624f5;const _0xa57749=_0x5de910(m),_0x1a69d0=_0x5de910(_0x13109b),_0x5f2013=_0x47a6de(()=>_0x1a69d0[_0x25c236(0x127)](_0x3c6f33['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x410d44,_0x892b4d]=_0x281766(null),[_0x3f177d,_0x4620a8]=_0x281766(h['IDLE']),_0x456296=_0x338ee2(null);return _0x37dd39(()=>(_0x5f2013&&_0xa57749[_0x25c236(0xc7)](_0x5f2013[_0x25c236(0x169)]())[_0x25c236(0xe1)](_0x2eab0a=>{var _0x352367=_0x25c236;_0x892b4d(_0x2eab0a),_0x456296[_0x352367(0x141)]=_0x2eab0a['status$'][_0x352367(0xd5)](_0x1471c5=>{_0x4620a8(_0x1471c5);});}),()=>{var _0x1d0b5e=_0x25c236,_0x2f5034;(_0x2f5034=_0x456296['current'])==null||_0x2f5034[_0x1d0b5e(0x117)](),_0x456296['current']=null;}),[_0x5f2013,_0xa57749]),_0x410d44?_0xdece36(_0x3c7f31,{'align':_0x25c236(0x13a),'disabled':_0x3f177d===h[_0x25c236(0xcc)],'className':_0x25c236(0xfa),'overlay':_0xdece36(Re,{'status':_0x3f177d,'coordinator':_0x410d44}),'children':_0xdece36('button',{'className':_0x3914c5('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3f177d===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f177d!==h[_0x25c236(0xcc)]}),'type':'button','children':_0xdece36(B,{'className':_0x25c236(0x101)})})}):null;}function Re(_0x272ae1){var _0x3ed1ac=_0x1624f5;const {status:_0x143f53,coordinator:_0xe25b4d}=_0x272ae1;switch(_0x143f53){case h[_0x3ed1ac(0xc2)]:return _0xdece36(Pe,{'coordinator':_0xe25b4d});case h[_0x3ed1ac(0x14d)]:return _0xdece36(Ae,{'coordinator':_0xe25b4d});case h[_0x3ed1ac(0x150)]:return _0xdece36(Te,{'coordinator':_0xe25b4d});case h['OFFLINE']:return _0xdece36(Fe,{});case h[_0x3ed1ac(0xff)]:return _0xdece36($e,{'coordinator':_0xe25b4d});default:return null;}}function Pe(_0x53480b){var _0x53fd14=_0x1624f5;const {coordinator:_0x2ec6bb}=_0x53480b;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x53fd14(0x104),{'className':_0x53fd14(0x15d),'children':'Present\x20this\x20document'}),_0xdece36(_0x4fc5ad,{'onClick':()=>_0x2ec6bb[_0x53fd14(0x114)](),'children':_0x53fd14(0x136)})]});}function Ae(_0x5e491a){var _0x3dd88b=_0x1624f5;const {coordinator:_0x1d9faa}=_0x5e491a;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x3dd88b(0x104),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3dd88b(0x106)}),_0xdece36(_0x4fc5ad,{'onClick':()=>_0x1d9faa[_0x3dd88b(0x159)](),'children':_0x3dd88b(0x133)})]});}function Te(_0x3958de){var _0x200147=_0x1624f5;const {coordinator:_0x17bafa}=_0x3958de;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x200147(0x104),{'className':_0x200147(0x15d),'children':_0x200147(0xed)}),_0xdece36(_0x4fc5ad,{'variant':'text','onClick':()=>_0x17bafa[_0x200147(0x152)](),'children':_0x200147(0xe5)})]});}function $e(_0x1bdb65){var _0x36de1c=_0x1624f5;const {coordinator:_0x32c49f}=_0x1bdb65;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x36de1c(0x104),{'className':_0x36de1c(0x15d),'children':_0x36de1c(0xe6)}),_0xdece36(_0x4fc5ad,{'variant':_0x36de1c(0x147),'onClick':()=>_0x32c49f['stopPresenting'](),'children':_0x36de1c(0xef)})]});}function Fe(){var _0x1f408e=_0x1624f5;return _0xdece36(_0x4b0c6c,{'children':_0x1f408e(0xe0)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x4a5cd0,_0x56ec7d,_0x4a07a1,_0x43f51d)=>{for(var _0x312b66=_0x43f51d>0x1?void 0x0:_0x43f51d?He(_0x56ec7d,_0x4a07a1):_0x56ec7d,_0x5e2b17=_0x4a5cd0['length']-0x1,_0x70c671;_0x5e2b17>=0x0;_0x5e2b17--)(_0x70c671=_0x4a5cd0[_0x5e2b17])&&(_0x312b66=_0x70c671(_0x312b66)||_0x312b66);return _0x312b66;},T=(_0x48b01d,_0x52bae4)=>(_0x2c23b7,_0x16a0d9)=>_0x52bae4(_0x2c23b7,_0x16a0d9,_0x48b01d);let I=class extends _0x1b6eaf{constructor(_0xddf493,_0x3f325f){var _0x33290d=_0x1624f5;super(),this['_injector']=_0xddf493,this[_0x33290d(0xfb)]=_0x3f325f,this[_0x33290d(0x14b)]();}[_0x1624f5(0x14b)](){var _0x5c9790=_0x1624f5;this[_0x5c9790(0x10f)](this[_0x5c9790(0xfb)][_0x5c9790(0xd1)](_0x3bea30['HEADER_MENU'],()=>_0x2d8986(ye,this[_0x5c9790(0x15b)])));}};I=je([T(0x0,_0x1a16ba(_0x3396c5)),T(0x1,_0x11fbb0)],I);const Ue=_0x1624f5(0x14a),$={};var Ve=Object[_0x1624f5(0xe4)],Me=(_0x33a5c8,_0x43e9d5,_0x522230,_0x347814)=>{for(var _0x19318b=_0x347814>0x1?void 0x0:_0x347814?Ve(_0x43e9d5,_0x522230):_0x43e9d5,_0x3fd19a=_0x33a5c8['length']-0x1,_0x532104;_0x3fd19a>=0x0;_0x3fd19a--)(_0x532104=_0x33a5c8[_0x3fd19a])&&(_0x19318b=_0x532104(_0x19318b)||_0x19318b);return _0x19318b;},ke=(_0x47fe43,_0x1725ee)=>(_0x41c0ef,_0x4c4ea2)=>_0x1725ee(_0x41c0ef,_0x4c4ea2,_0x47fe43);let b=class extends _0x1b6eaf{constructor(_0x555ec0){var _0x5235b1=_0x1624f5;super(),this[_0x5235b1(0xf9)]=_0x555ec0,this[_0x5235b1(0x112)]();}[_0x1624f5(0x112)](){[_0x499661['id'],_0x2cab7e['id'],_0x22b854['id']]['forEach'](_0xc969b1=>{var _0x40478d=_0x5b64;this[_0x40478d(0x10f)](this[_0x40478d(0xf9)][_0x40478d(0x151)](_0xc969b1));});}};b=Me([ke(0x0,_0x1a16ba(L))],b);var Ge=Object[_0x1624f5(0x116)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x51de7b,_0x26fc2b,_0x1c97db)=>_0x26fc2b in _0x51de7b?Ge(_0x51de7b,_0x26fc2b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c97db}):_0x51de7b[_0x26fc2b]=_0x1c97db,Be=(_0x176f47,_0xb2d4a1,_0x1cf0de,_0x146465)=>{var _0x227497=_0x1624f5;for(var _0x317f9a=_0x146465>0x1?void 0x0:_0x146465?We(_0xb2d4a1,_0x1cf0de):_0xb2d4a1,_0xc19992=_0x176f47[_0x227497(0x119)]-0x1,_0x18f836;_0xc19992>=0x0;_0xc19992--)(_0x18f836=_0x176f47[_0xc19992])&&(_0x317f9a=_0x18f836(_0x317f9a)||_0x317f9a);return _0x317f9a;},F=(_0x5e3931,_0x319e11)=>(_0x3cd99a,_0x45525a)=>_0x319e11(_0x3cd99a,_0x45525a,_0x5e3931),J=(_0x43c658,_0x1d2691,_0x5d948d)=>Ye(_0x43c658,typeof _0x1d2691!=_0x1624f5(0x13f)?_0x1d2691+'':_0x1d2691,_0x5d948d);const Ze=_0x1624f5(0xc9);let O=class extends _0x421668{constructor(_0xaefa75=$,_0x5a671f,_0x7f3fb1){var _0x45ba57=_0x1624f5;super(),this[_0x45ba57(0x149)]=_0xaefa75,this[_0x45ba57(0x15b)]=_0x5a671f,this[_0x45ba57(0x16b)]=_0x7f3fb1;const {..._0x18c999}=_0xeb06ad({},$,this[_0x45ba57(0x149)]);this[_0x45ba57(0x16b)][_0x45ba57(0x166)](Ue,_0x18c999);}[_0x1624f5(0x12d)](){var _0x5f355=_0x1624f5;_0x31d9a6(this[_0x5f355(0x15b)],_0x50a260([[L],[m],[b],[I]],this['_config'][_0x5f355(0xcb)])),_0x58db42(this[_0x5f355(0x15b)],[[b]]);}[_0x1624f5(0xd9)](){var _0x11c14b=_0x1624f5;_0x58db42(this[_0x11c14b(0x15b)],[[I]]);}};J(O,'type',_0x3c6f33['UNIVER_UNKNOWN']),J(O,_0x1624f5(0x156),Ze),O=Be([_0x3283e7(_0x32ab4c),F(0x1,_0x1a16ba(_0x3396c5)),F(0x2,_0x375812)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ const _0x1ff471=_0x7fae;(function(_0x67af08,_0x235412){const _0x359b7c=_0x7fae,_0x47dddf=_0x67af08();while(!![]){try{const _0x30b74c=-parseInt(_0x359b7c(0x23b))/0x1*(-parseInt(_0x359b7c(0x209))/0x2)+-parseInt(_0x359b7c(0x1c2))/0x3*(parseInt(_0x359b7c(0x1d9))/0x4)+parseInt(_0x359b7c(0x248))/0x5*(-parseInt(_0x359b7c(0x1cc))/0x6)+parseInt(_0x359b7c(0x20b))/0x7+-parseInt(_0x359b7c(0x21b))/0x8+-parseInt(_0x359b7c(0x1dd))/0x9+parseInt(_0x359b7c(0x1e9))/0xa;if(_0x30b74c===_0x235412)break;else _0x47dddf['push'](_0x47dddf['shift']());}catch(_0x41425f){_0x47dddf['push'](_0x47dddf['shift']());}}}(_0x5570,0xb8c28));var J=Object[_0x1ff471(0x240)],K=(_0x2bd2c8,_0x35c835,_0x534633)=>_0x35c835 in _0x2bd2c8?J(_0x2bd2c8,_0x35c835,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x534633}):_0x2bd2c8[_0x35c835]=_0x534633,u=(_0x48cfe1,_0xde295,_0x4bdd67)=>K(_0x48cfe1,typeof _0xde295!=_0x1ff471(0x1d4)?_0xde295+'':_0xde295,_0x4bdd67);import{Disposable as _0x5efc82,toDisposable as _0x40b029,IUniverInstanceService as _0x407f4a,Inject as _0x530cef,Injector as _0x342037,IConfigService as _0x495339,ICommandService as _0x244e30,RxDisposable as _0x27b7ba,UniverInstanceType as _0x391209,DisposableCollection as _0x4ea11a,CommandType as _0x3c20aa,DependentOn as _0x148bca,Plugin as _0x41c584,merge as _0x2c2112,registerDependencies as _0x5a0d1b,mergeOverrideWithDependencies as _0x5a4f61,touchDependencies as _0x2d8b65}from'@univerjs/core';import{useDependency as _0x11f1e0,useObservable as _0x1e059b,IUIPartsService as _0x5b30b3,BuiltInUIPart as _0x25f8f5,connectInjector as _0x33fbbf}from'@univerjs/ui';import{jsx as _0x44ff08,jsxs as _0xdeaf32,Fragment as _0x47942b}from'react/jsx-runtime';import{Dropdown as _0x21ed3d,clsx as _0x70919e,Button as _0x4f7539}from'@univerjs/design';import{useRef as _0x4576d0,createElement as _0x241ac0,forwardRef as _0x197dd8,useState as _0x155574,useEffect as _0x5bfbc0}from'react';import{CollaborationEvent as _0xb1447,parseProtocolChangeset as _0x331d5a}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x57c410,SessionStatus as _0x2ea114,UniverCollaborationClientPlugin as _0x18c6f0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x38f5e0,SetWorksheetActiveOperation as _0x5c8388}from'@univerjs/sheets';import{BehaviorSubject as _0x3757b0,Subject as _0x5667a6}from'rxjs';import{takeUntil as _0x1eb310,throttleTime as _0x193b30}from'rxjs/operators';import{SetZoomRatioOperation as _0x55628f,SetScrollOperation as _0x3efdd7}from'@univerjs/sheets-ui';function k({ref:_0x54d3c3,..._0x588c5f}){const _0x442a32=_0x1ff471,{icon:_0x3a593f,id:_0x52a812,className:_0x2b9ded,extend:_0x5d9e52,..._0xc787dc}=_0x588c5f,_0x302977=(_0x442a32(0x1db)+_0x52a812+'\x20'+(_0x2b9ded||''))[_0x442a32(0x1f3)](),_0x2773f6=_0x4576d0('_'+Oe());return G(_0x3a593f,''+_0x52a812,{'defIds':_0x3a593f[_0x442a32(0x1be)],'idSuffix':_0x2773f6[_0x442a32(0x1fc)]},{'ref':_0x54d3c3,'className':_0x302977,..._0xc787dc},_0x5d9e52);}function G(_0x26cd31,_0x51c6a2,_0x103abe,_0x974482,_0x4d40f3){const _0x16ef69=_0x1ff471;return _0x241ac0(_0x26cd31['tag'],{'key':_0x51c6a2,...be(_0x26cd31,_0x103abe,_0x4d40f3),..._0x974482},(Ee(_0x26cd31,_0x103abe)[_0x16ef69(0x1e8)]||[])['map']((_0x3decb9,_0xcda044)=>G(_0x3decb9,_0x51c6a2+'-'+_0x26cd31['tag']+'-'+_0xcda044,_0x103abe,void 0x0,_0x4d40f3)));}function be(_0x2f444c,_0x13f485,_0x51387c){const _0x17eb68=_0x1ff471,_0x324824={..._0x2f444c[_0x17eb68(0x1b3)]};_0x51387c!=null&&_0x51387c[_0x17eb68(0x1a9)]&&_0x324824[_0x17eb68(0x238)]===_0x17eb68(0x1a9)&&(_0x324824[_0x17eb68(0x238)]=_0x51387c[_0x17eb68(0x1a9)]),_0x2f444c[_0x17eb68(0x213)]==='mask'&&_0x324824['id']&&(_0x324824['id']=_0x324824['id']+_0x13f485[_0x17eb68(0x211)]),Object[_0x17eb68(0x216)](_0x324824)[_0x17eb68(0x1ad)](([_0x5ddc4a,_0x4f10f4])=>{const _0x2c57c8=_0x17eb68;_0x5ddc4a==='mask'&&typeof _0x4f10f4==_0x2c57c8(0x239)&&(_0x324824[_0x5ddc4a]=_0x4f10f4['replace'](/url\(#(.*)\)/,'url(#$1'+_0x13f485[_0x2c57c8(0x211)]+')'));});const {defIds:_0x19bfd7}=_0x13f485;return!_0x19bfd7||_0x19bfd7[_0x17eb68(0x233)]===0x0||(_0x2f444c[_0x17eb68(0x213)]===_0x17eb68(0x223)&&_0x324824[_0x17eb68(0x1f9)]&&(_0x324824[_0x17eb68(0x1f9)]=_0x324824[_0x17eb68(0x1f9)]+_0x13f485[_0x17eb68(0x211)]),Object[_0x17eb68(0x216)](_0x324824)[_0x17eb68(0x1ad)](([_0x4fbe80,_0x44586b])=>{const _0x1491e5=_0x17eb68;typeof _0x44586b==_0x1491e5(0x239)&&(_0x324824[_0x4fbe80]=_0x44586b[_0x1491e5(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x13f485[_0x1491e5(0x211)]+')'));})),_0x324824;}function Ee(_0x40f6af,_0xe39401){const _0x16df81=_0x1ff471;var _0x304159;const {defIds:_0x53abff}=_0xe39401;return!_0x53abff||_0x53abff[_0x16df81(0x233)]===0x0?_0x40f6af:_0x40f6af[_0x16df81(0x213)]==='defs'&&((_0x304159=_0x40f6af[_0x16df81(0x1e8)])!=null&&_0x304159[_0x16df81(0x233)])?{..._0x40f6af,'children':_0x40f6af[_0x16df81(0x1e8)][_0x16df81(0x1ab)](_0x2955b0=>typeof _0x2955b0[_0x16df81(0x1b3)]['id']==_0x16df81(0x239)&&_0x53abff&&_0x53abff[_0x16df81(0x1cd)](_0x2955b0[_0x16df81(0x1b3)]['id'])?{..._0x2955b0,'attrs':{..._0x2955b0[_0x16df81(0x1b3)],'id':_0x2955b0['attrs']['id']+_0xe39401['idSuffix']}}:_0x2955b0)}:_0x40f6af;}function Oe(){const _0x3058eb=_0x1ff471;return Math[_0x3058eb(0x1ea)]()[_0x3058eb(0x1a4)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x1ff471(0x20f);const we={'tag':_0x1ff471(0x1bf),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1ff471(0x1ca),'viewBox':_0x1ff471(0x1f2),'width':_0x1ff471(0x1c8),'height':_0x1ff471(0x1c8)},'children':[{'tag':'path','attrs':{'fill':_0x1ff471(0x1fb),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x1ff471(0x1fb),'d':_0x1ff471(0x1d3),'fillRule':_0x1ff471(0x21e),'clipRule':'evenodd'}}]},W=_0x197dd8(function(_0x1a2eaf,_0x3f0300){const _0x515e7e=_0x1ff471;return _0x241ac0(k,Object[_0x515e7e(0x1c1)]({},_0x1a2eaf,{'id':_0x515e7e(0x1c0),'ref':_0x3f0300,'icon':we}));});W['displayName']=_0x1ff471(0x1f7);class L extends _0x5efc82{constructor(){const _0x598f4d=_0x1ff471;super(...arguments),u(this,_0x598f4d(0x1fa),new Set()),u(this,'_reporters',new Set());}['registerSharedOperation'](_0x5e6e0a){const _0x36c790=_0x1ff471;return this['_sharedOperations']['add'](_0x5e6e0a),_0x40b029(()=>this['_sharedOperations'][_0x36c790(0x227)](_0x5e6e0a));}[_0x1ff471(0x1b0)](_0x1bf75a){const _0x22ed6a=_0x1ff471;return this[_0x22ed6a(0x1d2)][_0x22ed6a(0x21a)](_0x1bf75a),_0x40b029(()=>this['_reporters'][_0x22ed6a(0x227)](_0x1bf75a));}[_0x1ff471(0x1ff)](_0x30d843){const _0x444cec=_0x1ff471;return this[_0x444cec(0x1fa)][_0x444cec(0x222)](_0x30d843);}[_0x1ff471(0x1a6)](_0x26d9cd){const _0x12b772=_0x1ff471;return Array[_0x12b772(0x1a7)](this[_0x12b772(0x1d2)])[_0x12b772(0x1ab)](_0x16b419=>_0x16b419(_0x26d9cd));}}var Ne=Object[_0x1ff471(0x1c4)],Y=(_0x19fe3a,_0x147680,_0x34b2f9,_0x1d65c6)=>{const _0x302b59=_0x1ff471;for(var _0x3b5c18=_0x1d65c6>0x1?void 0x0:_0x1d65c6?Ne(_0x147680,_0x34b2f9):_0x147680,_0x4fe29e=_0x19fe3a[_0x302b59(0x233)]-0x1,_0x377afb;_0x4fe29e>=0x0;_0x4fe29e--)(_0x377afb=_0x19fe3a[_0x4fe29e])&&(_0x3b5c18=_0x377afb(_0x3b5c18)||_0x3b5c18);return _0x3b5c18;},_=(_0x346bd6,_0x42fa7c)=>(_0x3bdd66,_0x1146b9)=>_0x42fa7c(_0x3bdd66,_0x1146b9,_0x346bd6);let S=class extends _0x27b7ba{constructor(_0x570829,_0x20eb27,_0xef5d28){const _0x25f2e2=_0x1ff471;super(),u(this,_0x25f2e2(0x1e6),new Map()),(this[_0x25f2e2(0x1fd)]=_0x570829,this[_0x25f2e2(0x1ed)]=_0x20eb27,this[_0x25f2e2(0x1d7)]=_0xef5d28,this[_0x25f2e2(0x1c9)]());}async[_0x1ff471(0x22a)](_0x3ba235){const _0x1e084b=_0x1ff471;return this[_0x1e084b(0x1e6)]['has'](_0x3ba235)||await this[_0x1e084b(0x1fe)](_0x3ba235),this[_0x1e084b(0x1e6)][_0x1e084b(0x1a5)](_0x3ba235);}[_0x1ff471(0x220)](_0xc0e10c){const _0xec5ee5=_0x1ff471;var _0x1e1988;return(_0x1e1988=this[_0xec5ee5(0x1e6)][_0xec5ee5(0x1a5)](_0xc0e10c))!=null?_0x1e1988:null;}[_0x1ff471(0x1c9)](){const _0x4f2120=_0x1ff471;this[_0x4f2120(0x1fd)]['getTypeOfUnitAdded$'](_0x391209[_0x4f2120(0x234)])[_0x4f2120(0x1d0)](_0x1eb310(this[_0x4f2120(0x237)]))[_0x4f2120(0x1eb)](async _0x329f88=>{const _0x5f31fe=_0x4f2120,_0x4b15cf=_0x329f88[_0x5f31fe(0x212)]();this[_0x5f31fe(0x1e6)][_0x5f31fe(0x222)](_0x4b15cf)||this[_0x5f31fe(0x1fe)](_0x4b15cf);}),this[_0x4f2120(0x1fd)][_0x4f2120(0x1de)](_0x391209['UNIVER_SHEET'])[_0x4f2120(0x1d0)](_0x1eb310(this[_0x4f2120(0x237)]))[_0x4f2120(0x1eb)](_0x5bcc72=>{const _0xb0c83f=_0x4f2120,_0xba9db7=_0x5bcc72[_0xb0c83f(0x212)](),_0x4106f5=this[_0xb0c83f(0x1e6)]['get'](_0xba9db7);_0x4106f5==null||_0x4106f5['dispose']();});}async['_startLiveShareCoordinator'](_0x5d8ac4){const _0xeb6207=_0x1ff471,_0x5439d8=await this[_0xeb6207(0x1d7)]['requireSession'](_0x5d8ac4),_0x35d44b=this[_0xeb6207(0x1ed)][_0xeb6207(0x1e2)](N,_0x5d8ac4,_0x5439d8);return _0x35d44b['init'](),this[_0xeb6207(0x1e6)][_0xeb6207(0x214)](_0x5d8ac4,_0x35d44b),_0x35d44b;}};S=Y([_(0x0,_0x407f4a),_(0x1,_0x530cef(_0x342037)),_(0x2,_0x530cef(_0x57c410))],S);var c=(_0x4adbe8=>(_0x4adbe8[_0x1ff471(0x1a2)]=_0x1ff471(0x243),_0x4adbe8['IDLE']='idle',_0x4adbe8[_0x1ff471(0x1b6)]=_0x1ff471(0x21f),_0x4adbe8['NOT_FOLLOWING']=_0x1ff471(0x244),_0x4adbe8[_0x1ff471(0x21c)]=_0x1ff471(0x230),_0x4adbe8))(c||{});const Ce=_0x1ff471(0x1d5),De=0xc8;let N=class extends _0x27b7ba{constructor(_0x4b9732,_0x1fc442,_0x129c59,_0x310a79,_0x16863c){const _0x5b4e4e=_0x1ff471;super(),u(this,_0x5b4e4e(0x23f),new _0x3757b0(_0x5b4e4e(0x1b5))),u(this,'status$',this[_0x5b4e4e(0x23f)]['asObservable']()),u(this,_0x5b4e4e(0x1c9),!0x1),u(this,'_commandDisposable',null),u(this,_0x5b4e4e(0x1a3),null),(this[_0x5b4e4e(0x210)]=_0x4b9732,this[_0x5b4e4e(0x22b)]=_0x1fc442,this['_configService']=_0x129c59,this[_0x5b4e4e(0x1ae)]=_0x310a79,this[_0x5b4e4e(0x228)]=_0x16863c);}get['_status'](){const _0x4afec2=_0x1ff471;return this[_0x4afec2(0x23f)][_0x4afec2(0x217)]();}[_0x1ff471(0x1aa)](){const _0x490e09=_0x1ff471;var _0x1537bf;(_0x1537bf=this[_0x490e09(0x1d1)])==null||_0x1537bf['dispose'](),this[_0x490e09(0x23f)][_0x490e09(0x202)]('idle'),this[_0x490e09(0x23f)]['complete']();}[_0x1ff471(0x246)](){const _0x5ca0e9=_0x1ff471;return this[_0x5ca0e9(0x229)];}[_0x1ff471(0x204)](){const _0xeafc37=_0x1ff471;this['_init']||(this['_init']=!0x0,this['_collabSession']['sessionStatus$'][_0xeafc37(0x1d0)](_0x1eb310(this['dispose$']))[_0xeafc37(0x1eb)](_0x98d964=>{const _0x208f2e=_0xeafc37;switch(_0x98d964){case _0x2ea114[_0x208f2e(0x1a2)]:this[_0x208f2e(0x1bc)]();break;case _0x2ea114[_0x208f2e(0x20d)]:this[_0x208f2e(0x1b7)]();break;}}),this[_0xeafc37(0x22b)][_0xeafc37(0x23e)][_0xeafc37(0x1d0)](_0x1eb310(this[_0xeafc37(0x237)]))[_0xeafc37(0x1eb)](_0x57590c=>{const _0x5e2632=_0xeafc37,{eventID:_0x4e82df}=_0x57590c;switch(_0x4e82df){case _0xb1447['LIVESHARE_NEW_HOST']:this[_0x5e2632(0x1f6)](_0x57590c);break;case _0xb1447['LIVESHARE_OPERATION']:this[_0x5e2632(0x221)](_0x57590c);break;case _0xb1447['LIVESHARE_TERMINATE']:this[_0x5e2632(0x218)]();break;case _0xb1447[_0x5e2632(0x242)]:this['_handleNewChangeSets'](_0x57590c);break;}}));}['tryStartPresenting'](){const _0x22b46b=_0x1ff471;this[_0x22b46b(0x22b)]['send']({'eventID':_0xb1447[_0x22b46b(0x215)],'data':{'unitID':this[_0x22b46b(0x210)],'userID':this[_0x22b46b(0x22b)][_0x22b46b(0x232)]()}},this[_0x22b46b(0x210)]);}['stopPresenting'](){const _0x454ee6=_0x1ff471;this[_0x454ee6(0x229)]===_0x454ee6(0x230)&&(this[_0x454ee6(0x23f)]['next'](_0x454ee6(0x1b5)),this[_0x454ee6(0x22b)][_0x454ee6(0x22c)]({'eventID':_0xb1447[_0x454ee6(0x1f0)],'data':{'unitID':this[_0x454ee6(0x210)]}},this['_unitID']));}[_0x1ff471(0x1e3)](){const _0x216134=_0x1ff471;this[_0x216134(0x229)]===_0x216134(0x244)&&(this[_0x216134(0x23f)][_0x216134(0x202)](_0x216134(0x21f)),this['_startFollowing']());}[_0x1ff471(0x200)](){const _0x1e6a64=_0x1ff471;this['_status']===_0x1e6a64(0x21f)&&this[_0x1e6a64(0x1c6)]();}['_handleNewHost'](_0x485a12){const _0x103ddb=_0x1ff471,{presenter:_0x50273e}=_0x485a12['data'],_0xb41cf5=this['_collabSession'][_0x103ddb(0x232)]();this['_presenter']=_0x50273e,_0x50273e===_0xb41cf5?(this[_0x103ddb(0x1c6)](),this[_0x103ddb(0x219)]()):this[_0x103ddb(0x229)]!==_0x103ddb(0x244)&&(this[_0x103ddb(0x1b2)](),this[_0x103ddb(0x1e1)]());}[_0x1ff471(0x1c5)](){const _0x192748=_0x1ff471,_0x2cdf5d={'eventID':_0xb1447[_0x192748(0x21d)]};this['_collabSession'][_0x192748(0x22c)](_0x2cdf5d,this[_0x192748(0x210)]);}[_0x1ff471(0x218)](){const _0x4a5074=_0x1ff471;this['_presenter']=null,this['_status']!==_0x4a5074(0x230)&&this[_0x4a5074(0x1ac)]();}[_0x1ff471(0x1cb)](_0x4ee193){const _0x3dfc98=_0x1ff471;if(this['_status']==='following'&&this[_0x3dfc98(0x1a3)]===_0x4ee193[_0x3dfc98(0x1ef)][_0x3dfc98(0x22d)]){const _0x1861ce=_0x331d5a(_0x4ee193['data'])[_0x3dfc98(0x249)]['reverse']()[_0x3dfc98(0x20c)](_0x10d34=>_0x10d34['id']===_0x38f5e0['id']);if(_0x1861ce){const _0x5859e8=_0x1861ce[_0x3dfc98(0x1bb)][_0x3dfc98(0x1e7)],_0x21b363=_0x1861ce[_0x3dfc98(0x1bb)][_0x3dfc98(0x1d8)]['id'];setTimeout(()=>{const _0x478ec3=_0x3dfc98;this[_0x478ec3(0x228)][_0x478ec3(0x23a)](_0x5c8388['id'],{'unitId':_0x5859e8,'subUnitId':_0x21b363},{'fromCollab':!0x0});});}}}[_0x1ff471(0x219)](){const _0x488fec=_0x1ff471;this[_0x488fec(0x23f)][_0x488fec(0x202)]('presenting');const _0x2d6ee2=new Map(),_0x21ce20=this[_0x488fec(0x1d1)]=new _0x4ea11a();_0x21ce20['add'](_0x40b029(()=>{const _0x4a657b=_0x488fec;_0x2d6ee2[_0x4a657b(0x1ad)](_0x437cae=>_0x437cae[_0x4a657b(0x203)]()),_0x2d6ee2[_0x4a657b(0x20e)]();})),_0x21ce20[_0x488fec(0x21a)](this['_commandService'][_0x488fec(0x23c)](_0x4ffe17=>{const _0x5f4ba5=_0x488fec;var _0x7cf43b;if(_0x4ffe17[_0x5f4ba5(0x1b9)]!==_0x3c20aa[_0x5f4ba5(0x1e0)]||!this['_liveShareService'][_0x5f4ba5(0x1ff)](_0x4ffe17['id']))return;const {id:_0x5821aa}=_0x4ffe17;let _0x5ab94f;_0x2d6ee2[_0x5f4ba5(0x222)](_0x5821aa)?_0x5ab94f=_0x2d6ee2[_0x5f4ba5(0x1a5)](_0x5821aa):(_0x5ab94f=new _0x5667a6(),_0x2d6ee2[_0x5f4ba5(0x214)](_0x5821aa,_0x5ab94f),_0x5ab94f[_0x5f4ba5(0x1d0)](_0x193b30((_0x7cf43b=this[_0x5f4ba5(0x1b8)][_0x5f4ba5(0x224)](Ce))!=null?_0x7cf43b:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5f4ba5(0x1eb)](_0x417165=>{const _0x3feb3b=_0x5f4ba5;this[_0x3feb3b(0x22b)]['send']({'eventID':_0xb1447[_0x3feb3b(0x1cf)],'data':{'unitID':this[_0x3feb3b(0x210)],'operations':{[_0x417165['id']]:{'id':_0x417165['id'],'params':JSON[_0x3feb3b(0x225)](_0x417165[_0x3feb3b(0x1bb)])}}}},this[_0x3feb3b(0x210)]);})),_0x5ab94f[_0x5f4ba5(0x202)](_0x4ffe17);})),this[_0x488fec(0x1ae)][_0x488fec(0x1a6)](this['_unitID'])[_0x488fec(0x1ad)](_0x407797=>this[_0x488fec(0x22b)][_0x488fec(0x22c)]({'eventID':_0xb1447[_0x488fec(0x1cf)],'data':{'unitID':this[_0x488fec(0x210)],'operations':{[_0x407797['id']]:{'id':_0x407797['id'],'params':JSON[_0x488fec(0x225)](_0x407797['params'])}}}},this[_0x488fec(0x210)]));}[_0x1ff471(0x1b2)](){const _0x3499b0=_0x1ff471;var _0x5e2876;this[_0x3499b0(0x23f)][_0x3499b0(0x202)](_0x3499b0(0x1b5)),(_0x5e2876=this['_commandDisposable'])==null||_0x5e2876[_0x3499b0(0x1aa)](),this['_commandDisposable']=null;}[_0x1ff471(0x1e1)](){const _0x5ca5fa=_0x1ff471;var _0x40e911;(_0x40e911=this[_0x5ca5fa(0x1d1)])==null||_0x40e911[_0x5ca5fa(0x1aa)](),this[_0x5ca5fa(0x23f)][_0x5ca5fa(0x202)](_0x5ca5fa(0x21f));}[_0x1ff471(0x1ac)](){const _0x372a77=_0x1ff471;var _0x45999a;this[_0x372a77(0x23f)][_0x372a77(0x202)](_0x372a77(0x1b5)),(_0x45999a=this[_0x372a77(0x1d1)])==null||_0x45999a[_0x372a77(0x1aa)](),this[_0x372a77(0x1d1)]=null;}[_0x1ff471(0x1c6)](){const _0x3ca668=_0x1ff471;var _0x183a59;this[_0x3ca668(0x23f)]['next'](_0x3ca668(0x244)),(_0x183a59=this[_0x3ca668(0x1d1)])==null||_0x183a59['dispose']();}[_0x1ff471(0x221)](_0x14f9a9){const _0x56de70=_0x1ff471;if([_0x56de70(0x230),_0x56de70(0x244),_0x56de70(0x243)][_0x56de70(0x1cd)](this[_0x56de70(0x229)])||!_0x14f9a9[_0x56de70(0x1ef)][_0x56de70(0x1df)]||_0x14f9a9[_0x56de70(0x1ef)]['presenter']===this[_0x56de70(0x22b)][_0x56de70(0x232)]())return;this[_0x56de70(0x229)]===_0x56de70(0x1b5)&&this[_0x56de70(0x1e1)]();const _0x256a7d=_0x14f9a9[_0x56de70(0x1ef)][_0x56de70(0x1e4)];Object[_0x56de70(0x1dc)](_0x256a7d)['forEach'](_0x1098a5=>{const _0x829016=_0x56de70;this[_0x829016(0x228)]['executeCommand'](_0x1098a5['id'],_0x1098a5['params']?JSON['parse'](_0x1098a5[_0x829016(0x1bb)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4503d7=_0x1ff471;var _0x11193f;this[_0x4503d7(0x23f)][_0x4503d7(0x202)](_0x4503d7(0x243)),(_0x11193f=this[_0x4503d7(0x1d1)])==null||_0x11193f['dispose']();}['_handleOnline'](){const _0x25027b=_0x1ff471;this[_0x25027b(0x23f)][_0x25027b(0x202)](_0x25027b(0x1b5)),this[_0x25027b(0x1c5)]();}};N=Y([_(0x2,_0x495339),_(0x3,_0x530cef(L)),_(0x4,_0x244e30)],N);function Le(){const _0x360dd8=_0x1ff471,_0x480058=_0x11f1e0(S),_0x30294c=_0x11f1e0(_0x407f4a),_0x3103a8=_0x1e059b(()=>_0x30294c[_0x360dd8(0x1b4)](_0x391209['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3fd68c,_0x220472]=_0x155574(null),[_0x56c686,_0x178780]=_0x155574(c[_0x360dd8(0x201)]),_0xef2c91=_0x4576d0(null);return _0x5bfbc0(()=>(_0x3103a8&&_0x480058[_0x360dd8(0x22a)](_0x3103a8['getUnitId']())[_0x360dd8(0x23d)](_0x4a1edd=>{const _0x5e08dd=_0x360dd8;_0x220472(_0x4a1edd),_0xef2c91[_0x5e08dd(0x1fc)]=_0x4a1edd[_0x5e08dd(0x1ce)][_0x5e08dd(0x1eb)](_0x21c8ae=>{_0x178780(_0x21c8ae);});}),()=>{const _0x286259=_0x360dd8;var _0xb4bd9a;(_0xb4bd9a=_0xef2c91[_0x286259(0x1fc)])==null||_0xb4bd9a[_0x286259(0x1bd)](),_0xef2c91[_0x286259(0x1fc)]=null;}),[_0x3103a8,_0x480058]),_0x3fd68c?_0x44ff08(_0x21ed3d,{'align':_0x360dd8(0x1f5),'disabled':_0x56c686===c[_0x360dd8(0x1a2)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x44ff08(Re,{'status':_0x56c686,'coordinator':_0x3fd68c}),'children':_0x44ff08(_0x360dd8(0x1c7),{'className':_0x70919e(_0x360dd8(0x236),{'univer-cursor-not-allowed':_0x56c686===c[_0x360dd8(0x1a2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56c686!==c[_0x360dd8(0x1a2)]}),'type':_0x360dd8(0x1c7),'children':_0x44ff08(W,{'className':_0x360dd8(0x205)})})}):null;}function Re(_0x28e239){const _0x39cc04=_0x1ff471,{status:_0x11d2b3,coordinator:_0x3cf1e7}=_0x28e239;switch(_0x11d2b3){case c[_0x39cc04(0x201)]:return _0x44ff08($e,{'coordinator':_0x3cf1e7});case c['FOLLOWING']:return _0x44ff08(xe,{'coordinator':_0x3cf1e7});case c[_0x39cc04(0x1a8)]:return _0x44ff08(Pe,{'coordinator':_0x3cf1e7});case c[_0x39cc04(0x1a2)]:return _0x44ff08(Te,{});case c[_0x39cc04(0x21c)]:return _0x44ff08(Ae,{'coordinator':_0x3cf1e7});default:return null;}}function $e(_0x424685){const _0x367646=_0x1ff471,{coordinator:_0x2e5116}=_0x424685;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x367646(0x241),{'className':_0x367646(0x1b1),'children':_0x367646(0x235)}),_0x44ff08(_0x4f7539,{'onClick':()=>_0x2e5116[_0x367646(0x1f1)](),'children':'Start'})]});}function xe(_0x2e1c24){const _0x4fa2e6=_0x1ff471,{coordinator:_0x54c7c5}=_0x2e1c24;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x4fa2e6(0x241),{'className':_0x4fa2e6(0x1b1),'children':_0x4fa2e6(0x208)}),_0x44ff08(_0x4f7539,{'onClick':()=>_0x54c7c5['stopFollowing'](),'children':_0x4fa2e6(0x1f8)})]});}function Pe(_0x2e475d){const _0x523dff=_0x1ff471,{coordinator:_0x448d74}=_0x2e475d;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x523dff(0x241),{'className':_0x523dff(0x1b1),'children':_0x523dff(0x1af)}),_0x44ff08(_0x4f7539,{'variant':_0x523dff(0x226),'onClick':()=>_0x448d74[_0x523dff(0x1e3)](),'children':_0x523dff(0x1ec)})]});}function Ae(_0x5f022d){const _0x89213b=_0x1ff471,{coordinator:_0x3a058c}=_0x5f022d;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08('div',{'className':_0x89213b(0x1b1),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x44ff08(_0x4f7539,{'variant':_0x89213b(0x207),'onClick':()=>_0x3a058c['stopPresenting'](),'children':_0x89213b(0x231)})]});}function Te(){return _0x44ff08(_0x47942b,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x1ff471(0x1c4)],He=(_0x2f8122,_0x524e5f,_0x361076,_0x36454d)=>{for(var _0x4c0982=_0x36454d>0x1?void 0x0:_0x36454d?Fe(_0x524e5f,_0x361076):_0x524e5f,_0x371a1a=_0x2f8122['length']-0x1,_0x65146f;_0x371a1a>=0x0;_0x371a1a--)(_0x65146f=_0x2f8122[_0x371a1a])&&(_0x4c0982=_0x65146f(_0x4c0982)||_0x4c0982);return _0x4c0982;},A=(_0x275cf4,_0xd2ddea)=>(_0x1c3e8e,_0x198788)=>_0xd2ddea(_0x1c3e8e,_0x198788,_0x275cf4);function _0x7fae(_0x3fcfbd,_0x1f6936){const _0x557056=_0x5570();return _0x7fae=function(_0x7fae7c,_0x38b49c){_0x7fae7c=_0x7fae7c-0x1a2;let _0x5cda0d=_0x557056[_0x7fae7c];return _0x5cda0d;},_0x7fae(_0x3fcfbd,_0x1f6936);}let m=class extends _0x5efc82{constructor(_0x205e68,_0x419cec){const _0x1d14f7=_0x1ff471;super(),this[_0x1d14f7(0x1ed)]=_0x205e68,this[_0x1d14f7(0x247)]=_0x419cec,this[_0x1d14f7(0x206)]();}['_mountLiveShare'](){const _0x54f196=_0x1ff471;this[_0x54f196(0x1c3)](this[_0x54f196(0x247)][_0x54f196(0x1ba)](_0x25f8f5[_0x54f196(0x1f4)],()=>_0x33fbbf(Le,this['_injector'])));}};function _0x5570(){const _0x40f71a=['_stopFollowing','button','1em','_init','none','_handleNewChangeSets','6PLIzZJ','includes','status$','LIVESHARE_OPERATION','pipe','_commandDisposable','_reporters','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','symbol','SAME_OPERATION_SHARE_INTERVAL','replace','_collabSessionService','sheet','4PhrxBd','onRendered','univerjs-icon\x20univerjs-icon-','values','11830554bUmnuc','getTypeOfUnitDisposed$','presenter','OPERATION','_startFollowing','createInstance','startFollowing','operations','override','_entities','unitId','children','28307970NfiiNQ','random','subscribe','Start\x20following','_injector','registerSharedOperation','data','LIVESHARE_TERMINATE','tryStartPresenting','0\x200\x2017\x2017','trim','HEADER_MENU','end','_handleNewHost','LiveShareIcon','Stop\x20following','xlink:href','_sharedOperations','currentColor','current','_univerInstanceService','_startLiveShareCoordinator','shouldShareOperation','stopFollowing','IDLE','next','complete','init','univer-size-4','_mountLiveShare','default','You\x27re\x20following\x20the\x20presenter','2DonwDo','UNIVER_LIVE_SHARE_PLUGIN','9211230eKNjPG','find','ONLINE','clear','UniverIcon','_unitID','idSuffix','getUnitId','tag','set','LIVESHARE_REQUEST_HOST','entries','getValue','_handleTerminate','_startPresenting','add','7099752pkzOlA','PRESENTING','LIVESHARE_FETCH_OPERATIONS','evenodd','following','getLiveShareCoordinatorSync','_handleOperation','has','use','getConfig','stringify','text','delete','_commandService','_status','getLiveShareCoordinator','_collabSession','send','memberID','setConfig','_config','presenting','Stop\x20presenting','getMemberID','length','UNIVER_SHEET','Present\x20this\x20document','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose$','fill','string','executeCommand','567211CHxsmP','onCommandExecuted','then','event$','_status$','defineProperty','div','NEW_CHANGESETS','offline','not-following','onStarting','getStatus','_uiPartsService','5036170qrStPd','mutations','UNIVER_UNKNOWN','OFFLINE','_presenter','toString','get','getInitialStates','from','NOT_FOLLOWING','colorChannel1','dispose','map','_beIdle','forEach','_liveShareService','You\x27re\x20not\x20following\x20the\x20presenter','registerInitialStateReporter','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting','attrs','getCurrentTypeOfUnit$','idle','FOLLOWING','_handleOnline','_configService','type','registerComponent','params','_handleOffline','unsubscribe','defIds','svg','live-share-icon','assign','2243739giwFqR','disposeWithMe','getOwnPropertyDescriptor','_fetchOperations'];_0x5570=function(){return _0x40f71a;};return _0x5570();}m=He([A(0x0,_0x530cef(_0x342037)),A(0x1,_0x5b30b3)],m);const ye='live-share.config',T={};var Ue=Object[_0x1ff471(0x1c4)],Ve=(_0x12667a,_0x4ebed6,_0x7838cc,_0xb0d144)=>{const _0x1495e5=_0x1ff471;for(var _0x520462=_0xb0d144>0x1?void 0x0:_0xb0d144?Ue(_0x4ebed6,_0x7838cc):_0x4ebed6,_0x21e448=_0x12667a[_0x1495e5(0x233)]-0x1,_0x4c7d42;_0x21e448>=0x0;_0x21e448--)(_0x4c7d42=_0x12667a[_0x21e448])&&(_0x520462=_0x4c7d42(_0x520462)||_0x520462);return _0x520462;},je=(_0x4a23d7,_0x367f06)=>(_0x552ec3,_0x15a8de)=>_0x367f06(_0x552ec3,_0x15a8de,_0x4a23d7);let I=class extends _0x5efc82{constructor(_0x3db742){const _0x46d09d=_0x1ff471;super(),this[_0x46d09d(0x1ae)]=_0x3db742,this[_0x46d09d(0x1c9)]();}[_0x1ff471(0x1c9)](){const _0x35b521=_0x1ff471;[_0x55628f['id'],_0x3efdd7['id'],_0x5c8388['id']][_0x35b521(0x1ad)](_0x5a0e25=>{const _0x2fc9c8=_0x35b521;this[_0x2fc9c8(0x1c3)](this[_0x2fc9c8(0x1ae)][_0x2fc9c8(0x1ee)](_0x5a0e25));});}};I=Ve([je(0x0,_0x530cef(L))],I);var Me=Object['defineProperty'],ke=Object[_0x1ff471(0x1c4)],Ge=(_0xfd20bc,_0x40da0c,_0x2633de)=>_0x40da0c in _0xfd20bc?Me(_0xfd20bc,_0x40da0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2633de}):_0xfd20bc[_0x40da0c]=_0x2633de,We=(_0x55b24f,_0x3d18f4,_0x529083,_0x109f13)=>{for(var _0x4094fc=_0x109f13>0x1?void 0x0:_0x109f13?ke(_0x3d18f4,_0x529083):_0x3d18f4,_0x92aaa0=_0x55b24f['length']-0x1,_0x5cc2ca;_0x92aaa0>=0x0;_0x92aaa0--)(_0x5cc2ca=_0x55b24f[_0x92aaa0])&&(_0x4094fc=_0x5cc2ca(_0x4094fc)||_0x4094fc);return _0x4094fc;},F=(_0x6757ab,_0x3f8d09)=>(_0x163397,_0x1447a7)=>_0x3f8d09(_0x163397,_0x1447a7,_0x6757ab),B=(_0x51fc9a,_0x5d0a91,_0x24eba7)=>Ge(_0x51fc9a,typeof _0x5d0a91!=_0x1ff471(0x1d4)?_0x5d0a91+'':_0x5d0a91,_0x24eba7);const Ye=_0x1ff471(0x20a);let b=class extends _0x41c584{constructor(_0x589e7f=T,_0x3a749b,_0x3e0ea5){const _0x4dbeeb=_0x1ff471;super(),this['_config']=_0x589e7f,this[_0x4dbeeb(0x1ed)]=_0x3a749b,this[_0x4dbeeb(0x1b8)]=_0x3e0ea5;const {..._0x2051f2}=_0x2c2112({},T,this[_0x4dbeeb(0x22f)]);this[_0x4dbeeb(0x1b8)][_0x4dbeeb(0x22e)](ye,_0x2051f2);}[_0x1ff471(0x245)](){const _0x1ee846=_0x1ff471;_0x5a0d1b(this[_0x1ee846(0x1ed)],_0x5a4f61([[L],[S],[I],[m]],this[_0x1ee846(0x22f)][_0x1ee846(0x1e5)])),_0x2d8b65(this['_injector'],[[I]]);}[_0x1ff471(0x1da)](){_0x2d8b65(this['_injector'],[[m]]);}};B(b,'type',_0x391209[_0x1ff471(0x24a)]),B(b,'pluginName',Ye),b=We([_0x148bca(_0x18c6f0),F(0x1,_0x530cef(_0x342037)),F(0x2,_0x495339)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
@@ -1,5 +1,5 @@
1
1
  import { CollaborationSession, CollaborationSessionService } from '@univerjs-pro/collaboration-client';
2
- import { ICommandService, IConfigService, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
2
+ import { Nullable, ICommandService, IConfigService, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
3
3
  import { LiveShareService } from '../../services/live-share.service';
4
4
  /**
5
5
  * This controller manage live share session.
@@ -11,6 +11,7 @@ export declare class LiveShareController extends RxDisposable {
11
11
  private readonly _entities;
12
12
  constructor(_univerInstanceService: IUniverInstanceService, _injector: Injector, _collabSessionService: CollaborationSessionService);
13
13
  getLiveShareCoordinator(unitID: string): Promise<LiveShareCoordinator>;
14
+ getLiveShareCoordinatorSync(unitID: string): Nullable<LiveShareCoordinator>;
14
15
  private _init;
15
16
  private _startLiveShareCoordinator;
16
17
  }
@@ -40,6 +41,7 @@ export declare class LiveShareCoordinator extends RxDisposable {
40
41
  private _presenter;
41
42
  constructor(_unitID: string, _collabSession: CollaborationSession, _configService: IConfigService, _liveShareService: LiveShareService, _commandService: ICommandService);
42
43
  dispose(): void;
44
+ getStatus(): LiveShareStatus;
43
45
  init(): void;
44
46
  tryStartPresenting(): void;
45
47
  stopPresenting(): void;
@@ -0,0 +1,17 @@
1
+ import { LiveShareStatus } from '@univerjs-pro/live-share';
2
+ /**
3
+ * @ignore
4
+ */
5
+ export interface ILiveShareEnumMixin {
6
+ /**
7
+ * Get LiveShareStatus enum. {@link LiveShareStatus}
8
+ */
9
+ LiveShareStatusEnum: typeof LiveShareStatus;
10
+ }
11
+ /**
12
+ * @ignore
13
+ */
14
+ declare module '@univerjs/core/facade' {
15
+ interface FEnum extends ILiveShareEnumMixin {
16
+ }
17
+ }
@@ -0,0 +1,17 @@
1
+ import { ICommandService, Injector, IRange, Workbook, Worksheet } from '@univerjs/core';
2
+ import { FRange } from '@univerjs/sheets/facade';
3
+ /**
4
+ * @ignore
5
+ */
6
+ export interface IFRangeLiveShareMixin {
7
+ }
8
+ /**
9
+ * @ignore
10
+ */
11
+ export declare class FRangeLiveShareMixin extends FRange implements IFRangeLiveShareMixin {
12
+ _initialize(injector: Injector, workbook: Workbook, worksheet: Worksheet, range: IRange, commandService: ICommandService): void;
13
+ }
14
+ declare module '@univerjs/sheets/facade' {
15
+ interface FRange extends IFRangeLiveShareMixin {
16
+ }
17
+ }
@@ -0,0 +1,39 @@
1
+ import { LiveShareStatus } from '@univerjs-pro/live-share';
2
+ import { FUniver } from '@univerjs/core/facade';
3
+ /**
4
+ * @ignore
5
+ */
6
+ interface IFUniverLiveShareMixin {
7
+ /**
8
+ * Get the current live share status.
9
+ */
10
+ getLiveShareStatus(): LiveShareStatus;
11
+ /**
12
+ * Connect to server and start following.
13
+ */
14
+ startFollowing(): void;
15
+ /**
16
+ * Stop following.
17
+ */
18
+ stopFollowing(): void;
19
+ /**
20
+ * Start presenting.
21
+ */
22
+ startPresenting(): void;
23
+ /**
24
+ * Stop presenting.
25
+ */
26
+ stopPresenting(): void;
27
+ }
28
+ export declare class FUniverLiveShareMixin extends FUniver implements IFUniverLiveShareMixin {
29
+ getLiveShareStatus(): LiveShareStatus;
30
+ startFollowing(): void;
31
+ stopFollowing(): void;
32
+ startPresenting(): void;
33
+ stopPresenting(): void;
34
+ }
35
+ declare module '@univerjs/core/facade' {
36
+ interface FUniver extends IFUniverLiveShareMixin {
37
+ }
38
+ }
39
+ export {};
@@ -0,0 +1,3 @@
1
+ import './f-range';
2
+ import './f-univer';
3
+ import './f-enum';
@@ -0,0 +1 @@
1
+ (function(_0xb8513f,_0x5c2c9a){const _0x39bf04=_0x2144,_0x527e9f=_0xb8513f();while(!![]){try{const _0x174af6=-parseInt(_0x39bf04(0x84))/0x1*(-parseInt(_0x39bf04(0x9c))/0x2)+parseInt(_0x39bf04(0x94))/0x3*(-parseInt(_0x39bf04(0x92))/0x4)+-parseInt(_0x39bf04(0x8b))/0x5+-parseInt(_0x39bf04(0x7f))/0x6*(parseInt(_0x39bf04(0x70))/0x7)+-parseInt(_0x39bf04(0x7a))/0x8+parseInt(_0x39bf04(0x7b))/0x9+parseInt(_0x39bf04(0x98))/0xa*(parseInt(_0x39bf04(0x68))/0xb);if(_0x174af6===_0x5c2c9a)break;else _0x527e9f['push'](_0x527e9f['shift']());}catch(_0x4c3797){_0x527e9f['push'](_0x527e9f['shift']());}}}(_0x3237,0x8d404),function(_0x32bc3c,_0x582827){const _0x34cd1=_0x2144;typeof exports=='object'&&typeof module<'u'?_0x582827(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x34cd1(0x9d)&&define[_0x34cd1(0x7e)]?define([_0x34cd1(0x96),_0x34cd1(0x72),'@univerjs/sheets',_0x34cd1(0x76),_0x34cd1(0x66),_0x34cd1(0x6a)],_0x582827):(_0x32bc3c=typeof globalThis<'u'?globalThis:_0x32bc3c||self,_0x582827(_0x32bc3c[_0x34cd1(0x77)],_0x32bc3c[_0x34cd1(0x9a)],_0x32bc3c[_0x34cd1(0x81)],_0x32bc3c[_0x34cd1(0x88)],_0x32bc3c['UniverSheetsFacade'],_0x32bc3c[_0x34cd1(0x80)]));}(this,function(_0x2749f0,_0x46e997,_0x3a8326,_0x2a4215,_0x44351d,_0x5b2c1a){'use strict';const _0x5e02e4=_0x2144;class _0x25d5bc extends _0x44351d[_0x5e02e4(0x75)]{[_0x5e02e4(0x73)](_0x5a2d7f,_0x286038,_0x27072f,_0x5aaad9,_0x3636a7){const _0xcec275=_0x5e02e4,_0x580f26=_0x5a2d7f[_0xcec275(0x78)](_0x2749f0[_0xcec275(0x91)]),_0x3bc7d4=_0x5a2d7f['get'](_0x46e997[_0xcec275(0x6e)]),_0x4cf7ee=_0x286038['getUnitId'](),_0x2e8be8=_0x286038[_0xcec275(0x7c)](),_0x4c4cd4=_0x580f26['getLiveShareCoordinatorSync'](_0x4cf7ee);(_0x4c4cd4==null?void 0x0:_0x4c4cd4['getStatus']())!==_0x2749f0[_0xcec275(0x8d)]['PRESENTING']||(_0x27072f['getSheetId']()!==_0x2e8be8[_0xcec275(0x90)]()&&this[_0xcec275(0x83)][_0xcec275(0x6f)](_0x3a8326[_0xcec275(0x82)]['id'],{'unitId':_0x4cf7ee,'subUnitId':_0x27072f[_0xcec275(0x90)]()}),!_0x3bc7d4[_0xcec275(0x93)](_0x4cf7ee))||_0x3636a7[_0xcec275(0x97)](_0x2a4215['SetScrollOperation']['id'],{'unitId':_0x286038['getUnitId'](),'sheetId':_0x27072f['getSheetId'](),'sheetViewStartRow':_0x5aaad9[_0xcec275(0x67)],'sheetViewStartColumn':_0x5aaad9[_0xcec275(0x85)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x44351d[_0x5e02e4(0x75)][_0x5e02e4(0x95)](_0x25d5bc);class _0x485338 extends _0x5b2c1a['FUniver']{[_0x5e02e4(0x6d)](){const _0x54950c=_0x5e02e4;var _0x12ba32,_0x27c742;const _0x194610=this[_0x54950c(0x6c)]['get'](_0x2749f0['LiveShareController']),_0x573c39=(_0x12ba32=this[_0x54950c(0x86)]())==null?void 0x0:_0x12ba32[_0x54950c(0x89)]();if(!_0x573c39)throw new Error(_0x54950c(0x79));const _0x4e2231=_0x194610[_0x54950c(0x6b)](_0x573c39);return(_0x27c742=_0x4e2231==null?void 0x0:_0x4e2231[_0x54950c(0x69)]())!=null?_0x27c742:_0x2749f0[_0x54950c(0x8d)][_0x54950c(0x8a)];}[_0x5e02e4(0x9b)](){const _0xa2b391=_0x5e02e4;var _0x229cc7;const _0x5ab752=this[_0xa2b391(0x6c)][_0xa2b391(0x78)](_0x2749f0['LiveShareController']),_0x5e4012=(_0x229cc7=this['getActiveWorkbook']())==null?void 0x0:_0x229cc7[_0xa2b391(0x89)]();if(!_0x5e4012)throw new Error(_0xa2b391(0x79));const _0x431f83=_0x5ab752[_0xa2b391(0x6b)](_0x5e4012);if(!_0x431f83)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x431f83[_0xa2b391(0x9b)]();}[_0x5e02e4(0x7d)](){const _0x17b1c8=_0x5e02e4;var _0x146ffb;const _0x50cca0=this[_0x17b1c8(0x6c)][_0x17b1c8(0x78)](_0x2749f0[_0x17b1c8(0x91)]),_0x5afbaa=(_0x146ffb=this['getActiveWorkbook']())==null?void 0x0:_0x146ffb[_0x17b1c8(0x89)]();if(!_0x5afbaa)throw new Error(_0x17b1c8(0x79));const _0x26eb6c=_0x50cca0[_0x17b1c8(0x6b)](_0x5afbaa);if(!_0x26eb6c)throw new Error(_0x17b1c8(0x87));_0x26eb6c['stopFollowing']();}[_0x5e02e4(0x71)](){const _0x4f2b52=_0x5e02e4;var _0x46eb7b;const _0x33c5f5=this[_0x4f2b52(0x6c)][_0x4f2b52(0x78)](_0x2749f0['LiveShareController']),_0x2b851c=(_0x46eb7b=this['getActiveWorkbook']())==null?void 0x0:_0x46eb7b['getId']();if(!_0x2b851c)throw new Error(_0x4f2b52(0x79));const _0x221aeb=_0x33c5f5[_0x4f2b52(0x6b)](_0x2b851c);if(!_0x221aeb)throw new Error(_0x4f2b52(0x87));_0x221aeb[_0x4f2b52(0x74)]();}[_0x5e02e4(0x8e)](){const _0x4c4b18=_0x5e02e4;var _0x380df7;const _0x90b47=this[_0x4c4b18(0x6c)][_0x4c4b18(0x78)](_0x2749f0[_0x4c4b18(0x91)]),_0x185af0=(_0x380df7=this[_0x4c4b18(0x86)]())==null?void 0x0:_0x380df7[_0x4c4b18(0x89)]();if(!_0x185af0)throw new Error('No\x20active\x20workbook\x20found.');const _0x285656=_0x90b47[_0x4c4b18(0x6b)](_0x185af0);if(!_0x285656)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x285656['stopPresenting']();}}_0x5b2c1a[_0x5e02e4(0x8c)][_0x5e02e4(0x95)](_0x485338);class _0x554e5a extends _0x5b2c1a[_0x5e02e4(0x99)]{get[_0x5e02e4(0x8f)](){const _0x54ac1b=_0x5e02e4;return _0x2749f0[_0x54ac1b(0x8d)];}}_0x5b2c1a[_0x5e02e4(0x99)][_0x5e02e4(0x95)](_0x554e5a);}));function _0x2144(_0x1e3a26,_0x360ce4){const _0x3237c1=_0x3237();return _0x2144=function(_0x214440,_0x2d2b75){_0x214440=_0x214440-0x66;let _0xf50ff8=_0x3237c1[_0x214440];return _0xf50ff8;},_0x2144(_0x1e3a26,_0x360ce4);}function _0x3237(){const _0x5e566f=['25137178rayIID','getStatus','@univerjs/core/facade','getLiveShareCoordinatorSync','_injector','getLiveShareStatus','IRenderManagerService','executeCommand','273wpTNnL','startPresenting','@univerjs/engine-render','_initialize','tryStartPresenting','FRange','@univerjs/sheets-ui','UniverProLiveShare','get','No\x20active\x20workbook\x20found.','4645016sDINBf','4943439uPlrcZ','getActiveSheet','stopFollowing','amd','164292KeXwgk','UniverCoreFacade','UniverSheets','SetWorksheetActiveOperation','_commandService','109579wGjHgn','startColumn','getActiveWorkbook','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UniverSheetsUi','getId','IDLE','5374020SShCbD','FUniver','LiveShareStatus','stopPresenting','LiveShareStatusEnum','getSheetId','LiveShareController','108956UKYCxd','getRenderById','33WzCndv','extend','@univerjs-pro/live-share','syncExecuteCommand','10lloZRs','FEnum','UniverEngineRender','startFollowing','14AMhHST','function','@univerjs/sheets/facade','startRow'];_0x3237=function(){return _0x5e566f;};return _0x3237();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5d39(_0x35a7a5,_0x5df52d){var _0x50ffee=_0x50ff();return _0x5d39=function(_0x5d3974,_0x205f67){_0x5d3974=_0x5d3974-0x1c4;var _0x17ee30=_0x50ffee[_0x5d3974];return _0x17ee30;},_0x5d39(_0x35a7a5,_0x5df52d);}function _0x50ff(){var _0x18f121=['merge','9630960awPFhI','univer-mb-3\x20univer-w-full\x20univer-text-sm','set','LIVESHARE_FETCH_OPERATIONS','IDLE','react/jsx-runtime','useEffect','button','unitId','_collabSession','live-share.config','executeCommand','end','_handleNewChangeSets','touchDependencies','_configService','trim','next','evenodd','LiveShareIcon','UniverCollaborationClientPlugin','LIVESHARE_NEW_HOST','HEADER_MENU','stopFollowing','Plugin','_stopFollowing','_injector','colorChannel1','call','parseProtocolChangeset','FOLLOWING','UNIVER_LIVE_SHARE_PLUGIN','getMemberID','_presenter','getUnitId','reverse','dispose','children','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','xlink:href','You\x27re\x20not\x20following\x20the\x20presenter','LiveShareController','@univerjs/sheets-ui','shouldShareOperation','getTypeOfUnitDisposed$','defs','@univerjs/ui','throttleTime','_univerInstanceService','22uHbUGk','BuiltInUIPart','1008QZzpME','disposeWithMe','exports','forwardRef','_commandDisposable','useDependency','get','13318083QCiLCf','DesktopLiveShareController','Disposable','univerjs-icon\x20univerjs-icon-','requireSession','use','event$','mergeOverrideWithDependencies','LiveShareStatus','jsx','icon','SetZoomRatioOperation','_status','react','_handleOffline','jsxs','You\x27are\x20offline.','_fetchOperations','offline','override','CollaborationSessionService','function','OFFLINE','1121045NSiejl','text','string','NOT_FOLLOWING','forEach','map','getOwnPropertyDescriptor','status$','IUIPartsService','stringify','not-following','_reporters','559007AmNvSv','InsertSheetMutation','IUniverInstanceService','getLiveShareCoordinator','data','connectInjector','has','fill','LIVESHARE_TERMINATE','UniverProLiveShare','_startPresenting','_status$','_config','CollaborationEvent','clear','You\x27re\x20presenting\x20the\x20document','createInstance','idSuffix','concat','operations','Button','extend','parse','_unitID','takeUntil','_entities','_sharedOperations','propertyIsEnumerable','operators','asObservable','params','useObservable','attrs','_init','LiveShareCoordinator','Stop\x20presenting','tag','UNIVER_SHEET','subscribe','rxjs/operators','init','path','amd','SetScrollOperation','svg','Start','@univerjs/core','UniverIcon','presenting','1em','getTypeOfUnitAdded$','_uiPartsService','entries','CommandType','random','_beIdle','setConfig','SessionStatus','UniverProCollaborationClient','useState','UniverInstanceType','toStringTag','ICommandService','delete','getCurrentTypeOfUnit$','displayName','registerDependencies','RxDisposable','dispose$','find','_startLiveShareCoordinator','send','className','Inject','object','28AJiVua','getInitialStates','Present\x20this\x20document','UniverDesign','presenter','_stopPresenting','assign','clsx','type','replace','_handleOnline','apply','PRESENTING','_handleNewHost','sessionStatus$','LIVESHARE_OPERATION','getOwnPropertySymbols','28668qaDHec','onCommandExecuted','createElement','useRef','live-share-icon','UniverUi','indexOf','1214aUncfP','registerInitialStateReporter','NEW_CHANGESETS','BehaviorSubject','UniverSheetsUi','_handleOperation','pluginName','length','Dropdown','defIds','Fragment','startFollowing','pipe','276kUddUB','React','current','mask','currentColor','8digWrj','_liveShareService','onRendered','_startFollowing','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','toDisposable','url(#$1','UniverSheets','UniverProCollaboration','defineProperty','div','includes','hasOwnProperty','UNIVER_UNKNOWN','mutations','following','idle','stopPresenting','default','add','_handleTerminate','complete','symbol','_mountLiveShare','rxjs','UniverLiveSharePlugin','prototype','registerSharedOperation','_commandService','tryStartPresenting','Subject','_collabSessionService','305652XWkFcz','SetWorksheetActiveOperation','ONLINE'];_0x50ff=function(){return _0x18f121;};return _0x50ff();}(function(_0x321478,_0x30ad21){var _0x380df7=_0x5d39,_0x4d90dc=_0x321478();while(!![]){try{var _0x421dd0=-parseInt(_0x380df7(0x210))/0x1+-parseInt(_0x380df7(0x273))/0x2*(-parseInt(_0x380df7(0x280))/0x3)+parseInt(_0x380df7(0x25b))/0x4*(parseInt(_0x380df7(0x204))/0x5)+parseInt(_0x380df7(0x26c))/0x6*(-parseInt(_0x380df7(0x1e6))/0x7)+parseInt(_0x380df7(0x285))/0x8*(parseInt(_0x380df7(0x1ed))/0x9)+-parseInt(_0x380df7(0x2a9))/0xa+-parseInt(_0x380df7(0x1e4))/0xb*(parseInt(_0x380df7(0x2a5))/0xc);if(_0x421dd0===_0x30ad21)break;else _0x4d90dc['push'](_0x4d90dc['shift']());}catch(_0x202b69){_0x4d90dc['push'](_0x4d90dc['shift']());}}}(_0x50ff,0xce0f1),function(_0x4bf2f9,_0x4b4ff3){var _0x489d18=_0x5d39;typeof exports==_0x489d18(0x25a)&&typeof module<'u'?_0x4b4ff3(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==_0x489d18(0x202)&&define[_0x489d18(0x23a)]?define([_0x489d18(0x1e8),_0x489d18(0x23e),_0x489d18(0x1e1),_0x489d18(0x2ae),'@univerjs/design',_0x489d18(0x1fa),'@univerjs-pro/collaboration','@univerjs-pro/collaboration-client','@univerjs/sheets',_0x489d18(0x29d),_0x489d18(0x237),_0x489d18(0x1dd)],_0x4b4ff3):(_0x4bf2f9=typeof globalThis<'u'?globalThis:_0x4bf2f9||self,_0x4b4ff3(_0x4bf2f9[_0x489d18(0x219)]={},_0x4bf2f9['UniverCore'],_0x4bf2f9[_0x489d18(0x271)],_0x4bf2f9['React'],_0x4bf2f9[_0x489d18(0x25e)],_0x4bf2f9[_0x489d18(0x281)],_0x4bf2f9[_0x489d18(0x28d)],_0x4bf2f9[_0x489d18(0x24a)],_0x4bf2f9[_0x489d18(0x28c)],_0x4bf2f9[_0x489d18(0x29d)],_0x4bf2f9['rxjs'][_0x489d18(0x22c)],_0x4bf2f9[_0x489d18(0x277)]));}(this,function(_0x387e7b,_0x4c8bc9,_0x14ca99,_0x51500c,_0xef6c63,_0x125ae4,_0x1ab4e0,_0x45e5c0,_0x25c260,_0x35efc0,_0x42fe9a,_0x27b8a0){'use strict';var _0x5f4722=_0x5d39;var _0x13bec9=Object[_0x5f4722(0x28e)],_0x472b9a=(_0x884813,_0x1b7803,_0x247e1a)=>_0x1b7803 in _0x884813?_0x13bec9(_0x884813,_0x1b7803,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x247e1a}):_0x884813[_0x1b7803]=_0x247e1a,_0x151b9e=(_0x1893e0,_0x454e24,_0xfdee74)=>_0x472b9a(_0x1893e0,typeof _0x454e24!='symbol'?_0x454e24+'':_0x454e24,_0xfdee74),_0x1e5460=function(){var _0x2f28af=_0x5f4722;return _0x1e5460=Object[_0x2f28af(0x261)]||function(_0x54d6bf){var _0x49c114=_0x2f28af;for(var _0x2103b2,_0x2ae7a9=0x1,_0x3252fa=arguments['length'];_0x2ae7a9<_0x3252fa;_0x2ae7a9++){_0x2103b2=arguments[_0x2ae7a9];for(var _0x2361ca in _0x2103b2)Object[_0x49c114(0x29f)][_0x49c114(0x291)][_0x49c114(0x1cf)](_0x2103b2,_0x2361ca)&&(_0x54d6bf[_0x2361ca]=_0x2103b2[_0x2361ca]);}return _0x54d6bf;},_0x1e5460[_0x2f28af(0x266)](this,arguments);},_0x1ee06f=function(_0x30aca8,_0x15628c){var _0x5a942d=_0x5f4722,_0x5d5e83={};for(var _0x50a34d in _0x30aca8)Object[_0x5a942d(0x29f)]['hasOwnProperty'][_0x5a942d(0x1cf)](_0x30aca8,_0x50a34d)&&_0x15628c[_0x5a942d(0x272)](_0x50a34d)<0x0&&(_0x5d5e83[_0x50a34d]=_0x30aca8[_0x50a34d]);if(_0x30aca8!=null&&typeof Object[_0x5a942d(0x26b)]==_0x5a942d(0x202)){for(var _0x3857bb=0x0,_0x50a34d=Object[_0x5a942d(0x26b)](_0x30aca8);_0x3857bb<_0x50a34d['length'];_0x3857bb++)_0x15628c['indexOf'](_0x50a34d[_0x3857bb])<0x0&&Object[_0x5a942d(0x29f)][_0x5a942d(0x22b)][_0x5a942d(0x1cf)](_0x30aca8,_0x50a34d[_0x3857bb])&&(_0x5d5e83[_0x50a34d[_0x3857bb]]=_0x30aca8[_0x50a34d[_0x3857bb]]);}return _0x5d5e83;},_0x2f0c4f=_0x125ae4[_0x5f4722(0x1e9)](function(_0x939f8b,_0x1a60a8){var _0x457d91=_0x5f4722,_0x555ab6=_0x939f8b['icon'],_0x456b0b=_0x939f8b['id'],_0xb46cdb=_0x939f8b[_0x457d91(0x258)],_0x2b9c0c=_0x939f8b['extend'],_0x5e3405=_0x1ee06f(_0x939f8b,[_0x457d91(0x1f7),'id','className',_0x457d91(0x225)]),_0x15dc3e=_0x457d91(0x1f0)[_0x457d91(0x222)](_0x456b0b,'\x20')['concat'](_0xb46cdb||'')[_0x457d91(0x2b9)](),_0x25de49=_0x125ae4[_0x457d91(0x26f)]('_'[_0x457d91(0x222)](_0x3a5738()));return _0x552203(_0x555ab6,''['concat'](_0x456b0b),{'defIds':_0x555ab6['defIds'],'idSuffix':_0x25de49[_0x457d91(0x282)]},_0x1e5460({'ref':_0x1a60a8,'className':_0x15dc3e},_0x5e3405),_0x2b9c0c);});function _0x552203(_0x423b3a,_0x547a6e,_0x594dec,_0x1dc8b8,_0x4968cf){var _0x826ef4=_0x5f4722;return _0x125ae4[_0x826ef4(0x26e)](_0x423b3a[_0x826ef4(0x234)],_0x1e5460(_0x1e5460({'key':_0x547a6e},_0x26a54a(_0x423b3a,_0x594dec,_0x4968cf)),_0x1dc8b8),(_0x37cf28(_0x423b3a,_0x594dec)['children']||[])[_0x826ef4(0x209)](function(_0x10f035,_0x3db8a5){var _0x6c1982=_0x826ef4;return _0x552203(_0x10f035,''[_0x6c1982(0x222)](_0x547a6e,'-')['concat'](_0x423b3a[_0x6c1982(0x234)],'-')['concat'](_0x3db8a5),_0x594dec,void 0x0,_0x4968cf);}));}function _0x26a54a(_0x2fe3f4,_0x8335ff,_0xc8c446){var _0x1da526=_0x5f4722,_0x2c4f05=_0x1e5460({},_0x2fe3f4['attrs']);_0xc8c446!=null&&_0xc8c446['colorChannel1']&&_0x2c4f05['fill']===_0x1da526(0x1ce)&&(_0x2c4f05[_0x1da526(0x217)]=_0xc8c446['colorChannel1']),_0x2fe3f4[_0x1da526(0x234)]===_0x1da526(0x283)&&_0x2c4f05['id']&&(_0x2c4f05['id']=_0x2c4f05['id']+_0x8335ff[_0x1da526(0x221)]),Object[_0x1da526(0x244)](_0x2c4f05)[_0x1da526(0x208)](function(_0x352294){var _0x4611ee=_0x1da526,_0x3ec4dc=_0x352294[0x0],_0x47dacf=_0x352294[0x1];_0x3ec4dc===_0x4611ee(0x283)&&typeof _0x47dacf=='string'&&(_0x2c4f05[_0x3ec4dc]=_0x47dacf['replace'](/url\(#(.*)\)/,_0x4611ee(0x28b)[_0x4611ee(0x222)](_0x8335ff['idSuffix'],')')));});var _0x21aafd=_0x8335ff['defIds'];return!_0x21aafd||_0x21aafd['length']===0x0||(_0x2fe3f4['tag']===_0x1da526(0x1f2)&&_0x2c4f05['xlink:href']&&(_0x2c4f05[_0x1da526(0x1da)]=_0x2c4f05['xlink:href']+_0x8335ff[_0x1da526(0x221)]),Object[_0x1da526(0x244)](_0x2c4f05)[_0x1da526(0x208)](function(_0x478a50){var _0x454ad5=_0x1da526,_0x1b0c7f=_0x478a50[0x0],_0x598a29=_0x478a50[0x1];typeof _0x598a29==_0x454ad5(0x206)&&(_0x2c4f05[_0x1b0c7f]=_0x598a29[_0x454ad5(0x264)](/url\(#(.*)\)/,_0x454ad5(0x28b)[_0x454ad5(0x222)](_0x8335ff[_0x454ad5(0x221)],')')));})),_0x2c4f05;}function _0x37cf28(_0x39f9f6,_0x101148){var _0x58f003=_0x5f4722,_0x23c854,_0x3fa51d=_0x101148[_0x58f003(0x27c)];return!_0x3fa51d||_0x3fa51d[_0x58f003(0x27a)]===0x0?_0x39f9f6:_0x39f9f6[_0x58f003(0x234)]===_0x58f003(0x1e0)&&(!((_0x23c854=_0x39f9f6[_0x58f003(0x1d8)])===null||_0x23c854===void 0x0)&&_0x23c854['length'])?_0x1e5460(_0x1e5460({},_0x39f9f6),{'children':_0x39f9f6['children'][_0x58f003(0x209)](function(_0xde1ee1){var _0x56a494=_0x58f003;return typeof _0xde1ee1[_0x56a494(0x230)]['id']==_0x56a494(0x206)&&_0x3fa51d&&_0x3fa51d[_0x56a494(0x290)](_0xde1ee1['attrs']['id'])?_0x1e5460(_0x1e5460({},_0xde1ee1),{'attrs':_0x1e5460(_0x1e5460({},_0xde1ee1[_0x56a494(0x230)]),{'id':_0xde1ee1['attrs']['id']+_0x101148[_0x56a494(0x221)]})}):_0xde1ee1;})}):_0x39f9f6;}function _0x3a5738(){var _0x5e67d3=_0x5f4722;return Math[_0x5e67d3(0x246)]()['toString'](0x24)['substring'](0x2,0x8);}_0x2f0c4f[_0x5f4722(0x251)]=_0x5f4722(0x23f);var _0x510b8a={'tag':_0x5f4722(0x23c),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x5f4722(0x241),'height':'1em'},'children':[{'tag':_0x5f4722(0x239),'attrs':{'fill':_0x5f4722(0x284),'d':_0x5f4722(0x289)}},{'tag':_0x5f4722(0x239),'attrs':{'fill':_0x5f4722(0x284),'d':_0x5f4722(0x1d9),'fillRule':_0x5f4722(0x1c5),'clipRule':_0x5f4722(0x1c5)}}]},_0x4b8bd8=_0x125ae4[_0x5f4722(0x1e9)](function(_0x1c7dae,_0x500812){var _0x3918c4=_0x5f4722;return _0x125ae4[_0x3918c4(0x26e)](_0x2f0c4f,Object[_0x3918c4(0x261)]({},_0x1c7dae,{'id':_0x3918c4(0x270),'ref':_0x500812,'icon':_0x510b8a}));});_0x4b8bd8['displayName']=_0x5f4722(0x1c6);class _0xa82131 extends _0x4c8bc9[_0x5f4722(0x1ef)]{constructor(){var _0x46552a=_0x5f4722;super(...arguments),_0x151b9e(this,_0x46552a(0x22a),new Set()),_0x151b9e(this,_0x46552a(0x20f),new Set());}[_0x5f4722(0x2a0)](_0x6de1e9){var _0xd8892f=_0x5f4722;return this['_sharedOperations'][_0xd8892f(0x298)](_0x6de1e9),_0x4c8bc9['toDisposable'](()=>this[_0xd8892f(0x22a)][_0xd8892f(0x24f)](_0x6de1e9));}[_0x5f4722(0x274)](_0x52e82d){var _0x46bd3a=_0x5f4722;return this[_0x46bd3a(0x20f)][_0x46bd3a(0x298)](_0x52e82d),_0x4c8bc9[_0x46bd3a(0x28a)](()=>this['_reporters'][_0x46bd3a(0x24f)](_0x52e82d));}[_0x5f4722(0x1de)](_0x131aca){var _0x5be7a7=_0x5f4722;return this[_0x5be7a7(0x22a)][_0x5be7a7(0x216)](_0x131aca);}[_0x5f4722(0x25c)](_0x1991ae){var _0xb1bd42=_0x5f4722;return Array['from'](this[_0xb1bd42(0x20f)])[_0xb1bd42(0x209)](_0x5f2912=>_0x5f2912(_0x1991ae));}}var _0x5303ee=Object[_0x5f4722(0x20a)],_0x4c62a6=(_0x1da831,_0x1a8ce8,_0x205455,_0x4db49a)=>{var _0x486e4e=_0x5f4722;for(var _0x2c8165=_0x4db49a>0x1?void 0x0:_0x4db49a?_0x5303ee(_0x1a8ce8,_0x205455):_0x1a8ce8,_0xdffe1a=_0x1da831[_0x486e4e(0x27a)]-0x1,_0x3bf1a5;_0xdffe1a>=0x0;_0xdffe1a--)(_0x3bf1a5=_0x1da831[_0xdffe1a])&&(_0x2c8165=_0x3bf1a5(_0x2c8165)||_0x2c8165);return _0x2c8165;},_0x4a136a=(_0x40639a,_0x4068f4)=>(_0x1b878a,_0x3ac7a8)=>_0x4068f4(_0x1b878a,_0x3ac7a8,_0x40639a);_0x387e7b[_0x5f4722(0x1dc)]=class extends _0x4c8bc9[_0x5f4722(0x253)]{constructor(_0x5e96c2,_0x41e7e8,_0x45e5f8){var _0x426a65=_0x5f4722;super(),_0x151b9e(this,_0x426a65(0x229),new Map()),(this['_univerInstanceService']=_0x5e96c2,this[_0x426a65(0x1cd)]=_0x41e7e8,this['_collabSessionService']=_0x45e5f8,this[_0x426a65(0x231)]());}async[_0x5f4722(0x213)](_0x51904f){var _0x1e3f0d=_0x5f4722;return this[_0x1e3f0d(0x229)][_0x1e3f0d(0x216)](_0x51904f)||await this[_0x1e3f0d(0x256)](_0x51904f),this['_entities'][_0x1e3f0d(0x1ec)](_0x51904f);}[_0x5f4722(0x231)](){var _0x552e4c=_0x5f4722;this[_0x552e4c(0x1e3)][_0x552e4c(0x242)](_0x4c8bc9[_0x552e4c(0x24c)][_0x552e4c(0x235)])[_0x552e4c(0x27f)](_0x42fe9a[_0x552e4c(0x228)](this[_0x552e4c(0x254)]))[_0x552e4c(0x236)](async _0x1b3407=>{var _0x4d2d59=_0x552e4c;const _0x411026=_0x1b3407['getUnitId']();this[_0x4d2d59(0x229)][_0x4d2d59(0x216)](_0x411026)||this[_0x4d2d59(0x256)](_0x411026);}),this[_0x552e4c(0x1e3)][_0x552e4c(0x1df)](_0x4c8bc9[_0x552e4c(0x24c)]['UNIVER_SHEET'])[_0x552e4c(0x27f)](_0x42fe9a['takeUntil'](this[_0x552e4c(0x254)]))[_0x552e4c(0x236)](_0x4ba3b7=>{var _0x363c9b=_0x552e4c;const _0x391a77=_0x4ba3b7[_0x363c9b(0x1d5)](),_0x3d8211=this[_0x363c9b(0x229)][_0x363c9b(0x1ec)](_0x391a77);_0x3d8211==null||_0x3d8211['dispose']();});}async[_0x5f4722(0x256)](_0x48ef86){var _0x2ff63e=_0x5f4722;const _0x63cdfd=await this[_0x2ff63e(0x2a4)][_0x2ff63e(0x1f1)](_0x48ef86),_0x305b89=this[_0x2ff63e(0x1cd)][_0x2ff63e(0x220)](_0x387e7b[_0x2ff63e(0x232)],_0x48ef86,_0x63cdfd);return _0x305b89[_0x2ff63e(0x238)](),this[_0x2ff63e(0x229)][_0x2ff63e(0x2ab)](_0x48ef86,_0x305b89),_0x305b89;}},_0x387e7b[_0x5f4722(0x1dc)]=_0x4c62a6([_0x4a136a(0x0,_0x4c8bc9[_0x5f4722(0x212)]),_0x4a136a(0x1,_0x4c8bc9[_0x5f4722(0x259)](_0x4c8bc9['Injector'])),_0x4a136a(0x2,_0x4c8bc9[_0x5f4722(0x259)](_0x45e5c0[_0x5f4722(0x201)]))],_0x387e7b[_0x5f4722(0x1dc)]);var _0x28b580=(_0x3d2f98=>(_0x3d2f98[_0x5f4722(0x203)]=_0x5f4722(0x1ff),_0x3d2f98[_0x5f4722(0x2ad)]=_0x5f4722(0x295),_0x3d2f98[_0x5f4722(0x1d1)]=_0x5f4722(0x294),_0x3d2f98[_0x5f4722(0x207)]=_0x5f4722(0x20e),_0x3d2f98[_0x5f4722(0x267)]='presenting',_0x3d2f98))(_0x28b580||{});const _0x2ab819='SAME_OPERATION_SHARE_INTERVAL',_0x131354=0xc8;_0x387e7b[_0x5f4722(0x232)]=class extends _0x4c8bc9[_0x5f4722(0x253)]{constructor(_0x1d6267,_0x44ef00,_0x382459,_0x113ad4,_0x2f7995){var _0x71a392=_0x5f4722;super(),_0x151b9e(this,_0x71a392(0x21b),new _0x35efc0[(_0x71a392(0x276))](_0x71a392(0x295))),_0x151b9e(this,_0x71a392(0x20b),this[_0x71a392(0x21b)][_0x71a392(0x22d)]()),_0x151b9e(this,_0x71a392(0x231),!0x1),_0x151b9e(this,_0x71a392(0x1ea),null),_0x151b9e(this,_0x71a392(0x1d4),null),(this[_0x71a392(0x227)]=_0x1d6267,this[_0x71a392(0x2b2)]=_0x44ef00,this[_0x71a392(0x2b8)]=_0x382459,this['_liveShareService']=_0x113ad4,this[_0x71a392(0x2a1)]=_0x2f7995);}get[_0x5f4722(0x1f9)](){var _0x465d0a=_0x5f4722;return this[_0x465d0a(0x21b)]['getValue']();}['dispose'](){var _0xe2471d=_0x5f4722,_0x107389;(_0x107389=this['_commandDisposable'])==null||_0x107389[_0xe2471d(0x1d7)](),this[_0xe2471d(0x21b)][_0xe2471d(0x1c4)](_0xe2471d(0x295)),this['_status$'][_0xe2471d(0x29a)]();}[_0x5f4722(0x238)](){var _0x1ee104=_0x5f4722;this[_0x1ee104(0x231)]||(this[_0x1ee104(0x231)]=!0x0,this[_0x1ee104(0x2b2)][_0x1ee104(0x269)]['pipe'](_0x42fe9a[_0x1ee104(0x228)](this['dispose$']))['subscribe'](_0x2f42be=>{var _0x104a1a=_0x1ee104;switch(_0x2f42be){case _0x45e5c0[_0x104a1a(0x249)][_0x104a1a(0x203)]:this['_handleOffline']();break;case _0x45e5c0[_0x104a1a(0x249)][_0x104a1a(0x2a7)]:this[_0x104a1a(0x265)]();break;}}),this[_0x1ee104(0x2b2)][_0x1ee104(0x1f3)][_0x1ee104(0x27f)](_0x42fe9a[_0x1ee104(0x228)](this[_0x1ee104(0x254)]))[_0x1ee104(0x236)](_0x4ef3bc=>{var _0xc1a41a=_0x1ee104;const {eventID:_0x22a037}=_0x4ef3bc;switch(_0x22a037){case _0x1ab4e0[_0xc1a41a(0x21d)][_0xc1a41a(0x1c8)]:this[_0xc1a41a(0x268)](_0x4ef3bc);break;case _0x1ab4e0[_0xc1a41a(0x21d)][_0xc1a41a(0x26a)]:this['_handleOperation'](_0x4ef3bc);break;case _0x1ab4e0[_0xc1a41a(0x21d)][_0xc1a41a(0x218)]:this[_0xc1a41a(0x299)]();break;case _0x1ab4e0[_0xc1a41a(0x21d)][_0xc1a41a(0x275)]:this[_0xc1a41a(0x2b6)](_0x4ef3bc);break;}}));}[_0x5f4722(0x2a2)](){var _0x445c7d=_0x5f4722;this[_0x445c7d(0x2b2)][_0x445c7d(0x257)]({'eventID':_0x1ab4e0[_0x445c7d(0x21d)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x445c7d(0x227)],'userID':this[_0x445c7d(0x2b2)][_0x445c7d(0x1d3)]()}},this[_0x445c7d(0x227)]);}['stopPresenting'](){var _0x3c6d5a=_0x5f4722;this['_status']===_0x3c6d5a(0x240)&&(this[_0x3c6d5a(0x21b)][_0x3c6d5a(0x1c4)](_0x3c6d5a(0x295)),this[_0x3c6d5a(0x2b2)][_0x3c6d5a(0x257)]({'eventID':_0x1ab4e0[_0x3c6d5a(0x21d)][_0x3c6d5a(0x218)],'data':{'unitID':this['_unitID']}},this[_0x3c6d5a(0x227)]));}[_0x5f4722(0x27e)](){var _0x58fc6f=_0x5f4722;this['_status']===_0x58fc6f(0x20e)&&(this[_0x58fc6f(0x21b)][_0x58fc6f(0x1c4)](_0x58fc6f(0x294)),this['_startFollowing']());}[_0x5f4722(0x1ca)](){var _0x41f3cd=_0x5f4722;this[_0x41f3cd(0x1f9)]===_0x41f3cd(0x294)&&this[_0x41f3cd(0x1cc)]();}[_0x5f4722(0x268)](_0x213f35){var _0x92d53c=_0x5f4722;const {presenter:_0x49ef63}=_0x213f35[_0x92d53c(0x214)],_0x392a68=this[_0x92d53c(0x2b2)]['getMemberID']();this[_0x92d53c(0x1d4)]=_0x49ef63,_0x49ef63===_0x392a68?(this[_0x92d53c(0x1cc)](),this[_0x92d53c(0x21a)]()):this[_0x92d53c(0x1f9)]!==_0x92d53c(0x20e)&&(this[_0x92d53c(0x260)](),this[_0x92d53c(0x288)]());}[_0x5f4722(0x1fe)](){var _0xf9d234=_0x5f4722;const _0x1d992e={'eventID':_0x1ab4e0[_0xf9d234(0x21d)][_0xf9d234(0x2ac)]};this[_0xf9d234(0x2b2)]['send'](_0x1d992e,this[_0xf9d234(0x227)]);}[_0x5f4722(0x299)](){var _0x4f1cfd=_0x5f4722;this[_0x4f1cfd(0x1d4)]=null,this[_0x4f1cfd(0x1f9)]!==_0x4f1cfd(0x240)&&this['_beIdle']();}[_0x5f4722(0x2b6)](_0x41d95f){var _0x5b4af4=_0x5f4722;if(this[_0x5b4af4(0x1f9)]===_0x5b4af4(0x294)&&this[_0x5b4af4(0x1d4)]===_0x41d95f[_0x5b4af4(0x214)]['memberID']){const _0x718a34=_0x1ab4e0[_0x5b4af4(0x1d0)](_0x41d95f['data'])[_0x5b4af4(0x293)][_0x5b4af4(0x1d6)]()[_0x5b4af4(0x255)](_0x1a3196=>_0x1a3196['id']===_0x25c260[_0x5b4af4(0x211)]['id']);if(_0x718a34){const _0xa84549=_0x718a34[_0x5b4af4(0x22e)][_0x5b4af4(0x2b1)],_0x5b140a=_0x718a34[_0x5b4af4(0x22e)]['sheet']['id'];setTimeout(()=>{var _0x2ebd14=_0x5b4af4;this['_commandService'][_0x2ebd14(0x2b4)](_0x25c260[_0x2ebd14(0x2a6)]['id'],{'unitId':_0xa84549,'subUnitId':_0x5b140a},{'fromCollab':!0x0});});}}}[_0x5f4722(0x21a)](){var _0xabc41f=_0x5f4722;this['_status$'][_0xabc41f(0x1c4)](_0xabc41f(0x240));const _0x513b02=new Map(),_0x445e4e=this[_0xabc41f(0x1ea)]=new _0x4c8bc9['DisposableCollection']();_0x445e4e[_0xabc41f(0x298)](_0x4c8bc9[_0xabc41f(0x28a)](()=>{var _0x35a908=_0xabc41f;_0x513b02[_0x35a908(0x208)](_0x9d7b3b=>_0x9d7b3b[_0x35a908(0x29a)]()),_0x513b02[_0x35a908(0x21e)]();})),_0x445e4e[_0xabc41f(0x298)](this['_commandService'][_0xabc41f(0x26d)](_0x4fb41=>{var _0x65f826=_0xabc41f,_0x1a25f9;if(_0x4fb41['type']!==_0x4c8bc9[_0x65f826(0x245)]['OPERATION']||!this[_0x65f826(0x286)][_0x65f826(0x1de)](_0x4fb41['id']))return;const {id:_0x2ef96a}=_0x4fb41;let _0x227133;_0x513b02['has'](_0x2ef96a)?_0x227133=_0x513b02[_0x65f826(0x1ec)](_0x2ef96a):(_0x227133=new _0x35efc0[(_0x65f826(0x2a3))](),_0x513b02[_0x65f826(0x2ab)](_0x2ef96a,_0x227133),_0x227133[_0x65f826(0x27f)](_0x42fe9a[_0x65f826(0x1e2)]((_0x1a25f9=this[_0x65f826(0x2b8)]['getConfig'](_0x2ab819))!=null?_0x1a25f9:_0x131354,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x65f826(0x236)](_0x33522a=>{var _0x32cf6d=_0x65f826;this[_0x32cf6d(0x2b2)]['send']({'eventID':_0x1ab4e0[_0x32cf6d(0x21d)][_0x32cf6d(0x26a)],'data':{'unitID':this[_0x32cf6d(0x227)],'operations':{[_0x33522a['id']]:{'id':_0x33522a['id'],'params':JSON[_0x32cf6d(0x20d)](_0x33522a['params'])}}}},this[_0x32cf6d(0x227)]);})),_0x227133['next'](_0x4fb41);})),this[_0xabc41f(0x286)]['getInitialStates'](this[_0xabc41f(0x227)])[_0xabc41f(0x208)](_0x471122=>this[_0xabc41f(0x2b2)][_0xabc41f(0x257)]({'eventID':_0x1ab4e0['CollaborationEvent'][_0xabc41f(0x26a)],'data':{'unitID':this[_0xabc41f(0x227)],'operations':{[_0x471122['id']]:{'id':_0x471122['id'],'params':JSON[_0xabc41f(0x20d)](_0x471122[_0xabc41f(0x22e)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x100483=_0x5f4722,_0xfe780d;this[_0x100483(0x21b)]['next']('idle'),(_0xfe780d=this['_commandDisposable'])==null||_0xfe780d['dispose'](),this[_0x100483(0x1ea)]=null;}[_0x5f4722(0x288)](){var _0x132e30=_0x5f4722,_0x480fba;(_0x480fba=this[_0x132e30(0x1ea)])==null||_0x480fba['dispose'](),this[_0x132e30(0x21b)][_0x132e30(0x1c4)](_0x132e30(0x294));}[_0x5f4722(0x247)](){var _0x323d1b=_0x5f4722,_0xdf453c;this[_0x323d1b(0x21b)][_0x323d1b(0x1c4)](_0x323d1b(0x295)),(_0xdf453c=this['_commandDisposable'])==null||_0xdf453c[_0x323d1b(0x1d7)](),this[_0x323d1b(0x1ea)]=null;}[_0x5f4722(0x1cc)](){var _0x571aa4=_0x5f4722,_0x5c2c97;this[_0x571aa4(0x21b)][_0x571aa4(0x1c4)](_0x571aa4(0x20e)),(_0x5c2c97=this['_commandDisposable'])==null||_0x5c2c97[_0x571aa4(0x1d7)]();}[_0x5f4722(0x278)](_0x28fb19){var _0x33d353=_0x5f4722;if([_0x33d353(0x240),_0x33d353(0x20e),'offline'][_0x33d353(0x290)](this['_status'])||!_0x28fb19[_0x33d353(0x214)][_0x33d353(0x25f)]||_0x28fb19['data'][_0x33d353(0x25f)]===this[_0x33d353(0x2b2)][_0x33d353(0x1d3)]())return;this[_0x33d353(0x1f9)]===_0x33d353(0x295)&&this[_0x33d353(0x288)]();const _0x152a03=_0x28fb19['data'][_0x33d353(0x223)];Object['values'](_0x152a03)[_0x33d353(0x208)](_0x3d2e3d=>{var _0x3121a6=_0x33d353;this['_commandService'][_0x3121a6(0x2b4)](_0x3d2e3d['id'],_0x3d2e3d[_0x3121a6(0x22e)]?JSON[_0x3121a6(0x226)](_0x3d2e3d[_0x3121a6(0x22e)]):null,{'fromCollab':!0x0});});}[_0x5f4722(0x1fb)](){var _0x35d54c=_0x5f4722,_0x3e64e0;this[_0x35d54c(0x21b)]['next']('offline'),(_0x3e64e0=this[_0x35d54c(0x1ea)])==null||_0x3e64e0['dispose']();}[_0x5f4722(0x265)](){var _0x3513e5=_0x5f4722;this[_0x3513e5(0x21b)]['next']('idle'),this[_0x3513e5(0x1fe)]();}},_0x387e7b[_0x5f4722(0x232)]=_0x4c62a6([_0x4a136a(0x2,_0x4c8bc9['IConfigService']),_0x4a136a(0x3,_0x4c8bc9[_0x5f4722(0x259)](_0xa82131)),_0x4a136a(0x4,_0x4c8bc9[_0x5f4722(0x24e)])],_0x387e7b[_0x5f4722(0x232)]);function _0x4742b7(){var _0x4153c4=_0x5f4722;const _0x311269=_0x14ca99['useDependency'](_0x387e7b['LiveShareController']),_0x154868=_0x14ca99[_0x4153c4(0x1eb)](_0x4c8bc9[_0x4153c4(0x212)]),_0x2dee52=_0x14ca99[_0x4153c4(0x22f)](()=>_0x154868[_0x4153c4(0x250)](_0x4c8bc9['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3dc9f3,_0x1b2da5]=_0x125ae4[_0x4153c4(0x24b)](null),[_0x382a00,_0x4cb1f6]=_0x125ae4[_0x4153c4(0x24b)](_0x28b580[_0x4153c4(0x2ad)]),_0x1635bb=_0x125ae4[_0x4153c4(0x26f)](null);return _0x125ae4[_0x4153c4(0x2af)](()=>(_0x2dee52&&_0x311269[_0x4153c4(0x213)](_0x2dee52[_0x4153c4(0x1d5)]())['then'](_0x1ff977=>{var _0x5a3f63=_0x4153c4;_0x1b2da5(_0x1ff977),_0x1635bb['current']=_0x1ff977[_0x5a3f63(0x20b)][_0x5a3f63(0x236)](_0x26dc54=>{_0x4cb1f6(_0x26dc54);});}),()=>{var _0x4c4153=_0x4153c4,_0x1efaff;(_0x1efaff=_0x1635bb[_0x4c4153(0x282)])==null||_0x1efaff['unsubscribe'](),_0x1635bb[_0x4c4153(0x282)]=null;}),[_0x2dee52,_0x311269]),_0x3dc9f3?_0x51500c[_0x4153c4(0x1f6)](_0xef6c63[_0x4153c4(0x27b)],{'align':_0x4153c4(0x2b5),'disabled':_0x382a00===_0x28b580[_0x4153c4(0x203)],'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':_0x51500c[_0x4153c4(0x1f6)](_0x33ab3f,{'status':_0x382a00,'coordinator':_0x3dc9f3}),'children':_0x51500c[_0x4153c4(0x1f6)]('button',{'className':_0xef6c63[_0x4153c4(0x262)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x382a00===_0x28b580['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x382a00!==_0x28b580[_0x4153c4(0x203)]}),'type':_0x4153c4(0x2b0),'children':_0x51500c['jsx'](_0x4b8bd8,{'className':'univer-size-4'})})}):null;}function _0x33ab3f(_0x591ab0){var _0x579472=_0x5f4722;const {status:_0x13f41b,coordinator:_0xc4b6ac}=_0x591ab0;switch(_0x13f41b){case _0x28b580[_0x579472(0x2ad)]:return _0x51500c[_0x579472(0x1f6)](_0x1956cd,{'coordinator':_0xc4b6ac});case _0x28b580[_0x579472(0x1d1)]:return _0x51500c[_0x579472(0x1f6)](_0x3d6a49,{'coordinator':_0xc4b6ac});case _0x28b580[_0x579472(0x207)]:return _0x51500c[_0x579472(0x1f6)](_0x1379c1,{'coordinator':_0xc4b6ac});case _0x28b580[_0x579472(0x203)]:return _0x51500c[_0x579472(0x1f6)](_0x5de413,{});case _0x28b580['PRESENTING']:return _0x51500c['jsx'](_0x47c838,{'coordinator':_0xc4b6ac});default:return null;}}function _0x1956cd(_0xee1c17){var _0x22c997=_0x5f4722;const {coordinator:_0x3ebd39}=_0xee1c17;return _0x51500c[_0x22c997(0x1fc)](_0x51500c[_0x22c997(0x27d)],{'children':[_0x51500c[_0x22c997(0x1f6)](_0x22c997(0x28f),{'className':_0x22c997(0x2aa),'children':_0x22c997(0x25d)}),_0x51500c['jsx'](_0xef6c63['Button'],{'onClick':()=>_0x3ebd39[_0x22c997(0x2a2)](),'children':_0x22c997(0x23d)})]});}function _0x3d6a49(_0x363ef3){var _0x341c94=_0x5f4722;const {coordinator:_0x314c61}=_0x363ef3;return _0x51500c['jsxs'](_0x51500c[_0x341c94(0x27d)],{'children':[_0x51500c['jsx'](_0x341c94(0x28f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x51500c[_0x341c94(0x1f6)](_0xef6c63[_0x341c94(0x224)],{'onClick':()=>_0x314c61[_0x341c94(0x1ca)](),'children':'Stop\x20following'})]});}function _0x1379c1(_0xa3db8e){var _0x874049=_0x5f4722;const {coordinator:_0x5f1c78}=_0xa3db8e;return _0x51500c[_0x874049(0x1fc)](_0x51500c['Fragment'],{'children':[_0x51500c['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x874049(0x1db)}),_0x51500c[_0x874049(0x1f6)](_0xef6c63[_0x874049(0x224)],{'variant':_0x874049(0x205),'onClick':()=>_0x5f1c78[_0x874049(0x27e)](),'children':'Start\x20following'})]});}function _0x47c838(_0x1923e1){var _0x5c102c=_0x5f4722;const {coordinator:_0x1552c4}=_0x1923e1;return _0x51500c[_0x5c102c(0x1fc)](_0x51500c['Fragment'],{'children':[_0x51500c[_0x5c102c(0x1f6)]('div',{'className':_0x5c102c(0x2aa),'children':_0x5c102c(0x21f)}),_0x51500c[_0x5c102c(0x1f6)](_0xef6c63['Button'],{'variant':_0x5c102c(0x297),'onClick':()=>_0x1552c4[_0x5c102c(0x296)](),'children':_0x5c102c(0x233)})]});}function _0x5de413(){var _0x33988e=_0x5f4722;return _0x51500c['jsx'](_0x51500c['Fragment'],{'children':_0x33988e(0x1fd)});}var _0x21f353=Object[_0x5f4722(0x20a)],_0x37fdc2=(_0x17c79c,_0x5176cd,_0x45d4c9,_0x50756b)=>{var _0xd43e3=_0x5f4722;for(var _0x900a26=_0x50756b>0x1?void 0x0:_0x50756b?_0x21f353(_0x5176cd,_0x45d4c9):_0x5176cd,_0x59f554=_0x17c79c[_0xd43e3(0x27a)]-0x1,_0x554d25;_0x59f554>=0x0;_0x59f554--)(_0x554d25=_0x17c79c[_0x59f554])&&(_0x900a26=_0x554d25(_0x900a26)||_0x900a26);return _0x900a26;},_0x95c535=(_0x3615c8,_0x24c0fd)=>(_0x3b3aec,_0x5879b5)=>_0x24c0fd(_0x3b3aec,_0x5879b5,_0x3615c8);_0x387e7b[_0x5f4722(0x1ee)]=class extends _0x4c8bc9[_0x5f4722(0x1ef)]{constructor(_0x5156da,_0xd24ec4){var _0x3f470b=_0x5f4722;super(),this[_0x3f470b(0x1cd)]=_0x5156da,this[_0x3f470b(0x243)]=_0xd24ec4,this[_0x3f470b(0x29c)]();}['_mountLiveShare'](){var _0x19c607=_0x5f4722;this[_0x19c607(0x1e7)](this[_0x19c607(0x243)]['registerComponent'](_0x14ca99[_0x19c607(0x1e5)][_0x19c607(0x1c9)],()=>_0x14ca99[_0x19c607(0x215)](_0x4742b7,this[_0x19c607(0x1cd)])));}},_0x387e7b['DesktopLiveShareController']=_0x37fdc2([_0x95c535(0x0,_0x4c8bc9['Inject'](_0x4c8bc9['Injector'])),_0x95c535(0x1,_0x14ca99[_0x5f4722(0x20c)])],_0x387e7b[_0x5f4722(0x1ee)]);const _0x32310f=_0x5f4722(0x2b3),_0x117485={};var _0x1c6273=Object[_0x5f4722(0x20a)],_0x3332a3=(_0x57f69a,_0x529578,_0x485a5b,_0x24dce7)=>{var _0x898ae4=_0x5f4722;for(var _0x44da9f=_0x24dce7>0x1?void 0x0:_0x24dce7?_0x1c6273(_0x529578,_0x485a5b):_0x529578,_0x2f0b80=_0x57f69a[_0x898ae4(0x27a)]-0x1,_0x21dfc1;_0x2f0b80>=0x0;_0x2f0b80--)(_0x21dfc1=_0x57f69a[_0x2f0b80])&&(_0x44da9f=_0x21dfc1(_0x44da9f)||_0x44da9f);return _0x44da9f;},_0x39ea52=(_0x5e65eb,_0x1c427c)=>(_0x219d41,_0x1e4b88)=>_0x1c427c(_0x219d41,_0x1e4b88,_0x5e65eb);let _0x43e167=class extends _0x4c8bc9[_0x5f4722(0x1ef)]{constructor(_0xf21b03){super(),this['_liveShareService']=_0xf21b03,this['_init']();}['_init'](){var _0x3ec266=_0x5f4722;[_0x27b8a0[_0x3ec266(0x1f8)]['id'],_0x27b8a0[_0x3ec266(0x23b)]['id'],_0x25c260['SetWorksheetActiveOperation']['id']]['forEach'](_0x2d613f=>{var _0x11da29=_0x3ec266;this[_0x11da29(0x1e7)](this['_liveShareService'][_0x11da29(0x2a0)](_0x2d613f));});}};_0x43e167=_0x3332a3([_0x39ea52(0x0,_0x4c8bc9[_0x5f4722(0x259)](_0xa82131))],_0x43e167);var _0x23d879=Object[_0x5f4722(0x28e)],_0x262e85=Object[_0x5f4722(0x20a)],_0x2218b3=(_0x2b1ff9,_0x41c72b,_0x59a02d)=>_0x41c72b in _0x2b1ff9?_0x23d879(_0x2b1ff9,_0x41c72b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59a02d}):_0x2b1ff9[_0x41c72b]=_0x59a02d,_0x157a4b=(_0x3c2d41,_0x28a361,_0x42f56a,_0x2a5e6f)=>{var _0x515ff3=_0x5f4722;for(var _0x5a11a1=_0x2a5e6f>0x1?void 0x0:_0x2a5e6f?_0x262e85(_0x28a361,_0x42f56a):_0x28a361,_0x35de43=_0x3c2d41[_0x515ff3(0x27a)]-0x1,_0x36f030;_0x35de43>=0x0;_0x35de43--)(_0x36f030=_0x3c2d41[_0x35de43])&&(_0x5a11a1=_0x36f030(_0x5a11a1)||_0x5a11a1);return _0x5a11a1;},_0x22ba3a=(_0x41235c,_0x14da37)=>(_0x4964ca,_0x2f8698)=>_0x14da37(_0x4964ca,_0x2f8698,_0x41235c),_0x436f5e=(_0x1b2fc3,_0x124816,_0x32dde4)=>_0x2218b3(_0x1b2fc3,typeof _0x124816!=_0x5f4722(0x29b)?_0x124816+'':_0x124816,_0x32dde4);const _0x21f216=_0x5f4722(0x1d2);_0x387e7b[_0x5f4722(0x29e)]=class extends _0x4c8bc9[_0x5f4722(0x1cb)]{constructor(_0x2ca78f=_0x117485,_0x192ec,_0x7a1494){var _0x5bc864=_0x5f4722;super(),this[_0x5bc864(0x21c)]=_0x2ca78f,this[_0x5bc864(0x1cd)]=_0x192ec,this[_0x5bc864(0x2b8)]=_0x7a1494;const {..._0x4e217e}=_0x4c8bc9[_0x5bc864(0x2a8)]({},_0x117485,this[_0x5bc864(0x21c)]);this[_0x5bc864(0x2b8)][_0x5bc864(0x248)](_0x32310f,_0x4e217e);}['onStarting'](){var _0x2b36ca=_0x5f4722;_0x4c8bc9[_0x2b36ca(0x252)](this[_0x2b36ca(0x1cd)],_0x4c8bc9[_0x2b36ca(0x1f4)]([[_0xa82131],[_0x387e7b[_0x2b36ca(0x1dc)]],[_0x43e167],[_0x387e7b[_0x2b36ca(0x1ee)]]],this[_0x2b36ca(0x21c)][_0x2b36ca(0x200)])),_0x4c8bc9[_0x2b36ca(0x2b7)](this[_0x2b36ca(0x1cd)],[[_0x43e167]]);}[_0x5f4722(0x287)](){var _0x20355d=_0x5f4722;_0x4c8bc9[_0x20355d(0x2b7)](this[_0x20355d(0x1cd)],[[_0x387e7b[_0x20355d(0x1ee)]]]);}},_0x436f5e(_0x387e7b[_0x5f4722(0x29e)],_0x5f4722(0x263),_0x4c8bc9[_0x5f4722(0x24c)][_0x5f4722(0x292)]),_0x436f5e(_0x387e7b[_0x5f4722(0x29e)],_0x5f4722(0x279),_0x21f216),_0x387e7b[_0x5f4722(0x29e)]=_0x157a4b([_0x4c8bc9['DependentOn'](_0x45e5c0[_0x5f4722(0x1c7)]),_0x22ba3a(0x1,_0x4c8bc9[_0x5f4722(0x259)](_0x4c8bc9['Injector'])),_0x22ba3a(0x2,_0x4c8bc9['IConfigService'])],_0x387e7b[_0x5f4722(0x29e)]),_0x387e7b['LiveShare']=_0x4742b7,_0x387e7b['LiveShareService']=_0xa82131,_0x387e7b[_0x5f4722(0x1f5)]=_0x28b580,Object[_0x5f4722(0x28e)](_0x387e7b,Symbol[_0x5f4722(0x24d)],{'value':'Module'});}));
1
+ function _0x161b(_0x1dbaf4,_0x3f0613){const _0x4552ac=_0x4552();return _0x161b=function(_0x161bb5,_0x407708){_0x161bb5=_0x161bb5-0x170;let _0x4363d5=_0x4552ac[_0x161bb5];return _0x4363d5;},_0x161b(_0x1dbaf4,_0x3f0613);}function _0x4552(){const _0x546c9a=['PRESENTING','displayName','onCommandExecuted','executeCommand','none','_liveShareService','885fSmqUe','BehaviorSubject','_presenter','LIVESHARE_NEW_HOST','DesktopLiveShareController','_commandDisposable','SetWorksheetActiveOperation','_mountLiveShare','status$','UniverSheetsUi','FOLLOWING','clear','671qXwNzI','@univerjs/core','LiveShareStatus','171LwpKtW','LiveShare','idSuffix','56412VFmRmV','_collabSession','throttleTime','Inject','defIds','SAME_OPERATION_SHARE_INTERVAL','@univerjs/ui','_handleNewChangeSets','@univerjs-pro/collaboration','rxjs/operators','memberID','colorChannel1','type','mergeOverrideWithDependencies','attrs','LIVESHARE_OPERATION','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','jsx','toString','125NkJyCB','@univerjs/sheets','sheet','UniverLiveSharePlugin','univer-mb-3\x20univer-w-full\x20univer-text-sm','getCurrentTypeOfUnit$','registerDependencies','defineProperty','HEADER_MENU','_entities','amd','fill','set','useState','Present\x20this\x20document','_startPresenting','operators','registerComponent','override','tryStartPresenting','params','_config','currentColor','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Button','useDependency','getTypeOfUnitAdded$','takeUntil','getStatus','OFFLINE','IConfigService','shouldShareOperation','IUIPartsService','pluginName','delete','clsx','http://www.w3.org/2000/svg','CollaborationSessionService','react/jsx-runtime','dispose$','DependentOn','evenodd','14rEiPTB','_collabSessionService','event$','find','presenting','subscribe','RxDisposable','send','mutations','_stopPresenting','_sharedOperations','registerSharedOperation','101GwGrNe','getOwnPropertyDescriptor','toStringTag','_unitID','path','getLiveShareCoordinatorSync','_handleOnline','touchDependencies','UniverCollaborationClientPlugin','148290jNCRcQ','NOT_FOLLOWING','_handleOffline','jsxs','offline','idle','_injector','symbol','LIVESHARE_TERMINATE','React','_startLiveShareCoordinator','get','parse','56kpNdCl','text','assign','next','UniverIcon','pipe','disposeWithMe','2495103EdfGZb','toDisposable','Module','ICommandService','stringify','svg','add','UniverSheets','react','rxjs','IDLE','complete','1em','SetScrollOperation','_commandService','live-share.config','_reporters','Stop\x20presenting','getValue','end','Dropdown','Start\x20following','0\x200\x2017\x2017','_configService','replace','string','dispose','init','_startFollowing','has','@univerjs/design','@univerjs-pro/collaboration-client','default','onRendered','map','button','_handleTerminate','You\x27re\x20not\x20following\x20the\x20presenter','_univerInstanceService','asObservable','current','_fetchOperations','xlink:href','mask','forwardRef','createElement','Fragment','_beIdle','Plugin','forEach','You\x27re\x20following\x20the\x20presenter','63749kXfDjR','LiveShareController','getLiveShareCoordinator','Disposable','NEW_CHANGESETS','getMemberID','live-share-icon','getUnitId','stopFollowing','requireSession','UniverInstanceType','BuiltInUIPart','createInstance','@univerjs/sheets-ui','UniverProCollaboration','tag','div','UNIVER_SHEET','operations','function','includes','DisposableCollection','startFollowing','entries','random','OPERATION','onStarting','setConfig','not-following','You\x27are\x20offline.','_status$','connectInjector','UniverProLiveShare','use','_init','Injector','values','_stopFollowing','trim','data','following','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','UniverProCollaborationClient','_status','_uiPartsService','UniverDesign','CollaborationEvent','LiveShareCoordinator','children','defs','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','useRef','length','useEffect','2458LfaQDc','getConfig','4492qjRCYQ','CommandType','UNIVER_UNKNOWN','InsertSheetMutation','36996XXKHSl','url(#$1','LIVESHARE_FETCH_OPERATIONS'];_0x4552=function(){return _0x546c9a;};return _0x4552();}(function(_0x2f6a00,_0xf9b080){const _0x4f14a7=_0x161b,_0x465fe3=_0x2f6a00();while(!![]){try{const _0x4efc34=parseInt(_0x4f14a7(0x184))/0x1*(parseInt(_0x4f14a7(0x20a))/0x2)+-parseInt(_0x4f14a7(0x219))/0x3*(-parseInt(_0x4f14a7(0x20c))/0x4)+-parseInt(_0x4f14a7(0x23e))/0x5*(-parseInt(_0x4f14a7(0x210))/0x6)+parseInt(_0x4f14a7(0x1d4))/0x7*(-parseInt(_0x4f14a7(0x19a))/0x8)+-parseInt(_0x4f14a7(0x228))/0x9*(parseInt(_0x4f14a7(0x18d))/0xa)+-parseInt(_0x4f14a7(0x225))/0xb*(parseInt(_0x4f14a7(0x22b))/0xc)+parseInt(_0x4f14a7(0x1a1))/0xd*(parseInt(_0x4f14a7(0x178))/0xe);if(_0x4efc34===_0xf9b080)break;else _0x465fe3['push'](_0x465fe3['shift']());}catch(_0x1623d5){_0x465fe3['push'](_0x465fe3['shift']());}}}(_0x4552,0x29512),function(_0x3c3bd0,_0x3866ae){const _0x5d5dda=_0x161b;typeof exports=='object'&&typeof module<'u'?_0x3866ae(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x5d5dda(0x1e7)&&define[_0x5d5dda(0x248)]?define(['exports',_0x5d5dda(0x226),_0x5d5dda(0x231),_0x5d5dda(0x174),_0x5d5dda(0x1bf),_0x5d5dda(0x1a9),_0x5d5dda(0x233),_0x5d5dda(0x1c0),_0x5d5dda(0x23f),'rxjs',_0x5d5dda(0x234),_0x5d5dda(0x1e1)],_0x3866ae):(_0x3c3bd0=typeof globalThis<'u'?globalThis:_0x3c3bd0||self,_0x3866ae(_0x3c3bd0[_0x5d5dda(0x1f4)]={},_0x3c3bd0['UniverCore'],_0x3c3bd0['UniverUi'],_0x3c3bd0['React'],_0x3c3bd0[_0x5d5dda(0x201)],_0x3c3bd0[_0x5d5dda(0x196)],_0x3c3bd0[_0x5d5dda(0x1e2)],_0x3c3bd0[_0x5d5dda(0x1fe)],_0x3c3bd0[_0x5d5dda(0x1a8)],_0x3c3bd0[_0x5d5dda(0x1aa)],_0x3c3bd0[_0x5d5dda(0x1aa)][_0x5d5dda(0x24e)],_0x3c3bd0[_0x5d5dda(0x222)]));}(this,function(_0x2491c7,_0x4042ad,_0xb7e494,_0x487dbc,_0x1656cf,_0x284080,_0x15dce3,_0x1c5d61,_0x1b9810,_0x301d6d,_0x53bd07,_0x5dafdd){'use strict';const _0xe07925=_0x161b;var _0x5ac212=Object[_0xe07925(0x245)],_0x2c39bd=(_0x27ad98,_0x3050a4,_0x24b607)=>_0x3050a4 in _0x27ad98?_0x5ac212(_0x27ad98,_0x3050a4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24b607}):_0x27ad98[_0x3050a4]=_0x24b607,_0x2b73de=(_0x59a309,_0x252e74,_0x4fafbe)=>_0x2c39bd(_0x59a309,typeof _0x252e74!=_0xe07925(0x194)?_0x252e74+'':_0x252e74,_0x4fafbe);function _0x4b1ba9({ref:_0x5983d5,..._0x5a1d5d}){const _0x20edaf=_0xe07925,{icon:_0x49236d,id:_0x352701,className:_0x2567f0,extend:_0x55a75d,..._0x1953c8}=_0x5a1d5d,_0x5a4480=('univerjs-icon\x20univerjs-icon-'+_0x352701+'\x20'+(_0x2567f0||''))[_0x20edaf(0x1fa)](),_0x27fda2=_0x284080[_0x20edaf(0x207)]('_'+_0x4f9bdc());return _0x353424(_0x49236d,''+_0x352701,{'defIds':_0x49236d[_0x20edaf(0x22f)],'idSuffix':_0x27fda2[_0x20edaf(0x1c9)]},{'ref':_0x5983d5,'className':_0x5a4480,..._0x1953c8},_0x55a75d);}function _0x353424(_0x57db41,_0x5b4b4f,_0x42d6a2,_0x5c62fd,_0x2f0612){const _0x272a27=_0xe07925;return _0x284080[_0x272a27(0x1ce)](_0x57db41[_0x272a27(0x1e3)],{'key':_0x5b4b4f,..._0x47b9fd(_0x57db41,_0x42d6a2,_0x2f0612),..._0x5c62fd},(_0x131415(_0x57db41,_0x42d6a2)[_0x272a27(0x204)]||[])[_0x272a27(0x1c3)]((_0xe13379,_0x410000)=>_0x353424(_0xe13379,_0x5b4b4f+'-'+_0x57db41[_0x272a27(0x1e3)]+'-'+_0x410000,_0x42d6a2,void 0x0,_0x2f0612)));}function _0x47b9fd(_0x315a14,_0x311eeb,_0x38ef44){const _0x5df7d6=_0xe07925,_0x466af4={..._0x315a14[_0x5df7d6(0x239)]};_0x38ef44!=null&&_0x38ef44['colorChannel1']&&_0x466af4[_0x5df7d6(0x249)]===_0x5df7d6(0x236)&&(_0x466af4[_0x5df7d6(0x249)]=_0x38ef44[_0x5df7d6(0x236)]),_0x315a14[_0x5df7d6(0x1e3)]===_0x5df7d6(0x1cc)&&_0x466af4['id']&&(_0x466af4['id']=_0x466af4['id']+_0x311eeb[_0x5df7d6(0x22a)]),Object[_0x5df7d6(0x1eb)](_0x466af4)['forEach'](([_0x332d3a,_0x30cf8f])=>{const _0x3bcbc7=_0x5df7d6;_0x332d3a===_0x3bcbc7(0x1cc)&&typeof _0x30cf8f=='string'&&(_0x466af4[_0x332d3a]=_0x30cf8f['replace'](/url\(#(.*)\)/,_0x3bcbc7(0x211)+_0x311eeb[_0x3bcbc7(0x22a)]+')'));});const {defIds:_0x4f6957}=_0x311eeb;return!_0x4f6957||_0x4f6957[_0x5df7d6(0x208)]===0x0||(_0x315a14['tag']===_0x5df7d6(0x1f5)&&_0x466af4[_0x5df7d6(0x1cb)]&&(_0x466af4['xlink:href']=_0x466af4[_0x5df7d6(0x1cb)]+_0x311eeb[_0x5df7d6(0x22a)]),Object[_0x5df7d6(0x1eb)](_0x466af4)[_0x5df7d6(0x1d2)](([_0x4e1edb,_0x10d3f9])=>{const _0x44ecbf=_0x5df7d6;typeof _0x10d3f9==_0x44ecbf(0x1ba)&&(_0x466af4[_0x4e1edb]=_0x10d3f9[_0x44ecbf(0x1b9)](/url\(#(.*)\)/,_0x44ecbf(0x211)+_0x311eeb[_0x44ecbf(0x22a)]+')'));})),_0x466af4;}function _0x131415(_0x50566f,_0x3641fd){const _0x44d6c6=_0xe07925;var _0x116a62;const {defIds:_0x477488}=_0x3641fd;return!_0x477488||_0x477488['length']===0x0?_0x50566f:_0x50566f[_0x44d6c6(0x1e3)]===_0x44d6c6(0x205)&&((_0x116a62=_0x50566f[_0x44d6c6(0x204)])!=null&&_0x116a62[_0x44d6c6(0x208)])?{..._0x50566f,'children':_0x50566f['children'][_0x44d6c6(0x1c3)](_0x16fc6b=>typeof _0x16fc6b[_0x44d6c6(0x239)]['id']=='string'&&_0x477488&&_0x477488[_0x44d6c6(0x1e8)](_0x16fc6b[_0x44d6c6(0x239)]['id'])?{..._0x16fc6b,'attrs':{..._0x16fc6b[_0x44d6c6(0x239)],'id':_0x16fc6b['attrs']['id']+_0x3641fd[_0x44d6c6(0x22a)]}}:_0x16fc6b)}:_0x50566f;}function _0x4f9bdc(){const _0x474af0=_0xe07925;return Math[_0x474af0(0x1ec)]()[_0x474af0(0x23d)](0x24)['substring'](0x2,0x8);}_0x4b1ba9[_0xe07925(0x214)]=_0xe07925(0x19e);const _0x4931fd={'tag':_0xe07925(0x1a6),'attrs':{'xmlns':_0xe07925(0x172),'fill':_0xe07925(0x217),'viewBox':_0xe07925(0x1b7),'width':_0xe07925(0x1ad),'height':_0xe07925(0x1ad)},'children':[{'tag':_0xe07925(0x188),'attrs':{'fill':_0xe07925(0x254),'d':_0xe07925(0x23b)}},{'tag':_0xe07925(0x188),'attrs':{'fill':_0xe07925(0x254),'d':_0xe07925(0x1fd),'fillRule':'evenodd','clipRule':_0xe07925(0x177)}}]},_0x4eee83=_0x284080[_0xe07925(0x1cd)](function(_0x11eb02,_0x16ea42){const _0x478e7c=_0xe07925;return _0x284080[_0x478e7c(0x1ce)](_0x4b1ba9,Object[_0x478e7c(0x19c)]({},_0x11eb02,{'id':_0x478e7c(0x1da),'ref':_0x16ea42,'icon':_0x4931fd}));});_0x4eee83[_0xe07925(0x214)]='LiveShareIcon';class _0x349095 extends _0x4042ad[_0xe07925(0x1d7)]{constructor(){const _0x24a0b5=_0xe07925;super(...arguments),_0x2b73de(this,'_sharedOperations',new Set()),_0x2b73de(this,_0x24a0b5(0x1b1),new Set());}[_0xe07925(0x183)](_0x49bb4a){const _0x326be5=_0xe07925;return this['_sharedOperations'][_0x326be5(0x1a7)](_0x49bb4a),_0x4042ad[_0x326be5(0x1a2)](()=>this[_0x326be5(0x182)]['delete'](_0x49bb4a));}['registerInitialStateReporter'](_0x3f5bd0){const _0x160754=_0xe07925;return this[_0x160754(0x1b1)][_0x160754(0x1a7)](_0x3f5bd0),_0x4042ad[_0x160754(0x1a2)](()=>this[_0x160754(0x1b1)][_0x160754(0x170)](_0x3f5bd0));}[_0xe07925(0x25d)](_0x505b49){const _0xf95b4f=_0xe07925;return this[_0xf95b4f(0x182)][_0xf95b4f(0x1be)](_0x505b49);}['getInitialStates'](_0x5eaa43){const _0x363788=_0xe07925;return Array['from'](this[_0x363788(0x1b1)])['map'](_0x5a37e5=>_0x5a37e5(_0x5eaa43));}}var _0x14874e=Object[_0xe07925(0x185)],_0x2507fd=(_0x57586b,_0x57f2ce,_0x337c3b,_0x4afa70)=>{const _0x5c33f9=_0xe07925;for(var _0x22b41d=_0x4afa70>0x1?void 0x0:_0x4afa70?_0x14874e(_0x57f2ce,_0x337c3b):_0x57f2ce,_0x1373fe=_0x57586b[_0x5c33f9(0x208)]-0x1,_0x12ff93;_0x1373fe>=0x0;_0x1373fe--)(_0x12ff93=_0x57586b[_0x1373fe])&&(_0x22b41d=_0x12ff93(_0x22b41d)||_0x22b41d);return _0x22b41d;},_0x3586da=(_0x306d1a,_0x5d141e)=>(_0x20e10c,_0xff81b2)=>_0x5d141e(_0x20e10c,_0xff81b2,_0x306d1a);_0x2491c7[_0xe07925(0x1d5)]=class extends _0x4042ad[_0xe07925(0x17e)]{constructor(_0x66ae9,_0x207b91,_0x372d17){const _0x1bfd0a=_0xe07925;super(),_0x2b73de(this,_0x1bfd0a(0x247),new Map()),(this[_0x1bfd0a(0x1c7)]=_0x66ae9,this[_0x1bfd0a(0x193)]=_0x207b91,this[_0x1bfd0a(0x179)]=_0x372d17,this[_0x1bfd0a(0x1f6)]());}async['getLiveShareCoordinator'](_0x282a21){const _0x3e82cd=_0xe07925;return this[_0x3e82cd(0x247)][_0x3e82cd(0x1be)](_0x282a21)||await this[_0x3e82cd(0x197)](_0x282a21),this[_0x3e82cd(0x247)][_0x3e82cd(0x198)](_0x282a21);}[_0xe07925(0x189)](_0x271b36){const _0x2da313=_0xe07925;var _0x20b8d7;return(_0x20b8d7=this[_0x2da313(0x247)][_0x2da313(0x198)](_0x271b36))!=null?_0x20b8d7:null;}[_0xe07925(0x1f6)](){const _0x451f49=_0xe07925;this['_univerInstanceService'][_0x451f49(0x258)](_0x4042ad[_0x451f49(0x1de)]['UNIVER_SHEET'])['pipe'](_0x53bd07[_0x451f49(0x259)](this['dispose$']))['subscribe'](async _0x56a978=>{const _0x217198=_0x451f49,_0x2002e7=_0x56a978[_0x217198(0x1db)]();this[_0x217198(0x247)][_0x217198(0x1be)](_0x2002e7)||this[_0x217198(0x197)](_0x2002e7);}),this[_0x451f49(0x1c7)]['getTypeOfUnitDisposed$'](_0x4042ad[_0x451f49(0x1de)][_0x451f49(0x1e5)])[_0x451f49(0x19f)](_0x53bd07[_0x451f49(0x259)](this[_0x451f49(0x175)]))[_0x451f49(0x17d)](_0x53db28=>{const _0x2f6fe5=_0x451f49,_0x3880d7=_0x53db28[_0x2f6fe5(0x1db)](),_0x276077=this['_entities'][_0x2f6fe5(0x198)](_0x3880d7);_0x276077==null||_0x276077['dispose']();});}async[_0xe07925(0x197)](_0x4ffc50){const _0x4ddd44=_0xe07925,_0x42482d=await this['_collabSessionService'][_0x4ddd44(0x1dd)](_0x4ffc50),_0x470cf0=this[_0x4ddd44(0x193)][_0x4ddd44(0x1e0)](_0x2491c7[_0x4ddd44(0x203)],_0x4ffc50,_0x42482d);return _0x470cf0[_0x4ddd44(0x1bc)](),this[_0x4ddd44(0x247)][_0x4ddd44(0x24a)](_0x4ffc50,_0x470cf0),_0x470cf0;}},_0x2491c7['LiveShareController']=_0x2507fd([_0x3586da(0x0,_0x4042ad['IUniverInstanceService']),_0x3586da(0x1,_0x4042ad[_0xe07925(0x22e)](_0x4042ad[_0xe07925(0x1f7)])),_0x3586da(0x2,_0x4042ad[_0xe07925(0x22e)](_0x1c5d61[_0xe07925(0x173)]))],_0x2491c7[_0xe07925(0x1d5)]);var _0x4ab54e=(_0x5cd261=>(_0x5cd261['OFFLINE']=_0xe07925(0x191),_0x5cd261['IDLE']=_0xe07925(0x192),_0x5cd261[_0xe07925(0x223)]=_0xe07925(0x1fc),_0x5cd261[_0xe07925(0x18e)]='not-following',_0x5cd261[_0xe07925(0x213)]=_0xe07925(0x17c),_0x5cd261))(_0x4ab54e||{});const _0x27ee9f=_0xe07925(0x230),_0x1aeee1=0xc8;_0x2491c7[_0xe07925(0x203)]=class extends _0x4042ad[_0xe07925(0x17e)]{constructor(_0x2cad67,_0x6336b9,_0x321583,_0x6a3c57,_0x168fe1){const _0x412856=_0xe07925;super(),_0x2b73de(this,_0x412856(0x1f2),new _0x301d6d[(_0x412856(0x21a))](_0x412856(0x192))),_0x2b73de(this,_0x412856(0x221),this['_status$'][_0x412856(0x1c8)]()),_0x2b73de(this,_0x412856(0x1f6),!0x1),_0x2b73de(this,'_commandDisposable',null),_0x2b73de(this,_0x412856(0x21b),null),(this[_0x412856(0x187)]=_0x2cad67,this['_collabSession']=_0x6336b9,this[_0x412856(0x1b8)]=_0x321583,this[_0x412856(0x218)]=_0x6a3c57,this['_commandService']=_0x168fe1);}get[_0xe07925(0x1ff)](){const _0x1d3d52=_0xe07925;return this[_0x1d3d52(0x1f2)][_0x1d3d52(0x1b3)]();}[_0xe07925(0x1bb)](){const _0x5bd4f9=_0xe07925;var _0x592452;(_0x592452=this[_0x5bd4f9(0x21e)])==null||_0x592452['dispose'](),this['_status$'][_0x5bd4f9(0x19d)](_0x5bd4f9(0x192)),this['_status$'][_0x5bd4f9(0x1ac)]();}[_0xe07925(0x25a)](){const _0x176309=_0xe07925;return this[_0x176309(0x1ff)];}['init'](){const _0x3fbc76=_0xe07925;this[_0x3fbc76(0x1f6)]||(this['_init']=!0x0,this['_collabSession']['sessionStatus$'][_0x3fbc76(0x19f)](_0x53bd07[_0x3fbc76(0x259)](this['dispose$']))[_0x3fbc76(0x17d)](_0x3a32fa=>{const _0x1ef024=_0x3fbc76;switch(_0x3a32fa){case _0x1c5d61['SessionStatus'][_0x1ef024(0x25b)]:this['_handleOffline']();break;case _0x1c5d61['SessionStatus']['ONLINE']:this['_handleOnline']();break;}}),this[_0x3fbc76(0x22c)][_0x3fbc76(0x17a)][_0x3fbc76(0x19f)](_0x53bd07[_0x3fbc76(0x259)](this['dispose$']))[_0x3fbc76(0x17d)](_0x24ad10=>{const _0x204dde=_0x3fbc76,{eventID:_0x5c5919}=_0x24ad10;switch(_0x5c5919){case _0x15dce3[_0x204dde(0x202)][_0x204dde(0x21c)]:this['_handleNewHost'](_0x24ad10);break;case _0x15dce3[_0x204dde(0x202)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x24ad10);break;case _0x15dce3[_0x204dde(0x202)][_0x204dde(0x195)]:this[_0x204dde(0x1c5)]();break;case _0x15dce3[_0x204dde(0x202)][_0x204dde(0x1d8)]:this[_0x204dde(0x232)](_0x24ad10);break;}}));}[_0xe07925(0x251)](){const _0x115eed=_0xe07925;this[_0x115eed(0x22c)][_0x115eed(0x17f)]({'eventID':_0x15dce3['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x115eed(0x187)],'userID':this[_0x115eed(0x22c)][_0x115eed(0x1d9)]()}},this['_unitID']);}['stopPresenting'](){const _0x2d0dc5=_0xe07925;this['_status']===_0x2d0dc5(0x17c)&&(this[_0x2d0dc5(0x1f2)][_0x2d0dc5(0x19d)](_0x2d0dc5(0x192)),this[_0x2d0dc5(0x22c)]['send']({'eventID':_0x15dce3[_0x2d0dc5(0x202)][_0x2d0dc5(0x195)],'data':{'unitID':this[_0x2d0dc5(0x187)]}},this[_0x2d0dc5(0x187)]));}[_0xe07925(0x1ea)](){const _0x37a45c=_0xe07925;this[_0x37a45c(0x1ff)]===_0x37a45c(0x1f0)&&(this[_0x37a45c(0x1f2)]['next'](_0x37a45c(0x1fc)),this[_0x37a45c(0x1bd)]());}[_0xe07925(0x1dc)](){const _0x411713=_0xe07925;this[_0x411713(0x1ff)]===_0x411713(0x1fc)&&this[_0x411713(0x1f9)]();}['_handleNewHost'](_0x429f9b){const _0x289e3c=_0xe07925,{presenter:_0x6b2ccb}=_0x429f9b['data'],_0x3a9d01=this[_0x289e3c(0x22c)][_0x289e3c(0x1d9)]();this[_0x289e3c(0x21b)]=_0x6b2ccb,_0x6b2ccb===_0x3a9d01?(this[_0x289e3c(0x1f9)](),this[_0x289e3c(0x24d)]()):this[_0x289e3c(0x1ff)]!==_0x289e3c(0x1f0)&&(this[_0x289e3c(0x181)](),this['_startFollowing']());}[_0xe07925(0x1ca)](){const _0x5eb70e=_0xe07925,_0x27a228={'eventID':_0x15dce3[_0x5eb70e(0x202)][_0x5eb70e(0x212)]};this['_collabSession']['send'](_0x27a228,this[_0x5eb70e(0x187)]);}[_0xe07925(0x1c5)](){const _0x2bad8f=_0xe07925;this['_presenter']=null,this[_0x2bad8f(0x1ff)]!==_0x2bad8f(0x17c)&&this[_0x2bad8f(0x1d0)]();}[_0xe07925(0x232)](_0x5ab55d){const _0x10fbbd=_0xe07925;if(this['_status']==='following'&&this[_0x10fbbd(0x21b)]===_0x5ab55d[_0x10fbbd(0x1fb)][_0x10fbbd(0x235)]){const _0x128ece=_0x15dce3['parseProtocolChangeset'](_0x5ab55d[_0x10fbbd(0x1fb)])[_0x10fbbd(0x180)]['reverse']()[_0x10fbbd(0x17b)](_0x170207=>_0x170207['id']===_0x1b9810[_0x10fbbd(0x20f)]['id']);if(_0x128ece){const _0x104279=_0x128ece[_0x10fbbd(0x252)]['unitId'],_0x813733=_0x128ece[_0x10fbbd(0x252)][_0x10fbbd(0x240)]['id'];setTimeout(()=>{const _0x55fb7d=_0x10fbbd;this[_0x55fb7d(0x1af)][_0x55fb7d(0x216)](_0x1b9810[_0x55fb7d(0x21f)]['id'],{'unitId':_0x104279,'subUnitId':_0x813733},{'fromCollab':!0x0});});}}}[_0xe07925(0x24d)](){const _0x2aa383=_0xe07925;this[_0x2aa383(0x1f2)][_0x2aa383(0x19d)]('presenting');const _0x732286=new Map(),_0x1d47f6=this[_0x2aa383(0x21e)]=new _0x4042ad[(_0x2aa383(0x1e9))]();_0x1d47f6[_0x2aa383(0x1a7)](_0x4042ad[_0x2aa383(0x1a2)](()=>{const _0x401b91=_0x2aa383;_0x732286[_0x401b91(0x1d2)](_0x228533=>_0x228533[_0x401b91(0x1ac)]()),_0x732286[_0x401b91(0x224)]();})),_0x1d47f6[_0x2aa383(0x1a7)](this[_0x2aa383(0x1af)][_0x2aa383(0x215)](_0x209d2b=>{const _0x149227=_0x2aa383;var _0x4f79bf;if(_0x209d2b[_0x149227(0x237)]!==_0x4042ad[_0x149227(0x20d)][_0x149227(0x1ed)]||!this[_0x149227(0x218)][_0x149227(0x25d)](_0x209d2b['id']))return;const {id:_0x2de7f6}=_0x209d2b;let _0x5f2f2a;_0x732286[_0x149227(0x1be)](_0x2de7f6)?_0x5f2f2a=_0x732286[_0x149227(0x198)](_0x2de7f6):(_0x5f2f2a=new _0x301d6d['Subject'](),_0x732286[_0x149227(0x24a)](_0x2de7f6,_0x5f2f2a),_0x5f2f2a[_0x149227(0x19f)](_0x53bd07[_0x149227(0x22d)]((_0x4f79bf=this['_configService'][_0x149227(0x20b)](_0x27ee9f))!=null?_0x4f79bf:_0x1aeee1,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x149227(0x17d)](_0xb0b402=>{const _0x2d89b1=_0x149227;this['_collabSession']['send']({'eventID':_0x15dce3[_0x2d89b1(0x202)][_0x2d89b1(0x23a)],'data':{'unitID':this[_0x2d89b1(0x187)],'operations':{[_0xb0b402['id']]:{'id':_0xb0b402['id'],'params':JSON['stringify'](_0xb0b402[_0x2d89b1(0x252)])}}}},this[_0x2d89b1(0x187)]);})),_0x5f2f2a[_0x149227(0x19d)](_0x209d2b);})),this[_0x2aa383(0x218)]['getInitialStates'](this[_0x2aa383(0x187)])[_0x2aa383(0x1d2)](_0x288743=>this['_collabSession'][_0x2aa383(0x17f)]({'eventID':_0x15dce3[_0x2aa383(0x202)][_0x2aa383(0x23a)],'data':{'unitID':this['_unitID'],'operations':{[_0x288743['id']]:{'id':_0x288743['id'],'params':JSON[_0x2aa383(0x1a5)](_0x288743['params'])}}}},this['_unitID']));}[_0xe07925(0x181)](){const _0x36eea6=_0xe07925;var _0x5115ee;this[_0x36eea6(0x1f2)][_0x36eea6(0x19d)](_0x36eea6(0x192)),(_0x5115ee=this['_commandDisposable'])==null||_0x5115ee[_0x36eea6(0x1bb)](),this[_0x36eea6(0x21e)]=null;}['_startFollowing'](){const _0x2f5180=_0xe07925;var _0x50d6f4;(_0x50d6f4=this[_0x2f5180(0x21e)])==null||_0x50d6f4[_0x2f5180(0x1bb)](),this['_status$']['next'](_0x2f5180(0x1fc));}[_0xe07925(0x1d0)](){const _0x1a5cea=_0xe07925;var _0x337a64;this[_0x1a5cea(0x1f2)][_0x1a5cea(0x19d)]('idle'),(_0x337a64=this[_0x1a5cea(0x21e)])==null||_0x337a64[_0x1a5cea(0x1bb)](),this['_commandDisposable']=null;}[_0xe07925(0x1f9)](){const _0x48d364=_0xe07925;var _0x5d190c;this['_status$'][_0x48d364(0x19d)](_0x48d364(0x1f0)),(_0x5d190c=this[_0x48d364(0x21e)])==null||_0x5d190c[_0x48d364(0x1bb)]();}['_handleOperation'](_0x2109cd){const _0x3b55f0=_0xe07925;if([_0x3b55f0(0x17c),_0x3b55f0(0x1f0),_0x3b55f0(0x191)][_0x3b55f0(0x1e8)](this[_0x3b55f0(0x1ff)])||!_0x2109cd[_0x3b55f0(0x1fb)]['presenter']||_0x2109cd[_0x3b55f0(0x1fb)]['presenter']===this[_0x3b55f0(0x22c)][_0x3b55f0(0x1d9)]())return;this[_0x3b55f0(0x1ff)]===_0x3b55f0(0x192)&&this[_0x3b55f0(0x1bd)]();const _0x505fd2=_0x2109cd[_0x3b55f0(0x1fb)][_0x3b55f0(0x1e6)];Object[_0x3b55f0(0x1f8)](_0x505fd2)['forEach'](_0x564078=>{const _0x3d8290=_0x3b55f0;this[_0x3d8290(0x1af)][_0x3d8290(0x216)](_0x564078['id'],_0x564078[_0x3d8290(0x252)]?JSON[_0x3d8290(0x199)](_0x564078[_0x3d8290(0x252)]):null,{'fromCollab':!0x0});});}[_0xe07925(0x18f)](){const _0x36ad8b=_0xe07925;var _0x165f89;this[_0x36ad8b(0x1f2)]['next'](_0x36ad8b(0x191)),(_0x165f89=this[_0x36ad8b(0x21e)])==null||_0x165f89[_0x36ad8b(0x1bb)]();}[_0xe07925(0x18a)](){const _0x3d30a6=_0xe07925;this[_0x3d30a6(0x1f2)]['next']('idle'),this[_0x3d30a6(0x1ca)]();}},_0x2491c7[_0xe07925(0x203)]=_0x2507fd([_0x3586da(0x2,_0x4042ad[_0xe07925(0x25c)]),_0x3586da(0x3,_0x4042ad['Inject'](_0x349095)),_0x3586da(0x4,_0x4042ad[_0xe07925(0x1a4)])],_0x2491c7[_0xe07925(0x203)]);function _0xada477(){const _0x4d7d32=_0xe07925,_0x24243a=_0xb7e494[_0x4d7d32(0x257)](_0x2491c7[_0x4d7d32(0x1d5)]),_0xdea182=_0xb7e494[_0x4d7d32(0x257)](_0x4042ad['IUniverInstanceService']),_0x440939=_0xb7e494['useObservable'](()=>_0xdea182[_0x4d7d32(0x243)](_0x4042ad[_0x4d7d32(0x1de)][_0x4d7d32(0x1e5)]),void 0x0,!0x1,[]),[_0x5b2160,_0x5d5a6e]=_0x284080[_0x4d7d32(0x24b)](null),[_0x820bd9,_0xc36e6a]=_0x284080[_0x4d7d32(0x24b)](_0x4ab54e[_0x4d7d32(0x1ab)]),_0x17b997=_0x284080[_0x4d7d32(0x207)](null);return _0x284080[_0x4d7d32(0x209)](()=>(_0x440939&&_0x24243a[_0x4d7d32(0x1d6)](_0x440939[_0x4d7d32(0x1db)]())['then'](_0x5bf23a=>{const _0x5a8ac5=_0x4d7d32;_0x5d5a6e(_0x5bf23a),_0x17b997['current']=_0x5bf23a[_0x5a8ac5(0x221)][_0x5a8ac5(0x17d)](_0x285668=>{_0xc36e6a(_0x285668);});}),()=>{const _0x3a609c=_0x4d7d32;var _0x15fa81;(_0x15fa81=_0x17b997[_0x3a609c(0x1c9)])==null||_0x15fa81['unsubscribe'](),_0x17b997[_0x3a609c(0x1c9)]=null;}),[_0x440939,_0x24243a]),_0x5b2160?_0x487dbc[_0x4d7d32(0x23c)](_0x1656cf[_0x4d7d32(0x1b5)],{'align':_0x4d7d32(0x1b4),'disabled':_0x820bd9===_0x4ab54e[_0x4d7d32(0x25b)],'className':_0x4d7d32(0x206),'overlay':_0x487dbc[_0x4d7d32(0x23c)](_0x28bf40,{'status':_0x820bd9,'coordinator':_0x5b2160}),'children':_0x487dbc['jsx'](_0x4d7d32(0x1c4),{'className':_0x1656cf[_0x4d7d32(0x171)](_0x4d7d32(0x255),{'univer-cursor-not-allowed':_0x820bd9===_0x4ab54e[_0x4d7d32(0x25b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x820bd9!==_0x4ab54e[_0x4d7d32(0x25b)]}),'type':'button','children':_0x487dbc[_0x4d7d32(0x23c)](_0x4eee83,{'className':'univer-size-4'})})}):null;}function _0x28bf40(_0x35f5bd){const _0x4cab20=_0xe07925,{status:_0x4635c9,coordinator:_0x386e6a}=_0x35f5bd;switch(_0x4635c9){case _0x4ab54e[_0x4cab20(0x1ab)]:return _0x487dbc['jsx'](_0x3ea79c,{'coordinator':_0x386e6a});case _0x4ab54e['FOLLOWING']:return _0x487dbc[_0x4cab20(0x23c)](_0x54ed8f,{'coordinator':_0x386e6a});case _0x4ab54e[_0x4cab20(0x18e)]:return _0x487dbc['jsx'](_0x148116,{'coordinator':_0x386e6a});case _0x4ab54e[_0x4cab20(0x25b)]:return _0x487dbc[_0x4cab20(0x23c)](_0x5bf57d,{});case _0x4ab54e['PRESENTING']:return _0x487dbc[_0x4cab20(0x23c)](_0x2fad0c,{'coordinator':_0x386e6a});default:return null;}}function _0x3ea79c(_0x449b2c){const _0x69dae0=_0xe07925,{coordinator:_0x3c1e38}=_0x449b2c;return _0x487dbc['jsxs'](_0x487dbc[_0x69dae0(0x1cf)],{'children':[_0x487dbc[_0x69dae0(0x23c)](_0x69dae0(0x1e4),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x69dae0(0x24c)}),_0x487dbc[_0x69dae0(0x23c)](_0x1656cf[_0x69dae0(0x256)],{'onClick':()=>_0x3c1e38[_0x69dae0(0x251)](),'children':'Start'})]});}function _0x54ed8f(_0x2ce661){const _0x57eb1f=_0xe07925,{coordinator:_0x49184f}=_0x2ce661;return _0x487dbc['jsxs'](_0x487dbc[_0x57eb1f(0x1cf)],{'children':[_0x487dbc['jsx'](_0x57eb1f(0x1e4),{'className':_0x57eb1f(0x242),'children':_0x57eb1f(0x1d3)}),_0x487dbc[_0x57eb1f(0x23c)](_0x1656cf[_0x57eb1f(0x256)],{'onClick':()=>_0x49184f['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x148116(_0x238bff){const _0x375fdb=_0xe07925,{coordinator:_0x2e6e19}=_0x238bff;return _0x487dbc['jsxs'](_0x487dbc[_0x375fdb(0x1cf)],{'children':[_0x487dbc['jsx'](_0x375fdb(0x1e4),{'className':_0x375fdb(0x242),'children':_0x375fdb(0x1c6)}),_0x487dbc[_0x375fdb(0x23c)](_0x1656cf['Button'],{'variant':_0x375fdb(0x19b),'onClick':()=>_0x2e6e19['startFollowing'](),'children':_0x375fdb(0x1b6)})]});}function _0x2fad0c(_0x280695){const _0x3ce87e=_0xe07925,{coordinator:_0xe3b3a3}=_0x280695;return _0x487dbc[_0x3ce87e(0x190)](_0x487dbc['Fragment'],{'children':[_0x487dbc[_0x3ce87e(0x23c)]('div',{'className':_0x3ce87e(0x242),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x487dbc[_0x3ce87e(0x23c)](_0x1656cf[_0x3ce87e(0x256)],{'variant':_0x3ce87e(0x1c1),'onClick':()=>_0xe3b3a3['stopPresenting'](),'children':_0x3ce87e(0x1b2)})]});}function _0x5bf57d(){const _0x1fb1f2=_0xe07925;return _0x487dbc['jsx'](_0x487dbc[_0x1fb1f2(0x1cf)],{'children':_0x1fb1f2(0x1f1)});}var _0x466f5b=Object[_0xe07925(0x185)],_0x490d4f=(_0x3b5480,_0x592390,_0x52b8ef,_0x518fb8)=>{const _0x360a67=_0xe07925;for(var _0x11232d=_0x518fb8>0x1?void 0x0:_0x518fb8?_0x466f5b(_0x592390,_0x52b8ef):_0x592390,_0x25a230=_0x3b5480[_0x360a67(0x208)]-0x1,_0x509efe;_0x25a230>=0x0;_0x25a230--)(_0x509efe=_0x3b5480[_0x25a230])&&(_0x11232d=_0x509efe(_0x11232d)||_0x11232d);return _0x11232d;},_0x451176=(_0x41f50e,_0x403f21)=>(_0x9ceb36,_0x1500d7)=>_0x403f21(_0x9ceb36,_0x1500d7,_0x41f50e);_0x2491c7[_0xe07925(0x21d)]=class extends _0x4042ad['Disposable']{constructor(_0x2d8321,_0x21c899){const _0x43765c=_0xe07925;super(),this[_0x43765c(0x193)]=_0x2d8321,this[_0x43765c(0x200)]=_0x21c899,this[_0x43765c(0x220)]();}[_0xe07925(0x220)](){const _0x35c349=_0xe07925;this[_0x35c349(0x1a0)](this['_uiPartsService'][_0x35c349(0x24f)](_0xb7e494[_0x35c349(0x1df)][_0x35c349(0x246)],()=>_0xb7e494[_0x35c349(0x1f3)](_0xada477,this[_0x35c349(0x193)])));}},_0x2491c7[_0xe07925(0x21d)]=_0x490d4f([_0x451176(0x0,_0x4042ad[_0xe07925(0x22e)](_0x4042ad[_0xe07925(0x1f7)])),_0x451176(0x1,_0xb7e494[_0xe07925(0x25e)])],_0x2491c7[_0xe07925(0x21d)]);const _0x3a1824=_0xe07925(0x1b0),_0x4d63f7={};var _0x4592a9=Object[_0xe07925(0x185)],_0x33b70b=(_0x4ec50d,_0x4aadc3,_0x261332,_0x23d25f)=>{const _0x2ec74f=_0xe07925;for(var _0x59b293=_0x23d25f>0x1?void 0x0:_0x23d25f?_0x4592a9(_0x4aadc3,_0x261332):_0x4aadc3,_0x575bdf=_0x4ec50d[_0x2ec74f(0x208)]-0x1,_0x2c7e35;_0x575bdf>=0x0;_0x575bdf--)(_0x2c7e35=_0x4ec50d[_0x575bdf])&&(_0x59b293=_0x2c7e35(_0x59b293)||_0x59b293);return _0x59b293;},_0x5d85f0=(_0x22be98,_0x64087)=>(_0x4f80d7,_0x5907ac)=>_0x64087(_0x4f80d7,_0x5907ac,_0x22be98);let _0x491240=class extends _0x4042ad[_0xe07925(0x1d7)]{constructor(_0x131648){const _0x98eb08=_0xe07925;super(),this[_0x98eb08(0x218)]=_0x131648,this['_init']();}[_0xe07925(0x1f6)](){const _0x54c90d=_0xe07925;[_0x5dafdd['SetZoomRatioOperation']['id'],_0x5dafdd[_0x54c90d(0x1ae)]['id'],_0x1b9810[_0x54c90d(0x21f)]['id']][_0x54c90d(0x1d2)](_0x21ddfa=>{const _0x37d204=_0x54c90d;this['disposeWithMe'](this[_0x37d204(0x218)]['registerSharedOperation'](_0x21ddfa));});}};_0x491240=_0x33b70b([_0x5d85f0(0x0,_0x4042ad[_0xe07925(0x22e)](_0x349095))],_0x491240);var _0x50eedc=Object[_0xe07925(0x245)],_0x2dfd36=Object[_0xe07925(0x185)],_0x199b14=(_0x1368ed,_0x5558f9,_0x3dac72)=>_0x5558f9 in _0x1368ed?_0x50eedc(_0x1368ed,_0x5558f9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dac72}):_0x1368ed[_0x5558f9]=_0x3dac72,_0x336e50=(_0x114c5b,_0x33f618,_0x38295b,_0x5880e7)=>{for(var _0x2d3a74=_0x5880e7>0x1?void 0x0:_0x5880e7?_0x2dfd36(_0x33f618,_0x38295b):_0x33f618,_0x3c2fc1=_0x114c5b['length']-0x1,_0x55be7a;_0x3c2fc1>=0x0;_0x3c2fc1--)(_0x55be7a=_0x114c5b[_0x3c2fc1])&&(_0x2d3a74=_0x55be7a(_0x2d3a74)||_0x2d3a74);return _0x2d3a74;},_0x3e368d=(_0x5af0d2,_0xf6c673)=>(_0x5c8860,_0xae139b)=>_0xf6c673(_0x5c8860,_0xae139b,_0x5af0d2),_0x580314=(_0x299eac,_0x53e3bc,_0x474830)=>_0x199b14(_0x299eac,typeof _0x53e3bc!=_0xe07925(0x194)?_0x53e3bc+'':_0x53e3bc,_0x474830);const _0x12967c='UNIVER_LIVE_SHARE_PLUGIN';_0x2491c7[_0xe07925(0x241)]=class extends _0x4042ad[_0xe07925(0x1d1)]{constructor(_0x69262=_0x4d63f7,_0x3f8430,_0x5dc628){const _0x421fb6=_0xe07925;super(),this[_0x421fb6(0x253)]=_0x69262,this[_0x421fb6(0x193)]=_0x3f8430,this[_0x421fb6(0x1b8)]=_0x5dc628;const {..._0x3502c5}=_0x4042ad['merge']({},_0x4d63f7,this[_0x421fb6(0x253)]);this[_0x421fb6(0x1b8)][_0x421fb6(0x1ef)](_0x3a1824,_0x3502c5);}[_0xe07925(0x1ee)](){const _0x4c0b47=_0xe07925;_0x4042ad[_0x4c0b47(0x244)](this[_0x4c0b47(0x193)],_0x4042ad[_0x4c0b47(0x238)]([[_0x349095],[_0x2491c7[_0x4c0b47(0x1d5)]],[_0x491240],[_0x2491c7[_0x4c0b47(0x21d)]]],this[_0x4c0b47(0x253)][_0x4c0b47(0x250)])),_0x4042ad[_0x4c0b47(0x18b)](this['_injector'],[[_0x491240]]);}[_0xe07925(0x1c2)](){const _0x361819=_0xe07925;_0x4042ad[_0x361819(0x18b)](this[_0x361819(0x193)],[[_0x2491c7[_0x361819(0x21d)]]]);}},_0x580314(_0x2491c7[_0xe07925(0x241)],_0xe07925(0x237),_0x4042ad[_0xe07925(0x1de)][_0xe07925(0x20e)]),_0x580314(_0x2491c7[_0xe07925(0x241)],_0xe07925(0x25f),_0x12967c),_0x2491c7['UniverLiveSharePlugin']=_0x336e50([_0x4042ad[_0xe07925(0x176)](_0x1c5d61[_0xe07925(0x18c)]),_0x3e368d(0x1,_0x4042ad['Inject'](_0x4042ad[_0xe07925(0x1f7)])),_0x3e368d(0x2,_0x4042ad[_0xe07925(0x25c)])],_0x2491c7['UniverLiveSharePlugin']),_0x2491c7[_0xe07925(0x229)]=_0xada477,_0x2491c7['LiveShareService']=_0x349095,_0x2491c7[_0xe07925(0x227)]=_0x4ab54e,Object['defineProperty'](_0x2491c7,Symbol[_0xe07925(0x186)],{'value':_0xe07925(0x1a3)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.10.12",
3
+ "version": "0.10.13-nightly.202510290902",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -28,6 +28,16 @@
28
28
  "require": "./lib/cjs/*",
29
29
  "types": "./lib/types/index.d.ts"
30
30
  },
31
+ "./facade": {
32
+ "import": "./lib/es/facade.js",
33
+ "require": "./lib/cjs/facade.js",
34
+ "types": "./lib/types/facade/index.d.ts"
35
+ },
36
+ "./lib/facade": {
37
+ "import": "./lib/es/facade.js",
38
+ "require": "./lib/cjs/facade.js",
39
+ "types": "./lib/types/facade/index.d.ts"
40
+ },
31
41
  "./lib/*": "./lib/*"
32
42
  },
33
43
  "main": "./lib/es/index.js",
@@ -46,14 +56,15 @@
46
56
  "rxjs": ">=7.0.0"
47
57
  },
48
58
  "dependencies": {
49
- "@univerjs/icons": "^0.4.9",
50
- "@univerjs-pro/collaboration": "0.10.12",
51
- "@univerjs-pro/collaboration-client": "0.10.12",
52
- "@univerjs/core": "0.10.12",
53
- "@univerjs/sheets": "0.10.12",
54
- "@univerjs/sheets-ui": "0.10.12",
55
- "@univerjs/ui": "0.10.12",
56
- "@univerjs/design": "0.10.12"
59
+ "@univerjs/icons": "^1.0.2",
60
+ "@univerjs-pro/collaboration": "0.10.13-nightly.202510290902",
61
+ "@univerjs-pro/collaboration-client": "0.10.13-nightly.202510290902",
62
+ "@univerjs/design": "0.10.13-nightly.202510290902",
63
+ "@univerjs/engine-render": "0.10.13-nightly.202510290902",
64
+ "@univerjs/core": "0.10.13-nightly.202510290902",
65
+ "@univerjs/sheets": "0.10.13-nightly.202510290902",
66
+ "@univerjs/sheets-ui": "0.10.13-nightly.202510290902",
67
+ "@univerjs/ui": "0.10.13-nightly.202510290902"
57
68
  },
58
69
  "devDependencies": {
59
70
  "postcss": "^8.5.6",
@@ -61,10 +72,10 @@
61
72
  "rxjs": "7.8.2",
62
73
  "tailwindcss": "^3.4.17",
63
74
  "typescript": "^5.9.3",
64
- "vite": "^7.1.10",
75
+ "vite": "^7.1.12",
65
76
  "vitest": "^3.2.4",
66
- "@univerjs-infra/shared": "0.10.12",
67
- "@univerjs/protocol": "0.1.47-alpha.0"
77
+ "@univerjs-infra/shared": "0.10.13",
78
+ "@univerjs/protocol": "0.1.47"
68
79
  },
69
80
  "scripts": {
70
81
  "test": "vitest run",