@univerjs-pro/live-share 0.8.2-nightly.202506211606 → 0.8.2-nightly.202506231607

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x52d1e0=_0x338f;(function(_0x9631c,_0x1309df){var _0xa42277=_0x338f,_0x372ae2=_0x9631c();while(!![]){try{var _0x29281d=-parseInt(_0xa42277(0x136))/0x1*(-parseInt(_0xa42277(0x12e))/0x2)+-parseInt(_0xa42277(0x113))/0x3+-parseInt(_0xa42277(0xd3))/0x4*(-parseInt(_0xa42277(0x123))/0x5)+parseInt(_0xa42277(0x135))/0x6*(-parseInt(_0xa42277(0x107))/0x7)+parseInt(_0xa42277(0x64))/0x8*(-parseInt(_0xa42277(0x111))/0x9)+parseInt(_0xa42277(0x65))/0xa+-parseInt(_0xa42277(0x8b))/0xb;if(_0x29281d===_0x1309df)break;else _0x372ae2['push'](_0x372ae2['shift']());}catch(_0xc5076){_0x372ae2['push'](_0x372ae2['shift']());}}}(_0x3506,0x35ce2));var U=Object['defineProperty'],F=(_0x5d5209,_0x54a72c,_0x26d857)=>_0x54a72c in _0x5d5209?U(_0x5d5209,_0x54a72c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26d857}):_0x5d5209[_0x54a72c]=_0x26d857,v=(_0xf98af6,_0x3b3d44,_0x51f8f4)=>F(_0xf98af6,typeof _0x3b3d44!=_0x52d1e0(0x12a)?_0x3b3d44+'':_0x3b3d44,_0x51f8f4);Object['defineProperty'](exports,Symbol[_0x52d1e0(0x10b)],{'value':_0x52d1e0(0x148)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require(_0x52d1e0(0x71)),w=require('@univerjs/sheets-ui'),p=require(_0x52d1e0(0xaa)),l=require(_0x52d1e0(0x93)),g=require(_0x52d1e0(0x13c)),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require(_0x52d1e0(0x73)),b=require(_0x52d1e0(0xf4)),$=_0x52d1e0(0x10f),x={};class O extends o[_0x52d1e0(0x13a)]{constructor(){var _0x1d744d=_0x52d1e0;super(...arguments),v(this,_0x1d744d(0x6e),new Set()),v(this,_0x1d744d(0x6d),new Set());}[_0x52d1e0(0x7f)](_0x38ab2b){var _0x58d4dc=_0x52d1e0;return this[_0x58d4dc(0x6e)][_0x58d4dc(0xef)](_0x38ab2b),o[_0x58d4dc(0xca)](()=>this[_0x58d4dc(0x6e)][_0x58d4dc(0x6a)](_0x38ab2b));}[_0x52d1e0(0xfb)](_0x17e9b6){var _0x30f161=_0x52d1e0;return this['_reporters'][_0x30f161(0xef)](_0x17e9b6),o[_0x30f161(0xca)](()=>this[_0x30f161(0x6d)][_0x30f161(0x6a)](_0x17e9b6));}[_0x52d1e0(0x112)](_0x2a8e55){var _0xe3f60d=_0x52d1e0;return this['_sharedOperations'][_0xe3f60d(0xd4)](_0x2a8e55);}[_0x52d1e0(0x6b)](_0x4b1075){var _0x3ddc5b=_0x52d1e0;return Array[_0x3ddc5b(0x86)](this['_reporters'])[_0x3ddc5b(0x14a)](_0x453f3c=>_0x453f3c(_0x4b1075));}}var H=Object[_0x52d1e0(0x109)],V=(_0x5c7c9f,_0x14c742,_0x44684b,_0x2cb1ef)=>{var _0x528895=_0x52d1e0;for(var _0x5e54ba=_0x2cb1ef>0x1?void 0x0:_0x2cb1ef?H(_0x14c742,_0x44684b):_0x14c742,_0x122935=_0x5c7c9f[_0x528895(0xa0)]-0x1,_0x3ecee3;_0x122935>=0x0;_0x122935--)(_0x3ecee3=_0x5c7c9f[_0x122935])&&(_0x5e54ba=_0x3ecee3(_0x5e54ba)||_0x5e54ba);return _0x5e54ba;},k=(_0x203d9a,_0x31709d)=>(_0x228ebf,_0x11b48d)=>_0x31709d(_0x228ebf,_0x11b48d,_0x203d9a);let E=class extends o[_0x52d1e0(0x13a)]{constructor(_0x28aca0){var _0x1b701b=_0x52d1e0;super(),this[_0x1b701b(0x11b)]=_0x28aca0,this['_init']();}[_0x52d1e0(0xaf)](){var _0x200cd7=_0x52d1e0;[w[_0x200cd7(0x142)]['id'],w[_0x200cd7(0x131)]['id'],C[_0x200cd7(0x118)]['id']][_0x200cd7(0x90)](_0x65dd7e=>{var _0x125407=_0x200cd7;this['disposeWithMe'](this[_0x125407(0x11b)][_0x125407(0x7f)](_0x65dd7e));});}};E=V([k(0x0,o[_0x52d1e0(0xee)](O))],E);var u=function(){return u=Object['assign']||function(_0x119a93){var _0x4b0cb5=_0x338f;for(var _0x49ed95,_0x44cc06=0x1,_0x6080c1=arguments[_0x4b0cb5(0xa0)];_0x44cc06<_0x6080c1;_0x44cc06++){_0x49ed95=arguments[_0x44cc06];for(var _0x4fa623 in _0x49ed95)Object['prototype'][_0x4b0cb5(0x11c)][_0x4b0cb5(0xda)](_0x49ed95,_0x4fa623)&&(_0x119a93[_0x4fa623]=_0x49ed95[_0x4fa623]);}return _0x119a93;},u['apply'](this,arguments);},M=function(_0x3b7725,_0x4d3533){var _0x5cab97=_0x52d1e0,_0x2773aa={};for(var _0x262063 in _0x3b7725)Object['prototype'][_0x5cab97(0x11c)]['call'](_0x3b7725,_0x262063)&&_0x4d3533['indexOf'](_0x262063)<0x0&&(_0x2773aa[_0x262063]=_0x3b7725[_0x262063]);if(_0x3b7725!=null&&typeof Object[_0x5cab97(0xa3)]==_0x5cab97(0x6f)){for(var _0x2ae40b=0x0,_0x262063=Object[_0x5cab97(0xa3)](_0x3b7725);_0x2ae40b<_0x262063[_0x5cab97(0xa0)];_0x2ae40b++)_0x4d3533['indexOf'](_0x262063[_0x2ae40b])<0x0&&Object['prototype'][_0x5cab97(0x10d)][_0x5cab97(0xda)](_0x3b7725,_0x262063[_0x2ae40b])&&(_0x2773aa[_0x262063[_0x2ae40b]]=_0x3b7725[_0x262063[_0x2ae40b]]);}return _0x2773aa;},j=f[_0x52d1e0(0x110)](function(_0x186215,_0x515748){var _0x4b2d81=_0x52d1e0,_0x483932=_0x186215['icon'],_0x26385d=_0x186215['id'],_0x598ce8=_0x186215[_0x4b2d81(0x11a)],_0x203221=_0x186215[_0x4b2d81(0x10c)],_0x3d1f2b=M(_0x186215,['icon','id',_0x4b2d81(0x11a),'extend']),_0xd9e21d=_0x4b2d81(0x141)[_0x4b2d81(0x91)](_0x26385d,'\x20')['concat'](_0x598ce8||'')[_0x4b2d81(0xf7)](),_0x4c2c50=f[_0x4b2d81(0xb2)]('_'['concat'](G()));return y(_0x483932,''[_0x4b2d81(0x91)](_0x26385d),{'defIds':_0x483932[_0x4b2d81(0x98)],'idSuffix':_0x4c2c50['current']},u({'ref':_0x515748,'className':_0xd9e21d},_0x3d1f2b),_0x203221);});function y(_0x4583ae,_0xa5fcf6,_0x4ba177,_0x17a493,_0xe78990){var _0xef5e8e=_0x52d1e0;return f[_0xef5e8e(0x85)](_0x4583ae[_0xef5e8e(0xd5)],u(u({'key':_0xa5fcf6},q(_0x4583ae,_0x4ba177,_0xe78990)),_0x17a493),(W(_0x4583ae,_0x4ba177)[_0xef5e8e(0x12d)]||[])[_0xef5e8e(0x14a)](function(_0x16833c,_0x163bc6){var _0x1f0222=_0xef5e8e;return y(_0x16833c,''[_0x1f0222(0x91)](_0xa5fcf6,'-')['concat'](_0x4583ae[_0x1f0222(0xd5)],'-')[_0x1f0222(0x91)](_0x163bc6),_0x4ba177,void 0x0,_0xe78990);}));}function q(_0x1dbd88,_0x45a345,_0x874d51){var _0x147df9=_0x52d1e0,_0xb53857=u({},_0x1dbd88['attrs']);_0x874d51!=null&&_0x874d51[_0x147df9(0x114)]&&_0xb53857[_0x147df9(0x75)]===_0x147df9(0x114)&&(_0xb53857[_0x147df9(0x75)]=_0x874d51[_0x147df9(0x114)]),_0x1dbd88['tag']===_0x147df9(0x9c)&&_0xb53857['id']&&(_0xb53857['id']=_0xb53857['id']+_0x45a345[_0x147df9(0xfe)]),Object[_0x147df9(0x76)](_0xb53857)[_0x147df9(0x90)](function(_0x34605f){var _0x463ed5=_0x147df9,_0x448bfb=_0x34605f[0x0],_0x3b84a8=_0x34605f[0x1];_0x448bfb===_0x463ed5(0x9c)&&typeof _0x3b84a8==_0x463ed5(0x100)&&(_0xb53857[_0x448bfb]=_0x3b84a8[_0x463ed5(0xa9)](/url\(#(.*)\)/,_0x463ed5(0xe7)[_0x463ed5(0x91)](_0x45a345[_0x463ed5(0xfe)],')')));});var _0x11ef48=_0x45a345[_0x147df9(0x98)];return!_0x11ef48||_0x11ef48[_0x147df9(0xa0)]===0x0||(_0x1dbd88['tag']==='use'&&_0xb53857[_0x147df9(0x9e)]&&(_0xb53857[_0x147df9(0x9e)]=_0xb53857['xlink:href']+_0x45a345[_0x147df9(0xfe)]),Object[_0x147df9(0x76)](_0xb53857)[_0x147df9(0x90)](function(_0x3a70be){var _0x1e1b33=_0x147df9,_0x260e28=_0x3a70be[0x0],_0x3daba9=_0x3a70be[0x1];typeof _0x3daba9==_0x1e1b33(0x100)&&(_0xb53857[_0x260e28]=_0x3daba9[_0x1e1b33(0xa9)](/url\(#(.*)\)/,_0x1e1b33(0xe7)[_0x1e1b33(0x91)](_0x45a345[_0x1e1b33(0xfe)],')')));})),_0xb53857;}function W(_0x5ab62d,_0x963f3a){var _0xc0c69e=_0x52d1e0,_0x417755,_0x28d96d=_0x963f3a[_0xc0c69e(0x98)];return!_0x28d96d||_0x28d96d[_0xc0c69e(0xa0)]===0x0?_0x5ab62d:_0x5ab62d[_0xc0c69e(0xd5)]===_0xc0c69e(0x138)&&(!((_0x417755=_0x5ab62d['children'])===null||_0x417755===void 0x0)&&_0x417755[_0xc0c69e(0xa0)])?u(u({},_0x5ab62d),{'children':_0x5ab62d[_0xc0c69e(0x12d)][_0xc0c69e(0x14a)](function(_0x4d4026){var _0x205c50=_0xc0c69e;return typeof _0x4d4026[_0x205c50(0x145)]['id']==_0x205c50(0x100)&&_0x28d96d&&_0x28d96d[_0x205c50(0x108)](_0x4d4026[_0x205c50(0x145)]['id'])?u(u({},_0x4d4026),{'attrs':u(u({},_0x4d4026['attrs']),{'id':_0x4d4026['attrs']['id']+_0x963f3a[_0x205c50(0xfe)]})}):_0x4d4026;})}):_0x5ab62d;}function G(){var _0x5b9863=_0x52d1e0;return Math['random']()[_0x5b9863(0x7a)](0x24)['substring'](0x2,0x8);}j['displayName']=_0x52d1e0(0x14e);var B={'tag':'svg','attrs':{'xmlns':_0x52d1e0(0xa7),'fill':'none','viewBox':_0x52d1e0(0x12b),'width':'1em','height':_0x52d1e0(0x134)},'children':[{'tag':_0x52d1e0(0x13b),'attrs':{'fill':_0x52d1e0(0x74),'d':_0x52d1e0(0x9a)}},{'tag':_0x52d1e0(0x13b),'attrs':{'fill':_0x52d1e0(0x74),'d':_0x52d1e0(0x9d),'fillRule':'evenodd','clipRule':_0x52d1e0(0xe3)}}]},P=f[_0x52d1e0(0x110)](function(_0x4f7931,_0x32100c){var _0x5edd02=_0x52d1e0;return f['createElement'](j,Object['assign']({},_0x4f7931,{'id':_0x5edd02(0x105),'ref':_0x32100c,'icon':B}));});P[_0x52d1e0(0xb4)]=_0x52d1e0(0xd2);function _0x3506(){var _0x198a01=['UNIVER_SHEET','displayName','throttleTime','subscribe','Stop\x20presenting','DependentOn','Start\x20following','You\x27re\x20not\x20following\x20the\x20presenter','LiveShare','div','event$','DisposableCollection','OPERATION','You\x27are\x20offline.','DesktopLiveShareController','stopPresenting','_handleNewChangeSets','touchDependencies','IConfigService','pluginName','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','InsertSheetMutation','jsxs','toDisposable','SessionStatus','NOT_FOLLOWING','registerComponent','getTypeOfUnitAdded$','stringify','clear','sessionStatus$','LiveShareIcon','12XOHZZV','has','tag','LIVESHARE_TERMINATE','useDependency','_startPresenting','complete','call','_collabSessionService','BehaviorSubject','NEW_CHANGESETS','_startLiveShareCoordinator','jsx','default','Start','current','evenodd','UNIVER_UNKNOWN','_startFollowing','getValue','url(#$1','status$','button','createInstance','Button','UNIVER_LIVE_SHARE_PLUGIN','presenting','Inject','add','not-following','getUnitId','dispose$','_mountLiveShare','rxjs/operators','getConfig','HEADER_MENU','trim','type','_config','useState','registerInitialStateReporter','_stopPresenting','_handleOffline','idSuffix','Present\x20this\x20document','string','_configService','mutations','stopFollowing','FOLLOWING','live-share-icon','defineProperty','7LAxmOq','includes','getOwnPropertyDescriptor','getLiveShareCoordinator','toStringTag','extend','propertyIsEnumerable','ICommandService','live-share.config','forwardRef','513027SIVLlm','shouldShareOperation','525900TPOoEl','colorChannel1','RxDisposable','IUIPartsService','_uiPartsService','SetWorksheetActiveOperation','_entities','className','_liveShareService','hasOwnProperty','parse','CollaborationSessionService','_univerInstanceService','get','_handleNewHost','then','662000SpUCiy','SAME_OPERATION_SHARE_INTERVAL','takeUntil','You\x27re\x20presenting\x20the\x20document','set','ONLINE','onStarting','symbol','0\x200\x2017\x2017','_status$','children','89722tIupmZ','following','dispose','SetScrollOperation','values','operations','1em','184062KddYmw','9pZVolg','end','defs','override','Disposable','path','@univerjs/design','IUniverInstanceService','unitId','LiveShareController','setConfig','univerjs-icon\x20univerjs-icon-','SetZoomRatioOperation','Fragment','UniverInstanceType','attrs','IDLE','registerDependencies','Module','executeCommand','map','CommandType','_fetchOperations','CollaborationEvent','UniverIcon','_injector','24BqUImb','279360KtwybK','Stop\x20following','_status','clsx','idle','delete','getInitialStates','params','_reporters','_sharedOperations','function','sheet','@univerjs/sheets','LiveShareCoordinator','rxjs','currentColor','fill','entries','_commandService','LiveShareService','_collabSession','toString','init','reverse','_commandDisposable','LIVESHARE_FETCH_OPERATIONS','registerSharedOperation','You\x27re\x20following\x20the\x20presenter','mergeOverrideWithDependencies','univer-size-4','pipe','disposeWithMe','createElement','from','LIVESHARE_NEW_HOST','LIVESHARE_OPERATION','tryStartPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','2546643xuGTSM','_presenter','asObservable','UniverLiveSharePlugin','startFollowing','forEach','concat','offline','react/jsx-runtime','getMemberID','_stopFollowing','_handleOnline','PRESENTING','defIds','LIVESHARE_REQUEST_HOST','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','Injector','mask','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','_beIdle','length','UniverCollaborationClientPlugin','find','getOwnPropertySymbols','send','LiveShareStatus','next','http://www.w3.org/2000/svg','getTypeOfUnitDisposed$','replace','@univerjs/ui','Subject','_handleOperation','_unitID','OFFLINE','_init','unsubscribe','data','useRef'];_0x3506=function(){return _0x198a01;};return _0x3506();}var Y=Object[_0x52d1e0(0x109)],R=(_0x1262d8,_0x3c0c65,_0x380057,_0x1ce997)=>{var _0x3161fb=_0x52d1e0;for(var _0x4ab4f8=_0x1ce997>0x1?void 0x0:_0x1ce997?Y(_0x3c0c65,_0x380057):_0x3c0c65,_0x135ee6=_0x1262d8[_0x3161fb(0xa0)]-0x1,_0x2f9e84;_0x135ee6>=0x0;_0x135ee6--)(_0x2f9e84=_0x1262d8[_0x135ee6])&&(_0x4ab4f8=_0x2f9e84(_0x4ab4f8)||_0x4ab4f8);return _0x4ab4f8;},S=(_0x5e40af,_0x775a02)=>(_0x53d0e0,_0x1d2227)=>_0x775a02(_0x53d0e0,_0x1d2227,_0x5e40af);exports[_0x52d1e0(0x13f)]=class extends o[_0x52d1e0(0x115)]{constructor(_0x30818b,_0x38a474,_0x1c9607){var _0x454d60=_0x52d1e0;super(),v(this,_0x454d60(0x119),new Map()),(this[_0x454d60(0x11f)]=_0x30818b,this['_injector']=_0x38a474,this[_0x454d60(0xdb)]=_0x1c9607,this[_0x454d60(0xaf)]());}async[_0x52d1e0(0x10a)](_0x2f6f50){var _0x3db53f=_0x52d1e0;return this[_0x3db53f(0x119)][_0x3db53f(0xd4)](_0x2f6f50)||await this[_0x3db53f(0xde)](_0x2f6f50),this[_0x3db53f(0x119)][_0x3db53f(0x120)](_0x2f6f50);}[_0x52d1e0(0xaf)](){var _0x136a81=_0x52d1e0;this[_0x136a81(0x11f)][_0x136a81(0xce)](o[_0x136a81(0x144)][_0x136a81(0xb3)])[_0x136a81(0x83)](b['takeUntil'](this['dispose$']))['subscribe'](async _0xdebd18=>{var _0xdfa513=_0x136a81;const _0x20a559=_0xdebd18[_0xdfa513(0xf1)]();this[_0xdfa513(0x119)][_0xdfa513(0xd4)](_0x20a559)||this['_startLiveShareCoordinator'](_0x20a559);}),this[_0x136a81(0x11f)][_0x136a81(0xa8)](o[_0x136a81(0x144)][_0x136a81(0xb3)])[_0x136a81(0x83)](b[_0x136a81(0x125)](this[_0x136a81(0xf2)]))[_0x136a81(0xb6)](_0xbff8d3=>{var _0x3627e3=_0x136a81;const _0x3d08e3=_0xbff8d3[_0x3627e3(0xf1)](),_0x3b8257=this[_0x3627e3(0x119)]['get'](_0x3d08e3);_0x3b8257==null||_0x3b8257[_0x3627e3(0x130)]();});}async['_startLiveShareCoordinator'](_0x153dab){var _0x2738fb=_0x52d1e0;const _0x78e184=await this[_0x2738fb(0xdb)]['requireSession'](_0x153dab),_0x2eef74=this[_0x2738fb(0x14f)][_0x2738fb(0xea)](exports['LiveShareCoordinator'],_0x153dab,_0x78e184);return _0x2eef74[_0x2738fb(0x7b)](),this[_0x2738fb(0x119)][_0x2738fb(0x127)](_0x153dab,_0x2eef74),_0x2eef74;}},exports[_0x52d1e0(0x13f)]=R([S(0x0,o[_0x52d1e0(0x13d)]),S(0x1,o[_0x52d1e0(0xee)](o[_0x52d1e0(0x9b)])),S(0x2,o[_0x52d1e0(0xee)](m[_0x52d1e0(0x11e)]))],exports[_0x52d1e0(0x13f)]);var h=(_0x380b8e=>(_0x380b8e['OFFLINE']=_0x52d1e0(0x92),_0x380b8e[_0x52d1e0(0x146)]=_0x52d1e0(0x69),_0x380b8e[_0x52d1e0(0x104)]=_0x52d1e0(0x12f),_0x380b8e[_0x52d1e0(0xcc)]=_0x52d1e0(0xf0),_0x380b8e[_0x52d1e0(0x97)]='presenting',_0x380b8e))(h||{});const Z=_0x52d1e0(0x124),J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x52d1e0(0x115)]{constructor(_0x5b6915,_0x4ca56f,_0x2f61b1,_0x3962c9,_0x2aa3b){var _0x150c56=_0x52d1e0;super(),v(this,_0x150c56(0x12c),new D[(_0x150c56(0xdc))](_0x150c56(0x69))),v(this,_0x150c56(0xe8),this[_0x150c56(0x12c)][_0x150c56(0x8d)]()),v(this,_0x150c56(0xaf),!0x1),v(this,'_commandDisposable',null),v(this,_0x150c56(0x8c),null),(this['_unitID']=_0x5b6915,this['_collabSession']=_0x4ca56f,this[_0x150c56(0x101)]=_0x2f61b1,this['_liveShareService']=_0x3962c9,this[_0x150c56(0x77)]=_0x2aa3b);}get[_0x52d1e0(0x67)](){var _0x12dd47=_0x52d1e0;return this[_0x12dd47(0x12c)][_0x12dd47(0xe6)]();}[_0x52d1e0(0x130)](){var _0x47bbec=_0x52d1e0,_0x408bc4;(_0x408bc4=this[_0x47bbec(0x7d)])==null||_0x408bc4[_0x47bbec(0x130)](),this[_0x47bbec(0x12c)][_0x47bbec(0xa6)](_0x47bbec(0x69)),this['_status$'][_0x47bbec(0xd9)]();}['init'](){var _0x2a783b=_0x52d1e0;this['_init']||(this[_0x2a783b(0xaf)]=!0x0,this[_0x2a783b(0x79)][_0x2a783b(0xd1)][_0x2a783b(0x83)](b['takeUntil'](this['dispose$']))[_0x2a783b(0xb6)](_0x5e5033=>{var _0x37daed=_0x2a783b;switch(_0x5e5033){case m[_0x37daed(0xcb)]['OFFLINE']:this[_0x37daed(0xfd)]();break;case m[_0x37daed(0xcb)][_0x37daed(0x128)]:this[_0x37daed(0x96)]();break;}}),this[_0x2a783b(0x79)][_0x2a783b(0xbd)][_0x2a783b(0x83)](b[_0x2a783b(0x125)](this[_0x2a783b(0xf2)]))[_0x2a783b(0xb6)](_0x19ac3c=>{var _0x1cc9f9=_0x2a783b;const {eventID:_0x22dd0c}=_0x19ac3c;switch(_0x22dd0c){case _[_0x1cc9f9(0x14d)][_0x1cc9f9(0x87)]:this['_handleNewHost'](_0x19ac3c);break;case _[_0x1cc9f9(0x14d)][_0x1cc9f9(0x88)]:this[_0x1cc9f9(0xac)](_0x19ac3c);break;case _[_0x1cc9f9(0x14d)][_0x1cc9f9(0xd6)]:this['_handleTerminate']();break;case _[_0x1cc9f9(0x14d)][_0x1cc9f9(0xdd)]:this[_0x1cc9f9(0xc3)](_0x19ac3c);break;}}));}[_0x52d1e0(0x89)](){var _0x23ced4=_0x52d1e0;this[_0x23ced4(0x79)]['send']({'eventID':_[_0x23ced4(0x14d)][_0x23ced4(0x99)],'data':{'unitID':this['_unitID'],'userID':this[_0x23ced4(0x79)]['getMemberID']()}},this[_0x23ced4(0xad)]);}[_0x52d1e0(0xc2)](){var _0x7655de=_0x52d1e0;this['_status']==='presenting'&&(this['_status$'][_0x7655de(0xa6)](_0x7655de(0x69)),this['_collabSession'][_0x7655de(0xa4)]({'eventID':_[_0x7655de(0x14d)][_0x7655de(0xd6)],'data':{'unitID':this[_0x7655de(0xad)]}},this[_0x7655de(0xad)]));}[_0x52d1e0(0x8f)](){var _0x517732=_0x52d1e0;this[_0x517732(0x67)]===_0x517732(0xf0)&&(this[_0x517732(0x12c)]['next']('following'),this['_startFollowing']());}[_0x52d1e0(0x103)](){var _0x5135c9=_0x52d1e0;this[_0x5135c9(0x67)]==='following'&&this[_0x5135c9(0x95)]();}[_0x52d1e0(0x121)](_0x402125){var _0x4dccdd=_0x52d1e0;const {presenter:_0xb3afb}=_0x402125[_0x4dccdd(0xb1)],_0x22aa71=this[_0x4dccdd(0x79)][_0x4dccdd(0x94)]();this[_0x4dccdd(0x8c)]=_0xb3afb,_0xb3afb===_0x22aa71?(this[_0x4dccdd(0x95)](),this[_0x4dccdd(0xd8)]()):this[_0x4dccdd(0x67)]!==_0x4dccdd(0xf0)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x52d1e0(0x14c)](){var _0x236fd3=_0x52d1e0;const _0x4fb5f1={'eventID':_[_0x236fd3(0x14d)][_0x236fd3(0x7e)]};this[_0x236fd3(0x79)][_0x236fd3(0xa4)](_0x4fb5f1,this[_0x236fd3(0xad)]);}['_handleTerminate'](){var _0x5b2b61=_0x52d1e0;this['_presenter']=null,this[_0x5b2b61(0x67)]!==_0x5b2b61(0xed)&&this[_0x5b2b61(0x9f)]();}['_handleNewChangeSets'](_0x3e37ae){var _0x26e79c=_0x52d1e0;if(this['_status']===_0x26e79c(0x12f)&&this[_0x26e79c(0x8c)]===_0x3e37ae['data']['memberID']){const _0x4aefea=_['parseProtocolChangeset'](_0x3e37ae[_0x26e79c(0xb1)])[_0x26e79c(0x102)][_0x26e79c(0x7c)]()[_0x26e79c(0xa2)](_0x4a2bbc=>_0x4a2bbc['id']===C[_0x26e79c(0xc8)]['id']);if(_0x4aefea){const _0x3f2de3=_0x4aefea[_0x26e79c(0x6c)][_0x26e79c(0x13e)],_0x38ea46=_0x4aefea[_0x26e79c(0x6c)][_0x26e79c(0x70)]['id'];setTimeout(()=>{var _0xdd776d=_0x26e79c;this[_0xdd776d(0x77)]['executeCommand'](C[_0xdd776d(0x118)]['id'],{'unitId':_0x3f2de3,'subUnitId':_0x38ea46},{'fromCollab':!0x0});});}}}[_0x52d1e0(0xd8)](){var _0x46e01c=_0x52d1e0;this['_status$']['next'](_0x46e01c(0xed));const _0x54237b=new Map(),_0x273707=this[_0x46e01c(0x7d)]=new o[(_0x46e01c(0xbe))]();_0x273707[_0x46e01c(0xef)](o[_0x46e01c(0xca)](()=>{var _0x58d832=_0x46e01c;_0x54237b[_0x58d832(0x90)](_0x51d956=>_0x51d956[_0x58d832(0xd9)]()),_0x54237b[_0x58d832(0xd0)]();})),_0x273707[_0x46e01c(0xef)](this[_0x46e01c(0x77)]['onCommandExecuted'](_0xd89c8d=>{var _0x31777b=_0x46e01c,_0x4bf640;if(_0xd89c8d[_0x31777b(0xf8)]!==o[_0x31777b(0x14b)][_0x31777b(0xbf)]||!this[_0x31777b(0x11b)][_0x31777b(0x112)](_0xd89c8d['id']))return;const {id:_0x3c4956}=_0xd89c8d;let _0x2c6d90;_0x54237b['has'](_0x3c4956)?_0x2c6d90=_0x54237b[_0x31777b(0x120)](_0x3c4956):(_0x2c6d90=new D[(_0x31777b(0xab))](),_0x54237b[_0x31777b(0x127)](_0x3c4956,_0x2c6d90),_0x2c6d90[_0x31777b(0x83)](b[_0x31777b(0xb5)]((_0x4bf640=this['_configService'][_0x31777b(0xf5)](Z))!=null?_0x4bf640:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x31777b(0xb6)](_0x257f97=>{var _0xba068d=_0x31777b;this[_0xba068d(0x79)][_0xba068d(0xa4)]({'eventID':_[_0xba068d(0x14d)][_0xba068d(0x88)],'data':{'unitID':this[_0xba068d(0xad)],'operations':{[_0x257f97['id']]:{'id':_0x257f97['id'],'params':JSON[_0xba068d(0xcf)](_0x257f97[_0xba068d(0x6c)])}}}},this[_0xba068d(0xad)]);})),_0x2c6d90[_0x31777b(0xa6)](_0xd89c8d);})),this[_0x46e01c(0x11b)][_0x46e01c(0x6b)](this[_0x46e01c(0xad)])[_0x46e01c(0x90)](_0x147b33=>this[_0x46e01c(0x79)][_0x46e01c(0xa4)]({'eventID':_[_0x46e01c(0x14d)][_0x46e01c(0x88)],'data':{'unitID':this[_0x46e01c(0xad)],'operations':{[_0x147b33['id']]:{'id':_0x147b33['id'],'params':JSON['stringify'](_0x147b33[_0x46e01c(0x6c)])}}}},this[_0x46e01c(0xad)]));}[_0x52d1e0(0xfc)](){var _0x54bb7a=_0x52d1e0,_0x1a54f4;this[_0x54bb7a(0x12c)][_0x54bb7a(0xa6)](_0x54bb7a(0x69)),(_0x1a54f4=this[_0x54bb7a(0x7d)])==null||_0x1a54f4[_0x54bb7a(0x130)](),this[_0x54bb7a(0x7d)]=null;}[_0x52d1e0(0xe5)](){var _0xb99875=_0x52d1e0,_0x13a91a;(_0x13a91a=this[_0xb99875(0x7d)])==null||_0x13a91a[_0xb99875(0x130)](),this[_0xb99875(0x12c)]['next'](_0xb99875(0x12f));}['_beIdle'](){var _0x48abfa=_0x52d1e0,_0x5b4ae9;this[_0x48abfa(0x12c)][_0x48abfa(0xa6)](_0x48abfa(0x69)),(_0x5b4ae9=this[_0x48abfa(0x7d)])==null||_0x5b4ae9['dispose'](),this[_0x48abfa(0x7d)]=null;}[_0x52d1e0(0x95)](){var _0x17bc09=_0x52d1e0,_0x1a20da;this[_0x17bc09(0x12c)][_0x17bc09(0xa6)]('not-following'),(_0x1a20da=this['_commandDisposable'])==null||_0x1a20da[_0x17bc09(0x130)]();}[_0x52d1e0(0xac)](_0x3e1d9c){var _0x11c76b=_0x52d1e0;if([_0x11c76b(0xed),'not-following',_0x11c76b(0x92)][_0x11c76b(0x108)](this['_status'])||!_0x3e1d9c[_0x11c76b(0xb1)]['presenter']||_0x3e1d9c[_0x11c76b(0xb1)]['presenter']===this['_collabSession'][_0x11c76b(0x94)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0xc0fcda=_0x3e1d9c[_0x11c76b(0xb1)][_0x11c76b(0x133)];Object[_0x11c76b(0x132)](_0xc0fcda)['forEach'](_0x16061e=>{var _0x10aa54=_0x11c76b;this[_0x10aa54(0x77)][_0x10aa54(0x149)](_0x16061e['id'],_0x16061e['params']?JSON[_0x10aa54(0x11d)](_0x16061e['params']):null,{'fromCollab':!0x0});});}[_0x52d1e0(0xfd)](){var _0x577f11=_0x52d1e0,_0x281c86;this['_status$'][_0x577f11(0xa6)](_0x577f11(0x92)),(_0x281c86=this[_0x577f11(0x7d)])==null||_0x281c86['dispose']();}[_0x52d1e0(0x96)](){var _0x5d9217=_0x52d1e0;this['_status$'][_0x5d9217(0xa6)]('idle'),this[_0x5d9217(0x14c)]();}},exports[_0x52d1e0(0x72)]=R([S(0x2,o[_0x52d1e0(0xc5)]),S(0x3,o[_0x52d1e0(0xee)](O)),S(0x4,o[_0x52d1e0(0x10e)])],exports[_0x52d1e0(0x72)]);function A(){var _0xf4c4c7=_0x52d1e0;const _0x34aac1=p[_0xf4c4c7(0xd7)](exports[_0xf4c4c7(0x13f)]),_0x3a4c82=p[_0xf4c4c7(0xd7)](o[_0xf4c4c7(0x13d)]),_0x2e9274=p['useObservable'](()=>_0x3a4c82['getCurrentTypeOfUnit$'](o[_0xf4c4c7(0x144)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5f47de,_0x4be34d]=f['useState'](null),[_0x2b2cc6,_0x4b0223]=f[_0xf4c4c7(0xfa)](h[_0xf4c4c7(0x146)]),_0x23a43b=f[_0xf4c4c7(0xb2)](null);return f['useEffect'](()=>(_0x2e9274&&_0x34aac1[_0xf4c4c7(0x10a)](_0x2e9274['getUnitId']())[_0xf4c4c7(0x122)](_0x327938=>{var _0x34c881=_0xf4c4c7;_0x4be34d(_0x327938),_0x23a43b[_0x34c881(0xe2)]=_0x327938[_0x34c881(0xe8)]['subscribe'](_0x16ad69=>{_0x4b0223(_0x16ad69);});}),()=>{var _0x23f0de=_0xf4c4c7,_0x3373f2;(_0x3373f2=_0x23a43b[_0x23f0de(0xe2)])==null||_0x3373f2[_0x23f0de(0xb0)](),_0x23a43b['current']=null;}),[_0x2e9274,_0x34aac1]),_0x5f47de?l[_0xf4c4c7(0xdf)](g['Dropdown'],{'align':_0xf4c4c7(0x137),'disabled':_0x2b2cc6===h['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l['jsx'](K,{'status':_0x2b2cc6,'coordinator':_0x5f47de}),'children':l[_0xf4c4c7(0xdf)](_0xf4c4c7(0xe9),{'className':g[_0xf4c4c7(0x68)](_0xf4c4c7(0xc7),{'univer-cursor-not-allowed':_0x2b2cc6===h[_0xf4c4c7(0xae)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2b2cc6!==h[_0xf4c4c7(0xae)]}),'type':_0xf4c4c7(0xe9),'children':l[_0xf4c4c7(0xdf)](P,{'className':_0xf4c4c7(0x82)})})}):null;}function K(_0x20cf8a){var _0x3aae82=_0x52d1e0;const {status:_0x3fb785,coordinator:_0x4e0112}=_0x20cf8a;switch(_0x3fb785){case h['IDLE']:return l[_0x3aae82(0xdf)](z,{'coordinator':_0x4e0112});case h[_0x3aae82(0x104)]:return l[_0x3aae82(0xdf)](Q,{'coordinator':_0x4e0112});case h[_0x3aae82(0xcc)]:return l[_0x3aae82(0xdf)](X,{'coordinator':_0x4e0112});case h[_0x3aae82(0xae)]:return l[_0x3aae82(0xdf)](te,{});case h[_0x3aae82(0x97)]:return l[_0x3aae82(0xdf)](ee,{'coordinator':_0x4e0112});default:return null;}}function z(_0x2ed66a){var _0x4e4616=_0x52d1e0;const {coordinator:_0x1f3249}=_0x2ed66a;return l[_0x4e4616(0xc9)](l[_0x4e4616(0x143)],{'children':[l[_0x4e4616(0xdf)](_0x4e4616(0xbc),{'className':_0x4e4616(0x8a),'children':_0x4e4616(0xff)}),l[_0x4e4616(0xdf)](g['Button'],{'onClick':()=>_0x1f3249[_0x4e4616(0x89)](),'children':_0x4e4616(0xe1)})]});}function Q(_0x41b523){var _0x5160a1=_0x52d1e0;const {coordinator:_0x2c7aa2}=_0x41b523;return l['jsxs'](l[_0x5160a1(0x143)],{'children':[l[_0x5160a1(0xdf)](_0x5160a1(0xbc),{'className':_0x5160a1(0x8a),'children':_0x5160a1(0x80)}),l['jsx'](g[_0x5160a1(0xeb)],{'onClick':()=>_0x2c7aa2[_0x5160a1(0x103)](),'children':_0x5160a1(0x66)})]});}function X(_0x1d4305){var _0x55a619=_0x52d1e0;const {coordinator:_0x5728e9}=_0x1d4305;return l[_0x55a619(0xc9)](l[_0x55a619(0x143)],{'children':[l[_0x55a619(0xdf)](_0x55a619(0xbc),{'className':_0x55a619(0x8a),'children':_0x55a619(0xba)}),l[_0x55a619(0xdf)](g[_0x55a619(0xeb)],{'variant':'text','onClick':()=>_0x5728e9['startFollowing'](),'children':_0x55a619(0xb9)})]});}function ee(_0x5c5d13){var _0x1e0adc=_0x52d1e0;const {coordinator:_0x216c1e}=_0x5c5d13;return l[_0x1e0adc(0xc9)](l[_0x1e0adc(0x143)],{'children':[l[_0x1e0adc(0xdf)]('div',{'className':_0x1e0adc(0x8a),'children':_0x1e0adc(0x126)}),l[_0x1e0adc(0xdf)](g[_0x1e0adc(0xeb)],{'variant':_0x1e0adc(0xe0),'onClick':()=>_0x216c1e[_0x1e0adc(0xc2)](),'children':_0x1e0adc(0xb7)})]});}function te(){var _0x2eb6c2=_0x52d1e0;return l[_0x2eb6c2(0xdf)](l[_0x2eb6c2(0x143)],{'children':_0x2eb6c2(0xc0)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x3202e7,_0x34f64e,_0xda3c76,_0x24584e)=>{var _0xb032c0=_0x52d1e0;for(var _0x781cc0=_0x24584e>0x1?void 0x0:_0x24584e?ie(_0x34f64e,_0xda3c76):_0x34f64e,_0x5e2b24=_0x3202e7[_0xb032c0(0xa0)]-0x1,_0x13d291;_0x5e2b24>=0x0;_0x5e2b24--)(_0x13d291=_0x3202e7[_0x5e2b24])&&(_0x781cc0=_0x13d291(_0x781cc0)||_0x781cc0);return _0x781cc0;},L=(_0xa0704c,_0x410e95)=>(_0x511956,_0x3f63b4)=>_0x410e95(_0x511956,_0x3f63b4,_0xa0704c);exports[_0x52d1e0(0xc1)]=class extends o['Disposable']{constructor(_0x3669f7,_0x552a35){var _0x5692b3=_0x52d1e0;super(),this[_0x5692b3(0x14f)]=_0x3669f7,this[_0x5692b3(0x117)]=_0x552a35,this[_0x5692b3(0xf3)]();}[_0x52d1e0(0xf3)](){var _0x3b39f4=_0x52d1e0;this[_0x3b39f4(0x84)](this[_0x3b39f4(0x117)][_0x3b39f4(0xcd)](p['BuiltInUIPart'][_0x3b39f4(0xf6)],()=>p['connectInjector'](A,this[_0x3b39f4(0x14f)])));}},exports[_0x52d1e0(0xc1)]=ne([L(0x0,o[_0x52d1e0(0xee)](o[_0x52d1e0(0x9b)])),L(0x1,p[_0x52d1e0(0x116)])],exports[_0x52d1e0(0xc1)]);var re=Object[_0x52d1e0(0x106)],se=Object['getOwnPropertyDescriptor'],oe=(_0x364a84,_0xd1afde,_0x1e62d3)=>_0xd1afde in _0x364a84?re(_0x364a84,_0xd1afde,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e62d3}):_0x364a84[_0xd1afde]=_0x1e62d3,ae=(_0x4fed71,_0x495dd4,_0x1e607f,_0x1c3fd5)=>{for(var _0x56850c=_0x1c3fd5>0x1?void 0x0:_0x1c3fd5?se(_0x495dd4,_0x1e607f):_0x495dd4,_0x54b663=_0x4fed71['length']-0x1,_0xb34514;_0x54b663>=0x0;_0x54b663--)(_0xb34514=_0x4fed71[_0x54b663])&&(_0x56850c=_0xb34514(_0x56850c)||_0x56850c);return _0x56850c;},N=(_0x2daf22,_0x4c3f49)=>(_0x1505bd,_0x5559d9)=>_0x4c3f49(_0x1505bd,_0x5559d9,_0x2daf22),T=(_0x1e5031,_0xc4a666,_0x16bebb)=>oe(_0x1e5031,typeof _0xc4a666!='symbol'?_0xc4a666+'':_0xc4a666,_0x16bebb);function _0x338f(_0x222bda,_0x11debb){var _0x35062d=_0x3506();return _0x338f=function(_0x338fc1,_0xff173e){_0x338fc1=_0x338fc1-0x64;var _0x3e09e7=_0x35062d[_0x338fc1];return _0x3e09e7;},_0x338f(_0x222bda,_0x11debb);}const le=_0x52d1e0(0xec);exports[_0x52d1e0(0x8e)]=class extends o['Plugin']{constructor(_0x16a0bc=x,_0x1ba263,_0x1c0e5a){var _0xc1b76d=_0x52d1e0;super(),this['_config']=_0x16a0bc,this[_0xc1b76d(0x14f)]=_0x1ba263,this[_0xc1b76d(0x101)]=_0x1c0e5a;const {..._0x59e7ef}=o['merge']({},x,this[_0xc1b76d(0xf9)]);this['_configService'][_0xc1b76d(0x140)]($,_0x59e7ef);}[_0x52d1e0(0x129)](){var _0x428103=_0x52d1e0;o[_0x428103(0x147)](this[_0x428103(0x14f)],o[_0x428103(0x81)]([[O],[exports[_0x428103(0x13f)]],[E],[exports['DesktopLiveShareController']]],this['_config'][_0x428103(0x139)])),o[_0x428103(0xc4)](this['_injector'],[[E]]);}['onRendered'](){var _0x216e46=_0x52d1e0;o[_0x216e46(0xc4)](this[_0x216e46(0x14f)],[[exports[_0x216e46(0xc1)]]]);}},T(exports[_0x52d1e0(0x8e)],'type',o['UniverInstanceType'][_0x52d1e0(0xe4)]),T(exports[_0x52d1e0(0x8e)],_0x52d1e0(0xc6),le),exports['UniverLiveSharePlugin']=ae([o[_0x52d1e0(0xb8)](m[_0x52d1e0(0xa1)]),N(0x1,o[_0x52d1e0(0xee)](o[_0x52d1e0(0x9b)])),N(0x2,o[_0x52d1e0(0xc5)])],exports[_0x52d1e0(0x8e)]),exports[_0x52d1e0(0xbb)]=A,exports[_0x52d1e0(0x78)]=O,exports[_0x52d1e0(0xa5)]=h;
1
+ 'use strict';var _0x51a47a=_0x841f;(function(_0x1284ca,_0x17faa2){var _0x53f532=_0x841f,_0x5f2f30=_0x1284ca();while(!![]){try{var _0x59f7a3=-parseInt(_0x53f532(0x192))/0x1*(-parseInt(_0x53f532(0x1c2))/0x2)+-parseInt(_0x53f532(0x1d2))/0x3*(parseInt(_0x53f532(0x1a0))/0x4)+-parseInt(_0x53f532(0x162))/0x5*(-parseInt(_0x53f532(0x229))/0x6)+-parseInt(_0x53f532(0x1d3))/0x7*(parseInt(_0x53f532(0x1e4))/0x8)+parseInt(_0x53f532(0x1aa))/0x9*(-parseInt(_0x53f532(0x21a))/0xa)+parseInt(_0x53f532(0x1c4))/0xb+-parseInt(_0x53f532(0x1b7))/0xc;if(_0x59f7a3===_0x17faa2)break;else _0x5f2f30['push'](_0x5f2f30['shift']());}catch(_0x820e48){_0x5f2f30['push'](_0x5f2f30['shift']());}}}(_0x298b,0x29ae3));var U=Object[_0x51a47a(0x1c1)],F=(_0x181862,_0x3c3c9b,_0x12cf13)=>_0x3c3c9b in _0x181862?U(_0x181862,_0x3c3c9b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12cf13}):_0x181862[_0x3c3c9b]=_0x12cf13,v=(_0x2d1673,_0x5c6d2d,_0x399081)=>F(_0x2d1673,typeof _0x5c6d2d!=_0x51a47a(0x180)?_0x5c6d2d+'':_0x5c6d2d,_0x399081);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x51a47a(0x218)});const m=require('@univerjs-pro/collaboration-client'),o=require(_0x51a47a(0x172)),C=require(_0x51a47a(0x19d)),w=require(_0x51a47a(0x20a)),p=require('@univerjs/ui'),l=require(_0x51a47a(0x1e0)),g=require(_0x51a47a(0x216)),f=require('react'),_=require(_0x51a47a(0x1ad)),D=require(_0x51a47a(0x206)),b=require(_0x51a47a(0x170)),$=_0x51a47a(0x1db),x={};class O extends o[_0x51a47a(0x1d8)]{constructor(){var _0x1dc3ff=_0x51a47a;super(...arguments),v(this,_0x1dc3ff(0x1ec),new Set()),v(this,_0x1dc3ff(0x23f),new Set());}[_0x51a47a(0x214)](_0xc1ab3b){var _0x49dc52=_0x51a47a;return this['_sharedOperations'][_0x49dc52(0x247)](_0xc1ab3b),o[_0x49dc52(0x196)](()=>this[_0x49dc52(0x1ec)][_0x49dc52(0x1e1)](_0xc1ab3b));}[_0x51a47a(0x159)](_0x334ee6){var _0xdae835=_0x51a47a;return this[_0xdae835(0x23f)][_0xdae835(0x247)](_0x334ee6),o[_0xdae835(0x196)](()=>this['_reporters'][_0xdae835(0x1e1)](_0x334ee6));}[_0x51a47a(0x1e2)](_0xca6f26){var _0x23e91f=_0x51a47a;return this[_0x23e91f(0x1ec)][_0x23e91f(0x19b)](_0xca6f26);}[_0x51a47a(0x217)](_0x5e1311){var _0x59f08a=_0x51a47a;return Array[_0x59f08a(0x22b)](this[_0x59f08a(0x23f)])[_0x59f08a(0x224)](_0x55810c=>_0x55810c(_0x5e1311));}}var H=Object[_0x51a47a(0x1fb)],V=(_0x40cc62,_0x490263,_0x237052,_0x2fbd79)=>{for(var _0x2a81cf=_0x2fbd79>0x1?void 0x0:_0x2fbd79?H(_0x490263,_0x237052):_0x490263,_0x5ee003=_0x40cc62['length']-0x1,_0x379de2;_0x5ee003>=0x0;_0x5ee003--)(_0x379de2=_0x40cc62[_0x5ee003])&&(_0x2a81cf=_0x379de2(_0x2a81cf)||_0x2a81cf);return _0x2a81cf;},k=(_0xed2021,_0x5d0a78)=>(_0x24ad30,_0xccc2fa)=>_0x5d0a78(_0x24ad30,_0xccc2fa,_0xed2021);let E=class extends o[_0x51a47a(0x1d8)]{constructor(_0x299ee2){var _0x3e17b3=_0x51a47a;super(),this[_0x3e17b3(0x17c)]=_0x299ee2,this[_0x3e17b3(0x1c9)]();}[_0x51a47a(0x1c9)](){var _0x2efea1=_0x51a47a;[w[_0x2efea1(0x18b)]['id'],w[_0x2efea1(0x187)]['id'],C[_0x2efea1(0x1a7)]['id']]['forEach'](_0x446f63=>{var _0x14f00c=_0x2efea1;this[_0x14f00c(0x1cf)](this[_0x14f00c(0x17c)]['registerSharedOperation'](_0x446f63));});}};E=V([k(0x0,o[_0x51a47a(0x1ac)](O))],E);var u=function(){var _0x55f458=_0x51a47a;return u=Object[_0x55f458(0x248)]||function(_0x2a5e7f){var _0x153e8d=_0x55f458;for(var _0x3367ff,_0x54942e=0x1,_0x2b2e24=arguments['length'];_0x54942e<_0x2b2e24;_0x54942e++){_0x3367ff=arguments[_0x54942e];for(var _0x34defa in _0x3367ff)Object[_0x153e8d(0x15c)][_0x153e8d(0x1f1)][_0x153e8d(0x1b2)](_0x3367ff,_0x34defa)&&(_0x2a5e7f[_0x34defa]=_0x3367ff[_0x34defa]);}return _0x2a5e7f;},u[_0x55f458(0x1c7)](this,arguments);},M=function(_0x1ca420,_0x462c23){var _0x5d6cf6=_0x51a47a,_0x4cb2ce={};for(var _0x4e4c46 in _0x1ca420)Object[_0x5d6cf6(0x15c)][_0x5d6cf6(0x1f1)][_0x5d6cf6(0x1b2)](_0x1ca420,_0x4e4c46)&&_0x462c23['indexOf'](_0x4e4c46)<0x0&&(_0x4cb2ce[_0x4e4c46]=_0x1ca420[_0x4e4c46]);if(_0x1ca420!=null&&typeof Object[_0x5d6cf6(0x18a)]==_0x5d6cf6(0x188)){for(var _0x1f6478=0x0,_0x4e4c46=Object[_0x5d6cf6(0x18a)](_0x1ca420);_0x1f6478<_0x4e4c46['length'];_0x1f6478++)_0x462c23[_0x5d6cf6(0x238)](_0x4e4c46[_0x1f6478])<0x0&&Object[_0x5d6cf6(0x15c)]['propertyIsEnumerable'][_0x5d6cf6(0x1b2)](_0x1ca420,_0x4e4c46[_0x1f6478])&&(_0x4cb2ce[_0x4e4c46[_0x1f6478]]=_0x1ca420[_0x4e4c46[_0x1f6478]]);}return _0x4cb2ce;},j=f[_0x51a47a(0x1f7)](function(_0x209fbf,_0x51cc1b){var _0xedafed=_0x51a47a,_0x27d82c=_0x209fbf['icon'],_0x3a2342=_0x209fbf['id'],_0x867193=_0x209fbf[_0xedafed(0x21f)],_0x24f2c1=_0x209fbf[_0xedafed(0x1b0)],_0x942c17=M(_0x209fbf,[_0xedafed(0x23c),'id',_0xedafed(0x21f),_0xedafed(0x1b0)]),_0x2e0118=_0xedafed(0x176)[_0xedafed(0x1e3)](_0x3a2342,'\x20')[_0xedafed(0x1e3)](_0x867193||'')[_0xedafed(0x209)](),_0x3795c2=f[_0xedafed(0x1f2)]('_'[_0xedafed(0x1e3)](G()));return y(_0x27d82c,''[_0xedafed(0x1e3)](_0x3a2342),{'defIds':_0x27d82c[_0xedafed(0x194)],'idSuffix':_0x3795c2['current']},u({'ref':_0x51cc1b,'className':_0x2e0118},_0x942c17),_0x24f2c1);});function _0x298b(){var _0x2b5b27=['registerInitialStateReporter','_handleNewHost','LiveShareService','prototype','OFFLINE','Start\x20following','takeUntil','UNIVER_UNKNOWN','xlink:href','496385FOTlpj','reverse','IDLE','LiveShareIcon','operations','_handleTerminate','use','presenter','_beIdle','connectInjector','button','merge','forEach','default','rxjs/operators','_univerInstanceService','@univerjs/core','svg','LiveShareCoordinator','touchDependencies','univerjs-icon\x20univerjs-icon-','startFollowing','idle','onCommandExecuted','Button','_startPresenting','_liveShareService','_stopFollowing','_fetchOperations','PRESENTING','symbol','You\x27re\x20not\x20following\x20the\x20presenter','unitId','LiveShare','throttleTime','substring','get','SetScrollOperation','function','subscribe','getOwnPropertySymbols','SetZoomRatioOperation','sheet','_mountLiveShare','_stopPresenting','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','DisposableCollection','LIVESHARE_NEW_HOST','2tZutuj','asObservable','defIds','presenting','toDisposable','You\x27are\x20offline.','NOT_FOLLOWING','_commandService','LIVESHARE_TERMINATE','has','UniverInstanceType','@univerjs/sheets','getTypeOfUnitAdded$','current','8FBzRQb','_config','Injector','InsertSheetMutation','getTypeOfUnitDisposed$','fill','getCurrentTypeOfUnit$','SetWorksheetActiveOperation','RxDisposable','Plugin','936rUBoyV','_collabSession','Inject','@univerjs-pro/collaboration','text','_handleOffline','extend','type','call','params','CommandType','stopPresenting','next','457812EKhJRn','toString','find','UNIVER_SHEET','useEffect','DesktopLiveShareController','LIVESHARE_REQUEST_HOST','data','following','_commandDisposable','defineProperty','311222fMZGfB','Start','827024QUSgNn','UniverLiveSharePlugin','IConfigService','apply','_status','_init','_handleOnline','includes','jsx','end','mutations','disposeWithMe','BuiltInUIPart','event$','304656PwJnBN','400911zXXhRQ','then','_handleNewChangeSets','DependentOn','Stop\x20following','Disposable','useDependency','tryStartPresenting','live-share.config','stringify','length','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinator','react/jsx-runtime','delete','shouldShareOperation','concat','8cvPCOk','defs','mergeOverrideWithDependencies','FOLLOWING','evenodd','UNIVER_LIVE_SHARE_PLUGIN','clsx','dispose$','_sharedOperations','currentColor','_entities','Fragment','getMemberID','hasOwnProperty','useRef','pipe','univer-size-4','_configService','You\x27re\x20following\x20the\x20presenter','forwardRef','ONLINE','init','_status$','getOwnPropertyDescriptor','status$','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','_presenter','_collabSessionService','offline','pluginName','jsxs','live-share-icon','SessionStatus','LIVESHARE_OPERATION','rxjs','dispose','_startFollowing','trim','@univerjs/sheets-ui','OPERATION','clear','Dropdown','HEADER_MENU','not-following','idSuffix','override','IUIPartsService','set','registerSharedOperation','children','@univerjs/design','getInitialStates','Module','_injector','1580LLzmia','UniverCollaborationClientPlugin','div','executeCommand','string','className','colorChannel1','useObservable','1em','mask','map','IUniverInstanceService','useState','getUnitId','Present\x20this\x20document','6QgsErD','path','from','url(#$1','createElement','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','ICommandService','LiveShareController','Subject','http://www.w3.org/2000/svg','getValue','getConfig','attrs','_uiPartsService','entries','indexOf','LiveShareStatus','univer-mb-3\x20univer-w-full\x20univer-text-sm','requireSession','icon','tag','memberID','_reporters','send','BehaviorSubject','_unitID','values','CollaborationEvent','registerComponent','random','add','assign','_handleOperation','stopFollowing','_startLiveShareCoordinator','setConfig'];_0x298b=function(){return _0x2b5b27;};return _0x298b();}function y(_0x251628,_0x508f95,_0x3a2c1a,_0xa9b65b,_0xa42d5b){var _0xc48658=_0x51a47a;return f['createElement'](_0x251628['tag'],u(u({'key':_0x508f95},q(_0x251628,_0x3a2c1a,_0xa42d5b)),_0xa9b65b),(W(_0x251628,_0x3a2c1a)[_0xc48658(0x215)]||[])['map'](function(_0x2d0f10,_0x578004){var _0x4cb28e=_0xc48658;return y(_0x2d0f10,''[_0x4cb28e(0x1e3)](_0x508f95,'-')[_0x4cb28e(0x1e3)](_0x251628[_0x4cb28e(0x23d)],'-')[_0x4cb28e(0x1e3)](_0x578004),_0x3a2c1a,void 0x0,_0xa42d5b);}));}function q(_0x3eadd9,_0x19ab71,_0x50c60b){var _0x1ce92a=_0x51a47a,_0x3d1d34=u({},_0x3eadd9[_0x1ce92a(0x235)]);_0x50c60b!=null&&_0x50c60b[_0x1ce92a(0x220)]&&_0x3d1d34['fill']===_0x1ce92a(0x220)&&(_0x3d1d34[_0x1ce92a(0x1a5)]=_0x50c60b[_0x1ce92a(0x220)]),_0x3eadd9[_0x1ce92a(0x23d)]===_0x1ce92a(0x223)&&_0x3d1d34['id']&&(_0x3d1d34['id']=_0x3d1d34['id']+_0x19ab71[_0x1ce92a(0x210)]),Object['entries'](_0x3d1d34)['forEach'](function(_0x29f5a4){var _0x442acf=_0x1ce92a,_0x397f66=_0x29f5a4[0x0],_0x5081b2=_0x29f5a4[0x1];_0x397f66===_0x442acf(0x223)&&typeof _0x5081b2==_0x442acf(0x21e)&&(_0x3d1d34[_0x397f66]=_0x5081b2['replace'](/url\(#(.*)\)/,_0x442acf(0x22c)[_0x442acf(0x1e3)](_0x19ab71['idSuffix'],')')));});var _0x1f3200=_0x19ab71[_0x1ce92a(0x194)];return!_0x1f3200||_0x1f3200[_0x1ce92a(0x1dd)]===0x0||(_0x3eadd9[_0x1ce92a(0x23d)]===_0x1ce92a(0x168)&&_0x3d1d34['xlink:href']&&(_0x3d1d34[_0x1ce92a(0x161)]=_0x3d1d34[_0x1ce92a(0x161)]+_0x19ab71[_0x1ce92a(0x210)]),Object[_0x1ce92a(0x237)](_0x3d1d34)['forEach'](function(_0x4645a6){var _0x34eb9c=_0x1ce92a,_0x238ac9=_0x4645a6[0x0],_0x55335d=_0x4645a6[0x1];typeof _0x55335d==_0x34eb9c(0x21e)&&(_0x3d1d34[_0x238ac9]=_0x55335d['replace'](/url\(#(.*)\)/,_0x34eb9c(0x22c)[_0x34eb9c(0x1e3)](_0x19ab71[_0x34eb9c(0x210)],')')));})),_0x3d1d34;}function W(_0x245e85,_0x168185){var _0x5f1376=_0x51a47a,_0x1ae924,_0x225bfa=_0x168185['defIds'];return!_0x225bfa||_0x225bfa[_0x5f1376(0x1dd)]===0x0?_0x245e85:_0x245e85['tag']===_0x5f1376(0x1e5)&&(!((_0x1ae924=_0x245e85[_0x5f1376(0x215)])===null||_0x1ae924===void 0x0)&&_0x1ae924[_0x5f1376(0x1dd)])?u(u({},_0x245e85),{'children':_0x245e85[_0x5f1376(0x215)]['map'](function(_0x1a7c22){var _0xe8e6ac=_0x5f1376;return typeof _0x1a7c22[_0xe8e6ac(0x235)]['id']=='string'&&_0x225bfa&&_0x225bfa[_0xe8e6ac(0x1cb)](_0x1a7c22[_0xe8e6ac(0x235)]['id'])?u(u({},_0x1a7c22),{'attrs':u(u({},_0x1a7c22['attrs']),{'id':_0x1a7c22[_0xe8e6ac(0x235)]['id']+_0x168185[_0xe8e6ac(0x210)]})}):_0x1a7c22;})}):_0x245e85;}function G(){var _0x266500=_0x51a47a;return Math[_0x266500(0x246)]()[_0x266500(0x1b8)](0x24)[_0x266500(0x185)](0x2,0x8);}j['displayName']='UniverIcon';var B={'tag':_0x51a47a(0x173),'attrs':{'xmlns':_0x51a47a(0x232),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x51a47a(0x222)},'children':[{'tag':_0x51a47a(0x22a),'attrs':{'fill':_0x51a47a(0x1ed),'d':_0x51a47a(0x18f)}},{'tag':_0x51a47a(0x22a),'attrs':{'fill':_0x51a47a(0x1ed),'d':_0x51a47a(0x1fd),'fillRule':_0x51a47a(0x1e8),'clipRule':_0x51a47a(0x1e8)}}]},P=f[_0x51a47a(0x1f7)](function(_0x52d44f,_0x145ab5){var _0xf3dd08=_0x51a47a;return f[_0xf3dd08(0x22d)](j,Object[_0xf3dd08(0x248)]({},_0x52d44f,{'id':_0xf3dd08(0x203),'ref':_0x145ab5,'icon':B}));});function _0x841f(_0x162d6d,_0x3ab7c6){var _0x298b27=_0x298b();return _0x841f=function(_0x841f3b,_0x3ad24c){_0x841f3b=_0x841f3b-0x156;var _0x278a3b=_0x298b27[_0x841f3b];return _0x278a3b;},_0x841f(_0x162d6d,_0x3ab7c6);}P['displayName']=_0x51a47a(0x165);var Y=Object[_0x51a47a(0x1fb)],R=(_0x287af4,_0x2dcd3f,_0x28cafd,_0x396a32)=>{var _0x2f9dd3=_0x51a47a;for(var _0x2ae9ba=_0x396a32>0x1?void 0x0:_0x396a32?Y(_0x2dcd3f,_0x28cafd):_0x2dcd3f,_0x44740c=_0x287af4[_0x2f9dd3(0x1dd)]-0x1,_0x2eacb0;_0x44740c>=0x0;_0x44740c--)(_0x2eacb0=_0x287af4[_0x44740c])&&(_0x2ae9ba=_0x2eacb0(_0x2ae9ba)||_0x2ae9ba);return _0x2ae9ba;},S=(_0x1297fb,_0x105855)=>(_0x1ef27f,_0x1d44f6)=>_0x105855(_0x1ef27f,_0x1d44f6,_0x1297fb);exports[_0x51a47a(0x230)]=class extends o[_0x51a47a(0x1a8)]{constructor(_0xf5f793,_0x6ab897,_0x85434e){var _0xe71074=_0x51a47a;super(),v(this,_0xe71074(0x1ee),new Map()),(this[_0xe71074(0x171)]=_0xf5f793,this['_injector']=_0x6ab897,this[_0xe71074(0x1ff)]=_0x85434e,this[_0xe71074(0x1c9)]());}async[_0x51a47a(0x1df)](_0x3c1705){var _0x401131=_0x51a47a;return this['_entities'][_0x401131(0x19b)](_0x3c1705)||await this[_0x401131(0x157)](_0x3c1705),this[_0x401131(0x1ee)][_0x401131(0x186)](_0x3c1705);}['_init'](){var _0x24b3de=_0x51a47a;this[_0x24b3de(0x171)][_0x24b3de(0x19e)](o[_0x24b3de(0x19c)]['UNIVER_SHEET'])[_0x24b3de(0x1f3)](b[_0x24b3de(0x15f)](this[_0x24b3de(0x1eb)]))[_0x24b3de(0x189)](async _0x1b35f1=>{var _0x3a5244=_0x24b3de;const _0x2c67b2=_0x1b35f1[_0x3a5244(0x227)]();this[_0x3a5244(0x1ee)][_0x3a5244(0x19b)](_0x2c67b2)||this[_0x3a5244(0x157)](_0x2c67b2);}),this['_univerInstanceService'][_0x24b3de(0x1a4)](o[_0x24b3de(0x19c)][_0x24b3de(0x1ba)])[_0x24b3de(0x1f3)](b['takeUntil'](this['dispose$']))[_0x24b3de(0x189)](_0x41bd45=>{var _0x303a27=_0x24b3de;const _0x20f291=_0x41bd45[_0x303a27(0x227)](),_0x2a228c=this[_0x303a27(0x1ee)][_0x303a27(0x186)](_0x20f291);_0x2a228c==null||_0x2a228c[_0x303a27(0x207)]();});}async[_0x51a47a(0x157)](_0x54adce){var _0x471e23=_0x51a47a;const _0x34b0b2=await this[_0x471e23(0x1ff)][_0x471e23(0x23b)](_0x54adce),_0x234fcf=this[_0x471e23(0x219)]['createInstance'](exports['LiveShareCoordinator'],_0x54adce,_0x34b0b2);return _0x234fcf[_0x471e23(0x1f9)](),this[_0x471e23(0x1ee)][_0x471e23(0x213)](_0x54adce,_0x234fcf),_0x234fcf;}},exports[_0x51a47a(0x230)]=R([S(0x0,o[_0x51a47a(0x225)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o[_0x51a47a(0x1ac)](m['CollaborationSessionService']))],exports['LiveShareController']);var h=(_0x5c0fc3=>(_0x5c0fc3[_0x51a47a(0x15d)]=_0x51a47a(0x200),_0x5c0fc3[_0x51a47a(0x164)]=_0x51a47a(0x178),_0x5c0fc3[_0x51a47a(0x1e7)]=_0x51a47a(0x1bf),_0x5c0fc3[_0x51a47a(0x198)]=_0x51a47a(0x20f),_0x5c0fc3[_0x51a47a(0x17f)]=_0x51a47a(0x195),_0x5c0fc3))(h||{});const Z=_0x51a47a(0x1de),J=0xc8;exports[_0x51a47a(0x174)]=class extends o[_0x51a47a(0x1a8)]{constructor(_0x63ca45,_0x589f84,_0x9e7d00,_0x4ab06b,_0x136c56){var _0x303294=_0x51a47a;super(),v(this,_0x303294(0x1fa),new D[(_0x303294(0x241))]('idle')),v(this,_0x303294(0x1fc),this['_status$'][_0x303294(0x193)]()),v(this,'_init',!0x1),v(this,_0x303294(0x1c0),null),v(this,_0x303294(0x1fe),null),(this['_unitID']=_0x63ca45,this[_0x303294(0x1ab)]=_0x589f84,this[_0x303294(0x1f5)]=_0x9e7d00,this[_0x303294(0x17c)]=_0x4ab06b,this[_0x303294(0x199)]=_0x136c56);}get['_status'](){var _0x231e9a=_0x51a47a;return this[_0x231e9a(0x1fa)][_0x231e9a(0x233)]();}[_0x51a47a(0x207)](){var _0x5a7eff=_0x51a47a,_0x5ae8c1;(_0x5ae8c1=this[_0x5a7eff(0x1c0)])==null||_0x5ae8c1[_0x5a7eff(0x207)](),this[_0x5a7eff(0x1fa)][_0x5a7eff(0x1b6)]('idle'),this[_0x5a7eff(0x1fa)]['complete']();}[_0x51a47a(0x1f9)](){var _0x55cb3c=_0x51a47a;this[_0x55cb3c(0x1c9)]||(this[_0x55cb3c(0x1c9)]=!0x0,this[_0x55cb3c(0x1ab)]['sessionStatus$'][_0x55cb3c(0x1f3)](b[_0x55cb3c(0x15f)](this['dispose$']))[_0x55cb3c(0x189)](_0x21aec3=>{var _0x232978=_0x55cb3c;switch(_0x21aec3){case m[_0x232978(0x204)]['OFFLINE']:this[_0x232978(0x1af)]();break;case m['SessionStatus'][_0x232978(0x1f8)]:this[_0x232978(0x1ca)]();break;}}),this[_0x55cb3c(0x1ab)][_0x55cb3c(0x1d1)][_0x55cb3c(0x1f3)](b[_0x55cb3c(0x15f)](this[_0x55cb3c(0x1eb)]))[_0x55cb3c(0x189)](_0x2ee2df=>{var _0x43bfc2=_0x55cb3c;const {eventID:_0x487e5e}=_0x2ee2df;switch(_0x487e5e){case _[_0x43bfc2(0x244)][_0x43bfc2(0x191)]:this[_0x43bfc2(0x15a)](_0x2ee2df);break;case _[_0x43bfc2(0x244)][_0x43bfc2(0x205)]:this[_0x43bfc2(0x249)](_0x2ee2df);break;case _[_0x43bfc2(0x244)][_0x43bfc2(0x19a)]:this[_0x43bfc2(0x167)]();break;case _[_0x43bfc2(0x244)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x2ee2df);break;}}));}['tryStartPresenting'](){var _0xe2edd1=_0x51a47a;this[_0xe2edd1(0x1ab)][_0xe2edd1(0x240)]({'eventID':_[_0xe2edd1(0x244)][_0xe2edd1(0x1bd)],'data':{'unitID':this[_0xe2edd1(0x242)],'userID':this[_0xe2edd1(0x1ab)]['getMemberID']()}},this[_0xe2edd1(0x242)]);}[_0x51a47a(0x1b5)](){var _0x40e1a3=_0x51a47a;this[_0x40e1a3(0x1c8)]==='presenting'&&(this[_0x40e1a3(0x1fa)][_0x40e1a3(0x1b6)](_0x40e1a3(0x178)),this['_collabSession']['send']({'eventID':_[_0x40e1a3(0x244)][_0x40e1a3(0x19a)],'data':{'unitID':this[_0x40e1a3(0x242)]}},this[_0x40e1a3(0x242)]));}[_0x51a47a(0x177)](){var _0x4a046f=_0x51a47a;this[_0x4a046f(0x1c8)]===_0x4a046f(0x20f)&&(this[_0x4a046f(0x1fa)]['next'](_0x4a046f(0x1bf)),this[_0x4a046f(0x208)]());}[_0x51a47a(0x156)](){var _0x359922=_0x51a47a;this[_0x359922(0x1c8)]===_0x359922(0x1bf)&&this['_stopFollowing']();}[_0x51a47a(0x15a)](_0x5497d3){var _0x349b17=_0x51a47a;const {presenter:_0x5c2de8}=_0x5497d3[_0x349b17(0x1be)],_0x2c9987=this['_collabSession'][_0x349b17(0x1f0)]();this[_0x349b17(0x1fe)]=_0x5c2de8,_0x5c2de8===_0x2c9987?(this[_0x349b17(0x17d)](),this['_startPresenting']()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x349b17(0x208)]());}['_fetchOperations'](){var _0x302be8=_0x51a47a;const _0x8706d2={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x302be8(0x1ab)][_0x302be8(0x240)](_0x8706d2,this[_0x302be8(0x242)]);}['_handleTerminate'](){var _0x1a8311=_0x51a47a;this[_0x1a8311(0x1fe)]=null,this['_status']!==_0x1a8311(0x195)&&this[_0x1a8311(0x16a)]();}[_0x51a47a(0x1d5)](_0x49ecf0){var _0x40b509=_0x51a47a;if(this[_0x40b509(0x1c8)]===_0x40b509(0x1bf)&&this[_0x40b509(0x1fe)]===_0x49ecf0[_0x40b509(0x1be)][_0x40b509(0x23e)]){const _0x7889c7=_['parseProtocolChangeset'](_0x49ecf0[_0x40b509(0x1be)])[_0x40b509(0x1ce)][_0x40b509(0x163)]()[_0x40b509(0x1b9)](_0x1fb3c3=>_0x1fb3c3['id']===C[_0x40b509(0x1a3)]['id']);if(_0x7889c7){const _0x2db6f5=_0x7889c7[_0x40b509(0x1b3)][_0x40b509(0x182)],_0x194fc0=_0x7889c7[_0x40b509(0x1b3)][_0x40b509(0x18c)]['id'];setTimeout(()=>{var _0x4c1565=_0x40b509;this['_commandService'][_0x4c1565(0x21d)](C[_0x4c1565(0x1a7)]['id'],{'unitId':_0x2db6f5,'subUnitId':_0x194fc0},{'fromCollab':!0x0});});}}}[_0x51a47a(0x17b)](){var _0x4ecd9e=_0x51a47a;this[_0x4ecd9e(0x1fa)]['next'](_0x4ecd9e(0x195));const _0x5ea015=new Map(),_0x5229bd=this[_0x4ecd9e(0x1c0)]=new o[(_0x4ecd9e(0x190))]();_0x5229bd['add'](o[_0x4ecd9e(0x196)](()=>{var _0x498412=_0x4ecd9e;_0x5ea015[_0x498412(0x16e)](_0x38735e=>_0x38735e['complete']()),_0x5ea015[_0x498412(0x20c)]();})),_0x5229bd[_0x4ecd9e(0x247)](this['_commandService'][_0x4ecd9e(0x179)](_0x301f6e=>{var _0x56be60=_0x4ecd9e,_0x33e76d;if(_0x301f6e[_0x56be60(0x1b1)]!==o[_0x56be60(0x1b4)][_0x56be60(0x20b)]||!this[_0x56be60(0x17c)]['shouldShareOperation'](_0x301f6e['id']))return;const {id:_0x283f0e}=_0x301f6e;let _0x55a66b;_0x5ea015[_0x56be60(0x19b)](_0x283f0e)?_0x55a66b=_0x5ea015[_0x56be60(0x186)](_0x283f0e):(_0x55a66b=new D[(_0x56be60(0x231))](),_0x5ea015[_0x56be60(0x213)](_0x283f0e,_0x55a66b),_0x55a66b[_0x56be60(0x1f3)](b[_0x56be60(0x184)]((_0x33e76d=this[_0x56be60(0x1f5)][_0x56be60(0x234)](Z))!=null?_0x33e76d:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x56be60(0x189)](_0x39f880=>{var _0x238ebe=_0x56be60;this[_0x238ebe(0x1ab)][_0x238ebe(0x240)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x238ebe(0x242)],'operations':{[_0x39f880['id']]:{'id':_0x39f880['id'],'params':JSON[_0x238ebe(0x1dc)](_0x39f880[_0x238ebe(0x1b3)])}}}},this[_0x238ebe(0x242)]);})),_0x55a66b[_0x56be60(0x1b6)](_0x301f6e);})),this[_0x4ecd9e(0x17c)][_0x4ecd9e(0x217)](this[_0x4ecd9e(0x242)])['forEach'](_0x46a29d=>this[_0x4ecd9e(0x1ab)][_0x4ecd9e(0x240)]({'eventID':_[_0x4ecd9e(0x244)][_0x4ecd9e(0x205)],'data':{'unitID':this[_0x4ecd9e(0x242)],'operations':{[_0x46a29d['id']]:{'id':_0x46a29d['id'],'params':JSON[_0x4ecd9e(0x1dc)](_0x46a29d[_0x4ecd9e(0x1b3)])}}}},this[_0x4ecd9e(0x242)]));}[_0x51a47a(0x18e)](){var _0x79acae=_0x51a47a,_0x18d906;this['_status$'][_0x79acae(0x1b6)](_0x79acae(0x178)),(_0x18d906=this[_0x79acae(0x1c0)])==null||_0x18d906['dispose'](),this[_0x79acae(0x1c0)]=null;}[_0x51a47a(0x208)](){var _0x4d7fea=_0x51a47a,_0x364719;(_0x364719=this[_0x4d7fea(0x1c0)])==null||_0x364719[_0x4d7fea(0x207)](),this[_0x4d7fea(0x1fa)][_0x4d7fea(0x1b6)]('following');}[_0x51a47a(0x16a)](){var _0x38b56d=_0x51a47a,_0x3e90cf;this['_status$'][_0x38b56d(0x1b6)](_0x38b56d(0x178)),(_0x3e90cf=this[_0x38b56d(0x1c0)])==null||_0x3e90cf[_0x38b56d(0x207)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x2a894b=_0x51a47a,_0x3b48e0;this[_0x2a894b(0x1fa)][_0x2a894b(0x1b6)](_0x2a894b(0x20f)),(_0x3b48e0=this[_0x2a894b(0x1c0)])==null||_0x3b48e0['dispose']();}['_handleOperation'](_0x4a903e){var _0x59857f=_0x51a47a;if(['presenting',_0x59857f(0x20f),_0x59857f(0x200)][_0x59857f(0x1cb)](this[_0x59857f(0x1c8)])||!_0x4a903e['data'][_0x59857f(0x169)]||_0x4a903e['data'][_0x59857f(0x169)]===this[_0x59857f(0x1ab)][_0x59857f(0x1f0)]())return;this[_0x59857f(0x1c8)]===_0x59857f(0x178)&&this['_startFollowing']();const _0x192ab1=_0x4a903e[_0x59857f(0x1be)][_0x59857f(0x166)];Object[_0x59857f(0x243)](_0x192ab1)['forEach'](_0xbe4c25=>{var _0x1d8ca7=_0x59857f;this[_0x1d8ca7(0x199)][_0x1d8ca7(0x21d)](_0xbe4c25['id'],_0xbe4c25[_0x1d8ca7(0x1b3)]?JSON['parse'](_0xbe4c25[_0x1d8ca7(0x1b3)]):null,{'fromCollab':!0x0});});}[_0x51a47a(0x1af)](){var _0x29d27d=_0x51a47a,_0x474e62;this[_0x29d27d(0x1fa)]['next']('offline'),(_0x474e62=this['_commandDisposable'])==null||_0x474e62[_0x29d27d(0x207)]();}['_handleOnline'](){var _0x188b63=_0x51a47a;this[_0x188b63(0x1fa)][_0x188b63(0x1b6)](_0x188b63(0x178)),this[_0x188b63(0x17e)]();}},exports[_0x51a47a(0x174)]=R([S(0x2,o[_0x51a47a(0x1c6)]),S(0x3,o[_0x51a47a(0x1ac)](O)),S(0x4,o[_0x51a47a(0x22f)])],exports[_0x51a47a(0x174)]);function A(){var _0x2d10dc=_0x51a47a;const _0x43ecaf=p[_0x2d10dc(0x1d9)](exports[_0x2d10dc(0x230)]),_0x1ae318=p[_0x2d10dc(0x1d9)](o[_0x2d10dc(0x225)]),_0x57db6f=p[_0x2d10dc(0x221)](()=>_0x1ae318[_0x2d10dc(0x1a6)](o[_0x2d10dc(0x19c)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x95aa15,_0x24aee2]=f[_0x2d10dc(0x226)](null),[_0x21f048,_0x2e3c8f]=f[_0x2d10dc(0x226)](h['IDLE']),_0x2cc6af=f[_0x2d10dc(0x1f2)](null);return f[_0x2d10dc(0x1bb)](()=>(_0x57db6f&&_0x43ecaf[_0x2d10dc(0x1df)](_0x57db6f[_0x2d10dc(0x227)]())[_0x2d10dc(0x1d4)](_0x51db2a=>{var _0x26ec43=_0x2d10dc;_0x24aee2(_0x51db2a),_0x2cc6af[_0x26ec43(0x19f)]=_0x51db2a[_0x26ec43(0x1fc)][_0x26ec43(0x189)](_0x5087a3=>{_0x2e3c8f(_0x5087a3);});}),()=>{var _0x10e834=_0x2d10dc,_0x6613a3;(_0x6613a3=_0x2cc6af[_0x10e834(0x19f)])==null||_0x6613a3['unsubscribe'](),_0x2cc6af[_0x10e834(0x19f)]=null;}),[_0x57db6f,_0x43ecaf]),_0x95aa15?l[_0x2d10dc(0x1cc)](g[_0x2d10dc(0x20d)],{'align':_0x2d10dc(0x1cd),'disabled':_0x21f048===h[_0x2d10dc(0x15d)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x2d10dc(0x1cc)](K,{'status':_0x21f048,'coordinator':_0x95aa15}),'children':l['jsx']('button',{'className':g[_0x2d10dc(0x1ea)](_0x2d10dc(0x22e),{'univer-cursor-not-allowed':_0x21f048===h[_0x2d10dc(0x15d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x21f048!==h[_0x2d10dc(0x15d)]}),'type':_0x2d10dc(0x16c),'children':l[_0x2d10dc(0x1cc)](P,{'className':_0x2d10dc(0x1f4)})})}):null;}function K(_0x113d50){var _0x213af5=_0x51a47a;const {status:_0x1eb02c,coordinator:_0x4995a2}=_0x113d50;switch(_0x1eb02c){case h[_0x213af5(0x164)]:return l[_0x213af5(0x1cc)](z,{'coordinator':_0x4995a2});case h[_0x213af5(0x1e7)]:return l[_0x213af5(0x1cc)](Q,{'coordinator':_0x4995a2});case h[_0x213af5(0x198)]:return l['jsx'](X,{'coordinator':_0x4995a2});case h[_0x213af5(0x15d)]:return l[_0x213af5(0x1cc)](te,{});case h['PRESENTING']:return l[_0x213af5(0x1cc)](ee,{'coordinator':_0x4995a2});default:return null;}}function z(_0x32d6ed){var _0x1b2eb7=_0x51a47a;const {coordinator:_0x4b7fea}=_0x32d6ed;return l['jsxs'](l['Fragment'],{'children':[l[_0x1b2eb7(0x1cc)](_0x1b2eb7(0x21c),{'className':_0x1b2eb7(0x23a),'children':_0x1b2eb7(0x228)}),l[_0x1b2eb7(0x1cc)](g[_0x1b2eb7(0x17a)],{'onClick':()=>_0x4b7fea[_0x1b2eb7(0x1da)](),'children':_0x1b2eb7(0x1c3)})]});}function Q(_0x3c0d08){var _0x3c0ebe=_0x51a47a;const {coordinator:_0x406dc9}=_0x3c0d08;return l[_0x3c0ebe(0x202)](l['Fragment'],{'children':[l[_0x3c0ebe(0x1cc)](_0x3c0ebe(0x21c),{'className':_0x3c0ebe(0x23a),'children':_0x3c0ebe(0x1f6)}),l['jsx'](g[_0x3c0ebe(0x17a)],{'onClick':()=>_0x406dc9[_0x3c0ebe(0x156)](),'children':_0x3c0ebe(0x1d7)})]});}function X(_0x405aa1){var _0x5e182a=_0x51a47a;const {coordinator:_0x5abd33}=_0x405aa1;return l[_0x5e182a(0x202)](l['Fragment'],{'children':[l[_0x5e182a(0x1cc)](_0x5e182a(0x21c),{'className':_0x5e182a(0x23a),'children':_0x5e182a(0x181)}),l[_0x5e182a(0x1cc)](g[_0x5e182a(0x17a)],{'variant':_0x5e182a(0x1ae),'onClick':()=>_0x5abd33[_0x5e182a(0x177)](),'children':_0x5e182a(0x15e)})]});}function ee(_0x59ea1e){var _0x4dbc27=_0x51a47a;const {coordinator:_0x482198}=_0x59ea1e;return l['jsxs'](l['Fragment'],{'children':[l[_0x4dbc27(0x1cc)](_0x4dbc27(0x21c),{'className':_0x4dbc27(0x23a),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x4dbc27(0x1cc)](g[_0x4dbc27(0x17a)],{'variant':_0x4dbc27(0x16f),'onClick':()=>_0x482198[_0x4dbc27(0x1b5)](),'children':'Stop\x20presenting'})]});}function te(){var _0x2c988a=_0x51a47a;return l[_0x2c988a(0x1cc)](l[_0x2c988a(0x1ef)],{'children':_0x2c988a(0x197)});}var ie=Object[_0x51a47a(0x1fb)],ne=(_0x321d83,_0xbac802,_0x47ad86,_0x2465c8)=>{var _0x5c5197=_0x51a47a;for(var _0x3d02e5=_0x2465c8>0x1?void 0x0:_0x2465c8?ie(_0xbac802,_0x47ad86):_0xbac802,_0x17e4ad=_0x321d83[_0x5c5197(0x1dd)]-0x1,_0x2cd2fd;_0x17e4ad>=0x0;_0x17e4ad--)(_0x2cd2fd=_0x321d83[_0x17e4ad])&&(_0x3d02e5=_0x2cd2fd(_0x3d02e5)||_0x3d02e5);return _0x3d02e5;},L=(_0x436196,_0x595d1d)=>(_0xd17b18,_0x8b7d56)=>_0x595d1d(_0xd17b18,_0x8b7d56,_0x436196);exports[_0x51a47a(0x1bc)]=class extends o['Disposable']{constructor(_0x5606dc,_0x30d3b0){var _0x54d494=_0x51a47a;super(),this['_injector']=_0x5606dc,this['_uiPartsService']=_0x30d3b0,this[_0x54d494(0x18d)]();}['_mountLiveShare'](){var _0x4afd04=_0x51a47a;this[_0x4afd04(0x1cf)](this[_0x4afd04(0x236)][_0x4afd04(0x245)](p[_0x4afd04(0x1d0)][_0x4afd04(0x20e)],()=>p[_0x4afd04(0x16b)](A,this['_injector'])));}},exports[_0x51a47a(0x1bc)]=ne([L(0x0,o[_0x51a47a(0x1ac)](o[_0x51a47a(0x1a2)])),L(0x1,p[_0x51a47a(0x212)])],exports[_0x51a47a(0x1bc)]);var re=Object['defineProperty'],se=Object[_0x51a47a(0x1fb)],oe=(_0x1e211f,_0x2b8727,_0x3d6e1b)=>_0x2b8727 in _0x1e211f?re(_0x1e211f,_0x2b8727,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d6e1b}):_0x1e211f[_0x2b8727]=_0x3d6e1b,ae=(_0x48f89f,_0x7b8664,_0x5d9f38,_0x5e171c)=>{var _0x4fcef1=_0x51a47a;for(var _0x494ca0=_0x5e171c>0x1?void 0x0:_0x5e171c?se(_0x7b8664,_0x5d9f38):_0x7b8664,_0x34d666=_0x48f89f[_0x4fcef1(0x1dd)]-0x1,_0x5f6cd4;_0x34d666>=0x0;_0x34d666--)(_0x5f6cd4=_0x48f89f[_0x34d666])&&(_0x494ca0=_0x5f6cd4(_0x494ca0)||_0x494ca0);return _0x494ca0;},N=(_0x7078e8,_0x2223b2)=>(_0x4a0ef0,_0x5b9f21)=>_0x2223b2(_0x4a0ef0,_0x5b9f21,_0x7078e8),T=(_0x276c11,_0x4f5ad6,_0x5f34c8)=>oe(_0x276c11,typeof _0x4f5ad6!=_0x51a47a(0x180)?_0x4f5ad6+'':_0x4f5ad6,_0x5f34c8);const le=_0x51a47a(0x1e9);exports['UniverLiveSharePlugin']=class extends o[_0x51a47a(0x1a9)]{constructor(_0x179789=x,_0x5dbefc,_0x473411){var _0x169dd7=_0x51a47a;super(),this[_0x169dd7(0x1a1)]=_0x179789,this[_0x169dd7(0x219)]=_0x5dbefc,this[_0x169dd7(0x1f5)]=_0x473411;const {..._0x2efe7c}=o[_0x169dd7(0x16d)]({},x,this[_0x169dd7(0x1a1)]);this[_0x169dd7(0x1f5)][_0x169dd7(0x158)]($,_0x2efe7c);}['onStarting'](){var _0x52d21d=_0x51a47a;o['registerDependencies'](this[_0x52d21d(0x219)],o[_0x52d21d(0x1e6)]([[O],[exports[_0x52d21d(0x230)]],[E],[exports['DesktopLiveShareController']]],this[_0x52d21d(0x1a1)][_0x52d21d(0x211)])),o['touchDependencies'](this[_0x52d21d(0x219)],[[E]]);}['onRendered'](){var _0x8b55f8=_0x51a47a;o[_0x8b55f8(0x175)](this[_0x8b55f8(0x219)],[[exports[_0x8b55f8(0x1bc)]]]);}},T(exports[_0x51a47a(0x1c5)],_0x51a47a(0x1b1),o[_0x51a47a(0x19c)][_0x51a47a(0x160)]),T(exports[_0x51a47a(0x1c5)],_0x51a47a(0x201),le),exports[_0x51a47a(0x1c5)]=ae([o[_0x51a47a(0x1d6)](m[_0x51a47a(0x21b)]),N(0x1,o['Inject'](o[_0x51a47a(0x1a2)])),N(0x2,o['IConfigService'])],exports[_0x51a47a(0x1c5)]),exports[_0x51a47a(0x183)]=A,exports[_0x51a47a(0x15b)]=O,exports[_0x51a47a(0x239)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x3ac974=_0x4571;(function(_0x5265f4,_0x2f0127){var _0x597ca9=_0x4571,_0x5a1f21=_0x5265f4();while(!![]){try{var _0x56ffed=-parseInt(_0x597ca9(0x10d))/0x1*(parseInt(_0x597ca9(0x13e))/0x2)+parseInt(_0x597ca9(0x133))/0x3+-parseInt(_0x597ca9(0x131))/0x4*(parseInt(_0x597ca9(0x170))/0x5)+-parseInt(_0x597ca9(0x110))/0x6+-parseInt(_0x597ca9(0x159))/0x7*(-parseInt(_0x597ca9(0x12f))/0x8)+-parseInt(_0x597ca9(0x104))/0x9*(parseInt(_0x597ca9(0x164))/0xa)+-parseInt(_0x597ca9(0xf9))/0xb*(-parseInt(_0x597ca9(0xfd))/0xc);if(_0x56ffed===_0x2f0127)break;else _0x5a1f21['push'](_0x5a1f21['shift']());}catch(_0x140197){_0x5a1f21['push'](_0x5a1f21['shift']());}}}(_0x53cf,0x1f54a));var q=Object[_0x3ac974(0x13c)],z=(_0x306118,_0x44288e,_0x991abd)=>_0x44288e in _0x306118?q(_0x306118,_0x44288e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x991abd}):_0x306118[_0x44288e]=_0x991abd,d=(_0x2ebb7d,_0x49f8ef,_0xca2c19)=>z(_0x2ebb7d,typeof _0x49f8ef!=_0x3ac974(0xee)?_0x49f8ef+'':_0x49f8ef,_0xca2c19);import{CollaborationSessionService as _0x1d25b3,SessionStatus as _0x4a5ca1,UniverCollaborationClientPlugin as _0x44051f}from'@univerjs-pro/collaboration-client';import{Disposable as _0x584273,toDisposable as _0x41007c,Inject as _0xa4beab,IUniverInstanceService as _0x222f08,Injector as _0x4f2f9e,IConfigService as _0x1eb131,ICommandService as _0x2474fb,RxDisposable as _0x427566,UniverInstanceType as _0x54a5fc,DisposableCollection as _0x18853a,CommandType as _0x3a3e50,DependentOn as _0x2290ed,Plugin as _0x504502,merge as _0x20bd30,registerDependencies as _0xb22a41,mergeOverrideWithDependencies as _0x3f6a22,touchDependencies as _0x87ed34}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x34165f,InsertSheetMutation as _0x1652a5}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x7f064e,SetScrollOperation as _0x4afef6}from'@univerjs/sheets-ui';import{useDependency as _0x1221e9,useObservable as _0x5245c7,IUIPartsService as _0x50343c,BuiltInUIPart as _0x4cea43,connectInjector as _0x5daf4e}from'@univerjs/ui';import{jsx as _0x315ae3,jsxs as _0x4c43ef,Fragment as _0x3328e8}from'react/jsx-runtime';import{Dropdown as _0x4a5ac9,clsx as _0x3ec8f8,Button as _0x9e9e1c}from'@univerjs/design';import{forwardRef as _0x343d30,useRef as _0x26cc02,createElement as _0x577174,useState as _0x2438be,useEffect as _0x4e57b8}from'react';import{CollaborationEvent as _0x390d85,parseProtocolChangeset as _0x6c5b2b}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x44478a,Subject as _0x528647}from'rxjs';import{takeUntil as _0x4cc00f,throttleTime as _0x5a0b04}from'rxjs/operators';const Oe=_0x3ac974(0x178),T={};class L extends _0x584273{constructor(){var _0x3352da=_0x3ac974;super(...arguments),d(this,_0x3352da(0x184),new Set()),d(this,_0x3352da(0x10f),new Set());}['registerSharedOperation'](_0x3391d7){var _0x560f0e=_0x3ac974;return this['_sharedOperations'][_0x560f0e(0x14b)](_0x3391d7),_0x41007c(()=>this['_sharedOperations'][_0x560f0e(0x109)](_0x3391d7));}[_0x3ac974(0x126)](_0x578f7a){var _0x259dcb=_0x3ac974;return this[_0x259dcb(0x10f)][_0x259dcb(0x14b)](_0x578f7a),_0x41007c(()=>this[_0x259dcb(0x10f)][_0x259dcb(0x109)](_0x578f7a));}['shouldShareOperation'](_0x284f36){var _0x19128c=_0x3ac974;return this[_0x19128c(0x184)][_0x19128c(0x172)](_0x284f36);}[_0x3ac974(0x15b)](_0x40793b){var _0x2712de=_0x3ac974;return Array[_0x2712de(0x102)](this[_0x2712de(0x10f)])[_0x2712de(0x12a)](_0x2b25bb=>_0x2b25bb(_0x40793b));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0xf3ea68,_0x41f550,_0x3e8eb7,_0x3baa07)=>{var _0x262a9e=_0x3ac974;for(var _0x3c5a1b=_0x3baa07>0x1?void 0x0:_0x3baa07?Ee(_0x41f550,_0x3e8eb7):_0x41f550,_0x44469e=_0xf3ea68[_0x262a9e(0x152)]-0x1,_0x2cef1f;_0x44469e>=0x0;_0x44469e--)(_0x2cef1f=_0xf3ea68[_0x44469e])&&(_0x3c5a1b=_0x2cef1f(_0x3c5a1b)||_0x3c5a1b);return _0x3c5a1b;},Ne=(_0x9b8734,_0x4b4b12)=>(_0x190cbd,_0x22b176)=>_0x4b4b12(_0x190cbd,_0x22b176,_0x9b8734);let m=class extends _0x584273{constructor(_0x3b4d46){var _0x12a06f=_0x3ac974;super(),this[_0x12a06f(0x143)]=_0x3b4d46,this['_init']();}[_0x3ac974(0x179)](){var _0x3a89eb=_0x3ac974;[_0x7f064e['id'],_0x4afef6['id'],_0x34165f['id']][_0x3a89eb(0x161)](_0x329f75=>{var _0x89fb20=_0x3a89eb;this['disposeWithMe'](this[_0x89fb20(0x143)][_0x89fb20(0x139)](_0x329f75));});}};m=we([Ne(0x0,_0xa4beab(L))],m);var c=function(){var _0x3cb822=_0x3ac974;return c=Object[_0x3cb822(0x175)]||function(_0x2f39d5){var _0x5ba083=_0x3cb822;for(var _0x3acaf1,_0x11b35d=0x1,_0x28645a=arguments[_0x5ba083(0x152)];_0x11b35d<_0x28645a;_0x11b35d++){_0x3acaf1=arguments[_0x11b35d];for(var _0x851449 in _0x3acaf1)Object['prototype']['hasOwnProperty']['call'](_0x3acaf1,_0x851449)&&(_0x2f39d5[_0x851449]=_0x3acaf1[_0x851449]);}return _0x2f39d5;},c[_0x3cb822(0x114)](this,arguments);},Ce=function(_0x26727e,_0x2c7454){var _0x8105c0=_0x3ac974,_0x57f40b={};for(var _0x40ef28 in _0x26727e)Object['prototype'][_0x8105c0(0x142)][_0x8105c0(0x149)](_0x26727e,_0x40ef28)&&_0x2c7454[_0x8105c0(0x16c)](_0x40ef28)<0x0&&(_0x57f40b[_0x40ef28]=_0x26727e[_0x40ef28]);if(_0x26727e!=null&&typeof Object[_0x8105c0(0x10e)]=='function'){for(var _0x47cbe3=0x0,_0x40ef28=Object[_0x8105c0(0x10e)](_0x26727e);_0x47cbe3<_0x40ef28[_0x8105c0(0x152)];_0x47cbe3++)_0x2c7454[_0x8105c0(0x16c)](_0x40ef28[_0x47cbe3])<0x0&&Object[_0x8105c0(0x163)][_0x8105c0(0xe7)][_0x8105c0(0x149)](_0x26727e,_0x40ef28[_0x47cbe3])&&(_0x57f40b[_0x40ef28[_0x47cbe3]]=_0x26727e[_0x40ef28[_0x47cbe3]]);}return _0x57f40b;},W=_0x343d30(function(_0x8ee044,_0x3888f2){var _0x55bc75=_0x3ac974,_0x2cbecd=_0x8ee044[_0x55bc75(0x180)],_0x3ccc2b=_0x8ee044['id'],_0x172bb6=_0x8ee044[_0x55bc75(0xf0)],_0x2fd3e6=_0x8ee044[_0x55bc75(0x145)],_0x332b37=Ce(_0x8ee044,[_0x55bc75(0x180),'id',_0x55bc75(0xf0),_0x55bc75(0x145)]),_0x3a4f34=_0x55bc75(0x147)[_0x55bc75(0x190)](_0x3ccc2b,'\x20')[_0x55bc75(0x190)](_0x172bb6||'')[_0x55bc75(0x177)](),_0x3254d8=_0x26cc02('_'[_0x55bc75(0x190)](Le()));return Y(_0x2cbecd,''['concat'](_0x3ccc2b),{'defIds':_0x2cbecd[_0x55bc75(0x11e)],'idSuffix':_0x3254d8[_0x55bc75(0x150)]},c({'ref':_0x3888f2,'className':_0x3a4f34},_0x332b37),_0x2fd3e6);});function Y(_0x502ce9,_0x33ee46,_0x19e5db,_0x3d65e4,_0x3a362c){var _0x36bd45=_0x3ac974;return _0x577174(_0x502ce9[_0x36bd45(0x19a)],c(c({'key':_0x33ee46},De(_0x502ce9,_0x19e5db,_0x3a362c)),_0x3d65e4),(xe(_0x502ce9,_0x19e5db)[_0x36bd45(0x12d)]||[])[_0x36bd45(0x12a)](function(_0x3baf7d,_0x1a5174){var _0x1e63bf=_0x36bd45;return Y(_0x3baf7d,''[_0x1e63bf(0x190)](_0x33ee46,'-')[_0x1e63bf(0x190)](_0x502ce9[_0x1e63bf(0x19a)],'-')[_0x1e63bf(0x190)](_0x1a5174),_0x19e5db,void 0x0,_0x3a362c);}));}function De(_0x13fc96,_0x359177,_0xf0d93c){var _0x27281c=_0x3ac974,_0x4ba822=c({},_0x13fc96[_0x27281c(0x137)]);_0xf0d93c!=null&&_0xf0d93c[_0x27281c(0x140)]&&_0x4ba822[_0x27281c(0x14c)]==='colorChannel1'&&(_0x4ba822[_0x27281c(0x14c)]=_0xf0d93c[_0x27281c(0x140)]),_0x13fc96[_0x27281c(0x19a)]===_0x27281c(0xf8)&&_0x4ba822['id']&&(_0x4ba822['id']=_0x4ba822['id']+_0x359177[_0x27281c(0x192)]),Object[_0x27281c(0x130)](_0x4ba822)['forEach'](function(_0x4150f4){var _0x19f8ef=_0x27281c,_0x27683e=_0x4150f4[0x0],_0x4a4f85=_0x4150f4[0x1];_0x27683e===_0x19f8ef(0xf8)&&typeof _0x4a4f85=='string'&&(_0x4ba822[_0x27683e]=_0x4a4f85[_0x19f8ef(0x153)](/url\(#(.*)\)/,'url(#$1'[_0x19f8ef(0x190)](_0x359177[_0x19f8ef(0x192)],')')));});var _0x5e6cbf=_0x359177[_0x27281c(0x11e)];return!_0x5e6cbf||_0x5e6cbf[_0x27281c(0x152)]===0x0||(_0x13fc96[_0x27281c(0x19a)]==='use'&&_0x4ba822[_0x27281c(0x14f)]&&(_0x4ba822['xlink:href']=_0x4ba822[_0x27281c(0x14f)]+_0x359177['idSuffix']),Object[_0x27281c(0x130)](_0x4ba822)[_0x27281c(0x161)](function(_0x563838){var _0x3fb77c=_0x27281c,_0x4c0a63=_0x563838[0x0],_0x3df34e=_0x563838[0x1];typeof _0x3df34e=='string'&&(_0x4ba822[_0x4c0a63]=_0x3df34e[_0x3fb77c(0x153)](/url\(#(.*)\)/,_0x3fb77c(0x15d)['concat'](_0x359177['idSuffix'],')')));})),_0x4ba822;}function xe(_0x45ab51,_0x11acfc){var _0x4fed00=_0x3ac974,_0x2e7a16,_0x3db69f=_0x11acfc['defIds'];return!_0x3db69f||_0x3db69f[_0x4fed00(0x152)]===0x0?_0x45ab51:_0x45ab51[_0x4fed00(0x19a)]===_0x4fed00(0xe9)&&(!((_0x2e7a16=_0x45ab51['children'])===null||_0x2e7a16===void 0x0)&&_0x2e7a16[_0x4fed00(0x152)])?c(c({},_0x45ab51),{'children':_0x45ab51[_0x4fed00(0x12d)][_0x4fed00(0x12a)](function(_0x6fc87a){var _0xef84d4=_0x4fed00;return typeof _0x6fc87a[_0xef84d4(0x137)]['id']==_0xef84d4(0x107)&&_0x3db69f&&_0x3db69f[_0xef84d4(0x171)](_0x6fc87a['attrs']['id'])?c(c({},_0x6fc87a),{'attrs':c(c({},_0x6fc87a['attrs']),{'id':_0x6fc87a[_0xef84d4(0x137)]['id']+_0x11acfc[_0xef84d4(0x192)]})}):_0x6fc87a;})}):_0x45ab51;}function Le(){var _0x596da0=_0x3ac974;return Math[_0x596da0(0x18b)]()[_0x596da0(0x121)](0x24)['substring'](0x2,0x8);}W[_0x3ac974(0x146)]=_0x3ac974(0x17a);var ye={'tag':_0x3ac974(0x14a),'attrs':{'xmlns':_0x3ac974(0x14d),'fill':'none','viewBox':_0x3ac974(0x11b),'width':'1em','height':_0x3ac974(0xfb)},'children':[{'tag':_0x3ac974(0x101),'attrs':{'fill':_0x3ac974(0xfc),'d':_0x3ac974(0x191)}},{'tag':_0x3ac974(0x101),'attrs':{'fill':'currentColor','d':_0x3ac974(0x119),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x343d30(function(_0x3e9d,_0x40e959){var _0x32418c=_0x3ac974;return _0x577174(W,Object[_0x32418c(0x175)]({},_0x3e9d,{'id':'live-share-icon','ref':_0x40e959,'icon':ye}));});B[_0x3ac974(0x146)]=_0x3ac974(0x185);var Re=Object[_0x3ac974(0x182)],Z=(_0x2cd539,_0x5ea551,_0x47b980,_0x4a785a)=>{var _0x25f07c=_0x3ac974;for(var _0x2ef650=_0x4a785a>0x1?void 0x0:_0x4a785a?Re(_0x5ea551,_0x47b980):_0x5ea551,_0x322652=_0x2cd539[_0x25f07c(0x152)]-0x1,_0x5c419c;_0x322652>=0x0;_0x322652--)(_0x5c419c=_0x2cd539[_0x322652])&&(_0x2ef650=_0x5c419c(_0x2ef650)||_0x2ef650);return _0x2ef650;},f=(_0x4609c5,_0x5f0db1)=>(_0x435d26,_0x40228b)=>_0x5f0db1(_0x435d26,_0x40228b,_0x4609c5);function _0x53cf(){var _0x7ae494=['_entities','init','5tohCRA','includes','has','OFFLINE','LIVESHARE_REQUEST_HOST','assign','executeCommand','trim','live-share.config','_init','UniverIcon','LIVESHARE_FETCH_OPERATIONS','_unitID','univer-size-4','status$','UNIVER_LIVE_SHARE_PLUGIN','icon','getLiveShareCoordinator','getOwnPropertyDescriptor','end','_sharedOperations','LiveShareIcon','event$','_handleNewChangeSets','OPERATION','LIVESHARE_TERMINATE','dispose$','random','You\x27re\x20following\x20the\x20presenter','presenter','_fetchOperations','data','concat','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','idSuffix','createInstance','div','_startLiveShareCoordinator','_mountLiveShare','LIVESHARE_OPERATION','onCommandExecuted','set','tag','propertyIsEnumerable','SAME_OPERATION_SHARE_INTERVAL','defs','type','find','_stopPresenting','dispose','symbol','startFollowing','className','text','_uiPartsService','pluginName','parse','univer-mb-3\x20univer-w-full\x20univer-text-sm','pipe','requireSession','mask','13893IxjawO','_commandService','1em','currentColor','2616aWkZTP','You\x27are\x20offline.','_collabSession','_handleOffline','path','from','Stop\x20presenting','1226655SBDxRX','tryStartPresenting','_configService','string','_beIdle','delete','_univerInstanceService','send','values','11fzLFlB','getOwnPropertySymbols','_reporters','158814JxFONM','FOLLOWING','_injector','getCurrentTypeOfUnit$','apply','getValue','_handleOnline','following','IDLE','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','default','0\x200\x2017\x2017','reverse','then','defIds','UNIVER_SHEET','clear','toString','_collabSessionService','shouldShareOperation','PRESENTING','not-following','registerInitialStateReporter','_handleOperation','onStarting','asObservable','map','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','_stopFollowing','children','button','1662392vhXuyM','entries','716332JLOfwC','_config','54093pSjwBC','NOT_FOLLOWING','sessionStatus$','setConfig','attrs','idle','registerSharedOperation','_handleTerminate','_presenter','defineProperty','stringify','5634fWWXxn','_status','colorChannel1','presenting','hasOwnProperty','_liveShareService','params','extend','displayName','univerjs-icon\x20univerjs-icon-','getMemberID','call','svg','add','fill','http://www.w3.org/2000/svg','get','xlink:href','current','_startFollowing','length','replace','_startPresenting','ONLINE','onRendered','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','offline','7HrTmsI','next','getInitialStates','disposeWithMe','url(#$1','getUnitId','operations','_commandDisposable','forEach','registerComponent','prototype','10qLNfUe','Stop\x20following','_status$','unsubscribe','stopFollowing','getTypeOfUnitAdded$','getTypeOfUnitDisposed$','getConfig','indexOf','subscribe'];_0x53cf=function(){return _0x7ae494;};return _0x53cf();}let I=class extends _0x427566{constructor(_0x5bcf5f,_0x2b7684,_0x15b584){var _0x18c8c4=_0x3ac974;super(),d(this,_0x18c8c4(0x16e),new Map()),(this[_0x18c8c4(0x10a)]=_0x5bcf5f,this[_0x18c8c4(0x112)]=_0x2b7684,this['_collabSessionService']=_0x15b584,this[_0x18c8c4(0x179)]());}async['getLiveShareCoordinator'](_0x3ded05){var _0x1bd98d=_0x3ac974;return this[_0x1bd98d(0x16e)][_0x1bd98d(0x172)](_0x3ded05)||await this['_startLiveShareCoordinator'](_0x3ded05),this['_entities'][_0x1bd98d(0x14e)](_0x3ded05);}[_0x3ac974(0x179)](){var _0x38ebea=_0x3ac974;this[_0x38ebea(0x10a)][_0x38ebea(0x169)](_0x54a5fc[_0x38ebea(0x11f)])['pipe'](_0x4cc00f(this[_0x38ebea(0x18a)]))['subscribe'](async _0x38b6d0=>{var _0x2847bb=_0x38ebea;const _0x6a6ceb=_0x38b6d0['getUnitId']();this[_0x2847bb(0x16e)][_0x2847bb(0x172)](_0x6a6ceb)||this[_0x2847bb(0x195)](_0x6a6ceb);}),this[_0x38ebea(0x10a)][_0x38ebea(0x16a)](_0x54a5fc[_0x38ebea(0x11f)])['pipe'](_0x4cc00f(this[_0x38ebea(0x18a)]))[_0x38ebea(0x16d)](_0x9df843=>{var _0x2f194e=_0x38ebea;const _0x89710=_0x9df843[_0x2f194e(0x15e)](),_0x758288=this[_0x2f194e(0x16e)][_0x2f194e(0x14e)](_0x89710);_0x758288==null||_0x758288[_0x2f194e(0xed)]();});}async[_0x3ac974(0x195)](_0x216834){var _0x4471e2=_0x3ac974;const _0x4cd6bd=await this[_0x4471e2(0x122)][_0x4471e2(0xf7)](_0x216834),_0x1f7c5f=this[_0x4471e2(0x112)][_0x4471e2(0x193)](C,_0x216834,_0x4cd6bd);return _0x1f7c5f['init'](),this['_entities'][_0x4471e2(0x199)](_0x216834,_0x1f7c5f),_0x1f7c5f;}};I=Z([f(0x0,_0x222f08),f(0x1,_0xa4beab(_0x4f2f9e)),f(0x2,_0xa4beab(_0x1d25b3))],I);var h=(_0x74365d=>(_0x74365d[_0x3ac974(0x173)]=_0x3ac974(0x158),_0x74365d[_0x3ac974(0x118)]=_0x3ac974(0x138),_0x74365d[_0x3ac974(0x111)]=_0x3ac974(0x117),_0x74365d[_0x3ac974(0x134)]='not-following',_0x74365d['PRESENTING']='presenting',_0x74365d))(h||{});const Pe=_0x3ac974(0xe8),Ae=0xc8;let C=class extends _0x427566{constructor(_0x2739a2,_0x4ebca1,_0x278dd3,_0x50042e,_0x17f6aa){var _0x61d663=_0x3ac974;super(),d(this,'_status$',new _0x44478a(_0x61d663(0x138))),d(this,_0x61d663(0x17e),this[_0x61d663(0x166)][_0x61d663(0x129)]()),d(this,_0x61d663(0x179),!0x1),d(this,_0x61d663(0x160),null),d(this,'_presenter',null),(this[_0x61d663(0x17c)]=_0x2739a2,this[_0x61d663(0xff)]=_0x4ebca1,this['_configService']=_0x278dd3,this[_0x61d663(0x143)]=_0x50042e,this[_0x61d663(0xfa)]=_0x17f6aa);}get[_0x3ac974(0x13f)](){var _0x14e4f7=_0x3ac974;return this[_0x14e4f7(0x166)][_0x14e4f7(0x115)]();}[_0x3ac974(0xed)](){var _0x2eb8cf=_0x3ac974,_0x2e3ccf;(_0x2e3ccf=this[_0x2eb8cf(0x160)])==null||_0x2e3ccf[_0x2eb8cf(0xed)](),this[_0x2eb8cf(0x166)][_0x2eb8cf(0x15a)](_0x2eb8cf(0x138)),this[_0x2eb8cf(0x166)]['complete']();}[_0x3ac974(0x16f)](){var _0x16a823=_0x3ac974;this[_0x16a823(0x179)]||(this[_0x16a823(0x179)]=!0x0,this[_0x16a823(0xff)][_0x16a823(0x135)][_0x16a823(0xf6)](_0x4cc00f(this[_0x16a823(0x18a)]))[_0x16a823(0x16d)](_0x3f388c=>{var _0x4a155f=_0x16a823;switch(_0x3f388c){case _0x4a5ca1[_0x4a155f(0x173)]:this['_handleOffline']();break;case _0x4a5ca1[_0x4a155f(0x155)]:this[_0x4a155f(0x116)]();break;}}),this[_0x16a823(0xff)][_0x16a823(0x186)][_0x16a823(0xf6)](_0x4cc00f(this['dispose$']))[_0x16a823(0x16d)](_0x1519a4=>{var _0x5c81ab=_0x16a823;const {eventID:_0x3e9083}=_0x1519a4;switch(_0x3e9083){case _0x390d85['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x1519a4);break;case _0x390d85[_0x5c81ab(0x197)]:this[_0x5c81ab(0x127)](_0x1519a4);break;case _0x390d85[_0x5c81ab(0x189)]:this[_0x5c81ab(0x13a)]();break;case _0x390d85['NEW_CHANGESETS']:this[_0x5c81ab(0x187)](_0x1519a4);break;}}));}[_0x3ac974(0x105)](){var _0x40729d=_0x3ac974;this['_collabSession'][_0x40729d(0x10b)]({'eventID':_0x390d85[_0x40729d(0x174)],'data':{'unitID':this[_0x40729d(0x17c)],'userID':this[_0x40729d(0xff)][_0x40729d(0x148)]()}},this[_0x40729d(0x17c)]);}['stopPresenting'](){var _0x2f9b6f=_0x3ac974;this[_0x2f9b6f(0x13f)]==='presenting'&&(this[_0x2f9b6f(0x166)]['next'](_0x2f9b6f(0x138)),this[_0x2f9b6f(0xff)][_0x2f9b6f(0x10b)]({'eventID':_0x390d85[_0x2f9b6f(0x189)],'data':{'unitID':this[_0x2f9b6f(0x17c)]}},this['_unitID']));}[_0x3ac974(0xef)](){var _0x788962=_0x3ac974;this[_0x788962(0x13f)]==='not-following'&&(this['_status$'][_0x788962(0x15a)]('following'),this[_0x788962(0x151)]());}[_0x3ac974(0x168)](){var _0x178a7c=_0x3ac974;this[_0x178a7c(0x13f)]===_0x178a7c(0x117)&&this['_stopFollowing']();}['_handleNewHost'](_0xe4cd6a){var _0x20f90c=_0x3ac974;const {presenter:_0x2b6bc2}=_0xe4cd6a[_0x20f90c(0x18f)],_0x27fe7f=this[_0x20f90c(0xff)]['getMemberID']();this[_0x20f90c(0x13b)]=_0x2b6bc2,_0x2b6bc2===_0x27fe7f?(this[_0x20f90c(0x12c)](),this[_0x20f90c(0x154)]()):this[_0x20f90c(0x13f)]!==_0x20f90c(0x125)&&(this[_0x20f90c(0xec)](),this[_0x20f90c(0x151)]());}[_0x3ac974(0x18e)](){var _0x507b04=_0x3ac974;const _0x58f88f={'eventID':_0x390d85[_0x507b04(0x17b)]};this[_0x507b04(0xff)][_0x507b04(0x10b)](_0x58f88f,this['_unitID']);}[_0x3ac974(0x13a)](){var _0x219135=_0x3ac974;this[_0x219135(0x13b)]=null,this['_status']!==_0x219135(0x141)&&this[_0x219135(0x108)]();}[_0x3ac974(0x187)](_0x1c6ee1){var _0x3dd6df=_0x3ac974;if(this[_0x3dd6df(0x13f)]===_0x3dd6df(0x117)&&this['_presenter']===_0x1c6ee1[_0x3dd6df(0x18f)]['memberID']){const _0x1aac51=_0x6c5b2b(_0x1c6ee1[_0x3dd6df(0x18f)])['mutations'][_0x3dd6df(0x11c)]()[_0x3dd6df(0xeb)](_0x58524b=>_0x58524b['id']===_0x1652a5['id']);if(_0x1aac51){const _0xe5988f=_0x1aac51[_0x3dd6df(0x144)]['unitId'],_0x3c5372=_0x1aac51[_0x3dd6df(0x144)]['sheet']['id'];setTimeout(()=>{var _0x1ee6e6=_0x3dd6df;this['_commandService'][_0x1ee6e6(0x176)](_0x34165f['id'],{'unitId':_0xe5988f,'subUnitId':_0x3c5372},{'fromCollab':!0x0});});}}}[_0x3ac974(0x154)](){var _0x3999e6=_0x3ac974;this[_0x3999e6(0x166)][_0x3999e6(0x15a)]('presenting');const _0x21578f=new Map(),_0x49eb17=this['_commandDisposable']=new _0x18853a();_0x49eb17[_0x3999e6(0x14b)](_0x41007c(()=>{var _0x1759f3=_0x3999e6;_0x21578f[_0x1759f3(0x161)](_0x19b2bf=>_0x19b2bf['complete']()),_0x21578f[_0x1759f3(0x120)]();})),_0x49eb17[_0x3999e6(0x14b)](this[_0x3999e6(0xfa)][_0x3999e6(0x198)](_0x458e22=>{var _0x3522a6=_0x3999e6,_0x8b5339;if(_0x458e22[_0x3522a6(0xea)]!==_0x3a3e50[_0x3522a6(0x188)]||!this[_0x3522a6(0x143)][_0x3522a6(0x123)](_0x458e22['id']))return;const {id:_0x59136d}=_0x458e22;let _0x3129d6;_0x21578f['has'](_0x59136d)?_0x3129d6=_0x21578f['get'](_0x59136d):(_0x3129d6=new _0x528647(),_0x21578f['set'](_0x59136d,_0x3129d6),_0x3129d6[_0x3522a6(0xf6)](_0x5a0b04((_0x8b5339=this[_0x3522a6(0x106)][_0x3522a6(0x16b)](Pe))!=null?_0x8b5339:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x32e163=>{var _0x268fd4=_0x3522a6;this['_collabSession'][_0x268fd4(0x10b)]({'eventID':_0x390d85[_0x268fd4(0x197)],'data':{'unitID':this[_0x268fd4(0x17c)],'operations':{[_0x32e163['id']]:{'id':_0x32e163['id'],'params':JSON[_0x268fd4(0x13d)](_0x32e163[_0x268fd4(0x144)])}}}},this[_0x268fd4(0x17c)]);})),_0x3129d6[_0x3522a6(0x15a)](_0x458e22);})),this[_0x3999e6(0x143)][_0x3999e6(0x15b)](this[_0x3999e6(0x17c)])[_0x3999e6(0x161)](_0x3ad86f=>this['_collabSession'][_0x3999e6(0x10b)]({'eventID':_0x390d85['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3999e6(0x17c)],'operations':{[_0x3ad86f['id']]:{'id':_0x3ad86f['id'],'params':JSON[_0x3999e6(0x13d)](_0x3ad86f[_0x3999e6(0x144)])}}}},this[_0x3999e6(0x17c)]));}[_0x3ac974(0xec)](){var _0x2fb6d9=_0x3ac974,_0x457fd0;this[_0x2fb6d9(0x166)][_0x2fb6d9(0x15a)](_0x2fb6d9(0x138)),(_0x457fd0=this[_0x2fb6d9(0x160)])==null||_0x457fd0[_0x2fb6d9(0xed)](),this[_0x2fb6d9(0x160)]=null;}[_0x3ac974(0x151)](){var _0xd428d4=_0x3ac974,_0x2a4d43;(_0x2a4d43=this[_0xd428d4(0x160)])==null||_0x2a4d43[_0xd428d4(0xed)](),this[_0xd428d4(0x166)]['next'](_0xd428d4(0x117));}[_0x3ac974(0x108)](){var _0x37c695=_0x3ac974,_0xefa9d8;this[_0x37c695(0x166)]['next'](_0x37c695(0x138)),(_0xefa9d8=this[_0x37c695(0x160)])==null||_0xefa9d8[_0x37c695(0xed)](),this[_0x37c695(0x160)]=null;}['_stopFollowing'](){var _0x3b4d4e=_0x3ac974,_0x4054d9;this[_0x3b4d4e(0x166)][_0x3b4d4e(0x15a)](_0x3b4d4e(0x125)),(_0x4054d9=this[_0x3b4d4e(0x160)])==null||_0x4054d9[_0x3b4d4e(0xed)]();}['_handleOperation'](_0xa3ecdb){var _0x565f05=_0x3ac974;if([_0x565f05(0x141),_0x565f05(0x125),_0x565f05(0x158)][_0x565f05(0x171)](this[_0x565f05(0x13f)])||!_0xa3ecdb['data'][_0x565f05(0x18d)]||_0xa3ecdb[_0x565f05(0x18f)][_0x565f05(0x18d)]===this[_0x565f05(0xff)][_0x565f05(0x148)]())return;this[_0x565f05(0x13f)]==='idle'&&this['_startFollowing']();const _0x430d2c=_0xa3ecdb[_0x565f05(0x18f)][_0x565f05(0x15f)];Object[_0x565f05(0x10c)](_0x430d2c)[_0x565f05(0x161)](_0x57af1c=>{var _0x416915=_0x565f05;this[_0x416915(0xfa)]['executeCommand'](_0x57af1c['id'],_0x57af1c[_0x416915(0x144)]?JSON[_0x416915(0xf4)](_0x57af1c[_0x416915(0x144)]):null,{'fromCollab':!0x0});});}[_0x3ac974(0x100)](){var _0xcf6db6=_0x3ac974,_0x218709;this[_0xcf6db6(0x166)][_0xcf6db6(0x15a)](_0xcf6db6(0x158)),(_0x218709=this['_commandDisposable'])==null||_0x218709['dispose']();}[_0x3ac974(0x116)](){var _0x1f0a89=_0x3ac974;this[_0x1f0a89(0x166)]['next'](_0x1f0a89(0x138)),this['_fetchOperations']();}};C=Z([f(0x2,_0x1eb131),f(0x3,_0xa4beab(L)),f(0x4,_0x2474fb)],C);function Te(){var _0x29e8be=_0x3ac974;const _0x3c43e2=_0x1221e9(I),_0x5d88cb=_0x1221e9(_0x222f08),_0x32afc0=_0x5245c7(()=>_0x5d88cb[_0x29e8be(0x113)](_0x54a5fc['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1b10ef,_0x515d34]=_0x2438be(null),[_0x3d1f59,_0x5ea3b1]=_0x2438be(h[_0x29e8be(0x118)]),_0x5ee29e=_0x26cc02(null);return _0x4e57b8(()=>(_0x32afc0&&_0x3c43e2[_0x29e8be(0x181)](_0x32afc0[_0x29e8be(0x15e)]())[_0x29e8be(0x11d)](_0xccb13e=>{var _0x4c84b5=_0x29e8be;_0x515d34(_0xccb13e),_0x5ee29e['current']=_0xccb13e[_0x4c84b5(0x17e)][_0x4c84b5(0x16d)](_0x566512=>{_0x5ea3b1(_0x566512);});}),()=>{var _0x49576d=_0x29e8be,_0x380f2c;(_0x380f2c=_0x5ee29e['current'])==null||_0x380f2c[_0x49576d(0x167)](),_0x5ee29e['current']=null;}),[_0x32afc0,_0x3c43e2]),_0x1b10ef?_0x315ae3(_0x4a5ac9,{'align':_0x29e8be(0x183),'disabled':_0x3d1f59===h['OFFLINE'],'className':_0x29e8be(0x12b),'overlay':_0x315ae3($e,{'status':_0x3d1f59,'coordinator':_0x1b10ef}),'children':_0x315ae3(_0x29e8be(0x12e),{'className':_0x3ec8f8(_0x29e8be(0x157),{'univer-cursor-not-allowed':_0x3d1f59===h[_0x29e8be(0x173)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3d1f59!==h[_0x29e8be(0x173)]}),'type':_0x29e8be(0x12e),'children':_0x315ae3(B,{'className':_0x29e8be(0x17d)})})}):null;}function $e(_0x26ec05){var _0x214697=_0x3ac974;const {status:_0x1c6e18,coordinator:_0x5ceaf0}=_0x26ec05;switch(_0x1c6e18){case h[_0x214697(0x118)]:return _0x315ae3(Fe,{'coordinator':_0x5ceaf0});case h[_0x214697(0x111)]:return _0x315ae3(He,{'coordinator':_0x5ceaf0});case h[_0x214697(0x134)]:return _0x315ae3(je,{'coordinator':_0x5ceaf0});case h['OFFLINE']:return _0x315ae3(Ve,{});case h[_0x214697(0x124)]:return _0x315ae3(Ue,{'coordinator':_0x5ceaf0});default:return null;}}function Fe(_0x52ad0e){var _0x3d04a3=_0x3ac974;const {coordinator:_0x1a361e}=_0x52ad0e;return _0x4c43ef(_0x3328e8,{'children':[_0x315ae3('div',{'className':_0x3d04a3(0xf5),'children':'Present\x20this\x20document'}),_0x315ae3(_0x9e9e1c,{'onClick':()=>_0x1a361e[_0x3d04a3(0x105)](),'children':'Start'})]});}function _0x4571(_0x1a92e0,_0x2db796){var _0x53cfb9=_0x53cf();return _0x4571=function(_0x4571c3,_0x338da0){_0x4571c3=_0x4571c3-0xe7;var _0x13741c=_0x53cfb9[_0x4571c3];return _0x13741c;},_0x4571(_0x1a92e0,_0x2db796);}function He(_0x53240b){var _0x7ed4e3=_0x3ac974;const {coordinator:_0xd685e5}=_0x53240b;return _0x4c43ef(_0x3328e8,{'children':[_0x315ae3(_0x7ed4e3(0x194),{'className':_0x7ed4e3(0xf5),'children':_0x7ed4e3(0x18c)}),_0x315ae3(_0x9e9e1c,{'onClick':()=>_0xd685e5[_0x7ed4e3(0x168)](),'children':_0x7ed4e3(0x165)})]});}function je(_0x1b5859){var _0x2f289b=_0x3ac974;const {coordinator:_0x273fe1}=_0x1b5859;return _0x4c43ef(_0x3328e8,{'children':[_0x315ae3(_0x2f289b(0x194),{'className':_0x2f289b(0xf5),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x315ae3(_0x9e9e1c,{'variant':_0x2f289b(0xf1),'onClick':()=>_0x273fe1[_0x2f289b(0xef)](),'children':'Start\x20following'})]});}function Ue(_0x1bacbd){var _0x110c8e=_0x3ac974;const {coordinator:_0x93f6fc}=_0x1bacbd;return _0x4c43ef(_0x3328e8,{'children':[_0x315ae3(_0x110c8e(0x194),{'className':_0x110c8e(0xf5),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x315ae3(_0x9e9e1c,{'variant':_0x110c8e(0x11a),'onClick':()=>_0x93f6fc['stopPresenting'](),'children':_0x110c8e(0x103)})]});}function Ve(){var _0x111e7e=_0x3ac974;return _0x315ae3(_0x3328e8,{'children':_0x111e7e(0xfe)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x56f5cd,_0x35a992,_0x585f46,_0x2cb50e)=>{var _0x48dce9=_0x3ac974;for(var _0x156729=_0x2cb50e>0x1?void 0x0:_0x2cb50e?Me(_0x35a992,_0x585f46):_0x35a992,_0x491e67=_0x56f5cd[_0x48dce9(0x152)]-0x1,_0x354d9b;_0x491e67>=0x0;_0x491e67--)(_0x354d9b=_0x56f5cd[_0x491e67])&&(_0x156729=_0x354d9b(_0x156729)||_0x156729);return _0x156729;},$=(_0x2a4dd2,_0x1b4e23)=>(_0x3e0846,_0x23e5c8)=>_0x1b4e23(_0x3e0846,_0x23e5c8,_0x2a4dd2);let b=class extends _0x584273{constructor(_0x3e19d0,_0x1efcf2){var _0x5841f6=_0x3ac974;super(),this[_0x5841f6(0x112)]=_0x3e19d0,this[_0x5841f6(0xf2)]=_0x1efcf2,this[_0x5841f6(0x196)]();}[_0x3ac974(0x196)](){var _0x1add61=_0x3ac974;this[_0x1add61(0x15c)](this[_0x1add61(0xf2)][_0x1add61(0x162)](_0x4cea43['HEADER_MENU'],()=>_0x5daf4e(Te,this['_injector'])));}};b=ke([$(0x0,_0xa4beab(_0x4f2f9e)),$(0x1,_0x50343c)],b);var Ge=Object[_0x3ac974(0x13c)],We=Object['getOwnPropertyDescriptor'],Ye=(_0xeb2aa4,_0x1e2119,_0x4df9af)=>_0x1e2119 in _0xeb2aa4?Ge(_0xeb2aa4,_0x1e2119,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4df9af}):_0xeb2aa4[_0x1e2119]=_0x4df9af,Be=(_0xf09bb1,_0xbc18c4,_0x2cb8a3,_0x1713f8)=>{var _0x3c419f=_0x3ac974;for(var _0x56dee3=_0x1713f8>0x1?void 0x0:_0x1713f8?We(_0xbc18c4,_0x2cb8a3):_0xbc18c4,_0x572720=_0xf09bb1[_0x3c419f(0x152)]-0x1,_0x36ff19;_0x572720>=0x0;_0x572720--)(_0x36ff19=_0xf09bb1[_0x572720])&&(_0x56dee3=_0x36ff19(_0x56dee3)||_0x56dee3);return _0x56dee3;},F=(_0x795830,_0x4dbb53)=>(_0x576098,_0x3bf77f)=>_0x4dbb53(_0x576098,_0x3bf77f,_0x795830),J=(_0x913e9d,_0x4ba3eb,_0x30c853)=>Ye(_0x913e9d,typeof _0x4ba3eb!=_0x3ac974(0xee)?_0x4ba3eb+'':_0x4ba3eb,_0x30c853);const Ze=_0x3ac974(0x17f);let O=class extends _0x504502{constructor(_0xf071a=T,_0x5d187d,_0x5cde34){var _0x595fa4=_0x3ac974;super(),this[_0x595fa4(0x132)]=_0xf071a,this[_0x595fa4(0x112)]=_0x5d187d,this[_0x595fa4(0x106)]=_0x5cde34;const {..._0x2588d0}=_0x20bd30({},T,this[_0x595fa4(0x132)]);this[_0x595fa4(0x106)][_0x595fa4(0x136)](Oe,_0x2588d0);}[_0x3ac974(0x128)](){var _0x4155ac=_0x3ac974;_0xb22a41(this[_0x4155ac(0x112)],_0x3f6a22([[L],[I],[m],[b]],this[_0x4155ac(0x132)]['override'])),_0x87ed34(this['_injector'],[[m]]);}[_0x3ac974(0x156)](){var _0x250746=_0x3ac974;_0x87ed34(this[_0x250746(0x112)],[[b]]);}};J(O,_0x3ac974(0xea),_0x54a5fc['UNIVER_UNKNOWN']),J(O,_0x3ac974(0xf3),Ze),O=Be([_0x2290ed(_0x44051f),F(0x1,_0xa4beab(_0x4f2f9e)),F(0x2,_0x1eb131)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ function _0x3d91(_0x2e6f1a,_0x4b765a){var _0x20f4c1=_0x20f4();return _0x3d91=function(_0x3d9129,_0x552079){_0x3d9129=_0x3d9129-0x8e;var _0x1c3389=_0x20f4c1[_0x3d9129];return _0x1c3389;},_0x3d91(_0x2e6f1a,_0x4b765a);}var _0x53df31=_0x3d91;(function(_0x4b8abe,_0x5a696a){var _0x2290ac=_0x3d91,_0x423cd0=_0x4b8abe();while(!![]){try{var _0xf9917e=-parseInt(_0x2290ac(0x97))/0x1*(-parseInt(_0x2290ac(0xc0))/0x2)+parseInt(_0x2290ac(0xbb))/0x3*(-parseInt(_0x2290ac(0x94))/0x4)+-parseInt(_0x2290ac(0xef))/0x5*(parseInt(_0x2290ac(0xa5))/0x6)+-parseInt(_0x2290ac(0xa9))/0x7+-parseInt(_0x2290ac(0xa8))/0x8+-parseInt(_0x2290ac(0xc3))/0x9*(-parseInt(_0x2290ac(0xcd))/0xa)+parseInt(_0x2290ac(0x131))/0xb;if(_0xf9917e===_0x5a696a)break;else _0x423cd0['push'](_0x423cd0['shift']());}catch(_0x4e684b){_0x423cd0['push'](_0x423cd0['shift']());}}}(_0x20f4,0xa25ee));var q=Object[_0x53df31(0xb2)],z=(_0x57a188,_0x542b4a,_0x4daf94)=>_0x542b4a in _0x57a188?q(_0x57a188,_0x542b4a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4daf94}):_0x57a188[_0x542b4a]=_0x4daf94,d=(_0x46d395,_0x48ad5f,_0xed8e9d)=>z(_0x46d395,typeof _0x48ad5f!=_0x53df31(0xc5)?_0x48ad5f+'':_0x48ad5f,_0xed8e9d);import{CollaborationSessionService as _0x4b1bd5,SessionStatus as _0x39f60d,UniverCollaborationClientPlugin as _0x10d435}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5a04f9,toDisposable as _0x49d4cb,Inject as _0x20c164,IUniverInstanceService as _0x95cc2e,Injector as _0x3ccf0b,IConfigService as _0x4f4f6d,ICommandService as _0x4f089e,RxDisposable as _0x48dfad,UniverInstanceType as _0x385cb0,DisposableCollection as _0x415c13,CommandType as _0x52360d,DependentOn as _0x1064d3,Plugin as _0x1abe21,merge as _0x7c3f35,registerDependencies as _0x23b8d8,mergeOverrideWithDependencies as _0x5e3bcd,touchDependencies as _0x53fd42}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1ee7b5,InsertSheetMutation as _0x13e727}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x57f54d,SetScrollOperation as _0x38ded1}from'@univerjs/sheets-ui';import{useDependency as _0x5539b1,useObservable as _0x3f45f9,IUIPartsService as _0x1bfc6c,BuiltInUIPart as _0xdc8fee,connectInjector as _0x5602d2}from'@univerjs/ui';import{jsx as _0x12edff,jsxs as _0x14e079,Fragment as _0x483276}from'react/jsx-runtime';import{Dropdown as _0x347dd2,clsx as _0x29ceb8,Button as _0x160b32}from'@univerjs/design';import{forwardRef as _0xbb63ca,useRef as _0x307f07,createElement as _0x3ba063,useState as _0x43b4fd,useEffect as _0xfc1829}from'react';import{CollaborationEvent as _0x22d9e1,parseProtocolChangeset as _0x5a28cf}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5ef958,Subject as _0x565a21}from'rxjs';import{takeUntil as _0x2230bd,throttleTime as _0x30ccf3}from'rxjs/operators';const Oe=_0x53df31(0xd4),T={};class L extends _0x5a04f9{constructor(){var _0x1f872d=_0x53df31;super(...arguments),d(this,_0x1f872d(0x137),new Set()),d(this,_0x1f872d(0xf6),new Set());}['registerSharedOperation'](_0x437185){var _0x4ba449=_0x53df31;return this[_0x4ba449(0x137)]['add'](_0x437185),_0x49d4cb(()=>this['_sharedOperations'][_0x4ba449(0xb6)](_0x437185));}['registerInitialStateReporter'](_0x15289a){var _0x1a2919=_0x53df31;return this[_0x1a2919(0xf6)][_0x1a2919(0xf2)](_0x15289a),_0x49d4cb(()=>this[_0x1a2919(0xf6)][_0x1a2919(0xb6)](_0x15289a));}[_0x53df31(0xed)](_0x3b9782){var _0x2d8209=_0x53df31;return this[_0x2d8209(0x137)][_0x2d8209(0x95)](_0x3b9782);}[_0x53df31(0xec)](_0x4d341c){var _0x213e11=_0x53df31;return Array[_0x213e11(0x116)](this[_0x213e11(0xf6)])[_0x213e11(0xe6)](_0x538005=>_0x538005(_0x4d341c));}}function _0x20f4(){var _0x4518ef=['presenting','3ShDHDG','not-following','Start\x20following','_beIdle','memberID','10WKkiMi','current','length','63ksOLIB','_commandDisposable','symbol','attrs','call','disposeWithMe','apply','className','getUnitId','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','1068590dXBQmz','get','idSuffix','_startFollowing','_startLiveShareCoordinator','presenter','following','live-share.config','IDLE','_handleTerminate','OFFLINE','tryStartPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','_config','type','asObservable','colorChannel1','currentColor','concat','values','LIVESHARE_FETCH_OPERATIONS','icon','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','replace','fill','map','_handleOnline','UNIVER_UNKNOWN','getConfig','init','subscribe','getInitialStates','shouldShareOperation','_stopFollowing','12745Uypbkk','LIVESHARE_REQUEST_HOST','mask','add','NOT_FOLLOWING','SAME_OPERATION_SHARE_INTERVAL','hasOwnProperty','_reporters','startFollowing','entries','event$','propertyIsEnumerable','_startPresenting','_injector','reverse','live-share-icon','dispose$','createInstance','function','children','pipe','data','forEach','onStarting','_commandService','UNIVER_SHEET','_status$','PRESENTING','You\x27re\x20following\x20the\x20presenter','params','univerjs-icon\x20univerjs-icon-','next','_uiPartsService','text','_collabSessionService','prototype','_mountLiveShare','idle','getOwnPropertySymbols','from','toString','getValue','unitId','Start','registerSharedOperation','onCommandExecuted','string','getOwnPropertyDescriptor','then','assign','_handleNewChangeSets','setConfig','LIVESHARE_OPERATION','getCurrentTypeOfUnit$','Stop\x20presenting','extend','xlink:href','_entities','requireSession','path','set','sheet','_handleNewHost','ONLINE','find','dispose','16650920jHANVC','send','status$','default','_handleOffline','_stopPresenting','_sharedOperations','_presenter','getLiveShareCoordinator','offline','_init','url(#$1','_liveShareService','You\x27re\x20not\x20following\x20the\x20presenter','stringify','use','getMemberID','UniverIcon','defIds','922820DqhyJK','has','clear','263089ufROqc','end','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','includes','1em','_status','stopFollowing','_configService','tag','_univerInstanceService','pluginName','_unitID','defs','getTypeOfUnitDisposed$','2088RmAThg','complete','NEW_CHANGESETS','5385640QPFCfv','7848022OFOBKj','button','UNIVER_LIVE_SHARE_PLUGIN','mutations','executeCommand','Present\x20this\x20document','displayName','http://www.w3.org/2000/svg','You\x27re\x20presenting\x20the\x20document','defineProperty','onRendered','_fetchOperations','parse','delete','_collabSession','div','svg'];_0x20f4=function(){return _0x4518ef;};return _0x20f4();}var Ee=Object[_0x53df31(0x11e)],we=(_0x502001,_0x417002,_0x697c72,_0x2cfd1a)=>{var _0x150166=_0x53df31;for(var _0x394b2b=_0x2cfd1a>0x1?void 0x0:_0x2cfd1a?Ee(_0x417002,_0x697c72):_0x417002,_0x1347fc=_0x502001[_0x150166(0xc2)]-0x1,_0x3cc759;_0x1347fc>=0x0;_0x1347fc--)(_0x3cc759=_0x502001[_0x1347fc])&&(_0x394b2b=_0x3cc759(_0x394b2b)||_0x394b2b);return _0x394b2b;},Ne=(_0x57b3a1,_0x47da97)=>(_0x1fc7ff,_0x23bddc)=>_0x47da97(_0x1fc7ff,_0x23bddc,_0x57b3a1);let m=class extends _0x5a04f9{constructor(_0x3d958f){var _0x5d583b=_0x53df31;super(),this[_0x5d583b(0x13d)]=_0x3d958f,this['_init']();}[_0x53df31(0x13b)](){[_0x57f54d['id'],_0x38ded1['id'],_0x1ee7b5['id']]['forEach'](_0x4844a6=>{var _0x37d026=_0x3d91;this[_0x37d026(0xc8)](this[_0x37d026(0x13d)][_0x37d026(0x11b)](_0x4844a6));});}};m=we([Ne(0x0,_0x20c164(L))],m);var c=function(){var _0x136e57=_0x53df31;return c=Object[_0x136e57(0x120)]||function(_0x372b37){var _0x51348e=_0x136e57;for(var _0x1133c5,_0x2aebbe=0x1,_0x3b568c=arguments[_0x51348e(0xc2)];_0x2aebbe<_0x3b568c;_0x2aebbe++){_0x1133c5=arguments[_0x2aebbe];for(var _0x14c37f in _0x1133c5)Object['prototype'][_0x51348e(0xf5)][_0x51348e(0xc7)](_0x1133c5,_0x14c37f)&&(_0x372b37[_0x14c37f]=_0x1133c5[_0x14c37f]);}return _0x372b37;},c[_0x136e57(0xc9)](this,arguments);},Ce=function(_0x4aa172,_0x5c0395){var _0x4afcbf=_0x53df31,_0x44cb46={};for(var _0x31abbd in _0x4aa172)Object[_0x4afcbf(0x112)]['hasOwnProperty'][_0x4afcbf(0xc7)](_0x4aa172,_0x31abbd)&&_0x5c0395['indexOf'](_0x31abbd)<0x0&&(_0x44cb46[_0x31abbd]=_0x4aa172[_0x31abbd]);if(_0x4aa172!=null&&typeof Object[_0x4afcbf(0x115)]==_0x4afcbf(0x101)){for(var _0x41d4f8=0x0,_0x31abbd=Object[_0x4afcbf(0x115)](_0x4aa172);_0x41d4f8<_0x31abbd[_0x4afcbf(0xc2)];_0x41d4f8++)_0x5c0395['indexOf'](_0x31abbd[_0x41d4f8])<0x0&&Object[_0x4afcbf(0x112)][_0x4afcbf(0xfa)][_0x4afcbf(0xc7)](_0x4aa172,_0x31abbd[_0x41d4f8])&&(_0x44cb46[_0x31abbd[_0x41d4f8]]=_0x4aa172[_0x31abbd[_0x41d4f8]]);}return _0x44cb46;},W=_0xbb63ca(function(_0x1f4e85,_0x27ac37){var _0x77522a=_0x53df31,_0x89d6d9=_0x1f4e85[_0x77522a(0xe2)],_0x877f69=_0x1f4e85['id'],_0x5033d9=_0x1f4e85[_0x77522a(0xca)],_0x409e9a=_0x1f4e85['extend'],_0x2906be=Ce(_0x1f4e85,[_0x77522a(0xe2),'id',_0x77522a(0xca),_0x77522a(0x126)]),_0x540ff5=_0x77522a(0x10d)[_0x77522a(0xdf)](_0x877f69,'\x20')[_0x77522a(0xdf)](_0x5033d9||'')['trim'](),_0x3a2255=_0x307f07('_'['concat'](Le()));return Y(_0x89d6d9,''[_0x77522a(0xdf)](_0x877f69),{'defIds':_0x89d6d9[_0x77522a(0x93)],'idSuffix':_0x3a2255[_0x77522a(0xc1)]},c({'ref':_0x27ac37,'className':_0x540ff5},_0x2906be),_0x409e9a);});function Y(_0x337e79,_0x1f57fc,_0x1ab263,_0x30218f,_0x458e39){var _0x4f74a2=_0x53df31;return _0x3ba063(_0x337e79[_0x4f74a2(0x9f)],c(c({'key':_0x1f57fc},De(_0x337e79,_0x1ab263,_0x458e39)),_0x30218f),(xe(_0x337e79,_0x1ab263)[_0x4f74a2(0x102)]||[])[_0x4f74a2(0xe6)](function(_0x428176,_0x2ec799){var _0x1daa87=_0x4f74a2;return Y(_0x428176,''['concat'](_0x1f57fc,'-')['concat'](_0x337e79[_0x1daa87(0x9f)],'-')[_0x1daa87(0xdf)](_0x2ec799),_0x1ab263,void 0x0,_0x458e39);}));}function De(_0x39fd09,_0x2e7f8d,_0x5e5307){var _0x168b80=_0x53df31,_0x16da24=c({},_0x39fd09[_0x168b80(0xc6)]);_0x5e5307!=null&&_0x5e5307[_0x168b80(0xdd)]&&_0x16da24[_0x168b80(0xe5)]===_0x168b80(0xdd)&&(_0x16da24['fill']=_0x5e5307['colorChannel1']),_0x39fd09[_0x168b80(0x9f)]==='mask'&&_0x16da24['id']&&(_0x16da24['id']=_0x16da24['id']+_0x2e7f8d['idSuffix']),Object['entries'](_0x16da24)[_0x168b80(0x105)](function(_0x383361){var _0x7b50dd=_0x168b80,_0x22a359=_0x383361[0x0],_0x482314=_0x383361[0x1];_0x22a359===_0x7b50dd(0xf1)&&typeof _0x482314==_0x7b50dd(0x11d)&&(_0x16da24[_0x22a359]=_0x482314[_0x7b50dd(0xe4)](/url\(#(.*)\)/,_0x7b50dd(0x13c)['concat'](_0x2e7f8d['idSuffix'],')')));});var _0xfd050e=_0x2e7f8d[_0x168b80(0x93)];return!_0xfd050e||_0xfd050e[_0x168b80(0xc2)]===0x0||(_0x39fd09[_0x168b80(0x9f)]===_0x168b80(0x90)&&_0x16da24['xlink:href']&&(_0x16da24['xlink:href']=_0x16da24[_0x168b80(0x127)]+_0x2e7f8d[_0x168b80(0xcf)]),Object[_0x168b80(0xf8)](_0x16da24)[_0x168b80(0x105)](function(_0x4884ef){var _0x28e35e=_0x168b80,_0x33ec78=_0x4884ef[0x0],_0x2abb93=_0x4884ef[0x1];typeof _0x2abb93=='string'&&(_0x16da24[_0x33ec78]=_0x2abb93[_0x28e35e(0xe4)](/url\(#(.*)\)/,_0x28e35e(0x13c)[_0x28e35e(0xdf)](_0x2e7f8d[_0x28e35e(0xcf)],')')));})),_0x16da24;}function xe(_0x5c6681,_0x48df57){var _0x3f34a6=_0x53df31,_0x27d015,_0x41517a=_0x48df57[_0x3f34a6(0x93)];return!_0x41517a||_0x41517a[_0x3f34a6(0xc2)]===0x0?_0x5c6681:_0x5c6681[_0x3f34a6(0x9f)]===_0x3f34a6(0xa3)&&(!((_0x27d015=_0x5c6681[_0x3f34a6(0x102)])===null||_0x27d015===void 0x0)&&_0x27d015['length'])?c(c({},_0x5c6681),{'children':_0x5c6681[_0x3f34a6(0x102)][_0x3f34a6(0xe6)](function(_0xb69e79){var _0x347c4a=_0x3f34a6;return typeof _0xb69e79['attrs']['id']=='string'&&_0x41517a&&_0x41517a['includes'](_0xb69e79[_0x347c4a(0xc6)]['id'])?c(c({},_0xb69e79),{'attrs':c(c({},_0xb69e79[_0x347c4a(0xc6)]),{'id':_0xb69e79[_0x347c4a(0xc6)]['id']+_0x48df57[_0x347c4a(0xcf)]})}):_0xb69e79;})}):_0x5c6681;}function Le(){var _0x4ffc99=_0x53df31;return Math['random']()[_0x4ffc99(0x117)](0x24)['substring'](0x2,0x8);}W[_0x53df31(0xaf)]=_0x53df31(0x92);var ye={'tag':_0x53df31(0xb9),'attrs':{'xmlns':_0x53df31(0xb0),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x53df31(0x9b)},'children':[{'tag':_0x53df31(0x12a),'attrs':{'fill':_0x53df31(0xde),'d':_0x53df31(0xe3)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x53df31(0xcc),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0xbb63ca(function(_0x2e63d9,_0x377af1){var _0x2a75a3=_0x53df31;return _0x3ba063(W,Object[_0x2a75a3(0x120)]({},_0x2e63d9,{'id':_0x2a75a3(0xfe),'ref':_0x377af1,'icon':ye}));});B[_0x53df31(0xaf)]='LiveShareIcon';var Re=Object[_0x53df31(0x11e)],Z=(_0x4f775a,_0x403f94,_0x532ada,_0x4055d8)=>{for(var _0x12e545=_0x4055d8>0x1?void 0x0:_0x4055d8?Re(_0x403f94,_0x532ada):_0x403f94,_0xa64eae=_0x4f775a['length']-0x1,_0x5a4279;_0xa64eae>=0x0;_0xa64eae--)(_0x5a4279=_0x4f775a[_0xa64eae])&&(_0x12e545=_0x5a4279(_0x12e545)||_0x12e545);return _0x12e545;},f=(_0x38615d,_0x3cb488)=>(_0x252687,_0x376cbb)=>_0x3cb488(_0x252687,_0x376cbb,_0x38615d);let I=class extends _0x48dfad{constructor(_0x4828ef,_0x298a0a,_0x81f49b){var _0x38cbd1=_0x53df31;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x4828ef,this['_injector']=_0x298a0a,this[_0x38cbd1(0x111)]=_0x81f49b,this[_0x38cbd1(0x13b)]());}async[_0x53df31(0x139)](_0x4036ed){var _0xf5bc8e=_0x53df31;return this[_0xf5bc8e(0x128)][_0xf5bc8e(0x95)](_0x4036ed)||await this[_0xf5bc8e(0xd1)](_0x4036ed),this[_0xf5bc8e(0x128)][_0xf5bc8e(0xce)](_0x4036ed);}[_0x53df31(0x13b)](){var _0x878241=_0x53df31;this[_0x878241(0xa0)]['getTypeOfUnitAdded$'](_0x385cb0[_0x878241(0x108)])['pipe'](_0x2230bd(this[_0x878241(0xff)]))[_0x878241(0xeb)](async _0x3b4ed6=>{var _0x355ee1=_0x878241;const _0x22b912=_0x3b4ed6[_0x355ee1(0xcb)]();this[_0x355ee1(0x128)][_0x355ee1(0x95)](_0x22b912)||this['_startLiveShareCoordinator'](_0x22b912);}),this[_0x878241(0xa0)][_0x878241(0xa4)](_0x385cb0[_0x878241(0x108)])[_0x878241(0x103)](_0x2230bd(this[_0x878241(0xff)]))['subscribe'](_0x374c95=>{var _0x4867ef=_0x878241;const _0x9f658=_0x374c95[_0x4867ef(0xcb)](),_0x1e823d=this[_0x4867ef(0x128)]['get'](_0x9f658);_0x1e823d==null||_0x1e823d['dispose']();});}async[_0x53df31(0xd1)](_0x254507){var _0x3a0bff=_0x53df31;const _0x26acb6=await this['_collabSessionService'][_0x3a0bff(0x129)](_0x254507),_0xcb8882=this['_injector'][_0x3a0bff(0x100)](C,_0x254507,_0x26acb6);return _0xcb8882[_0x3a0bff(0xea)](),this[_0x3a0bff(0x128)][_0x3a0bff(0x12b)](_0x254507,_0xcb8882),_0xcb8882;}};I=Z([f(0x0,_0x95cc2e),f(0x1,_0x20c164(_0x3ccf0b)),f(0x2,_0x20c164(_0x4b1bd5))],I);var h=(_0x4b75fb=>(_0x4b75fb[_0x53df31(0xd7)]=_0x53df31(0x13a),_0x4b75fb[_0x53df31(0xd5)]=_0x53df31(0x114),_0x4b75fb['FOLLOWING']=_0x53df31(0xd3),_0x4b75fb[_0x53df31(0xf3)]=_0x53df31(0xbc),_0x4b75fb[_0x53df31(0x10a)]=_0x53df31(0xba),_0x4b75fb))(h||{});const Pe=_0x53df31(0xf4),Ae=0xc8;let C=class extends _0x48dfad{constructor(_0x299591,_0x42c71a,_0x3e72b5,_0x1a4140,_0x32fb3b){var _0x4a2753=_0x53df31;super(),d(this,_0x4a2753(0x109),new _0x5ef958(_0x4a2753(0x114))),d(this,_0x4a2753(0x133),this[_0x4a2753(0x109)][_0x4a2753(0xdc)]()),d(this,_0x4a2753(0x13b),!0x1),d(this,'_commandDisposable',null),d(this,_0x4a2753(0x138),null),(this[_0x4a2753(0xa2)]=_0x299591,this[_0x4a2753(0xb7)]=_0x42c71a,this[_0x4a2753(0x9e)]=_0x3e72b5,this[_0x4a2753(0x13d)]=_0x1a4140,this[_0x4a2753(0x107)]=_0x32fb3b);}get[_0x53df31(0x9c)](){var _0x55d273=_0x53df31;return this[_0x55d273(0x109)][_0x55d273(0x118)]();}['dispose'](){var _0x418931=_0x53df31,_0x2a030c;(_0x2a030c=this['_commandDisposable'])==null||_0x2a030c['dispose'](),this[_0x418931(0x109)][_0x418931(0x10e)]('idle'),this[_0x418931(0x109)][_0x418931(0xa6)]();}[_0x53df31(0xea)](){var _0xc38259=_0x53df31;this[_0xc38259(0x13b)]||(this[_0xc38259(0x13b)]=!0x0,this[_0xc38259(0xb7)]['sessionStatus$']['pipe'](_0x2230bd(this[_0xc38259(0xff)]))[_0xc38259(0xeb)](_0x4a2e10=>{var _0x1aa09f=_0xc38259;switch(_0x4a2e10){case _0x39f60d[_0x1aa09f(0xd7)]:this[_0x1aa09f(0x135)]();break;case _0x39f60d[_0x1aa09f(0x12e)]:this[_0x1aa09f(0xe7)]();break;}}),this[_0xc38259(0xb7)][_0xc38259(0xf9)][_0xc38259(0x103)](_0x2230bd(this[_0xc38259(0xff)]))[_0xc38259(0xeb)](_0xf1bc07=>{var _0x5d6118=_0xc38259;const {eventID:_0x4ffbdb}=_0xf1bc07;switch(_0x4ffbdb){case _0x22d9e1['LIVESHARE_NEW_HOST']:this[_0x5d6118(0x12d)](_0xf1bc07);break;case _0x22d9e1['LIVESHARE_OPERATION']:this['_handleOperation'](_0xf1bc07);break;case _0x22d9e1['LIVESHARE_TERMINATE']:this[_0x5d6118(0xd6)]();break;case _0x22d9e1[_0x5d6118(0xa7)]:this[_0x5d6118(0x121)](_0xf1bc07);break;}}));}['tryStartPresenting'](){var _0x309274=_0x53df31;this['_collabSession']['send']({'eventID':_0x22d9e1[_0x309274(0xf0)],'data':{'unitID':this[_0x309274(0xa2)],'userID':this[_0x309274(0xb7)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){var _0x284dcc=_0x53df31;this['_status']===_0x284dcc(0xba)&&(this[_0x284dcc(0x109)][_0x284dcc(0x10e)]('idle'),this[_0x284dcc(0xb7)][_0x284dcc(0x132)]({'eventID':_0x22d9e1['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x284dcc(0xa2)]}},this[_0x284dcc(0xa2)]));}['startFollowing'](){var _0x9817c=_0x53df31;this[_0x9817c(0x9c)]==='not-following'&&(this['_status$']['next'](_0x9817c(0xd3)),this['_startFollowing']());}[_0x53df31(0x9d)](){var _0x52a0e0=_0x53df31;this[_0x52a0e0(0x9c)]===_0x52a0e0(0xd3)&&this[_0x52a0e0(0xee)]();}[_0x53df31(0x12d)](_0x17783e){var _0xd14cb0=_0x53df31;const {presenter:_0x7fd418}=_0x17783e['data'],_0xc52b26=this[_0xd14cb0(0xb7)][_0xd14cb0(0x91)]();this['_presenter']=_0x7fd418,_0x7fd418===_0xc52b26?(this['_stopFollowing'](),this[_0xd14cb0(0xfb)]()):this['_status']!==_0xd14cb0(0xbc)&&(this['_stopPresenting'](),this['_startFollowing']());}['_fetchOperations'](){var _0x1211bb=_0x53df31;const _0x20dfc7={'eventID':_0x22d9e1[_0x1211bb(0xe1)]};this['_collabSession'][_0x1211bb(0x132)](_0x20dfc7,this[_0x1211bb(0xa2)]);}[_0x53df31(0xd6)](){var _0x12c133=_0x53df31;this[_0x12c133(0x138)]=null,this['_status']!=='presenting'&&this[_0x12c133(0xbe)]();}['_handleNewChangeSets'](_0x53a12c){var _0x561afa=_0x53df31;if(this[_0x561afa(0x9c)]==='following'&&this[_0x561afa(0x138)]===_0x53a12c[_0x561afa(0x104)][_0x561afa(0xbf)]){const _0x265bbd=_0x5a28cf(_0x53a12c[_0x561afa(0x104)])[_0x561afa(0xac)][_0x561afa(0xfd)]()[_0x561afa(0x12f)](_0x16befc=>_0x16befc['id']===_0x13e727['id']);if(_0x265bbd){const _0x3f6643=_0x265bbd[_0x561afa(0x10c)][_0x561afa(0x119)],_0xe364f4=_0x265bbd[_0x561afa(0x10c)][_0x561afa(0x12c)]['id'];setTimeout(()=>{var _0x25c6a3=_0x561afa;this[_0x25c6a3(0x107)][_0x25c6a3(0xad)](_0x1ee7b5['id'],{'unitId':_0x3f6643,'subUnitId':_0xe364f4},{'fromCollab':!0x0});});}}}[_0x53df31(0xfb)](){var _0x4c83f1=_0x53df31;this[_0x4c83f1(0x109)][_0x4c83f1(0x10e)]('presenting');const _0x580b49=new Map(),_0x5d435c=this[_0x4c83f1(0xc4)]=new _0x415c13();_0x5d435c['add'](_0x49d4cb(()=>{var _0xb8ac38=_0x4c83f1;_0x580b49[_0xb8ac38(0x105)](_0xee73b5=>_0xee73b5[_0xb8ac38(0xa6)]()),_0x580b49[_0xb8ac38(0x96)]();})),_0x5d435c['add'](this[_0x4c83f1(0x107)][_0x4c83f1(0x11c)](_0x4d4bbf=>{var _0x59930c=_0x4c83f1,_0x428010;if(_0x4d4bbf[_0x59930c(0xdb)]!==_0x52360d['OPERATION']||!this[_0x59930c(0x13d)][_0x59930c(0xed)](_0x4d4bbf['id']))return;const {id:_0x1f98a1}=_0x4d4bbf;let _0x14fc4d;_0x580b49[_0x59930c(0x95)](_0x1f98a1)?_0x14fc4d=_0x580b49[_0x59930c(0xce)](_0x1f98a1):(_0x14fc4d=new _0x565a21(),_0x580b49['set'](_0x1f98a1,_0x14fc4d),_0x14fc4d[_0x59930c(0x103)](_0x30ccf3((_0x428010=this['_configService'][_0x59930c(0xe9)](Pe))!=null?_0x428010:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59930c(0xeb)](_0x1c7ac4=>{var _0x3593f5=_0x59930c;this[_0x3593f5(0xb7)][_0x3593f5(0x132)]({'eventID':_0x22d9e1[_0x3593f5(0x123)],'data':{'unitID':this[_0x3593f5(0xa2)],'operations':{[_0x1c7ac4['id']]:{'id':_0x1c7ac4['id'],'params':JSON[_0x3593f5(0x8f)](_0x1c7ac4[_0x3593f5(0x10c)])}}}},this[_0x3593f5(0xa2)]);})),_0x14fc4d[_0x59930c(0x10e)](_0x4d4bbf);})),this[_0x4c83f1(0x13d)][_0x4c83f1(0xec)](this[_0x4c83f1(0xa2)])[_0x4c83f1(0x105)](_0x50bc9f=>this[_0x4c83f1(0xb7)]['send']({'eventID':_0x22d9e1[_0x4c83f1(0x123)],'data':{'unitID':this[_0x4c83f1(0xa2)],'operations':{[_0x50bc9f['id']]:{'id':_0x50bc9f['id'],'params':JSON['stringify'](_0x50bc9f[_0x4c83f1(0x10c)])}}}},this[_0x4c83f1(0xa2)]));}[_0x53df31(0x136)](){var _0x371855=_0x53df31,_0xbc367e;this['_status$'][_0x371855(0x10e)](_0x371855(0x114)),(_0xbc367e=this['_commandDisposable'])==null||_0xbc367e[_0x371855(0x130)](),this[_0x371855(0xc4)]=null;}[_0x53df31(0xd0)](){var _0x2b917b=_0x53df31,_0x1b19f5;(_0x1b19f5=this['_commandDisposable'])==null||_0x1b19f5[_0x2b917b(0x130)](),this[_0x2b917b(0x109)][_0x2b917b(0x10e)](_0x2b917b(0xd3));}[_0x53df31(0xbe)](){var _0x31f84d=_0x53df31,_0x50e339;this[_0x31f84d(0x109)][_0x31f84d(0x10e)](_0x31f84d(0x114)),(_0x50e339=this[_0x31f84d(0xc4)])==null||_0x50e339[_0x31f84d(0x130)](),this[_0x31f84d(0xc4)]=null;}[_0x53df31(0xee)](){var _0x211cf7=_0x53df31,_0x518957;this[_0x211cf7(0x109)][_0x211cf7(0x10e)](_0x211cf7(0xbc)),(_0x518957=this[_0x211cf7(0xc4)])==null||_0x518957[_0x211cf7(0x130)]();}['_handleOperation'](_0x23121a){var _0x5990ee=_0x53df31;if([_0x5990ee(0xba),'not-following',_0x5990ee(0x13a)][_0x5990ee(0x9a)](this[_0x5990ee(0x9c)])||!_0x23121a[_0x5990ee(0x104)][_0x5990ee(0xd2)]||_0x23121a['data'][_0x5990ee(0xd2)]===this['_collabSession'][_0x5990ee(0x91)]())return;this['_status']===_0x5990ee(0x114)&&this['_startFollowing']();const _0x441352=_0x23121a['data']['operations'];Object[_0x5990ee(0xe0)](_0x441352)[_0x5990ee(0x105)](_0x293737=>{var _0xc29aa3=_0x5990ee;this['_commandService'][_0xc29aa3(0xad)](_0x293737['id'],_0x293737[_0xc29aa3(0x10c)]?JSON[_0xc29aa3(0xb5)](_0x293737[_0xc29aa3(0x10c)]):null,{'fromCollab':!0x0});});}[_0x53df31(0x135)](){var _0x284f4f=_0x53df31,_0x209275;this['_status$'][_0x284f4f(0x10e)](_0x284f4f(0x13a)),(_0x209275=this[_0x284f4f(0xc4)])==null||_0x209275[_0x284f4f(0x130)]();}[_0x53df31(0xe7)](){var _0x564722=_0x53df31;this[_0x564722(0x109)][_0x564722(0x10e)]('idle'),this[_0x564722(0xb4)]();}};C=Z([f(0x2,_0x4f4f6d),f(0x3,_0x20c164(L)),f(0x4,_0x4f089e)],C);function Te(){var _0x26be6a=_0x53df31;const _0x22c3ac=_0x5539b1(I),_0x21b18e=_0x5539b1(_0x95cc2e),_0x588d26=_0x3f45f9(()=>_0x21b18e[_0x26be6a(0x124)](_0x385cb0[_0x26be6a(0x108)]),void 0x0,!0x1,[]),[_0x567964,_0xf60297]=_0x43b4fd(null),[_0x1c575d,_0x21809e]=_0x43b4fd(h['IDLE']),_0x3ccc58=_0x307f07(null);return _0xfc1829(()=>(_0x588d26&&_0x22c3ac[_0x26be6a(0x139)](_0x588d26[_0x26be6a(0xcb)]())[_0x26be6a(0x11f)](_0x4b949c=>{var _0x350237=_0x26be6a;_0xf60297(_0x4b949c),_0x3ccc58[_0x350237(0xc1)]=_0x4b949c['status$']['subscribe'](_0x29dac2=>{_0x21809e(_0x29dac2);});}),()=>{var _0x44f963=_0x26be6a,_0x4b3842;(_0x4b3842=_0x3ccc58[_0x44f963(0xc1)])==null||_0x4b3842['unsubscribe'](),_0x3ccc58[_0x44f963(0xc1)]=null;}),[_0x588d26,_0x22c3ac]),_0x567964?_0x12edff(_0x347dd2,{'align':_0x26be6a(0x98),'disabled':_0x1c575d===h['OFFLINE'],'className':_0x26be6a(0x99),'overlay':_0x12edff($e,{'status':_0x1c575d,'coordinator':_0x567964}),'children':_0x12edff(_0x26be6a(0xaa),{'className':_0x29ceb8('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1c575d===h[_0x26be6a(0xd7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1c575d!==h['OFFLINE']}),'type':_0x26be6a(0xaa),'children':_0x12edff(B,{'className':'univer-size-4'})})}):null;}function $e(_0x570f05){var _0x4025a4=_0x53df31;const {status:_0x2ced9f,coordinator:_0x2e99e3}=_0x570f05;switch(_0x2ced9f){case h[_0x4025a4(0xd5)]:return _0x12edff(Fe,{'coordinator':_0x2e99e3});case h['FOLLOWING']:return _0x12edff(He,{'coordinator':_0x2e99e3});case h['NOT_FOLLOWING']:return _0x12edff(je,{'coordinator':_0x2e99e3});case h[_0x4025a4(0xd7)]:return _0x12edff(Ve,{});case h['PRESENTING']:return _0x12edff(Ue,{'coordinator':_0x2e99e3});default:return null;}}function Fe(_0x5bbd59){var _0x41bba0=_0x53df31;const {coordinator:_0x16f8f6}=_0x5bbd59;return _0x14e079(_0x483276,{'children':[_0x12edff('div',{'className':_0x41bba0(0xd9),'children':_0x41bba0(0xae)}),_0x12edff(_0x160b32,{'onClick':()=>_0x16f8f6[_0x41bba0(0xd8)](),'children':_0x41bba0(0x11a)})]});}function He(_0x4046cd){var _0x143376=_0x53df31;const {coordinator:_0x18ef2c}=_0x4046cd;return _0x14e079(_0x483276,{'children':[_0x12edff(_0x143376(0xb8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x143376(0x10b)}),_0x12edff(_0x160b32,{'onClick':()=>_0x18ef2c['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x63a78e){var _0x5b24ea=_0x53df31;const {coordinator:_0xfaa4cd}=_0x63a78e;return _0x14e079(_0x483276,{'children':[_0x12edff(_0x5b24ea(0xb8),{'className':_0x5b24ea(0xd9),'children':_0x5b24ea(0x8e)}),_0x12edff(_0x160b32,{'variant':_0x5b24ea(0x110),'onClick':()=>_0xfaa4cd[_0x5b24ea(0xf7)](),'children':_0x5b24ea(0xbd)})]});}function Ue(_0x5bf94a){var _0x5b1549=_0x53df31;const {coordinator:_0x3233c9}=_0x5bf94a;return _0x14e079(_0x483276,{'children':[_0x12edff(_0x5b1549(0xb8),{'className':_0x5b1549(0xd9),'children':_0x5b1549(0xb1)}),_0x12edff(_0x160b32,{'variant':_0x5b1549(0x134),'onClick':()=>_0x3233c9['stopPresenting'](),'children':_0x5b1549(0x125)})]});}function Ve(){return _0x12edff(_0x483276,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x53df31(0x11e)],ke=(_0x4c5ce1,_0x15d6c2,_0x225ec3,_0x4d409f)=>{var _0x3363fd=_0x53df31;for(var _0x4e6028=_0x4d409f>0x1?void 0x0:_0x4d409f?Me(_0x15d6c2,_0x225ec3):_0x15d6c2,_0x135d96=_0x4c5ce1[_0x3363fd(0xc2)]-0x1,_0x952ffb;_0x135d96>=0x0;_0x135d96--)(_0x952ffb=_0x4c5ce1[_0x135d96])&&(_0x4e6028=_0x952ffb(_0x4e6028)||_0x4e6028);return _0x4e6028;},$=(_0x5df3ed,_0x54d237)=>(_0x458e4c,_0x103fcb)=>_0x54d237(_0x458e4c,_0x103fcb,_0x5df3ed);let b=class extends _0x5a04f9{constructor(_0x178121,_0x2ebe83){var _0x588344=_0x53df31;super(),this[_0x588344(0xfc)]=_0x178121,this[_0x588344(0x10f)]=_0x2ebe83,this[_0x588344(0x113)]();}[_0x53df31(0x113)](){var _0x268cd3=_0x53df31;this[_0x268cd3(0xc8)](this[_0x268cd3(0x10f)]['registerComponent'](_0xdc8fee['HEADER_MENU'],()=>_0x5602d2(Te,this['_injector'])));}};b=ke([$(0x0,_0x20c164(_0x3ccf0b)),$(0x1,_0x1bfc6c)],b);var Ge=Object[_0x53df31(0xb2)],We=Object[_0x53df31(0x11e)],Ye=(_0x48a29a,_0x3323e7,_0x5f14af)=>_0x3323e7 in _0x48a29a?Ge(_0x48a29a,_0x3323e7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f14af}):_0x48a29a[_0x3323e7]=_0x5f14af,Be=(_0x6f85fb,_0x5ab383,_0x34b0e8,_0x30248d)=>{var _0x18512e=_0x53df31;for(var _0x568695=_0x30248d>0x1?void 0x0:_0x30248d?We(_0x5ab383,_0x34b0e8):_0x5ab383,_0x5dba0c=_0x6f85fb[_0x18512e(0xc2)]-0x1,_0x2b9df2;_0x5dba0c>=0x0;_0x5dba0c--)(_0x2b9df2=_0x6f85fb[_0x5dba0c])&&(_0x568695=_0x2b9df2(_0x568695)||_0x568695);return _0x568695;},F=(_0x1a8cfb,_0x17c2ac)=>(_0x321860,_0x14298f)=>_0x17c2ac(_0x321860,_0x14298f,_0x1a8cfb),J=(_0x3a94f5,_0x40486d,_0x593edc)=>Ye(_0x3a94f5,typeof _0x40486d!=_0x53df31(0xc5)?_0x40486d+'':_0x40486d,_0x593edc);const Ze=_0x53df31(0xab);let O=class extends _0x1abe21{constructor(_0x1802e2=T,_0x37c7dc,_0x2bbb9a){var _0x2bba85=_0x53df31;super(),this[_0x2bba85(0xda)]=_0x1802e2,this[_0x2bba85(0xfc)]=_0x37c7dc,this[_0x2bba85(0x9e)]=_0x2bbb9a;const {..._0x3dc20f}=_0x7c3f35({},T,this['_config']);this[_0x2bba85(0x9e)][_0x2bba85(0x122)](Oe,_0x3dc20f);}[_0x53df31(0x106)](){var _0x37b7ce=_0x53df31;_0x23b8d8(this[_0x37b7ce(0xfc)],_0x5e3bcd([[L],[I],[m],[b]],this[_0x37b7ce(0xda)]['override'])),_0x53fd42(this[_0x37b7ce(0xfc)],[[m]]);}[_0x53df31(0xb3)](){var _0x546097=_0x53df31;_0x53fd42(this[_0x546097(0xfc)],[[b]]);}};J(O,_0x53df31(0xdb),_0x385cb0[_0x53df31(0xe8)]),J(O,_0x53df31(0xa1),Ze),O=Be([_0x1064d3(_0x10d435),F(0x1,_0x20c164(_0x3ccf0b)),F(0x2,_0x4f4f6d)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x3ac974=_0x4571;(function(_0x5265f4,_0x2f0127){var _0x597ca9=_0x4571,_0x5a1f21=_0x5265f4();while(!![]){try{var _0x56ffed=-parseInt(_0x597ca9(0x10d))/0x1*(parseInt(_0x597ca9(0x13e))/0x2)+parseInt(_0x597ca9(0x133))/0x3+-parseInt(_0x597ca9(0x131))/0x4*(parseInt(_0x597ca9(0x170))/0x5)+-parseInt(_0x597ca9(0x110))/0x6+-parseInt(_0x597ca9(0x159))/0x7*(-parseInt(_0x597ca9(0x12f))/0x8)+-parseInt(_0x597ca9(0x104))/0x9*(parseInt(_0x597ca9(0x164))/0xa)+-parseInt(_0x597ca9(0xf9))/0xb*(-parseInt(_0x597ca9(0xfd))/0xc);if(_0x56ffed===_0x2f0127)break;else _0x5a1f21['push'](_0x5a1f21['shift']());}catch(_0x140197){_0x5a1f21['push'](_0x5a1f21['shift']());}}}(_0x53cf,0x1f54a));var q=Object[_0x3ac974(0x13c)],z=(_0x306118,_0x44288e,_0x991abd)=>_0x44288e in _0x306118?q(_0x306118,_0x44288e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x991abd}):_0x306118[_0x44288e]=_0x991abd,d=(_0x2ebb7d,_0x49f8ef,_0xca2c19)=>z(_0x2ebb7d,typeof _0x49f8ef!=_0x3ac974(0xee)?_0x49f8ef+'':_0x49f8ef,_0xca2c19);import{CollaborationSessionService as _0x1d25b3,SessionStatus as _0x4a5ca1,UniverCollaborationClientPlugin as _0x44051f}from'@univerjs-pro/collaboration-client';import{Disposable as _0x584273,toDisposable as _0x41007c,Inject as _0xa4beab,IUniverInstanceService as _0x222f08,Injector as _0x4f2f9e,IConfigService as _0x1eb131,ICommandService as _0x2474fb,RxDisposable as _0x427566,UniverInstanceType as _0x54a5fc,DisposableCollection as _0x18853a,CommandType as _0x3a3e50,DependentOn as _0x2290ed,Plugin as _0x504502,merge as _0x20bd30,registerDependencies as _0xb22a41,mergeOverrideWithDependencies as _0x3f6a22,touchDependencies as _0x87ed34}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x34165f,InsertSheetMutation as _0x1652a5}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x7f064e,SetScrollOperation as _0x4afef6}from'@univerjs/sheets-ui';import{useDependency as _0x1221e9,useObservable as _0x5245c7,IUIPartsService as _0x50343c,BuiltInUIPart as _0x4cea43,connectInjector as _0x5daf4e}from'@univerjs/ui';import{jsx as _0x315ae3,jsxs as _0x4c43ef,Fragment as _0x3328e8}from'react/jsx-runtime';import{Dropdown as _0x4a5ac9,clsx as _0x3ec8f8,Button as _0x9e9e1c}from'@univerjs/design';import{forwardRef as _0x343d30,useRef as _0x26cc02,createElement as _0x577174,useState as _0x2438be,useEffect as _0x4e57b8}from'react';import{CollaborationEvent as _0x390d85,parseProtocolChangeset as _0x6c5b2b}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x44478a,Subject as _0x528647}from'rxjs';import{takeUntil as _0x4cc00f,throttleTime as _0x5a0b04}from'rxjs/operators';const Oe=_0x3ac974(0x178),T={};class L extends _0x584273{constructor(){var _0x3352da=_0x3ac974;super(...arguments),d(this,_0x3352da(0x184),new Set()),d(this,_0x3352da(0x10f),new Set());}['registerSharedOperation'](_0x3391d7){var _0x560f0e=_0x3ac974;return this['_sharedOperations'][_0x560f0e(0x14b)](_0x3391d7),_0x41007c(()=>this['_sharedOperations'][_0x560f0e(0x109)](_0x3391d7));}[_0x3ac974(0x126)](_0x578f7a){var _0x259dcb=_0x3ac974;return this[_0x259dcb(0x10f)][_0x259dcb(0x14b)](_0x578f7a),_0x41007c(()=>this[_0x259dcb(0x10f)][_0x259dcb(0x109)](_0x578f7a));}['shouldShareOperation'](_0x284f36){var _0x19128c=_0x3ac974;return this[_0x19128c(0x184)][_0x19128c(0x172)](_0x284f36);}[_0x3ac974(0x15b)](_0x40793b){var _0x2712de=_0x3ac974;return Array[_0x2712de(0x102)](this[_0x2712de(0x10f)])[_0x2712de(0x12a)](_0x2b25bb=>_0x2b25bb(_0x40793b));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0xf3ea68,_0x41f550,_0x3e8eb7,_0x3baa07)=>{var _0x262a9e=_0x3ac974;for(var _0x3c5a1b=_0x3baa07>0x1?void 0x0:_0x3baa07?Ee(_0x41f550,_0x3e8eb7):_0x41f550,_0x44469e=_0xf3ea68[_0x262a9e(0x152)]-0x1,_0x2cef1f;_0x44469e>=0x0;_0x44469e--)(_0x2cef1f=_0xf3ea68[_0x44469e])&&(_0x3c5a1b=_0x2cef1f(_0x3c5a1b)||_0x3c5a1b);return _0x3c5a1b;},Ne=(_0x9b8734,_0x4b4b12)=>(_0x190cbd,_0x22b176)=>_0x4b4b12(_0x190cbd,_0x22b176,_0x9b8734);let m=class extends _0x584273{constructor(_0x3b4d46){var _0x12a06f=_0x3ac974;super(),this[_0x12a06f(0x143)]=_0x3b4d46,this['_init']();}[_0x3ac974(0x179)](){var _0x3a89eb=_0x3ac974;[_0x7f064e['id'],_0x4afef6['id'],_0x34165f['id']][_0x3a89eb(0x161)](_0x329f75=>{var _0x89fb20=_0x3a89eb;this['disposeWithMe'](this[_0x89fb20(0x143)][_0x89fb20(0x139)](_0x329f75));});}};m=we([Ne(0x0,_0xa4beab(L))],m);var c=function(){var _0x3cb822=_0x3ac974;return c=Object[_0x3cb822(0x175)]||function(_0x2f39d5){var _0x5ba083=_0x3cb822;for(var _0x3acaf1,_0x11b35d=0x1,_0x28645a=arguments[_0x5ba083(0x152)];_0x11b35d<_0x28645a;_0x11b35d++){_0x3acaf1=arguments[_0x11b35d];for(var _0x851449 in _0x3acaf1)Object['prototype']['hasOwnProperty']['call'](_0x3acaf1,_0x851449)&&(_0x2f39d5[_0x851449]=_0x3acaf1[_0x851449]);}return _0x2f39d5;},c[_0x3cb822(0x114)](this,arguments);},Ce=function(_0x26727e,_0x2c7454){var _0x8105c0=_0x3ac974,_0x57f40b={};for(var _0x40ef28 in _0x26727e)Object['prototype'][_0x8105c0(0x142)][_0x8105c0(0x149)](_0x26727e,_0x40ef28)&&_0x2c7454[_0x8105c0(0x16c)](_0x40ef28)<0x0&&(_0x57f40b[_0x40ef28]=_0x26727e[_0x40ef28]);if(_0x26727e!=null&&typeof Object[_0x8105c0(0x10e)]=='function'){for(var _0x47cbe3=0x0,_0x40ef28=Object[_0x8105c0(0x10e)](_0x26727e);_0x47cbe3<_0x40ef28[_0x8105c0(0x152)];_0x47cbe3++)_0x2c7454[_0x8105c0(0x16c)](_0x40ef28[_0x47cbe3])<0x0&&Object[_0x8105c0(0x163)][_0x8105c0(0xe7)][_0x8105c0(0x149)](_0x26727e,_0x40ef28[_0x47cbe3])&&(_0x57f40b[_0x40ef28[_0x47cbe3]]=_0x26727e[_0x40ef28[_0x47cbe3]]);}return _0x57f40b;},W=_0x343d30(function(_0x8ee044,_0x3888f2){var _0x55bc75=_0x3ac974,_0x2cbecd=_0x8ee044[_0x55bc75(0x180)],_0x3ccc2b=_0x8ee044['id'],_0x172bb6=_0x8ee044[_0x55bc75(0xf0)],_0x2fd3e6=_0x8ee044[_0x55bc75(0x145)],_0x332b37=Ce(_0x8ee044,[_0x55bc75(0x180),'id',_0x55bc75(0xf0),_0x55bc75(0x145)]),_0x3a4f34=_0x55bc75(0x147)[_0x55bc75(0x190)](_0x3ccc2b,'\x20')[_0x55bc75(0x190)](_0x172bb6||'')[_0x55bc75(0x177)](),_0x3254d8=_0x26cc02('_'[_0x55bc75(0x190)](Le()));return Y(_0x2cbecd,''['concat'](_0x3ccc2b),{'defIds':_0x2cbecd[_0x55bc75(0x11e)],'idSuffix':_0x3254d8[_0x55bc75(0x150)]},c({'ref':_0x3888f2,'className':_0x3a4f34},_0x332b37),_0x2fd3e6);});function Y(_0x502ce9,_0x33ee46,_0x19e5db,_0x3d65e4,_0x3a362c){var _0x36bd45=_0x3ac974;return _0x577174(_0x502ce9[_0x36bd45(0x19a)],c(c({'key':_0x33ee46},De(_0x502ce9,_0x19e5db,_0x3a362c)),_0x3d65e4),(xe(_0x502ce9,_0x19e5db)[_0x36bd45(0x12d)]||[])[_0x36bd45(0x12a)](function(_0x3baf7d,_0x1a5174){var _0x1e63bf=_0x36bd45;return Y(_0x3baf7d,''[_0x1e63bf(0x190)](_0x33ee46,'-')[_0x1e63bf(0x190)](_0x502ce9[_0x1e63bf(0x19a)],'-')[_0x1e63bf(0x190)](_0x1a5174),_0x19e5db,void 0x0,_0x3a362c);}));}function De(_0x13fc96,_0x359177,_0xf0d93c){var _0x27281c=_0x3ac974,_0x4ba822=c({},_0x13fc96[_0x27281c(0x137)]);_0xf0d93c!=null&&_0xf0d93c[_0x27281c(0x140)]&&_0x4ba822[_0x27281c(0x14c)]==='colorChannel1'&&(_0x4ba822[_0x27281c(0x14c)]=_0xf0d93c[_0x27281c(0x140)]),_0x13fc96[_0x27281c(0x19a)]===_0x27281c(0xf8)&&_0x4ba822['id']&&(_0x4ba822['id']=_0x4ba822['id']+_0x359177[_0x27281c(0x192)]),Object[_0x27281c(0x130)](_0x4ba822)['forEach'](function(_0x4150f4){var _0x19f8ef=_0x27281c,_0x27683e=_0x4150f4[0x0],_0x4a4f85=_0x4150f4[0x1];_0x27683e===_0x19f8ef(0xf8)&&typeof _0x4a4f85=='string'&&(_0x4ba822[_0x27683e]=_0x4a4f85[_0x19f8ef(0x153)](/url\(#(.*)\)/,'url(#$1'[_0x19f8ef(0x190)](_0x359177[_0x19f8ef(0x192)],')')));});var _0x5e6cbf=_0x359177[_0x27281c(0x11e)];return!_0x5e6cbf||_0x5e6cbf[_0x27281c(0x152)]===0x0||(_0x13fc96[_0x27281c(0x19a)]==='use'&&_0x4ba822[_0x27281c(0x14f)]&&(_0x4ba822['xlink:href']=_0x4ba822[_0x27281c(0x14f)]+_0x359177['idSuffix']),Object[_0x27281c(0x130)](_0x4ba822)[_0x27281c(0x161)](function(_0x563838){var _0x3fb77c=_0x27281c,_0x4c0a63=_0x563838[0x0],_0x3df34e=_0x563838[0x1];typeof _0x3df34e=='string'&&(_0x4ba822[_0x4c0a63]=_0x3df34e[_0x3fb77c(0x153)](/url\(#(.*)\)/,_0x3fb77c(0x15d)['concat'](_0x359177['idSuffix'],')')));})),_0x4ba822;}function xe(_0x45ab51,_0x11acfc){var _0x4fed00=_0x3ac974,_0x2e7a16,_0x3db69f=_0x11acfc['defIds'];return!_0x3db69f||_0x3db69f[_0x4fed00(0x152)]===0x0?_0x45ab51:_0x45ab51[_0x4fed00(0x19a)]===_0x4fed00(0xe9)&&(!((_0x2e7a16=_0x45ab51['children'])===null||_0x2e7a16===void 0x0)&&_0x2e7a16[_0x4fed00(0x152)])?c(c({},_0x45ab51),{'children':_0x45ab51[_0x4fed00(0x12d)][_0x4fed00(0x12a)](function(_0x6fc87a){var _0xef84d4=_0x4fed00;return typeof _0x6fc87a[_0xef84d4(0x137)]['id']==_0xef84d4(0x107)&&_0x3db69f&&_0x3db69f[_0xef84d4(0x171)](_0x6fc87a['attrs']['id'])?c(c({},_0x6fc87a),{'attrs':c(c({},_0x6fc87a['attrs']),{'id':_0x6fc87a[_0xef84d4(0x137)]['id']+_0x11acfc[_0xef84d4(0x192)]})}):_0x6fc87a;})}):_0x45ab51;}function Le(){var _0x596da0=_0x3ac974;return Math[_0x596da0(0x18b)]()[_0x596da0(0x121)](0x24)['substring'](0x2,0x8);}W[_0x3ac974(0x146)]=_0x3ac974(0x17a);var ye={'tag':_0x3ac974(0x14a),'attrs':{'xmlns':_0x3ac974(0x14d),'fill':'none','viewBox':_0x3ac974(0x11b),'width':'1em','height':_0x3ac974(0xfb)},'children':[{'tag':_0x3ac974(0x101),'attrs':{'fill':_0x3ac974(0xfc),'d':_0x3ac974(0x191)}},{'tag':_0x3ac974(0x101),'attrs':{'fill':'currentColor','d':_0x3ac974(0x119),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x343d30(function(_0x3e9d,_0x40e959){var _0x32418c=_0x3ac974;return _0x577174(W,Object[_0x32418c(0x175)]({},_0x3e9d,{'id':'live-share-icon','ref':_0x40e959,'icon':ye}));});B[_0x3ac974(0x146)]=_0x3ac974(0x185);var Re=Object[_0x3ac974(0x182)],Z=(_0x2cd539,_0x5ea551,_0x47b980,_0x4a785a)=>{var _0x25f07c=_0x3ac974;for(var _0x2ef650=_0x4a785a>0x1?void 0x0:_0x4a785a?Re(_0x5ea551,_0x47b980):_0x5ea551,_0x322652=_0x2cd539[_0x25f07c(0x152)]-0x1,_0x5c419c;_0x322652>=0x0;_0x322652--)(_0x5c419c=_0x2cd539[_0x322652])&&(_0x2ef650=_0x5c419c(_0x2ef650)||_0x2ef650);return _0x2ef650;},f=(_0x4609c5,_0x5f0db1)=>(_0x435d26,_0x40228b)=>_0x5f0db1(_0x435d26,_0x40228b,_0x4609c5);function _0x53cf(){var _0x7ae494=['_entities','init','5tohCRA','includes','has','OFFLINE','LIVESHARE_REQUEST_HOST','assign','executeCommand','trim','live-share.config','_init','UniverIcon','LIVESHARE_FETCH_OPERATIONS','_unitID','univer-size-4','status$','UNIVER_LIVE_SHARE_PLUGIN','icon','getLiveShareCoordinator','getOwnPropertyDescriptor','end','_sharedOperations','LiveShareIcon','event$','_handleNewChangeSets','OPERATION','LIVESHARE_TERMINATE','dispose$','random','You\x27re\x20following\x20the\x20presenter','presenter','_fetchOperations','data','concat','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','idSuffix','createInstance','div','_startLiveShareCoordinator','_mountLiveShare','LIVESHARE_OPERATION','onCommandExecuted','set','tag','propertyIsEnumerable','SAME_OPERATION_SHARE_INTERVAL','defs','type','find','_stopPresenting','dispose','symbol','startFollowing','className','text','_uiPartsService','pluginName','parse','univer-mb-3\x20univer-w-full\x20univer-text-sm','pipe','requireSession','mask','13893IxjawO','_commandService','1em','currentColor','2616aWkZTP','You\x27are\x20offline.','_collabSession','_handleOffline','path','from','Stop\x20presenting','1226655SBDxRX','tryStartPresenting','_configService','string','_beIdle','delete','_univerInstanceService','send','values','11fzLFlB','getOwnPropertySymbols','_reporters','158814JxFONM','FOLLOWING','_injector','getCurrentTypeOfUnit$','apply','getValue','_handleOnline','following','IDLE','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','default','0\x200\x2017\x2017','reverse','then','defIds','UNIVER_SHEET','clear','toString','_collabSessionService','shouldShareOperation','PRESENTING','not-following','registerInitialStateReporter','_handleOperation','onStarting','asObservable','map','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','_stopFollowing','children','button','1662392vhXuyM','entries','716332JLOfwC','_config','54093pSjwBC','NOT_FOLLOWING','sessionStatus$','setConfig','attrs','idle','registerSharedOperation','_handleTerminate','_presenter','defineProperty','stringify','5634fWWXxn','_status','colorChannel1','presenting','hasOwnProperty','_liveShareService','params','extend','displayName','univerjs-icon\x20univerjs-icon-','getMemberID','call','svg','add','fill','http://www.w3.org/2000/svg','get','xlink:href','current','_startFollowing','length','replace','_startPresenting','ONLINE','onRendered','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','offline','7HrTmsI','next','getInitialStates','disposeWithMe','url(#$1','getUnitId','operations','_commandDisposable','forEach','registerComponent','prototype','10qLNfUe','Stop\x20following','_status$','unsubscribe','stopFollowing','getTypeOfUnitAdded$','getTypeOfUnitDisposed$','getConfig','indexOf','subscribe'];_0x53cf=function(){return _0x7ae494;};return _0x53cf();}let I=class extends _0x427566{constructor(_0x5bcf5f,_0x2b7684,_0x15b584){var _0x18c8c4=_0x3ac974;super(),d(this,_0x18c8c4(0x16e),new Map()),(this[_0x18c8c4(0x10a)]=_0x5bcf5f,this[_0x18c8c4(0x112)]=_0x2b7684,this['_collabSessionService']=_0x15b584,this[_0x18c8c4(0x179)]());}async['getLiveShareCoordinator'](_0x3ded05){var _0x1bd98d=_0x3ac974;return this[_0x1bd98d(0x16e)][_0x1bd98d(0x172)](_0x3ded05)||await this['_startLiveShareCoordinator'](_0x3ded05),this['_entities'][_0x1bd98d(0x14e)](_0x3ded05);}[_0x3ac974(0x179)](){var _0x38ebea=_0x3ac974;this[_0x38ebea(0x10a)][_0x38ebea(0x169)](_0x54a5fc[_0x38ebea(0x11f)])['pipe'](_0x4cc00f(this[_0x38ebea(0x18a)]))['subscribe'](async _0x38b6d0=>{var _0x2847bb=_0x38ebea;const _0x6a6ceb=_0x38b6d0['getUnitId']();this[_0x2847bb(0x16e)][_0x2847bb(0x172)](_0x6a6ceb)||this[_0x2847bb(0x195)](_0x6a6ceb);}),this[_0x38ebea(0x10a)][_0x38ebea(0x16a)](_0x54a5fc[_0x38ebea(0x11f)])['pipe'](_0x4cc00f(this[_0x38ebea(0x18a)]))[_0x38ebea(0x16d)](_0x9df843=>{var _0x2f194e=_0x38ebea;const _0x89710=_0x9df843[_0x2f194e(0x15e)](),_0x758288=this[_0x2f194e(0x16e)][_0x2f194e(0x14e)](_0x89710);_0x758288==null||_0x758288[_0x2f194e(0xed)]();});}async[_0x3ac974(0x195)](_0x216834){var _0x4471e2=_0x3ac974;const _0x4cd6bd=await this[_0x4471e2(0x122)][_0x4471e2(0xf7)](_0x216834),_0x1f7c5f=this[_0x4471e2(0x112)][_0x4471e2(0x193)](C,_0x216834,_0x4cd6bd);return _0x1f7c5f['init'](),this['_entities'][_0x4471e2(0x199)](_0x216834,_0x1f7c5f),_0x1f7c5f;}};I=Z([f(0x0,_0x222f08),f(0x1,_0xa4beab(_0x4f2f9e)),f(0x2,_0xa4beab(_0x1d25b3))],I);var h=(_0x74365d=>(_0x74365d[_0x3ac974(0x173)]=_0x3ac974(0x158),_0x74365d[_0x3ac974(0x118)]=_0x3ac974(0x138),_0x74365d[_0x3ac974(0x111)]=_0x3ac974(0x117),_0x74365d[_0x3ac974(0x134)]='not-following',_0x74365d['PRESENTING']='presenting',_0x74365d))(h||{});const Pe=_0x3ac974(0xe8),Ae=0xc8;let C=class extends _0x427566{constructor(_0x2739a2,_0x4ebca1,_0x278dd3,_0x50042e,_0x17f6aa){var _0x61d663=_0x3ac974;super(),d(this,'_status$',new _0x44478a(_0x61d663(0x138))),d(this,_0x61d663(0x17e),this[_0x61d663(0x166)][_0x61d663(0x129)]()),d(this,_0x61d663(0x179),!0x1),d(this,_0x61d663(0x160),null),d(this,'_presenter',null),(this[_0x61d663(0x17c)]=_0x2739a2,this[_0x61d663(0xff)]=_0x4ebca1,this['_configService']=_0x278dd3,this[_0x61d663(0x143)]=_0x50042e,this[_0x61d663(0xfa)]=_0x17f6aa);}get[_0x3ac974(0x13f)](){var _0x14e4f7=_0x3ac974;return this[_0x14e4f7(0x166)][_0x14e4f7(0x115)]();}[_0x3ac974(0xed)](){var _0x2eb8cf=_0x3ac974,_0x2e3ccf;(_0x2e3ccf=this[_0x2eb8cf(0x160)])==null||_0x2e3ccf[_0x2eb8cf(0xed)](),this[_0x2eb8cf(0x166)][_0x2eb8cf(0x15a)](_0x2eb8cf(0x138)),this[_0x2eb8cf(0x166)]['complete']();}[_0x3ac974(0x16f)](){var _0x16a823=_0x3ac974;this[_0x16a823(0x179)]||(this[_0x16a823(0x179)]=!0x0,this[_0x16a823(0xff)][_0x16a823(0x135)][_0x16a823(0xf6)](_0x4cc00f(this[_0x16a823(0x18a)]))[_0x16a823(0x16d)](_0x3f388c=>{var _0x4a155f=_0x16a823;switch(_0x3f388c){case _0x4a5ca1[_0x4a155f(0x173)]:this['_handleOffline']();break;case _0x4a5ca1[_0x4a155f(0x155)]:this[_0x4a155f(0x116)]();break;}}),this[_0x16a823(0xff)][_0x16a823(0x186)][_0x16a823(0xf6)](_0x4cc00f(this['dispose$']))[_0x16a823(0x16d)](_0x1519a4=>{var _0x5c81ab=_0x16a823;const {eventID:_0x3e9083}=_0x1519a4;switch(_0x3e9083){case _0x390d85['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x1519a4);break;case _0x390d85[_0x5c81ab(0x197)]:this[_0x5c81ab(0x127)](_0x1519a4);break;case _0x390d85[_0x5c81ab(0x189)]:this[_0x5c81ab(0x13a)]();break;case _0x390d85['NEW_CHANGESETS']:this[_0x5c81ab(0x187)](_0x1519a4);break;}}));}[_0x3ac974(0x105)](){var _0x40729d=_0x3ac974;this['_collabSession'][_0x40729d(0x10b)]({'eventID':_0x390d85[_0x40729d(0x174)],'data':{'unitID':this[_0x40729d(0x17c)],'userID':this[_0x40729d(0xff)][_0x40729d(0x148)]()}},this[_0x40729d(0x17c)]);}['stopPresenting'](){var _0x2f9b6f=_0x3ac974;this[_0x2f9b6f(0x13f)]==='presenting'&&(this[_0x2f9b6f(0x166)]['next'](_0x2f9b6f(0x138)),this[_0x2f9b6f(0xff)][_0x2f9b6f(0x10b)]({'eventID':_0x390d85[_0x2f9b6f(0x189)],'data':{'unitID':this[_0x2f9b6f(0x17c)]}},this['_unitID']));}[_0x3ac974(0xef)](){var _0x788962=_0x3ac974;this[_0x788962(0x13f)]==='not-following'&&(this['_status$'][_0x788962(0x15a)]('following'),this[_0x788962(0x151)]());}[_0x3ac974(0x168)](){var _0x178a7c=_0x3ac974;this[_0x178a7c(0x13f)]===_0x178a7c(0x117)&&this['_stopFollowing']();}['_handleNewHost'](_0xe4cd6a){var _0x20f90c=_0x3ac974;const {presenter:_0x2b6bc2}=_0xe4cd6a[_0x20f90c(0x18f)],_0x27fe7f=this[_0x20f90c(0xff)]['getMemberID']();this[_0x20f90c(0x13b)]=_0x2b6bc2,_0x2b6bc2===_0x27fe7f?(this[_0x20f90c(0x12c)](),this[_0x20f90c(0x154)]()):this[_0x20f90c(0x13f)]!==_0x20f90c(0x125)&&(this[_0x20f90c(0xec)](),this[_0x20f90c(0x151)]());}[_0x3ac974(0x18e)](){var _0x507b04=_0x3ac974;const _0x58f88f={'eventID':_0x390d85[_0x507b04(0x17b)]};this[_0x507b04(0xff)][_0x507b04(0x10b)](_0x58f88f,this['_unitID']);}[_0x3ac974(0x13a)](){var _0x219135=_0x3ac974;this[_0x219135(0x13b)]=null,this['_status']!==_0x219135(0x141)&&this[_0x219135(0x108)]();}[_0x3ac974(0x187)](_0x1c6ee1){var _0x3dd6df=_0x3ac974;if(this[_0x3dd6df(0x13f)]===_0x3dd6df(0x117)&&this['_presenter']===_0x1c6ee1[_0x3dd6df(0x18f)]['memberID']){const _0x1aac51=_0x6c5b2b(_0x1c6ee1[_0x3dd6df(0x18f)])['mutations'][_0x3dd6df(0x11c)]()[_0x3dd6df(0xeb)](_0x58524b=>_0x58524b['id']===_0x1652a5['id']);if(_0x1aac51){const _0xe5988f=_0x1aac51[_0x3dd6df(0x144)]['unitId'],_0x3c5372=_0x1aac51[_0x3dd6df(0x144)]['sheet']['id'];setTimeout(()=>{var _0x1ee6e6=_0x3dd6df;this['_commandService'][_0x1ee6e6(0x176)](_0x34165f['id'],{'unitId':_0xe5988f,'subUnitId':_0x3c5372},{'fromCollab':!0x0});});}}}[_0x3ac974(0x154)](){var _0x3999e6=_0x3ac974;this[_0x3999e6(0x166)][_0x3999e6(0x15a)]('presenting');const _0x21578f=new Map(),_0x49eb17=this['_commandDisposable']=new _0x18853a();_0x49eb17[_0x3999e6(0x14b)](_0x41007c(()=>{var _0x1759f3=_0x3999e6;_0x21578f[_0x1759f3(0x161)](_0x19b2bf=>_0x19b2bf['complete']()),_0x21578f[_0x1759f3(0x120)]();})),_0x49eb17[_0x3999e6(0x14b)](this[_0x3999e6(0xfa)][_0x3999e6(0x198)](_0x458e22=>{var _0x3522a6=_0x3999e6,_0x8b5339;if(_0x458e22[_0x3522a6(0xea)]!==_0x3a3e50[_0x3522a6(0x188)]||!this[_0x3522a6(0x143)][_0x3522a6(0x123)](_0x458e22['id']))return;const {id:_0x59136d}=_0x458e22;let _0x3129d6;_0x21578f['has'](_0x59136d)?_0x3129d6=_0x21578f['get'](_0x59136d):(_0x3129d6=new _0x528647(),_0x21578f['set'](_0x59136d,_0x3129d6),_0x3129d6[_0x3522a6(0xf6)](_0x5a0b04((_0x8b5339=this[_0x3522a6(0x106)][_0x3522a6(0x16b)](Pe))!=null?_0x8b5339:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x32e163=>{var _0x268fd4=_0x3522a6;this['_collabSession'][_0x268fd4(0x10b)]({'eventID':_0x390d85[_0x268fd4(0x197)],'data':{'unitID':this[_0x268fd4(0x17c)],'operations':{[_0x32e163['id']]:{'id':_0x32e163['id'],'params':JSON[_0x268fd4(0x13d)](_0x32e163[_0x268fd4(0x144)])}}}},this[_0x268fd4(0x17c)]);})),_0x3129d6[_0x3522a6(0x15a)](_0x458e22);})),this[_0x3999e6(0x143)][_0x3999e6(0x15b)](this[_0x3999e6(0x17c)])[_0x3999e6(0x161)](_0x3ad86f=>this['_collabSession'][_0x3999e6(0x10b)]({'eventID':_0x390d85['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3999e6(0x17c)],'operations':{[_0x3ad86f['id']]:{'id':_0x3ad86f['id'],'params':JSON[_0x3999e6(0x13d)](_0x3ad86f[_0x3999e6(0x144)])}}}},this[_0x3999e6(0x17c)]));}[_0x3ac974(0xec)](){var _0x2fb6d9=_0x3ac974,_0x457fd0;this[_0x2fb6d9(0x166)][_0x2fb6d9(0x15a)](_0x2fb6d9(0x138)),(_0x457fd0=this[_0x2fb6d9(0x160)])==null||_0x457fd0[_0x2fb6d9(0xed)](),this[_0x2fb6d9(0x160)]=null;}[_0x3ac974(0x151)](){var _0xd428d4=_0x3ac974,_0x2a4d43;(_0x2a4d43=this[_0xd428d4(0x160)])==null||_0x2a4d43[_0xd428d4(0xed)](),this[_0xd428d4(0x166)]['next'](_0xd428d4(0x117));}[_0x3ac974(0x108)](){var _0x37c695=_0x3ac974,_0xefa9d8;this[_0x37c695(0x166)]['next'](_0x37c695(0x138)),(_0xefa9d8=this[_0x37c695(0x160)])==null||_0xefa9d8[_0x37c695(0xed)](),this[_0x37c695(0x160)]=null;}['_stopFollowing'](){var _0x3b4d4e=_0x3ac974,_0x4054d9;this[_0x3b4d4e(0x166)][_0x3b4d4e(0x15a)](_0x3b4d4e(0x125)),(_0x4054d9=this[_0x3b4d4e(0x160)])==null||_0x4054d9[_0x3b4d4e(0xed)]();}['_handleOperation'](_0xa3ecdb){var _0x565f05=_0x3ac974;if([_0x565f05(0x141),_0x565f05(0x125),_0x565f05(0x158)][_0x565f05(0x171)](this[_0x565f05(0x13f)])||!_0xa3ecdb['data'][_0x565f05(0x18d)]||_0xa3ecdb[_0x565f05(0x18f)][_0x565f05(0x18d)]===this[_0x565f05(0xff)][_0x565f05(0x148)]())return;this[_0x565f05(0x13f)]==='idle'&&this['_startFollowing']();const _0x430d2c=_0xa3ecdb[_0x565f05(0x18f)][_0x565f05(0x15f)];Object[_0x565f05(0x10c)](_0x430d2c)[_0x565f05(0x161)](_0x57af1c=>{var _0x416915=_0x565f05;this[_0x416915(0xfa)]['executeCommand'](_0x57af1c['id'],_0x57af1c[_0x416915(0x144)]?JSON[_0x416915(0xf4)](_0x57af1c[_0x416915(0x144)]):null,{'fromCollab':!0x0});});}[_0x3ac974(0x100)](){var _0xcf6db6=_0x3ac974,_0x218709;this[_0xcf6db6(0x166)][_0xcf6db6(0x15a)](_0xcf6db6(0x158)),(_0x218709=this['_commandDisposable'])==null||_0x218709['dispose']();}[_0x3ac974(0x116)](){var _0x1f0a89=_0x3ac974;this[_0x1f0a89(0x166)]['next'](_0x1f0a89(0x138)),this['_fetchOperations']();}};C=Z([f(0x2,_0x1eb131),f(0x3,_0xa4beab(L)),f(0x4,_0x2474fb)],C);function Te(){var _0x29e8be=_0x3ac974;const _0x3c43e2=_0x1221e9(I),_0x5d88cb=_0x1221e9(_0x222f08),_0x32afc0=_0x5245c7(()=>_0x5d88cb[_0x29e8be(0x113)](_0x54a5fc['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1b10ef,_0x515d34]=_0x2438be(null),[_0x3d1f59,_0x5ea3b1]=_0x2438be(h[_0x29e8be(0x118)]),_0x5ee29e=_0x26cc02(null);return _0x4e57b8(()=>(_0x32afc0&&_0x3c43e2[_0x29e8be(0x181)](_0x32afc0[_0x29e8be(0x15e)]())[_0x29e8be(0x11d)](_0xccb13e=>{var _0x4c84b5=_0x29e8be;_0x515d34(_0xccb13e),_0x5ee29e['current']=_0xccb13e[_0x4c84b5(0x17e)][_0x4c84b5(0x16d)](_0x566512=>{_0x5ea3b1(_0x566512);});}),()=>{var _0x49576d=_0x29e8be,_0x380f2c;(_0x380f2c=_0x5ee29e['current'])==null||_0x380f2c[_0x49576d(0x167)](),_0x5ee29e['current']=null;}),[_0x32afc0,_0x3c43e2]),_0x1b10ef?_0x315ae3(_0x4a5ac9,{'align':_0x29e8be(0x183),'disabled':_0x3d1f59===h['OFFLINE'],'className':_0x29e8be(0x12b),'overlay':_0x315ae3($e,{'status':_0x3d1f59,'coordinator':_0x1b10ef}),'children':_0x315ae3(_0x29e8be(0x12e),{'className':_0x3ec8f8(_0x29e8be(0x157),{'univer-cursor-not-allowed':_0x3d1f59===h[_0x29e8be(0x173)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3d1f59!==h[_0x29e8be(0x173)]}),'type':_0x29e8be(0x12e),'children':_0x315ae3(B,{'className':_0x29e8be(0x17d)})})}):null;}function $e(_0x26ec05){var _0x214697=_0x3ac974;const {status:_0x1c6e18,coordinator:_0x5ceaf0}=_0x26ec05;switch(_0x1c6e18){case h[_0x214697(0x118)]:return _0x315ae3(Fe,{'coordinator':_0x5ceaf0});case h[_0x214697(0x111)]:return _0x315ae3(He,{'coordinator':_0x5ceaf0});case h[_0x214697(0x134)]:return _0x315ae3(je,{'coordinator':_0x5ceaf0});case h['OFFLINE']:return _0x315ae3(Ve,{});case h[_0x214697(0x124)]:return _0x315ae3(Ue,{'coordinator':_0x5ceaf0});default:return null;}}function Fe(_0x52ad0e){var _0x3d04a3=_0x3ac974;const {coordinator:_0x1a361e}=_0x52ad0e;return _0x4c43ef(_0x3328e8,{'children':[_0x315ae3('div',{'className':_0x3d04a3(0xf5),'children':'Present\x20this\x20document'}),_0x315ae3(_0x9e9e1c,{'onClick':()=>_0x1a361e[_0x3d04a3(0x105)](),'children':'Start'})]});}function _0x4571(_0x1a92e0,_0x2db796){var _0x53cfb9=_0x53cf();return _0x4571=function(_0x4571c3,_0x338da0){_0x4571c3=_0x4571c3-0xe7;var _0x13741c=_0x53cfb9[_0x4571c3];return _0x13741c;},_0x4571(_0x1a92e0,_0x2db796);}function He(_0x53240b){var _0x7ed4e3=_0x3ac974;const {coordinator:_0xd685e5}=_0x53240b;return _0x4c43ef(_0x3328e8,{'children':[_0x315ae3(_0x7ed4e3(0x194),{'className':_0x7ed4e3(0xf5),'children':_0x7ed4e3(0x18c)}),_0x315ae3(_0x9e9e1c,{'onClick':()=>_0xd685e5[_0x7ed4e3(0x168)](),'children':_0x7ed4e3(0x165)})]});}function je(_0x1b5859){var _0x2f289b=_0x3ac974;const {coordinator:_0x273fe1}=_0x1b5859;return _0x4c43ef(_0x3328e8,{'children':[_0x315ae3(_0x2f289b(0x194),{'className':_0x2f289b(0xf5),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x315ae3(_0x9e9e1c,{'variant':_0x2f289b(0xf1),'onClick':()=>_0x273fe1[_0x2f289b(0xef)](),'children':'Start\x20following'})]});}function Ue(_0x1bacbd){var _0x110c8e=_0x3ac974;const {coordinator:_0x93f6fc}=_0x1bacbd;return _0x4c43ef(_0x3328e8,{'children':[_0x315ae3(_0x110c8e(0x194),{'className':_0x110c8e(0xf5),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x315ae3(_0x9e9e1c,{'variant':_0x110c8e(0x11a),'onClick':()=>_0x93f6fc['stopPresenting'](),'children':_0x110c8e(0x103)})]});}function Ve(){var _0x111e7e=_0x3ac974;return _0x315ae3(_0x3328e8,{'children':_0x111e7e(0xfe)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x56f5cd,_0x35a992,_0x585f46,_0x2cb50e)=>{var _0x48dce9=_0x3ac974;for(var _0x156729=_0x2cb50e>0x1?void 0x0:_0x2cb50e?Me(_0x35a992,_0x585f46):_0x35a992,_0x491e67=_0x56f5cd[_0x48dce9(0x152)]-0x1,_0x354d9b;_0x491e67>=0x0;_0x491e67--)(_0x354d9b=_0x56f5cd[_0x491e67])&&(_0x156729=_0x354d9b(_0x156729)||_0x156729);return _0x156729;},$=(_0x2a4dd2,_0x1b4e23)=>(_0x3e0846,_0x23e5c8)=>_0x1b4e23(_0x3e0846,_0x23e5c8,_0x2a4dd2);let b=class extends _0x584273{constructor(_0x3e19d0,_0x1efcf2){var _0x5841f6=_0x3ac974;super(),this[_0x5841f6(0x112)]=_0x3e19d0,this[_0x5841f6(0xf2)]=_0x1efcf2,this[_0x5841f6(0x196)]();}[_0x3ac974(0x196)](){var _0x1add61=_0x3ac974;this[_0x1add61(0x15c)](this[_0x1add61(0xf2)][_0x1add61(0x162)](_0x4cea43['HEADER_MENU'],()=>_0x5daf4e(Te,this['_injector'])));}};b=ke([$(0x0,_0xa4beab(_0x4f2f9e)),$(0x1,_0x50343c)],b);var Ge=Object[_0x3ac974(0x13c)],We=Object['getOwnPropertyDescriptor'],Ye=(_0xeb2aa4,_0x1e2119,_0x4df9af)=>_0x1e2119 in _0xeb2aa4?Ge(_0xeb2aa4,_0x1e2119,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4df9af}):_0xeb2aa4[_0x1e2119]=_0x4df9af,Be=(_0xf09bb1,_0xbc18c4,_0x2cb8a3,_0x1713f8)=>{var _0x3c419f=_0x3ac974;for(var _0x56dee3=_0x1713f8>0x1?void 0x0:_0x1713f8?We(_0xbc18c4,_0x2cb8a3):_0xbc18c4,_0x572720=_0xf09bb1[_0x3c419f(0x152)]-0x1,_0x36ff19;_0x572720>=0x0;_0x572720--)(_0x36ff19=_0xf09bb1[_0x572720])&&(_0x56dee3=_0x36ff19(_0x56dee3)||_0x56dee3);return _0x56dee3;},F=(_0x795830,_0x4dbb53)=>(_0x576098,_0x3bf77f)=>_0x4dbb53(_0x576098,_0x3bf77f,_0x795830),J=(_0x913e9d,_0x4ba3eb,_0x30c853)=>Ye(_0x913e9d,typeof _0x4ba3eb!=_0x3ac974(0xee)?_0x4ba3eb+'':_0x4ba3eb,_0x30c853);const Ze=_0x3ac974(0x17f);let O=class extends _0x504502{constructor(_0xf071a=T,_0x5d187d,_0x5cde34){var _0x595fa4=_0x3ac974;super(),this[_0x595fa4(0x132)]=_0xf071a,this[_0x595fa4(0x112)]=_0x5d187d,this[_0x595fa4(0x106)]=_0x5cde34;const {..._0x2588d0}=_0x20bd30({},T,this[_0x595fa4(0x132)]);this[_0x595fa4(0x106)][_0x595fa4(0x136)](Oe,_0x2588d0);}[_0x3ac974(0x128)](){var _0x4155ac=_0x3ac974;_0xb22a41(this[_0x4155ac(0x112)],_0x3f6a22([[L],[I],[m],[b]],this[_0x4155ac(0x132)]['override'])),_0x87ed34(this['_injector'],[[m]]);}[_0x3ac974(0x156)](){var _0x250746=_0x3ac974;_0x87ed34(this[_0x250746(0x112)],[[b]]);}};J(O,_0x3ac974(0xea),_0x54a5fc['UNIVER_UNKNOWN']),J(O,_0x3ac974(0xf3),Ze),O=Be([_0x2290ed(_0x44051f),F(0x1,_0xa4beab(_0x4f2f9e)),F(0x2,_0x1eb131)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ function _0x3d91(_0x2e6f1a,_0x4b765a){var _0x20f4c1=_0x20f4();return _0x3d91=function(_0x3d9129,_0x552079){_0x3d9129=_0x3d9129-0x8e;var _0x1c3389=_0x20f4c1[_0x3d9129];return _0x1c3389;},_0x3d91(_0x2e6f1a,_0x4b765a);}var _0x53df31=_0x3d91;(function(_0x4b8abe,_0x5a696a){var _0x2290ac=_0x3d91,_0x423cd0=_0x4b8abe();while(!![]){try{var _0xf9917e=-parseInt(_0x2290ac(0x97))/0x1*(-parseInt(_0x2290ac(0xc0))/0x2)+parseInt(_0x2290ac(0xbb))/0x3*(-parseInt(_0x2290ac(0x94))/0x4)+-parseInt(_0x2290ac(0xef))/0x5*(parseInt(_0x2290ac(0xa5))/0x6)+-parseInt(_0x2290ac(0xa9))/0x7+-parseInt(_0x2290ac(0xa8))/0x8+-parseInt(_0x2290ac(0xc3))/0x9*(-parseInt(_0x2290ac(0xcd))/0xa)+parseInt(_0x2290ac(0x131))/0xb;if(_0xf9917e===_0x5a696a)break;else _0x423cd0['push'](_0x423cd0['shift']());}catch(_0x4e684b){_0x423cd0['push'](_0x423cd0['shift']());}}}(_0x20f4,0xa25ee));var q=Object[_0x53df31(0xb2)],z=(_0x57a188,_0x542b4a,_0x4daf94)=>_0x542b4a in _0x57a188?q(_0x57a188,_0x542b4a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4daf94}):_0x57a188[_0x542b4a]=_0x4daf94,d=(_0x46d395,_0x48ad5f,_0xed8e9d)=>z(_0x46d395,typeof _0x48ad5f!=_0x53df31(0xc5)?_0x48ad5f+'':_0x48ad5f,_0xed8e9d);import{CollaborationSessionService as _0x4b1bd5,SessionStatus as _0x39f60d,UniverCollaborationClientPlugin as _0x10d435}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5a04f9,toDisposable as _0x49d4cb,Inject as _0x20c164,IUniverInstanceService as _0x95cc2e,Injector as _0x3ccf0b,IConfigService as _0x4f4f6d,ICommandService as _0x4f089e,RxDisposable as _0x48dfad,UniverInstanceType as _0x385cb0,DisposableCollection as _0x415c13,CommandType as _0x52360d,DependentOn as _0x1064d3,Plugin as _0x1abe21,merge as _0x7c3f35,registerDependencies as _0x23b8d8,mergeOverrideWithDependencies as _0x5e3bcd,touchDependencies as _0x53fd42}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1ee7b5,InsertSheetMutation as _0x13e727}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x57f54d,SetScrollOperation as _0x38ded1}from'@univerjs/sheets-ui';import{useDependency as _0x5539b1,useObservable as _0x3f45f9,IUIPartsService as _0x1bfc6c,BuiltInUIPart as _0xdc8fee,connectInjector as _0x5602d2}from'@univerjs/ui';import{jsx as _0x12edff,jsxs as _0x14e079,Fragment as _0x483276}from'react/jsx-runtime';import{Dropdown as _0x347dd2,clsx as _0x29ceb8,Button as _0x160b32}from'@univerjs/design';import{forwardRef as _0xbb63ca,useRef as _0x307f07,createElement as _0x3ba063,useState as _0x43b4fd,useEffect as _0xfc1829}from'react';import{CollaborationEvent as _0x22d9e1,parseProtocolChangeset as _0x5a28cf}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5ef958,Subject as _0x565a21}from'rxjs';import{takeUntil as _0x2230bd,throttleTime as _0x30ccf3}from'rxjs/operators';const Oe=_0x53df31(0xd4),T={};class L extends _0x5a04f9{constructor(){var _0x1f872d=_0x53df31;super(...arguments),d(this,_0x1f872d(0x137),new Set()),d(this,_0x1f872d(0xf6),new Set());}['registerSharedOperation'](_0x437185){var _0x4ba449=_0x53df31;return this[_0x4ba449(0x137)]['add'](_0x437185),_0x49d4cb(()=>this['_sharedOperations'][_0x4ba449(0xb6)](_0x437185));}['registerInitialStateReporter'](_0x15289a){var _0x1a2919=_0x53df31;return this[_0x1a2919(0xf6)][_0x1a2919(0xf2)](_0x15289a),_0x49d4cb(()=>this[_0x1a2919(0xf6)][_0x1a2919(0xb6)](_0x15289a));}[_0x53df31(0xed)](_0x3b9782){var _0x2d8209=_0x53df31;return this[_0x2d8209(0x137)][_0x2d8209(0x95)](_0x3b9782);}[_0x53df31(0xec)](_0x4d341c){var _0x213e11=_0x53df31;return Array[_0x213e11(0x116)](this[_0x213e11(0xf6)])[_0x213e11(0xe6)](_0x538005=>_0x538005(_0x4d341c));}}function _0x20f4(){var _0x4518ef=['presenting','3ShDHDG','not-following','Start\x20following','_beIdle','memberID','10WKkiMi','current','length','63ksOLIB','_commandDisposable','symbol','attrs','call','disposeWithMe','apply','className','getUnitId','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','1068590dXBQmz','get','idSuffix','_startFollowing','_startLiveShareCoordinator','presenter','following','live-share.config','IDLE','_handleTerminate','OFFLINE','tryStartPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','_config','type','asObservable','colorChannel1','currentColor','concat','values','LIVESHARE_FETCH_OPERATIONS','icon','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','replace','fill','map','_handleOnline','UNIVER_UNKNOWN','getConfig','init','subscribe','getInitialStates','shouldShareOperation','_stopFollowing','12745Uypbkk','LIVESHARE_REQUEST_HOST','mask','add','NOT_FOLLOWING','SAME_OPERATION_SHARE_INTERVAL','hasOwnProperty','_reporters','startFollowing','entries','event$','propertyIsEnumerable','_startPresenting','_injector','reverse','live-share-icon','dispose$','createInstance','function','children','pipe','data','forEach','onStarting','_commandService','UNIVER_SHEET','_status$','PRESENTING','You\x27re\x20following\x20the\x20presenter','params','univerjs-icon\x20univerjs-icon-','next','_uiPartsService','text','_collabSessionService','prototype','_mountLiveShare','idle','getOwnPropertySymbols','from','toString','getValue','unitId','Start','registerSharedOperation','onCommandExecuted','string','getOwnPropertyDescriptor','then','assign','_handleNewChangeSets','setConfig','LIVESHARE_OPERATION','getCurrentTypeOfUnit$','Stop\x20presenting','extend','xlink:href','_entities','requireSession','path','set','sheet','_handleNewHost','ONLINE','find','dispose','16650920jHANVC','send','status$','default','_handleOffline','_stopPresenting','_sharedOperations','_presenter','getLiveShareCoordinator','offline','_init','url(#$1','_liveShareService','You\x27re\x20not\x20following\x20the\x20presenter','stringify','use','getMemberID','UniverIcon','defIds','922820DqhyJK','has','clear','263089ufROqc','end','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','includes','1em','_status','stopFollowing','_configService','tag','_univerInstanceService','pluginName','_unitID','defs','getTypeOfUnitDisposed$','2088RmAThg','complete','NEW_CHANGESETS','5385640QPFCfv','7848022OFOBKj','button','UNIVER_LIVE_SHARE_PLUGIN','mutations','executeCommand','Present\x20this\x20document','displayName','http://www.w3.org/2000/svg','You\x27re\x20presenting\x20the\x20document','defineProperty','onRendered','_fetchOperations','parse','delete','_collabSession','div','svg'];_0x20f4=function(){return _0x4518ef;};return _0x20f4();}var Ee=Object[_0x53df31(0x11e)],we=(_0x502001,_0x417002,_0x697c72,_0x2cfd1a)=>{var _0x150166=_0x53df31;for(var _0x394b2b=_0x2cfd1a>0x1?void 0x0:_0x2cfd1a?Ee(_0x417002,_0x697c72):_0x417002,_0x1347fc=_0x502001[_0x150166(0xc2)]-0x1,_0x3cc759;_0x1347fc>=0x0;_0x1347fc--)(_0x3cc759=_0x502001[_0x1347fc])&&(_0x394b2b=_0x3cc759(_0x394b2b)||_0x394b2b);return _0x394b2b;},Ne=(_0x57b3a1,_0x47da97)=>(_0x1fc7ff,_0x23bddc)=>_0x47da97(_0x1fc7ff,_0x23bddc,_0x57b3a1);let m=class extends _0x5a04f9{constructor(_0x3d958f){var _0x5d583b=_0x53df31;super(),this[_0x5d583b(0x13d)]=_0x3d958f,this['_init']();}[_0x53df31(0x13b)](){[_0x57f54d['id'],_0x38ded1['id'],_0x1ee7b5['id']]['forEach'](_0x4844a6=>{var _0x37d026=_0x3d91;this[_0x37d026(0xc8)](this[_0x37d026(0x13d)][_0x37d026(0x11b)](_0x4844a6));});}};m=we([Ne(0x0,_0x20c164(L))],m);var c=function(){var _0x136e57=_0x53df31;return c=Object[_0x136e57(0x120)]||function(_0x372b37){var _0x51348e=_0x136e57;for(var _0x1133c5,_0x2aebbe=0x1,_0x3b568c=arguments[_0x51348e(0xc2)];_0x2aebbe<_0x3b568c;_0x2aebbe++){_0x1133c5=arguments[_0x2aebbe];for(var _0x14c37f in _0x1133c5)Object['prototype'][_0x51348e(0xf5)][_0x51348e(0xc7)](_0x1133c5,_0x14c37f)&&(_0x372b37[_0x14c37f]=_0x1133c5[_0x14c37f]);}return _0x372b37;},c[_0x136e57(0xc9)](this,arguments);},Ce=function(_0x4aa172,_0x5c0395){var _0x4afcbf=_0x53df31,_0x44cb46={};for(var _0x31abbd in _0x4aa172)Object[_0x4afcbf(0x112)]['hasOwnProperty'][_0x4afcbf(0xc7)](_0x4aa172,_0x31abbd)&&_0x5c0395['indexOf'](_0x31abbd)<0x0&&(_0x44cb46[_0x31abbd]=_0x4aa172[_0x31abbd]);if(_0x4aa172!=null&&typeof Object[_0x4afcbf(0x115)]==_0x4afcbf(0x101)){for(var _0x41d4f8=0x0,_0x31abbd=Object[_0x4afcbf(0x115)](_0x4aa172);_0x41d4f8<_0x31abbd[_0x4afcbf(0xc2)];_0x41d4f8++)_0x5c0395['indexOf'](_0x31abbd[_0x41d4f8])<0x0&&Object[_0x4afcbf(0x112)][_0x4afcbf(0xfa)][_0x4afcbf(0xc7)](_0x4aa172,_0x31abbd[_0x41d4f8])&&(_0x44cb46[_0x31abbd[_0x41d4f8]]=_0x4aa172[_0x31abbd[_0x41d4f8]]);}return _0x44cb46;},W=_0xbb63ca(function(_0x1f4e85,_0x27ac37){var _0x77522a=_0x53df31,_0x89d6d9=_0x1f4e85[_0x77522a(0xe2)],_0x877f69=_0x1f4e85['id'],_0x5033d9=_0x1f4e85[_0x77522a(0xca)],_0x409e9a=_0x1f4e85['extend'],_0x2906be=Ce(_0x1f4e85,[_0x77522a(0xe2),'id',_0x77522a(0xca),_0x77522a(0x126)]),_0x540ff5=_0x77522a(0x10d)[_0x77522a(0xdf)](_0x877f69,'\x20')[_0x77522a(0xdf)](_0x5033d9||'')['trim'](),_0x3a2255=_0x307f07('_'['concat'](Le()));return Y(_0x89d6d9,''[_0x77522a(0xdf)](_0x877f69),{'defIds':_0x89d6d9[_0x77522a(0x93)],'idSuffix':_0x3a2255[_0x77522a(0xc1)]},c({'ref':_0x27ac37,'className':_0x540ff5},_0x2906be),_0x409e9a);});function Y(_0x337e79,_0x1f57fc,_0x1ab263,_0x30218f,_0x458e39){var _0x4f74a2=_0x53df31;return _0x3ba063(_0x337e79[_0x4f74a2(0x9f)],c(c({'key':_0x1f57fc},De(_0x337e79,_0x1ab263,_0x458e39)),_0x30218f),(xe(_0x337e79,_0x1ab263)[_0x4f74a2(0x102)]||[])[_0x4f74a2(0xe6)](function(_0x428176,_0x2ec799){var _0x1daa87=_0x4f74a2;return Y(_0x428176,''['concat'](_0x1f57fc,'-')['concat'](_0x337e79[_0x1daa87(0x9f)],'-')[_0x1daa87(0xdf)](_0x2ec799),_0x1ab263,void 0x0,_0x458e39);}));}function De(_0x39fd09,_0x2e7f8d,_0x5e5307){var _0x168b80=_0x53df31,_0x16da24=c({},_0x39fd09[_0x168b80(0xc6)]);_0x5e5307!=null&&_0x5e5307[_0x168b80(0xdd)]&&_0x16da24[_0x168b80(0xe5)]===_0x168b80(0xdd)&&(_0x16da24['fill']=_0x5e5307['colorChannel1']),_0x39fd09[_0x168b80(0x9f)]==='mask'&&_0x16da24['id']&&(_0x16da24['id']=_0x16da24['id']+_0x2e7f8d['idSuffix']),Object['entries'](_0x16da24)[_0x168b80(0x105)](function(_0x383361){var _0x7b50dd=_0x168b80,_0x22a359=_0x383361[0x0],_0x482314=_0x383361[0x1];_0x22a359===_0x7b50dd(0xf1)&&typeof _0x482314==_0x7b50dd(0x11d)&&(_0x16da24[_0x22a359]=_0x482314[_0x7b50dd(0xe4)](/url\(#(.*)\)/,_0x7b50dd(0x13c)['concat'](_0x2e7f8d['idSuffix'],')')));});var _0xfd050e=_0x2e7f8d[_0x168b80(0x93)];return!_0xfd050e||_0xfd050e[_0x168b80(0xc2)]===0x0||(_0x39fd09[_0x168b80(0x9f)]===_0x168b80(0x90)&&_0x16da24['xlink:href']&&(_0x16da24['xlink:href']=_0x16da24[_0x168b80(0x127)]+_0x2e7f8d[_0x168b80(0xcf)]),Object[_0x168b80(0xf8)](_0x16da24)[_0x168b80(0x105)](function(_0x4884ef){var _0x28e35e=_0x168b80,_0x33ec78=_0x4884ef[0x0],_0x2abb93=_0x4884ef[0x1];typeof _0x2abb93=='string'&&(_0x16da24[_0x33ec78]=_0x2abb93[_0x28e35e(0xe4)](/url\(#(.*)\)/,_0x28e35e(0x13c)[_0x28e35e(0xdf)](_0x2e7f8d[_0x28e35e(0xcf)],')')));})),_0x16da24;}function xe(_0x5c6681,_0x48df57){var _0x3f34a6=_0x53df31,_0x27d015,_0x41517a=_0x48df57[_0x3f34a6(0x93)];return!_0x41517a||_0x41517a[_0x3f34a6(0xc2)]===0x0?_0x5c6681:_0x5c6681[_0x3f34a6(0x9f)]===_0x3f34a6(0xa3)&&(!((_0x27d015=_0x5c6681[_0x3f34a6(0x102)])===null||_0x27d015===void 0x0)&&_0x27d015['length'])?c(c({},_0x5c6681),{'children':_0x5c6681[_0x3f34a6(0x102)][_0x3f34a6(0xe6)](function(_0xb69e79){var _0x347c4a=_0x3f34a6;return typeof _0xb69e79['attrs']['id']=='string'&&_0x41517a&&_0x41517a['includes'](_0xb69e79[_0x347c4a(0xc6)]['id'])?c(c({},_0xb69e79),{'attrs':c(c({},_0xb69e79[_0x347c4a(0xc6)]),{'id':_0xb69e79[_0x347c4a(0xc6)]['id']+_0x48df57[_0x347c4a(0xcf)]})}):_0xb69e79;})}):_0x5c6681;}function Le(){var _0x4ffc99=_0x53df31;return Math['random']()[_0x4ffc99(0x117)](0x24)['substring'](0x2,0x8);}W[_0x53df31(0xaf)]=_0x53df31(0x92);var ye={'tag':_0x53df31(0xb9),'attrs':{'xmlns':_0x53df31(0xb0),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x53df31(0x9b)},'children':[{'tag':_0x53df31(0x12a),'attrs':{'fill':_0x53df31(0xde),'d':_0x53df31(0xe3)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x53df31(0xcc),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0xbb63ca(function(_0x2e63d9,_0x377af1){var _0x2a75a3=_0x53df31;return _0x3ba063(W,Object[_0x2a75a3(0x120)]({},_0x2e63d9,{'id':_0x2a75a3(0xfe),'ref':_0x377af1,'icon':ye}));});B[_0x53df31(0xaf)]='LiveShareIcon';var Re=Object[_0x53df31(0x11e)],Z=(_0x4f775a,_0x403f94,_0x532ada,_0x4055d8)=>{for(var _0x12e545=_0x4055d8>0x1?void 0x0:_0x4055d8?Re(_0x403f94,_0x532ada):_0x403f94,_0xa64eae=_0x4f775a['length']-0x1,_0x5a4279;_0xa64eae>=0x0;_0xa64eae--)(_0x5a4279=_0x4f775a[_0xa64eae])&&(_0x12e545=_0x5a4279(_0x12e545)||_0x12e545);return _0x12e545;},f=(_0x38615d,_0x3cb488)=>(_0x252687,_0x376cbb)=>_0x3cb488(_0x252687,_0x376cbb,_0x38615d);let I=class extends _0x48dfad{constructor(_0x4828ef,_0x298a0a,_0x81f49b){var _0x38cbd1=_0x53df31;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x4828ef,this['_injector']=_0x298a0a,this[_0x38cbd1(0x111)]=_0x81f49b,this[_0x38cbd1(0x13b)]());}async[_0x53df31(0x139)](_0x4036ed){var _0xf5bc8e=_0x53df31;return this[_0xf5bc8e(0x128)][_0xf5bc8e(0x95)](_0x4036ed)||await this[_0xf5bc8e(0xd1)](_0x4036ed),this[_0xf5bc8e(0x128)][_0xf5bc8e(0xce)](_0x4036ed);}[_0x53df31(0x13b)](){var _0x878241=_0x53df31;this[_0x878241(0xa0)]['getTypeOfUnitAdded$'](_0x385cb0[_0x878241(0x108)])['pipe'](_0x2230bd(this[_0x878241(0xff)]))[_0x878241(0xeb)](async _0x3b4ed6=>{var _0x355ee1=_0x878241;const _0x22b912=_0x3b4ed6[_0x355ee1(0xcb)]();this[_0x355ee1(0x128)][_0x355ee1(0x95)](_0x22b912)||this['_startLiveShareCoordinator'](_0x22b912);}),this[_0x878241(0xa0)][_0x878241(0xa4)](_0x385cb0[_0x878241(0x108)])[_0x878241(0x103)](_0x2230bd(this[_0x878241(0xff)]))['subscribe'](_0x374c95=>{var _0x4867ef=_0x878241;const _0x9f658=_0x374c95[_0x4867ef(0xcb)](),_0x1e823d=this[_0x4867ef(0x128)]['get'](_0x9f658);_0x1e823d==null||_0x1e823d['dispose']();});}async[_0x53df31(0xd1)](_0x254507){var _0x3a0bff=_0x53df31;const _0x26acb6=await this['_collabSessionService'][_0x3a0bff(0x129)](_0x254507),_0xcb8882=this['_injector'][_0x3a0bff(0x100)](C,_0x254507,_0x26acb6);return _0xcb8882[_0x3a0bff(0xea)](),this[_0x3a0bff(0x128)][_0x3a0bff(0x12b)](_0x254507,_0xcb8882),_0xcb8882;}};I=Z([f(0x0,_0x95cc2e),f(0x1,_0x20c164(_0x3ccf0b)),f(0x2,_0x20c164(_0x4b1bd5))],I);var h=(_0x4b75fb=>(_0x4b75fb[_0x53df31(0xd7)]=_0x53df31(0x13a),_0x4b75fb[_0x53df31(0xd5)]=_0x53df31(0x114),_0x4b75fb['FOLLOWING']=_0x53df31(0xd3),_0x4b75fb[_0x53df31(0xf3)]=_0x53df31(0xbc),_0x4b75fb[_0x53df31(0x10a)]=_0x53df31(0xba),_0x4b75fb))(h||{});const Pe=_0x53df31(0xf4),Ae=0xc8;let C=class extends _0x48dfad{constructor(_0x299591,_0x42c71a,_0x3e72b5,_0x1a4140,_0x32fb3b){var _0x4a2753=_0x53df31;super(),d(this,_0x4a2753(0x109),new _0x5ef958(_0x4a2753(0x114))),d(this,_0x4a2753(0x133),this[_0x4a2753(0x109)][_0x4a2753(0xdc)]()),d(this,_0x4a2753(0x13b),!0x1),d(this,'_commandDisposable',null),d(this,_0x4a2753(0x138),null),(this[_0x4a2753(0xa2)]=_0x299591,this[_0x4a2753(0xb7)]=_0x42c71a,this[_0x4a2753(0x9e)]=_0x3e72b5,this[_0x4a2753(0x13d)]=_0x1a4140,this[_0x4a2753(0x107)]=_0x32fb3b);}get[_0x53df31(0x9c)](){var _0x55d273=_0x53df31;return this[_0x55d273(0x109)][_0x55d273(0x118)]();}['dispose'](){var _0x418931=_0x53df31,_0x2a030c;(_0x2a030c=this['_commandDisposable'])==null||_0x2a030c['dispose'](),this[_0x418931(0x109)][_0x418931(0x10e)]('idle'),this[_0x418931(0x109)][_0x418931(0xa6)]();}[_0x53df31(0xea)](){var _0xc38259=_0x53df31;this[_0xc38259(0x13b)]||(this[_0xc38259(0x13b)]=!0x0,this[_0xc38259(0xb7)]['sessionStatus$']['pipe'](_0x2230bd(this[_0xc38259(0xff)]))[_0xc38259(0xeb)](_0x4a2e10=>{var _0x1aa09f=_0xc38259;switch(_0x4a2e10){case _0x39f60d[_0x1aa09f(0xd7)]:this[_0x1aa09f(0x135)]();break;case _0x39f60d[_0x1aa09f(0x12e)]:this[_0x1aa09f(0xe7)]();break;}}),this[_0xc38259(0xb7)][_0xc38259(0xf9)][_0xc38259(0x103)](_0x2230bd(this[_0xc38259(0xff)]))[_0xc38259(0xeb)](_0xf1bc07=>{var _0x5d6118=_0xc38259;const {eventID:_0x4ffbdb}=_0xf1bc07;switch(_0x4ffbdb){case _0x22d9e1['LIVESHARE_NEW_HOST']:this[_0x5d6118(0x12d)](_0xf1bc07);break;case _0x22d9e1['LIVESHARE_OPERATION']:this['_handleOperation'](_0xf1bc07);break;case _0x22d9e1['LIVESHARE_TERMINATE']:this[_0x5d6118(0xd6)]();break;case _0x22d9e1[_0x5d6118(0xa7)]:this[_0x5d6118(0x121)](_0xf1bc07);break;}}));}['tryStartPresenting'](){var _0x309274=_0x53df31;this['_collabSession']['send']({'eventID':_0x22d9e1[_0x309274(0xf0)],'data':{'unitID':this[_0x309274(0xa2)],'userID':this[_0x309274(0xb7)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){var _0x284dcc=_0x53df31;this['_status']===_0x284dcc(0xba)&&(this[_0x284dcc(0x109)][_0x284dcc(0x10e)]('idle'),this[_0x284dcc(0xb7)][_0x284dcc(0x132)]({'eventID':_0x22d9e1['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x284dcc(0xa2)]}},this[_0x284dcc(0xa2)]));}['startFollowing'](){var _0x9817c=_0x53df31;this[_0x9817c(0x9c)]==='not-following'&&(this['_status$']['next'](_0x9817c(0xd3)),this['_startFollowing']());}[_0x53df31(0x9d)](){var _0x52a0e0=_0x53df31;this[_0x52a0e0(0x9c)]===_0x52a0e0(0xd3)&&this[_0x52a0e0(0xee)]();}[_0x53df31(0x12d)](_0x17783e){var _0xd14cb0=_0x53df31;const {presenter:_0x7fd418}=_0x17783e['data'],_0xc52b26=this[_0xd14cb0(0xb7)][_0xd14cb0(0x91)]();this['_presenter']=_0x7fd418,_0x7fd418===_0xc52b26?(this['_stopFollowing'](),this[_0xd14cb0(0xfb)]()):this['_status']!==_0xd14cb0(0xbc)&&(this['_stopPresenting'](),this['_startFollowing']());}['_fetchOperations'](){var _0x1211bb=_0x53df31;const _0x20dfc7={'eventID':_0x22d9e1[_0x1211bb(0xe1)]};this['_collabSession'][_0x1211bb(0x132)](_0x20dfc7,this[_0x1211bb(0xa2)]);}[_0x53df31(0xd6)](){var _0x12c133=_0x53df31;this[_0x12c133(0x138)]=null,this['_status']!=='presenting'&&this[_0x12c133(0xbe)]();}['_handleNewChangeSets'](_0x53a12c){var _0x561afa=_0x53df31;if(this[_0x561afa(0x9c)]==='following'&&this[_0x561afa(0x138)]===_0x53a12c[_0x561afa(0x104)][_0x561afa(0xbf)]){const _0x265bbd=_0x5a28cf(_0x53a12c[_0x561afa(0x104)])[_0x561afa(0xac)][_0x561afa(0xfd)]()[_0x561afa(0x12f)](_0x16befc=>_0x16befc['id']===_0x13e727['id']);if(_0x265bbd){const _0x3f6643=_0x265bbd[_0x561afa(0x10c)][_0x561afa(0x119)],_0xe364f4=_0x265bbd[_0x561afa(0x10c)][_0x561afa(0x12c)]['id'];setTimeout(()=>{var _0x25c6a3=_0x561afa;this[_0x25c6a3(0x107)][_0x25c6a3(0xad)](_0x1ee7b5['id'],{'unitId':_0x3f6643,'subUnitId':_0xe364f4},{'fromCollab':!0x0});});}}}[_0x53df31(0xfb)](){var _0x4c83f1=_0x53df31;this[_0x4c83f1(0x109)][_0x4c83f1(0x10e)]('presenting');const _0x580b49=new Map(),_0x5d435c=this[_0x4c83f1(0xc4)]=new _0x415c13();_0x5d435c['add'](_0x49d4cb(()=>{var _0xb8ac38=_0x4c83f1;_0x580b49[_0xb8ac38(0x105)](_0xee73b5=>_0xee73b5[_0xb8ac38(0xa6)]()),_0x580b49[_0xb8ac38(0x96)]();})),_0x5d435c['add'](this[_0x4c83f1(0x107)][_0x4c83f1(0x11c)](_0x4d4bbf=>{var _0x59930c=_0x4c83f1,_0x428010;if(_0x4d4bbf[_0x59930c(0xdb)]!==_0x52360d['OPERATION']||!this[_0x59930c(0x13d)][_0x59930c(0xed)](_0x4d4bbf['id']))return;const {id:_0x1f98a1}=_0x4d4bbf;let _0x14fc4d;_0x580b49[_0x59930c(0x95)](_0x1f98a1)?_0x14fc4d=_0x580b49[_0x59930c(0xce)](_0x1f98a1):(_0x14fc4d=new _0x565a21(),_0x580b49['set'](_0x1f98a1,_0x14fc4d),_0x14fc4d[_0x59930c(0x103)](_0x30ccf3((_0x428010=this['_configService'][_0x59930c(0xe9)](Pe))!=null?_0x428010:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59930c(0xeb)](_0x1c7ac4=>{var _0x3593f5=_0x59930c;this[_0x3593f5(0xb7)][_0x3593f5(0x132)]({'eventID':_0x22d9e1[_0x3593f5(0x123)],'data':{'unitID':this[_0x3593f5(0xa2)],'operations':{[_0x1c7ac4['id']]:{'id':_0x1c7ac4['id'],'params':JSON[_0x3593f5(0x8f)](_0x1c7ac4[_0x3593f5(0x10c)])}}}},this[_0x3593f5(0xa2)]);})),_0x14fc4d[_0x59930c(0x10e)](_0x4d4bbf);})),this[_0x4c83f1(0x13d)][_0x4c83f1(0xec)](this[_0x4c83f1(0xa2)])[_0x4c83f1(0x105)](_0x50bc9f=>this[_0x4c83f1(0xb7)]['send']({'eventID':_0x22d9e1[_0x4c83f1(0x123)],'data':{'unitID':this[_0x4c83f1(0xa2)],'operations':{[_0x50bc9f['id']]:{'id':_0x50bc9f['id'],'params':JSON['stringify'](_0x50bc9f[_0x4c83f1(0x10c)])}}}},this[_0x4c83f1(0xa2)]));}[_0x53df31(0x136)](){var _0x371855=_0x53df31,_0xbc367e;this['_status$'][_0x371855(0x10e)](_0x371855(0x114)),(_0xbc367e=this['_commandDisposable'])==null||_0xbc367e[_0x371855(0x130)](),this[_0x371855(0xc4)]=null;}[_0x53df31(0xd0)](){var _0x2b917b=_0x53df31,_0x1b19f5;(_0x1b19f5=this['_commandDisposable'])==null||_0x1b19f5[_0x2b917b(0x130)](),this[_0x2b917b(0x109)][_0x2b917b(0x10e)](_0x2b917b(0xd3));}[_0x53df31(0xbe)](){var _0x31f84d=_0x53df31,_0x50e339;this[_0x31f84d(0x109)][_0x31f84d(0x10e)](_0x31f84d(0x114)),(_0x50e339=this[_0x31f84d(0xc4)])==null||_0x50e339[_0x31f84d(0x130)](),this[_0x31f84d(0xc4)]=null;}[_0x53df31(0xee)](){var _0x211cf7=_0x53df31,_0x518957;this[_0x211cf7(0x109)][_0x211cf7(0x10e)](_0x211cf7(0xbc)),(_0x518957=this[_0x211cf7(0xc4)])==null||_0x518957[_0x211cf7(0x130)]();}['_handleOperation'](_0x23121a){var _0x5990ee=_0x53df31;if([_0x5990ee(0xba),'not-following',_0x5990ee(0x13a)][_0x5990ee(0x9a)](this[_0x5990ee(0x9c)])||!_0x23121a[_0x5990ee(0x104)][_0x5990ee(0xd2)]||_0x23121a['data'][_0x5990ee(0xd2)]===this['_collabSession'][_0x5990ee(0x91)]())return;this['_status']===_0x5990ee(0x114)&&this['_startFollowing']();const _0x441352=_0x23121a['data']['operations'];Object[_0x5990ee(0xe0)](_0x441352)[_0x5990ee(0x105)](_0x293737=>{var _0xc29aa3=_0x5990ee;this['_commandService'][_0xc29aa3(0xad)](_0x293737['id'],_0x293737[_0xc29aa3(0x10c)]?JSON[_0xc29aa3(0xb5)](_0x293737[_0xc29aa3(0x10c)]):null,{'fromCollab':!0x0});});}[_0x53df31(0x135)](){var _0x284f4f=_0x53df31,_0x209275;this['_status$'][_0x284f4f(0x10e)](_0x284f4f(0x13a)),(_0x209275=this[_0x284f4f(0xc4)])==null||_0x209275[_0x284f4f(0x130)]();}[_0x53df31(0xe7)](){var _0x564722=_0x53df31;this[_0x564722(0x109)][_0x564722(0x10e)]('idle'),this[_0x564722(0xb4)]();}};C=Z([f(0x2,_0x4f4f6d),f(0x3,_0x20c164(L)),f(0x4,_0x4f089e)],C);function Te(){var _0x26be6a=_0x53df31;const _0x22c3ac=_0x5539b1(I),_0x21b18e=_0x5539b1(_0x95cc2e),_0x588d26=_0x3f45f9(()=>_0x21b18e[_0x26be6a(0x124)](_0x385cb0[_0x26be6a(0x108)]),void 0x0,!0x1,[]),[_0x567964,_0xf60297]=_0x43b4fd(null),[_0x1c575d,_0x21809e]=_0x43b4fd(h['IDLE']),_0x3ccc58=_0x307f07(null);return _0xfc1829(()=>(_0x588d26&&_0x22c3ac[_0x26be6a(0x139)](_0x588d26[_0x26be6a(0xcb)]())[_0x26be6a(0x11f)](_0x4b949c=>{var _0x350237=_0x26be6a;_0xf60297(_0x4b949c),_0x3ccc58[_0x350237(0xc1)]=_0x4b949c['status$']['subscribe'](_0x29dac2=>{_0x21809e(_0x29dac2);});}),()=>{var _0x44f963=_0x26be6a,_0x4b3842;(_0x4b3842=_0x3ccc58[_0x44f963(0xc1)])==null||_0x4b3842['unsubscribe'](),_0x3ccc58[_0x44f963(0xc1)]=null;}),[_0x588d26,_0x22c3ac]),_0x567964?_0x12edff(_0x347dd2,{'align':_0x26be6a(0x98),'disabled':_0x1c575d===h['OFFLINE'],'className':_0x26be6a(0x99),'overlay':_0x12edff($e,{'status':_0x1c575d,'coordinator':_0x567964}),'children':_0x12edff(_0x26be6a(0xaa),{'className':_0x29ceb8('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1c575d===h[_0x26be6a(0xd7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1c575d!==h['OFFLINE']}),'type':_0x26be6a(0xaa),'children':_0x12edff(B,{'className':'univer-size-4'})})}):null;}function $e(_0x570f05){var _0x4025a4=_0x53df31;const {status:_0x2ced9f,coordinator:_0x2e99e3}=_0x570f05;switch(_0x2ced9f){case h[_0x4025a4(0xd5)]:return _0x12edff(Fe,{'coordinator':_0x2e99e3});case h['FOLLOWING']:return _0x12edff(He,{'coordinator':_0x2e99e3});case h['NOT_FOLLOWING']:return _0x12edff(je,{'coordinator':_0x2e99e3});case h[_0x4025a4(0xd7)]:return _0x12edff(Ve,{});case h['PRESENTING']:return _0x12edff(Ue,{'coordinator':_0x2e99e3});default:return null;}}function Fe(_0x5bbd59){var _0x41bba0=_0x53df31;const {coordinator:_0x16f8f6}=_0x5bbd59;return _0x14e079(_0x483276,{'children':[_0x12edff('div',{'className':_0x41bba0(0xd9),'children':_0x41bba0(0xae)}),_0x12edff(_0x160b32,{'onClick':()=>_0x16f8f6[_0x41bba0(0xd8)](),'children':_0x41bba0(0x11a)})]});}function He(_0x4046cd){var _0x143376=_0x53df31;const {coordinator:_0x18ef2c}=_0x4046cd;return _0x14e079(_0x483276,{'children':[_0x12edff(_0x143376(0xb8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x143376(0x10b)}),_0x12edff(_0x160b32,{'onClick':()=>_0x18ef2c['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x63a78e){var _0x5b24ea=_0x53df31;const {coordinator:_0xfaa4cd}=_0x63a78e;return _0x14e079(_0x483276,{'children':[_0x12edff(_0x5b24ea(0xb8),{'className':_0x5b24ea(0xd9),'children':_0x5b24ea(0x8e)}),_0x12edff(_0x160b32,{'variant':_0x5b24ea(0x110),'onClick':()=>_0xfaa4cd[_0x5b24ea(0xf7)](),'children':_0x5b24ea(0xbd)})]});}function Ue(_0x5bf94a){var _0x5b1549=_0x53df31;const {coordinator:_0x3233c9}=_0x5bf94a;return _0x14e079(_0x483276,{'children':[_0x12edff(_0x5b1549(0xb8),{'className':_0x5b1549(0xd9),'children':_0x5b1549(0xb1)}),_0x12edff(_0x160b32,{'variant':_0x5b1549(0x134),'onClick':()=>_0x3233c9['stopPresenting'](),'children':_0x5b1549(0x125)})]});}function Ve(){return _0x12edff(_0x483276,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x53df31(0x11e)],ke=(_0x4c5ce1,_0x15d6c2,_0x225ec3,_0x4d409f)=>{var _0x3363fd=_0x53df31;for(var _0x4e6028=_0x4d409f>0x1?void 0x0:_0x4d409f?Me(_0x15d6c2,_0x225ec3):_0x15d6c2,_0x135d96=_0x4c5ce1[_0x3363fd(0xc2)]-0x1,_0x952ffb;_0x135d96>=0x0;_0x135d96--)(_0x952ffb=_0x4c5ce1[_0x135d96])&&(_0x4e6028=_0x952ffb(_0x4e6028)||_0x4e6028);return _0x4e6028;},$=(_0x5df3ed,_0x54d237)=>(_0x458e4c,_0x103fcb)=>_0x54d237(_0x458e4c,_0x103fcb,_0x5df3ed);let b=class extends _0x5a04f9{constructor(_0x178121,_0x2ebe83){var _0x588344=_0x53df31;super(),this[_0x588344(0xfc)]=_0x178121,this[_0x588344(0x10f)]=_0x2ebe83,this[_0x588344(0x113)]();}[_0x53df31(0x113)](){var _0x268cd3=_0x53df31;this[_0x268cd3(0xc8)](this[_0x268cd3(0x10f)]['registerComponent'](_0xdc8fee['HEADER_MENU'],()=>_0x5602d2(Te,this['_injector'])));}};b=ke([$(0x0,_0x20c164(_0x3ccf0b)),$(0x1,_0x1bfc6c)],b);var Ge=Object[_0x53df31(0xb2)],We=Object[_0x53df31(0x11e)],Ye=(_0x48a29a,_0x3323e7,_0x5f14af)=>_0x3323e7 in _0x48a29a?Ge(_0x48a29a,_0x3323e7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f14af}):_0x48a29a[_0x3323e7]=_0x5f14af,Be=(_0x6f85fb,_0x5ab383,_0x34b0e8,_0x30248d)=>{var _0x18512e=_0x53df31;for(var _0x568695=_0x30248d>0x1?void 0x0:_0x30248d?We(_0x5ab383,_0x34b0e8):_0x5ab383,_0x5dba0c=_0x6f85fb[_0x18512e(0xc2)]-0x1,_0x2b9df2;_0x5dba0c>=0x0;_0x5dba0c--)(_0x2b9df2=_0x6f85fb[_0x5dba0c])&&(_0x568695=_0x2b9df2(_0x568695)||_0x568695);return _0x568695;},F=(_0x1a8cfb,_0x17c2ac)=>(_0x321860,_0x14298f)=>_0x17c2ac(_0x321860,_0x14298f,_0x1a8cfb),J=(_0x3a94f5,_0x40486d,_0x593edc)=>Ye(_0x3a94f5,typeof _0x40486d!=_0x53df31(0xc5)?_0x40486d+'':_0x40486d,_0x593edc);const Ze=_0x53df31(0xab);let O=class extends _0x1abe21{constructor(_0x1802e2=T,_0x37c7dc,_0x2bbb9a){var _0x2bba85=_0x53df31;super(),this[_0x2bba85(0xda)]=_0x1802e2,this[_0x2bba85(0xfc)]=_0x37c7dc,this[_0x2bba85(0x9e)]=_0x2bbb9a;const {..._0x3dc20f}=_0x7c3f35({},T,this['_config']);this[_0x2bba85(0x9e)][_0x2bba85(0x122)](Oe,_0x3dc20f);}[_0x53df31(0x106)](){var _0x37b7ce=_0x53df31;_0x23b8d8(this[_0x37b7ce(0xfc)],_0x5e3bcd([[L],[I],[m],[b]],this[_0x37b7ce(0xda)]['override'])),_0x53fd42(this[_0x37b7ce(0xfc)],[[m]]);}[_0x53df31(0xb3)](){var _0x546097=_0x53df31;_0x53fd42(this[_0x546097(0xfc)],[[b]]);}};J(O,_0x53df31(0xdb),_0x385cb0[_0x53df31(0xe8)]),J(O,_0x53df31(0xa1),Ze),O=Be([_0x1064d3(_0x10d435),F(0x1,_0x20c164(_0x3ccf0b)),F(0x2,_0x4f4f6d)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2347(_0x1533ad,_0x4e6f4d){var _0x459895=_0x4598();return _0x2347=function(_0x2347f8,_0x2e27f7){_0x2347f8=_0x2347f8-0x80;var _0x2be16e=_0x459895[_0x2347f8];return _0x2be16e;},_0x2347(_0x1533ad,_0x4e6f4d);}(function(_0x32776d,_0x85e36e){var _0x1adce7=_0x2347,_0x469fa6=_0x32776d();while(!![]){try{var _0x57afe4=-parseInt(_0x1adce7(0x161))/0x1+-parseInt(_0x1adce7(0x11a))/0x2+-parseInt(_0x1adce7(0x150))/0x3*(parseInt(_0x1adce7(0xcb))/0x4)+-parseInt(_0x1adce7(0xf4))/0x5*(parseInt(_0x1adce7(0xed))/0x6)+-parseInt(_0x1adce7(0x130))/0x7+parseInt(_0x1adce7(0x14e))/0x8*(-parseInt(_0x1adce7(0x8e))/0x9)+parseInt(_0x1adce7(0x153))/0xa;if(_0x57afe4===_0x85e36e)break;else _0x469fa6['push'](_0x469fa6['shift']());}catch(_0x5d1e01){_0x469fa6['push'](_0x469fa6['shift']());}}}(_0x4598,0x1deee),function(_0x5581cb,_0x1fffd4){var _0x2dbe5e=_0x2347;typeof exports==_0x2dbe5e(0xa4)&&typeof module<'u'?_0x1fffd4(exports,require(_0x2dbe5e(0x85)),require(_0x2dbe5e(0xd2)),require(_0x2dbe5e(0x104)),require('@univerjs/sheets-ui'),require(_0x2dbe5e(0x8d)),require(_0x2dbe5e(0x129)),require('@univerjs/design'),require(_0x2dbe5e(0xd3)),require(_0x2dbe5e(0x159)),require('rxjs'),require(_0x2dbe5e(0xe8))):typeof define==_0x2dbe5e(0xac)&&define[_0x2dbe5e(0xb8)]?define([_0x2dbe5e(0xcf),'@univerjs-pro/collaboration-client','@univerjs/core',_0x2dbe5e(0x104),_0x2dbe5e(0xf3),_0x2dbe5e(0x8d),_0x2dbe5e(0x129),_0x2dbe5e(0xc9),_0x2dbe5e(0xd3),_0x2dbe5e(0x159),_0x2dbe5e(0x12f),_0x2dbe5e(0xe8)],_0x1fffd4):(_0x5581cb=typeof globalThis<'u'?globalThis:_0x5581cb||self,_0x1fffd4(_0x5581cb[_0x2dbe5e(0xeb)]={},_0x5581cb[_0x2dbe5e(0x146)],_0x5581cb[_0x2dbe5e(0x99)],_0x5581cb['UniverSheets'],_0x5581cb[_0x2dbe5e(0x12b)],_0x5581cb[_0x2dbe5e(0x156)],_0x5581cb[_0x2dbe5e(0x106)],_0x5581cb['UniverDesign'],_0x5581cb[_0x2dbe5e(0x106)],_0x5581cb[_0x2dbe5e(0xf6)],_0x5581cb[_0x2dbe5e(0x12f)],_0x5581cb[_0x2dbe5e(0x12f)][_0x2dbe5e(0xf8)]));}(this,function(_0x31af11,_0x193c81,_0x582fc2,_0x461527,_0x5acd9c,_0x44d67f,_0x29ce29,_0xa4fd25,_0x51061d,_0x3e69c6,_0x23ca8b,_0x4a9dcb){'use strict';var _0xac339f=_0x2347;var _0x2c1662=Object[_0xac339f(0x113)],_0x277474=(_0x58ac78,_0x1e8ea7,_0x4c3e28)=>_0x1e8ea7 in _0x58ac78?_0x2c1662(_0x58ac78,_0x1e8ea7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c3e28}):_0x58ac78[_0x1e8ea7]=_0x4c3e28,_0x2fa8a3=(_0x557927,_0xcd5d67,_0xe15a02)=>_0x277474(_0x557927,typeof _0xcd5d67!='symbol'?_0xcd5d67+'':_0xcd5d67,_0xe15a02);const _0x2308db='live-share.config',_0x1b00d9={};class _0x5b3171 extends _0x582fc2['Disposable']{constructor(){var _0x6fc015=_0xac339f;super(...arguments),_0x2fa8a3(this,_0x6fc015(0xfa),new Set()),_0x2fa8a3(this,_0x6fc015(0xd7),new Set());}[_0xac339f(0x89)](_0x257b66){var _0xb2bac5=_0xac339f;return this[_0xb2bac5(0xfa)][_0xb2bac5(0x11e)](_0x257b66),_0x582fc2[_0xb2bac5(0x141)](()=>this[_0xb2bac5(0xfa)][_0xb2bac5(0x100)](_0x257b66));}['registerInitialStateReporter'](_0xbe63f5){var _0x3d712c=_0xac339f;return this[_0x3d712c(0xd7)][_0x3d712c(0x11e)](_0xbe63f5),_0x582fc2[_0x3d712c(0x141)](()=>this[_0x3d712c(0xd7)]['delete'](_0xbe63f5));}[_0xac339f(0xc2)](_0x21d128){var _0x5aedd1=_0xac339f;return this[_0x5aedd1(0xfa)][_0x5aedd1(0xaf)](_0x21d128);}[_0xac339f(0x160)](_0x2e6825){var _0x5077a2=_0xac339f;return Array[_0x5077a2(0x112)](this[_0x5077a2(0xd7)])[_0x5077a2(0xa9)](_0x318f29=>_0x318f29(_0x2e6825));}}var _0x2bfa6a=Object['getOwnPropertyDescriptor'],_0x64beb6=(_0x1333a3,_0x5df99d,_0x218447,_0x1bda14)=>{var _0x5bb914=_0xac339f;for(var _0x179873=_0x1bda14>0x1?void 0x0:_0x1bda14?_0x2bfa6a(_0x5df99d,_0x218447):_0x5df99d,_0x502082=_0x1333a3[_0x5bb914(0x14c)]-0x1,_0x54f2ff;_0x502082>=0x0;_0x502082--)(_0x54f2ff=_0x1333a3[_0x502082])&&(_0x179873=_0x54f2ff(_0x179873)||_0x179873);return _0x179873;},_0x5a1cd5=(_0x9c7e1a,_0x31eabc)=>(_0x50e50c,_0x47c600)=>_0x31eabc(_0x50e50c,_0x47c600,_0x9c7e1a);let _0x3e27bd=class extends _0x582fc2['Disposable']{constructor(_0x379b38){var _0x279cb8=_0xac339f;super(),this['_liveShareService']=_0x379b38,this[_0x279cb8(0x80)]();}[_0xac339f(0x80)](){var _0x3597db=_0xac339f;[_0x5acd9c[_0x3597db(0x9a)]['id'],_0x5acd9c['SetScrollOperation']['id'],_0x461527[_0x3597db(0x8b)]['id']][_0x3597db(0x10a)](_0x51bf9e=>{var _0x3398b8=_0x3597db;this[_0x3398b8(0x128)](this[_0x3398b8(0x124)][_0x3398b8(0x89)](_0x51bf9e));});}};_0x3e27bd=_0x64beb6([_0x5a1cd5(0x0,_0x582fc2['Inject'](_0x5b3171))],_0x3e27bd);var _0x45f7e8=function(){var _0x241cb8=_0xac339f;return _0x45f7e8=Object[_0x241cb8(0xb1)]||function(_0x5ed970){var _0xf64422=_0x241cb8;for(var _0x45d738,_0x9d890a=0x1,_0x2e2cca=arguments[_0xf64422(0x14c)];_0x9d890a<_0x2e2cca;_0x9d890a++){_0x45d738=arguments[_0x9d890a];for(var _0x5b3ccf in _0x45d738)Object[_0xf64422(0x139)][_0xf64422(0x111)][_0xf64422(0x148)](_0x45d738,_0x5b3ccf)&&(_0x5ed970[_0x5b3ccf]=_0x45d738[_0x5b3ccf]);}return _0x5ed970;},_0x45f7e8[_0x241cb8(0x165)](this,arguments);},_0x228785=function(_0x205e43,_0x5e4fa9){var _0x40e6b9=_0xac339f,_0x4f1ce0={};for(var _0x35540c in _0x205e43)Object[_0x40e6b9(0x139)][_0x40e6b9(0x111)]['call'](_0x205e43,_0x35540c)&&_0x5e4fa9[_0x40e6b9(0xba)](_0x35540c)<0x0&&(_0x4f1ce0[_0x35540c]=_0x205e43[_0x35540c]);if(_0x205e43!=null&&typeof Object[_0x40e6b9(0xa0)]==_0x40e6b9(0xac)){for(var _0x4e72bc=0x0,_0x35540c=Object[_0x40e6b9(0xa0)](_0x205e43);_0x4e72bc<_0x35540c[_0x40e6b9(0x14c)];_0x4e72bc++)_0x5e4fa9[_0x40e6b9(0xba)](_0x35540c[_0x4e72bc])<0x0&&Object[_0x40e6b9(0x139)][_0x40e6b9(0xda)][_0x40e6b9(0x148)](_0x205e43,_0x35540c[_0x4e72bc])&&(_0x4f1ce0[_0x35540c[_0x4e72bc]]=_0x205e43[_0x35540c[_0x4e72bc]]);}return _0x4f1ce0;},_0x15bb3f=_0x51061d[_0xac339f(0x138)](function(_0x104414,_0x572330){var _0x59d185=_0xac339f,_0x23ee3a=_0x104414['icon'],_0x4845a0=_0x104414['id'],_0x339722=_0x104414[_0x59d185(0x105)],_0x441560=_0x104414[_0x59d185(0xbe)],_0x523698=_0x228785(_0x104414,['icon','id',_0x59d185(0x105),_0x59d185(0xbe)]),_0x34d21b=_0x59d185(0x108)[_0x59d185(0xea)](_0x4845a0,'\x20')[_0x59d185(0xea)](_0x339722||'')[_0x59d185(0x83)](),_0x306f19=_0x51061d[_0x59d185(0x11c)]('_'['concat'](_0x594add()));return _0x2afcc7(_0x23ee3a,''[_0x59d185(0xea)](_0x4845a0),{'defIds':_0x23ee3a[_0x59d185(0x154)],'idSuffix':_0x306f19[_0x59d185(0xec)]},_0x45f7e8({'ref':_0x572330,'className':_0x34d21b},_0x523698),_0x441560);});function _0x2afcc7(_0x10f4fb,_0x1d732e,_0x1b5d37,_0x3d2c10,_0x2e4aec){var _0x17b947=_0xac339f;return _0x51061d[_0x17b947(0x132)](_0x10f4fb[_0x17b947(0x119)],_0x45f7e8(_0x45f7e8({'key':_0x1d732e},_0xe898c5(_0x10f4fb,_0x1b5d37,_0x2e4aec)),_0x3d2c10),(_0x459465(_0x10f4fb,_0x1b5d37)[_0x17b947(0x12d)]||[])[_0x17b947(0xa9)](function(_0x29a78e,_0x19bdb0){var _0x2586d7=_0x17b947;return _0x2afcc7(_0x29a78e,''[_0x2586d7(0xea)](_0x1d732e,'-')[_0x2586d7(0xea)](_0x10f4fb[_0x2586d7(0x119)],'-')[_0x2586d7(0xea)](_0x19bdb0),_0x1b5d37,void 0x0,_0x2e4aec);}));}function _0xe898c5(_0x5efd64,_0x3c9665,_0x20a306){var _0x3cdca5=_0xac339f,_0x5457aa=_0x45f7e8({},_0x5efd64[_0x3cdca5(0x137)]);_0x20a306!=null&&_0x20a306['colorChannel1']&&_0x5457aa[_0x3cdca5(0xe1)]==='colorChannel1'&&(_0x5457aa['fill']=_0x20a306[_0x3cdca5(0xc1)]),_0x5efd64[_0x3cdca5(0x119)]==='mask'&&_0x5457aa['id']&&(_0x5457aa['id']=_0x5457aa['id']+_0x3c9665[_0x3cdca5(0x16b)]),Object[_0x3cdca5(0x140)](_0x5457aa)['forEach'](function(_0x2b96ec){var _0x5b6cda=_0x3cdca5,_0x3877f5=_0x2b96ec[0x0],_0x16c6e6=_0x2b96ec[0x1];_0x3877f5===_0x5b6cda(0x107)&&typeof _0x16c6e6==_0x5b6cda(0xe6)&&(_0x5457aa[_0x3877f5]=_0x16c6e6[_0x5b6cda(0xe4)](/url\(#(.*)\)/,_0x5b6cda(0xa6)[_0x5b6cda(0xea)](_0x3c9665['idSuffix'],')')));});var _0x21a52c=_0x3c9665[_0x3cdca5(0x154)];return!_0x21a52c||_0x21a52c[_0x3cdca5(0x14c)]===0x0||(_0x5efd64[_0x3cdca5(0x119)]==='use'&&_0x5457aa[_0x3cdca5(0xa2)]&&(_0x5457aa['xlink:href']=_0x5457aa['xlink:href']+_0x3c9665[_0x3cdca5(0x16b)]),Object[_0x3cdca5(0x140)](_0x5457aa)[_0x3cdca5(0x10a)](function(_0x45262a){var _0x27da9d=_0x3cdca5,_0x226fc4=_0x45262a[0x0],_0xfa18aa=_0x45262a[0x1];typeof _0xfa18aa==_0x27da9d(0xe6)&&(_0x5457aa[_0x226fc4]=_0xfa18aa[_0x27da9d(0xe4)](/url\(#(.*)\)/,'url(#$1'[_0x27da9d(0xea)](_0x3c9665['idSuffix'],')')));})),_0x5457aa;}function _0x459465(_0x236402,_0xfa7f6a){var _0x10dbec=_0xac339f,_0x1560e3,_0xbcafe5=_0xfa7f6a[_0x10dbec(0x154)];return!_0xbcafe5||_0xbcafe5[_0x10dbec(0x14c)]===0x0?_0x236402:_0x236402[_0x10dbec(0x119)]===_0x10dbec(0x168)&&(!((_0x1560e3=_0x236402[_0x10dbec(0x12d)])===null||_0x1560e3===void 0x0)&&_0x1560e3[_0x10dbec(0x14c)])?_0x45f7e8(_0x45f7e8({},_0x236402),{'children':_0x236402[_0x10dbec(0x12d)]['map'](function(_0x1a9f78){var _0x49017f=_0x10dbec;return typeof _0x1a9f78[_0x49017f(0x137)]['id']==_0x49017f(0xe6)&&_0xbcafe5&&_0xbcafe5[_0x49017f(0x13b)](_0x1a9f78[_0x49017f(0x137)]['id'])?_0x45f7e8(_0x45f7e8({},_0x1a9f78),{'attrs':_0x45f7e8(_0x45f7e8({},_0x1a9f78[_0x49017f(0x137)]),{'id':_0x1a9f78[_0x49017f(0x137)]['id']+_0xfa7f6a['idSuffix']})}):_0x1a9f78;})}):_0x236402;}function _0x594add(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x15bb3f[_0xac339f(0xee)]=_0xac339f(0x12e);var _0x2880dd={'tag':'svg','attrs':{'xmlns':_0xac339f(0xdc),'fill':'none','viewBox':_0xac339f(0x121),'width':_0xac339f(0x116),'height':_0xac339f(0x116)},'children':[{'tag':'path','attrs':{'fill':_0xac339f(0xd4),'d':_0xac339f(0x149)}},{'tag':_0xac339f(0x122),'attrs':{'fill':_0xac339f(0xd4),'d':_0xac339f(0x13d),'fillRule':_0xac339f(0xe9),'clipRule':'evenodd'}}]},_0x3f8754=_0x51061d[_0xac339f(0x138)](function(_0xe3ff8f,_0x1ab186){var _0x5d2220=_0xac339f;return _0x51061d[_0x5d2220(0x132)](_0x15bb3f,Object[_0x5d2220(0xb1)]({},_0xe3ff8f,{'id':'live-share-icon','ref':_0x1ab186,'icon':_0x2880dd}));});_0x3f8754[_0xac339f(0xee)]='LiveShareIcon';var _0x1570ed=Object['getOwnPropertyDescriptor'],_0x391124=(_0xa4ab19,_0x31630b,_0x34c4f1,_0x16ef2f)=>{var _0x2a38a8=_0xac339f;for(var _0x1c9b83=_0x16ef2f>0x1?void 0x0:_0x16ef2f?_0x1570ed(_0x31630b,_0x34c4f1):_0x31630b,_0x428612=_0xa4ab19[_0x2a38a8(0x14c)]-0x1,_0x9463f0;_0x428612>=0x0;_0x428612--)(_0x9463f0=_0xa4ab19[_0x428612])&&(_0x1c9b83=_0x9463f0(_0x1c9b83)||_0x1c9b83);return _0x1c9b83;},_0x58af84=(_0x490a0e,_0x1b1bab)=>(_0x6d7bda,_0x29f407)=>_0x1b1bab(_0x6d7bda,_0x29f407,_0x490a0e);_0x31af11['LiveShareController']=class extends _0x582fc2[_0xac339f(0xb5)]{constructor(_0x2b6497,_0x5d8289,_0x37e31f){var _0x29aa17=_0xac339f;super(),_0x2fa8a3(this,_0x29aa17(0xbb),new Map()),(this[_0x29aa17(0xa5)]=_0x2b6497,this[_0x29aa17(0x9e)]=_0x5d8289,this[_0x29aa17(0xce)]=_0x37e31f,this['_init']());}async['getLiveShareCoordinator'](_0xc78096){var _0x783bb=_0xac339f;return this['_entities'][_0x783bb(0xaf)](_0xc78096)||await this['_startLiveShareCoordinator'](_0xc78096),this[_0x783bb(0xbb)][_0x783bb(0x9c)](_0xc78096);}[_0xac339f(0x80)](){var _0x28fc18=_0xac339f;this['_univerInstanceService'][_0x28fc18(0x15c)](_0x582fc2[_0x28fc18(0xa7)][_0x28fc18(0x9b)])[_0x28fc18(0xd1)](_0x4a9dcb[_0x28fc18(0xf0)](this[_0x28fc18(0x126)]))['subscribe'](async _0x470544=>{var _0x35ce26=_0x28fc18;const _0x375c28=_0x470544[_0x35ce26(0x142)]();this[_0x35ce26(0xbb)]['has'](_0x375c28)||this[_0x35ce26(0x10b)](_0x375c28);}),this[_0x28fc18(0xa5)]['getTypeOfUnitDisposed$'](_0x582fc2['UniverInstanceType'][_0x28fc18(0x9b)])[_0x28fc18(0xd1)](_0x4a9dcb[_0x28fc18(0xf0)](this['dispose$']))[_0x28fc18(0xb2)](_0x29add4=>{var _0x24e205=_0x28fc18;const _0x59e9e1=_0x29add4['getUnitId'](),_0x31f265=this[_0x24e205(0xbb)][_0x24e205(0x9c)](_0x59e9e1);_0x31f265==null||_0x31f265['dispose']();});}async[_0xac339f(0x10b)](_0x1e0635){var _0x6903c0=_0xac339f;const _0x21d6c8=await this[_0x6903c0(0xce)][_0x6903c0(0x151)](_0x1e0635),_0x34affd=this[_0x6903c0(0x9e)]['createInstance'](_0x31af11[_0x6903c0(0xaa)],_0x1e0635,_0x21d6c8);return _0x34affd[_0x6903c0(0x13c)](),this[_0x6903c0(0xbb)][_0x6903c0(0x9d)](_0x1e0635,_0x34affd),_0x34affd;}},_0x31af11['LiveShareController']=_0x391124([_0x58af84(0x0,_0x582fc2[_0xac339f(0x117)]),_0x58af84(0x1,_0x582fc2[_0xac339f(0x8f)](_0x582fc2['Injector'])),_0x58af84(0x2,_0x582fc2['Inject'](_0x193c81['CollaborationSessionService']))],_0x31af11[_0xac339f(0x155)]);var _0x5a8234=(_0x153966=>(_0x153966[_0xac339f(0xf5)]=_0xac339f(0xf2),_0x153966[_0xac339f(0xf7)]='idle',_0x153966[_0xac339f(0x13f)]=_0xac339f(0xb9),_0x153966['NOT_FOLLOWING']=_0xac339f(0xf9),_0x153966[_0xac339f(0x15d)]=_0xac339f(0xff),_0x153966))(_0x5a8234||{});const _0x5cef15=_0xac339f(0xb4),_0x48ca9d=0xc8;_0x31af11['LiveShareCoordinator']=class extends _0x582fc2[_0xac339f(0xb5)]{constructor(_0x543122,_0x43ae95,_0xa41cba,_0x3829f6,_0x232333){var _0x5850a5=_0xac339f;super(),_0x2fa8a3(this,_0x5850a5(0xca),new _0x23ca8b[(_0x5850a5(0x169))](_0x5850a5(0x86))),_0x2fa8a3(this,_0x5850a5(0x147),this[_0x5850a5(0xca)][_0x5850a5(0x12a)]()),_0x2fa8a3(this,'_init',!0x1),_0x2fa8a3(this,'_commandDisposable',null),_0x2fa8a3(this,_0x5850a5(0x127),null),(this[_0x5850a5(0xd6)]=_0x543122,this[_0x5850a5(0xef)]=_0x43ae95,this[_0x5850a5(0xfd)]=_0xa41cba,this[_0x5850a5(0x124)]=_0x3829f6,this[_0x5850a5(0xdb)]=_0x232333);}get['_status'](){var _0x48211a=_0xac339f;return this[_0x48211a(0xca)][_0x48211a(0xe5)]();}[_0xac339f(0x8c)](){var _0x48702f=_0xac339f,_0x293233;(_0x293233=this[_0x48702f(0x87)])==null||_0x293233[_0x48702f(0x8c)](),this[_0x48702f(0xca)][_0x48702f(0x11d)](_0x48702f(0x86)),this[_0x48702f(0xca)][_0x48702f(0xab)]();}[_0xac339f(0x13c)](){var _0x134ff0=_0xac339f;this[_0x134ff0(0x80)]||(this[_0x134ff0(0x80)]=!0x0,this[_0x134ff0(0xef)][_0x134ff0(0x97)][_0x134ff0(0xd1)](_0x4a9dcb[_0x134ff0(0xf0)](this[_0x134ff0(0x126)]))['subscribe'](_0x1e8e4c=>{var _0x14135a=_0x134ff0;switch(_0x1e8e4c){case _0x193c81[_0x14135a(0xc8)][_0x14135a(0xf5)]:this['_handleOffline']();break;case _0x193c81[_0x14135a(0xc8)][_0x14135a(0xe7)]:this[_0x14135a(0x114)]();break;}}),this['_collabSession'][_0x134ff0(0xe2)]['pipe'](_0x4a9dcb['takeUntil'](this[_0x134ff0(0x126)]))['subscribe'](_0x1f5f94=>{var _0x14b273=_0x134ff0;const {eventID:_0x9ac5d7}=_0x1f5f94;switch(_0x9ac5d7){case _0x3e69c6[_0x14b273(0xbc)]['LIVESHARE_NEW_HOST']:this[_0x14b273(0x118)](_0x1f5f94);break;case _0x3e69c6[_0x14b273(0xbc)][_0x14b273(0xb7)]:this['_handleOperation'](_0x1f5f94);break;case _0x3e69c6[_0x14b273(0xbc)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x3e69c6[_0x14b273(0xbc)]['NEW_CHANGESETS']:this[_0x14b273(0x101)](_0x1f5f94);break;}}));}[_0xac339f(0x15a)](){var _0x2a4991=_0xac339f;this[_0x2a4991(0xef)][_0x2a4991(0x82)]({'eventID':_0x3e69c6['CollaborationEvent'][_0x2a4991(0x158)],'data':{'unitID':this['_unitID'],'userID':this[_0x2a4991(0xef)][_0x2a4991(0x11f)]()}},this[_0x2a4991(0xd6)]);}[_0xac339f(0xbd)](){var _0x426442=_0xac339f;this['_status']===_0x426442(0xff)&&(this[_0x426442(0xca)][_0x426442(0x11d)](_0x426442(0x86)),this[_0x426442(0xef)]['send']({'eventID':_0x3e69c6[_0x426442(0xbc)][_0x426442(0x144)],'data':{'unitID':this[_0x426442(0xd6)]}},this[_0x426442(0xd6)]));}[_0xac339f(0x167)](){var _0x3b2459=_0xac339f;this[_0x3b2459(0x14a)]==='not-following'&&(this['_status$'][_0x3b2459(0x11d)]('following'),this['_startFollowing']());}[_0xac339f(0x131)](){var _0x179c73=_0xac339f;this['_status']===_0x179c73(0xb9)&&this[_0x179c73(0xcc)]();}['_handleNewHost'](_0x473cac){var _0x16c656=_0xac339f;const {presenter:_0x3dc315}=_0x473cac['data'],_0x577be2=this[_0x16c656(0xef)][_0x16c656(0x11f)]();this[_0x16c656(0x127)]=_0x3dc315,_0x3dc315===_0x577be2?(this[_0x16c656(0xcc)](),this[_0x16c656(0x135)]()):this[_0x16c656(0x14a)]!=='not-following'&&(this['_stopPresenting'](),this[_0x16c656(0x13a)]());}[_0xac339f(0x14d)](){var _0x5e1053=_0xac339f;const _0x55e69e={'eventID':_0x3e69c6[_0x5e1053(0xbc)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x5e1053(0xef)][_0x5e1053(0x82)](_0x55e69e,this[_0x5e1053(0xd6)]);}[_0xac339f(0x133)](){var _0x5496fe=_0xac339f;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x5496fe(0x166)]();}[_0xac339f(0x101)](_0x4eebcd){var _0x3f3356=_0xac339f;if(this[_0x3f3356(0x14a)]===_0x3f3356(0xb9)&&this['_presenter']===_0x4eebcd['data'][_0x3f3356(0xae)]){const _0x4c22fb=_0x3e69c6[_0x3f3356(0x109)](_0x4eebcd[_0x3f3356(0x16a)])[_0x3f3356(0xc5)][_0x3f3356(0x15b)]()[_0x3f3356(0x15f)](_0x2144d5=>_0x2144d5['id']===_0x461527['InsertSheetMutation']['id']);if(_0x4c22fb){const _0x5344b4=_0x4c22fb[_0x3f3356(0x94)]['unitId'],_0x142734=_0x4c22fb[_0x3f3356(0x94)][_0x3f3356(0xc3)]['id'];setTimeout(()=>{var _0x3f98bb=_0x3f3356;this['_commandService'][_0x3f98bb(0x10e)](_0x461527[_0x3f98bb(0x8b)]['id'],{'unitId':_0x5344b4,'subUnitId':_0x142734},{'fromCollab':!0x0});});}}}[_0xac339f(0x135)](){var _0x159ccc=_0xac339f;this[_0x159ccc(0xca)][_0x159ccc(0x11d)](_0x159ccc(0xff));const _0x53f278=new Map(),_0x137c40=this[_0x159ccc(0x87)]=new _0x582fc2[(_0x159ccc(0xfe))]();_0x137c40[_0x159ccc(0x11e)](_0x582fc2['toDisposable'](()=>{var _0xe4480=_0x159ccc;_0x53f278[_0xe4480(0x10a)](_0x2ceaeb=>_0x2ceaeb['complete']()),_0x53f278[_0xe4480(0x91)]();})),_0x137c40[_0x159ccc(0x11e)](this[_0x159ccc(0xdb)][_0x159ccc(0x164)](_0x26c171=>{var _0x1dcaae=_0x159ccc,_0x2290f2;if(_0x26c171[_0x1dcaae(0x10d)]!==_0x582fc2[_0x1dcaae(0x9f)]['OPERATION']||!this[_0x1dcaae(0x124)][_0x1dcaae(0xc2)](_0x26c171['id']))return;const {id:_0x30e5a2}=_0x26c171;let _0x32c506;_0x53f278[_0x1dcaae(0xaf)](_0x30e5a2)?_0x32c506=_0x53f278['get'](_0x30e5a2):(_0x32c506=new _0x23ca8b[(_0x1dcaae(0xc0))](),_0x53f278[_0x1dcaae(0x9d)](_0x30e5a2,_0x32c506),_0x32c506['pipe'](_0x4a9dcb['throttleTime']((_0x2290f2=this['_configService'][_0x1dcaae(0xc7)](_0x5cef15))!=null?_0x2290f2:_0x48ca9d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1dcaae(0xb2)](_0xfa568a=>{var _0x598976=_0x1dcaae;this[_0x598976(0xef)][_0x598976(0x82)]({'eventID':_0x3e69c6[_0x598976(0xbc)][_0x598976(0xb7)],'data':{'unitID':this[_0x598976(0xd6)],'operations':{[_0xfa568a['id']]:{'id':_0xfa568a['id'],'params':JSON[_0x598976(0xcd)](_0xfa568a[_0x598976(0x94)])}}}},this[_0x598976(0xd6)]);})),_0x32c506['next'](_0x26c171);})),this[_0x159ccc(0x124)][_0x159ccc(0x160)](this[_0x159ccc(0xd6)])['forEach'](_0x528c84=>this[_0x159ccc(0xef)][_0x159ccc(0x82)]({'eventID':_0x3e69c6[_0x159ccc(0xbc)][_0x159ccc(0xb7)],'data':{'unitID':this[_0x159ccc(0xd6)],'operations':{[_0x528c84['id']]:{'id':_0x528c84['id'],'params':JSON['stringify'](_0x528c84[_0x159ccc(0x94)])}}}},this[_0x159ccc(0xd6)]));}[_0xac339f(0x115)](){var _0x2f1a5a=_0xac339f,_0x30f133;this['_status$']['next']('idle'),(_0x30f133=this[_0x2f1a5a(0x87)])==null||_0x30f133[_0x2f1a5a(0x8c)](),this['_commandDisposable']=null;}[_0xac339f(0x13a)](){var _0x5067c5=_0xac339f,_0x1ab8f2;(_0x1ab8f2=this[_0x5067c5(0x87)])==null||_0x1ab8f2[_0x5067c5(0x8c)](),this[_0x5067c5(0xca)][_0x5067c5(0x11d)]('following');}[_0xac339f(0x166)](){var _0x45a74e=_0xac339f,_0x585251;this['_status$'][_0x45a74e(0x11d)](_0x45a74e(0x86)),(_0x585251=this[_0x45a74e(0x87)])==null||_0x585251['dispose'](),this[_0x45a74e(0x87)]=null;}['_stopFollowing'](){var _0x185c21=_0xac339f,_0xb37d3;this['_status$']['next'](_0x185c21(0xf9)),(_0xb37d3=this[_0x185c21(0x87)])==null||_0xb37d3[_0x185c21(0x8c)]();}[_0xac339f(0x88)](_0x1ee438){var _0x43ab4f=_0xac339f;if([_0x43ab4f(0xff),_0x43ab4f(0xf9),_0x43ab4f(0xf2)][_0x43ab4f(0x13b)](this['_status'])||!_0x1ee438['data'][_0x43ab4f(0x103)]||_0x1ee438[_0x43ab4f(0x16a)][_0x43ab4f(0x103)]===this[_0x43ab4f(0xef)][_0x43ab4f(0x11f)]())return;this['_status']===_0x43ab4f(0x86)&&this[_0x43ab4f(0x13a)]();const _0x139177=_0x1ee438[_0x43ab4f(0x16a)]['operations'];Object[_0x43ab4f(0x16c)](_0x139177)[_0x43ab4f(0x10a)](_0x5d8360=>{var _0x32e19a=_0x43ab4f;this['_commandService'][_0x32e19a(0x10e)](_0x5d8360['id'],_0x5d8360[_0x32e19a(0x94)]?JSON[_0x32e19a(0x84)](_0x5d8360[_0x32e19a(0x94)]):null,{'fromCollab':!0x0});});}[_0xac339f(0x145)](){var _0x477f0b=_0xac339f,_0x4ffb6a;this[_0x477f0b(0xca)]['next'](_0x477f0b(0xf2)),(_0x4ffb6a=this['_commandDisposable'])==null||_0x4ffb6a[_0x477f0b(0x8c)]();}[_0xac339f(0x114)](){var _0x1ec971=_0xac339f;this[_0x1ec971(0xca)][_0x1ec971(0x11d)](_0x1ec971(0x86)),this[_0x1ec971(0x14d)]();}},_0x31af11[_0xac339f(0xaa)]=_0x391124([_0x58af84(0x2,_0x582fc2[_0xac339f(0xe3)]),_0x58af84(0x3,_0x582fc2['Inject'](_0x5b3171)),_0x58af84(0x4,_0x582fc2['ICommandService'])],_0x31af11[_0xac339f(0xaa)]);function _0x24f818(){var _0xbefde6=_0xac339f;const _0x24757e=_0x44d67f[_0xbefde6(0x120)](_0x31af11['LiveShareController']),_0x1deb46=_0x44d67f[_0xbefde6(0x120)](_0x582fc2[_0xbefde6(0x117)]),_0x4a4fdf=_0x44d67f[_0xbefde6(0x123)](()=>_0x1deb46['getCurrentTypeOfUnit$'](_0x582fc2[_0xbefde6(0xa7)][_0xbefde6(0x9b)]),void 0x0,!0x1,[]),[_0x473e79,_0x2f0502]=_0x51061d[_0xbefde6(0xfb)](null),[_0x2724a4,_0x902cbd]=_0x51061d[_0xbefde6(0xfb)](_0x5a8234[_0xbefde6(0xf7)]),_0x3d0259=_0x51061d[_0xbefde6(0x11c)](null);return _0x51061d['useEffect'](()=>(_0x4a4fdf&&_0x24757e[_0xbefde6(0xd9)](_0x4a4fdf[_0xbefde6(0x142)]())['then'](_0x885672=>{var _0xe329ed=_0xbefde6;_0x2f0502(_0x885672),_0x3d0259[_0xe329ed(0xec)]=_0x885672[_0xe329ed(0x147)][_0xe329ed(0xb2)](_0x14481d=>{_0x902cbd(_0x14481d);});}),()=>{var _0x38c0d6=_0xbefde6,_0x4d3d52;(_0x4d3d52=_0x3d0259[_0x38c0d6(0xec)])==null||_0x4d3d52[_0x38c0d6(0x125)](),_0x3d0259['current']=null;}),[_0x4a4fdf,_0x24757e]),_0x473e79?_0x29ce29[_0xbefde6(0x12c)](_0xa4fd25[_0xbefde6(0xa3)],{'align':_0xbefde6(0x15e),'disabled':_0x2724a4===_0x5a8234['OFFLINE'],'className':_0xbefde6(0xd0),'overlay':_0x29ce29[_0xbefde6(0x12c)](_0x8c7495,{'status':_0x2724a4,'coordinator':_0x473e79}),'children':_0x29ce29['jsx'](_0xbefde6(0xdf),{'className':_0xa4fd25[_0xbefde6(0x136)](_0xbefde6(0x157),{'univer-cursor-not-allowed':_0x2724a4===_0x5a8234[_0xbefde6(0xf5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2724a4!==_0x5a8234['OFFLINE']}),'type':_0xbefde6(0xdf),'children':_0x29ce29['jsx'](_0x3f8754,{'className':_0xbefde6(0xc6)})})}):null;}function _0x8c7495(_0x23c228){var _0x45b14c=_0xac339f;const {status:_0x140fc6,coordinator:_0x111657}=_0x23c228;switch(_0x140fc6){case _0x5a8234[_0x45b14c(0xf7)]:return _0x29ce29[_0x45b14c(0x12c)](_0xe58a5e,{'coordinator':_0x111657});case _0x5a8234['FOLLOWING']:return _0x29ce29[_0x45b14c(0x12c)](_0x4a0d5d,{'coordinator':_0x111657});case _0x5a8234['NOT_FOLLOWING']:return _0x29ce29[_0x45b14c(0x12c)](_0x653d1,{'coordinator':_0x111657});case _0x5a8234[_0x45b14c(0xf5)]:return _0x29ce29[_0x45b14c(0x12c)](_0x39fd90,{});case _0x5a8234[_0x45b14c(0x15d)]:return _0x29ce29[_0x45b14c(0x12c)](_0x221aed,{'coordinator':_0x111657});default:return null;}}function _0xe58a5e(_0x4b88da){var _0x1ce825=_0xac339f;const {coordinator:_0x637b96}=_0x4b88da;return _0x29ce29[_0x1ce825(0x163)](_0x29ce29[_0x1ce825(0x162)],{'children':[_0x29ce29[_0x1ce825(0x12c)](_0x1ce825(0x92),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x29ce29[_0x1ce825(0x12c)](_0xa4fd25[_0x1ce825(0xe0)],{'onClick':()=>_0x637b96['tryStartPresenting'](),'children':_0x1ce825(0x134)})]});}function _0x4a0d5d(_0x592a3a){var _0x5764f2=_0xac339f;const {coordinator:_0x8555b6}=_0x592a3a;return _0x29ce29[_0x5764f2(0x163)](_0x29ce29[_0x5764f2(0x162)],{'children':[_0x29ce29[_0x5764f2(0x12c)](_0x5764f2(0x92),{'className':_0x5764f2(0x98),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x29ce29[_0x5764f2(0x12c)](_0xa4fd25[_0x5764f2(0xe0)],{'onClick':()=>_0x8555b6[_0x5764f2(0x131)](),'children':_0x5764f2(0x96)})]});}function _0x653d1(_0x5b8f32){var _0x49d464=_0xac339f;const {coordinator:_0x1ab7bc}=_0x5b8f32;return _0x29ce29[_0x49d464(0x163)](_0x29ce29[_0x49d464(0x162)],{'children':[_0x29ce29[_0x49d464(0x12c)](_0x49d464(0x92),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x49d464(0xbf)}),_0x29ce29[_0x49d464(0x12c)](_0xa4fd25['Button'],{'variant':_0x49d464(0x102),'onClick':()=>_0x1ab7bc[_0x49d464(0x167)](),'children':'Start\x20following'})]});}function _0x221aed(_0x5cf1b1){var _0x47f33a=_0xac339f;const {coordinator:_0x1a4e72}=_0x5cf1b1;return _0x29ce29[_0x47f33a(0x163)](_0x29ce29[_0x47f33a(0x162)],{'children':[_0x29ce29[_0x47f33a(0x12c)]('div',{'className':_0x47f33a(0x98),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x29ce29[_0x47f33a(0x12c)](_0xa4fd25[_0x47f33a(0xe0)],{'variant':_0x47f33a(0x14b),'onClick':()=>_0x1a4e72['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x39fd90(){var _0xec5aa8=_0xac339f;return _0x29ce29['jsx'](_0x29ce29[_0xec5aa8(0x162)],{'children':_0xec5aa8(0x90)});}var _0x217c38=Object['getOwnPropertyDescriptor'],_0xf71716=(_0x517f14,_0x186d78,_0x31cf53,_0x130add)=>{var _0x7d1e2f=_0xac339f;for(var _0x484bab=_0x130add>0x1?void 0x0:_0x130add?_0x217c38(_0x186d78,_0x31cf53):_0x186d78,_0x4c8bc7=_0x517f14[_0x7d1e2f(0x14c)]-0x1,_0x152763;_0x4c8bc7>=0x0;_0x4c8bc7--)(_0x152763=_0x517f14[_0x4c8bc7])&&(_0x484bab=_0x152763(_0x484bab)||_0x484bab);return _0x484bab;},_0x276f88=(_0x39de95,_0x5afa80)=>(_0x4d3890,_0x480fd7)=>_0x5afa80(_0x4d3890,_0x480fd7,_0x39de95);_0x31af11['DesktopLiveShareController']=class extends _0x582fc2['Disposable']{constructor(_0x427585,_0x5197c0){var _0x195d0f=_0xac339f;super(),this[_0x195d0f(0x9e)]=_0x427585,this[_0x195d0f(0xad)]=_0x5197c0,this[_0x195d0f(0x13e)]();}[_0xac339f(0x13e)](){var _0x47cba0=_0xac339f;this[_0x47cba0(0x128)](this[_0x47cba0(0xad)]['registerComponent'](_0x44d67f[_0x47cba0(0xde)][_0x47cba0(0xd5)],()=>_0x44d67f['connectInjector'](_0x24f818,this[_0x47cba0(0x9e)])));}},_0x31af11[_0xac339f(0xd8)]=_0xf71716([_0x276f88(0x0,_0x582fc2[_0xac339f(0x8f)](_0x582fc2['Injector'])),_0x276f88(0x1,_0x44d67f[_0xac339f(0x95)])],_0x31af11['DesktopLiveShareController']);var _0x4f7caf=Object[_0xac339f(0x113)],_0x27a984=Object[_0xac339f(0x110)],_0x506c81=(_0x4673f9,_0x60f617,_0x33cfa8)=>_0x60f617 in _0x4673f9?_0x4f7caf(_0x4673f9,_0x60f617,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33cfa8}):_0x4673f9[_0x60f617]=_0x33cfa8,_0x495663=(_0x4c944a,_0x3ea147,_0x212620,_0x448bf7)=>{for(var _0x42bb4f=_0x448bf7>0x1?void 0x0:_0x448bf7?_0x27a984(_0x3ea147,_0x212620):_0x3ea147,_0x3d87d9=_0x4c944a['length']-0x1,_0x3d03dc;_0x3d87d9>=0x0;_0x3d87d9--)(_0x3d03dc=_0x4c944a[_0x3d87d9])&&(_0x42bb4f=_0x3d03dc(_0x42bb4f)||_0x42bb4f);return _0x42bb4f;},_0x5748ca=(_0x5d5f3a,_0x38c6a3)=>(_0x3338cb,_0x520b55)=>_0x38c6a3(_0x3338cb,_0x520b55,_0x5d5f3a),_0xe18703=(_0x4e841a,_0x15f64e,_0xc49cac)=>_0x506c81(_0x4e841a,typeof _0x15f64e!=_0xac339f(0xfc)?_0x15f64e+'':_0x15f64e,_0xc49cac);const _0x3a04b9=_0xac339f(0xb3);_0x31af11[_0xac339f(0x8a)]=class extends _0x582fc2[_0xac339f(0xa1)]{constructor(_0x3f013d=_0x1b00d9,_0x5093ac,_0x477cc1){var _0x42dbf4=_0xac339f;super(),this['_config']=_0x3f013d,this[_0x42dbf4(0x9e)]=_0x5093ac,this[_0x42dbf4(0xfd)]=_0x477cc1;const {..._0x2b10fb}=_0x582fc2[_0x42dbf4(0xa8)]({},_0x1b00d9,this[_0x42dbf4(0x10c)]);this[_0x42dbf4(0xfd)][_0x42dbf4(0x93)](_0x2308db,_0x2b10fb);}[_0xac339f(0xb6)](){var _0x564fc0=_0xac339f;_0x582fc2['registerDependencies'](this[_0x564fc0(0x9e)],_0x582fc2[_0x564fc0(0xf1)]([[_0x5b3171],[_0x31af11[_0x564fc0(0x155)]],[_0x3e27bd],[_0x31af11['DesktopLiveShareController']]],this['_config'][_0x564fc0(0xdd)])),_0x582fc2[_0x564fc0(0x152)](this[_0x564fc0(0x9e)],[[_0x3e27bd]]);}['onRendered'](){var _0x3ec3d3=_0xac339f;_0x582fc2[_0x3ec3d3(0x152)](this[_0x3ec3d3(0x9e)],[[_0x31af11[_0x3ec3d3(0xd8)]]]);}},_0xe18703(_0x31af11[_0xac339f(0x8a)],'type',_0x582fc2[_0xac339f(0xa7)][_0xac339f(0xb0)]),_0xe18703(_0x31af11[_0xac339f(0x8a)],_0xac339f(0x11b),_0x3a04b9),_0x31af11['UniverLiveSharePlugin']=_0x495663([_0x582fc2[_0xac339f(0x143)](_0x193c81[_0xac339f(0x14f)]),_0x5748ca(0x1,_0x582fc2[_0xac339f(0x8f)](_0x582fc2['Injector'])),_0x5748ca(0x2,_0x582fc2[_0xac339f(0xe3)])],_0x31af11['UniverLiveSharePlugin']),_0x31af11[_0xac339f(0x10f)]=_0x24f818,_0x31af11[_0xac339f(0x81)]=_0x5b3171,_0x31af11['LiveShareStatus']=_0x5a8234,Object['defineProperty'](_0x31af11,Symbol[_0xac339f(0xc4)],{'value':'Module'});}));function _0x4598(){var _0x2ed6c1=['onCommandExecuted','apply','_beIdle','startFollowing','defs','BehaviorSubject','data','idSuffix','values','_init','LiveShareService','send','trim','parse','@univerjs-pro/collaboration-client','idle','_commandDisposable','_handleOperation','registerSharedOperation','UniverLiveSharePlugin','SetWorksheetActiveOperation','dispose','@univerjs/ui','63ZbcAkJ','Inject','You\x27are\x20offline.','clear','div','setConfig','params','IUIPartsService','Stop\x20following','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverCore','SetZoomRatioOperation','UNIVER_SHEET','get','set','_injector','CommandType','getOwnPropertySymbols','Plugin','xlink:href','Dropdown','object','_univerInstanceService','url(#$1','UniverInstanceType','merge','map','LiveShareCoordinator','complete','function','_uiPartsService','memberID','has','UNIVER_UNKNOWN','assign','subscribe','UNIVER_LIVE_SHARE_PLUGIN','SAME_OPERATION_SHARE_INTERVAL','RxDisposable','onStarting','LIVESHARE_OPERATION','amd','following','indexOf','_entities','CollaborationEvent','stopPresenting','extend','You\x27re\x20not\x20following\x20the\x20presenter','Subject','colorChannel1','shouldShareOperation','sheet','toStringTag','mutations','univer-size-4','getConfig','SessionStatus','@univerjs/design','_status$','51080ZmclMY','_stopFollowing','stringify','_collabSessionService','exports','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','pipe','@univerjs/core','react','currentColor','HEADER_MENU','_unitID','_reporters','DesktopLiveShareController','getLiveShareCoordinator','propertyIsEnumerable','_commandService','http://www.w3.org/2000/svg','override','BuiltInUIPart','button','Button','fill','event$','IConfigService','replace','getValue','string','ONLINE','rxjs/operators','evenodd','concat','UniverProLiveShare','current','609690HfpTFU','displayName','_collabSession','takeUntil','mergeOverrideWithDependencies','offline','@univerjs/sheets-ui','5DKxqCZ','OFFLINE','UniverProCollaboration','IDLE','operators','not-following','_sharedOperations','useState','symbol','_configService','DisposableCollection','presenting','delete','_handleNewChangeSets','text','presenter','@univerjs/sheets','className','React','mask','univerjs-icon\x20univerjs-icon-','parseProtocolChangeset','forEach','_startLiveShareCoordinator','_config','type','executeCommand','LiveShare','getOwnPropertyDescriptor','hasOwnProperty','from','defineProperty','_handleOnline','_stopPresenting','1em','IUniverInstanceService','_handleNewHost','tag','176050viDHgT','pluginName','useRef','next','add','getMemberID','useDependency','0\x200\x2017\x2017','path','useObservable','_liveShareService','unsubscribe','dispose$','_presenter','disposeWithMe','react/jsx-runtime','asObservable','UniverSheetsUi','jsx','children','UniverIcon','rxjs','82264rBzZWd','stopFollowing','createElement','_handleTerminate','Start','_startPresenting','clsx','attrs','forwardRef','prototype','_startFollowing','includes','init','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','_mountLiveShare','FOLLOWING','entries','toDisposable','getUnitId','DependentOn','LIVESHARE_TERMINATE','_handleOffline','UniverProCollaborationClient','status$','call','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','_status','default','length','_fetchOperations','246320fDSTYK','UniverCollaborationClientPlugin','6vFFJoe','requireSession','touchDependencies','7861640BZSsVm','defIds','LiveShareController','UniverUi','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_REQUEST_HOST','@univerjs-pro/collaboration','tryStartPresenting','reverse','getTypeOfUnitAdded$','PRESENTING','end','find','getInitialStates','221096rLsFSe','Fragment','jsxs'];_0x4598=function(){return _0x2ed6c1;};return _0x4598();}
1
+ function _0xbe44(_0xb08cf8,_0x484064){var _0x5a78fa=_0x5a78();return _0xbe44=function(_0xbe44bb,_0x2c413d){_0xbe44bb=_0xbe44bb-0x1b8;var _0xf789fe=_0x5a78fa[_0xbe44bb];return _0xf789fe;},_0xbe44(_0xb08cf8,_0x484064);}function _0x5a78(){var _0x117715=['UNIVER_UNKNOWN','getInitialStates','_fetchOperations','requireSession','useState','from','exports','rxjs','object','toString','string','UniverSheetsUi','getValue','react/jsx-runtime','sheet','pluginName','@univerjs-pro/collaboration','type','_init','15800aYRRJm','dispose$','useDependency','SAME_OPERATION_SHARE_INTERVAL','tag','jsxs','event$','then','memberID','UNIVER_SHEET','presenter','button','asObservable','connectInjector','IConfigService','1em','You\x27are\x20offline.','jsx','symbol','sessionStatus$','1136998ukJFSs','entries','xlink:href','delete','idle','_handleOperation','icon','PRESENTING','_startFollowing','assign','UniverInstanceType','div','not-following','DesktopLiveShareController','Start','apply','BuiltInUIPart','react','mergeOverrideWithDependencies','4302gJLkBj','svg','status$','SessionStatus','getConfig','following','executeCommand','_status','_liveShareService','HEADER_MENU','Plugin','defs','defineProperty','send','map','clear','subscribe','createElement','override','_commandService','Button','LIVESHARE_NEW_HOST','_handleTerminate','evenodd','@univerjs/ui','_sharedOperations','disposeWithMe','fill','concat','_presenter','getOwnPropertyDescriptor','presenting','_handleNewChangeSets','stopFollowing','onStarting','@univerjs/sheets','LIVESHARE_FETCH_OPERATIONS','OPERATION','length','throttleTime','IDLE','_status$','offline','shouldShareOperation','17092030iMjADK','CommandType','UniverIcon','mask','idSuffix','data','@univerjs-pro/collaboration-client','operators','pipe','UniverLiveSharePlugin','className','values','live-share.config','SetZoomRatioOperation','7638092iHTbNh','DisposableCollection','next','Fragment','reverse','children','trim','_collabSessionService','FOLLOWING','tryStartPresenting','url(#$1','0\x200\x2017\x2017','LiveShareCoordinator','RxDisposable','attrs','2958MbfjDc','5579256oFzyGg','getLiveShareCoordinator','useObservable','Inject','OFFLINE','complete','function','set','colorChannel1','dispose','takeUntil','UNIVER_LIVE_SHARE_PLUGIN','displayName','UniverCollaborationClientPlugin','SetScrollOperation','registerDependencies','UniverSheets','_entities','LiveShareController','end','You\x27re\x20not\x20following\x20the\x20presenter','UniverUi','UniverProCollaboration','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_uiPartsService','get','1212364TSOflO','getUnitId','_mountLiveShare','path','@univerjs/design','current','You\x27re\x20following\x20the\x20presenter','getTypeOfUnitDisposed$','CollaborationEvent','rxjs/operators','univerjs-icon\x20univerjs-icon-','_commandDisposable','_handleOnline','_collabSession','getTypeOfUnitAdded$','univer-mb-3\x20univer-w-full\x20univer-text-sm','add','default','UniverCore','_reporters','indexOf','find','touchDependencies','merge','registerSharedOperation','currentColor','replace','333jgtLQw','defIds','InsertSheetMutation','_stopFollowing','unsubscribe','Disposable','stringify','5MJvLWb','forEach','hasOwnProperty','propertyIsEnumerable','call','You\x27re\x20presenting\x20the\x20document','UniverProCollaborationClient','SetWorksheetActiveOperation','_beIdle','random','includes','Injector','_univerInstanceService','IUIPartsService','prototype','forwardRef','createInstance','onRendered','toDisposable','IUniverInstanceService','startFollowing','LIVESHARE_OPERATION','params','Stop\x20presenting','getOwnPropertySymbols','ONLINE','_stopPresenting','_startPresenting','text','_config','@univerjs/core','LIVESHARE_TERMINATE','React','NOT_FOLLOWING','LiveShareStatus','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','Stop\x20following','_startLiveShareCoordinator','_configService','has','extend','_unitID','amd','parseProtocolChangeset','_injector','univer-size-4','getMemberID'];_0x5a78=function(){return _0x117715;};return _0x5a78();}(function(_0x7d2a45,_0x5e50d8){var _0x227cfc=_0xbe44,_0x350534=_0x7d2a45();while(!![]){try{var _0x52f20d=parseInt(_0x227cfc(0x214))/0x1+parseInt(_0x227cfc(0x270))/0x2*(-parseInt(_0x227cfc(0x2a6))/0x3)+parseInt(_0x227cfc(0x28b))/0x4*(parseInt(_0x227cfc(0x1be))/0x5)+-parseInt(_0x227cfc(0x271))/0x6+parseInt(_0x227cfc(0x261))/0x7+parseInt(_0x227cfc(0x200))/0x8*(parseInt(_0x227cfc(0x227))/0x9)+-parseInt(_0x227cfc(0x253))/0xa;if(_0x52f20d===_0x5e50d8)break;else _0x350534['push'](_0x350534['shift']());}catch(_0x33260a){_0x350534['push'](_0x350534['shift']());}}}(_0x5a78,0xa412f),function(_0x53f46c,_0x41434d){var _0x3676da=_0xbe44;typeof exports==_0x3676da(0x1f5)&&typeof module<'u'?_0x41434d(exports,require(_0x3676da(0x259)),require(_0x3676da(0x1dc)),require(_0x3676da(0x24a)),require('@univerjs/sheets-ui'),require(_0x3676da(0x23f)),require(_0x3676da(0x1fa)),require('@univerjs/design'),require(_0x3676da(0x225)),require('@univerjs-pro/collaboration'),require('rxjs'),require(_0x3676da(0x294))):typeof define==_0x3676da(0x277)&&define[_0x3676da(0x1e8)]?define([_0x3676da(0x1f3),_0x3676da(0x259),_0x3676da(0x1dc),'@univerjs/sheets','@univerjs/sheets-ui',_0x3676da(0x23f),_0x3676da(0x1fa),_0x3676da(0x28f),_0x3676da(0x225),_0x3676da(0x1fd),_0x3676da(0x1f4),_0x3676da(0x294)],_0x41434d):(_0x53f46c=typeof globalThis<'u'?globalThis:_0x53f46c||self,_0x41434d(_0x53f46c['UniverProLiveShare']={},_0x53f46c[_0x3676da(0x1c4)],_0x53f46c[_0x3676da(0x29d)],_0x53f46c[_0x3676da(0x281)],_0x53f46c[_0x3676da(0x1f8)],_0x53f46c[_0x3676da(0x286)],_0x53f46c[_0x3676da(0x1de)],_0x53f46c['UniverDesign'],_0x53f46c[_0x3676da(0x1de)],_0x53f46c[_0x3676da(0x287)],_0x53f46c[_0x3676da(0x1f4)],_0x53f46c[_0x3676da(0x1f4)][_0x3676da(0x25a)]));}(this,function(_0x53a1d2,_0x4e4504,_0x34e9f4,_0x2ee53d,_0x28198c,_0x251029,_0x293ae2,_0x200d75,_0x1460d9,_0x2478fb,_0x272b53,_0x201721){'use strict';var _0x12eec2=_0xbe44;var _0x4661c5=Object[_0x12eec2(0x233)],_0x4d75e3=(_0x37e338,_0x25fe5f,_0x36f347)=>_0x25fe5f in _0x37e338?_0x4661c5(_0x37e338,_0x25fe5f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36f347}):_0x37e338[_0x25fe5f]=_0x36f347,_0xac69d=(_0x3628f8,_0x2bee8e,_0x4f1c75)=>_0x4d75e3(_0x3628f8,typeof _0x2bee8e!=_0x12eec2(0x212)?_0x2bee8e+'':_0x2bee8e,_0x4f1c75);const _0x14bb6c=_0x12eec2(0x25f),_0x3a1463={};class _0xd60077 extends _0x34e9f4[_0x12eec2(0x1bc)]{constructor(){var _0x251cff=_0x12eec2;super(...arguments),_0xac69d(this,'_sharedOperations',new Set()),_0xac69d(this,_0x251cff(0x29e),new Set());}['registerSharedOperation'](_0x202217){var _0x175b5b=_0x12eec2;return this[_0x175b5b(0x240)]['add'](_0x202217),_0x34e9f4['toDisposable'](()=>this[_0x175b5b(0x240)][_0x175b5b(0x217)](_0x202217));}['registerInitialStateReporter'](_0x47255b){var _0x1f5eee=_0x12eec2;return this[_0x1f5eee(0x29e)]['add'](_0x47255b),_0x34e9f4[_0x1f5eee(0x1d0)](()=>this[_0x1f5eee(0x29e)][_0x1f5eee(0x217)](_0x47255b));}[_0x12eec2(0x252)](_0x4bec2f){var _0x4b2f5a=_0x12eec2;return this['_sharedOperations'][_0x4b2f5a(0x1e5)](_0x4bec2f);}[_0x12eec2(0x1ee)](_0x19134d){var _0x2e15cf=_0x12eec2;return Array[_0x2e15cf(0x1f2)](this[_0x2e15cf(0x29e)])['map'](_0x18f75c=>_0x18f75c(_0x19134d));}}var _0x523fd5=Object[_0x12eec2(0x245)],_0x1c6bea=(_0x81c839,_0x5d92f6,_0x5db51f,_0x5ac2a9)=>{var _0x583d4a=_0x12eec2;for(var _0x59ecdf=_0x5ac2a9>0x1?void 0x0:_0x5ac2a9?_0x523fd5(_0x5d92f6,_0x5db51f):_0x5d92f6,_0x3c0a33=_0x81c839[_0x583d4a(0x24d)]-0x1,_0x2d3a66;_0x3c0a33>=0x0;_0x3c0a33--)(_0x2d3a66=_0x81c839[_0x3c0a33])&&(_0x59ecdf=_0x2d3a66(_0x59ecdf)||_0x59ecdf);return _0x59ecdf;},_0x50e016=(_0x5706d7,_0xd67cf8)=>(_0x186634,_0x9aaa96)=>_0xd67cf8(_0x186634,_0x9aaa96,_0x5706d7);let _0x1d5c47=class extends _0x34e9f4[_0x12eec2(0x1bc)]{constructor(_0x402249){var _0x28a26b=_0x12eec2;super(),this[_0x28a26b(0x22f)]=_0x402249,this[_0x28a26b(0x1ff)]();}[_0x12eec2(0x1ff)](){var _0x49fcca=_0x12eec2;[_0x28198c[_0x49fcca(0x260)]['id'],_0x28198c[_0x49fcca(0x27f)]['id'],_0x2ee53d[_0x49fcca(0x1c5)]['id']][_0x49fcca(0x1bf)](_0x50aad2=>{var _0x1c4800=_0x49fcca;this[_0x1c4800(0x241)](this['_liveShareService'][_0x1c4800(0x2a3)](_0x50aad2));});}};_0x1d5c47=_0x1c6bea([_0x50e016(0x0,_0x34e9f4[_0x12eec2(0x274)](_0xd60077))],_0x1d5c47);var _0x1f1a4d=function(){var _0x5a252d=_0x12eec2;return _0x1f1a4d=Object[_0x5a252d(0x21d)]||function(_0x473ede){var _0x3e58b7=_0x5a252d;for(var _0xd03e1,_0x1cb86d=0x1,_0x152cac=arguments['length'];_0x1cb86d<_0x152cac;_0x1cb86d++){_0xd03e1=arguments[_0x1cb86d];for(var _0x5c3d89 in _0xd03e1)Object['prototype'][_0x3e58b7(0x1c0)][_0x3e58b7(0x1c2)](_0xd03e1,_0x5c3d89)&&(_0x473ede[_0x5c3d89]=_0xd03e1[_0x5c3d89]);}return _0x473ede;},_0x1f1a4d[_0x5a252d(0x223)](this,arguments);},_0x619533=function(_0x2dfe69,_0x500caf){var _0x2f427d=_0x12eec2,_0x38d00f={};for(var _0x327af4 in _0x2dfe69)Object[_0x2f427d(0x1cc)]['hasOwnProperty']['call'](_0x2dfe69,_0x327af4)&&_0x500caf[_0x2f427d(0x29f)](_0x327af4)<0x0&&(_0x38d00f[_0x327af4]=_0x2dfe69[_0x327af4]);if(_0x2dfe69!=null&&typeof Object[_0x2f427d(0x1d6)]=='function'){for(var _0x4ed052=0x0,_0x327af4=Object[_0x2f427d(0x1d6)](_0x2dfe69);_0x4ed052<_0x327af4[_0x2f427d(0x24d)];_0x4ed052++)_0x500caf['indexOf'](_0x327af4[_0x4ed052])<0x0&&Object[_0x2f427d(0x1cc)][_0x2f427d(0x1c1)][_0x2f427d(0x1c2)](_0x2dfe69,_0x327af4[_0x4ed052])&&(_0x38d00f[_0x327af4[_0x4ed052]]=_0x2dfe69[_0x327af4[_0x4ed052]]);}return _0x38d00f;},_0x5b07bb=_0x1460d9[_0x12eec2(0x1cd)](function(_0x75d186,_0x193db2){var _0x38cf4c=_0x12eec2,_0x3498e6=_0x75d186['icon'],_0xc8fc=_0x75d186['id'],_0x4822a0=_0x75d186['className'],_0x1f3788=_0x75d186['extend'],_0x497bc7=_0x619533(_0x75d186,[_0x38cf4c(0x21a),'id',_0x38cf4c(0x25d),_0x38cf4c(0x1e6)]),_0x48f0fd=_0x38cf4c(0x295)[_0x38cf4c(0x243)](_0xc8fc,'\x20')[_0x38cf4c(0x243)](_0x4822a0||'')[_0x38cf4c(0x267)](),_0x42a442=_0x1460d9['useRef']('_'[_0x38cf4c(0x243)](_0x3162c8()));return _0x5631ce(_0x3498e6,''[_0x38cf4c(0x243)](_0xc8fc),{'defIds':_0x3498e6[_0x38cf4c(0x1b8)],'idSuffix':_0x42a442[_0x38cf4c(0x290)]},_0x1f1a4d({'ref':_0x193db2,'className':_0x48f0fd},_0x497bc7),_0x1f3788);});function _0x5631ce(_0x3f7e7b,_0x3a65c7,_0x152d54,_0x48b01b,_0x446d32){var _0x549e90=_0x12eec2;return _0x1460d9[_0x549e90(0x238)](_0x3f7e7b['tag'],_0x1f1a4d(_0x1f1a4d({'key':_0x3a65c7},_0x4be50a(_0x3f7e7b,_0x152d54,_0x446d32)),_0x48b01b),(_0xb740c2(_0x3f7e7b,_0x152d54)[_0x549e90(0x266)]||[])[_0x549e90(0x235)](function(_0xf62de,_0x1eb90a){var _0x26a48d=_0x549e90;return _0x5631ce(_0xf62de,''[_0x26a48d(0x243)](_0x3a65c7,'-')[_0x26a48d(0x243)](_0x3f7e7b['tag'],'-')[_0x26a48d(0x243)](_0x1eb90a),_0x152d54,void 0x0,_0x446d32);}));}function _0x4be50a(_0x3f30c2,_0x81dfc7,_0x37d1ce){var _0x4a23e0=_0x12eec2,_0x160917=_0x1f1a4d({},_0x3f30c2[_0x4a23e0(0x26f)]);_0x37d1ce!=null&&_0x37d1ce[_0x4a23e0(0x279)]&&_0x160917[_0x4a23e0(0x242)]===_0x4a23e0(0x279)&&(_0x160917['fill']=_0x37d1ce[_0x4a23e0(0x279)]),_0x3f30c2[_0x4a23e0(0x204)]===_0x4a23e0(0x256)&&_0x160917['id']&&(_0x160917['id']=_0x160917['id']+_0x81dfc7['idSuffix']),Object[_0x4a23e0(0x215)](_0x160917)[_0x4a23e0(0x1bf)](function(_0x53bbc1){var _0x3c203d=_0x4a23e0,_0x158d7e=_0x53bbc1[0x0],_0x2bf4b9=_0x53bbc1[0x1];_0x158d7e===_0x3c203d(0x256)&&typeof _0x2bf4b9==_0x3c203d(0x1f7)&&(_0x160917[_0x158d7e]=_0x2bf4b9[_0x3c203d(0x2a5)](/url\(#(.*)\)/,'url(#$1'[_0x3c203d(0x243)](_0x81dfc7[_0x3c203d(0x257)],')')));});var _0x38e959=_0x81dfc7['defIds'];return!_0x38e959||_0x38e959[_0x4a23e0(0x24d)]===0x0||(_0x3f30c2[_0x4a23e0(0x204)]==='use'&&_0x160917[_0x4a23e0(0x216)]&&(_0x160917[_0x4a23e0(0x216)]=_0x160917[_0x4a23e0(0x216)]+_0x81dfc7['idSuffix']),Object[_0x4a23e0(0x215)](_0x160917)[_0x4a23e0(0x1bf)](function(_0x3211ca){var _0x4dbd27=_0x4a23e0,_0x4a5bb4=_0x3211ca[0x0],_0x901b2f=_0x3211ca[0x1];typeof _0x901b2f=='string'&&(_0x160917[_0x4a5bb4]=_0x901b2f['replace'](/url\(#(.*)\)/,_0x4dbd27(0x26b)[_0x4dbd27(0x243)](_0x81dfc7[_0x4dbd27(0x257)],')')));})),_0x160917;}function _0xb740c2(_0xdb0b8,_0x4fb03e){var _0x24b36e=_0x12eec2,_0x36b654,_0x4a352f=_0x4fb03e[_0x24b36e(0x1b8)];return!_0x4a352f||_0x4a352f[_0x24b36e(0x24d)]===0x0?_0xdb0b8:_0xdb0b8['tag']===_0x24b36e(0x232)&&(!((_0x36b654=_0xdb0b8['children'])===null||_0x36b654===void 0x0)&&_0x36b654['length'])?_0x1f1a4d(_0x1f1a4d({},_0xdb0b8),{'children':_0xdb0b8[_0x24b36e(0x266)]['map'](function(_0x20f1cc){var _0x1fd0bb=_0x24b36e;return typeof _0x20f1cc['attrs']['id']==_0x1fd0bb(0x1f7)&&_0x4a352f&&_0x4a352f[_0x1fd0bb(0x1c8)](_0x20f1cc['attrs']['id'])?_0x1f1a4d(_0x1f1a4d({},_0x20f1cc),{'attrs':_0x1f1a4d(_0x1f1a4d({},_0x20f1cc[_0x1fd0bb(0x26f)]),{'id':_0x20f1cc['attrs']['id']+_0x4fb03e['idSuffix']})}):_0x20f1cc;})}):_0xdb0b8;}function _0x3162c8(){var _0x425e2a=_0x12eec2;return Math[_0x425e2a(0x1c7)]()[_0x425e2a(0x1f6)](0x24)['substring'](0x2,0x8);}_0x5b07bb[_0x12eec2(0x27d)]=_0x12eec2(0x255);var _0x1610a2={'tag':_0x12eec2(0x228),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x12eec2(0x26c),'width':_0x12eec2(0x20f),'height':_0x12eec2(0x20f)},'children':[{'tag':_0x12eec2(0x28e),'attrs':{'fill':'currentColor','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':_0x12eec2(0x28e),'attrs':{'fill':_0x12eec2(0x2a4),'d':_0x12eec2(0x1e1),'fillRule':_0x12eec2(0x23e),'clipRule':_0x12eec2(0x23e)}}]},_0x318c1c=_0x1460d9[_0x12eec2(0x1cd)](function(_0x4b1890,_0x3e83be){var _0xb8c085=_0x12eec2;return _0x1460d9[_0xb8c085(0x238)](_0x5b07bb,Object['assign']({},_0x4b1890,{'id':'live-share-icon','ref':_0x3e83be,'icon':_0x1610a2}));});_0x318c1c[_0x12eec2(0x27d)]='LiveShareIcon';var _0x3bfcec=Object[_0x12eec2(0x245)],_0x495275=(_0x344795,_0xc022d6,_0x67955a,_0x5c8ce0)=>{var _0x41ff66=_0x12eec2;for(var _0x128453=_0x5c8ce0>0x1?void 0x0:_0x5c8ce0?_0x3bfcec(_0xc022d6,_0x67955a):_0xc022d6,_0x9e16bd=_0x344795[_0x41ff66(0x24d)]-0x1,_0x2d82a6;_0x9e16bd>=0x0;_0x9e16bd--)(_0x2d82a6=_0x344795[_0x9e16bd])&&(_0x128453=_0x2d82a6(_0x128453)||_0x128453);return _0x128453;},_0x1e4b1a=(_0xb153bb,_0xccd467)=>(_0x52c9aa,_0x1d7aa9)=>_0xccd467(_0x52c9aa,_0x1d7aa9,_0xb153bb);_0x53a1d2[_0x12eec2(0x283)]=class extends _0x34e9f4[_0x12eec2(0x26e)]{constructor(_0x2188c7,_0x1a25b1,_0x2b84fb){var _0x4529ac=_0x12eec2;super(),_0xac69d(this,_0x4529ac(0x282),new Map()),(this['_univerInstanceService']=_0x2188c7,this['_injector']=_0x1a25b1,this[_0x4529ac(0x268)]=_0x2b84fb,this['_init']());}async[_0x12eec2(0x272)](_0x1702cf){var _0x5a62d1=_0x12eec2;return this[_0x5a62d1(0x282)][_0x5a62d1(0x1e5)](_0x1702cf)||await this['_startLiveShareCoordinator'](_0x1702cf),this[_0x5a62d1(0x282)][_0x5a62d1(0x28a)](_0x1702cf);}[_0x12eec2(0x1ff)](){var _0x802e76=_0x12eec2;this['_univerInstanceService'][_0x802e76(0x299)](_0x34e9f4[_0x802e76(0x21e)][_0x802e76(0x209)])[_0x802e76(0x25b)](_0x201721[_0x802e76(0x27b)](this[_0x802e76(0x201)]))[_0x802e76(0x237)](async _0xb46f0e=>{var _0x65a673=_0x802e76;const _0x312a0e=_0xb46f0e['getUnitId']();this['_entities'][_0x65a673(0x1e5)](_0x312a0e)||this[_0x65a673(0x1e3)](_0x312a0e);}),this[_0x802e76(0x1ca)][_0x802e76(0x292)](_0x34e9f4[_0x802e76(0x21e)][_0x802e76(0x209)])[_0x802e76(0x25b)](_0x201721['takeUntil'](this[_0x802e76(0x201)]))[_0x802e76(0x237)](_0x4220a3=>{var _0x15e1f2=_0x802e76;const _0x374a4f=_0x4220a3[_0x15e1f2(0x28c)](),_0x11bbc1=this[_0x15e1f2(0x282)]['get'](_0x374a4f);_0x11bbc1==null||_0x11bbc1['dispose']();});}async[_0x12eec2(0x1e3)](_0x542000){var _0x4d7c94=_0x12eec2;const _0x39a5d0=await this[_0x4d7c94(0x268)][_0x4d7c94(0x1f0)](_0x542000),_0x2d10b2=this[_0x4d7c94(0x1ea)][_0x4d7c94(0x1ce)](_0x53a1d2[_0x4d7c94(0x26d)],_0x542000,_0x39a5d0);return _0x2d10b2['init'](),this['_entities']['set'](_0x542000,_0x2d10b2),_0x2d10b2;}},_0x53a1d2[_0x12eec2(0x283)]=_0x495275([_0x1e4b1a(0x0,_0x34e9f4[_0x12eec2(0x1d1)]),_0x1e4b1a(0x1,_0x34e9f4[_0x12eec2(0x274)](_0x34e9f4['Injector'])),_0x1e4b1a(0x2,_0x34e9f4[_0x12eec2(0x274)](_0x4e4504['CollaborationSessionService']))],_0x53a1d2['LiveShareController']);var _0x36a320=(_0x279d37=>(_0x279d37[_0x12eec2(0x275)]=_0x12eec2(0x251),_0x279d37[_0x12eec2(0x24f)]=_0x12eec2(0x218),_0x279d37[_0x12eec2(0x269)]=_0x12eec2(0x22c),_0x279d37[_0x12eec2(0x1df)]=_0x12eec2(0x220),_0x279d37[_0x12eec2(0x21b)]=_0x12eec2(0x246),_0x279d37))(_0x36a320||{});const _0x49342c=_0x12eec2(0x203),_0x5718df=0xc8;_0x53a1d2[_0x12eec2(0x26d)]=class extends _0x34e9f4[_0x12eec2(0x26e)]{constructor(_0x433774,_0x9470d5,_0x189117,_0x3ea431,_0x1398bb){var _0x2fa870=_0x12eec2;super(),_0xac69d(this,_0x2fa870(0x250),new _0x272b53['BehaviorSubject'](_0x2fa870(0x218))),_0xac69d(this,_0x2fa870(0x229),this[_0x2fa870(0x250)][_0x2fa870(0x20c)]()),_0xac69d(this,_0x2fa870(0x1ff),!0x1),_0xac69d(this,_0x2fa870(0x296),null),_0xac69d(this,_0x2fa870(0x244),null),(this['_unitID']=_0x433774,this[_0x2fa870(0x298)]=_0x9470d5,this[_0x2fa870(0x1e4)]=_0x189117,this[_0x2fa870(0x22f)]=_0x3ea431,this[_0x2fa870(0x23a)]=_0x1398bb);}get[_0x12eec2(0x22e)](){var _0x479c28=_0x12eec2;return this[_0x479c28(0x250)][_0x479c28(0x1f9)]();}[_0x12eec2(0x27a)](){var _0x1af28a=_0x12eec2,_0x54eb55;(_0x54eb55=this[_0x1af28a(0x296)])==null||_0x54eb55[_0x1af28a(0x27a)](),this[_0x1af28a(0x250)]['next'](_0x1af28a(0x218)),this[_0x1af28a(0x250)]['complete']();}['init'](){var _0x8ddc9f=_0x12eec2;this[_0x8ddc9f(0x1ff)]||(this['_init']=!0x0,this[_0x8ddc9f(0x298)][_0x8ddc9f(0x213)]['pipe'](_0x201721['takeUntil'](this[_0x8ddc9f(0x201)]))['subscribe'](_0x29c240=>{var _0x2d5cac=_0x8ddc9f;switch(_0x29c240){case _0x4e4504[_0x2d5cac(0x22a)][_0x2d5cac(0x275)]:this['_handleOffline']();break;case _0x4e4504[_0x2d5cac(0x22a)][_0x2d5cac(0x1d7)]:this[_0x2d5cac(0x297)]();break;}}),this['_collabSession'][_0x8ddc9f(0x206)]['pipe'](_0x201721['takeUntil'](this[_0x8ddc9f(0x201)]))['subscribe'](_0xfea3=>{var _0x4f42cc=_0x8ddc9f;const {eventID:_0x233f53}=_0xfea3;switch(_0x233f53){case _0x2478fb[_0x4f42cc(0x293)][_0x4f42cc(0x23c)]:this['_handleNewHost'](_0xfea3);break;case _0x2478fb[_0x4f42cc(0x293)][_0x4f42cc(0x1d3)]:this[_0x4f42cc(0x219)](_0xfea3);break;case _0x2478fb[_0x4f42cc(0x293)][_0x4f42cc(0x1dd)]:this[_0x4f42cc(0x23d)]();break;case _0x2478fb[_0x4f42cc(0x293)]['NEW_CHANGESETS']:this[_0x4f42cc(0x247)](_0xfea3);break;}}));}[_0x12eec2(0x26a)](){var _0x2dab2b=_0x12eec2;this[_0x2dab2b(0x298)][_0x2dab2b(0x234)]({'eventID':_0x2478fb[_0x2dab2b(0x293)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x2dab2b(0x1e7)],'userID':this['_collabSession'][_0x2dab2b(0x1ec)]()}},this['_unitID']);}['stopPresenting'](){var _0x2504d0=_0x12eec2;this[_0x2504d0(0x22e)]===_0x2504d0(0x246)&&(this[_0x2504d0(0x250)][_0x2504d0(0x263)]('idle'),this[_0x2504d0(0x298)]['send']({'eventID':_0x2478fb['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2504d0(0x1e7)]}},this[_0x2504d0(0x1e7)]));}[_0x12eec2(0x1d2)](){var _0x45f017=_0x12eec2;this['_status']==='not-following'&&(this['_status$']['next'](_0x45f017(0x22c)),this[_0x45f017(0x21c)]());}[_0x12eec2(0x248)](){var _0x14960a=_0x12eec2;this[_0x14960a(0x22e)]===_0x14960a(0x22c)&&this['_stopFollowing']();}['_handleNewHost'](_0xd0deb5){var _0x2c8d06=_0x12eec2;const {presenter:_0x40ceb1}=_0xd0deb5[_0x2c8d06(0x258)],_0x23b11b=this[_0x2c8d06(0x298)][_0x2c8d06(0x1ec)]();this[_0x2c8d06(0x244)]=_0x40ceb1,_0x40ceb1===_0x23b11b?(this[_0x2c8d06(0x1ba)](),this[_0x2c8d06(0x1d9)]()):this['_status']!==_0x2c8d06(0x220)&&(this[_0x2c8d06(0x1d8)](),this[_0x2c8d06(0x21c)]());}['_fetchOperations'](){var _0x144b58=_0x12eec2;const _0x1a4bf4={'eventID':_0x2478fb[_0x144b58(0x293)][_0x144b58(0x24b)]};this['_collabSession'][_0x144b58(0x234)](_0x1a4bf4,this['_unitID']);}[_0x12eec2(0x23d)](){var _0x348560=_0x12eec2;this['_presenter']=null,this['_status']!==_0x348560(0x246)&&this[_0x348560(0x1c6)]();}[_0x12eec2(0x247)](_0x3e1736){var _0x2d2636=_0x12eec2;if(this['_status']===_0x2d2636(0x22c)&&this[_0x2d2636(0x244)]===_0x3e1736['data'][_0x2d2636(0x208)]){const _0x3e3774=_0x2478fb[_0x2d2636(0x1e9)](_0x3e1736[_0x2d2636(0x258)])['mutations'][_0x2d2636(0x265)]()[_0x2d2636(0x2a0)](_0xebb0ac=>_0xebb0ac['id']===_0x2ee53d[_0x2d2636(0x1b9)]['id']);if(_0x3e3774){const _0x53fb58=_0x3e3774[_0x2d2636(0x1d4)]['unitId'],_0x21bf0f=_0x3e3774[_0x2d2636(0x1d4)][_0x2d2636(0x1fb)]['id'];setTimeout(()=>{var _0x294347=_0x2d2636;this[_0x294347(0x23a)][_0x294347(0x22d)](_0x2ee53d[_0x294347(0x1c5)]['id'],{'unitId':_0x53fb58,'subUnitId':_0x21bf0f},{'fromCollab':!0x0});});}}}[_0x12eec2(0x1d9)](){var _0x3f992b=_0x12eec2;this[_0x3f992b(0x250)][_0x3f992b(0x263)](_0x3f992b(0x246));const _0x53edd6=new Map(),_0x227fc2=this[_0x3f992b(0x296)]=new _0x34e9f4[(_0x3f992b(0x262))]();_0x227fc2[_0x3f992b(0x29b)](_0x34e9f4[_0x3f992b(0x1d0)](()=>{var _0x419802=_0x3f992b;_0x53edd6[_0x419802(0x1bf)](_0x3f8fc0=>_0x3f8fc0[_0x419802(0x276)]()),_0x53edd6[_0x419802(0x236)]();})),_0x227fc2['add'](this[_0x3f992b(0x23a)]['onCommandExecuted'](_0xa29a91=>{var _0x717904=_0x3f992b,_0x305345;if(_0xa29a91[_0x717904(0x1fe)]!==_0x34e9f4[_0x717904(0x254)][_0x717904(0x24c)]||!this[_0x717904(0x22f)][_0x717904(0x252)](_0xa29a91['id']))return;const {id:_0x105a4a}=_0xa29a91;let _0x402fd4;_0x53edd6[_0x717904(0x1e5)](_0x105a4a)?_0x402fd4=_0x53edd6[_0x717904(0x28a)](_0x105a4a):(_0x402fd4=new _0x272b53['Subject'](),_0x53edd6[_0x717904(0x278)](_0x105a4a,_0x402fd4),_0x402fd4[_0x717904(0x25b)](_0x201721[_0x717904(0x24e)]((_0x305345=this['_configService'][_0x717904(0x22b)](_0x49342c))!=null?_0x305345:_0x5718df,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x717904(0x237)](_0x3275b6=>{var _0x5ba0d6=_0x717904;this[_0x5ba0d6(0x298)]['send']({'eventID':_0x2478fb[_0x5ba0d6(0x293)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5ba0d6(0x1e7)],'operations':{[_0x3275b6['id']]:{'id':_0x3275b6['id'],'params':JSON[_0x5ba0d6(0x1bd)](_0x3275b6[_0x5ba0d6(0x1d4)])}}}},this[_0x5ba0d6(0x1e7)]);})),_0x402fd4[_0x717904(0x263)](_0xa29a91);})),this[_0x3f992b(0x22f)]['getInitialStates'](this[_0x3f992b(0x1e7)])['forEach'](_0x4fa596=>this['_collabSession'][_0x3f992b(0x234)]({'eventID':_0x2478fb['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3f992b(0x1e7)],'operations':{[_0x4fa596['id']]:{'id':_0x4fa596['id'],'params':JSON['stringify'](_0x4fa596['params'])}}}},this[_0x3f992b(0x1e7)]));}[_0x12eec2(0x1d8)](){var _0x5cb3f4=_0x12eec2,_0x5e6ab1;this[_0x5cb3f4(0x250)][_0x5cb3f4(0x263)](_0x5cb3f4(0x218)),(_0x5e6ab1=this[_0x5cb3f4(0x296)])==null||_0x5e6ab1[_0x5cb3f4(0x27a)](),this[_0x5cb3f4(0x296)]=null;}[_0x12eec2(0x21c)](){var _0x3a400f=_0x12eec2,_0x23aec4;(_0x23aec4=this['_commandDisposable'])==null||_0x23aec4[_0x3a400f(0x27a)](),this['_status$'][_0x3a400f(0x263)](_0x3a400f(0x22c));}[_0x12eec2(0x1c6)](){var _0x5574d7=_0x12eec2,_0x2b3836;this[_0x5574d7(0x250)][_0x5574d7(0x263)]('idle'),(_0x2b3836=this['_commandDisposable'])==null||_0x2b3836[_0x5574d7(0x27a)](),this[_0x5574d7(0x296)]=null;}[_0x12eec2(0x1ba)](){var _0x5486d6=_0x12eec2,_0x5d18ab;this[_0x5486d6(0x250)][_0x5486d6(0x263)](_0x5486d6(0x220)),(_0x5d18ab=this[_0x5486d6(0x296)])==null||_0x5d18ab[_0x5486d6(0x27a)]();}[_0x12eec2(0x219)](_0x239622){var _0x402520=_0x12eec2;if([_0x402520(0x246),_0x402520(0x220),_0x402520(0x251)][_0x402520(0x1c8)](this[_0x402520(0x22e)])||!_0x239622[_0x402520(0x258)][_0x402520(0x20a)]||_0x239622[_0x402520(0x258)][_0x402520(0x20a)]===this['_collabSession'][_0x402520(0x1ec)]())return;this[_0x402520(0x22e)]===_0x402520(0x218)&&this[_0x402520(0x21c)]();const _0x4f1ffb=_0x239622[_0x402520(0x258)]['operations'];Object[_0x402520(0x25e)](_0x4f1ffb)[_0x402520(0x1bf)](_0xd521b8=>{var _0x196931=_0x402520;this['_commandService'][_0x196931(0x22d)](_0xd521b8['id'],_0xd521b8[_0x196931(0x1d4)]?JSON['parse'](_0xd521b8[_0x196931(0x1d4)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x58ab4e=_0x12eec2,_0x286f51;this[_0x58ab4e(0x250)]['next'](_0x58ab4e(0x251)),(_0x286f51=this[_0x58ab4e(0x296)])==null||_0x286f51['dispose']();}[_0x12eec2(0x297)](){var _0x8de99f=_0x12eec2;this[_0x8de99f(0x250)]['next']('idle'),this[_0x8de99f(0x1ef)]();}},_0x53a1d2[_0x12eec2(0x26d)]=_0x495275([_0x1e4b1a(0x2,_0x34e9f4['IConfigService']),_0x1e4b1a(0x3,_0x34e9f4[_0x12eec2(0x274)](_0xd60077)),_0x1e4b1a(0x4,_0x34e9f4['ICommandService'])],_0x53a1d2['LiveShareCoordinator']);function _0x36b03b(){var _0x4e8e9e=_0x12eec2;const _0x418618=_0x251029[_0x4e8e9e(0x202)](_0x53a1d2[_0x4e8e9e(0x283)]),_0x5243b0=_0x251029[_0x4e8e9e(0x202)](_0x34e9f4[_0x4e8e9e(0x1d1)]),_0x2c003f=_0x251029[_0x4e8e9e(0x273)](()=>_0x5243b0['getCurrentTypeOfUnit$'](_0x34e9f4[_0x4e8e9e(0x21e)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x393790,_0x295959]=_0x1460d9[_0x4e8e9e(0x1f1)](null),[_0x321184,_0x32d2d9]=_0x1460d9[_0x4e8e9e(0x1f1)](_0x36a320['IDLE']),_0x183294=_0x1460d9['useRef'](null);return _0x1460d9['useEffect'](()=>(_0x2c003f&&_0x418618['getLiveShareCoordinator'](_0x2c003f[_0x4e8e9e(0x28c)]())[_0x4e8e9e(0x207)](_0x1c0500=>{var _0x5e5e59=_0x4e8e9e;_0x295959(_0x1c0500),_0x183294['current']=_0x1c0500[_0x5e5e59(0x229)][_0x5e5e59(0x237)](_0x401a2e=>{_0x32d2d9(_0x401a2e);});}),()=>{var _0x5ddc12=_0x4e8e9e,_0x486933;(_0x486933=_0x183294[_0x5ddc12(0x290)])==null||_0x486933[_0x5ddc12(0x1bb)](),_0x183294[_0x5ddc12(0x290)]=null;}),[_0x2c003f,_0x418618]),_0x393790?_0x293ae2[_0x4e8e9e(0x211)](_0x200d75['Dropdown'],{'align':_0x4e8e9e(0x284),'disabled':_0x321184===_0x36a320[_0x4e8e9e(0x275)],'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':_0x293ae2['jsx'](_0x1cd977,{'status':_0x321184,'coordinator':_0x393790}),'children':_0x293ae2[_0x4e8e9e(0x211)](_0x4e8e9e(0x20b),{'className':_0x200d75['clsx'](_0x4e8e9e(0x288),{'univer-cursor-not-allowed':_0x321184===_0x36a320[_0x4e8e9e(0x275)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x321184!==_0x36a320[_0x4e8e9e(0x275)]}),'type':_0x4e8e9e(0x20b),'children':_0x293ae2[_0x4e8e9e(0x211)](_0x318c1c,{'className':_0x4e8e9e(0x1eb)})})}):null;}function _0x1cd977(_0x57f8a6){var _0x59d33d=_0x12eec2;const {status:_0x5d2d19,coordinator:_0x4314b1}=_0x57f8a6;switch(_0x5d2d19){case _0x36a320['IDLE']:return _0x293ae2[_0x59d33d(0x211)](_0x2bc236,{'coordinator':_0x4314b1});case _0x36a320[_0x59d33d(0x269)]:return _0x293ae2[_0x59d33d(0x211)](_0xc50320,{'coordinator':_0x4314b1});case _0x36a320[_0x59d33d(0x1df)]:return _0x293ae2[_0x59d33d(0x211)](_0x438b09,{'coordinator':_0x4314b1});case _0x36a320['OFFLINE']:return _0x293ae2['jsx'](_0x105cec,{});case _0x36a320[_0x59d33d(0x21b)]:return _0x293ae2[_0x59d33d(0x211)](_0x35bd4a,{'coordinator':_0x4314b1});default:return null;}}function _0x2bc236(_0x4d1408){var _0x24d57d=_0x12eec2;const {coordinator:_0x4dfefe}=_0x4d1408;return _0x293ae2['jsxs'](_0x293ae2[_0x24d57d(0x264)],{'children':[_0x293ae2[_0x24d57d(0x211)](_0x24d57d(0x21f),{'className':_0x24d57d(0x29a),'children':'Present\x20this\x20document'}),_0x293ae2[_0x24d57d(0x211)](_0x200d75[_0x24d57d(0x23b)],{'onClick':()=>_0x4dfefe[_0x24d57d(0x26a)](),'children':_0x24d57d(0x222)})]});}function _0xc50320(_0x3f60c4){var _0x5d257c=_0x12eec2;const {coordinator:_0x4162cb}=_0x3f60c4;return _0x293ae2['jsxs'](_0x293ae2['Fragment'],{'children':[_0x293ae2[_0x5d257c(0x211)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5d257c(0x291)}),_0x293ae2[_0x5d257c(0x211)](_0x200d75[_0x5d257c(0x23b)],{'onClick':()=>_0x4162cb['stopFollowing'](),'children':_0x5d257c(0x1e2)})]});}function _0x438b09(_0x4f0325){var _0x2d07a0=_0x12eec2;const {coordinator:_0x622fa6}=_0x4f0325;return _0x293ae2[_0x2d07a0(0x205)](_0x293ae2[_0x2d07a0(0x264)],{'children':[_0x293ae2[_0x2d07a0(0x211)](_0x2d07a0(0x21f),{'className':_0x2d07a0(0x29a),'children':_0x2d07a0(0x285)}),_0x293ae2[_0x2d07a0(0x211)](_0x200d75[_0x2d07a0(0x23b)],{'variant':_0x2d07a0(0x1da),'onClick':()=>_0x622fa6[_0x2d07a0(0x1d2)](),'children':'Start\x20following'})]});}function _0x35bd4a(_0x2d17a5){var _0x2b0f00=_0x12eec2;const {coordinator:_0x173423}=_0x2d17a5;return _0x293ae2[_0x2b0f00(0x205)](_0x293ae2['Fragment'],{'children':[_0x293ae2[_0x2b0f00(0x211)](_0x2b0f00(0x21f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2b0f00(0x1c3)}),_0x293ae2[_0x2b0f00(0x211)](_0x200d75[_0x2b0f00(0x23b)],{'variant':_0x2b0f00(0x29c),'onClick':()=>_0x173423['stopPresenting'](),'children':_0x2b0f00(0x1d5)})]});}function _0x105cec(){var _0x4d7411=_0x12eec2;return _0x293ae2[_0x4d7411(0x211)](_0x293ae2['Fragment'],{'children':_0x4d7411(0x210)});}var _0x21dd7a=Object[_0x12eec2(0x245)],_0x37e323=(_0x2f44f5,_0x289fe8,_0x388166,_0x4faa56)=>{var _0x46a152=_0x12eec2;for(var _0x2dc37d=_0x4faa56>0x1?void 0x0:_0x4faa56?_0x21dd7a(_0x289fe8,_0x388166):_0x289fe8,_0x4eb796=_0x2f44f5[_0x46a152(0x24d)]-0x1,_0x12b7df;_0x4eb796>=0x0;_0x4eb796--)(_0x12b7df=_0x2f44f5[_0x4eb796])&&(_0x2dc37d=_0x12b7df(_0x2dc37d)||_0x2dc37d);return _0x2dc37d;},_0x3f493c=(_0x1ae048,_0x424638)=>(_0x23503c,_0x30ac6d)=>_0x424638(_0x23503c,_0x30ac6d,_0x1ae048);_0x53a1d2['DesktopLiveShareController']=class extends _0x34e9f4[_0x12eec2(0x1bc)]{constructor(_0x5cfd78,_0x38334f){var _0x5cdaca=_0x12eec2;super(),this['_injector']=_0x5cfd78,this[_0x5cdaca(0x289)]=_0x38334f,this[_0x5cdaca(0x28d)]();}[_0x12eec2(0x28d)](){var _0x1f3a1e=_0x12eec2;this[_0x1f3a1e(0x241)](this[_0x1f3a1e(0x289)]['registerComponent'](_0x251029[_0x1f3a1e(0x224)][_0x1f3a1e(0x230)],()=>_0x251029[_0x1f3a1e(0x20d)](_0x36b03b,this[_0x1f3a1e(0x1ea)])));}},_0x53a1d2['DesktopLiveShareController']=_0x37e323([_0x3f493c(0x0,_0x34e9f4[_0x12eec2(0x274)](_0x34e9f4[_0x12eec2(0x1c9)])),_0x3f493c(0x1,_0x251029[_0x12eec2(0x1cb)])],_0x53a1d2[_0x12eec2(0x221)]);var _0x5ac3c5=Object['defineProperty'],_0x4979af=Object[_0x12eec2(0x245)],_0x233a12=(_0x4d55e9,_0x4f4147,_0x56a9cb)=>_0x4f4147 in _0x4d55e9?_0x5ac3c5(_0x4d55e9,_0x4f4147,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56a9cb}):_0x4d55e9[_0x4f4147]=_0x56a9cb,_0x53c8a9=(_0x25f0f7,_0xd6e824,_0x2e960c,_0x4c727a)=>{for(var _0x16d843=_0x4c727a>0x1?void 0x0:_0x4c727a?_0x4979af(_0xd6e824,_0x2e960c):_0xd6e824,_0x586af8=_0x25f0f7['length']-0x1,_0xb50291;_0x586af8>=0x0;_0x586af8--)(_0xb50291=_0x25f0f7[_0x586af8])&&(_0x16d843=_0xb50291(_0x16d843)||_0x16d843);return _0x16d843;},_0xdad2a=(_0x1b1731,_0x29de91)=>(_0x5bb4d3,_0x44cda2)=>_0x29de91(_0x5bb4d3,_0x44cda2,_0x1b1731),_0x276358=(_0xfc4eb5,_0x469113,_0x358955)=>_0x233a12(_0xfc4eb5,typeof _0x469113!=_0x12eec2(0x212)?_0x469113+'':_0x469113,_0x358955);const _0x445b92=_0x12eec2(0x27c);_0x53a1d2['UniverLiveSharePlugin']=class extends _0x34e9f4[_0x12eec2(0x231)]{constructor(_0x33c41=_0x3a1463,_0x38405d,_0x1fa567){var _0x550e29=_0x12eec2;super(),this['_config']=_0x33c41,this[_0x550e29(0x1ea)]=_0x38405d,this[_0x550e29(0x1e4)]=_0x1fa567;const {..._0x18d5ab}=_0x34e9f4[_0x550e29(0x2a2)]({},_0x3a1463,this[_0x550e29(0x1db)]);this[_0x550e29(0x1e4)]['setConfig'](_0x14bb6c,_0x18d5ab);}[_0x12eec2(0x249)](){var _0xd5e1d1=_0x12eec2;_0x34e9f4[_0xd5e1d1(0x280)](this[_0xd5e1d1(0x1ea)],_0x34e9f4[_0xd5e1d1(0x226)]([[_0xd60077],[_0x53a1d2[_0xd5e1d1(0x283)]],[_0x1d5c47],[_0x53a1d2[_0xd5e1d1(0x221)]]],this[_0xd5e1d1(0x1db)][_0xd5e1d1(0x239)])),_0x34e9f4[_0xd5e1d1(0x2a1)](this[_0xd5e1d1(0x1ea)],[[_0x1d5c47]]);}[_0x12eec2(0x1cf)](){var _0x1ecc54=_0x12eec2;_0x34e9f4[_0x1ecc54(0x2a1)](this['_injector'],[[_0x53a1d2[_0x1ecc54(0x221)]]]);}},_0x276358(_0x53a1d2[_0x12eec2(0x25c)],'type',_0x34e9f4[_0x12eec2(0x21e)][_0x12eec2(0x1ed)]),_0x276358(_0x53a1d2[_0x12eec2(0x25c)],_0x12eec2(0x1fc),_0x445b92),_0x53a1d2[_0x12eec2(0x25c)]=_0x53c8a9([_0x34e9f4['DependentOn'](_0x4e4504[_0x12eec2(0x27e)]),_0xdad2a(0x1,_0x34e9f4[_0x12eec2(0x274)](_0x34e9f4[_0x12eec2(0x1c9)])),_0xdad2a(0x2,_0x34e9f4[_0x12eec2(0x20e)])],_0x53a1d2[_0x12eec2(0x25c)]),_0x53a1d2['LiveShare']=_0x36b03b,_0x53a1d2['LiveShareService']=_0xd60077,_0x53a1d2[_0x12eec2(0x1e0)]=_0x36a320,Object[_0x12eec2(0x233)](_0x53a1d2,Symbol['toStringTag'],{'value':'Module'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.2-nightly.202506211606",
3
+ "version": "0.8.2-nightly.202506231607",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,13 +47,13 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.4",
50
- "@univerjs-pro/collaboration": "0.8.2-nightly.202506211606",
51
- "@univerjs-pro/collaboration-client": "0.8.2-nightly.202506211606",
52
- "@univerjs/core": "0.8.2-nightly.202506211606",
53
- "@univerjs/sheets": "0.8.2-nightly.202506211606",
54
- "@univerjs/design": "0.8.2-nightly.202506211606",
55
- "@univerjs/sheets-ui": "0.8.2-nightly.202506211606",
56
- "@univerjs/ui": "0.8.2-nightly.202506211606"
50
+ "@univerjs-pro/collaboration": "0.8.2-nightly.202506231607",
51
+ "@univerjs-pro/collaboration-client": "0.8.2-nightly.202506231607",
52
+ "@univerjs/core": "0.8.2-nightly.202506231607",
53
+ "@univerjs/sheets": "0.8.2-nightly.202506231607",
54
+ "@univerjs/sheets-ui": "0.8.2-nightly.202506231607",
55
+ "@univerjs/design": "0.8.2-nightly.202506231607",
56
+ "@univerjs/ui": "0.8.2-nightly.202506231607"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",