@univerjs-pro/live-share 0.8.0-nightly.202506091607 → 0.8.0-nightly.202506111607

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 _0x30436a=_0x209c;(function(_0x5bec24,_0x402ec5){var _0x34d8ea=_0x209c,_0x45b3e1=_0x5bec24();while(!![]){try{var _0x202455=-parseInt(_0x34d8ea(0x170))/0x1+parseInt(_0x34d8ea(0x142))/0x2*(parseInt(_0x34d8ea(0xf9))/0x3)+-parseInt(_0x34d8ea(0x110))/0x4*(parseInt(_0x34d8ea(0x102))/0x5)+-parseInt(_0x34d8ea(0x129))/0x6*(-parseInt(_0x34d8ea(0xf8))/0x7)+-parseInt(_0x34d8ea(0xe4))/0x8*(parseInt(_0x34d8ea(0x15f))/0x9)+-parseInt(_0x34d8ea(0x116))/0xa*(parseInt(_0x34d8ea(0x159))/0xb)+-parseInt(_0x34d8ea(0xd0))/0xc*(-parseInt(_0x34d8ea(0xc3))/0xd);if(_0x202455===_0x402ec5)break;else _0x45b3e1['push'](_0x45b3e1['shift']());}catch(_0x274524){_0x45b3e1['push'](_0x45b3e1['shift']());}}}(_0x80ec,0x99847));var U=Object[_0x30436a(0xe2)],F=(_0x2b3ca2,_0x301628,_0x2db90e)=>_0x301628 in _0x2b3ca2?U(_0x2b3ca2,_0x301628,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2db90e}):_0x2b3ca2[_0x301628]=_0x2db90e,v=(_0x41cf9c,_0xb22492,_0xcacbe2)=>F(_0x41cf9c,typeof _0xb22492!=_0x30436a(0x173)?_0xb22492+'':_0xb22492,_0xcacbe2);Object[_0x30436a(0xe2)](exports,Symbol['toStringTag'],{'value':_0x30436a(0xdd)});const m=require(_0x30436a(0x17a)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require(_0x30436a(0xdf)),p=require(_0x30436a(0x163)),l=require(_0x30436a(0xf4)),g=require('@univerjs/design'),f=require(_0x30436a(0xd6)),_=require(_0x30436a(0xcb)),D=require(_0x30436a(0x186)),b=require(_0x30436a(0x185)),$=_0x30436a(0xb6),x={};class O extends o['Disposable']{constructor(){var _0x5c4f61=_0x30436a;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x5c4f61(0x17e),new Set());}['registerSharedOperation'](_0x1b7d72){var _0xbf342=_0x30436a;return this[_0xbf342(0xcc)][_0xbf342(0x153)](_0x1b7d72),o[_0xbf342(0x123)](()=>this[_0xbf342(0xcc)][_0xbf342(0x113)](_0x1b7d72));}['registerInitialStateReporter'](_0x1807c5){var _0x1c018c=_0x30436a;return this[_0x1c018c(0x17e)]['add'](_0x1807c5),o['toDisposable'](()=>this[_0x1c018c(0x17e)]['delete'](_0x1807c5));}[_0x30436a(0x109)](_0x2d8837){var _0x22b652=_0x30436a;return this['_sharedOperations'][_0x22b652(0xde)](_0x2d8837);}['getInitialStates'](_0x132ab3){var _0x1a7713=_0x30436a;return Array[_0x1a7713(0x16b)](this[_0x1a7713(0x17e)])[_0x1a7713(0x137)](_0x1b5cfd=>_0x1b5cfd(_0x132ab3));}}var H=Object[_0x30436a(0x124)],V=(_0x342ca1,_0x2071c2,_0x5ea10a,_0x1aae48)=>{var _0x30d517=_0x30436a;for(var _0xa2a12a=_0x1aae48>0x1?void 0x0:_0x1aae48?H(_0x2071c2,_0x5ea10a):_0x2071c2,_0x4a7aa9=_0x342ca1[_0x30d517(0x17f)]-0x1,_0x378214;_0x4a7aa9>=0x0;_0x4a7aa9--)(_0x378214=_0x342ca1[_0x4a7aa9])&&(_0xa2a12a=_0x378214(_0xa2a12a)||_0xa2a12a);return _0xa2a12a;},k=(_0x8e5b08,_0x4c267f)=>(_0x16a031,_0x5c03c8)=>_0x4c267f(_0x16a031,_0x5c03c8,_0x8e5b08);let E=class extends o[_0x30436a(0x14e)]{constructor(_0x5ad0da){var _0x55445f=_0x30436a;super(),this[_0x55445f(0x145)]=_0x5ad0da,this[_0x55445f(0x15b)]();}[_0x30436a(0x15b)](){var _0x142a68=_0x30436a;[w[_0x142a68(0x12b)]['id'],w['SetScrollOperation']['id'],C[_0x142a68(0xe6)]['id']][_0x142a68(0x162)](_0x395893=>{var _0x245ae6=_0x142a68;this['disposeWithMe'](this['_liveShareService'][_0x245ae6(0xc0)](_0x395893));});}};E=V([k(0x0,o['Inject'](O))],E);function _0x209c(_0x542bb8,_0x314347){var _0x80ec41=_0x80ec();return _0x209c=function(_0x209c22,_0x4c2584){_0x209c22=_0x209c22-0xaf;var _0x28824c=_0x80ec41[_0x209c22];return _0x28824c;},_0x209c(_0x542bb8,_0x314347);}var u=function(){var _0x3e551b=_0x30436a;return u=Object['assign']||function(_0x20aab2){var _0xb23847=_0x209c;for(var _0x35d1b7,_0x32d33d=0x1,_0x356019=arguments['length'];_0x32d33d<_0x356019;_0x32d33d++){_0x35d1b7=arguments[_0x32d33d];for(var _0x2dd274 in _0x35d1b7)Object['prototype'][_0xb23847(0xc7)][_0xb23847(0xb2)](_0x35d1b7,_0x2dd274)&&(_0x20aab2[_0x2dd274]=_0x35d1b7[_0x2dd274]);}return _0x20aab2;},u[_0x3e551b(0x193)](this,arguments);},M=function(_0x4c5bd7,_0x38c1c7){var _0x104425=_0x30436a,_0x13a05d={};for(var _0x110555 in _0x4c5bd7)Object[_0x104425(0x122)][_0x104425(0xc7)]['call'](_0x4c5bd7,_0x110555)&&_0x38c1c7['indexOf'](_0x110555)<0x0&&(_0x13a05d[_0x110555]=_0x4c5bd7[_0x110555]);if(_0x4c5bd7!=null&&typeof Object[_0x104425(0x195)]==_0x104425(0x158)){for(var _0xcf74c2=0x0,_0x110555=Object[_0x104425(0x195)](_0x4c5bd7);_0xcf74c2<_0x110555[_0x104425(0x17f)];_0xcf74c2++)_0x38c1c7['indexOf'](_0x110555[_0xcf74c2])<0x0&&Object[_0x104425(0x122)][_0x104425(0x144)][_0x104425(0xb2)](_0x4c5bd7,_0x110555[_0xcf74c2])&&(_0x13a05d[_0x110555[_0xcf74c2]]=_0x4c5bd7[_0x110555[_0xcf74c2]]);}return _0x13a05d;},j=f['forwardRef'](function(_0x1ae0d7,_0x343da4){var _0x2a73d7=_0x30436a,_0x34a10f=_0x1ae0d7[_0x2a73d7(0x178)],_0x54c2f2=_0x1ae0d7['id'],_0x167e07=_0x1ae0d7[_0x2a73d7(0xe7)],_0x36e343=_0x1ae0d7[_0x2a73d7(0x183)],_0x2e4dc3=M(_0x1ae0d7,[_0x2a73d7(0x178),'id',_0x2a73d7(0xe7),_0x2a73d7(0x183)]),_0x1436a9=_0x2a73d7(0xd3)['concat'](_0x54c2f2,'\x20')[_0x2a73d7(0x16e)](_0x167e07||'')[_0x2a73d7(0x10d)](),_0x3080c9=f['useRef']('_'[_0x2a73d7(0x16e)](G()));return y(_0x34a10f,''['concat'](_0x54c2f2),{'defIds':_0x34a10f[_0x2a73d7(0xb0)],'idSuffix':_0x3080c9[_0x2a73d7(0x12a)]},u({'ref':_0x343da4,'className':_0x1436a9},_0x2e4dc3),_0x36e343);});function y(_0x1f4f0f,_0x3ea235,_0x40583d,_0x4d40b6,_0x376897){var _0x24e95a=_0x30436a;return f['createElement'](_0x1f4f0f[_0x24e95a(0xc1)],u(u({'key':_0x3ea235},q(_0x1f4f0f,_0x40583d,_0x376897)),_0x4d40b6),(W(_0x1f4f0f,_0x40583d)[_0x24e95a(0xb5)]||[])[_0x24e95a(0x137)](function(_0x3d7446,_0x1b8f7f){var _0x576550=_0x24e95a;return y(_0x3d7446,''[_0x576550(0x16e)](_0x3ea235,'-')[_0x576550(0x16e)](_0x1f4f0f['tag'],'-')[_0x576550(0x16e)](_0x1b8f7f),_0x40583d,void 0x0,_0x376897);}));}function q(_0x32c30d,_0x1f6aa6,_0x2eb731){var _0x426f51=_0x30436a,_0x5c246f=u({},_0x32c30d[_0x426f51(0x175)]);_0x2eb731!=null&&_0x2eb731[_0x426f51(0x131)]&&_0x5c246f[_0x426f51(0xec)]===_0x426f51(0x131)&&(_0x5c246f[_0x426f51(0xec)]=_0x2eb731[_0x426f51(0x131)]),_0x32c30d[_0x426f51(0xc1)]==='mask'&&_0x5c246f['id']&&(_0x5c246f['id']=_0x5c246f['id']+_0x1f6aa6['idSuffix']),Object[_0x426f51(0x151)](_0x5c246f)[_0x426f51(0x162)](function(_0x5548df){var _0x25546c=_0x426f51,_0x240754=_0x5548df[0x0],_0x49bd09=_0x5548df[0x1];_0x240754==='mask'&&typeof _0x49bd09==_0x25546c(0xaf)&&(_0x5c246f[_0x240754]=_0x49bd09['replace'](/url\(#(.*)\)/,_0x25546c(0xfd)['concat'](_0x1f6aa6[_0x25546c(0xbc)],')')));});var _0x3d00ae=_0x1f6aa6['defIds'];return!_0x3d00ae||_0x3d00ae[_0x426f51(0x17f)]===0x0||(_0x32c30d[_0x426f51(0xc1)]==='use'&&_0x5c246f['xlink:href']&&(_0x5c246f[_0x426f51(0xbf)]=_0x5c246f[_0x426f51(0xbf)]+_0x1f6aa6[_0x426f51(0xbc)]),Object[_0x426f51(0x151)](_0x5c246f)['forEach'](function(_0x517eba){var _0x20acf0=_0x426f51,_0x479575=_0x517eba[0x0],_0x100761=_0x517eba[0x1];typeof _0x100761==_0x20acf0(0xaf)&&(_0x5c246f[_0x479575]=_0x100761[_0x20acf0(0x119)](/url\(#(.*)\)/,_0x20acf0(0xfd)[_0x20acf0(0x16e)](_0x1f6aa6[_0x20acf0(0xbc)],')')));})),_0x5c246f;}function W(_0x492665,_0x193c79){var _0x45596d=_0x30436a,_0x2cdef5,_0x48bda9=_0x193c79[_0x45596d(0xb0)];return!_0x48bda9||_0x48bda9[_0x45596d(0x17f)]===0x0?_0x492665:_0x492665[_0x45596d(0xc1)]===_0x45596d(0x171)&&(!((_0x2cdef5=_0x492665['children'])===null||_0x2cdef5===void 0x0)&&_0x2cdef5['length'])?u(u({},_0x492665),{'children':_0x492665['children'][_0x45596d(0x137)](function(_0x22f745){var _0x55cb68=_0x45596d;return typeof _0x22f745[_0x55cb68(0x175)]['id']==_0x55cb68(0xaf)&&_0x48bda9&&_0x48bda9['includes'](_0x22f745['attrs']['id'])?u(u({},_0x22f745),{'attrs':u(u({},_0x22f745[_0x55cb68(0x175)]),{'id':_0x22f745[_0x55cb68(0x175)]['id']+_0x193c79[_0x55cb68(0xbc)]})}):_0x22f745;})}):_0x492665;}function G(){var _0x345a03=_0x30436a;return Math['random']()[_0x345a03(0x197)](0x24)[_0x345a03(0x157)](0x2,0x8);}j[_0x30436a(0xee)]='UniverIcon';function _0x80ec(){var _0x14f55a=['_entities','getUnitId','delete','Injector','onCommandExecuted','350bYyruY','getLiveShareCoordinator','IConfigService','replace','OPERATION','following','You\x27re\x20presenting\x20the\x20document','UNIVER_SHEET','_handleTerminate','0\x200\x2017\x2017','NOT_FOLLOWING','status$','prototype','toDisposable','getOwnPropertyDescriptor','univer-w-full\x20univer-mb-3\x20univer-text-sm','clear','SessionStatus','LIVESHARE_REQUEST_HOST','2932086oBBtDm','current','SetZoomRatioOperation','jsx','pipe','onStarting','_stopFollowing','_univerInstanceService','colorChannel1','values','DesktopLiveShareController','init','_configService','LIVESHARE_FETCH_OPERATIONS','map','memberID','PRESENTING','Plugin','LIVESHARE_OPERATION','_commandDisposable','params','UNIVER_LIVE_SHARE_PLUGIN','OFFLINE','tryStartPresenting','throttleTime','8MgHXuo','http://www.w3.org/2000/svg','propertyIsEnumerable','_liveShareService','LIVESHARE_NEW_HOST','Present\x20this\x20document','send','_mountLiveShare','_startPresenting','mutations','set','end','Disposable','button','BuiltInUIPart','entries','getConfig','add','_handleOnline','RxDisposable','requireSession','substring','function','134167FHfIlh','DependentOn','_init','default','currentColor','UniverInstanceType','29583wDrkCO','Stop\x20presenting','_injector','forEach','@univerjs/ui','live-share-icon','getCurrentTypeOfUnit$','_handleOffline','Inject','presenting','_startLiveShareCoordinator','CollaborationSessionService','from','next','LiveShare','concat','_stopPresenting','591930mCEvRj','defs','asObservable','symbol','SAME_OPERATION_SHARE_INTERVAL','attrs','takeUntil','_startFollowing','icon','_status','@univerjs-pro/collaboration-client','IDLE','find','get','_reporters','length','BehaviorSubject','LiveShareCoordinator','offline','extend','getMemberID','rxjs/operators','rxjs','pluginName','getValue','Start','subscribe','event$','stopPresenting','getTypeOfUnitAdded$','UniverCollaborationClientPlugin','Dropdown','override','getTypeOfUnitDisposed$','presenter','apply','_uiPartsService','getOwnPropertySymbols','FOLLOWING','toString','string','defIds','operations','call','CommandType','univer-size-4','children','live-share.config','complete','disposeWithMe','_beIdle','svg','Fragment','idSuffix','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','xlink:href','registerSharedOperation','tag','_handleOperation','30856059PQXSXR','sheet','LIVESHARE_TERMINATE','executeCommand','hasOwnProperty','_config','LiveShareIcon','none','@univerjs-pro/collaboration','_sharedOperations','dispose','CollaborationEvent','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','12kKEAET','DisposableCollection','_handleNewHost','univerjs-icon\x20univerjs-icon-','useState','LiveShareController','react','div','_commandService','touchDependencies','jsxs','not-following','path','Module','has','@univerjs/sheets-ui','connectInjector','_presenter','defineProperty','_collabSession','2864PRudVz','UniverLiveSharePlugin','SetWorksheetActiveOperation','className','ICommandService','evenodd','ONLINE','dispose$','fill','createInstance','displayName','getInitialStates','_status$','registerDependencies','LiveShareStatus','forwardRef','react/jsx-runtime','setConfig','stopFollowing','Subject','7VwgZGJ','756816QBgCEs','Start\x20following','then','idle','url(#$1','useObservable','type','You\x27are\x20offline.','_handleNewChangeSets','105ESAaSg','data','assign','Button','NEW_CHANGESETS','stringify','mergeOverrideWithDependencies','shouldShareOperation','startFollowing','1em','unitId','trim','_unitID','unsubscribe','199416tBlYzB'];_0x80ec=function(){return _0x14f55a;};return _0x80ec();}var B={'tag':_0x30436a(0xba),'attrs':{'xmlns':_0x30436a(0x143),'fill':_0x30436a(0xca),'viewBox':_0x30436a(0x11f),'width':'1em','height':_0x30436a(0x10b)},'children':[{'tag':_0x30436a(0xdc),'attrs':{'fill':_0x30436a(0x15d),'d':_0x30436a(0xcf)}},{'tag':_0x30436a(0xdc),'attrs':{'fill':_0x30436a(0x15d),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x30436a(0xe9),'clipRule':_0x30436a(0xe9)}}]},P=f[_0x30436a(0xf3)](function(_0x33fc37,_0x5c6668){var _0x3b5769=_0x30436a;return f['createElement'](j,Object[_0x3b5769(0x104)]({},_0x33fc37,{'id':_0x3b5769(0x164),'ref':_0x5c6668,'icon':B}));});P[_0x30436a(0xee)]=_0x30436a(0xc9);var Y=Object[_0x30436a(0x124)],R=(_0xa35d07,_0x5d1d18,_0x59de0e,_0x54586a)=>{var _0x59ccbe=_0x30436a;for(var _0x147a32=_0x54586a>0x1?void 0x0:_0x54586a?Y(_0x5d1d18,_0x59de0e):_0x5d1d18,_0x363a00=_0xa35d07[_0x59ccbe(0x17f)]-0x1,_0x9b3272;_0x363a00>=0x0;_0x363a00--)(_0x9b3272=_0xa35d07[_0x363a00])&&(_0x147a32=_0x9b3272(_0x147a32)||_0x147a32);return _0x147a32;},S=(_0x5f32fd,_0xd12b3a)=>(_0x19381c,_0x566534)=>_0xd12b3a(_0x19381c,_0x566534,_0x5f32fd);exports[_0x30436a(0xd5)]=class extends o[_0x30436a(0x155)]{constructor(_0x5bc1fe,_0x288030,_0x5e9c3d){var _0x156d8d=_0x30436a;super(),v(this,'_entities',new Map()),(this[_0x156d8d(0x130)]=_0x5bc1fe,this['_injector']=_0x288030,this['_collabSessionService']=_0x5e9c3d,this[_0x156d8d(0x15b)]());}async[_0x30436a(0x117)](_0x24afc1){var _0x5762df=_0x30436a;return this[_0x5762df(0x111)][_0x5762df(0xde)](_0x24afc1)||await this['_startLiveShareCoordinator'](_0x24afc1),this[_0x5762df(0x111)][_0x5762df(0x17d)](_0x24afc1);}[_0x30436a(0x15b)](){var _0x305638=_0x30436a;this['_univerInstanceService'][_0x305638(0x18d)](o[_0x305638(0x15e)][_0x305638(0x11d)])[_0x305638(0x12d)](b[_0x305638(0x176)](this[_0x305638(0xeb)]))[_0x305638(0x18a)](async _0x4fb803=>{var _0xf13e77=_0x305638;const _0x1c766e=_0x4fb803['getUnitId']();this[_0xf13e77(0x111)]['has'](_0x1c766e)||this[_0xf13e77(0x169)](_0x1c766e);}),this[_0x305638(0x130)][_0x305638(0x191)](o[_0x305638(0x15e)]['UNIVER_SHEET'])[_0x305638(0x12d)](b['takeUntil'](this['dispose$']))[_0x305638(0x18a)](_0x23bfa5=>{var _0x46628f=_0x305638;const _0x1d66a6=_0x23bfa5[_0x46628f(0x112)](),_0x1103a2=this[_0x46628f(0x111)][_0x46628f(0x17d)](_0x1d66a6);_0x1103a2==null||_0x1103a2['dispose']();});}async['_startLiveShareCoordinator'](_0x894da9){var _0x3bbc16=_0x30436a;const _0x580b15=await this['_collabSessionService'][_0x3bbc16(0x156)](_0x894da9),_0xe96b27=this[_0x3bbc16(0x161)][_0x3bbc16(0xed)](exports[_0x3bbc16(0x181)],_0x894da9,_0x580b15);return _0xe96b27[_0x3bbc16(0x134)](),this[_0x3bbc16(0x111)]['set'](_0x894da9,_0xe96b27),_0xe96b27;}},exports[_0x30436a(0xd5)]=R([S(0x0,o[_0x30436a(0xbe)]),S(0x1,o[_0x30436a(0x167)](o[_0x30436a(0x114)])),S(0x2,o[_0x30436a(0x167)](m[_0x30436a(0x16a)]))],exports[_0x30436a(0xd5)]);var h=(_0x3c2adf=>(_0x3c2adf['OFFLINE']='offline',_0x3c2adf[_0x30436a(0x17b)]=_0x30436a(0xfc),_0x3c2adf['FOLLOWING']=_0x30436a(0x11b),_0x3c2adf[_0x30436a(0x120)]='not-following',_0x3c2adf[_0x30436a(0x139)]=_0x30436a(0x168),_0x3c2adf))(h||{});const Z=_0x30436a(0x174),J=0xc8;exports[_0x30436a(0x181)]=class extends o[_0x30436a(0x155)]{constructor(_0x25115b,_0x254353,_0x5a12a8,_0x3af993,_0x187459){var _0x51bf9e=_0x30436a;super(),v(this,_0x51bf9e(0xf0),new D[(_0x51bf9e(0x180))](_0x51bf9e(0xfc))),v(this,'status$',this[_0x51bf9e(0xf0)][_0x51bf9e(0x172)]()),v(this,'_init',!0x1),v(this,_0x51bf9e(0x13c),null),v(this,'_presenter',null),(this[_0x51bf9e(0x10e)]=_0x25115b,this[_0x51bf9e(0xe3)]=_0x254353,this[_0x51bf9e(0x135)]=_0x5a12a8,this[_0x51bf9e(0x145)]=_0x3af993,this['_commandService']=_0x187459);}get[_0x30436a(0x179)](){var _0x5ca21d=_0x30436a;return this[_0x5ca21d(0xf0)][_0x5ca21d(0x188)]();}[_0x30436a(0xcd)](){var _0x33867c=_0x30436a,_0x2004a7;(_0x2004a7=this[_0x33867c(0x13c)])==null||_0x2004a7[_0x33867c(0xcd)](),this['_status$'][_0x33867c(0x16c)](_0x33867c(0xfc)),this[_0x33867c(0xf0)]['complete']();}[_0x30436a(0x134)](){var _0x10d7a6=_0x30436a;this[_0x10d7a6(0x15b)]||(this[_0x10d7a6(0x15b)]=!0x0,this[_0x10d7a6(0xe3)]['sessionStatus$'][_0x10d7a6(0x12d)](b[_0x10d7a6(0x176)](this[_0x10d7a6(0xeb)]))[_0x10d7a6(0x18a)](_0x11758e=>{var _0x5d92c7=_0x10d7a6;switch(_0x11758e){case m[_0x5d92c7(0x127)]['OFFLINE']:this['_handleOffline']();break;case m[_0x5d92c7(0x127)][_0x5d92c7(0xea)]:this['_handleOnline']();break;}}),this[_0x10d7a6(0xe3)][_0x10d7a6(0x18b)][_0x10d7a6(0x12d)](b['takeUntil'](this['dispose$']))[_0x10d7a6(0x18a)](_0x8c7fcf=>{var _0x4f1791=_0x10d7a6;const {eventID:_0x2e6e97}=_0x8c7fcf;switch(_0x2e6e97){case _[_0x4f1791(0xce)][_0x4f1791(0x146)]:this[_0x4f1791(0xd2)](_0x8c7fcf);break;case _[_0x4f1791(0xce)][_0x4f1791(0x13b)]:this[_0x4f1791(0xc2)](_0x8c7fcf);break;case _[_0x4f1791(0xce)][_0x4f1791(0xc5)]:this[_0x4f1791(0x11e)]();break;case _[_0x4f1791(0xce)][_0x4f1791(0x106)]:this[_0x4f1791(0x101)](_0x8c7fcf);break;}}));}[_0x30436a(0x140)](){var _0x1b9806=_0x30436a;this['_collabSession']['send']({'eventID':_[_0x1b9806(0xce)][_0x1b9806(0x128)],'data':{'unitID':this[_0x1b9806(0x10e)],'userID':this[_0x1b9806(0xe3)][_0x1b9806(0x184)]()}},this[_0x1b9806(0x10e)]);}[_0x30436a(0x18c)](){var _0x241d8c=_0x30436a;this[_0x241d8c(0x179)]===_0x241d8c(0x168)&&(this['_status$'][_0x241d8c(0x16c)]('idle'),this[_0x241d8c(0xe3)][_0x241d8c(0x148)]({'eventID':_[_0x241d8c(0xce)][_0x241d8c(0xc5)],'data':{'unitID':this[_0x241d8c(0x10e)]}},this[_0x241d8c(0x10e)]));}[_0x30436a(0x10a)](){var _0x4e92a9=_0x30436a;this[_0x4e92a9(0x179)]===_0x4e92a9(0xdb)&&(this[_0x4e92a9(0xf0)]['next'](_0x4e92a9(0x11b)),this[_0x4e92a9(0x177)]());}[_0x30436a(0xf6)](){var _0x30ffd0=_0x30436a;this[_0x30ffd0(0x179)]===_0x30ffd0(0x11b)&&this[_0x30ffd0(0x12f)]();}['_handleNewHost'](_0x10e992){var _0x3dc292=_0x30436a;const {presenter:_0x2ed22d}=_0x10e992['data'],_0x3e83c2=this[_0x3dc292(0xe3)][_0x3dc292(0x184)]();this['_presenter']=_0x2ed22d,_0x2ed22d===_0x3e83c2?(this[_0x3dc292(0x12f)](),this['_startPresenting']()):this[_0x3dc292(0x179)]!==_0x3dc292(0xdb)&&(this[_0x3dc292(0x16f)](),this['_startFollowing']());}['_fetchOperations'](){var _0xe036a7=_0x30436a;const _0x195f69={'eventID':_[_0xe036a7(0xce)][_0xe036a7(0x136)]};this[_0xe036a7(0xe3)]['send'](_0x195f69,this['_unitID']);}[_0x30436a(0x11e)](){var _0x2f88b6=_0x30436a;this[_0x2f88b6(0xe1)]=null,this[_0x2f88b6(0x179)]!=='presenting'&&this[_0x2f88b6(0xb9)]();}[_0x30436a(0x101)](_0x2f0d7c){var _0x582255=_0x30436a;if(this[_0x582255(0x179)]==='following'&&this['_presenter']===_0x2f0d7c[_0x582255(0x103)][_0x582255(0x138)]){const _0x2ff2cd=_['parseProtocolChangeset'](_0x2f0d7c[_0x582255(0x103)])[_0x582255(0x14b)]['reverse']()[_0x582255(0x17c)](_0x361089=>_0x361089['id']===C['InsertSheetMutation']['id']);if(_0x2ff2cd){const _0x2ed430=_0x2ff2cd['params'][_0x582255(0x10c)],_0x2a9a92=_0x2ff2cd['params'][_0x582255(0xc4)]['id'];setTimeout(()=>{var _0x1c94f8=_0x582255;this['_commandService'][_0x1c94f8(0xc6)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x2ed430,'subUnitId':_0x2a9a92},{'fromCollab':!0x0});});}}}[_0x30436a(0x14a)](){var _0x54c724=_0x30436a;this[_0x54c724(0xf0)][_0x54c724(0x16c)](_0x54c724(0x168));const _0x4e5a50=new Map(),_0x4ff8c5=this[_0x54c724(0x13c)]=new o[(_0x54c724(0xd1))]();_0x4ff8c5[_0x54c724(0x153)](o[_0x54c724(0x123)](()=>{var _0x5ec32a=_0x54c724;_0x4e5a50[_0x5ec32a(0x162)](_0x889803=>_0x889803[_0x5ec32a(0xb7)]()),_0x4e5a50[_0x5ec32a(0x126)]();})),_0x4ff8c5['add'](this[_0x54c724(0xd8)][_0x54c724(0x115)](_0xa3dd78=>{var _0x2396ad=_0x54c724,_0xb7fc84;if(_0xa3dd78[_0x2396ad(0xff)]!==o[_0x2396ad(0xb3)][_0x2396ad(0x11a)]||!this[_0x2396ad(0x145)]['shouldShareOperation'](_0xa3dd78['id']))return;const {id:_0x4715b0}=_0xa3dd78;let _0x39993d;_0x4e5a50[_0x2396ad(0xde)](_0x4715b0)?_0x39993d=_0x4e5a50[_0x2396ad(0x17d)](_0x4715b0):(_0x39993d=new D[(_0x2396ad(0xf7))](),_0x4e5a50[_0x2396ad(0x14c)](_0x4715b0,_0x39993d),_0x39993d['pipe'](b[_0x2396ad(0x141)]((_0xb7fc84=this[_0x2396ad(0x135)][_0x2396ad(0x152)](Z))!=null?_0xb7fc84:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5aacad=>{var _0x7c40cc=_0x2396ad;this[_0x7c40cc(0xe3)]['send']({'eventID':_['CollaborationEvent'][_0x7c40cc(0x13b)],'data':{'unitID':this[_0x7c40cc(0x10e)],'operations':{[_0x5aacad['id']]:{'id':_0x5aacad['id'],'params':JSON['stringify'](_0x5aacad[_0x7c40cc(0x13d)])}}}},this[_0x7c40cc(0x10e)]);})),_0x39993d['next'](_0xa3dd78);})),this['_liveShareService'][_0x54c724(0xef)](this[_0x54c724(0x10e)])[_0x54c724(0x162)](_0x3bf1e9=>this[_0x54c724(0xe3)][_0x54c724(0x148)]({'eventID':_[_0x54c724(0xce)][_0x54c724(0x13b)],'data':{'unitID':this[_0x54c724(0x10e)],'operations':{[_0x3bf1e9['id']]:{'id':_0x3bf1e9['id'],'params':JSON[_0x54c724(0x107)](_0x3bf1e9[_0x54c724(0x13d)])}}}},this[_0x54c724(0x10e)]));}[_0x30436a(0x16f)](){var _0x16bebb=_0x30436a,_0x435e89;this[_0x16bebb(0xf0)][_0x16bebb(0x16c)](_0x16bebb(0xfc)),(_0x435e89=this[_0x16bebb(0x13c)])==null||_0x435e89['dispose'](),this['_commandDisposable']=null;}[_0x30436a(0x177)](){var _0x4bbda6=_0x30436a,_0x343f45;(_0x343f45=this['_commandDisposable'])==null||_0x343f45[_0x4bbda6(0xcd)](),this[_0x4bbda6(0xf0)][_0x4bbda6(0x16c)](_0x4bbda6(0x11b));}[_0x30436a(0xb9)](){var _0x5434df=_0x30436a,_0x46c090;this[_0x5434df(0xf0)][_0x5434df(0x16c)](_0x5434df(0xfc)),(_0x46c090=this[_0x5434df(0x13c)])==null||_0x46c090[_0x5434df(0xcd)](),this[_0x5434df(0x13c)]=null;}[_0x30436a(0x12f)](){var _0x281e9d=_0x30436a,_0x4eefee;this[_0x281e9d(0xf0)][_0x281e9d(0x16c)]('not-following'),(_0x4eefee=this['_commandDisposable'])==null||_0x4eefee['dispose']();}[_0x30436a(0xc2)](_0x5a3433){var _0xe832ac=_0x30436a;if([_0xe832ac(0x168),_0xe832ac(0xdb),_0xe832ac(0x182)]['includes'](this[_0xe832ac(0x179)])||!_0x5a3433['data'][_0xe832ac(0x192)]||_0x5a3433[_0xe832ac(0x103)]['presenter']===this[_0xe832ac(0xe3)][_0xe832ac(0x184)]())return;this['_status']===_0xe832ac(0xfc)&&this['_startFollowing']();const _0x3c5a5d=_0x5a3433[_0xe832ac(0x103)][_0xe832ac(0xb1)];Object[_0xe832ac(0x132)](_0x3c5a5d)[_0xe832ac(0x162)](_0x95886c=>{var _0x563621=_0xe832ac;this['_commandService'][_0x563621(0xc6)](_0x95886c['id'],_0x95886c[_0x563621(0x13d)]?JSON['parse'](_0x95886c[_0x563621(0x13d)]):null,{'fromCollab':!0x0});});}[_0x30436a(0x166)](){var _0x2230af=_0x30436a,_0x42d8e2;this[_0x2230af(0xf0)]['next'](_0x2230af(0x182)),(_0x42d8e2=this[_0x2230af(0x13c)])==null||_0x42d8e2[_0x2230af(0xcd)]();}[_0x30436a(0x154)](){var _0x56f7f3=_0x30436a;this[_0x56f7f3(0xf0)][_0x56f7f3(0x16c)](_0x56f7f3(0xfc)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x30436a(0x118)]),S(0x3,o[_0x30436a(0x167)](O)),S(0x4,o[_0x30436a(0xe8)])],exports[_0x30436a(0x181)]);function A(){var _0x3021df=_0x30436a;const _0x349dac=p['useDependency'](exports['LiveShareController']),_0x45e9b5=p['useDependency'](o[_0x3021df(0xbe)]),_0x1e7dd6=p[_0x3021df(0xfe)](()=>_0x45e9b5[_0x3021df(0x165)](o[_0x3021df(0x15e)][_0x3021df(0x11d)]),void 0x0,!0x1,[]),[_0x3d4bfc,_0x3bf987]=f[_0x3021df(0xd4)](null),[_0x29796b,_0x39c2dd]=f[_0x3021df(0xd4)](h[_0x3021df(0x17b)]),_0x30f27f=f['useRef'](null);return f['useEffect'](()=>(_0x1e7dd6&&_0x349dac[_0x3021df(0x117)](_0x1e7dd6[_0x3021df(0x112)]())[_0x3021df(0xfb)](_0xb81932=>{var _0x53ca88=_0x3021df;_0x3bf987(_0xb81932),_0x30f27f[_0x53ca88(0x12a)]=_0xb81932[_0x53ca88(0x121)]['subscribe'](_0x252b4a=>{_0x39c2dd(_0x252b4a);});}),()=>{var _0x304cc0=_0x3021df,_0x2c556f;(_0x2c556f=_0x30f27f[_0x304cc0(0x12a)])==null||_0x2c556f[_0x304cc0(0x10f)](),_0x30f27f[_0x304cc0(0x12a)]=null;}),[_0x1e7dd6,_0x349dac]),_0x3d4bfc?l[_0x3021df(0x12c)](g[_0x3021df(0x18f)],{'align':_0x3021df(0x14d),'disabled':_0x29796b===h[_0x3021df(0x13f)],'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[_0x3021df(0x12c)](K,{'status':_0x29796b,'coordinator':_0x3d4bfc}),'children':l[_0x3021df(0x12c)](_0x3021df(0x14f),{'className':g['clsx']('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x29796b===h[_0x3021df(0x13f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x29796b!==h[_0x3021df(0x13f)]}),'type':_0x3021df(0x14f),'children':l[_0x3021df(0x12c)](P,{'className':_0x3021df(0xb4)})})}):null;}function K(_0x4a691c){var _0x5ef261=_0x30436a;const {status:_0x23068d,coordinator:_0x423cb9}=_0x4a691c;switch(_0x23068d){case h['IDLE']:return l[_0x5ef261(0x12c)](z,{'coordinator':_0x423cb9});case h[_0x5ef261(0x196)]:return l[_0x5ef261(0x12c)](Q,{'coordinator':_0x423cb9});case h[_0x5ef261(0x120)]:return l['jsx'](X,{'coordinator':_0x423cb9});case h[_0x5ef261(0x13f)]:return l['jsx'](te,{});case h['PRESENTING']:return l[_0x5ef261(0x12c)](ee,{'coordinator':_0x423cb9});default:return null;}}function z(_0x8849f){var _0x1a5e7c=_0x30436a;const {coordinator:_0x5cc8b6}=_0x8849f;return l[_0x1a5e7c(0xda)](l[_0x1a5e7c(0xbb)],{'children':[l[_0x1a5e7c(0x12c)]('div',{'className':_0x1a5e7c(0x125),'children':_0x1a5e7c(0x147)}),l[_0x1a5e7c(0x12c)](g['Button'],{'onClick':()=>_0x5cc8b6[_0x1a5e7c(0x140)](),'children':_0x1a5e7c(0x189)})]});}function Q(_0x2d3186){var _0x35b5e4=_0x30436a;const {coordinator:_0x4ca398}=_0x2d3186;return l[_0x35b5e4(0xda)](l[_0x35b5e4(0xbb)],{'children':[l['jsx']('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x35b5e4(0xbd)}),l['jsx'](g[_0x35b5e4(0x105)],{'onClick':()=>_0x4ca398[_0x35b5e4(0xf6)](),'children':'Stop\x20following'})]});}function X(_0x490ec7){var _0x124a48=_0x30436a;const {coordinator:_0x13ccc7}=_0x490ec7;return l[_0x124a48(0xda)](l['Fragment'],{'children':[l[_0x124a48(0x12c)]('div',{'className':_0x124a48(0x125),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x124a48(0x12c)](g['Button'],{'variant':'text','onClick':()=>_0x13ccc7[_0x124a48(0x10a)](),'children':_0x124a48(0xfa)})]});}function ee(_0x324339){var _0xa221a6=_0x30436a;const {coordinator:_0x30362e}=_0x324339;return l['jsxs'](l[_0xa221a6(0xbb)],{'children':[l[_0xa221a6(0x12c)](_0xa221a6(0xd7),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0xa221a6(0x11c)}),l['jsx'](g[_0xa221a6(0x105)],{'variant':_0xa221a6(0x15c),'onClick':()=>_0x30362e['stopPresenting'](),'children':_0xa221a6(0x160)})]});}function te(){var _0x2e629f=_0x30436a;return l[_0x2e629f(0x12c)](l['Fragment'],{'children':_0x2e629f(0x100)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0xce302f,_0x37babd,_0x4bd7cf,_0x4bd403)=>{var _0xf3daa0=_0x30436a;for(var _0x16a78b=_0x4bd403>0x1?void 0x0:_0x4bd403?ie(_0x37babd,_0x4bd7cf):_0x37babd,_0x21df62=_0xce302f[_0xf3daa0(0x17f)]-0x1,_0x5637c2;_0x21df62>=0x0;_0x21df62--)(_0x5637c2=_0xce302f[_0x21df62])&&(_0x16a78b=_0x5637c2(_0x16a78b)||_0x16a78b);return _0x16a78b;},L=(_0x449706,_0x2671be)=>(_0x3201f5,_0x5a8b20)=>_0x2671be(_0x3201f5,_0x5a8b20,_0x449706);exports['DesktopLiveShareController']=class extends o[_0x30436a(0x14e)]{constructor(_0x34d220,_0x5b0d58){var _0xe6497a=_0x30436a;super(),this['_injector']=_0x34d220,this[_0xe6497a(0x194)]=_0x5b0d58,this[_0xe6497a(0x149)]();}[_0x30436a(0x149)](){var _0x379daf=_0x30436a;this[_0x379daf(0xb8)](this[_0x379daf(0x194)]['registerComponent'](p[_0x379daf(0x150)]['HEADER_MENU'],()=>p[_0x379daf(0xe0)](A,this['_injector'])));}},exports[_0x30436a(0x133)]=ne([L(0x0,o[_0x30436a(0x167)](o[_0x30436a(0x114)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);var re=Object[_0x30436a(0xe2)],se=Object[_0x30436a(0x124)],oe=(_0x5f2912,_0x4916b2,_0x2c69a5)=>_0x4916b2 in _0x5f2912?re(_0x5f2912,_0x4916b2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c69a5}):_0x5f2912[_0x4916b2]=_0x2c69a5,ae=(_0xa3fb06,_0x1fba7e,_0x53a7de,_0x9aa3f7)=>{var _0x3a1378=_0x30436a;for(var _0x23eeb5=_0x9aa3f7>0x1?void 0x0:_0x9aa3f7?se(_0x1fba7e,_0x53a7de):_0x1fba7e,_0x2dcc9a=_0xa3fb06[_0x3a1378(0x17f)]-0x1,_0x39f7cb;_0x2dcc9a>=0x0;_0x2dcc9a--)(_0x39f7cb=_0xa3fb06[_0x2dcc9a])&&(_0x23eeb5=_0x39f7cb(_0x23eeb5)||_0x23eeb5);return _0x23eeb5;},N=(_0x28206d,_0x4ccda9)=>(_0x41ec04,_0x4cddfa)=>_0x4ccda9(_0x41ec04,_0x4cddfa,_0x28206d),T=(_0x111fea,_0x52db6a,_0x17f3b1)=>oe(_0x111fea,typeof _0x52db6a!=_0x30436a(0x173)?_0x52db6a+'':_0x52db6a,_0x17f3b1);const le=_0x30436a(0x13e);exports[_0x30436a(0xe5)]=class extends o[_0x30436a(0x13a)]{constructor(_0x17615b=x,_0x270105,_0x1d008b){var _0x2af07a=_0x30436a;super(),this[_0x2af07a(0xc8)]=_0x17615b,this['_injector']=_0x270105,this['_configService']=_0x1d008b;const {..._0x5a163c}=o['merge']({},x,this['_config']);this['_configService'][_0x2af07a(0xf5)]($,_0x5a163c);}[_0x30436a(0x12e)](){var _0x5e5027=_0x30436a;o[_0x5e5027(0xf1)](this[_0x5e5027(0x161)],o[_0x5e5027(0x108)]([[O],[exports['LiveShareController']],[E],[exports[_0x5e5027(0x133)]]],this[_0x5e5027(0xc8)][_0x5e5027(0x190)])),o['touchDependencies'](this[_0x5e5027(0x161)],[[E]]);}['onRendered'](){var _0x481548=_0x30436a;o[_0x481548(0xd9)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x30436a(0xe5)],_0x30436a(0xff),o[_0x30436a(0x15e)]['UNIVER_UNKNOWN']),T(exports['UniverLiveSharePlugin'],_0x30436a(0x187),le),exports['UniverLiveSharePlugin']=ae([o[_0x30436a(0x15a)](m[_0x30436a(0x18e)]),N(0x1,o['Inject'](o['Injector'])),N(0x2,o['IConfigService'])],exports[_0x30436a(0xe5)]),exports[_0x30436a(0x16d)]=A,exports['LiveShareService']=O,exports[_0x30436a(0xf2)]=h;
1
+ 'use strict';var _0x560ecb=_0x57b5;(function(_0x3f790e,_0x10f5a6){var _0x5d8f14=_0x57b5,_0x7db92c=_0x3f790e();while(!![]){try{var _0x29ea3c=-parseInt(_0x5d8f14(0x128))/0x1+-parseInt(_0x5d8f14(0x180))/0x2+-parseInt(_0x5d8f14(0x17b))/0x3*(-parseInt(_0x5d8f14(0x136))/0x4)+parseInt(_0x5d8f14(0xd9))/0x5+-parseInt(_0x5d8f14(0x1a6))/0x6*(parseInt(_0x5d8f14(0x107))/0x7)+parseInt(_0x5d8f14(0xca))/0x8+-parseInt(_0x5d8f14(0x105))/0x9;if(_0x29ea3c===_0x10f5a6)break;else _0x7db92c['push'](_0x7db92c['shift']());}catch(_0x5e57a6){_0x7db92c['push'](_0x7db92c['shift']());}}}(_0xcf91,0xbb01d));var U=Object[_0x560ecb(0x104)],F=(_0x258a4c,_0x9fbc5,_0x21a7dd)=>_0x9fbc5 in _0x258a4c?U(_0x258a4c,_0x9fbc5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21a7dd}):_0x258a4c[_0x9fbc5]=_0x21a7dd,v=(_0x5ce77b,_0x53b3ae,_0x10a446)=>F(_0x5ce77b,typeof _0x53b3ae!=_0x560ecb(0xf7)?_0x53b3ae+'':_0x53b3ae,_0x10a446);function _0x57b5(_0x62a3f5,_0x1a9e9e){var _0xcf9105=_0xcf91();return _0x57b5=function(_0x57b5ec,_0x2599a6){_0x57b5ec=_0x57b5ec-0xc3;var _0x1e38e6=_0xcf9105[_0x57b5ec];return _0x1e38e6;},_0x57b5(_0x62a3f5,_0x1a9e9e);}Object[_0x560ecb(0x104)](exports,Symbol[_0x560ecb(0xf9)],{'value':_0x560ecb(0x12c)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require(_0x560ecb(0x155)),w=require(_0x560ecb(0xde)),p=require(_0x560ecb(0x1a0)),l=require(_0x560ecb(0xfb)),g=require(_0x560ecb(0x15b)),f=require(_0x560ecb(0xdb)),_=require(_0x560ecb(0x1ad)),D=require('rxjs'),b=require(_0x560ecb(0xf8)),$=_0x560ecb(0xeb),x={};class O extends o[_0x560ecb(0x178)]{constructor(){var _0x4f027d=_0x560ecb;super(...arguments),v(this,_0x4f027d(0xd0),new Set()),v(this,'_reporters',new Set());}[_0x560ecb(0x16e)](_0x1222a2){var _0x549cf0=_0x560ecb;return this[_0x549cf0(0xd0)][_0x549cf0(0x133)](_0x1222a2),o['toDisposable'](()=>this[_0x549cf0(0xd0)]['delete'](_0x1222a2));}[_0x560ecb(0x160)](_0x4866ed){var _0x114efb=_0x560ecb;return this['_reporters'][_0x114efb(0x133)](_0x4866ed),o[_0x114efb(0x1ab)](()=>this[_0x114efb(0x172)][_0x114efb(0x108)](_0x4866ed));}[_0x560ecb(0xf4)](_0xfbb471){var _0x532ba6=_0x560ecb;return this[_0x532ba6(0xd0)][_0x532ba6(0x174)](_0xfbb471);}[_0x560ecb(0x129)](_0x429c5e){var _0x417494=_0x560ecb;return Array['from'](this[_0x417494(0x172)])[_0x417494(0xe5)](_0x23a64e=>_0x23a64e(_0x429c5e));}}var H=Object[_0x560ecb(0x154)],V=(_0x28c7aa,_0x4453c4,_0xaebe9d,_0x5da6e1)=>{var _0x50e7f8=_0x560ecb;for(var _0x255de6=_0x5da6e1>0x1?void 0x0:_0x5da6e1?H(_0x4453c4,_0xaebe9d):_0x4453c4,_0x13c4a0=_0x28c7aa[_0x50e7f8(0x188)]-0x1,_0x46895c;_0x13c4a0>=0x0;_0x13c4a0--)(_0x46895c=_0x28c7aa[_0x13c4a0])&&(_0x255de6=_0x46895c(_0x255de6)||_0x255de6);return _0x255de6;},k=(_0x52283e,_0x49ac04)=>(_0x1f4f79,_0x51b0d0)=>_0x49ac04(_0x1f4f79,_0x51b0d0,_0x52283e);let E=class extends o[_0x560ecb(0x178)]{constructor(_0xf78092){var _0x1c8fd5=_0x560ecb;super(),this['_liveShareService']=_0xf78092,this[_0x1c8fd5(0x144)]();}['_init'](){var _0x3c329a=_0x560ecb;[w[_0x3c329a(0xef)]['id'],w[_0x3c329a(0x189)]['id'],C[_0x3c329a(0x10f)]['id']]['forEach'](_0x107395=>{var _0x2de4e0=_0x3c329a;this[_0x2de4e0(0x119)](this[_0x2de4e0(0x139)][_0x2de4e0(0x16e)](_0x107395));});}};function _0xcf91(){var _0x31f494=['Module','reverse','Subject','FOLLOWING','_handleNewHost','onStarting','init','add','RxDisposable','LIVESHARE_OPERATION','20236zDYRgd','SessionStatus','default','_liveShareService','apply','jsxs','connectInjector','_uiPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopFollowing','event$','You\x27are\x20offline.','then','_startLiveShareCoordinator','_init','_status$','get','status$','override','text','NOT_FOLLOWING','indexOf','stringify','IDLE','_collabSession','not-following','Plugin','univerjs-icon\x20univerjs-icon-','touchDependencies','IUniverInstanceService','getOwnPropertyDescriptor','@univerjs/sheets','path','_beIdle','_injector','CommandType','stopFollowing','@univerjs/design','end','find','assign','_handleOperation','registerInitialStateReporter','takeUntil','operations','complete','unitId','Dropdown','prototype','SAME_OPERATION_SHARE_INTERVAL','getTypeOfUnitDisposed$','following','dispose','LIVESHARE_REQUEST_HOST','presenting','ONLINE','registerSharedOperation','LiveShareStatus','none','useDependency','_reporters','asObservable','has','HEADER_MENU','_univerInstanceService','stopPresenting','Disposable','_presenter','OFFLINE','573sOjWuj','createElement','dispose$','getLiveShareCoordinator','concat','702652BmeBvg','useState','_commandDisposable','div','getCurrentTypeOfUnit$','trim','toString','getOwnPropertySymbols','length','SetScrollOperation','next','jsx','function','children','UNIVER_UNKNOWN','_configService','parse','icon','createInstance','getMemberID','includes','UNIVER_SHEET','extend','sheet','LIVESHARE_TERMINATE','univer-size-4','attrs','defIds','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','pipe','getUnitId','UNIVER_LIVE_SHARE_PLUGIN','@univerjs/ui','You\x27re\x20not\x20following\x20the\x20presenter','LiveShareService','_stopPresenting','requireSession','use','170754bcLfCb','propertyIsEnumerable','idSuffix','string','You\x27re\x20presenting\x20the\x20document','toDisposable','mask','@univerjs-pro/collaboration','defs','useRef','Injector','forEach','currentColor','presenter','Button','10404728WJViRC','displayName','_handleNewChangeSets','idle','offline','onRendered','_sharedOperations','registerComponent','svg','IUIPartsService','set','LiveShare','entries','type','_handleOnline','7451670QIxcFO','_status','react','BehaviorSubject','getTypeOfUnitAdded$','@univerjs/sheets-ui','_handleTerminate','_handleOffline','sessionStatus$','subscribe','getConfig','className','map','tag','executeCommand','_startFollowing','NEW_CHANGESETS','UniverInstanceType','live-share.config','throttleTime','Start\x20following','BuiltInUIPart','SetZoomRatioOperation','DisposableCollection','params','DesktopLiveShareController','OPERATION','shouldShareOperation','data','DependentOn','symbol','rxjs/operators','toStringTag','UniverLiveSharePlugin','react/jsx-runtime','hasOwnProperty','forwardRef','_commandService','button','_collabSessionService','tryStartPresenting','_mountLiveShare','current','defineProperty','1907667gAwQhO','ICommandService','336hkaQYq','delete','Present\x20this\x20document','startFollowing','_config','getValue','Fragment','evenodd','SetWorksheetActiveOperation','substring','IConfigService','_entities','fill','random','_fetchOperations','send','LiveShareController','xlink:href','disposeWithMe','_unitID','PRESENTING','CollaborationEvent','LiveShareCoordinator','memberID','unsubscribe','colorChannel1','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','values','call','0\x200\x2017\x2017','Inject','clsx','useObservable','1061892uSFyiQ','getInitialStates','onCommandExecuted','_startPresenting'];_0xcf91=function(){return _0x31f494;};return _0xcf91();}E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x211c35=_0x560ecb;return u=Object[_0x211c35(0x15e)]||function(_0x4efe21){var _0x683512=_0x211c35;for(var _0x59ee19,_0x51e111=0x1,_0x4df6a1=arguments[_0x683512(0x188)];_0x51e111<_0x4df6a1;_0x51e111++){_0x59ee19=arguments[_0x51e111];for(var _0x23482 in _0x59ee19)Object[_0x683512(0x166)]['hasOwnProperty'][_0x683512(0x123)](_0x59ee19,_0x23482)&&(_0x4efe21[_0x23482]=_0x59ee19[_0x23482]);}return _0x4efe21;},u[_0x211c35(0x13a)](this,arguments);},M=function(_0x4c3492,_0x8f3ce7){var _0x516bcc=_0x560ecb,_0x2dc60b={};for(var _0xa1d4ec in _0x4c3492)Object['prototype'][_0x516bcc(0xfc)]['call'](_0x4c3492,_0xa1d4ec)&&_0x8f3ce7[_0x516bcc(0x14b)](_0xa1d4ec)<0x0&&(_0x2dc60b[_0xa1d4ec]=_0x4c3492[_0xa1d4ec]);if(_0x4c3492!=null&&typeof Object[_0x516bcc(0x187)]==_0x516bcc(0x18c)){for(var _0x2c41d9=0x0,_0xa1d4ec=Object[_0x516bcc(0x187)](_0x4c3492);_0x2c41d9<_0xa1d4ec['length'];_0x2c41d9++)_0x8f3ce7[_0x516bcc(0x14b)](_0xa1d4ec[_0x2c41d9])<0x0&&Object[_0x516bcc(0x166)][_0x516bcc(0x1a7)][_0x516bcc(0x123)](_0x4c3492,_0xa1d4ec[_0x2c41d9])&&(_0x2dc60b[_0xa1d4ec[_0x2c41d9]]=_0x4c3492[_0xa1d4ec[_0x2c41d9]]);}return _0x2dc60b;},j=f[_0x560ecb(0xfd)](function(_0xa58e32,_0x1fbcbf){var _0x44949d=_0x560ecb,_0x134f26=_0xa58e32[_0x44949d(0x191)],_0x2e90a8=_0xa58e32['id'],_0x4ea150=_0xa58e32['className'],_0x23623c=_0xa58e32[_0x44949d(0x196)],_0x250047=M(_0xa58e32,[_0x44949d(0x191),'id',_0x44949d(0xe4),_0x44949d(0x196)]),_0x2945ef=_0x44949d(0x151)['concat'](_0x2e90a8,'\x20')[_0x44949d(0x17f)](_0x4ea150||'')[_0x44949d(0x185)](),_0x2b2bc3=f['useRef']('_'['concat'](G()));return y(_0x134f26,''['concat'](_0x2e90a8),{'defIds':_0x134f26[_0x44949d(0x19b)],'idSuffix':_0x2b2bc3['current']},u({'ref':_0x1fbcbf,'className':_0x2945ef},_0x250047),_0x23623c);});function y(_0x358b00,_0x4b4922,_0x1a5ed4,_0xd38720,_0x15109a){var _0x477e42=_0x560ecb;return f[_0x477e42(0x17c)](_0x358b00[_0x477e42(0xe6)],u(u({'key':_0x4b4922},q(_0x358b00,_0x1a5ed4,_0x15109a)),_0xd38720),(W(_0x358b00,_0x1a5ed4)['children']||[])[_0x477e42(0xe5)](function(_0x5ac0a6,_0x27a5c1){var _0x3028c3=_0x477e42;return y(_0x5ac0a6,''['concat'](_0x4b4922,'-')[_0x3028c3(0x17f)](_0x358b00[_0x3028c3(0xe6)],'-')[_0x3028c3(0x17f)](_0x27a5c1),_0x1a5ed4,void 0x0,_0x15109a);}));}function q(_0xdc4aa3,_0x2d316d,_0x272e78){var _0x3b4668=_0x560ecb,_0x49208c=u({},_0xdc4aa3['attrs']);_0x272e78!=null&&_0x272e78['colorChannel1']&&_0x49208c[_0x3b4668(0x113)]===_0x3b4668(0x120)&&(_0x49208c[_0x3b4668(0x113)]=_0x272e78['colorChannel1']),_0xdc4aa3[_0x3b4668(0xe6)]===_0x3b4668(0x1ac)&&_0x49208c['id']&&(_0x49208c['id']=_0x49208c['id']+_0x2d316d[_0x3b4668(0x1a8)]),Object[_0x3b4668(0xd6)](_0x49208c)[_0x3b4668(0xc6)](function(_0xb16b81){var _0x5542e5=_0x3b4668,_0x586222=_0xb16b81[0x0],_0x49fa4f=_0xb16b81[0x1];_0x586222===_0x5542e5(0x1ac)&&typeof _0x49fa4f==_0x5542e5(0x1a9)&&(_0x49208c[_0x586222]=_0x49fa4f['replace'](/url\(#(.*)\)/,'url(#$1'[_0x5542e5(0x17f)](_0x2d316d['idSuffix'],')')));});var _0x3c93e1=_0x2d316d['defIds'];return!_0x3c93e1||_0x3c93e1[_0x3b4668(0x188)]===0x0||(_0xdc4aa3['tag']===_0x3b4668(0x1a5)&&_0x49208c[_0x3b4668(0x118)]&&(_0x49208c[_0x3b4668(0x118)]=_0x49208c['xlink:href']+_0x2d316d['idSuffix']),Object[_0x3b4668(0xd6)](_0x49208c)[_0x3b4668(0xc6)](function(_0x49ee37){var _0x5cebce=_0x3b4668,_0x59a5c6=_0x49ee37[0x0],_0x40f67f=_0x49ee37[0x1];typeof _0x40f67f=='string'&&(_0x49208c[_0x59a5c6]=_0x40f67f['replace'](/url\(#(.*)\)/,'url(#$1'[_0x5cebce(0x17f)](_0x2d316d[_0x5cebce(0x1a8)],')')));})),_0x49208c;}function W(_0x5541c6,_0x5b9892){var _0x392fb8=_0x560ecb,_0x5831a6,_0x157066=_0x5b9892[_0x392fb8(0x19b)];return!_0x157066||_0x157066[_0x392fb8(0x188)]===0x0?_0x5541c6:_0x5541c6[_0x392fb8(0xe6)]===_0x392fb8(0xc3)&&(!((_0x5831a6=_0x5541c6[_0x392fb8(0x18d)])===null||_0x5831a6===void 0x0)&&_0x5831a6[_0x392fb8(0x188)])?u(u({},_0x5541c6),{'children':_0x5541c6[_0x392fb8(0x18d)][_0x392fb8(0xe5)](function(_0x312092){var _0x11dcbf=_0x392fb8;return typeof _0x312092[_0x11dcbf(0x19a)]['id']==_0x11dcbf(0x1a9)&&_0x157066&&_0x157066[_0x11dcbf(0x194)](_0x312092[_0x11dcbf(0x19a)]['id'])?u(u({},_0x312092),{'attrs':u(u({},_0x312092[_0x11dcbf(0x19a)]),{'id':_0x312092[_0x11dcbf(0x19a)]['id']+_0x5b9892[_0x11dcbf(0x1a8)]})}):_0x312092;})}):_0x5541c6;}function G(){var _0x30ebcc=_0x560ecb;return Math[_0x30ebcc(0x114)]()[_0x30ebcc(0x186)](0x24)[_0x30ebcc(0x110)](0x2,0x8);}j['displayName']='UniverIcon';var B={'tag':_0x560ecb(0xd2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x560ecb(0x170),'viewBox':_0x560ecb(0x124),'width':'1em','height':'1em'},'children':[{'tag':_0x560ecb(0x156),'attrs':{'fill':_0x560ecb(0xc7),'d':_0x560ecb(0x19c)}},{'tag':_0x560ecb(0x156),'attrs':{'fill':_0x560ecb(0xc7),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x560ecb(0x10e),'clipRule':_0x560ecb(0x10e)}}]},P=f[_0x560ecb(0xfd)](function(_0x2cd857,_0x5557f9){var _0x1b35f3=_0x560ecb;return f[_0x1b35f3(0x17c)](j,Object[_0x1b35f3(0x15e)]({},_0x2cd857,{'id':'live-share-icon','ref':_0x5557f9,'icon':B}));});P[_0x560ecb(0xcb)]='LiveShareIcon';var Y=Object['getOwnPropertyDescriptor'],R=(_0xb40903,_0x438f22,_0x160435,_0x213076)=>{var _0x519bed=_0x560ecb;for(var _0x322ace=_0x213076>0x1?void 0x0:_0x213076?Y(_0x438f22,_0x160435):_0x438f22,_0x4c7c6f=_0xb40903[_0x519bed(0x188)]-0x1,_0x3a295f;_0x4c7c6f>=0x0;_0x4c7c6f--)(_0x3a295f=_0xb40903[_0x4c7c6f])&&(_0x322ace=_0x3a295f(_0x322ace)||_0x322ace);return _0x322ace;},S=(_0x10b7c6,_0x777483)=>(_0x6f0404,_0x479935)=>_0x777483(_0x6f0404,_0x479935,_0x10b7c6);exports[_0x560ecb(0x117)]=class extends o[_0x560ecb(0x134)]{constructor(_0x7b878d,_0x3403b8,_0x4a14b1){var _0x3d20e8=_0x560ecb;super(),v(this,_0x3d20e8(0x112),new Map()),(this[_0x3d20e8(0x176)]=_0x7b878d,this[_0x3d20e8(0x158)]=_0x3403b8,this['_collabSessionService']=_0x4a14b1,this[_0x3d20e8(0x144)]());}async[_0x560ecb(0x17e)](_0x58c66d){var _0x5e60a2=_0x560ecb;return this['_entities'][_0x5e60a2(0x174)](_0x58c66d)||await this[_0x5e60a2(0x143)](_0x58c66d),this['_entities'][_0x5e60a2(0x146)](_0x58c66d);}['_init'](){var _0x29cce3=_0x560ecb;this[_0x29cce3(0x176)][_0x29cce3(0xdd)](o[_0x29cce3(0xea)][_0x29cce3(0x195)])[_0x29cce3(0x19d)](b[_0x29cce3(0x161)](this['dispose$']))[_0x29cce3(0xe2)](async _0xf5b103=>{var _0x13b4ce=_0x29cce3;const _0x466ba4=_0xf5b103[_0x13b4ce(0x19e)]();this[_0x13b4ce(0x112)]['has'](_0x466ba4)||this['_startLiveShareCoordinator'](_0x466ba4);}),this[_0x29cce3(0x176)][_0x29cce3(0x168)](o[_0x29cce3(0xea)]['UNIVER_SHEET'])[_0x29cce3(0x19d)](b['takeUntil'](this['dispose$']))[_0x29cce3(0xe2)](_0x1ece1f=>{var _0x27d33f=_0x29cce3;const _0x3b04c9=_0x1ece1f[_0x27d33f(0x19e)](),_0x5d37d9=this[_0x27d33f(0x112)][_0x27d33f(0x146)](_0x3b04c9);_0x5d37d9==null||_0x5d37d9['dispose']();});}async['_startLiveShareCoordinator'](_0x4c7f35){var _0x4256d7=_0x560ecb;const _0x37768c=await this[_0x4256d7(0x100)][_0x4256d7(0x1a4)](_0x4c7f35),_0x54449d=this[_0x4256d7(0x158)][_0x4256d7(0x192)](exports[_0x4256d7(0x11d)],_0x4c7f35,_0x37768c);return _0x54449d[_0x4256d7(0x132)](),this[_0x4256d7(0x112)][_0x4256d7(0xd4)](_0x4c7f35,_0x54449d),_0x54449d;}},exports['LiveShareController']=R([S(0x0,o[_0x560ecb(0x153)]),S(0x1,o[_0x560ecb(0x125)](o[_0x560ecb(0xc5)])),S(0x2,o[_0x560ecb(0x125)](m['CollaborationSessionService']))],exports[_0x560ecb(0x117)]);var h=(_0x301273=>(_0x301273[_0x560ecb(0x17a)]='offline',_0x301273[_0x560ecb(0x14d)]=_0x560ecb(0xcd),_0x301273[_0x560ecb(0x12f)]=_0x560ecb(0x169),_0x301273[_0x560ecb(0x14a)]=_0x560ecb(0x14f),_0x301273[_0x560ecb(0x11b)]=_0x560ecb(0x16c),_0x301273))(h||{});const Z=_0x560ecb(0x167),J=0xc8;exports[_0x560ecb(0x11d)]=class extends o['RxDisposable']{constructor(_0x5cc370,_0x114788,_0xccc3fb,_0x530d76,_0x3e32c8){var _0xd3a260=_0x560ecb;super(),v(this,_0xd3a260(0x145),new D[(_0xd3a260(0xdc))](_0xd3a260(0xcd))),v(this,'status$',this[_0xd3a260(0x145)][_0xd3a260(0x173)]()),v(this,_0xd3a260(0x144),!0x1),v(this,'_commandDisposable',null),v(this,_0xd3a260(0x179),null),(this[_0xd3a260(0x11a)]=_0x5cc370,this[_0xd3a260(0x14e)]=_0x114788,this[_0xd3a260(0x18f)]=_0xccc3fb,this['_liveShareService']=_0x530d76,this[_0xd3a260(0xfe)]=_0x3e32c8);}get['_status'](){var _0x3221b9=_0x560ecb;return this[_0x3221b9(0x145)][_0x3221b9(0x10c)]();}[_0x560ecb(0x16a)](){var _0x2ed1de=_0x560ecb,_0x114499;(_0x114499=this[_0x2ed1de(0x182)])==null||_0x114499['dispose'](),this[_0x2ed1de(0x145)]['next'](_0x2ed1de(0xcd)),this['_status$'][_0x2ed1de(0x163)]();}[_0x560ecb(0x132)](){var _0x4c9371=_0x560ecb;this[_0x4c9371(0x144)]||(this[_0x4c9371(0x144)]=!0x0,this[_0x4c9371(0x14e)][_0x4c9371(0xe1)][_0x4c9371(0x19d)](b[_0x4c9371(0x161)](this[_0x4c9371(0x17d)]))[_0x4c9371(0xe2)](_0x4c9d6d=>{var _0x193223=_0x4c9371;switch(_0x4c9d6d){case m[_0x193223(0x137)][_0x193223(0x17a)]:this['_handleOffline']();break;case m[_0x193223(0x137)][_0x193223(0x16d)]:this[_0x193223(0xd8)]();break;}}),this['_collabSession'][_0x4c9371(0x140)][_0x4c9371(0x19d)](b[_0x4c9371(0x161)](this['dispose$']))['subscribe'](_0x52c93c=>{var _0x5656e8=_0x4c9371;const {eventID:_0x18ac2a}=_0x52c93c;switch(_0x18ac2a){case _[_0x5656e8(0x11c)]['LIVESHARE_NEW_HOST']:this[_0x5656e8(0x130)](_0x52c93c);break;case _[_0x5656e8(0x11c)][_0x5656e8(0x135)]:this[_0x5656e8(0x15f)](_0x52c93c);break;case _['CollaborationEvent'][_0x5656e8(0x198)]:this[_0x5656e8(0xdf)]();break;case _[_0x5656e8(0x11c)][_0x5656e8(0xe9)]:this[_0x5656e8(0xcc)](_0x52c93c);break;}}));}[_0x560ecb(0x101)](){var _0x4a8913=_0x560ecb;this[_0x4a8913(0x14e)]['send']({'eventID':_[_0x4a8913(0x11c)][_0x4a8913(0x16b)],'data':{'unitID':this['_unitID'],'userID':this[_0x4a8913(0x14e)][_0x4a8913(0x193)]()}},this[_0x4a8913(0x11a)]);}[_0x560ecb(0x177)](){var _0x4b6ffa=_0x560ecb;this[_0x4b6ffa(0xda)]===_0x4b6ffa(0x16c)&&(this[_0x4b6ffa(0x145)][_0x4b6ffa(0x18a)](_0x4b6ffa(0xcd)),this['_collabSession'][_0x4b6ffa(0x116)]({'eventID':_[_0x4b6ffa(0x11c)][_0x4b6ffa(0x198)],'data':{'unitID':this[_0x4b6ffa(0x11a)]}},this['_unitID']));}[_0x560ecb(0x10a)](){var _0x5a23be=_0x560ecb;this['_status']===_0x5a23be(0x14f)&&(this[_0x5a23be(0x145)][_0x5a23be(0x18a)](_0x5a23be(0x169)),this['_startFollowing']());}[_0x560ecb(0x15a)](){var _0x1e4e42=_0x560ecb;this['_status']===_0x1e4e42(0x169)&&this['_stopFollowing']();}[_0x560ecb(0x130)](_0x1d9cca){var _0x259a70=_0x560ecb;const {presenter:_0x47d276}=_0x1d9cca[_0x259a70(0xf5)],_0x3d4b98=this[_0x259a70(0x14e)][_0x259a70(0x193)]();this[_0x259a70(0x179)]=_0x47d276,_0x47d276===_0x3d4b98?(this[_0x259a70(0x13f)](),this[_0x259a70(0x12b)]()):this['_status']!==_0x259a70(0x14f)&&(this[_0x259a70(0x1a3)](),this[_0x259a70(0xe8)]());}['_fetchOperations'](){var _0x1913f4=_0x560ecb;const _0x8ffd99={'eventID':_[_0x1913f4(0x11c)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x1913f4(0x14e)][_0x1913f4(0x116)](_0x8ffd99,this[_0x1913f4(0x11a)]);}['_handleTerminate'](){var _0x146fdf=_0x560ecb;this[_0x146fdf(0x179)]=null,this[_0x146fdf(0xda)]!==_0x146fdf(0x16c)&&this[_0x146fdf(0x157)]();}[_0x560ecb(0xcc)](_0x39bff2){var _0x16d2f0=_0x560ecb;if(this[_0x16d2f0(0xda)]===_0x16d2f0(0x169)&&this[_0x16d2f0(0x179)]===_0x39bff2['data'][_0x16d2f0(0x11e)]){const _0x5824a7=_['parseProtocolChangeset'](_0x39bff2['data'])['mutations'][_0x16d2f0(0x12d)]()[_0x16d2f0(0x15d)](_0x12eaff=>_0x12eaff['id']===C['InsertSheetMutation']['id']);if(_0x5824a7){const _0x15b274=_0x5824a7['params'][_0x16d2f0(0x164)],_0x2e7051=_0x5824a7[_0x16d2f0(0xf1)][_0x16d2f0(0x197)]['id'];setTimeout(()=>{var _0x83efac=_0x16d2f0;this[_0x83efac(0xfe)][_0x83efac(0xe7)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x15b274,'subUnitId':_0x2e7051},{'fromCollab':!0x0});});}}}[_0x560ecb(0x12b)](){var _0x358f1d=_0x560ecb;this[_0x358f1d(0x145)]['next'](_0x358f1d(0x16c));const _0x1d0782=new Map(),_0x22f761=this['_commandDisposable']=new o[(_0x358f1d(0xf0))]();_0x22f761['add'](o[_0x358f1d(0x1ab)](()=>{var _0x5ee38d=_0x358f1d;_0x1d0782['forEach'](_0x14b614=>_0x14b614[_0x5ee38d(0x163)]()),_0x1d0782['clear']();})),_0x22f761[_0x358f1d(0x133)](this[_0x358f1d(0xfe)][_0x358f1d(0x12a)](_0x2c59a9=>{var _0x3b3ea3=_0x358f1d,_0x474128;if(_0x2c59a9[_0x3b3ea3(0xd7)]!==o[_0x3b3ea3(0x159)][_0x3b3ea3(0xf3)]||!this['_liveShareService'][_0x3b3ea3(0xf4)](_0x2c59a9['id']))return;const {id:_0x282fea}=_0x2c59a9;let _0x5384d1;_0x1d0782[_0x3b3ea3(0x174)](_0x282fea)?_0x5384d1=_0x1d0782['get'](_0x282fea):(_0x5384d1=new D[(_0x3b3ea3(0x12e))](),_0x1d0782['set'](_0x282fea,_0x5384d1),_0x5384d1[_0x3b3ea3(0x19d)](b[_0x3b3ea3(0xec)]((_0x474128=this[_0x3b3ea3(0x18f)][_0x3b3ea3(0xe3)](Z))!=null?_0x474128:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x23914a=>{var _0x4d11f0=_0x3b3ea3;this['_collabSession']['send']({'eventID':_[_0x4d11f0(0x11c)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4d11f0(0x11a)],'operations':{[_0x23914a['id']]:{'id':_0x23914a['id'],'params':JSON[_0x4d11f0(0x14c)](_0x23914a[_0x4d11f0(0xf1)])}}}},this[_0x4d11f0(0x11a)]);})),_0x5384d1['next'](_0x2c59a9);})),this[_0x358f1d(0x139)][_0x358f1d(0x129)](this['_unitID'])['forEach'](_0x18d598=>this[_0x358f1d(0x14e)][_0x358f1d(0x116)]({'eventID':_[_0x358f1d(0x11c)][_0x358f1d(0x135)],'data':{'unitID':this[_0x358f1d(0x11a)],'operations':{[_0x18d598['id']]:{'id':_0x18d598['id'],'params':JSON[_0x358f1d(0x14c)](_0x18d598[_0x358f1d(0xf1)])}}}},this[_0x358f1d(0x11a)]));}[_0x560ecb(0x1a3)](){var _0x489c04=_0x560ecb,_0x563f22;this[_0x489c04(0x145)][_0x489c04(0x18a)](_0x489c04(0xcd)),(_0x563f22=this[_0x489c04(0x182)])==null||_0x563f22[_0x489c04(0x16a)](),this[_0x489c04(0x182)]=null;}['_startFollowing'](){var _0x1b335a=_0x560ecb,_0x2e9f9b;(_0x2e9f9b=this[_0x1b335a(0x182)])==null||_0x2e9f9b[_0x1b335a(0x16a)](),this['_status$']['next'](_0x1b335a(0x169));}[_0x560ecb(0x157)](){var _0x4ea1ea=_0x560ecb,_0x557265;this[_0x4ea1ea(0x145)][_0x4ea1ea(0x18a)](_0x4ea1ea(0xcd)),(_0x557265=this[_0x4ea1ea(0x182)])==null||_0x557265['dispose'](),this[_0x4ea1ea(0x182)]=null;}['_stopFollowing'](){var _0x39e96c=_0x560ecb,_0x185607;this[_0x39e96c(0x145)][_0x39e96c(0x18a)](_0x39e96c(0x14f)),(_0x185607=this[_0x39e96c(0x182)])==null||_0x185607[_0x39e96c(0x16a)]();}[_0x560ecb(0x15f)](_0x2de3a9){var _0x4b7ae7=_0x560ecb;if([_0x4b7ae7(0x16c),_0x4b7ae7(0x14f),_0x4b7ae7(0xce)][_0x4b7ae7(0x194)](this[_0x4b7ae7(0xda)])||!_0x2de3a9[_0x4b7ae7(0xf5)][_0x4b7ae7(0xc8)]||_0x2de3a9[_0x4b7ae7(0xf5)][_0x4b7ae7(0xc8)]===this[_0x4b7ae7(0x14e)][_0x4b7ae7(0x193)]())return;this['_status']===_0x4b7ae7(0xcd)&&this[_0x4b7ae7(0xe8)]();const _0x2a0b80=_0x2de3a9[_0x4b7ae7(0xf5)][_0x4b7ae7(0x162)];Object[_0x4b7ae7(0x122)](_0x2a0b80)[_0x4b7ae7(0xc6)](_0x3f1a6b=>{var _0xf0d6f7=_0x4b7ae7;this['_commandService'][_0xf0d6f7(0xe7)](_0x3f1a6b['id'],_0x3f1a6b['params']?JSON[_0xf0d6f7(0x190)](_0x3f1a6b[_0xf0d6f7(0xf1)]):null,{'fromCollab':!0x0});});}[_0x560ecb(0xe0)](){var _0x2582d1=_0x560ecb,_0x2c563e;this[_0x2582d1(0x145)][_0x2582d1(0x18a)](_0x2582d1(0xce)),(_0x2c563e=this[_0x2582d1(0x182)])==null||_0x2c563e[_0x2582d1(0x16a)]();}[_0x560ecb(0xd8)](){var _0x33445f=_0x560ecb;this[_0x33445f(0x145)][_0x33445f(0x18a)](_0x33445f(0xcd)),this[_0x33445f(0x115)]();}},exports[_0x560ecb(0x11d)]=R([S(0x2,o[_0x560ecb(0x111)]),S(0x3,o[_0x560ecb(0x125)](O)),S(0x4,o[_0x560ecb(0x106)])],exports['LiveShareCoordinator']);function A(){var _0x3b3d15=_0x560ecb;const _0x12b7c8=p[_0x3b3d15(0x171)](exports[_0x3b3d15(0x117)]),_0x177c48=p[_0x3b3d15(0x171)](o[_0x3b3d15(0x153)]),_0x22586e=p[_0x3b3d15(0x127)](()=>_0x177c48[_0x3b3d15(0x184)](o[_0x3b3d15(0xea)][_0x3b3d15(0x195)]),void 0x0,!0x1,[]),[_0x533a07,_0x38b393]=f[_0x3b3d15(0x181)](null),[_0x47ce47,_0x5dd7b1]=f[_0x3b3d15(0x181)](h['IDLE']),_0x3d6908=f[_0x3b3d15(0xc4)](null);return f['useEffect'](()=>(_0x22586e&&_0x12b7c8['getLiveShareCoordinator'](_0x22586e['getUnitId']())[_0x3b3d15(0x142)](_0x5a36de=>{var _0x4bea71=_0x3b3d15;_0x38b393(_0x5a36de),_0x3d6908['current']=_0x5a36de[_0x4bea71(0x147)][_0x4bea71(0xe2)](_0x34fc9d=>{_0x5dd7b1(_0x34fc9d);});}),()=>{var _0x12b94c=_0x3b3d15,_0x4bba31;(_0x4bba31=_0x3d6908[_0x12b94c(0x103)])==null||_0x4bba31[_0x12b94c(0x11f)](),_0x3d6908['current']=null;}),[_0x22586e,_0x12b7c8]),_0x533a07?l[_0x3b3d15(0x18b)](g[_0x3b3d15(0x165)],{'align':_0x3b3d15(0x15c),'disabled':_0x47ce47===h[_0x3b3d15(0x17a)],'className':_0x3b3d15(0x121),'overlay':l['jsx'](K,{'status':_0x47ce47,'coordinator':_0x533a07}),'children':l['jsx'](_0x3b3d15(0xff),{'className':g[_0x3b3d15(0x126)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x47ce47===h[_0x3b3d15(0x17a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47ce47!==h[_0x3b3d15(0x17a)]}),'type':_0x3b3d15(0xff),'children':l['jsx'](P,{'className':_0x3b3d15(0x199)})})}):null;}function K(_0x3441e0){var _0x3859bc=_0x560ecb;const {status:_0x30320b,coordinator:_0x520a1d}=_0x3441e0;switch(_0x30320b){case h[_0x3859bc(0x14d)]:return l[_0x3859bc(0x18b)](z,{'coordinator':_0x520a1d});case h[_0x3859bc(0x12f)]:return l[_0x3859bc(0x18b)](Q,{'coordinator':_0x520a1d});case h[_0x3859bc(0x14a)]:return l[_0x3859bc(0x18b)](X,{'coordinator':_0x520a1d});case h['OFFLINE']:return l['jsx'](te,{});case h['PRESENTING']:return l['jsx'](ee,{'coordinator':_0x520a1d});default:return null;}}function z(_0x37e2c8){var _0x394f87=_0x560ecb;const {coordinator:_0x492e21}=_0x37e2c8;return l[_0x394f87(0x13b)](l['Fragment'],{'children':[l[_0x394f87(0x18b)](_0x394f87(0x183),{'className':_0x394f87(0x13e),'children':_0x394f87(0x109)}),l['jsx'](g[_0x394f87(0xc9)],{'onClick':()=>_0x492e21['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x1ae538){var _0x1129f2=_0x560ecb;const {coordinator:_0xaf25ce}=_0x1ae538;return l[_0x1129f2(0x13b)](l[_0x1129f2(0x10d)],{'children':[l[_0x1129f2(0x18b)]('div',{'className':_0x1129f2(0x13e),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](g[_0x1129f2(0xc9)],{'onClick':()=>_0xaf25ce['stopFollowing'](),'children':'Stop\x20following'})]});}function X(_0x2a0f55){var _0x3f3c65=_0x560ecb;const {coordinator:_0x434ff9}=_0x2a0f55;return l[_0x3f3c65(0x13b)](l[_0x3f3c65(0x10d)],{'children':[l[_0x3f3c65(0x18b)](_0x3f3c65(0x183),{'className':_0x3f3c65(0x13e),'children':_0x3f3c65(0x1a1)}),l[_0x3f3c65(0x18b)](g[_0x3f3c65(0xc9)],{'variant':_0x3f3c65(0x149),'onClick':()=>_0x434ff9[_0x3f3c65(0x10a)](),'children':_0x3f3c65(0xed)})]});}function ee(_0x2d38c0){var _0xc953d8=_0x560ecb;const {coordinator:_0x31e46f}=_0x2d38c0;return l[_0xc953d8(0x13b)](l[_0xc953d8(0x10d)],{'children':[l[_0xc953d8(0x18b)]('div',{'className':_0xc953d8(0x13e),'children':_0xc953d8(0x1aa)}),l[_0xc953d8(0x18b)](g['Button'],{'variant':_0xc953d8(0x138),'onClick':()=>_0x31e46f[_0xc953d8(0x177)](),'children':'Stop\x20presenting'})]});}function te(){var _0x9300bb=_0x560ecb;return l[_0x9300bb(0x18b)](l[_0x9300bb(0x10d)],{'children':_0x9300bb(0x141)});}var ie=Object[_0x560ecb(0x154)],ne=(_0x44d3f6,_0x2eb0d1,_0x2f3c14,_0x3ec979)=>{var _0x304600=_0x560ecb;for(var _0x28d39d=_0x3ec979>0x1?void 0x0:_0x3ec979?ie(_0x2eb0d1,_0x2f3c14):_0x2eb0d1,_0xa94af0=_0x44d3f6[_0x304600(0x188)]-0x1,_0x4e314e;_0xa94af0>=0x0;_0xa94af0--)(_0x4e314e=_0x44d3f6[_0xa94af0])&&(_0x28d39d=_0x4e314e(_0x28d39d)||_0x28d39d);return _0x28d39d;},L=(_0x38b9b8,_0x958be0)=>(_0x428efd,_0x16cb97)=>_0x958be0(_0x428efd,_0x16cb97,_0x38b9b8);exports[_0x560ecb(0xf2)]=class extends o[_0x560ecb(0x178)]{constructor(_0x5280f6,_0x4a1ff8){var _0x109327=_0x560ecb;super(),this[_0x109327(0x158)]=_0x5280f6,this['_uiPartsService']=_0x4a1ff8,this[_0x109327(0x102)]();}['_mountLiveShare'](){var _0x4417eb=_0x560ecb;this[_0x4417eb(0x119)](this[_0x4417eb(0x13d)][_0x4417eb(0xd1)](p[_0x4417eb(0xee)][_0x4417eb(0x175)],()=>p[_0x4417eb(0x13c)](A,this[_0x4417eb(0x158)])));}},exports[_0x560ecb(0xf2)]=ne([L(0x0,o[_0x560ecb(0x125)](o[_0x560ecb(0xc5)])),L(0x1,p[_0x560ecb(0xd3)])],exports[_0x560ecb(0xf2)]);var re=Object[_0x560ecb(0x104)],se=Object['getOwnPropertyDescriptor'],oe=(_0x3e7979,_0x3b2e12,_0x4cf5d3)=>_0x3b2e12 in _0x3e7979?re(_0x3e7979,_0x3b2e12,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4cf5d3}):_0x3e7979[_0x3b2e12]=_0x4cf5d3,ae=(_0x18f8a8,_0xacc881,_0x524366,_0x498207)=>{for(var _0x18aadd=_0x498207>0x1?void 0x0:_0x498207?se(_0xacc881,_0x524366):_0xacc881,_0x1ef2fd=_0x18f8a8['length']-0x1,_0x4533aa;_0x1ef2fd>=0x0;_0x1ef2fd--)(_0x4533aa=_0x18f8a8[_0x1ef2fd])&&(_0x18aadd=_0x4533aa(_0x18aadd)||_0x18aadd);return _0x18aadd;},N=(_0x37e6af,_0x1b633f)=>(_0x1e87ae,_0x2be095)=>_0x1b633f(_0x1e87ae,_0x2be095,_0x37e6af),T=(_0x401c4f,_0x1973cc,_0x46bfd6)=>oe(_0x401c4f,typeof _0x1973cc!=_0x560ecb(0xf7)?_0x1973cc+'':_0x1973cc,_0x46bfd6);const le=_0x560ecb(0x19f);exports[_0x560ecb(0xfa)]=class extends o[_0x560ecb(0x150)]{constructor(_0x5e1d5e=x,_0x1eaef3,_0x568d11){var _0x23bcf6=_0x560ecb;super(),this[_0x23bcf6(0x10b)]=_0x5e1d5e,this[_0x23bcf6(0x158)]=_0x1eaef3,this[_0x23bcf6(0x18f)]=_0x568d11;const {..._0xadcd8a}=o['merge']({},x,this['_config']);this['_configService']['setConfig']($,_0xadcd8a);}[_0x560ecb(0x131)](){var _0x67ca3e=_0x560ecb;o['registerDependencies'](this[_0x67ca3e(0x158)],o['mergeOverrideWithDependencies']([[O],[exports[_0x67ca3e(0x117)]],[E],[exports[_0x67ca3e(0xf2)]]],this['_config'][_0x67ca3e(0x148)])),o[_0x67ca3e(0x152)](this[_0x67ca3e(0x158)],[[E]]);}[_0x560ecb(0xcf)](){var _0x2784f1=_0x560ecb;o[_0x2784f1(0x152)](this[_0x2784f1(0x158)],[[exports[_0x2784f1(0xf2)]]]);}},T(exports['UniverLiveSharePlugin'],'type',o['UniverInstanceType'][_0x560ecb(0x18e)]),T(exports[_0x560ecb(0xfa)],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o[_0x560ecb(0xf6)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x560ecb(0x125)](o[_0x560ecb(0xc5)])),N(0x2,o[_0x560ecb(0x111)])],exports[_0x560ecb(0xfa)]),exports[_0x560ecb(0xd5)]=A,exports[_0x560ecb(0x1a2)]=O,exports[_0x560ecb(0x16f)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x3eb66f=_0xaf36;(function(_0x24bffa,_0x48a22d){var _0x44bc06=_0xaf36,_0xadd4dc=_0x24bffa();while(!![]){try{var _0x1ea307=parseInt(_0x44bc06(0x118))/0x1*(parseInt(_0x44bc06(0x195))/0x2)+-parseInt(_0x44bc06(0x16c))/0x3+parseInt(_0x44bc06(0x196))/0x4+-parseInt(_0x44bc06(0x14c))/0x5+parseInt(_0x44bc06(0x11f))/0x6+parseInt(_0x44bc06(0x125))/0x7*(-parseInt(_0x44bc06(0x102))/0x8)+parseInt(_0x44bc06(0x185))/0x9;if(_0x1ea307===_0x48a22d)break;else _0xadd4dc['push'](_0xadd4dc['shift']());}catch(_0x2666aa){_0xadd4dc['push'](_0xadd4dc['shift']());}}}(_0x59c0,0xb71bb));var q=Object[_0x3eb66f(0x10a)],z=(_0x59cb9d,_0x39743b,_0xdc1b55)=>_0x39743b in _0x59cb9d?q(_0x59cb9d,_0x39743b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdc1b55}):_0x59cb9d[_0x39743b]=_0xdc1b55,d=(_0xd68d5f,_0x5d7255,_0x134a70)=>z(_0xd68d5f,typeof _0x5d7255!=_0x3eb66f(0x15b)?_0x5d7255+'':_0x5d7255,_0x134a70);import{CollaborationSessionService as _0x1b8367,SessionStatus as _0x39791d,UniverCollaborationClientPlugin as _0x26cab8}from'@univerjs-pro/collaboration-client';import{Disposable as _0x28094d,toDisposable as _0x56fa4e,Inject as _0x3f84a3,IUniverInstanceService as _0x516a71,Injector as _0x15d8b5,IConfigService as _0x314f53,ICommandService as _0x39ff78,RxDisposable as _0x2968d7,UniverInstanceType as _0x58c155,DisposableCollection as _0x22943b,CommandType as _0x50cabc,DependentOn as _0x419c79,Plugin as _0x47a77d,merge as _0x1f5ca3,registerDependencies as _0x1df7a9,mergeOverrideWithDependencies as _0x227802,touchDependencies as _0x4f8b46}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3b7bd5,InsertSheetMutation as _0x2a9f7c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x22565f,SetScrollOperation as _0x1c3c05}from'@univerjs/sheets-ui';import{useDependency as _0x318ee9,useObservable as _0x394850,IUIPartsService as _0x326cbf,BuiltInUIPart as _0x45e07f,connectInjector as _0x67a89}from'@univerjs/ui';import{jsx as _0x317f25,jsxs as _0x387033,Fragment as _0xcbf086}from'react/jsx-runtime';import{Dropdown as _0x11722c,clsx as _0x81ab49,Button as _0x29954b}from'@univerjs/design';import{forwardRef as _0x33acf1,useRef as _0x3891b2,createElement as _0x5c13bc,useState as _0xd7af93,useEffect as _0x59b4f4}from'react';import{CollaborationEvent as _0x40c637,parseProtocolChangeset as _0x4c17bf}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x22c326,Subject as _0x4a1280}from'rxjs';function _0xaf36(_0x509563,_0x237477){var _0x59c0c3=_0x59c0();return _0xaf36=function(_0xaf3622,_0x5241e9){_0xaf3622=_0xaf3622-0x100;var _0x520cd9=_0x59c0c3[_0xaf3622];return _0x520cd9;},_0xaf36(_0x509563,_0x237477);}function _0x59c0(){var _0x40178f=['9165863puziSU','not-following','LIVESHARE_TERMINATE','indexOf','UNIVER_SHEET','path','xlink:href','use','tryStartPresenting','pluginName','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','mask','_status$','_mountLiveShare','function','colorChannel1','FOLLOWING','event$','text','getMemberID','_unitID','hasOwnProperty','getConfig','_handleTerminate','getValue','Start\x20following','status$','_injector','unsubscribe','div','getLiveShareCoordinator','children','getOwnPropertySymbols','LIVESHARE_FETCH_OPERATIONS','icon','toString','OFFLINE','type','You\x27are\x20offline.','3807035vbYxKl','get','_stopFollowing','delete','_univerInstanceService','trim','You\x27re\x20not\x20following\x20the\x20presenter','next','Stop\x20presenting','entries','concat','parse','dispose','registerSharedOperation','_commandDisposable','symbol','map','PRESENTING','_startFollowing','_liveShareService','stopFollowing','getUnitId','_stopPresenting','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','evenodd','UNIVER_UNKNOWN','IDLE','defIds','svg','replace','univer-w-full\x20univer-mb-3\x20univer-text-sm','following','1092006djtKtZ','_fetchOperations','complete','You\x27re\x20following\x20the\x20presenter','_handleOperation','_presenter','dispose$','send','_handleNewHost','sessionStatus$','tag','onStarting','0\x200\x2017\x2017','_reporters','displayName','getTypeOfUnitAdded$','asObservable','http://www.w3.org/2000/svg','_startPresenting','getInitialStates','LIVESHARE_OPERATION','shouldShareOperation','subscribe','disposeWithMe','has','2694780ifHsJH','currentColor','operations','_handleOffline','getTypeOfUnitDisposed$','_status','attrs','unitId','NOT_FOLLOWING','idle','live-share.config','univer-size-4','_uiPartsService','registerComponent','assign','className','1892318vsNcDN','4099936nHSwvN','button','presenting','fill','memberID','_init','_entities','_config','registerInitialStateReporter','presenter','createInstance','from','startFollowing','length','stopPresenting','OPERATION','HEADER_MENU','offline','executeCommand','includes','default','string','8MxjwOj','_sharedOperations','url(#$1','_startLiveShareCoordinator','requireSession','params','UNIVER_LIVE_SHARE_PLUGIN','_commandService','defineProperty','_handleOnline','call','set','data','Start','random','univerjs-icon\x20univerjs-icon-','_handleNewChangeSets','setConfig','_collabSession','forEach','idSuffix','getOwnPropertyDescriptor','1ruDppF','stringify','init','_configService','pipe','add','1em','5485596ykxVvK','prototype','_collabSessionService','defs','current','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'];_0x59c0=function(){return _0x40178f;};return _0x59c0();}import{takeUntil as _0x64489,throttleTime as _0x1cb448}from'rxjs/operators';const Oe=_0x3eb66f(0x18f),T={};class L extends _0x28094d{constructor(){var _0x2460f1=_0x3eb66f;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x2460f1(0x179),new Set());}[_0x3eb66f(0x159)](_0x465716){var _0xffa05f=_0x3eb66f;return this[_0xffa05f(0x103)][_0xffa05f(0x11d)](_0x465716),_0x56fa4e(()=>this[_0xffa05f(0x103)][_0xffa05f(0x14f)](_0x465716));}[_0x3eb66f(0x19e)](_0xe08eaa){var _0x5d5a16=_0x3eb66f;return this[_0x5d5a16(0x179)][_0x5d5a16(0x11d)](_0xe08eaa),_0x56fa4e(()=>this['_reporters'][_0x5d5a16(0x14f)](_0xe08eaa));}[_0x3eb66f(0x181)](_0x3640ae){var _0x44c344=_0x3eb66f;return this[_0x44c344(0x103)]['has'](_0x3640ae);}[_0x3eb66f(0x17f)](_0x130761){var _0x40ab2f=_0x3eb66f;return Array[_0x40ab2f(0x1a1)](this[_0x40ab2f(0x179)])[_0x40ab2f(0x15c)](_0x14bbfb=>_0x14bbfb(_0x130761));}}var Ee=Object[_0x3eb66f(0x117)],we=(_0x547a73,_0x4abe3f,_0x24a2f9,_0x20d92a)=>{var _0x126fbd=_0x3eb66f;for(var _0x566479=_0x20d92a>0x1?void 0x0:_0x20d92a?Ee(_0x4abe3f,_0x24a2f9):_0x4abe3f,_0x132d91=_0x547a73[_0x126fbd(0x1a3)]-0x1,_0x17fc56;_0x132d91>=0x0;_0x132d91--)(_0x17fc56=_0x547a73[_0x132d91])&&(_0x566479=_0x17fc56(_0x566479)||_0x566479);return _0x566479;},Ne=(_0x44562a,_0x59caee)=>(_0x37ca82,_0x13bee0)=>_0x59caee(_0x37ca82,_0x13bee0,_0x44562a);let m=class extends _0x28094d{constructor(_0x5ad8d4){var _0x331d83=_0x3eb66f;super(),this[_0x331d83(0x15f)]=_0x5ad8d4,this[_0x331d83(0x19b)]();}['_init'](){var _0x10c4bc=_0x3eb66f;[_0x22565f['id'],_0x1c3c05['id'],_0x3b7bd5['id']][_0x10c4bc(0x115)](_0x3b68c5=>{var _0x138e3b=_0x10c4bc;this[_0x138e3b(0x183)](this['_liveShareService'][_0x138e3b(0x159)](_0x3b68c5));});}};m=we([Ne(0x0,_0x3f84a3(L))],m);var c=function(){var _0x264bf1=_0x3eb66f;return c=Object[_0x264bf1(0x193)]||function(_0x1729ff){var _0x4dfda6=_0x264bf1;for(var _0x36d04a,_0x34fa1b=0x1,_0x82953b=arguments[_0x4dfda6(0x1a3)];_0x34fa1b<_0x82953b;_0x34fa1b++){_0x36d04a=arguments[_0x34fa1b];for(var _0x93544f in _0x36d04a)Object[_0x4dfda6(0x120)][_0x4dfda6(0x13a)][_0x4dfda6(0x10c)](_0x36d04a,_0x93544f)&&(_0x1729ff[_0x93544f]=_0x36d04a[_0x93544f]);}return _0x1729ff;},c['apply'](this,arguments);},Ce=function(_0x45a122,_0x493b35){var _0x11f1e8=_0x3eb66f,_0x5ca805={};for(var _0x1ae2a4 in _0x45a122)Object['prototype'][_0x11f1e8(0x13a)][_0x11f1e8(0x10c)](_0x45a122,_0x1ae2a4)&&_0x493b35[_0x11f1e8(0x128)](_0x1ae2a4)<0x0&&(_0x5ca805[_0x1ae2a4]=_0x45a122[_0x1ae2a4]);if(_0x45a122!=null&&typeof Object[_0x11f1e8(0x145)]==_0x11f1e8(0x133)){for(var _0xb1b3a1=0x0,_0x1ae2a4=Object['getOwnPropertySymbols'](_0x45a122);_0xb1b3a1<_0x1ae2a4[_0x11f1e8(0x1a3)];_0xb1b3a1++)_0x493b35[_0x11f1e8(0x128)](_0x1ae2a4[_0xb1b3a1])<0x0&&Object[_0x11f1e8(0x120)]['propertyIsEnumerable'][_0x11f1e8(0x10c)](_0x45a122,_0x1ae2a4[_0xb1b3a1])&&(_0x5ca805[_0x1ae2a4[_0xb1b3a1]]=_0x45a122[_0x1ae2a4[_0xb1b3a1]]);}return _0x5ca805;},W=_0x33acf1(function(_0x4ebfab,_0x4cd491){var _0x4a0548=_0x3eb66f,_0x110929=_0x4ebfab['icon'],_0x116ffe=_0x4ebfab['id'],_0x22281a=_0x4ebfab['className'],_0x23edd6=_0x4ebfab['extend'],_0x379481=Ce(_0x4ebfab,[_0x4a0548(0x147),'id',_0x4a0548(0x194),'extend']),_0x3c434a=_0x4a0548(0x111)[_0x4a0548(0x156)](_0x116ffe,'\x20')[_0x4a0548(0x156)](_0x22281a||'')[_0x4a0548(0x151)](),_0x293f41=_0x3891b2('_'[_0x4a0548(0x156)](Le()));return Y(_0x110929,''[_0x4a0548(0x156)](_0x116ffe),{'defIds':_0x110929[_0x4a0548(0x167)],'idSuffix':_0x293f41[_0x4a0548(0x123)]},c({'ref':_0x4cd491,'className':_0x3c434a},_0x379481),_0x23edd6);});function Y(_0x561962,_0x416939,_0x5b956a,_0x38f1d3,_0x270928){var _0x3a3dee=_0x3eb66f;return _0x5c13bc(_0x561962['tag'],c(c({'key':_0x416939},De(_0x561962,_0x5b956a,_0x270928)),_0x38f1d3),(xe(_0x561962,_0x5b956a)[_0x3a3dee(0x144)]||[])['map'](function(_0x5d28b7,_0x13d91d){var _0x460642=_0x3a3dee;return Y(_0x5d28b7,''[_0x460642(0x156)](_0x416939,'-')[_0x460642(0x156)](_0x561962[_0x460642(0x176)],'-')[_0x460642(0x156)](_0x13d91d),_0x5b956a,void 0x0,_0x270928);}));}function De(_0x18d6f1,_0x2806a0,_0x162d92){var _0x149b4b=_0x3eb66f,_0x2dcbad=c({},_0x18d6f1[_0x149b4b(0x18b)]);_0x162d92!=null&&_0x162d92[_0x149b4b(0x134)]&&_0x2dcbad[_0x149b4b(0x199)]==='colorChannel1'&&(_0x2dcbad[_0x149b4b(0x199)]=_0x162d92[_0x149b4b(0x134)]),_0x18d6f1[_0x149b4b(0x176)]==='mask'&&_0x2dcbad['id']&&(_0x2dcbad['id']=_0x2dcbad['id']+_0x2806a0[_0x149b4b(0x116)]),Object[_0x149b4b(0x155)](_0x2dcbad)[_0x149b4b(0x115)](function(_0x53c51a){var _0x29834c=_0x149b4b,_0x208bcf=_0x53c51a[0x0],_0x9fe15c=_0x53c51a[0x1];_0x208bcf===_0x29834c(0x130)&&typeof _0x9fe15c==_0x29834c(0x101)&&(_0x2dcbad[_0x208bcf]=_0x9fe15c[_0x29834c(0x169)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2806a0[_0x29834c(0x116)],')')));});var _0x5ca4b2=_0x2806a0['defIds'];return!_0x5ca4b2||_0x5ca4b2[_0x149b4b(0x1a3)]===0x0||(_0x18d6f1[_0x149b4b(0x176)]===_0x149b4b(0x12c)&&_0x2dcbad[_0x149b4b(0x12b)]&&(_0x2dcbad[_0x149b4b(0x12b)]=_0x2dcbad[_0x149b4b(0x12b)]+_0x2806a0['idSuffix']),Object[_0x149b4b(0x155)](_0x2dcbad)[_0x149b4b(0x115)](function(_0x54a16b){var _0x70d968=_0x149b4b,_0x39beda=_0x54a16b[0x0],_0x16a7f2=_0x54a16b[0x1];typeof _0x16a7f2==_0x70d968(0x101)&&(_0x2dcbad[_0x39beda]=_0x16a7f2[_0x70d968(0x169)](/url\(#(.*)\)/,_0x70d968(0x104)['concat'](_0x2806a0[_0x70d968(0x116)],')')));})),_0x2dcbad;}function xe(_0x34c4d2,_0x13d914){var _0x5e7632=_0x3eb66f,_0x1b3355,_0x472dc8=_0x13d914[_0x5e7632(0x167)];return!_0x472dc8||_0x472dc8['length']===0x0?_0x34c4d2:_0x34c4d2[_0x5e7632(0x176)]===_0x5e7632(0x122)&&(!((_0x1b3355=_0x34c4d2[_0x5e7632(0x144)])===null||_0x1b3355===void 0x0)&&_0x1b3355[_0x5e7632(0x1a3)])?c(c({},_0x34c4d2),{'children':_0x34c4d2[_0x5e7632(0x144)][_0x5e7632(0x15c)](function(_0x3b9116){var _0x200a7a=_0x5e7632;return typeof _0x3b9116[_0x200a7a(0x18b)]['id']=='string'&&_0x472dc8&&_0x472dc8[_0x200a7a(0x1a9)](_0x3b9116[_0x200a7a(0x18b)]['id'])?c(c({},_0x3b9116),{'attrs':c(c({},_0x3b9116[_0x200a7a(0x18b)]),{'id':_0x3b9116[_0x200a7a(0x18b)]['id']+_0x13d914[_0x200a7a(0x116)]})}):_0x3b9116;})}):_0x34c4d2;}function Le(){var _0x2323be=_0x3eb66f;return Math[_0x2323be(0x110)]()[_0x2323be(0x148)](0x24)['substring'](0x2,0x8);}W[_0x3eb66f(0x17a)]='UniverIcon';var ye={'tag':_0x3eb66f(0x168),'attrs':{'xmlns':_0x3eb66f(0x17d),'fill':'none','viewBox':_0x3eb66f(0x178),'width':_0x3eb66f(0x11e),'height':'1em'},'children':[{'tag':_0x3eb66f(0x12a),'attrs':{'fill':_0x3eb66f(0x186),'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':_0x3eb66f(0x186),'d':_0x3eb66f(0x12f),'fillRule':_0x3eb66f(0x164),'clipRule':'evenodd'}}]},B=_0x33acf1(function(_0x1b4209,_0x447a32){return _0x5c13bc(W,Object['assign']({},_0x1b4209,{'id':'live-share-icon','ref':_0x447a32,'icon':ye}));});B[_0x3eb66f(0x17a)]='LiveShareIcon';var Re=Object[_0x3eb66f(0x117)],Z=(_0xa5b805,_0x216d71,_0x28e6ff,_0x58feb7)=>{var _0x80a609=_0x3eb66f;for(var _0x1fada2=_0x58feb7>0x1?void 0x0:_0x58feb7?Re(_0x216d71,_0x28e6ff):_0x216d71,_0x304dd2=_0xa5b805[_0x80a609(0x1a3)]-0x1,_0x14e103;_0x304dd2>=0x0;_0x304dd2--)(_0x14e103=_0xa5b805[_0x304dd2])&&(_0x1fada2=_0x14e103(_0x1fada2)||_0x1fada2);return _0x1fada2;},f=(_0x2e5c93,_0x4eaa7)=>(_0x3b602f,_0x474e19)=>_0x4eaa7(_0x3b602f,_0x474e19,_0x2e5c93);let I=class extends _0x2968d7{constructor(_0x191f88,_0x980a71,_0x160263){var _0x43201a=_0x3eb66f;super(),d(this,_0x43201a(0x19c),new Map()),(this[_0x43201a(0x150)]=_0x191f88,this['_injector']=_0x980a71,this[_0x43201a(0x121)]=_0x160263,this[_0x43201a(0x19b)]());}async['getLiveShareCoordinator'](_0x644c2b){var _0x1dfabd=_0x3eb66f;return this[_0x1dfabd(0x19c)][_0x1dfabd(0x184)](_0x644c2b)||await this[_0x1dfabd(0x105)](_0x644c2b),this[_0x1dfabd(0x19c)][_0x1dfabd(0x14d)](_0x644c2b);}['_init'](){var _0x2e9506=_0x3eb66f;this[_0x2e9506(0x150)][_0x2e9506(0x17b)](_0x58c155[_0x2e9506(0x129)])[_0x2e9506(0x11c)](_0x64489(this[_0x2e9506(0x172)]))[_0x2e9506(0x182)](async _0x425593=>{var _0x4945d4=_0x2e9506;const _0x1d9035=_0x425593[_0x4945d4(0x161)]();this['_entities'][_0x4945d4(0x184)](_0x1d9035)||this[_0x4945d4(0x105)](_0x1d9035);}),this[_0x2e9506(0x150)][_0x2e9506(0x189)](_0x58c155[_0x2e9506(0x129)])[_0x2e9506(0x11c)](_0x64489(this['dispose$']))[_0x2e9506(0x182)](_0x515a74=>{var _0x4a7a1c=_0x2e9506;const _0x26e7f1=_0x515a74[_0x4a7a1c(0x161)](),_0x1dc535=this['_entities']['get'](_0x26e7f1);_0x1dc535==null||_0x1dc535['dispose']();});}async[_0x3eb66f(0x105)](_0x37258e){var _0x2d09bf=_0x3eb66f;const _0x53f0ba=await this[_0x2d09bf(0x121)][_0x2d09bf(0x106)](_0x37258e),_0x287bf8=this[_0x2d09bf(0x140)][_0x2d09bf(0x1a0)](C,_0x37258e,_0x53f0ba);return _0x287bf8[_0x2d09bf(0x11a)](),this['_entities'][_0x2d09bf(0x10d)](_0x37258e,_0x287bf8),_0x287bf8;}};I=Z([f(0x0,_0x516a71),f(0x1,_0x3f84a3(_0x15d8b5)),f(0x2,_0x3f84a3(_0x1b8367))],I);var h=(_0x5cd094=>(_0x5cd094[_0x3eb66f(0x149)]=_0x3eb66f(0x1a7),_0x5cd094[_0x3eb66f(0x166)]='idle',_0x5cd094[_0x3eb66f(0x135)]=_0x3eb66f(0x16b),_0x5cd094[_0x3eb66f(0x18d)]=_0x3eb66f(0x126),_0x5cd094[_0x3eb66f(0x15d)]=_0x3eb66f(0x198),_0x5cd094))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x2968d7{constructor(_0x2835e7,_0x597389,_0x1ad216,_0x42f58a,_0x30b660){var _0x4637f6=_0x3eb66f;super(),d(this,_0x4637f6(0x131),new _0x22c326(_0x4637f6(0x18e))),d(this,'status$',this[_0x4637f6(0x131)][_0x4637f6(0x17c)]()),d(this,'_init',!0x1),d(this,_0x4637f6(0x15a),null),d(this,_0x4637f6(0x171),null),(this[_0x4637f6(0x139)]=_0x2835e7,this[_0x4637f6(0x114)]=_0x597389,this[_0x4637f6(0x11b)]=_0x1ad216,this[_0x4637f6(0x15f)]=_0x42f58a,this[_0x4637f6(0x109)]=_0x30b660);}get[_0x3eb66f(0x18a)](){var _0x6a0a02=_0x3eb66f;return this[_0x6a0a02(0x131)][_0x6a0a02(0x13d)]();}[_0x3eb66f(0x158)](){var _0x22eac7=_0x3eb66f,_0x3e9a4e;(_0x3e9a4e=this[_0x22eac7(0x15a)])==null||_0x3e9a4e[_0x22eac7(0x158)](),this[_0x22eac7(0x131)][_0x22eac7(0x153)](_0x22eac7(0x18e)),this[_0x22eac7(0x131)][_0x22eac7(0x16e)]();}[_0x3eb66f(0x11a)](){var _0x4c977a=_0x3eb66f;this[_0x4c977a(0x19b)]||(this['_init']=!0x0,this[_0x4c977a(0x114)][_0x4c977a(0x175)][_0x4c977a(0x11c)](_0x64489(this['dispose$']))[_0x4c977a(0x182)](_0xf72c5b=>{var _0x17f580=_0x4c977a;switch(_0xf72c5b){case _0x39791d[_0x17f580(0x149)]:this['_handleOffline']();break;case _0x39791d['ONLINE']:this[_0x17f580(0x10b)]();break;}}),this[_0x4c977a(0x114)][_0x4c977a(0x136)]['pipe'](_0x64489(this['dispose$']))[_0x4c977a(0x182)](_0x4f1338=>{var _0x251f11=_0x4c977a;const {eventID:_0x204de6}=_0x4f1338;switch(_0x204de6){case _0x40c637['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4f1338);break;case _0x40c637[_0x251f11(0x180)]:this[_0x251f11(0x170)](_0x4f1338);break;case _0x40c637['LIVESHARE_TERMINATE']:this[_0x251f11(0x13c)]();break;case _0x40c637['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x4f1338);break;}}));}['tryStartPresenting'](){var _0x1eb66c=_0x3eb66f;this[_0x1eb66c(0x114)]['send']({'eventID':_0x40c637['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1eb66c(0x139)],'userID':this[_0x1eb66c(0x114)][_0x1eb66c(0x138)]()}},this[_0x1eb66c(0x139)]);}[_0x3eb66f(0x1a4)](){var _0x327742=_0x3eb66f;this['_status']===_0x327742(0x198)&&(this[_0x327742(0x131)][_0x327742(0x153)]('idle'),this[_0x327742(0x114)][_0x327742(0x173)]({'eventID':_0x40c637[_0x327742(0x127)],'data':{'unitID':this[_0x327742(0x139)]}},this[_0x327742(0x139)]));}['startFollowing'](){var _0x507ba6=_0x3eb66f;this[_0x507ba6(0x18a)]===_0x507ba6(0x126)&&(this['_status$'][_0x507ba6(0x153)](_0x507ba6(0x16b)),this[_0x507ba6(0x15e)]());}['stopFollowing'](){var _0x3e30d8=_0x3eb66f;this[_0x3e30d8(0x18a)]===_0x3e30d8(0x16b)&&this['_stopFollowing']();}[_0x3eb66f(0x174)](_0x15215b){var _0x46f13e=_0x3eb66f;const {presenter:_0x30af10}=_0x15215b[_0x46f13e(0x10e)],_0x54b30e=this[_0x46f13e(0x114)]['getMemberID']();this[_0x46f13e(0x171)]=_0x30af10,_0x30af10===_0x54b30e?(this['_stopFollowing'](),this[_0x46f13e(0x17e)]()):this[_0x46f13e(0x18a)]!==_0x46f13e(0x126)&&(this[_0x46f13e(0x162)](),this[_0x46f13e(0x15e)]());}[_0x3eb66f(0x16d)](){var _0x5d4bd5=_0x3eb66f;const _0x40c1a6={'eventID':_0x40c637[_0x5d4bd5(0x146)]};this['_collabSession'][_0x5d4bd5(0x173)](_0x40c1a6,this[_0x5d4bd5(0x139)]);}[_0x3eb66f(0x13c)](){var _0x659622=_0x3eb66f;this[_0x659622(0x171)]=null,this[_0x659622(0x18a)]!==_0x659622(0x198)&&this['_beIdle']();}[_0x3eb66f(0x112)](_0x2e1d73){var _0x2280f4=_0x3eb66f;if(this['_status']==='following'&&this[_0x2280f4(0x171)]===_0x2e1d73['data'][_0x2280f4(0x19a)]){const _0x302ee2=_0x4c17bf(_0x2e1d73['data'])['mutations']['reverse']()['find'](_0x20a2d0=>_0x20a2d0['id']===_0x2a9f7c['id']);if(_0x302ee2){const _0x543e43=_0x302ee2[_0x2280f4(0x107)][_0x2280f4(0x18c)],_0x335cc4=_0x302ee2[_0x2280f4(0x107)]['sheet']['id'];setTimeout(()=>{var _0x25ca2b=_0x2280f4;this['_commandService'][_0x25ca2b(0x1a8)](_0x3b7bd5['id'],{'unitId':_0x543e43,'subUnitId':_0x335cc4},{'fromCollab':!0x0});});}}}[_0x3eb66f(0x17e)](){var _0x23010c=_0x3eb66f;this['_status$'][_0x23010c(0x153)](_0x23010c(0x198));const _0x5ceb43=new Map(),_0x3ab671=this[_0x23010c(0x15a)]=new _0x22943b();_0x3ab671[_0x23010c(0x11d)](_0x56fa4e(()=>{var _0x5180d0=_0x23010c;_0x5ceb43['forEach'](_0x122fc5=>_0x122fc5[_0x5180d0(0x16e)]()),_0x5ceb43['clear']();})),_0x3ab671[_0x23010c(0x11d)](this[_0x23010c(0x109)]['onCommandExecuted'](_0x57b028=>{var _0x5c255f=_0x23010c,_0x40a3fa;if(_0x57b028[_0x5c255f(0x14a)]!==_0x50cabc[_0x5c255f(0x1a5)]||!this[_0x5c255f(0x15f)]['shouldShareOperation'](_0x57b028['id']))return;const {id:_0x18c313}=_0x57b028;let _0x3ded07;_0x5ceb43[_0x5c255f(0x184)](_0x18c313)?_0x3ded07=_0x5ceb43['get'](_0x18c313):(_0x3ded07=new _0x4a1280(),_0x5ceb43['set'](_0x18c313,_0x3ded07),_0x3ded07['pipe'](_0x1cb448((_0x40a3fa=this[_0x5c255f(0x11b)][_0x5c255f(0x13b)](Pe))!=null?_0x40a3fa:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5c255f(0x182)](_0x4165a6=>{var _0x3fe6d5=_0x5c255f;this[_0x3fe6d5(0x114)]['send']({'eventID':_0x40c637['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4165a6['id']]:{'id':_0x4165a6['id'],'params':JSON[_0x3fe6d5(0x119)](_0x4165a6[_0x3fe6d5(0x107)])}}}},this['_unitID']);})),_0x3ded07[_0x5c255f(0x153)](_0x57b028);})),this[_0x23010c(0x15f)][_0x23010c(0x17f)](this[_0x23010c(0x139)])[_0x23010c(0x115)](_0x16de63=>this[_0x23010c(0x114)]['send']({'eventID':_0x40c637[_0x23010c(0x180)],'data':{'unitID':this['_unitID'],'operations':{[_0x16de63['id']]:{'id':_0x16de63['id'],'params':JSON[_0x23010c(0x119)](_0x16de63[_0x23010c(0x107)])}}}},this[_0x23010c(0x139)]));}[_0x3eb66f(0x162)](){var _0x130467=_0x3eb66f,_0x54fd2e;this[_0x130467(0x131)]['next'](_0x130467(0x18e)),(_0x54fd2e=this[_0x130467(0x15a)])==null||_0x54fd2e[_0x130467(0x158)](),this['_commandDisposable']=null;}[_0x3eb66f(0x15e)](){var _0x510ac4=_0x3eb66f,_0x55a288;(_0x55a288=this[_0x510ac4(0x15a)])==null||_0x55a288[_0x510ac4(0x158)](),this['_status$']['next'](_0x510ac4(0x16b));}['_beIdle'](){var _0x2218a8=_0x3eb66f,_0x22ce86;this[_0x2218a8(0x131)][_0x2218a8(0x153)](_0x2218a8(0x18e)),(_0x22ce86=this['_commandDisposable'])==null||_0x22ce86[_0x2218a8(0x158)](),this['_commandDisposable']=null;}[_0x3eb66f(0x14e)](){var _0x535976=_0x3eb66f,_0x2c0dde;this['_status$'][_0x535976(0x153)](_0x535976(0x126)),(_0x2c0dde=this['_commandDisposable'])==null||_0x2c0dde['dispose']();}[_0x3eb66f(0x170)](_0x24f7c7){var _0x15c87a=_0x3eb66f;if([_0x15c87a(0x198),_0x15c87a(0x126),_0x15c87a(0x1a7)][_0x15c87a(0x1a9)](this[_0x15c87a(0x18a)])||!_0x24f7c7['data']['presenter']||_0x24f7c7[_0x15c87a(0x10e)][_0x15c87a(0x19f)]===this['_collabSession'][_0x15c87a(0x138)]())return;this[_0x15c87a(0x18a)]===_0x15c87a(0x18e)&&this['_startFollowing']();const _0x2f485e=_0x24f7c7[_0x15c87a(0x10e)][_0x15c87a(0x187)];Object['values'](_0x2f485e)[_0x15c87a(0x115)](_0x158936=>{var _0x512fb5=_0x15c87a;this['_commandService'][_0x512fb5(0x1a8)](_0x158936['id'],_0x158936[_0x512fb5(0x107)]?JSON[_0x512fb5(0x157)](_0x158936[_0x512fb5(0x107)]):null,{'fromCollab':!0x0});});}[_0x3eb66f(0x188)](){var _0x3a44e5=_0x3eb66f,_0x574c0c;this['_status$']['next'](_0x3a44e5(0x1a7)),(_0x574c0c=this['_commandDisposable'])==null||_0x574c0c[_0x3a44e5(0x158)]();}['_handleOnline'](){var _0x2d947d=_0x3eb66f;this[_0x2d947d(0x131)][_0x2d947d(0x153)](_0x2d947d(0x18e)),this[_0x2d947d(0x16d)]();}};C=Z([f(0x2,_0x314f53),f(0x3,_0x3f84a3(L)),f(0x4,_0x39ff78)],C);function Te(){var _0x41b232=_0x3eb66f;const _0x206bc3=_0x318ee9(I),_0x3cb97e=_0x318ee9(_0x516a71),_0x2713e6=_0x394850(()=>_0x3cb97e['getCurrentTypeOfUnit$'](_0x58c155[_0x41b232(0x129)]),void 0x0,!0x1,[]),[_0x21c736,_0x2b34db]=_0xd7af93(null),[_0x13b350,_0x3b5c0d]=_0xd7af93(h[_0x41b232(0x166)]),_0x2731f4=_0x3891b2(null);return _0x59b4f4(()=>(_0x2713e6&&_0x206bc3[_0x41b232(0x143)](_0x2713e6['getUnitId']())['then'](_0x3e4914=>{var _0x5f29cb=_0x41b232;_0x2b34db(_0x3e4914),_0x2731f4['current']=_0x3e4914[_0x5f29cb(0x13f)][_0x5f29cb(0x182)](_0x471ea4=>{_0x3b5c0d(_0x471ea4);});}),()=>{var _0x9e0507=_0x41b232,_0x45d08a;(_0x45d08a=_0x2731f4[_0x9e0507(0x123)])==null||_0x45d08a[_0x9e0507(0x141)](),_0x2731f4['current']=null;}),[_0x2713e6,_0x206bc3]),_0x21c736?_0x317f25(_0x11722c,{'align':'end','disabled':_0x13b350===h[_0x41b232(0x149)],'className':_0x41b232(0x124),'overlay':_0x317f25($e,{'status':_0x13b350,'coordinator':_0x21c736}),'children':_0x317f25(_0x41b232(0x197),{'className':_0x81ab49(_0x41b232(0x163),{'univer-cursor-not-allowed':_0x13b350===h[_0x41b232(0x149)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x13b350!==h[_0x41b232(0x149)]}),'type':_0x41b232(0x197),'children':_0x317f25(B,{'className':_0x41b232(0x190)})})}):null;}function $e(_0x4fd75a){var _0x3b8523=_0x3eb66f;const {status:_0x26b86d,coordinator:_0x49d2df}=_0x4fd75a;switch(_0x26b86d){case h[_0x3b8523(0x166)]:return _0x317f25(Fe,{'coordinator':_0x49d2df});case h[_0x3b8523(0x135)]:return _0x317f25(He,{'coordinator':_0x49d2df});case h[_0x3b8523(0x18d)]:return _0x317f25(je,{'coordinator':_0x49d2df});case h[_0x3b8523(0x149)]:return _0x317f25(Ve,{});case h[_0x3b8523(0x15d)]:return _0x317f25(Ue,{'coordinator':_0x49d2df});default:return null;}}function Fe(_0x499b26){var _0x2d2586=_0x3eb66f;const {coordinator:_0x1df800}=_0x499b26;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x2d2586(0x142),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x317f25(_0x29954b,{'onClick':()=>_0x1df800[_0x2d2586(0x12d)](),'children':_0x2d2586(0x10f)})]});}function He(_0x553cbf){var _0x305378=_0x3eb66f;const {coordinator:_0x45933c}=_0x553cbf;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x305378(0x142),{'className':_0x305378(0x16a),'children':_0x305378(0x16f)}),_0x317f25(_0x29954b,{'onClick':()=>_0x45933c[_0x305378(0x160)](),'children':'Stop\x20following'})]});}function je(_0x59c570){var _0x130793=_0x3eb66f;const {coordinator:_0x535713}=_0x59c570;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x130793(0x142),{'className':_0x130793(0x16a),'children':_0x130793(0x152)}),_0x317f25(_0x29954b,{'variant':_0x130793(0x137),'onClick':()=>_0x535713[_0x130793(0x1a2)](),'children':_0x130793(0x13e)})]});}function Ue(_0x227770){var _0xe31be0=_0x3eb66f;const {coordinator:_0x4c0903}=_0x227770;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0xe31be0(0x142),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x317f25(_0x29954b,{'variant':_0xe31be0(0x100),'onClick':()=>_0x4c0903[_0xe31be0(0x1a4)](),'children':_0xe31be0(0x154)})]});}function Ve(){var _0x2d4639=_0x3eb66f;return _0x317f25(_0xcbf086,{'children':_0x2d4639(0x14b)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x176aab,_0x3e99de,_0x438bba,_0x303e97)=>{for(var _0x466db5=_0x303e97>0x1?void 0x0:_0x303e97?Me(_0x3e99de,_0x438bba):_0x3e99de,_0x37da53=_0x176aab['length']-0x1,_0x363d41;_0x37da53>=0x0;_0x37da53--)(_0x363d41=_0x176aab[_0x37da53])&&(_0x466db5=_0x363d41(_0x466db5)||_0x466db5);return _0x466db5;},$=(_0x52b8fc,_0x5b6691)=>(_0x59eb1f,_0x3d9047)=>_0x5b6691(_0x59eb1f,_0x3d9047,_0x52b8fc);let b=class extends _0x28094d{constructor(_0x1ed1ff,_0x40625d){var _0x8f0c25=_0x3eb66f;super(),this[_0x8f0c25(0x140)]=_0x1ed1ff,this[_0x8f0c25(0x191)]=_0x40625d,this[_0x8f0c25(0x132)]();}['_mountLiveShare'](){var _0x19c19a=_0x3eb66f;this[_0x19c19a(0x183)](this['_uiPartsService'][_0x19c19a(0x192)](_0x45e07f[_0x19c19a(0x1a6)],()=>_0x67a89(Te,this['_injector'])));}};b=ke([$(0x0,_0x3f84a3(_0x15d8b5)),$(0x1,_0x326cbf)],b);var Ge=Object['defineProperty'],We=Object[_0x3eb66f(0x117)],Ye=(_0x70e9c1,_0x954166,_0x276c9e)=>_0x954166 in _0x70e9c1?Ge(_0x70e9c1,_0x954166,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x276c9e}):_0x70e9c1[_0x954166]=_0x276c9e,Be=(_0x47328e,_0x4cfded,_0x2f2279,_0x30ee14)=>{for(var _0x5a74f6=_0x30ee14>0x1?void 0x0:_0x30ee14?We(_0x4cfded,_0x2f2279):_0x4cfded,_0x4c4c3a=_0x47328e['length']-0x1,_0x1bacac;_0x4c4c3a>=0x0;_0x4c4c3a--)(_0x1bacac=_0x47328e[_0x4c4c3a])&&(_0x5a74f6=_0x1bacac(_0x5a74f6)||_0x5a74f6);return _0x5a74f6;},F=(_0x5e3ec0,_0x2a89c8)=>(_0x45cef5,_0x20c7d8)=>_0x2a89c8(_0x45cef5,_0x20c7d8,_0x5e3ec0),J=(_0x16e971,_0xd9f221,_0x337e01)=>Ye(_0x16e971,typeof _0xd9f221!=_0x3eb66f(0x15b)?_0xd9f221+'':_0xd9f221,_0x337e01);const Ze=_0x3eb66f(0x108);let O=class extends _0x47a77d{constructor(_0x2305ee=T,_0x2250c8,_0x4d146b){var _0x8c5b86=_0x3eb66f;super(),this[_0x8c5b86(0x19d)]=_0x2305ee,this[_0x8c5b86(0x140)]=_0x2250c8,this[_0x8c5b86(0x11b)]=_0x4d146b;const {..._0x96d20d}=_0x1f5ca3({},T,this[_0x8c5b86(0x19d)]);this[_0x8c5b86(0x11b)][_0x8c5b86(0x113)](Oe,_0x96d20d);}[_0x3eb66f(0x177)](){var _0x5f1ff0=_0x3eb66f;_0x1df7a9(this[_0x5f1ff0(0x140)],_0x227802([[L],[I],[m],[b]],this[_0x5f1ff0(0x19d)]['override'])),_0x4f8b46(this[_0x5f1ff0(0x140)],[[m]]);}['onRendered'](){var _0x2d4ecf=_0x3eb66f;_0x4f8b46(this[_0x2d4ecf(0x140)],[[b]]);}};J(O,_0x3eb66f(0x14a),_0x58c155[_0x3eb66f(0x165)]),J(O,_0x3eb66f(0x12e),Ze),O=Be([_0x419c79(_0x26cab8),F(0x1,_0x3f84a3(_0x15d8b5)),F(0x2,_0x314f53)],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 _0x351d60=_0x5600;(function(_0x3202eb,_0x3b4896){var _0x4d4b73=_0x5600,_0x6683e5=_0x3202eb();while(!![]){try{var _0x42fb6=-parseInt(_0x4d4b73(0x1c7))/0x1+-parseInt(_0x4d4b73(0x17b))/0x2*(parseInt(_0x4d4b73(0x172))/0x3)+parseInt(_0x4d4b73(0x151))/0x4+-parseInt(_0x4d4b73(0x170))/0x5*(-parseInt(_0x4d4b73(0x152))/0x6)+parseInt(_0x4d4b73(0x1ac))/0x7+parseInt(_0x4d4b73(0x15f))/0x8*(-parseInt(_0x4d4b73(0x14a))/0x9)+parseInt(_0x4d4b73(0x1c6))/0xa;if(_0x42fb6===_0x3b4896)break;else _0x6683e5['push'](_0x6683e5['shift']());}catch(_0x4e6543){_0x6683e5['push'](_0x6683e5['shift']());}}}(_0x2b53,0x45de2));var q=Object['defineProperty'],z=(_0x3ed690,_0x5e1962,_0x5e939e)=>_0x5e1962 in _0x3ed690?q(_0x3ed690,_0x5e1962,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e939e}):_0x3ed690[_0x5e1962]=_0x5e939e,d=(_0x3b01dd,_0x2d321,_0x39f49a)=>z(_0x3b01dd,typeof _0x2d321!=_0x351d60(0x1cf)?_0x2d321+'':_0x2d321,_0x39f49a);import{CollaborationSessionService as _0xc42d8f,SessionStatus as _0x5e13a0,UniverCollaborationClientPlugin as _0x29bcfe}from'@univerjs-pro/collaboration-client';import{Disposable as _0x224e4c,toDisposable as _0x420ae4,Inject as _0x3abca3,IUniverInstanceService as _0xe2d3f4,Injector as _0x3d57c1,IConfigService as _0x5be387,ICommandService as _0x236614,RxDisposable as _0x603bd6,UniverInstanceType as _0x4d5efd,DisposableCollection as _0x4feaf1,CommandType as _0x17a80f,DependentOn as _0x2195b7,Plugin as _0x599154,merge as _0x75c717,registerDependencies as _0x5bf58d,mergeOverrideWithDependencies as _0x38e8e6,touchDependencies as _0x281800}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x561dc1,InsertSheetMutation as _0x4f4864}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x226f14,SetScrollOperation as _0x33d4ca}from'@univerjs/sheets-ui';import{useDependency as _0x247355,useObservable as _0x21ae04,IUIPartsService as _0x230a4f,BuiltInUIPart as _0x4ca9bf,connectInjector as _0x32a071}from'@univerjs/ui';import{jsx as _0x37aa2b,jsxs as _0x2c44bf,Fragment as _0x3db7a5}from'react/jsx-runtime';import{Dropdown as _0x5f162c,clsx as _0x53843f,Button as _0x2ee079}from'@univerjs/design';import{forwardRef as _0x313345,useRef as _0xc18a52,createElement as _0x57f48a,useState as _0x2f9e5a,useEffect as _0x28d068}from'react';import{CollaborationEvent as _0x45c8cc,parseProtocolChangeset as _0x522c8f}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x18832b,Subject as _0x25a16f}from'rxjs';import{takeUntil as _0x48f007,throttleTime as _0xee77ca}from'rxjs/operators';const Oe='live-share.config',T={};function _0x2b53(){var _0x326341=['_reporters','2SxGsvQ','onStarting','status$','replace','defineProperty','children','colorChannel1','Stop\x20presenting','values','setConfig','asObservable','idSuffix','concat','univer-mb-3\x20univer-w-full\x20univer-text-sm','length','LIVESHARE_TERMINATE','div','_init','_entities','OPERATION','_stopFollowing','getUnitId','ONLINE','executeCommand','NOT_FOLLOWING','_unitID','getConfig','attrs','trim','evenodd','presenting','set','_collabSessionService','_handleTerminate','data','pluginName','OFFLINE','_startLiveShareCoordinator','dispose$','url(#$1','NEW_CHANGESETS','Stop\x20following','sheet','FOLLOWING','univer-size-4','none','defs','_config','send','2149959GTbLeU','following','UNIVER_SHEET','text','http://www.w3.org/2000/svg','idle','_handleOperation','substring','subscribe','dispose','clear','prototype','getOwnPropertySymbols','assign','displayName','_collabSession','UNIVER_LIVE_SHARE_PLUGIN','end','getOwnPropertyDescriptor','_commandDisposable','getInitialStates','call','indexOf','stringify','get','_injector','7964290pSBBsb','289308leGLVn','_uiPartsService','_startFollowing','createInstance','toString','add','next','reverse','symbol','You\x27are\x20offline.','UniverIcon','LIVESHARE_REQUEST_HOST','delete','live-share-icon','onCommandExecuted','defIds','Present\x20this\x20document','find','then','unsubscribe','registerComponent','You\x27re\x20presenting\x20the\x20document','onRendered','from','stopPresenting','currentColor','apply','registerInitialStateReporter','sessionStatus$','_univerInstanceService','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','You\x27re\x20following\x20the\x20presenter','LIVESHARE_OPERATION','_beIdle','0\x200\x2017\x2017','Start\x20following','You\x27re\x20not\x20following\x20the\x20presenter','offline','params','has','getTypeOfUnitAdded$','startFollowing','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','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','forEach','HEADER_MENU','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','memberID','_presenter','string','_liveShareService','type','propertyIsEnumerable','2210751ZCrMEd','_stopPresenting','_sharedOperations','unitId','getMemberID','xlink:href','entries','151784zmJSDG','9678deKfPf','getLiveShareCoordinator','tryStartPresenting','_fetchOperations','_handleNewChangeSets','extend','includes','1em','getTypeOfUnitDisposed$','_status$','disposeWithMe','_commandService','operations','16cUcYQf','shouldShareOperation','Start','PRESENTING','LIVESHARE_FETCH_OPERATIONS','tag','complete','fill','_startPresenting','icon','_handleNewHost','stopFollowing','_status','mask','_configService','presenter','IDLE','1025keYqKN','init','1216239OkapoE','current','_handleOnline','_mountLiveShare','_handleOffline','pipe','not-following','path'];_0x2b53=function(){return _0x326341;};return _0x2b53();}class L extends _0x224e4c{constructor(){var _0x4b5c00=_0x351d60;super(...arguments),d(this,_0x4b5c00(0x14c),new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0xafd0a){var _0x57023e=_0x351d60;return this[_0x57023e(0x14c)][_0x57023e(0x1cc)](_0xafd0a),_0x420ae4(()=>this[_0x57023e(0x14c)][_0x57023e(0x1d3)](_0xafd0a));}[_0x351d60(0x1e2)](_0xd0edd9){var _0x3a510c=_0x351d60;return this[_0x3a510c(0x17a)][_0x3a510c(0x1cc)](_0xd0edd9),_0x420ae4(()=>this[_0x3a510c(0x17a)][_0x3a510c(0x1d3)](_0xd0edd9));}[_0x351d60(0x160)](_0x5cf08e){var _0x43ad2e=_0x351d60;return this['_sharedOperations'][_0x43ad2e(0x1ee)](_0x5cf08e);}[_0x351d60(0x1c0)](_0x26b8ae){var _0x486893=_0x351d60;return Array[_0x486893(0x1de)](this[_0x486893(0x17a)])[_0x486893(0x1f3)](_0x570949=>_0x570949(_0x26b8ae));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x119d3e,_0x5d4671,_0x40b9e2,_0x7bbc55)=>{var _0x19c7a6=_0x351d60;for(var _0x17b9b0=_0x7bbc55>0x1?void 0x0:_0x7bbc55?Ee(_0x5d4671,_0x40b9e2):_0x5d4671,_0xc30d1f=_0x119d3e[_0x19c7a6(0x189)]-0x1,_0x36f6ef;_0xc30d1f>=0x0;_0xc30d1f--)(_0x36f6ef=_0x119d3e[_0xc30d1f])&&(_0x17b9b0=_0x36f6ef(_0x17b9b0)||_0x17b9b0);return _0x17b9b0;},Ne=(_0x39afc8,_0x55ca59)=>(_0x4cfd48,_0x687522)=>_0x55ca59(_0x4cfd48,_0x687522,_0x39afc8);let m=class extends _0x224e4c{constructor(_0x494f05){var _0x15d423=_0x351d60;super(),this[_0x15d423(0x147)]=_0x494f05,this['_init']();}['_init'](){var _0x327e4c=_0x351d60;[_0x226f14['id'],_0x33d4ca['id'],_0x561dc1['id']][_0x327e4c(0x1f4)](_0x33d76e=>{var _0x21a1e7=_0x327e4c;this[_0x21a1e7(0x15c)](this['_liveShareService']['registerSharedOperation'](_0x33d76e));});}};m=we([Ne(0x0,_0x3abca3(L))],m);var c=function(){var _0x1ebf06=_0x351d60;return c=Object[_0x1ebf06(0x1b9)]||function(_0x238969){var _0x432371=_0x1ebf06;for(var _0x372cff,_0x36148d=0x1,_0x55fcf4=arguments[_0x432371(0x189)];_0x36148d<_0x55fcf4;_0x36148d++){_0x372cff=arguments[_0x36148d];for(var _0x69aaa7 in _0x372cff)Object[_0x432371(0x1b7)]['hasOwnProperty'][_0x432371(0x1c1)](_0x372cff,_0x69aaa7)&&(_0x238969[_0x69aaa7]=_0x372cff[_0x69aaa7]);}return _0x238969;},c[_0x1ebf06(0x1e1)](this,arguments);},Ce=function(_0x4a6f4a,_0x21a8da){var _0xed7f5d=_0x351d60,_0x5309a1={};for(var _0x20d14b in _0x4a6f4a)Object['prototype']['hasOwnProperty'][_0xed7f5d(0x1c1)](_0x4a6f4a,_0x20d14b)&&_0x21a8da[_0xed7f5d(0x1c2)](_0x20d14b)<0x0&&(_0x5309a1[_0x20d14b]=_0x4a6f4a[_0x20d14b]);if(_0x4a6f4a!=null&&typeof Object[_0xed7f5d(0x1b8)]=='function'){for(var _0x3ea593=0x0,_0x20d14b=Object['getOwnPropertySymbols'](_0x4a6f4a);_0x3ea593<_0x20d14b['length'];_0x3ea593++)_0x21a8da['indexOf'](_0x20d14b[_0x3ea593])<0x0&&Object[_0xed7f5d(0x1b7)][_0xed7f5d(0x149)]['call'](_0x4a6f4a,_0x20d14b[_0x3ea593])&&(_0x5309a1[_0x20d14b[_0x3ea593]]=_0x4a6f4a[_0x20d14b[_0x3ea593]]);}return _0x5309a1;},W=_0x313345(function(_0x4826df,_0x2e87bf){var _0x2f29cb=_0x351d60,_0x42a1bf=_0x4826df['icon'],_0xa01011=_0x4826df['id'],_0x4742c9=_0x4826df['className'],_0x234a25=_0x4826df['extend'],_0x237405=Ce(_0x4826df,[_0x2f29cb(0x168),'id','className',_0x2f29cb(0x157)]),_0x3cd53f='univerjs-icon\x20univerjs-icon-'[_0x2f29cb(0x187)](_0xa01011,'\x20')[_0x2f29cb(0x187)](_0x4742c9||'')[_0x2f29cb(0x197)](),_0x1f267d=_0xc18a52('_'['concat'](Le()));return Y(_0x42a1bf,''['concat'](_0xa01011),{'defIds':_0x42a1bf['defIds'],'idSuffix':_0x1f267d[_0x2f29cb(0x173)]},c({'ref':_0x2e87bf,'className':_0x3cd53f},_0x237405),_0x234a25);});function Y(_0x572c0e,_0x16a8a3,_0x87fd89,_0x802cf8,_0x1dd164){var _0x21626b=_0x351d60;return _0x57f48a(_0x572c0e[_0x21626b(0x164)],c(c({'key':_0x16a8a3},De(_0x572c0e,_0x87fd89,_0x1dd164)),_0x802cf8),(xe(_0x572c0e,_0x87fd89)['children']||[])[_0x21626b(0x1f3)](function(_0x2adf0b,_0x4d0224){var _0x843ce8=_0x21626b;return Y(_0x2adf0b,''['concat'](_0x16a8a3,'-')[_0x843ce8(0x187)](_0x572c0e['tag'],'-')[_0x843ce8(0x187)](_0x4d0224),_0x87fd89,void 0x0,_0x1dd164);}));}function De(_0x27080c,_0x3da072,_0xca05fe){var _0x536e7b=_0x351d60,_0xf07a0=c({},_0x27080c[_0x536e7b(0x196)]);_0xca05fe!=null&&_0xca05fe[_0x536e7b(0x181)]&&_0xf07a0[_0x536e7b(0x166)]===_0x536e7b(0x181)&&(_0xf07a0['fill']=_0xca05fe[_0x536e7b(0x181)]),_0x27080c[_0x536e7b(0x164)]==='mask'&&_0xf07a0['id']&&(_0xf07a0['id']=_0xf07a0['id']+_0x3da072[_0x536e7b(0x186)]),Object[_0x536e7b(0x150)](_0xf07a0)['forEach'](function(_0x34a393){var _0x40da90=_0x536e7b,_0x52891f=_0x34a393[0x0],_0x416185=_0x34a393[0x1];_0x52891f===_0x40da90(0x16c)&&typeof _0x416185=='string'&&(_0xf07a0[_0x52891f]=_0x416185[_0x40da90(0x17e)](/url\(#(.*)\)/,_0x40da90(0x1a2)['concat'](_0x3da072[_0x40da90(0x186)],')')));});var _0x4780fb=_0x3da072[_0x536e7b(0x1d6)];return!_0x4780fb||_0x4780fb[_0x536e7b(0x189)]===0x0||(_0x27080c[_0x536e7b(0x164)]==='use'&&_0xf07a0[_0x536e7b(0x14f)]&&(_0xf07a0['xlink:href']=_0xf07a0[_0x536e7b(0x14f)]+_0x3da072[_0x536e7b(0x186)]),Object['entries'](_0xf07a0)[_0x536e7b(0x1f4)](function(_0x3c7de2){var _0x1ae81b=_0x536e7b,_0x22beaa=_0x3c7de2[0x0],_0x3fbfe6=_0x3c7de2[0x1];typeof _0x3fbfe6==_0x1ae81b(0x146)&&(_0xf07a0[_0x22beaa]=_0x3fbfe6[_0x1ae81b(0x17e)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3da072['idSuffix'],')')));})),_0xf07a0;}function xe(_0xa9fdea,_0x1d0c3e){var _0x36192b=_0x351d60,_0x3616a9,_0x32ed88=_0x1d0c3e[_0x36192b(0x1d6)];return!_0x32ed88||_0x32ed88[_0x36192b(0x189)]===0x0?_0xa9fdea:_0xa9fdea[_0x36192b(0x164)]===_0x36192b(0x1a9)&&(!((_0x3616a9=_0xa9fdea[_0x36192b(0x180)])===null||_0x3616a9===void 0x0)&&_0x3616a9[_0x36192b(0x189)])?c(c({},_0xa9fdea),{'children':_0xa9fdea[_0x36192b(0x180)]['map'](function(_0x32a0bd){var _0x13b65f=_0x36192b;return typeof _0x32a0bd[_0x13b65f(0x196)]['id']=='string'&&_0x32ed88&&_0x32ed88[_0x13b65f(0x158)](_0x32a0bd['attrs']['id'])?c(c({},_0x32a0bd),{'attrs':c(c({},_0x32a0bd['attrs']),{'id':_0x32a0bd[_0x13b65f(0x196)]['id']+_0x1d0c3e[_0x13b65f(0x186)]})}):_0x32a0bd;})}):_0xa9fdea;}function Le(){var _0x11fb04=_0x351d60;return Math['random']()[_0x11fb04(0x1cb)](0x24)[_0x11fb04(0x1b3)](0x2,0x8);}W[_0x351d60(0x1ba)]=_0x351d60(0x1d1);var ye={'tag':'svg','attrs':{'xmlns':_0x351d60(0x1b0),'fill':_0x351d60(0x1a8),'viewBox':_0x351d60(0x1e9),'width':_0x351d60(0x159),'height':_0x351d60(0x159)},'children':[{'tag':_0x351d60(0x179),'attrs':{'fill':_0x351d60(0x1e0),'d':_0x351d60(0x1f1)}},{'tag':_0x351d60(0x179),'attrs':{'fill':_0x351d60(0x1e0),'d':_0x351d60(0x1e5),'fillRule':'evenodd','clipRule':_0x351d60(0x198)}}]},B=_0x313345(function(_0x1cebe0,_0x2c6fb5){var _0xaa98f8=_0x351d60;return _0x57f48a(W,Object['assign']({},_0x1cebe0,{'id':_0xaa98f8(0x1d4),'ref':_0x2c6fb5,'icon':ye}));});B[_0x351d60(0x1ba)]='LiveShareIcon';var Re=Object[_0x351d60(0x1be)],Z=(_0x45c92f,_0x354020,_0x4af8f6,_0x5cb222)=>{var _0x2d3a65=_0x351d60;for(var _0xedb37b=_0x5cb222>0x1?void 0x0:_0x5cb222?Re(_0x354020,_0x4af8f6):_0x354020,_0x9a6e72=_0x45c92f[_0x2d3a65(0x189)]-0x1,_0x2d0cc6;_0x9a6e72>=0x0;_0x9a6e72--)(_0x2d0cc6=_0x45c92f[_0x9a6e72])&&(_0xedb37b=_0x2d0cc6(_0xedb37b)||_0xedb37b);return _0xedb37b;},f=(_0x32c8ab,_0x21d72a)=>(_0x3dd1b2,_0xdf9fff)=>_0x21d72a(_0x3dd1b2,_0xdf9fff,_0x32c8ab);let I=class extends _0x603bd6{constructor(_0x1bc6c3,_0x2fbdcd,_0x10b65b){var _0x593a92=_0x351d60;super(),d(this,_0x593a92(0x18d),new Map()),(this[_0x593a92(0x1e4)]=_0x1bc6c3,this[_0x593a92(0x1c5)]=_0x2fbdcd,this[_0x593a92(0x19b)]=_0x10b65b,this['_init']());}async['getLiveShareCoordinator'](_0x41649b){var _0x42114a=_0x351d60;return this['_entities'][_0x42114a(0x1ee)](_0x41649b)||await this[_0x42114a(0x1a0)](_0x41649b),this[_0x42114a(0x18d)][_0x42114a(0x1c4)](_0x41649b);}[_0x351d60(0x18c)](){var _0x332f24=_0x351d60;this[_0x332f24(0x1e4)][_0x332f24(0x1ef)](_0x4d5efd[_0x332f24(0x1ae)])[_0x332f24(0x177)](_0x48f007(this[_0x332f24(0x1a1)]))[_0x332f24(0x1b4)](async _0x3c9659=>{var _0x2d9bdb=_0x332f24;const _0x40d245=_0x3c9659[_0x2d9bdb(0x190)]();this[_0x2d9bdb(0x18d)][_0x2d9bdb(0x1ee)](_0x40d245)||this[_0x2d9bdb(0x1a0)](_0x40d245);}),this[_0x332f24(0x1e4)][_0x332f24(0x15a)](_0x4d5efd[_0x332f24(0x1ae)])[_0x332f24(0x177)](_0x48f007(this[_0x332f24(0x1a1)]))['subscribe'](_0x16b09c=>{var _0x2d5564=_0x332f24;const _0x3922af=_0x16b09c[_0x2d5564(0x190)](),_0x3b7812=this['_entities'][_0x2d5564(0x1c4)](_0x3922af);_0x3b7812==null||_0x3b7812[_0x2d5564(0x1b5)]();});}async['_startLiveShareCoordinator'](_0x5cdf27){var _0x38f116=_0x351d60;const _0x5c2919=await this[_0x38f116(0x19b)]['requireSession'](_0x5cdf27),_0x4b671f=this[_0x38f116(0x1c5)][_0x38f116(0x1ca)](C,_0x5cdf27,_0x5c2919);return _0x4b671f['init'](),this[_0x38f116(0x18d)][_0x38f116(0x19a)](_0x5cdf27,_0x4b671f),_0x4b671f;}};I=Z([f(0x0,_0xe2d3f4),f(0x1,_0x3abca3(_0x3d57c1)),f(0x2,_0x3abca3(_0xc42d8f))],I);var h=(_0x15ab43=>(_0x15ab43[_0x351d60(0x19f)]=_0x351d60(0x1ec),_0x15ab43['IDLE']='idle',_0x15ab43[_0x351d60(0x1a6)]=_0x351d60(0x1ad),_0x15ab43['NOT_FOLLOWING']=_0x351d60(0x178),_0x15ab43[_0x351d60(0x162)]=_0x351d60(0x199),_0x15ab43))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x603bd6{constructor(_0x42a68e,_0x33c978,_0x427774,_0x546007,_0x51a485){var _0xb6f8d7=_0x351d60;super(),d(this,_0xb6f8d7(0x15b),new _0x18832b(_0xb6f8d7(0x1b1))),d(this,'status$',this[_0xb6f8d7(0x15b)][_0xb6f8d7(0x185)]()),d(this,_0xb6f8d7(0x18c),!0x1),d(this,_0xb6f8d7(0x1bf),null),d(this,_0xb6f8d7(0x145),null),(this['_unitID']=_0x42a68e,this[_0xb6f8d7(0x1bb)]=_0x33c978,this[_0xb6f8d7(0x16d)]=_0x427774,this[_0xb6f8d7(0x147)]=_0x546007,this[_0xb6f8d7(0x15d)]=_0x51a485);}get[_0x351d60(0x16b)](){return this['_status$']['getValue']();}[_0x351d60(0x1b5)](){var _0x5ba52f=_0x351d60,_0x35157a;(_0x35157a=this[_0x5ba52f(0x1bf)])==null||_0x35157a[_0x5ba52f(0x1b5)](),this[_0x5ba52f(0x15b)][_0x5ba52f(0x1cd)](_0x5ba52f(0x1b1)),this['_status$'][_0x5ba52f(0x165)]();}[_0x351d60(0x171)](){var _0x50ed1c=_0x351d60;this[_0x50ed1c(0x18c)]||(this[_0x50ed1c(0x18c)]=!0x0,this[_0x50ed1c(0x1bb)][_0x50ed1c(0x1e3)][_0x50ed1c(0x177)](_0x48f007(this['dispose$']))[_0x50ed1c(0x1b4)](_0xc74f39=>{var _0x49d599=_0x50ed1c;switch(_0xc74f39){case _0x5e13a0[_0x49d599(0x19f)]:this[_0x49d599(0x176)]();break;case _0x5e13a0[_0x49d599(0x191)]:this[_0x49d599(0x174)]();break;}}),this['_collabSession']['event$']['pipe'](_0x48f007(this[_0x50ed1c(0x1a1)]))[_0x50ed1c(0x1b4)](_0x20d08e=>{var _0x3ec6e9=_0x50ed1c;const {eventID:_0x4395c0}=_0x20d08e;switch(_0x4395c0){case _0x45c8cc['LIVESHARE_NEW_HOST']:this[_0x3ec6e9(0x169)](_0x20d08e);break;case _0x45c8cc[_0x3ec6e9(0x1e7)]:this[_0x3ec6e9(0x1b2)](_0x20d08e);break;case _0x45c8cc[_0x3ec6e9(0x18a)]:this['_handleTerminate']();break;case _0x45c8cc[_0x3ec6e9(0x1a3)]:this['_handleNewChangeSets'](_0x20d08e);break;}}));}['tryStartPresenting'](){var _0x31f6a8=_0x351d60;this[_0x31f6a8(0x1bb)][_0x31f6a8(0x1ab)]({'eventID':_0x45c8cc[_0x31f6a8(0x1d2)],'data':{'unitID':this[_0x31f6a8(0x194)],'userID':this[_0x31f6a8(0x1bb)][_0x31f6a8(0x14e)]()}},this[_0x31f6a8(0x194)]);}[_0x351d60(0x1df)](){var _0x32b3ed=_0x351d60;this[_0x32b3ed(0x16b)]==='presenting'&&(this[_0x32b3ed(0x15b)]['next'](_0x32b3ed(0x1b1)),this[_0x32b3ed(0x1bb)][_0x32b3ed(0x1ab)]({'eventID':_0x45c8cc[_0x32b3ed(0x18a)],'data':{'unitID':this[_0x32b3ed(0x194)]}},this[_0x32b3ed(0x194)]));}[_0x351d60(0x1f0)](){var _0x19bddf=_0x351d60;this[_0x19bddf(0x16b)]==='not-following'&&(this['_status$']['next'](_0x19bddf(0x1ad)),this[_0x19bddf(0x1c9)]());}[_0x351d60(0x16a)](){var _0x974b71=_0x351d60;this['_status']===_0x974b71(0x1ad)&&this[_0x974b71(0x18f)]();}['_handleNewHost'](_0x1deae4){var _0x11b954=_0x351d60;const {presenter:_0xcc3c99}=_0x1deae4[_0x11b954(0x19d)],_0x3e0b26=this['_collabSession'][_0x11b954(0x14e)]();this['_presenter']=_0xcc3c99,_0xcc3c99===_0x3e0b26?(this[_0x11b954(0x18f)](),this[_0x11b954(0x167)]()):this['_status']!=='not-following'&&(this[_0x11b954(0x14b)](),this[_0x11b954(0x1c9)]());}['_fetchOperations'](){var _0x26a02e=_0x351d60;const _0x100712={'eventID':_0x45c8cc[_0x26a02e(0x163)]};this['_collabSession']['send'](_0x100712,this[_0x26a02e(0x194)]);}[_0x351d60(0x19c)](){var _0x562ca0=_0x351d60;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x562ca0(0x1e8)]();}[_0x351d60(0x156)](_0x51b729){var _0x30914d=_0x351d60;if(this[_0x30914d(0x16b)]===_0x30914d(0x1ad)&&this[_0x30914d(0x145)]===_0x51b729[_0x30914d(0x19d)][_0x30914d(0x144)]){const _0x39ffc2=_0x522c8f(_0x51b729[_0x30914d(0x19d)])['mutations'][_0x30914d(0x1ce)]()[_0x30914d(0x1d8)](_0x13a316=>_0x13a316['id']===_0x4f4864['id']);if(_0x39ffc2){const _0x28520b=_0x39ffc2[_0x30914d(0x1ed)][_0x30914d(0x14d)],_0x5057a2=_0x39ffc2[_0x30914d(0x1ed)][_0x30914d(0x1a5)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x561dc1['id'],{'unitId':_0x28520b,'subUnitId':_0x5057a2},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x159763=_0x351d60;this[_0x159763(0x15b)][_0x159763(0x1cd)](_0x159763(0x199));const _0x29bbda=new Map(),_0x382444=this['_commandDisposable']=new _0x4feaf1();_0x382444[_0x159763(0x1cc)](_0x420ae4(()=>{var _0x445305=_0x159763;_0x29bbda[_0x445305(0x1f4)](_0x1d8de1=>_0x1d8de1[_0x445305(0x165)]()),_0x29bbda[_0x445305(0x1b6)]();})),_0x382444['add'](this[_0x159763(0x15d)][_0x159763(0x1d5)](_0x58133c=>{var _0xd2a746=_0x159763,_0x1c3d76;if(_0x58133c['type']!==_0x17a80f[_0xd2a746(0x18e)]||!this[_0xd2a746(0x147)][_0xd2a746(0x160)](_0x58133c['id']))return;const {id:_0x5e9354}=_0x58133c;let _0x4cf3be;_0x29bbda[_0xd2a746(0x1ee)](_0x5e9354)?_0x4cf3be=_0x29bbda['get'](_0x5e9354):(_0x4cf3be=new _0x25a16f(),_0x29bbda['set'](_0x5e9354,_0x4cf3be),_0x4cf3be[_0xd2a746(0x177)](_0xee77ca((_0x1c3d76=this[_0xd2a746(0x16d)][_0xd2a746(0x195)](Pe))!=null?_0x1c3d76:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4f9cbd=>{var _0x53ca8=_0xd2a746;this[_0x53ca8(0x1bb)][_0x53ca8(0x1ab)]({'eventID':_0x45c8cc[_0x53ca8(0x1e7)],'data':{'unitID':this[_0x53ca8(0x194)],'operations':{[_0x4f9cbd['id']]:{'id':_0x4f9cbd['id'],'params':JSON[_0x53ca8(0x1c3)](_0x4f9cbd[_0x53ca8(0x1ed)])}}}},this['_unitID']);})),_0x4cf3be[_0xd2a746(0x1cd)](_0x58133c);})),this[_0x159763(0x147)][_0x159763(0x1c0)](this[_0x159763(0x194)])['forEach'](_0x1404fd=>this[_0x159763(0x1bb)][_0x159763(0x1ab)]({'eventID':_0x45c8cc[_0x159763(0x1e7)],'data':{'unitID':this[_0x159763(0x194)],'operations':{[_0x1404fd['id']]:{'id':_0x1404fd['id'],'params':JSON[_0x159763(0x1c3)](_0x1404fd[_0x159763(0x1ed)])}}}},this[_0x159763(0x194)]));}['_stopPresenting'](){var _0x2c37d9=_0x351d60,_0x4ba27b;this['_status$'][_0x2c37d9(0x1cd)]('idle'),(_0x4ba27b=this['_commandDisposable'])==null||_0x4ba27b[_0x2c37d9(0x1b5)](),this[_0x2c37d9(0x1bf)]=null;}[_0x351d60(0x1c9)](){var _0x4b7293=_0x351d60,_0x3ea8b3;(_0x3ea8b3=this[_0x4b7293(0x1bf)])==null||_0x3ea8b3[_0x4b7293(0x1b5)](),this[_0x4b7293(0x15b)][_0x4b7293(0x1cd)](_0x4b7293(0x1ad));}[_0x351d60(0x1e8)](){var _0x4f7f0f=_0x351d60,_0x502f12;this[_0x4f7f0f(0x15b)][_0x4f7f0f(0x1cd)]('idle'),(_0x502f12=this[_0x4f7f0f(0x1bf)])==null||_0x502f12[_0x4f7f0f(0x1b5)](),this[_0x4f7f0f(0x1bf)]=null;}[_0x351d60(0x18f)](){var _0x3a27e8=_0x351d60,_0x14767d;this[_0x3a27e8(0x15b)][_0x3a27e8(0x1cd)]('not-following'),(_0x14767d=this[_0x3a27e8(0x1bf)])==null||_0x14767d[_0x3a27e8(0x1b5)]();}[_0x351d60(0x1b2)](_0x3d012e){var _0x1e9453=_0x351d60;if([_0x1e9453(0x199),_0x1e9453(0x178),_0x1e9453(0x1ec)][_0x1e9453(0x158)](this['_status'])||!_0x3d012e[_0x1e9453(0x19d)]['presenter']||_0x3d012e[_0x1e9453(0x19d)][_0x1e9453(0x16e)]===this[_0x1e9453(0x1bb)][_0x1e9453(0x14e)]())return;this[_0x1e9453(0x16b)]==='idle'&&this[_0x1e9453(0x1c9)]();const _0x2b2d0b=_0x3d012e['data'][_0x1e9453(0x15e)];Object[_0x1e9453(0x183)](_0x2b2d0b)[_0x1e9453(0x1f4)](_0x49c5d6=>{var _0x30eea5=_0x1e9453;this[_0x30eea5(0x15d)][_0x30eea5(0x192)](_0x49c5d6['id'],_0x49c5d6[_0x30eea5(0x1ed)]?JSON['parse'](_0x49c5d6[_0x30eea5(0x1ed)]):null,{'fromCollab':!0x0});});}[_0x351d60(0x176)](){var _0x1c449a=_0x351d60,_0x1e9e50;this['_status$']['next'](_0x1c449a(0x1ec)),(_0x1e9e50=this[_0x1c449a(0x1bf)])==null||_0x1e9e50['dispose']();}['_handleOnline'](){var _0x5d2211=_0x351d60;this[_0x5d2211(0x15b)][_0x5d2211(0x1cd)](_0x5d2211(0x1b1)),this[_0x5d2211(0x155)]();}};C=Z([f(0x2,_0x5be387),f(0x3,_0x3abca3(L)),f(0x4,_0x236614)],C);function Te(){var _0x5a3bfb=_0x351d60;const _0x1ccd49=_0x247355(I),_0x21c711=_0x247355(_0xe2d3f4),_0x3d57c2=_0x21ae04(()=>_0x21c711['getCurrentTypeOfUnit$'](_0x4d5efd[_0x5a3bfb(0x1ae)]),void 0x0,!0x1,[]),[_0x5af5b0,_0xcc65c3]=_0x2f9e5a(null),[_0xa7b908,_0x1c86a6]=_0x2f9e5a(h[_0x5a3bfb(0x16f)]),_0x2663b3=_0xc18a52(null);return _0x28d068(()=>(_0x3d57c2&&_0x1ccd49[_0x5a3bfb(0x153)](_0x3d57c2[_0x5a3bfb(0x190)]())[_0x5a3bfb(0x1d9)](_0x3e7446=>{var _0x29a76d=_0x5a3bfb;_0xcc65c3(_0x3e7446),_0x2663b3['current']=_0x3e7446[_0x29a76d(0x17d)]['subscribe'](_0x3d6218=>{_0x1c86a6(_0x3d6218);});}),()=>{var _0x33543b=_0x5a3bfb,_0xe84aff;(_0xe84aff=_0x2663b3['current'])==null||_0xe84aff[_0x33543b(0x1da)](),_0x2663b3['current']=null;}),[_0x3d57c2,_0x1ccd49]),_0x5af5b0?_0x37aa2b(_0x5f162c,{'align':_0x5a3bfb(0x1bd),'disabled':_0xa7b908===h['OFFLINE'],'className':_0x5a3bfb(0x143),'overlay':_0x37aa2b($e,{'status':_0xa7b908,'coordinator':_0x5af5b0}),'children':_0x37aa2b('button',{'className':_0x53843f(_0x5a3bfb(0x1f2),{'univer-cursor-not-allowed':_0xa7b908===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xa7b908!==h[_0x5a3bfb(0x19f)]}),'type':'button','children':_0x37aa2b(B,{'className':_0x5a3bfb(0x1a7)})})}):null;}function $e(_0x3d7363){var _0x542f01=_0x351d60;const {status:_0x58664e,coordinator:_0x5c4fe9}=_0x3d7363;switch(_0x58664e){case h[_0x542f01(0x16f)]:return _0x37aa2b(Fe,{'coordinator':_0x5c4fe9});case h[_0x542f01(0x1a6)]:return _0x37aa2b(He,{'coordinator':_0x5c4fe9});case h[_0x542f01(0x193)]:return _0x37aa2b(je,{'coordinator':_0x5c4fe9});case h['OFFLINE']:return _0x37aa2b(Ve,{});case h[_0x542f01(0x162)]:return _0x37aa2b(Ue,{'coordinator':_0x5c4fe9});default:return null;}}function Fe(_0x1926d9){var _0x4452c2=_0x351d60;const {coordinator:_0x5531de}=_0x1926d9;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x4452c2(0x18b),{'className':_0x4452c2(0x188),'children':_0x4452c2(0x1d7)}),_0x37aa2b(_0x2ee079,{'onClick':()=>_0x5531de[_0x4452c2(0x154)](),'children':_0x4452c2(0x161)})]});}function He(_0x2bcad2){var _0x4fac49=_0x351d60;const {coordinator:_0x17a3ee}=_0x2bcad2;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x4fac49(0x18b),{'className':_0x4fac49(0x188),'children':_0x4fac49(0x1e6)}),_0x37aa2b(_0x2ee079,{'onClick':()=>_0x17a3ee[_0x4fac49(0x16a)](),'children':_0x4fac49(0x1a4)})]});}function je(_0x29af5e){var _0x48fca9=_0x351d60;const {coordinator:_0x726358}=_0x29af5e;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x48fca9(0x18b),{'className':_0x48fca9(0x188),'children':_0x48fca9(0x1eb)}),_0x37aa2b(_0x2ee079,{'variant':_0x48fca9(0x1af),'onClick':()=>_0x726358[_0x48fca9(0x1f0)](),'children':_0x48fca9(0x1ea)})]});}function Ue(_0x1f2b97){var _0x5ac823=_0x351d60;const {coordinator:_0x1cb7d0}=_0x1f2b97;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x5ac823(0x18b),{'className':_0x5ac823(0x188),'children':_0x5ac823(0x1dc)}),_0x37aa2b(_0x2ee079,{'variant':'default','onClick':()=>_0x1cb7d0['stopPresenting'](),'children':_0x5ac823(0x182)})]});}function Ve(){var _0x538e5d=_0x351d60;return _0x37aa2b(_0x3db7a5,{'children':_0x538e5d(0x1d0)});}var Me=Object[_0x351d60(0x1be)],ke=(_0x34df80,_0x7604c8,_0x400b67,_0x25bab7)=>{var _0xb254b6=_0x351d60;for(var _0x2f8102=_0x25bab7>0x1?void 0x0:_0x25bab7?Me(_0x7604c8,_0x400b67):_0x7604c8,_0x4175f3=_0x34df80[_0xb254b6(0x189)]-0x1,_0x344cb8;_0x4175f3>=0x0;_0x4175f3--)(_0x344cb8=_0x34df80[_0x4175f3])&&(_0x2f8102=_0x344cb8(_0x2f8102)||_0x2f8102);return _0x2f8102;},$=(_0x39b57a,_0x74a61c)=>(_0x424acd,_0x52eb3c)=>_0x74a61c(_0x424acd,_0x52eb3c,_0x39b57a);let b=class extends _0x224e4c{constructor(_0x55a9d2,_0x34b986){var _0x559de6=_0x351d60;super(),this[_0x559de6(0x1c5)]=_0x55a9d2,this[_0x559de6(0x1c8)]=_0x34b986,this[_0x559de6(0x175)]();}[_0x351d60(0x175)](){var _0x151a72=_0x351d60;this['disposeWithMe'](this[_0x151a72(0x1c8)][_0x151a72(0x1db)](_0x4ca9bf[_0x151a72(0x1f5)],()=>_0x32a071(Te,this[_0x151a72(0x1c5)])));}};b=ke([$(0x0,_0x3abca3(_0x3d57c1)),$(0x1,_0x230a4f)],b);var Ge=Object[_0x351d60(0x17f)],We=Object[_0x351d60(0x1be)],Ye=(_0xe8d861,_0x59cacd,_0x54c48c)=>_0x59cacd in _0xe8d861?Ge(_0xe8d861,_0x59cacd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54c48c}):_0xe8d861[_0x59cacd]=_0x54c48c,Be=(_0x171c52,_0x2780dd,_0x445de9,_0x30dacd)=>{var _0x4891ce=_0x351d60;for(var _0x1797d1=_0x30dacd>0x1?void 0x0:_0x30dacd?We(_0x2780dd,_0x445de9):_0x2780dd,_0x176d02=_0x171c52[_0x4891ce(0x189)]-0x1,_0x12d568;_0x176d02>=0x0;_0x176d02--)(_0x12d568=_0x171c52[_0x176d02])&&(_0x1797d1=_0x12d568(_0x1797d1)||_0x1797d1);return _0x1797d1;},F=(_0xd81a3a,_0x198ee9)=>(_0x4afe72,_0x1c5b78)=>_0x198ee9(_0x4afe72,_0x1c5b78,_0xd81a3a),J=(_0x4d826a,_0x4b0cf0,_0x31876f)=>Ye(_0x4d826a,typeof _0x4b0cf0!=_0x351d60(0x1cf)?_0x4b0cf0+'':_0x4b0cf0,_0x31876f);const Ze=_0x351d60(0x1bc);let O=class extends _0x599154{constructor(_0x29abb2=T,_0x263e40,_0x2732a8){var _0x3e7af6=_0x351d60;super(),this[_0x3e7af6(0x1aa)]=_0x29abb2,this[_0x3e7af6(0x1c5)]=_0x263e40,this[_0x3e7af6(0x16d)]=_0x2732a8;const {..._0x5771c1}=_0x75c717({},T,this[_0x3e7af6(0x1aa)]);this[_0x3e7af6(0x16d)][_0x3e7af6(0x184)](Oe,_0x5771c1);}[_0x351d60(0x17c)](){var _0x3b2fb7=_0x351d60;_0x5bf58d(this['_injector'],_0x38e8e6([[L],[I],[m],[b]],this['_config']['override'])),_0x281800(this[_0x3b2fb7(0x1c5)],[[m]]);}[_0x351d60(0x1dd)](){var _0x227f11=_0x351d60;_0x281800(this[_0x227f11(0x1c5)],[[b]]);}};function _0x5600(_0x49bd8d,_0x394706){var _0x2b53ef=_0x2b53();return _0x5600=function(_0x560029,_0x471ecd){_0x560029=_0x560029-0x143;var _0x37baa4=_0x2b53ef[_0x560029];return _0x37baa4;},_0x5600(_0x49bd8d,_0x394706);}J(O,_0x351d60(0x148),_0x4d5efd['UNIVER_UNKNOWN']),J(O,_0x351d60(0x19e),Ze),O=Be([_0x2195b7(_0x29bcfe),F(0x1,_0x3abca3(_0x3d57c1)),F(0x2,_0x5be387)],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 _0x3eb66f=_0xaf36;(function(_0x24bffa,_0x48a22d){var _0x44bc06=_0xaf36,_0xadd4dc=_0x24bffa();while(!![]){try{var _0x1ea307=parseInt(_0x44bc06(0x118))/0x1*(parseInt(_0x44bc06(0x195))/0x2)+-parseInt(_0x44bc06(0x16c))/0x3+parseInt(_0x44bc06(0x196))/0x4+-parseInt(_0x44bc06(0x14c))/0x5+parseInt(_0x44bc06(0x11f))/0x6+parseInt(_0x44bc06(0x125))/0x7*(-parseInt(_0x44bc06(0x102))/0x8)+parseInt(_0x44bc06(0x185))/0x9;if(_0x1ea307===_0x48a22d)break;else _0xadd4dc['push'](_0xadd4dc['shift']());}catch(_0x2666aa){_0xadd4dc['push'](_0xadd4dc['shift']());}}}(_0x59c0,0xb71bb));var q=Object[_0x3eb66f(0x10a)],z=(_0x59cb9d,_0x39743b,_0xdc1b55)=>_0x39743b in _0x59cb9d?q(_0x59cb9d,_0x39743b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdc1b55}):_0x59cb9d[_0x39743b]=_0xdc1b55,d=(_0xd68d5f,_0x5d7255,_0x134a70)=>z(_0xd68d5f,typeof _0x5d7255!=_0x3eb66f(0x15b)?_0x5d7255+'':_0x5d7255,_0x134a70);import{CollaborationSessionService as _0x1b8367,SessionStatus as _0x39791d,UniverCollaborationClientPlugin as _0x26cab8}from'@univerjs-pro/collaboration-client';import{Disposable as _0x28094d,toDisposable as _0x56fa4e,Inject as _0x3f84a3,IUniverInstanceService as _0x516a71,Injector as _0x15d8b5,IConfigService as _0x314f53,ICommandService as _0x39ff78,RxDisposable as _0x2968d7,UniverInstanceType as _0x58c155,DisposableCollection as _0x22943b,CommandType as _0x50cabc,DependentOn as _0x419c79,Plugin as _0x47a77d,merge as _0x1f5ca3,registerDependencies as _0x1df7a9,mergeOverrideWithDependencies as _0x227802,touchDependencies as _0x4f8b46}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3b7bd5,InsertSheetMutation as _0x2a9f7c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x22565f,SetScrollOperation as _0x1c3c05}from'@univerjs/sheets-ui';import{useDependency as _0x318ee9,useObservable as _0x394850,IUIPartsService as _0x326cbf,BuiltInUIPart as _0x45e07f,connectInjector as _0x67a89}from'@univerjs/ui';import{jsx as _0x317f25,jsxs as _0x387033,Fragment as _0xcbf086}from'react/jsx-runtime';import{Dropdown as _0x11722c,clsx as _0x81ab49,Button as _0x29954b}from'@univerjs/design';import{forwardRef as _0x33acf1,useRef as _0x3891b2,createElement as _0x5c13bc,useState as _0xd7af93,useEffect as _0x59b4f4}from'react';import{CollaborationEvent as _0x40c637,parseProtocolChangeset as _0x4c17bf}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x22c326,Subject as _0x4a1280}from'rxjs';function _0xaf36(_0x509563,_0x237477){var _0x59c0c3=_0x59c0();return _0xaf36=function(_0xaf3622,_0x5241e9){_0xaf3622=_0xaf3622-0x100;var _0x520cd9=_0x59c0c3[_0xaf3622];return _0x520cd9;},_0xaf36(_0x509563,_0x237477);}function _0x59c0(){var _0x40178f=['9165863puziSU','not-following','LIVESHARE_TERMINATE','indexOf','UNIVER_SHEET','path','xlink:href','use','tryStartPresenting','pluginName','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','mask','_status$','_mountLiveShare','function','colorChannel1','FOLLOWING','event$','text','getMemberID','_unitID','hasOwnProperty','getConfig','_handleTerminate','getValue','Start\x20following','status$','_injector','unsubscribe','div','getLiveShareCoordinator','children','getOwnPropertySymbols','LIVESHARE_FETCH_OPERATIONS','icon','toString','OFFLINE','type','You\x27are\x20offline.','3807035vbYxKl','get','_stopFollowing','delete','_univerInstanceService','trim','You\x27re\x20not\x20following\x20the\x20presenter','next','Stop\x20presenting','entries','concat','parse','dispose','registerSharedOperation','_commandDisposable','symbol','map','PRESENTING','_startFollowing','_liveShareService','stopFollowing','getUnitId','_stopPresenting','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','evenodd','UNIVER_UNKNOWN','IDLE','defIds','svg','replace','univer-w-full\x20univer-mb-3\x20univer-text-sm','following','1092006djtKtZ','_fetchOperations','complete','You\x27re\x20following\x20the\x20presenter','_handleOperation','_presenter','dispose$','send','_handleNewHost','sessionStatus$','tag','onStarting','0\x200\x2017\x2017','_reporters','displayName','getTypeOfUnitAdded$','asObservable','http://www.w3.org/2000/svg','_startPresenting','getInitialStates','LIVESHARE_OPERATION','shouldShareOperation','subscribe','disposeWithMe','has','2694780ifHsJH','currentColor','operations','_handleOffline','getTypeOfUnitDisposed$','_status','attrs','unitId','NOT_FOLLOWING','idle','live-share.config','univer-size-4','_uiPartsService','registerComponent','assign','className','1892318vsNcDN','4099936nHSwvN','button','presenting','fill','memberID','_init','_entities','_config','registerInitialStateReporter','presenter','createInstance','from','startFollowing','length','stopPresenting','OPERATION','HEADER_MENU','offline','executeCommand','includes','default','string','8MxjwOj','_sharedOperations','url(#$1','_startLiveShareCoordinator','requireSession','params','UNIVER_LIVE_SHARE_PLUGIN','_commandService','defineProperty','_handleOnline','call','set','data','Start','random','univerjs-icon\x20univerjs-icon-','_handleNewChangeSets','setConfig','_collabSession','forEach','idSuffix','getOwnPropertyDescriptor','1ruDppF','stringify','init','_configService','pipe','add','1em','5485596ykxVvK','prototype','_collabSessionService','defs','current','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'];_0x59c0=function(){return _0x40178f;};return _0x59c0();}import{takeUntil as _0x64489,throttleTime as _0x1cb448}from'rxjs/operators';const Oe=_0x3eb66f(0x18f),T={};class L extends _0x28094d{constructor(){var _0x2460f1=_0x3eb66f;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x2460f1(0x179),new Set());}[_0x3eb66f(0x159)](_0x465716){var _0xffa05f=_0x3eb66f;return this[_0xffa05f(0x103)][_0xffa05f(0x11d)](_0x465716),_0x56fa4e(()=>this[_0xffa05f(0x103)][_0xffa05f(0x14f)](_0x465716));}[_0x3eb66f(0x19e)](_0xe08eaa){var _0x5d5a16=_0x3eb66f;return this[_0x5d5a16(0x179)][_0x5d5a16(0x11d)](_0xe08eaa),_0x56fa4e(()=>this['_reporters'][_0x5d5a16(0x14f)](_0xe08eaa));}[_0x3eb66f(0x181)](_0x3640ae){var _0x44c344=_0x3eb66f;return this[_0x44c344(0x103)]['has'](_0x3640ae);}[_0x3eb66f(0x17f)](_0x130761){var _0x40ab2f=_0x3eb66f;return Array[_0x40ab2f(0x1a1)](this[_0x40ab2f(0x179)])[_0x40ab2f(0x15c)](_0x14bbfb=>_0x14bbfb(_0x130761));}}var Ee=Object[_0x3eb66f(0x117)],we=(_0x547a73,_0x4abe3f,_0x24a2f9,_0x20d92a)=>{var _0x126fbd=_0x3eb66f;for(var _0x566479=_0x20d92a>0x1?void 0x0:_0x20d92a?Ee(_0x4abe3f,_0x24a2f9):_0x4abe3f,_0x132d91=_0x547a73[_0x126fbd(0x1a3)]-0x1,_0x17fc56;_0x132d91>=0x0;_0x132d91--)(_0x17fc56=_0x547a73[_0x132d91])&&(_0x566479=_0x17fc56(_0x566479)||_0x566479);return _0x566479;},Ne=(_0x44562a,_0x59caee)=>(_0x37ca82,_0x13bee0)=>_0x59caee(_0x37ca82,_0x13bee0,_0x44562a);let m=class extends _0x28094d{constructor(_0x5ad8d4){var _0x331d83=_0x3eb66f;super(),this[_0x331d83(0x15f)]=_0x5ad8d4,this[_0x331d83(0x19b)]();}['_init'](){var _0x10c4bc=_0x3eb66f;[_0x22565f['id'],_0x1c3c05['id'],_0x3b7bd5['id']][_0x10c4bc(0x115)](_0x3b68c5=>{var _0x138e3b=_0x10c4bc;this[_0x138e3b(0x183)](this['_liveShareService'][_0x138e3b(0x159)](_0x3b68c5));});}};m=we([Ne(0x0,_0x3f84a3(L))],m);var c=function(){var _0x264bf1=_0x3eb66f;return c=Object[_0x264bf1(0x193)]||function(_0x1729ff){var _0x4dfda6=_0x264bf1;for(var _0x36d04a,_0x34fa1b=0x1,_0x82953b=arguments[_0x4dfda6(0x1a3)];_0x34fa1b<_0x82953b;_0x34fa1b++){_0x36d04a=arguments[_0x34fa1b];for(var _0x93544f in _0x36d04a)Object[_0x4dfda6(0x120)][_0x4dfda6(0x13a)][_0x4dfda6(0x10c)](_0x36d04a,_0x93544f)&&(_0x1729ff[_0x93544f]=_0x36d04a[_0x93544f]);}return _0x1729ff;},c['apply'](this,arguments);},Ce=function(_0x45a122,_0x493b35){var _0x11f1e8=_0x3eb66f,_0x5ca805={};for(var _0x1ae2a4 in _0x45a122)Object['prototype'][_0x11f1e8(0x13a)][_0x11f1e8(0x10c)](_0x45a122,_0x1ae2a4)&&_0x493b35[_0x11f1e8(0x128)](_0x1ae2a4)<0x0&&(_0x5ca805[_0x1ae2a4]=_0x45a122[_0x1ae2a4]);if(_0x45a122!=null&&typeof Object[_0x11f1e8(0x145)]==_0x11f1e8(0x133)){for(var _0xb1b3a1=0x0,_0x1ae2a4=Object['getOwnPropertySymbols'](_0x45a122);_0xb1b3a1<_0x1ae2a4[_0x11f1e8(0x1a3)];_0xb1b3a1++)_0x493b35[_0x11f1e8(0x128)](_0x1ae2a4[_0xb1b3a1])<0x0&&Object[_0x11f1e8(0x120)]['propertyIsEnumerable'][_0x11f1e8(0x10c)](_0x45a122,_0x1ae2a4[_0xb1b3a1])&&(_0x5ca805[_0x1ae2a4[_0xb1b3a1]]=_0x45a122[_0x1ae2a4[_0xb1b3a1]]);}return _0x5ca805;},W=_0x33acf1(function(_0x4ebfab,_0x4cd491){var _0x4a0548=_0x3eb66f,_0x110929=_0x4ebfab['icon'],_0x116ffe=_0x4ebfab['id'],_0x22281a=_0x4ebfab['className'],_0x23edd6=_0x4ebfab['extend'],_0x379481=Ce(_0x4ebfab,[_0x4a0548(0x147),'id',_0x4a0548(0x194),'extend']),_0x3c434a=_0x4a0548(0x111)[_0x4a0548(0x156)](_0x116ffe,'\x20')[_0x4a0548(0x156)](_0x22281a||'')[_0x4a0548(0x151)](),_0x293f41=_0x3891b2('_'[_0x4a0548(0x156)](Le()));return Y(_0x110929,''[_0x4a0548(0x156)](_0x116ffe),{'defIds':_0x110929[_0x4a0548(0x167)],'idSuffix':_0x293f41[_0x4a0548(0x123)]},c({'ref':_0x4cd491,'className':_0x3c434a},_0x379481),_0x23edd6);});function Y(_0x561962,_0x416939,_0x5b956a,_0x38f1d3,_0x270928){var _0x3a3dee=_0x3eb66f;return _0x5c13bc(_0x561962['tag'],c(c({'key':_0x416939},De(_0x561962,_0x5b956a,_0x270928)),_0x38f1d3),(xe(_0x561962,_0x5b956a)[_0x3a3dee(0x144)]||[])['map'](function(_0x5d28b7,_0x13d91d){var _0x460642=_0x3a3dee;return Y(_0x5d28b7,''[_0x460642(0x156)](_0x416939,'-')[_0x460642(0x156)](_0x561962[_0x460642(0x176)],'-')[_0x460642(0x156)](_0x13d91d),_0x5b956a,void 0x0,_0x270928);}));}function De(_0x18d6f1,_0x2806a0,_0x162d92){var _0x149b4b=_0x3eb66f,_0x2dcbad=c({},_0x18d6f1[_0x149b4b(0x18b)]);_0x162d92!=null&&_0x162d92[_0x149b4b(0x134)]&&_0x2dcbad[_0x149b4b(0x199)]==='colorChannel1'&&(_0x2dcbad[_0x149b4b(0x199)]=_0x162d92[_0x149b4b(0x134)]),_0x18d6f1[_0x149b4b(0x176)]==='mask'&&_0x2dcbad['id']&&(_0x2dcbad['id']=_0x2dcbad['id']+_0x2806a0[_0x149b4b(0x116)]),Object[_0x149b4b(0x155)](_0x2dcbad)[_0x149b4b(0x115)](function(_0x53c51a){var _0x29834c=_0x149b4b,_0x208bcf=_0x53c51a[0x0],_0x9fe15c=_0x53c51a[0x1];_0x208bcf===_0x29834c(0x130)&&typeof _0x9fe15c==_0x29834c(0x101)&&(_0x2dcbad[_0x208bcf]=_0x9fe15c[_0x29834c(0x169)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2806a0[_0x29834c(0x116)],')')));});var _0x5ca4b2=_0x2806a0['defIds'];return!_0x5ca4b2||_0x5ca4b2[_0x149b4b(0x1a3)]===0x0||(_0x18d6f1[_0x149b4b(0x176)]===_0x149b4b(0x12c)&&_0x2dcbad[_0x149b4b(0x12b)]&&(_0x2dcbad[_0x149b4b(0x12b)]=_0x2dcbad[_0x149b4b(0x12b)]+_0x2806a0['idSuffix']),Object[_0x149b4b(0x155)](_0x2dcbad)[_0x149b4b(0x115)](function(_0x54a16b){var _0x70d968=_0x149b4b,_0x39beda=_0x54a16b[0x0],_0x16a7f2=_0x54a16b[0x1];typeof _0x16a7f2==_0x70d968(0x101)&&(_0x2dcbad[_0x39beda]=_0x16a7f2[_0x70d968(0x169)](/url\(#(.*)\)/,_0x70d968(0x104)['concat'](_0x2806a0[_0x70d968(0x116)],')')));})),_0x2dcbad;}function xe(_0x34c4d2,_0x13d914){var _0x5e7632=_0x3eb66f,_0x1b3355,_0x472dc8=_0x13d914[_0x5e7632(0x167)];return!_0x472dc8||_0x472dc8['length']===0x0?_0x34c4d2:_0x34c4d2[_0x5e7632(0x176)]===_0x5e7632(0x122)&&(!((_0x1b3355=_0x34c4d2[_0x5e7632(0x144)])===null||_0x1b3355===void 0x0)&&_0x1b3355[_0x5e7632(0x1a3)])?c(c({},_0x34c4d2),{'children':_0x34c4d2[_0x5e7632(0x144)][_0x5e7632(0x15c)](function(_0x3b9116){var _0x200a7a=_0x5e7632;return typeof _0x3b9116[_0x200a7a(0x18b)]['id']=='string'&&_0x472dc8&&_0x472dc8[_0x200a7a(0x1a9)](_0x3b9116[_0x200a7a(0x18b)]['id'])?c(c({},_0x3b9116),{'attrs':c(c({},_0x3b9116[_0x200a7a(0x18b)]),{'id':_0x3b9116[_0x200a7a(0x18b)]['id']+_0x13d914[_0x200a7a(0x116)]})}):_0x3b9116;})}):_0x34c4d2;}function Le(){var _0x2323be=_0x3eb66f;return Math[_0x2323be(0x110)]()[_0x2323be(0x148)](0x24)['substring'](0x2,0x8);}W[_0x3eb66f(0x17a)]='UniverIcon';var ye={'tag':_0x3eb66f(0x168),'attrs':{'xmlns':_0x3eb66f(0x17d),'fill':'none','viewBox':_0x3eb66f(0x178),'width':_0x3eb66f(0x11e),'height':'1em'},'children':[{'tag':_0x3eb66f(0x12a),'attrs':{'fill':_0x3eb66f(0x186),'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':_0x3eb66f(0x186),'d':_0x3eb66f(0x12f),'fillRule':_0x3eb66f(0x164),'clipRule':'evenodd'}}]},B=_0x33acf1(function(_0x1b4209,_0x447a32){return _0x5c13bc(W,Object['assign']({},_0x1b4209,{'id':'live-share-icon','ref':_0x447a32,'icon':ye}));});B[_0x3eb66f(0x17a)]='LiveShareIcon';var Re=Object[_0x3eb66f(0x117)],Z=(_0xa5b805,_0x216d71,_0x28e6ff,_0x58feb7)=>{var _0x80a609=_0x3eb66f;for(var _0x1fada2=_0x58feb7>0x1?void 0x0:_0x58feb7?Re(_0x216d71,_0x28e6ff):_0x216d71,_0x304dd2=_0xa5b805[_0x80a609(0x1a3)]-0x1,_0x14e103;_0x304dd2>=0x0;_0x304dd2--)(_0x14e103=_0xa5b805[_0x304dd2])&&(_0x1fada2=_0x14e103(_0x1fada2)||_0x1fada2);return _0x1fada2;},f=(_0x2e5c93,_0x4eaa7)=>(_0x3b602f,_0x474e19)=>_0x4eaa7(_0x3b602f,_0x474e19,_0x2e5c93);let I=class extends _0x2968d7{constructor(_0x191f88,_0x980a71,_0x160263){var _0x43201a=_0x3eb66f;super(),d(this,_0x43201a(0x19c),new Map()),(this[_0x43201a(0x150)]=_0x191f88,this['_injector']=_0x980a71,this[_0x43201a(0x121)]=_0x160263,this[_0x43201a(0x19b)]());}async['getLiveShareCoordinator'](_0x644c2b){var _0x1dfabd=_0x3eb66f;return this[_0x1dfabd(0x19c)][_0x1dfabd(0x184)](_0x644c2b)||await this[_0x1dfabd(0x105)](_0x644c2b),this[_0x1dfabd(0x19c)][_0x1dfabd(0x14d)](_0x644c2b);}['_init'](){var _0x2e9506=_0x3eb66f;this[_0x2e9506(0x150)][_0x2e9506(0x17b)](_0x58c155[_0x2e9506(0x129)])[_0x2e9506(0x11c)](_0x64489(this[_0x2e9506(0x172)]))[_0x2e9506(0x182)](async _0x425593=>{var _0x4945d4=_0x2e9506;const _0x1d9035=_0x425593[_0x4945d4(0x161)]();this['_entities'][_0x4945d4(0x184)](_0x1d9035)||this[_0x4945d4(0x105)](_0x1d9035);}),this[_0x2e9506(0x150)][_0x2e9506(0x189)](_0x58c155[_0x2e9506(0x129)])[_0x2e9506(0x11c)](_0x64489(this['dispose$']))[_0x2e9506(0x182)](_0x515a74=>{var _0x4a7a1c=_0x2e9506;const _0x26e7f1=_0x515a74[_0x4a7a1c(0x161)](),_0x1dc535=this['_entities']['get'](_0x26e7f1);_0x1dc535==null||_0x1dc535['dispose']();});}async[_0x3eb66f(0x105)](_0x37258e){var _0x2d09bf=_0x3eb66f;const _0x53f0ba=await this[_0x2d09bf(0x121)][_0x2d09bf(0x106)](_0x37258e),_0x287bf8=this[_0x2d09bf(0x140)][_0x2d09bf(0x1a0)](C,_0x37258e,_0x53f0ba);return _0x287bf8[_0x2d09bf(0x11a)](),this['_entities'][_0x2d09bf(0x10d)](_0x37258e,_0x287bf8),_0x287bf8;}};I=Z([f(0x0,_0x516a71),f(0x1,_0x3f84a3(_0x15d8b5)),f(0x2,_0x3f84a3(_0x1b8367))],I);var h=(_0x5cd094=>(_0x5cd094[_0x3eb66f(0x149)]=_0x3eb66f(0x1a7),_0x5cd094[_0x3eb66f(0x166)]='idle',_0x5cd094[_0x3eb66f(0x135)]=_0x3eb66f(0x16b),_0x5cd094[_0x3eb66f(0x18d)]=_0x3eb66f(0x126),_0x5cd094[_0x3eb66f(0x15d)]=_0x3eb66f(0x198),_0x5cd094))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x2968d7{constructor(_0x2835e7,_0x597389,_0x1ad216,_0x42f58a,_0x30b660){var _0x4637f6=_0x3eb66f;super(),d(this,_0x4637f6(0x131),new _0x22c326(_0x4637f6(0x18e))),d(this,'status$',this[_0x4637f6(0x131)][_0x4637f6(0x17c)]()),d(this,'_init',!0x1),d(this,_0x4637f6(0x15a),null),d(this,_0x4637f6(0x171),null),(this[_0x4637f6(0x139)]=_0x2835e7,this[_0x4637f6(0x114)]=_0x597389,this[_0x4637f6(0x11b)]=_0x1ad216,this[_0x4637f6(0x15f)]=_0x42f58a,this[_0x4637f6(0x109)]=_0x30b660);}get[_0x3eb66f(0x18a)](){var _0x6a0a02=_0x3eb66f;return this[_0x6a0a02(0x131)][_0x6a0a02(0x13d)]();}[_0x3eb66f(0x158)](){var _0x22eac7=_0x3eb66f,_0x3e9a4e;(_0x3e9a4e=this[_0x22eac7(0x15a)])==null||_0x3e9a4e[_0x22eac7(0x158)](),this[_0x22eac7(0x131)][_0x22eac7(0x153)](_0x22eac7(0x18e)),this[_0x22eac7(0x131)][_0x22eac7(0x16e)]();}[_0x3eb66f(0x11a)](){var _0x4c977a=_0x3eb66f;this[_0x4c977a(0x19b)]||(this['_init']=!0x0,this[_0x4c977a(0x114)][_0x4c977a(0x175)][_0x4c977a(0x11c)](_0x64489(this['dispose$']))[_0x4c977a(0x182)](_0xf72c5b=>{var _0x17f580=_0x4c977a;switch(_0xf72c5b){case _0x39791d[_0x17f580(0x149)]:this['_handleOffline']();break;case _0x39791d['ONLINE']:this[_0x17f580(0x10b)]();break;}}),this[_0x4c977a(0x114)][_0x4c977a(0x136)]['pipe'](_0x64489(this['dispose$']))[_0x4c977a(0x182)](_0x4f1338=>{var _0x251f11=_0x4c977a;const {eventID:_0x204de6}=_0x4f1338;switch(_0x204de6){case _0x40c637['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4f1338);break;case _0x40c637[_0x251f11(0x180)]:this[_0x251f11(0x170)](_0x4f1338);break;case _0x40c637['LIVESHARE_TERMINATE']:this[_0x251f11(0x13c)]();break;case _0x40c637['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x4f1338);break;}}));}['tryStartPresenting'](){var _0x1eb66c=_0x3eb66f;this[_0x1eb66c(0x114)]['send']({'eventID':_0x40c637['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1eb66c(0x139)],'userID':this[_0x1eb66c(0x114)][_0x1eb66c(0x138)]()}},this[_0x1eb66c(0x139)]);}[_0x3eb66f(0x1a4)](){var _0x327742=_0x3eb66f;this['_status']===_0x327742(0x198)&&(this[_0x327742(0x131)][_0x327742(0x153)]('idle'),this[_0x327742(0x114)][_0x327742(0x173)]({'eventID':_0x40c637[_0x327742(0x127)],'data':{'unitID':this[_0x327742(0x139)]}},this[_0x327742(0x139)]));}['startFollowing'](){var _0x507ba6=_0x3eb66f;this[_0x507ba6(0x18a)]===_0x507ba6(0x126)&&(this['_status$'][_0x507ba6(0x153)](_0x507ba6(0x16b)),this[_0x507ba6(0x15e)]());}['stopFollowing'](){var _0x3e30d8=_0x3eb66f;this[_0x3e30d8(0x18a)]===_0x3e30d8(0x16b)&&this['_stopFollowing']();}[_0x3eb66f(0x174)](_0x15215b){var _0x46f13e=_0x3eb66f;const {presenter:_0x30af10}=_0x15215b[_0x46f13e(0x10e)],_0x54b30e=this[_0x46f13e(0x114)]['getMemberID']();this[_0x46f13e(0x171)]=_0x30af10,_0x30af10===_0x54b30e?(this['_stopFollowing'](),this[_0x46f13e(0x17e)]()):this[_0x46f13e(0x18a)]!==_0x46f13e(0x126)&&(this[_0x46f13e(0x162)](),this[_0x46f13e(0x15e)]());}[_0x3eb66f(0x16d)](){var _0x5d4bd5=_0x3eb66f;const _0x40c1a6={'eventID':_0x40c637[_0x5d4bd5(0x146)]};this['_collabSession'][_0x5d4bd5(0x173)](_0x40c1a6,this[_0x5d4bd5(0x139)]);}[_0x3eb66f(0x13c)](){var _0x659622=_0x3eb66f;this[_0x659622(0x171)]=null,this[_0x659622(0x18a)]!==_0x659622(0x198)&&this['_beIdle']();}[_0x3eb66f(0x112)](_0x2e1d73){var _0x2280f4=_0x3eb66f;if(this['_status']==='following'&&this[_0x2280f4(0x171)]===_0x2e1d73['data'][_0x2280f4(0x19a)]){const _0x302ee2=_0x4c17bf(_0x2e1d73['data'])['mutations']['reverse']()['find'](_0x20a2d0=>_0x20a2d0['id']===_0x2a9f7c['id']);if(_0x302ee2){const _0x543e43=_0x302ee2[_0x2280f4(0x107)][_0x2280f4(0x18c)],_0x335cc4=_0x302ee2[_0x2280f4(0x107)]['sheet']['id'];setTimeout(()=>{var _0x25ca2b=_0x2280f4;this['_commandService'][_0x25ca2b(0x1a8)](_0x3b7bd5['id'],{'unitId':_0x543e43,'subUnitId':_0x335cc4},{'fromCollab':!0x0});});}}}[_0x3eb66f(0x17e)](){var _0x23010c=_0x3eb66f;this['_status$'][_0x23010c(0x153)](_0x23010c(0x198));const _0x5ceb43=new Map(),_0x3ab671=this[_0x23010c(0x15a)]=new _0x22943b();_0x3ab671[_0x23010c(0x11d)](_0x56fa4e(()=>{var _0x5180d0=_0x23010c;_0x5ceb43['forEach'](_0x122fc5=>_0x122fc5[_0x5180d0(0x16e)]()),_0x5ceb43['clear']();})),_0x3ab671[_0x23010c(0x11d)](this[_0x23010c(0x109)]['onCommandExecuted'](_0x57b028=>{var _0x5c255f=_0x23010c,_0x40a3fa;if(_0x57b028[_0x5c255f(0x14a)]!==_0x50cabc[_0x5c255f(0x1a5)]||!this[_0x5c255f(0x15f)]['shouldShareOperation'](_0x57b028['id']))return;const {id:_0x18c313}=_0x57b028;let _0x3ded07;_0x5ceb43[_0x5c255f(0x184)](_0x18c313)?_0x3ded07=_0x5ceb43['get'](_0x18c313):(_0x3ded07=new _0x4a1280(),_0x5ceb43['set'](_0x18c313,_0x3ded07),_0x3ded07['pipe'](_0x1cb448((_0x40a3fa=this[_0x5c255f(0x11b)][_0x5c255f(0x13b)](Pe))!=null?_0x40a3fa:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5c255f(0x182)](_0x4165a6=>{var _0x3fe6d5=_0x5c255f;this[_0x3fe6d5(0x114)]['send']({'eventID':_0x40c637['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4165a6['id']]:{'id':_0x4165a6['id'],'params':JSON[_0x3fe6d5(0x119)](_0x4165a6[_0x3fe6d5(0x107)])}}}},this['_unitID']);})),_0x3ded07[_0x5c255f(0x153)](_0x57b028);})),this[_0x23010c(0x15f)][_0x23010c(0x17f)](this[_0x23010c(0x139)])[_0x23010c(0x115)](_0x16de63=>this[_0x23010c(0x114)]['send']({'eventID':_0x40c637[_0x23010c(0x180)],'data':{'unitID':this['_unitID'],'operations':{[_0x16de63['id']]:{'id':_0x16de63['id'],'params':JSON[_0x23010c(0x119)](_0x16de63[_0x23010c(0x107)])}}}},this[_0x23010c(0x139)]));}[_0x3eb66f(0x162)](){var _0x130467=_0x3eb66f,_0x54fd2e;this[_0x130467(0x131)]['next'](_0x130467(0x18e)),(_0x54fd2e=this[_0x130467(0x15a)])==null||_0x54fd2e[_0x130467(0x158)](),this['_commandDisposable']=null;}[_0x3eb66f(0x15e)](){var _0x510ac4=_0x3eb66f,_0x55a288;(_0x55a288=this[_0x510ac4(0x15a)])==null||_0x55a288[_0x510ac4(0x158)](),this['_status$']['next'](_0x510ac4(0x16b));}['_beIdle'](){var _0x2218a8=_0x3eb66f,_0x22ce86;this[_0x2218a8(0x131)][_0x2218a8(0x153)](_0x2218a8(0x18e)),(_0x22ce86=this['_commandDisposable'])==null||_0x22ce86[_0x2218a8(0x158)](),this['_commandDisposable']=null;}[_0x3eb66f(0x14e)](){var _0x535976=_0x3eb66f,_0x2c0dde;this['_status$'][_0x535976(0x153)](_0x535976(0x126)),(_0x2c0dde=this['_commandDisposable'])==null||_0x2c0dde['dispose']();}[_0x3eb66f(0x170)](_0x24f7c7){var _0x15c87a=_0x3eb66f;if([_0x15c87a(0x198),_0x15c87a(0x126),_0x15c87a(0x1a7)][_0x15c87a(0x1a9)](this[_0x15c87a(0x18a)])||!_0x24f7c7['data']['presenter']||_0x24f7c7[_0x15c87a(0x10e)][_0x15c87a(0x19f)]===this['_collabSession'][_0x15c87a(0x138)]())return;this[_0x15c87a(0x18a)]===_0x15c87a(0x18e)&&this['_startFollowing']();const _0x2f485e=_0x24f7c7[_0x15c87a(0x10e)][_0x15c87a(0x187)];Object['values'](_0x2f485e)[_0x15c87a(0x115)](_0x158936=>{var _0x512fb5=_0x15c87a;this['_commandService'][_0x512fb5(0x1a8)](_0x158936['id'],_0x158936[_0x512fb5(0x107)]?JSON[_0x512fb5(0x157)](_0x158936[_0x512fb5(0x107)]):null,{'fromCollab':!0x0});});}[_0x3eb66f(0x188)](){var _0x3a44e5=_0x3eb66f,_0x574c0c;this['_status$']['next'](_0x3a44e5(0x1a7)),(_0x574c0c=this['_commandDisposable'])==null||_0x574c0c[_0x3a44e5(0x158)]();}['_handleOnline'](){var _0x2d947d=_0x3eb66f;this[_0x2d947d(0x131)][_0x2d947d(0x153)](_0x2d947d(0x18e)),this[_0x2d947d(0x16d)]();}};C=Z([f(0x2,_0x314f53),f(0x3,_0x3f84a3(L)),f(0x4,_0x39ff78)],C);function Te(){var _0x41b232=_0x3eb66f;const _0x206bc3=_0x318ee9(I),_0x3cb97e=_0x318ee9(_0x516a71),_0x2713e6=_0x394850(()=>_0x3cb97e['getCurrentTypeOfUnit$'](_0x58c155[_0x41b232(0x129)]),void 0x0,!0x1,[]),[_0x21c736,_0x2b34db]=_0xd7af93(null),[_0x13b350,_0x3b5c0d]=_0xd7af93(h[_0x41b232(0x166)]),_0x2731f4=_0x3891b2(null);return _0x59b4f4(()=>(_0x2713e6&&_0x206bc3[_0x41b232(0x143)](_0x2713e6['getUnitId']())['then'](_0x3e4914=>{var _0x5f29cb=_0x41b232;_0x2b34db(_0x3e4914),_0x2731f4['current']=_0x3e4914[_0x5f29cb(0x13f)][_0x5f29cb(0x182)](_0x471ea4=>{_0x3b5c0d(_0x471ea4);});}),()=>{var _0x9e0507=_0x41b232,_0x45d08a;(_0x45d08a=_0x2731f4[_0x9e0507(0x123)])==null||_0x45d08a[_0x9e0507(0x141)](),_0x2731f4['current']=null;}),[_0x2713e6,_0x206bc3]),_0x21c736?_0x317f25(_0x11722c,{'align':'end','disabled':_0x13b350===h[_0x41b232(0x149)],'className':_0x41b232(0x124),'overlay':_0x317f25($e,{'status':_0x13b350,'coordinator':_0x21c736}),'children':_0x317f25(_0x41b232(0x197),{'className':_0x81ab49(_0x41b232(0x163),{'univer-cursor-not-allowed':_0x13b350===h[_0x41b232(0x149)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x13b350!==h[_0x41b232(0x149)]}),'type':_0x41b232(0x197),'children':_0x317f25(B,{'className':_0x41b232(0x190)})})}):null;}function $e(_0x4fd75a){var _0x3b8523=_0x3eb66f;const {status:_0x26b86d,coordinator:_0x49d2df}=_0x4fd75a;switch(_0x26b86d){case h[_0x3b8523(0x166)]:return _0x317f25(Fe,{'coordinator':_0x49d2df});case h[_0x3b8523(0x135)]:return _0x317f25(He,{'coordinator':_0x49d2df});case h[_0x3b8523(0x18d)]:return _0x317f25(je,{'coordinator':_0x49d2df});case h[_0x3b8523(0x149)]:return _0x317f25(Ve,{});case h[_0x3b8523(0x15d)]:return _0x317f25(Ue,{'coordinator':_0x49d2df});default:return null;}}function Fe(_0x499b26){var _0x2d2586=_0x3eb66f;const {coordinator:_0x1df800}=_0x499b26;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x2d2586(0x142),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x317f25(_0x29954b,{'onClick':()=>_0x1df800[_0x2d2586(0x12d)](),'children':_0x2d2586(0x10f)})]});}function He(_0x553cbf){var _0x305378=_0x3eb66f;const {coordinator:_0x45933c}=_0x553cbf;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x305378(0x142),{'className':_0x305378(0x16a),'children':_0x305378(0x16f)}),_0x317f25(_0x29954b,{'onClick':()=>_0x45933c[_0x305378(0x160)](),'children':'Stop\x20following'})]});}function je(_0x59c570){var _0x130793=_0x3eb66f;const {coordinator:_0x535713}=_0x59c570;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x130793(0x142),{'className':_0x130793(0x16a),'children':_0x130793(0x152)}),_0x317f25(_0x29954b,{'variant':_0x130793(0x137),'onClick':()=>_0x535713[_0x130793(0x1a2)](),'children':_0x130793(0x13e)})]});}function Ue(_0x227770){var _0xe31be0=_0x3eb66f;const {coordinator:_0x4c0903}=_0x227770;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0xe31be0(0x142),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x317f25(_0x29954b,{'variant':_0xe31be0(0x100),'onClick':()=>_0x4c0903[_0xe31be0(0x1a4)](),'children':_0xe31be0(0x154)})]});}function Ve(){var _0x2d4639=_0x3eb66f;return _0x317f25(_0xcbf086,{'children':_0x2d4639(0x14b)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x176aab,_0x3e99de,_0x438bba,_0x303e97)=>{for(var _0x466db5=_0x303e97>0x1?void 0x0:_0x303e97?Me(_0x3e99de,_0x438bba):_0x3e99de,_0x37da53=_0x176aab['length']-0x1,_0x363d41;_0x37da53>=0x0;_0x37da53--)(_0x363d41=_0x176aab[_0x37da53])&&(_0x466db5=_0x363d41(_0x466db5)||_0x466db5);return _0x466db5;},$=(_0x52b8fc,_0x5b6691)=>(_0x59eb1f,_0x3d9047)=>_0x5b6691(_0x59eb1f,_0x3d9047,_0x52b8fc);let b=class extends _0x28094d{constructor(_0x1ed1ff,_0x40625d){var _0x8f0c25=_0x3eb66f;super(),this[_0x8f0c25(0x140)]=_0x1ed1ff,this[_0x8f0c25(0x191)]=_0x40625d,this[_0x8f0c25(0x132)]();}['_mountLiveShare'](){var _0x19c19a=_0x3eb66f;this[_0x19c19a(0x183)](this['_uiPartsService'][_0x19c19a(0x192)](_0x45e07f[_0x19c19a(0x1a6)],()=>_0x67a89(Te,this['_injector'])));}};b=ke([$(0x0,_0x3f84a3(_0x15d8b5)),$(0x1,_0x326cbf)],b);var Ge=Object['defineProperty'],We=Object[_0x3eb66f(0x117)],Ye=(_0x70e9c1,_0x954166,_0x276c9e)=>_0x954166 in _0x70e9c1?Ge(_0x70e9c1,_0x954166,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x276c9e}):_0x70e9c1[_0x954166]=_0x276c9e,Be=(_0x47328e,_0x4cfded,_0x2f2279,_0x30ee14)=>{for(var _0x5a74f6=_0x30ee14>0x1?void 0x0:_0x30ee14?We(_0x4cfded,_0x2f2279):_0x4cfded,_0x4c4c3a=_0x47328e['length']-0x1,_0x1bacac;_0x4c4c3a>=0x0;_0x4c4c3a--)(_0x1bacac=_0x47328e[_0x4c4c3a])&&(_0x5a74f6=_0x1bacac(_0x5a74f6)||_0x5a74f6);return _0x5a74f6;},F=(_0x5e3ec0,_0x2a89c8)=>(_0x45cef5,_0x20c7d8)=>_0x2a89c8(_0x45cef5,_0x20c7d8,_0x5e3ec0),J=(_0x16e971,_0xd9f221,_0x337e01)=>Ye(_0x16e971,typeof _0xd9f221!=_0x3eb66f(0x15b)?_0xd9f221+'':_0xd9f221,_0x337e01);const Ze=_0x3eb66f(0x108);let O=class extends _0x47a77d{constructor(_0x2305ee=T,_0x2250c8,_0x4d146b){var _0x8c5b86=_0x3eb66f;super(),this[_0x8c5b86(0x19d)]=_0x2305ee,this[_0x8c5b86(0x140)]=_0x2250c8,this[_0x8c5b86(0x11b)]=_0x4d146b;const {..._0x96d20d}=_0x1f5ca3({},T,this[_0x8c5b86(0x19d)]);this[_0x8c5b86(0x11b)][_0x8c5b86(0x113)](Oe,_0x96d20d);}[_0x3eb66f(0x177)](){var _0x5f1ff0=_0x3eb66f;_0x1df7a9(this[_0x5f1ff0(0x140)],_0x227802([[L],[I],[m],[b]],this[_0x5f1ff0(0x19d)]['override'])),_0x4f8b46(this[_0x5f1ff0(0x140)],[[m]]);}['onRendered'](){var _0x2d4ecf=_0x3eb66f;_0x4f8b46(this[_0x2d4ecf(0x140)],[[b]]);}};J(O,_0x3eb66f(0x14a),_0x58c155[_0x3eb66f(0x165)]),J(O,_0x3eb66f(0x12e),Ze),O=Be([_0x419c79(_0x26cab8),F(0x1,_0x3f84a3(_0x15d8b5)),F(0x2,_0x314f53)],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 _0x351d60=_0x5600;(function(_0x3202eb,_0x3b4896){var _0x4d4b73=_0x5600,_0x6683e5=_0x3202eb();while(!![]){try{var _0x42fb6=-parseInt(_0x4d4b73(0x1c7))/0x1+-parseInt(_0x4d4b73(0x17b))/0x2*(parseInt(_0x4d4b73(0x172))/0x3)+parseInt(_0x4d4b73(0x151))/0x4+-parseInt(_0x4d4b73(0x170))/0x5*(-parseInt(_0x4d4b73(0x152))/0x6)+parseInt(_0x4d4b73(0x1ac))/0x7+parseInt(_0x4d4b73(0x15f))/0x8*(-parseInt(_0x4d4b73(0x14a))/0x9)+parseInt(_0x4d4b73(0x1c6))/0xa;if(_0x42fb6===_0x3b4896)break;else _0x6683e5['push'](_0x6683e5['shift']());}catch(_0x4e6543){_0x6683e5['push'](_0x6683e5['shift']());}}}(_0x2b53,0x45de2));var q=Object['defineProperty'],z=(_0x3ed690,_0x5e1962,_0x5e939e)=>_0x5e1962 in _0x3ed690?q(_0x3ed690,_0x5e1962,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e939e}):_0x3ed690[_0x5e1962]=_0x5e939e,d=(_0x3b01dd,_0x2d321,_0x39f49a)=>z(_0x3b01dd,typeof _0x2d321!=_0x351d60(0x1cf)?_0x2d321+'':_0x2d321,_0x39f49a);import{CollaborationSessionService as _0xc42d8f,SessionStatus as _0x5e13a0,UniverCollaborationClientPlugin as _0x29bcfe}from'@univerjs-pro/collaboration-client';import{Disposable as _0x224e4c,toDisposable as _0x420ae4,Inject as _0x3abca3,IUniverInstanceService as _0xe2d3f4,Injector as _0x3d57c1,IConfigService as _0x5be387,ICommandService as _0x236614,RxDisposable as _0x603bd6,UniverInstanceType as _0x4d5efd,DisposableCollection as _0x4feaf1,CommandType as _0x17a80f,DependentOn as _0x2195b7,Plugin as _0x599154,merge as _0x75c717,registerDependencies as _0x5bf58d,mergeOverrideWithDependencies as _0x38e8e6,touchDependencies as _0x281800}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x561dc1,InsertSheetMutation as _0x4f4864}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x226f14,SetScrollOperation as _0x33d4ca}from'@univerjs/sheets-ui';import{useDependency as _0x247355,useObservable as _0x21ae04,IUIPartsService as _0x230a4f,BuiltInUIPart as _0x4ca9bf,connectInjector as _0x32a071}from'@univerjs/ui';import{jsx as _0x37aa2b,jsxs as _0x2c44bf,Fragment as _0x3db7a5}from'react/jsx-runtime';import{Dropdown as _0x5f162c,clsx as _0x53843f,Button as _0x2ee079}from'@univerjs/design';import{forwardRef as _0x313345,useRef as _0xc18a52,createElement as _0x57f48a,useState as _0x2f9e5a,useEffect as _0x28d068}from'react';import{CollaborationEvent as _0x45c8cc,parseProtocolChangeset as _0x522c8f}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x18832b,Subject as _0x25a16f}from'rxjs';import{takeUntil as _0x48f007,throttleTime as _0xee77ca}from'rxjs/operators';const Oe='live-share.config',T={};function _0x2b53(){var _0x326341=['_reporters','2SxGsvQ','onStarting','status$','replace','defineProperty','children','colorChannel1','Stop\x20presenting','values','setConfig','asObservable','idSuffix','concat','univer-mb-3\x20univer-w-full\x20univer-text-sm','length','LIVESHARE_TERMINATE','div','_init','_entities','OPERATION','_stopFollowing','getUnitId','ONLINE','executeCommand','NOT_FOLLOWING','_unitID','getConfig','attrs','trim','evenodd','presenting','set','_collabSessionService','_handleTerminate','data','pluginName','OFFLINE','_startLiveShareCoordinator','dispose$','url(#$1','NEW_CHANGESETS','Stop\x20following','sheet','FOLLOWING','univer-size-4','none','defs','_config','send','2149959GTbLeU','following','UNIVER_SHEET','text','http://www.w3.org/2000/svg','idle','_handleOperation','substring','subscribe','dispose','clear','prototype','getOwnPropertySymbols','assign','displayName','_collabSession','UNIVER_LIVE_SHARE_PLUGIN','end','getOwnPropertyDescriptor','_commandDisposable','getInitialStates','call','indexOf','stringify','get','_injector','7964290pSBBsb','289308leGLVn','_uiPartsService','_startFollowing','createInstance','toString','add','next','reverse','symbol','You\x27are\x20offline.','UniverIcon','LIVESHARE_REQUEST_HOST','delete','live-share-icon','onCommandExecuted','defIds','Present\x20this\x20document','find','then','unsubscribe','registerComponent','You\x27re\x20presenting\x20the\x20document','onRendered','from','stopPresenting','currentColor','apply','registerInitialStateReporter','sessionStatus$','_univerInstanceService','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','You\x27re\x20following\x20the\x20presenter','LIVESHARE_OPERATION','_beIdle','0\x200\x2017\x2017','Start\x20following','You\x27re\x20not\x20following\x20the\x20presenter','offline','params','has','getTypeOfUnitAdded$','startFollowing','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','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','forEach','HEADER_MENU','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','memberID','_presenter','string','_liveShareService','type','propertyIsEnumerable','2210751ZCrMEd','_stopPresenting','_sharedOperations','unitId','getMemberID','xlink:href','entries','151784zmJSDG','9678deKfPf','getLiveShareCoordinator','tryStartPresenting','_fetchOperations','_handleNewChangeSets','extend','includes','1em','getTypeOfUnitDisposed$','_status$','disposeWithMe','_commandService','operations','16cUcYQf','shouldShareOperation','Start','PRESENTING','LIVESHARE_FETCH_OPERATIONS','tag','complete','fill','_startPresenting','icon','_handleNewHost','stopFollowing','_status','mask','_configService','presenter','IDLE','1025keYqKN','init','1216239OkapoE','current','_handleOnline','_mountLiveShare','_handleOffline','pipe','not-following','path'];_0x2b53=function(){return _0x326341;};return _0x2b53();}class L extends _0x224e4c{constructor(){var _0x4b5c00=_0x351d60;super(...arguments),d(this,_0x4b5c00(0x14c),new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0xafd0a){var _0x57023e=_0x351d60;return this[_0x57023e(0x14c)][_0x57023e(0x1cc)](_0xafd0a),_0x420ae4(()=>this[_0x57023e(0x14c)][_0x57023e(0x1d3)](_0xafd0a));}[_0x351d60(0x1e2)](_0xd0edd9){var _0x3a510c=_0x351d60;return this[_0x3a510c(0x17a)][_0x3a510c(0x1cc)](_0xd0edd9),_0x420ae4(()=>this[_0x3a510c(0x17a)][_0x3a510c(0x1d3)](_0xd0edd9));}[_0x351d60(0x160)](_0x5cf08e){var _0x43ad2e=_0x351d60;return this['_sharedOperations'][_0x43ad2e(0x1ee)](_0x5cf08e);}[_0x351d60(0x1c0)](_0x26b8ae){var _0x486893=_0x351d60;return Array[_0x486893(0x1de)](this[_0x486893(0x17a)])[_0x486893(0x1f3)](_0x570949=>_0x570949(_0x26b8ae));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x119d3e,_0x5d4671,_0x40b9e2,_0x7bbc55)=>{var _0x19c7a6=_0x351d60;for(var _0x17b9b0=_0x7bbc55>0x1?void 0x0:_0x7bbc55?Ee(_0x5d4671,_0x40b9e2):_0x5d4671,_0xc30d1f=_0x119d3e[_0x19c7a6(0x189)]-0x1,_0x36f6ef;_0xc30d1f>=0x0;_0xc30d1f--)(_0x36f6ef=_0x119d3e[_0xc30d1f])&&(_0x17b9b0=_0x36f6ef(_0x17b9b0)||_0x17b9b0);return _0x17b9b0;},Ne=(_0x39afc8,_0x55ca59)=>(_0x4cfd48,_0x687522)=>_0x55ca59(_0x4cfd48,_0x687522,_0x39afc8);let m=class extends _0x224e4c{constructor(_0x494f05){var _0x15d423=_0x351d60;super(),this[_0x15d423(0x147)]=_0x494f05,this['_init']();}['_init'](){var _0x327e4c=_0x351d60;[_0x226f14['id'],_0x33d4ca['id'],_0x561dc1['id']][_0x327e4c(0x1f4)](_0x33d76e=>{var _0x21a1e7=_0x327e4c;this[_0x21a1e7(0x15c)](this['_liveShareService']['registerSharedOperation'](_0x33d76e));});}};m=we([Ne(0x0,_0x3abca3(L))],m);var c=function(){var _0x1ebf06=_0x351d60;return c=Object[_0x1ebf06(0x1b9)]||function(_0x238969){var _0x432371=_0x1ebf06;for(var _0x372cff,_0x36148d=0x1,_0x55fcf4=arguments[_0x432371(0x189)];_0x36148d<_0x55fcf4;_0x36148d++){_0x372cff=arguments[_0x36148d];for(var _0x69aaa7 in _0x372cff)Object[_0x432371(0x1b7)]['hasOwnProperty'][_0x432371(0x1c1)](_0x372cff,_0x69aaa7)&&(_0x238969[_0x69aaa7]=_0x372cff[_0x69aaa7]);}return _0x238969;},c[_0x1ebf06(0x1e1)](this,arguments);},Ce=function(_0x4a6f4a,_0x21a8da){var _0xed7f5d=_0x351d60,_0x5309a1={};for(var _0x20d14b in _0x4a6f4a)Object['prototype']['hasOwnProperty'][_0xed7f5d(0x1c1)](_0x4a6f4a,_0x20d14b)&&_0x21a8da[_0xed7f5d(0x1c2)](_0x20d14b)<0x0&&(_0x5309a1[_0x20d14b]=_0x4a6f4a[_0x20d14b]);if(_0x4a6f4a!=null&&typeof Object[_0xed7f5d(0x1b8)]=='function'){for(var _0x3ea593=0x0,_0x20d14b=Object['getOwnPropertySymbols'](_0x4a6f4a);_0x3ea593<_0x20d14b['length'];_0x3ea593++)_0x21a8da['indexOf'](_0x20d14b[_0x3ea593])<0x0&&Object[_0xed7f5d(0x1b7)][_0xed7f5d(0x149)]['call'](_0x4a6f4a,_0x20d14b[_0x3ea593])&&(_0x5309a1[_0x20d14b[_0x3ea593]]=_0x4a6f4a[_0x20d14b[_0x3ea593]]);}return _0x5309a1;},W=_0x313345(function(_0x4826df,_0x2e87bf){var _0x2f29cb=_0x351d60,_0x42a1bf=_0x4826df['icon'],_0xa01011=_0x4826df['id'],_0x4742c9=_0x4826df['className'],_0x234a25=_0x4826df['extend'],_0x237405=Ce(_0x4826df,[_0x2f29cb(0x168),'id','className',_0x2f29cb(0x157)]),_0x3cd53f='univerjs-icon\x20univerjs-icon-'[_0x2f29cb(0x187)](_0xa01011,'\x20')[_0x2f29cb(0x187)](_0x4742c9||'')[_0x2f29cb(0x197)](),_0x1f267d=_0xc18a52('_'['concat'](Le()));return Y(_0x42a1bf,''['concat'](_0xa01011),{'defIds':_0x42a1bf['defIds'],'idSuffix':_0x1f267d[_0x2f29cb(0x173)]},c({'ref':_0x2e87bf,'className':_0x3cd53f},_0x237405),_0x234a25);});function Y(_0x572c0e,_0x16a8a3,_0x87fd89,_0x802cf8,_0x1dd164){var _0x21626b=_0x351d60;return _0x57f48a(_0x572c0e[_0x21626b(0x164)],c(c({'key':_0x16a8a3},De(_0x572c0e,_0x87fd89,_0x1dd164)),_0x802cf8),(xe(_0x572c0e,_0x87fd89)['children']||[])[_0x21626b(0x1f3)](function(_0x2adf0b,_0x4d0224){var _0x843ce8=_0x21626b;return Y(_0x2adf0b,''['concat'](_0x16a8a3,'-')[_0x843ce8(0x187)](_0x572c0e['tag'],'-')[_0x843ce8(0x187)](_0x4d0224),_0x87fd89,void 0x0,_0x1dd164);}));}function De(_0x27080c,_0x3da072,_0xca05fe){var _0x536e7b=_0x351d60,_0xf07a0=c({},_0x27080c[_0x536e7b(0x196)]);_0xca05fe!=null&&_0xca05fe[_0x536e7b(0x181)]&&_0xf07a0[_0x536e7b(0x166)]===_0x536e7b(0x181)&&(_0xf07a0['fill']=_0xca05fe[_0x536e7b(0x181)]),_0x27080c[_0x536e7b(0x164)]==='mask'&&_0xf07a0['id']&&(_0xf07a0['id']=_0xf07a0['id']+_0x3da072[_0x536e7b(0x186)]),Object[_0x536e7b(0x150)](_0xf07a0)['forEach'](function(_0x34a393){var _0x40da90=_0x536e7b,_0x52891f=_0x34a393[0x0],_0x416185=_0x34a393[0x1];_0x52891f===_0x40da90(0x16c)&&typeof _0x416185=='string'&&(_0xf07a0[_0x52891f]=_0x416185[_0x40da90(0x17e)](/url\(#(.*)\)/,_0x40da90(0x1a2)['concat'](_0x3da072[_0x40da90(0x186)],')')));});var _0x4780fb=_0x3da072[_0x536e7b(0x1d6)];return!_0x4780fb||_0x4780fb[_0x536e7b(0x189)]===0x0||(_0x27080c[_0x536e7b(0x164)]==='use'&&_0xf07a0[_0x536e7b(0x14f)]&&(_0xf07a0['xlink:href']=_0xf07a0[_0x536e7b(0x14f)]+_0x3da072[_0x536e7b(0x186)]),Object['entries'](_0xf07a0)[_0x536e7b(0x1f4)](function(_0x3c7de2){var _0x1ae81b=_0x536e7b,_0x22beaa=_0x3c7de2[0x0],_0x3fbfe6=_0x3c7de2[0x1];typeof _0x3fbfe6==_0x1ae81b(0x146)&&(_0xf07a0[_0x22beaa]=_0x3fbfe6[_0x1ae81b(0x17e)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3da072['idSuffix'],')')));})),_0xf07a0;}function xe(_0xa9fdea,_0x1d0c3e){var _0x36192b=_0x351d60,_0x3616a9,_0x32ed88=_0x1d0c3e[_0x36192b(0x1d6)];return!_0x32ed88||_0x32ed88[_0x36192b(0x189)]===0x0?_0xa9fdea:_0xa9fdea[_0x36192b(0x164)]===_0x36192b(0x1a9)&&(!((_0x3616a9=_0xa9fdea[_0x36192b(0x180)])===null||_0x3616a9===void 0x0)&&_0x3616a9[_0x36192b(0x189)])?c(c({},_0xa9fdea),{'children':_0xa9fdea[_0x36192b(0x180)]['map'](function(_0x32a0bd){var _0x13b65f=_0x36192b;return typeof _0x32a0bd[_0x13b65f(0x196)]['id']=='string'&&_0x32ed88&&_0x32ed88[_0x13b65f(0x158)](_0x32a0bd['attrs']['id'])?c(c({},_0x32a0bd),{'attrs':c(c({},_0x32a0bd['attrs']),{'id':_0x32a0bd[_0x13b65f(0x196)]['id']+_0x1d0c3e[_0x13b65f(0x186)]})}):_0x32a0bd;})}):_0xa9fdea;}function Le(){var _0x11fb04=_0x351d60;return Math['random']()[_0x11fb04(0x1cb)](0x24)[_0x11fb04(0x1b3)](0x2,0x8);}W[_0x351d60(0x1ba)]=_0x351d60(0x1d1);var ye={'tag':'svg','attrs':{'xmlns':_0x351d60(0x1b0),'fill':_0x351d60(0x1a8),'viewBox':_0x351d60(0x1e9),'width':_0x351d60(0x159),'height':_0x351d60(0x159)},'children':[{'tag':_0x351d60(0x179),'attrs':{'fill':_0x351d60(0x1e0),'d':_0x351d60(0x1f1)}},{'tag':_0x351d60(0x179),'attrs':{'fill':_0x351d60(0x1e0),'d':_0x351d60(0x1e5),'fillRule':'evenodd','clipRule':_0x351d60(0x198)}}]},B=_0x313345(function(_0x1cebe0,_0x2c6fb5){var _0xaa98f8=_0x351d60;return _0x57f48a(W,Object['assign']({},_0x1cebe0,{'id':_0xaa98f8(0x1d4),'ref':_0x2c6fb5,'icon':ye}));});B[_0x351d60(0x1ba)]='LiveShareIcon';var Re=Object[_0x351d60(0x1be)],Z=(_0x45c92f,_0x354020,_0x4af8f6,_0x5cb222)=>{var _0x2d3a65=_0x351d60;for(var _0xedb37b=_0x5cb222>0x1?void 0x0:_0x5cb222?Re(_0x354020,_0x4af8f6):_0x354020,_0x9a6e72=_0x45c92f[_0x2d3a65(0x189)]-0x1,_0x2d0cc6;_0x9a6e72>=0x0;_0x9a6e72--)(_0x2d0cc6=_0x45c92f[_0x9a6e72])&&(_0xedb37b=_0x2d0cc6(_0xedb37b)||_0xedb37b);return _0xedb37b;},f=(_0x32c8ab,_0x21d72a)=>(_0x3dd1b2,_0xdf9fff)=>_0x21d72a(_0x3dd1b2,_0xdf9fff,_0x32c8ab);let I=class extends _0x603bd6{constructor(_0x1bc6c3,_0x2fbdcd,_0x10b65b){var _0x593a92=_0x351d60;super(),d(this,_0x593a92(0x18d),new Map()),(this[_0x593a92(0x1e4)]=_0x1bc6c3,this[_0x593a92(0x1c5)]=_0x2fbdcd,this[_0x593a92(0x19b)]=_0x10b65b,this['_init']());}async['getLiveShareCoordinator'](_0x41649b){var _0x42114a=_0x351d60;return this['_entities'][_0x42114a(0x1ee)](_0x41649b)||await this[_0x42114a(0x1a0)](_0x41649b),this[_0x42114a(0x18d)][_0x42114a(0x1c4)](_0x41649b);}[_0x351d60(0x18c)](){var _0x332f24=_0x351d60;this[_0x332f24(0x1e4)][_0x332f24(0x1ef)](_0x4d5efd[_0x332f24(0x1ae)])[_0x332f24(0x177)](_0x48f007(this[_0x332f24(0x1a1)]))[_0x332f24(0x1b4)](async _0x3c9659=>{var _0x2d9bdb=_0x332f24;const _0x40d245=_0x3c9659[_0x2d9bdb(0x190)]();this[_0x2d9bdb(0x18d)][_0x2d9bdb(0x1ee)](_0x40d245)||this[_0x2d9bdb(0x1a0)](_0x40d245);}),this[_0x332f24(0x1e4)][_0x332f24(0x15a)](_0x4d5efd[_0x332f24(0x1ae)])[_0x332f24(0x177)](_0x48f007(this[_0x332f24(0x1a1)]))['subscribe'](_0x16b09c=>{var _0x2d5564=_0x332f24;const _0x3922af=_0x16b09c[_0x2d5564(0x190)](),_0x3b7812=this['_entities'][_0x2d5564(0x1c4)](_0x3922af);_0x3b7812==null||_0x3b7812[_0x2d5564(0x1b5)]();});}async['_startLiveShareCoordinator'](_0x5cdf27){var _0x38f116=_0x351d60;const _0x5c2919=await this[_0x38f116(0x19b)]['requireSession'](_0x5cdf27),_0x4b671f=this[_0x38f116(0x1c5)][_0x38f116(0x1ca)](C,_0x5cdf27,_0x5c2919);return _0x4b671f['init'](),this[_0x38f116(0x18d)][_0x38f116(0x19a)](_0x5cdf27,_0x4b671f),_0x4b671f;}};I=Z([f(0x0,_0xe2d3f4),f(0x1,_0x3abca3(_0x3d57c1)),f(0x2,_0x3abca3(_0xc42d8f))],I);var h=(_0x15ab43=>(_0x15ab43[_0x351d60(0x19f)]=_0x351d60(0x1ec),_0x15ab43['IDLE']='idle',_0x15ab43[_0x351d60(0x1a6)]=_0x351d60(0x1ad),_0x15ab43['NOT_FOLLOWING']=_0x351d60(0x178),_0x15ab43[_0x351d60(0x162)]=_0x351d60(0x199),_0x15ab43))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x603bd6{constructor(_0x42a68e,_0x33c978,_0x427774,_0x546007,_0x51a485){var _0xb6f8d7=_0x351d60;super(),d(this,_0xb6f8d7(0x15b),new _0x18832b(_0xb6f8d7(0x1b1))),d(this,'status$',this[_0xb6f8d7(0x15b)][_0xb6f8d7(0x185)]()),d(this,_0xb6f8d7(0x18c),!0x1),d(this,_0xb6f8d7(0x1bf),null),d(this,_0xb6f8d7(0x145),null),(this['_unitID']=_0x42a68e,this[_0xb6f8d7(0x1bb)]=_0x33c978,this[_0xb6f8d7(0x16d)]=_0x427774,this[_0xb6f8d7(0x147)]=_0x546007,this[_0xb6f8d7(0x15d)]=_0x51a485);}get[_0x351d60(0x16b)](){return this['_status$']['getValue']();}[_0x351d60(0x1b5)](){var _0x5ba52f=_0x351d60,_0x35157a;(_0x35157a=this[_0x5ba52f(0x1bf)])==null||_0x35157a[_0x5ba52f(0x1b5)](),this[_0x5ba52f(0x15b)][_0x5ba52f(0x1cd)](_0x5ba52f(0x1b1)),this['_status$'][_0x5ba52f(0x165)]();}[_0x351d60(0x171)](){var _0x50ed1c=_0x351d60;this[_0x50ed1c(0x18c)]||(this[_0x50ed1c(0x18c)]=!0x0,this[_0x50ed1c(0x1bb)][_0x50ed1c(0x1e3)][_0x50ed1c(0x177)](_0x48f007(this['dispose$']))[_0x50ed1c(0x1b4)](_0xc74f39=>{var _0x49d599=_0x50ed1c;switch(_0xc74f39){case _0x5e13a0[_0x49d599(0x19f)]:this[_0x49d599(0x176)]();break;case _0x5e13a0[_0x49d599(0x191)]:this[_0x49d599(0x174)]();break;}}),this['_collabSession']['event$']['pipe'](_0x48f007(this[_0x50ed1c(0x1a1)]))[_0x50ed1c(0x1b4)](_0x20d08e=>{var _0x3ec6e9=_0x50ed1c;const {eventID:_0x4395c0}=_0x20d08e;switch(_0x4395c0){case _0x45c8cc['LIVESHARE_NEW_HOST']:this[_0x3ec6e9(0x169)](_0x20d08e);break;case _0x45c8cc[_0x3ec6e9(0x1e7)]:this[_0x3ec6e9(0x1b2)](_0x20d08e);break;case _0x45c8cc[_0x3ec6e9(0x18a)]:this['_handleTerminate']();break;case _0x45c8cc[_0x3ec6e9(0x1a3)]:this['_handleNewChangeSets'](_0x20d08e);break;}}));}['tryStartPresenting'](){var _0x31f6a8=_0x351d60;this[_0x31f6a8(0x1bb)][_0x31f6a8(0x1ab)]({'eventID':_0x45c8cc[_0x31f6a8(0x1d2)],'data':{'unitID':this[_0x31f6a8(0x194)],'userID':this[_0x31f6a8(0x1bb)][_0x31f6a8(0x14e)]()}},this[_0x31f6a8(0x194)]);}[_0x351d60(0x1df)](){var _0x32b3ed=_0x351d60;this[_0x32b3ed(0x16b)]==='presenting'&&(this[_0x32b3ed(0x15b)]['next'](_0x32b3ed(0x1b1)),this[_0x32b3ed(0x1bb)][_0x32b3ed(0x1ab)]({'eventID':_0x45c8cc[_0x32b3ed(0x18a)],'data':{'unitID':this[_0x32b3ed(0x194)]}},this[_0x32b3ed(0x194)]));}[_0x351d60(0x1f0)](){var _0x19bddf=_0x351d60;this[_0x19bddf(0x16b)]==='not-following'&&(this['_status$']['next'](_0x19bddf(0x1ad)),this[_0x19bddf(0x1c9)]());}[_0x351d60(0x16a)](){var _0x974b71=_0x351d60;this['_status']===_0x974b71(0x1ad)&&this[_0x974b71(0x18f)]();}['_handleNewHost'](_0x1deae4){var _0x11b954=_0x351d60;const {presenter:_0xcc3c99}=_0x1deae4[_0x11b954(0x19d)],_0x3e0b26=this['_collabSession'][_0x11b954(0x14e)]();this['_presenter']=_0xcc3c99,_0xcc3c99===_0x3e0b26?(this[_0x11b954(0x18f)](),this[_0x11b954(0x167)]()):this['_status']!=='not-following'&&(this[_0x11b954(0x14b)](),this[_0x11b954(0x1c9)]());}['_fetchOperations'](){var _0x26a02e=_0x351d60;const _0x100712={'eventID':_0x45c8cc[_0x26a02e(0x163)]};this['_collabSession']['send'](_0x100712,this[_0x26a02e(0x194)]);}[_0x351d60(0x19c)](){var _0x562ca0=_0x351d60;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x562ca0(0x1e8)]();}[_0x351d60(0x156)](_0x51b729){var _0x30914d=_0x351d60;if(this[_0x30914d(0x16b)]===_0x30914d(0x1ad)&&this[_0x30914d(0x145)]===_0x51b729[_0x30914d(0x19d)][_0x30914d(0x144)]){const _0x39ffc2=_0x522c8f(_0x51b729[_0x30914d(0x19d)])['mutations'][_0x30914d(0x1ce)]()[_0x30914d(0x1d8)](_0x13a316=>_0x13a316['id']===_0x4f4864['id']);if(_0x39ffc2){const _0x28520b=_0x39ffc2[_0x30914d(0x1ed)][_0x30914d(0x14d)],_0x5057a2=_0x39ffc2[_0x30914d(0x1ed)][_0x30914d(0x1a5)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x561dc1['id'],{'unitId':_0x28520b,'subUnitId':_0x5057a2},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x159763=_0x351d60;this[_0x159763(0x15b)][_0x159763(0x1cd)](_0x159763(0x199));const _0x29bbda=new Map(),_0x382444=this['_commandDisposable']=new _0x4feaf1();_0x382444[_0x159763(0x1cc)](_0x420ae4(()=>{var _0x445305=_0x159763;_0x29bbda[_0x445305(0x1f4)](_0x1d8de1=>_0x1d8de1[_0x445305(0x165)]()),_0x29bbda[_0x445305(0x1b6)]();})),_0x382444['add'](this[_0x159763(0x15d)][_0x159763(0x1d5)](_0x58133c=>{var _0xd2a746=_0x159763,_0x1c3d76;if(_0x58133c['type']!==_0x17a80f[_0xd2a746(0x18e)]||!this[_0xd2a746(0x147)][_0xd2a746(0x160)](_0x58133c['id']))return;const {id:_0x5e9354}=_0x58133c;let _0x4cf3be;_0x29bbda[_0xd2a746(0x1ee)](_0x5e9354)?_0x4cf3be=_0x29bbda['get'](_0x5e9354):(_0x4cf3be=new _0x25a16f(),_0x29bbda['set'](_0x5e9354,_0x4cf3be),_0x4cf3be[_0xd2a746(0x177)](_0xee77ca((_0x1c3d76=this[_0xd2a746(0x16d)][_0xd2a746(0x195)](Pe))!=null?_0x1c3d76:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4f9cbd=>{var _0x53ca8=_0xd2a746;this[_0x53ca8(0x1bb)][_0x53ca8(0x1ab)]({'eventID':_0x45c8cc[_0x53ca8(0x1e7)],'data':{'unitID':this[_0x53ca8(0x194)],'operations':{[_0x4f9cbd['id']]:{'id':_0x4f9cbd['id'],'params':JSON[_0x53ca8(0x1c3)](_0x4f9cbd[_0x53ca8(0x1ed)])}}}},this['_unitID']);})),_0x4cf3be[_0xd2a746(0x1cd)](_0x58133c);})),this[_0x159763(0x147)][_0x159763(0x1c0)](this[_0x159763(0x194)])['forEach'](_0x1404fd=>this[_0x159763(0x1bb)][_0x159763(0x1ab)]({'eventID':_0x45c8cc[_0x159763(0x1e7)],'data':{'unitID':this[_0x159763(0x194)],'operations':{[_0x1404fd['id']]:{'id':_0x1404fd['id'],'params':JSON[_0x159763(0x1c3)](_0x1404fd[_0x159763(0x1ed)])}}}},this[_0x159763(0x194)]));}['_stopPresenting'](){var _0x2c37d9=_0x351d60,_0x4ba27b;this['_status$'][_0x2c37d9(0x1cd)]('idle'),(_0x4ba27b=this['_commandDisposable'])==null||_0x4ba27b[_0x2c37d9(0x1b5)](),this[_0x2c37d9(0x1bf)]=null;}[_0x351d60(0x1c9)](){var _0x4b7293=_0x351d60,_0x3ea8b3;(_0x3ea8b3=this[_0x4b7293(0x1bf)])==null||_0x3ea8b3[_0x4b7293(0x1b5)](),this[_0x4b7293(0x15b)][_0x4b7293(0x1cd)](_0x4b7293(0x1ad));}[_0x351d60(0x1e8)](){var _0x4f7f0f=_0x351d60,_0x502f12;this[_0x4f7f0f(0x15b)][_0x4f7f0f(0x1cd)]('idle'),(_0x502f12=this[_0x4f7f0f(0x1bf)])==null||_0x502f12[_0x4f7f0f(0x1b5)](),this[_0x4f7f0f(0x1bf)]=null;}[_0x351d60(0x18f)](){var _0x3a27e8=_0x351d60,_0x14767d;this[_0x3a27e8(0x15b)][_0x3a27e8(0x1cd)]('not-following'),(_0x14767d=this[_0x3a27e8(0x1bf)])==null||_0x14767d[_0x3a27e8(0x1b5)]();}[_0x351d60(0x1b2)](_0x3d012e){var _0x1e9453=_0x351d60;if([_0x1e9453(0x199),_0x1e9453(0x178),_0x1e9453(0x1ec)][_0x1e9453(0x158)](this['_status'])||!_0x3d012e[_0x1e9453(0x19d)]['presenter']||_0x3d012e[_0x1e9453(0x19d)][_0x1e9453(0x16e)]===this[_0x1e9453(0x1bb)][_0x1e9453(0x14e)]())return;this[_0x1e9453(0x16b)]==='idle'&&this[_0x1e9453(0x1c9)]();const _0x2b2d0b=_0x3d012e['data'][_0x1e9453(0x15e)];Object[_0x1e9453(0x183)](_0x2b2d0b)[_0x1e9453(0x1f4)](_0x49c5d6=>{var _0x30eea5=_0x1e9453;this[_0x30eea5(0x15d)][_0x30eea5(0x192)](_0x49c5d6['id'],_0x49c5d6[_0x30eea5(0x1ed)]?JSON['parse'](_0x49c5d6[_0x30eea5(0x1ed)]):null,{'fromCollab':!0x0});});}[_0x351d60(0x176)](){var _0x1c449a=_0x351d60,_0x1e9e50;this['_status$']['next'](_0x1c449a(0x1ec)),(_0x1e9e50=this[_0x1c449a(0x1bf)])==null||_0x1e9e50['dispose']();}['_handleOnline'](){var _0x5d2211=_0x351d60;this[_0x5d2211(0x15b)][_0x5d2211(0x1cd)](_0x5d2211(0x1b1)),this[_0x5d2211(0x155)]();}};C=Z([f(0x2,_0x5be387),f(0x3,_0x3abca3(L)),f(0x4,_0x236614)],C);function Te(){var _0x5a3bfb=_0x351d60;const _0x1ccd49=_0x247355(I),_0x21c711=_0x247355(_0xe2d3f4),_0x3d57c2=_0x21ae04(()=>_0x21c711['getCurrentTypeOfUnit$'](_0x4d5efd[_0x5a3bfb(0x1ae)]),void 0x0,!0x1,[]),[_0x5af5b0,_0xcc65c3]=_0x2f9e5a(null),[_0xa7b908,_0x1c86a6]=_0x2f9e5a(h[_0x5a3bfb(0x16f)]),_0x2663b3=_0xc18a52(null);return _0x28d068(()=>(_0x3d57c2&&_0x1ccd49[_0x5a3bfb(0x153)](_0x3d57c2[_0x5a3bfb(0x190)]())[_0x5a3bfb(0x1d9)](_0x3e7446=>{var _0x29a76d=_0x5a3bfb;_0xcc65c3(_0x3e7446),_0x2663b3['current']=_0x3e7446[_0x29a76d(0x17d)]['subscribe'](_0x3d6218=>{_0x1c86a6(_0x3d6218);});}),()=>{var _0x33543b=_0x5a3bfb,_0xe84aff;(_0xe84aff=_0x2663b3['current'])==null||_0xe84aff[_0x33543b(0x1da)](),_0x2663b3['current']=null;}),[_0x3d57c2,_0x1ccd49]),_0x5af5b0?_0x37aa2b(_0x5f162c,{'align':_0x5a3bfb(0x1bd),'disabled':_0xa7b908===h['OFFLINE'],'className':_0x5a3bfb(0x143),'overlay':_0x37aa2b($e,{'status':_0xa7b908,'coordinator':_0x5af5b0}),'children':_0x37aa2b('button',{'className':_0x53843f(_0x5a3bfb(0x1f2),{'univer-cursor-not-allowed':_0xa7b908===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xa7b908!==h[_0x5a3bfb(0x19f)]}),'type':'button','children':_0x37aa2b(B,{'className':_0x5a3bfb(0x1a7)})})}):null;}function $e(_0x3d7363){var _0x542f01=_0x351d60;const {status:_0x58664e,coordinator:_0x5c4fe9}=_0x3d7363;switch(_0x58664e){case h[_0x542f01(0x16f)]:return _0x37aa2b(Fe,{'coordinator':_0x5c4fe9});case h[_0x542f01(0x1a6)]:return _0x37aa2b(He,{'coordinator':_0x5c4fe9});case h[_0x542f01(0x193)]:return _0x37aa2b(je,{'coordinator':_0x5c4fe9});case h['OFFLINE']:return _0x37aa2b(Ve,{});case h[_0x542f01(0x162)]:return _0x37aa2b(Ue,{'coordinator':_0x5c4fe9});default:return null;}}function Fe(_0x1926d9){var _0x4452c2=_0x351d60;const {coordinator:_0x5531de}=_0x1926d9;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x4452c2(0x18b),{'className':_0x4452c2(0x188),'children':_0x4452c2(0x1d7)}),_0x37aa2b(_0x2ee079,{'onClick':()=>_0x5531de[_0x4452c2(0x154)](),'children':_0x4452c2(0x161)})]});}function He(_0x2bcad2){var _0x4fac49=_0x351d60;const {coordinator:_0x17a3ee}=_0x2bcad2;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x4fac49(0x18b),{'className':_0x4fac49(0x188),'children':_0x4fac49(0x1e6)}),_0x37aa2b(_0x2ee079,{'onClick':()=>_0x17a3ee[_0x4fac49(0x16a)](),'children':_0x4fac49(0x1a4)})]});}function je(_0x29af5e){var _0x48fca9=_0x351d60;const {coordinator:_0x726358}=_0x29af5e;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x48fca9(0x18b),{'className':_0x48fca9(0x188),'children':_0x48fca9(0x1eb)}),_0x37aa2b(_0x2ee079,{'variant':_0x48fca9(0x1af),'onClick':()=>_0x726358[_0x48fca9(0x1f0)](),'children':_0x48fca9(0x1ea)})]});}function Ue(_0x1f2b97){var _0x5ac823=_0x351d60;const {coordinator:_0x1cb7d0}=_0x1f2b97;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x5ac823(0x18b),{'className':_0x5ac823(0x188),'children':_0x5ac823(0x1dc)}),_0x37aa2b(_0x2ee079,{'variant':'default','onClick':()=>_0x1cb7d0['stopPresenting'](),'children':_0x5ac823(0x182)})]});}function Ve(){var _0x538e5d=_0x351d60;return _0x37aa2b(_0x3db7a5,{'children':_0x538e5d(0x1d0)});}var Me=Object[_0x351d60(0x1be)],ke=(_0x34df80,_0x7604c8,_0x400b67,_0x25bab7)=>{var _0xb254b6=_0x351d60;for(var _0x2f8102=_0x25bab7>0x1?void 0x0:_0x25bab7?Me(_0x7604c8,_0x400b67):_0x7604c8,_0x4175f3=_0x34df80[_0xb254b6(0x189)]-0x1,_0x344cb8;_0x4175f3>=0x0;_0x4175f3--)(_0x344cb8=_0x34df80[_0x4175f3])&&(_0x2f8102=_0x344cb8(_0x2f8102)||_0x2f8102);return _0x2f8102;},$=(_0x39b57a,_0x74a61c)=>(_0x424acd,_0x52eb3c)=>_0x74a61c(_0x424acd,_0x52eb3c,_0x39b57a);let b=class extends _0x224e4c{constructor(_0x55a9d2,_0x34b986){var _0x559de6=_0x351d60;super(),this[_0x559de6(0x1c5)]=_0x55a9d2,this[_0x559de6(0x1c8)]=_0x34b986,this[_0x559de6(0x175)]();}[_0x351d60(0x175)](){var _0x151a72=_0x351d60;this['disposeWithMe'](this[_0x151a72(0x1c8)][_0x151a72(0x1db)](_0x4ca9bf[_0x151a72(0x1f5)],()=>_0x32a071(Te,this[_0x151a72(0x1c5)])));}};b=ke([$(0x0,_0x3abca3(_0x3d57c1)),$(0x1,_0x230a4f)],b);var Ge=Object[_0x351d60(0x17f)],We=Object[_0x351d60(0x1be)],Ye=(_0xe8d861,_0x59cacd,_0x54c48c)=>_0x59cacd in _0xe8d861?Ge(_0xe8d861,_0x59cacd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54c48c}):_0xe8d861[_0x59cacd]=_0x54c48c,Be=(_0x171c52,_0x2780dd,_0x445de9,_0x30dacd)=>{var _0x4891ce=_0x351d60;for(var _0x1797d1=_0x30dacd>0x1?void 0x0:_0x30dacd?We(_0x2780dd,_0x445de9):_0x2780dd,_0x176d02=_0x171c52[_0x4891ce(0x189)]-0x1,_0x12d568;_0x176d02>=0x0;_0x176d02--)(_0x12d568=_0x171c52[_0x176d02])&&(_0x1797d1=_0x12d568(_0x1797d1)||_0x1797d1);return _0x1797d1;},F=(_0xd81a3a,_0x198ee9)=>(_0x4afe72,_0x1c5b78)=>_0x198ee9(_0x4afe72,_0x1c5b78,_0xd81a3a),J=(_0x4d826a,_0x4b0cf0,_0x31876f)=>Ye(_0x4d826a,typeof _0x4b0cf0!=_0x351d60(0x1cf)?_0x4b0cf0+'':_0x4b0cf0,_0x31876f);const Ze=_0x351d60(0x1bc);let O=class extends _0x599154{constructor(_0x29abb2=T,_0x263e40,_0x2732a8){var _0x3e7af6=_0x351d60;super(),this[_0x3e7af6(0x1aa)]=_0x29abb2,this[_0x3e7af6(0x1c5)]=_0x263e40,this[_0x3e7af6(0x16d)]=_0x2732a8;const {..._0x5771c1}=_0x75c717({},T,this[_0x3e7af6(0x1aa)]);this[_0x3e7af6(0x16d)][_0x3e7af6(0x184)](Oe,_0x5771c1);}[_0x351d60(0x17c)](){var _0x3b2fb7=_0x351d60;_0x5bf58d(this['_injector'],_0x38e8e6([[L],[I],[m],[b]],this['_config']['override'])),_0x281800(this[_0x3b2fb7(0x1c5)],[[m]]);}[_0x351d60(0x1dd)](){var _0x227f11=_0x351d60;_0x281800(this[_0x227f11(0x1c5)],[[b]]);}};function _0x5600(_0x49bd8d,_0x394706){var _0x2b53ef=_0x2b53();return _0x5600=function(_0x560029,_0x471ecd){_0x560029=_0x560029-0x143;var _0x37baa4=_0x2b53ef[_0x560029];return _0x37baa4;},_0x5600(_0x49bd8d,_0x394706);}J(O,_0x351d60(0x148),_0x4d5efd['UNIVER_UNKNOWN']),J(O,_0x351d60(0x19e),Ze),O=Be([_0x2195b7(_0x29bcfe),F(0x1,_0x3abca3(_0x3d57c1)),F(0x2,_0x5be387)],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 _0x436d(){var _0x5ee7d5=['getCurrentTypeOfUnit$','get','LiveShareCoordinator','presenting','createElement','_collabSession','executeCommand','Start','has','defIds','7534496OiQOwg','getOwnPropertySymbols','currentColor','colorChannel1','pluginName','React','then','prototype','Stop\x20presenting','NOT_FOLLOWING','_injector','_handleNewHost','assign','displayName','takeUntil','params','_stopFollowing','clear','57BzAkuj','_handleOperation','presenter','subscribe','startFollowing','_startPresenting','live-share.config','status$','extend','throttleTime','attrs','getTypeOfUnitDisposed$','following','24BzXRAr','UniverDesign','@univerjs-pro/collaboration-client','from','parse','disposeWithMe','_handleTerminate','concat','_unitID','memberID','forwardRef','url(#$1','_fetchOperations','rxjs','string','_startFollowing','CollaborationEvent','DesktopLiveShareController','6309259OtzHuE','Stop\x20following','xlink:href','onRendered','Fragment','_reporters','useDependency','svg','InsertSheetMutation','getValue','symbol','set','UniverLiveSharePlugin','_init','add','useState','tryStartPresenting','@univerjs/sheets','PRESENTING','Button','getInitialStates','LiveShareStatus','stopPresenting','UniverProLiveShare','_handleNewChangeSets','pipe','react/jsx-runtime','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','_handleOffline','unitId','indexOf','includes','_commandDisposable','LiveShare','touchDependencies','univerjs-icon\x20univerjs-icon-','defs','UniverUi','ICommandService','complete','unsubscribe','IUniverInstanceService','_uiPartsService','className','registerSharedOperation','DependentOn','getOwnPropertyDescriptor','Disposable','length','Injector','idSuffix','UniverProCollaborationClient','current','event$','merge','button','@univerjs/sheets-ui','div','IUIPartsService','useRef','propertyIsEnumerable','Start\x20following','Plugin','getTypeOfUnitAdded$','OPERATION','1809438xXIlCL','2357050yRsXen','_status','NEW_CHANGESETS','_liveShareService','IDLE','idle','550775GurYoe','_entities','LiveShareController','@univerjs/core','data','react','replace','mutations','14eIOaEp','toDisposable','default','override','Subject','SessionStatus','values','fill','none','jsx','substring','_presenter','entries','shouldShareOperation','_configService','ONLINE','toStringTag','use','univer-w-full\x20univer-mb-3\x20univer-text-sm','248048kdOLnh','@univerjs/design','offline','Present\x20this\x20document','_commandService','_status$','SAME_OPERATION_SHARE_INTERVAL','operators','call','_config','icon','setConfig','exports','mask','@univerjs-pro/collaboration','trim','_startLiveShareCoordinator','73258OozRin','jsxs','onCommandExecuted','tag','getUnitId','forEach','useObservable','evenodd','stringify','registerInitialStateReporter','getConfig','next','http://www.w3.org/2000/svg','LIVESHARE_TERMINATE','sheet','Dropdown','UNIVER_LIVE_SHARE_PLUGIN','_handleOnline','9idGhkw','rxjs/operators','You\x27re\x20presenting\x20the\x20document','You\x27are\x20offline.','SetScrollOperation','children','LIVESHARE_FETCH_OPERATIONS','_beIdle','live-share-icon','dispose$','not-following','CommandType','toString','HEADER_MENU','CollaborationSessionService','UniverProCollaboration','univer-size-4','parseProtocolChangeset','requireSession','init','UniverSheets','delete','LIVESHARE_OPERATION','0\x200\x2017\x2017','_collabSessionService','Module','OFFLINE','getMemberID','hasOwnProperty','_sharedOperations','registerComponent','You\x27re\x20following\x20the\x20presenter','stopFollowing','map','defineProperty','@univerjs/ui','BehaviorSubject','connectInjector','1em','type','UniverInstanceType','28VBTEoF','You\x27re\x20not\x20following\x20the\x20presenter','IConfigService','UNIVER_SHEET','UniverIcon','send','getLiveShareCoordinator','Inject','dispose','DisposableCollection','UniverCore','apply','createInstance','SetWorksheetActiveOperation'];_0x436d=function(){return _0x5ee7d5;};return _0x436d();}function _0x37fa(_0x868c3a,_0xf0572b){var _0x436d88=_0x436d();return _0x37fa=function(_0x37fa67,_0x2a24c7){_0x37fa67=_0x37fa67-0xca;var _0x3a7dcc=_0x436d88[_0x37fa67];return _0x3a7dcc;},_0x37fa(_0x868c3a,_0xf0572b);}(function(_0x2a53ce,_0x542902){var _0x27420e=_0x37fa,_0x186686=_0x2a53ce();while(!![]){try{var _0x2dda7e=parseInt(_0x27420e(0x134))/0x1+parseInt(_0x27420e(0x145))/0x2*(-parseInt(_0x27420e(0x1aa))/0x3)+parseInt(_0x27420e(0x180))/0x4*(-parseInt(_0x27420e(0x119))/0x5)+-parseInt(_0x27420e(0x112))/0x6*(parseInt(_0x27420e(0x121))/0x7)+-parseInt(_0x27420e(0x198))/0x8*(-parseInt(_0x27420e(0x157))/0x9)+parseInt(_0x27420e(0x113))/0xa+-parseInt(_0x27420e(0xd1))/0xb*(-parseInt(_0x27420e(0x1b7))/0xc);if(_0x2dda7e===_0x542902)break;else _0x186686['push'](_0x186686['shift']());}catch(_0xc4243d){_0x186686['push'](_0x186686['shift']());}}}(_0x436d,0x7aaf9),function(_0x5aa92c,_0x5bba74){var _0x237cfe=_0x37fa;typeof exports=='object'&&typeof module<'u'?_0x5bba74(exports,require(_0x237cfe(0x1b9)),require('@univerjs/core'),require(_0x237cfe(0xe2)),require(_0x237cfe(0x109)),require(_0x237cfe(0x17a)),require(_0x237cfe(0xeb)),require(_0x237cfe(0x135)),require(_0x237cfe(0x11e)),require(_0x237cfe(0x142)),require(_0x237cfe(0xcc)),require(_0x237cfe(0x158))):typeof define=='function'&&define['amd']?define([_0x237cfe(0x140),_0x237cfe(0x1b9),_0x237cfe(0x11c),_0x237cfe(0xe2),_0x237cfe(0x109),_0x237cfe(0x17a),'react/jsx-runtime','@univerjs/design',_0x237cfe(0x11e),'@univerjs-pro/collaboration','rxjs',_0x237cfe(0x158)],_0x5bba74):(_0x5aa92c=typeof globalThis<'u'?globalThis:_0x5aa92c||self,_0x5bba74(_0x5aa92c[_0x237cfe(0xe8)]={},_0x5aa92c[_0x237cfe(0x104)],_0x5aa92c[_0x237cfe(0x18a)],_0x5aa92c[_0x237cfe(0x16b)],_0x5aa92c['UniverSheetsUi'],_0x5aa92c[_0x237cfe(0xf6)],_0x5aa92c[_0x237cfe(0x19d)],_0x5aa92c[_0x237cfe(0x1b8)],_0x5aa92c[_0x237cfe(0x19d)],_0x5aa92c[_0x237cfe(0x166)],_0x5aa92c[_0x237cfe(0xcc)],_0x5aa92c['rxjs'][_0x237cfe(0x13b)]));}(this,function(_0x565b9d,_0x30c176,_0x1036c4,_0x6b5b,_0x31fb7b,_0x42a8f4,_0x30007c,_0x3f92b9,_0xcbca53,_0xfcf66,_0x978848,_0x483d17){'use strict';var _0x543230=_0x37fa;var _0x5e12e0=Object[_0x543230(0x179)],_0x42ac7c=(_0x9acc61,_0x45eede,_0x3a14bd)=>_0x45eede in _0x9acc61?_0x5e12e0(_0x9acc61,_0x45eede,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a14bd}):_0x9acc61[_0x45eede]=_0x3a14bd,_0xabe042=(_0x9c9abf,_0x50739a,_0x217ea7)=>_0x42ac7c(_0x9c9abf,typeof _0x50739a!=_0x543230(0xdb)?_0x50739a+'':_0x50739a,_0x217ea7);const _0x5991ee=_0x543230(0x1b0),_0x4e279d={};class _0x50f0d8 extends _0x1036c4[_0x543230(0x100)]{constructor(){var _0x7738de=_0x543230;super(...arguments),_0xabe042(this,'_sharedOperations',new Set()),_0xabe042(this,_0x7738de(0xd6),new Set());}[_0x543230(0xfd)](_0x2abe9b){var _0x14b8b4=_0x543230;return this[_0x14b8b4(0x174)][_0x14b8b4(0xdf)](_0x2abe9b),_0x1036c4[_0x14b8b4(0x122)](()=>this[_0x14b8b4(0x174)]['delete'](_0x2abe9b));}[_0x543230(0x14e)](_0x3fc766){var _0x582a84=_0x543230;return this['_reporters'][_0x582a84(0xdf)](_0x3fc766),_0x1036c4[_0x582a84(0x122)](()=>this[_0x582a84(0xd6)][_0x582a84(0x16c)](_0x3fc766));}[_0x543230(0x12e)](_0x580e92){var _0x53a30b=_0x543230;return this[_0x53a30b(0x174)][_0x53a30b(0x196)](_0x580e92);}[_0x543230(0xe5)](_0x37285b){var _0x5b18b=_0x543230;return Array[_0x5b18b(0x1ba)](this[_0x5b18b(0xd6)])[_0x5b18b(0x178)](_0x59f51d=>_0x59f51d(_0x37285b));}}var _0x49729c=Object['getOwnPropertyDescriptor'],_0x4d3f7b=(_0x307752,_0x48f7e7,_0x3ae835,_0x21d072)=>{var _0x2d3b3a=_0x543230;for(var _0x8ef2c6=_0x21d072>0x1?void 0x0:_0x21d072?_0x49729c(_0x48f7e7,_0x3ae835):_0x48f7e7,_0x434231=_0x307752[_0x2d3b3a(0x101)]-0x1,_0x4b0ffe;_0x434231>=0x0;_0x434231--)(_0x4b0ffe=_0x307752[_0x434231])&&(_0x8ef2c6=_0x4b0ffe(_0x8ef2c6)||_0x8ef2c6);return _0x8ef2c6;},_0x3123e4=(_0x1b60b1,_0x2e2c32)=>(_0x3d271e,_0x4eca26)=>_0x2e2c32(_0x3d271e,_0x4eca26,_0x1b60b1);let _0xff3e31=class extends _0x1036c4['Disposable']{constructor(_0x47b602){var _0x15655a=_0x543230;super(),this[_0x15655a(0x116)]=_0x47b602,this[_0x15655a(0xde)]();}[_0x543230(0xde)](){var _0x2593f0=_0x543230;[_0x31fb7b['SetZoomRatioOperation']['id'],_0x31fb7b[_0x2593f0(0x15b)]['id'],_0x6b5b[_0x2593f0(0x18d)]['id']][_0x2593f0(0x14a)](_0x2314d7=>{var _0x3798b5=_0x2593f0;this[_0x3798b5(0x1bc)](this[_0x3798b5(0x116)]['registerSharedOperation'](_0x2314d7));});}};_0xff3e31=_0x4d3f7b([_0x3123e4(0x0,_0x1036c4[_0x543230(0x187)](_0x50f0d8))],_0xff3e31);var _0x1bcaeb=function(){var _0x244087=_0x543230;return _0x1bcaeb=Object[_0x244087(0x1a4)]||function(_0x178a94){var _0x3ec711=_0x244087;for(var _0x1bedab,_0x3a0c88=0x1,_0x2d9309=arguments[_0x3ec711(0x101)];_0x3a0c88<_0x2d9309;_0x3a0c88++){_0x1bedab=arguments[_0x3a0c88];for(var _0x287419 in _0x1bedab)Object['prototype'][_0x3ec711(0x173)][_0x3ec711(0x13c)](_0x1bedab,_0x287419)&&(_0x178a94[_0x287419]=_0x1bedab[_0x287419]);}return _0x178a94;},_0x1bcaeb[_0x244087(0x18b)](this,arguments);},_0x21a89a=function(_0x164acf,_0x33a84d){var _0x42886e=_0x543230,_0x3765f6={};for(var _0x1735c2 in _0x164acf)Object[_0x42886e(0x19f)][_0x42886e(0x173)][_0x42886e(0x13c)](_0x164acf,_0x1735c2)&&_0x33a84d[_0x42886e(0xef)](_0x1735c2)<0x0&&(_0x3765f6[_0x1735c2]=_0x164acf[_0x1735c2]);if(_0x164acf!=null&&typeof Object[_0x42886e(0x199)]=='function'){for(var _0x4fc011=0x0,_0x1735c2=Object[_0x42886e(0x199)](_0x164acf);_0x4fc011<_0x1735c2['length'];_0x4fc011++)_0x33a84d[_0x42886e(0xef)](_0x1735c2[_0x4fc011])<0x0&&Object[_0x42886e(0x19f)][_0x42886e(0x10d)][_0x42886e(0x13c)](_0x164acf,_0x1735c2[_0x4fc011])&&(_0x3765f6[_0x1735c2[_0x4fc011]]=_0x164acf[_0x1735c2[_0x4fc011]]);}return _0x3765f6;},_0x221589=_0xcbca53[_0x543230(0x1c1)](function(_0x41c59d,_0x33c32e){var _0x53e2c7=_0x543230,_0x19dcf0=_0x41c59d['icon'],_0x856411=_0x41c59d['id'],_0x254a68=_0x41c59d[_0x53e2c7(0xfc)],_0x4bf3bc=_0x41c59d[_0x53e2c7(0x1b2)],_0x3e30b6=_0x21a89a(_0x41c59d,[_0x53e2c7(0x13e),'id','className',_0x53e2c7(0x1b2)]),_0x42b105=_0x53e2c7(0xf4)[_0x53e2c7(0x1be)](_0x856411,'\x20')[_0x53e2c7(0x1be)](_0x254a68||'')[_0x53e2c7(0x143)](),_0x239761=_0xcbca53[_0x53e2c7(0x10c)]('_'['concat'](_0x42e3e3()));return _0x4ec5a0(_0x19dcf0,''[_0x53e2c7(0x1be)](_0x856411),{'defIds':_0x19dcf0[_0x53e2c7(0x197)],'idSuffix':_0x239761[_0x53e2c7(0x105)]},_0x1bcaeb({'ref':_0x33c32e,'className':_0x42b105},_0x3e30b6),_0x4bf3bc);});function _0x4ec5a0(_0x18285f,_0x224c77,_0x187b14,_0x510f8d,_0x4d50b0){var _0x52f4be=_0x543230;return _0xcbca53['createElement'](_0x18285f[_0x52f4be(0x148)],_0x1bcaeb(_0x1bcaeb({'key':_0x224c77},_0x2d1c5f(_0x18285f,_0x187b14,_0x4d50b0)),_0x510f8d),(_0x333ad5(_0x18285f,_0x187b14)[_0x52f4be(0x15c)]||[])[_0x52f4be(0x178)](function(_0xac0dbc,_0x14fc74){var _0x23af83=_0x52f4be;return _0x4ec5a0(_0xac0dbc,''[_0x23af83(0x1be)](_0x224c77,'-')['concat'](_0x18285f[_0x23af83(0x148)],'-')[_0x23af83(0x1be)](_0x14fc74),_0x187b14,void 0x0,_0x4d50b0);}));}function _0x2d1c5f(_0x4890f1,_0x385bbe,_0x50ef07){var _0x2ba85a=_0x543230,_0x3ca035=_0x1bcaeb({},_0x4890f1[_0x2ba85a(0x1b4)]);_0x50ef07!=null&&_0x50ef07['colorChannel1']&&_0x3ca035[_0x2ba85a(0x128)]===_0x2ba85a(0x19b)&&(_0x3ca035[_0x2ba85a(0x128)]=_0x50ef07[_0x2ba85a(0x19b)]),_0x4890f1['tag']===_0x2ba85a(0x141)&&_0x3ca035['id']&&(_0x3ca035['id']=_0x3ca035['id']+_0x385bbe['idSuffix']),Object[_0x2ba85a(0x12d)](_0x3ca035)['forEach'](function(_0x2d2a04){var _0x5ca871=_0x2ba85a,_0x437796=_0x2d2a04[0x0],_0x13d351=_0x2d2a04[0x1];_0x437796==='mask'&&typeof _0x13d351==_0x5ca871(0xcd)&&(_0x3ca035[_0x437796]=_0x13d351[_0x5ca871(0x11f)](/url\(#(.*)\)/,_0x5ca871(0xca)[_0x5ca871(0x1be)](_0x385bbe['idSuffix'],')')));});var _0x1863a7=_0x385bbe[_0x2ba85a(0x197)];return!_0x1863a7||_0x1863a7[_0x2ba85a(0x101)]===0x0||(_0x4890f1[_0x2ba85a(0x148)]===_0x2ba85a(0x132)&&_0x3ca035['xlink:href']&&(_0x3ca035[_0x2ba85a(0xd3)]=_0x3ca035[_0x2ba85a(0xd3)]+_0x385bbe[_0x2ba85a(0x103)]),Object[_0x2ba85a(0x12d)](_0x3ca035)[_0x2ba85a(0x14a)](function(_0x564741){var _0x1d9c04=_0x2ba85a,_0x2169de=_0x564741[0x0],_0x382c13=_0x564741[0x1];typeof _0x382c13==_0x1d9c04(0xcd)&&(_0x3ca035[_0x2169de]=_0x382c13[_0x1d9c04(0x11f)](/url\(#(.*)\)/,'url(#$1'[_0x1d9c04(0x1be)](_0x385bbe[_0x1d9c04(0x103)],')')));})),_0x3ca035;}function _0x333ad5(_0x5723ea,_0x244bc3){var _0x2d91c3=_0x543230,_0x3886f1,_0x27aebf=_0x244bc3[_0x2d91c3(0x197)];return!_0x27aebf||_0x27aebf[_0x2d91c3(0x101)]===0x0?_0x5723ea:_0x5723ea[_0x2d91c3(0x148)]===_0x2d91c3(0xf5)&&(!((_0x3886f1=_0x5723ea['children'])===null||_0x3886f1===void 0x0)&&_0x3886f1[_0x2d91c3(0x101)])?_0x1bcaeb(_0x1bcaeb({},_0x5723ea),{'children':_0x5723ea[_0x2d91c3(0x15c)]['map'](function(_0x3c51a4){var _0x522883=_0x2d91c3;return typeof _0x3c51a4[_0x522883(0x1b4)]['id']==_0x522883(0xcd)&&_0x27aebf&&_0x27aebf[_0x522883(0xf0)](_0x3c51a4[_0x522883(0x1b4)]['id'])?_0x1bcaeb(_0x1bcaeb({},_0x3c51a4),{'attrs':_0x1bcaeb(_0x1bcaeb({},_0x3c51a4[_0x522883(0x1b4)]),{'id':_0x3c51a4[_0x522883(0x1b4)]['id']+_0x244bc3['idSuffix']})}):_0x3c51a4;})}):_0x5723ea;}function _0x42e3e3(){var _0x3e2538=_0x543230;return Math['random']()[_0x3e2538(0x163)](0x24)[_0x3e2538(0x12b)](0x2,0x8);}_0x221589[_0x543230(0x1a5)]=_0x543230(0x184);var _0x118035={'tag':_0x543230(0xd8),'attrs':{'xmlns':_0x543230(0x151),'fill':_0x543230(0x129),'viewBox':_0x543230(0x16e),'width':_0x543230(0x17d),'height':_0x543230(0x17d)},'children':[{'tag':'path','attrs':{'fill':_0x543230(0x19a),'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':_0x543230(0x19a),'d':_0x543230(0xec),'fillRule':_0x543230(0x14c),'clipRule':_0x543230(0x14c)}}]},_0x57962a=_0xcbca53['forwardRef'](function(_0x490d28,_0x19efb){var _0xed070c=_0x543230;return _0xcbca53[_0xed070c(0x192)](_0x221589,Object['assign']({},_0x490d28,{'id':_0xed070c(0x15f),'ref':_0x19efb,'icon':_0x118035}));});_0x57962a[_0x543230(0x1a5)]='LiveShareIcon';var _0x53dac3=Object['getOwnPropertyDescriptor'],_0x42fc35=(_0x958701,_0xfba911,_0x5b1d10,_0x2b1d32)=>{var _0x370c4e=_0x543230;for(var _0x4c43d4=_0x2b1d32>0x1?void 0x0:_0x2b1d32?_0x53dac3(_0xfba911,_0x5b1d10):_0xfba911,_0x1cc35b=_0x958701[_0x370c4e(0x101)]-0x1,_0x2518b3;_0x1cc35b>=0x0;_0x1cc35b--)(_0x2518b3=_0x958701[_0x1cc35b])&&(_0x4c43d4=_0x2518b3(_0x4c43d4)||_0x4c43d4);return _0x4c43d4;},_0x592f3d=(_0x385796,_0x32a0a6)=>(_0x4f8339,_0x381139)=>_0x32a0a6(_0x4f8339,_0x381139,_0x385796);_0x565b9d[_0x543230(0x11b)]=class extends _0x1036c4['RxDisposable']{constructor(_0x44106c,_0x5dbdfa,_0x131a5e){var _0x36560a=_0x543230;super(),_0xabe042(this,'_entities',new Map()),(this['_univerInstanceService']=_0x44106c,this[_0x36560a(0x1a2)]=_0x5dbdfa,this[_0x36560a(0x16f)]=_0x131a5e,this[_0x36560a(0xde)]());}async[_0x543230(0x186)](_0x4fab6a){var _0x1c8451=_0x543230;return this[_0x1c8451(0x11a)]['has'](_0x4fab6a)||await this[_0x1c8451(0x144)](_0x4fab6a),this[_0x1c8451(0x11a)]['get'](_0x4fab6a);}[_0x543230(0xde)](){var _0x78dd34=_0x543230;this['_univerInstanceService'][_0x78dd34(0x110)](_0x1036c4[_0x78dd34(0x17f)][_0x78dd34(0x183)])[_0x78dd34(0xea)](_0x483d17[_0x78dd34(0x1a6)](this[_0x78dd34(0x160)]))[_0x78dd34(0x1ad)](async _0x59d97b=>{var _0x4b373d=_0x78dd34;const _0x2d8710=_0x59d97b[_0x4b373d(0x149)]();this[_0x4b373d(0x11a)][_0x4b373d(0x196)](_0x2d8710)||this[_0x4b373d(0x144)](_0x2d8710);}),this['_univerInstanceService'][_0x78dd34(0x1b5)](_0x1036c4[_0x78dd34(0x17f)][_0x78dd34(0x183)])[_0x78dd34(0xea)](_0x483d17[_0x78dd34(0x1a6)](this[_0x78dd34(0x160)]))['subscribe'](_0x33e140=>{var _0x25a39d=_0x78dd34;const _0x5ee613=_0x33e140['getUnitId'](),_0x2524d4=this[_0x25a39d(0x11a)]['get'](_0x5ee613);_0x2524d4==null||_0x2524d4['dispose']();});}async[_0x543230(0x144)](_0x340d78){var _0x3cbc3e=_0x543230;const _0x1a2d0c=await this[_0x3cbc3e(0x16f)][_0x3cbc3e(0x169)](_0x340d78),_0x55b320=this[_0x3cbc3e(0x1a2)][_0x3cbc3e(0x18c)](_0x565b9d[_0x3cbc3e(0x190)],_0x340d78,_0x1a2d0c);return _0x55b320['init'](),this[_0x3cbc3e(0x11a)]['set'](_0x340d78,_0x55b320),_0x55b320;}},_0x565b9d[_0x543230(0x11b)]=_0x42fc35([_0x592f3d(0x0,_0x1036c4[_0x543230(0xfa)]),_0x592f3d(0x1,_0x1036c4['Inject'](_0x1036c4[_0x543230(0x102)])),_0x592f3d(0x2,_0x1036c4[_0x543230(0x187)](_0x30c176[_0x543230(0x165)]))],_0x565b9d[_0x543230(0x11b)]);var _0x1b37f6=(_0x1d60c8=>(_0x1d60c8['OFFLINE']=_0x543230(0x136),_0x1d60c8['IDLE']=_0x543230(0x118),_0x1d60c8['FOLLOWING']=_0x543230(0x1b6),_0x1d60c8[_0x543230(0x1a1)]='not-following',_0x1d60c8[_0x543230(0xe3)]=_0x543230(0x191),_0x1d60c8))(_0x1b37f6||{});const _0x10e68b=_0x543230(0x13a),_0x426489=0xc8;_0x565b9d['LiveShareCoordinator']=class extends _0x1036c4['RxDisposable']{constructor(_0x1546ab,_0x2e422a,_0x1a08e8,_0x37f176,_0x6fca2f){var _0x526763=_0x543230;super(),_0xabe042(this,_0x526763(0x139),new _0x978848[(_0x526763(0x17b))](_0x526763(0x118))),_0xabe042(this,_0x526763(0x1b1),this[_0x526763(0x139)]['asObservable']()),_0xabe042(this,'_init',!0x1),_0xabe042(this,_0x526763(0xf1),null),_0xabe042(this,_0x526763(0x12c),null),(this[_0x526763(0x1bf)]=_0x1546ab,this[_0x526763(0x193)]=_0x2e422a,this[_0x526763(0x12f)]=_0x1a08e8,this[_0x526763(0x116)]=_0x37f176,this[_0x526763(0x138)]=_0x6fca2f);}get['_status'](){var _0x4a472d=_0x543230;return this[_0x4a472d(0x139)][_0x4a472d(0xda)]();}[_0x543230(0x188)](){var _0x5611b5=_0x543230,_0x4291a1;(_0x4291a1=this[_0x5611b5(0xf1)])==null||_0x4291a1[_0x5611b5(0x188)](),this[_0x5611b5(0x139)][_0x5611b5(0x150)](_0x5611b5(0x118)),this[_0x5611b5(0x139)][_0x5611b5(0xf8)]();}[_0x543230(0x16a)](){var _0x2b9a4c=_0x543230;this[_0x2b9a4c(0xde)]||(this[_0x2b9a4c(0xde)]=!0x0,this[_0x2b9a4c(0x193)]['sessionStatus$']['pipe'](_0x483d17[_0x2b9a4c(0x1a6)](this[_0x2b9a4c(0x160)]))[_0x2b9a4c(0x1ad)](_0x187fb8=>{var _0x35a244=_0x2b9a4c;switch(_0x187fb8){case _0x30c176[_0x35a244(0x126)][_0x35a244(0x171)]:this[_0x35a244(0xed)]();break;case _0x30c176[_0x35a244(0x126)][_0x35a244(0x130)]:this[_0x35a244(0x156)]();break;}}),this['_collabSession'][_0x2b9a4c(0x106)][_0x2b9a4c(0xea)](_0x483d17[_0x2b9a4c(0x1a6)](this['dispose$']))[_0x2b9a4c(0x1ad)](_0x9610fd=>{var _0x57a6f3=_0x2b9a4c;const {eventID:_0x44836a}=_0x9610fd;switch(_0x44836a){case _0xfcf66[_0x57a6f3(0xcf)]['LIVESHARE_NEW_HOST']:this[_0x57a6f3(0x1a3)](_0x9610fd);break;case _0xfcf66[_0x57a6f3(0xcf)][_0x57a6f3(0x16d)]:this[_0x57a6f3(0x1ab)](_0x9610fd);break;case _0xfcf66['CollaborationEvent'][_0x57a6f3(0x152)]:this[_0x57a6f3(0x1bd)]();break;case _0xfcf66[_0x57a6f3(0xcf)][_0x57a6f3(0x115)]:this[_0x57a6f3(0xe9)](_0x9610fd);break;}}));}[_0x543230(0xe1)](){var _0x42a850=_0x543230;this[_0x42a850(0x193)][_0x42a850(0x185)]({'eventID':_0xfcf66[_0x42a850(0xcf)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x42a850(0x172)]()}},this['_unitID']);}['stopPresenting'](){var _0x527f49=_0x543230;this['_status']===_0x527f49(0x191)&&(this['_status$'][_0x527f49(0x150)](_0x527f49(0x118)),this[_0x527f49(0x193)][_0x527f49(0x185)]({'eventID':_0xfcf66[_0x527f49(0xcf)][_0x527f49(0x152)],'data':{'unitID':this[_0x527f49(0x1bf)]}},this['_unitID']));}[_0x543230(0x1ae)](){var _0xe822a4=_0x543230;this[_0xe822a4(0x114)]==='not-following'&&(this['_status$'][_0xe822a4(0x150)]('following'),this[_0xe822a4(0xce)]());}['stopFollowing'](){var _0x439843=_0x543230;this[_0x439843(0x114)]===_0x439843(0x1b6)&&this[_0x439843(0x1a8)]();}[_0x543230(0x1a3)](_0x4599f8){var _0x2fc713=_0x543230;const {presenter:_0x5d9048}=_0x4599f8[_0x2fc713(0x11d)],_0x4b161d=this[_0x2fc713(0x193)][_0x2fc713(0x172)]();this[_0x2fc713(0x12c)]=_0x5d9048,_0x5d9048===_0x4b161d?(this[_0x2fc713(0x1a8)](),this['_startPresenting']()):this[_0x2fc713(0x114)]!=='not-following'&&(this['_stopPresenting'](),this[_0x2fc713(0xce)]());}[_0x543230(0xcb)](){var _0x12c77c=_0x543230;const _0x12c6ca={'eventID':_0xfcf66[_0x12c77c(0xcf)][_0x12c77c(0x15d)]};this[_0x12c77c(0x193)][_0x12c77c(0x185)](_0x12c6ca,this[_0x12c77c(0x1bf)]);}[_0x543230(0x1bd)](){var _0x113e75=_0x543230;this[_0x113e75(0x12c)]=null,this[_0x113e75(0x114)]!==_0x113e75(0x191)&&this[_0x113e75(0x15e)]();}[_0x543230(0xe9)](_0x39c9ab){var _0x3483d1=_0x543230;if(this['_status']===_0x3483d1(0x1b6)&&this[_0x3483d1(0x12c)]===_0x39c9ab['data'][_0x3483d1(0x1c0)]){const _0x5a5370=_0xfcf66[_0x3483d1(0x168)](_0x39c9ab[_0x3483d1(0x11d)])[_0x3483d1(0x120)]['reverse']()['find'](_0x2f86cf=>_0x2f86cf['id']===_0x6b5b[_0x3483d1(0xd9)]['id']);if(_0x5a5370){const _0x2bb471=_0x5a5370['params'][_0x3483d1(0xee)],_0x66d006=_0x5a5370[_0x3483d1(0x1a7)][_0x3483d1(0x153)]['id'];setTimeout(()=>{var _0x519b49=_0x3483d1;this[_0x519b49(0x138)][_0x519b49(0x194)](_0x6b5b[_0x519b49(0x18d)]['id'],{'unitId':_0x2bb471,'subUnitId':_0x66d006},{'fromCollab':!0x0});});}}}[_0x543230(0x1af)](){var _0x3a15e3=_0x543230;this[_0x3a15e3(0x139)][_0x3a15e3(0x150)](_0x3a15e3(0x191));const _0x5008a5=new Map(),_0x1acf26=this[_0x3a15e3(0xf1)]=new _0x1036c4[(_0x3a15e3(0x189))]();_0x1acf26[_0x3a15e3(0xdf)](_0x1036c4['toDisposable'](()=>{var _0x169880=_0x3a15e3;_0x5008a5[_0x169880(0x14a)](_0x3f8f92=>_0x3f8f92[_0x169880(0xf8)]()),_0x5008a5[_0x169880(0x1a9)]();})),_0x1acf26['add'](this[_0x3a15e3(0x138)][_0x3a15e3(0x147)](_0x26d0d3=>{var _0x4b6e81=_0x3a15e3,_0x5a7063;if(_0x26d0d3[_0x4b6e81(0x17e)]!==_0x1036c4[_0x4b6e81(0x162)][_0x4b6e81(0x111)]||!this[_0x4b6e81(0x116)]['shouldShareOperation'](_0x26d0d3['id']))return;const {id:_0x1048fa}=_0x26d0d3;let _0x5dd920;_0x5008a5[_0x4b6e81(0x196)](_0x1048fa)?_0x5dd920=_0x5008a5[_0x4b6e81(0x18f)](_0x1048fa):(_0x5dd920=new _0x978848[(_0x4b6e81(0x125))](),_0x5008a5[_0x4b6e81(0xdc)](_0x1048fa,_0x5dd920),_0x5dd920[_0x4b6e81(0xea)](_0x483d17[_0x4b6e81(0x1b3)]((_0x5a7063=this[_0x4b6e81(0x12f)][_0x4b6e81(0x14f)](_0x10e68b))!=null?_0x5a7063:_0x426489,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x28dc9c=>{var _0xbdc4b0=_0x4b6e81;this[_0xbdc4b0(0x193)][_0xbdc4b0(0x185)]({'eventID':_0xfcf66['CollaborationEvent'][_0xbdc4b0(0x16d)],'data':{'unitID':this[_0xbdc4b0(0x1bf)],'operations':{[_0x28dc9c['id']]:{'id':_0x28dc9c['id'],'params':JSON[_0xbdc4b0(0x14d)](_0x28dc9c['params'])}}}},this[_0xbdc4b0(0x1bf)]);})),_0x5dd920[_0x4b6e81(0x150)](_0x26d0d3);})),this['_liveShareService'][_0x3a15e3(0xe5)](this[_0x3a15e3(0x1bf)])[_0x3a15e3(0x14a)](_0x575727=>this[_0x3a15e3(0x193)][_0x3a15e3(0x185)]({'eventID':_0xfcf66[_0x3a15e3(0xcf)][_0x3a15e3(0x16d)],'data':{'unitID':this[_0x3a15e3(0x1bf)],'operations':{[_0x575727['id']]:{'id':_0x575727['id'],'params':JSON[_0x3a15e3(0x14d)](_0x575727[_0x3a15e3(0x1a7)])}}}},this[_0x3a15e3(0x1bf)]));}['_stopPresenting'](){var _0x33c77f=_0x543230,_0x156987;this[_0x33c77f(0x139)]['next'](_0x33c77f(0x118)),(_0x156987=this[_0x33c77f(0xf1)])==null||_0x156987[_0x33c77f(0x188)](),this[_0x33c77f(0xf1)]=null;}[_0x543230(0xce)](){var _0x1897d9=_0x543230,_0x50884c;(_0x50884c=this[_0x1897d9(0xf1)])==null||_0x50884c['dispose'](),this[_0x1897d9(0x139)][_0x1897d9(0x150)]('following');}[_0x543230(0x15e)](){var _0x26ba26=_0x543230,_0x139c7c;this[_0x26ba26(0x139)]['next'](_0x26ba26(0x118)),(_0x139c7c=this['_commandDisposable'])==null||_0x139c7c[_0x26ba26(0x188)](),this[_0x26ba26(0xf1)]=null;}[_0x543230(0x1a8)](){var _0x312e2f=_0x543230,_0x18b540;this[_0x312e2f(0x139)][_0x312e2f(0x150)](_0x312e2f(0x161)),(_0x18b540=this[_0x312e2f(0xf1)])==null||_0x18b540[_0x312e2f(0x188)]();}['_handleOperation'](_0x1ea257){var _0x299b0f=_0x543230;if([_0x299b0f(0x191),'not-following',_0x299b0f(0x136)][_0x299b0f(0xf0)](this[_0x299b0f(0x114)])||!_0x1ea257[_0x299b0f(0x11d)][_0x299b0f(0x1ac)]||_0x1ea257[_0x299b0f(0x11d)][_0x299b0f(0x1ac)]===this[_0x299b0f(0x193)][_0x299b0f(0x172)]())return;this['_status']===_0x299b0f(0x118)&&this[_0x299b0f(0xce)]();const _0x6665a9=_0x1ea257[_0x299b0f(0x11d)]['operations'];Object[_0x299b0f(0x127)](_0x6665a9)['forEach'](_0x4325d5=>{var _0x550117=_0x299b0f;this[_0x550117(0x138)]['executeCommand'](_0x4325d5['id'],_0x4325d5[_0x550117(0x1a7)]?JSON[_0x550117(0x1bb)](_0x4325d5[_0x550117(0x1a7)]):null,{'fromCollab':!0x0});});}[_0x543230(0xed)](){var _0x1e3d41=_0x543230,_0x50c9c1;this['_status$'][_0x1e3d41(0x150)](_0x1e3d41(0x136)),(_0x50c9c1=this['_commandDisposable'])==null||_0x50c9c1[_0x1e3d41(0x188)]();}['_handleOnline'](){var _0x4343f3=_0x543230;this['_status$'][_0x4343f3(0x150)]('idle'),this[_0x4343f3(0xcb)]();}},_0x565b9d['LiveShareCoordinator']=_0x42fc35([_0x592f3d(0x2,_0x1036c4[_0x543230(0x182)]),_0x592f3d(0x3,_0x1036c4[_0x543230(0x187)](_0x50f0d8)),_0x592f3d(0x4,_0x1036c4[_0x543230(0xf7)])],_0x565b9d['LiveShareCoordinator']);function _0x4819eb(){var _0x4932e7=_0x543230;const _0xf2dbd4=_0x42a8f4[_0x4932e7(0xd7)](_0x565b9d[_0x4932e7(0x11b)]),_0x5b4b8f=_0x42a8f4['useDependency'](_0x1036c4[_0x4932e7(0xfa)]),_0x3b6f18=_0x42a8f4[_0x4932e7(0x14b)](()=>_0x5b4b8f[_0x4932e7(0x18e)](_0x1036c4['UniverInstanceType'][_0x4932e7(0x183)]),void 0x0,!0x1,[]),[_0x308a51,_0x4bbe5c]=_0xcbca53[_0x4932e7(0xe0)](null),[_0x56171f,_0x40932a]=_0xcbca53[_0x4932e7(0xe0)](_0x1b37f6[_0x4932e7(0x117)]),_0x4585eb=_0xcbca53['useRef'](null);return _0xcbca53['useEffect'](()=>(_0x3b6f18&&_0xf2dbd4[_0x4932e7(0x186)](_0x3b6f18['getUnitId']())[_0x4932e7(0x19e)](_0x1ccf3a=>{var _0x47af24=_0x4932e7;_0x4bbe5c(_0x1ccf3a),_0x4585eb[_0x47af24(0x105)]=_0x1ccf3a['status$']['subscribe'](_0x275dac=>{_0x40932a(_0x275dac);});}),()=>{var _0x53086c=_0x4932e7,_0x1b12c8;(_0x1b12c8=_0x4585eb[_0x53086c(0x105)])==null||_0x1b12c8[_0x53086c(0xf9)](),_0x4585eb[_0x53086c(0x105)]=null;}),[_0x3b6f18,_0xf2dbd4]),_0x308a51?_0x30007c[_0x4932e7(0x12a)](_0x3f92b9[_0x4932e7(0x154)],{'align':'end','disabled':_0x56171f===_0x1b37f6['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':_0x30007c['jsx'](_0x102854,{'status':_0x56171f,'coordinator':_0x308a51}),'children':_0x30007c[_0x4932e7(0x12a)](_0x4932e7(0x108),{'className':_0x3f92b9['clsx']('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x56171f===_0x1b37f6[_0x4932e7(0x171)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56171f!==_0x1b37f6[_0x4932e7(0x171)]}),'type':_0x4932e7(0x108),'children':_0x30007c[_0x4932e7(0x12a)](_0x57962a,{'className':_0x4932e7(0x167)})})}):null;}function _0x102854(_0x1de96f){var _0x325759=_0x543230;const {status:_0x45a3bb,coordinator:_0x32811a}=_0x1de96f;switch(_0x45a3bb){case _0x1b37f6['IDLE']:return _0x30007c[_0x325759(0x12a)](_0x3c9c49,{'coordinator':_0x32811a});case _0x1b37f6['FOLLOWING']:return _0x30007c[_0x325759(0x12a)](_0x24abf9,{'coordinator':_0x32811a});case _0x1b37f6['NOT_FOLLOWING']:return _0x30007c[_0x325759(0x12a)](_0x387bc2,{'coordinator':_0x32811a});case _0x1b37f6[_0x325759(0x171)]:return _0x30007c[_0x325759(0x12a)](_0x1dd38f,{});case _0x1b37f6[_0x325759(0xe3)]:return _0x30007c['jsx'](_0x189a5f,{'coordinator':_0x32811a});default:return null;}}function _0x3c9c49(_0x46d494){var _0x22ad8e=_0x543230;const {coordinator:_0x19beb9}=_0x46d494;return _0x30007c[_0x22ad8e(0x146)](_0x30007c[_0x22ad8e(0xd5)],{'children':[_0x30007c['jsx'](_0x22ad8e(0x10a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x22ad8e(0x137)}),_0x30007c[_0x22ad8e(0x12a)](_0x3f92b9[_0x22ad8e(0xe4)],{'onClick':()=>_0x19beb9[_0x22ad8e(0xe1)](),'children':_0x22ad8e(0x195)})]});}function _0x24abf9(_0x56dafb){var _0x57499a=_0x543230;const {coordinator:_0x38299c}=_0x56dafb;return _0x30007c[_0x57499a(0x146)](_0x30007c[_0x57499a(0xd5)],{'children':[_0x30007c['jsx'](_0x57499a(0x10a),{'className':_0x57499a(0x133),'children':_0x57499a(0x176)}),_0x30007c[_0x57499a(0x12a)](_0x3f92b9[_0x57499a(0xe4)],{'onClick':()=>_0x38299c[_0x57499a(0x177)](),'children':_0x57499a(0xd2)})]});}function _0x387bc2(_0x4885e5){var _0xcd02af=_0x543230;const {coordinator:_0x5aae4c}=_0x4885e5;return _0x30007c['jsxs'](_0x30007c[_0xcd02af(0xd5)],{'children':[_0x30007c[_0xcd02af(0x12a)](_0xcd02af(0x10a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0xcd02af(0x181)}),_0x30007c[_0xcd02af(0x12a)](_0x3f92b9['Button'],{'variant':'text','onClick':()=>_0x5aae4c[_0xcd02af(0x1ae)](),'children':_0xcd02af(0x10e)})]});}function _0x189a5f(_0x307da6){var _0x1a24f5=_0x543230;const {coordinator:_0x5c11c0}=_0x307da6;return _0x30007c['jsxs'](_0x30007c['Fragment'],{'children':[_0x30007c[_0x1a24f5(0x12a)](_0x1a24f5(0x10a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1a24f5(0x159)}),_0x30007c[_0x1a24f5(0x12a)](_0x3f92b9[_0x1a24f5(0xe4)],{'variant':_0x1a24f5(0x123),'onClick':()=>_0x5c11c0[_0x1a24f5(0xe7)](),'children':_0x1a24f5(0x1a0)})]});}function _0x1dd38f(){var _0x283a7e=_0x543230;return _0x30007c[_0x283a7e(0x12a)](_0x30007c[_0x283a7e(0xd5)],{'children':_0x283a7e(0x15a)});}var _0xe05321=Object[_0x543230(0xff)],_0x4b5716=(_0x55b308,_0x2c6bc2,_0xfb9a4a,_0x1bf91d)=>{for(var _0xeb4007=_0x1bf91d>0x1?void 0x0:_0x1bf91d?_0xe05321(_0x2c6bc2,_0xfb9a4a):_0x2c6bc2,_0x102e26=_0x55b308['length']-0x1,_0x1ae276;_0x102e26>=0x0;_0x102e26--)(_0x1ae276=_0x55b308[_0x102e26])&&(_0xeb4007=_0x1ae276(_0xeb4007)||_0xeb4007);return _0xeb4007;},_0x20de6d=(_0x6083f,_0x44e4a2)=>(_0x1d7445,_0x1aaaa1)=>_0x44e4a2(_0x1d7445,_0x1aaaa1,_0x6083f);_0x565b9d[_0x543230(0xd0)]=class extends _0x1036c4['Disposable']{constructor(_0x4d55af,_0x47a9c7){var _0x2f1fa2=_0x543230;super(),this[_0x2f1fa2(0x1a2)]=_0x4d55af,this[_0x2f1fa2(0xfb)]=_0x47a9c7,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x2087e7=_0x543230;this['disposeWithMe'](this['_uiPartsService'][_0x2087e7(0x175)](_0x42a8f4['BuiltInUIPart'][_0x2087e7(0x164)],()=>_0x42a8f4[_0x2087e7(0x17c)](_0x4819eb,this[_0x2087e7(0x1a2)])));}},_0x565b9d[_0x543230(0xd0)]=_0x4b5716([_0x20de6d(0x0,_0x1036c4[_0x543230(0x187)](_0x1036c4[_0x543230(0x102)])),_0x20de6d(0x1,_0x42a8f4[_0x543230(0x10b)])],_0x565b9d[_0x543230(0xd0)]);var _0x582e0f=Object[_0x543230(0x179)],_0x617bfb=Object[_0x543230(0xff)],_0x31a484=(_0x5931aa,_0x25db84,_0x4e9deb)=>_0x25db84 in _0x5931aa?_0x582e0f(_0x5931aa,_0x25db84,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e9deb}):_0x5931aa[_0x25db84]=_0x4e9deb,_0x4e1dfe=(_0x197b76,_0x6e59cb,_0x3d8265,_0x8f2c9e)=>{var _0x9c8cf9=_0x543230;for(var _0x4ec800=_0x8f2c9e>0x1?void 0x0:_0x8f2c9e?_0x617bfb(_0x6e59cb,_0x3d8265):_0x6e59cb,_0x32d688=_0x197b76[_0x9c8cf9(0x101)]-0x1,_0x1cec52;_0x32d688>=0x0;_0x32d688--)(_0x1cec52=_0x197b76[_0x32d688])&&(_0x4ec800=_0x1cec52(_0x4ec800)||_0x4ec800);return _0x4ec800;},_0x4b20f7=(_0x26d5e1,_0x1d584a)=>(_0x3942d0,_0x198778)=>_0x1d584a(_0x3942d0,_0x198778,_0x26d5e1),_0x2359e0=(_0x2703a3,_0x4643f4,_0x480951)=>_0x31a484(_0x2703a3,typeof _0x4643f4!=_0x543230(0xdb)?_0x4643f4+'':_0x4643f4,_0x480951);const _0x332cea=_0x543230(0x155);_0x565b9d['UniverLiveSharePlugin']=class extends _0x1036c4[_0x543230(0x10f)]{constructor(_0x15357c=_0x4e279d,_0x14f1e2,_0x20e8fd){var _0x44aa05=_0x543230;super(),this[_0x44aa05(0x13d)]=_0x15357c,this[_0x44aa05(0x1a2)]=_0x14f1e2,this['_configService']=_0x20e8fd;const {..._0x2dd3ad}=_0x1036c4[_0x44aa05(0x107)]({},_0x4e279d,this['_config']);this[_0x44aa05(0x12f)][_0x44aa05(0x13f)](_0x5991ee,_0x2dd3ad);}['onStarting'](){var _0x46aca1=_0x543230;_0x1036c4['registerDependencies'](this[_0x46aca1(0x1a2)],_0x1036c4['mergeOverrideWithDependencies']([[_0x50f0d8],[_0x565b9d[_0x46aca1(0x11b)]],[_0xff3e31],[_0x565b9d[_0x46aca1(0xd0)]]],this[_0x46aca1(0x13d)][_0x46aca1(0x124)])),_0x1036c4[_0x46aca1(0xf3)](this[_0x46aca1(0x1a2)],[[_0xff3e31]]);}[_0x543230(0xd4)](){var _0xa5ebbf=_0x543230;_0x1036c4['touchDependencies'](this[_0xa5ebbf(0x1a2)],[[_0x565b9d[_0xa5ebbf(0xd0)]]]);}},_0x2359e0(_0x565b9d['UniverLiveSharePlugin'],_0x543230(0x17e),_0x1036c4[_0x543230(0x17f)]['UNIVER_UNKNOWN']),_0x2359e0(_0x565b9d[_0x543230(0xdd)],_0x543230(0x19c),_0x332cea),_0x565b9d[_0x543230(0xdd)]=_0x4e1dfe([_0x1036c4[_0x543230(0xfe)](_0x30c176['UniverCollaborationClientPlugin']),_0x4b20f7(0x1,_0x1036c4[_0x543230(0x187)](_0x1036c4[_0x543230(0x102)])),_0x4b20f7(0x2,_0x1036c4[_0x543230(0x182)])],_0x565b9d['UniverLiveSharePlugin']),_0x565b9d[_0x543230(0xf2)]=_0x4819eb,_0x565b9d['LiveShareService']=_0x50f0d8,_0x565b9d[_0x543230(0xe6)]=_0x1b37f6,Object[_0x543230(0x179)](_0x565b9d,Symbol[_0x543230(0x131)],{'value':_0x543230(0x170)});}));
1
+ function _0x482b(_0x18f058,_0x3d4b1c){var _0x49cabe=_0x49ca();return _0x482b=function(_0x482b47,_0x163f3f){_0x482b47=_0x482b47-0x64;var _0x4d3a88=_0x49cabe[_0x482b47];return _0x4d3a88;},_0x482b(_0x18f058,_0x3d4b1c);}(function(_0x5250ec,_0x28ea7a){var _0x21fc37=_0x482b,_0x3ed563=_0x5250ec();while(!![]){try{var _0x207183=-parseInt(_0x21fc37(0x64))/0x1+-parseInt(_0x21fc37(0x141))/0x2+parseInt(_0x21fc37(0xe7))/0x3+-parseInt(_0x21fc37(0x122))/0x4+parseInt(_0x21fc37(0xa2))/0x5*(parseInt(_0x21fc37(0xb1))/0x6)+parseInt(_0x21fc37(0x102))/0x7+parseInt(_0x21fc37(0x78))/0x8*(parseInt(_0x21fc37(0x89))/0x9);if(_0x207183===_0x28ea7a)break;else _0x3ed563['push'](_0x3ed563['shift']());}catch(_0x32d922){_0x3ed563['push'](_0x3ed563['shift']());}}}(_0x49ca,0x43697),function(_0xadf584,_0x6828f8){var _0x27e6e9=_0x482b;typeof exports==_0x27e6e9(0x10f)&&typeof module<'u'?_0x6828f8(exports,require(_0x27e6e9(0x140)),require(_0x27e6e9(0xec)),require('@univerjs/sheets'),require(_0x27e6e9(0x101)),require(_0x27e6e9(0x93)),require('react/jsx-runtime'),require(_0x27e6e9(0xf5)),require(_0x27e6e9(0xd2)),require(_0x27e6e9(0x8d)),require(_0x27e6e9(0x6b)),require(_0x27e6e9(0x11f))):typeof define=='function'&&define[_0x27e6e9(0xf4)]?define([_0x27e6e9(0xab),_0x27e6e9(0x140),_0x27e6e9(0xec),_0x27e6e9(0x131),'@univerjs/sheets-ui','@univerjs/ui','react/jsx-runtime',_0x27e6e9(0xf5),_0x27e6e9(0xd2),'@univerjs-pro/collaboration',_0x27e6e9(0x6b),_0x27e6e9(0x11f)],_0x6828f8):(_0xadf584=typeof globalThis<'u'?globalThis:_0xadf584||self,_0x6828f8(_0xadf584[_0x27e6e9(0xce)]={},_0xadf584[_0x27e6e9(0xc0)],_0xadf584[_0x27e6e9(0x8b)],_0xadf584[_0x27e6e9(0x7e)],_0xadf584[_0x27e6e9(0x12a)],_0xadf584[_0x27e6e9(0xe1)],_0xadf584['React'],_0xadf584[_0x27e6e9(0xd5)],_0xadf584[_0x27e6e9(0xe9)],_0xadf584[_0x27e6e9(0x86)],_0xadf584['rxjs'],_0xadf584[_0x27e6e9(0x6b)][_0x27e6e9(0x150)]));}(this,function(_0x224b11,_0x35ef0a,_0x8e9bb7,_0x154e22,_0x2de615,_0x156244,_0x212baf,_0x596c7f,_0x256040,_0x2e265e,_0x2e0944,_0x289fe9){'use strict';var _0x182584=_0x482b;var _0x2b813d=Object[_0x182584(0xb4)],_0x5a02d2=(_0x4f1be6,_0x19019d,_0x331dfe)=>_0x19019d in _0x4f1be6?_0x2b813d(_0x4f1be6,_0x19019d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x331dfe}):_0x4f1be6[_0x19019d]=_0x331dfe,_0x354d30=(_0x1d0b84,_0x3e5e97,_0x15f0e4)=>_0x5a02d2(_0x1d0b84,typeof _0x3e5e97!=_0x182584(0x147)?_0x3e5e97+'':_0x3e5e97,_0x15f0e4);const _0x24e3ba=_0x182584(0x152),_0x393318={};class _0x2dea8b extends _0x8e9bb7[_0x182584(0x14f)]{constructor(){var _0x18e63c=_0x182584;super(...arguments),_0x354d30(this,_0x18e63c(0x128),new Set()),_0x354d30(this,_0x18e63c(0xbf),new Set());}[_0x182584(0x90)](_0x16c09b){var _0x1a7201=_0x182584;return this['_sharedOperations'][_0x1a7201(0xa9)](_0x16c09b),_0x8e9bb7['toDisposable'](()=>this['_sharedOperations'][_0x1a7201(0x144)](_0x16c09b));}['registerInitialStateReporter'](_0x36f09e){var _0x23c663=_0x182584;return this[_0x23c663(0xbf)][_0x23c663(0xa9)](_0x36f09e),_0x8e9bb7[_0x23c663(0x149)](()=>this[_0x23c663(0xbf)][_0x23c663(0x144)](_0x36f09e));}[_0x182584(0xd7)](_0xbdaad7){var _0x3836a9=_0x182584;return this[_0x3836a9(0x128)]['has'](_0xbdaad7);}[_0x182584(0xae)](_0x4b3d38){var _0x4db406=_0x182584;return Array[_0x4db406(0x80)](this[_0x4db406(0xbf)])[_0x4db406(0x97)](_0x4f1634=>_0x4f1634(_0x4b3d38));}}var _0x50d3e8=Object[_0x182584(0x7f)],_0x3922da=(_0xa6f846,_0x1613e5,_0xf19d7a,_0x69d36e)=>{var _0x4a91fc=_0x182584;for(var _0x2aac1c=_0x69d36e>0x1?void 0x0:_0x69d36e?_0x50d3e8(_0x1613e5,_0xf19d7a):_0x1613e5,_0x4b31fa=_0xa6f846[_0x4a91fc(0x75)]-0x1,_0x2d98b0;_0x4b31fa>=0x0;_0x4b31fa--)(_0x2d98b0=_0xa6f846[_0x4b31fa])&&(_0x2aac1c=_0x2d98b0(_0x2aac1c)||_0x2aac1c);return _0x2aac1c;},_0x1c5739=(_0x818952,_0x40a436)=>(_0x2bca4d,_0x4b3856)=>_0x40a436(_0x2bca4d,_0x4b3856,_0x818952);let _0x5f55d9=class extends _0x8e9bb7[_0x182584(0x14f)]{constructor(_0x53cb67){var _0x4f0ddc=_0x182584;super(),this['_liveShareService']=_0x53cb67,this[_0x4f0ddc(0x14c)]();}[_0x182584(0x14c)](){var _0x1bce82=_0x182584;[_0x2de615[_0x1bce82(0xbe)]['id'],_0x2de615[_0x1bce82(0x143)]['id'],_0x154e22[_0x1bce82(0x71)]['id']][_0x1bce82(0x7b)](_0x4969f4=>{var _0x46c696=_0x1bce82;this[_0x46c696(0x13f)](this[_0x46c696(0xf9)][_0x46c696(0x90)](_0x4969f4));});}};_0x5f55d9=_0x3922da([_0x1c5739(0x0,_0x8e9bb7[_0x182584(0x137)](_0x2dea8b))],_0x5f55d9);var _0x2c1d4f=function(){var _0x3b5341=_0x182584;return _0x2c1d4f=Object[_0x3b5341(0x130)]||function(_0x42e61a){var _0x3c9adf=_0x3b5341;for(var _0x53452e,_0x5c343f=0x1,_0x2b2a00=arguments['length'];_0x5c343f<_0x2b2a00;_0x5c343f++){_0x53452e=arguments[_0x5c343f];for(var _0x4607f5 in _0x53452e)Object[_0x3c9adf(0xaf)][_0x3c9adf(0xc4)]['call'](_0x53452e,_0x4607f5)&&(_0x42e61a[_0x4607f5]=_0x53452e[_0x4607f5]);}return _0x42e61a;},_0x2c1d4f['apply'](this,arguments);},_0x57de56=function(_0x5b3fd6,_0x29684f){var _0x121695=_0x182584,_0x33070c={};for(var _0xce6cf6 in _0x5b3fd6)Object[_0x121695(0xaf)][_0x121695(0xc4)][_0x121695(0x9e)](_0x5b3fd6,_0xce6cf6)&&_0x29684f['indexOf'](_0xce6cf6)<0x0&&(_0x33070c[_0xce6cf6]=_0x5b3fd6[_0xce6cf6]);if(_0x5b3fd6!=null&&typeof Object[_0x121695(0x153)]=='function'){for(var _0x21963f=0x0,_0xce6cf6=Object[_0x121695(0x153)](_0x5b3fd6);_0x21963f<_0xce6cf6[_0x121695(0x75)];_0x21963f++)_0x29684f['indexOf'](_0xce6cf6[_0x21963f])<0x0&&Object['prototype'][_0x121695(0xf8)]['call'](_0x5b3fd6,_0xce6cf6[_0x21963f])&&(_0x33070c[_0xce6cf6[_0x21963f]]=_0x5b3fd6[_0xce6cf6[_0x21963f]]);}return _0x33070c;},_0x39ee26=_0x256040[_0x182584(0xee)](function(_0x1ebf84,_0x17c643){var _0x55824f=_0x182584,_0x31b52f=_0x1ebf84[_0x55824f(0xc2)],_0x34f65f=_0x1ebf84['id'],_0xc825e=_0x1ebf84['className'],_0x4fdf9e=_0x1ebf84[_0x55824f(0x146)],_0x297629=_0x57de56(_0x1ebf84,[_0x55824f(0xc2),'id',_0x55824f(0x85),_0x55824f(0x146)]),_0x4a2605=_0x55824f(0xde)['concat'](_0x34f65f,'\x20')['concat'](_0xc825e||'')['trim'](),_0x2ff66b=_0x256040[_0x55824f(0x103)]('_'[_0x55824f(0xd4)](_0x34405c()));return _0x2292b6(_0x31b52f,''[_0x55824f(0xd4)](_0x34f65f),{'defIds':_0x31b52f[_0x55824f(0xa6)],'idSuffix':_0x2ff66b['current']},_0x2c1d4f({'ref':_0x17c643,'className':_0x4a2605},_0x297629),_0x4fdf9e);});function _0x2292b6(_0x54d0f1,_0x8987aa,_0x5c04bc,_0x5f4eba,_0xa39383){var _0x251b16=_0x182584;return _0x256040[_0x251b16(0xac)](_0x54d0f1[_0x251b16(0x139)],_0x2c1d4f(_0x2c1d4f({'key':_0x8987aa},_0x47de06(_0x54d0f1,_0x5c04bc,_0xa39383)),_0x5f4eba),(_0x183ceb(_0x54d0f1,_0x5c04bc)[_0x251b16(0x9d)]||[])[_0x251b16(0x97)](function(_0x4a9f97,_0x1b4c70){var _0x1c9ef8=_0x251b16;return _0x2292b6(_0x4a9f97,''[_0x1c9ef8(0xd4)](_0x8987aa,'-')[_0x1c9ef8(0xd4)](_0x54d0f1[_0x1c9ef8(0x139)],'-')[_0x1c9ef8(0xd4)](_0x1b4c70),_0x5c04bc,void 0x0,_0xa39383);}));}function _0x47de06(_0x209b67,_0x502afc,_0x4deec9){var _0x452e8c=_0x182584,_0x3b8ec7=_0x2c1d4f({},_0x209b67[_0x452e8c(0x154)]);_0x4deec9!=null&&_0x4deec9[_0x452e8c(0x129)]&&_0x3b8ec7[_0x452e8c(0xbc)]===_0x452e8c(0x129)&&(_0x3b8ec7[_0x452e8c(0xbc)]=_0x4deec9[_0x452e8c(0x129)]),_0x209b67[_0x452e8c(0x139)]===_0x452e8c(0x136)&&_0x3b8ec7['id']&&(_0x3b8ec7['id']=_0x3b8ec7['id']+_0x502afc[_0x452e8c(0xb6)]),Object[_0x452e8c(0x145)](_0x3b8ec7)['forEach'](function(_0x4269bb){var _0x59f588=_0x452e8c,_0x3e085d=_0x4269bb[0x0],_0x47fbe1=_0x4269bb[0x1];_0x3e085d===_0x59f588(0x136)&&typeof _0x47fbe1==_0x59f588(0x9a)&&(_0x3b8ec7[_0x3e085d]=_0x47fbe1[_0x59f588(0xe3)](/url\(#(.*)\)/,_0x59f588(0x106)[_0x59f588(0xd4)](_0x502afc[_0x59f588(0xb6)],')')));});var _0x186947=_0x502afc['defIds'];return!_0x186947||_0x186947[_0x452e8c(0x75)]===0x0||(_0x209b67[_0x452e8c(0x139)]===_0x452e8c(0xcc)&&_0x3b8ec7['xlink:href']&&(_0x3b8ec7['xlink:href']=_0x3b8ec7[_0x452e8c(0xf1)]+_0x502afc[_0x452e8c(0xb6)]),Object[_0x452e8c(0x145)](_0x3b8ec7)[_0x452e8c(0x7b)](function(_0x142fd3){var _0x304e4b=_0x452e8c,_0x4282f2=_0x142fd3[0x0],_0x36979c=_0x142fd3[0x1];typeof _0x36979c=='string'&&(_0x3b8ec7[_0x4282f2]=_0x36979c[_0x304e4b(0xe3)](/url\(#(.*)\)/,_0x304e4b(0x106)[_0x304e4b(0xd4)](_0x502afc['idSuffix'],')')));})),_0x3b8ec7;}function _0x183ceb(_0x330d69,_0x54ae61){var _0x1d1ff3=_0x182584,_0x44c000,_0xdb1848=_0x54ae61['defIds'];return!_0xdb1848||_0xdb1848[_0x1d1ff3(0x75)]===0x0?_0x330d69:_0x330d69[_0x1d1ff3(0x139)]===_0x1d1ff3(0x72)&&(!((_0x44c000=_0x330d69[_0x1d1ff3(0x9d)])===null||_0x44c000===void 0x0)&&_0x44c000[_0x1d1ff3(0x75)])?_0x2c1d4f(_0x2c1d4f({},_0x330d69),{'children':_0x330d69['children']['map'](function(_0x37e0bc){var _0x5e50f1=_0x1d1ff3;return typeof _0x37e0bc[_0x5e50f1(0x154)]['id']=='string'&&_0xdb1848&&_0xdb1848[_0x5e50f1(0x81)](_0x37e0bc[_0x5e50f1(0x154)]['id'])?_0x2c1d4f(_0x2c1d4f({},_0x37e0bc),{'attrs':_0x2c1d4f(_0x2c1d4f({},_0x37e0bc['attrs']),{'id':_0x37e0bc['attrs']['id']+_0x54ae61[_0x5e50f1(0xb6)]})}):_0x37e0bc;})}):_0x330d69;}function _0x34405c(){var _0x59f82d=_0x182584;return Math[_0x59f82d(0x11d)]()[_0x59f82d(0xc5)](0x24)[_0x59f82d(0xed)](0x2,0x8);}_0x39ee26[_0x182584(0x88)]=_0x182584(0xff);var _0x5a1eb8={'tag':_0x182584(0x70),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x182584(0x107),'viewBox':_0x182584(0xc8),'width':'1em','height':'1em'},'children':[{'tag':_0x182584(0xf6),'attrs':{'fill':_0x182584(0xfb),'d':_0x182584(0x99)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x182584(0x92),'fillRule':_0x182584(0xc1),'clipRule':_0x182584(0xc1)}}]},_0x4c0bfa=_0x256040[_0x182584(0xee)](function(_0x1898a0,_0xc07ef5){var _0xb00c5=_0x182584;return _0x256040[_0xb00c5(0xac)](_0x39ee26,Object[_0xb00c5(0x130)]({},_0x1898a0,{'id':_0xb00c5(0xfa),'ref':_0xc07ef5,'icon':_0x5a1eb8}));});_0x4c0bfa['displayName']=_0x182584(0x68);var _0x130f1f=Object[_0x182584(0x7f)],_0x490635=(_0x321d97,_0x5e7225,_0x21aab4,_0x1885cc)=>{var _0x535aef=_0x182584;for(var _0x44a092=_0x1885cc>0x1?void 0x0:_0x1885cc?_0x130f1f(_0x5e7225,_0x21aab4):_0x5e7225,_0xaee86f=_0x321d97[_0x535aef(0x75)]-0x1,_0x4545ac;_0xaee86f>=0x0;_0xaee86f--)(_0x4545ac=_0x321d97[_0xaee86f])&&(_0x44a092=_0x4545ac(_0x44a092)||_0x44a092);return _0x44a092;},_0x3ffce4=(_0x50f1f5,_0x2e20e2)=>(_0x2b4097,_0x1ab536)=>_0x2e20e2(_0x2b4097,_0x1ab536,_0x50f1f5);_0x224b11[_0x182584(0x12d)]=class extends _0x8e9bb7['RxDisposable']{constructor(_0x1c9ce3,_0x3a691c,_0x1c727b){var _0x63b72f=_0x182584;super(),_0x354d30(this,_0x63b72f(0x127),new Map()),(this[_0x63b72f(0xda)]=_0x1c9ce3,this['_injector']=_0x3a691c,this[_0x63b72f(0xbd)]=_0x1c727b,this[_0x63b72f(0x14c)]());}async[_0x182584(0xb0)](_0x248dbb){var _0x43f923=_0x182584;return this[_0x43f923(0x127)][_0x43f923(0xaa)](_0x248dbb)||await this[_0x43f923(0x113)](_0x248dbb),this[_0x43f923(0x127)][_0x43f923(0x84)](_0x248dbb);}['_init'](){var _0x285fd3=_0x182584;this[_0x285fd3(0xda)][_0x285fd3(0xb8)](_0x8e9bb7[_0x285fd3(0x11b)]['UNIVER_SHEET'])[_0x285fd3(0xdf)](_0x289fe9[_0x285fd3(0x9b)](this[_0x285fd3(0x11a)]))[_0x285fd3(0x13a)](async _0x1c3400=>{var _0x2f8765=_0x285fd3;const _0x2e7d10=_0x1c3400[_0x2f8765(0x157)]();this[_0x2f8765(0x127)][_0x2f8765(0xaa)](_0x2e7d10)||this[_0x2f8765(0x113)](_0x2e7d10);}),this[_0x285fd3(0xda)][_0x285fd3(0xcb)](_0x8e9bb7[_0x285fd3(0x11b)][_0x285fd3(0x7c)])[_0x285fd3(0xdf)](_0x289fe9[_0x285fd3(0x9b)](this[_0x285fd3(0x11a)]))['subscribe'](_0x4a291d=>{var _0x19747f=_0x285fd3;const _0x41037e=_0x4a291d['getUnitId'](),_0x1306c0=this[_0x19747f(0x127)][_0x19747f(0x84)](_0x41037e);_0x1306c0==null||_0x1306c0[_0x19747f(0x114)]();});}async[_0x182584(0x113)](_0x31ee03){var _0xab53c2=_0x182584;const _0x355b93=await this[_0xab53c2(0xbd)][_0xab53c2(0xc3)](_0x31ee03),_0x2fb09c=this[_0xab53c2(0x133)][_0xab53c2(0xb3)](_0x224b11['LiveShareCoordinator'],_0x31ee03,_0x355b93);return _0x2fb09c['init'](),this[_0xab53c2(0x127)]['set'](_0x31ee03,_0x2fb09c),_0x2fb09c;}},_0x224b11['LiveShareController']=_0x490635([_0x3ffce4(0x0,_0x8e9bb7['IUniverInstanceService']),_0x3ffce4(0x1,_0x8e9bb7['Inject'](_0x8e9bb7[_0x182584(0x120)])),_0x3ffce4(0x2,_0x8e9bb7[_0x182584(0x137)](_0x35ef0a['CollaborationSessionService']))],_0x224b11[_0x182584(0x12d)]);var _0x2a9fe1=(_0xea313e=>(_0xea313e[_0x182584(0x67)]=_0x182584(0x115),_0xea313e['IDLE']='idle',_0xea313e[_0x182584(0x109)]=_0x182584(0x83),_0xea313e[_0x182584(0x76)]='not-following',_0xea313e[_0x182584(0x14b)]=_0x182584(0xb7),_0xea313e))(_0x2a9fe1||{});const _0x2e9eb4=_0x182584(0xd6),_0x97670d=0xc8;_0x224b11[_0x182584(0xcd)]=class extends _0x8e9bb7[_0x182584(0x148)]{constructor(_0x17a065,_0x34440d,_0x567965,_0x458c3c,_0x488eb8){var _0x31edbc=_0x182584;super(),_0x354d30(this,_0x31edbc(0x158),new _0x2e0944['BehaviorSubject']('idle')),_0x354d30(this,_0x31edbc(0x6e),this[_0x31edbc(0x158)][_0x31edbc(0x125)]()),_0x354d30(this,_0x31edbc(0x14c),!0x1),_0x354d30(this,_0x31edbc(0x6f),null),_0x354d30(this,_0x31edbc(0x138),null),(this[_0x31edbc(0x124)]=_0x17a065,this['_collabSession']=_0x34440d,this[_0x31edbc(0xa5)]=_0x567965,this['_liveShareService']=_0x458c3c,this[_0x31edbc(0x13d)]=_0x488eb8);}get[_0x182584(0x111)](){var _0x536364=_0x182584;return this['_status$'][_0x536364(0x13b)]();}[_0x182584(0x114)](){var _0x4b63d9=_0x182584,_0x423266;(_0x423266=this[_0x4b63d9(0x6f)])==null||_0x423266[_0x4b63d9(0x114)](),this['_status$']['next'](_0x4b63d9(0xf7)),this[_0x4b63d9(0x158)][_0x4b63d9(0xa1)]();}[_0x182584(0xfc)](){var _0x390f53=_0x182584;this[_0x390f53(0x14c)]||(this[_0x390f53(0x14c)]=!0x0,this[_0x390f53(0xba)][_0x390f53(0xd3)][_0x390f53(0xdf)](_0x289fe9['takeUntil'](this['dispose$']))[_0x390f53(0x13a)](_0x38042d=>{var _0x453ff1=_0x390f53;switch(_0x38042d){case _0x35ef0a['SessionStatus'][_0x453ff1(0x67)]:this['_handleOffline']();break;case _0x35ef0a[_0x453ff1(0xa4)]['ONLINE']:this[_0x453ff1(0x9f)]();break;}}),this[_0x390f53(0xba)][_0x390f53(0x105)][_0x390f53(0xdf)](_0x289fe9[_0x390f53(0x9b)](this[_0x390f53(0x11a)]))[_0x390f53(0x13a)](_0x282728=>{var _0x5ea7ba=_0x390f53;const {eventID:_0x502201}=_0x282728;switch(_0x502201){case _0x2e265e[_0x5ea7ba(0xa7)][_0x5ea7ba(0x121)]:this[_0x5ea7ba(0x10d)](_0x282728);break;case _0x2e265e[_0x5ea7ba(0xa7)][_0x5ea7ba(0x110)]:this[_0x5ea7ba(0xf0)](_0x282728);break;case _0x2e265e['CollaborationEvent'][_0x5ea7ba(0xca)]:this['_handleTerminate']();break;case _0x2e265e[_0x5ea7ba(0xa7)]['NEW_CHANGESETS']:this[_0x5ea7ba(0xad)](_0x282728);break;}}));}[_0x182584(0x116)](){var _0x544ea3=_0x182584;this['_collabSession'][_0x544ea3(0x13c)]({'eventID':_0x2e265e[_0x544ea3(0xa7)][_0x544ea3(0xe2)],'data':{'unitID':this[_0x544ea3(0x124)],'userID':this[_0x544ea3(0xba)]['getMemberID']()}},this[_0x544ea3(0x124)]);}[_0x182584(0xd8)](){var _0x4ad09a=_0x182584;this[_0x4ad09a(0x111)]===_0x4ad09a(0xb7)&&(this['_status$'][_0x4ad09a(0xcf)](_0x4ad09a(0xf7)),this[_0x4ad09a(0xba)][_0x4ad09a(0x13c)]({'eventID':_0x2e265e[_0x4ad09a(0xa7)][_0x4ad09a(0xca)],'data':{'unitID':this[_0x4ad09a(0x124)]}},this[_0x4ad09a(0x124)]));}[_0x182584(0xe8)](){var _0x19d4fc=_0x182584;this[_0x19d4fc(0x111)]==='not-following'&&(this[_0x19d4fc(0x158)][_0x19d4fc(0xcf)]('following'),this[_0x19d4fc(0x156)]());}[_0x182584(0x134)](){var _0x3c60c0=_0x182584;this[_0x3c60c0(0x111)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x775102){var _0x53ad0a=_0x182584;const {presenter:_0x39aef5}=_0x775102[_0x53ad0a(0xea)],_0x5a0a84=this[_0x53ad0a(0xba)][_0x53ad0a(0x9c)]();this['_presenter']=_0x39aef5,_0x39aef5===_0x5a0a84?(this[_0x53ad0a(0x123)](),this['_startPresenting']()):this['_status']!==_0x53ad0a(0x95)&&(this[_0x53ad0a(0x10b)](),this[_0x53ad0a(0x156)]());}[_0x182584(0x12b)](){var _0x3d227e=_0x182584;const _0x2fcf05={'eventID':_0x2e265e[_0x3d227e(0xa7)][_0x3d227e(0x69)]};this[_0x3d227e(0xba)][_0x3d227e(0x13c)](_0x2fcf05,this[_0x3d227e(0x124)]);}['_handleTerminate'](){var _0x4040b6=_0x182584;this[_0x4040b6(0x138)]=null,this[_0x4040b6(0x111)]!==_0x4040b6(0xb7)&&this['_beIdle']();}[_0x182584(0xad)](_0x27e706){var _0x396942=_0x182584;if(this[_0x396942(0x111)]==='following'&&this[_0x396942(0x138)]===_0x27e706['data'][_0x396942(0xb5)]){const _0x503312=_0x2e265e[_0x396942(0xb9)](_0x27e706[_0x396942(0xea)])['mutations']['reverse']()[_0x396942(0x7a)](_0x745a10=>_0x745a10['id']===_0x154e22[_0x396942(0x118)]['id']);if(_0x503312){const _0x197c4a=_0x503312['params'][_0x396942(0xa3)],_0x3bfda0=_0x503312['params'][_0x396942(0xdb)]['id'];setTimeout(()=>{var _0x30c893=_0x396942;this[_0x30c893(0x13d)][_0x30c893(0x11e)](_0x154e22['SetWorksheetActiveOperation']['id'],{'unitId':_0x197c4a,'subUnitId':_0x3bfda0},{'fromCollab':!0x0});});}}}[_0x182584(0x119)](){var _0x252ce6=_0x182584;this[_0x252ce6(0x158)][_0x252ce6(0xcf)](_0x252ce6(0xb7));const _0x4e4295=new Map(),_0x4e8f9e=this[_0x252ce6(0x6f)]=new _0x8e9bb7[(_0x252ce6(0xe5))]();_0x4e8f9e[_0x252ce6(0xa9)](_0x8e9bb7['toDisposable'](()=>{var _0x4de4fd=_0x252ce6;_0x4e4295[_0x4de4fd(0x7b)](_0x215c42=>_0x215c42[_0x4de4fd(0xa1)]()),_0x4e4295[_0x4de4fd(0x10c)]();})),_0x4e8f9e[_0x252ce6(0xa9)](this[_0x252ce6(0x13d)]['onCommandExecuted'](_0x814cc1=>{var _0x260355=_0x252ce6,_0x1322d3;if(_0x814cc1['type']!==_0x8e9bb7[_0x260355(0x8e)][_0x260355(0xd1)]||!this['_liveShareService'][_0x260355(0xd7)](_0x814cc1['id']))return;const {id:_0x58f7c0}=_0x814cc1;let _0xc54041;_0x4e4295['has'](_0x58f7c0)?_0xc54041=_0x4e4295[_0x260355(0x84)](_0x58f7c0):(_0xc54041=new _0x2e0944[(_0x260355(0x65))](),_0x4e4295[_0x260355(0xfd)](_0x58f7c0,_0xc54041),_0xc54041[_0x260355(0xdf)](_0x289fe9[_0x260355(0x108)]((_0x1322d3=this['_configService'][_0x260355(0x7d)](_0x2e9eb4))!=null?_0x1322d3:_0x97670d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x260355(0x13a)](_0x107236=>{var _0x223ea1=_0x260355;this[_0x223ea1(0xba)][_0x223ea1(0x13c)]({'eventID':_0x2e265e[_0x223ea1(0xa7)][_0x223ea1(0x110)],'data':{'unitID':this['_unitID'],'operations':{[_0x107236['id']]:{'id':_0x107236['id'],'params':JSON[_0x223ea1(0xd9)](_0x107236[_0x223ea1(0x77)])}}}},this[_0x223ea1(0x124)]);})),_0xc54041['next'](_0x814cc1);})),this[_0x252ce6(0xf9)][_0x252ce6(0xae)](this['_unitID'])[_0x252ce6(0x7b)](_0x15c172=>this[_0x252ce6(0xba)][_0x252ce6(0x13c)]({'eventID':_0x2e265e['CollaborationEvent'][_0x252ce6(0x110)],'data':{'unitID':this[_0x252ce6(0x124)],'operations':{[_0x15c172['id']]:{'id':_0x15c172['id'],'params':JSON[_0x252ce6(0xd9)](_0x15c172[_0x252ce6(0x77)])}}}},this[_0x252ce6(0x124)]));}['_stopPresenting'](){var _0x3644bb=_0x182584,_0x405321;this[_0x3644bb(0x158)][_0x3644bb(0xcf)](_0x3644bb(0xf7)),(_0x405321=this[_0x3644bb(0x6f)])==null||_0x405321[_0x3644bb(0x114)](),this[_0x3644bb(0x6f)]=null;}[_0x182584(0x156)](){var _0x4edede=_0x182584,_0xb54142;(_0xb54142=this[_0x4edede(0x6f)])==null||_0xb54142[_0x4edede(0x114)](),this[_0x4edede(0x158)][_0x4edede(0xcf)](_0x4edede(0x83));}[_0x182584(0xfe)](){var _0x271d3e=_0x182584,_0x4f99ce;this[_0x271d3e(0x158)][_0x271d3e(0xcf)](_0x271d3e(0xf7)),(_0x4f99ce=this[_0x271d3e(0x6f)])==null||_0x4f99ce[_0x271d3e(0x114)](),this[_0x271d3e(0x6f)]=null;}[_0x182584(0x123)](){var _0x36e0d3=_0x182584,_0xaaf33e;this[_0x36e0d3(0x158)][_0x36e0d3(0xcf)](_0x36e0d3(0x95)),(_0xaaf33e=this['_commandDisposable'])==null||_0xaaf33e[_0x36e0d3(0x114)]();}[_0x182584(0xf0)](_0x3c48d1){var _0x4c6700=_0x182584;if(['presenting',_0x4c6700(0x95),_0x4c6700(0x115)][_0x4c6700(0x81)](this[_0x4c6700(0x111)])||!_0x3c48d1[_0x4c6700(0xea)]['presenter']||_0x3c48d1[_0x4c6700(0xea)][_0x4c6700(0xb2)]===this[_0x4c6700(0xba)]['getMemberID']())return;this[_0x4c6700(0x111)]===_0x4c6700(0xf7)&&this[_0x4c6700(0x156)]();const _0x2ef19a=_0x3c48d1['data']['operations'];Object[_0x4c6700(0x11c)](_0x2ef19a)[_0x4c6700(0x7b)](_0x57af61=>{var _0x464863=_0x4c6700;this[_0x464863(0x13d)][_0x464863(0x11e)](_0x57af61['id'],_0x57af61[_0x464863(0x77)]?JSON[_0x464863(0x98)](_0x57af61[_0x464863(0x77)]):null,{'fromCollab':!0x0});});}[_0x182584(0xe0)](){var _0xd9cc4f=_0x182584,_0x2a5afc;this[_0xd9cc4f(0x158)][_0xd9cc4f(0xcf)](_0xd9cc4f(0x115)),(_0x2a5afc=this[_0xd9cc4f(0x6f)])==null||_0x2a5afc[_0xd9cc4f(0x114)]();}[_0x182584(0x9f)](){var _0x5e1617=_0x182584;this[_0x5e1617(0x158)][_0x5e1617(0xcf)](_0x5e1617(0xf7)),this[_0x5e1617(0x12b)]();}},_0x224b11[_0x182584(0xcd)]=_0x490635([_0x3ffce4(0x2,_0x8e9bb7[_0x182584(0x66)]),_0x3ffce4(0x3,_0x8e9bb7[_0x182584(0x137)](_0x2dea8b)),_0x3ffce4(0x4,_0x8e9bb7['ICommandService'])],_0x224b11['LiveShareCoordinator']);function _0x5a2e36(){var _0xb7c199=_0x182584;const _0x1670cf=_0x156244[_0xb7c199(0xc9)](_0x224b11[_0xb7c199(0x12d)]),_0x4c404b=_0x156244[_0xb7c199(0xc9)](_0x8e9bb7['IUniverInstanceService']),_0x59fa35=_0x156244[_0xb7c199(0x82)](()=>_0x4c404b[_0xb7c199(0x8c)](_0x8e9bb7['UniverInstanceType'][_0xb7c199(0x7c)]),void 0x0,!0x1,[]),[_0x24ecb1,_0x53f795]=_0x256040[_0xb7c199(0x94)](null),[_0x3fb293,_0x42ac23]=_0x256040[_0xb7c199(0x94)](_0x2a9fe1[_0xb7c199(0xef)]),_0x321ad7=_0x256040[_0xb7c199(0x103)](null);return _0x256040[_0xb7c199(0x135)](()=>(_0x59fa35&&_0x1670cf[_0xb7c199(0xb0)](_0x59fa35[_0xb7c199(0x157)]())['then'](_0x408557=>{var _0x34b533=_0xb7c199;_0x53f795(_0x408557),_0x321ad7[_0x34b533(0x79)]=_0x408557['status$'][_0x34b533(0x13a)](_0x37b2c4=>{_0x42ac23(_0x37b2c4);});}),()=>{var _0x4cf1e2=_0xb7c199,_0x3b6a6b;(_0x3b6a6b=_0x321ad7['current'])==null||_0x3b6a6b[_0x4cf1e2(0x14e)](),_0x321ad7[_0x4cf1e2(0x79)]=null;}),[_0x59fa35,_0x1670cf]),_0x24ecb1?_0x212baf[_0xb7c199(0xdc)](_0x596c7f[_0xb7c199(0xf2)],{'align':_0xb7c199(0x14a),'disabled':_0x3fb293===_0x2a9fe1[_0xb7c199(0x67)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x212baf['jsx'](_0x53995c,{'status':_0x3fb293,'coordinator':_0x24ecb1}),'children':_0x212baf[_0xb7c199(0xdc)](_0xb7c199(0x6d),{'className':_0x596c7f[_0xb7c199(0x10e)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3fb293===_0x2a9fe1['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3fb293!==_0x2a9fe1[_0xb7c199(0x67)]}),'type':_0xb7c199(0x6d),'children':_0x212baf[_0xb7c199(0xdc)](_0x4c0bfa,{'className':_0xb7c199(0x87)})})}):null;}function _0x53995c(_0x13f7d6){var _0x625ff4=_0x182584;const {status:_0x34cada,coordinator:_0x3579d2}=_0x13f7d6;switch(_0x34cada){case _0x2a9fe1[_0x625ff4(0xef)]:return _0x212baf[_0x625ff4(0xdc)](_0x2ce090,{'coordinator':_0x3579d2});case _0x2a9fe1[_0x625ff4(0x109)]:return _0x212baf[_0x625ff4(0xdc)](_0x4702c6,{'coordinator':_0x3579d2});case _0x2a9fe1[_0x625ff4(0x76)]:return _0x212baf[_0x625ff4(0xdc)](_0x5ba4b3,{'coordinator':_0x3579d2});case _0x2a9fe1[_0x625ff4(0x67)]:return _0x212baf['jsx'](_0x443033,{});case _0x2a9fe1[_0x625ff4(0x14b)]:return _0x212baf['jsx'](_0x3dd9fb,{'coordinator':_0x3579d2});default:return null;}}function _0x2ce090(_0x57ceb0){var _0x1cc82a=_0x182584;const {coordinator:_0x31b143}=_0x57ceb0;return _0x212baf['jsxs'](_0x212baf[_0x1cc82a(0x10a)],{'children':[_0x212baf[_0x1cc82a(0xdc)](_0x1cc82a(0x104),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x212baf[_0x1cc82a(0xdc)](_0x596c7f[_0x1cc82a(0x73)],{'onClick':()=>_0x31b143[_0x1cc82a(0x116)](),'children':_0x1cc82a(0x12e)})]});}function _0x4702c6(_0x1c09be){var _0x14ce5f=_0x182584;const {coordinator:_0x565fea}=_0x1c09be;return _0x212baf['jsxs'](_0x212baf[_0x14ce5f(0x10a)],{'children':[_0x212baf[_0x14ce5f(0xdc)]('div',{'className':_0x14ce5f(0xc7),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x212baf[_0x14ce5f(0xdc)](_0x596c7f[_0x14ce5f(0x73)],{'onClick':()=>_0x565fea['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x5ba4b3(_0x98f746){var _0x2e5bba=_0x182584;const {coordinator:_0x23b0ed}=_0x98f746;return _0x212baf[_0x2e5bba(0x112)](_0x212baf[_0x2e5bba(0x10a)],{'children':[_0x212baf[_0x2e5bba(0xdc)]('div',{'className':_0x2e5bba(0xc7),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x212baf[_0x2e5bba(0xdc)](_0x596c7f[_0x2e5bba(0x73)],{'variant':_0x2e5bba(0x155),'onClick':()=>_0x23b0ed['startFollowing'](),'children':_0x2e5bba(0x117)})]});}function _0x3dd9fb(_0x58cbf1){var _0x521bc3=_0x182584;const {coordinator:_0x45975f}=_0x58cbf1;return _0x212baf['jsxs'](_0x212baf[_0x521bc3(0x10a)],{'children':[_0x212baf[_0x521bc3(0xdc)](_0x521bc3(0x104),{'className':_0x521bc3(0xc7),'children':_0x521bc3(0x96)}),_0x212baf[_0x521bc3(0xdc)](_0x596c7f['Button'],{'variant':_0x521bc3(0x91),'onClick':()=>_0x45975f[_0x521bc3(0xd8)](),'children':'Stop\x20presenting'})]});}function _0x443033(){var _0x3d9e4a=_0x182584;return _0x212baf[_0x3d9e4a(0xdc)](_0x212baf[_0x3d9e4a(0x10a)],{'children':'You\x27are\x20offline.'});}var _0x253f3a=Object[_0x182584(0x7f)],_0x1b3665=(_0x1b62a9,_0x3eab9e,_0x100ddf,_0xb90bff)=>{var _0x1fa463=_0x182584;for(var _0x22cfda=_0xb90bff>0x1?void 0x0:_0xb90bff?_0x253f3a(_0x3eab9e,_0x100ddf):_0x3eab9e,_0x1a427c=_0x1b62a9[_0x1fa463(0x75)]-0x1,_0x23b24a;_0x1a427c>=0x0;_0x1a427c--)(_0x23b24a=_0x1b62a9[_0x1a427c])&&(_0x22cfda=_0x23b24a(_0x22cfda)||_0x22cfda);return _0x22cfda;},_0x45bdf0=(_0x1bd77a,_0x3d4a22)=>(_0x170b68,_0x3afb74)=>_0x3d4a22(_0x170b68,_0x3afb74,_0x1bd77a);_0x224b11['DesktopLiveShareController']=class extends _0x8e9bb7[_0x182584(0x14f)]{constructor(_0x2673b6,_0x1022ed){var _0x3ab896=_0x182584;super(),this[_0x3ab896(0x133)]=_0x2673b6,this[_0x3ab896(0x13e)]=_0x1022ed,this['_mountLiveShare']();}[_0x182584(0x6a)](){var _0x32a50b=_0x182584;this[_0x32a50b(0x13f)](this[_0x32a50b(0x13e)]['registerComponent'](_0x156244[_0x32a50b(0x100)][_0x32a50b(0xf3)],()=>_0x156244[_0x32a50b(0x132)](_0x5a2e36,this[_0x32a50b(0x133)])));}},_0x224b11['DesktopLiveShareController']=_0x1b3665([_0x45bdf0(0x0,_0x8e9bb7[_0x182584(0x137)](_0x8e9bb7['Injector'])),_0x45bdf0(0x1,_0x156244[_0x182584(0xdd)])],_0x224b11[_0x182584(0x142)]);var _0x23a688=Object['defineProperty'],_0x6126f1=Object[_0x182584(0x7f)],_0x288926=(_0x44860b,_0x55898a,_0x44a720)=>_0x55898a in _0x44860b?_0x23a688(_0x44860b,_0x55898a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44a720}):_0x44860b[_0x55898a]=_0x44a720,_0x3d9ed1=(_0x53f504,_0x40b278,_0x4d1d6f,_0x57c4c6)=>{var _0x2b4694=_0x182584;for(var _0x2b816a=_0x57c4c6>0x1?void 0x0:_0x57c4c6?_0x6126f1(_0x40b278,_0x4d1d6f):_0x40b278,_0x3868ae=_0x53f504[_0x2b4694(0x75)]-0x1,_0x26d600;_0x3868ae>=0x0;_0x3868ae--)(_0x26d600=_0x53f504[_0x3868ae])&&(_0x2b816a=_0x26d600(_0x2b816a)||_0x2b816a);return _0x2b816a;},_0x377c71=(_0x1924e9,_0x58c4f1)=>(_0x2c960d,_0x81abd3)=>_0x58c4f1(_0x2c960d,_0x81abd3,_0x1924e9),_0x1eec64=(_0xe6e0d2,_0x42d8b4,_0xef0016)=>_0x288926(_0xe6e0d2,typeof _0x42d8b4!=_0x182584(0x147)?_0x42d8b4+'':_0x42d8b4,_0xef0016);const _0x3b69e6='UNIVER_LIVE_SHARE_PLUGIN';_0x224b11[_0x182584(0xe4)]=class extends _0x8e9bb7['Plugin']{constructor(_0xc1a6c0=_0x393318,_0x5efaaa,_0x45f9fc){var _0x138f81=_0x182584;super(),this[_0x138f81(0xd0)]=_0xc1a6c0,this[_0x138f81(0x133)]=_0x5efaaa,this[_0x138f81(0xa5)]=_0x45f9fc;const {..._0x2e348e}=_0x8e9bb7[_0x138f81(0x6c)]({},_0x393318,this[_0x138f81(0xd0)]);this[_0x138f81(0xa5)]['setConfig'](_0x24e3ba,_0x2e348e);}[_0x182584(0xeb)](){var _0x47f7e5=_0x182584;_0x8e9bb7[_0x47f7e5(0x14d)](this[_0x47f7e5(0x133)],_0x8e9bb7[_0x47f7e5(0x151)]([[_0x2dea8b],[_0x224b11['LiveShareController']],[_0x5f55d9],[_0x224b11[_0x47f7e5(0x142)]]],this[_0x47f7e5(0xd0)]['override'])),_0x8e9bb7[_0x47f7e5(0x12f)](this[_0x47f7e5(0x133)],[[_0x5f55d9]]);}[_0x182584(0xa8)](){var _0xfc37c5=_0x182584;_0x8e9bb7[_0xfc37c5(0x12f)](this['_injector'],[[_0x224b11[_0xfc37c5(0x142)]]]);}},_0x1eec64(_0x224b11[_0x182584(0xe4)],_0x182584(0xbb),_0x8e9bb7[_0x182584(0x11b)][_0x182584(0xe6)]),_0x1eec64(_0x224b11[_0x182584(0xe4)],'pluginName',_0x3b69e6),_0x224b11['UniverLiveSharePlugin']=_0x3d9ed1([_0x8e9bb7[_0x182584(0xa0)](_0x35ef0a[_0x182584(0x126)]),_0x377c71(0x1,_0x8e9bb7[_0x182584(0x137)](_0x8e9bb7[_0x182584(0x120)])),_0x377c71(0x2,_0x8e9bb7[_0x182584(0x66)])],_0x224b11[_0x182584(0xe4)]),_0x224b11[_0x182584(0x8a)]=_0x5a2e36,_0x224b11[_0x182584(0x74)]=_0x2dea8b,_0x224b11[_0x182584(0x12c)]=_0x2a9fe1,Object[_0x182584(0xb4)](_0x224b11,Symbol[_0x182584(0x8f)],{'value':_0x182584(0xc6)});}));function _0x49ca(){var _0x28e37d=['concat','UniverDesign','SAME_OPERATION_SHARE_INTERVAL','shouldShareOperation','stopPresenting','stringify','_univerInstanceService','sheet','jsx','IUIPartsService','univerjs-icon\x20univerjs-icon-','pipe','_handleOffline','UniverUi','LIVESHARE_REQUEST_HOST','replace','UniverLiveSharePlugin','DisposableCollection','UNIVER_UNKNOWN','403053qhzksY','startFollowing','React','data','onStarting','@univerjs/core','substring','forwardRef','IDLE','_handleOperation','xlink:href','Dropdown','HEADER_MENU','amd','@univerjs/design','path','idle','propertyIsEnumerable','_liveShareService','live-share-icon','currentColor','init','set','_beIdle','UniverIcon','BuiltInUIPart','@univerjs/sheets-ui','2287796CqBuJL','useRef','div','event$','url(#$1','none','throttleTime','FOLLOWING','Fragment','_stopPresenting','clear','_handleNewHost','clsx','object','LIVESHARE_OPERATION','_status','jsxs','_startLiveShareCoordinator','dispose','offline','tryStartPresenting','Start\x20following','InsertSheetMutation','_startPresenting','dispose$','UniverInstanceType','values','random','executeCommand','rxjs/operators','Injector','LIVESHARE_NEW_HOST','1603300EdiYZq','_stopFollowing','_unitID','asObservable','UniverCollaborationClientPlugin','_entities','_sharedOperations','colorChannel1','UniverSheetsUi','_fetchOperations','LiveShareStatus','LiveShareController','Start','touchDependencies','assign','@univerjs/sheets','connectInjector','_injector','stopFollowing','useEffect','mask','Inject','_presenter','tag','subscribe','getValue','send','_commandService','_uiPartsService','disposeWithMe','@univerjs-pro/collaboration-client','461938RzmJrj','DesktopLiveShareController','SetScrollOperation','delete','entries','extend','symbol','RxDisposable','toDisposable','end','PRESENTING','_init','registerDependencies','unsubscribe','Disposable','operators','mergeOverrideWithDependencies','live-share.config','getOwnPropertySymbols','attrs','text','_startFollowing','getUnitId','_status$','221727dRsUAw','Subject','IConfigService','OFFLINE','LiveShareIcon','LIVESHARE_FETCH_OPERATIONS','_mountLiveShare','rxjs','merge','button','status$','_commandDisposable','svg','SetWorksheetActiveOperation','defs','Button','LiveShareService','length','NOT_FOLLOWING','params','8bOFetF','current','find','forEach','UNIVER_SHEET','getConfig','UniverSheets','getOwnPropertyDescriptor','from','includes','useObservable','following','get','className','UniverProCollaboration','univer-size-4','displayName','5019849JDkNJn','LiveShare','UniverCore','getCurrentTypeOfUnit$','@univerjs-pro/collaboration','CommandType','toStringTag','registerSharedOperation','default','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','@univerjs/ui','useState','not-following','You\x27re\x20presenting\x20the\x20document','map','parse','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','string','takeUntil','getMemberID','children','call','_handleOnline','DependentOn','complete','820vGrCQN','unitId','SessionStatus','_configService','defIds','CollaborationEvent','onRendered','add','has','exports','createElement','_handleNewChangeSets','getInitialStates','prototype','getLiveShareCoordinator','4050DYQHni','presenter','createInstance','defineProperty','memberID','idSuffix','presenting','getTypeOfUnitAdded$','parseProtocolChangeset','_collabSession','type','fill','_collabSessionService','SetZoomRatioOperation','_reporters','UniverProCollaborationClient','evenodd','icon','requireSession','hasOwnProperty','toString','Module','univer-mb-3\x20univer-w-full\x20univer-text-sm','0\x200\x2017\x2017','useDependency','LIVESHARE_TERMINATE','getTypeOfUnitDisposed$','use','LiveShareCoordinator','UniverProLiveShare','next','_config','OPERATION','react','sessionStatus$'];_0x49ca=function(){return _0x28e37d;};return _0x49ca();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.0-nightly.202506091607",
3
+ "version": "0.8.0-nightly.202506111607",
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.202506091607",
51
- "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506091607",
52
- "@univerjs/core": "0.8.0-nightly.202506091607",
53
- "@univerjs/sheets": "0.8.0-nightly.202506091607",
54
- "@univerjs/design": "0.8.0-nightly.202506091607",
55
- "@univerjs/sheets-ui": "0.8.0-nightly.202506091607",
56
- "@univerjs/ui": "0.8.0-nightly.202506091607"
50
+ "@univerjs-pro/collaboration": "0.8.0-nightly.202506111607",
51
+ "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506111607",
52
+ "@univerjs/core": "0.8.0-nightly.202506111607",
53
+ "@univerjs/sheets": "0.8.0-nightly.202506111607",
54
+ "@univerjs/sheets-ui": "0.8.0-nightly.202506111607",
55
+ "@univerjs/ui": "0.8.0-nightly.202506111607",
56
+ "@univerjs/design": "0.8.0-nightly.202506111607"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.4",
@@ -63,8 +63,8 @@
63
63
  "typescript": "^5.8.3",
64
64
  "vite": "^6.3.5",
65
65
  "vitest": "^3.2.0",
66
- "@univerjs/protocol": "0.1.47-alpha.0",
67
- "@univerjs-infra/shared": "0.8.0"
66
+ "@univerjs-infra/shared": "0.8.0",
67
+ "@univerjs/protocol": "0.1.47-alpha.0"
68
68
  },
69
69
  "scripts": {
70
70
  "test": "vitest run",