@univerjs-pro/live-share 0.8.3 → 0.9.1-nightly.202507041607

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x2d6643=_0x5e15;(function(_0xa8cc45,_0x5bd30c){var _0x267cfe=_0x5e15,_0x15bffd=_0xa8cc45();while(!![]){try{var _0x4e849f=parseInt(_0x267cfe(0x244))/0x1+-parseInt(_0x267cfe(0x246))/0x2+-parseInt(_0x267cfe(0x1af))/0x3*(parseInt(_0x267cfe(0x24b))/0x4)+-parseInt(_0x267cfe(0x22c))/0x5*(-parseInt(_0x267cfe(0x243))/0x6)+parseInt(_0x267cfe(0x256))/0x7*(parseInt(_0x267cfe(0x1ab))/0x8)+parseInt(_0x267cfe(0x212))/0x9*(parseInt(_0x267cfe(0x19f))/0xa)+-parseInt(_0x267cfe(0x1b7))/0xb*(-parseInt(_0x267cfe(0x249))/0xc);if(_0x4e849f===_0x5bd30c)break;else _0x15bffd['push'](_0x15bffd['shift']());}catch(_0xa024bb){_0x15bffd['push'](_0x15bffd['shift']());}}}(_0x1946,0xf37da));function _0x1946(){var _0x3b694b=['Inject','sheet','getInitialStates','pluginName','_configService','OFFLINE','tag','_reporters','Injector','tryStartPresenting','SAME_OPERATION_SHARE_INTERVAL','useObservable','setConfig','_status','presenting','useEffect','registerDependencies','length','_commandService','fill','_startLiveShareCoordinator','_handleNewChangeSets','_beIdle','_handleOnline','getUnitId','_liveShareService','20mSzboh','_startFollowing','_collabSession','jsx','IUIPartsService','registerInitialStateReporter','BehaviorSubject','url(#$1','useRef','default','SetZoomRatioOperation','jsxs','558088qVbwQV','indexOf','none','LIVESHARE_NEW_HOST','121731KffDyC','override','_startPresenting','DisposableCollection','map','_stopPresenting','IDLE','symbol','11hJDHcx','_status$','HEADER_MENU','idle','includes','FOLLOWING','_presenter','useDependency','div','apply','get','prototype','stopPresenting','http://www.w3.org/2000/svg','touchDependencies','live-share.config','merge','UniverInstanceType','disposeWithMe','rxjs/operators','toDisposable','executeCommand','entries','UNIVER_SHEET','NOT_FOLLOWING','currentColor','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','event$','values','getMemberID','_collabSessionService','defIds','connectInjector','UNIVER_UNKNOWN','status$','getOwnPropertySymbols','parseProtocolChangeset','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','useState','asObservable','not-following','DesktopLiveShareController','onStarting','@univerjs/design','colorChannel1','mask','dispose','CommandType','_mountLiveShare','You\x27re\x20not\x20following\x20the\x20presenter','getCurrentTypeOfUnit$','data','add','idSuffix','subscribe','LiveShareStatus','_handleOffline','_handleTerminate','complete','IUniverInstanceService','substring','univer-size-4','evenodd','Module','parse','You\x27are\x20offline.','Present\x20this\x20document','params','CollaborationEvent','ONLINE','LIVESHARE_OPERATION','@univerjs/sheets','LiveShareIcon','LIVESHARE_TERMINATE','Button','takeUntil','_config','send','icon','UniverCollaborationClientPlugin','Dropdown','call','LiveShare','Plugin','startFollowing','forEach','@univerjs/sheets-ui','InsertSheetMutation','@univerjs-pro/collaboration','unsubscribe','7971993aopCOL','LiveShareController','ICommandService','children','Disposable','random','pipe','toStringTag','IConfigService','hasOwnProperty','createInstance','Stop\x20presenting','createElement','SessionStatus','has','init','next','SetWorksheetActiveOperation','following','_handleOperation','defs','_uiPartsService','concat','registerSharedOperation','UNIVER_LIVE_SHARE_PLUGIN','1em','6066945yrvqQx','@univerjs-pro/collaboration-client','replace','_fetchOperations','xlink:href','LIVESHARE_FETCH_OPERATIONS','attrs','SetScrollOperation','getTypeOfUnitDisposed$','DependentOn','offline','live-share-icon','sessionStatus$','requireSession','_unitID','PRESENTING','_univerInstanceService','displayName','throttleTime','defineProperty','assign','onRendered','_sharedOperations','6uBodfK','1364763xWVXlv','button','3567010IkfNoE','from','presenter','1274244vyBGqZ','getLiveShareCoordinator','172pOwYQz','set','getValue','LiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','You\x27re\x20presenting\x20the\x20document','_injector','_init','stopFollowing','current','delete','7yLAIoG','stringify','_stopFollowing','UniverLiveSharePlugin','react','text','getOwnPropertyDescriptor','mergeOverrideWithDependencies','reverse','univer-mb-3\x20univer-w-full\x20univer-text-sm','_entities','OPERATION','clear','memberID','_handleNewHost','rxjs','univerjs-icon\x20univerjs-icon-','forwardRef','type','0\x200\x2017\x2017','dispose$','Fragment','string'];_0x1946=function(){return _0x3b694b;};return _0x1946();}var U=Object[_0x2d6643(0x23f)],F=(_0x5f538b,_0x47fb6c,_0x3a1712)=>_0x47fb6c in _0x5f538b?U(_0x5f538b,_0x47fb6c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a1712}):_0x5f538b[_0x47fb6c]=_0x3a1712,v=(_0x23928a,_0x2b9a3b,_0x20079c)=>F(_0x23928a,typeof _0x2b9a3b!='symbol'?_0x2b9a3b+'':_0x2b9a3b,_0x20079c);Object[_0x2d6643(0x23f)](exports,Symbol[_0x2d6643(0x219)],{'value':_0x2d6643(0x1f7)});const m=require(_0x2d6643(0x22d)),o=require('@univerjs/core'),C=require(_0x2d6643(0x1ff)),w=require(_0x2d6643(0x20e)),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require(_0x2d6643(0x1e3)),f=require(_0x2d6643(0x25a)),_=require(_0x2d6643(0x210)),D=require(_0x2d6643(0x265)),b=require(_0x2d6643(0x1ca)),$=_0x2d6643(0x1c6),x={};class O extends o[_0x2d6643(0x216)]{constructor(){var _0x4df562=_0x2d6643;super(...arguments),v(this,_0x4df562(0x242),new Set()),v(this,_0x4df562(0x274),new Set());}[_0x2d6643(0x229)](_0x49e912){var _0x24aec8=_0x2d6643;return this[_0x24aec8(0x242)]['add'](_0x49e912),o[_0x24aec8(0x1cb)](()=>this[_0x24aec8(0x242)][_0x24aec8(0x255)](_0x49e912));}[_0x2d6643(0x1a4)](_0x17909f){var _0x2a0444=_0x2d6643;return this['_reporters'][_0x2a0444(0x1ec)](_0x17909f),o[_0x2a0444(0x1cb)](()=>this[_0x2a0444(0x274)]['delete'](_0x17909f));}['shouldShareOperation'](_0x118b71){var _0x47d6cf=_0x2d6643;return this[_0x47d6cf(0x242)][_0x47d6cf(0x220)](_0x118b71);}[_0x2d6643(0x26f)](_0x2fa09b){var _0x34c865=_0x2d6643;return Array[_0x34c865(0x247)](this[_0x34c865(0x274)])[_0x34c865(0x1b3)](_0x16ed13=>_0x16ed13(_0x2fa09b));}}var H=Object[_0x2d6643(0x25c)],V=(_0x17efa7,_0x53a89f,_0x5ee570,_0x48661e)=>{var _0x4444b1=_0x2d6643;for(var _0x395675=_0x48661e>0x1?void 0x0:_0x48661e?H(_0x53a89f,_0x5ee570):_0x53a89f,_0x3f9da0=_0x17efa7[_0x4444b1(0x196)]-0x1,_0x3bd493;_0x3f9da0>=0x0;_0x3f9da0--)(_0x3bd493=_0x17efa7[_0x3f9da0])&&(_0x395675=_0x3bd493(_0x395675)||_0x395675);return _0x395675;},k=(_0x448b1c,_0x389094)=>(_0x1231b8,_0x47ab1c)=>_0x389094(_0x1231b8,_0x47ab1c,_0x448b1c);let E=class extends o['Disposable']{constructor(_0x3c81c){var _0x4e8489=_0x2d6643;super(),this[_0x4e8489(0x19e)]=_0x3c81c,this[_0x4e8489(0x252)]();}['_init'](){var _0x116e67=_0x2d6643;[w[_0x116e67(0x1a9)]['id'],w[_0x116e67(0x233)]['id'],C[_0x116e67(0x223)]['id']][_0x116e67(0x20d)](_0x1b6870=>{var _0x417911=_0x116e67;this[_0x417911(0x1c9)](this[_0x417911(0x19e)][_0x417911(0x229)](_0x1b6870));});}};E=V([k(0x0,o[_0x2d6643(0x26d)](O))],E);var u=function(){var _0x3f8654=_0x2d6643;return u=Object[_0x3f8654(0x240)]||function(_0x511796){var _0x197fe8=_0x3f8654;for(var _0x376b78,_0x2c6335=0x1,_0x28fe03=arguments[_0x197fe8(0x196)];_0x2c6335<_0x28fe03;_0x2c6335++){_0x376b78=arguments[_0x2c6335];for(var _0x419e97 in _0x376b78)Object[_0x197fe8(0x1c2)][_0x197fe8(0x21b)][_0x197fe8(0x209)](_0x376b78,_0x419e97)&&(_0x511796[_0x419e97]=_0x376b78[_0x419e97]);}return _0x511796;},u[_0x3f8654(0x1c0)](this,arguments);},M=function(_0xfc587f,_0x1cf6dc){var _0x247566=_0x2d6643,_0x47b19f={};for(var _0x1b77d8 in _0xfc587f)Object[_0x247566(0x1c2)][_0x247566(0x21b)][_0x247566(0x209)](_0xfc587f,_0x1b77d8)&&_0x1cf6dc[_0x247566(0x1ac)](_0x1b77d8)<0x0&&(_0x47b19f[_0x1b77d8]=_0xfc587f[_0x1b77d8]);if(_0xfc587f!=null&&typeof Object[_0x247566(0x1da)]=='function'){for(var _0x28118f=0x0,_0x1b77d8=Object['getOwnPropertySymbols'](_0xfc587f);_0x28118f<_0x1b77d8[_0x247566(0x196)];_0x28118f++)_0x1cf6dc[_0x247566(0x1ac)](_0x1b77d8[_0x28118f])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x247566(0x209)](_0xfc587f,_0x1b77d8[_0x28118f])&&(_0x47b19f[_0x1b77d8[_0x28118f]]=_0xfc587f[_0x1b77d8[_0x28118f]]);}return _0x47b19f;},j=f[_0x2d6643(0x267)](function(_0x4e8cb6,_0x459542){var _0x37a01a=_0x2d6643,_0x49146e=_0x4e8cb6[_0x37a01a(0x206)],_0xc8be71=_0x4e8cb6['id'],_0x12572c=_0x4e8cb6['className'],_0xabac0f=_0x4e8cb6['extend'],_0x2843aa=M(_0x4e8cb6,[_0x37a01a(0x206),'id','className','extend']),_0x22f52a=_0x37a01a(0x266)[_0x37a01a(0x228)](_0xc8be71,'\x20')['concat'](_0x12572c||'')['trim'](),_0xb3e025=f[_0x37a01a(0x1a7)]('_'[_0x37a01a(0x228)](G()));return y(_0x49146e,''[_0x37a01a(0x228)](_0xc8be71),{'defIds':_0x49146e[_0x37a01a(0x1d6)],'idSuffix':_0xb3e025[_0x37a01a(0x254)]},u({'ref':_0x459542,'className':_0x22f52a},_0x2843aa),_0xabac0f);});function y(_0x2ce1c8,_0x332bab,_0x306fa4,_0x27d15e,_0x1b4e39){var _0x41208a=_0x2d6643;return f[_0x41208a(0x21e)](_0x2ce1c8[_0x41208a(0x273)],u(u({'key':_0x332bab},q(_0x2ce1c8,_0x306fa4,_0x1b4e39)),_0x27d15e),(W(_0x2ce1c8,_0x306fa4)['children']||[])[_0x41208a(0x1b3)](function(_0x53d5b2,_0x1a3188){var _0x5a4cb1=_0x41208a;return y(_0x53d5b2,''[_0x5a4cb1(0x228)](_0x332bab,'-')[_0x5a4cb1(0x228)](_0x2ce1c8['tag'],'-')[_0x5a4cb1(0x228)](_0x1a3188),_0x306fa4,void 0x0,_0x1b4e39);}));}function q(_0x2caf72,_0x3d9fc7,_0x1c8ad1){var _0x4eabbe=_0x2d6643,_0x57b0dd=u({},_0x2caf72[_0x4eabbe(0x232)]);_0x1c8ad1!=null&&_0x1c8ad1[_0x4eabbe(0x1e4)]&&_0x57b0dd[_0x4eabbe(0x198)]===_0x4eabbe(0x1e4)&&(_0x57b0dd[_0x4eabbe(0x198)]=_0x1c8ad1[_0x4eabbe(0x1e4)]),_0x2caf72[_0x4eabbe(0x273)]===_0x4eabbe(0x1e5)&&_0x57b0dd['id']&&(_0x57b0dd['id']=_0x57b0dd['id']+_0x3d9fc7[_0x4eabbe(0x1ed)]),Object[_0x4eabbe(0x1cd)](_0x57b0dd)[_0x4eabbe(0x20d)](function(_0xc1864b){var _0x3d4bfd=_0x4eabbe,_0x2afb67=_0xc1864b[0x0],_0x2fbfb8=_0xc1864b[0x1];_0x2afb67===_0x3d4bfd(0x1e5)&&typeof _0x2fbfb8==_0x3d4bfd(0x26c)&&(_0x57b0dd[_0x2afb67]=_0x2fbfb8[_0x3d4bfd(0x22e)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3d9fc7['idSuffix'],')')));});var _0x1fe94e=_0x3d9fc7[_0x4eabbe(0x1d6)];return!_0x1fe94e||_0x1fe94e[_0x4eabbe(0x196)]===0x0||(_0x2caf72[_0x4eabbe(0x273)]==='use'&&_0x57b0dd[_0x4eabbe(0x230)]&&(_0x57b0dd[_0x4eabbe(0x230)]=_0x57b0dd[_0x4eabbe(0x230)]+_0x3d9fc7[_0x4eabbe(0x1ed)]),Object[_0x4eabbe(0x1cd)](_0x57b0dd)[_0x4eabbe(0x20d)](function(_0xb32eab){var _0x3c804a=_0x4eabbe,_0x26d971=_0xb32eab[0x0],_0x9748f9=_0xb32eab[0x1];typeof _0x9748f9==_0x3c804a(0x26c)&&(_0x57b0dd[_0x26d971]=_0x9748f9[_0x3c804a(0x22e)](/url\(#(.*)\)/,_0x3c804a(0x1a6)[_0x3c804a(0x228)](_0x3d9fc7[_0x3c804a(0x1ed)],')')));})),_0x57b0dd;}function _0x5e15(_0xfc5ac7,_0x17d2d9){var _0x194626=_0x1946();return _0x5e15=function(_0x5e15b3,_0x15c903){_0x5e15b3=_0x5e15b3-0x18d;var _0x1b35d5=_0x194626[_0x5e15b3];return _0x1b35d5;},_0x5e15(_0xfc5ac7,_0x17d2d9);}function W(_0x3d7181,_0xfb94cd){var _0xd50100=_0x2d6643,_0x10d71c,_0x27c977=_0xfb94cd[_0xd50100(0x1d6)];return!_0x27c977||_0x27c977[_0xd50100(0x196)]===0x0?_0x3d7181:_0x3d7181[_0xd50100(0x273)]===_0xd50100(0x226)&&(!((_0x10d71c=_0x3d7181[_0xd50100(0x215)])===null||_0x10d71c===void 0x0)&&_0x10d71c[_0xd50100(0x196)])?u(u({},_0x3d7181),{'children':_0x3d7181[_0xd50100(0x215)][_0xd50100(0x1b3)](function(_0xbe7d82){var _0xe17f8b=_0xd50100;return typeof _0xbe7d82[_0xe17f8b(0x232)]['id']=='string'&&_0x27c977&&_0x27c977[_0xe17f8b(0x1bb)](_0xbe7d82[_0xe17f8b(0x232)]['id'])?u(u({},_0xbe7d82),{'attrs':u(u({},_0xbe7d82[_0xe17f8b(0x232)]),{'id':_0xbe7d82[_0xe17f8b(0x232)]['id']+_0xfb94cd[_0xe17f8b(0x1ed)]})}):_0xbe7d82;})}):_0x3d7181;}function G(){var _0x9c7844=_0x2d6643;return Math[_0x9c7844(0x217)]()['toString'](0x24)[_0x9c7844(0x1f4)](0x2,0x8);}j[_0x2d6643(0x23d)]='UniverIcon';var B={'tag':'svg','attrs':{'xmlns':_0x2d6643(0x1c4),'fill':_0x2d6643(0x1ad),'viewBox':_0x2d6643(0x269),'width':_0x2d6643(0x22b),'height':_0x2d6643(0x22b)},'children':[{'tag':'path','attrs':{'fill':_0x2d6643(0x1d0),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x2d6643(0x1d0),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x2d6643(0x1f6),'clipRule':_0x2d6643(0x1f6)}}]},P=f[_0x2d6643(0x267)](function(_0x77b22,_0x5d108c){var _0x5d543e=_0x2d6643;return f[_0x5d543e(0x21e)](j,Object['assign']({},_0x77b22,{'id':_0x5d543e(0x237),'ref':_0x5d108c,'icon':B}));});P[_0x2d6643(0x23d)]=_0x2d6643(0x200);var Y=Object[_0x2d6643(0x25c)],R=(_0x50bd0c,_0x6a3f4a,_0x1d8f5b,_0x187daf)=>{var _0x3ec6f2=_0x2d6643;for(var _0x1ccdb3=_0x187daf>0x1?void 0x0:_0x187daf?Y(_0x6a3f4a,_0x1d8f5b):_0x6a3f4a,_0x29d224=_0x50bd0c[_0x3ec6f2(0x196)]-0x1,_0x52db02;_0x29d224>=0x0;_0x29d224--)(_0x52db02=_0x50bd0c[_0x29d224])&&(_0x1ccdb3=_0x52db02(_0x1ccdb3)||_0x1ccdb3);return _0x1ccdb3;},S=(_0x3e3a43,_0x3d2dca)=>(_0x560fbb,_0x3a8b3e)=>_0x3d2dca(_0x560fbb,_0x3a8b3e,_0x3e3a43);exports[_0x2d6643(0x213)]=class extends o['RxDisposable']{constructor(_0x600fe8,_0x2091c0,_0x2605a6){var _0x7b24f=_0x2d6643;super(),v(this,_0x7b24f(0x260),new Map()),(this[_0x7b24f(0x23c)]=_0x600fe8,this[_0x7b24f(0x251)]=_0x2091c0,this[_0x7b24f(0x1d5)]=_0x2605a6,this['_init']());}async[_0x2d6643(0x24a)](_0xa06772){var _0x48a0af=_0x2d6643;return this['_entities'][_0x48a0af(0x220)](_0xa06772)||await this[_0x48a0af(0x199)](_0xa06772),this[_0x48a0af(0x260)][_0x48a0af(0x1c1)](_0xa06772);}['_init'](){var _0x5b02f7=_0x2d6643;this[_0x5b02f7(0x23c)]['getTypeOfUnitAdded$'](o['UniverInstanceType'][_0x5b02f7(0x1ce)])[_0x5b02f7(0x218)](b['takeUntil'](this[_0x5b02f7(0x26a)]))[_0x5b02f7(0x1ee)](async _0x441171=>{var _0x4fc56c=_0x5b02f7;const _0x248c99=_0x441171[_0x4fc56c(0x19d)]();this['_entities']['has'](_0x248c99)||this[_0x4fc56c(0x199)](_0x248c99);}),this[_0x5b02f7(0x23c)][_0x5b02f7(0x234)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x5b02f7(0x218)](b[_0x5b02f7(0x203)](this['dispose$']))[_0x5b02f7(0x1ee)](_0x42509f=>{var _0x3c8f3b=_0x5b02f7;const _0x1499cc=_0x42509f['getUnitId'](),_0xa5927d=this[_0x3c8f3b(0x260)][_0x3c8f3b(0x1c1)](_0x1499cc);_0xa5927d==null||_0xa5927d[_0x3c8f3b(0x1e6)]();});}async[_0x2d6643(0x199)](_0x5681e9){var _0x5190e6=_0x2d6643;const _0xef1b2b=await this[_0x5190e6(0x1d5)][_0x5190e6(0x239)](_0x5681e9),_0x1b137e=this[_0x5190e6(0x251)][_0x5190e6(0x21c)](exports[_0x5190e6(0x24e)],_0x5681e9,_0xef1b2b);return _0x1b137e['init'](),this[_0x5190e6(0x260)]['set'](_0x5681e9,_0x1b137e),_0x1b137e;}},exports[_0x2d6643(0x213)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x2d6643(0x26d)](o[_0x2d6643(0x18d)])),S(0x2,o[_0x2d6643(0x26d)](m['CollaborationSessionService']))],exports['LiveShareController']);var h=(_0x31838a=>(_0x31838a[_0x2d6643(0x272)]=_0x2d6643(0x236),_0x31838a[_0x2d6643(0x1b5)]=_0x2d6643(0x1ba),_0x31838a[_0x2d6643(0x1bc)]=_0x2d6643(0x224),_0x31838a[_0x2d6643(0x1cf)]=_0x2d6643(0x1e0),_0x31838a[_0x2d6643(0x23b)]=_0x2d6643(0x193),_0x31838a))(h||{});const Z=_0x2d6643(0x18f),J=0xc8;exports[_0x2d6643(0x24e)]=class extends o['RxDisposable']{constructor(_0x56a80d,_0x33ebab,_0xa47140,_0x4ce241,_0x2e4867){var _0x52d545=_0x2d6643;super(),v(this,_0x52d545(0x1b8),new D[(_0x52d545(0x1a5))](_0x52d545(0x1ba))),v(this,'status$',this[_0x52d545(0x1b8)][_0x52d545(0x1df)]()),v(this,'_init',!0x1),v(this,_0x52d545(0x1dd),null),v(this,_0x52d545(0x1bd),null),(this[_0x52d545(0x23a)]=_0x56a80d,this[_0x52d545(0x1a1)]=_0x33ebab,this[_0x52d545(0x271)]=_0xa47140,this[_0x52d545(0x19e)]=_0x4ce241,this['_commandService']=_0x2e4867);}get[_0x2d6643(0x192)](){var _0x43fb37=_0x2d6643;return this[_0x43fb37(0x1b8)][_0x43fb37(0x24d)]();}[_0x2d6643(0x1e6)](){var _0x297407=_0x2d6643,_0x5bbed4;(_0x5bbed4=this[_0x297407(0x1dd)])==null||_0x5bbed4[_0x297407(0x1e6)](),this[_0x297407(0x1b8)][_0x297407(0x222)](_0x297407(0x1ba)),this[_0x297407(0x1b8)]['complete']();}[_0x2d6643(0x221)](){var _0x1ff050=_0x2d6643;this[_0x1ff050(0x252)]||(this[_0x1ff050(0x252)]=!0x0,this[_0x1ff050(0x1a1)][_0x1ff050(0x238)][_0x1ff050(0x218)](b[_0x1ff050(0x203)](this[_0x1ff050(0x26a)]))[_0x1ff050(0x1ee)](_0x5e2ae7=>{var _0x205f02=_0x1ff050;switch(_0x5e2ae7){case m[_0x205f02(0x21f)][_0x205f02(0x272)]:this[_0x205f02(0x1f0)]();break;case m[_0x205f02(0x21f)][_0x205f02(0x1fd)]:this[_0x205f02(0x19c)]();break;}}),this['_collabSession'][_0x1ff050(0x1d2)][_0x1ff050(0x218)](b[_0x1ff050(0x203)](this['dispose$']))[_0x1ff050(0x1ee)](_0x541250=>{var _0x45c276=_0x1ff050;const {eventID:_0x2a6214}=_0x541250;switch(_0x2a6214){case _['CollaborationEvent'][_0x45c276(0x1ae)]:this[_0x45c276(0x264)](_0x541250);break;case _[_0x45c276(0x1fc)][_0x45c276(0x1fe)]:this['_handleOperation'](_0x541250);break;case _[_0x45c276(0x1fc)][_0x45c276(0x201)]:this[_0x45c276(0x1f1)]();break;case _[_0x45c276(0x1fc)]['NEW_CHANGESETS']:this[_0x45c276(0x19a)](_0x541250);break;}}));}[_0x2d6643(0x18e)](){var _0x46205f=_0x2d6643;this['_collabSession'][_0x46205f(0x205)]({'eventID':_[_0x46205f(0x1fc)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this['_unitID']);}[_0x2d6643(0x1c3)](){var _0x3aac93=_0x2d6643;this[_0x3aac93(0x192)]===_0x3aac93(0x193)&&(this[_0x3aac93(0x1b8)][_0x3aac93(0x222)]('idle'),this['_collabSession'][_0x3aac93(0x205)]({'eventID':_[_0x3aac93(0x1fc)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3aac93(0x23a)]}},this['_unitID']));}[_0x2d6643(0x20c)](){var _0xf70310=_0x2d6643;this['_status']===_0xf70310(0x1e0)&&(this[_0xf70310(0x1b8)]['next'](_0xf70310(0x224)),this[_0xf70310(0x1a0)]());}[_0x2d6643(0x253)](){var _0x2c9fa8=_0x2d6643;this[_0x2c9fa8(0x192)]===_0x2c9fa8(0x224)&&this[_0x2c9fa8(0x258)]();}[_0x2d6643(0x264)](_0x1cfd09){var _0x1b29d2=_0x2d6643;const {presenter:_0x6e0f9f}=_0x1cfd09[_0x1b29d2(0x1eb)],_0x1616f5=this[_0x1b29d2(0x1a1)][_0x1b29d2(0x1d4)]();this['_presenter']=_0x6e0f9f,_0x6e0f9f===_0x1616f5?(this[_0x1b29d2(0x258)](),this[_0x1b29d2(0x1b1)]()):this[_0x1b29d2(0x192)]!==_0x1b29d2(0x1e0)&&(this['_stopPresenting'](),this[_0x1b29d2(0x1a0)]());}[_0x2d6643(0x22f)](){var _0x369e53=_0x2d6643;const _0x3f364a={'eventID':_['CollaborationEvent'][_0x369e53(0x231)]};this[_0x369e53(0x1a1)][_0x369e53(0x205)](_0x3f364a,this[_0x369e53(0x23a)]);}[_0x2d6643(0x1f1)](){var _0x356a6e=_0x2d6643;this['_presenter']=null,this[_0x356a6e(0x192)]!==_0x356a6e(0x193)&&this[_0x356a6e(0x19b)]();}[_0x2d6643(0x19a)](_0x2cb61f){var _0x22ff0c=_0x2d6643;if(this[_0x22ff0c(0x192)]===_0x22ff0c(0x224)&&this[_0x22ff0c(0x1bd)]===_0x2cb61f['data'][_0x22ff0c(0x263)]){const _0x43951d=_[_0x22ff0c(0x1db)](_0x2cb61f[_0x22ff0c(0x1eb)])['mutations'][_0x22ff0c(0x25e)]()['find'](_0x4bfc4a=>_0x4bfc4a['id']===C[_0x22ff0c(0x20f)]['id']);if(_0x43951d){const _0x40579c=_0x43951d[_0x22ff0c(0x1fb)]['unitId'],_0xc9c8b4=_0x43951d[_0x22ff0c(0x1fb)][_0x22ff0c(0x26e)]['id'];setTimeout(()=>{var _0x7b3ac1=_0x22ff0c;this[_0x7b3ac1(0x197)][_0x7b3ac1(0x1cc)](C[_0x7b3ac1(0x223)]['id'],{'unitId':_0x40579c,'subUnitId':_0xc9c8b4},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4b59c9=_0x2d6643;this[_0x4b59c9(0x1b8)][_0x4b59c9(0x222)](_0x4b59c9(0x193));const _0x5e4fbe=new Map(),_0x4cfcc7=this[_0x4b59c9(0x1dd)]=new o[(_0x4b59c9(0x1b2))]();_0x4cfcc7['add'](o[_0x4b59c9(0x1cb)](()=>{var _0x5597bb=_0x4b59c9;_0x5e4fbe['forEach'](_0xa2a4e9=>_0xa2a4e9[_0x5597bb(0x1f2)]()),_0x5e4fbe[_0x5597bb(0x262)]();})),_0x4cfcc7['add'](this['_commandService']['onCommandExecuted'](_0x5f50db=>{var _0x4e03a7=_0x4b59c9,_0x46f380;if(_0x5f50db[_0x4e03a7(0x268)]!==o[_0x4e03a7(0x1e7)][_0x4e03a7(0x261)]||!this[_0x4e03a7(0x19e)]['shouldShareOperation'](_0x5f50db['id']))return;const {id:_0xd71be0}=_0x5f50db;let _0x53f75a;_0x5e4fbe[_0x4e03a7(0x220)](_0xd71be0)?_0x53f75a=_0x5e4fbe[_0x4e03a7(0x1c1)](_0xd71be0):(_0x53f75a=new D['Subject'](),_0x5e4fbe[_0x4e03a7(0x24c)](_0xd71be0,_0x53f75a),_0x53f75a[_0x4e03a7(0x218)](b[_0x4e03a7(0x23e)]((_0x46f380=this[_0x4e03a7(0x271)]['getConfig'](Z))!=null?_0x46f380:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4e03a7(0x1ee)](_0x401ce7=>{var _0x1186ce=_0x4e03a7;this[_0x1186ce(0x1a1)][_0x1186ce(0x205)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1186ce(0x23a)],'operations':{[_0x401ce7['id']]:{'id':_0x401ce7['id'],'params':JSON[_0x1186ce(0x257)](_0x401ce7['params'])}}}},this[_0x1186ce(0x23a)]);})),_0x53f75a['next'](_0x5f50db);})),this[_0x4b59c9(0x19e)][_0x4b59c9(0x26f)](this['_unitID'])['forEach'](_0x42f047=>this['_collabSession'][_0x4b59c9(0x205)]({'eventID':_[_0x4b59c9(0x1fc)][_0x4b59c9(0x1fe)],'data':{'unitID':this[_0x4b59c9(0x23a)],'operations':{[_0x42f047['id']]:{'id':_0x42f047['id'],'params':JSON[_0x4b59c9(0x257)](_0x42f047[_0x4b59c9(0x1fb)])}}}},this[_0x4b59c9(0x23a)]));}[_0x2d6643(0x1b4)](){var _0x2f72e5=_0x2d6643,_0x108700;this[_0x2f72e5(0x1b8)][_0x2f72e5(0x222)]('idle'),(_0x108700=this[_0x2f72e5(0x1dd)])==null||_0x108700[_0x2f72e5(0x1e6)](),this[_0x2f72e5(0x1dd)]=null;}[_0x2d6643(0x1a0)](){var _0x2a6429=_0x2d6643,_0x3437c3;(_0x3437c3=this['_commandDisposable'])==null||_0x3437c3[_0x2a6429(0x1e6)](),this[_0x2a6429(0x1b8)][_0x2a6429(0x222)](_0x2a6429(0x224));}[_0x2d6643(0x19b)](){var _0x105191=_0x2d6643,_0x3f0666;this[_0x105191(0x1b8)]['next'](_0x105191(0x1ba)),(_0x3f0666=this[_0x105191(0x1dd)])==null||_0x3f0666[_0x105191(0x1e6)](),this[_0x105191(0x1dd)]=null;}[_0x2d6643(0x258)](){var _0x4fa1f0=_0x2d6643,_0x180d95;this[_0x4fa1f0(0x1b8)][_0x4fa1f0(0x222)](_0x4fa1f0(0x1e0)),(_0x180d95=this['_commandDisposable'])==null||_0x180d95[_0x4fa1f0(0x1e6)]();}[_0x2d6643(0x225)](_0x3f84ee){var _0x28f739=_0x2d6643;if([_0x28f739(0x193),_0x28f739(0x1e0),_0x28f739(0x236)][_0x28f739(0x1bb)](this['_status'])||!_0x3f84ee[_0x28f739(0x1eb)]['presenter']||_0x3f84ee[_0x28f739(0x1eb)][_0x28f739(0x248)]===this[_0x28f739(0x1a1)][_0x28f739(0x1d4)]())return;this['_status']===_0x28f739(0x1ba)&&this[_0x28f739(0x1a0)]();const _0x2eb630=_0x3f84ee[_0x28f739(0x1eb)]['operations'];Object[_0x28f739(0x1d3)](_0x2eb630)[_0x28f739(0x20d)](_0x3a6f31=>{var _0x3ce5a9=_0x28f739;this[_0x3ce5a9(0x197)][_0x3ce5a9(0x1cc)](_0x3a6f31['id'],_0x3a6f31[_0x3ce5a9(0x1fb)]?JSON[_0x3ce5a9(0x1f8)](_0x3a6f31['params']):null,{'fromCollab':!0x0});});}[_0x2d6643(0x1f0)](){var _0x34b6c7=_0x2d6643,_0x1a3320;this['_status$'][_0x34b6c7(0x222)](_0x34b6c7(0x236)),(_0x1a3320=this[_0x34b6c7(0x1dd)])==null||_0x1a3320[_0x34b6c7(0x1e6)]();}[_0x2d6643(0x19c)](){var _0x38e522=_0x2d6643;this['_status$'][_0x38e522(0x222)](_0x38e522(0x1ba)),this[_0x38e522(0x22f)]();}},exports[_0x2d6643(0x24e)]=R([S(0x2,o[_0x2d6643(0x21a)]),S(0x3,o[_0x2d6643(0x26d)](O)),S(0x4,o[_0x2d6643(0x214)])],exports[_0x2d6643(0x24e)]);function A(){var _0x72e005=_0x2d6643;const _0x382480=p[_0x72e005(0x1be)](exports[_0x72e005(0x213)]),_0x4fcf84=p[_0x72e005(0x1be)](o[_0x72e005(0x1f3)]),_0x3a66f8=p[_0x72e005(0x190)](()=>_0x4fcf84[_0x72e005(0x1ea)](o[_0x72e005(0x1c8)][_0x72e005(0x1ce)]),void 0x0,!0x1,[]),[_0x46127f,_0x19fd4b]=f[_0x72e005(0x1de)](null),[_0x3fc980,_0x427ace]=f[_0x72e005(0x1de)](h[_0x72e005(0x1b5)]),_0xc413db=f['useRef'](null);return f[_0x72e005(0x194)](()=>(_0x3a66f8&&_0x382480[_0x72e005(0x24a)](_0x3a66f8[_0x72e005(0x19d)]())['then'](_0x3639fb=>{var _0x11e502=_0x72e005;_0x19fd4b(_0x3639fb),_0xc413db[_0x11e502(0x254)]=_0x3639fb[_0x11e502(0x1d9)]['subscribe'](_0x41492d=>{_0x427ace(_0x41492d);});}),()=>{var _0x3d1263=_0x72e005,_0x34fdf3;(_0x34fdf3=_0xc413db[_0x3d1263(0x254)])==null||_0x34fdf3[_0x3d1263(0x211)](),_0xc413db[_0x3d1263(0x254)]=null;}),[_0x3a66f8,_0x382480]),_0x46127f?l[_0x72e005(0x1a2)](g[_0x72e005(0x208)],{'align':'end','disabled':_0x3fc980===h['OFFLINE'],'className':_0x72e005(0x1d1),'overlay':l[_0x72e005(0x1a2)](K,{'status':_0x3fc980,'coordinator':_0x46127f}),'children':l[_0x72e005(0x1a2)](_0x72e005(0x245),{'className':g['clsx'](_0x72e005(0x1dc),{'univer-cursor-not-allowed':_0x3fc980===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3fc980!==h['OFFLINE']}),'type':'button','children':l['jsx'](P,{'className':_0x72e005(0x1f5)})})}):null;}function K(_0x1ad4bb){var _0x5182cf=_0x2d6643;const {status:_0x6a3855,coordinator:_0x57c136}=_0x1ad4bb;switch(_0x6a3855){case h['IDLE']:return l['jsx'](z,{'coordinator':_0x57c136});case h[_0x5182cf(0x1bc)]:return l[_0x5182cf(0x1a2)](Q,{'coordinator':_0x57c136});case h[_0x5182cf(0x1cf)]:return l['jsx'](X,{'coordinator':_0x57c136});case h['OFFLINE']:return l[_0x5182cf(0x1a2)](te,{});case h['PRESENTING']:return l[_0x5182cf(0x1a2)](ee,{'coordinator':_0x57c136});default:return null;}}function z(_0x2a9c64){var _0x85665=_0x2d6643;const {coordinator:_0x511651}=_0x2a9c64;return l[_0x85665(0x1aa)](l[_0x85665(0x26b)],{'children':[l['jsx'](_0x85665(0x1bf),{'className':_0x85665(0x25f),'children':_0x85665(0x1fa)}),l[_0x85665(0x1a2)](g['Button'],{'onClick':()=>_0x511651[_0x85665(0x18e)](),'children':'Start'})]});}function Q(_0x539ca8){var _0x56aa01=_0x2d6643;const {coordinator:_0x43e34b}=_0x539ca8;return l[_0x56aa01(0x1aa)](l[_0x56aa01(0x26b)],{'children':[l[_0x56aa01(0x1a2)](_0x56aa01(0x1bf),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x56aa01(0x24f)}),l[_0x56aa01(0x1a2)](g[_0x56aa01(0x202)],{'onClick':()=>_0x43e34b[_0x56aa01(0x253)](),'children':'Stop\x20following'})]});}function X(_0x371c81){var _0x4b4533=_0x2d6643;const {coordinator:_0x36d14a}=_0x371c81;return l['jsxs'](l[_0x4b4533(0x26b)],{'children':[l['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4b4533(0x1e9)}),l[_0x4b4533(0x1a2)](g[_0x4b4533(0x202)],{'variant':_0x4b4533(0x25b),'onClick':()=>_0x36d14a[_0x4b4533(0x20c)](),'children':'Start\x20following'})]});}function ee(_0x15a0d3){var _0x500390=_0x2d6643;const {coordinator:_0x1692a9}=_0x15a0d3;return l[_0x500390(0x1aa)](l[_0x500390(0x26b)],{'children':[l[_0x500390(0x1a2)](_0x500390(0x1bf),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x500390(0x250)}),l[_0x500390(0x1a2)](g[_0x500390(0x202)],{'variant':_0x500390(0x1a8),'onClick':()=>_0x1692a9['stopPresenting'](),'children':_0x500390(0x21d)})]});}function te(){var _0x49e59e=_0x2d6643;return l[_0x49e59e(0x1a2)](l[_0x49e59e(0x26b)],{'children':_0x49e59e(0x1f9)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x247f50,_0x28e6ce,_0x1f1123,_0x26268d)=>{var _0x2f1042=_0x2d6643;for(var _0x513333=_0x26268d>0x1?void 0x0:_0x26268d?ie(_0x28e6ce,_0x1f1123):_0x28e6ce,_0x1fd506=_0x247f50[_0x2f1042(0x196)]-0x1,_0x124a84;_0x1fd506>=0x0;_0x1fd506--)(_0x124a84=_0x247f50[_0x1fd506])&&(_0x513333=_0x124a84(_0x513333)||_0x513333);return _0x513333;},L=(_0x1f1b6f,_0x1abca2)=>(_0xd4daec,_0x58bac9)=>_0x1abca2(_0xd4daec,_0x58bac9,_0x1f1b6f);exports[_0x2d6643(0x1e1)]=class extends o['Disposable']{constructor(_0x518a4b,_0x3d38dc){var _0x16930b=_0x2d6643;super(),this[_0x16930b(0x251)]=_0x518a4b,this[_0x16930b(0x227)]=_0x3d38dc,this[_0x16930b(0x1e8)]();}['_mountLiveShare'](){var _0x114708=_0x2d6643;this[_0x114708(0x1c9)](this['_uiPartsService']['registerComponent'](p['BuiltInUIPart'][_0x114708(0x1b9)],()=>p[_0x114708(0x1d7)](A,this['_injector'])));}},exports[_0x2d6643(0x1e1)]=ne([L(0x0,o[_0x2d6643(0x26d)](o[_0x2d6643(0x18d)])),L(0x1,p[_0x2d6643(0x1a3)])],exports['DesktopLiveShareController']);var re=Object[_0x2d6643(0x23f)],se=Object['getOwnPropertyDescriptor'],oe=(_0x5ede38,_0x4e8de7,_0x13f6df)=>_0x4e8de7 in _0x5ede38?re(_0x5ede38,_0x4e8de7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13f6df}):_0x5ede38[_0x4e8de7]=_0x13f6df,ae=(_0xa3a2d4,_0x5da295,_0x48cfdd,_0x39c24d)=>{var _0x16a77d=_0x2d6643;for(var _0x4afc7c=_0x39c24d>0x1?void 0x0:_0x39c24d?se(_0x5da295,_0x48cfdd):_0x5da295,_0x3a2a37=_0xa3a2d4[_0x16a77d(0x196)]-0x1,_0x3a09e9;_0x3a2a37>=0x0;_0x3a2a37--)(_0x3a09e9=_0xa3a2d4[_0x3a2a37])&&(_0x4afc7c=_0x3a09e9(_0x4afc7c)||_0x4afc7c);return _0x4afc7c;},N=(_0x133ad2,_0x45f997)=>(_0xe9c12a,_0x46685d)=>_0x45f997(_0xe9c12a,_0x46685d,_0x133ad2),T=(_0x2343a8,_0x38404c,_0x40f5da)=>oe(_0x2343a8,typeof _0x38404c!=_0x2d6643(0x1b6)?_0x38404c+'':_0x38404c,_0x40f5da);const le=_0x2d6643(0x22a);exports[_0x2d6643(0x259)]=class extends o[_0x2d6643(0x20b)]{constructor(_0x3d5ffe=x,_0x2e1300,_0xdc8b18){var _0x4f23c5=_0x2d6643;super(),this[_0x4f23c5(0x204)]=_0x3d5ffe,this[_0x4f23c5(0x251)]=_0x2e1300,this[_0x4f23c5(0x271)]=_0xdc8b18;const {..._0x5b3bca}=o[_0x4f23c5(0x1c7)]({},x,this[_0x4f23c5(0x204)]);this['_configService'][_0x4f23c5(0x191)]($,_0x5b3bca);}[_0x2d6643(0x1e2)](){var _0x26be7b=_0x2d6643;o[_0x26be7b(0x195)](this['_injector'],o[_0x26be7b(0x25d)]([[O],[exports[_0x26be7b(0x213)]],[E],[exports[_0x26be7b(0x1e1)]]],this[_0x26be7b(0x204)][_0x26be7b(0x1b0)])),o[_0x26be7b(0x1c5)](this[_0x26be7b(0x251)],[[E]]);}[_0x2d6643(0x241)](){var _0x3ae531=_0x2d6643;o[_0x3ae531(0x1c5)](this[_0x3ae531(0x251)],[[exports[_0x3ae531(0x1e1)]]]);}},T(exports[_0x2d6643(0x259)],_0x2d6643(0x268),o[_0x2d6643(0x1c8)][_0x2d6643(0x1d8)]),T(exports['UniverLiveSharePlugin'],_0x2d6643(0x270),le),exports[_0x2d6643(0x259)]=ae([o[_0x2d6643(0x235)](m[_0x2d6643(0x207)]),N(0x1,o[_0x2d6643(0x26d)](o[_0x2d6643(0x18d)])),N(0x2,o[_0x2d6643(0x21a)])],exports[_0x2d6643(0x259)]),exports[_0x2d6643(0x20a)]=A,exports['LiveShareService']=O,exports[_0x2d6643(0x1ef)]=h;
1
+ 'use strict';var _0xe4bc39=_0x2b65;(function(_0x2447ca,_0x15d7dc){var _0x1ea2e4=_0x2b65,_0x5d7cbe=_0x2447ca();while(!![]){try{var _0x43766c=-parseInt(_0x1ea2e4(0x15e))/0x1*(parseInt(_0x1ea2e4(0x1a8))/0x2)+parseInt(_0x1ea2e4(0x128))/0x3+-parseInt(_0x1ea2e4(0x1be))/0x4*(-parseInt(_0x1ea2e4(0x19b))/0x5)+parseInt(_0x1ea2e4(0x1cb))/0x6+parseInt(_0x1ea2e4(0x142))/0x7*(-parseInt(_0x1ea2e4(0x190))/0x8)+-parseInt(_0x1ea2e4(0x1fa))/0x9*(-parseInt(_0x1ea2e4(0x153))/0xa)+-parseInt(_0x1ea2e4(0x15c))/0xb;if(_0x43766c===_0x15d7dc)break;else _0x5d7cbe['push'](_0x5d7cbe['shift']());}catch(_0x497e2d){_0x5d7cbe['push'](_0x5d7cbe['shift']());}}}(_0x593a,0x9030a));var U=Object[_0xe4bc39(0x1f1)],F=(_0x412bd4,_0xd367d3,_0xf9f8ed)=>_0xd367d3 in _0x412bd4?U(_0x412bd4,_0xd367d3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf9f8ed}):_0x412bd4[_0xd367d3]=_0xf9f8ed,v=(_0x404509,_0x909be,_0x743c2c)=>F(_0x404509,typeof _0x909be!=_0xe4bc39(0x165)?_0x909be+'':_0x909be,_0x743c2c);Object['defineProperty'](exports,Symbol[_0xe4bc39(0x1fb)],{'value':'Module'});function _0x2b65(_0x4d17bd,_0x2726b0){var _0x593a65=_0x593a();return _0x2b65=function(_0x2b6503,_0x1f9de8){_0x2b6503=_0x2b6503-0x11d;var _0x499042=_0x593a65[_0x2b6503];return _0x499042;},_0x2b65(_0x4d17bd,_0x2726b0);}const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0xe4bc39(0x1ca),x={};class O extends o[_0xe4bc39(0x17b)]{constructor(){var _0x2fc377=_0xe4bc39;super(...arguments),v(this,_0x2fc377(0x1b7),new Set()),v(this,_0x2fc377(0x1f9),new Set());}[_0xe4bc39(0x1c2)](_0x6ac9b0){var _0x34b447=_0xe4bc39;return this[_0x34b447(0x1b7)]['add'](_0x6ac9b0),o[_0x34b447(0x195)](()=>this[_0x34b447(0x1b7)][_0x34b447(0x1c7)](_0x6ac9b0));}[_0xe4bc39(0x1ff)](_0x34ba04){var _0x5a70b2=_0xe4bc39;return this[_0x5a70b2(0x1f9)][_0x5a70b2(0x154)](_0x34ba04),o['toDisposable'](()=>this[_0x5a70b2(0x1f9)][_0x5a70b2(0x1c7)](_0x34ba04));}[_0xe4bc39(0x193)](_0x238916){var _0x3921f1=_0xe4bc39;return this[_0x3921f1(0x1b7)][_0x3921f1(0x13c)](_0x238916);}[_0xe4bc39(0x141)](_0x22de36){var _0x9a8aa=_0xe4bc39;return Array[_0x9a8aa(0x12f)](this[_0x9a8aa(0x1f9)])[_0x9a8aa(0x19e)](_0x206c21=>_0x206c21(_0x22de36));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x5caff9,_0x352af2,_0x128fdb,_0x34ff64)=>{var _0x114e6e=_0xe4bc39;for(var _0x602b2c=_0x34ff64>0x1?void 0x0:_0x34ff64?H(_0x352af2,_0x128fdb):_0x352af2,_0x204005=_0x5caff9[_0x114e6e(0x158)]-0x1,_0x4d33ee;_0x204005>=0x0;_0x204005--)(_0x4d33ee=_0x5caff9[_0x204005])&&(_0x602b2c=_0x4d33ee(_0x602b2c)||_0x602b2c);return _0x602b2c;},k=(_0x5994c3,_0x22135d)=>(_0x599dc3,_0x513183)=>_0x22135d(_0x599dc3,_0x513183,_0x5994c3);let E=class extends o[_0xe4bc39(0x17b)]{constructor(_0x14d2c8){var _0x4c00ac=_0xe4bc39;super(),this['_liveShareService']=_0x14d2c8,this[_0x4c00ac(0x173)]();}[_0xe4bc39(0x173)](){var _0x5e09c0=_0xe4bc39;[w[_0x5e09c0(0x199)]['id'],w[_0x5e09c0(0x137)]['id'],C[_0x5e09c0(0x1ac)]['id']][_0x5e09c0(0x125)](_0x75c836=>{var _0x28b7bf=_0x5e09c0;this[_0x28b7bf(0x1f5)](this[_0x28b7bf(0x1b4)][_0x28b7bf(0x1c2)](_0x75c836));});}};E=V([k(0x0,o[_0xe4bc39(0x1a2)](O))],E);var u=function(){var _0x235392=_0xe4bc39;return u=Object[_0x235392(0x14c)]||function(_0x40616d){var _0x58ff34=_0x235392;for(var _0x3acdb6,_0x1ba0d5=0x1,_0x30e066=arguments[_0x58ff34(0x158)];_0x1ba0d5<_0x30e066;_0x1ba0d5++){_0x3acdb6=arguments[_0x1ba0d5];for(var _0x1a4a6b in _0x3acdb6)Object[_0x58ff34(0x140)]['hasOwnProperty'][_0x58ff34(0x186)](_0x3acdb6,_0x1a4a6b)&&(_0x40616d[_0x1a4a6b]=_0x3acdb6[_0x1a4a6b]);}return _0x40616d;},u['apply'](this,arguments);},M=function(_0x4d2b91,_0x2f615d){var _0x224e60=_0xe4bc39,_0x292de7={};for(var _0x41ddef in _0x4d2b91)Object[_0x224e60(0x140)]['hasOwnProperty'][_0x224e60(0x186)](_0x4d2b91,_0x41ddef)&&_0x2f615d[_0x224e60(0x147)](_0x41ddef)<0x0&&(_0x292de7[_0x41ddef]=_0x4d2b91[_0x41ddef]);if(_0x4d2b91!=null&&typeof Object[_0x224e60(0x11e)]==_0x224e60(0x1e8)){for(var _0x4f5140=0x0,_0x41ddef=Object[_0x224e60(0x11e)](_0x4d2b91);_0x4f5140<_0x41ddef['length'];_0x4f5140++)_0x2f615d['indexOf'](_0x41ddef[_0x4f5140])<0x0&&Object[_0x224e60(0x140)][_0x224e60(0x120)]['call'](_0x4d2b91,_0x41ddef[_0x4f5140])&&(_0x292de7[_0x41ddef[_0x4f5140]]=_0x4d2b91[_0x41ddef[_0x4f5140]]);}return _0x292de7;},j=f[_0xe4bc39(0x185)](function(_0x56bd78,_0xce2e3a){var _0x5f5b76=_0xe4bc39,_0x481fb4=_0x56bd78[_0x5f5b76(0x18f)],_0x156344=_0x56bd78['id'],_0x3ad06e=_0x56bd78[_0x5f5b76(0x191)],_0x542485=_0x56bd78[_0x5f5b76(0x189)],_0xdde957=M(_0x56bd78,[_0x5f5b76(0x18f),'id',_0x5f5b76(0x191),'extend']),_0x243ca1=_0x5f5b76(0x17f)['concat'](_0x156344,'\x20')[_0x5f5b76(0x130)](_0x3ad06e||'')[_0x5f5b76(0x1b9)](),_0x335bcc=f['useRef']('_'[_0x5f5b76(0x130)](G()));return y(_0x481fb4,''[_0x5f5b76(0x130)](_0x156344),{'defIds':_0x481fb4[_0x5f5b76(0x1c6)],'idSuffix':_0x335bcc['current']},u({'ref':_0xce2e3a,'className':_0x243ca1},_0xdde957),_0x542485);});function y(_0x12657b,_0x27e838,_0x46823d,_0x256158,_0x2b4ba9){var _0x1f3a60=_0xe4bc39;return f[_0x1f3a60(0x1dd)](_0x12657b[_0x1f3a60(0x13a)],u(u({'key':_0x27e838},q(_0x12657b,_0x46823d,_0x2b4ba9)),_0x256158),(W(_0x12657b,_0x46823d)[_0x1f3a60(0x136)]||[])['map'](function(_0x454c06,_0x139cf0){var _0x5bf3a3=_0x1f3a60;return y(_0x454c06,''[_0x5bf3a3(0x130)](_0x27e838,'-')['concat'](_0x12657b[_0x5bf3a3(0x13a)],'-')[_0x5bf3a3(0x130)](_0x139cf0),_0x46823d,void 0x0,_0x2b4ba9);}));}function q(_0x212e48,_0x453481,_0xeb8595){var _0x4ab40e=_0xe4bc39,_0x5eaba4=u({},_0x212e48['attrs']);_0xeb8595!=null&&_0xeb8595['colorChannel1']&&_0x5eaba4['fill']==='colorChannel1'&&(_0x5eaba4['fill']=_0xeb8595[_0x4ab40e(0x127)]),_0x212e48[_0x4ab40e(0x13a)]===_0x4ab40e(0x129)&&_0x5eaba4['id']&&(_0x5eaba4['id']=_0x5eaba4['id']+_0x453481[_0x4ab40e(0x1bc)]),Object[_0x4ab40e(0x1b3)](_0x5eaba4)[_0x4ab40e(0x125)](function(_0x2744ba){var _0x5c6cc0=_0x4ab40e,_0x1fde68=_0x2744ba[0x0],_0x18aecb=_0x2744ba[0x1];_0x1fde68===_0x5c6cc0(0x129)&&typeof _0x18aecb==_0x5c6cc0(0x19c)&&(_0x5eaba4[_0x1fde68]=_0x18aecb[_0x5c6cc0(0x134)](/url\(#(.*)\)/,'url(#$1'[_0x5c6cc0(0x130)](_0x453481[_0x5c6cc0(0x1bc)],')')));});var _0x202b79=_0x453481[_0x4ab40e(0x1c6)];return!_0x202b79||_0x202b79[_0x4ab40e(0x158)]===0x0||(_0x212e48[_0x4ab40e(0x13a)]===_0x4ab40e(0x206)&&_0x5eaba4[_0x4ab40e(0x1dc)]&&(_0x5eaba4[_0x4ab40e(0x1dc)]=_0x5eaba4[_0x4ab40e(0x1dc)]+_0x453481['idSuffix']),Object[_0x4ab40e(0x1b3)](_0x5eaba4)[_0x4ab40e(0x125)](function(_0x510336){var _0x3f9916=_0x4ab40e,_0x53333a=_0x510336[0x0],_0xf3952c=_0x510336[0x1];typeof _0xf3952c==_0x3f9916(0x19c)&&(_0x5eaba4[_0x53333a]=_0xf3952c['replace'](/url\(#(.*)\)/,_0x3f9916(0x148)['concat'](_0x453481[_0x3f9916(0x1bc)],')')));})),_0x5eaba4;}function W(_0x46dbf9,_0xedfd05){var _0x39c565=_0xe4bc39,_0x3ec83d,_0x378161=_0xedfd05[_0x39c565(0x1c6)];return!_0x378161||_0x378161[_0x39c565(0x158)]===0x0?_0x46dbf9:_0x46dbf9[_0x39c565(0x13a)]===_0x39c565(0x201)&&(!((_0x3ec83d=_0x46dbf9[_0x39c565(0x136)])===null||_0x3ec83d===void 0x0)&&_0x3ec83d[_0x39c565(0x158)])?u(u({},_0x46dbf9),{'children':_0x46dbf9[_0x39c565(0x136)]['map'](function(_0x1c7741){var _0x3cbc81=_0x39c565;return typeof _0x1c7741[_0x3cbc81(0x182)]['id']==_0x3cbc81(0x19c)&&_0x378161&&_0x378161[_0x3cbc81(0x17c)](_0x1c7741[_0x3cbc81(0x182)]['id'])?u(u({},_0x1c7741),{'attrs':u(u({},_0x1c7741['attrs']),{'id':_0x1c7741[_0x3cbc81(0x182)]['id']+_0xedfd05[_0x3cbc81(0x1bc)]})}):_0x1c7741;})}):_0x46dbf9;}function G(){var _0x17d2d3=_0xe4bc39;return Math[_0x17d2d3(0x1b2)]()[_0x17d2d3(0x1c8)](0x24)[_0x17d2d3(0x176)](0x2,0x8);}j[_0xe4bc39(0x1ec)]=_0xe4bc39(0x1d7);var B={'tag':_0xe4bc39(0x1ea),'attrs':{'xmlns':_0xe4bc39(0x1ba),'fill':_0xe4bc39(0x1f7),'viewBox':_0xe4bc39(0x194),'width':_0xe4bc39(0x156),'height':_0xe4bc39(0x156)},'children':[{'tag':_0xe4bc39(0x1df),'attrs':{'fill':_0xe4bc39(0x1ab),'d':_0xe4bc39(0x1bd)}},{'tag':_0xe4bc39(0x1df),'attrs':{'fill':_0xe4bc39(0x1ab),'d':_0xe4bc39(0x18c),'fillRule':_0xe4bc39(0x16e),'clipRule':'evenodd'}}]},P=f[_0xe4bc39(0x185)](function(_0x28e62a,_0x5c4fb0){var _0x49dee9=_0xe4bc39;return f[_0x49dee9(0x1dd)](j,Object[_0x49dee9(0x14c)]({},_0x28e62a,{'id':_0x49dee9(0x1aa),'ref':_0x5c4fb0,'icon':B}));});P[_0xe4bc39(0x1ec)]=_0xe4bc39(0x198);var Y=Object['getOwnPropertyDescriptor'],R=(_0x4a305,_0x49b37a,_0x2db609,_0x4eb71d)=>{for(var _0x476823=_0x4eb71d>0x1?void 0x0:_0x4eb71d?Y(_0x49b37a,_0x2db609):_0x49b37a,_0x406626=_0x4a305['length']-0x1,_0x314b26;_0x406626>=0x0;_0x406626--)(_0x314b26=_0x4a305[_0x406626])&&(_0x476823=_0x314b26(_0x476823)||_0x476823);return _0x476823;},S=(_0x28b603,_0x14304d)=>(_0x5f366d,_0x216882)=>_0x14304d(_0x5f366d,_0x216882,_0x28b603);exports['LiveShareController']=class extends o[_0xe4bc39(0x203)]{constructor(_0x4f52f7,_0x175792,_0xa2f2f3){var _0x236a6d=_0xe4bc39;super(),v(this,'_entities',new Map()),(this['_univerInstanceService']=_0x4f52f7,this['_injector']=_0x175792,this[_0x236a6d(0x1a5)]=_0xa2f2f3,this['_init']());}async[_0xe4bc39(0x12a)](_0x2d6b87){var _0x48099c=_0xe4bc39;return this[_0x48099c(0x19a)][_0x48099c(0x13c)](_0x2d6b87)||await this[_0x48099c(0x1c9)](_0x2d6b87),this[_0x48099c(0x19a)][_0x48099c(0x17a)](_0x2d6b87);}[_0xe4bc39(0x173)](){var _0x257c63=_0xe4bc39;this[_0x257c63(0x19d)][_0x257c63(0x15a)](o[_0x257c63(0x150)]['UNIVER_SHEET'])['pipe'](b['takeUntil'](this[_0x257c63(0x164)]))[_0x257c63(0x13b)](async _0x43c0f3=>{var _0x4abec3=_0x257c63;const _0x29f5c0=_0x43c0f3[_0x4abec3(0x178)]();this[_0x4abec3(0x19a)]['has'](_0x29f5c0)||this[_0x4abec3(0x1c9)](_0x29f5c0);}),this[_0x257c63(0x19d)][_0x257c63(0x17d)](o['UniverInstanceType'][_0x257c63(0x1eb)])[_0x257c63(0x1ef)](b[_0x257c63(0x1fc)](this[_0x257c63(0x164)]))[_0x257c63(0x13b)](_0xa74505=>{var _0x2b1157=_0x257c63;const _0x26e6cc=_0xa74505[_0x2b1157(0x178)](),_0x2b9bcf=this['_entities'][_0x2b1157(0x17a)](_0x26e6cc);_0x2b9bcf==null||_0x2b9bcf[_0x2b1157(0x1c3)]();});}async[_0xe4bc39(0x1c9)](_0x3a4db6){var _0x12d7f2=_0xe4bc39;const _0x4ec619=await this[_0x12d7f2(0x1a5)][_0x12d7f2(0x14d)](_0x3a4db6),_0xc209a=this[_0x12d7f2(0x184)][_0x12d7f2(0x1b1)](exports['LiveShareCoordinator'],_0x3a4db6,_0x4ec619);return _0xc209a['init'](),this['_entities'][_0x12d7f2(0x1e7)](_0x3a4db6,_0xc209a),_0xc209a;}},exports[_0xe4bc39(0x202)]=R([S(0x0,o[_0xe4bc39(0x126)]),S(0x1,o[_0xe4bc39(0x1a2)](o[_0xe4bc39(0x1bf)])),S(0x2,o[_0xe4bc39(0x1a2)](m['CollaborationSessionService']))],exports[_0xe4bc39(0x202)]);var h=(_0x4ac215=>(_0x4ac215[_0xe4bc39(0x1fd)]=_0xe4bc39(0x180),_0x4ac215['IDLE']=_0xe4bc39(0x1d8),_0x4ac215[_0xe4bc39(0x1a7)]=_0xe4bc39(0x1e6),_0x4ac215[_0xe4bc39(0x124)]=_0xe4bc39(0x172),_0x4ac215[_0xe4bc39(0x133)]=_0xe4bc39(0x132),_0x4ac215))(h||{});const Z=_0xe4bc39(0x1f6),J=0xc8;exports['LiveShareCoordinator']=class extends o[_0xe4bc39(0x203)]{constructor(_0x25a708,_0x4c04d8,_0x1c44f1,_0x2cb879,_0x6cc955){var _0x7ac0fb=_0xe4bc39;super(),v(this,_0x7ac0fb(0x1b8),new D[(_0x7ac0fb(0x12c))](_0x7ac0fb(0x1d8))),v(this,_0x7ac0fb(0x1cd),this['_status$']['asObservable']()),v(this,'_init',!0x1),v(this,_0x7ac0fb(0x160),null),v(this,_0x7ac0fb(0x1e4),null),(this[_0x7ac0fb(0x14b)]=_0x25a708,this[_0x7ac0fb(0x1d1)]=_0x4c04d8,this[_0x7ac0fb(0x17e)]=_0x1c44f1,this[_0x7ac0fb(0x1b4)]=_0x2cb879,this[_0x7ac0fb(0x1a0)]=_0x6cc955);}get[_0xe4bc39(0x1e9)](){var _0x12cdbd=_0xe4bc39;return this[_0x12cdbd(0x1b8)][_0x12cdbd(0x1b6)]();}[_0xe4bc39(0x1c3)](){var _0x549cbf=_0xe4bc39,_0x1b35b2;(_0x1b35b2=this[_0x549cbf(0x160)])==null||_0x1b35b2[_0x549cbf(0x1c3)](),this[_0x549cbf(0x1b8)]['next'](_0x549cbf(0x1d8)),this['_status$'][_0x549cbf(0x175)]();}[_0xe4bc39(0x143)](){var _0xcb5432=_0xe4bc39;this[_0xcb5432(0x173)]||(this[_0xcb5432(0x173)]=!0x0,this['_collabSession'][_0xcb5432(0x18e)][_0xcb5432(0x1ef)](b[_0xcb5432(0x1fc)](this[_0xcb5432(0x164)]))[_0xcb5432(0x13b)](_0x2c38e7=>{var _0x220638=_0xcb5432;switch(_0x2c38e7){case m[_0x220638(0x123)][_0x220638(0x1fd)]:this[_0x220638(0x174)]();break;case m[_0x220638(0x123)][_0x220638(0x1d3)]:this['_handleOnline']();break;}}),this[_0xcb5432(0x1d1)][_0xcb5432(0x161)]['pipe'](b[_0xcb5432(0x1fc)](this[_0xcb5432(0x164)]))[_0xcb5432(0x13b)](_0x578585=>{var _0x5dd4d5=_0xcb5432;const {eventID:_0x55191f}=_0x578585;switch(_0x55191f){case _['CollaborationEvent'][_0x5dd4d5(0x1f0)]:this[_0x5dd4d5(0x1e1)](_0x578585);break;case _[_0x5dd4d5(0x12d)]['LIVESHARE_OPERATION']:this[_0x5dd4d5(0x19f)](_0x578585);break;case _[_0x5dd4d5(0x12d)]['LIVESHARE_TERMINATE']:this[_0x5dd4d5(0x1bb)]();break;case _[_0x5dd4d5(0x12d)][_0x5dd4d5(0x16b)]:this[_0x5dd4d5(0x196)](_0x578585);break;}}));}[_0xe4bc39(0x159)](){var _0x39ff54=_0xe4bc39;this[_0x39ff54(0x1d1)][_0x39ff54(0x13e)]({'eventID':_['CollaborationEvent'][_0x39ff54(0x1ed)],'data':{'unitID':this[_0x39ff54(0x14b)],'userID':this[_0x39ff54(0x1d1)][_0x39ff54(0x1c5)]()}},this['_unitID']);}['stopPresenting'](){var _0x2d0a9d=_0xe4bc39;this['_status']===_0x2d0a9d(0x132)&&(this[_0x2d0a9d(0x1b8)]['next'](_0x2d0a9d(0x1d8)),this[_0x2d0a9d(0x1d1)][_0x2d0a9d(0x13e)]({'eventID':_[_0x2d0a9d(0x12d)][_0x2d0a9d(0x135)],'data':{'unitID':this['_unitID']}},this[_0x2d0a9d(0x14b)]));}[_0xe4bc39(0x157)](){var _0x2f039d=_0xe4bc39;this[_0x2f039d(0x1e9)]===_0x2f039d(0x172)&&(this[_0x2f039d(0x1b8)][_0x2f039d(0x16c)](_0x2f039d(0x1e6)),this['_startFollowing']());}[_0xe4bc39(0x162)](){var _0x50c364=_0xe4bc39;this[_0x50c364(0x1e9)]===_0x50c364(0x1e6)&&this[_0x50c364(0x188)]();}['_handleNewHost'](_0x546e96){var _0x290fb0=_0xe4bc39;const {presenter:_0x52cafb}=_0x546e96[_0x290fb0(0x179)],_0x36da09=this[_0x290fb0(0x1d1)]['getMemberID']();this['_presenter']=_0x52cafb,_0x52cafb===_0x36da09?(this['_stopFollowing'](),this[_0x290fb0(0x1e2)]()):this[_0x290fb0(0x1e9)]!==_0x290fb0(0x172)&&(this[_0x290fb0(0x12e)](),this[_0x290fb0(0x177)]());}[_0xe4bc39(0x152)](){var _0x2a16e8=_0xe4bc39;const _0x50ccf9={'eventID':_['CollaborationEvent'][_0x2a16e8(0x167)]};this[_0x2a16e8(0x1d1)][_0x2a16e8(0x13e)](_0x50ccf9,this[_0x2a16e8(0x14b)]);}['_handleTerminate'](){var _0x124f0c=_0xe4bc39;this['_presenter']=null,this[_0x124f0c(0x1e9)]!==_0x124f0c(0x132)&&this[_0x124f0c(0x1ee)]();}[_0xe4bc39(0x196)](_0x2160cc){var _0x44265b=_0xe4bc39;if(this['_status']===_0x44265b(0x1e6)&&this[_0x44265b(0x1e4)]===_0x2160cc['data'][_0x44265b(0x1e0)]){const _0x51315b=_[_0x44265b(0x15b)](_0x2160cc[_0x44265b(0x179)])[_0x44265b(0x146)][_0x44265b(0x170)]()['find'](_0x38c114=>_0x38c114['id']===C[_0x44265b(0x13d)]['id']);if(_0x51315b){const _0x17486b=_0x51315b[_0x44265b(0x1e5)][_0x44265b(0x1ce)],_0x215216=_0x51315b[_0x44265b(0x1e5)][_0x44265b(0x18d)]['id'];setTimeout(()=>{var _0x51667b=_0x44265b;this[_0x51667b(0x1a0)][_0x51667b(0x14e)](C[_0x51667b(0x1ac)]['id'],{'unitId':_0x17486b,'subUnitId':_0x215216},{'fromCollab':!0x0});});}}}[_0xe4bc39(0x1e2)](){var _0x545c1d=_0xe4bc39;this['_status$'][_0x545c1d(0x16c)]('presenting');const _0x1afd8f=new Map(),_0x48c785=this[_0x545c1d(0x160)]=new o['DisposableCollection']();_0x48c785[_0x545c1d(0x154)](o[_0x545c1d(0x195)](()=>{var _0x44fe95=_0x545c1d;_0x1afd8f['forEach'](_0x5504bf=>_0x5504bf[_0x44fe95(0x175)]()),_0x1afd8f[_0x44fe95(0x1c4)]();})),_0x48c785[_0x545c1d(0x154)](this['_commandService'][_0x545c1d(0x149)](_0x27b6a8=>{var _0x26a21a=_0x545c1d,_0x1f45c5;if(_0x27b6a8[_0x26a21a(0x139)]!==o[_0x26a21a(0x15d)]['OPERATION']||!this[_0x26a21a(0x1b4)][_0x26a21a(0x193)](_0x27b6a8['id']))return;const {id:_0x351155}=_0x27b6a8;let _0x3ca16c;_0x1afd8f[_0x26a21a(0x13c)](_0x351155)?_0x3ca16c=_0x1afd8f[_0x26a21a(0x17a)](_0x351155):(_0x3ca16c=new D[(_0x26a21a(0x1f3))](),_0x1afd8f[_0x26a21a(0x1e7)](_0x351155,_0x3ca16c),_0x3ca16c['pipe'](b[_0x26a21a(0x1ae)]((_0x1f45c5=this[_0x26a21a(0x17e)][_0x26a21a(0x200)](Z))!=null?_0x1f45c5:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x26a21a(0x13b)](_0x2e2d22=>{var _0x2fa95c=_0x26a21a;this[_0x2fa95c(0x1d1)]['send']({'eventID':_['CollaborationEvent'][_0x2fa95c(0x1db)],'data':{'unitID':this[_0x2fa95c(0x14b)],'operations':{[_0x2e2d22['id']]:{'id':_0x2e2d22['id'],'params':JSON[_0x2fa95c(0x1d4)](_0x2e2d22[_0x2fa95c(0x1e5)])}}}},this[_0x2fa95c(0x14b)]);})),_0x3ca16c['next'](_0x27b6a8);})),this[_0x545c1d(0x1b4)][_0x545c1d(0x141)](this[_0x545c1d(0x14b)])[_0x545c1d(0x125)](_0x5ee3f9=>this[_0x545c1d(0x1d1)][_0x545c1d(0x13e)]({'eventID':_[_0x545c1d(0x12d)][_0x545c1d(0x1db)],'data':{'unitID':this['_unitID'],'operations':{[_0x5ee3f9['id']]:{'id':_0x5ee3f9['id'],'params':JSON['stringify'](_0x5ee3f9[_0x545c1d(0x1e5)])}}}},this[_0x545c1d(0x14b)]));}[_0xe4bc39(0x12e)](){var _0x2a4a66=_0xe4bc39,_0xb715a5;this['_status$']['next'](_0x2a4a66(0x1d8)),(_0xb715a5=this[_0x2a4a66(0x160)])==null||_0xb715a5[_0x2a4a66(0x1c3)](),this[_0x2a4a66(0x160)]=null;}['_startFollowing'](){var _0x423a94=_0xe4bc39,_0x4cc7e1;(_0x4cc7e1=this[_0x423a94(0x160)])==null||_0x4cc7e1[_0x423a94(0x1c3)](),this[_0x423a94(0x1b8)][_0x423a94(0x16c)](_0x423a94(0x1e6));}[_0xe4bc39(0x1ee)](){var _0x34e06e=_0xe4bc39,_0x2047dd;this[_0x34e06e(0x1b8)][_0x34e06e(0x16c)](_0x34e06e(0x1d8)),(_0x2047dd=this[_0x34e06e(0x160)])==null||_0x2047dd[_0x34e06e(0x1c3)](),this[_0x34e06e(0x160)]=null;}[_0xe4bc39(0x188)](){var _0x42c588=_0xe4bc39,_0x3fbd36;this['_status$'][_0x42c588(0x16c)]('not-following'),(_0x3fbd36=this['_commandDisposable'])==null||_0x3fbd36[_0x42c588(0x1c3)]();}['_handleOperation'](_0x220fe0){var _0x3bffe4=_0xe4bc39;if([_0x3bffe4(0x132),_0x3bffe4(0x172),'offline']['includes'](this['_status'])||!_0x220fe0[_0x3bffe4(0x179)][_0x3bffe4(0x13f)]||_0x220fe0['data']['presenter']===this[_0x3bffe4(0x1d1)][_0x3bffe4(0x1c5)]())return;this['_status']===_0x3bffe4(0x1d8)&&this[_0x3bffe4(0x177)]();const _0x3912d0=_0x220fe0[_0x3bffe4(0x179)][_0x3bffe4(0x16a)];Object[_0x3bffe4(0x1de)](_0x3912d0)['forEach'](_0x59663b=>{var _0x5e93c2=_0x3bffe4;this[_0x5e93c2(0x1a0)]['executeCommand'](_0x59663b['id'],_0x59663b[_0x5e93c2(0x1e5)]?JSON[_0x5e93c2(0x1f4)](_0x59663b[_0x5e93c2(0x1e5)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x12905d=_0xe4bc39,_0x49824d;this['_status$'][_0x12905d(0x16c)](_0x12905d(0x180)),(_0x49824d=this[_0x12905d(0x160)])==null||_0x49824d['dispose']();}[_0xe4bc39(0x181)](){var _0x32aaec=_0xe4bc39;this[_0x32aaec(0x1b8)][_0x32aaec(0x16c)](_0x32aaec(0x1d8)),this[_0x32aaec(0x152)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0xe4bc39(0x14f)]),S(0x3,o['Inject'](O)),S(0x4,o['ICommandService'])],exports[_0xe4bc39(0x16d)]);function A(){var _0x5d88f3=_0xe4bc39;const _0x1493fb=p['useDependency'](exports[_0x5d88f3(0x202)]),_0x250dbf=p[_0x5d88f3(0x1e3)](o[_0x5d88f3(0x126)]),_0x4f876a=p[_0x5d88f3(0x121)](()=>_0x250dbf[_0x5d88f3(0x145)](o['UniverInstanceType'][_0x5d88f3(0x1eb)]),void 0x0,!0x1,[]),[_0x47fc95,_0x5ab67e]=f[_0x5d88f3(0x1a3)](null),[_0x3779b8,_0x1ec3e2]=f['useState'](h[_0x5d88f3(0x1af)]),_0x1cbcd4=f[_0x5d88f3(0x197)](null);return f[_0x5d88f3(0x11d)](()=>(_0x4f876a&&_0x1493fb[_0x5d88f3(0x12a)](_0x4f876a[_0x5d88f3(0x178)]())['then'](_0xbcbe2b=>{var _0x1c5777=_0x5d88f3;_0x5ab67e(_0xbcbe2b),_0x1cbcd4[_0x1c5777(0x1a4)]=_0xbcbe2b['status$'][_0x1c5777(0x13b)](_0x3921b3=>{_0x1ec3e2(_0x3921b3);});}),()=>{var _0x413db2=_0x5d88f3,_0x15641d;(_0x15641d=_0x1cbcd4[_0x413db2(0x1a4)])==null||_0x15641d[_0x413db2(0x192)](),_0x1cbcd4[_0x413db2(0x1a4)]=null;}),[_0x4f876a,_0x1493fb]),_0x47fc95?l[_0x5d88f3(0x12b)](g[_0x5d88f3(0x183)],{'align':_0x5d88f3(0x1d9),'disabled':_0x3779b8===h['OFFLINE'],'className':_0x5d88f3(0x1da),'overlay':l[_0x5d88f3(0x12b)](K,{'status':_0x3779b8,'coordinator':_0x47fc95}),'children':l[_0x5d88f3(0x12b)](_0x5d88f3(0x169),{'className':g[_0x5d88f3(0x14a)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3779b8===h[_0x5d88f3(0x1fd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3779b8!==h[_0x5d88f3(0x1fd)]}),'type':_0x5d88f3(0x169),'children':l[_0x5d88f3(0x12b)](P,{'className':_0x5d88f3(0x1a6)})})}):null;}function K(_0x15f226){var _0x54f8ca=_0xe4bc39;const {status:_0x24a2db,coordinator:_0x14c758}=_0x15f226;switch(_0x24a2db){case h[_0x54f8ca(0x1af)]:return l[_0x54f8ca(0x12b)](z,{'coordinator':_0x14c758});case h[_0x54f8ca(0x1a7)]:return l['jsx'](Q,{'coordinator':_0x14c758});case h[_0x54f8ca(0x124)]:return l[_0x54f8ca(0x12b)](X,{'coordinator':_0x14c758});case h[_0x54f8ca(0x1fd)]:return l['jsx'](te,{});case h[_0x54f8ca(0x133)]:return l[_0x54f8ca(0x12b)](ee,{'coordinator':_0x14c758});default:return null;}}function z(_0x30572a){var _0x25706a=_0xe4bc39;const {coordinator:_0x507e39}=_0x30572a;return l['jsxs'](l['Fragment'],{'children':[l['jsx'](_0x25706a(0x1d5),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x25706a(0x11f)}),l[_0x25706a(0x12b)](g[_0x25706a(0x18b)],{'onClick':()=>_0x507e39[_0x25706a(0x159)](),'children':_0x25706a(0x18a)})]});}function Q(_0x3811ff){var _0x50fa13=_0xe4bc39;const {coordinator:_0x273e61}=_0x3811ff;return l[_0x50fa13(0x15f)](l[_0x50fa13(0x1a9)],{'children':[l[_0x50fa13(0x12b)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x50fa13(0x1d6)}),l[_0x50fa13(0x12b)](g[_0x50fa13(0x18b)],{'onClick':()=>_0x273e61[_0x50fa13(0x162)](),'children':_0x50fa13(0x138)})]});}function X(_0x5478c4){var _0x361bfc=_0xe4bc39;const {coordinator:_0x4f71c3}=_0x5478c4;return l[_0x361bfc(0x15f)](l['Fragment'],{'children':[l[_0x361bfc(0x12b)](_0x361bfc(0x1d5),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x361bfc(0x12b)](g[_0x361bfc(0x18b)],{'variant':_0x361bfc(0x1cf),'onClick':()=>_0x4f71c3[_0x361bfc(0x157)](),'children':_0x361bfc(0x205)})]});}function ee(_0x51789f){var _0x1ad809=_0xe4bc39;const {coordinator:_0x4f03fe}=_0x51789f;return l['jsxs'](l[_0x1ad809(0x1a9)],{'children':[l[_0x1ad809(0x12b)]('div',{'className':_0x1ad809(0x204),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x1ad809(0x12b)](g['Button'],{'variant':_0x1ad809(0x1fe),'onClick':()=>_0x4f03fe[_0x1ad809(0x155)](),'children':_0x1ad809(0x1f2)})]});}function te(){var _0x1feafe=_0xe4bc39;return l[_0x1feafe(0x12b)](l['Fragment'],{'children':'You\x27are\x20offline.'});}function _0x593a(){var _0x1c72a2=['Start\x20following','use','useEffect','getOwnPropertySymbols','Present\x20this\x20document','propertyIsEnumerable','useObservable','getOwnPropertyDescriptor','SessionStatus','NOT_FOLLOWING','forEach','IUniverInstanceService','colorChannel1','1856547GDQVSu','mask','getLiveShareCoordinator','jsx','BehaviorSubject','CollaborationEvent','_stopPresenting','from','concat','UniverLiveSharePlugin','presenting','PRESENTING','replace','LIVESHARE_TERMINATE','children','SetScrollOperation','Stop\x20following','type','tag','subscribe','has','InsertSheetMutation','send','presenter','prototype','getInitialStates','21SSaoXP','init','touchDependencies','getCurrentTypeOfUnit$','mutations','indexOf','url(#$1','onCommandExecuted','clsx','_unitID','assign','requireSession','executeCommand','IConfigService','UniverInstanceType','IUIPartsService','_fetchOperations','10rKpeiL','add','stopPresenting','1em','startFollowing','length','tryStartPresenting','getTypeOfUnitAdded$','parseProtocolChangeset','10066023GKvMEF','CommandType','31yZmcEy','jsxs','_commandDisposable','event$','stopFollowing','_uiPartsService','dispose$','symbol','LiveShare','LIVESHARE_FETCH_OPERATIONS','UNIVER_LIVE_SHARE_PLUGIN','button','operations','NEW_CHANGESETS','next','LiveShareCoordinator','evenodd','pluginName','reverse','_config','not-following','_init','_handleOffline','complete','substring','_startFollowing','getUnitId','data','get','Disposable','includes','getTypeOfUnitDisposed$','_configService','univerjs-icon\x20univerjs-icon-','offline','_handleOnline','attrs','Dropdown','_injector','forwardRef','call','DesktopLiveShareController','_stopFollowing','extend','Start','Button','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','sheet','sessionStatus$','icon','2199160EvsxGZ','className','unsubscribe','shouldShareOperation','0\x200\x2017\x2017','toDisposable','_handleNewChangeSets','useRef','LiveShareIcon','SetZoomRatioOperation','_entities','5873435HFQGEe','string','_univerInstanceService','map','_handleOperation','_commandService','HEADER_MENU','Inject','useState','current','_collabSessionService','univer-size-4','FOLLOWING','24196UnfPJV','Fragment','live-share-icon','currentColor','SetWorksheetActiveOperation','override','throttleTime','IDLE','UniverCollaborationClientPlugin','createInstance','random','entries','_liveShareService','_mountLiveShare','getValue','_sharedOperations','_status$','trim','http://www.w3.org/2000/svg','_handleTerminate','idSuffix','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','4czGhum','Injector','merge','onStarting','registerSharedOperation','dispose','clear','getMemberID','defIds','delete','toString','_startLiveShareCoordinator','live-share.config','2841090txxSfU','mergeOverrideWithDependencies','status$','unitId','text','LiveShareStatus','_collabSession','UNIVER_UNKNOWN','ONLINE','stringify','div','You\x27re\x20following\x20the\x20presenter','UniverIcon','idle','end','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','LIVESHARE_OPERATION','xlink:href','createElement','values','path','memberID','_handleNewHost','_startPresenting','useDependency','_presenter','params','following','set','function','_status','svg','UNIVER_SHEET','displayName','LIVESHARE_REQUEST_HOST','_beIdle','pipe','LIVESHARE_NEW_HOST','defineProperty','Stop\x20presenting','Subject','parse','disposeWithMe','SAME_OPERATION_SHARE_INTERVAL','none','BuiltInUIPart','_reporters','3945303QkxHii','toStringTag','takeUntil','OFFLINE','default','registerInitialStateReporter','getConfig','defs','LiveShareController','RxDisposable','univer-mb-3\x20univer-w-full\x20univer-text-sm'];_0x593a=function(){return _0x1c72a2;};return _0x593a();}var ie=Object[_0xe4bc39(0x122)],ne=(_0x524821,_0x55ff6e,_0x4346ae,_0x31d35a)=>{var _0xf1c275=_0xe4bc39;for(var _0x51fb83=_0x31d35a>0x1?void 0x0:_0x31d35a?ie(_0x55ff6e,_0x4346ae):_0x55ff6e,_0x5b6eed=_0x524821[_0xf1c275(0x158)]-0x1,_0x18ed48;_0x5b6eed>=0x0;_0x5b6eed--)(_0x18ed48=_0x524821[_0x5b6eed])&&(_0x51fb83=_0x18ed48(_0x51fb83)||_0x51fb83);return _0x51fb83;},L=(_0x21e16e,_0x5af178)=>(_0x4954bd,_0x3091ff)=>_0x5af178(_0x4954bd,_0x3091ff,_0x21e16e);exports[_0xe4bc39(0x187)]=class extends o[_0xe4bc39(0x17b)]{constructor(_0x352372,_0x1cb45a){var _0x519802=_0xe4bc39;super(),this['_injector']=_0x352372,this[_0x519802(0x163)]=_0x1cb45a,this[_0x519802(0x1b5)]();}[_0xe4bc39(0x1b5)](){var _0x8f03e4=_0xe4bc39;this[_0x8f03e4(0x1f5)](this[_0x8f03e4(0x163)]['registerComponent'](p[_0x8f03e4(0x1f8)][_0x8f03e4(0x1a1)],()=>p['connectInjector'](A,this['_injector'])));}},exports['DesktopLiveShareController']=ne([L(0x0,o[_0xe4bc39(0x1a2)](o['Injector'])),L(0x1,p[_0xe4bc39(0x151)])],exports[_0xe4bc39(0x187)]);var re=Object[_0xe4bc39(0x1f1)],se=Object[_0xe4bc39(0x122)],oe=(_0x8efbf3,_0x34bcb8,_0x24669c)=>_0x34bcb8 in _0x8efbf3?re(_0x8efbf3,_0x34bcb8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24669c}):_0x8efbf3[_0x34bcb8]=_0x24669c,ae=(_0x25ea25,_0x49b2ee,_0x40ef2c,_0x3a636b)=>{for(var _0x149b38=_0x3a636b>0x1?void 0x0:_0x3a636b?se(_0x49b2ee,_0x40ef2c):_0x49b2ee,_0x31add5=_0x25ea25['length']-0x1,_0x38ac61;_0x31add5>=0x0;_0x31add5--)(_0x38ac61=_0x25ea25[_0x31add5])&&(_0x149b38=_0x38ac61(_0x149b38)||_0x149b38);return _0x149b38;},N=(_0x2df2b1,_0x1b760c)=>(_0x4a701f,_0x3042ee)=>_0x1b760c(_0x4a701f,_0x3042ee,_0x2df2b1),T=(_0x4d49b8,_0x4780b8,_0x63d897)=>oe(_0x4d49b8,typeof _0x4780b8!=_0xe4bc39(0x165)?_0x4780b8+'':_0x4780b8,_0x63d897);const le=_0xe4bc39(0x168);exports[_0xe4bc39(0x131)]=class extends o['Plugin']{constructor(_0xa1c381=x,_0x537fdf,_0x5cef9b){var _0x3c2c35=_0xe4bc39;super(),this[_0x3c2c35(0x171)]=_0xa1c381,this['_injector']=_0x537fdf,this[_0x3c2c35(0x17e)]=_0x5cef9b;const {..._0x2642b6}=o[_0x3c2c35(0x1c0)]({},x,this[_0x3c2c35(0x171)]);this['_configService']['setConfig']($,_0x2642b6);}[_0xe4bc39(0x1c1)](){var _0x32edd6=_0xe4bc39;o['registerDependencies'](this[_0x32edd6(0x184)],o[_0x32edd6(0x1cc)]([[O],[exports[_0x32edd6(0x202)]],[E],[exports[_0x32edd6(0x187)]]],this[_0x32edd6(0x171)][_0x32edd6(0x1ad)])),o[_0x32edd6(0x144)](this[_0x32edd6(0x184)],[[E]]);}['onRendered'](){var _0x2a6b09=_0xe4bc39;o[_0x2a6b09(0x144)](this['_injector'],[[exports[_0x2a6b09(0x187)]]]);}},T(exports[_0xe4bc39(0x131)],_0xe4bc39(0x139),o['UniverInstanceType'][_0xe4bc39(0x1d2)]),T(exports[_0xe4bc39(0x131)],_0xe4bc39(0x16f),le),exports[_0xe4bc39(0x131)]=ae([o['DependentOn'](m[_0xe4bc39(0x1b0)]),N(0x1,o['Inject'](o[_0xe4bc39(0x1bf)])),N(0x2,o['IConfigService'])],exports[_0xe4bc39(0x131)]),exports[_0xe4bc39(0x166)]=A,exports['LiveShareService']=O,exports[_0xe4bc39(0x1d0)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x512809=_0x18ad;(function(_0x522e3e,_0x560a95){var _0x163ba2=_0x18ad,_0x36df1f=_0x522e3e();while(!![]){try{var _0x40e2cf=-parseInt(_0x163ba2(0x1e3))/0x1*(parseInt(_0x163ba2(0x24a))/0x2)+-parseInt(_0x163ba2(0x223))/0x3*(parseInt(_0x163ba2(0x219))/0x4)+-parseInt(_0x163ba2(0x22c))/0x5*(parseInt(_0x163ba2(0x1f0))/0x6)+parseInt(_0x163ba2(0x1ba))/0x7+-parseInt(_0x163ba2(0x20e))/0x8*(-parseInt(_0x163ba2(0x1f6))/0x9)+parseInt(_0x163ba2(0x259))/0xa*(-parseInt(_0x163ba2(0x244))/0xb)+-parseInt(_0x163ba2(0x232))/0xc*(-parseInt(_0x163ba2(0x1d9))/0xd);if(_0x40e2cf===_0x560a95)break;else _0x36df1f['push'](_0x36df1f['shift']());}catch(_0x124fa1){_0x36df1f['push'](_0x36df1f['shift']());}}}(_0x61f5,0x67560));var q=Object['defineProperty'],z=(_0x68fa00,_0x26e74e,_0x33a528)=>_0x26e74e in _0x68fa00?q(_0x68fa00,_0x26e74e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33a528}):_0x68fa00[_0x26e74e]=_0x33a528,d=(_0x3b6272,_0xafedd1,_0x209c2f)=>z(_0x3b6272,typeof _0xafedd1!='symbol'?_0xafedd1+'':_0xafedd1,_0x209c2f);import{CollaborationSessionService as _0x1f7d72,SessionStatus as _0x3d4f4e,UniverCollaborationClientPlugin as _0xc07b40}from'@univerjs-pro/collaboration-client';import{Disposable as _0x53ac40,toDisposable as _0x526a75,Inject as _0x30a9c5,IUniverInstanceService as _0xa0d390,Injector as _0x21b692,IConfigService as _0x1caea7,ICommandService as _0x388a0d,RxDisposable as _0x3535cf,UniverInstanceType as _0x12828d,DisposableCollection as _0xd5101f,CommandType as _0x2ec5f9,DependentOn as _0x352ef8,Plugin as _0x2850ce,merge as _0x4a6d52,registerDependencies as _0x1f5629,mergeOverrideWithDependencies as _0x3defda,touchDependencies as _0x397a1f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x390ceb,InsertSheetMutation as _0x10745a}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x60fb13,SetScrollOperation as _0x3a2380}from'@univerjs/sheets-ui';function _0x61f5(){var _0xe6bb77=['startFollowing','currentColor','path','51diWzYn','dispose$','_injector','UNIVER_UNKNOWN','univer-size-4','_commandDisposable','has','getValue','end','5MsckrV','pipe','trim','_beIdle','shouldShareOperation','stopFollowing','235344kpwNSU','get','getCurrentTypeOfUnit$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','propertyIsEnumerable','evenodd','hasOwnProperty','url(#$1','FOLLOWING','Stop\x20following','override','_startPresenting','_reporters','unsubscribe','complete','_handleNewHost','_status','IDLE','11SUGuYM','requireSession','delete','svg','0\x200\x2017\x2017','type','2XmIxfA','_stopPresenting','createInstance','current','getTypeOfUnitAdded$','defineProperty','entries','idSuffix','getMemberID','getOwnPropertySymbols','substring','symbol','OPERATION','unitId','sheet','5208270wjeQAS','LiveShareIcon','colorChannel1','_stopFollowing','getInitialStates','next','LIVESHARE_REQUEST_HOST','add','live-share-icon','not-following','random','extend','data','You\x27re\x20presenting\x20the\x20document','Present\x20this\x20document','concat','_presenter','_status$','stringify','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','Stop\x20presenting','executeCommand','2063320ArzqQR','UNIVER_SHEET','LIVESHARE_NEW_HOST','xlink:href','_handleOperation','registerSharedOperation','_config','defIds','mask','HEADER_MENU','onRendered','_liveShareService','following','_mountLiveShare','memberID','default','univer-mb-3\x20univer-w-full\x20univer-text-sm','dispose','_fetchOperations','_collabSessionService','displayName','icon','_startFollowing','LIVESHARE_TERMINATE','_sharedOperations','values','_unitID','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','idle','_init','715gDfhTV','univerjs-icon\x20univerjs-icon-','registerComponent','_handleOffline','OFFLINE','attrs','_handleTerminate','none','operations','status$','168323nolGAz','offline','_uiPartsService','params','length','_commandService','tag','live-share.config','parse','map','forEach','prototype','send','3601332gNYlWE','string','NOT_FOLLOWING','disposeWithMe','stopPresenting','You\x27re\x20not\x20following\x20the\x20presenter','2745UEwChE','_configService','button','set','then','getOwnPropertyDescriptor','onStarting','className','_collabSession','subscribe','asObservable','init','1em','presenting','includes','presenter','replace','fill','setConfig','call','_handleOnline','div','getUnitId','http://www.w3.org/2000/svg','16472LfavXE','You\x27are\x20offline.','_univerInstanceService','LIVESHARE_OPERATION','getTypeOfUnitDisposed$','_entities','children','clear','ONLINE','Start','indexOf','67948uYCsQg','getConfig','_startLiveShareCoordinator','NEW_CHANGESETS','sessionStatus$','getLiveShareCoordinator','apply'];_0x61f5=function(){return _0xe6bb77;};return _0x61f5();}import{useDependency as _0x48897c,useObservable as _0x14654c,IUIPartsService as _0x44b862,BuiltInUIPart as _0x8c4c5d,connectInjector as _0x29aac4}from'@univerjs/ui';function _0x18ad(_0x12b7b8,_0x49ea19){var _0x61f580=_0x61f5();return _0x18ad=function(_0x18ad3e,_0x331913){_0x18ad3e=_0x18ad3e-0x1b5;var _0x51d98c=_0x61f580[_0x18ad3e];return _0x51d98c;},_0x18ad(_0x12b7b8,_0x49ea19);}import{jsx as _0xe2c74b,jsxs as _0x1774fb,Fragment as _0x315a05}from'react/jsx-runtime';import{Dropdown as _0x5212b4,clsx as _0x11bf78,Button as _0x461148}from'@univerjs/design';import{forwardRef as _0x23e84d,useRef as _0x9bf347,createElement as _0x2e64a6,useState as _0x5573ca,useEffect as _0x36bfdc}from'react';import{CollaborationEvent as _0x46c596,parseProtocolChangeset as _0x598281}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5d9b35,Subject as _0x2b4590}from'rxjs';import{takeUntil as _0x3267ce,throttleTime as _0x214502}from'rxjs/operators';const Oe=_0x512809(0x1ea),T={};class L extends _0x53ac40{constructor(){var _0x5ccad9=_0x512809;super(...arguments),d(this,_0x5ccad9(0x1d2),new Set()),d(this,_0x5ccad9(0x23e),new Set());}[_0x512809(0x1bf)](_0x504f1d){var _0x44866b=_0x512809;return this[_0x44866b(0x1d2)][_0x44866b(0x260)](_0x504f1d),_0x526a75(()=>this['_sharedOperations'][_0x44866b(0x246)](_0x504f1d));}['registerInitialStateReporter'](_0x4e099c){var _0x52ba54=_0x512809;return this[_0x52ba54(0x23e)][_0x52ba54(0x260)](_0x4e099c),_0x526a75(()=>this[_0x52ba54(0x23e)][_0x52ba54(0x246)](_0x4e099c));}[_0x512809(0x230)](_0xb69326){var _0x1bd05e=_0x512809;return this[_0x1bd05e(0x1d2)][_0x1bd05e(0x229)](_0xb69326);}[_0x512809(0x25d)](_0x154a4a){var _0x520ba7=_0x512809;return Array['from'](this['_reporters'])[_0x520ba7(0x1ec)](_0x27a6e6=>_0x27a6e6(_0x154a4a));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x3e12d3,_0x24860c,_0x31faea,_0x100d8c)=>{var _0x126cb1=_0x512809;for(var _0x4432c9=_0x100d8c>0x1?void 0x0:_0x100d8c?Ee(_0x24860c,_0x31faea):_0x24860c,_0x1b71f0=_0x3e12d3[_0x126cb1(0x1e7)]-0x1,_0x11d99f;_0x1b71f0>=0x0;_0x1b71f0--)(_0x11d99f=_0x3e12d3[_0x1b71f0])&&(_0x4432c9=_0x11d99f(_0x4432c9)||_0x4432c9);return _0x4432c9;},Ne=(_0xfaafb,_0x11f4ea)=>(_0x18b947,_0x1d8d0d)=>_0x11f4ea(_0x18b947,_0x1d8d0d,_0xfaafb);let m=class extends _0x53ac40{constructor(_0x1fb8e8){var _0x3c159f=_0x512809;super(),this[_0x3c159f(0x1c5)]=_0x1fb8e8,this[_0x3c159f(0x1d8)]();}[_0x512809(0x1d8)](){var _0x353816=_0x512809;[_0x60fb13['id'],_0x3a2380['id'],_0x390ceb['id']][_0x353816(0x1ed)](_0x562e3c=>{var _0xbab10f=_0x353816;this['disposeWithMe'](this[_0xbab10f(0x1c5)][_0xbab10f(0x1bf)](_0x562e3c));});}};m=we([Ne(0x0,_0x30a9c5(L))],m);var c=function(){var _0x57d78e=_0x512809;return c=Object['assign']||function(_0x4ace82){var _0x67c959=_0x18ad;for(var _0x506049,_0x1b21fb=0x1,_0x4ecbf1=arguments['length'];_0x1b21fb<_0x4ecbf1;_0x1b21fb++){_0x506049=arguments[_0x1b21fb];for(var _0x2cac5b in _0x506049)Object[_0x67c959(0x1ee)][_0x67c959(0x238)][_0x67c959(0x209)](_0x506049,_0x2cac5b)&&(_0x4ace82[_0x2cac5b]=_0x506049[_0x2cac5b]);}return _0x4ace82;},c[_0x57d78e(0x21f)](this,arguments);},Ce=function(_0xaf3767,_0x4d9e48){var _0x179d21=_0x512809,_0x3452ba={};for(var _0x423d8e in _0xaf3767)Object[_0x179d21(0x1ee)][_0x179d21(0x238)][_0x179d21(0x209)](_0xaf3767,_0x423d8e)&&_0x4d9e48[_0x179d21(0x218)](_0x423d8e)<0x0&&(_0x3452ba[_0x423d8e]=_0xaf3767[_0x423d8e]);if(_0xaf3767!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x5b4eb3=0x0,_0x423d8e=Object[_0x179d21(0x253)](_0xaf3767);_0x5b4eb3<_0x423d8e[_0x179d21(0x1e7)];_0x5b4eb3++)_0x4d9e48[_0x179d21(0x218)](_0x423d8e[_0x5b4eb3])<0x0&&Object['prototype'][_0x179d21(0x236)][_0x179d21(0x209)](_0xaf3767,_0x423d8e[_0x5b4eb3])&&(_0x3452ba[_0x423d8e[_0x5b4eb3]]=_0xaf3767[_0x423d8e[_0x5b4eb3]]);}return _0x3452ba;},W=_0x23e84d(function(_0x35eeb2,_0x252419){var _0x4c5a89=_0x512809,_0x5365af=_0x35eeb2[_0x4c5a89(0x1cf)],_0x5b1619=_0x35eeb2['id'],_0x436ecf=_0x35eeb2['className'],_0x19012d=_0x35eeb2[_0x4c5a89(0x264)],_0x5c0195=Ce(_0x35eeb2,['icon','id',_0x4c5a89(0x1fd),_0x4c5a89(0x264)]),_0x214dc1=_0x4c5a89(0x1da)[_0x4c5a89(0x268)](_0x5b1619,'\x20')[_0x4c5a89(0x268)](_0x436ecf||'')[_0x4c5a89(0x22e)](),_0x43cd7b=_0x9bf347('_'['concat'](Le()));return Y(_0x5365af,''[_0x4c5a89(0x268)](_0x5b1619),{'defIds':_0x5365af[_0x4c5a89(0x1c1)],'idSuffix':_0x43cd7b[_0x4c5a89(0x24d)]},c({'ref':_0x252419,'className':_0x214dc1},_0x5c0195),_0x19012d);});function Y(_0x2a805b,_0x38fc5b,_0x59ff1f,_0x35f12a,_0x32f42f){var _0x18223e=_0x512809;return _0x2e64a6(_0x2a805b[_0x18223e(0x1e9)],c(c({'key':_0x38fc5b},De(_0x2a805b,_0x59ff1f,_0x32f42f)),_0x35f12a),(xe(_0x2a805b,_0x59ff1f)['children']||[])[_0x18223e(0x1ec)](function(_0x44ab5e,_0x33eab0){var _0x400984=_0x18223e;return Y(_0x44ab5e,''[_0x400984(0x268)](_0x38fc5b,'-')[_0x400984(0x268)](_0x2a805b['tag'],'-')['concat'](_0x33eab0),_0x59ff1f,void 0x0,_0x32f42f);}));}function De(_0x539084,_0x1301e8,_0x3cf017){var _0x232a8e=_0x512809,_0x33cb35=c({},_0x539084['attrs']);_0x3cf017!=null&&_0x3cf017['colorChannel1']&&_0x33cb35[_0x232a8e(0x207)]===_0x232a8e(0x25b)&&(_0x33cb35[_0x232a8e(0x207)]=_0x3cf017[_0x232a8e(0x25b)]),_0x539084['tag']===_0x232a8e(0x1c2)&&_0x33cb35['id']&&(_0x33cb35['id']=_0x33cb35['id']+_0x1301e8['idSuffix']),Object[_0x232a8e(0x250)](_0x33cb35)[_0x232a8e(0x1ed)](function(_0x30ed3f){var _0x2dd39f=_0x232a8e,_0x362da3=_0x30ed3f[0x0],_0x4fc163=_0x30ed3f[0x1];_0x362da3===_0x2dd39f(0x1c2)&&typeof _0x4fc163==_0x2dd39f(0x1f1)&&(_0x33cb35[_0x362da3]=_0x4fc163[_0x2dd39f(0x206)](/url\(#(.*)\)/,_0x2dd39f(0x239)[_0x2dd39f(0x268)](_0x1301e8['idSuffix'],')')));});var _0x1ce168=_0x1301e8[_0x232a8e(0x1c1)];return!_0x1ce168||_0x1ce168[_0x232a8e(0x1e7)]===0x0||(_0x539084[_0x232a8e(0x1e9)]==='use'&&_0x33cb35[_0x232a8e(0x1bd)]&&(_0x33cb35[_0x232a8e(0x1bd)]=_0x33cb35[_0x232a8e(0x1bd)]+_0x1301e8['idSuffix']),Object['entries'](_0x33cb35)[_0x232a8e(0x1ed)](function(_0x219945){var _0x12af84=_0x232a8e,_0x3298ad=_0x219945[0x0],_0x3e59a3=_0x219945[0x1];typeof _0x3e59a3==_0x12af84(0x1f1)&&(_0x33cb35[_0x3298ad]=_0x3e59a3['replace'](/url\(#(.*)\)/,_0x12af84(0x239)[_0x12af84(0x268)](_0x1301e8['idSuffix'],')')));})),_0x33cb35;}function xe(_0x2e02f4,_0x1688b5){var _0x15914f=_0x512809,_0x5600cd,_0x551177=_0x1688b5['defIds'];return!_0x551177||_0x551177['length']===0x0?_0x2e02f4:_0x2e02f4[_0x15914f(0x1e9)]==='defs'&&(!((_0x5600cd=_0x2e02f4['children'])===null||_0x5600cd===void 0x0)&&_0x5600cd[_0x15914f(0x1e7)])?c(c({},_0x2e02f4),{'children':_0x2e02f4[_0x15914f(0x214)][_0x15914f(0x1ec)](function(_0x5394b6){var _0xe30fcb=_0x15914f;return typeof _0x5394b6[_0xe30fcb(0x1de)]['id']=='string'&&_0x551177&&_0x551177[_0xe30fcb(0x204)](_0x5394b6[_0xe30fcb(0x1de)]['id'])?c(c({},_0x5394b6),{'attrs':c(c({},_0x5394b6[_0xe30fcb(0x1de)]),{'id':_0x5394b6[_0xe30fcb(0x1de)]['id']+_0x1688b5[_0xe30fcb(0x251)]})}):_0x5394b6;})}):_0x2e02f4;}function Le(){var _0x559577=_0x512809;return Math[_0x559577(0x263)]()['toString'](0x24)[_0x559577(0x254)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x512809(0x247),'attrs':{'xmlns':_0x512809(0x20d),'fill':_0x512809(0x1e0),'viewBox':_0x512809(0x248),'width':_0x512809(0x202),'height':_0x512809(0x202)},'children':[{'tag':_0x512809(0x222),'attrs':{'fill':_0x512809(0x221),'d':_0x512809(0x1b7)}},{'tag':_0x512809(0x222),'attrs':{'fill':_0x512809(0x221),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x512809(0x237),'clipRule':_0x512809(0x237)}}]},B=_0x23e84d(function(_0x42c166,_0x47842e){var _0x398877=_0x512809;return _0x2e64a6(W,Object['assign']({},_0x42c166,{'id':_0x398877(0x261),'ref':_0x47842e,'icon':ye}));});B[_0x512809(0x1ce)]=_0x512809(0x25a);var Re=Object[_0x512809(0x1fb)],Z=(_0x5a0b21,_0x1b1996,_0x272cbc,_0x17e8e9)=>{var _0x4ee099=_0x512809;for(var _0x455e8e=_0x17e8e9>0x1?void 0x0:_0x17e8e9?Re(_0x1b1996,_0x272cbc):_0x1b1996,_0x7b7713=_0x5a0b21[_0x4ee099(0x1e7)]-0x1,_0x49ff6a;_0x7b7713>=0x0;_0x7b7713--)(_0x49ff6a=_0x5a0b21[_0x7b7713])&&(_0x455e8e=_0x49ff6a(_0x455e8e)||_0x455e8e);return _0x455e8e;},f=(_0x3a694d,_0x42c9d8)=>(_0x22a24b,_0x4d38d2)=>_0x42c9d8(_0x22a24b,_0x4d38d2,_0x3a694d);let I=class extends _0x3535cf{constructor(_0x24d818,_0x32303a,_0x20cb24){var _0x3feaed=_0x512809;super(),d(this,_0x3feaed(0x213),new Map()),(this[_0x3feaed(0x210)]=_0x24d818,this['_injector']=_0x32303a,this[_0x3feaed(0x1cd)]=_0x20cb24,this[_0x3feaed(0x1d8)]());}async[_0x512809(0x21e)](_0x5cdf3c){var _0x394492=_0x512809;return this[_0x394492(0x213)][_0x394492(0x229)](_0x5cdf3c)||await this[_0x394492(0x21b)](_0x5cdf3c),this[_0x394492(0x213)][_0x394492(0x233)](_0x5cdf3c);}['_init'](){var _0x7b76ac=_0x512809;this['_univerInstanceService'][_0x7b76ac(0x24e)](_0x12828d[_0x7b76ac(0x1bb)])['pipe'](_0x3267ce(this[_0x7b76ac(0x224)]))['subscribe'](async _0x316d0a=>{var _0xfdbc99=_0x7b76ac;const _0x560061=_0x316d0a[_0xfdbc99(0x20c)]();this[_0xfdbc99(0x213)][_0xfdbc99(0x229)](_0x560061)||this[_0xfdbc99(0x21b)](_0x560061);}),this[_0x7b76ac(0x210)][_0x7b76ac(0x212)](_0x12828d[_0x7b76ac(0x1bb)])[_0x7b76ac(0x22d)](_0x3267ce(this[_0x7b76ac(0x224)]))['subscribe'](_0x5a06eb=>{var _0xe40c16=_0x7b76ac;const _0x40e484=_0x5a06eb['getUnitId'](),_0x59b270=this['_entities']['get'](_0x40e484);_0x59b270==null||_0x59b270[_0xe40c16(0x1cb)]();});}async[_0x512809(0x21b)](_0x299e38){var _0x109118=_0x512809;const _0x897ae4=await this[_0x109118(0x1cd)][_0x109118(0x245)](_0x299e38),_0x5254d2=this[_0x109118(0x225)][_0x109118(0x24c)](C,_0x299e38,_0x897ae4);return _0x5254d2['init'](),this['_entities'][_0x109118(0x1f9)](_0x299e38,_0x5254d2),_0x5254d2;}};I=Z([f(0x0,_0xa0d390),f(0x1,_0x30a9c5(_0x21b692)),f(0x2,_0x30a9c5(_0x1f7d72))],I);var h=(_0x1bd8c6=>(_0x1bd8c6[_0x512809(0x1dd)]=_0x512809(0x1e4),_0x1bd8c6[_0x512809(0x243)]='idle',_0x1bd8c6[_0x512809(0x23a)]=_0x512809(0x1c6),_0x1bd8c6[_0x512809(0x1f2)]=_0x512809(0x262),_0x1bd8c6['PRESENTING']=_0x512809(0x203),_0x1bd8c6))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x3535cf{constructor(_0x107549,_0x41b26f,_0x2ad2f6,_0xb42cdf,_0x46da28){var _0xc8f317=_0x512809;super(),d(this,_0xc8f317(0x1b5),new _0x5d9b35('idle')),d(this,_0xc8f317(0x1e2),this['_status$'][_0xc8f317(0x200)]()),d(this,_0xc8f317(0x1d8),!0x1),d(this,_0xc8f317(0x228),null),d(this,_0xc8f317(0x269),null),(this[_0xc8f317(0x1d4)]=_0x107549,this[_0xc8f317(0x1fe)]=_0x41b26f,this['_configService']=_0x2ad2f6,this[_0xc8f317(0x1c5)]=_0xb42cdf,this[_0xc8f317(0x1e8)]=_0x46da28);}get[_0x512809(0x242)](){var _0x3186b1=_0x512809;return this['_status$'][_0x3186b1(0x22a)]();}[_0x512809(0x1cb)](){var _0x4e97f7=_0x512809,_0x385e41;(_0x385e41=this[_0x4e97f7(0x228)])==null||_0x385e41[_0x4e97f7(0x1cb)](),this['_status$'][_0x4e97f7(0x25e)](_0x4e97f7(0x1d7)),this[_0x4e97f7(0x1b5)][_0x4e97f7(0x240)]();}[_0x512809(0x201)](){var _0x208335=_0x512809;this[_0x208335(0x1d8)]||(this[_0x208335(0x1d8)]=!0x0,this[_0x208335(0x1fe)][_0x208335(0x21d)][_0x208335(0x22d)](_0x3267ce(this[_0x208335(0x224)]))[_0x208335(0x1ff)](_0x3d663e=>{var _0x4bbee4=_0x208335;switch(_0x3d663e){case _0x3d4f4e[_0x4bbee4(0x1dd)]:this[_0x4bbee4(0x1dc)]();break;case _0x3d4f4e[_0x4bbee4(0x216)]:this[_0x4bbee4(0x20a)]();break;}}),this['_collabSession']['event$'][_0x208335(0x22d)](_0x3267ce(this['dispose$']))[_0x208335(0x1ff)](_0x49efb3=>{var _0x320493=_0x208335;const {eventID:_0x1349af}=_0x49efb3;switch(_0x1349af){case _0x46c596[_0x320493(0x1bc)]:this[_0x320493(0x241)](_0x49efb3);break;case _0x46c596[_0x320493(0x211)]:this['_handleOperation'](_0x49efb3);break;case _0x46c596[_0x320493(0x1d1)]:this[_0x320493(0x1df)]();break;case _0x46c596[_0x320493(0x21c)]:this['_handleNewChangeSets'](_0x49efb3);break;}}));}[_0x512809(0x1d6)](){var _0x544832=_0x512809;this[_0x544832(0x1fe)]['send']({'eventID':_0x46c596[_0x544832(0x25f)],'data':{'unitID':this['_unitID'],'userID':this[_0x544832(0x1fe)][_0x544832(0x252)]()}},this[_0x544832(0x1d4)]);}[_0x512809(0x1f4)](){var _0x3f6b43=_0x512809;this[_0x3f6b43(0x242)]===_0x3f6b43(0x203)&&(this['_status$'][_0x3f6b43(0x25e)]('idle'),this[_0x3f6b43(0x1fe)][_0x3f6b43(0x1ef)]({'eventID':_0x46c596[_0x3f6b43(0x1d1)],'data':{'unitID':this['_unitID']}},this[_0x3f6b43(0x1d4)]));}[_0x512809(0x220)](){var _0x362c40=_0x512809;this[_0x362c40(0x242)]==='not-following'&&(this[_0x362c40(0x1b5)]['next'](_0x362c40(0x1c6)),this[_0x362c40(0x1d0)]());}[_0x512809(0x231)](){var _0x165ed4=_0x512809;this['_status']==='following'&&this[_0x165ed4(0x25c)]();}['_handleNewHost'](_0x4ca3d9){var _0x4d07ff=_0x512809;const {presenter:_0x5b399d}=_0x4ca3d9['data'],_0x29677d=this[_0x4d07ff(0x1fe)]['getMemberID']();this[_0x4d07ff(0x269)]=_0x5b399d,_0x5b399d===_0x29677d?(this[_0x4d07ff(0x25c)](),this[_0x4d07ff(0x23d)]()):this['_status']!==_0x4d07ff(0x262)&&(this['_stopPresenting'](),this[_0x4d07ff(0x1d0)]());}[_0x512809(0x1cc)](){var _0xaf2e2f=_0x512809;const _0x2b23b2={'eventID':_0x46c596['LIVESHARE_FETCH_OPERATIONS']};this[_0xaf2e2f(0x1fe)][_0xaf2e2f(0x1ef)](_0x2b23b2,this[_0xaf2e2f(0x1d4)]);}[_0x512809(0x1df)](){var _0x40965e=_0x512809;this[_0x40965e(0x269)]=null,this['_status']!=='presenting'&&this[_0x40965e(0x22f)]();}['_handleNewChangeSets'](_0x48983b){var _0x561f87=_0x512809;if(this[_0x561f87(0x242)]==='following'&&this['_presenter']===_0x48983b[_0x561f87(0x265)][_0x561f87(0x1c8)]){const _0x26cb02=_0x598281(_0x48983b[_0x561f87(0x265)])['mutations']['reverse']()['find'](_0x1941d1=>_0x1941d1['id']===_0x10745a['id']);if(_0x26cb02){const _0x5994b7=_0x26cb02[_0x561f87(0x1e6)][_0x561f87(0x257)],_0x2ec8d6=_0x26cb02[_0x561f87(0x1e6)][_0x561f87(0x258)]['id'];setTimeout(()=>{var _0x344599=_0x561f87;this['_commandService'][_0x344599(0x1b9)](_0x390ceb['id'],{'unitId':_0x5994b7,'subUnitId':_0x2ec8d6},{'fromCollab':!0x0});});}}}[_0x512809(0x23d)](){var _0x27c8c2=_0x512809;this[_0x27c8c2(0x1b5)][_0x27c8c2(0x25e)](_0x27c8c2(0x203));const _0x21cdb3=new Map(),_0x22effa=this[_0x27c8c2(0x228)]=new _0xd5101f();_0x22effa[_0x27c8c2(0x260)](_0x526a75(()=>{var _0xe799c4=_0x27c8c2;_0x21cdb3['forEach'](_0x4c3f62=>_0x4c3f62[_0xe799c4(0x240)]()),_0x21cdb3[_0xe799c4(0x215)]();})),_0x22effa[_0x27c8c2(0x260)](this[_0x27c8c2(0x1e8)]['onCommandExecuted'](_0x1c30cc=>{var _0x48e5af=_0x27c8c2,_0x79a571;if(_0x1c30cc[_0x48e5af(0x249)]!==_0x2ec5f9[_0x48e5af(0x256)]||!this[_0x48e5af(0x1c5)][_0x48e5af(0x230)](_0x1c30cc['id']))return;const {id:_0x421485}=_0x1c30cc;let _0x235d41;_0x21cdb3[_0x48e5af(0x229)](_0x421485)?_0x235d41=_0x21cdb3[_0x48e5af(0x233)](_0x421485):(_0x235d41=new _0x2b4590(),_0x21cdb3['set'](_0x421485,_0x235d41),_0x235d41[_0x48e5af(0x22d)](_0x214502((_0x79a571=this[_0x48e5af(0x1f7)][_0x48e5af(0x21a)](Pe))!=null?_0x79a571:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x44163e=>{var _0xcd51c=_0x48e5af;this[_0xcd51c(0x1fe)]['send']({'eventID':_0x46c596[_0xcd51c(0x211)],'data':{'unitID':this['_unitID'],'operations':{[_0x44163e['id']]:{'id':_0x44163e['id'],'params':JSON[_0xcd51c(0x1b6)](_0x44163e['params'])}}}},this[_0xcd51c(0x1d4)]);})),_0x235d41[_0x48e5af(0x25e)](_0x1c30cc);})),this[_0x27c8c2(0x1c5)][_0x27c8c2(0x25d)](this[_0x27c8c2(0x1d4)])[_0x27c8c2(0x1ed)](_0x5df21c=>this['_collabSession']['send']({'eventID':_0x46c596[_0x27c8c2(0x211)],'data':{'unitID':this['_unitID'],'operations':{[_0x5df21c['id']]:{'id':_0x5df21c['id'],'params':JSON['stringify'](_0x5df21c[_0x27c8c2(0x1e6)])}}}},this[_0x27c8c2(0x1d4)]));}[_0x512809(0x24b)](){var _0x4388fb=_0x512809,_0x35c0b0;this[_0x4388fb(0x1b5)]['next']('idle'),(_0x35c0b0=this[_0x4388fb(0x228)])==null||_0x35c0b0[_0x4388fb(0x1cb)](),this['_commandDisposable']=null;}[_0x512809(0x1d0)](){var _0x4b39ff=_0x512809,_0x2780a8;(_0x2780a8=this['_commandDisposable'])==null||_0x2780a8['dispose'](),this[_0x4b39ff(0x1b5)][_0x4b39ff(0x25e)](_0x4b39ff(0x1c6));}[_0x512809(0x22f)](){var _0x5e12a1=_0x512809,_0x3f90c5;this[_0x5e12a1(0x1b5)][_0x5e12a1(0x25e)](_0x5e12a1(0x1d7)),(_0x3f90c5=this['_commandDisposable'])==null||_0x3f90c5[_0x5e12a1(0x1cb)](),this[_0x5e12a1(0x228)]=null;}[_0x512809(0x25c)](){var _0x28613f=_0x512809,_0x290e6f;this[_0x28613f(0x1b5)][_0x28613f(0x25e)](_0x28613f(0x262)),(_0x290e6f=this[_0x28613f(0x228)])==null||_0x290e6f[_0x28613f(0x1cb)]();}[_0x512809(0x1be)](_0x1d3ed1){var _0xa81942=_0x512809;if([_0xa81942(0x203),_0xa81942(0x262),_0xa81942(0x1e4)][_0xa81942(0x204)](this[_0xa81942(0x242)])||!_0x1d3ed1[_0xa81942(0x265)][_0xa81942(0x205)]||_0x1d3ed1[_0xa81942(0x265)]['presenter']===this['_collabSession'][_0xa81942(0x252)]())return;this[_0xa81942(0x242)]===_0xa81942(0x1d7)&&this['_startFollowing']();const _0x2a9e98=_0x1d3ed1[_0xa81942(0x265)][_0xa81942(0x1e1)];Object[_0xa81942(0x1d3)](_0x2a9e98)[_0xa81942(0x1ed)](_0x27a2a8=>{var _0x28aef5=_0xa81942;this[_0x28aef5(0x1e8)]['executeCommand'](_0x27a2a8['id'],_0x27a2a8['params']?JSON[_0x28aef5(0x1eb)](_0x27a2a8['params']):null,{'fromCollab':!0x0});});}[_0x512809(0x1dc)](){var _0x4b31ef=_0x512809,_0x272ce4;this['_status$']['next'](_0x4b31ef(0x1e4)),(_0x272ce4=this[_0x4b31ef(0x228)])==null||_0x272ce4[_0x4b31ef(0x1cb)]();}[_0x512809(0x20a)](){var _0x4de46e=_0x512809;this[_0x4de46e(0x1b5)][_0x4de46e(0x25e)](_0x4de46e(0x1d7)),this[_0x4de46e(0x1cc)]();}};C=Z([f(0x2,_0x1caea7),f(0x3,_0x30a9c5(L)),f(0x4,_0x388a0d)],C);function Te(){var _0x27995f=_0x512809;const _0x39e5c7=_0x48897c(I),_0x64dfc6=_0x48897c(_0xa0d390),_0x19d5b0=_0x14654c(()=>_0x64dfc6[_0x27995f(0x234)](_0x12828d['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x48b90d,_0xa6caef]=_0x5573ca(null),[_0x4847db,_0x3b7014]=_0x5573ca(h[_0x27995f(0x243)]),_0x146e05=_0x9bf347(null);return _0x36bfdc(()=>(_0x19d5b0&&_0x39e5c7[_0x27995f(0x21e)](_0x19d5b0[_0x27995f(0x20c)]())[_0x27995f(0x1fa)](_0x416fc2=>{var _0x6b5fc0=_0x27995f;_0xa6caef(_0x416fc2),_0x146e05['current']=_0x416fc2[_0x6b5fc0(0x1e2)]['subscribe'](_0x21de69=>{_0x3b7014(_0x21de69);});}),()=>{var _0x3aabbc=_0x27995f,_0xd6fe6b;(_0xd6fe6b=_0x146e05[_0x3aabbc(0x24d)])==null||_0xd6fe6b[_0x3aabbc(0x23f)](),_0x146e05[_0x3aabbc(0x24d)]=null;}),[_0x19d5b0,_0x39e5c7]),_0x48b90d?_0xe2c74b(_0x5212b4,{'align':_0x27995f(0x22b),'disabled':_0x4847db===h[_0x27995f(0x1dd)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0xe2c74b($e,{'status':_0x4847db,'coordinator':_0x48b90d}),'children':_0xe2c74b('button',{'className':_0x11bf78(_0x27995f(0x235),{'univer-cursor-not-allowed':_0x4847db===h[_0x27995f(0x1dd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4847db!==h[_0x27995f(0x1dd)]}),'type':_0x27995f(0x1f8),'children':_0xe2c74b(B,{'className':_0x27995f(0x227)})})}):null;}function $e(_0x37bc60){var _0x50aecc=_0x512809;const {status:_0x134775,coordinator:_0x5c5521}=_0x37bc60;switch(_0x134775){case h[_0x50aecc(0x243)]:return _0xe2c74b(Fe,{'coordinator':_0x5c5521});case h['FOLLOWING']:return _0xe2c74b(He,{'coordinator':_0x5c5521});case h[_0x50aecc(0x1f2)]:return _0xe2c74b(je,{'coordinator':_0x5c5521});case h['OFFLINE']:return _0xe2c74b(Ve,{});case h['PRESENTING']:return _0xe2c74b(Ue,{'coordinator':_0x5c5521});default:return null;}}function Fe(_0x1459d6){var _0x5f3141=_0x512809;const {coordinator:_0x3a6f64}=_0x1459d6;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x5f3141(0x20b),{'className':_0x5f3141(0x1ca),'children':_0x5f3141(0x267)}),_0xe2c74b(_0x461148,{'onClick':()=>_0x3a6f64[_0x5f3141(0x1d6)](),'children':_0x5f3141(0x217)})]});}function He(_0x2b5142){var _0x113cba=_0x512809;const {coordinator:_0x4f9b71}=_0x2b5142;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b('div',{'className':_0x113cba(0x1ca),'children':_0x113cba(0x1d5)}),_0xe2c74b(_0x461148,{'onClick':()=>_0x4f9b71[_0x113cba(0x231)](),'children':_0x113cba(0x23b)})]});}function je(_0x1a0356){var _0x4bfadb=_0x512809;const {coordinator:_0x4f49e6}=_0x1a0356;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x4bfadb(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4bfadb(0x1f5)}),_0xe2c74b(_0x461148,{'variant':'text','onClick':()=>_0x4f49e6[_0x4bfadb(0x220)](),'children':'Start\x20following'})]});}function Ue(_0x51ed9b){var _0x62d2a3=_0x512809;const {coordinator:_0x275d7d}=_0x51ed9b;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x62d2a3(0x20b),{'className':_0x62d2a3(0x1ca),'children':_0x62d2a3(0x266)}),_0xe2c74b(_0x461148,{'variant':_0x62d2a3(0x1c9),'onClick':()=>_0x275d7d[_0x62d2a3(0x1f4)](),'children':_0x62d2a3(0x1b8)})]});}function Ve(){var _0x58cca7=_0x512809;return _0xe2c74b(_0x315a05,{'children':_0x58cca7(0x20f)});}var Me=Object[_0x512809(0x1fb)],ke=(_0x502d5f,_0x13bef8,_0x156e38,_0x27d9fb)=>{var _0x1028d4=_0x512809;for(var _0x4276e3=_0x27d9fb>0x1?void 0x0:_0x27d9fb?Me(_0x13bef8,_0x156e38):_0x13bef8,_0x2a9604=_0x502d5f[_0x1028d4(0x1e7)]-0x1,_0x1fe59c;_0x2a9604>=0x0;_0x2a9604--)(_0x1fe59c=_0x502d5f[_0x2a9604])&&(_0x4276e3=_0x1fe59c(_0x4276e3)||_0x4276e3);return _0x4276e3;},$=(_0x33e621,_0x310d72)=>(_0xac02c0,_0x2732a9)=>_0x310d72(_0xac02c0,_0x2732a9,_0x33e621);let b=class extends _0x53ac40{constructor(_0x2d1c5c,_0x3d93ae){var _0x396b49=_0x512809;super(),this[_0x396b49(0x225)]=_0x2d1c5c,this[_0x396b49(0x1e5)]=_0x3d93ae,this[_0x396b49(0x1c7)]();}['_mountLiveShare'](){var _0x440d1b=_0x512809;this[_0x440d1b(0x1f3)](this[_0x440d1b(0x1e5)][_0x440d1b(0x1db)](_0x8c4c5d[_0x440d1b(0x1c3)],()=>_0x29aac4(Te,this['_injector'])));}};b=ke([$(0x0,_0x30a9c5(_0x21b692)),$(0x1,_0x44b862)],b);var Ge=Object[_0x512809(0x24f)],We=Object[_0x512809(0x1fb)],Ye=(_0x479959,_0x1e07c1,_0x5534af)=>_0x1e07c1 in _0x479959?Ge(_0x479959,_0x1e07c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5534af}):_0x479959[_0x1e07c1]=_0x5534af,Be=(_0x39d9de,_0x68c71,_0x3426f4,_0x4e020b)=>{var _0x4b52f8=_0x512809;for(var _0x3ba3da=_0x4e020b>0x1?void 0x0:_0x4e020b?We(_0x68c71,_0x3426f4):_0x68c71,_0x2b549f=_0x39d9de[_0x4b52f8(0x1e7)]-0x1,_0x589753;_0x2b549f>=0x0;_0x2b549f--)(_0x589753=_0x39d9de[_0x2b549f])&&(_0x3ba3da=_0x589753(_0x3ba3da)||_0x3ba3da);return _0x3ba3da;},F=(_0x564057,_0x5f2816)=>(_0x2203aa,_0x2480a2)=>_0x5f2816(_0x2203aa,_0x2480a2,_0x564057),J=(_0x3b23e4,_0x5b5b96,_0x594b84)=>Ye(_0x3b23e4,typeof _0x5b5b96!=_0x512809(0x255)?_0x5b5b96+'':_0x5b5b96,_0x594b84);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x2850ce{constructor(_0x40eeaa=T,_0x5ea98d,_0x214f15){var _0x3ba965=_0x512809;super(),this[_0x3ba965(0x1c0)]=_0x40eeaa,this[_0x3ba965(0x225)]=_0x5ea98d,this[_0x3ba965(0x1f7)]=_0x214f15;const {..._0x59a5fd}=_0x4a6d52({},T,this[_0x3ba965(0x1c0)]);this[_0x3ba965(0x1f7)][_0x3ba965(0x208)](Oe,_0x59a5fd);}[_0x512809(0x1fc)](){var _0x25f4fc=_0x512809;_0x1f5629(this[_0x25f4fc(0x225)],_0x3defda([[L],[I],[m],[b]],this[_0x25f4fc(0x1c0)][_0x25f4fc(0x23c)])),_0x397a1f(this['_injector'],[[m]]);}[_0x512809(0x1c4)](){var _0x4f3f56=_0x512809;_0x397a1f(this[_0x4f3f56(0x225)],[[b]]);}};J(O,_0x512809(0x249),_0x12828d[_0x512809(0x226)]),J(O,'pluginName',Ze),O=Be([_0x352ef8(_0xc07b40),F(0x1,_0x30a9c5(_0x21b692)),F(0x2,_0x1caea7)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x266e96=_0x41c9;(function(_0x83eb32,_0x5567c8){var _0x404059=_0x41c9,_0x5979fc=_0x83eb32();while(!![]){try{var _0x28830b=parseInt(_0x404059(0x119))/0x1+-parseInt(_0x404059(0x1aa))/0x2+-parseInt(_0x404059(0x168))/0x3*(parseInt(_0x404059(0x1a0))/0x4)+-parseInt(_0x404059(0x123))/0x5+parseInt(_0x404059(0x167))/0x6+parseInt(_0x404059(0x18b))/0x7+parseInt(_0x404059(0x163))/0x8*(parseInt(_0x404059(0x109))/0x9);if(_0x28830b===_0x5567c8)break;else _0x5979fc['push'](_0x5979fc['shift']());}catch(_0x216f42){_0x5979fc['push'](_0x5979fc['shift']());}}}(_0x23fb,0x31092));var q=Object[_0x266e96(0x15e)],z=(_0x38376c,_0x36f272,_0x48fbb8)=>_0x36f272 in _0x38376c?q(_0x38376c,_0x36f272,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48fbb8}):_0x38376c[_0x36f272]=_0x48fbb8,d=(_0xa8756,_0x1e70cc,_0x298e7c)=>z(_0xa8756,typeof _0x1e70cc!=_0x266e96(0x154)?_0x1e70cc+'':_0x1e70cc,_0x298e7c);import{CollaborationSessionService as _0x2e4273,SessionStatus as _0x154d08,UniverCollaborationClientPlugin as _0x5d2e38}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5c1827,toDisposable as _0x4fd261,Inject as _0x201664,IUniverInstanceService as _0x3bb6ec,Injector as _0x3c7828,IConfigService as _0x30949d,ICommandService as _0x38d89b,RxDisposable as _0x4dc9c3,UniverInstanceType as _0x1e220f,DisposableCollection as _0x3bbc3f,CommandType as _0xc06dab,DependentOn as _0x393241,Plugin as _0x5c6bc1,merge as _0xc1095b,registerDependencies as _0x4dfd5d,mergeOverrideWithDependencies as _0x1b58bd,touchDependencies as _0x147e80}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1ac35b,InsertSheetMutation as _0x51a4bb}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x38829c,SetScrollOperation as _0x44c95d}from'@univerjs/sheets-ui';import{useDependency as _0x57080b,useObservable as _0x281c9c,IUIPartsService as _0x130b00,BuiltInUIPart as _0x22d6bc,connectInjector as _0x2b2067}from'@univerjs/ui';import{jsx as _0xed2a76,jsxs as _0x5b5885,Fragment as _0x4b5497}from'react/jsx-runtime';import{Dropdown as _0x8f2ebf,clsx as _0x58ef02,Button as _0x11d578}from'@univerjs/design';import{forwardRef as _0x28ac2b,useRef as _0x10f31e,createElement as _0x5abbc2,useState as _0x5b9e4e,useEffect as _0x1ee1e0}from'react';import{CollaborationEvent as _0x18a920,parseProtocolChangeset as _0x4a58f0}from'@univerjs-pro/collaboration';function _0x41c9(_0x28dd0b,_0x1cbe1c){var _0x23fb0c=_0x23fb();return _0x41c9=function(_0x41c9a7,_0x2e1599){_0x41c9a7=_0x41c9a7-0xf8;var _0x29c355=_0x23fb0c[_0x41c9a7];return _0x29c355;},_0x41c9(_0x28dd0b,_0x1cbe1c);}import{BehaviorSubject as _0x3543be,Subject as _0x7ba9c4}from'rxjs';import{takeUntil as _0x1ff6f9,throttleTime as _0xefab3}from'rxjs/operators';const Oe=_0x266e96(0x117),T={};class L extends _0x5c1827{constructor(){var _0x38e361=_0x266e96;super(...arguments),d(this,_0x38e361(0x18e),new Set()),d(this,'_reporters',new Set());}[_0x266e96(0x144)](_0x5e058f){var _0x1ede32=_0x266e96;return this[_0x1ede32(0x18e)][_0x1ede32(0x14a)](_0x5e058f),_0x4fd261(()=>this[_0x1ede32(0x18e)][_0x1ede32(0x19c)](_0x5e058f));}['registerInitialStateReporter'](_0x40619e){var _0x49b3ee=_0x266e96;return this[_0x49b3ee(0x178)][_0x49b3ee(0x14a)](_0x40619e),_0x4fd261(()=>this[_0x49b3ee(0x178)][_0x49b3ee(0x19c)](_0x40619e));}['shouldShareOperation'](_0x3d93f5){return this['_sharedOperations']['has'](_0x3d93f5);}[_0x266e96(0x12f)](_0x3185fa){var _0x40e806=_0x266e96;return Array[_0x40e806(0x183)](this[_0x40e806(0x178)])[_0x40e806(0x11f)](_0x2d8eb8=>_0x2d8eb8(_0x3185fa));}}var Ee=Object[_0x266e96(0x127)],we=(_0x1d677b,_0x2f8bbb,_0x3e6f0d,_0x13f5c0)=>{var _0x4b6d9a=_0x266e96;for(var _0x1aa874=_0x13f5c0>0x1?void 0x0:_0x13f5c0?Ee(_0x2f8bbb,_0x3e6f0d):_0x2f8bbb,_0x501548=_0x1d677b[_0x4b6d9a(0x10c)]-0x1,_0x8d9c80;_0x501548>=0x0;_0x501548--)(_0x8d9c80=_0x1d677b[_0x501548])&&(_0x1aa874=_0x8d9c80(_0x1aa874)||_0x1aa874);return _0x1aa874;},Ne=(_0x581a3e,_0x57e1a9)=>(_0x560374,_0x2aff8b)=>_0x57e1a9(_0x560374,_0x2aff8b,_0x581a3e);let m=class extends _0x5c1827{constructor(_0x3e9282){var _0x3a9bec=_0x266e96;super(),this['_liveShareService']=_0x3e9282,this[_0x3a9bec(0x188)]();}['_init'](){[_0x38829c['id'],_0x44c95d['id'],_0x1ac35b['id']]['forEach'](_0x4c74fa=>{var _0xe38af8=_0x41c9;this[_0xe38af8(0x1ab)](this[_0xe38af8(0x146)]['registerSharedOperation'](_0x4c74fa));});}};m=we([Ne(0x0,_0x201664(L))],m);var c=function(){var _0x41929b=_0x266e96;return c=Object[_0x41929b(0x133)]||function(_0x46659e){var _0x1a04e4=_0x41929b;for(var _0x2f16a7,_0x875f34=0x1,_0x5b432f=arguments[_0x1a04e4(0x10c)];_0x875f34<_0x5b432f;_0x875f34++){_0x2f16a7=arguments[_0x875f34];for(var _0x6db7d in _0x2f16a7)Object['prototype'][_0x1a04e4(0x16d)][_0x1a04e4(0x12d)](_0x2f16a7,_0x6db7d)&&(_0x46659e[_0x6db7d]=_0x2f16a7[_0x6db7d]);}return _0x46659e;},c[_0x41929b(0x184)](this,arguments);},Ce=function(_0x1f61a0,_0x5a1425){var _0x3bedaf=_0x266e96,_0x503e15={};for(var _0xd672c3 in _0x1f61a0)Object[_0x3bedaf(0x104)][_0x3bedaf(0x16d)][_0x3bedaf(0x12d)](_0x1f61a0,_0xd672c3)&&_0x5a1425['indexOf'](_0xd672c3)<0x0&&(_0x503e15[_0xd672c3]=_0x1f61a0[_0xd672c3]);if(_0x1f61a0!=null&&typeof Object[_0x3bedaf(0xfb)]=='function'){for(var _0x1336f4=0x0,_0xd672c3=Object[_0x3bedaf(0xfb)](_0x1f61a0);_0x1336f4<_0xd672c3[_0x3bedaf(0x10c)];_0x1336f4++)_0x5a1425[_0x3bedaf(0x192)](_0xd672c3[_0x1336f4])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x3bedaf(0x12d)](_0x1f61a0,_0xd672c3[_0x1336f4])&&(_0x503e15[_0xd672c3[_0x1336f4]]=_0x1f61a0[_0xd672c3[_0x1336f4]]);}return _0x503e15;},W=_0x28ac2b(function(_0x433e1e,_0x2cc24f){var _0x3df9bc=_0x266e96,_0x26e3b6=_0x433e1e[_0x3df9bc(0x17e)],_0x46d8b5=_0x433e1e['id'],_0x1cd8ac=_0x433e1e[_0x3df9bc(0x14b)],_0x3ede57=_0x433e1e[_0x3df9bc(0x12a)],_0x5cd32c=Ce(_0x433e1e,[_0x3df9bc(0x17e),'id','className',_0x3df9bc(0x12a)]),_0x1aacc7='univerjs-icon\x20univerjs-icon-'[_0x3df9bc(0x19f)](_0x46d8b5,'\x20')[_0x3df9bc(0x19f)](_0x1cd8ac||'')['trim'](),_0x146f76=_0x10f31e('_'[_0x3df9bc(0x19f)](Le()));return Y(_0x26e3b6,''[_0x3df9bc(0x19f)](_0x46d8b5),{'defIds':_0x26e3b6[_0x3df9bc(0x113)],'idSuffix':_0x146f76[_0x3df9bc(0x1a5)]},c({'ref':_0x2cc24f,'className':_0x1aacc7},_0x5cd32c),_0x3ede57);});function Y(_0x3c45ba,_0x5603da,_0x47bb93,_0x231c6e,_0x515d64){var _0x58ab94=_0x266e96;return _0x5abbc2(_0x3c45ba[_0x58ab94(0x148)],c(c({'key':_0x5603da},De(_0x3c45ba,_0x47bb93,_0x515d64)),_0x231c6e),(xe(_0x3c45ba,_0x47bb93)[_0x58ab94(0x112)]||[])[_0x58ab94(0x11f)](function(_0x33d18c,_0x3a179b){var _0x1ea5c5=_0x58ab94;return Y(_0x33d18c,''[_0x1ea5c5(0x19f)](_0x5603da,'-')[_0x1ea5c5(0x19f)](_0x3c45ba[_0x1ea5c5(0x148)],'-')['concat'](_0x3a179b),_0x47bb93,void 0x0,_0x515d64);}));}function De(_0x69c754,_0x59c4ca,_0x59f1d5){var _0x93617c=_0x266e96,_0x1e61fb=c({},_0x69c754['attrs']);_0x59f1d5!=null&&_0x59f1d5[_0x93617c(0xf8)]&&_0x1e61fb[_0x93617c(0x187)]===_0x93617c(0xf8)&&(_0x1e61fb[_0x93617c(0x187)]=_0x59f1d5[_0x93617c(0xf8)]),_0x69c754[_0x93617c(0x148)]===_0x93617c(0x142)&&_0x1e61fb['id']&&(_0x1e61fb['id']=_0x1e61fb['id']+_0x59c4ca[_0x93617c(0x165)]),Object[_0x93617c(0x15b)](_0x1e61fb)[_0x93617c(0x103)](function(_0x166198){var _0x42945e=_0x93617c,_0x44510=_0x166198[0x0],_0x4c5557=_0x166198[0x1];_0x44510==='mask'&&typeof _0x4c5557==_0x42945e(0x155)&&(_0x1e61fb[_0x44510]=_0x4c5557[_0x42945e(0x12b)](/url\(#(.*)\)/,_0x42945e(0x14f)[_0x42945e(0x19f)](_0x59c4ca[_0x42945e(0x165)],')')));});var _0x107f14=_0x59c4ca[_0x93617c(0x113)];return!_0x107f14||_0x107f14[_0x93617c(0x10c)]===0x0||(_0x69c754[_0x93617c(0x148)]===_0x93617c(0x12e)&&_0x1e61fb['xlink:href']&&(_0x1e61fb[_0x93617c(0x197)]=_0x1e61fb[_0x93617c(0x197)]+_0x59c4ca[_0x93617c(0x165)]),Object[_0x93617c(0x15b)](_0x1e61fb)[_0x93617c(0x103)](function(_0x48b43e){var _0xd058b7=_0x93617c,_0x3be6bd=_0x48b43e[0x0],_0xd12c57=_0x48b43e[0x1];typeof _0xd12c57==_0xd058b7(0x155)&&(_0x1e61fb[_0x3be6bd]=_0xd12c57[_0xd058b7(0x12b)](/url\(#(.*)\)/,_0xd058b7(0x14f)[_0xd058b7(0x19f)](_0x59c4ca['idSuffix'],')')));})),_0x1e61fb;}function xe(_0x169625,_0xfcc544){var _0x7e6ab3=_0x266e96,_0x5c0e3b,_0x4f1c58=_0xfcc544['defIds'];return!_0x4f1c58||_0x4f1c58['length']===0x0?_0x169625:_0x169625[_0x7e6ab3(0x148)]===_0x7e6ab3(0x10a)&&(!((_0x5c0e3b=_0x169625[_0x7e6ab3(0x112)])===null||_0x5c0e3b===void 0x0)&&_0x5c0e3b[_0x7e6ab3(0x10c)])?c(c({},_0x169625),{'children':_0x169625['children'][_0x7e6ab3(0x11f)](function(_0x1bf824){var _0x4ac169=_0x7e6ab3;return typeof _0x1bf824['attrs']['id']==_0x4ac169(0x155)&&_0x4f1c58&&_0x4f1c58[_0x4ac169(0x156)](_0x1bf824[_0x4ac169(0x18f)]['id'])?c(c({},_0x1bf824),{'attrs':c(c({},_0x1bf824[_0x4ac169(0x18f)]),{'id':_0x1bf824[_0x4ac169(0x18f)]['id']+_0xfcc544[_0x4ac169(0x165)]})}):_0x1bf824;})}):_0x169625;}function Le(){var _0x2aa84a=_0x266e96;return Math['random']()[_0x2aa84a(0x158)](0x24)[_0x2aa84a(0x10e)](0x2,0x8);}W[_0x266e96(0x10f)]=_0x266e96(0x137);var ye={'tag':_0x266e96(0xfd),'attrs':{'xmlns':_0x266e96(0x172),'fill':_0x266e96(0x118),'viewBox':_0x266e96(0x1a3),'width':_0x266e96(0x16e),'height':'1em'},'children':[{'tag':_0x266e96(0x17f),'attrs':{'fill':'currentColor','d':_0x266e96(0x16c)}},{'tag':'path','attrs':{'fill':_0x266e96(0x175),'d':_0x266e96(0x171),'fillRule':_0x266e96(0x110),'clipRule':'evenodd'}}]},B=_0x28ac2b(function(_0x38787d,_0x5a79f7){var _0x155b21=_0x266e96;return _0x5abbc2(W,Object[_0x155b21(0x133)]({},_0x38787d,{'id':_0x155b21(0x17b),'ref':_0x5a79f7,'icon':ye}));});B['displayName']='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x385355,_0x39df22,_0x40e64c,_0x2b0fcf)=>{var _0x45b7ca=_0x266e96;for(var _0xfadd7e=_0x2b0fcf>0x1?void 0x0:_0x2b0fcf?Re(_0x39df22,_0x40e64c):_0x39df22,_0x49c629=_0x385355[_0x45b7ca(0x10c)]-0x1,_0x543ffe;_0x49c629>=0x0;_0x49c629--)(_0x543ffe=_0x385355[_0x49c629])&&(_0xfadd7e=_0x543ffe(_0xfadd7e)||_0xfadd7e);return _0xfadd7e;},f=(_0x375149,_0x547755)=>(_0x13245b,_0x202517)=>_0x547755(_0x13245b,_0x202517,_0x375149);let I=class extends _0x4dc9c3{constructor(_0x5ff2f1,_0x4c0d32,_0xa091b0){var _0x5129b0=_0x266e96;super(),d(this,_0x5129b0(0x106),new Map()),(this['_univerInstanceService']=_0x5ff2f1,this[_0x5129b0(0x141)]=_0x4c0d32,this[_0x5129b0(0x130)]=_0xa091b0,this[_0x5129b0(0x188)]());}async[_0x266e96(0x170)](_0x3ad713){var _0x1b4281=_0x266e96;return this[_0x1b4281(0x106)]['has'](_0x3ad713)||await this[_0x1b4281(0x129)](_0x3ad713),this[_0x1b4281(0x106)][_0x1b4281(0x19b)](_0x3ad713);}[_0x266e96(0x188)](){var _0x3df931=_0x266e96;this[_0x3df931(0x125)][_0x3df931(0x149)](_0x1e220f[_0x3df931(0x11e)])[_0x3df931(0x169)](_0x1ff6f9(this[_0x3df931(0x11b)]))[_0x3df931(0x19d)](async _0x4708e3=>{var _0x10fc69=_0x3df931;const _0x232c94=_0x4708e3[_0x10fc69(0x131)]();this[_0x10fc69(0x106)]['has'](_0x232c94)||this[_0x10fc69(0x129)](_0x232c94);}),this[_0x3df931(0x125)][_0x3df931(0x180)](_0x1e220f[_0x3df931(0x11e)])[_0x3df931(0x169)](_0x1ff6f9(this['dispose$']))['subscribe'](_0x130da7=>{var _0x22db9d=_0x3df931;const _0x29b583=_0x130da7[_0x22db9d(0x131)](),_0x4136d6=this[_0x22db9d(0x106)]['get'](_0x29b583);_0x4136d6==null||_0x4136d6[_0x22db9d(0x115)]();});}async[_0x266e96(0x129)](_0x128af1){var _0x5d353f=_0x266e96;const _0x1b4c3c=await this[_0x5d353f(0x130)]['requireSession'](_0x128af1),_0x36224d=this[_0x5d353f(0x141)][_0x5d353f(0x1a8)](C,_0x128af1,_0x1b4c3c);return _0x36224d[_0x5d353f(0x14c)](),this[_0x5d353f(0x106)]['set'](_0x128af1,_0x36224d),_0x36224d;}};I=Z([f(0x0,_0x3bb6ec),f(0x1,_0x201664(_0x3c7828)),f(0x2,_0x201664(_0x2e4273))],I);var h=(_0x1e4d7f=>(_0x1e4d7f[_0x266e96(0x174)]=_0x266e96(0x143),_0x1e4d7f[_0x266e96(0x164)]='idle',_0x1e4d7f[_0x266e96(0x191)]='following',_0x1e4d7f[_0x266e96(0x189)]=_0x266e96(0xfc),_0x1e4d7f[_0x266e96(0x194)]=_0x266e96(0x177),_0x1e4d7f))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x4dc9c3{constructor(_0x3ef0d9,_0x4e5326,_0x59d6ee,_0xce7e5b,_0x54e129){var _0x10701f=_0x266e96;super(),d(this,_0x10701f(0x198),new _0x3543be(_0x10701f(0x15f))),d(this,_0x10701f(0x132),this[_0x10701f(0x198)][_0x10701f(0x153)]()),d(this,_0x10701f(0x188),!0x1),d(this,'_commandDisposable',null),d(this,_0x10701f(0x128),null),(this['_unitID']=_0x3ef0d9,this[_0x10701f(0x102)]=_0x4e5326,this[_0x10701f(0x139)]=_0x59d6ee,this[_0x10701f(0x146)]=_0xce7e5b,this[_0x10701f(0x116)]=_0x54e129);}get[_0x266e96(0x114)](){var _0x59458f=_0x266e96;return this[_0x59458f(0x198)][_0x59458f(0x101)]();}['dispose'](){var _0x300c98=_0x266e96,_0x2a7ff0;(_0x2a7ff0=this[_0x300c98(0x126)])==null||_0x2a7ff0['dispose'](),this[_0x300c98(0x198)]['next'](_0x300c98(0x15f)),this['_status$']['complete']();}[_0x266e96(0x14c)](){var _0x3a11a4=_0x266e96;this['_init']||(this[_0x3a11a4(0x188)]=!0x0,this[_0x3a11a4(0x102)][_0x3a11a4(0x173)][_0x3a11a4(0x169)](_0x1ff6f9(this[_0x3a11a4(0x11b)]))['subscribe'](_0x3822d0=>{var _0x1fc659=_0x3a11a4;switch(_0x3822d0){case _0x154d08['OFFLINE']:this['_handleOffline']();break;case _0x154d08[_0x1fc659(0x193)]:this[_0x1fc659(0x1a7)]();break;}}),this[_0x3a11a4(0x102)][_0x3a11a4(0x16b)][_0x3a11a4(0x169)](_0x1ff6f9(this['dispose$']))[_0x3a11a4(0x19d)](_0xfc0521=>{var _0x62da88=_0x3a11a4;const {eventID:_0x2337be}=_0xfc0521;switch(_0x2337be){case _0x18a920[_0x62da88(0x14e)]:this['_handleNewHost'](_0xfc0521);break;case _0x18a920[_0x62da88(0x108)]:this[_0x62da88(0x13e)](_0xfc0521);break;case _0x18a920[_0x62da88(0x196)]:this[_0x62da88(0x1a9)]();break;case _0x18a920['NEW_CHANGESETS']:this[_0x62da88(0xfe)](_0xfc0521);break;}}));}[_0x266e96(0x138)](){var _0x39f8f5=_0x266e96;this[_0x39f8f5(0x102)]['send']({'eventID':_0x18a920[_0x39f8f5(0x145)],'data':{'unitID':this[_0x39f8f5(0x150)],'userID':this[_0x39f8f5(0x102)][_0x39f8f5(0xf9)]()}},this[_0x39f8f5(0x150)]);}[_0x266e96(0xff)](){var _0x26b897=_0x266e96;this['_status']===_0x26b897(0x177)&&(this[_0x26b897(0x198)][_0x26b897(0x17d)](_0x26b897(0x15f)),this[_0x26b897(0x102)][_0x26b897(0x11c)]({'eventID':_0x18a920[_0x26b897(0x196)],'data':{'unitID':this['_unitID']}},this[_0x26b897(0x150)]));}[_0x266e96(0x10d)](){var _0xd6d461=_0x266e96;this[_0xd6d461(0x114)]==='not-following'&&(this[_0xd6d461(0x198)][_0xd6d461(0x17d)]('following'),this[_0xd6d461(0x182)]());}[_0x266e96(0x179)](){var _0x30f7db=_0x266e96;this[_0x30f7db(0x114)]===_0x30f7db(0x16a)&&this[_0x30f7db(0x195)]();}[_0x266e96(0x147)](_0x542e45){var _0x333ba9=_0x266e96;const {presenter:_0x253929}=_0x542e45['data'],_0x21683c=this['_collabSession'][_0x333ba9(0xf9)]();this['_presenter']=_0x253929,_0x253929===_0x21683c?(this['_stopFollowing'](),this[_0x333ba9(0x157)]()):this[_0x333ba9(0x114)]!==_0x333ba9(0xfc)&&(this['_stopPresenting'](),this[_0x333ba9(0x182)]());}[_0x266e96(0x13b)](){var _0x1dca5a=_0x266e96;const _0x404e01={'eventID':_0x18a920[_0x1dca5a(0x11a)]};this['_collabSession']['send'](_0x404e01,this['_unitID']);}[_0x266e96(0x1a9)](){var _0x16d87b=_0x266e96;this[_0x16d87b(0x128)]=null,this[_0x16d87b(0x114)]!=='presenting'&&this[_0x16d87b(0x105)]();}['_handleNewChangeSets'](_0x2d24ec){var _0x4954c7=_0x266e96;if(this[_0x4954c7(0x114)]===_0x4954c7(0x16a)&&this[_0x4954c7(0x128)]===_0x2d24ec[_0x4954c7(0x15c)][_0x4954c7(0x14d)]){const _0x33d1fd=_0x4a58f0(_0x2d24ec['data'])[_0x4954c7(0x124)]['reverse']()['find'](_0x549320=>_0x549320['id']===_0x51a4bb['id']);if(_0x33d1fd){const _0x422de2=_0x33d1fd[_0x4954c7(0x15a)][_0x4954c7(0x159)],_0x10b91f=_0x33d1fd[_0x4954c7(0x15a)][_0x4954c7(0x162)]['id'];setTimeout(()=>{var _0x361ad3=_0x4954c7;this[_0x361ad3(0x116)]['executeCommand'](_0x1ac35b['id'],{'unitId':_0x422de2,'subUnitId':_0x10b91f},{'fromCollab':!0x0});});}}}[_0x266e96(0x157)](){var _0x5b5d4d=_0x266e96;this[_0x5b5d4d(0x198)][_0x5b5d4d(0x17d)](_0x5b5d4d(0x177));const _0x1f4632=new Map(),_0x56c7b9=this['_commandDisposable']=new _0x3bbc3f();_0x56c7b9[_0x5b5d4d(0x14a)](_0x4fd261(()=>{var _0x475067=_0x5b5d4d;_0x1f4632[_0x475067(0x103)](_0x2cbe75=>_0x2cbe75['complete']()),_0x1f4632[_0x475067(0x111)]();})),_0x56c7b9[_0x5b5d4d(0x14a)](this[_0x5b5d4d(0x116)][_0x5b5d4d(0x152)](_0x2ee137=>{var _0x11f92f=_0x5b5d4d,_0x752fce;if(_0x2ee137['type']!==_0xc06dab[_0x11f92f(0x181)]||!this['_liveShareService']['shouldShareOperation'](_0x2ee137['id']))return;const {id:_0xbd9464}=_0x2ee137;let _0x32bedb;_0x1f4632[_0x11f92f(0x13d)](_0xbd9464)?_0x32bedb=_0x1f4632[_0x11f92f(0x19b)](_0xbd9464):(_0x32bedb=new _0x7ba9c4(),_0x1f4632[_0x11f92f(0x17a)](_0xbd9464,_0x32bedb),_0x32bedb['pipe'](_0xefab3((_0x752fce=this[_0x11f92f(0x139)][_0x11f92f(0x134)](Pe))!=null?_0x752fce:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x56bd84=>{var _0x379392=_0x11f92f;this[_0x379392(0x102)][_0x379392(0x11c)]({'eventID':_0x18a920[_0x379392(0x108)],'data':{'unitID':this[_0x379392(0x150)],'operations':{[_0x56bd84['id']]:{'id':_0x56bd84['id'],'params':JSON[_0x379392(0x1a1)](_0x56bd84[_0x379392(0x15a)])}}}},this['_unitID']);})),_0x32bedb['next'](_0x2ee137);})),this[_0x5b5d4d(0x146)]['getInitialStates'](this['_unitID'])[_0x5b5d4d(0x103)](_0x1ecaf7=>this['_collabSession'][_0x5b5d4d(0x11c)]({'eventID':_0x18a920[_0x5b5d4d(0x108)],'data':{'unitID':this['_unitID'],'operations':{[_0x1ecaf7['id']]:{'id':_0x1ecaf7['id'],'params':JSON[_0x5b5d4d(0x1a1)](_0x1ecaf7[_0x5b5d4d(0x15a)])}}}},this[_0x5b5d4d(0x150)]));}[_0x266e96(0x18c)](){var _0x52042a=_0x266e96,_0x211699;this[_0x52042a(0x198)][_0x52042a(0x17d)](_0x52042a(0x15f)),(_0x211699=this[_0x52042a(0x126)])==null||_0x211699[_0x52042a(0x115)](),this[_0x52042a(0x126)]=null;}[_0x266e96(0x182)](){var _0x221800=_0x266e96,_0x513cbd;(_0x513cbd=this['_commandDisposable'])==null||_0x513cbd[_0x221800(0x115)](),this[_0x221800(0x198)]['next'](_0x221800(0x16a));}['_beIdle'](){var _0x2cd0ce=_0x266e96,_0x43ed72;this[_0x2cd0ce(0x198)][_0x2cd0ce(0x17d)]('idle'),(_0x43ed72=this[_0x2cd0ce(0x126)])==null||_0x43ed72[_0x2cd0ce(0x115)](),this['_commandDisposable']=null;}[_0x266e96(0x195)](){var _0x2b9513=_0x266e96,_0x4e6657;this[_0x2b9513(0x198)][_0x2b9513(0x17d)](_0x2b9513(0xfc)),(_0x4e6657=this[_0x2b9513(0x126)])==null||_0x4e6657[_0x2b9513(0x115)]();}[_0x266e96(0x13e)](_0x531c51){var _0x5e25aa=_0x266e96;if(['presenting',_0x5e25aa(0xfc),_0x5e25aa(0x143)][_0x5e25aa(0x156)](this[_0x5e25aa(0x114)])||!_0x531c51[_0x5e25aa(0x15c)]['presenter']||_0x531c51[_0x5e25aa(0x15c)]['presenter']===this[_0x5e25aa(0x102)]['getMemberID']())return;this[_0x5e25aa(0x114)]===_0x5e25aa(0x15f)&&this[_0x5e25aa(0x182)]();const _0x3b786d=_0x531c51[_0x5e25aa(0x15c)]['operations'];Object[_0x5e25aa(0x13a)](_0x3b786d)['forEach'](_0x291ec4=>{var _0x4d5436=_0x5e25aa;this['_commandService'][_0x4d5436(0x199)](_0x291ec4['id'],_0x291ec4[_0x4d5436(0x15a)]?JSON[_0x4d5436(0x1a4)](_0x291ec4['params']):null,{'fromCollab':!0x0});});}[_0x266e96(0x107)](){var _0x2909c4=_0x266e96,_0x26ab93;this[_0x2909c4(0x198)]['next'](_0x2909c4(0x143)),(_0x26ab93=this['_commandDisposable'])==null||_0x26ab93['dispose']();}[_0x266e96(0x1a7)](){var _0x1dcf6=_0x266e96;this['_status$'][_0x1dcf6(0x17d)](_0x1dcf6(0x15f)),this[_0x1dcf6(0x13b)]();}};C=Z([f(0x2,_0x30949d),f(0x3,_0x201664(L)),f(0x4,_0x38d89b)],C);function Te(){var _0x204fe1=_0x266e96;const _0x32207d=_0x57080b(I),_0x5320cf=_0x57080b(_0x3bb6ec),_0xd159b7=_0x281c9c(()=>_0x5320cf[_0x204fe1(0xfa)](_0x1e220f[_0x204fe1(0x11e)]),void 0x0,!0x1,[]),[_0x29a3fa,_0x1ad3c8]=_0x5b9e4e(null),[_0x3be0a2,_0x1dd9ba]=_0x5b9e4e(h['IDLE']),_0x413579=_0x10f31e(null);return _0x1ee1e0(()=>(_0xd159b7&&_0x32207d[_0x204fe1(0x170)](_0xd159b7['getUnitId']())[_0x204fe1(0x151)](_0x2e087d=>{var _0x3c9438=_0x204fe1;_0x1ad3c8(_0x2e087d),_0x413579[_0x3c9438(0x1a5)]=_0x2e087d[_0x3c9438(0x132)][_0x3c9438(0x19d)](_0x29214a=>{_0x1dd9ba(_0x29214a);});}),()=>{var _0x34ba03=_0x204fe1,_0x47b3f3;(_0x47b3f3=_0x413579[_0x34ba03(0x1a5)])==null||_0x47b3f3[_0x34ba03(0x122)](),_0x413579[_0x34ba03(0x1a5)]=null;}),[_0xd159b7,_0x32207d]),_0x29a3fa?_0xed2a76(_0x8f2ebf,{'align':_0x204fe1(0x120),'disabled':_0x3be0a2===h['OFFLINE'],'className':_0x204fe1(0x166),'overlay':_0xed2a76($e,{'status':_0x3be0a2,'coordinator':_0x29a3fa}),'children':_0xed2a76(_0x204fe1(0x121),{'className':_0x58ef02(_0x204fe1(0x100),{'univer-cursor-not-allowed':_0x3be0a2===h[_0x204fe1(0x174)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3be0a2!==h['OFFLINE']}),'type':'button','children':_0xed2a76(B,{'className':_0x204fe1(0x161)})})}):null;}function $e(_0xf7398e){var _0x3e6fee=_0x266e96;const {status:_0x1da09e,coordinator:_0x1d2805}=_0xf7398e;switch(_0x1da09e){case h[_0x3e6fee(0x164)]:return _0xed2a76(Fe,{'coordinator':_0x1d2805});case h[_0x3e6fee(0x191)]:return _0xed2a76(He,{'coordinator':_0x1d2805});case h[_0x3e6fee(0x189)]:return _0xed2a76(je,{'coordinator':_0x1d2805});case h['OFFLINE']:return _0xed2a76(Ve,{});case h[_0x3e6fee(0x194)]:return _0xed2a76(Ue,{'coordinator':_0x1d2805});default:return null;}}function Fe(_0x483786){var _0x549a90=_0x266e96;const {coordinator:_0x10de97}=_0x483786;return _0x5b5885(_0x4b5497,{'children':[_0xed2a76(_0x549a90(0x135),{'className':_0x549a90(0x11d),'children':_0x549a90(0x10b)}),_0xed2a76(_0x11d578,{'onClick':()=>_0x10de97['tryStartPresenting'](),'children':_0x549a90(0x186)})]});}function He(_0x44e840){var _0x3d2aba=_0x266e96;const {coordinator:_0x35efd4}=_0x44e840;return _0x5b5885(_0x4b5497,{'children':[_0xed2a76(_0x3d2aba(0x135),{'className':_0x3d2aba(0x11d),'children':_0x3d2aba(0x15d)}),_0xed2a76(_0x11d578,{'onClick':()=>_0x35efd4[_0x3d2aba(0x179)](),'children':'Stop\x20following'})]});}function je(_0x191f91){var _0x31f723=_0x266e96;const {coordinator:_0x245935}=_0x191f91;return _0x5b5885(_0x4b5497,{'children':[_0xed2a76(_0x31f723(0x135),{'className':_0x31f723(0x11d),'children':_0x31f723(0x176)}),_0xed2a76(_0x11d578,{'variant':_0x31f723(0x160),'onClick':()=>_0x245935[_0x31f723(0x10d)](),'children':_0x31f723(0x1a2)})]});}function Ue(_0x3c63fe){var _0x697e96=_0x266e96;const {coordinator:_0x2fc404}=_0x3c63fe;return _0x5b5885(_0x4b5497,{'children':[_0xed2a76(_0x697e96(0x135),{'className':_0x697e96(0x11d),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xed2a76(_0x11d578,{'variant':_0x697e96(0x16f),'onClick':()=>_0x2fc404[_0x697e96(0xff)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x5ae2d8=_0x266e96;return _0xed2a76(_0x4b5497,{'children':_0x5ae2d8(0x13f)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x3730ad,_0x5b45db,_0x4c0d4d,_0x35293c)=>{var _0x329f79=_0x266e96;for(var _0x4da91e=_0x35293c>0x1?void 0x0:_0x35293c?Me(_0x5b45db,_0x4c0d4d):_0x5b45db,_0x6f9185=_0x3730ad[_0x329f79(0x10c)]-0x1,_0x4c90ea;_0x6f9185>=0x0;_0x6f9185--)(_0x4c90ea=_0x3730ad[_0x6f9185])&&(_0x4da91e=_0x4c90ea(_0x4da91e)||_0x4da91e);return _0x4da91e;},$=(_0x1be854,_0x3c369b)=>(_0x2afd72,_0x25812d)=>_0x3c369b(_0x2afd72,_0x25812d,_0x1be854);let b=class extends _0x5c1827{constructor(_0x5ca58a,_0x524ef5){var _0x5910e2=_0x266e96;super(),this['_injector']=_0x5ca58a,this[_0x5910e2(0x19a)]=_0x524ef5,this[_0x5910e2(0x18d)]();}['_mountLiveShare'](){var _0x170da8=_0x266e96;this[_0x170da8(0x1ab)](this[_0x170da8(0x19a)][_0x170da8(0x13c)](_0x22d6bc[_0x170da8(0x136)],()=>_0x2b2067(Te,this[_0x170da8(0x141)])));}};b=ke([$(0x0,_0x201664(_0x3c7828)),$(0x1,_0x130b00)],b);function _0x23fb(){var _0x272e21=['UniverIcon','tryStartPresenting','_configService','values','_fetchOperations','registerComponent','has','_handleOperation','You\x27are\x20offline.','onRendered','_injector','mask','offline','registerSharedOperation','LIVESHARE_REQUEST_HOST','_liveShareService','_handleNewHost','tag','getTypeOfUnitAdded$','add','className','init','memberID','LIVESHARE_NEW_HOST','url(#$1','_unitID','then','onCommandExecuted','asObservable','symbol','string','includes','_startPresenting','toString','unitId','params','entries','data','You\x27re\x20following\x20the\x20presenter','defineProperty','idle','text','univer-size-4','sheet','32IEzHlr','IDLE','idSuffix','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','571086TOlelE','3hIkCIh','pipe','following','event$','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','hasOwnProperty','1em','default','getLiveShareCoordinator','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','http://www.w3.org/2000/svg','sessionStatus$','OFFLINE','currentColor','You\x27re\x20not\x20following\x20the\x20presenter','presenting','_reporters','stopFollowing','set','live-share-icon','UNIVER_LIVE_SHARE_PLUGIN','next','icon','path','getTypeOfUnitDisposed$','OPERATION','_startFollowing','from','apply','type','Start','fill','_init','NOT_FOLLOWING','override','143297cCwNIf','_stopPresenting','_mountLiveShare','_sharedOperations','attrs','_config','FOLLOWING','indexOf','ONLINE','PRESENTING','_stopFollowing','LIVESHARE_TERMINATE','xlink:href','_status$','executeCommand','_uiPartsService','get','delete','subscribe','onStarting','concat','440248rLyKLJ','stringify','Start\x20following','0\x200\x2017\x2017','parse','current','setConfig','_handleOnline','createInstance','_handleTerminate','634930WtvrrR','disposeWithMe','colorChannel1','getMemberID','getCurrentTypeOfUnit$','getOwnPropertySymbols','not-following','svg','_handleNewChangeSets','stopPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getValue','_collabSession','forEach','prototype','_beIdle','_entities','_handleOffline','LIVESHARE_OPERATION','1187181WBwWEv','defs','Present\x20this\x20document','length','startFollowing','substring','displayName','evenodd','clear','children','defIds','_status','dispose','_commandService','live-share.config','none','75803AiNups','LIVESHARE_FETCH_OPERATIONS','dispose$','send','univer-mb-3\x20univer-w-full\x20univer-text-sm','UNIVER_SHEET','map','end','button','unsubscribe','453570RkeWJn','mutations','_univerInstanceService','_commandDisposable','getOwnPropertyDescriptor','_presenter','_startLiveShareCoordinator','extend','replace','pluginName','call','use','getInitialStates','_collabSessionService','getUnitId','status$','assign','getConfig','div','HEADER_MENU'];_0x23fb=function(){return _0x272e21;};return _0x23fb();}var Ge=Object[_0x266e96(0x15e)],We=Object[_0x266e96(0x127)],Ye=(_0x4211bd,_0x158d38,_0x5666d6)=>_0x158d38 in _0x4211bd?Ge(_0x4211bd,_0x158d38,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5666d6}):_0x4211bd[_0x158d38]=_0x5666d6,Be=(_0x3e578f,_0x152e36,_0x1802a2,_0x3a0444)=>{var _0x4cedc3=_0x266e96;for(var _0x1d759a=_0x3a0444>0x1?void 0x0:_0x3a0444?We(_0x152e36,_0x1802a2):_0x152e36,_0x398490=_0x3e578f[_0x4cedc3(0x10c)]-0x1,_0x48de9d;_0x398490>=0x0;_0x398490--)(_0x48de9d=_0x3e578f[_0x398490])&&(_0x1d759a=_0x48de9d(_0x1d759a)||_0x1d759a);return _0x1d759a;},F=(_0x56cea0,_0x1e7268)=>(_0x47e741,_0x4a8b15)=>_0x1e7268(_0x47e741,_0x4a8b15,_0x56cea0),J=(_0x3b8d23,_0xd4c800,_0x383fc3)=>Ye(_0x3b8d23,typeof _0xd4c800!=_0x266e96(0x154)?_0xd4c800+'':_0xd4c800,_0x383fc3);const Ze=_0x266e96(0x17c);let O=class extends _0x5c6bc1{constructor(_0x113563=T,_0x5f2b44,_0x4fc510){var _0x4fdc6c=_0x266e96;super(),this[_0x4fdc6c(0x190)]=_0x113563,this[_0x4fdc6c(0x141)]=_0x5f2b44,this[_0x4fdc6c(0x139)]=_0x4fc510;const {..._0xa1e5be}=_0xc1095b({},T,this[_0x4fdc6c(0x190)]);this['_configService'][_0x4fdc6c(0x1a6)](Oe,_0xa1e5be);}[_0x266e96(0x19e)](){var _0x355eec=_0x266e96;_0x4dfd5d(this[_0x355eec(0x141)],_0x1b58bd([[L],[I],[m],[b]],this['_config'][_0x355eec(0x18a)])),_0x147e80(this[_0x355eec(0x141)],[[m]]);}[_0x266e96(0x140)](){_0x147e80(this['_injector'],[[b]]);}};J(O,_0x266e96(0x185),_0x1e220f['UNIVER_UNKNOWN']),J(O,_0x266e96(0x12c),Ze),O=Be([_0x393241(_0x5d2e38),F(0x1,_0x201664(_0x3c7828)),F(0x2,_0x30949d)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x512809=_0x18ad;(function(_0x522e3e,_0x560a95){var _0x163ba2=_0x18ad,_0x36df1f=_0x522e3e();while(!![]){try{var _0x40e2cf=-parseInt(_0x163ba2(0x1e3))/0x1*(parseInt(_0x163ba2(0x24a))/0x2)+-parseInt(_0x163ba2(0x223))/0x3*(parseInt(_0x163ba2(0x219))/0x4)+-parseInt(_0x163ba2(0x22c))/0x5*(parseInt(_0x163ba2(0x1f0))/0x6)+parseInt(_0x163ba2(0x1ba))/0x7+-parseInt(_0x163ba2(0x20e))/0x8*(-parseInt(_0x163ba2(0x1f6))/0x9)+parseInt(_0x163ba2(0x259))/0xa*(-parseInt(_0x163ba2(0x244))/0xb)+-parseInt(_0x163ba2(0x232))/0xc*(-parseInt(_0x163ba2(0x1d9))/0xd);if(_0x40e2cf===_0x560a95)break;else _0x36df1f['push'](_0x36df1f['shift']());}catch(_0x124fa1){_0x36df1f['push'](_0x36df1f['shift']());}}}(_0x61f5,0x67560));var q=Object['defineProperty'],z=(_0x68fa00,_0x26e74e,_0x33a528)=>_0x26e74e in _0x68fa00?q(_0x68fa00,_0x26e74e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33a528}):_0x68fa00[_0x26e74e]=_0x33a528,d=(_0x3b6272,_0xafedd1,_0x209c2f)=>z(_0x3b6272,typeof _0xafedd1!='symbol'?_0xafedd1+'':_0xafedd1,_0x209c2f);import{CollaborationSessionService as _0x1f7d72,SessionStatus as _0x3d4f4e,UniverCollaborationClientPlugin as _0xc07b40}from'@univerjs-pro/collaboration-client';import{Disposable as _0x53ac40,toDisposable as _0x526a75,Inject as _0x30a9c5,IUniverInstanceService as _0xa0d390,Injector as _0x21b692,IConfigService as _0x1caea7,ICommandService as _0x388a0d,RxDisposable as _0x3535cf,UniverInstanceType as _0x12828d,DisposableCollection as _0xd5101f,CommandType as _0x2ec5f9,DependentOn as _0x352ef8,Plugin as _0x2850ce,merge as _0x4a6d52,registerDependencies as _0x1f5629,mergeOverrideWithDependencies as _0x3defda,touchDependencies as _0x397a1f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x390ceb,InsertSheetMutation as _0x10745a}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x60fb13,SetScrollOperation as _0x3a2380}from'@univerjs/sheets-ui';function _0x61f5(){var _0xe6bb77=['startFollowing','currentColor','path','51diWzYn','dispose$','_injector','UNIVER_UNKNOWN','univer-size-4','_commandDisposable','has','getValue','end','5MsckrV','pipe','trim','_beIdle','shouldShareOperation','stopFollowing','235344kpwNSU','get','getCurrentTypeOfUnit$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','propertyIsEnumerable','evenodd','hasOwnProperty','url(#$1','FOLLOWING','Stop\x20following','override','_startPresenting','_reporters','unsubscribe','complete','_handleNewHost','_status','IDLE','11SUGuYM','requireSession','delete','svg','0\x200\x2017\x2017','type','2XmIxfA','_stopPresenting','createInstance','current','getTypeOfUnitAdded$','defineProperty','entries','idSuffix','getMemberID','getOwnPropertySymbols','substring','symbol','OPERATION','unitId','sheet','5208270wjeQAS','LiveShareIcon','colorChannel1','_stopFollowing','getInitialStates','next','LIVESHARE_REQUEST_HOST','add','live-share-icon','not-following','random','extend','data','You\x27re\x20presenting\x20the\x20document','Present\x20this\x20document','concat','_presenter','_status$','stringify','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','Stop\x20presenting','executeCommand','2063320ArzqQR','UNIVER_SHEET','LIVESHARE_NEW_HOST','xlink:href','_handleOperation','registerSharedOperation','_config','defIds','mask','HEADER_MENU','onRendered','_liveShareService','following','_mountLiveShare','memberID','default','univer-mb-3\x20univer-w-full\x20univer-text-sm','dispose','_fetchOperations','_collabSessionService','displayName','icon','_startFollowing','LIVESHARE_TERMINATE','_sharedOperations','values','_unitID','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','idle','_init','715gDfhTV','univerjs-icon\x20univerjs-icon-','registerComponent','_handleOffline','OFFLINE','attrs','_handleTerminate','none','operations','status$','168323nolGAz','offline','_uiPartsService','params','length','_commandService','tag','live-share.config','parse','map','forEach','prototype','send','3601332gNYlWE','string','NOT_FOLLOWING','disposeWithMe','stopPresenting','You\x27re\x20not\x20following\x20the\x20presenter','2745UEwChE','_configService','button','set','then','getOwnPropertyDescriptor','onStarting','className','_collabSession','subscribe','asObservable','init','1em','presenting','includes','presenter','replace','fill','setConfig','call','_handleOnline','div','getUnitId','http://www.w3.org/2000/svg','16472LfavXE','You\x27are\x20offline.','_univerInstanceService','LIVESHARE_OPERATION','getTypeOfUnitDisposed$','_entities','children','clear','ONLINE','Start','indexOf','67948uYCsQg','getConfig','_startLiveShareCoordinator','NEW_CHANGESETS','sessionStatus$','getLiveShareCoordinator','apply'];_0x61f5=function(){return _0xe6bb77;};return _0x61f5();}import{useDependency as _0x48897c,useObservable as _0x14654c,IUIPartsService as _0x44b862,BuiltInUIPart as _0x8c4c5d,connectInjector as _0x29aac4}from'@univerjs/ui';function _0x18ad(_0x12b7b8,_0x49ea19){var _0x61f580=_0x61f5();return _0x18ad=function(_0x18ad3e,_0x331913){_0x18ad3e=_0x18ad3e-0x1b5;var _0x51d98c=_0x61f580[_0x18ad3e];return _0x51d98c;},_0x18ad(_0x12b7b8,_0x49ea19);}import{jsx as _0xe2c74b,jsxs as _0x1774fb,Fragment as _0x315a05}from'react/jsx-runtime';import{Dropdown as _0x5212b4,clsx as _0x11bf78,Button as _0x461148}from'@univerjs/design';import{forwardRef as _0x23e84d,useRef as _0x9bf347,createElement as _0x2e64a6,useState as _0x5573ca,useEffect as _0x36bfdc}from'react';import{CollaborationEvent as _0x46c596,parseProtocolChangeset as _0x598281}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5d9b35,Subject as _0x2b4590}from'rxjs';import{takeUntil as _0x3267ce,throttleTime as _0x214502}from'rxjs/operators';const Oe=_0x512809(0x1ea),T={};class L extends _0x53ac40{constructor(){var _0x5ccad9=_0x512809;super(...arguments),d(this,_0x5ccad9(0x1d2),new Set()),d(this,_0x5ccad9(0x23e),new Set());}[_0x512809(0x1bf)](_0x504f1d){var _0x44866b=_0x512809;return this[_0x44866b(0x1d2)][_0x44866b(0x260)](_0x504f1d),_0x526a75(()=>this['_sharedOperations'][_0x44866b(0x246)](_0x504f1d));}['registerInitialStateReporter'](_0x4e099c){var _0x52ba54=_0x512809;return this[_0x52ba54(0x23e)][_0x52ba54(0x260)](_0x4e099c),_0x526a75(()=>this[_0x52ba54(0x23e)][_0x52ba54(0x246)](_0x4e099c));}[_0x512809(0x230)](_0xb69326){var _0x1bd05e=_0x512809;return this[_0x1bd05e(0x1d2)][_0x1bd05e(0x229)](_0xb69326);}[_0x512809(0x25d)](_0x154a4a){var _0x520ba7=_0x512809;return Array['from'](this['_reporters'])[_0x520ba7(0x1ec)](_0x27a6e6=>_0x27a6e6(_0x154a4a));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x3e12d3,_0x24860c,_0x31faea,_0x100d8c)=>{var _0x126cb1=_0x512809;for(var _0x4432c9=_0x100d8c>0x1?void 0x0:_0x100d8c?Ee(_0x24860c,_0x31faea):_0x24860c,_0x1b71f0=_0x3e12d3[_0x126cb1(0x1e7)]-0x1,_0x11d99f;_0x1b71f0>=0x0;_0x1b71f0--)(_0x11d99f=_0x3e12d3[_0x1b71f0])&&(_0x4432c9=_0x11d99f(_0x4432c9)||_0x4432c9);return _0x4432c9;},Ne=(_0xfaafb,_0x11f4ea)=>(_0x18b947,_0x1d8d0d)=>_0x11f4ea(_0x18b947,_0x1d8d0d,_0xfaafb);let m=class extends _0x53ac40{constructor(_0x1fb8e8){var _0x3c159f=_0x512809;super(),this[_0x3c159f(0x1c5)]=_0x1fb8e8,this[_0x3c159f(0x1d8)]();}[_0x512809(0x1d8)](){var _0x353816=_0x512809;[_0x60fb13['id'],_0x3a2380['id'],_0x390ceb['id']][_0x353816(0x1ed)](_0x562e3c=>{var _0xbab10f=_0x353816;this['disposeWithMe'](this[_0xbab10f(0x1c5)][_0xbab10f(0x1bf)](_0x562e3c));});}};m=we([Ne(0x0,_0x30a9c5(L))],m);var c=function(){var _0x57d78e=_0x512809;return c=Object['assign']||function(_0x4ace82){var _0x67c959=_0x18ad;for(var _0x506049,_0x1b21fb=0x1,_0x4ecbf1=arguments['length'];_0x1b21fb<_0x4ecbf1;_0x1b21fb++){_0x506049=arguments[_0x1b21fb];for(var _0x2cac5b in _0x506049)Object[_0x67c959(0x1ee)][_0x67c959(0x238)][_0x67c959(0x209)](_0x506049,_0x2cac5b)&&(_0x4ace82[_0x2cac5b]=_0x506049[_0x2cac5b]);}return _0x4ace82;},c[_0x57d78e(0x21f)](this,arguments);},Ce=function(_0xaf3767,_0x4d9e48){var _0x179d21=_0x512809,_0x3452ba={};for(var _0x423d8e in _0xaf3767)Object[_0x179d21(0x1ee)][_0x179d21(0x238)][_0x179d21(0x209)](_0xaf3767,_0x423d8e)&&_0x4d9e48[_0x179d21(0x218)](_0x423d8e)<0x0&&(_0x3452ba[_0x423d8e]=_0xaf3767[_0x423d8e]);if(_0xaf3767!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x5b4eb3=0x0,_0x423d8e=Object[_0x179d21(0x253)](_0xaf3767);_0x5b4eb3<_0x423d8e[_0x179d21(0x1e7)];_0x5b4eb3++)_0x4d9e48[_0x179d21(0x218)](_0x423d8e[_0x5b4eb3])<0x0&&Object['prototype'][_0x179d21(0x236)][_0x179d21(0x209)](_0xaf3767,_0x423d8e[_0x5b4eb3])&&(_0x3452ba[_0x423d8e[_0x5b4eb3]]=_0xaf3767[_0x423d8e[_0x5b4eb3]]);}return _0x3452ba;},W=_0x23e84d(function(_0x35eeb2,_0x252419){var _0x4c5a89=_0x512809,_0x5365af=_0x35eeb2[_0x4c5a89(0x1cf)],_0x5b1619=_0x35eeb2['id'],_0x436ecf=_0x35eeb2['className'],_0x19012d=_0x35eeb2[_0x4c5a89(0x264)],_0x5c0195=Ce(_0x35eeb2,['icon','id',_0x4c5a89(0x1fd),_0x4c5a89(0x264)]),_0x214dc1=_0x4c5a89(0x1da)[_0x4c5a89(0x268)](_0x5b1619,'\x20')[_0x4c5a89(0x268)](_0x436ecf||'')[_0x4c5a89(0x22e)](),_0x43cd7b=_0x9bf347('_'['concat'](Le()));return Y(_0x5365af,''[_0x4c5a89(0x268)](_0x5b1619),{'defIds':_0x5365af[_0x4c5a89(0x1c1)],'idSuffix':_0x43cd7b[_0x4c5a89(0x24d)]},c({'ref':_0x252419,'className':_0x214dc1},_0x5c0195),_0x19012d);});function Y(_0x2a805b,_0x38fc5b,_0x59ff1f,_0x35f12a,_0x32f42f){var _0x18223e=_0x512809;return _0x2e64a6(_0x2a805b[_0x18223e(0x1e9)],c(c({'key':_0x38fc5b},De(_0x2a805b,_0x59ff1f,_0x32f42f)),_0x35f12a),(xe(_0x2a805b,_0x59ff1f)['children']||[])[_0x18223e(0x1ec)](function(_0x44ab5e,_0x33eab0){var _0x400984=_0x18223e;return Y(_0x44ab5e,''[_0x400984(0x268)](_0x38fc5b,'-')[_0x400984(0x268)](_0x2a805b['tag'],'-')['concat'](_0x33eab0),_0x59ff1f,void 0x0,_0x32f42f);}));}function De(_0x539084,_0x1301e8,_0x3cf017){var _0x232a8e=_0x512809,_0x33cb35=c({},_0x539084['attrs']);_0x3cf017!=null&&_0x3cf017['colorChannel1']&&_0x33cb35[_0x232a8e(0x207)]===_0x232a8e(0x25b)&&(_0x33cb35[_0x232a8e(0x207)]=_0x3cf017[_0x232a8e(0x25b)]),_0x539084['tag']===_0x232a8e(0x1c2)&&_0x33cb35['id']&&(_0x33cb35['id']=_0x33cb35['id']+_0x1301e8['idSuffix']),Object[_0x232a8e(0x250)](_0x33cb35)[_0x232a8e(0x1ed)](function(_0x30ed3f){var _0x2dd39f=_0x232a8e,_0x362da3=_0x30ed3f[0x0],_0x4fc163=_0x30ed3f[0x1];_0x362da3===_0x2dd39f(0x1c2)&&typeof _0x4fc163==_0x2dd39f(0x1f1)&&(_0x33cb35[_0x362da3]=_0x4fc163[_0x2dd39f(0x206)](/url\(#(.*)\)/,_0x2dd39f(0x239)[_0x2dd39f(0x268)](_0x1301e8['idSuffix'],')')));});var _0x1ce168=_0x1301e8[_0x232a8e(0x1c1)];return!_0x1ce168||_0x1ce168[_0x232a8e(0x1e7)]===0x0||(_0x539084[_0x232a8e(0x1e9)]==='use'&&_0x33cb35[_0x232a8e(0x1bd)]&&(_0x33cb35[_0x232a8e(0x1bd)]=_0x33cb35[_0x232a8e(0x1bd)]+_0x1301e8['idSuffix']),Object['entries'](_0x33cb35)[_0x232a8e(0x1ed)](function(_0x219945){var _0x12af84=_0x232a8e,_0x3298ad=_0x219945[0x0],_0x3e59a3=_0x219945[0x1];typeof _0x3e59a3==_0x12af84(0x1f1)&&(_0x33cb35[_0x3298ad]=_0x3e59a3['replace'](/url\(#(.*)\)/,_0x12af84(0x239)[_0x12af84(0x268)](_0x1301e8['idSuffix'],')')));})),_0x33cb35;}function xe(_0x2e02f4,_0x1688b5){var _0x15914f=_0x512809,_0x5600cd,_0x551177=_0x1688b5['defIds'];return!_0x551177||_0x551177['length']===0x0?_0x2e02f4:_0x2e02f4[_0x15914f(0x1e9)]==='defs'&&(!((_0x5600cd=_0x2e02f4['children'])===null||_0x5600cd===void 0x0)&&_0x5600cd[_0x15914f(0x1e7)])?c(c({},_0x2e02f4),{'children':_0x2e02f4[_0x15914f(0x214)][_0x15914f(0x1ec)](function(_0x5394b6){var _0xe30fcb=_0x15914f;return typeof _0x5394b6[_0xe30fcb(0x1de)]['id']=='string'&&_0x551177&&_0x551177[_0xe30fcb(0x204)](_0x5394b6[_0xe30fcb(0x1de)]['id'])?c(c({},_0x5394b6),{'attrs':c(c({},_0x5394b6[_0xe30fcb(0x1de)]),{'id':_0x5394b6[_0xe30fcb(0x1de)]['id']+_0x1688b5[_0xe30fcb(0x251)]})}):_0x5394b6;})}):_0x2e02f4;}function Le(){var _0x559577=_0x512809;return Math[_0x559577(0x263)]()['toString'](0x24)[_0x559577(0x254)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x512809(0x247),'attrs':{'xmlns':_0x512809(0x20d),'fill':_0x512809(0x1e0),'viewBox':_0x512809(0x248),'width':_0x512809(0x202),'height':_0x512809(0x202)},'children':[{'tag':_0x512809(0x222),'attrs':{'fill':_0x512809(0x221),'d':_0x512809(0x1b7)}},{'tag':_0x512809(0x222),'attrs':{'fill':_0x512809(0x221),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x512809(0x237),'clipRule':_0x512809(0x237)}}]},B=_0x23e84d(function(_0x42c166,_0x47842e){var _0x398877=_0x512809;return _0x2e64a6(W,Object['assign']({},_0x42c166,{'id':_0x398877(0x261),'ref':_0x47842e,'icon':ye}));});B[_0x512809(0x1ce)]=_0x512809(0x25a);var Re=Object[_0x512809(0x1fb)],Z=(_0x5a0b21,_0x1b1996,_0x272cbc,_0x17e8e9)=>{var _0x4ee099=_0x512809;for(var _0x455e8e=_0x17e8e9>0x1?void 0x0:_0x17e8e9?Re(_0x1b1996,_0x272cbc):_0x1b1996,_0x7b7713=_0x5a0b21[_0x4ee099(0x1e7)]-0x1,_0x49ff6a;_0x7b7713>=0x0;_0x7b7713--)(_0x49ff6a=_0x5a0b21[_0x7b7713])&&(_0x455e8e=_0x49ff6a(_0x455e8e)||_0x455e8e);return _0x455e8e;},f=(_0x3a694d,_0x42c9d8)=>(_0x22a24b,_0x4d38d2)=>_0x42c9d8(_0x22a24b,_0x4d38d2,_0x3a694d);let I=class extends _0x3535cf{constructor(_0x24d818,_0x32303a,_0x20cb24){var _0x3feaed=_0x512809;super(),d(this,_0x3feaed(0x213),new Map()),(this[_0x3feaed(0x210)]=_0x24d818,this['_injector']=_0x32303a,this[_0x3feaed(0x1cd)]=_0x20cb24,this[_0x3feaed(0x1d8)]());}async[_0x512809(0x21e)](_0x5cdf3c){var _0x394492=_0x512809;return this[_0x394492(0x213)][_0x394492(0x229)](_0x5cdf3c)||await this[_0x394492(0x21b)](_0x5cdf3c),this[_0x394492(0x213)][_0x394492(0x233)](_0x5cdf3c);}['_init'](){var _0x7b76ac=_0x512809;this['_univerInstanceService'][_0x7b76ac(0x24e)](_0x12828d[_0x7b76ac(0x1bb)])['pipe'](_0x3267ce(this[_0x7b76ac(0x224)]))['subscribe'](async _0x316d0a=>{var _0xfdbc99=_0x7b76ac;const _0x560061=_0x316d0a[_0xfdbc99(0x20c)]();this[_0xfdbc99(0x213)][_0xfdbc99(0x229)](_0x560061)||this[_0xfdbc99(0x21b)](_0x560061);}),this[_0x7b76ac(0x210)][_0x7b76ac(0x212)](_0x12828d[_0x7b76ac(0x1bb)])[_0x7b76ac(0x22d)](_0x3267ce(this[_0x7b76ac(0x224)]))['subscribe'](_0x5a06eb=>{var _0xe40c16=_0x7b76ac;const _0x40e484=_0x5a06eb['getUnitId'](),_0x59b270=this['_entities']['get'](_0x40e484);_0x59b270==null||_0x59b270[_0xe40c16(0x1cb)]();});}async[_0x512809(0x21b)](_0x299e38){var _0x109118=_0x512809;const _0x897ae4=await this[_0x109118(0x1cd)][_0x109118(0x245)](_0x299e38),_0x5254d2=this[_0x109118(0x225)][_0x109118(0x24c)](C,_0x299e38,_0x897ae4);return _0x5254d2['init'](),this['_entities'][_0x109118(0x1f9)](_0x299e38,_0x5254d2),_0x5254d2;}};I=Z([f(0x0,_0xa0d390),f(0x1,_0x30a9c5(_0x21b692)),f(0x2,_0x30a9c5(_0x1f7d72))],I);var h=(_0x1bd8c6=>(_0x1bd8c6[_0x512809(0x1dd)]=_0x512809(0x1e4),_0x1bd8c6[_0x512809(0x243)]='idle',_0x1bd8c6[_0x512809(0x23a)]=_0x512809(0x1c6),_0x1bd8c6[_0x512809(0x1f2)]=_0x512809(0x262),_0x1bd8c6['PRESENTING']=_0x512809(0x203),_0x1bd8c6))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x3535cf{constructor(_0x107549,_0x41b26f,_0x2ad2f6,_0xb42cdf,_0x46da28){var _0xc8f317=_0x512809;super(),d(this,_0xc8f317(0x1b5),new _0x5d9b35('idle')),d(this,_0xc8f317(0x1e2),this['_status$'][_0xc8f317(0x200)]()),d(this,_0xc8f317(0x1d8),!0x1),d(this,_0xc8f317(0x228),null),d(this,_0xc8f317(0x269),null),(this[_0xc8f317(0x1d4)]=_0x107549,this[_0xc8f317(0x1fe)]=_0x41b26f,this['_configService']=_0x2ad2f6,this[_0xc8f317(0x1c5)]=_0xb42cdf,this[_0xc8f317(0x1e8)]=_0x46da28);}get[_0x512809(0x242)](){var _0x3186b1=_0x512809;return this['_status$'][_0x3186b1(0x22a)]();}[_0x512809(0x1cb)](){var _0x4e97f7=_0x512809,_0x385e41;(_0x385e41=this[_0x4e97f7(0x228)])==null||_0x385e41[_0x4e97f7(0x1cb)](),this['_status$'][_0x4e97f7(0x25e)](_0x4e97f7(0x1d7)),this[_0x4e97f7(0x1b5)][_0x4e97f7(0x240)]();}[_0x512809(0x201)](){var _0x208335=_0x512809;this[_0x208335(0x1d8)]||(this[_0x208335(0x1d8)]=!0x0,this[_0x208335(0x1fe)][_0x208335(0x21d)][_0x208335(0x22d)](_0x3267ce(this[_0x208335(0x224)]))[_0x208335(0x1ff)](_0x3d663e=>{var _0x4bbee4=_0x208335;switch(_0x3d663e){case _0x3d4f4e[_0x4bbee4(0x1dd)]:this[_0x4bbee4(0x1dc)]();break;case _0x3d4f4e[_0x4bbee4(0x216)]:this[_0x4bbee4(0x20a)]();break;}}),this['_collabSession']['event$'][_0x208335(0x22d)](_0x3267ce(this['dispose$']))[_0x208335(0x1ff)](_0x49efb3=>{var _0x320493=_0x208335;const {eventID:_0x1349af}=_0x49efb3;switch(_0x1349af){case _0x46c596[_0x320493(0x1bc)]:this[_0x320493(0x241)](_0x49efb3);break;case _0x46c596[_0x320493(0x211)]:this['_handleOperation'](_0x49efb3);break;case _0x46c596[_0x320493(0x1d1)]:this[_0x320493(0x1df)]();break;case _0x46c596[_0x320493(0x21c)]:this['_handleNewChangeSets'](_0x49efb3);break;}}));}[_0x512809(0x1d6)](){var _0x544832=_0x512809;this[_0x544832(0x1fe)]['send']({'eventID':_0x46c596[_0x544832(0x25f)],'data':{'unitID':this['_unitID'],'userID':this[_0x544832(0x1fe)][_0x544832(0x252)]()}},this[_0x544832(0x1d4)]);}[_0x512809(0x1f4)](){var _0x3f6b43=_0x512809;this[_0x3f6b43(0x242)]===_0x3f6b43(0x203)&&(this['_status$'][_0x3f6b43(0x25e)]('idle'),this[_0x3f6b43(0x1fe)][_0x3f6b43(0x1ef)]({'eventID':_0x46c596[_0x3f6b43(0x1d1)],'data':{'unitID':this['_unitID']}},this[_0x3f6b43(0x1d4)]));}[_0x512809(0x220)](){var _0x362c40=_0x512809;this[_0x362c40(0x242)]==='not-following'&&(this[_0x362c40(0x1b5)]['next'](_0x362c40(0x1c6)),this[_0x362c40(0x1d0)]());}[_0x512809(0x231)](){var _0x165ed4=_0x512809;this['_status']==='following'&&this[_0x165ed4(0x25c)]();}['_handleNewHost'](_0x4ca3d9){var _0x4d07ff=_0x512809;const {presenter:_0x5b399d}=_0x4ca3d9['data'],_0x29677d=this[_0x4d07ff(0x1fe)]['getMemberID']();this[_0x4d07ff(0x269)]=_0x5b399d,_0x5b399d===_0x29677d?(this[_0x4d07ff(0x25c)](),this[_0x4d07ff(0x23d)]()):this['_status']!==_0x4d07ff(0x262)&&(this['_stopPresenting'](),this[_0x4d07ff(0x1d0)]());}[_0x512809(0x1cc)](){var _0xaf2e2f=_0x512809;const _0x2b23b2={'eventID':_0x46c596['LIVESHARE_FETCH_OPERATIONS']};this[_0xaf2e2f(0x1fe)][_0xaf2e2f(0x1ef)](_0x2b23b2,this[_0xaf2e2f(0x1d4)]);}[_0x512809(0x1df)](){var _0x40965e=_0x512809;this[_0x40965e(0x269)]=null,this['_status']!=='presenting'&&this[_0x40965e(0x22f)]();}['_handleNewChangeSets'](_0x48983b){var _0x561f87=_0x512809;if(this[_0x561f87(0x242)]==='following'&&this['_presenter']===_0x48983b[_0x561f87(0x265)][_0x561f87(0x1c8)]){const _0x26cb02=_0x598281(_0x48983b[_0x561f87(0x265)])['mutations']['reverse']()['find'](_0x1941d1=>_0x1941d1['id']===_0x10745a['id']);if(_0x26cb02){const _0x5994b7=_0x26cb02[_0x561f87(0x1e6)][_0x561f87(0x257)],_0x2ec8d6=_0x26cb02[_0x561f87(0x1e6)][_0x561f87(0x258)]['id'];setTimeout(()=>{var _0x344599=_0x561f87;this['_commandService'][_0x344599(0x1b9)](_0x390ceb['id'],{'unitId':_0x5994b7,'subUnitId':_0x2ec8d6},{'fromCollab':!0x0});});}}}[_0x512809(0x23d)](){var _0x27c8c2=_0x512809;this[_0x27c8c2(0x1b5)][_0x27c8c2(0x25e)](_0x27c8c2(0x203));const _0x21cdb3=new Map(),_0x22effa=this[_0x27c8c2(0x228)]=new _0xd5101f();_0x22effa[_0x27c8c2(0x260)](_0x526a75(()=>{var _0xe799c4=_0x27c8c2;_0x21cdb3['forEach'](_0x4c3f62=>_0x4c3f62[_0xe799c4(0x240)]()),_0x21cdb3[_0xe799c4(0x215)]();})),_0x22effa[_0x27c8c2(0x260)](this[_0x27c8c2(0x1e8)]['onCommandExecuted'](_0x1c30cc=>{var _0x48e5af=_0x27c8c2,_0x79a571;if(_0x1c30cc[_0x48e5af(0x249)]!==_0x2ec5f9[_0x48e5af(0x256)]||!this[_0x48e5af(0x1c5)][_0x48e5af(0x230)](_0x1c30cc['id']))return;const {id:_0x421485}=_0x1c30cc;let _0x235d41;_0x21cdb3[_0x48e5af(0x229)](_0x421485)?_0x235d41=_0x21cdb3[_0x48e5af(0x233)](_0x421485):(_0x235d41=new _0x2b4590(),_0x21cdb3['set'](_0x421485,_0x235d41),_0x235d41[_0x48e5af(0x22d)](_0x214502((_0x79a571=this[_0x48e5af(0x1f7)][_0x48e5af(0x21a)](Pe))!=null?_0x79a571:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x44163e=>{var _0xcd51c=_0x48e5af;this[_0xcd51c(0x1fe)]['send']({'eventID':_0x46c596[_0xcd51c(0x211)],'data':{'unitID':this['_unitID'],'operations':{[_0x44163e['id']]:{'id':_0x44163e['id'],'params':JSON[_0xcd51c(0x1b6)](_0x44163e['params'])}}}},this[_0xcd51c(0x1d4)]);})),_0x235d41[_0x48e5af(0x25e)](_0x1c30cc);})),this[_0x27c8c2(0x1c5)][_0x27c8c2(0x25d)](this[_0x27c8c2(0x1d4)])[_0x27c8c2(0x1ed)](_0x5df21c=>this['_collabSession']['send']({'eventID':_0x46c596[_0x27c8c2(0x211)],'data':{'unitID':this['_unitID'],'operations':{[_0x5df21c['id']]:{'id':_0x5df21c['id'],'params':JSON['stringify'](_0x5df21c[_0x27c8c2(0x1e6)])}}}},this[_0x27c8c2(0x1d4)]));}[_0x512809(0x24b)](){var _0x4388fb=_0x512809,_0x35c0b0;this[_0x4388fb(0x1b5)]['next']('idle'),(_0x35c0b0=this[_0x4388fb(0x228)])==null||_0x35c0b0[_0x4388fb(0x1cb)](),this['_commandDisposable']=null;}[_0x512809(0x1d0)](){var _0x4b39ff=_0x512809,_0x2780a8;(_0x2780a8=this['_commandDisposable'])==null||_0x2780a8['dispose'](),this[_0x4b39ff(0x1b5)][_0x4b39ff(0x25e)](_0x4b39ff(0x1c6));}[_0x512809(0x22f)](){var _0x5e12a1=_0x512809,_0x3f90c5;this[_0x5e12a1(0x1b5)][_0x5e12a1(0x25e)](_0x5e12a1(0x1d7)),(_0x3f90c5=this['_commandDisposable'])==null||_0x3f90c5[_0x5e12a1(0x1cb)](),this[_0x5e12a1(0x228)]=null;}[_0x512809(0x25c)](){var _0x28613f=_0x512809,_0x290e6f;this[_0x28613f(0x1b5)][_0x28613f(0x25e)](_0x28613f(0x262)),(_0x290e6f=this[_0x28613f(0x228)])==null||_0x290e6f[_0x28613f(0x1cb)]();}[_0x512809(0x1be)](_0x1d3ed1){var _0xa81942=_0x512809;if([_0xa81942(0x203),_0xa81942(0x262),_0xa81942(0x1e4)][_0xa81942(0x204)](this[_0xa81942(0x242)])||!_0x1d3ed1[_0xa81942(0x265)][_0xa81942(0x205)]||_0x1d3ed1[_0xa81942(0x265)]['presenter']===this['_collabSession'][_0xa81942(0x252)]())return;this[_0xa81942(0x242)]===_0xa81942(0x1d7)&&this['_startFollowing']();const _0x2a9e98=_0x1d3ed1[_0xa81942(0x265)][_0xa81942(0x1e1)];Object[_0xa81942(0x1d3)](_0x2a9e98)[_0xa81942(0x1ed)](_0x27a2a8=>{var _0x28aef5=_0xa81942;this[_0x28aef5(0x1e8)]['executeCommand'](_0x27a2a8['id'],_0x27a2a8['params']?JSON[_0x28aef5(0x1eb)](_0x27a2a8['params']):null,{'fromCollab':!0x0});});}[_0x512809(0x1dc)](){var _0x4b31ef=_0x512809,_0x272ce4;this['_status$']['next'](_0x4b31ef(0x1e4)),(_0x272ce4=this[_0x4b31ef(0x228)])==null||_0x272ce4[_0x4b31ef(0x1cb)]();}[_0x512809(0x20a)](){var _0x4de46e=_0x512809;this[_0x4de46e(0x1b5)][_0x4de46e(0x25e)](_0x4de46e(0x1d7)),this[_0x4de46e(0x1cc)]();}};C=Z([f(0x2,_0x1caea7),f(0x3,_0x30a9c5(L)),f(0x4,_0x388a0d)],C);function Te(){var _0x27995f=_0x512809;const _0x39e5c7=_0x48897c(I),_0x64dfc6=_0x48897c(_0xa0d390),_0x19d5b0=_0x14654c(()=>_0x64dfc6[_0x27995f(0x234)](_0x12828d['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x48b90d,_0xa6caef]=_0x5573ca(null),[_0x4847db,_0x3b7014]=_0x5573ca(h[_0x27995f(0x243)]),_0x146e05=_0x9bf347(null);return _0x36bfdc(()=>(_0x19d5b0&&_0x39e5c7[_0x27995f(0x21e)](_0x19d5b0[_0x27995f(0x20c)]())[_0x27995f(0x1fa)](_0x416fc2=>{var _0x6b5fc0=_0x27995f;_0xa6caef(_0x416fc2),_0x146e05['current']=_0x416fc2[_0x6b5fc0(0x1e2)]['subscribe'](_0x21de69=>{_0x3b7014(_0x21de69);});}),()=>{var _0x3aabbc=_0x27995f,_0xd6fe6b;(_0xd6fe6b=_0x146e05[_0x3aabbc(0x24d)])==null||_0xd6fe6b[_0x3aabbc(0x23f)](),_0x146e05[_0x3aabbc(0x24d)]=null;}),[_0x19d5b0,_0x39e5c7]),_0x48b90d?_0xe2c74b(_0x5212b4,{'align':_0x27995f(0x22b),'disabled':_0x4847db===h[_0x27995f(0x1dd)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0xe2c74b($e,{'status':_0x4847db,'coordinator':_0x48b90d}),'children':_0xe2c74b('button',{'className':_0x11bf78(_0x27995f(0x235),{'univer-cursor-not-allowed':_0x4847db===h[_0x27995f(0x1dd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4847db!==h[_0x27995f(0x1dd)]}),'type':_0x27995f(0x1f8),'children':_0xe2c74b(B,{'className':_0x27995f(0x227)})})}):null;}function $e(_0x37bc60){var _0x50aecc=_0x512809;const {status:_0x134775,coordinator:_0x5c5521}=_0x37bc60;switch(_0x134775){case h[_0x50aecc(0x243)]:return _0xe2c74b(Fe,{'coordinator':_0x5c5521});case h['FOLLOWING']:return _0xe2c74b(He,{'coordinator':_0x5c5521});case h[_0x50aecc(0x1f2)]:return _0xe2c74b(je,{'coordinator':_0x5c5521});case h['OFFLINE']:return _0xe2c74b(Ve,{});case h['PRESENTING']:return _0xe2c74b(Ue,{'coordinator':_0x5c5521});default:return null;}}function Fe(_0x1459d6){var _0x5f3141=_0x512809;const {coordinator:_0x3a6f64}=_0x1459d6;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x5f3141(0x20b),{'className':_0x5f3141(0x1ca),'children':_0x5f3141(0x267)}),_0xe2c74b(_0x461148,{'onClick':()=>_0x3a6f64[_0x5f3141(0x1d6)](),'children':_0x5f3141(0x217)})]});}function He(_0x2b5142){var _0x113cba=_0x512809;const {coordinator:_0x4f9b71}=_0x2b5142;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b('div',{'className':_0x113cba(0x1ca),'children':_0x113cba(0x1d5)}),_0xe2c74b(_0x461148,{'onClick':()=>_0x4f9b71[_0x113cba(0x231)](),'children':_0x113cba(0x23b)})]});}function je(_0x1a0356){var _0x4bfadb=_0x512809;const {coordinator:_0x4f49e6}=_0x1a0356;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x4bfadb(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4bfadb(0x1f5)}),_0xe2c74b(_0x461148,{'variant':'text','onClick':()=>_0x4f49e6[_0x4bfadb(0x220)](),'children':'Start\x20following'})]});}function Ue(_0x51ed9b){var _0x62d2a3=_0x512809;const {coordinator:_0x275d7d}=_0x51ed9b;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x62d2a3(0x20b),{'className':_0x62d2a3(0x1ca),'children':_0x62d2a3(0x266)}),_0xe2c74b(_0x461148,{'variant':_0x62d2a3(0x1c9),'onClick':()=>_0x275d7d[_0x62d2a3(0x1f4)](),'children':_0x62d2a3(0x1b8)})]});}function Ve(){var _0x58cca7=_0x512809;return _0xe2c74b(_0x315a05,{'children':_0x58cca7(0x20f)});}var Me=Object[_0x512809(0x1fb)],ke=(_0x502d5f,_0x13bef8,_0x156e38,_0x27d9fb)=>{var _0x1028d4=_0x512809;for(var _0x4276e3=_0x27d9fb>0x1?void 0x0:_0x27d9fb?Me(_0x13bef8,_0x156e38):_0x13bef8,_0x2a9604=_0x502d5f[_0x1028d4(0x1e7)]-0x1,_0x1fe59c;_0x2a9604>=0x0;_0x2a9604--)(_0x1fe59c=_0x502d5f[_0x2a9604])&&(_0x4276e3=_0x1fe59c(_0x4276e3)||_0x4276e3);return _0x4276e3;},$=(_0x33e621,_0x310d72)=>(_0xac02c0,_0x2732a9)=>_0x310d72(_0xac02c0,_0x2732a9,_0x33e621);let b=class extends _0x53ac40{constructor(_0x2d1c5c,_0x3d93ae){var _0x396b49=_0x512809;super(),this[_0x396b49(0x225)]=_0x2d1c5c,this[_0x396b49(0x1e5)]=_0x3d93ae,this[_0x396b49(0x1c7)]();}['_mountLiveShare'](){var _0x440d1b=_0x512809;this[_0x440d1b(0x1f3)](this[_0x440d1b(0x1e5)][_0x440d1b(0x1db)](_0x8c4c5d[_0x440d1b(0x1c3)],()=>_0x29aac4(Te,this['_injector'])));}};b=ke([$(0x0,_0x30a9c5(_0x21b692)),$(0x1,_0x44b862)],b);var Ge=Object[_0x512809(0x24f)],We=Object[_0x512809(0x1fb)],Ye=(_0x479959,_0x1e07c1,_0x5534af)=>_0x1e07c1 in _0x479959?Ge(_0x479959,_0x1e07c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5534af}):_0x479959[_0x1e07c1]=_0x5534af,Be=(_0x39d9de,_0x68c71,_0x3426f4,_0x4e020b)=>{var _0x4b52f8=_0x512809;for(var _0x3ba3da=_0x4e020b>0x1?void 0x0:_0x4e020b?We(_0x68c71,_0x3426f4):_0x68c71,_0x2b549f=_0x39d9de[_0x4b52f8(0x1e7)]-0x1,_0x589753;_0x2b549f>=0x0;_0x2b549f--)(_0x589753=_0x39d9de[_0x2b549f])&&(_0x3ba3da=_0x589753(_0x3ba3da)||_0x3ba3da);return _0x3ba3da;},F=(_0x564057,_0x5f2816)=>(_0x2203aa,_0x2480a2)=>_0x5f2816(_0x2203aa,_0x2480a2,_0x564057),J=(_0x3b23e4,_0x5b5b96,_0x594b84)=>Ye(_0x3b23e4,typeof _0x5b5b96!=_0x512809(0x255)?_0x5b5b96+'':_0x5b5b96,_0x594b84);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x2850ce{constructor(_0x40eeaa=T,_0x5ea98d,_0x214f15){var _0x3ba965=_0x512809;super(),this[_0x3ba965(0x1c0)]=_0x40eeaa,this[_0x3ba965(0x225)]=_0x5ea98d,this[_0x3ba965(0x1f7)]=_0x214f15;const {..._0x59a5fd}=_0x4a6d52({},T,this[_0x3ba965(0x1c0)]);this[_0x3ba965(0x1f7)][_0x3ba965(0x208)](Oe,_0x59a5fd);}[_0x512809(0x1fc)](){var _0x25f4fc=_0x512809;_0x1f5629(this[_0x25f4fc(0x225)],_0x3defda([[L],[I],[m],[b]],this[_0x25f4fc(0x1c0)][_0x25f4fc(0x23c)])),_0x397a1f(this['_injector'],[[m]]);}[_0x512809(0x1c4)](){var _0x4f3f56=_0x512809;_0x397a1f(this[_0x4f3f56(0x225)],[[b]]);}};J(O,_0x512809(0x249),_0x12828d[_0x512809(0x226)]),J(O,'pluginName',Ze),O=Be([_0x352ef8(_0xc07b40),F(0x1,_0x30a9c5(_0x21b692)),F(0x2,_0x1caea7)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x266e96=_0x41c9;(function(_0x83eb32,_0x5567c8){var _0x404059=_0x41c9,_0x5979fc=_0x83eb32();while(!![]){try{var _0x28830b=parseInt(_0x404059(0x119))/0x1+-parseInt(_0x404059(0x1aa))/0x2+-parseInt(_0x404059(0x168))/0x3*(parseInt(_0x404059(0x1a0))/0x4)+-parseInt(_0x404059(0x123))/0x5+parseInt(_0x404059(0x167))/0x6+parseInt(_0x404059(0x18b))/0x7+parseInt(_0x404059(0x163))/0x8*(parseInt(_0x404059(0x109))/0x9);if(_0x28830b===_0x5567c8)break;else _0x5979fc['push'](_0x5979fc['shift']());}catch(_0x216f42){_0x5979fc['push'](_0x5979fc['shift']());}}}(_0x23fb,0x31092));var q=Object[_0x266e96(0x15e)],z=(_0x38376c,_0x36f272,_0x48fbb8)=>_0x36f272 in _0x38376c?q(_0x38376c,_0x36f272,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48fbb8}):_0x38376c[_0x36f272]=_0x48fbb8,d=(_0xa8756,_0x1e70cc,_0x298e7c)=>z(_0xa8756,typeof _0x1e70cc!=_0x266e96(0x154)?_0x1e70cc+'':_0x1e70cc,_0x298e7c);import{CollaborationSessionService as _0x2e4273,SessionStatus as _0x154d08,UniverCollaborationClientPlugin as _0x5d2e38}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5c1827,toDisposable as _0x4fd261,Inject as _0x201664,IUniverInstanceService as _0x3bb6ec,Injector as _0x3c7828,IConfigService as _0x30949d,ICommandService as _0x38d89b,RxDisposable as _0x4dc9c3,UniverInstanceType as _0x1e220f,DisposableCollection as _0x3bbc3f,CommandType as _0xc06dab,DependentOn as _0x393241,Plugin as _0x5c6bc1,merge as _0xc1095b,registerDependencies as _0x4dfd5d,mergeOverrideWithDependencies as _0x1b58bd,touchDependencies as _0x147e80}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1ac35b,InsertSheetMutation as _0x51a4bb}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x38829c,SetScrollOperation as _0x44c95d}from'@univerjs/sheets-ui';import{useDependency as _0x57080b,useObservable as _0x281c9c,IUIPartsService as _0x130b00,BuiltInUIPart as _0x22d6bc,connectInjector as _0x2b2067}from'@univerjs/ui';import{jsx as _0xed2a76,jsxs as _0x5b5885,Fragment as _0x4b5497}from'react/jsx-runtime';import{Dropdown as _0x8f2ebf,clsx as _0x58ef02,Button as _0x11d578}from'@univerjs/design';import{forwardRef as _0x28ac2b,useRef as _0x10f31e,createElement as _0x5abbc2,useState as _0x5b9e4e,useEffect as _0x1ee1e0}from'react';import{CollaborationEvent as _0x18a920,parseProtocolChangeset as _0x4a58f0}from'@univerjs-pro/collaboration';function _0x41c9(_0x28dd0b,_0x1cbe1c){var _0x23fb0c=_0x23fb();return _0x41c9=function(_0x41c9a7,_0x2e1599){_0x41c9a7=_0x41c9a7-0xf8;var _0x29c355=_0x23fb0c[_0x41c9a7];return _0x29c355;},_0x41c9(_0x28dd0b,_0x1cbe1c);}import{BehaviorSubject as _0x3543be,Subject as _0x7ba9c4}from'rxjs';import{takeUntil as _0x1ff6f9,throttleTime as _0xefab3}from'rxjs/operators';const Oe=_0x266e96(0x117),T={};class L extends _0x5c1827{constructor(){var _0x38e361=_0x266e96;super(...arguments),d(this,_0x38e361(0x18e),new Set()),d(this,'_reporters',new Set());}[_0x266e96(0x144)](_0x5e058f){var _0x1ede32=_0x266e96;return this[_0x1ede32(0x18e)][_0x1ede32(0x14a)](_0x5e058f),_0x4fd261(()=>this[_0x1ede32(0x18e)][_0x1ede32(0x19c)](_0x5e058f));}['registerInitialStateReporter'](_0x40619e){var _0x49b3ee=_0x266e96;return this[_0x49b3ee(0x178)][_0x49b3ee(0x14a)](_0x40619e),_0x4fd261(()=>this[_0x49b3ee(0x178)][_0x49b3ee(0x19c)](_0x40619e));}['shouldShareOperation'](_0x3d93f5){return this['_sharedOperations']['has'](_0x3d93f5);}[_0x266e96(0x12f)](_0x3185fa){var _0x40e806=_0x266e96;return Array[_0x40e806(0x183)](this[_0x40e806(0x178)])[_0x40e806(0x11f)](_0x2d8eb8=>_0x2d8eb8(_0x3185fa));}}var Ee=Object[_0x266e96(0x127)],we=(_0x1d677b,_0x2f8bbb,_0x3e6f0d,_0x13f5c0)=>{var _0x4b6d9a=_0x266e96;for(var _0x1aa874=_0x13f5c0>0x1?void 0x0:_0x13f5c0?Ee(_0x2f8bbb,_0x3e6f0d):_0x2f8bbb,_0x501548=_0x1d677b[_0x4b6d9a(0x10c)]-0x1,_0x8d9c80;_0x501548>=0x0;_0x501548--)(_0x8d9c80=_0x1d677b[_0x501548])&&(_0x1aa874=_0x8d9c80(_0x1aa874)||_0x1aa874);return _0x1aa874;},Ne=(_0x581a3e,_0x57e1a9)=>(_0x560374,_0x2aff8b)=>_0x57e1a9(_0x560374,_0x2aff8b,_0x581a3e);let m=class extends _0x5c1827{constructor(_0x3e9282){var _0x3a9bec=_0x266e96;super(),this['_liveShareService']=_0x3e9282,this[_0x3a9bec(0x188)]();}['_init'](){[_0x38829c['id'],_0x44c95d['id'],_0x1ac35b['id']]['forEach'](_0x4c74fa=>{var _0xe38af8=_0x41c9;this[_0xe38af8(0x1ab)](this[_0xe38af8(0x146)]['registerSharedOperation'](_0x4c74fa));});}};m=we([Ne(0x0,_0x201664(L))],m);var c=function(){var _0x41929b=_0x266e96;return c=Object[_0x41929b(0x133)]||function(_0x46659e){var _0x1a04e4=_0x41929b;for(var _0x2f16a7,_0x875f34=0x1,_0x5b432f=arguments[_0x1a04e4(0x10c)];_0x875f34<_0x5b432f;_0x875f34++){_0x2f16a7=arguments[_0x875f34];for(var _0x6db7d in _0x2f16a7)Object['prototype'][_0x1a04e4(0x16d)][_0x1a04e4(0x12d)](_0x2f16a7,_0x6db7d)&&(_0x46659e[_0x6db7d]=_0x2f16a7[_0x6db7d]);}return _0x46659e;},c[_0x41929b(0x184)](this,arguments);},Ce=function(_0x1f61a0,_0x5a1425){var _0x3bedaf=_0x266e96,_0x503e15={};for(var _0xd672c3 in _0x1f61a0)Object[_0x3bedaf(0x104)][_0x3bedaf(0x16d)][_0x3bedaf(0x12d)](_0x1f61a0,_0xd672c3)&&_0x5a1425['indexOf'](_0xd672c3)<0x0&&(_0x503e15[_0xd672c3]=_0x1f61a0[_0xd672c3]);if(_0x1f61a0!=null&&typeof Object[_0x3bedaf(0xfb)]=='function'){for(var _0x1336f4=0x0,_0xd672c3=Object[_0x3bedaf(0xfb)](_0x1f61a0);_0x1336f4<_0xd672c3[_0x3bedaf(0x10c)];_0x1336f4++)_0x5a1425[_0x3bedaf(0x192)](_0xd672c3[_0x1336f4])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x3bedaf(0x12d)](_0x1f61a0,_0xd672c3[_0x1336f4])&&(_0x503e15[_0xd672c3[_0x1336f4]]=_0x1f61a0[_0xd672c3[_0x1336f4]]);}return _0x503e15;},W=_0x28ac2b(function(_0x433e1e,_0x2cc24f){var _0x3df9bc=_0x266e96,_0x26e3b6=_0x433e1e[_0x3df9bc(0x17e)],_0x46d8b5=_0x433e1e['id'],_0x1cd8ac=_0x433e1e[_0x3df9bc(0x14b)],_0x3ede57=_0x433e1e[_0x3df9bc(0x12a)],_0x5cd32c=Ce(_0x433e1e,[_0x3df9bc(0x17e),'id','className',_0x3df9bc(0x12a)]),_0x1aacc7='univerjs-icon\x20univerjs-icon-'[_0x3df9bc(0x19f)](_0x46d8b5,'\x20')[_0x3df9bc(0x19f)](_0x1cd8ac||'')['trim'](),_0x146f76=_0x10f31e('_'[_0x3df9bc(0x19f)](Le()));return Y(_0x26e3b6,''[_0x3df9bc(0x19f)](_0x46d8b5),{'defIds':_0x26e3b6[_0x3df9bc(0x113)],'idSuffix':_0x146f76[_0x3df9bc(0x1a5)]},c({'ref':_0x2cc24f,'className':_0x1aacc7},_0x5cd32c),_0x3ede57);});function Y(_0x3c45ba,_0x5603da,_0x47bb93,_0x231c6e,_0x515d64){var _0x58ab94=_0x266e96;return _0x5abbc2(_0x3c45ba[_0x58ab94(0x148)],c(c({'key':_0x5603da},De(_0x3c45ba,_0x47bb93,_0x515d64)),_0x231c6e),(xe(_0x3c45ba,_0x47bb93)[_0x58ab94(0x112)]||[])[_0x58ab94(0x11f)](function(_0x33d18c,_0x3a179b){var _0x1ea5c5=_0x58ab94;return Y(_0x33d18c,''[_0x1ea5c5(0x19f)](_0x5603da,'-')[_0x1ea5c5(0x19f)](_0x3c45ba[_0x1ea5c5(0x148)],'-')['concat'](_0x3a179b),_0x47bb93,void 0x0,_0x515d64);}));}function De(_0x69c754,_0x59c4ca,_0x59f1d5){var _0x93617c=_0x266e96,_0x1e61fb=c({},_0x69c754['attrs']);_0x59f1d5!=null&&_0x59f1d5[_0x93617c(0xf8)]&&_0x1e61fb[_0x93617c(0x187)]===_0x93617c(0xf8)&&(_0x1e61fb[_0x93617c(0x187)]=_0x59f1d5[_0x93617c(0xf8)]),_0x69c754[_0x93617c(0x148)]===_0x93617c(0x142)&&_0x1e61fb['id']&&(_0x1e61fb['id']=_0x1e61fb['id']+_0x59c4ca[_0x93617c(0x165)]),Object[_0x93617c(0x15b)](_0x1e61fb)[_0x93617c(0x103)](function(_0x166198){var _0x42945e=_0x93617c,_0x44510=_0x166198[0x0],_0x4c5557=_0x166198[0x1];_0x44510==='mask'&&typeof _0x4c5557==_0x42945e(0x155)&&(_0x1e61fb[_0x44510]=_0x4c5557[_0x42945e(0x12b)](/url\(#(.*)\)/,_0x42945e(0x14f)[_0x42945e(0x19f)](_0x59c4ca[_0x42945e(0x165)],')')));});var _0x107f14=_0x59c4ca[_0x93617c(0x113)];return!_0x107f14||_0x107f14[_0x93617c(0x10c)]===0x0||(_0x69c754[_0x93617c(0x148)]===_0x93617c(0x12e)&&_0x1e61fb['xlink:href']&&(_0x1e61fb[_0x93617c(0x197)]=_0x1e61fb[_0x93617c(0x197)]+_0x59c4ca[_0x93617c(0x165)]),Object[_0x93617c(0x15b)](_0x1e61fb)[_0x93617c(0x103)](function(_0x48b43e){var _0xd058b7=_0x93617c,_0x3be6bd=_0x48b43e[0x0],_0xd12c57=_0x48b43e[0x1];typeof _0xd12c57==_0xd058b7(0x155)&&(_0x1e61fb[_0x3be6bd]=_0xd12c57[_0xd058b7(0x12b)](/url\(#(.*)\)/,_0xd058b7(0x14f)[_0xd058b7(0x19f)](_0x59c4ca['idSuffix'],')')));})),_0x1e61fb;}function xe(_0x169625,_0xfcc544){var _0x7e6ab3=_0x266e96,_0x5c0e3b,_0x4f1c58=_0xfcc544['defIds'];return!_0x4f1c58||_0x4f1c58['length']===0x0?_0x169625:_0x169625[_0x7e6ab3(0x148)]===_0x7e6ab3(0x10a)&&(!((_0x5c0e3b=_0x169625[_0x7e6ab3(0x112)])===null||_0x5c0e3b===void 0x0)&&_0x5c0e3b[_0x7e6ab3(0x10c)])?c(c({},_0x169625),{'children':_0x169625['children'][_0x7e6ab3(0x11f)](function(_0x1bf824){var _0x4ac169=_0x7e6ab3;return typeof _0x1bf824['attrs']['id']==_0x4ac169(0x155)&&_0x4f1c58&&_0x4f1c58[_0x4ac169(0x156)](_0x1bf824[_0x4ac169(0x18f)]['id'])?c(c({},_0x1bf824),{'attrs':c(c({},_0x1bf824[_0x4ac169(0x18f)]),{'id':_0x1bf824[_0x4ac169(0x18f)]['id']+_0xfcc544[_0x4ac169(0x165)]})}):_0x1bf824;})}):_0x169625;}function Le(){var _0x2aa84a=_0x266e96;return Math['random']()[_0x2aa84a(0x158)](0x24)[_0x2aa84a(0x10e)](0x2,0x8);}W[_0x266e96(0x10f)]=_0x266e96(0x137);var ye={'tag':_0x266e96(0xfd),'attrs':{'xmlns':_0x266e96(0x172),'fill':_0x266e96(0x118),'viewBox':_0x266e96(0x1a3),'width':_0x266e96(0x16e),'height':'1em'},'children':[{'tag':_0x266e96(0x17f),'attrs':{'fill':'currentColor','d':_0x266e96(0x16c)}},{'tag':'path','attrs':{'fill':_0x266e96(0x175),'d':_0x266e96(0x171),'fillRule':_0x266e96(0x110),'clipRule':'evenodd'}}]},B=_0x28ac2b(function(_0x38787d,_0x5a79f7){var _0x155b21=_0x266e96;return _0x5abbc2(W,Object[_0x155b21(0x133)]({},_0x38787d,{'id':_0x155b21(0x17b),'ref':_0x5a79f7,'icon':ye}));});B['displayName']='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x385355,_0x39df22,_0x40e64c,_0x2b0fcf)=>{var _0x45b7ca=_0x266e96;for(var _0xfadd7e=_0x2b0fcf>0x1?void 0x0:_0x2b0fcf?Re(_0x39df22,_0x40e64c):_0x39df22,_0x49c629=_0x385355[_0x45b7ca(0x10c)]-0x1,_0x543ffe;_0x49c629>=0x0;_0x49c629--)(_0x543ffe=_0x385355[_0x49c629])&&(_0xfadd7e=_0x543ffe(_0xfadd7e)||_0xfadd7e);return _0xfadd7e;},f=(_0x375149,_0x547755)=>(_0x13245b,_0x202517)=>_0x547755(_0x13245b,_0x202517,_0x375149);let I=class extends _0x4dc9c3{constructor(_0x5ff2f1,_0x4c0d32,_0xa091b0){var _0x5129b0=_0x266e96;super(),d(this,_0x5129b0(0x106),new Map()),(this['_univerInstanceService']=_0x5ff2f1,this[_0x5129b0(0x141)]=_0x4c0d32,this[_0x5129b0(0x130)]=_0xa091b0,this[_0x5129b0(0x188)]());}async[_0x266e96(0x170)](_0x3ad713){var _0x1b4281=_0x266e96;return this[_0x1b4281(0x106)]['has'](_0x3ad713)||await this[_0x1b4281(0x129)](_0x3ad713),this[_0x1b4281(0x106)][_0x1b4281(0x19b)](_0x3ad713);}[_0x266e96(0x188)](){var _0x3df931=_0x266e96;this[_0x3df931(0x125)][_0x3df931(0x149)](_0x1e220f[_0x3df931(0x11e)])[_0x3df931(0x169)](_0x1ff6f9(this[_0x3df931(0x11b)]))[_0x3df931(0x19d)](async _0x4708e3=>{var _0x10fc69=_0x3df931;const _0x232c94=_0x4708e3[_0x10fc69(0x131)]();this[_0x10fc69(0x106)]['has'](_0x232c94)||this[_0x10fc69(0x129)](_0x232c94);}),this[_0x3df931(0x125)][_0x3df931(0x180)](_0x1e220f[_0x3df931(0x11e)])[_0x3df931(0x169)](_0x1ff6f9(this['dispose$']))['subscribe'](_0x130da7=>{var _0x22db9d=_0x3df931;const _0x29b583=_0x130da7[_0x22db9d(0x131)](),_0x4136d6=this[_0x22db9d(0x106)]['get'](_0x29b583);_0x4136d6==null||_0x4136d6[_0x22db9d(0x115)]();});}async[_0x266e96(0x129)](_0x128af1){var _0x5d353f=_0x266e96;const _0x1b4c3c=await this[_0x5d353f(0x130)]['requireSession'](_0x128af1),_0x36224d=this[_0x5d353f(0x141)][_0x5d353f(0x1a8)](C,_0x128af1,_0x1b4c3c);return _0x36224d[_0x5d353f(0x14c)](),this[_0x5d353f(0x106)]['set'](_0x128af1,_0x36224d),_0x36224d;}};I=Z([f(0x0,_0x3bb6ec),f(0x1,_0x201664(_0x3c7828)),f(0x2,_0x201664(_0x2e4273))],I);var h=(_0x1e4d7f=>(_0x1e4d7f[_0x266e96(0x174)]=_0x266e96(0x143),_0x1e4d7f[_0x266e96(0x164)]='idle',_0x1e4d7f[_0x266e96(0x191)]='following',_0x1e4d7f[_0x266e96(0x189)]=_0x266e96(0xfc),_0x1e4d7f[_0x266e96(0x194)]=_0x266e96(0x177),_0x1e4d7f))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x4dc9c3{constructor(_0x3ef0d9,_0x4e5326,_0x59d6ee,_0xce7e5b,_0x54e129){var _0x10701f=_0x266e96;super(),d(this,_0x10701f(0x198),new _0x3543be(_0x10701f(0x15f))),d(this,_0x10701f(0x132),this[_0x10701f(0x198)][_0x10701f(0x153)]()),d(this,_0x10701f(0x188),!0x1),d(this,'_commandDisposable',null),d(this,_0x10701f(0x128),null),(this['_unitID']=_0x3ef0d9,this[_0x10701f(0x102)]=_0x4e5326,this[_0x10701f(0x139)]=_0x59d6ee,this[_0x10701f(0x146)]=_0xce7e5b,this[_0x10701f(0x116)]=_0x54e129);}get[_0x266e96(0x114)](){var _0x59458f=_0x266e96;return this[_0x59458f(0x198)][_0x59458f(0x101)]();}['dispose'](){var _0x300c98=_0x266e96,_0x2a7ff0;(_0x2a7ff0=this[_0x300c98(0x126)])==null||_0x2a7ff0['dispose'](),this[_0x300c98(0x198)]['next'](_0x300c98(0x15f)),this['_status$']['complete']();}[_0x266e96(0x14c)](){var _0x3a11a4=_0x266e96;this['_init']||(this[_0x3a11a4(0x188)]=!0x0,this[_0x3a11a4(0x102)][_0x3a11a4(0x173)][_0x3a11a4(0x169)](_0x1ff6f9(this[_0x3a11a4(0x11b)]))['subscribe'](_0x3822d0=>{var _0x1fc659=_0x3a11a4;switch(_0x3822d0){case _0x154d08['OFFLINE']:this['_handleOffline']();break;case _0x154d08[_0x1fc659(0x193)]:this[_0x1fc659(0x1a7)]();break;}}),this[_0x3a11a4(0x102)][_0x3a11a4(0x16b)][_0x3a11a4(0x169)](_0x1ff6f9(this['dispose$']))[_0x3a11a4(0x19d)](_0xfc0521=>{var _0x62da88=_0x3a11a4;const {eventID:_0x2337be}=_0xfc0521;switch(_0x2337be){case _0x18a920[_0x62da88(0x14e)]:this['_handleNewHost'](_0xfc0521);break;case _0x18a920[_0x62da88(0x108)]:this[_0x62da88(0x13e)](_0xfc0521);break;case _0x18a920[_0x62da88(0x196)]:this[_0x62da88(0x1a9)]();break;case _0x18a920['NEW_CHANGESETS']:this[_0x62da88(0xfe)](_0xfc0521);break;}}));}[_0x266e96(0x138)](){var _0x39f8f5=_0x266e96;this[_0x39f8f5(0x102)]['send']({'eventID':_0x18a920[_0x39f8f5(0x145)],'data':{'unitID':this[_0x39f8f5(0x150)],'userID':this[_0x39f8f5(0x102)][_0x39f8f5(0xf9)]()}},this[_0x39f8f5(0x150)]);}[_0x266e96(0xff)](){var _0x26b897=_0x266e96;this['_status']===_0x26b897(0x177)&&(this[_0x26b897(0x198)][_0x26b897(0x17d)](_0x26b897(0x15f)),this[_0x26b897(0x102)][_0x26b897(0x11c)]({'eventID':_0x18a920[_0x26b897(0x196)],'data':{'unitID':this['_unitID']}},this[_0x26b897(0x150)]));}[_0x266e96(0x10d)](){var _0xd6d461=_0x266e96;this[_0xd6d461(0x114)]==='not-following'&&(this[_0xd6d461(0x198)][_0xd6d461(0x17d)]('following'),this[_0xd6d461(0x182)]());}[_0x266e96(0x179)](){var _0x30f7db=_0x266e96;this[_0x30f7db(0x114)]===_0x30f7db(0x16a)&&this[_0x30f7db(0x195)]();}[_0x266e96(0x147)](_0x542e45){var _0x333ba9=_0x266e96;const {presenter:_0x253929}=_0x542e45['data'],_0x21683c=this['_collabSession'][_0x333ba9(0xf9)]();this['_presenter']=_0x253929,_0x253929===_0x21683c?(this['_stopFollowing'](),this[_0x333ba9(0x157)]()):this[_0x333ba9(0x114)]!==_0x333ba9(0xfc)&&(this['_stopPresenting'](),this[_0x333ba9(0x182)]());}[_0x266e96(0x13b)](){var _0x1dca5a=_0x266e96;const _0x404e01={'eventID':_0x18a920[_0x1dca5a(0x11a)]};this['_collabSession']['send'](_0x404e01,this['_unitID']);}[_0x266e96(0x1a9)](){var _0x16d87b=_0x266e96;this[_0x16d87b(0x128)]=null,this[_0x16d87b(0x114)]!=='presenting'&&this[_0x16d87b(0x105)]();}['_handleNewChangeSets'](_0x2d24ec){var _0x4954c7=_0x266e96;if(this[_0x4954c7(0x114)]===_0x4954c7(0x16a)&&this[_0x4954c7(0x128)]===_0x2d24ec[_0x4954c7(0x15c)][_0x4954c7(0x14d)]){const _0x33d1fd=_0x4a58f0(_0x2d24ec['data'])[_0x4954c7(0x124)]['reverse']()['find'](_0x549320=>_0x549320['id']===_0x51a4bb['id']);if(_0x33d1fd){const _0x422de2=_0x33d1fd[_0x4954c7(0x15a)][_0x4954c7(0x159)],_0x10b91f=_0x33d1fd[_0x4954c7(0x15a)][_0x4954c7(0x162)]['id'];setTimeout(()=>{var _0x361ad3=_0x4954c7;this[_0x361ad3(0x116)]['executeCommand'](_0x1ac35b['id'],{'unitId':_0x422de2,'subUnitId':_0x10b91f},{'fromCollab':!0x0});});}}}[_0x266e96(0x157)](){var _0x5b5d4d=_0x266e96;this[_0x5b5d4d(0x198)][_0x5b5d4d(0x17d)](_0x5b5d4d(0x177));const _0x1f4632=new Map(),_0x56c7b9=this['_commandDisposable']=new _0x3bbc3f();_0x56c7b9[_0x5b5d4d(0x14a)](_0x4fd261(()=>{var _0x475067=_0x5b5d4d;_0x1f4632[_0x475067(0x103)](_0x2cbe75=>_0x2cbe75['complete']()),_0x1f4632[_0x475067(0x111)]();})),_0x56c7b9[_0x5b5d4d(0x14a)](this[_0x5b5d4d(0x116)][_0x5b5d4d(0x152)](_0x2ee137=>{var _0x11f92f=_0x5b5d4d,_0x752fce;if(_0x2ee137['type']!==_0xc06dab[_0x11f92f(0x181)]||!this['_liveShareService']['shouldShareOperation'](_0x2ee137['id']))return;const {id:_0xbd9464}=_0x2ee137;let _0x32bedb;_0x1f4632[_0x11f92f(0x13d)](_0xbd9464)?_0x32bedb=_0x1f4632[_0x11f92f(0x19b)](_0xbd9464):(_0x32bedb=new _0x7ba9c4(),_0x1f4632[_0x11f92f(0x17a)](_0xbd9464,_0x32bedb),_0x32bedb['pipe'](_0xefab3((_0x752fce=this[_0x11f92f(0x139)][_0x11f92f(0x134)](Pe))!=null?_0x752fce:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x56bd84=>{var _0x379392=_0x11f92f;this[_0x379392(0x102)][_0x379392(0x11c)]({'eventID':_0x18a920[_0x379392(0x108)],'data':{'unitID':this[_0x379392(0x150)],'operations':{[_0x56bd84['id']]:{'id':_0x56bd84['id'],'params':JSON[_0x379392(0x1a1)](_0x56bd84[_0x379392(0x15a)])}}}},this['_unitID']);})),_0x32bedb['next'](_0x2ee137);})),this[_0x5b5d4d(0x146)]['getInitialStates'](this['_unitID'])[_0x5b5d4d(0x103)](_0x1ecaf7=>this['_collabSession'][_0x5b5d4d(0x11c)]({'eventID':_0x18a920[_0x5b5d4d(0x108)],'data':{'unitID':this['_unitID'],'operations':{[_0x1ecaf7['id']]:{'id':_0x1ecaf7['id'],'params':JSON[_0x5b5d4d(0x1a1)](_0x1ecaf7[_0x5b5d4d(0x15a)])}}}},this[_0x5b5d4d(0x150)]));}[_0x266e96(0x18c)](){var _0x52042a=_0x266e96,_0x211699;this[_0x52042a(0x198)][_0x52042a(0x17d)](_0x52042a(0x15f)),(_0x211699=this[_0x52042a(0x126)])==null||_0x211699[_0x52042a(0x115)](),this[_0x52042a(0x126)]=null;}[_0x266e96(0x182)](){var _0x221800=_0x266e96,_0x513cbd;(_0x513cbd=this['_commandDisposable'])==null||_0x513cbd[_0x221800(0x115)](),this[_0x221800(0x198)]['next'](_0x221800(0x16a));}['_beIdle'](){var _0x2cd0ce=_0x266e96,_0x43ed72;this[_0x2cd0ce(0x198)][_0x2cd0ce(0x17d)]('idle'),(_0x43ed72=this[_0x2cd0ce(0x126)])==null||_0x43ed72[_0x2cd0ce(0x115)](),this['_commandDisposable']=null;}[_0x266e96(0x195)](){var _0x2b9513=_0x266e96,_0x4e6657;this[_0x2b9513(0x198)][_0x2b9513(0x17d)](_0x2b9513(0xfc)),(_0x4e6657=this[_0x2b9513(0x126)])==null||_0x4e6657[_0x2b9513(0x115)]();}[_0x266e96(0x13e)](_0x531c51){var _0x5e25aa=_0x266e96;if(['presenting',_0x5e25aa(0xfc),_0x5e25aa(0x143)][_0x5e25aa(0x156)](this[_0x5e25aa(0x114)])||!_0x531c51[_0x5e25aa(0x15c)]['presenter']||_0x531c51[_0x5e25aa(0x15c)]['presenter']===this[_0x5e25aa(0x102)]['getMemberID']())return;this[_0x5e25aa(0x114)]===_0x5e25aa(0x15f)&&this[_0x5e25aa(0x182)]();const _0x3b786d=_0x531c51[_0x5e25aa(0x15c)]['operations'];Object[_0x5e25aa(0x13a)](_0x3b786d)['forEach'](_0x291ec4=>{var _0x4d5436=_0x5e25aa;this['_commandService'][_0x4d5436(0x199)](_0x291ec4['id'],_0x291ec4[_0x4d5436(0x15a)]?JSON[_0x4d5436(0x1a4)](_0x291ec4['params']):null,{'fromCollab':!0x0});});}[_0x266e96(0x107)](){var _0x2909c4=_0x266e96,_0x26ab93;this[_0x2909c4(0x198)]['next'](_0x2909c4(0x143)),(_0x26ab93=this['_commandDisposable'])==null||_0x26ab93['dispose']();}[_0x266e96(0x1a7)](){var _0x1dcf6=_0x266e96;this['_status$'][_0x1dcf6(0x17d)](_0x1dcf6(0x15f)),this[_0x1dcf6(0x13b)]();}};C=Z([f(0x2,_0x30949d),f(0x3,_0x201664(L)),f(0x4,_0x38d89b)],C);function Te(){var _0x204fe1=_0x266e96;const _0x32207d=_0x57080b(I),_0x5320cf=_0x57080b(_0x3bb6ec),_0xd159b7=_0x281c9c(()=>_0x5320cf[_0x204fe1(0xfa)](_0x1e220f[_0x204fe1(0x11e)]),void 0x0,!0x1,[]),[_0x29a3fa,_0x1ad3c8]=_0x5b9e4e(null),[_0x3be0a2,_0x1dd9ba]=_0x5b9e4e(h['IDLE']),_0x413579=_0x10f31e(null);return _0x1ee1e0(()=>(_0xd159b7&&_0x32207d[_0x204fe1(0x170)](_0xd159b7['getUnitId']())[_0x204fe1(0x151)](_0x2e087d=>{var _0x3c9438=_0x204fe1;_0x1ad3c8(_0x2e087d),_0x413579[_0x3c9438(0x1a5)]=_0x2e087d[_0x3c9438(0x132)][_0x3c9438(0x19d)](_0x29214a=>{_0x1dd9ba(_0x29214a);});}),()=>{var _0x34ba03=_0x204fe1,_0x47b3f3;(_0x47b3f3=_0x413579[_0x34ba03(0x1a5)])==null||_0x47b3f3[_0x34ba03(0x122)](),_0x413579[_0x34ba03(0x1a5)]=null;}),[_0xd159b7,_0x32207d]),_0x29a3fa?_0xed2a76(_0x8f2ebf,{'align':_0x204fe1(0x120),'disabled':_0x3be0a2===h['OFFLINE'],'className':_0x204fe1(0x166),'overlay':_0xed2a76($e,{'status':_0x3be0a2,'coordinator':_0x29a3fa}),'children':_0xed2a76(_0x204fe1(0x121),{'className':_0x58ef02(_0x204fe1(0x100),{'univer-cursor-not-allowed':_0x3be0a2===h[_0x204fe1(0x174)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3be0a2!==h['OFFLINE']}),'type':'button','children':_0xed2a76(B,{'className':_0x204fe1(0x161)})})}):null;}function $e(_0xf7398e){var _0x3e6fee=_0x266e96;const {status:_0x1da09e,coordinator:_0x1d2805}=_0xf7398e;switch(_0x1da09e){case h[_0x3e6fee(0x164)]:return _0xed2a76(Fe,{'coordinator':_0x1d2805});case h[_0x3e6fee(0x191)]:return _0xed2a76(He,{'coordinator':_0x1d2805});case h[_0x3e6fee(0x189)]:return _0xed2a76(je,{'coordinator':_0x1d2805});case h['OFFLINE']:return _0xed2a76(Ve,{});case h[_0x3e6fee(0x194)]:return _0xed2a76(Ue,{'coordinator':_0x1d2805});default:return null;}}function Fe(_0x483786){var _0x549a90=_0x266e96;const {coordinator:_0x10de97}=_0x483786;return _0x5b5885(_0x4b5497,{'children':[_0xed2a76(_0x549a90(0x135),{'className':_0x549a90(0x11d),'children':_0x549a90(0x10b)}),_0xed2a76(_0x11d578,{'onClick':()=>_0x10de97['tryStartPresenting'](),'children':_0x549a90(0x186)})]});}function He(_0x44e840){var _0x3d2aba=_0x266e96;const {coordinator:_0x35efd4}=_0x44e840;return _0x5b5885(_0x4b5497,{'children':[_0xed2a76(_0x3d2aba(0x135),{'className':_0x3d2aba(0x11d),'children':_0x3d2aba(0x15d)}),_0xed2a76(_0x11d578,{'onClick':()=>_0x35efd4[_0x3d2aba(0x179)](),'children':'Stop\x20following'})]});}function je(_0x191f91){var _0x31f723=_0x266e96;const {coordinator:_0x245935}=_0x191f91;return _0x5b5885(_0x4b5497,{'children':[_0xed2a76(_0x31f723(0x135),{'className':_0x31f723(0x11d),'children':_0x31f723(0x176)}),_0xed2a76(_0x11d578,{'variant':_0x31f723(0x160),'onClick':()=>_0x245935[_0x31f723(0x10d)](),'children':_0x31f723(0x1a2)})]});}function Ue(_0x3c63fe){var _0x697e96=_0x266e96;const {coordinator:_0x2fc404}=_0x3c63fe;return _0x5b5885(_0x4b5497,{'children':[_0xed2a76(_0x697e96(0x135),{'className':_0x697e96(0x11d),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xed2a76(_0x11d578,{'variant':_0x697e96(0x16f),'onClick':()=>_0x2fc404[_0x697e96(0xff)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x5ae2d8=_0x266e96;return _0xed2a76(_0x4b5497,{'children':_0x5ae2d8(0x13f)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x3730ad,_0x5b45db,_0x4c0d4d,_0x35293c)=>{var _0x329f79=_0x266e96;for(var _0x4da91e=_0x35293c>0x1?void 0x0:_0x35293c?Me(_0x5b45db,_0x4c0d4d):_0x5b45db,_0x6f9185=_0x3730ad[_0x329f79(0x10c)]-0x1,_0x4c90ea;_0x6f9185>=0x0;_0x6f9185--)(_0x4c90ea=_0x3730ad[_0x6f9185])&&(_0x4da91e=_0x4c90ea(_0x4da91e)||_0x4da91e);return _0x4da91e;},$=(_0x1be854,_0x3c369b)=>(_0x2afd72,_0x25812d)=>_0x3c369b(_0x2afd72,_0x25812d,_0x1be854);let b=class extends _0x5c1827{constructor(_0x5ca58a,_0x524ef5){var _0x5910e2=_0x266e96;super(),this['_injector']=_0x5ca58a,this[_0x5910e2(0x19a)]=_0x524ef5,this[_0x5910e2(0x18d)]();}['_mountLiveShare'](){var _0x170da8=_0x266e96;this[_0x170da8(0x1ab)](this[_0x170da8(0x19a)][_0x170da8(0x13c)](_0x22d6bc[_0x170da8(0x136)],()=>_0x2b2067(Te,this[_0x170da8(0x141)])));}};b=ke([$(0x0,_0x201664(_0x3c7828)),$(0x1,_0x130b00)],b);function _0x23fb(){var _0x272e21=['UniverIcon','tryStartPresenting','_configService','values','_fetchOperations','registerComponent','has','_handleOperation','You\x27are\x20offline.','onRendered','_injector','mask','offline','registerSharedOperation','LIVESHARE_REQUEST_HOST','_liveShareService','_handleNewHost','tag','getTypeOfUnitAdded$','add','className','init','memberID','LIVESHARE_NEW_HOST','url(#$1','_unitID','then','onCommandExecuted','asObservable','symbol','string','includes','_startPresenting','toString','unitId','params','entries','data','You\x27re\x20following\x20the\x20presenter','defineProperty','idle','text','univer-size-4','sheet','32IEzHlr','IDLE','idSuffix','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','571086TOlelE','3hIkCIh','pipe','following','event$','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','hasOwnProperty','1em','default','getLiveShareCoordinator','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','http://www.w3.org/2000/svg','sessionStatus$','OFFLINE','currentColor','You\x27re\x20not\x20following\x20the\x20presenter','presenting','_reporters','stopFollowing','set','live-share-icon','UNIVER_LIVE_SHARE_PLUGIN','next','icon','path','getTypeOfUnitDisposed$','OPERATION','_startFollowing','from','apply','type','Start','fill','_init','NOT_FOLLOWING','override','143297cCwNIf','_stopPresenting','_mountLiveShare','_sharedOperations','attrs','_config','FOLLOWING','indexOf','ONLINE','PRESENTING','_stopFollowing','LIVESHARE_TERMINATE','xlink:href','_status$','executeCommand','_uiPartsService','get','delete','subscribe','onStarting','concat','440248rLyKLJ','stringify','Start\x20following','0\x200\x2017\x2017','parse','current','setConfig','_handleOnline','createInstance','_handleTerminate','634930WtvrrR','disposeWithMe','colorChannel1','getMemberID','getCurrentTypeOfUnit$','getOwnPropertySymbols','not-following','svg','_handleNewChangeSets','stopPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getValue','_collabSession','forEach','prototype','_beIdle','_entities','_handleOffline','LIVESHARE_OPERATION','1187181WBwWEv','defs','Present\x20this\x20document','length','startFollowing','substring','displayName','evenodd','clear','children','defIds','_status','dispose','_commandService','live-share.config','none','75803AiNups','LIVESHARE_FETCH_OPERATIONS','dispose$','send','univer-mb-3\x20univer-w-full\x20univer-text-sm','UNIVER_SHEET','map','end','button','unsubscribe','453570RkeWJn','mutations','_univerInstanceService','_commandDisposable','getOwnPropertyDescriptor','_presenter','_startLiveShareCoordinator','extend','replace','pluginName','call','use','getInitialStates','_collabSessionService','getUnitId','status$','assign','getConfig','div','HEADER_MENU'];_0x23fb=function(){return _0x272e21;};return _0x23fb();}var Ge=Object[_0x266e96(0x15e)],We=Object[_0x266e96(0x127)],Ye=(_0x4211bd,_0x158d38,_0x5666d6)=>_0x158d38 in _0x4211bd?Ge(_0x4211bd,_0x158d38,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5666d6}):_0x4211bd[_0x158d38]=_0x5666d6,Be=(_0x3e578f,_0x152e36,_0x1802a2,_0x3a0444)=>{var _0x4cedc3=_0x266e96;for(var _0x1d759a=_0x3a0444>0x1?void 0x0:_0x3a0444?We(_0x152e36,_0x1802a2):_0x152e36,_0x398490=_0x3e578f[_0x4cedc3(0x10c)]-0x1,_0x48de9d;_0x398490>=0x0;_0x398490--)(_0x48de9d=_0x3e578f[_0x398490])&&(_0x1d759a=_0x48de9d(_0x1d759a)||_0x1d759a);return _0x1d759a;},F=(_0x56cea0,_0x1e7268)=>(_0x47e741,_0x4a8b15)=>_0x1e7268(_0x47e741,_0x4a8b15,_0x56cea0),J=(_0x3b8d23,_0xd4c800,_0x383fc3)=>Ye(_0x3b8d23,typeof _0xd4c800!=_0x266e96(0x154)?_0xd4c800+'':_0xd4c800,_0x383fc3);const Ze=_0x266e96(0x17c);let O=class extends _0x5c6bc1{constructor(_0x113563=T,_0x5f2b44,_0x4fc510){var _0x4fdc6c=_0x266e96;super(),this[_0x4fdc6c(0x190)]=_0x113563,this[_0x4fdc6c(0x141)]=_0x5f2b44,this[_0x4fdc6c(0x139)]=_0x4fc510;const {..._0xa1e5be}=_0xc1095b({},T,this[_0x4fdc6c(0x190)]);this['_configService'][_0x4fdc6c(0x1a6)](Oe,_0xa1e5be);}[_0x266e96(0x19e)](){var _0x355eec=_0x266e96;_0x4dfd5d(this[_0x355eec(0x141)],_0x1b58bd([[L],[I],[m],[b]],this['_config'][_0x355eec(0x18a)])),_0x147e80(this[_0x355eec(0x141)],[[m]]);}[_0x266e96(0x140)](){_0x147e80(this['_injector'],[[b]]);}};J(O,_0x266e96(0x185),_0x1e220f['UNIVER_UNKNOWN']),J(O,_0x266e96(0x12c),Ze),O=Be([_0x393241(_0x5d2e38),F(0x1,_0x201664(_0x3c7828)),F(0x2,_0x30949d)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1fe8(_0x54ed86,_0x1debd1){var _0x5dc636=_0x5dc6();return _0x1fe8=function(_0x1fe81c,_0x907ba3){_0x1fe81c=_0x1fe81c-0x14c;var _0x4e022c=_0x5dc636[_0x1fe81c];return _0x4e022c;},_0x1fe8(_0x54ed86,_0x1debd1);}function _0x5dc6(){var _0x4f8fd7=['univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_mountLiveShare','merge','rxjs','then','_configService','_commandService','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','DependentOn','Start','_entities','not-following','svg','_injector','_handleTerminate','clsx','useDependency','concat','data','UNIVER_SHEET','_startPresenting','useState','registerDependencies','_univerInstanceService','disposeWithMe','Disposable','use','univer-size-4','1031552yvACTA','pluginName','4DCNcHF','getUnitId','xlink:href','NOT_FOLLOWING','_handleOnline','defIds','getValue','takeUntil','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','propertyIsEnumerable','1em','idle','CollaborationEvent','5pbSObY','complete','extend','substring','delete','RxDisposable','following','univer-mb-3\x20univer-w-full\x20univer-text-sm','stringify','_liveShareService','string','getConfig','current','button','LiveShareStatus','jsxs','forwardRef','dispose$','UniverCore','_handleOffline','SetWorksheetActiveOperation','@univerjs-pro/collaboration-client','pipe','createElement','Dropdown','div','memberID','LiveShareIcon','set','replace','params','UniverCollaborationClientPlugin','className','map','tag','DesktopLiveShareController','You\x27re\x20presenting\x20the\x20document','_status$','@univerjs/ui','445194UsyMjP','_collabSessionService','Fragment','registerInitialStateReporter','exports','UNIVER_UNKNOWN','801051ZcwZDZ','defs','tryStartPresenting','univerjs-icon\x20univerjs-icon-','_reporters','length','IDLE','CollaborationSessionService','symbol','startFollowing','UniverProCollaborationClient','261765zPFTdI','You\x27re\x20not\x20following\x20the\x20presenter','React','includes','assign','shouldShareOperation','throttleTime','CommandType','LiveShareController','SAME_OPERATION_SHARE_INTERVAL','displayName','useObservable','getMemberID','colorChannel1','@univerjs/design','evenodd','end','getOwnPropertySymbols','asObservable','onCommandExecuted','Plugin','IUIPartsService','InsertSheetMutation','live-share-icon','LIVESHARE_OPERATION','PRESENTING','_fetchOperations','toStringTag','Subject','touchDependencies','HEADER_MENU','ICommandService','unitId','object','onRendered','Start\x20following','DisposableCollection','stopFollowing','init','@univerjs-pro/collaboration','call','rxjs/operators','UniverInstanceType','send','_collabSession','connectInjector','getLiveShareCoordinator','presenting','UniverSheets','children','http://www.w3.org/2000/svg','getOwnPropertyDescriptor','attrs','fill','registerSharedOperation','SetZoomRatioOperation','_status','createInstance','getTypeOfUnitAdded$','currentColor','Injector','_init','next','mutations','indexOf','7110130QVixZS','useRef','@univerjs/sheets-ui','getCurrentTypeOfUnit$','reverse','status$','OPERATION','from','4498DnACCd','react/jsx-runtime','3459627xOOtqD','_handleNewChangeSets','LiveShareCoordinator','_stopPresenting','stopPresenting','_config','operations','add','parse','_startLiveShareCoordinator','react','forEach','random','idSuffix','LIVESHARE_TERMINATE','trim','_presenter','Module','get','_startFollowing','@univerjs/sheets','LIVESHARE_NEW_HOST','subscribe','path','BehaviorSubject','SessionStatus','presenter','icon','_sharedOperations','text','offline','jsx','@univerjs/core','UniverLiveSharePlugin','_stopFollowing','hasOwnProperty','ONLINE','has','mask','unsubscribe','_beIdle','IConfigService','prototype','LIVESHARE_REQUEST_HOST','BuiltInUIPart','_handleNewHost','0\x200\x2017\x2017','_unitID','You\x27are\x20offline.','sessionStatus$','defineProperty','_handleOperation','LiveShareService','apply','amd','none','operators','Inject','8EtBXNT','NEW_CHANGESETS','function','_commandDisposable','toDisposable','dispose','_uiPartsService','event$','OFFLINE','live-share.config','entries','Stop\x20presenting'];_0x5dc6=function(){return _0x4f8fd7;};return _0x5dc6();}(function(_0x33af02,_0x1aa6e6){var _0x98ac5d=_0x1fe8,_0x4ad44e=_0x33af02();while(!![]){try{var _0x1d87b2=parseInt(_0x98ac5d(0x20e))/0x1+-parseInt(_0x98ac5d(0x17d))/0x2+-parseInt(_0x98ac5d(0x1ba))/0x3*(parseInt(_0x98ac5d(0x17f))/0x4)+-parseInt(_0x98ac5d(0x18d))/0x5*(-parseInt(_0x98ac5d(0x1b4))/0x6)+parseInt(_0x98ac5d(0x1c5))/0x7+parseInt(_0x98ac5d(0x155))/0x8*(parseInt(_0x98ac5d(0x210))/0x9)+parseInt(_0x98ac5d(0x206))/0xa;if(_0x1d87b2===_0x1aa6e6)break;else _0x4ad44e['push'](_0x4ad44e['shift']());}catch(_0x151c30){_0x4ad44e['push'](_0x4ad44e['shift']());}}}(_0x5dc6,0x68aab),function(_0x374407,_0x3a06a5){var _0x3b3104=_0x1fe8;typeof exports==_0x3b3104(0x1e6)&&typeof module<'u'?_0x3a06a5(exports,require(_0x3b3104(0x1a2)),require(_0x3b3104(0x230)),require(_0x3b3104(0x224)),require(_0x3b3104(0x208)),require(_0x3b3104(0x1b3)),require('react/jsx-runtime'),require(_0x3b3104(0x1d3)),require(_0x3b3104(0x21a)),require('@univerjs-pro/collaboration'),require(_0x3b3104(0x164)),require(_0x3b3104(0x1ee))):typeof define==_0x3b3104(0x157)&&define[_0x3b3104(0x151)]?define([_0x3b3104(0x1b8),_0x3b3104(0x1a2),_0x3b3104(0x230),_0x3b3104(0x224),_0x3b3104(0x208),_0x3b3104(0x1b3),_0x3b3104(0x20f),_0x3b3104(0x1d3),_0x3b3104(0x21a),_0x3b3104(0x1ec),'rxjs',_0x3b3104(0x1ee)],_0x3a06a5):(_0x374407=typeof globalThis<'u'?globalThis:_0x374407||self,_0x3a06a5(_0x374407['UniverProLiveShare']={},_0x374407[_0x3b3104(0x1c4)],_0x374407[_0x3b3104(0x19f)],_0x374407[_0x3b3104(0x1f5)],_0x374407['UniverSheetsUi'],_0x374407['UniverUi'],_0x374407[_0x3b3104(0x1c7)],_0x374407['UniverDesign'],_0x374407[_0x3b3104(0x1c7)],_0x374407['UniverProCollaboration'],_0x374407[_0x3b3104(0x164)],_0x374407[_0x3b3104(0x164)][_0x3b3104(0x153)]));}(this,function(_0x12dabc,_0x5747cc,_0x3a9025,_0x1c2e44,_0x247577,_0x5436a1,_0x878fb2,_0x3d1390,_0x1cdf56,_0x44e43a,_0x51a3c4,_0x2c9909){'use strict';var _0x5c8a51=_0x1fe8;var _0x58d39b=Object[_0x5c8a51(0x14d)],_0x38fd6f=(_0x4cd867,_0x1f6273,_0x110783)=>_0x1f6273 in _0x4cd867?_0x58d39b(_0x4cd867,_0x1f6273,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x110783}):_0x4cd867[_0x1f6273]=_0x110783,_0x71f325=(_0x2f705a,_0x405766,_0x56673a)=>_0x38fd6f(_0x2f705a,typeof _0x405766!=_0x5c8a51(0x1c2)?_0x405766+'':_0x405766,_0x56673a);const _0x524f5f=_0x5c8a51(0x15e),_0x215b3f={};class _0x210719 extends _0x3a9025['Disposable']{constructor(){var _0x56d2da=_0x5c8a51;super(...arguments),_0x71f325(this,_0x56d2da(0x22c),new Set()),_0x71f325(this,_0x56d2da(0x1be),new Set());}[_0x5c8a51(0x1fb)](_0x245bc1){var _0x1f7156=_0x5c8a51;return this[_0x1f7156(0x22c)][_0x1f7156(0x217)](_0x245bc1),_0x3a9025[_0x1f7156(0x159)](()=>this[_0x1f7156(0x22c)]['delete'](_0x245bc1));}[_0x5c8a51(0x1b7)](_0xce6eb5){var _0x495afd=_0x5c8a51;return this[_0x495afd(0x1be)][_0x495afd(0x217)](_0xce6eb5),_0x3a9025[_0x495afd(0x159)](()=>this[_0x495afd(0x1be)][_0x495afd(0x191)](_0xce6eb5));}[_0x5c8a51(0x1ca)](_0x3457fb){var _0x37a39a=_0x5c8a51;return this[_0x37a39a(0x22c)][_0x37a39a(0x235)](_0x3457fb);}['getInitialStates'](_0x117033){var _0x5e9603=_0x5c8a51;return Array[_0x5e9603(0x20d)](this['_reporters'])['map'](_0x2dcf96=>_0x2dcf96(_0x117033));}}var _0x2bf51c=Object['getOwnPropertyDescriptor'],_0x325238=(_0x360770,_0x2725d6,_0x232cf8,_0x1e92a2)=>{var _0x4b3548=_0x5c8a51;for(var _0x3b7093=_0x1e92a2>0x1?void 0x0:_0x1e92a2?_0x2bf51c(_0x2725d6,_0x232cf8):_0x2725d6,_0x6d7818=_0x360770[_0x4b3548(0x1bf)]-0x1,_0xa0f5f7;_0x6d7818>=0x0;_0x6d7818--)(_0xa0f5f7=_0x360770[_0x6d7818])&&(_0x3b7093=_0xa0f5f7(_0x3b7093)||_0x3b7093);return _0x3b7093;},_0x1ed23b=(_0x613dbe,_0x311000)=>(_0x25bde6,_0x10fc0d)=>_0x311000(_0x25bde6,_0x10fc0d,_0x613dbe);let _0x437956=class extends _0x3a9025[_0x5c8a51(0x17a)]{constructor(_0xb63e1a){var _0x588be9=_0x5c8a51;super(),this[_0x588be9(0x196)]=_0xb63e1a,this[_0x588be9(0x202)]();}[_0x5c8a51(0x202)](){var _0x7990aa=_0x5c8a51;[_0x247577[_0x7990aa(0x1fc)]['id'],_0x247577['SetScrollOperation']['id'],_0x1c2e44[_0x7990aa(0x1a1)]['id']][_0x7990aa(0x21b)](_0x5927c2=>{var _0x548fb6=_0x7990aa;this['disposeWithMe'](this[_0x548fb6(0x196)]['registerSharedOperation'](_0x5927c2));});}};_0x437956=_0x325238([_0x1ed23b(0x0,_0x3a9025[_0x5c8a51(0x154)](_0x210719))],_0x437956);var _0x426a46=function(){var _0x1209bc=_0x5c8a51;return _0x426a46=Object[_0x1209bc(0x1c9)]||function(_0xb8ac03){var _0x5cdfb3=_0x1209bc;for(var _0x9455ce,_0x586a03=0x1,_0x5176ea=arguments[_0x5cdfb3(0x1bf)];_0x586a03<_0x5176ea;_0x586a03++){_0x9455ce=arguments[_0x586a03];for(var _0x2fa172 in _0x9455ce)Object['prototype'][_0x5cdfb3(0x233)][_0x5cdfb3(0x1ed)](_0x9455ce,_0x2fa172)&&(_0xb8ac03[_0x2fa172]=_0x9455ce[_0x2fa172]);}return _0xb8ac03;},_0x426a46[_0x1209bc(0x150)](this,arguments);},_0x47c1c1=function(_0x3ca6e1,_0x49e36d){var _0x339320=_0x5c8a51,_0x302d8e={};for(var _0x150a78 in _0x3ca6e1)Object[_0x339320(0x23a)][_0x339320(0x233)][_0x339320(0x1ed)](_0x3ca6e1,_0x150a78)&&_0x49e36d['indexOf'](_0x150a78)<0x0&&(_0x302d8e[_0x150a78]=_0x3ca6e1[_0x150a78]);if(_0x3ca6e1!=null&&typeof Object[_0x339320(0x1d6)]==_0x339320(0x157)){for(var _0x3b0450=0x0,_0x150a78=Object[_0x339320(0x1d6)](_0x3ca6e1);_0x3b0450<_0x150a78[_0x339320(0x1bf)];_0x3b0450++)_0x49e36d[_0x339320(0x205)](_0x150a78[_0x3b0450])<0x0&&Object[_0x339320(0x23a)][_0x339320(0x189)][_0x339320(0x1ed)](_0x3ca6e1,_0x150a78[_0x3b0450])&&(_0x302d8e[_0x150a78[_0x3b0450]]=_0x3ca6e1[_0x150a78[_0x3b0450]]);}return _0x302d8e;},_0x27939e=_0x1cdf56[_0x5c8a51(0x19d)](function(_0x3b347e,_0x5668fc){var _0x1b790b=_0x5c8a51,_0x28d9fd=_0x3b347e['icon'],_0xa27ba1=_0x3b347e['id'],_0x1d0d6b=_0x3b347e[_0x1b790b(0x1ad)],_0x49d3fa=_0x3b347e[_0x1b790b(0x18f)],_0x41df6b=_0x47c1c1(_0x3b347e,[_0x1b790b(0x22b),'id',_0x1b790b(0x1ad),'extend']),_0xd73e2d=_0x1b790b(0x1bd)['concat'](_0xa27ba1,'\x20')[_0x1b790b(0x172)](_0x1d0d6b||'')[_0x1b790b(0x21f)](),_0x29f241=_0x1cdf56[_0x1b790b(0x207)]('_'[_0x1b790b(0x172)](_0x33bc37()));return _0x19f154(_0x28d9fd,''[_0x1b790b(0x172)](_0xa27ba1),{'defIds':_0x28d9fd[_0x1b790b(0x184)],'idSuffix':_0x29f241['current']},_0x426a46({'ref':_0x5668fc,'className':_0xd73e2d},_0x41df6b),_0x49d3fa);});function _0x19f154(_0x5d7a39,_0x4e3aa8,_0x443443,_0x3085e8,_0x5205ba){var _0x290339=_0x5c8a51;return _0x1cdf56[_0x290339(0x1a4)](_0x5d7a39[_0x290339(0x1af)],_0x426a46(_0x426a46({'key':_0x4e3aa8},_0x2e338e(_0x5d7a39,_0x443443,_0x5205ba)),_0x3085e8),(_0x42150e(_0x5d7a39,_0x443443)[_0x290339(0x1f6)]||[])[_0x290339(0x1ae)](function(_0x3091c3,_0x1e399a){var _0x37c6a8=_0x290339;return _0x19f154(_0x3091c3,''[_0x37c6a8(0x172)](_0x4e3aa8,'-')[_0x37c6a8(0x172)](_0x5d7a39[_0x37c6a8(0x1af)],'-')[_0x37c6a8(0x172)](_0x1e399a),_0x443443,void 0x0,_0x5205ba);}));}function _0x2e338e(_0xb09612,_0x5001e3,_0x4b190f){var _0xdc68f2=_0x5c8a51,_0x5eeae0=_0x426a46({},_0xb09612[_0xdc68f2(0x1f9)]);_0x4b190f!=null&&_0x4b190f[_0xdc68f2(0x1d2)]&&_0x5eeae0[_0xdc68f2(0x1fa)]===_0xdc68f2(0x1d2)&&(_0x5eeae0[_0xdc68f2(0x1fa)]=_0x4b190f[_0xdc68f2(0x1d2)]),_0xb09612[_0xdc68f2(0x1af)]===_0xdc68f2(0x236)&&_0x5eeae0['id']&&(_0x5eeae0['id']=_0x5eeae0['id']+_0x5001e3['idSuffix']),Object['entries'](_0x5eeae0)[_0xdc68f2(0x21b)](function(_0x190b86){var _0x30f362=_0xdc68f2,_0x124062=_0x190b86[0x0],_0x150d84=_0x190b86[0x1];_0x124062===_0x30f362(0x236)&&typeof _0x150d84=='string'&&(_0x5eeae0[_0x124062]=_0x150d84[_0x30f362(0x1aa)](/url\(#(.*)\)/,'url(#$1'[_0x30f362(0x172)](_0x5001e3[_0x30f362(0x21d)],')')));});var _0x4304f7=_0x5001e3[_0xdc68f2(0x184)];return!_0x4304f7||_0x4304f7[_0xdc68f2(0x1bf)]===0x0||(_0xb09612[_0xdc68f2(0x1af)]===_0xdc68f2(0x17b)&&_0x5eeae0[_0xdc68f2(0x181)]&&(_0x5eeae0['xlink:href']=_0x5eeae0['xlink:href']+_0x5001e3[_0xdc68f2(0x21d)]),Object[_0xdc68f2(0x15f)](_0x5eeae0)[_0xdc68f2(0x21b)](function(_0x37c9cf){var _0x567c8d=_0xdc68f2,_0x40f411=_0x37c9cf[0x0],_0x22b9ee=_0x37c9cf[0x1];typeof _0x22b9ee==_0x567c8d(0x197)&&(_0x5eeae0[_0x40f411]=_0x22b9ee[_0x567c8d(0x1aa)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x5001e3[_0x567c8d(0x21d)],')')));})),_0x5eeae0;}function _0x42150e(_0x3998a2,_0x2ce8bf){var _0x126a5f=_0x5c8a51,_0x4ca95f,_0x4cabc9=_0x2ce8bf[_0x126a5f(0x184)];return!_0x4cabc9||_0x4cabc9[_0x126a5f(0x1bf)]===0x0?_0x3998a2:_0x3998a2[_0x126a5f(0x1af)]===_0x126a5f(0x1bb)&&(!((_0x4ca95f=_0x3998a2[_0x126a5f(0x1f6)])===null||_0x4ca95f===void 0x0)&&_0x4ca95f[_0x126a5f(0x1bf)])?_0x426a46(_0x426a46({},_0x3998a2),{'children':_0x3998a2['children'][_0x126a5f(0x1ae)](function(_0x576f6a){var _0x4567c1=_0x126a5f;return typeof _0x576f6a['attrs']['id']==_0x4567c1(0x197)&&_0x4cabc9&&_0x4cabc9[_0x4567c1(0x1c8)](_0x576f6a[_0x4567c1(0x1f9)]['id'])?_0x426a46(_0x426a46({},_0x576f6a),{'attrs':_0x426a46(_0x426a46({},_0x576f6a['attrs']),{'id':_0x576f6a[_0x4567c1(0x1f9)]['id']+_0x2ce8bf['idSuffix']})}):_0x576f6a;})}):_0x3998a2;}function _0x33bc37(){var _0x410258=_0x5c8a51;return Math[_0x410258(0x21c)]()['toString'](0x24)[_0x410258(0x190)](0x2,0x8);}_0x27939e[_0x5c8a51(0x1cf)]='UniverIcon';var _0x343bbf={'tag':_0x5c8a51(0x16d),'attrs':{'xmlns':_0x5c8a51(0x1f7),'fill':_0x5c8a51(0x152),'viewBox':_0x5c8a51(0x23e),'width':_0x5c8a51(0x18a),'height':_0x5c8a51(0x18a)},'children':[{'tag':_0x5c8a51(0x227),'attrs':{'fill':_0x5c8a51(0x200),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x5c8a51(0x227),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x5c8a51(0x1d4),'clipRule':'evenodd'}}]},_0x12278c=_0x1cdf56['forwardRef'](function(_0xa2cd9c,_0x40f8ed){var _0x4648e0=_0x5c8a51;return _0x1cdf56[_0x4648e0(0x1a4)](_0x27939e,Object['assign']({},_0xa2cd9c,{'id':_0x4648e0(0x1dc),'ref':_0x40f8ed,'icon':_0x343bbf}));});_0x12278c[_0x5c8a51(0x1cf)]=_0x5c8a51(0x1a8);var _0x5c4c41=Object['getOwnPropertyDescriptor'],_0x177b29=(_0x11474a,_0x1bd58e,_0x5757c0,_0x5d94ae)=>{for(var _0x41fe43=_0x5d94ae>0x1?void 0x0:_0x5d94ae?_0x5c4c41(_0x1bd58e,_0x5757c0):_0x1bd58e,_0x242556=_0x11474a['length']-0x1,_0x1dd1eb;_0x242556>=0x0;_0x242556--)(_0x1dd1eb=_0x11474a[_0x242556])&&(_0x41fe43=_0x1dd1eb(_0x41fe43)||_0x41fe43);return _0x41fe43;},_0x508656=(_0x378ccd,_0x15a1af)=>(_0x102b64,_0x312b5e)=>_0x15a1af(_0x102b64,_0x312b5e,_0x378ccd);_0x12dabc[_0x5c8a51(0x1cd)]=class extends _0x3a9025[_0x5c8a51(0x192)]{constructor(_0x2b8909,_0x54603a,_0x37a163){var _0x334b60=_0x5c8a51;super(),_0x71f325(this,_0x334b60(0x16b),new Map()),(this[_0x334b60(0x178)]=_0x2b8909,this[_0x334b60(0x16e)]=_0x54603a,this[_0x334b60(0x1b5)]=_0x37a163,this[_0x334b60(0x202)]());}async[_0x5c8a51(0x1f3)](_0x16025e){var _0x457905=_0x5c8a51;return this[_0x457905(0x16b)][_0x457905(0x235)](_0x16025e)||await this['_startLiveShareCoordinator'](_0x16025e),this[_0x457905(0x16b)][_0x457905(0x222)](_0x16025e);}[_0x5c8a51(0x202)](){var _0x51a4b5=_0x5c8a51;this[_0x51a4b5(0x178)][_0x51a4b5(0x1ff)](_0x3a9025[_0x51a4b5(0x1ef)][_0x51a4b5(0x174)])['pipe'](_0x2c9909[_0x51a4b5(0x186)](this[_0x51a4b5(0x19e)]))[_0x51a4b5(0x226)](async _0x3be5d9=>{var _0x2f854f=_0x51a4b5;const _0x13a9b7=_0x3be5d9['getUnitId']();this['_entities'][_0x2f854f(0x235)](_0x13a9b7)||this[_0x2f854f(0x219)](_0x13a9b7);}),this[_0x51a4b5(0x178)]['getTypeOfUnitDisposed$'](_0x3a9025[_0x51a4b5(0x1ef)][_0x51a4b5(0x174)])[_0x51a4b5(0x1a3)](_0x2c9909[_0x51a4b5(0x186)](this[_0x51a4b5(0x19e)]))[_0x51a4b5(0x226)](_0x6b7a59=>{var _0x268add=_0x51a4b5;const _0x26ee6f=_0x6b7a59[_0x268add(0x180)](),_0x27bf64=this[_0x268add(0x16b)][_0x268add(0x222)](_0x26ee6f);_0x27bf64==null||_0x27bf64[_0x268add(0x15a)]();});}async[_0x5c8a51(0x219)](_0x52b114){var _0x59ecb3=_0x5c8a51;const _0x349c3b=await this[_0x59ecb3(0x1b5)]['requireSession'](_0x52b114),_0x23fdc3=this[_0x59ecb3(0x16e)][_0x59ecb3(0x1fe)](_0x12dabc[_0x59ecb3(0x212)],_0x52b114,_0x349c3b);return _0x23fdc3[_0x59ecb3(0x1eb)](),this[_0x59ecb3(0x16b)][_0x59ecb3(0x1a9)](_0x52b114,_0x23fdc3),_0x23fdc3;}},_0x12dabc[_0x5c8a51(0x1cd)]=_0x177b29([_0x508656(0x0,_0x3a9025[_0x5c8a51(0x188)]),_0x508656(0x1,_0x3a9025[_0x5c8a51(0x154)](_0x3a9025[_0x5c8a51(0x201)])),_0x508656(0x2,_0x3a9025[_0x5c8a51(0x154)](_0x5747cc[_0x5c8a51(0x1c1)]))],_0x12dabc[_0x5c8a51(0x1cd)]);var _0x2eb10d=(_0x2179d6=>(_0x2179d6[_0x5c8a51(0x15d)]=_0x5c8a51(0x22e),_0x2179d6['IDLE']='idle',_0x2179d6['FOLLOWING']=_0x5c8a51(0x193),_0x2179d6[_0x5c8a51(0x182)]=_0x5c8a51(0x16c),_0x2179d6[_0x5c8a51(0x1de)]=_0x5c8a51(0x1f4),_0x2179d6))(_0x2eb10d||{});const _0x5c396e=_0x5c8a51(0x1ce),_0x25b84d=0xc8;_0x12dabc[_0x5c8a51(0x212)]=class extends _0x3a9025['RxDisposable']{constructor(_0x30c61a,_0x3dc6e2,_0x21cd0c,_0x38793b,_0x41cc6b){var _0x167687=_0x5c8a51;super(),_0x71f325(this,_0x167687(0x1b2),new _0x51a3c4[(_0x167687(0x228))]('idle')),_0x71f325(this,_0x167687(0x20b),this[_0x167687(0x1b2)][_0x167687(0x1d7)]()),_0x71f325(this,'_init',!0x1),_0x71f325(this,_0x167687(0x158),null),_0x71f325(this,'_presenter',null),(this[_0x167687(0x23f)]=_0x30c61a,this['_collabSession']=_0x3dc6e2,this[_0x167687(0x166)]=_0x21cd0c,this[_0x167687(0x196)]=_0x38793b,this['_commandService']=_0x41cc6b);}get[_0x5c8a51(0x1fd)](){var _0x5a5feb=_0x5c8a51;return this[_0x5a5feb(0x1b2)][_0x5a5feb(0x185)]();}[_0x5c8a51(0x15a)](){var _0x50e081=_0x5c8a51,_0x501dd2;(_0x501dd2=this[_0x50e081(0x158)])==null||_0x501dd2['dispose'](),this[_0x50e081(0x1b2)]['next']('idle'),this['_status$'][_0x50e081(0x18e)]();}['init'](){var _0x310aea=_0x5c8a51;this['_init']||(this[_0x310aea(0x202)]=!0x0,this[_0x310aea(0x1f1)][_0x310aea(0x14c)][_0x310aea(0x1a3)](_0x2c9909['takeUntil'](this[_0x310aea(0x19e)]))[_0x310aea(0x226)](_0x500ac8=>{var _0x261635=_0x310aea;switch(_0x500ac8){case _0x5747cc['SessionStatus'][_0x261635(0x15d)]:this[_0x261635(0x1a0)]();break;case _0x5747cc[_0x261635(0x229)][_0x261635(0x234)]:this[_0x261635(0x183)]();break;}}),this[_0x310aea(0x1f1)][_0x310aea(0x15c)][_0x310aea(0x1a3)](_0x2c9909[_0x310aea(0x186)](this[_0x310aea(0x19e)]))['subscribe'](_0x5ab25b=>{var _0x2f0707=_0x310aea;const {eventID:_0xb46ad2}=_0x5ab25b;switch(_0xb46ad2){case _0x44e43a[_0x2f0707(0x18c)][_0x2f0707(0x225)]:this[_0x2f0707(0x23d)](_0x5ab25b);break;case _0x44e43a[_0x2f0707(0x18c)][_0x2f0707(0x1dd)]:this[_0x2f0707(0x14e)](_0x5ab25b);break;case _0x44e43a[_0x2f0707(0x18c)]['LIVESHARE_TERMINATE']:this[_0x2f0707(0x16f)]();break;case _0x44e43a[_0x2f0707(0x18c)][_0x2f0707(0x156)]:this['_handleNewChangeSets'](_0x5ab25b);break;}}));}[_0x5c8a51(0x1bc)](){var _0x3aab0f=_0x5c8a51;this['_collabSession']['send']({'eventID':_0x44e43a[_0x3aab0f(0x18c)][_0x3aab0f(0x23b)],'data':{'unitID':this['_unitID'],'userID':this[_0x3aab0f(0x1f1)][_0x3aab0f(0x1d1)]()}},this['_unitID']);}[_0x5c8a51(0x214)](){var _0x1683c2=_0x5c8a51;this[_0x1683c2(0x1fd)]==='presenting'&&(this['_status$'][_0x1683c2(0x203)](_0x1683c2(0x18b)),this[_0x1683c2(0x1f1)]['send']({'eventID':_0x44e43a['CollaborationEvent'][_0x1683c2(0x21e)],'data':{'unitID':this[_0x1683c2(0x23f)]}},this[_0x1683c2(0x23f)]));}[_0x5c8a51(0x1c3)](){var _0x5c1b91=_0x5c8a51;this[_0x5c1b91(0x1fd)]===_0x5c1b91(0x16c)&&(this[_0x5c1b91(0x1b2)][_0x5c1b91(0x203)]('following'),this['_startFollowing']());}[_0x5c8a51(0x1ea)](){var _0x694e12=_0x5c8a51;this[_0x694e12(0x1fd)]===_0x694e12(0x193)&&this[_0x694e12(0x232)]();}[_0x5c8a51(0x23d)](_0x429f8e){var _0x19f151=_0x5c8a51;const {presenter:_0xd9933}=_0x429f8e[_0x19f151(0x173)],_0x22c3d2=this['_collabSession'][_0x19f151(0x1d1)]();this[_0x19f151(0x220)]=_0xd9933,_0xd9933===_0x22c3d2?(this[_0x19f151(0x232)](),this[_0x19f151(0x175)]()):this['_status']!==_0x19f151(0x16c)&&(this[_0x19f151(0x213)](),this[_0x19f151(0x223)]());}[_0x5c8a51(0x1df)](){var _0x3e8f0a=_0x5c8a51;const _0x45781b={'eventID':_0x44e43a['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x3e8f0a(0x1f1)]['send'](_0x45781b,this['_unitID']);}[_0x5c8a51(0x16f)](){var _0x2fd792=_0x5c8a51;this[_0x2fd792(0x220)]=null,this['_status']!==_0x2fd792(0x1f4)&&this[_0x2fd792(0x238)]();}[_0x5c8a51(0x211)](_0x1ff8f7){var _0xcf4134=_0x5c8a51;if(this['_status']===_0xcf4134(0x193)&&this[_0xcf4134(0x220)]===_0x1ff8f7[_0xcf4134(0x173)][_0xcf4134(0x1a7)]){const _0xddf9c8=_0x44e43a['parseProtocolChangeset'](_0x1ff8f7[_0xcf4134(0x173)])[_0xcf4134(0x204)][_0xcf4134(0x20a)]()['find'](_0x24d034=>_0x24d034['id']===_0x1c2e44[_0xcf4134(0x1db)]['id']);if(_0xddf9c8){const _0x2da6af=_0xddf9c8[_0xcf4134(0x1ab)][_0xcf4134(0x1e5)],_0x5070fc=_0xddf9c8[_0xcf4134(0x1ab)]['sheet']['id'];setTimeout(()=>{var _0x1405ec=_0xcf4134;this[_0x1405ec(0x167)]['executeCommand'](_0x1c2e44[_0x1405ec(0x1a1)]['id'],{'unitId':_0x2da6af,'subUnitId':_0x5070fc},{'fromCollab':!0x0});});}}}[_0x5c8a51(0x175)](){var _0x29e00d=_0x5c8a51;this['_status$'][_0x29e00d(0x203)](_0x29e00d(0x1f4));const _0x2bfcbb=new Map(),_0x3285a8=this[_0x29e00d(0x158)]=new _0x3a9025[(_0x29e00d(0x1e9))]();_0x3285a8[_0x29e00d(0x217)](_0x3a9025['toDisposable'](()=>{var _0x361217=_0x29e00d;_0x2bfcbb['forEach'](_0x2225a3=>_0x2225a3[_0x361217(0x18e)]()),_0x2bfcbb['clear']();})),_0x3285a8[_0x29e00d(0x217)](this[_0x29e00d(0x167)][_0x29e00d(0x1d8)](_0x21f14b=>{var _0x38fb70=_0x29e00d,_0x10904e;if(_0x21f14b['type']!==_0x3a9025[_0x38fb70(0x1cc)][_0x38fb70(0x20c)]||!this[_0x38fb70(0x196)][_0x38fb70(0x1ca)](_0x21f14b['id']))return;const {id:_0x2d535e}=_0x21f14b;let _0x28407a;_0x2bfcbb[_0x38fb70(0x235)](_0x2d535e)?_0x28407a=_0x2bfcbb[_0x38fb70(0x222)](_0x2d535e):(_0x28407a=new _0x51a3c4[(_0x38fb70(0x1e1))](),_0x2bfcbb[_0x38fb70(0x1a9)](_0x2d535e,_0x28407a),_0x28407a[_0x38fb70(0x1a3)](_0x2c9909[_0x38fb70(0x1cb)]((_0x10904e=this[_0x38fb70(0x166)][_0x38fb70(0x198)](_0x5c396e))!=null?_0x10904e:_0x25b84d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x38fb70(0x226)](_0x1d2441=>{var _0xa11c3e=_0x38fb70;this[_0xa11c3e(0x1f1)]['send']({'eventID':_0x44e43a[_0xa11c3e(0x18c)][_0xa11c3e(0x1dd)],'data':{'unitID':this['_unitID'],'operations':{[_0x1d2441['id']]:{'id':_0x1d2441['id'],'params':JSON[_0xa11c3e(0x195)](_0x1d2441[_0xa11c3e(0x1ab)])}}}},this[_0xa11c3e(0x23f)]);})),_0x28407a[_0x38fb70(0x203)](_0x21f14b);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x29e00d(0x21b)](_0x4d24af=>this[_0x29e00d(0x1f1)][_0x29e00d(0x1f0)]({'eventID':_0x44e43a[_0x29e00d(0x18c)][_0x29e00d(0x1dd)],'data':{'unitID':this[_0x29e00d(0x23f)],'operations':{[_0x4d24af['id']]:{'id':_0x4d24af['id'],'params':JSON['stringify'](_0x4d24af[_0x29e00d(0x1ab)])}}}},this[_0x29e00d(0x23f)]));}['_stopPresenting'](){var _0x336e37=_0x5c8a51,_0x2c464d;this[_0x336e37(0x1b2)]['next'](_0x336e37(0x18b)),(_0x2c464d=this[_0x336e37(0x158)])==null||_0x2c464d[_0x336e37(0x15a)](),this[_0x336e37(0x158)]=null;}[_0x5c8a51(0x223)](){var _0x3740e0=_0x5c8a51,_0x1dc743;(_0x1dc743=this[_0x3740e0(0x158)])==null||_0x1dc743[_0x3740e0(0x15a)](),this[_0x3740e0(0x1b2)][_0x3740e0(0x203)](_0x3740e0(0x193));}[_0x5c8a51(0x238)](){var _0x253c36=_0x5c8a51,_0x31f818;this['_status$'][_0x253c36(0x203)]('idle'),(_0x31f818=this[_0x253c36(0x158)])==null||_0x31f818[_0x253c36(0x15a)](),this[_0x253c36(0x158)]=null;}[_0x5c8a51(0x232)](){var _0x269020=_0x5c8a51,_0x80a522;this['_status$'][_0x269020(0x203)](_0x269020(0x16c)),(_0x80a522=this[_0x269020(0x158)])==null||_0x80a522[_0x269020(0x15a)]();}[_0x5c8a51(0x14e)](_0x49220d){var _0x2f473a=_0x5c8a51;if([_0x2f473a(0x1f4),_0x2f473a(0x16c),'offline'][_0x2f473a(0x1c8)](this[_0x2f473a(0x1fd)])||!_0x49220d[_0x2f473a(0x173)]['presenter']||_0x49220d[_0x2f473a(0x173)][_0x2f473a(0x22a)]===this[_0x2f473a(0x1f1)][_0x2f473a(0x1d1)]())return;this['_status']===_0x2f473a(0x18b)&&this['_startFollowing']();const _0x492293=_0x49220d['data'][_0x2f473a(0x216)];Object['values'](_0x492293)[_0x2f473a(0x21b)](_0x4ebce6=>{var _0x2a20eb=_0x2f473a;this[_0x2a20eb(0x167)]['executeCommand'](_0x4ebce6['id'],_0x4ebce6[_0x2a20eb(0x1ab)]?JSON[_0x2a20eb(0x218)](_0x4ebce6[_0x2a20eb(0x1ab)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x389924=_0x5c8a51,_0x21d037;this['_status$'][_0x389924(0x203)](_0x389924(0x22e)),(_0x21d037=this[_0x389924(0x158)])==null||_0x21d037[_0x389924(0x15a)]();}[_0x5c8a51(0x183)](){var _0x4f4485=_0x5c8a51;this[_0x4f4485(0x1b2)][_0x4f4485(0x203)](_0x4f4485(0x18b)),this['_fetchOperations']();}},_0x12dabc['LiveShareCoordinator']=_0x177b29([_0x508656(0x2,_0x3a9025['IConfigService']),_0x508656(0x3,_0x3a9025['Inject'](_0x210719)),_0x508656(0x4,_0x3a9025[_0x5c8a51(0x1e4)])],_0x12dabc['LiveShareCoordinator']);function _0x9644ef(){var _0x1a88c2=_0x5c8a51;const _0x338788=_0x5436a1[_0x1a88c2(0x171)](_0x12dabc[_0x1a88c2(0x1cd)]),_0x2260b0=_0x5436a1['useDependency'](_0x3a9025[_0x1a88c2(0x188)]),_0x1b1493=_0x5436a1[_0x1a88c2(0x1d0)](()=>_0x2260b0[_0x1a88c2(0x209)](_0x3a9025['UniverInstanceType'][_0x1a88c2(0x174)]),void 0x0,!0x1,[]),[_0x796fb2,_0x1520f2]=_0x1cdf56['useState'](null),[_0x51cbb,_0x1cea0b]=_0x1cdf56[_0x1a88c2(0x176)](_0x2eb10d[_0x1a88c2(0x1c0)]),_0x523394=_0x1cdf56[_0x1a88c2(0x207)](null);return _0x1cdf56['useEffect'](()=>(_0x1b1493&&_0x338788['getLiveShareCoordinator'](_0x1b1493[_0x1a88c2(0x180)]())[_0x1a88c2(0x165)](_0x23944e=>{var _0x3ba783=_0x1a88c2;_0x1520f2(_0x23944e),_0x523394['current']=_0x23944e[_0x3ba783(0x20b)][_0x3ba783(0x226)](_0x225b01=>{_0x1cea0b(_0x225b01);});}),()=>{var _0xddf67f=_0x1a88c2,_0xd3fe24;(_0xd3fe24=_0x523394[_0xddf67f(0x199)])==null||_0xd3fe24[_0xddf67f(0x237)](),_0x523394[_0xddf67f(0x199)]=null;}),[_0x1b1493,_0x338788]),_0x796fb2?_0x878fb2['jsx'](_0x3d1390[_0x1a88c2(0x1a5)],{'align':_0x1a88c2(0x1d5),'disabled':_0x51cbb===_0x2eb10d[_0x1a88c2(0x15d)],'className':_0x1a88c2(0x168),'overlay':_0x878fb2['jsx'](_0x19071d,{'status':_0x51cbb,'coordinator':_0x796fb2}),'children':_0x878fb2[_0x1a88c2(0x22f)]('button',{'className':_0x3d1390[_0x1a88c2(0x170)](_0x1a88c2(0x161),{'univer-cursor-not-allowed':_0x51cbb===_0x2eb10d[_0x1a88c2(0x15d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51cbb!==_0x2eb10d[_0x1a88c2(0x15d)]}),'type':_0x1a88c2(0x19a),'children':_0x878fb2[_0x1a88c2(0x22f)](_0x12278c,{'className':_0x1a88c2(0x17c)})})}):null;}function _0x19071d(_0x2e5e86){var _0xbe2080=_0x5c8a51;const {status:_0x34b816,coordinator:_0x5e0e88}=_0x2e5e86;switch(_0x34b816){case _0x2eb10d[_0xbe2080(0x1c0)]:return _0x878fb2[_0xbe2080(0x22f)](_0x2b3e45,{'coordinator':_0x5e0e88});case _0x2eb10d['FOLLOWING']:return _0x878fb2[_0xbe2080(0x22f)](_0x1249f6,{'coordinator':_0x5e0e88});case _0x2eb10d[_0xbe2080(0x182)]:return _0x878fb2[_0xbe2080(0x22f)](_0x22240f,{'coordinator':_0x5e0e88});case _0x2eb10d[_0xbe2080(0x15d)]:return _0x878fb2[_0xbe2080(0x22f)](_0x5fdd66,{});case _0x2eb10d['PRESENTING']:return _0x878fb2[_0xbe2080(0x22f)](_0x4ab776,{'coordinator':_0x5e0e88});default:return null;}}function _0x2b3e45(_0x1137c3){var _0x2f045f=_0x5c8a51;const {coordinator:_0x15cf0b}=_0x1137c3;return _0x878fb2[_0x2f045f(0x19c)](_0x878fb2['Fragment'],{'children':[_0x878fb2[_0x2f045f(0x22f)]('div',{'className':_0x2f045f(0x194),'children':'Present\x20this\x20document'}),_0x878fb2[_0x2f045f(0x22f)](_0x3d1390['Button'],{'onClick':()=>_0x15cf0b[_0x2f045f(0x1bc)](),'children':_0x2f045f(0x16a)})]});}function _0x1249f6(_0x4843f2){var _0x32c76d=_0x5c8a51;const {coordinator:_0x436bb0}=_0x4843f2;return _0x878fb2['jsxs'](_0x878fb2[_0x32c76d(0x1b6)],{'children':[_0x878fb2[_0x32c76d(0x22f)](_0x32c76d(0x1a6),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x32c76d(0x187)}),_0x878fb2['jsx'](_0x3d1390['Button'],{'onClick':()=>_0x436bb0[_0x32c76d(0x1ea)](),'children':'Stop\x20following'})]});}function _0x22240f(_0x45bcf2){var _0x533090=_0x5c8a51;const {coordinator:_0x5c1954}=_0x45bcf2;return _0x878fb2[_0x533090(0x19c)](_0x878fb2[_0x533090(0x1b6)],{'children':[_0x878fb2[_0x533090(0x22f)](_0x533090(0x1a6),{'className':_0x533090(0x194),'children':_0x533090(0x1c6)}),_0x878fb2[_0x533090(0x22f)](_0x3d1390['Button'],{'variant':_0x533090(0x22d),'onClick':()=>_0x5c1954['startFollowing'](),'children':_0x533090(0x1e8)})]});}function _0x4ab776(_0x2f77aa){var _0xe2d90b=_0x5c8a51;const {coordinator:_0x426ddc}=_0x2f77aa;return _0x878fb2[_0xe2d90b(0x19c)](_0x878fb2['Fragment'],{'children':[_0x878fb2[_0xe2d90b(0x22f)](_0xe2d90b(0x1a6),{'className':_0xe2d90b(0x194),'children':_0xe2d90b(0x1b1)}),_0x878fb2[_0xe2d90b(0x22f)](_0x3d1390['Button'],{'variant':'default','onClick':()=>_0x426ddc[_0xe2d90b(0x214)](),'children':_0xe2d90b(0x160)})]});}function _0x5fdd66(){var _0x5aa466=_0x5c8a51;return _0x878fb2['jsx'](_0x878fb2[_0x5aa466(0x1b6)],{'children':_0x5aa466(0x240)});}var _0x1a7f2f=Object[_0x5c8a51(0x1f8)],_0x49ce25=(_0x4a5297,_0x935b9d,_0x11046b,_0x18c52f)=>{var _0x56334f=_0x5c8a51;for(var _0x4d7b42=_0x18c52f>0x1?void 0x0:_0x18c52f?_0x1a7f2f(_0x935b9d,_0x11046b):_0x935b9d,_0x361e74=_0x4a5297[_0x56334f(0x1bf)]-0x1,_0x43a5ef;_0x361e74>=0x0;_0x361e74--)(_0x43a5ef=_0x4a5297[_0x361e74])&&(_0x4d7b42=_0x43a5ef(_0x4d7b42)||_0x4d7b42);return _0x4d7b42;},_0x561ac3=(_0x28bd8c,_0x3a7db8)=>(_0xfd4db7,_0x717a53)=>_0x3a7db8(_0xfd4db7,_0x717a53,_0x28bd8c);_0x12dabc[_0x5c8a51(0x1b0)]=class extends _0x3a9025[_0x5c8a51(0x17a)]{constructor(_0x1f0b87,_0x18c8b1){var _0x5ab35e=_0x5c8a51;super(),this['_injector']=_0x1f0b87,this[_0x5ab35e(0x15b)]=_0x18c8b1,this['_mountLiveShare']();}[_0x5c8a51(0x162)](){var _0x405b10=_0x5c8a51;this[_0x405b10(0x179)](this[_0x405b10(0x15b)]['registerComponent'](_0x5436a1[_0x405b10(0x23c)][_0x405b10(0x1e3)],()=>_0x5436a1[_0x405b10(0x1f2)](_0x9644ef,this[_0x405b10(0x16e)])));}},_0x12dabc[_0x5c8a51(0x1b0)]=_0x49ce25([_0x561ac3(0x0,_0x3a9025['Inject'](_0x3a9025[_0x5c8a51(0x201)])),_0x561ac3(0x1,_0x5436a1[_0x5c8a51(0x1da)])],_0x12dabc[_0x5c8a51(0x1b0)]);var _0x2f905d=Object[_0x5c8a51(0x14d)],_0x56e38e=Object[_0x5c8a51(0x1f8)],_0x22d436=(_0x53d915,_0xcda42d,_0x1ee07c)=>_0xcda42d in _0x53d915?_0x2f905d(_0x53d915,_0xcda42d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ee07c}):_0x53d915[_0xcda42d]=_0x1ee07c,_0x20136c=(_0x4b1273,_0x55376e,_0x2e7fb7,_0x4e6b8b)=>{var _0x3f3943=_0x5c8a51;for(var _0x153cab=_0x4e6b8b>0x1?void 0x0:_0x4e6b8b?_0x56e38e(_0x55376e,_0x2e7fb7):_0x55376e,_0x32f881=_0x4b1273[_0x3f3943(0x1bf)]-0x1,_0x4c9a2a;_0x32f881>=0x0;_0x32f881--)(_0x4c9a2a=_0x4b1273[_0x32f881])&&(_0x153cab=_0x4c9a2a(_0x153cab)||_0x153cab);return _0x153cab;},_0x497cb3=(_0x17dedd,_0x46edf3)=>(_0x2c251d,_0x2668f4)=>_0x46edf3(_0x2c251d,_0x2668f4,_0x17dedd),_0xff52=(_0x177694,_0x5d3877,_0x3375e4)=>_0x22d436(_0x177694,typeof _0x5d3877!=_0x5c8a51(0x1c2)?_0x5d3877+'':_0x5d3877,_0x3375e4);const _0x25fdd0='UNIVER_LIVE_SHARE_PLUGIN';_0x12dabc[_0x5c8a51(0x231)]=class extends _0x3a9025[_0x5c8a51(0x1d9)]{constructor(_0x426dd7=_0x215b3f,_0x4dd274,_0x38623d){var _0x9c97bc=_0x5c8a51;super(),this[_0x9c97bc(0x215)]=_0x426dd7,this['_injector']=_0x4dd274,this[_0x9c97bc(0x166)]=_0x38623d;const {..._0x22fcba}=_0x3a9025[_0x9c97bc(0x163)]({},_0x215b3f,this[_0x9c97bc(0x215)]);this[_0x9c97bc(0x166)]['setConfig'](_0x524f5f,_0x22fcba);}['onStarting'](){var _0x2e4564=_0x5c8a51;_0x3a9025[_0x2e4564(0x177)](this['_injector'],_0x3a9025['mergeOverrideWithDependencies']([[_0x210719],[_0x12dabc[_0x2e4564(0x1cd)]],[_0x437956],[_0x12dabc['DesktopLiveShareController']]],this[_0x2e4564(0x215)]['override'])),_0x3a9025[_0x2e4564(0x1e2)](this[_0x2e4564(0x16e)],[[_0x437956]]);}[_0x5c8a51(0x1e7)](){var _0x24ea93=_0x5c8a51;_0x3a9025[_0x24ea93(0x1e2)](this[_0x24ea93(0x16e)],[[_0x12dabc[_0x24ea93(0x1b0)]]]);}},_0xff52(_0x12dabc['UniverLiveSharePlugin'],'type',_0x3a9025['UniverInstanceType'][_0x5c8a51(0x1b9)]),_0xff52(_0x12dabc[_0x5c8a51(0x231)],_0x5c8a51(0x17e),_0x25fdd0),_0x12dabc['UniverLiveSharePlugin']=_0x20136c([_0x3a9025[_0x5c8a51(0x169)](_0x5747cc[_0x5c8a51(0x1ac)]),_0x497cb3(0x1,_0x3a9025[_0x5c8a51(0x154)](_0x3a9025['Injector'])),_0x497cb3(0x2,_0x3a9025[_0x5c8a51(0x239)])],_0x12dabc['UniverLiveSharePlugin']),_0x12dabc['LiveShare']=_0x9644ef,_0x12dabc[_0x5c8a51(0x14f)]=_0x210719,_0x12dabc[_0x5c8a51(0x19b)]=_0x2eb10d,Object[_0x5c8a51(0x14d)](_0x12dabc,Symbol[_0x5c8a51(0x1e0)],{'value':_0x5c8a51(0x221)});}));
1
+ function _0x46d1(_0x529820,_0x4dc077){var _0x1bbb19=_0x1bbb();return _0x46d1=function(_0x46d1f7,_0x19e577){_0x46d1f7=_0x46d1f7-0x150;var _0x31cd68=_0x1bbb19[_0x46d1f7];return _0x31cd68;},_0x46d1(_0x529820,_0x4dc077);}function _0x1bbb(){var _0x18442d=['_startLiveShareCoordinator','_fetchOperations','Button','Stop\x20presenting','@univerjs/sheets','xlink:href','_entities','_status','5036aDxXUv','getUnitId','url(#$1','stopPresenting','LiveShareService','_liveShareService','forEach','assign','registerSharedOperation','delete','LiveShareCoordinator','getTypeOfUnitDisposed$','LiveShareController','_handleOperation','parse','attrs','length','3031679dmyQTY','UniverProCollaborationClient','takeUntil','2472CRGQxQ','operations','call','IUniverInstanceService','UniverSheetsUi','11184630bKOpxr','140iDvnYs','useObservable','status$','LIVESHARE_TERMINATE','IConfigService','concat','You\x27re\x20not\x20following\x20the\x20presenter','offline','SessionStatus','toString','stringify','includes','OPERATION','_collabSessionService','substring','svg','connectInjector','random','_handleNewHost','HEADER_MENU','merge','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','send','live-share.config','LIVESHARE_FETCH_OPERATIONS','_collabSession','_injector','defineProperty','idle','map','sessionStatus$','div','_handleOnline','onStarting','params','_init','CommandType','DependentOn','UniverCore','rxjs','UNIVER_SHEET','_mountLiveShare','ONLINE','fill','RxDisposable','You\x27re\x20following\x20the\x20presenter','getTypeOfUnitAdded$','next','mergeOverrideWithDependencies','_commandService','_presenter','PRESENTING','executeCommand','useState','evenodd','ICommandService','unitId','_uiPartsService','_sharedOperations','createElement','SAME_OPERATION_SHARE_INTERVAL','getValue','init','FOLLOWING','setConfig','_unitID','useRef','Fragment','_handleTerminate','add','mask','toStringTag','toDisposable','_status$','get','http://www.w3.org/2000/svg','button','_univerInstanceService','type','LiveShareStatus','univer-mb-3\x20univer-w-full\x20univer-text-sm','amd','defIds','8154IbzKcn','path','1em','_reporters','use','IDLE','_handleOffline','extend','jsxs','end','react/jsx-runtime','UniverLiveSharePlugin','@univerjs/sheets-ui','_handleNewChangeSets','data','univerjs-icon\x20univerjs-icon-','subscribe','presenter','DesktopLiveShareController','_commandDisposable','BuiltInUIPart','getMemberID','LIVESHARE_OPERATION','Disposable','parseProtocolChangeset','_configService','forwardRef','getLiveShareCoordinator','asObservable','Injector','propertyIsEnumerable','react','7qmKROY','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','set','string','registerInitialStateReporter','displayName','UniverCollaborationClientPlugin','dispose$','className','Start\x20following','idSuffix','has','defs','univer-size-4','React','@univerjs/core','pipe','getCurrentTypeOfUnit$','prototype','NOT_FOLLOWING','NEW_CHANGESETS','getInitialStates','values','Subject','_startFollowing','replace','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','tag','CollaborationSessionService','DisposableCollection','registerDependencies','entries','stopFollowing','clsx','not-following','disposeWithMe','getConfig','Inject','LIVESHARE_NEW_HOST','useDependency','_config','getOwnPropertyDescriptor','icon','current','getOwnPropertySymbols','979CXPcxv','CollaborationEvent','reverse','symbol','dispose','following','indexOf','OFFLINE','Module','then','507aRrSDR','complete','onRendered','UNIVER_LIVE_SHARE_PLUGIN','jsx','SetWorksheetActiveOperation','mutations','requireSession','exports','hasOwnProperty','function','LiveShareIcon','@univerjs/design','shouldShareOperation','apply','presenting','You\x27are\x20offline.','rxjs/operators','onCommandExecuted','pluginName','230820csKCLD','29064Cgczpy','@univerjs-pro/collaboration-client','tryStartPresenting','_stopPresenting','startFollowing','71382kMAEJu','UniverInstanceType','_stopFollowing','colorChannel1','Present\x20this\x20document','children'];_0x1bbb=function(){return _0x18442d;};return _0x1bbb();}(function(_0x3f24c4,_0x2000e7){var _0x5bf8b9=_0x46d1,_0x10fd1c=_0x3f24c4();while(!![]){try{var _0x50c0b3=parseInt(_0x5bf8b9(0x228))/0x1*(parseInt(_0x5bf8b9(0x19b))/0x2)+-parseInt(_0x5bf8b9(0x173))/0x3*(-parseInt(_0x5bf8b9(0x188))/0x4)+parseInt(_0x5bf8b9(0x1b5))/0x5*(-parseInt(_0x5bf8b9(0x18d))/0x6)+-parseInt(_0x5bf8b9(0x1ac))/0x7+parseInt(_0x5bf8b9(0x1af))/0x8*(-parseInt(_0x5bf8b9(0x208))/0x9)+-parseInt(_0x5bf8b9(0x1b4))/0xa+parseInt(_0x5bf8b9(0x169))/0xb*(parseInt(_0x5bf8b9(0x187))/0xc);if(_0x50c0b3===_0x2000e7)break;else _0x10fd1c['push'](_0x10fd1c['shift']());}catch(_0x510410){_0x10fd1c['push'](_0x10fd1c['shift']());}}}(_0x1bbb,0xc1921),function(_0x1db9bf,_0x20c442){var _0x27c91d=_0x46d1;typeof exports=='object'&&typeof module<'u'?_0x20c442(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define[_0x27c91d(0x206)]?define([_0x27c91d(0x17b),_0x27c91d(0x189),_0x27c91d(0x237),_0x27c91d(0x197),_0x27c91d(0x214),'@univerjs/ui',_0x27c91d(0x212),_0x27c91d(0x17f),_0x27c91d(0x227),'@univerjs-pro/collaboration',_0x27c91d(0x1dc),_0x27c91d(0x184)],_0x20c442):(_0x1db9bf=typeof globalThis<'u'?globalThis:_0x1db9bf||self,_0x20c442(_0x1db9bf['UniverProLiveShare']={},_0x1db9bf[_0x27c91d(0x1ad)],_0x1db9bf[_0x27c91d(0x1db)],_0x1db9bf['UniverSheets'],_0x1db9bf[_0x27c91d(0x1b3)],_0x1db9bf['UniverUi'],_0x1db9bf['React'],_0x1db9bf['UniverDesign'],_0x1db9bf[_0x27c91d(0x236)],_0x1db9bf['UniverProCollaboration'],_0x1db9bf['rxjs'],_0x1db9bf[_0x27c91d(0x1dc)]['operators']));}(this,function(_0xa82ded,_0x3d9541,_0x2fd71c,_0x579ea5,_0xe0a2,_0x2783eb,_0x19cebd,_0x51f8cd,_0x2e8da4,_0x26e219,_0x2dd9f0,_0x3fee10){'use strict';var _0x3b89ea=_0x46d1;var _0x11cbda=Object[_0x3b89ea(0x1d0)],_0x242a29=(_0x32a7b4,_0x3a1496,_0x1194a0)=>_0x3a1496 in _0x32a7b4?_0x11cbda(_0x32a7b4,_0x3a1496,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1194a0}):_0x32a7b4[_0x3a1496]=_0x1194a0,_0x46fc0b=(_0x444f6d,_0x3e48a2,_0x388ea8)=>_0x242a29(_0x444f6d,typeof _0x3e48a2!=_0x3b89ea(0x16c)?_0x3e48a2+'':_0x3e48a2,_0x388ea8);const _0x27a7e7=_0x3b89ea(0x1cc),_0xfa6177={};class _0x34cf3a extends _0x2fd71c[_0x3b89ea(0x21f)]{constructor(){var _0x35bbcf=_0x3b89ea;super(...arguments),_0x46fc0b(this,_0x35bbcf(0x1ef),new Set()),_0x46fc0b(this,_0x35bbcf(0x20b),new Set());}[_0x3b89ea(0x1a3)](_0x4f6db5){var _0x3d7c4e=_0x3b89ea;return this['_sharedOperations'][_0x3d7c4e(0x1fa)](_0x4f6db5),_0x2fd71c[_0x3d7c4e(0x1fd)](()=>this[_0x3d7c4e(0x1ef)][_0x3d7c4e(0x1a4)](_0x4f6db5));}[_0x3b89ea(0x22c)](_0x258b58){var _0x21dd41=_0x3b89ea;return this[_0x21dd41(0x20b)][_0x21dd41(0x1fa)](_0x258b58),_0x2fd71c[_0x21dd41(0x1fd)](()=>this[_0x21dd41(0x20b)]['delete'](_0x258b58));}['shouldShareOperation'](_0x5430b7){var _0xdb72dc=_0x3b89ea;return this[_0xdb72dc(0x1ef)][_0xdb72dc(0x233)](_0x5430b7);}['getInitialStates'](_0x3e8825){var _0x106599=_0x3b89ea;return Array['from'](this[_0x106599(0x20b)])[_0x106599(0x1d2)](_0x409118=>_0x409118(_0x3e8825));}}var _0x23d65b=Object['getOwnPropertyDescriptor'],_0x3fe33b=(_0xb2b2b8,_0x446262,_0x148f67,_0xbe50d4)=>{for(var _0xdf6d77=_0xbe50d4>0x1?void 0x0:_0xbe50d4?_0x23d65b(_0x446262,_0x148f67):_0x446262,_0x9f4138=_0xb2b2b8['length']-0x1,_0x146082;_0x9f4138>=0x0;_0x9f4138--)(_0x146082=_0xb2b2b8[_0x9f4138])&&(_0xdf6d77=_0x146082(_0xdf6d77)||_0xdf6d77);return _0xdf6d77;},_0x3be41d=(_0x1ae93f,_0x5687e4)=>(_0x11f73a,_0x593018)=>_0x5687e4(_0x11f73a,_0x593018,_0x1ae93f);let _0x165f02=class extends _0x2fd71c[_0x3b89ea(0x21f)]{constructor(_0x5b07df){var _0x5ab645=_0x3b89ea;super(),this[_0x5ab645(0x1a0)]=_0x5b07df,this[_0x5ab645(0x1d8)]();}[_0x3b89ea(0x1d8)](){var _0x2c52d2=_0x3b89ea;[_0xe0a2['SetZoomRatioOperation']['id'],_0xe0a2['SetScrollOperation']['id'],_0x579ea5[_0x2c52d2(0x178)]['id']][_0x2c52d2(0x1a1)](_0x725bb9=>{var _0x9620d5=_0x2c52d2;this[_0x9620d5(0x15f)](this[_0x9620d5(0x1a0)][_0x9620d5(0x1a3)](_0x725bb9));});}};_0x165f02=_0x3fe33b([_0x3be41d(0x0,_0x2fd71c[_0x3b89ea(0x161)](_0x34cf3a))],_0x165f02);var _0x34691a=function(){var _0x57782b=_0x3b89ea;return _0x34691a=Object['assign']||function(_0x2c6d47){var _0x510036=_0x46d1;for(var _0x365c45,_0x13d25d=0x1,_0x547248=arguments[_0x510036(0x1ab)];_0x13d25d<_0x547248;_0x13d25d++){_0x365c45=arguments[_0x13d25d];for(var _0x9c91dd in _0x365c45)Object['prototype'][_0x510036(0x17c)][_0x510036(0x1b1)](_0x365c45,_0x9c91dd)&&(_0x2c6d47[_0x9c91dd]=_0x365c45[_0x9c91dd]);}return _0x2c6d47;},_0x34691a[_0x57782b(0x181)](this,arguments);},_0x3ddbdd=function(_0x496d36,_0x4d3671){var _0x22b889=_0x3b89ea,_0x487d9b={};for(var _0x9c6b63 in _0x496d36)Object[_0x22b889(0x23a)]['hasOwnProperty']['call'](_0x496d36,_0x9c6b63)&&_0x4d3671[_0x22b889(0x16f)](_0x9c6b63)<0x0&&(_0x487d9b[_0x9c6b63]=_0x496d36[_0x9c6b63]);if(_0x496d36!=null&&typeof Object[_0x22b889(0x168)]==_0x22b889(0x17d)){for(var _0xcf5443=0x0,_0x9c6b63=Object[_0x22b889(0x168)](_0x496d36);_0xcf5443<_0x9c6b63[_0x22b889(0x1ab)];_0xcf5443++)_0x4d3671[_0x22b889(0x16f)](_0x9c6b63[_0xcf5443])<0x0&&Object['prototype'][_0x22b889(0x226)][_0x22b889(0x1b1)](_0x496d36,_0x9c6b63[_0xcf5443])&&(_0x487d9b[_0x9c6b63[_0xcf5443]]=_0x496d36[_0x9c6b63[_0xcf5443]]);}return _0x487d9b;},_0x417fb5=_0x2e8da4[_0x3b89ea(0x222)](function(_0xd5f150,_0x40a58d){var _0x313f97=_0x3b89ea,_0x4e6dbb=_0xd5f150[_0x313f97(0x166)],_0xeb6185=_0xd5f150['id'],_0x2e9b5f=_0xd5f150[_0x313f97(0x230)],_0x1c33b3=_0xd5f150['extend'],_0x5b2f57=_0x3ddbdd(_0xd5f150,[_0x313f97(0x166),'id','className',_0x313f97(0x20f)]),_0x1d3c5d=_0x313f97(0x217)[_0x313f97(0x1ba)](_0xeb6185,'\x20')['concat'](_0x2e9b5f||'')['trim'](),_0x180659=_0x2e8da4[_0x313f97(0x1f7)]('_'[_0x313f97(0x1ba)](_0x25efeb()));return _0x369cd4(_0x4e6dbb,''[_0x313f97(0x1ba)](_0xeb6185),{'defIds':_0x4e6dbb['defIds'],'idSuffix':_0x180659[_0x313f97(0x167)]},_0x34691a({'ref':_0x40a58d,'className':_0x1d3c5d},_0x5b2f57),_0x1c33b3);});function _0x369cd4(_0x21ab5a,_0x3115a3,_0x98286c,_0x5b0f56,_0x4afdcf){var _0x4685ba=_0x3b89ea;return _0x2e8da4[_0x4685ba(0x1f0)](_0x21ab5a[_0x4685ba(0x157)],_0x34691a(_0x34691a({'key':_0x3115a3},_0x1a6ee6(_0x21ab5a,_0x98286c,_0x4afdcf)),_0x5b0f56),(_0x152f9f(_0x21ab5a,_0x98286c)[_0x4685ba(0x192)]||[])[_0x4685ba(0x1d2)](function(_0x40e8cd,_0x278383){var _0x39316e=_0x4685ba;return _0x369cd4(_0x40e8cd,''['concat'](_0x3115a3,'-')[_0x39316e(0x1ba)](_0x21ab5a[_0x39316e(0x157)],'-')['concat'](_0x278383),_0x98286c,void 0x0,_0x4afdcf);}));}function _0x1a6ee6(_0x311076,_0x1d39d0,_0x15edde){var _0x35bb39=_0x3b89ea,_0xc1d938=_0x34691a({},_0x311076['attrs']);_0x15edde!=null&&_0x15edde[_0x35bb39(0x190)]&&_0xc1d938['fill']==='colorChannel1'&&(_0xc1d938[_0x35bb39(0x1e0)]=_0x15edde[_0x35bb39(0x190)]),_0x311076[_0x35bb39(0x157)]===_0x35bb39(0x1fb)&&_0xc1d938['id']&&(_0xc1d938['id']=_0xc1d938['id']+_0x1d39d0[_0x35bb39(0x232)]),Object[_0x35bb39(0x15b)](_0xc1d938)[_0x35bb39(0x1a1)](function(_0x1a5dbe){var _0x2a6c0b=_0x35bb39,_0x36bdf6=_0x1a5dbe[0x0],_0x1640ba=_0x1a5dbe[0x1];_0x36bdf6===_0x2a6c0b(0x1fb)&&typeof _0x1640ba==_0x2a6c0b(0x22b)&&(_0xc1d938[_0x36bdf6]=_0x1640ba[_0x2a6c0b(0x155)](/url\(#(.*)\)/,_0x2a6c0b(0x19d)[_0x2a6c0b(0x1ba)](_0x1d39d0[_0x2a6c0b(0x232)],')')));});var _0xe17109=_0x1d39d0[_0x35bb39(0x207)];return!_0xe17109||_0xe17109[_0x35bb39(0x1ab)]===0x0||(_0x311076['tag']===_0x35bb39(0x20c)&&_0xc1d938[_0x35bb39(0x198)]&&(_0xc1d938[_0x35bb39(0x198)]=_0xc1d938['xlink:href']+_0x1d39d0[_0x35bb39(0x232)]),Object['entries'](_0xc1d938)[_0x35bb39(0x1a1)](function(_0x21345b){var _0x584201=_0x35bb39,_0xfe0196=_0x21345b[0x0],_0x2b0409=_0x21345b[0x1];typeof _0x2b0409==_0x584201(0x22b)&&(_0xc1d938[_0xfe0196]=_0x2b0409['replace'](/url\(#(.*)\)/,'url(#$1'[_0x584201(0x1ba)](_0x1d39d0[_0x584201(0x232)],')')));})),_0xc1d938;}function _0x152f9f(_0x50eb9b,_0x3d7310){var _0x149a43=_0x3b89ea,_0x4c2a28,_0x27741c=_0x3d7310['defIds'];return!_0x27741c||_0x27741c[_0x149a43(0x1ab)]===0x0?_0x50eb9b:_0x50eb9b[_0x149a43(0x157)]===_0x149a43(0x234)&&(!((_0x4c2a28=_0x50eb9b[_0x149a43(0x192)])===null||_0x4c2a28===void 0x0)&&_0x4c2a28[_0x149a43(0x1ab)])?_0x34691a(_0x34691a({},_0x50eb9b),{'children':_0x50eb9b[_0x149a43(0x192)][_0x149a43(0x1d2)](function(_0x407ceb){var _0x25661f=_0x149a43;return typeof _0x407ceb[_0x25661f(0x1aa)]['id']=='string'&&_0x27741c&&_0x27741c['includes'](_0x407ceb['attrs']['id'])?_0x34691a(_0x34691a({},_0x407ceb),{'attrs':_0x34691a(_0x34691a({},_0x407ceb[_0x25661f(0x1aa)]),{'id':_0x407ceb[_0x25661f(0x1aa)]['id']+_0x3d7310[_0x25661f(0x232)]})}):_0x407ceb;})}):_0x50eb9b;}function _0x25efeb(){var _0xdbdb61=_0x3b89ea;return Math[_0xdbdb61(0x1c6)]()[_0xdbdb61(0x1be)](0x24)[_0xdbdb61(0x1c3)](0x2,0x8);}_0x417fb5[_0x3b89ea(0x22d)]='UniverIcon';var _0x3e381b={'tag':_0x3b89ea(0x1c4),'attrs':{'xmlns':_0x3b89ea(0x200),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x3b89ea(0x20a),'height':_0x3b89ea(0x20a)},'children':[{'tag':_0x3b89ea(0x209),'attrs':{'fill':'currentColor','d':_0x3b89ea(0x156)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x3b89ea(0x229),'fillRule':_0x3b89ea(0x1eb),'clipRule':_0x3b89ea(0x1eb)}}]},_0x5bef28=_0x2e8da4[_0x3b89ea(0x222)](function(_0x3a0286,_0xa6fc7b){var _0x298546=_0x3b89ea;return _0x2e8da4['createElement'](_0x417fb5,Object[_0x298546(0x1a2)]({},_0x3a0286,{'id':'live-share-icon','ref':_0xa6fc7b,'icon':_0x3e381b}));});_0x5bef28[_0x3b89ea(0x22d)]=_0x3b89ea(0x17e);var _0x28e806=Object['getOwnPropertyDescriptor'],_0x5b5a8e=(_0x248672,_0x478547,_0x5ce391,_0x516c6c)=>{var _0x667452=_0x3b89ea;for(var _0x23745c=_0x516c6c>0x1?void 0x0:_0x516c6c?_0x28e806(_0x478547,_0x5ce391):_0x478547,_0x25e9fd=_0x248672[_0x667452(0x1ab)]-0x1,_0x265602;_0x25e9fd>=0x0;_0x25e9fd--)(_0x265602=_0x248672[_0x25e9fd])&&(_0x23745c=_0x265602(_0x23745c)||_0x23745c);return _0x23745c;},_0x4a57ff=(_0x5d35c5,_0x2e9fc7)=>(_0x4439b7,_0x439f66)=>_0x2e9fc7(_0x4439b7,_0x439f66,_0x5d35c5);_0xa82ded['LiveShareController']=class extends _0x2fd71c[_0x3b89ea(0x1e1)]{constructor(_0x152229,_0x15016f,_0x3fd1a7){var _0x326a4c=_0x3b89ea;super(),_0x46fc0b(this,_0x326a4c(0x199),new Map()),(this[_0x326a4c(0x202)]=_0x152229,this[_0x326a4c(0x1cf)]=_0x15016f,this[_0x326a4c(0x1c2)]=_0x3fd1a7,this[_0x326a4c(0x1d8)]());}async[_0x3b89ea(0x223)](_0x4d4f68){var _0x97eb27=_0x3b89ea;return this[_0x97eb27(0x199)][_0x97eb27(0x233)](_0x4d4f68)||await this[_0x97eb27(0x193)](_0x4d4f68),this[_0x97eb27(0x199)][_0x97eb27(0x1ff)](_0x4d4f68);}[_0x3b89ea(0x1d8)](){var _0x3179f5=_0x3b89ea;this[_0x3179f5(0x202)][_0x3179f5(0x1e3)](_0x2fd71c['UniverInstanceType']['UNIVER_SHEET'])[_0x3179f5(0x238)](_0x3fee10[_0x3179f5(0x1ae)](this['dispose$']))[_0x3179f5(0x218)](async _0x162ae1=>{var _0xc347f6=_0x3179f5;const _0x1af4ff=_0x162ae1['getUnitId']();this[_0xc347f6(0x199)][_0xc347f6(0x233)](_0x1af4ff)||this['_startLiveShareCoordinator'](_0x1af4ff);}),this['_univerInstanceService'][_0x3179f5(0x1a6)](_0x2fd71c[_0x3179f5(0x18e)][_0x3179f5(0x1dd)])[_0x3179f5(0x238)](_0x3fee10[_0x3179f5(0x1ae)](this[_0x3179f5(0x22f)]))[_0x3179f5(0x218)](_0x2424c7=>{var _0x5045b5=_0x3179f5;const _0x2810ea=_0x2424c7[_0x5045b5(0x19c)](),_0x10db96=this['_entities'][_0x5045b5(0x1ff)](_0x2810ea);_0x10db96==null||_0x10db96[_0x5045b5(0x16d)]();});}async['_startLiveShareCoordinator'](_0x540bd8){var _0x2a3243=_0x3b89ea;const _0x123925=await this[_0x2a3243(0x1c2)][_0x2a3243(0x17a)](_0x540bd8),_0x28f0ed=this['_injector']['createInstance'](_0xa82ded[_0x2a3243(0x1a5)],_0x540bd8,_0x123925);return _0x28f0ed[_0x2a3243(0x1f3)](),this[_0x2a3243(0x199)][_0x2a3243(0x22a)](_0x540bd8,_0x28f0ed),_0x28f0ed;}},_0xa82ded['LiveShareController']=_0x5b5a8e([_0x4a57ff(0x0,_0x2fd71c[_0x3b89ea(0x1b2)]),_0x4a57ff(0x1,_0x2fd71c[_0x3b89ea(0x161)](_0x2fd71c[_0x3b89ea(0x225)])),_0x4a57ff(0x2,_0x2fd71c[_0x3b89ea(0x161)](_0x3d9541[_0x3b89ea(0x158)]))],_0xa82ded['LiveShareController']);var _0x2e6497=(_0x9dd9a2=>(_0x9dd9a2[_0x3b89ea(0x170)]=_0x3b89ea(0x1bc),_0x9dd9a2['IDLE']=_0x3b89ea(0x1d1),_0x9dd9a2[_0x3b89ea(0x1f4)]=_0x3b89ea(0x16e),_0x9dd9a2[_0x3b89ea(0x23b)]=_0x3b89ea(0x15e),_0x9dd9a2[_0x3b89ea(0x1e8)]=_0x3b89ea(0x182),_0x9dd9a2))(_0x2e6497||{});const _0x414f9b=_0x3b89ea(0x1f1),_0x5f3660=0xc8;_0xa82ded['LiveShareCoordinator']=class extends _0x2fd71c[_0x3b89ea(0x1e1)]{constructor(_0x1649b5,_0xdc542f,_0x3a983b,_0x4f2afe,_0x36b519){var _0x37f7bb=_0x3b89ea;super(),_0x46fc0b(this,'_status$',new _0x2dd9f0['BehaviorSubject'](_0x37f7bb(0x1d1))),_0x46fc0b(this,_0x37f7bb(0x1b7),this['_status$'][_0x37f7bb(0x224)]()),_0x46fc0b(this,'_init',!0x1),_0x46fc0b(this,_0x37f7bb(0x21b),null),_0x46fc0b(this,_0x37f7bb(0x1e7),null),(this[_0x37f7bb(0x1f6)]=_0x1649b5,this[_0x37f7bb(0x1ce)]=_0xdc542f,this[_0x37f7bb(0x221)]=_0x3a983b,this[_0x37f7bb(0x1a0)]=_0x4f2afe,this['_commandService']=_0x36b519);}get[_0x3b89ea(0x19a)](){var _0x2eaa82=_0x3b89ea;return this[_0x2eaa82(0x1fe)][_0x2eaa82(0x1f2)]();}[_0x3b89ea(0x16d)](){var _0x5754a3=_0x3b89ea,_0x1202ae;(_0x1202ae=this['_commandDisposable'])==null||_0x1202ae['dispose'](),this[_0x5754a3(0x1fe)][_0x5754a3(0x1e4)]('idle'),this['_status$']['complete']();}[_0x3b89ea(0x1f3)](){var _0x47eda7=_0x3b89ea;this[_0x47eda7(0x1d8)]||(this[_0x47eda7(0x1d8)]=!0x0,this[_0x47eda7(0x1ce)][_0x47eda7(0x1d3)][_0x47eda7(0x238)](_0x3fee10[_0x47eda7(0x1ae)](this[_0x47eda7(0x22f)]))['subscribe'](_0x5505b5=>{var _0x24fdba=_0x47eda7;switch(_0x5505b5){case _0x3d9541['SessionStatus'][_0x24fdba(0x170)]:this[_0x24fdba(0x20e)]();break;case _0x3d9541[_0x24fdba(0x1bd)][_0x24fdba(0x1df)]:this[_0x24fdba(0x1d5)]();break;}}),this[_0x47eda7(0x1ce)]['event$'][_0x47eda7(0x238)](_0x3fee10[_0x47eda7(0x1ae)](this[_0x47eda7(0x22f)]))[_0x47eda7(0x218)](_0x181b8c=>{var _0x12a7d5=_0x47eda7;const {eventID:_0x44666d}=_0x181b8c;switch(_0x44666d){case _0x26e219[_0x12a7d5(0x16a)][_0x12a7d5(0x162)]:this[_0x12a7d5(0x1c7)](_0x181b8c);break;case _0x26e219[_0x12a7d5(0x16a)][_0x12a7d5(0x21e)]:this[_0x12a7d5(0x1a8)](_0x181b8c);break;case _0x26e219[_0x12a7d5(0x16a)][_0x12a7d5(0x1b8)]:this[_0x12a7d5(0x1f9)]();break;case _0x26e219[_0x12a7d5(0x16a)][_0x12a7d5(0x150)]:this[_0x12a7d5(0x215)](_0x181b8c);break;}}));}[_0x3b89ea(0x18a)](){var _0x54cfb2=_0x3b89ea;this[_0x54cfb2(0x1ce)][_0x54cfb2(0x1cb)]({'eventID':_0x26e219[_0x54cfb2(0x16a)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x54cfb2(0x1f6)],'userID':this[_0x54cfb2(0x1ce)]['getMemberID']()}},this['_unitID']);}[_0x3b89ea(0x19e)](){var _0x51d7a5=_0x3b89ea;this[_0x51d7a5(0x19a)]===_0x51d7a5(0x182)&&(this['_status$'][_0x51d7a5(0x1e4)](_0x51d7a5(0x1d1)),this[_0x51d7a5(0x1ce)][_0x51d7a5(0x1cb)]({'eventID':_0x26e219[_0x51d7a5(0x16a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x51d7a5(0x1f6)]}},this['_unitID']));}[_0x3b89ea(0x18c)](){var _0x22e3e8=_0x3b89ea;this['_status']==='not-following'&&(this[_0x22e3e8(0x1fe)][_0x22e3e8(0x1e4)]('following'),this[_0x22e3e8(0x154)]());}['stopFollowing'](){var _0x2feaa2=_0x3b89ea;this[_0x2feaa2(0x19a)]==='following'&&this['_stopFollowing']();}[_0x3b89ea(0x1c7)](_0x1cfa19){var _0x1a95e4=_0x3b89ea;const {presenter:_0x5a372a}=_0x1cfa19[_0x1a95e4(0x216)],_0x254a9e=this[_0x1a95e4(0x1ce)][_0x1a95e4(0x21d)]();this[_0x1a95e4(0x1e7)]=_0x5a372a,_0x5a372a===_0x254a9e?(this[_0x1a95e4(0x18f)](),this['_startPresenting']()):this[_0x1a95e4(0x19a)]!==_0x1a95e4(0x15e)&&(this['_stopPresenting'](),this[_0x1a95e4(0x154)]());}[_0x3b89ea(0x194)](){var _0x5b28d5=_0x3b89ea;const _0x52e6e8={'eventID':_0x26e219['CollaborationEvent'][_0x5b28d5(0x1cd)]};this[_0x5b28d5(0x1ce)]['send'](_0x52e6e8,this['_unitID']);}[_0x3b89ea(0x1f9)](){var _0xdad3fb=_0x3b89ea;this[_0xdad3fb(0x1e7)]=null,this[_0xdad3fb(0x19a)]!==_0xdad3fb(0x182)&&this['_beIdle']();}['_handleNewChangeSets'](_0x5bcbf2){var _0x596f2d=_0x3b89ea;if(this[_0x596f2d(0x19a)]==='following'&&this['_presenter']===_0x5bcbf2[_0x596f2d(0x216)]['memberID']){const _0x102bd3=_0x26e219[_0x596f2d(0x220)](_0x5bcbf2[_0x596f2d(0x216)])[_0x596f2d(0x179)][_0x596f2d(0x16b)]()['find'](_0x1091dc=>_0x1091dc['id']===_0x579ea5['InsertSheetMutation']['id']);if(_0x102bd3){const _0x2217b5=_0x102bd3[_0x596f2d(0x1d7)][_0x596f2d(0x1ed)],_0x2c1435=_0x102bd3['params']['sheet']['id'];setTimeout(()=>{var _0x2c162b=_0x596f2d;this[_0x2c162b(0x1e6)][_0x2c162b(0x1e9)](_0x579ea5['SetWorksheetActiveOperation']['id'],{'unitId':_0x2217b5,'subUnitId':_0x2c1435},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xab8ca2=_0x3b89ea;this[_0xab8ca2(0x1fe)][_0xab8ca2(0x1e4)](_0xab8ca2(0x182));const _0x305916=new Map(),_0x357005=this[_0xab8ca2(0x21b)]=new _0x2fd71c[(_0xab8ca2(0x159))]();_0x357005['add'](_0x2fd71c['toDisposable'](()=>{var _0xace98e=_0xab8ca2;_0x305916[_0xace98e(0x1a1)](_0x456fc1=>_0x456fc1[_0xace98e(0x174)]()),_0x305916['clear']();})),_0x357005[_0xab8ca2(0x1fa)](this[_0xab8ca2(0x1e6)][_0xab8ca2(0x185)](_0x2ae7eb=>{var _0x1263a9=_0xab8ca2,_0x6a7563;if(_0x2ae7eb[_0x1263a9(0x203)]!==_0x2fd71c[_0x1263a9(0x1d9)][_0x1263a9(0x1c1)]||!this[_0x1263a9(0x1a0)][_0x1263a9(0x180)](_0x2ae7eb['id']))return;const {id:_0x3139d6}=_0x2ae7eb;let _0x13fc18;_0x305916['has'](_0x3139d6)?_0x13fc18=_0x305916[_0x1263a9(0x1ff)](_0x3139d6):(_0x13fc18=new _0x2dd9f0[(_0x1263a9(0x153))](),_0x305916[_0x1263a9(0x22a)](_0x3139d6,_0x13fc18),_0x13fc18['pipe'](_0x3fee10['throttleTime']((_0x6a7563=this[_0x1263a9(0x221)][_0x1263a9(0x160)](_0x414f9b))!=null?_0x6a7563:_0x5f3660,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1263a9(0x218)](_0x479834=>{var _0x4ae6b2=_0x1263a9;this['_collabSession'][_0x4ae6b2(0x1cb)]({'eventID':_0x26e219['CollaborationEvent'][_0x4ae6b2(0x21e)],'data':{'unitID':this[_0x4ae6b2(0x1f6)],'operations':{[_0x479834['id']]:{'id':_0x479834['id'],'params':JSON[_0x4ae6b2(0x1bf)](_0x479834['params'])}}}},this[_0x4ae6b2(0x1f6)]);})),_0x13fc18[_0x1263a9(0x1e4)](_0x2ae7eb);})),this['_liveShareService'][_0xab8ca2(0x151)](this[_0xab8ca2(0x1f6)])[_0xab8ca2(0x1a1)](_0x170ec3=>this[_0xab8ca2(0x1ce)][_0xab8ca2(0x1cb)]({'eventID':_0x26e219[_0xab8ca2(0x16a)][_0xab8ca2(0x21e)],'data':{'unitID':this[_0xab8ca2(0x1f6)],'operations':{[_0x170ec3['id']]:{'id':_0x170ec3['id'],'params':JSON[_0xab8ca2(0x1bf)](_0x170ec3[_0xab8ca2(0x1d7)])}}}},this[_0xab8ca2(0x1f6)]));}[_0x3b89ea(0x18b)](){var _0x146766=_0x3b89ea,_0x38d07f;this[_0x146766(0x1fe)][_0x146766(0x1e4)]('idle'),(_0x38d07f=this[_0x146766(0x21b)])==null||_0x38d07f[_0x146766(0x16d)](),this[_0x146766(0x21b)]=null;}[_0x3b89ea(0x154)](){var _0x372dc6=_0x3b89ea,_0x4e96ae;(_0x4e96ae=this[_0x372dc6(0x21b)])==null||_0x4e96ae[_0x372dc6(0x16d)](),this[_0x372dc6(0x1fe)][_0x372dc6(0x1e4)]('following');}['_beIdle'](){var _0x37a65e=_0x3b89ea,_0x121269;this[_0x37a65e(0x1fe)][_0x37a65e(0x1e4)](_0x37a65e(0x1d1)),(_0x121269=this['_commandDisposable'])==null||_0x121269['dispose'](),this[_0x37a65e(0x21b)]=null;}['_stopFollowing'](){var _0x3982d3=_0x3b89ea,_0xb8b441;this[_0x3982d3(0x1fe)][_0x3982d3(0x1e4)](_0x3982d3(0x15e)),(_0xb8b441=this[_0x3982d3(0x21b)])==null||_0xb8b441[_0x3982d3(0x16d)]();}[_0x3b89ea(0x1a8)](_0x584e72){var _0x4629cf=_0x3b89ea;if([_0x4629cf(0x182),_0x4629cf(0x15e),_0x4629cf(0x1bc)][_0x4629cf(0x1c0)](this[_0x4629cf(0x19a)])||!_0x584e72['data'][_0x4629cf(0x219)]||_0x584e72[_0x4629cf(0x216)][_0x4629cf(0x219)]===this[_0x4629cf(0x1ce)][_0x4629cf(0x21d)]())return;this[_0x4629cf(0x19a)]===_0x4629cf(0x1d1)&&this[_0x4629cf(0x154)]();const _0x1d6f12=_0x584e72[_0x4629cf(0x216)][_0x4629cf(0x1b0)];Object[_0x4629cf(0x152)](_0x1d6f12)[_0x4629cf(0x1a1)](_0x578a8d=>{var _0x4cf83f=_0x4629cf;this[_0x4cf83f(0x1e6)][_0x4cf83f(0x1e9)](_0x578a8d['id'],_0x578a8d[_0x4cf83f(0x1d7)]?JSON[_0x4cf83f(0x1a9)](_0x578a8d[_0x4cf83f(0x1d7)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x5306c4=_0x3b89ea,_0x90028c;this[_0x5306c4(0x1fe)]['next'](_0x5306c4(0x1bc)),(_0x90028c=this[_0x5306c4(0x21b)])==null||_0x90028c[_0x5306c4(0x16d)]();}['_handleOnline'](){var _0x2be921=_0x3b89ea;this[_0x2be921(0x1fe)][_0x2be921(0x1e4)](_0x2be921(0x1d1)),this[_0x2be921(0x194)]();}},_0xa82ded[_0x3b89ea(0x1a5)]=_0x5b5a8e([_0x4a57ff(0x2,_0x2fd71c[_0x3b89ea(0x1b9)]),_0x4a57ff(0x3,_0x2fd71c[_0x3b89ea(0x161)](_0x34cf3a)),_0x4a57ff(0x4,_0x2fd71c[_0x3b89ea(0x1ec)])],_0xa82ded[_0x3b89ea(0x1a5)]);function _0x282901(){var _0x5989ca=_0x3b89ea;const _0x3723fe=_0x2783eb['useDependency'](_0xa82ded[_0x5989ca(0x1a7)]),_0x1bf751=_0x2783eb[_0x5989ca(0x163)](_0x2fd71c[_0x5989ca(0x1b2)]),_0x2ebf8c=_0x2783eb[_0x5989ca(0x1b6)](()=>_0x1bf751[_0x5989ca(0x239)](_0x2fd71c[_0x5989ca(0x18e)][_0x5989ca(0x1dd)]),void 0x0,!0x1,[]),[_0x34ff97,_0x1fb79a]=_0x2e8da4[_0x5989ca(0x1ea)](null),[_0xc15550,_0x1fd7c5]=_0x2e8da4[_0x5989ca(0x1ea)](_0x2e6497['IDLE']),_0x4ed568=_0x2e8da4[_0x5989ca(0x1f7)](null);return _0x2e8da4['useEffect'](()=>(_0x2ebf8c&&_0x3723fe[_0x5989ca(0x223)](_0x2ebf8c['getUnitId']())[_0x5989ca(0x172)](_0x3be5aa=>{var _0x2429c5=_0x5989ca;_0x1fb79a(_0x3be5aa),_0x4ed568['current']=_0x3be5aa[_0x2429c5(0x1b7)][_0x2429c5(0x218)](_0x299fd1=>{_0x1fd7c5(_0x299fd1);});}),()=>{var _0x42744f=_0x5989ca,_0x4f7069;(_0x4f7069=_0x4ed568['current'])==null||_0x4f7069['unsubscribe'](),_0x4ed568[_0x42744f(0x167)]=null;}),[_0x2ebf8c,_0x3723fe]),_0x34ff97?_0x19cebd[_0x5989ca(0x177)](_0x51f8cd['Dropdown'],{'align':_0x5989ca(0x211),'disabled':_0xc15550===_0x2e6497[_0x5989ca(0x170)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x19cebd[_0x5989ca(0x177)](_0x34595b,{'status':_0xc15550,'coordinator':_0x34ff97}),'children':_0x19cebd[_0x5989ca(0x177)](_0x5989ca(0x201),{'className':_0x51f8cd[_0x5989ca(0x15d)](_0x5989ca(0x1ca),{'univer-cursor-not-allowed':_0xc15550===_0x2e6497[_0x5989ca(0x170)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xc15550!==_0x2e6497[_0x5989ca(0x170)]}),'type':'button','children':_0x19cebd[_0x5989ca(0x177)](_0x5bef28,{'className':_0x5989ca(0x235)})})}):null;}function _0x34595b(_0xfe2bed){var _0x477fcc=_0x3b89ea;const {status:_0x39e56e,coordinator:_0x53423f}=_0xfe2bed;switch(_0x39e56e){case _0x2e6497[_0x477fcc(0x20d)]:return _0x19cebd[_0x477fcc(0x177)](_0x5cfa4d,{'coordinator':_0x53423f});case _0x2e6497[_0x477fcc(0x1f4)]:return _0x19cebd[_0x477fcc(0x177)](_0x209f5b,{'coordinator':_0x53423f});case _0x2e6497[_0x477fcc(0x23b)]:return _0x19cebd['jsx'](_0x3aacc1,{'coordinator':_0x53423f});case _0x2e6497[_0x477fcc(0x170)]:return _0x19cebd[_0x477fcc(0x177)](_0x3f3e3b,{});case _0x2e6497[_0x477fcc(0x1e8)]:return _0x19cebd[_0x477fcc(0x177)](_0x3143f3,{'coordinator':_0x53423f});default:return null;}}function _0x5cfa4d(_0x1fc838){var _0x13462f=_0x3b89ea;const {coordinator:_0x277092}=_0x1fc838;return _0x19cebd['jsxs'](_0x19cebd[_0x13462f(0x1f8)],{'children':[_0x19cebd[_0x13462f(0x177)](_0x13462f(0x1d4),{'className':_0x13462f(0x205),'children':_0x13462f(0x191)}),_0x19cebd[_0x13462f(0x177)](_0x51f8cd[_0x13462f(0x195)],{'onClick':()=>_0x277092[_0x13462f(0x18a)](),'children':'Start'})]});}function _0x209f5b(_0x522fe3){var _0x33c2f4=_0x3b89ea;const {coordinator:_0x29b480}=_0x522fe3;return _0x19cebd[_0x33c2f4(0x210)](_0x19cebd['Fragment'],{'children':[_0x19cebd[_0x33c2f4(0x177)](_0x33c2f4(0x1d4),{'className':_0x33c2f4(0x205),'children':_0x33c2f4(0x1e2)}),_0x19cebd[_0x33c2f4(0x177)](_0x51f8cd[_0x33c2f4(0x195)],{'onClick':()=>_0x29b480[_0x33c2f4(0x15c)](),'children':'Stop\x20following'})]});}function _0x3aacc1(_0x4702cc){var _0x5513ae=_0x3b89ea;const {coordinator:_0x5be534}=_0x4702cc;return _0x19cebd[_0x5513ae(0x210)](_0x19cebd[_0x5513ae(0x1f8)],{'children':[_0x19cebd[_0x5513ae(0x177)]('div',{'className':_0x5513ae(0x205),'children':_0x5513ae(0x1bb)}),_0x19cebd[_0x5513ae(0x177)](_0x51f8cd[_0x5513ae(0x195)],{'variant':'text','onClick':()=>_0x5be534['startFollowing'](),'children':_0x5513ae(0x231)})]});}function _0x3143f3(_0x1dd1cf){var _0x1f32d1=_0x3b89ea;const {coordinator:_0x43c69b}=_0x1dd1cf;return _0x19cebd[_0x1f32d1(0x210)](_0x19cebd[_0x1f32d1(0x1f8)],{'children':[_0x19cebd[_0x1f32d1(0x177)](_0x1f32d1(0x1d4),{'className':_0x1f32d1(0x205),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x19cebd[_0x1f32d1(0x177)](_0x51f8cd['Button'],{'variant':'default','onClick':()=>_0x43c69b['stopPresenting'](),'children':_0x1f32d1(0x196)})]});}function _0x3f3e3b(){var _0xebed1d=_0x3b89ea;return _0x19cebd[_0xebed1d(0x177)](_0x19cebd['Fragment'],{'children':_0xebed1d(0x183)});}var _0x137744=Object[_0x3b89ea(0x165)],_0x60774e=(_0x553cda,_0x33ff4e,_0x355320,_0x28bf56)=>{var _0x3ae618=_0x3b89ea;for(var _0x488b4c=_0x28bf56>0x1?void 0x0:_0x28bf56?_0x137744(_0x33ff4e,_0x355320):_0x33ff4e,_0x293058=_0x553cda[_0x3ae618(0x1ab)]-0x1,_0x377333;_0x293058>=0x0;_0x293058--)(_0x377333=_0x553cda[_0x293058])&&(_0x488b4c=_0x377333(_0x488b4c)||_0x488b4c);return _0x488b4c;},_0x4ecf30=(_0x4a2e57,_0x3e7ea1)=>(_0x57b036,_0x4bca23)=>_0x3e7ea1(_0x57b036,_0x4bca23,_0x4a2e57);_0xa82ded[_0x3b89ea(0x21a)]=class extends _0x2fd71c[_0x3b89ea(0x21f)]{constructor(_0x199369,_0x26daf9){var _0x15e0dc=_0x3b89ea;super(),this[_0x15e0dc(0x1cf)]=_0x199369,this[_0x15e0dc(0x1ee)]=_0x26daf9,this['_mountLiveShare']();}[_0x3b89ea(0x1de)](){var _0x4c5a28=_0x3b89ea;this[_0x4c5a28(0x15f)](this[_0x4c5a28(0x1ee)]['registerComponent'](_0x2783eb[_0x4c5a28(0x21c)][_0x4c5a28(0x1c8)],()=>_0x2783eb[_0x4c5a28(0x1c5)](_0x282901,this[_0x4c5a28(0x1cf)])));}},_0xa82ded[_0x3b89ea(0x21a)]=_0x60774e([_0x4ecf30(0x0,_0x2fd71c[_0x3b89ea(0x161)](_0x2fd71c[_0x3b89ea(0x225)])),_0x4ecf30(0x1,_0x2783eb['IUIPartsService'])],_0xa82ded['DesktopLiveShareController']);var _0x54cb03=Object['defineProperty'],_0x268ce2=Object[_0x3b89ea(0x165)],_0x5765ef=(_0x30064a,_0x4fe00d,_0x522873)=>_0x4fe00d in _0x30064a?_0x54cb03(_0x30064a,_0x4fe00d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x522873}):_0x30064a[_0x4fe00d]=_0x522873,_0x36bdc2=(_0x4be949,_0x1282c4,_0x31cee7,_0x47b7f4)=>{var _0x1bb943=_0x3b89ea;for(var _0x2b3204=_0x47b7f4>0x1?void 0x0:_0x47b7f4?_0x268ce2(_0x1282c4,_0x31cee7):_0x1282c4,_0x366f64=_0x4be949[_0x1bb943(0x1ab)]-0x1,_0x4e56b4;_0x366f64>=0x0;_0x366f64--)(_0x4e56b4=_0x4be949[_0x366f64])&&(_0x2b3204=_0x4e56b4(_0x2b3204)||_0x2b3204);return _0x2b3204;},_0x38dedc=(_0x1feea7,_0x35e798)=>(_0x38a9d9,_0x482e44)=>_0x35e798(_0x38a9d9,_0x482e44,_0x1feea7),_0x56b4f0=(_0xb16b48,_0x5400ba,_0xd90505)=>_0x5765ef(_0xb16b48,typeof _0x5400ba!=_0x3b89ea(0x16c)?_0x5400ba+'':_0x5400ba,_0xd90505);const _0x4d715f=_0x3b89ea(0x176);_0xa82ded['UniverLiveSharePlugin']=class extends _0x2fd71c['Plugin']{constructor(_0x28fbd5=_0xfa6177,_0x576157,_0xd9a762){var _0x2a717=_0x3b89ea;super(),this[_0x2a717(0x164)]=_0x28fbd5,this['_injector']=_0x576157,this[_0x2a717(0x221)]=_0xd9a762;const {..._0x25f900}=_0x2fd71c[_0x2a717(0x1c9)]({},_0xfa6177,this['_config']);this[_0x2a717(0x221)][_0x2a717(0x1f5)](_0x27a7e7,_0x25f900);}[_0x3b89ea(0x1d6)](){var _0x1a4f5e=_0x3b89ea;_0x2fd71c[_0x1a4f5e(0x15a)](this[_0x1a4f5e(0x1cf)],_0x2fd71c[_0x1a4f5e(0x1e5)]([[_0x34cf3a],[_0xa82ded[_0x1a4f5e(0x1a7)]],[_0x165f02],[_0xa82ded[_0x1a4f5e(0x21a)]]],this[_0x1a4f5e(0x164)]['override'])),_0x2fd71c['touchDependencies'](this['_injector'],[[_0x165f02]]);}[_0x3b89ea(0x175)](){var _0x41282d=_0x3b89ea;_0x2fd71c['touchDependencies'](this[_0x41282d(0x1cf)],[[_0xa82ded['DesktopLiveShareController']]]);}},_0x56b4f0(_0xa82ded['UniverLiveSharePlugin'],_0x3b89ea(0x203),_0x2fd71c['UniverInstanceType']['UNIVER_UNKNOWN']),_0x56b4f0(_0xa82ded['UniverLiveSharePlugin'],_0x3b89ea(0x186),_0x4d715f),_0xa82ded[_0x3b89ea(0x213)]=_0x36bdc2([_0x2fd71c[_0x3b89ea(0x1da)](_0x3d9541[_0x3b89ea(0x22e)]),_0x38dedc(0x1,_0x2fd71c['Inject'](_0x2fd71c[_0x3b89ea(0x225)])),_0x38dedc(0x2,_0x2fd71c[_0x3b89ea(0x1b9)])],_0xa82ded[_0x3b89ea(0x213)]),_0xa82ded['LiveShare']=_0x282901,_0xa82ded[_0x3b89ea(0x19f)]=_0x34cf3a,_0xa82ded[_0x3b89ea(0x204)]=_0x2e6497,Object[_0x3b89ea(0x1d0)](_0xa82ded,Symbol[_0x3b89ea(0x1fc)],{'value':_0x3b89ea(0x171)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.3",
3
+ "version": "0.9.1-nightly.202507041607",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,13 +47,13 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.4",
50
- "@univerjs-pro/collaboration": "0.8.3",
51
- "@univerjs/core": "0.8.3",
52
- "@univerjs-pro/collaboration-client": "0.8.3",
53
- "@univerjs/design": "0.8.3",
54
- "@univerjs/sheets": "0.8.3",
55
- "@univerjs/ui": "0.8.3",
56
- "@univerjs/sheets-ui": "0.8.3"
50
+ "@univerjs-pro/collaboration": "0.9.1-nightly.202507041607",
51
+ "@univerjs-pro/collaboration-client": "0.9.1-nightly.202507041607",
52
+ "@univerjs/core": "0.9.1-nightly.202507041607",
53
+ "@univerjs/sheets": "0.9.1-nightly.202507041607",
54
+ "@univerjs/design": "0.9.1-nightly.202507041607",
55
+ "@univerjs/sheets-ui": "0.9.1-nightly.202507041607",
56
+ "@univerjs/ui": "0.9.1-nightly.202507041607"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",
@@ -63,7 +63,7 @@
63
63
  "typescript": "^5.8.3",
64
64
  "vite": "^6.3.5",
65
65
  "vitest": "^3.2.4",
66
- "@univerjs-infra/shared": "0.8.3",
66
+ "@univerjs-infra/shared": "0.9.1",
67
67
  "@univerjs/protocol": "0.1.47-alpha.0"
68
68
  },
69
69
  "scripts": {