@univerjs-pro/live-share 0.8.0-nightly.202506031608 → 0.8.0-nightly.202506041607

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x1150a5=_0x16eb;(function(_0x2a033f,_0xe7b784){var _0x5685bf=_0x16eb,_0x4c9a57=_0x2a033f();while(!![]){try{var _0x9336d5=parseInt(_0x5685bf(0x16a))/0x1+-parseInt(_0x5685bf(0x14a))/0x2+parseInt(_0x5685bf(0xbb))/0x3+-parseInt(_0x5685bf(0x173))/0x4+-parseInt(_0x5685bf(0xce))/0x5+parseInt(_0x5685bf(0xe9))/0x6*(parseInt(_0x5685bf(0xbd))/0x7)+parseInt(_0x5685bf(0x187))/0x8;if(_0x9336d5===_0xe7b784)break;else _0x4c9a57['push'](_0x4c9a57['shift']());}catch(_0x331b75){_0x4c9a57['push'](_0x4c9a57['shift']());}}}(_0x2414,0x730ba));var U=Object[_0x1150a5(0x109)],F=(_0x27c530,_0x5d26fd,_0x116fc2)=>_0x5d26fd in _0x27c530?U(_0x27c530,_0x5d26fd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x116fc2}):_0x27c530[_0x5d26fd]=_0x116fc2,v=(_0xb22f97,_0x386f4b,_0x2e72f0)=>F(_0xb22f97,typeof _0x386f4b!='symbol'?_0x386f4b+'':_0x386f4b,_0x2e72f0);Object[_0x1150a5(0x109)](exports,Symbol[_0x1150a5(0x18f)],{'value':_0x1150a5(0x17b)});const m=require(_0x1150a5(0x18b)),o=require(_0x1150a5(0x115)),C=require(_0x1150a5(0x19b)),w=require(_0x1150a5(0x174)),p=require(_0x1150a5(0xd7)),l=require('react/jsx-runtime'),g=require(_0x1150a5(0x128)),f=require(_0x1150a5(0x120)),_=require(_0x1150a5(0x161)),D=require(_0x1150a5(0x111)),b=require(_0x1150a5(0x160)),$=_0x1150a5(0x140),x={};class O extends o[_0x1150a5(0xaf)]{constructor(){var _0x38ea2c=_0x1150a5;super(...arguments),v(this,_0x38ea2c(0xf0),new Set()),v(this,_0x38ea2c(0xb5),new Set());}[_0x1150a5(0x103)](_0x18f929){var _0x579847=_0x1150a5;return this['_sharedOperations']['add'](_0x18f929),o[_0x579847(0x102)](()=>this[_0x579847(0xf0)]['delete'](_0x18f929));}['registerInitialStateReporter'](_0xac216f){var _0x512ec9=_0x1150a5;return this[_0x512ec9(0xb5)]['add'](_0xac216f),o[_0x512ec9(0x102)](()=>this['_reporters']['delete'](_0xac216f));}[_0x1150a5(0xe3)](_0x761a6e){var _0x5a75e1=_0x1150a5;return this[_0x5a75e1(0xf0)][_0x5a75e1(0x16c)](_0x761a6e);}[_0x1150a5(0xe2)](_0x37cc5d){var _0x4eae34=_0x1150a5;return Array[_0x4eae34(0x10b)](this[_0x4eae34(0xb5)])[_0x4eae34(0x182)](_0x284aa0=>_0x284aa0(_0x37cc5d));}}var H=Object[_0x1150a5(0xf4)],V=(_0xa0c866,_0x3fd343,_0xc1cae1,_0x71386f)=>{for(var _0x4ac387=_0x71386f>0x1?void 0x0:_0x71386f?H(_0x3fd343,_0xc1cae1):_0x3fd343,_0x2540e9=_0xa0c866['length']-0x1,_0x112a28;_0x2540e9>=0x0;_0x2540e9--)(_0x112a28=_0xa0c866[_0x2540e9])&&(_0x4ac387=_0x112a28(_0x4ac387)||_0x4ac387);return _0x4ac387;},k=(_0x4435bb,_0x3a8c41)=>(_0x23b32c,_0x4dd000)=>_0x3a8c41(_0x23b32c,_0x4dd000,_0x4435bb);let E=class extends o['Disposable']{constructor(_0x3c0a41){var _0xedeadd=_0x1150a5;super(),this['_liveShareService']=_0x3c0a41,this[_0xedeadd(0xe1)]();}[_0x1150a5(0xe1)](){var _0x484213=_0x1150a5;[w[_0x484213(0xc4)]['id'],w['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x484213(0x169)](_0x8574ad=>{var _0x2c46f5=_0x484213;this[_0x2c46f5(0x181)](this[_0x2c46f5(0x158)][_0x2c46f5(0x103)](_0x8574ad));});}};function _0x16eb(_0x7e9eb8,_0x4e45df){var _0x241458=_0x2414();return _0x16eb=function(_0x16eb70,_0x3ceff8){_0x16eb70=_0x16eb70-0xae;var _0x1f4eab=_0x241458[_0x16eb70];return _0x1f4eab;},_0x16eb(_0x7e9eb8,_0x4e45df);}function _0x2414(){var _0x3406e2=['unitId','rxjs','_handleTerminate','stopPresenting','LiveShareCoordinator','@univerjs/core','_startPresenting','pipe','presenter','1em','colorChannel1','toString','getMemberID','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','SessionStatus','offline','react','mutations','set','unsubscribe','none','pluginName','_stopPresenting','CollaborationSessionService','@univerjs/design','DependentOn','OFFLINE','defIds','LIVESHARE_TERMINATE','_status','useEffect','IUIPartsService','not-following','RxDisposable','includes','univer-size-4','useState','className','useDependency','then','fill','_stopFollowing','takeUntil','Present\x20this\x20document','LIVESHARE_OPERATION','UniverLiveSharePlugin','currentColor','_uiPartsService','live-share.config','length','reverse','http://www.w3.org/2000/svg','createElement','idle','Dropdown','univer-w-full\x20univer-mb-3\x20univer-text-sm','SAME_OPERATION_SHARE_INTERVAL','get','841094KBvxsB','values','onStarting','registerComponent','FOLLOWING','button','_handleNewChangeSets','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','_presenter','concat','_config','add','_status$','getConfig','_liveShareService','NOT_FOLLOWING','event$','getTypeOfUnitAdded$','createInstance','getCurrentTypeOfUnit$','UniverCollaborationClientPlugin','InsertSheetMutation','rxjs/operators','@univerjs-pro/collaboration','current','sheet','ICommandService','getLiveShareCoordinator','UNIVER_LIVE_SHARE_PLUGIN','_configService','Stop\x20following','forEach','597297SMJtaq','xlink:href','has','connectInjector','_entities','hasOwnProperty','indexOf','LiveShare','DesktopLiveShareController','2637536qmGipb','@univerjs/sheets-ui','You\x27re\x20following\x20the\x20presenter','find','jsx','_beIdle','useObservable','defs','Module','dispose$','OPERATION','path','init','send','disposeWithMe','map','HEADER_MENU','sessionStatus$','getOwnPropertySymbols','throttleTime','3398232TyrmzG','call','following','displayName','@univerjs-pro/collaboration-client','symbol','tag','BuiltInUIPart','toStringTag','onRendered','entries','tryStartPresenting','mask','Fragment','0\x200\x2017\x2017','setConfig','use','ONLINE','_handleOperation','getTypeOfUnitDisposed$','@univerjs/sheets','IUniverInstanceService','Disposable','random','Plugin','next','requireSession','default','_reporters','mergeOverrideWithDependencies','children','stringify','Start\x20following','UNIVER_SHEET','2276655EsvsTY','end','2338jKtNOw','You\x27re\x20not\x20following\x20the\x20presenter','prototype','complete','LiveShareController','_handleNewHost','Injector','SetZoomRatioOperation','evenodd','stopFollowing','SetWorksheetActiveOperation','replace','forwardRef','_unitID','jsxs','Button','_mountLiveShare','1593240haDMFn','url(#$1','icon','idSuffix','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','data','IConfigService','function','UniverInstanceType','@univerjs/ui','LIVESHARE_REQUEST_HOST','_injector','override','NEW_CHANGESETS','operations','CommandType','PRESENTING','LiveShareService','executeCommand','_init','getInitialStates','shouldShareOperation','LIVESHARE_FETCH_OPERATIONS','merge','params','_startLiveShareCoordinator','assign','1596kKBMtJ','UniverIcon','extend','attrs','parseProtocolChangeset','_fetchOperations','trim','_sharedOperations','getUnitId','_commandDisposable','type','getOwnPropertyDescriptor','IDLE','Start','_univerInstanceService','Inject','startFollowing','div','_commandService','_collabSessionService','propertyIsEnumerable','_startFollowing','string','CollaborationEvent','_handleOnline','toDisposable','registerSharedOperation','status$','_handleOffline','presenting','subscribe','dispose','defineProperty','Subject','from','svg','apply','_collabSession','UNIVER_UNKNOWN'];_0x2414=function(){return _0x3406e2;};return _0x2414();}E=V([k(0x0,o[_0x1150a5(0xf8)](O))],E);var u=function(){var _0x2f4a9f=_0x1150a5;return u=Object[_0x2f4a9f(0xe8)]||function(_0x119344){var _0x15dae3=_0x2f4a9f;for(var _0x574bed,_0x4710b9=0x1,_0x79b362=arguments[_0x15dae3(0x141)];_0x4710b9<_0x79b362;_0x4710b9++){_0x574bed=arguments[_0x4710b9];for(var _0x4fb560 in _0x574bed)Object[_0x15dae3(0xbf)][_0x15dae3(0x16f)][_0x15dae3(0x188)](_0x574bed,_0x4fb560)&&(_0x119344[_0x4fb560]=_0x574bed[_0x4fb560]);}return _0x119344;},u[_0x2f4a9f(0x10d)](this,arguments);},M=function(_0xb59111,_0x1b6d36){var _0x1eafd9=_0x1150a5,_0x30eedc={};for(var _0x2c5075 in _0xb59111)Object[_0x1eafd9(0xbf)][_0x1eafd9(0x16f)][_0x1eafd9(0x188)](_0xb59111,_0x2c5075)&&_0x1b6d36[_0x1eafd9(0x170)](_0x2c5075)<0x0&&(_0x30eedc[_0x2c5075]=_0xb59111[_0x2c5075]);if(_0xb59111!=null&&typeof Object[_0x1eafd9(0x185)]==_0x1eafd9(0xd5)){for(var _0x14a865=0x0,_0x2c5075=Object[_0x1eafd9(0x185)](_0xb59111);_0x14a865<_0x2c5075[_0x1eafd9(0x141)];_0x14a865++)_0x1b6d36[_0x1eafd9(0x170)](_0x2c5075[_0x14a865])<0x0&&Object[_0x1eafd9(0xbf)][_0x1eafd9(0xfd)][_0x1eafd9(0x188)](_0xb59111,_0x2c5075[_0x14a865])&&(_0x30eedc[_0x2c5075[_0x14a865]]=_0xb59111[_0x2c5075[_0x14a865]]);}return _0x30eedc;},j=f[_0x1150a5(0xc9)](function(_0xc27596,_0x47bb85){var _0x187f59=_0x1150a5,_0x83ef2d=_0xc27596[_0x187f59(0xd0)],_0x194905=_0xc27596['id'],_0x4c9acb=_0xc27596[_0x187f59(0x135)],_0x445b31=_0xc27596[_0x187f59(0xeb)],_0x4b40eb=M(_0xc27596,[_0x187f59(0xd0),'id',_0x187f59(0x135),_0x187f59(0xeb)]),_0x393bdb='univerjs-icon\x20univerjs-icon-'['concat'](_0x194905,'\x20')[_0x187f59(0x153)](_0x4c9acb||'')[_0x187f59(0xef)](),_0x1fd222=f['useRef']('_'[_0x187f59(0x153)](G()));return y(_0x83ef2d,''[_0x187f59(0x153)](_0x194905),{'defIds':_0x83ef2d[_0x187f59(0x12b)],'idSuffix':_0x1fd222[_0x187f59(0x162)]},u({'ref':_0x47bb85,'className':_0x393bdb},_0x4b40eb),_0x445b31);});function y(_0x143097,_0x532a51,_0x5a3d7b,_0x227cfc,_0x3ff7fa){var _0x3c460e=_0x1150a5;return f[_0x3c460e(0x144)](_0x143097[_0x3c460e(0x18d)],u(u({'key':_0x532a51},q(_0x143097,_0x5a3d7b,_0x3ff7fa)),_0x227cfc),(W(_0x143097,_0x5a3d7b)[_0x3c460e(0xb7)]||[])[_0x3c460e(0x182)](function(_0x260747,_0xd2294b){var _0x434dd9=_0x3c460e;return y(_0x260747,''['concat'](_0x532a51,'-')[_0x434dd9(0x153)](_0x143097[_0x434dd9(0x18d)],'-')[_0x434dd9(0x153)](_0xd2294b),_0x5a3d7b,void 0x0,_0x3ff7fa);}));}function q(_0x271dde,_0x4a1166,_0x1b1f18){var _0x588dc9=_0x1150a5,_0x188e71=u({},_0x271dde['attrs']);_0x1b1f18!=null&&_0x1b1f18[_0x588dc9(0x11a)]&&_0x188e71[_0x588dc9(0x138)]==='colorChannel1'&&(_0x188e71[_0x588dc9(0x138)]=_0x1b1f18[_0x588dc9(0x11a)]),_0x271dde[_0x588dc9(0x18d)]===_0x588dc9(0x193)&&_0x188e71['id']&&(_0x188e71['id']=_0x188e71['id']+_0x4a1166[_0x588dc9(0xd1)]),Object['entries'](_0x188e71)[_0x588dc9(0x169)](function(_0x226116){var _0x427fab=_0x588dc9,_0x589eb8=_0x226116[0x0],_0xff6276=_0x226116[0x1];_0x589eb8===_0x427fab(0x193)&&typeof _0xff6276==_0x427fab(0xff)&&(_0x188e71[_0x589eb8]=_0xff6276[_0x427fab(0xc8)](/url\(#(.*)\)/,_0x427fab(0xcf)[_0x427fab(0x153)](_0x4a1166[_0x427fab(0xd1)],')')));});var _0x21f36e=_0x4a1166['defIds'];return!_0x21f36e||_0x21f36e[_0x588dc9(0x141)]===0x0||(_0x271dde[_0x588dc9(0x18d)]===_0x588dc9(0x197)&&_0x188e71[_0x588dc9(0x16b)]&&(_0x188e71[_0x588dc9(0x16b)]=_0x188e71[_0x588dc9(0x16b)]+_0x4a1166[_0x588dc9(0xd1)]),Object[_0x588dc9(0x191)](_0x188e71)[_0x588dc9(0x169)](function(_0x34f5aa){var _0x20afd6=_0x588dc9,_0x145e0f=_0x34f5aa[0x0],_0x1fe832=_0x34f5aa[0x1];typeof _0x1fe832=='string'&&(_0x188e71[_0x145e0f]=_0x1fe832[_0x20afd6(0xc8)](/url\(#(.*)\)/,_0x20afd6(0xcf)['concat'](_0x4a1166['idSuffix'],')')));})),_0x188e71;}function W(_0x368db2,_0x586a1a){var _0x1c1e2b=_0x1150a5,_0x11dc93,_0x57bb92=_0x586a1a[_0x1c1e2b(0x12b)];return!_0x57bb92||_0x57bb92['length']===0x0?_0x368db2:_0x368db2[_0x1c1e2b(0x18d)]===_0x1c1e2b(0x17a)&&(!((_0x11dc93=_0x368db2[_0x1c1e2b(0xb7)])===null||_0x11dc93===void 0x0)&&_0x11dc93[_0x1c1e2b(0x141)])?u(u({},_0x368db2),{'children':_0x368db2[_0x1c1e2b(0xb7)][_0x1c1e2b(0x182)](function(_0x351005){var _0x89dc3=_0x1c1e2b;return typeof _0x351005[_0x89dc3(0xec)]['id']==_0x89dc3(0xff)&&_0x57bb92&&_0x57bb92[_0x89dc3(0x132)](_0x351005[_0x89dc3(0xec)]['id'])?u(u({},_0x351005),{'attrs':u(u({},_0x351005[_0x89dc3(0xec)]),{'id':_0x351005[_0x89dc3(0xec)]['id']+_0x586a1a['idSuffix']})}):_0x351005;})}):_0x368db2;}function G(){var _0xaadf55=_0x1150a5;return Math[_0xaadf55(0xb0)]()[_0xaadf55(0x11b)](0x24)['substring'](0x2,0x8);}j[_0x1150a5(0x18a)]=_0x1150a5(0xea);var B={'tag':_0x1150a5(0x10c),'attrs':{'xmlns':_0x1150a5(0x143),'fill':_0x1150a5(0x124),'viewBox':_0x1150a5(0x195),'width':_0x1150a5(0x119),'height':_0x1150a5(0x119)},'children':[{'tag':'path','attrs':{'fill':_0x1150a5(0x13e),'d':_0x1150a5(0x151)}},{'tag':_0x1150a5(0x17e),'attrs':{'fill':_0x1150a5(0x13e),'d':_0x1150a5(0x11d),'fillRule':_0x1150a5(0xc5),'clipRule':'evenodd'}}]},P=f[_0x1150a5(0xc9)](function(_0x42ff6f,_0x5f5bb7){var _0xcf0ea3=_0x1150a5;return f['createElement'](j,Object[_0xcf0ea3(0xe8)]({},_0x42ff6f,{'id':'live-share-icon','ref':_0x5f5bb7,'icon':B}));});P[_0x1150a5(0x18a)]='LiveShareIcon';var Y=Object[_0x1150a5(0xf4)],R=(_0x5d4749,_0x425e28,_0x24231e,_0x4858a8)=>{var _0x38feae=_0x1150a5;for(var _0x1726a1=_0x4858a8>0x1?void 0x0:_0x4858a8?Y(_0x425e28,_0x24231e):_0x425e28,_0x402f5c=_0x5d4749[_0x38feae(0x141)]-0x1,_0x26c982;_0x402f5c>=0x0;_0x402f5c--)(_0x26c982=_0x5d4749[_0x402f5c])&&(_0x1726a1=_0x26c982(_0x1726a1)||_0x1726a1);return _0x1726a1;},S=(_0x2302fb,_0x3e268e)=>(_0x2c3fa0,_0x3e2040)=>_0x3e268e(_0x2c3fa0,_0x3e2040,_0x2302fb);exports[_0x1150a5(0xc1)]=class extends o[_0x1150a5(0x131)]{constructor(_0x36ffb1,_0x5a0447,_0x51662b){var _0x430f03=_0x1150a5;super(),v(this,_0x430f03(0x16e),new Map()),(this[_0x430f03(0xf7)]=_0x36ffb1,this['_injector']=_0x5a0447,this['_collabSessionService']=_0x51662b,this[_0x430f03(0xe1)]());}async[_0x1150a5(0x165)](_0x567fe9){var _0x33e089=_0x1150a5;return this[_0x33e089(0x16e)][_0x33e089(0x16c)](_0x567fe9)||await this[_0x33e089(0xe7)](_0x567fe9),this[_0x33e089(0x16e)][_0x33e089(0x149)](_0x567fe9);}[_0x1150a5(0xe1)](){var _0x56aa93=_0x1150a5;this['_univerInstanceService'][_0x56aa93(0x15b)](o[_0x56aa93(0xd6)][_0x56aa93(0xba)])[_0x56aa93(0x117)](b[_0x56aa93(0x13a)](this[_0x56aa93(0x17c)]))[_0x56aa93(0x107)](async _0x48fd50=>{var _0x3b9ba0=_0x56aa93;const _0x388e26=_0x48fd50[_0x3b9ba0(0xf1)]();this[_0x3b9ba0(0x16e)]['has'](_0x388e26)||this[_0x3b9ba0(0xe7)](_0x388e26);}),this[_0x56aa93(0xf7)][_0x56aa93(0x19a)](o[_0x56aa93(0xd6)]['UNIVER_SHEET'])[_0x56aa93(0x117)](b['takeUntil'](this[_0x56aa93(0x17c)]))[_0x56aa93(0x107)](_0x4f8bf3=>{var _0x506ec0=_0x56aa93;const _0x445b16=_0x4f8bf3['getUnitId'](),_0x58692f=this[_0x506ec0(0x16e)]['get'](_0x445b16);_0x58692f==null||_0x58692f[_0x506ec0(0x108)]();});}async[_0x1150a5(0xe7)](_0x30e785){var _0x4f5e73=_0x1150a5;const _0x3546eb=await this[_0x4f5e73(0xfc)][_0x4f5e73(0xb3)](_0x30e785),_0x2b00dc=this[_0x4f5e73(0xd9)][_0x4f5e73(0x15c)](exports[_0x4f5e73(0x114)],_0x30e785,_0x3546eb);return _0x2b00dc[_0x4f5e73(0x17f)](),this[_0x4f5e73(0x16e)][_0x4f5e73(0x122)](_0x30e785,_0x2b00dc),_0x2b00dc;}},exports['LiveShareController']=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x1150a5(0xf8)](o['Injector'])),S(0x2,o[_0x1150a5(0xf8)](m[_0x1150a5(0x127)]))],exports[_0x1150a5(0xc1)]);var h=(_0x461832=>(_0x461832[_0x1150a5(0x12a)]=_0x1150a5(0x11f),_0x461832[_0x1150a5(0xf5)]=_0x1150a5(0x145),_0x461832[_0x1150a5(0x14e)]='following',_0x461832[_0x1150a5(0x159)]=_0x1150a5(0x130),_0x461832[_0x1150a5(0xde)]=_0x1150a5(0x106),_0x461832))(h||{});const Z=_0x1150a5(0x148),J=0xc8;exports[_0x1150a5(0x114)]=class extends o[_0x1150a5(0x131)]{constructor(_0x3e434f,_0x5ec71a,_0x4f8c3f,_0x3f4e2b,_0x3b6a67){var _0x1256ca=_0x1150a5;super(),v(this,'_status$',new D['BehaviorSubject'](_0x1256ca(0x145))),v(this,_0x1256ca(0x104),this[_0x1256ca(0x156)]['asObservable']()),v(this,_0x1256ca(0xe1),!0x1),v(this,'_commandDisposable',null),v(this,_0x1256ca(0x152),null),(this['_unitID']=_0x3e434f,this[_0x1256ca(0x10e)]=_0x5ec71a,this[_0x1256ca(0x167)]=_0x4f8c3f,this[_0x1256ca(0x158)]=_0x3f4e2b,this['_commandService']=_0x3b6a67);}get[_0x1150a5(0x12d)](){var _0x5edb18=_0x1150a5;return this[_0x5edb18(0x156)]['getValue']();}[_0x1150a5(0x108)](){var _0x31ba6e=_0x1150a5,_0x29ba4e;(_0x29ba4e=this[_0x31ba6e(0xf2)])==null||_0x29ba4e['dispose'](),this[_0x31ba6e(0x156)][_0x31ba6e(0xb2)](_0x31ba6e(0x145)),this['_status$'][_0x31ba6e(0xc0)]();}['init'](){var _0x4d536c=_0x1150a5;this[_0x4d536c(0xe1)]||(this['_init']=!0x0,this['_collabSession'][_0x4d536c(0x184)][_0x4d536c(0x117)](b[_0x4d536c(0x13a)](this[_0x4d536c(0x17c)]))[_0x4d536c(0x107)](_0x38c39a=>{var _0x14e4b2=_0x4d536c;switch(_0x38c39a){case m['SessionStatus'][_0x14e4b2(0x12a)]:this[_0x14e4b2(0x105)]();break;case m[_0x14e4b2(0x11e)][_0x14e4b2(0x198)]:this['_handleOnline']();break;}}),this[_0x4d536c(0x10e)][_0x4d536c(0x15a)][_0x4d536c(0x117)](b[_0x4d536c(0x13a)](this[_0x4d536c(0x17c)]))[_0x4d536c(0x107)](_0x448e3e=>{var _0x146322=_0x4d536c;const {eventID:_0x4a9671}=_0x448e3e;switch(_0x4a9671){case _[_0x146322(0x100)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x448e3e);break;case _[_0x146322(0x100)][_0x146322(0x13c)]:this[_0x146322(0x199)](_0x448e3e);break;case _[_0x146322(0x100)][_0x146322(0x12c)]:this['_handleTerminate']();break;case _[_0x146322(0x100)][_0x146322(0xdb)]:this[_0x146322(0x150)](_0x448e3e);break;}}));}[_0x1150a5(0x192)](){var _0x3693c2=_0x1150a5;this['_collabSession'][_0x3693c2(0x180)]({'eventID':_['CollaborationEvent'][_0x3693c2(0xd8)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x3693c2(0x11c)]()}},this[_0x3693c2(0xca)]);}[_0x1150a5(0x113)](){var _0x41af5d=_0x1150a5;this[_0x41af5d(0x12d)]===_0x41af5d(0x106)&&(this[_0x41af5d(0x156)][_0x41af5d(0xb2)]('idle'),this[_0x41af5d(0x10e)][_0x41af5d(0x180)]({'eventID':_[_0x41af5d(0x100)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x1150a5(0xf9)](){var _0x233ab1=_0x1150a5;this[_0x233ab1(0x12d)]===_0x233ab1(0x130)&&(this[_0x233ab1(0x156)][_0x233ab1(0xb2)]('following'),this[_0x233ab1(0xfe)]());}[_0x1150a5(0xc6)](){var _0x5bba8d=_0x1150a5;this[_0x5bba8d(0x12d)]===_0x5bba8d(0x189)&&this[_0x5bba8d(0x139)]();}[_0x1150a5(0xc2)](_0x586182){var _0x194cd9=_0x1150a5;const {presenter:_0x1ba0fe}=_0x586182[_0x194cd9(0xd3)],_0x3e3578=this[_0x194cd9(0x10e)][_0x194cd9(0x11c)]();this[_0x194cd9(0x152)]=_0x1ba0fe,_0x1ba0fe===_0x3e3578?(this['_stopFollowing'](),this[_0x194cd9(0x116)]()):this[_0x194cd9(0x12d)]!==_0x194cd9(0x130)&&(this[_0x194cd9(0x126)](),this['_startFollowing']());}['_fetchOperations'](){var _0x2c9be9=_0x1150a5;const _0x2ea2f3={'eventID':_[_0x2c9be9(0x100)][_0x2c9be9(0xe4)]};this[_0x2c9be9(0x10e)][_0x2c9be9(0x180)](_0x2ea2f3,this['_unitID']);}[_0x1150a5(0x112)](){var _0x381e75=_0x1150a5;this[_0x381e75(0x152)]=null,this[_0x381e75(0x12d)]!==_0x381e75(0x106)&&this[_0x381e75(0x178)]();}[_0x1150a5(0x150)](_0x4be3c2){var _0x4dc891=_0x1150a5;if(this['_status']===_0x4dc891(0x189)&&this[_0x4dc891(0x152)]===_0x4be3c2[_0x4dc891(0xd3)]['memberID']){const _0x469386=_[_0x4dc891(0xed)](_0x4be3c2[_0x4dc891(0xd3)])[_0x4dc891(0x121)][_0x4dc891(0x142)]()[_0x4dc891(0x176)](_0x14305e=>_0x14305e['id']===C[_0x4dc891(0x15f)]['id']);if(_0x469386){const _0x1f755a=_0x469386['params'][_0x4dc891(0x110)],_0x2f494e=_0x469386[_0x4dc891(0xe6)][_0x4dc891(0x163)]['id'];setTimeout(()=>{var _0x23b85f=_0x4dc891;this[_0x23b85f(0xfb)][_0x23b85f(0xe0)](C[_0x23b85f(0xc7)]['id'],{'unitId':_0x1f755a,'subUnitId':_0x2f494e},{'fromCollab':!0x0});});}}}[_0x1150a5(0x116)](){var _0x46bfbf=_0x1150a5;this[_0x46bfbf(0x156)][_0x46bfbf(0xb2)](_0x46bfbf(0x106));const _0x20984b=new Map(),_0x1fb5b7=this[_0x46bfbf(0xf2)]=new o['DisposableCollection']();_0x1fb5b7[_0x46bfbf(0x155)](o['toDisposable'](()=>{var _0x1a85aa=_0x46bfbf;_0x20984b[_0x1a85aa(0x169)](_0x46a636=>_0x46a636[_0x1a85aa(0xc0)]()),_0x20984b['clear']();})),_0x1fb5b7[_0x46bfbf(0x155)](this['_commandService']['onCommandExecuted'](_0x1e230c=>{var _0x7c3c4f=_0x46bfbf,_0x5a5aa1;if(_0x1e230c['type']!==o[_0x7c3c4f(0xdd)][_0x7c3c4f(0x17d)]||!this[_0x7c3c4f(0x158)][_0x7c3c4f(0xe3)](_0x1e230c['id']))return;const {id:_0x564834}=_0x1e230c;let _0x25e896;_0x20984b[_0x7c3c4f(0x16c)](_0x564834)?_0x25e896=_0x20984b[_0x7c3c4f(0x149)](_0x564834):(_0x25e896=new D[(_0x7c3c4f(0x10a))](),_0x20984b['set'](_0x564834,_0x25e896),_0x25e896[_0x7c3c4f(0x117)](b[_0x7c3c4f(0x186)]((_0x5a5aa1=this[_0x7c3c4f(0x167)][_0x7c3c4f(0x157)](Z))!=null?_0x5a5aa1:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x7c3c4f(0x107)](_0x360afa=>{var _0x1efcce=_0x7c3c4f;this[_0x1efcce(0x10e)][_0x1efcce(0x180)]({'eventID':_[_0x1efcce(0x100)][_0x1efcce(0x13c)],'data':{'unitID':this[_0x1efcce(0xca)],'operations':{[_0x360afa['id']]:{'id':_0x360afa['id'],'params':JSON[_0x1efcce(0xb8)](_0x360afa[_0x1efcce(0xe6)])}}}},this['_unitID']);})),_0x25e896[_0x7c3c4f(0xb2)](_0x1e230c);})),this[_0x46bfbf(0x158)][_0x46bfbf(0xe2)](this[_0x46bfbf(0xca)])['forEach'](_0xac9f5e=>this[_0x46bfbf(0x10e)][_0x46bfbf(0x180)]({'eventID':_[_0x46bfbf(0x100)][_0x46bfbf(0x13c)],'data':{'unitID':this[_0x46bfbf(0xca)],'operations':{[_0xac9f5e['id']]:{'id':_0xac9f5e['id'],'params':JSON[_0x46bfbf(0xb8)](_0xac9f5e[_0x46bfbf(0xe6)])}}}},this[_0x46bfbf(0xca)]));}[_0x1150a5(0x126)](){var _0x4434ee=_0x1150a5,_0x11985d;this[_0x4434ee(0x156)][_0x4434ee(0xb2)](_0x4434ee(0x145)),(_0x11985d=this[_0x4434ee(0xf2)])==null||_0x11985d[_0x4434ee(0x108)](),this[_0x4434ee(0xf2)]=null;}[_0x1150a5(0xfe)](){var _0x195ed8=_0x1150a5,_0x420427;(_0x420427=this[_0x195ed8(0xf2)])==null||_0x420427['dispose'](),this[_0x195ed8(0x156)]['next'](_0x195ed8(0x189));}[_0x1150a5(0x178)](){var _0x57b655=_0x1150a5,_0x5bb7c2;this[_0x57b655(0x156)][_0x57b655(0xb2)](_0x57b655(0x145)),(_0x5bb7c2=this['_commandDisposable'])==null||_0x5bb7c2[_0x57b655(0x108)](),this[_0x57b655(0xf2)]=null;}[_0x1150a5(0x139)](){var _0x3994b2=_0x1150a5,_0x4011aa;this[_0x3994b2(0x156)]['next']('not-following'),(_0x4011aa=this[_0x3994b2(0xf2)])==null||_0x4011aa['dispose']();}['_handleOperation'](_0x3d4b7b){var _0x7fbddb=_0x1150a5;if([_0x7fbddb(0x106),'not-following',_0x7fbddb(0x11f)][_0x7fbddb(0x132)](this[_0x7fbddb(0x12d)])||!_0x3d4b7b['data'][_0x7fbddb(0x118)]||_0x3d4b7b[_0x7fbddb(0xd3)]['presenter']===this['_collabSession'][_0x7fbddb(0x11c)]())return;this[_0x7fbddb(0x12d)]==='idle'&&this[_0x7fbddb(0xfe)]();const _0x1b63e6=_0x3d4b7b[_0x7fbddb(0xd3)][_0x7fbddb(0xdc)];Object[_0x7fbddb(0x14b)](_0x1b63e6)[_0x7fbddb(0x169)](_0x124fd0=>{var _0x4e8369=_0x7fbddb;this[_0x4e8369(0xfb)][_0x4e8369(0xe0)](_0x124fd0['id'],_0x124fd0[_0x4e8369(0xe6)]?JSON['parse'](_0x124fd0['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x192eb1=_0x1150a5,_0x19898c;this['_status$']['next'](_0x192eb1(0x11f)),(_0x19898c=this[_0x192eb1(0xf2)])==null||_0x19898c[_0x192eb1(0x108)]();}[_0x1150a5(0x101)](){var _0x23e853=_0x1150a5;this['_status$'][_0x23e853(0xb2)](_0x23e853(0x145)),this[_0x23e853(0xee)]();}},exports[_0x1150a5(0x114)]=R([S(0x2,o[_0x1150a5(0xd4)]),S(0x3,o[_0x1150a5(0xf8)](O)),S(0x4,o[_0x1150a5(0x164)])],exports[_0x1150a5(0x114)]);function A(){var _0x56978f=_0x1150a5;const _0x22b8f1=p[_0x56978f(0x136)](exports[_0x56978f(0xc1)]),_0x181805=p['useDependency'](o[_0x56978f(0xae)]),_0x463735=p[_0x56978f(0x179)](()=>_0x181805[_0x56978f(0x15d)](o['UniverInstanceType'][_0x56978f(0xba)]),void 0x0,!0x1,[]),[_0x5d6c6b,_0x950235]=f[_0x56978f(0x134)](null),[_0x45ce3b,_0xb4dce0]=f[_0x56978f(0x134)](h['IDLE']),_0x2636c4=f['useRef'](null);return f[_0x56978f(0x12e)](()=>(_0x463735&&_0x22b8f1[_0x56978f(0x165)](_0x463735[_0x56978f(0xf1)]())[_0x56978f(0x137)](_0xb69a6a=>{var _0x239941=_0x56978f;_0x950235(_0xb69a6a),_0x2636c4[_0x239941(0x162)]=_0xb69a6a['status$'][_0x239941(0x107)](_0x3fe0f9=>{_0xb4dce0(_0x3fe0f9);});}),()=>{var _0x4dc4ab=_0x56978f,_0x3f049d;(_0x3f049d=_0x2636c4[_0x4dc4ab(0x162)])==null||_0x3f049d[_0x4dc4ab(0x123)](),_0x2636c4[_0x4dc4ab(0x162)]=null;}),[_0x463735,_0x22b8f1]),_0x5d6c6b?l['jsx'](g[_0x56978f(0x146)],{'align':_0x56978f(0xbc),'disabled':_0x45ce3b===h[_0x56978f(0x12a)],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':l[_0x56978f(0x177)](K,{'status':_0x45ce3b,'coordinator':_0x5d6c6b}),'children':l[_0x56978f(0x177)](_0x56978f(0x14f),{'className':g['clsx'](_0x56978f(0xd2),{'univer-cursor-not-allowed':_0x45ce3b===h[_0x56978f(0x12a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x45ce3b!==h['OFFLINE']}),'type':_0x56978f(0x14f),'children':l[_0x56978f(0x177)](P,{'className':_0x56978f(0x133)})})}):null;}function K(_0x591d39){var _0x3f981d=_0x1150a5;const {status:_0x4e9eca,coordinator:_0xc33409}=_0x591d39;switch(_0x4e9eca){case h[_0x3f981d(0xf5)]:return l[_0x3f981d(0x177)](z,{'coordinator':_0xc33409});case h[_0x3f981d(0x14e)]:return l[_0x3f981d(0x177)](Q,{'coordinator':_0xc33409});case h[_0x3f981d(0x159)]:return l[_0x3f981d(0x177)](X,{'coordinator':_0xc33409});case h[_0x3f981d(0x12a)]:return l[_0x3f981d(0x177)](te,{});case h['PRESENTING']:return l[_0x3f981d(0x177)](ee,{'coordinator':_0xc33409});default:return null;}}function z(_0x312cd5){var _0x149fa0=_0x1150a5;const {coordinator:_0x44f4c2}=_0x312cd5;return l[_0x149fa0(0xcb)](l[_0x149fa0(0x194)],{'children':[l[_0x149fa0(0x177)](_0x149fa0(0xfa),{'className':_0x149fa0(0x147),'children':_0x149fa0(0x13b)}),l[_0x149fa0(0x177)](g[_0x149fa0(0xcc)],{'onClick':()=>_0x44f4c2[_0x149fa0(0x192)](),'children':_0x149fa0(0xf6)})]});}function Q(_0x397de6){var _0x3b9a0b=_0x1150a5;const {coordinator:_0x22e4e2}=_0x397de6;return l['jsxs'](l[_0x3b9a0b(0x194)],{'children':[l['jsx'](_0x3b9a0b(0xfa),{'className':_0x3b9a0b(0x147),'children':_0x3b9a0b(0x175)}),l[_0x3b9a0b(0x177)](g['Button'],{'onClick':()=>_0x22e4e2[_0x3b9a0b(0xc6)](),'children':_0x3b9a0b(0x168)})]});}function X(_0x492093){var _0x101cc3=_0x1150a5;const {coordinator:_0x3b7e24}=_0x492093;return l['jsxs'](l['Fragment'],{'children':[l[_0x101cc3(0x177)](_0x101cc3(0xfa),{'className':_0x101cc3(0x147),'children':_0x101cc3(0xbe)}),l[_0x101cc3(0x177)](g[_0x101cc3(0xcc)],{'variant':'text','onClick':()=>_0x3b7e24[_0x101cc3(0xf9)](),'children':_0x101cc3(0xb9)})]});}function ee(_0x2fab06){var _0x486a20=_0x1150a5;const {coordinator:_0x55cfa2}=_0x2fab06;return l['jsxs'](l[_0x486a20(0x194)],{'children':[l[_0x486a20(0x177)]('div',{'className':_0x486a20(0x147),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x486a20(0x177)](g[_0x486a20(0xcc)],{'variant':_0x486a20(0xb4),'onClick':()=>_0x55cfa2[_0x486a20(0x113)](),'children':'Stop\x20presenting'})]});}function te(){var _0x55a0a4=_0x1150a5;return l[_0x55a0a4(0x177)](l[_0x55a0a4(0x194)],{'children':'You\x27are\x20offline.'});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x3a04b6,_0x206fe8,_0x2d3b39,_0x37ee48)=>{var _0x17fc1c=_0x1150a5;for(var _0x4785d7=_0x37ee48>0x1?void 0x0:_0x37ee48?ie(_0x206fe8,_0x2d3b39):_0x206fe8,_0x250f4a=_0x3a04b6[_0x17fc1c(0x141)]-0x1,_0x13cf72;_0x250f4a>=0x0;_0x250f4a--)(_0x13cf72=_0x3a04b6[_0x250f4a])&&(_0x4785d7=_0x13cf72(_0x4785d7)||_0x4785d7);return _0x4785d7;},L=(_0x8ebc78,_0x2e886b)=>(_0x46a1f4,_0x28ee24)=>_0x2e886b(_0x46a1f4,_0x28ee24,_0x8ebc78);exports[_0x1150a5(0x172)]=class extends o['Disposable']{constructor(_0x109af5,_0x169853){super(),this['_injector']=_0x109af5,this['_uiPartsService']=_0x169853,this['_mountLiveShare']();}[_0x1150a5(0xcd)](){var _0x37dfb3=_0x1150a5;this['disposeWithMe'](this[_0x37dfb3(0x13f)][_0x37dfb3(0x14d)](p[_0x37dfb3(0x18e)][_0x37dfb3(0x183)],()=>p[_0x37dfb3(0x16d)](A,this['_injector'])));}},exports[_0x1150a5(0x172)]=ne([L(0x0,o[_0x1150a5(0xf8)](o['Injector'])),L(0x1,p[_0x1150a5(0x12f)])],exports[_0x1150a5(0x172)]);var re=Object[_0x1150a5(0x109)],se=Object['getOwnPropertyDescriptor'],oe=(_0xab228e,_0x523559,_0x114716)=>_0x523559 in _0xab228e?re(_0xab228e,_0x523559,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x114716}):_0xab228e[_0x523559]=_0x114716,ae=(_0x586685,_0x23d325,_0x20550f,_0x3ccf80)=>{var _0x26cd71=_0x1150a5;for(var _0x510aee=_0x3ccf80>0x1?void 0x0:_0x3ccf80?se(_0x23d325,_0x20550f):_0x23d325,_0xebae68=_0x586685[_0x26cd71(0x141)]-0x1,_0x5f483d;_0xebae68>=0x0;_0xebae68--)(_0x5f483d=_0x586685[_0xebae68])&&(_0x510aee=_0x5f483d(_0x510aee)||_0x510aee);return _0x510aee;},N=(_0x54f8c0,_0x1522f8)=>(_0x4d053c,_0x5899fc)=>_0x1522f8(_0x4d053c,_0x5899fc,_0x54f8c0),T=(_0x7f6ef7,_0x286c40,_0xb1d122)=>oe(_0x7f6ef7,typeof _0x286c40!=_0x1150a5(0x18c)?_0x286c40+'':_0x286c40,_0xb1d122);const le=_0x1150a5(0x166);exports[_0x1150a5(0x13d)]=class extends o[_0x1150a5(0xb1)]{constructor(_0x266416=x,_0x140f1a,_0x13b078){var _0x5477bc=_0x1150a5;super(),this[_0x5477bc(0x154)]=_0x266416,this[_0x5477bc(0xd9)]=_0x140f1a,this[_0x5477bc(0x167)]=_0x13b078;const {..._0x16a165}=o[_0x5477bc(0xe5)]({},x,this[_0x5477bc(0x154)]);this[_0x5477bc(0x167)][_0x5477bc(0x196)]($,_0x16a165);}[_0x1150a5(0x14c)](){var _0x31ecab=_0x1150a5;o['registerDependencies'](this[_0x31ecab(0xd9)],o[_0x31ecab(0xb6)]([[O],[exports['LiveShareController']],[E],[exports[_0x31ecab(0x172)]]],this[_0x31ecab(0x154)][_0x31ecab(0xda)])),o['touchDependencies'](this['_injector'],[[E]]);}[_0x1150a5(0x190)](){var _0x39cd30=_0x1150a5;o['touchDependencies'](this['_injector'],[[exports[_0x39cd30(0x172)]]]);}},T(exports[_0x1150a5(0x13d)],_0x1150a5(0xf3),o[_0x1150a5(0xd6)][_0x1150a5(0x10f)]),T(exports[_0x1150a5(0x13d)],_0x1150a5(0x125),le),exports[_0x1150a5(0x13d)]=ae([o[_0x1150a5(0x129)](m[_0x1150a5(0x15e)]),N(0x1,o[_0x1150a5(0xf8)](o[_0x1150a5(0xc3)])),N(0x2,o[_0x1150a5(0xd4)])],exports[_0x1150a5(0x13d)]),exports[_0x1150a5(0x171)]=A,exports[_0x1150a5(0xdf)]=O,exports['LiveShareStatus']=h;
1
+ 'use strict';var _0x4af0c9=_0x46d3;(function(_0x39ac92,_0x593ae1){var _0x424d22=_0x46d3,_0x3f5df3=_0x39ac92();while(!![]){try{var _0x287b37=-parseInt(_0x424d22(0x103))/0x1+-parseInt(_0x424d22(0xea))/0x2*(-parseInt(_0x424d22(0x18e))/0x3)+-parseInt(_0x424d22(0xef))/0x4*(parseInt(_0x424d22(0x146))/0x5)+-parseInt(_0x424d22(0x114))/0x6*(parseInt(_0x424d22(0xca))/0x7)+-parseInt(_0x424d22(0x18a))/0x8*(parseInt(_0x424d22(0x115))/0x9)+parseInt(_0x424d22(0xcc))/0xa+-parseInt(_0x424d22(0xdb))/0xb*(-parseInt(_0x424d22(0xc5))/0xc);if(_0x287b37===_0x593ae1)break;else _0x3f5df3['push'](_0x3f5df3['shift']());}catch(_0x591052){_0x3f5df3['push'](_0x3f5df3['shift']());}}}(_0x245e,0xdde17));var U=Object[_0x4af0c9(0x148)],F=(_0xedd788,_0x49cc50,_0x5bad20)=>_0x49cc50 in _0xedd788?U(_0xedd788,_0x49cc50,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bad20}):_0xedd788[_0x49cc50]=_0x5bad20,v=(_0x53bfd5,_0x104ec2,_0x80a753)=>F(_0x53bfd5,typeof _0x104ec2!='symbol'?_0x104ec2+'':_0x104ec2,_0x80a753);Object[_0x4af0c9(0x148)](exports,Symbol[_0x4af0c9(0x154)],{'value':_0x4af0c9(0x199)});const m=require(_0x4af0c9(0x191)),o=require(_0x4af0c9(0x179)),C=require('@univerjs/sheets'),w=require(_0x4af0c9(0xcb)),p=require(_0x4af0c9(0x189)),l=require('react/jsx-runtime'),g=require(_0x4af0c9(0x177)),f=require(_0x4af0c9(0x153)),_=require(_0x4af0c9(0x17f)),D=require('rxjs'),b=require(_0x4af0c9(0x164)),$=_0x4af0c9(0x196),x={};class O extends o[_0x4af0c9(0x13f)]{constructor(){var _0x4fbf94=_0x4af0c9;super(...arguments),v(this,_0x4fbf94(0x17e),new Set()),v(this,_0x4fbf94(0x16f),new Set());}['registerSharedOperation'](_0x563e56){var _0x18ef71=_0x4af0c9;return this['_sharedOperations'][_0x18ef71(0xc1)](_0x563e56),o[_0x18ef71(0x11f)](()=>this[_0x18ef71(0x17e)][_0x18ef71(0x11b)](_0x563e56));}[_0x4af0c9(0xfe)](_0x4fdcff){var _0x410011=_0x4af0c9;return this[_0x410011(0x16f)][_0x410011(0xc1)](_0x4fdcff),o[_0x410011(0x11f)](()=>this[_0x410011(0x16f)][_0x410011(0x11b)](_0x4fdcff));}[_0x4af0c9(0x151)](_0x474ac2){var _0xa4d9f=_0x4af0c9;return this[_0xa4d9f(0x17e)][_0xa4d9f(0xf4)](_0x474ac2);}[_0x4af0c9(0x188)](_0x54ee93){var _0x26211a=_0x4af0c9;return Array[_0x26211a(0x184)](this[_0x26211a(0x16f)])[_0x26211a(0x16a)](_0x3a565e=>_0x3a565e(_0x54ee93));}}var H=Object[_0x4af0c9(0x150)],V=(_0x3671a9,_0x3a920e,_0x3c34bc,_0x446118)=>{var _0x462207=_0x4af0c9;for(var _0x4b4df6=_0x446118>0x1?void 0x0:_0x446118?H(_0x3a920e,_0x3c34bc):_0x3a920e,_0x1c3117=_0x3671a9[_0x462207(0x14a)]-0x1,_0x3ca648;_0x1c3117>=0x0;_0x1c3117--)(_0x3ca648=_0x3671a9[_0x1c3117])&&(_0x4b4df6=_0x3ca648(_0x4b4df6)||_0x4b4df6);return _0x4b4df6;},k=(_0x22cd75,_0x30e3d4)=>(_0x597871,_0x15e35a)=>_0x30e3d4(_0x597871,_0x15e35a,_0x22cd75);let E=class extends o[_0x4af0c9(0x13f)]{constructor(_0x31315d){var _0x2323c2=_0x4af0c9;super(),this[_0x2323c2(0x194)]=_0x31315d,this['_init']();}[_0x4af0c9(0xe4)](){var _0x496cb8=_0x4af0c9;[w[_0x496cb8(0xc4)]['id'],w['SetScrollOperation']['id'],C[_0x496cb8(0xce)]['id']][_0x496cb8(0x152)](_0x3f5b53=>{var _0x182b9a=_0x496cb8;this['disposeWithMe'](this[_0x182b9a(0x194)][_0x182b9a(0xd8)](_0x3f5b53));});}};E=V([k(0x0,o[_0x4af0c9(0x168)](O))],E);var u=function(){var _0x431f4d=_0x4af0c9;return u=Object[_0x431f4d(0xf1)]||function(_0x319385){var _0x1d71d6=_0x431f4d;for(var _0xb5a566,_0x3d5d6b=0x1,_0x422b20=arguments[_0x1d71d6(0x14a)];_0x3d5d6b<_0x422b20;_0x3d5d6b++){_0xb5a566=arguments[_0x3d5d6b];for(var _0x4de631 in _0xb5a566)Object[_0x1d71d6(0xee)][_0x1d71d6(0x182)]['call'](_0xb5a566,_0x4de631)&&(_0x319385[_0x4de631]=_0xb5a566[_0x4de631]);}return _0x319385;},u[_0x431f4d(0xe5)](this,arguments);},M=function(_0x4b1276,_0xc4df70){var _0x1ff3ac=_0x4af0c9,_0x3b21de={};for(var _0x3df2a1 in _0x4b1276)Object[_0x1ff3ac(0xee)][_0x1ff3ac(0x182)][_0x1ff3ac(0x19f)](_0x4b1276,_0x3df2a1)&&_0xc4df70['indexOf'](_0x3df2a1)<0x0&&(_0x3b21de[_0x3df2a1]=_0x4b1276[_0x3df2a1]);if(_0x4b1276!=null&&typeof Object[_0x1ff3ac(0x12b)]==_0x1ff3ac(0x126)){for(var _0x283274=0x0,_0x3df2a1=Object[_0x1ff3ac(0x12b)](_0x4b1276);_0x283274<_0x3df2a1[_0x1ff3ac(0x14a)];_0x283274++)_0xc4df70[_0x1ff3ac(0xf9)](_0x3df2a1[_0x283274])<0x0&&Object[_0x1ff3ac(0xee)][_0x1ff3ac(0x105)][_0x1ff3ac(0x19f)](_0x4b1276,_0x3df2a1[_0x283274])&&(_0x3b21de[_0x3df2a1[_0x283274]]=_0x4b1276[_0x3df2a1[_0x283274]]);}return _0x3b21de;},j=f['forwardRef'](function(_0x117f9e,_0x22f4f9){var _0x285a71=_0x4af0c9,_0x22e1b0=_0x117f9e['icon'],_0x6c5723=_0x117f9e['id'],_0x1d7248=_0x117f9e['className'],_0x416fc0=_0x117f9e[_0x285a71(0x136)],_0x3c1fbb=M(_0x117f9e,[_0x285a71(0x10c),'id',_0x285a71(0x145),_0x285a71(0x136)]),_0x43b922='univerjs-icon\x20univerjs-icon-'['concat'](_0x6c5723,'\x20')['concat'](_0x1d7248||'')['trim'](),_0x567095=f[_0x285a71(0x106)]('_'['concat'](G()));return y(_0x22e1b0,''['concat'](_0x6c5723),{'defIds':_0x22e1b0[_0x285a71(0x101)],'idSuffix':_0x567095[_0x285a71(0x171)]},u({'ref':_0x22f4f9,'className':_0x43b922},_0x3c1fbb),_0x416fc0);});function y(_0x3bf2cd,_0x558f38,_0x3b1c93,_0x228d00,_0x5e1f1c){var _0xabddf6=_0x4af0c9;return f[_0xabddf6(0x17c)](_0x3bf2cd['tag'],u(u({'key':_0x558f38},q(_0x3bf2cd,_0x3b1c93,_0x5e1f1c)),_0x228d00),(W(_0x3bf2cd,_0x3b1c93)[_0xabddf6(0xdd)]||[])[_0xabddf6(0x16a)](function(_0x22156d,_0x3b47bc){var _0x1241c8=_0xabddf6;return y(_0x22156d,''[_0x1241c8(0x13a)](_0x558f38,'-')[_0x1241c8(0x13a)](_0x3bf2cd[_0x1241c8(0x166)],'-')[_0x1241c8(0x13a)](_0x3b47bc),_0x3b1c93,void 0x0,_0x5e1f1c);}));}function q(_0x50a24c,_0x45f609,_0x39f578){var _0x25c0f0=_0x4af0c9,_0x554069=u({},_0x50a24c[_0x25c0f0(0xfa)]);_0x39f578!=null&&_0x39f578['colorChannel1']&&_0x554069[_0x25c0f0(0xfb)]===_0x25c0f0(0x121)&&(_0x554069['fill']=_0x39f578[_0x25c0f0(0x121)]),_0x50a24c[_0x25c0f0(0x166)]===_0x25c0f0(0x195)&&_0x554069['id']&&(_0x554069['id']=_0x554069['id']+_0x45f609[_0x25c0f0(0x11d)]),Object['entries'](_0x554069)[_0x25c0f0(0x152)](function(_0x3f265d){var _0x26147d=_0x25c0f0,_0xff5e6c=_0x3f265d[0x0],_0x188ef7=_0x3f265d[0x1];_0xff5e6c==='mask'&&typeof _0x188ef7==_0x26147d(0x160)&&(_0x554069[_0xff5e6c]=_0x188ef7[_0x26147d(0x107)](/url\(#(.*)\)/,'url(#$1'[_0x26147d(0x13a)](_0x45f609[_0x26147d(0x11d)],')')));});var _0x471686=_0x45f609[_0x25c0f0(0x101)];return!_0x471686||_0x471686[_0x25c0f0(0x14a)]===0x0||(_0x50a24c[_0x25c0f0(0x166)]==='use'&&_0x554069['xlink:href']&&(_0x554069[_0x25c0f0(0x17b)]=_0x554069[_0x25c0f0(0x17b)]+_0x45f609[_0x25c0f0(0x11d)]),Object[_0x25c0f0(0x18c)](_0x554069)[_0x25c0f0(0x152)](function(_0x242b08){var _0x5cf374=_0x25c0f0,_0x160f04=_0x242b08[0x0],_0x4195bd=_0x242b08[0x1];typeof _0x4195bd==_0x5cf374(0x160)&&(_0x554069[_0x160f04]=_0x4195bd[_0x5cf374(0x107)](/url\(#(.*)\)/,_0x5cf374(0xe9)['concat'](_0x45f609[_0x5cf374(0x11d)],')')));})),_0x554069;}function W(_0x373ac5,_0x2a8fdf){var _0x199a6f=_0x4af0c9,_0x3131e0,_0x5a5550=_0x2a8fdf['defIds'];return!_0x5a5550||_0x5a5550[_0x199a6f(0x14a)]===0x0?_0x373ac5:_0x373ac5[_0x199a6f(0x166)]===_0x199a6f(0x130)&&(!((_0x3131e0=_0x373ac5[_0x199a6f(0xdd)])===null||_0x3131e0===void 0x0)&&_0x3131e0['length'])?u(u({},_0x373ac5),{'children':_0x373ac5[_0x199a6f(0xdd)][_0x199a6f(0x16a)](function(_0x452b78){var _0x385afb=_0x199a6f;return typeof _0x452b78[_0x385afb(0xfa)]['id']==_0x385afb(0x160)&&_0x5a5550&&_0x5a5550[_0x385afb(0x198)](_0x452b78[_0x385afb(0xfa)]['id'])?u(u({},_0x452b78),{'attrs':u(u({},_0x452b78[_0x385afb(0xfa)]),{'id':_0x452b78['attrs']['id']+_0x2a8fdf[_0x385afb(0x11d)]})}):_0x452b78;})}):_0x373ac5;}function _0x245e(){var _0x54f02e=['default','Inject','idle','map','throttleTime','_fetchOperations','_handleNewChangeSets','_startLiveShareCoordinator','_reporters','jsxs','current','reverse','status$','subscribe','useDependency','jsx','@univerjs/design','operations','@univerjs/core','pluginName','xlink:href','createElement','next','_sharedOperations','@univerjs-pro/collaboration','_beIdle','LIVESHARE_OPERATION','hasOwnProperty','DisposableCollection','from','get','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','CollaborationSessionService','getInitialStates','@univerjs/ui','2424EvvKua','_injector','entries','takeUntil','23361vcBzBJ','init','getLiveShareCoordinator','@univerjs-pro/collaboration-client','substring','Start\x20following','_liveShareService','mask','live-share.config','unsubscribe','includes','Module','1em','presenter','live-share-icon','set','stopPresenting','call','merge','div','currentColor','forwardRef','getMemberID','useState','_status','_unitID','not-following','Stop\x20following','add','http://www.w3.org/2000/svg','You\x27re\x20not\x20following\x20the\x20presenter','SetZoomRatioOperation','12vKjATd','ONLINE','IUniverInstanceService','NEW_CHANGESETS','none','889JEukGZ','@univerjs/sheets-ui','4105610rCigCA','_handleOperation','SetWorksheetActiveOperation','disposeWithMe','startFollowing','onRendered','complete','_univerInstanceService','UniverLiveSharePlugin','CollaborationEvent','_startFollowing','LiveShareController','registerSharedOperation','NOT_FOLLOWING','params','58440239pcirRR','univer-w-full\x20univer-mb-3\x20univer-text-sm','children','FOLLOWING','_handleOnline','displayName','getConfig','LiveShareStatus','LIVESHARE_FETCH_OPERATIONS','_init','apply','DesktopLiveShareController','univer-size-4','_configService','url(#$1','2DpRUZZ','Subject','parse','getCurrentTypeOfUnit$','prototype','28wbkDsy','send','assign','mergeOverrideWithDependencies','toString','has','clsx','UNIVER_UNKNOWN','LIVESHARE_NEW_HOST','createInstance','indexOf','attrs','fill','UniverInstanceType','UNIVER_SHEET','registerInitialStateReporter','LiveShareIcon','Stop\x20presenting','defIds','You\x27are\x20offline.','1613423bzSJby','getTypeOfUnitAdded$','propertyIsEnumerable','useRef','replace','_startPresenting','useEffect','getUnitId','useObservable','icon','HEADER_MENU','pipe','_handleNewHost','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','type','_collabSessionService','LiveShareService','82794PWPNia','34713qNbUuJ','_collabSession','setConfig','_uiPartsService','sessionStatus$','onCommandExecuted','delete','stopFollowing','idSuffix','_entities','toDisposable','button','colorChannel1','_config','IDLE','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','Fragment','function','parseProtocolChangeset','IUIPartsService','UniverIcon','offline','getOwnPropertySymbols','_commandDisposable','getTypeOfUnitDisposed$','_stopPresenting','LIVESHARE_REQUEST_HOST','defs','executeCommand','dispose$','_status$','SessionStatus','LiveShareCoordinator','extend','PRESENTING','ICommandService','getValue','concat','random','sheet','onStarting','following','Disposable','registerComponent','_handleOffline','UniverCollaborationClientPlugin','clear','evenodd','className','205505onTvLh','_commandService','defineProperty','_presenter','length','data','_handleTerminate','RxDisposable','You\x27re\x20presenting\x20the\x20document','DependentOn','getOwnPropertyDescriptor','shouldShareOperation','forEach','react','toStringTag','tryStartPresenting','_stopFollowing','You\x27re\x20following\x20the\x20presenter','Button','Injector','Start','svg','IConfigService','OPERATION','presenting','dispose','string','LIVESHARE_TERMINATE','BuiltInUIPart','OFFLINE','rxjs/operators','symbol','tag'];_0x245e=function(){return _0x54f02e;};return _0x245e();}function G(){var _0x138fe9=_0x4af0c9;return Math[_0x138fe9(0x13b)]()[_0x138fe9(0xf3)](0x24)[_0x138fe9(0x192)](0x2,0x8);}j['displayName']=_0x4af0c9(0x129);var B={'tag':_0x4af0c9(0x15b),'attrs':{'xmlns':_0x4af0c9(0xc2),'fill':_0x4af0c9(0xc9),'viewBox':'0\x200\x2017\x2017','width':_0x4af0c9(0x19a),'height':_0x4af0c9(0x19a)},'children':[{'tag':'path','attrs':{'fill':_0x4af0c9(0x1a2),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x4af0c9(0x1a2),'d':_0x4af0c9(0x110),'fillRule':_0x4af0c9(0x144),'clipRule':_0x4af0c9(0x144)}}]},P=f[_0x4af0c9(0x1a3)](function(_0x438008,_0x1b9e98){var _0x75625d=_0x4af0c9;return f[_0x75625d(0x17c)](j,Object[_0x75625d(0xf1)]({},_0x438008,{'id':_0x75625d(0x19c),'ref':_0x1b9e98,'icon':B}));});P[_0x4af0c9(0xe0)]=_0x4af0c9(0xff);var Y=Object['getOwnPropertyDescriptor'],R=(_0x2da32e,_0x241618,_0x231fca,_0xd19957)=>{for(var _0x1fc46c=_0xd19957>0x1?void 0x0:_0xd19957?Y(_0x241618,_0x231fca):_0x241618,_0x5c5ae8=_0x2da32e['length']-0x1,_0x302f0f;_0x5c5ae8>=0x0;_0x5c5ae8--)(_0x302f0f=_0x2da32e[_0x5c5ae8])&&(_0x1fc46c=_0x302f0f(_0x1fc46c)||_0x1fc46c);return _0x1fc46c;},S=(_0x53f51e,_0x515e8e)=>(_0x5f2b27,_0x17bee)=>_0x515e8e(_0x5f2b27,_0x17bee,_0x53f51e);exports['LiveShareController']=class extends o[_0x4af0c9(0x14d)]{constructor(_0x2767e4,_0x349ef2,_0x420f21){var _0x3f17e5=_0x4af0c9;super(),v(this,_0x3f17e5(0x11e),new Map()),(this[_0x3f17e5(0xd3)]=_0x2767e4,this[_0x3f17e5(0x18b)]=_0x349ef2,this[_0x3f17e5(0x112)]=_0x420f21,this['_init']());}async[_0x4af0c9(0x190)](_0x389955){var _0x2dcfba=_0x4af0c9;return this[_0x2dcfba(0x11e)][_0x2dcfba(0xf4)](_0x389955)||await this[_0x2dcfba(0x16e)](_0x389955),this['_entities'][_0x2dcfba(0x185)](_0x389955);}[_0x4af0c9(0xe4)](){var _0x2c9dd0=_0x4af0c9;this[_0x2c9dd0(0xd3)][_0x2c9dd0(0x104)](o[_0x2c9dd0(0xfc)][_0x2c9dd0(0xfd)])['pipe'](b['takeUntil'](this[_0x2c9dd0(0x132)]))[_0x2c9dd0(0x174)](async _0x4f3290=>{var _0x5e2b50=_0x2c9dd0;const _0x5be5d1=_0x4f3290[_0x5e2b50(0x10a)]();this[_0x5e2b50(0x11e)][_0x5e2b50(0xf4)](_0x5be5d1)||this[_0x5e2b50(0x16e)](_0x5be5d1);}),this['_univerInstanceService'][_0x2c9dd0(0x12d)](o[_0x2c9dd0(0xfc)]['UNIVER_SHEET'])[_0x2c9dd0(0x10e)](b[_0x2c9dd0(0x18d)](this[_0x2c9dd0(0x132)]))[_0x2c9dd0(0x174)](_0x4a47d3=>{var _0x31f647=_0x2c9dd0;const _0x4f8b22=_0x4a47d3[_0x31f647(0x10a)](),_0x1b510c=this['_entities'][_0x31f647(0x185)](_0x4f8b22);_0x1b510c==null||_0x1b510c[_0x31f647(0x15f)]();});}async[_0x4af0c9(0x16e)](_0x5512ad){var _0x5360c3=_0x4af0c9;const _0xbbd1=await this['_collabSessionService']['requireSession'](_0x5512ad),_0x36e266=this['_injector'][_0x5360c3(0xf8)](exports[_0x5360c3(0x135)],_0x5512ad,_0xbbd1);return _0x36e266[_0x5360c3(0x18f)](),this['_entities'][_0x5360c3(0x19d)](_0x5512ad,_0x36e266),_0x36e266;}},exports[_0x4af0c9(0xd7)]=R([S(0x0,o[_0x4af0c9(0xc7)]),S(0x1,o['Inject'](o[_0x4af0c9(0x159)])),S(0x2,o[_0x4af0c9(0x168)](m[_0x4af0c9(0x187)]))],exports[_0x4af0c9(0xd7)]);var h=(_0x31ce64=>(_0x31ce64[_0x4af0c9(0x163)]=_0x4af0c9(0x12a),_0x31ce64[_0x4af0c9(0x123)]='idle',_0x31ce64[_0x4af0c9(0xde)]='following',_0x31ce64[_0x4af0c9(0xd9)]=_0x4af0c9(0xbf),_0x31ce64[_0x4af0c9(0x137)]='presenting',_0x31ce64))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x4af0c9(0x135)]=class extends o[_0x4af0c9(0x14d)]{constructor(_0x54890c,_0x42c4f6,_0x4d1105,_0x2a07a8,_0x57f07d){var _0x19afd5=_0x4af0c9;super(),v(this,_0x19afd5(0x133),new D['BehaviorSubject'](_0x19afd5(0x169))),v(this,_0x19afd5(0x173),this[_0x19afd5(0x133)]['asObservable']()),v(this,_0x19afd5(0xe4),!0x1),v(this,_0x19afd5(0x12c),null),v(this,_0x19afd5(0x149),null),(this[_0x19afd5(0x1a7)]=_0x54890c,this[_0x19afd5(0x116)]=_0x42c4f6,this['_configService']=_0x4d1105,this[_0x19afd5(0x194)]=_0x2a07a8,this[_0x19afd5(0x147)]=_0x57f07d);}get['_status'](){var _0x3e49ab=_0x4af0c9;return this[_0x3e49ab(0x133)][_0x3e49ab(0x139)]();}[_0x4af0c9(0x15f)](){var _0x4e68df=_0x4af0c9,_0x51ee65;(_0x51ee65=this[_0x4e68df(0x12c)])==null||_0x51ee65['dispose'](),this[_0x4e68df(0x133)][_0x4e68df(0x17d)]('idle'),this[_0x4e68df(0x133)][_0x4e68df(0xd2)]();}[_0x4af0c9(0x18f)](){var _0x3edbe4=_0x4af0c9;this[_0x3edbe4(0xe4)]||(this[_0x3edbe4(0xe4)]=!0x0,this[_0x3edbe4(0x116)][_0x3edbe4(0x119)][_0x3edbe4(0x10e)](b[_0x3edbe4(0x18d)](this['dispose$']))[_0x3edbe4(0x174)](_0x169471=>{var _0xbcf49a=_0x3edbe4;switch(_0x169471){case m[_0xbcf49a(0x134)][_0xbcf49a(0x163)]:this[_0xbcf49a(0x141)]();break;case m[_0xbcf49a(0x134)][_0xbcf49a(0xc6)]:this[_0xbcf49a(0xdf)]();break;}}),this[_0x3edbe4(0x116)]['event$'][_0x3edbe4(0x10e)](b[_0x3edbe4(0x18d)](this[_0x3edbe4(0x132)]))['subscribe'](_0x4abdd2=>{var _0x5bf183=_0x3edbe4;const {eventID:_0x55aa5c}=_0x4abdd2;switch(_0x55aa5c){case _[_0x5bf183(0xd5)][_0x5bf183(0xf7)]:this[_0x5bf183(0x10f)](_0x4abdd2);break;case _['CollaborationEvent'][_0x5bf183(0x181)]:this['_handleOperation'](_0x4abdd2);break;case _[_0x5bf183(0xd5)][_0x5bf183(0x161)]:this[_0x5bf183(0x14c)]();break;case _['CollaborationEvent'][_0x5bf183(0xc8)]:this[_0x5bf183(0x16d)](_0x4abdd2);break;}}));}[_0x4af0c9(0x155)](){var _0x265c35=_0x4af0c9;this[_0x265c35(0x116)][_0x265c35(0xf0)]({'eventID':_[_0x265c35(0xd5)][_0x265c35(0x12f)],'data':{'unitID':this[_0x265c35(0x1a7)],'userID':this[_0x265c35(0x116)][_0x265c35(0x1a4)]()}},this[_0x265c35(0x1a7)]);}[_0x4af0c9(0x19e)](){var _0xec73d7=_0x4af0c9;this[_0xec73d7(0x1a6)]===_0xec73d7(0x15e)&&(this[_0xec73d7(0x133)][_0xec73d7(0x17d)](_0xec73d7(0x169)),this[_0xec73d7(0x116)][_0xec73d7(0xf0)]({'eventID':_['CollaborationEvent'][_0xec73d7(0x161)],'data':{'unitID':this[_0xec73d7(0x1a7)]}},this[_0xec73d7(0x1a7)]));}[_0x4af0c9(0xd0)](){var _0x3eb71f=_0x4af0c9;this[_0x3eb71f(0x1a6)]===_0x3eb71f(0xbf)&&(this[_0x3eb71f(0x133)][_0x3eb71f(0x17d)]('following'),this[_0x3eb71f(0xd6)]());}[_0x4af0c9(0x11c)](){var _0x58e848=_0x4af0c9;this[_0x58e848(0x1a6)]===_0x58e848(0x13e)&&this[_0x58e848(0x156)]();}[_0x4af0c9(0x10f)](_0x2bee33){var _0x574b00=_0x4af0c9;const {presenter:_0x346689}=_0x2bee33['data'],_0xb3d53b=this[_0x574b00(0x116)][_0x574b00(0x1a4)]();this[_0x574b00(0x149)]=_0x346689,_0x346689===_0xb3d53b?(this[_0x574b00(0x156)](),this[_0x574b00(0x108)]()):this[_0x574b00(0x1a6)]!==_0x574b00(0xbf)&&(this[_0x574b00(0x12e)](),this[_0x574b00(0xd6)]());}[_0x4af0c9(0x16c)](){var _0xf4b986=_0x4af0c9;const _0x1461e2={'eventID':_[_0xf4b986(0xd5)][_0xf4b986(0xe3)]};this['_collabSession'][_0xf4b986(0xf0)](_0x1461e2,this[_0xf4b986(0x1a7)]);}[_0x4af0c9(0x14c)](){var _0x38527c=_0x4af0c9;this[_0x38527c(0x149)]=null,this[_0x38527c(0x1a6)]!==_0x38527c(0x15e)&&this[_0x38527c(0x180)]();}[_0x4af0c9(0x16d)](_0x1e9cdc){var _0x453f51=_0x4af0c9;if(this[_0x453f51(0x1a6)]===_0x453f51(0x13e)&&this[_0x453f51(0x149)]===_0x1e9cdc['data']['memberID']){const _0x2dcae0=_[_0x453f51(0x127)](_0x1e9cdc[_0x453f51(0x14b)])['mutations'][_0x453f51(0x172)]()['find'](_0x2a937c=>_0x2a937c['id']===C['InsertSheetMutation']['id']);if(_0x2dcae0){const _0x1980cb=_0x2dcae0[_0x453f51(0xda)]['unitId'],_0x1dbd1d=_0x2dcae0[_0x453f51(0xda)][_0x453f51(0x13c)]['id'];setTimeout(()=>{var _0x344f7c=_0x453f51;this[_0x344f7c(0x147)][_0x344f7c(0x131)](C[_0x344f7c(0xce)]['id'],{'unitId':_0x1980cb,'subUnitId':_0x1dbd1d},{'fromCollab':!0x0});});}}}[_0x4af0c9(0x108)](){var _0x5210f7=_0x4af0c9;this[_0x5210f7(0x133)][_0x5210f7(0x17d)](_0x5210f7(0x15e));const _0x3df543=new Map(),_0x2b556e=this['_commandDisposable']=new o[(_0x5210f7(0x183))]();_0x2b556e['add'](o[_0x5210f7(0x11f)](()=>{var _0x451e01=_0x5210f7;_0x3df543['forEach'](_0x42fa09=>_0x42fa09[_0x451e01(0xd2)]()),_0x3df543[_0x451e01(0x143)]();})),_0x2b556e[_0x5210f7(0xc1)](this[_0x5210f7(0x147)][_0x5210f7(0x11a)](_0x2b2ad8=>{var _0x19cfbd=_0x5210f7,_0x4ac833;if(_0x2b2ad8[_0x19cfbd(0x111)]!==o['CommandType'][_0x19cfbd(0x15d)]||!this['_liveShareService'][_0x19cfbd(0x151)](_0x2b2ad8['id']))return;const {id:_0x45a1b2}=_0x2b2ad8;let _0x4bde92;_0x3df543['has'](_0x45a1b2)?_0x4bde92=_0x3df543[_0x19cfbd(0x185)](_0x45a1b2):(_0x4bde92=new D[(_0x19cfbd(0xeb))](),_0x3df543['set'](_0x45a1b2,_0x4bde92),_0x4bde92[_0x19cfbd(0x10e)](b[_0x19cfbd(0x16b)]((_0x4ac833=this['_configService'][_0x19cfbd(0xe1)](Z))!=null?_0x4ac833:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x19cfbd(0x174)](_0xc198b0=>{var _0x256e73=_0x19cfbd;this[_0x256e73(0x116)][_0x256e73(0xf0)]({'eventID':_[_0x256e73(0xd5)][_0x256e73(0x181)],'data':{'unitID':this['_unitID'],'operations':{[_0xc198b0['id']]:{'id':_0xc198b0['id'],'params':JSON['stringify'](_0xc198b0[_0x256e73(0xda)])}}}},this[_0x256e73(0x1a7)]);})),_0x4bde92[_0x19cfbd(0x17d)](_0x2b2ad8);})),this[_0x5210f7(0x194)]['getInitialStates'](this[_0x5210f7(0x1a7)])['forEach'](_0x3fd38a=>this[_0x5210f7(0x116)][_0x5210f7(0xf0)]({'eventID':_[_0x5210f7(0xd5)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x3fd38a['id']]:{'id':_0x3fd38a['id'],'params':JSON['stringify'](_0x3fd38a[_0x5210f7(0xda)])}}}},this[_0x5210f7(0x1a7)]));}[_0x4af0c9(0x12e)](){var _0x530a3f=_0x4af0c9,_0x2591a7;this[_0x530a3f(0x133)]['next']('idle'),(_0x2591a7=this[_0x530a3f(0x12c)])==null||_0x2591a7[_0x530a3f(0x15f)](),this[_0x530a3f(0x12c)]=null;}['_startFollowing'](){var _0x24ebd1=_0x4af0c9,_0x3ebe4a;(_0x3ebe4a=this[_0x24ebd1(0x12c)])==null||_0x3ebe4a['dispose'](),this['_status$'][_0x24ebd1(0x17d)](_0x24ebd1(0x13e));}[_0x4af0c9(0x180)](){var _0x35d90d=_0x4af0c9,_0x22f7e4;this[_0x35d90d(0x133)][_0x35d90d(0x17d)](_0x35d90d(0x169)),(_0x22f7e4=this[_0x35d90d(0x12c)])==null||_0x22f7e4[_0x35d90d(0x15f)](),this[_0x35d90d(0x12c)]=null;}[_0x4af0c9(0x156)](){var _0xb7f503=_0x4af0c9,_0x49bca2;this[_0xb7f503(0x133)][_0xb7f503(0x17d)](_0xb7f503(0xbf)),(_0x49bca2=this[_0xb7f503(0x12c)])==null||_0x49bca2[_0xb7f503(0x15f)]();}[_0x4af0c9(0xcd)](_0x4403bd){var _0xc36367=_0x4af0c9;if([_0xc36367(0x15e),_0xc36367(0xbf),'offline'][_0xc36367(0x198)](this['_status'])||!_0x4403bd[_0xc36367(0x14b)][_0xc36367(0x19b)]||_0x4403bd[_0xc36367(0x14b)][_0xc36367(0x19b)]===this[_0xc36367(0x116)][_0xc36367(0x1a4)]())return;this[_0xc36367(0x1a6)]===_0xc36367(0x169)&&this['_startFollowing']();const _0x3222df=_0x4403bd[_0xc36367(0x14b)][_0xc36367(0x178)];Object['values'](_0x3222df)[_0xc36367(0x152)](_0x5e17a8=>{var _0x35b6b0=_0xc36367;this[_0x35b6b0(0x147)][_0x35b6b0(0x131)](_0x5e17a8['id'],_0x5e17a8[_0x35b6b0(0xda)]?JSON[_0x35b6b0(0xec)](_0x5e17a8[_0x35b6b0(0xda)]):null,{'fromCollab':!0x0});});}[_0x4af0c9(0x141)](){var _0x55ffb4=_0x4af0c9,_0x4eaf3b;this[_0x55ffb4(0x133)][_0x55ffb4(0x17d)](_0x55ffb4(0x12a)),(_0x4eaf3b=this['_commandDisposable'])==null||_0x4eaf3b[_0x55ffb4(0x15f)]();}[_0x4af0c9(0xdf)](){var _0x288ea7=_0x4af0c9;this[_0x288ea7(0x133)]['next'](_0x288ea7(0x169)),this[_0x288ea7(0x16c)]();}},exports[_0x4af0c9(0x135)]=R([S(0x2,o[_0x4af0c9(0x15c)]),S(0x3,o[_0x4af0c9(0x168)](O)),S(0x4,o[_0x4af0c9(0x138)])],exports[_0x4af0c9(0x135)]);function A(){var _0x48c778=_0x4af0c9;const _0xb78643=p[_0x48c778(0x175)](exports['LiveShareController']),_0x15d815=p[_0x48c778(0x175)](o[_0x48c778(0xc7)]),_0x2c7074=p[_0x48c778(0x10b)](()=>_0x15d815[_0x48c778(0xed)](o['UniverInstanceType'][_0x48c778(0xfd)]),void 0x0,!0x1,[]),[_0xdc9271,_0x3bcba3]=f[_0x48c778(0x1a5)](null),[_0x22e74b,_0x144a53]=f[_0x48c778(0x1a5)](h['IDLE']),_0x152c21=f[_0x48c778(0x106)](null);return f[_0x48c778(0x109)](()=>(_0x2c7074&&_0xb78643['getLiveShareCoordinator'](_0x2c7074[_0x48c778(0x10a)]())['then'](_0x3206a7=>{var _0x4b109f=_0x48c778;_0x3bcba3(_0x3206a7),_0x152c21[_0x4b109f(0x171)]=_0x3206a7['status$'][_0x4b109f(0x174)](_0x81f8d2=>{_0x144a53(_0x81f8d2);});}),()=>{var _0x17f109=_0x48c778,_0x292350;(_0x292350=_0x152c21[_0x17f109(0x171)])==null||_0x292350[_0x17f109(0x197)](),_0x152c21[_0x17f109(0x171)]=null;}),[_0x2c7074,_0xb78643]),_0xdc9271?l[_0x48c778(0x176)](g['Dropdown'],{'align':'end','disabled':_0x22e74b===h[_0x48c778(0x163)],'className':_0x48c778(0x186),'overlay':l['jsx'](K,{'status':_0x22e74b,'coordinator':_0xdc9271}),'children':l[_0x48c778(0x176)](_0x48c778(0x120),{'className':g[_0x48c778(0xf5)](_0x48c778(0x124),{'univer-cursor-not-allowed':_0x22e74b===h[_0x48c778(0x163)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x22e74b!==h[_0x48c778(0x163)]}),'type':_0x48c778(0x120),'children':l[_0x48c778(0x176)](P,{'className':_0x48c778(0xe7)})})}):null;}function K(_0x3a2f33){var _0x45067e=_0x4af0c9;const {status:_0x227ff3,coordinator:_0x4f53c0}=_0x3a2f33;switch(_0x227ff3){case h['IDLE']:return l[_0x45067e(0x176)](z,{'coordinator':_0x4f53c0});case h[_0x45067e(0xde)]:return l[_0x45067e(0x176)](Q,{'coordinator':_0x4f53c0});case h['NOT_FOLLOWING']:return l[_0x45067e(0x176)](X,{'coordinator':_0x4f53c0});case h['OFFLINE']:return l[_0x45067e(0x176)](te,{});case h[_0x45067e(0x137)]:return l[_0x45067e(0x176)](ee,{'coordinator':_0x4f53c0});default:return null;}}function z(_0x505bce){var _0x345b99=_0x4af0c9;const {coordinator:_0xe70d89}=_0x505bce;return l['jsxs'](l['Fragment'],{'children':[l['jsx'](_0x345b99(0x1a1),{'className':_0x345b99(0xdc),'children':'Present\x20this\x20document'}),l['jsx'](g[_0x345b99(0x158)],{'onClick':()=>_0xe70d89['tryStartPresenting'](),'children':_0x345b99(0x15a)})]});}function Q(_0x1b9481){var _0x58fcfa=_0x4af0c9;const {coordinator:_0x32a8a9}=_0x1b9481;return l[_0x58fcfa(0x170)](l[_0x58fcfa(0x125)],{'children':[l['jsx']('div',{'className':_0x58fcfa(0xdc),'children':_0x58fcfa(0x157)}),l['jsx'](g[_0x58fcfa(0x158)],{'onClick':()=>_0x32a8a9[_0x58fcfa(0x11c)](),'children':_0x58fcfa(0xc0)})]});}function X(_0x4cd052){var _0xf875f6=_0x4af0c9;const {coordinator:_0x56a3e7}=_0x4cd052;return l[_0xf875f6(0x170)](l[_0xf875f6(0x125)],{'children':[l[_0xf875f6(0x176)](_0xf875f6(0x1a1),{'className':_0xf875f6(0xdc),'children':_0xf875f6(0xc3)}),l['jsx'](g[_0xf875f6(0x158)],{'variant':'text','onClick':()=>_0x56a3e7['startFollowing'](),'children':_0xf875f6(0x193)})]});}function ee(_0x1b121d){var _0x83e3ed=_0x4af0c9;const {coordinator:_0x45adf2}=_0x1b121d;return l[_0x83e3ed(0x170)](l['Fragment'],{'children':[l[_0x83e3ed(0x176)](_0x83e3ed(0x1a1),{'className':_0x83e3ed(0xdc),'children':_0x83e3ed(0x14e)}),l[_0x83e3ed(0x176)](g[_0x83e3ed(0x158)],{'variant':_0x83e3ed(0x167),'onClick':()=>_0x45adf2[_0x83e3ed(0x19e)](),'children':_0x83e3ed(0x100)})]});}function te(){var _0x205f23=_0x4af0c9;return l[_0x205f23(0x176)](l[_0x205f23(0x125)],{'children':_0x205f23(0x102)});}var ie=Object[_0x4af0c9(0x150)],ne=(_0x12c247,_0x5ce651,_0x2b53db,_0x54946d)=>{var _0x5a070b=_0x4af0c9;for(var _0x283bd0=_0x54946d>0x1?void 0x0:_0x54946d?ie(_0x5ce651,_0x2b53db):_0x5ce651,_0x1fa412=_0x12c247[_0x5a070b(0x14a)]-0x1,_0x3c332f;_0x1fa412>=0x0;_0x1fa412--)(_0x3c332f=_0x12c247[_0x1fa412])&&(_0x283bd0=_0x3c332f(_0x283bd0)||_0x283bd0);return _0x283bd0;},L=(_0xaac4d,_0xabea90)=>(_0xf5ff01,_0x14d47)=>_0xabea90(_0xf5ff01,_0x14d47,_0xaac4d);exports[_0x4af0c9(0xe6)]=class extends o[_0x4af0c9(0x13f)]{constructor(_0x551d5a,_0x457f47){var _0x59c34a=_0x4af0c9;super(),this[_0x59c34a(0x18b)]=_0x551d5a,this[_0x59c34a(0x118)]=_0x457f47,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x3d8725=_0x4af0c9;this[_0x3d8725(0xcf)](this[_0x3d8725(0x118)][_0x3d8725(0x140)](p[_0x3d8725(0x162)][_0x3d8725(0x10d)],()=>p['connectInjector'](A,this['_injector'])));}},exports[_0x4af0c9(0xe6)]=ne([L(0x0,o['Inject'](o['Injector'])),L(0x1,p[_0x4af0c9(0x128)])],exports[_0x4af0c9(0xe6)]);function _0x46d3(_0x26fc40,_0x522d07){var _0x245e2f=_0x245e();return _0x46d3=function(_0x46d32a,_0x2ad886){_0x46d32a=_0x46d32a-0xbf;var _0x354af3=_0x245e2f[_0x46d32a];return _0x354af3;},_0x46d3(_0x26fc40,_0x522d07);}var re=Object[_0x4af0c9(0x148)],se=Object[_0x4af0c9(0x150)],oe=(_0x5bc504,_0x3fc4d6,_0x395f2a)=>_0x3fc4d6 in _0x5bc504?re(_0x5bc504,_0x3fc4d6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x395f2a}):_0x5bc504[_0x3fc4d6]=_0x395f2a,ae=(_0x289c72,_0x3e5804,_0x22317e,_0x12776a)=>{var _0x158f51=_0x4af0c9;for(var _0x56812c=_0x12776a>0x1?void 0x0:_0x12776a?se(_0x3e5804,_0x22317e):_0x3e5804,_0x298a52=_0x289c72[_0x158f51(0x14a)]-0x1,_0x21975c;_0x298a52>=0x0;_0x298a52--)(_0x21975c=_0x289c72[_0x298a52])&&(_0x56812c=_0x21975c(_0x56812c)||_0x56812c);return _0x56812c;},N=(_0x79e0cb,_0x4a762e)=>(_0x493aab,_0x35dc2d)=>_0x4a762e(_0x493aab,_0x35dc2d,_0x79e0cb),T=(_0x14e418,_0x527918,_0x2d202f)=>oe(_0x14e418,typeof _0x527918!=_0x4af0c9(0x165)?_0x527918+'':_0x527918,_0x2d202f);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x4af0c9(0xd4)]=class extends o['Plugin']{constructor(_0x3cb663=x,_0x33cd89,_0x49c591){var _0x23ea68=_0x4af0c9;super(),this['_config']=_0x3cb663,this[_0x23ea68(0x18b)]=_0x33cd89,this[_0x23ea68(0xe8)]=_0x49c591;const {..._0x34a223}=o[_0x23ea68(0x1a0)]({},x,this[_0x23ea68(0x122)]);this['_configService'][_0x23ea68(0x117)]($,_0x34a223);}[_0x4af0c9(0x13d)](){var _0x159529=_0x4af0c9;o['registerDependencies'](this[_0x159529(0x18b)],o[_0x159529(0xf2)]([[O],[exports[_0x159529(0xd7)]],[E],[exports['DesktopLiveShareController']]],this[_0x159529(0x122)]['override'])),o['touchDependencies'](this[_0x159529(0x18b)],[[E]]);}[_0x4af0c9(0xd1)](){var _0x46f280=_0x4af0c9;o['touchDependencies'](this[_0x46f280(0x18b)],[[exports[_0x46f280(0xe6)]]]);}},T(exports[_0x4af0c9(0xd4)],'type',o['UniverInstanceType'][_0x4af0c9(0xf6)]),T(exports[_0x4af0c9(0xd4)],_0x4af0c9(0x17a),le),exports[_0x4af0c9(0xd4)]=ae([o[_0x4af0c9(0x14f)](m[_0x4af0c9(0x142)]),N(0x1,o[_0x4af0c9(0x168)](o['Injector'])),N(0x2,o[_0x4af0c9(0x15c)])],exports[_0x4af0c9(0xd4)]),exports['LiveShare']=A,exports[_0x4af0c9(0x113)]=O,exports[_0x4af0c9(0xe2)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x829f68=_0x470a;(function(_0x1b62b0,_0x133293){var _0x1b643a=_0x470a,_0x2f8c38=_0x1b62b0();while(!![]){try{var _0x59ee28=parseInt(_0x1b643a(0x188))/0x1+-parseInt(_0x1b643a(0x194))/0x2+-parseInt(_0x1b643a(0x1ac))/0x3*(-parseInt(_0x1b643a(0x154))/0x4)+-parseInt(_0x1b643a(0x1e1))/0x5+parseInt(_0x1b643a(0x151))/0x6+-parseInt(_0x1b643a(0x1f2))/0x7*(-parseInt(_0x1b643a(0x16c))/0x8)+-parseInt(_0x1b643a(0x190))/0x9*(parseInt(_0x1b643a(0x1c9))/0xa);if(_0x59ee28===_0x133293)break;else _0x2f8c38['push'](_0x2f8c38['shift']());}catch(_0x195f4d){_0x2f8c38['push'](_0x2f8c38['shift']());}}}(_0x14a1,0x4b65a));var q=Object[_0x829f68(0x1d0)],z=(_0x393d91,_0x1fe6cb,_0x208465)=>_0x1fe6cb in _0x393d91?q(_0x393d91,_0x1fe6cb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x208465}):_0x393d91[_0x1fe6cb]=_0x208465,d=(_0x4b3774,_0x38f88d,_0x4c39aa)=>z(_0x4b3774,typeof _0x38f88d!=_0x829f68(0x1f4)?_0x38f88d+'':_0x38f88d,_0x4c39aa);import{CollaborationSessionService as _0x2895bc,SessionStatus as _0x1b6e8a,UniverCollaborationClientPlugin as _0x52511b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x29cf92,toDisposable as _0x44c1a7,Inject as _0x4cd37e,IUniverInstanceService as _0x5b4a3c,Injector as _0x3a53ed,IConfigService as _0x1fcd08,ICommandService as _0x35b5c9,RxDisposable as _0x35f9fd,UniverInstanceType as _0x499b8f,DisposableCollection as _0x5e2522,CommandType as _0x5612b3,DependentOn as _0x4df1cf,Plugin as _0x5bf096,merge as _0xf2ec51,registerDependencies as _0x549882,mergeOverrideWithDependencies as _0x206824,touchDependencies as _0x1d4462}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1f5bd4,InsertSheetMutation as _0x31cd8a}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x397f77,SetScrollOperation as _0x8914e7}from'@univerjs/sheets-ui';import{useDependency as _0x261508,useObservable as _0x59ae5a,IUIPartsService as _0x2e9b6a,BuiltInUIPart as _0x848d96,connectInjector as _0x4671d8}from'@univerjs/ui';import{jsx as _0x117f47,jsxs as _0x495cee,Fragment as _0xa8e072}from'react/jsx-runtime';import{Dropdown as _0x43c7d6,clsx as _0x31597b,Button as _0x1a13f6}from'@univerjs/design';import{forwardRef as _0x43d7ec,useRef as _0x1d4b4e,createElement as _0x3e639a,useState as _0x17fcc6,useEffect as _0x52faa4}from'react';import{CollaborationEvent as _0x5a70bb,parseProtocolChangeset as _0x3ee105}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xc24f1d,Subject as _0xf18be7}from'rxjs';import{takeUntil as _0x4ee282,throttleTime as _0xf6ef8e}from'rxjs/operators';const Oe=_0x829f68(0x1a1),T={};class L extends _0x29cf92{constructor(){var _0x414ed4=_0x829f68;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x414ed4(0x19a),new Set());}[_0x829f68(0x17e)](_0xee29be){var _0x41f66b=_0x829f68;return this[_0x41f66b(0x166)][_0x41f66b(0x1ce)](_0xee29be),_0x44c1a7(()=>this['_sharedOperations'][_0x41f66b(0x171)](_0xee29be));}[_0x829f68(0x1f8)](_0x4f81f1){var _0x240d9e=_0x829f68;return this['_reporters'][_0x240d9e(0x1ce)](_0x4f81f1),_0x44c1a7(()=>this[_0x240d9e(0x19a)][_0x240d9e(0x171)](_0x4f81f1));}['shouldShareOperation'](_0x139b31){var _0x5cd7b8=_0x829f68;return this[_0x5cd7b8(0x166)][_0x5cd7b8(0x1e5)](_0x139b31);}[_0x829f68(0x176)](_0x2a6c8a){var _0x279ce5=_0x829f68;return Array[_0x279ce5(0x1e8)](this[_0x279ce5(0x19a)])[_0x279ce5(0x1c2)](_0x588f33=>_0x588f33(_0x2a6c8a));}}var Ee=Object[_0x829f68(0x1ab)],we=(_0x148b03,_0x408e15,_0x289696,_0x37cd4d)=>{var _0x5dfcab=_0x829f68;for(var _0x446969=_0x37cd4d>0x1?void 0x0:_0x37cd4d?Ee(_0x408e15,_0x289696):_0x408e15,_0x4a4a39=_0x148b03[_0x5dfcab(0x149)]-0x1,_0x5d9b33;_0x4a4a39>=0x0;_0x4a4a39--)(_0x5d9b33=_0x148b03[_0x4a4a39])&&(_0x446969=_0x5d9b33(_0x446969)||_0x446969);return _0x446969;},Ne=(_0x10b0d8,_0x35f7f1)=>(_0x66d43d,_0xf29ca7)=>_0x35f7f1(_0x66d43d,_0xf29ca7,_0x10b0d8);let m=class extends _0x29cf92{constructor(_0x24737e){var _0x257020=_0x829f68;super(),this[_0x257020(0x1a0)]=_0x24737e,this[_0x257020(0x183)]();}[_0x829f68(0x183)](){var _0x2b0afa=_0x829f68;[_0x397f77['id'],_0x8914e7['id'],_0x1f5bd4['id']][_0x2b0afa(0x1e3)](_0x491838=>{var _0x511a82=_0x2b0afa;this['disposeWithMe'](this[_0x511a82(0x1a0)][_0x511a82(0x17e)](_0x491838));});}};function _0x14a1(){var _0x2d4a91=['none','You\x27re\x20following\x20the\x20presenter','stopFollowing','set','_config','createInstance','function','ONLINE','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','_startFollowing','requireSession','UNIVER_UNKNOWN','pipe','You\x27are\x20offline.','toString','965405jbXESi','_beIdle','forEach','subscribe','has','following','disposeWithMe','from','indexOf','url(#$1','status$','UNIVER_LIVE_SHARE_PLUGIN','_handleOperation','tag','getLiveShareCoordinator','data','onStarting','21pUqmNm','entries','symbol','live-share-icon','presenting','colorChannel1','registerInitialStateReporter','extend','_presenter','length','_uiPartsService','NOT_FOLLOWING','LIVESHARE_REQUEST_HOST','use','executeCommand','parse','getConfig','2236320pWKKOy','attrs','Stop\x20following','4RRAkHd','idle','getValue','find','_configService','_handleNewHost','_fetchOperations','concat','end','children','asObservable','_commandService','_injector','offline','OFFLINE','_status','operations','getCurrentTypeOfUnit$','_sharedOperations','univer-w-full\x20univer-mb-3\x20univer-text-sm','getMemberID','1em','registerComponent','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','73312eWkgtB','dispose','override','unsubscribe','UNIVER_SHEET','delete','type','get','setConfig','svg','getInitialStates','_entities','_status$','SAME_OPERATION_SHARE_INTERVAL','button','div','evenodd','_startLiveShareCoordinator','registerSharedOperation','assign','LIVESHARE_OPERATION','mask','string','_init','sessionStatus$','_handleNewChangeSets','IDLE','getTypeOfUnitAdded$','507952hTpvFR','_collabSession','defIds','current','includes','_stopPresenting','apply','hasOwnProperty','220149HAimux','idSuffix','icon','send','343654Kwuqfb','NEW_CHANGESETS','_commandDisposable','_mountLiveShare','next','_handleOnline','_reporters','stringify','_univerInstanceService','HEADER_MENU','init','call','_liveShareService','live-share.config','text','stopPresenting','_collabSessionService','Start','propertyIsEnumerable','getUnitId','You\x27re\x20presenting\x20the\x20document','trim','_unitID','getOwnPropertyDescriptor','690987EfKOvY','currentColor','complete','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','pluginName','OPERATION','params','displayName','0\x200\x2017\x2017','_startPresenting','tryStartPresenting','univer-size-4','className','defs','path','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','LIVESHARE_NEW_HOST','_stopFollowing','prototype','PRESENTING','getOwnPropertySymbols','map','_handleOffline','substring','then','LIVESHARE_TERMINATE','mutations','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','190TNmoBp','xlink:href','dispose$','default','values','add','not-following','defineProperty','FOLLOWING'];_0x14a1=function(){return _0x2d4a91;};return _0x14a1();}m=we([Ne(0x0,_0x4cd37e(L))],m);var c=function(){var _0x159da1=_0x829f68;return c=Object[_0x159da1(0x17f)]||function(_0x1bfd08){var _0x43293b=_0x159da1;for(var _0x4d91a4,_0x38a534=0x1,_0x470dcd=arguments[_0x43293b(0x149)];_0x38a534<_0x470dcd;_0x38a534++){_0x4d91a4=arguments[_0x38a534];for(var _0x6c7c76 in _0x4d91a4)Object[_0x43293b(0x1bf)][_0x43293b(0x18f)][_0x43293b(0x19f)](_0x4d91a4,_0x6c7c76)&&(_0x1bfd08[_0x6c7c76]=_0x4d91a4[_0x6c7c76]);}return _0x1bfd08;},c[_0x159da1(0x18e)](this,arguments);},Ce=function(_0x4c129e,_0x21c7d4){var _0x359ae2=_0x829f68,_0x54aab1={};for(var _0x1dca96 in _0x4c129e)Object[_0x359ae2(0x1bf)][_0x359ae2(0x18f)]['call'](_0x4c129e,_0x1dca96)&&_0x21c7d4[_0x359ae2(0x1e9)](_0x1dca96)<0x0&&(_0x54aab1[_0x1dca96]=_0x4c129e[_0x1dca96]);if(_0x4c129e!=null&&typeof Object[_0x359ae2(0x1c1)]==_0x359ae2(0x1d8)){for(var _0x31377d=0x0,_0x1dca96=Object[_0x359ae2(0x1c1)](_0x4c129e);_0x31377d<_0x1dca96[_0x359ae2(0x149)];_0x31377d++)_0x21c7d4[_0x359ae2(0x1e9)](_0x1dca96[_0x31377d])<0x0&&Object['prototype'][_0x359ae2(0x1a6)][_0x359ae2(0x19f)](_0x4c129e,_0x1dca96[_0x31377d])&&(_0x54aab1[_0x1dca96[_0x31377d]]=_0x4c129e[_0x1dca96[_0x31377d]]);}return _0x54aab1;},W=_0x43d7ec(function(_0xc936be,_0x46c0b2){var _0x5af54b=_0x829f68,_0x5144ae=_0xc936be[_0x5af54b(0x192)],_0x506f44=_0xc936be['id'],_0x294c30=_0xc936be[_0x5af54b(0x1b9)],_0x42732c=_0xc936be[_0x5af54b(0x1f9)],_0x5e5771=Ce(_0xc936be,[_0x5af54b(0x192),'id',_0x5af54b(0x1b9),'extend']),_0xc830d2='univerjs-icon\x20univerjs-icon-'[_0x5af54b(0x15b)](_0x506f44,'\x20')[_0x5af54b(0x15b)](_0x294c30||'')[_0x5af54b(0x1a9)](),_0x3c46f6=_0x1d4b4e('_'['concat'](Le()));return Y(_0x5144ae,''[_0x5af54b(0x15b)](_0x506f44),{'defIds':_0x5144ae[_0x5af54b(0x18a)],'idSuffix':_0x3c46f6['current']},c({'ref':_0x46c0b2,'className':_0xc830d2},_0x5e5771),_0x42732c);});function Y(_0x20da82,_0x4f0961,_0x542844,_0xeba0a2,_0x6e0e2d){var _0x2ead14=_0x829f68;return _0x3e639a(_0x20da82[_0x2ead14(0x1ee)],c(c({'key':_0x4f0961},De(_0x20da82,_0x542844,_0x6e0e2d)),_0xeba0a2),(xe(_0x20da82,_0x542844)[_0x2ead14(0x15d)]||[])[_0x2ead14(0x1c2)](function(_0x36cf38,_0x7cfb4f){var _0x153a18=_0x2ead14;return Y(_0x36cf38,''[_0x153a18(0x15b)](_0x4f0961,'-')[_0x153a18(0x15b)](_0x20da82['tag'],'-')[_0x153a18(0x15b)](_0x7cfb4f),_0x542844,void 0x0,_0x6e0e2d);}));}function De(_0x5133af,_0x385412,_0x2c1a7a){var _0x25767d=_0x829f68,_0x29c29a=c({},_0x5133af['attrs']);_0x2c1a7a!=null&&_0x2c1a7a[_0x25767d(0x1f7)]&&_0x29c29a['fill']==='colorChannel1'&&(_0x29c29a['fill']=_0x2c1a7a[_0x25767d(0x1f7)]),_0x5133af[_0x25767d(0x1ee)]===_0x25767d(0x181)&&_0x29c29a['id']&&(_0x29c29a['id']=_0x29c29a['id']+_0x385412['idSuffix']),Object['entries'](_0x29c29a)[_0x25767d(0x1e3)](function(_0x533573){var _0x19d00f=_0x25767d,_0x3c039b=_0x533573[0x0],_0x521265=_0x533573[0x1];_0x3c039b===_0x19d00f(0x181)&&typeof _0x521265=='string'&&(_0x29c29a[_0x3c039b]=_0x521265['replace'](/url\(#(.*)\)/,_0x19d00f(0x1ea)[_0x19d00f(0x15b)](_0x385412[_0x19d00f(0x191)],')')));});var _0x11d83f=_0x385412[_0x25767d(0x18a)];return!_0x11d83f||_0x11d83f[_0x25767d(0x149)]===0x0||(_0x5133af[_0x25767d(0x1ee)]===_0x25767d(0x14d)&&_0x29c29a['xlink:href']&&(_0x29c29a[_0x25767d(0x1ca)]=_0x29c29a['xlink:href']+_0x385412[_0x25767d(0x191)]),Object[_0x25767d(0x1f3)](_0x29c29a)[_0x25767d(0x1e3)](function(_0x2aac63){var _0x5f5a9c=_0x25767d,_0xb02522=_0x2aac63[0x0],_0x27f45a=_0x2aac63[0x1];typeof _0x27f45a==_0x5f5a9c(0x182)&&(_0x29c29a[_0xb02522]=_0x27f45a['replace'](/url\(#(.*)\)/,_0x5f5a9c(0x1ea)[_0x5f5a9c(0x15b)](_0x385412[_0x5f5a9c(0x191)],')')));})),_0x29c29a;}function xe(_0x1f6e4b,_0x419a71){var _0x1a1472=_0x829f68,_0x280968,_0xc52f59=_0x419a71[_0x1a1472(0x18a)];return!_0xc52f59||_0xc52f59['length']===0x0?_0x1f6e4b:_0x1f6e4b[_0x1a1472(0x1ee)]===_0x1a1472(0x1ba)&&(!((_0x280968=_0x1f6e4b[_0x1a1472(0x15d)])===null||_0x280968===void 0x0)&&_0x280968[_0x1a1472(0x149)])?c(c({},_0x1f6e4b),{'children':_0x1f6e4b[_0x1a1472(0x15d)][_0x1a1472(0x1c2)](function(_0x4b27ec){var _0x3cd776=_0x1a1472;return typeof _0x4b27ec['attrs']['id']==_0x3cd776(0x182)&&_0xc52f59&&_0xc52f59[_0x3cd776(0x18c)](_0x4b27ec[_0x3cd776(0x152)]['id'])?c(c({},_0x4b27ec),{'attrs':c(c({},_0x4b27ec[_0x3cd776(0x152)]),{'id':_0x4b27ec['attrs']['id']+_0x419a71[_0x3cd776(0x191)]})}):_0x4b27ec;})}):_0x1f6e4b;}function Le(){var _0xd4b7e9=_0x829f68;return Math['random']()[_0xd4b7e9(0x1e0)](0x24)[_0xd4b7e9(0x1c4)](0x2,0x8);}W[_0x829f68(0x1b4)]='UniverIcon';var ye={'tag':_0x829f68(0x175),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x829f68(0x1d2),'viewBox':_0x829f68(0x1b5),'width':'1em','height':_0x829f68(0x169)},'children':[{'tag':_0x829f68(0x1bb),'attrs':{'fill':'currentColor','d':_0x829f68(0x16b)}},{'tag':_0x829f68(0x1bb),'attrs':{'fill':_0x829f68(0x1ad),'d':_0x829f68(0x1da),'fillRule':_0x829f68(0x17c),'clipRule':_0x829f68(0x17c)}}]},B=_0x43d7ec(function(_0x4373e4,_0x275311){var _0x20d794=_0x829f68;return _0x3e639a(W,Object[_0x20d794(0x17f)]({},_0x4373e4,{'id':_0x20d794(0x1f5),'ref':_0x275311,'icon':ye}));});B['displayName']='LiveShareIcon';function _0x470a(_0x17b372,_0x4ad476){var _0x14a16f=_0x14a1();return _0x470a=function(_0x470ad8,_0x3e4db8){_0x470ad8=_0x470ad8-0x148;var _0x4be86d=_0x14a16f[_0x470ad8];return _0x4be86d;},_0x470a(_0x17b372,_0x4ad476);}var Re=Object[_0x829f68(0x1ab)],Z=(_0x4fe9ce,_0x1a2629,_0x38afb7,_0x38b233)=>{var _0x58bfba=_0x829f68;for(var _0x274cd5=_0x38b233>0x1?void 0x0:_0x38b233?Re(_0x1a2629,_0x38afb7):_0x1a2629,_0x332cb6=_0x4fe9ce[_0x58bfba(0x149)]-0x1,_0x4383a3;_0x332cb6>=0x0;_0x332cb6--)(_0x4383a3=_0x4fe9ce[_0x332cb6])&&(_0x274cd5=_0x4383a3(_0x274cd5)||_0x274cd5);return _0x274cd5;},f=(_0x36873e,_0x3ac2ce)=>(_0x3228cc,_0x46a6a3)=>_0x3ac2ce(_0x3228cc,_0x46a6a3,_0x36873e);let I=class extends _0x35f9fd{constructor(_0x4f0780,_0x3aa08c,_0x17ae6c){var _0x3558b7=_0x829f68;super(),d(this,_0x3558b7(0x177),new Map()),(this[_0x3558b7(0x19c)]=_0x4f0780,this[_0x3558b7(0x160)]=_0x3aa08c,this['_collabSessionService']=_0x17ae6c,this[_0x3558b7(0x183)]());}async[_0x829f68(0x1ef)](_0x14b7a3){var _0x1c8e8c=_0x829f68;return this[_0x1c8e8c(0x177)][_0x1c8e8c(0x1e5)](_0x14b7a3)||await this[_0x1c8e8c(0x17d)](_0x14b7a3),this[_0x1c8e8c(0x177)][_0x1c8e8c(0x173)](_0x14b7a3);}[_0x829f68(0x183)](){var _0x3f8eee=_0x829f68;this['_univerInstanceService'][_0x3f8eee(0x187)](_0x499b8f[_0x3f8eee(0x170)])['pipe'](_0x4ee282(this[_0x3f8eee(0x1cb)]))[_0x3f8eee(0x1e4)](async _0x453f89=>{var _0x12f138=_0x3f8eee;const _0x705915=_0x453f89[_0x12f138(0x1a7)]();this[_0x12f138(0x177)][_0x12f138(0x1e5)](_0x705915)||this[_0x12f138(0x17d)](_0x705915);}),this[_0x3f8eee(0x19c)]['getTypeOfUnitDisposed$'](_0x499b8f[_0x3f8eee(0x170)])[_0x3f8eee(0x1de)](_0x4ee282(this[_0x3f8eee(0x1cb)]))['subscribe'](_0x2a62c7=>{var _0x1d0a34=_0x3f8eee;const _0x27c986=_0x2a62c7[_0x1d0a34(0x1a7)](),_0x2f16ac=this['_entities']['get'](_0x27c986);_0x2f16ac==null||_0x2f16ac[_0x1d0a34(0x16d)]();});}async[_0x829f68(0x17d)](_0x1dd5e5){var _0x4e1ec2=_0x829f68;const _0x214c92=await this[_0x4e1ec2(0x1a4)][_0x4e1ec2(0x1dc)](_0x1dd5e5),_0x206163=this['_injector'][_0x4e1ec2(0x1d7)](C,_0x1dd5e5,_0x214c92);return _0x206163[_0x4e1ec2(0x19e)](),this[_0x4e1ec2(0x177)][_0x4e1ec2(0x1d5)](_0x1dd5e5,_0x206163),_0x206163;}};I=Z([f(0x0,_0x5b4a3c),f(0x1,_0x4cd37e(_0x3a53ed)),f(0x2,_0x4cd37e(_0x2895bc))],I);var h=(_0x56fb99=>(_0x56fb99[_0x829f68(0x162)]=_0x829f68(0x161),_0x56fb99[_0x829f68(0x186)]=_0x829f68(0x155),_0x56fb99['FOLLOWING']='following',_0x56fb99[_0x829f68(0x14b)]=_0x829f68(0x1cf),_0x56fb99[_0x829f68(0x1c0)]=_0x829f68(0x1f6),_0x56fb99))(h||{});const Pe=_0x829f68(0x179),Ae=0xc8;let C=class extends _0x35f9fd{constructor(_0x4f2c05,_0x3f5a5d,_0x5b85e2,_0x1ff76a,_0x13a6c6){var _0x1c8d85=_0x829f68;super(),d(this,_0x1c8d85(0x178),new _0xc24f1d(_0x1c8d85(0x155))),d(this,_0x1c8d85(0x1eb),this[_0x1c8d85(0x178)][_0x1c8d85(0x15e)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x1c8d85(0x148),null),(this[_0x1c8d85(0x1aa)]=_0x4f2c05,this[_0x1c8d85(0x189)]=_0x3f5a5d,this[_0x1c8d85(0x158)]=_0x5b85e2,this[_0x1c8d85(0x1a0)]=_0x1ff76a,this[_0x1c8d85(0x15f)]=_0x13a6c6);}get[_0x829f68(0x163)](){var _0x2c6b0a=_0x829f68;return this['_status$'][_0x2c6b0a(0x156)]();}[_0x829f68(0x16d)](){var _0x47ae05=_0x829f68,_0x38a285;(_0x38a285=this['_commandDisposable'])==null||_0x38a285[_0x47ae05(0x16d)](),this['_status$']['next'](_0x47ae05(0x155)),this[_0x47ae05(0x178)][_0x47ae05(0x1ae)]();}[_0x829f68(0x19e)](){var _0x2eb9fe=_0x829f68;this[_0x2eb9fe(0x183)]||(this[_0x2eb9fe(0x183)]=!0x0,this[_0x2eb9fe(0x189)][_0x2eb9fe(0x184)][_0x2eb9fe(0x1de)](_0x4ee282(this[_0x2eb9fe(0x1cb)]))[_0x2eb9fe(0x1e4)](_0x395ffb=>{var _0x588ca3=_0x2eb9fe;switch(_0x395ffb){case _0x1b6e8a['OFFLINE']:this['_handleOffline']();break;case _0x1b6e8a[_0x588ca3(0x1d9)]:this['_handleOnline']();break;}}),this['_collabSession']['event$'][_0x2eb9fe(0x1de)](_0x4ee282(this[_0x2eb9fe(0x1cb)]))[_0x2eb9fe(0x1e4)](_0x30c1f6=>{var _0x190aca=_0x2eb9fe;const {eventID:_0x68ccaf}=_0x30c1f6;switch(_0x68ccaf){case _0x5a70bb[_0x190aca(0x1bd)]:this[_0x190aca(0x159)](_0x30c1f6);break;case _0x5a70bb[_0x190aca(0x180)]:this[_0x190aca(0x1ed)](_0x30c1f6);break;case _0x5a70bb[_0x190aca(0x1c6)]:this[_0x190aca(0x1b0)]();break;case _0x5a70bb[_0x190aca(0x195)]:this[_0x190aca(0x185)](_0x30c1f6);break;}}));}[_0x829f68(0x1b7)](){var _0x346e8b=_0x829f68;this[_0x346e8b(0x189)][_0x346e8b(0x193)]({'eventID':_0x5a70bb[_0x346e8b(0x14c)],'data':{'unitID':this[_0x346e8b(0x1aa)],'userID':this[_0x346e8b(0x189)][_0x346e8b(0x168)]()}},this[_0x346e8b(0x1aa)]);}['stopPresenting'](){var _0x5f288b=_0x829f68;this[_0x5f288b(0x163)]===_0x5f288b(0x1f6)&&(this['_status$']['next']('idle'),this[_0x5f288b(0x189)][_0x5f288b(0x193)]({'eventID':_0x5a70bb[_0x5f288b(0x1c6)],'data':{'unitID':this[_0x5f288b(0x1aa)]}},this['_unitID']));}['startFollowing'](){var _0x47c86c=_0x829f68;this['_status']==='not-following'&&(this[_0x47c86c(0x178)][_0x47c86c(0x198)]('following'),this[_0x47c86c(0x1db)]());}[_0x829f68(0x1d4)](){var _0xfdf2dd=_0x829f68;this[_0xfdf2dd(0x163)]===_0xfdf2dd(0x1e6)&&this[_0xfdf2dd(0x1be)]();}[_0x829f68(0x159)](_0x3f4ab2){var _0x554e36=_0x829f68;const {presenter:_0x5cf521}=_0x3f4ab2[_0x554e36(0x1f0)],_0x37d4b3=this[_0x554e36(0x189)]['getMemberID']();this[_0x554e36(0x148)]=_0x5cf521,_0x5cf521===_0x37d4b3?(this[_0x554e36(0x1be)](),this['_startPresenting']()):this[_0x554e36(0x163)]!==_0x554e36(0x1cf)&&(this[_0x554e36(0x18d)](),this[_0x554e36(0x1db)]());}['_fetchOperations'](){var _0x1bc1cb=_0x829f68;const _0x39b946={'eventID':_0x5a70bb[_0x1bc1cb(0x1af)]};this[_0x1bc1cb(0x189)][_0x1bc1cb(0x193)](_0x39b946,this[_0x1bc1cb(0x1aa)]);}['_handleTerminate'](){var _0x5eb1c8=_0x829f68;this['_presenter']=null,this[_0x5eb1c8(0x163)]!==_0x5eb1c8(0x1f6)&&this[_0x5eb1c8(0x1e2)]();}[_0x829f68(0x185)](_0x51b267){var _0x22c077=_0x829f68;if(this['_status']===_0x22c077(0x1e6)&&this[_0x22c077(0x148)]===_0x51b267[_0x22c077(0x1f0)]['memberID']){const _0x57f823=_0x3ee105(_0x51b267['data'])[_0x22c077(0x1c7)]['reverse']()[_0x22c077(0x157)](_0x351504=>_0x351504['id']===_0x31cd8a['id']);if(_0x57f823){const _0x10ad1d=_0x57f823[_0x22c077(0x1b3)]['unitId'],_0x18e27f=_0x57f823['params']['sheet']['id'];setTimeout(()=>{var _0x5dbd1d=_0x22c077;this[_0x5dbd1d(0x15f)][_0x5dbd1d(0x14e)](_0x1f5bd4['id'],{'unitId':_0x10ad1d,'subUnitId':_0x18e27f},{'fromCollab':!0x0});});}}}[_0x829f68(0x1b6)](){var _0x1b2edb=_0x829f68;this[_0x1b2edb(0x178)][_0x1b2edb(0x198)](_0x1b2edb(0x1f6));const _0x66c8b6=new Map(),_0x5eb2bd=this[_0x1b2edb(0x196)]=new _0x5e2522();_0x5eb2bd[_0x1b2edb(0x1ce)](_0x44c1a7(()=>{var _0x235aed=_0x1b2edb;_0x66c8b6[_0x235aed(0x1e3)](_0x25292a=>_0x25292a[_0x235aed(0x1ae)]()),_0x66c8b6['clear']();})),_0x5eb2bd[_0x1b2edb(0x1ce)](this['_commandService']['onCommandExecuted'](_0x44130d=>{var _0x3e06e5=_0x1b2edb,_0x4d138d;if(_0x44130d[_0x3e06e5(0x172)]!==_0x5612b3[_0x3e06e5(0x1b2)]||!this[_0x3e06e5(0x1a0)]['shouldShareOperation'](_0x44130d['id']))return;const {id:_0x418294}=_0x44130d;let _0x3bb9c9;_0x66c8b6[_0x3e06e5(0x1e5)](_0x418294)?_0x3bb9c9=_0x66c8b6[_0x3e06e5(0x173)](_0x418294):(_0x3bb9c9=new _0xf18be7(),_0x66c8b6['set'](_0x418294,_0x3bb9c9),_0x3bb9c9[_0x3e06e5(0x1de)](_0xf6ef8e((_0x4d138d=this['_configService'][_0x3e06e5(0x150)](Pe))!=null?_0x4d138d:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2cce0e=>{var _0x413e6b=_0x3e06e5;this[_0x413e6b(0x189)][_0x413e6b(0x193)]({'eventID':_0x5a70bb[_0x413e6b(0x180)],'data':{'unitID':this['_unitID'],'operations':{[_0x2cce0e['id']]:{'id':_0x2cce0e['id'],'params':JSON[_0x413e6b(0x19b)](_0x2cce0e[_0x413e6b(0x1b3)])}}}},this[_0x413e6b(0x1aa)]);})),_0x3bb9c9[_0x3e06e5(0x198)](_0x44130d);})),this['_liveShareService'][_0x1b2edb(0x176)](this[_0x1b2edb(0x1aa)])[_0x1b2edb(0x1e3)](_0x55bba5=>this['_collabSession'][_0x1b2edb(0x193)]({'eventID':_0x5a70bb[_0x1b2edb(0x180)],'data':{'unitID':this[_0x1b2edb(0x1aa)],'operations':{[_0x55bba5['id']]:{'id':_0x55bba5['id'],'params':JSON['stringify'](_0x55bba5[_0x1b2edb(0x1b3)])}}}},this['_unitID']));}[_0x829f68(0x18d)](){var _0x26b6d8=_0x829f68,_0x310d70;this[_0x26b6d8(0x178)][_0x26b6d8(0x198)]('idle'),(_0x310d70=this[_0x26b6d8(0x196)])==null||_0x310d70['dispose'](),this[_0x26b6d8(0x196)]=null;}['_startFollowing'](){var _0x51cfa5=_0x829f68,_0x8f1b87;(_0x8f1b87=this[_0x51cfa5(0x196)])==null||_0x8f1b87[_0x51cfa5(0x16d)](),this['_status$'][_0x51cfa5(0x198)](_0x51cfa5(0x1e6));}[_0x829f68(0x1e2)](){var _0x25a395=_0x829f68,_0x1a6e4b;this[_0x25a395(0x178)][_0x25a395(0x198)](_0x25a395(0x155)),(_0x1a6e4b=this[_0x25a395(0x196)])==null||_0x1a6e4b[_0x25a395(0x16d)](),this['_commandDisposable']=null;}[_0x829f68(0x1be)](){var _0x3871a9=_0x829f68,_0x404a60;this[_0x3871a9(0x178)][_0x3871a9(0x198)](_0x3871a9(0x1cf)),(_0x404a60=this[_0x3871a9(0x196)])==null||_0x404a60['dispose']();}[_0x829f68(0x1ed)](_0x461d7c){var _0xfd2299=_0x829f68;if([_0xfd2299(0x1f6),'not-following',_0xfd2299(0x161)][_0xfd2299(0x18c)](this[_0xfd2299(0x163)])||!_0x461d7c[_0xfd2299(0x1f0)]['presenter']||_0x461d7c[_0xfd2299(0x1f0)]['presenter']===this[_0xfd2299(0x189)][_0xfd2299(0x168)]())return;this[_0xfd2299(0x163)]===_0xfd2299(0x155)&&this[_0xfd2299(0x1db)]();const _0x47a4e1=_0x461d7c['data'][_0xfd2299(0x164)];Object[_0xfd2299(0x1cd)](_0x47a4e1)[_0xfd2299(0x1e3)](_0x2692cb=>{var _0x4c3ece=_0xfd2299;this[_0x4c3ece(0x15f)]['executeCommand'](_0x2692cb['id'],_0x2692cb[_0x4c3ece(0x1b3)]?JSON[_0x4c3ece(0x14f)](_0x2692cb[_0x4c3ece(0x1b3)]):null,{'fromCollab':!0x0});});}[_0x829f68(0x1c3)](){var _0x28a00a=_0x829f68,_0x4a78b8;this[_0x28a00a(0x178)][_0x28a00a(0x198)]('offline'),(_0x4a78b8=this[_0x28a00a(0x196)])==null||_0x4a78b8[_0x28a00a(0x16d)]();}[_0x829f68(0x199)](){var _0x578730=_0x829f68;this[_0x578730(0x178)]['next'](_0x578730(0x155)),this[_0x578730(0x15a)]();}};C=Z([f(0x2,_0x1fcd08),f(0x3,_0x4cd37e(L)),f(0x4,_0x35b5c9)],C);function Te(){var _0x24c831=_0x829f68;const _0x36722f=_0x261508(I),_0x3e756b=_0x261508(_0x5b4a3c),_0x289dc0=_0x59ae5a(()=>_0x3e756b[_0x24c831(0x165)](_0x499b8f[_0x24c831(0x170)]),void 0x0,!0x1,[]),[_0xed57cc,_0x189206]=_0x17fcc6(null),[_0x5a0eb6,_0x503858]=_0x17fcc6(h['IDLE']),_0x5ded0d=_0x1d4b4e(null);return _0x52faa4(()=>(_0x289dc0&&_0x36722f[_0x24c831(0x1ef)](_0x289dc0[_0x24c831(0x1a7)]())[_0x24c831(0x1c5)](_0x2a8d1f=>{_0x189206(_0x2a8d1f),_0x5ded0d['current']=_0x2a8d1f['status$']['subscribe'](_0xc74fd0=>{_0x503858(_0xc74fd0);});}),()=>{var _0x20fcdb=_0x24c831,_0x283c3d;(_0x283c3d=_0x5ded0d[_0x20fcdb(0x18b)])==null||_0x283c3d[_0x20fcdb(0x16f)](),_0x5ded0d['current']=null;}),[_0x289dc0,_0x36722f]),_0xed57cc?_0x117f47(_0x43c7d6,{'align':_0x24c831(0x15c),'disabled':_0x5a0eb6===h[_0x24c831(0x162)],'className':_0x24c831(0x1c8),'overlay':_0x117f47($e,{'status':_0x5a0eb6,'coordinator':_0xed57cc}),'children':_0x117f47(_0x24c831(0x17a),{'className':_0x31597b(_0x24c831(0x1bc),{'univer-cursor-not-allowed':_0x5a0eb6===h[_0x24c831(0x162)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5a0eb6!==h[_0x24c831(0x162)]}),'type':_0x24c831(0x17a),'children':_0x117f47(B,{'className':_0x24c831(0x1b8)})})}):null;}function $e(_0x2d6832){var _0x331e46=_0x829f68;const {status:_0x2c7dbf,coordinator:_0x4d16cb}=_0x2d6832;switch(_0x2c7dbf){case h[_0x331e46(0x186)]:return _0x117f47(Fe,{'coordinator':_0x4d16cb});case h[_0x331e46(0x1d1)]:return _0x117f47(He,{'coordinator':_0x4d16cb});case h[_0x331e46(0x14b)]:return _0x117f47(je,{'coordinator':_0x4d16cb});case h[_0x331e46(0x162)]:return _0x117f47(Ve,{});case h[_0x331e46(0x1c0)]:return _0x117f47(Ue,{'coordinator':_0x4d16cb});default:return null;}}function Fe(_0x24dd12){var _0x353010=_0x829f68;const {coordinator:_0x7d2005}=_0x24dd12;return _0x495cee(_0xa8e072,{'children':[_0x117f47(_0x353010(0x17b),{'className':_0x353010(0x167),'children':'Present\x20this\x20document'}),_0x117f47(_0x1a13f6,{'onClick':()=>_0x7d2005[_0x353010(0x1b7)](),'children':_0x353010(0x1a5)})]});}function He(_0x38f43e){var _0x35c2c2=_0x829f68;const {coordinator:_0x1eae77}=_0x38f43e;return _0x495cee(_0xa8e072,{'children':[_0x117f47(_0x35c2c2(0x17b),{'className':_0x35c2c2(0x167),'children':_0x35c2c2(0x1d3)}),_0x117f47(_0x1a13f6,{'onClick':()=>_0x1eae77[_0x35c2c2(0x1d4)](),'children':_0x35c2c2(0x153)})]});}function je(_0x228598){var _0xb2b6e9=_0x829f68;const {coordinator:_0x1bfd74}=_0x228598;return _0x495cee(_0xa8e072,{'children':[_0x117f47('div',{'className':_0xb2b6e9(0x167),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x117f47(_0x1a13f6,{'variant':_0xb2b6e9(0x1a2),'onClick':()=>_0x1bfd74['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x11e824){var _0x4ba611=_0x829f68;const {coordinator:_0x330093}=_0x11e824;return _0x495cee(_0xa8e072,{'children':[_0x117f47('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x4ba611(0x1a8)}),_0x117f47(_0x1a13f6,{'variant':_0x4ba611(0x1cc),'onClick':()=>_0x330093[_0x4ba611(0x1a3)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x35c04e=_0x829f68;return _0x117f47(_0xa8e072,{'children':_0x35c04e(0x1df)});}var Me=Object[_0x829f68(0x1ab)],ke=(_0x10eb7c,_0x837bc4,_0x38ab8e,_0x5a54d8)=>{for(var _0x39c743=_0x5a54d8>0x1?void 0x0:_0x5a54d8?Me(_0x837bc4,_0x38ab8e):_0x837bc4,_0x2d12ed=_0x10eb7c['length']-0x1,_0x30971c;_0x2d12ed>=0x0;_0x2d12ed--)(_0x30971c=_0x10eb7c[_0x2d12ed])&&(_0x39c743=_0x30971c(_0x39c743)||_0x39c743);return _0x39c743;},$=(_0x12867b,_0x533108)=>(_0x1732d9,_0x1218a7)=>_0x533108(_0x1732d9,_0x1218a7,_0x12867b);let b=class extends _0x29cf92{constructor(_0x4c0347,_0x2eca19){var _0xbb7821=_0x829f68;super(),this[_0xbb7821(0x160)]=_0x4c0347,this[_0xbb7821(0x14a)]=_0x2eca19,this[_0xbb7821(0x197)]();}[_0x829f68(0x197)](){var _0x5f30a4=_0x829f68;this[_0x5f30a4(0x1e7)](this[_0x5f30a4(0x14a)][_0x5f30a4(0x16a)](_0x848d96[_0x5f30a4(0x19d)],()=>_0x4671d8(Te,this[_0x5f30a4(0x160)])));}};b=ke([$(0x0,_0x4cd37e(_0x3a53ed)),$(0x1,_0x2e9b6a)],b);var Ge=Object[_0x829f68(0x1d0)],We=Object[_0x829f68(0x1ab)],Ye=(_0x46a8b2,_0x6f0c12,_0x1ef918)=>_0x6f0c12 in _0x46a8b2?Ge(_0x46a8b2,_0x6f0c12,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ef918}):_0x46a8b2[_0x6f0c12]=_0x1ef918,Be=(_0x393ad2,_0x3299b9,_0x522954,_0x6b0994)=>{for(var _0x4f222b=_0x6b0994>0x1?void 0x0:_0x6b0994?We(_0x3299b9,_0x522954):_0x3299b9,_0x5c3d91=_0x393ad2['length']-0x1,_0x4bb4b4;_0x5c3d91>=0x0;_0x5c3d91--)(_0x4bb4b4=_0x393ad2[_0x5c3d91])&&(_0x4f222b=_0x4bb4b4(_0x4f222b)||_0x4f222b);return _0x4f222b;},F=(_0x28313f,_0x1d162d)=>(_0x3ab80a,_0x155408)=>_0x1d162d(_0x3ab80a,_0x155408,_0x28313f),J=(_0x192ff4,_0x1911df,_0xf8ee96)=>Ye(_0x192ff4,typeof _0x1911df!=_0x829f68(0x1f4)?_0x1911df+'':_0x1911df,_0xf8ee96);const Ze=_0x829f68(0x1ec);let O=class extends _0x5bf096{constructor(_0x14225c=T,_0x5d5d01,_0x126b30){var _0x80eb3f=_0x829f68;super(),this[_0x80eb3f(0x1d6)]=_0x14225c,this[_0x80eb3f(0x160)]=_0x5d5d01,this[_0x80eb3f(0x158)]=_0x126b30;const {..._0x23e85d}=_0xf2ec51({},T,this[_0x80eb3f(0x1d6)]);this['_configService'][_0x80eb3f(0x174)](Oe,_0x23e85d);}[_0x829f68(0x1f1)](){var _0x4027e1=_0x829f68;_0x549882(this[_0x4027e1(0x160)],_0x206824([[L],[I],[m],[b]],this[_0x4027e1(0x1d6)][_0x4027e1(0x16e)])),_0x1d4462(this[_0x4027e1(0x160)],[[m]]);}['onRendered'](){var _0x386433=_0x829f68;_0x1d4462(this[_0x386433(0x160)],[[b]]);}};J(O,_0x829f68(0x172),_0x499b8f[_0x829f68(0x1dd)]),J(O,_0x829f68(0x1b1),Ze),O=Be([_0x4df1cf(_0x52511b),F(0x1,_0x4cd37e(_0x3a53ed)),F(0x2,_0x1fcd08)],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 _0x2886db=_0x695d;(function(_0x2703d9,_0x3b1564){var _0x42cf87=_0x695d,_0x447e39=_0x2703d9();while(!![]){try{var _0x16c535=parseInt(_0x42cf87(0x1a3))/0x1+-parseInt(_0x42cf87(0x1ea))/0x2+parseInt(_0x42cf87(0x1e2))/0x3+-parseInt(_0x42cf87(0x1c1))/0x4+parseInt(_0x42cf87(0x1a0))/0x5*(parseInt(_0x42cf87(0x1bb))/0x6)+parseInt(_0x42cf87(0x187))/0x7+parseInt(_0x42cf87(0x1c2))/0x8;if(_0x16c535===_0x3b1564)break;else _0x447e39['push'](_0x447e39['shift']());}catch(_0x21a2b3){_0x447e39['push'](_0x447e39['shift']());}}}(_0xe8c5,0xc1a67));var q=Object[_0x2886db(0x1fe)],z=(_0x6fd7f3,_0xf382dd,_0x4ef9e4)=>_0xf382dd in _0x6fd7f3?q(_0x6fd7f3,_0xf382dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ef9e4}):_0x6fd7f3[_0xf382dd]=_0x4ef9e4,d=(_0x49ce15,_0x2e15bc,_0x366d9a)=>z(_0x49ce15,typeof _0x2e15bc!=_0x2886db(0x1c0)?_0x2e15bc+'':_0x2e15bc,_0x366d9a);import{CollaborationSessionService as _0x37b98,SessionStatus as _0x4e7aee,UniverCollaborationClientPlugin as _0x5a9880}from'@univerjs-pro/collaboration-client';import{Disposable as _0x172f34,toDisposable as _0x3a14b5,Inject as _0x10aaa1,IUniverInstanceService as _0x11d622,Injector as _0x2015d8,IConfigService as _0x37a6e8,ICommandService as _0x342266,RxDisposable as _0x6f1f15,UniverInstanceType as _0x4aff88,DisposableCollection as _0x274689,CommandType as _0x55a605,DependentOn as _0x35d3f7,Plugin as _0x3a7036,merge as _0x4c5a48,registerDependencies as _0x5c518a,mergeOverrideWithDependencies as _0x1d9838,touchDependencies as _0x1e2724}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xcf814f,InsertSheetMutation as _0x1800b8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x59a1e5,SetScrollOperation as _0x28ccdf}from'@univerjs/sheets-ui';import{useDependency as _0x5b3603,useObservable as _0x2d4df2,IUIPartsService as _0x125ac6,BuiltInUIPart as _0x2083b0,connectInjector as _0x1b45da}from'@univerjs/ui';function _0xe8c5(){var _0x5b08f7=['_commandDisposable','data','_uiPartsService','UNIVER_LIVE_SHARE_PLUGIN','_fetchOperations','status$','createInstance','not-following','_unitID','160GtGCon','displayName','_collabSession','672842RruRfX','clear','http://www.w3.org/2000/svg','_configService','_handleTerminate','pluginName','getTypeOfUnitAdded$','registerInitialStateReporter','NOT_FOLLOWING','svg','onCommandExecuted','button','path','unsubscribe','_univerInstanceService','substring','_liveShareService','getMemberID','init','Start\x20following','operations','end','mask','find','41682tSaQyj','_stopPresenting','sheet','startFollowing','SAME_OPERATION_SHARE_INTERVAL','symbol','5727132ibxYQW','5709768gAsUEh','pipe','send','subscribe','getTypeOfUnitDisposed$','OPERATION','univer-w-full\x20univer-mb-3\x20univer-text-sm','presenter','univerjs-icon\x20univerjs-icon-','indexOf','sessionStatus$','function','use','registerComponent','icon','set','add','LIVESHARE_TERMINATE','stopPresenting','Start','OFFLINE','currentColor','getUnitId','values','idle','UNIVER_SHEET','replace','map','asObservable','You\x27re\x20not\x20following\x20the\x20presenter','getOwnPropertyDescriptor','_handleNewChangeSets','2559432JKoicy','get','IDLE','_status$','stopFollowing','default','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','HEADER_MENU','2289478UaXRZi','extend','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_startFollowing','params','getLiveShareCoordinator','_startLiveShareCoordinator','disposeWithMe','univer-size-4','You\x27re\x20presenting\x20the\x20document','unitId','text','url(#$1','memberID','1em','_status','current','getInitialStates','idSuffix','xlink:href','defineProperty','dispose','getConfig','onStarting','PRESENTING','shouldShareOperation','from','length','dispose$','_presenter','trim','_entities','string','_init','includes','LIVESHARE_REQUEST_HOST','Stop\x20following','prototype','stringify','_stopFollowing','forEach','registerSharedOperation','hasOwnProperty','colorChannel1','_sharedOperations','LIVESHARE_OPERATION','requireSession','_handleNewHost','_commandService','parse','LIVESHARE_FETCH_OPERATIONS','_config','defIds','_injector','Stop\x20presenting','type','_beIdle','mutations','UniverIcon','evenodd','live-share-icon','presenting','none','Present\x20this\x20document','_reporters','div','tag','apply','_handleOnline','_mountLiveShare','has','reverse','UNIVER_UNKNOWN','children','delete','_handleOperation','setConfig','6353914RfmbYB','tryStartPresenting','random','You\x27re\x20following\x20the\x20presenter','offline','getCurrentTypeOfUnit$','following','attrs','concat','next','FOLLOWING','assign','then','executeCommand','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','call'];_0xe8c5=function(){return _0x5b08f7;};return _0xe8c5();}import{jsx as _0x3a52ad,jsxs as _0x199030,Fragment as _0x1dbeda}from'react/jsx-runtime';import{Dropdown as _0x4dd19b,clsx as _0x2351ae,Button as _0x2dde90}from'@univerjs/design';import{forwardRef as _0x55f301,useRef as _0x2d195a,createElement as _0xc61559,useState as _0x11cb7c,useEffect as _0x548d7b}from'react';import{CollaborationEvent as _0x31f6e1,parseProtocolChangeset as _0xb1adb}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1dc9f4,Subject as _0x5762}from'rxjs';import{takeUntil as _0x120c99,throttleTime as _0x2d347e}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x172f34{constructor(){var _0x530ca9=_0x2886db;super(...arguments),d(this,_0x530ca9(0x216),new Set()),d(this,_0x530ca9(0x17a),new Set());}[_0x2886db(0x213)](_0xa9a2eb){var _0x3ab327=_0x2886db;return this[_0x3ab327(0x216)]['add'](_0xa9a2eb),_0x3a14b5(()=>this[_0x3ab327(0x216)][_0x3ab327(0x184)](_0xa9a2eb));}[_0x2886db(0x1aa)](_0xd28cfd){var _0x43d297=_0x2886db;return this[_0x43d297(0x17a)]['add'](_0xd28cfd),_0x3a14b5(()=>this[_0x43d297(0x17a)][_0x43d297(0x184)](_0xd28cfd));}[_0x2886db(0x203)](_0x1be4db){var _0x40f7d5=_0x2886db;return this[_0x40f7d5(0x216)]['has'](_0x1be4db);}[_0x2886db(0x1fb)](_0x183b70){var _0x4fee2f=_0x2886db;return Array[_0x4fee2f(0x204)](this['_reporters'])[_0x4fee2f(0x1dd)](_0x50791d=>_0x50791d(_0x183b70));}}var Ee=Object[_0x2886db(0x1e0)],we=(_0x18011c,_0x10c997,_0x2ff8b6,_0x4c53c0)=>{var _0x35c24c=_0x2886db;for(var _0x5bccd3=_0x4c53c0>0x1?void 0x0:_0x4c53c0?Ee(_0x10c997,_0x2ff8b6):_0x10c997,_0x476d91=_0x18011c[_0x35c24c(0x205)]-0x1,_0xb2602c;_0x476d91>=0x0;_0x476d91--)(_0xb2602c=_0x18011c[_0x476d91])&&(_0x5bccd3=_0xb2602c(_0x5bccd3)||_0x5bccd3);return _0x5bccd3;},Ne=(_0xcb8e00,_0x1bdf91)=>(_0x27709c,_0x5d933b)=>_0x1bdf91(_0x27709c,_0x5d933b,_0xcb8e00);let m=class extends _0x172f34{constructor(_0x1c26df){var _0x27310a=_0x2886db;super(),this[_0x27310a(0x1b3)]=_0x1c26df,this[_0x27310a(0x20b)]();}['_init'](){[_0x59a1e5['id'],_0x28ccdf['id'],_0xcf814f['id']]['forEach'](_0x45fb27=>{var _0x338720=_0x695d;this[_0x338720(0x1f1)](this[_0x338720(0x1b3)][_0x338720(0x213)](_0x45fb27));});}};m=we([Ne(0x0,_0x10aaa1(L))],m);var c=function(){var _0x28ffd9=_0x2886db;return c=Object['assign']||function(_0x42fdd4){var _0xc4ae1b=_0x695d;for(var _0x4fbdf2,_0x1b24f6=0x1,_0x1c5fe9=arguments[_0xc4ae1b(0x205)];_0x1b24f6<_0x1c5fe9;_0x1b24f6++){_0x4fbdf2=arguments[_0x1b24f6];for(var _0x4f99a7 in _0x4fbdf2)Object[_0xc4ae1b(0x20f)]['hasOwnProperty'][_0xc4ae1b(0x196)](_0x4fbdf2,_0x4f99a7)&&(_0x42fdd4[_0x4f99a7]=_0x4fbdf2[_0x4f99a7]);}return _0x42fdd4;},c[_0x28ffd9(0x17d)](this,arguments);},Ce=function(_0x397068,_0x18e9a5){var _0x21b23c=_0x2886db,_0xbe4af8={};for(var _0x5791af in _0x397068)Object['prototype'][_0x21b23c(0x214)][_0x21b23c(0x196)](_0x397068,_0x5791af)&&_0x18e9a5['indexOf'](_0x5791af)<0x0&&(_0xbe4af8[_0x5791af]=_0x397068[_0x5791af]);if(_0x397068!=null&&typeof Object['getOwnPropertySymbols']==_0x21b23c(0x1cd)){for(var _0x365b14=0x0,_0x5791af=Object['getOwnPropertySymbols'](_0x397068);_0x365b14<_0x5791af[_0x21b23c(0x205)];_0x365b14++)_0x18e9a5[_0x21b23c(0x1cb)](_0x5791af[_0x365b14])<0x0&&Object[_0x21b23c(0x20f)]['propertyIsEnumerable'][_0x21b23c(0x196)](_0x397068,_0x5791af[_0x365b14])&&(_0xbe4af8[_0x5791af[_0x365b14]]=_0x397068[_0x5791af[_0x365b14]]);}return _0xbe4af8;},W=_0x55f301(function(_0x362ed2,_0x2ad381){var _0x393126=_0x2886db,_0x105cb4=_0x362ed2[_0x393126(0x1d0)],_0x32307a=_0x362ed2['id'],_0x30c563=_0x362ed2['className'],_0x5a4b4a=_0x362ed2['extend'],_0x4a13c3=Ce(_0x362ed2,[_0x393126(0x1d0),'id','className',_0x393126(0x1eb)]),_0xadbe55=_0x393126(0x1ca)[_0x393126(0x18f)](_0x32307a,'\x20')[_0x393126(0x18f)](_0x30c563||'')[_0x393126(0x208)](),_0x323407=_0x2d195a('_'['concat'](Le()));return Y(_0x105cb4,''[_0x393126(0x18f)](_0x32307a),{'defIds':_0x105cb4[_0x393126(0x21e)],'idSuffix':_0x323407[_0x393126(0x1fa)]},c({'ref':_0x2ad381,'className':_0xadbe55},_0x4a13c3),_0x5a4b4a);});function Y(_0x56ab80,_0x5478e5,_0x5ac3d4,_0x56c996,_0x55335c){var _0x399ce6=_0x2886db;return _0xc61559(_0x56ab80[_0x399ce6(0x17c)],c(c({'key':_0x5478e5},De(_0x56ab80,_0x5ac3d4,_0x55335c)),_0x56c996),(xe(_0x56ab80,_0x5ac3d4)['children']||[])[_0x399ce6(0x1dd)](function(_0x51dd99,_0x280f97){var _0x51b815=_0x399ce6;return Y(_0x51dd99,''['concat'](_0x5478e5,'-')[_0x51b815(0x18f)](_0x56ab80[_0x51b815(0x17c)],'-')[_0x51b815(0x18f)](_0x280f97),_0x5ac3d4,void 0x0,_0x55335c);}));}function De(_0x2d8e39,_0x358f41,_0x3e1612){var _0x502666=_0x2886db,_0x12043d=c({},_0x2d8e39[_0x502666(0x18e)]);_0x3e1612!=null&&_0x3e1612[_0x502666(0x215)]&&_0x12043d['fill']===_0x502666(0x215)&&(_0x12043d['fill']=_0x3e1612[_0x502666(0x215)]),_0x2d8e39[_0x502666(0x17c)]===_0x502666(0x1b9)&&_0x12043d['id']&&(_0x12043d['id']=_0x12043d['id']+_0x358f41[_0x502666(0x1fc)]),Object['entries'](_0x12043d)[_0x502666(0x212)](function(_0x36579d){var _0x36c549=_0x502666,_0x3e4d7d=_0x36579d[0x0],_0x37ffee=_0x36579d[0x1];_0x3e4d7d===_0x36c549(0x1b9)&&typeof _0x37ffee==_0x36c549(0x20a)&&(_0x12043d[_0x3e4d7d]=_0x37ffee[_0x36c549(0x1dc)](/url\(#(.*)\)/,_0x36c549(0x1f6)['concat'](_0x358f41[_0x36c549(0x1fc)],')')));});var _0x3cad34=_0x358f41[_0x502666(0x21e)];return!_0x3cad34||_0x3cad34[_0x502666(0x205)]===0x0||(_0x2d8e39[_0x502666(0x17c)]===_0x502666(0x1ce)&&_0x12043d[_0x502666(0x1fd)]&&(_0x12043d[_0x502666(0x1fd)]=_0x12043d[_0x502666(0x1fd)]+_0x358f41[_0x502666(0x1fc)]),Object['entries'](_0x12043d)[_0x502666(0x212)](function(_0x31012a){var _0x50d183=_0x502666,_0x662a59=_0x31012a[0x0],_0x516b0d=_0x31012a[0x1];typeof _0x516b0d==_0x50d183(0x20a)&&(_0x12043d[_0x662a59]=_0x516b0d[_0x50d183(0x1dc)](/url\(#(.*)\)/,'url(#$1'[_0x50d183(0x18f)](_0x358f41['idSuffix'],')')));})),_0x12043d;}function xe(_0x4e591f,_0x318086){var _0x2a4441=_0x2886db,_0x245494,_0x5db848=_0x318086['defIds'];return!_0x5db848||_0x5db848[_0x2a4441(0x205)]===0x0?_0x4e591f:_0x4e591f['tag']==='defs'&&(!((_0x245494=_0x4e591f['children'])===null||_0x245494===void 0x0)&&_0x245494[_0x2a4441(0x205)])?c(c({},_0x4e591f),{'children':_0x4e591f[_0x2a4441(0x183)][_0x2a4441(0x1dd)](function(_0x4d1368){var _0x552cac=_0x2a4441;return typeof _0x4d1368[_0x552cac(0x18e)]['id']==_0x552cac(0x20a)&&_0x5db848&&_0x5db848[_0x552cac(0x20c)](_0x4d1368[_0x552cac(0x18e)]['id'])?c(c({},_0x4d1368),{'attrs':c(c({},_0x4d1368[_0x552cac(0x18e)]),{'id':_0x4d1368['attrs']['id']+_0x318086[_0x552cac(0x1fc)]})}):_0x4d1368;})}):_0x4e591f;}function Le(){var _0x4e58f4=_0x2886db;return Math[_0x4e58f4(0x189)]()['toString'](0x24)[_0x4e58f4(0x1b2)](0x2,0x8);}W[_0x2886db(0x1a1)]=_0x2886db(0x174);var ye={'tag':_0x2886db(0x1ac),'attrs':{'xmlns':_0x2886db(0x1a5),'fill':_0x2886db(0x178),'viewBox':'0\x200\x2017\x2017','width':_0x2886db(0x1f8),'height':_0x2886db(0x1f8)},'children':[{'tag':_0x2886db(0x1af),'attrs':{'fill':_0x2886db(0x1d7),'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':_0x2886db(0x1af),'attrs':{'fill':_0x2886db(0x1d7),'d':_0x2886db(0x195),'fillRule':_0x2886db(0x175),'clipRule':_0x2886db(0x175)}}]},B=_0x55f301(function(_0x13781d,_0x349829){var _0x21bfbc=_0x2886db;return _0xc61559(W,Object[_0x21bfbc(0x192)]({},_0x13781d,{'id':_0x21bfbc(0x176),'ref':_0x349829,'icon':ye}));});B[_0x2886db(0x1a1)]='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x2b7426,_0x5ba008,_0x59a7e8,_0x2492e9)=>{var _0x3c2bf7=_0x2886db;for(var _0x2e3c93=_0x2492e9>0x1?void 0x0:_0x2492e9?Re(_0x5ba008,_0x59a7e8):_0x5ba008,_0x79da07=_0x2b7426[_0x3c2bf7(0x205)]-0x1,_0xbd78e8;_0x79da07>=0x0;_0x79da07--)(_0xbd78e8=_0x2b7426[_0x79da07])&&(_0x2e3c93=_0xbd78e8(_0x2e3c93)||_0x2e3c93);return _0x2e3c93;},f=(_0x59200c,_0x596e39)=>(_0x406125,_0x52dd4b)=>_0x596e39(_0x406125,_0x52dd4b,_0x59200c);let I=class extends _0x6f1f15{constructor(_0x5107f1,_0x26a3f1,_0x3eee54){var _0x575e85=_0x2886db;super(),d(this,_0x575e85(0x209),new Map()),(this[_0x575e85(0x1b1)]=_0x5107f1,this[_0x575e85(0x21f)]=_0x26a3f1,this['_collabSessionService']=_0x3eee54,this[_0x575e85(0x20b)]());}async[_0x2886db(0x1ef)](_0x227b7b){var _0x4176c4=_0x2886db;return this[_0x4176c4(0x209)][_0x4176c4(0x180)](_0x227b7b)||await this[_0x4176c4(0x1f0)](_0x227b7b),this[_0x4176c4(0x209)][_0x4176c4(0x1e3)](_0x227b7b);}[_0x2886db(0x20b)](){var _0x4fd0dd=_0x2886db;this[_0x4fd0dd(0x1b1)][_0x4fd0dd(0x1a9)](_0x4aff88[_0x4fd0dd(0x1db)])['pipe'](_0x120c99(this[_0x4fd0dd(0x206)]))['subscribe'](async _0x55ce3e=>{var _0x3f9089=_0x4fd0dd;const _0x421d83=_0x55ce3e[_0x3f9089(0x1d8)]();this[_0x3f9089(0x209)][_0x3f9089(0x180)](_0x421d83)||this[_0x3f9089(0x1f0)](_0x421d83);}),this[_0x4fd0dd(0x1b1)][_0x4fd0dd(0x1c6)](_0x4aff88[_0x4fd0dd(0x1db)])[_0x4fd0dd(0x1c3)](_0x120c99(this[_0x4fd0dd(0x206)]))[_0x4fd0dd(0x1c5)](_0x584625=>{var _0x420a86=_0x4fd0dd;const _0x56f2c9=_0x584625[_0x420a86(0x1d8)](),_0x1150f6=this[_0x420a86(0x209)][_0x420a86(0x1e3)](_0x56f2c9);_0x1150f6==null||_0x1150f6['dispose']();});}async[_0x2886db(0x1f0)](_0x525019){var _0x54f5c7=_0x2886db;const _0x3c5d8e=await this['_collabSessionService'][_0x54f5c7(0x218)](_0x525019),_0x171e35=this[_0x54f5c7(0x21f)][_0x54f5c7(0x19d)](C,_0x525019,_0x3c5d8e);return _0x171e35[_0x54f5c7(0x1b5)](),this[_0x54f5c7(0x209)][_0x54f5c7(0x1d1)](_0x525019,_0x171e35),_0x171e35;}};I=Z([f(0x0,_0x11d622),f(0x1,_0x10aaa1(_0x2015d8)),f(0x2,_0x10aaa1(_0x37b98))],I);var h=(_0x27a6a2=>(_0x27a6a2['OFFLINE']='offline',_0x27a6a2[_0x2886db(0x1e4)]='idle',_0x27a6a2[_0x2886db(0x191)]=_0x2886db(0x18d),_0x27a6a2[_0x2886db(0x1ab)]=_0x2886db(0x19e),_0x27a6a2[_0x2886db(0x202)]=_0x2886db(0x177),_0x27a6a2))(h||{});function _0x695d(_0x28dd9a,_0x923fb0){var _0xe8c531=_0xe8c5();return _0x695d=function(_0x695db1,_0x5e4718){_0x695db1=_0x695db1-0x171;var _0x10bc6b=_0xe8c531[_0x695db1];return _0x10bc6b;},_0x695d(_0x28dd9a,_0x923fb0);}const Pe=_0x2886db(0x1bf),Ae=0xc8;let C=class extends _0x6f1f15{constructor(_0xecbae6,_0x11b829,_0x3e111e,_0x4e07d3,_0x19eaf2){var _0x126e77=_0x2886db;super(),d(this,'_status$',new _0x1dc9f4(_0x126e77(0x1da))),d(this,_0x126e77(0x19c),this[_0x126e77(0x1e5)][_0x126e77(0x1de)]()),d(this,_0x126e77(0x20b),!0x1),d(this,_0x126e77(0x197),null),d(this,'_presenter',null),(this[_0x126e77(0x19f)]=_0xecbae6,this[_0x126e77(0x1a2)]=_0x11b829,this[_0x126e77(0x1a6)]=_0x3e111e,this[_0x126e77(0x1b3)]=_0x4e07d3,this[_0x126e77(0x21a)]=_0x19eaf2);}get['_status'](){var _0x2a3b2a=_0x2886db;return this[_0x2a3b2a(0x1e5)]['getValue']();}[_0x2886db(0x1ff)](){var _0x53d1da=_0x2886db,_0x43a5f2;(_0x43a5f2=this['_commandDisposable'])==null||_0x43a5f2[_0x53d1da(0x1ff)](),this[_0x53d1da(0x1e5)]['next'](_0x53d1da(0x1da)),this[_0x53d1da(0x1e5)]['complete']();}[_0x2886db(0x1b5)](){var _0x30f21d=_0x2886db;this[_0x30f21d(0x20b)]||(this[_0x30f21d(0x20b)]=!0x0,this['_collabSession'][_0x30f21d(0x1cc)][_0x30f21d(0x1c3)](_0x120c99(this[_0x30f21d(0x206)]))[_0x30f21d(0x1c5)](_0x241dfb=>{var _0x1c8fa5=_0x30f21d;switch(_0x241dfb){case _0x4e7aee[_0x1c8fa5(0x1d6)]:this['_handleOffline']();break;case _0x4e7aee['ONLINE']:this[_0x1c8fa5(0x17e)]();break;}}),this['_collabSession']['event$'][_0x30f21d(0x1c3)](_0x120c99(this[_0x30f21d(0x206)]))[_0x30f21d(0x1c5)](_0x9c2bfb=>{var _0x4f988f=_0x30f21d;const {eventID:_0x5ce4dc}=_0x9c2bfb;switch(_0x5ce4dc){case _0x31f6e1['LIVESHARE_NEW_HOST']:this[_0x4f988f(0x219)](_0x9c2bfb);break;case _0x31f6e1['LIVESHARE_OPERATION']:this[_0x4f988f(0x185)](_0x9c2bfb);break;case _0x31f6e1[_0x4f988f(0x1d3)]:this[_0x4f988f(0x1a7)]();break;case _0x31f6e1['NEW_CHANGESETS']:this[_0x4f988f(0x1e1)](_0x9c2bfb);break;}}));}[_0x2886db(0x188)](){var _0x5be021=_0x2886db;this[_0x5be021(0x1a2)][_0x5be021(0x1c4)]({'eventID':_0x31f6e1[_0x5be021(0x20d)],'data':{'unitID':this[_0x5be021(0x19f)],'userID':this[_0x5be021(0x1a2)][_0x5be021(0x1b4)]()}},this['_unitID']);}[_0x2886db(0x1d4)](){var _0x366b91=_0x2886db;this[_0x366b91(0x1f9)]==='presenting'&&(this[_0x366b91(0x1e5)][_0x366b91(0x190)]('idle'),this[_0x366b91(0x1a2)]['send']({'eventID':_0x31f6e1[_0x366b91(0x1d3)],'data':{'unitID':this['_unitID']}},this[_0x366b91(0x19f)]));}[_0x2886db(0x1be)](){var _0x55ea58=_0x2886db;this[_0x55ea58(0x1f9)]===_0x55ea58(0x19e)&&(this[_0x55ea58(0x1e5)][_0x55ea58(0x190)](_0x55ea58(0x18d)),this['_startFollowing']());}[_0x2886db(0x1e6)](){var _0x3a58e3=_0x2886db;this[_0x3a58e3(0x1f9)]===_0x3a58e3(0x18d)&&this[_0x3a58e3(0x211)]();}[_0x2886db(0x219)](_0x4715bb){var _0x32700c=_0x2886db;const {presenter:_0x3ff6fc}=_0x4715bb[_0x32700c(0x198)],_0x36d41c=this[_0x32700c(0x1a2)][_0x32700c(0x1b4)]();this[_0x32700c(0x207)]=_0x3ff6fc,_0x3ff6fc===_0x36d41c?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x32700c(0x19e)&&(this[_0x32700c(0x1bc)](),this[_0x32700c(0x1ed)]());}[_0x2886db(0x19b)](){var _0x437216=_0x2886db;const _0x49b2e3={'eventID':_0x31f6e1[_0x437216(0x21c)]};this[_0x437216(0x1a2)][_0x437216(0x1c4)](_0x49b2e3,this[_0x437216(0x19f)]);}[_0x2886db(0x1a7)](){var _0x1df453=_0x2886db;this['_presenter']=null,this[_0x1df453(0x1f9)]!==_0x1df453(0x177)&&this[_0x1df453(0x172)]();}[_0x2886db(0x1e1)](_0x3879a2){var _0x73a500=_0x2886db;if(this['_status']==='following'&&this['_presenter']===_0x3879a2[_0x73a500(0x198)][_0x73a500(0x1f7)]){const _0x267bf4=_0xb1adb(_0x3879a2[_0x73a500(0x198)])[_0x73a500(0x173)][_0x73a500(0x181)]()[_0x73a500(0x1ba)](_0x477c52=>_0x477c52['id']===_0x1800b8['id']);if(_0x267bf4){const _0x5f1cc4=_0x267bf4[_0x73a500(0x1ee)][_0x73a500(0x1f4)],_0x3c4392=_0x267bf4['params'][_0x73a500(0x1bd)]['id'];setTimeout(()=>{var _0x39d4af=_0x73a500;this['_commandService'][_0x39d4af(0x194)](_0xcf814f['id'],{'unitId':_0x5f1cc4,'subUnitId':_0x3c4392},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x494428=_0x2886db;this[_0x494428(0x1e5)][_0x494428(0x190)]('presenting');const _0xdf4dbd=new Map(),_0x157f0e=this[_0x494428(0x197)]=new _0x274689();_0x157f0e[_0x494428(0x1d2)](_0x3a14b5(()=>{var _0x1b1005=_0x494428;_0xdf4dbd[_0x1b1005(0x212)](_0x380493=>_0x380493['complete']()),_0xdf4dbd[_0x1b1005(0x1a4)]();})),_0x157f0e[_0x494428(0x1d2)](this[_0x494428(0x21a)][_0x494428(0x1ad)](_0x5b85aa=>{var _0x29293f=_0x494428,_0x4b6d2f;if(_0x5b85aa['type']!==_0x55a605[_0x29293f(0x1c7)]||!this[_0x29293f(0x1b3)]['shouldShareOperation'](_0x5b85aa['id']))return;const {id:_0x3c96ff}=_0x5b85aa;let _0x1cb5a1;_0xdf4dbd[_0x29293f(0x180)](_0x3c96ff)?_0x1cb5a1=_0xdf4dbd[_0x29293f(0x1e3)](_0x3c96ff):(_0x1cb5a1=new _0x5762(),_0xdf4dbd[_0x29293f(0x1d1)](_0x3c96ff,_0x1cb5a1),_0x1cb5a1[_0x29293f(0x1c3)](_0x2d347e((_0x4b6d2f=this[_0x29293f(0x1a6)][_0x29293f(0x200)](Pe))!=null?_0x4b6d2f:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x29293f(0x1c5)](_0x1539ba=>{var _0x387b5e=_0x29293f;this[_0x387b5e(0x1a2)][_0x387b5e(0x1c4)]({'eventID':_0x31f6e1['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x387b5e(0x19f)],'operations':{[_0x1539ba['id']]:{'id':_0x1539ba['id'],'params':JSON[_0x387b5e(0x210)](_0x1539ba[_0x387b5e(0x1ee)])}}}},this['_unitID']);})),_0x1cb5a1[_0x29293f(0x190)](_0x5b85aa);})),this[_0x494428(0x1b3)]['getInitialStates'](this[_0x494428(0x19f)])['forEach'](_0x276b54=>this[_0x494428(0x1a2)][_0x494428(0x1c4)]({'eventID':_0x31f6e1[_0x494428(0x217)],'data':{'unitID':this['_unitID'],'operations':{[_0x276b54['id']]:{'id':_0x276b54['id'],'params':JSON[_0x494428(0x210)](_0x276b54[_0x494428(0x1ee)])}}}},this['_unitID']));}[_0x2886db(0x1bc)](){var _0x1ef019=_0x2886db,_0x1433cc;this[_0x1ef019(0x1e5)]['next'](_0x1ef019(0x1da)),(_0x1433cc=this[_0x1ef019(0x197)])==null||_0x1433cc[_0x1ef019(0x1ff)](),this['_commandDisposable']=null;}[_0x2886db(0x1ed)](){var _0xaf8ce6=_0x2886db,_0x7bc5a1;(_0x7bc5a1=this[_0xaf8ce6(0x197)])==null||_0x7bc5a1['dispose'](),this['_status$'][_0xaf8ce6(0x190)](_0xaf8ce6(0x18d));}[_0x2886db(0x172)](){var _0x239e80=_0x2886db,_0x5b73d6;this[_0x239e80(0x1e5)][_0x239e80(0x190)](_0x239e80(0x1da)),(_0x5b73d6=this[_0x239e80(0x197)])==null||_0x5b73d6[_0x239e80(0x1ff)](),this[_0x239e80(0x197)]=null;}[_0x2886db(0x211)](){var _0x2d0753=_0x2886db,_0x5e502;this[_0x2d0753(0x1e5)][_0x2d0753(0x190)]('not-following'),(_0x5e502=this[_0x2d0753(0x197)])==null||_0x5e502['dispose']();}[_0x2886db(0x185)](_0x3903bc){var _0x3e5926=_0x2886db;if([_0x3e5926(0x177),_0x3e5926(0x19e),_0x3e5926(0x18b)][_0x3e5926(0x20c)](this[_0x3e5926(0x1f9)])||!_0x3903bc['data'][_0x3e5926(0x1c9)]||_0x3903bc[_0x3e5926(0x198)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x3e5926(0x1f9)]===_0x3e5926(0x1da)&&this['_startFollowing']();const _0xd5dd65=_0x3903bc[_0x3e5926(0x198)][_0x3e5926(0x1b7)];Object[_0x3e5926(0x1d9)](_0xd5dd65)[_0x3e5926(0x212)](_0x1611bb=>{var _0x55d1d7=_0x3e5926;this['_commandService']['executeCommand'](_0x1611bb['id'],_0x1611bb[_0x55d1d7(0x1ee)]?JSON[_0x55d1d7(0x21b)](_0x1611bb[_0x55d1d7(0x1ee)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x56fdcd=_0x2886db,_0x5a95ba;this[_0x56fdcd(0x1e5)]['next'](_0x56fdcd(0x18b)),(_0x5a95ba=this['_commandDisposable'])==null||_0x5a95ba[_0x56fdcd(0x1ff)]();}['_handleOnline'](){var _0x42ab97=_0x2886db;this['_status$'][_0x42ab97(0x190)](_0x42ab97(0x1da)),this[_0x42ab97(0x19b)]();}};C=Z([f(0x2,_0x37a6e8),f(0x3,_0x10aaa1(L)),f(0x4,_0x342266)],C);function Te(){var _0x5a44c8=_0x2886db;const _0x3531ca=_0x5b3603(I),_0x30ee38=_0x5b3603(_0x11d622),_0x28d50a=_0x2d4df2(()=>_0x30ee38[_0x5a44c8(0x18c)](_0x4aff88[_0x5a44c8(0x1db)]),void 0x0,!0x1,[]),[_0x48eea2,_0x4b0e40]=_0x11cb7c(null),[_0x38d9a1,_0x3d45b4]=_0x11cb7c(h['IDLE']),_0x5182d6=_0x2d195a(null);return _0x548d7b(()=>(_0x28d50a&&_0x3531ca[_0x5a44c8(0x1ef)](_0x28d50a[_0x5a44c8(0x1d8)]())[_0x5a44c8(0x193)](_0x56afa1=>{var _0x5d6a49=_0x5a44c8;_0x4b0e40(_0x56afa1),_0x5182d6[_0x5d6a49(0x1fa)]=_0x56afa1[_0x5d6a49(0x19c)][_0x5d6a49(0x1c5)](_0xf35f7c=>{_0x3d45b4(_0xf35f7c);});}),()=>{var _0x7a9b3=_0x5a44c8,_0x25c32e;(_0x25c32e=_0x5182d6[_0x7a9b3(0x1fa)])==null||_0x25c32e[_0x7a9b3(0x1b0)](),_0x5182d6[_0x7a9b3(0x1fa)]=null;}),[_0x28d50a,_0x3531ca]),_0x48eea2?_0x3a52ad(_0x4dd19b,{'align':_0x5a44c8(0x1b8),'disabled':_0x38d9a1===h[_0x5a44c8(0x1d6)],'className':_0x5a44c8(0x1e8),'overlay':_0x3a52ad($e,{'status':_0x38d9a1,'coordinator':_0x48eea2}),'children':_0x3a52ad(_0x5a44c8(0x1ae),{'className':_0x2351ae(_0x5a44c8(0x1ec),{'univer-cursor-not-allowed':_0x38d9a1===h[_0x5a44c8(0x1d6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38d9a1!==h[_0x5a44c8(0x1d6)]}),'type':_0x5a44c8(0x1ae),'children':_0x3a52ad(B,{'className':_0x5a44c8(0x1f2)})})}):null;}function $e(_0x5ef130){var _0x556fcb=_0x2886db;const {status:_0x1bcafa,coordinator:_0x179ae0}=_0x5ef130;switch(_0x1bcafa){case h[_0x556fcb(0x1e4)]:return _0x3a52ad(Fe,{'coordinator':_0x179ae0});case h[_0x556fcb(0x191)]:return _0x3a52ad(He,{'coordinator':_0x179ae0});case h['NOT_FOLLOWING']:return _0x3a52ad(je,{'coordinator':_0x179ae0});case h[_0x556fcb(0x1d6)]:return _0x3a52ad(Ve,{});case h[_0x556fcb(0x202)]:return _0x3a52ad(Ue,{'coordinator':_0x179ae0});default:return null;}}function Fe(_0x11ba29){var _0x9421a5=_0x2886db;const {coordinator:_0x4c4bb1}=_0x11ba29;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x9421a5(0x17b),{'className':_0x9421a5(0x1c8),'children':_0x9421a5(0x179)}),_0x3a52ad(_0x2dde90,{'onClick':()=>_0x4c4bb1[_0x9421a5(0x188)](),'children':_0x9421a5(0x1d5)})]});}function He(_0x3f9821){var _0x1841a5=_0x2886db;const {coordinator:_0x44175f}=_0x3f9821;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad('div',{'className':_0x1841a5(0x1c8),'children':_0x1841a5(0x18a)}),_0x3a52ad(_0x2dde90,{'onClick':()=>_0x44175f[_0x1841a5(0x1e6)](),'children':_0x1841a5(0x20e)})]});}function je(_0x198f94){var _0x3986e8=_0x2886db;const {coordinator:_0x4fac19}=_0x198f94;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x3986e8(0x17b),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x3986e8(0x1df)}),_0x3a52ad(_0x2dde90,{'variant':_0x3986e8(0x1f5),'onClick':()=>_0x4fac19[_0x3986e8(0x1be)](),'children':_0x3986e8(0x1b6)})]});}function Ue(_0x302018){var _0x44ca58=_0x2886db;const {coordinator:_0x5b74c5}=_0x302018;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x44ca58(0x17b),{'className':_0x44ca58(0x1c8),'children':_0x44ca58(0x1f3)}),_0x3a52ad(_0x2dde90,{'variant':_0x44ca58(0x1e7),'onClick':()=>_0x5b74c5[_0x44ca58(0x1d4)](),'children':_0x44ca58(0x220)})]});}function Ve(){return _0x3a52ad(_0x1dbeda,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x2886db(0x1e0)],ke=(_0x2e7ded,_0x58b8e7,_0x2ee39d,_0x4fa189)=>{var _0x50eb0b=_0x2886db;for(var _0x1ab85f=_0x4fa189>0x1?void 0x0:_0x4fa189?Me(_0x58b8e7,_0x2ee39d):_0x58b8e7,_0x30950c=_0x2e7ded[_0x50eb0b(0x205)]-0x1,_0x7ac355;_0x30950c>=0x0;_0x30950c--)(_0x7ac355=_0x2e7ded[_0x30950c])&&(_0x1ab85f=_0x7ac355(_0x1ab85f)||_0x1ab85f);return _0x1ab85f;},$=(_0x2cc36e,_0x268480)=>(_0x32d3fe,_0x57be99)=>_0x268480(_0x32d3fe,_0x57be99,_0x2cc36e);let b=class extends _0x172f34{constructor(_0x4e7ce1,_0x4dc55c){var _0x3cbe25=_0x2886db;super(),this[_0x3cbe25(0x21f)]=_0x4e7ce1,this[_0x3cbe25(0x199)]=_0x4dc55c,this[_0x3cbe25(0x17f)]();}[_0x2886db(0x17f)](){var _0x10f90d=_0x2886db;this[_0x10f90d(0x1f1)](this['_uiPartsService'][_0x10f90d(0x1cf)](_0x2083b0[_0x10f90d(0x1e9)],()=>_0x1b45da(Te,this['_injector'])));}};b=ke([$(0x0,_0x10aaa1(_0x2015d8)),$(0x1,_0x125ac6)],b);var Ge=Object[_0x2886db(0x1fe)],We=Object[_0x2886db(0x1e0)],Ye=(_0x13b7e2,_0x2ddc74,_0x1fee3c)=>_0x2ddc74 in _0x13b7e2?Ge(_0x13b7e2,_0x2ddc74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fee3c}):_0x13b7e2[_0x2ddc74]=_0x1fee3c,Be=(_0x5d8761,_0x1708fc,_0x2e1570,_0xc8308b)=>{var _0x269401=_0x2886db;for(var _0x17f8ee=_0xc8308b>0x1?void 0x0:_0xc8308b?We(_0x1708fc,_0x2e1570):_0x1708fc,_0x111bf3=_0x5d8761[_0x269401(0x205)]-0x1,_0x396966;_0x111bf3>=0x0;_0x111bf3--)(_0x396966=_0x5d8761[_0x111bf3])&&(_0x17f8ee=_0x396966(_0x17f8ee)||_0x17f8ee);return _0x17f8ee;},F=(_0x40f86e,_0x599b00)=>(_0xea2eb0,_0x4b4696)=>_0x599b00(_0xea2eb0,_0x4b4696,_0x40f86e),J=(_0x121364,_0x3d93f3,_0x4a838f)=>Ye(_0x121364,typeof _0x3d93f3!=_0x2886db(0x1c0)?_0x3d93f3+'':_0x3d93f3,_0x4a838f);const Ze=_0x2886db(0x19a);let O=class extends _0x3a7036{constructor(_0x3ba33d=T,_0x22916c,_0x45972d){var _0x50a1be=_0x2886db;super(),this['_config']=_0x3ba33d,this[_0x50a1be(0x21f)]=_0x22916c,this[_0x50a1be(0x1a6)]=_0x45972d;const {..._0x356fb4}=_0x4c5a48({},T,this[_0x50a1be(0x21d)]);this[_0x50a1be(0x1a6)][_0x50a1be(0x186)](Oe,_0x356fb4);}[_0x2886db(0x201)](){var _0x42f15d=_0x2886db;_0x5c518a(this['_injector'],_0x1d9838([[L],[I],[m],[b]],this[_0x42f15d(0x21d)]['override'])),_0x1e2724(this['_injector'],[[m]]);}['onRendered'](){_0x1e2724(this['_injector'],[[b]]);}};J(O,_0x2886db(0x171),_0x4aff88[_0x2886db(0x182)]),J(O,_0x2886db(0x1a8),Ze),O=Be([_0x35d3f7(_0x5a9880),F(0x1,_0x10aaa1(_0x2015d8)),F(0x2,_0x37a6e8)],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 _0x829f68=_0x470a;(function(_0x1b62b0,_0x133293){var _0x1b643a=_0x470a,_0x2f8c38=_0x1b62b0();while(!![]){try{var _0x59ee28=parseInt(_0x1b643a(0x188))/0x1+-parseInt(_0x1b643a(0x194))/0x2+-parseInt(_0x1b643a(0x1ac))/0x3*(-parseInt(_0x1b643a(0x154))/0x4)+-parseInt(_0x1b643a(0x1e1))/0x5+parseInt(_0x1b643a(0x151))/0x6+-parseInt(_0x1b643a(0x1f2))/0x7*(-parseInt(_0x1b643a(0x16c))/0x8)+-parseInt(_0x1b643a(0x190))/0x9*(parseInt(_0x1b643a(0x1c9))/0xa);if(_0x59ee28===_0x133293)break;else _0x2f8c38['push'](_0x2f8c38['shift']());}catch(_0x195f4d){_0x2f8c38['push'](_0x2f8c38['shift']());}}}(_0x14a1,0x4b65a));var q=Object[_0x829f68(0x1d0)],z=(_0x393d91,_0x1fe6cb,_0x208465)=>_0x1fe6cb in _0x393d91?q(_0x393d91,_0x1fe6cb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x208465}):_0x393d91[_0x1fe6cb]=_0x208465,d=(_0x4b3774,_0x38f88d,_0x4c39aa)=>z(_0x4b3774,typeof _0x38f88d!=_0x829f68(0x1f4)?_0x38f88d+'':_0x38f88d,_0x4c39aa);import{CollaborationSessionService as _0x2895bc,SessionStatus as _0x1b6e8a,UniverCollaborationClientPlugin as _0x52511b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x29cf92,toDisposable as _0x44c1a7,Inject as _0x4cd37e,IUniverInstanceService as _0x5b4a3c,Injector as _0x3a53ed,IConfigService as _0x1fcd08,ICommandService as _0x35b5c9,RxDisposable as _0x35f9fd,UniverInstanceType as _0x499b8f,DisposableCollection as _0x5e2522,CommandType as _0x5612b3,DependentOn as _0x4df1cf,Plugin as _0x5bf096,merge as _0xf2ec51,registerDependencies as _0x549882,mergeOverrideWithDependencies as _0x206824,touchDependencies as _0x1d4462}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1f5bd4,InsertSheetMutation as _0x31cd8a}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x397f77,SetScrollOperation as _0x8914e7}from'@univerjs/sheets-ui';import{useDependency as _0x261508,useObservable as _0x59ae5a,IUIPartsService as _0x2e9b6a,BuiltInUIPart as _0x848d96,connectInjector as _0x4671d8}from'@univerjs/ui';import{jsx as _0x117f47,jsxs as _0x495cee,Fragment as _0xa8e072}from'react/jsx-runtime';import{Dropdown as _0x43c7d6,clsx as _0x31597b,Button as _0x1a13f6}from'@univerjs/design';import{forwardRef as _0x43d7ec,useRef as _0x1d4b4e,createElement as _0x3e639a,useState as _0x17fcc6,useEffect as _0x52faa4}from'react';import{CollaborationEvent as _0x5a70bb,parseProtocolChangeset as _0x3ee105}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xc24f1d,Subject as _0xf18be7}from'rxjs';import{takeUntil as _0x4ee282,throttleTime as _0xf6ef8e}from'rxjs/operators';const Oe=_0x829f68(0x1a1),T={};class L extends _0x29cf92{constructor(){var _0x414ed4=_0x829f68;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x414ed4(0x19a),new Set());}[_0x829f68(0x17e)](_0xee29be){var _0x41f66b=_0x829f68;return this[_0x41f66b(0x166)][_0x41f66b(0x1ce)](_0xee29be),_0x44c1a7(()=>this['_sharedOperations'][_0x41f66b(0x171)](_0xee29be));}[_0x829f68(0x1f8)](_0x4f81f1){var _0x240d9e=_0x829f68;return this['_reporters'][_0x240d9e(0x1ce)](_0x4f81f1),_0x44c1a7(()=>this[_0x240d9e(0x19a)][_0x240d9e(0x171)](_0x4f81f1));}['shouldShareOperation'](_0x139b31){var _0x5cd7b8=_0x829f68;return this[_0x5cd7b8(0x166)][_0x5cd7b8(0x1e5)](_0x139b31);}[_0x829f68(0x176)](_0x2a6c8a){var _0x279ce5=_0x829f68;return Array[_0x279ce5(0x1e8)](this[_0x279ce5(0x19a)])[_0x279ce5(0x1c2)](_0x588f33=>_0x588f33(_0x2a6c8a));}}var Ee=Object[_0x829f68(0x1ab)],we=(_0x148b03,_0x408e15,_0x289696,_0x37cd4d)=>{var _0x5dfcab=_0x829f68;for(var _0x446969=_0x37cd4d>0x1?void 0x0:_0x37cd4d?Ee(_0x408e15,_0x289696):_0x408e15,_0x4a4a39=_0x148b03[_0x5dfcab(0x149)]-0x1,_0x5d9b33;_0x4a4a39>=0x0;_0x4a4a39--)(_0x5d9b33=_0x148b03[_0x4a4a39])&&(_0x446969=_0x5d9b33(_0x446969)||_0x446969);return _0x446969;},Ne=(_0x10b0d8,_0x35f7f1)=>(_0x66d43d,_0xf29ca7)=>_0x35f7f1(_0x66d43d,_0xf29ca7,_0x10b0d8);let m=class extends _0x29cf92{constructor(_0x24737e){var _0x257020=_0x829f68;super(),this[_0x257020(0x1a0)]=_0x24737e,this[_0x257020(0x183)]();}[_0x829f68(0x183)](){var _0x2b0afa=_0x829f68;[_0x397f77['id'],_0x8914e7['id'],_0x1f5bd4['id']][_0x2b0afa(0x1e3)](_0x491838=>{var _0x511a82=_0x2b0afa;this['disposeWithMe'](this[_0x511a82(0x1a0)][_0x511a82(0x17e)](_0x491838));});}};function _0x14a1(){var _0x2d4a91=['none','You\x27re\x20following\x20the\x20presenter','stopFollowing','set','_config','createInstance','function','ONLINE','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','_startFollowing','requireSession','UNIVER_UNKNOWN','pipe','You\x27are\x20offline.','toString','965405jbXESi','_beIdle','forEach','subscribe','has','following','disposeWithMe','from','indexOf','url(#$1','status$','UNIVER_LIVE_SHARE_PLUGIN','_handleOperation','tag','getLiveShareCoordinator','data','onStarting','21pUqmNm','entries','symbol','live-share-icon','presenting','colorChannel1','registerInitialStateReporter','extend','_presenter','length','_uiPartsService','NOT_FOLLOWING','LIVESHARE_REQUEST_HOST','use','executeCommand','parse','getConfig','2236320pWKKOy','attrs','Stop\x20following','4RRAkHd','idle','getValue','find','_configService','_handleNewHost','_fetchOperations','concat','end','children','asObservable','_commandService','_injector','offline','OFFLINE','_status','operations','getCurrentTypeOfUnit$','_sharedOperations','univer-w-full\x20univer-mb-3\x20univer-text-sm','getMemberID','1em','registerComponent','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','73312eWkgtB','dispose','override','unsubscribe','UNIVER_SHEET','delete','type','get','setConfig','svg','getInitialStates','_entities','_status$','SAME_OPERATION_SHARE_INTERVAL','button','div','evenodd','_startLiveShareCoordinator','registerSharedOperation','assign','LIVESHARE_OPERATION','mask','string','_init','sessionStatus$','_handleNewChangeSets','IDLE','getTypeOfUnitAdded$','507952hTpvFR','_collabSession','defIds','current','includes','_stopPresenting','apply','hasOwnProperty','220149HAimux','idSuffix','icon','send','343654Kwuqfb','NEW_CHANGESETS','_commandDisposable','_mountLiveShare','next','_handleOnline','_reporters','stringify','_univerInstanceService','HEADER_MENU','init','call','_liveShareService','live-share.config','text','stopPresenting','_collabSessionService','Start','propertyIsEnumerable','getUnitId','You\x27re\x20presenting\x20the\x20document','trim','_unitID','getOwnPropertyDescriptor','690987EfKOvY','currentColor','complete','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','pluginName','OPERATION','params','displayName','0\x200\x2017\x2017','_startPresenting','tryStartPresenting','univer-size-4','className','defs','path','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','LIVESHARE_NEW_HOST','_stopFollowing','prototype','PRESENTING','getOwnPropertySymbols','map','_handleOffline','substring','then','LIVESHARE_TERMINATE','mutations','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','190TNmoBp','xlink:href','dispose$','default','values','add','not-following','defineProperty','FOLLOWING'];_0x14a1=function(){return _0x2d4a91;};return _0x14a1();}m=we([Ne(0x0,_0x4cd37e(L))],m);var c=function(){var _0x159da1=_0x829f68;return c=Object[_0x159da1(0x17f)]||function(_0x1bfd08){var _0x43293b=_0x159da1;for(var _0x4d91a4,_0x38a534=0x1,_0x470dcd=arguments[_0x43293b(0x149)];_0x38a534<_0x470dcd;_0x38a534++){_0x4d91a4=arguments[_0x38a534];for(var _0x6c7c76 in _0x4d91a4)Object[_0x43293b(0x1bf)][_0x43293b(0x18f)][_0x43293b(0x19f)](_0x4d91a4,_0x6c7c76)&&(_0x1bfd08[_0x6c7c76]=_0x4d91a4[_0x6c7c76]);}return _0x1bfd08;},c[_0x159da1(0x18e)](this,arguments);},Ce=function(_0x4c129e,_0x21c7d4){var _0x359ae2=_0x829f68,_0x54aab1={};for(var _0x1dca96 in _0x4c129e)Object[_0x359ae2(0x1bf)][_0x359ae2(0x18f)]['call'](_0x4c129e,_0x1dca96)&&_0x21c7d4[_0x359ae2(0x1e9)](_0x1dca96)<0x0&&(_0x54aab1[_0x1dca96]=_0x4c129e[_0x1dca96]);if(_0x4c129e!=null&&typeof Object[_0x359ae2(0x1c1)]==_0x359ae2(0x1d8)){for(var _0x31377d=0x0,_0x1dca96=Object[_0x359ae2(0x1c1)](_0x4c129e);_0x31377d<_0x1dca96[_0x359ae2(0x149)];_0x31377d++)_0x21c7d4[_0x359ae2(0x1e9)](_0x1dca96[_0x31377d])<0x0&&Object['prototype'][_0x359ae2(0x1a6)][_0x359ae2(0x19f)](_0x4c129e,_0x1dca96[_0x31377d])&&(_0x54aab1[_0x1dca96[_0x31377d]]=_0x4c129e[_0x1dca96[_0x31377d]]);}return _0x54aab1;},W=_0x43d7ec(function(_0xc936be,_0x46c0b2){var _0x5af54b=_0x829f68,_0x5144ae=_0xc936be[_0x5af54b(0x192)],_0x506f44=_0xc936be['id'],_0x294c30=_0xc936be[_0x5af54b(0x1b9)],_0x42732c=_0xc936be[_0x5af54b(0x1f9)],_0x5e5771=Ce(_0xc936be,[_0x5af54b(0x192),'id',_0x5af54b(0x1b9),'extend']),_0xc830d2='univerjs-icon\x20univerjs-icon-'[_0x5af54b(0x15b)](_0x506f44,'\x20')[_0x5af54b(0x15b)](_0x294c30||'')[_0x5af54b(0x1a9)](),_0x3c46f6=_0x1d4b4e('_'['concat'](Le()));return Y(_0x5144ae,''[_0x5af54b(0x15b)](_0x506f44),{'defIds':_0x5144ae[_0x5af54b(0x18a)],'idSuffix':_0x3c46f6['current']},c({'ref':_0x46c0b2,'className':_0xc830d2},_0x5e5771),_0x42732c);});function Y(_0x20da82,_0x4f0961,_0x542844,_0xeba0a2,_0x6e0e2d){var _0x2ead14=_0x829f68;return _0x3e639a(_0x20da82[_0x2ead14(0x1ee)],c(c({'key':_0x4f0961},De(_0x20da82,_0x542844,_0x6e0e2d)),_0xeba0a2),(xe(_0x20da82,_0x542844)[_0x2ead14(0x15d)]||[])[_0x2ead14(0x1c2)](function(_0x36cf38,_0x7cfb4f){var _0x153a18=_0x2ead14;return Y(_0x36cf38,''[_0x153a18(0x15b)](_0x4f0961,'-')[_0x153a18(0x15b)](_0x20da82['tag'],'-')[_0x153a18(0x15b)](_0x7cfb4f),_0x542844,void 0x0,_0x6e0e2d);}));}function De(_0x5133af,_0x385412,_0x2c1a7a){var _0x25767d=_0x829f68,_0x29c29a=c({},_0x5133af['attrs']);_0x2c1a7a!=null&&_0x2c1a7a[_0x25767d(0x1f7)]&&_0x29c29a['fill']==='colorChannel1'&&(_0x29c29a['fill']=_0x2c1a7a[_0x25767d(0x1f7)]),_0x5133af[_0x25767d(0x1ee)]===_0x25767d(0x181)&&_0x29c29a['id']&&(_0x29c29a['id']=_0x29c29a['id']+_0x385412['idSuffix']),Object['entries'](_0x29c29a)[_0x25767d(0x1e3)](function(_0x533573){var _0x19d00f=_0x25767d,_0x3c039b=_0x533573[0x0],_0x521265=_0x533573[0x1];_0x3c039b===_0x19d00f(0x181)&&typeof _0x521265=='string'&&(_0x29c29a[_0x3c039b]=_0x521265['replace'](/url\(#(.*)\)/,_0x19d00f(0x1ea)[_0x19d00f(0x15b)](_0x385412[_0x19d00f(0x191)],')')));});var _0x11d83f=_0x385412[_0x25767d(0x18a)];return!_0x11d83f||_0x11d83f[_0x25767d(0x149)]===0x0||(_0x5133af[_0x25767d(0x1ee)]===_0x25767d(0x14d)&&_0x29c29a['xlink:href']&&(_0x29c29a[_0x25767d(0x1ca)]=_0x29c29a['xlink:href']+_0x385412[_0x25767d(0x191)]),Object[_0x25767d(0x1f3)](_0x29c29a)[_0x25767d(0x1e3)](function(_0x2aac63){var _0x5f5a9c=_0x25767d,_0xb02522=_0x2aac63[0x0],_0x27f45a=_0x2aac63[0x1];typeof _0x27f45a==_0x5f5a9c(0x182)&&(_0x29c29a[_0xb02522]=_0x27f45a['replace'](/url\(#(.*)\)/,_0x5f5a9c(0x1ea)[_0x5f5a9c(0x15b)](_0x385412[_0x5f5a9c(0x191)],')')));})),_0x29c29a;}function xe(_0x1f6e4b,_0x419a71){var _0x1a1472=_0x829f68,_0x280968,_0xc52f59=_0x419a71[_0x1a1472(0x18a)];return!_0xc52f59||_0xc52f59['length']===0x0?_0x1f6e4b:_0x1f6e4b[_0x1a1472(0x1ee)]===_0x1a1472(0x1ba)&&(!((_0x280968=_0x1f6e4b[_0x1a1472(0x15d)])===null||_0x280968===void 0x0)&&_0x280968[_0x1a1472(0x149)])?c(c({},_0x1f6e4b),{'children':_0x1f6e4b[_0x1a1472(0x15d)][_0x1a1472(0x1c2)](function(_0x4b27ec){var _0x3cd776=_0x1a1472;return typeof _0x4b27ec['attrs']['id']==_0x3cd776(0x182)&&_0xc52f59&&_0xc52f59[_0x3cd776(0x18c)](_0x4b27ec[_0x3cd776(0x152)]['id'])?c(c({},_0x4b27ec),{'attrs':c(c({},_0x4b27ec[_0x3cd776(0x152)]),{'id':_0x4b27ec['attrs']['id']+_0x419a71[_0x3cd776(0x191)]})}):_0x4b27ec;})}):_0x1f6e4b;}function Le(){var _0xd4b7e9=_0x829f68;return Math['random']()[_0xd4b7e9(0x1e0)](0x24)[_0xd4b7e9(0x1c4)](0x2,0x8);}W[_0x829f68(0x1b4)]='UniverIcon';var ye={'tag':_0x829f68(0x175),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x829f68(0x1d2),'viewBox':_0x829f68(0x1b5),'width':'1em','height':_0x829f68(0x169)},'children':[{'tag':_0x829f68(0x1bb),'attrs':{'fill':'currentColor','d':_0x829f68(0x16b)}},{'tag':_0x829f68(0x1bb),'attrs':{'fill':_0x829f68(0x1ad),'d':_0x829f68(0x1da),'fillRule':_0x829f68(0x17c),'clipRule':_0x829f68(0x17c)}}]},B=_0x43d7ec(function(_0x4373e4,_0x275311){var _0x20d794=_0x829f68;return _0x3e639a(W,Object[_0x20d794(0x17f)]({},_0x4373e4,{'id':_0x20d794(0x1f5),'ref':_0x275311,'icon':ye}));});B['displayName']='LiveShareIcon';function _0x470a(_0x17b372,_0x4ad476){var _0x14a16f=_0x14a1();return _0x470a=function(_0x470ad8,_0x3e4db8){_0x470ad8=_0x470ad8-0x148;var _0x4be86d=_0x14a16f[_0x470ad8];return _0x4be86d;},_0x470a(_0x17b372,_0x4ad476);}var Re=Object[_0x829f68(0x1ab)],Z=(_0x4fe9ce,_0x1a2629,_0x38afb7,_0x38b233)=>{var _0x58bfba=_0x829f68;for(var _0x274cd5=_0x38b233>0x1?void 0x0:_0x38b233?Re(_0x1a2629,_0x38afb7):_0x1a2629,_0x332cb6=_0x4fe9ce[_0x58bfba(0x149)]-0x1,_0x4383a3;_0x332cb6>=0x0;_0x332cb6--)(_0x4383a3=_0x4fe9ce[_0x332cb6])&&(_0x274cd5=_0x4383a3(_0x274cd5)||_0x274cd5);return _0x274cd5;},f=(_0x36873e,_0x3ac2ce)=>(_0x3228cc,_0x46a6a3)=>_0x3ac2ce(_0x3228cc,_0x46a6a3,_0x36873e);let I=class extends _0x35f9fd{constructor(_0x4f0780,_0x3aa08c,_0x17ae6c){var _0x3558b7=_0x829f68;super(),d(this,_0x3558b7(0x177),new Map()),(this[_0x3558b7(0x19c)]=_0x4f0780,this[_0x3558b7(0x160)]=_0x3aa08c,this['_collabSessionService']=_0x17ae6c,this[_0x3558b7(0x183)]());}async[_0x829f68(0x1ef)](_0x14b7a3){var _0x1c8e8c=_0x829f68;return this[_0x1c8e8c(0x177)][_0x1c8e8c(0x1e5)](_0x14b7a3)||await this[_0x1c8e8c(0x17d)](_0x14b7a3),this[_0x1c8e8c(0x177)][_0x1c8e8c(0x173)](_0x14b7a3);}[_0x829f68(0x183)](){var _0x3f8eee=_0x829f68;this['_univerInstanceService'][_0x3f8eee(0x187)](_0x499b8f[_0x3f8eee(0x170)])['pipe'](_0x4ee282(this[_0x3f8eee(0x1cb)]))[_0x3f8eee(0x1e4)](async _0x453f89=>{var _0x12f138=_0x3f8eee;const _0x705915=_0x453f89[_0x12f138(0x1a7)]();this[_0x12f138(0x177)][_0x12f138(0x1e5)](_0x705915)||this[_0x12f138(0x17d)](_0x705915);}),this[_0x3f8eee(0x19c)]['getTypeOfUnitDisposed$'](_0x499b8f[_0x3f8eee(0x170)])[_0x3f8eee(0x1de)](_0x4ee282(this[_0x3f8eee(0x1cb)]))['subscribe'](_0x2a62c7=>{var _0x1d0a34=_0x3f8eee;const _0x27c986=_0x2a62c7[_0x1d0a34(0x1a7)](),_0x2f16ac=this['_entities']['get'](_0x27c986);_0x2f16ac==null||_0x2f16ac[_0x1d0a34(0x16d)]();});}async[_0x829f68(0x17d)](_0x1dd5e5){var _0x4e1ec2=_0x829f68;const _0x214c92=await this[_0x4e1ec2(0x1a4)][_0x4e1ec2(0x1dc)](_0x1dd5e5),_0x206163=this['_injector'][_0x4e1ec2(0x1d7)](C,_0x1dd5e5,_0x214c92);return _0x206163[_0x4e1ec2(0x19e)](),this[_0x4e1ec2(0x177)][_0x4e1ec2(0x1d5)](_0x1dd5e5,_0x206163),_0x206163;}};I=Z([f(0x0,_0x5b4a3c),f(0x1,_0x4cd37e(_0x3a53ed)),f(0x2,_0x4cd37e(_0x2895bc))],I);var h=(_0x56fb99=>(_0x56fb99[_0x829f68(0x162)]=_0x829f68(0x161),_0x56fb99[_0x829f68(0x186)]=_0x829f68(0x155),_0x56fb99['FOLLOWING']='following',_0x56fb99[_0x829f68(0x14b)]=_0x829f68(0x1cf),_0x56fb99[_0x829f68(0x1c0)]=_0x829f68(0x1f6),_0x56fb99))(h||{});const Pe=_0x829f68(0x179),Ae=0xc8;let C=class extends _0x35f9fd{constructor(_0x4f2c05,_0x3f5a5d,_0x5b85e2,_0x1ff76a,_0x13a6c6){var _0x1c8d85=_0x829f68;super(),d(this,_0x1c8d85(0x178),new _0xc24f1d(_0x1c8d85(0x155))),d(this,_0x1c8d85(0x1eb),this[_0x1c8d85(0x178)][_0x1c8d85(0x15e)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x1c8d85(0x148),null),(this[_0x1c8d85(0x1aa)]=_0x4f2c05,this[_0x1c8d85(0x189)]=_0x3f5a5d,this[_0x1c8d85(0x158)]=_0x5b85e2,this[_0x1c8d85(0x1a0)]=_0x1ff76a,this[_0x1c8d85(0x15f)]=_0x13a6c6);}get[_0x829f68(0x163)](){var _0x2c6b0a=_0x829f68;return this['_status$'][_0x2c6b0a(0x156)]();}[_0x829f68(0x16d)](){var _0x47ae05=_0x829f68,_0x38a285;(_0x38a285=this['_commandDisposable'])==null||_0x38a285[_0x47ae05(0x16d)](),this['_status$']['next'](_0x47ae05(0x155)),this[_0x47ae05(0x178)][_0x47ae05(0x1ae)]();}[_0x829f68(0x19e)](){var _0x2eb9fe=_0x829f68;this[_0x2eb9fe(0x183)]||(this[_0x2eb9fe(0x183)]=!0x0,this[_0x2eb9fe(0x189)][_0x2eb9fe(0x184)][_0x2eb9fe(0x1de)](_0x4ee282(this[_0x2eb9fe(0x1cb)]))[_0x2eb9fe(0x1e4)](_0x395ffb=>{var _0x588ca3=_0x2eb9fe;switch(_0x395ffb){case _0x1b6e8a['OFFLINE']:this['_handleOffline']();break;case _0x1b6e8a[_0x588ca3(0x1d9)]:this['_handleOnline']();break;}}),this['_collabSession']['event$'][_0x2eb9fe(0x1de)](_0x4ee282(this[_0x2eb9fe(0x1cb)]))[_0x2eb9fe(0x1e4)](_0x30c1f6=>{var _0x190aca=_0x2eb9fe;const {eventID:_0x68ccaf}=_0x30c1f6;switch(_0x68ccaf){case _0x5a70bb[_0x190aca(0x1bd)]:this[_0x190aca(0x159)](_0x30c1f6);break;case _0x5a70bb[_0x190aca(0x180)]:this[_0x190aca(0x1ed)](_0x30c1f6);break;case _0x5a70bb[_0x190aca(0x1c6)]:this[_0x190aca(0x1b0)]();break;case _0x5a70bb[_0x190aca(0x195)]:this[_0x190aca(0x185)](_0x30c1f6);break;}}));}[_0x829f68(0x1b7)](){var _0x346e8b=_0x829f68;this[_0x346e8b(0x189)][_0x346e8b(0x193)]({'eventID':_0x5a70bb[_0x346e8b(0x14c)],'data':{'unitID':this[_0x346e8b(0x1aa)],'userID':this[_0x346e8b(0x189)][_0x346e8b(0x168)]()}},this[_0x346e8b(0x1aa)]);}['stopPresenting'](){var _0x5f288b=_0x829f68;this[_0x5f288b(0x163)]===_0x5f288b(0x1f6)&&(this['_status$']['next']('idle'),this[_0x5f288b(0x189)][_0x5f288b(0x193)]({'eventID':_0x5a70bb[_0x5f288b(0x1c6)],'data':{'unitID':this[_0x5f288b(0x1aa)]}},this['_unitID']));}['startFollowing'](){var _0x47c86c=_0x829f68;this['_status']==='not-following'&&(this[_0x47c86c(0x178)][_0x47c86c(0x198)]('following'),this[_0x47c86c(0x1db)]());}[_0x829f68(0x1d4)](){var _0xfdf2dd=_0x829f68;this[_0xfdf2dd(0x163)]===_0xfdf2dd(0x1e6)&&this[_0xfdf2dd(0x1be)]();}[_0x829f68(0x159)](_0x3f4ab2){var _0x554e36=_0x829f68;const {presenter:_0x5cf521}=_0x3f4ab2[_0x554e36(0x1f0)],_0x37d4b3=this[_0x554e36(0x189)]['getMemberID']();this[_0x554e36(0x148)]=_0x5cf521,_0x5cf521===_0x37d4b3?(this[_0x554e36(0x1be)](),this['_startPresenting']()):this[_0x554e36(0x163)]!==_0x554e36(0x1cf)&&(this[_0x554e36(0x18d)](),this[_0x554e36(0x1db)]());}['_fetchOperations'](){var _0x1bc1cb=_0x829f68;const _0x39b946={'eventID':_0x5a70bb[_0x1bc1cb(0x1af)]};this[_0x1bc1cb(0x189)][_0x1bc1cb(0x193)](_0x39b946,this[_0x1bc1cb(0x1aa)]);}['_handleTerminate'](){var _0x5eb1c8=_0x829f68;this['_presenter']=null,this[_0x5eb1c8(0x163)]!==_0x5eb1c8(0x1f6)&&this[_0x5eb1c8(0x1e2)]();}[_0x829f68(0x185)](_0x51b267){var _0x22c077=_0x829f68;if(this['_status']===_0x22c077(0x1e6)&&this[_0x22c077(0x148)]===_0x51b267[_0x22c077(0x1f0)]['memberID']){const _0x57f823=_0x3ee105(_0x51b267['data'])[_0x22c077(0x1c7)]['reverse']()[_0x22c077(0x157)](_0x351504=>_0x351504['id']===_0x31cd8a['id']);if(_0x57f823){const _0x10ad1d=_0x57f823[_0x22c077(0x1b3)]['unitId'],_0x18e27f=_0x57f823['params']['sheet']['id'];setTimeout(()=>{var _0x5dbd1d=_0x22c077;this[_0x5dbd1d(0x15f)][_0x5dbd1d(0x14e)](_0x1f5bd4['id'],{'unitId':_0x10ad1d,'subUnitId':_0x18e27f},{'fromCollab':!0x0});});}}}[_0x829f68(0x1b6)](){var _0x1b2edb=_0x829f68;this[_0x1b2edb(0x178)][_0x1b2edb(0x198)](_0x1b2edb(0x1f6));const _0x66c8b6=new Map(),_0x5eb2bd=this[_0x1b2edb(0x196)]=new _0x5e2522();_0x5eb2bd[_0x1b2edb(0x1ce)](_0x44c1a7(()=>{var _0x235aed=_0x1b2edb;_0x66c8b6[_0x235aed(0x1e3)](_0x25292a=>_0x25292a[_0x235aed(0x1ae)]()),_0x66c8b6['clear']();})),_0x5eb2bd[_0x1b2edb(0x1ce)](this['_commandService']['onCommandExecuted'](_0x44130d=>{var _0x3e06e5=_0x1b2edb,_0x4d138d;if(_0x44130d[_0x3e06e5(0x172)]!==_0x5612b3[_0x3e06e5(0x1b2)]||!this[_0x3e06e5(0x1a0)]['shouldShareOperation'](_0x44130d['id']))return;const {id:_0x418294}=_0x44130d;let _0x3bb9c9;_0x66c8b6[_0x3e06e5(0x1e5)](_0x418294)?_0x3bb9c9=_0x66c8b6[_0x3e06e5(0x173)](_0x418294):(_0x3bb9c9=new _0xf18be7(),_0x66c8b6['set'](_0x418294,_0x3bb9c9),_0x3bb9c9[_0x3e06e5(0x1de)](_0xf6ef8e((_0x4d138d=this['_configService'][_0x3e06e5(0x150)](Pe))!=null?_0x4d138d:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2cce0e=>{var _0x413e6b=_0x3e06e5;this[_0x413e6b(0x189)][_0x413e6b(0x193)]({'eventID':_0x5a70bb[_0x413e6b(0x180)],'data':{'unitID':this['_unitID'],'operations':{[_0x2cce0e['id']]:{'id':_0x2cce0e['id'],'params':JSON[_0x413e6b(0x19b)](_0x2cce0e[_0x413e6b(0x1b3)])}}}},this[_0x413e6b(0x1aa)]);})),_0x3bb9c9[_0x3e06e5(0x198)](_0x44130d);})),this['_liveShareService'][_0x1b2edb(0x176)](this[_0x1b2edb(0x1aa)])[_0x1b2edb(0x1e3)](_0x55bba5=>this['_collabSession'][_0x1b2edb(0x193)]({'eventID':_0x5a70bb[_0x1b2edb(0x180)],'data':{'unitID':this[_0x1b2edb(0x1aa)],'operations':{[_0x55bba5['id']]:{'id':_0x55bba5['id'],'params':JSON['stringify'](_0x55bba5[_0x1b2edb(0x1b3)])}}}},this['_unitID']));}[_0x829f68(0x18d)](){var _0x26b6d8=_0x829f68,_0x310d70;this[_0x26b6d8(0x178)][_0x26b6d8(0x198)]('idle'),(_0x310d70=this[_0x26b6d8(0x196)])==null||_0x310d70['dispose'](),this[_0x26b6d8(0x196)]=null;}['_startFollowing'](){var _0x51cfa5=_0x829f68,_0x8f1b87;(_0x8f1b87=this[_0x51cfa5(0x196)])==null||_0x8f1b87[_0x51cfa5(0x16d)](),this['_status$'][_0x51cfa5(0x198)](_0x51cfa5(0x1e6));}[_0x829f68(0x1e2)](){var _0x25a395=_0x829f68,_0x1a6e4b;this[_0x25a395(0x178)][_0x25a395(0x198)](_0x25a395(0x155)),(_0x1a6e4b=this[_0x25a395(0x196)])==null||_0x1a6e4b[_0x25a395(0x16d)](),this['_commandDisposable']=null;}[_0x829f68(0x1be)](){var _0x3871a9=_0x829f68,_0x404a60;this[_0x3871a9(0x178)][_0x3871a9(0x198)](_0x3871a9(0x1cf)),(_0x404a60=this[_0x3871a9(0x196)])==null||_0x404a60['dispose']();}[_0x829f68(0x1ed)](_0x461d7c){var _0xfd2299=_0x829f68;if([_0xfd2299(0x1f6),'not-following',_0xfd2299(0x161)][_0xfd2299(0x18c)](this[_0xfd2299(0x163)])||!_0x461d7c[_0xfd2299(0x1f0)]['presenter']||_0x461d7c[_0xfd2299(0x1f0)]['presenter']===this[_0xfd2299(0x189)][_0xfd2299(0x168)]())return;this[_0xfd2299(0x163)]===_0xfd2299(0x155)&&this[_0xfd2299(0x1db)]();const _0x47a4e1=_0x461d7c['data'][_0xfd2299(0x164)];Object[_0xfd2299(0x1cd)](_0x47a4e1)[_0xfd2299(0x1e3)](_0x2692cb=>{var _0x4c3ece=_0xfd2299;this[_0x4c3ece(0x15f)]['executeCommand'](_0x2692cb['id'],_0x2692cb[_0x4c3ece(0x1b3)]?JSON[_0x4c3ece(0x14f)](_0x2692cb[_0x4c3ece(0x1b3)]):null,{'fromCollab':!0x0});});}[_0x829f68(0x1c3)](){var _0x28a00a=_0x829f68,_0x4a78b8;this[_0x28a00a(0x178)][_0x28a00a(0x198)]('offline'),(_0x4a78b8=this[_0x28a00a(0x196)])==null||_0x4a78b8[_0x28a00a(0x16d)]();}[_0x829f68(0x199)](){var _0x578730=_0x829f68;this[_0x578730(0x178)]['next'](_0x578730(0x155)),this[_0x578730(0x15a)]();}};C=Z([f(0x2,_0x1fcd08),f(0x3,_0x4cd37e(L)),f(0x4,_0x35b5c9)],C);function Te(){var _0x24c831=_0x829f68;const _0x36722f=_0x261508(I),_0x3e756b=_0x261508(_0x5b4a3c),_0x289dc0=_0x59ae5a(()=>_0x3e756b[_0x24c831(0x165)](_0x499b8f[_0x24c831(0x170)]),void 0x0,!0x1,[]),[_0xed57cc,_0x189206]=_0x17fcc6(null),[_0x5a0eb6,_0x503858]=_0x17fcc6(h['IDLE']),_0x5ded0d=_0x1d4b4e(null);return _0x52faa4(()=>(_0x289dc0&&_0x36722f[_0x24c831(0x1ef)](_0x289dc0[_0x24c831(0x1a7)]())[_0x24c831(0x1c5)](_0x2a8d1f=>{_0x189206(_0x2a8d1f),_0x5ded0d['current']=_0x2a8d1f['status$']['subscribe'](_0xc74fd0=>{_0x503858(_0xc74fd0);});}),()=>{var _0x20fcdb=_0x24c831,_0x283c3d;(_0x283c3d=_0x5ded0d[_0x20fcdb(0x18b)])==null||_0x283c3d[_0x20fcdb(0x16f)](),_0x5ded0d['current']=null;}),[_0x289dc0,_0x36722f]),_0xed57cc?_0x117f47(_0x43c7d6,{'align':_0x24c831(0x15c),'disabled':_0x5a0eb6===h[_0x24c831(0x162)],'className':_0x24c831(0x1c8),'overlay':_0x117f47($e,{'status':_0x5a0eb6,'coordinator':_0xed57cc}),'children':_0x117f47(_0x24c831(0x17a),{'className':_0x31597b(_0x24c831(0x1bc),{'univer-cursor-not-allowed':_0x5a0eb6===h[_0x24c831(0x162)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5a0eb6!==h[_0x24c831(0x162)]}),'type':_0x24c831(0x17a),'children':_0x117f47(B,{'className':_0x24c831(0x1b8)})})}):null;}function $e(_0x2d6832){var _0x331e46=_0x829f68;const {status:_0x2c7dbf,coordinator:_0x4d16cb}=_0x2d6832;switch(_0x2c7dbf){case h[_0x331e46(0x186)]:return _0x117f47(Fe,{'coordinator':_0x4d16cb});case h[_0x331e46(0x1d1)]:return _0x117f47(He,{'coordinator':_0x4d16cb});case h[_0x331e46(0x14b)]:return _0x117f47(je,{'coordinator':_0x4d16cb});case h[_0x331e46(0x162)]:return _0x117f47(Ve,{});case h[_0x331e46(0x1c0)]:return _0x117f47(Ue,{'coordinator':_0x4d16cb});default:return null;}}function Fe(_0x24dd12){var _0x353010=_0x829f68;const {coordinator:_0x7d2005}=_0x24dd12;return _0x495cee(_0xa8e072,{'children':[_0x117f47(_0x353010(0x17b),{'className':_0x353010(0x167),'children':'Present\x20this\x20document'}),_0x117f47(_0x1a13f6,{'onClick':()=>_0x7d2005[_0x353010(0x1b7)](),'children':_0x353010(0x1a5)})]});}function He(_0x38f43e){var _0x35c2c2=_0x829f68;const {coordinator:_0x1eae77}=_0x38f43e;return _0x495cee(_0xa8e072,{'children':[_0x117f47(_0x35c2c2(0x17b),{'className':_0x35c2c2(0x167),'children':_0x35c2c2(0x1d3)}),_0x117f47(_0x1a13f6,{'onClick':()=>_0x1eae77[_0x35c2c2(0x1d4)](),'children':_0x35c2c2(0x153)})]});}function je(_0x228598){var _0xb2b6e9=_0x829f68;const {coordinator:_0x1bfd74}=_0x228598;return _0x495cee(_0xa8e072,{'children':[_0x117f47('div',{'className':_0xb2b6e9(0x167),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x117f47(_0x1a13f6,{'variant':_0xb2b6e9(0x1a2),'onClick':()=>_0x1bfd74['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x11e824){var _0x4ba611=_0x829f68;const {coordinator:_0x330093}=_0x11e824;return _0x495cee(_0xa8e072,{'children':[_0x117f47('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x4ba611(0x1a8)}),_0x117f47(_0x1a13f6,{'variant':_0x4ba611(0x1cc),'onClick':()=>_0x330093[_0x4ba611(0x1a3)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x35c04e=_0x829f68;return _0x117f47(_0xa8e072,{'children':_0x35c04e(0x1df)});}var Me=Object[_0x829f68(0x1ab)],ke=(_0x10eb7c,_0x837bc4,_0x38ab8e,_0x5a54d8)=>{for(var _0x39c743=_0x5a54d8>0x1?void 0x0:_0x5a54d8?Me(_0x837bc4,_0x38ab8e):_0x837bc4,_0x2d12ed=_0x10eb7c['length']-0x1,_0x30971c;_0x2d12ed>=0x0;_0x2d12ed--)(_0x30971c=_0x10eb7c[_0x2d12ed])&&(_0x39c743=_0x30971c(_0x39c743)||_0x39c743);return _0x39c743;},$=(_0x12867b,_0x533108)=>(_0x1732d9,_0x1218a7)=>_0x533108(_0x1732d9,_0x1218a7,_0x12867b);let b=class extends _0x29cf92{constructor(_0x4c0347,_0x2eca19){var _0xbb7821=_0x829f68;super(),this[_0xbb7821(0x160)]=_0x4c0347,this[_0xbb7821(0x14a)]=_0x2eca19,this[_0xbb7821(0x197)]();}[_0x829f68(0x197)](){var _0x5f30a4=_0x829f68;this[_0x5f30a4(0x1e7)](this[_0x5f30a4(0x14a)][_0x5f30a4(0x16a)](_0x848d96[_0x5f30a4(0x19d)],()=>_0x4671d8(Te,this[_0x5f30a4(0x160)])));}};b=ke([$(0x0,_0x4cd37e(_0x3a53ed)),$(0x1,_0x2e9b6a)],b);var Ge=Object[_0x829f68(0x1d0)],We=Object[_0x829f68(0x1ab)],Ye=(_0x46a8b2,_0x6f0c12,_0x1ef918)=>_0x6f0c12 in _0x46a8b2?Ge(_0x46a8b2,_0x6f0c12,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ef918}):_0x46a8b2[_0x6f0c12]=_0x1ef918,Be=(_0x393ad2,_0x3299b9,_0x522954,_0x6b0994)=>{for(var _0x4f222b=_0x6b0994>0x1?void 0x0:_0x6b0994?We(_0x3299b9,_0x522954):_0x3299b9,_0x5c3d91=_0x393ad2['length']-0x1,_0x4bb4b4;_0x5c3d91>=0x0;_0x5c3d91--)(_0x4bb4b4=_0x393ad2[_0x5c3d91])&&(_0x4f222b=_0x4bb4b4(_0x4f222b)||_0x4f222b);return _0x4f222b;},F=(_0x28313f,_0x1d162d)=>(_0x3ab80a,_0x155408)=>_0x1d162d(_0x3ab80a,_0x155408,_0x28313f),J=(_0x192ff4,_0x1911df,_0xf8ee96)=>Ye(_0x192ff4,typeof _0x1911df!=_0x829f68(0x1f4)?_0x1911df+'':_0x1911df,_0xf8ee96);const Ze=_0x829f68(0x1ec);let O=class extends _0x5bf096{constructor(_0x14225c=T,_0x5d5d01,_0x126b30){var _0x80eb3f=_0x829f68;super(),this[_0x80eb3f(0x1d6)]=_0x14225c,this[_0x80eb3f(0x160)]=_0x5d5d01,this[_0x80eb3f(0x158)]=_0x126b30;const {..._0x23e85d}=_0xf2ec51({},T,this[_0x80eb3f(0x1d6)]);this['_configService'][_0x80eb3f(0x174)](Oe,_0x23e85d);}[_0x829f68(0x1f1)](){var _0x4027e1=_0x829f68;_0x549882(this[_0x4027e1(0x160)],_0x206824([[L],[I],[m],[b]],this[_0x4027e1(0x1d6)][_0x4027e1(0x16e)])),_0x1d4462(this[_0x4027e1(0x160)],[[m]]);}['onRendered'](){var _0x386433=_0x829f68;_0x1d4462(this[_0x386433(0x160)],[[b]]);}};J(O,_0x829f68(0x172),_0x499b8f[_0x829f68(0x1dd)]),J(O,_0x829f68(0x1b1),Ze),O=Be([_0x4df1cf(_0x52511b),F(0x1,_0x4cd37e(_0x3a53ed)),F(0x2,_0x1fcd08)],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 _0x2886db=_0x695d;(function(_0x2703d9,_0x3b1564){var _0x42cf87=_0x695d,_0x447e39=_0x2703d9();while(!![]){try{var _0x16c535=parseInt(_0x42cf87(0x1a3))/0x1+-parseInt(_0x42cf87(0x1ea))/0x2+parseInt(_0x42cf87(0x1e2))/0x3+-parseInt(_0x42cf87(0x1c1))/0x4+parseInt(_0x42cf87(0x1a0))/0x5*(parseInt(_0x42cf87(0x1bb))/0x6)+parseInt(_0x42cf87(0x187))/0x7+parseInt(_0x42cf87(0x1c2))/0x8;if(_0x16c535===_0x3b1564)break;else _0x447e39['push'](_0x447e39['shift']());}catch(_0x21a2b3){_0x447e39['push'](_0x447e39['shift']());}}}(_0xe8c5,0xc1a67));var q=Object[_0x2886db(0x1fe)],z=(_0x6fd7f3,_0xf382dd,_0x4ef9e4)=>_0xf382dd in _0x6fd7f3?q(_0x6fd7f3,_0xf382dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ef9e4}):_0x6fd7f3[_0xf382dd]=_0x4ef9e4,d=(_0x49ce15,_0x2e15bc,_0x366d9a)=>z(_0x49ce15,typeof _0x2e15bc!=_0x2886db(0x1c0)?_0x2e15bc+'':_0x2e15bc,_0x366d9a);import{CollaborationSessionService as _0x37b98,SessionStatus as _0x4e7aee,UniverCollaborationClientPlugin as _0x5a9880}from'@univerjs-pro/collaboration-client';import{Disposable as _0x172f34,toDisposable as _0x3a14b5,Inject as _0x10aaa1,IUniverInstanceService as _0x11d622,Injector as _0x2015d8,IConfigService as _0x37a6e8,ICommandService as _0x342266,RxDisposable as _0x6f1f15,UniverInstanceType as _0x4aff88,DisposableCollection as _0x274689,CommandType as _0x55a605,DependentOn as _0x35d3f7,Plugin as _0x3a7036,merge as _0x4c5a48,registerDependencies as _0x5c518a,mergeOverrideWithDependencies as _0x1d9838,touchDependencies as _0x1e2724}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xcf814f,InsertSheetMutation as _0x1800b8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x59a1e5,SetScrollOperation as _0x28ccdf}from'@univerjs/sheets-ui';import{useDependency as _0x5b3603,useObservable as _0x2d4df2,IUIPartsService as _0x125ac6,BuiltInUIPart as _0x2083b0,connectInjector as _0x1b45da}from'@univerjs/ui';function _0xe8c5(){var _0x5b08f7=['_commandDisposable','data','_uiPartsService','UNIVER_LIVE_SHARE_PLUGIN','_fetchOperations','status$','createInstance','not-following','_unitID','160GtGCon','displayName','_collabSession','672842RruRfX','clear','http://www.w3.org/2000/svg','_configService','_handleTerminate','pluginName','getTypeOfUnitAdded$','registerInitialStateReporter','NOT_FOLLOWING','svg','onCommandExecuted','button','path','unsubscribe','_univerInstanceService','substring','_liveShareService','getMemberID','init','Start\x20following','operations','end','mask','find','41682tSaQyj','_stopPresenting','sheet','startFollowing','SAME_OPERATION_SHARE_INTERVAL','symbol','5727132ibxYQW','5709768gAsUEh','pipe','send','subscribe','getTypeOfUnitDisposed$','OPERATION','univer-w-full\x20univer-mb-3\x20univer-text-sm','presenter','univerjs-icon\x20univerjs-icon-','indexOf','sessionStatus$','function','use','registerComponent','icon','set','add','LIVESHARE_TERMINATE','stopPresenting','Start','OFFLINE','currentColor','getUnitId','values','idle','UNIVER_SHEET','replace','map','asObservable','You\x27re\x20not\x20following\x20the\x20presenter','getOwnPropertyDescriptor','_handleNewChangeSets','2559432JKoicy','get','IDLE','_status$','stopFollowing','default','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','HEADER_MENU','2289478UaXRZi','extend','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_startFollowing','params','getLiveShareCoordinator','_startLiveShareCoordinator','disposeWithMe','univer-size-4','You\x27re\x20presenting\x20the\x20document','unitId','text','url(#$1','memberID','1em','_status','current','getInitialStates','idSuffix','xlink:href','defineProperty','dispose','getConfig','onStarting','PRESENTING','shouldShareOperation','from','length','dispose$','_presenter','trim','_entities','string','_init','includes','LIVESHARE_REQUEST_HOST','Stop\x20following','prototype','stringify','_stopFollowing','forEach','registerSharedOperation','hasOwnProperty','colorChannel1','_sharedOperations','LIVESHARE_OPERATION','requireSession','_handleNewHost','_commandService','parse','LIVESHARE_FETCH_OPERATIONS','_config','defIds','_injector','Stop\x20presenting','type','_beIdle','mutations','UniverIcon','evenodd','live-share-icon','presenting','none','Present\x20this\x20document','_reporters','div','tag','apply','_handleOnline','_mountLiveShare','has','reverse','UNIVER_UNKNOWN','children','delete','_handleOperation','setConfig','6353914RfmbYB','tryStartPresenting','random','You\x27re\x20following\x20the\x20presenter','offline','getCurrentTypeOfUnit$','following','attrs','concat','next','FOLLOWING','assign','then','executeCommand','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','call'];_0xe8c5=function(){return _0x5b08f7;};return _0xe8c5();}import{jsx as _0x3a52ad,jsxs as _0x199030,Fragment as _0x1dbeda}from'react/jsx-runtime';import{Dropdown as _0x4dd19b,clsx as _0x2351ae,Button as _0x2dde90}from'@univerjs/design';import{forwardRef as _0x55f301,useRef as _0x2d195a,createElement as _0xc61559,useState as _0x11cb7c,useEffect as _0x548d7b}from'react';import{CollaborationEvent as _0x31f6e1,parseProtocolChangeset as _0xb1adb}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1dc9f4,Subject as _0x5762}from'rxjs';import{takeUntil as _0x120c99,throttleTime as _0x2d347e}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x172f34{constructor(){var _0x530ca9=_0x2886db;super(...arguments),d(this,_0x530ca9(0x216),new Set()),d(this,_0x530ca9(0x17a),new Set());}[_0x2886db(0x213)](_0xa9a2eb){var _0x3ab327=_0x2886db;return this[_0x3ab327(0x216)]['add'](_0xa9a2eb),_0x3a14b5(()=>this[_0x3ab327(0x216)][_0x3ab327(0x184)](_0xa9a2eb));}[_0x2886db(0x1aa)](_0xd28cfd){var _0x43d297=_0x2886db;return this[_0x43d297(0x17a)]['add'](_0xd28cfd),_0x3a14b5(()=>this[_0x43d297(0x17a)][_0x43d297(0x184)](_0xd28cfd));}[_0x2886db(0x203)](_0x1be4db){var _0x40f7d5=_0x2886db;return this[_0x40f7d5(0x216)]['has'](_0x1be4db);}[_0x2886db(0x1fb)](_0x183b70){var _0x4fee2f=_0x2886db;return Array[_0x4fee2f(0x204)](this['_reporters'])[_0x4fee2f(0x1dd)](_0x50791d=>_0x50791d(_0x183b70));}}var Ee=Object[_0x2886db(0x1e0)],we=(_0x18011c,_0x10c997,_0x2ff8b6,_0x4c53c0)=>{var _0x35c24c=_0x2886db;for(var _0x5bccd3=_0x4c53c0>0x1?void 0x0:_0x4c53c0?Ee(_0x10c997,_0x2ff8b6):_0x10c997,_0x476d91=_0x18011c[_0x35c24c(0x205)]-0x1,_0xb2602c;_0x476d91>=0x0;_0x476d91--)(_0xb2602c=_0x18011c[_0x476d91])&&(_0x5bccd3=_0xb2602c(_0x5bccd3)||_0x5bccd3);return _0x5bccd3;},Ne=(_0xcb8e00,_0x1bdf91)=>(_0x27709c,_0x5d933b)=>_0x1bdf91(_0x27709c,_0x5d933b,_0xcb8e00);let m=class extends _0x172f34{constructor(_0x1c26df){var _0x27310a=_0x2886db;super(),this[_0x27310a(0x1b3)]=_0x1c26df,this[_0x27310a(0x20b)]();}['_init'](){[_0x59a1e5['id'],_0x28ccdf['id'],_0xcf814f['id']]['forEach'](_0x45fb27=>{var _0x338720=_0x695d;this[_0x338720(0x1f1)](this[_0x338720(0x1b3)][_0x338720(0x213)](_0x45fb27));});}};m=we([Ne(0x0,_0x10aaa1(L))],m);var c=function(){var _0x28ffd9=_0x2886db;return c=Object['assign']||function(_0x42fdd4){var _0xc4ae1b=_0x695d;for(var _0x4fbdf2,_0x1b24f6=0x1,_0x1c5fe9=arguments[_0xc4ae1b(0x205)];_0x1b24f6<_0x1c5fe9;_0x1b24f6++){_0x4fbdf2=arguments[_0x1b24f6];for(var _0x4f99a7 in _0x4fbdf2)Object[_0xc4ae1b(0x20f)]['hasOwnProperty'][_0xc4ae1b(0x196)](_0x4fbdf2,_0x4f99a7)&&(_0x42fdd4[_0x4f99a7]=_0x4fbdf2[_0x4f99a7]);}return _0x42fdd4;},c[_0x28ffd9(0x17d)](this,arguments);},Ce=function(_0x397068,_0x18e9a5){var _0x21b23c=_0x2886db,_0xbe4af8={};for(var _0x5791af in _0x397068)Object['prototype'][_0x21b23c(0x214)][_0x21b23c(0x196)](_0x397068,_0x5791af)&&_0x18e9a5['indexOf'](_0x5791af)<0x0&&(_0xbe4af8[_0x5791af]=_0x397068[_0x5791af]);if(_0x397068!=null&&typeof Object['getOwnPropertySymbols']==_0x21b23c(0x1cd)){for(var _0x365b14=0x0,_0x5791af=Object['getOwnPropertySymbols'](_0x397068);_0x365b14<_0x5791af[_0x21b23c(0x205)];_0x365b14++)_0x18e9a5[_0x21b23c(0x1cb)](_0x5791af[_0x365b14])<0x0&&Object[_0x21b23c(0x20f)]['propertyIsEnumerable'][_0x21b23c(0x196)](_0x397068,_0x5791af[_0x365b14])&&(_0xbe4af8[_0x5791af[_0x365b14]]=_0x397068[_0x5791af[_0x365b14]]);}return _0xbe4af8;},W=_0x55f301(function(_0x362ed2,_0x2ad381){var _0x393126=_0x2886db,_0x105cb4=_0x362ed2[_0x393126(0x1d0)],_0x32307a=_0x362ed2['id'],_0x30c563=_0x362ed2['className'],_0x5a4b4a=_0x362ed2['extend'],_0x4a13c3=Ce(_0x362ed2,[_0x393126(0x1d0),'id','className',_0x393126(0x1eb)]),_0xadbe55=_0x393126(0x1ca)[_0x393126(0x18f)](_0x32307a,'\x20')[_0x393126(0x18f)](_0x30c563||'')[_0x393126(0x208)](),_0x323407=_0x2d195a('_'['concat'](Le()));return Y(_0x105cb4,''[_0x393126(0x18f)](_0x32307a),{'defIds':_0x105cb4[_0x393126(0x21e)],'idSuffix':_0x323407[_0x393126(0x1fa)]},c({'ref':_0x2ad381,'className':_0xadbe55},_0x4a13c3),_0x5a4b4a);});function Y(_0x56ab80,_0x5478e5,_0x5ac3d4,_0x56c996,_0x55335c){var _0x399ce6=_0x2886db;return _0xc61559(_0x56ab80[_0x399ce6(0x17c)],c(c({'key':_0x5478e5},De(_0x56ab80,_0x5ac3d4,_0x55335c)),_0x56c996),(xe(_0x56ab80,_0x5ac3d4)['children']||[])[_0x399ce6(0x1dd)](function(_0x51dd99,_0x280f97){var _0x51b815=_0x399ce6;return Y(_0x51dd99,''['concat'](_0x5478e5,'-')[_0x51b815(0x18f)](_0x56ab80[_0x51b815(0x17c)],'-')[_0x51b815(0x18f)](_0x280f97),_0x5ac3d4,void 0x0,_0x55335c);}));}function De(_0x2d8e39,_0x358f41,_0x3e1612){var _0x502666=_0x2886db,_0x12043d=c({},_0x2d8e39[_0x502666(0x18e)]);_0x3e1612!=null&&_0x3e1612[_0x502666(0x215)]&&_0x12043d['fill']===_0x502666(0x215)&&(_0x12043d['fill']=_0x3e1612[_0x502666(0x215)]),_0x2d8e39[_0x502666(0x17c)]===_0x502666(0x1b9)&&_0x12043d['id']&&(_0x12043d['id']=_0x12043d['id']+_0x358f41[_0x502666(0x1fc)]),Object['entries'](_0x12043d)[_0x502666(0x212)](function(_0x36579d){var _0x36c549=_0x502666,_0x3e4d7d=_0x36579d[0x0],_0x37ffee=_0x36579d[0x1];_0x3e4d7d===_0x36c549(0x1b9)&&typeof _0x37ffee==_0x36c549(0x20a)&&(_0x12043d[_0x3e4d7d]=_0x37ffee[_0x36c549(0x1dc)](/url\(#(.*)\)/,_0x36c549(0x1f6)['concat'](_0x358f41[_0x36c549(0x1fc)],')')));});var _0x3cad34=_0x358f41[_0x502666(0x21e)];return!_0x3cad34||_0x3cad34[_0x502666(0x205)]===0x0||(_0x2d8e39[_0x502666(0x17c)]===_0x502666(0x1ce)&&_0x12043d[_0x502666(0x1fd)]&&(_0x12043d[_0x502666(0x1fd)]=_0x12043d[_0x502666(0x1fd)]+_0x358f41[_0x502666(0x1fc)]),Object['entries'](_0x12043d)[_0x502666(0x212)](function(_0x31012a){var _0x50d183=_0x502666,_0x662a59=_0x31012a[0x0],_0x516b0d=_0x31012a[0x1];typeof _0x516b0d==_0x50d183(0x20a)&&(_0x12043d[_0x662a59]=_0x516b0d[_0x50d183(0x1dc)](/url\(#(.*)\)/,'url(#$1'[_0x50d183(0x18f)](_0x358f41['idSuffix'],')')));})),_0x12043d;}function xe(_0x4e591f,_0x318086){var _0x2a4441=_0x2886db,_0x245494,_0x5db848=_0x318086['defIds'];return!_0x5db848||_0x5db848[_0x2a4441(0x205)]===0x0?_0x4e591f:_0x4e591f['tag']==='defs'&&(!((_0x245494=_0x4e591f['children'])===null||_0x245494===void 0x0)&&_0x245494[_0x2a4441(0x205)])?c(c({},_0x4e591f),{'children':_0x4e591f[_0x2a4441(0x183)][_0x2a4441(0x1dd)](function(_0x4d1368){var _0x552cac=_0x2a4441;return typeof _0x4d1368[_0x552cac(0x18e)]['id']==_0x552cac(0x20a)&&_0x5db848&&_0x5db848[_0x552cac(0x20c)](_0x4d1368[_0x552cac(0x18e)]['id'])?c(c({},_0x4d1368),{'attrs':c(c({},_0x4d1368[_0x552cac(0x18e)]),{'id':_0x4d1368['attrs']['id']+_0x318086[_0x552cac(0x1fc)]})}):_0x4d1368;})}):_0x4e591f;}function Le(){var _0x4e58f4=_0x2886db;return Math[_0x4e58f4(0x189)]()['toString'](0x24)[_0x4e58f4(0x1b2)](0x2,0x8);}W[_0x2886db(0x1a1)]=_0x2886db(0x174);var ye={'tag':_0x2886db(0x1ac),'attrs':{'xmlns':_0x2886db(0x1a5),'fill':_0x2886db(0x178),'viewBox':'0\x200\x2017\x2017','width':_0x2886db(0x1f8),'height':_0x2886db(0x1f8)},'children':[{'tag':_0x2886db(0x1af),'attrs':{'fill':_0x2886db(0x1d7),'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':_0x2886db(0x1af),'attrs':{'fill':_0x2886db(0x1d7),'d':_0x2886db(0x195),'fillRule':_0x2886db(0x175),'clipRule':_0x2886db(0x175)}}]},B=_0x55f301(function(_0x13781d,_0x349829){var _0x21bfbc=_0x2886db;return _0xc61559(W,Object[_0x21bfbc(0x192)]({},_0x13781d,{'id':_0x21bfbc(0x176),'ref':_0x349829,'icon':ye}));});B[_0x2886db(0x1a1)]='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x2b7426,_0x5ba008,_0x59a7e8,_0x2492e9)=>{var _0x3c2bf7=_0x2886db;for(var _0x2e3c93=_0x2492e9>0x1?void 0x0:_0x2492e9?Re(_0x5ba008,_0x59a7e8):_0x5ba008,_0x79da07=_0x2b7426[_0x3c2bf7(0x205)]-0x1,_0xbd78e8;_0x79da07>=0x0;_0x79da07--)(_0xbd78e8=_0x2b7426[_0x79da07])&&(_0x2e3c93=_0xbd78e8(_0x2e3c93)||_0x2e3c93);return _0x2e3c93;},f=(_0x59200c,_0x596e39)=>(_0x406125,_0x52dd4b)=>_0x596e39(_0x406125,_0x52dd4b,_0x59200c);let I=class extends _0x6f1f15{constructor(_0x5107f1,_0x26a3f1,_0x3eee54){var _0x575e85=_0x2886db;super(),d(this,_0x575e85(0x209),new Map()),(this[_0x575e85(0x1b1)]=_0x5107f1,this[_0x575e85(0x21f)]=_0x26a3f1,this['_collabSessionService']=_0x3eee54,this[_0x575e85(0x20b)]());}async[_0x2886db(0x1ef)](_0x227b7b){var _0x4176c4=_0x2886db;return this[_0x4176c4(0x209)][_0x4176c4(0x180)](_0x227b7b)||await this[_0x4176c4(0x1f0)](_0x227b7b),this[_0x4176c4(0x209)][_0x4176c4(0x1e3)](_0x227b7b);}[_0x2886db(0x20b)](){var _0x4fd0dd=_0x2886db;this[_0x4fd0dd(0x1b1)][_0x4fd0dd(0x1a9)](_0x4aff88[_0x4fd0dd(0x1db)])['pipe'](_0x120c99(this[_0x4fd0dd(0x206)]))['subscribe'](async _0x55ce3e=>{var _0x3f9089=_0x4fd0dd;const _0x421d83=_0x55ce3e[_0x3f9089(0x1d8)]();this[_0x3f9089(0x209)][_0x3f9089(0x180)](_0x421d83)||this[_0x3f9089(0x1f0)](_0x421d83);}),this[_0x4fd0dd(0x1b1)][_0x4fd0dd(0x1c6)](_0x4aff88[_0x4fd0dd(0x1db)])[_0x4fd0dd(0x1c3)](_0x120c99(this[_0x4fd0dd(0x206)]))[_0x4fd0dd(0x1c5)](_0x584625=>{var _0x420a86=_0x4fd0dd;const _0x56f2c9=_0x584625[_0x420a86(0x1d8)](),_0x1150f6=this[_0x420a86(0x209)][_0x420a86(0x1e3)](_0x56f2c9);_0x1150f6==null||_0x1150f6['dispose']();});}async[_0x2886db(0x1f0)](_0x525019){var _0x54f5c7=_0x2886db;const _0x3c5d8e=await this['_collabSessionService'][_0x54f5c7(0x218)](_0x525019),_0x171e35=this[_0x54f5c7(0x21f)][_0x54f5c7(0x19d)](C,_0x525019,_0x3c5d8e);return _0x171e35[_0x54f5c7(0x1b5)](),this[_0x54f5c7(0x209)][_0x54f5c7(0x1d1)](_0x525019,_0x171e35),_0x171e35;}};I=Z([f(0x0,_0x11d622),f(0x1,_0x10aaa1(_0x2015d8)),f(0x2,_0x10aaa1(_0x37b98))],I);var h=(_0x27a6a2=>(_0x27a6a2['OFFLINE']='offline',_0x27a6a2[_0x2886db(0x1e4)]='idle',_0x27a6a2[_0x2886db(0x191)]=_0x2886db(0x18d),_0x27a6a2[_0x2886db(0x1ab)]=_0x2886db(0x19e),_0x27a6a2[_0x2886db(0x202)]=_0x2886db(0x177),_0x27a6a2))(h||{});function _0x695d(_0x28dd9a,_0x923fb0){var _0xe8c531=_0xe8c5();return _0x695d=function(_0x695db1,_0x5e4718){_0x695db1=_0x695db1-0x171;var _0x10bc6b=_0xe8c531[_0x695db1];return _0x10bc6b;},_0x695d(_0x28dd9a,_0x923fb0);}const Pe=_0x2886db(0x1bf),Ae=0xc8;let C=class extends _0x6f1f15{constructor(_0xecbae6,_0x11b829,_0x3e111e,_0x4e07d3,_0x19eaf2){var _0x126e77=_0x2886db;super(),d(this,'_status$',new _0x1dc9f4(_0x126e77(0x1da))),d(this,_0x126e77(0x19c),this[_0x126e77(0x1e5)][_0x126e77(0x1de)]()),d(this,_0x126e77(0x20b),!0x1),d(this,_0x126e77(0x197),null),d(this,'_presenter',null),(this[_0x126e77(0x19f)]=_0xecbae6,this[_0x126e77(0x1a2)]=_0x11b829,this[_0x126e77(0x1a6)]=_0x3e111e,this[_0x126e77(0x1b3)]=_0x4e07d3,this[_0x126e77(0x21a)]=_0x19eaf2);}get['_status'](){var _0x2a3b2a=_0x2886db;return this[_0x2a3b2a(0x1e5)]['getValue']();}[_0x2886db(0x1ff)](){var _0x53d1da=_0x2886db,_0x43a5f2;(_0x43a5f2=this['_commandDisposable'])==null||_0x43a5f2[_0x53d1da(0x1ff)](),this[_0x53d1da(0x1e5)]['next'](_0x53d1da(0x1da)),this[_0x53d1da(0x1e5)]['complete']();}[_0x2886db(0x1b5)](){var _0x30f21d=_0x2886db;this[_0x30f21d(0x20b)]||(this[_0x30f21d(0x20b)]=!0x0,this['_collabSession'][_0x30f21d(0x1cc)][_0x30f21d(0x1c3)](_0x120c99(this[_0x30f21d(0x206)]))[_0x30f21d(0x1c5)](_0x241dfb=>{var _0x1c8fa5=_0x30f21d;switch(_0x241dfb){case _0x4e7aee[_0x1c8fa5(0x1d6)]:this['_handleOffline']();break;case _0x4e7aee['ONLINE']:this[_0x1c8fa5(0x17e)]();break;}}),this['_collabSession']['event$'][_0x30f21d(0x1c3)](_0x120c99(this[_0x30f21d(0x206)]))[_0x30f21d(0x1c5)](_0x9c2bfb=>{var _0x4f988f=_0x30f21d;const {eventID:_0x5ce4dc}=_0x9c2bfb;switch(_0x5ce4dc){case _0x31f6e1['LIVESHARE_NEW_HOST']:this[_0x4f988f(0x219)](_0x9c2bfb);break;case _0x31f6e1['LIVESHARE_OPERATION']:this[_0x4f988f(0x185)](_0x9c2bfb);break;case _0x31f6e1[_0x4f988f(0x1d3)]:this[_0x4f988f(0x1a7)]();break;case _0x31f6e1['NEW_CHANGESETS']:this[_0x4f988f(0x1e1)](_0x9c2bfb);break;}}));}[_0x2886db(0x188)](){var _0x5be021=_0x2886db;this[_0x5be021(0x1a2)][_0x5be021(0x1c4)]({'eventID':_0x31f6e1[_0x5be021(0x20d)],'data':{'unitID':this[_0x5be021(0x19f)],'userID':this[_0x5be021(0x1a2)][_0x5be021(0x1b4)]()}},this['_unitID']);}[_0x2886db(0x1d4)](){var _0x366b91=_0x2886db;this[_0x366b91(0x1f9)]==='presenting'&&(this[_0x366b91(0x1e5)][_0x366b91(0x190)]('idle'),this[_0x366b91(0x1a2)]['send']({'eventID':_0x31f6e1[_0x366b91(0x1d3)],'data':{'unitID':this['_unitID']}},this[_0x366b91(0x19f)]));}[_0x2886db(0x1be)](){var _0x55ea58=_0x2886db;this[_0x55ea58(0x1f9)]===_0x55ea58(0x19e)&&(this[_0x55ea58(0x1e5)][_0x55ea58(0x190)](_0x55ea58(0x18d)),this['_startFollowing']());}[_0x2886db(0x1e6)](){var _0x3a58e3=_0x2886db;this[_0x3a58e3(0x1f9)]===_0x3a58e3(0x18d)&&this[_0x3a58e3(0x211)]();}[_0x2886db(0x219)](_0x4715bb){var _0x32700c=_0x2886db;const {presenter:_0x3ff6fc}=_0x4715bb[_0x32700c(0x198)],_0x36d41c=this[_0x32700c(0x1a2)][_0x32700c(0x1b4)]();this[_0x32700c(0x207)]=_0x3ff6fc,_0x3ff6fc===_0x36d41c?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x32700c(0x19e)&&(this[_0x32700c(0x1bc)](),this[_0x32700c(0x1ed)]());}[_0x2886db(0x19b)](){var _0x437216=_0x2886db;const _0x49b2e3={'eventID':_0x31f6e1[_0x437216(0x21c)]};this[_0x437216(0x1a2)][_0x437216(0x1c4)](_0x49b2e3,this[_0x437216(0x19f)]);}[_0x2886db(0x1a7)](){var _0x1df453=_0x2886db;this['_presenter']=null,this[_0x1df453(0x1f9)]!==_0x1df453(0x177)&&this[_0x1df453(0x172)]();}[_0x2886db(0x1e1)](_0x3879a2){var _0x73a500=_0x2886db;if(this['_status']==='following'&&this['_presenter']===_0x3879a2[_0x73a500(0x198)][_0x73a500(0x1f7)]){const _0x267bf4=_0xb1adb(_0x3879a2[_0x73a500(0x198)])[_0x73a500(0x173)][_0x73a500(0x181)]()[_0x73a500(0x1ba)](_0x477c52=>_0x477c52['id']===_0x1800b8['id']);if(_0x267bf4){const _0x5f1cc4=_0x267bf4[_0x73a500(0x1ee)][_0x73a500(0x1f4)],_0x3c4392=_0x267bf4['params'][_0x73a500(0x1bd)]['id'];setTimeout(()=>{var _0x39d4af=_0x73a500;this['_commandService'][_0x39d4af(0x194)](_0xcf814f['id'],{'unitId':_0x5f1cc4,'subUnitId':_0x3c4392},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x494428=_0x2886db;this[_0x494428(0x1e5)][_0x494428(0x190)]('presenting');const _0xdf4dbd=new Map(),_0x157f0e=this[_0x494428(0x197)]=new _0x274689();_0x157f0e[_0x494428(0x1d2)](_0x3a14b5(()=>{var _0x1b1005=_0x494428;_0xdf4dbd[_0x1b1005(0x212)](_0x380493=>_0x380493['complete']()),_0xdf4dbd[_0x1b1005(0x1a4)]();})),_0x157f0e[_0x494428(0x1d2)](this[_0x494428(0x21a)][_0x494428(0x1ad)](_0x5b85aa=>{var _0x29293f=_0x494428,_0x4b6d2f;if(_0x5b85aa['type']!==_0x55a605[_0x29293f(0x1c7)]||!this[_0x29293f(0x1b3)]['shouldShareOperation'](_0x5b85aa['id']))return;const {id:_0x3c96ff}=_0x5b85aa;let _0x1cb5a1;_0xdf4dbd[_0x29293f(0x180)](_0x3c96ff)?_0x1cb5a1=_0xdf4dbd[_0x29293f(0x1e3)](_0x3c96ff):(_0x1cb5a1=new _0x5762(),_0xdf4dbd[_0x29293f(0x1d1)](_0x3c96ff,_0x1cb5a1),_0x1cb5a1[_0x29293f(0x1c3)](_0x2d347e((_0x4b6d2f=this[_0x29293f(0x1a6)][_0x29293f(0x200)](Pe))!=null?_0x4b6d2f:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x29293f(0x1c5)](_0x1539ba=>{var _0x387b5e=_0x29293f;this[_0x387b5e(0x1a2)][_0x387b5e(0x1c4)]({'eventID':_0x31f6e1['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x387b5e(0x19f)],'operations':{[_0x1539ba['id']]:{'id':_0x1539ba['id'],'params':JSON[_0x387b5e(0x210)](_0x1539ba[_0x387b5e(0x1ee)])}}}},this['_unitID']);})),_0x1cb5a1[_0x29293f(0x190)](_0x5b85aa);})),this[_0x494428(0x1b3)]['getInitialStates'](this[_0x494428(0x19f)])['forEach'](_0x276b54=>this[_0x494428(0x1a2)][_0x494428(0x1c4)]({'eventID':_0x31f6e1[_0x494428(0x217)],'data':{'unitID':this['_unitID'],'operations':{[_0x276b54['id']]:{'id':_0x276b54['id'],'params':JSON[_0x494428(0x210)](_0x276b54[_0x494428(0x1ee)])}}}},this['_unitID']));}[_0x2886db(0x1bc)](){var _0x1ef019=_0x2886db,_0x1433cc;this[_0x1ef019(0x1e5)]['next'](_0x1ef019(0x1da)),(_0x1433cc=this[_0x1ef019(0x197)])==null||_0x1433cc[_0x1ef019(0x1ff)](),this['_commandDisposable']=null;}[_0x2886db(0x1ed)](){var _0xaf8ce6=_0x2886db,_0x7bc5a1;(_0x7bc5a1=this[_0xaf8ce6(0x197)])==null||_0x7bc5a1['dispose'](),this['_status$'][_0xaf8ce6(0x190)](_0xaf8ce6(0x18d));}[_0x2886db(0x172)](){var _0x239e80=_0x2886db,_0x5b73d6;this[_0x239e80(0x1e5)][_0x239e80(0x190)](_0x239e80(0x1da)),(_0x5b73d6=this[_0x239e80(0x197)])==null||_0x5b73d6[_0x239e80(0x1ff)](),this[_0x239e80(0x197)]=null;}[_0x2886db(0x211)](){var _0x2d0753=_0x2886db,_0x5e502;this[_0x2d0753(0x1e5)][_0x2d0753(0x190)]('not-following'),(_0x5e502=this[_0x2d0753(0x197)])==null||_0x5e502['dispose']();}[_0x2886db(0x185)](_0x3903bc){var _0x3e5926=_0x2886db;if([_0x3e5926(0x177),_0x3e5926(0x19e),_0x3e5926(0x18b)][_0x3e5926(0x20c)](this[_0x3e5926(0x1f9)])||!_0x3903bc['data'][_0x3e5926(0x1c9)]||_0x3903bc[_0x3e5926(0x198)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x3e5926(0x1f9)]===_0x3e5926(0x1da)&&this['_startFollowing']();const _0xd5dd65=_0x3903bc[_0x3e5926(0x198)][_0x3e5926(0x1b7)];Object[_0x3e5926(0x1d9)](_0xd5dd65)[_0x3e5926(0x212)](_0x1611bb=>{var _0x55d1d7=_0x3e5926;this['_commandService']['executeCommand'](_0x1611bb['id'],_0x1611bb[_0x55d1d7(0x1ee)]?JSON[_0x55d1d7(0x21b)](_0x1611bb[_0x55d1d7(0x1ee)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x56fdcd=_0x2886db,_0x5a95ba;this[_0x56fdcd(0x1e5)]['next'](_0x56fdcd(0x18b)),(_0x5a95ba=this['_commandDisposable'])==null||_0x5a95ba[_0x56fdcd(0x1ff)]();}['_handleOnline'](){var _0x42ab97=_0x2886db;this['_status$'][_0x42ab97(0x190)](_0x42ab97(0x1da)),this[_0x42ab97(0x19b)]();}};C=Z([f(0x2,_0x37a6e8),f(0x3,_0x10aaa1(L)),f(0x4,_0x342266)],C);function Te(){var _0x5a44c8=_0x2886db;const _0x3531ca=_0x5b3603(I),_0x30ee38=_0x5b3603(_0x11d622),_0x28d50a=_0x2d4df2(()=>_0x30ee38[_0x5a44c8(0x18c)](_0x4aff88[_0x5a44c8(0x1db)]),void 0x0,!0x1,[]),[_0x48eea2,_0x4b0e40]=_0x11cb7c(null),[_0x38d9a1,_0x3d45b4]=_0x11cb7c(h['IDLE']),_0x5182d6=_0x2d195a(null);return _0x548d7b(()=>(_0x28d50a&&_0x3531ca[_0x5a44c8(0x1ef)](_0x28d50a[_0x5a44c8(0x1d8)]())[_0x5a44c8(0x193)](_0x56afa1=>{var _0x5d6a49=_0x5a44c8;_0x4b0e40(_0x56afa1),_0x5182d6[_0x5d6a49(0x1fa)]=_0x56afa1[_0x5d6a49(0x19c)][_0x5d6a49(0x1c5)](_0xf35f7c=>{_0x3d45b4(_0xf35f7c);});}),()=>{var _0x7a9b3=_0x5a44c8,_0x25c32e;(_0x25c32e=_0x5182d6[_0x7a9b3(0x1fa)])==null||_0x25c32e[_0x7a9b3(0x1b0)](),_0x5182d6[_0x7a9b3(0x1fa)]=null;}),[_0x28d50a,_0x3531ca]),_0x48eea2?_0x3a52ad(_0x4dd19b,{'align':_0x5a44c8(0x1b8),'disabled':_0x38d9a1===h[_0x5a44c8(0x1d6)],'className':_0x5a44c8(0x1e8),'overlay':_0x3a52ad($e,{'status':_0x38d9a1,'coordinator':_0x48eea2}),'children':_0x3a52ad(_0x5a44c8(0x1ae),{'className':_0x2351ae(_0x5a44c8(0x1ec),{'univer-cursor-not-allowed':_0x38d9a1===h[_0x5a44c8(0x1d6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38d9a1!==h[_0x5a44c8(0x1d6)]}),'type':_0x5a44c8(0x1ae),'children':_0x3a52ad(B,{'className':_0x5a44c8(0x1f2)})})}):null;}function $e(_0x5ef130){var _0x556fcb=_0x2886db;const {status:_0x1bcafa,coordinator:_0x179ae0}=_0x5ef130;switch(_0x1bcafa){case h[_0x556fcb(0x1e4)]:return _0x3a52ad(Fe,{'coordinator':_0x179ae0});case h[_0x556fcb(0x191)]:return _0x3a52ad(He,{'coordinator':_0x179ae0});case h['NOT_FOLLOWING']:return _0x3a52ad(je,{'coordinator':_0x179ae0});case h[_0x556fcb(0x1d6)]:return _0x3a52ad(Ve,{});case h[_0x556fcb(0x202)]:return _0x3a52ad(Ue,{'coordinator':_0x179ae0});default:return null;}}function Fe(_0x11ba29){var _0x9421a5=_0x2886db;const {coordinator:_0x4c4bb1}=_0x11ba29;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x9421a5(0x17b),{'className':_0x9421a5(0x1c8),'children':_0x9421a5(0x179)}),_0x3a52ad(_0x2dde90,{'onClick':()=>_0x4c4bb1[_0x9421a5(0x188)](),'children':_0x9421a5(0x1d5)})]});}function He(_0x3f9821){var _0x1841a5=_0x2886db;const {coordinator:_0x44175f}=_0x3f9821;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad('div',{'className':_0x1841a5(0x1c8),'children':_0x1841a5(0x18a)}),_0x3a52ad(_0x2dde90,{'onClick':()=>_0x44175f[_0x1841a5(0x1e6)](),'children':_0x1841a5(0x20e)})]});}function je(_0x198f94){var _0x3986e8=_0x2886db;const {coordinator:_0x4fac19}=_0x198f94;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x3986e8(0x17b),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x3986e8(0x1df)}),_0x3a52ad(_0x2dde90,{'variant':_0x3986e8(0x1f5),'onClick':()=>_0x4fac19[_0x3986e8(0x1be)](),'children':_0x3986e8(0x1b6)})]});}function Ue(_0x302018){var _0x44ca58=_0x2886db;const {coordinator:_0x5b74c5}=_0x302018;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x44ca58(0x17b),{'className':_0x44ca58(0x1c8),'children':_0x44ca58(0x1f3)}),_0x3a52ad(_0x2dde90,{'variant':_0x44ca58(0x1e7),'onClick':()=>_0x5b74c5[_0x44ca58(0x1d4)](),'children':_0x44ca58(0x220)})]});}function Ve(){return _0x3a52ad(_0x1dbeda,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x2886db(0x1e0)],ke=(_0x2e7ded,_0x58b8e7,_0x2ee39d,_0x4fa189)=>{var _0x50eb0b=_0x2886db;for(var _0x1ab85f=_0x4fa189>0x1?void 0x0:_0x4fa189?Me(_0x58b8e7,_0x2ee39d):_0x58b8e7,_0x30950c=_0x2e7ded[_0x50eb0b(0x205)]-0x1,_0x7ac355;_0x30950c>=0x0;_0x30950c--)(_0x7ac355=_0x2e7ded[_0x30950c])&&(_0x1ab85f=_0x7ac355(_0x1ab85f)||_0x1ab85f);return _0x1ab85f;},$=(_0x2cc36e,_0x268480)=>(_0x32d3fe,_0x57be99)=>_0x268480(_0x32d3fe,_0x57be99,_0x2cc36e);let b=class extends _0x172f34{constructor(_0x4e7ce1,_0x4dc55c){var _0x3cbe25=_0x2886db;super(),this[_0x3cbe25(0x21f)]=_0x4e7ce1,this[_0x3cbe25(0x199)]=_0x4dc55c,this[_0x3cbe25(0x17f)]();}[_0x2886db(0x17f)](){var _0x10f90d=_0x2886db;this[_0x10f90d(0x1f1)](this['_uiPartsService'][_0x10f90d(0x1cf)](_0x2083b0[_0x10f90d(0x1e9)],()=>_0x1b45da(Te,this['_injector'])));}};b=ke([$(0x0,_0x10aaa1(_0x2015d8)),$(0x1,_0x125ac6)],b);var Ge=Object[_0x2886db(0x1fe)],We=Object[_0x2886db(0x1e0)],Ye=(_0x13b7e2,_0x2ddc74,_0x1fee3c)=>_0x2ddc74 in _0x13b7e2?Ge(_0x13b7e2,_0x2ddc74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fee3c}):_0x13b7e2[_0x2ddc74]=_0x1fee3c,Be=(_0x5d8761,_0x1708fc,_0x2e1570,_0xc8308b)=>{var _0x269401=_0x2886db;for(var _0x17f8ee=_0xc8308b>0x1?void 0x0:_0xc8308b?We(_0x1708fc,_0x2e1570):_0x1708fc,_0x111bf3=_0x5d8761[_0x269401(0x205)]-0x1,_0x396966;_0x111bf3>=0x0;_0x111bf3--)(_0x396966=_0x5d8761[_0x111bf3])&&(_0x17f8ee=_0x396966(_0x17f8ee)||_0x17f8ee);return _0x17f8ee;},F=(_0x40f86e,_0x599b00)=>(_0xea2eb0,_0x4b4696)=>_0x599b00(_0xea2eb0,_0x4b4696,_0x40f86e),J=(_0x121364,_0x3d93f3,_0x4a838f)=>Ye(_0x121364,typeof _0x3d93f3!=_0x2886db(0x1c0)?_0x3d93f3+'':_0x3d93f3,_0x4a838f);const Ze=_0x2886db(0x19a);let O=class extends _0x3a7036{constructor(_0x3ba33d=T,_0x22916c,_0x45972d){var _0x50a1be=_0x2886db;super(),this['_config']=_0x3ba33d,this[_0x50a1be(0x21f)]=_0x22916c,this[_0x50a1be(0x1a6)]=_0x45972d;const {..._0x356fb4}=_0x4c5a48({},T,this[_0x50a1be(0x21d)]);this[_0x50a1be(0x1a6)][_0x50a1be(0x186)](Oe,_0x356fb4);}[_0x2886db(0x201)](){var _0x42f15d=_0x2886db;_0x5c518a(this['_injector'],_0x1d9838([[L],[I],[m],[b]],this[_0x42f15d(0x21d)]['override'])),_0x1e2724(this['_injector'],[[m]]);}['onRendered'](){_0x1e2724(this['_injector'],[[b]]);}};J(O,_0x2886db(0x171),_0x4aff88[_0x2886db(0x182)]),J(O,_0x2886db(0x1a8),Ze),O=Be([_0x35d3f7(_0x5a9880),F(0x1,_0x10aaa1(_0x2015d8)),F(0x2,_0x37a6e8)],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 _0x5012(){var _0x437738=['NOT_FOLLOWING','InsertSheetMutation','attrs','_handleOffline','extend','indexOf','button','2495895cRRadK','exports','useEffect','_liveShareService','getOwnPropertySymbols','735301fnHQcr','then','LiveShareCoordinator','object','sessionStatus$','presenter','2740316kwuoZJ','Plugin','LIVESHARE_OPERATION','tryStartPresenting','_beIdle','rxjs/operators','registerComponent','@univerjs/ui','getValue','toStringTag','_handleNewHost','UniverCore','React','_config','disposeWithMe','fill','not-following','presenting','4356171ZVVjcE','apply','merge','currentColor','add','_injector','UniverProCollaboration','override','memberID','hasOwnProperty','string','mergeOverrideWithDependencies','CommandType','295866rEbpNB','type','following','mask','_stopPresenting','unsubscribe','_univerInstanceService','registerSharedOperation','1em','subscribe','_commandDisposable','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','You\x27re\x20not\x20following\x20the\x20presenter','CollaborationSessionService','IUniverInstanceService','length','DependentOn','url(#$1','onCommandExecuted','_startFollowing','Dropdown','use','getMemberID','_unitID','toDisposable','@univerjs-pro/collaboration-client','SAME_OPERATION_SHARE_INTERVAL','call','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','SessionStatus','univer-w-full\x20univer-mb-3\x20univer-text-sm','useState','SetScrollOperation','propertyIsEnumerable','send','_startLiveShareCoordinator','getConfig','toString','DisposableCollection','xlink:href','Stop\x20following','registerDependencies','asObservable','rxjs','set','_stopFollowing','find','replace','stringify','_handleTerminate','includes','univerjs-icon\x20univerjs-icon-','You\x27are\x20offline.','Injector','Start\x20following','children','map','_handleOperation','http://www.w3.org/2000/svg','complete','OFFLINE','OPERATION','createInstance','jsx','_sharedOperations','LIVESHARE_TERMINATE','Stop\x20presenting','end','UniverLiveSharePlugin','forEach','from','UniverSheets','symbol','div','className','LiveShareController','operators','_fetchOperations','_reporters','_collabSessionService','getCurrentTypeOfUnit$','DesktopLiveShareController','defIds','svg','SetWorksheetActiveOperation','params','colorChannel1','connectInjector','331576GDuJuJ','LIVESHARE_FETCH_OPERATIONS','@univerjs/sheets-ui','has','data','PRESENTING','_mountLiveShare','@univerjs/sheets','unitId','Start','defs','5607966YhACUc','IUIPartsService','HEADER_MENU','none','UniverDesign','Present\x20this\x20document','forwardRef','univer-size-4','pipe','event$','touchDependencies','displayName','UNIVER_LIVE_SHARE_PLUGIN','useRef','UniverInstanceType','_handleNewChangeSets','UniverProCollaborationClient','_status','getOwnPropertyDescriptor','mutations','@univerjs/design','startFollowing','substring','BehaviorSubject','sheet','_collabSession','_startPresenting','prototype','requireSession','jsxs','executeCommand','createElement','react/jsx-runtime','Disposable','_commandService','defineProperty','@univerjs-pro/collaboration','assign','function','IDLE','idle','LiveShare','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','default','tag','clear','get','onStarting','Module','dispose','_entities','next','getUnitId','entries','LIVESHARE_NEW_HOST','3tXMGUR','trim','_status$','text','throttleTime','init','concat','dispose$','RxDisposable','Fragment','UNIVER_UNKNOWN','useObservable','_init','FOLLOWING','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','evenodd','Inject','UNIVER_SHEET','_uiPartsService','getInitialStates','registerInitialStateReporter','ONLINE','react','idSuffix','delete','8OFYskt','parseProtocolChangeset','ICommandService','NEW_CHANGESETS','clsx','Button','setConfig','LiveShareStatus','takeUntil','_configService','@univerjs/core','pluginName','stopFollowing','current','_handleOnline','getLiveShareCoordinator','CollaborationEvent','offline','_presenter'];_0x5012=function(){return _0x437738;};return _0x5012();}function _0x84c6(_0x102afc,_0x29af03){var _0x50123e=_0x5012();return _0x84c6=function(_0x84c6f4,_0x4a3fcc){_0x84c6f4=_0x84c6f4-0x124;var _0x4ff4ea=_0x50123e[_0x84c6f4];return _0x4ff4ea;},_0x84c6(_0x102afc,_0x29af03);}(function(_0x4c18fa,_0x2a6e67){var _0x33c5e3=_0x84c6,_0x29dca1=_0x4c18fa();while(!![]){try{var _0x5bee63=parseInt(_0x33c5e3(0x157))/0x1+parseInt(_0x33c5e3(0x17c))/0x2+-parseInt(_0x33c5e3(0x216))/0x3*(-parseInt(_0x33c5e3(0x15d))/0x4)+parseInt(_0x33c5e3(0x152))/0x5+-parseInt(_0x33c5e3(0x1df))/0x6+-parseInt(_0x33c5e3(0x1d4))/0x7+parseInt(_0x33c5e3(0x138))/0x8*(-parseInt(_0x33c5e3(0x16f))/0x9);if(_0x5bee63===_0x2a6e67)break;else _0x29dca1['push'](_0x29dca1['shift']());}catch(_0x5078a7){_0x29dca1['push'](_0x29dca1['shift']());}}}(_0x5012,0x92d64),function(_0x4d2206,_0x429004){var _0x113600=_0x84c6;typeof exports==_0x113600(0x15a)&&typeof module<'u'?_0x429004(exports,require(_0x113600(0x195)),require('@univerjs/core'),require(_0x113600(0x1db)),require(_0x113600(0x1d6)),require(_0x113600(0x164)),require(_0x113600(0x1ff)),require(_0x113600(0x1f3)),require(_0x113600(0x135)),require(_0x113600(0x203)),require(_0x113600(0x1a7)),require(_0x113600(0x162))):typeof define==_0x113600(0x205)&&define['amd']?define([_0x113600(0x153),'@univerjs-pro/collaboration-client',_0x113600(0x142),_0x113600(0x1db),'@univerjs/sheets-ui',_0x113600(0x164),_0x113600(0x1ff),_0x113600(0x1f3),'react',_0x113600(0x203),'rxjs',_0x113600(0x162)],_0x429004):(_0x4d2206=typeof globalThis<'u'?globalThis:_0x4d2206||self,_0x429004(_0x4d2206['UniverProLiveShare']={},_0x4d2206[_0x113600(0x1ef)],_0x4d2206[_0x113600(0x168)],_0x4d2206[_0x113600(0x1c3)],_0x4d2206['UniverSheetsUi'],_0x4d2206['UniverUi'],_0x4d2206[_0x113600(0x169)],_0x4d2206[_0x113600(0x1e3)],_0x4d2206[_0x113600(0x169)],_0x4d2206[_0x113600(0x175)],_0x4d2206[_0x113600(0x1a7)],_0x4d2206['rxjs'][_0x113600(0x1c8)]));}(this,function(_0x25da99,_0x3291c1,_0x22e122,_0x2f8121,_0x8ead9d,_0x11c135,_0x476c41,_0x4599e2,_0x2fe0dd,_0x52033d,_0x364106,_0xcdc2c2){'use strict';var _0x339427=_0x84c6;var _0x199ef8=Object[_0x339427(0x202)],_0x4f74ef=(_0x2e4262,_0xe8c562,_0x5bfd0f)=>_0xe8c562 in _0x2e4262?_0x199ef8(_0x2e4262,_0xe8c562,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bfd0f}):_0x2e4262[_0xe8c562]=_0x5bfd0f,_0x273b05=(_0x1ee1a5,_0xdd7dc0,_0x330266)=>_0x4f74ef(_0x1ee1a5,typeof _0xdd7dc0!='symbol'?_0xdd7dc0+'':_0xdd7dc0,_0x330266);const _0x32f8f0='live-share.config',_0x214776={};class _0x23a349 extends _0x22e122['Disposable']{constructor(){var _0x449c8b=_0x339427;super(...arguments),_0x273b05(this,_0x449c8b(0x1bc),new Set()),_0x273b05(this,'_reporters',new Set());}[_0x339427(0x183)](_0x551143){var _0x1e7044=_0x339427;return this['_sharedOperations'][_0x1e7044(0x173)](_0x551143),_0x22e122[_0x1e7044(0x194)](()=>this[_0x1e7044(0x1bc)]['delete'](_0x551143));}[_0x339427(0x133)](_0x2c0fa3){var _0x43e308=_0x339427;return this['_reporters'][_0x43e308(0x173)](_0x2c0fa3),_0x22e122[_0x43e308(0x194)](()=>this['_reporters'][_0x43e308(0x137)](_0x2c0fa3));}['shouldShareOperation'](_0x332019){return this['_sharedOperations']['has'](_0x332019);}[_0x339427(0x132)](_0x837c02){var _0x4d7cc5=_0x339427;return Array[_0x4d7cc5(0x1c2)](this[_0x4d7cc5(0x1ca)])[_0x4d7cc5(0x1b4)](_0x1f0e0d=>_0x1f0e0d(_0x837c02));}}var _0xea9cb9=Object['getOwnPropertyDescriptor'],_0x52178c=(_0x431640,_0x2cd6a4,_0x35aeae,_0x4ac1ba)=>{for(var _0x322caa=_0x4ac1ba>0x1?void 0x0:_0x4ac1ba?_0xea9cb9(_0x2cd6a4,_0x35aeae):_0x2cd6a4,_0x6b68be=_0x431640['length']-0x1,_0x303ac6;_0x6b68be>=0x0;_0x6b68be--)(_0x303ac6=_0x431640[_0x6b68be])&&(_0x322caa=_0x303ac6(_0x322caa)||_0x322caa);return _0x322caa;},_0x13fbf3=(_0x21b83a,_0x556e7e)=>(_0x49fe7d,_0x38d96d)=>_0x556e7e(_0x49fe7d,_0x38d96d,_0x21b83a);let _0x50ce8a=class extends _0x22e122[_0x339427(0x200)]{constructor(_0x59ed70){var _0x4aec99=_0x339427;super(),this[_0x4aec99(0x155)]=_0x59ed70,this[_0x4aec99(0x12b)]();}[_0x339427(0x12b)](){var _0x1d0347=_0x339427;[_0x8ead9d['SetZoomRatioOperation']['id'],_0x8ead9d[_0x1d0347(0x19c)]['id'],_0x2f8121[_0x1d0347(0x1d0)]['id']][_0x1d0347(0x1c1)](_0x34716f=>{var _0x476d75=_0x1d0347;this[_0x476d75(0x16b)](this['_liveShareService']['registerSharedOperation'](_0x34716f));});}};_0x50ce8a=_0x52178c([_0x13fbf3(0x0,_0x22e122[_0x339427(0x12f)](_0x23a349))],_0x50ce8a);var _0x5c2369=function(){var _0x3dff72=_0x339427;return _0x5c2369=Object[_0x3dff72(0x204)]||function(_0x3790d1){var _0x4802da=_0x3dff72;for(var _0x37ab55,_0x50dff8=0x1,_0x532fab=arguments[_0x4802da(0x18b)];_0x50dff8<_0x532fab;_0x50dff8++){_0x37ab55=arguments[_0x50dff8];for(var _0x556c23 in _0x37ab55)Object['prototype'][_0x4802da(0x178)][_0x4802da(0x197)](_0x37ab55,_0x556c23)&&(_0x3790d1[_0x556c23]=_0x37ab55[_0x556c23]);}return _0x3790d1;},_0x5c2369[_0x3dff72(0x170)](this,arguments);},_0x1de071=function(_0x65796d,_0x4a1a26){var _0x225f36=_0x339427,_0x34c85f={};for(var _0x5d0c52 in _0x65796d)Object[_0x225f36(0x1fa)][_0x225f36(0x178)][_0x225f36(0x197)](_0x65796d,_0x5d0c52)&&_0x4a1a26[_0x225f36(0x150)](_0x5d0c52)<0x0&&(_0x34c85f[_0x5d0c52]=_0x65796d[_0x5d0c52]);if(_0x65796d!=null&&typeof Object[_0x225f36(0x156)]==_0x225f36(0x205)){for(var _0x32e6d6=0x0,_0x5d0c52=Object['getOwnPropertySymbols'](_0x65796d);_0x32e6d6<_0x5d0c52['length'];_0x32e6d6++)_0x4a1a26[_0x225f36(0x150)](_0x5d0c52[_0x32e6d6])<0x0&&Object[_0x225f36(0x1fa)][_0x225f36(0x19d)][_0x225f36(0x197)](_0x65796d,_0x5d0c52[_0x32e6d6])&&(_0x34c85f[_0x5d0c52[_0x32e6d6]]=_0x65796d[_0x5d0c52[_0x32e6d6]]);}return _0x34c85f;},_0x3a7ebe=_0x2fe0dd[_0x339427(0x1e5)](function(_0x36f46f,_0x3c8844){var _0x14ae26=_0x339427,_0x435a8f=_0x36f46f['icon'],_0x42df6e=_0x36f46f['id'],_0x2a27d8=_0x36f46f[_0x14ae26(0x1c6)],_0x5bb8c8=_0x36f46f[_0x14ae26(0x14f)],_0x1e0207=_0x1de071(_0x36f46f,['icon','id',_0x14ae26(0x1c6),_0x14ae26(0x14f)]),_0x1eaf02=_0x14ae26(0x1af)['concat'](_0x42df6e,'\x20')[_0x14ae26(0x125)](_0x2a27d8||'')[_0x14ae26(0x217)](),_0x1c79fc=_0x2fe0dd[_0x14ae26(0x1ec)]('_'[_0x14ae26(0x125)](_0x28d3c3()));return _0x2b5ff2(_0x435a8f,''[_0x14ae26(0x125)](_0x42df6e),{'defIds':_0x435a8f[_0x14ae26(0x1ce)],'idSuffix':_0x1c79fc[_0x14ae26(0x145)]},_0x5c2369({'ref':_0x3c8844,'className':_0x1eaf02},_0x1e0207),_0x5bb8c8);});function _0x2b5ff2(_0x27e833,_0x13258c,_0x3a00e1,_0x146030,_0x4e01a6){var _0x55a7f6=_0x339427;return _0x2fe0dd[_0x55a7f6(0x1fe)](_0x27e833[_0x55a7f6(0x20b)],_0x5c2369(_0x5c2369({'key':_0x13258c},_0x876cfb(_0x27e833,_0x3a00e1,_0x4e01a6)),_0x146030),(_0x4a3231(_0x27e833,_0x3a00e1)[_0x55a7f6(0x1b3)]||[])[_0x55a7f6(0x1b4)](function(_0x1ab95b,_0xa14ad7){var _0x355871=_0x55a7f6;return _0x2b5ff2(_0x1ab95b,''['concat'](_0x13258c,'-')['concat'](_0x27e833[_0x355871(0x20b)],'-')[_0x355871(0x125)](_0xa14ad7),_0x3a00e1,void 0x0,_0x4e01a6);}));}function _0x876cfb(_0x220a03,_0x2b4cfa,_0x578208){var _0x1d373b=_0x339427,_0x20220b=_0x5c2369({},_0x220a03[_0x1d373b(0x14d)]);_0x578208!=null&&_0x578208[_0x1d373b(0x1d2)]&&_0x20220b['fill']===_0x1d373b(0x1d2)&&(_0x20220b[_0x1d373b(0x16c)]=_0x578208[_0x1d373b(0x1d2)]),_0x220a03[_0x1d373b(0x20b)]===_0x1d373b(0x17f)&&_0x20220b['id']&&(_0x20220b['id']=_0x20220b['id']+_0x2b4cfa['idSuffix']),Object['entries'](_0x20220b)[_0x1d373b(0x1c1)](function(_0x5f4dd4){var _0x65827c=_0x1d373b,_0x3bcf10=_0x5f4dd4[0x0],_0x17c946=_0x5f4dd4[0x1];_0x3bcf10===_0x65827c(0x17f)&&typeof _0x17c946==_0x65827c(0x179)&&(_0x20220b[_0x3bcf10]=_0x17c946[_0x65827c(0x1ab)](/url\(#(.*)\)/,_0x65827c(0x18d)[_0x65827c(0x125)](_0x2b4cfa[_0x65827c(0x136)],')')));});var _0x3785aa=_0x2b4cfa[_0x1d373b(0x1ce)];return!_0x3785aa||_0x3785aa[_0x1d373b(0x18b)]===0x0||(_0x220a03[_0x1d373b(0x20b)]===_0x1d373b(0x191)&&_0x20220b[_0x1d373b(0x1a3)]&&(_0x20220b[_0x1d373b(0x1a3)]=_0x20220b[_0x1d373b(0x1a3)]+_0x2b4cfa['idSuffix']),Object[_0x1d373b(0x214)](_0x20220b)[_0x1d373b(0x1c1)](function(_0x5d7bdd){var _0x4205b1=_0x1d373b,_0x2efaf5=_0x5d7bdd[0x0],_0x5eb0c2=_0x5d7bdd[0x1];typeof _0x5eb0c2==_0x4205b1(0x179)&&(_0x20220b[_0x2efaf5]=_0x5eb0c2[_0x4205b1(0x1ab)](/url\(#(.*)\)/,_0x4205b1(0x18d)['concat'](_0x2b4cfa['idSuffix'],')')));})),_0x20220b;}function _0x4a3231(_0x42aeb6,_0x4dde25){var _0x450248=_0x339427,_0x3c3563,_0x3c5976=_0x4dde25['defIds'];return!_0x3c5976||_0x3c5976['length']===0x0?_0x42aeb6:_0x42aeb6[_0x450248(0x20b)]===_0x450248(0x1de)&&(!((_0x3c3563=_0x42aeb6[_0x450248(0x1b3)])===null||_0x3c3563===void 0x0)&&_0x3c3563[_0x450248(0x18b)])?_0x5c2369(_0x5c2369({},_0x42aeb6),{'children':_0x42aeb6['children'][_0x450248(0x1b4)](function(_0x5a8d8c){var _0x44b2c1=_0x450248;return typeof _0x5a8d8c[_0x44b2c1(0x14d)]['id']=='string'&&_0x3c5976&&_0x3c5976[_0x44b2c1(0x1ae)](_0x5a8d8c[_0x44b2c1(0x14d)]['id'])?_0x5c2369(_0x5c2369({},_0x5a8d8c),{'attrs':_0x5c2369(_0x5c2369({},_0x5a8d8c[_0x44b2c1(0x14d)]),{'id':_0x5a8d8c['attrs']['id']+_0x4dde25[_0x44b2c1(0x136)]})}):_0x5a8d8c;})}):_0x42aeb6;}function _0x28d3c3(){var _0x25dcaa=_0x339427;return Math['random']()[_0x25dcaa(0x1a1)](0x24)[_0x25dcaa(0x1f5)](0x2,0x8);}_0x3a7ebe[_0x339427(0x1ea)]='UniverIcon';var _0x5b4bb0={'tag':_0x339427(0x1cf),'attrs':{'xmlns':_0x339427(0x1b6),'fill':_0x339427(0x1e2),'viewBox':'0\x200\x2017\x2017','width':_0x339427(0x184),'height':_0x339427(0x184)},'children':[{'tag':'path','attrs':{'fill':_0x339427(0x172),'d':_0x339427(0x198)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x339427(0x209),'fillRule':_0x339427(0x12e),'clipRule':_0x339427(0x12e)}}]},_0x319ecf=_0x2fe0dd['forwardRef'](function(_0x36dd28,_0x121a12){var _0x37e026=_0x339427;return _0x2fe0dd[_0x37e026(0x1fe)](_0x3a7ebe,Object[_0x37e026(0x204)]({},_0x36dd28,{'id':'live-share-icon','ref':_0x121a12,'icon':_0x5b4bb0}));});_0x319ecf[_0x339427(0x1ea)]='LiveShareIcon';var _0x272381=Object[_0x339427(0x1f1)],_0x2534e0=(_0x453924,_0x223ba3,_0x2fc13c,_0x26ba21)=>{var _0x13d5c7=_0x339427;for(var _0x1bdc83=_0x26ba21>0x1?void 0x0:_0x26ba21?_0x272381(_0x223ba3,_0x2fc13c):_0x223ba3,_0x639a14=_0x453924[_0x13d5c7(0x18b)]-0x1,_0x53f5df;_0x639a14>=0x0;_0x639a14--)(_0x53f5df=_0x453924[_0x639a14])&&(_0x1bdc83=_0x53f5df(_0x1bdc83)||_0x1bdc83);return _0x1bdc83;},_0x398ec7=(_0x454e25,_0x3e894f)=>(_0x3bd52a,_0x1de202)=>_0x3e894f(_0x3bd52a,_0x1de202,_0x454e25);_0x25da99[_0x339427(0x1c7)]=class extends _0x22e122[_0x339427(0x127)]{constructor(_0x5cb677,_0x2453d6,_0x24ec53){var _0x47a369=_0x339427;super(),_0x273b05(this,_0x47a369(0x211),new Map()),(this['_univerInstanceService']=_0x5cb677,this['_injector']=_0x2453d6,this[_0x47a369(0x1cb)]=_0x24ec53,this[_0x47a369(0x12b)]());}async['getLiveShareCoordinator'](_0x3896eb){var _0x49e471=_0x339427;return this[_0x49e471(0x211)][_0x49e471(0x1d7)](_0x3896eb)||await this[_0x49e471(0x19f)](_0x3896eb),this['_entities'][_0x49e471(0x20d)](_0x3896eb);}[_0x339427(0x12b)](){var _0x12a40a=_0x339427;this[_0x12a40a(0x182)]['getTypeOfUnitAdded$'](_0x22e122['UniverInstanceType'][_0x12a40a(0x130)])['pipe'](_0xcdc2c2[_0x12a40a(0x140)](this[_0x12a40a(0x126)]))[_0x12a40a(0x185)](async _0x576cf3=>{var _0x181ad7=_0x12a40a;const _0x42c14d=_0x576cf3[_0x181ad7(0x213)]();this[_0x181ad7(0x211)][_0x181ad7(0x1d7)](_0x42c14d)||this['_startLiveShareCoordinator'](_0x42c14d);}),this[_0x12a40a(0x182)]['getTypeOfUnitDisposed$'](_0x22e122[_0x12a40a(0x1ed)][_0x12a40a(0x130)])[_0x12a40a(0x1e7)](_0xcdc2c2[_0x12a40a(0x140)](this['dispose$']))[_0x12a40a(0x185)](_0x389655=>{var _0x5ee4b4=_0x12a40a;const _0x367ca0=_0x389655[_0x5ee4b4(0x213)](),_0x1e25be=this[_0x5ee4b4(0x211)][_0x5ee4b4(0x20d)](_0x367ca0);_0x1e25be==null||_0x1e25be[_0x5ee4b4(0x210)]();});}async[_0x339427(0x19f)](_0x30c13e){var _0x994c7d=_0x339427;const _0x190f7a=await this[_0x994c7d(0x1cb)][_0x994c7d(0x1fb)](_0x30c13e),_0x48063b=this[_0x994c7d(0x174)][_0x994c7d(0x1ba)](_0x25da99[_0x994c7d(0x159)],_0x30c13e,_0x190f7a);return _0x48063b[_0x994c7d(0x124)](),this[_0x994c7d(0x211)][_0x994c7d(0x1a8)](_0x30c13e,_0x48063b),_0x48063b;}},_0x25da99[_0x339427(0x1c7)]=_0x2534e0([_0x398ec7(0x0,_0x22e122[_0x339427(0x18a)]),_0x398ec7(0x1,_0x22e122['Inject'](_0x22e122['Injector'])),_0x398ec7(0x2,_0x22e122[_0x339427(0x12f)](_0x3291c1[_0x339427(0x189)]))],_0x25da99[_0x339427(0x1c7)]);var _0x5aa815=(_0x385126=>(_0x385126[_0x339427(0x1b8)]=_0x339427(0x149),_0x385126[_0x339427(0x206)]=_0x339427(0x207),_0x385126[_0x339427(0x12c)]=_0x339427(0x17e),_0x385126[_0x339427(0x14b)]=_0x339427(0x16d),_0x385126[_0x339427(0x1d9)]=_0x339427(0x16e),_0x385126))(_0x5aa815||{});const _0x2cd1b1=_0x339427(0x196),_0x14f7d6=0xc8;_0x25da99[_0x339427(0x159)]=class extends _0x22e122['RxDisposable']{constructor(_0x58e5b1,_0x4d2d3b,_0x28dddc,_0x5e85eb,_0x1cf003){var _0x8b1676=_0x339427;super(),_0x273b05(this,_0x8b1676(0x218),new _0x364106[(_0x8b1676(0x1f6))](_0x8b1676(0x207))),_0x273b05(this,'status$',this[_0x8b1676(0x218)][_0x8b1676(0x1a6)]()),_0x273b05(this,_0x8b1676(0x12b),!0x1),_0x273b05(this,'_commandDisposable',null),_0x273b05(this,_0x8b1676(0x14a),null),(this[_0x8b1676(0x193)]=_0x58e5b1,this[_0x8b1676(0x1f8)]=_0x4d2d3b,this[_0x8b1676(0x141)]=_0x28dddc,this['_liveShareService']=_0x5e85eb,this[_0x8b1676(0x201)]=_0x1cf003);}get[_0x339427(0x1f0)](){var _0x2b39fc=_0x339427;return this[_0x2b39fc(0x218)][_0x2b39fc(0x165)]();}[_0x339427(0x210)](){var _0x556332=_0x339427,_0x5eefab;(_0x5eefab=this[_0x556332(0x186)])==null||_0x5eefab[_0x556332(0x210)](),this['_status$'][_0x556332(0x212)](_0x556332(0x207)),this[_0x556332(0x218)][_0x556332(0x1b7)]();}[_0x339427(0x124)](){var _0x1c7e35=_0x339427;this['_init']||(this[_0x1c7e35(0x12b)]=!0x0,this[_0x1c7e35(0x1f8)][_0x1c7e35(0x15b)][_0x1c7e35(0x1e7)](_0xcdc2c2[_0x1c7e35(0x140)](this[_0x1c7e35(0x126)]))[_0x1c7e35(0x185)](_0x57084c=>{var _0x57a491=_0x1c7e35;switch(_0x57084c){case _0x3291c1[_0x57a491(0x199)]['OFFLINE']:this[_0x57a491(0x14e)]();break;case _0x3291c1[_0x57a491(0x199)][_0x57a491(0x134)]:this[_0x57a491(0x146)]();break;}}),this['_collabSession'][_0x1c7e35(0x1e8)][_0x1c7e35(0x1e7)](_0xcdc2c2['takeUntil'](this['dispose$']))[_0x1c7e35(0x185)](_0x54aa00=>{var _0x309963=_0x1c7e35;const {eventID:_0x410fba}=_0x54aa00;switch(_0x410fba){case _0x52033d[_0x309963(0x148)][_0x309963(0x215)]:this[_0x309963(0x167)](_0x54aa00);break;case _0x52033d['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x54aa00);break;case _0x52033d[_0x309963(0x148)][_0x309963(0x1bd)]:this[_0x309963(0x1ad)]();break;case _0x52033d[_0x309963(0x148)][_0x309963(0x13b)]:this[_0x309963(0x1ee)](_0x54aa00);break;}}));}[_0x339427(0x160)](){var _0x5a96d=_0x339427;this[_0x5a96d(0x1f8)][_0x5a96d(0x19e)]({'eventID':_0x52033d[_0x5a96d(0x148)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x5a96d(0x193)],'userID':this[_0x5a96d(0x1f8)][_0x5a96d(0x192)]()}},this[_0x5a96d(0x193)]);}['stopPresenting'](){var _0x147003=_0x339427;this[_0x147003(0x1f0)]===_0x147003(0x16e)&&(this[_0x147003(0x218)][_0x147003(0x212)](_0x147003(0x207)),this[_0x147003(0x1f8)]['send']({'eventID':_0x52033d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x147003(0x193)]));}[_0x339427(0x1f4)](){var _0x1dd386=_0x339427;this[_0x1dd386(0x1f0)]==='not-following'&&(this['_status$'][_0x1dd386(0x212)](_0x1dd386(0x17e)),this['_startFollowing']());}[_0x339427(0x144)](){var _0x2ef1e9=_0x339427;this[_0x2ef1e9(0x1f0)]==='following'&&this[_0x2ef1e9(0x1a9)]();}[_0x339427(0x167)](_0xce1bc){var _0x2fe9d1=_0x339427;const {presenter:_0x3127b2}=_0xce1bc[_0x2fe9d1(0x1d8)],_0x441db7=this[_0x2fe9d1(0x1f8)][_0x2fe9d1(0x192)]();this[_0x2fe9d1(0x14a)]=_0x3127b2,_0x3127b2===_0x441db7?(this[_0x2fe9d1(0x1a9)](),this[_0x2fe9d1(0x1f9)]()):this[_0x2fe9d1(0x1f0)]!=='not-following'&&(this[_0x2fe9d1(0x180)](),this[_0x2fe9d1(0x18f)]());}[_0x339427(0x1c9)](){var _0x1fd5fc=_0x339427;const _0x1844ad={'eventID':_0x52033d[_0x1fd5fc(0x148)][_0x1fd5fc(0x1d5)]};this['_collabSession']['send'](_0x1844ad,this['_unitID']);}[_0x339427(0x1ad)](){var _0x2548cc=_0x339427;this[_0x2548cc(0x14a)]=null,this['_status']!==_0x2548cc(0x16e)&&this[_0x2548cc(0x161)]();}[_0x339427(0x1ee)](_0x239098){var _0x5c0210=_0x339427;if(this[_0x5c0210(0x1f0)]===_0x5c0210(0x17e)&&this[_0x5c0210(0x14a)]===_0x239098['data'][_0x5c0210(0x177)]){const _0x27c29b=_0x52033d[_0x5c0210(0x139)](_0x239098['data'])[_0x5c0210(0x1f2)]['reverse']()[_0x5c0210(0x1aa)](_0x73639=>_0x73639['id']===_0x2f8121[_0x5c0210(0x14c)]['id']);if(_0x27c29b){const _0x38df61=_0x27c29b[_0x5c0210(0x1d1)][_0x5c0210(0x1dc)],_0x5ad349=_0x27c29b[_0x5c0210(0x1d1)][_0x5c0210(0x1f7)]['id'];setTimeout(()=>{var _0x3b88b2=_0x5c0210;this[_0x3b88b2(0x201)][_0x3b88b2(0x1fd)](_0x2f8121['SetWorksheetActiveOperation']['id'],{'unitId':_0x38df61,'subUnitId':_0x5ad349},{'fromCollab':!0x0});});}}}[_0x339427(0x1f9)](){var _0x516367=_0x339427;this[_0x516367(0x218)][_0x516367(0x212)]('presenting');const _0x3f27e6=new Map(),_0x53e615=this[_0x516367(0x186)]=new _0x22e122[(_0x516367(0x1a2))]();_0x53e615[_0x516367(0x173)](_0x22e122[_0x516367(0x194)](()=>{var _0xf83175=_0x516367;_0x3f27e6[_0xf83175(0x1c1)](_0x27f2c2=>_0x27f2c2[_0xf83175(0x1b7)]()),_0x3f27e6[_0xf83175(0x20c)]();})),_0x53e615['add'](this['_commandService'][_0x516367(0x18e)](_0x5e71c1=>{var _0x2af6db=_0x516367,_0x5d9c98;if(_0x5e71c1['type']!==_0x22e122[_0x2af6db(0x17b)][_0x2af6db(0x1b9)]||!this[_0x2af6db(0x155)]['shouldShareOperation'](_0x5e71c1['id']))return;const {id:_0x541ed3}=_0x5e71c1;let _0x598913;_0x3f27e6[_0x2af6db(0x1d7)](_0x541ed3)?_0x598913=_0x3f27e6[_0x2af6db(0x20d)](_0x541ed3):(_0x598913=new _0x364106['Subject'](),_0x3f27e6[_0x2af6db(0x1a8)](_0x541ed3,_0x598913),_0x598913[_0x2af6db(0x1e7)](_0xcdc2c2[_0x2af6db(0x21a)]((_0x5d9c98=this[_0x2af6db(0x141)][_0x2af6db(0x1a0)](_0x2cd1b1))!=null?_0x5d9c98:_0x14f7d6,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2af6db(0x185)](_0x54c9c3=>{var _0xd2a34e=_0x2af6db;this[_0xd2a34e(0x1f8)]['send']({'eventID':_0x52033d['CollaborationEvent'][_0xd2a34e(0x15f)],'data':{'unitID':this[_0xd2a34e(0x193)],'operations':{[_0x54c9c3['id']]:{'id':_0x54c9c3['id'],'params':JSON['stringify'](_0x54c9c3[_0xd2a34e(0x1d1)])}}}},this[_0xd2a34e(0x193)]);})),_0x598913[_0x2af6db(0x212)](_0x5e71c1);})),this[_0x516367(0x155)][_0x516367(0x132)](this[_0x516367(0x193)])[_0x516367(0x1c1)](_0x248e80=>this['_collabSession'][_0x516367(0x19e)]({'eventID':_0x52033d['CollaborationEvent'][_0x516367(0x15f)],'data':{'unitID':this['_unitID'],'operations':{[_0x248e80['id']]:{'id':_0x248e80['id'],'params':JSON[_0x516367(0x1ac)](_0x248e80[_0x516367(0x1d1)])}}}},this[_0x516367(0x193)]));}[_0x339427(0x180)](){var _0x5ab83e=_0x339427,_0x13e588;this[_0x5ab83e(0x218)][_0x5ab83e(0x212)]('idle'),(_0x13e588=this['_commandDisposable'])==null||_0x13e588['dispose'](),this[_0x5ab83e(0x186)]=null;}[_0x339427(0x18f)](){var _0x1d830=_0x339427,_0x44589f;(_0x44589f=this[_0x1d830(0x186)])==null||_0x44589f[_0x1d830(0x210)](),this[_0x1d830(0x218)][_0x1d830(0x212)](_0x1d830(0x17e));}[_0x339427(0x161)](){var _0x50eda2=_0x339427,_0x3c5407;this['_status$'][_0x50eda2(0x212)](_0x50eda2(0x207)),(_0x3c5407=this[_0x50eda2(0x186)])==null||_0x3c5407[_0x50eda2(0x210)](),this['_commandDisposable']=null;}[_0x339427(0x1a9)](){var _0x46f6f2=_0x339427,_0x457d01;this[_0x46f6f2(0x218)][_0x46f6f2(0x212)]('not-following'),(_0x457d01=this[_0x46f6f2(0x186)])==null||_0x457d01['dispose']();}[_0x339427(0x1b5)](_0x4d6281){var _0x5e3e7e=_0x339427;if([_0x5e3e7e(0x16e),'not-following',_0x5e3e7e(0x149)]['includes'](this[_0x5e3e7e(0x1f0)])||!_0x4d6281[_0x5e3e7e(0x1d8)][_0x5e3e7e(0x15c)]||_0x4d6281[_0x5e3e7e(0x1d8)]['presenter']===this[_0x5e3e7e(0x1f8)]['getMemberID']())return;this[_0x5e3e7e(0x1f0)]===_0x5e3e7e(0x207)&&this[_0x5e3e7e(0x18f)]();const _0x54ab20=_0x4d6281[_0x5e3e7e(0x1d8)]['operations'];Object['values'](_0x54ab20)['forEach'](_0x48e627=>{var _0xfb1eaf=_0x5e3e7e;this[_0xfb1eaf(0x201)]['executeCommand'](_0x48e627['id'],_0x48e627[_0xfb1eaf(0x1d1)]?JSON['parse'](_0x48e627['params']):null,{'fromCollab':!0x0});});}[_0x339427(0x14e)](){var _0x1bc55a=_0x339427,_0x308f29;this['_status$']['next']('offline'),(_0x308f29=this['_commandDisposable'])==null||_0x308f29[_0x1bc55a(0x210)]();}[_0x339427(0x146)](){var _0x2e7dc9=_0x339427;this[_0x2e7dc9(0x218)][_0x2e7dc9(0x212)](_0x2e7dc9(0x207)),this[_0x2e7dc9(0x1c9)]();}},_0x25da99[_0x339427(0x159)]=_0x2534e0([_0x398ec7(0x2,_0x22e122['IConfigService']),_0x398ec7(0x3,_0x22e122[_0x339427(0x12f)](_0x23a349)),_0x398ec7(0x4,_0x22e122[_0x339427(0x13a)])],_0x25da99['LiveShareCoordinator']);function _0x2bbd3d(){var _0x334050=_0x339427;const _0x2d4362=_0x11c135['useDependency'](_0x25da99[_0x334050(0x1c7)]),_0x7d5b20=_0x11c135['useDependency'](_0x22e122[_0x334050(0x18a)]),_0xde04fd=_0x11c135[_0x334050(0x12a)](()=>_0x7d5b20[_0x334050(0x1cc)](_0x22e122[_0x334050(0x1ed)][_0x334050(0x130)]),void 0x0,!0x1,[]),[_0x3476cb,_0x4e0d26]=_0x2fe0dd[_0x334050(0x19b)](null),[_0x4fabdb,_0x61c32b]=_0x2fe0dd[_0x334050(0x19b)](_0x5aa815['IDLE']),_0x38f173=_0x2fe0dd[_0x334050(0x1ec)](null);return _0x2fe0dd[_0x334050(0x154)](()=>(_0xde04fd&&_0x2d4362[_0x334050(0x147)](_0xde04fd[_0x334050(0x213)]())[_0x334050(0x158)](_0x1276e9=>{var _0x5a7327=_0x334050;_0x4e0d26(_0x1276e9),_0x38f173[_0x5a7327(0x145)]=_0x1276e9['status$'][_0x5a7327(0x185)](_0x1d4020=>{_0x61c32b(_0x1d4020);});}),()=>{var _0x30c22c=_0x334050,_0x178305;(_0x178305=_0x38f173[_0x30c22c(0x145)])==null||_0x178305[_0x30c22c(0x181)](),_0x38f173['current']=null;}),[_0xde04fd,_0x2d4362]),_0x3476cb?_0x476c41['jsx'](_0x4599e2[_0x334050(0x190)],{'align':_0x334050(0x1bf),'disabled':_0x4fabdb===_0x5aa815['OFFLINE'],'className':_0x334050(0x12d),'overlay':_0x476c41[_0x334050(0x1bb)](_0x5f401b,{'status':_0x4fabdb,'coordinator':_0x3476cb}),'children':_0x476c41[_0x334050(0x1bb)]('button',{'className':_0x4599e2[_0x334050(0x13c)](_0x334050(0x187),{'univer-cursor-not-allowed':_0x4fabdb===_0x5aa815[_0x334050(0x1b8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4fabdb!==_0x5aa815[_0x334050(0x1b8)]}),'type':_0x334050(0x151),'children':_0x476c41[_0x334050(0x1bb)](_0x319ecf,{'className':_0x334050(0x1e6)})})}):null;}function _0x5f401b(_0x29ca50){var _0x49db32=_0x339427;const {status:_0x501b07,coordinator:_0x4a94de}=_0x29ca50;switch(_0x501b07){case _0x5aa815[_0x49db32(0x206)]:return _0x476c41[_0x49db32(0x1bb)](_0x16f773,{'coordinator':_0x4a94de});case _0x5aa815['FOLLOWING']:return _0x476c41[_0x49db32(0x1bb)](_0xda0438,{'coordinator':_0x4a94de});case _0x5aa815[_0x49db32(0x14b)]:return _0x476c41[_0x49db32(0x1bb)](_0x2dadd7,{'coordinator':_0x4a94de});case _0x5aa815['OFFLINE']:return _0x476c41[_0x49db32(0x1bb)](_0x54b29d,{});case _0x5aa815[_0x49db32(0x1d9)]:return _0x476c41[_0x49db32(0x1bb)](_0xc25abc,{'coordinator':_0x4a94de});default:return null;}}function _0x16f773(_0x36b045){var _0x23827b=_0x339427;const {coordinator:_0x2bb58c}=_0x36b045;return _0x476c41[_0x23827b(0x1fc)](_0x476c41[_0x23827b(0x128)],{'children':[_0x476c41[_0x23827b(0x1bb)](_0x23827b(0x1c5),{'className':_0x23827b(0x19a),'children':_0x23827b(0x1e4)}),_0x476c41[_0x23827b(0x1bb)](_0x4599e2[_0x23827b(0x13d)],{'onClick':()=>_0x2bb58c[_0x23827b(0x160)](),'children':_0x23827b(0x1dd)})]});}function _0xda0438(_0x26797d){var _0x13ef3b=_0x339427;const {coordinator:_0x2e9e7f}=_0x26797d;return _0x476c41[_0x13ef3b(0x1fc)](_0x476c41['Fragment'],{'children':[_0x476c41[_0x13ef3b(0x1bb)](_0x13ef3b(0x1c5),{'className':_0x13ef3b(0x19a),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x476c41[_0x13ef3b(0x1bb)](_0x4599e2[_0x13ef3b(0x13d)],{'onClick':()=>_0x2e9e7f['stopFollowing'](),'children':_0x13ef3b(0x1a4)})]});}function _0x2dadd7(_0xef48ec){var _0x548bf8=_0x339427;const {coordinator:_0xfd4b80}=_0xef48ec;return _0x476c41[_0x548bf8(0x1fc)](_0x476c41['Fragment'],{'children':[_0x476c41[_0x548bf8(0x1bb)](_0x548bf8(0x1c5),{'className':_0x548bf8(0x19a),'children':_0x548bf8(0x188)}),_0x476c41[_0x548bf8(0x1bb)](_0x4599e2[_0x548bf8(0x13d)],{'variant':_0x548bf8(0x219),'onClick':()=>_0xfd4b80[_0x548bf8(0x1f4)](),'children':_0x548bf8(0x1b2)})]});}function _0xc25abc(_0x4e1a5d){var _0x3a595e=_0x339427;const {coordinator:_0x29c9b4}=_0x4e1a5d;return _0x476c41[_0x3a595e(0x1fc)](_0x476c41[_0x3a595e(0x128)],{'children':[_0x476c41[_0x3a595e(0x1bb)](_0x3a595e(0x1c5),{'className':_0x3a595e(0x19a),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x476c41['jsx'](_0x4599e2[_0x3a595e(0x13d)],{'variant':_0x3a595e(0x20a),'onClick':()=>_0x29c9b4['stopPresenting'](),'children':_0x3a595e(0x1be)})]});}function _0x54b29d(){var _0x58d9e7=_0x339427;return _0x476c41['jsx'](_0x476c41[_0x58d9e7(0x128)],{'children':_0x58d9e7(0x1b0)});}var _0x96436a=Object['getOwnPropertyDescriptor'],_0x2db918=(_0x49b33f,_0x13c0e7,_0x2f0421,_0x197b13)=>{var _0x48095e=_0x339427;for(var _0x3d6c63=_0x197b13>0x1?void 0x0:_0x197b13?_0x96436a(_0x13c0e7,_0x2f0421):_0x13c0e7,_0x578115=_0x49b33f[_0x48095e(0x18b)]-0x1,_0x4825b1;_0x578115>=0x0;_0x578115--)(_0x4825b1=_0x49b33f[_0x578115])&&(_0x3d6c63=_0x4825b1(_0x3d6c63)||_0x3d6c63);return _0x3d6c63;},_0x4d1e7c=(_0x3e3778,_0x310dae)=>(_0x59e772,_0x4066e2)=>_0x310dae(_0x59e772,_0x4066e2,_0x3e3778);_0x25da99[_0x339427(0x1cd)]=class extends _0x22e122[_0x339427(0x200)]{constructor(_0xc1584f,_0x4ec64d){var _0x44393b=_0x339427;super(),this[_0x44393b(0x174)]=_0xc1584f,this[_0x44393b(0x131)]=_0x4ec64d,this[_0x44393b(0x1da)]();}[_0x339427(0x1da)](){var _0x41c737=_0x339427;this[_0x41c737(0x16b)](this[_0x41c737(0x131)][_0x41c737(0x163)](_0x11c135['BuiltInUIPart'][_0x41c737(0x1e1)],()=>_0x11c135[_0x41c737(0x1d3)](_0x2bbd3d,this[_0x41c737(0x174)])));}},_0x25da99[_0x339427(0x1cd)]=_0x2db918([_0x4d1e7c(0x0,_0x22e122['Inject'](_0x22e122['Injector'])),_0x4d1e7c(0x1,_0x11c135[_0x339427(0x1e0)])],_0x25da99[_0x339427(0x1cd)]);var _0x47c9d0=Object[_0x339427(0x202)],_0x51257f=Object[_0x339427(0x1f1)],_0x59e5e3=(_0x528874,_0x290d21,_0x490a63)=>_0x290d21 in _0x528874?_0x47c9d0(_0x528874,_0x290d21,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x490a63}):_0x528874[_0x290d21]=_0x490a63,_0x4d051c=(_0x3ed170,_0x156be6,_0x10a9a7,_0x4c61ee)=>{for(var _0x434170=_0x4c61ee>0x1?void 0x0:_0x4c61ee?_0x51257f(_0x156be6,_0x10a9a7):_0x156be6,_0x5255de=_0x3ed170['length']-0x1,_0xc5c5a1;_0x5255de>=0x0;_0x5255de--)(_0xc5c5a1=_0x3ed170[_0x5255de])&&(_0x434170=_0xc5c5a1(_0x434170)||_0x434170);return _0x434170;},_0x3aa905=(_0x1ad8b2,_0x128506)=>(_0x576351,_0x40c2bf)=>_0x128506(_0x576351,_0x40c2bf,_0x1ad8b2),_0x86060f=(_0x2fc323,_0x4fdbf4,_0x335105)=>_0x59e5e3(_0x2fc323,typeof _0x4fdbf4!=_0x339427(0x1c4)?_0x4fdbf4+'':_0x4fdbf4,_0x335105);const _0x2a3fe8=_0x339427(0x1eb);_0x25da99[_0x339427(0x1c0)]=class extends _0x22e122[_0x339427(0x15e)]{constructor(_0x24bf08=_0x214776,_0x6b90f7,_0x2193f9){var _0x2162ac=_0x339427;super(),this[_0x2162ac(0x16a)]=_0x24bf08,this[_0x2162ac(0x174)]=_0x6b90f7,this[_0x2162ac(0x141)]=_0x2193f9;const {..._0x804738}=_0x22e122[_0x2162ac(0x171)]({},_0x214776,this[_0x2162ac(0x16a)]);this['_configService'][_0x2162ac(0x13e)](_0x32f8f0,_0x804738);}[_0x339427(0x20e)](){var _0x560636=_0x339427;_0x22e122[_0x560636(0x1a5)](this['_injector'],_0x22e122[_0x560636(0x17a)]([[_0x23a349],[_0x25da99[_0x560636(0x1c7)]],[_0x50ce8a],[_0x25da99['DesktopLiveShareController']]],this[_0x560636(0x16a)][_0x560636(0x176)])),_0x22e122['touchDependencies'](this[_0x560636(0x174)],[[_0x50ce8a]]);}['onRendered'](){var _0x51ff1f=_0x339427;_0x22e122[_0x51ff1f(0x1e9)](this[_0x51ff1f(0x174)],[[_0x25da99[_0x51ff1f(0x1cd)]]]);}},_0x86060f(_0x25da99[_0x339427(0x1c0)],_0x339427(0x17d),_0x22e122[_0x339427(0x1ed)][_0x339427(0x129)]),_0x86060f(_0x25da99[_0x339427(0x1c0)],_0x339427(0x143),_0x2a3fe8),_0x25da99[_0x339427(0x1c0)]=_0x4d051c([_0x22e122[_0x339427(0x18c)](_0x3291c1['UniverCollaborationClientPlugin']),_0x3aa905(0x1,_0x22e122['Inject'](_0x22e122[_0x339427(0x1b1)])),_0x3aa905(0x2,_0x22e122['IConfigService'])],_0x25da99['UniverLiveSharePlugin']),_0x25da99[_0x339427(0x208)]=_0x2bbd3d,_0x25da99['LiveShareService']=_0x23a349,_0x25da99[_0x339427(0x13f)]=_0x5aa815,Object[_0x339427(0x202)](_0x25da99,Symbol[_0x339427(0x166)],{'value':_0x339427(0x20f)});}));
1
+ (function(_0x3a0295,_0xa96d5f){var _0x147a03=_0x551c,_0x3f15a0=_0x3a0295();while(!![]){try{var _0x33a802=-parseInt(_0x147a03(0xcd))/0x1*(-parseInt(_0x147a03(0x135))/0x2)+parseInt(_0x147a03(0x107))/0x3+parseInt(_0x147a03(0xd9))/0x4+parseInt(_0x147a03(0xc5))/0x5*(parseInt(_0x147a03(0x96))/0x6)+-parseInt(_0x147a03(0x11e))/0x7+-parseInt(_0x147a03(0x113))/0x8+parseInt(_0x147a03(0x120))/0x9;if(_0x33a802===_0xa96d5f)break;else _0x3f15a0['push'](_0x3f15a0['shift']());}catch(_0x3b0385){_0x3f15a0['push'](_0x3f15a0['shift']());}}}(_0x2e9b,0x5dd44),function(_0x53ed2e,_0x2cd35d){var _0xec5b5c=_0x551c;typeof exports==_0xec5b5c(0x16b)&&typeof module<'u'?_0x2cd35d(exports,require(_0xec5b5c(0xf1)),require('@univerjs/core'),require(_0xec5b5c(0x169)),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require(_0xec5b5c(0x14b)),require(_0xec5b5c(0xe1)),require(_0xec5b5c(0xeb)),require(_0xec5b5c(0x131)),require(_0xec5b5c(0x164)),require(_0xec5b5c(0xe7))):typeof define==_0xec5b5c(0x106)&&define[_0xec5b5c(0x15a)]?define([_0xec5b5c(0x89),'@univerjs-pro/collaboration-client',_0xec5b5c(0xff),_0xec5b5c(0x169),_0xec5b5c(0x124),_0xec5b5c(0xca),_0xec5b5c(0x14b),'@univerjs/design',_0xec5b5c(0xeb),'@univerjs-pro/collaboration','rxjs','rxjs/operators'],_0x2cd35d):(_0x53ed2e=typeof globalThis<'u'?globalThis:_0x53ed2e||self,_0x2cd35d(_0x53ed2e['UniverProLiveShare']={},_0x53ed2e[_0xec5b5c(0x155)],_0x53ed2e[_0xec5b5c(0x11d)],_0x53ed2e[_0xec5b5c(0x9f)],_0x53ed2e[_0xec5b5c(0xb5)],_0x53ed2e[_0xec5b5c(0xda)],_0x53ed2e[_0xec5b5c(0x12a)],_0x53ed2e[_0xec5b5c(0x14d)],_0x53ed2e['React'],_0x53ed2e['UniverProCollaboration'],_0x53ed2e[_0xec5b5c(0x164)],_0x53ed2e[_0xec5b5c(0x164)]['operators']));}(this,function(_0x1ad529,_0x86777e,_0x68649f,_0x29cc2f,_0x1d2bd8,_0x467c60,_0x252371,_0x22cbab,_0x1adffa,_0x2e7c2c,_0x2afcdd,_0x2844f8){'use strict';var _0x3abdb7=_0x551c;var _0x3a4666=Object[_0x3abdb7(0xa7)],_0x23664f=(_0x21c623,_0x2ab4de,_0x1cd2cf)=>_0x2ab4de in _0x21c623?_0x3a4666(_0x21c623,_0x2ab4de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cd2cf}):_0x21c623[_0x2ab4de]=_0x1cd2cf,_0x39c852=(_0x4e4741,_0x354f39,_0x5450e1)=>_0x23664f(_0x4e4741,typeof _0x354f39!=_0x3abdb7(0x153)?_0x354f39+'':_0x354f39,_0x5450e1);const _0x5a5348=_0x3abdb7(0x14f),_0x2fd119={};class _0x262dcf extends _0x68649f[_0x3abdb7(0xef)]{constructor(){var _0x183068=_0x3abdb7;super(...arguments),_0x39c852(this,_0x183068(0x157),new Set()),_0x39c852(this,_0x183068(0xfb),new Set());}[_0x3abdb7(0xf5)](_0x28ea65){var _0x24f771=_0x3abdb7;return this[_0x24f771(0x157)][_0x24f771(0x148)](_0x28ea65),_0x68649f[_0x24f771(0x138)](()=>this['_sharedOperations'][_0x24f771(0xa0)](_0x28ea65));}['registerInitialStateReporter'](_0x1c2250){var _0x41f5ee=_0x3abdb7;return this['_reporters'][_0x41f5ee(0x148)](_0x1c2250),_0x68649f[_0x41f5ee(0x138)](()=>this[_0x41f5ee(0xfb)][_0x41f5ee(0xa0)](_0x1c2250));}[_0x3abdb7(0x166)](_0xcdff1e){return this['_sharedOperations']['has'](_0xcdff1e);}['getInitialStates'](_0x2b4897){var _0x2f11e2=_0x3abdb7;return Array[_0x2f11e2(0xe3)](this['_reporters'])['map'](_0x542593=>_0x542593(_0x2b4897));}}var _0xe5bade=Object[_0x3abdb7(0x13d)],_0x17bc3c=(_0x7e8dc8,_0x367aee,_0x5db184,_0x17a1b2)=>{var _0x374ab7=_0x3abdb7;for(var _0x4a3f63=_0x17a1b2>0x1?void 0x0:_0x17a1b2?_0xe5bade(_0x367aee,_0x5db184):_0x367aee,_0x431e52=_0x7e8dc8[_0x374ab7(0xac)]-0x1,_0xdfbcfa;_0x431e52>=0x0;_0x431e52--)(_0xdfbcfa=_0x7e8dc8[_0x431e52])&&(_0x4a3f63=_0xdfbcfa(_0x4a3f63)||_0x4a3f63);return _0x4a3f63;},_0x5829a0=(_0x4d9428,_0x34b8b9)=>(_0x537cc5,_0x46b404)=>_0x34b8b9(_0x537cc5,_0x46b404,_0x4d9428);let _0x3b0a36=class extends _0x68649f['Disposable']{constructor(_0x412701){var _0x1d054e=_0x3abdb7;super(),this[_0x1d054e(0x137)]=_0x412701,this[_0x1d054e(0xd5)]();}[_0x3abdb7(0xd5)](){var _0x4ff5b7=_0x3abdb7;[_0x1d2bd8['SetZoomRatioOperation']['id'],_0x1d2bd8[_0x4ff5b7(0x159)]['id'],_0x29cc2f[_0x4ff5b7(0xb1)]['id']][_0x4ff5b7(0x168)](_0x10b7e1=>{var _0x5712fb=_0x4ff5b7;this[_0x5712fb(0xae)](this[_0x5712fb(0x137)]['registerSharedOperation'](_0x10b7e1));});}};_0x3b0a36=_0x17bc3c([_0x5829a0(0x0,_0x68649f[_0x3abdb7(0xdf)](_0x262dcf))],_0x3b0a36);var _0x5dd2ef=function(){var _0x314868=_0x3abdb7;return _0x5dd2ef=Object[_0x314868(0xb4)]||function(_0x2dafc8){var _0x37e4d9=_0x314868;for(var _0x2d9965,_0x39c07d=0x1,_0x4ef927=arguments[_0x37e4d9(0xac)];_0x39c07d<_0x4ef927;_0x39c07d++){_0x2d9965=arguments[_0x39c07d];for(var _0x30f01a in _0x2d9965)Object['prototype'][_0x37e4d9(0x9b)][_0x37e4d9(0x116)](_0x2d9965,_0x30f01a)&&(_0x2dafc8[_0x30f01a]=_0x2d9965[_0x30f01a]);}return _0x2dafc8;},_0x5dd2ef[_0x314868(0x12f)](this,arguments);},_0x24d504=function(_0x53be78,_0x3b4596){var _0xa93b01=_0x3abdb7,_0x2f95f0={};for(var _0x22c18d in _0x53be78)Object['prototype'][_0xa93b01(0x9b)][_0xa93b01(0x116)](_0x53be78,_0x22c18d)&&_0x3b4596[_0xa93b01(0xfe)](_0x22c18d)<0x0&&(_0x2f95f0[_0x22c18d]=_0x53be78[_0x22c18d]);if(_0x53be78!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x5c6626=0x0,_0x22c18d=Object['getOwnPropertySymbols'](_0x53be78);_0x5c6626<_0x22c18d[_0xa93b01(0xac)];_0x5c6626++)_0x3b4596[_0xa93b01(0xfe)](_0x22c18d[_0x5c6626])<0x0&&Object['prototype'][_0xa93b01(0x109)]['call'](_0x53be78,_0x22c18d[_0x5c6626])&&(_0x2f95f0[_0x22c18d[_0x5c6626]]=_0x53be78[_0x22c18d[_0x5c6626]]);}return _0x2f95f0;},_0x4ef3c0=_0x1adffa[_0x3abdb7(0x127)](function(_0x3703ad,_0x54a929){var _0x13f839=_0x3abdb7,_0x5eefcd=_0x3703ad[_0x13f839(0x15f)],_0x51afba=_0x3703ad['id'],_0x306906=_0x3703ad[_0x13f839(0x94)],_0x423e90=_0x3703ad[_0x13f839(0x12d)],_0x37b51c=_0x24d504(_0x3703ad,['icon','id',_0x13f839(0x94),_0x13f839(0x12d)]),_0x315fb8='univerjs-icon\x20univerjs-icon-'['concat'](_0x51afba,'\x20')['concat'](_0x306906||'')[_0x13f839(0x10f)](),_0x364617=_0x1adffa[_0x13f839(0xb2)]('_'[_0x13f839(0x10e)](_0x5edde5()));return _0x26ab52(_0x5eefcd,''[_0x13f839(0x10e)](_0x51afba),{'defIds':_0x5eefcd[_0x13f839(0x14a)],'idSuffix':_0x364617[_0x13f839(0xc9)]},_0x5dd2ef({'ref':_0x54a929,'className':_0x315fb8},_0x37b51c),_0x423e90);});function _0x26ab52(_0x180c91,_0x572c93,_0x31c597,_0x3a7f29,_0x27f07d){var _0x24ae7c=_0x3abdb7;return _0x1adffa[_0x24ae7c(0x88)](_0x180c91[_0x24ae7c(0xb3)],_0x5dd2ef(_0x5dd2ef({'key':_0x572c93},_0x5aaeb7(_0x180c91,_0x31c597,_0x27f07d)),_0x3a7f29),(_0x375566(_0x180c91,_0x31c597)[_0x24ae7c(0x93)]||[])['map'](function(_0x4c33c0,_0x3e1168){var _0x2b31ed=_0x24ae7c;return _0x26ab52(_0x4c33c0,''[_0x2b31ed(0x10e)](_0x572c93,'-')[_0x2b31ed(0x10e)](_0x180c91[_0x2b31ed(0xb3)],'-')['concat'](_0x3e1168),_0x31c597,void 0x0,_0x27f07d);}));}function _0x5aaeb7(_0x1a25bc,_0x26e47f,_0x51ede3){var _0x41354f=_0x3abdb7,_0x5cd5c8=_0x5dd2ef({},_0x1a25bc['attrs']);_0x51ede3!=null&&_0x51ede3[_0x41354f(0x111)]&&_0x5cd5c8[_0x41354f(0x9d)]===_0x41354f(0x111)&&(_0x5cd5c8[_0x41354f(0x9d)]=_0x51ede3[_0x41354f(0x111)]),_0x1a25bc[_0x41354f(0xb3)]===_0x41354f(0xa9)&&_0x5cd5c8['id']&&(_0x5cd5c8['id']=_0x5cd5c8['id']+_0x26e47f[_0x41354f(0xcc)]),Object[_0x41354f(0xbb)](_0x5cd5c8)[_0x41354f(0x168)](function(_0x25cb5b){var _0x2f8568=_0x41354f,_0x22c9c9=_0x25cb5b[0x0],_0x5921e4=_0x25cb5b[0x1];_0x22c9c9===_0x2f8568(0xa9)&&typeof _0x5921e4==_0x2f8568(0x12c)&&(_0x5cd5c8[_0x22c9c9]=_0x5921e4[_0x2f8568(0xab)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x26e47f[_0x2f8568(0xcc)],')')));});var _0x2303d3=_0x26e47f[_0x41354f(0x14a)];return!_0x2303d3||_0x2303d3[_0x41354f(0xac)]===0x0||(_0x1a25bc[_0x41354f(0xb3)]===_0x41354f(0x161)&&_0x5cd5c8[_0x41354f(0xa8)]&&(_0x5cd5c8[_0x41354f(0xa8)]=_0x5cd5c8[_0x41354f(0xa8)]+_0x26e47f[_0x41354f(0xcc)]),Object['entries'](_0x5cd5c8)[_0x41354f(0x168)](function(_0x2ba5eb){var _0x488e33=_0x41354f,_0x1ff48e=_0x2ba5eb[0x0],_0x1fffd4=_0x2ba5eb[0x1];typeof _0x1fffd4==_0x488e33(0x12c)&&(_0x5cd5c8[_0x1ff48e]=_0x1fffd4[_0x488e33(0xab)](/url\(#(.*)\)/,_0x488e33(0xb9)['concat'](_0x26e47f[_0x488e33(0xcc)],')')));})),_0x5cd5c8;}function _0x375566(_0x2ad3c9,_0xf8ae26){var _0x9e980c=_0x3abdb7,_0x4f3a23,_0x12ab14=_0xf8ae26[_0x9e980c(0x14a)];return!_0x12ab14||_0x12ab14[_0x9e980c(0xac)]===0x0?_0x2ad3c9:_0x2ad3c9['tag']==='defs'&&(!((_0x4f3a23=_0x2ad3c9[_0x9e980c(0x93)])===null||_0x4f3a23===void 0x0)&&_0x4f3a23[_0x9e980c(0xac)])?_0x5dd2ef(_0x5dd2ef({},_0x2ad3c9),{'children':_0x2ad3c9['children'][_0x9e980c(0x139)](function(_0xadb1ab){var _0x1cb318=_0x9e980c;return typeof _0xadb1ab[_0x1cb318(0x83)]['id']==_0x1cb318(0x12c)&&_0x12ab14&&_0x12ab14[_0x1cb318(0x102)](_0xadb1ab[_0x1cb318(0x83)]['id'])?_0x5dd2ef(_0x5dd2ef({},_0xadb1ab),{'attrs':_0x5dd2ef(_0x5dd2ef({},_0xadb1ab['attrs']),{'id':_0xadb1ab[_0x1cb318(0x83)]['id']+_0xf8ae26[_0x1cb318(0xcc)]})}):_0xadb1ab;})}):_0x2ad3c9;}function _0x5edde5(){var _0x2e8545=_0x3abdb7;return Math['random']()[_0x2e8545(0xcf)](0x24)[_0x2e8545(0x144)](0x2,0x8);}_0x4ef3c0[_0x3abdb7(0xa4)]=_0x3abdb7(0xf3);var _0x589cf3={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3abdb7(0x90),'viewBox':_0x3abdb7(0x86),'width':'1em','height':_0x3abdb7(0x149)},'children':[{'tag':_0x3abdb7(0x146),'attrs':{'fill':'currentColor','d':_0x3abdb7(0x92)}},{'tag':_0x3abdb7(0x146),'attrs':{'fill':_0x3abdb7(0x98),'d':_0x3abdb7(0xa6),'fillRule':_0x3abdb7(0x130),'clipRule':_0x3abdb7(0x130)}}]},_0x34924a=_0x1adffa[_0x3abdb7(0x127)](function(_0x4df344,_0x5adcc){var _0x2398f1=_0x3abdb7;return _0x1adffa[_0x2398f1(0x88)](_0x4ef3c0,Object['assign']({},_0x4df344,{'id':_0x2398f1(0xe2),'ref':_0x5adcc,'icon':_0x589cf3}));});_0x34924a[_0x3abdb7(0xa4)]='LiveShareIcon';var _0x22e6d5=Object[_0x3abdb7(0x13d)],_0x4e5da2=(_0x14c557,_0x33a6ae,_0x457b09,_0x1d305f)=>{var _0x42b3df=_0x3abdb7;for(var _0x1a02f9=_0x1d305f>0x1?void 0x0:_0x1d305f?_0x22e6d5(_0x33a6ae,_0x457b09):_0x33a6ae,_0x32b637=_0x14c557[_0x42b3df(0xac)]-0x1,_0x311be9;_0x32b637>=0x0;_0x32b637--)(_0x311be9=_0x14c557[_0x32b637])&&(_0x1a02f9=_0x311be9(_0x1a02f9)||_0x1a02f9);return _0x1a02f9;},_0x57492a=(_0x2cde5a,_0x281868)=>(_0x32aa6c,_0x30cafa)=>_0x281868(_0x32aa6c,_0x30cafa,_0x2cde5a);_0x1ad529['LiveShareController']=class extends _0x68649f[_0x3abdb7(0x119)]{constructor(_0x19cdad,_0x234a54,_0x555a74){var _0x38075a=_0x3abdb7;super(),_0x39c852(this,_0x38075a(0xa3),new Map()),(this['_univerInstanceService']=_0x19cdad,this[_0x38075a(0xde)]=_0x234a54,this[_0x38075a(0x165)]=_0x555a74,this[_0x38075a(0xd5)]());}async[_0x3abdb7(0x16c)](_0x509716){var _0x38dc23=_0x3abdb7;return this[_0x38dc23(0xa3)][_0x38dc23(0xcb)](_0x509716)||await this[_0x38dc23(0x150)](_0x509716),this[_0x38dc23(0xa3)][_0x38dc23(0x10a)](_0x509716);}['_init'](){var _0x1480d8=_0x3abdb7;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x68649f[_0x1480d8(0x16a)]['UNIVER_SHEET'])['pipe'](_0x2844f8[_0x1480d8(0xfd)](this['dispose$']))[_0x1480d8(0x122)](async _0x491c0f=>{var _0x298f1c=_0x1480d8;const _0x562311=_0x491c0f[_0x298f1c(0xbc)]();this['_entities']['has'](_0x562311)||this[_0x298f1c(0x150)](_0x562311);}),this[_0x1480d8(0x16e)]['getTypeOfUnitDisposed$'](_0x68649f[_0x1480d8(0x16a)][_0x1480d8(0xbd)])[_0x1480d8(0x8f)](_0x2844f8[_0x1480d8(0xfd)](this[_0x1480d8(0x84)]))[_0x1480d8(0x122)](_0x59938c=>{var _0x30f1b8=_0x1480d8;const _0x109575=_0x59938c[_0x30f1b8(0xbc)](),_0x2cff9f=this['_entities'][_0x30f1b8(0x10a)](_0x109575);_0x2cff9f==null||_0x2cff9f[_0x30f1b8(0x11c)]();});}async[_0x3abdb7(0x150)](_0x1e8276){var _0x584df3=_0x3abdb7;const _0x46eccf=await this[_0x584df3(0x165)][_0x584df3(0x118)](_0x1e8276),_0x3cf11f=this[_0x584df3(0xde)]['createInstance'](_0x1ad529[_0x584df3(0xc1)],_0x1e8276,_0x46eccf);return _0x3cf11f['init'](),this[_0x584df3(0xa3)][_0x584df3(0xba)](_0x1e8276,_0x3cf11f),_0x3cf11f;}},_0x1ad529['LiveShareController']=_0x4e5da2([_0x57492a(0x0,_0x68649f[_0x3abdb7(0x15b)]),_0x57492a(0x1,_0x68649f[_0x3abdb7(0xdf)](_0x68649f['Injector'])),_0x57492a(0x2,_0x68649f[_0x3abdb7(0xdf)](_0x86777e['CollaborationSessionService']))],_0x1ad529[_0x3abdb7(0xdd)]);var _0x5587fe=(_0x266981=>(_0x266981['OFFLINE']=_0x3abdb7(0xea),_0x266981[_0x3abdb7(0x154)]='idle',_0x266981['FOLLOWING']=_0x3abdb7(0x121),_0x266981[_0x3abdb7(0x167)]=_0x3abdb7(0x145),_0x266981[_0x3abdb7(0x117)]=_0x3abdb7(0x125),_0x266981))(_0x5587fe||{});const _0x4614fb=_0x3abdb7(0xb0),_0x27a8fb=0xc8;_0x1ad529[_0x3abdb7(0xc1)]=class extends _0x68649f[_0x3abdb7(0x119)]{constructor(_0x560980,_0x2db9ca,_0x4e937b,_0x2bcd4e,_0x41fcda){var _0x5a7971=_0x3abdb7;super(),_0x39c852(this,'_status$',new _0x2afcdd['BehaviorSubject'](_0x5a7971(0xd2))),_0x39c852(this,_0x5a7971(0x11f),this[_0x5a7971(0xf2)][_0x5a7971(0x13c)]()),_0x39c852(this,_0x5a7971(0xd5),!0x1),_0x39c852(this,_0x5a7971(0xf9),null),_0x39c852(this,_0x5a7971(0x142),null),(this[_0x5a7971(0xc0)]=_0x560980,this[_0x5a7971(0x13e)]=_0x2db9ca,this['_configService']=_0x4e937b,this[_0x5a7971(0x137)]=_0x2bcd4e,this[_0x5a7971(0xe4)]=_0x41fcda);}get[_0x3abdb7(0xfc)](){var _0x1827f3=_0x3abdb7;return this[_0x1827f3(0xf2)][_0x1827f3(0xdb)]();}[_0x3abdb7(0x11c)](){var _0x9ed934=_0x3abdb7,_0x3dd468;(_0x3dd468=this[_0x9ed934(0xf9)])==null||_0x3dd468[_0x9ed934(0x11c)](),this['_status$'][_0x9ed934(0x108)](_0x9ed934(0xd2)),this[_0x9ed934(0xf2)][_0x9ed934(0xfa)]();}[_0x3abdb7(0x85)](){var _0x802d81=_0x3abdb7;this[_0x802d81(0xd5)]||(this[_0x802d81(0xd5)]=!0x0,this[_0x802d81(0x13e)][_0x802d81(0x16d)]['pipe'](_0x2844f8[_0x802d81(0xfd)](this[_0x802d81(0x84)]))[_0x802d81(0x122)](_0x179999=>{var _0x187e28=_0x802d81;switch(_0x179999){case _0x86777e['SessionStatus']['OFFLINE']:this[_0x187e28(0x112)]();break;case _0x86777e['SessionStatus'][_0x187e28(0xd7)]:this[_0x187e28(0x13f)]();break;}}),this['_collabSession'][_0x802d81(0x136)]['pipe'](_0x2844f8[_0x802d81(0xfd)](this[_0x802d81(0x84)]))[_0x802d81(0x122)](_0x4f675b=>{var _0xa422a5=_0x802d81;const {eventID:_0x30835c}=_0x4f675b;switch(_0x30835c){case _0x2e7c2c[_0xa422a5(0xaa)][_0xa422a5(0x10d)]:this[_0xa422a5(0xc3)](_0x4f675b);break;case _0x2e7c2c[_0xa422a5(0xaa)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x4f675b);break;case _0x2e7c2c[_0xa422a5(0xaa)][_0xa422a5(0xe8)]:this[_0xa422a5(0x129)]();break;case _0x2e7c2c[_0xa422a5(0xaa)]['NEW_CHANGESETS']:this[_0xa422a5(0x13b)](_0x4f675b);break;}}));}[_0x3abdb7(0x160)](){var _0x76a1b0=_0x3abdb7;this[_0x76a1b0(0x13e)][_0x76a1b0(0xa1)]({'eventID':_0x2e7c2c[_0x76a1b0(0xaa)][_0x76a1b0(0x87)],'data':{'unitID':this['_unitID'],'userID':this[_0x76a1b0(0x13e)]['getMemberID']()}},this['_unitID']);}[_0x3abdb7(0x156)](){var _0x1cb989=_0x3abdb7;this[_0x1cb989(0xfc)]===_0x1cb989(0x125)&&(this[_0x1cb989(0xf2)][_0x1cb989(0x108)](_0x1cb989(0xd2)),this['_collabSession']['send']({'eventID':_0x2e7c2c[_0x1cb989(0xaa)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1cb989(0xc0)]}},this['_unitID']));}['startFollowing'](){var _0x4c3082=_0x3abdb7;this[_0x4c3082(0xfc)]===_0x4c3082(0x145)&&(this[_0x4c3082(0xf2)][_0x4c3082(0x108)](_0x4c3082(0x121)),this[_0x4c3082(0xe6)]());}[_0x3abdb7(0x133)](){var _0x503490=_0x3abdb7;this[_0x503490(0xfc)]===_0x503490(0x121)&&this[_0x503490(0xe5)]();}['_handleNewHost'](_0x21190b){var _0x3862ce=_0x3abdb7;const {presenter:_0x54f01b}=_0x21190b[_0x3862ce(0x11a)],_0x51cdf8=this[_0x3862ce(0x13e)]['getMemberID']();this['_presenter']=_0x54f01b,_0x54f01b===_0x51cdf8?(this['_stopFollowing'](),this[_0x3862ce(0xb8)]()):this[_0x3862ce(0xfc)]!==_0x3862ce(0x145)&&(this['_stopPresenting'](),this[_0x3862ce(0xe6)]());}['_fetchOperations'](){var _0x1ef479=_0x3abdb7;const _0x36afa7={'eventID':_0x2e7c2c[_0x1ef479(0xaa)][_0x1ef479(0x163)]};this[_0x1ef479(0x13e)]['send'](_0x36afa7,this[_0x1ef479(0xc0)]);}['_handleTerminate'](){var _0x5169e0=_0x3abdb7;this[_0x5169e0(0x142)]=null,this['_status']!==_0x5169e0(0x125)&&this[_0x5169e0(0xc8)]();}[_0x3abdb7(0x13b)](_0x9ea404){var _0x128736=_0x3abdb7;if(this[_0x128736(0xfc)]===_0x128736(0x121)&&this[_0x128736(0x142)]===_0x9ea404['data'][_0x128736(0x103)]){const _0x2b1a6d=_0x2e7c2c[_0x128736(0x134)](_0x9ea404[_0x128736(0x11a)])[_0x128736(0xd0)][_0x128736(0x126)]()['find'](_0x753083=>_0x753083['id']===_0x29cc2f[_0x128736(0x151)]['id']);if(_0x2b1a6d){const _0x203bae=_0x2b1a6d[_0x128736(0xf8)][_0x128736(0x104)],_0x1470e=_0x2b1a6d[_0x128736(0xf8)][_0x128736(0x158)]['id'];setTimeout(()=>{var _0x4c132c=_0x128736;this[_0x4c132c(0xe4)][_0x4c132c(0xe9)](_0x29cc2f[_0x4c132c(0xb1)]['id'],{'unitId':_0x203bae,'subUnitId':_0x1470e},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x43c192=_0x3abdb7;this[_0x43c192(0xf2)][_0x43c192(0x108)](_0x43c192(0x125));const _0x47758e=new Map(),_0x84e65f=this[_0x43c192(0xf9)]=new _0x68649f['DisposableCollection']();_0x84e65f[_0x43c192(0x148)](_0x68649f['toDisposable'](()=>{var _0x203f00=_0x43c192;_0x47758e[_0x203f00(0x168)](_0x3d6de3=>_0x3d6de3[_0x203f00(0xfa)]()),_0x47758e['clear']();})),_0x84e65f[_0x43c192(0x148)](this['_commandService'][_0x43c192(0xec)](_0x420847=>{var _0x21f97e=_0x43c192,_0x214793;if(_0x420847['type']!==_0x68649f[_0x21f97e(0xc6)][_0x21f97e(0x10c)]||!this['_liveShareService'][_0x21f97e(0x166)](_0x420847['id']))return;const {id:_0x1e9054}=_0x420847;let _0x25b458;_0x47758e[_0x21f97e(0xcb)](_0x1e9054)?_0x25b458=_0x47758e[_0x21f97e(0x10a)](_0x1e9054):(_0x25b458=new _0x2afcdd[(_0x21f97e(0x128))](),_0x47758e[_0x21f97e(0xba)](_0x1e9054,_0x25b458),_0x25b458[_0x21f97e(0x8f)](_0x2844f8[_0x21f97e(0xd6)]((_0x214793=this[_0x21f97e(0xc2)][_0x21f97e(0x15e)](_0x4614fb))!=null?_0x214793:_0x27a8fb,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x21f97e(0x122)](_0x1fea0c=>{var _0x3bbf98=_0x21f97e;this[_0x3bbf98(0x13e)][_0x3bbf98(0xa1)]({'eventID':_0x2e7c2c[_0x3bbf98(0xaa)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x1fea0c['id']]:{'id':_0x1fea0c['id'],'params':JSON[_0x3bbf98(0xbe)](_0x1fea0c[_0x3bbf98(0xf8)])}}}},this[_0x3bbf98(0xc0)]);})),_0x25b458[_0x21f97e(0x108)](_0x420847);})),this[_0x43c192(0x137)][_0x43c192(0x100)](this['_unitID'])[_0x43c192(0x168)](_0x58af98=>this[_0x43c192(0x13e)]['send']({'eventID':_0x2e7c2c[_0x43c192(0xaa)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x43c192(0xc0)],'operations':{[_0x58af98['id']]:{'id':_0x58af98['id'],'params':JSON['stringify'](_0x58af98[_0x43c192(0xf8)])}}}},this[_0x43c192(0xc0)]));}[_0x3abdb7(0x95)](){var _0xbecdcf=_0x3abdb7,_0x23d906;this[_0xbecdcf(0xf2)][_0xbecdcf(0x108)]('idle'),(_0x23d906=this[_0xbecdcf(0xf9)])==null||_0x23d906[_0xbecdcf(0x11c)](),this[_0xbecdcf(0xf9)]=null;}[_0x3abdb7(0xe6)](){var _0x2d108f=_0x3abdb7,_0x3fcc05;(_0x3fcc05=this[_0x2d108f(0xf9)])==null||_0x3fcc05[_0x2d108f(0x11c)](),this[_0x2d108f(0xf2)]['next'](_0x2d108f(0x121));}['_beIdle'](){var _0x3ab93b=_0x3abdb7,_0x32ccf9;this[_0x3ab93b(0xf2)]['next'](_0x3ab93b(0xd2)),(_0x32ccf9=this[_0x3ab93b(0xf9)])==null||_0x32ccf9[_0x3ab93b(0x11c)](),this[_0x3ab93b(0xf9)]=null;}[_0x3abdb7(0xe5)](){var _0x1a7cc4=_0x3abdb7,_0x8e67e0;this['_status$']['next']('not-following'),(_0x8e67e0=this[_0x1a7cc4(0xf9)])==null||_0x8e67e0[_0x1a7cc4(0x11c)]();}['_handleOperation'](_0x4c828a){var _0x5e24b6=_0x3abdb7;if(['presenting',_0x5e24b6(0x145),_0x5e24b6(0xea)]['includes'](this[_0x5e24b6(0xfc)])||!_0x4c828a['data'][_0x5e24b6(0x9a)]||_0x4c828a[_0x5e24b6(0x11a)][_0x5e24b6(0x9a)]===this[_0x5e24b6(0x13e)][_0x5e24b6(0x14e)]())return;this[_0x5e24b6(0xfc)]===_0x5e24b6(0xd2)&&this[_0x5e24b6(0xe6)]();const _0x28e682=_0x4c828a[_0x5e24b6(0x11a)][_0x5e24b6(0x8e)];Object['values'](_0x28e682)[_0x5e24b6(0x168)](_0x4040ee=>{var _0x2d94f3=_0x5e24b6;this[_0x2d94f3(0xe4)][_0x2d94f3(0xe9)](_0x4040ee['id'],_0x4040ee[_0x2d94f3(0xf8)]?JSON[_0x2d94f3(0x132)](_0x4040ee['params']):null,{'fromCollab':!0x0});});}[_0x3abdb7(0x112)](){var _0x681334=_0x3abdb7,_0x49e3f0;this[_0x681334(0xf2)]['next'](_0x681334(0xea)),(_0x49e3f0=this[_0x681334(0xf9)])==null||_0x49e3f0[_0x681334(0x11c)]();}['_handleOnline'](){var _0x104a4a=_0x3abdb7;this['_status$'][_0x104a4a(0x108)](_0x104a4a(0xd2)),this[_0x104a4a(0x141)]();}},_0x1ad529[_0x3abdb7(0xc1)]=_0x4e5da2([_0x57492a(0x2,_0x68649f[_0x3abdb7(0xf7)]),_0x57492a(0x3,_0x68649f[_0x3abdb7(0xdf)](_0x262dcf)),_0x57492a(0x4,_0x68649f['ICommandService'])],_0x1ad529[_0x3abdb7(0xc1)]);function _0x19d771(){var _0xc629f9=_0x3abdb7;const _0x4c75c6=_0x467c60[_0xc629f9(0x9c)](_0x1ad529[_0xc629f9(0xdd)]),_0x56acee=_0x467c60['useDependency'](_0x68649f[_0xc629f9(0x15b)]),_0x66f85b=_0x467c60[_0xc629f9(0xd8)](()=>_0x56acee['getCurrentTypeOfUnit$'](_0x68649f[_0xc629f9(0x16a)][_0xc629f9(0xbd)]),void 0x0,!0x1,[]),[_0x1086f7,_0x3ae709]=_0x1adffa['useState'](null),[_0x487438,_0x1ca65f]=_0x1adffa['useState'](_0x5587fe[_0xc629f9(0x154)]),_0x456577=_0x1adffa[_0xc629f9(0xb2)](null);return _0x1adffa[_0xc629f9(0x9e)](()=>(_0x66f85b&&_0x4c75c6[_0xc629f9(0x16c)](_0x66f85b['getUnitId']())[_0xc629f9(0xa2)](_0x42c691=>{var _0x10967b=_0xc629f9;_0x3ae709(_0x42c691),_0x456577[_0x10967b(0xc9)]=_0x42c691[_0x10967b(0x11f)]['subscribe'](_0x16d813=>{_0x1ca65f(_0x16d813);});}),()=>{var _0x2ba12a=_0xc629f9,_0x1731cf;(_0x1731cf=_0x456577['current'])==null||_0x1731cf[_0x2ba12a(0x114)](),_0x456577[_0x2ba12a(0xc9)]=null;}),[_0x66f85b,_0x4c75c6]),_0x1086f7?_0x252371[_0xc629f9(0xe0)](_0x22cbab['Dropdown'],{'align':_0xc629f9(0x15d),'disabled':_0x487438===_0x5587fe[_0xc629f9(0x10b)],'className':_0xc629f9(0x105),'overlay':_0x252371[_0xc629f9(0xe0)](_0xac50fb,{'status':_0x487438,'coordinator':_0x1086f7}),'children':_0x252371[_0xc629f9(0xe0)](_0xc629f9(0xbf),{'className':_0x22cbab['clsx'](_0xc629f9(0xc4),{'univer-cursor-not-allowed':_0x487438===_0x5587fe[_0xc629f9(0x10b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x487438!==_0x5587fe[_0xc629f9(0x10b)]}),'type':'button','children':_0x252371['jsx'](_0x34924a,{'className':_0xc629f9(0x162)})})}):null;}function _0xac50fb(_0x16111f){var _0x1f3949=_0x3abdb7;const {status:_0x3ca647,coordinator:_0x213a7f}=_0x16111f;switch(_0x3ca647){case _0x5587fe['IDLE']:return _0x252371[_0x1f3949(0xe0)](_0x127724,{'coordinator':_0x213a7f});case _0x5587fe[_0x1f3949(0xd1)]:return _0x252371[_0x1f3949(0xe0)](_0x241155,{'coordinator':_0x213a7f});case _0x5587fe[_0x1f3949(0x167)]:return _0x252371['jsx'](_0x4beec6,{'coordinator':_0x213a7f});case _0x5587fe[_0x1f3949(0x10b)]:return _0x252371[_0x1f3949(0xe0)](_0x4b8ad4,{});case _0x5587fe[_0x1f3949(0x117)]:return _0x252371[_0x1f3949(0xe0)](_0x3ff057,{'coordinator':_0x213a7f});default:return null;}}function _0x127724(_0x20b49b){var _0x128fcc=_0x3abdb7;const {coordinator:_0x7c83b4}=_0x20b49b;return _0x252371[_0x128fcc(0xd3)](_0x252371[_0x128fcc(0xb6)],{'children':[_0x252371[_0x128fcc(0xe0)](_0x128fcc(0xf4),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x128fcc(0x8a)}),_0x252371['jsx'](_0x22cbab[_0x128fcc(0xdc)],{'onClick':()=>_0x7c83b4[_0x128fcc(0x160)](),'children':_0x128fcc(0xce)})]});}function _0x241155(_0x197d4d){var _0x267516=_0x3abdb7;const {coordinator:_0x4d8c90}=_0x197d4d;return _0x252371['jsxs'](_0x252371[_0x267516(0xb6)],{'children':[_0x252371[_0x267516(0xe0)](_0x267516(0xf4),{'className':_0x267516(0x8b),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x252371[_0x267516(0xe0)](_0x22cbab[_0x267516(0xdc)],{'onClick':()=>_0x4d8c90['stopFollowing'](),'children':_0x267516(0x101)})]});}function _0x4beec6(_0xdeab03){var _0x5d8175=_0x3abdb7;const {coordinator:_0x3eca0b}=_0xdeab03;return _0x252371[_0x5d8175(0xd3)](_0x252371['Fragment'],{'children':[_0x252371['jsx'](_0x5d8175(0xf4),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5d8175(0x143)}),_0x252371[_0x5d8175(0xe0)](_0x22cbab[_0x5d8175(0xdc)],{'variant':'text','onClick':()=>_0x3eca0b['startFollowing'](),'children':_0x5d8175(0x11b)})]});}function _0x3ff057(_0x476159){var _0x356c1b=_0x3abdb7;const {coordinator:_0x421178}=_0x476159;return _0x252371[_0x356c1b(0xd3)](_0x252371[_0x356c1b(0xb6)],{'children':[_0x252371[_0x356c1b(0xe0)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x356c1b(0x12e)}),_0x252371[_0x356c1b(0xe0)](_0x22cbab[_0x356c1b(0xdc)],{'variant':'default','onClick':()=>_0x421178[_0x356c1b(0x156)](),'children':_0x356c1b(0x13a)})]});}function _0x4b8ad4(){var _0xbc714a=_0x3abdb7;return _0x252371[_0xbc714a(0xe0)](_0x252371[_0xbc714a(0xb6)],{'children':_0xbc714a(0xed)});}var _0x3d176f=Object[_0x3abdb7(0x13d)],_0x24ba94=(_0x550223,_0x554118,_0x5d297d,_0xc30318)=>{var _0x76b13f=_0x3abdb7;for(var _0x36bf25=_0xc30318>0x1?void 0x0:_0xc30318?_0x3d176f(_0x554118,_0x5d297d):_0x554118,_0x3ad2cf=_0x550223[_0x76b13f(0xac)]-0x1,_0x442a0c;_0x3ad2cf>=0x0;_0x3ad2cf--)(_0x442a0c=_0x550223[_0x3ad2cf])&&(_0x36bf25=_0x442a0c(_0x36bf25)||_0x36bf25);return _0x36bf25;},_0x2d6260=(_0x41ffbe,_0x36c970)=>(_0x2f3c94,_0x46eff7)=>_0x36c970(_0x2f3c94,_0x46eff7,_0x41ffbe);_0x1ad529[_0x3abdb7(0x8d)]=class extends _0x68649f[_0x3abdb7(0xef)]{constructor(_0x37c81e,_0xdc5fb1){var _0x16eb80=_0x3abdb7;super(),this[_0x16eb80(0xde)]=_0x37c81e,this[_0x16eb80(0xee)]=_0xdc5fb1,this[_0x16eb80(0x115)]();}[_0x3abdb7(0x115)](){var _0x84b311=_0x3abdb7;this[_0x84b311(0xae)](this['_uiPartsService'][_0x84b311(0x140)](_0x467c60[_0x84b311(0x123)]['HEADER_MENU'],()=>_0x467c60['connectInjector'](_0x19d771,this[_0x84b311(0xde)])));}},_0x1ad529[_0x3abdb7(0x8d)]=_0x24ba94([_0x2d6260(0x0,_0x68649f['Inject'](_0x68649f['Injector'])),_0x2d6260(0x1,_0x467c60[_0x3abdb7(0xd4)])],_0x1ad529['DesktopLiveShareController']);var _0x4020c5=Object['defineProperty'],_0x96fd49=Object[_0x3abdb7(0x13d)],_0x5af732=(_0x766171,_0x21daf4,_0x48c1ee)=>_0x21daf4 in _0x766171?_0x4020c5(_0x766171,_0x21daf4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48c1ee}):_0x766171[_0x21daf4]=_0x48c1ee,_0x59de7c=(_0x12b4ce,_0x5d5ec2,_0x48e362,_0x499300)=>{var _0x4d753a=_0x3abdb7;for(var _0x31b768=_0x499300>0x1?void 0x0:_0x499300?_0x96fd49(_0x5d5ec2,_0x48e362):_0x5d5ec2,_0x576f1e=_0x12b4ce[_0x4d753a(0xac)]-0x1,_0x4fd68e;_0x576f1e>=0x0;_0x576f1e--)(_0x4fd68e=_0x12b4ce[_0x576f1e])&&(_0x31b768=_0x4fd68e(_0x31b768)||_0x31b768);return _0x31b768;},_0x24aa96=(_0xed7196,_0x51a7eb)=>(_0x3c7d8e,_0x190064)=>_0x51a7eb(_0x3c7d8e,_0x190064,_0xed7196),_0xa1a6be=(_0x2070d6,_0x157fe8,_0x1f1257)=>_0x5af732(_0x2070d6,typeof _0x157fe8!='symbol'?_0x157fe8+'':_0x157fe8,_0x1f1257);const _0x39dfae='UNIVER_LIVE_SHARE_PLUGIN';_0x1ad529[_0x3abdb7(0xad)]=class extends _0x68649f[_0x3abdb7(0x152)]{constructor(_0x1fca22=_0x2fd119,_0x2e0555,_0x4b8123){var _0xebe7f5=_0x3abdb7;super(),this['_config']=_0x1fca22,this['_injector']=_0x2e0555,this['_configService']=_0x4b8123;const {..._0x4db055}=_0x68649f['merge']({},_0x2fd119,this['_config']);this[_0xebe7f5(0xc2)][_0xebe7f5(0xf0)](_0x5a5348,_0x4db055);}[_0x3abdb7(0x91)](){var _0x29d28f=_0x3abdb7;_0x68649f[_0x29d28f(0x99)](this[_0x29d28f(0xde)],_0x68649f[_0x29d28f(0x15c)]([[_0x262dcf],[_0x1ad529[_0x29d28f(0xdd)]],[_0x3b0a36],[_0x1ad529[_0x29d28f(0x8d)]]],this[_0x29d28f(0xaf)][_0x29d28f(0xf6)])),_0x68649f[_0x29d28f(0xc7)](this[_0x29d28f(0xde)],[[_0x3b0a36]]);}[_0x3abdb7(0xa5)](){var _0x4be9f1=_0x3abdb7;_0x68649f[_0x4be9f1(0xc7)](this[_0x4be9f1(0xde)],[[_0x1ad529[_0x4be9f1(0x8d)]]]);}},_0xa1a6be(_0x1ad529[_0x3abdb7(0xad)],_0x3abdb7(0x147),_0x68649f['UniverInstanceType'][_0x3abdb7(0x110)]),_0xa1a6be(_0x1ad529[_0x3abdb7(0xad)],'pluginName',_0x39dfae),_0x1ad529[_0x3abdb7(0xad)]=_0x59de7c([_0x68649f[_0x3abdb7(0x14c)](_0x86777e[_0x3abdb7(0x8c)]),_0x24aa96(0x1,_0x68649f[_0x3abdb7(0xdf)](_0x68649f[_0x3abdb7(0x12b)])),_0x24aa96(0x2,_0x68649f[_0x3abdb7(0xf7)])],_0x1ad529['UniverLiveSharePlugin']),_0x1ad529[_0x3abdb7(0x82)]=_0x19d771,_0x1ad529[_0x3abdb7(0x97)]=_0x262dcf,_0x1ad529[_0x3abdb7(0xb7)]=_0x5587fe,Object[_0x3abdb7(0xa7)](_0x1ad529,Symbol['toStringTag'],{'value':'Module'});}));function _0x551c(_0x32ec8e,_0x7ec9e4){var _0x2e9b76=_0x2e9b();return _0x551c=function(_0x551ce8,_0x474b5d){_0x551ce8=_0x551ce8-0x82;var _0x1cec10=_0x2e9b76[_0x551ce8];return _0x1cec10;},_0x551c(_0x32ec8e,_0x7ec9e4);}function _0x2e9b(){var _0x528ad1=['has','idSuffix','1ZSPfBo','Start','toString','mutations','FOLLOWING','idle','jsxs','IUIPartsService','_init','throttleTime','ONLINE','useObservable','851908Cfpvkz','UniverUi','getValue','Button','LiveShareController','_injector','Inject','jsx','@univerjs/design','live-share-icon','from','_commandService','_stopFollowing','_startFollowing','rxjs/operators','LIVESHARE_TERMINATE','executeCommand','offline','react','onCommandExecuted','You\x27are\x20offline.','_uiPartsService','Disposable','setConfig','@univerjs-pro/collaboration-client','_status$','UniverIcon','div','registerSharedOperation','override','IConfigService','params','_commandDisposable','complete','_reporters','_status','takeUntil','indexOf','@univerjs/core','getInitialStates','Stop\x20following','includes','memberID','unitId','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','function','882531TTKlYB','next','propertyIsEnumerable','get','OFFLINE','OPERATION','LIVESHARE_NEW_HOST','concat','trim','UNIVER_UNKNOWN','colorChannel1','_handleOffline','5466696dXHJVM','unsubscribe','_mountLiveShare','call','PRESENTING','requireSession','RxDisposable','data','Start\x20following','dispose','UniverCore','4237114nEZwnK','status$','3171186zblydC','following','subscribe','BuiltInUIPart','@univerjs/sheets-ui','presenting','reverse','forwardRef','Subject','_handleTerminate','React','Injector','string','extend','You\x27re\x20presenting\x20the\x20document','apply','evenodd','@univerjs-pro/collaboration','parse','stopFollowing','parseProtocolChangeset','722218FNMXiW','event$','_liveShareService','toDisposable','map','Stop\x20presenting','_handleNewChangeSets','asObservable','getOwnPropertyDescriptor','_collabSession','_handleOnline','registerComponent','_fetchOperations','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','substring','not-following','path','type','add','1em','defIds','react/jsx-runtime','DependentOn','UniverDesign','getMemberID','live-share.config','_startLiveShareCoordinator','InsertSheetMutation','Plugin','symbol','IDLE','UniverProCollaborationClient','stopPresenting','_sharedOperations','sheet','SetScrollOperation','amd','IUniverInstanceService','mergeOverrideWithDependencies','end','getConfig','icon','tryStartPresenting','use','univer-size-4','LIVESHARE_FETCH_OPERATIONS','rxjs','_collabSessionService','shouldShareOperation','NOT_FOLLOWING','forEach','@univerjs/sheets','UniverInstanceType','object','getLiveShareCoordinator','sessionStatus$','_univerInstanceService','LiveShare','attrs','dispose$','init','0\x200\x2017\x2017','LIVESHARE_REQUEST_HOST','createElement','exports','Present\x20this\x20document','univer-w-full\x20univer-mb-3\x20univer-text-sm','UniverCollaborationClientPlugin','DesktopLiveShareController','operations','pipe','none','onStarting','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','children','className','_stopPresenting','36mUnZqi','LiveShareService','currentColor','registerDependencies','presenter','hasOwnProperty','useDependency','fill','useEffect','UniverSheets','delete','send','then','_entities','displayName','onRendered','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','defineProperty','xlink:href','mask','CollaborationEvent','replace','length','UniverLiveSharePlugin','disposeWithMe','_config','SAME_OPERATION_SHARE_INTERVAL','SetWorksheetActiveOperation','useRef','tag','assign','UniverSheetsUi','Fragment','LiveShareStatus','_startPresenting','url(#$1','set','entries','getUnitId','UNIVER_SHEET','stringify','button','_unitID','LiveShareCoordinator','_configService','_handleNewHost','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','376955AoHwNs','CommandType','touchDependencies','_beIdle','current','@univerjs/ui'];_0x2e9b=function(){return _0x528ad1;};return _0x2e9b();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.0-nightly.202506031608",
3
+ "version": "0.8.0-nightly.202506041607",
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.0-nightly.202506031608",
51
- "@univerjs/core": "0.8.0-nightly.202506031608",
52
- "@univerjs/design": "0.8.0-nightly.202506031608",
53
- "@univerjs/sheets-ui": "0.8.0-nightly.202506031608",
54
- "@univerjs/ui": "0.8.0-nightly.202506031608",
55
- "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506031608",
56
- "@univerjs/sheets": "0.8.0-nightly.202506031608"
50
+ "@univerjs-pro/collaboration": "0.8.0-nightly.202506041607",
51
+ "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506041607",
52
+ "@univerjs/design": "0.8.0-nightly.202506041607",
53
+ "@univerjs/sheets": "0.8.0-nightly.202506041607",
54
+ "@univerjs/core": "0.8.0-nightly.202506041607",
55
+ "@univerjs/ui": "0.8.0-nightly.202506041607",
56
+ "@univerjs/sheets-ui": "0.8.0-nightly.202506041607"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.4",