@univerjs-pro/live-share 0.7.0-nightly.202505211607 → 0.7.0-nightly.202505231607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x1cf8(_0x70c5ae,_0x259a74){var _0x1d59f4=_0x1d59();return _0x1cf8=function(_0x1cf83b,_0xb24ab7){_0x1cf83b=_0x1cf83b-0x1f1;var _0x1ef064=_0x1d59f4[_0x1cf83b];return _0x1ef064;},_0x1cf8(_0x70c5ae,_0x259a74);}var _0x31d5c1=_0x1cf8;(function(_0x3527f8,_0x237ea9){var _0x1d316f=_0x1cf8,_0x613e84=_0x3527f8();while(!![]){try{var _0x449fcc=-parseInt(_0x1d316f(0x21f))/0x1+-parseInt(_0x1d316f(0x24f))/0x2+parseInt(_0x1d316f(0x227))/0x3*(-parseInt(_0x1d316f(0x1f4))/0x4)+parseInt(_0x1d316f(0x210))/0x5+-parseInt(_0x1d316f(0x24d))/0x6*(parseInt(_0x1d316f(0x268))/0x7)+parseInt(_0x1d316f(0x2d4))/0x8+parseInt(_0x1d316f(0x206))/0x9;if(_0x449fcc===_0x237ea9)break;else _0x613e84['push'](_0x613e84['shift']());}catch(_0x1ddc36){_0x613e84['push'](_0x613e84['shift']());}}}(_0x1d59,0xc8876));var U=Object[_0x31d5c1(0x2a6)],F=(_0x4583df,_0x3c5147,_0x57dcb5)=>_0x3c5147 in _0x4583df?U(_0x4583df,_0x3c5147,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57dcb5}):_0x4583df[_0x3c5147]=_0x57dcb5,v=(_0x3a0cea,_0x31307e,_0x525001)=>F(_0x3a0cea,typeof _0x31307e!='symbol'?_0x31307e+'':_0x31307e,_0x525001);Object[_0x31d5c1(0x2a6)](exports,Symbol[_0x31d5c1(0x219)],{'value':_0x31d5c1(0x286)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require(_0x31d5c1(0x2a3)),D=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require(_0x31d5c1(0x244)),g=require('@univerjs/design'),f=require(_0x31d5c1(0x269)),_=require('@univerjs-pro/collaboration'),x=require(_0x31d5c1(0x1fc)),b=require(_0x31d5c1(0x217)),$=_0x31d5c1(0x284),L={};class E extends o['Disposable']{constructor(){var _0x2f14b7=_0x31d5c1;super(...arguments),v(this,_0x2f14b7(0x21c),new Set()),v(this,_0x2f14b7(0x28b),new Set());}['registerSharedOperation'](_0x2e40d5){var _0xd5b5bb=_0x31d5c1;return this[_0xd5b5bb(0x21c)]['add'](_0x2e40d5),o[_0xd5b5bb(0x262)](()=>this['_sharedOperations']['delete'](_0x2e40d5));}[_0x31d5c1(0x28d)](_0x4f61dd){var _0x51143b=_0x31d5c1;return this[_0x51143b(0x28b)][_0x51143b(0x223)](_0x4f61dd),o['toDisposable'](()=>this[_0x51143b(0x28b)]['delete'](_0x4f61dd));}[_0x31d5c1(0x20e)](_0x276d6c){var _0x58b705=_0x31d5c1;return this['_sharedOperations'][_0x58b705(0x238)](_0x276d6c);}[_0x31d5c1(0x2aa)](_0x28d9b4){var _0x58bd5f=_0x31d5c1;return Array[_0x58bd5f(0x2a2)](this[_0x58bd5f(0x28b)])['map'](_0x47036b=>_0x47036b(_0x28d9b4));}}var H=Object[_0x31d5c1(0x239)],V=(_0x5dbb64,_0x583fa4,_0x3fb549,_0xd47199)=>{var _0x5eb309=_0x31d5c1;for(var _0x4643c0=_0xd47199>0x1?void 0x0:_0xd47199?H(_0x583fa4,_0x3fb549):_0x583fa4,_0x49a1f9=_0x5dbb64[_0x5eb309(0x24b)]-0x1,_0x2e7204;_0x49a1f9>=0x0;_0x49a1f9--)(_0x2e7204=_0x5dbb64[_0x49a1f9])&&(_0x4643c0=_0x2e7204(_0x4643c0)||_0x4643c0);return _0x4643c0;},k=(_0x315d5f,_0x5da76b)=>(_0x192e5d,_0x2b5d5a)=>_0x5da76b(_0x192e5d,_0x2b5d5a,_0x315d5f);function _0x1d59(){var _0x5f41e3=['assign','_beIdle','trim','xlink:href','0\x200\x2016\x2016','rxjs/operators','CollaborationEvent','toStringTag','colorChannel1','registerComponent','_sharedOperations','prototype','Fragment','559327dkLUvs','LiveShareController','button','createElement','add','IDLE','sheet','_init','93AMoWUv','startFollowing','getValue','following','_config','dispose$','HEADER_MENU','pluginName','pipe','values','LIVESHARE_TERMINATE','_entities','SessionStatus','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','createInstance','You\x27re\x20not\x20following\x20the\x20presenter','UniverInstanceType','has','getOwnPropertyDescriptor','mask','presenter','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','jsx','Plugin','mergeOverrideWithDependencies','PRESENTING','data','_unitID','LIVESHARE_OPERATION','react/jsx-runtime','_handleTerminate','end','sessionStatus$','FOLLOWING','getOwnPropertySymbols','random','length','fill','28644spyrLG','UNIVER_SHEET','1111022IOLuQm','registerDependencies','event$','unsubscribe','forwardRef','function','Stop\x20presenting','Disposable','UniverIcon','_handleOperation','LiveShareStatus','useObservable','tryStartPresenting','use','concat','SAME_OPERATION_SHARE_INTERVAL','LiveShareSingle','url(#$1','executeCommand','toDisposable','onStarting','connectInjector','defs','stringify','DesktopLiveShareController','371TcmkUX','react','UniverCollaborationClientPlugin','1em','_collabSessionService','setConfig','_status$','Present\x20this\x20document','memberID','getTypeOfUnitAdded$','mutations','_handleOffline','Subject','SetWorksheetActiveOperation','stopPresenting','replace','_stopFollowing','_univerInstanceService','jsxs','current','_handleNewChangeSets','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','displayName','symbol','text','div','clear','getConfig','live-share.config','_handleOnline','Module','getLiveShareCoordinator','_handleNewHost','useState','_startLiveShareCoordinator','_reporters','get','registerInitialStateReporter','unitId','hasOwnProperty','not-following','RxDisposable','univer-size-4','_commandDisposable','apply','_stopPresenting','init','dispose','LiveShareService','stopFollowing','evenodd','IConfigService','default','getCurrentTypeOfUnit$','live-share-single','none','forEach','svg','from','@univerjs/sheets','_uiPartsService','indexOf','defineProperty','path','_commandService','IUniverInstanceService','getInitialStates','parseProtocolChangeset','LiveShareCoordinator','Injector','NOT_FOLLOWING','throttleTime','offline','find','merge','className','LIVESHARE_NEW_HOST','params','extend','CommandType','complete','OPERATION','call','touchDependencies','getUnitId','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','defIds','useEffect','icon','OFFLINE','BuiltInUIPart','_status','ICommandService','Button','entries','useRef','idSuffix','getMemberID','registerSharedOperation','idle','_fetchOperations','BehaviorSubject','useDependency','tag','disposeWithMe','Dropdown','map','InsertSheetMutation','7707224PtOHfp','DisposableCollection','NEW_CHANGESETS','You\x27re\x20following\x20the\x20presenter','set','requireSession','_injector','type','_collabSession','univer-w-full\x20univer-mb-3\x20univer-text-sm','5452RDdELe','_presenter','Stop\x20following','reverse','_liveShareService','onRendered','includes','You\x27re\x20presenting\x20the\x20document','rxjs','children','_startFollowing','string','attrs','subscribe','presenting','getTypeOfUnitDisposed$','DependentOn','next','8128773auAJcg','You\x27are\x20offline.','UniverLiveSharePlugin','send','_startPresenting','currentColor','then','Inject','shouldShareOperation','takeUntil','1824395YHOEGz','_configService'];_0x1d59=function(){return _0x5f41e3;};return _0x1d59();}let O=class extends o[_0x31d5c1(0x256)]{constructor(_0x590528){var _0x329447=_0x31d5c1;super(),this[_0x329447(0x1f8)]=_0x590528,this[_0x329447(0x226)]();}[_0x31d5c1(0x226)](){var _0x4bf2bd=_0x31d5c1;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x4bf2bd(0x275)]['id']]['forEach'](_0x1a15e9=>{var _0x4135e9=_0x4bf2bd;this[_0x4135e9(0x2d0)](this[_0x4135e9(0x1f8)][_0x4135e9(0x2ca)](_0x1a15e9));});}};O=V([k(0x0,o[_0x31d5c1(0x20d)](E))],O);var u=function(){var _0x4d141=_0x31d5c1;return u=Object[_0x4d141(0x212)]||function(_0x2fe168){var _0x2d7384=_0x4d141;for(var _0x1576c0,_0x869ce8=0x1,_0x2db1fb=arguments['length'];_0x869ce8<_0x2db1fb;_0x869ce8++){_0x1576c0=arguments[_0x869ce8];for(var _0x338499 in _0x1576c0)Object[_0x2d7384(0x21d)][_0x2d7384(0x28f)][_0x2d7384(0x2ba)](_0x1576c0,_0x338499)&&(_0x2fe168[_0x338499]=_0x1576c0[_0x338499]);}return _0x2fe168;},u[_0x4d141(0x294)](this,arguments);},M=function(_0x34c9ef,_0xcb452f){var _0x38a0f0=_0x31d5c1,_0x3a9c06={};for(var _0x503c5a in _0x34c9ef)Object[_0x38a0f0(0x21d)][_0x38a0f0(0x28f)]['call'](_0x34c9ef,_0x503c5a)&&_0xcb452f[_0x38a0f0(0x2a5)](_0x503c5a)<0x0&&(_0x3a9c06[_0x503c5a]=_0x34c9ef[_0x503c5a]);if(_0x34c9ef!=null&&typeof Object[_0x38a0f0(0x249)]==_0x38a0f0(0x254)){for(var _0x7a8fff=0x0,_0x503c5a=Object[_0x38a0f0(0x249)](_0x34c9ef);_0x7a8fff<_0x503c5a[_0x38a0f0(0x24b)];_0x7a8fff++)_0xcb452f[_0x38a0f0(0x2a5)](_0x503c5a[_0x7a8fff])<0x0&&Object[_0x38a0f0(0x21d)]['propertyIsEnumerable'][_0x38a0f0(0x2ba)](_0x34c9ef,_0x503c5a[_0x7a8fff])&&(_0x3a9c06[_0x503c5a[_0x7a8fff]]=_0x34c9ef[_0x503c5a[_0x7a8fff]]);}return _0x3a9c06;},j=f[_0x31d5c1(0x253)](function(_0x1e440c,_0x4c6b8d){var _0x560803=_0x31d5c1,_0x212e8e=_0x1e440c[_0x560803(0x2c0)],_0x45c16a=_0x1e440c['id'],_0x265fda=_0x1e440c[_0x560803(0x2b3)],_0x109c40=_0x1e440c[_0x560803(0x2b6)],_0x113d71=M(_0x1e440c,[_0x560803(0x2c0),'id','className',_0x560803(0x2b6)]),_0x2af50a='univerjs-icon\x20univerjs-icon-'[_0x560803(0x25d)](_0x45c16a,'\x20')['concat'](_0x265fda||'')[_0x560803(0x214)](),_0xe89384=f[_0x560803(0x2c7)]('_'[_0x560803(0x25d)](G()));return y(_0x212e8e,''[_0x560803(0x25d)](_0x45c16a),{'defIds':_0x212e8e[_0x560803(0x2be)],'idSuffix':_0xe89384[_0x560803(0x27b)]},u({'ref':_0x4c6b8d,'className':_0x2af50a},_0x113d71),_0x109c40);});function y(_0x49cbfe,_0x41706c,_0x40370b,_0x478bf7,_0x361820){var _0x31e492=_0x31d5c1;return f['createElement'](_0x49cbfe[_0x31e492(0x2cf)],u(u({'key':_0x41706c},q(_0x49cbfe,_0x40370b,_0x361820)),_0x478bf7),(W(_0x49cbfe,_0x40370b)['children']||[])[_0x31e492(0x2d2)](function(_0x229c12,_0x2fb5ca){var _0x6b0fdd=_0x31e492;return y(_0x229c12,''[_0x6b0fdd(0x25d)](_0x41706c,'-')[_0x6b0fdd(0x25d)](_0x49cbfe[_0x6b0fdd(0x2cf)],'-')[_0x6b0fdd(0x25d)](_0x2fb5ca),_0x40370b,void 0x0,_0x361820);}));}function q(_0x1865c5,_0x321f47,_0x29c99f){var _0xd56708=_0x31d5c1,_0xf0bb98=u({},_0x1865c5[_0xd56708(0x200)]);_0x29c99f!=null&&_0x29c99f[_0xd56708(0x21a)]&&_0xf0bb98[_0xd56708(0x24c)]===_0xd56708(0x21a)&&(_0xf0bb98[_0xd56708(0x24c)]=_0x29c99f[_0xd56708(0x21a)]),_0x1865c5[_0xd56708(0x2cf)]===_0xd56708(0x23a)&&_0xf0bb98['id']&&(_0xf0bb98['id']=_0xf0bb98['id']+_0x321f47[_0xd56708(0x2c8)]),Object[_0xd56708(0x2c6)](_0xf0bb98)['forEach'](function(_0x4d8dc8){var _0x5b6e2e=_0xd56708,_0x581746=_0x4d8dc8[0x0],_0x38303d=_0x4d8dc8[0x1];_0x581746===_0x5b6e2e(0x23a)&&typeof _0x38303d==_0x5b6e2e(0x1ff)&&(_0xf0bb98[_0x581746]=_0x38303d[_0x5b6e2e(0x277)](/url\(#(.*)\)/,_0x5b6e2e(0x260)[_0x5b6e2e(0x25d)](_0x321f47['idSuffix'],')')));});var _0x3c32f0=_0x321f47[_0xd56708(0x2be)];return!_0x3c32f0||_0x3c32f0[_0xd56708(0x24b)]===0x0||(_0x1865c5[_0xd56708(0x2cf)]===_0xd56708(0x25c)&&_0xf0bb98[_0xd56708(0x215)]&&(_0xf0bb98[_0xd56708(0x215)]=_0xf0bb98[_0xd56708(0x215)]+_0x321f47[_0xd56708(0x2c8)]),Object[_0xd56708(0x2c6)](_0xf0bb98)[_0xd56708(0x2a0)](function(_0xfce57d){var _0x343a59=_0xd56708,_0x506de4=_0xfce57d[0x0],_0x1a8466=_0xfce57d[0x1];typeof _0x1a8466==_0x343a59(0x1ff)&&(_0xf0bb98[_0x506de4]=_0x1a8466[_0x343a59(0x277)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x321f47[_0x343a59(0x2c8)],')')));})),_0xf0bb98;}function W(_0xfdcaad,_0x8fb305){var _0x35dcb2=_0x31d5c1,_0x57e225,_0x290096=_0x8fb305['defIds'];return!_0x290096||_0x290096[_0x35dcb2(0x24b)]===0x0?_0xfdcaad:_0xfdcaad[_0x35dcb2(0x2cf)]===_0x35dcb2(0x265)&&(!((_0x57e225=_0xfdcaad[_0x35dcb2(0x1fd)])===null||_0x57e225===void 0x0)&&_0x57e225[_0x35dcb2(0x24b)])?u(u({},_0xfdcaad),{'children':_0xfdcaad[_0x35dcb2(0x1fd)][_0x35dcb2(0x2d2)](function(_0x38c557){var _0x23ad8f=_0x35dcb2;return typeof _0x38c557[_0x23ad8f(0x200)]['id']==_0x23ad8f(0x1ff)&&_0x290096&&_0x290096[_0x23ad8f(0x2a5)](_0x38c557[_0x23ad8f(0x200)]['id'])>-0x1?u(u({},_0x38c557),{'attrs':u(u({},_0x38c557[_0x23ad8f(0x200)]),{'id':_0x38c557[_0x23ad8f(0x200)]['id']+_0x8fb305[_0x23ad8f(0x2c8)]})}):_0x38c557;})}):_0xfdcaad;}function G(){var _0x1c77a3=_0x31d5c1;return Math[_0x1c77a3(0x24a)]()['toString'](0x24)['substring'](0x2,0x8);}j[_0x31d5c1(0x27e)]=_0x31d5c1(0x257);var B={'tag':_0x31d5c1(0x2a1),'attrs':{'fill':_0x31d5c1(0x29f),'viewBox':_0x31d5c1(0x216),'width':_0x31d5c1(0x26b),'height':'1em'},'children':[{'tag':_0x31d5c1(0x2a7),'attrs':{'fill':'currentColor','d':_0x31d5c1(0x23c)}},{'tag':_0x31d5c1(0x2a7),'attrs':{'fill':_0x31d5c1(0x20b),'d':_0x31d5c1(0x27d),'fillRule':_0x31d5c1(0x29a),'clipRule':_0x31d5c1(0x29a)}}]},P=f[_0x31d5c1(0x253)](function(_0x14eaa9,_0x4d6770){var _0x8ed8ee=_0x31d5c1;return f[_0x8ed8ee(0x222)](j,Object[_0x8ed8ee(0x212)]({},_0x14eaa9,{'id':_0x8ed8ee(0x29e),'ref':_0x4d6770,'icon':B}));});P[_0x31d5c1(0x27e)]=_0x31d5c1(0x25f);var Y=Object[_0x31d5c1(0x239)],R=(_0x55ca34,_0x3560fb,_0x5062df,_0x5e83bf)=>{var _0x57de5f=_0x31d5c1;for(var _0x245ae6=_0x5e83bf>0x1?void 0x0:_0x5e83bf?Y(_0x3560fb,_0x5062df):_0x3560fb,_0x5e143d=_0x55ca34[_0x57de5f(0x24b)]-0x1,_0x57e2f7;_0x5e143d>=0x0;_0x5e143d--)(_0x57e2f7=_0x55ca34[_0x5e143d])&&(_0x245ae6=_0x57e2f7(_0x245ae6)||_0x245ae6);return _0x245ae6;},S=(_0x4e1c83,_0x54c9f9)=>(_0x1ecfe5,_0x371d2e)=>_0x54c9f9(_0x1ecfe5,_0x371d2e,_0x4e1c83);exports[_0x31d5c1(0x220)]=class extends o['RxDisposable']{constructor(_0x563582,_0x437481,_0x235e2e){var _0x26fac6=_0x31d5c1;super(),v(this,_0x26fac6(0x232),new Map()),(this[_0x26fac6(0x279)]=_0x563582,this[_0x26fac6(0x2da)]=_0x437481,this[_0x26fac6(0x26c)]=_0x235e2e,this[_0x26fac6(0x226)]());}async[_0x31d5c1(0x287)](_0x1cf58a){var _0x59b363=_0x31d5c1;return this['_entities'][_0x59b363(0x238)](_0x1cf58a)||await this[_0x59b363(0x28a)](_0x1cf58a),this[_0x59b363(0x232)][_0x59b363(0x28c)](_0x1cf58a);}['_init'](){var _0x30194f=_0x31d5c1;this[_0x30194f(0x279)][_0x30194f(0x271)](o[_0x30194f(0x237)][_0x30194f(0x24e)])[_0x30194f(0x22f)](b[_0x30194f(0x20f)](this[_0x30194f(0x22c)]))[_0x30194f(0x201)](async _0x94b83=>{var _0x35dec4=_0x30194f;const _0x312c20=_0x94b83['getUnitId']();this[_0x35dec4(0x232)]['has'](_0x312c20)||this[_0x35dec4(0x28a)](_0x312c20);}),this[_0x30194f(0x279)][_0x30194f(0x203)](o[_0x30194f(0x237)][_0x30194f(0x24e)])[_0x30194f(0x22f)](b[_0x30194f(0x20f)](this[_0x30194f(0x22c)]))['subscribe'](_0x3d006a=>{var _0xe70b7=_0x30194f;const _0x35cd96=_0x3d006a[_0xe70b7(0x2bc)](),_0xfdcef6=this[_0xe70b7(0x232)][_0xe70b7(0x28c)](_0x35cd96);_0xfdcef6==null||_0xfdcef6['dispose']();});}async[_0x31d5c1(0x28a)](_0x147085){var _0x42b3aa=_0x31d5c1;const _0x199000=await this[_0x42b3aa(0x26c)][_0x42b3aa(0x2d9)](_0x147085),_0x25ec7d=this[_0x42b3aa(0x2da)][_0x42b3aa(0x235)](exports[_0x42b3aa(0x2ac)],_0x147085,_0x199000);return _0x25ec7d[_0x42b3aa(0x296)](),this[_0x42b3aa(0x232)][_0x42b3aa(0x2d8)](_0x147085,_0x25ec7d),_0x25ec7d;}},exports[_0x31d5c1(0x220)]=R([S(0x0,o[_0x31d5c1(0x2a9)]),S(0x1,o[_0x31d5c1(0x20d)](o[_0x31d5c1(0x2ad)])),S(0x2,o[_0x31d5c1(0x20d)](m['CollaborationSessionService']))],exports[_0x31d5c1(0x220)]);var h=(_0x4971be=>(_0x4971be[_0x31d5c1(0x2c1)]=_0x31d5c1(0x2b0),_0x4971be['IDLE']=_0x31d5c1(0x2cb),_0x4971be[_0x31d5c1(0x248)]='following',_0x4971be[_0x31d5c1(0x2ae)]=_0x31d5c1(0x290),_0x4971be['PRESENTING']=_0x31d5c1(0x202),_0x4971be))(h||{});const Z=_0x31d5c1(0x25e),J=0xc8;exports[_0x31d5c1(0x2ac)]=class extends o[_0x31d5c1(0x291)]{constructor(_0x3278ba,_0x105e0b,_0xd02b12,_0x40c1e4,_0x156483){var _0x3ecca8=_0x31d5c1;super(),v(this,_0x3ecca8(0x26e),new x[(_0x3ecca8(0x2cd))](_0x3ecca8(0x2cb))),v(this,'status$',this[_0x3ecca8(0x26e)]['asObservable']()),v(this,_0x3ecca8(0x226),!0x1),v(this,_0x3ecca8(0x293),null),v(this,_0x3ecca8(0x1f5),null),(this[_0x3ecca8(0x242)]=_0x3278ba,this['_collabSession']=_0x105e0b,this['_configService']=_0xd02b12,this[_0x3ecca8(0x1f8)]=_0x40c1e4,this[_0x3ecca8(0x2a8)]=_0x156483);}get[_0x31d5c1(0x2c3)](){var _0x29cb52=_0x31d5c1;return this[_0x29cb52(0x26e)][_0x29cb52(0x229)]();}[_0x31d5c1(0x297)](){var _0x571767=_0x31d5c1,_0x5cfd44;(_0x5cfd44=this[_0x571767(0x293)])==null||_0x5cfd44[_0x571767(0x297)](),this[_0x571767(0x26e)][_0x571767(0x205)](_0x571767(0x2cb)),this[_0x571767(0x26e)][_0x571767(0x2b8)]();}[_0x31d5c1(0x296)](){var _0x3a8755=_0x31d5c1;this[_0x3a8755(0x226)]||(this[_0x3a8755(0x226)]=!0x0,this['_collabSession'][_0x3a8755(0x247)]['pipe'](b[_0x3a8755(0x20f)](this['dispose$']))[_0x3a8755(0x201)](_0xa3b4ec=>{var _0x59b708=_0x3a8755;switch(_0xa3b4ec){case m[_0x59b708(0x233)][_0x59b708(0x2c1)]:this['_handleOffline']();break;case m[_0x59b708(0x233)]['ONLINE']:this[_0x59b708(0x285)]();break;}}),this[_0x3a8755(0x1f2)][_0x3a8755(0x251)][_0x3a8755(0x22f)](b[_0x3a8755(0x20f)](this[_0x3a8755(0x22c)]))[_0x3a8755(0x201)](_0x4cecbe=>{var _0x42583b=_0x3a8755;const {eventID:_0x4a298f}=_0x4cecbe;switch(_0x4a298f){case _[_0x42583b(0x218)][_0x42583b(0x2b4)]:this['_handleNewHost'](_0x4cecbe);break;case _[_0x42583b(0x218)][_0x42583b(0x243)]:this['_handleOperation'](_0x4cecbe);break;case _[_0x42583b(0x218)][_0x42583b(0x231)]:this[_0x42583b(0x245)]();break;case _[_0x42583b(0x218)][_0x42583b(0x2d6)]:this[_0x42583b(0x27c)](_0x4cecbe);break;}}));}[_0x31d5c1(0x25b)](){var _0x5c16b5=_0x31d5c1;this[_0x5c16b5(0x1f2)][_0x5c16b5(0x209)]({'eventID':_[_0x5c16b5(0x218)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x5c16b5(0x242)],'userID':this[_0x5c16b5(0x1f2)][_0x5c16b5(0x2c9)]()}},this[_0x5c16b5(0x242)]);}[_0x31d5c1(0x276)](){var _0x5225e6=_0x31d5c1;this['_status']==='presenting'&&(this[_0x5225e6(0x26e)][_0x5225e6(0x205)]('idle'),this[_0x5225e6(0x1f2)]['send']({'eventID':_[_0x5225e6(0x218)][_0x5225e6(0x231)],'data':{'unitID':this[_0x5225e6(0x242)]}},this[_0x5225e6(0x242)]));}[_0x31d5c1(0x228)](){var _0x172da5=_0x31d5c1;this[_0x172da5(0x2c3)]===_0x172da5(0x290)&&(this['_status$']['next'](_0x172da5(0x22a)),this[_0x172da5(0x1fe)]());}[_0x31d5c1(0x299)](){var _0x541f2d=_0x31d5c1;this[_0x541f2d(0x2c3)]===_0x541f2d(0x22a)&&this[_0x541f2d(0x278)]();}[_0x31d5c1(0x288)](_0x3f6bbd){var _0x34ef10=_0x31d5c1;const {presenter:_0x3c7ffb}=_0x3f6bbd['data'],_0x2a201e=this[_0x34ef10(0x1f2)][_0x34ef10(0x2c9)]();this[_0x34ef10(0x1f5)]=_0x3c7ffb,_0x3c7ffb===_0x2a201e?(this[_0x34ef10(0x278)](),this['_startPresenting']()):this[_0x34ef10(0x2c3)]!==_0x34ef10(0x290)&&(this[_0x34ef10(0x295)](),this[_0x34ef10(0x1fe)]());}[_0x31d5c1(0x2cc)](){var _0xea0d10=_0x31d5c1;const _0x6b204d={'eventID':_[_0xea0d10(0x218)]['LIVESHARE_FETCH_OPERATIONS']};this[_0xea0d10(0x1f2)][_0xea0d10(0x209)](_0x6b204d,this['_unitID']);}[_0x31d5c1(0x245)](){var _0x4d991e=_0x31d5c1;this['_presenter']=null,this[_0x4d991e(0x2c3)]!==_0x4d991e(0x202)&&this[_0x4d991e(0x213)]();}[_0x31d5c1(0x27c)](_0x13eea8){var _0x3923b3=_0x31d5c1;if(this[_0x3923b3(0x2c3)]===_0x3923b3(0x22a)&&this[_0x3923b3(0x1f5)]===_0x13eea8[_0x3923b3(0x241)][_0x3923b3(0x270)]){const _0xddb1ff=_[_0x3923b3(0x2ab)](_0x13eea8['data'])[_0x3923b3(0x272)][_0x3923b3(0x1f7)]()[_0x3923b3(0x2b1)](_0x3fe43a=>_0x3fe43a['id']===C[_0x3923b3(0x2d3)]['id']);if(_0xddb1ff){const _0x53b52e=_0xddb1ff[_0x3923b3(0x2b5)][_0x3923b3(0x28e)],_0x34cab5=_0xddb1ff[_0x3923b3(0x2b5)][_0x3923b3(0x225)]['id'];setTimeout(()=>{var _0x4d3e06=_0x3923b3;this[_0x4d3e06(0x2a8)][_0x4d3e06(0x261)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x53b52e,'subUnitId':_0x34cab5},{'fromCollab':!0x0});});}}}[_0x31d5c1(0x20a)](){var _0x178de1=_0x31d5c1;this[_0x178de1(0x26e)][_0x178de1(0x205)](_0x178de1(0x202));const _0x101c93=new Map(),_0x54eefe=this['_commandDisposable']=new o[(_0x178de1(0x2d5))]();_0x54eefe[_0x178de1(0x223)](o['toDisposable'](()=>{var _0x5308a6=_0x178de1;_0x101c93[_0x5308a6(0x2a0)](_0x29f196=>_0x29f196[_0x5308a6(0x2b8)]()),_0x101c93[_0x5308a6(0x282)]();})),_0x54eefe['add'](this[_0x178de1(0x2a8)]['onCommandExecuted'](_0x21afb2=>{var _0x3fadf6=_0x178de1,_0x53976b;if(_0x21afb2['type']!==o[_0x3fadf6(0x2b7)][_0x3fadf6(0x2b9)]||!this['_liveShareService'][_0x3fadf6(0x20e)](_0x21afb2['id']))return;const {id:_0x426510}=_0x21afb2;let _0xe685a9;_0x101c93[_0x3fadf6(0x238)](_0x426510)?_0xe685a9=_0x101c93[_0x3fadf6(0x28c)](_0x426510):(_0xe685a9=new x[(_0x3fadf6(0x274))](),_0x101c93[_0x3fadf6(0x2d8)](_0x426510,_0xe685a9),_0xe685a9['pipe'](b[_0x3fadf6(0x2af)]((_0x53976b=this[_0x3fadf6(0x211)][_0x3fadf6(0x283)](Z))!=null?_0x53976b:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3fadf6(0x201)](_0x3a33d6=>{var _0x41518d=_0x3fadf6;this[_0x41518d(0x1f2)]['send']({'eventID':_[_0x41518d(0x218)][_0x41518d(0x243)],'data':{'unitID':this['_unitID'],'operations':{[_0x3a33d6['id']]:{'id':_0x3a33d6['id'],'params':JSON[_0x41518d(0x266)](_0x3a33d6[_0x41518d(0x2b5)])}}}},this[_0x41518d(0x242)]);})),_0xe685a9[_0x3fadf6(0x205)](_0x21afb2);})),this[_0x178de1(0x1f8)]['getInitialStates'](this[_0x178de1(0x242)])['forEach'](_0x28c7d4=>this[_0x178de1(0x1f2)][_0x178de1(0x209)]({'eventID':_[_0x178de1(0x218)][_0x178de1(0x243)],'data':{'unitID':this['_unitID'],'operations':{[_0x28c7d4['id']]:{'id':_0x28c7d4['id'],'params':JSON[_0x178de1(0x266)](_0x28c7d4['params'])}}}},this[_0x178de1(0x242)]));}[_0x31d5c1(0x295)](){var _0x3ef66=_0x31d5c1,_0x26395a;this[_0x3ef66(0x26e)][_0x3ef66(0x205)](_0x3ef66(0x2cb)),(_0x26395a=this['_commandDisposable'])==null||_0x26395a[_0x3ef66(0x297)](),this[_0x3ef66(0x293)]=null;}[_0x31d5c1(0x1fe)](){var _0x5b1fea=_0x31d5c1,_0x429932;(_0x429932=this[_0x5b1fea(0x293)])==null||_0x429932[_0x5b1fea(0x297)](),this[_0x5b1fea(0x26e)][_0x5b1fea(0x205)](_0x5b1fea(0x22a));}[_0x31d5c1(0x213)](){var _0x374457=_0x31d5c1,_0x489497;this['_status$']['next'](_0x374457(0x2cb)),(_0x489497=this['_commandDisposable'])==null||_0x489497[_0x374457(0x297)](),this[_0x374457(0x293)]=null;}['_stopFollowing'](){var _0xdad4a2=_0x31d5c1,_0x1f405c;this[_0xdad4a2(0x26e)]['next']('not-following'),(_0x1f405c=this[_0xdad4a2(0x293)])==null||_0x1f405c[_0xdad4a2(0x297)]();}[_0x31d5c1(0x258)](_0x354e28){var _0x54115e=_0x31d5c1;if(['presenting',_0x54115e(0x290),_0x54115e(0x2b0)][_0x54115e(0x1fa)](this[_0x54115e(0x2c3)])||!_0x354e28[_0x54115e(0x241)]['presenter']||_0x354e28['data'][_0x54115e(0x23b)]===this[_0x54115e(0x1f2)][_0x54115e(0x2c9)]())return;this['_status']===_0x54115e(0x2cb)&&this[_0x54115e(0x1fe)]();const _0x51af2a=_0x354e28['data']['operations'];Object[_0x54115e(0x230)](_0x51af2a)[_0x54115e(0x2a0)](_0x183323=>{var _0x34f5ee=_0x54115e;this[_0x34f5ee(0x2a8)][_0x34f5ee(0x261)](_0x183323['id'],_0x183323[_0x34f5ee(0x2b5)]?JSON['parse'](_0x183323['params']):null,{'fromCollab':!0x0});});}[_0x31d5c1(0x273)](){var _0x4b738d=_0x31d5c1,_0x244111;this[_0x4b738d(0x26e)][_0x4b738d(0x205)]('offline'),(_0x244111=this[_0x4b738d(0x293)])==null||_0x244111[_0x4b738d(0x297)]();}[_0x31d5c1(0x285)](){var _0x97bcc=_0x31d5c1;this['_status$'][_0x97bcc(0x205)](_0x97bcc(0x2cb)),this['_fetchOperations']();}},exports[_0x31d5c1(0x2ac)]=R([S(0x2,o[_0x31d5c1(0x29b)]),S(0x3,o['Inject'](E)),S(0x4,o[_0x31d5c1(0x2c4)])],exports[_0x31d5c1(0x2ac)]);function A(){var _0x46caff=_0x31d5c1;const _0x482ae4=p[_0x46caff(0x2ce)](exports[_0x46caff(0x220)]),_0x18b618=p[_0x46caff(0x2ce)](o['IUniverInstanceService']),_0x3aeb91=p[_0x46caff(0x25a)](()=>_0x18b618[_0x46caff(0x29d)](o[_0x46caff(0x237)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x38a7d2,_0x19fb33]=f[_0x46caff(0x289)](null),[_0x11862e,_0x2f5adf]=f[_0x46caff(0x289)](h[_0x46caff(0x224)]),_0x197cac=f[_0x46caff(0x2c7)](null);return f[_0x46caff(0x2bf)](()=>(_0x3aeb91&&_0x482ae4[_0x46caff(0x287)](_0x3aeb91[_0x46caff(0x2bc)]())[_0x46caff(0x20c)](_0x4486c2=>{_0x19fb33(_0x4486c2),_0x197cac['current']=_0x4486c2['status$']['subscribe'](_0x419a08=>{_0x2f5adf(_0x419a08);});}),()=>{var _0x4b032d=_0x46caff,_0x170ae5;(_0x170ae5=_0x197cac['current'])==null||_0x170ae5[_0x4b032d(0x252)](),_0x197cac[_0x4b032d(0x27b)]=null;}),[_0x3aeb91,_0x482ae4]),_0x38a7d2?l[_0x46caff(0x23d)](g[_0x46caff(0x2d1)],{'align':_0x46caff(0x246),'disabled':_0x11862e===h[_0x46caff(0x2c1)],'className':_0x46caff(0x234),'overlay':l['jsx'](K,{'status':_0x11862e,'coordinator':_0x38a7d2}),'children':l[_0x46caff(0x23d)](_0x46caff(0x221),{'className':g['clsx'](_0x46caff(0x2bd),{'univer-cursor-not-allowed':_0x11862e===h[_0x46caff(0x2c1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11862e!==h[_0x46caff(0x2c1)]}),'type':_0x46caff(0x221),'children':l[_0x46caff(0x23d)](P,{'className':_0x46caff(0x292)})})}):null;}function K(_0x3ed1cf){var _0x402530=_0x31d5c1;const {status:_0x5ca234,coordinator:_0x282126}=_0x3ed1cf;switch(_0x5ca234){case h['IDLE']:return l[_0x402530(0x23d)](z,{'coordinator':_0x282126});case h[_0x402530(0x248)]:return l[_0x402530(0x23d)](Q,{'coordinator':_0x282126});case h['NOT_FOLLOWING']:return l[_0x402530(0x23d)](X,{'coordinator':_0x282126});case h[_0x402530(0x2c1)]:return l[_0x402530(0x23d)](te,{});case h[_0x402530(0x240)]:return l[_0x402530(0x23d)](ee,{'coordinator':_0x282126});default:return null;}}function z(_0xb26271){var _0x192801=_0x31d5c1;const {coordinator:_0x5c02d4}=_0xb26271;return l[_0x192801(0x27a)](l[_0x192801(0x21e)],{'children':[l[_0x192801(0x23d)](_0x192801(0x281),{'className':_0x192801(0x1f3),'children':_0x192801(0x26f)}),l[_0x192801(0x23d)](g[_0x192801(0x2c5)],{'onClick':()=>_0x5c02d4[_0x192801(0x25b)](),'children':'Start'})]});}function Q(_0xfbaab){var _0x45dcff=_0x31d5c1;const {coordinator:_0x5777c1}=_0xfbaab;return l[_0x45dcff(0x27a)](l[_0x45dcff(0x21e)],{'children':[l['jsx'](_0x45dcff(0x281),{'className':_0x45dcff(0x1f3),'children':_0x45dcff(0x2d7)}),l[_0x45dcff(0x23d)](g['Button'],{'onClick':()=>_0x5777c1[_0x45dcff(0x299)](),'children':_0x45dcff(0x1f6)})]});}function X(_0x25ea70){var _0x1f8df2=_0x31d5c1;const {coordinator:_0x4bdc91}=_0x25ea70;return l['jsxs'](l[_0x1f8df2(0x21e)],{'children':[l[_0x1f8df2(0x23d)](_0x1f8df2(0x281),{'className':_0x1f8df2(0x1f3),'children':_0x1f8df2(0x236)}),l[_0x1f8df2(0x23d)](g['Button'],{'variant':_0x1f8df2(0x280),'onClick':()=>_0x4bdc91[_0x1f8df2(0x228)](),'children':'Start\x20following'})]});}function ee(_0x1e1651){var _0x21e26c=_0x31d5c1;const {coordinator:_0x29d52a}=_0x1e1651;return l[_0x21e26c(0x27a)](l['Fragment'],{'children':[l['jsx']('div',{'className':_0x21e26c(0x1f3),'children':_0x21e26c(0x1fb)}),l[_0x21e26c(0x23d)](g['Button'],{'variant':_0x21e26c(0x29c),'onClick':()=>_0x29d52a[_0x21e26c(0x276)](),'children':_0x21e26c(0x255)})]});}function te(){var _0x1c11f3=_0x31d5c1;return l['jsx'](l[_0x1c11f3(0x21e)],{'children':_0x1c11f3(0x207)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x2cfb9d,_0x5be9f8,_0x28e00d,_0x2a9fe2)=>{var _0x55795e=_0x31d5c1;for(var _0x437458=_0x2a9fe2>0x1?void 0x0:_0x2a9fe2?ie(_0x5be9f8,_0x28e00d):_0x5be9f8,_0x546a54=_0x2cfb9d[_0x55795e(0x24b)]-0x1,_0x5e0861;_0x546a54>=0x0;_0x546a54--)(_0x5e0861=_0x2cfb9d[_0x546a54])&&(_0x437458=_0x5e0861(_0x437458)||_0x437458);return _0x437458;},N=(_0x4543aa,_0x153c85)=>(_0x57baaf,_0x21d47c)=>_0x153c85(_0x57baaf,_0x21d47c,_0x4543aa);exports['DesktopLiveShareController']=class extends o[_0x31d5c1(0x256)]{constructor(_0x7995fe,_0x605bbc){var _0x1530fb=_0x31d5c1;super(),this[_0x1530fb(0x2da)]=_0x7995fe,this[_0x1530fb(0x2a4)]=_0x605bbc,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x3b5201=_0x31d5c1;this[_0x3b5201(0x2d0)](this[_0x3b5201(0x2a4)][_0x3b5201(0x21b)](p[_0x3b5201(0x2c2)][_0x3b5201(0x22d)],()=>p[_0x3b5201(0x264)](A,this[_0x3b5201(0x2da)])));}},exports['DesktopLiveShareController']=ne([N(0x0,o['Inject'](o[_0x31d5c1(0x2ad)])),N(0x1,p['IUIPartsService'])],exports[_0x31d5c1(0x267)]);var re=Object[_0x31d5c1(0x2a6)],se=Object[_0x31d5c1(0x239)],oe=(_0x1494d3,_0x1dbcb5,_0x240ff8)=>_0x1dbcb5 in _0x1494d3?re(_0x1494d3,_0x1dbcb5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x240ff8}):_0x1494d3[_0x1dbcb5]=_0x240ff8,ae=(_0x1e1ebc,_0x2d4e39,_0x17b21f,_0x29693a)=>{var _0x29be24=_0x31d5c1;for(var _0x5ce891=_0x29693a>0x1?void 0x0:_0x29693a?se(_0x2d4e39,_0x17b21f):_0x2d4e39,_0x4fa4ab=_0x1e1ebc[_0x29be24(0x24b)]-0x1,_0x583746;_0x4fa4ab>=0x0;_0x4fa4ab--)(_0x583746=_0x1e1ebc[_0x4fa4ab])&&(_0x5ce891=_0x583746(_0x5ce891)||_0x5ce891);return _0x5ce891;},w=(_0x59f6d3,_0x4f47ab)=>(_0x718f2a,_0x1504f9)=>_0x4f47ab(_0x718f2a,_0x1504f9,_0x59f6d3),T=(_0x37b7d4,_0x5d6984,_0xd60e1d)=>oe(_0x37b7d4,typeof _0x5d6984!=_0x31d5c1(0x27f)?_0x5d6984+'':_0x5d6984,_0xd60e1d);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x31d5c1(0x208)]=class extends o[_0x31d5c1(0x23e)]{constructor(_0x3ae812=L,_0x540506,_0x40d744){var _0x489ab7=_0x31d5c1;super(),this['_config']=_0x3ae812,this[_0x489ab7(0x2da)]=_0x540506,this[_0x489ab7(0x211)]=_0x40d744;const {..._0x2c3222}=o[_0x489ab7(0x2b2)]({},L,this[_0x489ab7(0x22b)]);this[_0x489ab7(0x211)][_0x489ab7(0x26d)]($,_0x2c3222);}[_0x31d5c1(0x263)](){var _0x495b26=_0x31d5c1;o[_0x495b26(0x250)](this[_0x495b26(0x2da)],o[_0x495b26(0x23f)]([[E],[exports[_0x495b26(0x220)]],[O],[exports[_0x495b26(0x267)]]],this[_0x495b26(0x22b)]['override'])),o[_0x495b26(0x2bb)](this[_0x495b26(0x2da)],[[O]]);}[_0x31d5c1(0x1f9)](){var _0x4ae6e8=_0x31d5c1;o[_0x4ae6e8(0x2bb)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x31d5c1(0x208)],_0x31d5c1(0x1f1),o[_0x31d5c1(0x237)]['UNIVER_UNKNOWN']),T(exports[_0x31d5c1(0x208)],_0x31d5c1(0x22e),le),exports[_0x31d5c1(0x208)]=ae([o[_0x31d5c1(0x204)](m[_0x31d5c1(0x26a)]),w(0x1,o[_0x31d5c1(0x20d)](o['Injector'])),w(0x2,o[_0x31d5c1(0x29b)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=A,exports[_0x31d5c1(0x298)]=E,exports[_0x31d5c1(0x259)]=h;
|
|
1
|
+
'use strict';var _0x354cf4=_0x1be7;(function(_0xc06cb1,_0x43ee8e){var _0xefb4a9=_0x1be7,_0x1f7b27=_0xc06cb1();while(!![]){try{var _0x5a53e9=-parseInt(_0xefb4a9(0x24c))/0x1+parseInt(_0xefb4a9(0x20b))/0x2*(-parseInt(_0xefb4a9(0x21d))/0x3)+parseInt(_0xefb4a9(0x26b))/0x4*(-parseInt(_0xefb4a9(0x1d4))/0x5)+-parseInt(_0xefb4a9(0x1e6))/0x6*(-parseInt(_0xefb4a9(0x21c))/0x7)+-parseInt(_0xefb4a9(0x25a))/0x8+parseInt(_0xefb4a9(0x20c))/0x9*(-parseInt(_0xefb4a9(0x258))/0xa)+parseInt(_0xefb4a9(0x215))/0xb;if(_0x5a53e9===_0x43ee8e)break;else _0x1f7b27['push'](_0x1f7b27['shift']());}catch(_0x1de692){_0x1f7b27['push'](_0x1f7b27['shift']());}}}(_0x1dab,0x3d7a3));var U=Object[_0x354cf4(0x238)],F=(_0x3fe256,_0x250fb0,_0x294c51)=>_0x250fb0 in _0x3fe256?U(_0x3fe256,_0x250fb0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x294c51}):_0x3fe256[_0x250fb0]=_0x294c51,v=(_0x3db1ac,_0x22aaf8,_0x366ca6)=>F(_0x3db1ac,typeof _0x22aaf8!=_0x354cf4(0x1dd)?_0x22aaf8+'':_0x22aaf8,_0x366ca6);Object['defineProperty'](exports,Symbol[_0x354cf4(0x28c)],{'value':_0x354cf4(0x24e)});const m=require(_0x354cf4(0x23f)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),D=require(_0x354cf4(0x249)),p=require(_0x354cf4(0x207)),l=require('react/jsx-runtime'),g=require(_0x354cf4(0x1f8)),f=require(_0x354cf4(0x291)),_=require(_0x354cf4(0x29d)),x=require('rxjs'),b=require(_0x354cf4(0x211)),$='live-share.config',L={};class E extends o[_0x354cf4(0x1ee)]{constructor(){var _0x38d4d6=_0x354cf4;super(...arguments),v(this,_0x38d4d6(0x1d0),new Set()),v(this,_0x38d4d6(0x208),new Set());}[_0x354cf4(0x275)](_0xdf7b81){var _0x4730f3=_0x354cf4;return this['_sharedOperations'][_0x4730f3(0x1da)](_0xdf7b81),o[_0x4730f3(0x25b)](()=>this[_0x4730f3(0x1d0)][_0x4730f3(0x271)](_0xdf7b81));}[_0x354cf4(0x23a)](_0x3683a6){var _0x117047=_0x354cf4;return this[_0x117047(0x208)]['add'](_0x3683a6),o[_0x117047(0x25b)](()=>this[_0x117047(0x208)]['delete'](_0x3683a6));}[_0x354cf4(0x20a)](_0x55a8bc){var _0x20e359=_0x354cf4;return this[_0x20e359(0x1d0)]['has'](_0x55a8bc);}[_0x354cf4(0x214)](_0x1fb524){var _0x1b1e35=_0x354cf4;return Array[_0x1b1e35(0x273)](this[_0x1b1e35(0x208)])[_0x1b1e35(0x265)](_0x5bb69f=>_0x5bb69f(_0x1fb524));}}var H=Object[_0x354cf4(0x1d5)],V=(_0xcbeaba,_0x52c0e5,_0x3f9989,_0x987cc5)=>{var _0x19c979=_0x354cf4;for(var _0x3b97b4=_0x987cc5>0x1?void 0x0:_0x987cc5?H(_0x52c0e5,_0x3f9989):_0x52c0e5,_0x5c1d31=_0xcbeaba[_0x19c979(0x269)]-0x1,_0x40610;_0x5c1d31>=0x0;_0x5c1d31--)(_0x40610=_0xcbeaba[_0x5c1d31])&&(_0x3b97b4=_0x40610(_0x3b97b4)||_0x3b97b4);return _0x3b97b4;},k=(_0x578191,_0x474f29)=>(_0x40721d,_0x5b1887)=>_0x474f29(_0x40721d,_0x5b1887,_0x578191);let O=class extends o[_0x354cf4(0x1ee)]{constructor(_0x498b12){var _0x46f4c7=_0x354cf4;super(),this[_0x46f4c7(0x28e)]=_0x498b12,this[_0x46f4c7(0x219)]();}['_init'](){var _0x34cbb4=_0x354cf4;[D[_0x34cbb4(0x2a7)]['id'],D[_0x34cbb4(0x202)]['id'],C[_0x34cbb4(0x294)]['id']]['forEach'](_0x2e2296=>{var _0x4f61ab=_0x34cbb4;this[_0x4f61ab(0x1ef)](this[_0x4f61ab(0x28e)][_0x4f61ab(0x275)](_0x2e2296));});}};O=V([k(0x0,o[_0x354cf4(0x1db)](E))],O);var u=function(){var _0x6e939b=_0x354cf4;return u=Object['assign']||function(_0xd77f7e){var _0x246fcb=_0x1be7;for(var _0x4a04fc,_0x12d58c=0x1,_0x39388f=arguments['length'];_0x12d58c<_0x39388f;_0x12d58c++){_0x4a04fc=arguments[_0x12d58c];for(var _0x105bac in _0x4a04fc)Object['prototype'][_0x246fcb(0x1ec)]['call'](_0x4a04fc,_0x105bac)&&(_0xd77f7e[_0x105bac]=_0x4a04fc[_0x105bac]);}return _0xd77f7e;},u[_0x6e939b(0x216)](this,arguments);},M=function(_0x16356c,_0x1b4baa){var _0x3f1bbf=_0x354cf4,_0x513816={};for(var _0x207932 in _0x16356c)Object[_0x3f1bbf(0x25c)][_0x3f1bbf(0x1ec)]['call'](_0x16356c,_0x207932)&&_0x1b4baa[_0x3f1bbf(0x282)](_0x207932)<0x0&&(_0x513816[_0x207932]=_0x16356c[_0x207932]);if(_0x16356c!=null&&typeof Object[_0x3f1bbf(0x2ad)]==_0x3f1bbf(0x1f1)){for(var _0x5a8d27=0x0,_0x207932=Object[_0x3f1bbf(0x2ad)](_0x16356c);_0x5a8d27<_0x207932[_0x3f1bbf(0x269)];_0x5a8d27++)_0x1b4baa[_0x3f1bbf(0x282)](_0x207932[_0x5a8d27])<0x0&&Object[_0x3f1bbf(0x25c)][_0x3f1bbf(0x206)][_0x3f1bbf(0x2aa)](_0x16356c,_0x207932[_0x5a8d27])&&(_0x513816[_0x207932[_0x5a8d27]]=_0x16356c[_0x207932[_0x5a8d27]]);}return _0x513816;},j=f['forwardRef'](function(_0x56e1a7,_0x34511a){var _0x5c5db6=_0x354cf4,_0x1f30a2=_0x56e1a7[_0x5c5db6(0x27e)],_0x324342=_0x56e1a7['id'],_0x447829=_0x56e1a7[_0x5c5db6(0x2ae)],_0xaf068=_0x56e1a7['extend'],_0x54220a=M(_0x56e1a7,[_0x5c5db6(0x27e),'id',_0x5c5db6(0x2ae),'extend']),_0x5c7462='univerjs-icon\x20univerjs-icon-'[_0x5c5db6(0x261)](_0x324342,'\x20')[_0x5c5db6(0x261)](_0x447829||'')[_0x5c5db6(0x29f)](),_0x412636=f[_0x5c5db6(0x1d2)]('_'['concat'](G()));return y(_0x1f30a2,''['concat'](_0x324342),{'defIds':_0x1f30a2[_0x5c5db6(0x20e)],'idSuffix':_0x412636[_0x5c5db6(0x29c)]},u({'ref':_0x34511a,'className':_0x5c7462},_0x54220a),_0xaf068);});function y(_0x1c42e5,_0x3dcd52,_0xa38c14,_0x400120,_0x482dad){var _0x1c62ae=_0x354cf4;return f['createElement'](_0x1c42e5[_0x1c62ae(0x222)],u(u({'key':_0x3dcd52},q(_0x1c42e5,_0xa38c14,_0x482dad)),_0x400120),(W(_0x1c42e5,_0xa38c14)[_0x1c62ae(0x241)]||[])['map'](function(_0x165ed8,_0xce83ac){var _0x2de755=_0x1c62ae;return y(_0x165ed8,''[_0x2de755(0x261)](_0x3dcd52,'-')['concat'](_0x1c42e5[_0x2de755(0x222)],'-')[_0x2de755(0x261)](_0xce83ac),_0xa38c14,void 0x0,_0x482dad);}));}function q(_0x334f11,_0x2bb67e,_0x54c536){var _0x1d60c3=_0x354cf4,_0x3ce941=u({},_0x334f11['attrs']);_0x54c536!=null&&_0x54c536['colorChannel1']&&_0x3ce941[_0x1d60c3(0x25e)]===_0x1d60c3(0x1e8)&&(_0x3ce941[_0x1d60c3(0x25e)]=_0x54c536[_0x1d60c3(0x1e8)]),_0x334f11['tag']==='mask'&&_0x3ce941['id']&&(_0x3ce941['id']=_0x3ce941['id']+_0x2bb67e['idSuffix']),Object[_0x1d60c3(0x2a1)](_0x3ce941)[_0x1d60c3(0x1d6)](function(_0x36c19c){var _0x32409d=_0x1d60c3,_0x592ebd=_0x36c19c[0x0],_0x476ff1=_0x36c19c[0x1];_0x592ebd===_0x32409d(0x295)&&typeof _0x476ff1==_0x32409d(0x255)&&(_0x3ce941[_0x592ebd]=_0x476ff1[_0x32409d(0x210)](/url\(#(.*)\)/,_0x32409d(0x235)[_0x32409d(0x261)](_0x2bb67e[_0x32409d(0x23c)],')')));});var _0x534877=_0x2bb67e['defIds'];return!_0x534877||_0x534877[_0x1d60c3(0x269)]===0x0||(_0x334f11[_0x1d60c3(0x222)]==='use'&&_0x3ce941[_0x1d60c3(0x286)]&&(_0x3ce941['xlink:href']=_0x3ce941[_0x1d60c3(0x286)]+_0x2bb67e['idSuffix']),Object[_0x1d60c3(0x2a1)](_0x3ce941)['forEach'](function(_0x2e04ab){var _0x3cc1f5=_0x1d60c3,_0x3ab019=_0x2e04ab[0x0],_0x247d9c=_0x2e04ab[0x1];typeof _0x247d9c==_0x3cc1f5(0x255)&&(_0x3ce941[_0x3ab019]=_0x247d9c['replace'](/url\(#(.*)\)/,_0x3cc1f5(0x235)[_0x3cc1f5(0x261)](_0x2bb67e[_0x3cc1f5(0x23c)],')')));})),_0x3ce941;}function W(_0x262cc2,_0x28a891){var _0x161821=_0x354cf4,_0x1ce3e1,_0x3144e4=_0x28a891['defIds'];return!_0x3144e4||_0x3144e4[_0x161821(0x269)]===0x0?_0x262cc2:_0x262cc2['tag']===_0x161821(0x23b)&&(!((_0x1ce3e1=_0x262cc2[_0x161821(0x241)])===null||_0x1ce3e1===void 0x0)&&_0x1ce3e1[_0x161821(0x269)])?u(u({},_0x262cc2),{'children':_0x262cc2['children']['map'](function(_0x380378){var _0x46f65c=_0x161821;return typeof _0x380378[_0x46f65c(0x262)]['id']=='string'&&_0x3144e4&&_0x3144e4[_0x46f65c(0x282)](_0x380378[_0x46f65c(0x262)]['id'])>-0x1?u(u({},_0x380378),{'attrs':u(u({},_0x380378[_0x46f65c(0x262)]),{'id':_0x380378[_0x46f65c(0x262)]['id']+_0x28a891[_0x46f65c(0x23c)]})}):_0x380378;})}):_0x262cc2;}function G(){var _0x301576=_0x354cf4;return Math['random']()[_0x301576(0x283)](0x24)['substring'](0x2,0x8);}j[_0x354cf4(0x2ab)]=_0x354cf4(0x203);var B={'tag':_0x354cf4(0x2a3),'attrs':{'fill':_0x354cf4(0x243),'viewBox':'0\x200\x2016\x2016','width':_0x354cf4(0x292),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x354cf4(0x2a5),'d':_0x354cf4(0x296)}},{'tag':_0x354cf4(0x29b),'attrs':{'fill':_0x354cf4(0x2a5),'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':_0x354cf4(0x2a4),'clipRule':'evenodd'}}]},P=f[_0x354cf4(0x1ce)](function(_0x2f450e,_0x141064){var _0x4ad107=_0x354cf4;return f['createElement'](j,Object['assign']({},_0x2f450e,{'id':_0x4ad107(0x1f6),'ref':_0x141064,'icon':B}));});P[_0x354cf4(0x2ab)]='LiveShareSingle';function _0x1be7(_0x55aca2,_0x21bb3e){var _0x1dab3a=_0x1dab();return _0x1be7=function(_0x1be746,_0x46a39f){_0x1be746=_0x1be746-0x1ce;var _0x488d0f=_0x1dab3a[_0x1be746];return _0x488d0f;},_0x1be7(_0x55aca2,_0x21bb3e);}var Y=Object[_0x354cf4(0x1d5)],R=(_0x472161,_0x4483b4,_0x286c65,_0x25bf1b)=>{var _0x22af5e=_0x354cf4;for(var _0x4ed5e=_0x25bf1b>0x1?void 0x0:_0x25bf1b?Y(_0x4483b4,_0x286c65):_0x4483b4,_0x85bf2=_0x472161[_0x22af5e(0x269)]-0x1,_0x2097ea;_0x85bf2>=0x0;_0x85bf2--)(_0x2097ea=_0x472161[_0x85bf2])&&(_0x4ed5e=_0x2097ea(_0x4ed5e)||_0x4ed5e);return _0x4ed5e;},S=(_0x1ee44c,_0x27df8e)=>(_0x102838,_0x3c4dc4)=>_0x27df8e(_0x102838,_0x3c4dc4,_0x1ee44c);exports[_0x354cf4(0x1e4)]=class extends o[_0x354cf4(0x1f2)]{constructor(_0x5bbccb,_0x2f844a,_0x287bc6){var _0x432402=_0x354cf4;super(),v(this,_0x432402(0x1e1),new Map()),(this['_univerInstanceService']=_0x5bbccb,this[_0x432402(0x25d)]=_0x2f844a,this[_0x432402(0x29e)]=_0x287bc6,this[_0x432402(0x219)]());}async['getLiveShareCoordinator'](_0x631cf6){var _0x1d5f89=_0x354cf4;return this['_entities'][_0x1d5f89(0x287)](_0x631cf6)||await this[_0x1d5f89(0x230)](_0x631cf6),this[_0x1d5f89(0x1e1)][_0x1d5f89(0x20d)](_0x631cf6);}[_0x354cf4(0x219)](){var _0x4dfbc8=_0x354cf4;this[_0x4dfbc8(0x22c)][_0x4dfbc8(0x21e)](o[_0x4dfbc8(0x24a)][_0x4dfbc8(0x240)])[_0x4dfbc8(0x201)](b[_0x4dfbc8(0x2a6)](this[_0x4dfbc8(0x1f5)]))[_0x4dfbc8(0x1f3)](async _0x4587c4=>{var _0x4912f9=_0x4dfbc8;const _0x7052fd=_0x4587c4[_0x4912f9(0x257)]();this[_0x4912f9(0x1e1)][_0x4912f9(0x287)](_0x7052fd)||this[_0x4912f9(0x230)](_0x7052fd);}),this[_0x4dfbc8(0x22c)][_0x4dfbc8(0x1d7)](o[_0x4dfbc8(0x24a)][_0x4dfbc8(0x240)])[_0x4dfbc8(0x201)](b[_0x4dfbc8(0x2a6)](this[_0x4dfbc8(0x1f5)]))[_0x4dfbc8(0x1f3)](_0x356b0c=>{var _0x1dff71=_0x4dfbc8;const _0x2714b7=_0x356b0c['getUnitId'](),_0x26f1bf=this[_0x1dff71(0x1e1)][_0x1dff71(0x20d)](_0x2714b7);_0x26f1bf==null||_0x26f1bf[_0x1dff71(0x289)]();});}async[_0x354cf4(0x230)](_0x25bc8c){var _0x2428d4=_0x354cf4;const _0x76330a=await this[_0x2428d4(0x29e)]['requireSession'](_0x25bc8c),_0x48a417=this[_0x2428d4(0x25d)][_0x2428d4(0x1e3)](exports[_0x2428d4(0x27a)],_0x25bc8c,_0x76330a);return _0x48a417['init'](),this[_0x2428d4(0x1e1)][_0x2428d4(0x281)](_0x25bc8c,_0x48a417),_0x48a417;}},exports[_0x354cf4(0x1e4)]=R([S(0x0,o[_0x354cf4(0x299)]),S(0x1,o[_0x354cf4(0x1db)](o[_0x354cf4(0x2a0)])),S(0x2,o[_0x354cf4(0x1db)](m[_0x354cf4(0x28a)]))],exports[_0x354cf4(0x1e4)]);var h=(_0x3ca9e5=>(_0x3ca9e5[_0x354cf4(0x232)]=_0x354cf4(0x2a8),_0x3ca9e5[_0x354cf4(0x276)]=_0x354cf4(0x228),_0x3ca9e5[_0x354cf4(0x284)]=_0x354cf4(0x200),_0x3ca9e5[_0x354cf4(0x278)]='not-following',_0x3ca9e5['PRESENTING']=_0x354cf4(0x26a),_0x3ca9e5))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x354cf4(0x1f2)]{constructor(_0x59350f,_0x3ca2b5,_0x15baeb,_0x583f4f,_0x526132){var _0x4e2013=_0x354cf4;super(),v(this,'_status$',new x[(_0x4e2013(0x1dc))](_0x4e2013(0x228))),v(this,'status$',this[_0x4e2013(0x267)][_0x4e2013(0x1e5)]()),v(this,_0x4e2013(0x219),!0x1),v(this,_0x4e2013(0x26e),null),v(this,_0x4e2013(0x290),null),(this['_unitID']=_0x59350f,this[_0x4e2013(0x244)]=_0x3ca2b5,this[_0x4e2013(0x297)]=_0x15baeb,this[_0x4e2013(0x28e)]=_0x583f4f,this[_0x4e2013(0x231)]=_0x526132);}get[_0x354cf4(0x224)](){var _0x519b0c=_0x354cf4;return this[_0x519b0c(0x267)][_0x519b0c(0x260)]();}[_0x354cf4(0x289)](){var _0x4e37d0=_0x354cf4,_0x1deaac;(_0x1deaac=this[_0x4e37d0(0x26e)])==null||_0x1deaac[_0x4e37d0(0x289)](),this[_0x4e37d0(0x267)]['next'](_0x4e37d0(0x228)),this['_status$'][_0x4e37d0(0x250)]();}[_0x354cf4(0x1e7)](){var _0x175c19=_0x354cf4;this['_init']||(this[_0x175c19(0x219)]=!0x0,this[_0x175c19(0x244)][_0x175c19(0x1fa)][_0x175c19(0x201)](b['takeUntil'](this[_0x175c19(0x1f5)]))[_0x175c19(0x1f3)](_0x2d73a6=>{var _0x4d006c=_0x175c19;switch(_0x2d73a6){case m[_0x4d006c(0x1f4)][_0x4d006c(0x232)]:this[_0x4d006c(0x23d)]();break;case m['SessionStatus'][_0x4d006c(0x28f)]:this[_0x4d006c(0x28d)]();break;}}),this['_collabSession'][_0x175c19(0x227)][_0x175c19(0x201)](b[_0x175c19(0x2a6)](this[_0x175c19(0x1f5)]))[_0x175c19(0x1f3)](_0x4dcfc1=>{var _0x28ce57=_0x175c19;const {eventID:_0x4a3009}=_0x4dcfc1;switch(_0x4a3009){case _[_0x28ce57(0x27f)][_0x28ce57(0x22e)]:this[_0x28ce57(0x229)](_0x4dcfc1);break;case _[_0x28ce57(0x27f)][_0x28ce57(0x213)]:this[_0x28ce57(0x21b)](_0x4dcfc1);break;case _[_0x28ce57(0x27f)][_0x28ce57(0x285)]:this[_0x28ce57(0x248)]();break;case _['CollaborationEvent'][_0x28ce57(0x22a)]:this[_0x28ce57(0x252)](_0x4dcfc1);break;}}));}[_0x354cf4(0x1d9)](){var _0x3bf810=_0x354cf4;this[_0x3bf810(0x244)][_0x3bf810(0x2a9)]({'eventID':_[_0x3bf810(0x27f)][_0x3bf810(0x1f7)],'data':{'unitID':this[_0x3bf810(0x22b)],'userID':this[_0x3bf810(0x244)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){var _0xb41a09=_0x354cf4;this['_status']===_0xb41a09(0x26a)&&(this[_0xb41a09(0x267)][_0xb41a09(0x264)](_0xb41a09(0x228)),this[_0xb41a09(0x244)][_0xb41a09(0x2a9)]({'eventID':_[_0xb41a09(0x27f)][_0xb41a09(0x285)],'data':{'unitID':this[_0xb41a09(0x22b)]}},this['_unitID']));}[_0x354cf4(0x1fb)](){var _0x47239e=_0x354cf4;this['_status']==='not-following'&&(this[_0x47239e(0x267)]['next'](_0x47239e(0x200)),this[_0x47239e(0x2ac)]());}[_0x354cf4(0x253)](){var _0x5de418=_0x354cf4;this[_0x5de418(0x224)]==='following'&&this[_0x5de418(0x1d8)]();}[_0x354cf4(0x229)](_0xe2c2e4){var _0x28a6b0=_0x354cf4;const {presenter:_0x410dfe}=_0xe2c2e4['data'],_0x48fc59=this[_0x28a6b0(0x244)][_0x28a6b0(0x26f)]();this[_0x28a6b0(0x290)]=_0x410dfe,_0x410dfe===_0x48fc59?(this[_0x28a6b0(0x1d8)](),this[_0x28a6b0(0x1fe)]()):this['_status']!==_0x28a6b0(0x268)&&(this[_0x28a6b0(0x1ff)](),this[_0x28a6b0(0x2ac)]());}[_0x354cf4(0x27c)](){var _0x2d5ef7=_0x354cf4;const _0x15cd0d={'eventID':_[_0x2d5ef7(0x27f)][_0x2d5ef7(0x20f)]};this[_0x2d5ef7(0x244)]['send'](_0x15cd0d,this[_0x2d5ef7(0x22b)]);}[_0x354cf4(0x248)](){var _0x61991c=_0x354cf4;this[_0x61991c(0x290)]=null,this['_status']!==_0x61991c(0x26a)&&this[_0x61991c(0x246)]();}[_0x354cf4(0x252)](_0x1ad587){var _0x38194d=_0x354cf4;if(this[_0x38194d(0x224)]==='following'&&this[_0x38194d(0x290)]===_0x1ad587[_0x38194d(0x1d1)][_0x38194d(0x1e9)]){const _0x5c1cbc=_[_0x38194d(0x1e0)](_0x1ad587[_0x38194d(0x1d1)])['mutations'][_0x38194d(0x26c)]()[_0x38194d(0x277)](_0x54680a=>_0x54680a['id']===C[_0x38194d(0x1cf)]['id']);if(_0x5c1cbc){const _0x34c3ab=_0x5c1cbc[_0x38194d(0x1f0)][_0x38194d(0x270)],_0xd9badf=_0x5c1cbc['params'][_0x38194d(0x218)]['id'];setTimeout(()=>{var _0x79f7e2=_0x38194d;this[_0x79f7e2(0x231)][_0x79f7e2(0x237)](C[_0x79f7e2(0x294)]['id'],{'unitId':_0x34c3ab,'subUnitId':_0xd9badf},{'fromCollab':!0x0});});}}}[_0x354cf4(0x1fe)](){var _0x23cd10=_0x354cf4;this['_status$']['next'](_0x23cd10(0x26a));const _0x30d565=new Map(),_0x347c6f=this[_0x23cd10(0x26e)]=new o[(_0x23cd10(0x209))]();_0x347c6f[_0x23cd10(0x1da)](o[_0x23cd10(0x25b)](()=>{var _0x40788c=_0x23cd10;_0x30d565[_0x40788c(0x1d6)](_0x32c36b=>_0x32c36b['complete']()),_0x30d565[_0x40788c(0x22f)]();})),_0x347c6f[_0x23cd10(0x1da)](this[_0x23cd10(0x231)][_0x23cd10(0x25f)](_0x37cc8a=>{var _0x4f9127=_0x23cd10,_0x579a44;if(_0x37cc8a['type']!==o[_0x4f9127(0x254)][_0x4f9127(0x236)]||!this[_0x4f9127(0x28e)][_0x4f9127(0x20a)](_0x37cc8a['id']))return;const {id:_0x47bdad}=_0x37cc8a;let _0x31f981;_0x30d565[_0x4f9127(0x287)](_0x47bdad)?_0x31f981=_0x30d565['get'](_0x47bdad):(_0x31f981=new x[(_0x4f9127(0x28b))](),_0x30d565[_0x4f9127(0x281)](_0x47bdad,_0x31f981),_0x31f981[_0x4f9127(0x201)](b[_0x4f9127(0x242)]((_0x579a44=this[_0x4f9127(0x297)][_0x4f9127(0x1ea)](Z))!=null?_0x579a44:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4f9127(0x1f3)](_0x116a79=>{var _0x297489=_0x4f9127;this[_0x297489(0x244)][_0x297489(0x2a9)]({'eventID':_[_0x297489(0x27f)][_0x297489(0x213)],'data':{'unitID':this['_unitID'],'operations':{[_0x116a79['id']]:{'id':_0x116a79['id'],'params':JSON[_0x297489(0x204)](_0x116a79[_0x297489(0x1f0)])}}}},this[_0x297489(0x22b)]);})),_0x31f981[_0x4f9127(0x264)](_0x37cc8a);})),this['_liveShareService'][_0x23cd10(0x214)](this['_unitID'])['forEach'](_0x38acbd=>this[_0x23cd10(0x244)][_0x23cd10(0x2a9)]({'eventID':_[_0x23cd10(0x27f)][_0x23cd10(0x213)],'data':{'unitID':this[_0x23cd10(0x22b)],'operations':{[_0x38acbd['id']]:{'id':_0x38acbd['id'],'params':JSON['stringify'](_0x38acbd[_0x23cd10(0x1f0)])}}}},this[_0x23cd10(0x22b)]));}['_stopPresenting'](){var _0xdd9c87=_0x354cf4,_0x2012d8;this[_0xdd9c87(0x267)][_0xdd9c87(0x264)]('idle'),(_0x2012d8=this[_0xdd9c87(0x26e)])==null||_0x2012d8[_0xdd9c87(0x289)](),this[_0xdd9c87(0x26e)]=null;}['_startFollowing'](){var _0x512f44=_0x354cf4,_0x4ba869;(_0x4ba869=this[_0x512f44(0x26e)])==null||_0x4ba869[_0x512f44(0x289)](),this['_status$']['next']('following');}['_beIdle'](){var _0x12f40a=_0x354cf4,_0x1761e9;this[_0x12f40a(0x267)][_0x12f40a(0x264)](_0x12f40a(0x228)),(_0x1761e9=this[_0x12f40a(0x26e)])==null||_0x1761e9['dispose'](),this['_commandDisposable']=null;}[_0x354cf4(0x1d8)](){var _0x4cca42=_0x354cf4,_0x10baef;this[_0x4cca42(0x267)]['next'](_0x4cca42(0x268)),(_0x10baef=this[_0x4cca42(0x26e)])==null||_0x10baef[_0x4cca42(0x289)]();}[_0x354cf4(0x21b)](_0x1af6db){var _0x5b12a3=_0x354cf4;if(['presenting',_0x5b12a3(0x268),_0x5b12a3(0x2a8)]['includes'](this[_0x5b12a3(0x224)])||!_0x1af6db['data'][_0x5b12a3(0x263)]||_0x1af6db[_0x5b12a3(0x1d1)][_0x5b12a3(0x263)]===this[_0x5b12a3(0x244)][_0x5b12a3(0x26f)]())return;this[_0x5b12a3(0x224)]===_0x5b12a3(0x228)&&this[_0x5b12a3(0x2ac)]();const _0x1277b0=_0x1af6db[_0x5b12a3(0x1d1)]['operations'];Object[_0x5b12a3(0x217)](_0x1277b0)['forEach'](_0x4ce0e4=>{var _0x19a2c1=_0x5b12a3;this[_0x19a2c1(0x231)][_0x19a2c1(0x237)](_0x4ce0e4['id'],_0x4ce0e4[_0x19a2c1(0x1f0)]?JSON[_0x19a2c1(0x1df)](_0x4ce0e4['params']):null,{'fromCollab':!0x0});});}[_0x354cf4(0x23d)](){var _0x7ba9cc=_0x354cf4,_0x206c16;this[_0x7ba9cc(0x267)]['next']('offline'),(_0x206c16=this[_0x7ba9cc(0x26e)])==null||_0x206c16['dispose']();}['_handleOnline'](){var _0x46cfdf=_0x354cf4;this[_0x46cfdf(0x267)][_0x46cfdf(0x264)](_0x46cfdf(0x228)),this[_0x46cfdf(0x27c)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x354cf4(0x29a)]),S(0x3,o[_0x354cf4(0x1db)](E)),S(0x4,o['ICommandService'])],exports[_0x354cf4(0x27a)]);function A(){var _0x3a3069=_0x354cf4;const _0x18f7ee=p['useDependency'](exports[_0x3a3069(0x1e4)]),_0x3cb775=p['useDependency'](o[_0x3a3069(0x299)]),_0x39719f=p[_0x3a3069(0x251)](()=>_0x3cb775['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x3a3069(0x240)]),void 0x0,!0x1,[]),[_0x1ef9df,_0x5ac020]=f[_0x3a3069(0x23e)](null),[_0x41a28d,_0x172ea6]=f[_0x3a3069(0x23e)](h[_0x3a3069(0x276)]),_0xf9a3e4=f[_0x3a3069(0x1d2)](null);return f[_0x3a3069(0x279)](()=>(_0x39719f&&_0x18f7ee[_0x3a3069(0x24b)](_0x39719f[_0x3a3069(0x257)]())[_0x3a3069(0x1eb)](_0x452df8=>{var _0x478e62=_0x3a3069;_0x5ac020(_0x452df8),_0xf9a3e4[_0x478e62(0x29c)]=_0x452df8['status$'][_0x478e62(0x1f3)](_0x3b5e87=>{_0x172ea6(_0x3b5e87);});}),()=>{var _0x4481c1=_0x3a3069,_0x1acebe;(_0x1acebe=_0xf9a3e4[_0x4481c1(0x29c)])==null||_0x1acebe['unsubscribe'](),_0xf9a3e4['current']=null;}),[_0x39719f,_0x18f7ee]),_0x1ef9df?l[_0x3a3069(0x239)](g[_0x3a3069(0x225)],{'align':_0x3a3069(0x1d3),'disabled':_0x41a28d===h['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':l[_0x3a3069(0x239)](K,{'status':_0x41a28d,'coordinator':_0x1ef9df}),'children':l[_0x3a3069(0x239)](_0x3a3069(0x272),{'className':g['clsx'](_0x3a3069(0x21a),{'univer-cursor-not-allowed':_0x41a28d===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x41a28d!==h[_0x3a3069(0x232)]}),'type':_0x3a3069(0x272),'children':l['jsx'](P,{'className':'univer-size-4'})})}):null;}function K(_0x24712b){var _0x5e55f8=_0x354cf4;const {status:_0x30f03c,coordinator:_0x536eac}=_0x24712b;switch(_0x30f03c){case h['IDLE']:return l[_0x5e55f8(0x239)](z,{'coordinator':_0x536eac});case h['FOLLOWING']:return l['jsx'](Q,{'coordinator':_0x536eac});case h['NOT_FOLLOWING']:return l[_0x5e55f8(0x239)](X,{'coordinator':_0x536eac});case h[_0x5e55f8(0x232)]:return l['jsx'](te,{});case h[_0x5e55f8(0x1f9)]:return l[_0x5e55f8(0x239)](ee,{'coordinator':_0x536eac});default:return null;}}function z(_0x14a6c7){var _0x40e957=_0x354cf4;const {coordinator:_0x30a89e}=_0x14a6c7;return l[_0x40e957(0x245)](l[_0x40e957(0x24d)],{'children':[l[_0x40e957(0x239)]('div',{'className':_0x40e957(0x259),'children':'Present\x20this\x20document'}),l[_0x40e957(0x239)](g[_0x40e957(0x2b0)],{'onClick':()=>_0x30a89e[_0x40e957(0x1d9)](),'children':_0x40e957(0x233)})]});}function Q(_0x27a8da){var _0x359d58=_0x354cf4;const {coordinator:_0x310062}=_0x27a8da;return l[_0x359d58(0x245)](l[_0x359d58(0x24d)],{'children':[l['jsx'](_0x359d58(0x274),{'className':_0x359d58(0x259),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x359d58(0x239)](g[_0x359d58(0x2b0)],{'onClick':()=>_0x310062['stopFollowing'](),'children':_0x359d58(0x2a2)})]});}function X(_0x3aab41){var _0x249bf4=_0x354cf4;const {coordinator:_0x3ac028}=_0x3aab41;return l['jsxs'](l[_0x249bf4(0x24d)],{'children':[l[_0x249bf4(0x239)](_0x249bf4(0x274),{'className':_0x249bf4(0x259),'children':_0x249bf4(0x26d)}),l[_0x249bf4(0x239)](g['Button'],{'variant':_0x249bf4(0x280),'onClick':()=>_0x3ac028[_0x249bf4(0x1fb)](),'children':_0x249bf4(0x220)})]});}function ee(_0x4ee3c0){var _0x17e1dc=_0x354cf4;const {coordinator:_0x3e8450}=_0x4ee3c0;return l[_0x17e1dc(0x245)](l[_0x17e1dc(0x24d)],{'children':[l[_0x17e1dc(0x239)]('div',{'className':_0x17e1dc(0x259),'children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](g[_0x17e1dc(0x2b0)],{'variant':_0x17e1dc(0x27d),'onClick':()=>_0x3e8450[_0x17e1dc(0x298)](),'children':_0x17e1dc(0x2af)})]});}function te(){var _0x18a272=_0x354cf4;return l[_0x18a272(0x239)](l[_0x18a272(0x24d)],{'children':'You\x27are\x20offline.'});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x3ae9cc,_0x191d89,_0xda4b08,_0x1d1efe)=>{var _0xfe0b37=_0x354cf4;for(var _0x1591a8=_0x1d1efe>0x1?void 0x0:_0x1d1efe?ie(_0x191d89,_0xda4b08):_0x191d89,_0x3d4fda=_0x3ae9cc[_0xfe0b37(0x269)]-0x1,_0x12effe;_0x3d4fda>=0x0;_0x3d4fda--)(_0x12effe=_0x3ae9cc[_0x3d4fda])&&(_0x1591a8=_0x12effe(_0x1591a8)||_0x1591a8);return _0x1591a8;},N=(_0x4a0565,_0x736b1a)=>(_0x584ac6,_0x2459f1)=>_0x736b1a(_0x584ac6,_0x2459f1,_0x4a0565);exports[_0x354cf4(0x293)]=class extends o[_0x354cf4(0x1ee)]{constructor(_0x55e67d,_0x315dc7){var _0x4ba289=_0x354cf4;super(),this[_0x4ba289(0x25d)]=_0x55e67d,this[_0x4ba289(0x226)]=_0x315dc7,this['_mountLiveShare']();}[_0x354cf4(0x1fc)](){var _0x52527f=_0x354cf4;this['disposeWithMe'](this[_0x52527f(0x226)][_0x52527f(0x22d)](p['BuiltInUIPart'][_0x52527f(0x234)],()=>p[_0x52527f(0x24f)](A,this[_0x52527f(0x25d)])));}},exports[_0x354cf4(0x293)]=ne([N(0x0,o[_0x354cf4(0x1db)](o[_0x354cf4(0x2a0)])),N(0x1,p[_0x354cf4(0x1e2)])],exports[_0x354cf4(0x293)]);function _0x1dab(){var _0x44484e=['complete','useObservable','_handleNewChangeSets','stopFollowing','CommandType','string','onRendered','getUnitId','122750sbAbuf','univer-w-full\x20univer-mb-3\x20univer-text-sm','1585632MlKOyI','toDisposable','prototype','_injector','fill','onCommandExecuted','getValue','concat','attrs','presenter','next','map','type','_status$','not-following','length','presenting','906616GQMxyA','reverse','You\x27re\x20not\x20following\x20the\x20presenter','_commandDisposable','getMemberID','unitId','delete','button','from','div','registerSharedOperation','IDLE','find','NOT_FOLLOWING','useEffect','LiveShareCoordinator','UNIVER_LIVE_SHARE_PLUGIN','_fetchOperations','default','icon','CollaborationEvent','text','set','indexOf','toString','FOLLOWING','LIVESHARE_TERMINATE','xlink:href','has','setConfig','dispose','CollaborationSessionService','Subject','toStringTag','_handleOnline','_liveShareService','ONLINE','_presenter','react','1em','DesktopLiveShareController','SetWorksheetActiveOperation','mask','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','_configService','stopPresenting','IUniverInstanceService','IConfigService','path','current','@univerjs-pro/collaboration','_collabSessionService','trim','Injector','entries','Stop\x20following','svg','evenodd','currentColor','takeUntil','SetZoomRatioOperation','offline','send','call','displayName','_startFollowing','getOwnPropertySymbols','className','Stop\x20presenting','Button','forwardRef','InsertSheetMutation','_sharedOperations','data','useRef','end','10sbsIqz','getOwnPropertyDescriptor','forEach','getTypeOfUnitDisposed$','_stopFollowing','tryStartPresenting','add','Inject','BehaviorSubject','symbol','touchDependencies','parse','parseProtocolChangeset','_entities','IUIPartsService','createInstance','LiveShareController','asObservable','1907514rOYtKZ','init','colorChannel1','memberID','getConfig','then','hasOwnProperty','UniverCollaborationClientPlugin','Disposable','disposeWithMe','params','function','RxDisposable','subscribe','SessionStatus','dispose$','live-share-single','LIVESHARE_REQUEST_HOST','@univerjs/design','PRESENTING','sessionStatus$','startFollowing','_mountLiveShare','LiveShareService','_startPresenting','_stopPresenting','following','pipe','SetScrollOperation','UniverIcon','stringify','LiveShareStatus','propertyIsEnumerable','@univerjs/ui','_reporters','DisposableCollection','shouldShareOperation','49540PWrOyH','315ywQUxt','get','defIds','LIVESHARE_FETCH_OPERATIONS','replace','rxjs/operators','_config','LIVESHARE_OPERATION','getInitialStates','14456431bWZTCV','apply','values','sheet','_init','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_handleOperation','7MWObxo','24gHchBt','getTypeOfUnitAdded$','pluginName','Start\x20following','UNIVER_UNKNOWN','tag','Plugin','_status','Dropdown','_uiPartsService','event$','idle','_handleNewHost','NEW_CHANGESETS','_unitID','_univerInstanceService','registerComponent','LIVESHARE_NEW_HOST','clear','_startLiveShareCoordinator','_commandService','OFFLINE','Start','HEADER_MENU','url(#$1','OPERATION','executeCommand','defineProperty','jsx','registerInitialStateReporter','defs','idSuffix','_handleOffline','useState','@univerjs-pro/collaboration-client','UNIVER_SHEET','children','throttleTime','none','_collabSession','jsxs','_beIdle','UniverLiveSharePlugin','_handleTerminate','@univerjs/sheets-ui','UniverInstanceType','getLiveShareCoordinator','101032lVMAUz','Fragment','Module','connectInjector'];_0x1dab=function(){return _0x44484e;};return _0x1dab();}var re=Object[_0x354cf4(0x238)],se=Object['getOwnPropertyDescriptor'],oe=(_0x29407e,_0x13dcb6,_0xe97c47)=>_0x13dcb6 in _0x29407e?re(_0x29407e,_0x13dcb6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe97c47}):_0x29407e[_0x13dcb6]=_0xe97c47,ae=(_0x2ab3d3,_0x33ce2f,_0x54db02,_0x210a98)=>{var _0x57e418=_0x354cf4;for(var _0x3e70ce=_0x210a98>0x1?void 0x0:_0x210a98?se(_0x33ce2f,_0x54db02):_0x33ce2f,_0x3bc5ba=_0x2ab3d3[_0x57e418(0x269)]-0x1,_0x3f2114;_0x3bc5ba>=0x0;_0x3bc5ba--)(_0x3f2114=_0x2ab3d3[_0x3bc5ba])&&(_0x3e70ce=_0x3f2114(_0x3e70ce)||_0x3e70ce);return _0x3e70ce;},w=(_0x1a3064,_0x547253)=>(_0x4246c9,_0x37c9aa)=>_0x547253(_0x4246c9,_0x37c9aa,_0x1a3064),T=(_0x250ea3,_0x1c5a02,_0x25ba6c)=>oe(_0x250ea3,typeof _0x1c5a02!='symbol'?_0x1c5a02+'':_0x1c5a02,_0x25ba6c);const le=_0x354cf4(0x27b);exports[_0x354cf4(0x247)]=class extends o[_0x354cf4(0x223)]{constructor(_0x1c332e=L,_0x19c9d8,_0x3277a){var _0x413862=_0x354cf4;super(),this['_config']=_0x1c332e,this[_0x413862(0x25d)]=_0x19c9d8,this[_0x413862(0x297)]=_0x3277a;const {..._0x3eaa52}=o['merge']({},L,this[_0x413862(0x212)]);this[_0x413862(0x297)][_0x413862(0x288)]($,_0x3eaa52);}['onStarting'](){var _0x4d835d=_0x354cf4;o['registerDependencies'](this[_0x4d835d(0x25d)],o['mergeOverrideWithDependencies']([[E],[exports[_0x4d835d(0x1e4)]],[O],[exports[_0x4d835d(0x293)]]],this[_0x4d835d(0x212)]['override'])),o['touchDependencies'](this['_injector'],[[O]]);}[_0x354cf4(0x256)](){var _0xb35b9d=_0x354cf4;o[_0xb35b9d(0x1de)](this[_0xb35b9d(0x25d)],[[exports[_0xb35b9d(0x293)]]]);}},T(exports['UniverLiveSharePlugin'],_0x354cf4(0x266),o[_0x354cf4(0x24a)][_0x354cf4(0x221)]),T(exports['UniverLiveSharePlugin'],_0x354cf4(0x21f),le),exports[_0x354cf4(0x247)]=ae([o['DependentOn'](m[_0x354cf4(0x1ed)]),w(0x1,o[_0x354cf4(0x1db)](o[_0x354cf4(0x2a0)])),w(0x2,o[_0x354cf4(0x29a)])],exports[_0x354cf4(0x247)]),exports['LiveShare']=A,exports[_0x354cf4(0x1fd)]=E,exports[_0x354cf4(0x205)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x317cc4=_0x121d;(function(_0x743470,_0x2002b9){var _0x3a5e86=_0x121d,_0xeb287b=_0x743470();while(!![]){try{var _0x145502=parseInt(_0x3a5e86(0x23f))/0x1+-parseInt(_0x3a5e86(0x250))/0x2*(parseInt(_0x3a5e86(0x236))/0x3)+-parseInt(_0x3a5e86(0x22d))/0x4+parseInt(_0x3a5e86(0x258))/0x5*(-parseInt(_0x3a5e86(0x213))/0x6)+parseInt(_0x3a5e86(0x204))/0x7+-parseInt(_0x3a5e86(0x271))/0x8*(parseInt(_0x3a5e86(0x257))/0x9)+-parseInt(_0x3a5e86(0x293))/0xa*(-parseInt(_0x3a5e86(0x21b))/0xb);if(_0x145502===_0x2002b9)break;else _0xeb287b['push'](_0xeb287b['shift']());}catch(_0x32d39f){_0xeb287b['push'](_0xeb287b['shift']());}}}(_0x4352,0x68b39));var q=Object[_0x317cc4(0x28d)],z=(_0x200f56,_0x34ae8d,_0xab6661)=>_0x34ae8d in _0x200f56?q(_0x200f56,_0x34ae8d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xab6661}):_0x200f56[_0x34ae8d]=_0xab6661,d=(_0x760b2e,_0x2bc7ed,_0x5461bd)=>z(_0x760b2e,typeof _0x2bc7ed!=_0x317cc4(0x230)?_0x2bc7ed+'':_0x2bc7ed,_0x5461bd);import{CollaborationSessionService as _0xf227ba,SessionStatus as _0x488b82,UniverCollaborationClientPlugin as _0x7a3857}from'@univerjs-pro/collaboration-client';import{Disposable as _0x28b745,toDisposable as _0x1750b3,Inject as _0x3973f8,IUniverInstanceService as _0x4d6e57,Injector as _0x44f59d,IConfigService as _0x58ab73,ICommandService as _0x358665,RxDisposable as _0x371e9b,UniverInstanceType as _0x5ada5c,DisposableCollection as _0x5d76a4,CommandType as _0x1cd9a0,DependentOn as _0x17a14e,Plugin as _0x5cb41f,merge as _0x43e9f6,registerDependencies as _0x10add6,mergeOverrideWithDependencies as _0x2908f4,touchDependencies as _0x21ed85}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x34abf8,InsertSheetMutation as _0x15acd4}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x127e50,SetScrollOperation as _0x5f295}from'@univerjs/sheets-ui';import{useDependency as _0x13cf3c,useObservable as _0x3d804b,IUIPartsService as _0x4a839a,BuiltInUIPart as _0x189589,connectInjector as _0x222fb3}from'@univerjs/ui';import{jsx as _0x5e0980,jsxs as _0x86c48d,Fragment as _0x4fb342}from'react/jsx-runtime';import{Dropdown as _0xd3e1d7,clsx as _0x204084,Button as _0x1e8eb3}from'@univerjs/design';import{forwardRef as _0x10f6cc,useRef as _0xa2b4b4,createElement as _0x1cfd2c,useState as _0x1fab71,useEffect as _0x28befb}from'react';import{CollaborationEvent as _0x2f29ed,parseProtocolChangeset as _0x13f9cc}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x290e70,Subject as _0x2d0f0f}from'rxjs';import{takeUntil as _0x2284f5,throttleTime as _0x16037d}from'rxjs/operators';function _0x4352(){var _0xc6a2ca=['univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','attrs','You\x27re\x20following\x20the\x20presenter','tag','type','UNIVER_UNKNOWN','_startPresenting','unsubscribe','children','getMemberID','prototype','_collabSessionService','426qvjTkw','toString','LIVESHARE_REQUEST_HOST','find','_mountLiveShare','_injector','_handleOperation','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','517YBfGvf','_handleOnline','length','_stopPresenting','status$','requireSession','LIVESHARE_OPERATION','univer-w-full\x20univer-mb-3\x20univer-text-sm','stopFollowing','stopPresenting','IDLE','UNIVER_SHEET','_startLiveShareCoordinator','univer-size-4','colorChannel1','defIds','assign','mutations','259304SfKzGH','NEW_CHANGESETS','dispose$','symbol','idle','_liveShareService','_reporters','icon','xlink:href','1689OzIJYf','propertyIsEnumerable','presenter','_status$','_univerInstanceService','call','subscribe','use','string','494887EFhmMW','default','_entities','getConfig','map','_commandService','_collabSession','SAME_OPERATION_SHARE_INTERVAL','_config','data','get','add','delete','HEADER_MENU','complete','executeCommand','_uiPartsService','398BKSrHe','You\x27re\x20presenting\x20the\x20document','live-share-single','registerSharedOperation','set','div','_handleOffline','207DIsSUK','6005zwUpDz','getValue','You\x27are\x20offline.','next','_presenter','_beIdle','_sharedOperations','_commandDisposable','init','shouldShareOperation','dispose','then','presenting','evenodd','trim','_handleTerminate','Stop\x20presenting','onRendered','pluginName','getOwnPropertySymbols','includes','_handleNewChangeSets','getUnitId','FOLLOWING','has','239576zOJEOM','registerInitialStateReporter','UNIVER_LIVE_SHARE_PLUGIN','_unitID','idSuffix','text','sessionStatus$','PRESENTING','getTypeOfUnitAdded$','startFollowing','indexOf','disposeWithMe','_handleNewHost','extend','send','unitId','path','from','apply','registerComponent','parse','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','currentColor','replace','hasOwnProperty','displayName','_init','_configService','defineProperty','stringify','event$','concat','LiveShareSingle','defs','21130SGrRzU','override','1em','params','following','_stopFollowing','UniverIcon','className','values','getOwnPropertyDescriptor','offline','OFFLINE','getCurrentTypeOfUnit$','forEach','_fetchOperations','clear','createInstance','svg','entries','NOT_FOLLOWING','current','_startFollowing','end','mask','LIVESHARE_TERMINATE','OPERATION','LIVESHARE_NEW_HOST','button','not-following','tryStartPresenting','memberID','live-share.config','getInitialStates','pipe','random','url(#$1','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','getTypeOfUnitDisposed$','5499018uflIGE','Present\x20this\x20document','_status'];_0x4352=function(){return _0xc6a2ca;};return _0x4352();}const Oe=_0x317cc4(0x1fd),T={};class L extends _0x28b745{constructor(){var _0x1ee847=_0x317cc4;super(...arguments),d(this,_0x1ee847(0x25e),new Set()),d(this,_0x1ee847(0x233),new Set());}[_0x317cc4(0x253)](_0x34554e){var _0x453eb3=_0x317cc4;return this[_0x453eb3(0x25e)][_0x453eb3(0x24a)](_0x34554e),_0x1750b3(()=>this['_sharedOperations'][_0x453eb3(0x24b)](_0x34554e));}[_0x317cc4(0x272)](_0x205694){var _0x12118b=_0x317cc4;return this['_reporters']['add'](_0x205694),_0x1750b3(()=>this[_0x12118b(0x233)][_0x12118b(0x24b)](_0x205694));}[_0x317cc4(0x261)](_0x4348be){var _0x170dc5=_0x317cc4;return this[_0x170dc5(0x25e)][_0x170dc5(0x270)](_0x4348be);}[_0x317cc4(0x1fe)](_0x54491a){var _0x8efbc8=_0x317cc4;return Array[_0x8efbc8(0x282)](this['_reporters'])[_0x8efbc8(0x243)](_0x3e15f8=>_0x3e15f8(_0x54491a));}}var Ee=Object[_0x317cc4(0x29c)],Ce=(_0x68cb5c,_0x2e1b8e,_0x1909c4,_0x440302)=>{var _0x54f249=_0x317cc4;for(var _0x3dfd77=_0x440302>0x1?void 0x0:_0x440302?Ee(_0x2e1b8e,_0x1909c4):_0x2e1b8e,_0x411a7a=_0x68cb5c[_0x54f249(0x21d)]-0x1,_0x493dff;_0x411a7a>=0x0;_0x411a7a--)(_0x493dff=_0x68cb5c[_0x411a7a])&&(_0x3dfd77=_0x493dff(_0x3dfd77)||_0x3dfd77);return _0x3dfd77;},Ne=(_0x439b52,_0x5dd71f)=>(_0x45d733,_0x51427e)=>_0x5dd71f(_0x45d733,_0x51427e,_0x439b52);let m=class extends _0x28b745{constructor(_0x17ab6f){var _0x3e693a=_0x317cc4;super(),this[_0x3e693a(0x232)]=_0x17ab6f,this[_0x3e693a(0x28b)]();}['_init'](){var _0x4fe881=_0x317cc4;[_0x127e50['id'],_0x5f295['id'],_0x34abf8['id']][_0x4fe881(0x2a0)](_0x30dfff=>{var _0x4a8588=_0x4fe881;this[_0x4a8588(0x27c)](this[_0x4a8588(0x232)][_0x4a8588(0x253)](_0x30dfff));});}};m=Ce([Ne(0x0,_0x3973f8(L))],m);var c=function(){var _0x1890e3=_0x317cc4;return c=Object[_0x1890e3(0x22b)]||function(_0x1795d7){var _0x515cdb=_0x1890e3;for(var _0x461435,_0x927aaf=0x1,_0x1fc6d0=arguments[_0x515cdb(0x21d)];_0x927aaf<_0x1fc6d0;_0x927aaf++){_0x461435=arguments[_0x927aaf];for(var _0x2df735 in _0x461435)Object['prototype'][_0x515cdb(0x289)]['call'](_0x461435,_0x2df735)&&(_0x1795d7[_0x2df735]=_0x461435[_0x2df735]);}return _0x1795d7;},c[_0x1890e3(0x283)](this,arguments);},we=function(_0x59ab0d,_0x28711b){var _0x2597f7=_0x317cc4,_0x5b9470={};for(var _0xfe8e5f in _0x59ab0d)Object['prototype'][_0x2597f7(0x289)][_0x2597f7(0x23b)](_0x59ab0d,_0xfe8e5f)&&_0x28711b['indexOf'](_0xfe8e5f)<0x0&&(_0x5b9470[_0xfe8e5f]=_0x59ab0d[_0xfe8e5f]);if(_0x59ab0d!=null&&typeof Object[_0x2597f7(0x26b)]=='function'){for(var _0x47165a=0x0,_0xfe8e5f=Object['getOwnPropertySymbols'](_0x59ab0d);_0x47165a<_0xfe8e5f[_0x2597f7(0x21d)];_0x47165a++)_0x28711b[_0x2597f7(0x27b)](_0xfe8e5f[_0x47165a])<0x0&&Object[_0x2597f7(0x211)][_0x2597f7(0x237)][_0x2597f7(0x23b)](_0x59ab0d,_0xfe8e5f[_0x47165a])&&(_0x5b9470[_0xfe8e5f[_0x47165a]]=_0x59ab0d[_0xfe8e5f[_0x47165a]]);}return _0x5b9470;},W=_0x10f6cc(function(_0x41fb54,_0x291d63){var _0x22b872=_0x317cc4,_0xab3917=_0x41fb54[_0x22b872(0x234)],_0x342f82=_0x41fb54['id'],_0x2c3dca=_0x41fb54[_0x22b872(0x29a)],_0x220c64=_0x41fb54[_0x22b872(0x27e)],_0x3df331=we(_0x41fb54,[_0x22b872(0x234),'id','className',_0x22b872(0x27e)]),_0x5bf2b4='univerjs-icon\x20univerjs-icon-'[_0x22b872(0x290)](_0x342f82,'\x20')[_0x22b872(0x290)](_0x2c3dca||'')[_0x22b872(0x266)](),_0x2d4b15=_0xa2b4b4('_'[_0x22b872(0x290)](Le()));return Y(_0xab3917,''[_0x22b872(0x290)](_0x342f82),{'defIds':_0xab3917['defIds'],'idSuffix':_0x2d4b15[_0x22b872(0x2a7)]},c({'ref':_0x291d63,'className':_0x5bf2b4},_0x3df331),_0x220c64);});function Y(_0x457f6e,_0x57644a,_0x74a3cf,_0xa14b6,_0x595f46){var _0x55d5f5=_0x317cc4;return _0x1cfd2c(_0x457f6e[_0x55d5f5(0x20a)],c(c({'key':_0x57644a},De(_0x457f6e,_0x74a3cf,_0x595f46)),_0xa14b6),(xe(_0x457f6e,_0x74a3cf)[_0x55d5f5(0x20f)]||[])[_0x55d5f5(0x243)](function(_0x4f64fc,_0x4c4b56){var _0xf288d7=_0x55d5f5;return Y(_0x4f64fc,''[_0xf288d7(0x290)](_0x57644a,'-')['concat'](_0x457f6e[_0xf288d7(0x20a)],'-')[_0xf288d7(0x290)](_0x4c4b56),_0x74a3cf,void 0x0,_0x595f46);}));}function De(_0x13c203,_0x345e01,_0x3e0965){var _0xcf1fd9=_0x317cc4,_0x244685=c({},_0x13c203[_0xcf1fd9(0x208)]);_0x3e0965!=null&&_0x3e0965[_0xcf1fd9(0x229)]&&_0x244685['fill']===_0xcf1fd9(0x229)&&(_0x244685['fill']=_0x3e0965['colorChannel1']),_0x13c203[_0xcf1fd9(0x20a)]===_0xcf1fd9(0x1f5)&&_0x244685['id']&&(_0x244685['id']=_0x244685['id']+_0x345e01[_0xcf1fd9(0x275)]),Object[_0xcf1fd9(0x2a5)](_0x244685)[_0xcf1fd9(0x2a0)](function(_0x37f37b){var _0x5905d4=_0xcf1fd9,_0x92d969=_0x37f37b[0x0],_0x14c884=_0x37f37b[0x1];_0x92d969===_0x5905d4(0x1f5)&&typeof _0x14c884==_0x5905d4(0x23e)&&(_0x244685[_0x92d969]=_0x14c884[_0x5905d4(0x288)](/url\(#(.*)\)/,_0x5905d4(0x201)['concat'](_0x345e01['idSuffix'],')')));});var _0x599969=_0x345e01[_0xcf1fd9(0x22a)];return!_0x599969||_0x599969[_0xcf1fd9(0x21d)]===0x0||(_0x13c203[_0xcf1fd9(0x20a)]===_0xcf1fd9(0x23d)&&_0x244685[_0xcf1fd9(0x235)]&&(_0x244685['xlink:href']=_0x244685['xlink:href']+_0x345e01[_0xcf1fd9(0x275)]),Object[_0xcf1fd9(0x2a5)](_0x244685)[_0xcf1fd9(0x2a0)](function(_0x97fc36){var _0x4ece42=_0xcf1fd9,_0x324bd6=_0x97fc36[0x0],_0x25992a=_0x97fc36[0x1];typeof _0x25992a==_0x4ece42(0x23e)&&(_0x244685[_0x324bd6]=_0x25992a[_0x4ece42(0x288)](/url\(#(.*)\)/,_0x4ece42(0x201)['concat'](_0x345e01['idSuffix'],')')));})),_0x244685;}function xe(_0x254ca1,_0x2916d5){var _0xe1863a=_0x317cc4,_0x30178c,_0x31ce65=_0x2916d5['defIds'];return!_0x31ce65||_0x31ce65[_0xe1863a(0x21d)]===0x0?_0x254ca1:_0x254ca1[_0xe1863a(0x20a)]===_0xe1863a(0x292)&&(!((_0x30178c=_0x254ca1['children'])===null||_0x30178c===void 0x0)&&_0x30178c[_0xe1863a(0x21d)])?c(c({},_0x254ca1),{'children':_0x254ca1[_0xe1863a(0x20f)][_0xe1863a(0x243)](function(_0x5ecb20){var _0x2fe6db=_0xe1863a;return typeof _0x5ecb20['attrs']['id']=='string'&&_0x31ce65&&_0x31ce65[_0x2fe6db(0x27b)](_0x5ecb20['attrs']['id'])>-0x1?c(c({},_0x5ecb20),{'attrs':c(c({},_0x5ecb20[_0x2fe6db(0x208)]),{'id':_0x5ecb20[_0x2fe6db(0x208)]['id']+_0x2916d5[_0x2fe6db(0x275)]})}):_0x5ecb20;})}):_0x254ca1;}function Le(){var _0x12aa15=_0x317cc4;return Math[_0x12aa15(0x200)]()[_0x12aa15(0x214)](0x24)['substring'](0x2,0x8);}W[_0x317cc4(0x28a)]=_0x317cc4(0x299);var ye={'tag':_0x317cc4(0x2a4),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x317cc4(0x295),'height':_0x317cc4(0x295)},'children':[{'tag':'path','attrs':{'fill':_0x317cc4(0x287),'d':_0x317cc4(0x21a)}},{'tag':_0x317cc4(0x281),'attrs':{'fill':_0x317cc4(0x287),'d':_0x317cc4(0x202),'fillRule':_0x317cc4(0x265),'clipRule':_0x317cc4(0x265)}}]},B=_0x10f6cc(function(_0x38c520,_0x5d0e65){var _0x50000b=_0x317cc4;return _0x1cfd2c(W,Object[_0x50000b(0x22b)]({},_0x38c520,{'id':_0x50000b(0x252),'ref':_0x5d0e65,'icon':ye}));});B['displayName']=_0x317cc4(0x291);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x486090,_0x1b1176,_0x407818,_0x36d660)=>{for(var _0x3bf0b0=_0x36d660>0x1?void 0x0:_0x36d660?Re(_0x1b1176,_0x407818):_0x1b1176,_0x14b27b=_0x486090['length']-0x1,_0x50fe74;_0x14b27b>=0x0;_0x14b27b--)(_0x50fe74=_0x486090[_0x14b27b])&&(_0x3bf0b0=_0x50fe74(_0x3bf0b0)||_0x3bf0b0);return _0x3bf0b0;},f=(_0x4ea832,_0x1ee1e6)=>(_0x3125a1,_0x4a7d3a)=>_0x1ee1e6(_0x3125a1,_0x4a7d3a,_0x4ea832);let I=class extends _0x371e9b{constructor(_0x4bc49d,_0x310e0e,_0x24ceb6){var _0x2386b5=_0x317cc4;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x4bc49d,this[_0x2386b5(0x218)]=_0x310e0e,this[_0x2386b5(0x212)]=_0x24ceb6,this['_init']());}async['getLiveShareCoordinator'](_0x511194){var _0x13fa47=_0x317cc4;return this[_0x13fa47(0x241)]['has'](_0x511194)||await this[_0x13fa47(0x227)](_0x511194),this[_0x13fa47(0x241)]['get'](_0x511194);}[_0x317cc4(0x28b)](){var _0x4ca48c=_0x317cc4;this[_0x4ca48c(0x23a)][_0x4ca48c(0x279)](_0x5ada5c[_0x4ca48c(0x226)])['pipe'](_0x2284f5(this[_0x4ca48c(0x22f)]))[_0x4ca48c(0x23c)](async _0x15f34a=>{var _0xb35db2=_0x4ca48c;const _0x3d74ca=_0x15f34a['getUnitId']();this['_entities'][_0xb35db2(0x270)](_0x3d74ca)||this[_0xb35db2(0x227)](_0x3d74ca);}),this['_univerInstanceService'][_0x4ca48c(0x203)](_0x5ada5c[_0x4ca48c(0x226)])['pipe'](_0x2284f5(this[_0x4ca48c(0x22f)]))['subscribe'](_0x290668=>{var _0x2134bb=_0x4ca48c;const _0x16f4e4=_0x290668[_0x2134bb(0x26e)](),_0x5982a6=this['_entities'][_0x2134bb(0x249)](_0x16f4e4);_0x5982a6==null||_0x5982a6['dispose']();});}async[_0x317cc4(0x227)](_0x3baa74){var _0x3a9deb=_0x317cc4;const _0x2fe467=await this[_0x3a9deb(0x212)][_0x3a9deb(0x220)](_0x3baa74),_0x202e0c=this['_injector'][_0x3a9deb(0x2a3)](w,_0x3baa74,_0x2fe467);return _0x202e0c[_0x3a9deb(0x260)](),this[_0x3a9deb(0x241)][_0x3a9deb(0x254)](_0x3baa74,_0x202e0c),_0x202e0c;}};I=Z([f(0x0,_0x4d6e57),f(0x1,_0x3973f8(_0x44f59d)),f(0x2,_0x3973f8(_0xf227ba))],I);var h=(_0x4b2fe4=>(_0x4b2fe4['OFFLINE']='offline',_0x4b2fe4['IDLE']=_0x317cc4(0x231),_0x4b2fe4[_0x317cc4(0x26f)]=_0x317cc4(0x297),_0x4b2fe4[_0x317cc4(0x2a6)]=_0x317cc4(0x1fa),_0x4b2fe4[_0x317cc4(0x278)]=_0x317cc4(0x264),_0x4b2fe4))(h||{});const Pe=_0x317cc4(0x246),Ae=0xc8;let w=class extends _0x371e9b{constructor(_0x1e49c2,_0x1a22f2,_0x2c6a87,_0x4a48d1,_0x55bd8f){var _0x1674c0=_0x317cc4;super(),d(this,'_status$',new _0x290e70(_0x1674c0(0x231))),d(this,'status$',this[_0x1674c0(0x239)]['asObservable']()),d(this,_0x1674c0(0x28b),!0x1),d(this,_0x1674c0(0x25f),null),d(this,_0x1674c0(0x25c),null),(this['_unitID']=_0x1e49c2,this['_collabSession']=_0x1a22f2,this['_configService']=_0x2c6a87,this[_0x1674c0(0x232)]=_0x4a48d1,this[_0x1674c0(0x244)]=_0x55bd8f);}get[_0x317cc4(0x206)](){var _0x1b5e0c=_0x317cc4;return this[_0x1b5e0c(0x239)][_0x1b5e0c(0x259)]();}['dispose'](){var _0x1105c9=_0x317cc4,_0x32d36f;(_0x32d36f=this[_0x1105c9(0x25f)])==null||_0x32d36f['dispose'](),this[_0x1105c9(0x239)][_0x1105c9(0x25b)](_0x1105c9(0x231)),this['_status$'][_0x1105c9(0x24d)]();}['init'](){var _0x38f51a=_0x317cc4;this[_0x38f51a(0x28b)]||(this['_init']=!0x0,this[_0x38f51a(0x245)][_0x38f51a(0x277)][_0x38f51a(0x1ff)](_0x2284f5(this['dispose$']))[_0x38f51a(0x23c)](_0x199132=>{var _0x529f0d=_0x38f51a;switch(_0x199132){case _0x488b82[_0x529f0d(0x29e)]:this[_0x529f0d(0x256)]();break;case _0x488b82['ONLINE']:this[_0x529f0d(0x21c)]();break;}}),this['_collabSession'][_0x38f51a(0x28f)][_0x38f51a(0x1ff)](_0x2284f5(this['dispose$']))[_0x38f51a(0x23c)](_0x2bd11c=>{var _0x1d6a66=_0x38f51a;const {eventID:_0x5aac88}=_0x2bd11c;switch(_0x5aac88){case _0x2f29ed[_0x1d6a66(0x1f8)]:this['_handleNewHost'](_0x2bd11c);break;case _0x2f29ed[_0x1d6a66(0x221)]:this['_handleOperation'](_0x2bd11c);break;case _0x2f29ed[_0x1d6a66(0x1f6)]:this[_0x1d6a66(0x267)]();break;case _0x2f29ed[_0x1d6a66(0x22e)]:this[_0x1d6a66(0x26d)](_0x2bd11c);break;}}));}[_0x317cc4(0x1fb)](){var _0x79452b=_0x317cc4;this[_0x79452b(0x245)][_0x79452b(0x27f)]({'eventID':_0x2f29ed[_0x79452b(0x215)],'data':{'unitID':this[_0x79452b(0x274)],'userID':this[_0x79452b(0x245)][_0x79452b(0x210)]()}},this[_0x79452b(0x274)]);}['stopPresenting'](){var _0xb697d8=_0x317cc4;this[_0xb697d8(0x206)]===_0xb697d8(0x264)&&(this[_0xb697d8(0x239)][_0xb697d8(0x25b)](_0xb697d8(0x231)),this[_0xb697d8(0x245)][_0xb697d8(0x27f)]({'eventID':_0x2f29ed[_0xb697d8(0x1f6)],'data':{'unitID':this[_0xb697d8(0x274)]}},this['_unitID']));}[_0x317cc4(0x27a)](){var _0x2bd8af=_0x317cc4;this[_0x2bd8af(0x206)]===_0x2bd8af(0x1fa)&&(this[_0x2bd8af(0x239)][_0x2bd8af(0x25b)]('following'),this[_0x2bd8af(0x1f3)]());}[_0x317cc4(0x223)](){var _0x194c5c=_0x317cc4;this[_0x194c5c(0x206)]==='following'&&this[_0x194c5c(0x298)]();}[_0x317cc4(0x27d)](_0x4dbc46){var _0x3271a6=_0x317cc4;const {presenter:_0x1f614c}=_0x4dbc46[_0x3271a6(0x248)],_0x45375d=this['_collabSession']['getMemberID']();this[_0x3271a6(0x25c)]=_0x1f614c,_0x1f614c===_0x45375d?(this[_0x3271a6(0x298)](),this[_0x3271a6(0x20d)]()):this[_0x3271a6(0x206)]!=='not-following'&&(this[_0x3271a6(0x21e)](),this[_0x3271a6(0x1f3)]());}[_0x317cc4(0x2a1)](){var _0x453e3f=_0x317cc4;const _0x3e5e75={'eventID':_0x2f29ed['LIVESHARE_FETCH_OPERATIONS']};this[_0x453e3f(0x245)][_0x453e3f(0x27f)](_0x3e5e75,this[_0x453e3f(0x274)]);}['_handleTerminate'](){var _0x1c9174=_0x317cc4;this[_0x1c9174(0x25c)]=null,this[_0x1c9174(0x206)]!=='presenting'&&this[_0x1c9174(0x25d)]();}[_0x317cc4(0x26d)](_0x1d3829){var _0x3e838d=_0x317cc4;if(this[_0x3e838d(0x206)]===_0x3e838d(0x297)&&this['_presenter']===_0x1d3829[_0x3e838d(0x248)][_0x3e838d(0x1fc)]){const _0x54a95f=_0x13f9cc(_0x1d3829[_0x3e838d(0x248)])[_0x3e838d(0x22c)]['reverse']()[_0x3e838d(0x216)](_0x3fb685=>_0x3fb685['id']===_0x15acd4['id']);if(_0x54a95f){const _0x3ffaf3=_0x54a95f['params'][_0x3e838d(0x280)],_0x3861a1=_0x54a95f[_0x3e838d(0x296)]['sheet']['id'];setTimeout(()=>{var _0x2f50c0=_0x3e838d;this[_0x2f50c0(0x244)][_0x2f50c0(0x24e)](_0x34abf8['id'],{'unitId':_0x3ffaf3,'subUnitId':_0x3861a1},{'fromCollab':!0x0});});}}}[_0x317cc4(0x20d)](){var _0x440869=_0x317cc4;this[_0x440869(0x239)][_0x440869(0x25b)]('presenting');const _0x1e16ab=new Map(),_0x1d7efe=this['_commandDisposable']=new _0x5d76a4();_0x1d7efe[_0x440869(0x24a)](_0x1750b3(()=>{var _0x44cc42=_0x440869;_0x1e16ab[_0x44cc42(0x2a0)](_0x476daf=>_0x476daf[_0x44cc42(0x24d)]()),_0x1e16ab[_0x44cc42(0x2a2)]();})),_0x1d7efe['add'](this[_0x440869(0x244)]['onCommandExecuted'](_0x3a6da4=>{var _0x1d24ef=_0x440869,_0x209416;if(_0x3a6da4[_0x1d24ef(0x20b)]!==_0x1cd9a0[_0x1d24ef(0x1f7)]||!this[_0x1d24ef(0x232)]['shouldShareOperation'](_0x3a6da4['id']))return;const {id:_0x24424c}=_0x3a6da4;let _0x7dac48;_0x1e16ab[_0x1d24ef(0x270)](_0x24424c)?_0x7dac48=_0x1e16ab[_0x1d24ef(0x249)](_0x24424c):(_0x7dac48=new _0x2d0f0f(),_0x1e16ab['set'](_0x24424c,_0x7dac48),_0x7dac48[_0x1d24ef(0x1ff)](_0x16037d((_0x209416=this[_0x1d24ef(0x28c)][_0x1d24ef(0x242)](Pe))!=null?_0x209416:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x366b6b=>{var _0x51b633=_0x1d24ef;this[_0x51b633(0x245)][_0x51b633(0x27f)]({'eventID':_0x2f29ed[_0x51b633(0x221)],'data':{'unitID':this[_0x51b633(0x274)],'operations':{[_0x366b6b['id']]:{'id':_0x366b6b['id'],'params':JSON[_0x51b633(0x28e)](_0x366b6b[_0x51b633(0x296)])}}}},this['_unitID']);})),_0x7dac48[_0x1d24ef(0x25b)](_0x3a6da4);})),this[_0x440869(0x232)][_0x440869(0x1fe)](this[_0x440869(0x274)])[_0x440869(0x2a0)](_0x5d180a=>this[_0x440869(0x245)][_0x440869(0x27f)]({'eventID':_0x2f29ed[_0x440869(0x221)],'data':{'unitID':this['_unitID'],'operations':{[_0x5d180a['id']]:{'id':_0x5d180a['id'],'params':JSON[_0x440869(0x28e)](_0x5d180a[_0x440869(0x296)])}}}},this[_0x440869(0x274)]));}['_stopPresenting'](){var _0x5e133c=_0x317cc4,_0x578793;this[_0x5e133c(0x239)][_0x5e133c(0x25b)](_0x5e133c(0x231)),(_0x578793=this[_0x5e133c(0x25f)])==null||_0x578793[_0x5e133c(0x262)](),this[_0x5e133c(0x25f)]=null;}[_0x317cc4(0x1f3)](){var _0x3f40fa=_0x317cc4,_0x2c9f63;(_0x2c9f63=this[_0x3f40fa(0x25f)])==null||_0x2c9f63['dispose'](),this['_status$'][_0x3f40fa(0x25b)](_0x3f40fa(0x297));}[_0x317cc4(0x25d)](){var _0x243554=_0x317cc4,_0x4f25a7;this[_0x243554(0x239)]['next'](_0x243554(0x231)),(_0x4f25a7=this[_0x243554(0x25f)])==null||_0x4f25a7[_0x243554(0x262)](),this[_0x243554(0x25f)]=null;}[_0x317cc4(0x298)](){var _0x200844=_0x317cc4,_0x1794db;this[_0x200844(0x239)]['next'](_0x200844(0x1fa)),(_0x1794db=this['_commandDisposable'])==null||_0x1794db['dispose']();}[_0x317cc4(0x219)](_0x462795){var _0x356dea=_0x317cc4;if([_0x356dea(0x264),_0x356dea(0x1fa),_0x356dea(0x29d)][_0x356dea(0x26c)](this['_status'])||!_0x462795[_0x356dea(0x248)][_0x356dea(0x238)]||_0x462795[_0x356dea(0x248)]['presenter']===this['_collabSession'][_0x356dea(0x210)]())return;this[_0x356dea(0x206)]==='idle'&&this[_0x356dea(0x1f3)]();const _0x3712c9=_0x462795['data']['operations'];Object[_0x356dea(0x29b)](_0x3712c9)[_0x356dea(0x2a0)](_0x2fab1f=>{var _0x355a5f=_0x356dea;this[_0x355a5f(0x244)]['executeCommand'](_0x2fab1f['id'],_0x2fab1f[_0x355a5f(0x296)]?JSON[_0x355a5f(0x285)](_0x2fab1f[_0x355a5f(0x296)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x556308=_0x317cc4,_0x174270;this['_status$']['next'](_0x556308(0x29d)),(_0x174270=this['_commandDisposable'])==null||_0x174270[_0x556308(0x262)]();}[_0x317cc4(0x21c)](){var _0x34cd18=_0x317cc4;this[_0x34cd18(0x239)]['next'](_0x34cd18(0x231)),this[_0x34cd18(0x2a1)]();}};w=Z([f(0x2,_0x58ab73),f(0x3,_0x3973f8(L)),f(0x4,_0x358665)],w);function Te(){var _0x229741=_0x317cc4;const _0x2da1cc=_0x13cf3c(I),_0x120597=_0x13cf3c(_0x4d6e57),_0x116e02=_0x3d804b(()=>_0x120597[_0x229741(0x29f)](_0x5ada5c[_0x229741(0x226)]),void 0x0,!0x1,[]),[_0x5a6a6f,_0x5fa7a8]=_0x1fab71(null),[_0x283ebc,_0x29aa7a]=_0x1fab71(h[_0x229741(0x225)]),_0xd54d2e=_0xa2b4b4(null);return _0x28befb(()=>(_0x116e02&&_0x2da1cc['getLiveShareCoordinator'](_0x116e02[_0x229741(0x26e)]())[_0x229741(0x263)](_0x1bfb58=>{var _0x16a118=_0x229741;_0x5fa7a8(_0x1bfb58),_0xd54d2e[_0x16a118(0x2a7)]=_0x1bfb58[_0x16a118(0x21f)][_0x16a118(0x23c)](_0x133c13=>{_0x29aa7a(_0x133c13);});}),()=>{var _0x522014=_0x229741,_0x3a4593;(_0x3a4593=_0xd54d2e[_0x522014(0x2a7)])==null||_0x3a4593[_0x522014(0x20e)](),_0xd54d2e['current']=null;}),[_0x116e02,_0x2da1cc]),_0x5a6a6f?_0x5e0980(_0xd3e1d7,{'align':_0x229741(0x1f4),'disabled':_0x283ebc===h[_0x229741(0x29e)],'className':_0x229741(0x207),'overlay':_0x5e0980($e,{'status':_0x283ebc,'coordinator':_0x5a6a6f}),'children':_0x5e0980(_0x229741(0x1f9),{'className':_0x204084(_0x229741(0x286),{'univer-cursor-not-allowed':_0x283ebc===h[_0x229741(0x29e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x283ebc!==h[_0x229741(0x29e)]}),'type':_0x229741(0x1f9),'children':_0x5e0980(B,{'className':_0x229741(0x228)})})}):null;}function $e(_0x92ce41){var _0x5bde97=_0x317cc4;const {status:_0x2c27f9,coordinator:_0x32fac7}=_0x92ce41;switch(_0x2c27f9){case h[_0x5bde97(0x225)]:return _0x5e0980(Fe,{'coordinator':_0x32fac7});case h['FOLLOWING']:return _0x5e0980(He,{'coordinator':_0x32fac7});case h['NOT_FOLLOWING']:return _0x5e0980(je,{'coordinator':_0x32fac7});case h[_0x5bde97(0x29e)]:return _0x5e0980(Ve,{});case h[_0x5bde97(0x278)]:return _0x5e0980(Ue,{'coordinator':_0x32fac7});default:return null;}}function Fe(_0x5c6cf6){var _0x42fb34=_0x317cc4;const {coordinator:_0x287c55}=_0x5c6cf6;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x42fb34(0x255),{'className':_0x42fb34(0x222),'children':_0x42fb34(0x205)}),_0x5e0980(_0x1e8eb3,{'onClick':()=>_0x287c55['tryStartPresenting'](),'children':'Start'})]});}function He(_0xf55d98){var _0xacef20=_0x317cc4;const {coordinator:_0x29d1c3}=_0xf55d98;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980('div',{'className':_0xacef20(0x222),'children':_0xacef20(0x209)}),_0x5e0980(_0x1e8eb3,{'onClick':()=>_0x29d1c3['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x305996){var _0x334509=_0x317cc4;const {coordinator:_0x1ab22e}=_0x305996;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x334509(0x255),{'className':_0x334509(0x222),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x5e0980(_0x1e8eb3,{'variant':_0x334509(0x276),'onClick':()=>_0x1ab22e['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x40fa85){var _0x595a72=_0x317cc4;const {coordinator:_0x3bdb62}=_0x40fa85;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x595a72(0x255),{'className':_0x595a72(0x222),'children':_0x595a72(0x251)}),_0x5e0980(_0x1e8eb3,{'variant':_0x595a72(0x240),'onClick':()=>_0x3bdb62[_0x595a72(0x224)](),'children':_0x595a72(0x268)})]});}function _0x121d(_0x3ea700,_0x21dfc0){var _0x435208=_0x4352();return _0x121d=function(_0x121d69,_0x121d46){_0x121d69=_0x121d69-0x1f3;var _0x23ec5c=_0x435208[_0x121d69];return _0x23ec5c;},_0x121d(_0x3ea700,_0x21dfc0);}function Ve(){var _0x702579=_0x317cc4;return _0x5e0980(_0x4fb342,{'children':_0x702579(0x25a)});}var Me=Object[_0x317cc4(0x29c)],ke=(_0x4cc53e,_0x178e97,_0x4569f7,_0x149eb6)=>{var _0x449a93=_0x317cc4;for(var _0x5357e1=_0x149eb6>0x1?void 0x0:_0x149eb6?Me(_0x178e97,_0x4569f7):_0x178e97,_0x203dbf=_0x4cc53e[_0x449a93(0x21d)]-0x1,_0x18a9e1;_0x203dbf>=0x0;_0x203dbf--)(_0x18a9e1=_0x4cc53e[_0x203dbf])&&(_0x5357e1=_0x18a9e1(_0x5357e1)||_0x5357e1);return _0x5357e1;},$=(_0x203eee,_0x225775)=>(_0x466659,_0x549bea)=>_0x225775(_0x466659,_0x549bea,_0x203eee);let b=class extends _0x28b745{constructor(_0x218bbd,_0x3ca833){var _0x490b13=_0x317cc4;super(),this['_injector']=_0x218bbd,this[_0x490b13(0x24f)]=_0x3ca833,this[_0x490b13(0x217)]();}['_mountLiveShare'](){var _0x1c0c48=_0x317cc4;this[_0x1c0c48(0x27c)](this['_uiPartsService'][_0x1c0c48(0x284)](_0x189589[_0x1c0c48(0x24c)],()=>_0x222fb3(Te,this[_0x1c0c48(0x218)])));}};b=ke([$(0x0,_0x3973f8(_0x44f59d)),$(0x1,_0x4a839a)],b);var Ge=Object[_0x317cc4(0x28d)],We=Object[_0x317cc4(0x29c)],Ye=(_0x6d7a45,_0x5dddb7,_0x297d92)=>_0x5dddb7 in _0x6d7a45?Ge(_0x6d7a45,_0x5dddb7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x297d92}):_0x6d7a45[_0x5dddb7]=_0x297d92,Be=(_0x2a076e,_0x39caf3,_0x3b92db,_0x52a548)=>{for(var _0x58079e=_0x52a548>0x1?void 0x0:_0x52a548?We(_0x39caf3,_0x3b92db):_0x39caf3,_0x3c84be=_0x2a076e['length']-0x1,_0x262ee8;_0x3c84be>=0x0;_0x3c84be--)(_0x262ee8=_0x2a076e[_0x3c84be])&&(_0x58079e=_0x262ee8(_0x58079e)||_0x58079e);return _0x58079e;},F=(_0x9a5a21,_0x45c024)=>(_0x4f93c8,_0x407735)=>_0x45c024(_0x4f93c8,_0x407735,_0x9a5a21),J=(_0x4d41f4,_0x899a54,_0x460cb3)=>Ye(_0x4d41f4,typeof _0x899a54!=_0x317cc4(0x230)?_0x899a54+'':_0x899a54,_0x460cb3);const Ze=_0x317cc4(0x273);let O=class extends _0x5cb41f{constructor(_0x234ab1=T,_0x443547,_0x330d69){var _0x255c06=_0x317cc4;super(),this[_0x255c06(0x247)]=_0x234ab1,this[_0x255c06(0x218)]=_0x443547,this['_configService']=_0x330d69;const {..._0x26b14a}=_0x43e9f6({},T,this[_0x255c06(0x247)]);this[_0x255c06(0x28c)]['setConfig'](Oe,_0x26b14a);}['onStarting'](){var _0x592c44=_0x317cc4;_0x10add6(this['_injector'],_0x2908f4([[L],[I],[m],[b]],this[_0x592c44(0x247)][_0x592c44(0x294)])),_0x21ed85(this[_0x592c44(0x218)],[[m]]);}[_0x317cc4(0x269)](){_0x21ed85(this['_injector'],[[b]]);}};J(O,_0x317cc4(0x20b),_0x5ada5c[_0x317cc4(0x20c)]),J(O,_0x317cc4(0x26a),Ze),O=Be([_0x17a14e(_0x7a3857),F(0x1,_0x3973f8(_0x44f59d)),F(0x2,_0x58ab73)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x1937ef=_0x1576;(function(_0x173e22,_0x13f115){var _0x2e05a7=_0x1576,_0x580398=_0x173e22();while(!![]){try{var _0x3a5c00=parseInt(_0x2e05a7(0x124))/0x1*(-parseInt(_0x2e05a7(0x112))/0x2)+-parseInt(_0x2e05a7(0x10e))/0x3*(-parseInt(_0x2e05a7(0x15c))/0x4)+-parseInt(_0x2e05a7(0x14a))/0x5+parseInt(_0x2e05a7(0x13a))/0x6+-parseInt(_0x2e05a7(0x128))/0x7*(-parseInt(_0x2e05a7(0x141))/0x8)+parseInt(_0x2e05a7(0x184))/0x9*(-parseInt(_0x2e05a7(0x118))/0xa)+-parseInt(_0x2e05a7(0x189))/0xb;if(_0x3a5c00===_0x13f115)break;else _0x580398['push'](_0x580398['shift']());}catch(_0x2e8d69){_0x580398['push'](_0x580398['shift']());}}}(_0x2729,0xc3caa));var q=Object[_0x1937ef(0xdf)],z=(_0x51b8bd,_0x345540,_0x299412)=>_0x345540 in _0x51b8bd?q(_0x51b8bd,_0x345540,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x299412}):_0x51b8bd[_0x345540]=_0x299412,d=(_0x1fb40d,_0x2e115a,_0x230351)=>z(_0x1fb40d,typeof _0x2e115a!='symbol'?_0x2e115a+'':_0x2e115a,_0x230351);import{CollaborationSessionService as _0x2ba0ce,SessionStatus as _0x1c4986,UniverCollaborationClientPlugin as _0x310c99}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4e5696,toDisposable as _0x3445ea,Inject as _0x30f351,IUniverInstanceService as _0x4bbec0,Injector as _0x5a81c2,IConfigService as _0x268cc5,ICommandService as _0x519049,RxDisposable as _0x404045,UniverInstanceType as _0x389694,DisposableCollection as _0x1eb65a,CommandType as _0x47fa0b,DependentOn as _0x434d74,Plugin as _0xa8483a,merge as _0x520eac,registerDependencies as _0x47f38e,mergeOverrideWithDependencies as _0xf1e502,touchDependencies as _0x30d27b}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x555a90,InsertSheetMutation as _0x585918}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x530f88,SetScrollOperation as _0x3e80bd}from'@univerjs/sheets-ui';import{useDependency as _0x105a7f,useObservable as _0x56d616,IUIPartsService as _0x54648c,BuiltInUIPart as _0x3c9586,connectInjector as _0x46516c}from'@univerjs/ui';import{jsx as _0x2b8ee2,jsxs as _0x592a31,Fragment as _0x2a759f}from'react/jsx-runtime';import{Dropdown as _0xfb031,clsx as _0x4c4971,Button as _0x13e900}from'@univerjs/design';import{forwardRef as _0x4eb534,useRef as _0x412035,createElement as _0x3edc2f,useState as _0x4ec9cf,useEffect as _0x127a28}from'react';import{CollaborationEvent as _0x3698f7,parseProtocolChangeset as _0x4bddcf}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x428c9f,Subject as _0x35c93d}from'rxjs';import{takeUntil as _0x27da68,throttleTime as _0x50f4b3}from'rxjs/operators';function _0x2729(){var _0x52a53d=['get','_univerInstanceService','displayName','NEW_CHANGESETS','onCommandExecuted','colorChannel1','send','idSuffix','NOT_FOLLOWING','apply','forEach','dispose$','415521yegSHx','button','getMemberID','presenting','requireSession','6651172MJInsR','div','includes','UNIVER_UNKNOWN','defineProperty','children','stringify','function','substring','prototype','symbol','stopPresenting','UNIVER_LIVE_SHARE_PLUGIN','concat','getValue','univerjs-icon\x20univerjs-icon-','Present\x20this\x20document','_status$','_handleNewChangeSets','UNIVER_SHEET','_commandDisposable','presenter','map','offline','_init','UniverIcon','LIVESHARE_TERMINATE','fill','onStarting','LIVESHARE_OPERATION','registerInitialStateReporter','_stopFollowing','_stopPresenting','OFFLINE','path','LIVESHARE_FETCH_OPERATIONS','Start\x20following','length','shouldShareOperation','end','_unitID','_reporters','url(#$1','sheet','mask','_config','_startLiveShareCoordinator','set','getInitialStates','params','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','3UcgVkm','_startPresenting','_sharedOperations','_collabSessionService','5682KaHOis','operations','currentColor','getOwnPropertyDescriptor','replace','You\x27are\x20offline.','320XOqCrV','getOwnPropertySymbols','1em','memberID','subscribe','Stop\x20presenting','LIVESHARE_NEW_HOST','_status','idle','_handleOnline','add','_collabSession','128xsjLnX','Start','none','extend','9709rIdvkQ','_entities','entries','className','disposeWithMe','univer-w-full\x20univer-mb-3\x20univer-text-sm','reverse','call','xlink:href','stopFollowing','_beIdle','pluginName','attrs','random','unitId','SAME_OPERATION_SHARE_INTERVAL','asObservable','tryStartPresenting','4811406agjwxt','Stop\x20following','not-following','delete','LIVESHARE_REQUEST_HOST','_commandService','_handleNewHost','5624weheXg','registerSharedOperation','You\x27re\x20presenting\x20the\x20document','_configService','dispose','indexOf','ONLINE','onRendered','executeCommand','525070RwnDiV','univer-size-4','_mountLiveShare','startFollowing','text','_presenter','use','has','_liveShareService','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','type','_startFollowing','_fetchOperations','IDLE','default','defs','values','hasOwnProperty','6302888STMlpd','next','defIds','_injector','string','current','getUnitId','_uiPartsService','unsubscribe','mutations','data','evenodd','PRESENTING','_handleTerminate','event$','status$','getLiveShareCoordinator','following','icon','_handleOffline','live-share-single','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','assign','svg','pipe','live-share.config','0\x200\x2016\x2016','tag'];_0x2729=function(){return _0x52a53d;};return _0x2729();}const Oe=_0x1937ef(0x175),T={};class L extends _0x4e5696{constructor(){var _0x50524c=_0x1937ef;super(...arguments),d(this,_0x50524c(0x110),new Set()),d(this,_0x50524c(0x104),new Set());}[_0x1937ef(0x142)](_0x951be9){var _0x541c26=_0x1937ef;return this[_0x541c26(0x110)]['add'](_0x951be9),_0x3445ea(()=>this[_0x541c26(0x110)][_0x541c26(0x13d)](_0x951be9));}[_0x1937ef(0xf9)](_0x65ab9){var _0x53d93f=_0x1937ef;return this[_0x53d93f(0x104)][_0x53d93f(0x122)](_0x65ab9),_0x3445ea(()=>this[_0x53d93f(0x104)]['delete'](_0x65ab9));}[_0x1937ef(0x101)](_0x467e72){var _0x5bd0d6=_0x1937ef;return this[_0x5bd0d6(0x110)][_0x5bd0d6(0x151)](_0x467e72);}['getInitialStates'](_0x1ce978){return Array['from'](this['_reporters'])['map'](_0x4bc242=>_0x4bc242(_0x1ce978));}}var Ee=Object[_0x1937ef(0x115)],Ce=(_0x1a1f5e,_0x179481,_0x27dafd,_0x3a5290)=>{for(var _0x32cd2f=_0x3a5290>0x1?void 0x0:_0x3a5290?Ee(_0x179481,_0x27dafd):_0x179481,_0x1f3cb8=_0x1a1f5e['length']-0x1,_0x4594a1;_0x1f3cb8>=0x0;_0x1f3cb8--)(_0x4594a1=_0x1a1f5e[_0x1f3cb8])&&(_0x32cd2f=_0x4594a1(_0x32cd2f)||_0x32cd2f);return _0x32cd2f;},Ne=(_0x48ea18,_0x3c6730)=>(_0x1dc0de,_0x586bb7)=>_0x3c6730(_0x1dc0de,_0x586bb7,_0x48ea18);let m=class extends _0x4e5696{constructor(_0x18f69d){var _0x35bbd7=_0x1937ef;super(),this[_0x35bbd7(0x152)]=_0x18f69d,this['_init']();}[_0x1937ef(0xf3)](){[_0x530f88['id'],_0x3e80bd['id'],_0x555a90['id']]['forEach'](_0x3f5484=>{var _0x368979=_0x1576;this[_0x368979(0x12c)](this[_0x368979(0x152)][_0x368979(0x142)](_0x3f5484));});}};m=Ce([Ne(0x0,_0x30f351(L))],m);var c=function(){var _0x110f8b=_0x1937ef;return c=Object[_0x110f8b(0x172)]||function(_0x209f02){var _0x45bea2=_0x110f8b;for(var _0x24a608,_0x3bc3bd=0x1,_0x1f6255=arguments['length'];_0x3bc3bd<_0x1f6255;_0x3bc3bd++){_0x24a608=arguments[_0x3bc3bd];for(var _0x65f2a3 in _0x24a608)Object[_0x45bea2(0xe4)][_0x45bea2(0x15b)][_0x45bea2(0x12f)](_0x24a608,_0x65f2a3)&&(_0x209f02[_0x65f2a3]=_0x24a608[_0x65f2a3]);}return _0x209f02;},c[_0x110f8b(0x181)](this,arguments);},we=function(_0x2e83c1,_0x1519f3){var _0x1b580e=_0x1937ef,_0xa53279={};for(var _0x11279b in _0x2e83c1)Object[_0x1b580e(0xe4)]['hasOwnProperty']['call'](_0x2e83c1,_0x11279b)&&_0x1519f3['indexOf'](_0x11279b)<0x0&&(_0xa53279[_0x11279b]=_0x2e83c1[_0x11279b]);if(_0x2e83c1!=null&&typeof Object['getOwnPropertySymbols']==_0x1b580e(0xe2)){for(var _0x33a8a7=0x0,_0x11279b=Object[_0x1b580e(0x119)](_0x2e83c1);_0x33a8a7<_0x11279b[_0x1b580e(0x100)];_0x33a8a7++)_0x1519f3[_0x1b580e(0x146)](_0x11279b[_0x33a8a7])<0x0&&Object[_0x1b580e(0xe4)]['propertyIsEnumerable'][_0x1b580e(0x12f)](_0x2e83c1,_0x11279b[_0x33a8a7])&&(_0xa53279[_0x11279b[_0x33a8a7]]=_0x2e83c1[_0x11279b[_0x33a8a7]]);}return _0xa53279;},W=_0x4eb534(function(_0x567881,_0x2a65ab){var _0x5e8f05=_0x1937ef,_0x2a4568=_0x567881[_0x5e8f05(0x16e)],_0xe115b0=_0x567881['id'],_0x3ac5e1=_0x567881['className'],_0x351914=_0x567881[_0x5e8f05(0x127)],_0x1c82de=we(_0x567881,[_0x5e8f05(0x16e),'id',_0x5e8f05(0x12b),_0x5e8f05(0x127)]),_0x517195=_0x5e8f05(0xea)[_0x5e8f05(0xe8)](_0xe115b0,'\x20')[_0x5e8f05(0xe8)](_0x3ac5e1||'')['trim'](),_0x887b02=_0x412035('_'[_0x5e8f05(0xe8)](Le()));return Y(_0x2a4568,''[_0x5e8f05(0xe8)](_0xe115b0),{'defIds':_0x2a4568['defIds'],'idSuffix':_0x887b02[_0x5e8f05(0x161)]},c({'ref':_0x2a65ab,'className':_0x517195},_0x1c82de),_0x351914);});function Y(_0x5777be,_0x276c79,_0x24613d,_0x42b273,_0x556e01){var _0x234991=_0x1937ef;return _0x3edc2f(_0x5777be[_0x234991(0x177)],c(c({'key':_0x276c79},De(_0x5777be,_0x24613d,_0x556e01)),_0x42b273),(xe(_0x5777be,_0x24613d)[_0x234991(0xe0)]||[])[_0x234991(0xf1)](function(_0x38cb4a,_0x42ff63){var _0x549104=_0x234991;return Y(_0x38cb4a,''[_0x549104(0xe8)](_0x276c79,'-')[_0x549104(0xe8)](_0x5777be['tag'],'-')[_0x549104(0xe8)](_0x42ff63),_0x24613d,void 0x0,_0x556e01);}));}function De(_0x2470e7,_0x264a6a,_0x30ce26){var _0x1b1c47=_0x1937ef,_0x5e3333=c({},_0x2470e7[_0x1b1c47(0x134)]);_0x30ce26!=null&&_0x30ce26[_0x1b1c47(0x17d)]&&_0x5e3333[_0x1b1c47(0xf6)]==='colorChannel1'&&(_0x5e3333['fill']=_0x30ce26['colorChannel1']),_0x2470e7[_0x1b1c47(0x177)]===_0x1b1c47(0x107)&&_0x5e3333['id']&&(_0x5e3333['id']=_0x5e3333['id']+_0x264a6a[_0x1b1c47(0x17f)]),Object[_0x1b1c47(0x12a)](_0x5e3333)['forEach'](function(_0x50caaa){var _0x40127a=_0x1b1c47,_0xfdcf5c=_0x50caaa[0x0],_0x254c94=_0x50caaa[0x1];_0xfdcf5c===_0x40127a(0x107)&&typeof _0x254c94=='string'&&(_0x5e3333[_0xfdcf5c]=_0x254c94[_0x40127a(0x116)](/url\(#(.*)\)/,_0x40127a(0x105)['concat'](_0x264a6a[_0x40127a(0x17f)],')')));});var _0x2aa8d8=_0x264a6a[_0x1b1c47(0x15e)];return!_0x2aa8d8||_0x2aa8d8[_0x1b1c47(0x100)]===0x0||(_0x2470e7[_0x1b1c47(0x177)]===_0x1b1c47(0x150)&&_0x5e3333[_0x1b1c47(0x130)]&&(_0x5e3333[_0x1b1c47(0x130)]=_0x5e3333['xlink:href']+_0x264a6a[_0x1b1c47(0x17f)]),Object[_0x1b1c47(0x12a)](_0x5e3333)[_0x1b1c47(0x182)](function(_0x2f1ffe){var _0x7d3e91=_0x1b1c47,_0x4c3565=_0x2f1ffe[0x0],_0x4cd0d1=_0x2f1ffe[0x1];typeof _0x4cd0d1=='string'&&(_0x5e3333[_0x4c3565]=_0x4cd0d1[_0x7d3e91(0x116)](/url\(#(.*)\)/,'url(#$1'[_0x7d3e91(0xe8)](_0x264a6a[_0x7d3e91(0x17f)],')')));})),_0x5e3333;}function xe(_0x206816,_0x683920){var _0x2adf0c=_0x1937ef,_0x448bc9,_0x4cb0fe=_0x683920[_0x2adf0c(0x15e)];return!_0x4cb0fe||_0x4cb0fe[_0x2adf0c(0x100)]===0x0?_0x206816:_0x206816[_0x2adf0c(0x177)]===_0x2adf0c(0x159)&&(!((_0x448bc9=_0x206816[_0x2adf0c(0xe0)])===null||_0x448bc9===void 0x0)&&_0x448bc9['length'])?c(c({},_0x206816),{'children':_0x206816[_0x2adf0c(0xe0)][_0x2adf0c(0xf1)](function(_0x49f89e){var _0x89bddd=_0x2adf0c;return typeof _0x49f89e[_0x89bddd(0x134)]['id']==_0x89bddd(0x160)&&_0x4cb0fe&&_0x4cb0fe['indexOf'](_0x49f89e[_0x89bddd(0x134)]['id'])>-0x1?c(c({},_0x49f89e),{'attrs':c(c({},_0x49f89e[_0x89bddd(0x134)]),{'id':_0x49f89e['attrs']['id']+_0x683920['idSuffix']})}):_0x49f89e;})}):_0x206816;}function Le(){var _0x15a6ed=_0x1937ef;return Math[_0x15a6ed(0x135)]()['toString'](0x24)[_0x15a6ed(0xe3)](0x2,0x8);}W[_0x1937ef(0x17a)]=_0x1937ef(0xf4);var ye={'tag':_0x1937ef(0x173),'attrs':{'fill':_0x1937ef(0x126),'viewBox':_0x1937ef(0x176),'width':_0x1937ef(0x11a),'height':_0x1937ef(0x11a)},'children':[{'tag':'path','attrs':{'fill':_0x1937ef(0x114),'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':_0x1937ef(0xfd),'attrs':{'fill':_0x1937ef(0x114),'d':_0x1937ef(0x10d),'fillRule':_0x1937ef(0x167),'clipRule':_0x1937ef(0x167)}}]},B=_0x4eb534(function(_0x40f7ac,_0x33e63e){var _0x1c3091=_0x1937ef;return _0x3edc2f(W,Object[_0x1c3091(0x172)]({},_0x40f7ac,{'id':_0x1c3091(0x170),'ref':_0x33e63e,'icon':ye}));});B[_0x1937ef(0x17a)]='LiveShareSingle';var Re=Object[_0x1937ef(0x115)],Z=(_0x45040f,_0x163a26,_0x6ab64e,_0x1470f8)=>{var _0x16a682=_0x1937ef;for(var _0x54af03=_0x1470f8>0x1?void 0x0:_0x1470f8?Re(_0x163a26,_0x6ab64e):_0x163a26,_0x41721f=_0x45040f[_0x16a682(0x100)]-0x1,_0x576eda;_0x41721f>=0x0;_0x41721f--)(_0x576eda=_0x45040f[_0x41721f])&&(_0x54af03=_0x576eda(_0x54af03)||_0x54af03);return _0x54af03;},f=(_0x4fc4e8,_0x3a6869)=>(_0x35dc83,_0x14c249)=>_0x3a6869(_0x35dc83,_0x14c249,_0x4fc4e8);let I=class extends _0x404045{constructor(_0x38ebb1,_0x1f3604,_0x1e1bff){var _0x4eed97=_0x1937ef;super(),d(this,_0x4eed97(0x129),new Map()),(this[_0x4eed97(0x179)]=_0x38ebb1,this[_0x4eed97(0x15f)]=_0x1f3604,this['_collabSessionService']=_0x1e1bff,this['_init']());}async[_0x1937ef(0x16c)](_0x1b8e77){var _0x1e7a6f=_0x1937ef;return this[_0x1e7a6f(0x129)][_0x1e7a6f(0x151)](_0x1b8e77)||await this[_0x1e7a6f(0x109)](_0x1b8e77),this[_0x1e7a6f(0x129)][_0x1e7a6f(0x178)](_0x1b8e77);}[_0x1937ef(0xf3)](){var _0x1ad96c=_0x1937ef;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x389694[_0x1ad96c(0xee)])[_0x1ad96c(0x174)](_0x27da68(this[_0x1ad96c(0x183)]))[_0x1ad96c(0x11c)](async _0x372407=>{var _0x322b4d=_0x1ad96c;const _0x3178a3=_0x372407[_0x322b4d(0x162)]();this['_entities'][_0x322b4d(0x151)](_0x3178a3)||this[_0x322b4d(0x109)](_0x3178a3);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x389694[_0x1ad96c(0xee)])[_0x1ad96c(0x174)](_0x27da68(this[_0x1ad96c(0x183)]))['subscribe'](_0x2bdfbf=>{var _0x2a2073=_0x1ad96c;const _0x17cf06=_0x2bdfbf[_0x2a2073(0x162)](),_0x14ae28=this[_0x2a2073(0x129)][_0x2a2073(0x178)](_0x17cf06);_0x14ae28==null||_0x14ae28[_0x2a2073(0x145)]();});}async[_0x1937ef(0x109)](_0x46a360){var _0x2f3677=_0x1937ef;const _0x88faf7=await this[_0x2f3677(0x111)][_0x2f3677(0x188)](_0x46a360),_0x26509a=this['_injector']['createInstance'](w,_0x46a360,_0x88faf7);return _0x26509a['init'](),this['_entities'][_0x2f3677(0x10a)](_0x46a360,_0x26509a),_0x26509a;}};I=Z([f(0x0,_0x4bbec0),f(0x1,_0x30f351(_0x5a81c2)),f(0x2,_0x30f351(_0x2ba0ce))],I);var h=(_0x410445=>(_0x410445['OFFLINE']=_0x1937ef(0xf2),_0x410445[_0x1937ef(0x157)]=_0x1937ef(0x120),_0x410445['FOLLOWING']=_0x1937ef(0x16d),_0x410445[_0x1937ef(0x180)]='not-following',_0x410445[_0x1937ef(0x168)]='presenting',_0x410445))(h||{});const Pe=_0x1937ef(0x137),Ae=0xc8;let w=class extends _0x404045{constructor(_0x44f08c,_0x44dcff,_0x62f1c,_0x4af01b,_0x2b7b05){var _0x5d5930=_0x1937ef;super(),d(this,_0x5d5930(0xec),new _0x428c9f(_0x5d5930(0x120))),d(this,_0x5d5930(0x16b),this['_status$'][_0x5d5930(0x138)]()),d(this,_0x5d5930(0xf3),!0x1),d(this,_0x5d5930(0xef),null),d(this,_0x5d5930(0x14f),null),(this['_unitID']=_0x44f08c,this[_0x5d5930(0x123)]=_0x44dcff,this[_0x5d5930(0x144)]=_0x62f1c,this[_0x5d5930(0x152)]=_0x4af01b,this[_0x5d5930(0x13f)]=_0x2b7b05);}get[_0x1937ef(0x11f)](){var _0x2f1494=_0x1937ef;return this[_0x2f1494(0xec)][_0x2f1494(0xe9)]();}[_0x1937ef(0x145)](){var _0x338587=_0x1937ef,_0xdee2c5;(_0xdee2c5=this[_0x338587(0xef)])==null||_0xdee2c5[_0x338587(0x145)](),this[_0x338587(0xec)]['next'](_0x338587(0x120)),this[_0x338587(0xec)]['complete']();}['init'](){var _0x1494ab=_0x1937ef;this[_0x1494ab(0xf3)]||(this[_0x1494ab(0xf3)]=!0x0,this[_0x1494ab(0x123)]['sessionStatus$'][_0x1494ab(0x174)](_0x27da68(this[_0x1494ab(0x183)]))['subscribe'](_0x4862bf=>{var _0xc817e4=_0x1494ab;switch(_0x4862bf){case _0x1c4986[_0xc817e4(0xfc)]:this[_0xc817e4(0x16f)]();break;case _0x1c4986[_0xc817e4(0x147)]:this[_0xc817e4(0x121)]();break;}}),this['_collabSession'][_0x1494ab(0x16a)][_0x1494ab(0x174)](_0x27da68(this[_0x1494ab(0x183)]))[_0x1494ab(0x11c)](_0x429e47=>{var _0x5c4500=_0x1494ab;const {eventID:_0x35c88a}=_0x429e47;switch(_0x35c88a){case _0x3698f7[_0x5c4500(0x11e)]:this[_0x5c4500(0x140)](_0x429e47);break;case _0x3698f7[_0x5c4500(0xf8)]:this['_handleOperation'](_0x429e47);break;case _0x3698f7[_0x5c4500(0xf5)]:this['_handleTerminate']();break;case _0x3698f7[_0x5c4500(0x17b)]:this[_0x5c4500(0xed)](_0x429e47);break;}}));}[_0x1937ef(0x139)](){var _0x17446e=_0x1937ef;this[_0x17446e(0x123)][_0x17446e(0x17e)]({'eventID':_0x3698f7[_0x17446e(0x13e)],'data':{'unitID':this[_0x17446e(0x103)],'userID':this['_collabSession'][_0x17446e(0x186)]()}},this['_unitID']);}[_0x1937ef(0xe6)](){var _0x2660c8=_0x1937ef;this[_0x2660c8(0x11f)]===_0x2660c8(0x187)&&(this[_0x2660c8(0xec)][_0x2660c8(0x15d)](_0x2660c8(0x120)),this[_0x2660c8(0x123)]['send']({'eventID':_0x3698f7[_0x2660c8(0xf5)],'data':{'unitID':this[_0x2660c8(0x103)]}},this[_0x2660c8(0x103)]));}[_0x1937ef(0x14d)](){var _0x1db15d=_0x1937ef;this[_0x1db15d(0x11f)]==='not-following'&&(this[_0x1db15d(0xec)]['next'](_0x1db15d(0x16d)),this[_0x1db15d(0x155)]());}[_0x1937ef(0x131)](){var _0x8515b4=_0x1937ef;this[_0x8515b4(0x11f)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x28e388){var _0x5da328=_0x1937ef;const {presenter:_0x204ff2}=_0x28e388[_0x5da328(0x166)],_0x35b675=this[_0x5da328(0x123)]['getMemberID']();this['_presenter']=_0x204ff2,_0x204ff2===_0x35b675?(this[_0x5da328(0xfa)](),this[_0x5da328(0x10f)]()):this['_status']!==_0x5da328(0x13c)&&(this[_0x5da328(0xfb)](),this['_startFollowing']());}[_0x1937ef(0x156)](){var _0x5f3b36=_0x1937ef;const _0x3a4a6e={'eventID':_0x3698f7[_0x5f3b36(0xfe)]};this['_collabSession'][_0x5f3b36(0x17e)](_0x3a4a6e,this[_0x5f3b36(0x103)]);}[_0x1937ef(0x169)](){var _0x226ab4=_0x1937ef;this['_presenter']=null,this[_0x226ab4(0x11f)]!==_0x226ab4(0x187)&&this[_0x226ab4(0x132)]();}[_0x1937ef(0xed)](_0x45cb98){var _0x4a33f7=_0x1937ef;if(this[_0x4a33f7(0x11f)]==='following'&&this[_0x4a33f7(0x14f)]===_0x45cb98[_0x4a33f7(0x166)][_0x4a33f7(0x11b)]){const _0x382dc8=_0x4bddcf(_0x45cb98[_0x4a33f7(0x166)])[_0x4a33f7(0x165)][_0x4a33f7(0x12e)]()['find'](_0x313fb3=>_0x313fb3['id']===_0x585918['id']);if(_0x382dc8){const _0x293004=_0x382dc8[_0x4a33f7(0x10c)][_0x4a33f7(0x136)],_0x50a9c6=_0x382dc8[_0x4a33f7(0x10c)][_0x4a33f7(0x106)]['id'];setTimeout(()=>{var _0x42a08b=_0x4a33f7;this['_commandService'][_0x42a08b(0x149)](_0x555a90['id'],{'unitId':_0x293004,'subUnitId':_0x50a9c6},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x12b75a=_0x1937ef;this[_0x12b75a(0xec)][_0x12b75a(0x15d)](_0x12b75a(0x187));const _0x4bb14b=new Map(),_0x2f6e42=this[_0x12b75a(0xef)]=new _0x1eb65a();_0x2f6e42[_0x12b75a(0x122)](_0x3445ea(()=>{var _0x2ac822=_0x12b75a;_0x4bb14b[_0x2ac822(0x182)](_0x15e5e6=>_0x15e5e6['complete']()),_0x4bb14b['clear']();})),_0x2f6e42[_0x12b75a(0x122)](this['_commandService'][_0x12b75a(0x17c)](_0x252a19=>{var _0x2546ad=_0x12b75a,_0x92f89d;if(_0x252a19[_0x2546ad(0x154)]!==_0x47fa0b['OPERATION']||!this[_0x2546ad(0x152)][_0x2546ad(0x101)](_0x252a19['id']))return;const {id:_0x5e8116}=_0x252a19;let _0x11981d;_0x4bb14b[_0x2546ad(0x151)](_0x5e8116)?_0x11981d=_0x4bb14b[_0x2546ad(0x178)](_0x5e8116):(_0x11981d=new _0x35c93d(),_0x4bb14b[_0x2546ad(0x10a)](_0x5e8116,_0x11981d),_0x11981d[_0x2546ad(0x174)](_0x50f4b3((_0x92f89d=this[_0x2546ad(0x144)]['getConfig'](Pe))!=null?_0x92f89d:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x7aec52=>{var _0x22f697=_0x2546ad;this[_0x22f697(0x123)][_0x22f697(0x17e)]({'eventID':_0x3698f7[_0x22f697(0xf8)],'data':{'unitID':this['_unitID'],'operations':{[_0x7aec52['id']]:{'id':_0x7aec52['id'],'params':JSON[_0x22f697(0xe1)](_0x7aec52[_0x22f697(0x10c)])}}}},this[_0x22f697(0x103)]);})),_0x11981d[_0x2546ad(0x15d)](_0x252a19);})),this[_0x12b75a(0x152)][_0x12b75a(0x10b)](this['_unitID'])['forEach'](_0x5a7090=>this[_0x12b75a(0x123)][_0x12b75a(0x17e)]({'eventID':_0x3698f7['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x12b75a(0x103)],'operations':{[_0x5a7090['id']]:{'id':_0x5a7090['id'],'params':JSON['stringify'](_0x5a7090[_0x12b75a(0x10c)])}}}},this[_0x12b75a(0x103)]));}[_0x1937ef(0xfb)](){var _0xe88f8a=_0x1937ef,_0x4a3ad4;this['_status$'][_0xe88f8a(0x15d)](_0xe88f8a(0x120)),(_0x4a3ad4=this[_0xe88f8a(0xef)])==null||_0x4a3ad4[_0xe88f8a(0x145)](),this[_0xe88f8a(0xef)]=null;}['_startFollowing'](){var _0x5e1a9f=_0x1937ef,_0x17d784;(_0x17d784=this[_0x5e1a9f(0xef)])==null||_0x17d784['dispose'](),this[_0x5e1a9f(0xec)][_0x5e1a9f(0x15d)](_0x5e1a9f(0x16d));}['_beIdle'](){var _0x1827d8=_0x1937ef,_0x2b7088;this[_0x1827d8(0xec)]['next'](_0x1827d8(0x120)),(_0x2b7088=this['_commandDisposable'])==null||_0x2b7088['dispose'](),this[_0x1827d8(0xef)]=null;}['_stopFollowing'](){var _0x518bf1=_0x1937ef,_0x5e7d68;this[_0x518bf1(0xec)][_0x518bf1(0x15d)](_0x518bf1(0x13c)),(_0x5e7d68=this['_commandDisposable'])==null||_0x5e7d68[_0x518bf1(0x145)]();}['_handleOperation'](_0x3deec3){var _0x27a25c=_0x1937ef;if(['presenting',_0x27a25c(0x13c),_0x27a25c(0xf2)][_0x27a25c(0x18b)](this[_0x27a25c(0x11f)])||!_0x3deec3[_0x27a25c(0x166)][_0x27a25c(0xf0)]||_0x3deec3['data'][_0x27a25c(0xf0)]===this[_0x27a25c(0x123)][_0x27a25c(0x186)]())return;this[_0x27a25c(0x11f)]===_0x27a25c(0x120)&&this[_0x27a25c(0x155)]();const _0x2e6698=_0x3deec3[_0x27a25c(0x166)][_0x27a25c(0x113)];Object[_0x27a25c(0x15a)](_0x2e6698)[_0x27a25c(0x182)](_0x3eed35=>{var _0x496900=_0x27a25c;this[_0x496900(0x13f)]['executeCommand'](_0x3eed35['id'],_0x3eed35['params']?JSON['parse'](_0x3eed35[_0x496900(0x10c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3ad1b5=_0x1937ef,_0x2f56a8;this[_0x3ad1b5(0xec)][_0x3ad1b5(0x15d)](_0x3ad1b5(0xf2)),(_0x2f56a8=this[_0x3ad1b5(0xef)])==null||_0x2f56a8[_0x3ad1b5(0x145)]();}[_0x1937ef(0x121)](){var _0x2f053f=_0x1937ef;this['_status$'][_0x2f053f(0x15d)](_0x2f053f(0x120)),this[_0x2f053f(0x156)]();}};w=Z([f(0x2,_0x268cc5),f(0x3,_0x30f351(L)),f(0x4,_0x519049)],w);function Te(){var _0x1a057f=_0x1937ef;const _0x70b5fc=_0x105a7f(I),_0x49abab=_0x105a7f(_0x4bbec0),_0x29bbaf=_0x56d616(()=>_0x49abab['getCurrentTypeOfUnit$'](_0x389694[_0x1a057f(0xee)]),void 0x0,!0x1,[]),[_0x51b1ec,_0x202e85]=_0x4ec9cf(null),[_0x37cf1d,_0x41754f]=_0x4ec9cf(h[_0x1a057f(0x157)]),_0x593a8e=_0x412035(null);return _0x127a28(()=>(_0x29bbaf&&_0x70b5fc[_0x1a057f(0x16c)](_0x29bbaf['getUnitId']())['then'](_0x1fab39=>{var _0x485c0a=_0x1a057f;_0x202e85(_0x1fab39),_0x593a8e[_0x485c0a(0x161)]=_0x1fab39[_0x485c0a(0x16b)][_0x485c0a(0x11c)](_0x5ba079=>{_0x41754f(_0x5ba079);});}),()=>{var _0x5a5fb5=_0x1a057f,_0x39c103;(_0x39c103=_0x593a8e['current'])==null||_0x39c103[_0x5a5fb5(0x164)](),_0x593a8e['current']=null;}),[_0x29bbaf,_0x70b5fc]),_0x51b1ec?_0x2b8ee2(_0xfb031,{'align':_0x1a057f(0x102),'disabled':_0x37cf1d===h[_0x1a057f(0xfc)],'className':_0x1a057f(0x171),'overlay':_0x2b8ee2($e,{'status':_0x37cf1d,'coordinator':_0x51b1ec}),'children':_0x2b8ee2(_0x1a057f(0x185),{'className':_0x4c4971(_0x1a057f(0x153),{'univer-cursor-not-allowed':_0x37cf1d===h[_0x1a057f(0xfc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x37cf1d!==h['OFFLINE']}),'type':_0x1a057f(0x185),'children':_0x2b8ee2(B,{'className':_0x1a057f(0x14b)})})}):null;}function $e(_0x2e8c93){var _0x144bcf=_0x1937ef;const {status:_0x2fb7eb,coordinator:_0x458f08}=_0x2e8c93;switch(_0x2fb7eb){case h[_0x144bcf(0x157)]:return _0x2b8ee2(Fe,{'coordinator':_0x458f08});case h['FOLLOWING']:return _0x2b8ee2(He,{'coordinator':_0x458f08});case h[_0x144bcf(0x180)]:return _0x2b8ee2(je,{'coordinator':_0x458f08});case h[_0x144bcf(0xfc)]:return _0x2b8ee2(Ve,{});case h[_0x144bcf(0x168)]:return _0x2b8ee2(Ue,{'coordinator':_0x458f08});default:return null;}}function Fe(_0x1807ed){var _0x1b506e=_0x1937ef;const {coordinator:_0xd4be6b}=_0x1807ed;return _0x592a31(_0x2a759f,{'children':[_0x2b8ee2(_0x1b506e(0x18a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1b506e(0xeb)}),_0x2b8ee2(_0x13e900,{'onClick':()=>_0xd4be6b[_0x1b506e(0x139)](),'children':_0x1b506e(0x125)})]});}function He(_0x34c38b){var _0x158fe5=_0x1937ef;const {coordinator:_0x35d10b}=_0x34c38b;return _0x592a31(_0x2a759f,{'children':[_0x2b8ee2('div',{'className':_0x158fe5(0x12d),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x2b8ee2(_0x13e900,{'onClick':()=>_0x35d10b[_0x158fe5(0x131)](),'children':_0x158fe5(0x13b)})]});}function je(_0x576acf){var _0x498fd2=_0x1937ef;const {coordinator:_0x1703e9}=_0x576acf;return _0x592a31(_0x2a759f,{'children':[_0x2b8ee2('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2b8ee2(_0x13e900,{'variant':_0x498fd2(0x14e),'onClick':()=>_0x1703e9[_0x498fd2(0x14d)](),'children':_0x498fd2(0xff)})]});}function Ue(_0x36a252){var _0x24f9c7=_0x1937ef;const {coordinator:_0x54dbed}=_0x36a252;return _0x592a31(_0x2a759f,{'children':[_0x2b8ee2(_0x24f9c7(0x18a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x24f9c7(0x143)}),_0x2b8ee2(_0x13e900,{'variant':_0x24f9c7(0x158),'onClick':()=>_0x54dbed[_0x24f9c7(0xe6)](),'children':_0x24f9c7(0x11d)})]});}function _0x1576(_0x3bd1fb,_0x1aa911){var _0x2729a6=_0x2729();return _0x1576=function(_0x15765a,_0xc9d3f6){_0x15765a=_0x15765a-0xde;var _0x414ee6=_0x2729a6[_0x15765a];return _0x414ee6;},_0x1576(_0x3bd1fb,_0x1aa911);}function Ve(){var _0x32307a=_0x1937ef;return _0x2b8ee2(_0x2a759f,{'children':_0x32307a(0x117)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x4c616f,_0x18dc02,_0x4240f5,_0x282517)=>{for(var _0x22a4f9=_0x282517>0x1?void 0x0:_0x282517?Me(_0x18dc02,_0x4240f5):_0x18dc02,_0x4da4d2=_0x4c616f['length']-0x1,_0x4f12cd;_0x4da4d2>=0x0;_0x4da4d2--)(_0x4f12cd=_0x4c616f[_0x4da4d2])&&(_0x22a4f9=_0x4f12cd(_0x22a4f9)||_0x22a4f9);return _0x22a4f9;},$=(_0x37e13d,_0x4f3291)=>(_0x481e7e,_0x2540b9)=>_0x4f3291(_0x481e7e,_0x2540b9,_0x37e13d);let b=class extends _0x4e5696{constructor(_0x50a24c,_0x753939){var _0x322556=_0x1937ef;super(),this[_0x322556(0x15f)]=_0x50a24c,this[_0x322556(0x163)]=_0x753939,this[_0x322556(0x14c)]();}[_0x1937ef(0x14c)](){var _0x549109=_0x1937ef;this[_0x549109(0x12c)](this[_0x549109(0x163)]['registerComponent'](_0x3c9586['HEADER_MENU'],()=>_0x46516c(Te,this[_0x549109(0x15f)])));}};b=ke([$(0x0,_0x30f351(_0x5a81c2)),$(0x1,_0x54648c)],b);var Ge=Object['defineProperty'],We=Object[_0x1937ef(0x115)],Ye=(_0xa1e8f4,_0x2b64c5,_0x43d69e)=>_0x2b64c5 in _0xa1e8f4?Ge(_0xa1e8f4,_0x2b64c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43d69e}):_0xa1e8f4[_0x2b64c5]=_0x43d69e,Be=(_0x56c0c8,_0x38db95,_0x28265a,_0xac03d8)=>{var _0x22e1b3=_0x1937ef;for(var _0x2b5af3=_0xac03d8>0x1?void 0x0:_0xac03d8?We(_0x38db95,_0x28265a):_0x38db95,_0x5bce6a=_0x56c0c8[_0x22e1b3(0x100)]-0x1,_0x81a124;_0x5bce6a>=0x0;_0x5bce6a--)(_0x81a124=_0x56c0c8[_0x5bce6a])&&(_0x2b5af3=_0x81a124(_0x2b5af3)||_0x2b5af3);return _0x2b5af3;},F=(_0x5d6175,_0xbc5d91)=>(_0x5056ad,_0x59adb0)=>_0xbc5d91(_0x5056ad,_0x59adb0,_0x5d6175),J=(_0xeed6f,_0x319523,_0x4594eb)=>Ye(_0xeed6f,typeof _0x319523!=_0x1937ef(0xe5)?_0x319523+'':_0x319523,_0x4594eb);const Ze=_0x1937ef(0xe7);let O=class extends _0xa8483a{constructor(_0x571de8=T,_0x4846c5,_0x3d7654){var _0x46a759=_0x1937ef;super(),this[_0x46a759(0x108)]=_0x571de8,this[_0x46a759(0x15f)]=_0x4846c5,this[_0x46a759(0x144)]=_0x3d7654;const {..._0x2911cc}=_0x520eac({},T,this['_config']);this[_0x46a759(0x144)]['setConfig'](Oe,_0x2911cc);}[_0x1937ef(0xf7)](){var _0x7d6217=_0x1937ef;_0x47f38e(this[_0x7d6217(0x15f)],_0xf1e502([[L],[I],[m],[b]],this['_config']['override'])),_0x30d27b(this[_0x7d6217(0x15f)],[[m]]);}[_0x1937ef(0x148)](){var _0x4f8c9f=_0x1937ef;_0x30d27b(this[_0x4f8c9f(0x15f)],[[b]]);}};J(O,_0x1937ef(0x154),_0x389694[_0x1937ef(0xde)]),J(O,_0x1937ef(0x133),Ze),O=Be([_0x434d74(_0x310c99),F(0x1,_0x30f351(_0x5a81c2)),F(0x2,_0x268cc5)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x317cc4=_0x121d;(function(_0x743470,_0x2002b9){var _0x3a5e86=_0x121d,_0xeb287b=_0x743470();while(!![]){try{var _0x145502=parseInt(_0x3a5e86(0x23f))/0x1+-parseInt(_0x3a5e86(0x250))/0x2*(parseInt(_0x3a5e86(0x236))/0x3)+-parseInt(_0x3a5e86(0x22d))/0x4+parseInt(_0x3a5e86(0x258))/0x5*(-parseInt(_0x3a5e86(0x213))/0x6)+parseInt(_0x3a5e86(0x204))/0x7+-parseInt(_0x3a5e86(0x271))/0x8*(parseInt(_0x3a5e86(0x257))/0x9)+-parseInt(_0x3a5e86(0x293))/0xa*(-parseInt(_0x3a5e86(0x21b))/0xb);if(_0x145502===_0x2002b9)break;else _0xeb287b['push'](_0xeb287b['shift']());}catch(_0x32d39f){_0xeb287b['push'](_0xeb287b['shift']());}}}(_0x4352,0x68b39));var q=Object[_0x317cc4(0x28d)],z=(_0x200f56,_0x34ae8d,_0xab6661)=>_0x34ae8d in _0x200f56?q(_0x200f56,_0x34ae8d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xab6661}):_0x200f56[_0x34ae8d]=_0xab6661,d=(_0x760b2e,_0x2bc7ed,_0x5461bd)=>z(_0x760b2e,typeof _0x2bc7ed!=_0x317cc4(0x230)?_0x2bc7ed+'':_0x2bc7ed,_0x5461bd);import{CollaborationSessionService as _0xf227ba,SessionStatus as _0x488b82,UniverCollaborationClientPlugin as _0x7a3857}from'@univerjs-pro/collaboration-client';import{Disposable as _0x28b745,toDisposable as _0x1750b3,Inject as _0x3973f8,IUniverInstanceService as _0x4d6e57,Injector as _0x44f59d,IConfigService as _0x58ab73,ICommandService as _0x358665,RxDisposable as _0x371e9b,UniverInstanceType as _0x5ada5c,DisposableCollection as _0x5d76a4,CommandType as _0x1cd9a0,DependentOn as _0x17a14e,Plugin as _0x5cb41f,merge as _0x43e9f6,registerDependencies as _0x10add6,mergeOverrideWithDependencies as _0x2908f4,touchDependencies as _0x21ed85}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x34abf8,InsertSheetMutation as _0x15acd4}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x127e50,SetScrollOperation as _0x5f295}from'@univerjs/sheets-ui';import{useDependency as _0x13cf3c,useObservable as _0x3d804b,IUIPartsService as _0x4a839a,BuiltInUIPart as _0x189589,connectInjector as _0x222fb3}from'@univerjs/ui';import{jsx as _0x5e0980,jsxs as _0x86c48d,Fragment as _0x4fb342}from'react/jsx-runtime';import{Dropdown as _0xd3e1d7,clsx as _0x204084,Button as _0x1e8eb3}from'@univerjs/design';import{forwardRef as _0x10f6cc,useRef as _0xa2b4b4,createElement as _0x1cfd2c,useState as _0x1fab71,useEffect as _0x28befb}from'react';import{CollaborationEvent as _0x2f29ed,parseProtocolChangeset as _0x13f9cc}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x290e70,Subject as _0x2d0f0f}from'rxjs';import{takeUntil as _0x2284f5,throttleTime as _0x16037d}from'rxjs/operators';function _0x4352(){var _0xc6a2ca=['univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','attrs','You\x27re\x20following\x20the\x20presenter','tag','type','UNIVER_UNKNOWN','_startPresenting','unsubscribe','children','getMemberID','prototype','_collabSessionService','426qvjTkw','toString','LIVESHARE_REQUEST_HOST','find','_mountLiveShare','_injector','_handleOperation','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','517YBfGvf','_handleOnline','length','_stopPresenting','status$','requireSession','LIVESHARE_OPERATION','univer-w-full\x20univer-mb-3\x20univer-text-sm','stopFollowing','stopPresenting','IDLE','UNIVER_SHEET','_startLiveShareCoordinator','univer-size-4','colorChannel1','defIds','assign','mutations','259304SfKzGH','NEW_CHANGESETS','dispose$','symbol','idle','_liveShareService','_reporters','icon','xlink:href','1689OzIJYf','propertyIsEnumerable','presenter','_status$','_univerInstanceService','call','subscribe','use','string','494887EFhmMW','default','_entities','getConfig','map','_commandService','_collabSession','SAME_OPERATION_SHARE_INTERVAL','_config','data','get','add','delete','HEADER_MENU','complete','executeCommand','_uiPartsService','398BKSrHe','You\x27re\x20presenting\x20the\x20document','live-share-single','registerSharedOperation','set','div','_handleOffline','207DIsSUK','6005zwUpDz','getValue','You\x27are\x20offline.','next','_presenter','_beIdle','_sharedOperations','_commandDisposable','init','shouldShareOperation','dispose','then','presenting','evenodd','trim','_handleTerminate','Stop\x20presenting','onRendered','pluginName','getOwnPropertySymbols','includes','_handleNewChangeSets','getUnitId','FOLLOWING','has','239576zOJEOM','registerInitialStateReporter','UNIVER_LIVE_SHARE_PLUGIN','_unitID','idSuffix','text','sessionStatus$','PRESENTING','getTypeOfUnitAdded$','startFollowing','indexOf','disposeWithMe','_handleNewHost','extend','send','unitId','path','from','apply','registerComponent','parse','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','currentColor','replace','hasOwnProperty','displayName','_init','_configService','defineProperty','stringify','event$','concat','LiveShareSingle','defs','21130SGrRzU','override','1em','params','following','_stopFollowing','UniverIcon','className','values','getOwnPropertyDescriptor','offline','OFFLINE','getCurrentTypeOfUnit$','forEach','_fetchOperations','clear','createInstance','svg','entries','NOT_FOLLOWING','current','_startFollowing','end','mask','LIVESHARE_TERMINATE','OPERATION','LIVESHARE_NEW_HOST','button','not-following','tryStartPresenting','memberID','live-share.config','getInitialStates','pipe','random','url(#$1','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','getTypeOfUnitDisposed$','5499018uflIGE','Present\x20this\x20document','_status'];_0x4352=function(){return _0xc6a2ca;};return _0x4352();}const Oe=_0x317cc4(0x1fd),T={};class L extends _0x28b745{constructor(){var _0x1ee847=_0x317cc4;super(...arguments),d(this,_0x1ee847(0x25e),new Set()),d(this,_0x1ee847(0x233),new Set());}[_0x317cc4(0x253)](_0x34554e){var _0x453eb3=_0x317cc4;return this[_0x453eb3(0x25e)][_0x453eb3(0x24a)](_0x34554e),_0x1750b3(()=>this['_sharedOperations'][_0x453eb3(0x24b)](_0x34554e));}[_0x317cc4(0x272)](_0x205694){var _0x12118b=_0x317cc4;return this['_reporters']['add'](_0x205694),_0x1750b3(()=>this[_0x12118b(0x233)][_0x12118b(0x24b)](_0x205694));}[_0x317cc4(0x261)](_0x4348be){var _0x170dc5=_0x317cc4;return this[_0x170dc5(0x25e)][_0x170dc5(0x270)](_0x4348be);}[_0x317cc4(0x1fe)](_0x54491a){var _0x8efbc8=_0x317cc4;return Array[_0x8efbc8(0x282)](this['_reporters'])[_0x8efbc8(0x243)](_0x3e15f8=>_0x3e15f8(_0x54491a));}}var Ee=Object[_0x317cc4(0x29c)],Ce=(_0x68cb5c,_0x2e1b8e,_0x1909c4,_0x440302)=>{var _0x54f249=_0x317cc4;for(var _0x3dfd77=_0x440302>0x1?void 0x0:_0x440302?Ee(_0x2e1b8e,_0x1909c4):_0x2e1b8e,_0x411a7a=_0x68cb5c[_0x54f249(0x21d)]-0x1,_0x493dff;_0x411a7a>=0x0;_0x411a7a--)(_0x493dff=_0x68cb5c[_0x411a7a])&&(_0x3dfd77=_0x493dff(_0x3dfd77)||_0x3dfd77);return _0x3dfd77;},Ne=(_0x439b52,_0x5dd71f)=>(_0x45d733,_0x51427e)=>_0x5dd71f(_0x45d733,_0x51427e,_0x439b52);let m=class extends _0x28b745{constructor(_0x17ab6f){var _0x3e693a=_0x317cc4;super(),this[_0x3e693a(0x232)]=_0x17ab6f,this[_0x3e693a(0x28b)]();}['_init'](){var _0x4fe881=_0x317cc4;[_0x127e50['id'],_0x5f295['id'],_0x34abf8['id']][_0x4fe881(0x2a0)](_0x30dfff=>{var _0x4a8588=_0x4fe881;this[_0x4a8588(0x27c)](this[_0x4a8588(0x232)][_0x4a8588(0x253)](_0x30dfff));});}};m=Ce([Ne(0x0,_0x3973f8(L))],m);var c=function(){var _0x1890e3=_0x317cc4;return c=Object[_0x1890e3(0x22b)]||function(_0x1795d7){var _0x515cdb=_0x1890e3;for(var _0x461435,_0x927aaf=0x1,_0x1fc6d0=arguments[_0x515cdb(0x21d)];_0x927aaf<_0x1fc6d0;_0x927aaf++){_0x461435=arguments[_0x927aaf];for(var _0x2df735 in _0x461435)Object['prototype'][_0x515cdb(0x289)]['call'](_0x461435,_0x2df735)&&(_0x1795d7[_0x2df735]=_0x461435[_0x2df735]);}return _0x1795d7;},c[_0x1890e3(0x283)](this,arguments);},we=function(_0x59ab0d,_0x28711b){var _0x2597f7=_0x317cc4,_0x5b9470={};for(var _0xfe8e5f in _0x59ab0d)Object['prototype'][_0x2597f7(0x289)][_0x2597f7(0x23b)](_0x59ab0d,_0xfe8e5f)&&_0x28711b['indexOf'](_0xfe8e5f)<0x0&&(_0x5b9470[_0xfe8e5f]=_0x59ab0d[_0xfe8e5f]);if(_0x59ab0d!=null&&typeof Object[_0x2597f7(0x26b)]=='function'){for(var _0x47165a=0x0,_0xfe8e5f=Object['getOwnPropertySymbols'](_0x59ab0d);_0x47165a<_0xfe8e5f[_0x2597f7(0x21d)];_0x47165a++)_0x28711b[_0x2597f7(0x27b)](_0xfe8e5f[_0x47165a])<0x0&&Object[_0x2597f7(0x211)][_0x2597f7(0x237)][_0x2597f7(0x23b)](_0x59ab0d,_0xfe8e5f[_0x47165a])&&(_0x5b9470[_0xfe8e5f[_0x47165a]]=_0x59ab0d[_0xfe8e5f[_0x47165a]]);}return _0x5b9470;},W=_0x10f6cc(function(_0x41fb54,_0x291d63){var _0x22b872=_0x317cc4,_0xab3917=_0x41fb54[_0x22b872(0x234)],_0x342f82=_0x41fb54['id'],_0x2c3dca=_0x41fb54[_0x22b872(0x29a)],_0x220c64=_0x41fb54[_0x22b872(0x27e)],_0x3df331=we(_0x41fb54,[_0x22b872(0x234),'id','className',_0x22b872(0x27e)]),_0x5bf2b4='univerjs-icon\x20univerjs-icon-'[_0x22b872(0x290)](_0x342f82,'\x20')[_0x22b872(0x290)](_0x2c3dca||'')[_0x22b872(0x266)](),_0x2d4b15=_0xa2b4b4('_'[_0x22b872(0x290)](Le()));return Y(_0xab3917,''[_0x22b872(0x290)](_0x342f82),{'defIds':_0xab3917['defIds'],'idSuffix':_0x2d4b15[_0x22b872(0x2a7)]},c({'ref':_0x291d63,'className':_0x5bf2b4},_0x3df331),_0x220c64);});function Y(_0x457f6e,_0x57644a,_0x74a3cf,_0xa14b6,_0x595f46){var _0x55d5f5=_0x317cc4;return _0x1cfd2c(_0x457f6e[_0x55d5f5(0x20a)],c(c({'key':_0x57644a},De(_0x457f6e,_0x74a3cf,_0x595f46)),_0xa14b6),(xe(_0x457f6e,_0x74a3cf)[_0x55d5f5(0x20f)]||[])[_0x55d5f5(0x243)](function(_0x4f64fc,_0x4c4b56){var _0xf288d7=_0x55d5f5;return Y(_0x4f64fc,''[_0xf288d7(0x290)](_0x57644a,'-')['concat'](_0x457f6e[_0xf288d7(0x20a)],'-')[_0xf288d7(0x290)](_0x4c4b56),_0x74a3cf,void 0x0,_0x595f46);}));}function De(_0x13c203,_0x345e01,_0x3e0965){var _0xcf1fd9=_0x317cc4,_0x244685=c({},_0x13c203[_0xcf1fd9(0x208)]);_0x3e0965!=null&&_0x3e0965[_0xcf1fd9(0x229)]&&_0x244685['fill']===_0xcf1fd9(0x229)&&(_0x244685['fill']=_0x3e0965['colorChannel1']),_0x13c203[_0xcf1fd9(0x20a)]===_0xcf1fd9(0x1f5)&&_0x244685['id']&&(_0x244685['id']=_0x244685['id']+_0x345e01[_0xcf1fd9(0x275)]),Object[_0xcf1fd9(0x2a5)](_0x244685)[_0xcf1fd9(0x2a0)](function(_0x37f37b){var _0x5905d4=_0xcf1fd9,_0x92d969=_0x37f37b[0x0],_0x14c884=_0x37f37b[0x1];_0x92d969===_0x5905d4(0x1f5)&&typeof _0x14c884==_0x5905d4(0x23e)&&(_0x244685[_0x92d969]=_0x14c884[_0x5905d4(0x288)](/url\(#(.*)\)/,_0x5905d4(0x201)['concat'](_0x345e01['idSuffix'],')')));});var _0x599969=_0x345e01[_0xcf1fd9(0x22a)];return!_0x599969||_0x599969[_0xcf1fd9(0x21d)]===0x0||(_0x13c203[_0xcf1fd9(0x20a)]===_0xcf1fd9(0x23d)&&_0x244685[_0xcf1fd9(0x235)]&&(_0x244685['xlink:href']=_0x244685['xlink:href']+_0x345e01[_0xcf1fd9(0x275)]),Object[_0xcf1fd9(0x2a5)](_0x244685)[_0xcf1fd9(0x2a0)](function(_0x97fc36){var _0x4ece42=_0xcf1fd9,_0x324bd6=_0x97fc36[0x0],_0x25992a=_0x97fc36[0x1];typeof _0x25992a==_0x4ece42(0x23e)&&(_0x244685[_0x324bd6]=_0x25992a[_0x4ece42(0x288)](/url\(#(.*)\)/,_0x4ece42(0x201)['concat'](_0x345e01['idSuffix'],')')));})),_0x244685;}function xe(_0x254ca1,_0x2916d5){var _0xe1863a=_0x317cc4,_0x30178c,_0x31ce65=_0x2916d5['defIds'];return!_0x31ce65||_0x31ce65[_0xe1863a(0x21d)]===0x0?_0x254ca1:_0x254ca1[_0xe1863a(0x20a)]===_0xe1863a(0x292)&&(!((_0x30178c=_0x254ca1['children'])===null||_0x30178c===void 0x0)&&_0x30178c[_0xe1863a(0x21d)])?c(c({},_0x254ca1),{'children':_0x254ca1[_0xe1863a(0x20f)][_0xe1863a(0x243)](function(_0x5ecb20){var _0x2fe6db=_0xe1863a;return typeof _0x5ecb20['attrs']['id']=='string'&&_0x31ce65&&_0x31ce65[_0x2fe6db(0x27b)](_0x5ecb20['attrs']['id'])>-0x1?c(c({},_0x5ecb20),{'attrs':c(c({},_0x5ecb20[_0x2fe6db(0x208)]),{'id':_0x5ecb20[_0x2fe6db(0x208)]['id']+_0x2916d5[_0x2fe6db(0x275)]})}):_0x5ecb20;})}):_0x254ca1;}function Le(){var _0x12aa15=_0x317cc4;return Math[_0x12aa15(0x200)]()[_0x12aa15(0x214)](0x24)['substring'](0x2,0x8);}W[_0x317cc4(0x28a)]=_0x317cc4(0x299);var ye={'tag':_0x317cc4(0x2a4),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x317cc4(0x295),'height':_0x317cc4(0x295)},'children':[{'tag':'path','attrs':{'fill':_0x317cc4(0x287),'d':_0x317cc4(0x21a)}},{'tag':_0x317cc4(0x281),'attrs':{'fill':_0x317cc4(0x287),'d':_0x317cc4(0x202),'fillRule':_0x317cc4(0x265),'clipRule':_0x317cc4(0x265)}}]},B=_0x10f6cc(function(_0x38c520,_0x5d0e65){var _0x50000b=_0x317cc4;return _0x1cfd2c(W,Object[_0x50000b(0x22b)]({},_0x38c520,{'id':_0x50000b(0x252),'ref':_0x5d0e65,'icon':ye}));});B['displayName']=_0x317cc4(0x291);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x486090,_0x1b1176,_0x407818,_0x36d660)=>{for(var _0x3bf0b0=_0x36d660>0x1?void 0x0:_0x36d660?Re(_0x1b1176,_0x407818):_0x1b1176,_0x14b27b=_0x486090['length']-0x1,_0x50fe74;_0x14b27b>=0x0;_0x14b27b--)(_0x50fe74=_0x486090[_0x14b27b])&&(_0x3bf0b0=_0x50fe74(_0x3bf0b0)||_0x3bf0b0);return _0x3bf0b0;},f=(_0x4ea832,_0x1ee1e6)=>(_0x3125a1,_0x4a7d3a)=>_0x1ee1e6(_0x3125a1,_0x4a7d3a,_0x4ea832);let I=class extends _0x371e9b{constructor(_0x4bc49d,_0x310e0e,_0x24ceb6){var _0x2386b5=_0x317cc4;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x4bc49d,this[_0x2386b5(0x218)]=_0x310e0e,this[_0x2386b5(0x212)]=_0x24ceb6,this['_init']());}async['getLiveShareCoordinator'](_0x511194){var _0x13fa47=_0x317cc4;return this[_0x13fa47(0x241)]['has'](_0x511194)||await this[_0x13fa47(0x227)](_0x511194),this[_0x13fa47(0x241)]['get'](_0x511194);}[_0x317cc4(0x28b)](){var _0x4ca48c=_0x317cc4;this[_0x4ca48c(0x23a)][_0x4ca48c(0x279)](_0x5ada5c[_0x4ca48c(0x226)])['pipe'](_0x2284f5(this[_0x4ca48c(0x22f)]))[_0x4ca48c(0x23c)](async _0x15f34a=>{var _0xb35db2=_0x4ca48c;const _0x3d74ca=_0x15f34a['getUnitId']();this['_entities'][_0xb35db2(0x270)](_0x3d74ca)||this[_0xb35db2(0x227)](_0x3d74ca);}),this['_univerInstanceService'][_0x4ca48c(0x203)](_0x5ada5c[_0x4ca48c(0x226)])['pipe'](_0x2284f5(this[_0x4ca48c(0x22f)]))['subscribe'](_0x290668=>{var _0x2134bb=_0x4ca48c;const _0x16f4e4=_0x290668[_0x2134bb(0x26e)](),_0x5982a6=this['_entities'][_0x2134bb(0x249)](_0x16f4e4);_0x5982a6==null||_0x5982a6['dispose']();});}async[_0x317cc4(0x227)](_0x3baa74){var _0x3a9deb=_0x317cc4;const _0x2fe467=await this[_0x3a9deb(0x212)][_0x3a9deb(0x220)](_0x3baa74),_0x202e0c=this['_injector'][_0x3a9deb(0x2a3)](w,_0x3baa74,_0x2fe467);return _0x202e0c[_0x3a9deb(0x260)](),this[_0x3a9deb(0x241)][_0x3a9deb(0x254)](_0x3baa74,_0x202e0c),_0x202e0c;}};I=Z([f(0x0,_0x4d6e57),f(0x1,_0x3973f8(_0x44f59d)),f(0x2,_0x3973f8(_0xf227ba))],I);var h=(_0x4b2fe4=>(_0x4b2fe4['OFFLINE']='offline',_0x4b2fe4['IDLE']=_0x317cc4(0x231),_0x4b2fe4[_0x317cc4(0x26f)]=_0x317cc4(0x297),_0x4b2fe4[_0x317cc4(0x2a6)]=_0x317cc4(0x1fa),_0x4b2fe4[_0x317cc4(0x278)]=_0x317cc4(0x264),_0x4b2fe4))(h||{});const Pe=_0x317cc4(0x246),Ae=0xc8;let w=class extends _0x371e9b{constructor(_0x1e49c2,_0x1a22f2,_0x2c6a87,_0x4a48d1,_0x55bd8f){var _0x1674c0=_0x317cc4;super(),d(this,'_status$',new _0x290e70(_0x1674c0(0x231))),d(this,'status$',this[_0x1674c0(0x239)]['asObservable']()),d(this,_0x1674c0(0x28b),!0x1),d(this,_0x1674c0(0x25f),null),d(this,_0x1674c0(0x25c),null),(this['_unitID']=_0x1e49c2,this['_collabSession']=_0x1a22f2,this['_configService']=_0x2c6a87,this[_0x1674c0(0x232)]=_0x4a48d1,this[_0x1674c0(0x244)]=_0x55bd8f);}get[_0x317cc4(0x206)](){var _0x1b5e0c=_0x317cc4;return this[_0x1b5e0c(0x239)][_0x1b5e0c(0x259)]();}['dispose'](){var _0x1105c9=_0x317cc4,_0x32d36f;(_0x32d36f=this[_0x1105c9(0x25f)])==null||_0x32d36f['dispose'](),this[_0x1105c9(0x239)][_0x1105c9(0x25b)](_0x1105c9(0x231)),this['_status$'][_0x1105c9(0x24d)]();}['init'](){var _0x38f51a=_0x317cc4;this[_0x38f51a(0x28b)]||(this['_init']=!0x0,this[_0x38f51a(0x245)][_0x38f51a(0x277)][_0x38f51a(0x1ff)](_0x2284f5(this['dispose$']))[_0x38f51a(0x23c)](_0x199132=>{var _0x529f0d=_0x38f51a;switch(_0x199132){case _0x488b82[_0x529f0d(0x29e)]:this[_0x529f0d(0x256)]();break;case _0x488b82['ONLINE']:this[_0x529f0d(0x21c)]();break;}}),this['_collabSession'][_0x38f51a(0x28f)][_0x38f51a(0x1ff)](_0x2284f5(this['dispose$']))[_0x38f51a(0x23c)](_0x2bd11c=>{var _0x1d6a66=_0x38f51a;const {eventID:_0x5aac88}=_0x2bd11c;switch(_0x5aac88){case _0x2f29ed[_0x1d6a66(0x1f8)]:this['_handleNewHost'](_0x2bd11c);break;case _0x2f29ed[_0x1d6a66(0x221)]:this['_handleOperation'](_0x2bd11c);break;case _0x2f29ed[_0x1d6a66(0x1f6)]:this[_0x1d6a66(0x267)]();break;case _0x2f29ed[_0x1d6a66(0x22e)]:this[_0x1d6a66(0x26d)](_0x2bd11c);break;}}));}[_0x317cc4(0x1fb)](){var _0x79452b=_0x317cc4;this[_0x79452b(0x245)][_0x79452b(0x27f)]({'eventID':_0x2f29ed[_0x79452b(0x215)],'data':{'unitID':this[_0x79452b(0x274)],'userID':this[_0x79452b(0x245)][_0x79452b(0x210)]()}},this[_0x79452b(0x274)]);}['stopPresenting'](){var _0xb697d8=_0x317cc4;this[_0xb697d8(0x206)]===_0xb697d8(0x264)&&(this[_0xb697d8(0x239)][_0xb697d8(0x25b)](_0xb697d8(0x231)),this[_0xb697d8(0x245)][_0xb697d8(0x27f)]({'eventID':_0x2f29ed[_0xb697d8(0x1f6)],'data':{'unitID':this[_0xb697d8(0x274)]}},this['_unitID']));}[_0x317cc4(0x27a)](){var _0x2bd8af=_0x317cc4;this[_0x2bd8af(0x206)]===_0x2bd8af(0x1fa)&&(this[_0x2bd8af(0x239)][_0x2bd8af(0x25b)]('following'),this[_0x2bd8af(0x1f3)]());}[_0x317cc4(0x223)](){var _0x194c5c=_0x317cc4;this[_0x194c5c(0x206)]==='following'&&this[_0x194c5c(0x298)]();}[_0x317cc4(0x27d)](_0x4dbc46){var _0x3271a6=_0x317cc4;const {presenter:_0x1f614c}=_0x4dbc46[_0x3271a6(0x248)],_0x45375d=this['_collabSession']['getMemberID']();this[_0x3271a6(0x25c)]=_0x1f614c,_0x1f614c===_0x45375d?(this[_0x3271a6(0x298)](),this[_0x3271a6(0x20d)]()):this[_0x3271a6(0x206)]!=='not-following'&&(this[_0x3271a6(0x21e)](),this[_0x3271a6(0x1f3)]());}[_0x317cc4(0x2a1)](){var _0x453e3f=_0x317cc4;const _0x3e5e75={'eventID':_0x2f29ed['LIVESHARE_FETCH_OPERATIONS']};this[_0x453e3f(0x245)][_0x453e3f(0x27f)](_0x3e5e75,this[_0x453e3f(0x274)]);}['_handleTerminate'](){var _0x1c9174=_0x317cc4;this[_0x1c9174(0x25c)]=null,this[_0x1c9174(0x206)]!=='presenting'&&this[_0x1c9174(0x25d)]();}[_0x317cc4(0x26d)](_0x1d3829){var _0x3e838d=_0x317cc4;if(this[_0x3e838d(0x206)]===_0x3e838d(0x297)&&this['_presenter']===_0x1d3829[_0x3e838d(0x248)][_0x3e838d(0x1fc)]){const _0x54a95f=_0x13f9cc(_0x1d3829[_0x3e838d(0x248)])[_0x3e838d(0x22c)]['reverse']()[_0x3e838d(0x216)](_0x3fb685=>_0x3fb685['id']===_0x15acd4['id']);if(_0x54a95f){const _0x3ffaf3=_0x54a95f['params'][_0x3e838d(0x280)],_0x3861a1=_0x54a95f[_0x3e838d(0x296)]['sheet']['id'];setTimeout(()=>{var _0x2f50c0=_0x3e838d;this[_0x2f50c0(0x244)][_0x2f50c0(0x24e)](_0x34abf8['id'],{'unitId':_0x3ffaf3,'subUnitId':_0x3861a1},{'fromCollab':!0x0});});}}}[_0x317cc4(0x20d)](){var _0x440869=_0x317cc4;this[_0x440869(0x239)][_0x440869(0x25b)]('presenting');const _0x1e16ab=new Map(),_0x1d7efe=this['_commandDisposable']=new _0x5d76a4();_0x1d7efe[_0x440869(0x24a)](_0x1750b3(()=>{var _0x44cc42=_0x440869;_0x1e16ab[_0x44cc42(0x2a0)](_0x476daf=>_0x476daf[_0x44cc42(0x24d)]()),_0x1e16ab[_0x44cc42(0x2a2)]();})),_0x1d7efe['add'](this[_0x440869(0x244)]['onCommandExecuted'](_0x3a6da4=>{var _0x1d24ef=_0x440869,_0x209416;if(_0x3a6da4[_0x1d24ef(0x20b)]!==_0x1cd9a0[_0x1d24ef(0x1f7)]||!this[_0x1d24ef(0x232)]['shouldShareOperation'](_0x3a6da4['id']))return;const {id:_0x24424c}=_0x3a6da4;let _0x7dac48;_0x1e16ab[_0x1d24ef(0x270)](_0x24424c)?_0x7dac48=_0x1e16ab[_0x1d24ef(0x249)](_0x24424c):(_0x7dac48=new _0x2d0f0f(),_0x1e16ab['set'](_0x24424c,_0x7dac48),_0x7dac48[_0x1d24ef(0x1ff)](_0x16037d((_0x209416=this[_0x1d24ef(0x28c)][_0x1d24ef(0x242)](Pe))!=null?_0x209416:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x366b6b=>{var _0x51b633=_0x1d24ef;this[_0x51b633(0x245)][_0x51b633(0x27f)]({'eventID':_0x2f29ed[_0x51b633(0x221)],'data':{'unitID':this[_0x51b633(0x274)],'operations':{[_0x366b6b['id']]:{'id':_0x366b6b['id'],'params':JSON[_0x51b633(0x28e)](_0x366b6b[_0x51b633(0x296)])}}}},this['_unitID']);})),_0x7dac48[_0x1d24ef(0x25b)](_0x3a6da4);})),this[_0x440869(0x232)][_0x440869(0x1fe)](this[_0x440869(0x274)])[_0x440869(0x2a0)](_0x5d180a=>this[_0x440869(0x245)][_0x440869(0x27f)]({'eventID':_0x2f29ed[_0x440869(0x221)],'data':{'unitID':this['_unitID'],'operations':{[_0x5d180a['id']]:{'id':_0x5d180a['id'],'params':JSON[_0x440869(0x28e)](_0x5d180a[_0x440869(0x296)])}}}},this[_0x440869(0x274)]));}['_stopPresenting'](){var _0x5e133c=_0x317cc4,_0x578793;this[_0x5e133c(0x239)][_0x5e133c(0x25b)](_0x5e133c(0x231)),(_0x578793=this[_0x5e133c(0x25f)])==null||_0x578793[_0x5e133c(0x262)](),this[_0x5e133c(0x25f)]=null;}[_0x317cc4(0x1f3)](){var _0x3f40fa=_0x317cc4,_0x2c9f63;(_0x2c9f63=this[_0x3f40fa(0x25f)])==null||_0x2c9f63['dispose'](),this['_status$'][_0x3f40fa(0x25b)](_0x3f40fa(0x297));}[_0x317cc4(0x25d)](){var _0x243554=_0x317cc4,_0x4f25a7;this[_0x243554(0x239)]['next'](_0x243554(0x231)),(_0x4f25a7=this[_0x243554(0x25f)])==null||_0x4f25a7[_0x243554(0x262)](),this[_0x243554(0x25f)]=null;}[_0x317cc4(0x298)](){var _0x200844=_0x317cc4,_0x1794db;this[_0x200844(0x239)]['next'](_0x200844(0x1fa)),(_0x1794db=this['_commandDisposable'])==null||_0x1794db['dispose']();}[_0x317cc4(0x219)](_0x462795){var _0x356dea=_0x317cc4;if([_0x356dea(0x264),_0x356dea(0x1fa),_0x356dea(0x29d)][_0x356dea(0x26c)](this['_status'])||!_0x462795[_0x356dea(0x248)][_0x356dea(0x238)]||_0x462795[_0x356dea(0x248)]['presenter']===this['_collabSession'][_0x356dea(0x210)]())return;this[_0x356dea(0x206)]==='idle'&&this[_0x356dea(0x1f3)]();const _0x3712c9=_0x462795['data']['operations'];Object[_0x356dea(0x29b)](_0x3712c9)[_0x356dea(0x2a0)](_0x2fab1f=>{var _0x355a5f=_0x356dea;this[_0x355a5f(0x244)]['executeCommand'](_0x2fab1f['id'],_0x2fab1f[_0x355a5f(0x296)]?JSON[_0x355a5f(0x285)](_0x2fab1f[_0x355a5f(0x296)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x556308=_0x317cc4,_0x174270;this['_status$']['next'](_0x556308(0x29d)),(_0x174270=this['_commandDisposable'])==null||_0x174270[_0x556308(0x262)]();}[_0x317cc4(0x21c)](){var _0x34cd18=_0x317cc4;this[_0x34cd18(0x239)]['next'](_0x34cd18(0x231)),this[_0x34cd18(0x2a1)]();}};w=Z([f(0x2,_0x58ab73),f(0x3,_0x3973f8(L)),f(0x4,_0x358665)],w);function Te(){var _0x229741=_0x317cc4;const _0x2da1cc=_0x13cf3c(I),_0x120597=_0x13cf3c(_0x4d6e57),_0x116e02=_0x3d804b(()=>_0x120597[_0x229741(0x29f)](_0x5ada5c[_0x229741(0x226)]),void 0x0,!0x1,[]),[_0x5a6a6f,_0x5fa7a8]=_0x1fab71(null),[_0x283ebc,_0x29aa7a]=_0x1fab71(h[_0x229741(0x225)]),_0xd54d2e=_0xa2b4b4(null);return _0x28befb(()=>(_0x116e02&&_0x2da1cc['getLiveShareCoordinator'](_0x116e02[_0x229741(0x26e)]())[_0x229741(0x263)](_0x1bfb58=>{var _0x16a118=_0x229741;_0x5fa7a8(_0x1bfb58),_0xd54d2e[_0x16a118(0x2a7)]=_0x1bfb58[_0x16a118(0x21f)][_0x16a118(0x23c)](_0x133c13=>{_0x29aa7a(_0x133c13);});}),()=>{var _0x522014=_0x229741,_0x3a4593;(_0x3a4593=_0xd54d2e[_0x522014(0x2a7)])==null||_0x3a4593[_0x522014(0x20e)](),_0xd54d2e['current']=null;}),[_0x116e02,_0x2da1cc]),_0x5a6a6f?_0x5e0980(_0xd3e1d7,{'align':_0x229741(0x1f4),'disabled':_0x283ebc===h[_0x229741(0x29e)],'className':_0x229741(0x207),'overlay':_0x5e0980($e,{'status':_0x283ebc,'coordinator':_0x5a6a6f}),'children':_0x5e0980(_0x229741(0x1f9),{'className':_0x204084(_0x229741(0x286),{'univer-cursor-not-allowed':_0x283ebc===h[_0x229741(0x29e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x283ebc!==h[_0x229741(0x29e)]}),'type':_0x229741(0x1f9),'children':_0x5e0980(B,{'className':_0x229741(0x228)})})}):null;}function $e(_0x92ce41){var _0x5bde97=_0x317cc4;const {status:_0x2c27f9,coordinator:_0x32fac7}=_0x92ce41;switch(_0x2c27f9){case h[_0x5bde97(0x225)]:return _0x5e0980(Fe,{'coordinator':_0x32fac7});case h['FOLLOWING']:return _0x5e0980(He,{'coordinator':_0x32fac7});case h['NOT_FOLLOWING']:return _0x5e0980(je,{'coordinator':_0x32fac7});case h[_0x5bde97(0x29e)]:return _0x5e0980(Ve,{});case h[_0x5bde97(0x278)]:return _0x5e0980(Ue,{'coordinator':_0x32fac7});default:return null;}}function Fe(_0x5c6cf6){var _0x42fb34=_0x317cc4;const {coordinator:_0x287c55}=_0x5c6cf6;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x42fb34(0x255),{'className':_0x42fb34(0x222),'children':_0x42fb34(0x205)}),_0x5e0980(_0x1e8eb3,{'onClick':()=>_0x287c55['tryStartPresenting'](),'children':'Start'})]});}function He(_0xf55d98){var _0xacef20=_0x317cc4;const {coordinator:_0x29d1c3}=_0xf55d98;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980('div',{'className':_0xacef20(0x222),'children':_0xacef20(0x209)}),_0x5e0980(_0x1e8eb3,{'onClick':()=>_0x29d1c3['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x305996){var _0x334509=_0x317cc4;const {coordinator:_0x1ab22e}=_0x305996;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x334509(0x255),{'className':_0x334509(0x222),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x5e0980(_0x1e8eb3,{'variant':_0x334509(0x276),'onClick':()=>_0x1ab22e['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x40fa85){var _0x595a72=_0x317cc4;const {coordinator:_0x3bdb62}=_0x40fa85;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x595a72(0x255),{'className':_0x595a72(0x222),'children':_0x595a72(0x251)}),_0x5e0980(_0x1e8eb3,{'variant':_0x595a72(0x240),'onClick':()=>_0x3bdb62[_0x595a72(0x224)](),'children':_0x595a72(0x268)})]});}function _0x121d(_0x3ea700,_0x21dfc0){var _0x435208=_0x4352();return _0x121d=function(_0x121d69,_0x121d46){_0x121d69=_0x121d69-0x1f3;var _0x23ec5c=_0x435208[_0x121d69];return _0x23ec5c;},_0x121d(_0x3ea700,_0x21dfc0);}function Ve(){var _0x702579=_0x317cc4;return _0x5e0980(_0x4fb342,{'children':_0x702579(0x25a)});}var Me=Object[_0x317cc4(0x29c)],ke=(_0x4cc53e,_0x178e97,_0x4569f7,_0x149eb6)=>{var _0x449a93=_0x317cc4;for(var _0x5357e1=_0x149eb6>0x1?void 0x0:_0x149eb6?Me(_0x178e97,_0x4569f7):_0x178e97,_0x203dbf=_0x4cc53e[_0x449a93(0x21d)]-0x1,_0x18a9e1;_0x203dbf>=0x0;_0x203dbf--)(_0x18a9e1=_0x4cc53e[_0x203dbf])&&(_0x5357e1=_0x18a9e1(_0x5357e1)||_0x5357e1);return _0x5357e1;},$=(_0x203eee,_0x225775)=>(_0x466659,_0x549bea)=>_0x225775(_0x466659,_0x549bea,_0x203eee);let b=class extends _0x28b745{constructor(_0x218bbd,_0x3ca833){var _0x490b13=_0x317cc4;super(),this['_injector']=_0x218bbd,this[_0x490b13(0x24f)]=_0x3ca833,this[_0x490b13(0x217)]();}['_mountLiveShare'](){var _0x1c0c48=_0x317cc4;this[_0x1c0c48(0x27c)](this['_uiPartsService'][_0x1c0c48(0x284)](_0x189589[_0x1c0c48(0x24c)],()=>_0x222fb3(Te,this[_0x1c0c48(0x218)])));}};b=ke([$(0x0,_0x3973f8(_0x44f59d)),$(0x1,_0x4a839a)],b);var Ge=Object[_0x317cc4(0x28d)],We=Object[_0x317cc4(0x29c)],Ye=(_0x6d7a45,_0x5dddb7,_0x297d92)=>_0x5dddb7 in _0x6d7a45?Ge(_0x6d7a45,_0x5dddb7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x297d92}):_0x6d7a45[_0x5dddb7]=_0x297d92,Be=(_0x2a076e,_0x39caf3,_0x3b92db,_0x52a548)=>{for(var _0x58079e=_0x52a548>0x1?void 0x0:_0x52a548?We(_0x39caf3,_0x3b92db):_0x39caf3,_0x3c84be=_0x2a076e['length']-0x1,_0x262ee8;_0x3c84be>=0x0;_0x3c84be--)(_0x262ee8=_0x2a076e[_0x3c84be])&&(_0x58079e=_0x262ee8(_0x58079e)||_0x58079e);return _0x58079e;},F=(_0x9a5a21,_0x45c024)=>(_0x4f93c8,_0x407735)=>_0x45c024(_0x4f93c8,_0x407735,_0x9a5a21),J=(_0x4d41f4,_0x899a54,_0x460cb3)=>Ye(_0x4d41f4,typeof _0x899a54!=_0x317cc4(0x230)?_0x899a54+'':_0x899a54,_0x460cb3);const Ze=_0x317cc4(0x273);let O=class extends _0x5cb41f{constructor(_0x234ab1=T,_0x443547,_0x330d69){var _0x255c06=_0x317cc4;super(),this[_0x255c06(0x247)]=_0x234ab1,this[_0x255c06(0x218)]=_0x443547,this['_configService']=_0x330d69;const {..._0x26b14a}=_0x43e9f6({},T,this[_0x255c06(0x247)]);this[_0x255c06(0x28c)]['setConfig'](Oe,_0x26b14a);}['onStarting'](){var _0x592c44=_0x317cc4;_0x10add6(this['_injector'],_0x2908f4([[L],[I],[m],[b]],this[_0x592c44(0x247)][_0x592c44(0x294)])),_0x21ed85(this[_0x592c44(0x218)],[[m]]);}[_0x317cc4(0x269)](){_0x21ed85(this['_injector'],[[b]]);}};J(O,_0x317cc4(0x20b),_0x5ada5c[_0x317cc4(0x20c)]),J(O,_0x317cc4(0x26a),Ze),O=Be([_0x17a14e(_0x7a3857),F(0x1,_0x3973f8(_0x44f59d)),F(0x2,_0x58ab73)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x1937ef=_0x1576;(function(_0x173e22,_0x13f115){var _0x2e05a7=_0x1576,_0x580398=_0x173e22();while(!![]){try{var _0x3a5c00=parseInt(_0x2e05a7(0x124))/0x1*(-parseInt(_0x2e05a7(0x112))/0x2)+-parseInt(_0x2e05a7(0x10e))/0x3*(-parseInt(_0x2e05a7(0x15c))/0x4)+-parseInt(_0x2e05a7(0x14a))/0x5+parseInt(_0x2e05a7(0x13a))/0x6+-parseInt(_0x2e05a7(0x128))/0x7*(-parseInt(_0x2e05a7(0x141))/0x8)+parseInt(_0x2e05a7(0x184))/0x9*(-parseInt(_0x2e05a7(0x118))/0xa)+-parseInt(_0x2e05a7(0x189))/0xb;if(_0x3a5c00===_0x13f115)break;else _0x580398['push'](_0x580398['shift']());}catch(_0x2e8d69){_0x580398['push'](_0x580398['shift']());}}}(_0x2729,0xc3caa));var q=Object[_0x1937ef(0xdf)],z=(_0x51b8bd,_0x345540,_0x299412)=>_0x345540 in _0x51b8bd?q(_0x51b8bd,_0x345540,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x299412}):_0x51b8bd[_0x345540]=_0x299412,d=(_0x1fb40d,_0x2e115a,_0x230351)=>z(_0x1fb40d,typeof _0x2e115a!='symbol'?_0x2e115a+'':_0x2e115a,_0x230351);import{CollaborationSessionService as _0x2ba0ce,SessionStatus as _0x1c4986,UniverCollaborationClientPlugin as _0x310c99}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4e5696,toDisposable as _0x3445ea,Inject as _0x30f351,IUniverInstanceService as _0x4bbec0,Injector as _0x5a81c2,IConfigService as _0x268cc5,ICommandService as _0x519049,RxDisposable as _0x404045,UniverInstanceType as _0x389694,DisposableCollection as _0x1eb65a,CommandType as _0x47fa0b,DependentOn as _0x434d74,Plugin as _0xa8483a,merge as _0x520eac,registerDependencies as _0x47f38e,mergeOverrideWithDependencies as _0xf1e502,touchDependencies as _0x30d27b}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x555a90,InsertSheetMutation as _0x585918}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x530f88,SetScrollOperation as _0x3e80bd}from'@univerjs/sheets-ui';import{useDependency as _0x105a7f,useObservable as _0x56d616,IUIPartsService as _0x54648c,BuiltInUIPart as _0x3c9586,connectInjector as _0x46516c}from'@univerjs/ui';import{jsx as _0x2b8ee2,jsxs as _0x592a31,Fragment as _0x2a759f}from'react/jsx-runtime';import{Dropdown as _0xfb031,clsx as _0x4c4971,Button as _0x13e900}from'@univerjs/design';import{forwardRef as _0x4eb534,useRef as _0x412035,createElement as _0x3edc2f,useState as _0x4ec9cf,useEffect as _0x127a28}from'react';import{CollaborationEvent as _0x3698f7,parseProtocolChangeset as _0x4bddcf}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x428c9f,Subject as _0x35c93d}from'rxjs';import{takeUntil as _0x27da68,throttleTime as _0x50f4b3}from'rxjs/operators';function _0x2729(){var _0x52a53d=['get','_univerInstanceService','displayName','NEW_CHANGESETS','onCommandExecuted','colorChannel1','send','idSuffix','NOT_FOLLOWING','apply','forEach','dispose$','415521yegSHx','button','getMemberID','presenting','requireSession','6651172MJInsR','div','includes','UNIVER_UNKNOWN','defineProperty','children','stringify','function','substring','prototype','symbol','stopPresenting','UNIVER_LIVE_SHARE_PLUGIN','concat','getValue','univerjs-icon\x20univerjs-icon-','Present\x20this\x20document','_status$','_handleNewChangeSets','UNIVER_SHEET','_commandDisposable','presenter','map','offline','_init','UniverIcon','LIVESHARE_TERMINATE','fill','onStarting','LIVESHARE_OPERATION','registerInitialStateReporter','_stopFollowing','_stopPresenting','OFFLINE','path','LIVESHARE_FETCH_OPERATIONS','Start\x20following','length','shouldShareOperation','end','_unitID','_reporters','url(#$1','sheet','mask','_config','_startLiveShareCoordinator','set','getInitialStates','params','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','3UcgVkm','_startPresenting','_sharedOperations','_collabSessionService','5682KaHOis','operations','currentColor','getOwnPropertyDescriptor','replace','You\x27are\x20offline.','320XOqCrV','getOwnPropertySymbols','1em','memberID','subscribe','Stop\x20presenting','LIVESHARE_NEW_HOST','_status','idle','_handleOnline','add','_collabSession','128xsjLnX','Start','none','extend','9709rIdvkQ','_entities','entries','className','disposeWithMe','univer-w-full\x20univer-mb-3\x20univer-text-sm','reverse','call','xlink:href','stopFollowing','_beIdle','pluginName','attrs','random','unitId','SAME_OPERATION_SHARE_INTERVAL','asObservable','tryStartPresenting','4811406agjwxt','Stop\x20following','not-following','delete','LIVESHARE_REQUEST_HOST','_commandService','_handleNewHost','5624weheXg','registerSharedOperation','You\x27re\x20presenting\x20the\x20document','_configService','dispose','indexOf','ONLINE','onRendered','executeCommand','525070RwnDiV','univer-size-4','_mountLiveShare','startFollowing','text','_presenter','use','has','_liveShareService','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','type','_startFollowing','_fetchOperations','IDLE','default','defs','values','hasOwnProperty','6302888STMlpd','next','defIds','_injector','string','current','getUnitId','_uiPartsService','unsubscribe','mutations','data','evenodd','PRESENTING','_handleTerminate','event$','status$','getLiveShareCoordinator','following','icon','_handleOffline','live-share-single','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','assign','svg','pipe','live-share.config','0\x200\x2016\x2016','tag'];_0x2729=function(){return _0x52a53d;};return _0x2729();}const Oe=_0x1937ef(0x175),T={};class L extends _0x4e5696{constructor(){var _0x50524c=_0x1937ef;super(...arguments),d(this,_0x50524c(0x110),new Set()),d(this,_0x50524c(0x104),new Set());}[_0x1937ef(0x142)](_0x951be9){var _0x541c26=_0x1937ef;return this[_0x541c26(0x110)]['add'](_0x951be9),_0x3445ea(()=>this[_0x541c26(0x110)][_0x541c26(0x13d)](_0x951be9));}[_0x1937ef(0xf9)](_0x65ab9){var _0x53d93f=_0x1937ef;return this[_0x53d93f(0x104)][_0x53d93f(0x122)](_0x65ab9),_0x3445ea(()=>this[_0x53d93f(0x104)]['delete'](_0x65ab9));}[_0x1937ef(0x101)](_0x467e72){var _0x5bd0d6=_0x1937ef;return this[_0x5bd0d6(0x110)][_0x5bd0d6(0x151)](_0x467e72);}['getInitialStates'](_0x1ce978){return Array['from'](this['_reporters'])['map'](_0x4bc242=>_0x4bc242(_0x1ce978));}}var Ee=Object[_0x1937ef(0x115)],Ce=(_0x1a1f5e,_0x179481,_0x27dafd,_0x3a5290)=>{for(var _0x32cd2f=_0x3a5290>0x1?void 0x0:_0x3a5290?Ee(_0x179481,_0x27dafd):_0x179481,_0x1f3cb8=_0x1a1f5e['length']-0x1,_0x4594a1;_0x1f3cb8>=0x0;_0x1f3cb8--)(_0x4594a1=_0x1a1f5e[_0x1f3cb8])&&(_0x32cd2f=_0x4594a1(_0x32cd2f)||_0x32cd2f);return _0x32cd2f;},Ne=(_0x48ea18,_0x3c6730)=>(_0x1dc0de,_0x586bb7)=>_0x3c6730(_0x1dc0de,_0x586bb7,_0x48ea18);let m=class extends _0x4e5696{constructor(_0x18f69d){var _0x35bbd7=_0x1937ef;super(),this[_0x35bbd7(0x152)]=_0x18f69d,this['_init']();}[_0x1937ef(0xf3)](){[_0x530f88['id'],_0x3e80bd['id'],_0x555a90['id']]['forEach'](_0x3f5484=>{var _0x368979=_0x1576;this[_0x368979(0x12c)](this[_0x368979(0x152)][_0x368979(0x142)](_0x3f5484));});}};m=Ce([Ne(0x0,_0x30f351(L))],m);var c=function(){var _0x110f8b=_0x1937ef;return c=Object[_0x110f8b(0x172)]||function(_0x209f02){var _0x45bea2=_0x110f8b;for(var _0x24a608,_0x3bc3bd=0x1,_0x1f6255=arguments['length'];_0x3bc3bd<_0x1f6255;_0x3bc3bd++){_0x24a608=arguments[_0x3bc3bd];for(var _0x65f2a3 in _0x24a608)Object[_0x45bea2(0xe4)][_0x45bea2(0x15b)][_0x45bea2(0x12f)](_0x24a608,_0x65f2a3)&&(_0x209f02[_0x65f2a3]=_0x24a608[_0x65f2a3]);}return _0x209f02;},c[_0x110f8b(0x181)](this,arguments);},we=function(_0x2e83c1,_0x1519f3){var _0x1b580e=_0x1937ef,_0xa53279={};for(var _0x11279b in _0x2e83c1)Object[_0x1b580e(0xe4)]['hasOwnProperty']['call'](_0x2e83c1,_0x11279b)&&_0x1519f3['indexOf'](_0x11279b)<0x0&&(_0xa53279[_0x11279b]=_0x2e83c1[_0x11279b]);if(_0x2e83c1!=null&&typeof Object['getOwnPropertySymbols']==_0x1b580e(0xe2)){for(var _0x33a8a7=0x0,_0x11279b=Object[_0x1b580e(0x119)](_0x2e83c1);_0x33a8a7<_0x11279b[_0x1b580e(0x100)];_0x33a8a7++)_0x1519f3[_0x1b580e(0x146)](_0x11279b[_0x33a8a7])<0x0&&Object[_0x1b580e(0xe4)]['propertyIsEnumerable'][_0x1b580e(0x12f)](_0x2e83c1,_0x11279b[_0x33a8a7])&&(_0xa53279[_0x11279b[_0x33a8a7]]=_0x2e83c1[_0x11279b[_0x33a8a7]]);}return _0xa53279;},W=_0x4eb534(function(_0x567881,_0x2a65ab){var _0x5e8f05=_0x1937ef,_0x2a4568=_0x567881[_0x5e8f05(0x16e)],_0xe115b0=_0x567881['id'],_0x3ac5e1=_0x567881['className'],_0x351914=_0x567881[_0x5e8f05(0x127)],_0x1c82de=we(_0x567881,[_0x5e8f05(0x16e),'id',_0x5e8f05(0x12b),_0x5e8f05(0x127)]),_0x517195=_0x5e8f05(0xea)[_0x5e8f05(0xe8)](_0xe115b0,'\x20')[_0x5e8f05(0xe8)](_0x3ac5e1||'')['trim'](),_0x887b02=_0x412035('_'[_0x5e8f05(0xe8)](Le()));return Y(_0x2a4568,''[_0x5e8f05(0xe8)](_0xe115b0),{'defIds':_0x2a4568['defIds'],'idSuffix':_0x887b02[_0x5e8f05(0x161)]},c({'ref':_0x2a65ab,'className':_0x517195},_0x1c82de),_0x351914);});function Y(_0x5777be,_0x276c79,_0x24613d,_0x42b273,_0x556e01){var _0x234991=_0x1937ef;return _0x3edc2f(_0x5777be[_0x234991(0x177)],c(c({'key':_0x276c79},De(_0x5777be,_0x24613d,_0x556e01)),_0x42b273),(xe(_0x5777be,_0x24613d)[_0x234991(0xe0)]||[])[_0x234991(0xf1)](function(_0x38cb4a,_0x42ff63){var _0x549104=_0x234991;return Y(_0x38cb4a,''[_0x549104(0xe8)](_0x276c79,'-')[_0x549104(0xe8)](_0x5777be['tag'],'-')[_0x549104(0xe8)](_0x42ff63),_0x24613d,void 0x0,_0x556e01);}));}function De(_0x2470e7,_0x264a6a,_0x30ce26){var _0x1b1c47=_0x1937ef,_0x5e3333=c({},_0x2470e7[_0x1b1c47(0x134)]);_0x30ce26!=null&&_0x30ce26[_0x1b1c47(0x17d)]&&_0x5e3333[_0x1b1c47(0xf6)]==='colorChannel1'&&(_0x5e3333['fill']=_0x30ce26['colorChannel1']),_0x2470e7[_0x1b1c47(0x177)]===_0x1b1c47(0x107)&&_0x5e3333['id']&&(_0x5e3333['id']=_0x5e3333['id']+_0x264a6a[_0x1b1c47(0x17f)]),Object[_0x1b1c47(0x12a)](_0x5e3333)['forEach'](function(_0x50caaa){var _0x40127a=_0x1b1c47,_0xfdcf5c=_0x50caaa[0x0],_0x254c94=_0x50caaa[0x1];_0xfdcf5c===_0x40127a(0x107)&&typeof _0x254c94=='string'&&(_0x5e3333[_0xfdcf5c]=_0x254c94[_0x40127a(0x116)](/url\(#(.*)\)/,_0x40127a(0x105)['concat'](_0x264a6a[_0x40127a(0x17f)],')')));});var _0x2aa8d8=_0x264a6a[_0x1b1c47(0x15e)];return!_0x2aa8d8||_0x2aa8d8[_0x1b1c47(0x100)]===0x0||(_0x2470e7[_0x1b1c47(0x177)]===_0x1b1c47(0x150)&&_0x5e3333[_0x1b1c47(0x130)]&&(_0x5e3333[_0x1b1c47(0x130)]=_0x5e3333['xlink:href']+_0x264a6a[_0x1b1c47(0x17f)]),Object[_0x1b1c47(0x12a)](_0x5e3333)[_0x1b1c47(0x182)](function(_0x2f1ffe){var _0x7d3e91=_0x1b1c47,_0x4c3565=_0x2f1ffe[0x0],_0x4cd0d1=_0x2f1ffe[0x1];typeof _0x4cd0d1=='string'&&(_0x5e3333[_0x4c3565]=_0x4cd0d1[_0x7d3e91(0x116)](/url\(#(.*)\)/,'url(#$1'[_0x7d3e91(0xe8)](_0x264a6a[_0x7d3e91(0x17f)],')')));})),_0x5e3333;}function xe(_0x206816,_0x683920){var _0x2adf0c=_0x1937ef,_0x448bc9,_0x4cb0fe=_0x683920[_0x2adf0c(0x15e)];return!_0x4cb0fe||_0x4cb0fe[_0x2adf0c(0x100)]===0x0?_0x206816:_0x206816[_0x2adf0c(0x177)]===_0x2adf0c(0x159)&&(!((_0x448bc9=_0x206816[_0x2adf0c(0xe0)])===null||_0x448bc9===void 0x0)&&_0x448bc9['length'])?c(c({},_0x206816),{'children':_0x206816[_0x2adf0c(0xe0)][_0x2adf0c(0xf1)](function(_0x49f89e){var _0x89bddd=_0x2adf0c;return typeof _0x49f89e[_0x89bddd(0x134)]['id']==_0x89bddd(0x160)&&_0x4cb0fe&&_0x4cb0fe['indexOf'](_0x49f89e[_0x89bddd(0x134)]['id'])>-0x1?c(c({},_0x49f89e),{'attrs':c(c({},_0x49f89e[_0x89bddd(0x134)]),{'id':_0x49f89e['attrs']['id']+_0x683920['idSuffix']})}):_0x49f89e;})}):_0x206816;}function Le(){var _0x15a6ed=_0x1937ef;return Math[_0x15a6ed(0x135)]()['toString'](0x24)[_0x15a6ed(0xe3)](0x2,0x8);}W[_0x1937ef(0x17a)]=_0x1937ef(0xf4);var ye={'tag':_0x1937ef(0x173),'attrs':{'fill':_0x1937ef(0x126),'viewBox':_0x1937ef(0x176),'width':_0x1937ef(0x11a),'height':_0x1937ef(0x11a)},'children':[{'tag':'path','attrs':{'fill':_0x1937ef(0x114),'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':_0x1937ef(0xfd),'attrs':{'fill':_0x1937ef(0x114),'d':_0x1937ef(0x10d),'fillRule':_0x1937ef(0x167),'clipRule':_0x1937ef(0x167)}}]},B=_0x4eb534(function(_0x40f7ac,_0x33e63e){var _0x1c3091=_0x1937ef;return _0x3edc2f(W,Object[_0x1c3091(0x172)]({},_0x40f7ac,{'id':_0x1c3091(0x170),'ref':_0x33e63e,'icon':ye}));});B[_0x1937ef(0x17a)]='LiveShareSingle';var Re=Object[_0x1937ef(0x115)],Z=(_0x45040f,_0x163a26,_0x6ab64e,_0x1470f8)=>{var _0x16a682=_0x1937ef;for(var _0x54af03=_0x1470f8>0x1?void 0x0:_0x1470f8?Re(_0x163a26,_0x6ab64e):_0x163a26,_0x41721f=_0x45040f[_0x16a682(0x100)]-0x1,_0x576eda;_0x41721f>=0x0;_0x41721f--)(_0x576eda=_0x45040f[_0x41721f])&&(_0x54af03=_0x576eda(_0x54af03)||_0x54af03);return _0x54af03;},f=(_0x4fc4e8,_0x3a6869)=>(_0x35dc83,_0x14c249)=>_0x3a6869(_0x35dc83,_0x14c249,_0x4fc4e8);let I=class extends _0x404045{constructor(_0x38ebb1,_0x1f3604,_0x1e1bff){var _0x4eed97=_0x1937ef;super(),d(this,_0x4eed97(0x129),new Map()),(this[_0x4eed97(0x179)]=_0x38ebb1,this[_0x4eed97(0x15f)]=_0x1f3604,this['_collabSessionService']=_0x1e1bff,this['_init']());}async[_0x1937ef(0x16c)](_0x1b8e77){var _0x1e7a6f=_0x1937ef;return this[_0x1e7a6f(0x129)][_0x1e7a6f(0x151)](_0x1b8e77)||await this[_0x1e7a6f(0x109)](_0x1b8e77),this[_0x1e7a6f(0x129)][_0x1e7a6f(0x178)](_0x1b8e77);}[_0x1937ef(0xf3)](){var _0x1ad96c=_0x1937ef;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x389694[_0x1ad96c(0xee)])[_0x1ad96c(0x174)](_0x27da68(this[_0x1ad96c(0x183)]))[_0x1ad96c(0x11c)](async _0x372407=>{var _0x322b4d=_0x1ad96c;const _0x3178a3=_0x372407[_0x322b4d(0x162)]();this['_entities'][_0x322b4d(0x151)](_0x3178a3)||this[_0x322b4d(0x109)](_0x3178a3);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x389694[_0x1ad96c(0xee)])[_0x1ad96c(0x174)](_0x27da68(this[_0x1ad96c(0x183)]))['subscribe'](_0x2bdfbf=>{var _0x2a2073=_0x1ad96c;const _0x17cf06=_0x2bdfbf[_0x2a2073(0x162)](),_0x14ae28=this[_0x2a2073(0x129)][_0x2a2073(0x178)](_0x17cf06);_0x14ae28==null||_0x14ae28[_0x2a2073(0x145)]();});}async[_0x1937ef(0x109)](_0x46a360){var _0x2f3677=_0x1937ef;const _0x88faf7=await this[_0x2f3677(0x111)][_0x2f3677(0x188)](_0x46a360),_0x26509a=this['_injector']['createInstance'](w,_0x46a360,_0x88faf7);return _0x26509a['init'](),this['_entities'][_0x2f3677(0x10a)](_0x46a360,_0x26509a),_0x26509a;}};I=Z([f(0x0,_0x4bbec0),f(0x1,_0x30f351(_0x5a81c2)),f(0x2,_0x30f351(_0x2ba0ce))],I);var h=(_0x410445=>(_0x410445['OFFLINE']=_0x1937ef(0xf2),_0x410445[_0x1937ef(0x157)]=_0x1937ef(0x120),_0x410445['FOLLOWING']=_0x1937ef(0x16d),_0x410445[_0x1937ef(0x180)]='not-following',_0x410445[_0x1937ef(0x168)]='presenting',_0x410445))(h||{});const Pe=_0x1937ef(0x137),Ae=0xc8;let w=class extends _0x404045{constructor(_0x44f08c,_0x44dcff,_0x62f1c,_0x4af01b,_0x2b7b05){var _0x5d5930=_0x1937ef;super(),d(this,_0x5d5930(0xec),new _0x428c9f(_0x5d5930(0x120))),d(this,_0x5d5930(0x16b),this['_status$'][_0x5d5930(0x138)]()),d(this,_0x5d5930(0xf3),!0x1),d(this,_0x5d5930(0xef),null),d(this,_0x5d5930(0x14f),null),(this['_unitID']=_0x44f08c,this[_0x5d5930(0x123)]=_0x44dcff,this[_0x5d5930(0x144)]=_0x62f1c,this[_0x5d5930(0x152)]=_0x4af01b,this[_0x5d5930(0x13f)]=_0x2b7b05);}get[_0x1937ef(0x11f)](){var _0x2f1494=_0x1937ef;return this[_0x2f1494(0xec)][_0x2f1494(0xe9)]();}[_0x1937ef(0x145)](){var _0x338587=_0x1937ef,_0xdee2c5;(_0xdee2c5=this[_0x338587(0xef)])==null||_0xdee2c5[_0x338587(0x145)](),this[_0x338587(0xec)]['next'](_0x338587(0x120)),this[_0x338587(0xec)]['complete']();}['init'](){var _0x1494ab=_0x1937ef;this[_0x1494ab(0xf3)]||(this[_0x1494ab(0xf3)]=!0x0,this[_0x1494ab(0x123)]['sessionStatus$'][_0x1494ab(0x174)](_0x27da68(this[_0x1494ab(0x183)]))['subscribe'](_0x4862bf=>{var _0xc817e4=_0x1494ab;switch(_0x4862bf){case _0x1c4986[_0xc817e4(0xfc)]:this[_0xc817e4(0x16f)]();break;case _0x1c4986[_0xc817e4(0x147)]:this[_0xc817e4(0x121)]();break;}}),this['_collabSession'][_0x1494ab(0x16a)][_0x1494ab(0x174)](_0x27da68(this[_0x1494ab(0x183)]))[_0x1494ab(0x11c)](_0x429e47=>{var _0x5c4500=_0x1494ab;const {eventID:_0x35c88a}=_0x429e47;switch(_0x35c88a){case _0x3698f7[_0x5c4500(0x11e)]:this[_0x5c4500(0x140)](_0x429e47);break;case _0x3698f7[_0x5c4500(0xf8)]:this['_handleOperation'](_0x429e47);break;case _0x3698f7[_0x5c4500(0xf5)]:this['_handleTerminate']();break;case _0x3698f7[_0x5c4500(0x17b)]:this[_0x5c4500(0xed)](_0x429e47);break;}}));}[_0x1937ef(0x139)](){var _0x17446e=_0x1937ef;this[_0x17446e(0x123)][_0x17446e(0x17e)]({'eventID':_0x3698f7[_0x17446e(0x13e)],'data':{'unitID':this[_0x17446e(0x103)],'userID':this['_collabSession'][_0x17446e(0x186)]()}},this['_unitID']);}[_0x1937ef(0xe6)](){var _0x2660c8=_0x1937ef;this[_0x2660c8(0x11f)]===_0x2660c8(0x187)&&(this[_0x2660c8(0xec)][_0x2660c8(0x15d)](_0x2660c8(0x120)),this[_0x2660c8(0x123)]['send']({'eventID':_0x3698f7[_0x2660c8(0xf5)],'data':{'unitID':this[_0x2660c8(0x103)]}},this[_0x2660c8(0x103)]));}[_0x1937ef(0x14d)](){var _0x1db15d=_0x1937ef;this[_0x1db15d(0x11f)]==='not-following'&&(this[_0x1db15d(0xec)]['next'](_0x1db15d(0x16d)),this[_0x1db15d(0x155)]());}[_0x1937ef(0x131)](){var _0x8515b4=_0x1937ef;this[_0x8515b4(0x11f)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x28e388){var _0x5da328=_0x1937ef;const {presenter:_0x204ff2}=_0x28e388[_0x5da328(0x166)],_0x35b675=this[_0x5da328(0x123)]['getMemberID']();this['_presenter']=_0x204ff2,_0x204ff2===_0x35b675?(this[_0x5da328(0xfa)](),this[_0x5da328(0x10f)]()):this['_status']!==_0x5da328(0x13c)&&(this[_0x5da328(0xfb)](),this['_startFollowing']());}[_0x1937ef(0x156)](){var _0x5f3b36=_0x1937ef;const _0x3a4a6e={'eventID':_0x3698f7[_0x5f3b36(0xfe)]};this['_collabSession'][_0x5f3b36(0x17e)](_0x3a4a6e,this[_0x5f3b36(0x103)]);}[_0x1937ef(0x169)](){var _0x226ab4=_0x1937ef;this['_presenter']=null,this[_0x226ab4(0x11f)]!==_0x226ab4(0x187)&&this[_0x226ab4(0x132)]();}[_0x1937ef(0xed)](_0x45cb98){var _0x4a33f7=_0x1937ef;if(this[_0x4a33f7(0x11f)]==='following'&&this[_0x4a33f7(0x14f)]===_0x45cb98[_0x4a33f7(0x166)][_0x4a33f7(0x11b)]){const _0x382dc8=_0x4bddcf(_0x45cb98[_0x4a33f7(0x166)])[_0x4a33f7(0x165)][_0x4a33f7(0x12e)]()['find'](_0x313fb3=>_0x313fb3['id']===_0x585918['id']);if(_0x382dc8){const _0x293004=_0x382dc8[_0x4a33f7(0x10c)][_0x4a33f7(0x136)],_0x50a9c6=_0x382dc8[_0x4a33f7(0x10c)][_0x4a33f7(0x106)]['id'];setTimeout(()=>{var _0x42a08b=_0x4a33f7;this['_commandService'][_0x42a08b(0x149)](_0x555a90['id'],{'unitId':_0x293004,'subUnitId':_0x50a9c6},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x12b75a=_0x1937ef;this[_0x12b75a(0xec)][_0x12b75a(0x15d)](_0x12b75a(0x187));const _0x4bb14b=new Map(),_0x2f6e42=this[_0x12b75a(0xef)]=new _0x1eb65a();_0x2f6e42[_0x12b75a(0x122)](_0x3445ea(()=>{var _0x2ac822=_0x12b75a;_0x4bb14b[_0x2ac822(0x182)](_0x15e5e6=>_0x15e5e6['complete']()),_0x4bb14b['clear']();})),_0x2f6e42[_0x12b75a(0x122)](this['_commandService'][_0x12b75a(0x17c)](_0x252a19=>{var _0x2546ad=_0x12b75a,_0x92f89d;if(_0x252a19[_0x2546ad(0x154)]!==_0x47fa0b['OPERATION']||!this[_0x2546ad(0x152)][_0x2546ad(0x101)](_0x252a19['id']))return;const {id:_0x5e8116}=_0x252a19;let _0x11981d;_0x4bb14b[_0x2546ad(0x151)](_0x5e8116)?_0x11981d=_0x4bb14b[_0x2546ad(0x178)](_0x5e8116):(_0x11981d=new _0x35c93d(),_0x4bb14b[_0x2546ad(0x10a)](_0x5e8116,_0x11981d),_0x11981d[_0x2546ad(0x174)](_0x50f4b3((_0x92f89d=this[_0x2546ad(0x144)]['getConfig'](Pe))!=null?_0x92f89d:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x7aec52=>{var _0x22f697=_0x2546ad;this[_0x22f697(0x123)][_0x22f697(0x17e)]({'eventID':_0x3698f7[_0x22f697(0xf8)],'data':{'unitID':this['_unitID'],'operations':{[_0x7aec52['id']]:{'id':_0x7aec52['id'],'params':JSON[_0x22f697(0xe1)](_0x7aec52[_0x22f697(0x10c)])}}}},this[_0x22f697(0x103)]);})),_0x11981d[_0x2546ad(0x15d)](_0x252a19);})),this[_0x12b75a(0x152)][_0x12b75a(0x10b)](this['_unitID'])['forEach'](_0x5a7090=>this[_0x12b75a(0x123)][_0x12b75a(0x17e)]({'eventID':_0x3698f7['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x12b75a(0x103)],'operations':{[_0x5a7090['id']]:{'id':_0x5a7090['id'],'params':JSON['stringify'](_0x5a7090[_0x12b75a(0x10c)])}}}},this[_0x12b75a(0x103)]));}[_0x1937ef(0xfb)](){var _0xe88f8a=_0x1937ef,_0x4a3ad4;this['_status$'][_0xe88f8a(0x15d)](_0xe88f8a(0x120)),(_0x4a3ad4=this[_0xe88f8a(0xef)])==null||_0x4a3ad4[_0xe88f8a(0x145)](),this[_0xe88f8a(0xef)]=null;}['_startFollowing'](){var _0x5e1a9f=_0x1937ef,_0x17d784;(_0x17d784=this[_0x5e1a9f(0xef)])==null||_0x17d784['dispose'](),this[_0x5e1a9f(0xec)][_0x5e1a9f(0x15d)](_0x5e1a9f(0x16d));}['_beIdle'](){var _0x1827d8=_0x1937ef,_0x2b7088;this[_0x1827d8(0xec)]['next'](_0x1827d8(0x120)),(_0x2b7088=this['_commandDisposable'])==null||_0x2b7088['dispose'](),this[_0x1827d8(0xef)]=null;}['_stopFollowing'](){var _0x518bf1=_0x1937ef,_0x5e7d68;this[_0x518bf1(0xec)][_0x518bf1(0x15d)](_0x518bf1(0x13c)),(_0x5e7d68=this['_commandDisposable'])==null||_0x5e7d68[_0x518bf1(0x145)]();}['_handleOperation'](_0x3deec3){var _0x27a25c=_0x1937ef;if(['presenting',_0x27a25c(0x13c),_0x27a25c(0xf2)][_0x27a25c(0x18b)](this[_0x27a25c(0x11f)])||!_0x3deec3[_0x27a25c(0x166)][_0x27a25c(0xf0)]||_0x3deec3['data'][_0x27a25c(0xf0)]===this[_0x27a25c(0x123)][_0x27a25c(0x186)]())return;this[_0x27a25c(0x11f)]===_0x27a25c(0x120)&&this[_0x27a25c(0x155)]();const _0x2e6698=_0x3deec3[_0x27a25c(0x166)][_0x27a25c(0x113)];Object[_0x27a25c(0x15a)](_0x2e6698)[_0x27a25c(0x182)](_0x3eed35=>{var _0x496900=_0x27a25c;this[_0x496900(0x13f)]['executeCommand'](_0x3eed35['id'],_0x3eed35['params']?JSON['parse'](_0x3eed35[_0x496900(0x10c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3ad1b5=_0x1937ef,_0x2f56a8;this[_0x3ad1b5(0xec)][_0x3ad1b5(0x15d)](_0x3ad1b5(0xf2)),(_0x2f56a8=this[_0x3ad1b5(0xef)])==null||_0x2f56a8[_0x3ad1b5(0x145)]();}[_0x1937ef(0x121)](){var _0x2f053f=_0x1937ef;this['_status$'][_0x2f053f(0x15d)](_0x2f053f(0x120)),this[_0x2f053f(0x156)]();}};w=Z([f(0x2,_0x268cc5),f(0x3,_0x30f351(L)),f(0x4,_0x519049)],w);function Te(){var _0x1a057f=_0x1937ef;const _0x70b5fc=_0x105a7f(I),_0x49abab=_0x105a7f(_0x4bbec0),_0x29bbaf=_0x56d616(()=>_0x49abab['getCurrentTypeOfUnit$'](_0x389694[_0x1a057f(0xee)]),void 0x0,!0x1,[]),[_0x51b1ec,_0x202e85]=_0x4ec9cf(null),[_0x37cf1d,_0x41754f]=_0x4ec9cf(h[_0x1a057f(0x157)]),_0x593a8e=_0x412035(null);return _0x127a28(()=>(_0x29bbaf&&_0x70b5fc[_0x1a057f(0x16c)](_0x29bbaf['getUnitId']())['then'](_0x1fab39=>{var _0x485c0a=_0x1a057f;_0x202e85(_0x1fab39),_0x593a8e[_0x485c0a(0x161)]=_0x1fab39[_0x485c0a(0x16b)][_0x485c0a(0x11c)](_0x5ba079=>{_0x41754f(_0x5ba079);});}),()=>{var _0x5a5fb5=_0x1a057f,_0x39c103;(_0x39c103=_0x593a8e['current'])==null||_0x39c103[_0x5a5fb5(0x164)](),_0x593a8e['current']=null;}),[_0x29bbaf,_0x70b5fc]),_0x51b1ec?_0x2b8ee2(_0xfb031,{'align':_0x1a057f(0x102),'disabled':_0x37cf1d===h[_0x1a057f(0xfc)],'className':_0x1a057f(0x171),'overlay':_0x2b8ee2($e,{'status':_0x37cf1d,'coordinator':_0x51b1ec}),'children':_0x2b8ee2(_0x1a057f(0x185),{'className':_0x4c4971(_0x1a057f(0x153),{'univer-cursor-not-allowed':_0x37cf1d===h[_0x1a057f(0xfc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x37cf1d!==h['OFFLINE']}),'type':_0x1a057f(0x185),'children':_0x2b8ee2(B,{'className':_0x1a057f(0x14b)})})}):null;}function $e(_0x2e8c93){var _0x144bcf=_0x1937ef;const {status:_0x2fb7eb,coordinator:_0x458f08}=_0x2e8c93;switch(_0x2fb7eb){case h[_0x144bcf(0x157)]:return _0x2b8ee2(Fe,{'coordinator':_0x458f08});case h['FOLLOWING']:return _0x2b8ee2(He,{'coordinator':_0x458f08});case h[_0x144bcf(0x180)]:return _0x2b8ee2(je,{'coordinator':_0x458f08});case h[_0x144bcf(0xfc)]:return _0x2b8ee2(Ve,{});case h[_0x144bcf(0x168)]:return _0x2b8ee2(Ue,{'coordinator':_0x458f08});default:return null;}}function Fe(_0x1807ed){var _0x1b506e=_0x1937ef;const {coordinator:_0xd4be6b}=_0x1807ed;return _0x592a31(_0x2a759f,{'children':[_0x2b8ee2(_0x1b506e(0x18a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1b506e(0xeb)}),_0x2b8ee2(_0x13e900,{'onClick':()=>_0xd4be6b[_0x1b506e(0x139)](),'children':_0x1b506e(0x125)})]});}function He(_0x34c38b){var _0x158fe5=_0x1937ef;const {coordinator:_0x35d10b}=_0x34c38b;return _0x592a31(_0x2a759f,{'children':[_0x2b8ee2('div',{'className':_0x158fe5(0x12d),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x2b8ee2(_0x13e900,{'onClick':()=>_0x35d10b[_0x158fe5(0x131)](),'children':_0x158fe5(0x13b)})]});}function je(_0x576acf){var _0x498fd2=_0x1937ef;const {coordinator:_0x1703e9}=_0x576acf;return _0x592a31(_0x2a759f,{'children':[_0x2b8ee2('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2b8ee2(_0x13e900,{'variant':_0x498fd2(0x14e),'onClick':()=>_0x1703e9[_0x498fd2(0x14d)](),'children':_0x498fd2(0xff)})]});}function Ue(_0x36a252){var _0x24f9c7=_0x1937ef;const {coordinator:_0x54dbed}=_0x36a252;return _0x592a31(_0x2a759f,{'children':[_0x2b8ee2(_0x24f9c7(0x18a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x24f9c7(0x143)}),_0x2b8ee2(_0x13e900,{'variant':_0x24f9c7(0x158),'onClick':()=>_0x54dbed[_0x24f9c7(0xe6)](),'children':_0x24f9c7(0x11d)})]});}function _0x1576(_0x3bd1fb,_0x1aa911){var _0x2729a6=_0x2729();return _0x1576=function(_0x15765a,_0xc9d3f6){_0x15765a=_0x15765a-0xde;var _0x414ee6=_0x2729a6[_0x15765a];return _0x414ee6;},_0x1576(_0x3bd1fb,_0x1aa911);}function Ve(){var _0x32307a=_0x1937ef;return _0x2b8ee2(_0x2a759f,{'children':_0x32307a(0x117)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x4c616f,_0x18dc02,_0x4240f5,_0x282517)=>{for(var _0x22a4f9=_0x282517>0x1?void 0x0:_0x282517?Me(_0x18dc02,_0x4240f5):_0x18dc02,_0x4da4d2=_0x4c616f['length']-0x1,_0x4f12cd;_0x4da4d2>=0x0;_0x4da4d2--)(_0x4f12cd=_0x4c616f[_0x4da4d2])&&(_0x22a4f9=_0x4f12cd(_0x22a4f9)||_0x22a4f9);return _0x22a4f9;},$=(_0x37e13d,_0x4f3291)=>(_0x481e7e,_0x2540b9)=>_0x4f3291(_0x481e7e,_0x2540b9,_0x37e13d);let b=class extends _0x4e5696{constructor(_0x50a24c,_0x753939){var _0x322556=_0x1937ef;super(),this[_0x322556(0x15f)]=_0x50a24c,this[_0x322556(0x163)]=_0x753939,this[_0x322556(0x14c)]();}[_0x1937ef(0x14c)](){var _0x549109=_0x1937ef;this[_0x549109(0x12c)](this[_0x549109(0x163)]['registerComponent'](_0x3c9586['HEADER_MENU'],()=>_0x46516c(Te,this[_0x549109(0x15f)])));}};b=ke([$(0x0,_0x30f351(_0x5a81c2)),$(0x1,_0x54648c)],b);var Ge=Object['defineProperty'],We=Object[_0x1937ef(0x115)],Ye=(_0xa1e8f4,_0x2b64c5,_0x43d69e)=>_0x2b64c5 in _0xa1e8f4?Ge(_0xa1e8f4,_0x2b64c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43d69e}):_0xa1e8f4[_0x2b64c5]=_0x43d69e,Be=(_0x56c0c8,_0x38db95,_0x28265a,_0xac03d8)=>{var _0x22e1b3=_0x1937ef;for(var _0x2b5af3=_0xac03d8>0x1?void 0x0:_0xac03d8?We(_0x38db95,_0x28265a):_0x38db95,_0x5bce6a=_0x56c0c8[_0x22e1b3(0x100)]-0x1,_0x81a124;_0x5bce6a>=0x0;_0x5bce6a--)(_0x81a124=_0x56c0c8[_0x5bce6a])&&(_0x2b5af3=_0x81a124(_0x2b5af3)||_0x2b5af3);return _0x2b5af3;},F=(_0x5d6175,_0xbc5d91)=>(_0x5056ad,_0x59adb0)=>_0xbc5d91(_0x5056ad,_0x59adb0,_0x5d6175),J=(_0xeed6f,_0x319523,_0x4594eb)=>Ye(_0xeed6f,typeof _0x319523!=_0x1937ef(0xe5)?_0x319523+'':_0x319523,_0x4594eb);const Ze=_0x1937ef(0xe7);let O=class extends _0xa8483a{constructor(_0x571de8=T,_0x4846c5,_0x3d7654){var _0x46a759=_0x1937ef;super(),this[_0x46a759(0x108)]=_0x571de8,this[_0x46a759(0x15f)]=_0x4846c5,this[_0x46a759(0x144)]=_0x3d7654;const {..._0x2911cc}=_0x520eac({},T,this['_config']);this[_0x46a759(0x144)]['setConfig'](Oe,_0x2911cc);}[_0x1937ef(0xf7)](){var _0x7d6217=_0x1937ef;_0x47f38e(this[_0x7d6217(0x15f)],_0xf1e502([[L],[I],[m],[b]],this['_config']['override'])),_0x30d27b(this[_0x7d6217(0x15f)],[[m]]);}[_0x1937ef(0x148)](){var _0x4f8c9f=_0x1937ef;_0x30d27b(this[_0x4f8c9f(0x15f)],[[b]]);}};J(O,_0x1937ef(0x154),_0x389694[_0x1937ef(0xde)]),J(O,_0x1937ef(0x133),Ze),O=Be([_0x434d74(_0x310c99),F(0x1,_0x30f351(_0x5a81c2)),F(0x2,_0x268cc5)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x545f(_0x42516d,_0x5415f3){var _0x575241=_0x5752();return _0x545f=function(_0x545ff5,_0x131813){_0x545ff5=_0x545ff5-0x115;var _0x20ccdf=_0x575241[_0x545ff5];return _0x20ccdf;},_0x545f(_0x42516d,_0x5415f3);}(function(_0x308c09,_0x1ff32f){var _0x477003=_0x545f,_0x1b695b=_0x308c09();while(!![]){try{var _0x81c546=-parseInt(_0x477003(0x1ac))/0x1*(-parseInt(_0x477003(0x1c7))/0x2)+parseInt(_0x477003(0x176))/0x3*(parseInt(_0x477003(0x204))/0x4)+-parseInt(_0x477003(0x157))/0x5*(-parseInt(_0x477003(0x1c4))/0x6)+parseInt(_0x477003(0x1fe))/0x7*(parseInt(_0x477003(0x139))/0x8)+parseInt(_0x477003(0x1a8))/0x9*(parseInt(_0x477003(0x175))/0xa)+-parseInt(_0x477003(0x156))/0xb+-parseInt(_0x477003(0x17d))/0xc*(parseInt(_0x477003(0x192))/0xd);if(_0x81c546===_0x1ff32f)break;else _0x1b695b['push'](_0x1b695b['shift']());}catch(_0x48db75){_0x1b695b['push'](_0x1b695b['shift']());}}}(_0x5752,0x7a492),function(_0xc6fcc9,_0x17172c){var _0x34bf3f=_0x545f;typeof exports==_0x34bf3f(0x14d)&&typeof module<'u'?_0x17172c(exports,require(_0x34bf3f(0x13e)),require('@univerjs/core'),require(_0x34bf3f(0x1a7)),require('@univerjs/sheets-ui'),require(_0x34bf3f(0x152)),require(_0x34bf3f(0x17b)),require('@univerjs/design'),require(_0x34bf3f(0x1cd)),require(_0x34bf3f(0x11f)),require(_0x34bf3f(0x13b)),require(_0x34bf3f(0x191))):typeof define==_0x34bf3f(0x1b7)&&define[_0x34bf3f(0x1de)]?define([_0x34bf3f(0x162),_0x34bf3f(0x13e),_0x34bf3f(0x1b4),_0x34bf3f(0x1a7),_0x34bf3f(0x1c9),_0x34bf3f(0x152),_0x34bf3f(0x17b),_0x34bf3f(0x117),'react',_0x34bf3f(0x11f),'rxjs',_0x34bf3f(0x191)],_0x17172c):(_0xc6fcc9=typeof globalThis<'u'?globalThis:_0xc6fcc9||self,_0x17172c(_0xc6fcc9[_0x34bf3f(0x14e)]={},_0xc6fcc9[_0x34bf3f(0x1b5)],_0xc6fcc9[_0x34bf3f(0x127)],_0xc6fcc9[_0x34bf3f(0x207)],_0xc6fcc9[_0x34bf3f(0x18a)],_0xc6fcc9['UniverUi'],_0xc6fcc9[_0x34bf3f(0x154)],_0xc6fcc9['UniverDesign'],_0xc6fcc9[_0x34bf3f(0x154)],_0xc6fcc9[_0x34bf3f(0x174)],_0xc6fcc9[_0x34bf3f(0x13b)],_0xc6fcc9['rxjs'][_0x34bf3f(0x1f0)]));}(this,function(_0x2e0303,_0x21fb35,_0x42d3cb,_0x3ba85f,_0x1670e9,_0x5a3d51,_0x3d0e35,_0x494086,_0x1a6b8c,_0x50232c,_0x18e5fa,_0x59f70e){'use strict';var _0x38ea04=_0x545f;var _0x4530b6=Object[_0x38ea04(0x11b)],_0x1faee4=(_0x5315c4,_0xd5b28a,_0x568a5b)=>_0xd5b28a in _0x5315c4?_0x4530b6(_0x5315c4,_0xd5b28a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x568a5b}):_0x5315c4[_0xd5b28a]=_0x568a5b,_0x183ce4=(_0x51711b,_0x1655a8,_0xcb3855)=>_0x1faee4(_0x51711b,typeof _0x1655a8!=_0x38ea04(0x128)?_0x1655a8+'':_0x1655a8,_0xcb3855);const _0x4cb5d5=_0x38ea04(0x1d8),_0x1e85bb={};class _0x4f7ebf extends _0x42d3cb['Disposable']{constructor(){var _0x5ccf90=_0x38ea04;super(...arguments),_0x183ce4(this,_0x5ccf90(0x1e0),new Set()),_0x183ce4(this,_0x5ccf90(0x182),new Set());}[_0x38ea04(0x1d2)](_0x1ea625){var _0x490c47=_0x38ea04;return this[_0x490c47(0x1e0)][_0x490c47(0x1af)](_0x1ea625),_0x42d3cb['toDisposable'](()=>this[_0x490c47(0x1e0)][_0x490c47(0x124)](_0x1ea625));}[_0x38ea04(0x198)](_0x4ea962){var _0x26b3a3=_0x38ea04;return this['_reporters'][_0x26b3a3(0x1af)](_0x4ea962),_0x42d3cb[_0x26b3a3(0x171)](()=>this[_0x26b3a3(0x182)][_0x26b3a3(0x124)](_0x4ea962));}[_0x38ea04(0x1fd)](_0x55b707){var _0x491e55=_0x38ea04;return this[_0x491e55(0x1e0)]['has'](_0x55b707);}[_0x38ea04(0x129)](_0x421607){var _0x412778=_0x38ea04;return Array[_0x412778(0x19a)](this[_0x412778(0x182)])['map'](_0x42dbb5=>_0x42dbb5(_0x421607));}}var _0x2f64d8=Object[_0x38ea04(0x1d6)],_0x246e44=(_0x467a8a,_0x2d30e7,_0x6f17a5,_0x207374)=>{for(var _0x8c681f=_0x207374>0x1?void 0x0:_0x207374?_0x2f64d8(_0x2d30e7,_0x6f17a5):_0x2d30e7,_0x55a3af=_0x467a8a['length']-0x1,_0x1ca937;_0x55a3af>=0x0;_0x55a3af--)(_0x1ca937=_0x467a8a[_0x55a3af])&&(_0x8c681f=_0x1ca937(_0x8c681f)||_0x8c681f);return _0x8c681f;},_0x24b89b=(_0x359a6a,_0x42f6ac)=>(_0x493051,_0x87883c)=>_0x42f6ac(_0x493051,_0x87883c,_0x359a6a);let _0xb8f5d0=class extends _0x42d3cb['Disposable']{constructor(_0x3dad08){var _0x490d72=_0x38ea04;super(),this[_0x490d72(0x1ad)]=_0x3dad08,this['_init']();}[_0x38ea04(0x1cf)](){var _0x34343d=_0x38ea04;[_0x1670e9[_0x34343d(0x1d4)]['id'],_0x1670e9[_0x34343d(0x120)]['id'],_0x3ba85f[_0x34343d(0x1a0)]['id']][_0x34343d(0x1d7)](_0x29de30=>{var _0x385311=_0x34343d;this['disposeWithMe'](this[_0x385311(0x1ad)][_0x385311(0x1d2)](_0x29de30));});}};_0xb8f5d0=_0x246e44([_0x24b89b(0x0,_0x42d3cb['Inject'](_0x4f7ebf))],_0xb8f5d0);var _0x53812d=function(){var _0x530087=_0x38ea04;return _0x53812d=Object[_0x530087(0x143)]||function(_0xf38ddf){var _0x278f6f=_0x530087;for(var _0x1229f9,_0x59e5e6=0x1,_0x1f9cb5=arguments[_0x278f6f(0x161)];_0x59e5e6<_0x1f9cb5;_0x59e5e6++){_0x1229f9=arguments[_0x59e5e6];for(var _0x5dda1a in _0x1229f9)Object['prototype'][_0x278f6f(0x16b)][_0x278f6f(0x11e)](_0x1229f9,_0x5dda1a)&&(_0xf38ddf[_0x5dda1a]=_0x1229f9[_0x5dda1a]);}return _0xf38ddf;},_0x53812d[_0x530087(0x173)](this,arguments);},_0x362b8a=function(_0x112530,_0x3eee16){var _0x4ffd12=_0x38ea04,_0x137ea9={};for(var _0xa424a6 in _0x112530)Object['prototype']['hasOwnProperty'][_0x4ffd12(0x11e)](_0x112530,_0xa424a6)&&_0x3eee16[_0x4ffd12(0x17a)](_0xa424a6)<0x0&&(_0x137ea9[_0xa424a6]=_0x112530[_0xa424a6]);if(_0x112530!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x2d8bc8=0x0,_0xa424a6=Object[_0x4ffd12(0x1bc)](_0x112530);_0x2d8bc8<_0xa424a6[_0x4ffd12(0x161)];_0x2d8bc8++)_0x3eee16[_0x4ffd12(0x17a)](_0xa424a6[_0x2d8bc8])<0x0&&Object[_0x4ffd12(0x119)][_0x4ffd12(0x1b1)][_0x4ffd12(0x11e)](_0x112530,_0xa424a6[_0x2d8bc8])&&(_0x137ea9[_0xa424a6[_0x2d8bc8]]=_0x112530[_0xa424a6[_0x2d8bc8]]);}return _0x137ea9;},_0x25a05c=_0x1a6b8c[_0x38ea04(0x20c)](function(_0x3a1edd,_0x190b1a){var _0x44a00d=_0x38ea04,_0x1c2535=_0x3a1edd[_0x44a00d(0x1a2)],_0x1d0485=_0x3a1edd['id'],_0x573f43=_0x3a1edd[_0x44a00d(0x195)],_0x5eac33=_0x3a1edd[_0x44a00d(0x1a3)],_0x4a7eca=_0x362b8a(_0x3a1edd,[_0x44a00d(0x1a2),'id',_0x44a00d(0x195),'extend']),_0x119830=_0x44a00d(0x17c)[_0x44a00d(0x208)](_0x1d0485,'\x20')[_0x44a00d(0x208)](_0x573f43||'')[_0x44a00d(0x1a1)](),_0x251a93=_0x1a6b8c[_0x44a00d(0x1eb)]('_'[_0x44a00d(0x208)](_0x2f7e4e()));return _0x4968ab(_0x1c2535,''['concat'](_0x1d0485),{'defIds':_0x1c2535[_0x44a00d(0x190)],'idSuffix':_0x251a93['current']},_0x53812d({'ref':_0x190b1a,'className':_0x119830},_0x4a7eca),_0x5eac33);});function _0x4968ab(_0x48d757,_0x2b6955,_0x519873,_0x13f8dc,_0x456b6a){var _0x5f1f46=_0x38ea04;return _0x1a6b8c['createElement'](_0x48d757[_0x5f1f46(0x12b)],_0x53812d(_0x53812d({'key':_0x2b6955},_0x431793(_0x48d757,_0x519873,_0x456b6a)),_0x13f8dc),(_0x72541f(_0x48d757,_0x519873)[_0x5f1f46(0x1c2)]||[])[_0x5f1f46(0x193)](function(_0x54c87b,_0x24a4da){var _0x46e90a=_0x5f1f46;return _0x4968ab(_0x54c87b,''[_0x46e90a(0x208)](_0x2b6955,'-')['concat'](_0x48d757['tag'],'-')[_0x46e90a(0x208)](_0x24a4da),_0x519873,void 0x0,_0x456b6a);}));}function _0x431793(_0x9cdbf5,_0x2ec418,_0x16ef1b){var _0x55d856=_0x38ea04,_0xf7687a=_0x53812d({},_0x9cdbf5[_0x55d856(0x203)]);_0x16ef1b!=null&&_0x16ef1b['colorChannel1']&&_0xf7687a[_0x55d856(0x1c0)]===_0x55d856(0x1ab)&&(_0xf7687a[_0x55d856(0x1c0)]=_0x16ef1b[_0x55d856(0x1ab)]),_0x9cdbf5['tag']===_0x55d856(0x145)&&_0xf7687a['id']&&(_0xf7687a['id']=_0xf7687a['id']+_0x2ec418[_0x55d856(0x13a)]),Object['entries'](_0xf7687a)[_0x55d856(0x1d7)](function(_0x3f67e6){var _0x23dac7=_0x55d856,_0x5c6fef=_0x3f67e6[0x0],_0x407142=_0x3f67e6[0x1];_0x5c6fef==='mask'&&typeof _0x407142=='string'&&(_0xf7687a[_0x5c6fef]=_0x407142[_0x23dac7(0x20b)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2ec418['idSuffix'],')')));});var _0x52cdc5=_0x2ec418[_0x55d856(0x190)];return!_0x52cdc5||_0x52cdc5[_0x55d856(0x161)]===0x0||(_0x9cdbf5[_0x55d856(0x12b)]===_0x55d856(0x1e8)&&_0xf7687a[_0x55d856(0x169)]&&(_0xf7687a[_0x55d856(0x169)]=_0xf7687a[_0x55d856(0x169)]+_0x2ec418[_0x55d856(0x13a)]),Object['entries'](_0xf7687a)[_0x55d856(0x1d7)](function(_0x1ba988){var _0x3ac8ae=_0x55d856,_0x1e45c1=_0x1ba988[0x0],_0x3cf345=_0x1ba988[0x1];typeof _0x3cf345==_0x3ac8ae(0x126)&&(_0xf7687a[_0x1e45c1]=_0x3cf345[_0x3ac8ae(0x20b)](/url\(#(.*)\)/,'url(#$1'[_0x3ac8ae(0x208)](_0x2ec418['idSuffix'],')')));})),_0xf7687a;}function _0x72541f(_0x44e3bf,_0x57487c){var _0x106569=_0x38ea04,_0x3ff985,_0x14fbc1=_0x57487c['defIds'];return!_0x14fbc1||_0x14fbc1[_0x106569(0x161)]===0x0?_0x44e3bf:_0x44e3bf[_0x106569(0x12b)]==='defs'&&(!((_0x3ff985=_0x44e3bf[_0x106569(0x1c2)])===null||_0x3ff985===void 0x0)&&_0x3ff985[_0x106569(0x161)])?_0x53812d(_0x53812d({},_0x44e3bf),{'children':_0x44e3bf[_0x106569(0x1c2)][_0x106569(0x193)](function(_0x556260){var _0x1a87b8=_0x106569;return typeof _0x556260[_0x1a87b8(0x203)]['id']==_0x1a87b8(0x126)&&_0x14fbc1&&_0x14fbc1[_0x1a87b8(0x17a)](_0x556260[_0x1a87b8(0x203)]['id'])>-0x1?_0x53812d(_0x53812d({},_0x556260),{'attrs':_0x53812d(_0x53812d({},_0x556260[_0x1a87b8(0x203)]),{'id':_0x556260['attrs']['id']+_0x57487c[_0x1a87b8(0x13a)]})}):_0x556260;})}):_0x44e3bf;}function _0x2f7e4e(){var _0x39e3f1=_0x38ea04;return Math['random']()['toString'](0x24)[_0x39e3f1(0x1f8)](0x2,0x8);}_0x25a05c[_0x38ea04(0x194)]=_0x38ea04(0x18f);var _0x4367e0={'tag':_0x38ea04(0x1f3),'attrs':{'fill':_0x38ea04(0x1ba),'viewBox':_0x38ea04(0x15b),'width':_0x38ea04(0x166),'height':_0x38ea04(0x166)},'children':[{'tag':'path','attrs':{'fill':_0x38ea04(0x1ec),'d':_0x38ea04(0x19d)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x38ea04(0x151),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x2ce6b9=_0x1a6b8c[_0x38ea04(0x20c)](function(_0x52ed37,_0x103b9a){var _0xc62722=_0x38ea04;return _0x1a6b8c['createElement'](_0x25a05c,Object[_0xc62722(0x143)]({},_0x52ed37,{'id':_0xc62722(0x1ee),'ref':_0x103b9a,'icon':_0x4367e0}));});_0x2ce6b9[_0x38ea04(0x194)]='LiveShareSingle';var _0x1099ca=Object['getOwnPropertyDescriptor'],_0x22ef8a=(_0x383b06,_0x3d3228,_0x2e16cb,_0xad2882)=>{var _0x4841b6=_0x38ea04;for(var _0x269533=_0xad2882>0x1?void 0x0:_0xad2882?_0x1099ca(_0x3d3228,_0x2e16cb):_0x3d3228,_0x5784ba=_0x383b06[_0x4841b6(0x161)]-0x1,_0xfc7ab7;_0x5784ba>=0x0;_0x5784ba--)(_0xfc7ab7=_0x383b06[_0x5784ba])&&(_0x269533=_0xfc7ab7(_0x269533)||_0x269533);return _0x269533;},_0x424375=(_0x598d97,_0x4d85ea)=>(_0x58f11b,_0x2c15bf)=>_0x4d85ea(_0x58f11b,_0x2c15bf,_0x598d97);_0x2e0303[_0x38ea04(0x1a6)]=class extends _0x42d3cb[_0x38ea04(0x1ef)]{constructor(_0x58c211,_0x2cf26c,_0x181242){var _0x351a99=_0x38ea04;super(),_0x183ce4(this,'_entities',new Map()),(this[_0x351a99(0x1b2)]=_0x58c211,this[_0x351a99(0x1c8)]=_0x2cf26c,this[_0x351a99(0x148)]=_0x181242,this[_0x351a99(0x1cf)]());}async[_0x38ea04(0x205)](_0x23572a){var _0x122f03=_0x38ea04;return this['_entities'][_0x122f03(0x140)](_0x23572a)||await this['_startLiveShareCoordinator'](_0x23572a),this[_0x122f03(0x14f)]['get'](_0x23572a);}[_0x38ea04(0x1cf)](){var _0x1686c9=_0x38ea04;this[_0x1686c9(0x1b2)][_0x1686c9(0x155)](_0x42d3cb['UniverInstanceType'][_0x1686c9(0x12c)])[_0x1686c9(0x186)](_0x59f70e[_0x1686c9(0x16f)](this['dispose$']))['subscribe'](async _0x17042c=>{var _0x142825=_0x1686c9;const _0x7559cf=_0x17042c[_0x142825(0x1b6)]();this[_0x142825(0x14f)][_0x142825(0x140)](_0x7559cf)||this['_startLiveShareCoordinator'](_0x7559cf);}),this['_univerInstanceService'][_0x1686c9(0x13f)](_0x42d3cb['UniverInstanceType'][_0x1686c9(0x12c)])[_0x1686c9(0x186)](_0x59f70e[_0x1686c9(0x16f)](this[_0x1686c9(0x11d)]))[_0x1686c9(0x206)](_0x236b60=>{var _0x284e49=_0x1686c9;const _0x5c208f=_0x236b60[_0x284e49(0x1b6)](),_0x29cc9b=this['_entities'][_0x284e49(0x1d5)](_0x5c208f);_0x29cc9b==null||_0x29cc9b['dispose']();});}async['_startLiveShareCoordinator'](_0x2088a6){var _0x48002f=_0x38ea04;const _0x4b5ac4=await this[_0x48002f(0x148)]['requireSession'](_0x2088a6),_0xd42e96=this[_0x48002f(0x1c8)][_0x48002f(0x1f4)](_0x2e0303[_0x48002f(0x16e)],_0x2088a6,_0x4b5ac4);return _0xd42e96[_0x48002f(0x1f7)](),this[_0x48002f(0x14f)][_0x48002f(0x153)](_0x2088a6,_0xd42e96),_0xd42e96;}},_0x2e0303[_0x38ea04(0x1a6)]=_0x22ef8a([_0x424375(0x0,_0x42d3cb[_0x38ea04(0x1bb)]),_0x424375(0x1,_0x42d3cb['Inject'](_0x42d3cb['Injector'])),_0x424375(0x2,_0x42d3cb[_0x38ea04(0x170)](_0x21fb35[_0x38ea04(0x1fb)]))],_0x2e0303[_0x38ea04(0x1a6)]);var _0x4d4d44=(_0x542a38=>(_0x542a38[_0x38ea04(0x1e5)]='offline',_0x542a38[_0x38ea04(0x1d1)]='idle',_0x542a38[_0x38ea04(0x116)]='following',_0x542a38[_0x38ea04(0x202)]=_0x38ea04(0x1da),_0x542a38['PRESENTING']=_0x38ea04(0x165),_0x542a38))(_0x4d4d44||{});const _0x34d5de='SAME_OPERATION_SHARE_INTERVAL',_0x55f21c=0xc8;_0x2e0303[_0x38ea04(0x16e)]=class extends _0x42d3cb[_0x38ea04(0x1ef)]{constructor(_0x44c888,_0x32f55a,_0x4cffac,_0x3e8c88,_0x295b30){var _0x27bc3d=_0x38ea04;super(),_0x183ce4(this,_0x27bc3d(0x1fc),new _0x18e5fa[(_0x27bc3d(0x14c))](_0x27bc3d(0x1bf))),_0x183ce4(this,'status$',this[_0x27bc3d(0x1fc)][_0x27bc3d(0x1f1)]()),_0x183ce4(this,_0x27bc3d(0x1cf),!0x1),_0x183ce4(this,'_commandDisposable',null),_0x183ce4(this,_0x27bc3d(0x189),null),(this[_0x27bc3d(0x12f)]=_0x44c888,this[_0x27bc3d(0x12e)]=_0x32f55a,this['_configService']=_0x4cffac,this['_liveShareService']=_0x3e8c88,this[_0x27bc3d(0x1b3)]=_0x295b30);}get[_0x38ea04(0x141)](){var _0x2dea38=_0x38ea04;return this['_status$'][_0x2dea38(0x1ed)]();}[_0x38ea04(0x197)](){var _0x1a3a04=_0x38ea04,_0x56b79a;(_0x56b79a=this[_0x1a3a04(0x1b8)])==null||_0x56b79a[_0x1a3a04(0x197)](),this[_0x1a3a04(0x1fc)][_0x1a3a04(0x11c)](_0x1a3a04(0x1bf)),this[_0x1a3a04(0x1fc)]['complete']();}[_0x38ea04(0x1f7)](){var _0x5ccb2c=_0x38ea04;this[_0x5ccb2c(0x1cf)]||(this[_0x5ccb2c(0x1cf)]=!0x0,this[_0x5ccb2c(0x12e)][_0x5ccb2c(0x1f9)][_0x5ccb2c(0x186)](_0x59f70e['takeUntil'](this[_0x5ccb2c(0x11d)]))[_0x5ccb2c(0x206)](_0x1ca1a1=>{var _0x3ad85a=_0x5ccb2c;switch(_0x1ca1a1){case _0x21fb35[_0x3ad85a(0x159)][_0x3ad85a(0x1e5)]:this['_handleOffline']();break;case _0x21fb35['SessionStatus'][_0x3ad85a(0x1cc)]:this[_0x3ad85a(0x160)]();break;}}),this[_0x5ccb2c(0x12e)][_0x5ccb2c(0x16d)][_0x5ccb2c(0x186)](_0x59f70e['takeUntil'](this[_0x5ccb2c(0x11d)]))['subscribe'](_0x2103c8=>{var _0x445a1c=_0x5ccb2c;const {eventID:_0x147a53}=_0x2103c8;switch(_0x147a53){case _0x50232c[_0x445a1c(0x123)][_0x445a1c(0x1c3)]:this[_0x445a1c(0x20d)](_0x2103c8);break;case _0x50232c[_0x445a1c(0x123)][_0x445a1c(0x132)]:this[_0x445a1c(0x18b)](_0x2103c8);break;case _0x50232c[_0x445a1c(0x123)][_0x445a1c(0x135)]:this[_0x445a1c(0x196)]();break;case _0x50232c[_0x445a1c(0x123)][_0x445a1c(0x17f)]:this[_0x445a1c(0x200)](_0x2103c8);break;}}));}[_0x38ea04(0x19e)](){var _0x4d804d=_0x38ea04;this[_0x4d804d(0x12e)]['send']({'eventID':_0x50232c[_0x4d804d(0x123)][_0x4d804d(0x1b0)],'data':{'unitID':this[_0x4d804d(0x12f)],'userID':this[_0x4d804d(0x12e)]['getMemberID']()}},this[_0x4d804d(0x12f)]);}[_0x38ea04(0x1aa)](){var _0x5b8ea7=_0x38ea04;this['_status']==='presenting'&&(this[_0x5b8ea7(0x1fc)]['next'](_0x5b8ea7(0x1bf)),this[_0x5b8ea7(0x12e)][_0x5b8ea7(0x1e3)]({'eventID':_0x50232c[_0x5b8ea7(0x123)][_0x5b8ea7(0x135)],'data':{'unitID':this[_0x5b8ea7(0x12f)]}},this['_unitID']));}[_0x38ea04(0x11a)](){var _0x5e4ce9=_0x38ea04;this[_0x5e4ce9(0x141)]==='not-following'&&(this[_0x5e4ce9(0x1fc)][_0x5e4ce9(0x11c)](_0x5e4ce9(0x1ce)),this[_0x5e4ce9(0x199)]());}[_0x38ea04(0x188)](){var _0x547e86=_0x38ea04;this['_status']===_0x547e86(0x1ce)&&this[_0x547e86(0x187)]();}[_0x38ea04(0x20d)](_0x496b8d){var _0x3d20ef=_0x38ea04;const {presenter:_0x38b017}=_0x496b8d['data'],_0xbd78f5=this[_0x3d20ef(0x12e)][_0x3d20ef(0x1bd)]();this[_0x3d20ef(0x189)]=_0x38b017,_0x38b017===_0xbd78f5?(this[_0x3d20ef(0x187)](),this[_0x3d20ef(0x201)]()):this[_0x3d20ef(0x141)]!==_0x3d20ef(0x1da)&&(this[_0x3d20ef(0x136)](),this['_startFollowing']());}[_0x38ea04(0x20e)](){var _0x4c499e=_0x38ea04;const _0x5b562b={'eventID':_0x50232c[_0x4c499e(0x123)][_0x4c499e(0x1e9)]};this[_0x4c499e(0x12e)][_0x4c499e(0x1e3)](_0x5b562b,this[_0x4c499e(0x12f)]);}['_handleTerminate'](){var _0x35f472=_0x38ea04;this[_0x35f472(0x189)]=null,this[_0x35f472(0x141)]!==_0x35f472(0x165)&&this[_0x35f472(0x18e)]();}[_0x38ea04(0x200)](_0x5289f2){var _0x95ede9=_0x38ea04;if(this['_status']==='following'&&this['_presenter']===_0x5289f2[_0x95ede9(0x19c)]['memberID']){const _0x158622=_0x50232c['parseProtocolChangeset'](_0x5289f2['data'])[_0x95ede9(0x1e1)][_0x95ede9(0x209)]()[_0x95ede9(0x172)](_0x4b79fe=>_0x4b79fe['id']===_0x3ba85f[_0x95ede9(0x150)]['id']);if(_0x158622){const _0xb02d9=_0x158622[_0x95ede9(0x16c)][_0x95ede9(0x14a)],_0x3718ca=_0x158622[_0x95ede9(0x16c)][_0x95ede9(0x1a5)]['id'];setTimeout(()=>{var _0x587a78=_0x95ede9;this[_0x587a78(0x1b3)][_0x587a78(0x1be)](_0x3ba85f[_0x587a78(0x1a0)]['id'],{'unitId':_0xb02d9,'subUnitId':_0x3718ca},{'fromCollab':!0x0});});}}}[_0x38ea04(0x201)](){var _0x2788c7=_0x38ea04;this[_0x2788c7(0x1fc)][_0x2788c7(0x11c)](_0x2788c7(0x165));const _0x141357=new Map(),_0x2d27e4=this[_0x2788c7(0x1b8)]=new _0x42d3cb[(_0x2788c7(0x1ae))]();_0x2d27e4[_0x2788c7(0x1af)](_0x42d3cb[_0x2788c7(0x171)](()=>{var _0x27fe70=_0x2788c7;_0x141357[_0x27fe70(0x1d7)](_0x74600=>_0x74600[_0x27fe70(0x17e)]()),_0x141357['clear']();})),_0x2d27e4[_0x2788c7(0x1af)](this[_0x2788c7(0x1b3)][_0x2788c7(0x138)](_0x4a3577=>{var _0x3e039c=_0x2788c7,_0x12452a;if(_0x4a3577['type']!==_0x42d3cb[_0x3e039c(0x146)][_0x3e039c(0x121)]||!this[_0x3e039c(0x1ad)][_0x3e039c(0x1fd)](_0x4a3577['id']))return;const {id:_0x26005f}=_0x4a3577;let _0x3e7d75;_0x141357[_0x3e039c(0x140)](_0x26005f)?_0x3e7d75=_0x141357['get'](_0x26005f):(_0x3e7d75=new _0x18e5fa[(_0x3e039c(0x178))](),_0x141357['set'](_0x26005f,_0x3e7d75),_0x3e7d75[_0x3e039c(0x186)](_0x59f70e['throttleTime']((_0x12452a=this['_configService']['getConfig'](_0x34d5de))!=null?_0x12452a:_0x55f21c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3e039c(0x206)](_0x54c367=>{var _0x304e4d=_0x3e039c;this[_0x304e4d(0x12e)][_0x304e4d(0x1e3)]({'eventID':_0x50232c[_0x304e4d(0x123)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x304e4d(0x12f)],'operations':{[_0x54c367['id']]:{'id':_0x54c367['id'],'params':JSON[_0x304e4d(0x180)](_0x54c367[_0x304e4d(0x16c)])}}}},this[_0x304e4d(0x12f)]);})),_0x3e7d75[_0x3e039c(0x11c)](_0x4a3577);})),this[_0x2788c7(0x1ad)]['getInitialStates'](this[_0x2788c7(0x12f)])[_0x2788c7(0x1d7)](_0x5f43cb=>this[_0x2788c7(0x12e)][_0x2788c7(0x1e3)]({'eventID':_0x50232c['CollaborationEvent'][_0x2788c7(0x132)],'data':{'unitID':this[_0x2788c7(0x12f)],'operations':{[_0x5f43cb['id']]:{'id':_0x5f43cb['id'],'params':JSON['stringify'](_0x5f43cb[_0x2788c7(0x16c)])}}}},this[_0x2788c7(0x12f)]));}['_stopPresenting'](){var _0x5c83fe=_0x38ea04,_0x32394d;this[_0x5c83fe(0x1fc)][_0x5c83fe(0x11c)](_0x5c83fe(0x1bf)),(_0x32394d=this[_0x5c83fe(0x1b8)])==null||_0x32394d[_0x5c83fe(0x197)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x14163b=_0x38ea04,_0x54ea9d;(_0x54ea9d=this[_0x14163b(0x1b8)])==null||_0x54ea9d[_0x14163b(0x197)](),this[_0x14163b(0x1fc)][_0x14163b(0x11c)](_0x14163b(0x1ce));}[_0x38ea04(0x18e)](){var _0x3ae579=_0x38ea04,_0x5a274e;this['_status$']['next']('idle'),(_0x5a274e=this['_commandDisposable'])==null||_0x5a274e[_0x3ae579(0x197)](),this[_0x3ae579(0x1b8)]=null;}['_stopFollowing'](){var _0x2fbddf=_0x38ea04,_0x1facca;this[_0x2fbddf(0x1fc)]['next'](_0x2fbddf(0x1da)),(_0x1facca=this['_commandDisposable'])==null||_0x1facca[_0x2fbddf(0x197)]();}['_handleOperation'](_0x49fc7c){var _0x3029ec=_0x38ea04;if(['presenting',_0x3029ec(0x1da),_0x3029ec(0x1d0)][_0x3029ec(0x12d)](this[_0x3029ec(0x141)])||!_0x49fc7c['data'][_0x3029ec(0x18c)]||_0x49fc7c[_0x3029ec(0x19c)][_0x3029ec(0x18c)]===this[_0x3029ec(0x12e)][_0x3029ec(0x1bd)]())return;this[_0x3029ec(0x141)]===_0x3029ec(0x1bf)&&this['_startFollowing']();const _0x12c896=_0x49fc7c[_0x3029ec(0x19c)][_0x3029ec(0x130)];Object[_0x3029ec(0x1d9)](_0x12c896)[_0x3029ec(0x1d7)](_0x51ebe4=>{var _0x3fb6ad=_0x3029ec;this[_0x3fb6ad(0x1b3)]['executeCommand'](_0x51ebe4['id'],_0x51ebe4[_0x3fb6ad(0x16c)]?JSON[_0x3fb6ad(0x18d)](_0x51ebe4[_0x3fb6ad(0x16c)]):null,{'fromCollab':!0x0});});}[_0x38ea04(0x1fa)](){var _0x3f1172=_0x38ea04,_0x2f323f;this[_0x3f1172(0x1fc)][_0x3f1172(0x11c)](_0x3f1172(0x1d0)),(_0x2f323f=this[_0x3f1172(0x1b8)])==null||_0x2f323f['dispose']();}[_0x38ea04(0x160)](){var _0x4e5b00=_0x38ea04;this['_status$'][_0x4e5b00(0x11c)](_0x4e5b00(0x1bf)),this[_0x4e5b00(0x20e)]();}},_0x2e0303[_0x38ea04(0x16e)]=_0x22ef8a([_0x424375(0x2,_0x42d3cb[_0x38ea04(0x15a)]),_0x424375(0x3,_0x42d3cb['Inject'](_0x4f7ebf)),_0x424375(0x4,_0x42d3cb[_0x38ea04(0x118)])],_0x2e0303[_0x38ea04(0x16e)]);function _0xba3f59(){var _0x22d833=_0x38ea04;const _0x32ed40=_0x5a3d51['useDependency'](_0x2e0303[_0x22d833(0x1a6)]),_0x4c9589=_0x5a3d51['useDependency'](_0x42d3cb[_0x22d833(0x1bb)]),_0x519d84=_0x5a3d51[_0x22d833(0x1dd)](()=>_0x4c9589[_0x22d833(0x15e)](_0x42d3cb[_0x22d833(0x167)][_0x22d833(0x12c)]),void 0x0,!0x1,[]),[_0x4f1319,_0x43da37]=_0x1a6b8c[_0x22d833(0x125)](null),[_0xc3b6a1,_0x2ac05b]=_0x1a6b8c[_0x22d833(0x125)](_0x4d4d44[_0x22d833(0x1d1)]),_0xccaa9f=_0x1a6b8c[_0x22d833(0x1eb)](null);return _0x1a6b8c['useEffect'](()=>(_0x519d84&&_0x32ed40[_0x22d833(0x205)](_0x519d84['getUnitId']())[_0x22d833(0x15d)](_0x20cafb=>{var _0x4f5520=_0x22d833;_0x43da37(_0x20cafb),_0xccaa9f[_0x4f5520(0x13d)]=_0x20cafb[_0x4f5520(0x134)][_0x4f5520(0x206)](_0x310f5b=>{_0x2ac05b(_0x310f5b);});}),()=>{var _0x48e689=_0x22d833,_0x228ecc;(_0x228ecc=_0xccaa9f[_0x48e689(0x13d)])==null||_0x228ecc[_0x48e689(0x1c6)](),_0xccaa9f[_0x48e689(0x13d)]=null;}),[_0x519d84,_0x32ed40]),_0x4f1319?_0x3d0e35[_0x22d833(0x1e6)](_0x494086['Dropdown'],{'align':_0x22d833(0x177),'disabled':_0xc3b6a1===_0x4d4d44[_0x22d833(0x1e5)],'className':_0x22d833(0x133),'overlay':_0x3d0e35['jsx'](_0x51afed,{'status':_0xc3b6a1,'coordinator':_0x4f1319}),'children':_0x3d0e35[_0x22d833(0x1e6)](_0x22d833(0x1a9),{'className':_0x494086[_0x22d833(0x20a)](_0x22d833(0x185),{'univer-cursor-not-allowed':_0xc3b6a1===_0x4d4d44[_0x22d833(0x1e5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xc3b6a1!==_0x4d4d44['OFFLINE']}),'type':_0x22d833(0x1a9),'children':_0x3d0e35[_0x22d833(0x1e6)](_0x2ce6b9,{'className':_0x22d833(0x168)})})}):null;}function _0x51afed(_0x7f3c51){var _0x3e12bd=_0x38ea04;const {status:_0x3a3651,coordinator:_0x57546d}=_0x7f3c51;switch(_0x3a3651){case _0x4d4d44['IDLE']:return _0x3d0e35[_0x3e12bd(0x1e6)](_0x50cba2,{'coordinator':_0x57546d});case _0x4d4d44[_0x3e12bd(0x116)]:return _0x3d0e35[_0x3e12bd(0x1e6)](_0x29bf63,{'coordinator':_0x57546d});case _0x4d4d44[_0x3e12bd(0x202)]:return _0x3d0e35[_0x3e12bd(0x1e6)](_0x1fa55d,{'coordinator':_0x57546d});case _0x4d4d44[_0x3e12bd(0x1e5)]:return _0x3d0e35[_0x3e12bd(0x1e6)](_0x3c4a9d,{});case _0x4d4d44[_0x3e12bd(0x1ea)]:return _0x3d0e35['jsx'](_0x20486f,{'coordinator':_0x57546d});default:return null;}}function _0x50cba2(_0x5c751b){var _0x5b8515=_0x38ea04;const {coordinator:_0x34450d}=_0x5c751b;return _0x3d0e35['jsxs'](_0x3d0e35[_0x5b8515(0x16a)],{'children':[_0x3d0e35[_0x5b8515(0x1e6)](_0x5b8515(0x1f6),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5b8515(0x1db)}),_0x3d0e35[_0x5b8515(0x1e6)](_0x494086[_0x5b8515(0x1f5)],{'onClick':()=>_0x34450d[_0x5b8515(0x19e)](),'children':_0x5b8515(0x147)})]});}function _0x29bf63(_0x334fd){var _0x324c17=_0x38ea04;const {coordinator:_0x17edfa}=_0x334fd;return _0x3d0e35[_0x324c17(0x1f2)](_0x3d0e35[_0x324c17(0x16a)],{'children':[_0x3d0e35[_0x324c17(0x1e6)]('div',{'className':_0x324c17(0x131),'children':_0x324c17(0x1ff)}),_0x3d0e35['jsx'](_0x494086[_0x324c17(0x1f5)],{'onClick':()=>_0x17edfa['stopFollowing'](),'children':_0x324c17(0x149)})]});}function _0x1fa55d(_0x547b6f){var _0x141673=_0x38ea04;const {coordinator:_0x16c0dc}=_0x547b6f;return _0x3d0e35[_0x141673(0x1f2)](_0x3d0e35['Fragment'],{'children':[_0x3d0e35[_0x141673(0x1e6)](_0x141673(0x1f6),{'className':_0x141673(0x131),'children':_0x141673(0x122)}),_0x3d0e35[_0x141673(0x1e6)](_0x494086[_0x141673(0x1f5)],{'variant':_0x141673(0x1e7),'onClick':()=>_0x16c0dc[_0x141673(0x11a)](),'children':'Start\x20following'})]});}function _0x20486f(_0x129347){var _0x15141d=_0x38ea04;const {coordinator:_0x2bdf65}=_0x129347;return _0x3d0e35[_0x15141d(0x1f2)](_0x3d0e35[_0x15141d(0x16a)],{'children':[_0x3d0e35['jsx'](_0x15141d(0x1f6),{'className':_0x15141d(0x131),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x3d0e35[_0x15141d(0x1e6)](_0x494086['Button'],{'variant':_0x15141d(0x183),'onClick':()=>_0x2bdf65['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x3c4a9d(){var _0x4c1315=_0x38ea04;return _0x3d0e35['jsx'](_0x3d0e35[_0x4c1315(0x16a)],{'children':'You\x27are\x20offline.'});}var _0x17fa93=Object[_0x38ea04(0x1d6)],_0x4b6636=(_0x49fc7a,_0x357695,_0x301d4a,_0x51187c)=>{var _0x1c8e3a=_0x38ea04;for(var _0x4c9360=_0x51187c>0x1?void 0x0:_0x51187c?_0x17fa93(_0x357695,_0x301d4a):_0x357695,_0x35217e=_0x49fc7a[_0x1c8e3a(0x161)]-0x1,_0x25d696;_0x35217e>=0x0;_0x35217e--)(_0x25d696=_0x49fc7a[_0x35217e])&&(_0x4c9360=_0x25d696(_0x4c9360)||_0x4c9360);return _0x4c9360;},_0x46ab77=(_0x157c23,_0x43399e)=>(_0x14f459,_0x15fd55)=>_0x43399e(_0x14f459,_0x15fd55,_0x157c23);_0x2e0303[_0x38ea04(0x179)]=class extends _0x42d3cb[_0x38ea04(0x1dc)]{constructor(_0x5782eb,_0x25e7fc){var _0x13a9e8=_0x38ea04;super(),this[_0x13a9e8(0x1c8)]=_0x5782eb,this[_0x13a9e8(0x163)]=_0x25e7fc,this[_0x13a9e8(0x142)]();}['_mountLiveShare'](){var _0x58b03b=_0x38ea04;this['disposeWithMe'](this[_0x58b03b(0x163)][_0x58b03b(0x184)](_0x5a3d51[_0x58b03b(0x1c5)][_0x58b03b(0x15c)],()=>_0x5a3d51[_0x58b03b(0x14b)](_0xba3f59,this[_0x58b03b(0x1c8)])));}},_0x2e0303[_0x38ea04(0x179)]=_0x4b6636([_0x46ab77(0x0,_0x42d3cb[_0x38ea04(0x170)](_0x42d3cb['Injector'])),_0x46ab77(0x1,_0x5a3d51['IUIPartsService'])],_0x2e0303[_0x38ea04(0x179)]);var _0x1debd9=Object[_0x38ea04(0x11b)],_0x5ce3df=Object[_0x38ea04(0x1d6)],_0x2afa49=(_0x32901c,_0x574d51,_0x25bbbb)=>_0x574d51 in _0x32901c?_0x1debd9(_0x32901c,_0x574d51,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25bbbb}):_0x32901c[_0x574d51]=_0x25bbbb,_0x1cf70c=(_0x2af4f4,_0x4f2dda,_0x199d7e,_0x4909f3)=>{var _0x31dc4c=_0x38ea04;for(var _0x32750a=_0x4909f3>0x1?void 0x0:_0x4909f3?_0x5ce3df(_0x4f2dda,_0x199d7e):_0x4f2dda,_0x27f2f8=_0x2af4f4[_0x31dc4c(0x161)]-0x1,_0xbd7132;_0x27f2f8>=0x0;_0x27f2f8--)(_0xbd7132=_0x2af4f4[_0x27f2f8])&&(_0x32750a=_0xbd7132(_0x32750a)||_0x32750a);return _0x32750a;},_0x18914c=(_0x5a1397,_0x12f2fc)=>(_0x3039a,_0x7deb43)=>_0x12f2fc(_0x3039a,_0x7deb43,_0x5a1397),_0x354ff2=(_0x4bdb4f,_0x579175,_0x39d90c)=>_0x2afa49(_0x4bdb4f,typeof _0x579175!=_0x38ea04(0x128)?_0x579175+'':_0x579175,_0x39d90c);const _0x2ef22a=_0x38ea04(0x1d3);_0x2e0303[_0x38ea04(0x1df)]=class extends _0x42d3cb[_0x38ea04(0x164)]{constructor(_0x5e6c76=_0x1e85bb,_0x287d60,_0x363a1a){var _0x2c93ce=_0x38ea04;super(),this[_0x2c93ce(0x158)]=_0x5e6c76,this[_0x2c93ce(0x1c8)]=_0x287d60,this[_0x2c93ce(0x1ca)]=_0x363a1a;const {..._0x22fe98}=_0x42d3cb[_0x2c93ce(0x144)]({},_0x1e85bb,this['_config']);this[_0x2c93ce(0x1ca)]['setConfig'](_0x4cb5d5,_0x22fe98);}['onStarting'](){var _0x2d6b27=_0x38ea04;_0x42d3cb[_0x2d6b27(0x115)](this['_injector'],_0x42d3cb[_0x2d6b27(0x1a4)]([[_0x4f7ebf],[_0x2e0303[_0x2d6b27(0x1a6)]],[_0xb8f5d0],[_0x2e0303[_0x2d6b27(0x179)]]],this['_config'][_0x2d6b27(0x15f)])),_0x42d3cb[_0x2d6b27(0x1e4)](this[_0x2d6b27(0x1c8)],[[_0xb8f5d0]]);}[_0x38ea04(0x19b)](){var _0x5696da=_0x38ea04;_0x42d3cb[_0x5696da(0x1e4)](this[_0x5696da(0x1c8)],[[_0x2e0303['DesktopLiveShareController']]]);}},_0x354ff2(_0x2e0303[_0x38ea04(0x1df)],_0x38ea04(0x12a),_0x42d3cb[_0x38ea04(0x167)][_0x38ea04(0x181)]),_0x354ff2(_0x2e0303['UniverLiveSharePlugin'],_0x38ea04(0x1e2),_0x2ef22a),_0x2e0303[_0x38ea04(0x1df)]=_0x1cf70c([_0x42d3cb[_0x38ea04(0x1cb)](_0x21fb35['UniverCollaborationClientPlugin']),_0x18914c(0x1,_0x42d3cb[_0x38ea04(0x170)](_0x42d3cb[_0x38ea04(0x13c)])),_0x18914c(0x2,_0x42d3cb[_0x38ea04(0x15a)])],_0x2e0303[_0x38ea04(0x1df)]),_0x2e0303['LiveShare']=_0xba3f59,_0x2e0303[_0x38ea04(0x1c1)]=_0x4f7ebf,_0x2e0303[_0x38ea04(0x1b9)]=_0x4d4d44,Object['defineProperty'](_0x2e0303,Symbol[_0x38ea04(0x19f)],{'value':_0x38ea04(0x137)});}));function _0x5752(){var _0x2e9f23=['10944fTfqSS','button','stopPresenting','colorChannel1','19477PBaBxZ','_liveShareService','DisposableCollection','add','LIVESHARE_REQUEST_HOST','propertyIsEnumerable','_univerInstanceService','_commandService','@univerjs/core','UniverProCollaborationClient','getUnitId','function','_commandDisposable','LiveShareStatus','none','IUniverInstanceService','getOwnPropertySymbols','getMemberID','executeCommand','idle','fill','LiveShareService','children','LIVESHARE_NEW_HOST','2463954YrbDhw','BuiltInUIPart','unsubscribe','58tsbGPo','_injector','@univerjs/sheets-ui','_configService','DependentOn','ONLINE','react','following','_init','offline','IDLE','registerSharedOperation','UNIVER_LIVE_SHARE_PLUGIN','SetZoomRatioOperation','get','getOwnPropertyDescriptor','forEach','live-share.config','values','not-following','Present\x20this\x20document','Disposable','useObservable','amd','UniverLiveSharePlugin','_sharedOperations','mutations','pluginName','send','touchDependencies','OFFLINE','jsx','text','use','LIVESHARE_FETCH_OPERATIONS','PRESENTING','useRef','currentColor','getValue','live-share-single','RxDisposable','operators','asObservable','jsxs','svg','createInstance','Button','div','init','substring','sessionStatus$','_handleOffline','CollaborationSessionService','_status$','shouldShareOperation','7TXXXEC','You\x27re\x20following\x20the\x20presenter','_handleNewChangeSets','_startPresenting','NOT_FOLLOWING','attrs','55128cNChpb','getLiveShareCoordinator','subscribe','UniverSheets','concat','reverse','clsx','replace','forwardRef','_handleNewHost','_fetchOperations','registerDependencies','FOLLOWING','@univerjs/design','ICommandService','prototype','startFollowing','defineProperty','next','dispose$','call','@univerjs-pro/collaboration','SetScrollOperation','OPERATION','You\x27re\x20not\x20following\x20the\x20presenter','CollaborationEvent','delete','useState','string','UniverCore','symbol','getInitialStates','type','tag','UNIVER_SHEET','includes','_collabSession','_unitID','operations','univer-w-full\x20univer-mb-3\x20univer-text-sm','LIVESHARE_OPERATION','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','status$','LIVESHARE_TERMINATE','_stopPresenting','Module','onCommandExecuted','2392248WtQjxg','idSuffix','rxjs','Injector','current','@univerjs-pro/collaboration-client','getTypeOfUnitDisposed$','has','_status','_mountLiveShare','assign','merge','mask','CommandType','Start','_collabSessionService','Stop\x20following','unitId','connectInjector','BehaviorSubject','object','UniverProLiveShare','_entities','InsertSheetMutation','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','@univerjs/ui','set','React','getTypeOfUnitAdded$','9108341TVEGRi','10hSxLgD','_config','SessionStatus','IConfigService','0\x200\x2016\x2016','HEADER_MENU','then','getCurrentTypeOfUnit$','override','_handleOnline','length','exports','_uiPartsService','Plugin','presenting','1em','UniverInstanceType','univer-size-4','xlink:href','Fragment','hasOwnProperty','params','event$','LiveShareCoordinator','takeUntil','Inject','toDisposable','find','apply','UniverProCollaboration','1450dZMpaN','159DIQhCM','end','Subject','DesktopLiveShareController','indexOf','react/jsx-runtime','univerjs-icon\x20univerjs-icon-','12sgTsnk','complete','NEW_CHANGESETS','stringify','UNIVER_UNKNOWN','_reporters','default','registerComponent','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','pipe','_stopFollowing','stopFollowing','_presenter','UniverSheetsUi','_handleOperation','presenter','parse','_beIdle','UniverIcon','defIds','rxjs/operators','16419455VVbEdu','map','displayName','className','_handleTerminate','dispose','registerInitialStateReporter','_startFollowing','from','onRendered','data','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','tryStartPresenting','toStringTag','SetWorksheetActiveOperation','trim','icon','extend','mergeOverrideWithDependencies','sheet','LiveShareController','@univerjs/sheets'];_0x5752=function(){return _0x2e9f23;};return _0x5752();}
|
|
1
|
+
function _0x5522(_0x412ca0,_0x545a42){var _0xec0561=_0xec05();return _0x5522=function(_0x55223c,_0x17a718){_0x55223c=_0x55223c-0x103;var _0x2f8d0f=_0xec0561[_0x55223c];return _0x2f8d0f;},_0x5522(_0x412ca0,_0x545a42);}function _0xec05(){var _0x3ecbfc=['CollaborationSessionService','div','_config','Dropdown','createInstance','registerSharedOperation','requireSession','UNIVER_SHEET','570904uLBJBw','concat','touchDependencies','LIVESHARE_NEW_HOST','ICommandService','univer-size-4','getLiveShareCoordinator','default','_commandService','onStarting','UNIVER_UNKNOWN','_entities','LiveShareService','Stop\x20following','following','_liveShareService','_stopFollowing','getTypeOfUnitAdded$','_collabSessionService','Start','toStringTag','symbol','_status','jsx','defIds','useRef','@univerjs/design','_uiPartsService','InsertSheetMutation','FOLLOWING','SessionStatus','You\x27re\x20following\x20the\x20presenter','_startPresenting','reverse','Fragment','LiveShareStatus','dispose$','extend','registerDependencies','assign','use','attrs','icon','entries','fill','live-share.config','forwardRef','_status$','children','HEADER_MENU','react/jsx-runtime','2353764mXhsyD','idle','Present\x20this\x20document','parseProtocolChangeset','_collabSession','_fetchOperations','disposeWithMe','string','defs','Plugin','stringify','_startLiveShareCoordinator','908946qmCsNT','UniverLiveSharePlugin','NOT_FOLLOWING','amd','0\x200\x2016\x2016','_handleTerminate','getMemberID','toDisposable','jsxs','_injector','dispose','1em','@univerjs-pro/collaboration-client','throttleTime','NEW_CHANGESETS','mergeOverrideWithDependencies','_handleOffline','CommandType','@univerjs/ui','current','getCurrentTypeOfUnit$','forEach','evenodd','Inject','DependentOn','stopFollowing','trim','PRESENTING','startFollowing','presenting','getConfig','_handleNewHost','clsx','_reporters','LiveShareController','from','memberID','next','indexOf','You\x27are\x20offline.','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','live-share-single','_startFollowing','5594672kdvLmB','length','_configService','unitId','not-following','_univerInstanceService','useState','LiveShareCoordinator','_init','registerInitialStateReporter','_handleOperation','merge','shouldShareOperation','connectInjector','rxjs/operators','univer-w-full\x20univer-mb-3\x20univer-text-sm','map','UniverProLiveShare','_mountLiveShare','14iBGfLJ','onCommandExecuted','init','currentColor','executeCommand','LiveShare','random','getOwnPropertySymbols','unsubscribe','univerjs-icon\x20univerjs-icon-','LiveShareSingle','path','LIVESHARE_OPERATION','set','2519415IaNtrE','none','React','operators','className','DesktopLiveShareController','_unitID','_sharedOperations','LIVESHARE_FETCH_OPERATIONS','Disposable','then','mutations','SetZoomRatioOperation','@univerjs/sheets','getOwnPropertyDescriptor','@univerjs/core','parse','_handleNewChangeSets','status$','params','_presenter','sessionStatus$','UniverInstanceType','OFFLINE','get','Module','find','substring','values','IDLE','operations','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','createElement','getInitialStates','IUniverInstanceService','subscribe','getUnitId','button','type','rxjs','data','470324BjHWaA','clear','_commandDisposable','pipe','Stop\x20presenting','OPERATION','defineProperty','stopPresenting','has','displayName','mask','UniverProCollaborationClient','SetWorksheetActiveOperation','LIVESHARE_TERMINATE','tryStartPresenting','_stopPresenting','UniverCore','svg','object','UniverSheets','colorChannel1','_handleOnline','hasOwnProperty','992757oClfMN','tag','IUIPartsService','SAME_OPERATION_SHARE_INTERVAL','function','react','idSuffix','override','replace','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','Button','_beIdle','LIVESHARE_REQUEST_HOST','UniverUi','UniverDesign','useDependency','IConfigService','takeUntil','add','UNIVER_LIVE_SHARE_PLUGIN','offline','CollaborationEvent','delete','send','complete','UniverSheetsUi','RxDisposable','sheet','getTypeOfUnitDisposed$','xlink:href','prototype','BuiltInUIPart','Injector'];_0xec05=function(){return _0x3ecbfc;};return _0xec05();}(function(_0x2bdba5,_0x1b77b4){var _0x31c250=_0x5522,_0x124dc4=_0x2bdba5();while(!![]){try{var _0x33e58e=parseInt(_0x31c250(0x1cd))/0x1+parseInt(_0x31c250(0x119))/0x2+-parseInt(_0x31c250(0x1e4))/0x3+-parseInt(_0x31c250(0x14c))/0x4+-parseInt(_0x31c250(0x1a4))/0x5+-parseInt(_0x31c250(0x158))/0x6*(-parseInt(_0x31c250(0x196))/0x7)+parseInt(_0x31c250(0x183))/0x8;if(_0x33e58e===_0x1b77b4)break;else _0x124dc4['push'](_0x124dc4['shift']());}catch(_0x4f623b){_0x124dc4['push'](_0x124dc4['shift']());}}}(_0xec05,0x51c01),function(_0x208026,_0x242146){var _0x4f5853=_0x5522;typeof exports==_0x4f5853(0x1df)&&typeof module<'u'?_0x242146(exports,require(_0x4f5853(0x164)),require('@univerjs/core'),require(_0x4f5853(0x1b1)),require('@univerjs/sheets-ui'),require(_0x4f5853(0x16a)),require(_0x4f5853(0x14b)),require(_0x4f5853(0x133)),require(_0x4f5853(0x1e9)),require('@univerjs-pro/collaboration'),require(_0x4f5853(0x1cb)),require(_0x4f5853(0x191))):typeof define==_0x4f5853(0x1e8)&&define[_0x4f5853(0x15b)]?define(['exports',_0x4f5853(0x164),_0x4f5853(0x1b3),'@univerjs/sheets','@univerjs/sheets-ui',_0x4f5853(0x16a),_0x4f5853(0x14b),_0x4f5853(0x133),_0x4f5853(0x1e9),'@univerjs-pro/collaboration',_0x4f5853(0x1cb),'rxjs/operators'],_0x242146):(_0x208026=typeof globalThis<'u'?globalThis:_0x208026||self,_0x242146(_0x208026[_0x4f5853(0x194)]={},_0x208026[_0x4f5853(0x1d8)],_0x208026[_0x4f5853(0x1dd)],_0x208026[_0x4f5853(0x1e0)],_0x208026[_0x4f5853(0x109)],_0x208026[_0x4f5853(0x1f1)],_0x208026[_0x4f5853(0x1a6)],_0x208026[_0x4f5853(0x1f2)],_0x208026['React'],_0x208026['UniverProCollaboration'],_0x208026[_0x4f5853(0x1cb)],_0x208026[_0x4f5853(0x1cb)][_0x4f5853(0x1a7)]));}(this,function(_0x12e219,_0x536f61,_0x598b3e,_0x219f43,_0x5d24ea,_0x57153a,_0x304ff8,_0x16b02c,_0x172e02,_0x4eafb2,_0x421976,_0x32e90b){'use strict';var _0x42ab61=_0x5522;var _0x358811=Object['defineProperty'],_0x2ae69c=(_0x5cf5ea,_0x22c7da,_0x361a06)=>_0x22c7da in _0x5cf5ea?_0x358811(_0x5cf5ea,_0x22c7da,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x361a06}):_0x5cf5ea[_0x22c7da]=_0x361a06,_0x3b2dfa=(_0x2128d5,_0x1a7fcf,_0x187f85)=>_0x2ae69c(_0x2128d5,typeof _0x1a7fcf!='symbol'?_0x1a7fcf+'':_0x1a7fcf,_0x187f85);const _0xbded63=_0x42ab61(0x146),_0x4c2c3f={};class _0x2b64dc extends _0x598b3e[_0x42ab61(0x1ad)]{constructor(){var _0xf993a2=_0x42ab61;super(...arguments),_0x3b2dfa(this,'_sharedOperations',new Set()),_0x3b2dfa(this,_0xf993a2(0x179),new Set());}[_0x42ab61(0x116)](_0x40ba13){var _0x430102=_0x42ab61;return this[_0x430102(0x1ab)][_0x430102(0x1f6)](_0x40ba13),_0x598b3e['toDisposable'](()=>this[_0x430102(0x1ab)]['delete'](_0x40ba13));}[_0x42ab61(0x18c)](_0x2a3ecb){var _0x5b62a6=_0x42ab61;return this[_0x5b62a6(0x179)][_0x5b62a6(0x1f6)](_0x2a3ecb),_0x598b3e[_0x5b62a6(0x15f)](()=>this[_0x5b62a6(0x179)][_0x5b62a6(0x106)](_0x2a3ecb));}[_0x42ab61(0x18f)](_0x194fda){var _0x2417a3=_0x42ab61;return this[_0x2417a3(0x1ab)][_0x2417a3(0x1d5)](_0x194fda);}['getInitialStates'](_0x579079){var _0x29559b=_0x42ab61;return Array[_0x29559b(0x17b)](this[_0x29559b(0x179)])[_0x29559b(0x193)](_0x2b8a50=>_0x2b8a50(_0x579079));}}var _0x40017f=Object[_0x42ab61(0x1b2)],_0x3815a8=(_0x4dec46,_0x4084e4,_0x2592e7,_0x211dd6)=>{var _0x2c50fb=_0x42ab61;for(var _0x1edf52=_0x211dd6>0x1?void 0x0:_0x211dd6?_0x40017f(_0x4084e4,_0x2592e7):_0x4084e4,_0x81d0a1=_0x4dec46[_0x2c50fb(0x184)]-0x1,_0x57e837;_0x81d0a1>=0x0;_0x81d0a1--)(_0x57e837=_0x4dec46[_0x81d0a1])&&(_0x1edf52=_0x57e837(_0x1edf52)||_0x1edf52);return _0x1edf52;},_0x3480d9=(_0x185487,_0x3dcf93)=>(_0x537ab3,_0x42752b)=>_0x3dcf93(_0x537ab3,_0x42752b,_0x185487);let _0x22f3a3=class extends _0x598b3e['Disposable']{constructor(_0xea4005){var _0x19e6a0=_0x42ab61;super(),this['_liveShareService']=_0xea4005,this[_0x19e6a0(0x18b)]();}[_0x42ab61(0x18b)](){var _0x12fc0c=_0x42ab61;[_0x5d24ea[_0x12fc0c(0x1b0)]['id'],_0x5d24ea['SetScrollOperation']['id'],_0x219f43[_0x12fc0c(0x1d9)]['id']][_0x12fc0c(0x16d)](_0x43bb14=>{var _0x37bcb2=_0x12fc0c;this[_0x37bcb2(0x152)](this['_liveShareService'][_0x37bcb2(0x116)](_0x43bb14));});}};_0x22f3a3=_0x3815a8([_0x3480d9(0x0,_0x598b3e[_0x42ab61(0x16f)](_0x2b64dc))],_0x22f3a3);var _0xeb7d39=function(){var _0x39e640=_0x42ab61;return _0xeb7d39=Object[_0x39e640(0x140)]||function(_0x36c40e){var _0x162f01=_0x39e640;for(var _0xd80f85,_0xc92760=0x1,_0x1ac729=arguments[_0x162f01(0x184)];_0xc92760<_0x1ac729;_0xc92760++){_0xd80f85=arguments[_0xc92760];for(var _0x41c0cd in _0xd80f85)Object['prototype'][_0x162f01(0x1e3)]['call'](_0xd80f85,_0x41c0cd)&&(_0x36c40e[_0x41c0cd]=_0xd80f85[_0x41c0cd]);}return _0x36c40e;},_0xeb7d39['apply'](this,arguments);},_0x57fd8b=function(_0x516f18,_0x276687){var _0x2b157a=_0x42ab61,_0x356398={};for(var _0x504e2d in _0x516f18)Object[_0x2b157a(0x10e)]['hasOwnProperty']['call'](_0x516f18,_0x504e2d)&&_0x276687[_0x2b157a(0x17e)](_0x504e2d)<0x0&&(_0x356398[_0x504e2d]=_0x516f18[_0x504e2d]);if(_0x516f18!=null&&typeof Object[_0x2b157a(0x19d)]=='function'){for(var _0x4f1a54=0x0,_0x504e2d=Object[_0x2b157a(0x19d)](_0x516f18);_0x4f1a54<_0x504e2d['length'];_0x4f1a54++)_0x276687[_0x2b157a(0x17e)](_0x504e2d[_0x4f1a54])<0x0&&Object[_0x2b157a(0x10e)]['propertyIsEnumerable']['call'](_0x516f18,_0x504e2d[_0x4f1a54])&&(_0x356398[_0x504e2d[_0x4f1a54]]=_0x516f18[_0x504e2d[_0x4f1a54]]);}return _0x356398;},_0x1953c8=_0x172e02[_0x42ab61(0x147)](function(_0x56de9e,_0x5c79a4){var _0x4878cd=_0x42ab61,_0x147ec3=_0x56de9e[_0x4878cd(0x143)],_0x1ce858=_0x56de9e['id'],_0x30137d=_0x56de9e[_0x4878cd(0x1a8)],_0x3d14a7=_0x56de9e['extend'],_0x4c1b95=_0x57fd8b(_0x56de9e,['icon','id',_0x4878cd(0x1a8),_0x4878cd(0x13e)]),_0x5c0b7b=_0x4878cd(0x19f)['concat'](_0x1ce858,'\x20')['concat'](_0x30137d||'')[_0x4878cd(0x172)](),_0x194565=_0x172e02[_0x4878cd(0x132)]('_'[_0x4878cd(0x11a)](_0x5699fe()));return _0x1f257d(_0x147ec3,''[_0x4878cd(0x11a)](_0x1ce858),{'defIds':_0x147ec3[_0x4878cd(0x131)],'idSuffix':_0x194565[_0x4878cd(0x16b)]},_0xeb7d39({'ref':_0x5c79a4,'className':_0x5c0b7b},_0x4c1b95),_0x3d14a7);});function _0x1f257d(_0x1a27b4,_0x33239e,_0xdda413,_0x59c7a1,_0x490b96){var _0x596f51=_0x42ab61;return _0x172e02[_0x596f51(0x1c4)](_0x1a27b4[_0x596f51(0x1e5)],_0xeb7d39(_0xeb7d39({'key':_0x33239e},_0x117b54(_0x1a27b4,_0xdda413,_0x490b96)),_0x59c7a1),(_0x36973e(_0x1a27b4,_0xdda413)[_0x596f51(0x149)]||[])[_0x596f51(0x193)](function(_0x7164f7,_0x333be6){var _0x5b4362=_0x596f51;return _0x1f257d(_0x7164f7,''[_0x5b4362(0x11a)](_0x33239e,'-')[_0x5b4362(0x11a)](_0x1a27b4[_0x5b4362(0x1e5)],'-')[_0x5b4362(0x11a)](_0x333be6),_0xdda413,void 0x0,_0x490b96);}));}function _0x117b54(_0x3a30a7,_0x3a2992,_0xf9bd97){var _0x38cd9f=_0x42ab61,_0x4d892f=_0xeb7d39({},_0x3a30a7[_0x38cd9f(0x142)]);_0xf9bd97!=null&&_0xf9bd97[_0x38cd9f(0x1e1)]&&_0x4d892f[_0x38cd9f(0x145)]===_0x38cd9f(0x1e1)&&(_0x4d892f[_0x38cd9f(0x145)]=_0xf9bd97[_0x38cd9f(0x1e1)]),_0x3a30a7['tag']===_0x38cd9f(0x1d7)&&_0x4d892f['id']&&(_0x4d892f['id']=_0x4d892f['id']+_0x3a2992['idSuffix']),Object[_0x38cd9f(0x144)](_0x4d892f)['forEach'](function(_0x4ee262){var _0x476d91=_0x38cd9f,_0x430a9b=_0x4ee262[0x0],_0x2c2bb7=_0x4ee262[0x1];_0x430a9b===_0x476d91(0x1d7)&&typeof _0x2c2bb7==_0x476d91(0x153)&&(_0x4d892f[_0x430a9b]=_0x2c2bb7[_0x476d91(0x1ec)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3a2992[_0x476d91(0x1ea)],')')));});var _0x594094=_0x3a2992[_0x38cd9f(0x131)];return!_0x594094||_0x594094['length']===0x0||(_0x3a30a7[_0x38cd9f(0x1e5)]===_0x38cd9f(0x141)&&_0x4d892f[_0x38cd9f(0x10d)]&&(_0x4d892f[_0x38cd9f(0x10d)]=_0x4d892f[_0x38cd9f(0x10d)]+_0x3a2992[_0x38cd9f(0x1ea)]),Object[_0x38cd9f(0x144)](_0x4d892f)[_0x38cd9f(0x16d)](function(_0x2750f5){var _0x1d2a1e=_0x38cd9f,_0x22fdeb=_0x2750f5[0x0],_0x2a23ba=_0x2750f5[0x1];typeof _0x2a23ba==_0x1d2a1e(0x153)&&(_0x4d892f[_0x22fdeb]=_0x2a23ba['replace'](/url\(#(.*)\)/,'url(#$1'[_0x1d2a1e(0x11a)](_0x3a2992[_0x1d2a1e(0x1ea)],')')));})),_0x4d892f;}function _0x36973e(_0x554abb,_0xe44927){var _0x5dcf93=_0x42ab61,_0x2de37c,_0x5397f2=_0xe44927[_0x5dcf93(0x131)];return!_0x5397f2||_0x5397f2[_0x5dcf93(0x184)]===0x0?_0x554abb:_0x554abb[_0x5dcf93(0x1e5)]===_0x5dcf93(0x154)&&(!((_0x2de37c=_0x554abb[_0x5dcf93(0x149)])===null||_0x2de37c===void 0x0)&&_0x2de37c[_0x5dcf93(0x184)])?_0xeb7d39(_0xeb7d39({},_0x554abb),{'children':_0x554abb[_0x5dcf93(0x149)][_0x5dcf93(0x193)](function(_0x2ed3a6){var _0x372aac=_0x5dcf93;return typeof _0x2ed3a6[_0x372aac(0x142)]['id']=='string'&&_0x5397f2&&_0x5397f2['indexOf'](_0x2ed3a6[_0x372aac(0x142)]['id'])>-0x1?_0xeb7d39(_0xeb7d39({},_0x2ed3a6),{'attrs':_0xeb7d39(_0xeb7d39({},_0x2ed3a6[_0x372aac(0x142)]),{'id':_0x2ed3a6[_0x372aac(0x142)]['id']+_0xe44927['idSuffix']})}):_0x2ed3a6;})}):_0x554abb;}function _0x5699fe(){var _0x3011ef=_0x42ab61;return Math[_0x3011ef(0x19c)]()['toString'](0x24)[_0x3011ef(0x1bf)](0x2,0x8);}_0x1953c8[_0x42ab61(0x1d6)]='UniverIcon';var _0xc5eff3={'tag':_0x42ab61(0x1de),'attrs':{'fill':_0x42ab61(0x1a5),'viewBox':_0x42ab61(0x15c),'width':_0x42ab61(0x163),'height':_0x42ab61(0x163)},'children':[{'tag':_0x42ab61(0x1a1),'attrs':{'fill':_0x42ab61(0x199),'d':_0x42ab61(0x1c3)}},{'tag':_0x42ab61(0x1a1),'attrs':{'fill':'currentColor','d':_0x42ab61(0x1ed),'fillRule':_0x42ab61(0x16e),'clipRule':_0x42ab61(0x16e)}}]},_0x4495a7=_0x172e02[_0x42ab61(0x147)](function(_0x22dfce,_0x2071de){var _0x1347e5=_0x42ab61;return _0x172e02[_0x1347e5(0x1c4)](_0x1953c8,Object[_0x1347e5(0x140)]({},_0x22dfce,{'id':_0x1347e5(0x181),'ref':_0x2071de,'icon':_0xc5eff3}));});_0x4495a7[_0x42ab61(0x1d6)]=_0x42ab61(0x1a0);var _0x290b4e=Object[_0x42ab61(0x1b2)],_0x5e5880=(_0x155928,_0x2b631e,_0x1ad659,_0x269ca7)=>{var _0x1a78ff=_0x42ab61;for(var _0x158dbc=_0x269ca7>0x1?void 0x0:_0x269ca7?_0x290b4e(_0x2b631e,_0x1ad659):_0x2b631e,_0x52405f=_0x155928[_0x1a78ff(0x184)]-0x1,_0x116500;_0x52405f>=0x0;_0x52405f--)(_0x116500=_0x155928[_0x52405f])&&(_0x158dbc=_0x116500(_0x158dbc)||_0x158dbc);return _0x158dbc;},_0x4017b2=(_0x64f642,_0x2a681c)=>(_0x4fb8bf,_0x45e0e5)=>_0x2a681c(_0x4fb8bf,_0x45e0e5,_0x64f642);_0x12e219[_0x42ab61(0x17a)]=class extends _0x598b3e[_0x42ab61(0x10a)]{constructor(_0x4f6ef6,_0x25c05a,_0x3bfbd3){var _0xf38fa9=_0x42ab61;super(),_0x3b2dfa(this,'_entities',new Map()),(this[_0xf38fa9(0x188)]=_0x4f6ef6,this[_0xf38fa9(0x161)]=_0x25c05a,this[_0xf38fa9(0x12b)]=_0x3bfbd3,this['_init']());}async[_0x42ab61(0x11f)](_0x7706eb){var _0x1dd563=_0x42ab61;return this[_0x1dd563(0x124)][_0x1dd563(0x1d5)](_0x7706eb)||await this['_startLiveShareCoordinator'](_0x7706eb),this[_0x1dd563(0x124)][_0x1dd563(0x1bc)](_0x7706eb);}[_0x42ab61(0x18b)](){var _0x3bbe37=_0x42ab61;this['_univerInstanceService'][_0x3bbe37(0x12a)](_0x598b3e[_0x3bbe37(0x1ba)][_0x3bbe37(0x118)])[_0x3bbe37(0x1d0)](_0x32e90b[_0x3bbe37(0x1f5)](this[_0x3bbe37(0x13d)]))[_0x3bbe37(0x1c7)](async _0x3472ec=>{var _0xa0f203=_0x3bbe37;const _0x596c46=_0x3472ec[_0xa0f203(0x1c8)]();this[_0xa0f203(0x124)][_0xa0f203(0x1d5)](_0x596c46)||this[_0xa0f203(0x157)](_0x596c46);}),this[_0x3bbe37(0x188)][_0x3bbe37(0x10c)](_0x598b3e[_0x3bbe37(0x1ba)]['UNIVER_SHEET'])['pipe'](_0x32e90b['takeUntil'](this[_0x3bbe37(0x13d)]))['subscribe'](_0x4c9f3f=>{var _0x4be304=_0x3bbe37;const _0x52969d=_0x4c9f3f['getUnitId'](),_0x2d14fb=this[_0x4be304(0x124)][_0x4be304(0x1bc)](_0x52969d);_0x2d14fb==null||_0x2d14fb['dispose']();});}async[_0x42ab61(0x157)](_0x441823){var _0x29a1b3=_0x42ab61;const _0x45693c=await this[_0x29a1b3(0x12b)][_0x29a1b3(0x117)](_0x441823),_0x2f857a=this[_0x29a1b3(0x161)][_0x29a1b3(0x115)](_0x12e219[_0x29a1b3(0x18a)],_0x441823,_0x45693c);return _0x2f857a[_0x29a1b3(0x198)](),this['_entities'][_0x29a1b3(0x1a3)](_0x441823,_0x2f857a),_0x2f857a;}},_0x12e219['LiveShareController']=_0x5e5880([_0x4017b2(0x0,_0x598b3e[_0x42ab61(0x1c6)]),_0x4017b2(0x1,_0x598b3e[_0x42ab61(0x16f)](_0x598b3e['Injector'])),_0x4017b2(0x2,_0x598b3e[_0x42ab61(0x16f)](_0x536f61[_0x42ab61(0x111)]))],_0x12e219['LiveShareController']);var _0x128b7f=(_0x306162=>(_0x306162[_0x42ab61(0x1bb)]=_0x42ab61(0x104),_0x306162[_0x42ab61(0x1c1)]='idle',_0x306162['FOLLOWING']=_0x42ab61(0x127),_0x306162[_0x42ab61(0x15a)]='not-following',_0x306162['PRESENTING']=_0x42ab61(0x175),_0x306162))(_0x128b7f||{});const _0x2cd416=_0x42ab61(0x1e7),_0x16e5bc=0xc8;_0x12e219[_0x42ab61(0x18a)]=class extends _0x598b3e[_0x42ab61(0x10a)]{constructor(_0x52749e,_0x6bc49f,_0x1c59cd,_0x27b71e,_0x12d6e9){var _0xffdf50=_0x42ab61;super(),_0x3b2dfa(this,_0xffdf50(0x148),new _0x421976['BehaviorSubject']('idle')),_0x3b2dfa(this,_0xffdf50(0x1b6),this['_status$']['asObservable']()),_0x3b2dfa(this,_0xffdf50(0x18b),!0x1),_0x3b2dfa(this,_0xffdf50(0x1cf),null),_0x3b2dfa(this,_0xffdf50(0x1b8),null),(this['_unitID']=_0x52749e,this[_0xffdf50(0x150)]=_0x6bc49f,this[_0xffdf50(0x185)]=_0x1c59cd,this[_0xffdf50(0x128)]=_0x27b71e,this[_0xffdf50(0x121)]=_0x12d6e9);}get[_0x42ab61(0x12f)](){var _0x31014b=_0x42ab61;return this[_0x31014b(0x148)]['getValue']();}[_0x42ab61(0x162)](){var _0x3421f4=_0x42ab61,_0x3af9c9;(_0x3af9c9=this[_0x3421f4(0x1cf)])==null||_0x3af9c9[_0x3421f4(0x162)](),this[_0x3421f4(0x148)][_0x3421f4(0x17d)](_0x3421f4(0x14d)),this['_status$'][_0x3421f4(0x108)]();}[_0x42ab61(0x198)](){var _0x1500d0=_0x42ab61;this['_init']||(this['_init']=!0x0,this[_0x1500d0(0x150)][_0x1500d0(0x1b9)]['pipe'](_0x32e90b[_0x1500d0(0x1f5)](this['dispose$']))[_0x1500d0(0x1c7)](_0x6ec489=>{var _0xb67c2b=_0x1500d0;switch(_0x6ec489){case _0x536f61[_0xb67c2b(0x137)][_0xb67c2b(0x1bb)]:this[_0xb67c2b(0x168)]();break;case _0x536f61[_0xb67c2b(0x137)]['ONLINE']:this[_0xb67c2b(0x1e2)]();break;}}),this[_0x1500d0(0x150)]['event$']['pipe'](_0x32e90b['takeUntil'](this[_0x1500d0(0x13d)]))[_0x1500d0(0x1c7)](_0x232b85=>{var _0x5056c6=_0x1500d0;const {eventID:_0x193f38}=_0x232b85;switch(_0x193f38){case _0x4eafb2[_0x5056c6(0x105)][_0x5056c6(0x11c)]:this[_0x5056c6(0x177)](_0x232b85);break;case _0x4eafb2[_0x5056c6(0x105)][_0x5056c6(0x1a2)]:this['_handleOperation'](_0x232b85);break;case _0x4eafb2[_0x5056c6(0x105)][_0x5056c6(0x1da)]:this[_0x5056c6(0x15d)]();break;case _0x4eafb2[_0x5056c6(0x105)][_0x5056c6(0x166)]:this[_0x5056c6(0x1b5)](_0x232b85);break;}}));}[_0x42ab61(0x1db)](){var _0x48851e=_0x42ab61;this[_0x48851e(0x150)][_0x48851e(0x107)]({'eventID':_0x4eafb2[_0x48851e(0x105)][_0x48851e(0x1f0)],'data':{'unitID':this[_0x48851e(0x1aa)],'userID':this[_0x48851e(0x150)][_0x48851e(0x15e)]()}},this[_0x48851e(0x1aa)]);}['stopPresenting'](){var _0x5b0c42=_0x42ab61;this[_0x5b0c42(0x12f)]===_0x5b0c42(0x175)&&(this[_0x5b0c42(0x148)][_0x5b0c42(0x17d)](_0x5b0c42(0x14d)),this[_0x5b0c42(0x150)]['send']({'eventID':_0x4eafb2[_0x5b0c42(0x105)][_0x5b0c42(0x1da)],'data':{'unitID':this[_0x5b0c42(0x1aa)]}},this['_unitID']));}[_0x42ab61(0x174)](){var _0xe2513b=_0x42ab61;this[_0xe2513b(0x12f)]===_0xe2513b(0x187)&&(this[_0xe2513b(0x148)][_0xe2513b(0x17d)]('following'),this[_0xe2513b(0x182)]());}[_0x42ab61(0x171)](){var _0x8e0adf=_0x42ab61;this['_status']===_0x8e0adf(0x127)&&this[_0x8e0adf(0x129)]();}['_handleNewHost'](_0x1b673c){var _0x2e49a0=_0x42ab61;const {presenter:_0xb8aec5}=_0x1b673c[_0x2e49a0(0x1cc)],_0x29915a=this[_0x2e49a0(0x150)][_0x2e49a0(0x15e)]();this['_presenter']=_0xb8aec5,_0xb8aec5===_0x29915a?(this[_0x2e49a0(0x129)](),this['_startPresenting']()):this[_0x2e49a0(0x12f)]!==_0x2e49a0(0x187)&&(this[_0x2e49a0(0x1dc)](),this[_0x2e49a0(0x182)]());}[_0x42ab61(0x151)](){var _0x4a2553=_0x42ab61;const _0x16a14f={'eventID':_0x4eafb2[_0x4a2553(0x105)][_0x4a2553(0x1ac)]};this[_0x4a2553(0x150)][_0x4a2553(0x107)](_0x16a14f,this['_unitID']);}[_0x42ab61(0x15d)](){var _0x2004ee=_0x42ab61;this[_0x2004ee(0x1b8)]=null,this['_status']!==_0x2004ee(0x175)&&this['_beIdle']();}[_0x42ab61(0x1b5)](_0x3e9742){var _0x1af6aa=_0x42ab61;if(this['_status']==='following'&&this['_presenter']===_0x3e9742[_0x1af6aa(0x1cc)][_0x1af6aa(0x17c)]){const _0xeb8477=_0x4eafb2[_0x1af6aa(0x14f)](_0x3e9742[_0x1af6aa(0x1cc)])[_0x1af6aa(0x1af)][_0x1af6aa(0x13a)]()[_0x1af6aa(0x1be)](_0x2f95c3=>_0x2f95c3['id']===_0x219f43[_0x1af6aa(0x135)]['id']);if(_0xeb8477){const _0x594a5d=_0xeb8477[_0x1af6aa(0x1b7)][_0x1af6aa(0x186)],_0x8805e2=_0xeb8477['params'][_0x1af6aa(0x10b)]['id'];setTimeout(()=>{var _0x5990ba=_0x1af6aa;this[_0x5990ba(0x121)][_0x5990ba(0x19a)](_0x219f43['SetWorksheetActiveOperation']['id'],{'unitId':_0x594a5d,'subUnitId':_0x8805e2},{'fromCollab':!0x0});});}}}[_0x42ab61(0x139)](){var _0x21b8e3=_0x42ab61;this['_status$'][_0x21b8e3(0x17d)](_0x21b8e3(0x175));const _0xd643d=new Map(),_0x465f8c=this[_0x21b8e3(0x1cf)]=new _0x598b3e['DisposableCollection']();_0x465f8c[_0x21b8e3(0x1f6)](_0x598b3e['toDisposable'](()=>{var _0x30d64b=_0x21b8e3;_0xd643d['forEach'](_0x48bfab=>_0x48bfab['complete']()),_0xd643d[_0x30d64b(0x1ce)]();})),_0x465f8c['add'](this['_commandService'][_0x21b8e3(0x197)](_0x5d4b32=>{var _0x204931=_0x21b8e3,_0x2b12e0;if(_0x5d4b32[_0x204931(0x1ca)]!==_0x598b3e[_0x204931(0x169)][_0x204931(0x1d2)]||!this['_liveShareService'][_0x204931(0x18f)](_0x5d4b32['id']))return;const {id:_0x3629db}=_0x5d4b32;let _0x3e1fab;_0xd643d[_0x204931(0x1d5)](_0x3629db)?_0x3e1fab=_0xd643d['get'](_0x3629db):(_0x3e1fab=new _0x421976['Subject'](),_0xd643d['set'](_0x3629db,_0x3e1fab),_0x3e1fab[_0x204931(0x1d0)](_0x32e90b[_0x204931(0x165)]((_0x2b12e0=this[_0x204931(0x185)][_0x204931(0x176)](_0x2cd416))!=null?_0x2b12e0:_0x16e5bc,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x204931(0x1c7)](_0x29a28b=>{var _0x3c7f1c=_0x204931;this['_collabSession'][_0x3c7f1c(0x107)]({'eventID':_0x4eafb2[_0x3c7f1c(0x105)][_0x3c7f1c(0x1a2)],'data':{'unitID':this['_unitID'],'operations':{[_0x29a28b['id']]:{'id':_0x29a28b['id'],'params':JSON['stringify'](_0x29a28b['params'])}}}},this[_0x3c7f1c(0x1aa)]);})),_0x3e1fab[_0x204931(0x17d)](_0x5d4b32);})),this[_0x21b8e3(0x128)][_0x21b8e3(0x1c5)](this['_unitID'])['forEach'](_0xdcaba3=>this[_0x21b8e3(0x150)][_0x21b8e3(0x107)]({'eventID':_0x4eafb2[_0x21b8e3(0x105)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x21b8e3(0x1aa)],'operations':{[_0xdcaba3['id']]:{'id':_0xdcaba3['id'],'params':JSON[_0x21b8e3(0x156)](_0xdcaba3[_0x21b8e3(0x1b7)])}}}},this['_unitID']));}[_0x42ab61(0x1dc)](){var _0x1d6874=_0x42ab61,_0x4152b9;this[_0x1d6874(0x148)][_0x1d6874(0x17d)](_0x1d6874(0x14d)),(_0x4152b9=this[_0x1d6874(0x1cf)])==null||_0x4152b9['dispose'](),this[_0x1d6874(0x1cf)]=null;}[_0x42ab61(0x182)](){var _0x111791=_0x42ab61,_0x241595;(_0x241595=this['_commandDisposable'])==null||_0x241595['dispose'](),this[_0x111791(0x148)][_0x111791(0x17d)](_0x111791(0x127));}[_0x42ab61(0x1ef)](){var _0x44f7fb=_0x42ab61,_0x316828;this[_0x44f7fb(0x148)][_0x44f7fb(0x17d)](_0x44f7fb(0x14d)),(_0x316828=this[_0x44f7fb(0x1cf)])==null||_0x316828['dispose'](),this[_0x44f7fb(0x1cf)]=null;}['_stopFollowing'](){var _0x4b96ca=_0x42ab61,_0x12d255;this['_status$'][_0x4b96ca(0x17d)]('not-following'),(_0x12d255=this[_0x4b96ca(0x1cf)])==null||_0x12d255[_0x4b96ca(0x162)]();}[_0x42ab61(0x18d)](_0x4f26ee){var _0x409f7a=_0x42ab61;if([_0x409f7a(0x175),_0x409f7a(0x187),_0x409f7a(0x104)]['includes'](this[_0x409f7a(0x12f)])||!_0x4f26ee[_0x409f7a(0x1cc)]['presenter']||_0x4f26ee[_0x409f7a(0x1cc)]['presenter']===this[_0x409f7a(0x150)][_0x409f7a(0x15e)]())return;this[_0x409f7a(0x12f)]===_0x409f7a(0x14d)&&this[_0x409f7a(0x182)]();const _0x1f9e15=_0x4f26ee[_0x409f7a(0x1cc)][_0x409f7a(0x1c2)];Object[_0x409f7a(0x1c0)](_0x1f9e15)[_0x409f7a(0x16d)](_0x28bad2=>{var _0x48be41=_0x409f7a;this[_0x48be41(0x121)][_0x48be41(0x19a)](_0x28bad2['id'],_0x28bad2[_0x48be41(0x1b7)]?JSON[_0x48be41(0x1b4)](_0x28bad2[_0x48be41(0x1b7)]):null,{'fromCollab':!0x0});});}[_0x42ab61(0x168)](){var _0x2df6ea=_0x42ab61,_0x1db788;this[_0x2df6ea(0x148)][_0x2df6ea(0x17d)]('offline'),(_0x1db788=this[_0x2df6ea(0x1cf)])==null||_0x1db788['dispose']();}[_0x42ab61(0x1e2)](){var _0x4f1638=_0x42ab61;this[_0x4f1638(0x148)]['next'](_0x4f1638(0x14d)),this[_0x4f1638(0x151)]();}},_0x12e219['LiveShareCoordinator']=_0x5e5880([_0x4017b2(0x2,_0x598b3e[_0x42ab61(0x1f4)]),_0x4017b2(0x3,_0x598b3e[_0x42ab61(0x16f)](_0x2b64dc)),_0x4017b2(0x4,_0x598b3e[_0x42ab61(0x11d)])],_0x12e219[_0x42ab61(0x18a)]);function _0x37db21(){var _0x2f618e=_0x42ab61;const _0x2afb48=_0x57153a[_0x2f618e(0x1f3)](_0x12e219['LiveShareController']),_0x53b74b=_0x57153a[_0x2f618e(0x1f3)](_0x598b3e['IUniverInstanceService']),_0x45d1f6=_0x57153a['useObservable'](()=>_0x53b74b[_0x2f618e(0x16c)](_0x598b3e[_0x2f618e(0x1ba)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5151b8,_0x522528]=_0x172e02['useState'](null),[_0x1ce943,_0x409473]=_0x172e02[_0x2f618e(0x189)](_0x128b7f[_0x2f618e(0x1c1)]),_0x5273af=_0x172e02[_0x2f618e(0x132)](null);return _0x172e02['useEffect'](()=>(_0x45d1f6&&_0x2afb48[_0x2f618e(0x11f)](_0x45d1f6['getUnitId']())[_0x2f618e(0x1ae)](_0x5d9e61=>{var _0x61e4a1=_0x2f618e;_0x522528(_0x5d9e61),_0x5273af[_0x61e4a1(0x16b)]=_0x5d9e61[_0x61e4a1(0x1b6)][_0x61e4a1(0x1c7)](_0x34ed7c=>{_0x409473(_0x34ed7c);});}),()=>{var _0x17c0bf=_0x2f618e,_0xf8f0c7;(_0xf8f0c7=_0x5273af[_0x17c0bf(0x16b)])==null||_0xf8f0c7[_0x17c0bf(0x19e)](),_0x5273af['current']=null;}),[_0x45d1f6,_0x2afb48]),_0x5151b8?_0x304ff8[_0x2f618e(0x130)](_0x16b02c[_0x2f618e(0x114)],{'align':'end','disabled':_0x1ce943===_0x128b7f['OFFLINE'],'className':_0x2f618e(0x180),'overlay':_0x304ff8[_0x2f618e(0x130)](_0x352bd0,{'status':_0x1ce943,'coordinator':_0x5151b8}),'children':_0x304ff8[_0x2f618e(0x130)](_0x2f618e(0x1c9),{'className':_0x16b02c[_0x2f618e(0x178)]('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x1ce943===_0x128b7f[_0x2f618e(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1ce943!==_0x128b7f['OFFLINE']}),'type':_0x2f618e(0x1c9),'children':_0x304ff8[_0x2f618e(0x130)](_0x4495a7,{'className':_0x2f618e(0x11e)})})}):null;}function _0x352bd0(_0x1eb99e){var _0x4eaae5=_0x42ab61;const {status:_0x2ec02c,coordinator:_0x33c644}=_0x1eb99e;switch(_0x2ec02c){case _0x128b7f[_0x4eaae5(0x1c1)]:return _0x304ff8[_0x4eaae5(0x130)](_0x5d0933,{'coordinator':_0x33c644});case _0x128b7f[_0x4eaae5(0x136)]:return _0x304ff8[_0x4eaae5(0x130)](_0x6d6984,{'coordinator':_0x33c644});case _0x128b7f[_0x4eaae5(0x15a)]:return _0x304ff8[_0x4eaae5(0x130)](_0x570939,{'coordinator':_0x33c644});case _0x128b7f[_0x4eaae5(0x1bb)]:return _0x304ff8[_0x4eaae5(0x130)](_0x1df83f,{});case _0x128b7f[_0x4eaae5(0x173)]:return _0x304ff8[_0x4eaae5(0x130)](_0x5bdd60,{'coordinator':_0x33c644});default:return null;}}function _0x5d0933(_0x544045){var _0x30a92c=_0x42ab61;const {coordinator:_0x2921d9}=_0x544045;return _0x304ff8[_0x30a92c(0x160)](_0x304ff8[_0x30a92c(0x13b)],{'children':[_0x304ff8[_0x30a92c(0x130)](_0x30a92c(0x112),{'className':_0x30a92c(0x192),'children':_0x30a92c(0x14e)}),_0x304ff8[_0x30a92c(0x130)](_0x16b02c['Button'],{'onClick':()=>_0x2921d9[_0x30a92c(0x1db)](),'children':_0x30a92c(0x12c)})]});}function _0x6d6984(_0x54ab6a){var _0x50b2bb=_0x42ab61;const {coordinator:_0x1e82ed}=_0x54ab6a;return _0x304ff8[_0x50b2bb(0x160)](_0x304ff8['Fragment'],{'children':[_0x304ff8[_0x50b2bb(0x130)](_0x50b2bb(0x112),{'className':_0x50b2bb(0x192),'children':_0x50b2bb(0x138)}),_0x304ff8['jsx'](_0x16b02c[_0x50b2bb(0x1ee)],{'onClick':()=>_0x1e82ed[_0x50b2bb(0x171)](),'children':_0x50b2bb(0x126)})]});}function _0x570939(_0x30c953){var _0xa6e353=_0x42ab61;const {coordinator:_0x5d73b8}=_0x30c953;return _0x304ff8[_0xa6e353(0x160)](_0x304ff8[_0xa6e353(0x13b)],{'children':[_0x304ff8[_0xa6e353(0x130)]('div',{'className':_0xa6e353(0x192),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x304ff8[_0xa6e353(0x130)](_0x16b02c[_0xa6e353(0x1ee)],{'variant':'text','onClick':()=>_0x5d73b8[_0xa6e353(0x174)](),'children':'Start\x20following'})]});}function _0x5bdd60(_0x11e2c1){var _0x30f6c3=_0x42ab61;const {coordinator:_0x4b3e78}=_0x11e2c1;return _0x304ff8[_0x30f6c3(0x160)](_0x304ff8[_0x30f6c3(0x13b)],{'children':[_0x304ff8['jsx'](_0x30f6c3(0x112),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x304ff8[_0x30f6c3(0x130)](_0x16b02c[_0x30f6c3(0x1ee)],{'variant':_0x30f6c3(0x120),'onClick':()=>_0x4b3e78[_0x30f6c3(0x1d4)](),'children':_0x30f6c3(0x1d1)})]});}function _0x1df83f(){var _0x417775=_0x42ab61;return _0x304ff8[_0x417775(0x130)](_0x304ff8[_0x417775(0x13b)],{'children':_0x417775(0x17f)});}var _0x5eb2d4=Object[_0x42ab61(0x1b2)],_0x5a5d0c=(_0x1596df,_0x57a8e7,_0x57be69,_0x1f2026)=>{var _0x5994ba=_0x42ab61;for(var _0x469730=_0x1f2026>0x1?void 0x0:_0x1f2026?_0x5eb2d4(_0x57a8e7,_0x57be69):_0x57a8e7,_0x1226ab=_0x1596df[_0x5994ba(0x184)]-0x1,_0x5e28b8;_0x1226ab>=0x0;_0x1226ab--)(_0x5e28b8=_0x1596df[_0x1226ab])&&(_0x469730=_0x5e28b8(_0x469730)||_0x469730);return _0x469730;},_0x3606df=(_0x27f29c,_0x1b30a2)=>(_0x4140df,_0x17e87d)=>_0x1b30a2(_0x4140df,_0x17e87d,_0x27f29c);_0x12e219[_0x42ab61(0x1a9)]=class extends _0x598b3e[_0x42ab61(0x1ad)]{constructor(_0x5a4fed,_0x4dee23){var _0x24d513=_0x42ab61;super(),this[_0x24d513(0x161)]=_0x5a4fed,this[_0x24d513(0x134)]=_0x4dee23,this[_0x24d513(0x195)]();}[_0x42ab61(0x195)](){var _0x3dbdd9=_0x42ab61;this[_0x3dbdd9(0x152)](this[_0x3dbdd9(0x134)]['registerComponent'](_0x57153a[_0x3dbdd9(0x10f)][_0x3dbdd9(0x14a)],()=>_0x57153a[_0x3dbdd9(0x190)](_0x37db21,this[_0x3dbdd9(0x161)])));}},_0x12e219[_0x42ab61(0x1a9)]=_0x5a5d0c([_0x3606df(0x0,_0x598b3e[_0x42ab61(0x16f)](_0x598b3e[_0x42ab61(0x110)])),_0x3606df(0x1,_0x57153a[_0x42ab61(0x1e6)])],_0x12e219['DesktopLiveShareController']);var _0x4cfc98=Object['defineProperty'],_0x17c2a3=Object[_0x42ab61(0x1b2)],_0x17eff3=(_0x96b030,_0x3bca64,_0x3fb7b4)=>_0x3bca64 in _0x96b030?_0x4cfc98(_0x96b030,_0x3bca64,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fb7b4}):_0x96b030[_0x3bca64]=_0x3fb7b4,_0x465343=(_0x13191e,_0x7611fa,_0x506d02,_0x5bd4da)=>{for(var _0x4b6295=_0x5bd4da>0x1?void 0x0:_0x5bd4da?_0x17c2a3(_0x7611fa,_0x506d02):_0x7611fa,_0x4bba63=_0x13191e['length']-0x1,_0x800288;_0x4bba63>=0x0;_0x4bba63--)(_0x800288=_0x13191e[_0x4bba63])&&(_0x4b6295=_0x800288(_0x4b6295)||_0x4b6295);return _0x4b6295;},_0x3f2c6d=(_0x2ebf1c,_0x226f1f)=>(_0x12278d,_0x4dba84)=>_0x226f1f(_0x12278d,_0x4dba84,_0x2ebf1c),_0x42d14a=(_0xf40cd6,_0x27ce8d,_0x2d2007)=>_0x17eff3(_0xf40cd6,typeof _0x27ce8d!=_0x42ab61(0x12e)?_0x27ce8d+'':_0x27ce8d,_0x2d2007);const _0x2b273b=_0x42ab61(0x103);_0x12e219[_0x42ab61(0x159)]=class extends _0x598b3e[_0x42ab61(0x155)]{constructor(_0xfa65=_0x4c2c3f,_0x25df52,_0x47471a){var _0x836804=_0x42ab61;super(),this['_config']=_0xfa65,this[_0x836804(0x161)]=_0x25df52,this['_configService']=_0x47471a;const {..._0x3a98b6}=_0x598b3e[_0x836804(0x18e)]({},_0x4c2c3f,this['_config']);this['_configService']['setConfig'](_0xbded63,_0x3a98b6);}[_0x42ab61(0x122)](){var _0x263254=_0x42ab61;_0x598b3e[_0x263254(0x13f)](this['_injector'],_0x598b3e[_0x263254(0x167)]([[_0x2b64dc],[_0x12e219[_0x263254(0x17a)]],[_0x22f3a3],[_0x12e219[_0x263254(0x1a9)]]],this[_0x263254(0x113)][_0x263254(0x1eb)])),_0x598b3e[_0x263254(0x11b)](this[_0x263254(0x161)],[[_0x22f3a3]]);}['onRendered'](){var _0x1b8cc5=_0x42ab61;_0x598b3e[_0x1b8cc5(0x11b)](this[_0x1b8cc5(0x161)],[[_0x12e219[_0x1b8cc5(0x1a9)]]]);}},_0x42d14a(_0x12e219[_0x42ab61(0x159)],_0x42ab61(0x1ca),_0x598b3e[_0x42ab61(0x1ba)][_0x42ab61(0x123)]),_0x42d14a(_0x12e219[_0x42ab61(0x159)],'pluginName',_0x2b273b),_0x12e219[_0x42ab61(0x159)]=_0x465343([_0x598b3e[_0x42ab61(0x170)](_0x536f61['UniverCollaborationClientPlugin']),_0x3f2c6d(0x1,_0x598b3e[_0x42ab61(0x16f)](_0x598b3e[_0x42ab61(0x110)])),_0x3f2c6d(0x2,_0x598b3e[_0x42ab61(0x1f4)])],_0x12e219[_0x42ab61(0x159)]),_0x12e219[_0x42ab61(0x19b)]=_0x37db21,_0x12e219[_0x42ab61(0x125)]=_0x2b64dc,_0x12e219[_0x42ab61(0x13c)]=_0x128b7f,Object[_0x42ab61(0x1d3)](_0x12e219,Symbol[_0x42ab61(0x12d)],{'value':_0x42ab61(0x1bd)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.7.0-nightly.
|
|
3
|
+
"version": "0.7.0-nightly.202505231607",
|
|
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.3.24",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.7.0-nightly.
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/ui": "0.7.0-nightly.
|
|
50
|
+
"@univerjs-pro/collaboration": "0.7.0-nightly.202505231607",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.7.0-nightly.202505231607",
|
|
52
|
+
"@univerjs/core": "0.7.0-nightly.202505231607",
|
|
53
|
+
"@univerjs/sheets": "0.7.0-nightly.202505231607",
|
|
54
|
+
"@univerjs/design": "0.7.0-nightly.202505231607",
|
|
55
|
+
"@univerjs/ui": "0.7.0-nightly.202505231607",
|
|
56
|
+
"@univerjs/sheets-ui": "0.7.0-nightly.202505231607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.3",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"tailwindcss": "^3.4.17",
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
|
-
"vitest": "^3.1.
|
|
65
|
+
"vitest": "^3.1.4",
|
|
66
66
|
"@univerjs-infra/shared": "0.7.0",
|
|
67
67
|
"@univerjs/protocol": "0.1.46-alpha.3"
|
|
68
68
|
},
|