@univerjs-pro/live-share 0.8.2-nightly.202506201607 → 0.8.2-nightly.202506221606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x1745ea=_0x3e4a;(function(_0x1d94cf,_0x66ed29){var _0x28fa40=_0x3e4a,_0x314ded=_0x1d94cf();while(!![]){try{var _0x4b9800=parseInt(_0x28fa40(0x1b0))/0x1+-parseInt(_0x28fa40(0x18c))/0x2*(parseInt(_0x28fa40(0x1c5))/0x3)+parseInt(_0x28fa40(0x1b3))/0x4*(-parseInt(_0x28fa40(0x1ab))/0x5)+-parseInt(_0x28fa40(0x153))/0x6*(-parseInt(_0x28fa40(0x116))/0x7)+-parseInt(_0x28fa40(0x178))/0x8*(-parseInt(_0x28fa40(0x11f))/0x9)+-parseInt(_0x28fa40(0x114))/0xa*(parseInt(_0x28fa40(0xf2))/0xb)+parseInt(_0x28fa40(0x17f))/0xc;if(_0x4b9800===_0x66ed29)break;else _0x314ded['push'](_0x314ded['shift']());}catch(_0xc2292c){_0x314ded['push'](_0x314ded['shift']());}}}(_0x2f07,0x46331));var U=Object[_0x1745ea(0xfd)],F=(_0x1ef594,_0x43c89a,_0x562878)=>_0x43c89a in _0x1ef594?U(_0x1ef594,_0x43c89a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x562878}):_0x1ef594[_0x43c89a]=_0x562878,v=(_0x3e93fa,_0x414665,_0x4db13d)=>F(_0x3e93fa,typeof _0x414665!='symbol'?_0x414665+'':_0x414665,_0x4db13d);Object[_0x1745ea(0xfd)](exports,Symbol[_0x1745ea(0x1a4)],{'value':_0x1745ea(0x162)});const m=require(_0x1745ea(0x15d)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require(_0x1745ea(0x15a)),l=require(_0x1745ea(0x133)),g=require(_0x1745ea(0x187)),f=require('react'),_=require(_0x1745ea(0x161)),D=require(_0x1745ea(0xed)),b=require(_0x1745ea(0x1a5)),$='live-share.config',x={};class O extends o['Disposable']{constructor(){var _0x92f837=_0x1745ea;super(...arguments),v(this,_0x92f837(0xea),new Set()),v(this,_0x92f837(0xfa),new Set());}['registerSharedOperation'](_0x4b1af3){var _0x3cc8e5=_0x1745ea;return this[_0x3cc8e5(0xea)][_0x3cc8e5(0x147)](_0x4b1af3),o[_0x3cc8e5(0x12d)](()=>this[_0x3cc8e5(0xea)][_0x3cc8e5(0x167)](_0x4b1af3));}['registerInitialStateReporter'](_0x3a566b){var _0x4c217c=_0x1745ea;return this[_0x4c217c(0xfa)]['add'](_0x3a566b),o[_0x4c217c(0x12d)](()=>this[_0x4c217c(0xfa)][_0x4c217c(0x167)](_0x3a566b));}[_0x1745ea(0x131)](_0x1b24a8){var _0x3d7522=_0x1745ea;return this[_0x3d7522(0xea)]['has'](_0x1b24a8);}[_0x1745ea(0x143)](_0x380321){var _0x52a4aa=_0x1745ea;return Array['from'](this[_0x52a4aa(0xfa)])[_0x52a4aa(0x142)](_0x5bec60=>_0x5bec60(_0x380321));}}var H=Object[_0x1745ea(0xff)],V=(_0x33eec6,_0x55fc19,_0x265e08,_0x378b6d)=>{var _0x231c01=_0x1745ea;for(var _0x51fd30=_0x378b6d>0x1?void 0x0:_0x378b6d?H(_0x55fc19,_0x265e08):_0x55fc19,_0x2e7456=_0x33eec6[_0x231c01(0xf7)]-0x1,_0x3a81b0;_0x2e7456>=0x0;_0x2e7456--)(_0x3a81b0=_0x33eec6[_0x2e7456])&&(_0x51fd30=_0x3a81b0(_0x51fd30)||_0x51fd30);return _0x51fd30;},k=(_0x1135eb,_0x2397a9)=>(_0x2b886b,_0x2b8abf)=>_0x2397a9(_0x2b886b,_0x2b8abf,_0x1135eb);let E=class extends o[_0x1745ea(0x126)]{constructor(_0x186e89){var _0x3aa1ef=_0x1745ea;super(),this['_liveShareService']=_0x186e89,this[_0x3aa1ef(0x1af)]();}[_0x1745ea(0x1af)](){var _0x5d3087=_0x1745ea;[w['SetZoomRatioOperation']['id'],w[_0x5d3087(0x1c6)]['id'],C[_0x5d3087(0x15c)]['id']][_0x5d3087(0x170)](_0x234ec9=>{var _0x48b5eb=_0x5d3087;this['disposeWithMe'](this[_0x48b5eb(0x106)][_0x48b5eb(0x1bd)](_0x234ec9));});}};E=V([k(0x0,o[_0x1745ea(0x10b)](O))],E);var u=function(){var _0x2af862=_0x1745ea;return u=Object[_0x2af862(0x137)]||function(_0x3bbfcc){var _0x4922d4=_0x2af862;for(var _0x3fdb5b,_0x101bd0=0x1,_0x2948cb=arguments['length'];_0x101bd0<_0x2948cb;_0x101bd0++){_0x3fdb5b=arguments[_0x101bd0];for(var _0x443785 in _0x3fdb5b)Object[_0x4922d4(0x19c)][_0x4922d4(0x13e)][_0x4922d4(0x193)](_0x3fdb5b,_0x443785)&&(_0x3bbfcc[_0x443785]=_0x3fdb5b[_0x443785]);}return _0x3bbfcc;},u[_0x2af862(0x163)](this,arguments);},M=function(_0x31b6ba,_0x5998dd){var _0x15efa2=_0x1745ea,_0x500fcb={};for(var _0x496d91 in _0x31b6ba)Object[_0x15efa2(0x19c)][_0x15efa2(0x13e)][_0x15efa2(0x193)](_0x31b6ba,_0x496d91)&&_0x5998dd[_0x15efa2(0x1a8)](_0x496d91)<0x0&&(_0x500fcb[_0x496d91]=_0x31b6ba[_0x496d91]);if(_0x31b6ba!=null&&typeof Object[_0x15efa2(0xe5)]==_0x15efa2(0x12e)){for(var _0x2cea16=0x0,_0x496d91=Object[_0x15efa2(0xe5)](_0x31b6ba);_0x2cea16<_0x496d91['length'];_0x2cea16++)_0x5998dd['indexOf'](_0x496d91[_0x2cea16])<0x0&&Object[_0x15efa2(0x19c)][_0x15efa2(0xf0)]['call'](_0x31b6ba,_0x496d91[_0x2cea16])&&(_0x500fcb[_0x496d91[_0x2cea16]]=_0x31b6ba[_0x496d91[_0x2cea16]]);}return _0x500fcb;},j=f[_0x1745ea(0x1b5)](function(_0x2646db,_0x39db70){var _0x28a3de=_0x1745ea,_0xe0d3de=_0x2646db[_0x28a3de(0x17c)],_0xeeaeb2=_0x2646db['id'],_0x364dbb=_0x2646db['className'],_0x3c5147=_0x2646db[_0x28a3de(0x1c2)],_0x4bbfdf=M(_0x2646db,['icon','id',_0x28a3de(0x132),_0x28a3de(0x1c2)]),_0x2e6ac2='univerjs-icon\x20univerjs-icon-'[_0x28a3de(0x10e)](_0xeeaeb2,'\x20')[_0x28a3de(0x10e)](_0x364dbb||'')[_0x28a3de(0xee)](),_0x59f0d9=f[_0x28a3de(0x181)]('_'['concat'](G()));return y(_0xe0d3de,''['concat'](_0xeeaeb2),{'defIds':_0xe0d3de['defIds'],'idSuffix':_0x59f0d9['current']},u({'ref':_0x39db70,'className':_0x2e6ac2},_0x4bbfdf),_0x3c5147);});function y(_0x590de5,_0x35b995,_0xbf2330,_0x58dbf9,_0xf31419){var _0x11afa4=_0x1745ea;return f[_0x11afa4(0x19d)](_0x590de5[_0x11afa4(0x1a9)],u(u({'key':_0x35b995},q(_0x590de5,_0xbf2330,_0xf31419)),_0x58dbf9),(W(_0x590de5,_0xbf2330)[_0x11afa4(0x100)]||[])[_0x11afa4(0x142)](function(_0x80cf91,_0x32b271){var _0x431b42=_0x11afa4;return y(_0x80cf91,''['concat'](_0x35b995,'-')[_0x431b42(0x10e)](_0x590de5[_0x431b42(0x1a9)],'-')['concat'](_0x32b271),_0xbf2330,void 0x0,_0xf31419);}));}function q(_0x6c396e,_0x56dbdc,_0x5c080d){var _0x166e84=_0x1745ea,_0x46aa12=u({},_0x6c396e[_0x166e84(0x164)]);_0x5c080d!=null&&_0x5c080d[_0x166e84(0x13a)]&&_0x46aa12[_0x166e84(0x124)]==='colorChannel1'&&(_0x46aa12[_0x166e84(0x124)]=_0x5c080d[_0x166e84(0x13a)]),_0x6c396e[_0x166e84(0x1a9)]===_0x166e84(0x10d)&&_0x46aa12['id']&&(_0x46aa12['id']=_0x46aa12['id']+_0x56dbdc[_0x166e84(0x102)]),Object[_0x166e84(0x138)](_0x46aa12)['forEach'](function(_0x41df30){var _0x433a12=_0x166e84,_0x3427a5=_0x41df30[0x0],_0x2d5991=_0x41df30[0x1];_0x3427a5==='mask'&&typeof _0x2d5991==_0x433a12(0x10f)&&(_0x46aa12[_0x3427a5]=_0x2d5991[_0x433a12(0x104)](/url\(#(.*)\)/,_0x433a12(0x1aa)[_0x433a12(0x10e)](_0x56dbdc[_0x433a12(0x102)],')')));});var _0x54ade5=_0x56dbdc[_0x166e84(0x19b)];return!_0x54ade5||_0x54ade5[_0x166e84(0xf7)]===0x0||(_0x6c396e[_0x166e84(0x1a9)]===_0x166e84(0x108)&&_0x46aa12[_0x166e84(0x10c)]&&(_0x46aa12['xlink:href']=_0x46aa12[_0x166e84(0x10c)]+_0x56dbdc['idSuffix']),Object[_0x166e84(0x138)](_0x46aa12)[_0x166e84(0x170)](function(_0x51d086){var _0x19508a=_0x166e84,_0x465000=_0x51d086[0x0],_0x43f259=_0x51d086[0x1];typeof _0x43f259==_0x19508a(0x10f)&&(_0x46aa12[_0x465000]=_0x43f259[_0x19508a(0x104)](/url\(#(.*)\)/,'url(#$1'[_0x19508a(0x10e)](_0x56dbdc[_0x19508a(0x102)],')')));})),_0x46aa12;}function W(_0x1eb6f2,_0x572249){var _0x41e04b=_0x1745ea,_0x145e4c,_0x14dda3=_0x572249[_0x41e04b(0x19b)];return!_0x14dda3||_0x14dda3['length']===0x0?_0x1eb6f2:_0x1eb6f2['tag']===_0x41e04b(0x17e)&&(!((_0x145e4c=_0x1eb6f2['children'])===null||_0x145e4c===void 0x0)&&_0x145e4c['length'])?u(u({},_0x1eb6f2),{'children':_0x1eb6f2[_0x41e04b(0x100)][_0x41e04b(0x142)](function(_0x4a8529){var _0x2f260f=_0x41e04b;return typeof _0x4a8529[_0x2f260f(0x164)]['id']==_0x2f260f(0x10f)&&_0x14dda3&&_0x14dda3['includes'](_0x4a8529[_0x2f260f(0x164)]['id'])?u(u({},_0x4a8529),{'attrs':u(u({},_0x4a8529[_0x2f260f(0x164)]),{'id':_0x4a8529[_0x2f260f(0x164)]['id']+_0x572249[_0x2f260f(0x102)]})}):_0x4a8529;})}):_0x1eb6f2;}function G(){var _0xa9d524=_0x1745ea;return Math['random']()[_0xa9d524(0x1a1)](0x24)['substring'](0x2,0x8);}j[_0x1745ea(0xe7)]=_0x1745ea(0x11c);var B={'tag':'svg','attrs':{'xmlns':_0x1745ea(0x127),'fill':_0x1745ea(0x184),'viewBox':'0\x200\x2017\x2017','width':_0x1745ea(0x1c7),'height':_0x1745ea(0x1c7)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x1745ea(0x103)}},{'tag':_0x1745ea(0x16b),'attrs':{'fill':_0x1745ea(0x195),'d':_0x1745ea(0x144),'fillRule':'evenodd','clipRule':_0x1745ea(0x1bb)}}]},P=f[_0x1745ea(0x1b5)](function(_0x27debe,_0x285aed){var _0x5465a2=_0x1745ea;return f[_0x5465a2(0x19d)](j,Object[_0x5465a2(0x137)]({},_0x27debe,{'id':'live-share-icon','ref':_0x285aed,'icon':B}));});function _0x2f07(){var _0x3873bf=['getOwnPropertyDescriptor','children','button','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','replace','_configService','_liveShareService','get','use','LIVESHARE_OPERATION','onRendered','Inject','xlink:href','mask','concat','string','_entities','presenting','getUnitId','parse','105380jWYLVU','_beIdle','22918bCcQeV','IDLE','_collabSessionService','PRESENTING','_status$','_injector','UniverIcon','IUIPartsService','UniverInstanceType','801qWSNZu','next','LiveShareService','dispose','You\x27re\x20presenting\x20the\x20document','fill','_uiPartsService','Disposable','http://www.w3.org/2000/svg','unitId','idle','NOT_FOLLOWING','useState','Dropdown','toDisposable','function','DependentOn','_handleNewChangeSets','shouldShareOperation','className','react/jsx-runtime','touchDependencies','_stopFollowing','throttleTime','assign','entries','UNIVER_UNKNOWN','colorChannel1','jsxs','IConfigService','getLiveShareCoordinator','hasOwnProperty','parseProtocolChangeset','useDependency','pluginName','map','getInitialStates','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','You\x27are\x20offline.','_stopPresenting','add','symbol','registerComponent','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','mergeOverrideWithDependencies','sheet','startFollowing','LIVESHARE_REQUEST_HOST','univer-size-4','BehaviorSubject','LIVESHARE_FETCH_OPERATIONS','getTypeOfUnitDisposed$','654UCSgPq','stopFollowing','then','LiveShareStatus','_fetchOperations','LIVESHARE_NEW_HOST','mutations','@univerjs/ui','text','SetWorksheetActiveOperation','@univerjs-pro/collaboration-client','LIVESHARE_TERMINATE','status$','OFFLINE','@univerjs-pro/collaboration','Module','apply','attrs','Fragment','requireSession','delete','_status','DesktopLiveShareController','reverse','path','override','Stop\x20presenting','Present\x20this\x20document','_commandService','forEach','set','UniverLiveSharePlugin','UNIVER_SHEET','_collabSession','setConfig','disposeWithMe','div','15160HoEbqz','CollaborationSessionService','DisposableCollection','has','icon','pipe','defs','10673208nmjBck','IUniverInstanceService','useRef','useEffect','following','none','data','Subject','@univerjs/design','OPERATION','end','_commandDisposable','offline','6mYdkoB','HEADER_MENU','SessionStatus','event$','current','jsx','sessionStatus$','call','complete','currentColor','_univerInstanceService','connectInjector','params','SAME_OPERATION_SHARE_INTERVAL','stopPresenting','defIds','prototype','createElement','dispose$','LiveShare','_mountLiveShare','toString','_startLiveShareCoordinator','_handleOnline','toStringTag','rxjs/operators','_presenter','LiveShareCoordinator','indexOf','tag','url(#$1','5NuQGIV','_handleTerminate','getMemberID','_handleNewHost','_init','260032LuDzSO','presenter','memberID','1209524SCuaid','values','forwardRef','univer-mb-3\x20univer-w-full\x20univer-text-sm','operations','getTypeOfUnitAdded$','getCurrentTypeOfUnit$','not-following','evenodd','_config','registerSharedOperation','_startPresenting','FOLLOWING','_handleOffline','takeUntil','extend','Plugin','getConfig','568707lygAio','SetScrollOperation','1em','CollaborationEvent','registerDependencies','tryStartPresenting','getOwnPropertySymbols','clear','displayName','ONLINE','send','_sharedOperations','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','NEW_CHANGESETS','rxjs','trim','onStarting','propertyIsEnumerable','executeCommand','539dutDGb','Injector','merge','Button','_handleOperation','length','LiveShareController','subscribe','_reporters','_unitID','_startFollowing','defineProperty','init'];_0x2f07=function(){return _0x3873bf;};return _0x2f07();}P['displayName']='LiveShareIcon';var Y=Object['getOwnPropertyDescriptor'],R=(_0x1345ed,_0x50c601,_0x427de8,_0x5bb437)=>{var _0x3125f5=_0x1745ea;for(var _0x387e73=_0x5bb437>0x1?void 0x0:_0x5bb437?Y(_0x50c601,_0x427de8):_0x50c601,_0x3a97ec=_0x1345ed[_0x3125f5(0xf7)]-0x1,_0x4f02cd;_0x3a97ec>=0x0;_0x3a97ec--)(_0x4f02cd=_0x1345ed[_0x3a97ec])&&(_0x387e73=_0x4f02cd(_0x387e73)||_0x387e73);return _0x387e73;},S=(_0x558e89,_0x286df2)=>(_0x54666b,_0xbbbfec)=>_0x286df2(_0x54666b,_0xbbbfec,_0x558e89);exports[_0x1745ea(0xf8)]=class extends o['RxDisposable']{constructor(_0x479eab,_0x5c045,_0x422dd0){var _0x53500f=_0x1745ea;super(),v(this,'_entities',new Map()),(this[_0x53500f(0x196)]=_0x479eab,this[_0x53500f(0x11b)]=_0x5c045,this[_0x53500f(0x118)]=_0x422dd0,this[_0x53500f(0x1af)]());}async['getLiveShareCoordinator'](_0x1dd0e3){var _0x584779=_0x1745ea;return this[_0x584779(0x110)][_0x584779(0x17b)](_0x1dd0e3)||await this[_0x584779(0x1a2)](_0x1dd0e3),this[_0x584779(0x110)][_0x584779(0x107)](_0x1dd0e3);}[_0x1745ea(0x1af)](){var _0x96d7c4=_0x1745ea;this[_0x96d7c4(0x196)][_0x96d7c4(0x1b8)](o[_0x96d7c4(0x11e)]['UNIVER_SHEET'])[_0x96d7c4(0x17d)](b[_0x96d7c4(0x1c1)](this[_0x96d7c4(0x19e)]))[_0x96d7c4(0xf9)](async _0x258510=>{var _0xd785cc=_0x96d7c4;const _0x3ca350=_0x258510[_0xd785cc(0x112)]();this['_entities'][_0xd785cc(0x17b)](_0x3ca350)||this[_0xd785cc(0x1a2)](_0x3ca350);}),this[_0x96d7c4(0x196)][_0x96d7c4(0x152)](o['UniverInstanceType'][_0x96d7c4(0x173)])[_0x96d7c4(0x17d)](b[_0x96d7c4(0x1c1)](this['dispose$']))['subscribe'](_0x6518a5=>{var _0x333522=_0x96d7c4;const _0x26ca45=_0x6518a5['getUnitId'](),_0x35976c=this[_0x333522(0x110)][_0x333522(0x107)](_0x26ca45);_0x35976c==null||_0x35976c[_0x333522(0x122)]();});}async[_0x1745ea(0x1a2)](_0xf8b1c7){var _0x2296bc=_0x1745ea;const _0x146a13=await this[_0x2296bc(0x118)][_0x2296bc(0x166)](_0xf8b1c7),_0x4d80d0=this[_0x2296bc(0x11b)]['createInstance'](exports[_0x2296bc(0x1a7)],_0xf8b1c7,_0x146a13);return _0x4d80d0[_0x2296bc(0xfe)](),this['_entities']['set'](_0xf8b1c7,_0x4d80d0),_0x4d80d0;}},exports['LiveShareController']=R([S(0x0,o[_0x1745ea(0x180)]),S(0x1,o[_0x1745ea(0x10b)](o['Injector'])),S(0x2,o['Inject'](m[_0x1745ea(0x179)]))],exports['LiveShareController']);var h=(_0x48ef4f=>(_0x48ef4f[_0x1745ea(0x160)]='offline',_0x48ef4f[_0x1745ea(0x117)]=_0x1745ea(0x129),_0x48ef4f[_0x1745ea(0x1bf)]=_0x1745ea(0x183),_0x48ef4f[_0x1745ea(0x12a)]=_0x1745ea(0x1ba),_0x48ef4f[_0x1745ea(0x119)]=_0x1745ea(0x111),_0x48ef4f))(h||{});const Z=_0x1745ea(0x199),J=0xc8;exports[_0x1745ea(0x1a7)]=class extends o['RxDisposable']{constructor(_0x49e843,_0x270f0d,_0x265f01,_0x49b1bf,_0x596fe1){var _0x3dae3b=_0x1745ea;super(),v(this,'_status$',new D[(_0x3dae3b(0x150))](_0x3dae3b(0x129))),v(this,_0x3dae3b(0x15f),this[_0x3dae3b(0x11a)]['asObservable']()),v(this,_0x3dae3b(0x1af),!0x1),v(this,_0x3dae3b(0x18a),null),v(this,_0x3dae3b(0x1a6),null),(this[_0x3dae3b(0xfb)]=_0x49e843,this[_0x3dae3b(0x174)]=_0x270f0d,this[_0x3dae3b(0x105)]=_0x265f01,this[_0x3dae3b(0x106)]=_0x49b1bf,this[_0x3dae3b(0x16f)]=_0x596fe1);}get['_status'](){return this['_status$']['getValue']();}['dispose'](){var _0x37f8f3=_0x1745ea,_0x135e3c;(_0x135e3c=this[_0x37f8f3(0x18a)])==null||_0x135e3c[_0x37f8f3(0x122)](),this[_0x37f8f3(0x11a)]['next']('idle'),this[_0x37f8f3(0x11a)][_0x37f8f3(0x194)]();}[_0x1745ea(0xfe)](){var _0x2d2765=_0x1745ea;this[_0x2d2765(0x1af)]||(this['_init']=!0x0,this[_0x2d2765(0x174)][_0x2d2765(0x192)][_0x2d2765(0x17d)](b[_0x2d2765(0x1c1)](this[_0x2d2765(0x19e)]))[_0x2d2765(0xf9)](_0x1c2a7d=>{var _0x416bb1=_0x2d2765;switch(_0x1c2a7d){case m['SessionStatus'][_0x416bb1(0x160)]:this[_0x416bb1(0x1c0)]();break;case m[_0x416bb1(0x18e)][_0x416bb1(0xe8)]:this['_handleOnline']();break;}}),this[_0x2d2765(0x174)][_0x2d2765(0x18f)][_0x2d2765(0x17d)](b[_0x2d2765(0x1c1)](this[_0x2d2765(0x19e)]))[_0x2d2765(0xf9)](_0x584ea0=>{var _0x4df24c=_0x2d2765;const {eventID:_0x4bdc98}=_0x584ea0;switch(_0x4bdc98){case _[_0x4df24c(0xe2)][_0x4df24c(0x158)]:this[_0x4df24c(0x1ae)](_0x584ea0);break;case _[_0x4df24c(0xe2)][_0x4df24c(0x109)]:this['_handleOperation'](_0x584ea0);break;case _['CollaborationEvent'][_0x4df24c(0x15e)]:this[_0x4df24c(0x1ac)]();break;case _['CollaborationEvent'][_0x4df24c(0xec)]:this[_0x4df24c(0x130)](_0x584ea0);break;}}));}[_0x1745ea(0xe4)](){var _0x3f23a9=_0x1745ea;this[_0x3f23a9(0x174)][_0x3f23a9(0xe9)]({'eventID':_[_0x3f23a9(0xe2)][_0x3f23a9(0x14e)],'data':{'unitID':this['_unitID'],'userID':this[_0x3f23a9(0x174)][_0x3f23a9(0x1ad)]()}},this[_0x3f23a9(0xfb)]);}[_0x1745ea(0x19a)](){var _0x27ab05=_0x1745ea;this[_0x27ab05(0x168)]===_0x27ab05(0x111)&&(this[_0x27ab05(0x11a)][_0x27ab05(0x120)](_0x27ab05(0x129)),this[_0x27ab05(0x174)][_0x27ab05(0xe9)]({'eventID':_[_0x27ab05(0xe2)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x27ab05(0xfb)]}},this[_0x27ab05(0xfb)]));}[_0x1745ea(0x14d)](){var _0x430a11=_0x1745ea;this[_0x430a11(0x168)]===_0x430a11(0x1ba)&&(this[_0x430a11(0x11a)]['next'](_0x430a11(0x183)),this[_0x430a11(0xfc)]());}[_0x1745ea(0x154)](){var _0x539088=_0x1745ea;this[_0x539088(0x168)]===_0x539088(0x183)&&this[_0x539088(0x135)]();}['_handleNewHost'](_0x5201fc){var _0x48198a=_0x1745ea;const {presenter:_0x27daac}=_0x5201fc[_0x48198a(0x185)],_0x21103c=this['_collabSession'][_0x48198a(0x1ad)]();this[_0x48198a(0x1a6)]=_0x27daac,_0x27daac===_0x21103c?(this['_stopFollowing'](),this[_0x48198a(0x1be)]()):this[_0x48198a(0x168)]!==_0x48198a(0x1ba)&&(this[_0x48198a(0x146)](),this['_startFollowing']());}[_0x1745ea(0x157)](){var _0x994074=_0x1745ea;const _0x5edcd7={'eventID':_['CollaborationEvent'][_0x994074(0x151)]};this[_0x994074(0x174)][_0x994074(0xe9)](_0x5edcd7,this[_0x994074(0xfb)]);}[_0x1745ea(0x1ac)](){var _0x33175a=_0x1745ea;this['_presenter']=null,this['_status']!==_0x33175a(0x111)&&this[_0x33175a(0x115)]();}[_0x1745ea(0x130)](_0x4028da){var _0x5bc936=_0x1745ea;if(this[_0x5bc936(0x168)]===_0x5bc936(0x183)&&this[_0x5bc936(0x1a6)]===_0x4028da[_0x5bc936(0x185)][_0x5bc936(0x1b2)]){const _0x3f34e8=_[_0x5bc936(0x13f)](_0x4028da[_0x5bc936(0x185)])[_0x5bc936(0x159)][_0x5bc936(0x16a)]()['find'](_0x4fea97=>_0x4fea97['id']===C['InsertSheetMutation']['id']);if(_0x3f34e8){const _0x372e8c=_0x3f34e8[_0x5bc936(0x198)][_0x5bc936(0x128)],_0x5b1c9c=_0x3f34e8[_0x5bc936(0x198)][_0x5bc936(0x14c)]['id'];setTimeout(()=>{var _0x36c8b2=_0x5bc936;this['_commandService'][_0x36c8b2(0xf1)](C[_0x36c8b2(0x15c)]['id'],{'unitId':_0x372e8c,'subUnitId':_0x5b1c9c},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x16e1fc=_0x1745ea;this[_0x16e1fc(0x11a)][_0x16e1fc(0x120)](_0x16e1fc(0x111));const _0x4b0f6e=new Map(),_0x195b83=this['_commandDisposable']=new o[(_0x16e1fc(0x17a))]();_0x195b83[_0x16e1fc(0x147)](o[_0x16e1fc(0x12d)](()=>{var _0x1c5770=_0x16e1fc;_0x4b0f6e[_0x1c5770(0x170)](_0x376a2d=>_0x376a2d['complete']()),_0x4b0f6e[_0x1c5770(0xe6)]();})),_0x195b83['add'](this['_commandService']['onCommandExecuted'](_0x5dd238=>{var _0x495ee4=_0x16e1fc,_0x210c2e;if(_0x5dd238['type']!==o['CommandType'][_0x495ee4(0x188)]||!this[_0x495ee4(0x106)][_0x495ee4(0x131)](_0x5dd238['id']))return;const {id:_0x489962}=_0x5dd238;let _0x482c8b;_0x4b0f6e[_0x495ee4(0x17b)](_0x489962)?_0x482c8b=_0x4b0f6e['get'](_0x489962):(_0x482c8b=new D[(_0x495ee4(0x186))](),_0x4b0f6e[_0x495ee4(0x171)](_0x489962,_0x482c8b),_0x482c8b[_0x495ee4(0x17d)](b[_0x495ee4(0x136)]((_0x210c2e=this[_0x495ee4(0x105)][_0x495ee4(0x1c4)](Z))!=null?_0x210c2e:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1181fb=>{var _0x5a7dad=_0x495ee4;this[_0x5a7dad(0x174)]['send']({'eventID':_[_0x5a7dad(0xe2)][_0x5a7dad(0x109)],'data':{'unitID':this['_unitID'],'operations':{[_0x1181fb['id']]:{'id':_0x1181fb['id'],'params':JSON['stringify'](_0x1181fb[_0x5a7dad(0x198)])}}}},this[_0x5a7dad(0xfb)]);})),_0x482c8b[_0x495ee4(0x120)](_0x5dd238);})),this[_0x16e1fc(0x106)][_0x16e1fc(0x143)](this[_0x16e1fc(0xfb)])[_0x16e1fc(0x170)](_0x1c8604=>this[_0x16e1fc(0x174)]['send']({'eventID':_['CollaborationEvent'][_0x16e1fc(0x109)],'data':{'unitID':this[_0x16e1fc(0xfb)],'operations':{[_0x1c8604['id']]:{'id':_0x1c8604['id'],'params':JSON['stringify'](_0x1c8604[_0x16e1fc(0x198)])}}}},this[_0x16e1fc(0xfb)]));}[_0x1745ea(0x146)](){var _0x59a275=_0x1745ea,_0x1d513a;this[_0x59a275(0x11a)][_0x59a275(0x120)](_0x59a275(0x129)),(_0x1d513a=this[_0x59a275(0x18a)])==null||_0x1d513a[_0x59a275(0x122)](),this[_0x59a275(0x18a)]=null;}[_0x1745ea(0xfc)](){var _0x509ddc=_0x1745ea,_0x42402d;(_0x42402d=this[_0x509ddc(0x18a)])==null||_0x42402d[_0x509ddc(0x122)](),this['_status$']['next'](_0x509ddc(0x183));}[_0x1745ea(0x115)](){var _0x52500d=_0x1745ea,_0x4569b7;this[_0x52500d(0x11a)][_0x52500d(0x120)]('idle'),(_0x4569b7=this['_commandDisposable'])==null||_0x4569b7[_0x52500d(0x122)](),this[_0x52500d(0x18a)]=null;}['_stopFollowing'](){var _0x17ad86=_0x1745ea,_0x4275d5;this[_0x17ad86(0x11a)][_0x17ad86(0x120)]('not-following'),(_0x4275d5=this['_commandDisposable'])==null||_0x4275d5[_0x17ad86(0x122)]();}[_0x1745ea(0xf6)](_0x348a79){var _0x1f59ac=_0x1745ea;if(['presenting','not-following',_0x1f59ac(0x18b)]['includes'](this[_0x1f59ac(0x168)])||!_0x348a79[_0x1f59ac(0x185)][_0x1f59ac(0x1b1)]||_0x348a79[_0x1f59ac(0x185)][_0x1f59ac(0x1b1)]===this['_collabSession'][_0x1f59ac(0x1ad)]())return;this[_0x1f59ac(0x168)]===_0x1f59ac(0x129)&&this[_0x1f59ac(0xfc)]();const _0x3a4444=_0x348a79[_0x1f59ac(0x185)][_0x1f59ac(0x1b7)];Object[_0x1f59ac(0x1b4)](_0x3a4444)[_0x1f59ac(0x170)](_0x1219ec=>{var _0x254d31=_0x1f59ac;this[_0x254d31(0x16f)][_0x254d31(0xf1)](_0x1219ec['id'],_0x1219ec[_0x254d31(0x198)]?JSON[_0x254d31(0x113)](_0x1219ec['params']):null,{'fromCollab':!0x0});});}[_0x1745ea(0x1c0)](){var _0x3514ba=_0x1745ea,_0x42ead0;this[_0x3514ba(0x11a)][_0x3514ba(0x120)](_0x3514ba(0x18b)),(_0x42ead0=this['_commandDisposable'])==null||_0x42ead0['dispose']();}[_0x1745ea(0x1a3)](){var _0x56e5e=_0x1745ea;this[_0x56e5e(0x11a)]['next'](_0x56e5e(0x129)),this[_0x56e5e(0x157)]();}},exports[_0x1745ea(0x1a7)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x1745ea(0x10b)](O)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function A(){var _0x2a1d22=_0x1745ea;const _0x16736c=p[_0x2a1d22(0x140)](exports[_0x2a1d22(0xf8)]),_0x280863=p[_0x2a1d22(0x140)](o['IUniverInstanceService']),_0x3f6b86=p['useObservable'](()=>_0x280863[_0x2a1d22(0x1b9)](o[_0x2a1d22(0x11e)][_0x2a1d22(0x173)]),void 0x0,!0x1,[]),[_0x2268b5,_0xdbf003]=f['useState'](null),[_0x5a0953,_0x5b8770]=f[_0x2a1d22(0x12b)](h[_0x2a1d22(0x117)]),_0x343a3b=f[_0x2a1d22(0x181)](null);return f[_0x2a1d22(0x182)](()=>(_0x3f6b86&&_0x16736c[_0x2a1d22(0x13d)](_0x3f6b86['getUnitId']())[_0x2a1d22(0x155)](_0x3ce2e3=>{var _0x5871ee=_0x2a1d22;_0xdbf003(_0x3ce2e3),_0x343a3b[_0x5871ee(0x190)]=_0x3ce2e3[_0x5871ee(0x15f)][_0x5871ee(0xf9)](_0x3a85c4=>{_0x5b8770(_0x3a85c4);});}),()=>{var _0x2ff912=_0x2a1d22,_0x184308;(_0x184308=_0x343a3b[_0x2ff912(0x190)])==null||_0x184308['unsubscribe'](),_0x343a3b[_0x2ff912(0x190)]=null;}),[_0x3f6b86,_0x16736c]),_0x2268b5?l[_0x2a1d22(0x191)](g[_0x2a1d22(0x12c)],{'align':_0x2a1d22(0x189),'disabled':_0x5a0953===h[_0x2a1d22(0x160)],'className':_0x2a1d22(0xeb),'overlay':l[_0x2a1d22(0x191)](K,{'status':_0x5a0953,'coordinator':_0x2268b5}),'children':l[_0x2a1d22(0x191)](_0x2a1d22(0x101),{'className':g['clsx'](_0x2a1d22(0x14a),{'univer-cursor-not-allowed':_0x5a0953===h[_0x2a1d22(0x160)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5a0953!==h[_0x2a1d22(0x160)]}),'type':_0x2a1d22(0x101),'children':l[_0x2a1d22(0x191)](P,{'className':_0x2a1d22(0x14f)})})}):null;}function K(_0xff5ff1){var _0x5c1561=_0x1745ea;const {status:_0x253266,coordinator:_0x4bf0c5}=_0xff5ff1;switch(_0x253266){case h['IDLE']:return l[_0x5c1561(0x191)](z,{'coordinator':_0x4bf0c5});case h[_0x5c1561(0x1bf)]:return l[_0x5c1561(0x191)](Q,{'coordinator':_0x4bf0c5});case h[_0x5c1561(0x12a)]:return l[_0x5c1561(0x191)](X,{'coordinator':_0x4bf0c5});case h[_0x5c1561(0x160)]:return l['jsx'](te,{});case h[_0x5c1561(0x119)]:return l[_0x5c1561(0x191)](ee,{'coordinator':_0x4bf0c5});default:return null;}}function _0x3e4a(_0xc11979,_0x248737){var _0x2f078c=_0x2f07();return _0x3e4a=function(_0x3e4a5a,_0x3ccd9c){_0x3e4a5a=_0x3e4a5a-0xe2;var _0x61ba7d=_0x2f078c[_0x3e4a5a];return _0x61ba7d;},_0x3e4a(_0xc11979,_0x248737);}function z(_0xcace33){var _0x449e0f=_0x1745ea;const {coordinator:_0x2e4679}=_0xcace33;return l['jsxs'](l[_0x449e0f(0x165)],{'children':[l[_0x449e0f(0x191)](_0x449e0f(0x177),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x449e0f(0x16e)}),l[_0x449e0f(0x191)](g[_0x449e0f(0xf5)],{'onClick':()=>_0x2e4679[_0x449e0f(0xe4)](),'children':'Start'})]});}function Q(_0x5b7110){var _0x9c1a7b=_0x1745ea;const {coordinator:_0x1e0b8b}=_0x5b7110;return l[_0x9c1a7b(0x13b)](l[_0x9c1a7b(0x165)],{'children':[l[_0x9c1a7b(0x191)](_0x9c1a7b(0x177),{'className':_0x9c1a7b(0x1b6),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](g[_0x9c1a7b(0xf5)],{'onClick':()=>_0x1e0b8b[_0x9c1a7b(0x154)](),'children':'Stop\x20following'})]});}function X(_0x3d1886){var _0x5c2030=_0x1745ea;const {coordinator:_0x440d2d}=_0x3d1886;return l[_0x5c2030(0x13b)](l[_0x5c2030(0x165)],{'children':[l[_0x5c2030(0x191)](_0x5c2030(0x177),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x5c2030(0x191)](g[_0x5c2030(0xf5)],{'variant':_0x5c2030(0x15b),'onClick':()=>_0x440d2d[_0x5c2030(0x14d)](),'children':'Start\x20following'})]});}function ee(_0x51dac8){var _0x3f3442=_0x1745ea;const {coordinator:_0x4e38de}=_0x51dac8;return l[_0x3f3442(0x13b)](l[_0x3f3442(0x165)],{'children':[l[_0x3f3442(0x191)]('div',{'className':_0x3f3442(0x1b6),'children':_0x3f3442(0x123)}),l['jsx'](g['Button'],{'variant':'default','onClick':()=>_0x4e38de['stopPresenting'](),'children':_0x3f3442(0x16d)})]});}function te(){var _0x15c970=_0x1745ea;return l['jsx'](l[_0x15c970(0x165)],{'children':_0x15c970(0x145)});}var ie=Object[_0x1745ea(0xff)],ne=(_0x15d9c0,_0x286e9,_0x43c96e,_0x265560)=>{var _0x34fd8c=_0x1745ea;for(var _0xb9135a=_0x265560>0x1?void 0x0:_0x265560?ie(_0x286e9,_0x43c96e):_0x286e9,_0x3741d8=_0x15d9c0[_0x34fd8c(0xf7)]-0x1,_0x1d347c;_0x3741d8>=0x0;_0x3741d8--)(_0x1d347c=_0x15d9c0[_0x3741d8])&&(_0xb9135a=_0x1d347c(_0xb9135a)||_0xb9135a);return _0xb9135a;},L=(_0x186039,_0x2ffc8b)=>(_0x510dc9,_0x457f15)=>_0x2ffc8b(_0x510dc9,_0x457f15,_0x186039);exports[_0x1745ea(0x169)]=class extends o['Disposable']{constructor(_0x34261a,_0x59bfc5){var _0x251c9f=_0x1745ea;super(),this['_injector']=_0x34261a,this['_uiPartsService']=_0x59bfc5,this[_0x251c9f(0x1a0)]();}['_mountLiveShare'](){var _0x26833b=_0x1745ea;this[_0x26833b(0x176)](this[_0x26833b(0x125)][_0x26833b(0x149)](p['BuiltInUIPart'][_0x26833b(0x18d)],()=>p[_0x26833b(0x197)](A,this[_0x26833b(0x11b)])));}},exports[_0x1745ea(0x169)]=ne([L(0x0,o[_0x1745ea(0x10b)](o[_0x1745ea(0xf3)])),L(0x1,p[_0x1745ea(0x11d)])],exports[_0x1745ea(0x169)]);var re=Object[_0x1745ea(0xfd)],se=Object[_0x1745ea(0xff)],oe=(_0x26fd95,_0x1010c2,_0x23b0aa)=>_0x1010c2 in _0x26fd95?re(_0x26fd95,_0x1010c2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23b0aa}):_0x26fd95[_0x1010c2]=_0x23b0aa,ae=(_0x22870e,_0x527687,_0x574522,_0x46114f)=>{var _0x2ffd45=_0x1745ea;for(var _0x2d5a71=_0x46114f>0x1?void 0x0:_0x46114f?se(_0x527687,_0x574522):_0x527687,_0x498cb4=_0x22870e[_0x2ffd45(0xf7)]-0x1,_0x51fd5f;_0x498cb4>=0x0;_0x498cb4--)(_0x51fd5f=_0x22870e[_0x498cb4])&&(_0x2d5a71=_0x51fd5f(_0x2d5a71)||_0x2d5a71);return _0x2d5a71;},N=(_0x72cc8a,_0x191c7a)=>(_0x2303ee,_0x5dae67)=>_0x191c7a(_0x2303ee,_0x5dae67,_0x72cc8a),T=(_0x55e976,_0x3f6a17,_0x1a043b)=>oe(_0x55e976,typeof _0x3f6a17!=_0x1745ea(0x148)?_0x3f6a17+'':_0x3f6a17,_0x1a043b);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x1745ea(0x172)]=class extends o[_0x1745ea(0x1c3)]{constructor(_0x166798=x,_0x3068e9,_0xf0753e){var _0x188f65=_0x1745ea;super(),this[_0x188f65(0x1bc)]=_0x166798,this[_0x188f65(0x11b)]=_0x3068e9,this[_0x188f65(0x105)]=_0xf0753e;const {..._0x310a5d}=o[_0x188f65(0xf4)]({},x,this[_0x188f65(0x1bc)]);this[_0x188f65(0x105)][_0x188f65(0x175)]($,_0x310a5d);}[_0x1745ea(0xef)](){var _0x247dab=_0x1745ea;o[_0x247dab(0xe3)](this[_0x247dab(0x11b)],o[_0x247dab(0x14b)]([[O],[exports[_0x247dab(0xf8)]],[E],[exports[_0x247dab(0x169)]]],this[_0x247dab(0x1bc)][_0x247dab(0x16c)])),o[_0x247dab(0x134)](this[_0x247dab(0x11b)],[[E]]);}[_0x1745ea(0x10a)](){var _0x56fddd=_0x1745ea;o[_0x56fddd(0x134)](this[_0x56fddd(0x11b)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x1745ea(0x172)],'type',o[_0x1745ea(0x11e)][_0x1745ea(0x139)]),T(exports[_0x1745ea(0x172)],_0x1745ea(0x141),le),exports[_0x1745ea(0x172)]=ae([o[_0x1745ea(0x12f)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x1745ea(0x10b)](o[_0x1745ea(0xf3)])),N(0x2,o[_0x1745ea(0x13c)])],exports['UniverLiveSharePlugin']),exports[_0x1745ea(0x19f)]=A,exports[_0x1745ea(0x121)]=O,exports[_0x1745ea(0x156)]=h;
|
|
1
|
+
'use strict';var _0x31d807=_0x5b86;(function(_0x52b5cf,_0xb6ad8e){var _0x38b249=_0x5b86,_0x435ad1=_0x52b5cf();while(!![]){try{var _0x1e1a42=-parseInt(_0x38b249(0xed))/0x1*(parseInt(_0x38b249(0x12d))/0x2)+-parseInt(_0x38b249(0xe9))/0x3*(-parseInt(_0x38b249(0x9e))/0x4)+-parseInt(_0x38b249(0xb0))/0x5+parseInt(_0x38b249(0x131))/0x6+parseInt(_0x38b249(0x127))/0x7+-parseInt(_0x38b249(0x103))/0x8+parseInt(_0x38b249(0x14c))/0x9;if(_0x1e1a42===_0xb6ad8e)break;else _0x435ad1['push'](_0x435ad1['shift']());}catch(_0x2aa443){_0x435ad1['push'](_0x435ad1['shift']());}}}(_0x27eb,0x76ab5));var U=Object['defineProperty'],F=(_0x400d4e,_0x3e5c57,_0x4d1aa8)=>_0x3e5c57 in _0x400d4e?U(_0x400d4e,_0x3e5c57,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d1aa8}):_0x400d4e[_0x3e5c57]=_0x4d1aa8,v=(_0x53cc46,_0x53c2d3,_0x46e633)=>F(_0x53cc46,typeof _0x53c2d3!='symbol'?_0x53c2d3+'':_0x53c2d3,_0x46e633);Object['defineProperty'](exports,Symbol[_0x31d807(0x10e)],{'value':'Module'});function _0x5b86(_0x405e29,_0x28fceb){var _0x27eb6a=_0x27eb();return _0x5b86=function(_0x5b86b4,_0x1d01cf){_0x5b86b4=_0x5b86b4-0x6e;var _0x64941c=_0x27eb6a[_0x5b86b4];return _0x64941c;},_0x5b86(_0x405e29,_0x28fceb);}const m=require(_0x31d807(0x7e)),o=require(_0x31d807(0xb3)),C=require(_0x31d807(0x151)),w=require(_0x31d807(0xbb)),p=require('@univerjs/ui'),l=require(_0x31d807(0xf5)),g=require(_0x31d807(0xcc)),f=require(_0x31d807(0xc1)),_=require('@univerjs-pro/collaboration'),D=require(_0x31d807(0x14a)),b=require(_0x31d807(0x12f)),$=_0x31d807(0x112),x={};class O extends o[_0x31d807(0xe5)]{constructor(){var _0xaaf09b=_0x31d807;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0xaaf09b(0x110),new Set());}[_0x31d807(0x12c)](_0x153e17){var _0x13475f=_0x31d807;return this[_0x13475f(0xec)][_0x13475f(0xc4)](_0x153e17),o[_0x13475f(0x136)](()=>this['_sharedOperations'][_0x13475f(0xf4)](_0x153e17));}[_0x31d807(0x83)](_0x260240){var _0x4137c5=_0x31d807;return this[_0x4137c5(0x110)][_0x4137c5(0xc4)](_0x260240),o['toDisposable'](()=>this[_0x4137c5(0x110)][_0x4137c5(0xf4)](_0x260240));}[_0x31d807(0xc9)](_0xfe5658){var _0x9646f=_0x31d807;return this[_0x9646f(0xec)][_0x9646f(0x14d)](_0xfe5658);}[_0x31d807(0xb2)](_0x5d5013){var _0x200f44=_0x31d807;return Array['from'](this[_0x200f44(0x110)])[_0x200f44(0x7c)](_0x487372=>_0x487372(_0x5d5013));}}var H=Object[_0x31d807(0x100)],V=(_0x4b2292,_0x12afd6,_0x4cf0a3,_0x2634d0)=>{var _0xf11854=_0x31d807;for(var _0x562737=_0x2634d0>0x1?void 0x0:_0x2634d0?H(_0x12afd6,_0x4cf0a3):_0x12afd6,_0x524e9e=_0x4b2292[_0xf11854(0xdd)]-0x1,_0x32496e;_0x524e9e>=0x0;_0x524e9e--)(_0x32496e=_0x4b2292[_0x524e9e])&&(_0x562737=_0x32496e(_0x562737)||_0x562737);return _0x562737;},k=(_0xa6aa2a,_0x58e926)=>(_0x13aae9,_0x1ff300)=>_0x58e926(_0x13aae9,_0x1ff300,_0xa6aa2a);let E=class extends o['Disposable']{constructor(_0x1ac81f){var _0x785be4=_0x31d807;super(),this[_0x785be4(0x10c)]=_0x1ac81f,this[_0x785be4(0xc8)]();}['_init'](){var _0x5e3a11=_0x31d807;[w['SetZoomRatioOperation']['id'],w[_0x5e3a11(0x13b)]['id'],C[_0x5e3a11(0x140)]['id']][_0x5e3a11(0xd6)](_0x12c9c6=>{var _0x29a97f=_0x5e3a11;this[_0x29a97f(0xba)](this[_0x29a97f(0x10c)][_0x29a97f(0x12c)](_0x12c9c6));});}};E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x22fb64=_0x31d807;return u=Object[_0x22fb64(0xda)]||function(_0x195786){var _0x29098d=_0x22fb64;for(var _0x172fe2,_0xc36c7f=0x1,_0x46ad19=arguments[_0x29098d(0xdd)];_0xc36c7f<_0x46ad19;_0xc36c7f++){_0x172fe2=arguments[_0xc36c7f];for(var _0x141c6d in _0x172fe2)Object['prototype'][_0x29098d(0x14e)][_0x29098d(0xfd)](_0x172fe2,_0x141c6d)&&(_0x195786[_0x141c6d]=_0x172fe2[_0x141c6d]);}return _0x195786;},u[_0x22fb64(0xb1)](this,arguments);},M=function(_0x22682d,_0x3e05cb){var _0x3c02f0=_0x31d807,_0x4bbab9={};for(var _0x2af0e7 in _0x22682d)Object[_0x3c02f0(0x13d)][_0x3c02f0(0x14e)][_0x3c02f0(0xfd)](_0x22682d,_0x2af0e7)&&_0x3e05cb['indexOf'](_0x2af0e7)<0x0&&(_0x4bbab9[_0x2af0e7]=_0x22682d[_0x2af0e7]);if(_0x22682d!=null&&typeof Object[_0x3c02f0(0xe8)]==_0x3c02f0(0x85)){for(var _0x2caba7=0x0,_0x2af0e7=Object[_0x3c02f0(0xe8)](_0x22682d);_0x2caba7<_0x2af0e7[_0x3c02f0(0xdd)];_0x2caba7++)_0x3e05cb['indexOf'](_0x2af0e7[_0x2caba7])<0x0&&Object[_0x3c02f0(0x13d)][_0x3c02f0(0x102)][_0x3c02f0(0xfd)](_0x22682d,_0x2af0e7[_0x2caba7])&&(_0x4bbab9[_0x2af0e7[_0x2caba7]]=_0x22682d[_0x2af0e7[_0x2caba7]]);}return _0x4bbab9;},j=f[_0x31d807(0x13f)](function(_0xf64559,_0x4bcf0a){var _0xef2513=_0x31d807,_0x1361b9=_0xf64559[_0xef2513(0xf3)],_0x18879c=_0xf64559['id'],_0x5c85e0=_0xf64559[_0xef2513(0x73)],_0x5337cc=_0xf64559[_0xef2513(0x121)],_0x3e4c70=M(_0xf64559,[_0xef2513(0xf3),'id',_0xef2513(0x73),_0xef2513(0x121)]),_0x1d1062='univerjs-icon\x20univerjs-icon-'[_0xef2513(0xe2)](_0x18879c,'\x20')[_0xef2513(0xe2)](_0x5c85e0||'')[_0xef2513(0x6e)](),_0x48eec4=f[_0xef2513(0x7d)]('_'['concat'](G()));return y(_0x1361b9,''[_0xef2513(0xe2)](_0x18879c),{'defIds':_0x1361b9['defIds'],'idSuffix':_0x48eec4[_0xef2513(0x104)]},u({'ref':_0x4bcf0a,'className':_0x1d1062},_0x3e4c70),_0x5337cc);});function y(_0x29e5da,_0x4042d0,_0x565e74,_0x1adc59,_0x5ed963){var _0x545ac6=_0x31d807;return f[_0x545ac6(0x130)](_0x29e5da[_0x545ac6(0x111)],u(u({'key':_0x4042d0},q(_0x29e5da,_0x565e74,_0x5ed963)),_0x1adc59),(W(_0x29e5da,_0x565e74)['children']||[])[_0x545ac6(0x7c)](function(_0x472911,_0x1706e1){var _0x18a58b=_0x545ac6;return y(_0x472911,''['concat'](_0x4042d0,'-')[_0x18a58b(0xe2)](_0x29e5da[_0x18a58b(0x111)],'-')['concat'](_0x1706e1),_0x565e74,void 0x0,_0x5ed963);}));}function q(_0x4436ce,_0x5da1f6,_0x550631){var _0x266de2=_0x31d807,_0x15a4d2=u({},_0x4436ce['attrs']);_0x550631!=null&&_0x550631[_0x266de2(0x14b)]&&_0x15a4d2[_0x266de2(0x118)]===_0x266de2(0x14b)&&(_0x15a4d2['fill']=_0x550631[_0x266de2(0x14b)]),_0x4436ce[_0x266de2(0x111)]==='mask'&&_0x15a4d2['id']&&(_0x15a4d2['id']=_0x15a4d2['id']+_0x5da1f6[_0x266de2(0xce)]),Object['entries'](_0x15a4d2)[_0x266de2(0xd6)](function(_0x52e873){var _0x2899d7=_0x266de2,_0x4d1240=_0x52e873[0x0],_0x22e2f4=_0x52e873[0x1];_0x4d1240===_0x2899d7(0x117)&&typeof _0x22e2f4==_0x2899d7(0x9a)&&(_0x15a4d2[_0x4d1240]=_0x22e2f4[_0x2899d7(0x141)](/url\(#(.*)\)/,'url(#$1'[_0x2899d7(0xe2)](_0x5da1f6['idSuffix'],')')));});var _0x11134b=_0x5da1f6['defIds'];return!_0x11134b||_0x11134b[_0x266de2(0xdd)]===0x0||(_0x4436ce[_0x266de2(0x111)]===_0x266de2(0x8d)&&_0x15a4d2[_0x266de2(0x126)]&&(_0x15a4d2['xlink:href']=_0x15a4d2[_0x266de2(0x126)]+_0x5da1f6[_0x266de2(0xce)]),Object[_0x266de2(0xa1)](_0x15a4d2)[_0x266de2(0xd6)](function(_0x21e76e){var _0x19f71d=_0x266de2,_0x47bfba=_0x21e76e[0x0],_0x493d9c=_0x21e76e[0x1];typeof _0x493d9c==_0x19f71d(0x9a)&&(_0x15a4d2[_0x47bfba]=_0x493d9c[_0x19f71d(0x141)](/url\(#(.*)\)/,_0x19f71d(0xc0)['concat'](_0x5da1f6[_0x19f71d(0xce)],')')));})),_0x15a4d2;}function W(_0x283d2d,_0x5b796c){var _0x3f9aec=_0x31d807,_0x9dd6b4,_0x501c63=_0x5b796c[_0x3f9aec(0x137)];return!_0x501c63||_0x501c63['length']===0x0?_0x283d2d:_0x283d2d[_0x3f9aec(0x111)]===_0x3f9aec(0xdb)&&(!((_0x9dd6b4=_0x283d2d[_0x3f9aec(0x8f)])===null||_0x9dd6b4===void 0x0)&&_0x9dd6b4[_0x3f9aec(0xdd)])?u(u({},_0x283d2d),{'children':_0x283d2d[_0x3f9aec(0x8f)][_0x3f9aec(0x7c)](function(_0x2a6f20){var _0x2cc47b=_0x3f9aec;return typeof _0x2a6f20[_0x2cc47b(0xd8)]['id']==_0x2cc47b(0x9a)&&_0x501c63&&_0x501c63[_0x2cc47b(0x78)](_0x2a6f20[_0x2cc47b(0xd8)]['id'])?u(u({},_0x2a6f20),{'attrs':u(u({},_0x2a6f20['attrs']),{'id':_0x2a6f20[_0x2cc47b(0xd8)]['id']+_0x5b796c[_0x2cc47b(0xce)]})}):_0x2a6f20;})}):_0x283d2d;}function G(){var _0x2512cc=_0x31d807;return Math['random']()['toString'](0x24)[_0x2512cc(0x120)](0x2,0x8);}j[_0x31d807(0xea)]=_0x31d807(0x148);var B={'tag':_0x31d807(0x86),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x31d807(0x123),'viewBox':_0x31d807(0xdc),'width':_0x31d807(0x11c),'height':_0x31d807(0x11c)},'children':[{'tag':_0x31d807(0x129),'attrs':{'fill':'currentColor','d':_0x31d807(0xb6)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x31d807(0x145),'fillRule':_0x31d807(0x79),'clipRule':_0x31d807(0x79)}}]},P=f[_0x31d807(0x13f)](function(_0x51a1f0,_0x355030){var _0x3a205f=_0x31d807;return f['createElement'](j,Object[_0x3a205f(0xda)]({},_0x51a1f0,{'id':_0x3a205f(0x8a),'ref':_0x355030,'icon':B}));});P[_0x31d807(0xea)]='LiveShareIcon';var Y=Object[_0x31d807(0x100)],R=(_0x29ccc8,_0x3c1bb5,_0x3405a9,_0x550346)=>{var _0x417a24=_0x31d807;for(var _0x415de5=_0x550346>0x1?void 0x0:_0x550346?Y(_0x3c1bb5,_0x3405a9):_0x3c1bb5,_0x1eb00a=_0x29ccc8[_0x417a24(0xdd)]-0x1,_0x2afb4f;_0x1eb00a>=0x0;_0x1eb00a--)(_0x2afb4f=_0x29ccc8[_0x1eb00a])&&(_0x415de5=_0x2afb4f(_0x415de5)||_0x415de5);return _0x415de5;},S=(_0x2a1d56,_0xe69505)=>(_0x194650,_0x2e97e5)=>_0xe69505(_0x194650,_0x2e97e5,_0x2a1d56);exports[_0x31d807(0xcf)]=class extends o[_0x31d807(0xbe)]{constructor(_0x5b797d,_0x2590c8,_0x53416){var _0x2f6eae=_0x31d807;super(),v(this,_0x2f6eae(0xc5),new Map()),(this[_0x2f6eae(0xf0)]=_0x5b797d,this[_0x2f6eae(0xad)]=_0x2590c8,this['_collabSessionService']=_0x53416,this[_0x2f6eae(0xc8)]());}async['getLiveShareCoordinator'](_0x1f43a4){var _0x548e28=_0x31d807;return this['_entities'][_0x548e28(0x14d)](_0x1f43a4)||await this[_0x548e28(0xa3)](_0x1f43a4),this[_0x548e28(0xc5)][_0x548e28(0xc2)](_0x1f43a4);}[_0x31d807(0xc8)](){var _0x4e4a38=_0x31d807;this[_0x4e4a38(0xf0)][_0x4e4a38(0xcd)](o[_0x4e4a38(0x106)][_0x4e4a38(0x11b)])[_0x4e4a38(0x135)](b[_0x4e4a38(0xfe)](this[_0x4e4a38(0x13e)]))[_0x4e4a38(0xc6)](async _0x23c248=>{var _0xc9de39=_0x4e4a38;const _0x3a99d9=_0x23c248['getUnitId']();this[_0xc9de39(0xc5)]['has'](_0x3a99d9)||this[_0xc9de39(0xa3)](_0x3a99d9);}),this[_0x4e4a38(0xf0)][_0x4e4a38(0xaf)](o[_0x4e4a38(0x106)]['UNIVER_SHEET'])[_0x4e4a38(0x135)](b[_0x4e4a38(0xfe)](this[_0x4e4a38(0x13e)]))[_0x4e4a38(0xc6)](_0x50262a=>{var _0x98cdf1=_0x4e4a38;const _0x92ee2=_0x50262a[_0x98cdf1(0xfa)](),_0x598518=this['_entities'][_0x98cdf1(0xc2)](_0x92ee2);_0x598518==null||_0x598518[_0x98cdf1(0xb5)]();});}async[_0x31d807(0xa3)](_0x49e11b){var _0x54b4fa=_0x31d807;const _0xada9e2=await this[_0x54b4fa(0xe4)][_0x54b4fa(0x108)](_0x49e11b),_0x1a6ca6=this[_0x54b4fa(0xad)]['createInstance'](exports[_0x54b4fa(0xe1)],_0x49e11b,_0xada9e2);return _0x1a6ca6[_0x54b4fa(0xa2)](),this[_0x54b4fa(0xc5)][_0x54b4fa(0xc7)](_0x49e11b,_0x1a6ca6),_0x1a6ca6;}},exports['LiveShareController']=R([S(0x0,o[_0x31d807(0x84)]),S(0x1,o[_0x31d807(0x128)](o[_0x31d807(0x132)])),S(0x2,o['Inject'](m['CollaborationSessionService']))],exports['LiveShareController']);var h=(_0x1034d0=>(_0x1034d0[_0x31d807(0x10d)]='offline',_0x1034d0[_0x31d807(0xd9)]=_0x31d807(0xde),_0x1034d0[_0x31d807(0x6f)]='following',_0x1034d0['NOT_FOLLOWING']=_0x31d807(0x113),_0x1034d0[_0x31d807(0x11d)]=_0x31d807(0xd4),_0x1034d0))(h||{});function _0x27eb(){var _0x101d5e=['set','_init','shouldShareOperation','complete','unitId','@univerjs/design','getTypeOfUnitAdded$','idSuffix','LiveShareController','onStarting','_commandService','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShare','presenting','You\x27re\x20presenting\x20the\x20document','forEach','Stop\x20presenting','attrs','IDLE','assign','defs','0\x200\x2017\x2017','length','idle','useState','throttleTime','LiveShareCoordinator','concat','SessionStatus','_collabSessionService','Disposable','_unitID','clear','getOwnPropertySymbols','72MBKsSd','displayName','touchDependencies','_sharedOperations','1HAhDYg','override','You\x27re\x20following\x20the\x20presenter','_univerInstanceService','params','LIVESHARE_OPERATION','icon','delete','react/jsx-runtime','_handleTerminate','DisposableCollection','UniverCollaborationClientPlugin','_stopFollowing','getUnitId','startFollowing','getLiveShareCoordinator','call','takeUntil','text','getOwnPropertyDescriptor','Subject','propertyIsEnumerable','4461448cErnAV','current','_fetchOperations','UniverInstanceType','mutations','requireSession','tryStartPresenting','Start','button','_liveShareService','OFFLINE','toStringTag','ONLINE','_reporters','tag','live-share.config','not-following','data','UNIVER_UNKNOWN','executeCommand','mask','fill','_stopPresenting','default','UNIVER_SHEET','1em','PRESENTING','_commandDisposable','values','substring','extend','sessionStatus$','none','useDependency','_handleNewHost','xlink:href','925589DQcJbv','Inject','path','UniverLiveSharePlugin','_uiPartsService','registerSharedOperation','1703252Tfcpxu','stringify','rxjs/operators','createElement','2268708DFdpSP','Injector','reverse','_handleOffline','pipe','toDisposable','defIds','Dropdown','Plugin','defineProperty','SetScrollOperation','memberID','prototype','dispose$','forwardRef','SetWorksheetActiveOperation','replace','Button','onCommandExecuted','getCurrentTypeOfUnit$','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','getMemberID','connectInjector','UniverIcon','stopPresenting','rxjs','colorChannel1','10041111HiJFGX','has','hasOwnProperty','_handleNewChangeSets','setConfig','@univerjs/sheets','trim','FOLLOWING','getValue','then','_handleOperation','className','BuiltInUIPart','_handleOnline','next','DesktopLiveShareController','includes','evenodd','parseProtocolChangeset','unsubscribe','map','useRef','@univerjs-pro/collaboration-client','pluginName','clsx','_status$','IConfigService','registerInitialStateReporter','IUniverInstanceService','function','svg','offline','find','type','live-share-icon','NOT_FOLLOWING','_startPresenting','use','_beIdle','children','jsxs','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','DependentOn','div','_collabSession','LIVESHARE_NEW_HOST','Stop\x20following','symbol','sheet','_startFollowing','string','LIVESHARE_TERMINATE','Fragment','onRendered','90488Alfyvz','BehaviorSubject','following','entries','init','_startLiveShareCoordinator','jsx','presenter','_configService','getConfig','InsertSheetMutation','registerComponent','asObservable','_status','end','_injector','_mountLiveShare','getTypeOfUnitDisposed$','1367880BhmviO','apply','getInitialStates','@univerjs/core','send','dispose','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','SAME_OPERATION_SHARE_INTERVAL','status$','univer-size-4','disposeWithMe','@univerjs/sheets-ui','_presenter','_config','RxDisposable','CollaborationEvent','url(#$1','react','get','stopFollowing','add','_entities','subscribe'];_0x27eb=function(){return _0x101d5e;};return _0x27eb();}const Z=_0x31d807(0xb7),J=0xc8;exports[_0x31d807(0xe1)]=class extends o[_0x31d807(0xbe)]{constructor(_0x32292f,_0x525b76,_0x4f8197,_0x5715b4,_0x29baa1){var _0x2fe9fb=_0x31d807;super(),v(this,_0x2fe9fb(0x81),new D[(_0x2fe9fb(0x9f))](_0x2fe9fb(0xde))),v(this,_0x2fe9fb(0xb8),this['_status$'][_0x2fe9fb(0xaa)]()),v(this,_0x2fe9fb(0xc8),!0x1),v(this,'_commandDisposable',null),v(this,_0x2fe9fb(0xbc),null),(this['_unitID']=_0x32292f,this[_0x2fe9fb(0x94)]=_0x525b76,this[_0x2fe9fb(0xa6)]=_0x4f8197,this['_liveShareService']=_0x5715b4,this[_0x2fe9fb(0xd1)]=_0x29baa1);}get[_0x31d807(0xab)](){var _0x4bfac6=_0x31d807;return this[_0x4bfac6(0x81)][_0x4bfac6(0x70)]();}[_0x31d807(0xb5)](){var _0x4d3f6c=_0x31d807,_0x36a9a9;(_0x36a9a9=this['_commandDisposable'])==null||_0x36a9a9[_0x4d3f6c(0xb5)](),this[_0x4d3f6c(0x81)][_0x4d3f6c(0x76)](_0x4d3f6c(0xde)),this['_status$'][_0x4d3f6c(0xca)]();}[_0x31d807(0xa2)](){var _0x150186=_0x31d807;this['_init']||(this[_0x150186(0xc8)]=!0x0,this[_0x150186(0x94)][_0x150186(0x122)][_0x150186(0x135)](b[_0x150186(0xfe)](this[_0x150186(0x13e)]))[_0x150186(0xc6)](_0x1a7b2d=>{var _0x407e97=_0x150186;switch(_0x1a7b2d){case m[_0x407e97(0xe3)]['OFFLINE']:this[_0x407e97(0x134)]();break;case m[_0x407e97(0xe3)][_0x407e97(0x10f)]:this[_0x407e97(0x75)]();break;}}),this[_0x150186(0x94)]['event$']['pipe'](b['takeUntil'](this[_0x150186(0x13e)]))[_0x150186(0xc6)](_0xc0e5b1=>{var _0x30ea58=_0x150186;const {eventID:_0x4127c7}=_0xc0e5b1;switch(_0x4127c7){case _[_0x30ea58(0xbf)][_0x30ea58(0x95)]:this[_0x30ea58(0x125)](_0xc0e5b1);break;case _[_0x30ea58(0xbf)][_0x30ea58(0xf2)]:this[_0x30ea58(0x72)](_0xc0e5b1);break;case _[_0x30ea58(0xbf)][_0x30ea58(0x9b)]:this[_0x30ea58(0xf6)]();break;case _['CollaborationEvent']['NEW_CHANGESETS']:this[_0x30ea58(0x14f)](_0xc0e5b1);break;}}));}['tryStartPresenting'](){var _0x3e8e15=_0x31d807;this[_0x3e8e15(0x94)]['send']({'eventID':_[_0x3e8e15(0xbf)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3e8e15(0xe6)],'userID':this[_0x3e8e15(0x94)][_0x3e8e15(0x146)]()}},this[_0x3e8e15(0xe6)]);}[_0x31d807(0x149)](){var _0x5f1d28=_0x31d807;this[_0x5f1d28(0xab)]==='presenting'&&(this[_0x5f1d28(0x81)][_0x5f1d28(0x76)]('idle'),this[_0x5f1d28(0x94)][_0x5f1d28(0xb4)]({'eventID':_[_0x5f1d28(0xbf)][_0x5f1d28(0x9b)],'data':{'unitID':this[_0x5f1d28(0xe6)]}},this['_unitID']));}['startFollowing'](){var _0x502d81=_0x31d807;this[_0x502d81(0xab)]===_0x502d81(0x113)&&(this[_0x502d81(0x81)][_0x502d81(0x76)](_0x502d81(0xa0)),this['_startFollowing']());}[_0x31d807(0xc3)](){var _0x5a5380=_0x31d807;this[_0x5a5380(0xab)]===_0x5a5380(0xa0)&&this[_0x5a5380(0xf9)]();}['_handleNewHost'](_0x3ea435){var _0x153ad7=_0x31d807;const {presenter:_0x3e8997}=_0x3ea435[_0x153ad7(0x114)],_0x3e34af=this[_0x153ad7(0x94)]['getMemberID']();this['_presenter']=_0x3e8997,_0x3e8997===_0x3e34af?(this[_0x153ad7(0xf9)](),this['_startPresenting']()):this[_0x153ad7(0xab)]!==_0x153ad7(0x113)&&(this[_0x153ad7(0x119)](),this[_0x153ad7(0x99)]());}[_0x31d807(0x105)](){var _0x37af3d=_0x31d807;const _0x314a52={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x37af3d(0x94)][_0x37af3d(0xb4)](_0x314a52,this[_0x37af3d(0xe6)]);}[_0x31d807(0xf6)](){var _0x51343a=_0x31d807;this[_0x51343a(0xbc)]=null,this[_0x51343a(0xab)]!==_0x51343a(0xd4)&&this[_0x51343a(0x8e)]();}[_0x31d807(0x14f)](_0xd69c08){var _0x326ee2=_0x31d807;if(this[_0x326ee2(0xab)]===_0x326ee2(0xa0)&&this[_0x326ee2(0xbc)]===_0xd69c08[_0x326ee2(0x114)][_0x326ee2(0x13c)]){const _0x42acee=_[_0x326ee2(0x7a)](_0xd69c08[_0x326ee2(0x114)])[_0x326ee2(0x107)][_0x326ee2(0x133)]()[_0x326ee2(0x88)](_0x57d8bc=>_0x57d8bc['id']===C[_0x326ee2(0xa8)]['id']);if(_0x42acee){const _0x310a2a=_0x42acee[_0x326ee2(0xf1)][_0x326ee2(0xcb)],_0x3ba5e7=_0x42acee[_0x326ee2(0xf1)][_0x326ee2(0x98)]['id'];setTimeout(()=>{var _0x445fa1=_0x326ee2;this[_0x445fa1(0xd1)][_0x445fa1(0x116)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x310a2a,'subUnitId':_0x3ba5e7},{'fromCollab':!0x0});});}}}[_0x31d807(0x8c)](){var _0x3c4625=_0x31d807;this[_0x3c4625(0x81)]['next'](_0x3c4625(0xd4));const _0x2a7ec2=new Map(),_0x46e98f=this[_0x3c4625(0x11e)]=new o[(_0x3c4625(0xf7))]();_0x46e98f[_0x3c4625(0xc4)](o[_0x3c4625(0x136)](()=>{var _0x3b1f7f=_0x3c4625;_0x2a7ec2[_0x3b1f7f(0xd6)](_0x5e580a=>_0x5e580a[_0x3b1f7f(0xca)]()),_0x2a7ec2[_0x3b1f7f(0xe7)]();})),_0x46e98f['add'](this[_0x3c4625(0xd1)][_0x3c4625(0x143)](_0xf02e73=>{var _0x5378d2=_0x3c4625,_0x44db05;if(_0xf02e73[_0x5378d2(0x89)]!==o['CommandType']['OPERATION']||!this[_0x5378d2(0x10c)][_0x5378d2(0xc9)](_0xf02e73['id']))return;const {id:_0x41735c}=_0xf02e73;let _0x23c262;_0x2a7ec2[_0x5378d2(0x14d)](_0x41735c)?_0x23c262=_0x2a7ec2[_0x5378d2(0xc2)](_0x41735c):(_0x23c262=new D[(_0x5378d2(0x101))](),_0x2a7ec2[_0x5378d2(0xc7)](_0x41735c,_0x23c262),_0x23c262['pipe'](b[_0x5378d2(0xe0)]((_0x44db05=this['_configService'][_0x5378d2(0xa7)](Z))!=null?_0x44db05:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5378d2(0xc6)](_0x2e54ed=>{var _0x5a8550=_0x5378d2;this[_0x5a8550(0x94)][_0x5a8550(0xb4)]({'eventID':_[_0x5a8550(0xbf)][_0x5a8550(0xf2)],'data':{'unitID':this[_0x5a8550(0xe6)],'operations':{[_0x2e54ed['id']]:{'id':_0x2e54ed['id'],'params':JSON['stringify'](_0x2e54ed[_0x5a8550(0xf1)])}}}},this[_0x5a8550(0xe6)]);})),_0x23c262[_0x5378d2(0x76)](_0xf02e73);})),this['_liveShareService']['getInitialStates'](this['_unitID'])['forEach'](_0x53fd71=>this['_collabSession'][_0x3c4625(0xb4)]({'eventID':_[_0x3c4625(0xbf)][_0x3c4625(0xf2)],'data':{'unitID':this[_0x3c4625(0xe6)],'operations':{[_0x53fd71['id']]:{'id':_0x53fd71['id'],'params':JSON[_0x3c4625(0x12e)](_0x53fd71[_0x3c4625(0xf1)])}}}},this[_0x3c4625(0xe6)]));}[_0x31d807(0x119)](){var _0x576572=_0x31d807,_0x30fb06;this[_0x576572(0x81)][_0x576572(0x76)](_0x576572(0xde)),(_0x30fb06=this['_commandDisposable'])==null||_0x30fb06[_0x576572(0xb5)](),this[_0x576572(0x11e)]=null;}[_0x31d807(0x99)](){var _0x470113=_0x31d807,_0x1c26cb;(_0x1c26cb=this['_commandDisposable'])==null||_0x1c26cb[_0x470113(0xb5)](),this[_0x470113(0x81)][_0x470113(0x76)](_0x470113(0xa0));}['_beIdle'](){var _0x3b4980=_0x31d807,_0x3e3d83;this[_0x3b4980(0x81)][_0x3b4980(0x76)]('idle'),(_0x3e3d83=this[_0x3b4980(0x11e)])==null||_0x3e3d83['dispose'](),this[_0x3b4980(0x11e)]=null;}[_0x31d807(0xf9)](){var _0x15229c=_0x31d807,_0x29e0a8;this['_status$'][_0x15229c(0x76)]('not-following'),(_0x29e0a8=this[_0x15229c(0x11e)])==null||_0x29e0a8[_0x15229c(0xb5)]();}[_0x31d807(0x72)](_0x50b7a8){var _0x466b50=_0x31d807;if(['presenting',_0x466b50(0x113),_0x466b50(0x87)][_0x466b50(0x78)](this['_status'])||!_0x50b7a8[_0x466b50(0x114)][_0x466b50(0xa5)]||_0x50b7a8[_0x466b50(0x114)][_0x466b50(0xa5)]===this['_collabSession'][_0x466b50(0x146)]())return;this[_0x466b50(0xab)]===_0x466b50(0xde)&&this['_startFollowing']();const _0x221427=_0x50b7a8[_0x466b50(0x114)]['operations'];Object[_0x466b50(0x11f)](_0x221427)[_0x466b50(0xd6)](_0x2b53d8=>{var _0x2612b8=_0x466b50;this['_commandService'][_0x2612b8(0x116)](_0x2b53d8['id'],_0x2b53d8[_0x2612b8(0xf1)]?JSON['parse'](_0x2b53d8['params']):null,{'fromCollab':!0x0});});}[_0x31d807(0x134)](){var _0x2084c6=_0x31d807,_0x216b52;this[_0x2084c6(0x81)][_0x2084c6(0x76)](_0x2084c6(0x87)),(_0x216b52=this[_0x2084c6(0x11e)])==null||_0x216b52['dispose']();}['_handleOnline'](){var _0x3e0a30=_0x31d807;this['_status$']['next'](_0x3e0a30(0xde)),this[_0x3e0a30(0x105)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x31d807(0x82)]),S(0x3,o['Inject'](O)),S(0x4,o['ICommandService'])],exports[_0x31d807(0xe1)]);function A(){var _0x34cac4=_0x31d807;const _0x2648a3=p['useDependency'](exports['LiveShareController']),_0x29edc2=p[_0x34cac4(0x124)](o[_0x34cac4(0x84)]),_0xbbe0eb=p['useObservable'](()=>_0x29edc2[_0x34cac4(0x144)](o[_0x34cac4(0x106)][_0x34cac4(0x11b)]),void 0x0,!0x1,[]),[_0x1b7f09,_0x21bbcf]=f[_0x34cac4(0xdf)](null),[_0x2225c5,_0x22e40e]=f['useState'](h[_0x34cac4(0xd9)]),_0x105a4e=f[_0x34cac4(0x7d)](null);return f['useEffect'](()=>(_0xbbe0eb&&_0x2648a3[_0x34cac4(0xfc)](_0xbbe0eb['getUnitId']())[_0x34cac4(0x71)](_0x438ce1=>{var _0x328f3c=_0x34cac4;_0x21bbcf(_0x438ce1),_0x105a4e[_0x328f3c(0x104)]=_0x438ce1[_0x328f3c(0xb8)][_0x328f3c(0xc6)](_0x44c8f5=>{_0x22e40e(_0x44c8f5);});}),()=>{var _0x4ea660=_0x34cac4,_0x1b3ae1;(_0x1b3ae1=_0x105a4e['current'])==null||_0x1b3ae1[_0x4ea660(0x7b)](),_0x105a4e[_0x4ea660(0x104)]=null;}),[_0xbbe0eb,_0x2648a3]),_0x1b7f09?l['jsx'](g[_0x34cac4(0x138)],{'align':_0x34cac4(0xac),'disabled':_0x2225c5===h[_0x34cac4(0x10d)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x34cac4(0xa4)](K,{'status':_0x2225c5,'coordinator':_0x1b7f09}),'children':l['jsx'](_0x34cac4(0x10b),{'className':g[_0x34cac4(0x80)](_0x34cac4(0x91),{'univer-cursor-not-allowed':_0x2225c5===h[_0x34cac4(0x10d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2225c5!==h[_0x34cac4(0x10d)]}),'type':_0x34cac4(0x10b),'children':l[_0x34cac4(0xa4)](P,{'className':_0x34cac4(0xb9)})})}):null;}function K(_0xe33471){var _0x2e1901=_0x31d807;const {status:_0x490f07,coordinator:_0x56d8b3}=_0xe33471;switch(_0x490f07){case h[_0x2e1901(0xd9)]:return l[_0x2e1901(0xa4)](z,{'coordinator':_0x56d8b3});case h[_0x2e1901(0x6f)]:return l[_0x2e1901(0xa4)](Q,{'coordinator':_0x56d8b3});case h[_0x2e1901(0x8b)]:return l[_0x2e1901(0xa4)](X,{'coordinator':_0x56d8b3});case h['OFFLINE']:return l[_0x2e1901(0xa4)](te,{});case h[_0x2e1901(0x11d)]:return l['jsx'](ee,{'coordinator':_0x56d8b3});default:return null;}}function z(_0x1c33bb){var _0x3fdd33=_0x31d807;const {coordinator:_0x78c979}=_0x1c33bb;return l['jsxs'](l[_0x3fdd33(0x9c)],{'children':[l[_0x3fdd33(0xa4)]('div',{'className':_0x3fdd33(0xd2),'children':'Present\x20this\x20document'}),l[_0x3fdd33(0xa4)](g[_0x3fdd33(0x142)],{'onClick':()=>_0x78c979[_0x3fdd33(0x109)](),'children':_0x3fdd33(0x10a)})]});}function Q(_0x55fc2b){var _0x1bc04d=_0x31d807;const {coordinator:_0x6a3a7}=_0x55fc2b;return l[_0x1bc04d(0x90)](l[_0x1bc04d(0x9c)],{'children':[l[_0x1bc04d(0xa4)](_0x1bc04d(0x93),{'className':_0x1bc04d(0xd2),'children':_0x1bc04d(0xef)}),l['jsx'](g['Button'],{'onClick':()=>_0x6a3a7[_0x1bc04d(0xc3)](),'children':_0x1bc04d(0x96)})]});}function X(_0x4eca49){var _0x3c9a38=_0x31d807;const {coordinator:_0x3fd40c}=_0x4eca49;return l[_0x3c9a38(0x90)](l[_0x3c9a38(0x9c)],{'children':[l['jsx'](_0x3c9a38(0x93),{'className':_0x3c9a38(0xd2),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x3c9a38(0xa4)](g[_0x3c9a38(0x142)],{'variant':_0x3c9a38(0xff),'onClick':()=>_0x3fd40c[_0x3c9a38(0xfb)](),'children':'Start\x20following'})]});}function ee(_0xd0b9d3){var _0x582610=_0x31d807;const {coordinator:_0x3e18b8}=_0xd0b9d3;return l['jsxs'](l['Fragment'],{'children':[l[_0x582610(0xa4)](_0x582610(0x93),{'className':_0x582610(0xd2),'children':_0x582610(0xd5)}),l[_0x582610(0xa4)](g[_0x582610(0x142)],{'variant':_0x582610(0x11a),'onClick':()=>_0x3e18b8['stopPresenting'](),'children':_0x582610(0xd7)})]});}function te(){var _0x4e2309=_0x31d807;return l[_0x4e2309(0xa4)](l[_0x4e2309(0x9c)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x31d807(0x100)],ne=(_0x51d95d,_0x122fb8,_0x292835,_0x126f8a)=>{var _0x3a2d6a=_0x31d807;for(var _0x464408=_0x126f8a>0x1?void 0x0:_0x126f8a?ie(_0x122fb8,_0x292835):_0x122fb8,_0x4b899c=_0x51d95d[_0x3a2d6a(0xdd)]-0x1,_0x323a49;_0x4b899c>=0x0;_0x4b899c--)(_0x323a49=_0x51d95d[_0x4b899c])&&(_0x464408=_0x323a49(_0x464408)||_0x464408);return _0x464408;},L=(_0x53c207,_0x4ccd32)=>(_0x34d7df,_0x49ed52)=>_0x4ccd32(_0x34d7df,_0x49ed52,_0x53c207);exports[_0x31d807(0x77)]=class extends o['Disposable']{constructor(_0x3dc289,_0x205698){var _0x556e59=_0x31d807;super(),this[_0x556e59(0xad)]=_0x3dc289,this[_0x556e59(0x12b)]=_0x205698,this[_0x556e59(0xae)]();}[_0x31d807(0xae)](){var _0x3c848e=_0x31d807;this[_0x3c848e(0xba)](this[_0x3c848e(0x12b)][_0x3c848e(0xa9)](p[_0x3c848e(0x74)]['HEADER_MENU'],()=>p[_0x3c848e(0x147)](A,this['_injector'])));}},exports[_0x31d807(0x77)]=ne([L(0x0,o[_0x31d807(0x128)](o[_0x31d807(0x132)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);var re=Object[_0x31d807(0x13a)],se=Object[_0x31d807(0x100)],oe=(_0x2fe5b4,_0x5af369,_0x321fff)=>_0x5af369 in _0x2fe5b4?re(_0x2fe5b4,_0x5af369,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x321fff}):_0x2fe5b4[_0x5af369]=_0x321fff,ae=(_0x4de540,_0x4cfd7d,_0x15c33d,_0x113505)=>{var _0x55c82e=_0x31d807;for(var _0x4c28ab=_0x113505>0x1?void 0x0:_0x113505?se(_0x4cfd7d,_0x15c33d):_0x4cfd7d,_0x2d8154=_0x4de540[_0x55c82e(0xdd)]-0x1,_0x3576b2;_0x2d8154>=0x0;_0x2d8154--)(_0x3576b2=_0x4de540[_0x2d8154])&&(_0x4c28ab=_0x3576b2(_0x4c28ab)||_0x4c28ab);return _0x4c28ab;},N=(_0x3c3fae,_0x3519ba)=>(_0x3a3c31,_0xa93248)=>_0x3519ba(_0x3a3c31,_0xa93248,_0x3c3fae),T=(_0x211c24,_0x490a02,_0x39c0e5)=>oe(_0x211c24,typeof _0x490a02!=_0x31d807(0x97)?_0x490a02+'':_0x490a02,_0x39c0e5);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x31d807(0x12a)]=class extends o[_0x31d807(0x139)]{constructor(_0x492673=x,_0x4073bf,_0x2d5e3e){var _0x3c5ba1=_0x31d807;super(),this[_0x3c5ba1(0xbd)]=_0x492673,this[_0x3c5ba1(0xad)]=_0x4073bf,this['_configService']=_0x2d5e3e;const {..._0x29d3f1}=o['merge']({},x,this['_config']);this['_configService'][_0x3c5ba1(0x150)]($,_0x29d3f1);}[_0x31d807(0xd0)](){var _0x4d8449=_0x31d807;o['registerDependencies'](this['_injector'],o['mergeOverrideWithDependencies']([[O],[exports[_0x4d8449(0xcf)]],[E],[exports['DesktopLiveShareController']]],this[_0x4d8449(0xbd)][_0x4d8449(0xee)])),o[_0x4d8449(0xeb)](this[_0x4d8449(0xad)],[[E]]);}[_0x31d807(0x9d)](){var _0x362ae1=_0x31d807;o[_0x362ae1(0xeb)](this[_0x362ae1(0xad)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x31d807(0x12a)],_0x31d807(0x89),o[_0x31d807(0x106)][_0x31d807(0x115)]),T(exports[_0x31d807(0x12a)],_0x31d807(0x7f),le),exports['UniverLiveSharePlugin']=ae([o[_0x31d807(0x92)](m[_0x31d807(0xf8)]),N(0x1,o[_0x31d807(0x128)](o[_0x31d807(0x132)])),N(0x2,o[_0x31d807(0x82)])],exports[_0x31d807(0x12a)]),exports[_0x31d807(0xd3)]=A,exports['LiveShareService']=O,exports['LiveShareStatus']=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3f6484=_0x1eb5;(function(_0xad7a7d,_0x7abc13){var _0x2887f0=_0x1eb5,_0xcae380=_0xad7a7d();while(!![]){try{var _0x3ec156=-parseInt(_0x2887f0(0x1ff))/0x1+parseInt(_0x2887f0(0x1b7))/0x2*(-parseInt(_0x2887f0(0x1cf))/0x3)+-parseInt(_0x2887f0(0x1c3))/0x4+parseInt(_0x2887f0(0x1b9))/0x5+parseInt(_0x2887f0(0x19d))/0x6+parseInt(_0x2887f0(0x22f))/0x7*(parseInt(_0x2887f0(0x1d1))/0x8)+parseInt(_0x2887f0(0x1b2))/0x9*(parseInt(_0x2887f0(0x21d))/0xa);if(_0x3ec156===_0x7abc13)break;else _0xcae380['push'](_0xcae380['shift']());}catch(_0x374bbe){_0xcae380['push'](_0xcae380['shift']());}}}(_0x7f9e,0x73518));var q=Object[_0x3f6484(0x198)],z=(_0x39865d,_0x12de5c,_0x597d26)=>_0x12de5c in _0x39865d?q(_0x39865d,_0x12de5c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x597d26}):_0x39865d[_0x12de5c]=_0x597d26,d=(_0x41cc04,_0x54f721,_0x5d0032)=>z(_0x41cc04,typeof _0x54f721!=_0x3f6484(0x1fa)?_0x54f721+'':_0x54f721,_0x5d0032);import{CollaborationSessionService as _0x44272f,SessionStatus as _0x3b378c,UniverCollaborationClientPlugin as _0x589148}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1c6341,toDisposable as _0x5d9009,Inject as _0xb0930d,IUniverInstanceService as _0x42e888,Injector as _0xd563d9,IConfigService as _0x12e4b9,ICommandService as _0x49d015,RxDisposable as _0x395f61,UniverInstanceType as _0x4d54d3,DisposableCollection as _0x3dec07,CommandType as _0x174ae4,DependentOn as _0x311632,Plugin as _0x1608cc,merge as _0x17d777,registerDependencies as _0x2e569d,mergeOverrideWithDependencies as _0x4e9805,touchDependencies as _0x5a07de}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x5290c1,InsertSheetMutation as _0x4ed00e}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x20b3ac,SetScrollOperation as _0x56c318}from'@univerjs/sheets-ui';import{useDependency as _0xa5510d,useObservable as _0x2d9124,IUIPartsService as _0x66463e,BuiltInUIPart as _0x40a2e7,connectInjector as _0x326657}from'@univerjs/ui';import{jsx as _0x43ea3b,jsxs as _0x3a2126,Fragment as _0x4fe31c}from'react/jsx-runtime';import{Dropdown as _0x1da88c,clsx as _0x5c6958,Button as _0x5149cf}from'@univerjs/design';import{forwardRef as _0x2fbe4c,useRef as _0x2d77f1,createElement as _0x540073,useState as _0x54cd30,useEffect as _0x27b4cf}from'react';import{CollaborationEvent as _0x3e33df,parseProtocolChangeset as _0x20f59d}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3ea211,Subject as _0x3cce0e}from'rxjs';import{takeUntil as _0x8cada7,throttleTime as _0x1b3bef}from'rxjs/operators';const Oe=_0x3f6484(0x23a),T={};class L extends _0x1c6341{constructor(){var _0x34e1a1=_0x3f6484;super(...arguments),d(this,_0x34e1a1(0x1f0),new Set()),d(this,_0x34e1a1(0x216),new Set());}[_0x3f6484(0x19a)](_0xf1c070){var _0x37d44a=_0x3f6484;return this['_sharedOperations'][_0x37d44a(0x1da)](_0xf1c070),_0x5d9009(()=>this[_0x37d44a(0x1f0)][_0x37d44a(0x1a2)](_0xf1c070));}[_0x3f6484(0x1fc)](_0x46c8bd){var _0x1b4fe6=_0x3f6484;return this['_reporters'][_0x1b4fe6(0x1da)](_0x46c8bd),_0x5d9009(()=>this[_0x1b4fe6(0x216)][_0x1b4fe6(0x1a2)](_0x46c8bd));}[_0x3f6484(0x1d2)](_0x560899){var _0x69f3fa=_0x3f6484;return this['_sharedOperations'][_0x69f3fa(0x1f8)](_0x560899);}[_0x3f6484(0x214)](_0x4b8202){var _0x3c5fcb=_0x3f6484;return Array[_0x3c5fcb(0x21a)](this[_0x3c5fcb(0x216)])[_0x3c5fcb(0x1a1)](_0x31be3c=>_0x31be3c(_0x4b8202));}}var Ee=Object[_0x3f6484(0x223)],we=(_0x14482a,_0x52c38b,_0xe2aac6,_0x3c4945)=>{var _0x2ac8fc=_0x3f6484;for(var _0x1e104d=_0x3c4945>0x1?void 0x0:_0x3c4945?Ee(_0x52c38b,_0xe2aac6):_0x52c38b,_0x210ae4=_0x14482a[_0x2ac8fc(0x232)]-0x1,_0x1423c2;_0x210ae4>=0x0;_0x210ae4--)(_0x1423c2=_0x14482a[_0x210ae4])&&(_0x1e104d=_0x1423c2(_0x1e104d)||_0x1e104d);return _0x1e104d;},Ne=(_0x5bdb69,_0x2a54fa)=>(_0x451e32,_0x522dcb)=>_0x2a54fa(_0x451e32,_0x522dcb,_0x5bdb69);let m=class extends _0x1c6341{constructor(_0x516b8a){var _0x25ca81=_0x3f6484;super(),this[_0x25ca81(0x210)]=_0x516b8a,this[_0x25ca81(0x1c1)]();}['_init'](){[_0x20b3ac['id'],_0x56c318['id'],_0x5290c1['id']]['forEach'](_0x31ab1f=>{var _0x52efaf=_0x1eb5;this[_0x52efaf(0x1df)](this[_0x52efaf(0x210)]['registerSharedOperation'](_0x31ab1f));});}};m=we([Ne(0x0,_0xb0930d(L))],m);var c=function(){var _0x5c52dd=_0x3f6484;return c=Object[_0x5c52dd(0x197)]||function(_0xfe9a91){var _0x356857=_0x5c52dd;for(var _0xb8cb0c,_0x2b933e=0x1,_0x55bcdd=arguments['length'];_0x2b933e<_0x55bcdd;_0x2b933e++){_0xb8cb0c=arguments[_0x2b933e];for(var _0x579685 in _0xb8cb0c)Object[_0x356857(0x230)][_0x356857(0x1fb)][_0x356857(0x192)](_0xb8cb0c,_0x579685)&&(_0xfe9a91[_0x579685]=_0xb8cb0c[_0x579685]);}return _0xfe9a91;},c[_0x5c52dd(0x1b0)](this,arguments);},Ce=function(_0x1a4d9e,_0x2ad66e){var _0x2bd257=_0x3f6484,_0x16c1e7={};for(var _0x5cc590 in _0x1a4d9e)Object['prototype']['hasOwnProperty'][_0x2bd257(0x192)](_0x1a4d9e,_0x5cc590)&&_0x2ad66e['indexOf'](_0x5cc590)<0x0&&(_0x16c1e7[_0x5cc590]=_0x1a4d9e[_0x5cc590]);if(_0x1a4d9e!=null&&typeof Object[_0x2bd257(0x1a0)]==_0x2bd257(0x1a5)){for(var _0x2571b4=0x0,_0x5cc590=Object[_0x2bd257(0x1a0)](_0x1a4d9e);_0x2571b4<_0x5cc590[_0x2bd257(0x232)];_0x2571b4++)_0x2ad66e[_0x2bd257(0x222)](_0x5cc590[_0x2571b4])<0x0&&Object[_0x2bd257(0x230)][_0x2bd257(0x1e6)][_0x2bd257(0x192)](_0x1a4d9e,_0x5cc590[_0x2571b4])&&(_0x16c1e7[_0x5cc590[_0x2571b4]]=_0x1a4d9e[_0x5cc590[_0x2571b4]]);}return _0x16c1e7;},W=_0x2fbe4c(function(_0x4650a6,_0x11915e){var _0x38feb2=_0x3f6484,_0xcc8b6b=_0x4650a6[_0x38feb2(0x22e)],_0x5de131=_0x4650a6['id'],_0xf9f63d=_0x4650a6[_0x38feb2(0x238)],_0x49d759=_0x4650a6[_0x38feb2(0x1c2)],_0x189f32=Ce(_0x4650a6,[_0x38feb2(0x22e),'id',_0x38feb2(0x238),_0x38feb2(0x1c2)]),_0x8a9249='univerjs-icon\x20univerjs-icon-'[_0x38feb2(0x1e3)](_0x5de131,'\x20')[_0x38feb2(0x1e3)](_0xf9f63d||'')[_0x38feb2(0x217)](),_0x32ea4c=_0x2d77f1('_'[_0x38feb2(0x1e3)](Le()));return Y(_0xcc8b6b,''[_0x38feb2(0x1e3)](_0x5de131),{'defIds':_0xcc8b6b[_0x38feb2(0x1e9)],'idSuffix':_0x32ea4c[_0x38feb2(0x1ec)]},c({'ref':_0x11915e,'className':_0x8a9249},_0x189f32),_0x49d759);});function Y(_0x13e041,_0x531d8b,_0x2fd716,_0x150bb7,_0x3de9b4){var _0x15a491=_0x3f6484;return _0x540073(_0x13e041[_0x15a491(0x21c)],c(c({'key':_0x531d8b},De(_0x13e041,_0x2fd716,_0x3de9b4)),_0x150bb7),(xe(_0x13e041,_0x2fd716)[_0x15a491(0x1bc)]||[])[_0x15a491(0x1a1)](function(_0xc2e75,_0x49b9c7){var _0x19e03d=_0x15a491;return Y(_0xc2e75,''[_0x19e03d(0x1e3)](_0x531d8b,'-')[_0x19e03d(0x1e3)](_0x13e041[_0x19e03d(0x21c)],'-')['concat'](_0x49b9c7),_0x2fd716,void 0x0,_0x3de9b4);}));}function De(_0x16ebcc,_0x75b34b,_0xcb0a9c){var _0x1f3bde=_0x3f6484,_0x6723ef=c({},_0x16ebcc[_0x1f3bde(0x1c0)]);_0xcb0a9c!=null&&_0xcb0a9c[_0x1f3bde(0x1bb)]&&_0x6723ef[_0x1f3bde(0x1e7)]===_0x1f3bde(0x1bb)&&(_0x6723ef[_0x1f3bde(0x1e7)]=_0xcb0a9c[_0x1f3bde(0x1bb)]),_0x16ebcc[_0x1f3bde(0x21c)]===_0x1f3bde(0x1db)&&_0x6723ef['id']&&(_0x6723ef['id']=_0x6723ef['id']+_0x75b34b[_0x1f3bde(0x21b)]),Object['entries'](_0x6723ef)['forEach'](function(_0x2c895a){var _0x49c895=_0x1f3bde,_0x5c9904=_0x2c895a[0x0],_0x40a37f=_0x2c895a[0x1];_0x5c9904==='mask'&&typeof _0x40a37f==_0x49c895(0x1ed)&&(_0x6723ef[_0x5c9904]=_0x40a37f[_0x49c895(0x1ea)](/url\(#(.*)\)/,_0x49c895(0x1bd)[_0x49c895(0x1e3)](_0x75b34b[_0x49c895(0x21b)],')')));});var _0x2fd371=_0x75b34b[_0x1f3bde(0x1e9)];return!_0x2fd371||_0x2fd371['length']===0x0||(_0x16ebcc[_0x1f3bde(0x21c)]===_0x1f3bde(0x1ac)&&_0x6723ef[_0x1f3bde(0x1dc)]&&(_0x6723ef[_0x1f3bde(0x1dc)]=_0x6723ef[_0x1f3bde(0x1dc)]+_0x75b34b['idSuffix']),Object[_0x1f3bde(0x239)](_0x6723ef)['forEach'](function(_0x37927e){var _0x1b7d52=_0x1f3bde,_0x4260ef=_0x37927e[0x0],_0x530e04=_0x37927e[0x1];typeof _0x530e04==_0x1b7d52(0x1ed)&&(_0x6723ef[_0x4260ef]=_0x530e04['replace'](/url\(#(.*)\)/,_0x1b7d52(0x1bd)[_0x1b7d52(0x1e3)](_0x75b34b['idSuffix'],')')));})),_0x6723ef;}function xe(_0x4af652,_0x4465eb){var _0x4fcfff=_0x3f6484,_0x5b2fd8,_0x3d2eb9=_0x4465eb[_0x4fcfff(0x1e9)];return!_0x3d2eb9||_0x3d2eb9[_0x4fcfff(0x232)]===0x0?_0x4af652:_0x4af652['tag']===_0x4fcfff(0x1a3)&&(!((_0x5b2fd8=_0x4af652['children'])===null||_0x5b2fd8===void 0x0)&&_0x5b2fd8[_0x4fcfff(0x232)])?c(c({},_0x4af652),{'children':_0x4af652['children'][_0x4fcfff(0x1a1)](function(_0x10eb05){var _0xc8f5d2=_0x4fcfff;return typeof _0x10eb05['attrs']['id']=='string'&&_0x3d2eb9&&_0x3d2eb9[_0xc8f5d2(0x1a8)](_0x10eb05[_0xc8f5d2(0x1c0)]['id'])?c(c({},_0x10eb05),{'attrs':c(c({},_0x10eb05['attrs']),{'id':_0x10eb05[_0xc8f5d2(0x1c0)]['id']+_0x4465eb[_0xc8f5d2(0x21b)]})}):_0x10eb05;})}):_0x4af652;}function Le(){var _0x5d4095=_0x3f6484;return Math[_0x5d4095(0x231)]()[_0x5d4095(0x236)](0x24)[_0x5d4095(0x201)](0x2,0x8);}W[_0x3f6484(0x203)]=_0x3f6484(0x1f7);function _0x7f9e(){var _0x3eb531=['M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','getCurrentTypeOfUnit$','asObservable','requireSession','add','mask','xlink:href','getLiveShareCoordinator','OPERATION','disposeWithMe','_commandService','_handleNewChangeSets','getUnitId','concat','_presenter','sessionStatus$','propertyIsEnumerable','fill','find','defIds','replace','tryStartPresenting','current','string','pluginName','dispose','_sharedOperations','LIVESHARE_NEW_HOST','sheet','subscribe','then','presenting','currentColor','UniverIcon','has','getMemberID','symbol','hasOwnProperty','registerInitialStateReporter','_commandDisposable','_unitID','242377YmzVxA','offline','substring','You\x27re\x20presenting\x20the\x20document','displayName','_status','UNIVER_SHEET','_handleOffline','end','parse','status$','HEADER_MENU','not-following','_configService','stopPresenting','stopFollowing','event$','_liveShareService','_collabSessionService','_beIdle','_startLiveShareCoordinator','getInitialStates','Start\x20following','_reporters','trim','override','ONLINE','from','idSuffix','tag','10IGfOOw','NOT_FOLLOWING','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startFollowing','_collabSession','indexOf','getOwnPropertyDescriptor','_handleTerminate','_stopPresenting','_entities','http://www.w3.org/2000/svg','presenter','executeCommand','none','You\x27re\x20not\x20following\x20the\x20presenter','_config','next','icon','7CZhKKg','prototype','random','length','LIVESHARE_TERMINATE','NEW_CHANGESETS','0\x200\x2017\x2017','toString','_status$','className','entries','live-share.config','_startPresenting','pipe','You\x27re\x20following\x20the\x20presenter','getConfig','setConfig','complete','_injector','registerComponent','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','onStarting','FOLLOWING','call','default','set','values','Start','assign','defineProperty','forEach','registerSharedOperation','div','_handleOnline','823128IVqPmj','following','_uiPartsService','getOwnPropertySymbols','map','delete','defs','_univerInstanceService','function','idle','stringify','includes','type','text','Stop\x20presenting','use','_mountLiveShare','svg','onCommandExecuted','apply','params','6321213RJkBNu','_fetchOperations','dispose$','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','univer-size-4','801804JtaDXZ','get','3310865aVKwsL','send','colorChannel1','children','url(#$1','LIVESHARE_OPERATION','evenodd','attrs','_init','extend','2420456oEYcnj','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','PRESENTING','getTypeOfUnitDisposed$','init','path','data','IDLE','_stopFollowing','LiveShareIcon','mutations','1em','3KgRTLY','startFollowing','1752152PGmLKe','shouldShareOperation','OFFLINE','live-share-icon','Stop\x20following'];_0x7f9e=function(){return _0x3eb531;};return _0x7f9e();}var ye={'tag':_0x3f6484(0x1ae),'attrs':{'xmlns':_0x3f6484(0x227),'fill':_0x3f6484(0x22a),'viewBox':_0x3f6484(0x235),'width':_0x3f6484(0x1ce),'height':_0x3f6484(0x1ce)},'children':[{'tag':_0x3f6484(0x1c8),'attrs':{'fill':_0x3f6484(0x1f6),'d':_0x3f6484(0x1d6)}},{'tag':_0x3f6484(0x1c8),'attrs':{'fill':_0x3f6484(0x1f6),'d':_0x3f6484(0x1c4),'fillRule':_0x3f6484(0x1bf),'clipRule':_0x3f6484(0x1bf)}}]},B=_0x2fbe4c(function(_0x4435b8,_0x49b74c){var _0x2cb07c=_0x3f6484;return _0x540073(W,Object[_0x2cb07c(0x197)]({},_0x4435b8,{'id':_0x2cb07c(0x1d4),'ref':_0x49b74c,'icon':ye}));});B['displayName']=_0x3f6484(0x1cc);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x3a7b9a,_0x425914,_0x4e20d1,_0x9b0c31)=>{var _0xcca0f1=_0x3f6484;for(var _0x1b158c=_0x9b0c31>0x1?void 0x0:_0x9b0c31?Re(_0x425914,_0x4e20d1):_0x425914,_0x9888e0=_0x3a7b9a[_0xcca0f1(0x232)]-0x1,_0x3495da;_0x9888e0>=0x0;_0x9888e0--)(_0x3495da=_0x3a7b9a[_0x9888e0])&&(_0x1b158c=_0x3495da(_0x1b158c)||_0x1b158c);return _0x1b158c;},f=(_0x56e26c,_0x5d4780)=>(_0x45d9d3,_0x4f8937)=>_0x5d4780(_0x45d9d3,_0x4f8937,_0x56e26c);let I=class extends _0x395f61{constructor(_0x1dc664,_0x5d4ab1,_0x3b7229){var _0x53726c=_0x3f6484;super(),d(this,_0x53726c(0x226),new Map()),(this[_0x53726c(0x1a4)]=_0x1dc664,this[_0x53726c(0x241)]=_0x5d4ab1,this[_0x53726c(0x211)]=_0x3b7229,this[_0x53726c(0x1c1)]());}async[_0x3f6484(0x1dd)](_0x452c4f){var _0x20d26f=_0x3f6484;return this['_entities'][_0x20d26f(0x1f8)](_0x452c4f)||await this[_0x20d26f(0x213)](_0x452c4f),this[_0x20d26f(0x226)][_0x20d26f(0x1b8)](_0x452c4f);}[_0x3f6484(0x1c1)](){var _0x2bc87f=_0x3f6484;this[_0x2bc87f(0x1a4)]['getTypeOfUnitAdded$'](_0x4d54d3[_0x2bc87f(0x205)])[_0x2bc87f(0x23c)](_0x8cada7(this[_0x2bc87f(0x1b4)]))[_0x2bc87f(0x1f3)](async _0x15e72b=>{var _0x15b0b6=_0x2bc87f;const _0x2212e0=_0x15e72b[_0x15b0b6(0x1e2)]();this[_0x15b0b6(0x226)][_0x15b0b6(0x1f8)](_0x2212e0)||this[_0x15b0b6(0x213)](_0x2212e0);}),this[_0x2bc87f(0x1a4)][_0x2bc87f(0x1c6)](_0x4d54d3[_0x2bc87f(0x205)])[_0x2bc87f(0x23c)](_0x8cada7(this['dispose$']))[_0x2bc87f(0x1f3)](_0x2d6ae1=>{var _0x3fd885=_0x2bc87f;const _0x2b4e67=_0x2d6ae1[_0x3fd885(0x1e2)](),_0x2668a5=this['_entities'][_0x3fd885(0x1b8)](_0x2b4e67);_0x2668a5==null||_0x2668a5[_0x3fd885(0x1ef)]();});}async[_0x3f6484(0x213)](_0x567d72){var _0x36e6cf=_0x3f6484;const _0x45f211=await this[_0x36e6cf(0x211)][_0x36e6cf(0x1d9)](_0x567d72),_0x63ab66=this[_0x36e6cf(0x241)]['createInstance'](C,_0x567d72,_0x45f211);return _0x63ab66[_0x36e6cf(0x1c7)](),this['_entities'][_0x36e6cf(0x194)](_0x567d72,_0x63ab66),_0x63ab66;}};I=Z([f(0x0,_0x42e888),f(0x1,_0xb0930d(_0xd563d9)),f(0x2,_0xb0930d(_0x44272f))],I);var h=(_0x581310=>(_0x581310['OFFLINE']=_0x3f6484(0x200),_0x581310[_0x3f6484(0x1ca)]='idle',_0x581310['FOLLOWING']=_0x3f6484(0x19e),_0x581310[_0x3f6484(0x21e)]=_0x3f6484(0x20b),_0x581310[_0x3f6484(0x1c5)]=_0x3f6484(0x1f5),_0x581310))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x395f61{constructor(_0x494d65,_0x46c792,_0x149535,_0x18250f,_0x4a8932){var _0x22ef4a=_0x3f6484;super(),d(this,_0x22ef4a(0x237),new _0x3ea211(_0x22ef4a(0x1a6))),d(this,_0x22ef4a(0x209),this[_0x22ef4a(0x237)][_0x22ef4a(0x1d8)]()),d(this,_0x22ef4a(0x1c1),!0x1),d(this,_0x22ef4a(0x1fd),null),d(this,_0x22ef4a(0x1e4),null),(this['_unitID']=_0x494d65,this['_collabSession']=_0x46c792,this['_configService']=_0x149535,this[_0x22ef4a(0x210)]=_0x18250f,this[_0x22ef4a(0x1e0)]=_0x4a8932);}get[_0x3f6484(0x204)](){var _0x2cc9fb=_0x3f6484;return this[_0x2cc9fb(0x237)]['getValue']();}[_0x3f6484(0x1ef)](){var _0x39ef2c=_0x3f6484,_0x4fe5c4;(_0x4fe5c4=this[_0x39ef2c(0x1fd)])==null||_0x4fe5c4[_0x39ef2c(0x1ef)](),this[_0x39ef2c(0x237)][_0x39ef2c(0x22d)](_0x39ef2c(0x1a6)),this[_0x39ef2c(0x237)][_0x39ef2c(0x240)]();}[_0x3f6484(0x1c7)](){var _0x18572f=_0x3f6484;this[_0x18572f(0x1c1)]||(this[_0x18572f(0x1c1)]=!0x0,this['_collabSession'][_0x18572f(0x1e5)][_0x18572f(0x23c)](_0x8cada7(this[_0x18572f(0x1b4)]))[_0x18572f(0x1f3)](_0x42ae8c=>{var _0x31b91f=_0x18572f;switch(_0x42ae8c){case _0x3b378c[_0x31b91f(0x1d3)]:this[_0x31b91f(0x206)]();break;case _0x3b378c[_0x31b91f(0x219)]:this[_0x31b91f(0x19c)]();break;}}),this[_0x18572f(0x221)][_0x18572f(0x20f)][_0x18572f(0x23c)](_0x8cada7(this[_0x18572f(0x1b4)]))[_0x18572f(0x1f3)](_0x196d01=>{var _0x3dfae5=_0x18572f;const {eventID:_0x4f894f}=_0x196d01;switch(_0x4f894f){case _0x3e33df[_0x3dfae5(0x1f1)]:this['_handleNewHost'](_0x196d01);break;case _0x3e33df[_0x3dfae5(0x1be)]:this['_handleOperation'](_0x196d01);break;case _0x3e33df[_0x3dfae5(0x233)]:this[_0x3dfae5(0x224)]();break;case _0x3e33df[_0x3dfae5(0x234)]:this[_0x3dfae5(0x1e1)](_0x196d01);break;}}));}[_0x3f6484(0x1eb)](){var _0x438b72=_0x3f6484;this[_0x438b72(0x221)][_0x438b72(0x1ba)]({'eventID':_0x3e33df['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x438b72(0x1fe)],'userID':this[_0x438b72(0x221)][_0x438b72(0x1f9)]()}},this[_0x438b72(0x1fe)]);}[_0x3f6484(0x20d)](){var _0x3e4909=_0x3f6484;this['_status']==='presenting'&&(this['_status$'][_0x3e4909(0x22d)](_0x3e4909(0x1a6)),this[_0x3e4909(0x221)]['send']({'eventID':_0x3e33df[_0x3e4909(0x233)],'data':{'unitID':this['_unitID']}},this[_0x3e4909(0x1fe)]));}[_0x3f6484(0x1d0)](){var _0x127056=_0x3f6484;this[_0x127056(0x204)]===_0x127056(0x20b)&&(this[_0x127056(0x237)][_0x127056(0x22d)](_0x127056(0x19e)),this[_0x127056(0x220)]());}[_0x3f6484(0x20e)](){var _0x1a6d1a=_0x3f6484;this[_0x1a6d1a(0x204)]===_0x1a6d1a(0x19e)&&this[_0x1a6d1a(0x1cb)]();}['_handleNewHost'](_0x5a6bda){var _0x10c723=_0x3f6484;const {presenter:_0x2a7e68}=_0x5a6bda[_0x10c723(0x1c9)],_0x4e429d=this[_0x10c723(0x221)][_0x10c723(0x1f9)]();this[_0x10c723(0x1e4)]=_0x2a7e68,_0x2a7e68===_0x4e429d?(this['_stopFollowing'](),this[_0x10c723(0x23b)]()):this[_0x10c723(0x204)]!==_0x10c723(0x20b)&&(this[_0x10c723(0x225)](),this[_0x10c723(0x220)]());}[_0x3f6484(0x1b3)](){var _0x49aa09=_0x3f6484;const _0xa41da9={'eventID':_0x3e33df['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x49aa09(0x1ba)](_0xa41da9,this[_0x49aa09(0x1fe)]);}[_0x3f6484(0x224)](){var _0x1f9165=_0x3f6484;this[_0x1f9165(0x1e4)]=null,this[_0x1f9165(0x204)]!==_0x1f9165(0x1f5)&&this[_0x1f9165(0x212)]();}['_handleNewChangeSets'](_0x461d9a){var _0x4c0f3d=_0x3f6484;if(this[_0x4c0f3d(0x204)]===_0x4c0f3d(0x19e)&&this[_0x4c0f3d(0x1e4)]===_0x461d9a[_0x4c0f3d(0x1c9)]['memberID']){const _0x4f74bf=_0x20f59d(_0x461d9a[_0x4c0f3d(0x1c9)])[_0x4c0f3d(0x1cd)]['reverse']()[_0x4c0f3d(0x1e8)](_0x193b6a=>_0x193b6a['id']===_0x4ed00e['id']);if(_0x4f74bf){const _0x276c08=_0x4f74bf[_0x4c0f3d(0x1b1)]['unitId'],_0x3ed59c=_0x4f74bf[_0x4c0f3d(0x1b1)][_0x4c0f3d(0x1f2)]['id'];setTimeout(()=>{var _0x15ee85=_0x4c0f3d;this[_0x15ee85(0x1e0)][_0x15ee85(0x229)](_0x5290c1['id'],{'unitId':_0x276c08,'subUnitId':_0x3ed59c},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x3a9644=_0x3f6484;this[_0x3a9644(0x237)]['next']('presenting');const _0x1162ef=new Map(),_0x4965b0=this[_0x3a9644(0x1fd)]=new _0x3dec07();_0x4965b0[_0x3a9644(0x1da)](_0x5d9009(()=>{var _0x26301d=_0x3a9644;_0x1162ef['forEach'](_0x5dd723=>_0x5dd723[_0x26301d(0x240)]()),_0x1162ef['clear']();})),_0x4965b0[_0x3a9644(0x1da)](this[_0x3a9644(0x1e0)][_0x3a9644(0x1af)](_0x2d852f=>{var _0x58e171=_0x3a9644,_0x5beb35;if(_0x2d852f[_0x58e171(0x1a9)]!==_0x174ae4[_0x58e171(0x1de)]||!this[_0x58e171(0x210)][_0x58e171(0x1d2)](_0x2d852f['id']))return;const {id:_0x92cc89}=_0x2d852f;let _0x308529;_0x1162ef[_0x58e171(0x1f8)](_0x92cc89)?_0x308529=_0x1162ef[_0x58e171(0x1b8)](_0x92cc89):(_0x308529=new _0x3cce0e(),_0x1162ef[_0x58e171(0x194)](_0x92cc89,_0x308529),_0x308529[_0x58e171(0x23c)](_0x1b3bef((_0x5beb35=this[_0x58e171(0x20c)][_0x58e171(0x23e)](Pe))!=null?_0x5beb35:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x58e171(0x1f3)](_0x2636d0=>{var _0x445e4c=_0x58e171;this[_0x445e4c(0x221)][_0x445e4c(0x1ba)]({'eventID':_0x3e33df['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x445e4c(0x1fe)],'operations':{[_0x2636d0['id']]:{'id':_0x2636d0['id'],'params':JSON[_0x445e4c(0x1a7)](_0x2636d0[_0x445e4c(0x1b1)])}}}},this['_unitID']);})),_0x308529[_0x58e171(0x22d)](_0x2d852f);})),this[_0x3a9644(0x210)]['getInitialStates'](this['_unitID'])[_0x3a9644(0x199)](_0x466dd9=>this['_collabSession'][_0x3a9644(0x1ba)]({'eventID':_0x3e33df[_0x3a9644(0x1be)],'data':{'unitID':this['_unitID'],'operations':{[_0x466dd9['id']]:{'id':_0x466dd9['id'],'params':JSON[_0x3a9644(0x1a7)](_0x466dd9[_0x3a9644(0x1b1)])}}}},this[_0x3a9644(0x1fe)]));}[_0x3f6484(0x225)](){var _0x46b4bc=_0x3f6484,_0x9ed68b;this['_status$'][_0x46b4bc(0x22d)](_0x46b4bc(0x1a6)),(_0x9ed68b=this[_0x46b4bc(0x1fd)])==null||_0x9ed68b[_0x46b4bc(0x1ef)](),this[_0x46b4bc(0x1fd)]=null;}[_0x3f6484(0x220)](){var _0x39c7dd=_0x3f6484,_0x59b942;(_0x59b942=this['_commandDisposable'])==null||_0x59b942['dispose'](),this['_status$']['next'](_0x39c7dd(0x19e));}['_beIdle'](){var _0x45e4e2=_0x3f6484,_0x9bee58;this[_0x45e4e2(0x237)][_0x45e4e2(0x22d)]('idle'),(_0x9bee58=this[_0x45e4e2(0x1fd)])==null||_0x9bee58[_0x45e4e2(0x1ef)](),this[_0x45e4e2(0x1fd)]=null;}['_stopFollowing'](){var _0x597f23=_0x3f6484,_0x5ddbcd;this[_0x597f23(0x237)][_0x597f23(0x22d)](_0x597f23(0x20b)),(_0x5ddbcd=this[_0x597f23(0x1fd)])==null||_0x5ddbcd[_0x597f23(0x1ef)]();}['_handleOperation'](_0x17bd60){var _0xfb4874=_0x3f6484;if(['presenting',_0xfb4874(0x20b),'offline'][_0xfb4874(0x1a8)](this[_0xfb4874(0x204)])||!_0x17bd60['data'][_0xfb4874(0x228)]||_0x17bd60[_0xfb4874(0x1c9)][_0xfb4874(0x228)]===this[_0xfb4874(0x221)][_0xfb4874(0x1f9)]())return;this[_0xfb4874(0x204)]===_0xfb4874(0x1a6)&&this[_0xfb4874(0x220)]();const _0x965bf3=_0x17bd60[_0xfb4874(0x1c9)]['operations'];Object[_0xfb4874(0x195)](_0x965bf3)[_0xfb4874(0x199)](_0x4b4011=>{var _0x534f5a=_0xfb4874;this[_0x534f5a(0x1e0)][_0x534f5a(0x229)](_0x4b4011['id'],_0x4b4011[_0x534f5a(0x1b1)]?JSON[_0x534f5a(0x208)](_0x4b4011[_0x534f5a(0x1b1)]):null,{'fromCollab':!0x0});});}[_0x3f6484(0x206)](){var _0x30acc3=_0x3f6484,_0x42c01a;this['_status$'][_0x30acc3(0x22d)](_0x30acc3(0x200)),(_0x42c01a=this[_0x30acc3(0x1fd)])==null||_0x42c01a['dispose']();}[_0x3f6484(0x19c)](){var _0x259562=_0x3f6484;this[_0x259562(0x237)][_0x259562(0x22d)]('idle'),this[_0x259562(0x1b3)]();}};C=Z([f(0x2,_0x12e4b9),f(0x3,_0xb0930d(L)),f(0x4,_0x49d015)],C);function _0x1eb5(_0x1413f4,_0x250eb2){var _0x7f9ee4=_0x7f9e();return _0x1eb5=function(_0x1eb595,_0x5387a3){_0x1eb595=_0x1eb595-0x190;var _0x2df395=_0x7f9ee4[_0x1eb595];return _0x2df395;},_0x1eb5(_0x1413f4,_0x250eb2);}function Te(){var _0x583f4b=_0x3f6484;const _0x399aba=_0xa5510d(I),_0x28420b=_0xa5510d(_0x42e888),_0x51aeeb=_0x2d9124(()=>_0x28420b[_0x583f4b(0x1d7)](_0x4d54d3[_0x583f4b(0x205)]),void 0x0,!0x1,[]),[_0x52efed,_0x434724]=_0x54cd30(null),[_0x4b9a75,_0x55c526]=_0x54cd30(h[_0x583f4b(0x1ca)]),_0x46be48=_0x2d77f1(null);return _0x27b4cf(()=>(_0x51aeeb&&_0x399aba['getLiveShareCoordinator'](_0x51aeeb['getUnitId']())[_0x583f4b(0x1f4)](_0x5f192c=>{var _0x328361=_0x583f4b;_0x434724(_0x5f192c),_0x46be48[_0x328361(0x1ec)]=_0x5f192c[_0x328361(0x209)][_0x328361(0x1f3)](_0x3d4060=>{_0x55c526(_0x3d4060);});}),()=>{var _0x5cdf7b=_0x583f4b,_0x201cbb;(_0x201cbb=_0x46be48['current'])==null||_0x201cbb['unsubscribe'](),_0x46be48[_0x5cdf7b(0x1ec)]=null;}),[_0x51aeeb,_0x399aba]),_0x52efed?_0x43ea3b(_0x1da88c,{'align':_0x583f4b(0x207),'disabled':_0x4b9a75===h[_0x583f4b(0x1d3)],'className':_0x583f4b(0x1b5),'overlay':_0x43ea3b($e,{'status':_0x4b9a75,'coordinator':_0x52efed}),'children':_0x43ea3b('button',{'className':_0x5c6958(_0x583f4b(0x243),{'univer-cursor-not-allowed':_0x4b9a75===h[_0x583f4b(0x1d3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4b9a75!==h[_0x583f4b(0x1d3)]}),'type':'button','children':_0x43ea3b(B,{'className':_0x583f4b(0x1b6)})})}):null;}function $e(_0x13bc4c){var _0x265915=_0x3f6484;const {status:_0x48012f,coordinator:_0x516e3b}=_0x13bc4c;switch(_0x48012f){case h[_0x265915(0x1ca)]:return _0x43ea3b(Fe,{'coordinator':_0x516e3b});case h[_0x265915(0x191)]:return _0x43ea3b(He,{'coordinator':_0x516e3b});case h['NOT_FOLLOWING']:return _0x43ea3b(je,{'coordinator':_0x516e3b});case h[_0x265915(0x1d3)]:return _0x43ea3b(Ve,{});case h[_0x265915(0x1c5)]:return _0x43ea3b(Ue,{'coordinator':_0x516e3b});default:return null;}}function Fe(_0x573df3){var _0xa672ca=_0x3f6484;const {coordinator:_0xebfc2f}=_0x573df3;return _0x3a2126(_0x4fe31c,{'children':[_0x43ea3b(_0xa672ca(0x19b),{'className':_0xa672ca(0x21f),'children':'Present\x20this\x20document'}),_0x43ea3b(_0x5149cf,{'onClick':()=>_0xebfc2f['tryStartPresenting'](),'children':_0xa672ca(0x196)})]});}function He(_0x41fbf6){var _0x1ee31d=_0x3f6484;const {coordinator:_0x37657d}=_0x41fbf6;return _0x3a2126(_0x4fe31c,{'children':[_0x43ea3b(_0x1ee31d(0x19b),{'className':_0x1ee31d(0x21f),'children':_0x1ee31d(0x23d)}),_0x43ea3b(_0x5149cf,{'onClick':()=>_0x37657d[_0x1ee31d(0x20e)](),'children':_0x1ee31d(0x1d5)})]});}function je(_0x4efb1f){var _0xb7817a=_0x3f6484;const {coordinator:_0x5323d5}=_0x4efb1f;return _0x3a2126(_0x4fe31c,{'children':[_0x43ea3b(_0xb7817a(0x19b),{'className':_0xb7817a(0x21f),'children':_0xb7817a(0x22b)}),_0x43ea3b(_0x5149cf,{'variant':_0xb7817a(0x1aa),'onClick':()=>_0x5323d5['startFollowing'](),'children':_0xb7817a(0x215)})]});}function Ue(_0x2400a5){var _0x10c872=_0x3f6484;const {coordinator:_0x678897}=_0x2400a5;return _0x3a2126(_0x4fe31c,{'children':[_0x43ea3b(_0x10c872(0x19b),{'className':_0x10c872(0x21f),'children':_0x10c872(0x202)}),_0x43ea3b(_0x5149cf,{'variant':_0x10c872(0x193),'onClick':()=>_0x678897[_0x10c872(0x20d)](),'children':_0x10c872(0x1ab)})]});}function Ve(){return _0x43ea3b(_0x4fe31c,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x3f6484(0x223)],ke=(_0x34d0b8,_0x2ee673,_0x128d4e,_0xe1a25e)=>{for(var _0xc38861=_0xe1a25e>0x1?void 0x0:_0xe1a25e?Me(_0x2ee673,_0x128d4e):_0x2ee673,_0x318b76=_0x34d0b8['length']-0x1,_0x34d245;_0x318b76>=0x0;_0x318b76--)(_0x34d245=_0x34d0b8[_0x318b76])&&(_0xc38861=_0x34d245(_0xc38861)||_0xc38861);return _0xc38861;},$=(_0x26f81e,_0x37b05b)=>(_0x152a4e,_0x2d1235)=>_0x37b05b(_0x152a4e,_0x2d1235,_0x26f81e);let b=class extends _0x1c6341{constructor(_0x4f07bf,_0x5cd3be){var _0x28bc21=_0x3f6484;super(),this['_injector']=_0x4f07bf,this[_0x28bc21(0x19f)]=_0x5cd3be,this[_0x28bc21(0x1ad)]();}[_0x3f6484(0x1ad)](){var _0x25745e=_0x3f6484;this[_0x25745e(0x1df)](this[_0x25745e(0x19f)][_0x25745e(0x242)](_0x40a2e7[_0x25745e(0x20a)],()=>_0x326657(Te,this['_injector'])));}};b=ke([$(0x0,_0xb0930d(_0xd563d9)),$(0x1,_0x66463e)],b);var Ge=Object[_0x3f6484(0x198)],We=Object[_0x3f6484(0x223)],Ye=(_0x5ebbef,_0x54a7f1,_0x5a39f0)=>_0x54a7f1 in _0x5ebbef?Ge(_0x5ebbef,_0x54a7f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a39f0}):_0x5ebbef[_0x54a7f1]=_0x5a39f0,Be=(_0x11243b,_0x12def3,_0x2b35e5,_0x7a80aa)=>{var _0x46fe2f=_0x3f6484;for(var _0xf5d9ba=_0x7a80aa>0x1?void 0x0:_0x7a80aa?We(_0x12def3,_0x2b35e5):_0x12def3,_0x589e8c=_0x11243b[_0x46fe2f(0x232)]-0x1,_0x246e11;_0x589e8c>=0x0;_0x589e8c--)(_0x246e11=_0x11243b[_0x589e8c])&&(_0xf5d9ba=_0x246e11(_0xf5d9ba)||_0xf5d9ba);return _0xf5d9ba;},F=(_0x5a0550,_0x7dd6b5)=>(_0x19ad5f,_0x5d4f6d)=>_0x7dd6b5(_0x19ad5f,_0x5d4f6d,_0x5a0550),J=(_0xe2c96e,_0x5a0c64,_0xdff54d)=>Ye(_0xe2c96e,typeof _0x5a0c64!='symbol'?_0x5a0c64+'':_0x5a0c64,_0xdff54d);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1608cc{constructor(_0x280542=T,_0x5ec4f2,_0x26ccde){var _0x35c66=_0x3f6484;super(),this[_0x35c66(0x22c)]=_0x280542,this[_0x35c66(0x241)]=_0x5ec4f2,this['_configService']=_0x26ccde;const {..._0x229c31}=_0x17d777({},T,this[_0x35c66(0x22c)]);this[_0x35c66(0x20c)][_0x35c66(0x23f)](Oe,_0x229c31);}[_0x3f6484(0x190)](){var _0x464908=_0x3f6484;_0x2e569d(this[_0x464908(0x241)],_0x4e9805([[L],[I],[m],[b]],this[_0x464908(0x22c)][_0x464908(0x218)])),_0x5a07de(this[_0x464908(0x241)],[[m]]);}['onRendered'](){var _0x460f41=_0x3f6484;_0x5a07de(this[_0x460f41(0x241)],[[b]]);}};J(O,'type',_0x4d54d3['UNIVER_UNKNOWN']),J(O,_0x3f6484(0x1ee),Ze),O=Be([_0x311632(_0x589148),F(0x1,_0xb0930d(_0xd563d9)),F(0x2,_0x12e4b9)],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 _0xf334e2=_0x4667;(function(_0x20f25a,_0x4c3f9f){var _0x28b686=_0x4667,_0x5b2281=_0x20f25a();while(!![]){try{var _0x16aaa0=-parseInt(_0x28b686(0x11e))/0x1*(-parseInt(_0x28b686(0x18e))/0x2)+parseInt(_0x28b686(0x119))/0x3+parseInt(_0x28b686(0x187))/0x4+-parseInt(_0x28b686(0x17f))/0x5*(-parseInt(_0x28b686(0x115))/0x6)+-parseInt(_0x28b686(0x1aa))/0x7*(parseInt(_0x28b686(0x17e))/0x8)+parseInt(_0x28b686(0x113))/0x9*(-parseInt(_0x28b686(0x1af))/0xa)+parseInt(_0x28b686(0x117))/0xb*(-parseInt(_0x28b686(0x14b))/0xc);if(_0x16aaa0===_0x4c3f9f)break;else _0x5b2281['push'](_0x5b2281['shift']());}catch(_0x37d14f){_0x5b2281['push'](_0x5b2281['shift']());}}}(_0x40a3,0x973be));var q=Object[_0xf334e2(0x141)],z=(_0x3860cd,_0x57cdcd,_0x576336)=>_0x57cdcd in _0x3860cd?q(_0x3860cd,_0x57cdcd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x576336}):_0x3860cd[_0x57cdcd]=_0x576336,d=(_0x125cd5,_0x1070b9,_0xcebaf9)=>z(_0x125cd5,typeof _0x1070b9!='symbol'?_0x1070b9+'':_0x1070b9,_0xcebaf9);import{CollaborationSessionService as _0x9b3ad1,SessionStatus as _0x184166,UniverCollaborationClientPlugin as _0x15931d}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4fbb92,toDisposable as _0xcecd2e,Inject as _0x391104,IUniverInstanceService as _0x52fbd8,Injector as _0x50d8d5,IConfigService as _0xa8db64,ICommandService as _0x4c9b97,RxDisposable as _0x49725e,UniverInstanceType as _0x3e9585,DisposableCollection as _0x570819,CommandType as _0x3818ef,DependentOn as _0x164c8e,Plugin as _0x3b5838,merge as _0x498ff2,registerDependencies as _0x367e1b,mergeOverrideWithDependencies as _0x1a39d1,touchDependencies as _0x88c823}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xe2d3fc,InsertSheetMutation as _0x2d3df6}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x620f7b,SetScrollOperation as _0x2053df}from'@univerjs/sheets-ui';import{useDependency as _0x5bc371,useObservable as _0x2cf7b6,IUIPartsService as _0x4401df,BuiltInUIPart as _0x319efd,connectInjector as _0x5ee7f0}from'@univerjs/ui';import{jsx as _0x58a139,jsxs as _0xaa6a18,Fragment as _0x1f494c}from'react/jsx-runtime';import{Dropdown as _0x43a82b,clsx as _0x123502,Button as _0xa639cf}from'@univerjs/design';import{forwardRef as _0x529c36,useRef as _0x14033a,createElement as _0x2a6fac,useState as _0x29ffd8,useEffect as _0x25d3be}from'react';import{CollaborationEvent as _0x53cb61,parseProtocolChangeset as _0x9a4087}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x33dc69,Subject as _0x8899cb}from'rxjs';import{takeUntil as _0x2d6d70,throttleTime as _0x1d9523}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x4fbb92{constructor(){var _0x4bb17c=_0xf334e2;super(...arguments),d(this,_0x4bb17c(0x1b1),new Set()),d(this,_0x4bb17c(0x1b6),new Set());}[_0xf334e2(0x14f)](_0x3f3d7a){var _0x545feb=_0xf334e2;return this[_0x545feb(0x1b1)][_0x545feb(0x12c)](_0x3f3d7a),_0xcecd2e(()=>this['_sharedOperations'][_0x545feb(0x17b)](_0x3f3d7a));}['registerInitialStateReporter'](_0x282432){var _0x536725=_0xf334e2;return this[_0x536725(0x1b6)][_0x536725(0x12c)](_0x282432),_0xcecd2e(()=>this[_0x536725(0x1b6)][_0x536725(0x17b)](_0x282432));}['shouldShareOperation'](_0x5ea3d1){var _0x545636=_0xf334e2;return this['_sharedOperations'][_0x545636(0x15d)](_0x5ea3d1);}[_0xf334e2(0x140)](_0x2b3c2d){var _0x231a10=_0xf334e2;return Array[_0x231a10(0x146)](this[_0x231a10(0x1b6)])[_0x231a10(0x16f)](_0x1bcbd1=>_0x1bcbd1(_0x2b3c2d));}}var Ee=Object[_0xf334e2(0x133)],we=(_0x5b000d,_0x3c8999,_0x184a88,_0x3a8a5c)=>{var _0x1e80a6=_0xf334e2;for(var _0x6e5bb1=_0x3a8a5c>0x1?void 0x0:_0x3a8a5c?Ee(_0x3c8999,_0x184a88):_0x3c8999,_0x53fc8e=_0x5b000d[_0x1e80a6(0x1a2)]-0x1,_0x1f1e96;_0x53fc8e>=0x0;_0x53fc8e--)(_0x1f1e96=_0x5b000d[_0x53fc8e])&&(_0x6e5bb1=_0x1f1e96(_0x6e5bb1)||_0x6e5bb1);return _0x6e5bb1;},Ne=(_0x29c201,_0x3a615b)=>(_0x5153db,_0x4e2dac)=>_0x3a615b(_0x5153db,_0x4e2dac,_0x29c201);let m=class extends _0x4fbb92{constructor(_0x3cd05e){var _0x51c7ac=_0xf334e2;super(),this[_0x51c7ac(0x111)]=_0x3cd05e,this[_0x51c7ac(0x137)]();}['_init'](){[_0x620f7b['id'],_0x2053df['id'],_0xe2d3fc['id']]['forEach'](_0x12e061=>{var _0x17acca=_0x4667;this['disposeWithMe'](this[_0x17acca(0x111)][_0x17acca(0x14f)](_0x12e061));});}};m=we([Ne(0x0,_0x391104(L))],m);var c=function(){var _0xd67b87=_0xf334e2;return c=Object[_0xd67b87(0x1b0)]||function(_0x517f4a){var _0x4afc69=_0xd67b87;for(var _0x59c7f4,_0x22b532=0x1,_0x132316=arguments[_0x4afc69(0x1a2)];_0x22b532<_0x132316;_0x22b532++){_0x59c7f4=arguments[_0x22b532];for(var _0x3a40cb in _0x59c7f4)Object['prototype'][_0x4afc69(0x143)][_0x4afc69(0x176)](_0x59c7f4,_0x3a40cb)&&(_0x517f4a[_0x3a40cb]=_0x59c7f4[_0x3a40cb]);}return _0x517f4a;},c[_0xd67b87(0x1b9)](this,arguments);},Ce=function(_0x2fb6f9,_0x45add3){var _0x1e9736=_0xf334e2,_0x364f74={};for(var _0xa148ec in _0x2fb6f9)Object[_0x1e9736(0x186)]['hasOwnProperty'][_0x1e9736(0x176)](_0x2fb6f9,_0xa148ec)&&_0x45add3[_0x1e9736(0x168)](_0xa148ec)<0x0&&(_0x364f74[_0xa148ec]=_0x2fb6f9[_0xa148ec]);if(_0x2fb6f9!=null&&typeof Object[_0x1e9736(0x177)]==_0x1e9736(0x17d)){for(var _0x2bf52b=0x0,_0xa148ec=Object[_0x1e9736(0x177)](_0x2fb6f9);_0x2bf52b<_0xa148ec[_0x1e9736(0x1a2)];_0x2bf52b++)_0x45add3['indexOf'](_0xa148ec[_0x2bf52b])<0x0&&Object[_0x1e9736(0x186)][_0x1e9736(0x15a)][_0x1e9736(0x176)](_0x2fb6f9,_0xa148ec[_0x2bf52b])&&(_0x364f74[_0xa148ec[_0x2bf52b]]=_0x2fb6f9[_0xa148ec[_0x2bf52b]]);}return _0x364f74;},W=_0x529c36(function(_0x143ef9,_0x22bd47){var _0x3094d3=_0xf334e2,_0x3152df=_0x143ef9[_0x3094d3(0x129)],_0x4eb080=_0x143ef9['id'],_0x36878b=_0x143ef9['className'],_0x3159eb=_0x143ef9['extend'],_0x516f16=Ce(_0x143ef9,[_0x3094d3(0x129),'id','className','extend']),_0x44fc24='univerjs-icon\x20univerjs-icon-'[_0x3094d3(0x122)](_0x4eb080,'\x20')[_0x3094d3(0x122)](_0x36878b||'')[_0x3094d3(0x10f)](),_0x3737a9=_0x14033a('_'[_0x3094d3(0x122)](Le()));return Y(_0x3152df,''[_0x3094d3(0x122)](_0x4eb080),{'defIds':_0x3152df['defIds'],'idSuffix':_0x3737a9[_0x3094d3(0x172)]},c({'ref':_0x22bd47,'className':_0x44fc24},_0x516f16),_0x3159eb);});function Y(_0x36a07f,_0xb78a56,_0x204101,_0x27d2f6,_0x517d00){var _0xfe7d2a=_0xf334e2;return _0x2a6fac(_0x36a07f[_0xfe7d2a(0x171)],c(c({'key':_0xb78a56},De(_0x36a07f,_0x204101,_0x517d00)),_0x27d2f6),(xe(_0x36a07f,_0x204101)[_0xfe7d2a(0x150)]||[])['map'](function(_0x516150,_0x22826e){var _0x2dc539=_0xfe7d2a;return Y(_0x516150,''['concat'](_0xb78a56,'-')['concat'](_0x36a07f[_0x2dc539(0x171)],'-')[_0x2dc539(0x122)](_0x22826e),_0x204101,void 0x0,_0x517d00);}));}function De(_0x5822c9,_0x2214b2,_0x5ff3b2){var _0x455043=_0xf334e2,_0x52f2a4=c({},_0x5822c9[_0x455043(0x1a5)]);_0x5ff3b2!=null&&_0x5ff3b2[_0x455043(0x184)]&&_0x52f2a4[_0x455043(0x130)]===_0x455043(0x184)&&(_0x52f2a4[_0x455043(0x130)]=_0x5ff3b2[_0x455043(0x184)]),_0x5822c9[_0x455043(0x171)]==='mask'&&_0x52f2a4['id']&&(_0x52f2a4['id']=_0x52f2a4['id']+_0x2214b2[_0x455043(0x162)]),Object[_0x455043(0x17c)](_0x52f2a4)[_0x455043(0x1a6)](function(_0x3dd333){var _0x44c2f9=_0x455043,_0x4c229d=_0x3dd333[0x0],_0xcff0dd=_0x3dd333[0x1];_0x4c229d===_0x44c2f9(0x142)&&typeof _0xcff0dd==_0x44c2f9(0x13c)&&(_0x52f2a4[_0x4c229d]=_0xcff0dd['replace'](/url\(#(.*)\)/,_0x44c2f9(0x166)['concat'](_0x2214b2[_0x44c2f9(0x162)],')')));});var _0x2aef1f=_0x2214b2[_0x455043(0x1a8)];return!_0x2aef1f||_0x2aef1f['length']===0x0||(_0x5822c9[_0x455043(0x171)]===_0x455043(0x178)&&_0x52f2a4[_0x455043(0x179)]&&(_0x52f2a4[_0x455043(0x179)]=_0x52f2a4[_0x455043(0x179)]+_0x2214b2[_0x455043(0x162)]),Object[_0x455043(0x17c)](_0x52f2a4)[_0x455043(0x1a6)](function(_0x1e6640){var _0x192f8d=_0x455043,_0x39cbe2=_0x1e6640[0x0],_0x2f60a0=_0x1e6640[0x1];typeof _0x2f60a0==_0x192f8d(0x13c)&&(_0x52f2a4[_0x39cbe2]=_0x2f60a0['replace'](/url\(#(.*)\)/,_0x192f8d(0x166)[_0x192f8d(0x122)](_0x2214b2[_0x192f8d(0x162)],')')));})),_0x52f2a4;}function xe(_0x380d8f,_0x4e9f45){var _0xe10c1f=_0xf334e2,_0x8c2b2b,_0x1fc659=_0x4e9f45[_0xe10c1f(0x1a8)];return!_0x1fc659||_0x1fc659['length']===0x0?_0x380d8f:_0x380d8f['tag']===_0xe10c1f(0x144)&&(!((_0x8c2b2b=_0x380d8f[_0xe10c1f(0x150)])===null||_0x8c2b2b===void 0x0)&&_0x8c2b2b[_0xe10c1f(0x1a2)])?c(c({},_0x380d8f),{'children':_0x380d8f[_0xe10c1f(0x150)][_0xe10c1f(0x16f)](function(_0x564b8e){var _0x1b1de3=_0xe10c1f;return typeof _0x564b8e[_0x1b1de3(0x1a5)]['id']==_0x1b1de3(0x13c)&&_0x1fc659&&_0x1fc659['includes'](_0x564b8e['attrs']['id'])?c(c({},_0x564b8e),{'attrs':c(c({},_0x564b8e['attrs']),{'id':_0x564b8e['attrs']['id']+_0x4e9f45[_0x1b1de3(0x162)]})}):_0x564b8e;})}):_0x380d8f;}function Le(){var _0x4dee55=_0xf334e2;return Math['random']()[_0x4dee55(0x157)](0x24)[_0x4dee55(0x114)](0x2,0x8);}W[_0xf334e2(0x167)]=_0xf334e2(0x1a3);var ye={'tag':'svg','attrs':{'xmlns':_0xf334e2(0x112),'fill':_0xf334e2(0x147),'viewBox':_0xf334e2(0x19a),'width':_0xf334e2(0x13a),'height':_0xf334e2(0x13a)},'children':[{'tag':_0xf334e2(0x12a),'attrs':{'fill':_0xf334e2(0x17a),'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':_0xf334e2(0x12a),'attrs':{'fill':_0xf334e2(0x17a),'d':_0xf334e2(0x135),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x529c36(function(_0xf886bf,_0x489096){return _0x2a6fac(W,Object['assign']({},_0xf886bf,{'id':'live-share-icon','ref':_0x489096,'icon':ye}));});B[_0xf334e2(0x167)]=_0xf334e2(0x1b5);var Re=Object[_0xf334e2(0x133)],Z=(_0x3e53fc,_0x2a4bf0,_0x57cd35,_0x5990cd)=>{for(var _0x568f56=_0x5990cd>0x1?void 0x0:_0x5990cd?Re(_0x2a4bf0,_0x57cd35):_0x2a4bf0,_0x456307=_0x3e53fc['length']-0x1,_0x43b4ff;_0x456307>=0x0;_0x456307--)(_0x43b4ff=_0x3e53fc[_0x456307])&&(_0x568f56=_0x43b4ff(_0x568f56)||_0x568f56);return _0x568f56;},f=(_0x40c574,_0x27224e)=>(_0x54e9e3,_0xb78709)=>_0x27224e(_0x54e9e3,_0xb78709,_0x40c574);let I=class extends _0x49725e{constructor(_0x44d10e,_0x406840,_0x341851){var _0x4c531e=_0xf334e2;super(),d(this,_0x4c531e(0x13e),new Map()),(this['_univerInstanceService']=_0x44d10e,this[_0x4c531e(0x125)]=_0x406840,this[_0x4c531e(0x1a7)]=_0x341851,this[_0x4c531e(0x137)]());}async[_0xf334e2(0x156)](_0x45e393){var _0x5081be=_0xf334e2;return this[_0x5081be(0x13e)]['has'](_0x45e393)||await this['_startLiveShareCoordinator'](_0x45e393),this['_entities'][_0x5081be(0x18c)](_0x45e393);}['_init'](){var _0x55677d=_0xf334e2;this[_0x55677d(0x153)]['getTypeOfUnitAdded$'](_0x3e9585[_0x55677d(0x195)])['pipe'](_0x2d6d70(this['dispose$']))[_0x55677d(0x124)](async _0x24b2fc=>{var _0x550c0c=_0x55677d;const _0x18a540=_0x24b2fc[_0x550c0c(0x14e)]();this[_0x550c0c(0x13e)][_0x550c0c(0x15d)](_0x18a540)||this[_0x550c0c(0x11d)](_0x18a540);}),this['_univerInstanceService'][_0x55677d(0x161)](_0x3e9585['UNIVER_SHEET'])['pipe'](_0x2d6d70(this['dispose$']))[_0x55677d(0x124)](_0x25df2f=>{var _0x237e5e=_0x55677d;const _0x25050e=_0x25df2f[_0x237e5e(0x14e)](),_0x445ae8=this['_entities'][_0x237e5e(0x18c)](_0x25050e);_0x445ae8==null||_0x445ae8[_0x237e5e(0x1b7)]();});}async[_0xf334e2(0x11d)](_0x4c78cc){var _0x241634=_0xf334e2;const _0x467600=await this['_collabSessionService'][_0x241634(0x132)](_0x4c78cc),_0x50876a=this[_0x241634(0x125)][_0x241634(0x1ac)](C,_0x4c78cc,_0x467600);return _0x50876a[_0x241634(0x11b)](),this['_entities'][_0x241634(0x193)](_0x4c78cc,_0x50876a),_0x50876a;}};function _0x40a3(){var _0x12e13c=['_collabSession','438708VaChnR','IDLE','find','getUnitId','registerSharedOperation','children','tryStartPresenting','parse','_univerInstanceService','_handleOffline','ONLINE','getLiveShareCoordinator','toString','NOT_FOLLOWING','registerComponent','propertyIsEnumerable','_fetchOperations','_config','has','executeCommand','offline','You\x27are\x20offline.','getTypeOfUnitDisposed$','idSuffix','dispose$','onCommandExecuted','LIVESHARE_FETCH_OPERATIONS','url(#$1','displayName','indexOf','text','symbol','complete','_commandService','You\x27re\x20not\x20following\x20the\x20presenter','Start','map','OFFLINE','tag','current','stopFollowing','div','UNIVER_UNKNOWN','call','getOwnPropertySymbols','use','xlink:href','currentColor','delete','entries','function','3794456HhPeXa','295795NQvrHv','getMemberID','presenting','memberID','_handleNewHost','colorChannel1','HEADER_MENU','prototype','1123548BIuCfU','following','_startPresenting','_handleOperation','onRendered','get','_startFollowing','10WYnSZl','data','_unitID','You\x27re\x20presenting\x20the\x20document','pipe','set','NEW_CHANGESETS','UNIVER_SHEET','SAME_OPERATION_SHARE_INTERVAL','Start\x20following','type','startFollowing','0\x200\x2017\x2017','default','values','not-following','Stop\x20presenting','FOLLOWING','UNIVER_LIVE_SHARE_PLUGIN','stopPresenting','length','UniverIcon','_mountLiveShare','attrs','forEach','_collabSessionService','defIds','_status$','7QiekBO','_stopPresenting','createInstance','_configService','Stop\x20following','20yHFzgl','assign','_sharedOperations','end','PRESENTING','_handleTerminate','LiveShareIcon','_reporters','dispose','setConfig','apply','next','reverse','_presenter','_uiPartsService','sessionStatus$','_handleOnline','trim','pluginName','_liveShareService','http://www.w3.org/2000/svg','1942479onHwBV','substring','60DjsLTG','idle','209uOQNbM','getValue','478206KslRus','_commandDisposable','init','stringify','_startLiveShareCoordinator','237633EcrLQi','operations','clear','You\x27re\x20following\x20the\x20presenter','concat','LIVESHARE_REQUEST_HOST','subscribe','_injector','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','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','univer-size-4','icon','path','unsubscribe','add','Present\x20this\x20document','LIVESHARE_TERMINATE','includes','fill','send','requireSession','getOwnPropertyDescriptor','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','LIVESHARE_OPERATION','_init','_stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','1em','_status','string','LIVESHARE_NEW_HOST','_entities','_beIdle','getInitialStates','defineProperty','mask','hasOwnProperty','defs','params','from','none','presenter','_handleNewChangeSets'];_0x40a3=function(){return _0x12e13c;};return _0x40a3();}I=Z([f(0x0,_0x52fbd8),f(0x1,_0x391104(_0x50d8d5)),f(0x2,_0x391104(_0x9b3ad1))],I);var h=(_0x586cc1=>(_0x586cc1['OFFLINE']='offline',_0x586cc1['IDLE']=_0xf334e2(0x116),_0x586cc1[_0xf334e2(0x19f)]='following',_0x586cc1[_0xf334e2(0x158)]=_0xf334e2(0x19d),_0x586cc1[_0xf334e2(0x1b3)]='presenting',_0x586cc1))(h||{});const Pe=_0xf334e2(0x196),Ae=0xc8;let C=class extends _0x49725e{constructor(_0x4c211a,_0x1c09ce,_0x55d6e7,_0x363185,_0x19d6fc){var _0x199f7c=_0xf334e2;super(),d(this,_0x199f7c(0x1a9),new _0x33dc69(_0x199f7c(0x116))),d(this,'status$',this['_status$']['asObservable']()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x199f7c(0x1bc),null),(this[_0x199f7c(0x190)]=_0x4c211a,this['_collabSession']=_0x1c09ce,this[_0x199f7c(0x1ad)]=_0x55d6e7,this[_0x199f7c(0x111)]=_0x363185,this[_0x199f7c(0x16c)]=_0x19d6fc);}get[_0xf334e2(0x13b)](){var _0x180ea7=_0xf334e2;return this[_0x180ea7(0x1a9)][_0x180ea7(0x118)]();}[_0xf334e2(0x1b7)](){var _0x37ebbf=_0xf334e2,_0x348954;(_0x348954=this[_0x37ebbf(0x11a)])==null||_0x348954[_0x37ebbf(0x1b7)](),this[_0x37ebbf(0x1a9)][_0x37ebbf(0x1ba)](_0x37ebbf(0x116)),this[_0x37ebbf(0x1a9)]['complete']();}[_0xf334e2(0x11b)](){var _0x4f4118=_0xf334e2;this[_0x4f4118(0x137)]||(this[_0x4f4118(0x137)]=!0x0,this[_0x4f4118(0x14a)][_0x4f4118(0x1be)][_0x4f4118(0x192)](_0x2d6d70(this[_0x4f4118(0x163)]))[_0x4f4118(0x124)](_0x5e9b3e=>{var _0xe4aa90=_0x4f4118;switch(_0x5e9b3e){case _0x184166[_0xe4aa90(0x170)]:this[_0xe4aa90(0x154)]();break;case _0x184166[_0xe4aa90(0x155)]:this['_handleOnline']();break;}}),this[_0x4f4118(0x14a)]['event$']['pipe'](_0x2d6d70(this[_0x4f4118(0x163)]))[_0x4f4118(0x124)](_0x1b1614=>{var _0x2d1638=_0x4f4118;const {eventID:_0x51200a}=_0x1b1614;switch(_0x51200a){case _0x53cb61[_0x2d1638(0x13d)]:this[_0x2d1638(0x183)](_0x1b1614);break;case _0x53cb61[_0x2d1638(0x136)]:this[_0x2d1638(0x18a)](_0x1b1614);break;case _0x53cb61[_0x2d1638(0x12e)]:this['_handleTerminate']();break;case _0x53cb61[_0x2d1638(0x194)]:this[_0x2d1638(0x149)](_0x1b1614);break;}}));}[_0xf334e2(0x151)](){var _0x1fa518=_0xf334e2;this[_0x1fa518(0x14a)][_0x1fa518(0x131)]({'eventID':_0x53cb61[_0x1fa518(0x123)],'data':{'unitID':this[_0x1fa518(0x190)],'userID':this['_collabSession'][_0x1fa518(0x180)]()}},this[_0x1fa518(0x190)]);}[_0xf334e2(0x1a1)](){var _0x2b926f=_0xf334e2;this[_0x2b926f(0x13b)]===_0x2b926f(0x181)&&(this[_0x2b926f(0x1a9)][_0x2b926f(0x1ba)](_0x2b926f(0x116)),this[_0x2b926f(0x14a)][_0x2b926f(0x131)]({'eventID':_0x53cb61[_0x2b926f(0x12e)],'data':{'unitID':this[_0x2b926f(0x190)]}},this[_0x2b926f(0x190)]));}[_0xf334e2(0x199)](){var _0x53357a=_0xf334e2;this[_0x53357a(0x13b)]==='not-following'&&(this[_0x53357a(0x1a9)][_0x53357a(0x1ba)]('following'),this[_0x53357a(0x18d)]());}[_0xf334e2(0x173)](){var _0x5b8d18=_0xf334e2;this[_0x5b8d18(0x13b)]===_0x5b8d18(0x188)&&this[_0x5b8d18(0x138)]();}[_0xf334e2(0x183)](_0x46a165){var _0x2addc7=_0xf334e2;const {presenter:_0x69792d}=_0x46a165[_0x2addc7(0x18f)],_0x1003c1=this[_0x2addc7(0x14a)][_0x2addc7(0x180)]();this[_0x2addc7(0x1bc)]=_0x69792d,_0x69792d===_0x1003c1?(this[_0x2addc7(0x138)](),this[_0x2addc7(0x189)]()):this[_0x2addc7(0x13b)]!==_0x2addc7(0x19d)&&(this[_0x2addc7(0x1ab)](),this['_startFollowing']());}[_0xf334e2(0x15b)](){var _0x1f92c9=_0xf334e2;const _0x5dfa79={'eventID':_0x53cb61[_0x1f92c9(0x165)]};this[_0x1f92c9(0x14a)][_0x1f92c9(0x131)](_0x5dfa79,this[_0x1f92c9(0x190)]);}[_0xf334e2(0x1b4)](){var _0x1d14eb=_0xf334e2;this[_0x1d14eb(0x1bc)]=null,this[_0x1d14eb(0x13b)]!=='presenting'&&this[_0x1d14eb(0x13f)]();}[_0xf334e2(0x149)](_0x39382c){var _0xac35ab=_0xf334e2;if(this[_0xac35ab(0x13b)]===_0xac35ab(0x188)&&this['_presenter']===_0x39382c[_0xac35ab(0x18f)][_0xac35ab(0x182)]){const _0x1b951c=_0x9a4087(_0x39382c[_0xac35ab(0x18f)])['mutations'][_0xac35ab(0x1bb)]()[_0xac35ab(0x14d)](_0x5a0a9f=>_0x5a0a9f['id']===_0x2d3df6['id']);if(_0x1b951c){const _0x56643e=_0x1b951c[_0xac35ab(0x145)]['unitId'],_0x26adb1=_0x1b951c[_0xac35ab(0x145)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0xe2d3fc['id'],{'unitId':_0x56643e,'subUnitId':_0x26adb1},{'fromCollab':!0x0});});}}}[_0xf334e2(0x189)](){var _0xf191ee=_0xf334e2;this[_0xf191ee(0x1a9)]['next']('presenting');const _0xa6c701=new Map(),_0x2b4a56=this[_0xf191ee(0x11a)]=new _0x570819();_0x2b4a56[_0xf191ee(0x12c)](_0xcecd2e(()=>{var _0x33ba61=_0xf191ee;_0xa6c701[_0x33ba61(0x1a6)](_0x25f7a6=>_0x25f7a6[_0x33ba61(0x16b)]()),_0xa6c701[_0x33ba61(0x120)]();})),_0x2b4a56[_0xf191ee(0x12c)](this[_0xf191ee(0x16c)][_0xf191ee(0x164)](_0x18eb54=>{var _0x4c7dfe=_0xf191ee,_0x51c4b4;if(_0x18eb54[_0x4c7dfe(0x198)]!==_0x3818ef['OPERATION']||!this[_0x4c7dfe(0x111)]['shouldShareOperation'](_0x18eb54['id']))return;const {id:_0x31a99c}=_0x18eb54;let _0x4903bb;_0xa6c701[_0x4c7dfe(0x15d)](_0x31a99c)?_0x4903bb=_0xa6c701[_0x4c7dfe(0x18c)](_0x31a99c):(_0x4903bb=new _0x8899cb(),_0xa6c701[_0x4c7dfe(0x193)](_0x31a99c,_0x4903bb),_0x4903bb[_0x4c7dfe(0x192)](_0x1d9523((_0x51c4b4=this['_configService']['getConfig'](Pe))!=null?_0x51c4b4:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x17425f=>{var _0x54e516=_0x4c7dfe;this[_0x54e516(0x14a)][_0x54e516(0x131)]({'eventID':_0x53cb61[_0x54e516(0x136)],'data':{'unitID':this['_unitID'],'operations':{[_0x17425f['id']]:{'id':_0x17425f['id'],'params':JSON[_0x54e516(0x11c)](_0x17425f[_0x54e516(0x145)])}}}},this['_unitID']);})),_0x4903bb[_0x4c7dfe(0x1ba)](_0x18eb54);})),this[_0xf191ee(0x111)]['getInitialStates'](this[_0xf191ee(0x190)])[_0xf191ee(0x1a6)](_0x3e0155=>this['_collabSession'][_0xf191ee(0x131)]({'eventID':_0x53cb61['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x3e0155['id']]:{'id':_0x3e0155['id'],'params':JSON[_0xf191ee(0x11c)](_0x3e0155[_0xf191ee(0x145)])}}}},this[_0xf191ee(0x190)]));}['_stopPresenting'](){var _0x868815=_0xf334e2,_0x4de4ad;this['_status$']['next'](_0x868815(0x116)),(_0x4de4ad=this[_0x868815(0x11a)])==null||_0x4de4ad[_0x868815(0x1b7)](),this['_commandDisposable']=null;}[_0xf334e2(0x18d)](){var _0x3bfae6=_0xf334e2,_0x1061d4;(_0x1061d4=this[_0x3bfae6(0x11a)])==null||_0x1061d4[_0x3bfae6(0x1b7)](),this[_0x3bfae6(0x1a9)][_0x3bfae6(0x1ba)](_0x3bfae6(0x188));}['_beIdle'](){var _0x1479de=_0xf334e2,_0x1260f8;this[_0x1479de(0x1a9)][_0x1479de(0x1ba)]('idle'),(_0x1260f8=this['_commandDisposable'])==null||_0x1260f8[_0x1479de(0x1b7)](),this[_0x1479de(0x11a)]=null;}[_0xf334e2(0x138)](){var _0x5145b5=_0xf334e2,_0x5e55b5;this['_status$'][_0x5145b5(0x1ba)](_0x5145b5(0x19d)),(_0x5e55b5=this[_0x5145b5(0x11a)])==null||_0x5e55b5['dispose']();}[_0xf334e2(0x18a)](_0x1d789a){var _0x4e174b=_0xf334e2;if([_0x4e174b(0x181),'not-following',_0x4e174b(0x15f)][_0x4e174b(0x12f)](this[_0x4e174b(0x13b)])||!_0x1d789a['data'][_0x4e174b(0x148)]||_0x1d789a[_0x4e174b(0x18f)][_0x4e174b(0x148)]===this[_0x4e174b(0x14a)][_0x4e174b(0x180)]())return;this['_status']===_0x4e174b(0x116)&&this[_0x4e174b(0x18d)]();const _0x4ed00d=_0x1d789a['data'][_0x4e174b(0x11f)];Object[_0x4e174b(0x19c)](_0x4ed00d)[_0x4e174b(0x1a6)](_0x291993=>{var _0x84e6cd=_0x4e174b;this[_0x84e6cd(0x16c)][_0x84e6cd(0x15e)](_0x291993['id'],_0x291993[_0x84e6cd(0x145)]?JSON[_0x84e6cd(0x152)](_0x291993[_0x84e6cd(0x145)]):null,{'fromCollab':!0x0});});}[_0xf334e2(0x154)](){var _0x39034d=_0xf334e2,_0x4546fc;this[_0x39034d(0x1a9)][_0x39034d(0x1ba)]('offline'),(_0x4546fc=this[_0x39034d(0x11a)])==null||_0x4546fc[_0x39034d(0x1b7)]();}[_0xf334e2(0x1bf)](){var _0x589d5b=_0xf334e2;this[_0x589d5b(0x1a9)][_0x589d5b(0x1ba)](_0x589d5b(0x116)),this[_0x589d5b(0x15b)]();}};C=Z([f(0x2,_0xa8db64),f(0x3,_0x391104(L)),f(0x4,_0x4c9b97)],C);function Te(){var _0x553284=_0xf334e2;const _0x3883b8=_0x5bc371(I),_0x4582f6=_0x5bc371(_0x52fbd8),_0x16e975=_0x2cf7b6(()=>_0x4582f6['getCurrentTypeOfUnit$'](_0x3e9585['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x384c3b,_0x1777bf]=_0x29ffd8(null),[_0x4f7bfd,_0x4a8582]=_0x29ffd8(h[_0x553284(0x14c)]),_0xc5fa37=_0x14033a(null);return _0x25d3be(()=>(_0x16e975&&_0x3883b8[_0x553284(0x156)](_0x16e975[_0x553284(0x14e)]())['then'](_0x515b02=>{var _0x34d9f5=_0x553284;_0x1777bf(_0x515b02),_0xc5fa37['current']=_0x515b02['status$'][_0x34d9f5(0x124)](_0x49f351=>{_0x4a8582(_0x49f351);});}),()=>{var _0x486cc=_0x553284,_0x53099d;(_0x53099d=_0xc5fa37[_0x486cc(0x172)])==null||_0x53099d[_0x486cc(0x12b)](),_0xc5fa37[_0x486cc(0x172)]=null;}),[_0x16e975,_0x3883b8]),_0x384c3b?_0x58a139(_0x43a82b,{'align':_0x553284(0x1b2),'disabled':_0x4f7bfd===h[_0x553284(0x170)],'className':_0x553284(0x127),'overlay':_0x58a139($e,{'status':_0x4f7bfd,'coordinator':_0x384c3b}),'children':_0x58a139(_0x553284(0x134),{'className':_0x123502(_0x553284(0x126),{'univer-cursor-not-allowed':_0x4f7bfd===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4f7bfd!==h['OFFLINE']}),'type':_0x553284(0x134),'children':_0x58a139(B,{'className':_0x553284(0x128)})})}):null;}function $e(_0x5e4008){var _0x41ceba=_0xf334e2;const {status:_0x5d8284,coordinator:_0x198708}=_0x5e4008;switch(_0x5d8284){case h[_0x41ceba(0x14c)]:return _0x58a139(Fe,{'coordinator':_0x198708});case h['FOLLOWING']:return _0x58a139(He,{'coordinator':_0x198708});case h[_0x41ceba(0x158)]:return _0x58a139(je,{'coordinator':_0x198708});case h[_0x41ceba(0x170)]:return _0x58a139(Ve,{});case h['PRESENTING']:return _0x58a139(Ue,{'coordinator':_0x198708});default:return null;}}function Fe(_0x1d9f04){var _0xa9db9b=_0xf334e2;const {coordinator:_0x3510e5}=_0x1d9f04;return _0xaa6a18(_0x1f494c,{'children':[_0x58a139(_0xa9db9b(0x174),{'className':_0xa9db9b(0x139),'children':_0xa9db9b(0x12d)}),_0x58a139(_0xa639cf,{'onClick':()=>_0x3510e5['tryStartPresenting'](),'children':_0xa9db9b(0x16e)})]});}function He(_0x224aa5){var _0x744569=_0xf334e2;const {coordinator:_0x3bb48a}=_0x224aa5;return _0xaa6a18(_0x1f494c,{'children':[_0x58a139(_0x744569(0x174),{'className':_0x744569(0x139),'children':_0x744569(0x121)}),_0x58a139(_0xa639cf,{'onClick':()=>_0x3bb48a['stopFollowing'](),'children':_0x744569(0x1ae)})]});}function je(_0x18bbd0){var _0x3d44f8=_0xf334e2;const {coordinator:_0xc24618}=_0x18bbd0;return _0xaa6a18(_0x1f494c,{'children':[_0x58a139(_0x3d44f8(0x174),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3d44f8(0x16d)}),_0x58a139(_0xa639cf,{'variant':_0x3d44f8(0x169),'onClick':()=>_0xc24618[_0x3d44f8(0x199)](),'children':_0x3d44f8(0x197)})]});}function Ue(_0x45da82){var _0x54f556=_0xf334e2;const {coordinator:_0x17c076}=_0x45da82;return _0xaa6a18(_0x1f494c,{'children':[_0x58a139('div',{'className':_0x54f556(0x139),'children':_0x54f556(0x191)}),_0x58a139(_0xa639cf,{'variant':_0x54f556(0x19b),'onClick':()=>_0x17c076[_0x54f556(0x1a1)](),'children':_0x54f556(0x19e)})]});}function Ve(){var _0x361694=_0xf334e2;return _0x58a139(_0x1f494c,{'children':_0x361694(0x160)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x160c36,_0x3aa961,_0x5aecd1,_0x4c3a60)=>{var _0x4e8759=_0xf334e2;for(var _0x2ff082=_0x4c3a60>0x1?void 0x0:_0x4c3a60?Me(_0x3aa961,_0x5aecd1):_0x3aa961,_0x56ea9b=_0x160c36[_0x4e8759(0x1a2)]-0x1,_0x28093d;_0x56ea9b>=0x0;_0x56ea9b--)(_0x28093d=_0x160c36[_0x56ea9b])&&(_0x2ff082=_0x28093d(_0x2ff082)||_0x2ff082);return _0x2ff082;},$=(_0x460775,_0x3a2cc2)=>(_0xabd506,_0x3ce74a)=>_0x3a2cc2(_0xabd506,_0x3ce74a,_0x460775);function _0x4667(_0x588bd4,_0x48f09f){var _0x40a353=_0x40a3();return _0x4667=function(_0x466776,_0x150213){_0x466776=_0x466776-0x10f;var _0x1b737a=_0x40a353[_0x466776];return _0x1b737a;},_0x4667(_0x588bd4,_0x48f09f);}let b=class extends _0x4fbb92{constructor(_0x3dd099,_0x25ee9c){var _0x36f564=_0xf334e2;super(),this[_0x36f564(0x125)]=_0x3dd099,this[_0x36f564(0x1bd)]=_0x25ee9c,this[_0x36f564(0x1a4)]();}[_0xf334e2(0x1a4)](){var _0x431eac=_0xf334e2;this['disposeWithMe'](this['_uiPartsService'][_0x431eac(0x159)](_0x319efd[_0x431eac(0x185)],()=>_0x5ee7f0(Te,this[_0x431eac(0x125)])));}};b=ke([$(0x0,_0x391104(_0x50d8d5)),$(0x1,_0x4401df)],b);var Ge=Object[_0xf334e2(0x141)],We=Object[_0xf334e2(0x133)],Ye=(_0x33172b,_0x849a00,_0x5ef91d)=>_0x849a00 in _0x33172b?Ge(_0x33172b,_0x849a00,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5ef91d}):_0x33172b[_0x849a00]=_0x5ef91d,Be=(_0x1d1ac2,_0x1b0ad3,_0x2a1a84,_0x4e60f1)=>{var _0x100467=_0xf334e2;for(var _0x45a0a8=_0x4e60f1>0x1?void 0x0:_0x4e60f1?We(_0x1b0ad3,_0x2a1a84):_0x1b0ad3,_0x58f635=_0x1d1ac2[_0x100467(0x1a2)]-0x1,_0x44159a;_0x58f635>=0x0;_0x58f635--)(_0x44159a=_0x1d1ac2[_0x58f635])&&(_0x45a0a8=_0x44159a(_0x45a0a8)||_0x45a0a8);return _0x45a0a8;},F=(_0x20e9fc,_0x1d870c)=>(_0x388ee2,_0x551abf)=>_0x1d870c(_0x388ee2,_0x551abf,_0x20e9fc),J=(_0x31f2d0,_0x1e6387,_0x53aacf)=>Ye(_0x31f2d0,typeof _0x1e6387!=_0xf334e2(0x16a)?_0x1e6387+'':_0x1e6387,_0x53aacf);const Ze=_0xf334e2(0x1a0);let O=class extends _0x3b5838{constructor(_0x2a010b=T,_0x4f7d21,_0x37a944){var _0x218903=_0xf334e2;super(),this[_0x218903(0x15c)]=_0x2a010b,this[_0x218903(0x125)]=_0x4f7d21,this[_0x218903(0x1ad)]=_0x37a944;const {..._0x220ebb}=_0x498ff2({},T,this[_0x218903(0x15c)]);this[_0x218903(0x1ad)][_0x218903(0x1b8)](Oe,_0x220ebb);}['onStarting'](){var _0x46aa26=_0xf334e2;_0x367e1b(this[_0x46aa26(0x125)],_0x1a39d1([[L],[I],[m],[b]],this[_0x46aa26(0x15c)]['override'])),_0x88c823(this[_0x46aa26(0x125)],[[m]]);}[_0xf334e2(0x18b)](){var _0x2fa0b0=_0xf334e2;_0x88c823(this[_0x2fa0b0(0x125)],[[b]]);}};J(O,'type',_0x3e9585[_0xf334e2(0x175)]),J(O,_0xf334e2(0x110),Ze),O=Be([_0x164c8e(_0x15931d),F(0x1,_0x391104(_0x50d8d5)),F(0x2,_0xa8db64)],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 _0x3f6484=_0x1eb5;(function(_0xad7a7d,_0x7abc13){var _0x2887f0=_0x1eb5,_0xcae380=_0xad7a7d();while(!![]){try{var _0x3ec156=-parseInt(_0x2887f0(0x1ff))/0x1+parseInt(_0x2887f0(0x1b7))/0x2*(-parseInt(_0x2887f0(0x1cf))/0x3)+-parseInt(_0x2887f0(0x1c3))/0x4+parseInt(_0x2887f0(0x1b9))/0x5+parseInt(_0x2887f0(0x19d))/0x6+parseInt(_0x2887f0(0x22f))/0x7*(parseInt(_0x2887f0(0x1d1))/0x8)+parseInt(_0x2887f0(0x1b2))/0x9*(parseInt(_0x2887f0(0x21d))/0xa);if(_0x3ec156===_0x7abc13)break;else _0xcae380['push'](_0xcae380['shift']());}catch(_0x374bbe){_0xcae380['push'](_0xcae380['shift']());}}}(_0x7f9e,0x73518));var q=Object[_0x3f6484(0x198)],z=(_0x39865d,_0x12de5c,_0x597d26)=>_0x12de5c in _0x39865d?q(_0x39865d,_0x12de5c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x597d26}):_0x39865d[_0x12de5c]=_0x597d26,d=(_0x41cc04,_0x54f721,_0x5d0032)=>z(_0x41cc04,typeof _0x54f721!=_0x3f6484(0x1fa)?_0x54f721+'':_0x54f721,_0x5d0032);import{CollaborationSessionService as _0x44272f,SessionStatus as _0x3b378c,UniverCollaborationClientPlugin as _0x589148}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1c6341,toDisposable as _0x5d9009,Inject as _0xb0930d,IUniverInstanceService as _0x42e888,Injector as _0xd563d9,IConfigService as _0x12e4b9,ICommandService as _0x49d015,RxDisposable as _0x395f61,UniverInstanceType as _0x4d54d3,DisposableCollection as _0x3dec07,CommandType as _0x174ae4,DependentOn as _0x311632,Plugin as _0x1608cc,merge as _0x17d777,registerDependencies as _0x2e569d,mergeOverrideWithDependencies as _0x4e9805,touchDependencies as _0x5a07de}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x5290c1,InsertSheetMutation as _0x4ed00e}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x20b3ac,SetScrollOperation as _0x56c318}from'@univerjs/sheets-ui';import{useDependency as _0xa5510d,useObservable as _0x2d9124,IUIPartsService as _0x66463e,BuiltInUIPart as _0x40a2e7,connectInjector as _0x326657}from'@univerjs/ui';import{jsx as _0x43ea3b,jsxs as _0x3a2126,Fragment as _0x4fe31c}from'react/jsx-runtime';import{Dropdown as _0x1da88c,clsx as _0x5c6958,Button as _0x5149cf}from'@univerjs/design';import{forwardRef as _0x2fbe4c,useRef as _0x2d77f1,createElement as _0x540073,useState as _0x54cd30,useEffect as _0x27b4cf}from'react';import{CollaborationEvent as _0x3e33df,parseProtocolChangeset as _0x20f59d}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3ea211,Subject as _0x3cce0e}from'rxjs';import{takeUntil as _0x8cada7,throttleTime as _0x1b3bef}from'rxjs/operators';const Oe=_0x3f6484(0x23a),T={};class L extends _0x1c6341{constructor(){var _0x34e1a1=_0x3f6484;super(...arguments),d(this,_0x34e1a1(0x1f0),new Set()),d(this,_0x34e1a1(0x216),new Set());}[_0x3f6484(0x19a)](_0xf1c070){var _0x37d44a=_0x3f6484;return this['_sharedOperations'][_0x37d44a(0x1da)](_0xf1c070),_0x5d9009(()=>this[_0x37d44a(0x1f0)][_0x37d44a(0x1a2)](_0xf1c070));}[_0x3f6484(0x1fc)](_0x46c8bd){var _0x1b4fe6=_0x3f6484;return this['_reporters'][_0x1b4fe6(0x1da)](_0x46c8bd),_0x5d9009(()=>this[_0x1b4fe6(0x216)][_0x1b4fe6(0x1a2)](_0x46c8bd));}[_0x3f6484(0x1d2)](_0x560899){var _0x69f3fa=_0x3f6484;return this['_sharedOperations'][_0x69f3fa(0x1f8)](_0x560899);}[_0x3f6484(0x214)](_0x4b8202){var _0x3c5fcb=_0x3f6484;return Array[_0x3c5fcb(0x21a)](this[_0x3c5fcb(0x216)])[_0x3c5fcb(0x1a1)](_0x31be3c=>_0x31be3c(_0x4b8202));}}var Ee=Object[_0x3f6484(0x223)],we=(_0x14482a,_0x52c38b,_0xe2aac6,_0x3c4945)=>{var _0x2ac8fc=_0x3f6484;for(var _0x1e104d=_0x3c4945>0x1?void 0x0:_0x3c4945?Ee(_0x52c38b,_0xe2aac6):_0x52c38b,_0x210ae4=_0x14482a[_0x2ac8fc(0x232)]-0x1,_0x1423c2;_0x210ae4>=0x0;_0x210ae4--)(_0x1423c2=_0x14482a[_0x210ae4])&&(_0x1e104d=_0x1423c2(_0x1e104d)||_0x1e104d);return _0x1e104d;},Ne=(_0x5bdb69,_0x2a54fa)=>(_0x451e32,_0x522dcb)=>_0x2a54fa(_0x451e32,_0x522dcb,_0x5bdb69);let m=class extends _0x1c6341{constructor(_0x516b8a){var _0x25ca81=_0x3f6484;super(),this[_0x25ca81(0x210)]=_0x516b8a,this[_0x25ca81(0x1c1)]();}['_init'](){[_0x20b3ac['id'],_0x56c318['id'],_0x5290c1['id']]['forEach'](_0x31ab1f=>{var _0x52efaf=_0x1eb5;this[_0x52efaf(0x1df)](this[_0x52efaf(0x210)]['registerSharedOperation'](_0x31ab1f));});}};m=we([Ne(0x0,_0xb0930d(L))],m);var c=function(){var _0x5c52dd=_0x3f6484;return c=Object[_0x5c52dd(0x197)]||function(_0xfe9a91){var _0x356857=_0x5c52dd;for(var _0xb8cb0c,_0x2b933e=0x1,_0x55bcdd=arguments['length'];_0x2b933e<_0x55bcdd;_0x2b933e++){_0xb8cb0c=arguments[_0x2b933e];for(var _0x579685 in _0xb8cb0c)Object[_0x356857(0x230)][_0x356857(0x1fb)][_0x356857(0x192)](_0xb8cb0c,_0x579685)&&(_0xfe9a91[_0x579685]=_0xb8cb0c[_0x579685]);}return _0xfe9a91;},c[_0x5c52dd(0x1b0)](this,arguments);},Ce=function(_0x1a4d9e,_0x2ad66e){var _0x2bd257=_0x3f6484,_0x16c1e7={};for(var _0x5cc590 in _0x1a4d9e)Object['prototype']['hasOwnProperty'][_0x2bd257(0x192)](_0x1a4d9e,_0x5cc590)&&_0x2ad66e['indexOf'](_0x5cc590)<0x0&&(_0x16c1e7[_0x5cc590]=_0x1a4d9e[_0x5cc590]);if(_0x1a4d9e!=null&&typeof Object[_0x2bd257(0x1a0)]==_0x2bd257(0x1a5)){for(var _0x2571b4=0x0,_0x5cc590=Object[_0x2bd257(0x1a0)](_0x1a4d9e);_0x2571b4<_0x5cc590[_0x2bd257(0x232)];_0x2571b4++)_0x2ad66e[_0x2bd257(0x222)](_0x5cc590[_0x2571b4])<0x0&&Object[_0x2bd257(0x230)][_0x2bd257(0x1e6)][_0x2bd257(0x192)](_0x1a4d9e,_0x5cc590[_0x2571b4])&&(_0x16c1e7[_0x5cc590[_0x2571b4]]=_0x1a4d9e[_0x5cc590[_0x2571b4]]);}return _0x16c1e7;},W=_0x2fbe4c(function(_0x4650a6,_0x11915e){var _0x38feb2=_0x3f6484,_0xcc8b6b=_0x4650a6[_0x38feb2(0x22e)],_0x5de131=_0x4650a6['id'],_0xf9f63d=_0x4650a6[_0x38feb2(0x238)],_0x49d759=_0x4650a6[_0x38feb2(0x1c2)],_0x189f32=Ce(_0x4650a6,[_0x38feb2(0x22e),'id',_0x38feb2(0x238),_0x38feb2(0x1c2)]),_0x8a9249='univerjs-icon\x20univerjs-icon-'[_0x38feb2(0x1e3)](_0x5de131,'\x20')[_0x38feb2(0x1e3)](_0xf9f63d||'')[_0x38feb2(0x217)](),_0x32ea4c=_0x2d77f1('_'[_0x38feb2(0x1e3)](Le()));return Y(_0xcc8b6b,''[_0x38feb2(0x1e3)](_0x5de131),{'defIds':_0xcc8b6b[_0x38feb2(0x1e9)],'idSuffix':_0x32ea4c[_0x38feb2(0x1ec)]},c({'ref':_0x11915e,'className':_0x8a9249},_0x189f32),_0x49d759);});function Y(_0x13e041,_0x531d8b,_0x2fd716,_0x150bb7,_0x3de9b4){var _0x15a491=_0x3f6484;return _0x540073(_0x13e041[_0x15a491(0x21c)],c(c({'key':_0x531d8b},De(_0x13e041,_0x2fd716,_0x3de9b4)),_0x150bb7),(xe(_0x13e041,_0x2fd716)[_0x15a491(0x1bc)]||[])[_0x15a491(0x1a1)](function(_0xc2e75,_0x49b9c7){var _0x19e03d=_0x15a491;return Y(_0xc2e75,''[_0x19e03d(0x1e3)](_0x531d8b,'-')[_0x19e03d(0x1e3)](_0x13e041[_0x19e03d(0x21c)],'-')['concat'](_0x49b9c7),_0x2fd716,void 0x0,_0x3de9b4);}));}function De(_0x16ebcc,_0x75b34b,_0xcb0a9c){var _0x1f3bde=_0x3f6484,_0x6723ef=c({},_0x16ebcc[_0x1f3bde(0x1c0)]);_0xcb0a9c!=null&&_0xcb0a9c[_0x1f3bde(0x1bb)]&&_0x6723ef[_0x1f3bde(0x1e7)]===_0x1f3bde(0x1bb)&&(_0x6723ef[_0x1f3bde(0x1e7)]=_0xcb0a9c[_0x1f3bde(0x1bb)]),_0x16ebcc[_0x1f3bde(0x21c)]===_0x1f3bde(0x1db)&&_0x6723ef['id']&&(_0x6723ef['id']=_0x6723ef['id']+_0x75b34b[_0x1f3bde(0x21b)]),Object['entries'](_0x6723ef)['forEach'](function(_0x2c895a){var _0x49c895=_0x1f3bde,_0x5c9904=_0x2c895a[0x0],_0x40a37f=_0x2c895a[0x1];_0x5c9904==='mask'&&typeof _0x40a37f==_0x49c895(0x1ed)&&(_0x6723ef[_0x5c9904]=_0x40a37f[_0x49c895(0x1ea)](/url\(#(.*)\)/,_0x49c895(0x1bd)[_0x49c895(0x1e3)](_0x75b34b[_0x49c895(0x21b)],')')));});var _0x2fd371=_0x75b34b[_0x1f3bde(0x1e9)];return!_0x2fd371||_0x2fd371['length']===0x0||(_0x16ebcc[_0x1f3bde(0x21c)]===_0x1f3bde(0x1ac)&&_0x6723ef[_0x1f3bde(0x1dc)]&&(_0x6723ef[_0x1f3bde(0x1dc)]=_0x6723ef[_0x1f3bde(0x1dc)]+_0x75b34b['idSuffix']),Object[_0x1f3bde(0x239)](_0x6723ef)['forEach'](function(_0x37927e){var _0x1b7d52=_0x1f3bde,_0x4260ef=_0x37927e[0x0],_0x530e04=_0x37927e[0x1];typeof _0x530e04==_0x1b7d52(0x1ed)&&(_0x6723ef[_0x4260ef]=_0x530e04['replace'](/url\(#(.*)\)/,_0x1b7d52(0x1bd)[_0x1b7d52(0x1e3)](_0x75b34b['idSuffix'],')')));})),_0x6723ef;}function xe(_0x4af652,_0x4465eb){var _0x4fcfff=_0x3f6484,_0x5b2fd8,_0x3d2eb9=_0x4465eb[_0x4fcfff(0x1e9)];return!_0x3d2eb9||_0x3d2eb9[_0x4fcfff(0x232)]===0x0?_0x4af652:_0x4af652['tag']===_0x4fcfff(0x1a3)&&(!((_0x5b2fd8=_0x4af652['children'])===null||_0x5b2fd8===void 0x0)&&_0x5b2fd8[_0x4fcfff(0x232)])?c(c({},_0x4af652),{'children':_0x4af652['children'][_0x4fcfff(0x1a1)](function(_0x10eb05){var _0xc8f5d2=_0x4fcfff;return typeof _0x10eb05['attrs']['id']=='string'&&_0x3d2eb9&&_0x3d2eb9[_0xc8f5d2(0x1a8)](_0x10eb05[_0xc8f5d2(0x1c0)]['id'])?c(c({},_0x10eb05),{'attrs':c(c({},_0x10eb05['attrs']),{'id':_0x10eb05[_0xc8f5d2(0x1c0)]['id']+_0x4465eb[_0xc8f5d2(0x21b)]})}):_0x10eb05;})}):_0x4af652;}function Le(){var _0x5d4095=_0x3f6484;return Math[_0x5d4095(0x231)]()[_0x5d4095(0x236)](0x24)[_0x5d4095(0x201)](0x2,0x8);}W[_0x3f6484(0x203)]=_0x3f6484(0x1f7);function _0x7f9e(){var _0x3eb531=['M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','getCurrentTypeOfUnit$','asObservable','requireSession','add','mask','xlink:href','getLiveShareCoordinator','OPERATION','disposeWithMe','_commandService','_handleNewChangeSets','getUnitId','concat','_presenter','sessionStatus$','propertyIsEnumerable','fill','find','defIds','replace','tryStartPresenting','current','string','pluginName','dispose','_sharedOperations','LIVESHARE_NEW_HOST','sheet','subscribe','then','presenting','currentColor','UniverIcon','has','getMemberID','symbol','hasOwnProperty','registerInitialStateReporter','_commandDisposable','_unitID','242377YmzVxA','offline','substring','You\x27re\x20presenting\x20the\x20document','displayName','_status','UNIVER_SHEET','_handleOffline','end','parse','status$','HEADER_MENU','not-following','_configService','stopPresenting','stopFollowing','event$','_liveShareService','_collabSessionService','_beIdle','_startLiveShareCoordinator','getInitialStates','Start\x20following','_reporters','trim','override','ONLINE','from','idSuffix','tag','10IGfOOw','NOT_FOLLOWING','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startFollowing','_collabSession','indexOf','getOwnPropertyDescriptor','_handleTerminate','_stopPresenting','_entities','http://www.w3.org/2000/svg','presenter','executeCommand','none','You\x27re\x20not\x20following\x20the\x20presenter','_config','next','icon','7CZhKKg','prototype','random','length','LIVESHARE_TERMINATE','NEW_CHANGESETS','0\x200\x2017\x2017','toString','_status$','className','entries','live-share.config','_startPresenting','pipe','You\x27re\x20following\x20the\x20presenter','getConfig','setConfig','complete','_injector','registerComponent','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','onStarting','FOLLOWING','call','default','set','values','Start','assign','defineProperty','forEach','registerSharedOperation','div','_handleOnline','823128IVqPmj','following','_uiPartsService','getOwnPropertySymbols','map','delete','defs','_univerInstanceService','function','idle','stringify','includes','type','text','Stop\x20presenting','use','_mountLiveShare','svg','onCommandExecuted','apply','params','6321213RJkBNu','_fetchOperations','dispose$','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','univer-size-4','801804JtaDXZ','get','3310865aVKwsL','send','colorChannel1','children','url(#$1','LIVESHARE_OPERATION','evenodd','attrs','_init','extend','2420456oEYcnj','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','PRESENTING','getTypeOfUnitDisposed$','init','path','data','IDLE','_stopFollowing','LiveShareIcon','mutations','1em','3KgRTLY','startFollowing','1752152PGmLKe','shouldShareOperation','OFFLINE','live-share-icon','Stop\x20following'];_0x7f9e=function(){return _0x3eb531;};return _0x7f9e();}var ye={'tag':_0x3f6484(0x1ae),'attrs':{'xmlns':_0x3f6484(0x227),'fill':_0x3f6484(0x22a),'viewBox':_0x3f6484(0x235),'width':_0x3f6484(0x1ce),'height':_0x3f6484(0x1ce)},'children':[{'tag':_0x3f6484(0x1c8),'attrs':{'fill':_0x3f6484(0x1f6),'d':_0x3f6484(0x1d6)}},{'tag':_0x3f6484(0x1c8),'attrs':{'fill':_0x3f6484(0x1f6),'d':_0x3f6484(0x1c4),'fillRule':_0x3f6484(0x1bf),'clipRule':_0x3f6484(0x1bf)}}]},B=_0x2fbe4c(function(_0x4435b8,_0x49b74c){var _0x2cb07c=_0x3f6484;return _0x540073(W,Object[_0x2cb07c(0x197)]({},_0x4435b8,{'id':_0x2cb07c(0x1d4),'ref':_0x49b74c,'icon':ye}));});B['displayName']=_0x3f6484(0x1cc);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x3a7b9a,_0x425914,_0x4e20d1,_0x9b0c31)=>{var _0xcca0f1=_0x3f6484;for(var _0x1b158c=_0x9b0c31>0x1?void 0x0:_0x9b0c31?Re(_0x425914,_0x4e20d1):_0x425914,_0x9888e0=_0x3a7b9a[_0xcca0f1(0x232)]-0x1,_0x3495da;_0x9888e0>=0x0;_0x9888e0--)(_0x3495da=_0x3a7b9a[_0x9888e0])&&(_0x1b158c=_0x3495da(_0x1b158c)||_0x1b158c);return _0x1b158c;},f=(_0x56e26c,_0x5d4780)=>(_0x45d9d3,_0x4f8937)=>_0x5d4780(_0x45d9d3,_0x4f8937,_0x56e26c);let I=class extends _0x395f61{constructor(_0x1dc664,_0x5d4ab1,_0x3b7229){var _0x53726c=_0x3f6484;super(),d(this,_0x53726c(0x226),new Map()),(this[_0x53726c(0x1a4)]=_0x1dc664,this[_0x53726c(0x241)]=_0x5d4ab1,this[_0x53726c(0x211)]=_0x3b7229,this[_0x53726c(0x1c1)]());}async[_0x3f6484(0x1dd)](_0x452c4f){var _0x20d26f=_0x3f6484;return this['_entities'][_0x20d26f(0x1f8)](_0x452c4f)||await this[_0x20d26f(0x213)](_0x452c4f),this[_0x20d26f(0x226)][_0x20d26f(0x1b8)](_0x452c4f);}[_0x3f6484(0x1c1)](){var _0x2bc87f=_0x3f6484;this[_0x2bc87f(0x1a4)]['getTypeOfUnitAdded$'](_0x4d54d3[_0x2bc87f(0x205)])[_0x2bc87f(0x23c)](_0x8cada7(this[_0x2bc87f(0x1b4)]))[_0x2bc87f(0x1f3)](async _0x15e72b=>{var _0x15b0b6=_0x2bc87f;const _0x2212e0=_0x15e72b[_0x15b0b6(0x1e2)]();this[_0x15b0b6(0x226)][_0x15b0b6(0x1f8)](_0x2212e0)||this[_0x15b0b6(0x213)](_0x2212e0);}),this[_0x2bc87f(0x1a4)][_0x2bc87f(0x1c6)](_0x4d54d3[_0x2bc87f(0x205)])[_0x2bc87f(0x23c)](_0x8cada7(this['dispose$']))[_0x2bc87f(0x1f3)](_0x2d6ae1=>{var _0x3fd885=_0x2bc87f;const _0x2b4e67=_0x2d6ae1[_0x3fd885(0x1e2)](),_0x2668a5=this['_entities'][_0x3fd885(0x1b8)](_0x2b4e67);_0x2668a5==null||_0x2668a5[_0x3fd885(0x1ef)]();});}async[_0x3f6484(0x213)](_0x567d72){var _0x36e6cf=_0x3f6484;const _0x45f211=await this[_0x36e6cf(0x211)][_0x36e6cf(0x1d9)](_0x567d72),_0x63ab66=this[_0x36e6cf(0x241)]['createInstance'](C,_0x567d72,_0x45f211);return _0x63ab66[_0x36e6cf(0x1c7)](),this['_entities'][_0x36e6cf(0x194)](_0x567d72,_0x63ab66),_0x63ab66;}};I=Z([f(0x0,_0x42e888),f(0x1,_0xb0930d(_0xd563d9)),f(0x2,_0xb0930d(_0x44272f))],I);var h=(_0x581310=>(_0x581310['OFFLINE']=_0x3f6484(0x200),_0x581310[_0x3f6484(0x1ca)]='idle',_0x581310['FOLLOWING']=_0x3f6484(0x19e),_0x581310[_0x3f6484(0x21e)]=_0x3f6484(0x20b),_0x581310[_0x3f6484(0x1c5)]=_0x3f6484(0x1f5),_0x581310))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x395f61{constructor(_0x494d65,_0x46c792,_0x149535,_0x18250f,_0x4a8932){var _0x22ef4a=_0x3f6484;super(),d(this,_0x22ef4a(0x237),new _0x3ea211(_0x22ef4a(0x1a6))),d(this,_0x22ef4a(0x209),this[_0x22ef4a(0x237)][_0x22ef4a(0x1d8)]()),d(this,_0x22ef4a(0x1c1),!0x1),d(this,_0x22ef4a(0x1fd),null),d(this,_0x22ef4a(0x1e4),null),(this['_unitID']=_0x494d65,this['_collabSession']=_0x46c792,this['_configService']=_0x149535,this[_0x22ef4a(0x210)]=_0x18250f,this[_0x22ef4a(0x1e0)]=_0x4a8932);}get[_0x3f6484(0x204)](){var _0x2cc9fb=_0x3f6484;return this[_0x2cc9fb(0x237)]['getValue']();}[_0x3f6484(0x1ef)](){var _0x39ef2c=_0x3f6484,_0x4fe5c4;(_0x4fe5c4=this[_0x39ef2c(0x1fd)])==null||_0x4fe5c4[_0x39ef2c(0x1ef)](),this[_0x39ef2c(0x237)][_0x39ef2c(0x22d)](_0x39ef2c(0x1a6)),this[_0x39ef2c(0x237)][_0x39ef2c(0x240)]();}[_0x3f6484(0x1c7)](){var _0x18572f=_0x3f6484;this[_0x18572f(0x1c1)]||(this[_0x18572f(0x1c1)]=!0x0,this['_collabSession'][_0x18572f(0x1e5)][_0x18572f(0x23c)](_0x8cada7(this[_0x18572f(0x1b4)]))[_0x18572f(0x1f3)](_0x42ae8c=>{var _0x31b91f=_0x18572f;switch(_0x42ae8c){case _0x3b378c[_0x31b91f(0x1d3)]:this[_0x31b91f(0x206)]();break;case _0x3b378c[_0x31b91f(0x219)]:this[_0x31b91f(0x19c)]();break;}}),this[_0x18572f(0x221)][_0x18572f(0x20f)][_0x18572f(0x23c)](_0x8cada7(this[_0x18572f(0x1b4)]))[_0x18572f(0x1f3)](_0x196d01=>{var _0x3dfae5=_0x18572f;const {eventID:_0x4f894f}=_0x196d01;switch(_0x4f894f){case _0x3e33df[_0x3dfae5(0x1f1)]:this['_handleNewHost'](_0x196d01);break;case _0x3e33df[_0x3dfae5(0x1be)]:this['_handleOperation'](_0x196d01);break;case _0x3e33df[_0x3dfae5(0x233)]:this[_0x3dfae5(0x224)]();break;case _0x3e33df[_0x3dfae5(0x234)]:this[_0x3dfae5(0x1e1)](_0x196d01);break;}}));}[_0x3f6484(0x1eb)](){var _0x438b72=_0x3f6484;this[_0x438b72(0x221)][_0x438b72(0x1ba)]({'eventID':_0x3e33df['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x438b72(0x1fe)],'userID':this[_0x438b72(0x221)][_0x438b72(0x1f9)]()}},this[_0x438b72(0x1fe)]);}[_0x3f6484(0x20d)](){var _0x3e4909=_0x3f6484;this['_status']==='presenting'&&(this['_status$'][_0x3e4909(0x22d)](_0x3e4909(0x1a6)),this[_0x3e4909(0x221)]['send']({'eventID':_0x3e33df[_0x3e4909(0x233)],'data':{'unitID':this['_unitID']}},this[_0x3e4909(0x1fe)]));}[_0x3f6484(0x1d0)](){var _0x127056=_0x3f6484;this[_0x127056(0x204)]===_0x127056(0x20b)&&(this[_0x127056(0x237)][_0x127056(0x22d)](_0x127056(0x19e)),this[_0x127056(0x220)]());}[_0x3f6484(0x20e)](){var _0x1a6d1a=_0x3f6484;this[_0x1a6d1a(0x204)]===_0x1a6d1a(0x19e)&&this[_0x1a6d1a(0x1cb)]();}['_handleNewHost'](_0x5a6bda){var _0x10c723=_0x3f6484;const {presenter:_0x2a7e68}=_0x5a6bda[_0x10c723(0x1c9)],_0x4e429d=this[_0x10c723(0x221)][_0x10c723(0x1f9)]();this[_0x10c723(0x1e4)]=_0x2a7e68,_0x2a7e68===_0x4e429d?(this['_stopFollowing'](),this[_0x10c723(0x23b)]()):this[_0x10c723(0x204)]!==_0x10c723(0x20b)&&(this[_0x10c723(0x225)](),this[_0x10c723(0x220)]());}[_0x3f6484(0x1b3)](){var _0x49aa09=_0x3f6484;const _0xa41da9={'eventID':_0x3e33df['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x49aa09(0x1ba)](_0xa41da9,this[_0x49aa09(0x1fe)]);}[_0x3f6484(0x224)](){var _0x1f9165=_0x3f6484;this[_0x1f9165(0x1e4)]=null,this[_0x1f9165(0x204)]!==_0x1f9165(0x1f5)&&this[_0x1f9165(0x212)]();}['_handleNewChangeSets'](_0x461d9a){var _0x4c0f3d=_0x3f6484;if(this[_0x4c0f3d(0x204)]===_0x4c0f3d(0x19e)&&this[_0x4c0f3d(0x1e4)]===_0x461d9a[_0x4c0f3d(0x1c9)]['memberID']){const _0x4f74bf=_0x20f59d(_0x461d9a[_0x4c0f3d(0x1c9)])[_0x4c0f3d(0x1cd)]['reverse']()[_0x4c0f3d(0x1e8)](_0x193b6a=>_0x193b6a['id']===_0x4ed00e['id']);if(_0x4f74bf){const _0x276c08=_0x4f74bf[_0x4c0f3d(0x1b1)]['unitId'],_0x3ed59c=_0x4f74bf[_0x4c0f3d(0x1b1)][_0x4c0f3d(0x1f2)]['id'];setTimeout(()=>{var _0x15ee85=_0x4c0f3d;this[_0x15ee85(0x1e0)][_0x15ee85(0x229)](_0x5290c1['id'],{'unitId':_0x276c08,'subUnitId':_0x3ed59c},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x3a9644=_0x3f6484;this[_0x3a9644(0x237)]['next']('presenting');const _0x1162ef=new Map(),_0x4965b0=this[_0x3a9644(0x1fd)]=new _0x3dec07();_0x4965b0[_0x3a9644(0x1da)](_0x5d9009(()=>{var _0x26301d=_0x3a9644;_0x1162ef['forEach'](_0x5dd723=>_0x5dd723[_0x26301d(0x240)]()),_0x1162ef['clear']();})),_0x4965b0[_0x3a9644(0x1da)](this[_0x3a9644(0x1e0)][_0x3a9644(0x1af)](_0x2d852f=>{var _0x58e171=_0x3a9644,_0x5beb35;if(_0x2d852f[_0x58e171(0x1a9)]!==_0x174ae4[_0x58e171(0x1de)]||!this[_0x58e171(0x210)][_0x58e171(0x1d2)](_0x2d852f['id']))return;const {id:_0x92cc89}=_0x2d852f;let _0x308529;_0x1162ef[_0x58e171(0x1f8)](_0x92cc89)?_0x308529=_0x1162ef[_0x58e171(0x1b8)](_0x92cc89):(_0x308529=new _0x3cce0e(),_0x1162ef[_0x58e171(0x194)](_0x92cc89,_0x308529),_0x308529[_0x58e171(0x23c)](_0x1b3bef((_0x5beb35=this[_0x58e171(0x20c)][_0x58e171(0x23e)](Pe))!=null?_0x5beb35:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x58e171(0x1f3)](_0x2636d0=>{var _0x445e4c=_0x58e171;this[_0x445e4c(0x221)][_0x445e4c(0x1ba)]({'eventID':_0x3e33df['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x445e4c(0x1fe)],'operations':{[_0x2636d0['id']]:{'id':_0x2636d0['id'],'params':JSON[_0x445e4c(0x1a7)](_0x2636d0[_0x445e4c(0x1b1)])}}}},this['_unitID']);})),_0x308529[_0x58e171(0x22d)](_0x2d852f);})),this[_0x3a9644(0x210)]['getInitialStates'](this['_unitID'])[_0x3a9644(0x199)](_0x466dd9=>this['_collabSession'][_0x3a9644(0x1ba)]({'eventID':_0x3e33df[_0x3a9644(0x1be)],'data':{'unitID':this['_unitID'],'operations':{[_0x466dd9['id']]:{'id':_0x466dd9['id'],'params':JSON[_0x3a9644(0x1a7)](_0x466dd9[_0x3a9644(0x1b1)])}}}},this[_0x3a9644(0x1fe)]));}[_0x3f6484(0x225)](){var _0x46b4bc=_0x3f6484,_0x9ed68b;this['_status$'][_0x46b4bc(0x22d)](_0x46b4bc(0x1a6)),(_0x9ed68b=this[_0x46b4bc(0x1fd)])==null||_0x9ed68b[_0x46b4bc(0x1ef)](),this[_0x46b4bc(0x1fd)]=null;}[_0x3f6484(0x220)](){var _0x39c7dd=_0x3f6484,_0x59b942;(_0x59b942=this['_commandDisposable'])==null||_0x59b942['dispose'](),this['_status$']['next'](_0x39c7dd(0x19e));}['_beIdle'](){var _0x45e4e2=_0x3f6484,_0x9bee58;this[_0x45e4e2(0x237)][_0x45e4e2(0x22d)]('idle'),(_0x9bee58=this[_0x45e4e2(0x1fd)])==null||_0x9bee58[_0x45e4e2(0x1ef)](),this[_0x45e4e2(0x1fd)]=null;}['_stopFollowing'](){var _0x597f23=_0x3f6484,_0x5ddbcd;this[_0x597f23(0x237)][_0x597f23(0x22d)](_0x597f23(0x20b)),(_0x5ddbcd=this[_0x597f23(0x1fd)])==null||_0x5ddbcd[_0x597f23(0x1ef)]();}['_handleOperation'](_0x17bd60){var _0xfb4874=_0x3f6484;if(['presenting',_0xfb4874(0x20b),'offline'][_0xfb4874(0x1a8)](this[_0xfb4874(0x204)])||!_0x17bd60['data'][_0xfb4874(0x228)]||_0x17bd60[_0xfb4874(0x1c9)][_0xfb4874(0x228)]===this[_0xfb4874(0x221)][_0xfb4874(0x1f9)]())return;this[_0xfb4874(0x204)]===_0xfb4874(0x1a6)&&this[_0xfb4874(0x220)]();const _0x965bf3=_0x17bd60[_0xfb4874(0x1c9)]['operations'];Object[_0xfb4874(0x195)](_0x965bf3)[_0xfb4874(0x199)](_0x4b4011=>{var _0x534f5a=_0xfb4874;this[_0x534f5a(0x1e0)][_0x534f5a(0x229)](_0x4b4011['id'],_0x4b4011[_0x534f5a(0x1b1)]?JSON[_0x534f5a(0x208)](_0x4b4011[_0x534f5a(0x1b1)]):null,{'fromCollab':!0x0});});}[_0x3f6484(0x206)](){var _0x30acc3=_0x3f6484,_0x42c01a;this['_status$'][_0x30acc3(0x22d)](_0x30acc3(0x200)),(_0x42c01a=this[_0x30acc3(0x1fd)])==null||_0x42c01a['dispose']();}[_0x3f6484(0x19c)](){var _0x259562=_0x3f6484;this[_0x259562(0x237)][_0x259562(0x22d)]('idle'),this[_0x259562(0x1b3)]();}};C=Z([f(0x2,_0x12e4b9),f(0x3,_0xb0930d(L)),f(0x4,_0x49d015)],C);function _0x1eb5(_0x1413f4,_0x250eb2){var _0x7f9ee4=_0x7f9e();return _0x1eb5=function(_0x1eb595,_0x5387a3){_0x1eb595=_0x1eb595-0x190;var _0x2df395=_0x7f9ee4[_0x1eb595];return _0x2df395;},_0x1eb5(_0x1413f4,_0x250eb2);}function Te(){var _0x583f4b=_0x3f6484;const _0x399aba=_0xa5510d(I),_0x28420b=_0xa5510d(_0x42e888),_0x51aeeb=_0x2d9124(()=>_0x28420b[_0x583f4b(0x1d7)](_0x4d54d3[_0x583f4b(0x205)]),void 0x0,!0x1,[]),[_0x52efed,_0x434724]=_0x54cd30(null),[_0x4b9a75,_0x55c526]=_0x54cd30(h[_0x583f4b(0x1ca)]),_0x46be48=_0x2d77f1(null);return _0x27b4cf(()=>(_0x51aeeb&&_0x399aba['getLiveShareCoordinator'](_0x51aeeb['getUnitId']())[_0x583f4b(0x1f4)](_0x5f192c=>{var _0x328361=_0x583f4b;_0x434724(_0x5f192c),_0x46be48[_0x328361(0x1ec)]=_0x5f192c[_0x328361(0x209)][_0x328361(0x1f3)](_0x3d4060=>{_0x55c526(_0x3d4060);});}),()=>{var _0x5cdf7b=_0x583f4b,_0x201cbb;(_0x201cbb=_0x46be48['current'])==null||_0x201cbb['unsubscribe'](),_0x46be48[_0x5cdf7b(0x1ec)]=null;}),[_0x51aeeb,_0x399aba]),_0x52efed?_0x43ea3b(_0x1da88c,{'align':_0x583f4b(0x207),'disabled':_0x4b9a75===h[_0x583f4b(0x1d3)],'className':_0x583f4b(0x1b5),'overlay':_0x43ea3b($e,{'status':_0x4b9a75,'coordinator':_0x52efed}),'children':_0x43ea3b('button',{'className':_0x5c6958(_0x583f4b(0x243),{'univer-cursor-not-allowed':_0x4b9a75===h[_0x583f4b(0x1d3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4b9a75!==h[_0x583f4b(0x1d3)]}),'type':'button','children':_0x43ea3b(B,{'className':_0x583f4b(0x1b6)})})}):null;}function $e(_0x13bc4c){var _0x265915=_0x3f6484;const {status:_0x48012f,coordinator:_0x516e3b}=_0x13bc4c;switch(_0x48012f){case h[_0x265915(0x1ca)]:return _0x43ea3b(Fe,{'coordinator':_0x516e3b});case h[_0x265915(0x191)]:return _0x43ea3b(He,{'coordinator':_0x516e3b});case h['NOT_FOLLOWING']:return _0x43ea3b(je,{'coordinator':_0x516e3b});case h[_0x265915(0x1d3)]:return _0x43ea3b(Ve,{});case h[_0x265915(0x1c5)]:return _0x43ea3b(Ue,{'coordinator':_0x516e3b});default:return null;}}function Fe(_0x573df3){var _0xa672ca=_0x3f6484;const {coordinator:_0xebfc2f}=_0x573df3;return _0x3a2126(_0x4fe31c,{'children':[_0x43ea3b(_0xa672ca(0x19b),{'className':_0xa672ca(0x21f),'children':'Present\x20this\x20document'}),_0x43ea3b(_0x5149cf,{'onClick':()=>_0xebfc2f['tryStartPresenting'](),'children':_0xa672ca(0x196)})]});}function He(_0x41fbf6){var _0x1ee31d=_0x3f6484;const {coordinator:_0x37657d}=_0x41fbf6;return _0x3a2126(_0x4fe31c,{'children':[_0x43ea3b(_0x1ee31d(0x19b),{'className':_0x1ee31d(0x21f),'children':_0x1ee31d(0x23d)}),_0x43ea3b(_0x5149cf,{'onClick':()=>_0x37657d[_0x1ee31d(0x20e)](),'children':_0x1ee31d(0x1d5)})]});}function je(_0x4efb1f){var _0xb7817a=_0x3f6484;const {coordinator:_0x5323d5}=_0x4efb1f;return _0x3a2126(_0x4fe31c,{'children':[_0x43ea3b(_0xb7817a(0x19b),{'className':_0xb7817a(0x21f),'children':_0xb7817a(0x22b)}),_0x43ea3b(_0x5149cf,{'variant':_0xb7817a(0x1aa),'onClick':()=>_0x5323d5['startFollowing'](),'children':_0xb7817a(0x215)})]});}function Ue(_0x2400a5){var _0x10c872=_0x3f6484;const {coordinator:_0x678897}=_0x2400a5;return _0x3a2126(_0x4fe31c,{'children':[_0x43ea3b(_0x10c872(0x19b),{'className':_0x10c872(0x21f),'children':_0x10c872(0x202)}),_0x43ea3b(_0x5149cf,{'variant':_0x10c872(0x193),'onClick':()=>_0x678897[_0x10c872(0x20d)](),'children':_0x10c872(0x1ab)})]});}function Ve(){return _0x43ea3b(_0x4fe31c,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x3f6484(0x223)],ke=(_0x34d0b8,_0x2ee673,_0x128d4e,_0xe1a25e)=>{for(var _0xc38861=_0xe1a25e>0x1?void 0x0:_0xe1a25e?Me(_0x2ee673,_0x128d4e):_0x2ee673,_0x318b76=_0x34d0b8['length']-0x1,_0x34d245;_0x318b76>=0x0;_0x318b76--)(_0x34d245=_0x34d0b8[_0x318b76])&&(_0xc38861=_0x34d245(_0xc38861)||_0xc38861);return _0xc38861;},$=(_0x26f81e,_0x37b05b)=>(_0x152a4e,_0x2d1235)=>_0x37b05b(_0x152a4e,_0x2d1235,_0x26f81e);let b=class extends _0x1c6341{constructor(_0x4f07bf,_0x5cd3be){var _0x28bc21=_0x3f6484;super(),this['_injector']=_0x4f07bf,this[_0x28bc21(0x19f)]=_0x5cd3be,this[_0x28bc21(0x1ad)]();}[_0x3f6484(0x1ad)](){var _0x25745e=_0x3f6484;this[_0x25745e(0x1df)](this[_0x25745e(0x19f)][_0x25745e(0x242)](_0x40a2e7[_0x25745e(0x20a)],()=>_0x326657(Te,this['_injector'])));}};b=ke([$(0x0,_0xb0930d(_0xd563d9)),$(0x1,_0x66463e)],b);var Ge=Object[_0x3f6484(0x198)],We=Object[_0x3f6484(0x223)],Ye=(_0x5ebbef,_0x54a7f1,_0x5a39f0)=>_0x54a7f1 in _0x5ebbef?Ge(_0x5ebbef,_0x54a7f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a39f0}):_0x5ebbef[_0x54a7f1]=_0x5a39f0,Be=(_0x11243b,_0x12def3,_0x2b35e5,_0x7a80aa)=>{var _0x46fe2f=_0x3f6484;for(var _0xf5d9ba=_0x7a80aa>0x1?void 0x0:_0x7a80aa?We(_0x12def3,_0x2b35e5):_0x12def3,_0x589e8c=_0x11243b[_0x46fe2f(0x232)]-0x1,_0x246e11;_0x589e8c>=0x0;_0x589e8c--)(_0x246e11=_0x11243b[_0x589e8c])&&(_0xf5d9ba=_0x246e11(_0xf5d9ba)||_0xf5d9ba);return _0xf5d9ba;},F=(_0x5a0550,_0x7dd6b5)=>(_0x19ad5f,_0x5d4f6d)=>_0x7dd6b5(_0x19ad5f,_0x5d4f6d,_0x5a0550),J=(_0xe2c96e,_0x5a0c64,_0xdff54d)=>Ye(_0xe2c96e,typeof _0x5a0c64!='symbol'?_0x5a0c64+'':_0x5a0c64,_0xdff54d);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1608cc{constructor(_0x280542=T,_0x5ec4f2,_0x26ccde){var _0x35c66=_0x3f6484;super(),this[_0x35c66(0x22c)]=_0x280542,this[_0x35c66(0x241)]=_0x5ec4f2,this['_configService']=_0x26ccde;const {..._0x229c31}=_0x17d777({},T,this[_0x35c66(0x22c)]);this[_0x35c66(0x20c)][_0x35c66(0x23f)](Oe,_0x229c31);}[_0x3f6484(0x190)](){var _0x464908=_0x3f6484;_0x2e569d(this[_0x464908(0x241)],_0x4e9805([[L],[I],[m],[b]],this[_0x464908(0x22c)][_0x464908(0x218)])),_0x5a07de(this[_0x464908(0x241)],[[m]]);}['onRendered'](){var _0x460f41=_0x3f6484;_0x5a07de(this[_0x460f41(0x241)],[[b]]);}};J(O,'type',_0x4d54d3['UNIVER_UNKNOWN']),J(O,_0x3f6484(0x1ee),Ze),O=Be([_0x311632(_0x589148),F(0x1,_0xb0930d(_0xd563d9)),F(0x2,_0x12e4b9)],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 _0xf334e2=_0x4667;(function(_0x20f25a,_0x4c3f9f){var _0x28b686=_0x4667,_0x5b2281=_0x20f25a();while(!![]){try{var _0x16aaa0=-parseInt(_0x28b686(0x11e))/0x1*(-parseInt(_0x28b686(0x18e))/0x2)+parseInt(_0x28b686(0x119))/0x3+parseInt(_0x28b686(0x187))/0x4+-parseInt(_0x28b686(0x17f))/0x5*(-parseInt(_0x28b686(0x115))/0x6)+-parseInt(_0x28b686(0x1aa))/0x7*(parseInt(_0x28b686(0x17e))/0x8)+parseInt(_0x28b686(0x113))/0x9*(-parseInt(_0x28b686(0x1af))/0xa)+parseInt(_0x28b686(0x117))/0xb*(-parseInt(_0x28b686(0x14b))/0xc);if(_0x16aaa0===_0x4c3f9f)break;else _0x5b2281['push'](_0x5b2281['shift']());}catch(_0x37d14f){_0x5b2281['push'](_0x5b2281['shift']());}}}(_0x40a3,0x973be));var q=Object[_0xf334e2(0x141)],z=(_0x3860cd,_0x57cdcd,_0x576336)=>_0x57cdcd in _0x3860cd?q(_0x3860cd,_0x57cdcd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x576336}):_0x3860cd[_0x57cdcd]=_0x576336,d=(_0x125cd5,_0x1070b9,_0xcebaf9)=>z(_0x125cd5,typeof _0x1070b9!='symbol'?_0x1070b9+'':_0x1070b9,_0xcebaf9);import{CollaborationSessionService as _0x9b3ad1,SessionStatus as _0x184166,UniverCollaborationClientPlugin as _0x15931d}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4fbb92,toDisposable as _0xcecd2e,Inject as _0x391104,IUniverInstanceService as _0x52fbd8,Injector as _0x50d8d5,IConfigService as _0xa8db64,ICommandService as _0x4c9b97,RxDisposable as _0x49725e,UniverInstanceType as _0x3e9585,DisposableCollection as _0x570819,CommandType as _0x3818ef,DependentOn as _0x164c8e,Plugin as _0x3b5838,merge as _0x498ff2,registerDependencies as _0x367e1b,mergeOverrideWithDependencies as _0x1a39d1,touchDependencies as _0x88c823}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xe2d3fc,InsertSheetMutation as _0x2d3df6}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x620f7b,SetScrollOperation as _0x2053df}from'@univerjs/sheets-ui';import{useDependency as _0x5bc371,useObservable as _0x2cf7b6,IUIPartsService as _0x4401df,BuiltInUIPart as _0x319efd,connectInjector as _0x5ee7f0}from'@univerjs/ui';import{jsx as _0x58a139,jsxs as _0xaa6a18,Fragment as _0x1f494c}from'react/jsx-runtime';import{Dropdown as _0x43a82b,clsx as _0x123502,Button as _0xa639cf}from'@univerjs/design';import{forwardRef as _0x529c36,useRef as _0x14033a,createElement as _0x2a6fac,useState as _0x29ffd8,useEffect as _0x25d3be}from'react';import{CollaborationEvent as _0x53cb61,parseProtocolChangeset as _0x9a4087}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x33dc69,Subject as _0x8899cb}from'rxjs';import{takeUntil as _0x2d6d70,throttleTime as _0x1d9523}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x4fbb92{constructor(){var _0x4bb17c=_0xf334e2;super(...arguments),d(this,_0x4bb17c(0x1b1),new Set()),d(this,_0x4bb17c(0x1b6),new Set());}[_0xf334e2(0x14f)](_0x3f3d7a){var _0x545feb=_0xf334e2;return this[_0x545feb(0x1b1)][_0x545feb(0x12c)](_0x3f3d7a),_0xcecd2e(()=>this['_sharedOperations'][_0x545feb(0x17b)](_0x3f3d7a));}['registerInitialStateReporter'](_0x282432){var _0x536725=_0xf334e2;return this[_0x536725(0x1b6)][_0x536725(0x12c)](_0x282432),_0xcecd2e(()=>this[_0x536725(0x1b6)][_0x536725(0x17b)](_0x282432));}['shouldShareOperation'](_0x5ea3d1){var _0x545636=_0xf334e2;return this['_sharedOperations'][_0x545636(0x15d)](_0x5ea3d1);}[_0xf334e2(0x140)](_0x2b3c2d){var _0x231a10=_0xf334e2;return Array[_0x231a10(0x146)](this[_0x231a10(0x1b6)])[_0x231a10(0x16f)](_0x1bcbd1=>_0x1bcbd1(_0x2b3c2d));}}var Ee=Object[_0xf334e2(0x133)],we=(_0x5b000d,_0x3c8999,_0x184a88,_0x3a8a5c)=>{var _0x1e80a6=_0xf334e2;for(var _0x6e5bb1=_0x3a8a5c>0x1?void 0x0:_0x3a8a5c?Ee(_0x3c8999,_0x184a88):_0x3c8999,_0x53fc8e=_0x5b000d[_0x1e80a6(0x1a2)]-0x1,_0x1f1e96;_0x53fc8e>=0x0;_0x53fc8e--)(_0x1f1e96=_0x5b000d[_0x53fc8e])&&(_0x6e5bb1=_0x1f1e96(_0x6e5bb1)||_0x6e5bb1);return _0x6e5bb1;},Ne=(_0x29c201,_0x3a615b)=>(_0x5153db,_0x4e2dac)=>_0x3a615b(_0x5153db,_0x4e2dac,_0x29c201);let m=class extends _0x4fbb92{constructor(_0x3cd05e){var _0x51c7ac=_0xf334e2;super(),this[_0x51c7ac(0x111)]=_0x3cd05e,this[_0x51c7ac(0x137)]();}['_init'](){[_0x620f7b['id'],_0x2053df['id'],_0xe2d3fc['id']]['forEach'](_0x12e061=>{var _0x17acca=_0x4667;this['disposeWithMe'](this[_0x17acca(0x111)][_0x17acca(0x14f)](_0x12e061));});}};m=we([Ne(0x0,_0x391104(L))],m);var c=function(){var _0xd67b87=_0xf334e2;return c=Object[_0xd67b87(0x1b0)]||function(_0x517f4a){var _0x4afc69=_0xd67b87;for(var _0x59c7f4,_0x22b532=0x1,_0x132316=arguments[_0x4afc69(0x1a2)];_0x22b532<_0x132316;_0x22b532++){_0x59c7f4=arguments[_0x22b532];for(var _0x3a40cb in _0x59c7f4)Object['prototype'][_0x4afc69(0x143)][_0x4afc69(0x176)](_0x59c7f4,_0x3a40cb)&&(_0x517f4a[_0x3a40cb]=_0x59c7f4[_0x3a40cb]);}return _0x517f4a;},c[_0xd67b87(0x1b9)](this,arguments);},Ce=function(_0x2fb6f9,_0x45add3){var _0x1e9736=_0xf334e2,_0x364f74={};for(var _0xa148ec in _0x2fb6f9)Object[_0x1e9736(0x186)]['hasOwnProperty'][_0x1e9736(0x176)](_0x2fb6f9,_0xa148ec)&&_0x45add3[_0x1e9736(0x168)](_0xa148ec)<0x0&&(_0x364f74[_0xa148ec]=_0x2fb6f9[_0xa148ec]);if(_0x2fb6f9!=null&&typeof Object[_0x1e9736(0x177)]==_0x1e9736(0x17d)){for(var _0x2bf52b=0x0,_0xa148ec=Object[_0x1e9736(0x177)](_0x2fb6f9);_0x2bf52b<_0xa148ec[_0x1e9736(0x1a2)];_0x2bf52b++)_0x45add3['indexOf'](_0xa148ec[_0x2bf52b])<0x0&&Object[_0x1e9736(0x186)][_0x1e9736(0x15a)][_0x1e9736(0x176)](_0x2fb6f9,_0xa148ec[_0x2bf52b])&&(_0x364f74[_0xa148ec[_0x2bf52b]]=_0x2fb6f9[_0xa148ec[_0x2bf52b]]);}return _0x364f74;},W=_0x529c36(function(_0x143ef9,_0x22bd47){var _0x3094d3=_0xf334e2,_0x3152df=_0x143ef9[_0x3094d3(0x129)],_0x4eb080=_0x143ef9['id'],_0x36878b=_0x143ef9['className'],_0x3159eb=_0x143ef9['extend'],_0x516f16=Ce(_0x143ef9,[_0x3094d3(0x129),'id','className','extend']),_0x44fc24='univerjs-icon\x20univerjs-icon-'[_0x3094d3(0x122)](_0x4eb080,'\x20')[_0x3094d3(0x122)](_0x36878b||'')[_0x3094d3(0x10f)](),_0x3737a9=_0x14033a('_'[_0x3094d3(0x122)](Le()));return Y(_0x3152df,''[_0x3094d3(0x122)](_0x4eb080),{'defIds':_0x3152df['defIds'],'idSuffix':_0x3737a9[_0x3094d3(0x172)]},c({'ref':_0x22bd47,'className':_0x44fc24},_0x516f16),_0x3159eb);});function Y(_0x36a07f,_0xb78a56,_0x204101,_0x27d2f6,_0x517d00){var _0xfe7d2a=_0xf334e2;return _0x2a6fac(_0x36a07f[_0xfe7d2a(0x171)],c(c({'key':_0xb78a56},De(_0x36a07f,_0x204101,_0x517d00)),_0x27d2f6),(xe(_0x36a07f,_0x204101)[_0xfe7d2a(0x150)]||[])['map'](function(_0x516150,_0x22826e){var _0x2dc539=_0xfe7d2a;return Y(_0x516150,''['concat'](_0xb78a56,'-')['concat'](_0x36a07f[_0x2dc539(0x171)],'-')[_0x2dc539(0x122)](_0x22826e),_0x204101,void 0x0,_0x517d00);}));}function De(_0x5822c9,_0x2214b2,_0x5ff3b2){var _0x455043=_0xf334e2,_0x52f2a4=c({},_0x5822c9[_0x455043(0x1a5)]);_0x5ff3b2!=null&&_0x5ff3b2[_0x455043(0x184)]&&_0x52f2a4[_0x455043(0x130)]===_0x455043(0x184)&&(_0x52f2a4[_0x455043(0x130)]=_0x5ff3b2[_0x455043(0x184)]),_0x5822c9[_0x455043(0x171)]==='mask'&&_0x52f2a4['id']&&(_0x52f2a4['id']=_0x52f2a4['id']+_0x2214b2[_0x455043(0x162)]),Object[_0x455043(0x17c)](_0x52f2a4)[_0x455043(0x1a6)](function(_0x3dd333){var _0x44c2f9=_0x455043,_0x4c229d=_0x3dd333[0x0],_0xcff0dd=_0x3dd333[0x1];_0x4c229d===_0x44c2f9(0x142)&&typeof _0xcff0dd==_0x44c2f9(0x13c)&&(_0x52f2a4[_0x4c229d]=_0xcff0dd['replace'](/url\(#(.*)\)/,_0x44c2f9(0x166)['concat'](_0x2214b2[_0x44c2f9(0x162)],')')));});var _0x2aef1f=_0x2214b2[_0x455043(0x1a8)];return!_0x2aef1f||_0x2aef1f['length']===0x0||(_0x5822c9[_0x455043(0x171)]===_0x455043(0x178)&&_0x52f2a4[_0x455043(0x179)]&&(_0x52f2a4[_0x455043(0x179)]=_0x52f2a4[_0x455043(0x179)]+_0x2214b2[_0x455043(0x162)]),Object[_0x455043(0x17c)](_0x52f2a4)[_0x455043(0x1a6)](function(_0x1e6640){var _0x192f8d=_0x455043,_0x39cbe2=_0x1e6640[0x0],_0x2f60a0=_0x1e6640[0x1];typeof _0x2f60a0==_0x192f8d(0x13c)&&(_0x52f2a4[_0x39cbe2]=_0x2f60a0['replace'](/url\(#(.*)\)/,_0x192f8d(0x166)[_0x192f8d(0x122)](_0x2214b2[_0x192f8d(0x162)],')')));})),_0x52f2a4;}function xe(_0x380d8f,_0x4e9f45){var _0xe10c1f=_0xf334e2,_0x8c2b2b,_0x1fc659=_0x4e9f45[_0xe10c1f(0x1a8)];return!_0x1fc659||_0x1fc659['length']===0x0?_0x380d8f:_0x380d8f['tag']===_0xe10c1f(0x144)&&(!((_0x8c2b2b=_0x380d8f[_0xe10c1f(0x150)])===null||_0x8c2b2b===void 0x0)&&_0x8c2b2b[_0xe10c1f(0x1a2)])?c(c({},_0x380d8f),{'children':_0x380d8f[_0xe10c1f(0x150)][_0xe10c1f(0x16f)](function(_0x564b8e){var _0x1b1de3=_0xe10c1f;return typeof _0x564b8e[_0x1b1de3(0x1a5)]['id']==_0x1b1de3(0x13c)&&_0x1fc659&&_0x1fc659['includes'](_0x564b8e['attrs']['id'])?c(c({},_0x564b8e),{'attrs':c(c({},_0x564b8e['attrs']),{'id':_0x564b8e['attrs']['id']+_0x4e9f45[_0x1b1de3(0x162)]})}):_0x564b8e;})}):_0x380d8f;}function Le(){var _0x4dee55=_0xf334e2;return Math['random']()[_0x4dee55(0x157)](0x24)[_0x4dee55(0x114)](0x2,0x8);}W[_0xf334e2(0x167)]=_0xf334e2(0x1a3);var ye={'tag':'svg','attrs':{'xmlns':_0xf334e2(0x112),'fill':_0xf334e2(0x147),'viewBox':_0xf334e2(0x19a),'width':_0xf334e2(0x13a),'height':_0xf334e2(0x13a)},'children':[{'tag':_0xf334e2(0x12a),'attrs':{'fill':_0xf334e2(0x17a),'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':_0xf334e2(0x12a),'attrs':{'fill':_0xf334e2(0x17a),'d':_0xf334e2(0x135),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x529c36(function(_0xf886bf,_0x489096){return _0x2a6fac(W,Object['assign']({},_0xf886bf,{'id':'live-share-icon','ref':_0x489096,'icon':ye}));});B[_0xf334e2(0x167)]=_0xf334e2(0x1b5);var Re=Object[_0xf334e2(0x133)],Z=(_0x3e53fc,_0x2a4bf0,_0x57cd35,_0x5990cd)=>{for(var _0x568f56=_0x5990cd>0x1?void 0x0:_0x5990cd?Re(_0x2a4bf0,_0x57cd35):_0x2a4bf0,_0x456307=_0x3e53fc['length']-0x1,_0x43b4ff;_0x456307>=0x0;_0x456307--)(_0x43b4ff=_0x3e53fc[_0x456307])&&(_0x568f56=_0x43b4ff(_0x568f56)||_0x568f56);return _0x568f56;},f=(_0x40c574,_0x27224e)=>(_0x54e9e3,_0xb78709)=>_0x27224e(_0x54e9e3,_0xb78709,_0x40c574);let I=class extends _0x49725e{constructor(_0x44d10e,_0x406840,_0x341851){var _0x4c531e=_0xf334e2;super(),d(this,_0x4c531e(0x13e),new Map()),(this['_univerInstanceService']=_0x44d10e,this[_0x4c531e(0x125)]=_0x406840,this[_0x4c531e(0x1a7)]=_0x341851,this[_0x4c531e(0x137)]());}async[_0xf334e2(0x156)](_0x45e393){var _0x5081be=_0xf334e2;return this[_0x5081be(0x13e)]['has'](_0x45e393)||await this['_startLiveShareCoordinator'](_0x45e393),this['_entities'][_0x5081be(0x18c)](_0x45e393);}['_init'](){var _0x55677d=_0xf334e2;this[_0x55677d(0x153)]['getTypeOfUnitAdded$'](_0x3e9585[_0x55677d(0x195)])['pipe'](_0x2d6d70(this['dispose$']))[_0x55677d(0x124)](async _0x24b2fc=>{var _0x550c0c=_0x55677d;const _0x18a540=_0x24b2fc[_0x550c0c(0x14e)]();this[_0x550c0c(0x13e)][_0x550c0c(0x15d)](_0x18a540)||this[_0x550c0c(0x11d)](_0x18a540);}),this['_univerInstanceService'][_0x55677d(0x161)](_0x3e9585['UNIVER_SHEET'])['pipe'](_0x2d6d70(this['dispose$']))[_0x55677d(0x124)](_0x25df2f=>{var _0x237e5e=_0x55677d;const _0x25050e=_0x25df2f[_0x237e5e(0x14e)](),_0x445ae8=this['_entities'][_0x237e5e(0x18c)](_0x25050e);_0x445ae8==null||_0x445ae8[_0x237e5e(0x1b7)]();});}async[_0xf334e2(0x11d)](_0x4c78cc){var _0x241634=_0xf334e2;const _0x467600=await this['_collabSessionService'][_0x241634(0x132)](_0x4c78cc),_0x50876a=this[_0x241634(0x125)][_0x241634(0x1ac)](C,_0x4c78cc,_0x467600);return _0x50876a[_0x241634(0x11b)](),this['_entities'][_0x241634(0x193)](_0x4c78cc,_0x50876a),_0x50876a;}};function _0x40a3(){var _0x12e13c=['_collabSession','438708VaChnR','IDLE','find','getUnitId','registerSharedOperation','children','tryStartPresenting','parse','_univerInstanceService','_handleOffline','ONLINE','getLiveShareCoordinator','toString','NOT_FOLLOWING','registerComponent','propertyIsEnumerable','_fetchOperations','_config','has','executeCommand','offline','You\x27are\x20offline.','getTypeOfUnitDisposed$','idSuffix','dispose$','onCommandExecuted','LIVESHARE_FETCH_OPERATIONS','url(#$1','displayName','indexOf','text','symbol','complete','_commandService','You\x27re\x20not\x20following\x20the\x20presenter','Start','map','OFFLINE','tag','current','stopFollowing','div','UNIVER_UNKNOWN','call','getOwnPropertySymbols','use','xlink:href','currentColor','delete','entries','function','3794456HhPeXa','295795NQvrHv','getMemberID','presenting','memberID','_handleNewHost','colorChannel1','HEADER_MENU','prototype','1123548BIuCfU','following','_startPresenting','_handleOperation','onRendered','get','_startFollowing','10WYnSZl','data','_unitID','You\x27re\x20presenting\x20the\x20document','pipe','set','NEW_CHANGESETS','UNIVER_SHEET','SAME_OPERATION_SHARE_INTERVAL','Start\x20following','type','startFollowing','0\x200\x2017\x2017','default','values','not-following','Stop\x20presenting','FOLLOWING','UNIVER_LIVE_SHARE_PLUGIN','stopPresenting','length','UniverIcon','_mountLiveShare','attrs','forEach','_collabSessionService','defIds','_status$','7QiekBO','_stopPresenting','createInstance','_configService','Stop\x20following','20yHFzgl','assign','_sharedOperations','end','PRESENTING','_handleTerminate','LiveShareIcon','_reporters','dispose','setConfig','apply','next','reverse','_presenter','_uiPartsService','sessionStatus$','_handleOnline','trim','pluginName','_liveShareService','http://www.w3.org/2000/svg','1942479onHwBV','substring','60DjsLTG','idle','209uOQNbM','getValue','478206KslRus','_commandDisposable','init','stringify','_startLiveShareCoordinator','237633EcrLQi','operations','clear','You\x27re\x20following\x20the\x20presenter','concat','LIVESHARE_REQUEST_HOST','subscribe','_injector','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','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','univer-size-4','icon','path','unsubscribe','add','Present\x20this\x20document','LIVESHARE_TERMINATE','includes','fill','send','requireSession','getOwnPropertyDescriptor','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','LIVESHARE_OPERATION','_init','_stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','1em','_status','string','LIVESHARE_NEW_HOST','_entities','_beIdle','getInitialStates','defineProperty','mask','hasOwnProperty','defs','params','from','none','presenter','_handleNewChangeSets'];_0x40a3=function(){return _0x12e13c;};return _0x40a3();}I=Z([f(0x0,_0x52fbd8),f(0x1,_0x391104(_0x50d8d5)),f(0x2,_0x391104(_0x9b3ad1))],I);var h=(_0x586cc1=>(_0x586cc1['OFFLINE']='offline',_0x586cc1['IDLE']=_0xf334e2(0x116),_0x586cc1[_0xf334e2(0x19f)]='following',_0x586cc1[_0xf334e2(0x158)]=_0xf334e2(0x19d),_0x586cc1[_0xf334e2(0x1b3)]='presenting',_0x586cc1))(h||{});const Pe=_0xf334e2(0x196),Ae=0xc8;let C=class extends _0x49725e{constructor(_0x4c211a,_0x1c09ce,_0x55d6e7,_0x363185,_0x19d6fc){var _0x199f7c=_0xf334e2;super(),d(this,_0x199f7c(0x1a9),new _0x33dc69(_0x199f7c(0x116))),d(this,'status$',this['_status$']['asObservable']()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x199f7c(0x1bc),null),(this[_0x199f7c(0x190)]=_0x4c211a,this['_collabSession']=_0x1c09ce,this[_0x199f7c(0x1ad)]=_0x55d6e7,this[_0x199f7c(0x111)]=_0x363185,this[_0x199f7c(0x16c)]=_0x19d6fc);}get[_0xf334e2(0x13b)](){var _0x180ea7=_0xf334e2;return this[_0x180ea7(0x1a9)][_0x180ea7(0x118)]();}[_0xf334e2(0x1b7)](){var _0x37ebbf=_0xf334e2,_0x348954;(_0x348954=this[_0x37ebbf(0x11a)])==null||_0x348954[_0x37ebbf(0x1b7)](),this[_0x37ebbf(0x1a9)][_0x37ebbf(0x1ba)](_0x37ebbf(0x116)),this[_0x37ebbf(0x1a9)]['complete']();}[_0xf334e2(0x11b)](){var _0x4f4118=_0xf334e2;this[_0x4f4118(0x137)]||(this[_0x4f4118(0x137)]=!0x0,this[_0x4f4118(0x14a)][_0x4f4118(0x1be)][_0x4f4118(0x192)](_0x2d6d70(this[_0x4f4118(0x163)]))[_0x4f4118(0x124)](_0x5e9b3e=>{var _0xe4aa90=_0x4f4118;switch(_0x5e9b3e){case _0x184166[_0xe4aa90(0x170)]:this[_0xe4aa90(0x154)]();break;case _0x184166[_0xe4aa90(0x155)]:this['_handleOnline']();break;}}),this[_0x4f4118(0x14a)]['event$']['pipe'](_0x2d6d70(this[_0x4f4118(0x163)]))[_0x4f4118(0x124)](_0x1b1614=>{var _0x2d1638=_0x4f4118;const {eventID:_0x51200a}=_0x1b1614;switch(_0x51200a){case _0x53cb61[_0x2d1638(0x13d)]:this[_0x2d1638(0x183)](_0x1b1614);break;case _0x53cb61[_0x2d1638(0x136)]:this[_0x2d1638(0x18a)](_0x1b1614);break;case _0x53cb61[_0x2d1638(0x12e)]:this['_handleTerminate']();break;case _0x53cb61[_0x2d1638(0x194)]:this[_0x2d1638(0x149)](_0x1b1614);break;}}));}[_0xf334e2(0x151)](){var _0x1fa518=_0xf334e2;this[_0x1fa518(0x14a)][_0x1fa518(0x131)]({'eventID':_0x53cb61[_0x1fa518(0x123)],'data':{'unitID':this[_0x1fa518(0x190)],'userID':this['_collabSession'][_0x1fa518(0x180)]()}},this[_0x1fa518(0x190)]);}[_0xf334e2(0x1a1)](){var _0x2b926f=_0xf334e2;this[_0x2b926f(0x13b)]===_0x2b926f(0x181)&&(this[_0x2b926f(0x1a9)][_0x2b926f(0x1ba)](_0x2b926f(0x116)),this[_0x2b926f(0x14a)][_0x2b926f(0x131)]({'eventID':_0x53cb61[_0x2b926f(0x12e)],'data':{'unitID':this[_0x2b926f(0x190)]}},this[_0x2b926f(0x190)]));}[_0xf334e2(0x199)](){var _0x53357a=_0xf334e2;this[_0x53357a(0x13b)]==='not-following'&&(this[_0x53357a(0x1a9)][_0x53357a(0x1ba)]('following'),this[_0x53357a(0x18d)]());}[_0xf334e2(0x173)](){var _0x5b8d18=_0xf334e2;this[_0x5b8d18(0x13b)]===_0x5b8d18(0x188)&&this[_0x5b8d18(0x138)]();}[_0xf334e2(0x183)](_0x46a165){var _0x2addc7=_0xf334e2;const {presenter:_0x69792d}=_0x46a165[_0x2addc7(0x18f)],_0x1003c1=this[_0x2addc7(0x14a)][_0x2addc7(0x180)]();this[_0x2addc7(0x1bc)]=_0x69792d,_0x69792d===_0x1003c1?(this[_0x2addc7(0x138)](),this[_0x2addc7(0x189)]()):this[_0x2addc7(0x13b)]!==_0x2addc7(0x19d)&&(this[_0x2addc7(0x1ab)](),this['_startFollowing']());}[_0xf334e2(0x15b)](){var _0x1f92c9=_0xf334e2;const _0x5dfa79={'eventID':_0x53cb61[_0x1f92c9(0x165)]};this[_0x1f92c9(0x14a)][_0x1f92c9(0x131)](_0x5dfa79,this[_0x1f92c9(0x190)]);}[_0xf334e2(0x1b4)](){var _0x1d14eb=_0xf334e2;this[_0x1d14eb(0x1bc)]=null,this[_0x1d14eb(0x13b)]!=='presenting'&&this[_0x1d14eb(0x13f)]();}[_0xf334e2(0x149)](_0x39382c){var _0xac35ab=_0xf334e2;if(this[_0xac35ab(0x13b)]===_0xac35ab(0x188)&&this['_presenter']===_0x39382c[_0xac35ab(0x18f)][_0xac35ab(0x182)]){const _0x1b951c=_0x9a4087(_0x39382c[_0xac35ab(0x18f)])['mutations'][_0xac35ab(0x1bb)]()[_0xac35ab(0x14d)](_0x5a0a9f=>_0x5a0a9f['id']===_0x2d3df6['id']);if(_0x1b951c){const _0x56643e=_0x1b951c[_0xac35ab(0x145)]['unitId'],_0x26adb1=_0x1b951c[_0xac35ab(0x145)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0xe2d3fc['id'],{'unitId':_0x56643e,'subUnitId':_0x26adb1},{'fromCollab':!0x0});});}}}[_0xf334e2(0x189)](){var _0xf191ee=_0xf334e2;this[_0xf191ee(0x1a9)]['next']('presenting');const _0xa6c701=new Map(),_0x2b4a56=this[_0xf191ee(0x11a)]=new _0x570819();_0x2b4a56[_0xf191ee(0x12c)](_0xcecd2e(()=>{var _0x33ba61=_0xf191ee;_0xa6c701[_0x33ba61(0x1a6)](_0x25f7a6=>_0x25f7a6[_0x33ba61(0x16b)]()),_0xa6c701[_0x33ba61(0x120)]();})),_0x2b4a56[_0xf191ee(0x12c)](this[_0xf191ee(0x16c)][_0xf191ee(0x164)](_0x18eb54=>{var _0x4c7dfe=_0xf191ee,_0x51c4b4;if(_0x18eb54[_0x4c7dfe(0x198)]!==_0x3818ef['OPERATION']||!this[_0x4c7dfe(0x111)]['shouldShareOperation'](_0x18eb54['id']))return;const {id:_0x31a99c}=_0x18eb54;let _0x4903bb;_0xa6c701[_0x4c7dfe(0x15d)](_0x31a99c)?_0x4903bb=_0xa6c701[_0x4c7dfe(0x18c)](_0x31a99c):(_0x4903bb=new _0x8899cb(),_0xa6c701[_0x4c7dfe(0x193)](_0x31a99c,_0x4903bb),_0x4903bb[_0x4c7dfe(0x192)](_0x1d9523((_0x51c4b4=this['_configService']['getConfig'](Pe))!=null?_0x51c4b4:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x17425f=>{var _0x54e516=_0x4c7dfe;this[_0x54e516(0x14a)][_0x54e516(0x131)]({'eventID':_0x53cb61[_0x54e516(0x136)],'data':{'unitID':this['_unitID'],'operations':{[_0x17425f['id']]:{'id':_0x17425f['id'],'params':JSON[_0x54e516(0x11c)](_0x17425f[_0x54e516(0x145)])}}}},this['_unitID']);})),_0x4903bb[_0x4c7dfe(0x1ba)](_0x18eb54);})),this[_0xf191ee(0x111)]['getInitialStates'](this[_0xf191ee(0x190)])[_0xf191ee(0x1a6)](_0x3e0155=>this['_collabSession'][_0xf191ee(0x131)]({'eventID':_0x53cb61['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x3e0155['id']]:{'id':_0x3e0155['id'],'params':JSON[_0xf191ee(0x11c)](_0x3e0155[_0xf191ee(0x145)])}}}},this[_0xf191ee(0x190)]));}['_stopPresenting'](){var _0x868815=_0xf334e2,_0x4de4ad;this['_status$']['next'](_0x868815(0x116)),(_0x4de4ad=this[_0x868815(0x11a)])==null||_0x4de4ad[_0x868815(0x1b7)](),this['_commandDisposable']=null;}[_0xf334e2(0x18d)](){var _0x3bfae6=_0xf334e2,_0x1061d4;(_0x1061d4=this[_0x3bfae6(0x11a)])==null||_0x1061d4[_0x3bfae6(0x1b7)](),this[_0x3bfae6(0x1a9)][_0x3bfae6(0x1ba)](_0x3bfae6(0x188));}['_beIdle'](){var _0x1479de=_0xf334e2,_0x1260f8;this[_0x1479de(0x1a9)][_0x1479de(0x1ba)]('idle'),(_0x1260f8=this['_commandDisposable'])==null||_0x1260f8[_0x1479de(0x1b7)](),this[_0x1479de(0x11a)]=null;}[_0xf334e2(0x138)](){var _0x5145b5=_0xf334e2,_0x5e55b5;this['_status$'][_0x5145b5(0x1ba)](_0x5145b5(0x19d)),(_0x5e55b5=this[_0x5145b5(0x11a)])==null||_0x5e55b5['dispose']();}[_0xf334e2(0x18a)](_0x1d789a){var _0x4e174b=_0xf334e2;if([_0x4e174b(0x181),'not-following',_0x4e174b(0x15f)][_0x4e174b(0x12f)](this[_0x4e174b(0x13b)])||!_0x1d789a['data'][_0x4e174b(0x148)]||_0x1d789a[_0x4e174b(0x18f)][_0x4e174b(0x148)]===this[_0x4e174b(0x14a)][_0x4e174b(0x180)]())return;this['_status']===_0x4e174b(0x116)&&this[_0x4e174b(0x18d)]();const _0x4ed00d=_0x1d789a['data'][_0x4e174b(0x11f)];Object[_0x4e174b(0x19c)](_0x4ed00d)[_0x4e174b(0x1a6)](_0x291993=>{var _0x84e6cd=_0x4e174b;this[_0x84e6cd(0x16c)][_0x84e6cd(0x15e)](_0x291993['id'],_0x291993[_0x84e6cd(0x145)]?JSON[_0x84e6cd(0x152)](_0x291993[_0x84e6cd(0x145)]):null,{'fromCollab':!0x0});});}[_0xf334e2(0x154)](){var _0x39034d=_0xf334e2,_0x4546fc;this[_0x39034d(0x1a9)][_0x39034d(0x1ba)]('offline'),(_0x4546fc=this[_0x39034d(0x11a)])==null||_0x4546fc[_0x39034d(0x1b7)]();}[_0xf334e2(0x1bf)](){var _0x589d5b=_0xf334e2;this[_0x589d5b(0x1a9)][_0x589d5b(0x1ba)](_0x589d5b(0x116)),this[_0x589d5b(0x15b)]();}};C=Z([f(0x2,_0xa8db64),f(0x3,_0x391104(L)),f(0x4,_0x4c9b97)],C);function Te(){var _0x553284=_0xf334e2;const _0x3883b8=_0x5bc371(I),_0x4582f6=_0x5bc371(_0x52fbd8),_0x16e975=_0x2cf7b6(()=>_0x4582f6['getCurrentTypeOfUnit$'](_0x3e9585['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x384c3b,_0x1777bf]=_0x29ffd8(null),[_0x4f7bfd,_0x4a8582]=_0x29ffd8(h[_0x553284(0x14c)]),_0xc5fa37=_0x14033a(null);return _0x25d3be(()=>(_0x16e975&&_0x3883b8[_0x553284(0x156)](_0x16e975[_0x553284(0x14e)]())['then'](_0x515b02=>{var _0x34d9f5=_0x553284;_0x1777bf(_0x515b02),_0xc5fa37['current']=_0x515b02['status$'][_0x34d9f5(0x124)](_0x49f351=>{_0x4a8582(_0x49f351);});}),()=>{var _0x486cc=_0x553284,_0x53099d;(_0x53099d=_0xc5fa37[_0x486cc(0x172)])==null||_0x53099d[_0x486cc(0x12b)](),_0xc5fa37[_0x486cc(0x172)]=null;}),[_0x16e975,_0x3883b8]),_0x384c3b?_0x58a139(_0x43a82b,{'align':_0x553284(0x1b2),'disabled':_0x4f7bfd===h[_0x553284(0x170)],'className':_0x553284(0x127),'overlay':_0x58a139($e,{'status':_0x4f7bfd,'coordinator':_0x384c3b}),'children':_0x58a139(_0x553284(0x134),{'className':_0x123502(_0x553284(0x126),{'univer-cursor-not-allowed':_0x4f7bfd===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4f7bfd!==h['OFFLINE']}),'type':_0x553284(0x134),'children':_0x58a139(B,{'className':_0x553284(0x128)})})}):null;}function $e(_0x5e4008){var _0x41ceba=_0xf334e2;const {status:_0x5d8284,coordinator:_0x198708}=_0x5e4008;switch(_0x5d8284){case h[_0x41ceba(0x14c)]:return _0x58a139(Fe,{'coordinator':_0x198708});case h['FOLLOWING']:return _0x58a139(He,{'coordinator':_0x198708});case h[_0x41ceba(0x158)]:return _0x58a139(je,{'coordinator':_0x198708});case h[_0x41ceba(0x170)]:return _0x58a139(Ve,{});case h['PRESENTING']:return _0x58a139(Ue,{'coordinator':_0x198708});default:return null;}}function Fe(_0x1d9f04){var _0xa9db9b=_0xf334e2;const {coordinator:_0x3510e5}=_0x1d9f04;return _0xaa6a18(_0x1f494c,{'children':[_0x58a139(_0xa9db9b(0x174),{'className':_0xa9db9b(0x139),'children':_0xa9db9b(0x12d)}),_0x58a139(_0xa639cf,{'onClick':()=>_0x3510e5['tryStartPresenting'](),'children':_0xa9db9b(0x16e)})]});}function He(_0x224aa5){var _0x744569=_0xf334e2;const {coordinator:_0x3bb48a}=_0x224aa5;return _0xaa6a18(_0x1f494c,{'children':[_0x58a139(_0x744569(0x174),{'className':_0x744569(0x139),'children':_0x744569(0x121)}),_0x58a139(_0xa639cf,{'onClick':()=>_0x3bb48a['stopFollowing'](),'children':_0x744569(0x1ae)})]});}function je(_0x18bbd0){var _0x3d44f8=_0xf334e2;const {coordinator:_0xc24618}=_0x18bbd0;return _0xaa6a18(_0x1f494c,{'children':[_0x58a139(_0x3d44f8(0x174),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3d44f8(0x16d)}),_0x58a139(_0xa639cf,{'variant':_0x3d44f8(0x169),'onClick':()=>_0xc24618[_0x3d44f8(0x199)](),'children':_0x3d44f8(0x197)})]});}function Ue(_0x45da82){var _0x54f556=_0xf334e2;const {coordinator:_0x17c076}=_0x45da82;return _0xaa6a18(_0x1f494c,{'children':[_0x58a139('div',{'className':_0x54f556(0x139),'children':_0x54f556(0x191)}),_0x58a139(_0xa639cf,{'variant':_0x54f556(0x19b),'onClick':()=>_0x17c076[_0x54f556(0x1a1)](),'children':_0x54f556(0x19e)})]});}function Ve(){var _0x361694=_0xf334e2;return _0x58a139(_0x1f494c,{'children':_0x361694(0x160)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x160c36,_0x3aa961,_0x5aecd1,_0x4c3a60)=>{var _0x4e8759=_0xf334e2;for(var _0x2ff082=_0x4c3a60>0x1?void 0x0:_0x4c3a60?Me(_0x3aa961,_0x5aecd1):_0x3aa961,_0x56ea9b=_0x160c36[_0x4e8759(0x1a2)]-0x1,_0x28093d;_0x56ea9b>=0x0;_0x56ea9b--)(_0x28093d=_0x160c36[_0x56ea9b])&&(_0x2ff082=_0x28093d(_0x2ff082)||_0x2ff082);return _0x2ff082;},$=(_0x460775,_0x3a2cc2)=>(_0xabd506,_0x3ce74a)=>_0x3a2cc2(_0xabd506,_0x3ce74a,_0x460775);function _0x4667(_0x588bd4,_0x48f09f){var _0x40a353=_0x40a3();return _0x4667=function(_0x466776,_0x150213){_0x466776=_0x466776-0x10f;var _0x1b737a=_0x40a353[_0x466776];return _0x1b737a;},_0x4667(_0x588bd4,_0x48f09f);}let b=class extends _0x4fbb92{constructor(_0x3dd099,_0x25ee9c){var _0x36f564=_0xf334e2;super(),this[_0x36f564(0x125)]=_0x3dd099,this[_0x36f564(0x1bd)]=_0x25ee9c,this[_0x36f564(0x1a4)]();}[_0xf334e2(0x1a4)](){var _0x431eac=_0xf334e2;this['disposeWithMe'](this['_uiPartsService'][_0x431eac(0x159)](_0x319efd[_0x431eac(0x185)],()=>_0x5ee7f0(Te,this[_0x431eac(0x125)])));}};b=ke([$(0x0,_0x391104(_0x50d8d5)),$(0x1,_0x4401df)],b);var Ge=Object[_0xf334e2(0x141)],We=Object[_0xf334e2(0x133)],Ye=(_0x33172b,_0x849a00,_0x5ef91d)=>_0x849a00 in _0x33172b?Ge(_0x33172b,_0x849a00,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5ef91d}):_0x33172b[_0x849a00]=_0x5ef91d,Be=(_0x1d1ac2,_0x1b0ad3,_0x2a1a84,_0x4e60f1)=>{var _0x100467=_0xf334e2;for(var _0x45a0a8=_0x4e60f1>0x1?void 0x0:_0x4e60f1?We(_0x1b0ad3,_0x2a1a84):_0x1b0ad3,_0x58f635=_0x1d1ac2[_0x100467(0x1a2)]-0x1,_0x44159a;_0x58f635>=0x0;_0x58f635--)(_0x44159a=_0x1d1ac2[_0x58f635])&&(_0x45a0a8=_0x44159a(_0x45a0a8)||_0x45a0a8);return _0x45a0a8;},F=(_0x20e9fc,_0x1d870c)=>(_0x388ee2,_0x551abf)=>_0x1d870c(_0x388ee2,_0x551abf,_0x20e9fc),J=(_0x31f2d0,_0x1e6387,_0x53aacf)=>Ye(_0x31f2d0,typeof _0x1e6387!=_0xf334e2(0x16a)?_0x1e6387+'':_0x1e6387,_0x53aacf);const Ze=_0xf334e2(0x1a0);let O=class extends _0x3b5838{constructor(_0x2a010b=T,_0x4f7d21,_0x37a944){var _0x218903=_0xf334e2;super(),this[_0x218903(0x15c)]=_0x2a010b,this[_0x218903(0x125)]=_0x4f7d21,this[_0x218903(0x1ad)]=_0x37a944;const {..._0x220ebb}=_0x498ff2({},T,this[_0x218903(0x15c)]);this[_0x218903(0x1ad)][_0x218903(0x1b8)](Oe,_0x220ebb);}['onStarting'](){var _0x46aa26=_0xf334e2;_0x367e1b(this[_0x46aa26(0x125)],_0x1a39d1([[L],[I],[m],[b]],this[_0x46aa26(0x15c)]['override'])),_0x88c823(this[_0x46aa26(0x125)],[[m]]);}[_0xf334e2(0x18b)](){var _0x2fa0b0=_0xf334e2;_0x88c823(this[_0x2fa0b0(0x125)],[[b]]);}};J(O,'type',_0x3e9585[_0xf334e2(0x175)]),J(O,_0xf334e2(0x110),Ze),O=Be([_0x164c8e(_0x15931d),F(0x1,_0x391104(_0x50d8d5)),F(0x2,_0xa8db64)],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 _0x51e2(_0x344cbf,_0x3737c5){var _0x257899=_0x2578();return _0x51e2=function(_0x51e2e1,_0x456d9a){_0x51e2e1=_0x51e2e1-0x1da;var _0x32c4d2=_0x257899[_0x51e2e1];return _0x32c4d2;},_0x51e2(_0x344cbf,_0x3737c5);}function _0x2578(){var _0xa71c6e=['dispose$','244990cbnjwa','toDisposable','complete','UniverUi','startFollowing','@univerjs/design','IConfigService','onStarting','17899RZkjSF','SetScrollOperation','path','_unitID','@univerjs/ui','OFFLINE','useEffect','IUniverInstanceService','187uKDHVy','disposeWithMe','_startLiveShareCoordinator','operators','unsubscribe','button','SetWorksheetActiveOperation','init','presenter','mask','IDLE','exports','connectInjector','React','Start','1686bdBBSb','getUnitId','stringify','http://www.w3.org/2000/svg','Disposable','@univerjs-pro/collaboration','trim','_presenter','getLiveShareCoordinator','following','takeUntil','function','getOwnPropertyDescriptor','data','presenting','propertyIsEnumerable','_status','IUIPartsService','_injector','shouldShareOperation','useRef','SAME_OPERATION_SHARE_INTERVAL','rxjs','live-share.config','type','_config','Fragment','LIVESHARE_TERMINATE','LIVESHARE_REQUEST_HOST','indexOf','NEW_CHANGESETS','toString','256OBIbeA','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','CollaborationEvent','not-following','SessionStatus','BehaviorSubject','Module','_handleTerminate','colorChannel1','_sharedOperations','useDependency','event$','Present\x20this\x20document','find','url(#$1','div','PRESENTING','rxjs/operators','xlink:href','svg','univer-mb-3\x20univer-w-full\x20univer-text-sm','replace','_mountLiveShare','LiveShareStatus','@univerjs/sheets','getValue','Inject','delete','requireSession','none','_handleNewChangeSets','onCommandExecuted','assign','@univerjs/sheets-ui','reverse','Start\x20following','CollaborationSessionService','getConfig','_init','UniverLiveSharePlugin','4mfbmDB','memberID','DisposableCollection','throttleTime','has','ICommandService','_handleNewHost','getMemberID','66482Jerdzu','_collabSession','defs','end','1337265oMTvBi','LiveShareCoordinator','params','FOLLOWING','0\x200\x2017\x2017','evenodd','Injector','CommandType','_collabSessionService','text','registerDependencies','_reporters','from','UniverInstanceType','3313705zzuRKo','_stopFollowing','_handleOperation','LiveShare','currentColor','RxDisposable','NOT_FOLLOWING','offline','subscribe','UniverCore','DependentOn','add','Plugin','_commandService','dispose','icon','length','HEADER_MENU','prototype','LiveShareController','idSuffix','tag','displayName','touchDependencies','getTypeOfUnitDisposed$','fill','concat','UniverIcon','_uiPartsService','current','className','_fetchOperations','LiveShareIcon','_commandDisposable','createElement','_startPresenting','_status$','1574512idLtZc','defineProperty','operations','random','getTypeOfUnitAdded$','1em','_liveShareService','_univerInstanceService','clear','toStringTag','defIds','values','string','LIVESHARE_NEW_HOST','UniverProLiveShare','DesktopLiveShareController','live-share-icon','symbol','set','parse','hasOwnProperty','4260YjgoSg','stopPresenting','You\x27re\x20presenting\x20the\x20document','10667LSOpDn','amd','_configService','UniverProCollaborationClient','@univerjs/core','UniverCollaborationClientPlugin','_handleOffline','call','jsxs','_startFollowing','next','UniverSheets','Button','includes','idle','send','18FtSPFD','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','substring','LIVESHARE_OPERATION','getCurrentTypeOfUnit$','univerjs-icon\x20univerjs-icon-','setConfig','You\x27re\x20not\x20following\x20the\x20presenter','registerSharedOperation','tryStartPresenting','forEach','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getOwnPropertySymbols','status$','attrs','OPERATION','get','@univerjs-pro/collaboration-client','react','children','jsx','Subject','UniverProCollaboration','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','stopFollowing','pipe','useState','UNIVER_SHEET','clsx','_entities','getInitialStates','map','UniverDesign','entries','UniverSheetsUi','_beIdle','ONLINE','sheet','react/jsx-runtime','Dropdown'];_0x2578=function(){return _0xa71c6e;};return _0x2578();}(function(_0x2b191c,_0x3f6961){var _0x24beab=_0x51e2,_0x534f12=_0x2b191c();while(!![]){try{var _0x3af95f=parseInt(_0x24beab(0x281))/0x1*(-parseInt(_0x24beab(0x202))/0x2)+-parseInt(_0x24beab(0x236))/0x3+-parseInt(_0x24beab(0x22a))/0x4*(parseInt(_0x24beab(0x244))/0x5)+parseInt(_0x24beab(0x1e2))/0x6*(parseInt(_0x24beab(0x2c2))/0x7)+-parseInt(_0x24beab(0x269))/0x8*(-parseInt(_0x24beab(0x291))/0x9)+parseInt(_0x24beab(0x2ba))/0xa*(parseInt(_0x24beab(0x2ca))/0xb)+parseInt(_0x24beab(0x27e))/0xc*(parseInt(_0x24beab(0x232))/0xd);if(_0x3af95f===_0x3f6961)break;else _0x534f12['push'](_0x534f12['shift']());}catch(_0x27c2b5){_0x534f12['push'](_0x534f12['shift']());}}}(_0x2578,0xd4752),function(_0x4d76c7,_0x2dd344){var _0x46480e=_0x51e2;typeof exports=='object'&&typeof module<'u'?_0x2dd344(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require(_0x46480e(0x21a)),require('@univerjs/sheets-ui'),require(_0x46480e(0x2c6)),require(_0x46480e(0x2b7)),require(_0x46480e(0x2bf)),require(_0x46480e(0x2a3)),require(_0x46480e(0x1e7)),require(_0x46480e(0x1f8)),require(_0x46480e(0x213))):typeof define==_0x46480e(0x1ed)&&define[_0x46480e(0x282)]?define([_0x46480e(0x1de),_0x46480e(0x2a2),_0x46480e(0x285),_0x46480e(0x21a),_0x46480e(0x223),'@univerjs/ui',_0x46480e(0x2b7),_0x46480e(0x2bf),_0x46480e(0x2a3),'@univerjs-pro/collaboration',_0x46480e(0x1f8),'rxjs/operators'],_0x2dd344):(_0x4d76c7=typeof globalThis<'u'?globalThis:_0x4d76c7||self,_0x2dd344(_0x4d76c7[_0x46480e(0x277)]={},_0x4d76c7[_0x46480e(0x284)],_0x4d76c7[_0x46480e(0x24d)],_0x4d76c7[_0x46480e(0x28c)],_0x4d76c7[_0x46480e(0x2b3)],_0x4d76c7[_0x46480e(0x2bd)],_0x4d76c7[_0x46480e(0x1e0)],_0x4d76c7[_0x46480e(0x2b1)],_0x4d76c7[_0x46480e(0x1e0)],_0x4d76c7[_0x46480e(0x2a7)],_0x4d76c7[_0x46480e(0x1f8)],_0x4d76c7['rxjs'][_0x46480e(0x2cd)]));}(this,function(_0x51f9ed,_0x48665f,_0x485ecf,_0x219aae,_0x4dfe15,_0x57616f,_0x563fcb,_0x2dc538,_0x5f3208,_0x2f0030,_0x459ea5,_0x5f2e92){'use strict';var _0x12abdc=_0x51e2;var _0x16d109=Object[_0x12abdc(0x26a)],_0x5b63df=(_0x57fc0d,_0x5ba474,_0x130d90)=>_0x5ba474 in _0x57fc0d?_0x16d109(_0x57fc0d,_0x5ba474,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x130d90}):_0x57fc0d[_0x5ba474]=_0x130d90,_0x52a734=(_0x54ae85,_0xce642f,_0x37edce)=>_0x5b63df(_0x54ae85,typeof _0xce642f!='symbol'?_0xce642f+'':_0xce642f,_0x37edce);const _0x15f181=_0x12abdc(0x1f9),_0x5362c1={};class _0x583b40 extends _0x485ecf[_0x12abdc(0x1e6)]{constructor(){var _0x581848=_0x12abdc;super(...arguments),_0x52a734(this,_0x581848(0x20b),new Set()),_0x52a734(this,_0x581848(0x241),new Set());}[_0x12abdc(0x299)](_0x347388){var _0x112182=_0x12abdc;return this['_sharedOperations'][_0x112182(0x24f)](_0x347388),_0x485ecf[_0x112182(0x2bb)](()=>this[_0x112182(0x20b)][_0x112182(0x21d)](_0x347388));}['registerInitialStateReporter'](_0x271a1b){var _0x4dd6e7=_0x12abdc;return this[_0x4dd6e7(0x241)][_0x4dd6e7(0x24f)](_0x271a1b),_0x485ecf[_0x4dd6e7(0x2bb)](()=>this[_0x4dd6e7(0x241)][_0x4dd6e7(0x21d)](_0x271a1b));}[_0x12abdc(0x1f5)](_0x2cbced){var _0x44a032=_0x12abdc;return this[_0x44a032(0x20b)][_0x44a032(0x22e)](_0x2cbced);}[_0x12abdc(0x2af)](_0x52ca6b){var _0x51e4c7=_0x12abdc;return Array[_0x51e4c7(0x242)](this[_0x51e4c7(0x241)])['map'](_0x1b8296=>_0x1b8296(_0x52ca6b));}}var _0x1836f2=Object[_0x12abdc(0x1ee)],_0x11af8e=(_0x26ec0b,_0x4a5b67,_0x284f26,_0x5c0e80)=>{for(var _0x268ad3=_0x5c0e80>0x1?void 0x0:_0x5c0e80?_0x1836f2(_0x4a5b67,_0x284f26):_0x4a5b67,_0x7cf4aa=_0x26ec0b['length']-0x1,_0x1f9c0f;_0x7cf4aa>=0x0;_0x7cf4aa--)(_0x1f9c0f=_0x26ec0b[_0x7cf4aa])&&(_0x268ad3=_0x1f9c0f(_0x268ad3)||_0x268ad3);return _0x268ad3;},_0x5555f7=(_0x4eb87b,_0x1ffa46)=>(_0x3ae658,_0x5c91cf)=>_0x1ffa46(_0x3ae658,_0x5c91cf,_0x4eb87b);let _0x4cb525=class extends _0x485ecf[_0x12abdc(0x1e6)]{constructor(_0x4d527d){var _0x1e5ee2=_0x12abdc;super(),this[_0x1e5ee2(0x26f)]=_0x4d527d,this[_0x1e5ee2(0x228)]();}['_init'](){var _0x282150=_0x12abdc;[_0x4dfe15['SetZoomRatioOperation']['id'],_0x4dfe15[_0x282150(0x2c3)]['id'],_0x219aae[_0x282150(0x2d0)]['id']]['forEach'](_0x1aa98d=>{var _0x4bed47=_0x282150;this[_0x4bed47(0x2cb)](this[_0x4bed47(0x26f)]['registerSharedOperation'](_0x1aa98d));});}};_0x4cb525=_0x11af8e([_0x5555f7(0x0,_0x485ecf[_0x12abdc(0x21c)](_0x583b40))],_0x4cb525);var _0x178c65=function(){return _0x178c65=Object['assign']||function(_0x3ca633){var _0x1384b2=_0x51e2;for(var _0x28fc91,_0x1f31c1=0x1,_0x2631a1=arguments[_0x1384b2(0x254)];_0x1f31c1<_0x2631a1;_0x1f31c1++){_0x28fc91=arguments[_0x1f31c1];for(var _0x537355 in _0x28fc91)Object[_0x1384b2(0x256)]['hasOwnProperty']['call'](_0x28fc91,_0x537355)&&(_0x3ca633[_0x537355]=_0x28fc91[_0x537355]);}return _0x3ca633;},_0x178c65['apply'](this,arguments);},_0x23abf8=function(_0x485048,_0x6ad1b9){var _0x322f72=_0x12abdc,_0x4afa1f={};for(var _0x3c5258 in _0x485048)Object[_0x322f72(0x256)][_0x322f72(0x27d)][_0x322f72(0x288)](_0x485048,_0x3c5258)&&_0x6ad1b9[_0x322f72(0x1ff)](_0x3c5258)<0x0&&(_0x4afa1f[_0x3c5258]=_0x485048[_0x3c5258]);if(_0x485048!=null&&typeof Object['getOwnPropertySymbols']==_0x322f72(0x1ed)){for(var _0x435f6d=0x0,_0x3c5258=Object[_0x322f72(0x29d)](_0x485048);_0x435f6d<_0x3c5258[_0x322f72(0x254)];_0x435f6d++)_0x6ad1b9[_0x322f72(0x1ff)](_0x3c5258[_0x435f6d])<0x0&&Object[_0x322f72(0x256)][_0x322f72(0x1f1)][_0x322f72(0x288)](_0x485048,_0x3c5258[_0x435f6d])&&(_0x4afa1f[_0x3c5258[_0x435f6d]]=_0x485048[_0x3c5258[_0x435f6d]]);}return _0x4afa1f;},_0x3027e2=_0x5f3208['forwardRef'](function(_0x2a6860,_0x1054a2){var _0x3b3780=_0x12abdc,_0x1cd617=_0x2a6860[_0x3b3780(0x253)],_0x549a6d=_0x2a6860['id'],_0x15139f=_0x2a6860['className'],_0x1e76da=_0x2a6860['extend'],_0x31c4c8=_0x23abf8(_0x2a6860,['icon','id',_0x3b3780(0x262),'extend']),_0x159bb7=_0x3b3780(0x296)['concat'](_0x549a6d,'\x20')[_0x3b3780(0x25e)](_0x15139f||'')[_0x3b3780(0x1e8)](),_0x187f01=_0x5f3208[_0x3b3780(0x1f6)]('_'[_0x3b3780(0x25e)](_0x1730ef()));return _0x3823be(_0x1cd617,''['concat'](_0x549a6d),{'defIds':_0x1cd617[_0x3b3780(0x273)],'idSuffix':_0x187f01[_0x3b3780(0x261)]},_0x178c65({'ref':_0x1054a2,'className':_0x159bb7},_0x31c4c8),_0x1e76da);});function _0x3823be(_0x3551c1,_0x34b687,_0x579e6f,_0x217031,_0x18f812){var _0x61a9d6=_0x12abdc;return _0x5f3208[_0x61a9d6(0x266)](_0x3551c1['tag'],_0x178c65(_0x178c65({'key':_0x34b687},_0x66699d(_0x3551c1,_0x579e6f,_0x18f812)),_0x217031),(_0xabb3b2(_0x3551c1,_0x579e6f)[_0x61a9d6(0x2a4)]||[])['map'](function(_0x8a9ef3,_0xf4fabe){var _0x4620da=_0x61a9d6;return _0x3823be(_0x8a9ef3,''[_0x4620da(0x25e)](_0x34b687,'-')[_0x4620da(0x25e)](_0x3551c1[_0x4620da(0x259)],'-')[_0x4620da(0x25e)](_0xf4fabe),_0x579e6f,void 0x0,_0x18f812);}));}function _0x66699d(_0xdb9137,_0x423443,_0x3e4cbb){var _0x117a0d=_0x12abdc,_0x451eb7=_0x178c65({},_0xdb9137[_0x117a0d(0x29f)]);_0x3e4cbb!=null&&_0x3e4cbb['colorChannel1']&&_0x451eb7['fill']===_0x117a0d(0x20a)&&(_0x451eb7[_0x117a0d(0x25d)]=_0x3e4cbb[_0x117a0d(0x20a)]),_0xdb9137['tag']===_0x117a0d(0x1dc)&&_0x451eb7['id']&&(_0x451eb7['id']=_0x451eb7['id']+_0x423443['idSuffix']),Object[_0x117a0d(0x2b2)](_0x451eb7)['forEach'](function(_0x548c26){var _0x1bb7a2=_0x117a0d,_0xe3062c=_0x548c26[0x0],_0x8bb5a1=_0x548c26[0x1];_0xe3062c===_0x1bb7a2(0x1dc)&&typeof _0x8bb5a1==_0x1bb7a2(0x275)&&(_0x451eb7[_0xe3062c]=_0x8bb5a1[_0x1bb7a2(0x217)](/url\(#(.*)\)/,_0x1bb7a2(0x210)[_0x1bb7a2(0x25e)](_0x423443['idSuffix'],')')));});var _0x58849f=_0x423443['defIds'];return!_0x58849f||_0x58849f[_0x117a0d(0x254)]===0x0||(_0xdb9137[_0x117a0d(0x259)]==='use'&&_0x451eb7[_0x117a0d(0x214)]&&(_0x451eb7[_0x117a0d(0x214)]=_0x451eb7[_0x117a0d(0x214)]+_0x423443[_0x117a0d(0x258)]),Object['entries'](_0x451eb7)[_0x117a0d(0x29b)](function(_0x2c6175){var _0x78fe28=_0x117a0d,_0x1bf447=_0x2c6175[0x0],_0x5aaea4=_0x2c6175[0x1];typeof _0x5aaea4==_0x78fe28(0x275)&&(_0x451eb7[_0x1bf447]=_0x5aaea4['replace'](/url\(#(.*)\)/,_0x78fe28(0x210)[_0x78fe28(0x25e)](_0x423443[_0x78fe28(0x258)],')')));})),_0x451eb7;}function _0xabb3b2(_0x517ca7,_0x39077d){var _0x32c15b=_0x12abdc,_0x10c677,_0x497c56=_0x39077d[_0x32c15b(0x273)];return!_0x497c56||_0x497c56[_0x32c15b(0x254)]===0x0?_0x517ca7:_0x517ca7[_0x32c15b(0x259)]===_0x32c15b(0x234)&&(!((_0x10c677=_0x517ca7[_0x32c15b(0x2a4)])===null||_0x10c677===void 0x0)&&_0x10c677[_0x32c15b(0x254)])?_0x178c65(_0x178c65({},_0x517ca7),{'children':_0x517ca7['children'][_0x32c15b(0x2b0)](function(_0x6ac769){var _0x424dc9=_0x32c15b;return typeof _0x6ac769[_0x424dc9(0x29f)]['id']==_0x424dc9(0x275)&&_0x497c56&&_0x497c56[_0x424dc9(0x28e)](_0x6ac769[_0x424dc9(0x29f)]['id'])?_0x178c65(_0x178c65({},_0x6ac769),{'attrs':_0x178c65(_0x178c65({},_0x6ac769[_0x424dc9(0x29f)]),{'id':_0x6ac769[_0x424dc9(0x29f)]['id']+_0x39077d[_0x424dc9(0x258)]})}):_0x6ac769;})}):_0x517ca7;}function _0x1730ef(){var _0x259035=_0x12abdc;return Math[_0x259035(0x26c)]()[_0x259035(0x201)](0x24)[_0x259035(0x293)](0x2,0x8);}_0x3027e2[_0x12abdc(0x25a)]=_0x12abdc(0x25f);var _0x3347ab={'tag':_0x12abdc(0x215),'attrs':{'xmlns':_0x12abdc(0x1e5),'fill':_0x12abdc(0x21f),'viewBox':_0x12abdc(0x23a),'width':_0x12abdc(0x26e),'height':_0x12abdc(0x26e)},'children':[{'tag':_0x12abdc(0x2c4),'attrs':{'fill':_0x12abdc(0x248),'d':_0x12abdc(0x2a8)}},{'tag':_0x12abdc(0x2c4),'attrs':{'fill':_0x12abdc(0x248),'d':_0x12abdc(0x292),'fillRule':_0x12abdc(0x23b),'clipRule':_0x12abdc(0x23b)}}]},_0x1dc797=_0x5f3208['forwardRef'](function(_0x368478,_0x4c6c7a){var _0x2097f8=_0x12abdc;return _0x5f3208[_0x2097f8(0x266)](_0x3027e2,Object[_0x2097f8(0x222)]({},_0x368478,{'id':_0x2097f8(0x279),'ref':_0x4c6c7a,'icon':_0x3347ab}));});_0x1dc797[_0x12abdc(0x25a)]=_0x12abdc(0x264);var _0x43e5d1=Object['getOwnPropertyDescriptor'],_0x5c5e91=(_0x1050c5,_0x423ffa,_0x399cbf,_0x189735)=>{var _0xdcd0c0=_0x12abdc;for(var _0x4940b3=_0x189735>0x1?void 0x0:_0x189735?_0x43e5d1(_0x423ffa,_0x399cbf):_0x423ffa,_0x25f5ac=_0x1050c5[_0xdcd0c0(0x254)]-0x1,_0xd3fee8;_0x25f5ac>=0x0;_0x25f5ac--)(_0xd3fee8=_0x1050c5[_0x25f5ac])&&(_0x4940b3=_0xd3fee8(_0x4940b3)||_0x4940b3);return _0x4940b3;},_0x361efc=(_0x2da283,_0x174303)=>(_0x1e92bf,_0x35b435)=>_0x174303(_0x1e92bf,_0x35b435,_0x2da283);_0x51f9ed['LiveShareController']=class extends _0x485ecf[_0x12abdc(0x249)]{constructor(_0x163ec6,_0x3ede99,_0x2ec695){var _0x5089f6=_0x12abdc;super(),_0x52a734(this,_0x5089f6(0x2ae),new Map()),(this[_0x5089f6(0x270)]=_0x163ec6,this[_0x5089f6(0x1f4)]=_0x3ede99,this['_collabSessionService']=_0x2ec695,this[_0x5089f6(0x228)]());}async[_0x12abdc(0x1ea)](_0xc35a6f){var _0x2c0e07=_0x12abdc;return this[_0x2c0e07(0x2ae)][_0x2c0e07(0x22e)](_0xc35a6f)||await this[_0x2c0e07(0x2cc)](_0xc35a6f),this['_entities'][_0x2c0e07(0x2a1)](_0xc35a6f);}[_0x12abdc(0x228)](){var _0x933add=_0x12abdc;this[_0x933add(0x270)][_0x933add(0x26d)](_0x485ecf['UniverInstanceType']['UNIVER_SHEET'])[_0x933add(0x2aa)](_0x5f2e92[_0x933add(0x1ec)](this[_0x933add(0x2b9)]))[_0x933add(0x24c)](async _0x57657c=>{var _0x5ad85b=_0x933add;const _0x198965=_0x57657c[_0x5ad85b(0x1e3)]();this[_0x5ad85b(0x2ae)][_0x5ad85b(0x22e)](_0x198965)||this[_0x5ad85b(0x2cc)](_0x198965);}),this[_0x933add(0x270)][_0x933add(0x25c)](_0x485ecf[_0x933add(0x243)][_0x933add(0x2ac)])[_0x933add(0x2aa)](_0x5f2e92[_0x933add(0x1ec)](this[_0x933add(0x2b9)]))['subscribe'](_0x2284ed=>{var _0x474f4d=_0x933add;const _0x3f8a1c=_0x2284ed[_0x474f4d(0x1e3)](),_0x80195c=this[_0x474f4d(0x2ae)]['get'](_0x3f8a1c);_0x80195c==null||_0x80195c['dispose']();});}async[_0x12abdc(0x2cc)](_0x228d94){var _0x46e533=_0x12abdc;const _0x10b2f2=await this[_0x46e533(0x23e)][_0x46e533(0x21e)](_0x228d94),_0x40dbd0=this[_0x46e533(0x1f4)]['createInstance'](_0x51f9ed['LiveShareCoordinator'],_0x228d94,_0x10b2f2);return _0x40dbd0[_0x46e533(0x1da)](),this[_0x46e533(0x2ae)][_0x46e533(0x27b)](_0x228d94,_0x40dbd0),_0x40dbd0;}},_0x51f9ed[_0x12abdc(0x257)]=_0x5c5e91([_0x361efc(0x0,_0x485ecf[_0x12abdc(0x2c9)]),_0x361efc(0x1,_0x485ecf[_0x12abdc(0x21c)](_0x485ecf['Injector'])),_0x361efc(0x2,_0x485ecf['Inject'](_0x48665f[_0x12abdc(0x226)]))],_0x51f9ed['LiveShareController']);var _0x3385bc=(_0x5e793d=>(_0x5e793d['OFFLINE']=_0x12abdc(0x24b),_0x5e793d[_0x12abdc(0x1dd)]=_0x12abdc(0x28f),_0x5e793d[_0x12abdc(0x239)]='following',_0x5e793d['NOT_FOLLOWING']=_0x12abdc(0x205),_0x5e793d[_0x12abdc(0x212)]='presenting',_0x5e793d))(_0x3385bc||{});const _0x584a7d=_0x12abdc(0x1f7),_0x32a7ab=0xc8;_0x51f9ed[_0x12abdc(0x237)]=class extends _0x485ecf['RxDisposable']{constructor(_0x312f57,_0x159f9b,_0x1d6efd,_0x87aefd,_0x4addfd){var _0x286ab1=_0x12abdc;super(),_0x52a734(this,_0x286ab1(0x268),new _0x459ea5[(_0x286ab1(0x207))](_0x286ab1(0x28f))),_0x52a734(this,'status$',this['_status$']['asObservable']()),_0x52a734(this,_0x286ab1(0x228),!0x1),_0x52a734(this,'_commandDisposable',null),_0x52a734(this,_0x286ab1(0x1e9),null),(this[_0x286ab1(0x2c5)]=_0x312f57,this['_collabSession']=_0x159f9b,this[_0x286ab1(0x283)]=_0x1d6efd,this['_liveShareService']=_0x87aefd,this[_0x286ab1(0x251)]=_0x4addfd);}get[_0x12abdc(0x1f2)](){var _0x178891=_0x12abdc;return this[_0x178891(0x268)][_0x178891(0x21b)]();}[_0x12abdc(0x252)](){var _0x21ccc0=_0x12abdc,_0x2682bc;(_0x2682bc=this[_0x21ccc0(0x265)])==null||_0x2682bc[_0x21ccc0(0x252)](),this[_0x21ccc0(0x268)][_0x21ccc0(0x28b)]('idle'),this[_0x21ccc0(0x268)][_0x21ccc0(0x2bc)]();}['init'](){var _0x38ac8e=_0x12abdc;this[_0x38ac8e(0x228)]||(this[_0x38ac8e(0x228)]=!0x0,this[_0x38ac8e(0x233)]['sessionStatus$'][_0x38ac8e(0x2aa)](_0x5f2e92[_0x38ac8e(0x1ec)](this[_0x38ac8e(0x2b9)]))[_0x38ac8e(0x24c)](_0x8a0b5e=>{var _0x18caa2=_0x38ac8e;switch(_0x8a0b5e){case _0x48665f['SessionStatus']['OFFLINE']:this[_0x18caa2(0x287)]();break;case _0x48665f[_0x18caa2(0x206)][_0x18caa2(0x2b5)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x38ac8e(0x20d)][_0x38ac8e(0x2aa)](_0x5f2e92[_0x38ac8e(0x1ec)](this[_0x38ac8e(0x2b9)]))[_0x38ac8e(0x24c)](_0x38b4c4=>{var _0x3d672f=_0x38ac8e;const {eventID:_0x15573e}=_0x38b4c4;switch(_0x15573e){case _0x2f0030[_0x3d672f(0x204)][_0x3d672f(0x276)]:this[_0x3d672f(0x230)](_0x38b4c4);break;case _0x2f0030[_0x3d672f(0x204)][_0x3d672f(0x294)]:this[_0x3d672f(0x246)](_0x38b4c4);break;case _0x2f0030[_0x3d672f(0x204)][_0x3d672f(0x1fd)]:this[_0x3d672f(0x209)]();break;case _0x2f0030[_0x3d672f(0x204)][_0x3d672f(0x200)]:this[_0x3d672f(0x220)](_0x38b4c4);break;}}));}[_0x12abdc(0x29a)](){var _0x39c33e=_0x12abdc;this['_collabSession'][_0x39c33e(0x290)]({'eventID':_0x2f0030[_0x39c33e(0x204)][_0x39c33e(0x1fe)],'data':{'unitID':this[_0x39c33e(0x2c5)],'userID':this['_collabSession'][_0x39c33e(0x231)]()}},this[_0x39c33e(0x2c5)]);}[_0x12abdc(0x27f)](){var _0x480140=_0x12abdc;this['_status']===_0x480140(0x1f0)&&(this[_0x480140(0x268)][_0x480140(0x28b)](_0x480140(0x28f)),this[_0x480140(0x233)]['send']({'eventID':_0x2f0030[_0x480140(0x204)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x480140(0x2c5)]}},this[_0x480140(0x2c5)]));}[_0x12abdc(0x2be)](){var _0x8a265a=_0x12abdc;this[_0x8a265a(0x1f2)]==='not-following'&&(this[_0x8a265a(0x268)][_0x8a265a(0x28b)]('following'),this['_startFollowing']());}[_0x12abdc(0x2a9)](){var _0x2cc124=_0x12abdc;this[_0x2cc124(0x1f2)]===_0x2cc124(0x1eb)&&this['_stopFollowing']();}[_0x12abdc(0x230)](_0x411a40){var _0x36eb1d=_0x12abdc;const {presenter:_0x16dbf2}=_0x411a40['data'],_0x576666=this[_0x36eb1d(0x233)][_0x36eb1d(0x231)]();this[_0x36eb1d(0x1e9)]=_0x16dbf2,_0x16dbf2===_0x576666?(this[_0x36eb1d(0x245)](),this[_0x36eb1d(0x267)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x36eb1d(0x28a)]());}[_0x12abdc(0x263)](){var _0x362e2f=_0x12abdc;const _0x44720e={'eventID':_0x2f0030[_0x362e2f(0x204)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x362e2f(0x233)][_0x362e2f(0x290)](_0x44720e,this[_0x362e2f(0x2c5)]);}[_0x12abdc(0x209)](){var _0x2d298a=_0x12abdc;this[_0x2d298a(0x1e9)]=null,this[_0x2d298a(0x1f2)]!==_0x2d298a(0x1f0)&&this[_0x2d298a(0x2b4)]();}[_0x12abdc(0x220)](_0x56ffd0){var _0x30750b=_0x12abdc;if(this['_status']===_0x30750b(0x1eb)&&this[_0x30750b(0x1e9)]===_0x56ffd0[_0x30750b(0x1ef)][_0x30750b(0x22b)]){const _0x3a07fd=_0x2f0030['parseProtocolChangeset'](_0x56ffd0[_0x30750b(0x1ef)])['mutations'][_0x30750b(0x224)]()[_0x30750b(0x20f)](_0x1d6aef=>_0x1d6aef['id']===_0x219aae['InsertSheetMutation']['id']);if(_0x3a07fd){const _0x5bf6f7=_0x3a07fd[_0x30750b(0x238)]['unitId'],_0x22b6c6=_0x3a07fd[_0x30750b(0x238)][_0x30750b(0x2b6)]['id'];setTimeout(()=>{var _0x4f182b=_0x30750b;this[_0x4f182b(0x251)]['executeCommand'](_0x219aae[_0x4f182b(0x2d0)]['id'],{'unitId':_0x5bf6f7,'subUnitId':_0x22b6c6},{'fromCollab':!0x0});});}}}[_0x12abdc(0x267)](){var _0x4e4d8d=_0x12abdc;this[_0x4e4d8d(0x268)][_0x4e4d8d(0x28b)](_0x4e4d8d(0x1f0));const _0x457c1b=new Map(),_0x4eadc1=this[_0x4e4d8d(0x265)]=new _0x485ecf[(_0x4e4d8d(0x22c))]();_0x4eadc1[_0x4e4d8d(0x24f)](_0x485ecf[_0x4e4d8d(0x2bb)](()=>{var _0x4b0780=_0x4e4d8d;_0x457c1b[_0x4b0780(0x29b)](_0x4430e3=>_0x4430e3[_0x4b0780(0x2bc)]()),_0x457c1b[_0x4b0780(0x271)]();})),_0x4eadc1['add'](this[_0x4e4d8d(0x251)][_0x4e4d8d(0x221)](_0x2188ee=>{var _0xb2c7fe=_0x4e4d8d,_0x36c2ab;if(_0x2188ee['type']!==_0x485ecf[_0xb2c7fe(0x23d)][_0xb2c7fe(0x2a0)]||!this[_0xb2c7fe(0x26f)][_0xb2c7fe(0x1f5)](_0x2188ee['id']))return;const {id:_0x552661}=_0x2188ee;let _0x24f83f;_0x457c1b['has'](_0x552661)?_0x24f83f=_0x457c1b['get'](_0x552661):(_0x24f83f=new _0x459ea5[(_0xb2c7fe(0x2a6))](),_0x457c1b[_0xb2c7fe(0x27b)](_0x552661,_0x24f83f),_0x24f83f[_0xb2c7fe(0x2aa)](_0x5f2e92[_0xb2c7fe(0x22d)]((_0x36c2ab=this[_0xb2c7fe(0x283)][_0xb2c7fe(0x227)](_0x584a7d))!=null?_0x36c2ab:_0x32a7ab,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xb2c7fe(0x24c)](_0x1b4020=>{var _0x3bbd71=_0xb2c7fe;this[_0x3bbd71(0x233)][_0x3bbd71(0x290)]({'eventID':_0x2f0030['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x1b4020['id']]:{'id':_0x1b4020['id'],'params':JSON[_0x3bbd71(0x1e4)](_0x1b4020[_0x3bbd71(0x238)])}}}},this['_unitID']);})),_0x24f83f[_0xb2c7fe(0x28b)](_0x2188ee);})),this[_0x4e4d8d(0x26f)][_0x4e4d8d(0x2af)](this['_unitID'])[_0x4e4d8d(0x29b)](_0x200e40=>this[_0x4e4d8d(0x233)][_0x4e4d8d(0x290)]({'eventID':_0x2f0030['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x200e40['id']]:{'id':_0x200e40['id'],'params':JSON[_0x4e4d8d(0x1e4)](_0x200e40[_0x4e4d8d(0x238)])}}}},this[_0x4e4d8d(0x2c5)]));}['_stopPresenting'](){var _0xc5db1b=_0x12abdc,_0x32547e;this[_0xc5db1b(0x268)]['next']('idle'),(_0x32547e=this[_0xc5db1b(0x265)])==null||_0x32547e['dispose'](),this['_commandDisposable']=null;}[_0x12abdc(0x28a)](){var _0x3af85e=_0x12abdc,_0x5df624;(_0x5df624=this[_0x3af85e(0x265)])==null||_0x5df624[_0x3af85e(0x252)](),this['_status$'][_0x3af85e(0x28b)]('following');}['_beIdle'](){var _0x2c836c=_0x12abdc,_0x3566af;this[_0x2c836c(0x268)][_0x2c836c(0x28b)](_0x2c836c(0x28f)),(_0x3566af=this['_commandDisposable'])==null||_0x3566af['dispose'](),this[_0x2c836c(0x265)]=null;}[_0x12abdc(0x245)](){var _0x5f5a14=_0x12abdc,_0x3beb08;this[_0x5f5a14(0x268)][_0x5f5a14(0x28b)](_0x5f5a14(0x205)),(_0x3beb08=this[_0x5f5a14(0x265)])==null||_0x3beb08[_0x5f5a14(0x252)]();}[_0x12abdc(0x246)](_0x235245){var _0x59aa8c=_0x12abdc;if([_0x59aa8c(0x1f0),'not-following',_0x59aa8c(0x24b)][_0x59aa8c(0x28e)](this['_status'])||!_0x235245[_0x59aa8c(0x1ef)][_0x59aa8c(0x1db)]||_0x235245[_0x59aa8c(0x1ef)][_0x59aa8c(0x1db)]===this[_0x59aa8c(0x233)]['getMemberID']())return;this[_0x59aa8c(0x1f2)]===_0x59aa8c(0x28f)&&this[_0x59aa8c(0x28a)]();const _0x4d44b6=_0x235245[_0x59aa8c(0x1ef)][_0x59aa8c(0x26b)];Object[_0x59aa8c(0x274)](_0x4d44b6)[_0x59aa8c(0x29b)](_0x508a39=>{var _0x3f4f9c=_0x59aa8c;this['_commandService']['executeCommand'](_0x508a39['id'],_0x508a39[_0x3f4f9c(0x238)]?JSON[_0x3f4f9c(0x27c)](_0x508a39[_0x3f4f9c(0x238)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x534bb5=_0x12abdc,_0x45f26c;this[_0x534bb5(0x268)]['next'](_0x534bb5(0x24b)),(_0x45f26c=this[_0x534bb5(0x265)])==null||_0x45f26c[_0x534bb5(0x252)]();}['_handleOnline'](){var _0x118dfa=_0x12abdc;this[_0x118dfa(0x268)][_0x118dfa(0x28b)](_0x118dfa(0x28f)),this[_0x118dfa(0x263)]();}},_0x51f9ed[_0x12abdc(0x237)]=_0x5c5e91([_0x361efc(0x2,_0x485ecf[_0x12abdc(0x2c0)]),_0x361efc(0x3,_0x485ecf['Inject'](_0x583b40)),_0x361efc(0x4,_0x485ecf[_0x12abdc(0x22f)])],_0x51f9ed[_0x12abdc(0x237)]);function _0x19a790(){var _0x409b9a=_0x12abdc;const _0x7f37c7=_0x57616f[_0x409b9a(0x20c)](_0x51f9ed['LiveShareController']),_0x21c73f=_0x57616f[_0x409b9a(0x20c)](_0x485ecf[_0x409b9a(0x2c9)]),_0x3b4633=_0x57616f['useObservable'](()=>_0x21c73f[_0x409b9a(0x295)](_0x485ecf[_0x409b9a(0x243)][_0x409b9a(0x2ac)]),void 0x0,!0x1,[]),[_0x51f58c,_0x554b6f]=_0x5f3208[_0x409b9a(0x2ab)](null),[_0x1fdaed,_0x35f074]=_0x5f3208[_0x409b9a(0x2ab)](_0x3385bc[_0x409b9a(0x1dd)]),_0x39cd81=_0x5f3208[_0x409b9a(0x1f6)](null);return _0x5f3208[_0x409b9a(0x2c8)](()=>(_0x3b4633&&_0x7f37c7[_0x409b9a(0x1ea)](_0x3b4633[_0x409b9a(0x1e3)]())['then'](_0x219468=>{var _0x56b370=_0x409b9a;_0x554b6f(_0x219468),_0x39cd81[_0x56b370(0x261)]=_0x219468[_0x56b370(0x29e)][_0x56b370(0x24c)](_0xaacb87=>{_0x35f074(_0xaacb87);});}),()=>{var _0xa7e076=_0x409b9a,_0x4f4e73;(_0x4f4e73=_0x39cd81[_0xa7e076(0x261)])==null||_0x4f4e73[_0xa7e076(0x2ce)](),_0x39cd81[_0xa7e076(0x261)]=null;}),[_0x3b4633,_0x7f37c7]),_0x51f58c?_0x563fcb['jsx'](_0x2dc538[_0x409b9a(0x2b8)],{'align':_0x409b9a(0x235),'disabled':_0x1fdaed===_0x3385bc[_0x409b9a(0x2c7)],'className':_0x409b9a(0x203),'overlay':_0x563fcb[_0x409b9a(0x2a5)](_0x3f0c8e,{'status':_0x1fdaed,'coordinator':_0x51f58c}),'children':_0x563fcb['jsx']('button',{'className':_0x2dc538[_0x409b9a(0x2ad)](_0x409b9a(0x29c),{'univer-cursor-not-allowed':_0x1fdaed===_0x3385bc[_0x409b9a(0x2c7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1fdaed!==_0x3385bc[_0x409b9a(0x2c7)]}),'type':_0x409b9a(0x2cf),'children':_0x563fcb['jsx'](_0x1dc797,{'className':'univer-size-4'})})}):null;}function _0x3f0c8e(_0x2abd42){var _0x2e05b9=_0x12abdc;const {status:_0xd0cab8,coordinator:_0x3b2fde}=_0x2abd42;switch(_0xd0cab8){case _0x3385bc[_0x2e05b9(0x1dd)]:return _0x563fcb[_0x2e05b9(0x2a5)](_0x3a881c,{'coordinator':_0x3b2fde});case _0x3385bc[_0x2e05b9(0x239)]:return _0x563fcb[_0x2e05b9(0x2a5)](_0x445592,{'coordinator':_0x3b2fde});case _0x3385bc[_0x2e05b9(0x24a)]:return _0x563fcb[_0x2e05b9(0x2a5)](_0x545743,{'coordinator':_0x3b2fde});case _0x3385bc['OFFLINE']:return _0x563fcb[_0x2e05b9(0x2a5)](_0x3553be,{});case _0x3385bc[_0x2e05b9(0x212)]:return _0x563fcb[_0x2e05b9(0x2a5)](_0x5a7f07,{'coordinator':_0x3b2fde});default:return null;}}function _0x3a881c(_0x54f56d){var _0x8c4c57=_0x12abdc;const {coordinator:_0x42773c}=_0x54f56d;return _0x563fcb['jsxs'](_0x563fcb['Fragment'],{'children':[_0x563fcb['jsx']('div',{'className':_0x8c4c57(0x216),'children':_0x8c4c57(0x20e)}),_0x563fcb[_0x8c4c57(0x2a5)](_0x2dc538[_0x8c4c57(0x28d)],{'onClick':()=>_0x42773c['tryStartPresenting'](),'children':_0x8c4c57(0x1e1)})]});}function _0x445592(_0x1c5816){var _0xcc7338=_0x12abdc;const {coordinator:_0x5b213c}=_0x1c5816;return _0x563fcb['jsxs'](_0x563fcb[_0xcc7338(0x1fc)],{'children':[_0x563fcb[_0xcc7338(0x2a5)]('div',{'className':_0xcc7338(0x216),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x563fcb[_0xcc7338(0x2a5)](_0x2dc538[_0xcc7338(0x28d)],{'onClick':()=>_0x5b213c['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x545743(_0x448ba5){var _0xb25e4a=_0x12abdc;const {coordinator:_0x2fa661}=_0x448ba5;return _0x563fcb[_0xb25e4a(0x289)](_0x563fcb['Fragment'],{'children':[_0x563fcb[_0xb25e4a(0x2a5)](_0xb25e4a(0x211),{'className':_0xb25e4a(0x216),'children':_0xb25e4a(0x298)}),_0x563fcb[_0xb25e4a(0x2a5)](_0x2dc538[_0xb25e4a(0x28d)],{'variant':_0xb25e4a(0x23f),'onClick':()=>_0x2fa661[_0xb25e4a(0x2be)](),'children':_0xb25e4a(0x225)})]});}function _0x5a7f07(_0x4d7b15){var _0x20f05e=_0x12abdc;const {coordinator:_0x281625}=_0x4d7b15;return _0x563fcb[_0x20f05e(0x289)](_0x563fcb[_0x20f05e(0x1fc)],{'children':[_0x563fcb[_0x20f05e(0x2a5)](_0x20f05e(0x211),{'className':_0x20f05e(0x216),'children':_0x20f05e(0x280)}),_0x563fcb[_0x20f05e(0x2a5)](_0x2dc538[_0x20f05e(0x28d)],{'variant':'default','onClick':()=>_0x281625[_0x20f05e(0x27f)](),'children':'Stop\x20presenting'})]});}function _0x3553be(){var _0x3157f1=_0x12abdc;return _0x563fcb['jsx'](_0x563fcb[_0x3157f1(0x1fc)],{'children':'You\x27are\x20offline.'});}var _0x2a8fa6=Object[_0x12abdc(0x1ee)],_0xf0c86d=(_0x4e489c,_0x50ad44,_0x5838c7,_0x20fb2e)=>{var _0x57fe3d=_0x12abdc;for(var _0x298773=_0x20fb2e>0x1?void 0x0:_0x20fb2e?_0x2a8fa6(_0x50ad44,_0x5838c7):_0x50ad44,_0x255307=_0x4e489c[_0x57fe3d(0x254)]-0x1,_0x53c680;_0x255307>=0x0;_0x255307--)(_0x53c680=_0x4e489c[_0x255307])&&(_0x298773=_0x53c680(_0x298773)||_0x298773);return _0x298773;},_0x113b62=(_0x5b5fb7,_0x2fd2e3)=>(_0x3e4fc5,_0x200184)=>_0x2fd2e3(_0x3e4fc5,_0x200184,_0x5b5fb7);_0x51f9ed[_0x12abdc(0x278)]=class extends _0x485ecf[_0x12abdc(0x1e6)]{constructor(_0x1099f1,_0x4d6739){var _0x1ac1e3=_0x12abdc;super(),this[_0x1ac1e3(0x1f4)]=_0x1099f1,this[_0x1ac1e3(0x260)]=_0x4d6739,this[_0x1ac1e3(0x218)]();}[_0x12abdc(0x218)](){var _0x2c41a9=_0x12abdc;this['disposeWithMe'](this[_0x2c41a9(0x260)]['registerComponent'](_0x57616f['BuiltInUIPart'][_0x2c41a9(0x255)],()=>_0x57616f[_0x2c41a9(0x1df)](_0x19a790,this['_injector'])));}},_0x51f9ed['DesktopLiveShareController']=_0xf0c86d([_0x113b62(0x0,_0x485ecf[_0x12abdc(0x21c)](_0x485ecf['Injector'])),_0x113b62(0x1,_0x57616f[_0x12abdc(0x1f3)])],_0x51f9ed[_0x12abdc(0x278)]);var _0x10970a=Object['defineProperty'],_0xd54d48=Object['getOwnPropertyDescriptor'],_0x52ff8c=(_0x3f2a20,_0x279bc1,_0x21c403)=>_0x279bc1 in _0x3f2a20?_0x10970a(_0x3f2a20,_0x279bc1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21c403}):_0x3f2a20[_0x279bc1]=_0x21c403,_0x5d13e4=(_0x201cad,_0x5dd1e8,_0x409d21,_0xb40ae6)=>{var _0x434319=_0x12abdc;for(var _0x281499=_0xb40ae6>0x1?void 0x0:_0xb40ae6?_0xd54d48(_0x5dd1e8,_0x409d21):_0x5dd1e8,_0x358b93=_0x201cad[_0x434319(0x254)]-0x1,_0x48c612;_0x358b93>=0x0;_0x358b93--)(_0x48c612=_0x201cad[_0x358b93])&&(_0x281499=_0x48c612(_0x281499)||_0x281499);return _0x281499;},_0x25a1e4=(_0x2242b9,_0x357db5)=>(_0x50589a,_0x56a5bc)=>_0x357db5(_0x50589a,_0x56a5bc,_0x2242b9),_0x504764=(_0xfe8be3,_0x4f29cc,_0x131288)=>_0x52ff8c(_0xfe8be3,typeof _0x4f29cc!=_0x12abdc(0x27a)?_0x4f29cc+'':_0x4f29cc,_0x131288);const _0x473b9d='UNIVER_LIVE_SHARE_PLUGIN';_0x51f9ed[_0x12abdc(0x229)]=class extends _0x485ecf[_0x12abdc(0x250)]{constructor(_0x378e84=_0x5362c1,_0x526702,_0x4b9128){var _0x4a93ed=_0x12abdc;super(),this[_0x4a93ed(0x1fb)]=_0x378e84,this[_0x4a93ed(0x1f4)]=_0x526702,this[_0x4a93ed(0x283)]=_0x4b9128;const {..._0x4d367d}=_0x485ecf['merge']({},_0x5362c1,this[_0x4a93ed(0x1fb)]);this['_configService'][_0x4a93ed(0x297)](_0x15f181,_0x4d367d);}[_0x12abdc(0x2c1)](){var _0x79d6f2=_0x12abdc;_0x485ecf[_0x79d6f2(0x240)](this[_0x79d6f2(0x1f4)],_0x485ecf['mergeOverrideWithDependencies']([[_0x583b40],[_0x51f9ed['LiveShareController']],[_0x4cb525],[_0x51f9ed['DesktopLiveShareController']]],this[_0x79d6f2(0x1fb)]['override'])),_0x485ecf[_0x79d6f2(0x25b)](this['_injector'],[[_0x4cb525]]);}['onRendered'](){var _0x2efbb1=_0x12abdc;_0x485ecf[_0x2efbb1(0x25b)](this['_injector'],[[_0x51f9ed['DesktopLiveShareController']]]);}},_0x504764(_0x51f9ed[_0x12abdc(0x229)],_0x12abdc(0x1fa),_0x485ecf[_0x12abdc(0x243)]['UNIVER_UNKNOWN']),_0x504764(_0x51f9ed[_0x12abdc(0x229)],'pluginName',_0x473b9d),_0x51f9ed['UniverLiveSharePlugin']=_0x5d13e4([_0x485ecf[_0x12abdc(0x24e)](_0x48665f[_0x12abdc(0x286)]),_0x25a1e4(0x1,_0x485ecf[_0x12abdc(0x21c)](_0x485ecf[_0x12abdc(0x23c)])),_0x25a1e4(0x2,_0x485ecf['IConfigService'])],_0x51f9ed[_0x12abdc(0x229)]),_0x51f9ed[_0x12abdc(0x247)]=_0x19a790,_0x51f9ed['LiveShareService']=_0x583b40,_0x51f9ed[_0x12abdc(0x219)]=_0x3385bc,Object[_0x12abdc(0x26a)](_0x51f9ed,Symbol[_0x12abdc(0x272)],{'value':_0x12abdc(0x208)});}));
|
|
1
|
+
function _0x114e(_0x4b9aed,_0x4880b3){var _0x3c5e45=_0x3c5e();return _0x114e=function(_0x114e2f,_0xf997c2){_0x114e2f=_0x114e2f-0x1f2;var _0x4efa3b=_0x3c5e45[_0x114e2f];return _0x4efa3b;},_0x114e(_0x4b9aed,_0x4880b3);}(function(_0xe628a6,_0x459076){var _0x1c3731=_0x114e,_0x3c11fe=_0xe628a6();while(!![]){try{var _0x4fe364=-parseInt(_0x1c3731(0x26e))/0x1+-parseInt(_0x1c3731(0x27c))/0x2+-parseInt(_0x1c3731(0x251))/0x3+parseInt(_0x1c3731(0x23e))/0x4+parseInt(_0x1c3731(0x274))/0x5+parseInt(_0x1c3731(0x255))/0x6*(parseInt(_0x1c3731(0x280))/0x7)+-parseInt(_0x1c3731(0x2c0))/0x8;if(_0x4fe364===_0x459076)break;else _0x3c11fe['push'](_0x3c11fe['shift']());}catch(_0x69259){_0x3c11fe['push'](_0x3c11fe['shift']());}}}(_0x3c5e,0x5c011),function(_0x5bd1e3,_0x280321){var _0x4d4b0b=_0x114e;typeof exports==_0x4d4b0b(0x2ce)&&typeof module<'u'?_0x280321(exports,require(_0x4d4b0b(0x1f7)),require(_0x4d4b0b(0x209)),require(_0x4d4b0b(0x2d8)),require(_0x4d4b0b(0x205)),require('@univerjs/ui'),require(_0x4d4b0b(0x21b)),require(_0x4d4b0b(0x26c)),require(_0x4d4b0b(0x259)),require(_0x4d4b0b(0x2a6)),require(_0x4d4b0b(0x21a)),require(_0x4d4b0b(0x26a))):typeof define==_0x4d4b0b(0x2c5)&&define[_0x4d4b0b(0x27b)]?define([_0x4d4b0b(0x2a0),_0x4d4b0b(0x1f7),_0x4d4b0b(0x209),_0x4d4b0b(0x2d8),_0x4d4b0b(0x205),'@univerjs/ui',_0x4d4b0b(0x21b),_0x4d4b0b(0x26c),_0x4d4b0b(0x259),_0x4d4b0b(0x2a6),_0x4d4b0b(0x21a),_0x4d4b0b(0x26a)],_0x280321):(_0x5bd1e3=typeof globalThis<'u'?globalThis:_0x5bd1e3||self,_0x280321(_0x5bd1e3[_0x4d4b0b(0x284)]={},_0x5bd1e3[_0x4d4b0b(0x27f)],_0x5bd1e3['UniverCore'],_0x5bd1e3[_0x4d4b0b(0x2a5)],_0x5bd1e3[_0x4d4b0b(0x210)],_0x5bd1e3[_0x4d4b0b(0x2bf)],_0x5bd1e3[_0x4d4b0b(0x28e)],_0x5bd1e3['UniverDesign'],_0x5bd1e3[_0x4d4b0b(0x28e)],_0x5bd1e3['UniverProCollaboration'],_0x5bd1e3[_0x4d4b0b(0x21a)],_0x5bd1e3['rxjs'][_0x4d4b0b(0x253)]));}(this,function(_0x242532,_0xfdfe59,_0x4f60a5,_0x14f251,_0x28a55f,_0x3d0555,_0x41cae8,_0x4f0891,_0x73a25b,_0x3f4e24,_0x46d80b,_0x6b08a0){'use strict';var _0x295461=_0x114e;var _0xa6b2b6=Object[_0x295461(0x298)],_0x3ddd41=(_0x1f3461,_0x13f99a,_0xe1e994)=>_0x13f99a in _0x1f3461?_0xa6b2b6(_0x1f3461,_0x13f99a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe1e994}):_0x1f3461[_0x13f99a]=_0xe1e994,_0x1b65ab=(_0x1b5817,_0x28e308,_0x124fdb)=>_0x3ddd41(_0x1b5817,typeof _0x28e308!=_0x295461(0x275)?_0x28e308+'':_0x28e308,_0x124fdb);const _0x56dab1='live-share.config',_0x4b1876={};class _0x48a49f extends _0x4f60a5[_0x295461(0x2de)]{constructor(){var _0x939d9a=_0x295461;super(...arguments),_0x1b65ab(this,_0x939d9a(0x2b3),new Set()),_0x1b65ab(this,_0x939d9a(0x295),new Set());}[_0x295461(0x260)](_0x2bf489){var _0x51ff9c=_0x295461;return this[_0x51ff9c(0x2b3)][_0x51ff9c(0x201)](_0x2bf489),_0x4f60a5['toDisposable'](()=>this[_0x51ff9c(0x2b3)][_0x51ff9c(0x202)](_0x2bf489));}['registerInitialStateReporter'](_0x3cbda8){var _0x4de08c=_0x295461;return this[_0x4de08c(0x295)]['add'](_0x3cbda8),_0x4f60a5[_0x4de08c(0x27d)](()=>this[_0x4de08c(0x295)][_0x4de08c(0x202)](_0x3cbda8));}[_0x295461(0x1ff)](_0x41b5ed){var _0x42818e=_0x295461;return this[_0x42818e(0x2b3)][_0x42818e(0x283)](_0x41b5ed);}[_0x295461(0x24e)](_0x5edec5){return Array['from'](this['_reporters'])['map'](_0x2c3b9e=>_0x2c3b9e(_0x5edec5));}}var _0x302483=Object[_0x295461(0x296)],_0x1c767d=(_0x1d24ac,_0x1129d5,_0x34eeac,_0x3f291a)=>{var _0x16a06b=_0x295461;for(var _0x1e92a8=_0x3f291a>0x1?void 0x0:_0x3f291a?_0x302483(_0x1129d5,_0x34eeac):_0x1129d5,_0x4f9c6b=_0x1d24ac[_0x16a06b(0x2bd)]-0x1,_0x2ce3d9;_0x4f9c6b>=0x0;_0x4f9c6b--)(_0x2ce3d9=_0x1d24ac[_0x4f9c6b])&&(_0x1e92a8=_0x2ce3d9(_0x1e92a8)||_0x1e92a8);return _0x1e92a8;},_0x223982=(_0x44e2e1,_0x4e0dbc)=>(_0x42f155,_0x29eb11)=>_0x4e0dbc(_0x42f155,_0x29eb11,_0x44e2e1);let _0x3edfcf=class extends _0x4f60a5['Disposable']{constructor(_0x499e5f){var _0x3c26dc=_0x295461;super(),this['_liveShareService']=_0x499e5f,this[_0x3c26dc(0x250)]();}[_0x295461(0x250)](){var _0x380f87=_0x295461;[_0x28a55f[_0x380f87(0x232)]['id'],_0x28a55f['SetScrollOperation']['id'],_0x14f251[_0x380f87(0x29f)]['id']]['forEach'](_0x200049=>{var _0x2f15db=_0x380f87;this[_0x2f15db(0x208)](this['_liveShareService'][_0x2f15db(0x260)](_0x200049));});}};_0x3edfcf=_0x1c767d([_0x223982(0x0,_0x4f60a5['Inject'](_0x48a49f))],_0x3edfcf);var _0x389a2c=function(){var _0x362f5d=_0x295461;return _0x389a2c=Object[_0x362f5d(0x272)]||function(_0x35c413){var _0x4a2e42=_0x362f5d;for(var _0x3ff1b9,_0x7fbc1f=0x1,_0x3cbd32=arguments[_0x4a2e42(0x2bd)];_0x7fbc1f<_0x3cbd32;_0x7fbc1f++){_0x3ff1b9=arguments[_0x7fbc1f];for(var _0x148f32 in _0x3ff1b9)Object['prototype'][_0x4a2e42(0x2d3)][_0x4a2e42(0x2cf)](_0x3ff1b9,_0x148f32)&&(_0x35c413[_0x148f32]=_0x3ff1b9[_0x148f32]);}return _0x35c413;},_0x389a2c[_0x362f5d(0x252)](this,arguments);},_0x325fb7=function(_0x5c5e56,_0x20fdc9){var _0x2b20e3=_0x295461,_0x152661={};for(var _0x4de522 in _0x5c5e56)Object[_0x2b20e3(0x2a8)][_0x2b20e3(0x2d3)]['call'](_0x5c5e56,_0x4de522)&&_0x20fdc9[_0x2b20e3(0x215)](_0x4de522)<0x0&&(_0x152661[_0x4de522]=_0x5c5e56[_0x4de522]);if(_0x5c5e56!=null&&typeof Object[_0x2b20e3(0x240)]==_0x2b20e3(0x2c5)){for(var _0x4bd608=0x0,_0x4de522=Object[_0x2b20e3(0x240)](_0x5c5e56);_0x4bd608<_0x4de522[_0x2b20e3(0x2bd)];_0x4bd608++)_0x20fdc9['indexOf'](_0x4de522[_0x4bd608])<0x0&&Object[_0x2b20e3(0x2a8)]['propertyIsEnumerable'][_0x2b20e3(0x2cf)](_0x5c5e56,_0x4de522[_0x4bd608])&&(_0x152661[_0x4de522[_0x4bd608]]=_0x5c5e56[_0x4de522[_0x4bd608]]);}return _0x152661;},_0x831dad=_0x73a25b[_0x295461(0x1f4)](function(_0x1c20e2,_0x41ea3c){var _0x3f82c0=_0x295461,_0x609e32=_0x1c20e2['icon'],_0x47cd71=_0x1c20e2['id'],_0x53d716=_0x1c20e2[_0x3f82c0(0x254)],_0x9d179b=_0x1c20e2[_0x3f82c0(0x2db)],_0x40bf24=_0x325fb7(_0x1c20e2,[_0x3f82c0(0x230),'id',_0x3f82c0(0x254),_0x3f82c0(0x2db)]),_0xb8cb8b='univerjs-icon\x20univerjs-icon-'[_0x3f82c0(0x235)](_0x47cd71,'\x20')['concat'](_0x53d716||'')[_0x3f82c0(0x23a)](),_0x2afec7=_0x73a25b[_0x3f82c0(0x2a1)]('_'['concat'](_0x54007c()));return _0x4adad3(_0x609e32,''[_0x3f82c0(0x235)](_0x47cd71),{'defIds':_0x609e32[_0x3f82c0(0x291)],'idSuffix':_0x2afec7[_0x3f82c0(0x256)]},_0x389a2c({'ref':_0x41ea3c,'className':_0xb8cb8b},_0x40bf24),_0x9d179b);});function _0x4adad3(_0x1ea875,_0x32be1c,_0x40e96f,_0x5d67e3,_0x1c4def){var _0x10d7d7=_0x295461;return _0x73a25b[_0x10d7d7(0x220)](_0x1ea875['tag'],_0x389a2c(_0x389a2c({'key':_0x32be1c},_0x184188(_0x1ea875,_0x40e96f,_0x1c4def)),_0x5d67e3),(_0x5aeae3(_0x1ea875,_0x40e96f)[_0x10d7d7(0x20e)]||[])[_0x10d7d7(0x1fe)](function(_0xa85af9,_0x37a275){var _0x37b6de=_0x10d7d7;return _0x4adad3(_0xa85af9,''['concat'](_0x32be1c,'-')['concat'](_0x1ea875[_0x37b6de(0x2ab)],'-')['concat'](_0x37a275),_0x40e96f,void 0x0,_0x1c4def);}));}function _0x184188(_0x5587a8,_0x4019de,_0x2dfa6e){var _0x3c7272=_0x295461,_0x433ea6=_0x389a2c({},_0x5587a8[_0x3c7272(0x2c7)]);_0x2dfa6e!=null&&_0x2dfa6e['colorChannel1']&&_0x433ea6[_0x3c7272(0x2ba)]==='colorChannel1'&&(_0x433ea6[_0x3c7272(0x2ba)]=_0x2dfa6e[_0x3c7272(0x25a)]),_0x5587a8[_0x3c7272(0x2ab)]===_0x3c7272(0x236)&&_0x433ea6['id']&&(_0x433ea6['id']=_0x433ea6['id']+_0x4019de[_0x3c7272(0x2ae)]),Object[_0x3c7272(0x2c8)](_0x433ea6)[_0x3c7272(0x22c)](function(_0xd5710f){var _0x1719af=_0x3c7272,_0xc9c9cf=_0xd5710f[0x0],_0x2f8cfd=_0xd5710f[0x1];_0xc9c9cf==='mask'&&typeof _0x2f8cfd==_0x1719af(0x2d2)&&(_0x433ea6[_0xc9c9cf]=_0x2f8cfd[_0x1719af(0x24c)](/url\(#(.*)\)/,_0x1719af(0x1fa)[_0x1719af(0x235)](_0x4019de[_0x1719af(0x2ae)],')')));});var _0x3364bf=_0x4019de[_0x3c7272(0x291)];return!_0x3364bf||_0x3364bf[_0x3c7272(0x2bd)]===0x0||(_0x5587a8[_0x3c7272(0x2ab)]===_0x3c7272(0x2d0)&&_0x433ea6['xlink:href']&&(_0x433ea6['xlink:href']=_0x433ea6[_0x3c7272(0x249)]+_0x4019de[_0x3c7272(0x2ae)]),Object['entries'](_0x433ea6)[_0x3c7272(0x22c)](function(_0x3348c8){var _0x10620c=_0x3c7272,_0x433f62=_0x3348c8[0x0],_0x1c4530=_0x3348c8[0x1];typeof _0x1c4530=='string'&&(_0x433ea6[_0x433f62]=_0x1c4530[_0x10620c(0x24c)](/url\(#(.*)\)/,_0x10620c(0x1fa)[_0x10620c(0x235)](_0x4019de['idSuffix'],')')));})),_0x433ea6;}function _0x5aeae3(_0x11c09d,_0x1cb924){var _0x4ad867=_0x295461,_0x591bbc,_0x1260d9=_0x1cb924['defIds'];return!_0x1260d9||_0x1260d9['length']===0x0?_0x11c09d:_0x11c09d[_0x4ad867(0x2ab)]===_0x4ad867(0x28c)&&(!((_0x591bbc=_0x11c09d['children'])===null||_0x591bbc===void 0x0)&&_0x591bbc[_0x4ad867(0x2bd)])?_0x389a2c(_0x389a2c({},_0x11c09d),{'children':_0x11c09d[_0x4ad867(0x20e)]['map'](function(_0xd6a871){var _0x14dc27=_0x4ad867;return typeof _0xd6a871[_0x14dc27(0x2c7)]['id']=='string'&&_0x1260d9&&_0x1260d9[_0x14dc27(0x27e)](_0xd6a871['attrs']['id'])?_0x389a2c(_0x389a2c({},_0xd6a871),{'attrs':_0x389a2c(_0x389a2c({},_0xd6a871[_0x14dc27(0x2c7)]),{'id':_0xd6a871['attrs']['id']+_0x1cb924['idSuffix']})}):_0xd6a871;})}):_0x11c09d;}function _0x54007c(){var _0x3b3db1=_0x295461;return Math['random']()['toString'](0x24)[_0x3b3db1(0x2da)](0x2,0x8);}_0x831dad[_0x295461(0x222)]=_0x295461(0x26d);var _0x47dff4={'tag':'svg','attrs':{'xmlns':_0x295461(0x2c4),'fill':'none','viewBox':_0x295461(0x29a),'width':_0x295461(0x217),'height':'1em'},'children':[{'tag':_0x295461(0x246),'attrs':{'fill':'currentColor','d':_0x295461(0x29b)}},{'tag':'path','attrs':{'fill':_0x295461(0x237),'d':_0x295461(0x200),'fillRule':_0x295461(0x290),'clipRule':_0x295461(0x290)}}]},_0x473845=_0x73a25b[_0x295461(0x1f4)](function(_0x4c6d41,_0x5dccae){var _0x3c03b5=_0x295461;return _0x73a25b[_0x3c03b5(0x220)](_0x831dad,Object['assign']({},_0x4c6d41,{'id':_0x3c03b5(0x26f),'ref':_0x5dccae,'icon':_0x47dff4}));});_0x473845['displayName']=_0x295461(0x204);var _0x54cffd=Object[_0x295461(0x296)],_0x3be775=(_0x2ea116,_0x497ebc,_0x3de3e5,_0x23402d)=>{var _0x5064c7=_0x295461;for(var _0x588a50=_0x23402d>0x1?void 0x0:_0x23402d?_0x54cffd(_0x497ebc,_0x3de3e5):_0x497ebc,_0x2247ee=_0x2ea116[_0x5064c7(0x2bd)]-0x1,_0x59bf93;_0x2247ee>=0x0;_0x2247ee--)(_0x59bf93=_0x2ea116[_0x2247ee])&&(_0x588a50=_0x59bf93(_0x588a50)||_0x588a50);return _0x588a50;},_0x11e0fa=(_0x1f2d2a,_0x4748e7)=>(_0x3ce0b6,_0x35c380)=>_0x4748e7(_0x3ce0b6,_0x35c380,_0x1f2d2a);_0x242532[_0x295461(0x242)]=class extends _0x4f60a5[_0x295461(0x20c)]{constructor(_0x71d10d,_0x59f297,_0x32ddad){var _0x7e525e=_0x295461;super(),_0x1b65ab(this,_0x7e525e(0x22a),new Map()),(this[_0x7e525e(0x2bc)]=_0x71d10d,this[_0x7e525e(0x261)]=_0x59f297,this[_0x7e525e(0x299)]=_0x32ddad,this[_0x7e525e(0x250)]());}async[_0x295461(0x228)](_0x24ea1f){var _0x5171e0=_0x295461;return this[_0x5171e0(0x22a)]['has'](_0x24ea1f)||await this[_0x5171e0(0x25c)](_0x24ea1f),this[_0x5171e0(0x22a)][_0x5171e0(0x243)](_0x24ea1f);}['_init'](){var _0xe45564=_0x295461;this[_0xe45564(0x2bc)][_0xe45564(0x2bb)](_0x4f60a5[_0xe45564(0x278)][_0xe45564(0x29e)])[_0xe45564(0x216)](_0x6b08a0[_0xe45564(0x203)](this[_0xe45564(0x24f)]))[_0xe45564(0x2ca)](async _0x938d08=>{var _0x5173c3=_0xe45564;const _0x326e29=_0x938d08['getUnitId']();this[_0x5173c3(0x22a)][_0x5173c3(0x283)](_0x326e29)||this['_startLiveShareCoordinator'](_0x326e29);}),this['_univerInstanceService'][_0xe45564(0x2c2)](_0x4f60a5[_0xe45564(0x278)][_0xe45564(0x29e)])[_0xe45564(0x216)](_0x6b08a0[_0xe45564(0x203)](this[_0xe45564(0x24f)]))[_0xe45564(0x2ca)](_0x4e321f=>{var _0x23782a=_0xe45564;const _0x248ac1=_0x4e321f['getUnitId'](),_0x221d9b=this[_0x23782a(0x22a)][_0x23782a(0x243)](_0x248ac1);_0x221d9b==null||_0x221d9b[_0x23782a(0x1f8)]();});}async[_0x295461(0x25c)](_0x1f2e4a){var _0x26c39c=_0x295461;const _0x4e0f54=await this[_0x26c39c(0x299)][_0x26c39c(0x2b7)](_0x1f2e4a),_0x4bfef7=this['_injector']['createInstance'](_0x242532[_0x26c39c(0x277)],_0x1f2e4a,_0x4e0f54);return _0x4bfef7[_0x26c39c(0x245)](),this[_0x26c39c(0x22a)][_0x26c39c(0x211)](_0x1f2e4a,_0x4bfef7),_0x4bfef7;}},_0x242532[_0x295461(0x242)]=_0x3be775([_0x11e0fa(0x0,_0x4f60a5['IUniverInstanceService']),_0x11e0fa(0x1,_0x4f60a5[_0x295461(0x2ac)](_0x4f60a5[_0x295461(0x1f2)])),_0x11e0fa(0x2,_0x4f60a5[_0x295461(0x2ac)](_0xfdfe59[_0x295461(0x2e1)]))],_0x242532[_0x295461(0x242)]);var _0x50a86b=(_0x23751e=>(_0x23751e[_0x295461(0x221)]=_0x295461(0x25b),_0x23751e['IDLE']=_0x295461(0x224),_0x23751e[_0x295461(0x29c)]=_0x295461(0x1f5),_0x23751e[_0x295461(0x2d6)]=_0x295461(0x270),_0x23751e[_0x295461(0x25f)]=_0x295461(0x2b9),_0x23751e))(_0x50a86b||{});const _0x5a2723=_0x295461(0x229),_0x3340eb=0xc8;_0x242532[_0x295461(0x277)]=class extends _0x4f60a5[_0x295461(0x20c)]{constructor(_0x561e22,_0x288bcb,_0x346e2d,_0x59d77e,_0x562346){var _0x58380a=_0x295461;super(),_0x1b65ab(this,'_status$',new _0x46d80b[(_0x58380a(0x226))](_0x58380a(0x224))),_0x1b65ab(this,'status$',this[_0x58380a(0x26b)][_0x58380a(0x2d1)]()),_0x1b65ab(this,'_init',!0x1),_0x1b65ab(this,_0x58380a(0x289),null),_0x1b65ab(this,_0x58380a(0x2a2),null),(this[_0x58380a(0x2a7)]=_0x561e22,this[_0x58380a(0x225)]=_0x288bcb,this[_0x58380a(0x2b0)]=_0x346e2d,this[_0x58380a(0x2cc)]=_0x59d77e,this['_commandService']=_0x562346);}get[_0x295461(0x297)](){var _0x2ee20f=_0x295461;return this[_0x2ee20f(0x26b)][_0x2ee20f(0x24d)]();}['dispose'](){var _0x4c3d6e=_0x295461,_0x5aa9db;(_0x5aa9db=this['_commandDisposable'])==null||_0x5aa9db['dispose'](),this[_0x4c3d6e(0x26b)][_0x4c3d6e(0x248)]('idle'),this[_0x4c3d6e(0x26b)]['complete']();}[_0x295461(0x245)](){var _0x4349a=_0x295461;this[_0x4349a(0x250)]||(this['_init']=!0x0,this[_0x4349a(0x225)][_0x4349a(0x286)][_0x4349a(0x216)](_0x6b08a0[_0x4349a(0x203)](this[_0x4349a(0x24f)]))[_0x4349a(0x2ca)](_0x5cdf90=>{var _0x2d6124=_0x4349a;switch(_0x5cdf90){case _0xfdfe59['SessionStatus']['OFFLINE']:this[_0x2d6124(0x2a9)]();break;case _0xfdfe59[_0x2d6124(0x1fc)][_0x2d6124(0x2e0)]:this['_handleOnline']();break;}}),this[_0x4349a(0x225)]['event$'][_0x4349a(0x216)](_0x6b08a0[_0x4349a(0x203)](this[_0x4349a(0x24f)]))[_0x4349a(0x2ca)](_0x345b86=>{var _0x32a647=_0x4349a;const {eventID:_0x4ac6d4}=_0x345b86;switch(_0x4ac6d4){case _0x3f4e24[_0x32a647(0x2d7)][_0x32a647(0x2d4)]:this[_0x32a647(0x257)](_0x345b86);break;case _0x3f4e24[_0x32a647(0x2d7)][_0x32a647(0x227)]:this[_0x32a647(0x293)](_0x345b86);break;case _0x3f4e24['CollaborationEvent'][_0x32a647(0x266)]:this[_0x32a647(0x28d)]();break;case _0x3f4e24[_0x32a647(0x2d7)]['NEW_CHANGESETS']:this[_0x32a647(0x294)](_0x345b86);break;}}));}[_0x295461(0x276)](){var _0x3baf53=_0x295461;this[_0x3baf53(0x225)][_0x3baf53(0x267)]({'eventID':_0x3f4e24['CollaborationEvent'][_0x3baf53(0x2b4)],'data':{'unitID':this[_0x3baf53(0x2a7)],'userID':this[_0x3baf53(0x225)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){var _0x355d7a=_0x295461;this['_status']===_0x355d7a(0x2b9)&&(this[_0x355d7a(0x26b)][_0x355d7a(0x248)](_0x355d7a(0x224)),this[_0x355d7a(0x225)]['send']({'eventID':_0x3f4e24[_0x355d7a(0x2d7)][_0x355d7a(0x266)],'data':{'unitID':this['_unitID']}},this[_0x355d7a(0x2a7)]));}[_0x295461(0x2b5)](){var _0x147120=_0x295461;this[_0x147120(0x297)]===_0x147120(0x270)&&(this[_0x147120(0x26b)][_0x147120(0x248)](_0x147120(0x1f5)),this[_0x147120(0x2af)]());}[_0x295461(0x206)](){var _0x1db1f2=_0x295461;this[_0x1db1f2(0x297)]===_0x1db1f2(0x1f5)&&this[_0x1db1f2(0x21c)]();}[_0x295461(0x257)](_0x8c53c7){var _0x5bc185=_0x295461;const {presenter:_0x15f8bc}=_0x8c53c7[_0x5bc185(0x2cd)],_0x14e205=this[_0x5bc185(0x225)]['getMemberID']();this[_0x5bc185(0x2a2)]=_0x15f8bc,_0x15f8bc===_0x14e205?(this[_0x5bc185(0x21c)](),this['_startPresenting']()):this[_0x5bc185(0x297)]!==_0x5bc185(0x270)&&(this[_0x5bc185(0x265)](),this[_0x5bc185(0x2af)]());}[_0x295461(0x21e)](){var _0x4b9246=_0x295461;const _0x45cf7d={'eventID':_0x3f4e24['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession']['send'](_0x45cf7d,this[_0x4b9246(0x2a7)]);}[_0x295461(0x28d)](){var _0x3251d0=_0x295461;this[_0x3251d0(0x2a2)]=null,this[_0x3251d0(0x297)]!==_0x3251d0(0x2b9)&&this[_0x3251d0(0x23f)]();}['_handleNewChangeSets'](_0x289867){var _0x2b3ecc=_0x295461;if(this['_status']===_0x2b3ecc(0x1f5)&&this[_0x2b3ecc(0x2a2)]===_0x289867['data'][_0x2b3ecc(0x279)]){const _0x6a7c63=_0x3f4e24[_0x2b3ecc(0x22e)](_0x289867[_0x2b3ecc(0x2cd)])[_0x2b3ecc(0x1fb)]['reverse']()[_0x2b3ecc(0x262)](_0x20ba95=>_0x20ba95['id']===_0x14f251[_0x2b3ecc(0x2a3)]['id']);if(_0x6a7c63){const _0xd46a45=_0x6a7c63[_0x2b3ecc(0x2ad)]['unitId'],_0x54248d=_0x6a7c63['params'][_0x2b3ecc(0x234)]['id'];setTimeout(()=>{var _0x115aba=_0x2b3ecc;this['_commandService'][_0x115aba(0x223)](_0x14f251[_0x115aba(0x29f)]['id'],{'unitId':_0xd46a45,'subUnitId':_0x54248d},{'fromCollab':!0x0});});}}}[_0x295461(0x25d)](){var _0x3f5e56=_0x295461;this[_0x3f5e56(0x26b)]['next'](_0x3f5e56(0x2b9));const _0x543a35=new Map(),_0x3a1f73=this['_commandDisposable']=new _0x4f60a5[(_0x3f5e56(0x23c))]();_0x3a1f73[_0x3f5e56(0x201)](_0x4f60a5[_0x3f5e56(0x27d)](()=>{var _0x3abd65=_0x3f5e56;_0x543a35[_0x3abd65(0x22c)](_0x3a4b04=>_0x3a4b04[_0x3abd65(0x212)]()),_0x543a35[_0x3abd65(0x2dd)]();})),_0x3a1f73[_0x3f5e56(0x201)](this['_commandService'][_0x3f5e56(0x2be)](_0x2f679d=>{var _0x59b4a7=_0x3f5e56,_0xdea03b;if(_0x2f679d[_0x59b4a7(0x22f)]!==_0x4f60a5[_0x59b4a7(0x2a4)][_0x59b4a7(0x2df)]||!this[_0x59b4a7(0x2cc)][_0x59b4a7(0x1ff)](_0x2f679d['id']))return;const {id:_0xf1635d}=_0x2f679d;let _0x26ed35;_0x543a35[_0x59b4a7(0x283)](_0xf1635d)?_0x26ed35=_0x543a35[_0x59b4a7(0x243)](_0xf1635d):(_0x26ed35=new _0x46d80b[(_0x59b4a7(0x2b6))](),_0x543a35[_0x59b4a7(0x211)](_0xf1635d,_0x26ed35),_0x26ed35['pipe'](_0x6b08a0['throttleTime']((_0xdea03b=this['_configService']['getConfig'](_0x5a2723))!=null?_0xdea03b:_0x3340eb,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59b4a7(0x2ca)](_0x1ec88b=>{var _0x2e7b75=_0x59b4a7;this[_0x2e7b75(0x225)]['send']({'eventID':_0x3f4e24['CollaborationEvent'][_0x2e7b75(0x227)],'data':{'unitID':this[_0x2e7b75(0x2a7)],'operations':{[_0x1ec88b['id']]:{'id':_0x1ec88b['id'],'params':JSON[_0x2e7b75(0x1f3)](_0x1ec88b[_0x2e7b75(0x2ad)])}}}},this['_unitID']);})),_0x26ed35['next'](_0x2f679d);})),this[_0x3f5e56(0x2cc)]['getInitialStates'](this[_0x3f5e56(0x2a7)])[_0x3f5e56(0x22c)](_0x52475a=>this[_0x3f5e56(0x225)][_0x3f5e56(0x267)]({'eventID':_0x3f4e24[_0x3f5e56(0x2d7)][_0x3f5e56(0x227)],'data':{'unitID':this[_0x3f5e56(0x2a7)],'operations':{[_0x52475a['id']]:{'id':_0x52475a['id'],'params':JSON[_0x3f5e56(0x1f3)](_0x52475a[_0x3f5e56(0x2ad)])}}}},this[_0x3f5e56(0x2a7)]));}[_0x295461(0x265)](){var _0x20a2cf=_0x295461,_0x5e1219;this[_0x20a2cf(0x26b)][_0x20a2cf(0x248)](_0x20a2cf(0x224)),(_0x5e1219=this['_commandDisposable'])==null||_0x5e1219[_0x20a2cf(0x1f8)](),this['_commandDisposable']=null;}[_0x295461(0x2af)](){var _0x483020=_0x295461,_0x2fcf69;(_0x2fcf69=this['_commandDisposable'])==null||_0x2fcf69[_0x483020(0x1f8)](),this[_0x483020(0x26b)][_0x483020(0x248)]('following');}[_0x295461(0x23f)](){var _0x18fa29=_0x295461,_0x494c5a;this[_0x18fa29(0x26b)][_0x18fa29(0x248)](_0x18fa29(0x224)),(_0x494c5a=this[_0x18fa29(0x289)])==null||_0x494c5a[_0x18fa29(0x1f8)](),this[_0x18fa29(0x289)]=null;}[_0x295461(0x21c)](){var _0x2aafbd=_0x295461,_0x5ec715;this['_status$'][_0x2aafbd(0x248)](_0x2aafbd(0x270)),(_0x5ec715=this[_0x2aafbd(0x289)])==null||_0x5ec715['dispose']();}[_0x295461(0x293)](_0xe70498){var _0x483a4c=_0x295461;if([_0x483a4c(0x2b9),'not-following',_0x483a4c(0x25b)]['includes'](this[_0x483a4c(0x297)])||!_0xe70498[_0x483a4c(0x2cd)]['presenter']||_0xe70498[_0x483a4c(0x2cd)][_0x483a4c(0x1f9)]===this[_0x483a4c(0x225)]['getMemberID']())return;this[_0x483a4c(0x297)]===_0x483a4c(0x224)&&this[_0x483a4c(0x2af)]();const _0xad2d15=_0xe70498[_0x483a4c(0x2cd)][_0x483a4c(0x247)];Object[_0x483a4c(0x288)](_0xad2d15)[_0x483a4c(0x22c)](_0x23bca2=>{var _0x521973=_0x483a4c;this['_commandService']['executeCommand'](_0x23bca2['id'],_0x23bca2[_0x521973(0x2ad)]?JSON[_0x521973(0x281)](_0x23bca2['params']):null,{'fromCollab':!0x0});});}[_0x295461(0x2a9)](){var _0x5003fb=_0x295461,_0x5323ac;this[_0x5003fb(0x26b)][_0x5003fb(0x248)](_0x5003fb(0x25b)),(_0x5323ac=this[_0x5003fb(0x289)])==null||_0x5323ac[_0x5003fb(0x1f8)]();}['_handleOnline'](){var _0x519a5d=_0x295461;this[_0x519a5d(0x26b)][_0x519a5d(0x248)](_0x519a5d(0x224)),this[_0x519a5d(0x21e)]();}},_0x242532[_0x295461(0x277)]=_0x3be775([_0x11e0fa(0x2,_0x4f60a5[_0x295461(0x1fd)]),_0x11e0fa(0x3,_0x4f60a5[_0x295461(0x2ac)](_0x48a49f)),_0x11e0fa(0x4,_0x4f60a5['ICommandService'])],_0x242532[_0x295461(0x277)]);function _0x23bd4f(){var _0x5e2a94=_0x295461;const _0x548293=_0x3d0555['useDependency'](_0x242532[_0x5e2a94(0x242)]),_0x121fc1=_0x3d0555['useDependency'](_0x4f60a5['IUniverInstanceService']),_0x147185=_0x3d0555[_0x5e2a94(0x207)](()=>_0x121fc1[_0x5e2a94(0x24b)](_0x4f60a5[_0x5e2a94(0x278)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x9885a4,_0x5dd11f]=_0x73a25b[_0x5e2a94(0x263)](null),[_0x5671fb,_0x476ae5]=_0x73a25b[_0x5e2a94(0x263)](_0x50a86b['IDLE']),_0x1e3c8f=_0x73a25b['useRef'](null);return _0x73a25b[_0x5e2a94(0x22b)](()=>(_0x147185&&_0x548293[_0x5e2a94(0x228)](_0x147185[_0x5e2a94(0x219)]())['then'](_0x4e600c=>{var _0x3ff55a=_0x5e2a94;_0x5dd11f(_0x4e600c),_0x1e3c8f[_0x3ff55a(0x256)]=_0x4e600c[_0x3ff55a(0x239)]['subscribe'](_0x18d3ad=>{_0x476ae5(_0x18d3ad);});}),()=>{var _0x3cff52=_0x5e2a94,_0x15c054;(_0x15c054=_0x1e3c8f[_0x3cff52(0x256)])==null||_0x15c054[_0x3cff52(0x2c9)](),_0x1e3c8f[_0x3cff52(0x256)]=null;}),[_0x147185,_0x548293]),_0x9885a4?_0x41cae8[_0x5e2a94(0x2c6)](_0x4f0891[_0x5e2a94(0x238)],{'align':_0x5e2a94(0x244),'disabled':_0x5671fb===_0x50a86b[_0x5e2a94(0x221)],'className':_0x5e2a94(0x20a),'overlay':_0x41cae8[_0x5e2a94(0x2c6)](_0x3054f4,{'status':_0x5671fb,'coordinator':_0x9885a4}),'children':_0x41cae8['jsx'](_0x5e2a94(0x21d),{'className':_0x4f0891[_0x5e2a94(0x213)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x5671fb===_0x50a86b[_0x5e2a94(0x221)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5671fb!==_0x50a86b['OFFLINE']}),'type':'button','children':_0x41cae8[_0x5e2a94(0x2c6)](_0x473845,{'className':'univer-size-4'})})}):null;}function _0x3054f4(_0x311a86){var _0x15e116=_0x295461;const {status:_0x13c1ee,coordinator:_0x333be3}=_0x311a86;switch(_0x13c1ee){case _0x50a86b[_0x15e116(0x27a)]:return _0x41cae8[_0x15e116(0x2c6)](_0x32e631,{'coordinator':_0x333be3});case _0x50a86b['FOLLOWING']:return _0x41cae8['jsx'](_0x4f2235,{'coordinator':_0x333be3});case _0x50a86b['NOT_FOLLOWING']:return _0x41cae8[_0x15e116(0x2c6)](_0x30f7ed,{'coordinator':_0x333be3});case _0x50a86b['OFFLINE']:return _0x41cae8[_0x15e116(0x2c6)](_0x4d4e75,{});case _0x50a86b['PRESENTING']:return _0x41cae8[_0x15e116(0x2c6)](_0x26faea,{'coordinator':_0x333be3});default:return null;}}function _0x32e631(_0x9b248f){var _0x8e8bb4=_0x295461;const {coordinator:_0x48ca21}=_0x9b248f;return _0x41cae8[_0x8e8bb4(0x23d)](_0x41cae8['Fragment'],{'children':[_0x41cae8[_0x8e8bb4(0x2c6)](_0x8e8bb4(0x2c3),{'className':_0x8e8bb4(0x282),'children':_0x8e8bb4(0x268)}),_0x41cae8[_0x8e8bb4(0x2c6)](_0x4f0891[_0x8e8bb4(0x2c1)],{'onClick':()=>_0x48ca21[_0x8e8bb4(0x276)](),'children':_0x8e8bb4(0x2b1)})]});}function _0x4f2235(_0x23bcfd){var _0x327510=_0x295461;const {coordinator:_0x224a06}=_0x23bcfd;return _0x41cae8[_0x327510(0x23d)](_0x41cae8['Fragment'],{'children':[_0x41cae8[_0x327510(0x2c6)](_0x327510(0x2c3),{'className':_0x327510(0x282),'children':_0x327510(0x28a)}),_0x41cae8['jsx'](_0x4f0891[_0x327510(0x2c1)],{'onClick':()=>_0x224a06[_0x327510(0x206)](),'children':'Stop\x20following'})]});}function _0x30f7ed(_0x49a228){var _0x598dfa=_0x295461;const {coordinator:_0x1176ce}=_0x49a228;return _0x41cae8['jsxs'](_0x41cae8[_0x598dfa(0x292)],{'children':[_0x41cae8[_0x598dfa(0x2c6)](_0x598dfa(0x2c3),{'className':_0x598dfa(0x282),'children':_0x598dfa(0x218)}),_0x41cae8[_0x598dfa(0x2c6)](_0x4f0891['Button'],{'variant':_0x598dfa(0x25e),'onClick':()=>_0x1176ce[_0x598dfa(0x2b5)](),'children':_0x598dfa(0x273)})]});}function _0x26faea(_0x873243){var _0x5a3c1b=_0x295461;const {coordinator:_0x27da1d}=_0x873243;return _0x41cae8[_0x5a3c1b(0x23d)](_0x41cae8['Fragment'],{'children':[_0x41cae8[_0x5a3c1b(0x2c6)](_0x5a3c1b(0x2c3),{'className':_0x5a3c1b(0x282),'children':_0x5a3c1b(0x20f)}),_0x41cae8['jsx'](_0x4f0891[_0x5a3c1b(0x2c1)],{'variant':_0x5a3c1b(0x21f),'onClick':()=>_0x27da1d['stopPresenting'](),'children':_0x5a3c1b(0x22d)})]});}function _0x4d4e75(){var _0x38c9ed=_0x295461;return _0x41cae8['jsx'](_0x41cae8[_0x38c9ed(0x292)],{'children':'You\x27are\x20offline.'});}var _0x4a6cbb=Object['getOwnPropertyDescriptor'],_0x4828a6=(_0x3c5556,_0x4e6bcf,_0x279989,_0x3cd57e)=>{var _0x129e97=_0x295461;for(var _0xe7208e=_0x3cd57e>0x1?void 0x0:_0x3cd57e?_0x4a6cbb(_0x4e6bcf,_0x279989):_0x4e6bcf,_0x3cf3be=_0x3c5556[_0x129e97(0x2bd)]-0x1,_0x337112;_0x3cf3be>=0x0;_0x3cf3be--)(_0x337112=_0x3c5556[_0x3cf3be])&&(_0xe7208e=_0x337112(_0xe7208e)||_0xe7208e);return _0xe7208e;},_0x2982f5=(_0x3c27c6,_0xabd7f)=>(_0x70f9ff,_0x1198a6)=>_0xabd7f(_0x70f9ff,_0x1198a6,_0x3c27c6);_0x242532[_0x295461(0x20d)]=class extends _0x4f60a5[_0x295461(0x2de)]{constructor(_0x2e5578,_0x329f56){var _0x12c89f=_0x295461;super(),this['_injector']=_0x2e5578,this['_uiPartsService']=_0x329f56,this[_0x12c89f(0x269)]();}[_0x295461(0x269)](){var _0x3d936f=_0x295461;this['disposeWithMe'](this[_0x3d936f(0x28f)][_0x3d936f(0x2b2)](_0x3d0555[_0x3d936f(0x233)][_0x3d936f(0x287)],()=>_0x3d0555['connectInjector'](_0x23bd4f,this[_0x3d936f(0x261)])));}},_0x242532[_0x295461(0x20d)]=_0x4828a6([_0x2982f5(0x0,_0x4f60a5['Inject'](_0x4f60a5[_0x295461(0x1f2)])),_0x2982f5(0x1,_0x3d0555[_0x295461(0x285)])],_0x242532[_0x295461(0x20d)]);var _0x277669=Object[_0x295461(0x298)],_0x2757c0=Object['getOwnPropertyDescriptor'],_0x30d7fd=(_0x224204,_0x1f6b72,_0x3db2fc)=>_0x1f6b72 in _0x224204?_0x277669(_0x224204,_0x1f6b72,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3db2fc}):_0x224204[_0x1f6b72]=_0x3db2fc,_0x4c94fb=(_0x3e07aa,_0x3c4d64,_0x2d599a,_0x5e3383)=>{var _0x1a1681=_0x295461;for(var _0x3ddf9f=_0x5e3383>0x1?void 0x0:_0x5e3383?_0x2757c0(_0x3c4d64,_0x2d599a):_0x3c4d64,_0x16ff01=_0x3e07aa[_0x1a1681(0x2bd)]-0x1,_0x250462;_0x16ff01>=0x0;_0x16ff01--)(_0x250462=_0x3e07aa[_0x16ff01])&&(_0x3ddf9f=_0x250462(_0x3ddf9f)||_0x3ddf9f);return _0x3ddf9f;},_0x472231=(_0x9eee71,_0x26963f)=>(_0x3348f5,_0x17e221)=>_0x26963f(_0x3348f5,_0x17e221,_0x9eee71),_0x5e5255=(_0x48df10,_0x2f43fd,_0x53b893)=>_0x30d7fd(_0x48df10,typeof _0x2f43fd!=_0x295461(0x275)?_0x2f43fd+'':_0x2f43fd,_0x53b893);const _0x55a0ed=_0x295461(0x264);_0x242532[_0x295461(0x214)]=class extends _0x4f60a5[_0x295461(0x20b)]{constructor(_0x121f00=_0x4b1876,_0x5269b8,_0x3bd434){var _0x51682b=_0x295461;super(),this['_config']=_0x121f00,this[_0x51682b(0x261)]=_0x5269b8,this[_0x51682b(0x2b0)]=_0x3bd434;const {..._0x543ccd}=_0x4f60a5[_0x51682b(0x231)]({},_0x4b1876,this[_0x51682b(0x271)]);this['_configService']['setConfig'](_0x56dab1,_0x543ccd);}[_0x295461(0x258)](){var _0x38cb1d=_0x295461;_0x4f60a5[_0x38cb1d(0x2cb)](this[_0x38cb1d(0x261)],_0x4f60a5['mergeOverrideWithDependencies']([[_0x48a49f],[_0x242532[_0x38cb1d(0x242)]],[_0x3edfcf],[_0x242532[_0x38cb1d(0x20d)]]],this[_0x38cb1d(0x271)][_0x38cb1d(0x2dc)])),_0x4f60a5[_0x38cb1d(0x29d)](this[_0x38cb1d(0x261)],[[_0x3edfcf]]);}[_0x295461(0x241)](){var _0x2aef6a=_0x295461;_0x4f60a5[_0x2aef6a(0x29d)](this[_0x2aef6a(0x261)],[[_0x242532[_0x2aef6a(0x20d)]]]);}},_0x5e5255(_0x242532[_0x295461(0x214)],'type',_0x4f60a5[_0x295461(0x278)][_0x295461(0x24a)]),_0x5e5255(_0x242532['UniverLiveSharePlugin'],_0x295461(0x1f6),_0x55a0ed),_0x242532[_0x295461(0x214)]=_0x4c94fb([_0x4f60a5[_0x295461(0x2d9)](_0xfdfe59[_0x295461(0x23b)]),_0x472231(0x1,_0x4f60a5[_0x295461(0x2ac)](_0x4f60a5[_0x295461(0x1f2)])),_0x472231(0x2,_0x4f60a5['IConfigService'])],_0x242532[_0x295461(0x214)]),_0x242532[_0x295461(0x28b)]=_0x23bd4f,_0x242532[_0x295461(0x2b8)]=_0x48a49f,_0x242532[_0x295461(0x2aa)]=_0x50a86b,Object['defineProperty'](_0x242532,Symbol['toStringTag'],{'value':_0x295461(0x2d5)});}));function _0x3c5e(){var _0xfac59a=['not-following','_config','assign','Start\x20following','3152520xRsfcn','symbol','tryStartPresenting','LiveShareCoordinator','UniverInstanceType','memberID','IDLE','amd','335784MWRDAl','toDisposable','includes','UniverProCollaborationClient','7kZPlwT','parse','univer-mb-3\x20univer-w-full\x20univer-text-sm','has','UniverProLiveShare','IUIPartsService','sessionStatus$','HEADER_MENU','values','_commandDisposable','You\x27re\x20following\x20the\x20presenter','LiveShare','defs','_handleTerminate','React','_uiPartsService','evenodd','defIds','Fragment','_handleOperation','_handleNewChangeSets','_reporters','getOwnPropertyDescriptor','_status','defineProperty','_collabSessionService','0\x200\x2017\x2017','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','FOLLOWING','touchDependencies','UNIVER_SHEET','SetWorksheetActiveOperation','exports','useRef','_presenter','InsertSheetMutation','CommandType','UniverSheets','@univerjs-pro/collaboration','_unitID','prototype','_handleOffline','LiveShareStatus','tag','Inject','params','idSuffix','_startFollowing','_configService','Start','registerComponent','_sharedOperations','LIVESHARE_REQUEST_HOST','startFollowing','Subject','requireSession','LiveShareService','presenting','fill','getTypeOfUnitAdded$','_univerInstanceService','length','onCommandExecuted','UniverUi','1439400JZgUWo','Button','getTypeOfUnitDisposed$','div','http://www.w3.org/2000/svg','function','jsx','attrs','entries','unsubscribe','subscribe','registerDependencies','_liveShareService','data','object','call','use','asObservable','string','hasOwnProperty','LIVESHARE_NEW_HOST','Module','NOT_FOLLOWING','CollaborationEvent','@univerjs/sheets','DependentOn','substring','extend','override','clear','Disposable','OPERATION','ONLINE','CollaborationSessionService','Injector','stringify','forwardRef','following','pluginName','@univerjs-pro/collaboration-client','dispose','presenter','url(#$1','mutations','SessionStatus','IConfigService','map','shouldShareOperation','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','add','delete','takeUntil','LiveShareIcon','@univerjs/sheets-ui','stopFollowing','useObservable','disposeWithMe','@univerjs/core','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','Plugin','RxDisposable','DesktopLiveShareController','children','You\x27re\x20presenting\x20the\x20document','UniverSheetsUi','set','complete','clsx','UniverLiveSharePlugin','indexOf','pipe','1em','You\x27re\x20not\x20following\x20the\x20presenter','getUnitId','rxjs','react/jsx-runtime','_stopFollowing','button','_fetchOperations','default','createElement','OFFLINE','displayName','executeCommand','idle','_collabSession','BehaviorSubject','LIVESHARE_OPERATION','getLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','_entities','useEffect','forEach','Stop\x20presenting','parseProtocolChangeset','type','icon','merge','SetZoomRatioOperation','BuiltInUIPart','sheet','concat','mask','currentColor','Dropdown','status$','trim','UniverCollaborationClientPlugin','DisposableCollection','jsxs','1217036YoZTGL','_beIdle','getOwnPropertySymbols','onRendered','LiveShareController','get','end','init','path','operations','next','xlink:href','UNIVER_UNKNOWN','getCurrentTypeOfUnit$','replace','getValue','getInitialStates','dispose$','_init','912558gcVyRS','apply','operators','className','832578VWVyGB','current','_handleNewHost','onStarting','react','colorChannel1','offline','_startLiveShareCoordinator','_startPresenting','text','PRESENTING','registerSharedOperation','_injector','find','useState','UNIVER_LIVE_SHARE_PLUGIN','_stopPresenting','LIVESHARE_TERMINATE','send','Present\x20this\x20document','_mountLiveShare','rxjs/operators','_status$','@univerjs/design','UniverIcon','44674jZTqtB','live-share-icon'];_0x3c5e=function(){return _0xfac59a;};return _0x3c5e();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.2-nightly.
|
|
3
|
+
"version": "0.8.2-nightly.202506221606",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.4",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.8.2-nightly.
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.8.2-nightly.
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/sheets-ui": "0.8.2-nightly.
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.8.2-nightly.202506221606",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.8.2-nightly.202506221606",
|
|
52
|
+
"@univerjs/design": "0.8.2-nightly.202506221606",
|
|
53
|
+
"@univerjs/core": "0.8.2-nightly.202506221606",
|
|
54
|
+
"@univerjs/sheets": "0.8.2-nightly.202506221606",
|
|
55
|
+
"@univerjs/sheets-ui": "0.8.2-nightly.202506221606",
|
|
56
|
+
"@univerjs/ui": "0.8.2-nightly.202506221606"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"tailwindcss": "^3.4.17",
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
|
-
"vitest": "^3.2.
|
|
65
|
+
"vitest": "^3.2.4",
|
|
66
66
|
"@univerjs-infra/shared": "0.8.2",
|
|
67
67
|
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|