@univerjs-pro/live-share 0.6.8 → 0.6.9-experimental.20250403-d914ddc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x5db199=_0x3f8f;(function(_0x503f60,_0x19f5af){var _0xc7d88f=_0x3f8f,_0x2509cb=_0x503f60();while(!![]){try{var _0x10a90a=parseInt(_0xc7d88f(0x112))/0x1*(-parseInt(_0xc7d88f(0xdf))/0x2)+parseInt(_0xc7d88f(0xc5))/0x3*(-parseInt(_0xc7d88f(0x12c))/0x4)+parseInt(_0xc7d88f(0x11c))/0x5*(-parseInt(_0xc7d88f(0x182))/0x6)+parseInt(_0xc7d88f(0xce))/0x7+parseInt(_0xc7d88f(0x113))/0x8*(parseInt(_0xc7d88f(0xd6))/0x9)+-parseInt(_0xc7d88f(0x168))/0xa+parseInt(_0xc7d88f(0xf0))/0xb*(parseInt(_0xc7d88f(0x17a))/0xc);if(_0x10a90a===_0x19f5af)break;else _0x2509cb['push'](_0x2509cb['shift']());}catch(_0x326e70){_0x2509cb['push'](_0x2509cb['shift']());}}}(_0x5c95,0x611c8));var U=Object[_0x5db199(0x161)],F=(_0x2ff1ef,_0x4eb554,_0x20d818)=>_0x4eb554 in _0x2ff1ef?U(_0x2ff1ef,_0x4eb554,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20d818}):_0x2ff1ef[_0x4eb554]=_0x20d818,v=(_0x582773,_0x2701c6,_0xa8c6de)=>F(_0x582773,typeof _0x2701c6!=_0x5db199(0x114)?_0x2701c6+'':_0x2701c6,_0xa8c6de);Object[_0x5db199(0x161)](exports,Symbol[_0x5db199(0x139)],{'value':_0x5db199(0x14c)});const m=require(_0x5db199(0xc8)),o=require('@univerjs/core'),C=require(_0x5db199(0x11d)),D=require(_0x5db199(0x18c)),p=require(_0x5db199(0xc9)),l=require(_0x5db199(0x192)),g=require('@univerjs/design'),f=require(_0x5db199(0xc0)),_=require(_0x5db199(0x140)),L=require(_0x5db199(0x190)),b=require(_0x5db199(0xf8)),$=_0x5db199(0x137),x={};class E extends o[_0x5db199(0xcb)]{constructor(){var _0x44fd01=_0x5db199;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x44fd01(0x126),new Set());}[_0x5db199(0x177)](_0x5cee7b){var _0x1900fe=_0x5db199;return this[_0x1900fe(0x156)][_0x1900fe(0xf2)](_0x5cee7b),o[_0x1900fe(0x188)](()=>this[_0x1900fe(0x156)][_0x1900fe(0x170)](_0x5cee7b));}[_0x5db199(0xd5)](_0xfdc807){var _0x168df6=_0x5db199;return this['_reporters'][_0x168df6(0xf2)](_0xfdc807),o['toDisposable'](()=>this[_0x168df6(0x126)]['delete'](_0xfdc807));}[_0x5db199(0x14f)](_0x569e02){var _0x27b698=_0x5db199;return this['_sharedOperations'][_0x27b698(0x12a)](_0x569e02);}[_0x5db199(0x199)](_0x4a7200){var _0x2a111f=_0x5db199;return Array[_0x2a111f(0xbe)](this[_0x2a111f(0x126)])[_0x2a111f(0x13b)](_0x1795ee=>_0x1795ee(_0x4a7200));}}var H=Object[_0x5db199(0xba)],V=(_0x5d3521,_0x3167b3,_0x403cbb,_0x6dfa6f)=>{for(var _0x21aa67=_0x6dfa6f>0x1?void 0x0:_0x6dfa6f?H(_0x3167b3,_0x403cbb):_0x3167b3,_0x20f982=_0x5d3521['length']-0x1,_0x178852;_0x20f982>=0x0;_0x20f982--)(_0x178852=_0x5d3521[_0x20f982])&&(_0x21aa67=_0x178852(_0x21aa67)||_0x21aa67);return _0x21aa67;},k=(_0x2772ad,_0x4677a7)=>(_0x19a024,_0x1ff5ca)=>_0x4677a7(_0x19a024,_0x1ff5ca,_0x2772ad);let O=class extends o[_0x5db199(0xcb)]{constructor(_0x460685){var _0x175443=_0x5db199;super(),this[_0x175443(0x10d)]=_0x460685,this[_0x175443(0x10c)]();}['_init'](){var _0x2fe79b=_0x5db199;[D[_0x2fe79b(0x150)]['id'],D[_0x2fe79b(0x163)]['id'],C[_0x2fe79b(0x120)]['id']][_0x2fe79b(0xff)](_0x57645f=>{var _0x2829d1=_0x2fe79b;this[_0x2829d1(0xfc)](this[_0x2829d1(0x10d)][_0x2829d1(0x177)](_0x57645f));});}};O=V([k(0x0,o[_0x5db199(0xc1)](E))],O);var u=function(){var _0x3af487=_0x5db199;return u=Object[_0x3af487(0x164)]||function(_0x2d19d3){var _0x459eab=_0x3af487;for(var _0x1fcd01,_0x83cb96=0x1,_0x35c623=arguments['length'];_0x83cb96<_0x35c623;_0x83cb96++){_0x1fcd01=arguments[_0x83cb96];for(var _0x30fcdd in _0x1fcd01)Object[_0x459eab(0x13a)]['hasOwnProperty'][_0x459eab(0xca)](_0x1fcd01,_0x30fcdd)&&(_0x2d19d3[_0x30fcdd]=_0x1fcd01[_0x30fcdd]);}return _0x2d19d3;},u[_0x3af487(0x15e)](this,arguments);},M=function(_0x5621b4,_0x2f1131){var _0x5c2fa0=_0x5db199,_0x595f09={};for(var _0x4117fd in _0x5621b4)Object['prototype'][_0x5c2fa0(0x101)][_0x5c2fa0(0xca)](_0x5621b4,_0x4117fd)&&_0x2f1131[_0x5c2fa0(0x144)](_0x4117fd)<0x0&&(_0x595f09[_0x4117fd]=_0x5621b4[_0x4117fd]);if(_0x5621b4!=null&&typeof Object[_0x5c2fa0(0x162)]==_0x5c2fa0(0x100)){for(var _0x554a04=0x0,_0x4117fd=Object[_0x5c2fa0(0x162)](_0x5621b4);_0x554a04<_0x4117fd[_0x5c2fa0(0xf7)];_0x554a04++)_0x2f1131[_0x5c2fa0(0x144)](_0x4117fd[_0x554a04])<0x0&&Object[_0x5c2fa0(0x13a)][_0x5c2fa0(0x109)][_0x5c2fa0(0xca)](_0x5621b4,_0x4117fd[_0x554a04])&&(_0x595f09[_0x4117fd[_0x554a04]]=_0x5621b4[_0x4117fd[_0x554a04]]);}return _0x595f09;},j=f[_0x5db199(0x10a)](function(_0xf5d34f,_0x449bac){var _0x2f4b03=_0x5db199,_0x39fff6=_0xf5d34f[_0x2f4b03(0x10f)],_0x2578fb=_0xf5d34f['id'],_0x38750a=_0xf5d34f['className'],_0x4f24be=_0xf5d34f[_0x2f4b03(0x194)],_0xbdda6e=M(_0xf5d34f,['icon','id','className',_0x2f4b03(0x194)]),_0x4eb962='univerjs-icon\x20univerjs-icon-'[_0x2f4b03(0xd4)](_0x2578fb,'\x20')[_0x2f4b03(0xd4)](_0x38750a||'')[_0x2f4b03(0x15c)](),_0x5f3022=f[_0x2f4b03(0x115)]('_'['concat'](G()));return y(_0x39fff6,''[_0x2f4b03(0xd4)](_0x2578fb),{'defIds':_0x39fff6['defIds'],'idSuffix':_0x5f3022[_0x2f4b03(0xd0)]},u({'ref':_0x449bac,'className':_0x4eb962},_0xbdda6e),_0x4f24be);});function y(_0x482c7e,_0x66289d,_0x59d2c4,_0x3edf58,_0x5550d1){var _0x18602c=_0x5db199;return f['createElement'](_0x482c7e[_0x18602c(0x12b)],u(u({'key':_0x66289d},q(_0x482c7e,_0x59d2c4,_0x5550d1)),_0x3edf58),(W(_0x482c7e,_0x59d2c4)['children']||[])[_0x18602c(0x13b)](function(_0x41df12,_0x4feaa4){var _0x10ad17=_0x18602c;return y(_0x41df12,''[_0x10ad17(0xd4)](_0x66289d,'-')[_0x10ad17(0xd4)](_0x482c7e[_0x10ad17(0x12b)],'-')[_0x10ad17(0xd4)](_0x4feaa4),_0x59d2c4,void 0x0,_0x5550d1);}));}function q(_0x15e3fe,_0x5b609e,_0x143135){var _0x2c8bb3=_0x5db199,_0x763191=u({},_0x15e3fe[_0x2c8bb3(0xea)]);_0x143135!=null&&_0x143135[_0x2c8bb3(0x10e)]&&_0x763191[_0x2c8bb3(0x15b)]==='colorChannel1'&&(_0x763191['fill']=_0x143135[_0x2c8bb3(0x10e)]),_0x15e3fe[_0x2c8bb3(0x12b)]===_0x2c8bb3(0x142)&&_0x763191['id']&&(_0x763191['id']=_0x763191['id']+_0x5b609e[_0x2c8bb3(0xb3)]),Object['entries'](_0x763191)[_0x2c8bb3(0xff)](function(_0x2b2444){var _0x268b0d=_0x2c8bb3,_0x4aadd5=_0x2b2444[0x0],_0x2eefbf=_0x2b2444[0x1];_0x4aadd5===_0x268b0d(0x142)&&typeof _0x2eefbf==_0x268b0d(0xb7)&&(_0x763191[_0x4aadd5]=_0x2eefbf[_0x268b0d(0x197)](/url\(#(.*)\)/,_0x268b0d(0x153)['concat'](_0x5b609e[_0x268b0d(0xb3)],')')));});var _0xbf9ed7=_0x5b609e[_0x2c8bb3(0xd2)];return!_0xbf9ed7||_0xbf9ed7[_0x2c8bb3(0xf7)]===0x0||(_0x15e3fe[_0x2c8bb3(0x12b)]==='use'&&_0x763191[_0x2c8bb3(0x17e)]&&(_0x763191[_0x2c8bb3(0x17e)]=_0x763191[_0x2c8bb3(0x17e)]+_0x5b609e[_0x2c8bb3(0xb3)]),Object[_0x2c8bb3(0xd7)](_0x763191)[_0x2c8bb3(0xff)](function(_0x585511){var _0x144f1a=_0x2c8bb3,_0x458982=_0x585511[0x0],_0x5af002=_0x585511[0x1];typeof _0x5af002==_0x144f1a(0xb7)&&(_0x763191[_0x458982]=_0x5af002[_0x144f1a(0x197)](/url\(#(.*)\)/,_0x144f1a(0x153)['concat'](_0x5b609e['idSuffix'],')')));})),_0x763191;}function W(_0x5bce6b,_0x1c1899){var _0x344e6a=_0x5db199,_0x540d9c,_0x54691b=_0x1c1899[_0x344e6a(0xd2)];return!_0x54691b||_0x54691b['length']===0x0?_0x5bce6b:_0x5bce6b[_0x344e6a(0x12b)]==='defs'&&(!((_0x540d9c=_0x5bce6b['children'])===null||_0x540d9c===void 0x0)&&_0x540d9c[_0x344e6a(0xf7)])?u(u({},_0x5bce6b),{'children':_0x5bce6b['children'][_0x344e6a(0x13b)](function(_0x1a76b1){var _0x44e100=_0x344e6a;return typeof _0x1a76b1[_0x44e100(0xea)]['id']==_0x44e100(0xb7)&&_0x54691b&&_0x54691b[_0x44e100(0x144)](_0x1a76b1[_0x44e100(0xea)]['id'])>-0x1?u(u({},_0x1a76b1),{'attrs':u(u({},_0x1a76b1[_0x44e100(0xea)]),{'id':_0x1a76b1['attrs']['id']+_0x1c1899['idSuffix']})}):_0x1a76b1;})}):_0x5bce6b;}function _0x5c95(){var _0x138e50=['parse','337378DvdcmT','0\x200\x2016\x2016','Subject','override','UniverLiveSharePlugin','_commandService','IUniverInstanceService','NOT_FOLLOWING','_uiPartsService','params','mergeOverrideWithDependencies','attrs','onRendered','_handleNewChangeSets','complete','tryStartPresenting','currentColor','878515IBXFFO','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','add','getLiveShareCoordinator','CollaborationEvent','registerComponent','LiveShareCoordinator','length','rxjs/operators','CollaborationSessionService','_config','InsertSheetMutation','disposeWithMe','send','RxDisposable','forEach','function','hasOwnProperty','registerDependencies','createInstance','_injector','_unitID','_entities','includes','LiveShareSingle','propertyIsEnumerable','forwardRef','operations','_init','_liveShareService','colorChannel1','icon','stopFollowing','Dropdown','1cdSGAE','721112ZxbjqR','symbol','useRef','UniverCollaborationClientPlugin','LiveShareController','Stop\x20following','1em','following','You\x27are\x20offline.','25ArLkjh','@univerjs/sheets','You\x27re\x20presenting\x20the\x20document','status$','SetWorksheetActiveOperation','Button','asObservable','connectInjector','pipe','_stopPresenting','_reporters','get','Present\x20this\x20document','UNIVER_SHEET','has','tag','16MOkNks','Stop\x20presenting','Start','IDLE','type','text','PRESENTING','dispose','mutations','requireSession','_beIdle','live-share.config','merge','toStringTag','prototype','map','default','useState','presenter','_collabSession','@univerjs-pro/collaboration','onCommandExecuted','mask','LIVESHARE_REQUEST_HOST','indexOf','UniverInstanceType','small','OFFLINE','memberID','unitId','LIVESHARE_FETCH_OPERATIONS','path','Module','LiveShareService','clsx','shouldShareOperation','SetZoomRatioOperation','button','data','url(#$1','getUnitId','UniverIcon','_sharedOperations','_mountLiveShare','_status','LIVESHARE_OPERATION','_handleOperation','fill','trim','_univerInstanceService','apply','init','next','defineProperty','getOwnPropertySymbols','SetScrollOperation','assign','_commandDisposable','then','DesktopLiveShareController','6397710Whopof','jsxs','_configService','sessionStatus$','getTypeOfUnitAdded$','You\x27re\x20not\x20following\x20the\x20presenter','startFollowing','_startLiveShareCoordinator','delete','substring','IConfigService','_fetchOperations','BuiltInUIPart','div','values','registerSharedOperation','offline','useDependency','132mNWixP','idle','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','none','xlink:href','executeCommand','evenodd','takeUntil','826242RDqFKW','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_startPresenting','LIVESHARE_NEW_HOST','_handleOffline','clear','toDisposable','onStarting','CommandType','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','@univerjs/sheets-ui','createElement','IUIPartsService','presenting','rxjs','setConfig','react/jsx-runtime','dispose$','extend','getMemberID','not-following','replace','Fragment','getInitialStates','getCurrentTypeOfUnit$','SessionStatus','ONLINE','LiveShare','You\x27re\x20following\x20the\x20presenter','idSuffix','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_presenter','Injector','string','LIVESHARE_TERMINATE','ICommandService','getOwnPropertyDescriptor','_status$','jsx','stringify','from','toString','react','Inject','BehaviorSubject','OPERATION','subscribe','174261IjVdXg','reverse','UNIVER_LIVE_SHARE_PLUGIN','@univerjs-pro/collaboration-client','@univerjs/ui','call','Disposable','_stopFollowing','_startFollowing','4954334mqBOFO','sheet','current','displayName','defIds','find','concat','registerInitialStateReporter','54woupQZ','entries','_collabSessionService','getConfig','set','DependentOn','_handleOnline','live-share-single'];_0x5c95=function(){return _0x138e50;};return _0x5c95();}function _0x3f8f(_0x49de0d,_0x443900){var _0x5c95b0=_0x5c95();return _0x3f8f=function(_0x3f8f31,_0x2ae0a2){_0x3f8f31=_0x3f8f31-0xb2;var _0x2ee17e=_0x5c95b0[_0x3f8f31];return _0x2ee17e;},_0x3f8f(_0x49de0d,_0x443900);}function G(){var _0xd44aeb=_0x5db199;return Math['random']()[_0xd44aeb(0xbf)](0x24)[_0xd44aeb(0x171)](0x2,0x8);}j[_0x5db199(0xd1)]=_0x5db199(0x155);var B={'tag':'svg','attrs':{'fill':_0x5db199(0x17d),'viewBox':_0x5db199(0xe0),'width':_0x5db199(0x119),'height':'1em'},'children':[{'tag':_0x5db199(0x14b),'attrs':{'fill':_0x5db199(0xef),'d':_0x5db199(0xf1)}},{'tag':_0x5db199(0x14b),'attrs':{'fill':_0x5db199(0xef),'d':_0x5db199(0x17c),'fillRule':_0x5db199(0x180),'clipRule':_0x5db199(0x180)}}]},P=f['forwardRef'](function(_0x4195d2,_0x125b42){var _0x35f038=_0x5db199;return f[_0x35f038(0x18d)](j,Object['assign']({},_0x4195d2,{'id':_0x35f038(0xdd),'ref':_0x125b42,'icon':B}));});P['displayName']=_0x5db199(0x108);var Y=Object[_0x5db199(0xba)],R=(_0x102e23,_0x1e0f91,_0x1674ed,_0x4a8fa3)=>{var _0x1bc4db=_0x5db199;for(var _0x158ff3=_0x4a8fa3>0x1?void 0x0:_0x4a8fa3?Y(_0x1e0f91,_0x1674ed):_0x1e0f91,_0x1caa8e=_0x102e23[_0x1bc4db(0xf7)]-0x1,_0x4e8c00;_0x1caa8e>=0x0;_0x1caa8e--)(_0x4e8c00=_0x102e23[_0x1caa8e])&&(_0x158ff3=_0x4e8c00(_0x158ff3)||_0x158ff3);return _0x158ff3;},S=(_0x35e10e,_0xe3925d)=>(_0x455379,_0x4fc9a4)=>_0xe3925d(_0x455379,_0x4fc9a4,_0x35e10e);exports[_0x5db199(0x117)]=class extends o[_0x5db199(0xfe)]{constructor(_0x373685,_0x375fe3,_0x1cdd48){var _0x180304=_0x5db199;super(),v(this,'_entities',new Map()),(this[_0x180304(0x15d)]=_0x373685,this[_0x180304(0x104)]=_0x375fe3,this[_0x180304(0xd8)]=_0x1cdd48,this[_0x180304(0x10c)]());}async[_0x5db199(0xf3)](_0x3c1acf){var _0x2a5776=_0x5db199;return this['_entities'][_0x2a5776(0x12a)](_0x3c1acf)||await this[_0x2a5776(0x16f)](_0x3c1acf),this[_0x2a5776(0x106)]['get'](_0x3c1acf);}['_init'](){var _0x9f71e1=_0x5db199;this['_univerInstanceService'][_0x9f71e1(0x16c)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x9f71e1(0x124)](b[_0x9f71e1(0x181)](this[_0x9f71e1(0x193)]))[_0x9f71e1(0xc4)](async _0x761338=>{var _0x13e045=_0x9f71e1;const _0x1dc518=_0x761338[_0x13e045(0x154)]();this[_0x13e045(0x106)]['has'](_0x1dc518)||this[_0x13e045(0x16f)](_0x1dc518);}),this[_0x9f71e1(0x15d)]['getTypeOfUnitDisposed$'](o[_0x9f71e1(0x145)][_0x9f71e1(0x129)])['pipe'](b[_0x9f71e1(0x181)](this[_0x9f71e1(0x193)]))[_0x9f71e1(0xc4)](_0x315948=>{var _0x15f9d4=_0x9f71e1;const _0x2d4a04=_0x315948[_0x15f9d4(0x154)](),_0x402cf3=this[_0x15f9d4(0x106)][_0x15f9d4(0x127)](_0x2d4a04);_0x402cf3==null||_0x402cf3[_0x15f9d4(0x133)]();});}async[_0x5db199(0x16f)](_0x3251d6){var _0x362504=_0x5db199;const _0x14be61=await this[_0x362504(0xd8)][_0x362504(0x135)](_0x3251d6),_0x2adb88=this[_0x362504(0x104)][_0x362504(0x103)](exports[_0x362504(0xf6)],_0x3251d6,_0x14be61);return _0x2adb88[_0x362504(0x15f)](),this['_entities'][_0x362504(0xda)](_0x3251d6,_0x2adb88),_0x2adb88;}},exports['LiveShareController']=R([S(0x0,o[_0x5db199(0xe5)]),S(0x1,o[_0x5db199(0xc1)](o[_0x5db199(0xb6)])),S(0x2,o[_0x5db199(0xc1)](m[_0x5db199(0xf9)]))],exports['LiveShareController']);var h=(_0x453d2a=>(_0x453d2a[_0x5db199(0x147)]=_0x5db199(0x178),_0x453d2a[_0x5db199(0x12f)]='idle',_0x453d2a['FOLLOWING']=_0x5db199(0x11a),_0x453d2a[_0x5db199(0xe6)]='not-following',_0x453d2a[_0x5db199(0x132)]=_0x5db199(0x18f),_0x453d2a))(h||{});const z='SAME_OPERATION_SHARE_INTERVAL',Z=0xc8;exports[_0x5db199(0xf6)]=class extends o['RxDisposable']{constructor(_0x12bd2a,_0x2e6eca,_0x16a10b,_0x3e0364,_0x381e35){var _0x3570f9=_0x5db199;super(),v(this,_0x3570f9(0xbb),new L[(_0x3570f9(0xc2))](_0x3570f9(0x17b))),v(this,'status$',this['_status$'][_0x3570f9(0x122)]()),v(this,_0x3570f9(0x10c),!0x1),v(this,_0x3570f9(0x165),null),v(this,_0x3570f9(0xb5),null),(this['_unitID']=_0x12bd2a,this['_collabSession']=_0x2e6eca,this['_configService']=_0x16a10b,this[_0x3570f9(0x10d)]=_0x3e0364,this[_0x3570f9(0xe4)]=_0x381e35);}get[_0x5db199(0x158)](){return this['_status$']['getValue']();}[_0x5db199(0x133)](){var _0x504c81=_0x5db199,_0x5246d5;(_0x5246d5=this[_0x504c81(0x165)])==null||_0x5246d5[_0x504c81(0x133)](),this['_status$'][_0x504c81(0x160)](_0x504c81(0x17b)),this[_0x504c81(0xbb)][_0x504c81(0xed)]();}[_0x5db199(0x15f)](){var _0x481af7=_0x5db199;this['_init']||(this[_0x481af7(0x10c)]=!0x0,this[_0x481af7(0x13f)][_0x481af7(0x16b)][_0x481af7(0x124)](b[_0x481af7(0x181)](this['dispose$']))[_0x481af7(0xc4)](_0x26fb88=>{var _0x4fa963=_0x481af7;switch(_0x26fb88){case m[_0x4fa963(0x19b)][_0x4fa963(0x147)]:this['_handleOffline']();break;case m['SessionStatus'][_0x4fa963(0x19c)]:this[_0x4fa963(0xdc)]();break;}}),this[_0x481af7(0x13f)]['event$'][_0x481af7(0x124)](b[_0x481af7(0x181)](this['dispose$']))[_0x481af7(0xc4)](_0x23b928=>{var _0x5cde72=_0x481af7;const {eventID:_0x455ff5}=_0x23b928;switch(_0x455ff5){case _[_0x5cde72(0xf4)][_0x5cde72(0x185)]:this['_handleNewHost'](_0x23b928);break;case _[_0x5cde72(0xf4)][_0x5cde72(0x159)]:this[_0x5cde72(0x15a)](_0x23b928);break;case _[_0x5cde72(0xf4)][_0x5cde72(0xb8)]:this['_handleTerminate']();break;case _[_0x5cde72(0xf4)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x23b928);break;}}));}[_0x5db199(0xee)](){var _0x2d0a6d=_0x5db199;this[_0x2d0a6d(0x13f)][_0x2d0a6d(0xfd)]({'eventID':_[_0x2d0a6d(0xf4)][_0x2d0a6d(0x143)],'data':{'unitID':this[_0x2d0a6d(0x105)],'userID':this['_collabSession'][_0x2d0a6d(0x195)]()}},this[_0x2d0a6d(0x105)]);}['stopPresenting'](){var _0x3f3d76=_0x5db199;this['_status']===_0x3f3d76(0x18f)&&(this['_status$'][_0x3f3d76(0x160)](_0x3f3d76(0x17b)),this[_0x3f3d76(0x13f)]['send']({'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x3f3d76(0x105)]));}[_0x5db199(0x16e)](){var _0x32fadd=_0x5db199;this[_0x32fadd(0x158)]==='not-following'&&(this[_0x32fadd(0xbb)][_0x32fadd(0x160)]('following'),this[_0x32fadd(0xcd)]());}[_0x5db199(0x110)](){var _0x3b7999=_0x5db199;this[_0x3b7999(0x158)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x535c36){var _0x37abb2=_0x5db199;const {presenter:_0x9d194e}=_0x535c36['data'],_0x540e5e=this[_0x37abb2(0x13f)][_0x37abb2(0x195)]();this[_0x37abb2(0xb5)]=_0x9d194e,_0x9d194e===_0x540e5e?(this['_stopFollowing'](),this[_0x37abb2(0x184)]()):this[_0x37abb2(0x158)]!==_0x37abb2(0x196)&&(this[_0x37abb2(0x125)](),this[_0x37abb2(0xcd)]());}[_0x5db199(0x173)](){var _0x20b4d6=_0x5db199;const _0x1de012={'eventID':_['CollaborationEvent'][_0x20b4d6(0x14a)]};this[_0x20b4d6(0x13f)]['send'](_0x1de012,this['_unitID']);}['_handleTerminate'](){var _0x500e03=_0x5db199;this[_0x500e03(0xb5)]=null,this[_0x500e03(0x158)]!=='presenting'&&this['_beIdle']();}[_0x5db199(0xec)](_0x348a92){var _0x1ca806=_0x5db199;if(this[_0x1ca806(0x158)]==='following'&&this['_presenter']===_0x348a92['data'][_0x1ca806(0x148)]){const _0x22cea2=_['parseProtocolChangeset'](_0x348a92[_0x1ca806(0x152)])[_0x1ca806(0x134)][_0x1ca806(0xc6)]()[_0x1ca806(0xd3)](_0x5f905b=>_0x5f905b['id']===C[_0x1ca806(0xfb)]['id']);if(_0x22cea2){const _0xa027bf=_0x22cea2[_0x1ca806(0xe8)][_0x1ca806(0x149)],_0x34023b=_0x22cea2[_0x1ca806(0xe8)][_0x1ca806(0xcf)]['id'];setTimeout(()=>{var _0x2e45ce=_0x1ca806;this[_0x2e45ce(0xe4)][_0x2e45ce(0x17f)](C[_0x2e45ce(0x120)]['id'],{'unitId':_0xa027bf,'subUnitId':_0x34023b},{'fromCollab':!0x0});});}}}[_0x5db199(0x184)](){var _0x3dc7b2=_0x5db199;this[_0x3dc7b2(0xbb)][_0x3dc7b2(0x160)](_0x3dc7b2(0x18f));const _0x53b498=new Map(),_0x4943c2=this[_0x3dc7b2(0x165)]=new o['DisposableCollection']();_0x4943c2[_0x3dc7b2(0xf2)](o[_0x3dc7b2(0x188)](()=>{var _0x52c705=_0x3dc7b2;_0x53b498[_0x52c705(0xff)](_0x3fc7a5=>_0x3fc7a5[_0x52c705(0xed)]()),_0x53b498[_0x52c705(0x187)]();})),_0x4943c2[_0x3dc7b2(0xf2)](this[_0x3dc7b2(0xe4)][_0x3dc7b2(0x141)](_0x58c747=>{var _0x5eb441=_0x3dc7b2,_0x561863;if(_0x58c747[_0x5eb441(0x130)]!==o[_0x5eb441(0x18a)][_0x5eb441(0xc3)]||!this[_0x5eb441(0x10d)][_0x5eb441(0x14f)](_0x58c747['id']))return;const {id:_0x1a9824}=_0x58c747;let _0x1dbf3c;_0x53b498[_0x5eb441(0x12a)](_0x1a9824)?_0x1dbf3c=_0x53b498[_0x5eb441(0x127)](_0x1a9824):(_0x1dbf3c=new L[(_0x5eb441(0xe1))](),_0x53b498['set'](_0x1a9824,_0x1dbf3c),_0x1dbf3c['pipe'](b['throttleTime']((_0x561863=this[_0x5eb441(0x16a)][_0x5eb441(0xd9)](z))!=null?_0x561863:Z,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5eb441(0xc4)](_0x19fd80=>{var _0x3f81bb=_0x5eb441;this[_0x3f81bb(0x13f)][_0x3f81bb(0xfd)]({'eventID':_[_0x3f81bb(0xf4)][_0x3f81bb(0x159)],'data':{'unitID':this[_0x3f81bb(0x105)],'operations':{[_0x19fd80['id']]:{'id':_0x19fd80['id'],'params':JSON[_0x3f81bb(0xbd)](_0x19fd80[_0x3f81bb(0xe8)])}}}},this['_unitID']);})),_0x1dbf3c[_0x5eb441(0x160)](_0x58c747);})),this['_liveShareService']['getInitialStates'](this[_0x3dc7b2(0x105)])[_0x3dc7b2(0xff)](_0x404a15=>this[_0x3dc7b2(0x13f)][_0x3dc7b2(0xfd)]({'eventID':_[_0x3dc7b2(0xf4)][_0x3dc7b2(0x159)],'data':{'unitID':this[_0x3dc7b2(0x105)],'operations':{[_0x404a15['id']]:{'id':_0x404a15['id'],'params':JSON[_0x3dc7b2(0xbd)](_0x404a15[_0x3dc7b2(0xe8)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x53ad9b=_0x5db199,_0x575088;this[_0x53ad9b(0xbb)]['next'](_0x53ad9b(0x17b)),(_0x575088=this[_0x53ad9b(0x165)])==null||_0x575088[_0x53ad9b(0x133)](),this[_0x53ad9b(0x165)]=null;}[_0x5db199(0xcd)](){var _0x440ed0=_0x5db199,_0x1e2f5e;(_0x1e2f5e=this[_0x440ed0(0x165)])==null||_0x1e2f5e[_0x440ed0(0x133)](),this[_0x440ed0(0xbb)][_0x440ed0(0x160)](_0x440ed0(0x11a));}[_0x5db199(0x136)](){var _0x4ef687=_0x5db199,_0x305cca;this[_0x4ef687(0xbb)][_0x4ef687(0x160)](_0x4ef687(0x17b)),(_0x305cca=this[_0x4ef687(0x165)])==null||_0x305cca[_0x4ef687(0x133)](),this[_0x4ef687(0x165)]=null;}[_0x5db199(0xcc)](){var _0x44718d=_0x5db199,_0x16e900;this[_0x44718d(0xbb)][_0x44718d(0x160)](_0x44718d(0x196)),(_0x16e900=this[_0x44718d(0x165)])==null||_0x16e900[_0x44718d(0x133)]();}[_0x5db199(0x15a)](_0x59ec53){var _0x57a5bc=_0x5db199;if([_0x57a5bc(0x18f),'not-following',_0x57a5bc(0x178)][_0x57a5bc(0x107)](this[_0x57a5bc(0x158)])||!_0x59ec53[_0x57a5bc(0x152)][_0x57a5bc(0x13e)]||_0x59ec53[_0x57a5bc(0x152)]['presenter']===this['_collabSession'][_0x57a5bc(0x195)]())return;this[_0x57a5bc(0x158)]===_0x57a5bc(0x17b)&&this[_0x57a5bc(0xcd)]();const _0x4ec965=_0x59ec53[_0x57a5bc(0x152)][_0x57a5bc(0x10b)];Object[_0x57a5bc(0x176)](_0x4ec965)['forEach'](_0xd0dfa8=>{var _0x4c536b=_0x57a5bc;this['_commandService'][_0x4c536b(0x17f)](_0xd0dfa8['id'],_0xd0dfa8[_0x4c536b(0xe8)]?JSON[_0x4c536b(0xde)](_0xd0dfa8[_0x4c536b(0xe8)]):null,{'fromCollab':!0x0});});}[_0x5db199(0x186)](){var _0x257cd0=_0x5db199,_0xccb950;this[_0x257cd0(0xbb)]['next'](_0x257cd0(0x178)),(_0xccb950=this[_0x257cd0(0x165)])==null||_0xccb950[_0x257cd0(0x133)]();}[_0x5db199(0xdc)](){var _0x367db7=_0x5db199;this['_status$'][_0x367db7(0x160)](_0x367db7(0x17b)),this[_0x367db7(0x173)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x5db199(0x172)]),S(0x3,o[_0x5db199(0xc1)](E)),S(0x4,o[_0x5db199(0xb9)])],exports[_0x5db199(0xf6)]);function A(){var _0x37c347=_0x5db199;const _0x1f3351=p[_0x37c347(0x179)](exports[_0x37c347(0x117)]),_0x5dcee6=p[_0x37c347(0x179)](o[_0x37c347(0xe5)]),_0x265c58=p['useObservable'](()=>_0x5dcee6[_0x37c347(0x19a)](o['UniverInstanceType'][_0x37c347(0x129)]),void 0x0,!0x1,[]),[_0x245d5f,_0x26b47b]=f[_0x37c347(0x13d)](null),[_0x2b0534,_0x30c88f]=f['useState'](h[_0x37c347(0x12f)]),_0x33b069=f['useRef'](null);return f['useEffect'](()=>(_0x265c58&&_0x1f3351[_0x37c347(0xf3)](_0x265c58['getUnitId']())[_0x37c347(0x166)](_0x331f0d=>{var _0x172091=_0x37c347;_0x26b47b(_0x331f0d),_0x33b069[_0x172091(0xd0)]=_0x331f0d[_0x172091(0x11f)][_0x172091(0xc4)](_0x26237a=>{_0x30c88f(_0x26237a);});}),()=>{var _0x800520=_0x37c347,_0x5ced23;(_0x5ced23=_0x33b069['current'])==null||_0x5ced23['unsubscribe'](),_0x33b069[_0x800520(0xd0)]=null;}),[_0x265c58,_0x1f3351]),_0x245d5f?l[_0x37c347(0xbc)](g[_0x37c347(0x111)],{'align':'end','disabled':_0x2b0534===h[_0x37c347(0x147)],'className':_0x37c347(0xb4),'overlay':l[_0x37c347(0xbc)](J,{'status':_0x2b0534,'coordinator':_0x245d5f}),'children':l[_0x37c347(0xbc)](_0x37c347(0x151),{'className':g[_0x37c347(0x14e)](_0x37c347(0x183),{'univer-cursor-not-allowed':_0x2b0534===h[_0x37c347(0x147)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2b0534!==h[_0x37c347(0x147)]}),'type':_0x37c347(0x151),'children':l['jsx'](P,{'className':'univer-size-4'})})}):null;}function J(_0x237395){var _0xa8e005=_0x5db199;const {status:_0x2018a8,coordinator:_0x266d58}=_0x237395;switch(_0x2018a8){case h['IDLE']:return l[_0xa8e005(0xbc)](K,{'coordinator':_0x266d58});case h['FOLLOWING']:return l[_0xa8e005(0xbc)](Q,{'coordinator':_0x266d58});case h[_0xa8e005(0xe6)]:return l['jsx'](X,{'coordinator':_0x266d58});case h[_0xa8e005(0x147)]:return l['jsx'](te,{});case h[_0xa8e005(0x132)]:return l['jsx'](ee,{'coordinator':_0x266d58});default:return null;}}function K(_0x3cb525){var _0x3632ea=_0x5db199;const {coordinator:_0x37bd46}=_0x3cb525;return l[_0x3632ea(0x169)](l[_0x3632ea(0x198)],{'children':[l[_0x3632ea(0xbc)](_0x3632ea(0x175),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x3632ea(0x128)}),l[_0x3632ea(0xbc)](g[_0x3632ea(0x121)],{'size':_0x3632ea(0x146),'type':_0x3632ea(0x13c),'onClick':()=>_0x37bd46[_0x3632ea(0xee)](),'children':_0x3632ea(0x12e)})]});}function Q(_0x439218){var _0x147200=_0x5db199;const {coordinator:_0x545121}=_0x439218;return l[_0x147200(0x169)](l[_0x147200(0x198)],{'children':[l[_0x147200(0xbc)]('div',{'className':_0x147200(0x18b),'children':_0x147200(0xb2)}),l[_0x147200(0xbc)](g['Button'],{'size':'small','type':_0x147200(0x13c),'onClick':()=>_0x545121[_0x147200(0x110)](),'children':_0x147200(0x118)})]});}function X(_0x585f3c){var _0x33d0a9=_0x5db199;const {coordinator:_0x43902f}=_0x585f3c;return l[_0x33d0a9(0x169)](l[_0x33d0a9(0x198)],{'children':[l[_0x33d0a9(0xbc)](_0x33d0a9(0x175),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x33d0a9(0x16d)}),l['jsx'](g[_0x33d0a9(0x121)],{'size':_0x33d0a9(0x146),'type':_0x33d0a9(0x131),'onClick':()=>_0x43902f['startFollowing'](),'children':'Start\x20following'})]});}function ee(_0x5968df){var _0x18ce8a=_0x5db199;const {coordinator:_0x5c634a}=_0x5968df;return l[_0x18ce8a(0x169)](l['Fragment'],{'children':[l[_0x18ce8a(0xbc)](_0x18ce8a(0x175),{'className':_0x18ce8a(0x18b),'children':_0x18ce8a(0x11e)}),l[_0x18ce8a(0xbc)](g[_0x18ce8a(0x121)],{'size':'small','type':_0x18ce8a(0x13c),'onClick':()=>_0x5c634a['stopPresenting'](),'children':_0x18ce8a(0x12d)})]});}function te(){var _0x168463=_0x5db199;return l[_0x168463(0xbc)](l[_0x168463(0x198)],{'children':_0x168463(0x11b)});}var ie=Object[_0x5db199(0xba)],ne=(_0x19713a,_0x4b6c7b,_0x4fb7aa,_0x171add)=>{var _0x352cea=_0x5db199;for(var _0x19e52a=_0x171add>0x1?void 0x0:_0x171add?ie(_0x4b6c7b,_0x4fb7aa):_0x4b6c7b,_0x2cc9f6=_0x19713a[_0x352cea(0xf7)]-0x1,_0x464f62;_0x2cc9f6>=0x0;_0x2cc9f6--)(_0x464f62=_0x19713a[_0x2cc9f6])&&(_0x19e52a=_0x464f62(_0x19e52a)||_0x19e52a);return _0x19e52a;},N=(_0x195fa3,_0x21f15e)=>(_0x118f48,_0x5d593d)=>_0x21f15e(_0x118f48,_0x5d593d,_0x195fa3);exports[_0x5db199(0x167)]=class extends o[_0x5db199(0xcb)]{constructor(_0x53d01c,_0x19513d){super(),this['_injector']=_0x53d01c,this['_uiPartsService']=_0x19513d,this['_mountLiveShare']();}[_0x5db199(0x157)](){var _0x5ddc4f=_0x5db199;this[_0x5ddc4f(0xfc)](this[_0x5ddc4f(0xe7)][_0x5ddc4f(0xf5)](p[_0x5ddc4f(0x174)]['HEADER_MENU'],()=>p[_0x5ddc4f(0x123)](A,this['_injector'])));}},exports[_0x5db199(0x167)]=ne([N(0x0,o[_0x5db199(0xc1)](o['Injector'])),N(0x1,p[_0x5db199(0x18e)])],exports[_0x5db199(0x167)]);var re=Object[_0x5db199(0x161)],se=Object[_0x5db199(0xba)],oe=(_0x2cd8a1,_0x31a066,_0x592983)=>_0x31a066 in _0x2cd8a1?re(_0x2cd8a1,_0x31a066,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x592983}):_0x2cd8a1[_0x31a066]=_0x592983,ae=(_0x5bd17e,_0x11c888,_0x351acd,_0x40cea6)=>{var _0x454a6d=_0x5db199;for(var _0x382bf4=_0x40cea6>0x1?void 0x0:_0x40cea6?se(_0x11c888,_0x351acd):_0x11c888,_0x3ef7bc=_0x5bd17e[_0x454a6d(0xf7)]-0x1,_0x95ed19;_0x3ef7bc>=0x0;_0x3ef7bc--)(_0x95ed19=_0x5bd17e[_0x3ef7bc])&&(_0x382bf4=_0x95ed19(_0x382bf4)||_0x382bf4);return _0x382bf4;},w=(_0x358c12,_0x495e2d)=>(_0x9db4ad,_0x16b0b7)=>_0x495e2d(_0x9db4ad,_0x16b0b7,_0x358c12),T=(_0x49e2f3,_0x1a482b,_0x415a62)=>oe(_0x49e2f3,typeof _0x1a482b!=_0x5db199(0x114)?_0x1a482b+'':_0x1a482b,_0x415a62);const le=_0x5db199(0xc7);exports[_0x5db199(0xe3)]=class extends o['Plugin']{constructor(_0xe7515d=x,_0x33343d,_0x2747ab){var _0x1b9a7c=_0x5db199;super(),this['_config']=_0xe7515d,this[_0x1b9a7c(0x104)]=_0x33343d,this[_0x1b9a7c(0x16a)]=_0x2747ab;const {..._0x1191d5}=o[_0x1b9a7c(0x138)]({},x,this['_config']);this[_0x1b9a7c(0x16a)][_0x1b9a7c(0x191)]($,_0x1191d5);}[_0x5db199(0x189)](){var _0x5132d9=_0x5db199;o[_0x5132d9(0x102)](this[_0x5132d9(0x104)],o[_0x5132d9(0xe9)]([[E],[exports[_0x5132d9(0x117)]],[O],[exports[_0x5132d9(0x167)]]],this[_0x5132d9(0xfa)][_0x5132d9(0xe2)])),o['touchDependencies'](this[_0x5132d9(0x104)],[[O]]);}[_0x5db199(0xeb)](){var _0x370c9e=_0x5db199;o['touchDependencies'](this[_0x370c9e(0x104)],[[exports[_0x370c9e(0x167)]]]);}},T(exports[_0x5db199(0xe3)],_0x5db199(0x130),o[_0x5db199(0x145)]['UNIVER_UNKNOWN']),T(exports['UniverLiveSharePlugin'],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o[_0x5db199(0xdb)](m[_0x5db199(0x116)]),w(0x1,o[_0x5db199(0xc1)](o[_0x5db199(0xb6)])),w(0x2,o['IConfigService'])],exports['UniverLiveSharePlugin']),exports[_0x5db199(0x19d)]=A,exports[_0x5db199(0x14d)]=E,exports['LiveShareStatus']=h;
1
+ 'use strict';var _0x55a0f2=_0x34d2;(function(_0x3dfd80,_0x4f6027){var _0x173ca6=_0x34d2,_0x46b907=_0x3dfd80();while(!![]){try{var _0x4eced6=parseInt(_0x173ca6(0xe9))/0x1*(parseInt(_0x173ca6(0x18f))/0x2)+-parseInt(_0x173ca6(0x128))/0x3*(-parseInt(_0x173ca6(0x158))/0x4)+parseInt(_0x173ca6(0x1a7))/0x5*(parseInt(_0x173ca6(0x16a))/0x6)+parseInt(_0x173ca6(0x14b))/0x7+-parseInt(_0x173ca6(0x186))/0x8+-parseInt(_0x173ca6(0x108))/0x9+-parseInt(_0x173ca6(0x1a6))/0xa;if(_0x4eced6===_0x4f6027)break;else _0x46b907['push'](_0x46b907['shift']());}catch(_0x637eee){_0x46b907['push'](_0x46b907['shift']());}}}(_0x2f2d,0x6476a));var U=Object['defineProperty'],F=(_0x1bb4bd,_0x53a789,_0x3da71d)=>_0x53a789 in _0x1bb4bd?U(_0x1bb4bd,_0x53a789,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3da71d}):_0x1bb4bd[_0x53a789]=_0x3da71d,v=(_0xa7d41c,_0xdf365,_0x28605b)=>F(_0xa7d41c,typeof _0xdf365!=_0x55a0f2(0x185)?_0xdf365+'':_0xdf365,_0x28605b);Object[_0x55a0f2(0xec)](exports,Symbol['toStringTag'],{'value':_0x55a0f2(0x18c)});const m=require(_0x55a0f2(0x188)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),D=require(_0x55a0f2(0x180)),p=require('@univerjs/ui'),l=require(_0x55a0f2(0xeb)),g=require('@univerjs/design'),f=require('react'),_=require(_0x55a0f2(0x197)),L=require(_0x55a0f2(0x193)),b=require(_0x55a0f2(0x1c4)),$=_0x55a0f2(0x105),x={};function _0x2f2d(){var _0x7c1b82=['M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','UniverInstanceType','registerDependencies','getTypeOfUnitDisposed$','registerSharedOperation','unitId','0\x200\x2016\x2016','29EJZAIK','mask','react/jsx-runtime','defineProperty','1em','Button','disposeWithMe','replace','stopFollowing','_reporters','UniverIcon','CollaborationSessionService','extend','throttleTime','useObservable','find','parse','hasOwnProperty','setConfig','_entities','DisposableCollection','UNIVER_SHEET','string','icon','entries','_uiPartsService','takeUntil','_status$','live-share.config','UNIVER_UNKNOWN','currentColor','2498472EGHSCl','_presenter','LiveShare','map','forEach','from','You\x27re\x20following\x20the\x20presenter','current','stopPresenting','event$','getMemberID','UniverCollaborationClientPlugin','SAME_OPERATION_SHARE_INTERVAL','Stop\x20following','indexOf','_startPresenting','_init','assign','LiveShareCoordinator','type','connectInjector','random','LIVESHARE_REQUEST_HOST','values','_injector','pipe','_startLiveShareCoordinator','Fragment','length','Start','DesktopLiveShareController','getCurrentTypeOfUnit$','3SvTLsN','useState','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Plugin','_collabSessionService','button','LiveShareController','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','useDependency','sessionStatus$','_configService','dispose$','createInstance','_univerInstanceService','prototype','_sharedOperations','UniverLiveSharePlugin','jsx','RxDisposable','send','getConfig','dispose','_config','getOwnPropertySymbols','url(#$1','LIVESHARE_FETCH_OPERATIONS','defs','_fetchOperations','asObservable','LIVESHARE_OPERATION','then','InsertSheetMutation','getLiveShareCoordinator','SetScrollOperation','next','679434BDuZNp','following','_handleNewChangeSets','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','touchDependencies','_status','LIVESHARE_NEW_HOST','DependentOn','get','memberID','toDisposable','shouldShareOperation','propertyIsEnumerable','160472SJVdCv','not-following','getOwnPropertyDescriptor','_handleOnline','displayName','_commandDisposable','SessionStatus','Inject','stringify','forwardRef','attrs','live-share-single','includes','children','_stopFollowing','_handleNewHost','toString','className','3954pIxAyO','_unitID','OPERATION','registerComponent','offline','_collabSession','IDLE','data','idSuffix','merge','presenting','ONLINE','pluginName','getValue','executeCommand','Subject','mutations','colorChannel1','BuiltInUIPart','FOLLOWING','_startFollowing','_mountLiveShare','@univerjs/sheets-ui','operations','createElement','Injector','You\x27re\x20presenting\x20the\x20document','symbol','2054200tHhSZt','fill','@univerjs-pro/collaboration-client','call','subscribe','UNIVER_LIVE_SHARE_PLUGIN','Module','svg','getInitialStates','48910PLhOvZ','sheet','apply','default','rxjs','useRef','presenter','NEW_CHANGESETS','@univerjs-pro/collaboration','idle','onRendered','IUniverInstanceService','OFFLINE','getUnitId','_handleTerminate','univer-size-4','complete','startFollowing','LiveShareSingle','CollaborationEvent','small','params','clsx','3532270hsBQTb','3435WotERQ','delete','_handleOperation','_liveShareService','NOT_FOLLOWING','jsxs','status$','add','trim','getTypeOfUnitAdded$','xlink:href','_beIdle','substring','_commandService','_handleOffline','concat','init','set','reverse','has','none','requireSession','tag','_stopPresenting','defIds','div','LIVESHARE_TERMINATE','You\x27are\x20offline.','Disposable','rxjs/operators'];_0x2f2d=function(){return _0x7c1b82;};return _0x2f2d();}class E extends o['Disposable']{constructor(){var _0x587c5b=_0x55a0f2;super(...arguments),v(this,_0x587c5b(0x137),new Set()),v(this,_0x587c5b(0xf2),new Set());}[_0x55a0f2(0x1c9)](_0xe647b8){var _0x293567=_0x55a0f2;return this['_sharedOperations'][_0x293567(0x1ae)](_0xe647b8),o['toDisposable'](()=>this[_0x293567(0x137)][_0x293567(0x1a8)](_0xe647b8));}['registerInitialStateReporter'](_0x1e4a2a){var _0x29e48e=_0x55a0f2;return this[_0x29e48e(0xf2)]['add'](_0x1e4a2a),o['toDisposable'](()=>this[_0x29e48e(0xf2)][_0x29e48e(0x1a8)](_0x1e4a2a));}[_0x55a0f2(0x156)](_0x3cd2ec){var _0x14e22b=_0x55a0f2;return this[_0x14e22b(0x137)][_0x14e22b(0x1ba)](_0x3cd2ec);}[_0x55a0f2(0x18e)](_0x223a12){var _0x37fbed=_0x55a0f2;return Array[_0x37fbed(0x10d)](this[_0x37fbed(0xf2)])[_0x37fbed(0x10b)](_0x39a7e5=>_0x39a7e5(_0x223a12));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x1b39d5,_0x32e8bc,_0x179783,_0x15fcec)=>{for(var _0x3d7140=_0x15fcec>0x1?void 0x0:_0x15fcec?H(_0x32e8bc,_0x179783):_0x32e8bc,_0x259105=_0x1b39d5['length']-0x1,_0x57f333;_0x259105>=0x0;_0x259105--)(_0x57f333=_0x1b39d5[_0x259105])&&(_0x3d7140=_0x57f333(_0x3d7140)||_0x3d7140);return _0x3d7140;},k=(_0x59662e,_0x5107b4)=>(_0x13e2db,_0x535abf)=>_0x5107b4(_0x13e2db,_0x535abf,_0x59662e);let O=class extends o[_0x55a0f2(0x1c3)]{constructor(_0x30de8b){var _0xb059a3=_0x55a0f2;super(),this['_liveShareService']=_0x30de8b,this[_0xb059a3(0x118)]();}['_init'](){var _0x4eb026=_0x55a0f2;[D['SetZoomRatioOperation']['id'],D[_0x4eb026(0x149)]['id'],C['SetWorksheetActiveOperation']['id']][_0x4eb026(0x10c)](_0x491cf7=>{var _0x303edd=_0x4eb026;this[_0x303edd(0xef)](this[_0x303edd(0x1aa)][_0x303edd(0x1c9)](_0x491cf7));});}};O=V([k(0x0,o['Inject'](E))],O);var u=function(){var _0x4dcdb1=_0x55a0f2;return u=Object[_0x4dcdb1(0x119)]||function(_0x35adaf){var _0x319475=_0x4dcdb1;for(var _0x33f8cd,_0x347c63=0x1,_0x5062a3=arguments[_0x319475(0x124)];_0x347c63<_0x5062a3;_0x347c63++){_0x33f8cd=arguments[_0x347c63];for(var _0x1422c2 in _0x33f8cd)Object[_0x319475(0x136)][_0x319475(0xfa)]['call'](_0x33f8cd,_0x1422c2)&&(_0x35adaf[_0x1422c2]=_0x33f8cd[_0x1422c2]);}return _0x35adaf;},u[_0x4dcdb1(0x191)](this,arguments);},M=function(_0x466c27,_0x37a4aa){var _0x2fed55=_0x55a0f2,_0x34ec3f={};for(var _0x56ec92 in _0x466c27)Object[_0x2fed55(0x136)][_0x2fed55(0xfa)][_0x2fed55(0x189)](_0x466c27,_0x56ec92)&&_0x37a4aa['indexOf'](_0x56ec92)<0x0&&(_0x34ec3f[_0x56ec92]=_0x466c27[_0x56ec92]);if(_0x466c27!=null&&typeof Object[_0x2fed55(0x13f)]=='function'){for(var _0x14faec=0x0,_0x56ec92=Object[_0x2fed55(0x13f)](_0x466c27);_0x14faec<_0x56ec92['length'];_0x14faec++)_0x37a4aa[_0x2fed55(0x116)](_0x56ec92[_0x14faec])<0x0&&Object[_0x2fed55(0x136)][_0x2fed55(0x157)][_0x2fed55(0x189)](_0x466c27,_0x56ec92[_0x14faec])&&(_0x34ec3f[_0x56ec92[_0x14faec]]=_0x466c27[_0x56ec92[_0x14faec]]);}return _0x34ec3f;},j=f[_0x55a0f2(0x161)](function(_0x453dca,_0x2fc6cc){var _0x327a3e=_0x55a0f2,_0x2fd2d3=_0x453dca['icon'],_0x3491b6=_0x453dca['id'],_0xaaa274=_0x453dca['className'],_0x1289db=_0x453dca[_0x327a3e(0xf5)],_0x845325=M(_0x453dca,[_0x327a3e(0x100),'id',_0x327a3e(0x169),_0x327a3e(0xf5)]),_0x58c2f5='univerjs-icon\x20univerjs-icon-'[_0x327a3e(0x1b6)](_0x3491b6,'\x20')[_0x327a3e(0x1b6)](_0xaaa274||'')[_0x327a3e(0x1af)](),_0x27f6dd=f['useRef']('_'[_0x327a3e(0x1b6)](G()));return y(_0x2fd2d3,''[_0x327a3e(0x1b6)](_0x3491b6),{'defIds':_0x2fd2d3[_0x327a3e(0x1bf)],'idSuffix':_0x27f6dd[_0x327a3e(0x10f)]},u({'ref':_0x2fc6cc,'className':_0x58c2f5},_0x845325),_0x1289db);});function y(_0x57801f,_0x177e5c,_0x2b79d2,_0x24bc64,_0x1ba7ac){var _0x363f4e=_0x55a0f2;return f[_0x363f4e(0x182)](_0x57801f[_0x363f4e(0x1bd)],u(u({'key':_0x177e5c},q(_0x57801f,_0x2b79d2,_0x1ba7ac)),_0x24bc64),(W(_0x57801f,_0x2b79d2)[_0x363f4e(0x165)]||[])['map'](function(_0x5eaf4b,_0x3c428d){var _0x2fbbc8=_0x363f4e;return y(_0x5eaf4b,''[_0x2fbbc8(0x1b6)](_0x177e5c,'-')[_0x2fbbc8(0x1b6)](_0x57801f[_0x2fbbc8(0x1bd)],'-')['concat'](_0x3c428d),_0x2b79d2,void 0x0,_0x1ba7ac);}));}function q(_0x14446c,_0x271354,_0x131f30){var _0x3725ec=_0x55a0f2,_0x2280d4=u({},_0x14446c[_0x3725ec(0x162)]);_0x131f30!=null&&_0x131f30[_0x3725ec(0x17b)]&&_0x2280d4['fill']===_0x3725ec(0x17b)&&(_0x2280d4[_0x3725ec(0x187)]=_0x131f30['colorChannel1']),_0x14446c[_0x3725ec(0x1bd)]===_0x3725ec(0xea)&&_0x2280d4['id']&&(_0x2280d4['id']=_0x2280d4['id']+_0x271354[_0x3725ec(0x172)]),Object[_0x3725ec(0x101)](_0x2280d4)['forEach'](function(_0x1f5dd6){var _0x55412d=_0x3725ec,_0x1aaea5=_0x1f5dd6[0x0],_0x501f45=_0x1f5dd6[0x1];_0x1aaea5===_0x55412d(0xea)&&typeof _0x501f45==_0x55412d(0xff)&&(_0x2280d4[_0x1aaea5]=_0x501f45[_0x55412d(0xf0)](/url\(#(.*)\)/,_0x55412d(0x140)[_0x55412d(0x1b6)](_0x271354[_0x55412d(0x172)],')')));});var _0x20f878=_0x271354['defIds'];return!_0x20f878||_0x20f878[_0x3725ec(0x124)]===0x0||(_0x14446c[_0x3725ec(0x1bd)]==='use'&&_0x2280d4[_0x3725ec(0x1b1)]&&(_0x2280d4['xlink:href']=_0x2280d4['xlink:href']+_0x271354[_0x3725ec(0x172)]),Object[_0x3725ec(0x101)](_0x2280d4)['forEach'](function(_0x200d1d){var _0x19bb4f=_0x3725ec,_0x36d330=_0x200d1d[0x0],_0x4d2fd5=_0x200d1d[0x1];typeof _0x4d2fd5==_0x19bb4f(0xff)&&(_0x2280d4[_0x36d330]=_0x4d2fd5[_0x19bb4f(0xf0)](/url\(#(.*)\)/,'url(#$1'[_0x19bb4f(0x1b6)](_0x271354[_0x19bb4f(0x172)],')')));})),_0x2280d4;}function _0x34d2(_0x3860b9,_0xb4e8ac){var _0x2f2d68=_0x2f2d();return _0x34d2=function(_0x34d212,_0x1574db){_0x34d212=_0x34d212-0xe7;var _0x5c9cc2=_0x2f2d68[_0x34d212];return _0x5c9cc2;},_0x34d2(_0x3860b9,_0xb4e8ac);}function W(_0x416309,_0x185e8a){var _0x244540=_0x55a0f2,_0x23cf69,_0x277986=_0x185e8a[_0x244540(0x1bf)];return!_0x277986||_0x277986[_0x244540(0x124)]===0x0?_0x416309:_0x416309[_0x244540(0x1bd)]===_0x244540(0x142)&&(!((_0x23cf69=_0x416309[_0x244540(0x165)])===null||_0x23cf69===void 0x0)&&_0x23cf69[_0x244540(0x124)])?u(u({},_0x416309),{'children':_0x416309['children'][_0x244540(0x10b)](function(_0x24901c){var _0x16519c=_0x244540;return typeof _0x24901c[_0x16519c(0x162)]['id']==_0x16519c(0xff)&&_0x277986&&_0x277986[_0x16519c(0x116)](_0x24901c['attrs']['id'])>-0x1?u(u({},_0x24901c),{'attrs':u(u({},_0x24901c['attrs']),{'id':_0x24901c['attrs']['id']+_0x185e8a[_0x16519c(0x172)]})}):_0x24901c;})}):_0x416309;}function G(){var _0x259113=_0x55a0f2;return Math[_0x259113(0x11d)]()[_0x259113(0x168)](0x24)[_0x259113(0x1b3)](0x2,0x8);}j['displayName']=_0x55a0f2(0xf3);var B={'tag':_0x55a0f2(0x18d),'attrs':{'fill':_0x55a0f2(0x1bb),'viewBox':_0x55a0f2(0xe8),'width':'1em','height':_0x55a0f2(0xed)},'children':[{'tag':'path','attrs':{'fill':_0x55a0f2(0x107),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x55a0f2(0x1c5),'fillRule':'evenodd','clipRule':'evenodd'}}]},P=f['forwardRef'](function(_0x53092b,_0x47d053){var _0x1deaf5=_0x55a0f2;return f['createElement'](j,Object[_0x1deaf5(0x119)]({},_0x53092b,{'id':_0x1deaf5(0x163),'ref':_0x47d053,'icon':B}));});P[_0x55a0f2(0x15c)]=_0x55a0f2(0x1a1);var Y=Object[_0x55a0f2(0x15a)],R=(_0x17553a,_0x3c36d1,_0x7eda61,_0xaccf5e)=>{var _0x2488d9=_0x55a0f2;for(var _0x3b8f0c=_0xaccf5e>0x1?void 0x0:_0xaccf5e?Y(_0x3c36d1,_0x7eda61):_0x3c36d1,_0x21d4f5=_0x17553a[_0x2488d9(0x124)]-0x1,_0x240e61;_0x21d4f5>=0x0;_0x21d4f5--)(_0x240e61=_0x17553a[_0x21d4f5])&&(_0x3b8f0c=_0x240e61(_0x3b8f0c)||_0x3b8f0c);return _0x3b8f0c;},S=(_0x20c5d2,_0x21de54)=>(_0x184c99,_0x10ee51)=>_0x21de54(_0x184c99,_0x10ee51,_0x20c5d2);exports[_0x55a0f2(0x12e)]=class extends o['RxDisposable']{constructor(_0x5398b2,_0x1dcd45,_0x328932){var _0x46fdc7=_0x55a0f2;super(),v(this,'_entities',new Map()),(this[_0x46fdc7(0x135)]=_0x5398b2,this[_0x46fdc7(0x120)]=_0x1dcd45,this[_0x46fdc7(0x12c)]=_0x328932,this[_0x46fdc7(0x118)]());}async[_0x55a0f2(0x148)](_0x250364){var _0x3760d8=_0x55a0f2;return this[_0x3760d8(0xfc)][_0x3760d8(0x1ba)](_0x250364)||await this[_0x3760d8(0x122)](_0x250364),this[_0x3760d8(0xfc)][_0x3760d8(0x153)](_0x250364);}[_0x55a0f2(0x118)](){var _0x4b128f=_0x55a0f2;this[_0x4b128f(0x135)][_0x4b128f(0x1b0)](o[_0x4b128f(0x1c6)][_0x4b128f(0xfe)])[_0x4b128f(0x121)](b['takeUntil'](this[_0x4b128f(0x133)]))[_0x4b128f(0x18a)](async _0xfcfee9=>{var _0x15eb72=_0x4b128f;const _0x210050=_0xfcfee9[_0x15eb72(0x19c)]();this[_0x15eb72(0xfc)][_0x15eb72(0x1ba)](_0x210050)||this[_0x15eb72(0x122)](_0x210050);}),this[_0x4b128f(0x135)][_0x4b128f(0x1c8)](o[_0x4b128f(0x1c6)][_0x4b128f(0xfe)])[_0x4b128f(0x121)](b['takeUntil'](this[_0x4b128f(0x133)]))['subscribe'](_0x211dc1=>{var _0x58d33b=_0x4b128f;const _0x4ed700=_0x211dc1[_0x58d33b(0x19c)](),_0x286633=this['_entities'][_0x58d33b(0x153)](_0x4ed700);_0x286633==null||_0x286633[_0x58d33b(0x13d)]();});}async[_0x55a0f2(0x122)](_0x4754b4){var _0x3ce186=_0x55a0f2;const _0x5a70f6=await this[_0x3ce186(0x12c)][_0x3ce186(0x1bc)](_0x4754b4),_0x41b942=this['_injector'][_0x3ce186(0x134)](exports[_0x3ce186(0x11a)],_0x4754b4,_0x5a70f6);return _0x41b942['init'](),this[_0x3ce186(0xfc)][_0x3ce186(0x1b8)](_0x4754b4,_0x41b942),_0x41b942;}},exports[_0x55a0f2(0x12e)]=R([S(0x0,o[_0x55a0f2(0x19a)]),S(0x1,o['Inject'](o[_0x55a0f2(0x183)])),S(0x2,o[_0x55a0f2(0x15f)](m[_0x55a0f2(0xf4)]))],exports[_0x55a0f2(0x12e)]);var h=(_0x22a08d=>(_0x22a08d[_0x55a0f2(0x19b)]=_0x55a0f2(0x16e),_0x22a08d['IDLE']='idle',_0x22a08d[_0x55a0f2(0x17d)]=_0x55a0f2(0x14c),_0x22a08d[_0x55a0f2(0x1ab)]=_0x55a0f2(0x159),_0x22a08d['PRESENTING']=_0x55a0f2(0x174),_0x22a08d))(h||{});const z=_0x55a0f2(0x114),Z=0xc8;exports[_0x55a0f2(0x11a)]=class extends o[_0x55a0f2(0x13a)]{constructor(_0x42b867,_0x5a1f01,_0x2a676d,_0x2da890,_0x288da8){var _0x1dacbc=_0x55a0f2;super(),v(this,_0x1dacbc(0x104),new L['BehaviorSubject'](_0x1dacbc(0x198))),v(this,_0x1dacbc(0x1ad),this[_0x1dacbc(0x104)][_0x1dacbc(0x144)]()),v(this,'_init',!0x1),v(this,_0x1dacbc(0x15d),null),v(this,_0x1dacbc(0x109),null),(this[_0x1dacbc(0x16b)]=_0x42b867,this['_collabSession']=_0x5a1f01,this[_0x1dacbc(0x132)]=_0x2a676d,this['_liveShareService']=_0x2da890,this[_0x1dacbc(0x1b4)]=_0x288da8);}get[_0x55a0f2(0x150)](){var _0x481b54=_0x55a0f2;return this[_0x481b54(0x104)][_0x481b54(0x177)]();}['dispose'](){var _0x565730=_0x55a0f2,_0x1ed135;(_0x1ed135=this[_0x565730(0x15d)])==null||_0x1ed135[_0x565730(0x13d)](),this[_0x565730(0x104)][_0x565730(0x14a)](_0x565730(0x198)),this['_status$'][_0x565730(0x19f)]();}[_0x55a0f2(0x1b7)](){var _0x55eee9=_0x55a0f2;this[_0x55eee9(0x118)]||(this[_0x55eee9(0x118)]=!0x0,this[_0x55eee9(0x16f)][_0x55eee9(0x131)][_0x55eee9(0x121)](b[_0x55eee9(0x103)](this[_0x55eee9(0x133)]))[_0x55eee9(0x18a)](_0x556e45=>{var _0x508116=_0x55eee9;switch(_0x556e45){case m['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case m[_0x508116(0x15e)][_0x508116(0x175)]:this[_0x508116(0x15b)]();break;}}),this[_0x55eee9(0x16f)][_0x55eee9(0x111)][_0x55eee9(0x121)](b[_0x55eee9(0x103)](this[_0x55eee9(0x133)]))[_0x55eee9(0x18a)](_0x499c47=>{var _0x10a13d=_0x55eee9;const {eventID:_0x4245b7}=_0x499c47;switch(_0x4245b7){case _['CollaborationEvent'][_0x10a13d(0x151)]:this[_0x10a13d(0x167)](_0x499c47);break;case _[_0x10a13d(0x1a2)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x499c47);break;case _['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x10a13d(0x19d)]();break;case _['CollaborationEvent'][_0x10a13d(0x196)]:this[_0x10a13d(0x14d)](_0x499c47);break;}}));}['tryStartPresenting'](){var _0x201419=_0x55a0f2;this['_collabSession'][_0x201419(0x13b)]({'eventID':_['CollaborationEvent'][_0x201419(0x11e)],'data':{'unitID':this[_0x201419(0x16b)],'userID':this[_0x201419(0x16f)][_0x201419(0x112)]()}},this['_unitID']);}[_0x55a0f2(0x110)](){var _0x54b6bd=_0x55a0f2;this[_0x54b6bd(0x150)]==='presenting'&&(this[_0x54b6bd(0x104)][_0x54b6bd(0x14a)](_0x54b6bd(0x198)),this['_collabSession']['send']({'eventID':_[_0x54b6bd(0x1a2)][_0x54b6bd(0x1c1)],'data':{'unitID':this[_0x54b6bd(0x16b)]}},this[_0x54b6bd(0x16b)]));}['startFollowing'](){var _0x1839a8=_0x55a0f2;this[_0x1839a8(0x150)]===_0x1839a8(0x159)&&(this['_status$'][_0x1839a8(0x14a)](_0x1839a8(0x14c)),this[_0x1839a8(0x17e)]());}[_0x55a0f2(0xf1)](){var _0x3e2894=_0x55a0f2;this[_0x3e2894(0x150)]===_0x3e2894(0x14c)&&this[_0x3e2894(0x166)]();}[_0x55a0f2(0x167)](_0x516e75){var _0xad8e22=_0x55a0f2;const {presenter:_0x3b377b}=_0x516e75[_0xad8e22(0x171)],_0x35adeb=this['_collabSession'][_0xad8e22(0x112)]();this[_0xad8e22(0x109)]=_0x3b377b,_0x3b377b===_0x35adeb?(this[_0xad8e22(0x166)](),this[_0xad8e22(0x117)]()):this['_status']!==_0xad8e22(0x159)&&(this[_0xad8e22(0x1be)](),this['_startFollowing']());}[_0x55a0f2(0x143)](){var _0x249b4c=_0x55a0f2;const _0x35c7ca={'eventID':_[_0x249b4c(0x1a2)][_0x249b4c(0x141)]};this[_0x249b4c(0x16f)]['send'](_0x35c7ca,this[_0x249b4c(0x16b)]);}[_0x55a0f2(0x19d)](){var _0x3dd3b9=_0x55a0f2;this[_0x3dd3b9(0x109)]=null,this['_status']!=='presenting'&&this[_0x3dd3b9(0x1b2)]();}[_0x55a0f2(0x14d)](_0x56d8af){var _0x5b4db0=_0x55a0f2;if(this[_0x5b4db0(0x150)]==='following'&&this[_0x5b4db0(0x109)]===_0x56d8af[_0x5b4db0(0x171)][_0x5b4db0(0x154)]){const _0x126701=_['parseProtocolChangeset'](_0x56d8af['data'])[_0x5b4db0(0x17a)][_0x5b4db0(0x1b9)]()[_0x5b4db0(0xf8)](_0x121bfc=>_0x121bfc['id']===C[_0x5b4db0(0x147)]['id']);if(_0x126701){const _0x5a06bc=_0x126701['params'][_0x5b4db0(0xe7)],_0x19391d=_0x126701[_0x5b4db0(0x1a4)][_0x5b4db0(0x190)]['id'];setTimeout(()=>{var _0x53c604=_0x5b4db0;this[_0x53c604(0x1b4)][_0x53c604(0x178)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x5a06bc,'subUnitId':_0x19391d},{'fromCollab':!0x0});});}}}[_0x55a0f2(0x117)](){var _0xf3b7d6=_0x55a0f2;this[_0xf3b7d6(0x104)][_0xf3b7d6(0x14a)](_0xf3b7d6(0x174));const _0x32e348=new Map(),_0x41aed8=this[_0xf3b7d6(0x15d)]=new o[(_0xf3b7d6(0xfd))]();_0x41aed8[_0xf3b7d6(0x1ae)](o[_0xf3b7d6(0x155)](()=>{var _0x4a631e=_0xf3b7d6;_0x32e348[_0x4a631e(0x10c)](_0x72f3e3=>_0x72f3e3['complete']()),_0x32e348['clear']();})),_0x41aed8[_0xf3b7d6(0x1ae)](this['_commandService']['onCommandExecuted'](_0x40f406=>{var _0x45981d=_0xf3b7d6,_0x585acb;if(_0x40f406[_0x45981d(0x11b)]!==o['CommandType'][_0x45981d(0x16c)]||!this[_0x45981d(0x1aa)][_0x45981d(0x156)](_0x40f406['id']))return;const {id:_0x135706}=_0x40f406;let _0x25ecb3;_0x32e348[_0x45981d(0x1ba)](_0x135706)?_0x25ecb3=_0x32e348[_0x45981d(0x153)](_0x135706):(_0x25ecb3=new L[(_0x45981d(0x179))](),_0x32e348[_0x45981d(0x1b8)](_0x135706,_0x25ecb3),_0x25ecb3[_0x45981d(0x121)](b[_0x45981d(0xf6)]((_0x585acb=this[_0x45981d(0x132)][_0x45981d(0x13c)](z))!=null?_0x585acb:Z,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x45981d(0x18a)](_0x204a4f=>{var _0x479b82=_0x45981d;this[_0x479b82(0x16f)][_0x479b82(0x13b)]({'eventID':_[_0x479b82(0x1a2)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x204a4f['id']]:{'id':_0x204a4f['id'],'params':JSON['stringify'](_0x204a4f['params'])}}}},this[_0x479b82(0x16b)]);})),_0x25ecb3['next'](_0x40f406);})),this['_liveShareService'][_0xf3b7d6(0x18e)](this[_0xf3b7d6(0x16b)])['forEach'](_0x25710e=>this[_0xf3b7d6(0x16f)][_0xf3b7d6(0x13b)]({'eventID':_['CollaborationEvent'][_0xf3b7d6(0x145)],'data':{'unitID':this[_0xf3b7d6(0x16b)],'operations':{[_0x25710e['id']]:{'id':_0x25710e['id'],'params':JSON[_0xf3b7d6(0x160)](_0x25710e['params'])}}}},this[_0xf3b7d6(0x16b)]));}[_0x55a0f2(0x1be)](){var _0x4f5d57=_0x55a0f2,_0x533183;this[_0x4f5d57(0x104)][_0x4f5d57(0x14a)]('idle'),(_0x533183=this[_0x4f5d57(0x15d)])==null||_0x533183[_0x4f5d57(0x13d)](),this[_0x4f5d57(0x15d)]=null;}[_0x55a0f2(0x17e)](){var _0x1a2d8f=_0x55a0f2,_0x16f232;(_0x16f232=this[_0x1a2d8f(0x15d)])==null||_0x16f232[_0x1a2d8f(0x13d)](),this['_status$'][_0x1a2d8f(0x14a)](_0x1a2d8f(0x14c));}[_0x55a0f2(0x1b2)](){var _0x42dece=_0x55a0f2,_0x16a78e;this[_0x42dece(0x104)]['next'](_0x42dece(0x198)),(_0x16a78e=this['_commandDisposable'])==null||_0x16a78e[_0x42dece(0x13d)](),this[_0x42dece(0x15d)]=null;}['_stopFollowing'](){var _0x5a989c=_0x55a0f2,_0x30bf07;this[_0x5a989c(0x104)]['next'](_0x5a989c(0x159)),(_0x30bf07=this[_0x5a989c(0x15d)])==null||_0x30bf07['dispose']();}[_0x55a0f2(0x1a9)](_0x352d7c){var _0x519699=_0x55a0f2;if([_0x519699(0x174),_0x519699(0x159),_0x519699(0x16e)][_0x519699(0x164)](this['_status'])||!_0x352d7c[_0x519699(0x171)][_0x519699(0x195)]||_0x352d7c[_0x519699(0x171)]['presenter']===this[_0x519699(0x16f)][_0x519699(0x112)]())return;this[_0x519699(0x150)]==='idle'&&this[_0x519699(0x17e)]();const _0x445f7b=_0x352d7c[_0x519699(0x171)][_0x519699(0x181)];Object[_0x519699(0x11f)](_0x445f7b)[_0x519699(0x10c)](_0x31c4c8=>{var _0x336439=_0x519699;this[_0x336439(0x1b4)]['executeCommand'](_0x31c4c8['id'],_0x31c4c8[_0x336439(0x1a4)]?JSON[_0x336439(0xf9)](_0x31c4c8['params']):null,{'fromCollab':!0x0});});}[_0x55a0f2(0x1b5)](){var _0x4d2030=_0x55a0f2,_0x41dbf0;this[_0x4d2030(0x104)][_0x4d2030(0x14a)](_0x4d2030(0x16e)),(_0x41dbf0=this[_0x4d2030(0x15d)])==null||_0x41dbf0[_0x4d2030(0x13d)]();}[_0x55a0f2(0x15b)](){var _0x59c50d=_0x55a0f2;this['_status$'][_0x59c50d(0x14a)](_0x59c50d(0x198)),this[_0x59c50d(0x143)]();}},exports['LiveShareCoordinator']=R([S(0x2,o['IConfigService']),S(0x3,o[_0x55a0f2(0x15f)](E)),S(0x4,o['ICommandService'])],exports[_0x55a0f2(0x11a)]);function A(){var _0x3b952d=_0x55a0f2;const _0x548462=p[_0x3b952d(0x130)](exports[_0x3b952d(0x12e)]),_0x1d2182=p[_0x3b952d(0x130)](o['IUniverInstanceService']),_0x2baba9=p[_0x3b952d(0xf7)](()=>_0x1d2182[_0x3b952d(0x127)](o['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3177e9,_0x1b33f3]=f[_0x3b952d(0x129)](null),[_0x512326,_0x118a3b]=f[_0x3b952d(0x129)](h['IDLE']),_0x1a6a26=f[_0x3b952d(0x194)](null);return f['useEffect'](()=>(_0x2baba9&&_0x548462[_0x3b952d(0x148)](_0x2baba9[_0x3b952d(0x19c)]())[_0x3b952d(0x146)](_0x2929a9=>{var _0x2a9537=_0x3b952d;_0x1b33f3(_0x2929a9),_0x1a6a26[_0x2a9537(0x10f)]=_0x2929a9[_0x2a9537(0x1ad)][_0x2a9537(0x18a)](_0x14347d=>{_0x118a3b(_0x14347d);});}),()=>{var _0x18883b=_0x3b952d,_0x58bd0f;(_0x58bd0f=_0x1a6a26[_0x18883b(0x10f)])==null||_0x58bd0f['unsubscribe'](),_0x1a6a26[_0x18883b(0x10f)]=null;}),[_0x2baba9,_0x548462]),_0x3177e9?l['jsx'](g['Dropdown'],{'align':'end','disabled':_0x512326===h[_0x3b952d(0x19b)],'className':_0x3b952d(0x12a),'overlay':l[_0x3b952d(0x139)](J,{'status':_0x512326,'coordinator':_0x3177e9}),'children':l['jsx'](_0x3b952d(0x12d),{'className':g[_0x3b952d(0x1a5)](_0x3b952d(0x14e),{'univer-cursor-not-allowed':_0x512326===h[_0x3b952d(0x19b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x512326!==h[_0x3b952d(0x19b)]}),'type':'button','children':l['jsx'](P,{'className':_0x3b952d(0x19e)})})}):null;}function J(_0xe6073e){var _0x1fa3a9=_0x55a0f2;const {status:_0x581697,coordinator:_0x4322ae}=_0xe6073e;switch(_0x581697){case h[_0x1fa3a9(0x170)]:return l[_0x1fa3a9(0x139)](K,{'coordinator':_0x4322ae});case h['FOLLOWING']:return l[_0x1fa3a9(0x139)](Q,{'coordinator':_0x4322ae});case h[_0x1fa3a9(0x1ab)]:return l[_0x1fa3a9(0x139)](X,{'coordinator':_0x4322ae});case h[_0x1fa3a9(0x19b)]:return l[_0x1fa3a9(0x139)](te,{});case h['PRESENTING']:return l[_0x1fa3a9(0x139)](ee,{'coordinator':_0x4322ae});default:return null;}}function K(_0x2edeef){var _0x56bbbe=_0x55a0f2;const {coordinator:_0x2aeb17}=_0x2edeef;return l[_0x56bbbe(0x1ac)](l[_0x56bbbe(0x123)],{'children':[l[_0x56bbbe(0x139)](_0x56bbbe(0x1c0),{'className':_0x56bbbe(0x12f),'children':'Present\x20this\x20document'}),l[_0x56bbbe(0x139)](g[_0x56bbbe(0xee)],{'size':_0x56bbbe(0x1a3),'type':_0x56bbbe(0x192),'onClick':()=>_0x2aeb17['tryStartPresenting'](),'children':_0x56bbbe(0x125)})]});}function Q(_0x558c81){var _0x4c4821=_0x55a0f2;const {coordinator:_0x15e502}=_0x558c81;return l[_0x4c4821(0x1ac)](l['Fragment'],{'children':[l[_0x4c4821(0x139)]('div',{'className':_0x4c4821(0x12f),'children':_0x4c4821(0x10e)}),l[_0x4c4821(0x139)](g['Button'],{'size':_0x4c4821(0x1a3),'type':_0x4c4821(0x192),'onClick':()=>_0x15e502[_0x4c4821(0xf1)](),'children':_0x4c4821(0x115)})]});}function X(_0x4fbd8b){var _0x3c013e=_0x55a0f2;const {coordinator:_0x599d83}=_0x4fbd8b;return l[_0x3c013e(0x1ac)](l[_0x3c013e(0x123)],{'children':[l[_0x3c013e(0x139)]('div',{'className':_0x3c013e(0x12f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x3c013e(0x139)](g[_0x3c013e(0xee)],{'size':'small','type':'text','onClick':()=>_0x599d83[_0x3c013e(0x1a0)](),'children':'Start\x20following'})]});}function ee(_0x53c4c6){var _0x119666=_0x55a0f2;const {coordinator:_0x11fb0a}=_0x53c4c6;return l[_0x119666(0x1ac)](l[_0x119666(0x123)],{'children':[l[_0x119666(0x139)]('div',{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x119666(0x184)}),l[_0x119666(0x139)](g[_0x119666(0xee)],{'size':_0x119666(0x1a3),'type':_0x119666(0x192),'onClick':()=>_0x11fb0a[_0x119666(0x110)](),'children':'Stop\x20presenting'})]});}function te(){var _0x2b30a0=_0x55a0f2;return l['jsx'](l[_0x2b30a0(0x123)],{'children':_0x2b30a0(0x1c2)});}var ie=Object[_0x55a0f2(0x15a)],ne=(_0x14fbd0,_0x290b7d,_0xf56048,_0x86d34b)=>{var _0x1a2aad=_0x55a0f2;for(var _0x5caa22=_0x86d34b>0x1?void 0x0:_0x86d34b?ie(_0x290b7d,_0xf56048):_0x290b7d,_0x1caabe=_0x14fbd0[_0x1a2aad(0x124)]-0x1,_0x22dd81;_0x1caabe>=0x0;_0x1caabe--)(_0x22dd81=_0x14fbd0[_0x1caabe])&&(_0x5caa22=_0x22dd81(_0x5caa22)||_0x5caa22);return _0x5caa22;},N=(_0x15601c,_0x179b82)=>(_0x5e46eb,_0x208fec)=>_0x179b82(_0x5e46eb,_0x208fec,_0x15601c);exports[_0x55a0f2(0x126)]=class extends o[_0x55a0f2(0x1c3)]{constructor(_0x4f81ff,_0xb7d853){var _0x21174b=_0x55a0f2;super(),this[_0x21174b(0x120)]=_0x4f81ff,this[_0x21174b(0x102)]=_0xb7d853,this[_0x21174b(0x17f)]();}[_0x55a0f2(0x17f)](){var _0x399a82=_0x55a0f2;this[_0x399a82(0xef)](this[_0x399a82(0x102)][_0x399a82(0x16d)](p[_0x399a82(0x17c)]['HEADER_MENU'],()=>p[_0x399a82(0x11c)](A,this[_0x399a82(0x120)])));}},exports[_0x55a0f2(0x126)]=ne([N(0x0,o[_0x55a0f2(0x15f)](o['Injector'])),N(0x1,p['IUIPartsService'])],exports[_0x55a0f2(0x126)]);var re=Object[_0x55a0f2(0xec)],se=Object[_0x55a0f2(0x15a)],oe=(_0x4636bc,_0xba3b4c,_0x209913)=>_0xba3b4c in _0x4636bc?re(_0x4636bc,_0xba3b4c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x209913}):_0x4636bc[_0xba3b4c]=_0x209913,ae=(_0x304549,_0x1c7037,_0x59d9d3,_0x5a5743)=>{var _0x3d5dd0=_0x55a0f2;for(var _0xa3e33d=_0x5a5743>0x1?void 0x0:_0x5a5743?se(_0x1c7037,_0x59d9d3):_0x1c7037,_0x2de446=_0x304549[_0x3d5dd0(0x124)]-0x1,_0x5bda66;_0x2de446>=0x0;_0x2de446--)(_0x5bda66=_0x304549[_0x2de446])&&(_0xa3e33d=_0x5bda66(_0xa3e33d)||_0xa3e33d);return _0xa3e33d;},w=(_0xb29151,_0x2f078f)=>(_0x27f360,_0x128e9e)=>_0x2f078f(_0x27f360,_0x128e9e,_0xb29151),T=(_0x2a59f4,_0x41e464,_0x17117d)=>oe(_0x2a59f4,typeof _0x41e464!=_0x55a0f2(0x185)?_0x41e464+'':_0x41e464,_0x17117d);const le=_0x55a0f2(0x18b);exports['UniverLiveSharePlugin']=class extends o[_0x55a0f2(0x12b)]{constructor(_0x17796b=x,_0x103b9a,_0x2738d9){var _0x18255d=_0x55a0f2;super(),this[_0x18255d(0x13e)]=_0x17796b,this[_0x18255d(0x120)]=_0x103b9a,this['_configService']=_0x2738d9;const {..._0x461f0f}=o[_0x18255d(0x173)]({},x,this[_0x18255d(0x13e)]);this[_0x18255d(0x132)][_0x18255d(0xfb)]($,_0x461f0f);}['onStarting'](){var _0x3d1946=_0x55a0f2;o[_0x3d1946(0x1c7)](this['_injector'],o['mergeOverrideWithDependencies']([[E],[exports[_0x3d1946(0x12e)]],[O],[exports[_0x3d1946(0x126)]]],this['_config']['override'])),o[_0x3d1946(0x14f)](this[_0x3d1946(0x120)],[[O]]);}[_0x55a0f2(0x199)](){var _0x4f48ee=_0x55a0f2;o['touchDependencies'](this['_injector'],[[exports[_0x4f48ee(0x126)]]]);}},T(exports[_0x55a0f2(0x138)],_0x55a0f2(0x11b),o[_0x55a0f2(0x1c6)][_0x55a0f2(0x106)]),T(exports[_0x55a0f2(0x138)],_0x55a0f2(0x176),le),exports[_0x55a0f2(0x138)]=ae([o[_0x55a0f2(0x152)](m[_0x55a0f2(0x113)]),w(0x1,o[_0x55a0f2(0x15f)](o[_0x55a0f2(0x183)])),w(0x2,o['IConfigService'])],exports['UniverLiveSharePlugin']),exports[_0x55a0f2(0x10a)]=A,exports['LiveShareService']=E,exports['LiveShareStatus']=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x86e20f=_0x1a7a;(function(_0x4d487f,_0x7da61b){var _0x1d9df6=_0x1a7a,_0x4c46c9=_0x4d487f();while(!![]){try{var _0x158e74=parseInt(_0x1d9df6(0x11c))/0x1*(-parseInt(_0x1d9df6(0x12a))/0x2)+parseInt(_0x1d9df6(0xf8))/0x3*(-parseInt(_0x1d9df6(0xe4))/0x4)+parseInt(_0x1d9df6(0x94))/0x5*(-parseInt(_0x1d9df6(0xe2))/0x6)+-parseInt(_0x1d9df6(0x9d))/0x7+-parseInt(_0x1d9df6(0x122))/0x8+-parseInt(_0x1d9df6(0x83))/0x9+-parseInt(_0x1d9df6(0x8f))/0xa*(-parseInt(_0x1d9df6(0xdb))/0xb);if(_0x158e74===_0x7da61b)break;else _0x4c46c9['push'](_0x4c46c9['shift']());}catch(_0x4aae6d){_0x4c46c9['push'](_0x4c46c9['shift']());}}}(_0xe19a,0x664c4));var K=Object[_0x86e20f(0xcc)],q=(_0x456d74,_0x272982,_0x41afbe)=>_0x272982 in _0x456d74?K(_0x456d74,_0x272982,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41afbe}):_0x456d74[_0x272982]=_0x41afbe,d=(_0x4edae9,_0x457ac7,_0x35a5c5)=>q(_0x4edae9,typeof _0x457ac7!=_0x86e20f(0xc5)?_0x457ac7+'':_0x457ac7,_0x35a5c5);import{CollaborationSessionService as _0x2c82a7,SessionStatus as _0x3118a2,UniverCollaborationClientPlugin as _0x46e810}from'@univerjs-pro/collaboration-client';import{Disposable as _0x26c534,toDisposable as _0x4dab8a,Inject as _0x4a06c1,IUniverInstanceService as _0x2a716e,Injector as _0x166128,IConfigService as _0x33fb0d,ICommandService as _0x4d2e6d,RxDisposable as _0x1c1304,UniverInstanceType as _0x3f10a8,DisposableCollection as _0x4fe870,CommandType as _0x574ce6,DependentOn as _0x485ccd,Plugin as _0x53f919,merge as _0x32c382,registerDependencies as _0x3299a8,mergeOverrideWithDependencies as _0x1f4dfd,touchDependencies as _0x481da4}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x408e8d,InsertSheetMutation as _0x1db464}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x17b8a5,SetScrollOperation as _0x14473f}from'@univerjs/sheets-ui';import{useDependency as _0x4a3efa,useObservable as _0xc8bb70,IUIPartsService as _0x5aab7e,BuiltInUIPart as _0x56d703,connectInjector as _0x34c847}from'@univerjs/ui';import{jsx as _0x24b9e5,jsxs as _0x484111,Fragment as _0x1da64c}from'react/jsx-runtime';import{Dropdown as _0x417c98,clsx as _0x342114,Button as _0x4fe2d0}from'@univerjs/design';import{forwardRef as _0x626e1f,useRef as _0xe4b184,createElement as _0x17a129,useState as _0x356244,useEffect as _0x420fc1}from'react';import{CollaborationEvent as _0x1213a4,parseProtocolChangeset as _0x37fba0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2812d3,Subject as _0x149bac}from'rxjs';import{takeUntil as _0x2f2eb9,throttleTime as _0x575203}from'rxjs/operators';const Oe=_0x86e20f(0xce),T={};class x extends _0x26c534{constructor(){var _0x26b300=_0x86e20f;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x26b300(0xa6),new Set());}[_0x86e20f(0x8d)](_0x3da5fd){var _0x293a6b=_0x86e20f;return this[_0x293a6b(0x12e)][_0x293a6b(0xb8)](_0x3da5fd),_0x4dab8a(()=>this['_sharedOperations'][_0x293a6b(0x129)](_0x3da5fd));}[_0x86e20f(0xd3)](_0x277113){var _0x3a42cc=_0x86e20f;return this['_reporters'][_0x3a42cc(0xb8)](_0x277113),_0x4dab8a(()=>this[_0x3a42cc(0xa6)][_0x3a42cc(0x129)](_0x277113));}[_0x86e20f(0xd6)](_0x18776c){var _0x3bd155=_0x86e20f;return this[_0x3bd155(0x12e)][_0x3bd155(0x87)](_0x18776c);}[_0x86e20f(0x10f)](_0x32b3f3){var _0x42975a=_0x86e20f;return Array[_0x42975a(0x104)](this[_0x42975a(0xa6)])[_0x42975a(0xc9)](_0x371e4a=>_0x371e4a(_0x32b3f3));}}var Ee=Object[_0x86e20f(0x9f)],Ce=(_0x1b2fee,_0x205cf3,_0x110bd2,_0x1034c8)=>{var _0x33e652=_0x86e20f;for(var _0x3aea92=_0x1034c8>0x1?void 0x0:_0x1034c8?Ee(_0x205cf3,_0x110bd2):_0x205cf3,_0x2f3997=_0x1b2fee[_0x33e652(0x110)]-0x1,_0x1cdcea;_0x2f3997>=0x0;_0x2f3997--)(_0x1cdcea=_0x1b2fee[_0x2f3997])&&(_0x3aea92=_0x1cdcea(_0x3aea92)||_0x3aea92);return _0x3aea92;},Ne=(_0x4ec554,_0x5e4de8)=>(_0x8ae875,_0x4afc69)=>_0x5e4de8(_0x8ae875,_0x4afc69,_0x4ec554);let m=class extends _0x26c534{constructor(_0x772af0){var _0x2c0545=_0x86e20f;super(),this[_0x2c0545(0xe7)]=_0x772af0,this[_0x2c0545(0x86)]();}[_0x86e20f(0x86)](){var _0x493fda=_0x86e20f;[_0x17b8a5['id'],_0x14473f['id'],_0x408e8d['id']][_0x493fda(0xb3)](_0x5f4d44=>{var _0x254d8a=_0x493fda;this[_0x254d8a(0xfc)](this['_liveShareService'][_0x254d8a(0x8d)](_0x5f4d44));});}};m=Ce([Ne(0x0,_0x4a06c1(x))],m);var c=function(){var _0x6e7de8=_0x86e20f;return c=Object[_0x6e7de8(0xae)]||function(_0x2a13bb){var _0x20bdfc=_0x6e7de8;for(var _0x5a4da4,_0xee3cd6=0x1,_0x5df9b6=arguments['length'];_0xee3cd6<_0x5df9b6;_0xee3cd6++){_0x5a4da4=arguments[_0xee3cd6];for(var _0x843ee9 in _0x5a4da4)Object['prototype'][_0x20bdfc(0xbe)][_0x20bdfc(0xd8)](_0x5a4da4,_0x843ee9)&&(_0x2a13bb[_0x843ee9]=_0x5a4da4[_0x843ee9]);}return _0x2a13bb;},c['apply'](this,arguments);},we=function(_0x1b95fd,_0x4a1d07){var _0x32aa0c=_0x86e20f,_0x51db57={};for(var _0x226b91 in _0x1b95fd)Object[_0x32aa0c(0xd5)][_0x32aa0c(0xbe)][_0x32aa0c(0xd8)](_0x1b95fd,_0x226b91)&&_0x4a1d07[_0x32aa0c(0xa2)](_0x226b91)<0x0&&(_0x51db57[_0x226b91]=_0x1b95fd[_0x226b91]);if(_0x1b95fd!=null&&typeof Object['getOwnPropertySymbols']==_0x32aa0c(0xcd)){for(var _0x1cfdf8=0x0,_0x226b91=Object['getOwnPropertySymbols'](_0x1b95fd);_0x1cfdf8<_0x226b91[_0x32aa0c(0x110)];_0x1cfdf8++)_0x4a1d07['indexOf'](_0x226b91[_0x1cfdf8])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x32aa0c(0xd8)](_0x1b95fd,_0x226b91[_0x1cfdf8])&&(_0x51db57[_0x226b91[_0x1cfdf8]]=_0x1b95fd[_0x226b91[_0x1cfdf8]]);}return _0x51db57;},W=_0x626e1f(function(_0xa5f075,_0x556728){var _0x13aca7=_0x86e20f,_0x3e56ae=_0xa5f075['icon'],_0x2d11f=_0xa5f075['id'],_0x348598=_0xa5f075[_0x13aca7(0x107)],_0x1e1623=_0xa5f075[_0x13aca7(0xba)],_0x25fb8b=we(_0xa5f075,[_0x13aca7(0x124),'id','className',_0x13aca7(0xba)]),_0x5b6624='univerjs-icon\x20univerjs-icon-'['concat'](_0x2d11f,'\x20')[_0x13aca7(0xbd)](_0x348598||'')[_0x13aca7(0xdc)](),_0x7b6cf7=_0xe4b184('_'[_0x13aca7(0xbd)](xe()));return Y(_0x3e56ae,''[_0x13aca7(0xbd)](_0x2d11f),{'defIds':_0x3e56ae[_0x13aca7(0x10c)],'idSuffix':_0x7b6cf7[_0x13aca7(0x118)]},c({'ref':_0x556728,'className':_0x5b6624},_0x25fb8b),_0x1e1623);});function Y(_0x4fd01b,_0x44b3d4,_0x2a7175,_0x21b8f9,_0x53ed61){var _0x54ff78=_0x86e20f;return _0x17a129(_0x4fd01b[_0x54ff78(0xdf)],c(c({'key':_0x44b3d4},De(_0x4fd01b,_0x2a7175,_0x53ed61)),_0x21b8f9),(Le(_0x4fd01b,_0x2a7175)[_0x54ff78(0xf5)]||[])[_0x54ff78(0xc9)](function(_0x960f13,_0x28655f){var _0x53fa21=_0x54ff78;return Y(_0x960f13,''[_0x53fa21(0xbd)](_0x44b3d4,'-')[_0x53fa21(0xbd)](_0x4fd01b['tag'],'-')['concat'](_0x28655f),_0x2a7175,void 0x0,_0x53ed61);}));}function De(_0x2ebd2f,_0x35b9a6,_0x177d55){var _0xa4f6ec=_0x86e20f,_0x20f7bc=c({},_0x2ebd2f[_0xa4f6ec(0x120)]);_0x177d55!=null&&_0x177d55[_0xa4f6ec(0x121)]&&_0x20f7bc[_0xa4f6ec(0xa4)]==='colorChannel1'&&(_0x20f7bc[_0xa4f6ec(0xa4)]=_0x177d55['colorChannel1']),_0x2ebd2f[_0xa4f6ec(0xdf)]==='mask'&&_0x20f7bc['id']&&(_0x20f7bc['id']=_0x20f7bc['id']+_0x35b9a6[_0xa4f6ec(0x93)]),Object[_0xa4f6ec(0xcb)](_0x20f7bc)[_0xa4f6ec(0xb3)](function(_0x52af14){var _0x835289=_0xa4f6ec,_0x4aabe8=_0x52af14[0x0],_0x8bc0a1=_0x52af14[0x1];_0x4aabe8===_0x835289(0x9b)&&typeof _0x8bc0a1==_0x835289(0xd1)&&(_0x20f7bc[_0x4aabe8]=_0x8bc0a1[_0x835289(0x106)](/url\(#(.*)\)/,_0x835289(0x10e)[_0x835289(0xbd)](_0x35b9a6[_0x835289(0x93)],')')));});var _0x51715b=_0x35b9a6[_0xa4f6ec(0x10c)];return!_0x51715b||_0x51715b[_0xa4f6ec(0x110)]===0x0||(_0x2ebd2f[_0xa4f6ec(0xdf)]==='use'&&_0x20f7bc[_0xa4f6ec(0x95)]&&(_0x20f7bc[_0xa4f6ec(0x95)]=_0x20f7bc['xlink:href']+_0x35b9a6['idSuffix']),Object['entries'](_0x20f7bc)['forEach'](function(_0xcee146){var _0x554e32=_0xa4f6ec,_0x6946df=_0xcee146[0x0],_0x391a23=_0xcee146[0x1];typeof _0x391a23==_0x554e32(0xd1)&&(_0x20f7bc[_0x6946df]=_0x391a23[_0x554e32(0x106)](/url\(#(.*)\)/,_0x554e32(0x10e)[_0x554e32(0xbd)](_0x35b9a6[_0x554e32(0x93)],')')));})),_0x20f7bc;}function Le(_0x48678c,_0xe391a9){var _0x430b1d=_0x86e20f,_0x1383db,_0x1775b7=_0xe391a9[_0x430b1d(0x10c)];return!_0x1775b7||_0x1775b7[_0x430b1d(0x110)]===0x0?_0x48678c:_0x48678c[_0x430b1d(0xdf)]===_0x430b1d(0xca)&&(!((_0x1383db=_0x48678c[_0x430b1d(0xf5)])===null||_0x1383db===void 0x0)&&_0x1383db['length'])?c(c({},_0x48678c),{'children':_0x48678c[_0x430b1d(0xf5)]['map'](function(_0x159656){var _0x5538ec=_0x430b1d;return typeof _0x159656[_0x5538ec(0x120)]['id']=='string'&&_0x1775b7&&_0x1775b7[_0x5538ec(0xa2)](_0x159656[_0x5538ec(0x120)]['id'])>-0x1?c(c({},_0x159656),{'attrs':c(c({},_0x159656[_0x5538ec(0x120)]),{'id':_0x159656[_0x5538ec(0x120)]['id']+_0xe391a9['idSuffix']})}):_0x159656;})}):_0x48678c;}function xe(){var _0x536dae=_0x86e20f;return Math['random']()[_0x536dae(0xff)](0x24)[_0x536dae(0xad)](0x2,0x8);}W['displayName']=_0x86e20f(0xc7);var ye={'tag':'svg','attrs':{'fill':_0x86e20f(0xe3),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':_0x86e20f(0xb0),'attrs':{'fill':'currentColor','d':_0x86e20f(0x11e)}},{'tag':_0x86e20f(0xb0),'attrs':{'fill':'currentColor','d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x86e20f(0xa9),'clipRule':_0x86e20f(0xa9)}}]},z=_0x626e1f(function(_0x56cc06,_0x1e5b7d){var _0x2139b2=_0x86e20f;return _0x17a129(W,Object[_0x2139b2(0xae)]({},_0x56cc06,{'id':_0x2139b2(0x97),'ref':_0x1e5b7d,'icon':ye}));});z[_0x86e20f(0xfb)]=_0x86e20f(0xf9);var Re=Object[_0x86e20f(0x9f)],B=(_0x405ce3,_0x5bdac6,_0x11f610,_0x2546b9)=>{var _0xd2af50=_0x86e20f;for(var _0x556575=_0x2546b9>0x1?void 0x0:_0x2546b9?Re(_0x5bdac6,_0x11f610):_0x5bdac6,_0x3fac0e=_0x405ce3[_0xd2af50(0x110)]-0x1,_0x5a3bab;_0x3fac0e>=0x0;_0x3fac0e--)(_0x5a3bab=_0x405ce3[_0x3fac0e])&&(_0x556575=_0x5a3bab(_0x556575)||_0x556575);return _0x556575;},f=(_0x52d25f,_0x1f3421)=>(_0x2d35ee,_0x45cf94)=>_0x1f3421(_0x2d35ee,_0x45cf94,_0x52d25f);let I=class extends _0x1c1304{constructor(_0x40fab1,_0x56d394,_0x1482a6){var _0x13eff4=_0x86e20f;super(),d(this,_0x13eff4(0xb2),new Map()),(this['_univerInstanceService']=_0x40fab1,this[_0x13eff4(0x8a)]=_0x56d394,this[_0x13eff4(0x127)]=_0x1482a6,this[_0x13eff4(0x86)]());}async['getLiveShareCoordinator'](_0x4e753e){var _0x42abd8=_0x86e20f;return this[_0x42abd8(0xb2)]['has'](_0x4e753e)||await this[_0x42abd8(0xdd)](_0x4e753e),this[_0x42abd8(0xb2)][_0x42abd8(0xa0)](_0x4e753e);}[_0x86e20f(0x86)](){var _0x532405=_0x86e20f;this[_0x532405(0xac)][_0x532405(0x116)](_0x3f10a8[_0x532405(0xab)])[_0x532405(0xd9)](_0x2f2eb9(this['dispose$']))[_0x532405(0xa7)](async _0xf25864=>{var _0x501067=_0x532405;const _0x4db5cd=_0xf25864[_0x501067(0x12c)]();this[_0x501067(0xb2)][_0x501067(0x87)](_0x4db5cd)||this[_0x501067(0xdd)](_0x4db5cd);}),this[_0x532405(0xac)][_0x532405(0x119)](_0x3f10a8['UNIVER_SHEET'])[_0x532405(0xd9)](_0x2f2eb9(this[_0x532405(0xe0)]))['subscribe'](_0x11804e=>{var _0x5142a1=_0x532405;const _0x19ca24=_0x11804e['getUnitId'](),_0x2d339b=this[_0x5142a1(0xb2)][_0x5142a1(0xa0)](_0x19ca24);_0x2d339b==null||_0x2d339b[_0x5142a1(0x84)]();});}async[_0x86e20f(0xdd)](_0x453ab6){var _0x197f74=_0x86e20f;const _0x5c62b7=await this['_collabSessionService'][_0x197f74(0x11d)](_0x453ab6),_0x259e39=this[_0x197f74(0x8a)][_0x197f74(0x81)](w,_0x453ab6,_0x5c62b7);return _0x259e39[_0x197f74(0xc4)](),this[_0x197f74(0xb2)][_0x197f74(0xe6)](_0x453ab6,_0x259e39),_0x259e39;}};I=B([f(0x0,_0x2a716e),f(0x1,_0x4a06c1(_0x166128)),f(0x2,_0x4a06c1(_0x2c82a7))],I);var h=(_0x1b797b=>(_0x1b797b['OFFLINE']=_0x86e20f(0x9e),_0x1b797b[_0x86e20f(0x91)]=_0x86e20f(0x108),_0x1b797b['FOLLOWING']='following',_0x1b797b[_0x86e20f(0xb7)]=_0x86e20f(0x8b),_0x1b797b[_0x86e20f(0x89)]=_0x86e20f(0xf3),_0x1b797b))(h||{});const Pe=_0x86e20f(0xef),Ae=0xc8;let w=class extends _0x1c1304{constructor(_0x1f65aa,_0x4772ec,_0x2ebe72,_0x3b179f,_0x24c51b){var _0x45315a=_0x86e20f;super(),d(this,_0x45315a(0xaf),new _0x2812d3(_0x45315a(0x108))),d(this,_0x45315a(0xb6),this['_status$'][_0x45315a(0x105)]()),d(this,_0x45315a(0x86),!0x1),d(this,_0x45315a(0xf4),null),d(this,_0x45315a(0xc6),null),(this[_0x45315a(0xc3)]=_0x1f65aa,this['_collabSession']=_0x4772ec,this[_0x45315a(0x128)]=_0x2ebe72,this['_liveShareService']=_0x3b179f,this['_commandService']=_0x24c51b);}get[_0x86e20f(0x12b)](){var _0x30b090=_0x86e20f;return this[_0x30b090(0xaf)][_0x30b090(0xa8)]();}[_0x86e20f(0x84)](){var _0x1efa83=_0x86e20f,_0x1cfeb4;(_0x1cfeb4=this['_commandDisposable'])==null||_0x1cfeb4[_0x1efa83(0x84)](),this[_0x1efa83(0xaf)][_0x1efa83(0xd4)]('idle'),this[_0x1efa83(0xaf)]['complete']();}[_0x86e20f(0xc4)](){var _0x57e50e=_0x86e20f;this[_0x57e50e(0x86)]||(this[_0x57e50e(0x86)]=!0x0,this[_0x57e50e(0xaa)]['sessionStatus$'][_0x57e50e(0xd9)](_0x2f2eb9(this[_0x57e50e(0xe0)]))['subscribe'](_0x44d0cf=>{var _0x235d98=_0x57e50e;switch(_0x44d0cf){case _0x3118a2[_0x235d98(0x85)]:this[_0x235d98(0xcf)]();break;case _0x3118a2['ONLINE']:this['_handleOnline']();break;}}),this[_0x57e50e(0xaa)]['event$']['pipe'](_0x2f2eb9(this[_0x57e50e(0xe0)]))[_0x57e50e(0xa7)](_0x55d1e4=>{var _0x5ce985=_0x57e50e;const {eventID:_0x1d1457}=_0x55d1e4;switch(_0x1d1457){case _0x1213a4[_0x5ce985(0x10b)]:this[_0x5ce985(0x8e)](_0x55d1e4);break;case _0x1213a4[_0x5ce985(0xf0)]:this[_0x5ce985(0xa1)](_0x55d1e4);break;case _0x1213a4[_0x5ce985(0xf6)]:this['_handleTerminate']();break;case _0x1213a4[_0x5ce985(0x88)]:this[_0x5ce985(0xeb)](_0x55d1e4);break;}}));}[_0x86e20f(0xe1)](){var _0x2fb864=_0x86e20f;this[_0x2fb864(0xaa)][_0x2fb864(0xfa)]({'eventID':_0x1213a4[_0x2fb864(0xf1)],'data':{'unitID':this[_0x2fb864(0xc3)],'userID':this[_0x2fb864(0xaa)][_0x2fb864(0x102)]()}},this['_unitID']);}[_0x86e20f(0x123)](){var _0x436be6=_0x86e20f;this[_0x436be6(0x12b)]===_0x436be6(0xf3)&&(this[_0x436be6(0xaf)][_0x436be6(0xd4)](_0x436be6(0x108)),this[_0x436be6(0xaa)][_0x436be6(0xfa)]({'eventID':_0x1213a4[_0x436be6(0xf6)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x86e20f(0xec)](){var _0x5aeec2=_0x86e20f;this[_0x5aeec2(0x12b)]===_0x5aeec2(0x8b)&&(this[_0x5aeec2(0xaf)][_0x5aeec2(0xd4)](_0x5aeec2(0x8c)),this[_0x5aeec2(0x10a)]());}['stopFollowing'](){var _0x450a93=_0x86e20f;this[_0x450a93(0x12b)]===_0x450a93(0x8c)&&this[_0x450a93(0x80)]();}[_0x86e20f(0x8e)](_0x2952f8){var _0x1b88fa=_0x86e20f;const {presenter:_0x144728}=_0x2952f8[_0x1b88fa(0x114)],_0x552dd9=this[_0x1b88fa(0xaa)][_0x1b88fa(0x102)]();this[_0x1b88fa(0xc6)]=_0x144728,_0x144728===_0x552dd9?(this['_stopFollowing'](),this[_0x1b88fa(0x99)]()):this[_0x1b88fa(0x12b)]!=='not-following'&&(this[_0x1b88fa(0xb9)](),this[_0x1b88fa(0x10a)]());}[_0x86e20f(0x112)](){var _0xfe36ae=_0x86e20f;const _0x41c042={'eventID':_0x1213a4[_0xfe36ae(0xd0)]};this[_0xfe36ae(0xaa)][_0xfe36ae(0xfa)](_0x41c042,this[_0xfe36ae(0xc3)]);}[_0x86e20f(0xed)](){var _0x195278=_0x86e20f;this[_0x195278(0xc6)]=null,this[_0x195278(0x12b)]!==_0x195278(0xf3)&&this[_0x195278(0xde)]();}[_0x86e20f(0xeb)](_0x313dfb){var _0x142501=_0x86e20f;if(this['_status']===_0x142501(0x8c)&&this[_0x142501(0xc6)]===_0x313dfb[_0x142501(0x114)]['memberID']){const _0x3e7b44=_0x37fba0(_0x313dfb['data'])['mutations']['reverse']()[_0x142501(0x11a)](_0x439316=>_0x439316['id']===_0x1db464['id']);if(_0x3e7b44){const _0x110cda=_0x3e7b44[_0x142501(0xe9)][_0x142501(0x11b)],_0x4ea62b=_0x3e7b44[_0x142501(0xe9)][_0x142501(0x96)]['id'];setTimeout(()=>{var _0x426362=_0x142501;this[_0x426362(0x9c)][_0x426362(0x100)](_0x408e8d['id'],{'unitId':_0x110cda,'subUnitId':_0x4ea62b},{'fromCollab':!0x0});});}}}[_0x86e20f(0x99)](){var _0x16b288=_0x86e20f;this[_0x16b288(0xaf)]['next']('presenting');const _0x495fdb=new Map(),_0x2cdb8f=this['_commandDisposable']=new _0x4fe870();_0x2cdb8f['add'](_0x4dab8a(()=>{var _0x449d5d=_0x16b288;_0x495fdb['forEach'](_0x4ddcf1=>_0x4ddcf1[_0x449d5d(0x98)]()),_0x495fdb[_0x449d5d(0x109)]();})),_0x2cdb8f[_0x16b288(0xb8)](this[_0x16b288(0x9c)][_0x16b288(0xe5)](_0x108718=>{var _0x4ffaf1=_0x16b288,_0x3c843f;if(_0x108718[_0x4ffaf1(0x111)]!==_0x574ce6[_0x4ffaf1(0xb1)]||!this[_0x4ffaf1(0xe7)][_0x4ffaf1(0xd6)](_0x108718['id']))return;const {id:_0x123978}=_0x108718;let _0x16218c;_0x495fdb[_0x4ffaf1(0x87)](_0x123978)?_0x16218c=_0x495fdb[_0x4ffaf1(0xa0)](_0x123978):(_0x16218c=new _0x149bac(),_0x495fdb[_0x4ffaf1(0xe6)](_0x123978,_0x16218c),_0x16218c[_0x4ffaf1(0xd9)](_0x575203((_0x3c843f=this[_0x4ffaf1(0x128)]['getConfig'](Pe))!=null?_0x3c843f:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ffaf1(0xa7)](_0x39299c=>{var _0x1e8ecc=_0x4ffaf1;this[_0x1e8ecc(0xaa)]['send']({'eventID':_0x1213a4[_0x1e8ecc(0xf0)],'data':{'unitID':this[_0x1e8ecc(0xc3)],'operations':{[_0x39299c['id']]:{'id':_0x39299c['id'],'params':JSON[_0x1e8ecc(0x101)](_0x39299c[_0x1e8ecc(0xe9)])}}}},this[_0x1e8ecc(0xc3)]);})),_0x16218c[_0x4ffaf1(0xd4)](_0x108718);})),this[_0x16b288(0xe7)][_0x16b288(0x10f)](this[_0x16b288(0xc3)])[_0x16b288(0xb3)](_0x382793=>this[_0x16b288(0xaa)][_0x16b288(0xfa)]({'eventID':_0x1213a4[_0x16b288(0xf0)],'data':{'unitID':this[_0x16b288(0xc3)],'operations':{[_0x382793['id']]:{'id':_0x382793['id'],'params':JSON['stringify'](_0x382793[_0x16b288(0xe9)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x286199=_0x86e20f,_0x16b033;this['_status$'][_0x286199(0xd4)]('idle'),(_0x16b033=this[_0x286199(0xf4)])==null||_0x16b033[_0x286199(0x84)](),this[_0x286199(0xf4)]=null;}[_0x86e20f(0x10a)](){var _0x2657df=_0x86e20f,_0x461180;(_0x461180=this[_0x2657df(0xf4)])==null||_0x461180[_0x2657df(0x84)](),this[_0x2657df(0xaf)][_0x2657df(0xd4)](_0x2657df(0x8c));}[_0x86e20f(0xde)](){var _0x29436c=_0x86e20f,_0x4381cd;this['_status$'][_0x29436c(0xd4)](_0x29436c(0x108)),(_0x4381cd=this['_commandDisposable'])==null||_0x4381cd[_0x29436c(0x84)](),this[_0x29436c(0xf4)]=null;}[_0x86e20f(0x80)](){var _0x5b5d03=_0x86e20f,_0x5e1be3;this[_0x5b5d03(0xaf)][_0x5b5d03(0xd4)](_0x5b5d03(0x8b)),(_0x5e1be3=this[_0x5b5d03(0xf4)])==null||_0x5e1be3[_0x5b5d03(0x84)]();}[_0x86e20f(0xa1)](_0x5f79c9){var _0x32ec27=_0x86e20f;if([_0x32ec27(0xf3),_0x32ec27(0x8b),_0x32ec27(0x9e)]['includes'](this[_0x32ec27(0x12b)])||!_0x5f79c9['data'][_0x32ec27(0x92)]||_0x5f79c9[_0x32ec27(0x114)][_0x32ec27(0x92)]===this[_0x32ec27(0xaa)][_0x32ec27(0x102)]())return;this['_status']===_0x32ec27(0x108)&&this[_0x32ec27(0x10a)]();const _0x5cb58d=_0x5f79c9[_0x32ec27(0x114)]['operations'];Object[_0x32ec27(0xfe)](_0x5cb58d)[_0x32ec27(0xb3)](_0x538989=>{var _0x23e52e=_0x32ec27;this[_0x23e52e(0x9c)][_0x23e52e(0x100)](_0x538989['id'],_0x538989[_0x23e52e(0xe9)]?JSON[_0x23e52e(0x113)](_0x538989[_0x23e52e(0xe9)]):null,{'fromCollab':!0x0});});}[_0x86e20f(0xcf)](){var _0x54c26e=_0x86e20f,_0x5cc460;this[_0x54c26e(0xaf)]['next'](_0x54c26e(0x9e)),(_0x5cc460=this[_0x54c26e(0xf4)])==null||_0x5cc460[_0x54c26e(0x84)]();}[_0x86e20f(0xc0)](){var _0x3a5b6a=_0x86e20f;this[_0x3a5b6a(0xaf)][_0x3a5b6a(0xd4)](_0x3a5b6a(0x108)),this[_0x3a5b6a(0x112)]();}};w=B([f(0x2,_0x33fb0d),f(0x3,_0x4a06c1(x)),f(0x4,_0x4d2e6d)],w);function Te(){var _0x58bd73=_0x86e20f;const _0x2406c8=_0x4a3efa(I),_0x19a405=_0x4a3efa(_0x2a716e),_0x3e8595=_0xc8bb70(()=>_0x19a405[_0x58bd73(0xa3)](_0x3f10a8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x529a66,_0x2107a3]=_0x356244(null),[_0x9a0105,_0x488a00]=_0x356244(h[_0x58bd73(0x91)]),_0x1c8cba=_0xe4b184(null);return _0x420fc1(()=>(_0x3e8595&&_0x2406c8['getLiveShareCoordinator'](_0x3e8595[_0x58bd73(0x12c)]())['then'](_0x43ee52=>{var _0x22e92f=_0x58bd73;_0x2107a3(_0x43ee52),_0x1c8cba[_0x22e92f(0x118)]=_0x43ee52[_0x22e92f(0xb6)][_0x22e92f(0xa7)](_0x175d25=>{_0x488a00(_0x175d25);});}),()=>{var _0x582b1d=_0x58bd73,_0x2bbd44;(_0x2bbd44=_0x1c8cba[_0x582b1d(0x118)])==null||_0x2bbd44[_0x582b1d(0xd2)](),_0x1c8cba[_0x582b1d(0x118)]=null;}),[_0x3e8595,_0x2406c8]),_0x529a66?_0x24b9e5(_0x417c98,{'align':_0x58bd73(0x117),'disabled':_0x9a0105===h[_0x58bd73(0x85)],'className':_0x58bd73(0xda),'overlay':_0x24b9e5($e,{'status':_0x9a0105,'coordinator':_0x529a66}),'children':_0x24b9e5(_0x58bd73(0xb4),{'className':_0x342114(_0x58bd73(0xfd),{'univer-cursor-not-allowed':_0x9a0105===h[_0x58bd73(0x85)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x9a0105!==h[_0x58bd73(0x85)]}),'type':_0x58bd73(0xb4),'children':_0x24b9e5(z,{'className':_0x58bd73(0x125)})})}):null;}function _0x1a7a(_0x31e49b,_0x16e928){var _0xe19adc=_0xe19a();return _0x1a7a=function(_0x1a7a90,_0x56e980){_0x1a7a90=_0x1a7a90-0x80;var _0x52bf84=_0xe19adc[_0x1a7a90];return _0x52bf84;},_0x1a7a(_0x31e49b,_0x16e928);}function $e(_0x1ce44b){var _0xf54598=_0x86e20f;const {status:_0x35baf9,coordinator:_0x565093}=_0x1ce44b;switch(_0x35baf9){case h['IDLE']:return _0x24b9e5(Fe,{'coordinator':_0x565093});case h[_0xf54598(0xf2)]:return _0x24b9e5(He,{'coordinator':_0x565093});case h[_0xf54598(0xb7)]:return _0x24b9e5(je,{'coordinator':_0x565093});case h[_0xf54598(0x85)]:return _0x24b9e5(Ve,{});case h[_0xf54598(0x89)]:return _0x24b9e5(Ue,{'coordinator':_0x565093});default:return null;}}function Fe(_0x55b0f9){var _0x47c9a4=_0x86e20f;const {coordinator:_0x13be66}=_0x55b0f9;return _0x484111(_0x1da64c,{'children':[_0x24b9e5('div',{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x47c9a4(0xb5)}),_0x24b9e5(_0x4fe2d0,{'size':_0x47c9a4(0x115),'type':'default','onClick':()=>_0x13be66[_0x47c9a4(0xe1)](),'children':_0x47c9a4(0x10d)})]});}function He(_0x150e31){var _0x539035=_0x86e20f;const {coordinator:_0x344d38}=_0x150e31;return _0x484111(_0x1da64c,{'children':[_0x24b9e5(_0x539035(0x12d),{'className':_0x539035(0xbc),'children':_0x539035(0xea)}),_0x24b9e5(_0x4fe2d0,{'size':_0x539035(0x115),'type':'default','onClick':()=>_0x344d38[_0x539035(0xa5)](),'children':_0x539035(0xbb)})]});}function je(_0xb8e630){var _0x4ee1f7=_0x86e20f;const {coordinator:_0x5deca1}=_0xb8e630;return _0x484111(_0x1da64c,{'children':[_0x24b9e5(_0x4ee1f7(0x12d),{'className':_0x4ee1f7(0xbc),'children':_0x4ee1f7(0x82)}),_0x24b9e5(_0x4fe2d0,{'size':_0x4ee1f7(0x115),'type':_0x4ee1f7(0xc1),'onClick':()=>_0x5deca1[_0x4ee1f7(0xec)](),'children':_0x4ee1f7(0xbf)})]});}function Ue(_0x4b5080){var _0x3e5537=_0x86e20f;const {coordinator:_0x4b33ff}=_0x4b5080;return _0x484111(_0x1da64c,{'children':[_0x24b9e5(_0x3e5537(0x12d),{'className':_0x3e5537(0xbc),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x24b9e5(_0x4fe2d0,{'size':_0x3e5537(0x115),'type':_0x3e5537(0xc8),'onClick':()=>_0x4b33ff['stopPresenting'](),'children':_0x3e5537(0xd7)})]});}function Ve(){var _0x946073=_0x86e20f;return _0x24b9e5(_0x1da64c,{'children':_0x946073(0x90)});}var Me=Object[_0x86e20f(0x9f)],ke=(_0x2b8747,_0x273089,_0x8d4a95,_0x370420)=>{var _0x103300=_0x86e20f;for(var _0x349d58=_0x370420>0x1?void 0x0:_0x370420?Me(_0x273089,_0x8d4a95):_0x273089,_0x5c66a7=_0x2b8747[_0x103300(0x110)]-0x1,_0x139d0d;_0x5c66a7>=0x0;_0x5c66a7--)(_0x139d0d=_0x2b8747[_0x5c66a7])&&(_0x349d58=_0x139d0d(_0x349d58)||_0x349d58);return _0x349d58;},$=(_0x18b07d,_0x161e3b)=>(_0x1f4d8e,_0x49d4b4)=>_0x161e3b(_0x1f4d8e,_0x49d4b4,_0x18b07d);let b=class extends _0x26c534{constructor(_0x512e59,_0x1975ab){var _0x340236=_0x86e20f;super(),this[_0x340236(0x8a)]=_0x512e59,this['_uiPartsService']=_0x1975ab,this[_0x340236(0xee)]();}['_mountLiveShare'](){var _0x3468fc=_0x86e20f;this['disposeWithMe'](this['_uiPartsService'][_0x3468fc(0x126)](_0x56d703[_0x3468fc(0x103)],()=>_0x34c847(Te,this['_injector'])));}};b=ke([$(0x0,_0x4a06c1(_0x166128)),$(0x1,_0x5aab7e)],b);var Ge=Object['defineProperty'],We=Object['getOwnPropertyDescriptor'],Ye=(_0x39f290,_0x41cd1f,_0x96662)=>_0x41cd1f in _0x39f290?Ge(_0x39f290,_0x41cd1f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x96662}):_0x39f290[_0x41cd1f]=_0x96662,ze=(_0x938674,_0x13fdb7,_0x11e81f,_0x41561b)=>{var _0x27b64c=_0x86e20f;for(var _0x581502=_0x41561b>0x1?void 0x0:_0x41561b?We(_0x13fdb7,_0x11e81f):_0x13fdb7,_0x353026=_0x938674[_0x27b64c(0x110)]-0x1,_0x170ef2;_0x353026>=0x0;_0x353026--)(_0x170ef2=_0x938674[_0x353026])&&(_0x581502=_0x170ef2(_0x581502)||_0x581502);return _0x581502;},F=(_0x55542e,_0xda98f9)=>(_0x1fcde0,_0x492657)=>_0xda98f9(_0x1fcde0,_0x492657,_0x55542e),Z=(_0x2cf7dc,_0x9983a,_0x161db4)=>Ye(_0x2cf7dc,typeof _0x9983a!=_0x86e20f(0xc5)?_0x9983a+'':_0x9983a,_0x161db4);const Be=_0x86e20f(0xf7);function _0xe19a(){var _0x1faf43=['registerSharedOperation','_handleNewHost','3335740MonMxp','You\x27are\x20offline.','IDLE','presenter','idSuffix','2865fbtsUH','xlink:href','sheet','live-share-single','complete','_startPresenting','_config','mask','_commandService','901901SUpmuP','offline','getOwnPropertyDescriptor','get','_handleOperation','indexOf','getCurrentTypeOfUnit$','fill','stopFollowing','_reporters','subscribe','getValue','evenodd','_collabSession','UNIVER_SHEET','_univerInstanceService','substring','assign','_status$','path','OPERATION','_entities','forEach','button','Present\x20this\x20document','status$','NOT_FOLLOWING','add','_stopPresenting','extend','Stop\x20following','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','concat','hasOwnProperty','Start\x20following','_handleOnline','text','pluginName','_unitID','init','symbol','_presenter','UniverIcon','default','map','defs','entries','defineProperty','function','live-share.config','_handleOffline','LIVESHARE_FETCH_OPERATIONS','string','unsubscribe','registerInitialStateReporter','next','prototype','shouldShareOperation','Stop\x20presenting','call','pipe','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','77Lhxdmu','trim','_startLiveShareCoordinator','_beIdle','tag','dispose$','tryStartPresenting','3786eDIguG','none','100eiMnRH','onCommandExecuted','set','_liveShareService','onRendered','params','You\x27re\x20following\x20the\x20presenter','_handleNewChangeSets','startFollowing','_handleTerminate','_mountLiveShare','SAME_OPERATION_SHARE_INTERVAL','LIVESHARE_OPERATION','LIVESHARE_REQUEST_HOST','FOLLOWING','presenting','_commandDisposable','children','LIVESHARE_TERMINATE','UNIVER_LIVE_SHARE_PLUGIN','50487LWhZJm','LiveShareSingle','send','displayName','disposeWithMe','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','values','toString','executeCommand','stringify','getMemberID','HEADER_MENU','from','asObservable','replace','className','idle','clear','_startFollowing','LIVESHARE_NEW_HOST','defIds','Start','url(#$1','getInitialStates','length','type','_fetchOperations','parse','data','small','getTypeOfUnitAdded$','end','current','getTypeOfUnitDisposed$','find','unitId','33vckGgw','requireSession','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','override','attrs','colorChannel1','3502112lSmgbk','stopPresenting','icon','univer-size-4','registerComponent','_collabSessionService','_configService','delete','19802PCZmkF','_status','getUnitId','div','_sharedOperations','_stopFollowing','createInstance','You\x27re\x20not\x20following\x20the\x20presenter','2163402ocNifG','dispose','OFFLINE','_init','has','NEW_CHANGESETS','PRESENTING','_injector','not-following','following'];_0xe19a=function(){return _0x1faf43;};return _0xe19a();}let O=class extends _0x53f919{constructor(_0x63662a=T,_0x41360e,_0x33e415){var _0x26ec0c=_0x86e20f;super(),this[_0x26ec0c(0x9a)]=_0x63662a,this['_injector']=_0x41360e,this[_0x26ec0c(0x128)]=_0x33e415;const {..._0x44495f}=_0x32c382({},T,this[_0x26ec0c(0x9a)]);this[_0x26ec0c(0x128)]['setConfig'](Oe,_0x44495f);}['onStarting'](){var _0x46e4ea=_0x86e20f;_0x3299a8(this[_0x46e4ea(0x8a)],_0x1f4dfd([[x],[I],[m],[b]],this[_0x46e4ea(0x9a)][_0x46e4ea(0x11f)])),_0x481da4(this[_0x46e4ea(0x8a)],[[m]]);}[_0x86e20f(0xe8)](){_0x481da4(this['_injector'],[[b]]);}};Z(O,_0x86e20f(0x111),_0x3f10a8['UNIVER_UNKNOWN']),Z(O,_0x86e20f(0xc2),Be),O=ze([_0x485ccd(_0x46e810),F(0x1,_0x4a06c1(_0x166128)),F(0x2,_0x33fb0d)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,x as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x5cfc95=_0x3d36;(function(_0xb65619,_0x55d07d){var _0x842a22=_0x3d36,_0x39c600=_0xb65619();while(!![]){try{var _0x2acf7d=-parseInt(_0x842a22(0xa5))/0x1*(-parseInt(_0x842a22(0x93))/0x2)+parseInt(_0x842a22(0xff))/0x3*(-parseInt(_0x842a22(0x95))/0x4)+-parseInt(_0x842a22(0xdd))/0x5+parseInt(_0x842a22(0x96))/0x6*(-parseInt(_0x842a22(0x7e))/0x7)+parseInt(_0x842a22(0xab))/0x8*(-parseInt(_0x842a22(0xd2))/0x9)+parseInt(_0x842a22(0x11a))/0xa*(parseInt(_0x842a22(0x129))/0xb)+parseInt(_0x842a22(0xee))/0xc;if(_0x2acf7d===_0x55d07d)break;else _0x39c600['push'](_0x39c600['shift']());}catch(_0x260b9b){_0x39c600['push'](_0x39c600['shift']());}}}(_0x399e,0xbd172));var K=Object['defineProperty'],q=(_0xd19dfb,_0xb3d74a,_0x509480)=>_0xb3d74a in _0xd19dfb?K(_0xd19dfb,_0xb3d74a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x509480}):_0xd19dfb[_0xb3d74a]=_0x509480,d=(_0x448ebf,_0x890ea8,_0x28e5e6)=>q(_0x448ebf,typeof _0x890ea8!=_0x5cfc95(0xd4)?_0x890ea8+'':_0x890ea8,_0x28e5e6);import{CollaborationSessionService as _0xf183f8,SessionStatus as _0x48fa87,UniverCollaborationClientPlugin as _0x1c7c6f}from'@univerjs-pro/collaboration-client';import{Disposable as _0x22bb66,toDisposable as _0x20cb3e,Inject as _0x507b16,IUniverInstanceService as _0xaecb6b,Injector as _0x3dd6f6,IConfigService as _0x4d3841,ICommandService as _0x3ed16c,RxDisposable as _0x39dcfb,UniverInstanceType as _0x1e4c9b,DisposableCollection as _0x53802d,CommandType as _0x2a838f,DependentOn as _0x1bf51c,Plugin as _0x18a2a7,merge as _0x3e3f32,registerDependencies as _0x2871f4,mergeOverrideWithDependencies as _0x1ceb57,touchDependencies as _0xa0feef}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x4225c8,InsertSheetMutation as _0x52712c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x278807,SetScrollOperation as _0x56ddd9}from'@univerjs/sheets-ui';import{useDependency as _0x367990,useObservable as _0x2d1c71,IUIPartsService as _0x438b3e,BuiltInUIPart as _0x211e56,connectInjector as _0x5d3c9a}from'@univerjs/ui';import{jsx as _0x436c76,jsxs as _0x37bae7,Fragment as _0x474cd2}from'react/jsx-runtime';import{Dropdown as _0x2a1a9d,clsx as _0x1314ef,Button as _0x5f343d}from'@univerjs/design';import{forwardRef as _0x16fe87,useRef as _0x244fbc,createElement as _0x10bf49,useState as _0x3f0d8a,useEffect as _0x585ccc}from'react';import{CollaborationEvent as _0x18b3c3,parseProtocolChangeset as _0x5d8f81}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x291ebd,Subject as _0xefbb3d}from'rxjs';import{takeUntil as _0x346f0a,throttleTime as _0x3544b7}from'rxjs/operators';const Oe='live-share.config',T={};function _0x3d36(_0x287356,_0x3556ca){var _0x399e08=_0x399e();return _0x3d36=function(_0x3d360a,_0x51b9d4){_0x3d360a=_0x3d360a-0x7b;var _0x34d010=_0x399e08[_0x3d360a];return _0x34d010;},_0x3d36(_0x287356,_0x3556ca);}class x extends _0x22bb66{constructor(){var _0x4951fc=_0x5cfc95;super(...arguments),d(this,_0x4951fc(0x12b),new Set()),d(this,_0x4951fc(0x10e),new Set());}[_0x5cfc95(0x97)](_0x8a944a){var _0x297f3e=_0x5cfc95;return this[_0x297f3e(0x12b)][_0x297f3e(0xdb)](_0x8a944a),_0x20cb3e(()=>this[_0x297f3e(0x12b)][_0x297f3e(0xea)](_0x8a944a));}['registerInitialStateReporter'](_0x147b6e){var _0x285b65=_0x5cfc95;return this[_0x285b65(0x10e)]['add'](_0x147b6e),_0x20cb3e(()=>this[_0x285b65(0x10e)][_0x285b65(0xea)](_0x147b6e));}[_0x5cfc95(0x83)](_0x2d847d){var _0x2de743=_0x5cfc95;return this['_sharedOperations'][_0x2de743(0x9c)](_0x2d847d);}[_0x5cfc95(0xdf)](_0x221c91){var _0xe31a48=_0x5cfc95;return Array['from'](this[_0xe31a48(0x10e)])[_0xe31a48(0xa1)](_0x3b24ef=>_0x3b24ef(_0x221c91));}}var Ee=Object[_0x5cfc95(0x114)],Ce=(_0x38b397,_0x2fd7e5,_0x1efb5e,_0x423c71)=>{var _0x3a18fd=_0x5cfc95;for(var _0x29f66e=_0x423c71>0x1?void 0x0:_0x423c71?Ee(_0x2fd7e5,_0x1efb5e):_0x2fd7e5,_0x4357bd=_0x38b397[_0x3a18fd(0x12c)]-0x1,_0x244dd9;_0x4357bd>=0x0;_0x4357bd--)(_0x244dd9=_0x38b397[_0x4357bd])&&(_0x29f66e=_0x244dd9(_0x29f66e)||_0x29f66e);return _0x29f66e;},Ne=(_0x75f417,_0x3e03d5)=>(_0x521a2b,_0x4457be)=>_0x3e03d5(_0x521a2b,_0x4457be,_0x75f417);let m=class extends _0x22bb66{constructor(_0x285929){var _0x103e69=_0x5cfc95;super(),this[_0x103e69(0x88)]=_0x285929,this[_0x103e69(0x7f)]();}[_0x5cfc95(0x7f)](){var _0x46b9e4=_0x5cfc95;[_0x278807['id'],_0x56ddd9['id'],_0x4225c8['id']][_0x46b9e4(0xaf)](_0x415e9f=>{var _0x55c75e=_0x46b9e4;this['disposeWithMe'](this[_0x55c75e(0x88)][_0x55c75e(0x97)](_0x415e9f));});}};m=Ce([Ne(0x0,_0x507b16(x))],m);var c=function(){var _0x13c65e=_0x5cfc95;return c=Object[_0x13c65e(0xfd)]||function(_0x225de7){var _0x3b9ee1=_0x13c65e;for(var _0x357c59,_0x2b5945=0x1,_0x3cd4dd=arguments[_0x3b9ee1(0x12c)];_0x2b5945<_0x3cd4dd;_0x2b5945++){_0x357c59=arguments[_0x2b5945];for(var _0x2a2155 in _0x357c59)Object[_0x3b9ee1(0x98)][_0x3b9ee1(0x104)]['call'](_0x357c59,_0x2a2155)&&(_0x225de7[_0x2a2155]=_0x357c59[_0x2a2155]);}return _0x225de7;},c[_0x13c65e(0xb0)](this,arguments);},we=function(_0x31f868,_0x4f5db4){var _0x1f7e8e=_0x5cfc95,_0x49ab4a={};for(var _0x373bb1 in _0x31f868)Object[_0x1f7e8e(0x98)][_0x1f7e8e(0x104)][_0x1f7e8e(0xca)](_0x31f868,_0x373bb1)&&_0x4f5db4['indexOf'](_0x373bb1)<0x0&&(_0x49ab4a[_0x373bb1]=_0x31f868[_0x373bb1]);if(_0x31f868!=null&&typeof Object['getOwnPropertySymbols']==_0x1f7e8e(0x11b)){for(var _0x33ae5a=0x0,_0x373bb1=Object['getOwnPropertySymbols'](_0x31f868);_0x33ae5a<_0x373bb1[_0x1f7e8e(0x12c)];_0x33ae5a++)_0x4f5db4['indexOf'](_0x373bb1[_0x33ae5a])<0x0&&Object[_0x1f7e8e(0x98)]['propertyIsEnumerable'][_0x1f7e8e(0xca)](_0x31f868,_0x373bb1[_0x33ae5a])&&(_0x49ab4a[_0x373bb1[_0x33ae5a]]=_0x31f868[_0x373bb1[_0x33ae5a]]);}return _0x49ab4a;},W=_0x16fe87(function(_0x41e6a0,_0x5ae3da){var _0x1d38ab=_0x5cfc95,_0x3fc1c0=_0x41e6a0[_0x1d38ab(0xbd)],_0x13b654=_0x41e6a0['id'],_0x4193ba=_0x41e6a0[_0x1d38ab(0xe1)],_0x5c21d8=_0x41e6a0['extend'],_0xe9d2a4=we(_0x41e6a0,['icon','id',_0x1d38ab(0xe1),_0x1d38ab(0x90)]),_0x5ada56=_0x1d38ab(0xa4)[_0x1d38ab(0x8c)](_0x13b654,'\x20')['concat'](_0x4193ba||'')['trim'](),_0x257bec=_0x244fbc('_'['concat'](xe()));return Y(_0x3fc1c0,''[_0x1d38ab(0x8c)](_0x13b654),{'defIds':_0x3fc1c0[_0x1d38ab(0x120)],'idSuffix':_0x257bec['current']},c({'ref':_0x5ae3da,'className':_0x5ada56},_0xe9d2a4),_0x5c21d8);});function Y(_0x536838,_0x2e846f,_0x4a9fac,_0x3aa230,_0x1f3047){var _0x420fb0=_0x5cfc95;return _0x10bf49(_0x536838['tag'],c(c({'key':_0x2e846f},De(_0x536838,_0x4a9fac,_0x1f3047)),_0x3aa230),(Le(_0x536838,_0x4a9fac)[_0x420fb0(0x99)]||[])[_0x420fb0(0xa1)](function(_0x544df8,_0xb27543){var _0x488717=_0x420fb0;return Y(_0x544df8,''[_0x488717(0x8c)](_0x2e846f,'-')['concat'](_0x536838[_0x488717(0xf8)],'-')[_0x488717(0x8c)](_0xb27543),_0x4a9fac,void 0x0,_0x1f3047);}));}function De(_0x539224,_0x387761,_0x1bb266){var _0x5790bb=_0x5cfc95,_0x21edd4=c({},_0x539224[_0x5790bb(0x123)]);_0x1bb266!=null&&_0x1bb266[_0x5790bb(0x10c)]&&_0x21edd4['fill']===_0x5790bb(0x10c)&&(_0x21edd4[_0x5790bb(0x100)]=_0x1bb266[_0x5790bb(0x10c)]),_0x539224['tag']===_0x5790bb(0xb2)&&_0x21edd4['id']&&(_0x21edd4['id']=_0x21edd4['id']+_0x387761[_0x5790bb(0x8b)]),Object[_0x5790bb(0xa0)](_0x21edd4)['forEach'](function(_0x1b424b){var _0x264ae5=_0x5790bb,_0x22c754=_0x1b424b[0x0],_0x23df77=_0x1b424b[0x1];_0x22c754===_0x264ae5(0xb2)&&typeof _0x23df77==_0x264ae5(0x117)&&(_0x21edd4[_0x22c754]=_0x23df77[_0x264ae5(0xe5)](/url\(#(.*)\)/,_0x264ae5(0xf6)[_0x264ae5(0x8c)](_0x387761[_0x264ae5(0x8b)],')')));});var _0x25053d=_0x387761[_0x5790bb(0x120)];return!_0x25053d||_0x25053d[_0x5790bb(0x12c)]===0x0||(_0x539224['tag']===_0x5790bb(0x8d)&&_0x21edd4[_0x5790bb(0x126)]&&(_0x21edd4[_0x5790bb(0x126)]=_0x21edd4[_0x5790bb(0x126)]+_0x387761[_0x5790bb(0x8b)]),Object[_0x5790bb(0xa0)](_0x21edd4)['forEach'](function(_0x54222c){var _0x55d362=_0x5790bb,_0x836fc8=_0x54222c[0x0],_0x105d38=_0x54222c[0x1];typeof _0x105d38==_0x55d362(0x117)&&(_0x21edd4[_0x836fc8]=_0x105d38[_0x55d362(0xe5)](/url\(#(.*)\)/,_0x55d362(0xf6)[_0x55d362(0x8c)](_0x387761[_0x55d362(0x8b)],')')));})),_0x21edd4;}function Le(_0x4a4ee2,_0x42c956){var _0x43368e=_0x5cfc95,_0x53c418,_0x19d4c4=_0x42c956[_0x43368e(0x120)];return!_0x19d4c4||_0x19d4c4[_0x43368e(0x12c)]===0x0?_0x4a4ee2:_0x4a4ee2[_0x43368e(0xf8)]==='defs'&&(!((_0x53c418=_0x4a4ee2[_0x43368e(0x99)])===null||_0x53c418===void 0x0)&&_0x53c418[_0x43368e(0x12c)])?c(c({},_0x4a4ee2),{'children':_0x4a4ee2[_0x43368e(0x99)]['map'](function(_0x52750d){var _0x5ace10=_0x43368e;return typeof _0x52750d[_0x5ace10(0x123)]['id']=='string'&&_0x19d4c4&&_0x19d4c4['indexOf'](_0x52750d[_0x5ace10(0x123)]['id'])>-0x1?c(c({},_0x52750d),{'attrs':c(c({},_0x52750d[_0x5ace10(0x123)]),{'id':_0x52750d[_0x5ace10(0x123)]['id']+_0x42c956[_0x5ace10(0x8b)]})}):_0x52750d;})}):_0x4a4ee2;}function xe(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}W[_0x5cfc95(0x8e)]=_0x5cfc95(0x12f);function _0x399e(){var _0x6d6d4a=['_handleNewHost','defIds','sessionStatus$','tryStartPresenting','attrs','Present\x20this\x20document','_stopPresenting','xlink:href','SAME_OPERATION_SHARE_INTERVAL','NOT_FOLLOWING','11vSGrHJ','div','_sharedOperations','length','NEW_CHANGESETS','getTypeOfUnitDisposed$','UniverIcon','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','live-share-single','clear','7LCqOcc','_init','dispose$','presenter','HEADER_MENU','shouldShareOperation','getMemberID','get','text','_config','_liveShareService','getLiveShareCoordinator','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','idSuffix','concat','use','displayName','offline','extend','following','set','231016YzAIxs','UNIVER_SHEET','4QLoRSQ','5134314ZWnaVU','registerSharedOperation','prototype','children','current','_fetchOperations','has','You\x27re\x20not\x20following\x20the\x20presenter','stringify','OFFLINE','entries','map','_commandService','0\x200\x2016\x2016','univerjs-icon\x20univerjs-icon-','2nxZPIl','_handleOffline','_configService','sheet','parse','_mountLiveShare','4317928QTGrKL','_collabSessionService','executeCommand','getValue','forEach','apply','_status','mask','svg','_handleNewChangeSets','status$','complete','_injector','registerComponent','_startPresenting','defineProperty','getConfig','operations','icon','currentColor','IDLE','unsubscribe','_presenter','pipe','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','stopPresenting','onRendered','setConfig','PRESENTING','then','values','call','_univerInstanceService','data','LIVESHARE_REQUEST_HOST','init','You\x27re\x20presenting\x20the\x20document','_entities','send','9ZywnGA','UNIVER_UNKNOWN','symbol','_startLiveShareCoordinator','_handleOnline','evenodd','Start\x20following','requireSession','onCommandExecuted','add','startFollowing','483685ltwNAj','_handleOperation','getInitialStates','button','className','dispose','_status$','asObservable','replace','OPERATION','mutations','LIVESHARE_FETCH_OPERATIONS','Stop\x20presenting','delete','stopFollowing','getCurrentTypeOfUnit$','presenting','15039780djaTjm','params','idle','getUnitId','type','LIVESHARE_OPERATION','Stop\x20following','includes','url(#$1','memberID','tag','You\x27are\x20offline.','end','UNIVER_LIVE_SHARE_PLUGIN','_unitID','assign','You\x27re\x20following\x20the\x20presenter','1326291jeyrcS','fill','_beIdle','ONLINE','default','hasOwnProperty','LiveShareSingle','_commandDisposable','not-following','reverse','_stopFollowing','onStarting','subscribe','colorChannel1','LIVESHARE_TERMINATE','_reporters','_startFollowing','_uiPartsService','Start','_handleTerminate','FOLLOWING','getOwnPropertyDescriptor','createInstance','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','string','unitId','pluginName','12244770gfbIFw','function','next','_collabSession','small'];_0x399e=function(){return _0x6d6d4a;};return _0x399e();}var ye={'tag':_0x5cfc95(0xb3),'attrs':{'fill':'none','viewBox':_0x5cfc95(0xa3),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x5cfc95(0xc3)}},{'tag':'path','attrs':{'fill':_0x5cfc95(0xbe),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':'evenodd','clipRule':_0x5cfc95(0xd7)}}]},z=_0x16fe87(function(_0x582a5d,_0x354c45){var _0x16294a=_0x5cfc95;return _0x10bf49(W,Object[_0x16294a(0xfd)]({},_0x582a5d,{'id':_0x16294a(0x7c),'ref':_0x354c45,'icon':ye}));});z[_0x5cfc95(0x8e)]=_0x5cfc95(0x105);var Re=Object[_0x5cfc95(0x114)],B=(_0x52d03e,_0x489ed9,_0x1c608e,_0x2d6837)=>{var _0xdc6d9f=_0x5cfc95;for(var _0x319d3e=_0x2d6837>0x1?void 0x0:_0x2d6837?Re(_0x489ed9,_0x1c608e):_0x489ed9,_0x4377ae=_0x52d03e[_0xdc6d9f(0x12c)]-0x1,_0x4c6173;_0x4377ae>=0x0;_0x4377ae--)(_0x4c6173=_0x52d03e[_0x4377ae])&&(_0x319d3e=_0x4c6173(_0x319d3e)||_0x319d3e);return _0x319d3e;},f=(_0x47c6ff,_0x10092d)=>(_0x21e9e2,_0x9432ca)=>_0x10092d(_0x21e9e2,_0x9432ca,_0x47c6ff);let I=class extends _0x39dcfb{constructor(_0x31edf0,_0x32b960,_0x4b8508){var _0x4b6273=_0x5cfc95;super(),d(this,_0x4b6273(0xd0),new Map()),(this[_0x4b6273(0xcb)]=_0x31edf0,this['_injector']=_0x32b960,this[_0x4b6273(0xac)]=_0x4b8508,this[_0x4b6273(0x7f)]());}async[_0x5cfc95(0x89)](_0x2c8e29){var _0x29e348=_0x5cfc95;return this[_0x29e348(0xd0)]['has'](_0x2c8e29)||await this[_0x29e348(0xd5)](_0x2c8e29),this['_entities'][_0x29e348(0x85)](_0x2c8e29);}[_0x5cfc95(0x7f)](){var _0x57d3db=_0x5cfc95;this[_0x57d3db(0xcb)]['getTypeOfUnitAdded$'](_0x1e4c9b['UNIVER_SHEET'])[_0x57d3db(0xc2)](_0x346f0a(this[_0x57d3db(0x80)]))[_0x57d3db(0x10b)](async _0x5bb6f9=>{var _0x41b9e4=_0x57d3db;const _0x4ffcd5=_0x5bb6f9['getUnitId']();this[_0x41b9e4(0xd0)][_0x41b9e4(0x9c)](_0x4ffcd5)||this[_0x41b9e4(0xd5)](_0x4ffcd5);}),this[_0x57d3db(0xcb)][_0x57d3db(0x12e)](_0x1e4c9b[_0x57d3db(0x94)])[_0x57d3db(0xc2)](_0x346f0a(this['dispose$']))[_0x57d3db(0x10b)](_0x126279=>{var _0x3a6578=_0x57d3db;const _0x8dbabc=_0x126279[_0x3a6578(0xf1)](),_0x2da852=this[_0x3a6578(0xd0)][_0x3a6578(0x85)](_0x8dbabc);_0x2da852==null||_0x2da852['dispose']();});}async[_0x5cfc95(0xd5)](_0x5d2338){var _0x2aedaa=_0x5cfc95;const _0x301138=await this[_0x2aedaa(0xac)][_0x2aedaa(0xd9)](_0x5d2338),_0x4858a5=this[_0x2aedaa(0xb7)][_0x2aedaa(0x115)](w,_0x5d2338,_0x301138);return _0x4858a5[_0x2aedaa(0xce)](),this[_0x2aedaa(0xd0)]['set'](_0x5d2338,_0x4858a5),_0x4858a5;}};I=B([f(0x0,_0xaecb6b),f(0x1,_0x507b16(_0x3dd6f6)),f(0x2,_0x507b16(_0xf183f8))],I);var h=(_0x5601a0=>(_0x5601a0[_0x5cfc95(0x9f)]=_0x5cfc95(0x8f),_0x5601a0[_0x5cfc95(0xbf)]=_0x5cfc95(0xf0),_0x5601a0[_0x5cfc95(0x113)]=_0x5cfc95(0x91),_0x5601a0['NOT_FOLLOWING']='not-following',_0x5601a0[_0x5cfc95(0xc7)]='presenting',_0x5601a0))(h||{});const Pe=_0x5cfc95(0x127),Ae=0xc8;let w=class extends _0x39dcfb{constructor(_0x3d975a,_0x4866df,_0x4ade9d,_0x25b230,_0x69cf1f){var _0x55ea82=_0x5cfc95;super(),d(this,_0x55ea82(0xe3),new _0x291ebd(_0x55ea82(0xf0))),d(this,'status$',this['_status$'][_0x55ea82(0xe4)]()),d(this,_0x55ea82(0x7f),!0x1),d(this,_0x55ea82(0x106),null),d(this,_0x55ea82(0xc1),null),(this[_0x55ea82(0xfc)]=_0x3d975a,this[_0x55ea82(0x11d)]=_0x4866df,this['_configService']=_0x4ade9d,this[_0x55ea82(0x88)]=_0x25b230,this[_0x55ea82(0xa2)]=_0x69cf1f);}get[_0x5cfc95(0xb1)](){var _0x1f0ff2=_0x5cfc95;return this[_0x1f0ff2(0xe3)][_0x1f0ff2(0xae)]();}[_0x5cfc95(0xe2)](){var _0x4fb33c=_0x5cfc95,_0xe18103;(_0xe18103=this[_0x4fb33c(0x106)])==null||_0xe18103['dispose'](),this[_0x4fb33c(0xe3)][_0x4fb33c(0x11c)](_0x4fb33c(0xf0)),this[_0x4fb33c(0xe3)][_0x4fb33c(0xb6)]();}[_0x5cfc95(0xce)](){var _0x16ad8f=_0x5cfc95;this['_init']||(this[_0x16ad8f(0x7f)]=!0x0,this[_0x16ad8f(0x11d)][_0x16ad8f(0x121)][_0x16ad8f(0xc2)](_0x346f0a(this[_0x16ad8f(0x80)]))[_0x16ad8f(0x10b)](_0x549b25=>{var _0x38c887=_0x16ad8f;switch(_0x549b25){case _0x48fa87[_0x38c887(0x9f)]:this[_0x38c887(0xa6)]();break;case _0x48fa87[_0x38c887(0x102)]:this['_handleOnline']();break;}}),this[_0x16ad8f(0x11d)]['event$'][_0x16ad8f(0xc2)](_0x346f0a(this['dispose$']))[_0x16ad8f(0x10b)](_0x37f173=>{var _0x402030=_0x16ad8f;const {eventID:_0xa27e12}=_0x37f173;switch(_0xa27e12){case _0x18b3c3['LIVESHARE_NEW_HOST']:this[_0x402030(0x11f)](_0x37f173);break;case _0x18b3c3[_0x402030(0xf3)]:this[_0x402030(0xde)](_0x37f173);break;case _0x18b3c3[_0x402030(0x10d)]:this[_0x402030(0x112)]();break;case _0x18b3c3[_0x402030(0x12d)]:this[_0x402030(0xb4)](_0x37f173);break;}}));}['tryStartPresenting'](){var _0x45f39e=_0x5cfc95;this['_collabSession'][_0x45f39e(0xd1)]({'eventID':_0x18b3c3[_0x45f39e(0xcd)],'data':{'unitID':this[_0x45f39e(0xfc)],'userID':this[_0x45f39e(0x11d)][_0x45f39e(0x84)]()}},this['_unitID']);}[_0x5cfc95(0xc4)](){var _0x32be4b=_0x5cfc95;this['_status']===_0x32be4b(0xed)&&(this[_0x32be4b(0xe3)][_0x32be4b(0x11c)](_0x32be4b(0xf0)),this[_0x32be4b(0x11d)][_0x32be4b(0xd1)]({'eventID':_0x18b3c3[_0x32be4b(0x10d)],'data':{'unitID':this[_0x32be4b(0xfc)]}},this[_0x32be4b(0xfc)]));}[_0x5cfc95(0xdc)](){var _0x443287=_0x5cfc95;this[_0x443287(0xb1)]===_0x443287(0x107)&&(this[_0x443287(0xe3)]['next'](_0x443287(0x91)),this[_0x443287(0x10f)]());}[_0x5cfc95(0xeb)](){var _0x5f3cda=_0x5cfc95;this['_status']===_0x5f3cda(0x91)&&this[_0x5f3cda(0x109)]();}[_0x5cfc95(0x11f)](_0x1afba2){var _0x540e8e=_0x5cfc95;const {presenter:_0x3d4304}=_0x1afba2['data'],_0x2d3de7=this['_collabSession']['getMemberID']();this[_0x540e8e(0xc1)]=_0x3d4304,_0x3d4304===_0x2d3de7?(this[_0x540e8e(0x109)](),this[_0x540e8e(0xb9)]()):this[_0x540e8e(0xb1)]!==_0x540e8e(0x107)&&(this[_0x540e8e(0x125)](),this['_startFollowing']());}[_0x5cfc95(0x9b)](){var _0xfaa5c8=_0x5cfc95;const _0x2d4c4f={'eventID':_0x18b3c3[_0xfaa5c8(0xe8)]};this[_0xfaa5c8(0x11d)]['send'](_0x2d4c4f,this[_0xfaa5c8(0xfc)]);}[_0x5cfc95(0x112)](){var _0x37c5ec=_0x5cfc95;this[_0x37c5ec(0xc1)]=null,this['_status']!=='presenting'&&this[_0x37c5ec(0x101)]();}[_0x5cfc95(0xb4)](_0x2b5d08){var _0x47b590=_0x5cfc95;if(this[_0x47b590(0xb1)]===_0x47b590(0x91)&&this[_0x47b590(0xc1)]===_0x2b5d08[_0x47b590(0xcc)][_0x47b590(0xf7)]){const _0x12c038=_0x5d8f81(_0x2b5d08[_0x47b590(0xcc)])[_0x47b590(0xe7)][_0x47b590(0x108)]()['find'](_0x2073cd=>_0x2073cd['id']===_0x52712c['id']);if(_0x12c038){const _0x4a72c1=_0x12c038[_0x47b590(0xef)][_0x47b590(0x118)],_0x378757=_0x12c038[_0x47b590(0xef)][_0x47b590(0xa8)]['id'];setTimeout(()=>{var _0x2a0a81=_0x47b590;this[_0x2a0a81(0xa2)]['executeCommand'](_0x4225c8['id'],{'unitId':_0x4a72c1,'subUnitId':_0x378757},{'fromCollab':!0x0});});}}}[_0x5cfc95(0xb9)](){var _0x37ab7c=_0x5cfc95;this[_0x37ab7c(0xe3)][_0x37ab7c(0x11c)](_0x37ab7c(0xed));const _0x25f47b=new Map(),_0x59b1a4=this[_0x37ab7c(0x106)]=new _0x53802d();_0x59b1a4[_0x37ab7c(0xdb)](_0x20cb3e(()=>{var _0x514a48=_0x37ab7c;_0x25f47b[_0x514a48(0xaf)](_0x2c2ba3=>_0x2c2ba3['complete']()),_0x25f47b[_0x514a48(0x7d)]();})),_0x59b1a4['add'](this[_0x37ab7c(0xa2)][_0x37ab7c(0xda)](_0x56953f=>{var _0x4c31b3=_0x37ab7c,_0xc2f337;if(_0x56953f[_0x4c31b3(0xf2)]!==_0x2a838f[_0x4c31b3(0xe6)]||!this[_0x4c31b3(0x88)]['shouldShareOperation'](_0x56953f['id']))return;const {id:_0x58ae4c}=_0x56953f;let _0x280687;_0x25f47b[_0x4c31b3(0x9c)](_0x58ae4c)?_0x280687=_0x25f47b[_0x4c31b3(0x85)](_0x58ae4c):(_0x280687=new _0xefbb3d(),_0x25f47b[_0x4c31b3(0x92)](_0x58ae4c,_0x280687),_0x280687['pipe'](_0x3544b7((_0xc2f337=this['_configService'][_0x4c31b3(0xbb)](Pe))!=null?_0xc2f337:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4c31b3(0x10b)](_0x141f7d=>{var _0x23fb23=_0x4c31b3;this[_0x23fb23(0x11d)][_0x23fb23(0xd1)]({'eventID':_0x18b3c3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x23fb23(0xfc)],'operations':{[_0x141f7d['id']]:{'id':_0x141f7d['id'],'params':JSON[_0x23fb23(0x9e)](_0x141f7d[_0x23fb23(0xef)])}}}},this['_unitID']);})),_0x280687[_0x4c31b3(0x11c)](_0x56953f);})),this[_0x37ab7c(0x88)][_0x37ab7c(0xdf)](this[_0x37ab7c(0xfc)])[_0x37ab7c(0xaf)](_0x271a88=>this['_collabSession']['send']({'eventID':_0x18b3c3[_0x37ab7c(0xf3)],'data':{'unitID':this[_0x37ab7c(0xfc)],'operations':{[_0x271a88['id']]:{'id':_0x271a88['id'],'params':JSON['stringify'](_0x271a88[_0x37ab7c(0xef)])}}}},this[_0x37ab7c(0xfc)]));}[_0x5cfc95(0x125)](){var _0x4c17a0=_0x5cfc95,_0xfd354;this[_0x4c17a0(0xe3)][_0x4c17a0(0x11c)](_0x4c17a0(0xf0)),(_0xfd354=this[_0x4c17a0(0x106)])==null||_0xfd354[_0x4c17a0(0xe2)](),this['_commandDisposable']=null;}[_0x5cfc95(0x10f)](){var _0x481f81=_0x5cfc95,_0x317477;(_0x317477=this[_0x481f81(0x106)])==null||_0x317477[_0x481f81(0xe2)](),this[_0x481f81(0xe3)][_0x481f81(0x11c)]('following');}[_0x5cfc95(0x101)](){var _0x43b620=_0x5cfc95,_0x464b8c;this[_0x43b620(0xe3)][_0x43b620(0x11c)](_0x43b620(0xf0)),(_0x464b8c=this[_0x43b620(0x106)])==null||_0x464b8c[_0x43b620(0xe2)](),this['_commandDisposable']=null;}[_0x5cfc95(0x109)](){var _0x4c5c30=_0x5cfc95,_0x4cf7ba;this[_0x4c5c30(0xe3)]['next'](_0x4c5c30(0x107)),(_0x4cf7ba=this['_commandDisposable'])==null||_0x4cf7ba[_0x4c5c30(0xe2)]();}[_0x5cfc95(0xde)](_0x435f9d){var _0x2f3e47=_0x5cfc95;if(['presenting','not-following','offline'][_0x2f3e47(0xf5)](this[_0x2f3e47(0xb1)])||!_0x435f9d[_0x2f3e47(0xcc)][_0x2f3e47(0x81)]||_0x435f9d['data'][_0x2f3e47(0x81)]===this[_0x2f3e47(0x11d)]['getMemberID']())return;this[_0x2f3e47(0xb1)]===_0x2f3e47(0xf0)&&this[_0x2f3e47(0x10f)]();const _0x1d1b09=_0x435f9d[_0x2f3e47(0xcc)][_0x2f3e47(0xbc)];Object[_0x2f3e47(0xc9)](_0x1d1b09)[_0x2f3e47(0xaf)](_0x5d2857=>{var _0x35ac5d=_0x2f3e47;this['_commandService'][_0x35ac5d(0xad)](_0x5d2857['id'],_0x5d2857[_0x35ac5d(0xef)]?JSON[_0x35ac5d(0xa9)](_0x5d2857[_0x35ac5d(0xef)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x302db8=_0x5cfc95,_0x56790e;this['_status$'][_0x302db8(0x11c)](_0x302db8(0x8f)),(_0x56790e=this['_commandDisposable'])==null||_0x56790e[_0x302db8(0xe2)]();}[_0x5cfc95(0xd6)](){var _0x39bc87=_0x5cfc95;this['_status$'][_0x39bc87(0x11c)](_0x39bc87(0xf0)),this[_0x39bc87(0x9b)]();}};w=B([f(0x2,_0x4d3841),f(0x3,_0x507b16(x)),f(0x4,_0x3ed16c)],w);function Te(){var _0x57ca3c=_0x5cfc95;const _0x2522a0=_0x367990(I),_0x401eb4=_0x367990(_0xaecb6b),_0x33a271=_0x2d1c71(()=>_0x401eb4[_0x57ca3c(0xec)](_0x1e4c9b['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5a2e7d,_0x369639]=_0x3f0d8a(null),[_0x5370c7,_0x4ac531]=_0x3f0d8a(h[_0x57ca3c(0xbf)]),_0x5a4fc7=_0x244fbc(null);return _0x585ccc(()=>(_0x33a271&&_0x2522a0[_0x57ca3c(0x89)](_0x33a271[_0x57ca3c(0xf1)]())[_0x57ca3c(0xc8)](_0x251a95=>{var _0xcb3182=_0x57ca3c;_0x369639(_0x251a95),_0x5a4fc7['current']=_0x251a95[_0xcb3182(0xb5)][_0xcb3182(0x10b)](_0x4c516b=>{_0x4ac531(_0x4c516b);});}),()=>{var _0x9f9e17=_0x57ca3c,_0x248e1e;(_0x248e1e=_0x5a4fc7[_0x9f9e17(0x9a)])==null||_0x248e1e[_0x9f9e17(0xc0)](),_0x5a4fc7[_0x9f9e17(0x9a)]=null;}),[_0x33a271,_0x2522a0]),_0x5a2e7d?_0x436c76(_0x2a1a9d,{'align':_0x57ca3c(0xfa),'disabled':_0x5370c7===h[_0x57ca3c(0x9f)],'className':_0x57ca3c(0x8a),'overlay':_0x436c76($e,{'status':_0x5370c7,'coordinator':_0x5a2e7d}),'children':_0x436c76(_0x57ca3c(0xe0),{'className':_0x1314ef(_0x57ca3c(0x7b),{'univer-cursor-not-allowed':_0x5370c7===h[_0x57ca3c(0x9f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5370c7!==h[_0x57ca3c(0x9f)]}),'type':'button','children':_0x436c76(z,{'className':'univer-size-4'})})}):null;}function $e(_0x13fcea){var _0x1ee49d=_0x5cfc95;const {status:_0x3fdd4d,coordinator:_0xb9ab96}=_0x13fcea;switch(_0x3fdd4d){case h[_0x1ee49d(0xbf)]:return _0x436c76(Fe,{'coordinator':_0xb9ab96});case h[_0x1ee49d(0x113)]:return _0x436c76(He,{'coordinator':_0xb9ab96});case h[_0x1ee49d(0x128)]:return _0x436c76(je,{'coordinator':_0xb9ab96});case h[_0x1ee49d(0x9f)]:return _0x436c76(Ve,{});case h[_0x1ee49d(0xc7)]:return _0x436c76(Ue,{'coordinator':_0xb9ab96});default:return null;}}function Fe(_0x486061){var _0x35f43c=_0x5cfc95;const {coordinator:_0x2d0288}=_0x486061;return _0x37bae7(_0x474cd2,{'children':[_0x436c76(_0x35f43c(0x12a),{'className':_0x35f43c(0x116),'children':_0x35f43c(0x124)}),_0x436c76(_0x5f343d,{'size':_0x35f43c(0x11e),'type':_0x35f43c(0x103),'onClick':()=>_0x2d0288[_0x35f43c(0x122)](),'children':_0x35f43c(0x111)})]});}function He(_0x202ce4){var _0x70685d=_0x5cfc95;const {coordinator:_0x15a5c4}=_0x202ce4;return _0x37bae7(_0x474cd2,{'children':[_0x436c76(_0x70685d(0x12a),{'className':_0x70685d(0x116),'children':_0x70685d(0xfe)}),_0x436c76(_0x5f343d,{'size':'small','type':_0x70685d(0x103),'onClick':()=>_0x15a5c4[_0x70685d(0xeb)](),'children':_0x70685d(0xf4)})]});}function je(_0x4fa29d){var _0xb80279=_0x5cfc95;const {coordinator:_0x512643}=_0x4fa29d;return _0x37bae7(_0x474cd2,{'children':[_0x436c76(_0xb80279(0x12a),{'className':_0xb80279(0x116),'children':_0xb80279(0x9d)}),_0x436c76(_0x5f343d,{'size':_0xb80279(0x11e),'type':_0xb80279(0x86),'onClick':()=>_0x512643[_0xb80279(0xdc)](),'children':_0xb80279(0xd8)})]});}function Ue(_0x11e4c1){var _0x56ae1e=_0x5cfc95;const {coordinator:_0x487a2d}=_0x11e4c1;return _0x37bae7(_0x474cd2,{'children':[_0x436c76(_0x56ae1e(0x12a),{'className':_0x56ae1e(0x116),'children':_0x56ae1e(0xcf)}),_0x436c76(_0x5f343d,{'size':_0x56ae1e(0x11e),'type':_0x56ae1e(0x103),'onClick':()=>_0x487a2d[_0x56ae1e(0xc4)](),'children':_0x56ae1e(0xe9)})]});}function Ve(){var _0x4ae69d=_0x5cfc95;return _0x436c76(_0x474cd2,{'children':_0x4ae69d(0xf9)});}var Me=Object[_0x5cfc95(0x114)],ke=(_0x2bd8fb,_0x3e3558,_0x5be386,_0x3ed7cc)=>{var _0x23956c=_0x5cfc95;for(var _0x180ae1=_0x3ed7cc>0x1?void 0x0:_0x3ed7cc?Me(_0x3e3558,_0x5be386):_0x3e3558,_0x233b1c=_0x2bd8fb[_0x23956c(0x12c)]-0x1,_0x4b7f43;_0x233b1c>=0x0;_0x233b1c--)(_0x4b7f43=_0x2bd8fb[_0x233b1c])&&(_0x180ae1=_0x4b7f43(_0x180ae1)||_0x180ae1);return _0x180ae1;},$=(_0x14e714,_0x2f3a76)=>(_0x1d8e1e,_0x15c897)=>_0x2f3a76(_0x1d8e1e,_0x15c897,_0x14e714);let b=class extends _0x22bb66{constructor(_0x2f69c0,_0x3f6b6e){var _0x519b6e=_0x5cfc95;super(),this[_0x519b6e(0xb7)]=_0x2f69c0,this[_0x519b6e(0x110)]=_0x3f6b6e,this[_0x519b6e(0xaa)]();}['_mountLiveShare'](){var _0x3f1139=_0x5cfc95;this['disposeWithMe'](this[_0x3f1139(0x110)][_0x3f1139(0xb8)](_0x211e56[_0x3f1139(0x82)],()=>_0x5d3c9a(Te,this[_0x3f1139(0xb7)])));}};b=ke([$(0x0,_0x507b16(_0x3dd6f6)),$(0x1,_0x438b3e)],b);var Ge=Object[_0x5cfc95(0xba)],We=Object[_0x5cfc95(0x114)],Ye=(_0xc53720,_0x2ddad5,_0x18d15a)=>_0x2ddad5 in _0xc53720?Ge(_0xc53720,_0x2ddad5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18d15a}):_0xc53720[_0x2ddad5]=_0x18d15a,ze=(_0x108a8e,_0x41db7e,_0x509c1d,_0x2ae9e6)=>{var _0x5a4649=_0x5cfc95;for(var _0x5410c8=_0x2ae9e6>0x1?void 0x0:_0x2ae9e6?We(_0x41db7e,_0x509c1d):_0x41db7e,_0x818bd3=_0x108a8e[_0x5a4649(0x12c)]-0x1,_0xbe3bdb;_0x818bd3>=0x0;_0x818bd3--)(_0xbe3bdb=_0x108a8e[_0x818bd3])&&(_0x5410c8=_0xbe3bdb(_0x5410c8)||_0x5410c8);return _0x5410c8;},F=(_0x4a2f30,_0xc71df)=>(_0x20fabe,_0x5aed08)=>_0xc71df(_0x20fabe,_0x5aed08,_0x4a2f30),Z=(_0x14fc05,_0x59bc2f,_0x1c3c11)=>Ye(_0x14fc05,typeof _0x59bc2f!=_0x5cfc95(0xd4)?_0x59bc2f+'':_0x59bc2f,_0x1c3c11);const Be=_0x5cfc95(0xfb);let O=class extends _0x18a2a7{constructor(_0x3a63b6=T,_0x276f49,_0x5d01a2){var _0x4ee2d3=_0x5cfc95;super(),this[_0x4ee2d3(0x87)]=_0x3a63b6,this[_0x4ee2d3(0xb7)]=_0x276f49,this[_0x4ee2d3(0xa7)]=_0x5d01a2;const {..._0xcbfb0d}=_0x3e3f32({},T,this['_config']);this[_0x4ee2d3(0xa7)][_0x4ee2d3(0xc6)](Oe,_0xcbfb0d);}[_0x5cfc95(0x10a)](){var _0x4f0aaf=_0x5cfc95;_0x2871f4(this[_0x4f0aaf(0xb7)],_0x1ceb57([[x],[I],[m],[b]],this[_0x4f0aaf(0x87)]['override'])),_0xa0feef(this[_0x4f0aaf(0xb7)],[[m]]);}[_0x5cfc95(0xc5)](){var _0x69f367=_0x5cfc95;_0xa0feef(this[_0x69f367(0xb7)],[[b]]);}};Z(O,_0x5cfc95(0xf2),_0x1e4c9b[_0x5cfc95(0xd3)]),Z(O,_0x5cfc95(0x119),Be),O=ze([_0x1bf51c(_0x1c7c6f),F(0x1,_0x507b16(_0x3dd6f6)),F(0x2,_0x4d3841)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,x as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x86e20f=_0x1a7a;(function(_0x4d487f,_0x7da61b){var _0x1d9df6=_0x1a7a,_0x4c46c9=_0x4d487f();while(!![]){try{var _0x158e74=parseInt(_0x1d9df6(0x11c))/0x1*(-parseInt(_0x1d9df6(0x12a))/0x2)+parseInt(_0x1d9df6(0xf8))/0x3*(-parseInt(_0x1d9df6(0xe4))/0x4)+parseInt(_0x1d9df6(0x94))/0x5*(-parseInt(_0x1d9df6(0xe2))/0x6)+-parseInt(_0x1d9df6(0x9d))/0x7+-parseInt(_0x1d9df6(0x122))/0x8+-parseInt(_0x1d9df6(0x83))/0x9+-parseInt(_0x1d9df6(0x8f))/0xa*(-parseInt(_0x1d9df6(0xdb))/0xb);if(_0x158e74===_0x7da61b)break;else _0x4c46c9['push'](_0x4c46c9['shift']());}catch(_0x4aae6d){_0x4c46c9['push'](_0x4c46c9['shift']());}}}(_0xe19a,0x664c4));var K=Object[_0x86e20f(0xcc)],q=(_0x456d74,_0x272982,_0x41afbe)=>_0x272982 in _0x456d74?K(_0x456d74,_0x272982,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41afbe}):_0x456d74[_0x272982]=_0x41afbe,d=(_0x4edae9,_0x457ac7,_0x35a5c5)=>q(_0x4edae9,typeof _0x457ac7!=_0x86e20f(0xc5)?_0x457ac7+'':_0x457ac7,_0x35a5c5);import{CollaborationSessionService as _0x2c82a7,SessionStatus as _0x3118a2,UniverCollaborationClientPlugin as _0x46e810}from'@univerjs-pro/collaboration-client';import{Disposable as _0x26c534,toDisposable as _0x4dab8a,Inject as _0x4a06c1,IUniverInstanceService as _0x2a716e,Injector as _0x166128,IConfigService as _0x33fb0d,ICommandService as _0x4d2e6d,RxDisposable as _0x1c1304,UniverInstanceType as _0x3f10a8,DisposableCollection as _0x4fe870,CommandType as _0x574ce6,DependentOn as _0x485ccd,Plugin as _0x53f919,merge as _0x32c382,registerDependencies as _0x3299a8,mergeOverrideWithDependencies as _0x1f4dfd,touchDependencies as _0x481da4}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x408e8d,InsertSheetMutation as _0x1db464}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x17b8a5,SetScrollOperation as _0x14473f}from'@univerjs/sheets-ui';import{useDependency as _0x4a3efa,useObservable as _0xc8bb70,IUIPartsService as _0x5aab7e,BuiltInUIPart as _0x56d703,connectInjector as _0x34c847}from'@univerjs/ui';import{jsx as _0x24b9e5,jsxs as _0x484111,Fragment as _0x1da64c}from'react/jsx-runtime';import{Dropdown as _0x417c98,clsx as _0x342114,Button as _0x4fe2d0}from'@univerjs/design';import{forwardRef as _0x626e1f,useRef as _0xe4b184,createElement as _0x17a129,useState as _0x356244,useEffect as _0x420fc1}from'react';import{CollaborationEvent as _0x1213a4,parseProtocolChangeset as _0x37fba0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2812d3,Subject as _0x149bac}from'rxjs';import{takeUntil as _0x2f2eb9,throttleTime as _0x575203}from'rxjs/operators';const Oe=_0x86e20f(0xce),T={};class x extends _0x26c534{constructor(){var _0x26b300=_0x86e20f;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x26b300(0xa6),new Set());}[_0x86e20f(0x8d)](_0x3da5fd){var _0x293a6b=_0x86e20f;return this[_0x293a6b(0x12e)][_0x293a6b(0xb8)](_0x3da5fd),_0x4dab8a(()=>this['_sharedOperations'][_0x293a6b(0x129)](_0x3da5fd));}[_0x86e20f(0xd3)](_0x277113){var _0x3a42cc=_0x86e20f;return this['_reporters'][_0x3a42cc(0xb8)](_0x277113),_0x4dab8a(()=>this[_0x3a42cc(0xa6)][_0x3a42cc(0x129)](_0x277113));}[_0x86e20f(0xd6)](_0x18776c){var _0x3bd155=_0x86e20f;return this[_0x3bd155(0x12e)][_0x3bd155(0x87)](_0x18776c);}[_0x86e20f(0x10f)](_0x32b3f3){var _0x42975a=_0x86e20f;return Array[_0x42975a(0x104)](this[_0x42975a(0xa6)])[_0x42975a(0xc9)](_0x371e4a=>_0x371e4a(_0x32b3f3));}}var Ee=Object[_0x86e20f(0x9f)],Ce=(_0x1b2fee,_0x205cf3,_0x110bd2,_0x1034c8)=>{var _0x33e652=_0x86e20f;for(var _0x3aea92=_0x1034c8>0x1?void 0x0:_0x1034c8?Ee(_0x205cf3,_0x110bd2):_0x205cf3,_0x2f3997=_0x1b2fee[_0x33e652(0x110)]-0x1,_0x1cdcea;_0x2f3997>=0x0;_0x2f3997--)(_0x1cdcea=_0x1b2fee[_0x2f3997])&&(_0x3aea92=_0x1cdcea(_0x3aea92)||_0x3aea92);return _0x3aea92;},Ne=(_0x4ec554,_0x5e4de8)=>(_0x8ae875,_0x4afc69)=>_0x5e4de8(_0x8ae875,_0x4afc69,_0x4ec554);let m=class extends _0x26c534{constructor(_0x772af0){var _0x2c0545=_0x86e20f;super(),this[_0x2c0545(0xe7)]=_0x772af0,this[_0x2c0545(0x86)]();}[_0x86e20f(0x86)](){var _0x493fda=_0x86e20f;[_0x17b8a5['id'],_0x14473f['id'],_0x408e8d['id']][_0x493fda(0xb3)](_0x5f4d44=>{var _0x254d8a=_0x493fda;this[_0x254d8a(0xfc)](this['_liveShareService'][_0x254d8a(0x8d)](_0x5f4d44));});}};m=Ce([Ne(0x0,_0x4a06c1(x))],m);var c=function(){var _0x6e7de8=_0x86e20f;return c=Object[_0x6e7de8(0xae)]||function(_0x2a13bb){var _0x20bdfc=_0x6e7de8;for(var _0x5a4da4,_0xee3cd6=0x1,_0x5df9b6=arguments['length'];_0xee3cd6<_0x5df9b6;_0xee3cd6++){_0x5a4da4=arguments[_0xee3cd6];for(var _0x843ee9 in _0x5a4da4)Object['prototype'][_0x20bdfc(0xbe)][_0x20bdfc(0xd8)](_0x5a4da4,_0x843ee9)&&(_0x2a13bb[_0x843ee9]=_0x5a4da4[_0x843ee9]);}return _0x2a13bb;},c['apply'](this,arguments);},we=function(_0x1b95fd,_0x4a1d07){var _0x32aa0c=_0x86e20f,_0x51db57={};for(var _0x226b91 in _0x1b95fd)Object[_0x32aa0c(0xd5)][_0x32aa0c(0xbe)][_0x32aa0c(0xd8)](_0x1b95fd,_0x226b91)&&_0x4a1d07[_0x32aa0c(0xa2)](_0x226b91)<0x0&&(_0x51db57[_0x226b91]=_0x1b95fd[_0x226b91]);if(_0x1b95fd!=null&&typeof Object['getOwnPropertySymbols']==_0x32aa0c(0xcd)){for(var _0x1cfdf8=0x0,_0x226b91=Object['getOwnPropertySymbols'](_0x1b95fd);_0x1cfdf8<_0x226b91[_0x32aa0c(0x110)];_0x1cfdf8++)_0x4a1d07['indexOf'](_0x226b91[_0x1cfdf8])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x32aa0c(0xd8)](_0x1b95fd,_0x226b91[_0x1cfdf8])&&(_0x51db57[_0x226b91[_0x1cfdf8]]=_0x1b95fd[_0x226b91[_0x1cfdf8]]);}return _0x51db57;},W=_0x626e1f(function(_0xa5f075,_0x556728){var _0x13aca7=_0x86e20f,_0x3e56ae=_0xa5f075['icon'],_0x2d11f=_0xa5f075['id'],_0x348598=_0xa5f075[_0x13aca7(0x107)],_0x1e1623=_0xa5f075[_0x13aca7(0xba)],_0x25fb8b=we(_0xa5f075,[_0x13aca7(0x124),'id','className',_0x13aca7(0xba)]),_0x5b6624='univerjs-icon\x20univerjs-icon-'['concat'](_0x2d11f,'\x20')[_0x13aca7(0xbd)](_0x348598||'')[_0x13aca7(0xdc)](),_0x7b6cf7=_0xe4b184('_'[_0x13aca7(0xbd)](xe()));return Y(_0x3e56ae,''[_0x13aca7(0xbd)](_0x2d11f),{'defIds':_0x3e56ae[_0x13aca7(0x10c)],'idSuffix':_0x7b6cf7[_0x13aca7(0x118)]},c({'ref':_0x556728,'className':_0x5b6624},_0x25fb8b),_0x1e1623);});function Y(_0x4fd01b,_0x44b3d4,_0x2a7175,_0x21b8f9,_0x53ed61){var _0x54ff78=_0x86e20f;return _0x17a129(_0x4fd01b[_0x54ff78(0xdf)],c(c({'key':_0x44b3d4},De(_0x4fd01b,_0x2a7175,_0x53ed61)),_0x21b8f9),(Le(_0x4fd01b,_0x2a7175)[_0x54ff78(0xf5)]||[])[_0x54ff78(0xc9)](function(_0x960f13,_0x28655f){var _0x53fa21=_0x54ff78;return Y(_0x960f13,''[_0x53fa21(0xbd)](_0x44b3d4,'-')[_0x53fa21(0xbd)](_0x4fd01b['tag'],'-')['concat'](_0x28655f),_0x2a7175,void 0x0,_0x53ed61);}));}function De(_0x2ebd2f,_0x35b9a6,_0x177d55){var _0xa4f6ec=_0x86e20f,_0x20f7bc=c({},_0x2ebd2f[_0xa4f6ec(0x120)]);_0x177d55!=null&&_0x177d55[_0xa4f6ec(0x121)]&&_0x20f7bc[_0xa4f6ec(0xa4)]==='colorChannel1'&&(_0x20f7bc[_0xa4f6ec(0xa4)]=_0x177d55['colorChannel1']),_0x2ebd2f[_0xa4f6ec(0xdf)]==='mask'&&_0x20f7bc['id']&&(_0x20f7bc['id']=_0x20f7bc['id']+_0x35b9a6[_0xa4f6ec(0x93)]),Object[_0xa4f6ec(0xcb)](_0x20f7bc)[_0xa4f6ec(0xb3)](function(_0x52af14){var _0x835289=_0xa4f6ec,_0x4aabe8=_0x52af14[0x0],_0x8bc0a1=_0x52af14[0x1];_0x4aabe8===_0x835289(0x9b)&&typeof _0x8bc0a1==_0x835289(0xd1)&&(_0x20f7bc[_0x4aabe8]=_0x8bc0a1[_0x835289(0x106)](/url\(#(.*)\)/,_0x835289(0x10e)[_0x835289(0xbd)](_0x35b9a6[_0x835289(0x93)],')')));});var _0x51715b=_0x35b9a6[_0xa4f6ec(0x10c)];return!_0x51715b||_0x51715b[_0xa4f6ec(0x110)]===0x0||(_0x2ebd2f[_0xa4f6ec(0xdf)]==='use'&&_0x20f7bc[_0xa4f6ec(0x95)]&&(_0x20f7bc[_0xa4f6ec(0x95)]=_0x20f7bc['xlink:href']+_0x35b9a6['idSuffix']),Object['entries'](_0x20f7bc)['forEach'](function(_0xcee146){var _0x554e32=_0xa4f6ec,_0x6946df=_0xcee146[0x0],_0x391a23=_0xcee146[0x1];typeof _0x391a23==_0x554e32(0xd1)&&(_0x20f7bc[_0x6946df]=_0x391a23[_0x554e32(0x106)](/url\(#(.*)\)/,_0x554e32(0x10e)[_0x554e32(0xbd)](_0x35b9a6[_0x554e32(0x93)],')')));})),_0x20f7bc;}function Le(_0x48678c,_0xe391a9){var _0x430b1d=_0x86e20f,_0x1383db,_0x1775b7=_0xe391a9[_0x430b1d(0x10c)];return!_0x1775b7||_0x1775b7[_0x430b1d(0x110)]===0x0?_0x48678c:_0x48678c[_0x430b1d(0xdf)]===_0x430b1d(0xca)&&(!((_0x1383db=_0x48678c[_0x430b1d(0xf5)])===null||_0x1383db===void 0x0)&&_0x1383db['length'])?c(c({},_0x48678c),{'children':_0x48678c[_0x430b1d(0xf5)]['map'](function(_0x159656){var _0x5538ec=_0x430b1d;return typeof _0x159656[_0x5538ec(0x120)]['id']=='string'&&_0x1775b7&&_0x1775b7[_0x5538ec(0xa2)](_0x159656[_0x5538ec(0x120)]['id'])>-0x1?c(c({},_0x159656),{'attrs':c(c({},_0x159656[_0x5538ec(0x120)]),{'id':_0x159656[_0x5538ec(0x120)]['id']+_0xe391a9['idSuffix']})}):_0x159656;})}):_0x48678c;}function xe(){var _0x536dae=_0x86e20f;return Math['random']()[_0x536dae(0xff)](0x24)[_0x536dae(0xad)](0x2,0x8);}W['displayName']=_0x86e20f(0xc7);var ye={'tag':'svg','attrs':{'fill':_0x86e20f(0xe3),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':_0x86e20f(0xb0),'attrs':{'fill':'currentColor','d':_0x86e20f(0x11e)}},{'tag':_0x86e20f(0xb0),'attrs':{'fill':'currentColor','d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x86e20f(0xa9),'clipRule':_0x86e20f(0xa9)}}]},z=_0x626e1f(function(_0x56cc06,_0x1e5b7d){var _0x2139b2=_0x86e20f;return _0x17a129(W,Object[_0x2139b2(0xae)]({},_0x56cc06,{'id':_0x2139b2(0x97),'ref':_0x1e5b7d,'icon':ye}));});z[_0x86e20f(0xfb)]=_0x86e20f(0xf9);var Re=Object[_0x86e20f(0x9f)],B=(_0x405ce3,_0x5bdac6,_0x11f610,_0x2546b9)=>{var _0xd2af50=_0x86e20f;for(var _0x556575=_0x2546b9>0x1?void 0x0:_0x2546b9?Re(_0x5bdac6,_0x11f610):_0x5bdac6,_0x3fac0e=_0x405ce3[_0xd2af50(0x110)]-0x1,_0x5a3bab;_0x3fac0e>=0x0;_0x3fac0e--)(_0x5a3bab=_0x405ce3[_0x3fac0e])&&(_0x556575=_0x5a3bab(_0x556575)||_0x556575);return _0x556575;},f=(_0x52d25f,_0x1f3421)=>(_0x2d35ee,_0x45cf94)=>_0x1f3421(_0x2d35ee,_0x45cf94,_0x52d25f);let I=class extends _0x1c1304{constructor(_0x40fab1,_0x56d394,_0x1482a6){var _0x13eff4=_0x86e20f;super(),d(this,_0x13eff4(0xb2),new Map()),(this['_univerInstanceService']=_0x40fab1,this[_0x13eff4(0x8a)]=_0x56d394,this[_0x13eff4(0x127)]=_0x1482a6,this[_0x13eff4(0x86)]());}async['getLiveShareCoordinator'](_0x4e753e){var _0x42abd8=_0x86e20f;return this[_0x42abd8(0xb2)]['has'](_0x4e753e)||await this[_0x42abd8(0xdd)](_0x4e753e),this[_0x42abd8(0xb2)][_0x42abd8(0xa0)](_0x4e753e);}[_0x86e20f(0x86)](){var _0x532405=_0x86e20f;this[_0x532405(0xac)][_0x532405(0x116)](_0x3f10a8[_0x532405(0xab)])[_0x532405(0xd9)](_0x2f2eb9(this['dispose$']))[_0x532405(0xa7)](async _0xf25864=>{var _0x501067=_0x532405;const _0x4db5cd=_0xf25864[_0x501067(0x12c)]();this[_0x501067(0xb2)][_0x501067(0x87)](_0x4db5cd)||this[_0x501067(0xdd)](_0x4db5cd);}),this[_0x532405(0xac)][_0x532405(0x119)](_0x3f10a8['UNIVER_SHEET'])[_0x532405(0xd9)](_0x2f2eb9(this[_0x532405(0xe0)]))['subscribe'](_0x11804e=>{var _0x5142a1=_0x532405;const _0x19ca24=_0x11804e['getUnitId'](),_0x2d339b=this[_0x5142a1(0xb2)][_0x5142a1(0xa0)](_0x19ca24);_0x2d339b==null||_0x2d339b[_0x5142a1(0x84)]();});}async[_0x86e20f(0xdd)](_0x453ab6){var _0x197f74=_0x86e20f;const _0x5c62b7=await this['_collabSessionService'][_0x197f74(0x11d)](_0x453ab6),_0x259e39=this[_0x197f74(0x8a)][_0x197f74(0x81)](w,_0x453ab6,_0x5c62b7);return _0x259e39[_0x197f74(0xc4)](),this[_0x197f74(0xb2)][_0x197f74(0xe6)](_0x453ab6,_0x259e39),_0x259e39;}};I=B([f(0x0,_0x2a716e),f(0x1,_0x4a06c1(_0x166128)),f(0x2,_0x4a06c1(_0x2c82a7))],I);var h=(_0x1b797b=>(_0x1b797b['OFFLINE']=_0x86e20f(0x9e),_0x1b797b[_0x86e20f(0x91)]=_0x86e20f(0x108),_0x1b797b['FOLLOWING']='following',_0x1b797b[_0x86e20f(0xb7)]=_0x86e20f(0x8b),_0x1b797b[_0x86e20f(0x89)]=_0x86e20f(0xf3),_0x1b797b))(h||{});const Pe=_0x86e20f(0xef),Ae=0xc8;let w=class extends _0x1c1304{constructor(_0x1f65aa,_0x4772ec,_0x2ebe72,_0x3b179f,_0x24c51b){var _0x45315a=_0x86e20f;super(),d(this,_0x45315a(0xaf),new _0x2812d3(_0x45315a(0x108))),d(this,_0x45315a(0xb6),this['_status$'][_0x45315a(0x105)]()),d(this,_0x45315a(0x86),!0x1),d(this,_0x45315a(0xf4),null),d(this,_0x45315a(0xc6),null),(this[_0x45315a(0xc3)]=_0x1f65aa,this['_collabSession']=_0x4772ec,this[_0x45315a(0x128)]=_0x2ebe72,this['_liveShareService']=_0x3b179f,this['_commandService']=_0x24c51b);}get[_0x86e20f(0x12b)](){var _0x30b090=_0x86e20f;return this[_0x30b090(0xaf)][_0x30b090(0xa8)]();}[_0x86e20f(0x84)](){var _0x1efa83=_0x86e20f,_0x1cfeb4;(_0x1cfeb4=this['_commandDisposable'])==null||_0x1cfeb4[_0x1efa83(0x84)](),this[_0x1efa83(0xaf)][_0x1efa83(0xd4)]('idle'),this[_0x1efa83(0xaf)]['complete']();}[_0x86e20f(0xc4)](){var _0x57e50e=_0x86e20f;this[_0x57e50e(0x86)]||(this[_0x57e50e(0x86)]=!0x0,this[_0x57e50e(0xaa)]['sessionStatus$'][_0x57e50e(0xd9)](_0x2f2eb9(this[_0x57e50e(0xe0)]))['subscribe'](_0x44d0cf=>{var _0x235d98=_0x57e50e;switch(_0x44d0cf){case _0x3118a2[_0x235d98(0x85)]:this[_0x235d98(0xcf)]();break;case _0x3118a2['ONLINE']:this['_handleOnline']();break;}}),this[_0x57e50e(0xaa)]['event$']['pipe'](_0x2f2eb9(this[_0x57e50e(0xe0)]))[_0x57e50e(0xa7)](_0x55d1e4=>{var _0x5ce985=_0x57e50e;const {eventID:_0x1d1457}=_0x55d1e4;switch(_0x1d1457){case _0x1213a4[_0x5ce985(0x10b)]:this[_0x5ce985(0x8e)](_0x55d1e4);break;case _0x1213a4[_0x5ce985(0xf0)]:this[_0x5ce985(0xa1)](_0x55d1e4);break;case _0x1213a4[_0x5ce985(0xf6)]:this['_handleTerminate']();break;case _0x1213a4[_0x5ce985(0x88)]:this[_0x5ce985(0xeb)](_0x55d1e4);break;}}));}[_0x86e20f(0xe1)](){var _0x2fb864=_0x86e20f;this[_0x2fb864(0xaa)][_0x2fb864(0xfa)]({'eventID':_0x1213a4[_0x2fb864(0xf1)],'data':{'unitID':this[_0x2fb864(0xc3)],'userID':this[_0x2fb864(0xaa)][_0x2fb864(0x102)]()}},this['_unitID']);}[_0x86e20f(0x123)](){var _0x436be6=_0x86e20f;this[_0x436be6(0x12b)]===_0x436be6(0xf3)&&(this[_0x436be6(0xaf)][_0x436be6(0xd4)](_0x436be6(0x108)),this[_0x436be6(0xaa)][_0x436be6(0xfa)]({'eventID':_0x1213a4[_0x436be6(0xf6)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x86e20f(0xec)](){var _0x5aeec2=_0x86e20f;this[_0x5aeec2(0x12b)]===_0x5aeec2(0x8b)&&(this[_0x5aeec2(0xaf)][_0x5aeec2(0xd4)](_0x5aeec2(0x8c)),this[_0x5aeec2(0x10a)]());}['stopFollowing'](){var _0x450a93=_0x86e20f;this[_0x450a93(0x12b)]===_0x450a93(0x8c)&&this[_0x450a93(0x80)]();}[_0x86e20f(0x8e)](_0x2952f8){var _0x1b88fa=_0x86e20f;const {presenter:_0x144728}=_0x2952f8[_0x1b88fa(0x114)],_0x552dd9=this[_0x1b88fa(0xaa)][_0x1b88fa(0x102)]();this[_0x1b88fa(0xc6)]=_0x144728,_0x144728===_0x552dd9?(this['_stopFollowing'](),this[_0x1b88fa(0x99)]()):this[_0x1b88fa(0x12b)]!=='not-following'&&(this[_0x1b88fa(0xb9)](),this[_0x1b88fa(0x10a)]());}[_0x86e20f(0x112)](){var _0xfe36ae=_0x86e20f;const _0x41c042={'eventID':_0x1213a4[_0xfe36ae(0xd0)]};this[_0xfe36ae(0xaa)][_0xfe36ae(0xfa)](_0x41c042,this[_0xfe36ae(0xc3)]);}[_0x86e20f(0xed)](){var _0x195278=_0x86e20f;this[_0x195278(0xc6)]=null,this[_0x195278(0x12b)]!==_0x195278(0xf3)&&this[_0x195278(0xde)]();}[_0x86e20f(0xeb)](_0x313dfb){var _0x142501=_0x86e20f;if(this['_status']===_0x142501(0x8c)&&this[_0x142501(0xc6)]===_0x313dfb[_0x142501(0x114)]['memberID']){const _0x3e7b44=_0x37fba0(_0x313dfb['data'])['mutations']['reverse']()[_0x142501(0x11a)](_0x439316=>_0x439316['id']===_0x1db464['id']);if(_0x3e7b44){const _0x110cda=_0x3e7b44[_0x142501(0xe9)][_0x142501(0x11b)],_0x4ea62b=_0x3e7b44[_0x142501(0xe9)][_0x142501(0x96)]['id'];setTimeout(()=>{var _0x426362=_0x142501;this[_0x426362(0x9c)][_0x426362(0x100)](_0x408e8d['id'],{'unitId':_0x110cda,'subUnitId':_0x4ea62b},{'fromCollab':!0x0});});}}}[_0x86e20f(0x99)](){var _0x16b288=_0x86e20f;this[_0x16b288(0xaf)]['next']('presenting');const _0x495fdb=new Map(),_0x2cdb8f=this['_commandDisposable']=new _0x4fe870();_0x2cdb8f['add'](_0x4dab8a(()=>{var _0x449d5d=_0x16b288;_0x495fdb['forEach'](_0x4ddcf1=>_0x4ddcf1[_0x449d5d(0x98)]()),_0x495fdb[_0x449d5d(0x109)]();})),_0x2cdb8f[_0x16b288(0xb8)](this[_0x16b288(0x9c)][_0x16b288(0xe5)](_0x108718=>{var _0x4ffaf1=_0x16b288,_0x3c843f;if(_0x108718[_0x4ffaf1(0x111)]!==_0x574ce6[_0x4ffaf1(0xb1)]||!this[_0x4ffaf1(0xe7)][_0x4ffaf1(0xd6)](_0x108718['id']))return;const {id:_0x123978}=_0x108718;let _0x16218c;_0x495fdb[_0x4ffaf1(0x87)](_0x123978)?_0x16218c=_0x495fdb[_0x4ffaf1(0xa0)](_0x123978):(_0x16218c=new _0x149bac(),_0x495fdb[_0x4ffaf1(0xe6)](_0x123978,_0x16218c),_0x16218c[_0x4ffaf1(0xd9)](_0x575203((_0x3c843f=this[_0x4ffaf1(0x128)]['getConfig'](Pe))!=null?_0x3c843f:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ffaf1(0xa7)](_0x39299c=>{var _0x1e8ecc=_0x4ffaf1;this[_0x1e8ecc(0xaa)]['send']({'eventID':_0x1213a4[_0x1e8ecc(0xf0)],'data':{'unitID':this[_0x1e8ecc(0xc3)],'operations':{[_0x39299c['id']]:{'id':_0x39299c['id'],'params':JSON[_0x1e8ecc(0x101)](_0x39299c[_0x1e8ecc(0xe9)])}}}},this[_0x1e8ecc(0xc3)]);})),_0x16218c[_0x4ffaf1(0xd4)](_0x108718);})),this[_0x16b288(0xe7)][_0x16b288(0x10f)](this[_0x16b288(0xc3)])[_0x16b288(0xb3)](_0x382793=>this[_0x16b288(0xaa)][_0x16b288(0xfa)]({'eventID':_0x1213a4[_0x16b288(0xf0)],'data':{'unitID':this[_0x16b288(0xc3)],'operations':{[_0x382793['id']]:{'id':_0x382793['id'],'params':JSON['stringify'](_0x382793[_0x16b288(0xe9)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x286199=_0x86e20f,_0x16b033;this['_status$'][_0x286199(0xd4)]('idle'),(_0x16b033=this[_0x286199(0xf4)])==null||_0x16b033[_0x286199(0x84)](),this[_0x286199(0xf4)]=null;}[_0x86e20f(0x10a)](){var _0x2657df=_0x86e20f,_0x461180;(_0x461180=this[_0x2657df(0xf4)])==null||_0x461180[_0x2657df(0x84)](),this[_0x2657df(0xaf)][_0x2657df(0xd4)](_0x2657df(0x8c));}[_0x86e20f(0xde)](){var _0x29436c=_0x86e20f,_0x4381cd;this['_status$'][_0x29436c(0xd4)](_0x29436c(0x108)),(_0x4381cd=this['_commandDisposable'])==null||_0x4381cd[_0x29436c(0x84)](),this[_0x29436c(0xf4)]=null;}[_0x86e20f(0x80)](){var _0x5b5d03=_0x86e20f,_0x5e1be3;this[_0x5b5d03(0xaf)][_0x5b5d03(0xd4)](_0x5b5d03(0x8b)),(_0x5e1be3=this[_0x5b5d03(0xf4)])==null||_0x5e1be3[_0x5b5d03(0x84)]();}[_0x86e20f(0xa1)](_0x5f79c9){var _0x32ec27=_0x86e20f;if([_0x32ec27(0xf3),_0x32ec27(0x8b),_0x32ec27(0x9e)]['includes'](this[_0x32ec27(0x12b)])||!_0x5f79c9['data'][_0x32ec27(0x92)]||_0x5f79c9[_0x32ec27(0x114)][_0x32ec27(0x92)]===this[_0x32ec27(0xaa)][_0x32ec27(0x102)]())return;this['_status']===_0x32ec27(0x108)&&this[_0x32ec27(0x10a)]();const _0x5cb58d=_0x5f79c9[_0x32ec27(0x114)]['operations'];Object[_0x32ec27(0xfe)](_0x5cb58d)[_0x32ec27(0xb3)](_0x538989=>{var _0x23e52e=_0x32ec27;this[_0x23e52e(0x9c)][_0x23e52e(0x100)](_0x538989['id'],_0x538989[_0x23e52e(0xe9)]?JSON[_0x23e52e(0x113)](_0x538989[_0x23e52e(0xe9)]):null,{'fromCollab':!0x0});});}[_0x86e20f(0xcf)](){var _0x54c26e=_0x86e20f,_0x5cc460;this[_0x54c26e(0xaf)]['next'](_0x54c26e(0x9e)),(_0x5cc460=this[_0x54c26e(0xf4)])==null||_0x5cc460[_0x54c26e(0x84)]();}[_0x86e20f(0xc0)](){var _0x3a5b6a=_0x86e20f;this[_0x3a5b6a(0xaf)][_0x3a5b6a(0xd4)](_0x3a5b6a(0x108)),this[_0x3a5b6a(0x112)]();}};w=B([f(0x2,_0x33fb0d),f(0x3,_0x4a06c1(x)),f(0x4,_0x4d2e6d)],w);function Te(){var _0x58bd73=_0x86e20f;const _0x2406c8=_0x4a3efa(I),_0x19a405=_0x4a3efa(_0x2a716e),_0x3e8595=_0xc8bb70(()=>_0x19a405[_0x58bd73(0xa3)](_0x3f10a8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x529a66,_0x2107a3]=_0x356244(null),[_0x9a0105,_0x488a00]=_0x356244(h[_0x58bd73(0x91)]),_0x1c8cba=_0xe4b184(null);return _0x420fc1(()=>(_0x3e8595&&_0x2406c8['getLiveShareCoordinator'](_0x3e8595[_0x58bd73(0x12c)]())['then'](_0x43ee52=>{var _0x22e92f=_0x58bd73;_0x2107a3(_0x43ee52),_0x1c8cba[_0x22e92f(0x118)]=_0x43ee52[_0x22e92f(0xb6)][_0x22e92f(0xa7)](_0x175d25=>{_0x488a00(_0x175d25);});}),()=>{var _0x582b1d=_0x58bd73,_0x2bbd44;(_0x2bbd44=_0x1c8cba[_0x582b1d(0x118)])==null||_0x2bbd44[_0x582b1d(0xd2)](),_0x1c8cba[_0x582b1d(0x118)]=null;}),[_0x3e8595,_0x2406c8]),_0x529a66?_0x24b9e5(_0x417c98,{'align':_0x58bd73(0x117),'disabled':_0x9a0105===h[_0x58bd73(0x85)],'className':_0x58bd73(0xda),'overlay':_0x24b9e5($e,{'status':_0x9a0105,'coordinator':_0x529a66}),'children':_0x24b9e5(_0x58bd73(0xb4),{'className':_0x342114(_0x58bd73(0xfd),{'univer-cursor-not-allowed':_0x9a0105===h[_0x58bd73(0x85)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x9a0105!==h[_0x58bd73(0x85)]}),'type':_0x58bd73(0xb4),'children':_0x24b9e5(z,{'className':_0x58bd73(0x125)})})}):null;}function _0x1a7a(_0x31e49b,_0x16e928){var _0xe19adc=_0xe19a();return _0x1a7a=function(_0x1a7a90,_0x56e980){_0x1a7a90=_0x1a7a90-0x80;var _0x52bf84=_0xe19adc[_0x1a7a90];return _0x52bf84;},_0x1a7a(_0x31e49b,_0x16e928);}function $e(_0x1ce44b){var _0xf54598=_0x86e20f;const {status:_0x35baf9,coordinator:_0x565093}=_0x1ce44b;switch(_0x35baf9){case h['IDLE']:return _0x24b9e5(Fe,{'coordinator':_0x565093});case h[_0xf54598(0xf2)]:return _0x24b9e5(He,{'coordinator':_0x565093});case h[_0xf54598(0xb7)]:return _0x24b9e5(je,{'coordinator':_0x565093});case h[_0xf54598(0x85)]:return _0x24b9e5(Ve,{});case h[_0xf54598(0x89)]:return _0x24b9e5(Ue,{'coordinator':_0x565093});default:return null;}}function Fe(_0x55b0f9){var _0x47c9a4=_0x86e20f;const {coordinator:_0x13be66}=_0x55b0f9;return _0x484111(_0x1da64c,{'children':[_0x24b9e5('div',{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x47c9a4(0xb5)}),_0x24b9e5(_0x4fe2d0,{'size':_0x47c9a4(0x115),'type':'default','onClick':()=>_0x13be66[_0x47c9a4(0xe1)](),'children':_0x47c9a4(0x10d)})]});}function He(_0x150e31){var _0x539035=_0x86e20f;const {coordinator:_0x344d38}=_0x150e31;return _0x484111(_0x1da64c,{'children':[_0x24b9e5(_0x539035(0x12d),{'className':_0x539035(0xbc),'children':_0x539035(0xea)}),_0x24b9e5(_0x4fe2d0,{'size':_0x539035(0x115),'type':'default','onClick':()=>_0x344d38[_0x539035(0xa5)](),'children':_0x539035(0xbb)})]});}function je(_0xb8e630){var _0x4ee1f7=_0x86e20f;const {coordinator:_0x5deca1}=_0xb8e630;return _0x484111(_0x1da64c,{'children':[_0x24b9e5(_0x4ee1f7(0x12d),{'className':_0x4ee1f7(0xbc),'children':_0x4ee1f7(0x82)}),_0x24b9e5(_0x4fe2d0,{'size':_0x4ee1f7(0x115),'type':_0x4ee1f7(0xc1),'onClick':()=>_0x5deca1[_0x4ee1f7(0xec)](),'children':_0x4ee1f7(0xbf)})]});}function Ue(_0x4b5080){var _0x3e5537=_0x86e20f;const {coordinator:_0x4b33ff}=_0x4b5080;return _0x484111(_0x1da64c,{'children':[_0x24b9e5(_0x3e5537(0x12d),{'className':_0x3e5537(0xbc),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x24b9e5(_0x4fe2d0,{'size':_0x3e5537(0x115),'type':_0x3e5537(0xc8),'onClick':()=>_0x4b33ff['stopPresenting'](),'children':_0x3e5537(0xd7)})]});}function Ve(){var _0x946073=_0x86e20f;return _0x24b9e5(_0x1da64c,{'children':_0x946073(0x90)});}var Me=Object[_0x86e20f(0x9f)],ke=(_0x2b8747,_0x273089,_0x8d4a95,_0x370420)=>{var _0x103300=_0x86e20f;for(var _0x349d58=_0x370420>0x1?void 0x0:_0x370420?Me(_0x273089,_0x8d4a95):_0x273089,_0x5c66a7=_0x2b8747[_0x103300(0x110)]-0x1,_0x139d0d;_0x5c66a7>=0x0;_0x5c66a7--)(_0x139d0d=_0x2b8747[_0x5c66a7])&&(_0x349d58=_0x139d0d(_0x349d58)||_0x349d58);return _0x349d58;},$=(_0x18b07d,_0x161e3b)=>(_0x1f4d8e,_0x49d4b4)=>_0x161e3b(_0x1f4d8e,_0x49d4b4,_0x18b07d);let b=class extends _0x26c534{constructor(_0x512e59,_0x1975ab){var _0x340236=_0x86e20f;super(),this[_0x340236(0x8a)]=_0x512e59,this['_uiPartsService']=_0x1975ab,this[_0x340236(0xee)]();}['_mountLiveShare'](){var _0x3468fc=_0x86e20f;this['disposeWithMe'](this['_uiPartsService'][_0x3468fc(0x126)](_0x56d703[_0x3468fc(0x103)],()=>_0x34c847(Te,this['_injector'])));}};b=ke([$(0x0,_0x4a06c1(_0x166128)),$(0x1,_0x5aab7e)],b);var Ge=Object['defineProperty'],We=Object['getOwnPropertyDescriptor'],Ye=(_0x39f290,_0x41cd1f,_0x96662)=>_0x41cd1f in _0x39f290?Ge(_0x39f290,_0x41cd1f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x96662}):_0x39f290[_0x41cd1f]=_0x96662,ze=(_0x938674,_0x13fdb7,_0x11e81f,_0x41561b)=>{var _0x27b64c=_0x86e20f;for(var _0x581502=_0x41561b>0x1?void 0x0:_0x41561b?We(_0x13fdb7,_0x11e81f):_0x13fdb7,_0x353026=_0x938674[_0x27b64c(0x110)]-0x1,_0x170ef2;_0x353026>=0x0;_0x353026--)(_0x170ef2=_0x938674[_0x353026])&&(_0x581502=_0x170ef2(_0x581502)||_0x581502);return _0x581502;},F=(_0x55542e,_0xda98f9)=>(_0x1fcde0,_0x492657)=>_0xda98f9(_0x1fcde0,_0x492657,_0x55542e),Z=(_0x2cf7dc,_0x9983a,_0x161db4)=>Ye(_0x2cf7dc,typeof _0x9983a!=_0x86e20f(0xc5)?_0x9983a+'':_0x9983a,_0x161db4);const Be=_0x86e20f(0xf7);function _0xe19a(){var _0x1faf43=['registerSharedOperation','_handleNewHost','3335740MonMxp','You\x27are\x20offline.','IDLE','presenter','idSuffix','2865fbtsUH','xlink:href','sheet','live-share-single','complete','_startPresenting','_config','mask','_commandService','901901SUpmuP','offline','getOwnPropertyDescriptor','get','_handleOperation','indexOf','getCurrentTypeOfUnit$','fill','stopFollowing','_reporters','subscribe','getValue','evenodd','_collabSession','UNIVER_SHEET','_univerInstanceService','substring','assign','_status$','path','OPERATION','_entities','forEach','button','Present\x20this\x20document','status$','NOT_FOLLOWING','add','_stopPresenting','extend','Stop\x20following','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','concat','hasOwnProperty','Start\x20following','_handleOnline','text','pluginName','_unitID','init','symbol','_presenter','UniverIcon','default','map','defs','entries','defineProperty','function','live-share.config','_handleOffline','LIVESHARE_FETCH_OPERATIONS','string','unsubscribe','registerInitialStateReporter','next','prototype','shouldShareOperation','Stop\x20presenting','call','pipe','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','77Lhxdmu','trim','_startLiveShareCoordinator','_beIdle','tag','dispose$','tryStartPresenting','3786eDIguG','none','100eiMnRH','onCommandExecuted','set','_liveShareService','onRendered','params','You\x27re\x20following\x20the\x20presenter','_handleNewChangeSets','startFollowing','_handleTerminate','_mountLiveShare','SAME_OPERATION_SHARE_INTERVAL','LIVESHARE_OPERATION','LIVESHARE_REQUEST_HOST','FOLLOWING','presenting','_commandDisposable','children','LIVESHARE_TERMINATE','UNIVER_LIVE_SHARE_PLUGIN','50487LWhZJm','LiveShareSingle','send','displayName','disposeWithMe','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','values','toString','executeCommand','stringify','getMemberID','HEADER_MENU','from','asObservable','replace','className','idle','clear','_startFollowing','LIVESHARE_NEW_HOST','defIds','Start','url(#$1','getInitialStates','length','type','_fetchOperations','parse','data','small','getTypeOfUnitAdded$','end','current','getTypeOfUnitDisposed$','find','unitId','33vckGgw','requireSession','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','override','attrs','colorChannel1','3502112lSmgbk','stopPresenting','icon','univer-size-4','registerComponent','_collabSessionService','_configService','delete','19802PCZmkF','_status','getUnitId','div','_sharedOperations','_stopFollowing','createInstance','You\x27re\x20not\x20following\x20the\x20presenter','2163402ocNifG','dispose','OFFLINE','_init','has','NEW_CHANGESETS','PRESENTING','_injector','not-following','following'];_0xe19a=function(){return _0x1faf43;};return _0xe19a();}let O=class extends _0x53f919{constructor(_0x63662a=T,_0x41360e,_0x33e415){var _0x26ec0c=_0x86e20f;super(),this[_0x26ec0c(0x9a)]=_0x63662a,this['_injector']=_0x41360e,this[_0x26ec0c(0x128)]=_0x33e415;const {..._0x44495f}=_0x32c382({},T,this[_0x26ec0c(0x9a)]);this[_0x26ec0c(0x128)]['setConfig'](Oe,_0x44495f);}['onStarting'](){var _0x46e4ea=_0x86e20f;_0x3299a8(this[_0x46e4ea(0x8a)],_0x1f4dfd([[x],[I],[m],[b]],this[_0x46e4ea(0x9a)][_0x46e4ea(0x11f)])),_0x481da4(this[_0x46e4ea(0x8a)],[[m]]);}[_0x86e20f(0xe8)](){_0x481da4(this['_injector'],[[b]]);}};Z(O,_0x86e20f(0x111),_0x3f10a8['UNIVER_UNKNOWN']),Z(O,_0x86e20f(0xc2),Be),O=ze([_0x485ccd(_0x46e810),F(0x1,_0x4a06c1(_0x166128)),F(0x2,_0x33fb0d)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,x as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x5cfc95=_0x3d36;(function(_0xb65619,_0x55d07d){var _0x842a22=_0x3d36,_0x39c600=_0xb65619();while(!![]){try{var _0x2acf7d=-parseInt(_0x842a22(0xa5))/0x1*(-parseInt(_0x842a22(0x93))/0x2)+parseInt(_0x842a22(0xff))/0x3*(-parseInt(_0x842a22(0x95))/0x4)+-parseInt(_0x842a22(0xdd))/0x5+parseInt(_0x842a22(0x96))/0x6*(-parseInt(_0x842a22(0x7e))/0x7)+parseInt(_0x842a22(0xab))/0x8*(-parseInt(_0x842a22(0xd2))/0x9)+parseInt(_0x842a22(0x11a))/0xa*(parseInt(_0x842a22(0x129))/0xb)+parseInt(_0x842a22(0xee))/0xc;if(_0x2acf7d===_0x55d07d)break;else _0x39c600['push'](_0x39c600['shift']());}catch(_0x260b9b){_0x39c600['push'](_0x39c600['shift']());}}}(_0x399e,0xbd172));var K=Object['defineProperty'],q=(_0xd19dfb,_0xb3d74a,_0x509480)=>_0xb3d74a in _0xd19dfb?K(_0xd19dfb,_0xb3d74a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x509480}):_0xd19dfb[_0xb3d74a]=_0x509480,d=(_0x448ebf,_0x890ea8,_0x28e5e6)=>q(_0x448ebf,typeof _0x890ea8!=_0x5cfc95(0xd4)?_0x890ea8+'':_0x890ea8,_0x28e5e6);import{CollaborationSessionService as _0xf183f8,SessionStatus as _0x48fa87,UniverCollaborationClientPlugin as _0x1c7c6f}from'@univerjs-pro/collaboration-client';import{Disposable as _0x22bb66,toDisposable as _0x20cb3e,Inject as _0x507b16,IUniverInstanceService as _0xaecb6b,Injector as _0x3dd6f6,IConfigService as _0x4d3841,ICommandService as _0x3ed16c,RxDisposable as _0x39dcfb,UniverInstanceType as _0x1e4c9b,DisposableCollection as _0x53802d,CommandType as _0x2a838f,DependentOn as _0x1bf51c,Plugin as _0x18a2a7,merge as _0x3e3f32,registerDependencies as _0x2871f4,mergeOverrideWithDependencies as _0x1ceb57,touchDependencies as _0xa0feef}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x4225c8,InsertSheetMutation as _0x52712c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x278807,SetScrollOperation as _0x56ddd9}from'@univerjs/sheets-ui';import{useDependency as _0x367990,useObservable as _0x2d1c71,IUIPartsService as _0x438b3e,BuiltInUIPart as _0x211e56,connectInjector as _0x5d3c9a}from'@univerjs/ui';import{jsx as _0x436c76,jsxs as _0x37bae7,Fragment as _0x474cd2}from'react/jsx-runtime';import{Dropdown as _0x2a1a9d,clsx as _0x1314ef,Button as _0x5f343d}from'@univerjs/design';import{forwardRef as _0x16fe87,useRef as _0x244fbc,createElement as _0x10bf49,useState as _0x3f0d8a,useEffect as _0x585ccc}from'react';import{CollaborationEvent as _0x18b3c3,parseProtocolChangeset as _0x5d8f81}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x291ebd,Subject as _0xefbb3d}from'rxjs';import{takeUntil as _0x346f0a,throttleTime as _0x3544b7}from'rxjs/operators';const Oe='live-share.config',T={};function _0x3d36(_0x287356,_0x3556ca){var _0x399e08=_0x399e();return _0x3d36=function(_0x3d360a,_0x51b9d4){_0x3d360a=_0x3d360a-0x7b;var _0x34d010=_0x399e08[_0x3d360a];return _0x34d010;},_0x3d36(_0x287356,_0x3556ca);}class x extends _0x22bb66{constructor(){var _0x4951fc=_0x5cfc95;super(...arguments),d(this,_0x4951fc(0x12b),new Set()),d(this,_0x4951fc(0x10e),new Set());}[_0x5cfc95(0x97)](_0x8a944a){var _0x297f3e=_0x5cfc95;return this[_0x297f3e(0x12b)][_0x297f3e(0xdb)](_0x8a944a),_0x20cb3e(()=>this[_0x297f3e(0x12b)][_0x297f3e(0xea)](_0x8a944a));}['registerInitialStateReporter'](_0x147b6e){var _0x285b65=_0x5cfc95;return this[_0x285b65(0x10e)]['add'](_0x147b6e),_0x20cb3e(()=>this[_0x285b65(0x10e)][_0x285b65(0xea)](_0x147b6e));}[_0x5cfc95(0x83)](_0x2d847d){var _0x2de743=_0x5cfc95;return this['_sharedOperations'][_0x2de743(0x9c)](_0x2d847d);}[_0x5cfc95(0xdf)](_0x221c91){var _0xe31a48=_0x5cfc95;return Array['from'](this[_0xe31a48(0x10e)])[_0xe31a48(0xa1)](_0x3b24ef=>_0x3b24ef(_0x221c91));}}var Ee=Object[_0x5cfc95(0x114)],Ce=(_0x38b397,_0x2fd7e5,_0x1efb5e,_0x423c71)=>{var _0x3a18fd=_0x5cfc95;for(var _0x29f66e=_0x423c71>0x1?void 0x0:_0x423c71?Ee(_0x2fd7e5,_0x1efb5e):_0x2fd7e5,_0x4357bd=_0x38b397[_0x3a18fd(0x12c)]-0x1,_0x244dd9;_0x4357bd>=0x0;_0x4357bd--)(_0x244dd9=_0x38b397[_0x4357bd])&&(_0x29f66e=_0x244dd9(_0x29f66e)||_0x29f66e);return _0x29f66e;},Ne=(_0x75f417,_0x3e03d5)=>(_0x521a2b,_0x4457be)=>_0x3e03d5(_0x521a2b,_0x4457be,_0x75f417);let m=class extends _0x22bb66{constructor(_0x285929){var _0x103e69=_0x5cfc95;super(),this[_0x103e69(0x88)]=_0x285929,this[_0x103e69(0x7f)]();}[_0x5cfc95(0x7f)](){var _0x46b9e4=_0x5cfc95;[_0x278807['id'],_0x56ddd9['id'],_0x4225c8['id']][_0x46b9e4(0xaf)](_0x415e9f=>{var _0x55c75e=_0x46b9e4;this['disposeWithMe'](this[_0x55c75e(0x88)][_0x55c75e(0x97)](_0x415e9f));});}};m=Ce([Ne(0x0,_0x507b16(x))],m);var c=function(){var _0x13c65e=_0x5cfc95;return c=Object[_0x13c65e(0xfd)]||function(_0x225de7){var _0x3b9ee1=_0x13c65e;for(var _0x357c59,_0x2b5945=0x1,_0x3cd4dd=arguments[_0x3b9ee1(0x12c)];_0x2b5945<_0x3cd4dd;_0x2b5945++){_0x357c59=arguments[_0x2b5945];for(var _0x2a2155 in _0x357c59)Object[_0x3b9ee1(0x98)][_0x3b9ee1(0x104)]['call'](_0x357c59,_0x2a2155)&&(_0x225de7[_0x2a2155]=_0x357c59[_0x2a2155]);}return _0x225de7;},c[_0x13c65e(0xb0)](this,arguments);},we=function(_0x31f868,_0x4f5db4){var _0x1f7e8e=_0x5cfc95,_0x49ab4a={};for(var _0x373bb1 in _0x31f868)Object[_0x1f7e8e(0x98)][_0x1f7e8e(0x104)][_0x1f7e8e(0xca)](_0x31f868,_0x373bb1)&&_0x4f5db4['indexOf'](_0x373bb1)<0x0&&(_0x49ab4a[_0x373bb1]=_0x31f868[_0x373bb1]);if(_0x31f868!=null&&typeof Object['getOwnPropertySymbols']==_0x1f7e8e(0x11b)){for(var _0x33ae5a=0x0,_0x373bb1=Object['getOwnPropertySymbols'](_0x31f868);_0x33ae5a<_0x373bb1[_0x1f7e8e(0x12c)];_0x33ae5a++)_0x4f5db4['indexOf'](_0x373bb1[_0x33ae5a])<0x0&&Object[_0x1f7e8e(0x98)]['propertyIsEnumerable'][_0x1f7e8e(0xca)](_0x31f868,_0x373bb1[_0x33ae5a])&&(_0x49ab4a[_0x373bb1[_0x33ae5a]]=_0x31f868[_0x373bb1[_0x33ae5a]]);}return _0x49ab4a;},W=_0x16fe87(function(_0x41e6a0,_0x5ae3da){var _0x1d38ab=_0x5cfc95,_0x3fc1c0=_0x41e6a0[_0x1d38ab(0xbd)],_0x13b654=_0x41e6a0['id'],_0x4193ba=_0x41e6a0[_0x1d38ab(0xe1)],_0x5c21d8=_0x41e6a0['extend'],_0xe9d2a4=we(_0x41e6a0,['icon','id',_0x1d38ab(0xe1),_0x1d38ab(0x90)]),_0x5ada56=_0x1d38ab(0xa4)[_0x1d38ab(0x8c)](_0x13b654,'\x20')['concat'](_0x4193ba||'')['trim'](),_0x257bec=_0x244fbc('_'['concat'](xe()));return Y(_0x3fc1c0,''[_0x1d38ab(0x8c)](_0x13b654),{'defIds':_0x3fc1c0[_0x1d38ab(0x120)],'idSuffix':_0x257bec['current']},c({'ref':_0x5ae3da,'className':_0x5ada56},_0xe9d2a4),_0x5c21d8);});function Y(_0x536838,_0x2e846f,_0x4a9fac,_0x3aa230,_0x1f3047){var _0x420fb0=_0x5cfc95;return _0x10bf49(_0x536838['tag'],c(c({'key':_0x2e846f},De(_0x536838,_0x4a9fac,_0x1f3047)),_0x3aa230),(Le(_0x536838,_0x4a9fac)[_0x420fb0(0x99)]||[])[_0x420fb0(0xa1)](function(_0x544df8,_0xb27543){var _0x488717=_0x420fb0;return Y(_0x544df8,''[_0x488717(0x8c)](_0x2e846f,'-')['concat'](_0x536838[_0x488717(0xf8)],'-')[_0x488717(0x8c)](_0xb27543),_0x4a9fac,void 0x0,_0x1f3047);}));}function De(_0x539224,_0x387761,_0x1bb266){var _0x5790bb=_0x5cfc95,_0x21edd4=c({},_0x539224[_0x5790bb(0x123)]);_0x1bb266!=null&&_0x1bb266[_0x5790bb(0x10c)]&&_0x21edd4['fill']===_0x5790bb(0x10c)&&(_0x21edd4[_0x5790bb(0x100)]=_0x1bb266[_0x5790bb(0x10c)]),_0x539224['tag']===_0x5790bb(0xb2)&&_0x21edd4['id']&&(_0x21edd4['id']=_0x21edd4['id']+_0x387761[_0x5790bb(0x8b)]),Object[_0x5790bb(0xa0)](_0x21edd4)['forEach'](function(_0x1b424b){var _0x264ae5=_0x5790bb,_0x22c754=_0x1b424b[0x0],_0x23df77=_0x1b424b[0x1];_0x22c754===_0x264ae5(0xb2)&&typeof _0x23df77==_0x264ae5(0x117)&&(_0x21edd4[_0x22c754]=_0x23df77[_0x264ae5(0xe5)](/url\(#(.*)\)/,_0x264ae5(0xf6)[_0x264ae5(0x8c)](_0x387761[_0x264ae5(0x8b)],')')));});var _0x25053d=_0x387761[_0x5790bb(0x120)];return!_0x25053d||_0x25053d[_0x5790bb(0x12c)]===0x0||(_0x539224['tag']===_0x5790bb(0x8d)&&_0x21edd4[_0x5790bb(0x126)]&&(_0x21edd4[_0x5790bb(0x126)]=_0x21edd4[_0x5790bb(0x126)]+_0x387761[_0x5790bb(0x8b)]),Object[_0x5790bb(0xa0)](_0x21edd4)['forEach'](function(_0x54222c){var _0x55d362=_0x5790bb,_0x836fc8=_0x54222c[0x0],_0x105d38=_0x54222c[0x1];typeof _0x105d38==_0x55d362(0x117)&&(_0x21edd4[_0x836fc8]=_0x105d38[_0x55d362(0xe5)](/url\(#(.*)\)/,_0x55d362(0xf6)[_0x55d362(0x8c)](_0x387761[_0x55d362(0x8b)],')')));})),_0x21edd4;}function Le(_0x4a4ee2,_0x42c956){var _0x43368e=_0x5cfc95,_0x53c418,_0x19d4c4=_0x42c956[_0x43368e(0x120)];return!_0x19d4c4||_0x19d4c4[_0x43368e(0x12c)]===0x0?_0x4a4ee2:_0x4a4ee2[_0x43368e(0xf8)]==='defs'&&(!((_0x53c418=_0x4a4ee2[_0x43368e(0x99)])===null||_0x53c418===void 0x0)&&_0x53c418[_0x43368e(0x12c)])?c(c({},_0x4a4ee2),{'children':_0x4a4ee2[_0x43368e(0x99)]['map'](function(_0x52750d){var _0x5ace10=_0x43368e;return typeof _0x52750d[_0x5ace10(0x123)]['id']=='string'&&_0x19d4c4&&_0x19d4c4['indexOf'](_0x52750d[_0x5ace10(0x123)]['id'])>-0x1?c(c({},_0x52750d),{'attrs':c(c({},_0x52750d[_0x5ace10(0x123)]),{'id':_0x52750d[_0x5ace10(0x123)]['id']+_0x42c956[_0x5ace10(0x8b)]})}):_0x52750d;})}):_0x4a4ee2;}function xe(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}W[_0x5cfc95(0x8e)]=_0x5cfc95(0x12f);function _0x399e(){var _0x6d6d4a=['_handleNewHost','defIds','sessionStatus$','tryStartPresenting','attrs','Present\x20this\x20document','_stopPresenting','xlink:href','SAME_OPERATION_SHARE_INTERVAL','NOT_FOLLOWING','11vSGrHJ','div','_sharedOperations','length','NEW_CHANGESETS','getTypeOfUnitDisposed$','UniverIcon','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','live-share-single','clear','7LCqOcc','_init','dispose$','presenter','HEADER_MENU','shouldShareOperation','getMemberID','get','text','_config','_liveShareService','getLiveShareCoordinator','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','idSuffix','concat','use','displayName','offline','extend','following','set','231016YzAIxs','UNIVER_SHEET','4QLoRSQ','5134314ZWnaVU','registerSharedOperation','prototype','children','current','_fetchOperations','has','You\x27re\x20not\x20following\x20the\x20presenter','stringify','OFFLINE','entries','map','_commandService','0\x200\x2016\x2016','univerjs-icon\x20univerjs-icon-','2nxZPIl','_handleOffline','_configService','sheet','parse','_mountLiveShare','4317928QTGrKL','_collabSessionService','executeCommand','getValue','forEach','apply','_status','mask','svg','_handleNewChangeSets','status$','complete','_injector','registerComponent','_startPresenting','defineProperty','getConfig','operations','icon','currentColor','IDLE','unsubscribe','_presenter','pipe','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','stopPresenting','onRendered','setConfig','PRESENTING','then','values','call','_univerInstanceService','data','LIVESHARE_REQUEST_HOST','init','You\x27re\x20presenting\x20the\x20document','_entities','send','9ZywnGA','UNIVER_UNKNOWN','symbol','_startLiveShareCoordinator','_handleOnline','evenodd','Start\x20following','requireSession','onCommandExecuted','add','startFollowing','483685ltwNAj','_handleOperation','getInitialStates','button','className','dispose','_status$','asObservable','replace','OPERATION','mutations','LIVESHARE_FETCH_OPERATIONS','Stop\x20presenting','delete','stopFollowing','getCurrentTypeOfUnit$','presenting','15039780djaTjm','params','idle','getUnitId','type','LIVESHARE_OPERATION','Stop\x20following','includes','url(#$1','memberID','tag','You\x27are\x20offline.','end','UNIVER_LIVE_SHARE_PLUGIN','_unitID','assign','You\x27re\x20following\x20the\x20presenter','1326291jeyrcS','fill','_beIdle','ONLINE','default','hasOwnProperty','LiveShareSingle','_commandDisposable','not-following','reverse','_stopFollowing','onStarting','subscribe','colorChannel1','LIVESHARE_TERMINATE','_reporters','_startFollowing','_uiPartsService','Start','_handleTerminate','FOLLOWING','getOwnPropertyDescriptor','createInstance','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','string','unitId','pluginName','12244770gfbIFw','function','next','_collabSession','small'];_0x399e=function(){return _0x6d6d4a;};return _0x399e();}var ye={'tag':_0x5cfc95(0xb3),'attrs':{'fill':'none','viewBox':_0x5cfc95(0xa3),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x5cfc95(0xc3)}},{'tag':'path','attrs':{'fill':_0x5cfc95(0xbe),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':'evenodd','clipRule':_0x5cfc95(0xd7)}}]},z=_0x16fe87(function(_0x582a5d,_0x354c45){var _0x16294a=_0x5cfc95;return _0x10bf49(W,Object[_0x16294a(0xfd)]({},_0x582a5d,{'id':_0x16294a(0x7c),'ref':_0x354c45,'icon':ye}));});z[_0x5cfc95(0x8e)]=_0x5cfc95(0x105);var Re=Object[_0x5cfc95(0x114)],B=(_0x52d03e,_0x489ed9,_0x1c608e,_0x2d6837)=>{var _0xdc6d9f=_0x5cfc95;for(var _0x319d3e=_0x2d6837>0x1?void 0x0:_0x2d6837?Re(_0x489ed9,_0x1c608e):_0x489ed9,_0x4377ae=_0x52d03e[_0xdc6d9f(0x12c)]-0x1,_0x4c6173;_0x4377ae>=0x0;_0x4377ae--)(_0x4c6173=_0x52d03e[_0x4377ae])&&(_0x319d3e=_0x4c6173(_0x319d3e)||_0x319d3e);return _0x319d3e;},f=(_0x47c6ff,_0x10092d)=>(_0x21e9e2,_0x9432ca)=>_0x10092d(_0x21e9e2,_0x9432ca,_0x47c6ff);let I=class extends _0x39dcfb{constructor(_0x31edf0,_0x32b960,_0x4b8508){var _0x4b6273=_0x5cfc95;super(),d(this,_0x4b6273(0xd0),new Map()),(this[_0x4b6273(0xcb)]=_0x31edf0,this['_injector']=_0x32b960,this[_0x4b6273(0xac)]=_0x4b8508,this[_0x4b6273(0x7f)]());}async[_0x5cfc95(0x89)](_0x2c8e29){var _0x29e348=_0x5cfc95;return this[_0x29e348(0xd0)]['has'](_0x2c8e29)||await this[_0x29e348(0xd5)](_0x2c8e29),this['_entities'][_0x29e348(0x85)](_0x2c8e29);}[_0x5cfc95(0x7f)](){var _0x57d3db=_0x5cfc95;this[_0x57d3db(0xcb)]['getTypeOfUnitAdded$'](_0x1e4c9b['UNIVER_SHEET'])[_0x57d3db(0xc2)](_0x346f0a(this[_0x57d3db(0x80)]))[_0x57d3db(0x10b)](async _0x5bb6f9=>{var _0x41b9e4=_0x57d3db;const _0x4ffcd5=_0x5bb6f9['getUnitId']();this[_0x41b9e4(0xd0)][_0x41b9e4(0x9c)](_0x4ffcd5)||this[_0x41b9e4(0xd5)](_0x4ffcd5);}),this[_0x57d3db(0xcb)][_0x57d3db(0x12e)](_0x1e4c9b[_0x57d3db(0x94)])[_0x57d3db(0xc2)](_0x346f0a(this['dispose$']))[_0x57d3db(0x10b)](_0x126279=>{var _0x3a6578=_0x57d3db;const _0x8dbabc=_0x126279[_0x3a6578(0xf1)](),_0x2da852=this[_0x3a6578(0xd0)][_0x3a6578(0x85)](_0x8dbabc);_0x2da852==null||_0x2da852['dispose']();});}async[_0x5cfc95(0xd5)](_0x5d2338){var _0x2aedaa=_0x5cfc95;const _0x301138=await this[_0x2aedaa(0xac)][_0x2aedaa(0xd9)](_0x5d2338),_0x4858a5=this[_0x2aedaa(0xb7)][_0x2aedaa(0x115)](w,_0x5d2338,_0x301138);return _0x4858a5[_0x2aedaa(0xce)](),this[_0x2aedaa(0xd0)]['set'](_0x5d2338,_0x4858a5),_0x4858a5;}};I=B([f(0x0,_0xaecb6b),f(0x1,_0x507b16(_0x3dd6f6)),f(0x2,_0x507b16(_0xf183f8))],I);var h=(_0x5601a0=>(_0x5601a0[_0x5cfc95(0x9f)]=_0x5cfc95(0x8f),_0x5601a0[_0x5cfc95(0xbf)]=_0x5cfc95(0xf0),_0x5601a0[_0x5cfc95(0x113)]=_0x5cfc95(0x91),_0x5601a0['NOT_FOLLOWING']='not-following',_0x5601a0[_0x5cfc95(0xc7)]='presenting',_0x5601a0))(h||{});const Pe=_0x5cfc95(0x127),Ae=0xc8;let w=class extends _0x39dcfb{constructor(_0x3d975a,_0x4866df,_0x4ade9d,_0x25b230,_0x69cf1f){var _0x55ea82=_0x5cfc95;super(),d(this,_0x55ea82(0xe3),new _0x291ebd(_0x55ea82(0xf0))),d(this,'status$',this['_status$'][_0x55ea82(0xe4)]()),d(this,_0x55ea82(0x7f),!0x1),d(this,_0x55ea82(0x106),null),d(this,_0x55ea82(0xc1),null),(this[_0x55ea82(0xfc)]=_0x3d975a,this[_0x55ea82(0x11d)]=_0x4866df,this['_configService']=_0x4ade9d,this[_0x55ea82(0x88)]=_0x25b230,this[_0x55ea82(0xa2)]=_0x69cf1f);}get[_0x5cfc95(0xb1)](){var _0x1f0ff2=_0x5cfc95;return this[_0x1f0ff2(0xe3)][_0x1f0ff2(0xae)]();}[_0x5cfc95(0xe2)](){var _0x4fb33c=_0x5cfc95,_0xe18103;(_0xe18103=this[_0x4fb33c(0x106)])==null||_0xe18103['dispose'](),this[_0x4fb33c(0xe3)][_0x4fb33c(0x11c)](_0x4fb33c(0xf0)),this[_0x4fb33c(0xe3)][_0x4fb33c(0xb6)]();}[_0x5cfc95(0xce)](){var _0x16ad8f=_0x5cfc95;this['_init']||(this[_0x16ad8f(0x7f)]=!0x0,this[_0x16ad8f(0x11d)][_0x16ad8f(0x121)][_0x16ad8f(0xc2)](_0x346f0a(this[_0x16ad8f(0x80)]))[_0x16ad8f(0x10b)](_0x549b25=>{var _0x38c887=_0x16ad8f;switch(_0x549b25){case _0x48fa87[_0x38c887(0x9f)]:this[_0x38c887(0xa6)]();break;case _0x48fa87[_0x38c887(0x102)]:this['_handleOnline']();break;}}),this[_0x16ad8f(0x11d)]['event$'][_0x16ad8f(0xc2)](_0x346f0a(this['dispose$']))[_0x16ad8f(0x10b)](_0x37f173=>{var _0x402030=_0x16ad8f;const {eventID:_0xa27e12}=_0x37f173;switch(_0xa27e12){case _0x18b3c3['LIVESHARE_NEW_HOST']:this[_0x402030(0x11f)](_0x37f173);break;case _0x18b3c3[_0x402030(0xf3)]:this[_0x402030(0xde)](_0x37f173);break;case _0x18b3c3[_0x402030(0x10d)]:this[_0x402030(0x112)]();break;case _0x18b3c3[_0x402030(0x12d)]:this[_0x402030(0xb4)](_0x37f173);break;}}));}['tryStartPresenting'](){var _0x45f39e=_0x5cfc95;this['_collabSession'][_0x45f39e(0xd1)]({'eventID':_0x18b3c3[_0x45f39e(0xcd)],'data':{'unitID':this[_0x45f39e(0xfc)],'userID':this[_0x45f39e(0x11d)][_0x45f39e(0x84)]()}},this['_unitID']);}[_0x5cfc95(0xc4)](){var _0x32be4b=_0x5cfc95;this['_status']===_0x32be4b(0xed)&&(this[_0x32be4b(0xe3)][_0x32be4b(0x11c)](_0x32be4b(0xf0)),this[_0x32be4b(0x11d)][_0x32be4b(0xd1)]({'eventID':_0x18b3c3[_0x32be4b(0x10d)],'data':{'unitID':this[_0x32be4b(0xfc)]}},this[_0x32be4b(0xfc)]));}[_0x5cfc95(0xdc)](){var _0x443287=_0x5cfc95;this[_0x443287(0xb1)]===_0x443287(0x107)&&(this[_0x443287(0xe3)]['next'](_0x443287(0x91)),this[_0x443287(0x10f)]());}[_0x5cfc95(0xeb)](){var _0x5f3cda=_0x5cfc95;this['_status']===_0x5f3cda(0x91)&&this[_0x5f3cda(0x109)]();}[_0x5cfc95(0x11f)](_0x1afba2){var _0x540e8e=_0x5cfc95;const {presenter:_0x3d4304}=_0x1afba2['data'],_0x2d3de7=this['_collabSession']['getMemberID']();this[_0x540e8e(0xc1)]=_0x3d4304,_0x3d4304===_0x2d3de7?(this[_0x540e8e(0x109)](),this[_0x540e8e(0xb9)]()):this[_0x540e8e(0xb1)]!==_0x540e8e(0x107)&&(this[_0x540e8e(0x125)](),this['_startFollowing']());}[_0x5cfc95(0x9b)](){var _0xfaa5c8=_0x5cfc95;const _0x2d4c4f={'eventID':_0x18b3c3[_0xfaa5c8(0xe8)]};this[_0xfaa5c8(0x11d)]['send'](_0x2d4c4f,this[_0xfaa5c8(0xfc)]);}[_0x5cfc95(0x112)](){var _0x37c5ec=_0x5cfc95;this[_0x37c5ec(0xc1)]=null,this['_status']!=='presenting'&&this[_0x37c5ec(0x101)]();}[_0x5cfc95(0xb4)](_0x2b5d08){var _0x47b590=_0x5cfc95;if(this[_0x47b590(0xb1)]===_0x47b590(0x91)&&this[_0x47b590(0xc1)]===_0x2b5d08[_0x47b590(0xcc)][_0x47b590(0xf7)]){const _0x12c038=_0x5d8f81(_0x2b5d08[_0x47b590(0xcc)])[_0x47b590(0xe7)][_0x47b590(0x108)]()['find'](_0x2073cd=>_0x2073cd['id']===_0x52712c['id']);if(_0x12c038){const _0x4a72c1=_0x12c038[_0x47b590(0xef)][_0x47b590(0x118)],_0x378757=_0x12c038[_0x47b590(0xef)][_0x47b590(0xa8)]['id'];setTimeout(()=>{var _0x2a0a81=_0x47b590;this[_0x2a0a81(0xa2)]['executeCommand'](_0x4225c8['id'],{'unitId':_0x4a72c1,'subUnitId':_0x378757},{'fromCollab':!0x0});});}}}[_0x5cfc95(0xb9)](){var _0x37ab7c=_0x5cfc95;this[_0x37ab7c(0xe3)][_0x37ab7c(0x11c)](_0x37ab7c(0xed));const _0x25f47b=new Map(),_0x59b1a4=this[_0x37ab7c(0x106)]=new _0x53802d();_0x59b1a4[_0x37ab7c(0xdb)](_0x20cb3e(()=>{var _0x514a48=_0x37ab7c;_0x25f47b[_0x514a48(0xaf)](_0x2c2ba3=>_0x2c2ba3['complete']()),_0x25f47b[_0x514a48(0x7d)]();})),_0x59b1a4['add'](this[_0x37ab7c(0xa2)][_0x37ab7c(0xda)](_0x56953f=>{var _0x4c31b3=_0x37ab7c,_0xc2f337;if(_0x56953f[_0x4c31b3(0xf2)]!==_0x2a838f[_0x4c31b3(0xe6)]||!this[_0x4c31b3(0x88)]['shouldShareOperation'](_0x56953f['id']))return;const {id:_0x58ae4c}=_0x56953f;let _0x280687;_0x25f47b[_0x4c31b3(0x9c)](_0x58ae4c)?_0x280687=_0x25f47b[_0x4c31b3(0x85)](_0x58ae4c):(_0x280687=new _0xefbb3d(),_0x25f47b[_0x4c31b3(0x92)](_0x58ae4c,_0x280687),_0x280687['pipe'](_0x3544b7((_0xc2f337=this['_configService'][_0x4c31b3(0xbb)](Pe))!=null?_0xc2f337:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4c31b3(0x10b)](_0x141f7d=>{var _0x23fb23=_0x4c31b3;this[_0x23fb23(0x11d)][_0x23fb23(0xd1)]({'eventID':_0x18b3c3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x23fb23(0xfc)],'operations':{[_0x141f7d['id']]:{'id':_0x141f7d['id'],'params':JSON[_0x23fb23(0x9e)](_0x141f7d[_0x23fb23(0xef)])}}}},this['_unitID']);})),_0x280687[_0x4c31b3(0x11c)](_0x56953f);})),this[_0x37ab7c(0x88)][_0x37ab7c(0xdf)](this[_0x37ab7c(0xfc)])[_0x37ab7c(0xaf)](_0x271a88=>this['_collabSession']['send']({'eventID':_0x18b3c3[_0x37ab7c(0xf3)],'data':{'unitID':this[_0x37ab7c(0xfc)],'operations':{[_0x271a88['id']]:{'id':_0x271a88['id'],'params':JSON['stringify'](_0x271a88[_0x37ab7c(0xef)])}}}},this[_0x37ab7c(0xfc)]));}[_0x5cfc95(0x125)](){var _0x4c17a0=_0x5cfc95,_0xfd354;this[_0x4c17a0(0xe3)][_0x4c17a0(0x11c)](_0x4c17a0(0xf0)),(_0xfd354=this[_0x4c17a0(0x106)])==null||_0xfd354[_0x4c17a0(0xe2)](),this['_commandDisposable']=null;}[_0x5cfc95(0x10f)](){var _0x481f81=_0x5cfc95,_0x317477;(_0x317477=this[_0x481f81(0x106)])==null||_0x317477[_0x481f81(0xe2)](),this[_0x481f81(0xe3)][_0x481f81(0x11c)]('following');}[_0x5cfc95(0x101)](){var _0x43b620=_0x5cfc95,_0x464b8c;this[_0x43b620(0xe3)][_0x43b620(0x11c)](_0x43b620(0xf0)),(_0x464b8c=this[_0x43b620(0x106)])==null||_0x464b8c[_0x43b620(0xe2)](),this['_commandDisposable']=null;}[_0x5cfc95(0x109)](){var _0x4c5c30=_0x5cfc95,_0x4cf7ba;this[_0x4c5c30(0xe3)]['next'](_0x4c5c30(0x107)),(_0x4cf7ba=this['_commandDisposable'])==null||_0x4cf7ba[_0x4c5c30(0xe2)]();}[_0x5cfc95(0xde)](_0x435f9d){var _0x2f3e47=_0x5cfc95;if(['presenting','not-following','offline'][_0x2f3e47(0xf5)](this[_0x2f3e47(0xb1)])||!_0x435f9d[_0x2f3e47(0xcc)][_0x2f3e47(0x81)]||_0x435f9d['data'][_0x2f3e47(0x81)]===this[_0x2f3e47(0x11d)]['getMemberID']())return;this[_0x2f3e47(0xb1)]===_0x2f3e47(0xf0)&&this[_0x2f3e47(0x10f)]();const _0x1d1b09=_0x435f9d[_0x2f3e47(0xcc)][_0x2f3e47(0xbc)];Object[_0x2f3e47(0xc9)](_0x1d1b09)[_0x2f3e47(0xaf)](_0x5d2857=>{var _0x35ac5d=_0x2f3e47;this['_commandService'][_0x35ac5d(0xad)](_0x5d2857['id'],_0x5d2857[_0x35ac5d(0xef)]?JSON[_0x35ac5d(0xa9)](_0x5d2857[_0x35ac5d(0xef)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x302db8=_0x5cfc95,_0x56790e;this['_status$'][_0x302db8(0x11c)](_0x302db8(0x8f)),(_0x56790e=this['_commandDisposable'])==null||_0x56790e[_0x302db8(0xe2)]();}[_0x5cfc95(0xd6)](){var _0x39bc87=_0x5cfc95;this['_status$'][_0x39bc87(0x11c)](_0x39bc87(0xf0)),this[_0x39bc87(0x9b)]();}};w=B([f(0x2,_0x4d3841),f(0x3,_0x507b16(x)),f(0x4,_0x3ed16c)],w);function Te(){var _0x57ca3c=_0x5cfc95;const _0x2522a0=_0x367990(I),_0x401eb4=_0x367990(_0xaecb6b),_0x33a271=_0x2d1c71(()=>_0x401eb4[_0x57ca3c(0xec)](_0x1e4c9b['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5a2e7d,_0x369639]=_0x3f0d8a(null),[_0x5370c7,_0x4ac531]=_0x3f0d8a(h[_0x57ca3c(0xbf)]),_0x5a4fc7=_0x244fbc(null);return _0x585ccc(()=>(_0x33a271&&_0x2522a0[_0x57ca3c(0x89)](_0x33a271[_0x57ca3c(0xf1)]())[_0x57ca3c(0xc8)](_0x251a95=>{var _0xcb3182=_0x57ca3c;_0x369639(_0x251a95),_0x5a4fc7['current']=_0x251a95[_0xcb3182(0xb5)][_0xcb3182(0x10b)](_0x4c516b=>{_0x4ac531(_0x4c516b);});}),()=>{var _0x9f9e17=_0x57ca3c,_0x248e1e;(_0x248e1e=_0x5a4fc7[_0x9f9e17(0x9a)])==null||_0x248e1e[_0x9f9e17(0xc0)](),_0x5a4fc7[_0x9f9e17(0x9a)]=null;}),[_0x33a271,_0x2522a0]),_0x5a2e7d?_0x436c76(_0x2a1a9d,{'align':_0x57ca3c(0xfa),'disabled':_0x5370c7===h[_0x57ca3c(0x9f)],'className':_0x57ca3c(0x8a),'overlay':_0x436c76($e,{'status':_0x5370c7,'coordinator':_0x5a2e7d}),'children':_0x436c76(_0x57ca3c(0xe0),{'className':_0x1314ef(_0x57ca3c(0x7b),{'univer-cursor-not-allowed':_0x5370c7===h[_0x57ca3c(0x9f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5370c7!==h[_0x57ca3c(0x9f)]}),'type':'button','children':_0x436c76(z,{'className':'univer-size-4'})})}):null;}function $e(_0x13fcea){var _0x1ee49d=_0x5cfc95;const {status:_0x3fdd4d,coordinator:_0xb9ab96}=_0x13fcea;switch(_0x3fdd4d){case h[_0x1ee49d(0xbf)]:return _0x436c76(Fe,{'coordinator':_0xb9ab96});case h[_0x1ee49d(0x113)]:return _0x436c76(He,{'coordinator':_0xb9ab96});case h[_0x1ee49d(0x128)]:return _0x436c76(je,{'coordinator':_0xb9ab96});case h[_0x1ee49d(0x9f)]:return _0x436c76(Ve,{});case h[_0x1ee49d(0xc7)]:return _0x436c76(Ue,{'coordinator':_0xb9ab96});default:return null;}}function Fe(_0x486061){var _0x35f43c=_0x5cfc95;const {coordinator:_0x2d0288}=_0x486061;return _0x37bae7(_0x474cd2,{'children':[_0x436c76(_0x35f43c(0x12a),{'className':_0x35f43c(0x116),'children':_0x35f43c(0x124)}),_0x436c76(_0x5f343d,{'size':_0x35f43c(0x11e),'type':_0x35f43c(0x103),'onClick':()=>_0x2d0288[_0x35f43c(0x122)](),'children':_0x35f43c(0x111)})]});}function He(_0x202ce4){var _0x70685d=_0x5cfc95;const {coordinator:_0x15a5c4}=_0x202ce4;return _0x37bae7(_0x474cd2,{'children':[_0x436c76(_0x70685d(0x12a),{'className':_0x70685d(0x116),'children':_0x70685d(0xfe)}),_0x436c76(_0x5f343d,{'size':'small','type':_0x70685d(0x103),'onClick':()=>_0x15a5c4[_0x70685d(0xeb)](),'children':_0x70685d(0xf4)})]});}function je(_0x4fa29d){var _0xb80279=_0x5cfc95;const {coordinator:_0x512643}=_0x4fa29d;return _0x37bae7(_0x474cd2,{'children':[_0x436c76(_0xb80279(0x12a),{'className':_0xb80279(0x116),'children':_0xb80279(0x9d)}),_0x436c76(_0x5f343d,{'size':_0xb80279(0x11e),'type':_0xb80279(0x86),'onClick':()=>_0x512643[_0xb80279(0xdc)](),'children':_0xb80279(0xd8)})]});}function Ue(_0x11e4c1){var _0x56ae1e=_0x5cfc95;const {coordinator:_0x487a2d}=_0x11e4c1;return _0x37bae7(_0x474cd2,{'children':[_0x436c76(_0x56ae1e(0x12a),{'className':_0x56ae1e(0x116),'children':_0x56ae1e(0xcf)}),_0x436c76(_0x5f343d,{'size':_0x56ae1e(0x11e),'type':_0x56ae1e(0x103),'onClick':()=>_0x487a2d[_0x56ae1e(0xc4)](),'children':_0x56ae1e(0xe9)})]});}function Ve(){var _0x4ae69d=_0x5cfc95;return _0x436c76(_0x474cd2,{'children':_0x4ae69d(0xf9)});}var Me=Object[_0x5cfc95(0x114)],ke=(_0x2bd8fb,_0x3e3558,_0x5be386,_0x3ed7cc)=>{var _0x23956c=_0x5cfc95;for(var _0x180ae1=_0x3ed7cc>0x1?void 0x0:_0x3ed7cc?Me(_0x3e3558,_0x5be386):_0x3e3558,_0x233b1c=_0x2bd8fb[_0x23956c(0x12c)]-0x1,_0x4b7f43;_0x233b1c>=0x0;_0x233b1c--)(_0x4b7f43=_0x2bd8fb[_0x233b1c])&&(_0x180ae1=_0x4b7f43(_0x180ae1)||_0x180ae1);return _0x180ae1;},$=(_0x14e714,_0x2f3a76)=>(_0x1d8e1e,_0x15c897)=>_0x2f3a76(_0x1d8e1e,_0x15c897,_0x14e714);let b=class extends _0x22bb66{constructor(_0x2f69c0,_0x3f6b6e){var _0x519b6e=_0x5cfc95;super(),this[_0x519b6e(0xb7)]=_0x2f69c0,this[_0x519b6e(0x110)]=_0x3f6b6e,this[_0x519b6e(0xaa)]();}['_mountLiveShare'](){var _0x3f1139=_0x5cfc95;this['disposeWithMe'](this[_0x3f1139(0x110)][_0x3f1139(0xb8)](_0x211e56[_0x3f1139(0x82)],()=>_0x5d3c9a(Te,this[_0x3f1139(0xb7)])));}};b=ke([$(0x0,_0x507b16(_0x3dd6f6)),$(0x1,_0x438b3e)],b);var Ge=Object[_0x5cfc95(0xba)],We=Object[_0x5cfc95(0x114)],Ye=(_0xc53720,_0x2ddad5,_0x18d15a)=>_0x2ddad5 in _0xc53720?Ge(_0xc53720,_0x2ddad5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18d15a}):_0xc53720[_0x2ddad5]=_0x18d15a,ze=(_0x108a8e,_0x41db7e,_0x509c1d,_0x2ae9e6)=>{var _0x5a4649=_0x5cfc95;for(var _0x5410c8=_0x2ae9e6>0x1?void 0x0:_0x2ae9e6?We(_0x41db7e,_0x509c1d):_0x41db7e,_0x818bd3=_0x108a8e[_0x5a4649(0x12c)]-0x1,_0xbe3bdb;_0x818bd3>=0x0;_0x818bd3--)(_0xbe3bdb=_0x108a8e[_0x818bd3])&&(_0x5410c8=_0xbe3bdb(_0x5410c8)||_0x5410c8);return _0x5410c8;},F=(_0x4a2f30,_0xc71df)=>(_0x20fabe,_0x5aed08)=>_0xc71df(_0x20fabe,_0x5aed08,_0x4a2f30),Z=(_0x14fc05,_0x59bc2f,_0x1c3c11)=>Ye(_0x14fc05,typeof _0x59bc2f!=_0x5cfc95(0xd4)?_0x59bc2f+'':_0x59bc2f,_0x1c3c11);const Be=_0x5cfc95(0xfb);let O=class extends _0x18a2a7{constructor(_0x3a63b6=T,_0x276f49,_0x5d01a2){var _0x4ee2d3=_0x5cfc95;super(),this[_0x4ee2d3(0x87)]=_0x3a63b6,this[_0x4ee2d3(0xb7)]=_0x276f49,this[_0x4ee2d3(0xa7)]=_0x5d01a2;const {..._0xcbfb0d}=_0x3e3f32({},T,this['_config']);this[_0x4ee2d3(0xa7)][_0x4ee2d3(0xc6)](Oe,_0xcbfb0d);}[_0x5cfc95(0x10a)](){var _0x4f0aaf=_0x5cfc95;_0x2871f4(this[_0x4f0aaf(0xb7)],_0x1ceb57([[x],[I],[m],[b]],this[_0x4f0aaf(0x87)]['override'])),_0xa0feef(this[_0x4f0aaf(0xb7)],[[m]]);}[_0x5cfc95(0xc5)](){var _0x69f367=_0x5cfc95;_0xa0feef(this[_0x69f367(0xb7)],[[b]]);}};Z(O,_0x5cfc95(0xf2),_0x1e4c9b[_0x5cfc95(0xd3)]),Z(O,_0x5cfc95(0x119),Be),O=ze([_0x1bf51c(_0x1c7c6f),F(0x1,_0x507b16(_0x3dd6f6)),F(0x2,_0x4d3841)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,x as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1e1d(){var _0x977edf=['LIVESHARE_FETCH_OPERATIONS','subscribe','assign','children','defs','_startLiveShareCoordinator','touchDependencies','length','trim','defineProperty','_handleNewChangeSets','requireSession','Disposable','random','type','LiveShareService','displayName','Fragment','LiveShareStatus','registerInitialStateReporter','Stop\x20presenting','getTypeOfUnitAdded$','getMemberID','univerjs-icon\x20univerjs-icon-','_status$','stopPresenting','next','toDisposable','_startPresenting','univer-size-4','path','You\x27re\x20presenting\x20the\x20document','IUniverInstanceService','useRef','391516RlbTqa','1em','_liveShareService','sheet','_commandService','currentColor','idle','Stop\x20following','_fetchOperations','_handleNewHost','LiveShareCoordinator','icon','DesktopLiveShareController','40533iPHDsD','Plugin','_sharedOperations','useEffect','Inject','presenter','extend','You\x27are\x20offline.','defIds','apply','_configService','UniverCollaborationClientPlugin','getTypeOfUnitDisposed$','_handleOperation','takeUntil','colorChannel1','3617001FjjhoN','toStringTag','22806910KMJDeM','_status','@univerjs/sheets-ui','LIVESHARE_TERMINATE','find','_reporters','unitId','@univerjs-pro/collaboration','PRESENTING','DependentOn','LiveShare','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','getConfig','propertyIsEnumerable','HEADER_MENU','not-following','getCurrentTypeOfUnit$','@univerjs/ui','then','string','UniverSheets','SAME_OPERATION_SHARE_INTERVAL','jsx','hasOwnProperty','forwardRef','getLiveShareCoordinator','registerComponent','Present\x20this\x20document','pluginName','0\x200\x2016\x2016','send','getOwnPropertyDescriptor','Button','CollaborationSessionService','jsxs','useDependency','UniverProCollaborationClient','override','_uiPartsService','_presenter','rxjs/operators','init','tryStartPresenting','use','React','following','createInstance','getValue','dispose','prototype','values','LIVESHARE_REQUEST_HOST','_univerInstanceService','CollaborationEvent','UniverSheetsUi','evenodd','getUnitId','merge','registerSharedOperation','UniverProCollaboration','set','text','live-share-single','_unitID','includes','stopFollowing','SetWorksheetActiveOperation','startFollowing','useObservable','toString','_mountLiveShare','operations','disposeWithMe','params','UniverIcon','CommandType','concat','tag','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','UniverDesign','data','forEach','_collabSession','@univerjs/design','UniverLiveSharePlugin','pipe','get','react','_beIdle','replace','amd','SetScrollOperation','sessionStatus$','NOT_FOLLOWING','@univerjs-pro/collaboration-client','add','getInitialStates','_handleOffline','shouldShareOperation','entries','substring','UniverInstanceType','executeCommand','_collabSessionService','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','Subject','fill','Start\x20following','NEW_CHANGESETS','ICommandService','IUIPartsService','@univerjs/core','indexOf','throttleTime','_handleOnline','FOLLOWING','_stopFollowing','OFFLINE','url(#$1','mask','ONLINE','UNIVER_SHEET','parseProtocolChangeset','@univerjs/sheets','delete','mutations','LIVESHARE_NEW_HOST','UniverUi','button','RxDisposable','Dropdown','complete','react/jsx-runtime','614410hJCFVA','_stopPresenting','_handleTerminate','current','LiveShareController','_entities','5BGXsbH','xlink:href','function','Start','getOwnPropertySymbols','_injector','from','event$','mergeOverrideWithDependencies','rxjs','has','IConfigService','parse','DisposableCollection','_commandDisposable','object','div','end','7115816aELtWl','OPERATION','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','_config','symbol','small','UNIVER_LIVE_SHARE_PLUGIN','stringify','Injector','IDLE','useState','_startFollowing','default','createElement','setConfig','call','presenting','142GMcgUn','onStarting','133ZQmgjo','offline','map','BehaviorSubject','exports','className','clsx','connectInjector','16410lWaqvy','dispose$','_init','idSuffix','live-share.config'];_0x1e1d=function(){return _0x977edf;};return _0x1e1d();}function _0x2bf3(_0x2ec496,_0x2b8520){var _0x1e1dee=_0x1e1d();return _0x2bf3=function(_0x2bf393,_0x367623){_0x2bf393=_0x2bf393-0xe4;var _0x29c45e=_0x1e1dee[_0x2bf393];return _0x29c45e;},_0x2bf3(_0x2ec496,_0x2b8520);}(function(_0x6ccf6e,_0x346a5a){var _0x4d866f=_0x2bf3,_0x8c9c1d=_0x6ccf6e();while(!![]){try{var _0x32aa77=parseInt(_0x4d866f(0x11e))/0x1+parseInt(_0x4d866f(0x147))/0x2*(-parseInt(_0x4d866f(0x185))/0x3)+-parseInt(_0x4d866f(0x178))/0x4*(parseInt(_0x4d866f(0x124))/0x5)+-parseInt(_0x4d866f(0x151))/0x6*(parseInt(_0x4d866f(0x149))/0x7)+-parseInt(_0x4d866f(0x136))/0x8+-parseInt(_0x4d866f(0x195))/0x9+parseInt(_0x4d866f(0x197))/0xa;if(_0x32aa77===_0x346a5a)break;else _0x8c9c1d['push'](_0x8c9c1d['shift']());}catch(_0x17b4eb){_0x8c9c1d['push'](_0x8c9c1d['shift']());}}}(_0x1e1d,0x78c12),function(_0x2b4054,_0x45d3f5){var _0x188f56=_0x2bf3;typeof exports==_0x188f56(0x133)&&typeof module<'u'?_0x45d3f5(exports,require(_0x188f56(0xf7)),require(_0x188f56(0x108)),require(_0x188f56(0x114)),require(_0x188f56(0x199)),require(_0x188f56(0x1a8)),require(_0x188f56(0x11d)),require(_0x188f56(0xec)),require('react'),require(_0x188f56(0x19e)),require('rxjs'),require(_0x188f56(0x1bf))):typeof define==_0x188f56(0x126)&&define[_0x188f56(0xf3)]?define([_0x188f56(0x14d),_0x188f56(0xf7),'@univerjs/core',_0x188f56(0x114),_0x188f56(0x199),_0x188f56(0x1a8),_0x188f56(0x11d),'@univerjs/design',_0x188f56(0xf0),_0x188f56(0x19e),'rxjs',_0x188f56(0x1bf)],_0x45d3f5):(_0x2b4054=typeof globalThis<'u'?globalThis:_0x2b4054||self,_0x45d3f5(_0x2b4054['UniverProLiveShare']={},_0x2b4054[_0x188f56(0x1bb)],_0x2b4054['UniverCore'],_0x2b4054[_0x188f56(0x1ab)],_0x2b4054[_0x188f56(0x1cd)],_0x2b4054[_0x188f56(0x118)],_0x2b4054['React'],_0x2b4054[_0x188f56(0xe8)],_0x2b4054[_0x188f56(0x1c3)],_0x2b4054[_0x188f56(0x1d2)],_0x2b4054['rxjs'],_0x2b4054[_0x188f56(0x12d)]['operators']));}(this,function(_0x384946,_0x5e6e61,_0x8a81f,_0x156b92,_0x2ccbc9,_0x146422,_0x473f32,_0x4036a0,_0x10f328,_0x4a4762,_0x372c5e,_0x1f9610){'use strict';var _0x1cf38d=_0x2bf3;var _0x60db25=Object['defineProperty'],_0x320f80=(_0x2f6ea1,_0x83fa3f,_0x4ab048)=>_0x83fa3f in _0x2f6ea1?_0x60db25(_0x2f6ea1,_0x83fa3f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ab048}):_0x2f6ea1[_0x83fa3f]=_0x4ab048,_0x2bcbb9=(_0x457d6a,_0x3b40d3,_0x26866b)=>_0x320f80(_0x457d6a,typeof _0x3b40d3!=_0x1cf38d(0x13a)?_0x3b40d3+'':_0x3b40d3,_0x26866b);const _0x2daf21=_0x1cf38d(0x155),_0x1d9461={};class _0x3e0149 extends _0x8a81f[_0x1cf38d(0x162)]{constructor(){var _0x3f738f=_0x1cf38d;super(...arguments),_0x2bcbb9(this,_0x3f738f(0x187),new Set()),_0x2bcbb9(this,'_reporters',new Set());}[_0x1cf38d(0x1d1)](_0x1eb277){var _0x1c1e3c=_0x1cf38d;return this[_0x1c1e3c(0x187)][_0x1c1e3c(0xf8)](_0x1eb277),_0x8a81f[_0x1c1e3c(0x171)](()=>this['_sharedOperations'][_0x1c1e3c(0x115)](_0x1eb277));}[_0x1cf38d(0x169)](_0x25d550){var _0x16312c=_0x1cf38d;return this[_0x16312c(0x19c)][_0x16312c(0xf8)](_0x25d550),_0x8a81f[_0x16312c(0x171)](()=>this[_0x16312c(0x19c)][_0x16312c(0x115)](_0x25d550));}[_0x1cf38d(0xfb)](_0x18a873){var _0x4dc564=_0x1cf38d;return this[_0x4dc564(0x187)]['has'](_0x18a873);}['getInitialStates'](_0x381632){var _0x387ffb=_0x1cf38d;return Array[_0x387ffb(0x12a)](this[_0x387ffb(0x19c)])[_0x387ffb(0x14b)](_0x48efe1=>_0x48efe1(_0x381632));}}var _0x5560a6=Object[_0x1cf38d(0x1b6)],_0x2f68fa=(_0x478b59,_0x3f0197,_0x1d0fcb,_0x3aaa2c)=>{for(var _0x3b6822=_0x3aaa2c>0x1?void 0x0:_0x3aaa2c?_0x5560a6(_0x3f0197,_0x1d0fcb):_0x3f0197,_0xfb996c=_0x478b59['length']-0x1,_0xdde06c;_0xfb996c>=0x0;_0xfb996c--)(_0xdde06c=_0x478b59[_0xfb996c])&&(_0x3b6822=_0xdde06c(_0x3b6822)||_0x3b6822);return _0x3b6822;},_0x4f8873=(_0x191e4f,_0x3cf78f)=>(_0x5abfc4,_0x3ae633)=>_0x3cf78f(_0x5abfc4,_0x3ae633,_0x191e4f);let _0x1de6a8=class extends _0x8a81f['Disposable']{constructor(_0x4d66a1){var _0x51df3f=_0x1cf38d;super(),this['_liveShareService']=_0x4d66a1,this[_0x51df3f(0x153)]();}[_0x1cf38d(0x153)](){var _0x24776d=_0x1cf38d;[_0x2ccbc9['SetZoomRatioOperation']['id'],_0x2ccbc9[_0x24776d(0xf4)]['id'],_0x156b92[_0x24776d(0x1d9)]['id']][_0x24776d(0xea)](_0xd00378=>{var _0x1082ce=_0x24776d;this[_0x1082ce(0x1df)](this[_0x1082ce(0x17a)]['registerSharedOperation'](_0xd00378));});}};_0x1de6a8=_0x2f68fa([_0x4f8873(0x0,_0x8a81f['Inject'](_0x3e0149))],_0x1de6a8);var _0x276def=function(){var _0x1faa1e=_0x1cf38d;return _0x276def=Object[_0x1faa1e(0x158)]||function(_0x5276cf){var _0x3b39f5=_0x1faa1e;for(var _0x248d61,_0x55df29=0x1,_0xe82d9=arguments[_0x3b39f5(0x15d)];_0x55df29<_0xe82d9;_0x55df29++){_0x248d61=arguments[_0x55df29];for(var _0x29e58d in _0x248d61)Object[_0x3b39f5(0x1c8)][_0x3b39f5(0x1ae)]['call'](_0x248d61,_0x29e58d)&&(_0x5276cf[_0x29e58d]=_0x248d61[_0x29e58d]);}return _0x5276cf;},_0x276def[_0x1faa1e(0x18e)](this,arguments);},_0x23a40f=function(_0xf49ad9,_0x2b4433){var _0x5b1e8=_0x1cf38d,_0x4458c3={};for(var _0x2f75d7 in _0xf49ad9)Object[_0x5b1e8(0x1c8)][_0x5b1e8(0x1ae)]['call'](_0xf49ad9,_0x2f75d7)&&_0x2b4433['indexOf'](_0x2f75d7)<0x0&&(_0x4458c3[_0x2f75d7]=_0xf49ad9[_0x2f75d7]);if(_0xf49ad9!=null&&typeof Object[_0x5b1e8(0x128)]==_0x5b1e8(0x126)){for(var _0x2287d8=0x0,_0x2f75d7=Object['getOwnPropertySymbols'](_0xf49ad9);_0x2287d8<_0x2f75d7[_0x5b1e8(0x15d)];_0x2287d8++)_0x2b4433[_0x5b1e8(0x109)](_0x2f75d7[_0x2287d8])<0x0&&Object[_0x5b1e8(0x1c8)][_0x5b1e8(0x1a4)][_0x5b1e8(0x145)](_0xf49ad9,_0x2f75d7[_0x2287d8])&&(_0x4458c3[_0x2f75d7[_0x2287d8]]=_0xf49ad9[_0x2f75d7[_0x2287d8]]);}return _0x4458c3;},_0x38a9d1=_0x10f328[_0x1cf38d(0x1af)](function(_0x3317a3,_0x5113e6){var _0x19ffd0=_0x1cf38d,_0x468563=_0x3317a3[_0x19ffd0(0x183)],_0x9e649=_0x3317a3['id'],_0x14bb91=_0x3317a3[_0x19ffd0(0x14e)],_0xcfa623=_0x3317a3[_0x19ffd0(0x18b)],_0x3cee94=_0x23a40f(_0x3317a3,['icon','id',_0x19ffd0(0x14e),'extend']),_0x247828=_0x19ffd0(0x16d)[_0x19ffd0(0xe5)](_0x9e649,'\x20')[_0x19ffd0(0xe5)](_0x14bb91||'')[_0x19ffd0(0x15e)](),_0x14f92a=_0x10f328[_0x19ffd0(0x177)]('_'[_0x19ffd0(0xe5)](_0x101686()));return _0x3a58cd(_0x468563,''[_0x19ffd0(0xe5)](_0x9e649),{'defIds':_0x468563[_0x19ffd0(0x18d)],'idSuffix':_0x14f92a[_0x19ffd0(0x121)]},_0x276def({'ref':_0x5113e6,'className':_0x247828},_0x3cee94),_0xcfa623);});function _0x3a58cd(_0x5552ce,_0x5180c7,_0x3f68c9,_0x1277d0,_0x1be657){var _0x45fe88=_0x1cf38d;return _0x10f328[_0x45fe88(0x143)](_0x5552ce['tag'],_0x276def(_0x276def({'key':_0x5180c7},_0x105714(_0x5552ce,_0x3f68c9,_0x1be657)),_0x1277d0),(_0x3a2fc4(_0x5552ce,_0x3f68c9)[_0x45fe88(0x159)]||[])[_0x45fe88(0x14b)](function(_0x28f40c,_0x3b581f){var _0x41a548=_0x45fe88;return _0x3a58cd(_0x28f40c,''['concat'](_0x5180c7,'-')[_0x41a548(0xe5)](_0x5552ce[_0x41a548(0xe6)],'-')[_0x41a548(0xe5)](_0x3b581f),_0x3f68c9,void 0x0,_0x1be657);}));}function _0x105714(_0x2818c7,_0x5eba16,_0x287c43){var _0x3d129f=_0x1cf38d,_0x293d28=_0x276def({},_0x2818c7['attrs']);_0x287c43!=null&&_0x287c43[_0x3d129f(0x194)]&&_0x293d28[_0x3d129f(0x103)]==='colorChannel1'&&(_0x293d28[_0x3d129f(0x103)]=_0x287c43[_0x3d129f(0x194)]),_0x2818c7[_0x3d129f(0xe6)]===_0x3d129f(0x110)&&_0x293d28['id']&&(_0x293d28['id']=_0x293d28['id']+_0x5eba16[_0x3d129f(0x154)]),Object[_0x3d129f(0xfc)](_0x293d28)[_0x3d129f(0xea)](function(_0x316450){var _0xafce32=_0x3d129f,_0x1aaee9=_0x316450[0x0],_0x174773=_0x316450[0x1];_0x1aaee9==='mask'&&typeof _0x174773=='string'&&(_0x293d28[_0x1aaee9]=_0x174773['replace'](/url\(#(.*)\)/,_0xafce32(0x10f)[_0xafce32(0xe5)](_0x5eba16[_0xafce32(0x154)],')')));});var _0x457d0a=_0x5eba16['defIds'];return!_0x457d0a||_0x457d0a[_0x3d129f(0x15d)]===0x0||(_0x2818c7[_0x3d129f(0xe6)]===_0x3d129f(0x1c2)&&_0x293d28[_0x3d129f(0x125)]&&(_0x293d28[_0x3d129f(0x125)]=_0x293d28[_0x3d129f(0x125)]+_0x5eba16[_0x3d129f(0x154)]),Object[_0x3d129f(0xfc)](_0x293d28)[_0x3d129f(0xea)](function(_0x54aafb){var _0x590aed=_0x3d129f,_0x4bf71b=_0x54aafb[0x0],_0x326730=_0x54aafb[0x1];typeof _0x326730=='string'&&(_0x293d28[_0x4bf71b]=_0x326730[_0x590aed(0xf2)](/url\(#(.*)\)/,_0x590aed(0x10f)['concat'](_0x5eba16['idSuffix'],')')));})),_0x293d28;}function _0x3a2fc4(_0x2f3455,_0x31fc7a){var _0x2bdbbe=_0x1cf38d,_0x3ad136,_0x1cd8bb=_0x31fc7a[_0x2bdbbe(0x18d)];return!_0x1cd8bb||_0x1cd8bb['length']===0x0?_0x2f3455:_0x2f3455['tag']===_0x2bdbbe(0x15a)&&(!((_0x3ad136=_0x2f3455[_0x2bdbbe(0x159)])===null||_0x3ad136===void 0x0)&&_0x3ad136[_0x2bdbbe(0x15d)])?_0x276def(_0x276def({},_0x2f3455),{'children':_0x2f3455[_0x2bdbbe(0x159)][_0x2bdbbe(0x14b)](function(_0x4b8e36){var _0x3efe41=_0x2bdbbe;return typeof _0x4b8e36['attrs']['id']==_0x3efe41(0x1aa)&&_0x1cd8bb&&_0x1cd8bb[_0x3efe41(0x109)](_0x4b8e36['attrs']['id'])>-0x1?_0x276def(_0x276def({},_0x4b8e36),{'attrs':_0x276def(_0x276def({},_0x4b8e36['attrs']),{'id':_0x4b8e36['attrs']['id']+_0x31fc7a[_0x3efe41(0x154)]})}):_0x4b8e36;})}):_0x2f3455;}function _0x101686(){var _0x22f148=_0x1cf38d;return Math[_0x22f148(0x163)]()[_0x22f148(0x1dc)](0x24)[_0x22f148(0xfd)](0x2,0x8);}_0x38a9d1[_0x1cf38d(0x166)]=_0x1cf38d(0x1e1);var _0x5b5cee={'tag':'svg','attrs':{'fill':'none','viewBox':_0x1cf38d(0x1b4),'width':_0x1cf38d(0x179),'height':'1em'},'children':[{'tag':_0x1cf38d(0x174),'attrs':{'fill':_0x1cf38d(0x17d),'d':_0x1cf38d(0x101)}},{'tag':_0x1cf38d(0x174),'attrs':{'fill':_0x1cf38d(0x17d),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x1cf38d(0x1ce),'clipRule':_0x1cf38d(0x1ce)}}]},_0x51a76a=_0x10f328['forwardRef'](function(_0x263878,_0x3026f1){var _0x7672d3=_0x1cf38d;return _0x10f328[_0x7672d3(0x143)](_0x38a9d1,Object['assign']({},_0x263878,{'id':_0x7672d3(0x1d5),'ref':_0x3026f1,'icon':_0x5b5cee}));});_0x51a76a[_0x1cf38d(0x166)]='LiveShareSingle';var _0x2904b1=Object[_0x1cf38d(0x1b6)],_0x3c4ec0=(_0x5da903,_0x403dad,_0x186d4a,_0x41dc10)=>{var _0x9cf23b=_0x1cf38d;for(var _0x4b7c0f=_0x41dc10>0x1?void 0x0:_0x41dc10?_0x2904b1(_0x403dad,_0x186d4a):_0x403dad,_0x5eef98=_0x5da903[_0x9cf23b(0x15d)]-0x1,_0x321d62;_0x5eef98>=0x0;_0x5eef98--)(_0x321d62=_0x5da903[_0x5eef98])&&(_0x4b7c0f=_0x321d62(_0x4b7c0f)||_0x4b7c0f);return _0x4b7c0f;},_0x29d401=(_0x51cc8c,_0x5587f9)=>(_0x25b912,_0x57c28d)=>_0x5587f9(_0x25b912,_0x57c28d,_0x51cc8c);_0x384946[_0x1cf38d(0x122)]=class extends _0x8a81f[_0x1cf38d(0x11a)]{constructor(_0x52c9f9,_0x3f9d7d,_0x3c87a3){var _0x4b8119=_0x1cf38d;super(),_0x2bcbb9(this,'_entities',new Map()),(this[_0x4b8119(0x1cb)]=_0x52c9f9,this[_0x4b8119(0x129)]=_0x3f9d7d,this[_0x4b8119(0x100)]=_0x3c87a3,this[_0x4b8119(0x153)]());}async[_0x1cf38d(0x1b0)](_0x5b58f2){var _0x1bb000=_0x1cf38d;return this[_0x1bb000(0x123)][_0x1bb000(0x12e)](_0x5b58f2)||await this[_0x1bb000(0x15b)](_0x5b58f2),this[_0x1bb000(0x123)][_0x1bb000(0xef)](_0x5b58f2);}[_0x1cf38d(0x153)](){var _0x5940f9=_0x1cf38d;this[_0x5940f9(0x1cb)][_0x5940f9(0x16b)](_0x8a81f[_0x5940f9(0xfe)][_0x5940f9(0x112)])[_0x5940f9(0xee)](_0x1f9610[_0x5940f9(0x193)](this[_0x5940f9(0x152)]))[_0x5940f9(0x157)](async _0x517257=>{var _0x2844ae=_0x5940f9;const _0x3221ac=_0x517257[_0x2844ae(0x1cf)]();this[_0x2844ae(0x123)][_0x2844ae(0x12e)](_0x3221ac)||this['_startLiveShareCoordinator'](_0x3221ac);}),this[_0x5940f9(0x1cb)][_0x5940f9(0x191)](_0x8a81f[_0x5940f9(0xfe)]['UNIVER_SHEET'])[_0x5940f9(0xee)](_0x1f9610[_0x5940f9(0x193)](this['dispose$']))[_0x5940f9(0x157)](_0x2264b6=>{var _0x5c156f=_0x5940f9;const _0x11356b=_0x2264b6[_0x5c156f(0x1cf)](),_0x708de2=this[_0x5c156f(0x123)][_0x5c156f(0xef)](_0x11356b);_0x708de2==null||_0x708de2[_0x5c156f(0x1c7)]();});}async[_0x1cf38d(0x15b)](_0x6d0427){var _0x10b705=_0x1cf38d;const _0x61e20b=await this[_0x10b705(0x100)][_0x10b705(0x161)](_0x6d0427),_0x160ef4=this['_injector'][_0x10b705(0x1c5)](_0x384946[_0x10b705(0x182)],_0x6d0427,_0x61e20b);return _0x160ef4[_0x10b705(0x1c0)](),this['_entities'][_0x10b705(0x1d3)](_0x6d0427,_0x160ef4),_0x160ef4;}},_0x384946[_0x1cf38d(0x122)]=_0x3c4ec0([_0x29d401(0x0,_0x8a81f[_0x1cf38d(0x176)]),_0x29d401(0x1,_0x8a81f['Inject'](_0x8a81f['Injector'])),_0x29d401(0x2,_0x8a81f[_0x1cf38d(0x189)](_0x5e6e61[_0x1cf38d(0x1b8)]))],_0x384946[_0x1cf38d(0x122)]);var _0x4668d5=(_0x174759=>(_0x174759['OFFLINE']=_0x1cf38d(0x14a),_0x174759[_0x1cf38d(0x13f)]='idle',_0x174759['FOLLOWING']=_0x1cf38d(0x1c4),_0x174759['NOT_FOLLOWING']=_0x1cf38d(0x1a6),_0x174759[_0x1cf38d(0x19f)]=_0x1cf38d(0x146),_0x174759))(_0x4668d5||{});const _0x2393ce=_0x1cf38d(0x1ac),_0x1facf4=0xc8;_0x384946[_0x1cf38d(0x182)]=class extends _0x8a81f[_0x1cf38d(0x11a)]{constructor(_0x3b8a73,_0x152170,_0x1f5b65,_0x56e6c5,_0x327287){var _0x187d27=_0x1cf38d;super(),_0x2bcbb9(this,_0x187d27(0x16e),new _0x372c5e[(_0x187d27(0x14c))](_0x187d27(0x17e))),_0x2bcbb9(this,'status$',this[_0x187d27(0x16e)]['asObservable']()),_0x2bcbb9(this,_0x187d27(0x153),!0x1),_0x2bcbb9(this,_0x187d27(0x132),null),_0x2bcbb9(this,_0x187d27(0x1be),null),(this[_0x187d27(0x1d6)]=_0x3b8a73,this[_0x187d27(0xeb)]=_0x152170,this[_0x187d27(0x18f)]=_0x1f5b65,this[_0x187d27(0x17a)]=_0x56e6c5,this[_0x187d27(0x17c)]=_0x327287);}get[_0x1cf38d(0x198)](){var _0x5e60f9=_0x1cf38d;return this[_0x5e60f9(0x16e)][_0x5e60f9(0x1c6)]();}[_0x1cf38d(0x1c7)](){var _0x3b0d1d=_0x1cf38d,_0x513534;(_0x513534=this[_0x3b0d1d(0x132)])==null||_0x513534[_0x3b0d1d(0x1c7)](),this[_0x3b0d1d(0x16e)][_0x3b0d1d(0x170)](_0x3b0d1d(0x17e)),this['_status$']['complete']();}[_0x1cf38d(0x1c0)](){var _0x174906=_0x1cf38d;this[_0x174906(0x153)]||(this['_init']=!0x0,this[_0x174906(0xeb)][_0x174906(0xf5)][_0x174906(0xee)](_0x1f9610[_0x174906(0x193)](this[_0x174906(0x152)]))[_0x174906(0x157)](_0x374cfb=>{var _0x3b36b0=_0x174906;switch(_0x374cfb){case _0x5e6e61['SessionStatus'][_0x3b36b0(0x10e)]:this[_0x3b36b0(0xfa)]();break;case _0x5e6e61['SessionStatus'][_0x3b36b0(0x111)]:this['_handleOnline']();break;}}),this[_0x174906(0xeb)][_0x174906(0x12b)][_0x174906(0xee)](_0x1f9610['takeUntil'](this[_0x174906(0x152)]))[_0x174906(0x157)](_0x322c83=>{var _0x56b522=_0x174906;const {eventID:_0x6a804a}=_0x322c83;switch(_0x6a804a){case _0x4a4762[_0x56b522(0x1cc)][_0x56b522(0x117)]:this[_0x56b522(0x181)](_0x322c83);break;case _0x4a4762['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x322c83);break;case _0x4a4762[_0x56b522(0x1cc)][_0x56b522(0x19a)]:this[_0x56b522(0x120)]();break;case _0x4a4762['CollaborationEvent'][_0x56b522(0x105)]:this[_0x56b522(0x160)](_0x322c83);break;}}));}[_0x1cf38d(0x1c1)](){var _0x23e374=_0x1cf38d;this['_collabSession'][_0x23e374(0x1b5)]({'eventID':_0x4a4762[_0x23e374(0x1cc)][_0x23e374(0x1ca)],'data':{'unitID':this[_0x23e374(0x1d6)],'userID':this['_collabSession'][_0x23e374(0x16c)]()}},this[_0x23e374(0x1d6)]);}[_0x1cf38d(0x16f)](){var _0x1c6aa8=_0x1cf38d;this[_0x1c6aa8(0x198)]===_0x1c6aa8(0x146)&&(this[_0x1c6aa8(0x16e)][_0x1c6aa8(0x170)](_0x1c6aa8(0x17e)),this[_0x1c6aa8(0xeb)]['send']({'eventID':_0x4a4762['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1c6aa8(0x1d6)]}},this[_0x1c6aa8(0x1d6)]));}[_0x1cf38d(0x1da)](){var _0x44a683=_0x1cf38d;this[_0x44a683(0x198)]==='not-following'&&(this[_0x44a683(0x16e)]['next'](_0x44a683(0x1c4)),this[_0x44a683(0x141)]());}['stopFollowing'](){var _0x3a9f4b=_0x1cf38d;this[_0x3a9f4b(0x198)]===_0x3a9f4b(0x1c4)&&this[_0x3a9f4b(0x10d)]();}['_handleNewHost'](_0x39ced2){var _0x317e7f=_0x1cf38d;const {presenter:_0x43673c}=_0x39ced2[_0x317e7f(0xe9)],_0x1c2e56=this[_0x317e7f(0xeb)]['getMemberID']();this['_presenter']=_0x43673c,_0x43673c===_0x1c2e56?(this[_0x317e7f(0x10d)](),this['_startPresenting']()):this[_0x317e7f(0x198)]!==_0x317e7f(0x1a6)&&(this['_stopPresenting'](),this[_0x317e7f(0x141)]());}[_0x1cf38d(0x180)](){var _0x5e143c=_0x1cf38d;const _0x35d908={'eventID':_0x4a4762[_0x5e143c(0x1cc)][_0x5e143c(0x156)]};this['_collabSession'][_0x5e143c(0x1b5)](_0x35d908,this[_0x5e143c(0x1d6)]);}[_0x1cf38d(0x120)](){var _0x43a006=_0x1cf38d;this[_0x43a006(0x1be)]=null,this['_status']!==_0x43a006(0x146)&&this[_0x43a006(0xf1)]();}[_0x1cf38d(0x160)](_0x18c960){var _0x5aa3a7=_0x1cf38d;if(this[_0x5aa3a7(0x198)]==='following'&&this['_presenter']===_0x18c960['data']['memberID']){const _0x128fb3=_0x4a4762[_0x5aa3a7(0x113)](_0x18c960[_0x5aa3a7(0xe9)])[_0x5aa3a7(0x116)]['reverse']()[_0x5aa3a7(0x19b)](_0x3ccb40=>_0x3ccb40['id']===_0x156b92['InsertSheetMutation']['id']);if(_0x128fb3){const _0x40b5d0=_0x128fb3[_0x5aa3a7(0x1e0)][_0x5aa3a7(0x19d)],_0x5f572a=_0x128fb3[_0x5aa3a7(0x1e0)][_0x5aa3a7(0x17b)]['id'];setTimeout(()=>{var _0x1b67ab=_0x5aa3a7;this[_0x1b67ab(0x17c)][_0x1b67ab(0xff)](_0x156b92['SetWorksheetActiveOperation']['id'],{'unitId':_0x40b5d0,'subUnitId':_0x5f572a},{'fromCollab':!0x0});});}}}[_0x1cf38d(0x172)](){var _0x4778da=_0x1cf38d;this[_0x4778da(0x16e)][_0x4778da(0x170)](_0x4778da(0x146));const _0xa9c665=new Map(),_0x30b398=this['_commandDisposable']=new _0x8a81f[(_0x4778da(0x131))]();_0x30b398[_0x4778da(0xf8)](_0x8a81f[_0x4778da(0x171)](()=>{var _0x3fcf90=_0x4778da;_0xa9c665['forEach'](_0x55b3b4=>_0x55b3b4[_0x3fcf90(0x11c)]()),_0xa9c665['clear']();})),_0x30b398[_0x4778da(0xf8)](this[_0x4778da(0x17c)]['onCommandExecuted'](_0x48acf7=>{var _0x59d60c=_0x4778da,_0x3d2eac;if(_0x48acf7[_0x59d60c(0x164)]!==_0x8a81f[_0x59d60c(0xe4)][_0x59d60c(0x137)]||!this['_liveShareService']['shouldShareOperation'](_0x48acf7['id']))return;const {id:_0x1a0cb4}=_0x48acf7;let _0x13fe7d;_0xa9c665[_0x59d60c(0x12e)](_0x1a0cb4)?_0x13fe7d=_0xa9c665[_0x59d60c(0xef)](_0x1a0cb4):(_0x13fe7d=new _0x372c5e[(_0x59d60c(0x102))](),_0xa9c665[_0x59d60c(0x1d3)](_0x1a0cb4,_0x13fe7d),_0x13fe7d[_0x59d60c(0xee)](_0x1f9610[_0x59d60c(0x10a)]((_0x3d2eac=this[_0x59d60c(0x18f)][_0x59d60c(0x1a3)](_0x2393ce))!=null?_0x3d2eac:_0x1facf4,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59d60c(0x157)](_0x594818=>{var _0x2fa0c2=_0x59d60c;this[_0x2fa0c2(0xeb)][_0x2fa0c2(0x1b5)]({'eventID':_0x4a4762[_0x2fa0c2(0x1cc)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2fa0c2(0x1d6)],'operations':{[_0x594818['id']]:{'id':_0x594818['id'],'params':JSON[_0x2fa0c2(0x13d)](_0x594818[_0x2fa0c2(0x1e0)])}}}},this[_0x2fa0c2(0x1d6)]);})),_0x13fe7d['next'](_0x48acf7);})),this[_0x4778da(0x17a)][_0x4778da(0xf9)](this[_0x4778da(0x1d6)])[_0x4778da(0xea)](_0x2344c8=>this[_0x4778da(0xeb)][_0x4778da(0x1b5)]({'eventID':_0x4a4762[_0x4778da(0x1cc)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4778da(0x1d6)],'operations':{[_0x2344c8['id']]:{'id':_0x2344c8['id'],'params':JSON[_0x4778da(0x13d)](_0x2344c8['params'])}}}},this[_0x4778da(0x1d6)]));}[_0x1cf38d(0x11f)](){var _0x1e3678=_0x1cf38d,_0x5c1dd3;this[_0x1e3678(0x16e)][_0x1e3678(0x170)](_0x1e3678(0x17e)),(_0x5c1dd3=this['_commandDisposable'])==null||_0x5c1dd3[_0x1e3678(0x1c7)](),this[_0x1e3678(0x132)]=null;}['_startFollowing'](){var _0x20f72b=_0x1cf38d,_0x332ac7;(_0x332ac7=this[_0x20f72b(0x132)])==null||_0x332ac7[_0x20f72b(0x1c7)](),this[_0x20f72b(0x16e)][_0x20f72b(0x170)](_0x20f72b(0x1c4));}[_0x1cf38d(0xf1)](){var _0x3bb8c2=_0x1cf38d,_0x4c303f;this[_0x3bb8c2(0x16e)][_0x3bb8c2(0x170)](_0x3bb8c2(0x17e)),(_0x4c303f=this[_0x3bb8c2(0x132)])==null||_0x4c303f['dispose'](),this[_0x3bb8c2(0x132)]=null;}[_0x1cf38d(0x10d)](){var _0x536f11=_0x1cf38d,_0x4f10f3;this[_0x536f11(0x16e)][_0x536f11(0x170)](_0x536f11(0x1a6)),(_0x4f10f3=this[_0x536f11(0x132)])==null||_0x4f10f3[_0x536f11(0x1c7)]();}[_0x1cf38d(0x192)](_0x4839b0){var _0x1d6245=_0x1cf38d;if([_0x1d6245(0x146),_0x1d6245(0x1a6),'offline'][_0x1d6245(0x1d7)](this[_0x1d6245(0x198)])||!_0x4839b0[_0x1d6245(0xe9)][_0x1d6245(0x18a)]||_0x4839b0[_0x1d6245(0xe9)][_0x1d6245(0x18a)]===this[_0x1d6245(0xeb)][_0x1d6245(0x16c)]())return;this[_0x1d6245(0x198)]===_0x1d6245(0x17e)&&this[_0x1d6245(0x141)]();const _0x962aa1=_0x4839b0[_0x1d6245(0xe9)][_0x1d6245(0x1de)];Object[_0x1d6245(0x1c9)](_0x962aa1)[_0x1d6245(0xea)](_0x1712b0=>{var _0x1e7339=_0x1d6245;this[_0x1e7339(0x17c)][_0x1e7339(0xff)](_0x1712b0['id'],_0x1712b0[_0x1e7339(0x1e0)]?JSON[_0x1e7339(0x130)](_0x1712b0['params']):null,{'fromCollab':!0x0});});}[_0x1cf38d(0xfa)](){var _0x46fbb2=_0x1cf38d,_0x5c9b73;this['_status$'][_0x46fbb2(0x170)]('offline'),(_0x5c9b73=this['_commandDisposable'])==null||_0x5c9b73[_0x46fbb2(0x1c7)]();}[_0x1cf38d(0x10b)](){var _0x25eb74=_0x1cf38d;this[_0x25eb74(0x16e)][_0x25eb74(0x170)]('idle'),this[_0x25eb74(0x180)]();}},_0x384946['LiveShareCoordinator']=_0x3c4ec0([_0x29d401(0x2,_0x8a81f[_0x1cf38d(0x12f)]),_0x29d401(0x3,_0x8a81f[_0x1cf38d(0x189)](_0x3e0149)),_0x29d401(0x4,_0x8a81f[_0x1cf38d(0x106)])],_0x384946[_0x1cf38d(0x182)]);function _0x6d5ac2(){var _0x24a770=_0x1cf38d;const _0x4199fc=_0x146422['useDependency'](_0x384946['LiveShareController']),_0x5c26d5=_0x146422[_0x24a770(0x1ba)](_0x8a81f[_0x24a770(0x176)]),_0x16678d=_0x146422[_0x24a770(0x1db)](()=>_0x5c26d5[_0x24a770(0x1a7)](_0x8a81f[_0x24a770(0xfe)][_0x24a770(0x112)]),void 0x0,!0x1,[]),[_0x5193b4,_0x1916f1]=_0x10f328[_0x24a770(0x140)](null),[_0x2d3bc1,_0x431bfe]=_0x10f328['useState'](_0x4668d5[_0x24a770(0x13f)]),_0xecbfcd=_0x10f328[_0x24a770(0x177)](null);return _0x10f328[_0x24a770(0x188)](()=>(_0x16678d&&_0x4199fc[_0x24a770(0x1b0)](_0x16678d['getUnitId']())[_0x24a770(0x1a9)](_0x505fa6=>{var _0x104c6b=_0x24a770;_0x1916f1(_0x505fa6),_0xecbfcd[_0x104c6b(0x121)]=_0x505fa6['status$'][_0x104c6b(0x157)](_0x5921f6=>{_0x431bfe(_0x5921f6);});}),()=>{var _0x498c69=_0x24a770,_0x256d44;(_0x256d44=_0xecbfcd[_0x498c69(0x121)])==null||_0x256d44['unsubscribe'](),_0xecbfcd[_0x498c69(0x121)]=null;}),[_0x16678d,_0x4199fc]),_0x5193b4?_0x473f32[_0x24a770(0x1ad)](_0x4036a0[_0x24a770(0x11b)],{'align':_0x24a770(0x135),'disabled':_0x2d3bc1===_0x4668d5[_0x24a770(0x10e)],'className':_0x24a770(0xe7),'overlay':_0x473f32[_0x24a770(0x1ad)](_0x570747,{'status':_0x2d3bc1,'coordinator':_0x5193b4}),'children':_0x473f32[_0x24a770(0x1ad)](_0x24a770(0x119),{'className':_0x4036a0[_0x24a770(0x14f)](_0x24a770(0x1a2),{'univer-cursor-not-allowed':_0x2d3bc1===_0x4668d5[_0x24a770(0x10e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2d3bc1!==_0x4668d5['OFFLINE']}),'type':_0x24a770(0x119),'children':_0x473f32[_0x24a770(0x1ad)](_0x51a76a,{'className':_0x24a770(0x173)})})}):null;}function _0x570747(_0x3dde9f){var _0x3bd16c=_0x1cf38d;const {status:_0x1f6e1f,coordinator:_0xf21264}=_0x3dde9f;switch(_0x1f6e1f){case _0x4668d5[_0x3bd16c(0x13f)]:return _0x473f32['jsx'](_0x34ab9b,{'coordinator':_0xf21264});case _0x4668d5[_0x3bd16c(0x10c)]:return _0x473f32[_0x3bd16c(0x1ad)](_0x362211,{'coordinator':_0xf21264});case _0x4668d5[_0x3bd16c(0xf6)]:return _0x473f32[_0x3bd16c(0x1ad)](_0x3b399d,{'coordinator':_0xf21264});case _0x4668d5[_0x3bd16c(0x10e)]:return _0x473f32['jsx'](_0x4059f9,{});case _0x4668d5[_0x3bd16c(0x19f)]:return _0x473f32[_0x3bd16c(0x1ad)](_0x1a8d0c,{'coordinator':_0xf21264});default:return null;}}function _0x34ab9b(_0x18d000){var _0x65add=_0x1cf38d;const {coordinator:_0x19fb9c}=_0x18d000;return _0x473f32[_0x65add(0x1b9)](_0x473f32[_0x65add(0x167)],{'children':[_0x473f32['jsx'](_0x65add(0x134),{'className':_0x65add(0x138),'children':_0x65add(0x1b2)}),_0x473f32['jsx'](_0x4036a0[_0x65add(0x1b7)],{'size':_0x65add(0x13b),'type':'default','onClick':()=>_0x19fb9c[_0x65add(0x1c1)](),'children':_0x65add(0x127)})]});}function _0x362211(_0x214042){var _0x2c43f8=_0x1cf38d;const {coordinator:_0x21301f}=_0x214042;return _0x473f32['jsxs'](_0x473f32[_0x2c43f8(0x167)],{'children':[_0x473f32['jsx'](_0x2c43f8(0x134),{'className':_0x2c43f8(0x138),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x473f32[_0x2c43f8(0x1ad)](_0x4036a0[_0x2c43f8(0x1b7)],{'size':_0x2c43f8(0x13b),'type':_0x2c43f8(0x142),'onClick':()=>_0x21301f[_0x2c43f8(0x1d8)](),'children':_0x2c43f8(0x17f)})]});}function _0x3b399d(_0x40e14e){var _0x37ae30=_0x1cf38d;const {coordinator:_0x50fd28}=_0x40e14e;return _0x473f32[_0x37ae30(0x1b9)](_0x473f32[_0x37ae30(0x167)],{'children':[_0x473f32[_0x37ae30(0x1ad)](_0x37ae30(0x134),{'className':_0x37ae30(0x138),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x473f32[_0x37ae30(0x1ad)](_0x4036a0['Button'],{'size':_0x37ae30(0x13b),'type':_0x37ae30(0x1d4),'onClick':()=>_0x50fd28[_0x37ae30(0x1da)](),'children':_0x37ae30(0x104)})]});}function _0x1a8d0c(_0x1b3064){var _0x119de6=_0x1cf38d;const {coordinator:_0x3ee3a4}=_0x1b3064;return _0x473f32[_0x119de6(0x1b9)](_0x473f32[_0x119de6(0x167)],{'children':[_0x473f32[_0x119de6(0x1ad)]('div',{'className':_0x119de6(0x138),'children':_0x119de6(0x175)}),_0x473f32[_0x119de6(0x1ad)](_0x4036a0[_0x119de6(0x1b7)],{'size':_0x119de6(0x13b),'type':'default','onClick':()=>_0x3ee3a4[_0x119de6(0x16f)](),'children':_0x119de6(0x16a)})]});}function _0x4059f9(){var _0x4c5be6=_0x1cf38d;return _0x473f32[_0x4c5be6(0x1ad)](_0x473f32[_0x4c5be6(0x167)],{'children':_0x4c5be6(0x18c)});}var _0x405de0=Object['getOwnPropertyDescriptor'],_0x43522d=(_0x3964db,_0x4c2c4e,_0x133a6b,_0x347698)=>{var _0x1e0ec=_0x1cf38d;for(var _0x396817=_0x347698>0x1?void 0x0:_0x347698?_0x405de0(_0x4c2c4e,_0x133a6b):_0x4c2c4e,_0x101b31=_0x3964db[_0x1e0ec(0x15d)]-0x1,_0x287ac0;_0x101b31>=0x0;_0x101b31--)(_0x287ac0=_0x3964db[_0x101b31])&&(_0x396817=_0x287ac0(_0x396817)||_0x396817);return _0x396817;},_0x50c2cb=(_0x32f245,_0x24b077)=>(_0x5dd350,_0x4f4b78)=>_0x24b077(_0x5dd350,_0x4f4b78,_0x32f245);_0x384946[_0x1cf38d(0x184)]=class extends _0x8a81f[_0x1cf38d(0x162)]{constructor(_0x1f5797,_0x163d85){var _0x1e0c4c=_0x1cf38d;super(),this[_0x1e0c4c(0x129)]=_0x1f5797,this[_0x1e0c4c(0x1bd)]=_0x163d85,this[_0x1e0c4c(0x1dd)]();}['_mountLiveShare'](){var _0x27874b=_0x1cf38d;this[_0x27874b(0x1df)](this['_uiPartsService'][_0x27874b(0x1b1)](_0x146422['BuiltInUIPart'][_0x27874b(0x1a5)],()=>_0x146422[_0x27874b(0x150)](_0x6d5ac2,this[_0x27874b(0x129)])));}},_0x384946[_0x1cf38d(0x184)]=_0x43522d([_0x50c2cb(0x0,_0x8a81f[_0x1cf38d(0x189)](_0x8a81f[_0x1cf38d(0x13e)])),_0x50c2cb(0x1,_0x146422[_0x1cf38d(0x107)])],_0x384946[_0x1cf38d(0x184)]);var _0x576f02=Object[_0x1cf38d(0x15f)],_0x4811df=Object[_0x1cf38d(0x1b6)],_0x53d5d0=(_0x4271ca,_0x2d475a,_0x59e830)=>_0x2d475a in _0x4271ca?_0x576f02(_0x4271ca,_0x2d475a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59e830}):_0x4271ca[_0x2d475a]=_0x59e830,_0x54ea1e=(_0xfb0aad,_0x43af01,_0x4365e6,_0x165d2b)=>{var _0x3a7311=_0x1cf38d;for(var _0x2255e8=_0x165d2b>0x1?void 0x0:_0x165d2b?_0x4811df(_0x43af01,_0x4365e6):_0x43af01,_0x3ab0e5=_0xfb0aad[_0x3a7311(0x15d)]-0x1,_0x389440;_0x3ab0e5>=0x0;_0x3ab0e5--)(_0x389440=_0xfb0aad[_0x3ab0e5])&&(_0x2255e8=_0x389440(_0x2255e8)||_0x2255e8);return _0x2255e8;},_0x4175bf=(_0x10f993,_0x51db82)=>(_0x3b808c,_0x583e2a)=>_0x51db82(_0x3b808c,_0x583e2a,_0x10f993),_0x382d96=(_0x5bd3ba,_0x5bfc53,_0xdd58)=>_0x53d5d0(_0x5bd3ba,typeof _0x5bfc53!=_0x1cf38d(0x13a)?_0x5bfc53+'':_0x5bfc53,_0xdd58);const _0x252b77=_0x1cf38d(0x13c);_0x384946[_0x1cf38d(0xed)]=class extends _0x8a81f[_0x1cf38d(0x186)]{constructor(_0x3501f2=_0x1d9461,_0xba9d18,_0x30c7d3){var _0x16fd78=_0x1cf38d;super(),this[_0x16fd78(0x139)]=_0x3501f2,this['_injector']=_0xba9d18,this[_0x16fd78(0x18f)]=_0x30c7d3;const {..._0x36656f}=_0x8a81f[_0x16fd78(0x1d0)]({},_0x1d9461,this[_0x16fd78(0x139)]);this['_configService'][_0x16fd78(0x144)](_0x2daf21,_0x36656f);}[_0x1cf38d(0x148)](){var _0x12374a=_0x1cf38d;_0x8a81f['registerDependencies'](this[_0x12374a(0x129)],_0x8a81f[_0x12374a(0x12c)]([[_0x3e0149],[_0x384946[_0x12374a(0x122)]],[_0x1de6a8],[_0x384946[_0x12374a(0x184)]]],this[_0x12374a(0x139)][_0x12374a(0x1bc)])),_0x8a81f[_0x12374a(0x15c)](this[_0x12374a(0x129)],[[_0x1de6a8]]);}['onRendered'](){var _0x32047c=_0x1cf38d;_0x8a81f[_0x32047c(0x15c)](this[_0x32047c(0x129)],[[_0x384946[_0x32047c(0x184)]]]);}},_0x382d96(_0x384946['UniverLiveSharePlugin'],_0x1cf38d(0x164),_0x8a81f[_0x1cf38d(0xfe)]['UNIVER_UNKNOWN']),_0x382d96(_0x384946[_0x1cf38d(0xed)],_0x1cf38d(0x1b3),_0x252b77),_0x384946[_0x1cf38d(0xed)]=_0x54ea1e([_0x8a81f[_0x1cf38d(0x1a0)](_0x5e6e61[_0x1cf38d(0x190)]),_0x4175bf(0x1,_0x8a81f[_0x1cf38d(0x189)](_0x8a81f[_0x1cf38d(0x13e)])),_0x4175bf(0x2,_0x8a81f['IConfigService'])],_0x384946[_0x1cf38d(0xed)]),_0x384946[_0x1cf38d(0x1a1)]=_0x6d5ac2,_0x384946[_0x1cf38d(0x165)]=_0x3e0149,_0x384946[_0x1cf38d(0x168)]=_0x4668d5,Object[_0x1cf38d(0x15f)](_0x384946,Symbol[_0x1cf38d(0x196)],{'value':'Module'});}));
1
+ function _0x218e(){var _0x27da17=['takeUntil','touchDependencies','_liveShareService','IUniverInstanceService','mask','2354325CSnVnz','onStarting','You\x27re\x20presenting\x20the\x20document','_handleNewChangeSets','_handleNewHost','live-share-single','params','@univerjs-pro/collaboration-client','button','useRef','find','startFollowing','_fetchOperations','svg','useObservable','UniverLiveSharePlugin','from','getMemberID','559464vTaqEC','5274516eOlMlZ','UniverSheets','concat','delete','_startPresenting','@univerjs/ui','operators','UniverProLiveShare','getInitialStates','function','following','apply','init','hasOwnProperty','_handleOperation','next','getValue','status$','send','ONLINE','UniverInstanceType','forwardRef','100enIAAp','UniverUi','Fragment','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','toString','SAME_OPERATION_SHARE_INTERVAL','live-share.config','override','forEach','idle','event$','parseProtocolChangeset','_commandDisposable','_injector','getOwnPropertySymbols','NOT_FOLLOWING','You\x27are\x20offline.','Plugin','RxDisposable','executeCommand','SetScrollOperation','toDisposable','@univerjs/sheets','You\x27re\x20following\x20the\x20presenter','CommandType','_univerInstanceService','presenting','jsxs','call','LIVESHARE_TERMINATE','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','OPERATION','requireSession','colorChannel1','rxjs/operators','registerDependencies','current','add','_config','length','OFFLINE','14632937dfQWSq','substring','PRESENTING','FOLLOWING','get','UNIVER_SHEET','url(#$1','stringify','Module','end','_handleOffline','includes','sessionStatus$','none','rxjs','DisposableCollection','currentColor','UNIVER_LIVE_SHARE_PLUGIN','path','_presenter','_init','getUnitId','@univerjs/sheets-ui','0\x200\x2016\x2016','then','map','clsx','throttleTime','@univerjs-pro/collaboration','LiveShareStatus','has','1em','_status','UniverCore','_status$','_sharedOperations','getCurrentTypeOfUnit$','Injector','381DSsSpC','Start\x20following','_collabSessionService','Present\x20this\x20document','_startLiveShareCoordinator','HEADER_MENU','react','createInstance','LIVESHARE_OPERATION','LiveShareSingle','onRendered','registerInitialStateReporter','LiveShareCoordinator','useDependency','LiveShare','CollaborationEvent','Button','UniverProCollaborationClient','disposeWithMe','not-following','_commandService','pluginName','_unitID','DependentOn','trim','LiveShareController','dispose$','data','getConfig','object','xlink:href','replace','_stopFollowing','default','children','LiveShareService','getLiveShareCoordinator','1091936wcvCXu','_configService','subscribe','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','_entities','defIds','connectInjector','registerSharedOperation','unsubscribe','IDLE','useState','fill','createElement','indexOf','ICommandService','BehaviorSubject','setConfig','offline','stopFollowing','UniverSheetsUi','registerComponent','icon','_beIdle','jsx','evenodd','SetZoomRatioOperation','random','_stopPresenting','text','_handleTerminate','getOwnPropertyDescriptor','@univerjs/design','dispose','amd','SessionStatus','Inject','react/jsx-runtime','IConfigService','tag','string','idSuffix','pipe','Disposable','div','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_handleOnline','42wKMYZC','displayName','propertyIsEnumerable','_startFollowing','React','mutations','12pbMMuC','entries','className','stopPresenting','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','tryStartPresenting','attrs','_reporters','DesktopLiveShareController','getTypeOfUnitDisposed$','prototype','complete','804969DYXUBa','small','_collabSession','defs','onCommandExecuted','type','shouldShareOperation','getTypeOfUnitAdded$','_uiPartsService','sheet','exports','defineProperty','21340sXZCXD'];_0x218e=function(){return _0x27da17;};return _0x218e();}function _0x43a9(_0x17622b,_0x965817){var _0x218e00=_0x218e();return _0x43a9=function(_0x43a965,_0x62f360){_0x43a965=_0x43a965-0x10f;var _0x3c3843=_0x218e00[_0x43a965];return _0x3c3843;},_0x43a9(_0x17622b,_0x965817);}(function(_0x256e59,_0x433910){var _0x5c5661=_0x43a9,_0x792745=_0x256e59();while(!![]){try{var _0x148f50=-parseInt(_0x5c5661(0x1e7))/0x1+-parseInt(_0x5c5661(0x1cf))/0x2*(-parseInt(_0x5c5661(0x15e))/0x3)+-parseInt(_0x5c5661(0x1e8))/0x4+parseInt(_0x5c5661(0x1d5))/0x5*(parseInt(_0x5c5661(0x1b7))/0x6)+-parseInt(_0x5c5661(0x1b1))/0x7*(-parseInt(_0x5c5661(0x183))/0x8)+-parseInt(_0x5c5661(0x1c3))/0x9*(-parseInt(_0x5c5661(0x10f))/0xa)+-parseInt(_0x5c5661(0x138))/0xb;if(_0x148f50===_0x433910)break;else _0x792745['push'](_0x792745['shift']());}catch(_0xc06312){_0x792745['push'](_0x792745['shift']());}}}(_0x218e,0xc3c1e),function(_0x37d6a5,_0x384498){var _0x5e4203=_0x43a9;typeof exports==_0x5e4203(0x17b)&&typeof module<'u'?_0x384498(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require(_0x5e4203(0x125)),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require(_0x5e4203(0x1a7)),require(_0x5e4203(0x1a2)),require(_0x5e4203(0x164)),require(_0x5e4203(0x154)),require(_0x5e4203(0x146)),require(_0x5e4203(0x131))):typeof define==_0x5e4203(0x1f1)&&define[_0x5e4203(0x1a4)]?define([_0x5e4203(0x1cd),_0x5e4203(0x1dc),'@univerjs/core',_0x5e4203(0x125),_0x5e4203(0x14e),_0x5e4203(0x1ed),_0x5e4203(0x1a7),'@univerjs/design',_0x5e4203(0x164),_0x5e4203(0x154),_0x5e4203(0x146),'rxjs/operators'],_0x384498):(_0x37d6a5=typeof globalThis<'u'?globalThis:_0x37d6a5||self,_0x384498(_0x37d6a5[_0x5e4203(0x1ef)]={},_0x37d6a5[_0x5e4203(0x16f)],_0x37d6a5[_0x5e4203(0x159)],_0x37d6a5[_0x5e4203(0x1e9)],_0x37d6a5[_0x5e4203(0x196)],_0x37d6a5[_0x5e4203(0x110)],_0x37d6a5[_0x5e4203(0x1b5)],_0x37d6a5['UniverDesign'],_0x37d6a5['React'],_0x37d6a5['UniverProCollaboration'],_0x37d6a5[_0x5e4203(0x146)],_0x37d6a5[_0x5e4203(0x146)][_0x5e4203(0x1ee)]));}(this,function(_0x4e139f,_0xb7ac80,_0x47b471,_0x5b782b,_0x89476c,_0x56fdec,_0x5adbed,_0x371bd8,_0x3a80dc,_0x5e9e6c,_0x5a6ceb,_0x14bd3b){'use strict';var _0x2d8df1=_0x43a9;var _0x55d132=Object[_0x2d8df1(0x1ce)],_0x247e96=(_0x51b591,_0x2a8ec7,_0x39add6)=>_0x2a8ec7 in _0x51b591?_0x55d132(_0x51b591,_0x2a8ec7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x39add6}):_0x51b591[_0x2a8ec7]=_0x39add6,_0x8d077d=(_0x39270d,_0x579580,_0x23817f)=>_0x247e96(_0x39270d,typeof _0x579580!='symbol'?_0x579580+'':_0x579580,_0x23817f);const _0x5ca371=_0x2d8df1(0x115),_0x4d5ec2={};class _0x11c39a extends _0x47b471['Disposable']{constructor(){var _0x347e49=_0x2d8df1;super(...arguments),_0x8d077d(this,_0x347e49(0x15b),new Set()),_0x8d077d(this,_0x347e49(0x1be),new Set());}['registerSharedOperation'](_0x4b1126){var _0x5a35f0=_0x2d8df1;return this[_0x5a35f0(0x15b)][_0x5a35f0(0x134)](_0x4b1126),_0x47b471[_0x5a35f0(0x124)](()=>this[_0x5a35f0(0x15b)][_0x5a35f0(0x1eb)](_0x4b1126));}[_0x2d8df1(0x169)](_0x1f0de8){var _0x4fdd8a=_0x2d8df1;return this[_0x4fdd8a(0x1be)]['add'](_0x1f0de8),_0x47b471[_0x4fdd8a(0x124)](()=>this['_reporters'][_0x4fdd8a(0x1eb)](_0x1f0de8));}[_0x2d8df1(0x1c9)](_0x31b0ca){var _0x32317d=_0x2d8df1;return this[_0x32317d(0x15b)][_0x32317d(0x156)](_0x31b0ca);}['getInitialStates'](_0x12df3d){var _0x169cb5=_0x2d8df1;return Array[_0x169cb5(0x1e5)](this[_0x169cb5(0x1be)])[_0x169cb5(0x151)](_0x2d7a1d=>_0x2d7a1d(_0x12df3d));}}var _0x22594e=Object[_0x2d8df1(0x1a1)],_0x48b1ce=(_0x3afa65,_0x5ec47f,_0x541c71,_0x33cb3d)=>{var _0xbb12f9=_0x2d8df1;for(var _0xe619c=_0x33cb3d>0x1?void 0x0:_0x33cb3d?_0x22594e(_0x5ec47f,_0x541c71):_0x5ec47f,_0x2442f3=_0x3afa65[_0xbb12f9(0x136)]-0x1,_0x2ee662;_0x2442f3>=0x0;_0x2442f3--)(_0x2ee662=_0x3afa65[_0x2442f3])&&(_0xe619c=_0x2ee662(_0xe619c)||_0xe619c);return _0xe619c;},_0x4099e6=(_0x166ac1,_0x25f7ea)=>(_0x1c8b7a,_0x3ee7a9)=>_0x25f7ea(_0x1c8b7a,_0x3ee7a9,_0x166ac1);let _0x522d95=class extends _0x47b471[_0x2d8df1(0x1ad)]{constructor(_0x27fdc2){var _0x26a0a0=_0x2d8df1;super(),this[_0x26a0a0(0x1d2)]=_0x27fdc2,this[_0x26a0a0(0x14c)]();}[_0x2d8df1(0x14c)](){var _0x59e4df=_0x2d8df1;[_0x89476c[_0x59e4df(0x19c)]['id'],_0x89476c[_0x59e4df(0x123)]['id'],_0x5b782b['SetWorksheetActiveOperation']['id']][_0x59e4df(0x117)](_0x1b6cf7=>{var _0x55e184=_0x59e4df;this[_0x55e184(0x170)](this[_0x55e184(0x1d2)][_0x55e184(0x18a)](_0x1b6cf7));});}};_0x522d95=_0x48b1ce([_0x4099e6(0x0,_0x47b471['Inject'](_0x11c39a))],_0x522d95);var _0xc028a1=function(){var _0x153250=_0x2d8df1;return _0xc028a1=Object['assign']||function(_0x1448e4){var _0x5a5f26=_0x43a9;for(var _0x1b0bda,_0x142bb9=0x1,_0x5ce3db=arguments[_0x5a5f26(0x136)];_0x142bb9<_0x5ce3db;_0x142bb9++){_0x1b0bda=arguments[_0x142bb9];for(var _0x43b399 in _0x1b0bda)Object[_0x5a5f26(0x1c1)][_0x5a5f26(0x1f5)][_0x5a5f26(0x12b)](_0x1b0bda,_0x43b399)&&(_0x1448e4[_0x43b399]=_0x1b0bda[_0x43b399]);}return _0x1448e4;},_0xc028a1[_0x153250(0x1f3)](this,arguments);},_0x4870d2=function(_0x119e64,_0x3f999a){var _0x4d8c56=_0x2d8df1,_0x4616ed={};for(var _0x52fa57 in _0x119e64)Object[_0x4d8c56(0x1c1)]['hasOwnProperty']['call'](_0x119e64,_0x52fa57)&&_0x3f999a[_0x4d8c56(0x190)](_0x52fa57)<0x0&&(_0x4616ed[_0x52fa57]=_0x119e64[_0x52fa57]);if(_0x119e64!=null&&typeof Object[_0x4d8c56(0x11d)]==_0x4d8c56(0x1f1)){for(var _0x2bde26=0x0,_0x52fa57=Object[_0x4d8c56(0x11d)](_0x119e64);_0x2bde26<_0x52fa57[_0x4d8c56(0x136)];_0x2bde26++)_0x3f999a[_0x4d8c56(0x190)](_0x52fa57[_0x2bde26])<0x0&&Object[_0x4d8c56(0x1c1)][_0x4d8c56(0x1b3)][_0x4d8c56(0x12b)](_0x119e64,_0x52fa57[_0x2bde26])&&(_0x4616ed[_0x52fa57[_0x2bde26]]=_0x119e64[_0x52fa57[_0x2bde26]]);}return _0x4616ed;},_0xc063cb=_0x3a80dc[_0x2d8df1(0x1fd)](function(_0x1b5ce9,_0xe135e4){var _0x31129c=_0x2d8df1,_0x56722e=_0x1b5ce9[_0x31129c(0x198)],_0x3bab1c=_0x1b5ce9['id'],_0xb53d38=_0x1b5ce9[_0x31129c(0x1b9)],_0x5c3200=_0x1b5ce9['extend'],_0x1fdb90=_0x4870d2(_0x1b5ce9,[_0x31129c(0x198),'id',_0x31129c(0x1b9),'extend']),_0x8dfb65='univerjs-icon\x20univerjs-icon-'['concat'](_0x3bab1c,'\x20')[_0x31129c(0x1ea)](_0xb53d38||'')[_0x31129c(0x176)](),_0x472e70=_0x3a80dc[_0x31129c(0x1de)]('_'[_0x31129c(0x1ea)](_0x384979()));return _0x2187d5(_0x56722e,''['concat'](_0x3bab1c),{'defIds':_0x56722e[_0x31129c(0x188)],'idSuffix':_0x472e70[_0x31129c(0x133)]},_0xc028a1({'ref':_0xe135e4,'className':_0x8dfb65},_0x1fdb90),_0x5c3200);});function _0x2187d5(_0x53827b,_0x4da8ec,_0x3db397,_0x389878,_0x49a324){var _0xdfaf46=_0x2d8df1;return _0x3a80dc[_0xdfaf46(0x18f)](_0x53827b['tag'],_0xc028a1(_0xc028a1({'key':_0x4da8ec},_0x32dd6d(_0x53827b,_0x3db397,_0x49a324)),_0x389878),(_0x3a784f(_0x53827b,_0x3db397)[_0xdfaf46(0x180)]||[])[_0xdfaf46(0x151)](function(_0x39d707,_0x358f0c){var _0x1f996f=_0xdfaf46;return _0x2187d5(_0x39d707,''[_0x1f996f(0x1ea)](_0x4da8ec,'-')[_0x1f996f(0x1ea)](_0x53827b[_0x1f996f(0x1a9)],'-')[_0x1f996f(0x1ea)](_0x358f0c),_0x3db397,void 0x0,_0x49a324);}));}function _0x32dd6d(_0x33cdc0,_0x16c566,_0x1be20c){var _0xd2a72d=_0x2d8df1,_0x498f50=_0xc028a1({},_0x33cdc0[_0xd2a72d(0x1bd)]);_0x1be20c!=null&&_0x1be20c['colorChannel1']&&_0x498f50['fill']===_0xd2a72d(0x130)&&(_0x498f50[_0xd2a72d(0x18e)]=_0x1be20c['colorChannel1']),_0x33cdc0['tag']===_0xd2a72d(0x1d4)&&_0x498f50['id']&&(_0x498f50['id']=_0x498f50['id']+_0x16c566[_0xd2a72d(0x1ab)]),Object[_0xd2a72d(0x1b8)](_0x498f50)[_0xd2a72d(0x117)](function(_0x12a42a){var _0x216fb3=_0xd2a72d,_0x20297e=_0x12a42a[0x0],_0x2edfa1=_0x12a42a[0x1];_0x20297e===_0x216fb3(0x1d4)&&typeof _0x2edfa1==_0x216fb3(0x1aa)&&(_0x498f50[_0x20297e]=_0x2edfa1['replace'](/url\(#(.*)\)/,_0x216fb3(0x13e)[_0x216fb3(0x1ea)](_0x16c566[_0x216fb3(0x1ab)],')')));});var _0x55f34a=_0x16c566[_0xd2a72d(0x188)];return!_0x55f34a||_0x55f34a['length']===0x0||(_0x33cdc0[_0xd2a72d(0x1a9)]==='use'&&_0x498f50[_0xd2a72d(0x17c)]&&(_0x498f50[_0xd2a72d(0x17c)]=_0x498f50[_0xd2a72d(0x17c)]+_0x16c566['idSuffix']),Object[_0xd2a72d(0x1b8)](_0x498f50)['forEach'](function(_0x3d1f8a){var _0x4ca13d=_0xd2a72d,_0x40dc23=_0x3d1f8a[0x0],_0x53e51c=_0x3d1f8a[0x1];typeof _0x53e51c==_0x4ca13d(0x1aa)&&(_0x498f50[_0x40dc23]=_0x53e51c[_0x4ca13d(0x17d)](/url\(#(.*)\)/,_0x4ca13d(0x13e)[_0x4ca13d(0x1ea)](_0x16c566['idSuffix'],')')));})),_0x498f50;}function _0x3a784f(_0x5ad633,_0x288d0f){var _0x1cad5b=_0x2d8df1,_0x438c0d,_0x853946=_0x288d0f['defIds'];return!_0x853946||_0x853946[_0x1cad5b(0x136)]===0x0?_0x5ad633:_0x5ad633['tag']===_0x1cad5b(0x1c6)&&(!((_0x438c0d=_0x5ad633[_0x1cad5b(0x180)])===null||_0x438c0d===void 0x0)&&_0x438c0d['length'])?_0xc028a1(_0xc028a1({},_0x5ad633),{'children':_0x5ad633[_0x1cad5b(0x180)][_0x1cad5b(0x151)](function(_0xc00055){var _0x2a4ff8=_0x1cad5b;return typeof _0xc00055['attrs']['id']==_0x2a4ff8(0x1aa)&&_0x853946&&_0x853946[_0x2a4ff8(0x190)](_0xc00055[_0x2a4ff8(0x1bd)]['id'])>-0x1?_0xc028a1(_0xc028a1({},_0xc00055),{'attrs':_0xc028a1(_0xc028a1({},_0xc00055[_0x2a4ff8(0x1bd)]),{'id':_0xc00055[_0x2a4ff8(0x1bd)]['id']+_0x288d0f[_0x2a4ff8(0x1ab)]})}):_0xc00055;})}):_0x5ad633;}function _0x384979(){var _0x50261e=_0x2d8df1;return Math[_0x50261e(0x19d)]()[_0x50261e(0x113)](0x24)[_0x50261e(0x139)](0x2,0x8);}_0xc063cb[_0x2d8df1(0x1b2)]='UniverIcon';var _0x29baaa={'tag':_0x2d8df1(0x1e2),'attrs':{'fill':_0x2d8df1(0x145),'viewBox':_0x2d8df1(0x14f),'width':_0x2d8df1(0x157),'height':'1em'},'children':[{'tag':_0x2d8df1(0x14a),'attrs':{'fill':_0x2d8df1(0x148),'d':_0x2d8df1(0x12d)}},{'tag':_0x2d8df1(0x14a),'attrs':{'fill':_0x2d8df1(0x148),'d':_0x2d8df1(0x1bb),'fillRule':_0x2d8df1(0x19b),'clipRule':_0x2d8df1(0x19b)}}]},_0x308450=_0x3a80dc[_0x2d8df1(0x1fd)](function(_0x47d9a7,_0x2757b2){var _0x4666af=_0x2d8df1;return _0x3a80dc['createElement'](_0xc063cb,Object['assign']({},_0x47d9a7,{'id':_0x4666af(0x1da),'ref':_0x2757b2,'icon':_0x29baaa}));});_0x308450[_0x2d8df1(0x1b2)]=_0x2d8df1(0x167);var _0x13a8bb=Object['getOwnPropertyDescriptor'],_0x491bfa=(_0x4881c9,_0x437f6a,_0x12d5aa,_0x2a1463)=>{var _0x46a2e8=_0x2d8df1;for(var _0x20f603=_0x2a1463>0x1?void 0x0:_0x2a1463?_0x13a8bb(_0x437f6a,_0x12d5aa):_0x437f6a,_0x3ca9f8=_0x4881c9[_0x46a2e8(0x136)]-0x1,_0x4640fd;_0x3ca9f8>=0x0;_0x3ca9f8--)(_0x4640fd=_0x4881c9[_0x3ca9f8])&&(_0x20f603=_0x4640fd(_0x20f603)||_0x20f603);return _0x20f603;},_0x5735c6=(_0x466409,_0x152406)=>(_0x3ce855,_0x73934)=>_0x152406(_0x3ce855,_0x73934,_0x466409);_0x4e139f[_0x2d8df1(0x177)]=class extends _0x47b471[_0x2d8df1(0x121)]{constructor(_0x419de4,_0x2813bc,_0x25e6e3){var _0x177ff9=_0x2d8df1;super(),_0x8d077d(this,_0x177ff9(0x187),new Map()),(this['_univerInstanceService']=_0x419de4,this[_0x177ff9(0x11c)]=_0x2813bc,this[_0x177ff9(0x160)]=_0x25e6e3,this[_0x177ff9(0x14c)]());}async[_0x2d8df1(0x182)](_0x5307dc){var _0x5e6ff=_0x2d8df1;return this[_0x5e6ff(0x187)]['has'](_0x5307dc)||await this[_0x5e6ff(0x162)](_0x5307dc),this[_0x5e6ff(0x187)][_0x5e6ff(0x13c)](_0x5307dc);}['_init'](){var _0xa341f2=_0x2d8df1;this[_0xa341f2(0x128)][_0xa341f2(0x1ca)](_0x47b471['UniverInstanceType'][_0xa341f2(0x13d)])[_0xa341f2(0x1ac)](_0x14bd3b['takeUntil'](this['dispose$']))['subscribe'](async _0x4fa2df=>{var _0x2eb1dc=_0xa341f2;const _0x8b3737=_0x4fa2df[_0x2eb1dc(0x14d)]();this['_entities'][_0x2eb1dc(0x156)](_0x8b3737)||this[_0x2eb1dc(0x162)](_0x8b3737);}),this[_0xa341f2(0x128)][_0xa341f2(0x1c0)](_0x47b471['UniverInstanceType'][_0xa341f2(0x13d)])[_0xa341f2(0x1ac)](_0x14bd3b[_0xa341f2(0x1d0)](this[_0xa341f2(0x178)]))[_0xa341f2(0x185)](_0x562c7d=>{var _0x2e50ba=_0xa341f2;const _0x454b9b=_0x562c7d[_0x2e50ba(0x14d)](),_0x39d746=this[_0x2e50ba(0x187)][_0x2e50ba(0x13c)](_0x454b9b);_0x39d746==null||_0x39d746[_0x2e50ba(0x1a3)]();});}async[_0x2d8df1(0x162)](_0x576d67){var _0x55746d=_0x2d8df1;const _0xb85378=await this[_0x55746d(0x160)][_0x55746d(0x12f)](_0x576d67),_0x8d0c55=this['_injector'][_0x55746d(0x165)](_0x4e139f[_0x55746d(0x16a)],_0x576d67,_0xb85378);return _0x8d0c55[_0x55746d(0x1f4)](),this[_0x55746d(0x187)]['set'](_0x576d67,_0x8d0c55),_0x8d0c55;}},_0x4e139f[_0x2d8df1(0x177)]=_0x491bfa([_0x5735c6(0x0,_0x47b471[_0x2d8df1(0x1d3)]),_0x5735c6(0x1,_0x47b471[_0x2d8df1(0x1a6)](_0x47b471[_0x2d8df1(0x15d)])),_0x5735c6(0x2,_0x47b471[_0x2d8df1(0x1a6)](_0xb7ac80['CollaborationSessionService']))],_0x4e139f['LiveShareController']);var _0x11bc0d=(_0x18ce98=>(_0x18ce98[_0x2d8df1(0x137)]=_0x2d8df1(0x194),_0x18ce98[_0x2d8df1(0x18c)]=_0x2d8df1(0x118),_0x18ce98[_0x2d8df1(0x13b)]=_0x2d8df1(0x1f2),_0x18ce98[_0x2d8df1(0x11e)]='not-following',_0x18ce98[_0x2d8df1(0x13a)]=_0x2d8df1(0x129),_0x18ce98))(_0x11bc0d||{});const _0x34db1f=_0x2d8df1(0x114),_0x43facd=0xc8;_0x4e139f[_0x2d8df1(0x16a)]=class extends _0x47b471[_0x2d8df1(0x121)]{constructor(_0x12c77e,_0x19f229,_0x176d0a,_0x44f499,_0x3f883b){var _0x28006b=_0x2d8df1;super(),_0x8d077d(this,_0x28006b(0x15a),new _0x5a6ceb[(_0x28006b(0x192))](_0x28006b(0x118))),_0x8d077d(this,_0x28006b(0x1f9),this[_0x28006b(0x15a)]['asObservable']()),_0x8d077d(this,'_init',!0x1),_0x8d077d(this,'_commandDisposable',null),_0x8d077d(this,_0x28006b(0x14b),null),(this['_unitID']=_0x12c77e,this[_0x28006b(0x1c5)]=_0x19f229,this['_configService']=_0x176d0a,this[_0x28006b(0x1d2)]=_0x44f499,this[_0x28006b(0x172)]=_0x3f883b);}get['_status'](){var _0x3b3c89=_0x2d8df1;return this[_0x3b3c89(0x15a)][_0x3b3c89(0x1f8)]();}[_0x2d8df1(0x1a3)](){var _0x21b42f=_0x2d8df1,_0x4cf1f6;(_0x4cf1f6=this[_0x21b42f(0x11b)])==null||_0x4cf1f6[_0x21b42f(0x1a3)](),this[_0x21b42f(0x15a)][_0x21b42f(0x1f7)](_0x21b42f(0x118)),this[_0x21b42f(0x15a)][_0x21b42f(0x1c2)]();}[_0x2d8df1(0x1f4)](){var _0x5374b6=_0x2d8df1;this[_0x5374b6(0x14c)]||(this[_0x5374b6(0x14c)]=!0x0,this[_0x5374b6(0x1c5)][_0x5374b6(0x144)][_0x5374b6(0x1ac)](_0x14bd3b[_0x5374b6(0x1d0)](this[_0x5374b6(0x178)]))[_0x5374b6(0x185)](_0xccc599=>{var _0x256fdf=_0x5374b6;switch(_0xccc599){case _0xb7ac80[_0x256fdf(0x1a5)][_0x256fdf(0x137)]:this[_0x256fdf(0x142)]();break;case _0xb7ac80[_0x256fdf(0x1a5)][_0x256fdf(0x1fb)]:this[_0x256fdf(0x1b0)]();break;}}),this[_0x5374b6(0x1c5)][_0x5374b6(0x119)]['pipe'](_0x14bd3b[_0x5374b6(0x1d0)](this['dispose$']))[_0x5374b6(0x185)](_0x56ad08=>{var _0x49c003=_0x5374b6;const {eventID:_0x24d741}=_0x56ad08;switch(_0x24d741){case _0x5e9e6c[_0x49c003(0x16d)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x56ad08);break;case _0x5e9e6c[_0x49c003(0x16d)][_0x49c003(0x166)]:this[_0x49c003(0x1f6)](_0x56ad08);break;case _0x5e9e6c[_0x49c003(0x16d)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x5e9e6c['CollaborationEvent']['NEW_CHANGESETS']:this[_0x49c003(0x1d8)](_0x56ad08);break;}}));}[_0x2d8df1(0x1bc)](){var _0x3a4273=_0x2d8df1;this[_0x3a4273(0x1c5)][_0x3a4273(0x1fa)]({'eventID':_0x5e9e6c[_0x3a4273(0x16d)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3a4273(0x174)],'userID':this[_0x3a4273(0x1c5)]['getMemberID']()}},this[_0x3a4273(0x174)]);}[_0x2d8df1(0x1ba)](){var _0x12349a=_0x2d8df1;this[_0x12349a(0x158)]===_0x12349a(0x129)&&(this['_status$'][_0x12349a(0x1f7)](_0x12349a(0x118)),this[_0x12349a(0x1c5)][_0x12349a(0x1fa)]({'eventID':_0x5e9e6c['CollaborationEvent'][_0x12349a(0x12c)],'data':{'unitID':this[_0x12349a(0x174)]}},this[_0x12349a(0x174)]));}['startFollowing'](){var _0x38424e=_0x2d8df1;this['_status']===_0x38424e(0x171)&&(this[_0x38424e(0x15a)][_0x38424e(0x1f7)](_0x38424e(0x1f2)),this[_0x38424e(0x1b4)]());}['stopFollowing'](){var _0x333452=_0x2d8df1;this[_0x333452(0x158)]===_0x333452(0x1f2)&&this[_0x333452(0x17e)]();}[_0x2d8df1(0x1d9)](_0x1f8b54){var _0x1a5948=_0x2d8df1;const {presenter:_0x3c7367}=_0x1f8b54['data'],_0x3d9966=this[_0x1a5948(0x1c5)][_0x1a5948(0x1e6)]();this[_0x1a5948(0x14b)]=_0x3c7367,_0x3c7367===_0x3d9966?(this[_0x1a5948(0x17e)](),this[_0x1a5948(0x1ec)]()):this['_status']!=='not-following'&&(this[_0x1a5948(0x19e)](),this[_0x1a5948(0x1b4)]());}[_0x2d8df1(0x1e1)](){var _0xf126c5=_0x2d8df1;const _0x327c3e={'eventID':_0x5e9e6c['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0xf126c5(0x1c5)][_0xf126c5(0x1fa)](_0x327c3e,this[_0xf126c5(0x174)]);}[_0x2d8df1(0x1a0)](){var _0x19ae61=_0x2d8df1;this['_presenter']=null,this['_status']!==_0x19ae61(0x129)&&this[_0x19ae61(0x199)]();}[_0x2d8df1(0x1d8)](_0xe83392){var _0x15df5c=_0x2d8df1;if(this['_status']===_0x15df5c(0x1f2)&&this[_0x15df5c(0x14b)]===_0xe83392[_0x15df5c(0x179)]['memberID']){const _0x4ada02=_0x5e9e6c[_0x15df5c(0x11a)](_0xe83392[_0x15df5c(0x179)])[_0x15df5c(0x1b6)]['reverse']()[_0x15df5c(0x1df)](_0x483103=>_0x483103['id']===_0x5b782b['InsertSheetMutation']['id']);if(_0x4ada02){const _0x2bd5e3=_0x4ada02[_0x15df5c(0x1db)]['unitId'],_0x4d9adf=_0x4ada02[_0x15df5c(0x1db)][_0x15df5c(0x1cc)]['id'];setTimeout(()=>{var _0x1240e6=_0x15df5c;this[_0x1240e6(0x172)][_0x1240e6(0x122)](_0x5b782b['SetWorksheetActiveOperation']['id'],{'unitId':_0x2bd5e3,'subUnitId':_0x4d9adf},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x45b6fb=_0x2d8df1;this[_0x45b6fb(0x15a)][_0x45b6fb(0x1f7)](_0x45b6fb(0x129));const _0x5be4ee=new Map(),_0x51df9b=this['_commandDisposable']=new _0x47b471[(_0x45b6fb(0x147))]();_0x51df9b['add'](_0x47b471['toDisposable'](()=>{_0x5be4ee['forEach'](_0x551715=>_0x551715['complete']()),_0x5be4ee['clear']();})),_0x51df9b['add'](this[_0x45b6fb(0x172)][_0x45b6fb(0x1c7)](_0x1a0c08=>{var _0x417f00=_0x45b6fb,_0x23dcc7;if(_0x1a0c08[_0x417f00(0x1c8)]!==_0x47b471[_0x417f00(0x127)][_0x417f00(0x12e)]||!this[_0x417f00(0x1d2)][_0x417f00(0x1c9)](_0x1a0c08['id']))return;const {id:_0x5a2218}=_0x1a0c08;let _0x23f669;_0x5be4ee[_0x417f00(0x156)](_0x5a2218)?_0x23f669=_0x5be4ee['get'](_0x5a2218):(_0x23f669=new _0x5a6ceb['Subject'](),_0x5be4ee['set'](_0x5a2218,_0x23f669),_0x23f669[_0x417f00(0x1ac)](_0x14bd3b[_0x417f00(0x153)]((_0x23dcc7=this[_0x417f00(0x184)][_0x417f00(0x17a)](_0x34db1f))!=null?_0x23dcc7:_0x43facd,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x417f00(0x185)](_0x34cf51=>{var _0xcdd902=_0x417f00;this[_0xcdd902(0x1c5)][_0xcdd902(0x1fa)]({'eventID':_0x5e9e6c[_0xcdd902(0x16d)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xcdd902(0x174)],'operations':{[_0x34cf51['id']]:{'id':_0x34cf51['id'],'params':JSON[_0xcdd902(0x13f)](_0x34cf51['params'])}}}},this[_0xcdd902(0x174)]);})),_0x23f669[_0x417f00(0x1f7)](_0x1a0c08);})),this[_0x45b6fb(0x1d2)][_0x45b6fb(0x1f0)](this['_unitID'])[_0x45b6fb(0x117)](_0x59f3d8=>this[_0x45b6fb(0x1c5)][_0x45b6fb(0x1fa)]({'eventID':_0x5e9e6c['CollaborationEvent'][_0x45b6fb(0x166)],'data':{'unitID':this[_0x45b6fb(0x174)],'operations':{[_0x59f3d8['id']]:{'id':_0x59f3d8['id'],'params':JSON['stringify'](_0x59f3d8['params'])}}}},this[_0x45b6fb(0x174)]));}[_0x2d8df1(0x19e)](){var _0x168547=_0x2d8df1,_0x56c3dc;this['_status$'][_0x168547(0x1f7)]('idle'),(_0x56c3dc=this[_0x168547(0x11b)])==null||_0x56c3dc['dispose'](),this[_0x168547(0x11b)]=null;}[_0x2d8df1(0x1b4)](){var _0x11102b=_0x2d8df1,_0x1c6fca;(_0x1c6fca=this[_0x11102b(0x11b)])==null||_0x1c6fca[_0x11102b(0x1a3)](),this[_0x11102b(0x15a)][_0x11102b(0x1f7)](_0x11102b(0x1f2));}[_0x2d8df1(0x199)](){var _0x1cd624=_0x2d8df1,_0xf62c5d;this['_status$']['next']('idle'),(_0xf62c5d=this[_0x1cd624(0x11b)])==null||_0xf62c5d['dispose'](),this[_0x1cd624(0x11b)]=null;}[_0x2d8df1(0x17e)](){var _0x12ac7c=_0x2d8df1,_0x4fcf5f;this[_0x12ac7c(0x15a)]['next'](_0x12ac7c(0x171)),(_0x4fcf5f=this[_0x12ac7c(0x11b)])==null||_0x4fcf5f[_0x12ac7c(0x1a3)]();}[_0x2d8df1(0x1f6)](_0x1892c4){var _0x559d12=_0x2d8df1;if([_0x559d12(0x129),'not-following',_0x559d12(0x194)][_0x559d12(0x143)](this['_status'])||!_0x1892c4['data']['presenter']||_0x1892c4[_0x559d12(0x179)]['presenter']===this[_0x559d12(0x1c5)][_0x559d12(0x1e6)]())return;this[_0x559d12(0x158)]===_0x559d12(0x118)&&this[_0x559d12(0x1b4)]();const _0x5e0548=_0x1892c4[_0x559d12(0x179)]['operations'];Object['values'](_0x5e0548)['forEach'](_0x465e3e=>{var _0x358998=_0x559d12;this['_commandService'][_0x358998(0x122)](_0x465e3e['id'],_0x465e3e[_0x358998(0x1db)]?JSON['parse'](_0x465e3e['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x379314=_0x2d8df1,_0x3fe069;this[_0x379314(0x15a)][_0x379314(0x1f7)]('offline'),(_0x3fe069=this[_0x379314(0x11b)])==null||_0x3fe069[_0x379314(0x1a3)]();}[_0x2d8df1(0x1b0)](){var _0x4c2013=_0x2d8df1;this['_status$']['next'](_0x4c2013(0x118)),this[_0x4c2013(0x1e1)]();}},_0x4e139f[_0x2d8df1(0x16a)]=_0x491bfa([_0x5735c6(0x2,_0x47b471['IConfigService']),_0x5735c6(0x3,_0x47b471[_0x2d8df1(0x1a6)](_0x11c39a)),_0x5735c6(0x4,_0x47b471[_0x2d8df1(0x191)])],_0x4e139f['LiveShareCoordinator']);function _0x1169bd(){var _0x415426=_0x2d8df1;const _0x52f6fa=_0x56fdec['useDependency'](_0x4e139f[_0x415426(0x177)]),_0x55186b=_0x56fdec[_0x415426(0x16b)](_0x47b471[_0x415426(0x1d3)]),_0x415e36=_0x56fdec[_0x415426(0x1e3)](()=>_0x55186b[_0x415426(0x15c)](_0x47b471['UniverInstanceType'][_0x415426(0x13d)]),void 0x0,!0x1,[]),[_0x367467,_0x146f6c]=_0x3a80dc['useState'](null),[_0x1e63c0,_0x3a77ca]=_0x3a80dc[_0x415426(0x18d)](_0x11bc0d[_0x415426(0x18c)]),_0x31d82c=_0x3a80dc[_0x415426(0x1de)](null);return _0x3a80dc['useEffect'](()=>(_0x415e36&&_0x52f6fa[_0x415426(0x182)](_0x415e36[_0x415426(0x14d)]())[_0x415426(0x150)](_0x4993ac=>{var _0x3b631e=_0x415426;_0x146f6c(_0x4993ac),_0x31d82c[_0x3b631e(0x133)]=_0x4993ac['status$']['subscribe'](_0x42a29c=>{_0x3a77ca(_0x42a29c);});}),()=>{var _0x18e08a=_0x415426,_0x3f2e11;(_0x3f2e11=_0x31d82c[_0x18e08a(0x133)])==null||_0x3f2e11[_0x18e08a(0x18b)](),_0x31d82c[_0x18e08a(0x133)]=null;}),[_0x415e36,_0x52f6fa]),_0x367467?_0x5adbed[_0x415426(0x19a)](_0x371bd8['Dropdown'],{'align':_0x415426(0x141),'disabled':_0x1e63c0===_0x11bc0d[_0x415426(0x137)],'className':_0x415426(0x1af),'overlay':_0x5adbed['jsx'](_0x5da605,{'status':_0x1e63c0,'coordinator':_0x367467}),'children':_0x5adbed['jsx'](_0x415426(0x1dd),{'className':_0x371bd8[_0x415426(0x152)](_0x415426(0x112),{'univer-cursor-not-allowed':_0x1e63c0===_0x11bc0d[_0x415426(0x137)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1e63c0!==_0x11bc0d[_0x415426(0x137)]}),'type':_0x415426(0x1dd),'children':_0x5adbed[_0x415426(0x19a)](_0x308450,{'className':'univer-size-4'})})}):null;}function _0x5da605(_0x3349fa){var _0x3f7751=_0x2d8df1;const {status:_0x5ec136,coordinator:_0x110079}=_0x3349fa;switch(_0x5ec136){case _0x11bc0d['IDLE']:return _0x5adbed[_0x3f7751(0x19a)](_0x507a46,{'coordinator':_0x110079});case _0x11bc0d[_0x3f7751(0x13b)]:return _0x5adbed['jsx'](_0x5d2c53,{'coordinator':_0x110079});case _0x11bc0d[_0x3f7751(0x11e)]:return _0x5adbed[_0x3f7751(0x19a)](_0x53372c,{'coordinator':_0x110079});case _0x11bc0d['OFFLINE']:return _0x5adbed[_0x3f7751(0x19a)](_0x54edfc,{});case _0x11bc0d['PRESENTING']:return _0x5adbed[_0x3f7751(0x19a)](_0x5f1a2a,{'coordinator':_0x110079});default:return null;}}function _0x507a46(_0x10d299){var _0x1af55f=_0x2d8df1;const {coordinator:_0x3d0d86}=_0x10d299;return _0x5adbed[_0x1af55f(0x12a)](_0x5adbed['Fragment'],{'children':[_0x5adbed[_0x1af55f(0x19a)]('div',{'className':_0x1af55f(0x186),'children':_0x1af55f(0x161)}),_0x5adbed[_0x1af55f(0x19a)](_0x371bd8[_0x1af55f(0x16e)],{'size':'small','type':_0x1af55f(0x17f),'onClick':()=>_0x3d0d86[_0x1af55f(0x1bc)](),'children':'Start'})]});}function _0x5d2c53(_0x457304){var _0x1145aa=_0x2d8df1;const {coordinator:_0x42588d}=_0x457304;return _0x5adbed['jsxs'](_0x5adbed['Fragment'],{'children':[_0x5adbed[_0x1145aa(0x19a)](_0x1145aa(0x1ae),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1145aa(0x126)}),_0x5adbed['jsx'](_0x371bd8['Button'],{'size':_0x1145aa(0x1c4),'type':_0x1145aa(0x17f),'onClick':()=>_0x42588d[_0x1145aa(0x195)](),'children':'Stop\x20following'})]});}function _0x53372c(_0x4c779c){var _0x4d545a=_0x2d8df1;const {coordinator:_0x301b0a}=_0x4c779c;return _0x5adbed[_0x4d545a(0x12a)](_0x5adbed['Fragment'],{'children':[_0x5adbed['jsx'](_0x4d545a(0x1ae),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x5adbed[_0x4d545a(0x19a)](_0x371bd8[_0x4d545a(0x16e)],{'size':_0x4d545a(0x1c4),'type':_0x4d545a(0x19f),'onClick':()=>_0x301b0a[_0x4d545a(0x1e0)](),'children':_0x4d545a(0x15f)})]});}function _0x5f1a2a(_0x1c1630){var _0x4e920f=_0x2d8df1;const {coordinator:_0x1dc757}=_0x1c1630;return _0x5adbed['jsxs'](_0x5adbed[_0x4e920f(0x111)],{'children':[_0x5adbed[_0x4e920f(0x19a)](_0x4e920f(0x1ae),{'className':_0x4e920f(0x186),'children':_0x4e920f(0x1d7)}),_0x5adbed[_0x4e920f(0x19a)](_0x371bd8[_0x4e920f(0x16e)],{'size':'small','type':_0x4e920f(0x17f),'onClick':()=>_0x1dc757[_0x4e920f(0x1ba)](),'children':'Stop\x20presenting'})]});}function _0x54edfc(){var _0x3a1fa7=_0x2d8df1;return _0x5adbed[_0x3a1fa7(0x19a)](_0x5adbed[_0x3a1fa7(0x111)],{'children':_0x3a1fa7(0x11f)});}var _0x428fb4=Object[_0x2d8df1(0x1a1)],_0x2b1314=(_0x1e914e,_0x59c73d,_0x2b90b4,_0x2bed12)=>{var _0x42b117=_0x2d8df1;for(var _0x1403c9=_0x2bed12>0x1?void 0x0:_0x2bed12?_0x428fb4(_0x59c73d,_0x2b90b4):_0x59c73d,_0x1a3f90=_0x1e914e[_0x42b117(0x136)]-0x1,_0x1b6482;_0x1a3f90>=0x0;_0x1a3f90--)(_0x1b6482=_0x1e914e[_0x1a3f90])&&(_0x1403c9=_0x1b6482(_0x1403c9)||_0x1403c9);return _0x1403c9;},_0x128dfd=(_0x3d0d23,_0x47f88e)=>(_0x2567c5,_0x431ffb)=>_0x47f88e(_0x2567c5,_0x431ffb,_0x3d0d23);_0x4e139f[_0x2d8df1(0x1bf)]=class extends _0x47b471[_0x2d8df1(0x1ad)]{constructor(_0x3fae9b,_0x3c47a2){var _0x5af2fd=_0x2d8df1;super(),this[_0x5af2fd(0x11c)]=_0x3fae9b,this['_uiPartsService']=_0x3c47a2,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x37ac0e=_0x2d8df1;this[_0x37ac0e(0x170)](this[_0x37ac0e(0x1cb)][_0x37ac0e(0x197)](_0x56fdec['BuiltInUIPart'][_0x37ac0e(0x163)],()=>_0x56fdec[_0x37ac0e(0x189)](_0x1169bd,this[_0x37ac0e(0x11c)])));}},_0x4e139f['DesktopLiveShareController']=_0x2b1314([_0x128dfd(0x0,_0x47b471[_0x2d8df1(0x1a6)](_0x47b471[_0x2d8df1(0x15d)])),_0x128dfd(0x1,_0x56fdec['IUIPartsService'])],_0x4e139f[_0x2d8df1(0x1bf)]);var _0xefcecb=Object['defineProperty'],_0x18251a=Object[_0x2d8df1(0x1a1)],_0x2cfd0e=(_0x4ea742,_0x2737be,_0xe74c6d)=>_0x2737be in _0x4ea742?_0xefcecb(_0x4ea742,_0x2737be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe74c6d}):_0x4ea742[_0x2737be]=_0xe74c6d,_0x49ecaf=(_0x54275b,_0x2ddc03,_0xeff9c9,_0x10552f)=>{var _0x1077a4=_0x2d8df1;for(var _0x51cbc0=_0x10552f>0x1?void 0x0:_0x10552f?_0x18251a(_0x2ddc03,_0xeff9c9):_0x2ddc03,_0x5fdf07=_0x54275b[_0x1077a4(0x136)]-0x1,_0x56f2e9;_0x5fdf07>=0x0;_0x5fdf07--)(_0x56f2e9=_0x54275b[_0x5fdf07])&&(_0x51cbc0=_0x56f2e9(_0x51cbc0)||_0x51cbc0);return _0x51cbc0;},_0x90e1b0=(_0x4e879f,_0x51b274)=>(_0x29c5ec,_0x238b74)=>_0x51b274(_0x29c5ec,_0x238b74,_0x4e879f),_0x5abdb2=(_0x8e8911,_0x19c115,_0x571264)=>_0x2cfd0e(_0x8e8911,typeof _0x19c115!='symbol'?_0x19c115+'':_0x19c115,_0x571264);const _0x2b6cc3=_0x2d8df1(0x149);_0x4e139f[_0x2d8df1(0x1e4)]=class extends _0x47b471[_0x2d8df1(0x120)]{constructor(_0x24a3ae=_0x4d5ec2,_0x2f74e3,_0x3f611d){var _0x309905=_0x2d8df1;super(),this['_config']=_0x24a3ae,this['_injector']=_0x2f74e3,this[_0x309905(0x184)]=_0x3f611d;const {..._0x466cc5}=_0x47b471['merge']({},_0x4d5ec2,this[_0x309905(0x135)]);this['_configService'][_0x309905(0x193)](_0x5ca371,_0x466cc5);}[_0x2d8df1(0x1d6)](){var _0x53b624=_0x2d8df1;_0x47b471[_0x53b624(0x132)](this[_0x53b624(0x11c)],_0x47b471['mergeOverrideWithDependencies']([[_0x11c39a],[_0x4e139f[_0x53b624(0x177)]],[_0x522d95],[_0x4e139f[_0x53b624(0x1bf)]]],this[_0x53b624(0x135)][_0x53b624(0x116)])),_0x47b471[_0x53b624(0x1d1)](this[_0x53b624(0x11c)],[[_0x522d95]]);}[_0x2d8df1(0x168)](){var _0x189861=_0x2d8df1;_0x47b471[_0x189861(0x1d1)](this['_injector'],[[_0x4e139f[_0x189861(0x1bf)]]]);}},_0x5abdb2(_0x4e139f[_0x2d8df1(0x1e4)],_0x2d8df1(0x1c8),_0x47b471[_0x2d8df1(0x1fc)]['UNIVER_UNKNOWN']),_0x5abdb2(_0x4e139f[_0x2d8df1(0x1e4)],_0x2d8df1(0x173),_0x2b6cc3),_0x4e139f[_0x2d8df1(0x1e4)]=_0x49ecaf([_0x47b471[_0x2d8df1(0x175)](_0xb7ac80['UniverCollaborationClientPlugin']),_0x90e1b0(0x1,_0x47b471[_0x2d8df1(0x1a6)](_0x47b471[_0x2d8df1(0x15d)])),_0x90e1b0(0x2,_0x47b471[_0x2d8df1(0x1a8)])],_0x4e139f[_0x2d8df1(0x1e4)]),_0x4e139f[_0x2d8df1(0x16c)]=_0x1169bd,_0x4e139f[_0x2d8df1(0x181)]=_0x11c39a,_0x4e139f[_0x2d8df1(0x155)]=_0x11bc0d,Object[_0x2d8df1(0x1ce)](_0x4e139f,Symbol['toStringTag'],{'value':_0x2d8df1(0x140)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.6.8",
3
+ "version": "0.6.9-experimental.20250403-d914ddc",
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.2.31",
50
- "@univerjs-pro/collaboration": "0.6.8",
51
- "@univerjs-pro/collaboration-client": "0.6.8",
52
- "@univerjs/core": "0.6.8",
53
- "@univerjs/design": "0.6.8",
54
- "@univerjs/sheets-ui": "0.6.8",
55
- "@univerjs/sheets": "0.6.8",
56
- "@univerjs/ui": "0.6.8"
50
+ "@univerjs-pro/collaboration": "0.6.9-experimental.20250403-d914ddc",
51
+ "@univerjs-pro/collaboration-client": "0.6.9-experimental.20250403-d914ddc",
52
+ "@univerjs/design": "0.6.9-experimental.20250403-d914ddc",
53
+ "@univerjs/sheets-ui": "0.6.9-experimental.20250403-d914ddc",
54
+ "@univerjs/sheets": "0.6.9-experimental.20250403-d914ddc",
55
+ "@univerjs/ui": "0.6.9-experimental.20250403-d914ddc",
56
+ "@univerjs/core": "0.6.9-experimental.20250403-d914ddc"
57
57
  },
58
58
  "devDependencies": {
59
59
  "react": "18.3.1",
@@ -62,7 +62,7 @@
62
62
  "typescript": "^5.8.2",
63
63
  "vite": "^6.2.2",
64
64
  "vitest": "^3.0.9",
65
- "@univerjs-infra/shared": "0.6.8",
65
+ "@univerjs-infra/shared": "0.6.9",
66
66
  "@univerjs/protocol": "0.1.45"
67
67
  },
68
68
  "scripts": {