@univerjs-pro/live-share 0.8.0-nightly.202506111607 → 0.8.1-nightly.202506121607
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x560ecb=_0x57b5;(function(_0x3f790e,_0x10f5a6){var _0x5d8f14=_0x57b5,_0x7db92c=_0x3f790e();while(!![]){try{var _0x29ea3c=-parseInt(_0x5d8f14(0x128))/0x1+-parseInt(_0x5d8f14(0x180))/0x2+-parseInt(_0x5d8f14(0x17b))/0x3*(-parseInt(_0x5d8f14(0x136))/0x4)+parseInt(_0x5d8f14(0xd9))/0x5+-parseInt(_0x5d8f14(0x1a6))/0x6*(parseInt(_0x5d8f14(0x107))/0x7)+parseInt(_0x5d8f14(0xca))/0x8+-parseInt(_0x5d8f14(0x105))/0x9;if(_0x29ea3c===_0x10f5a6)break;else _0x7db92c['push'](_0x7db92c['shift']());}catch(_0x5e57a6){_0x7db92c['push'](_0x7db92c['shift']());}}}(_0xcf91,0xbb01d));var U=Object[_0x560ecb(0x104)],F=(_0x258a4c,_0x9fbc5,_0x21a7dd)=>_0x9fbc5 in _0x258a4c?U(_0x258a4c,_0x9fbc5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21a7dd}):_0x258a4c[_0x9fbc5]=_0x21a7dd,v=(_0x5ce77b,_0x53b3ae,_0x10a446)=>F(_0x5ce77b,typeof _0x53b3ae!=_0x560ecb(0xf7)?_0x53b3ae+'':_0x53b3ae,_0x10a446);function _0x57b5(_0x62a3f5,_0x1a9e9e){var _0xcf9105=_0xcf91();return _0x57b5=function(_0x57b5ec,_0x2599a6){_0x57b5ec=_0x57b5ec-0xc3;var _0x1e38e6=_0xcf9105[_0x57b5ec];return _0x1e38e6;},_0x57b5(_0x62a3f5,_0x1a9e9e);}Object[_0x560ecb(0x104)](exports,Symbol[_0x560ecb(0xf9)],{'value':_0x560ecb(0x12c)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require(_0x560ecb(0x155)),w=require(_0x560ecb(0xde)),p=require(_0x560ecb(0x1a0)),l=require(_0x560ecb(0xfb)),g=require(_0x560ecb(0x15b)),f=require(_0x560ecb(0xdb)),_=require(_0x560ecb(0x1ad)),D=require('rxjs'),b=require(_0x560ecb(0xf8)),$=_0x560ecb(0xeb),x={};class O extends o[_0x560ecb(0x178)]{constructor(){var _0x4f027d=_0x560ecb;super(...arguments),v(this,_0x4f027d(0xd0),new Set()),v(this,'_reporters',new Set());}[_0x560ecb(0x16e)](_0x1222a2){var _0x549cf0=_0x560ecb;return this[_0x549cf0(0xd0)][_0x549cf0(0x133)](_0x1222a2),o['toDisposable'](()=>this[_0x549cf0(0xd0)]['delete'](_0x1222a2));}[_0x560ecb(0x160)](_0x4866ed){var _0x114efb=_0x560ecb;return this['_reporters'][_0x114efb(0x133)](_0x4866ed),o[_0x114efb(0x1ab)](()=>this[_0x114efb(0x172)][_0x114efb(0x108)](_0x4866ed));}[_0x560ecb(0xf4)](_0xfbb471){var _0x532ba6=_0x560ecb;return this[_0x532ba6(0xd0)][_0x532ba6(0x174)](_0xfbb471);}[_0x560ecb(0x129)](_0x429c5e){var _0x417494=_0x560ecb;return Array['from'](this[_0x417494(0x172)])[_0x417494(0xe5)](_0x23a64e=>_0x23a64e(_0x429c5e));}}var H=Object[_0x560ecb(0x154)],V=(_0x28c7aa,_0x4453c4,_0xaebe9d,_0x5da6e1)=>{var _0x50e7f8=_0x560ecb;for(var _0x255de6=_0x5da6e1>0x1?void 0x0:_0x5da6e1?H(_0x4453c4,_0xaebe9d):_0x4453c4,_0x13c4a0=_0x28c7aa[_0x50e7f8(0x188)]-0x1,_0x46895c;_0x13c4a0>=0x0;_0x13c4a0--)(_0x46895c=_0x28c7aa[_0x13c4a0])&&(_0x255de6=_0x46895c(_0x255de6)||_0x255de6);return _0x255de6;},k=(_0x52283e,_0x49ac04)=>(_0x1f4f79,_0x51b0d0)=>_0x49ac04(_0x1f4f79,_0x51b0d0,_0x52283e);let E=class extends o[_0x560ecb(0x178)]{constructor(_0xf78092){var _0x1c8fd5=_0x560ecb;super(),this['_liveShareService']=_0xf78092,this[_0x1c8fd5(0x144)]();}['_init'](){var _0x3c329a=_0x560ecb;[w[_0x3c329a(0xef)]['id'],w[_0x3c329a(0x189)]['id'],C[_0x3c329a(0x10f)]['id']]['forEach'](_0x107395=>{var _0x2de4e0=_0x3c329a;this[_0x2de4e0(0x119)](this[_0x2de4e0(0x139)][_0x2de4e0(0x16e)](_0x107395));});}};function _0xcf91(){var _0x31f494=['Module','reverse','Subject','FOLLOWING','_handleNewHost','onStarting','init','add','RxDisposable','LIVESHARE_OPERATION','20236zDYRgd','SessionStatus','default','_liveShareService','apply','jsxs','connectInjector','_uiPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopFollowing','event$','You\x27are\x20offline.','then','_startLiveShareCoordinator','_init','_status$','get','status$','override','text','NOT_FOLLOWING','indexOf','stringify','IDLE','_collabSession','not-following','Plugin','univerjs-icon\x20univerjs-icon-','touchDependencies','IUniverInstanceService','getOwnPropertyDescriptor','@univerjs/sheets','path','_beIdle','_injector','CommandType','stopFollowing','@univerjs/design','end','find','assign','_handleOperation','registerInitialStateReporter','takeUntil','operations','complete','unitId','Dropdown','prototype','SAME_OPERATION_SHARE_INTERVAL','getTypeOfUnitDisposed$','following','dispose','LIVESHARE_REQUEST_HOST','presenting','ONLINE','registerSharedOperation','LiveShareStatus','none','useDependency','_reporters','asObservable','has','HEADER_MENU','_univerInstanceService','stopPresenting','Disposable','_presenter','OFFLINE','573sOjWuj','createElement','dispose$','getLiveShareCoordinator','concat','702652BmeBvg','useState','_commandDisposable','div','getCurrentTypeOfUnit$','trim','toString','getOwnPropertySymbols','length','SetScrollOperation','next','jsx','function','children','UNIVER_UNKNOWN','_configService','parse','icon','createInstance','getMemberID','includes','UNIVER_SHEET','extend','sheet','LIVESHARE_TERMINATE','univer-size-4','attrs','defIds','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','pipe','getUnitId','UNIVER_LIVE_SHARE_PLUGIN','@univerjs/ui','You\x27re\x20not\x20following\x20the\x20presenter','LiveShareService','_stopPresenting','requireSession','use','170754bcLfCb','propertyIsEnumerable','idSuffix','string','You\x27re\x20presenting\x20the\x20document','toDisposable','mask','@univerjs-pro/collaboration','defs','useRef','Injector','forEach','currentColor','presenter','Button','10404728WJViRC','displayName','_handleNewChangeSets','idle','offline','onRendered','_sharedOperations','registerComponent','svg','IUIPartsService','set','LiveShare','entries','type','_handleOnline','7451670QIxcFO','_status','react','BehaviorSubject','getTypeOfUnitAdded$','@univerjs/sheets-ui','_handleTerminate','_handleOffline','sessionStatus$','subscribe','getConfig','className','map','tag','executeCommand','_startFollowing','NEW_CHANGESETS','UniverInstanceType','live-share.config','throttleTime','Start\x20following','BuiltInUIPart','SetZoomRatioOperation','DisposableCollection','params','DesktopLiveShareController','OPERATION','shouldShareOperation','data','DependentOn','symbol','rxjs/operators','toStringTag','UniverLiveSharePlugin','react/jsx-runtime','hasOwnProperty','forwardRef','_commandService','button','_collabSessionService','tryStartPresenting','_mountLiveShare','current','defineProperty','1907667gAwQhO','ICommandService','336hkaQYq','delete','Present\x20this\x20document','startFollowing','_config','getValue','Fragment','evenodd','SetWorksheetActiveOperation','substring','IConfigService','_entities','fill','random','_fetchOperations','send','LiveShareController','xlink:href','disposeWithMe','_unitID','PRESENTING','CollaborationEvent','LiveShareCoordinator','memberID','unsubscribe','colorChannel1','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','values','call','0\x200\x2017\x2017','Inject','clsx','useObservable','1061892uSFyiQ','getInitialStates','onCommandExecuted','_startPresenting'];_0xcf91=function(){return _0x31f494;};return _0xcf91();}E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x211c35=_0x560ecb;return u=Object[_0x211c35(0x15e)]||function(_0x4efe21){var _0x683512=_0x211c35;for(var _0x59ee19,_0x51e111=0x1,_0x4df6a1=arguments[_0x683512(0x188)];_0x51e111<_0x4df6a1;_0x51e111++){_0x59ee19=arguments[_0x51e111];for(var _0x23482 in _0x59ee19)Object[_0x683512(0x166)]['hasOwnProperty'][_0x683512(0x123)](_0x59ee19,_0x23482)&&(_0x4efe21[_0x23482]=_0x59ee19[_0x23482]);}return _0x4efe21;},u[_0x211c35(0x13a)](this,arguments);},M=function(_0x4c3492,_0x8f3ce7){var _0x516bcc=_0x560ecb,_0x2dc60b={};for(var _0xa1d4ec in _0x4c3492)Object['prototype'][_0x516bcc(0xfc)]['call'](_0x4c3492,_0xa1d4ec)&&_0x8f3ce7[_0x516bcc(0x14b)](_0xa1d4ec)<0x0&&(_0x2dc60b[_0xa1d4ec]=_0x4c3492[_0xa1d4ec]);if(_0x4c3492!=null&&typeof Object[_0x516bcc(0x187)]==_0x516bcc(0x18c)){for(var _0x2c41d9=0x0,_0xa1d4ec=Object[_0x516bcc(0x187)](_0x4c3492);_0x2c41d9<_0xa1d4ec['length'];_0x2c41d9++)_0x8f3ce7[_0x516bcc(0x14b)](_0xa1d4ec[_0x2c41d9])<0x0&&Object[_0x516bcc(0x166)][_0x516bcc(0x1a7)][_0x516bcc(0x123)](_0x4c3492,_0xa1d4ec[_0x2c41d9])&&(_0x2dc60b[_0xa1d4ec[_0x2c41d9]]=_0x4c3492[_0xa1d4ec[_0x2c41d9]]);}return _0x2dc60b;},j=f[_0x560ecb(0xfd)](function(_0xa58e32,_0x1fbcbf){var _0x44949d=_0x560ecb,_0x134f26=_0xa58e32[_0x44949d(0x191)],_0x2e90a8=_0xa58e32['id'],_0x4ea150=_0xa58e32['className'],_0x23623c=_0xa58e32[_0x44949d(0x196)],_0x250047=M(_0xa58e32,[_0x44949d(0x191),'id',_0x44949d(0xe4),_0x44949d(0x196)]),_0x2945ef=_0x44949d(0x151)['concat'](_0x2e90a8,'\x20')[_0x44949d(0x17f)](_0x4ea150||'')[_0x44949d(0x185)](),_0x2b2bc3=f['useRef']('_'['concat'](G()));return y(_0x134f26,''['concat'](_0x2e90a8),{'defIds':_0x134f26[_0x44949d(0x19b)],'idSuffix':_0x2b2bc3['current']},u({'ref':_0x1fbcbf,'className':_0x2945ef},_0x250047),_0x23623c);});function y(_0x358b00,_0x4b4922,_0x1a5ed4,_0xd38720,_0x15109a){var _0x477e42=_0x560ecb;return f[_0x477e42(0x17c)](_0x358b00[_0x477e42(0xe6)],u(u({'key':_0x4b4922},q(_0x358b00,_0x1a5ed4,_0x15109a)),_0xd38720),(W(_0x358b00,_0x1a5ed4)['children']||[])[_0x477e42(0xe5)](function(_0x5ac0a6,_0x27a5c1){var _0x3028c3=_0x477e42;return y(_0x5ac0a6,''['concat'](_0x4b4922,'-')[_0x3028c3(0x17f)](_0x358b00[_0x3028c3(0xe6)],'-')[_0x3028c3(0x17f)](_0x27a5c1),_0x1a5ed4,void 0x0,_0x15109a);}));}function q(_0xdc4aa3,_0x2d316d,_0x272e78){var _0x3b4668=_0x560ecb,_0x49208c=u({},_0xdc4aa3['attrs']);_0x272e78!=null&&_0x272e78['colorChannel1']&&_0x49208c[_0x3b4668(0x113)]===_0x3b4668(0x120)&&(_0x49208c[_0x3b4668(0x113)]=_0x272e78['colorChannel1']),_0xdc4aa3[_0x3b4668(0xe6)]===_0x3b4668(0x1ac)&&_0x49208c['id']&&(_0x49208c['id']=_0x49208c['id']+_0x2d316d[_0x3b4668(0x1a8)]),Object[_0x3b4668(0xd6)](_0x49208c)[_0x3b4668(0xc6)](function(_0xb16b81){var _0x5542e5=_0x3b4668,_0x586222=_0xb16b81[0x0],_0x49fa4f=_0xb16b81[0x1];_0x586222===_0x5542e5(0x1ac)&&typeof _0x49fa4f==_0x5542e5(0x1a9)&&(_0x49208c[_0x586222]=_0x49fa4f['replace'](/url\(#(.*)\)/,'url(#$1'[_0x5542e5(0x17f)](_0x2d316d['idSuffix'],')')));});var _0x3c93e1=_0x2d316d['defIds'];return!_0x3c93e1||_0x3c93e1[_0x3b4668(0x188)]===0x0||(_0xdc4aa3['tag']===_0x3b4668(0x1a5)&&_0x49208c[_0x3b4668(0x118)]&&(_0x49208c[_0x3b4668(0x118)]=_0x49208c['xlink:href']+_0x2d316d['idSuffix']),Object[_0x3b4668(0xd6)](_0x49208c)[_0x3b4668(0xc6)](function(_0x49ee37){var _0x5cebce=_0x3b4668,_0x59a5c6=_0x49ee37[0x0],_0x40f67f=_0x49ee37[0x1];typeof _0x40f67f=='string'&&(_0x49208c[_0x59a5c6]=_0x40f67f['replace'](/url\(#(.*)\)/,'url(#$1'[_0x5cebce(0x17f)](_0x2d316d[_0x5cebce(0x1a8)],')')));})),_0x49208c;}function W(_0x5541c6,_0x5b9892){var _0x392fb8=_0x560ecb,_0x5831a6,_0x157066=_0x5b9892[_0x392fb8(0x19b)];return!_0x157066||_0x157066[_0x392fb8(0x188)]===0x0?_0x5541c6:_0x5541c6[_0x392fb8(0xe6)]===_0x392fb8(0xc3)&&(!((_0x5831a6=_0x5541c6[_0x392fb8(0x18d)])===null||_0x5831a6===void 0x0)&&_0x5831a6[_0x392fb8(0x188)])?u(u({},_0x5541c6),{'children':_0x5541c6[_0x392fb8(0x18d)][_0x392fb8(0xe5)](function(_0x312092){var _0x11dcbf=_0x392fb8;return typeof _0x312092[_0x11dcbf(0x19a)]['id']==_0x11dcbf(0x1a9)&&_0x157066&&_0x157066[_0x11dcbf(0x194)](_0x312092[_0x11dcbf(0x19a)]['id'])?u(u({},_0x312092),{'attrs':u(u({},_0x312092[_0x11dcbf(0x19a)]),{'id':_0x312092[_0x11dcbf(0x19a)]['id']+_0x5b9892[_0x11dcbf(0x1a8)]})}):_0x312092;})}):_0x5541c6;}function G(){var _0x30ebcc=_0x560ecb;return Math[_0x30ebcc(0x114)]()[_0x30ebcc(0x186)](0x24)[_0x30ebcc(0x110)](0x2,0x8);}j['displayName']='UniverIcon';var B={'tag':_0x560ecb(0xd2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x560ecb(0x170),'viewBox':_0x560ecb(0x124),'width':'1em','height':'1em'},'children':[{'tag':_0x560ecb(0x156),'attrs':{'fill':_0x560ecb(0xc7),'d':_0x560ecb(0x19c)}},{'tag':_0x560ecb(0x156),'attrs':{'fill':_0x560ecb(0xc7),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x560ecb(0x10e),'clipRule':_0x560ecb(0x10e)}}]},P=f[_0x560ecb(0xfd)](function(_0x2cd857,_0x5557f9){var _0x1b35f3=_0x560ecb;return f[_0x1b35f3(0x17c)](j,Object[_0x1b35f3(0x15e)]({},_0x2cd857,{'id':'live-share-icon','ref':_0x5557f9,'icon':B}));});P[_0x560ecb(0xcb)]='LiveShareIcon';var Y=Object['getOwnPropertyDescriptor'],R=(_0xb40903,_0x438f22,_0x160435,_0x213076)=>{var _0x519bed=_0x560ecb;for(var _0x322ace=_0x213076>0x1?void 0x0:_0x213076?Y(_0x438f22,_0x160435):_0x438f22,_0x4c7c6f=_0xb40903[_0x519bed(0x188)]-0x1,_0x3a295f;_0x4c7c6f>=0x0;_0x4c7c6f--)(_0x3a295f=_0xb40903[_0x4c7c6f])&&(_0x322ace=_0x3a295f(_0x322ace)||_0x322ace);return _0x322ace;},S=(_0x10b7c6,_0x777483)=>(_0x6f0404,_0x479935)=>_0x777483(_0x6f0404,_0x479935,_0x10b7c6);exports[_0x560ecb(0x117)]=class extends o[_0x560ecb(0x134)]{constructor(_0x7b878d,_0x3403b8,_0x4a14b1){var _0x3d20e8=_0x560ecb;super(),v(this,_0x3d20e8(0x112),new Map()),(this[_0x3d20e8(0x176)]=_0x7b878d,this[_0x3d20e8(0x158)]=_0x3403b8,this['_collabSessionService']=_0x4a14b1,this[_0x3d20e8(0x144)]());}async[_0x560ecb(0x17e)](_0x58c66d){var _0x5e60a2=_0x560ecb;return this['_entities'][_0x5e60a2(0x174)](_0x58c66d)||await this[_0x5e60a2(0x143)](_0x58c66d),this['_entities'][_0x5e60a2(0x146)](_0x58c66d);}['_init'](){var _0x29cce3=_0x560ecb;this[_0x29cce3(0x176)][_0x29cce3(0xdd)](o[_0x29cce3(0xea)][_0x29cce3(0x195)])[_0x29cce3(0x19d)](b[_0x29cce3(0x161)](this['dispose$']))[_0x29cce3(0xe2)](async _0xf5b103=>{var _0x13b4ce=_0x29cce3;const _0x466ba4=_0xf5b103[_0x13b4ce(0x19e)]();this[_0x13b4ce(0x112)]['has'](_0x466ba4)||this['_startLiveShareCoordinator'](_0x466ba4);}),this[_0x29cce3(0x176)][_0x29cce3(0x168)](o[_0x29cce3(0xea)]['UNIVER_SHEET'])[_0x29cce3(0x19d)](b['takeUntil'](this['dispose$']))[_0x29cce3(0xe2)](_0x1ece1f=>{var _0x27d33f=_0x29cce3;const _0x3b04c9=_0x1ece1f[_0x27d33f(0x19e)](),_0x5d37d9=this[_0x27d33f(0x112)][_0x27d33f(0x146)](_0x3b04c9);_0x5d37d9==null||_0x5d37d9['dispose']();});}async['_startLiveShareCoordinator'](_0x4c7f35){var _0x4256d7=_0x560ecb;const _0x37768c=await this[_0x4256d7(0x100)][_0x4256d7(0x1a4)](_0x4c7f35),_0x54449d=this[_0x4256d7(0x158)][_0x4256d7(0x192)](exports[_0x4256d7(0x11d)],_0x4c7f35,_0x37768c);return _0x54449d[_0x4256d7(0x132)](),this[_0x4256d7(0x112)][_0x4256d7(0xd4)](_0x4c7f35,_0x54449d),_0x54449d;}},exports['LiveShareController']=R([S(0x0,o[_0x560ecb(0x153)]),S(0x1,o[_0x560ecb(0x125)](o[_0x560ecb(0xc5)])),S(0x2,o[_0x560ecb(0x125)](m['CollaborationSessionService']))],exports[_0x560ecb(0x117)]);var h=(_0x301273=>(_0x301273[_0x560ecb(0x17a)]='offline',_0x301273[_0x560ecb(0x14d)]=_0x560ecb(0xcd),_0x301273[_0x560ecb(0x12f)]=_0x560ecb(0x169),_0x301273[_0x560ecb(0x14a)]=_0x560ecb(0x14f),_0x301273[_0x560ecb(0x11b)]=_0x560ecb(0x16c),_0x301273))(h||{});const Z=_0x560ecb(0x167),J=0xc8;exports[_0x560ecb(0x11d)]=class extends o['RxDisposable']{constructor(_0x5cc370,_0x114788,_0xccc3fb,_0x530d76,_0x3e32c8){var _0xd3a260=_0x560ecb;super(),v(this,_0xd3a260(0x145),new D[(_0xd3a260(0xdc))](_0xd3a260(0xcd))),v(this,'status$',this[_0xd3a260(0x145)][_0xd3a260(0x173)]()),v(this,_0xd3a260(0x144),!0x1),v(this,'_commandDisposable',null),v(this,_0xd3a260(0x179),null),(this[_0xd3a260(0x11a)]=_0x5cc370,this[_0xd3a260(0x14e)]=_0x114788,this[_0xd3a260(0x18f)]=_0xccc3fb,this['_liveShareService']=_0x530d76,this[_0xd3a260(0xfe)]=_0x3e32c8);}get['_status'](){var _0x3221b9=_0x560ecb;return this[_0x3221b9(0x145)][_0x3221b9(0x10c)]();}[_0x560ecb(0x16a)](){var _0x2ed1de=_0x560ecb,_0x114499;(_0x114499=this[_0x2ed1de(0x182)])==null||_0x114499['dispose'](),this[_0x2ed1de(0x145)]['next'](_0x2ed1de(0xcd)),this['_status$'][_0x2ed1de(0x163)]();}[_0x560ecb(0x132)](){var _0x4c9371=_0x560ecb;this[_0x4c9371(0x144)]||(this[_0x4c9371(0x144)]=!0x0,this[_0x4c9371(0x14e)][_0x4c9371(0xe1)][_0x4c9371(0x19d)](b[_0x4c9371(0x161)](this[_0x4c9371(0x17d)]))[_0x4c9371(0xe2)](_0x4c9d6d=>{var _0x193223=_0x4c9371;switch(_0x4c9d6d){case m[_0x193223(0x137)][_0x193223(0x17a)]:this['_handleOffline']();break;case m[_0x193223(0x137)][_0x193223(0x16d)]:this[_0x193223(0xd8)]();break;}}),this['_collabSession'][_0x4c9371(0x140)][_0x4c9371(0x19d)](b[_0x4c9371(0x161)](this['dispose$']))['subscribe'](_0x52c93c=>{var _0x5656e8=_0x4c9371;const {eventID:_0x18ac2a}=_0x52c93c;switch(_0x18ac2a){case _[_0x5656e8(0x11c)]['LIVESHARE_NEW_HOST']:this[_0x5656e8(0x130)](_0x52c93c);break;case _[_0x5656e8(0x11c)][_0x5656e8(0x135)]:this[_0x5656e8(0x15f)](_0x52c93c);break;case _['CollaborationEvent'][_0x5656e8(0x198)]:this[_0x5656e8(0xdf)]();break;case _[_0x5656e8(0x11c)][_0x5656e8(0xe9)]:this[_0x5656e8(0xcc)](_0x52c93c);break;}}));}[_0x560ecb(0x101)](){var _0x4a8913=_0x560ecb;this[_0x4a8913(0x14e)]['send']({'eventID':_[_0x4a8913(0x11c)][_0x4a8913(0x16b)],'data':{'unitID':this['_unitID'],'userID':this[_0x4a8913(0x14e)][_0x4a8913(0x193)]()}},this[_0x4a8913(0x11a)]);}[_0x560ecb(0x177)](){var _0x4b6ffa=_0x560ecb;this[_0x4b6ffa(0xda)]===_0x4b6ffa(0x16c)&&(this[_0x4b6ffa(0x145)][_0x4b6ffa(0x18a)](_0x4b6ffa(0xcd)),this['_collabSession'][_0x4b6ffa(0x116)]({'eventID':_[_0x4b6ffa(0x11c)][_0x4b6ffa(0x198)],'data':{'unitID':this[_0x4b6ffa(0x11a)]}},this['_unitID']));}[_0x560ecb(0x10a)](){var _0x5a23be=_0x560ecb;this['_status']===_0x5a23be(0x14f)&&(this[_0x5a23be(0x145)][_0x5a23be(0x18a)](_0x5a23be(0x169)),this['_startFollowing']());}[_0x560ecb(0x15a)](){var _0x1e4e42=_0x560ecb;this['_status']===_0x1e4e42(0x169)&&this['_stopFollowing']();}[_0x560ecb(0x130)](_0x1d9cca){var _0x259a70=_0x560ecb;const {presenter:_0x47d276}=_0x1d9cca[_0x259a70(0xf5)],_0x3d4b98=this[_0x259a70(0x14e)][_0x259a70(0x193)]();this[_0x259a70(0x179)]=_0x47d276,_0x47d276===_0x3d4b98?(this[_0x259a70(0x13f)](),this[_0x259a70(0x12b)]()):this['_status']!==_0x259a70(0x14f)&&(this[_0x259a70(0x1a3)](),this[_0x259a70(0xe8)]());}['_fetchOperations'](){var _0x1913f4=_0x560ecb;const _0x8ffd99={'eventID':_[_0x1913f4(0x11c)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x1913f4(0x14e)][_0x1913f4(0x116)](_0x8ffd99,this[_0x1913f4(0x11a)]);}['_handleTerminate'](){var _0x146fdf=_0x560ecb;this[_0x146fdf(0x179)]=null,this[_0x146fdf(0xda)]!==_0x146fdf(0x16c)&&this[_0x146fdf(0x157)]();}[_0x560ecb(0xcc)](_0x39bff2){var _0x16d2f0=_0x560ecb;if(this[_0x16d2f0(0xda)]===_0x16d2f0(0x169)&&this[_0x16d2f0(0x179)]===_0x39bff2['data'][_0x16d2f0(0x11e)]){const _0x5824a7=_['parseProtocolChangeset'](_0x39bff2['data'])['mutations'][_0x16d2f0(0x12d)]()[_0x16d2f0(0x15d)](_0x12eaff=>_0x12eaff['id']===C['InsertSheetMutation']['id']);if(_0x5824a7){const _0x15b274=_0x5824a7['params'][_0x16d2f0(0x164)],_0x2e7051=_0x5824a7[_0x16d2f0(0xf1)][_0x16d2f0(0x197)]['id'];setTimeout(()=>{var _0x83efac=_0x16d2f0;this[_0x83efac(0xfe)][_0x83efac(0xe7)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x15b274,'subUnitId':_0x2e7051},{'fromCollab':!0x0});});}}}[_0x560ecb(0x12b)](){var _0x358f1d=_0x560ecb;this[_0x358f1d(0x145)]['next'](_0x358f1d(0x16c));const _0x1d0782=new Map(),_0x22f761=this['_commandDisposable']=new o[(_0x358f1d(0xf0))]();_0x22f761['add'](o[_0x358f1d(0x1ab)](()=>{var _0x5ee38d=_0x358f1d;_0x1d0782['forEach'](_0x14b614=>_0x14b614[_0x5ee38d(0x163)]()),_0x1d0782['clear']();})),_0x22f761[_0x358f1d(0x133)](this[_0x358f1d(0xfe)][_0x358f1d(0x12a)](_0x2c59a9=>{var _0x3b3ea3=_0x358f1d,_0x474128;if(_0x2c59a9[_0x3b3ea3(0xd7)]!==o[_0x3b3ea3(0x159)][_0x3b3ea3(0xf3)]||!this['_liveShareService'][_0x3b3ea3(0xf4)](_0x2c59a9['id']))return;const {id:_0x282fea}=_0x2c59a9;let _0x5384d1;_0x1d0782[_0x3b3ea3(0x174)](_0x282fea)?_0x5384d1=_0x1d0782['get'](_0x282fea):(_0x5384d1=new D[(_0x3b3ea3(0x12e))](),_0x1d0782['set'](_0x282fea,_0x5384d1),_0x5384d1[_0x3b3ea3(0x19d)](b[_0x3b3ea3(0xec)]((_0x474128=this[_0x3b3ea3(0x18f)][_0x3b3ea3(0xe3)](Z))!=null?_0x474128:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x23914a=>{var _0x4d11f0=_0x3b3ea3;this['_collabSession']['send']({'eventID':_[_0x4d11f0(0x11c)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4d11f0(0x11a)],'operations':{[_0x23914a['id']]:{'id':_0x23914a['id'],'params':JSON[_0x4d11f0(0x14c)](_0x23914a[_0x4d11f0(0xf1)])}}}},this[_0x4d11f0(0x11a)]);})),_0x5384d1['next'](_0x2c59a9);})),this[_0x358f1d(0x139)][_0x358f1d(0x129)](this['_unitID'])['forEach'](_0x18d598=>this[_0x358f1d(0x14e)][_0x358f1d(0x116)]({'eventID':_[_0x358f1d(0x11c)][_0x358f1d(0x135)],'data':{'unitID':this[_0x358f1d(0x11a)],'operations':{[_0x18d598['id']]:{'id':_0x18d598['id'],'params':JSON[_0x358f1d(0x14c)](_0x18d598[_0x358f1d(0xf1)])}}}},this[_0x358f1d(0x11a)]));}[_0x560ecb(0x1a3)](){var _0x489c04=_0x560ecb,_0x563f22;this[_0x489c04(0x145)][_0x489c04(0x18a)](_0x489c04(0xcd)),(_0x563f22=this[_0x489c04(0x182)])==null||_0x563f22[_0x489c04(0x16a)](),this[_0x489c04(0x182)]=null;}['_startFollowing'](){var _0x1b335a=_0x560ecb,_0x2e9f9b;(_0x2e9f9b=this[_0x1b335a(0x182)])==null||_0x2e9f9b[_0x1b335a(0x16a)](),this['_status$']['next'](_0x1b335a(0x169));}[_0x560ecb(0x157)](){var _0x4ea1ea=_0x560ecb,_0x557265;this[_0x4ea1ea(0x145)][_0x4ea1ea(0x18a)](_0x4ea1ea(0xcd)),(_0x557265=this[_0x4ea1ea(0x182)])==null||_0x557265['dispose'](),this[_0x4ea1ea(0x182)]=null;}['_stopFollowing'](){var _0x39e96c=_0x560ecb,_0x185607;this[_0x39e96c(0x145)][_0x39e96c(0x18a)](_0x39e96c(0x14f)),(_0x185607=this[_0x39e96c(0x182)])==null||_0x185607[_0x39e96c(0x16a)]();}[_0x560ecb(0x15f)](_0x2de3a9){var _0x4b7ae7=_0x560ecb;if([_0x4b7ae7(0x16c),_0x4b7ae7(0x14f),_0x4b7ae7(0xce)][_0x4b7ae7(0x194)](this[_0x4b7ae7(0xda)])||!_0x2de3a9[_0x4b7ae7(0xf5)][_0x4b7ae7(0xc8)]||_0x2de3a9[_0x4b7ae7(0xf5)][_0x4b7ae7(0xc8)]===this[_0x4b7ae7(0x14e)][_0x4b7ae7(0x193)]())return;this['_status']===_0x4b7ae7(0xcd)&&this[_0x4b7ae7(0xe8)]();const _0x2a0b80=_0x2de3a9[_0x4b7ae7(0xf5)][_0x4b7ae7(0x162)];Object[_0x4b7ae7(0x122)](_0x2a0b80)[_0x4b7ae7(0xc6)](_0x3f1a6b=>{var _0xf0d6f7=_0x4b7ae7;this['_commandService'][_0xf0d6f7(0xe7)](_0x3f1a6b['id'],_0x3f1a6b['params']?JSON[_0xf0d6f7(0x190)](_0x3f1a6b[_0xf0d6f7(0xf1)]):null,{'fromCollab':!0x0});});}[_0x560ecb(0xe0)](){var _0x2582d1=_0x560ecb,_0x2c563e;this[_0x2582d1(0x145)][_0x2582d1(0x18a)](_0x2582d1(0xce)),(_0x2c563e=this[_0x2582d1(0x182)])==null||_0x2c563e[_0x2582d1(0x16a)]();}[_0x560ecb(0xd8)](){var _0x33445f=_0x560ecb;this[_0x33445f(0x145)][_0x33445f(0x18a)](_0x33445f(0xcd)),this[_0x33445f(0x115)]();}},exports[_0x560ecb(0x11d)]=R([S(0x2,o[_0x560ecb(0x111)]),S(0x3,o[_0x560ecb(0x125)](O)),S(0x4,o[_0x560ecb(0x106)])],exports['LiveShareCoordinator']);function A(){var _0x3b3d15=_0x560ecb;const _0x12b7c8=p[_0x3b3d15(0x171)](exports[_0x3b3d15(0x117)]),_0x177c48=p[_0x3b3d15(0x171)](o[_0x3b3d15(0x153)]),_0x22586e=p[_0x3b3d15(0x127)](()=>_0x177c48[_0x3b3d15(0x184)](o[_0x3b3d15(0xea)][_0x3b3d15(0x195)]),void 0x0,!0x1,[]),[_0x533a07,_0x38b393]=f[_0x3b3d15(0x181)](null),[_0x47ce47,_0x5dd7b1]=f[_0x3b3d15(0x181)](h['IDLE']),_0x3d6908=f[_0x3b3d15(0xc4)](null);return f['useEffect'](()=>(_0x22586e&&_0x12b7c8['getLiveShareCoordinator'](_0x22586e['getUnitId']())[_0x3b3d15(0x142)](_0x5a36de=>{var _0x4bea71=_0x3b3d15;_0x38b393(_0x5a36de),_0x3d6908['current']=_0x5a36de[_0x4bea71(0x147)][_0x4bea71(0xe2)](_0x34fc9d=>{_0x5dd7b1(_0x34fc9d);});}),()=>{var _0x12b94c=_0x3b3d15,_0x4bba31;(_0x4bba31=_0x3d6908[_0x12b94c(0x103)])==null||_0x4bba31[_0x12b94c(0x11f)](),_0x3d6908['current']=null;}),[_0x22586e,_0x12b7c8]),_0x533a07?l[_0x3b3d15(0x18b)](g[_0x3b3d15(0x165)],{'align':_0x3b3d15(0x15c),'disabled':_0x47ce47===h[_0x3b3d15(0x17a)],'className':_0x3b3d15(0x121),'overlay':l['jsx'](K,{'status':_0x47ce47,'coordinator':_0x533a07}),'children':l['jsx'](_0x3b3d15(0xff),{'className':g[_0x3b3d15(0x126)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x47ce47===h[_0x3b3d15(0x17a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47ce47!==h[_0x3b3d15(0x17a)]}),'type':_0x3b3d15(0xff),'children':l['jsx'](P,{'className':_0x3b3d15(0x199)})})}):null;}function K(_0x3441e0){var _0x3859bc=_0x560ecb;const {status:_0x30320b,coordinator:_0x520a1d}=_0x3441e0;switch(_0x30320b){case h[_0x3859bc(0x14d)]:return l[_0x3859bc(0x18b)](z,{'coordinator':_0x520a1d});case h[_0x3859bc(0x12f)]:return l[_0x3859bc(0x18b)](Q,{'coordinator':_0x520a1d});case h[_0x3859bc(0x14a)]:return l[_0x3859bc(0x18b)](X,{'coordinator':_0x520a1d});case h['OFFLINE']:return l['jsx'](te,{});case h['PRESENTING']:return l['jsx'](ee,{'coordinator':_0x520a1d});default:return null;}}function z(_0x37e2c8){var _0x394f87=_0x560ecb;const {coordinator:_0x492e21}=_0x37e2c8;return l[_0x394f87(0x13b)](l['Fragment'],{'children':[l[_0x394f87(0x18b)](_0x394f87(0x183),{'className':_0x394f87(0x13e),'children':_0x394f87(0x109)}),l['jsx'](g[_0x394f87(0xc9)],{'onClick':()=>_0x492e21['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x1ae538){var _0x1129f2=_0x560ecb;const {coordinator:_0xaf25ce}=_0x1ae538;return l[_0x1129f2(0x13b)](l[_0x1129f2(0x10d)],{'children':[l[_0x1129f2(0x18b)]('div',{'className':_0x1129f2(0x13e),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](g[_0x1129f2(0xc9)],{'onClick':()=>_0xaf25ce['stopFollowing'](),'children':'Stop\x20following'})]});}function X(_0x2a0f55){var _0x3f3c65=_0x560ecb;const {coordinator:_0x434ff9}=_0x2a0f55;return l[_0x3f3c65(0x13b)](l[_0x3f3c65(0x10d)],{'children':[l[_0x3f3c65(0x18b)](_0x3f3c65(0x183),{'className':_0x3f3c65(0x13e),'children':_0x3f3c65(0x1a1)}),l[_0x3f3c65(0x18b)](g[_0x3f3c65(0xc9)],{'variant':_0x3f3c65(0x149),'onClick':()=>_0x434ff9[_0x3f3c65(0x10a)](),'children':_0x3f3c65(0xed)})]});}function ee(_0x2d38c0){var _0xc953d8=_0x560ecb;const {coordinator:_0x31e46f}=_0x2d38c0;return l[_0xc953d8(0x13b)](l[_0xc953d8(0x10d)],{'children':[l[_0xc953d8(0x18b)]('div',{'className':_0xc953d8(0x13e),'children':_0xc953d8(0x1aa)}),l[_0xc953d8(0x18b)](g['Button'],{'variant':_0xc953d8(0x138),'onClick':()=>_0x31e46f[_0xc953d8(0x177)](),'children':'Stop\x20presenting'})]});}function te(){var _0x9300bb=_0x560ecb;return l[_0x9300bb(0x18b)](l[_0x9300bb(0x10d)],{'children':_0x9300bb(0x141)});}var ie=Object[_0x560ecb(0x154)],ne=(_0x44d3f6,_0x2eb0d1,_0x2f3c14,_0x3ec979)=>{var _0x304600=_0x560ecb;for(var _0x28d39d=_0x3ec979>0x1?void 0x0:_0x3ec979?ie(_0x2eb0d1,_0x2f3c14):_0x2eb0d1,_0xa94af0=_0x44d3f6[_0x304600(0x188)]-0x1,_0x4e314e;_0xa94af0>=0x0;_0xa94af0--)(_0x4e314e=_0x44d3f6[_0xa94af0])&&(_0x28d39d=_0x4e314e(_0x28d39d)||_0x28d39d);return _0x28d39d;},L=(_0x38b9b8,_0x958be0)=>(_0x428efd,_0x16cb97)=>_0x958be0(_0x428efd,_0x16cb97,_0x38b9b8);exports[_0x560ecb(0xf2)]=class extends o[_0x560ecb(0x178)]{constructor(_0x5280f6,_0x4a1ff8){var _0x109327=_0x560ecb;super(),this[_0x109327(0x158)]=_0x5280f6,this['_uiPartsService']=_0x4a1ff8,this[_0x109327(0x102)]();}['_mountLiveShare'](){var _0x4417eb=_0x560ecb;this[_0x4417eb(0x119)](this[_0x4417eb(0x13d)][_0x4417eb(0xd1)](p[_0x4417eb(0xee)][_0x4417eb(0x175)],()=>p[_0x4417eb(0x13c)](A,this[_0x4417eb(0x158)])));}},exports[_0x560ecb(0xf2)]=ne([L(0x0,o[_0x560ecb(0x125)](o[_0x560ecb(0xc5)])),L(0x1,p[_0x560ecb(0xd3)])],exports[_0x560ecb(0xf2)]);var re=Object[_0x560ecb(0x104)],se=Object['getOwnPropertyDescriptor'],oe=(_0x3e7979,_0x3b2e12,_0x4cf5d3)=>_0x3b2e12 in _0x3e7979?re(_0x3e7979,_0x3b2e12,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4cf5d3}):_0x3e7979[_0x3b2e12]=_0x4cf5d3,ae=(_0x18f8a8,_0xacc881,_0x524366,_0x498207)=>{for(var _0x18aadd=_0x498207>0x1?void 0x0:_0x498207?se(_0xacc881,_0x524366):_0xacc881,_0x1ef2fd=_0x18f8a8['length']-0x1,_0x4533aa;_0x1ef2fd>=0x0;_0x1ef2fd--)(_0x4533aa=_0x18f8a8[_0x1ef2fd])&&(_0x18aadd=_0x4533aa(_0x18aadd)||_0x18aadd);return _0x18aadd;},N=(_0x37e6af,_0x1b633f)=>(_0x1e87ae,_0x2be095)=>_0x1b633f(_0x1e87ae,_0x2be095,_0x37e6af),T=(_0x401c4f,_0x1973cc,_0x46bfd6)=>oe(_0x401c4f,typeof _0x1973cc!=_0x560ecb(0xf7)?_0x1973cc+'':_0x1973cc,_0x46bfd6);const le=_0x560ecb(0x19f);exports[_0x560ecb(0xfa)]=class extends o[_0x560ecb(0x150)]{constructor(_0x5e1d5e=x,_0x1eaef3,_0x568d11){var _0x23bcf6=_0x560ecb;super(),this[_0x23bcf6(0x10b)]=_0x5e1d5e,this[_0x23bcf6(0x158)]=_0x1eaef3,this[_0x23bcf6(0x18f)]=_0x568d11;const {..._0xadcd8a}=o['merge']({},x,this['_config']);this['_configService']['setConfig']($,_0xadcd8a);}[_0x560ecb(0x131)](){var _0x67ca3e=_0x560ecb;o['registerDependencies'](this[_0x67ca3e(0x158)],o['mergeOverrideWithDependencies']([[O],[exports[_0x67ca3e(0x117)]],[E],[exports[_0x67ca3e(0xf2)]]],this['_config'][_0x67ca3e(0x148)])),o[_0x67ca3e(0x152)](this[_0x67ca3e(0x158)],[[E]]);}[_0x560ecb(0xcf)](){var _0x2784f1=_0x560ecb;o[_0x2784f1(0x152)](this[_0x2784f1(0x158)],[[exports[_0x2784f1(0xf2)]]]);}},T(exports['UniverLiveSharePlugin'],'type',o['UniverInstanceType'][_0x560ecb(0x18e)]),T(exports[_0x560ecb(0xfa)],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o[_0x560ecb(0xf6)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x560ecb(0x125)](o[_0x560ecb(0xc5)])),N(0x2,o[_0x560ecb(0x111)])],exports[_0x560ecb(0xfa)]),exports[_0x560ecb(0xd5)]=A,exports[_0x560ecb(0x1a2)]=O,exports[_0x560ecb(0x16f)]=h;
|
|
1
|
+
'use strict';var _0x82621=_0x123a;(function(_0x30ed67,_0x3b200a){var _0x2fd9be=_0x123a,_0x3c0cf8=_0x30ed67();while(!![]){try{var _0x16ee94=-parseInt(_0x2fd9be(0xff))/0x1+parseInt(_0x2fd9be(0x102))/0x2*(parseInt(_0x2fd9be(0x118))/0x3)+-parseInt(_0x2fd9be(0x134))/0x4+parseInt(_0x2fd9be(0xb1))/0x5+-parseInt(_0x2fd9be(0x10f))/0x6+parseInt(_0x2fd9be(0xa3))/0x7*(parseInt(_0x2fd9be(0x10e))/0x8)+parseInt(_0x2fd9be(0xe6))/0x9;if(_0x16ee94===_0x3b200a)break;else _0x3c0cf8['push'](_0x3c0cf8['shift']());}catch(_0x337851){_0x3c0cf8['push'](_0x3c0cf8['shift']());}}}(_0x1392,0x686cd));var U=Object[_0x82621(0xd1)],F=(_0x2a5944,_0x27b13d,_0x40e04d)=>_0x27b13d in _0x2a5944?U(_0x2a5944,_0x27b13d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40e04d}):_0x2a5944[_0x27b13d]=_0x40e04d,v=(_0x7eecb0,_0x31d989,_0x53e0a4)=>F(_0x7eecb0,typeof _0x31d989!=_0x82621(0x94)?_0x31d989+'':_0x31d989,_0x53e0a4);Object[_0x82621(0xd1)](exports,Symbol[_0x82621(0x125)],{'value':_0x82621(0xf3)});const m=require(_0x82621(0xc1)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require(_0x82621(0x89)),p=require(_0x82621(0xb2)),l=require('react/jsx-runtime'),g=require(_0x82621(0xa9)),f=require('react'),_=require(_0x82621(0x157)),D=require('rxjs'),b=require(_0x82621(0x10d)),$=_0x82621(0x8a),x={};class O extends o[_0x82621(0x146)]{constructor(){var _0xd2a5e0=_0x82621;super(...arguments),v(this,_0xd2a5e0(0x119),new Set()),v(this,_0xd2a5e0(0xc7),new Set());}[_0x82621(0x11a)](_0x29f5de){var _0x4f119a=_0x82621;return this[_0x4f119a(0x119)][_0x4f119a(0xd3)](_0x29f5de),o[_0x4f119a(0xc9)](()=>this[_0x4f119a(0x119)][_0x4f119a(0x103)](_0x29f5de));}[_0x82621(0x13b)](_0x5ad70e){var _0x129557=_0x82621;return this[_0x129557(0xc7)]['add'](_0x5ad70e),o[_0x129557(0xc9)](()=>this[_0x129557(0xc7)][_0x129557(0x103)](_0x5ad70e));}[_0x82621(0x131)](_0x2f6807){var _0x4199eb=_0x82621;return this[_0x4199eb(0x119)][_0x4199eb(0x15c)](_0x2f6807);}[_0x82621(0x111)](_0x1c3b1d){var _0x164ea4=_0x82621;return Array[_0x164ea4(0xb8)](this[_0x164ea4(0xc7)])[_0x164ea4(0xbc)](_0x142a02=>_0x142a02(_0x1c3b1d));}}var H=Object[_0x82621(0xbd)],V=(_0xa923f5,_0x4577d3,_0x231496,_0x26c922)=>{var _0xcf4c09=_0x82621;for(var _0x46903e=_0x26c922>0x1?void 0x0:_0x26c922?H(_0x4577d3,_0x231496):_0x4577d3,_0x5e96fb=_0xa923f5[_0xcf4c09(0x14c)]-0x1,_0xa51acf;_0x5e96fb>=0x0;_0x5e96fb--)(_0xa51acf=_0xa923f5[_0x5e96fb])&&(_0x46903e=_0xa51acf(_0x46903e)||_0x46903e);return _0x46903e;},k=(_0x27a0dd,_0x234544)=>(_0x5bfb6c,_0x5931c3)=>_0x234544(_0x5bfb6c,_0x5931c3,_0x27a0dd);let E=class extends o[_0x82621(0x146)]{constructor(_0x537420){super(),this['_liveShareService']=_0x537420,this['_init']();}[_0x82621(0x14f)](){var _0x4a671e=_0x82621;[w['SetZoomRatioOperation']['id'],w[_0x4a671e(0xe7)]['id'],C[_0x4a671e(0xdb)]['id']][_0x4a671e(0x10a)](_0x3c53c5=>{var _0x51f17a=_0x4a671e;this[_0x51f17a(0xf1)](this[_0x51f17a(0xcf)]['registerSharedOperation'](_0x3c53c5));});}};E=V([k(0x0,o[_0x82621(0xa7)](O))],E);var u=function(){var _0x122630=_0x82621;return u=Object['assign']||function(_0xf064d2){var _0x13b2c5=_0x123a;for(var _0x43c08c,_0x259927=0x1,_0x1d14eb=arguments[_0x13b2c5(0x14c)];_0x259927<_0x1d14eb;_0x259927++){_0x43c08c=arguments[_0x259927];for(var _0x395c8e in _0x43c08c)Object[_0x13b2c5(0x11b)][_0x13b2c5(0xe5)]['call'](_0x43c08c,_0x395c8e)&&(_0xf064d2[_0x395c8e]=_0x43c08c[_0x395c8e]);}return _0xf064d2;},u[_0x122630(0xec)](this,arguments);},M=function(_0x387218,_0x3795ae){var _0x2bda0b=_0x82621,_0x6942a8={};for(var _0x19ad33 in _0x387218)Object[_0x2bda0b(0x11b)]['hasOwnProperty']['call'](_0x387218,_0x19ad33)&&_0x3795ae[_0x2bda0b(0xd8)](_0x19ad33)<0x0&&(_0x6942a8[_0x19ad33]=_0x387218[_0x19ad33]);if(_0x387218!=null&&typeof Object['getOwnPropertySymbols']==_0x2bda0b(0xc6)){for(var _0x3ef627=0x0,_0x19ad33=Object['getOwnPropertySymbols'](_0x387218);_0x3ef627<_0x19ad33[_0x2bda0b(0x14c)];_0x3ef627++)_0x3795ae[_0x2bda0b(0xd8)](_0x19ad33[_0x3ef627])<0x0&&Object[_0x2bda0b(0x11b)]['propertyIsEnumerable']['call'](_0x387218,_0x19ad33[_0x3ef627])&&(_0x6942a8[_0x19ad33[_0x3ef627]]=_0x387218[_0x19ad33[_0x3ef627]]);}return _0x6942a8;},j=f[_0x82621(0x16c)](function(_0x3c67a1,_0x198fd9){var _0x5edaf9=_0x82621,_0x54308e=_0x3c67a1[_0x5edaf9(0xce)],_0x4727b1=_0x3c67a1['id'],_0x46d4bf=_0x3c67a1[_0x5edaf9(0xf6)],_0x45992a=_0x3c67a1[_0x5edaf9(0x11e)],_0x5f1c46=M(_0x3c67a1,[_0x5edaf9(0xce),'id',_0x5edaf9(0xf6),_0x5edaf9(0x11e)]),_0x44db73=_0x5edaf9(0x15b)[_0x5edaf9(0x104)](_0x4727b1,'\x20')[_0x5edaf9(0x104)](_0x46d4bf||'')[_0x5edaf9(0x101)](),_0xdcb8fa=f[_0x5edaf9(0x12a)]('_'[_0x5edaf9(0x104)](G()));return y(_0x54308e,''['concat'](_0x4727b1),{'defIds':_0x54308e[_0x5edaf9(0xc2)],'idSuffix':_0xdcb8fa[_0x5edaf9(0x12d)]},u({'ref':_0x198fd9,'className':_0x44db73},_0x5f1c46),_0x45992a);});function y(_0x440525,_0x4c1f3e,_0x542913,_0x106d89,_0x27db6a){var _0x18a18e=_0x82621;return f[_0x18a18e(0xbe)](_0x440525[_0x18a18e(0xba)],u(u({'key':_0x4c1f3e},q(_0x440525,_0x542913,_0x27db6a)),_0x106d89),(W(_0x440525,_0x542913)['children']||[])[_0x18a18e(0xbc)](function(_0x523ac4,_0x8e10b9){var _0x5927dc=_0x18a18e;return y(_0x523ac4,''[_0x5927dc(0x104)](_0x4c1f3e,'-')[_0x5927dc(0x104)](_0x440525[_0x5927dc(0xba)],'-')[_0x5927dc(0x104)](_0x8e10b9),_0x542913,void 0x0,_0x27db6a);}));}function _0x123a(_0x189a99,_0x3fef79){var _0x139215=_0x1392();return _0x123a=function(_0x123aaf,_0x40c89c){_0x123aaf=_0x123aaf-0x88;var _0x148235=_0x139215[_0x123aaf];return _0x148235;},_0x123a(_0x189a99,_0x3fef79);}function q(_0x3a44e7,_0x570845,_0xdf0614){var _0x4a061a=_0x82621,_0x7e6605=u({},_0x3a44e7[_0x4a061a(0x163)]);_0xdf0614!=null&&_0xdf0614[_0x4a061a(0x8b)]&&_0x7e6605[_0x4a061a(0x11f)]===_0x4a061a(0x8b)&&(_0x7e6605[_0x4a061a(0x11f)]=_0xdf0614['colorChannel1']),_0x3a44e7[_0x4a061a(0xba)]==='mask'&&_0x7e6605['id']&&(_0x7e6605['id']=_0x7e6605['id']+_0x570845[_0x4a061a(0x13e)]),Object[_0x4a061a(0xfd)](_0x7e6605)[_0x4a061a(0x10a)](function(_0x5e58bb){var _0x591653=_0x4a061a,_0x527a66=_0x5e58bb[0x0],_0x1c7e3c=_0x5e58bb[0x1];_0x527a66===_0x591653(0x16b)&&typeof _0x1c7e3c==_0x591653(0x108)&&(_0x7e6605[_0x527a66]=_0x1c7e3c[_0x591653(0x9a)](/url\(#(.*)\)/,_0x591653(0xb0)[_0x591653(0x104)](_0x570845[_0x591653(0x13e)],')')));});var _0x3a6eee=_0x570845[_0x4a061a(0xc2)];return!_0x3a6eee||_0x3a6eee[_0x4a061a(0x14c)]===0x0||(_0x3a44e7[_0x4a061a(0xba)]===_0x4a061a(0x90)&&_0x7e6605[_0x4a061a(0xea)]&&(_0x7e6605[_0x4a061a(0xea)]=_0x7e6605[_0x4a061a(0xea)]+_0x570845[_0x4a061a(0x13e)]),Object[_0x4a061a(0xfd)](_0x7e6605)['forEach'](function(_0xae70aa){var _0x3bef11=_0x4a061a,_0x11c8bc=_0xae70aa[0x0],_0x224c42=_0xae70aa[0x1];typeof _0x224c42==_0x3bef11(0x108)&&(_0x7e6605[_0x11c8bc]=_0x224c42[_0x3bef11(0x9a)](/url\(#(.*)\)/,_0x3bef11(0xb0)[_0x3bef11(0x104)](_0x570845[_0x3bef11(0x13e)],')')));})),_0x7e6605;}function W(_0x2eb6fb,_0x348b91){var _0x151ecc=_0x82621,_0x10e133,_0x3aff9b=_0x348b91['defIds'];return!_0x3aff9b||_0x3aff9b[_0x151ecc(0x14c)]===0x0?_0x2eb6fb:_0x2eb6fb[_0x151ecc(0xba)]==='defs'&&(!((_0x10e133=_0x2eb6fb[_0x151ecc(0x153)])===null||_0x10e133===void 0x0)&&_0x10e133['length'])?u(u({},_0x2eb6fb),{'children':_0x2eb6fb[_0x151ecc(0x153)][_0x151ecc(0xbc)](function(_0x39a092){var _0x143a07=_0x151ecc;return typeof _0x39a092[_0x143a07(0x163)]['id']==_0x143a07(0x108)&&_0x3aff9b&&_0x3aff9b[_0x143a07(0x121)](_0x39a092[_0x143a07(0x163)]['id'])?u(u({},_0x39a092),{'attrs':u(u({},_0x39a092[_0x143a07(0x163)]),{'id':_0x39a092[_0x143a07(0x163)]['id']+_0x348b91[_0x143a07(0x13e)]})}):_0x39a092;})}):_0x2eb6fb;}function G(){var _0x51da23=_0x82621;return Math[_0x51da23(0xd4)]()[_0x51da23(0x154)](0x24)['substring'](0x2,0x8);}j[_0x82621(0x130)]='UniverIcon';var B={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x82621(0x9e),'viewBox':_0x82621(0x12c),'width':'1em','height':_0x82621(0x13f)},'children':[{'tag':_0x82621(0x14d),'attrs':{'fill':_0x82621(0xfe),'d':_0x82621(0x161)}},{'tag':_0x82621(0x14d),'attrs':{'fill':'currentColor','d':_0x82621(0x88),'fillRule':'evenodd','clipRule':'evenodd'}}]},P=f[_0x82621(0x16c)](function(_0x3b9e5f,_0x393a42){var _0x549227=_0x82621;return f[_0x549227(0xbe)](j,Object[_0x549227(0x14a)]({},_0x3b9e5f,{'id':_0x549227(0x8d),'ref':_0x393a42,'icon':B}));});P['displayName']=_0x82621(0x144);var Y=Object[_0x82621(0xbd)],R=(_0x2ff270,_0x537d59,_0x164de6,_0x593360)=>{var _0x3328e9=_0x82621;for(var _0x2230b6=_0x593360>0x1?void 0x0:_0x593360?Y(_0x537d59,_0x164de6):_0x537d59,_0x35be23=_0x2ff270[_0x3328e9(0x14c)]-0x1,_0x412dca;_0x35be23>=0x0;_0x35be23--)(_0x412dca=_0x2ff270[_0x35be23])&&(_0x2230b6=_0x412dca(_0x2230b6)||_0x2230b6);return _0x2230b6;},S=(_0x62e088,_0x20c9e0)=>(_0x37d3eb,_0x3ff8ca)=>_0x20c9e0(_0x37d3eb,_0x3ff8ca,_0x62e088);exports[_0x82621(0xd5)]=class extends o[_0x82621(0x142)]{constructor(_0x2cca50,_0x3e7295,_0x19b4f0){var _0x3d54b2=_0x82621;super(),v(this,_0x3d54b2(0x124),new Map()),(this[_0x3d54b2(0x9d)]=_0x2cca50,this[_0x3d54b2(0xa4)]=_0x3e7295,this['_collabSessionService']=_0x19b4f0,this['_init']());}async[_0x82621(0xc4)](_0x23f6ab){var _0x3e5f73=_0x82621;return this[_0x3e5f73(0x124)][_0x3e5f73(0x15c)](_0x23f6ab)||await this[_0x3e5f73(0x145)](_0x23f6ab),this['_entities'][_0x3e5f73(0xde)](_0x23f6ab);}[_0x82621(0x14f)](){var _0x2b3dfa=_0x82621;this['_univerInstanceService'][_0x2b3dfa(0x10b)](o[_0x2b3dfa(0xfb)][_0x2b3dfa(0x15a)])['pipe'](b[_0x2b3dfa(0x167)](this[_0x2b3dfa(0xdd)]))[_0x2b3dfa(0x99)](async _0x117c47=>{var _0x521631=_0x2b3dfa;const _0x4e01c5=_0x117c47[_0x521631(0xab)]();this[_0x521631(0x124)][_0x521631(0x15c)](_0x4e01c5)||this[_0x521631(0x145)](_0x4e01c5);}),this['_univerInstanceService'][_0x2b3dfa(0xcc)](o[_0x2b3dfa(0xfb)][_0x2b3dfa(0x15a)])['pipe'](b[_0x2b3dfa(0x167)](this[_0x2b3dfa(0xdd)]))['subscribe'](_0x29c103=>{var _0x1d93c8=_0x2b3dfa;const _0x492983=_0x29c103[_0x1d93c8(0xab)](),_0x105e40=this[_0x1d93c8(0x124)][_0x1d93c8(0xde)](_0x492983);_0x105e40==null||_0x105e40[_0x1d93c8(0x15f)]();});}async[_0x82621(0x145)](_0x2c0d0f){var _0x1378ca=_0x82621;const _0x153000=await this['_collabSessionService'][_0x1378ca(0x105)](_0x2c0d0f),_0x4bbbf1=this[_0x1378ca(0xa4)][_0x1378ca(0x122)](exports[_0x1378ca(0xd2)],_0x2c0d0f,_0x153000);return _0x4bbbf1[_0x1378ca(0x12e)](),this[_0x1378ca(0x124)][_0x1378ca(0xd9)](_0x2c0d0f,_0x4bbbf1),_0x4bbbf1;}},exports[_0x82621(0xd5)]=R([S(0x0,o[_0x82621(0xad)]),S(0x1,o[_0x82621(0xa7)](o[_0x82621(0x115)])),S(0x2,o[_0x82621(0xa7)](m[_0x82621(0x156)]))],exports['LiveShareController']);var h=(_0x327600=>(_0x327600[_0x82621(0x158)]=_0x82621(0x9b),_0x327600[_0x82621(0x95)]=_0x82621(0xeb),_0x327600[_0x82621(0xb9)]=_0x82621(0x120),_0x327600[_0x82621(0x13c)]=_0x82621(0x139),_0x327600[_0x82621(0x160)]=_0x82621(0x126),_0x327600))(h||{});const Z=_0x82621(0xc3),J=0xc8;exports[_0x82621(0xd2)]=class extends o[_0x82621(0x142)]{constructor(_0x5e21cb,_0x4c35a8,_0x2ef228,_0x2142c0,_0x15181f){var _0x1604ec=_0x82621;super(),v(this,'_status$',new D[(_0x1604ec(0xe2))](_0x1604ec(0xeb))),v(this,_0x1604ec(0xd0),this[_0x1604ec(0xe4)][_0x1604ec(0x169)]()),v(this,_0x1604ec(0x14f),!0x1),v(this,_0x1604ec(0x16a),null),v(this,_0x1604ec(0x112),null),(this[_0x1604ec(0x14e)]=_0x5e21cb,this[_0x1604ec(0x9c)]=_0x4c35a8,this[_0x1604ec(0x133)]=_0x2ef228,this['_liveShareService']=_0x2142c0,this[_0x1604ec(0xee)]=_0x15181f);}get[_0x82621(0x15d)](){var _0x15dc0f=_0x82621;return this[_0x15dc0f(0xe4)][_0x15dc0f(0x162)]();}[_0x82621(0x15f)](){var _0x4f8ffd=_0x82621,_0x348138;(_0x348138=this[_0x4f8ffd(0x16a)])==null||_0x348138['dispose'](),this[_0x4f8ffd(0xe4)]['next'](_0x4f8ffd(0xeb)),this[_0x4f8ffd(0xe4)][_0x4f8ffd(0x8f)]();}[_0x82621(0x12e)](){var _0x111437=_0x82621;this[_0x111437(0x14f)]||(this[_0x111437(0x14f)]=!0x0,this[_0x111437(0x9c)][_0x111437(0x135)][_0x111437(0xd7)](b['takeUntil'](this[_0x111437(0xdd)]))[_0x111437(0x99)](_0x35686e=>{var _0x4f297c=_0x111437;switch(_0x35686e){case m[_0x4f297c(0xcd)][_0x4f297c(0x158)]:this[_0x4f297c(0x10c)]();break;case m['SessionStatus']['ONLINE']:this[_0x4f297c(0x164)]();break;}}),this[_0x111437(0x9c)]['event$'][_0x111437(0xd7)](b[_0x111437(0x167)](this[_0x111437(0xdd)]))[_0x111437(0x99)](_0x20824f=>{var _0x141995=_0x111437;const {eventID:_0x3b30c5}=_0x20824f;switch(_0x3b30c5){case _[_0x141995(0xb4)][_0x141995(0xdf)]:this[_0x141995(0xda)](_0x20824f);break;case _[_0x141995(0xb4)][_0x141995(0xf5)]:this[_0x141995(0xf2)](_0x20824f);break;case _['CollaborationEvent'][_0x141995(0x9f)]:this[_0x141995(0xaf)]();break;case _[_0x141995(0xb4)][_0x141995(0xe1)]:this[_0x141995(0x165)](_0x20824f);break;}}));}['tryStartPresenting'](){var _0x24b53e=_0x82621;this[_0x24b53e(0x9c)][_0x24b53e(0xf0)]({'eventID':_['CollaborationEvent'][_0x24b53e(0x109)],'data':{'unitID':this[_0x24b53e(0x14e)],'userID':this[_0x24b53e(0x9c)][_0x24b53e(0xcb)]()}},this[_0x24b53e(0x14e)]);}[_0x82621(0x100)](){var _0x27a176=_0x82621;this[_0x27a176(0x15d)]===_0x27a176(0x126)&&(this[_0x27a176(0xe4)]['next'](_0x27a176(0xeb)),this[_0x27a176(0x9c)][_0x27a176(0xf0)]({'eventID':_[_0x27a176(0xb4)][_0x27a176(0x9f)],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){var _0x4bf30=_0x82621;this['_status']===_0x4bf30(0x139)&&(this[_0x4bf30(0xe4)][_0x4bf30(0x96)](_0x4bf30(0x120)),this[_0x4bf30(0x11c)]());}[_0x82621(0x150)](){var _0x47319b=_0x82621;this[_0x47319b(0x15d)]===_0x47319b(0x120)&&this['_stopFollowing']();}[_0x82621(0xda)](_0x23fc4e){var _0x1f1eb3=_0x82621;const {presenter:_0x37eec3}=_0x23fc4e[_0x1f1eb3(0xe3)],_0x351c88=this[_0x1f1eb3(0x9c)][_0x1f1eb3(0xcb)]();this[_0x1f1eb3(0x112)]=_0x37eec3,_0x37eec3===_0x351c88?(this[_0x1f1eb3(0xe8)](),this[_0x1f1eb3(0x137)]()):this['_status']!==_0x1f1eb3(0x139)&&(this[_0x1f1eb3(0xb3)](),this[_0x1f1eb3(0x11c)]());}[_0x82621(0xf7)](){var _0x1300e4=_0x82621;const _0x25097a={'eventID':_[_0x1300e4(0xb4)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x1300e4(0x9c)][_0x1300e4(0xf0)](_0x25097a,this[_0x1300e4(0x14e)]);}[_0x82621(0xaf)](){var _0x26a352=_0x82621;this[_0x26a352(0x112)]=null,this[_0x26a352(0x15d)]!==_0x26a352(0x126)&&this[_0x26a352(0xa8)]();}[_0x82621(0x165)](_0x31efbb){var _0x5407ae=_0x82621;if(this[_0x5407ae(0x15d)]===_0x5407ae(0x120)&&this['_presenter']===_0x31efbb[_0x5407ae(0xe3)]['memberID']){const _0x477b1d=_[_0x5407ae(0xa5)](_0x31efbb[_0x5407ae(0xe3)])['mutations'][_0x5407ae(0x127)]()[_0x5407ae(0x14b)](_0x114b04=>_0x114b04['id']===C['InsertSheetMutation']['id']);if(_0x477b1d){const _0x2bb82b=_0x477b1d[_0x5407ae(0x113)][_0x5407ae(0xe9)],_0x4de91f=_0x477b1d[_0x5407ae(0x113)]['sheet']['id'];setTimeout(()=>{var _0xa3273c=_0x5407ae;this['_commandService'][_0xa3273c(0x12f)](C[_0xa3273c(0xdb)]['id'],{'unitId':_0x2bb82b,'subUnitId':_0x4de91f},{'fromCollab':!0x0});});}}}[_0x82621(0x137)](){var _0xa04a47=_0x82621;this[_0xa04a47(0xe4)][_0xa04a47(0x96)](_0xa04a47(0x126));const _0xfd2679=new Map(),_0x232dc7=this['_commandDisposable']=new o['DisposableCollection']();_0x232dc7['add'](o[_0xa04a47(0xc9)](()=>{var _0x3803d3=_0xa04a47;_0xfd2679[_0x3803d3(0x10a)](_0x11d0dc=>_0x11d0dc[_0x3803d3(0x8f)]()),_0xfd2679[_0x3803d3(0x166)]();})),_0x232dc7[_0xa04a47(0xd3)](this['_commandService'][_0xa04a47(0xaa)](_0xa6d11a=>{var _0x172a48=_0xa04a47,_0x1967d8;if(_0xa6d11a['type']!==o[_0x172a48(0x92)][_0x172a48(0x15e)]||!this[_0x172a48(0xcf)][_0x172a48(0x131)](_0xa6d11a['id']))return;const {id:_0x3762c8}=_0xa6d11a;let _0x4241c8;_0xfd2679[_0x172a48(0x15c)](_0x3762c8)?_0x4241c8=_0xfd2679[_0x172a48(0xde)](_0x3762c8):(_0x4241c8=new D[(_0x172a48(0x147))](),_0xfd2679[_0x172a48(0xd9)](_0x3762c8,_0x4241c8),_0x4241c8['pipe'](b[_0x172a48(0xfc)]((_0x1967d8=this[_0x172a48(0x133)][_0x172a48(0xf9)](Z))!=null?_0x1967d8:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2696c5=>{var _0x3dc48d=_0x172a48;this['_collabSession'][_0x3dc48d(0xf0)]({'eventID':_['CollaborationEvent'][_0x3dc48d(0xf5)],'data':{'unitID':this[_0x3dc48d(0x14e)],'operations':{[_0x2696c5['id']]:{'id':_0x2696c5['id'],'params':JSON[_0x3dc48d(0xb6)](_0x2696c5['params'])}}}},this[_0x3dc48d(0x14e)]);})),_0x4241c8['next'](_0xa6d11a);})),this['_liveShareService'][_0xa04a47(0x111)](this[_0xa04a47(0x14e)])[_0xa04a47(0x10a)](_0x515976=>this[_0xa04a47(0x9c)][_0xa04a47(0xf0)]({'eventID':_[_0xa04a47(0xb4)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xa04a47(0x14e)],'operations':{[_0x515976['id']]:{'id':_0x515976['id'],'params':JSON[_0xa04a47(0xb6)](_0x515976['params'])}}}},this['_unitID']));}[_0x82621(0xb3)](){var _0xc405d=_0x82621,_0x530107;this['_status$'][_0xc405d(0x96)](_0xc405d(0xeb)),(_0x530107=this[_0xc405d(0x16a)])==null||_0x530107[_0xc405d(0x15f)](),this[_0xc405d(0x16a)]=null;}[_0x82621(0x11c)](){var _0x1b240e=_0x82621,_0x1e581d;(_0x1e581d=this[_0x1b240e(0x16a)])==null||_0x1e581d[_0x1b240e(0x15f)](),this['_status$']['next'](_0x1b240e(0x120));}[_0x82621(0xa8)](){var _0x22d0fe=_0x82621,_0x20e536;this[_0x22d0fe(0xe4)]['next'](_0x22d0fe(0xeb)),(_0x20e536=this[_0x22d0fe(0x16a)])==null||_0x20e536[_0x22d0fe(0x15f)](),this['_commandDisposable']=null;}[_0x82621(0xe8)](){var _0x5cdaac=_0x82621,_0x5ab927;this['_status$'][_0x5cdaac(0x96)](_0x5cdaac(0x139)),(_0x5ab927=this[_0x5cdaac(0x16a)])==null||_0x5ab927['dispose']();}[_0x82621(0xf2)](_0x5bdf7b){var _0x14e2f2=_0x82621;if([_0x14e2f2(0x126),_0x14e2f2(0x139),'offline']['includes'](this['_status'])||!_0x5bdf7b[_0x14e2f2(0xe3)][_0x14e2f2(0xe0)]||_0x5bdf7b[_0x14e2f2(0xe3)][_0x14e2f2(0xe0)]===this['_collabSession'][_0x14e2f2(0xcb)]())return;this[_0x14e2f2(0x15d)]===_0x14e2f2(0xeb)&&this[_0x14e2f2(0x11c)]();const _0x2e83a0=_0x5bdf7b[_0x14e2f2(0xe3)][_0x14e2f2(0x110)];Object[_0x14e2f2(0x148)](_0x2e83a0)[_0x14e2f2(0x10a)](_0x1bea2c=>{var _0x4f7d53=_0x14e2f2;this[_0x4f7d53(0xee)]['executeCommand'](_0x1bea2c['id'],_0x1bea2c[_0x4f7d53(0x113)]?JSON['parse'](_0x1bea2c[_0x4f7d53(0x113)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x54a60b=_0x82621,_0xdbd172;this[_0x54a60b(0xe4)][_0x54a60b(0x96)](_0x54a60b(0x9b)),(_0xdbd172=this[_0x54a60b(0x16a)])==null||_0xdbd172['dispose']();}[_0x82621(0x164)](){var _0x5774f3=_0x82621;this[_0x5774f3(0xe4)][_0x5774f3(0x96)](_0x5774f3(0xeb)),this[_0x5774f3(0xf7)]();}},exports[_0x82621(0xd2)]=R([S(0x2,o[_0x82621(0x91)]),S(0x3,o[_0x82621(0xa7)](O)),S(0x4,o[_0x82621(0x152)])],exports[_0x82621(0xd2)]);function A(){var _0x9999fb=_0x82621;const _0x5ed723=p['useDependency'](exports[_0x9999fb(0xd5)]),_0x28230e=p[_0x9999fb(0xa6)](o[_0x9999fb(0xad)]),_0x53c4b0=p[_0x9999fb(0x11d)](()=>_0x28230e['getCurrentTypeOfUnit$'](o[_0x9999fb(0xfb)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x2f51b3,_0x2a7eb1]=f[_0x9999fb(0x106)](null),[_0x10fe99,_0x286af8]=f['useState'](h[_0x9999fb(0x95)]),_0x2d65f1=f['useRef'](null);return f[_0x9999fb(0x151)](()=>(_0x53c4b0&&_0x5ed723[_0x9999fb(0xc4)](_0x53c4b0['getUnitId']())[_0x9999fb(0x16d)](_0x59cdc2=>{var _0x1fed68=_0x9999fb;_0x2a7eb1(_0x59cdc2),_0x2d65f1[_0x1fed68(0x12d)]=_0x59cdc2[_0x1fed68(0xd0)][_0x1fed68(0x99)](_0x2a15d3=>{_0x286af8(_0x2a15d3);});}),()=>{var _0x2f1eef=_0x9999fb,_0x5762b7;(_0x5762b7=_0x2d65f1[_0x2f1eef(0x12d)])==null||_0x5762b7[_0x2f1eef(0x132)](),_0x2d65f1[_0x2f1eef(0x12d)]=null;}),[_0x53c4b0,_0x5ed723]),_0x2f51b3?l['jsx'](g[_0x9999fb(0x141)],{'align':_0x9999fb(0x107),'disabled':_0x10fe99===h[_0x9999fb(0x158)],'className':_0x9999fb(0x93),'overlay':l[_0x9999fb(0x138)](K,{'status':_0x10fe99,'coordinator':_0x2f51b3}),'children':l['jsx'](_0x9999fb(0x129),{'className':g[_0x9999fb(0xca)](_0x9999fb(0xb5),{'univer-cursor-not-allowed':_0x10fe99===h[_0x9999fb(0x158)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x10fe99!==h[_0x9999fb(0x158)]}),'type':_0x9999fb(0x129),'children':l[_0x9999fb(0x138)](P,{'className':_0x9999fb(0xc8)})})}):null;}function _0x1392(){var _0x256620=['SetScrollOperation','_stopFollowing','unitId','xlink:href','idle','apply','You\x27are\x20offline.','_commandService','startFollowing','send','disposeWithMe','_handleOperation','Module','DependentOn','LIVESHARE_OPERATION','className','_fetchOperations','onRendered','getConfig','type','UniverInstanceType','throttleTime','entries','currentColor','77384xgESwE','stopPresenting','trim','234548rYhBmp','delete','concat','requireSession','useState','end','string','LIVESHARE_REQUEST_HOST','forEach','getTypeOfUnitAdded$','_handleOffline','rxjs/operators','32vFxbqA','4028940CNTqbt','operations','getInitialStates','_presenter','params','_uiPartsService','Injector','BuiltInUIPart','touchDependencies','12IDWTab','_sharedOperations','registerSharedOperation','prototype','_startFollowing','useObservable','extend','fill','following','includes','createInstance','DesktopLiveShareController','_entities','toStringTag','presenting','reverse','Start\x20following','button','useRef','div','0\x200\x2017\x2017','current','init','executeCommand','displayName','shouldShareOperation','unsubscribe','_configService','2336952GnROqb','sessionStatus$','_config','_startPresenting','jsx','not-following','IUIPartsService','registerInitialStateReporter','NOT_FOLLOWING','Stop\x20following','idSuffix','1em','text','Dropdown','RxDisposable','UniverLiveSharePlugin','LiveShareIcon','_startLiveShareCoordinator','Disposable','Subject','values','HEADER_MENU','assign','find','length','path','_unitID','_init','stopFollowing','useEffect','ICommandService','children','toString','override','CollaborationSessionService','@univerjs-pro/collaboration','OFFLINE','UniverCollaborationClientPlugin','UNIVER_SHEET','univerjs-icon\x20univerjs-icon-','has','_status','OPERATION','dispose','PRESENTING','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','getValue','attrs','_handleOnline','_handleNewChangeSets','clear','takeUntil','registerDependencies','asObservable','_commandDisposable','mask','forwardRef','then','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','@univerjs/sheets-ui','live-share.config','colorChannel1','setConfig','live-share-icon','merge','complete','use','IConfigService','CommandType','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','symbol','IDLE','next','_mountLiveShare','default','subscribe','replace','offline','_collabSession','_univerInstanceService','none','LIVESHARE_TERMINATE','Stop\x20presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','Plugin','16891hYgwsZ','_injector','parseProtocolChangeset','useDependency','Inject','_beIdle','@univerjs/design','onCommandExecuted','getUnitId','Fragment','IUniverInstanceService','You\x27re\x20presenting\x20the\x20document','_handleTerminate','url(#$1','175425QGUxHL','@univerjs/ui','_stopPresenting','CollaborationEvent','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','stringify','Button','from','FOLLOWING','tag','jsxs','map','getOwnPropertyDescriptor','createElement','pluginName','mergeOverrideWithDependencies','@univerjs-pro/collaboration-client','defIds','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','function','_reporters','univer-size-4','toDisposable','clsx','getMemberID','getTypeOfUnitDisposed$','SessionStatus','icon','_liveShareService','status$','defineProperty','LiveShareCoordinator','add','random','LiveShareController','LiveShare','pipe','indexOf','set','_handleNewHost','SetWorksheetActiveOperation','LiveShareService','dispose$','get','LIVESHARE_NEW_HOST','presenter','NEW_CHANGESETS','BehaviorSubject','data','_status$','hasOwnProperty','11223036vsrmhl'];_0x1392=function(){return _0x256620;};return _0x1392();}function K(_0x33771e){var _0x2d5cf5=_0x82621;const {status:_0x5efd91,coordinator:_0x206829}=_0x33771e;switch(_0x5efd91){case h['IDLE']:return l[_0x2d5cf5(0x138)](z,{'coordinator':_0x206829});case h[_0x2d5cf5(0xb9)]:return l[_0x2d5cf5(0x138)](Q,{'coordinator':_0x206829});case h[_0x2d5cf5(0x13c)]:return l[_0x2d5cf5(0x138)](X,{'coordinator':_0x206829});case h[_0x2d5cf5(0x158)]:return l[_0x2d5cf5(0x138)](te,{});case h[_0x2d5cf5(0x160)]:return l[_0x2d5cf5(0x138)](ee,{'coordinator':_0x206829});default:return null;}}function z(_0x275b90){var _0x1d5481=_0x82621;const {coordinator:_0xc31190}=_0x275b90;return l['jsxs'](l[_0x1d5481(0xac)],{'children':[l['jsx'](_0x1d5481(0x12b),{'className':_0x1d5481(0xa1),'children':'Present\x20this\x20document'}),l['jsx'](g[_0x1d5481(0xb7)],{'onClick':()=>_0xc31190['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x58d8f2){var _0xabbd97=_0x82621;const {coordinator:_0x48a2e9}=_0x58d8f2;return l[_0xabbd97(0xbb)](l[_0xabbd97(0xac)],{'children':[l['jsx']('div',{'className':_0xabbd97(0xa1),'children':_0xabbd97(0xc5)}),l[_0xabbd97(0x138)](g[_0xabbd97(0xb7)],{'onClick':()=>_0x48a2e9[_0xabbd97(0x150)](),'children':_0xabbd97(0x13d)})]});}function X(_0x2f3d61){var _0x82e40a=_0x82621;const {coordinator:_0x14af81}=_0x2f3d61;return l[_0x82e40a(0xbb)](l['Fragment'],{'children':[l[_0x82e40a(0x138)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x82e40a(0x138)](g[_0x82e40a(0xb7)],{'variant':_0x82e40a(0x140),'onClick':()=>_0x14af81[_0x82e40a(0xef)](),'children':_0x82e40a(0x128)})]});}function ee(_0x385ef9){var _0x5f5244=_0x82621;const {coordinator:_0x143508}=_0x385ef9;return l[_0x5f5244(0xbb)](l['Fragment'],{'children':[l[_0x5f5244(0x138)](_0x5f5244(0x12b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5f5244(0xae)}),l[_0x5f5244(0x138)](g['Button'],{'variant':_0x5f5244(0x98),'onClick':()=>_0x143508[_0x5f5244(0x100)](),'children':_0x5f5244(0xa0)})]});}function te(){var _0x1e2c12=_0x82621;return l[_0x1e2c12(0x138)](l['Fragment'],{'children':_0x1e2c12(0xed)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x3580ff,_0x96b643,_0x19442b,_0x111763)=>{var _0x503c2e=_0x82621;for(var _0x4ea384=_0x111763>0x1?void 0x0:_0x111763?ie(_0x96b643,_0x19442b):_0x96b643,_0x254947=_0x3580ff[_0x503c2e(0x14c)]-0x1,_0x5bf518;_0x254947>=0x0;_0x254947--)(_0x5bf518=_0x3580ff[_0x254947])&&(_0x4ea384=_0x5bf518(_0x4ea384)||_0x4ea384);return _0x4ea384;},L=(_0x63c2a8,_0x3afa14)=>(_0x33abc9,_0x557a1a)=>_0x3afa14(_0x33abc9,_0x557a1a,_0x63c2a8);exports[_0x82621(0x123)]=class extends o[_0x82621(0x146)]{constructor(_0x53b154,_0x56d33a){var _0x3a4af4=_0x82621;super(),this[_0x3a4af4(0xa4)]=_0x53b154,this[_0x3a4af4(0x114)]=_0x56d33a,this[_0x3a4af4(0x97)]();}[_0x82621(0x97)](){var _0x1cf7f=_0x82621;this[_0x1cf7f(0xf1)](this['_uiPartsService']['registerComponent'](p[_0x1cf7f(0x116)][_0x1cf7f(0x149)],()=>p['connectInjector'](A,this[_0x1cf7f(0xa4)])));}},exports[_0x82621(0x123)]=ne([L(0x0,o[_0x82621(0xa7)](o[_0x82621(0x115)])),L(0x1,p[_0x82621(0x13a)])],exports['DesktopLiveShareController']);var re=Object[_0x82621(0xd1)],se=Object[_0x82621(0xbd)],oe=(_0x340f65,_0x1d8b9d,_0x1c7926)=>_0x1d8b9d in _0x340f65?re(_0x340f65,_0x1d8b9d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c7926}):_0x340f65[_0x1d8b9d]=_0x1c7926,ae=(_0x4a3c98,_0x356547,_0x1063af,_0x516c8c)=>{for(var _0x531979=_0x516c8c>0x1?void 0x0:_0x516c8c?se(_0x356547,_0x1063af):_0x356547,_0x5351a7=_0x4a3c98['length']-0x1,_0x4ddc85;_0x5351a7>=0x0;_0x5351a7--)(_0x4ddc85=_0x4a3c98[_0x5351a7])&&(_0x531979=_0x4ddc85(_0x531979)||_0x531979);return _0x531979;},N=(_0xdd6ec3,_0x4c7618)=>(_0x5116a9,_0x59bbe0)=>_0x4c7618(_0x5116a9,_0x59bbe0,_0xdd6ec3),T=(_0x354338,_0x18dfd4,_0x5110cf)=>oe(_0x354338,typeof _0x18dfd4!='symbol'?_0x18dfd4+'':_0x18dfd4,_0x5110cf);const le='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o[_0x82621(0xa2)]{constructor(_0x16e0f5=x,_0x51c585,_0x32ca22){var _0x5a661b=_0x82621;super(),this[_0x5a661b(0x136)]=_0x16e0f5,this['_injector']=_0x51c585,this['_configService']=_0x32ca22;const {..._0x5207f9}=o[_0x5a661b(0x8e)]({},x,this[_0x5a661b(0x136)]);this[_0x5a661b(0x133)][_0x5a661b(0x8c)]($,_0x5207f9);}['onStarting'](){var _0x5718b6=_0x82621;o[_0x5718b6(0x168)](this[_0x5718b6(0xa4)],o[_0x5718b6(0xc0)]([[O],[exports[_0x5718b6(0xd5)]],[E],[exports['DesktopLiveShareController']]],this['_config'][_0x5718b6(0x155)])),o[_0x5718b6(0x117)](this[_0x5718b6(0xa4)],[[E]]);}[_0x82621(0xf8)](){var _0x3d3416=_0x82621;o['touchDependencies'](this[_0x3d3416(0xa4)],[[exports[_0x3d3416(0x123)]]]);}},T(exports[_0x82621(0x143)],_0x82621(0xfa),o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x82621(0x143)],_0x82621(0xbf),le),exports['UniverLiveSharePlugin']=ae([o[_0x82621(0xf4)](m[_0x82621(0x159)]),N(0x1,o[_0x82621(0xa7)](o['Injector'])),N(0x2,o[_0x82621(0x91)])],exports[_0x82621(0x143)]),exports[_0x82621(0xd6)]=A,exports[_0x82621(0xdc)]=O,exports['LiveShareStatus']=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x351d60=_0x5600;(function(_0x3202eb,_0x3b4896){var _0x4d4b73=_0x5600,_0x6683e5=_0x3202eb();while(!![]){try{var _0x42fb6=-parseInt(_0x4d4b73(0x1c7))/0x1+-parseInt(_0x4d4b73(0x17b))/0x2*(parseInt(_0x4d4b73(0x172))/0x3)+parseInt(_0x4d4b73(0x151))/0x4+-parseInt(_0x4d4b73(0x170))/0x5*(-parseInt(_0x4d4b73(0x152))/0x6)+parseInt(_0x4d4b73(0x1ac))/0x7+parseInt(_0x4d4b73(0x15f))/0x8*(-parseInt(_0x4d4b73(0x14a))/0x9)+parseInt(_0x4d4b73(0x1c6))/0xa;if(_0x42fb6===_0x3b4896)break;else _0x6683e5['push'](_0x6683e5['shift']());}catch(_0x4e6543){_0x6683e5['push'](_0x6683e5['shift']());}}}(_0x2b53,0x45de2));var q=Object['defineProperty'],z=(_0x3ed690,_0x5e1962,_0x5e939e)=>_0x5e1962 in _0x3ed690?q(_0x3ed690,_0x5e1962,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e939e}):_0x3ed690[_0x5e1962]=_0x5e939e,d=(_0x3b01dd,_0x2d321,_0x39f49a)=>z(_0x3b01dd,typeof _0x2d321!=_0x351d60(0x1cf)?_0x2d321+'':_0x2d321,_0x39f49a);import{CollaborationSessionService as _0xc42d8f,SessionStatus as _0x5e13a0,UniverCollaborationClientPlugin as _0x29bcfe}from'@univerjs-pro/collaboration-client';import{Disposable as _0x224e4c,toDisposable as _0x420ae4,Inject as _0x3abca3,IUniverInstanceService as _0xe2d3f4,Injector as _0x3d57c1,IConfigService as _0x5be387,ICommandService as _0x236614,RxDisposable as _0x603bd6,UniverInstanceType as _0x4d5efd,DisposableCollection as _0x4feaf1,CommandType as _0x17a80f,DependentOn as _0x2195b7,Plugin as _0x599154,merge as _0x75c717,registerDependencies as _0x5bf58d,mergeOverrideWithDependencies as _0x38e8e6,touchDependencies as _0x281800}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x561dc1,InsertSheetMutation as _0x4f4864}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x226f14,SetScrollOperation as _0x33d4ca}from'@univerjs/sheets-ui';import{useDependency as _0x247355,useObservable as _0x21ae04,IUIPartsService as _0x230a4f,BuiltInUIPart as _0x4ca9bf,connectInjector as _0x32a071}from'@univerjs/ui';import{jsx as _0x37aa2b,jsxs as _0x2c44bf,Fragment as _0x3db7a5}from'react/jsx-runtime';import{Dropdown as _0x5f162c,clsx as _0x53843f,Button as _0x2ee079}from'@univerjs/design';import{forwardRef as _0x313345,useRef as _0xc18a52,createElement as _0x57f48a,useState as _0x2f9e5a,useEffect as _0x28d068}from'react';import{CollaborationEvent as _0x45c8cc,parseProtocolChangeset as _0x522c8f}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x18832b,Subject as _0x25a16f}from'rxjs';import{takeUntil as _0x48f007,throttleTime as _0xee77ca}from'rxjs/operators';const Oe='live-share.config',T={};function _0x2b53(){var _0x326341=['_reporters','2SxGsvQ','onStarting','status$','replace','defineProperty','children','colorChannel1','Stop\x20presenting','values','setConfig','asObservable','idSuffix','concat','univer-mb-3\x20univer-w-full\x20univer-text-sm','length','LIVESHARE_TERMINATE','div','_init','_entities','OPERATION','_stopFollowing','getUnitId','ONLINE','executeCommand','NOT_FOLLOWING','_unitID','getConfig','attrs','trim','evenodd','presenting','set','_collabSessionService','_handleTerminate','data','pluginName','OFFLINE','_startLiveShareCoordinator','dispose$','url(#$1','NEW_CHANGESETS','Stop\x20following','sheet','FOLLOWING','univer-size-4','none','defs','_config','send','2149959GTbLeU','following','UNIVER_SHEET','text','http://www.w3.org/2000/svg','idle','_handleOperation','substring','subscribe','dispose','clear','prototype','getOwnPropertySymbols','assign','displayName','_collabSession','UNIVER_LIVE_SHARE_PLUGIN','end','getOwnPropertyDescriptor','_commandDisposable','getInitialStates','call','indexOf','stringify','get','_injector','7964290pSBBsb','289308leGLVn','_uiPartsService','_startFollowing','createInstance','toString','add','next','reverse','symbol','You\x27are\x20offline.','UniverIcon','LIVESHARE_REQUEST_HOST','delete','live-share-icon','onCommandExecuted','defIds','Present\x20this\x20document','find','then','unsubscribe','registerComponent','You\x27re\x20presenting\x20the\x20document','onRendered','from','stopPresenting','currentColor','apply','registerInitialStateReporter','sessionStatus$','_univerInstanceService','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','You\x27re\x20following\x20the\x20presenter','LIVESHARE_OPERATION','_beIdle','0\x200\x2017\x2017','Start\x20following','You\x27re\x20not\x20following\x20the\x20presenter','offline','params','has','getTypeOfUnitAdded$','startFollowing','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','forEach','HEADER_MENU','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','memberID','_presenter','string','_liveShareService','type','propertyIsEnumerable','2210751ZCrMEd','_stopPresenting','_sharedOperations','unitId','getMemberID','xlink:href','entries','151784zmJSDG','9678deKfPf','getLiveShareCoordinator','tryStartPresenting','_fetchOperations','_handleNewChangeSets','extend','includes','1em','getTypeOfUnitDisposed$','_status$','disposeWithMe','_commandService','operations','16cUcYQf','shouldShareOperation','Start','PRESENTING','LIVESHARE_FETCH_OPERATIONS','tag','complete','fill','_startPresenting','icon','_handleNewHost','stopFollowing','_status','mask','_configService','presenter','IDLE','1025keYqKN','init','1216239OkapoE','current','_handleOnline','_mountLiveShare','_handleOffline','pipe','not-following','path'];_0x2b53=function(){return _0x326341;};return _0x2b53();}class L extends _0x224e4c{constructor(){var _0x4b5c00=_0x351d60;super(...arguments),d(this,_0x4b5c00(0x14c),new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0xafd0a){var _0x57023e=_0x351d60;return this[_0x57023e(0x14c)][_0x57023e(0x1cc)](_0xafd0a),_0x420ae4(()=>this[_0x57023e(0x14c)][_0x57023e(0x1d3)](_0xafd0a));}[_0x351d60(0x1e2)](_0xd0edd9){var _0x3a510c=_0x351d60;return this[_0x3a510c(0x17a)][_0x3a510c(0x1cc)](_0xd0edd9),_0x420ae4(()=>this[_0x3a510c(0x17a)][_0x3a510c(0x1d3)](_0xd0edd9));}[_0x351d60(0x160)](_0x5cf08e){var _0x43ad2e=_0x351d60;return this['_sharedOperations'][_0x43ad2e(0x1ee)](_0x5cf08e);}[_0x351d60(0x1c0)](_0x26b8ae){var _0x486893=_0x351d60;return Array[_0x486893(0x1de)](this[_0x486893(0x17a)])[_0x486893(0x1f3)](_0x570949=>_0x570949(_0x26b8ae));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x119d3e,_0x5d4671,_0x40b9e2,_0x7bbc55)=>{var _0x19c7a6=_0x351d60;for(var _0x17b9b0=_0x7bbc55>0x1?void 0x0:_0x7bbc55?Ee(_0x5d4671,_0x40b9e2):_0x5d4671,_0xc30d1f=_0x119d3e[_0x19c7a6(0x189)]-0x1,_0x36f6ef;_0xc30d1f>=0x0;_0xc30d1f--)(_0x36f6ef=_0x119d3e[_0xc30d1f])&&(_0x17b9b0=_0x36f6ef(_0x17b9b0)||_0x17b9b0);return _0x17b9b0;},Ne=(_0x39afc8,_0x55ca59)=>(_0x4cfd48,_0x687522)=>_0x55ca59(_0x4cfd48,_0x687522,_0x39afc8);let m=class extends _0x224e4c{constructor(_0x494f05){var _0x15d423=_0x351d60;super(),this[_0x15d423(0x147)]=_0x494f05,this['_init']();}['_init'](){var _0x327e4c=_0x351d60;[_0x226f14['id'],_0x33d4ca['id'],_0x561dc1['id']][_0x327e4c(0x1f4)](_0x33d76e=>{var _0x21a1e7=_0x327e4c;this[_0x21a1e7(0x15c)](this['_liveShareService']['registerSharedOperation'](_0x33d76e));});}};m=we([Ne(0x0,_0x3abca3(L))],m);var c=function(){var _0x1ebf06=_0x351d60;return c=Object[_0x1ebf06(0x1b9)]||function(_0x238969){var _0x432371=_0x1ebf06;for(var _0x372cff,_0x36148d=0x1,_0x55fcf4=arguments[_0x432371(0x189)];_0x36148d<_0x55fcf4;_0x36148d++){_0x372cff=arguments[_0x36148d];for(var _0x69aaa7 in _0x372cff)Object[_0x432371(0x1b7)]['hasOwnProperty'][_0x432371(0x1c1)](_0x372cff,_0x69aaa7)&&(_0x238969[_0x69aaa7]=_0x372cff[_0x69aaa7]);}return _0x238969;},c[_0x1ebf06(0x1e1)](this,arguments);},Ce=function(_0x4a6f4a,_0x21a8da){var _0xed7f5d=_0x351d60,_0x5309a1={};for(var _0x20d14b in _0x4a6f4a)Object['prototype']['hasOwnProperty'][_0xed7f5d(0x1c1)](_0x4a6f4a,_0x20d14b)&&_0x21a8da[_0xed7f5d(0x1c2)](_0x20d14b)<0x0&&(_0x5309a1[_0x20d14b]=_0x4a6f4a[_0x20d14b]);if(_0x4a6f4a!=null&&typeof Object[_0xed7f5d(0x1b8)]=='function'){for(var _0x3ea593=0x0,_0x20d14b=Object['getOwnPropertySymbols'](_0x4a6f4a);_0x3ea593<_0x20d14b['length'];_0x3ea593++)_0x21a8da['indexOf'](_0x20d14b[_0x3ea593])<0x0&&Object[_0xed7f5d(0x1b7)][_0xed7f5d(0x149)]['call'](_0x4a6f4a,_0x20d14b[_0x3ea593])&&(_0x5309a1[_0x20d14b[_0x3ea593]]=_0x4a6f4a[_0x20d14b[_0x3ea593]]);}return _0x5309a1;},W=_0x313345(function(_0x4826df,_0x2e87bf){var _0x2f29cb=_0x351d60,_0x42a1bf=_0x4826df['icon'],_0xa01011=_0x4826df['id'],_0x4742c9=_0x4826df['className'],_0x234a25=_0x4826df['extend'],_0x237405=Ce(_0x4826df,[_0x2f29cb(0x168),'id','className',_0x2f29cb(0x157)]),_0x3cd53f='univerjs-icon\x20univerjs-icon-'[_0x2f29cb(0x187)](_0xa01011,'\x20')[_0x2f29cb(0x187)](_0x4742c9||'')[_0x2f29cb(0x197)](),_0x1f267d=_0xc18a52('_'['concat'](Le()));return Y(_0x42a1bf,''['concat'](_0xa01011),{'defIds':_0x42a1bf['defIds'],'idSuffix':_0x1f267d[_0x2f29cb(0x173)]},c({'ref':_0x2e87bf,'className':_0x3cd53f},_0x237405),_0x234a25);});function Y(_0x572c0e,_0x16a8a3,_0x87fd89,_0x802cf8,_0x1dd164){var _0x21626b=_0x351d60;return _0x57f48a(_0x572c0e[_0x21626b(0x164)],c(c({'key':_0x16a8a3},De(_0x572c0e,_0x87fd89,_0x1dd164)),_0x802cf8),(xe(_0x572c0e,_0x87fd89)['children']||[])[_0x21626b(0x1f3)](function(_0x2adf0b,_0x4d0224){var _0x843ce8=_0x21626b;return Y(_0x2adf0b,''['concat'](_0x16a8a3,'-')[_0x843ce8(0x187)](_0x572c0e['tag'],'-')[_0x843ce8(0x187)](_0x4d0224),_0x87fd89,void 0x0,_0x1dd164);}));}function De(_0x27080c,_0x3da072,_0xca05fe){var _0x536e7b=_0x351d60,_0xf07a0=c({},_0x27080c[_0x536e7b(0x196)]);_0xca05fe!=null&&_0xca05fe[_0x536e7b(0x181)]&&_0xf07a0[_0x536e7b(0x166)]===_0x536e7b(0x181)&&(_0xf07a0['fill']=_0xca05fe[_0x536e7b(0x181)]),_0x27080c[_0x536e7b(0x164)]==='mask'&&_0xf07a0['id']&&(_0xf07a0['id']=_0xf07a0['id']+_0x3da072[_0x536e7b(0x186)]),Object[_0x536e7b(0x150)](_0xf07a0)['forEach'](function(_0x34a393){var _0x40da90=_0x536e7b,_0x52891f=_0x34a393[0x0],_0x416185=_0x34a393[0x1];_0x52891f===_0x40da90(0x16c)&&typeof _0x416185=='string'&&(_0xf07a0[_0x52891f]=_0x416185[_0x40da90(0x17e)](/url\(#(.*)\)/,_0x40da90(0x1a2)['concat'](_0x3da072[_0x40da90(0x186)],')')));});var _0x4780fb=_0x3da072[_0x536e7b(0x1d6)];return!_0x4780fb||_0x4780fb[_0x536e7b(0x189)]===0x0||(_0x27080c[_0x536e7b(0x164)]==='use'&&_0xf07a0[_0x536e7b(0x14f)]&&(_0xf07a0['xlink:href']=_0xf07a0[_0x536e7b(0x14f)]+_0x3da072[_0x536e7b(0x186)]),Object['entries'](_0xf07a0)[_0x536e7b(0x1f4)](function(_0x3c7de2){var _0x1ae81b=_0x536e7b,_0x22beaa=_0x3c7de2[0x0],_0x3fbfe6=_0x3c7de2[0x1];typeof _0x3fbfe6==_0x1ae81b(0x146)&&(_0xf07a0[_0x22beaa]=_0x3fbfe6[_0x1ae81b(0x17e)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3da072['idSuffix'],')')));})),_0xf07a0;}function xe(_0xa9fdea,_0x1d0c3e){var _0x36192b=_0x351d60,_0x3616a9,_0x32ed88=_0x1d0c3e[_0x36192b(0x1d6)];return!_0x32ed88||_0x32ed88[_0x36192b(0x189)]===0x0?_0xa9fdea:_0xa9fdea[_0x36192b(0x164)]===_0x36192b(0x1a9)&&(!((_0x3616a9=_0xa9fdea[_0x36192b(0x180)])===null||_0x3616a9===void 0x0)&&_0x3616a9[_0x36192b(0x189)])?c(c({},_0xa9fdea),{'children':_0xa9fdea[_0x36192b(0x180)]['map'](function(_0x32a0bd){var _0x13b65f=_0x36192b;return typeof _0x32a0bd[_0x13b65f(0x196)]['id']=='string'&&_0x32ed88&&_0x32ed88[_0x13b65f(0x158)](_0x32a0bd['attrs']['id'])?c(c({},_0x32a0bd),{'attrs':c(c({},_0x32a0bd['attrs']),{'id':_0x32a0bd[_0x13b65f(0x196)]['id']+_0x1d0c3e[_0x13b65f(0x186)]})}):_0x32a0bd;})}):_0xa9fdea;}function Le(){var _0x11fb04=_0x351d60;return Math['random']()[_0x11fb04(0x1cb)](0x24)[_0x11fb04(0x1b3)](0x2,0x8);}W[_0x351d60(0x1ba)]=_0x351d60(0x1d1);var ye={'tag':'svg','attrs':{'xmlns':_0x351d60(0x1b0),'fill':_0x351d60(0x1a8),'viewBox':_0x351d60(0x1e9),'width':_0x351d60(0x159),'height':_0x351d60(0x159)},'children':[{'tag':_0x351d60(0x179),'attrs':{'fill':_0x351d60(0x1e0),'d':_0x351d60(0x1f1)}},{'tag':_0x351d60(0x179),'attrs':{'fill':_0x351d60(0x1e0),'d':_0x351d60(0x1e5),'fillRule':'evenodd','clipRule':_0x351d60(0x198)}}]},B=_0x313345(function(_0x1cebe0,_0x2c6fb5){var _0xaa98f8=_0x351d60;return _0x57f48a(W,Object['assign']({},_0x1cebe0,{'id':_0xaa98f8(0x1d4),'ref':_0x2c6fb5,'icon':ye}));});B[_0x351d60(0x1ba)]='LiveShareIcon';var Re=Object[_0x351d60(0x1be)],Z=(_0x45c92f,_0x354020,_0x4af8f6,_0x5cb222)=>{var _0x2d3a65=_0x351d60;for(var _0xedb37b=_0x5cb222>0x1?void 0x0:_0x5cb222?Re(_0x354020,_0x4af8f6):_0x354020,_0x9a6e72=_0x45c92f[_0x2d3a65(0x189)]-0x1,_0x2d0cc6;_0x9a6e72>=0x0;_0x9a6e72--)(_0x2d0cc6=_0x45c92f[_0x9a6e72])&&(_0xedb37b=_0x2d0cc6(_0xedb37b)||_0xedb37b);return _0xedb37b;},f=(_0x32c8ab,_0x21d72a)=>(_0x3dd1b2,_0xdf9fff)=>_0x21d72a(_0x3dd1b2,_0xdf9fff,_0x32c8ab);let I=class extends _0x603bd6{constructor(_0x1bc6c3,_0x2fbdcd,_0x10b65b){var _0x593a92=_0x351d60;super(),d(this,_0x593a92(0x18d),new Map()),(this[_0x593a92(0x1e4)]=_0x1bc6c3,this[_0x593a92(0x1c5)]=_0x2fbdcd,this[_0x593a92(0x19b)]=_0x10b65b,this['_init']());}async['getLiveShareCoordinator'](_0x41649b){var _0x42114a=_0x351d60;return this['_entities'][_0x42114a(0x1ee)](_0x41649b)||await this[_0x42114a(0x1a0)](_0x41649b),this[_0x42114a(0x18d)][_0x42114a(0x1c4)](_0x41649b);}[_0x351d60(0x18c)](){var _0x332f24=_0x351d60;this[_0x332f24(0x1e4)][_0x332f24(0x1ef)](_0x4d5efd[_0x332f24(0x1ae)])[_0x332f24(0x177)](_0x48f007(this[_0x332f24(0x1a1)]))[_0x332f24(0x1b4)](async _0x3c9659=>{var _0x2d9bdb=_0x332f24;const _0x40d245=_0x3c9659[_0x2d9bdb(0x190)]();this[_0x2d9bdb(0x18d)][_0x2d9bdb(0x1ee)](_0x40d245)||this[_0x2d9bdb(0x1a0)](_0x40d245);}),this[_0x332f24(0x1e4)][_0x332f24(0x15a)](_0x4d5efd[_0x332f24(0x1ae)])[_0x332f24(0x177)](_0x48f007(this[_0x332f24(0x1a1)]))['subscribe'](_0x16b09c=>{var _0x2d5564=_0x332f24;const _0x3922af=_0x16b09c[_0x2d5564(0x190)](),_0x3b7812=this['_entities'][_0x2d5564(0x1c4)](_0x3922af);_0x3b7812==null||_0x3b7812[_0x2d5564(0x1b5)]();});}async['_startLiveShareCoordinator'](_0x5cdf27){var _0x38f116=_0x351d60;const _0x5c2919=await this[_0x38f116(0x19b)]['requireSession'](_0x5cdf27),_0x4b671f=this[_0x38f116(0x1c5)][_0x38f116(0x1ca)](C,_0x5cdf27,_0x5c2919);return _0x4b671f['init'](),this[_0x38f116(0x18d)][_0x38f116(0x19a)](_0x5cdf27,_0x4b671f),_0x4b671f;}};I=Z([f(0x0,_0xe2d3f4),f(0x1,_0x3abca3(_0x3d57c1)),f(0x2,_0x3abca3(_0xc42d8f))],I);var h=(_0x15ab43=>(_0x15ab43[_0x351d60(0x19f)]=_0x351d60(0x1ec),_0x15ab43['IDLE']='idle',_0x15ab43[_0x351d60(0x1a6)]=_0x351d60(0x1ad),_0x15ab43['NOT_FOLLOWING']=_0x351d60(0x178),_0x15ab43[_0x351d60(0x162)]=_0x351d60(0x199),_0x15ab43))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x603bd6{constructor(_0x42a68e,_0x33c978,_0x427774,_0x546007,_0x51a485){var _0xb6f8d7=_0x351d60;super(),d(this,_0xb6f8d7(0x15b),new _0x18832b(_0xb6f8d7(0x1b1))),d(this,'status$',this[_0xb6f8d7(0x15b)][_0xb6f8d7(0x185)]()),d(this,_0xb6f8d7(0x18c),!0x1),d(this,_0xb6f8d7(0x1bf),null),d(this,_0xb6f8d7(0x145),null),(this['_unitID']=_0x42a68e,this[_0xb6f8d7(0x1bb)]=_0x33c978,this[_0xb6f8d7(0x16d)]=_0x427774,this[_0xb6f8d7(0x147)]=_0x546007,this[_0xb6f8d7(0x15d)]=_0x51a485);}get[_0x351d60(0x16b)](){return this['_status$']['getValue']();}[_0x351d60(0x1b5)](){var _0x5ba52f=_0x351d60,_0x35157a;(_0x35157a=this[_0x5ba52f(0x1bf)])==null||_0x35157a[_0x5ba52f(0x1b5)](),this[_0x5ba52f(0x15b)][_0x5ba52f(0x1cd)](_0x5ba52f(0x1b1)),this['_status$'][_0x5ba52f(0x165)]();}[_0x351d60(0x171)](){var _0x50ed1c=_0x351d60;this[_0x50ed1c(0x18c)]||(this[_0x50ed1c(0x18c)]=!0x0,this[_0x50ed1c(0x1bb)][_0x50ed1c(0x1e3)][_0x50ed1c(0x177)](_0x48f007(this['dispose$']))[_0x50ed1c(0x1b4)](_0xc74f39=>{var _0x49d599=_0x50ed1c;switch(_0xc74f39){case _0x5e13a0[_0x49d599(0x19f)]:this[_0x49d599(0x176)]();break;case _0x5e13a0[_0x49d599(0x191)]:this[_0x49d599(0x174)]();break;}}),this['_collabSession']['event$']['pipe'](_0x48f007(this[_0x50ed1c(0x1a1)]))[_0x50ed1c(0x1b4)](_0x20d08e=>{var _0x3ec6e9=_0x50ed1c;const {eventID:_0x4395c0}=_0x20d08e;switch(_0x4395c0){case _0x45c8cc['LIVESHARE_NEW_HOST']:this[_0x3ec6e9(0x169)](_0x20d08e);break;case _0x45c8cc[_0x3ec6e9(0x1e7)]:this[_0x3ec6e9(0x1b2)](_0x20d08e);break;case _0x45c8cc[_0x3ec6e9(0x18a)]:this['_handleTerminate']();break;case _0x45c8cc[_0x3ec6e9(0x1a3)]:this['_handleNewChangeSets'](_0x20d08e);break;}}));}['tryStartPresenting'](){var _0x31f6a8=_0x351d60;this[_0x31f6a8(0x1bb)][_0x31f6a8(0x1ab)]({'eventID':_0x45c8cc[_0x31f6a8(0x1d2)],'data':{'unitID':this[_0x31f6a8(0x194)],'userID':this[_0x31f6a8(0x1bb)][_0x31f6a8(0x14e)]()}},this[_0x31f6a8(0x194)]);}[_0x351d60(0x1df)](){var _0x32b3ed=_0x351d60;this[_0x32b3ed(0x16b)]==='presenting'&&(this[_0x32b3ed(0x15b)]['next'](_0x32b3ed(0x1b1)),this[_0x32b3ed(0x1bb)][_0x32b3ed(0x1ab)]({'eventID':_0x45c8cc[_0x32b3ed(0x18a)],'data':{'unitID':this[_0x32b3ed(0x194)]}},this[_0x32b3ed(0x194)]));}[_0x351d60(0x1f0)](){var _0x19bddf=_0x351d60;this[_0x19bddf(0x16b)]==='not-following'&&(this['_status$']['next'](_0x19bddf(0x1ad)),this[_0x19bddf(0x1c9)]());}[_0x351d60(0x16a)](){var _0x974b71=_0x351d60;this['_status']===_0x974b71(0x1ad)&&this[_0x974b71(0x18f)]();}['_handleNewHost'](_0x1deae4){var _0x11b954=_0x351d60;const {presenter:_0xcc3c99}=_0x1deae4[_0x11b954(0x19d)],_0x3e0b26=this['_collabSession'][_0x11b954(0x14e)]();this['_presenter']=_0xcc3c99,_0xcc3c99===_0x3e0b26?(this[_0x11b954(0x18f)](),this[_0x11b954(0x167)]()):this['_status']!=='not-following'&&(this[_0x11b954(0x14b)](),this[_0x11b954(0x1c9)]());}['_fetchOperations'](){var _0x26a02e=_0x351d60;const _0x100712={'eventID':_0x45c8cc[_0x26a02e(0x163)]};this['_collabSession']['send'](_0x100712,this[_0x26a02e(0x194)]);}[_0x351d60(0x19c)](){var _0x562ca0=_0x351d60;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x562ca0(0x1e8)]();}[_0x351d60(0x156)](_0x51b729){var _0x30914d=_0x351d60;if(this[_0x30914d(0x16b)]===_0x30914d(0x1ad)&&this[_0x30914d(0x145)]===_0x51b729[_0x30914d(0x19d)][_0x30914d(0x144)]){const _0x39ffc2=_0x522c8f(_0x51b729[_0x30914d(0x19d)])['mutations'][_0x30914d(0x1ce)]()[_0x30914d(0x1d8)](_0x13a316=>_0x13a316['id']===_0x4f4864['id']);if(_0x39ffc2){const _0x28520b=_0x39ffc2[_0x30914d(0x1ed)][_0x30914d(0x14d)],_0x5057a2=_0x39ffc2[_0x30914d(0x1ed)][_0x30914d(0x1a5)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x561dc1['id'],{'unitId':_0x28520b,'subUnitId':_0x5057a2},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x159763=_0x351d60;this[_0x159763(0x15b)][_0x159763(0x1cd)](_0x159763(0x199));const _0x29bbda=new Map(),_0x382444=this['_commandDisposable']=new _0x4feaf1();_0x382444[_0x159763(0x1cc)](_0x420ae4(()=>{var _0x445305=_0x159763;_0x29bbda[_0x445305(0x1f4)](_0x1d8de1=>_0x1d8de1[_0x445305(0x165)]()),_0x29bbda[_0x445305(0x1b6)]();})),_0x382444['add'](this[_0x159763(0x15d)][_0x159763(0x1d5)](_0x58133c=>{var _0xd2a746=_0x159763,_0x1c3d76;if(_0x58133c['type']!==_0x17a80f[_0xd2a746(0x18e)]||!this[_0xd2a746(0x147)][_0xd2a746(0x160)](_0x58133c['id']))return;const {id:_0x5e9354}=_0x58133c;let _0x4cf3be;_0x29bbda[_0xd2a746(0x1ee)](_0x5e9354)?_0x4cf3be=_0x29bbda['get'](_0x5e9354):(_0x4cf3be=new _0x25a16f(),_0x29bbda['set'](_0x5e9354,_0x4cf3be),_0x4cf3be[_0xd2a746(0x177)](_0xee77ca((_0x1c3d76=this[_0xd2a746(0x16d)][_0xd2a746(0x195)](Pe))!=null?_0x1c3d76:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4f9cbd=>{var _0x53ca8=_0xd2a746;this[_0x53ca8(0x1bb)][_0x53ca8(0x1ab)]({'eventID':_0x45c8cc[_0x53ca8(0x1e7)],'data':{'unitID':this[_0x53ca8(0x194)],'operations':{[_0x4f9cbd['id']]:{'id':_0x4f9cbd['id'],'params':JSON[_0x53ca8(0x1c3)](_0x4f9cbd[_0x53ca8(0x1ed)])}}}},this['_unitID']);})),_0x4cf3be[_0xd2a746(0x1cd)](_0x58133c);})),this[_0x159763(0x147)][_0x159763(0x1c0)](this[_0x159763(0x194)])['forEach'](_0x1404fd=>this[_0x159763(0x1bb)][_0x159763(0x1ab)]({'eventID':_0x45c8cc[_0x159763(0x1e7)],'data':{'unitID':this[_0x159763(0x194)],'operations':{[_0x1404fd['id']]:{'id':_0x1404fd['id'],'params':JSON[_0x159763(0x1c3)](_0x1404fd[_0x159763(0x1ed)])}}}},this[_0x159763(0x194)]));}['_stopPresenting'](){var _0x2c37d9=_0x351d60,_0x4ba27b;this['_status$'][_0x2c37d9(0x1cd)]('idle'),(_0x4ba27b=this['_commandDisposable'])==null||_0x4ba27b[_0x2c37d9(0x1b5)](),this[_0x2c37d9(0x1bf)]=null;}[_0x351d60(0x1c9)](){var _0x4b7293=_0x351d60,_0x3ea8b3;(_0x3ea8b3=this[_0x4b7293(0x1bf)])==null||_0x3ea8b3[_0x4b7293(0x1b5)](),this[_0x4b7293(0x15b)][_0x4b7293(0x1cd)](_0x4b7293(0x1ad));}[_0x351d60(0x1e8)](){var _0x4f7f0f=_0x351d60,_0x502f12;this[_0x4f7f0f(0x15b)][_0x4f7f0f(0x1cd)]('idle'),(_0x502f12=this[_0x4f7f0f(0x1bf)])==null||_0x502f12[_0x4f7f0f(0x1b5)](),this[_0x4f7f0f(0x1bf)]=null;}[_0x351d60(0x18f)](){var _0x3a27e8=_0x351d60,_0x14767d;this[_0x3a27e8(0x15b)][_0x3a27e8(0x1cd)]('not-following'),(_0x14767d=this[_0x3a27e8(0x1bf)])==null||_0x14767d[_0x3a27e8(0x1b5)]();}[_0x351d60(0x1b2)](_0x3d012e){var _0x1e9453=_0x351d60;if([_0x1e9453(0x199),_0x1e9453(0x178),_0x1e9453(0x1ec)][_0x1e9453(0x158)](this['_status'])||!_0x3d012e[_0x1e9453(0x19d)]['presenter']||_0x3d012e[_0x1e9453(0x19d)][_0x1e9453(0x16e)]===this[_0x1e9453(0x1bb)][_0x1e9453(0x14e)]())return;this[_0x1e9453(0x16b)]==='idle'&&this[_0x1e9453(0x1c9)]();const _0x2b2d0b=_0x3d012e['data'][_0x1e9453(0x15e)];Object[_0x1e9453(0x183)](_0x2b2d0b)[_0x1e9453(0x1f4)](_0x49c5d6=>{var _0x30eea5=_0x1e9453;this[_0x30eea5(0x15d)][_0x30eea5(0x192)](_0x49c5d6['id'],_0x49c5d6[_0x30eea5(0x1ed)]?JSON['parse'](_0x49c5d6[_0x30eea5(0x1ed)]):null,{'fromCollab':!0x0});});}[_0x351d60(0x176)](){var _0x1c449a=_0x351d60,_0x1e9e50;this['_status$']['next'](_0x1c449a(0x1ec)),(_0x1e9e50=this[_0x1c449a(0x1bf)])==null||_0x1e9e50['dispose']();}['_handleOnline'](){var _0x5d2211=_0x351d60;this[_0x5d2211(0x15b)][_0x5d2211(0x1cd)](_0x5d2211(0x1b1)),this[_0x5d2211(0x155)]();}};C=Z([f(0x2,_0x5be387),f(0x3,_0x3abca3(L)),f(0x4,_0x236614)],C);function Te(){var _0x5a3bfb=_0x351d60;const _0x1ccd49=_0x247355(I),_0x21c711=_0x247355(_0xe2d3f4),_0x3d57c2=_0x21ae04(()=>_0x21c711['getCurrentTypeOfUnit$'](_0x4d5efd[_0x5a3bfb(0x1ae)]),void 0x0,!0x1,[]),[_0x5af5b0,_0xcc65c3]=_0x2f9e5a(null),[_0xa7b908,_0x1c86a6]=_0x2f9e5a(h[_0x5a3bfb(0x16f)]),_0x2663b3=_0xc18a52(null);return _0x28d068(()=>(_0x3d57c2&&_0x1ccd49[_0x5a3bfb(0x153)](_0x3d57c2[_0x5a3bfb(0x190)]())[_0x5a3bfb(0x1d9)](_0x3e7446=>{var _0x29a76d=_0x5a3bfb;_0xcc65c3(_0x3e7446),_0x2663b3['current']=_0x3e7446[_0x29a76d(0x17d)]['subscribe'](_0x3d6218=>{_0x1c86a6(_0x3d6218);});}),()=>{var _0x33543b=_0x5a3bfb,_0xe84aff;(_0xe84aff=_0x2663b3['current'])==null||_0xe84aff[_0x33543b(0x1da)](),_0x2663b3['current']=null;}),[_0x3d57c2,_0x1ccd49]),_0x5af5b0?_0x37aa2b(_0x5f162c,{'align':_0x5a3bfb(0x1bd),'disabled':_0xa7b908===h['OFFLINE'],'className':_0x5a3bfb(0x143),'overlay':_0x37aa2b($e,{'status':_0xa7b908,'coordinator':_0x5af5b0}),'children':_0x37aa2b('button',{'className':_0x53843f(_0x5a3bfb(0x1f2),{'univer-cursor-not-allowed':_0xa7b908===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xa7b908!==h[_0x5a3bfb(0x19f)]}),'type':'button','children':_0x37aa2b(B,{'className':_0x5a3bfb(0x1a7)})})}):null;}function $e(_0x3d7363){var _0x542f01=_0x351d60;const {status:_0x58664e,coordinator:_0x5c4fe9}=_0x3d7363;switch(_0x58664e){case h[_0x542f01(0x16f)]:return _0x37aa2b(Fe,{'coordinator':_0x5c4fe9});case h[_0x542f01(0x1a6)]:return _0x37aa2b(He,{'coordinator':_0x5c4fe9});case h[_0x542f01(0x193)]:return _0x37aa2b(je,{'coordinator':_0x5c4fe9});case h['OFFLINE']:return _0x37aa2b(Ve,{});case h[_0x542f01(0x162)]:return _0x37aa2b(Ue,{'coordinator':_0x5c4fe9});default:return null;}}function Fe(_0x1926d9){var _0x4452c2=_0x351d60;const {coordinator:_0x5531de}=_0x1926d9;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x4452c2(0x18b),{'className':_0x4452c2(0x188),'children':_0x4452c2(0x1d7)}),_0x37aa2b(_0x2ee079,{'onClick':()=>_0x5531de[_0x4452c2(0x154)](),'children':_0x4452c2(0x161)})]});}function He(_0x2bcad2){var _0x4fac49=_0x351d60;const {coordinator:_0x17a3ee}=_0x2bcad2;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x4fac49(0x18b),{'className':_0x4fac49(0x188),'children':_0x4fac49(0x1e6)}),_0x37aa2b(_0x2ee079,{'onClick':()=>_0x17a3ee[_0x4fac49(0x16a)](),'children':_0x4fac49(0x1a4)})]});}function je(_0x29af5e){var _0x48fca9=_0x351d60;const {coordinator:_0x726358}=_0x29af5e;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x48fca9(0x18b),{'className':_0x48fca9(0x188),'children':_0x48fca9(0x1eb)}),_0x37aa2b(_0x2ee079,{'variant':_0x48fca9(0x1af),'onClick':()=>_0x726358[_0x48fca9(0x1f0)](),'children':_0x48fca9(0x1ea)})]});}function Ue(_0x1f2b97){var _0x5ac823=_0x351d60;const {coordinator:_0x1cb7d0}=_0x1f2b97;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x5ac823(0x18b),{'className':_0x5ac823(0x188),'children':_0x5ac823(0x1dc)}),_0x37aa2b(_0x2ee079,{'variant':'default','onClick':()=>_0x1cb7d0['stopPresenting'](),'children':_0x5ac823(0x182)})]});}function Ve(){var _0x538e5d=_0x351d60;return _0x37aa2b(_0x3db7a5,{'children':_0x538e5d(0x1d0)});}var Me=Object[_0x351d60(0x1be)],ke=(_0x34df80,_0x7604c8,_0x400b67,_0x25bab7)=>{var _0xb254b6=_0x351d60;for(var _0x2f8102=_0x25bab7>0x1?void 0x0:_0x25bab7?Me(_0x7604c8,_0x400b67):_0x7604c8,_0x4175f3=_0x34df80[_0xb254b6(0x189)]-0x1,_0x344cb8;_0x4175f3>=0x0;_0x4175f3--)(_0x344cb8=_0x34df80[_0x4175f3])&&(_0x2f8102=_0x344cb8(_0x2f8102)||_0x2f8102);return _0x2f8102;},$=(_0x39b57a,_0x74a61c)=>(_0x424acd,_0x52eb3c)=>_0x74a61c(_0x424acd,_0x52eb3c,_0x39b57a);let b=class extends _0x224e4c{constructor(_0x55a9d2,_0x34b986){var _0x559de6=_0x351d60;super(),this[_0x559de6(0x1c5)]=_0x55a9d2,this[_0x559de6(0x1c8)]=_0x34b986,this[_0x559de6(0x175)]();}[_0x351d60(0x175)](){var _0x151a72=_0x351d60;this['disposeWithMe'](this[_0x151a72(0x1c8)][_0x151a72(0x1db)](_0x4ca9bf[_0x151a72(0x1f5)],()=>_0x32a071(Te,this[_0x151a72(0x1c5)])));}};b=ke([$(0x0,_0x3abca3(_0x3d57c1)),$(0x1,_0x230a4f)],b);var Ge=Object[_0x351d60(0x17f)],We=Object[_0x351d60(0x1be)],Ye=(_0xe8d861,_0x59cacd,_0x54c48c)=>_0x59cacd in _0xe8d861?Ge(_0xe8d861,_0x59cacd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54c48c}):_0xe8d861[_0x59cacd]=_0x54c48c,Be=(_0x171c52,_0x2780dd,_0x445de9,_0x30dacd)=>{var _0x4891ce=_0x351d60;for(var _0x1797d1=_0x30dacd>0x1?void 0x0:_0x30dacd?We(_0x2780dd,_0x445de9):_0x2780dd,_0x176d02=_0x171c52[_0x4891ce(0x189)]-0x1,_0x12d568;_0x176d02>=0x0;_0x176d02--)(_0x12d568=_0x171c52[_0x176d02])&&(_0x1797d1=_0x12d568(_0x1797d1)||_0x1797d1);return _0x1797d1;},F=(_0xd81a3a,_0x198ee9)=>(_0x4afe72,_0x1c5b78)=>_0x198ee9(_0x4afe72,_0x1c5b78,_0xd81a3a),J=(_0x4d826a,_0x4b0cf0,_0x31876f)=>Ye(_0x4d826a,typeof _0x4b0cf0!=_0x351d60(0x1cf)?_0x4b0cf0+'':_0x4b0cf0,_0x31876f);const Ze=_0x351d60(0x1bc);let O=class extends _0x599154{constructor(_0x29abb2=T,_0x263e40,_0x2732a8){var _0x3e7af6=_0x351d60;super(),this[_0x3e7af6(0x1aa)]=_0x29abb2,this[_0x3e7af6(0x1c5)]=_0x263e40,this[_0x3e7af6(0x16d)]=_0x2732a8;const {..._0x5771c1}=_0x75c717({},T,this[_0x3e7af6(0x1aa)]);this[_0x3e7af6(0x16d)][_0x3e7af6(0x184)](Oe,_0x5771c1);}[_0x351d60(0x17c)](){var _0x3b2fb7=_0x351d60;_0x5bf58d(this['_injector'],_0x38e8e6([[L],[I],[m],[b]],this['_config']['override'])),_0x281800(this[_0x3b2fb7(0x1c5)],[[m]]);}[_0x351d60(0x1dd)](){var _0x227f11=_0x351d60;_0x281800(this[_0x227f11(0x1c5)],[[b]]);}};function _0x5600(_0x49bd8d,_0x394706){var _0x2b53ef=_0x2b53();return _0x5600=function(_0x560029,_0x471ecd){_0x560029=_0x560029-0x143;var _0x37baa4=_0x2b53ef[_0x560029];return _0x37baa4;},_0x5600(_0x49bd8d,_0x394706);}J(O,_0x351d60(0x148),_0x4d5efd['UNIVER_UNKNOWN']),J(O,_0x351d60(0x19e),Ze),O=Be([_0x2195b7(_0x29bcfe),F(0x1,_0x3abca3(_0x3d57c1)),F(0x2,_0x5be387)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x1d8b53=_0x4a93;(function(_0x1c412a,_0x4721e1){var _0x48051f=_0x4a93,_0x5ebf7c=_0x1c412a();while(!![]){try{var _0x2cc816=-parseInt(_0x48051f(0x1e8))/0x1+-parseInt(_0x48051f(0x1d5))/0x2*(parseInt(_0x48051f(0x204))/0x3)+parseInt(_0x48051f(0x20d))/0x4+parseInt(_0x48051f(0x1c4))/0x5*(-parseInt(_0x48051f(0x220))/0x6)+parseInt(_0x48051f(0x21c))/0x7+-parseInt(_0x48051f(0x1a9))/0x8+parseInt(_0x48051f(0x1ef))/0x9;if(_0x2cc816===_0x4721e1)break;else _0x5ebf7c['push'](_0x5ebf7c['shift']());}catch(_0x47f457){_0x5ebf7c['push'](_0x5ebf7c['shift']());}}}(_0x3bc7,0xb2c5d));var q=Object[_0x1d8b53(0x1be)],z=(_0x1b8315,_0x9c876a,_0x1ad484)=>_0x9c876a in _0x1b8315?q(_0x1b8315,_0x9c876a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ad484}):_0x1b8315[_0x9c876a]=_0x1ad484,d=(_0xe4ee69,_0x20184e,_0x1dcd7d)=>z(_0xe4ee69,typeof _0x20184e!=_0x1d8b53(0x1a7)?_0x20184e+'':_0x20184e,_0x1dcd7d);import{CollaborationSessionService as _0x4cef2c,SessionStatus as _0x5cfa23,UniverCollaborationClientPlugin as _0x4073ea}from'@univerjs-pro/collaboration-client';import{Disposable as _0xea3d2e,toDisposable as _0x172916,Inject as _0x239a44,IUniverInstanceService as _0xe4611b,Injector as _0x192d3b,IConfigService as _0x558741,ICommandService as _0x584762,RxDisposable as _0x260b45,UniverInstanceType as _0x33fb10,DisposableCollection as _0x211483,CommandType as _0x5e8cc6,DependentOn as _0x98ddff,Plugin as _0x587f09,merge as _0xa177d7,registerDependencies as _0x174d4e,mergeOverrideWithDependencies as _0x27a061,touchDependencies as _0x49be97}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x286b47,InsertSheetMutation as _0x331837}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x158b6e,SetScrollOperation as _0x4d2280}from'@univerjs/sheets-ui';import{useDependency as _0x14ae59,useObservable as _0xe07f56,IUIPartsService as _0x241906,BuiltInUIPart as _0x1217a7,connectInjector as _0x5143ac}from'@univerjs/ui';import{jsx as _0x2f0961,jsxs as _0x2dbab2,Fragment as _0x12f368}from'react/jsx-runtime';import{Dropdown as _0x46ea1d,clsx as _0x39a291,Button as _0x226687}from'@univerjs/design';import{forwardRef as _0x15ec25,useRef as _0x3ecb29,createElement as _0x16e93a,useState as _0x48688c,useEffect as _0x22643b}from'react';import{CollaborationEvent as _0x30c7bc,parseProtocolChangeset as _0x1495b0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3cc28c,Subject as _0x4fab24}from'rxjs';import{takeUntil as _0x1ced03,throttleTime as _0x32385e}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0xea3d2e{constructor(){var _0x258f43=_0x1d8b53;super(...arguments),d(this,_0x258f43(0x217),new Set()),d(this,_0x258f43(0x1ed),new Set());}[_0x1d8b53(0x21d)](_0x4cbe8a){var _0x4c88d8=_0x1d8b53;return this['_sharedOperations']['add'](_0x4cbe8a),_0x172916(()=>this[_0x4c88d8(0x217)][_0x4c88d8(0x20e)](_0x4cbe8a));}[_0x1d8b53(0x1bf)](_0xceda9c){var _0x27f845=_0x1d8b53;return this[_0x27f845(0x1ed)][_0x27f845(0x1c1)](_0xceda9c),_0x172916(()=>this[_0x27f845(0x1ed)][_0x27f845(0x20e)](_0xceda9c));}['shouldShareOperation'](_0x3c2446){var _0x489af5=_0x1d8b53;return this[_0x489af5(0x217)][_0x489af5(0x19b)](_0x3c2446);}['getInitialStates'](_0x185644){var _0x5662c7=_0x1d8b53;return Array[_0x5662c7(0x174)](this['_reporters'])[_0x5662c7(0x1b8)](_0x3c81ab=>_0x3c81ab(_0x185644));}}var Ee=Object[_0x1d8b53(0x1e2)],we=(_0x1a142e,_0x249868,_0x25d5e9,_0x3699e1)=>{for(var _0x32749e=_0x3699e1>0x1?void 0x0:_0x3699e1?Ee(_0x249868,_0x25d5e9):_0x249868,_0x14af68=_0x1a142e['length']-0x1,_0x4a9ed9;_0x14af68>=0x0;_0x14af68--)(_0x4a9ed9=_0x1a142e[_0x14af68])&&(_0x32749e=_0x4a9ed9(_0x32749e)||_0x32749e);return _0x32749e;},Ne=(_0x207cb9,_0x46b086)=>(_0x561061,_0xf87905)=>_0x46b086(_0x561061,_0xf87905,_0x207cb9);let m=class extends _0xea3d2e{constructor(_0x7300ec){var _0x108b47=_0x1d8b53;super(),this['_liveShareService']=_0x7300ec,this[_0x108b47(0x1f8)]();}[_0x1d8b53(0x1f8)](){var _0x47120d=_0x1d8b53;[_0x158b6e['id'],_0x4d2280['id'],_0x286b47['id']][_0x47120d(0x194)](_0x5b528d=>{var _0x4f00fb=_0x47120d;this[_0x4f00fb(0x219)](this[_0x4f00fb(0x180)][_0x4f00fb(0x21d)](_0x5b528d));});}};m=we([Ne(0x0,_0x239a44(L))],m);function _0x4a93(_0x2fd27e,_0x12a581){var _0x3bc7b3=_0x3bc7();return _0x4a93=function(_0x4a939b,_0x4f5d24){_0x4a939b=_0x4a939b-0x16c;var _0x1c49ee=_0x3bc7b3[_0x4a939b];return _0x1c49ee;},_0x4a93(_0x2fd27e,_0x12a581);}var c=function(){var _0x26a520=_0x1d8b53;return c=Object[_0x26a520(0x198)]||function(_0xbf9792){var _0x1ef818=_0x26a520;for(var _0x2e00f4,_0x45a39e=0x1,_0x22e0e0=arguments[_0x1ef818(0x188)];_0x45a39e<_0x22e0e0;_0x45a39e++){_0x2e00f4=arguments[_0x45a39e];for(var _0x53003f in _0x2e00f4)Object[_0x1ef818(0x1dd)]['hasOwnProperty'][_0x1ef818(0x175)](_0x2e00f4,_0x53003f)&&(_0xbf9792[_0x53003f]=_0x2e00f4[_0x53003f]);}return _0xbf9792;},c[_0x26a520(0x1c0)](this,arguments);},Ce=function(_0x1e0df3,_0x18ad15){var _0x59a2e4=_0x1d8b53,_0x244a8b={};for(var _0x3ad7aa in _0x1e0df3)Object['prototype']['hasOwnProperty'][_0x59a2e4(0x175)](_0x1e0df3,_0x3ad7aa)&&_0x18ad15[_0x59a2e4(0x191)](_0x3ad7aa)<0x0&&(_0x244a8b[_0x3ad7aa]=_0x1e0df3[_0x3ad7aa]);if(_0x1e0df3!=null&&typeof Object['getOwnPropertySymbols']==_0x59a2e4(0x170)){for(var _0x19eba5=0x0,_0x3ad7aa=Object[_0x59a2e4(0x209)](_0x1e0df3);_0x19eba5<_0x3ad7aa[_0x59a2e4(0x188)];_0x19eba5++)_0x18ad15[_0x59a2e4(0x191)](_0x3ad7aa[_0x19eba5])<0x0&&Object[_0x59a2e4(0x1dd)]['propertyIsEnumerable'][_0x59a2e4(0x175)](_0x1e0df3,_0x3ad7aa[_0x19eba5])&&(_0x244a8b[_0x3ad7aa[_0x19eba5]]=_0x1e0df3[_0x3ad7aa[_0x19eba5]]);}return _0x244a8b;},W=_0x15ec25(function(_0x22a4f9,_0x18b145){var _0x22c426=_0x1d8b53,_0x74fc5b=_0x22a4f9[_0x22c426(0x1b7)],_0x546ff6=_0x22a4f9['id'],_0x3c29e4=_0x22a4f9[_0x22c426(0x16f)],_0x40e04e=_0x22a4f9['extend'],_0x245f9d=Ce(_0x22a4f9,['icon','id',_0x22c426(0x16f),_0x22c426(0x171)]),_0x2de780=_0x22c426(0x1fc)[_0x22c426(0x1c8)](_0x546ff6,'\x20')[_0x22c426(0x1c8)](_0x3c29e4||'')[_0x22c426(0x16c)](),_0x34ecf4=_0x3ecb29('_'['concat'](Le()));return Y(_0x74fc5b,''['concat'](_0x546ff6),{'defIds':_0x74fc5b[_0x22c426(0x1a6)],'idSuffix':_0x34ecf4[_0x22c426(0x197)]},c({'ref':_0x18b145,'className':_0x2de780},_0x245f9d),_0x40e04e);});function Y(_0x357dcc,_0xd13a72,_0x51a57e,_0x174d64,_0x12fe0e){var _0x59fb1b=_0x1d8b53;return _0x16e93a(_0x357dcc['tag'],c(c({'key':_0xd13a72},De(_0x357dcc,_0x51a57e,_0x12fe0e)),_0x174d64),(xe(_0x357dcc,_0x51a57e)[_0x59fb1b(0x1a8)]||[])[_0x59fb1b(0x1b8)](function(_0x215130,_0x2954ea){var _0xe4ba90=_0x59fb1b;return Y(_0x215130,''[_0xe4ba90(0x1c8)](_0xd13a72,'-')[_0xe4ba90(0x1c8)](_0x357dcc[_0xe4ba90(0x1fe)],'-')['concat'](_0x2954ea),_0x51a57e,void 0x0,_0x12fe0e);}));}function De(_0x4fb37a,_0x17e4ae,_0x140622){var _0x4c57ec=_0x1d8b53,_0x575c2e=c({},_0x4fb37a[_0x4c57ec(0x218)]);_0x140622!=null&&_0x140622['colorChannel1']&&_0x575c2e[_0x4c57ec(0x19d)]===_0x4c57ec(0x19e)&&(_0x575c2e[_0x4c57ec(0x19d)]=_0x140622[_0x4c57ec(0x19e)]),_0x4fb37a[_0x4c57ec(0x1fe)]===_0x4c57ec(0x1d6)&&_0x575c2e['id']&&(_0x575c2e['id']=_0x575c2e['id']+_0x17e4ae[_0x4c57ec(0x1af)]),Object[_0x4c57ec(0x1f3)](_0x575c2e)[_0x4c57ec(0x194)](function(_0x1392e8){var _0x1d9695=_0x4c57ec,_0x4f189c=_0x1392e8[0x0],_0x5cc21c=_0x1392e8[0x1];_0x4f189c==='mask'&&typeof _0x5cc21c=='string'&&(_0x575c2e[_0x4f189c]=_0x5cc21c[_0x1d9695(0x1ee)](/url\(#(.*)\)/,_0x1d9695(0x1b9)[_0x1d9695(0x1c8)](_0x17e4ae[_0x1d9695(0x1af)],')')));});var _0x5f3a5c=_0x17e4ae[_0x4c57ec(0x1a6)];return!_0x5f3a5c||_0x5f3a5c['length']===0x0||(_0x4fb37a[_0x4c57ec(0x1fe)]==='use'&&_0x575c2e[_0x4c57ec(0x214)]&&(_0x575c2e[_0x4c57ec(0x214)]=_0x575c2e[_0x4c57ec(0x214)]+_0x17e4ae[_0x4c57ec(0x1af)]),Object[_0x4c57ec(0x1f3)](_0x575c2e)[_0x4c57ec(0x194)](function(_0x367307){var _0x380aba=_0x4c57ec,_0x3fb3f5=_0x367307[0x0],_0xd9c0dc=_0x367307[0x1];typeof _0xd9c0dc==_0x380aba(0x196)&&(_0x575c2e[_0x3fb3f5]=_0xd9c0dc['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x17e4ae[_0x380aba(0x1af)],')')));})),_0x575c2e;}function xe(_0x12ba6e,_0x4b1536){var _0x160606=_0x1d8b53,_0x17c74b,_0x156cd4=_0x4b1536[_0x160606(0x1a6)];return!_0x156cd4||_0x156cd4['length']===0x0?_0x12ba6e:_0x12ba6e[_0x160606(0x1fe)]===_0x160606(0x208)&&(!((_0x17c74b=_0x12ba6e['children'])===null||_0x17c74b===void 0x0)&&_0x17c74b[_0x160606(0x188)])?c(c({},_0x12ba6e),{'children':_0x12ba6e[_0x160606(0x1a8)][_0x160606(0x1b8)](function(_0x5a92f0){var _0x4c7f0f=_0x160606;return typeof _0x5a92f0[_0x4c7f0f(0x218)]['id']==_0x4c7f0f(0x196)&&_0x156cd4&&_0x156cd4['includes'](_0x5a92f0['attrs']['id'])?c(c({},_0x5a92f0),{'attrs':c(c({},_0x5a92f0[_0x4c7f0f(0x218)]),{'id':_0x5a92f0[_0x4c7f0f(0x218)]['id']+_0x4b1536['idSuffix']})}):_0x5a92f0;})}):_0x12ba6e;}function Le(){var _0x5e8c8=_0x1d8b53;return Math[_0x5e8c8(0x1dc)]()[_0x5e8c8(0x21f)](0x24)[_0x5e8c8(0x206)](0x2,0x8);}W['displayName']=_0x1d8b53(0x1b4);var ye={'tag':'svg','attrs':{'xmlns':_0x1d8b53(0x19f),'fill':_0x1d8b53(0x17f),'viewBox':'0\x200\x2017\x2017','width':_0x1d8b53(0x1f4),'height':_0x1d8b53(0x1f4)},'children':[{'tag':_0x1d8b53(0x1f2),'attrs':{'fill':_0x1d8b53(0x1f9),'d':_0x1d8b53(0x179)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x1d8b53(0x215),'fillRule':_0x1d8b53(0x1cd),'clipRule':'evenodd'}}]},B=_0x15ec25(function(_0x5a2619,_0x143821){var _0xc16824=_0x1d8b53;return _0x16e93a(W,Object['assign']({},_0x5a2619,{'id':_0xc16824(0x1bd),'ref':_0x143821,'icon':ye}));});B[_0x1d8b53(0x1e6)]=_0x1d8b53(0x18f);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x40c314,_0x3a0ec6,_0x2bc05e,_0x2a5976)=>{var _0x3f37c1=_0x1d8b53;for(var _0x17dbc5=_0x2a5976>0x1?void 0x0:_0x2a5976?Re(_0x3a0ec6,_0x2bc05e):_0x3a0ec6,_0x313424=_0x40c314[_0x3f37c1(0x188)]-0x1,_0x187c97;_0x313424>=0x0;_0x313424--)(_0x187c97=_0x40c314[_0x313424])&&(_0x17dbc5=_0x187c97(_0x17dbc5)||_0x17dbc5);return _0x17dbc5;},f=(_0x86ef21,_0x1eb35f)=>(_0x231bb1,_0x4f3bf4)=>_0x1eb35f(_0x231bb1,_0x4f3bf4,_0x86ef21);let I=class extends _0x260b45{constructor(_0x5f6d2b,_0x9ca862,_0x49c362){var _0x4fbbf4=_0x1d8b53;super(),d(this,_0x4fbbf4(0x17d),new Map()),(this[_0x4fbbf4(0x17c)]=_0x5f6d2b,this[_0x4fbbf4(0x1ca)]=_0x9ca862,this[_0x4fbbf4(0x1c5)]=_0x49c362,this[_0x4fbbf4(0x1f8)]());}async[_0x1d8b53(0x1d4)](_0xe3a0e4){var _0x46da20=_0x1d8b53;return this[_0x46da20(0x17d)][_0x46da20(0x19b)](_0xe3a0e4)||await this[_0x46da20(0x16e)](_0xe3a0e4),this[_0x46da20(0x17d)][_0x46da20(0x20a)](_0xe3a0e4);}[_0x1d8b53(0x1f8)](){var _0x2d063f=_0x1d8b53;this[_0x2d063f(0x17c)][_0x2d063f(0x1f0)](_0x33fb10[_0x2d063f(0x221)])[_0x2d063f(0x193)](_0x1ced03(this[_0x2d063f(0x1d0)]))[_0x2d063f(0x182)](async _0x5af0db=>{var _0x33ea4a=_0x2d063f;const _0xf8fe09=_0x5af0db[_0x33ea4a(0x207)]();this[_0x33ea4a(0x17d)]['has'](_0xf8fe09)||this[_0x33ea4a(0x16e)](_0xf8fe09);}),this[_0x2d063f(0x17c)][_0x2d063f(0x1ea)](_0x33fb10[_0x2d063f(0x221)])[_0x2d063f(0x193)](_0x1ced03(this[_0x2d063f(0x1d0)]))['subscribe'](_0x5f4a45=>{var _0x12a431=_0x2d063f;const _0x7539de=_0x5f4a45[_0x12a431(0x207)](),_0x48abca=this[_0x12a431(0x17d)][_0x12a431(0x20a)](_0x7539de);_0x48abca==null||_0x48abca[_0x12a431(0x189)]();});}async[_0x1d8b53(0x16e)](_0x267c9e){var _0x33374b=_0x1d8b53;const _0x3af11c=await this[_0x33374b(0x1c5)][_0x33374b(0x1c7)](_0x267c9e),_0x1a2adb=this[_0x33374b(0x1ca)]['createInstance'](C,_0x267c9e,_0x3af11c);return _0x1a2adb['init'](),this[_0x33374b(0x17d)][_0x33374b(0x213)](_0x267c9e,_0x1a2adb),_0x1a2adb;}};I=Z([f(0x0,_0xe4611b),f(0x1,_0x239a44(_0x192d3b)),f(0x2,_0x239a44(_0x4cef2c))],I);var h=(_0x1121fa=>(_0x1121fa['OFFLINE']=_0x1d8b53(0x1ad),_0x1121fa[_0x1d8b53(0x18a)]=_0x1d8b53(0x173),_0x1121fa['FOLLOWING']='following',_0x1121fa[_0x1d8b53(0x1de)]=_0x1d8b53(0x20b),_0x1121fa[_0x1d8b53(0x21b)]=_0x1d8b53(0x1c9),_0x1121fa))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x260b45{constructor(_0x36254e,_0x29780f,_0x29f97e,_0xb9965a,_0x8dbfab){var _0x39fda8=_0x1d8b53;super(),d(this,_0x39fda8(0x1df),new _0x3cc28c(_0x39fda8(0x173))),d(this,_0x39fda8(0x1b3),this[_0x39fda8(0x1df)][_0x39fda8(0x212)]()),d(this,'_init',!0x1),d(this,_0x39fda8(0x177),null),d(this,_0x39fda8(0x1e0),null),(this['_unitID']=_0x36254e,this[_0x39fda8(0x205)]=_0x29780f,this['_configService']=_0x29f97e,this[_0x39fda8(0x180)]=_0xb9965a,this[_0x39fda8(0x185)]=_0x8dbfab);}get[_0x1d8b53(0x1a4)](){var _0x5da06c=_0x1d8b53;return this['_status$'][_0x5da06c(0x1d8)]();}[_0x1d8b53(0x189)](){var _0xe3b2c9=_0x1d8b53,_0x3b64a4;(_0x3b64a4=this[_0xe3b2c9(0x177)])==null||_0x3b64a4[_0xe3b2c9(0x189)](),this[_0xe3b2c9(0x1df)][_0xe3b2c9(0x1e5)](_0xe3b2c9(0x173)),this[_0xe3b2c9(0x1df)][_0xe3b2c9(0x1da)]();}[_0x1d8b53(0x1e7)](){var _0x14ad78=_0x1d8b53;this[_0x14ad78(0x1f8)]||(this[_0x14ad78(0x1f8)]=!0x0,this['_collabSession'][_0x14ad78(0x1ec)][_0x14ad78(0x193)](_0x1ced03(this[_0x14ad78(0x1d0)]))[_0x14ad78(0x182)](_0x59bf7a=>{var _0x1840d9=_0x14ad78;switch(_0x59bf7a){case _0x5cfa23[_0x1840d9(0x1aa)]:this[_0x1840d9(0x1ae)]();break;case _0x5cfa23[_0x1840d9(0x18e)]:this[_0x1840d9(0x1a5)]();break;}}),this[_0x14ad78(0x205)]['event$'][_0x14ad78(0x193)](_0x1ced03(this[_0x14ad78(0x1d0)]))[_0x14ad78(0x182)](_0x43904e=>{var _0xb170c3=_0x14ad78;const {eventID:_0x58bec8}=_0x43904e;switch(_0x58bec8){case _0x30c7bc[_0xb170c3(0x19a)]:this[_0xb170c3(0x1fd)](_0x43904e);break;case _0x30c7bc[_0xb170c3(0x195)]:this[_0xb170c3(0x1e9)](_0x43904e);break;case _0x30c7bc[_0xb170c3(0x201)]:this[_0xb170c3(0x21a)]();break;case _0x30c7bc[_0xb170c3(0x1d7)]:this[_0xb170c3(0x1fb)](_0x43904e);break;}}));}['tryStartPresenting'](){var _0x1db995=_0x1d8b53;this['_collabSession'][_0x1db995(0x1c6)]({'eventID':_0x30c7bc[_0x1db995(0x16d)],'data':{'unitID':this[_0x1db995(0x17e)],'userID':this[_0x1db995(0x205)]['getMemberID']()}},this[_0x1db995(0x17e)]);}[_0x1d8b53(0x203)](){var _0x5d6f76=_0x1d8b53;this[_0x5d6f76(0x1a4)]===_0x5d6f76(0x1c9)&&(this[_0x5d6f76(0x1df)][_0x5d6f76(0x1e5)]('idle'),this['_collabSession']['send']({'eventID':_0x30c7bc['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x5d6f76(0x17e)]}},this[_0x5d6f76(0x17e)]));}[_0x1d8b53(0x1cb)](){var _0x4106f2=_0x1d8b53;this[_0x4106f2(0x1a4)]===_0x4106f2(0x20b)&&(this[_0x4106f2(0x1df)][_0x4106f2(0x1e5)](_0x4106f2(0x1bc)),this[_0x4106f2(0x1ff)]());}['stopFollowing'](){var _0x1ec1c7=_0x1d8b53;this[_0x1ec1c7(0x1a4)]==='following'&&this[_0x1ec1c7(0x1f6)]();}['_handleNewHost'](_0x4b3227){var _0x11d74b=_0x1d8b53;const {presenter:_0x5b616d}=_0x4b3227[_0x11d74b(0x210)],_0x4eaaad=this[_0x11d74b(0x205)]['getMemberID']();this['_presenter']=_0x5b616d,_0x5b616d===_0x4eaaad?(this['_stopFollowing'](),this[_0x11d74b(0x18d)]()):this['_status']!==_0x11d74b(0x20b)&&(this[_0x11d74b(0x20f)](),this[_0x11d74b(0x1ff)]());}[_0x1d8b53(0x1a2)](){var _0x440bab=_0x1d8b53;const _0x4d8bf5={'eventID':_0x30c7bc[_0x440bab(0x1bb)]};this[_0x440bab(0x205)][_0x440bab(0x1c6)](_0x4d8bf5,this['_unitID']);}[_0x1d8b53(0x21a)](){var _0x52478d=_0x1d8b53;this[_0x52478d(0x1e0)]=null,this[_0x52478d(0x1a4)]!==_0x52478d(0x1c9)&&this[_0x52478d(0x1b1)]();}[_0x1d8b53(0x1fb)](_0x57ed1a){var _0xea3bc6=_0x1d8b53;if(this['_status']==='following'&&this[_0xea3bc6(0x1e0)]===_0x57ed1a[_0xea3bc6(0x210)][_0xea3bc6(0x1cc)]){const _0x4006f0=_0x1495b0(_0x57ed1a['data'])[_0xea3bc6(0x1db)][_0xea3bc6(0x183)]()[_0xea3bc6(0x19c)](_0x4aad10=>_0x4aad10['id']===_0x331837['id']);if(_0x4006f0){const _0x3d832b=_0x4006f0[_0xea3bc6(0x1b5)][_0xea3bc6(0x1f7)],_0xb20378=_0x4006f0[_0xea3bc6(0x1b5)][_0xea3bc6(0x1ba)]['id'];setTimeout(()=>{var _0x1fce3e=_0xea3bc6;this[_0x1fce3e(0x185)][_0x1fce3e(0x1cf)](_0x286b47['id'],{'unitId':_0x3d832b,'subUnitId':_0xb20378},{'fromCollab':!0x0});});}}}[_0x1d8b53(0x18d)](){var _0x53e7da=_0x1d8b53;this['_status$']['next'](_0x53e7da(0x1c9));const _0x4ac352=new Map(),_0x28dcc5=this['_commandDisposable']=new _0x211483();_0x28dcc5['add'](_0x172916(()=>{var _0x143db0=_0x53e7da;_0x4ac352[_0x143db0(0x194)](_0xaff821=>_0xaff821[_0x143db0(0x1da)]()),_0x4ac352[_0x143db0(0x1f5)]();})),_0x28dcc5['add'](this[_0x53e7da(0x185)][_0x53e7da(0x1a1)](_0x1235b7=>{var _0x339098=_0x53e7da,_0x2da055;if(_0x1235b7['type']!==_0x5e8cc6[_0x339098(0x199)]||!this[_0x339098(0x180)]['shouldShareOperation'](_0x1235b7['id']))return;const {id:_0x1b78e2}=_0x1235b7;let _0x511d48;_0x4ac352[_0x339098(0x19b)](_0x1b78e2)?_0x511d48=_0x4ac352[_0x339098(0x20a)](_0x1b78e2):(_0x511d48=new _0x4fab24(),_0x4ac352[_0x339098(0x213)](_0x1b78e2,_0x511d48),_0x511d48[_0x339098(0x193)](_0x32385e((_0x2da055=this[_0x339098(0x192)][_0x339098(0x1eb)](Pe))!=null?_0x2da055:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x339098(0x182)](_0x5cff80=>{var _0x131167=_0x339098;this['_collabSession'][_0x131167(0x1c6)]({'eventID':_0x30c7bc['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x5cff80['id']]:{'id':_0x5cff80['id'],'params':JSON['stringify'](_0x5cff80[_0x131167(0x1b5)])}}}},this['_unitID']);})),_0x511d48[_0x339098(0x1e5)](_0x1235b7);})),this[_0x53e7da(0x180)][_0x53e7da(0x1d1)](this[_0x53e7da(0x17e)])['forEach'](_0x25938e=>this[_0x53e7da(0x205)]['send']({'eventID':_0x30c7bc['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x53e7da(0x17e)],'operations':{[_0x25938e['id']]:{'id':_0x25938e['id'],'params':JSON[_0x53e7da(0x190)](_0x25938e['params'])}}}},this[_0x53e7da(0x17e)]));}[_0x1d8b53(0x20f)](){var _0x5622a0=_0x1d8b53,_0x1c9957;this[_0x5622a0(0x1df)][_0x5622a0(0x1e5)]('idle'),(_0x1c9957=this[_0x5622a0(0x177)])==null||_0x1c9957[_0x5622a0(0x189)](),this[_0x5622a0(0x177)]=null;}[_0x1d8b53(0x1ff)](){var _0x1c7d57=_0x1d8b53,_0x293426;(_0x293426=this['_commandDisposable'])==null||_0x293426['dispose'](),this[_0x1c7d57(0x1df)][_0x1c7d57(0x1e5)](_0x1c7d57(0x1bc));}[_0x1d8b53(0x1b1)](){var _0x29782e=_0x1d8b53,_0x114f3f;this[_0x29782e(0x1df)][_0x29782e(0x1e5)](_0x29782e(0x173)),(_0x114f3f=this[_0x29782e(0x177)])==null||_0x114f3f[_0x29782e(0x189)](),this[_0x29782e(0x177)]=null;}[_0x1d8b53(0x1f6)](){var _0x3f3989=_0x1d8b53,_0xa5d20d;this[_0x3f3989(0x1df)][_0x3f3989(0x1e5)](_0x3f3989(0x20b)),(_0xa5d20d=this['_commandDisposable'])==null||_0xa5d20d['dispose']();}[_0x1d8b53(0x1e9)](_0x29ee44){var _0x14243a=_0x1d8b53;if([_0x14243a(0x1c9),_0x14243a(0x20b),_0x14243a(0x1ad)][_0x14243a(0x1f1)](this[_0x14243a(0x1a4)])||!_0x29ee44[_0x14243a(0x210)][_0x14243a(0x17b)]||_0x29ee44['data'][_0x14243a(0x17b)]===this[_0x14243a(0x205)][_0x14243a(0x216)]())return;this[_0x14243a(0x1a4)]===_0x14243a(0x173)&&this[_0x14243a(0x1ff)]();const _0x12b7d3=_0x29ee44['data'][_0x14243a(0x1d2)];Object['values'](_0x12b7d3)[_0x14243a(0x194)](_0x3e84d9=>{var _0x416310=_0x14243a;this[_0x416310(0x185)][_0x416310(0x1cf)](_0x3e84d9['id'],_0x3e84d9[_0x416310(0x1b5)]?JSON[_0x416310(0x1e3)](_0x3e84d9[_0x416310(0x1b5)]):null,{'fromCollab':!0x0});});}[_0x1d8b53(0x1ae)](){var _0x1243a3=_0x1d8b53,_0x322e14;this[_0x1243a3(0x1df)][_0x1243a3(0x1e5)]('offline'),(_0x322e14=this['_commandDisposable'])==null||_0x322e14['dispose']();}[_0x1d8b53(0x1a5)](){var _0x5e4c7e=_0x1d8b53;this[_0x5e4c7e(0x1df)][_0x5e4c7e(0x1e5)](_0x5e4c7e(0x173)),this[_0x5e4c7e(0x1a2)]();}};C=Z([f(0x2,_0x558741),f(0x3,_0x239a44(L)),f(0x4,_0x584762)],C);function Te(){var _0xe3a83d=_0x1d8b53;const _0x1bc609=_0x14ae59(I),_0x1e5726=_0x14ae59(_0xe4611b),_0x1ba9de=_0xe07f56(()=>_0x1e5726[_0xe3a83d(0x17a)](_0x33fb10[_0xe3a83d(0x221)]),void 0x0,!0x1,[]),[_0x1fba3a,_0x4232ef]=_0x48688c(null),[_0x17c024,_0x19feac]=_0x48688c(h[_0xe3a83d(0x18a)]),_0x28b61e=_0x3ecb29(null);return _0x22643b(()=>(_0x1ba9de&&_0x1bc609['getLiveShareCoordinator'](_0x1ba9de[_0xe3a83d(0x207)]())[_0xe3a83d(0x1ce)](_0x2c8aa5=>{var _0xdc5ecc=_0xe3a83d;_0x4232ef(_0x2c8aa5),_0x28b61e['current']=_0x2c8aa5[_0xdc5ecc(0x1b3)][_0xdc5ecc(0x182)](_0xb71cd0=>{_0x19feac(_0xb71cd0);});}),()=>{var _0x49eb77=_0xe3a83d,_0x5ae364;(_0x5ae364=_0x28b61e[_0x49eb77(0x197)])==null||_0x5ae364[_0x49eb77(0x18c)](),_0x28b61e[_0x49eb77(0x197)]=null;}),[_0x1ba9de,_0x1bc609]),_0x1fba3a?_0x2f0961(_0x46ea1d,{'align':'end','disabled':_0x17c024===h[_0xe3a83d(0x1aa)],'className':_0xe3a83d(0x202),'overlay':_0x2f0961($e,{'status':_0x17c024,'coordinator':_0x1fba3a}),'children':_0x2f0961(_0xe3a83d(0x1b0),{'className':_0x39a291(_0xe3a83d(0x176),{'univer-cursor-not-allowed':_0x17c024===h[_0xe3a83d(0x1aa)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17c024!==h[_0xe3a83d(0x1aa)]}),'type':'button','children':_0x2f0961(B,{'className':_0xe3a83d(0x1c3)})})}):null;}function $e(_0x5c5ffa){var _0x12f431=_0x1d8b53;const {status:_0x2e8476,coordinator:_0x155618}=_0x5c5ffa;switch(_0x2e8476){case h['IDLE']:return _0x2f0961(Fe,{'coordinator':_0x155618});case h[_0x12f431(0x186)]:return _0x2f0961(He,{'coordinator':_0x155618});case h['NOT_FOLLOWING']:return _0x2f0961(je,{'coordinator':_0x155618});case h[_0x12f431(0x1aa)]:return _0x2f0961(Ve,{});case h[_0x12f431(0x21b)]:return _0x2f0961(Ue,{'coordinator':_0x155618});default:return null;}}function Fe(_0xf4ece9){var _0x3f55bc=_0x1d8b53;const {coordinator:_0x17275a}=_0xf4ece9;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x3f55bc(0x1b2),{'className':_0x3f55bc(0x1b6),'children':_0x3f55bc(0x200)}),_0x2f0961(_0x226687,{'onClick':()=>_0x17275a['tryStartPresenting'](),'children':_0x3f55bc(0x21e)})]});}function He(_0x25a0b9){var _0x321832=_0x1d8b53;const {coordinator:_0x3d2ca7}=_0x25a0b9;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x321832(0x1b2),{'className':_0x321832(0x1b6),'children':_0x321832(0x222)}),_0x2f0961(_0x226687,{'onClick':()=>_0x3d2ca7[_0x321832(0x1fa)](),'children':_0x321832(0x1c2)})]});}function je(_0x4844c4){var _0x1f2650=_0x1d8b53;const {coordinator:_0x161fb8}=_0x4844c4;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x1f2650(0x1b2),{'className':_0x1f2650(0x1b6),'children':_0x1f2650(0x1ab)}),_0x2f0961(_0x226687,{'variant':_0x1f2650(0x1a3),'onClick':()=>_0x161fb8['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x2a1062){var _0x3284b0=_0x1d8b53;const {coordinator:_0x394e66}=_0x2a1062;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x3284b0(0x1b2),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3284b0(0x1e1)}),_0x2f0961(_0x226687,{'variant':_0x3284b0(0x178),'onClick':()=>_0x394e66[_0x3284b0(0x203)](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x2f0961(_0x12f368,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x1d8b53(0x1e2)],ke=(_0x7123c9,_0x540667,_0x25ddae,_0xe8ad5a)=>{for(var _0x3b45e5=_0xe8ad5a>0x1?void 0x0:_0xe8ad5a?Me(_0x540667,_0x25ddae):_0x540667,_0x184b4a=_0x7123c9['length']-0x1,_0x4df781;_0x184b4a>=0x0;_0x184b4a--)(_0x4df781=_0x7123c9[_0x184b4a])&&(_0x3b45e5=_0x4df781(_0x3b45e5)||_0x3b45e5);return _0x3b45e5;},$=(_0x239d77,_0x1be1f5)=>(_0x42470d,_0x4b0316)=>_0x1be1f5(_0x42470d,_0x4b0316,_0x239d77);let b=class extends _0xea3d2e{constructor(_0x37729d,_0x1e1b1a){var _0x1baec1=_0x1d8b53;super(),this[_0x1baec1(0x1ca)]=_0x37729d,this[_0x1baec1(0x172)]=_0x1e1b1a,this[_0x1baec1(0x181)]();}[_0x1d8b53(0x181)](){var _0x33301f=_0x1d8b53;this[_0x33301f(0x219)](this['_uiPartsService'][_0x33301f(0x187)](_0x1217a7['HEADER_MENU'],()=>_0x5143ac(Te,this[_0x33301f(0x1ca)])));}};b=ke([$(0x0,_0x239a44(_0x192d3b)),$(0x1,_0x241906)],b);var Ge=Object['defineProperty'],We=Object[_0x1d8b53(0x1e2)],Ye=(_0x2707be,_0x5ec934,_0x104535)=>_0x5ec934 in _0x2707be?Ge(_0x2707be,_0x5ec934,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x104535}):_0x2707be[_0x5ec934]=_0x104535,Be=(_0x437d4d,_0x3544ba,_0x1be1cf,_0x202747)=>{var _0x116cb5=_0x1d8b53;for(var _0x39bad7=_0x202747>0x1?void 0x0:_0x202747?We(_0x3544ba,_0x1be1cf):_0x3544ba,_0x597aba=_0x437d4d[_0x116cb5(0x188)]-0x1,_0x211365;_0x597aba>=0x0;_0x597aba--)(_0x211365=_0x437d4d[_0x597aba])&&(_0x39bad7=_0x211365(_0x39bad7)||_0x39bad7);return _0x39bad7;},F=(_0x150923,_0x45834a)=>(_0xbb135f,_0x28d233)=>_0x45834a(_0xbb135f,_0x28d233,_0x150923),J=(_0x302fa7,_0x3c5270,_0xa67b06)=>Ye(_0x302fa7,typeof _0x3c5270!=_0x1d8b53(0x1a7)?_0x3c5270+'':_0x3c5270,_0xa67b06);function _0x3bc7(){var _0x46974d=['idSuffix','button','_beIdle','div','status$','UniverIcon','params','univer-mb-3\x20univer-w-full\x20univer-text-sm','icon','map','url(#$1','sheet','LIVESHARE_FETCH_OPERATIONS','following','live-share-icon','defineProperty','registerInitialStateReporter','apply','add','Stop\x20following','univer-size-4','161795fsSAun','_collabSessionService','send','requireSession','concat','presenting','_injector','startFollowing','memberID','evenodd','then','executeCommand','dispose$','getInitialStates','operations','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinator','2mdHYkt','mask','NEW_CHANGESETS','getValue','onStarting','complete','mutations','random','prototype','NOT_FOLLOWING','_status$','_presenter','You\x27re\x20presenting\x20the\x20document','getOwnPropertyDescriptor','parse','onRendered','next','displayName','init','642928HNEwYN','_handleOperation','getTypeOfUnitDisposed$','getConfig','sessionStatus$','_reporters','replace','23040747ntBToN','getTypeOfUnitAdded$','includes','path','entries','1em','clear','_stopFollowing','unitId','_init','currentColor','stopFollowing','_handleNewChangeSets','univerjs-icon\x20univerjs-icon-','_handleNewHost','tag','_startFollowing','Present\x20this\x20document','LIVESHARE_TERMINATE','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','stopPresenting','2534781ybidcH','_collabSession','substring','getUnitId','defs','getOwnPropertySymbols','get','not-following','override','3180276UfaCjV','delete','_stopPresenting','data','UNIVER_UNKNOWN','asObservable','set','xlink:href','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','getMemberID','_sharedOperations','attrs','disposeWithMe','_handleTerminate','PRESENTING','6303717rzJBYO','registerSharedOperation','Start','toString','138ufAhsK','UNIVER_SHEET','You\x27re\x20following\x20the\x20presenter','trim','LIVESHARE_REQUEST_HOST','_startLiveShareCoordinator','className','function','extend','_uiPartsService','idle','from','call','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','default','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','getCurrentTypeOfUnit$','presenter','_univerInstanceService','_entities','_unitID','none','_liveShareService','_mountLiveShare','subscribe','reverse','_config','_commandService','FOLLOWING','registerComponent','length','dispose','IDLE','pluginName','unsubscribe','_startPresenting','ONLINE','LiveShareIcon','stringify','indexOf','_configService','pipe','forEach','LIVESHARE_OPERATION','string','current','assign','OPERATION','LIVESHARE_NEW_HOST','has','find','fill','colorChannel1','http://www.w3.org/2000/svg','setConfig','onCommandExecuted','_fetchOperations','text','_status','_handleOnline','defIds','symbol','children','10330544BTrdHs','OFFLINE','You\x27re\x20not\x20following\x20the\x20presenter','type','offline','_handleOffline'];_0x3bc7=function(){return _0x46974d;};return _0x3bc7();}const Ze=_0x1d8b53(0x1d3);let O=class extends _0x587f09{constructor(_0x4c3fd6=T,_0x162f54,_0x1a5871){var _0x237978=_0x1d8b53;super(),this[_0x237978(0x184)]=_0x4c3fd6,this[_0x237978(0x1ca)]=_0x162f54,this[_0x237978(0x192)]=_0x1a5871;const {..._0x1dfa6c}=_0xa177d7({},T,this['_config']);this[_0x237978(0x192)][_0x237978(0x1a0)](Oe,_0x1dfa6c);}[_0x1d8b53(0x1d9)](){var _0x2870a0=_0x1d8b53;_0x174d4e(this[_0x2870a0(0x1ca)],_0x27a061([[L],[I],[m],[b]],this[_0x2870a0(0x184)][_0x2870a0(0x20c)])),_0x49be97(this[_0x2870a0(0x1ca)],[[m]]);}[_0x1d8b53(0x1e4)](){var _0x1afc44=_0x1d8b53;_0x49be97(this[_0x1afc44(0x1ca)],[[b]]);}};J(O,_0x1d8b53(0x1ac),_0x33fb10[_0x1d8b53(0x211)]),J(O,_0x1d8b53(0x18b),Ze),O=Be([_0x98ddff(_0x4073ea),F(0x1,_0x239a44(_0x192d3b)),F(0x2,_0x558741)],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 _0x351d60=_0x5600;(function(_0x3202eb,_0x3b4896){var _0x4d4b73=_0x5600,_0x6683e5=_0x3202eb();while(!![]){try{var _0x42fb6=-parseInt(_0x4d4b73(0x1c7))/0x1+-parseInt(_0x4d4b73(0x17b))/0x2*(parseInt(_0x4d4b73(0x172))/0x3)+parseInt(_0x4d4b73(0x151))/0x4+-parseInt(_0x4d4b73(0x170))/0x5*(-parseInt(_0x4d4b73(0x152))/0x6)+parseInt(_0x4d4b73(0x1ac))/0x7+parseInt(_0x4d4b73(0x15f))/0x8*(-parseInt(_0x4d4b73(0x14a))/0x9)+parseInt(_0x4d4b73(0x1c6))/0xa;if(_0x42fb6===_0x3b4896)break;else _0x6683e5['push'](_0x6683e5['shift']());}catch(_0x4e6543){_0x6683e5['push'](_0x6683e5['shift']());}}}(_0x2b53,0x45de2));var q=Object['defineProperty'],z=(_0x3ed690,_0x5e1962,_0x5e939e)=>_0x5e1962 in _0x3ed690?q(_0x3ed690,_0x5e1962,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e939e}):_0x3ed690[_0x5e1962]=_0x5e939e,d=(_0x3b01dd,_0x2d321,_0x39f49a)=>z(_0x3b01dd,typeof _0x2d321!=_0x351d60(0x1cf)?_0x2d321+'':_0x2d321,_0x39f49a);import{CollaborationSessionService as _0xc42d8f,SessionStatus as _0x5e13a0,UniverCollaborationClientPlugin as _0x29bcfe}from'@univerjs-pro/collaboration-client';import{Disposable as _0x224e4c,toDisposable as _0x420ae4,Inject as _0x3abca3,IUniverInstanceService as _0xe2d3f4,Injector as _0x3d57c1,IConfigService as _0x5be387,ICommandService as _0x236614,RxDisposable as _0x603bd6,UniverInstanceType as _0x4d5efd,DisposableCollection as _0x4feaf1,CommandType as _0x17a80f,DependentOn as _0x2195b7,Plugin as _0x599154,merge as _0x75c717,registerDependencies as _0x5bf58d,mergeOverrideWithDependencies as _0x38e8e6,touchDependencies as _0x281800}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x561dc1,InsertSheetMutation as _0x4f4864}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x226f14,SetScrollOperation as _0x33d4ca}from'@univerjs/sheets-ui';import{useDependency as _0x247355,useObservable as _0x21ae04,IUIPartsService as _0x230a4f,BuiltInUIPart as _0x4ca9bf,connectInjector as _0x32a071}from'@univerjs/ui';import{jsx as _0x37aa2b,jsxs as _0x2c44bf,Fragment as _0x3db7a5}from'react/jsx-runtime';import{Dropdown as _0x5f162c,clsx as _0x53843f,Button as _0x2ee079}from'@univerjs/design';import{forwardRef as _0x313345,useRef as _0xc18a52,createElement as _0x57f48a,useState as _0x2f9e5a,useEffect as _0x28d068}from'react';import{CollaborationEvent as _0x45c8cc,parseProtocolChangeset as _0x522c8f}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x18832b,Subject as _0x25a16f}from'rxjs';import{takeUntil as _0x48f007,throttleTime as _0xee77ca}from'rxjs/operators';const Oe='live-share.config',T={};function _0x2b53(){var _0x326341=['_reporters','2SxGsvQ','onStarting','status$','replace','defineProperty','children','colorChannel1','Stop\x20presenting','values','setConfig','asObservable','idSuffix','concat','univer-mb-3\x20univer-w-full\x20univer-text-sm','length','LIVESHARE_TERMINATE','div','_init','_entities','OPERATION','_stopFollowing','getUnitId','ONLINE','executeCommand','NOT_FOLLOWING','_unitID','getConfig','attrs','trim','evenodd','presenting','set','_collabSessionService','_handleTerminate','data','pluginName','OFFLINE','_startLiveShareCoordinator','dispose$','url(#$1','NEW_CHANGESETS','Stop\x20following','sheet','FOLLOWING','univer-size-4','none','defs','_config','send','2149959GTbLeU','following','UNIVER_SHEET','text','http://www.w3.org/2000/svg','idle','_handleOperation','substring','subscribe','dispose','clear','prototype','getOwnPropertySymbols','assign','displayName','_collabSession','UNIVER_LIVE_SHARE_PLUGIN','end','getOwnPropertyDescriptor','_commandDisposable','getInitialStates','call','indexOf','stringify','get','_injector','7964290pSBBsb','289308leGLVn','_uiPartsService','_startFollowing','createInstance','toString','add','next','reverse','symbol','You\x27are\x20offline.','UniverIcon','LIVESHARE_REQUEST_HOST','delete','live-share-icon','onCommandExecuted','defIds','Present\x20this\x20document','find','then','unsubscribe','registerComponent','You\x27re\x20presenting\x20the\x20document','onRendered','from','stopPresenting','currentColor','apply','registerInitialStateReporter','sessionStatus$','_univerInstanceService','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','You\x27re\x20following\x20the\x20presenter','LIVESHARE_OPERATION','_beIdle','0\x200\x2017\x2017','Start\x20following','You\x27re\x20not\x20following\x20the\x20presenter','offline','params','has','getTypeOfUnitAdded$','startFollowing','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','forEach','HEADER_MENU','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','memberID','_presenter','string','_liveShareService','type','propertyIsEnumerable','2210751ZCrMEd','_stopPresenting','_sharedOperations','unitId','getMemberID','xlink:href','entries','151784zmJSDG','9678deKfPf','getLiveShareCoordinator','tryStartPresenting','_fetchOperations','_handleNewChangeSets','extend','includes','1em','getTypeOfUnitDisposed$','_status$','disposeWithMe','_commandService','operations','16cUcYQf','shouldShareOperation','Start','PRESENTING','LIVESHARE_FETCH_OPERATIONS','tag','complete','fill','_startPresenting','icon','_handleNewHost','stopFollowing','_status','mask','_configService','presenter','IDLE','1025keYqKN','init','1216239OkapoE','current','_handleOnline','_mountLiveShare','_handleOffline','pipe','not-following','path'];_0x2b53=function(){return _0x326341;};return _0x2b53();}class L extends _0x224e4c{constructor(){var _0x4b5c00=_0x351d60;super(...arguments),d(this,_0x4b5c00(0x14c),new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0xafd0a){var _0x57023e=_0x351d60;return this[_0x57023e(0x14c)][_0x57023e(0x1cc)](_0xafd0a),_0x420ae4(()=>this[_0x57023e(0x14c)][_0x57023e(0x1d3)](_0xafd0a));}[_0x351d60(0x1e2)](_0xd0edd9){var _0x3a510c=_0x351d60;return this[_0x3a510c(0x17a)][_0x3a510c(0x1cc)](_0xd0edd9),_0x420ae4(()=>this[_0x3a510c(0x17a)][_0x3a510c(0x1d3)](_0xd0edd9));}[_0x351d60(0x160)](_0x5cf08e){var _0x43ad2e=_0x351d60;return this['_sharedOperations'][_0x43ad2e(0x1ee)](_0x5cf08e);}[_0x351d60(0x1c0)](_0x26b8ae){var _0x486893=_0x351d60;return Array[_0x486893(0x1de)](this[_0x486893(0x17a)])[_0x486893(0x1f3)](_0x570949=>_0x570949(_0x26b8ae));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x119d3e,_0x5d4671,_0x40b9e2,_0x7bbc55)=>{var _0x19c7a6=_0x351d60;for(var _0x17b9b0=_0x7bbc55>0x1?void 0x0:_0x7bbc55?Ee(_0x5d4671,_0x40b9e2):_0x5d4671,_0xc30d1f=_0x119d3e[_0x19c7a6(0x189)]-0x1,_0x36f6ef;_0xc30d1f>=0x0;_0xc30d1f--)(_0x36f6ef=_0x119d3e[_0xc30d1f])&&(_0x17b9b0=_0x36f6ef(_0x17b9b0)||_0x17b9b0);return _0x17b9b0;},Ne=(_0x39afc8,_0x55ca59)=>(_0x4cfd48,_0x687522)=>_0x55ca59(_0x4cfd48,_0x687522,_0x39afc8);let m=class extends _0x224e4c{constructor(_0x494f05){var _0x15d423=_0x351d60;super(),this[_0x15d423(0x147)]=_0x494f05,this['_init']();}['_init'](){var _0x327e4c=_0x351d60;[_0x226f14['id'],_0x33d4ca['id'],_0x561dc1['id']][_0x327e4c(0x1f4)](_0x33d76e=>{var _0x21a1e7=_0x327e4c;this[_0x21a1e7(0x15c)](this['_liveShareService']['registerSharedOperation'](_0x33d76e));});}};m=we([Ne(0x0,_0x3abca3(L))],m);var c=function(){var _0x1ebf06=_0x351d60;return c=Object[_0x1ebf06(0x1b9)]||function(_0x238969){var _0x432371=_0x1ebf06;for(var _0x372cff,_0x36148d=0x1,_0x55fcf4=arguments[_0x432371(0x189)];_0x36148d<_0x55fcf4;_0x36148d++){_0x372cff=arguments[_0x36148d];for(var _0x69aaa7 in _0x372cff)Object[_0x432371(0x1b7)]['hasOwnProperty'][_0x432371(0x1c1)](_0x372cff,_0x69aaa7)&&(_0x238969[_0x69aaa7]=_0x372cff[_0x69aaa7]);}return _0x238969;},c[_0x1ebf06(0x1e1)](this,arguments);},Ce=function(_0x4a6f4a,_0x21a8da){var _0xed7f5d=_0x351d60,_0x5309a1={};for(var _0x20d14b in _0x4a6f4a)Object['prototype']['hasOwnProperty'][_0xed7f5d(0x1c1)](_0x4a6f4a,_0x20d14b)&&_0x21a8da[_0xed7f5d(0x1c2)](_0x20d14b)<0x0&&(_0x5309a1[_0x20d14b]=_0x4a6f4a[_0x20d14b]);if(_0x4a6f4a!=null&&typeof Object[_0xed7f5d(0x1b8)]=='function'){for(var _0x3ea593=0x0,_0x20d14b=Object['getOwnPropertySymbols'](_0x4a6f4a);_0x3ea593<_0x20d14b['length'];_0x3ea593++)_0x21a8da['indexOf'](_0x20d14b[_0x3ea593])<0x0&&Object[_0xed7f5d(0x1b7)][_0xed7f5d(0x149)]['call'](_0x4a6f4a,_0x20d14b[_0x3ea593])&&(_0x5309a1[_0x20d14b[_0x3ea593]]=_0x4a6f4a[_0x20d14b[_0x3ea593]]);}return _0x5309a1;},W=_0x313345(function(_0x4826df,_0x2e87bf){var _0x2f29cb=_0x351d60,_0x42a1bf=_0x4826df['icon'],_0xa01011=_0x4826df['id'],_0x4742c9=_0x4826df['className'],_0x234a25=_0x4826df['extend'],_0x237405=Ce(_0x4826df,[_0x2f29cb(0x168),'id','className',_0x2f29cb(0x157)]),_0x3cd53f='univerjs-icon\x20univerjs-icon-'[_0x2f29cb(0x187)](_0xa01011,'\x20')[_0x2f29cb(0x187)](_0x4742c9||'')[_0x2f29cb(0x197)](),_0x1f267d=_0xc18a52('_'['concat'](Le()));return Y(_0x42a1bf,''['concat'](_0xa01011),{'defIds':_0x42a1bf['defIds'],'idSuffix':_0x1f267d[_0x2f29cb(0x173)]},c({'ref':_0x2e87bf,'className':_0x3cd53f},_0x237405),_0x234a25);});function Y(_0x572c0e,_0x16a8a3,_0x87fd89,_0x802cf8,_0x1dd164){var _0x21626b=_0x351d60;return _0x57f48a(_0x572c0e[_0x21626b(0x164)],c(c({'key':_0x16a8a3},De(_0x572c0e,_0x87fd89,_0x1dd164)),_0x802cf8),(xe(_0x572c0e,_0x87fd89)['children']||[])[_0x21626b(0x1f3)](function(_0x2adf0b,_0x4d0224){var _0x843ce8=_0x21626b;return Y(_0x2adf0b,''['concat'](_0x16a8a3,'-')[_0x843ce8(0x187)](_0x572c0e['tag'],'-')[_0x843ce8(0x187)](_0x4d0224),_0x87fd89,void 0x0,_0x1dd164);}));}function De(_0x27080c,_0x3da072,_0xca05fe){var _0x536e7b=_0x351d60,_0xf07a0=c({},_0x27080c[_0x536e7b(0x196)]);_0xca05fe!=null&&_0xca05fe[_0x536e7b(0x181)]&&_0xf07a0[_0x536e7b(0x166)]===_0x536e7b(0x181)&&(_0xf07a0['fill']=_0xca05fe[_0x536e7b(0x181)]),_0x27080c[_0x536e7b(0x164)]==='mask'&&_0xf07a0['id']&&(_0xf07a0['id']=_0xf07a0['id']+_0x3da072[_0x536e7b(0x186)]),Object[_0x536e7b(0x150)](_0xf07a0)['forEach'](function(_0x34a393){var _0x40da90=_0x536e7b,_0x52891f=_0x34a393[0x0],_0x416185=_0x34a393[0x1];_0x52891f===_0x40da90(0x16c)&&typeof _0x416185=='string'&&(_0xf07a0[_0x52891f]=_0x416185[_0x40da90(0x17e)](/url\(#(.*)\)/,_0x40da90(0x1a2)['concat'](_0x3da072[_0x40da90(0x186)],')')));});var _0x4780fb=_0x3da072[_0x536e7b(0x1d6)];return!_0x4780fb||_0x4780fb[_0x536e7b(0x189)]===0x0||(_0x27080c[_0x536e7b(0x164)]==='use'&&_0xf07a0[_0x536e7b(0x14f)]&&(_0xf07a0['xlink:href']=_0xf07a0[_0x536e7b(0x14f)]+_0x3da072[_0x536e7b(0x186)]),Object['entries'](_0xf07a0)[_0x536e7b(0x1f4)](function(_0x3c7de2){var _0x1ae81b=_0x536e7b,_0x22beaa=_0x3c7de2[0x0],_0x3fbfe6=_0x3c7de2[0x1];typeof _0x3fbfe6==_0x1ae81b(0x146)&&(_0xf07a0[_0x22beaa]=_0x3fbfe6[_0x1ae81b(0x17e)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3da072['idSuffix'],')')));})),_0xf07a0;}function xe(_0xa9fdea,_0x1d0c3e){var _0x36192b=_0x351d60,_0x3616a9,_0x32ed88=_0x1d0c3e[_0x36192b(0x1d6)];return!_0x32ed88||_0x32ed88[_0x36192b(0x189)]===0x0?_0xa9fdea:_0xa9fdea[_0x36192b(0x164)]===_0x36192b(0x1a9)&&(!((_0x3616a9=_0xa9fdea[_0x36192b(0x180)])===null||_0x3616a9===void 0x0)&&_0x3616a9[_0x36192b(0x189)])?c(c({},_0xa9fdea),{'children':_0xa9fdea[_0x36192b(0x180)]['map'](function(_0x32a0bd){var _0x13b65f=_0x36192b;return typeof _0x32a0bd[_0x13b65f(0x196)]['id']=='string'&&_0x32ed88&&_0x32ed88[_0x13b65f(0x158)](_0x32a0bd['attrs']['id'])?c(c({},_0x32a0bd),{'attrs':c(c({},_0x32a0bd['attrs']),{'id':_0x32a0bd[_0x13b65f(0x196)]['id']+_0x1d0c3e[_0x13b65f(0x186)]})}):_0x32a0bd;})}):_0xa9fdea;}function Le(){var _0x11fb04=_0x351d60;return Math['random']()[_0x11fb04(0x1cb)](0x24)[_0x11fb04(0x1b3)](0x2,0x8);}W[_0x351d60(0x1ba)]=_0x351d60(0x1d1);var ye={'tag':'svg','attrs':{'xmlns':_0x351d60(0x1b0),'fill':_0x351d60(0x1a8),'viewBox':_0x351d60(0x1e9),'width':_0x351d60(0x159),'height':_0x351d60(0x159)},'children':[{'tag':_0x351d60(0x179),'attrs':{'fill':_0x351d60(0x1e0),'d':_0x351d60(0x1f1)}},{'tag':_0x351d60(0x179),'attrs':{'fill':_0x351d60(0x1e0),'d':_0x351d60(0x1e5),'fillRule':'evenodd','clipRule':_0x351d60(0x198)}}]},B=_0x313345(function(_0x1cebe0,_0x2c6fb5){var _0xaa98f8=_0x351d60;return _0x57f48a(W,Object['assign']({},_0x1cebe0,{'id':_0xaa98f8(0x1d4),'ref':_0x2c6fb5,'icon':ye}));});B[_0x351d60(0x1ba)]='LiveShareIcon';var Re=Object[_0x351d60(0x1be)],Z=(_0x45c92f,_0x354020,_0x4af8f6,_0x5cb222)=>{var _0x2d3a65=_0x351d60;for(var _0xedb37b=_0x5cb222>0x1?void 0x0:_0x5cb222?Re(_0x354020,_0x4af8f6):_0x354020,_0x9a6e72=_0x45c92f[_0x2d3a65(0x189)]-0x1,_0x2d0cc6;_0x9a6e72>=0x0;_0x9a6e72--)(_0x2d0cc6=_0x45c92f[_0x9a6e72])&&(_0xedb37b=_0x2d0cc6(_0xedb37b)||_0xedb37b);return _0xedb37b;},f=(_0x32c8ab,_0x21d72a)=>(_0x3dd1b2,_0xdf9fff)=>_0x21d72a(_0x3dd1b2,_0xdf9fff,_0x32c8ab);let I=class extends _0x603bd6{constructor(_0x1bc6c3,_0x2fbdcd,_0x10b65b){var _0x593a92=_0x351d60;super(),d(this,_0x593a92(0x18d),new Map()),(this[_0x593a92(0x1e4)]=_0x1bc6c3,this[_0x593a92(0x1c5)]=_0x2fbdcd,this[_0x593a92(0x19b)]=_0x10b65b,this['_init']());}async['getLiveShareCoordinator'](_0x41649b){var _0x42114a=_0x351d60;return this['_entities'][_0x42114a(0x1ee)](_0x41649b)||await this[_0x42114a(0x1a0)](_0x41649b),this[_0x42114a(0x18d)][_0x42114a(0x1c4)](_0x41649b);}[_0x351d60(0x18c)](){var _0x332f24=_0x351d60;this[_0x332f24(0x1e4)][_0x332f24(0x1ef)](_0x4d5efd[_0x332f24(0x1ae)])[_0x332f24(0x177)](_0x48f007(this[_0x332f24(0x1a1)]))[_0x332f24(0x1b4)](async _0x3c9659=>{var _0x2d9bdb=_0x332f24;const _0x40d245=_0x3c9659[_0x2d9bdb(0x190)]();this[_0x2d9bdb(0x18d)][_0x2d9bdb(0x1ee)](_0x40d245)||this[_0x2d9bdb(0x1a0)](_0x40d245);}),this[_0x332f24(0x1e4)][_0x332f24(0x15a)](_0x4d5efd[_0x332f24(0x1ae)])[_0x332f24(0x177)](_0x48f007(this[_0x332f24(0x1a1)]))['subscribe'](_0x16b09c=>{var _0x2d5564=_0x332f24;const _0x3922af=_0x16b09c[_0x2d5564(0x190)](),_0x3b7812=this['_entities'][_0x2d5564(0x1c4)](_0x3922af);_0x3b7812==null||_0x3b7812[_0x2d5564(0x1b5)]();});}async['_startLiveShareCoordinator'](_0x5cdf27){var _0x38f116=_0x351d60;const _0x5c2919=await this[_0x38f116(0x19b)]['requireSession'](_0x5cdf27),_0x4b671f=this[_0x38f116(0x1c5)][_0x38f116(0x1ca)](C,_0x5cdf27,_0x5c2919);return _0x4b671f['init'](),this[_0x38f116(0x18d)][_0x38f116(0x19a)](_0x5cdf27,_0x4b671f),_0x4b671f;}};I=Z([f(0x0,_0xe2d3f4),f(0x1,_0x3abca3(_0x3d57c1)),f(0x2,_0x3abca3(_0xc42d8f))],I);var h=(_0x15ab43=>(_0x15ab43[_0x351d60(0x19f)]=_0x351d60(0x1ec),_0x15ab43['IDLE']='idle',_0x15ab43[_0x351d60(0x1a6)]=_0x351d60(0x1ad),_0x15ab43['NOT_FOLLOWING']=_0x351d60(0x178),_0x15ab43[_0x351d60(0x162)]=_0x351d60(0x199),_0x15ab43))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x603bd6{constructor(_0x42a68e,_0x33c978,_0x427774,_0x546007,_0x51a485){var _0xb6f8d7=_0x351d60;super(),d(this,_0xb6f8d7(0x15b),new _0x18832b(_0xb6f8d7(0x1b1))),d(this,'status$',this[_0xb6f8d7(0x15b)][_0xb6f8d7(0x185)]()),d(this,_0xb6f8d7(0x18c),!0x1),d(this,_0xb6f8d7(0x1bf),null),d(this,_0xb6f8d7(0x145),null),(this['_unitID']=_0x42a68e,this[_0xb6f8d7(0x1bb)]=_0x33c978,this[_0xb6f8d7(0x16d)]=_0x427774,this[_0xb6f8d7(0x147)]=_0x546007,this[_0xb6f8d7(0x15d)]=_0x51a485);}get[_0x351d60(0x16b)](){return this['_status$']['getValue']();}[_0x351d60(0x1b5)](){var _0x5ba52f=_0x351d60,_0x35157a;(_0x35157a=this[_0x5ba52f(0x1bf)])==null||_0x35157a[_0x5ba52f(0x1b5)](),this[_0x5ba52f(0x15b)][_0x5ba52f(0x1cd)](_0x5ba52f(0x1b1)),this['_status$'][_0x5ba52f(0x165)]();}[_0x351d60(0x171)](){var _0x50ed1c=_0x351d60;this[_0x50ed1c(0x18c)]||(this[_0x50ed1c(0x18c)]=!0x0,this[_0x50ed1c(0x1bb)][_0x50ed1c(0x1e3)][_0x50ed1c(0x177)](_0x48f007(this['dispose$']))[_0x50ed1c(0x1b4)](_0xc74f39=>{var _0x49d599=_0x50ed1c;switch(_0xc74f39){case _0x5e13a0[_0x49d599(0x19f)]:this[_0x49d599(0x176)]();break;case _0x5e13a0[_0x49d599(0x191)]:this[_0x49d599(0x174)]();break;}}),this['_collabSession']['event$']['pipe'](_0x48f007(this[_0x50ed1c(0x1a1)]))[_0x50ed1c(0x1b4)](_0x20d08e=>{var _0x3ec6e9=_0x50ed1c;const {eventID:_0x4395c0}=_0x20d08e;switch(_0x4395c0){case _0x45c8cc['LIVESHARE_NEW_HOST']:this[_0x3ec6e9(0x169)](_0x20d08e);break;case _0x45c8cc[_0x3ec6e9(0x1e7)]:this[_0x3ec6e9(0x1b2)](_0x20d08e);break;case _0x45c8cc[_0x3ec6e9(0x18a)]:this['_handleTerminate']();break;case _0x45c8cc[_0x3ec6e9(0x1a3)]:this['_handleNewChangeSets'](_0x20d08e);break;}}));}['tryStartPresenting'](){var _0x31f6a8=_0x351d60;this[_0x31f6a8(0x1bb)][_0x31f6a8(0x1ab)]({'eventID':_0x45c8cc[_0x31f6a8(0x1d2)],'data':{'unitID':this[_0x31f6a8(0x194)],'userID':this[_0x31f6a8(0x1bb)][_0x31f6a8(0x14e)]()}},this[_0x31f6a8(0x194)]);}[_0x351d60(0x1df)](){var _0x32b3ed=_0x351d60;this[_0x32b3ed(0x16b)]==='presenting'&&(this[_0x32b3ed(0x15b)]['next'](_0x32b3ed(0x1b1)),this[_0x32b3ed(0x1bb)][_0x32b3ed(0x1ab)]({'eventID':_0x45c8cc[_0x32b3ed(0x18a)],'data':{'unitID':this[_0x32b3ed(0x194)]}},this[_0x32b3ed(0x194)]));}[_0x351d60(0x1f0)](){var _0x19bddf=_0x351d60;this[_0x19bddf(0x16b)]==='not-following'&&(this['_status$']['next'](_0x19bddf(0x1ad)),this[_0x19bddf(0x1c9)]());}[_0x351d60(0x16a)](){var _0x974b71=_0x351d60;this['_status']===_0x974b71(0x1ad)&&this[_0x974b71(0x18f)]();}['_handleNewHost'](_0x1deae4){var _0x11b954=_0x351d60;const {presenter:_0xcc3c99}=_0x1deae4[_0x11b954(0x19d)],_0x3e0b26=this['_collabSession'][_0x11b954(0x14e)]();this['_presenter']=_0xcc3c99,_0xcc3c99===_0x3e0b26?(this[_0x11b954(0x18f)](),this[_0x11b954(0x167)]()):this['_status']!=='not-following'&&(this[_0x11b954(0x14b)](),this[_0x11b954(0x1c9)]());}['_fetchOperations'](){var _0x26a02e=_0x351d60;const _0x100712={'eventID':_0x45c8cc[_0x26a02e(0x163)]};this['_collabSession']['send'](_0x100712,this[_0x26a02e(0x194)]);}[_0x351d60(0x19c)](){var _0x562ca0=_0x351d60;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x562ca0(0x1e8)]();}[_0x351d60(0x156)](_0x51b729){var _0x30914d=_0x351d60;if(this[_0x30914d(0x16b)]===_0x30914d(0x1ad)&&this[_0x30914d(0x145)]===_0x51b729[_0x30914d(0x19d)][_0x30914d(0x144)]){const _0x39ffc2=_0x522c8f(_0x51b729[_0x30914d(0x19d)])['mutations'][_0x30914d(0x1ce)]()[_0x30914d(0x1d8)](_0x13a316=>_0x13a316['id']===_0x4f4864['id']);if(_0x39ffc2){const _0x28520b=_0x39ffc2[_0x30914d(0x1ed)][_0x30914d(0x14d)],_0x5057a2=_0x39ffc2[_0x30914d(0x1ed)][_0x30914d(0x1a5)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x561dc1['id'],{'unitId':_0x28520b,'subUnitId':_0x5057a2},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x159763=_0x351d60;this[_0x159763(0x15b)][_0x159763(0x1cd)](_0x159763(0x199));const _0x29bbda=new Map(),_0x382444=this['_commandDisposable']=new _0x4feaf1();_0x382444[_0x159763(0x1cc)](_0x420ae4(()=>{var _0x445305=_0x159763;_0x29bbda[_0x445305(0x1f4)](_0x1d8de1=>_0x1d8de1[_0x445305(0x165)]()),_0x29bbda[_0x445305(0x1b6)]();})),_0x382444['add'](this[_0x159763(0x15d)][_0x159763(0x1d5)](_0x58133c=>{var _0xd2a746=_0x159763,_0x1c3d76;if(_0x58133c['type']!==_0x17a80f[_0xd2a746(0x18e)]||!this[_0xd2a746(0x147)][_0xd2a746(0x160)](_0x58133c['id']))return;const {id:_0x5e9354}=_0x58133c;let _0x4cf3be;_0x29bbda[_0xd2a746(0x1ee)](_0x5e9354)?_0x4cf3be=_0x29bbda['get'](_0x5e9354):(_0x4cf3be=new _0x25a16f(),_0x29bbda['set'](_0x5e9354,_0x4cf3be),_0x4cf3be[_0xd2a746(0x177)](_0xee77ca((_0x1c3d76=this[_0xd2a746(0x16d)][_0xd2a746(0x195)](Pe))!=null?_0x1c3d76:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4f9cbd=>{var _0x53ca8=_0xd2a746;this[_0x53ca8(0x1bb)][_0x53ca8(0x1ab)]({'eventID':_0x45c8cc[_0x53ca8(0x1e7)],'data':{'unitID':this[_0x53ca8(0x194)],'operations':{[_0x4f9cbd['id']]:{'id':_0x4f9cbd['id'],'params':JSON[_0x53ca8(0x1c3)](_0x4f9cbd[_0x53ca8(0x1ed)])}}}},this['_unitID']);})),_0x4cf3be[_0xd2a746(0x1cd)](_0x58133c);})),this[_0x159763(0x147)][_0x159763(0x1c0)](this[_0x159763(0x194)])['forEach'](_0x1404fd=>this[_0x159763(0x1bb)][_0x159763(0x1ab)]({'eventID':_0x45c8cc[_0x159763(0x1e7)],'data':{'unitID':this[_0x159763(0x194)],'operations':{[_0x1404fd['id']]:{'id':_0x1404fd['id'],'params':JSON[_0x159763(0x1c3)](_0x1404fd[_0x159763(0x1ed)])}}}},this[_0x159763(0x194)]));}['_stopPresenting'](){var _0x2c37d9=_0x351d60,_0x4ba27b;this['_status$'][_0x2c37d9(0x1cd)]('idle'),(_0x4ba27b=this['_commandDisposable'])==null||_0x4ba27b[_0x2c37d9(0x1b5)](),this[_0x2c37d9(0x1bf)]=null;}[_0x351d60(0x1c9)](){var _0x4b7293=_0x351d60,_0x3ea8b3;(_0x3ea8b3=this[_0x4b7293(0x1bf)])==null||_0x3ea8b3[_0x4b7293(0x1b5)](),this[_0x4b7293(0x15b)][_0x4b7293(0x1cd)](_0x4b7293(0x1ad));}[_0x351d60(0x1e8)](){var _0x4f7f0f=_0x351d60,_0x502f12;this[_0x4f7f0f(0x15b)][_0x4f7f0f(0x1cd)]('idle'),(_0x502f12=this[_0x4f7f0f(0x1bf)])==null||_0x502f12[_0x4f7f0f(0x1b5)](),this[_0x4f7f0f(0x1bf)]=null;}[_0x351d60(0x18f)](){var _0x3a27e8=_0x351d60,_0x14767d;this[_0x3a27e8(0x15b)][_0x3a27e8(0x1cd)]('not-following'),(_0x14767d=this[_0x3a27e8(0x1bf)])==null||_0x14767d[_0x3a27e8(0x1b5)]();}[_0x351d60(0x1b2)](_0x3d012e){var _0x1e9453=_0x351d60;if([_0x1e9453(0x199),_0x1e9453(0x178),_0x1e9453(0x1ec)][_0x1e9453(0x158)](this['_status'])||!_0x3d012e[_0x1e9453(0x19d)]['presenter']||_0x3d012e[_0x1e9453(0x19d)][_0x1e9453(0x16e)]===this[_0x1e9453(0x1bb)][_0x1e9453(0x14e)]())return;this[_0x1e9453(0x16b)]==='idle'&&this[_0x1e9453(0x1c9)]();const _0x2b2d0b=_0x3d012e['data'][_0x1e9453(0x15e)];Object[_0x1e9453(0x183)](_0x2b2d0b)[_0x1e9453(0x1f4)](_0x49c5d6=>{var _0x30eea5=_0x1e9453;this[_0x30eea5(0x15d)][_0x30eea5(0x192)](_0x49c5d6['id'],_0x49c5d6[_0x30eea5(0x1ed)]?JSON['parse'](_0x49c5d6[_0x30eea5(0x1ed)]):null,{'fromCollab':!0x0});});}[_0x351d60(0x176)](){var _0x1c449a=_0x351d60,_0x1e9e50;this['_status$']['next'](_0x1c449a(0x1ec)),(_0x1e9e50=this[_0x1c449a(0x1bf)])==null||_0x1e9e50['dispose']();}['_handleOnline'](){var _0x5d2211=_0x351d60;this[_0x5d2211(0x15b)][_0x5d2211(0x1cd)](_0x5d2211(0x1b1)),this[_0x5d2211(0x155)]();}};C=Z([f(0x2,_0x5be387),f(0x3,_0x3abca3(L)),f(0x4,_0x236614)],C);function Te(){var _0x5a3bfb=_0x351d60;const _0x1ccd49=_0x247355(I),_0x21c711=_0x247355(_0xe2d3f4),_0x3d57c2=_0x21ae04(()=>_0x21c711['getCurrentTypeOfUnit$'](_0x4d5efd[_0x5a3bfb(0x1ae)]),void 0x0,!0x1,[]),[_0x5af5b0,_0xcc65c3]=_0x2f9e5a(null),[_0xa7b908,_0x1c86a6]=_0x2f9e5a(h[_0x5a3bfb(0x16f)]),_0x2663b3=_0xc18a52(null);return _0x28d068(()=>(_0x3d57c2&&_0x1ccd49[_0x5a3bfb(0x153)](_0x3d57c2[_0x5a3bfb(0x190)]())[_0x5a3bfb(0x1d9)](_0x3e7446=>{var _0x29a76d=_0x5a3bfb;_0xcc65c3(_0x3e7446),_0x2663b3['current']=_0x3e7446[_0x29a76d(0x17d)]['subscribe'](_0x3d6218=>{_0x1c86a6(_0x3d6218);});}),()=>{var _0x33543b=_0x5a3bfb,_0xe84aff;(_0xe84aff=_0x2663b3['current'])==null||_0xe84aff[_0x33543b(0x1da)](),_0x2663b3['current']=null;}),[_0x3d57c2,_0x1ccd49]),_0x5af5b0?_0x37aa2b(_0x5f162c,{'align':_0x5a3bfb(0x1bd),'disabled':_0xa7b908===h['OFFLINE'],'className':_0x5a3bfb(0x143),'overlay':_0x37aa2b($e,{'status':_0xa7b908,'coordinator':_0x5af5b0}),'children':_0x37aa2b('button',{'className':_0x53843f(_0x5a3bfb(0x1f2),{'univer-cursor-not-allowed':_0xa7b908===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xa7b908!==h[_0x5a3bfb(0x19f)]}),'type':'button','children':_0x37aa2b(B,{'className':_0x5a3bfb(0x1a7)})})}):null;}function $e(_0x3d7363){var _0x542f01=_0x351d60;const {status:_0x58664e,coordinator:_0x5c4fe9}=_0x3d7363;switch(_0x58664e){case h[_0x542f01(0x16f)]:return _0x37aa2b(Fe,{'coordinator':_0x5c4fe9});case h[_0x542f01(0x1a6)]:return _0x37aa2b(He,{'coordinator':_0x5c4fe9});case h[_0x542f01(0x193)]:return _0x37aa2b(je,{'coordinator':_0x5c4fe9});case h['OFFLINE']:return _0x37aa2b(Ve,{});case h[_0x542f01(0x162)]:return _0x37aa2b(Ue,{'coordinator':_0x5c4fe9});default:return null;}}function Fe(_0x1926d9){var _0x4452c2=_0x351d60;const {coordinator:_0x5531de}=_0x1926d9;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x4452c2(0x18b),{'className':_0x4452c2(0x188),'children':_0x4452c2(0x1d7)}),_0x37aa2b(_0x2ee079,{'onClick':()=>_0x5531de[_0x4452c2(0x154)](),'children':_0x4452c2(0x161)})]});}function He(_0x2bcad2){var _0x4fac49=_0x351d60;const {coordinator:_0x17a3ee}=_0x2bcad2;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x4fac49(0x18b),{'className':_0x4fac49(0x188),'children':_0x4fac49(0x1e6)}),_0x37aa2b(_0x2ee079,{'onClick':()=>_0x17a3ee[_0x4fac49(0x16a)](),'children':_0x4fac49(0x1a4)})]});}function je(_0x29af5e){var _0x48fca9=_0x351d60;const {coordinator:_0x726358}=_0x29af5e;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x48fca9(0x18b),{'className':_0x48fca9(0x188),'children':_0x48fca9(0x1eb)}),_0x37aa2b(_0x2ee079,{'variant':_0x48fca9(0x1af),'onClick':()=>_0x726358[_0x48fca9(0x1f0)](),'children':_0x48fca9(0x1ea)})]});}function Ue(_0x1f2b97){var _0x5ac823=_0x351d60;const {coordinator:_0x1cb7d0}=_0x1f2b97;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x5ac823(0x18b),{'className':_0x5ac823(0x188),'children':_0x5ac823(0x1dc)}),_0x37aa2b(_0x2ee079,{'variant':'default','onClick':()=>_0x1cb7d0['stopPresenting'](),'children':_0x5ac823(0x182)})]});}function Ve(){var _0x538e5d=_0x351d60;return _0x37aa2b(_0x3db7a5,{'children':_0x538e5d(0x1d0)});}var Me=Object[_0x351d60(0x1be)],ke=(_0x34df80,_0x7604c8,_0x400b67,_0x25bab7)=>{var _0xb254b6=_0x351d60;for(var _0x2f8102=_0x25bab7>0x1?void 0x0:_0x25bab7?Me(_0x7604c8,_0x400b67):_0x7604c8,_0x4175f3=_0x34df80[_0xb254b6(0x189)]-0x1,_0x344cb8;_0x4175f3>=0x0;_0x4175f3--)(_0x344cb8=_0x34df80[_0x4175f3])&&(_0x2f8102=_0x344cb8(_0x2f8102)||_0x2f8102);return _0x2f8102;},$=(_0x39b57a,_0x74a61c)=>(_0x424acd,_0x52eb3c)=>_0x74a61c(_0x424acd,_0x52eb3c,_0x39b57a);let b=class extends _0x224e4c{constructor(_0x55a9d2,_0x34b986){var _0x559de6=_0x351d60;super(),this[_0x559de6(0x1c5)]=_0x55a9d2,this[_0x559de6(0x1c8)]=_0x34b986,this[_0x559de6(0x175)]();}[_0x351d60(0x175)](){var _0x151a72=_0x351d60;this['disposeWithMe'](this[_0x151a72(0x1c8)][_0x151a72(0x1db)](_0x4ca9bf[_0x151a72(0x1f5)],()=>_0x32a071(Te,this[_0x151a72(0x1c5)])));}};b=ke([$(0x0,_0x3abca3(_0x3d57c1)),$(0x1,_0x230a4f)],b);var Ge=Object[_0x351d60(0x17f)],We=Object[_0x351d60(0x1be)],Ye=(_0xe8d861,_0x59cacd,_0x54c48c)=>_0x59cacd in _0xe8d861?Ge(_0xe8d861,_0x59cacd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54c48c}):_0xe8d861[_0x59cacd]=_0x54c48c,Be=(_0x171c52,_0x2780dd,_0x445de9,_0x30dacd)=>{var _0x4891ce=_0x351d60;for(var _0x1797d1=_0x30dacd>0x1?void 0x0:_0x30dacd?We(_0x2780dd,_0x445de9):_0x2780dd,_0x176d02=_0x171c52[_0x4891ce(0x189)]-0x1,_0x12d568;_0x176d02>=0x0;_0x176d02--)(_0x12d568=_0x171c52[_0x176d02])&&(_0x1797d1=_0x12d568(_0x1797d1)||_0x1797d1);return _0x1797d1;},F=(_0xd81a3a,_0x198ee9)=>(_0x4afe72,_0x1c5b78)=>_0x198ee9(_0x4afe72,_0x1c5b78,_0xd81a3a),J=(_0x4d826a,_0x4b0cf0,_0x31876f)=>Ye(_0x4d826a,typeof _0x4b0cf0!=_0x351d60(0x1cf)?_0x4b0cf0+'':_0x4b0cf0,_0x31876f);const Ze=_0x351d60(0x1bc);let O=class extends _0x599154{constructor(_0x29abb2=T,_0x263e40,_0x2732a8){var _0x3e7af6=_0x351d60;super(),this[_0x3e7af6(0x1aa)]=_0x29abb2,this[_0x3e7af6(0x1c5)]=_0x263e40,this[_0x3e7af6(0x16d)]=_0x2732a8;const {..._0x5771c1}=_0x75c717({},T,this[_0x3e7af6(0x1aa)]);this[_0x3e7af6(0x16d)][_0x3e7af6(0x184)](Oe,_0x5771c1);}[_0x351d60(0x17c)](){var _0x3b2fb7=_0x351d60;_0x5bf58d(this['_injector'],_0x38e8e6([[L],[I],[m],[b]],this['_config']['override'])),_0x281800(this[_0x3b2fb7(0x1c5)],[[m]]);}[_0x351d60(0x1dd)](){var _0x227f11=_0x351d60;_0x281800(this[_0x227f11(0x1c5)],[[b]]);}};function _0x5600(_0x49bd8d,_0x394706){var _0x2b53ef=_0x2b53();return _0x5600=function(_0x560029,_0x471ecd){_0x560029=_0x560029-0x143;var _0x37baa4=_0x2b53ef[_0x560029];return _0x37baa4;},_0x5600(_0x49bd8d,_0x394706);}J(O,_0x351d60(0x148),_0x4d5efd['UNIVER_UNKNOWN']),J(O,_0x351d60(0x19e),Ze),O=Be([_0x2195b7(_0x29bcfe),F(0x1,_0x3abca3(_0x3d57c1)),F(0x2,_0x5be387)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x1d8b53=_0x4a93;(function(_0x1c412a,_0x4721e1){var _0x48051f=_0x4a93,_0x5ebf7c=_0x1c412a();while(!![]){try{var _0x2cc816=-parseInt(_0x48051f(0x1e8))/0x1+-parseInt(_0x48051f(0x1d5))/0x2*(parseInt(_0x48051f(0x204))/0x3)+parseInt(_0x48051f(0x20d))/0x4+parseInt(_0x48051f(0x1c4))/0x5*(-parseInt(_0x48051f(0x220))/0x6)+parseInt(_0x48051f(0x21c))/0x7+-parseInt(_0x48051f(0x1a9))/0x8+parseInt(_0x48051f(0x1ef))/0x9;if(_0x2cc816===_0x4721e1)break;else _0x5ebf7c['push'](_0x5ebf7c['shift']());}catch(_0x47f457){_0x5ebf7c['push'](_0x5ebf7c['shift']());}}}(_0x3bc7,0xb2c5d));var q=Object[_0x1d8b53(0x1be)],z=(_0x1b8315,_0x9c876a,_0x1ad484)=>_0x9c876a in _0x1b8315?q(_0x1b8315,_0x9c876a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ad484}):_0x1b8315[_0x9c876a]=_0x1ad484,d=(_0xe4ee69,_0x20184e,_0x1dcd7d)=>z(_0xe4ee69,typeof _0x20184e!=_0x1d8b53(0x1a7)?_0x20184e+'':_0x20184e,_0x1dcd7d);import{CollaborationSessionService as _0x4cef2c,SessionStatus as _0x5cfa23,UniverCollaborationClientPlugin as _0x4073ea}from'@univerjs-pro/collaboration-client';import{Disposable as _0xea3d2e,toDisposable as _0x172916,Inject as _0x239a44,IUniverInstanceService as _0xe4611b,Injector as _0x192d3b,IConfigService as _0x558741,ICommandService as _0x584762,RxDisposable as _0x260b45,UniverInstanceType as _0x33fb10,DisposableCollection as _0x211483,CommandType as _0x5e8cc6,DependentOn as _0x98ddff,Plugin as _0x587f09,merge as _0xa177d7,registerDependencies as _0x174d4e,mergeOverrideWithDependencies as _0x27a061,touchDependencies as _0x49be97}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x286b47,InsertSheetMutation as _0x331837}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x158b6e,SetScrollOperation as _0x4d2280}from'@univerjs/sheets-ui';import{useDependency as _0x14ae59,useObservable as _0xe07f56,IUIPartsService as _0x241906,BuiltInUIPart as _0x1217a7,connectInjector as _0x5143ac}from'@univerjs/ui';import{jsx as _0x2f0961,jsxs as _0x2dbab2,Fragment as _0x12f368}from'react/jsx-runtime';import{Dropdown as _0x46ea1d,clsx as _0x39a291,Button as _0x226687}from'@univerjs/design';import{forwardRef as _0x15ec25,useRef as _0x3ecb29,createElement as _0x16e93a,useState as _0x48688c,useEffect as _0x22643b}from'react';import{CollaborationEvent as _0x30c7bc,parseProtocolChangeset as _0x1495b0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3cc28c,Subject as _0x4fab24}from'rxjs';import{takeUntil as _0x1ced03,throttleTime as _0x32385e}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0xea3d2e{constructor(){var _0x258f43=_0x1d8b53;super(...arguments),d(this,_0x258f43(0x217),new Set()),d(this,_0x258f43(0x1ed),new Set());}[_0x1d8b53(0x21d)](_0x4cbe8a){var _0x4c88d8=_0x1d8b53;return this['_sharedOperations']['add'](_0x4cbe8a),_0x172916(()=>this[_0x4c88d8(0x217)][_0x4c88d8(0x20e)](_0x4cbe8a));}[_0x1d8b53(0x1bf)](_0xceda9c){var _0x27f845=_0x1d8b53;return this[_0x27f845(0x1ed)][_0x27f845(0x1c1)](_0xceda9c),_0x172916(()=>this[_0x27f845(0x1ed)][_0x27f845(0x20e)](_0xceda9c));}['shouldShareOperation'](_0x3c2446){var _0x489af5=_0x1d8b53;return this[_0x489af5(0x217)][_0x489af5(0x19b)](_0x3c2446);}['getInitialStates'](_0x185644){var _0x5662c7=_0x1d8b53;return Array[_0x5662c7(0x174)](this['_reporters'])[_0x5662c7(0x1b8)](_0x3c81ab=>_0x3c81ab(_0x185644));}}var Ee=Object[_0x1d8b53(0x1e2)],we=(_0x1a142e,_0x249868,_0x25d5e9,_0x3699e1)=>{for(var _0x32749e=_0x3699e1>0x1?void 0x0:_0x3699e1?Ee(_0x249868,_0x25d5e9):_0x249868,_0x14af68=_0x1a142e['length']-0x1,_0x4a9ed9;_0x14af68>=0x0;_0x14af68--)(_0x4a9ed9=_0x1a142e[_0x14af68])&&(_0x32749e=_0x4a9ed9(_0x32749e)||_0x32749e);return _0x32749e;},Ne=(_0x207cb9,_0x46b086)=>(_0x561061,_0xf87905)=>_0x46b086(_0x561061,_0xf87905,_0x207cb9);let m=class extends _0xea3d2e{constructor(_0x7300ec){var _0x108b47=_0x1d8b53;super(),this['_liveShareService']=_0x7300ec,this[_0x108b47(0x1f8)]();}[_0x1d8b53(0x1f8)](){var _0x47120d=_0x1d8b53;[_0x158b6e['id'],_0x4d2280['id'],_0x286b47['id']][_0x47120d(0x194)](_0x5b528d=>{var _0x4f00fb=_0x47120d;this[_0x4f00fb(0x219)](this[_0x4f00fb(0x180)][_0x4f00fb(0x21d)](_0x5b528d));});}};m=we([Ne(0x0,_0x239a44(L))],m);function _0x4a93(_0x2fd27e,_0x12a581){var _0x3bc7b3=_0x3bc7();return _0x4a93=function(_0x4a939b,_0x4f5d24){_0x4a939b=_0x4a939b-0x16c;var _0x1c49ee=_0x3bc7b3[_0x4a939b];return _0x1c49ee;},_0x4a93(_0x2fd27e,_0x12a581);}var c=function(){var _0x26a520=_0x1d8b53;return c=Object[_0x26a520(0x198)]||function(_0xbf9792){var _0x1ef818=_0x26a520;for(var _0x2e00f4,_0x45a39e=0x1,_0x22e0e0=arguments[_0x1ef818(0x188)];_0x45a39e<_0x22e0e0;_0x45a39e++){_0x2e00f4=arguments[_0x45a39e];for(var _0x53003f in _0x2e00f4)Object[_0x1ef818(0x1dd)]['hasOwnProperty'][_0x1ef818(0x175)](_0x2e00f4,_0x53003f)&&(_0xbf9792[_0x53003f]=_0x2e00f4[_0x53003f]);}return _0xbf9792;},c[_0x26a520(0x1c0)](this,arguments);},Ce=function(_0x1e0df3,_0x18ad15){var _0x59a2e4=_0x1d8b53,_0x244a8b={};for(var _0x3ad7aa in _0x1e0df3)Object['prototype']['hasOwnProperty'][_0x59a2e4(0x175)](_0x1e0df3,_0x3ad7aa)&&_0x18ad15[_0x59a2e4(0x191)](_0x3ad7aa)<0x0&&(_0x244a8b[_0x3ad7aa]=_0x1e0df3[_0x3ad7aa]);if(_0x1e0df3!=null&&typeof Object['getOwnPropertySymbols']==_0x59a2e4(0x170)){for(var _0x19eba5=0x0,_0x3ad7aa=Object[_0x59a2e4(0x209)](_0x1e0df3);_0x19eba5<_0x3ad7aa[_0x59a2e4(0x188)];_0x19eba5++)_0x18ad15[_0x59a2e4(0x191)](_0x3ad7aa[_0x19eba5])<0x0&&Object[_0x59a2e4(0x1dd)]['propertyIsEnumerable'][_0x59a2e4(0x175)](_0x1e0df3,_0x3ad7aa[_0x19eba5])&&(_0x244a8b[_0x3ad7aa[_0x19eba5]]=_0x1e0df3[_0x3ad7aa[_0x19eba5]]);}return _0x244a8b;},W=_0x15ec25(function(_0x22a4f9,_0x18b145){var _0x22c426=_0x1d8b53,_0x74fc5b=_0x22a4f9[_0x22c426(0x1b7)],_0x546ff6=_0x22a4f9['id'],_0x3c29e4=_0x22a4f9[_0x22c426(0x16f)],_0x40e04e=_0x22a4f9['extend'],_0x245f9d=Ce(_0x22a4f9,['icon','id',_0x22c426(0x16f),_0x22c426(0x171)]),_0x2de780=_0x22c426(0x1fc)[_0x22c426(0x1c8)](_0x546ff6,'\x20')[_0x22c426(0x1c8)](_0x3c29e4||'')[_0x22c426(0x16c)](),_0x34ecf4=_0x3ecb29('_'['concat'](Le()));return Y(_0x74fc5b,''['concat'](_0x546ff6),{'defIds':_0x74fc5b[_0x22c426(0x1a6)],'idSuffix':_0x34ecf4[_0x22c426(0x197)]},c({'ref':_0x18b145,'className':_0x2de780},_0x245f9d),_0x40e04e);});function Y(_0x357dcc,_0xd13a72,_0x51a57e,_0x174d64,_0x12fe0e){var _0x59fb1b=_0x1d8b53;return _0x16e93a(_0x357dcc['tag'],c(c({'key':_0xd13a72},De(_0x357dcc,_0x51a57e,_0x12fe0e)),_0x174d64),(xe(_0x357dcc,_0x51a57e)[_0x59fb1b(0x1a8)]||[])[_0x59fb1b(0x1b8)](function(_0x215130,_0x2954ea){var _0xe4ba90=_0x59fb1b;return Y(_0x215130,''[_0xe4ba90(0x1c8)](_0xd13a72,'-')[_0xe4ba90(0x1c8)](_0x357dcc[_0xe4ba90(0x1fe)],'-')['concat'](_0x2954ea),_0x51a57e,void 0x0,_0x12fe0e);}));}function De(_0x4fb37a,_0x17e4ae,_0x140622){var _0x4c57ec=_0x1d8b53,_0x575c2e=c({},_0x4fb37a[_0x4c57ec(0x218)]);_0x140622!=null&&_0x140622['colorChannel1']&&_0x575c2e[_0x4c57ec(0x19d)]===_0x4c57ec(0x19e)&&(_0x575c2e[_0x4c57ec(0x19d)]=_0x140622[_0x4c57ec(0x19e)]),_0x4fb37a[_0x4c57ec(0x1fe)]===_0x4c57ec(0x1d6)&&_0x575c2e['id']&&(_0x575c2e['id']=_0x575c2e['id']+_0x17e4ae[_0x4c57ec(0x1af)]),Object[_0x4c57ec(0x1f3)](_0x575c2e)[_0x4c57ec(0x194)](function(_0x1392e8){var _0x1d9695=_0x4c57ec,_0x4f189c=_0x1392e8[0x0],_0x5cc21c=_0x1392e8[0x1];_0x4f189c==='mask'&&typeof _0x5cc21c=='string'&&(_0x575c2e[_0x4f189c]=_0x5cc21c[_0x1d9695(0x1ee)](/url\(#(.*)\)/,_0x1d9695(0x1b9)[_0x1d9695(0x1c8)](_0x17e4ae[_0x1d9695(0x1af)],')')));});var _0x5f3a5c=_0x17e4ae[_0x4c57ec(0x1a6)];return!_0x5f3a5c||_0x5f3a5c['length']===0x0||(_0x4fb37a[_0x4c57ec(0x1fe)]==='use'&&_0x575c2e[_0x4c57ec(0x214)]&&(_0x575c2e[_0x4c57ec(0x214)]=_0x575c2e[_0x4c57ec(0x214)]+_0x17e4ae[_0x4c57ec(0x1af)]),Object[_0x4c57ec(0x1f3)](_0x575c2e)[_0x4c57ec(0x194)](function(_0x367307){var _0x380aba=_0x4c57ec,_0x3fb3f5=_0x367307[0x0],_0xd9c0dc=_0x367307[0x1];typeof _0xd9c0dc==_0x380aba(0x196)&&(_0x575c2e[_0x3fb3f5]=_0xd9c0dc['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x17e4ae[_0x380aba(0x1af)],')')));})),_0x575c2e;}function xe(_0x12ba6e,_0x4b1536){var _0x160606=_0x1d8b53,_0x17c74b,_0x156cd4=_0x4b1536[_0x160606(0x1a6)];return!_0x156cd4||_0x156cd4['length']===0x0?_0x12ba6e:_0x12ba6e[_0x160606(0x1fe)]===_0x160606(0x208)&&(!((_0x17c74b=_0x12ba6e['children'])===null||_0x17c74b===void 0x0)&&_0x17c74b[_0x160606(0x188)])?c(c({},_0x12ba6e),{'children':_0x12ba6e[_0x160606(0x1a8)][_0x160606(0x1b8)](function(_0x5a92f0){var _0x4c7f0f=_0x160606;return typeof _0x5a92f0[_0x4c7f0f(0x218)]['id']==_0x4c7f0f(0x196)&&_0x156cd4&&_0x156cd4['includes'](_0x5a92f0['attrs']['id'])?c(c({},_0x5a92f0),{'attrs':c(c({},_0x5a92f0[_0x4c7f0f(0x218)]),{'id':_0x5a92f0[_0x4c7f0f(0x218)]['id']+_0x4b1536['idSuffix']})}):_0x5a92f0;})}):_0x12ba6e;}function Le(){var _0x5e8c8=_0x1d8b53;return Math[_0x5e8c8(0x1dc)]()[_0x5e8c8(0x21f)](0x24)[_0x5e8c8(0x206)](0x2,0x8);}W['displayName']=_0x1d8b53(0x1b4);var ye={'tag':'svg','attrs':{'xmlns':_0x1d8b53(0x19f),'fill':_0x1d8b53(0x17f),'viewBox':'0\x200\x2017\x2017','width':_0x1d8b53(0x1f4),'height':_0x1d8b53(0x1f4)},'children':[{'tag':_0x1d8b53(0x1f2),'attrs':{'fill':_0x1d8b53(0x1f9),'d':_0x1d8b53(0x179)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x1d8b53(0x215),'fillRule':_0x1d8b53(0x1cd),'clipRule':'evenodd'}}]},B=_0x15ec25(function(_0x5a2619,_0x143821){var _0xc16824=_0x1d8b53;return _0x16e93a(W,Object['assign']({},_0x5a2619,{'id':_0xc16824(0x1bd),'ref':_0x143821,'icon':ye}));});B[_0x1d8b53(0x1e6)]=_0x1d8b53(0x18f);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x40c314,_0x3a0ec6,_0x2bc05e,_0x2a5976)=>{var _0x3f37c1=_0x1d8b53;for(var _0x17dbc5=_0x2a5976>0x1?void 0x0:_0x2a5976?Re(_0x3a0ec6,_0x2bc05e):_0x3a0ec6,_0x313424=_0x40c314[_0x3f37c1(0x188)]-0x1,_0x187c97;_0x313424>=0x0;_0x313424--)(_0x187c97=_0x40c314[_0x313424])&&(_0x17dbc5=_0x187c97(_0x17dbc5)||_0x17dbc5);return _0x17dbc5;},f=(_0x86ef21,_0x1eb35f)=>(_0x231bb1,_0x4f3bf4)=>_0x1eb35f(_0x231bb1,_0x4f3bf4,_0x86ef21);let I=class extends _0x260b45{constructor(_0x5f6d2b,_0x9ca862,_0x49c362){var _0x4fbbf4=_0x1d8b53;super(),d(this,_0x4fbbf4(0x17d),new Map()),(this[_0x4fbbf4(0x17c)]=_0x5f6d2b,this[_0x4fbbf4(0x1ca)]=_0x9ca862,this[_0x4fbbf4(0x1c5)]=_0x49c362,this[_0x4fbbf4(0x1f8)]());}async[_0x1d8b53(0x1d4)](_0xe3a0e4){var _0x46da20=_0x1d8b53;return this[_0x46da20(0x17d)][_0x46da20(0x19b)](_0xe3a0e4)||await this[_0x46da20(0x16e)](_0xe3a0e4),this[_0x46da20(0x17d)][_0x46da20(0x20a)](_0xe3a0e4);}[_0x1d8b53(0x1f8)](){var _0x2d063f=_0x1d8b53;this[_0x2d063f(0x17c)][_0x2d063f(0x1f0)](_0x33fb10[_0x2d063f(0x221)])[_0x2d063f(0x193)](_0x1ced03(this[_0x2d063f(0x1d0)]))[_0x2d063f(0x182)](async _0x5af0db=>{var _0x33ea4a=_0x2d063f;const _0xf8fe09=_0x5af0db[_0x33ea4a(0x207)]();this[_0x33ea4a(0x17d)]['has'](_0xf8fe09)||this[_0x33ea4a(0x16e)](_0xf8fe09);}),this[_0x2d063f(0x17c)][_0x2d063f(0x1ea)](_0x33fb10[_0x2d063f(0x221)])[_0x2d063f(0x193)](_0x1ced03(this[_0x2d063f(0x1d0)]))['subscribe'](_0x5f4a45=>{var _0x12a431=_0x2d063f;const _0x7539de=_0x5f4a45[_0x12a431(0x207)](),_0x48abca=this[_0x12a431(0x17d)][_0x12a431(0x20a)](_0x7539de);_0x48abca==null||_0x48abca[_0x12a431(0x189)]();});}async[_0x1d8b53(0x16e)](_0x267c9e){var _0x33374b=_0x1d8b53;const _0x3af11c=await this[_0x33374b(0x1c5)][_0x33374b(0x1c7)](_0x267c9e),_0x1a2adb=this[_0x33374b(0x1ca)]['createInstance'](C,_0x267c9e,_0x3af11c);return _0x1a2adb['init'](),this[_0x33374b(0x17d)][_0x33374b(0x213)](_0x267c9e,_0x1a2adb),_0x1a2adb;}};I=Z([f(0x0,_0xe4611b),f(0x1,_0x239a44(_0x192d3b)),f(0x2,_0x239a44(_0x4cef2c))],I);var h=(_0x1121fa=>(_0x1121fa['OFFLINE']=_0x1d8b53(0x1ad),_0x1121fa[_0x1d8b53(0x18a)]=_0x1d8b53(0x173),_0x1121fa['FOLLOWING']='following',_0x1121fa[_0x1d8b53(0x1de)]=_0x1d8b53(0x20b),_0x1121fa[_0x1d8b53(0x21b)]=_0x1d8b53(0x1c9),_0x1121fa))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x260b45{constructor(_0x36254e,_0x29780f,_0x29f97e,_0xb9965a,_0x8dbfab){var _0x39fda8=_0x1d8b53;super(),d(this,_0x39fda8(0x1df),new _0x3cc28c(_0x39fda8(0x173))),d(this,_0x39fda8(0x1b3),this[_0x39fda8(0x1df)][_0x39fda8(0x212)]()),d(this,'_init',!0x1),d(this,_0x39fda8(0x177),null),d(this,_0x39fda8(0x1e0),null),(this['_unitID']=_0x36254e,this[_0x39fda8(0x205)]=_0x29780f,this['_configService']=_0x29f97e,this[_0x39fda8(0x180)]=_0xb9965a,this[_0x39fda8(0x185)]=_0x8dbfab);}get[_0x1d8b53(0x1a4)](){var _0x5da06c=_0x1d8b53;return this['_status$'][_0x5da06c(0x1d8)]();}[_0x1d8b53(0x189)](){var _0xe3b2c9=_0x1d8b53,_0x3b64a4;(_0x3b64a4=this[_0xe3b2c9(0x177)])==null||_0x3b64a4[_0xe3b2c9(0x189)](),this[_0xe3b2c9(0x1df)][_0xe3b2c9(0x1e5)](_0xe3b2c9(0x173)),this[_0xe3b2c9(0x1df)][_0xe3b2c9(0x1da)]();}[_0x1d8b53(0x1e7)](){var _0x14ad78=_0x1d8b53;this[_0x14ad78(0x1f8)]||(this[_0x14ad78(0x1f8)]=!0x0,this['_collabSession'][_0x14ad78(0x1ec)][_0x14ad78(0x193)](_0x1ced03(this[_0x14ad78(0x1d0)]))[_0x14ad78(0x182)](_0x59bf7a=>{var _0x1840d9=_0x14ad78;switch(_0x59bf7a){case _0x5cfa23[_0x1840d9(0x1aa)]:this[_0x1840d9(0x1ae)]();break;case _0x5cfa23[_0x1840d9(0x18e)]:this[_0x1840d9(0x1a5)]();break;}}),this[_0x14ad78(0x205)]['event$'][_0x14ad78(0x193)](_0x1ced03(this[_0x14ad78(0x1d0)]))[_0x14ad78(0x182)](_0x43904e=>{var _0xb170c3=_0x14ad78;const {eventID:_0x58bec8}=_0x43904e;switch(_0x58bec8){case _0x30c7bc[_0xb170c3(0x19a)]:this[_0xb170c3(0x1fd)](_0x43904e);break;case _0x30c7bc[_0xb170c3(0x195)]:this[_0xb170c3(0x1e9)](_0x43904e);break;case _0x30c7bc[_0xb170c3(0x201)]:this[_0xb170c3(0x21a)]();break;case _0x30c7bc[_0xb170c3(0x1d7)]:this[_0xb170c3(0x1fb)](_0x43904e);break;}}));}['tryStartPresenting'](){var _0x1db995=_0x1d8b53;this['_collabSession'][_0x1db995(0x1c6)]({'eventID':_0x30c7bc[_0x1db995(0x16d)],'data':{'unitID':this[_0x1db995(0x17e)],'userID':this[_0x1db995(0x205)]['getMemberID']()}},this[_0x1db995(0x17e)]);}[_0x1d8b53(0x203)](){var _0x5d6f76=_0x1d8b53;this[_0x5d6f76(0x1a4)]===_0x5d6f76(0x1c9)&&(this[_0x5d6f76(0x1df)][_0x5d6f76(0x1e5)]('idle'),this['_collabSession']['send']({'eventID':_0x30c7bc['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x5d6f76(0x17e)]}},this[_0x5d6f76(0x17e)]));}[_0x1d8b53(0x1cb)](){var _0x4106f2=_0x1d8b53;this[_0x4106f2(0x1a4)]===_0x4106f2(0x20b)&&(this[_0x4106f2(0x1df)][_0x4106f2(0x1e5)](_0x4106f2(0x1bc)),this[_0x4106f2(0x1ff)]());}['stopFollowing'](){var _0x1ec1c7=_0x1d8b53;this[_0x1ec1c7(0x1a4)]==='following'&&this[_0x1ec1c7(0x1f6)]();}['_handleNewHost'](_0x4b3227){var _0x11d74b=_0x1d8b53;const {presenter:_0x5b616d}=_0x4b3227[_0x11d74b(0x210)],_0x4eaaad=this[_0x11d74b(0x205)]['getMemberID']();this['_presenter']=_0x5b616d,_0x5b616d===_0x4eaaad?(this['_stopFollowing'](),this[_0x11d74b(0x18d)]()):this['_status']!==_0x11d74b(0x20b)&&(this[_0x11d74b(0x20f)](),this[_0x11d74b(0x1ff)]());}[_0x1d8b53(0x1a2)](){var _0x440bab=_0x1d8b53;const _0x4d8bf5={'eventID':_0x30c7bc[_0x440bab(0x1bb)]};this[_0x440bab(0x205)][_0x440bab(0x1c6)](_0x4d8bf5,this['_unitID']);}[_0x1d8b53(0x21a)](){var _0x52478d=_0x1d8b53;this[_0x52478d(0x1e0)]=null,this[_0x52478d(0x1a4)]!==_0x52478d(0x1c9)&&this[_0x52478d(0x1b1)]();}[_0x1d8b53(0x1fb)](_0x57ed1a){var _0xea3bc6=_0x1d8b53;if(this['_status']==='following'&&this[_0xea3bc6(0x1e0)]===_0x57ed1a[_0xea3bc6(0x210)][_0xea3bc6(0x1cc)]){const _0x4006f0=_0x1495b0(_0x57ed1a['data'])[_0xea3bc6(0x1db)][_0xea3bc6(0x183)]()[_0xea3bc6(0x19c)](_0x4aad10=>_0x4aad10['id']===_0x331837['id']);if(_0x4006f0){const _0x3d832b=_0x4006f0[_0xea3bc6(0x1b5)][_0xea3bc6(0x1f7)],_0xb20378=_0x4006f0[_0xea3bc6(0x1b5)][_0xea3bc6(0x1ba)]['id'];setTimeout(()=>{var _0x1fce3e=_0xea3bc6;this[_0x1fce3e(0x185)][_0x1fce3e(0x1cf)](_0x286b47['id'],{'unitId':_0x3d832b,'subUnitId':_0xb20378},{'fromCollab':!0x0});});}}}[_0x1d8b53(0x18d)](){var _0x53e7da=_0x1d8b53;this['_status$']['next'](_0x53e7da(0x1c9));const _0x4ac352=new Map(),_0x28dcc5=this['_commandDisposable']=new _0x211483();_0x28dcc5['add'](_0x172916(()=>{var _0x143db0=_0x53e7da;_0x4ac352[_0x143db0(0x194)](_0xaff821=>_0xaff821[_0x143db0(0x1da)]()),_0x4ac352[_0x143db0(0x1f5)]();})),_0x28dcc5['add'](this[_0x53e7da(0x185)][_0x53e7da(0x1a1)](_0x1235b7=>{var _0x339098=_0x53e7da,_0x2da055;if(_0x1235b7['type']!==_0x5e8cc6[_0x339098(0x199)]||!this[_0x339098(0x180)]['shouldShareOperation'](_0x1235b7['id']))return;const {id:_0x1b78e2}=_0x1235b7;let _0x511d48;_0x4ac352[_0x339098(0x19b)](_0x1b78e2)?_0x511d48=_0x4ac352[_0x339098(0x20a)](_0x1b78e2):(_0x511d48=new _0x4fab24(),_0x4ac352[_0x339098(0x213)](_0x1b78e2,_0x511d48),_0x511d48[_0x339098(0x193)](_0x32385e((_0x2da055=this[_0x339098(0x192)][_0x339098(0x1eb)](Pe))!=null?_0x2da055:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x339098(0x182)](_0x5cff80=>{var _0x131167=_0x339098;this['_collabSession'][_0x131167(0x1c6)]({'eventID':_0x30c7bc['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x5cff80['id']]:{'id':_0x5cff80['id'],'params':JSON['stringify'](_0x5cff80[_0x131167(0x1b5)])}}}},this['_unitID']);})),_0x511d48[_0x339098(0x1e5)](_0x1235b7);})),this[_0x53e7da(0x180)][_0x53e7da(0x1d1)](this[_0x53e7da(0x17e)])['forEach'](_0x25938e=>this[_0x53e7da(0x205)]['send']({'eventID':_0x30c7bc['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x53e7da(0x17e)],'operations':{[_0x25938e['id']]:{'id':_0x25938e['id'],'params':JSON[_0x53e7da(0x190)](_0x25938e['params'])}}}},this[_0x53e7da(0x17e)]));}[_0x1d8b53(0x20f)](){var _0x5622a0=_0x1d8b53,_0x1c9957;this[_0x5622a0(0x1df)][_0x5622a0(0x1e5)]('idle'),(_0x1c9957=this[_0x5622a0(0x177)])==null||_0x1c9957[_0x5622a0(0x189)](),this[_0x5622a0(0x177)]=null;}[_0x1d8b53(0x1ff)](){var _0x1c7d57=_0x1d8b53,_0x293426;(_0x293426=this['_commandDisposable'])==null||_0x293426['dispose'](),this[_0x1c7d57(0x1df)][_0x1c7d57(0x1e5)](_0x1c7d57(0x1bc));}[_0x1d8b53(0x1b1)](){var _0x29782e=_0x1d8b53,_0x114f3f;this[_0x29782e(0x1df)][_0x29782e(0x1e5)](_0x29782e(0x173)),(_0x114f3f=this[_0x29782e(0x177)])==null||_0x114f3f[_0x29782e(0x189)](),this[_0x29782e(0x177)]=null;}[_0x1d8b53(0x1f6)](){var _0x3f3989=_0x1d8b53,_0xa5d20d;this[_0x3f3989(0x1df)][_0x3f3989(0x1e5)](_0x3f3989(0x20b)),(_0xa5d20d=this['_commandDisposable'])==null||_0xa5d20d['dispose']();}[_0x1d8b53(0x1e9)](_0x29ee44){var _0x14243a=_0x1d8b53;if([_0x14243a(0x1c9),_0x14243a(0x20b),_0x14243a(0x1ad)][_0x14243a(0x1f1)](this[_0x14243a(0x1a4)])||!_0x29ee44[_0x14243a(0x210)][_0x14243a(0x17b)]||_0x29ee44['data'][_0x14243a(0x17b)]===this[_0x14243a(0x205)][_0x14243a(0x216)]())return;this[_0x14243a(0x1a4)]===_0x14243a(0x173)&&this[_0x14243a(0x1ff)]();const _0x12b7d3=_0x29ee44['data'][_0x14243a(0x1d2)];Object['values'](_0x12b7d3)[_0x14243a(0x194)](_0x3e84d9=>{var _0x416310=_0x14243a;this[_0x416310(0x185)][_0x416310(0x1cf)](_0x3e84d9['id'],_0x3e84d9[_0x416310(0x1b5)]?JSON[_0x416310(0x1e3)](_0x3e84d9[_0x416310(0x1b5)]):null,{'fromCollab':!0x0});});}[_0x1d8b53(0x1ae)](){var _0x1243a3=_0x1d8b53,_0x322e14;this[_0x1243a3(0x1df)][_0x1243a3(0x1e5)]('offline'),(_0x322e14=this['_commandDisposable'])==null||_0x322e14['dispose']();}[_0x1d8b53(0x1a5)](){var _0x5e4c7e=_0x1d8b53;this[_0x5e4c7e(0x1df)][_0x5e4c7e(0x1e5)](_0x5e4c7e(0x173)),this[_0x5e4c7e(0x1a2)]();}};C=Z([f(0x2,_0x558741),f(0x3,_0x239a44(L)),f(0x4,_0x584762)],C);function Te(){var _0xe3a83d=_0x1d8b53;const _0x1bc609=_0x14ae59(I),_0x1e5726=_0x14ae59(_0xe4611b),_0x1ba9de=_0xe07f56(()=>_0x1e5726[_0xe3a83d(0x17a)](_0x33fb10[_0xe3a83d(0x221)]),void 0x0,!0x1,[]),[_0x1fba3a,_0x4232ef]=_0x48688c(null),[_0x17c024,_0x19feac]=_0x48688c(h[_0xe3a83d(0x18a)]),_0x28b61e=_0x3ecb29(null);return _0x22643b(()=>(_0x1ba9de&&_0x1bc609['getLiveShareCoordinator'](_0x1ba9de[_0xe3a83d(0x207)]())[_0xe3a83d(0x1ce)](_0x2c8aa5=>{var _0xdc5ecc=_0xe3a83d;_0x4232ef(_0x2c8aa5),_0x28b61e['current']=_0x2c8aa5[_0xdc5ecc(0x1b3)][_0xdc5ecc(0x182)](_0xb71cd0=>{_0x19feac(_0xb71cd0);});}),()=>{var _0x49eb77=_0xe3a83d,_0x5ae364;(_0x5ae364=_0x28b61e[_0x49eb77(0x197)])==null||_0x5ae364[_0x49eb77(0x18c)](),_0x28b61e[_0x49eb77(0x197)]=null;}),[_0x1ba9de,_0x1bc609]),_0x1fba3a?_0x2f0961(_0x46ea1d,{'align':'end','disabled':_0x17c024===h[_0xe3a83d(0x1aa)],'className':_0xe3a83d(0x202),'overlay':_0x2f0961($e,{'status':_0x17c024,'coordinator':_0x1fba3a}),'children':_0x2f0961(_0xe3a83d(0x1b0),{'className':_0x39a291(_0xe3a83d(0x176),{'univer-cursor-not-allowed':_0x17c024===h[_0xe3a83d(0x1aa)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17c024!==h[_0xe3a83d(0x1aa)]}),'type':'button','children':_0x2f0961(B,{'className':_0xe3a83d(0x1c3)})})}):null;}function $e(_0x5c5ffa){var _0x12f431=_0x1d8b53;const {status:_0x2e8476,coordinator:_0x155618}=_0x5c5ffa;switch(_0x2e8476){case h['IDLE']:return _0x2f0961(Fe,{'coordinator':_0x155618});case h[_0x12f431(0x186)]:return _0x2f0961(He,{'coordinator':_0x155618});case h['NOT_FOLLOWING']:return _0x2f0961(je,{'coordinator':_0x155618});case h[_0x12f431(0x1aa)]:return _0x2f0961(Ve,{});case h[_0x12f431(0x21b)]:return _0x2f0961(Ue,{'coordinator':_0x155618});default:return null;}}function Fe(_0xf4ece9){var _0x3f55bc=_0x1d8b53;const {coordinator:_0x17275a}=_0xf4ece9;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x3f55bc(0x1b2),{'className':_0x3f55bc(0x1b6),'children':_0x3f55bc(0x200)}),_0x2f0961(_0x226687,{'onClick':()=>_0x17275a['tryStartPresenting'](),'children':_0x3f55bc(0x21e)})]});}function He(_0x25a0b9){var _0x321832=_0x1d8b53;const {coordinator:_0x3d2ca7}=_0x25a0b9;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x321832(0x1b2),{'className':_0x321832(0x1b6),'children':_0x321832(0x222)}),_0x2f0961(_0x226687,{'onClick':()=>_0x3d2ca7[_0x321832(0x1fa)](),'children':_0x321832(0x1c2)})]});}function je(_0x4844c4){var _0x1f2650=_0x1d8b53;const {coordinator:_0x161fb8}=_0x4844c4;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x1f2650(0x1b2),{'className':_0x1f2650(0x1b6),'children':_0x1f2650(0x1ab)}),_0x2f0961(_0x226687,{'variant':_0x1f2650(0x1a3),'onClick':()=>_0x161fb8['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x2a1062){var _0x3284b0=_0x1d8b53;const {coordinator:_0x394e66}=_0x2a1062;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x3284b0(0x1b2),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3284b0(0x1e1)}),_0x2f0961(_0x226687,{'variant':_0x3284b0(0x178),'onClick':()=>_0x394e66[_0x3284b0(0x203)](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x2f0961(_0x12f368,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x1d8b53(0x1e2)],ke=(_0x7123c9,_0x540667,_0x25ddae,_0xe8ad5a)=>{for(var _0x3b45e5=_0xe8ad5a>0x1?void 0x0:_0xe8ad5a?Me(_0x540667,_0x25ddae):_0x540667,_0x184b4a=_0x7123c9['length']-0x1,_0x4df781;_0x184b4a>=0x0;_0x184b4a--)(_0x4df781=_0x7123c9[_0x184b4a])&&(_0x3b45e5=_0x4df781(_0x3b45e5)||_0x3b45e5);return _0x3b45e5;},$=(_0x239d77,_0x1be1f5)=>(_0x42470d,_0x4b0316)=>_0x1be1f5(_0x42470d,_0x4b0316,_0x239d77);let b=class extends _0xea3d2e{constructor(_0x37729d,_0x1e1b1a){var _0x1baec1=_0x1d8b53;super(),this[_0x1baec1(0x1ca)]=_0x37729d,this[_0x1baec1(0x172)]=_0x1e1b1a,this[_0x1baec1(0x181)]();}[_0x1d8b53(0x181)](){var _0x33301f=_0x1d8b53;this[_0x33301f(0x219)](this['_uiPartsService'][_0x33301f(0x187)](_0x1217a7['HEADER_MENU'],()=>_0x5143ac(Te,this[_0x33301f(0x1ca)])));}};b=ke([$(0x0,_0x239a44(_0x192d3b)),$(0x1,_0x241906)],b);var Ge=Object['defineProperty'],We=Object[_0x1d8b53(0x1e2)],Ye=(_0x2707be,_0x5ec934,_0x104535)=>_0x5ec934 in _0x2707be?Ge(_0x2707be,_0x5ec934,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x104535}):_0x2707be[_0x5ec934]=_0x104535,Be=(_0x437d4d,_0x3544ba,_0x1be1cf,_0x202747)=>{var _0x116cb5=_0x1d8b53;for(var _0x39bad7=_0x202747>0x1?void 0x0:_0x202747?We(_0x3544ba,_0x1be1cf):_0x3544ba,_0x597aba=_0x437d4d[_0x116cb5(0x188)]-0x1,_0x211365;_0x597aba>=0x0;_0x597aba--)(_0x211365=_0x437d4d[_0x597aba])&&(_0x39bad7=_0x211365(_0x39bad7)||_0x39bad7);return _0x39bad7;},F=(_0x150923,_0x45834a)=>(_0xbb135f,_0x28d233)=>_0x45834a(_0xbb135f,_0x28d233,_0x150923),J=(_0x302fa7,_0x3c5270,_0xa67b06)=>Ye(_0x302fa7,typeof _0x3c5270!=_0x1d8b53(0x1a7)?_0x3c5270+'':_0x3c5270,_0xa67b06);function _0x3bc7(){var _0x46974d=['idSuffix','button','_beIdle','div','status$','UniverIcon','params','univer-mb-3\x20univer-w-full\x20univer-text-sm','icon','map','url(#$1','sheet','LIVESHARE_FETCH_OPERATIONS','following','live-share-icon','defineProperty','registerInitialStateReporter','apply','add','Stop\x20following','univer-size-4','161795fsSAun','_collabSessionService','send','requireSession','concat','presenting','_injector','startFollowing','memberID','evenodd','then','executeCommand','dispose$','getInitialStates','operations','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinator','2mdHYkt','mask','NEW_CHANGESETS','getValue','onStarting','complete','mutations','random','prototype','NOT_FOLLOWING','_status$','_presenter','You\x27re\x20presenting\x20the\x20document','getOwnPropertyDescriptor','parse','onRendered','next','displayName','init','642928HNEwYN','_handleOperation','getTypeOfUnitDisposed$','getConfig','sessionStatus$','_reporters','replace','23040747ntBToN','getTypeOfUnitAdded$','includes','path','entries','1em','clear','_stopFollowing','unitId','_init','currentColor','stopFollowing','_handleNewChangeSets','univerjs-icon\x20univerjs-icon-','_handleNewHost','tag','_startFollowing','Present\x20this\x20document','LIVESHARE_TERMINATE','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','stopPresenting','2534781ybidcH','_collabSession','substring','getUnitId','defs','getOwnPropertySymbols','get','not-following','override','3180276UfaCjV','delete','_stopPresenting','data','UNIVER_UNKNOWN','asObservable','set','xlink:href','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','getMemberID','_sharedOperations','attrs','disposeWithMe','_handleTerminate','PRESENTING','6303717rzJBYO','registerSharedOperation','Start','toString','138ufAhsK','UNIVER_SHEET','You\x27re\x20following\x20the\x20presenter','trim','LIVESHARE_REQUEST_HOST','_startLiveShareCoordinator','className','function','extend','_uiPartsService','idle','from','call','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','default','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','getCurrentTypeOfUnit$','presenter','_univerInstanceService','_entities','_unitID','none','_liveShareService','_mountLiveShare','subscribe','reverse','_config','_commandService','FOLLOWING','registerComponent','length','dispose','IDLE','pluginName','unsubscribe','_startPresenting','ONLINE','LiveShareIcon','stringify','indexOf','_configService','pipe','forEach','LIVESHARE_OPERATION','string','current','assign','OPERATION','LIVESHARE_NEW_HOST','has','find','fill','colorChannel1','http://www.w3.org/2000/svg','setConfig','onCommandExecuted','_fetchOperations','text','_status','_handleOnline','defIds','symbol','children','10330544BTrdHs','OFFLINE','You\x27re\x20not\x20following\x20the\x20presenter','type','offline','_handleOffline'];_0x3bc7=function(){return _0x46974d;};return _0x3bc7();}const Ze=_0x1d8b53(0x1d3);let O=class extends _0x587f09{constructor(_0x4c3fd6=T,_0x162f54,_0x1a5871){var _0x237978=_0x1d8b53;super(),this[_0x237978(0x184)]=_0x4c3fd6,this[_0x237978(0x1ca)]=_0x162f54,this[_0x237978(0x192)]=_0x1a5871;const {..._0x1dfa6c}=_0xa177d7({},T,this['_config']);this[_0x237978(0x192)][_0x237978(0x1a0)](Oe,_0x1dfa6c);}[_0x1d8b53(0x1d9)](){var _0x2870a0=_0x1d8b53;_0x174d4e(this[_0x2870a0(0x1ca)],_0x27a061([[L],[I],[m],[b]],this[_0x2870a0(0x184)][_0x2870a0(0x20c)])),_0x49be97(this[_0x2870a0(0x1ca)],[[m]]);}[_0x1d8b53(0x1e4)](){var _0x1afc44=_0x1d8b53;_0x49be97(this[_0x1afc44(0x1ca)],[[b]]);}};J(O,_0x1d8b53(0x1ac),_0x33fb10[_0x1d8b53(0x211)]),J(O,_0x1d8b53(0x18b),Ze),O=Be([_0x98ddff(_0x4073ea),F(0x1,_0x239a44(_0x192d3b)),F(0x2,_0x558741)],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 _0x482b(_0x18f058,_0x3d4b1c){var _0x49cabe=_0x49ca();return _0x482b=function(_0x482b47,_0x163f3f){_0x482b47=_0x482b47-0x64;var _0x4d3a88=_0x49cabe[_0x482b47];return _0x4d3a88;},_0x482b(_0x18f058,_0x3d4b1c);}(function(_0x5250ec,_0x28ea7a){var _0x21fc37=_0x482b,_0x3ed563=_0x5250ec();while(!![]){try{var _0x207183=-parseInt(_0x21fc37(0x64))/0x1+-parseInt(_0x21fc37(0x141))/0x2+parseInt(_0x21fc37(0xe7))/0x3+-parseInt(_0x21fc37(0x122))/0x4+parseInt(_0x21fc37(0xa2))/0x5*(parseInt(_0x21fc37(0xb1))/0x6)+parseInt(_0x21fc37(0x102))/0x7+parseInt(_0x21fc37(0x78))/0x8*(parseInt(_0x21fc37(0x89))/0x9);if(_0x207183===_0x28ea7a)break;else _0x3ed563['push'](_0x3ed563['shift']());}catch(_0x32d922){_0x3ed563['push'](_0x3ed563['shift']());}}}(_0x49ca,0x43697),function(_0xadf584,_0x6828f8){var _0x27e6e9=_0x482b;typeof exports==_0x27e6e9(0x10f)&&typeof module<'u'?_0x6828f8(exports,require(_0x27e6e9(0x140)),require(_0x27e6e9(0xec)),require('@univerjs/sheets'),require(_0x27e6e9(0x101)),require(_0x27e6e9(0x93)),require('react/jsx-runtime'),require(_0x27e6e9(0xf5)),require(_0x27e6e9(0xd2)),require(_0x27e6e9(0x8d)),require(_0x27e6e9(0x6b)),require(_0x27e6e9(0x11f))):typeof define=='function'&&define[_0x27e6e9(0xf4)]?define([_0x27e6e9(0xab),_0x27e6e9(0x140),_0x27e6e9(0xec),_0x27e6e9(0x131),'@univerjs/sheets-ui','@univerjs/ui','react/jsx-runtime',_0x27e6e9(0xf5),_0x27e6e9(0xd2),'@univerjs-pro/collaboration',_0x27e6e9(0x6b),_0x27e6e9(0x11f)],_0x6828f8):(_0xadf584=typeof globalThis<'u'?globalThis:_0xadf584||self,_0x6828f8(_0xadf584[_0x27e6e9(0xce)]={},_0xadf584[_0x27e6e9(0xc0)],_0xadf584[_0x27e6e9(0x8b)],_0xadf584[_0x27e6e9(0x7e)],_0xadf584[_0x27e6e9(0x12a)],_0xadf584[_0x27e6e9(0xe1)],_0xadf584['React'],_0xadf584[_0x27e6e9(0xd5)],_0xadf584[_0x27e6e9(0xe9)],_0xadf584[_0x27e6e9(0x86)],_0xadf584['rxjs'],_0xadf584[_0x27e6e9(0x6b)][_0x27e6e9(0x150)]));}(this,function(_0x224b11,_0x35ef0a,_0x8e9bb7,_0x154e22,_0x2de615,_0x156244,_0x212baf,_0x596c7f,_0x256040,_0x2e265e,_0x2e0944,_0x289fe9){'use strict';var _0x182584=_0x482b;var _0x2b813d=Object[_0x182584(0xb4)],_0x5a02d2=(_0x4f1be6,_0x19019d,_0x331dfe)=>_0x19019d in _0x4f1be6?_0x2b813d(_0x4f1be6,_0x19019d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x331dfe}):_0x4f1be6[_0x19019d]=_0x331dfe,_0x354d30=(_0x1d0b84,_0x3e5e97,_0x15f0e4)=>_0x5a02d2(_0x1d0b84,typeof _0x3e5e97!=_0x182584(0x147)?_0x3e5e97+'':_0x3e5e97,_0x15f0e4);const _0x24e3ba=_0x182584(0x152),_0x393318={};class _0x2dea8b extends _0x8e9bb7[_0x182584(0x14f)]{constructor(){var _0x18e63c=_0x182584;super(...arguments),_0x354d30(this,_0x18e63c(0x128),new Set()),_0x354d30(this,_0x18e63c(0xbf),new Set());}[_0x182584(0x90)](_0x16c09b){var _0x1a7201=_0x182584;return this['_sharedOperations'][_0x1a7201(0xa9)](_0x16c09b),_0x8e9bb7['toDisposable'](()=>this['_sharedOperations'][_0x1a7201(0x144)](_0x16c09b));}['registerInitialStateReporter'](_0x36f09e){var _0x23c663=_0x182584;return this[_0x23c663(0xbf)][_0x23c663(0xa9)](_0x36f09e),_0x8e9bb7[_0x23c663(0x149)](()=>this[_0x23c663(0xbf)][_0x23c663(0x144)](_0x36f09e));}[_0x182584(0xd7)](_0xbdaad7){var _0x3836a9=_0x182584;return this[_0x3836a9(0x128)]['has'](_0xbdaad7);}[_0x182584(0xae)](_0x4b3d38){var _0x4db406=_0x182584;return Array[_0x4db406(0x80)](this[_0x4db406(0xbf)])[_0x4db406(0x97)](_0x4f1634=>_0x4f1634(_0x4b3d38));}}var _0x50d3e8=Object[_0x182584(0x7f)],_0x3922da=(_0xa6f846,_0x1613e5,_0xf19d7a,_0x69d36e)=>{var _0x4a91fc=_0x182584;for(var _0x2aac1c=_0x69d36e>0x1?void 0x0:_0x69d36e?_0x50d3e8(_0x1613e5,_0xf19d7a):_0x1613e5,_0x4b31fa=_0xa6f846[_0x4a91fc(0x75)]-0x1,_0x2d98b0;_0x4b31fa>=0x0;_0x4b31fa--)(_0x2d98b0=_0xa6f846[_0x4b31fa])&&(_0x2aac1c=_0x2d98b0(_0x2aac1c)||_0x2aac1c);return _0x2aac1c;},_0x1c5739=(_0x818952,_0x40a436)=>(_0x2bca4d,_0x4b3856)=>_0x40a436(_0x2bca4d,_0x4b3856,_0x818952);let _0x5f55d9=class extends _0x8e9bb7[_0x182584(0x14f)]{constructor(_0x53cb67){var _0x4f0ddc=_0x182584;super(),this['_liveShareService']=_0x53cb67,this[_0x4f0ddc(0x14c)]();}[_0x182584(0x14c)](){var _0x1bce82=_0x182584;[_0x2de615[_0x1bce82(0xbe)]['id'],_0x2de615[_0x1bce82(0x143)]['id'],_0x154e22[_0x1bce82(0x71)]['id']][_0x1bce82(0x7b)](_0x4969f4=>{var _0x46c696=_0x1bce82;this[_0x46c696(0x13f)](this[_0x46c696(0xf9)][_0x46c696(0x90)](_0x4969f4));});}};_0x5f55d9=_0x3922da([_0x1c5739(0x0,_0x8e9bb7[_0x182584(0x137)](_0x2dea8b))],_0x5f55d9);var _0x2c1d4f=function(){var _0x3b5341=_0x182584;return _0x2c1d4f=Object[_0x3b5341(0x130)]||function(_0x42e61a){var _0x3c9adf=_0x3b5341;for(var _0x53452e,_0x5c343f=0x1,_0x2b2a00=arguments['length'];_0x5c343f<_0x2b2a00;_0x5c343f++){_0x53452e=arguments[_0x5c343f];for(var _0x4607f5 in _0x53452e)Object[_0x3c9adf(0xaf)][_0x3c9adf(0xc4)]['call'](_0x53452e,_0x4607f5)&&(_0x42e61a[_0x4607f5]=_0x53452e[_0x4607f5]);}return _0x42e61a;},_0x2c1d4f['apply'](this,arguments);},_0x57de56=function(_0x5b3fd6,_0x29684f){var _0x121695=_0x182584,_0x33070c={};for(var _0xce6cf6 in _0x5b3fd6)Object[_0x121695(0xaf)][_0x121695(0xc4)][_0x121695(0x9e)](_0x5b3fd6,_0xce6cf6)&&_0x29684f['indexOf'](_0xce6cf6)<0x0&&(_0x33070c[_0xce6cf6]=_0x5b3fd6[_0xce6cf6]);if(_0x5b3fd6!=null&&typeof Object[_0x121695(0x153)]=='function'){for(var _0x21963f=0x0,_0xce6cf6=Object[_0x121695(0x153)](_0x5b3fd6);_0x21963f<_0xce6cf6[_0x121695(0x75)];_0x21963f++)_0x29684f['indexOf'](_0xce6cf6[_0x21963f])<0x0&&Object['prototype'][_0x121695(0xf8)]['call'](_0x5b3fd6,_0xce6cf6[_0x21963f])&&(_0x33070c[_0xce6cf6[_0x21963f]]=_0x5b3fd6[_0xce6cf6[_0x21963f]]);}return _0x33070c;},_0x39ee26=_0x256040[_0x182584(0xee)](function(_0x1ebf84,_0x17c643){var _0x55824f=_0x182584,_0x31b52f=_0x1ebf84[_0x55824f(0xc2)],_0x34f65f=_0x1ebf84['id'],_0xc825e=_0x1ebf84['className'],_0x4fdf9e=_0x1ebf84[_0x55824f(0x146)],_0x297629=_0x57de56(_0x1ebf84,[_0x55824f(0xc2),'id',_0x55824f(0x85),_0x55824f(0x146)]),_0x4a2605=_0x55824f(0xde)['concat'](_0x34f65f,'\x20')['concat'](_0xc825e||'')['trim'](),_0x2ff66b=_0x256040[_0x55824f(0x103)]('_'[_0x55824f(0xd4)](_0x34405c()));return _0x2292b6(_0x31b52f,''[_0x55824f(0xd4)](_0x34f65f),{'defIds':_0x31b52f[_0x55824f(0xa6)],'idSuffix':_0x2ff66b['current']},_0x2c1d4f({'ref':_0x17c643,'className':_0x4a2605},_0x297629),_0x4fdf9e);});function _0x2292b6(_0x54d0f1,_0x8987aa,_0x5c04bc,_0x5f4eba,_0xa39383){var _0x251b16=_0x182584;return _0x256040[_0x251b16(0xac)](_0x54d0f1[_0x251b16(0x139)],_0x2c1d4f(_0x2c1d4f({'key':_0x8987aa},_0x47de06(_0x54d0f1,_0x5c04bc,_0xa39383)),_0x5f4eba),(_0x183ceb(_0x54d0f1,_0x5c04bc)[_0x251b16(0x9d)]||[])[_0x251b16(0x97)](function(_0x4a9f97,_0x1b4c70){var _0x1c9ef8=_0x251b16;return _0x2292b6(_0x4a9f97,''[_0x1c9ef8(0xd4)](_0x8987aa,'-')[_0x1c9ef8(0xd4)](_0x54d0f1[_0x1c9ef8(0x139)],'-')[_0x1c9ef8(0xd4)](_0x1b4c70),_0x5c04bc,void 0x0,_0xa39383);}));}function _0x47de06(_0x209b67,_0x502afc,_0x4deec9){var _0x452e8c=_0x182584,_0x3b8ec7=_0x2c1d4f({},_0x209b67[_0x452e8c(0x154)]);_0x4deec9!=null&&_0x4deec9[_0x452e8c(0x129)]&&_0x3b8ec7[_0x452e8c(0xbc)]===_0x452e8c(0x129)&&(_0x3b8ec7[_0x452e8c(0xbc)]=_0x4deec9[_0x452e8c(0x129)]),_0x209b67[_0x452e8c(0x139)]===_0x452e8c(0x136)&&_0x3b8ec7['id']&&(_0x3b8ec7['id']=_0x3b8ec7['id']+_0x502afc[_0x452e8c(0xb6)]),Object[_0x452e8c(0x145)](_0x3b8ec7)['forEach'](function(_0x4269bb){var _0x59f588=_0x452e8c,_0x3e085d=_0x4269bb[0x0],_0x47fbe1=_0x4269bb[0x1];_0x3e085d===_0x59f588(0x136)&&typeof _0x47fbe1==_0x59f588(0x9a)&&(_0x3b8ec7[_0x3e085d]=_0x47fbe1[_0x59f588(0xe3)](/url\(#(.*)\)/,_0x59f588(0x106)[_0x59f588(0xd4)](_0x502afc[_0x59f588(0xb6)],')')));});var _0x186947=_0x502afc['defIds'];return!_0x186947||_0x186947[_0x452e8c(0x75)]===0x0||(_0x209b67[_0x452e8c(0x139)]===_0x452e8c(0xcc)&&_0x3b8ec7['xlink:href']&&(_0x3b8ec7['xlink:href']=_0x3b8ec7[_0x452e8c(0xf1)]+_0x502afc[_0x452e8c(0xb6)]),Object[_0x452e8c(0x145)](_0x3b8ec7)[_0x452e8c(0x7b)](function(_0x142fd3){var _0x304e4b=_0x452e8c,_0x4282f2=_0x142fd3[0x0],_0x36979c=_0x142fd3[0x1];typeof _0x36979c=='string'&&(_0x3b8ec7[_0x4282f2]=_0x36979c[_0x304e4b(0xe3)](/url\(#(.*)\)/,_0x304e4b(0x106)[_0x304e4b(0xd4)](_0x502afc['idSuffix'],')')));})),_0x3b8ec7;}function _0x183ceb(_0x330d69,_0x54ae61){var _0x1d1ff3=_0x182584,_0x44c000,_0xdb1848=_0x54ae61['defIds'];return!_0xdb1848||_0xdb1848[_0x1d1ff3(0x75)]===0x0?_0x330d69:_0x330d69[_0x1d1ff3(0x139)]===_0x1d1ff3(0x72)&&(!((_0x44c000=_0x330d69[_0x1d1ff3(0x9d)])===null||_0x44c000===void 0x0)&&_0x44c000[_0x1d1ff3(0x75)])?_0x2c1d4f(_0x2c1d4f({},_0x330d69),{'children':_0x330d69['children']['map'](function(_0x37e0bc){var _0x5e50f1=_0x1d1ff3;return typeof _0x37e0bc[_0x5e50f1(0x154)]['id']=='string'&&_0xdb1848&&_0xdb1848[_0x5e50f1(0x81)](_0x37e0bc[_0x5e50f1(0x154)]['id'])?_0x2c1d4f(_0x2c1d4f({},_0x37e0bc),{'attrs':_0x2c1d4f(_0x2c1d4f({},_0x37e0bc['attrs']),{'id':_0x37e0bc['attrs']['id']+_0x54ae61[_0x5e50f1(0xb6)]})}):_0x37e0bc;})}):_0x330d69;}function _0x34405c(){var _0x59f82d=_0x182584;return Math[_0x59f82d(0x11d)]()[_0x59f82d(0xc5)](0x24)[_0x59f82d(0xed)](0x2,0x8);}_0x39ee26[_0x182584(0x88)]=_0x182584(0xff);var _0x5a1eb8={'tag':_0x182584(0x70),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x182584(0x107),'viewBox':_0x182584(0xc8),'width':'1em','height':'1em'},'children':[{'tag':_0x182584(0xf6),'attrs':{'fill':_0x182584(0xfb),'d':_0x182584(0x99)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x182584(0x92),'fillRule':_0x182584(0xc1),'clipRule':_0x182584(0xc1)}}]},_0x4c0bfa=_0x256040[_0x182584(0xee)](function(_0x1898a0,_0xc07ef5){var _0xb00c5=_0x182584;return _0x256040[_0xb00c5(0xac)](_0x39ee26,Object[_0xb00c5(0x130)]({},_0x1898a0,{'id':_0xb00c5(0xfa),'ref':_0xc07ef5,'icon':_0x5a1eb8}));});_0x4c0bfa['displayName']=_0x182584(0x68);var _0x130f1f=Object[_0x182584(0x7f)],_0x490635=(_0x321d97,_0x5e7225,_0x21aab4,_0x1885cc)=>{var _0x535aef=_0x182584;for(var _0x44a092=_0x1885cc>0x1?void 0x0:_0x1885cc?_0x130f1f(_0x5e7225,_0x21aab4):_0x5e7225,_0xaee86f=_0x321d97[_0x535aef(0x75)]-0x1,_0x4545ac;_0xaee86f>=0x0;_0xaee86f--)(_0x4545ac=_0x321d97[_0xaee86f])&&(_0x44a092=_0x4545ac(_0x44a092)||_0x44a092);return _0x44a092;},_0x3ffce4=(_0x50f1f5,_0x2e20e2)=>(_0x2b4097,_0x1ab536)=>_0x2e20e2(_0x2b4097,_0x1ab536,_0x50f1f5);_0x224b11[_0x182584(0x12d)]=class extends _0x8e9bb7['RxDisposable']{constructor(_0x1c9ce3,_0x3a691c,_0x1c727b){var _0x63b72f=_0x182584;super(),_0x354d30(this,_0x63b72f(0x127),new Map()),(this[_0x63b72f(0xda)]=_0x1c9ce3,this['_injector']=_0x3a691c,this[_0x63b72f(0xbd)]=_0x1c727b,this[_0x63b72f(0x14c)]());}async[_0x182584(0xb0)](_0x248dbb){var _0x43f923=_0x182584;return this[_0x43f923(0x127)][_0x43f923(0xaa)](_0x248dbb)||await this[_0x43f923(0x113)](_0x248dbb),this[_0x43f923(0x127)][_0x43f923(0x84)](_0x248dbb);}['_init'](){var _0x285fd3=_0x182584;this[_0x285fd3(0xda)][_0x285fd3(0xb8)](_0x8e9bb7[_0x285fd3(0x11b)]['UNIVER_SHEET'])[_0x285fd3(0xdf)](_0x289fe9[_0x285fd3(0x9b)](this[_0x285fd3(0x11a)]))[_0x285fd3(0x13a)](async _0x1c3400=>{var _0x2f8765=_0x285fd3;const _0x2e7d10=_0x1c3400[_0x2f8765(0x157)]();this[_0x2f8765(0x127)][_0x2f8765(0xaa)](_0x2e7d10)||this[_0x2f8765(0x113)](_0x2e7d10);}),this[_0x285fd3(0xda)][_0x285fd3(0xcb)](_0x8e9bb7[_0x285fd3(0x11b)][_0x285fd3(0x7c)])[_0x285fd3(0xdf)](_0x289fe9[_0x285fd3(0x9b)](this[_0x285fd3(0x11a)]))['subscribe'](_0x4a291d=>{var _0x19747f=_0x285fd3;const _0x41037e=_0x4a291d['getUnitId'](),_0x1306c0=this[_0x19747f(0x127)][_0x19747f(0x84)](_0x41037e);_0x1306c0==null||_0x1306c0[_0x19747f(0x114)]();});}async[_0x182584(0x113)](_0x31ee03){var _0xab53c2=_0x182584;const _0x355b93=await this[_0xab53c2(0xbd)][_0xab53c2(0xc3)](_0x31ee03),_0x2fb09c=this[_0xab53c2(0x133)][_0xab53c2(0xb3)](_0x224b11['LiveShareCoordinator'],_0x31ee03,_0x355b93);return _0x2fb09c['init'](),this[_0xab53c2(0x127)]['set'](_0x31ee03,_0x2fb09c),_0x2fb09c;}},_0x224b11['LiveShareController']=_0x490635([_0x3ffce4(0x0,_0x8e9bb7['IUniverInstanceService']),_0x3ffce4(0x1,_0x8e9bb7['Inject'](_0x8e9bb7[_0x182584(0x120)])),_0x3ffce4(0x2,_0x8e9bb7[_0x182584(0x137)](_0x35ef0a['CollaborationSessionService']))],_0x224b11[_0x182584(0x12d)]);var _0x2a9fe1=(_0xea313e=>(_0xea313e[_0x182584(0x67)]=_0x182584(0x115),_0xea313e['IDLE']='idle',_0xea313e[_0x182584(0x109)]=_0x182584(0x83),_0xea313e[_0x182584(0x76)]='not-following',_0xea313e[_0x182584(0x14b)]=_0x182584(0xb7),_0xea313e))(_0x2a9fe1||{});const _0x2e9eb4=_0x182584(0xd6),_0x97670d=0xc8;_0x224b11[_0x182584(0xcd)]=class extends _0x8e9bb7[_0x182584(0x148)]{constructor(_0x17a065,_0x34440d,_0x567965,_0x458c3c,_0x488eb8){var _0x31edbc=_0x182584;super(),_0x354d30(this,_0x31edbc(0x158),new _0x2e0944['BehaviorSubject']('idle')),_0x354d30(this,_0x31edbc(0x6e),this[_0x31edbc(0x158)][_0x31edbc(0x125)]()),_0x354d30(this,_0x31edbc(0x14c),!0x1),_0x354d30(this,_0x31edbc(0x6f),null),_0x354d30(this,_0x31edbc(0x138),null),(this[_0x31edbc(0x124)]=_0x17a065,this['_collabSession']=_0x34440d,this[_0x31edbc(0xa5)]=_0x567965,this['_liveShareService']=_0x458c3c,this[_0x31edbc(0x13d)]=_0x488eb8);}get[_0x182584(0x111)](){var _0x536364=_0x182584;return this['_status$'][_0x536364(0x13b)]();}[_0x182584(0x114)](){var _0x4b63d9=_0x182584,_0x423266;(_0x423266=this[_0x4b63d9(0x6f)])==null||_0x423266[_0x4b63d9(0x114)](),this['_status$']['next'](_0x4b63d9(0xf7)),this[_0x4b63d9(0x158)][_0x4b63d9(0xa1)]();}[_0x182584(0xfc)](){var _0x390f53=_0x182584;this[_0x390f53(0x14c)]||(this[_0x390f53(0x14c)]=!0x0,this[_0x390f53(0xba)][_0x390f53(0xd3)][_0x390f53(0xdf)](_0x289fe9['takeUntil'](this['dispose$']))[_0x390f53(0x13a)](_0x38042d=>{var _0x453ff1=_0x390f53;switch(_0x38042d){case _0x35ef0a['SessionStatus'][_0x453ff1(0x67)]:this['_handleOffline']();break;case _0x35ef0a[_0x453ff1(0xa4)]['ONLINE']:this[_0x453ff1(0x9f)]();break;}}),this[_0x390f53(0xba)][_0x390f53(0x105)][_0x390f53(0xdf)](_0x289fe9[_0x390f53(0x9b)](this[_0x390f53(0x11a)]))[_0x390f53(0x13a)](_0x282728=>{var _0x5ea7ba=_0x390f53;const {eventID:_0x502201}=_0x282728;switch(_0x502201){case _0x2e265e[_0x5ea7ba(0xa7)][_0x5ea7ba(0x121)]:this[_0x5ea7ba(0x10d)](_0x282728);break;case _0x2e265e[_0x5ea7ba(0xa7)][_0x5ea7ba(0x110)]:this[_0x5ea7ba(0xf0)](_0x282728);break;case _0x2e265e['CollaborationEvent'][_0x5ea7ba(0xca)]:this['_handleTerminate']();break;case _0x2e265e[_0x5ea7ba(0xa7)]['NEW_CHANGESETS']:this[_0x5ea7ba(0xad)](_0x282728);break;}}));}[_0x182584(0x116)](){var _0x544ea3=_0x182584;this['_collabSession'][_0x544ea3(0x13c)]({'eventID':_0x2e265e[_0x544ea3(0xa7)][_0x544ea3(0xe2)],'data':{'unitID':this[_0x544ea3(0x124)],'userID':this[_0x544ea3(0xba)]['getMemberID']()}},this[_0x544ea3(0x124)]);}[_0x182584(0xd8)](){var _0x4ad09a=_0x182584;this[_0x4ad09a(0x111)]===_0x4ad09a(0xb7)&&(this['_status$'][_0x4ad09a(0xcf)](_0x4ad09a(0xf7)),this[_0x4ad09a(0xba)][_0x4ad09a(0x13c)]({'eventID':_0x2e265e[_0x4ad09a(0xa7)][_0x4ad09a(0xca)],'data':{'unitID':this[_0x4ad09a(0x124)]}},this[_0x4ad09a(0x124)]));}[_0x182584(0xe8)](){var _0x19d4fc=_0x182584;this[_0x19d4fc(0x111)]==='not-following'&&(this[_0x19d4fc(0x158)][_0x19d4fc(0xcf)]('following'),this[_0x19d4fc(0x156)]());}[_0x182584(0x134)](){var _0x3c60c0=_0x182584;this[_0x3c60c0(0x111)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x775102){var _0x53ad0a=_0x182584;const {presenter:_0x39aef5}=_0x775102[_0x53ad0a(0xea)],_0x5a0a84=this[_0x53ad0a(0xba)][_0x53ad0a(0x9c)]();this['_presenter']=_0x39aef5,_0x39aef5===_0x5a0a84?(this[_0x53ad0a(0x123)](),this['_startPresenting']()):this['_status']!==_0x53ad0a(0x95)&&(this[_0x53ad0a(0x10b)](),this[_0x53ad0a(0x156)]());}[_0x182584(0x12b)](){var _0x3d227e=_0x182584;const _0x2fcf05={'eventID':_0x2e265e[_0x3d227e(0xa7)][_0x3d227e(0x69)]};this[_0x3d227e(0xba)][_0x3d227e(0x13c)](_0x2fcf05,this[_0x3d227e(0x124)]);}['_handleTerminate'](){var _0x4040b6=_0x182584;this[_0x4040b6(0x138)]=null,this[_0x4040b6(0x111)]!==_0x4040b6(0xb7)&&this['_beIdle']();}[_0x182584(0xad)](_0x27e706){var _0x396942=_0x182584;if(this[_0x396942(0x111)]==='following'&&this[_0x396942(0x138)]===_0x27e706['data'][_0x396942(0xb5)]){const _0x503312=_0x2e265e[_0x396942(0xb9)](_0x27e706[_0x396942(0xea)])['mutations']['reverse']()[_0x396942(0x7a)](_0x745a10=>_0x745a10['id']===_0x154e22[_0x396942(0x118)]['id']);if(_0x503312){const _0x197c4a=_0x503312['params'][_0x396942(0xa3)],_0x3bfda0=_0x503312['params'][_0x396942(0xdb)]['id'];setTimeout(()=>{var _0x30c893=_0x396942;this[_0x30c893(0x13d)][_0x30c893(0x11e)](_0x154e22['SetWorksheetActiveOperation']['id'],{'unitId':_0x197c4a,'subUnitId':_0x3bfda0},{'fromCollab':!0x0});});}}}[_0x182584(0x119)](){var _0x252ce6=_0x182584;this[_0x252ce6(0x158)][_0x252ce6(0xcf)](_0x252ce6(0xb7));const _0x4e4295=new Map(),_0x4e8f9e=this[_0x252ce6(0x6f)]=new _0x8e9bb7[(_0x252ce6(0xe5))]();_0x4e8f9e[_0x252ce6(0xa9)](_0x8e9bb7['toDisposable'](()=>{var _0x4de4fd=_0x252ce6;_0x4e4295[_0x4de4fd(0x7b)](_0x215c42=>_0x215c42[_0x4de4fd(0xa1)]()),_0x4e4295[_0x4de4fd(0x10c)]();})),_0x4e8f9e[_0x252ce6(0xa9)](this[_0x252ce6(0x13d)]['onCommandExecuted'](_0x814cc1=>{var _0x260355=_0x252ce6,_0x1322d3;if(_0x814cc1['type']!==_0x8e9bb7[_0x260355(0x8e)][_0x260355(0xd1)]||!this['_liveShareService'][_0x260355(0xd7)](_0x814cc1['id']))return;const {id:_0x58f7c0}=_0x814cc1;let _0xc54041;_0x4e4295['has'](_0x58f7c0)?_0xc54041=_0x4e4295[_0x260355(0x84)](_0x58f7c0):(_0xc54041=new _0x2e0944[(_0x260355(0x65))](),_0x4e4295[_0x260355(0xfd)](_0x58f7c0,_0xc54041),_0xc54041[_0x260355(0xdf)](_0x289fe9[_0x260355(0x108)]((_0x1322d3=this['_configService'][_0x260355(0x7d)](_0x2e9eb4))!=null?_0x1322d3:_0x97670d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x260355(0x13a)](_0x107236=>{var _0x223ea1=_0x260355;this[_0x223ea1(0xba)][_0x223ea1(0x13c)]({'eventID':_0x2e265e[_0x223ea1(0xa7)][_0x223ea1(0x110)],'data':{'unitID':this['_unitID'],'operations':{[_0x107236['id']]:{'id':_0x107236['id'],'params':JSON[_0x223ea1(0xd9)](_0x107236[_0x223ea1(0x77)])}}}},this[_0x223ea1(0x124)]);})),_0xc54041['next'](_0x814cc1);})),this[_0x252ce6(0xf9)][_0x252ce6(0xae)](this['_unitID'])[_0x252ce6(0x7b)](_0x15c172=>this[_0x252ce6(0xba)][_0x252ce6(0x13c)]({'eventID':_0x2e265e['CollaborationEvent'][_0x252ce6(0x110)],'data':{'unitID':this[_0x252ce6(0x124)],'operations':{[_0x15c172['id']]:{'id':_0x15c172['id'],'params':JSON[_0x252ce6(0xd9)](_0x15c172[_0x252ce6(0x77)])}}}},this[_0x252ce6(0x124)]));}['_stopPresenting'](){var _0x3644bb=_0x182584,_0x405321;this[_0x3644bb(0x158)][_0x3644bb(0xcf)](_0x3644bb(0xf7)),(_0x405321=this[_0x3644bb(0x6f)])==null||_0x405321[_0x3644bb(0x114)](),this[_0x3644bb(0x6f)]=null;}[_0x182584(0x156)](){var _0x4edede=_0x182584,_0xb54142;(_0xb54142=this[_0x4edede(0x6f)])==null||_0xb54142[_0x4edede(0x114)](),this[_0x4edede(0x158)][_0x4edede(0xcf)](_0x4edede(0x83));}[_0x182584(0xfe)](){var _0x271d3e=_0x182584,_0x4f99ce;this[_0x271d3e(0x158)][_0x271d3e(0xcf)](_0x271d3e(0xf7)),(_0x4f99ce=this[_0x271d3e(0x6f)])==null||_0x4f99ce[_0x271d3e(0x114)](),this[_0x271d3e(0x6f)]=null;}[_0x182584(0x123)](){var _0x36e0d3=_0x182584,_0xaaf33e;this[_0x36e0d3(0x158)][_0x36e0d3(0xcf)](_0x36e0d3(0x95)),(_0xaaf33e=this['_commandDisposable'])==null||_0xaaf33e[_0x36e0d3(0x114)]();}[_0x182584(0xf0)](_0x3c48d1){var _0x4c6700=_0x182584;if(['presenting',_0x4c6700(0x95),_0x4c6700(0x115)][_0x4c6700(0x81)](this[_0x4c6700(0x111)])||!_0x3c48d1[_0x4c6700(0xea)]['presenter']||_0x3c48d1[_0x4c6700(0xea)][_0x4c6700(0xb2)]===this[_0x4c6700(0xba)]['getMemberID']())return;this[_0x4c6700(0x111)]===_0x4c6700(0xf7)&&this[_0x4c6700(0x156)]();const _0x2ef19a=_0x3c48d1['data']['operations'];Object[_0x4c6700(0x11c)](_0x2ef19a)[_0x4c6700(0x7b)](_0x57af61=>{var _0x464863=_0x4c6700;this[_0x464863(0x13d)][_0x464863(0x11e)](_0x57af61['id'],_0x57af61[_0x464863(0x77)]?JSON[_0x464863(0x98)](_0x57af61[_0x464863(0x77)]):null,{'fromCollab':!0x0});});}[_0x182584(0xe0)](){var _0xd9cc4f=_0x182584,_0x2a5afc;this[_0xd9cc4f(0x158)][_0xd9cc4f(0xcf)](_0xd9cc4f(0x115)),(_0x2a5afc=this[_0xd9cc4f(0x6f)])==null||_0x2a5afc[_0xd9cc4f(0x114)]();}[_0x182584(0x9f)](){var _0x5e1617=_0x182584;this[_0x5e1617(0x158)][_0x5e1617(0xcf)](_0x5e1617(0xf7)),this[_0x5e1617(0x12b)]();}},_0x224b11[_0x182584(0xcd)]=_0x490635([_0x3ffce4(0x2,_0x8e9bb7[_0x182584(0x66)]),_0x3ffce4(0x3,_0x8e9bb7[_0x182584(0x137)](_0x2dea8b)),_0x3ffce4(0x4,_0x8e9bb7['ICommandService'])],_0x224b11['LiveShareCoordinator']);function _0x5a2e36(){var _0xb7c199=_0x182584;const _0x1670cf=_0x156244[_0xb7c199(0xc9)](_0x224b11[_0xb7c199(0x12d)]),_0x4c404b=_0x156244[_0xb7c199(0xc9)](_0x8e9bb7['IUniverInstanceService']),_0x59fa35=_0x156244[_0xb7c199(0x82)](()=>_0x4c404b[_0xb7c199(0x8c)](_0x8e9bb7['UniverInstanceType'][_0xb7c199(0x7c)]),void 0x0,!0x1,[]),[_0x24ecb1,_0x53f795]=_0x256040[_0xb7c199(0x94)](null),[_0x3fb293,_0x42ac23]=_0x256040[_0xb7c199(0x94)](_0x2a9fe1[_0xb7c199(0xef)]),_0x321ad7=_0x256040[_0xb7c199(0x103)](null);return _0x256040[_0xb7c199(0x135)](()=>(_0x59fa35&&_0x1670cf[_0xb7c199(0xb0)](_0x59fa35[_0xb7c199(0x157)]())['then'](_0x408557=>{var _0x34b533=_0xb7c199;_0x53f795(_0x408557),_0x321ad7[_0x34b533(0x79)]=_0x408557['status$'][_0x34b533(0x13a)](_0x37b2c4=>{_0x42ac23(_0x37b2c4);});}),()=>{var _0x4cf1e2=_0xb7c199,_0x3b6a6b;(_0x3b6a6b=_0x321ad7['current'])==null||_0x3b6a6b[_0x4cf1e2(0x14e)](),_0x321ad7[_0x4cf1e2(0x79)]=null;}),[_0x59fa35,_0x1670cf]),_0x24ecb1?_0x212baf[_0xb7c199(0xdc)](_0x596c7f[_0xb7c199(0xf2)],{'align':_0xb7c199(0x14a),'disabled':_0x3fb293===_0x2a9fe1[_0xb7c199(0x67)],'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':_0x212baf['jsx'](_0x53995c,{'status':_0x3fb293,'coordinator':_0x24ecb1}),'children':_0x212baf[_0xb7c199(0xdc)](_0xb7c199(0x6d),{'className':_0x596c7f[_0xb7c199(0x10e)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3fb293===_0x2a9fe1['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3fb293!==_0x2a9fe1[_0xb7c199(0x67)]}),'type':_0xb7c199(0x6d),'children':_0x212baf[_0xb7c199(0xdc)](_0x4c0bfa,{'className':_0xb7c199(0x87)})})}):null;}function _0x53995c(_0x13f7d6){var _0x625ff4=_0x182584;const {status:_0x34cada,coordinator:_0x3579d2}=_0x13f7d6;switch(_0x34cada){case _0x2a9fe1[_0x625ff4(0xef)]:return _0x212baf[_0x625ff4(0xdc)](_0x2ce090,{'coordinator':_0x3579d2});case _0x2a9fe1[_0x625ff4(0x109)]:return _0x212baf[_0x625ff4(0xdc)](_0x4702c6,{'coordinator':_0x3579d2});case _0x2a9fe1[_0x625ff4(0x76)]:return _0x212baf[_0x625ff4(0xdc)](_0x5ba4b3,{'coordinator':_0x3579d2});case _0x2a9fe1[_0x625ff4(0x67)]:return _0x212baf['jsx'](_0x443033,{});case _0x2a9fe1[_0x625ff4(0x14b)]:return _0x212baf['jsx'](_0x3dd9fb,{'coordinator':_0x3579d2});default:return null;}}function _0x2ce090(_0x57ceb0){var _0x1cc82a=_0x182584;const {coordinator:_0x31b143}=_0x57ceb0;return _0x212baf['jsxs'](_0x212baf[_0x1cc82a(0x10a)],{'children':[_0x212baf[_0x1cc82a(0xdc)](_0x1cc82a(0x104),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x212baf[_0x1cc82a(0xdc)](_0x596c7f[_0x1cc82a(0x73)],{'onClick':()=>_0x31b143[_0x1cc82a(0x116)](),'children':_0x1cc82a(0x12e)})]});}function _0x4702c6(_0x1c09be){var _0x14ce5f=_0x182584;const {coordinator:_0x565fea}=_0x1c09be;return _0x212baf['jsxs'](_0x212baf[_0x14ce5f(0x10a)],{'children':[_0x212baf[_0x14ce5f(0xdc)]('div',{'className':_0x14ce5f(0xc7),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x212baf[_0x14ce5f(0xdc)](_0x596c7f[_0x14ce5f(0x73)],{'onClick':()=>_0x565fea['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x5ba4b3(_0x98f746){var _0x2e5bba=_0x182584;const {coordinator:_0x23b0ed}=_0x98f746;return _0x212baf[_0x2e5bba(0x112)](_0x212baf[_0x2e5bba(0x10a)],{'children':[_0x212baf[_0x2e5bba(0xdc)]('div',{'className':_0x2e5bba(0xc7),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x212baf[_0x2e5bba(0xdc)](_0x596c7f[_0x2e5bba(0x73)],{'variant':_0x2e5bba(0x155),'onClick':()=>_0x23b0ed['startFollowing'](),'children':_0x2e5bba(0x117)})]});}function _0x3dd9fb(_0x58cbf1){var _0x521bc3=_0x182584;const {coordinator:_0x45975f}=_0x58cbf1;return _0x212baf['jsxs'](_0x212baf[_0x521bc3(0x10a)],{'children':[_0x212baf[_0x521bc3(0xdc)](_0x521bc3(0x104),{'className':_0x521bc3(0xc7),'children':_0x521bc3(0x96)}),_0x212baf[_0x521bc3(0xdc)](_0x596c7f['Button'],{'variant':_0x521bc3(0x91),'onClick':()=>_0x45975f[_0x521bc3(0xd8)](),'children':'Stop\x20presenting'})]});}function _0x443033(){var _0x3d9e4a=_0x182584;return _0x212baf[_0x3d9e4a(0xdc)](_0x212baf[_0x3d9e4a(0x10a)],{'children':'You\x27are\x20offline.'});}var _0x253f3a=Object[_0x182584(0x7f)],_0x1b3665=(_0x1b62a9,_0x3eab9e,_0x100ddf,_0xb90bff)=>{var _0x1fa463=_0x182584;for(var _0x22cfda=_0xb90bff>0x1?void 0x0:_0xb90bff?_0x253f3a(_0x3eab9e,_0x100ddf):_0x3eab9e,_0x1a427c=_0x1b62a9[_0x1fa463(0x75)]-0x1,_0x23b24a;_0x1a427c>=0x0;_0x1a427c--)(_0x23b24a=_0x1b62a9[_0x1a427c])&&(_0x22cfda=_0x23b24a(_0x22cfda)||_0x22cfda);return _0x22cfda;},_0x45bdf0=(_0x1bd77a,_0x3d4a22)=>(_0x170b68,_0x3afb74)=>_0x3d4a22(_0x170b68,_0x3afb74,_0x1bd77a);_0x224b11['DesktopLiveShareController']=class extends _0x8e9bb7[_0x182584(0x14f)]{constructor(_0x2673b6,_0x1022ed){var _0x3ab896=_0x182584;super(),this[_0x3ab896(0x133)]=_0x2673b6,this[_0x3ab896(0x13e)]=_0x1022ed,this['_mountLiveShare']();}[_0x182584(0x6a)](){var _0x32a50b=_0x182584;this[_0x32a50b(0x13f)](this[_0x32a50b(0x13e)]['registerComponent'](_0x156244[_0x32a50b(0x100)][_0x32a50b(0xf3)],()=>_0x156244[_0x32a50b(0x132)](_0x5a2e36,this[_0x32a50b(0x133)])));}},_0x224b11['DesktopLiveShareController']=_0x1b3665([_0x45bdf0(0x0,_0x8e9bb7[_0x182584(0x137)](_0x8e9bb7['Injector'])),_0x45bdf0(0x1,_0x156244[_0x182584(0xdd)])],_0x224b11[_0x182584(0x142)]);var _0x23a688=Object['defineProperty'],_0x6126f1=Object[_0x182584(0x7f)],_0x288926=(_0x44860b,_0x55898a,_0x44a720)=>_0x55898a in _0x44860b?_0x23a688(_0x44860b,_0x55898a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44a720}):_0x44860b[_0x55898a]=_0x44a720,_0x3d9ed1=(_0x53f504,_0x40b278,_0x4d1d6f,_0x57c4c6)=>{var _0x2b4694=_0x182584;for(var _0x2b816a=_0x57c4c6>0x1?void 0x0:_0x57c4c6?_0x6126f1(_0x40b278,_0x4d1d6f):_0x40b278,_0x3868ae=_0x53f504[_0x2b4694(0x75)]-0x1,_0x26d600;_0x3868ae>=0x0;_0x3868ae--)(_0x26d600=_0x53f504[_0x3868ae])&&(_0x2b816a=_0x26d600(_0x2b816a)||_0x2b816a);return _0x2b816a;},_0x377c71=(_0x1924e9,_0x58c4f1)=>(_0x2c960d,_0x81abd3)=>_0x58c4f1(_0x2c960d,_0x81abd3,_0x1924e9),_0x1eec64=(_0xe6e0d2,_0x42d8b4,_0xef0016)=>_0x288926(_0xe6e0d2,typeof _0x42d8b4!=_0x182584(0x147)?_0x42d8b4+'':_0x42d8b4,_0xef0016);const _0x3b69e6='UNIVER_LIVE_SHARE_PLUGIN';_0x224b11[_0x182584(0xe4)]=class extends _0x8e9bb7['Plugin']{constructor(_0xc1a6c0=_0x393318,_0x5efaaa,_0x45f9fc){var _0x138f81=_0x182584;super(),this[_0x138f81(0xd0)]=_0xc1a6c0,this[_0x138f81(0x133)]=_0x5efaaa,this[_0x138f81(0xa5)]=_0x45f9fc;const {..._0x2e348e}=_0x8e9bb7[_0x138f81(0x6c)]({},_0x393318,this[_0x138f81(0xd0)]);this[_0x138f81(0xa5)]['setConfig'](_0x24e3ba,_0x2e348e);}[_0x182584(0xeb)](){var _0x47f7e5=_0x182584;_0x8e9bb7[_0x47f7e5(0x14d)](this[_0x47f7e5(0x133)],_0x8e9bb7[_0x47f7e5(0x151)]([[_0x2dea8b],[_0x224b11['LiveShareController']],[_0x5f55d9],[_0x224b11[_0x47f7e5(0x142)]]],this[_0x47f7e5(0xd0)]['override'])),_0x8e9bb7[_0x47f7e5(0x12f)](this[_0x47f7e5(0x133)],[[_0x5f55d9]]);}[_0x182584(0xa8)](){var _0xfc37c5=_0x182584;_0x8e9bb7[_0xfc37c5(0x12f)](this['_injector'],[[_0x224b11[_0xfc37c5(0x142)]]]);}},_0x1eec64(_0x224b11[_0x182584(0xe4)],_0x182584(0xbb),_0x8e9bb7[_0x182584(0x11b)][_0x182584(0xe6)]),_0x1eec64(_0x224b11[_0x182584(0xe4)],'pluginName',_0x3b69e6),_0x224b11['UniverLiveSharePlugin']=_0x3d9ed1([_0x8e9bb7[_0x182584(0xa0)](_0x35ef0a[_0x182584(0x126)]),_0x377c71(0x1,_0x8e9bb7[_0x182584(0x137)](_0x8e9bb7[_0x182584(0x120)])),_0x377c71(0x2,_0x8e9bb7[_0x182584(0x66)])],_0x224b11[_0x182584(0xe4)]),_0x224b11[_0x182584(0x8a)]=_0x5a2e36,_0x224b11[_0x182584(0x74)]=_0x2dea8b,_0x224b11[_0x182584(0x12c)]=_0x2a9fe1,Object[_0x182584(0xb4)](_0x224b11,Symbol[_0x182584(0x8f)],{'value':_0x182584(0xc6)});}));function _0x49ca(){var _0x28e37d=['concat','UniverDesign','SAME_OPERATION_SHARE_INTERVAL','shouldShareOperation','stopPresenting','stringify','_univerInstanceService','sheet','jsx','IUIPartsService','univerjs-icon\x20univerjs-icon-','pipe','_handleOffline','UniverUi','LIVESHARE_REQUEST_HOST','replace','UniverLiveSharePlugin','DisposableCollection','UNIVER_UNKNOWN','403053qhzksY','startFollowing','React','data','onStarting','@univerjs/core','substring','forwardRef','IDLE','_handleOperation','xlink:href','Dropdown','HEADER_MENU','amd','@univerjs/design','path','idle','propertyIsEnumerable','_liveShareService','live-share-icon','currentColor','init','set','_beIdle','UniverIcon','BuiltInUIPart','@univerjs/sheets-ui','2287796CqBuJL','useRef','div','event$','url(#$1','none','throttleTime','FOLLOWING','Fragment','_stopPresenting','clear','_handleNewHost','clsx','object','LIVESHARE_OPERATION','_status','jsxs','_startLiveShareCoordinator','dispose','offline','tryStartPresenting','Start\x20following','InsertSheetMutation','_startPresenting','dispose$','UniverInstanceType','values','random','executeCommand','rxjs/operators','Injector','LIVESHARE_NEW_HOST','1603300EdiYZq','_stopFollowing','_unitID','asObservable','UniverCollaborationClientPlugin','_entities','_sharedOperations','colorChannel1','UniverSheetsUi','_fetchOperations','LiveShareStatus','LiveShareController','Start','touchDependencies','assign','@univerjs/sheets','connectInjector','_injector','stopFollowing','useEffect','mask','Inject','_presenter','tag','subscribe','getValue','send','_commandService','_uiPartsService','disposeWithMe','@univerjs-pro/collaboration-client','461938RzmJrj','DesktopLiveShareController','SetScrollOperation','delete','entries','extend','symbol','RxDisposable','toDisposable','end','PRESENTING','_init','registerDependencies','unsubscribe','Disposable','operators','mergeOverrideWithDependencies','live-share.config','getOwnPropertySymbols','attrs','text','_startFollowing','getUnitId','_status$','221727dRsUAw','Subject','IConfigService','OFFLINE','LiveShareIcon','LIVESHARE_FETCH_OPERATIONS','_mountLiveShare','rxjs','merge','button','status$','_commandDisposable','svg','SetWorksheetActiveOperation','defs','Button','LiveShareService','length','NOT_FOLLOWING','params','8bOFetF','current','find','forEach','UNIVER_SHEET','getConfig','UniverSheets','getOwnPropertyDescriptor','from','includes','useObservable','following','get','className','UniverProCollaboration','univer-size-4','displayName','5019849JDkNJn','LiveShare','UniverCore','getCurrentTypeOfUnit$','@univerjs-pro/collaboration','CommandType','toStringTag','registerSharedOperation','default','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','@univerjs/ui','useState','not-following','You\x27re\x20presenting\x20the\x20document','map','parse','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','string','takeUntil','getMemberID','children','call','_handleOnline','DependentOn','complete','820vGrCQN','unitId','SessionStatus','_configService','defIds','CollaborationEvent','onRendered','add','has','exports','createElement','_handleNewChangeSets','getInitialStates','prototype','getLiveShareCoordinator','4050DYQHni','presenter','createInstance','defineProperty','memberID','idSuffix','presenting','getTypeOfUnitAdded$','parseProtocolChangeset','_collabSession','type','fill','_collabSessionService','SetZoomRatioOperation','_reporters','UniverProCollaborationClient','evenodd','icon','requireSession','hasOwnProperty','toString','Module','univer-mb-3\x20univer-w-full\x20univer-text-sm','0\x200\x2017\x2017','useDependency','LIVESHARE_TERMINATE','getTypeOfUnitDisposed$','use','LiveShareCoordinator','UniverProLiveShare','next','_config','OPERATION','react','sessionStatus$'];_0x49ca=function(){return _0x28e37d;};return _0x49ca();}
|
|
1
|
+
function _0x3394(_0x1e9046,_0x2c6d51){var _0x153c07=_0x153c();return _0x3394=function(_0x33944c,_0x5229a4){_0x33944c=_0x33944c-0xc9;var _0x46f2a9=_0x153c07[_0x33944c];return _0x46f2a9;},_0x3394(_0x1e9046,_0x2c6d51);}(function(_0x529dec,_0xaac5fc){var _0x2776c6=_0x3394,_0x3bb475=_0x529dec();while(!![]){try{var _0xe39c22=-parseInt(_0x2776c6(0x1b1))/0x1*(parseInt(_0x2776c6(0x1a5))/0x2)+-parseInt(_0x2776c6(0x12d))/0x3+parseInt(_0x2776c6(0xea))/0x4*(parseInt(_0x2776c6(0x173))/0x5)+parseInt(_0x2776c6(0xcf))/0x6+-parseInt(_0x2776c6(0x1b7))/0x7+parseInt(_0x2776c6(0xf6))/0x8*(-parseInt(_0x2776c6(0x1ac))/0x9)+parseInt(_0x2776c6(0xca))/0xa*(parseInt(_0x2776c6(0x1bd))/0xb);if(_0xe39c22===_0xaac5fc)break;else _0x3bb475['push'](_0x3bb475['shift']());}catch(_0x3ed20c){_0x3bb475['push'](_0x3bb475['shift']());}}}(_0x153c,0xd1d90),function(_0x17bed8,_0x232923){var _0x4b4152=_0x3394;typeof exports==_0x4b4152(0x1c2)&&typeof module<'u'?_0x232923(exports,require(_0x4b4152(0xff)),require('@univerjs/core'),require(_0x4b4152(0x126)),require(_0x4b4152(0x124)),require(_0x4b4152(0x196)),require('react/jsx-runtime'),require(_0x4b4152(0x122)),require(_0x4b4152(0x118)),require(_0x4b4152(0x145)),require(_0x4b4152(0xd9)),require(_0x4b4152(0x149))):typeof define==_0x4b4152(0x19a)&&define[_0x4b4152(0xd7)]?define([_0x4b4152(0x10d),_0x4b4152(0xff),'@univerjs/core',_0x4b4152(0x126),'@univerjs/sheets-ui',_0x4b4152(0x196),_0x4b4152(0x165),_0x4b4152(0x122),_0x4b4152(0x118),_0x4b4152(0x145),_0x4b4152(0xd9),_0x4b4152(0x149)],_0x232923):(_0x17bed8=typeof globalThis<'u'?globalThis:_0x17bed8||self,_0x232923(_0x17bed8[_0x4b4152(0x172)]={},_0x17bed8[_0x4b4152(0x168)],_0x17bed8['UniverCore'],_0x17bed8[_0x4b4152(0x14a)],_0x17bed8['UniverSheetsUi'],_0x17bed8[_0x4b4152(0x1af)],_0x17bed8[_0x4b4152(0x13f)],_0x17bed8['UniverDesign'],_0x17bed8[_0x4b4152(0x13f)],_0x17bed8[_0x4b4152(0x1a6)],_0x17bed8['rxjs'],_0x17bed8['rxjs'][_0x4b4152(0x17a)]));}(this,function(_0x9d65a9,_0x86b772,_0x316aa6,_0x1e2386,_0x22fe0a,_0x3dd8a2,_0x4ada9b,_0x47873f,_0x1a47e4,_0x282f28,_0xc3d7ef,_0x546085){'use strict';var _0x5c1d3b=_0x3394;var _0x1703f3=Object['defineProperty'],_0x45186c=(_0x12f8b9,_0xccc00c,_0x164d8f)=>_0xccc00c in _0x12f8b9?_0x1703f3(_0x12f8b9,_0xccc00c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x164d8f}):_0x12f8b9[_0xccc00c]=_0x164d8f,_0x114bd5=(_0x3e1d63,_0x2aed11,_0x1e7b31)=>_0x45186c(_0x3e1d63,typeof _0x2aed11!=_0x5c1d3b(0x1b5)?_0x2aed11+'':_0x2aed11,_0x1e7b31);const _0x4de99d=_0x5c1d3b(0x130),_0x4bd88c={};class _0x5baadc extends _0x316aa6[_0x5c1d3b(0xe2)]{constructor(){var _0x448aed=_0x5c1d3b;super(...arguments),_0x114bd5(this,_0x448aed(0x129),new Set()),_0x114bd5(this,_0x448aed(0x137),new Set());}[_0x5c1d3b(0x141)](_0x195f53){var _0x49b8bb=_0x5c1d3b;return this[_0x49b8bb(0x129)][_0x49b8bb(0x17c)](_0x195f53),_0x316aa6[_0x49b8bb(0x179)](()=>this[_0x49b8bb(0x129)][_0x49b8bb(0x1bf)](_0x195f53));}[_0x5c1d3b(0xf7)](_0x47d323){var _0x589e9c=_0x5c1d3b;return this[_0x589e9c(0x137)][_0x589e9c(0x17c)](_0x47d323),_0x316aa6['toDisposable'](()=>this[_0x589e9c(0x137)][_0x589e9c(0x1bf)](_0x47d323));}['shouldShareOperation'](_0x29cab0){var _0x11f00c=_0x5c1d3b;return this[_0x11f00c(0x129)][_0x11f00c(0x156)](_0x29cab0);}[_0x5c1d3b(0xe0)](_0x5307d0){var _0x26c055=_0x5c1d3b;return Array[_0x26c055(0xdd)](this['_reporters'])['map'](_0x95d92f=>_0x95d92f(_0x5307d0));}}var _0x23e466=Object[_0x5c1d3b(0x146)],_0x3a41a9=(_0x5e1eba,_0x279218,_0xc758dd,_0x5b08ab)=>{var _0x20a0e8=_0x5c1d3b;for(var _0x55d357=_0x5b08ab>0x1?void 0x0:_0x5b08ab?_0x23e466(_0x279218,_0xc758dd):_0x279218,_0x4f9cf0=_0x5e1eba[_0x20a0e8(0x1a4)]-0x1,_0x528af3;_0x4f9cf0>=0x0;_0x4f9cf0--)(_0x528af3=_0x5e1eba[_0x4f9cf0])&&(_0x55d357=_0x528af3(_0x55d357)||_0x55d357);return _0x55d357;},_0x5d657f=(_0x513181,_0x59865d)=>(_0x2b456c,_0x3a31a0)=>_0x59865d(_0x2b456c,_0x3a31a0,_0x513181);let _0x57d48f=class extends _0x316aa6['Disposable']{constructor(_0x477f7e){var _0x1c181e=_0x5c1d3b;super(),this[_0x1c181e(0x15e)]=_0x477f7e,this[_0x1c181e(0x128)]();}[_0x5c1d3b(0x128)](){var _0x35c376=_0x5c1d3b;[_0x22fe0a[_0x35c376(0x12c)]['id'],_0x22fe0a[_0x35c376(0xce)]['id'],_0x1e2386[_0x35c376(0xef)]['id']][_0x35c376(0x1bb)](_0x39c3a9=>{var _0x452eff=_0x35c376;this[_0x452eff(0x110)](this[_0x452eff(0x15e)]['registerSharedOperation'](_0x39c3a9));});}};_0x57d48f=_0x3a41a9([_0x5d657f(0x0,_0x316aa6[_0x5c1d3b(0x187)](_0x5baadc))],_0x57d48f);var _0x127126=function(){var _0xab64cf=_0x5c1d3b;return _0x127126=Object['assign']||function(_0x493dab){var _0x2a670f=_0x3394;for(var _0x23917c,_0x5843aa=0x1,_0x192a88=arguments[_0x2a670f(0x1a4)];_0x5843aa<_0x192a88;_0x5843aa++){_0x23917c=arguments[_0x5843aa];for(var _0x4a1caf in _0x23917c)Object[_0x2a670f(0x111)][_0x2a670f(0x158)][_0x2a670f(0x133)](_0x23917c,_0x4a1caf)&&(_0x493dab[_0x4a1caf]=_0x23917c[_0x4a1caf]);}return _0x493dab;},_0x127126[_0xab64cf(0xf0)](this,arguments);},_0x48e15f=function(_0x1d0a03,_0x35be50){var _0x37082c=_0x5c1d3b,_0x534f61={};for(var _0x24fbc0 in _0x1d0a03)Object[_0x37082c(0x111)][_0x37082c(0x158)][_0x37082c(0x133)](_0x1d0a03,_0x24fbc0)&&_0x35be50[_0x37082c(0x10f)](_0x24fbc0)<0x0&&(_0x534f61[_0x24fbc0]=_0x1d0a03[_0x24fbc0]);if(_0x1d0a03!=null&&typeof Object[_0x37082c(0x1b9)]==_0x37082c(0x19a)){for(var _0x29f182=0x0,_0x24fbc0=Object[_0x37082c(0x1b9)](_0x1d0a03);_0x29f182<_0x24fbc0[_0x37082c(0x1a4)];_0x29f182++)_0x35be50['indexOf'](_0x24fbc0[_0x29f182])<0x0&&Object[_0x37082c(0x111)][_0x37082c(0xe3)]['call'](_0x1d0a03,_0x24fbc0[_0x29f182])&&(_0x534f61[_0x24fbc0[_0x29f182]]=_0x1d0a03[_0x24fbc0[_0x29f182]]);}return _0x534f61;},_0x46ab69=_0x1a47e4['forwardRef'](function(_0x59c714,_0x459695){var _0x2fd4ea=_0x5c1d3b,_0x1a5ea0=_0x59c714[_0x2fd4ea(0x178)],_0x13dc18=_0x59c714['id'],_0x1cbfa7=_0x59c714[_0x2fd4ea(0x134)],_0x1525d0=_0x59c714[_0x2fd4ea(0x188)],_0x523fec=_0x48e15f(_0x59c714,[_0x2fd4ea(0x178),'id',_0x2fd4ea(0x134),_0x2fd4ea(0x188)]),_0x489684=_0x2fd4ea(0x197)[_0x2fd4ea(0x153)](_0x13dc18,'\x20')[_0x2fd4ea(0x153)](_0x1cbfa7||'')[_0x2fd4ea(0x116)](),_0x46ed0e=_0x1a47e4[_0x2fd4ea(0x15f)]('_'[_0x2fd4ea(0x153)](_0x2a2ba0()));return _0x4940cd(_0x1a5ea0,''[_0x2fd4ea(0x153)](_0x13dc18),{'defIds':_0x1a5ea0[_0x2fd4ea(0x193)],'idSuffix':_0x46ed0e[_0x2fd4ea(0xf1)]},_0x127126({'ref':_0x459695,'className':_0x489684},_0x523fec),_0x1525d0);});function _0x4940cd(_0x3e8a66,_0x506e48,_0xf68342,_0x146673,_0x883ea8){var _0x3a9c79=_0x5c1d3b;return _0x1a47e4[_0x3a9c79(0x162)](_0x3e8a66[_0x3a9c79(0x199)],_0x127126(_0x127126({'key':_0x506e48},_0x553663(_0x3e8a66,_0xf68342,_0x883ea8)),_0x146673),(_0x2acc33(_0x3e8a66,_0xf68342)['children']||[])['map'](function(_0x2f88a5,_0x47ea11){var _0x1b598a=_0x3a9c79;return _0x4940cd(_0x2f88a5,''[_0x1b598a(0x153)](_0x506e48,'-')['concat'](_0x3e8a66[_0x1b598a(0x199)],'-')[_0x1b598a(0x153)](_0x47ea11),_0xf68342,void 0x0,_0x883ea8);}));}function _0x553663(_0x51e834,_0x4b2038,_0x42fbb3){var _0x17426a=_0x5c1d3b,_0x113d8c=_0x127126({},_0x51e834[_0x17426a(0x1a1)]);_0x42fbb3!=null&&_0x42fbb3[_0x17426a(0x12e)]&&_0x113d8c[_0x17426a(0xcb)]==='colorChannel1'&&(_0x113d8c[_0x17426a(0xcb)]=_0x42fbb3['colorChannel1']),_0x51e834[_0x17426a(0x199)]===_0x17426a(0x18e)&&_0x113d8c['id']&&(_0x113d8c['id']=_0x113d8c['id']+_0x4b2038[_0x17426a(0x177)]),Object[_0x17426a(0x1a9)](_0x113d8c)[_0x17426a(0x1bb)](function(_0x22b455){var _0x3ef4da=_0x17426a,_0x3fd6bd=_0x22b455[0x0],_0x4d34f5=_0x22b455[0x1];_0x3fd6bd===_0x3ef4da(0x18e)&&typeof _0x4d34f5==_0x3ef4da(0x131)&&(_0x113d8c[_0x3fd6bd]=_0x4d34f5[_0x3ef4da(0xec)](/url\(#(.*)\)/,_0x3ef4da(0xd4)[_0x3ef4da(0x153)](_0x4b2038[_0x3ef4da(0x177)],')')));});var _0x7a34bf=_0x4b2038[_0x17426a(0x193)];return!_0x7a34bf||_0x7a34bf[_0x17426a(0x1a4)]===0x0||(_0x51e834[_0x17426a(0x199)]===_0x17426a(0x112)&&_0x113d8c[_0x17426a(0x147)]&&(_0x113d8c[_0x17426a(0x147)]=_0x113d8c[_0x17426a(0x147)]+_0x4b2038[_0x17426a(0x177)]),Object['entries'](_0x113d8c)[_0x17426a(0x1bb)](function(_0x5a6595){var _0x25883e=_0x17426a,_0xfd0f40=_0x5a6595[0x0],_0x5803e8=_0x5a6595[0x1];typeof _0x5803e8==_0x25883e(0x131)&&(_0x113d8c[_0xfd0f40]=_0x5803e8[_0x25883e(0xec)](/url\(#(.*)\)/,_0x25883e(0xd4)[_0x25883e(0x153)](_0x4b2038['idSuffix'],')')));})),_0x113d8c;}function _0x2acc33(_0x45cdb7,_0x3ba615){var _0x2d2363=_0x5c1d3b,_0x6d2228,_0x789492=_0x3ba615[_0x2d2363(0x193)];return!_0x789492||_0x789492[_0x2d2363(0x1a4)]===0x0?_0x45cdb7:_0x45cdb7[_0x2d2363(0x199)]===_0x2d2363(0xfe)&&(!((_0x6d2228=_0x45cdb7[_0x2d2363(0x11b)])===null||_0x6d2228===void 0x0)&&_0x6d2228[_0x2d2363(0x1a4)])?_0x127126(_0x127126({},_0x45cdb7),{'children':_0x45cdb7['children'][_0x2d2363(0x182)](function(_0x5dd6d1){var _0x22b15f=_0x2d2363;return typeof _0x5dd6d1['attrs']['id']==_0x22b15f(0x131)&&_0x789492&&_0x789492[_0x22b15f(0x16d)](_0x5dd6d1[_0x22b15f(0x1a1)]['id'])?_0x127126(_0x127126({},_0x5dd6d1),{'attrs':_0x127126(_0x127126({},_0x5dd6d1[_0x22b15f(0x1a1)]),{'id':_0x5dd6d1[_0x22b15f(0x1a1)]['id']+_0x3ba615['idSuffix']})}):_0x5dd6d1;})}):_0x45cdb7;}function _0x2a2ba0(){var _0x6012e9=_0x5c1d3b;return Math[_0x6012e9(0x1be)]()[_0x6012e9(0x14d)](0x24)['substring'](0x2,0x8);}_0x46ab69[_0x5c1d3b(0x11a)]=_0x5c1d3b(0x16c);var _0x15adc1={'tag':_0x5c1d3b(0x100),'attrs':{'xmlns':_0x5c1d3b(0x16f),'fill':_0x5c1d3b(0x18c),'viewBox':_0x5c1d3b(0x109),'width':_0x5c1d3b(0x10c),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5c1d3b(0x148),'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':_0x5c1d3b(0xe9),'attrs':{'fill':_0x5c1d3b(0x148),'d':_0x5c1d3b(0x144),'fillRule':_0x5c1d3b(0x104),'clipRule':_0x5c1d3b(0x104)}}]},_0x4c6420=_0x1a47e4[_0x5c1d3b(0x16e)](function(_0x120e61,_0x47d8b1){var _0x415c33=_0x5c1d3b;return _0x1a47e4['createElement'](_0x46ab69,Object[_0x415c33(0x119)]({},_0x120e61,{'id':_0x415c33(0xd8),'ref':_0x47d8b1,'icon':_0x15adc1}));});_0x4c6420[_0x5c1d3b(0x11a)]=_0x5c1d3b(0xdb);var _0x462ccf=Object[_0x5c1d3b(0x146)],_0x2d5a8a=(_0x39f160,_0x2d8e3b,_0x234d79,_0x28330d)=>{var _0x1d8531=_0x5c1d3b;for(var _0x316688=_0x28330d>0x1?void 0x0:_0x28330d?_0x462ccf(_0x2d8e3b,_0x234d79):_0x2d8e3b,_0x1ca03c=_0x39f160[_0x1d8531(0x1a4)]-0x1,_0x1bfe5b;_0x1ca03c>=0x0;_0x1ca03c--)(_0x1bfe5b=_0x39f160[_0x1ca03c])&&(_0x316688=_0x1bfe5b(_0x316688)||_0x316688);return _0x316688;},_0x7f39df=(_0x6d7da4,_0x506c19)=>(_0xdce870,_0x944f32)=>_0x506c19(_0xdce870,_0x944f32,_0x6d7da4);_0x9d65a9[_0x5c1d3b(0x12b)]=class extends _0x316aa6[_0x5c1d3b(0x171)]{constructor(_0x58d228,_0x31152c,_0xd3acac){var _0x461fd0=_0x5c1d3b;super(),_0x114bd5(this,_0x461fd0(0x19e),new Map()),(this[_0x461fd0(0x198)]=_0x58d228,this['_injector']=_0x31152c,this[_0x461fd0(0x159)]=_0xd3acac,this['_init']());}async[_0x5c1d3b(0xf5)](_0x5d3d0f){var _0x3b9059=_0x5c1d3b;return this[_0x3b9059(0x19e)]['has'](_0x5d3d0f)||await this[_0x3b9059(0x155)](_0x5d3d0f),this[_0x3b9059(0x19e)][_0x3b9059(0x108)](_0x5d3d0f);}[_0x5c1d3b(0x128)](){var _0x1126a1=_0x5c1d3b;this[_0x1126a1(0x198)]['getTypeOfUnitAdded$'](_0x316aa6['UniverInstanceType']['UNIVER_SHEET'])[_0x1126a1(0x192)](_0x546085[_0x1126a1(0x14e)](this['dispose$']))[_0x1126a1(0xd1)](async _0x4fd9c9=>{var _0x562ad2=_0x1126a1;const _0x5c5f19=_0x4fd9c9['getUnitId']();this['_entities'][_0x562ad2(0x156)](_0x5c5f19)||this[_0x562ad2(0x155)](_0x5c5f19);}),this[_0x1126a1(0x198)]['getTypeOfUnitDisposed$'](_0x316aa6[_0x1126a1(0x151)][_0x1126a1(0x17f)])[_0x1126a1(0x192)](_0x546085[_0x1126a1(0x14e)](this['dispose$']))[_0x1126a1(0xd1)](_0x175969=>{var _0x1575ad=_0x1126a1;const _0x277a0f=_0x175969[_0x1575ad(0x1a7)](),_0x588093=this[_0x1575ad(0x19e)]['get'](_0x277a0f);_0x588093==null||_0x588093['dispose']();});}async[_0x5c1d3b(0x155)](_0x3f866a){var _0x11b43f=_0x5c1d3b;const _0x445ad3=await this[_0x11b43f(0x159)][_0x11b43f(0x170)](_0x3f866a),_0x2b2937=this[_0x11b43f(0x13e)][_0x11b43f(0x180)](_0x9d65a9[_0x11b43f(0x169)],_0x3f866a,_0x445ad3);return _0x2b2937[_0x11b43f(0x138)](),this[_0x11b43f(0x19e)][_0x11b43f(0x14b)](_0x3f866a,_0x2b2937),_0x2b2937;}},_0x9d65a9['LiveShareController']=_0x2d5a8a([_0x7f39df(0x0,_0x316aa6['IUniverInstanceService']),_0x7f39df(0x1,_0x316aa6[_0x5c1d3b(0x187)](_0x316aa6[_0x5c1d3b(0xcd)])),_0x7f39df(0x2,_0x316aa6[_0x5c1d3b(0x187)](_0x86b772['CollaborationSessionService']))],_0x9d65a9[_0x5c1d3b(0x12b)]);var _0x38e00d=(_0x365640=>(_0x365640[_0x5c1d3b(0x113)]=_0x5c1d3b(0x120),_0x365640[_0x5c1d3b(0x17b)]=_0x5c1d3b(0xfc),_0x365640[_0x5c1d3b(0x1c0)]=_0x5c1d3b(0x15c),_0x365640[_0x5c1d3b(0x15b)]='not-following',_0x365640[_0x5c1d3b(0x1b8)]='presenting',_0x365640))(_0x38e00d||{});const _0x4ae4f7=_0x5c1d3b(0x19c),_0x55dfbc=0xc8;_0x9d65a9[_0x5c1d3b(0x169)]=class extends _0x316aa6[_0x5c1d3b(0x171)]{constructor(_0x389dcd,_0x2ff69b,_0x5abef3,_0x918d3,_0x4bc630){var _0x587da0=_0x5c1d3b;super(),_0x114bd5(this,_0x587da0(0x136),new _0xc3d7ef['BehaviorSubject'](_0x587da0(0xfc))),_0x114bd5(this,_0x587da0(0x176),this[_0x587da0(0x136)]['asObservable']()),_0x114bd5(this,_0x587da0(0x128),!0x1),_0x114bd5(this,'_commandDisposable',null),_0x114bd5(this,_0x587da0(0x1b0),null),(this[_0x587da0(0x121)]=_0x389dcd,this[_0x587da0(0x1a3)]=_0x2ff69b,this['_configService']=_0x5abef3,this[_0x587da0(0x15e)]=_0x918d3,this[_0x587da0(0xfa)]=_0x4bc630);}get[_0x5c1d3b(0x186)](){var _0xefce6f=_0x5c1d3b;return this[_0xefce6f(0x136)][_0xefce6f(0xfd)]();}[_0x5c1d3b(0x125)](){var _0x2cb2cb=_0x5c1d3b,_0x29f1d5;(_0x29f1d5=this[_0x2cb2cb(0x191)])==null||_0x29f1d5[_0x2cb2cb(0x125)](),this[_0x2cb2cb(0x136)][_0x2cb2cb(0x184)]('idle'),this['_status$'][_0x2cb2cb(0x106)]();}['init'](){var _0x4271b6=_0x5c1d3b;this[_0x4271b6(0x128)]||(this[_0x4271b6(0x128)]=!0x0,this[_0x4271b6(0x1a3)][_0x4271b6(0xd5)][_0x4271b6(0x192)](_0x546085[_0x4271b6(0x14e)](this[_0x4271b6(0x190)]))[_0x4271b6(0xd1)](_0xfdaec8=>{var _0xefdb64=_0x4271b6;switch(_0xfdaec8){case _0x86b772[_0xefdb64(0x13a)][_0xefdb64(0x113)]:this[_0xefdb64(0x15a)]();break;case _0x86b772[_0xefdb64(0x13a)]['ONLINE']:this[_0xefdb64(0xfb)]();break;}}),this['_collabSession'][_0x4271b6(0x175)][_0x4271b6(0x192)](_0x546085[_0x4271b6(0x14e)](this[_0x4271b6(0x190)]))[_0x4271b6(0xd1)](_0x4eb542=>{var _0x538281=_0x4271b6;const {eventID:_0x6027e9}=_0x4eb542;switch(_0x6027e9){case _0x282f28['CollaborationEvent'][_0x538281(0x1aa)]:this[_0x538281(0x19b)](_0x4eb542);break;case _0x282f28[_0x538281(0x11e)][_0x538281(0xd2)]:this[_0x538281(0x115)](_0x4eb542);break;case _0x282f28[_0x538281(0x11e)][_0x538281(0x13d)]:this[_0x538281(0x161)]();break;case _0x282f28['CollaborationEvent'][_0x538281(0x135)]:this[_0x538281(0x195)](_0x4eb542);break;}}));}['tryStartPresenting'](){var _0x23593e=_0x5c1d3b;this[_0x23593e(0x1a3)][_0x23593e(0xe8)]({'eventID':_0x282f28[_0x23593e(0x11e)][_0x23593e(0x1ab)],'data':{'unitID':this[_0x23593e(0x121)],'userID':this[_0x23593e(0x1a3)][_0x23593e(0x1ae)]()}},this[_0x23593e(0x121)]);}[_0x5c1d3b(0x18d)](){var _0x3be14d=_0x5c1d3b;this[_0x3be14d(0x186)]===_0x3be14d(0x1b3)&&(this['_status$'][_0x3be14d(0x184)]('idle'),this[_0x3be14d(0x1a3)][_0x3be14d(0xe8)]({'eventID':_0x282f28[_0x3be14d(0x11e)][_0x3be14d(0x13d)],'data':{'unitID':this[_0x3be14d(0x121)]}},this[_0x3be14d(0x121)]));}['startFollowing'](){var _0x34bd9a=_0x5c1d3b;this[_0x34bd9a(0x186)]===_0x34bd9a(0x1b6)&&(this[_0x34bd9a(0x136)][_0x34bd9a(0x184)](_0x34bd9a(0x15c)),this['_startFollowing']());}[_0x5c1d3b(0x1ba)](){var _0x547995=_0x5c1d3b;this[_0x547995(0x186)]===_0x547995(0x15c)&&this[_0x547995(0x154)]();}[_0x5c1d3b(0x19b)](_0x5e0e64){var _0xda48cc=_0x5c1d3b;const {presenter:_0x591a61}=_0x5e0e64[_0xda48cc(0x142)],_0x1de12c=this[_0xda48cc(0x1a3)][_0xda48cc(0x1ae)]();this[_0xda48cc(0x1b0)]=_0x591a61,_0x591a61===_0x1de12c?(this[_0xda48cc(0x154)](),this[_0xda48cc(0x152)]()):this[_0xda48cc(0x186)]!==_0xda48cc(0x1b6)&&(this[_0xda48cc(0x1ad)](),this[_0xda48cc(0x163)]());}['_fetchOperations'](){var _0x4abcb0=_0x5c1d3b;const _0x4d179={'eventID':_0x282f28[_0x4abcb0(0x11e)][_0x4abcb0(0x183)]};this[_0x4abcb0(0x1a3)][_0x4abcb0(0xe8)](_0x4d179,this['_unitID']);}[_0x5c1d3b(0x161)](){var _0x480a68=_0x5c1d3b;this[_0x480a68(0x1b0)]=null,this[_0x480a68(0x186)]!==_0x480a68(0x1b3)&&this[_0x480a68(0x19d)]();}['_handleNewChangeSets'](_0x4eda82){var _0x2270b1=_0x5c1d3b;if(this['_status']===_0x2270b1(0x15c)&&this[_0x2270b1(0x1b0)]===_0x4eda82[_0x2270b1(0x142)][_0x2270b1(0x10b)]){const _0x48a574=_0x282f28[_0x2270b1(0xd0)](_0x4eda82['data'])[_0x2270b1(0x123)][_0x2270b1(0x17e)]()[_0x2270b1(0xd3)](_0x7d3a60=>_0x7d3a60['id']===_0x1e2386[_0x2270b1(0x11d)]['id']);if(_0x48a574){const _0x56197b=_0x48a574[_0x2270b1(0x10a)][_0x2270b1(0x132)],_0x2acbd0=_0x48a574[_0x2270b1(0x10a)][_0x2270b1(0x157)]['id'];setTimeout(()=>{var _0x5b514b=_0x2270b1;this['_commandService'][_0x5b514b(0x150)](_0x1e2386[_0x5b514b(0xef)]['id'],{'unitId':_0x56197b,'subUnitId':_0x2acbd0},{'fromCollab':!0x0});});}}}[_0x5c1d3b(0x152)](){var _0x32c24a=_0x5c1d3b;this[_0x32c24a(0x136)][_0x32c24a(0x184)](_0x32c24a(0x1b3));const _0xd05577=new Map(),_0x1c5586=this['_commandDisposable']=new _0x316aa6[(_0x32c24a(0xdc))]();_0x1c5586[_0x32c24a(0x17c)](_0x316aa6[_0x32c24a(0x179)](()=>{var _0x515376=_0x32c24a;_0xd05577[_0x515376(0x1bb)](_0x19098f=>_0x19098f[_0x515376(0x106)]()),_0xd05577['clear']();})),_0x1c5586[_0x32c24a(0x17c)](this[_0x32c24a(0xfa)][_0x32c24a(0x14c)](_0x523049=>{var _0x59aa1f=_0x32c24a,_0x59b961;if(_0x523049[_0x59aa1f(0xeb)]!==_0x316aa6[_0x59aa1f(0xe4)][_0x59aa1f(0x18f)]||!this['_liveShareService']['shouldShareOperation'](_0x523049['id']))return;const {id:_0x699924}=_0x523049;let _0x558f62;_0xd05577['has'](_0x699924)?_0x558f62=_0xd05577[_0x59aa1f(0x108)](_0x699924):(_0x558f62=new _0xc3d7ef['Subject'](),_0xd05577[_0x59aa1f(0x14b)](_0x699924,_0x558f62),_0x558f62[_0x59aa1f(0x192)](_0x546085['throttleTime']((_0x59b961=this[_0x59aa1f(0x15d)][_0x59aa1f(0x1a0)](_0x4ae4f7))!=null?_0x59b961:_0x55dfbc,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59aa1f(0xd1)](_0x98ff3e=>{var _0x530374=_0x59aa1f;this[_0x530374(0x1a3)][_0x530374(0xe8)]({'eventID':_0x282f28[_0x530374(0x11e)][_0x530374(0xd2)],'data':{'unitID':this[_0x530374(0x121)],'operations':{[_0x98ff3e['id']]:{'id':_0x98ff3e['id'],'params':JSON[_0x530374(0x139)](_0x98ff3e[_0x530374(0x10a)])}}}},this[_0x530374(0x121)]);})),_0x558f62[_0x59aa1f(0x184)](_0x523049);})),this[_0x32c24a(0x15e)]['getInitialStates'](this[_0x32c24a(0x121)])['forEach'](_0x369e4b=>this['_collabSession'][_0x32c24a(0xe8)]({'eventID':_0x282f28['CollaborationEvent'][_0x32c24a(0xd2)],'data':{'unitID':this['_unitID'],'operations':{[_0x369e4b['id']]:{'id':_0x369e4b['id'],'params':JSON[_0x32c24a(0x139)](_0x369e4b[_0x32c24a(0x10a)])}}}},this['_unitID']));}[_0x5c1d3b(0x1ad)](){var _0x10bdf8=_0x5c1d3b,_0x4b1df0;this[_0x10bdf8(0x136)][_0x10bdf8(0x184)]('idle'),(_0x4b1df0=this['_commandDisposable'])==null||_0x4b1df0[_0x10bdf8(0x125)](),this[_0x10bdf8(0x191)]=null;}[_0x5c1d3b(0x163)](){var _0x412d19=_0x5c1d3b,_0x3dcc11;(_0x3dcc11=this[_0x412d19(0x191)])==null||_0x3dcc11[_0x412d19(0x125)](),this[_0x412d19(0x136)]['next'](_0x412d19(0x15c));}['_beIdle'](){var _0xd4d42b=_0x5c1d3b,_0x13f36;this['_status$'][_0xd4d42b(0x184)]('idle'),(_0x13f36=this[_0xd4d42b(0x191)])==null||_0x13f36[_0xd4d42b(0x125)](),this[_0xd4d42b(0x191)]=null;}['_stopFollowing'](){var _0x52930b=_0x5c1d3b,_0x29efc9;this[_0x52930b(0x136)][_0x52930b(0x184)](_0x52930b(0x1b6)),(_0x29efc9=this['_commandDisposable'])==null||_0x29efc9[_0x52930b(0x125)]();}[_0x5c1d3b(0x115)](_0x5c39ef){var _0x23f844=_0x5c1d3b;if([_0x23f844(0x1b3),_0x23f844(0x1b6),_0x23f844(0x120)][_0x23f844(0x16d)](this[_0x23f844(0x186)])||!_0x5c39ef['data'][_0x23f844(0x105)]||_0x5c39ef[_0x23f844(0x142)][_0x23f844(0x105)]===this[_0x23f844(0x1a3)][_0x23f844(0x1ae)]())return;this['_status']===_0x23f844(0xfc)&&this[_0x23f844(0x163)]();const _0x582305=_0x5c39ef[_0x23f844(0x142)][_0x23f844(0xee)];Object[_0x23f844(0x164)](_0x582305)['forEach'](_0x20db9c=>{var _0x50163a=_0x23f844;this[_0x50163a(0xfa)][_0x50163a(0x150)](_0x20db9c['id'],_0x20db9c[_0x50163a(0x10a)]?JSON[_0x50163a(0x14f)](_0x20db9c[_0x50163a(0x10a)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x2cab58=_0x5c1d3b,_0x2e57ca;this[_0x2cab58(0x136)][_0x2cab58(0x184)](_0x2cab58(0x120)),(_0x2e57ca=this['_commandDisposable'])==null||_0x2e57ca[_0x2cab58(0x125)]();}[_0x5c1d3b(0xfb)](){var _0x5a3298=_0x5c1d3b;this[_0x5a3298(0x136)][_0x5a3298(0x184)](_0x5a3298(0xfc)),this[_0x5a3298(0x140)]();}},_0x9d65a9['LiveShareCoordinator']=_0x2d5a8a([_0x7f39df(0x2,_0x316aa6[_0x5c1d3b(0x12f)]),_0x7f39df(0x3,_0x316aa6[_0x5c1d3b(0x187)](_0x5baadc)),_0x7f39df(0x4,_0x316aa6['ICommandService'])],_0x9d65a9[_0x5c1d3b(0x169)]);function _0x4400d0(){var _0x235692=_0x5c1d3b;const _0x2ff5de=_0x3dd8a2['useDependency'](_0x9d65a9[_0x235692(0x12b)]),_0x284a88=_0x3dd8a2[_0x235692(0x1b4)](_0x316aa6[_0x235692(0x160)]),_0xed7c08=_0x3dd8a2['useObservable'](()=>_0x284a88[_0x235692(0x127)](_0x316aa6['UniverInstanceType'][_0x235692(0x17f)]),void 0x0,!0x1,[]),[_0x431cf8,_0x236d3a]=_0x1a47e4[_0x235692(0xf8)](null),[_0x403828,_0x27c204]=_0x1a47e4[_0x235692(0xf8)](_0x38e00d[_0x235692(0x17b)]),_0x55c451=_0x1a47e4[_0x235692(0x15f)](null);return _0x1a47e4[_0x235692(0xe1)](()=>(_0xed7c08&&_0x2ff5de[_0x235692(0xf5)](_0xed7c08[_0x235692(0x1a7)]())[_0x235692(0x13b)](_0x2570e6=>{var _0x5536c8=_0x235692;_0x236d3a(_0x2570e6),_0x55c451['current']=_0x2570e6[_0x5536c8(0x176)][_0x5536c8(0xd1)](_0x117d86=>{_0x27c204(_0x117d86);});}),()=>{var _0x285cfd=_0x235692,_0x4b63e2;(_0x4b63e2=_0x55c451[_0x285cfd(0xf1)])==null||_0x4b63e2[_0x285cfd(0x12a)](),_0x55c451['current']=null;}),[_0xed7c08,_0x2ff5de]),_0x431cf8?_0x4ada9b[_0x235692(0xdf)](_0x47873f[_0x235692(0xf4)],{'align':_0x235692(0x103),'disabled':_0x403828===_0x38e00d[_0x235692(0x113)],'className':_0x235692(0x181),'overlay':_0x4ada9b[_0x235692(0xdf)](_0x40051e,{'status':_0x403828,'coordinator':_0x431cf8}),'children':_0x4ada9b[_0x235692(0xdf)](_0x235692(0x189),{'className':_0x47873f[_0x235692(0x11c)](_0x235692(0xf3),{'univer-cursor-not-allowed':_0x403828===_0x38e00d[_0x235692(0x113)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x403828!==_0x38e00d[_0x235692(0x113)]}),'type':_0x235692(0x189),'children':_0x4ada9b['jsx'](_0x4c6420,{'className':_0x235692(0x11f)})})}):null;}function _0x40051e(_0x4ebbd4){var _0x22b721=_0x5c1d3b;const {status:_0x184de8,coordinator:_0x37a48a}=_0x4ebbd4;switch(_0x184de8){case _0x38e00d['IDLE']:return _0x4ada9b[_0x22b721(0xdf)](_0x3f302c,{'coordinator':_0x37a48a});case _0x38e00d[_0x22b721(0x1c0)]:return _0x4ada9b[_0x22b721(0xdf)](_0x3bfef9,{'coordinator':_0x37a48a});case _0x38e00d[_0x22b721(0x15b)]:return _0x4ada9b[_0x22b721(0xdf)](_0x264b1b,{'coordinator':_0x37a48a});case _0x38e00d[_0x22b721(0x113)]:return _0x4ada9b[_0x22b721(0xdf)](_0x40c5ea,{});case _0x38e00d['PRESENTING']:return _0x4ada9b[_0x22b721(0xdf)](_0x1efcb9,{'coordinator':_0x37a48a});default:return null;}}function _0x3f302c(_0x44b591){var _0x13ede0=_0x5c1d3b;const {coordinator:_0x411bb6}=_0x44b591;return _0x4ada9b[_0x13ede0(0x19f)](_0x4ada9b['Fragment'],{'children':[_0x4ada9b[_0x13ede0(0xdf)](_0x13ede0(0x101),{'className':_0x13ede0(0x17d),'children':'Present\x20this\x20document'}),_0x4ada9b['jsx'](_0x47873f[_0x13ede0(0x166)],{'onClick':()=>_0x411bb6['tryStartPresenting'](),'children':_0x13ede0(0x174)})]});}function _0x3bfef9(_0x28c9cf){var _0x10f961=_0x5c1d3b;const {coordinator:_0x4fc1cd}=_0x28c9cf;return _0x4ada9b['jsxs'](_0x4ada9b[_0x10f961(0xde)],{'children':[_0x4ada9b[_0x10f961(0xdf)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x10f961(0x16a)}),_0x4ada9b[_0x10f961(0xdf)](_0x47873f['Button'],{'onClick':()=>_0x4fc1cd[_0x10f961(0x1ba)](),'children':_0x10f961(0x13c)})]});}function _0x264b1b(_0x503b86){var _0x17b31f=_0x5c1d3b;const {coordinator:_0x31a9ed}=_0x503b86;return _0x4ada9b['jsxs'](_0x4ada9b[_0x17b31f(0xde)],{'children':[_0x4ada9b[_0x17b31f(0xdf)]('div',{'className':_0x17b31f(0x17d),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4ada9b[_0x17b31f(0xdf)](_0x47873f[_0x17b31f(0x166)],{'variant':'text','onClick':()=>_0x31a9ed[_0x17b31f(0xc9)](),'children':_0x17b31f(0x117)})]});}function _0x1efcb9(_0x56f54b){var _0x191c3d=_0x5c1d3b;const {coordinator:_0x1f8a97}=_0x56f54b;return _0x4ada9b[_0x191c3d(0x19f)](_0x4ada9b['Fragment'],{'children':[_0x4ada9b['jsx'](_0x191c3d(0x101),{'className':_0x191c3d(0x17d),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4ada9b[_0x191c3d(0xdf)](_0x47873f[_0x191c3d(0x166)],{'variant':_0x191c3d(0xd6),'onClick':()=>_0x1f8a97[_0x191c3d(0x18d)](),'children':_0x191c3d(0x1a2)})]});}function _0x40c5ea(){var _0x2c990d=_0x5c1d3b;return _0x4ada9b[_0x2c990d(0xdf)](_0x4ada9b['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x824deb=Object['getOwnPropertyDescriptor'],_0x4a001b=(_0x69ceb5,_0x6977e2,_0x5791ae,_0xd3850)=>{for(var _0x32de74=_0xd3850>0x1?void 0x0:_0xd3850?_0x824deb(_0x6977e2,_0x5791ae):_0x6977e2,_0x898f6=_0x69ceb5['length']-0x1,_0x51fedf;_0x898f6>=0x0;_0x898f6--)(_0x51fedf=_0x69ceb5[_0x898f6])&&(_0x32de74=_0x51fedf(_0x32de74)||_0x32de74);return _0x32de74;},_0x325caf=(_0x57977f,_0x35cd39)=>(_0x229bec,_0x3060e1)=>_0x35cd39(_0x229bec,_0x3060e1,_0x57977f);_0x9d65a9[_0x5c1d3b(0xda)]=class extends _0x316aa6['Disposable']{constructor(_0x2b5dca,_0x552281){var _0x1e5be3=_0x5c1d3b;super(),this[_0x1e5be3(0x13e)]=_0x2b5dca,this[_0x1e5be3(0x18a)]=_0x552281,this[_0x1e5be3(0x143)]();}[_0x5c1d3b(0x143)](){var _0x46b636=_0x5c1d3b;this[_0x46b636(0x110)](this[_0x46b636(0x18a)][_0x46b636(0x16b)](_0x3dd8a2[_0x46b636(0x1a8)][_0x46b636(0x1bc)],()=>_0x3dd8a2[_0x46b636(0x10e)](_0x4400d0,this[_0x46b636(0x13e)])));}},_0x9d65a9[_0x5c1d3b(0xda)]=_0x4a001b([_0x325caf(0x0,_0x316aa6['Inject'](_0x316aa6[_0x5c1d3b(0xcd)])),_0x325caf(0x1,_0x3dd8a2['IUIPartsService'])],_0x9d65a9[_0x5c1d3b(0xda)]);var _0x51f9a9=Object[_0x5c1d3b(0xe6)],_0x1722e0=Object['getOwnPropertyDescriptor'],_0x2d519c=(_0x54ca43,_0xc7c6b4,_0xbd63c8)=>_0xc7c6b4 in _0x54ca43?_0x51f9a9(_0x54ca43,_0xc7c6b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbd63c8}):_0x54ca43[_0xc7c6b4]=_0xbd63c8,_0x19f6db=(_0x3e387a,_0x11ed07,_0x1ab967,_0x28b852)=>{var _0x38be7d=_0x5c1d3b;for(var _0x231291=_0x28b852>0x1?void 0x0:_0x28b852?_0x1722e0(_0x11ed07,_0x1ab967):_0x11ed07,_0x1a85ae=_0x3e387a[_0x38be7d(0x1a4)]-0x1,_0x101fcc;_0x1a85ae>=0x0;_0x1a85ae--)(_0x101fcc=_0x3e387a[_0x1a85ae])&&(_0x231291=_0x101fcc(_0x231291)||_0x231291);return _0x231291;},_0x34a180=(_0x30f5b3,_0x4b6a22)=>(_0x22ec79,_0x499a02)=>_0x4b6a22(_0x22ec79,_0x499a02,_0x30f5b3),_0x64ea99=(_0x4fed24,_0x1413a8,_0x55b08c)=>_0x2d519c(_0x4fed24,typeof _0x1413a8!=_0x5c1d3b(0x1b5)?_0x1413a8+'':_0x1413a8,_0x55b08c);const _0x28a12f='UNIVER_LIVE_SHARE_PLUGIN';_0x9d65a9[_0x5c1d3b(0x102)]=class extends _0x316aa6[_0x5c1d3b(0x167)]{constructor(_0x4aca74=_0x4bd88c,_0x5c9ea4,_0x4e70dc){var _0x3132b6=_0x5c1d3b;super(),this['_config']=_0x4aca74,this['_injector']=_0x5c9ea4,this[_0x3132b6(0x15d)]=_0x4e70dc;const {..._0x53886b}=_0x316aa6[_0x3132b6(0x1c1)]({},_0x4bd88c,this[_0x3132b6(0x18b)]);this[_0x3132b6(0x15d)][_0x3132b6(0xe7)](_0x4de99d,_0x53886b);}['onStarting'](){var _0x71b70c=_0x5c1d3b;_0x316aa6['registerDependencies'](this[_0x71b70c(0x13e)],_0x316aa6[_0x71b70c(0x107)]([[_0x5baadc],[_0x9d65a9[_0x71b70c(0x12b)]],[_0x57d48f],[_0x9d65a9[_0x71b70c(0xda)]]],this[_0x71b70c(0x18b)][_0x71b70c(0xed)])),_0x316aa6['touchDependencies'](this[_0x71b70c(0x13e)],[[_0x57d48f]]);}[_0x5c1d3b(0xe5)](){var _0x39dcd4=_0x5c1d3b;_0x316aa6[_0x39dcd4(0xcc)](this[_0x39dcd4(0x13e)],[[_0x9d65a9[_0x39dcd4(0xda)]]]);}},_0x64ea99(_0x9d65a9['UniverLiveSharePlugin'],_0x5c1d3b(0xeb),_0x316aa6['UniverInstanceType']['UNIVER_UNKNOWN']),_0x64ea99(_0x9d65a9[_0x5c1d3b(0x102)],'pluginName',_0x28a12f),_0x9d65a9[_0x5c1d3b(0x102)]=_0x19f6db([_0x316aa6[_0x5c1d3b(0xf2)](_0x86b772[_0x5c1d3b(0x185)]),_0x34a180(0x1,_0x316aa6[_0x5c1d3b(0x187)](_0x316aa6[_0x5c1d3b(0xcd)])),_0x34a180(0x2,_0x316aa6[_0x5c1d3b(0x12f)])],_0x9d65a9['UniverLiveSharePlugin']),_0x9d65a9['LiveShare']=_0x4400d0,_0x9d65a9[_0x5c1d3b(0xf9)]=_0x5baadc,_0x9d65a9[_0x5c1d3b(0x1b2)]=_0x38e00d,Object[_0x5c1d3b(0xe6)](_0x9d65a9,Symbol[_0x5c1d3b(0x114)],{'value':_0x5c1d3b(0x194)});}));function _0x153c(){var _0x25be8f=['0\x200\x2017\x2017','params','memberID','1em','exports','connectInjector','indexOf','disposeWithMe','prototype','use','OFFLINE','toStringTag','_handleOperation','trim','Start\x20following','react','assign','displayName','children','clsx','InsertSheetMutation','CollaborationEvent','univer-size-4','offline','_unitID','@univerjs/design','mutations','@univerjs/sheets-ui','dispose','@univerjs/sheets','getCurrentTypeOfUnit$','_init','_sharedOperations','unsubscribe','LiveShareController','SetZoomRatioOperation','4443444DwdBWY','colorChannel1','IConfigService','live-share.config','string','unitId','call','className','NEW_CHANGESETS','_status$','_reporters','init','stringify','SessionStatus','then','Stop\x20following','LIVESHARE_TERMINATE','_injector','React','_fetchOperations','registerSharedOperation','data','_mountLiveShare','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','@univerjs-pro/collaboration','getOwnPropertyDescriptor','xlink:href','currentColor','rxjs/operators','UniverSheets','set','onCommandExecuted','toString','takeUntil','parse','executeCommand','UniverInstanceType','_startPresenting','concat','_stopFollowing','_startLiveShareCoordinator','has','sheet','hasOwnProperty','_collabSessionService','_handleOffline','NOT_FOLLOWING','following','_configService','_liveShareService','useRef','IUniverInstanceService','_handleTerminate','createElement','_startFollowing','values','react/jsx-runtime','Button','Plugin','UniverProCollaborationClient','LiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','registerComponent','UniverIcon','includes','forwardRef','http://www.w3.org/2000/svg','requireSession','RxDisposable','UniverProLiveShare','2768210VUpvYu','Start','event$','status$','idSuffix','icon','toDisposable','operators','IDLE','add','univer-mb-3\x20univer-w-full\x20univer-text-sm','reverse','UNIVER_SHEET','createInstance','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','map','LIVESHARE_FETCH_OPERATIONS','next','UniverCollaborationClientPlugin','_status','Inject','extend','button','_uiPartsService','_config','none','stopPresenting','mask','OPERATION','dispose$','_commandDisposable','pipe','defIds','Module','_handleNewChangeSets','@univerjs/ui','univerjs-icon\x20univerjs-icon-','_univerInstanceService','tag','function','_handleNewHost','SAME_OPERATION_SHARE_INTERVAL','_beIdle','_entities','jsxs','getConfig','attrs','Stop\x20presenting','_collabSession','length','1609842hcnUID','UniverProCollaboration','getUnitId','BuiltInUIPart','entries','LIVESHARE_NEW_HOST','LIVESHARE_REQUEST_HOST','26577NCiThO','_stopPresenting','getMemberID','UniverUi','_presenter','2gEFUYQ','LiveShareStatus','presenting','useDependency','symbol','not-following','5900629fXkdzW','PRESENTING','getOwnPropertySymbols','stopFollowing','forEach','HEADER_MENU','583rtrjpU','random','delete','FOLLOWING','merge','object','startFollowing','909010ZRfEJa','fill','touchDependencies','Injector','SetScrollOperation','660762OGxICg','parseProtocolChangeset','subscribe','LIVESHARE_OPERATION','find','url(#$1','sessionStatus$','default','amd','live-share-icon','rxjs','DesktopLiveShareController','LiveShareIcon','DisposableCollection','from','Fragment','jsx','getInitialStates','useEffect','Disposable','propertyIsEnumerable','CommandType','onRendered','defineProperty','setConfig','send','path','4mWTalu','type','replace','override','operations','SetWorksheetActiveOperation','apply','current','DependentOn','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Dropdown','getLiveShareCoordinator','1864MWYuza','registerInitialStateReporter','useState','LiveShareService','_commandService','_handleOnline','idle','getValue','defs','@univerjs-pro/collaboration-client','svg','div','UniverLiveSharePlugin','end','evenodd','presenter','complete','mergeOverrideWithDependencies','get'];_0x153c=function(){return _0x25be8f;};return _0x153c();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1-nightly.202506121607",
|
|
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.
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.8.
|
|
52
|
-
"@univerjs/core": "0.8.
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/sheets-ui": "0.8.
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.8.1-nightly.202506121607",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.8.1-nightly.202506121607",
|
|
52
|
+
"@univerjs/core": "0.8.1-nightly.202506121607",
|
|
53
|
+
"@univerjs/design": "0.8.1-nightly.202506121607",
|
|
54
|
+
"@univerjs/sheets-ui": "0.8.1-nightly.202506121607",
|
|
55
|
+
"@univerjs/sheets": "0.8.1-nightly.202506121607",
|
|
56
|
+
"@univerjs/ui": "0.8.1-nightly.202506121607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.4",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
65
|
"vitest": "^3.2.0",
|
|
66
|
-
"@univerjs-infra/shared": "0.8.
|
|
66
|
+
"@univerjs-infra/shared": "0.8.1",
|
|
67
67
|
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|