@univerjs-pro/live-share 0.7.0-nightly.202505201607 → 0.7.0-nightly.202505211607

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 _0x577bce=_0x4d8b;(function(_0x34f480,_0x3ccf1d){var _0x34204a=_0x4d8b,_0x224633=_0x34f480();while(!![]){try{var _0x5ea4b2=-parseInt(_0x34204a(0x24c))/0x1*(parseInt(_0x34204a(0x258))/0x2)+parseInt(_0x34204a(0x1e0))/0x3*(-parseInt(_0x34204a(0x2ae))/0x4)+-parseInt(_0x34204a(0x29a))/0x5+parseInt(_0x34204a(0x1f2))/0x6+parseInt(_0x34204a(0x2a8))/0x7*(parseInt(_0x34204a(0x233))/0x8)+parseInt(_0x34204a(0x261))/0x9*(-parseInt(_0x34204a(0x1db))/0xa)+parseInt(_0x34204a(0x280))/0xb;if(_0x5ea4b2===_0x3ccf1d)break;else _0x224633['push'](_0x224633['shift']());}catch(_0x17c728){_0x224633['push'](_0x224633['shift']());}}}(_0x1c40,0x96e69));var U=Object[_0x577bce(0x29f)],F=(_0x384dfc,_0x1b312a,_0x27d067)=>_0x1b312a in _0x384dfc?U(_0x384dfc,_0x1b312a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27d067}):_0x384dfc[_0x1b312a]=_0x27d067,v=(_0x22cb18,_0x3f5da1,_0x33c823)=>F(_0x22cb18,typeof _0x3f5da1!='symbol'?_0x3f5da1+'':_0x3f5da1,_0x33c823);Object[_0x577bce(0x29f)](exports,Symbol['toStringTag'],{'value':_0x577bce(0x28c)});function _0x1c40(){var _0x25eeb7=['LIVESHARE_TERMINATE','1929893VSLKzp','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','hasOwnProperty','IUniverInstanceService','has','_collabSessionService','92QDMtha','ICommandService','next','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','You\x27re\x20not\x20following\x20the\x20presenter','_mountLiveShare','status$','sessionStatus$','ONLINE','init','SetScrollOperation','@univerjs-pro/collaboration-client','type','_startFollowing','executeCommand','concat','3830XPbvNV','_config','throttleTime','LiveShareController','pluginName','79773UboNKm','getUnitId','stopPresenting','clear','_handleOffline','xlink:href','_presenter','registerSharedOperation','path','clsx','RxDisposable','PRESENTING','fill','getConfig','takeUntil','getLiveShareCoordinator','_sharedOperations','IConfigService','4110222oWYrlw','toString','add','LiveShareCoordinator','trim','dispose$','Fragment','presenter','assign','SessionStatus','live-share.config','params','rxjs','url(#$1','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','getMemberID','CommandType','setConfig','useState','includes','shouldShareOperation','stringify','Present\x20this\x20document','OFFLINE','onRendered','_status','stopFollowing','IDLE','_handleOperation','touchDependencies','evenodd','univer-size-4','LiveShareStatus','operations','parse','LIVESHARE_REQUEST_HOST','DisposableCollection','getTypeOfUnitDisposed$','event$','pipe','not-following','Button','length','icon','UniverInstanceType','_injector','get','CollaborationSessionService','jsx','symbol','_reporters','UNIVER_LIVE_SHARE_PLUGIN','dispose','displayName','mask','Disposable','find','disposeWithMe','useDependency','apply','defs','You\x27are\x20offline.','registerDependencies','NEW_CHANGESETS','offline','8BBtjDX','SetWorksheetActiveOperation','_configService','Inject','_liveShareService','jsxs','parseProtocolChangeset','values','_stopPresenting','DependentOn','data','tag','UniverCollaborationClientPlugin','Injector','presenting','tryStartPresenting','_handleNewHost','entries','InsertSheetMutation','unsubscribe','indexOf','_status$','toDisposable','call','LiveShare','1IQAYwI','_beIdle','_startLiveShareCoordinator','replace','currentColor','react','getInitialStates','_fetchOperations','CollaborationEvent','attrs','delete','set','980862otohut','idSuffix','unitId','LiveShareSingle','Subject','map','complete','mergeOverrideWithDependencies','onCommandExecuted','9567ErqfqT','univer-w-full\x20univer-mb-3\x20univer-text-sm','getCurrentTypeOfUnit$','colorChannel1','_uiPartsService','button','forEach','@univerjs-pro/collaboration','UniverLiveSharePlugin','string','defIds','_univerInstanceService','1em','BehaviorSubject','extend','subscribe','You\x27re\x20presenting\x20the\x20document','className','UniverIcon','children','@univerjs/sheets-ui','Dropdown','current','_handleNewChangeSets','createElement','_stopFollowing','following','sheet','IUIPartsService','prototype','from','22365684sqFmSA','_entities','send','DesktopLiveShareController','random','registerComponent','onStarting','OPERATION','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','text','_collabSession','idle','Module','forwardRef','_init','getOwnPropertyDescriptor','getOwnPropertySymbols','override','useRef','LIVESHARE_OPERATION','_handleOnline','startFollowing','LIVESHARE_FETCH_OPERATIONS','use','@univerjs/design','_unitID','4333690xJivdM','UNIVER_SHEET','getValue','div','LiveShareService','defineProperty','LIVESHARE_NEW_HOST','FOLLOWING','_commandDisposable','You\x27re\x20following\x20the\x20presenter','_startPresenting','_commandService','Start\x20following'];_0x1c40=function(){return _0x25eeb7;};return _0x1c40();}const m=require(_0x577bce(0x1d6)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),D=require(_0x577bce(0x275)),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require(_0x577bce(0x298)),f=require(_0x577bce(0x251)),_=require(_0x577bce(0x268)),x=require(_0x577bce(0x1fe)),b=require('rxjs/operators'),$=_0x577bce(0x1fc),L={};function _0x4d8b(_0x50f57c,_0x309bb7){var _0x1c404b=_0x1c40();return _0x4d8b=function(_0x4d8b3e,_0x1c2450){_0x4d8b3e=_0x4d8b3e-0x1d6;var _0x25d448=_0x1c404b[_0x4d8b3e];return _0x25d448;},_0x4d8b(_0x50f57c,_0x309bb7);}class E extends o[_0x577bce(0x229)]{constructor(){var _0x29e8f8=_0x577bce;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x29e8f8(0x224),new Set());}[_0x577bce(0x1e7)](_0x1916f7){var _0x2ad752=_0x577bce;return this['_sharedOperations'][_0x2ad752(0x1f4)](_0x1916f7),o[_0x2ad752(0x249)](()=>this['_sharedOperations'][_0x2ad752(0x256)](_0x1916f7));}['registerInitialStateReporter'](_0x594aba){var _0x1a59d9=_0x577bce;return this[_0x1a59d9(0x224)][_0x1a59d9(0x1f4)](_0x594aba),o[_0x1a59d9(0x249)](()=>this[_0x1a59d9(0x224)][_0x1a59d9(0x256)](_0x594aba));}[_0x577bce(0x206)](_0x2f3d5b){var _0x4ed7b6=_0x577bce;return this[_0x4ed7b6(0x1f0)]['has'](_0x2f3d5b);}[_0x577bce(0x252)](_0x2fd8d7){var _0x3f2457=_0x577bce;return Array[_0x3f2457(0x27f)](this[_0x3f2457(0x224)])[_0x3f2457(0x25d)](_0x24e5c0=>_0x24e5c0(_0x2fd8d7));}}var H=Object[_0x577bce(0x28f)],V=(_0x6d9ef8,_0x3eb8ca,_0x2dbd6d,_0x21f0d5)=>{for(var _0x56d5ed=_0x21f0d5>0x1?void 0x0:_0x21f0d5?H(_0x3eb8ca,_0x2dbd6d):_0x3eb8ca,_0x3177d6=_0x6d9ef8['length']-0x1,_0x4bbde3;_0x3177d6>=0x0;_0x3177d6--)(_0x4bbde3=_0x6d9ef8[_0x3177d6])&&(_0x56d5ed=_0x4bbde3(_0x56d5ed)||_0x56d5ed);return _0x56d5ed;},k=(_0x1f1d26,_0x1f1bee)=>(_0x14ff41,_0x199493)=>_0x1f1bee(_0x14ff41,_0x199493,_0x1f1d26);let O=class extends o[_0x577bce(0x229)]{constructor(_0x1a7d09){var _0x51926d=_0x577bce;super(),this['_liveShareService']=_0x1a7d09,this[_0x51926d(0x28e)]();}[_0x577bce(0x28e)](){var _0x521230=_0x577bce;[D['SetZoomRatioOperation']['id'],D[_0x521230(0x2b8)]['id'],C[_0x521230(0x234)]['id']][_0x521230(0x267)](_0x591df5=>{var _0x1d2d0d=_0x521230;this[_0x1d2d0d(0x22b)](this[_0x1d2d0d(0x237)][_0x1d2d0d(0x1e7)](_0x591df5));});}};O=V([k(0x0,o[_0x577bce(0x236)](E))],O);var u=function(){var _0x1cd308=_0x577bce;return u=Object[_0x1cd308(0x1fa)]||function(_0x53b154){var _0xd5c743=_0x1cd308;for(var _0x3db778,_0x1c7ff7=0x1,_0x5cf502=arguments[_0xd5c743(0x21c)];_0x1c7ff7<_0x5cf502;_0x1c7ff7++){_0x3db778=arguments[_0x1c7ff7];for(var _0xef8ffa in _0x3db778)Object[_0xd5c743(0x27e)]['hasOwnProperty']['call'](_0x3db778,_0xef8ffa)&&(_0x53b154[_0xef8ffa]=_0x3db778[_0xef8ffa]);}return _0x53b154;},u[_0x1cd308(0x22d)](this,arguments);},M=function(_0x25dfe3,_0x13d443){var _0x1c8dc2=_0x577bce,_0x255887={};for(var _0x4574ad in _0x25dfe3)Object[_0x1c8dc2(0x27e)][_0x1c8dc2(0x2aa)][_0x1c8dc2(0x24a)](_0x25dfe3,_0x4574ad)&&_0x13d443[_0x1c8dc2(0x247)](_0x4574ad)<0x0&&(_0x255887[_0x4574ad]=_0x25dfe3[_0x4574ad]);if(_0x25dfe3!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x36b1e3=0x0,_0x4574ad=Object[_0x1c8dc2(0x290)](_0x25dfe3);_0x36b1e3<_0x4574ad[_0x1c8dc2(0x21c)];_0x36b1e3++)_0x13d443[_0x1c8dc2(0x247)](_0x4574ad[_0x36b1e3])<0x0&&Object[_0x1c8dc2(0x27e)]['propertyIsEnumerable']['call'](_0x25dfe3,_0x4574ad[_0x36b1e3])&&(_0x255887[_0x4574ad[_0x36b1e3]]=_0x25dfe3[_0x4574ad[_0x36b1e3]]);}return _0x255887;},j=f[_0x577bce(0x28d)](function(_0x3a49d4,_0xee68d7){var _0x57a759=_0x577bce,_0x533dfa=_0x3a49d4[_0x57a759(0x21d)],_0x280a12=_0x3a49d4['id'],_0x399c92=_0x3a49d4[_0x57a759(0x272)],_0xe7914a=_0x3a49d4[_0x57a759(0x26f)],_0x3a1a79=M(_0x3a49d4,[_0x57a759(0x21d),'id',_0x57a759(0x272),_0x57a759(0x26f)]),_0x14e062='univerjs-icon\x20univerjs-icon-'[_0x57a759(0x1da)](_0x280a12,'\x20')[_0x57a759(0x1da)](_0x399c92||'')[_0x57a759(0x1f6)](),_0x1a4bfa=f[_0x57a759(0x292)]('_'['concat'](G()));return y(_0x533dfa,''[_0x57a759(0x1da)](_0x280a12),{'defIds':_0x533dfa[_0x57a759(0x26b)],'idSuffix':_0x1a4bfa[_0x57a759(0x277)]},u({'ref':_0xee68d7,'className':_0x14e062},_0x3a1a79),_0xe7914a);});function y(_0x358d45,_0x503663,_0x3ef27e,_0x50c80f,_0x22d74f){var _0x1f928c=_0x577bce;return f[_0x1f928c(0x279)](_0x358d45[_0x1f928c(0x23e)],u(u({'key':_0x503663},q(_0x358d45,_0x3ef27e,_0x22d74f)),_0x50c80f),(W(_0x358d45,_0x3ef27e)[_0x1f928c(0x274)]||[])['map'](function(_0x1da7d6,_0x199497){var _0x1abcb2=_0x1f928c;return y(_0x1da7d6,''[_0x1abcb2(0x1da)](_0x503663,'-')['concat'](_0x358d45['tag'],'-')[_0x1abcb2(0x1da)](_0x199497),_0x3ef27e,void 0x0,_0x22d74f);}));}function q(_0x21daa4,_0x4bd056,_0xc4d16b){var _0x377c68=_0x577bce,_0x17be9a=u({},_0x21daa4[_0x377c68(0x255)]);_0xc4d16b!=null&&_0xc4d16b[_0x377c68(0x264)]&&_0x17be9a[_0x377c68(0x1ec)]===_0x377c68(0x264)&&(_0x17be9a['fill']=_0xc4d16b[_0x377c68(0x264)]),_0x21daa4[_0x377c68(0x23e)]===_0x377c68(0x228)&&_0x17be9a['id']&&(_0x17be9a['id']=_0x17be9a['id']+_0x4bd056['idSuffix']),Object[_0x377c68(0x244)](_0x17be9a)['forEach'](function(_0x4edf01){var _0x21402a=_0x377c68,_0x4e2398=_0x4edf01[0x0],_0x37227b=_0x4edf01[0x1];_0x4e2398===_0x21402a(0x228)&&typeof _0x37227b==_0x21402a(0x26a)&&(_0x17be9a[_0x4e2398]=_0x37227b[_0x21402a(0x24f)](/url\(#(.*)\)/,_0x21402a(0x1ff)['concat'](_0x4bd056['idSuffix'],')')));});var _0xb2fdc=_0x4bd056[_0x377c68(0x26b)];return!_0xb2fdc||_0xb2fdc[_0x377c68(0x21c)]===0x0||(_0x21daa4[_0x377c68(0x23e)]===_0x377c68(0x297)&&_0x17be9a['xlink:href']&&(_0x17be9a[_0x377c68(0x1e5)]=_0x17be9a[_0x377c68(0x1e5)]+_0x4bd056[_0x377c68(0x259)]),Object[_0x377c68(0x244)](_0x17be9a)[_0x377c68(0x267)](function(_0x45663a){var _0x5113bc=_0x377c68,_0x9e47da=_0x45663a[0x0],_0x45181a=_0x45663a[0x1];typeof _0x45181a=='string'&&(_0x17be9a[_0x9e47da]=_0x45181a['replace'](/url\(#(.*)\)/,_0x5113bc(0x1ff)[_0x5113bc(0x1da)](_0x4bd056[_0x5113bc(0x259)],')')));})),_0x17be9a;}function W(_0x1ce4db,_0x2669fc){var _0x57b232=_0x577bce,_0x46508b,_0x3faa32=_0x2669fc[_0x57b232(0x26b)];return!_0x3faa32||_0x3faa32[_0x57b232(0x21c)]===0x0?_0x1ce4db:_0x1ce4db[_0x57b232(0x23e)]===_0x57b232(0x22e)&&(!((_0x46508b=_0x1ce4db[_0x57b232(0x274)])===null||_0x46508b===void 0x0)&&_0x46508b[_0x57b232(0x21c)])?u(u({},_0x1ce4db),{'children':_0x1ce4db[_0x57b232(0x274)]['map'](function(_0x1c63ba){var _0x2c1fe3=_0x57b232;return typeof _0x1c63ba[_0x2c1fe3(0x255)]['id']==_0x2c1fe3(0x26a)&&_0x3faa32&&_0x3faa32[_0x2c1fe3(0x247)](_0x1c63ba[_0x2c1fe3(0x255)]['id'])>-0x1?u(u({},_0x1c63ba),{'attrs':u(u({},_0x1c63ba['attrs']),{'id':_0x1c63ba[_0x2c1fe3(0x255)]['id']+_0x2669fc[_0x2c1fe3(0x259)]})}):_0x1c63ba;})}):_0x1ce4db;}function G(){var _0xeaa0b0=_0x577bce;return Math[_0xeaa0b0(0x284)]()[_0xeaa0b0(0x1f3)](0x24)['substring'](0x2,0x8);}j[_0x577bce(0x227)]=_0x577bce(0x273);var B={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x577bce(0x26d),'height':_0x577bce(0x26d)},'children':[{'tag':'path','attrs':{'fill':_0x577bce(0x250),'d':_0x577bce(0x288)}},{'tag':_0x577bce(0x1e8),'attrs':{'fill':_0x577bce(0x250),'d':_0x577bce(0x2b1),'fillRule':_0x577bce(0x210),'clipRule':_0x577bce(0x210)}}]},P=f[_0x577bce(0x28d)](function(_0x1c14e3,_0x45379a){return f['createElement'](j,Object['assign']({},_0x1c14e3,{'id':'live-share-single','ref':_0x45379a,'icon':B}));});P['displayName']=_0x577bce(0x25b);var Y=Object[_0x577bce(0x28f)],R=(_0x454271,_0x4df6f6,_0x7b6bc,_0xebcbd1)=>{for(var _0x241819=_0xebcbd1>0x1?void 0x0:_0xebcbd1?Y(_0x4df6f6,_0x7b6bc):_0x4df6f6,_0x2ef97b=_0x454271['length']-0x1,_0x4e029f;_0x2ef97b>=0x0;_0x2ef97b--)(_0x4e029f=_0x454271[_0x2ef97b])&&(_0x241819=_0x4e029f(_0x241819)||_0x241819);return _0x241819;},S=(_0x2114be,_0x32bfa6)=>(_0x4d2628,_0x41875c)=>_0x32bfa6(_0x4d2628,_0x41875c,_0x2114be);exports[_0x577bce(0x1de)]=class extends o[_0x577bce(0x1ea)]{constructor(_0x1abfd8,_0x19874e,_0x17eb78){var _0xa96862=_0x577bce;super(),v(this,_0xa96862(0x281),new Map()),(this[_0xa96862(0x26c)]=_0x1abfd8,this[_0xa96862(0x21f)]=_0x19874e,this[_0xa96862(0x2ad)]=_0x17eb78,this[_0xa96862(0x28e)]());}async[_0x577bce(0x1ef)](_0x3d74ba){var _0x32d3f9=_0x577bce;return this[_0x32d3f9(0x281)][_0x32d3f9(0x2ac)](_0x3d74ba)||await this[_0x32d3f9(0x24e)](_0x3d74ba),this[_0x32d3f9(0x281)][_0x32d3f9(0x220)](_0x3d74ba);}[_0x577bce(0x28e)](){var _0x1cb265=_0x577bce;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x1cb265(0x21e)]['UNIVER_SHEET'])[_0x1cb265(0x219)](b['takeUntil'](this[_0x1cb265(0x1f7)]))['subscribe'](async _0x45f602=>{var _0x449743=_0x1cb265;const _0x445749=_0x45f602[_0x449743(0x1e1)]();this['_entities'][_0x449743(0x2ac)](_0x445749)||this[_0x449743(0x24e)](_0x445749);}),this['_univerInstanceService'][_0x1cb265(0x217)](o[_0x1cb265(0x21e)][_0x1cb265(0x29b)])[_0x1cb265(0x219)](b[_0x1cb265(0x1ee)](this[_0x1cb265(0x1f7)]))[_0x1cb265(0x270)](_0x224fe7=>{var _0x21720c=_0x1cb265;const _0x55e58e=_0x224fe7['getUnitId'](),_0x4b0463=this[_0x21720c(0x281)]['get'](_0x55e58e);_0x4b0463==null||_0x4b0463[_0x21720c(0x226)]();});}async[_0x577bce(0x24e)](_0x3b114f){var _0x42282c=_0x577bce;const _0x4e55c8=await this['_collabSessionService']['requireSession'](_0x3b114f),_0x549204=this[_0x42282c(0x21f)]['createInstance'](exports[_0x42282c(0x1f5)],_0x3b114f,_0x4e55c8);return _0x549204['init'](),this['_entities'][_0x42282c(0x257)](_0x3b114f,_0x549204),_0x549204;}},exports[_0x577bce(0x1de)]=R([S(0x0,o[_0x577bce(0x2ab)]),S(0x1,o['Inject'](o[_0x577bce(0x240)])),S(0x2,o[_0x577bce(0x236)](m[_0x577bce(0x221)]))],exports[_0x577bce(0x1de)]);var h=(_0x3842be=>(_0x3842be[_0x577bce(0x209)]=_0x577bce(0x232),_0x3842be[_0x577bce(0x20d)]=_0x577bce(0x28b),_0x3842be[_0x577bce(0x2a1)]=_0x577bce(0x27b),_0x3842be['NOT_FOLLOWING']='not-following',_0x3842be['PRESENTING']=_0x577bce(0x241),_0x3842be))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x577bce(0x1f5)]=class extends o[_0x577bce(0x1ea)]{constructor(_0x4c8df6,_0x5dc6e1,_0x516759,_0x473ea8,_0x9d0ec4){var _0x58bada=_0x577bce;super(),v(this,_0x58bada(0x248),new x[(_0x58bada(0x26e))](_0x58bada(0x28b))),v(this,_0x58bada(0x2b4),this['_status$']['asObservable']()),v(this,_0x58bada(0x28e),!0x1),v(this,_0x58bada(0x2a2),null),v(this,'_presenter',null),(this['_unitID']=_0x4c8df6,this['_collabSession']=_0x5dc6e1,this['_configService']=_0x516759,this[_0x58bada(0x237)]=_0x473ea8,this[_0x58bada(0x2a5)]=_0x9d0ec4);}get[_0x577bce(0x20b)](){var _0xf88061=_0x577bce;return this[_0xf88061(0x248)][_0xf88061(0x29c)]();}[_0x577bce(0x226)](){var _0x213fec=_0x577bce,_0x515543;(_0x515543=this[_0x213fec(0x2a2)])==null||_0x515543[_0x213fec(0x226)](),this[_0x213fec(0x248)][_0x213fec(0x2b0)]('idle'),this['_status$'][_0x213fec(0x25e)]();}[_0x577bce(0x2b7)](){var _0x433522=_0x577bce;this['_init']||(this['_init']=!0x0,this[_0x433522(0x28a)][_0x433522(0x2b5)][_0x433522(0x219)](b[_0x433522(0x1ee)](this['dispose$']))[_0x433522(0x270)](_0x519ef9=>{var _0x36473a=_0x433522;switch(_0x519ef9){case m['SessionStatus'][_0x36473a(0x209)]:this[_0x36473a(0x1e4)]();break;case m[_0x36473a(0x1fb)][_0x36473a(0x2b6)]:this[_0x36473a(0x294)]();break;}}),this['_collabSession'][_0x433522(0x218)][_0x433522(0x219)](b[_0x433522(0x1ee)](this['dispose$']))[_0x433522(0x270)](_0x54ec97=>{var _0x3f42ea=_0x433522;const {eventID:_0x4b04be}=_0x54ec97;switch(_0x4b04be){case _[_0x3f42ea(0x254)][_0x3f42ea(0x2a0)]:this[_0x3f42ea(0x243)](_0x54ec97);break;case _[_0x3f42ea(0x254)][_0x3f42ea(0x293)]:this[_0x3f42ea(0x20e)](_0x54ec97);break;case _[_0x3f42ea(0x254)][_0x3f42ea(0x2a7)]:this['_handleTerminate']();break;case _[_0x3f42ea(0x254)][_0x3f42ea(0x231)]:this[_0x3f42ea(0x278)](_0x54ec97);break;}}));}[_0x577bce(0x242)](){var _0x34a645=_0x577bce;this[_0x34a645(0x28a)][_0x34a645(0x282)]({'eventID':_[_0x34a645(0x254)][_0x34a645(0x215)],'data':{'unitID':this[_0x34a645(0x299)],'userID':this[_0x34a645(0x28a)][_0x34a645(0x201)]()}},this[_0x34a645(0x299)]);}['stopPresenting'](){var _0x38dca1=_0x577bce;this[_0x38dca1(0x20b)]==='presenting'&&(this[_0x38dca1(0x248)]['next']('idle'),this[_0x38dca1(0x28a)][_0x38dca1(0x282)]({'eventID':_[_0x38dca1(0x254)][_0x38dca1(0x2a7)],'data':{'unitID':this[_0x38dca1(0x299)]}},this['_unitID']));}[_0x577bce(0x295)](){var _0x3594ff=_0x577bce;this['_status']===_0x3594ff(0x21a)&&(this[_0x3594ff(0x248)][_0x3594ff(0x2b0)]('following'),this['_startFollowing']());}['stopFollowing'](){var _0x291c13=_0x577bce;this[_0x291c13(0x20b)]==='following'&&this[_0x291c13(0x27a)]();}[_0x577bce(0x243)](_0x2c7182){var _0x518cde=_0x577bce;const {presenter:_0x2d1262}=_0x2c7182['data'],_0x2ee3c5=this[_0x518cde(0x28a)][_0x518cde(0x201)]();this[_0x518cde(0x1e6)]=_0x2d1262,_0x2d1262===_0x2ee3c5?(this[_0x518cde(0x27a)](),this['_startPresenting']()):this[_0x518cde(0x20b)]!==_0x518cde(0x21a)&&(this[_0x518cde(0x23b)](),this[_0x518cde(0x1d8)]());}[_0x577bce(0x253)](){var _0x15beea=_0x577bce;const _0x4d5a76={'eventID':_[_0x15beea(0x254)][_0x15beea(0x296)]};this[_0x15beea(0x28a)][_0x15beea(0x282)](_0x4d5a76,this[_0x15beea(0x299)]);}['_handleTerminate'](){var _0xe0d27c=_0x577bce;this[_0xe0d27c(0x1e6)]=null,this[_0xe0d27c(0x20b)]!==_0xe0d27c(0x241)&&this[_0xe0d27c(0x24d)]();}[_0x577bce(0x278)](_0x2eb435){var _0x5af4f5=_0x577bce;if(this['_status']===_0x5af4f5(0x27b)&&this[_0x5af4f5(0x1e6)]===_0x2eb435[_0x5af4f5(0x23d)]['memberID']){const _0x21f31f=_[_0x5af4f5(0x239)](_0x2eb435['data'])['mutations']['reverse']()[_0x5af4f5(0x22a)](_0x29d43e=>_0x29d43e['id']===C[_0x5af4f5(0x245)]['id']);if(_0x21f31f){const _0x4cedc3=_0x21f31f[_0x5af4f5(0x1fd)][_0x5af4f5(0x25a)],_0x195651=_0x21f31f['params'][_0x5af4f5(0x27c)]['id'];setTimeout(()=>{var _0x26e3bf=_0x5af4f5;this[_0x26e3bf(0x2a5)][_0x26e3bf(0x1d9)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x4cedc3,'subUnitId':_0x195651},{'fromCollab':!0x0});});}}}[_0x577bce(0x2a4)](){var _0x173da4=_0x577bce;this['_status$'][_0x173da4(0x2b0)](_0x173da4(0x241));const _0x24f0d0=new Map(),_0x324e5b=this[_0x173da4(0x2a2)]=new o[(_0x173da4(0x216))]();_0x324e5b[_0x173da4(0x1f4)](o[_0x173da4(0x249)](()=>{var _0x28f2ba=_0x173da4;_0x24f0d0[_0x28f2ba(0x267)](_0x1857a0=>_0x1857a0[_0x28f2ba(0x25e)]()),_0x24f0d0[_0x28f2ba(0x1e3)]();})),_0x324e5b[_0x173da4(0x1f4)](this[_0x173da4(0x2a5)][_0x173da4(0x260)](_0x294ff9=>{var _0x59d178=_0x173da4,_0x3b00f5;if(_0x294ff9[_0x59d178(0x1d7)]!==o[_0x59d178(0x202)][_0x59d178(0x287)]||!this['_liveShareService'][_0x59d178(0x206)](_0x294ff9['id']))return;const {id:_0x1cacab}=_0x294ff9;let _0x4f667f;_0x24f0d0[_0x59d178(0x2ac)](_0x1cacab)?_0x4f667f=_0x24f0d0[_0x59d178(0x220)](_0x1cacab):(_0x4f667f=new x[(_0x59d178(0x25c))](),_0x24f0d0[_0x59d178(0x257)](_0x1cacab,_0x4f667f),_0x4f667f[_0x59d178(0x219)](b[_0x59d178(0x1dd)]((_0x3b00f5=this[_0x59d178(0x235)][_0x59d178(0x1ed)](Z))!=null?_0x3b00f5:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2d483d=>{var _0x45c18a=_0x59d178;this[_0x45c18a(0x28a)][_0x45c18a(0x282)]({'eventID':_[_0x45c18a(0x254)][_0x45c18a(0x293)],'data':{'unitID':this[_0x45c18a(0x299)],'operations':{[_0x2d483d['id']]:{'id':_0x2d483d['id'],'params':JSON[_0x45c18a(0x207)](_0x2d483d[_0x45c18a(0x1fd)])}}}},this[_0x45c18a(0x299)]);})),_0x4f667f[_0x59d178(0x2b0)](_0x294ff9);})),this[_0x173da4(0x237)][_0x173da4(0x252)](this[_0x173da4(0x299)])[_0x173da4(0x267)](_0x105af3=>this[_0x173da4(0x28a)][_0x173da4(0x282)]({'eventID':_[_0x173da4(0x254)][_0x173da4(0x293)],'data':{'unitID':this[_0x173da4(0x299)],'operations':{[_0x105af3['id']]:{'id':_0x105af3['id'],'params':JSON[_0x173da4(0x207)](_0x105af3[_0x173da4(0x1fd)])}}}},this[_0x173da4(0x299)]));}[_0x577bce(0x23b)](){var _0x14f293=_0x577bce,_0x230956;this[_0x14f293(0x248)][_0x14f293(0x2b0)]('idle'),(_0x230956=this['_commandDisposable'])==null||_0x230956[_0x14f293(0x226)](),this[_0x14f293(0x2a2)]=null;}[_0x577bce(0x1d8)](){var _0x5efbc7=_0x577bce,_0x14db7b;(_0x14db7b=this[_0x5efbc7(0x2a2)])==null||_0x14db7b[_0x5efbc7(0x226)](),this[_0x5efbc7(0x248)]['next'](_0x5efbc7(0x27b));}['_beIdle'](){var _0xaa08a0=_0x577bce,_0x499aeb;this[_0xaa08a0(0x248)]['next'](_0xaa08a0(0x28b)),(_0x499aeb=this['_commandDisposable'])==null||_0x499aeb['dispose'](),this[_0xaa08a0(0x2a2)]=null;}[_0x577bce(0x27a)](){var _0x3e4d92=_0x577bce,_0x3b3b0b;this[_0x3e4d92(0x248)][_0x3e4d92(0x2b0)](_0x3e4d92(0x21a)),(_0x3b3b0b=this[_0x3e4d92(0x2a2)])==null||_0x3b3b0b[_0x3e4d92(0x226)]();}[_0x577bce(0x20e)](_0x22e533){var _0x4a4bbe=_0x577bce;if([_0x4a4bbe(0x241),_0x4a4bbe(0x21a),_0x4a4bbe(0x232)][_0x4a4bbe(0x205)](this[_0x4a4bbe(0x20b)])||!_0x22e533['data']['presenter']||_0x22e533[_0x4a4bbe(0x23d)][_0x4a4bbe(0x1f9)]===this[_0x4a4bbe(0x28a)]['getMemberID']())return;this['_status']===_0x4a4bbe(0x28b)&&this[_0x4a4bbe(0x1d8)]();const _0x4c0387=_0x22e533[_0x4a4bbe(0x23d)][_0x4a4bbe(0x213)];Object[_0x4a4bbe(0x23a)](_0x4c0387)['forEach'](_0x5e1ceb=>{var _0x17e142=_0x4a4bbe;this[_0x17e142(0x2a5)]['executeCommand'](_0x5e1ceb['id'],_0x5e1ceb[_0x17e142(0x1fd)]?JSON[_0x17e142(0x214)](_0x5e1ceb['params']):null,{'fromCollab':!0x0});});}[_0x577bce(0x1e4)](){var _0x22c98f=_0x577bce,_0x266a13;this[_0x22c98f(0x248)]['next'](_0x22c98f(0x232)),(_0x266a13=this[_0x22c98f(0x2a2)])==null||_0x266a13[_0x22c98f(0x226)]();}[_0x577bce(0x294)](){var _0x2ae22f=_0x577bce;this[_0x2ae22f(0x248)]['next'](_0x2ae22f(0x28b)),this[_0x2ae22f(0x253)]();}},exports[_0x577bce(0x1f5)]=R([S(0x2,o[_0x577bce(0x1f1)]),S(0x3,o[_0x577bce(0x236)](E)),S(0x4,o[_0x577bce(0x2af)])],exports[_0x577bce(0x1f5)]);function A(){var _0x36db84=_0x577bce;const _0x3bfcf3=p[_0x36db84(0x22c)](exports[_0x36db84(0x1de)]),_0x5bd4a3=p['useDependency'](o['IUniverInstanceService']),_0xdf70c1=p['useObservable'](()=>_0x5bd4a3[_0x36db84(0x263)](o[_0x36db84(0x21e)][_0x36db84(0x29b)]),void 0x0,!0x1,[]),[_0x262def,_0x5ca774]=f['useState'](null),[_0x5c34f2,_0x28e20a]=f[_0x36db84(0x204)](h['IDLE']),_0x448019=f['useRef'](null);return f['useEffect'](()=>(_0xdf70c1&&_0x3bfcf3['getLiveShareCoordinator'](_0xdf70c1[_0x36db84(0x1e1)]())['then'](_0x2acaaa=>{var _0x17a8ea=_0x36db84;_0x5ca774(_0x2acaaa),_0x448019[_0x17a8ea(0x277)]=_0x2acaaa['status$']['subscribe'](_0x5512d5=>{_0x28e20a(_0x5512d5);});}),()=>{var _0xf68cae=_0x36db84,_0x5d6abc;(_0x5d6abc=_0x448019[_0xf68cae(0x277)])==null||_0x5d6abc[_0xf68cae(0x246)](),_0x448019[_0xf68cae(0x277)]=null;}),[_0xdf70c1,_0x3bfcf3]),_0x262def?l['jsx'](g[_0x36db84(0x276)],{'align':'end','disabled':_0x5c34f2===h['OFFLINE'],'className':_0x36db84(0x2a9),'overlay':l[_0x36db84(0x222)](K,{'status':_0x5c34f2,'coordinator':_0x262def}),'children':l['jsx']('button',{'className':g[_0x36db84(0x1e9)](_0x36db84(0x200),{'univer-cursor-not-allowed':_0x5c34f2===h[_0x36db84(0x209)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5c34f2!==h[_0x36db84(0x209)]}),'type':_0x36db84(0x266),'children':l['jsx'](P,{'className':_0x36db84(0x211)})})}):null;}function K(_0x17ee7f){var _0x458108=_0x577bce;const {status:_0x154333,coordinator:_0x42557b}=_0x17ee7f;switch(_0x154333){case h[_0x458108(0x20d)]:return l[_0x458108(0x222)](z,{'coordinator':_0x42557b});case h['FOLLOWING']:return l[_0x458108(0x222)](Q,{'coordinator':_0x42557b});case h['NOT_FOLLOWING']:return l[_0x458108(0x222)](X,{'coordinator':_0x42557b});case h[_0x458108(0x209)]:return l[_0x458108(0x222)](te,{});case h[_0x458108(0x1eb)]:return l['jsx'](ee,{'coordinator':_0x42557b});default:return null;}}function z(_0xf53260){var _0x53fe1d=_0x577bce;const {coordinator:_0x172836}=_0xf53260;return l[_0x53fe1d(0x238)](l[_0x53fe1d(0x1f8)],{'children':[l[_0x53fe1d(0x222)](_0x53fe1d(0x29d),{'className':_0x53fe1d(0x262),'children':_0x53fe1d(0x208)}),l[_0x53fe1d(0x222)](g['Button'],{'onClick':()=>_0x172836[_0x53fe1d(0x242)](),'children':'Start'})]});}function Q(_0x484992){var _0x113280=_0x577bce;const {coordinator:_0x3614ba}=_0x484992;return l[_0x113280(0x238)](l[_0x113280(0x1f8)],{'children':[l[_0x113280(0x222)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x113280(0x2a3)}),l[_0x113280(0x222)](g[_0x113280(0x21b)],{'onClick':()=>_0x3614ba[_0x113280(0x20c)](),'children':'Stop\x20following'})]});}function X(_0x26775c){var _0x6b70a7=_0x577bce;const {coordinator:_0x370bff}=_0x26775c;return l[_0x6b70a7(0x238)](l[_0x6b70a7(0x1f8)],{'children':[l[_0x6b70a7(0x222)]('div',{'className':_0x6b70a7(0x262),'children':_0x6b70a7(0x2b2)}),l[_0x6b70a7(0x222)](g[_0x6b70a7(0x21b)],{'variant':_0x6b70a7(0x289),'onClick':()=>_0x370bff[_0x6b70a7(0x295)](),'children':_0x6b70a7(0x2a6)})]});}function ee(_0x19b6e9){var _0x458f66=_0x577bce;const {coordinator:_0xc908e}=_0x19b6e9;return l[_0x458f66(0x238)](l[_0x458f66(0x1f8)],{'children':[l[_0x458f66(0x222)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x458f66(0x271)}),l[_0x458f66(0x222)](g[_0x458f66(0x21b)],{'variant':'default','onClick':()=>_0xc908e[_0x458f66(0x1e2)](),'children':'Stop\x20presenting'})]});}function te(){var _0x7e7546=_0x577bce;return l[_0x7e7546(0x222)](l[_0x7e7546(0x1f8)],{'children':_0x7e7546(0x22f)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x48428b,_0x50b3bf,_0x3581b1,_0x49689f)=>{var _0x27dc9c=_0x577bce;for(var _0x51d825=_0x49689f>0x1?void 0x0:_0x49689f?ie(_0x50b3bf,_0x3581b1):_0x50b3bf,_0x2ef7d1=_0x48428b[_0x27dc9c(0x21c)]-0x1,_0x2060be;_0x2ef7d1>=0x0;_0x2ef7d1--)(_0x2060be=_0x48428b[_0x2ef7d1])&&(_0x51d825=_0x2060be(_0x51d825)||_0x51d825);return _0x51d825;},N=(_0x4ca091,_0x698f3e)=>(_0x4d86a6,_0x500aa3)=>_0x698f3e(_0x4d86a6,_0x500aa3,_0x4ca091);exports[_0x577bce(0x283)]=class extends o[_0x577bce(0x229)]{constructor(_0x5ec964,_0x12fc34){var _0x142d89=_0x577bce;super(),this[_0x142d89(0x21f)]=_0x5ec964,this['_uiPartsService']=_0x12fc34,this[_0x142d89(0x2b3)]();}[_0x577bce(0x2b3)](){var _0x26966c=_0x577bce;this['disposeWithMe'](this[_0x26966c(0x265)][_0x26966c(0x285)](p['BuiltInUIPart']['HEADER_MENU'],()=>p['connectInjector'](A,this['_injector'])));}},exports['DesktopLiveShareController']=ne([N(0x0,o[_0x577bce(0x236)](o[_0x577bce(0x240)])),N(0x1,p[_0x577bce(0x27d)])],exports[_0x577bce(0x283)]);var re=Object[_0x577bce(0x29f)],se=Object[_0x577bce(0x28f)],oe=(_0x4c40ad,_0x1b9acc,_0x4b0f45)=>_0x1b9acc in _0x4c40ad?re(_0x4c40ad,_0x1b9acc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b0f45}):_0x4c40ad[_0x1b9acc]=_0x4b0f45,ae=(_0x4b795c,_0xb3edb1,_0x523893,_0x4e8c)=>{var _0x454fc9=_0x577bce;for(var _0x2d55f5=_0x4e8c>0x1?void 0x0:_0x4e8c?se(_0xb3edb1,_0x523893):_0xb3edb1,_0x59b3b0=_0x4b795c[_0x454fc9(0x21c)]-0x1,_0x4860d2;_0x59b3b0>=0x0;_0x59b3b0--)(_0x4860d2=_0x4b795c[_0x59b3b0])&&(_0x2d55f5=_0x4860d2(_0x2d55f5)||_0x2d55f5);return _0x2d55f5;},w=(_0x3f4dd5,_0x32ab6b)=>(_0x5c4ee2,_0x2546bc)=>_0x32ab6b(_0x5c4ee2,_0x2546bc,_0x3f4dd5),T=(_0x43d395,_0x125084,_0x256768)=>oe(_0x43d395,typeof _0x125084!=_0x577bce(0x223)?_0x125084+'':_0x125084,_0x256768);const le=_0x577bce(0x225);exports[_0x577bce(0x269)]=class extends o['Plugin']{constructor(_0x2d8723=L,_0x56e9ac,_0x5c3f95){var _0x596476=_0x577bce;super(),this['_config']=_0x2d8723,this[_0x596476(0x21f)]=_0x56e9ac,this[_0x596476(0x235)]=_0x5c3f95;const {..._0x142baa}=o['merge']({},L,this['_config']);this[_0x596476(0x235)][_0x596476(0x203)]($,_0x142baa);}[_0x577bce(0x286)](){var _0x47cc01=_0x577bce;o[_0x47cc01(0x230)](this[_0x47cc01(0x21f)],o[_0x47cc01(0x25f)]([[E],[exports[_0x47cc01(0x1de)]],[O],[exports[_0x47cc01(0x283)]]],this[_0x47cc01(0x1dc)][_0x47cc01(0x291)])),o[_0x47cc01(0x20f)](this[_0x47cc01(0x21f)],[[O]]);}[_0x577bce(0x20a)](){var _0x3d8d64=_0x577bce;o[_0x3d8d64(0x20f)](this[_0x3d8d64(0x21f)],[[exports[_0x3d8d64(0x283)]]]);}},T(exports[_0x577bce(0x269)],_0x577bce(0x1d7),o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x577bce(0x269)],_0x577bce(0x1df),le),exports['UniverLiveSharePlugin']=ae([o[_0x577bce(0x23c)](m[_0x577bce(0x23f)]),w(0x1,o['Inject'](o[_0x577bce(0x240)])),w(0x2,o[_0x577bce(0x1f1)])],exports['UniverLiveSharePlugin']),exports[_0x577bce(0x24b)]=A,exports[_0x577bce(0x29e)]=E,exports[_0x577bce(0x212)]=h;
1
+ 'use strict';function _0x1cf8(_0x70c5ae,_0x259a74){var _0x1d59f4=_0x1d59();return _0x1cf8=function(_0x1cf83b,_0xb24ab7){_0x1cf83b=_0x1cf83b-0x1f1;var _0x1ef064=_0x1d59f4[_0x1cf83b];return _0x1ef064;},_0x1cf8(_0x70c5ae,_0x259a74);}var _0x31d5c1=_0x1cf8;(function(_0x3527f8,_0x237ea9){var _0x1d316f=_0x1cf8,_0x613e84=_0x3527f8();while(!![]){try{var _0x449fcc=-parseInt(_0x1d316f(0x21f))/0x1+-parseInt(_0x1d316f(0x24f))/0x2+parseInt(_0x1d316f(0x227))/0x3*(-parseInt(_0x1d316f(0x1f4))/0x4)+parseInt(_0x1d316f(0x210))/0x5+-parseInt(_0x1d316f(0x24d))/0x6*(parseInt(_0x1d316f(0x268))/0x7)+parseInt(_0x1d316f(0x2d4))/0x8+parseInt(_0x1d316f(0x206))/0x9;if(_0x449fcc===_0x237ea9)break;else _0x613e84['push'](_0x613e84['shift']());}catch(_0x1ddc36){_0x613e84['push'](_0x613e84['shift']());}}}(_0x1d59,0xc8876));var U=Object[_0x31d5c1(0x2a6)],F=(_0x4583df,_0x3c5147,_0x57dcb5)=>_0x3c5147 in _0x4583df?U(_0x4583df,_0x3c5147,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57dcb5}):_0x4583df[_0x3c5147]=_0x57dcb5,v=(_0x3a0cea,_0x31307e,_0x525001)=>F(_0x3a0cea,typeof _0x31307e!='symbol'?_0x31307e+'':_0x31307e,_0x525001);Object[_0x31d5c1(0x2a6)](exports,Symbol[_0x31d5c1(0x219)],{'value':_0x31d5c1(0x286)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require(_0x31d5c1(0x2a3)),D=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require(_0x31d5c1(0x244)),g=require('@univerjs/design'),f=require(_0x31d5c1(0x269)),_=require('@univerjs-pro/collaboration'),x=require(_0x31d5c1(0x1fc)),b=require(_0x31d5c1(0x217)),$=_0x31d5c1(0x284),L={};class E extends o['Disposable']{constructor(){var _0x2f14b7=_0x31d5c1;super(...arguments),v(this,_0x2f14b7(0x21c),new Set()),v(this,_0x2f14b7(0x28b),new Set());}['registerSharedOperation'](_0x2e40d5){var _0xd5b5bb=_0x31d5c1;return this[_0xd5b5bb(0x21c)]['add'](_0x2e40d5),o[_0xd5b5bb(0x262)](()=>this['_sharedOperations']['delete'](_0x2e40d5));}[_0x31d5c1(0x28d)](_0x4f61dd){var _0x51143b=_0x31d5c1;return this[_0x51143b(0x28b)][_0x51143b(0x223)](_0x4f61dd),o['toDisposable'](()=>this[_0x51143b(0x28b)]['delete'](_0x4f61dd));}[_0x31d5c1(0x20e)](_0x276d6c){var _0x58b705=_0x31d5c1;return this['_sharedOperations'][_0x58b705(0x238)](_0x276d6c);}[_0x31d5c1(0x2aa)](_0x28d9b4){var _0x58bd5f=_0x31d5c1;return Array[_0x58bd5f(0x2a2)](this[_0x58bd5f(0x28b)])['map'](_0x47036b=>_0x47036b(_0x28d9b4));}}var H=Object[_0x31d5c1(0x239)],V=(_0x5dbb64,_0x583fa4,_0x3fb549,_0xd47199)=>{var _0x5eb309=_0x31d5c1;for(var _0x4643c0=_0xd47199>0x1?void 0x0:_0xd47199?H(_0x583fa4,_0x3fb549):_0x583fa4,_0x49a1f9=_0x5dbb64[_0x5eb309(0x24b)]-0x1,_0x2e7204;_0x49a1f9>=0x0;_0x49a1f9--)(_0x2e7204=_0x5dbb64[_0x49a1f9])&&(_0x4643c0=_0x2e7204(_0x4643c0)||_0x4643c0);return _0x4643c0;},k=(_0x315d5f,_0x5da76b)=>(_0x192e5d,_0x2b5d5a)=>_0x5da76b(_0x192e5d,_0x2b5d5a,_0x315d5f);function _0x1d59(){var _0x5f41e3=['assign','_beIdle','trim','xlink:href','0\x200\x2016\x2016','rxjs/operators','CollaborationEvent','toStringTag','colorChannel1','registerComponent','_sharedOperations','prototype','Fragment','559327dkLUvs','LiveShareController','button','createElement','add','IDLE','sheet','_init','93AMoWUv','startFollowing','getValue','following','_config','dispose$','HEADER_MENU','pluginName','pipe','values','LIVESHARE_TERMINATE','_entities','SessionStatus','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','createInstance','You\x27re\x20not\x20following\x20the\x20presenter','UniverInstanceType','has','getOwnPropertyDescriptor','mask','presenter','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','jsx','Plugin','mergeOverrideWithDependencies','PRESENTING','data','_unitID','LIVESHARE_OPERATION','react/jsx-runtime','_handleTerminate','end','sessionStatus$','FOLLOWING','getOwnPropertySymbols','random','length','fill','28644spyrLG','UNIVER_SHEET','1111022IOLuQm','registerDependencies','event$','unsubscribe','forwardRef','function','Stop\x20presenting','Disposable','UniverIcon','_handleOperation','LiveShareStatus','useObservable','tryStartPresenting','use','concat','SAME_OPERATION_SHARE_INTERVAL','LiveShareSingle','url(#$1','executeCommand','toDisposable','onStarting','connectInjector','defs','stringify','DesktopLiveShareController','371TcmkUX','react','UniverCollaborationClientPlugin','1em','_collabSessionService','setConfig','_status$','Present\x20this\x20document','memberID','getTypeOfUnitAdded$','mutations','_handleOffline','Subject','SetWorksheetActiveOperation','stopPresenting','replace','_stopFollowing','_univerInstanceService','jsxs','current','_handleNewChangeSets','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','displayName','symbol','text','div','clear','getConfig','live-share.config','_handleOnline','Module','getLiveShareCoordinator','_handleNewHost','useState','_startLiveShareCoordinator','_reporters','get','registerInitialStateReporter','unitId','hasOwnProperty','not-following','RxDisposable','univer-size-4','_commandDisposable','apply','_stopPresenting','init','dispose','LiveShareService','stopFollowing','evenodd','IConfigService','default','getCurrentTypeOfUnit$','live-share-single','none','forEach','svg','from','@univerjs/sheets','_uiPartsService','indexOf','defineProperty','path','_commandService','IUniverInstanceService','getInitialStates','parseProtocolChangeset','LiveShareCoordinator','Injector','NOT_FOLLOWING','throttleTime','offline','find','merge','className','LIVESHARE_NEW_HOST','params','extend','CommandType','complete','OPERATION','call','touchDependencies','getUnitId','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','defIds','useEffect','icon','OFFLINE','BuiltInUIPart','_status','ICommandService','Button','entries','useRef','idSuffix','getMemberID','registerSharedOperation','idle','_fetchOperations','BehaviorSubject','useDependency','tag','disposeWithMe','Dropdown','map','InsertSheetMutation','7707224PtOHfp','DisposableCollection','NEW_CHANGESETS','You\x27re\x20following\x20the\x20presenter','set','requireSession','_injector','type','_collabSession','univer-w-full\x20univer-mb-3\x20univer-text-sm','5452RDdELe','_presenter','Stop\x20following','reverse','_liveShareService','onRendered','includes','You\x27re\x20presenting\x20the\x20document','rxjs','children','_startFollowing','string','attrs','subscribe','presenting','getTypeOfUnitDisposed$','DependentOn','next','8128773auAJcg','You\x27are\x20offline.','UniverLiveSharePlugin','send','_startPresenting','currentColor','then','Inject','shouldShareOperation','takeUntil','1824395YHOEGz','_configService'];_0x1d59=function(){return _0x5f41e3;};return _0x1d59();}let O=class extends o[_0x31d5c1(0x256)]{constructor(_0x590528){var _0x329447=_0x31d5c1;super(),this[_0x329447(0x1f8)]=_0x590528,this[_0x329447(0x226)]();}[_0x31d5c1(0x226)](){var _0x4bf2bd=_0x31d5c1;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x4bf2bd(0x275)]['id']]['forEach'](_0x1a15e9=>{var _0x4135e9=_0x4bf2bd;this[_0x4135e9(0x2d0)](this[_0x4135e9(0x1f8)][_0x4135e9(0x2ca)](_0x1a15e9));});}};O=V([k(0x0,o[_0x31d5c1(0x20d)](E))],O);var u=function(){var _0x4d141=_0x31d5c1;return u=Object[_0x4d141(0x212)]||function(_0x2fe168){var _0x2d7384=_0x4d141;for(var _0x1576c0,_0x869ce8=0x1,_0x2db1fb=arguments['length'];_0x869ce8<_0x2db1fb;_0x869ce8++){_0x1576c0=arguments[_0x869ce8];for(var _0x338499 in _0x1576c0)Object[_0x2d7384(0x21d)][_0x2d7384(0x28f)][_0x2d7384(0x2ba)](_0x1576c0,_0x338499)&&(_0x2fe168[_0x338499]=_0x1576c0[_0x338499]);}return _0x2fe168;},u[_0x4d141(0x294)](this,arguments);},M=function(_0x34c9ef,_0xcb452f){var _0x38a0f0=_0x31d5c1,_0x3a9c06={};for(var _0x503c5a in _0x34c9ef)Object[_0x38a0f0(0x21d)][_0x38a0f0(0x28f)]['call'](_0x34c9ef,_0x503c5a)&&_0xcb452f[_0x38a0f0(0x2a5)](_0x503c5a)<0x0&&(_0x3a9c06[_0x503c5a]=_0x34c9ef[_0x503c5a]);if(_0x34c9ef!=null&&typeof Object[_0x38a0f0(0x249)]==_0x38a0f0(0x254)){for(var _0x7a8fff=0x0,_0x503c5a=Object[_0x38a0f0(0x249)](_0x34c9ef);_0x7a8fff<_0x503c5a[_0x38a0f0(0x24b)];_0x7a8fff++)_0xcb452f[_0x38a0f0(0x2a5)](_0x503c5a[_0x7a8fff])<0x0&&Object[_0x38a0f0(0x21d)]['propertyIsEnumerable'][_0x38a0f0(0x2ba)](_0x34c9ef,_0x503c5a[_0x7a8fff])&&(_0x3a9c06[_0x503c5a[_0x7a8fff]]=_0x34c9ef[_0x503c5a[_0x7a8fff]]);}return _0x3a9c06;},j=f[_0x31d5c1(0x253)](function(_0x1e440c,_0x4c6b8d){var _0x560803=_0x31d5c1,_0x212e8e=_0x1e440c[_0x560803(0x2c0)],_0x45c16a=_0x1e440c['id'],_0x265fda=_0x1e440c[_0x560803(0x2b3)],_0x109c40=_0x1e440c[_0x560803(0x2b6)],_0x113d71=M(_0x1e440c,[_0x560803(0x2c0),'id','className',_0x560803(0x2b6)]),_0x2af50a='univerjs-icon\x20univerjs-icon-'[_0x560803(0x25d)](_0x45c16a,'\x20')['concat'](_0x265fda||'')[_0x560803(0x214)](),_0xe89384=f[_0x560803(0x2c7)]('_'[_0x560803(0x25d)](G()));return y(_0x212e8e,''[_0x560803(0x25d)](_0x45c16a),{'defIds':_0x212e8e[_0x560803(0x2be)],'idSuffix':_0xe89384[_0x560803(0x27b)]},u({'ref':_0x4c6b8d,'className':_0x2af50a},_0x113d71),_0x109c40);});function y(_0x49cbfe,_0x41706c,_0x40370b,_0x478bf7,_0x361820){var _0x31e492=_0x31d5c1;return f['createElement'](_0x49cbfe[_0x31e492(0x2cf)],u(u({'key':_0x41706c},q(_0x49cbfe,_0x40370b,_0x361820)),_0x478bf7),(W(_0x49cbfe,_0x40370b)['children']||[])[_0x31e492(0x2d2)](function(_0x229c12,_0x2fb5ca){var _0x6b0fdd=_0x31e492;return y(_0x229c12,''[_0x6b0fdd(0x25d)](_0x41706c,'-')[_0x6b0fdd(0x25d)](_0x49cbfe[_0x6b0fdd(0x2cf)],'-')[_0x6b0fdd(0x25d)](_0x2fb5ca),_0x40370b,void 0x0,_0x361820);}));}function q(_0x1865c5,_0x321f47,_0x29c99f){var _0xd56708=_0x31d5c1,_0xf0bb98=u({},_0x1865c5[_0xd56708(0x200)]);_0x29c99f!=null&&_0x29c99f[_0xd56708(0x21a)]&&_0xf0bb98[_0xd56708(0x24c)]===_0xd56708(0x21a)&&(_0xf0bb98[_0xd56708(0x24c)]=_0x29c99f[_0xd56708(0x21a)]),_0x1865c5[_0xd56708(0x2cf)]===_0xd56708(0x23a)&&_0xf0bb98['id']&&(_0xf0bb98['id']=_0xf0bb98['id']+_0x321f47[_0xd56708(0x2c8)]),Object[_0xd56708(0x2c6)](_0xf0bb98)['forEach'](function(_0x4d8dc8){var _0x5b6e2e=_0xd56708,_0x581746=_0x4d8dc8[0x0],_0x38303d=_0x4d8dc8[0x1];_0x581746===_0x5b6e2e(0x23a)&&typeof _0x38303d==_0x5b6e2e(0x1ff)&&(_0xf0bb98[_0x581746]=_0x38303d[_0x5b6e2e(0x277)](/url\(#(.*)\)/,_0x5b6e2e(0x260)[_0x5b6e2e(0x25d)](_0x321f47['idSuffix'],')')));});var _0x3c32f0=_0x321f47[_0xd56708(0x2be)];return!_0x3c32f0||_0x3c32f0[_0xd56708(0x24b)]===0x0||(_0x1865c5[_0xd56708(0x2cf)]===_0xd56708(0x25c)&&_0xf0bb98[_0xd56708(0x215)]&&(_0xf0bb98[_0xd56708(0x215)]=_0xf0bb98[_0xd56708(0x215)]+_0x321f47[_0xd56708(0x2c8)]),Object[_0xd56708(0x2c6)](_0xf0bb98)[_0xd56708(0x2a0)](function(_0xfce57d){var _0x343a59=_0xd56708,_0x506de4=_0xfce57d[0x0],_0x1a8466=_0xfce57d[0x1];typeof _0x1a8466==_0x343a59(0x1ff)&&(_0xf0bb98[_0x506de4]=_0x1a8466[_0x343a59(0x277)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x321f47[_0x343a59(0x2c8)],')')));})),_0xf0bb98;}function W(_0xfdcaad,_0x8fb305){var _0x35dcb2=_0x31d5c1,_0x57e225,_0x290096=_0x8fb305['defIds'];return!_0x290096||_0x290096[_0x35dcb2(0x24b)]===0x0?_0xfdcaad:_0xfdcaad[_0x35dcb2(0x2cf)]===_0x35dcb2(0x265)&&(!((_0x57e225=_0xfdcaad[_0x35dcb2(0x1fd)])===null||_0x57e225===void 0x0)&&_0x57e225[_0x35dcb2(0x24b)])?u(u({},_0xfdcaad),{'children':_0xfdcaad[_0x35dcb2(0x1fd)][_0x35dcb2(0x2d2)](function(_0x38c557){var _0x23ad8f=_0x35dcb2;return typeof _0x38c557[_0x23ad8f(0x200)]['id']==_0x23ad8f(0x1ff)&&_0x290096&&_0x290096[_0x23ad8f(0x2a5)](_0x38c557[_0x23ad8f(0x200)]['id'])>-0x1?u(u({},_0x38c557),{'attrs':u(u({},_0x38c557[_0x23ad8f(0x200)]),{'id':_0x38c557[_0x23ad8f(0x200)]['id']+_0x8fb305[_0x23ad8f(0x2c8)]})}):_0x38c557;})}):_0xfdcaad;}function G(){var _0x1c77a3=_0x31d5c1;return Math[_0x1c77a3(0x24a)]()['toString'](0x24)['substring'](0x2,0x8);}j[_0x31d5c1(0x27e)]=_0x31d5c1(0x257);var B={'tag':_0x31d5c1(0x2a1),'attrs':{'fill':_0x31d5c1(0x29f),'viewBox':_0x31d5c1(0x216),'width':_0x31d5c1(0x26b),'height':'1em'},'children':[{'tag':_0x31d5c1(0x2a7),'attrs':{'fill':'currentColor','d':_0x31d5c1(0x23c)}},{'tag':_0x31d5c1(0x2a7),'attrs':{'fill':_0x31d5c1(0x20b),'d':_0x31d5c1(0x27d),'fillRule':_0x31d5c1(0x29a),'clipRule':_0x31d5c1(0x29a)}}]},P=f[_0x31d5c1(0x253)](function(_0x14eaa9,_0x4d6770){var _0x8ed8ee=_0x31d5c1;return f[_0x8ed8ee(0x222)](j,Object[_0x8ed8ee(0x212)]({},_0x14eaa9,{'id':_0x8ed8ee(0x29e),'ref':_0x4d6770,'icon':B}));});P[_0x31d5c1(0x27e)]=_0x31d5c1(0x25f);var Y=Object[_0x31d5c1(0x239)],R=(_0x55ca34,_0x3560fb,_0x5062df,_0x5e83bf)=>{var _0x57de5f=_0x31d5c1;for(var _0x245ae6=_0x5e83bf>0x1?void 0x0:_0x5e83bf?Y(_0x3560fb,_0x5062df):_0x3560fb,_0x5e143d=_0x55ca34[_0x57de5f(0x24b)]-0x1,_0x57e2f7;_0x5e143d>=0x0;_0x5e143d--)(_0x57e2f7=_0x55ca34[_0x5e143d])&&(_0x245ae6=_0x57e2f7(_0x245ae6)||_0x245ae6);return _0x245ae6;},S=(_0x4e1c83,_0x54c9f9)=>(_0x1ecfe5,_0x371d2e)=>_0x54c9f9(_0x1ecfe5,_0x371d2e,_0x4e1c83);exports[_0x31d5c1(0x220)]=class extends o['RxDisposable']{constructor(_0x563582,_0x437481,_0x235e2e){var _0x26fac6=_0x31d5c1;super(),v(this,_0x26fac6(0x232),new Map()),(this[_0x26fac6(0x279)]=_0x563582,this[_0x26fac6(0x2da)]=_0x437481,this[_0x26fac6(0x26c)]=_0x235e2e,this[_0x26fac6(0x226)]());}async[_0x31d5c1(0x287)](_0x1cf58a){var _0x59b363=_0x31d5c1;return this['_entities'][_0x59b363(0x238)](_0x1cf58a)||await this[_0x59b363(0x28a)](_0x1cf58a),this[_0x59b363(0x232)][_0x59b363(0x28c)](_0x1cf58a);}['_init'](){var _0x30194f=_0x31d5c1;this[_0x30194f(0x279)][_0x30194f(0x271)](o[_0x30194f(0x237)][_0x30194f(0x24e)])[_0x30194f(0x22f)](b[_0x30194f(0x20f)](this[_0x30194f(0x22c)]))[_0x30194f(0x201)](async _0x94b83=>{var _0x35dec4=_0x30194f;const _0x312c20=_0x94b83['getUnitId']();this[_0x35dec4(0x232)]['has'](_0x312c20)||this[_0x35dec4(0x28a)](_0x312c20);}),this[_0x30194f(0x279)][_0x30194f(0x203)](o[_0x30194f(0x237)][_0x30194f(0x24e)])[_0x30194f(0x22f)](b[_0x30194f(0x20f)](this[_0x30194f(0x22c)]))['subscribe'](_0x3d006a=>{var _0xe70b7=_0x30194f;const _0x35cd96=_0x3d006a[_0xe70b7(0x2bc)](),_0xfdcef6=this[_0xe70b7(0x232)][_0xe70b7(0x28c)](_0x35cd96);_0xfdcef6==null||_0xfdcef6['dispose']();});}async[_0x31d5c1(0x28a)](_0x147085){var _0x42b3aa=_0x31d5c1;const _0x199000=await this[_0x42b3aa(0x26c)][_0x42b3aa(0x2d9)](_0x147085),_0x25ec7d=this[_0x42b3aa(0x2da)][_0x42b3aa(0x235)](exports[_0x42b3aa(0x2ac)],_0x147085,_0x199000);return _0x25ec7d[_0x42b3aa(0x296)](),this[_0x42b3aa(0x232)][_0x42b3aa(0x2d8)](_0x147085,_0x25ec7d),_0x25ec7d;}},exports[_0x31d5c1(0x220)]=R([S(0x0,o[_0x31d5c1(0x2a9)]),S(0x1,o[_0x31d5c1(0x20d)](o[_0x31d5c1(0x2ad)])),S(0x2,o[_0x31d5c1(0x20d)](m['CollaborationSessionService']))],exports[_0x31d5c1(0x220)]);var h=(_0x4971be=>(_0x4971be[_0x31d5c1(0x2c1)]=_0x31d5c1(0x2b0),_0x4971be['IDLE']=_0x31d5c1(0x2cb),_0x4971be[_0x31d5c1(0x248)]='following',_0x4971be[_0x31d5c1(0x2ae)]=_0x31d5c1(0x290),_0x4971be['PRESENTING']=_0x31d5c1(0x202),_0x4971be))(h||{});const Z=_0x31d5c1(0x25e),J=0xc8;exports[_0x31d5c1(0x2ac)]=class extends o[_0x31d5c1(0x291)]{constructor(_0x3278ba,_0x105e0b,_0xd02b12,_0x40c1e4,_0x156483){var _0x3ecca8=_0x31d5c1;super(),v(this,_0x3ecca8(0x26e),new x[(_0x3ecca8(0x2cd))](_0x3ecca8(0x2cb))),v(this,'status$',this[_0x3ecca8(0x26e)]['asObservable']()),v(this,_0x3ecca8(0x226),!0x1),v(this,_0x3ecca8(0x293),null),v(this,_0x3ecca8(0x1f5),null),(this[_0x3ecca8(0x242)]=_0x3278ba,this['_collabSession']=_0x105e0b,this['_configService']=_0xd02b12,this[_0x3ecca8(0x1f8)]=_0x40c1e4,this[_0x3ecca8(0x2a8)]=_0x156483);}get[_0x31d5c1(0x2c3)](){var _0x29cb52=_0x31d5c1;return this[_0x29cb52(0x26e)][_0x29cb52(0x229)]();}[_0x31d5c1(0x297)](){var _0x571767=_0x31d5c1,_0x5cfd44;(_0x5cfd44=this[_0x571767(0x293)])==null||_0x5cfd44[_0x571767(0x297)](),this[_0x571767(0x26e)][_0x571767(0x205)](_0x571767(0x2cb)),this[_0x571767(0x26e)][_0x571767(0x2b8)]();}[_0x31d5c1(0x296)](){var _0x3a8755=_0x31d5c1;this[_0x3a8755(0x226)]||(this[_0x3a8755(0x226)]=!0x0,this['_collabSession'][_0x3a8755(0x247)]['pipe'](b[_0x3a8755(0x20f)](this['dispose$']))[_0x3a8755(0x201)](_0xa3b4ec=>{var _0x59b708=_0x3a8755;switch(_0xa3b4ec){case m[_0x59b708(0x233)][_0x59b708(0x2c1)]:this['_handleOffline']();break;case m[_0x59b708(0x233)]['ONLINE']:this[_0x59b708(0x285)]();break;}}),this[_0x3a8755(0x1f2)][_0x3a8755(0x251)][_0x3a8755(0x22f)](b[_0x3a8755(0x20f)](this[_0x3a8755(0x22c)]))[_0x3a8755(0x201)](_0x4cecbe=>{var _0x42583b=_0x3a8755;const {eventID:_0x4a298f}=_0x4cecbe;switch(_0x4a298f){case _[_0x42583b(0x218)][_0x42583b(0x2b4)]:this['_handleNewHost'](_0x4cecbe);break;case _[_0x42583b(0x218)][_0x42583b(0x243)]:this['_handleOperation'](_0x4cecbe);break;case _[_0x42583b(0x218)][_0x42583b(0x231)]:this[_0x42583b(0x245)]();break;case _[_0x42583b(0x218)][_0x42583b(0x2d6)]:this[_0x42583b(0x27c)](_0x4cecbe);break;}}));}[_0x31d5c1(0x25b)](){var _0x5c16b5=_0x31d5c1;this[_0x5c16b5(0x1f2)][_0x5c16b5(0x209)]({'eventID':_[_0x5c16b5(0x218)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x5c16b5(0x242)],'userID':this[_0x5c16b5(0x1f2)][_0x5c16b5(0x2c9)]()}},this[_0x5c16b5(0x242)]);}[_0x31d5c1(0x276)](){var _0x5225e6=_0x31d5c1;this['_status']==='presenting'&&(this[_0x5225e6(0x26e)][_0x5225e6(0x205)]('idle'),this[_0x5225e6(0x1f2)]['send']({'eventID':_[_0x5225e6(0x218)][_0x5225e6(0x231)],'data':{'unitID':this[_0x5225e6(0x242)]}},this[_0x5225e6(0x242)]));}[_0x31d5c1(0x228)](){var _0x172da5=_0x31d5c1;this[_0x172da5(0x2c3)]===_0x172da5(0x290)&&(this['_status$']['next'](_0x172da5(0x22a)),this[_0x172da5(0x1fe)]());}[_0x31d5c1(0x299)](){var _0x541f2d=_0x31d5c1;this[_0x541f2d(0x2c3)]===_0x541f2d(0x22a)&&this[_0x541f2d(0x278)]();}[_0x31d5c1(0x288)](_0x3f6bbd){var _0x34ef10=_0x31d5c1;const {presenter:_0x3c7ffb}=_0x3f6bbd['data'],_0x2a201e=this[_0x34ef10(0x1f2)][_0x34ef10(0x2c9)]();this[_0x34ef10(0x1f5)]=_0x3c7ffb,_0x3c7ffb===_0x2a201e?(this[_0x34ef10(0x278)](),this['_startPresenting']()):this[_0x34ef10(0x2c3)]!==_0x34ef10(0x290)&&(this[_0x34ef10(0x295)](),this[_0x34ef10(0x1fe)]());}[_0x31d5c1(0x2cc)](){var _0xea0d10=_0x31d5c1;const _0x6b204d={'eventID':_[_0xea0d10(0x218)]['LIVESHARE_FETCH_OPERATIONS']};this[_0xea0d10(0x1f2)][_0xea0d10(0x209)](_0x6b204d,this['_unitID']);}[_0x31d5c1(0x245)](){var _0x4d991e=_0x31d5c1;this['_presenter']=null,this[_0x4d991e(0x2c3)]!==_0x4d991e(0x202)&&this[_0x4d991e(0x213)]();}[_0x31d5c1(0x27c)](_0x13eea8){var _0x3923b3=_0x31d5c1;if(this[_0x3923b3(0x2c3)]===_0x3923b3(0x22a)&&this[_0x3923b3(0x1f5)]===_0x13eea8[_0x3923b3(0x241)][_0x3923b3(0x270)]){const _0xddb1ff=_[_0x3923b3(0x2ab)](_0x13eea8['data'])[_0x3923b3(0x272)][_0x3923b3(0x1f7)]()[_0x3923b3(0x2b1)](_0x3fe43a=>_0x3fe43a['id']===C[_0x3923b3(0x2d3)]['id']);if(_0xddb1ff){const _0x53b52e=_0xddb1ff[_0x3923b3(0x2b5)][_0x3923b3(0x28e)],_0x34cab5=_0xddb1ff[_0x3923b3(0x2b5)][_0x3923b3(0x225)]['id'];setTimeout(()=>{var _0x4d3e06=_0x3923b3;this[_0x4d3e06(0x2a8)][_0x4d3e06(0x261)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x53b52e,'subUnitId':_0x34cab5},{'fromCollab':!0x0});});}}}[_0x31d5c1(0x20a)](){var _0x178de1=_0x31d5c1;this[_0x178de1(0x26e)][_0x178de1(0x205)](_0x178de1(0x202));const _0x101c93=new Map(),_0x54eefe=this['_commandDisposable']=new o[(_0x178de1(0x2d5))]();_0x54eefe[_0x178de1(0x223)](o['toDisposable'](()=>{var _0x5308a6=_0x178de1;_0x101c93[_0x5308a6(0x2a0)](_0x29f196=>_0x29f196[_0x5308a6(0x2b8)]()),_0x101c93[_0x5308a6(0x282)]();})),_0x54eefe['add'](this[_0x178de1(0x2a8)]['onCommandExecuted'](_0x21afb2=>{var _0x3fadf6=_0x178de1,_0x53976b;if(_0x21afb2['type']!==o[_0x3fadf6(0x2b7)][_0x3fadf6(0x2b9)]||!this['_liveShareService'][_0x3fadf6(0x20e)](_0x21afb2['id']))return;const {id:_0x426510}=_0x21afb2;let _0xe685a9;_0x101c93[_0x3fadf6(0x238)](_0x426510)?_0xe685a9=_0x101c93[_0x3fadf6(0x28c)](_0x426510):(_0xe685a9=new x[(_0x3fadf6(0x274))](),_0x101c93[_0x3fadf6(0x2d8)](_0x426510,_0xe685a9),_0xe685a9['pipe'](b[_0x3fadf6(0x2af)]((_0x53976b=this[_0x3fadf6(0x211)][_0x3fadf6(0x283)](Z))!=null?_0x53976b:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3fadf6(0x201)](_0x3a33d6=>{var _0x41518d=_0x3fadf6;this[_0x41518d(0x1f2)]['send']({'eventID':_[_0x41518d(0x218)][_0x41518d(0x243)],'data':{'unitID':this['_unitID'],'operations':{[_0x3a33d6['id']]:{'id':_0x3a33d6['id'],'params':JSON[_0x41518d(0x266)](_0x3a33d6[_0x41518d(0x2b5)])}}}},this[_0x41518d(0x242)]);})),_0xe685a9[_0x3fadf6(0x205)](_0x21afb2);})),this[_0x178de1(0x1f8)]['getInitialStates'](this[_0x178de1(0x242)])['forEach'](_0x28c7d4=>this[_0x178de1(0x1f2)][_0x178de1(0x209)]({'eventID':_[_0x178de1(0x218)][_0x178de1(0x243)],'data':{'unitID':this['_unitID'],'operations':{[_0x28c7d4['id']]:{'id':_0x28c7d4['id'],'params':JSON[_0x178de1(0x266)](_0x28c7d4['params'])}}}},this[_0x178de1(0x242)]));}[_0x31d5c1(0x295)](){var _0x3ef66=_0x31d5c1,_0x26395a;this[_0x3ef66(0x26e)][_0x3ef66(0x205)](_0x3ef66(0x2cb)),(_0x26395a=this['_commandDisposable'])==null||_0x26395a[_0x3ef66(0x297)](),this[_0x3ef66(0x293)]=null;}[_0x31d5c1(0x1fe)](){var _0x5b1fea=_0x31d5c1,_0x429932;(_0x429932=this[_0x5b1fea(0x293)])==null||_0x429932[_0x5b1fea(0x297)](),this[_0x5b1fea(0x26e)][_0x5b1fea(0x205)](_0x5b1fea(0x22a));}[_0x31d5c1(0x213)](){var _0x374457=_0x31d5c1,_0x489497;this['_status$']['next'](_0x374457(0x2cb)),(_0x489497=this['_commandDisposable'])==null||_0x489497[_0x374457(0x297)](),this[_0x374457(0x293)]=null;}['_stopFollowing'](){var _0xdad4a2=_0x31d5c1,_0x1f405c;this[_0xdad4a2(0x26e)]['next']('not-following'),(_0x1f405c=this[_0xdad4a2(0x293)])==null||_0x1f405c[_0xdad4a2(0x297)]();}[_0x31d5c1(0x258)](_0x354e28){var _0x54115e=_0x31d5c1;if(['presenting',_0x54115e(0x290),_0x54115e(0x2b0)][_0x54115e(0x1fa)](this[_0x54115e(0x2c3)])||!_0x354e28[_0x54115e(0x241)]['presenter']||_0x354e28['data'][_0x54115e(0x23b)]===this[_0x54115e(0x1f2)][_0x54115e(0x2c9)]())return;this['_status']===_0x54115e(0x2cb)&&this[_0x54115e(0x1fe)]();const _0x51af2a=_0x354e28['data']['operations'];Object[_0x54115e(0x230)](_0x51af2a)[_0x54115e(0x2a0)](_0x183323=>{var _0x34f5ee=_0x54115e;this[_0x34f5ee(0x2a8)][_0x34f5ee(0x261)](_0x183323['id'],_0x183323[_0x34f5ee(0x2b5)]?JSON['parse'](_0x183323['params']):null,{'fromCollab':!0x0});});}[_0x31d5c1(0x273)](){var _0x4b738d=_0x31d5c1,_0x244111;this[_0x4b738d(0x26e)][_0x4b738d(0x205)]('offline'),(_0x244111=this[_0x4b738d(0x293)])==null||_0x244111[_0x4b738d(0x297)]();}[_0x31d5c1(0x285)](){var _0x97bcc=_0x31d5c1;this['_status$'][_0x97bcc(0x205)](_0x97bcc(0x2cb)),this['_fetchOperations']();}},exports[_0x31d5c1(0x2ac)]=R([S(0x2,o[_0x31d5c1(0x29b)]),S(0x3,o['Inject'](E)),S(0x4,o[_0x31d5c1(0x2c4)])],exports[_0x31d5c1(0x2ac)]);function A(){var _0x46caff=_0x31d5c1;const _0x482ae4=p[_0x46caff(0x2ce)](exports[_0x46caff(0x220)]),_0x18b618=p[_0x46caff(0x2ce)](o['IUniverInstanceService']),_0x3aeb91=p[_0x46caff(0x25a)](()=>_0x18b618[_0x46caff(0x29d)](o[_0x46caff(0x237)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x38a7d2,_0x19fb33]=f[_0x46caff(0x289)](null),[_0x11862e,_0x2f5adf]=f[_0x46caff(0x289)](h[_0x46caff(0x224)]),_0x197cac=f[_0x46caff(0x2c7)](null);return f[_0x46caff(0x2bf)](()=>(_0x3aeb91&&_0x482ae4[_0x46caff(0x287)](_0x3aeb91[_0x46caff(0x2bc)]())[_0x46caff(0x20c)](_0x4486c2=>{_0x19fb33(_0x4486c2),_0x197cac['current']=_0x4486c2['status$']['subscribe'](_0x419a08=>{_0x2f5adf(_0x419a08);});}),()=>{var _0x4b032d=_0x46caff,_0x170ae5;(_0x170ae5=_0x197cac['current'])==null||_0x170ae5[_0x4b032d(0x252)](),_0x197cac[_0x4b032d(0x27b)]=null;}),[_0x3aeb91,_0x482ae4]),_0x38a7d2?l[_0x46caff(0x23d)](g[_0x46caff(0x2d1)],{'align':_0x46caff(0x246),'disabled':_0x11862e===h[_0x46caff(0x2c1)],'className':_0x46caff(0x234),'overlay':l['jsx'](K,{'status':_0x11862e,'coordinator':_0x38a7d2}),'children':l[_0x46caff(0x23d)](_0x46caff(0x221),{'className':g['clsx'](_0x46caff(0x2bd),{'univer-cursor-not-allowed':_0x11862e===h[_0x46caff(0x2c1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11862e!==h[_0x46caff(0x2c1)]}),'type':_0x46caff(0x221),'children':l[_0x46caff(0x23d)](P,{'className':_0x46caff(0x292)})})}):null;}function K(_0x3ed1cf){var _0x402530=_0x31d5c1;const {status:_0x5ca234,coordinator:_0x282126}=_0x3ed1cf;switch(_0x5ca234){case h['IDLE']:return l[_0x402530(0x23d)](z,{'coordinator':_0x282126});case h[_0x402530(0x248)]:return l[_0x402530(0x23d)](Q,{'coordinator':_0x282126});case h['NOT_FOLLOWING']:return l[_0x402530(0x23d)](X,{'coordinator':_0x282126});case h[_0x402530(0x2c1)]:return l[_0x402530(0x23d)](te,{});case h[_0x402530(0x240)]:return l[_0x402530(0x23d)](ee,{'coordinator':_0x282126});default:return null;}}function z(_0xb26271){var _0x192801=_0x31d5c1;const {coordinator:_0x5c02d4}=_0xb26271;return l[_0x192801(0x27a)](l[_0x192801(0x21e)],{'children':[l[_0x192801(0x23d)](_0x192801(0x281),{'className':_0x192801(0x1f3),'children':_0x192801(0x26f)}),l[_0x192801(0x23d)](g[_0x192801(0x2c5)],{'onClick':()=>_0x5c02d4[_0x192801(0x25b)](),'children':'Start'})]});}function Q(_0xfbaab){var _0x45dcff=_0x31d5c1;const {coordinator:_0x5777c1}=_0xfbaab;return l[_0x45dcff(0x27a)](l[_0x45dcff(0x21e)],{'children':[l['jsx'](_0x45dcff(0x281),{'className':_0x45dcff(0x1f3),'children':_0x45dcff(0x2d7)}),l[_0x45dcff(0x23d)](g['Button'],{'onClick':()=>_0x5777c1[_0x45dcff(0x299)](),'children':_0x45dcff(0x1f6)})]});}function X(_0x25ea70){var _0x1f8df2=_0x31d5c1;const {coordinator:_0x4bdc91}=_0x25ea70;return l['jsxs'](l[_0x1f8df2(0x21e)],{'children':[l[_0x1f8df2(0x23d)](_0x1f8df2(0x281),{'className':_0x1f8df2(0x1f3),'children':_0x1f8df2(0x236)}),l[_0x1f8df2(0x23d)](g['Button'],{'variant':_0x1f8df2(0x280),'onClick':()=>_0x4bdc91[_0x1f8df2(0x228)](),'children':'Start\x20following'})]});}function ee(_0x1e1651){var _0x21e26c=_0x31d5c1;const {coordinator:_0x29d52a}=_0x1e1651;return l[_0x21e26c(0x27a)](l['Fragment'],{'children':[l['jsx']('div',{'className':_0x21e26c(0x1f3),'children':_0x21e26c(0x1fb)}),l[_0x21e26c(0x23d)](g['Button'],{'variant':_0x21e26c(0x29c),'onClick':()=>_0x29d52a[_0x21e26c(0x276)](),'children':_0x21e26c(0x255)})]});}function te(){var _0x1c11f3=_0x31d5c1;return l['jsx'](l[_0x1c11f3(0x21e)],{'children':_0x1c11f3(0x207)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x2cfb9d,_0x5be9f8,_0x28e00d,_0x2a9fe2)=>{var _0x55795e=_0x31d5c1;for(var _0x437458=_0x2a9fe2>0x1?void 0x0:_0x2a9fe2?ie(_0x5be9f8,_0x28e00d):_0x5be9f8,_0x546a54=_0x2cfb9d[_0x55795e(0x24b)]-0x1,_0x5e0861;_0x546a54>=0x0;_0x546a54--)(_0x5e0861=_0x2cfb9d[_0x546a54])&&(_0x437458=_0x5e0861(_0x437458)||_0x437458);return _0x437458;},N=(_0x4543aa,_0x153c85)=>(_0x57baaf,_0x21d47c)=>_0x153c85(_0x57baaf,_0x21d47c,_0x4543aa);exports['DesktopLiveShareController']=class extends o[_0x31d5c1(0x256)]{constructor(_0x7995fe,_0x605bbc){var _0x1530fb=_0x31d5c1;super(),this[_0x1530fb(0x2da)]=_0x7995fe,this[_0x1530fb(0x2a4)]=_0x605bbc,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x3b5201=_0x31d5c1;this[_0x3b5201(0x2d0)](this[_0x3b5201(0x2a4)][_0x3b5201(0x21b)](p[_0x3b5201(0x2c2)][_0x3b5201(0x22d)],()=>p[_0x3b5201(0x264)](A,this[_0x3b5201(0x2da)])));}},exports['DesktopLiveShareController']=ne([N(0x0,o['Inject'](o[_0x31d5c1(0x2ad)])),N(0x1,p['IUIPartsService'])],exports[_0x31d5c1(0x267)]);var re=Object[_0x31d5c1(0x2a6)],se=Object[_0x31d5c1(0x239)],oe=(_0x1494d3,_0x1dbcb5,_0x240ff8)=>_0x1dbcb5 in _0x1494d3?re(_0x1494d3,_0x1dbcb5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x240ff8}):_0x1494d3[_0x1dbcb5]=_0x240ff8,ae=(_0x1e1ebc,_0x2d4e39,_0x17b21f,_0x29693a)=>{var _0x29be24=_0x31d5c1;for(var _0x5ce891=_0x29693a>0x1?void 0x0:_0x29693a?se(_0x2d4e39,_0x17b21f):_0x2d4e39,_0x4fa4ab=_0x1e1ebc[_0x29be24(0x24b)]-0x1,_0x583746;_0x4fa4ab>=0x0;_0x4fa4ab--)(_0x583746=_0x1e1ebc[_0x4fa4ab])&&(_0x5ce891=_0x583746(_0x5ce891)||_0x5ce891);return _0x5ce891;},w=(_0x59f6d3,_0x4f47ab)=>(_0x718f2a,_0x1504f9)=>_0x4f47ab(_0x718f2a,_0x1504f9,_0x59f6d3),T=(_0x37b7d4,_0x5d6984,_0xd60e1d)=>oe(_0x37b7d4,typeof _0x5d6984!=_0x31d5c1(0x27f)?_0x5d6984+'':_0x5d6984,_0xd60e1d);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x31d5c1(0x208)]=class extends o[_0x31d5c1(0x23e)]{constructor(_0x3ae812=L,_0x540506,_0x40d744){var _0x489ab7=_0x31d5c1;super(),this['_config']=_0x3ae812,this[_0x489ab7(0x2da)]=_0x540506,this[_0x489ab7(0x211)]=_0x40d744;const {..._0x2c3222}=o[_0x489ab7(0x2b2)]({},L,this[_0x489ab7(0x22b)]);this[_0x489ab7(0x211)][_0x489ab7(0x26d)]($,_0x2c3222);}[_0x31d5c1(0x263)](){var _0x495b26=_0x31d5c1;o[_0x495b26(0x250)](this[_0x495b26(0x2da)],o[_0x495b26(0x23f)]([[E],[exports[_0x495b26(0x220)]],[O],[exports[_0x495b26(0x267)]]],this[_0x495b26(0x22b)]['override'])),o[_0x495b26(0x2bb)](this[_0x495b26(0x2da)],[[O]]);}[_0x31d5c1(0x1f9)](){var _0x4ae6e8=_0x31d5c1;o[_0x4ae6e8(0x2bb)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x31d5c1(0x208)],_0x31d5c1(0x1f1),o[_0x31d5c1(0x237)]['UNIVER_UNKNOWN']),T(exports[_0x31d5c1(0x208)],_0x31d5c1(0x22e),le),exports[_0x31d5c1(0x208)]=ae([o[_0x31d5c1(0x204)](m[_0x31d5c1(0x26a)]),w(0x1,o[_0x31d5c1(0x20d)](o['Injector'])),w(0x2,o[_0x31d5c1(0x29b)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=A,exports[_0x31d5c1(0x298)]=E,exports[_0x31d5c1(0x259)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x2a0f2a=_0x1c4f;(function(_0x5f0a4e,_0xddb148){var _0x469746=_0x1c4f,_0x1bfa3d=_0x5f0a4e();while(!![]){try{var _0x88fdf4=-parseInt(_0x469746(0x186))/0x1+parseInt(_0x469746(0x223))/0x2+parseInt(_0x469746(0x1bc))/0x3+-parseInt(_0x469746(0x216))/0x4+parseInt(_0x469746(0x21c))/0x5*(-parseInt(_0x469746(0x178))/0x6)+parseInt(_0x469746(0x1ce))/0x7+parseInt(_0x469746(0x1fb))/0x8;if(_0x88fdf4===_0xddb148)break;else _0x1bfa3d['push'](_0x1bfa3d['shift']());}catch(_0x1ab257){_0x1bfa3d['push'](_0x1bfa3d['shift']());}}}(_0x2677,0x9e744));var q=Object['defineProperty'],z=(_0x71726f,_0x613047,_0x47626e)=>_0x613047 in _0x71726f?q(_0x71726f,_0x613047,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47626e}):_0x71726f[_0x613047]=_0x47626e,d=(_0x35722d,_0x3eb878,_0x405534)=>z(_0x35722d,typeof _0x3eb878!=_0x2a0f2a(0x1e6)?_0x3eb878+'':_0x3eb878,_0x405534);import{CollaborationSessionService as _0x139eaf,SessionStatus as _0x511ef6,UniverCollaborationClientPlugin as _0x2cf583}from'@univerjs-pro/collaboration-client';import{Disposable as _0x56d91a,toDisposable as _0x3ea5b0,Inject as _0x459502,IUniverInstanceService as _0x560e40,Injector as _0x511763,IConfigService as _0x2e77bf,ICommandService as _0x22ff36,RxDisposable as _0x2773af,UniverInstanceType as _0x43f478,DisposableCollection as _0x31b05b,CommandType as _0x53a8fc,DependentOn as _0x2ecbb5,Plugin as _0x36cf9c,merge as _0x2a8c98,registerDependencies as _0x123d95,mergeOverrideWithDependencies as _0x4f628e,touchDependencies as _0x2d4a9e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x56cadf,InsertSheetMutation as _0x18edf1}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x236b5e,SetScrollOperation as _0x4e40a1}from'@univerjs/sheets-ui';import{useDependency as _0x3e135f,useObservable as _0x1d56b5,IUIPartsService as _0xf8ae92,BuiltInUIPart as _0xba4be9,connectInjector as _0x57f19d}from'@univerjs/ui';import{jsx as _0x430726,jsxs as _0x2b0221,Fragment as _0x114633}from'react/jsx-runtime';import{Dropdown as _0x1f1fbe,clsx as _0x285d7d,Button as _0x46f48e}from'@univerjs/design';import{forwardRef as _0x4e0fc8,useRef as _0xba99eb,createElement as _0x216e9d,useState as _0x216df8,useEffect as _0x245dda}from'react';import{CollaborationEvent as _0x4c2295,parseProtocolChangeset as _0x5217ed}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x4f5984,Subject as _0x5ef0c0}from'rxjs';import{takeUntil as _0x31d1f6,throttleTime as _0x2ea41b}from'rxjs/operators';const Oe=_0x2a0f2a(0x205),T={};class L extends _0x56d91a{constructor(){var _0x33d36e=_0x2a0f2a;super(...arguments),d(this,_0x33d36e(0x184),new Set()),d(this,_0x33d36e(0x187),new Set());}[_0x2a0f2a(0x1ed)](_0x215604){var _0x356f00=_0x2a0f2a;return this[_0x356f00(0x184)][_0x356f00(0x196)](_0x215604),_0x3ea5b0(()=>this['_sharedOperations'][_0x356f00(0x1ad)](_0x215604));}['registerInitialStateReporter'](_0x2b751f){return this['_reporters']['add'](_0x2b751f),_0x3ea5b0(()=>this['_reporters']['delete'](_0x2b751f));}[_0x2a0f2a(0x1b9)](_0x53b27c){var _0x4a3a32=_0x2a0f2a;return this[_0x4a3a32(0x184)][_0x4a3a32(0x18b)](_0x53b27c);}['getInitialStates'](_0x4d27f3){var _0x3ad593=_0x2a0f2a;return Array[_0x3ad593(0x183)](this['_reporters'])['map'](_0x5477ac=>_0x5477ac(_0x4d27f3));}}var Ee=Object[_0x2a0f2a(0x1ef)],Ce=(_0x4001dd,_0x42eb55,_0x1eebd0,_0xf7aeeb)=>{var _0x17af7b=_0x2a0f2a;for(var _0x2f99d4=_0xf7aeeb>0x1?void 0x0:_0xf7aeeb?Ee(_0x42eb55,_0x1eebd0):_0x42eb55,_0x3a22af=_0x4001dd[_0x17af7b(0x1e2)]-0x1,_0x490658;_0x3a22af>=0x0;_0x3a22af--)(_0x490658=_0x4001dd[_0x3a22af])&&(_0x2f99d4=_0x490658(_0x2f99d4)||_0x2f99d4);return _0x2f99d4;},Ne=(_0xf5d60e,_0x20bce6)=>(_0x1d54fa,_0x230642)=>_0x20bce6(_0x1d54fa,_0x230642,_0xf5d60e);let m=class extends _0x56d91a{constructor(_0x2e9499){var _0x71e7e5=_0x2a0f2a;super(),this['_liveShareService']=_0x2e9499,this[_0x71e7e5(0x1b6)]();}[_0x2a0f2a(0x1b6)](){[_0x236b5e['id'],_0x4e40a1['id'],_0x56cadf['id']]['forEach'](_0x39d97e=>{var _0x16ebaf=_0x1c4f;this['disposeWithMe'](this[_0x16ebaf(0x19f)][_0x16ebaf(0x1ed)](_0x39d97e));});}};m=Ce([Ne(0x0,_0x459502(L))],m);var c=function(){var _0x691001=_0x2a0f2a;return c=Object[_0x691001(0x21d)]||function(_0x5e32e4){var _0x4cdf4a=_0x691001;for(var _0xdaa6f3,_0x1caf9d=0x1,_0x59d549=arguments[_0x4cdf4a(0x1e2)];_0x1caf9d<_0x59d549;_0x1caf9d++){_0xdaa6f3=arguments[_0x1caf9d];for(var _0x189455 in _0xdaa6f3)Object[_0x4cdf4a(0x1a0)]['hasOwnProperty'][_0x4cdf4a(0x175)](_0xdaa6f3,_0x189455)&&(_0x5e32e4[_0x189455]=_0xdaa6f3[_0x189455]);}return _0x5e32e4;},c[_0x691001(0x1e8)](this,arguments);},we=function(_0x10c2c8,_0x3f7e1a){var _0x437ecd=_0x2a0f2a,_0x39fc14={};for(var _0x4720c3 in _0x10c2c8)Object[_0x437ecd(0x1a0)][_0x437ecd(0x18d)][_0x437ecd(0x175)](_0x10c2c8,_0x4720c3)&&_0x3f7e1a[_0x437ecd(0x18a)](_0x4720c3)<0x0&&(_0x39fc14[_0x4720c3]=_0x10c2c8[_0x4720c3]);if(_0x10c2c8!=null&&typeof Object[_0x437ecd(0x1cb)]=='function'){for(var _0x134b13=0x0,_0x4720c3=Object['getOwnPropertySymbols'](_0x10c2c8);_0x134b13<_0x4720c3[_0x437ecd(0x1e2)];_0x134b13++)_0x3f7e1a[_0x437ecd(0x18a)](_0x4720c3[_0x134b13])<0x0&&Object[_0x437ecd(0x1a0)][_0x437ecd(0x1e9)][_0x437ecd(0x175)](_0x10c2c8,_0x4720c3[_0x134b13])&&(_0x39fc14[_0x4720c3[_0x134b13]]=_0x10c2c8[_0x4720c3[_0x134b13]]);}return _0x39fc14;},W=_0x4e0fc8(function(_0x380565,_0x224b02){var _0x394fb5=_0x2a0f2a,_0x40daa6=_0x380565[_0x394fb5(0x1ec)],_0x243046=_0x380565['id'],_0x31ed57=_0x380565[_0x394fb5(0x1dc)],_0x2211ab=_0x380565[_0x394fb5(0x1f8)],_0x17b0db=we(_0x380565,[_0x394fb5(0x1ec),'id',_0x394fb5(0x1dc),_0x394fb5(0x1f8)]),_0x203233=_0x394fb5(0x1d9)[_0x394fb5(0x208)](_0x243046,'\x20')[_0x394fb5(0x208)](_0x31ed57||'')[_0x394fb5(0x17a)](),_0x366822=_0xba99eb('_'[_0x394fb5(0x208)](Le()));return Y(_0x40daa6,''[_0x394fb5(0x208)](_0x243046),{'defIds':_0x40daa6[_0x394fb5(0x20d)],'idSuffix':_0x366822['current']},c({'ref':_0x224b02,'className':_0x203233},_0x17b0db),_0x2211ab);});function Y(_0x4e3849,_0xc6506,_0x5da265,_0x187970,_0x4deec8){var _0x327db8=_0x2a0f2a;return _0x216e9d(_0x4e3849[_0x327db8(0x1a8)],c(c({'key':_0xc6506},De(_0x4e3849,_0x5da265,_0x4deec8)),_0x187970),(xe(_0x4e3849,_0x5da265)[_0x327db8(0x1b0)]||[])['map'](function(_0x1372b5,_0x48514a){var _0x119d1e=_0x327db8;return Y(_0x1372b5,''[_0x119d1e(0x208)](_0xc6506,'-')[_0x119d1e(0x208)](_0x4e3849['tag'],'-')[_0x119d1e(0x208)](_0x48514a),_0x5da265,void 0x0,_0x4deec8);}));}function De(_0x4f6fa1,_0x1dbbfd,_0x4cab33){var _0x5a51bf=_0x2a0f2a,_0x3f8a37=c({},_0x4f6fa1[_0x5a51bf(0x1b4)]);_0x4cab33!=null&&_0x4cab33[_0x5a51bf(0x1d3)]&&_0x3f8a37[_0x5a51bf(0x218)]===_0x5a51bf(0x1d3)&&(_0x3f8a37[_0x5a51bf(0x218)]=_0x4cab33[_0x5a51bf(0x1d3)]),_0x4f6fa1['tag']===_0x5a51bf(0x181)&&_0x3f8a37['id']&&(_0x3f8a37['id']=_0x3f8a37['id']+_0x1dbbfd[_0x5a51bf(0x1b1)]),Object[_0x5a51bf(0x1a3)](_0x3f8a37)[_0x5a51bf(0x20f)](function(_0x23d6ee){var _0x5c8e7b=_0x5a51bf,_0x1a0220=_0x23d6ee[0x0],_0x489556=_0x23d6ee[0x1];_0x1a0220===_0x5c8e7b(0x181)&&typeof _0x489556=='string'&&(_0x3f8a37[_0x1a0220]=_0x489556[_0x5c8e7b(0x1f4)](/url\(#(.*)\)/,'url(#$1'[_0x5c8e7b(0x208)](_0x1dbbfd[_0x5c8e7b(0x1b1)],')')));});var _0x23c14=_0x1dbbfd[_0x5a51bf(0x20d)];return!_0x23c14||_0x23c14['length']===0x0||(_0x4f6fa1[_0x5a51bf(0x1a8)]===_0x5a51bf(0x174)&&_0x3f8a37['xlink:href']&&(_0x3f8a37['xlink:href']=_0x3f8a37[_0x5a51bf(0x1a5)]+_0x1dbbfd[_0x5a51bf(0x1b1)]),Object[_0x5a51bf(0x1a3)](_0x3f8a37)[_0x5a51bf(0x20f)](function(_0x4aeb54){var _0x12b600=_0x5a51bf,_0x2543d2=_0x4aeb54[0x0],_0x43488c=_0x4aeb54[0x1];typeof _0x43488c==_0x12b600(0x1dd)&&(_0x3f8a37[_0x2543d2]=_0x43488c[_0x12b600(0x1f4)](/url\(#(.*)\)/,_0x12b600(0x1b5)[_0x12b600(0x208)](_0x1dbbfd[_0x12b600(0x1b1)],')')));})),_0x3f8a37;}function xe(_0x29a139,_0x5052f5){var _0x3e8e57=_0x2a0f2a,_0x17b817,_0x46a30d=_0x5052f5[_0x3e8e57(0x20d)];return!_0x46a30d||_0x46a30d[_0x3e8e57(0x1e2)]===0x0?_0x29a139:_0x29a139[_0x3e8e57(0x1a8)]===_0x3e8e57(0x18c)&&(!((_0x17b817=_0x29a139[_0x3e8e57(0x1b0)])===null||_0x17b817===void 0x0)&&_0x17b817['length'])?c(c({},_0x29a139),{'children':_0x29a139[_0x3e8e57(0x1b0)]['map'](function(_0xce47ed){var _0x3a2a29=_0x3e8e57;return typeof _0xce47ed[_0x3a2a29(0x1b4)]['id']==_0x3a2a29(0x1dd)&&_0x46a30d&&_0x46a30d[_0x3a2a29(0x18a)](_0xce47ed[_0x3a2a29(0x1b4)]['id'])>-0x1?c(c({},_0xce47ed),{'attrs':c(c({},_0xce47ed[_0x3a2a29(0x1b4)]),{'id':_0xce47ed[_0x3a2a29(0x1b4)]['id']+_0x5052f5[_0x3a2a29(0x1b1)]})}):_0xce47ed;})}):_0x29a139;}function Le(){var _0x2a9c00=_0x2a0f2a;return Math[_0x2a9c00(0x1ac)]()[_0x2a9c00(0x1d4)](0x24)[_0x2a9c00(0x215)](0x2,0x8);}W[_0x2a0f2a(0x1e4)]=_0x2a0f2a(0x1d1);var ye={'tag':_0x2a0f2a(0x1d6),'attrs':{'fill':_0x2a0f2a(0x1e0),'viewBox':_0x2a0f2a(0x1c3),'width':'1em','height':_0x2a0f2a(0x190)},'children':[{'tag':_0x2a0f2a(0x1cc),'attrs':{'fill':_0x2a0f2a(0x1f9),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':'path','attrs':{'fill':_0x2a0f2a(0x1f9),'d':_0x2a0f2a(0x189),'fillRule':_0x2a0f2a(0x21f),'clipRule':_0x2a0f2a(0x21f)}}]},B=_0x4e0fc8(function(_0x1d6b22,_0x193f10){var _0x43ac9d=_0x2a0f2a;return _0x216e9d(W,Object[_0x43ac9d(0x21d)]({},_0x1d6b22,{'id':_0x43ac9d(0x1ff),'ref':_0x193f10,'icon':ye}));});B['displayName']='LiveShareSingle';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x4ebed0,_0x2a5db7,_0x138018,_0x1605d5)=>{var _0x39caec=_0x2a0f2a;for(var _0x3dbed8=_0x1605d5>0x1?void 0x0:_0x1605d5?Re(_0x2a5db7,_0x138018):_0x2a5db7,_0x1af66d=_0x4ebed0[_0x39caec(0x1e2)]-0x1,_0x3a2c18;_0x1af66d>=0x0;_0x1af66d--)(_0x3a2c18=_0x4ebed0[_0x1af66d])&&(_0x3dbed8=_0x3a2c18(_0x3dbed8)||_0x3dbed8);return _0x3dbed8;},f=(_0x4d06cc,_0x46eae0)=>(_0x4206a4,_0x2e663b)=>_0x46eae0(_0x4206a4,_0x2e663b,_0x4d06cc);let I=class extends _0x2773af{constructor(_0x3270dd,_0x433c2b,_0x3ab648){var _0x5ca8be=_0x2a0f2a;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3270dd,this[_0x5ca8be(0x201)]=_0x433c2b,this[_0x5ca8be(0x1fc)]=_0x3ab648,this[_0x5ca8be(0x1b6)]());}async['getLiveShareCoordinator'](_0x41c42d){var _0x40a477=_0x2a0f2a;return this[_0x40a477(0x192)][_0x40a477(0x18b)](_0x41c42d)||await this[_0x40a477(0x1fd)](_0x41c42d),this[_0x40a477(0x192)][_0x40a477(0x222)](_0x41c42d);}[_0x2a0f2a(0x1b6)](){var _0x2423a0=_0x2a0f2a;this[_0x2423a0(0x191)][_0x2423a0(0x1d5)](_0x43f478[_0x2423a0(0x1a9)])[_0x2423a0(0x204)](_0x31d1f6(this[_0x2423a0(0x1d0)]))['subscribe'](async _0x115fc8=>{var _0x1a6f31=_0x2423a0;const _0x1c1e12=_0x115fc8[_0x1a6f31(0x176)]();this[_0x1a6f31(0x192)]['has'](_0x1c1e12)||this[_0x1a6f31(0x1fd)](_0x1c1e12);}),this['_univerInstanceService'][_0x2423a0(0x1e5)](_0x43f478[_0x2423a0(0x1a9)])['pipe'](_0x31d1f6(this[_0x2423a0(0x1d0)]))[_0x2423a0(0x1c8)](_0x41085c=>{var _0xb336f2=_0x2423a0;const _0x104a96=_0x41085c['getUnitId'](),_0x829d45=this[_0xb336f2(0x192)][_0xb336f2(0x222)](_0x104a96);_0x829d45==null||_0x829d45[_0xb336f2(0x17c)]();});}async[_0x2a0f2a(0x1fd)](_0x527381){var _0x3705c8=_0x2a0f2a;const _0x5b53a0=await this['_collabSessionService']['requireSession'](_0x527381),_0x125e20=this[_0x3705c8(0x201)]['createInstance'](w,_0x527381,_0x5b53a0);return _0x125e20[_0x3705c8(0x1c5)](),this['_entities'][_0x3705c8(0x20c)](_0x527381,_0x125e20),_0x125e20;}};I=Z([f(0x0,_0x560e40),f(0x1,_0x459502(_0x511763)),f(0x2,_0x459502(_0x139eaf))],I);var h=(_0x108c59=>(_0x108c59[_0x2a0f2a(0x1bb)]=_0x2a0f2a(0x180),_0x108c59['IDLE']=_0x2a0f2a(0x1a1),_0x108c59[_0x2a0f2a(0x1be)]=_0x2a0f2a(0x1ba),_0x108c59['NOT_FOLLOWING']=_0x2a0f2a(0x1b7),_0x108c59[_0x2a0f2a(0x1ee)]=_0x2a0f2a(0x1f5),_0x108c59))(h||{});const Pe=_0x2a0f2a(0x18f),Ae=0xc8;let w=class extends _0x2773af{constructor(_0x4a70b2,_0x1cd2d6,_0x38f627,_0x6747b9,_0x42f5a5){var _0x356b61=_0x2a0f2a;super(),d(this,_0x356b61(0x224),new _0x4f5984(_0x356b61(0x1a1))),d(this,'status$',this['_status$'][_0x356b61(0x193)]()),d(this,_0x356b61(0x1b6),!0x1),d(this,'_commandDisposable',null),d(this,_0x356b61(0x19b),null),(this['_unitID']=_0x4a70b2,this['_collabSession']=_0x1cd2d6,this['_configService']=_0x38f627,this[_0x356b61(0x19f)]=_0x6747b9,this[_0x356b61(0x1c0)]=_0x42f5a5);}get[_0x2a0f2a(0x203)](){var _0x367dca=_0x2a0f2a;return this[_0x367dca(0x224)][_0x367dca(0x1da)]();}[_0x2a0f2a(0x17c)](){var _0x55fdf5=_0x2a0f2a,_0x55b3c9;(_0x55b3c9=this[_0x55fdf5(0x1cf)])==null||_0x55b3c9[_0x55fdf5(0x17c)](),this[_0x55fdf5(0x224)]['next']('idle'),this[_0x55fdf5(0x224)][_0x55fdf5(0x1fa)]();}['init'](){var _0x15d87a=_0x2a0f2a;this['_init']||(this[_0x15d87a(0x1b6)]=!0x0,this[_0x15d87a(0x1cd)][_0x15d87a(0x17e)][_0x15d87a(0x204)](_0x31d1f6(this[_0x15d87a(0x1d0)]))['subscribe'](_0x305799=>{var _0x166441=_0x15d87a;switch(_0x305799){case _0x511ef6[_0x166441(0x1bb)]:this[_0x166441(0x188)]();break;case _0x511ef6['ONLINE']:this[_0x166441(0x1af)]();break;}}),this['_collabSession'][_0x15d87a(0x195)][_0x15d87a(0x204)](_0x31d1f6(this[_0x15d87a(0x1d0)]))[_0x15d87a(0x1c8)](_0x2fc1f7=>{var _0x2a22b7=_0x15d87a;const {eventID:_0x3517c0}=_0x2fc1f7;switch(_0x3517c0){case _0x4c2295[_0x2a22b7(0x182)]:this[_0x2a22b7(0x212)](_0x2fc1f7);break;case _0x4c2295['LIVESHARE_OPERATION']:this[_0x2a22b7(0x1c7)](_0x2fc1f7);break;case _0x4c2295['LIVESHARE_TERMINATE']:this[_0x2a22b7(0x1a7)]();break;case _0x4c2295[_0x2a22b7(0x21e)]:this[_0x2a22b7(0x185)](_0x2fc1f7);break;}}));}[_0x2a0f2a(0x19a)](){var _0x1ed016=_0x2a0f2a;this['_collabSession'][_0x1ed016(0x173)]({'eventID':_0x4c2295[_0x1ed016(0x19e)],'data':{'unitID':this[_0x1ed016(0x179)],'userID':this[_0x1ed016(0x1cd)][_0x1ed016(0x17b)]()}},this[_0x1ed016(0x179)]);}[_0x2a0f2a(0x20e)](){var _0x480d6b=_0x2a0f2a;this[_0x480d6b(0x203)]==='presenting'&&(this[_0x480d6b(0x224)][_0x480d6b(0x1a2)](_0x480d6b(0x1a1)),this[_0x480d6b(0x1cd)]['send']({'eventID':_0x4c2295[_0x480d6b(0x1e3)],'data':{'unitID':this[_0x480d6b(0x179)]}},this['_unitID']));}[_0x2a0f2a(0x199)](){var _0x18b58d=_0x2a0f2a;this['_status']===_0x18b58d(0x1b7)&&(this[_0x18b58d(0x224)][_0x18b58d(0x1a2)](_0x18b58d(0x1ba)),this[_0x18b58d(0x1c1)]());}[_0x2a0f2a(0x210)](){var _0x346a6f=_0x2a0f2a;this[_0x346a6f(0x203)]===_0x346a6f(0x1ba)&&this[_0x346a6f(0x1f0)]();}[_0x2a0f2a(0x212)](_0xdec379){var _0x52bea8=_0x2a0f2a;const {presenter:_0x4608f7}=_0xdec379[_0x52bea8(0x1f1)],_0x430298=this[_0x52bea8(0x1cd)][_0x52bea8(0x17b)]();this[_0x52bea8(0x19b)]=_0x4608f7,_0x4608f7===_0x430298?(this['_stopFollowing'](),this[_0x52bea8(0x18e)]()):this[_0x52bea8(0x203)]!==_0x52bea8(0x1b7)&&(this[_0x52bea8(0x21a)](),this[_0x52bea8(0x1c1)]());}[_0x2a0f2a(0x209)](){var _0x21296b=_0x2a0f2a;const _0x10e00c={'eventID':_0x4c2295[_0x21296b(0x1d8)]};this[_0x21296b(0x1cd)][_0x21296b(0x173)](_0x10e00c,this[_0x21296b(0x179)]);}['_handleTerminate'](){var _0x4002fa=_0x2a0f2a;this[_0x4002fa(0x19b)]=null,this[_0x4002fa(0x203)]!==_0x4002fa(0x1f5)&&this['_beIdle']();}[_0x2a0f2a(0x185)](_0x3af917){var _0x34fd8a=_0x2a0f2a;if(this[_0x34fd8a(0x203)]===_0x34fd8a(0x1ba)&&this[_0x34fd8a(0x19b)]===_0x3af917[_0x34fd8a(0x1f1)][_0x34fd8a(0x17d)]){const _0x3e82f9=_0x5217ed(_0x3af917[_0x34fd8a(0x1f1)])[_0x34fd8a(0x206)][_0x34fd8a(0x219)]()[_0x34fd8a(0x1df)](_0x321758=>_0x321758['id']===_0x18edf1['id']);if(_0x3e82f9){const _0x48c6ad=_0x3e82f9[_0x34fd8a(0x221)][_0x34fd8a(0x1b2)],_0x139d7e=_0x3e82f9[_0x34fd8a(0x221)][_0x34fd8a(0x1b3)]['id'];setTimeout(()=>{var _0x490019=_0x34fd8a;this[_0x490019(0x1c0)]['executeCommand'](_0x56cadf['id'],{'unitId':_0x48c6ad,'subUnitId':_0x139d7e},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x36e74f=_0x2a0f2a;this[_0x36e74f(0x224)][_0x36e74f(0x1a2)](_0x36e74f(0x1f5));const _0xd51831=new Map(),_0x2cd56=this[_0x36e74f(0x1cf)]=new _0x31b05b();_0x2cd56[_0x36e74f(0x196)](_0x3ea5b0(()=>{var _0x4bf972=_0x36e74f;_0xd51831['forEach'](_0x423f73=>_0x423f73['complete']()),_0xd51831[_0x4bf972(0x1e7)]();})),_0x2cd56[_0x36e74f(0x196)](this[_0x36e74f(0x1c0)][_0x36e74f(0x1ea)](_0x98a794=>{var _0x2ecaf6=_0x36e74f,_0x2907b4;if(_0x98a794[_0x2ecaf6(0x1c2)]!==_0x53a8fc[_0x2ecaf6(0x213)]||!this[_0x2ecaf6(0x19f)][_0x2ecaf6(0x1b9)](_0x98a794['id']))return;const {id:_0x5419d3}=_0x98a794;let _0x26991d;_0xd51831['has'](_0x5419d3)?_0x26991d=_0xd51831[_0x2ecaf6(0x222)](_0x5419d3):(_0x26991d=new _0x5ef0c0(),_0xd51831['set'](_0x5419d3,_0x26991d),_0x26991d[_0x2ecaf6(0x204)](_0x2ea41b((_0x2907b4=this['_configService'][_0x2ecaf6(0x1ca)](Pe))!=null?_0x2907b4:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2ecaf6(0x1c8)](_0x2cc61e=>{var _0x241d8d=_0x2ecaf6;this[_0x241d8d(0x1cd)][_0x241d8d(0x173)]({'eventID':_0x4c2295['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2cc61e['id']]:{'id':_0x2cc61e['id'],'params':JSON['stringify'](_0x2cc61e['params'])}}}},this['_unitID']);})),_0x26991d[_0x2ecaf6(0x1a2)](_0x98a794);})),this[_0x36e74f(0x19f)]['getInitialStates'](this[_0x36e74f(0x179)])['forEach'](_0x55d07e=>this[_0x36e74f(0x1cd)][_0x36e74f(0x173)]({'eventID':_0x4c2295['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x36e74f(0x179)],'operations':{[_0x55d07e['id']]:{'id':_0x55d07e['id'],'params':JSON[_0x36e74f(0x200)](_0x55d07e[_0x36e74f(0x221)])}}}},this[_0x36e74f(0x179)]));}['_stopPresenting'](){var _0x4cba9d=_0x2a0f2a,_0x16510d;this[_0x4cba9d(0x224)]['next']('idle'),(_0x16510d=this['_commandDisposable'])==null||_0x16510d[_0x4cba9d(0x17c)](),this[_0x4cba9d(0x1cf)]=null;}[_0x2a0f2a(0x1c1)](){var _0x578337=_0x2a0f2a,_0x404f1b;(_0x404f1b=this[_0x578337(0x1cf)])==null||_0x404f1b[_0x578337(0x17c)](),this['_status$'][_0x578337(0x1a2)]('following');}[_0x2a0f2a(0x1ab)](){var _0x576e7e=_0x2a0f2a,_0x36a142;this[_0x576e7e(0x224)][_0x576e7e(0x1a2)](_0x576e7e(0x1a1)),(_0x36a142=this['_commandDisposable'])==null||_0x36a142[_0x576e7e(0x17c)](),this[_0x576e7e(0x1cf)]=null;}[_0x2a0f2a(0x1f0)](){var _0x384008=_0x2a0f2a,_0x22abe2;this[_0x384008(0x224)][_0x384008(0x1a2)](_0x384008(0x1b7)),(_0x22abe2=this[_0x384008(0x1cf)])==null||_0x22abe2['dispose']();}[_0x2a0f2a(0x1c7)](_0x4aceee){var _0x4d2112=_0x2a0f2a;if([_0x4d2112(0x1f5),'not-following',_0x4d2112(0x180)][_0x4d2112(0x211)](this['_status'])||!_0x4aceee['data'][_0x4d2112(0x220)]||_0x4aceee['data'][_0x4d2112(0x220)]===this['_collabSession'][_0x4d2112(0x17b)]())return;this[_0x4d2112(0x203)]===_0x4d2112(0x1a1)&&this[_0x4d2112(0x1c1)]();const _0x3e813a=_0x4aceee['data'][_0x4d2112(0x198)];Object[_0x4d2112(0x1f7)](_0x3e813a)[_0x4d2112(0x20f)](_0x235fe2=>{var _0x2caec8=_0x4d2112;this[_0x2caec8(0x1c0)][_0x2caec8(0x1e1)](_0x235fe2['id'],_0x235fe2[_0x2caec8(0x221)]?JSON[_0x2caec8(0x1de)](_0x235fe2[_0x2caec8(0x221)]):null,{'fromCollab':!0x0});});}[_0x2a0f2a(0x188)](){var _0x16eb4c=_0x2a0f2a,_0x37d952;this[_0x16eb4c(0x224)][_0x16eb4c(0x1a2)](_0x16eb4c(0x180)),(_0x37d952=this['_commandDisposable'])==null||_0x37d952[_0x16eb4c(0x17c)]();}['_handleOnline'](){var _0x1c46b4=_0x2a0f2a;this['_status$'][_0x1c46b4(0x1a2)](_0x1c46b4(0x1a1)),this[_0x1c46b4(0x209)]();}};w=Z([f(0x2,_0x2e77bf),f(0x3,_0x459502(L)),f(0x4,_0x22ff36)],w);function Te(){var _0x3c223e=_0x2a0f2a;const _0x1b5ea0=_0x3e135f(I),_0x30e351=_0x3e135f(_0x560e40),_0x1afbe5=_0x1d56b5(()=>_0x30e351[_0x3c223e(0x217)](_0x43f478[_0x3c223e(0x1a9)]),void 0x0,!0x1,[]),[_0x64641,_0x2f18dd]=_0x216df8(null),[_0x51f2ae,_0x390ba0]=_0x216df8(h[_0x3c223e(0x1b8)]),_0x4cbef8=_0xba99eb(null);return _0x245dda(()=>(_0x1afbe5&&_0x1b5ea0[_0x3c223e(0x1f3)](_0x1afbe5[_0x3c223e(0x176)]())['then'](_0x427b54=>{var _0x5a4541=_0x3c223e;_0x2f18dd(_0x427b54),_0x4cbef8[_0x5a4541(0x202)]=_0x427b54[_0x5a4541(0x19d)]['subscribe'](_0x495bfe=>{_0x390ba0(_0x495bfe);});}),()=>{var _0x30de99=_0x3c223e,_0x31c493;(_0x31c493=_0x4cbef8[_0x30de99(0x202)])==null||_0x31c493[_0x30de99(0x1db)](),_0x4cbef8['current']=null;}),[_0x1afbe5,_0x1b5ea0]),_0x64641?_0x430726(_0x1f1fbe,{'align':_0x3c223e(0x1f2),'disabled':_0x51f2ae===h[_0x3c223e(0x1bb)],'className':_0x3c223e(0x20a),'overlay':_0x430726($e,{'status':_0x51f2ae,'coordinator':_0x64641}),'children':_0x430726(_0x3c223e(0x1fe),{'className':_0x285d7d('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x51f2ae===h[_0x3c223e(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51f2ae!==h[_0x3c223e(0x1bb)]}),'type':_0x3c223e(0x1fe),'children':_0x430726(B,{'className':'univer-size-4'})})}):null;}function $e(_0xde28d2){var _0xbd4cbf=_0x2a0f2a;const {status:_0x41ec08,coordinator:_0x331241}=_0xde28d2;switch(_0x41ec08){case h[_0xbd4cbf(0x1b8)]:return _0x430726(Fe,{'coordinator':_0x331241});case h[_0xbd4cbf(0x1be)]:return _0x430726(He,{'coordinator':_0x331241});case h[_0xbd4cbf(0x1eb)]:return _0x430726(je,{'coordinator':_0x331241});case h['OFFLINE']:return _0x430726(Ve,{});case h[_0xbd4cbf(0x1ee)]:return _0x430726(Ue,{'coordinator':_0x331241});default:return null;}}function Fe(_0xbe1a3a){var _0x5cea33=_0x2a0f2a;const {coordinator:_0x341f93}=_0xbe1a3a;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x5cea33(0x1ae),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5cea33(0x1f6)}),_0x430726(_0x46f48e,{'onClick':()=>_0x341f93[_0x5cea33(0x19a)](),'children':'Start'})]});}function _0x2677(){var _0x28e176=['subscribe','UNIVER_LIVE_SHARE_PLUGIN','getConfig','getOwnPropertySymbols','path','_collabSession','8756034LhQmzS','_commandDisposable','dispose$','UniverIcon','disposeWithMe','colorChannel1','toString','getTypeOfUnitAdded$','svg','univer-w-full\x20univer-mb-3\x20univer-text-sm','LIVESHARE_FETCH_OPERATIONS','univerjs-icon\x20univerjs-icon-','getValue','unsubscribe','className','string','parse','find','none','executeCommand','length','LIVESHARE_TERMINATE','displayName','getTypeOfUnitDisposed$','symbol','clear','apply','propertyIsEnumerable','onCommandExecuted','NOT_FOLLOWING','icon','registerSharedOperation','PRESENTING','getOwnPropertyDescriptor','_stopFollowing','data','end','getLiveShareCoordinator','replace','presenting','Present\x20this\x20document','values','extend','currentColor','complete','8362632WbMHtM','_collabSessionService','_startLiveShareCoordinator','button','live-share-single','stringify','_injector','current','_status','pipe','live-share.config','mutations','_mountLiveShare','concat','_fetchOperations','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','_config','set','defIds','stopPresenting','forEach','stopFollowing','includes','_handleNewHost','OPERATION','Stop\x20following','substring','3412748hbhvVq','getCurrentTypeOfUnit$','fill','reverse','_stopPresenting','UNIVER_UNKNOWN','995orkHYv','assign','NEW_CHANGESETS','evenodd','presenter','params','get','1101588NTzCoG','_status$','send','use','call','getUnitId','_configService','33738wltFtl','_unitID','trim','getMemberID','dispose','memberID','sessionStatus$','Start\x20following','offline','mask','LIVESHARE_NEW_HOST','from','_sharedOperations','_handleNewChangeSets','1011316hVYsZR','_reporters','_handleOffline','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','indexOf','has','defs','hasOwnProperty','_startPresenting','SAME_OPERATION_SHARE_INTERVAL','1em','_univerInstanceService','_entities','asObservable','You\x27re\x20following\x20the\x20presenter','event$','add','pluginName','operations','startFollowing','tryStartPresenting','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','status$','LIVESHARE_REQUEST_HOST','_liveShareService','prototype','idle','next','entries','You\x27are\x20offline.','xlink:href','default','_handleTerminate','tag','UNIVER_SHEET','_uiPartsService','_beIdle','random','delete','div','_handleOnline','children','idSuffix','unitId','sheet','attrs','url(#$1','_init','not-following','IDLE','shouldShareOperation','following','OFFLINE','2356569zMlhsi','HEADER_MENU','FOLLOWING','override','_commandService','_startFollowing','type','0\x200\x2016\x2016','text','init','setConfig','_handleOperation'];_0x2677=function(){return _0x28e176;};return _0x2677();}function He(_0x51eb33){var _0x259bf8=_0x2a0f2a;const {coordinator:_0x1875cb}=_0x51eb33;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x259bf8(0x1ae),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x259bf8(0x194)}),_0x430726(_0x46f48e,{'onClick':()=>_0x1875cb['stopFollowing'](),'children':_0x259bf8(0x214)})]});}function je(_0x39db73){var _0x2ba218=_0x2a0f2a;const {coordinator:_0x434681}=_0x39db73;return _0x2b0221(_0x114633,{'children':[_0x430726('div',{'className':_0x2ba218(0x1d7),'children':_0x2ba218(0x19c)}),_0x430726(_0x46f48e,{'variant':_0x2ba218(0x1c4),'onClick':()=>_0x434681[_0x2ba218(0x199)](),'children':_0x2ba218(0x17f)})]});}function Ue(_0x832789){var _0x40306e=_0x2a0f2a;const {coordinator:_0x14dfd1}=_0x832789;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x40306e(0x1ae),{'className':_0x40306e(0x1d7),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x430726(_0x46f48e,{'variant':_0x40306e(0x1a6),'onClick':()=>_0x14dfd1['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x51e6c5=_0x2a0f2a;return _0x430726(_0x114633,{'children':_0x51e6c5(0x1a4)});}var Me=Object[_0x2a0f2a(0x1ef)],ke=(_0x1434f2,_0x4b0a39,_0x26271d,_0x113b22)=>{for(var _0x105e87=_0x113b22>0x1?void 0x0:_0x113b22?Me(_0x4b0a39,_0x26271d):_0x4b0a39,_0x5ad90c=_0x1434f2['length']-0x1,_0x39c6d1;_0x5ad90c>=0x0;_0x5ad90c--)(_0x39c6d1=_0x1434f2[_0x5ad90c])&&(_0x105e87=_0x39c6d1(_0x105e87)||_0x105e87);return _0x105e87;},$=(_0x56b26b,_0x15ecb3)=>(_0x45b54a,_0x27e27a)=>_0x15ecb3(_0x45b54a,_0x27e27a,_0x56b26b);let b=class extends _0x56d91a{constructor(_0x40ac16,_0x5cb5dd){var _0x14ee55=_0x2a0f2a;super(),this[_0x14ee55(0x201)]=_0x40ac16,this[_0x14ee55(0x1aa)]=_0x5cb5dd,this[_0x14ee55(0x207)]();}[_0x2a0f2a(0x207)](){var _0x401241=_0x2a0f2a;this[_0x401241(0x1d2)](this[_0x401241(0x1aa)]['registerComponent'](_0xba4be9[_0x401241(0x1bd)],()=>_0x57f19d(Te,this[_0x401241(0x201)])));}};b=ke([$(0x0,_0x459502(_0x511763)),$(0x1,_0xf8ae92)],b);var Ge=Object['defineProperty'],We=Object[_0x2a0f2a(0x1ef)],Ye=(_0x2b00db,_0x172369,_0xb421e9)=>_0x172369 in _0x2b00db?Ge(_0x2b00db,_0x172369,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb421e9}):_0x2b00db[_0x172369]=_0xb421e9,Be=(_0x32396a,_0x44fdda,_0x1b23c6,_0x118ac6)=>{var _0x40967b=_0x2a0f2a;for(var _0x18ecfe=_0x118ac6>0x1?void 0x0:_0x118ac6?We(_0x44fdda,_0x1b23c6):_0x44fdda,_0x290d5f=_0x32396a[_0x40967b(0x1e2)]-0x1,_0x4cc370;_0x290d5f>=0x0;_0x290d5f--)(_0x4cc370=_0x32396a[_0x290d5f])&&(_0x18ecfe=_0x4cc370(_0x18ecfe)||_0x18ecfe);return _0x18ecfe;},F=(_0x9e9494,_0x220691)=>(_0x6fcd4f,_0x2d5f9e)=>_0x220691(_0x6fcd4f,_0x2d5f9e,_0x9e9494),J=(_0x55a3c7,_0x3b81b2,_0x271a14)=>Ye(_0x55a3c7,typeof _0x3b81b2!='symbol'?_0x3b81b2+'':_0x3b81b2,_0x271a14);const Ze=_0x2a0f2a(0x1c9);let O=class extends _0x36cf9c{constructor(_0x1aca0a=T,_0x18593a,_0x2a6639){var _0x4aecc2=_0x2a0f2a;super(),this['_config']=_0x1aca0a,this[_0x4aecc2(0x201)]=_0x18593a,this[_0x4aecc2(0x177)]=_0x2a6639;const {..._0x5e8262}=_0x2a8c98({},T,this[_0x4aecc2(0x20b)]);this[_0x4aecc2(0x177)][_0x4aecc2(0x1c6)](Oe,_0x5e8262);}['onStarting'](){var _0x4a30a5=_0x2a0f2a;_0x123d95(this[_0x4a30a5(0x201)],_0x4f628e([[L],[I],[m],[b]],this[_0x4a30a5(0x20b)][_0x4a30a5(0x1bf)])),_0x2d4a9e(this[_0x4a30a5(0x201)],[[m]]);}['onRendered'](){var _0x1760ce=_0x2a0f2a;_0x2d4a9e(this[_0x1760ce(0x201)],[[b]]);}};function _0x1c4f(_0x412eea,_0x465a20){var _0x2677ee=_0x2677();return _0x1c4f=function(_0x1c4fa5,_0x1769d9){_0x1c4fa5=_0x1c4fa5-0x173;var _0x458a08=_0x2677ee[_0x1c4fa5];return _0x458a08;},_0x1c4f(_0x412eea,_0x465a20);}J(O,_0x2a0f2a(0x1c2),_0x43f478[_0x2a0f2a(0x21b)]),J(O,_0x2a0f2a(0x197),Ze),O=Be([_0x2ecbb5(_0x2cf583),F(0x1,_0x459502(_0x511763)),F(0x2,_0x2e77bf)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x317cc4=_0x121d;(function(_0x743470,_0x2002b9){var _0x3a5e86=_0x121d,_0xeb287b=_0x743470();while(!![]){try{var _0x145502=parseInt(_0x3a5e86(0x23f))/0x1+-parseInt(_0x3a5e86(0x250))/0x2*(parseInt(_0x3a5e86(0x236))/0x3)+-parseInt(_0x3a5e86(0x22d))/0x4+parseInt(_0x3a5e86(0x258))/0x5*(-parseInt(_0x3a5e86(0x213))/0x6)+parseInt(_0x3a5e86(0x204))/0x7+-parseInt(_0x3a5e86(0x271))/0x8*(parseInt(_0x3a5e86(0x257))/0x9)+-parseInt(_0x3a5e86(0x293))/0xa*(-parseInt(_0x3a5e86(0x21b))/0xb);if(_0x145502===_0x2002b9)break;else _0xeb287b['push'](_0xeb287b['shift']());}catch(_0x32d39f){_0xeb287b['push'](_0xeb287b['shift']());}}}(_0x4352,0x68b39));var q=Object[_0x317cc4(0x28d)],z=(_0x200f56,_0x34ae8d,_0xab6661)=>_0x34ae8d in _0x200f56?q(_0x200f56,_0x34ae8d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xab6661}):_0x200f56[_0x34ae8d]=_0xab6661,d=(_0x760b2e,_0x2bc7ed,_0x5461bd)=>z(_0x760b2e,typeof _0x2bc7ed!=_0x317cc4(0x230)?_0x2bc7ed+'':_0x2bc7ed,_0x5461bd);import{CollaborationSessionService as _0xf227ba,SessionStatus as _0x488b82,UniverCollaborationClientPlugin as _0x7a3857}from'@univerjs-pro/collaboration-client';import{Disposable as _0x28b745,toDisposable as _0x1750b3,Inject as _0x3973f8,IUniverInstanceService as _0x4d6e57,Injector as _0x44f59d,IConfigService as _0x58ab73,ICommandService as _0x358665,RxDisposable as _0x371e9b,UniverInstanceType as _0x5ada5c,DisposableCollection as _0x5d76a4,CommandType as _0x1cd9a0,DependentOn as _0x17a14e,Plugin as _0x5cb41f,merge as _0x43e9f6,registerDependencies as _0x10add6,mergeOverrideWithDependencies as _0x2908f4,touchDependencies as _0x21ed85}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x34abf8,InsertSheetMutation as _0x15acd4}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x127e50,SetScrollOperation as _0x5f295}from'@univerjs/sheets-ui';import{useDependency as _0x13cf3c,useObservable as _0x3d804b,IUIPartsService as _0x4a839a,BuiltInUIPart as _0x189589,connectInjector as _0x222fb3}from'@univerjs/ui';import{jsx as _0x5e0980,jsxs as _0x86c48d,Fragment as _0x4fb342}from'react/jsx-runtime';import{Dropdown as _0xd3e1d7,clsx as _0x204084,Button as _0x1e8eb3}from'@univerjs/design';import{forwardRef as _0x10f6cc,useRef as _0xa2b4b4,createElement as _0x1cfd2c,useState as _0x1fab71,useEffect as _0x28befb}from'react';import{CollaborationEvent as _0x2f29ed,parseProtocolChangeset as _0x13f9cc}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x290e70,Subject as _0x2d0f0f}from'rxjs';import{takeUntil as _0x2284f5,throttleTime as _0x16037d}from'rxjs/operators';function _0x4352(){var _0xc6a2ca=['univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','attrs','You\x27re\x20following\x20the\x20presenter','tag','type','UNIVER_UNKNOWN','_startPresenting','unsubscribe','children','getMemberID','prototype','_collabSessionService','426qvjTkw','toString','LIVESHARE_REQUEST_HOST','find','_mountLiveShare','_injector','_handleOperation','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','517YBfGvf','_handleOnline','length','_stopPresenting','status$','requireSession','LIVESHARE_OPERATION','univer-w-full\x20univer-mb-3\x20univer-text-sm','stopFollowing','stopPresenting','IDLE','UNIVER_SHEET','_startLiveShareCoordinator','univer-size-4','colorChannel1','defIds','assign','mutations','259304SfKzGH','NEW_CHANGESETS','dispose$','symbol','idle','_liveShareService','_reporters','icon','xlink:href','1689OzIJYf','propertyIsEnumerable','presenter','_status$','_univerInstanceService','call','subscribe','use','string','494887EFhmMW','default','_entities','getConfig','map','_commandService','_collabSession','SAME_OPERATION_SHARE_INTERVAL','_config','data','get','add','delete','HEADER_MENU','complete','executeCommand','_uiPartsService','398BKSrHe','You\x27re\x20presenting\x20the\x20document','live-share-single','registerSharedOperation','set','div','_handleOffline','207DIsSUK','6005zwUpDz','getValue','You\x27are\x20offline.','next','_presenter','_beIdle','_sharedOperations','_commandDisposable','init','shouldShareOperation','dispose','then','presenting','evenodd','trim','_handleTerminate','Stop\x20presenting','onRendered','pluginName','getOwnPropertySymbols','includes','_handleNewChangeSets','getUnitId','FOLLOWING','has','239576zOJEOM','registerInitialStateReporter','UNIVER_LIVE_SHARE_PLUGIN','_unitID','idSuffix','text','sessionStatus$','PRESENTING','getTypeOfUnitAdded$','startFollowing','indexOf','disposeWithMe','_handleNewHost','extend','send','unitId','path','from','apply','registerComponent','parse','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','currentColor','replace','hasOwnProperty','displayName','_init','_configService','defineProperty','stringify','event$','concat','LiveShareSingle','defs','21130SGrRzU','override','1em','params','following','_stopFollowing','UniverIcon','className','values','getOwnPropertyDescriptor','offline','OFFLINE','getCurrentTypeOfUnit$','forEach','_fetchOperations','clear','createInstance','svg','entries','NOT_FOLLOWING','current','_startFollowing','end','mask','LIVESHARE_TERMINATE','OPERATION','LIVESHARE_NEW_HOST','button','not-following','tryStartPresenting','memberID','live-share.config','getInitialStates','pipe','random','url(#$1','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','getTypeOfUnitDisposed$','5499018uflIGE','Present\x20this\x20document','_status'];_0x4352=function(){return _0xc6a2ca;};return _0x4352();}const Oe=_0x317cc4(0x1fd),T={};class L extends _0x28b745{constructor(){var _0x1ee847=_0x317cc4;super(...arguments),d(this,_0x1ee847(0x25e),new Set()),d(this,_0x1ee847(0x233),new Set());}[_0x317cc4(0x253)](_0x34554e){var _0x453eb3=_0x317cc4;return this[_0x453eb3(0x25e)][_0x453eb3(0x24a)](_0x34554e),_0x1750b3(()=>this['_sharedOperations'][_0x453eb3(0x24b)](_0x34554e));}[_0x317cc4(0x272)](_0x205694){var _0x12118b=_0x317cc4;return this['_reporters']['add'](_0x205694),_0x1750b3(()=>this[_0x12118b(0x233)][_0x12118b(0x24b)](_0x205694));}[_0x317cc4(0x261)](_0x4348be){var _0x170dc5=_0x317cc4;return this[_0x170dc5(0x25e)][_0x170dc5(0x270)](_0x4348be);}[_0x317cc4(0x1fe)](_0x54491a){var _0x8efbc8=_0x317cc4;return Array[_0x8efbc8(0x282)](this['_reporters'])[_0x8efbc8(0x243)](_0x3e15f8=>_0x3e15f8(_0x54491a));}}var Ee=Object[_0x317cc4(0x29c)],Ce=(_0x68cb5c,_0x2e1b8e,_0x1909c4,_0x440302)=>{var _0x54f249=_0x317cc4;for(var _0x3dfd77=_0x440302>0x1?void 0x0:_0x440302?Ee(_0x2e1b8e,_0x1909c4):_0x2e1b8e,_0x411a7a=_0x68cb5c[_0x54f249(0x21d)]-0x1,_0x493dff;_0x411a7a>=0x0;_0x411a7a--)(_0x493dff=_0x68cb5c[_0x411a7a])&&(_0x3dfd77=_0x493dff(_0x3dfd77)||_0x3dfd77);return _0x3dfd77;},Ne=(_0x439b52,_0x5dd71f)=>(_0x45d733,_0x51427e)=>_0x5dd71f(_0x45d733,_0x51427e,_0x439b52);let m=class extends _0x28b745{constructor(_0x17ab6f){var _0x3e693a=_0x317cc4;super(),this[_0x3e693a(0x232)]=_0x17ab6f,this[_0x3e693a(0x28b)]();}['_init'](){var _0x4fe881=_0x317cc4;[_0x127e50['id'],_0x5f295['id'],_0x34abf8['id']][_0x4fe881(0x2a0)](_0x30dfff=>{var _0x4a8588=_0x4fe881;this[_0x4a8588(0x27c)](this[_0x4a8588(0x232)][_0x4a8588(0x253)](_0x30dfff));});}};m=Ce([Ne(0x0,_0x3973f8(L))],m);var c=function(){var _0x1890e3=_0x317cc4;return c=Object[_0x1890e3(0x22b)]||function(_0x1795d7){var _0x515cdb=_0x1890e3;for(var _0x461435,_0x927aaf=0x1,_0x1fc6d0=arguments[_0x515cdb(0x21d)];_0x927aaf<_0x1fc6d0;_0x927aaf++){_0x461435=arguments[_0x927aaf];for(var _0x2df735 in _0x461435)Object['prototype'][_0x515cdb(0x289)]['call'](_0x461435,_0x2df735)&&(_0x1795d7[_0x2df735]=_0x461435[_0x2df735]);}return _0x1795d7;},c[_0x1890e3(0x283)](this,arguments);},we=function(_0x59ab0d,_0x28711b){var _0x2597f7=_0x317cc4,_0x5b9470={};for(var _0xfe8e5f in _0x59ab0d)Object['prototype'][_0x2597f7(0x289)][_0x2597f7(0x23b)](_0x59ab0d,_0xfe8e5f)&&_0x28711b['indexOf'](_0xfe8e5f)<0x0&&(_0x5b9470[_0xfe8e5f]=_0x59ab0d[_0xfe8e5f]);if(_0x59ab0d!=null&&typeof Object[_0x2597f7(0x26b)]=='function'){for(var _0x47165a=0x0,_0xfe8e5f=Object['getOwnPropertySymbols'](_0x59ab0d);_0x47165a<_0xfe8e5f[_0x2597f7(0x21d)];_0x47165a++)_0x28711b[_0x2597f7(0x27b)](_0xfe8e5f[_0x47165a])<0x0&&Object[_0x2597f7(0x211)][_0x2597f7(0x237)][_0x2597f7(0x23b)](_0x59ab0d,_0xfe8e5f[_0x47165a])&&(_0x5b9470[_0xfe8e5f[_0x47165a]]=_0x59ab0d[_0xfe8e5f[_0x47165a]]);}return _0x5b9470;},W=_0x10f6cc(function(_0x41fb54,_0x291d63){var _0x22b872=_0x317cc4,_0xab3917=_0x41fb54[_0x22b872(0x234)],_0x342f82=_0x41fb54['id'],_0x2c3dca=_0x41fb54[_0x22b872(0x29a)],_0x220c64=_0x41fb54[_0x22b872(0x27e)],_0x3df331=we(_0x41fb54,[_0x22b872(0x234),'id','className',_0x22b872(0x27e)]),_0x5bf2b4='univerjs-icon\x20univerjs-icon-'[_0x22b872(0x290)](_0x342f82,'\x20')[_0x22b872(0x290)](_0x2c3dca||'')[_0x22b872(0x266)](),_0x2d4b15=_0xa2b4b4('_'[_0x22b872(0x290)](Le()));return Y(_0xab3917,''[_0x22b872(0x290)](_0x342f82),{'defIds':_0xab3917['defIds'],'idSuffix':_0x2d4b15[_0x22b872(0x2a7)]},c({'ref':_0x291d63,'className':_0x5bf2b4},_0x3df331),_0x220c64);});function Y(_0x457f6e,_0x57644a,_0x74a3cf,_0xa14b6,_0x595f46){var _0x55d5f5=_0x317cc4;return _0x1cfd2c(_0x457f6e[_0x55d5f5(0x20a)],c(c({'key':_0x57644a},De(_0x457f6e,_0x74a3cf,_0x595f46)),_0xa14b6),(xe(_0x457f6e,_0x74a3cf)[_0x55d5f5(0x20f)]||[])[_0x55d5f5(0x243)](function(_0x4f64fc,_0x4c4b56){var _0xf288d7=_0x55d5f5;return Y(_0x4f64fc,''[_0xf288d7(0x290)](_0x57644a,'-')['concat'](_0x457f6e[_0xf288d7(0x20a)],'-')[_0xf288d7(0x290)](_0x4c4b56),_0x74a3cf,void 0x0,_0x595f46);}));}function De(_0x13c203,_0x345e01,_0x3e0965){var _0xcf1fd9=_0x317cc4,_0x244685=c({},_0x13c203[_0xcf1fd9(0x208)]);_0x3e0965!=null&&_0x3e0965[_0xcf1fd9(0x229)]&&_0x244685['fill']===_0xcf1fd9(0x229)&&(_0x244685['fill']=_0x3e0965['colorChannel1']),_0x13c203[_0xcf1fd9(0x20a)]===_0xcf1fd9(0x1f5)&&_0x244685['id']&&(_0x244685['id']=_0x244685['id']+_0x345e01[_0xcf1fd9(0x275)]),Object[_0xcf1fd9(0x2a5)](_0x244685)[_0xcf1fd9(0x2a0)](function(_0x37f37b){var _0x5905d4=_0xcf1fd9,_0x92d969=_0x37f37b[0x0],_0x14c884=_0x37f37b[0x1];_0x92d969===_0x5905d4(0x1f5)&&typeof _0x14c884==_0x5905d4(0x23e)&&(_0x244685[_0x92d969]=_0x14c884[_0x5905d4(0x288)](/url\(#(.*)\)/,_0x5905d4(0x201)['concat'](_0x345e01['idSuffix'],')')));});var _0x599969=_0x345e01[_0xcf1fd9(0x22a)];return!_0x599969||_0x599969[_0xcf1fd9(0x21d)]===0x0||(_0x13c203[_0xcf1fd9(0x20a)]===_0xcf1fd9(0x23d)&&_0x244685[_0xcf1fd9(0x235)]&&(_0x244685['xlink:href']=_0x244685['xlink:href']+_0x345e01[_0xcf1fd9(0x275)]),Object[_0xcf1fd9(0x2a5)](_0x244685)[_0xcf1fd9(0x2a0)](function(_0x97fc36){var _0x4ece42=_0xcf1fd9,_0x324bd6=_0x97fc36[0x0],_0x25992a=_0x97fc36[0x1];typeof _0x25992a==_0x4ece42(0x23e)&&(_0x244685[_0x324bd6]=_0x25992a[_0x4ece42(0x288)](/url\(#(.*)\)/,_0x4ece42(0x201)['concat'](_0x345e01['idSuffix'],')')));})),_0x244685;}function xe(_0x254ca1,_0x2916d5){var _0xe1863a=_0x317cc4,_0x30178c,_0x31ce65=_0x2916d5['defIds'];return!_0x31ce65||_0x31ce65[_0xe1863a(0x21d)]===0x0?_0x254ca1:_0x254ca1[_0xe1863a(0x20a)]===_0xe1863a(0x292)&&(!((_0x30178c=_0x254ca1['children'])===null||_0x30178c===void 0x0)&&_0x30178c[_0xe1863a(0x21d)])?c(c({},_0x254ca1),{'children':_0x254ca1[_0xe1863a(0x20f)][_0xe1863a(0x243)](function(_0x5ecb20){var _0x2fe6db=_0xe1863a;return typeof _0x5ecb20['attrs']['id']=='string'&&_0x31ce65&&_0x31ce65[_0x2fe6db(0x27b)](_0x5ecb20['attrs']['id'])>-0x1?c(c({},_0x5ecb20),{'attrs':c(c({},_0x5ecb20[_0x2fe6db(0x208)]),{'id':_0x5ecb20[_0x2fe6db(0x208)]['id']+_0x2916d5[_0x2fe6db(0x275)]})}):_0x5ecb20;})}):_0x254ca1;}function Le(){var _0x12aa15=_0x317cc4;return Math[_0x12aa15(0x200)]()[_0x12aa15(0x214)](0x24)['substring'](0x2,0x8);}W[_0x317cc4(0x28a)]=_0x317cc4(0x299);var ye={'tag':_0x317cc4(0x2a4),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x317cc4(0x295),'height':_0x317cc4(0x295)},'children':[{'tag':'path','attrs':{'fill':_0x317cc4(0x287),'d':_0x317cc4(0x21a)}},{'tag':_0x317cc4(0x281),'attrs':{'fill':_0x317cc4(0x287),'d':_0x317cc4(0x202),'fillRule':_0x317cc4(0x265),'clipRule':_0x317cc4(0x265)}}]},B=_0x10f6cc(function(_0x38c520,_0x5d0e65){var _0x50000b=_0x317cc4;return _0x1cfd2c(W,Object[_0x50000b(0x22b)]({},_0x38c520,{'id':_0x50000b(0x252),'ref':_0x5d0e65,'icon':ye}));});B['displayName']=_0x317cc4(0x291);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x486090,_0x1b1176,_0x407818,_0x36d660)=>{for(var _0x3bf0b0=_0x36d660>0x1?void 0x0:_0x36d660?Re(_0x1b1176,_0x407818):_0x1b1176,_0x14b27b=_0x486090['length']-0x1,_0x50fe74;_0x14b27b>=0x0;_0x14b27b--)(_0x50fe74=_0x486090[_0x14b27b])&&(_0x3bf0b0=_0x50fe74(_0x3bf0b0)||_0x3bf0b0);return _0x3bf0b0;},f=(_0x4ea832,_0x1ee1e6)=>(_0x3125a1,_0x4a7d3a)=>_0x1ee1e6(_0x3125a1,_0x4a7d3a,_0x4ea832);let I=class extends _0x371e9b{constructor(_0x4bc49d,_0x310e0e,_0x24ceb6){var _0x2386b5=_0x317cc4;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x4bc49d,this[_0x2386b5(0x218)]=_0x310e0e,this[_0x2386b5(0x212)]=_0x24ceb6,this['_init']());}async['getLiveShareCoordinator'](_0x511194){var _0x13fa47=_0x317cc4;return this[_0x13fa47(0x241)]['has'](_0x511194)||await this[_0x13fa47(0x227)](_0x511194),this[_0x13fa47(0x241)]['get'](_0x511194);}[_0x317cc4(0x28b)](){var _0x4ca48c=_0x317cc4;this[_0x4ca48c(0x23a)][_0x4ca48c(0x279)](_0x5ada5c[_0x4ca48c(0x226)])['pipe'](_0x2284f5(this[_0x4ca48c(0x22f)]))[_0x4ca48c(0x23c)](async _0x15f34a=>{var _0xb35db2=_0x4ca48c;const _0x3d74ca=_0x15f34a['getUnitId']();this['_entities'][_0xb35db2(0x270)](_0x3d74ca)||this[_0xb35db2(0x227)](_0x3d74ca);}),this['_univerInstanceService'][_0x4ca48c(0x203)](_0x5ada5c[_0x4ca48c(0x226)])['pipe'](_0x2284f5(this[_0x4ca48c(0x22f)]))['subscribe'](_0x290668=>{var _0x2134bb=_0x4ca48c;const _0x16f4e4=_0x290668[_0x2134bb(0x26e)](),_0x5982a6=this['_entities'][_0x2134bb(0x249)](_0x16f4e4);_0x5982a6==null||_0x5982a6['dispose']();});}async[_0x317cc4(0x227)](_0x3baa74){var _0x3a9deb=_0x317cc4;const _0x2fe467=await this[_0x3a9deb(0x212)][_0x3a9deb(0x220)](_0x3baa74),_0x202e0c=this['_injector'][_0x3a9deb(0x2a3)](w,_0x3baa74,_0x2fe467);return _0x202e0c[_0x3a9deb(0x260)](),this[_0x3a9deb(0x241)][_0x3a9deb(0x254)](_0x3baa74,_0x202e0c),_0x202e0c;}};I=Z([f(0x0,_0x4d6e57),f(0x1,_0x3973f8(_0x44f59d)),f(0x2,_0x3973f8(_0xf227ba))],I);var h=(_0x4b2fe4=>(_0x4b2fe4['OFFLINE']='offline',_0x4b2fe4['IDLE']=_0x317cc4(0x231),_0x4b2fe4[_0x317cc4(0x26f)]=_0x317cc4(0x297),_0x4b2fe4[_0x317cc4(0x2a6)]=_0x317cc4(0x1fa),_0x4b2fe4[_0x317cc4(0x278)]=_0x317cc4(0x264),_0x4b2fe4))(h||{});const Pe=_0x317cc4(0x246),Ae=0xc8;let w=class extends _0x371e9b{constructor(_0x1e49c2,_0x1a22f2,_0x2c6a87,_0x4a48d1,_0x55bd8f){var _0x1674c0=_0x317cc4;super(),d(this,'_status$',new _0x290e70(_0x1674c0(0x231))),d(this,'status$',this[_0x1674c0(0x239)]['asObservable']()),d(this,_0x1674c0(0x28b),!0x1),d(this,_0x1674c0(0x25f),null),d(this,_0x1674c0(0x25c),null),(this['_unitID']=_0x1e49c2,this['_collabSession']=_0x1a22f2,this['_configService']=_0x2c6a87,this[_0x1674c0(0x232)]=_0x4a48d1,this[_0x1674c0(0x244)]=_0x55bd8f);}get[_0x317cc4(0x206)](){var _0x1b5e0c=_0x317cc4;return this[_0x1b5e0c(0x239)][_0x1b5e0c(0x259)]();}['dispose'](){var _0x1105c9=_0x317cc4,_0x32d36f;(_0x32d36f=this[_0x1105c9(0x25f)])==null||_0x32d36f['dispose'](),this[_0x1105c9(0x239)][_0x1105c9(0x25b)](_0x1105c9(0x231)),this['_status$'][_0x1105c9(0x24d)]();}['init'](){var _0x38f51a=_0x317cc4;this[_0x38f51a(0x28b)]||(this['_init']=!0x0,this[_0x38f51a(0x245)][_0x38f51a(0x277)][_0x38f51a(0x1ff)](_0x2284f5(this['dispose$']))[_0x38f51a(0x23c)](_0x199132=>{var _0x529f0d=_0x38f51a;switch(_0x199132){case _0x488b82[_0x529f0d(0x29e)]:this[_0x529f0d(0x256)]();break;case _0x488b82['ONLINE']:this[_0x529f0d(0x21c)]();break;}}),this['_collabSession'][_0x38f51a(0x28f)][_0x38f51a(0x1ff)](_0x2284f5(this['dispose$']))[_0x38f51a(0x23c)](_0x2bd11c=>{var _0x1d6a66=_0x38f51a;const {eventID:_0x5aac88}=_0x2bd11c;switch(_0x5aac88){case _0x2f29ed[_0x1d6a66(0x1f8)]:this['_handleNewHost'](_0x2bd11c);break;case _0x2f29ed[_0x1d6a66(0x221)]:this['_handleOperation'](_0x2bd11c);break;case _0x2f29ed[_0x1d6a66(0x1f6)]:this[_0x1d6a66(0x267)]();break;case _0x2f29ed[_0x1d6a66(0x22e)]:this[_0x1d6a66(0x26d)](_0x2bd11c);break;}}));}[_0x317cc4(0x1fb)](){var _0x79452b=_0x317cc4;this[_0x79452b(0x245)][_0x79452b(0x27f)]({'eventID':_0x2f29ed[_0x79452b(0x215)],'data':{'unitID':this[_0x79452b(0x274)],'userID':this[_0x79452b(0x245)][_0x79452b(0x210)]()}},this[_0x79452b(0x274)]);}['stopPresenting'](){var _0xb697d8=_0x317cc4;this[_0xb697d8(0x206)]===_0xb697d8(0x264)&&(this[_0xb697d8(0x239)][_0xb697d8(0x25b)](_0xb697d8(0x231)),this[_0xb697d8(0x245)][_0xb697d8(0x27f)]({'eventID':_0x2f29ed[_0xb697d8(0x1f6)],'data':{'unitID':this[_0xb697d8(0x274)]}},this['_unitID']));}[_0x317cc4(0x27a)](){var _0x2bd8af=_0x317cc4;this[_0x2bd8af(0x206)]===_0x2bd8af(0x1fa)&&(this[_0x2bd8af(0x239)][_0x2bd8af(0x25b)]('following'),this[_0x2bd8af(0x1f3)]());}[_0x317cc4(0x223)](){var _0x194c5c=_0x317cc4;this[_0x194c5c(0x206)]==='following'&&this[_0x194c5c(0x298)]();}[_0x317cc4(0x27d)](_0x4dbc46){var _0x3271a6=_0x317cc4;const {presenter:_0x1f614c}=_0x4dbc46[_0x3271a6(0x248)],_0x45375d=this['_collabSession']['getMemberID']();this[_0x3271a6(0x25c)]=_0x1f614c,_0x1f614c===_0x45375d?(this[_0x3271a6(0x298)](),this[_0x3271a6(0x20d)]()):this[_0x3271a6(0x206)]!=='not-following'&&(this[_0x3271a6(0x21e)](),this[_0x3271a6(0x1f3)]());}[_0x317cc4(0x2a1)](){var _0x453e3f=_0x317cc4;const _0x3e5e75={'eventID':_0x2f29ed['LIVESHARE_FETCH_OPERATIONS']};this[_0x453e3f(0x245)][_0x453e3f(0x27f)](_0x3e5e75,this[_0x453e3f(0x274)]);}['_handleTerminate'](){var _0x1c9174=_0x317cc4;this[_0x1c9174(0x25c)]=null,this[_0x1c9174(0x206)]!=='presenting'&&this[_0x1c9174(0x25d)]();}[_0x317cc4(0x26d)](_0x1d3829){var _0x3e838d=_0x317cc4;if(this[_0x3e838d(0x206)]===_0x3e838d(0x297)&&this['_presenter']===_0x1d3829[_0x3e838d(0x248)][_0x3e838d(0x1fc)]){const _0x54a95f=_0x13f9cc(_0x1d3829[_0x3e838d(0x248)])[_0x3e838d(0x22c)]['reverse']()[_0x3e838d(0x216)](_0x3fb685=>_0x3fb685['id']===_0x15acd4['id']);if(_0x54a95f){const _0x3ffaf3=_0x54a95f['params'][_0x3e838d(0x280)],_0x3861a1=_0x54a95f[_0x3e838d(0x296)]['sheet']['id'];setTimeout(()=>{var _0x2f50c0=_0x3e838d;this[_0x2f50c0(0x244)][_0x2f50c0(0x24e)](_0x34abf8['id'],{'unitId':_0x3ffaf3,'subUnitId':_0x3861a1},{'fromCollab':!0x0});});}}}[_0x317cc4(0x20d)](){var _0x440869=_0x317cc4;this[_0x440869(0x239)][_0x440869(0x25b)]('presenting');const _0x1e16ab=new Map(),_0x1d7efe=this['_commandDisposable']=new _0x5d76a4();_0x1d7efe[_0x440869(0x24a)](_0x1750b3(()=>{var _0x44cc42=_0x440869;_0x1e16ab[_0x44cc42(0x2a0)](_0x476daf=>_0x476daf[_0x44cc42(0x24d)]()),_0x1e16ab[_0x44cc42(0x2a2)]();})),_0x1d7efe['add'](this[_0x440869(0x244)]['onCommandExecuted'](_0x3a6da4=>{var _0x1d24ef=_0x440869,_0x209416;if(_0x3a6da4[_0x1d24ef(0x20b)]!==_0x1cd9a0[_0x1d24ef(0x1f7)]||!this[_0x1d24ef(0x232)]['shouldShareOperation'](_0x3a6da4['id']))return;const {id:_0x24424c}=_0x3a6da4;let _0x7dac48;_0x1e16ab[_0x1d24ef(0x270)](_0x24424c)?_0x7dac48=_0x1e16ab[_0x1d24ef(0x249)](_0x24424c):(_0x7dac48=new _0x2d0f0f(),_0x1e16ab['set'](_0x24424c,_0x7dac48),_0x7dac48[_0x1d24ef(0x1ff)](_0x16037d((_0x209416=this[_0x1d24ef(0x28c)][_0x1d24ef(0x242)](Pe))!=null?_0x209416:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x366b6b=>{var _0x51b633=_0x1d24ef;this[_0x51b633(0x245)][_0x51b633(0x27f)]({'eventID':_0x2f29ed[_0x51b633(0x221)],'data':{'unitID':this[_0x51b633(0x274)],'operations':{[_0x366b6b['id']]:{'id':_0x366b6b['id'],'params':JSON[_0x51b633(0x28e)](_0x366b6b[_0x51b633(0x296)])}}}},this['_unitID']);})),_0x7dac48[_0x1d24ef(0x25b)](_0x3a6da4);})),this[_0x440869(0x232)][_0x440869(0x1fe)](this[_0x440869(0x274)])[_0x440869(0x2a0)](_0x5d180a=>this[_0x440869(0x245)][_0x440869(0x27f)]({'eventID':_0x2f29ed[_0x440869(0x221)],'data':{'unitID':this['_unitID'],'operations':{[_0x5d180a['id']]:{'id':_0x5d180a['id'],'params':JSON[_0x440869(0x28e)](_0x5d180a[_0x440869(0x296)])}}}},this[_0x440869(0x274)]));}['_stopPresenting'](){var _0x5e133c=_0x317cc4,_0x578793;this[_0x5e133c(0x239)][_0x5e133c(0x25b)](_0x5e133c(0x231)),(_0x578793=this[_0x5e133c(0x25f)])==null||_0x578793[_0x5e133c(0x262)](),this[_0x5e133c(0x25f)]=null;}[_0x317cc4(0x1f3)](){var _0x3f40fa=_0x317cc4,_0x2c9f63;(_0x2c9f63=this[_0x3f40fa(0x25f)])==null||_0x2c9f63['dispose'](),this['_status$'][_0x3f40fa(0x25b)](_0x3f40fa(0x297));}[_0x317cc4(0x25d)](){var _0x243554=_0x317cc4,_0x4f25a7;this[_0x243554(0x239)]['next'](_0x243554(0x231)),(_0x4f25a7=this[_0x243554(0x25f)])==null||_0x4f25a7[_0x243554(0x262)](),this[_0x243554(0x25f)]=null;}[_0x317cc4(0x298)](){var _0x200844=_0x317cc4,_0x1794db;this[_0x200844(0x239)]['next'](_0x200844(0x1fa)),(_0x1794db=this['_commandDisposable'])==null||_0x1794db['dispose']();}[_0x317cc4(0x219)](_0x462795){var _0x356dea=_0x317cc4;if([_0x356dea(0x264),_0x356dea(0x1fa),_0x356dea(0x29d)][_0x356dea(0x26c)](this['_status'])||!_0x462795[_0x356dea(0x248)][_0x356dea(0x238)]||_0x462795[_0x356dea(0x248)]['presenter']===this['_collabSession'][_0x356dea(0x210)]())return;this[_0x356dea(0x206)]==='idle'&&this[_0x356dea(0x1f3)]();const _0x3712c9=_0x462795['data']['operations'];Object[_0x356dea(0x29b)](_0x3712c9)[_0x356dea(0x2a0)](_0x2fab1f=>{var _0x355a5f=_0x356dea;this[_0x355a5f(0x244)]['executeCommand'](_0x2fab1f['id'],_0x2fab1f[_0x355a5f(0x296)]?JSON[_0x355a5f(0x285)](_0x2fab1f[_0x355a5f(0x296)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x556308=_0x317cc4,_0x174270;this['_status$']['next'](_0x556308(0x29d)),(_0x174270=this['_commandDisposable'])==null||_0x174270[_0x556308(0x262)]();}[_0x317cc4(0x21c)](){var _0x34cd18=_0x317cc4;this[_0x34cd18(0x239)]['next'](_0x34cd18(0x231)),this[_0x34cd18(0x2a1)]();}};w=Z([f(0x2,_0x58ab73),f(0x3,_0x3973f8(L)),f(0x4,_0x358665)],w);function Te(){var _0x229741=_0x317cc4;const _0x2da1cc=_0x13cf3c(I),_0x120597=_0x13cf3c(_0x4d6e57),_0x116e02=_0x3d804b(()=>_0x120597[_0x229741(0x29f)](_0x5ada5c[_0x229741(0x226)]),void 0x0,!0x1,[]),[_0x5a6a6f,_0x5fa7a8]=_0x1fab71(null),[_0x283ebc,_0x29aa7a]=_0x1fab71(h[_0x229741(0x225)]),_0xd54d2e=_0xa2b4b4(null);return _0x28befb(()=>(_0x116e02&&_0x2da1cc['getLiveShareCoordinator'](_0x116e02[_0x229741(0x26e)]())[_0x229741(0x263)](_0x1bfb58=>{var _0x16a118=_0x229741;_0x5fa7a8(_0x1bfb58),_0xd54d2e[_0x16a118(0x2a7)]=_0x1bfb58[_0x16a118(0x21f)][_0x16a118(0x23c)](_0x133c13=>{_0x29aa7a(_0x133c13);});}),()=>{var _0x522014=_0x229741,_0x3a4593;(_0x3a4593=_0xd54d2e[_0x522014(0x2a7)])==null||_0x3a4593[_0x522014(0x20e)](),_0xd54d2e['current']=null;}),[_0x116e02,_0x2da1cc]),_0x5a6a6f?_0x5e0980(_0xd3e1d7,{'align':_0x229741(0x1f4),'disabled':_0x283ebc===h[_0x229741(0x29e)],'className':_0x229741(0x207),'overlay':_0x5e0980($e,{'status':_0x283ebc,'coordinator':_0x5a6a6f}),'children':_0x5e0980(_0x229741(0x1f9),{'className':_0x204084(_0x229741(0x286),{'univer-cursor-not-allowed':_0x283ebc===h[_0x229741(0x29e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x283ebc!==h[_0x229741(0x29e)]}),'type':_0x229741(0x1f9),'children':_0x5e0980(B,{'className':_0x229741(0x228)})})}):null;}function $e(_0x92ce41){var _0x5bde97=_0x317cc4;const {status:_0x2c27f9,coordinator:_0x32fac7}=_0x92ce41;switch(_0x2c27f9){case h[_0x5bde97(0x225)]:return _0x5e0980(Fe,{'coordinator':_0x32fac7});case h['FOLLOWING']:return _0x5e0980(He,{'coordinator':_0x32fac7});case h['NOT_FOLLOWING']:return _0x5e0980(je,{'coordinator':_0x32fac7});case h[_0x5bde97(0x29e)]:return _0x5e0980(Ve,{});case h[_0x5bde97(0x278)]:return _0x5e0980(Ue,{'coordinator':_0x32fac7});default:return null;}}function Fe(_0x5c6cf6){var _0x42fb34=_0x317cc4;const {coordinator:_0x287c55}=_0x5c6cf6;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x42fb34(0x255),{'className':_0x42fb34(0x222),'children':_0x42fb34(0x205)}),_0x5e0980(_0x1e8eb3,{'onClick':()=>_0x287c55['tryStartPresenting'](),'children':'Start'})]});}function He(_0xf55d98){var _0xacef20=_0x317cc4;const {coordinator:_0x29d1c3}=_0xf55d98;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980('div',{'className':_0xacef20(0x222),'children':_0xacef20(0x209)}),_0x5e0980(_0x1e8eb3,{'onClick':()=>_0x29d1c3['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x305996){var _0x334509=_0x317cc4;const {coordinator:_0x1ab22e}=_0x305996;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x334509(0x255),{'className':_0x334509(0x222),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x5e0980(_0x1e8eb3,{'variant':_0x334509(0x276),'onClick':()=>_0x1ab22e['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x40fa85){var _0x595a72=_0x317cc4;const {coordinator:_0x3bdb62}=_0x40fa85;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x595a72(0x255),{'className':_0x595a72(0x222),'children':_0x595a72(0x251)}),_0x5e0980(_0x1e8eb3,{'variant':_0x595a72(0x240),'onClick':()=>_0x3bdb62[_0x595a72(0x224)](),'children':_0x595a72(0x268)})]});}function _0x121d(_0x3ea700,_0x21dfc0){var _0x435208=_0x4352();return _0x121d=function(_0x121d69,_0x121d46){_0x121d69=_0x121d69-0x1f3;var _0x23ec5c=_0x435208[_0x121d69];return _0x23ec5c;},_0x121d(_0x3ea700,_0x21dfc0);}function Ve(){var _0x702579=_0x317cc4;return _0x5e0980(_0x4fb342,{'children':_0x702579(0x25a)});}var Me=Object[_0x317cc4(0x29c)],ke=(_0x4cc53e,_0x178e97,_0x4569f7,_0x149eb6)=>{var _0x449a93=_0x317cc4;for(var _0x5357e1=_0x149eb6>0x1?void 0x0:_0x149eb6?Me(_0x178e97,_0x4569f7):_0x178e97,_0x203dbf=_0x4cc53e[_0x449a93(0x21d)]-0x1,_0x18a9e1;_0x203dbf>=0x0;_0x203dbf--)(_0x18a9e1=_0x4cc53e[_0x203dbf])&&(_0x5357e1=_0x18a9e1(_0x5357e1)||_0x5357e1);return _0x5357e1;},$=(_0x203eee,_0x225775)=>(_0x466659,_0x549bea)=>_0x225775(_0x466659,_0x549bea,_0x203eee);let b=class extends _0x28b745{constructor(_0x218bbd,_0x3ca833){var _0x490b13=_0x317cc4;super(),this['_injector']=_0x218bbd,this[_0x490b13(0x24f)]=_0x3ca833,this[_0x490b13(0x217)]();}['_mountLiveShare'](){var _0x1c0c48=_0x317cc4;this[_0x1c0c48(0x27c)](this['_uiPartsService'][_0x1c0c48(0x284)](_0x189589[_0x1c0c48(0x24c)],()=>_0x222fb3(Te,this[_0x1c0c48(0x218)])));}};b=ke([$(0x0,_0x3973f8(_0x44f59d)),$(0x1,_0x4a839a)],b);var Ge=Object[_0x317cc4(0x28d)],We=Object[_0x317cc4(0x29c)],Ye=(_0x6d7a45,_0x5dddb7,_0x297d92)=>_0x5dddb7 in _0x6d7a45?Ge(_0x6d7a45,_0x5dddb7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x297d92}):_0x6d7a45[_0x5dddb7]=_0x297d92,Be=(_0x2a076e,_0x39caf3,_0x3b92db,_0x52a548)=>{for(var _0x58079e=_0x52a548>0x1?void 0x0:_0x52a548?We(_0x39caf3,_0x3b92db):_0x39caf3,_0x3c84be=_0x2a076e['length']-0x1,_0x262ee8;_0x3c84be>=0x0;_0x3c84be--)(_0x262ee8=_0x2a076e[_0x3c84be])&&(_0x58079e=_0x262ee8(_0x58079e)||_0x58079e);return _0x58079e;},F=(_0x9a5a21,_0x45c024)=>(_0x4f93c8,_0x407735)=>_0x45c024(_0x4f93c8,_0x407735,_0x9a5a21),J=(_0x4d41f4,_0x899a54,_0x460cb3)=>Ye(_0x4d41f4,typeof _0x899a54!=_0x317cc4(0x230)?_0x899a54+'':_0x899a54,_0x460cb3);const Ze=_0x317cc4(0x273);let O=class extends _0x5cb41f{constructor(_0x234ab1=T,_0x443547,_0x330d69){var _0x255c06=_0x317cc4;super(),this[_0x255c06(0x247)]=_0x234ab1,this[_0x255c06(0x218)]=_0x443547,this['_configService']=_0x330d69;const {..._0x26b14a}=_0x43e9f6({},T,this[_0x255c06(0x247)]);this[_0x255c06(0x28c)]['setConfig'](Oe,_0x26b14a);}['onStarting'](){var _0x592c44=_0x317cc4;_0x10add6(this['_injector'],_0x2908f4([[L],[I],[m],[b]],this[_0x592c44(0x247)][_0x592c44(0x294)])),_0x21ed85(this[_0x592c44(0x218)],[[m]]);}[_0x317cc4(0x269)](){_0x21ed85(this['_injector'],[[b]]);}};J(O,_0x317cc4(0x20b),_0x5ada5c[_0x317cc4(0x20c)]),J(O,_0x317cc4(0x26a),Ze),O=Be([_0x17a14e(_0x7a3857),F(0x1,_0x3973f8(_0x44f59d)),F(0x2,_0x58ab73)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x2a0f2a=_0x1c4f;(function(_0x5f0a4e,_0xddb148){var _0x469746=_0x1c4f,_0x1bfa3d=_0x5f0a4e();while(!![]){try{var _0x88fdf4=-parseInt(_0x469746(0x186))/0x1+parseInt(_0x469746(0x223))/0x2+parseInt(_0x469746(0x1bc))/0x3+-parseInt(_0x469746(0x216))/0x4+parseInt(_0x469746(0x21c))/0x5*(-parseInt(_0x469746(0x178))/0x6)+parseInt(_0x469746(0x1ce))/0x7+parseInt(_0x469746(0x1fb))/0x8;if(_0x88fdf4===_0xddb148)break;else _0x1bfa3d['push'](_0x1bfa3d['shift']());}catch(_0x1ab257){_0x1bfa3d['push'](_0x1bfa3d['shift']());}}}(_0x2677,0x9e744));var q=Object['defineProperty'],z=(_0x71726f,_0x613047,_0x47626e)=>_0x613047 in _0x71726f?q(_0x71726f,_0x613047,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47626e}):_0x71726f[_0x613047]=_0x47626e,d=(_0x35722d,_0x3eb878,_0x405534)=>z(_0x35722d,typeof _0x3eb878!=_0x2a0f2a(0x1e6)?_0x3eb878+'':_0x3eb878,_0x405534);import{CollaborationSessionService as _0x139eaf,SessionStatus as _0x511ef6,UniverCollaborationClientPlugin as _0x2cf583}from'@univerjs-pro/collaboration-client';import{Disposable as _0x56d91a,toDisposable as _0x3ea5b0,Inject as _0x459502,IUniverInstanceService as _0x560e40,Injector as _0x511763,IConfigService as _0x2e77bf,ICommandService as _0x22ff36,RxDisposable as _0x2773af,UniverInstanceType as _0x43f478,DisposableCollection as _0x31b05b,CommandType as _0x53a8fc,DependentOn as _0x2ecbb5,Plugin as _0x36cf9c,merge as _0x2a8c98,registerDependencies as _0x123d95,mergeOverrideWithDependencies as _0x4f628e,touchDependencies as _0x2d4a9e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x56cadf,InsertSheetMutation as _0x18edf1}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x236b5e,SetScrollOperation as _0x4e40a1}from'@univerjs/sheets-ui';import{useDependency as _0x3e135f,useObservable as _0x1d56b5,IUIPartsService as _0xf8ae92,BuiltInUIPart as _0xba4be9,connectInjector as _0x57f19d}from'@univerjs/ui';import{jsx as _0x430726,jsxs as _0x2b0221,Fragment as _0x114633}from'react/jsx-runtime';import{Dropdown as _0x1f1fbe,clsx as _0x285d7d,Button as _0x46f48e}from'@univerjs/design';import{forwardRef as _0x4e0fc8,useRef as _0xba99eb,createElement as _0x216e9d,useState as _0x216df8,useEffect as _0x245dda}from'react';import{CollaborationEvent as _0x4c2295,parseProtocolChangeset as _0x5217ed}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x4f5984,Subject as _0x5ef0c0}from'rxjs';import{takeUntil as _0x31d1f6,throttleTime as _0x2ea41b}from'rxjs/operators';const Oe=_0x2a0f2a(0x205),T={};class L extends _0x56d91a{constructor(){var _0x33d36e=_0x2a0f2a;super(...arguments),d(this,_0x33d36e(0x184),new Set()),d(this,_0x33d36e(0x187),new Set());}[_0x2a0f2a(0x1ed)](_0x215604){var _0x356f00=_0x2a0f2a;return this[_0x356f00(0x184)][_0x356f00(0x196)](_0x215604),_0x3ea5b0(()=>this['_sharedOperations'][_0x356f00(0x1ad)](_0x215604));}['registerInitialStateReporter'](_0x2b751f){return this['_reporters']['add'](_0x2b751f),_0x3ea5b0(()=>this['_reporters']['delete'](_0x2b751f));}[_0x2a0f2a(0x1b9)](_0x53b27c){var _0x4a3a32=_0x2a0f2a;return this[_0x4a3a32(0x184)][_0x4a3a32(0x18b)](_0x53b27c);}['getInitialStates'](_0x4d27f3){var _0x3ad593=_0x2a0f2a;return Array[_0x3ad593(0x183)](this['_reporters'])['map'](_0x5477ac=>_0x5477ac(_0x4d27f3));}}var Ee=Object[_0x2a0f2a(0x1ef)],Ce=(_0x4001dd,_0x42eb55,_0x1eebd0,_0xf7aeeb)=>{var _0x17af7b=_0x2a0f2a;for(var _0x2f99d4=_0xf7aeeb>0x1?void 0x0:_0xf7aeeb?Ee(_0x42eb55,_0x1eebd0):_0x42eb55,_0x3a22af=_0x4001dd[_0x17af7b(0x1e2)]-0x1,_0x490658;_0x3a22af>=0x0;_0x3a22af--)(_0x490658=_0x4001dd[_0x3a22af])&&(_0x2f99d4=_0x490658(_0x2f99d4)||_0x2f99d4);return _0x2f99d4;},Ne=(_0xf5d60e,_0x20bce6)=>(_0x1d54fa,_0x230642)=>_0x20bce6(_0x1d54fa,_0x230642,_0xf5d60e);let m=class extends _0x56d91a{constructor(_0x2e9499){var _0x71e7e5=_0x2a0f2a;super(),this['_liveShareService']=_0x2e9499,this[_0x71e7e5(0x1b6)]();}[_0x2a0f2a(0x1b6)](){[_0x236b5e['id'],_0x4e40a1['id'],_0x56cadf['id']]['forEach'](_0x39d97e=>{var _0x16ebaf=_0x1c4f;this['disposeWithMe'](this[_0x16ebaf(0x19f)][_0x16ebaf(0x1ed)](_0x39d97e));});}};m=Ce([Ne(0x0,_0x459502(L))],m);var c=function(){var _0x691001=_0x2a0f2a;return c=Object[_0x691001(0x21d)]||function(_0x5e32e4){var _0x4cdf4a=_0x691001;for(var _0xdaa6f3,_0x1caf9d=0x1,_0x59d549=arguments[_0x4cdf4a(0x1e2)];_0x1caf9d<_0x59d549;_0x1caf9d++){_0xdaa6f3=arguments[_0x1caf9d];for(var _0x189455 in _0xdaa6f3)Object[_0x4cdf4a(0x1a0)]['hasOwnProperty'][_0x4cdf4a(0x175)](_0xdaa6f3,_0x189455)&&(_0x5e32e4[_0x189455]=_0xdaa6f3[_0x189455]);}return _0x5e32e4;},c[_0x691001(0x1e8)](this,arguments);},we=function(_0x10c2c8,_0x3f7e1a){var _0x437ecd=_0x2a0f2a,_0x39fc14={};for(var _0x4720c3 in _0x10c2c8)Object[_0x437ecd(0x1a0)][_0x437ecd(0x18d)][_0x437ecd(0x175)](_0x10c2c8,_0x4720c3)&&_0x3f7e1a[_0x437ecd(0x18a)](_0x4720c3)<0x0&&(_0x39fc14[_0x4720c3]=_0x10c2c8[_0x4720c3]);if(_0x10c2c8!=null&&typeof Object[_0x437ecd(0x1cb)]=='function'){for(var _0x134b13=0x0,_0x4720c3=Object['getOwnPropertySymbols'](_0x10c2c8);_0x134b13<_0x4720c3[_0x437ecd(0x1e2)];_0x134b13++)_0x3f7e1a[_0x437ecd(0x18a)](_0x4720c3[_0x134b13])<0x0&&Object[_0x437ecd(0x1a0)][_0x437ecd(0x1e9)][_0x437ecd(0x175)](_0x10c2c8,_0x4720c3[_0x134b13])&&(_0x39fc14[_0x4720c3[_0x134b13]]=_0x10c2c8[_0x4720c3[_0x134b13]]);}return _0x39fc14;},W=_0x4e0fc8(function(_0x380565,_0x224b02){var _0x394fb5=_0x2a0f2a,_0x40daa6=_0x380565[_0x394fb5(0x1ec)],_0x243046=_0x380565['id'],_0x31ed57=_0x380565[_0x394fb5(0x1dc)],_0x2211ab=_0x380565[_0x394fb5(0x1f8)],_0x17b0db=we(_0x380565,[_0x394fb5(0x1ec),'id',_0x394fb5(0x1dc),_0x394fb5(0x1f8)]),_0x203233=_0x394fb5(0x1d9)[_0x394fb5(0x208)](_0x243046,'\x20')[_0x394fb5(0x208)](_0x31ed57||'')[_0x394fb5(0x17a)](),_0x366822=_0xba99eb('_'[_0x394fb5(0x208)](Le()));return Y(_0x40daa6,''[_0x394fb5(0x208)](_0x243046),{'defIds':_0x40daa6[_0x394fb5(0x20d)],'idSuffix':_0x366822['current']},c({'ref':_0x224b02,'className':_0x203233},_0x17b0db),_0x2211ab);});function Y(_0x4e3849,_0xc6506,_0x5da265,_0x187970,_0x4deec8){var _0x327db8=_0x2a0f2a;return _0x216e9d(_0x4e3849[_0x327db8(0x1a8)],c(c({'key':_0xc6506},De(_0x4e3849,_0x5da265,_0x4deec8)),_0x187970),(xe(_0x4e3849,_0x5da265)[_0x327db8(0x1b0)]||[])['map'](function(_0x1372b5,_0x48514a){var _0x119d1e=_0x327db8;return Y(_0x1372b5,''[_0x119d1e(0x208)](_0xc6506,'-')[_0x119d1e(0x208)](_0x4e3849['tag'],'-')[_0x119d1e(0x208)](_0x48514a),_0x5da265,void 0x0,_0x4deec8);}));}function De(_0x4f6fa1,_0x1dbbfd,_0x4cab33){var _0x5a51bf=_0x2a0f2a,_0x3f8a37=c({},_0x4f6fa1[_0x5a51bf(0x1b4)]);_0x4cab33!=null&&_0x4cab33[_0x5a51bf(0x1d3)]&&_0x3f8a37[_0x5a51bf(0x218)]===_0x5a51bf(0x1d3)&&(_0x3f8a37[_0x5a51bf(0x218)]=_0x4cab33[_0x5a51bf(0x1d3)]),_0x4f6fa1['tag']===_0x5a51bf(0x181)&&_0x3f8a37['id']&&(_0x3f8a37['id']=_0x3f8a37['id']+_0x1dbbfd[_0x5a51bf(0x1b1)]),Object[_0x5a51bf(0x1a3)](_0x3f8a37)[_0x5a51bf(0x20f)](function(_0x23d6ee){var _0x5c8e7b=_0x5a51bf,_0x1a0220=_0x23d6ee[0x0],_0x489556=_0x23d6ee[0x1];_0x1a0220===_0x5c8e7b(0x181)&&typeof _0x489556=='string'&&(_0x3f8a37[_0x1a0220]=_0x489556[_0x5c8e7b(0x1f4)](/url\(#(.*)\)/,'url(#$1'[_0x5c8e7b(0x208)](_0x1dbbfd[_0x5c8e7b(0x1b1)],')')));});var _0x23c14=_0x1dbbfd[_0x5a51bf(0x20d)];return!_0x23c14||_0x23c14['length']===0x0||(_0x4f6fa1[_0x5a51bf(0x1a8)]===_0x5a51bf(0x174)&&_0x3f8a37['xlink:href']&&(_0x3f8a37['xlink:href']=_0x3f8a37[_0x5a51bf(0x1a5)]+_0x1dbbfd[_0x5a51bf(0x1b1)]),Object[_0x5a51bf(0x1a3)](_0x3f8a37)[_0x5a51bf(0x20f)](function(_0x4aeb54){var _0x12b600=_0x5a51bf,_0x2543d2=_0x4aeb54[0x0],_0x43488c=_0x4aeb54[0x1];typeof _0x43488c==_0x12b600(0x1dd)&&(_0x3f8a37[_0x2543d2]=_0x43488c[_0x12b600(0x1f4)](/url\(#(.*)\)/,_0x12b600(0x1b5)[_0x12b600(0x208)](_0x1dbbfd[_0x12b600(0x1b1)],')')));})),_0x3f8a37;}function xe(_0x29a139,_0x5052f5){var _0x3e8e57=_0x2a0f2a,_0x17b817,_0x46a30d=_0x5052f5[_0x3e8e57(0x20d)];return!_0x46a30d||_0x46a30d[_0x3e8e57(0x1e2)]===0x0?_0x29a139:_0x29a139[_0x3e8e57(0x1a8)]===_0x3e8e57(0x18c)&&(!((_0x17b817=_0x29a139[_0x3e8e57(0x1b0)])===null||_0x17b817===void 0x0)&&_0x17b817['length'])?c(c({},_0x29a139),{'children':_0x29a139[_0x3e8e57(0x1b0)]['map'](function(_0xce47ed){var _0x3a2a29=_0x3e8e57;return typeof _0xce47ed[_0x3a2a29(0x1b4)]['id']==_0x3a2a29(0x1dd)&&_0x46a30d&&_0x46a30d[_0x3a2a29(0x18a)](_0xce47ed[_0x3a2a29(0x1b4)]['id'])>-0x1?c(c({},_0xce47ed),{'attrs':c(c({},_0xce47ed[_0x3a2a29(0x1b4)]),{'id':_0xce47ed[_0x3a2a29(0x1b4)]['id']+_0x5052f5[_0x3a2a29(0x1b1)]})}):_0xce47ed;})}):_0x29a139;}function Le(){var _0x2a9c00=_0x2a0f2a;return Math[_0x2a9c00(0x1ac)]()[_0x2a9c00(0x1d4)](0x24)[_0x2a9c00(0x215)](0x2,0x8);}W[_0x2a0f2a(0x1e4)]=_0x2a0f2a(0x1d1);var ye={'tag':_0x2a0f2a(0x1d6),'attrs':{'fill':_0x2a0f2a(0x1e0),'viewBox':_0x2a0f2a(0x1c3),'width':'1em','height':_0x2a0f2a(0x190)},'children':[{'tag':_0x2a0f2a(0x1cc),'attrs':{'fill':_0x2a0f2a(0x1f9),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':'path','attrs':{'fill':_0x2a0f2a(0x1f9),'d':_0x2a0f2a(0x189),'fillRule':_0x2a0f2a(0x21f),'clipRule':_0x2a0f2a(0x21f)}}]},B=_0x4e0fc8(function(_0x1d6b22,_0x193f10){var _0x43ac9d=_0x2a0f2a;return _0x216e9d(W,Object[_0x43ac9d(0x21d)]({},_0x1d6b22,{'id':_0x43ac9d(0x1ff),'ref':_0x193f10,'icon':ye}));});B['displayName']='LiveShareSingle';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x4ebed0,_0x2a5db7,_0x138018,_0x1605d5)=>{var _0x39caec=_0x2a0f2a;for(var _0x3dbed8=_0x1605d5>0x1?void 0x0:_0x1605d5?Re(_0x2a5db7,_0x138018):_0x2a5db7,_0x1af66d=_0x4ebed0[_0x39caec(0x1e2)]-0x1,_0x3a2c18;_0x1af66d>=0x0;_0x1af66d--)(_0x3a2c18=_0x4ebed0[_0x1af66d])&&(_0x3dbed8=_0x3a2c18(_0x3dbed8)||_0x3dbed8);return _0x3dbed8;},f=(_0x4d06cc,_0x46eae0)=>(_0x4206a4,_0x2e663b)=>_0x46eae0(_0x4206a4,_0x2e663b,_0x4d06cc);let I=class extends _0x2773af{constructor(_0x3270dd,_0x433c2b,_0x3ab648){var _0x5ca8be=_0x2a0f2a;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3270dd,this[_0x5ca8be(0x201)]=_0x433c2b,this[_0x5ca8be(0x1fc)]=_0x3ab648,this[_0x5ca8be(0x1b6)]());}async['getLiveShareCoordinator'](_0x41c42d){var _0x40a477=_0x2a0f2a;return this[_0x40a477(0x192)][_0x40a477(0x18b)](_0x41c42d)||await this[_0x40a477(0x1fd)](_0x41c42d),this[_0x40a477(0x192)][_0x40a477(0x222)](_0x41c42d);}[_0x2a0f2a(0x1b6)](){var _0x2423a0=_0x2a0f2a;this[_0x2423a0(0x191)][_0x2423a0(0x1d5)](_0x43f478[_0x2423a0(0x1a9)])[_0x2423a0(0x204)](_0x31d1f6(this[_0x2423a0(0x1d0)]))['subscribe'](async _0x115fc8=>{var _0x1a6f31=_0x2423a0;const _0x1c1e12=_0x115fc8[_0x1a6f31(0x176)]();this[_0x1a6f31(0x192)]['has'](_0x1c1e12)||this[_0x1a6f31(0x1fd)](_0x1c1e12);}),this['_univerInstanceService'][_0x2423a0(0x1e5)](_0x43f478[_0x2423a0(0x1a9)])['pipe'](_0x31d1f6(this[_0x2423a0(0x1d0)]))[_0x2423a0(0x1c8)](_0x41085c=>{var _0xb336f2=_0x2423a0;const _0x104a96=_0x41085c['getUnitId'](),_0x829d45=this[_0xb336f2(0x192)][_0xb336f2(0x222)](_0x104a96);_0x829d45==null||_0x829d45[_0xb336f2(0x17c)]();});}async[_0x2a0f2a(0x1fd)](_0x527381){var _0x3705c8=_0x2a0f2a;const _0x5b53a0=await this['_collabSessionService']['requireSession'](_0x527381),_0x125e20=this[_0x3705c8(0x201)]['createInstance'](w,_0x527381,_0x5b53a0);return _0x125e20[_0x3705c8(0x1c5)](),this['_entities'][_0x3705c8(0x20c)](_0x527381,_0x125e20),_0x125e20;}};I=Z([f(0x0,_0x560e40),f(0x1,_0x459502(_0x511763)),f(0x2,_0x459502(_0x139eaf))],I);var h=(_0x108c59=>(_0x108c59[_0x2a0f2a(0x1bb)]=_0x2a0f2a(0x180),_0x108c59['IDLE']=_0x2a0f2a(0x1a1),_0x108c59[_0x2a0f2a(0x1be)]=_0x2a0f2a(0x1ba),_0x108c59['NOT_FOLLOWING']=_0x2a0f2a(0x1b7),_0x108c59[_0x2a0f2a(0x1ee)]=_0x2a0f2a(0x1f5),_0x108c59))(h||{});const Pe=_0x2a0f2a(0x18f),Ae=0xc8;let w=class extends _0x2773af{constructor(_0x4a70b2,_0x1cd2d6,_0x38f627,_0x6747b9,_0x42f5a5){var _0x356b61=_0x2a0f2a;super(),d(this,_0x356b61(0x224),new _0x4f5984(_0x356b61(0x1a1))),d(this,'status$',this['_status$'][_0x356b61(0x193)]()),d(this,_0x356b61(0x1b6),!0x1),d(this,'_commandDisposable',null),d(this,_0x356b61(0x19b),null),(this['_unitID']=_0x4a70b2,this['_collabSession']=_0x1cd2d6,this['_configService']=_0x38f627,this[_0x356b61(0x19f)]=_0x6747b9,this[_0x356b61(0x1c0)]=_0x42f5a5);}get[_0x2a0f2a(0x203)](){var _0x367dca=_0x2a0f2a;return this[_0x367dca(0x224)][_0x367dca(0x1da)]();}[_0x2a0f2a(0x17c)](){var _0x55fdf5=_0x2a0f2a,_0x55b3c9;(_0x55b3c9=this[_0x55fdf5(0x1cf)])==null||_0x55b3c9[_0x55fdf5(0x17c)](),this[_0x55fdf5(0x224)]['next']('idle'),this[_0x55fdf5(0x224)][_0x55fdf5(0x1fa)]();}['init'](){var _0x15d87a=_0x2a0f2a;this['_init']||(this[_0x15d87a(0x1b6)]=!0x0,this[_0x15d87a(0x1cd)][_0x15d87a(0x17e)][_0x15d87a(0x204)](_0x31d1f6(this[_0x15d87a(0x1d0)]))['subscribe'](_0x305799=>{var _0x166441=_0x15d87a;switch(_0x305799){case _0x511ef6[_0x166441(0x1bb)]:this[_0x166441(0x188)]();break;case _0x511ef6['ONLINE']:this[_0x166441(0x1af)]();break;}}),this['_collabSession'][_0x15d87a(0x195)][_0x15d87a(0x204)](_0x31d1f6(this[_0x15d87a(0x1d0)]))[_0x15d87a(0x1c8)](_0x2fc1f7=>{var _0x2a22b7=_0x15d87a;const {eventID:_0x3517c0}=_0x2fc1f7;switch(_0x3517c0){case _0x4c2295[_0x2a22b7(0x182)]:this[_0x2a22b7(0x212)](_0x2fc1f7);break;case _0x4c2295['LIVESHARE_OPERATION']:this[_0x2a22b7(0x1c7)](_0x2fc1f7);break;case _0x4c2295['LIVESHARE_TERMINATE']:this[_0x2a22b7(0x1a7)]();break;case _0x4c2295[_0x2a22b7(0x21e)]:this[_0x2a22b7(0x185)](_0x2fc1f7);break;}}));}[_0x2a0f2a(0x19a)](){var _0x1ed016=_0x2a0f2a;this['_collabSession'][_0x1ed016(0x173)]({'eventID':_0x4c2295[_0x1ed016(0x19e)],'data':{'unitID':this[_0x1ed016(0x179)],'userID':this[_0x1ed016(0x1cd)][_0x1ed016(0x17b)]()}},this[_0x1ed016(0x179)]);}[_0x2a0f2a(0x20e)](){var _0x480d6b=_0x2a0f2a;this[_0x480d6b(0x203)]==='presenting'&&(this[_0x480d6b(0x224)][_0x480d6b(0x1a2)](_0x480d6b(0x1a1)),this[_0x480d6b(0x1cd)]['send']({'eventID':_0x4c2295[_0x480d6b(0x1e3)],'data':{'unitID':this[_0x480d6b(0x179)]}},this['_unitID']));}[_0x2a0f2a(0x199)](){var _0x18b58d=_0x2a0f2a;this['_status']===_0x18b58d(0x1b7)&&(this[_0x18b58d(0x224)][_0x18b58d(0x1a2)](_0x18b58d(0x1ba)),this[_0x18b58d(0x1c1)]());}[_0x2a0f2a(0x210)](){var _0x346a6f=_0x2a0f2a;this[_0x346a6f(0x203)]===_0x346a6f(0x1ba)&&this[_0x346a6f(0x1f0)]();}[_0x2a0f2a(0x212)](_0xdec379){var _0x52bea8=_0x2a0f2a;const {presenter:_0x4608f7}=_0xdec379[_0x52bea8(0x1f1)],_0x430298=this[_0x52bea8(0x1cd)][_0x52bea8(0x17b)]();this[_0x52bea8(0x19b)]=_0x4608f7,_0x4608f7===_0x430298?(this['_stopFollowing'](),this[_0x52bea8(0x18e)]()):this[_0x52bea8(0x203)]!==_0x52bea8(0x1b7)&&(this[_0x52bea8(0x21a)](),this[_0x52bea8(0x1c1)]());}[_0x2a0f2a(0x209)](){var _0x21296b=_0x2a0f2a;const _0x10e00c={'eventID':_0x4c2295[_0x21296b(0x1d8)]};this[_0x21296b(0x1cd)][_0x21296b(0x173)](_0x10e00c,this[_0x21296b(0x179)]);}['_handleTerminate'](){var _0x4002fa=_0x2a0f2a;this[_0x4002fa(0x19b)]=null,this[_0x4002fa(0x203)]!==_0x4002fa(0x1f5)&&this['_beIdle']();}[_0x2a0f2a(0x185)](_0x3af917){var _0x34fd8a=_0x2a0f2a;if(this[_0x34fd8a(0x203)]===_0x34fd8a(0x1ba)&&this[_0x34fd8a(0x19b)]===_0x3af917[_0x34fd8a(0x1f1)][_0x34fd8a(0x17d)]){const _0x3e82f9=_0x5217ed(_0x3af917[_0x34fd8a(0x1f1)])[_0x34fd8a(0x206)][_0x34fd8a(0x219)]()[_0x34fd8a(0x1df)](_0x321758=>_0x321758['id']===_0x18edf1['id']);if(_0x3e82f9){const _0x48c6ad=_0x3e82f9[_0x34fd8a(0x221)][_0x34fd8a(0x1b2)],_0x139d7e=_0x3e82f9[_0x34fd8a(0x221)][_0x34fd8a(0x1b3)]['id'];setTimeout(()=>{var _0x490019=_0x34fd8a;this[_0x490019(0x1c0)]['executeCommand'](_0x56cadf['id'],{'unitId':_0x48c6ad,'subUnitId':_0x139d7e},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x36e74f=_0x2a0f2a;this[_0x36e74f(0x224)][_0x36e74f(0x1a2)](_0x36e74f(0x1f5));const _0xd51831=new Map(),_0x2cd56=this[_0x36e74f(0x1cf)]=new _0x31b05b();_0x2cd56[_0x36e74f(0x196)](_0x3ea5b0(()=>{var _0x4bf972=_0x36e74f;_0xd51831['forEach'](_0x423f73=>_0x423f73['complete']()),_0xd51831[_0x4bf972(0x1e7)]();})),_0x2cd56[_0x36e74f(0x196)](this[_0x36e74f(0x1c0)][_0x36e74f(0x1ea)](_0x98a794=>{var _0x2ecaf6=_0x36e74f,_0x2907b4;if(_0x98a794[_0x2ecaf6(0x1c2)]!==_0x53a8fc[_0x2ecaf6(0x213)]||!this[_0x2ecaf6(0x19f)][_0x2ecaf6(0x1b9)](_0x98a794['id']))return;const {id:_0x5419d3}=_0x98a794;let _0x26991d;_0xd51831['has'](_0x5419d3)?_0x26991d=_0xd51831[_0x2ecaf6(0x222)](_0x5419d3):(_0x26991d=new _0x5ef0c0(),_0xd51831['set'](_0x5419d3,_0x26991d),_0x26991d[_0x2ecaf6(0x204)](_0x2ea41b((_0x2907b4=this['_configService'][_0x2ecaf6(0x1ca)](Pe))!=null?_0x2907b4:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2ecaf6(0x1c8)](_0x2cc61e=>{var _0x241d8d=_0x2ecaf6;this[_0x241d8d(0x1cd)][_0x241d8d(0x173)]({'eventID':_0x4c2295['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2cc61e['id']]:{'id':_0x2cc61e['id'],'params':JSON['stringify'](_0x2cc61e['params'])}}}},this['_unitID']);})),_0x26991d[_0x2ecaf6(0x1a2)](_0x98a794);})),this[_0x36e74f(0x19f)]['getInitialStates'](this[_0x36e74f(0x179)])['forEach'](_0x55d07e=>this[_0x36e74f(0x1cd)][_0x36e74f(0x173)]({'eventID':_0x4c2295['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x36e74f(0x179)],'operations':{[_0x55d07e['id']]:{'id':_0x55d07e['id'],'params':JSON[_0x36e74f(0x200)](_0x55d07e[_0x36e74f(0x221)])}}}},this[_0x36e74f(0x179)]));}['_stopPresenting'](){var _0x4cba9d=_0x2a0f2a,_0x16510d;this[_0x4cba9d(0x224)]['next']('idle'),(_0x16510d=this['_commandDisposable'])==null||_0x16510d[_0x4cba9d(0x17c)](),this[_0x4cba9d(0x1cf)]=null;}[_0x2a0f2a(0x1c1)](){var _0x578337=_0x2a0f2a,_0x404f1b;(_0x404f1b=this[_0x578337(0x1cf)])==null||_0x404f1b[_0x578337(0x17c)](),this['_status$'][_0x578337(0x1a2)]('following');}[_0x2a0f2a(0x1ab)](){var _0x576e7e=_0x2a0f2a,_0x36a142;this[_0x576e7e(0x224)][_0x576e7e(0x1a2)](_0x576e7e(0x1a1)),(_0x36a142=this['_commandDisposable'])==null||_0x36a142[_0x576e7e(0x17c)](),this[_0x576e7e(0x1cf)]=null;}[_0x2a0f2a(0x1f0)](){var _0x384008=_0x2a0f2a,_0x22abe2;this[_0x384008(0x224)][_0x384008(0x1a2)](_0x384008(0x1b7)),(_0x22abe2=this[_0x384008(0x1cf)])==null||_0x22abe2['dispose']();}[_0x2a0f2a(0x1c7)](_0x4aceee){var _0x4d2112=_0x2a0f2a;if([_0x4d2112(0x1f5),'not-following',_0x4d2112(0x180)][_0x4d2112(0x211)](this['_status'])||!_0x4aceee['data'][_0x4d2112(0x220)]||_0x4aceee['data'][_0x4d2112(0x220)]===this['_collabSession'][_0x4d2112(0x17b)]())return;this[_0x4d2112(0x203)]===_0x4d2112(0x1a1)&&this[_0x4d2112(0x1c1)]();const _0x3e813a=_0x4aceee['data'][_0x4d2112(0x198)];Object[_0x4d2112(0x1f7)](_0x3e813a)[_0x4d2112(0x20f)](_0x235fe2=>{var _0x2caec8=_0x4d2112;this[_0x2caec8(0x1c0)][_0x2caec8(0x1e1)](_0x235fe2['id'],_0x235fe2[_0x2caec8(0x221)]?JSON[_0x2caec8(0x1de)](_0x235fe2[_0x2caec8(0x221)]):null,{'fromCollab':!0x0});});}[_0x2a0f2a(0x188)](){var _0x16eb4c=_0x2a0f2a,_0x37d952;this[_0x16eb4c(0x224)][_0x16eb4c(0x1a2)](_0x16eb4c(0x180)),(_0x37d952=this['_commandDisposable'])==null||_0x37d952[_0x16eb4c(0x17c)]();}['_handleOnline'](){var _0x1c46b4=_0x2a0f2a;this['_status$'][_0x1c46b4(0x1a2)](_0x1c46b4(0x1a1)),this[_0x1c46b4(0x209)]();}};w=Z([f(0x2,_0x2e77bf),f(0x3,_0x459502(L)),f(0x4,_0x22ff36)],w);function Te(){var _0x3c223e=_0x2a0f2a;const _0x1b5ea0=_0x3e135f(I),_0x30e351=_0x3e135f(_0x560e40),_0x1afbe5=_0x1d56b5(()=>_0x30e351[_0x3c223e(0x217)](_0x43f478[_0x3c223e(0x1a9)]),void 0x0,!0x1,[]),[_0x64641,_0x2f18dd]=_0x216df8(null),[_0x51f2ae,_0x390ba0]=_0x216df8(h[_0x3c223e(0x1b8)]),_0x4cbef8=_0xba99eb(null);return _0x245dda(()=>(_0x1afbe5&&_0x1b5ea0[_0x3c223e(0x1f3)](_0x1afbe5[_0x3c223e(0x176)]())['then'](_0x427b54=>{var _0x5a4541=_0x3c223e;_0x2f18dd(_0x427b54),_0x4cbef8[_0x5a4541(0x202)]=_0x427b54[_0x5a4541(0x19d)]['subscribe'](_0x495bfe=>{_0x390ba0(_0x495bfe);});}),()=>{var _0x30de99=_0x3c223e,_0x31c493;(_0x31c493=_0x4cbef8[_0x30de99(0x202)])==null||_0x31c493[_0x30de99(0x1db)](),_0x4cbef8['current']=null;}),[_0x1afbe5,_0x1b5ea0]),_0x64641?_0x430726(_0x1f1fbe,{'align':_0x3c223e(0x1f2),'disabled':_0x51f2ae===h[_0x3c223e(0x1bb)],'className':_0x3c223e(0x20a),'overlay':_0x430726($e,{'status':_0x51f2ae,'coordinator':_0x64641}),'children':_0x430726(_0x3c223e(0x1fe),{'className':_0x285d7d('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x51f2ae===h[_0x3c223e(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51f2ae!==h[_0x3c223e(0x1bb)]}),'type':_0x3c223e(0x1fe),'children':_0x430726(B,{'className':'univer-size-4'})})}):null;}function $e(_0xde28d2){var _0xbd4cbf=_0x2a0f2a;const {status:_0x41ec08,coordinator:_0x331241}=_0xde28d2;switch(_0x41ec08){case h[_0xbd4cbf(0x1b8)]:return _0x430726(Fe,{'coordinator':_0x331241});case h[_0xbd4cbf(0x1be)]:return _0x430726(He,{'coordinator':_0x331241});case h[_0xbd4cbf(0x1eb)]:return _0x430726(je,{'coordinator':_0x331241});case h['OFFLINE']:return _0x430726(Ve,{});case h[_0xbd4cbf(0x1ee)]:return _0x430726(Ue,{'coordinator':_0x331241});default:return null;}}function Fe(_0xbe1a3a){var _0x5cea33=_0x2a0f2a;const {coordinator:_0x341f93}=_0xbe1a3a;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x5cea33(0x1ae),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5cea33(0x1f6)}),_0x430726(_0x46f48e,{'onClick':()=>_0x341f93[_0x5cea33(0x19a)](),'children':'Start'})]});}function _0x2677(){var _0x28e176=['subscribe','UNIVER_LIVE_SHARE_PLUGIN','getConfig','getOwnPropertySymbols','path','_collabSession','8756034LhQmzS','_commandDisposable','dispose$','UniverIcon','disposeWithMe','colorChannel1','toString','getTypeOfUnitAdded$','svg','univer-w-full\x20univer-mb-3\x20univer-text-sm','LIVESHARE_FETCH_OPERATIONS','univerjs-icon\x20univerjs-icon-','getValue','unsubscribe','className','string','parse','find','none','executeCommand','length','LIVESHARE_TERMINATE','displayName','getTypeOfUnitDisposed$','symbol','clear','apply','propertyIsEnumerable','onCommandExecuted','NOT_FOLLOWING','icon','registerSharedOperation','PRESENTING','getOwnPropertyDescriptor','_stopFollowing','data','end','getLiveShareCoordinator','replace','presenting','Present\x20this\x20document','values','extend','currentColor','complete','8362632WbMHtM','_collabSessionService','_startLiveShareCoordinator','button','live-share-single','stringify','_injector','current','_status','pipe','live-share.config','mutations','_mountLiveShare','concat','_fetchOperations','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','_config','set','defIds','stopPresenting','forEach','stopFollowing','includes','_handleNewHost','OPERATION','Stop\x20following','substring','3412748hbhvVq','getCurrentTypeOfUnit$','fill','reverse','_stopPresenting','UNIVER_UNKNOWN','995orkHYv','assign','NEW_CHANGESETS','evenodd','presenter','params','get','1101588NTzCoG','_status$','send','use','call','getUnitId','_configService','33738wltFtl','_unitID','trim','getMemberID','dispose','memberID','sessionStatus$','Start\x20following','offline','mask','LIVESHARE_NEW_HOST','from','_sharedOperations','_handleNewChangeSets','1011316hVYsZR','_reporters','_handleOffline','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','indexOf','has','defs','hasOwnProperty','_startPresenting','SAME_OPERATION_SHARE_INTERVAL','1em','_univerInstanceService','_entities','asObservable','You\x27re\x20following\x20the\x20presenter','event$','add','pluginName','operations','startFollowing','tryStartPresenting','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','status$','LIVESHARE_REQUEST_HOST','_liveShareService','prototype','idle','next','entries','You\x27are\x20offline.','xlink:href','default','_handleTerminate','tag','UNIVER_SHEET','_uiPartsService','_beIdle','random','delete','div','_handleOnline','children','idSuffix','unitId','sheet','attrs','url(#$1','_init','not-following','IDLE','shouldShareOperation','following','OFFLINE','2356569zMlhsi','HEADER_MENU','FOLLOWING','override','_commandService','_startFollowing','type','0\x200\x2016\x2016','text','init','setConfig','_handleOperation'];_0x2677=function(){return _0x28e176;};return _0x2677();}function He(_0x51eb33){var _0x259bf8=_0x2a0f2a;const {coordinator:_0x1875cb}=_0x51eb33;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x259bf8(0x1ae),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x259bf8(0x194)}),_0x430726(_0x46f48e,{'onClick':()=>_0x1875cb['stopFollowing'](),'children':_0x259bf8(0x214)})]});}function je(_0x39db73){var _0x2ba218=_0x2a0f2a;const {coordinator:_0x434681}=_0x39db73;return _0x2b0221(_0x114633,{'children':[_0x430726('div',{'className':_0x2ba218(0x1d7),'children':_0x2ba218(0x19c)}),_0x430726(_0x46f48e,{'variant':_0x2ba218(0x1c4),'onClick':()=>_0x434681[_0x2ba218(0x199)](),'children':_0x2ba218(0x17f)})]});}function Ue(_0x832789){var _0x40306e=_0x2a0f2a;const {coordinator:_0x14dfd1}=_0x832789;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x40306e(0x1ae),{'className':_0x40306e(0x1d7),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x430726(_0x46f48e,{'variant':_0x40306e(0x1a6),'onClick':()=>_0x14dfd1['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x51e6c5=_0x2a0f2a;return _0x430726(_0x114633,{'children':_0x51e6c5(0x1a4)});}var Me=Object[_0x2a0f2a(0x1ef)],ke=(_0x1434f2,_0x4b0a39,_0x26271d,_0x113b22)=>{for(var _0x105e87=_0x113b22>0x1?void 0x0:_0x113b22?Me(_0x4b0a39,_0x26271d):_0x4b0a39,_0x5ad90c=_0x1434f2['length']-0x1,_0x39c6d1;_0x5ad90c>=0x0;_0x5ad90c--)(_0x39c6d1=_0x1434f2[_0x5ad90c])&&(_0x105e87=_0x39c6d1(_0x105e87)||_0x105e87);return _0x105e87;},$=(_0x56b26b,_0x15ecb3)=>(_0x45b54a,_0x27e27a)=>_0x15ecb3(_0x45b54a,_0x27e27a,_0x56b26b);let b=class extends _0x56d91a{constructor(_0x40ac16,_0x5cb5dd){var _0x14ee55=_0x2a0f2a;super(),this[_0x14ee55(0x201)]=_0x40ac16,this[_0x14ee55(0x1aa)]=_0x5cb5dd,this[_0x14ee55(0x207)]();}[_0x2a0f2a(0x207)](){var _0x401241=_0x2a0f2a;this[_0x401241(0x1d2)](this[_0x401241(0x1aa)]['registerComponent'](_0xba4be9[_0x401241(0x1bd)],()=>_0x57f19d(Te,this[_0x401241(0x201)])));}};b=ke([$(0x0,_0x459502(_0x511763)),$(0x1,_0xf8ae92)],b);var Ge=Object['defineProperty'],We=Object[_0x2a0f2a(0x1ef)],Ye=(_0x2b00db,_0x172369,_0xb421e9)=>_0x172369 in _0x2b00db?Ge(_0x2b00db,_0x172369,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb421e9}):_0x2b00db[_0x172369]=_0xb421e9,Be=(_0x32396a,_0x44fdda,_0x1b23c6,_0x118ac6)=>{var _0x40967b=_0x2a0f2a;for(var _0x18ecfe=_0x118ac6>0x1?void 0x0:_0x118ac6?We(_0x44fdda,_0x1b23c6):_0x44fdda,_0x290d5f=_0x32396a[_0x40967b(0x1e2)]-0x1,_0x4cc370;_0x290d5f>=0x0;_0x290d5f--)(_0x4cc370=_0x32396a[_0x290d5f])&&(_0x18ecfe=_0x4cc370(_0x18ecfe)||_0x18ecfe);return _0x18ecfe;},F=(_0x9e9494,_0x220691)=>(_0x6fcd4f,_0x2d5f9e)=>_0x220691(_0x6fcd4f,_0x2d5f9e,_0x9e9494),J=(_0x55a3c7,_0x3b81b2,_0x271a14)=>Ye(_0x55a3c7,typeof _0x3b81b2!='symbol'?_0x3b81b2+'':_0x3b81b2,_0x271a14);const Ze=_0x2a0f2a(0x1c9);let O=class extends _0x36cf9c{constructor(_0x1aca0a=T,_0x18593a,_0x2a6639){var _0x4aecc2=_0x2a0f2a;super(),this['_config']=_0x1aca0a,this[_0x4aecc2(0x201)]=_0x18593a,this[_0x4aecc2(0x177)]=_0x2a6639;const {..._0x5e8262}=_0x2a8c98({},T,this[_0x4aecc2(0x20b)]);this[_0x4aecc2(0x177)][_0x4aecc2(0x1c6)](Oe,_0x5e8262);}['onStarting'](){var _0x4a30a5=_0x2a0f2a;_0x123d95(this[_0x4a30a5(0x201)],_0x4f628e([[L],[I],[m],[b]],this[_0x4a30a5(0x20b)][_0x4a30a5(0x1bf)])),_0x2d4a9e(this[_0x4a30a5(0x201)],[[m]]);}['onRendered'](){var _0x1760ce=_0x2a0f2a;_0x2d4a9e(this[_0x1760ce(0x201)],[[b]]);}};function _0x1c4f(_0x412eea,_0x465a20){var _0x2677ee=_0x2677();return _0x1c4f=function(_0x1c4fa5,_0x1769d9){_0x1c4fa5=_0x1c4fa5-0x173;var _0x458a08=_0x2677ee[_0x1c4fa5];return _0x458a08;},_0x1c4f(_0x412eea,_0x465a20);}J(O,_0x2a0f2a(0x1c2),_0x43f478[_0x2a0f2a(0x21b)]),J(O,_0x2a0f2a(0x197),Ze),O=Be([_0x2ecbb5(_0x2cf583),F(0x1,_0x459502(_0x511763)),F(0x2,_0x2e77bf)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x317cc4=_0x121d;(function(_0x743470,_0x2002b9){var _0x3a5e86=_0x121d,_0xeb287b=_0x743470();while(!![]){try{var _0x145502=parseInt(_0x3a5e86(0x23f))/0x1+-parseInt(_0x3a5e86(0x250))/0x2*(parseInt(_0x3a5e86(0x236))/0x3)+-parseInt(_0x3a5e86(0x22d))/0x4+parseInt(_0x3a5e86(0x258))/0x5*(-parseInt(_0x3a5e86(0x213))/0x6)+parseInt(_0x3a5e86(0x204))/0x7+-parseInt(_0x3a5e86(0x271))/0x8*(parseInt(_0x3a5e86(0x257))/0x9)+-parseInt(_0x3a5e86(0x293))/0xa*(-parseInt(_0x3a5e86(0x21b))/0xb);if(_0x145502===_0x2002b9)break;else _0xeb287b['push'](_0xeb287b['shift']());}catch(_0x32d39f){_0xeb287b['push'](_0xeb287b['shift']());}}}(_0x4352,0x68b39));var q=Object[_0x317cc4(0x28d)],z=(_0x200f56,_0x34ae8d,_0xab6661)=>_0x34ae8d in _0x200f56?q(_0x200f56,_0x34ae8d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xab6661}):_0x200f56[_0x34ae8d]=_0xab6661,d=(_0x760b2e,_0x2bc7ed,_0x5461bd)=>z(_0x760b2e,typeof _0x2bc7ed!=_0x317cc4(0x230)?_0x2bc7ed+'':_0x2bc7ed,_0x5461bd);import{CollaborationSessionService as _0xf227ba,SessionStatus as _0x488b82,UniverCollaborationClientPlugin as _0x7a3857}from'@univerjs-pro/collaboration-client';import{Disposable as _0x28b745,toDisposable as _0x1750b3,Inject as _0x3973f8,IUniverInstanceService as _0x4d6e57,Injector as _0x44f59d,IConfigService as _0x58ab73,ICommandService as _0x358665,RxDisposable as _0x371e9b,UniverInstanceType as _0x5ada5c,DisposableCollection as _0x5d76a4,CommandType as _0x1cd9a0,DependentOn as _0x17a14e,Plugin as _0x5cb41f,merge as _0x43e9f6,registerDependencies as _0x10add6,mergeOverrideWithDependencies as _0x2908f4,touchDependencies as _0x21ed85}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x34abf8,InsertSheetMutation as _0x15acd4}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x127e50,SetScrollOperation as _0x5f295}from'@univerjs/sheets-ui';import{useDependency as _0x13cf3c,useObservable as _0x3d804b,IUIPartsService as _0x4a839a,BuiltInUIPart as _0x189589,connectInjector as _0x222fb3}from'@univerjs/ui';import{jsx as _0x5e0980,jsxs as _0x86c48d,Fragment as _0x4fb342}from'react/jsx-runtime';import{Dropdown as _0xd3e1d7,clsx as _0x204084,Button as _0x1e8eb3}from'@univerjs/design';import{forwardRef as _0x10f6cc,useRef as _0xa2b4b4,createElement as _0x1cfd2c,useState as _0x1fab71,useEffect as _0x28befb}from'react';import{CollaborationEvent as _0x2f29ed,parseProtocolChangeset as _0x13f9cc}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x290e70,Subject as _0x2d0f0f}from'rxjs';import{takeUntil as _0x2284f5,throttleTime as _0x16037d}from'rxjs/operators';function _0x4352(){var _0xc6a2ca=['univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','attrs','You\x27re\x20following\x20the\x20presenter','tag','type','UNIVER_UNKNOWN','_startPresenting','unsubscribe','children','getMemberID','prototype','_collabSessionService','426qvjTkw','toString','LIVESHARE_REQUEST_HOST','find','_mountLiveShare','_injector','_handleOperation','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','517YBfGvf','_handleOnline','length','_stopPresenting','status$','requireSession','LIVESHARE_OPERATION','univer-w-full\x20univer-mb-3\x20univer-text-sm','stopFollowing','stopPresenting','IDLE','UNIVER_SHEET','_startLiveShareCoordinator','univer-size-4','colorChannel1','defIds','assign','mutations','259304SfKzGH','NEW_CHANGESETS','dispose$','symbol','idle','_liveShareService','_reporters','icon','xlink:href','1689OzIJYf','propertyIsEnumerable','presenter','_status$','_univerInstanceService','call','subscribe','use','string','494887EFhmMW','default','_entities','getConfig','map','_commandService','_collabSession','SAME_OPERATION_SHARE_INTERVAL','_config','data','get','add','delete','HEADER_MENU','complete','executeCommand','_uiPartsService','398BKSrHe','You\x27re\x20presenting\x20the\x20document','live-share-single','registerSharedOperation','set','div','_handleOffline','207DIsSUK','6005zwUpDz','getValue','You\x27are\x20offline.','next','_presenter','_beIdle','_sharedOperations','_commandDisposable','init','shouldShareOperation','dispose','then','presenting','evenodd','trim','_handleTerminate','Stop\x20presenting','onRendered','pluginName','getOwnPropertySymbols','includes','_handleNewChangeSets','getUnitId','FOLLOWING','has','239576zOJEOM','registerInitialStateReporter','UNIVER_LIVE_SHARE_PLUGIN','_unitID','idSuffix','text','sessionStatus$','PRESENTING','getTypeOfUnitAdded$','startFollowing','indexOf','disposeWithMe','_handleNewHost','extend','send','unitId','path','from','apply','registerComponent','parse','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','currentColor','replace','hasOwnProperty','displayName','_init','_configService','defineProperty','stringify','event$','concat','LiveShareSingle','defs','21130SGrRzU','override','1em','params','following','_stopFollowing','UniverIcon','className','values','getOwnPropertyDescriptor','offline','OFFLINE','getCurrentTypeOfUnit$','forEach','_fetchOperations','clear','createInstance','svg','entries','NOT_FOLLOWING','current','_startFollowing','end','mask','LIVESHARE_TERMINATE','OPERATION','LIVESHARE_NEW_HOST','button','not-following','tryStartPresenting','memberID','live-share.config','getInitialStates','pipe','random','url(#$1','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','getTypeOfUnitDisposed$','5499018uflIGE','Present\x20this\x20document','_status'];_0x4352=function(){return _0xc6a2ca;};return _0x4352();}const Oe=_0x317cc4(0x1fd),T={};class L extends _0x28b745{constructor(){var _0x1ee847=_0x317cc4;super(...arguments),d(this,_0x1ee847(0x25e),new Set()),d(this,_0x1ee847(0x233),new Set());}[_0x317cc4(0x253)](_0x34554e){var _0x453eb3=_0x317cc4;return this[_0x453eb3(0x25e)][_0x453eb3(0x24a)](_0x34554e),_0x1750b3(()=>this['_sharedOperations'][_0x453eb3(0x24b)](_0x34554e));}[_0x317cc4(0x272)](_0x205694){var _0x12118b=_0x317cc4;return this['_reporters']['add'](_0x205694),_0x1750b3(()=>this[_0x12118b(0x233)][_0x12118b(0x24b)](_0x205694));}[_0x317cc4(0x261)](_0x4348be){var _0x170dc5=_0x317cc4;return this[_0x170dc5(0x25e)][_0x170dc5(0x270)](_0x4348be);}[_0x317cc4(0x1fe)](_0x54491a){var _0x8efbc8=_0x317cc4;return Array[_0x8efbc8(0x282)](this['_reporters'])[_0x8efbc8(0x243)](_0x3e15f8=>_0x3e15f8(_0x54491a));}}var Ee=Object[_0x317cc4(0x29c)],Ce=(_0x68cb5c,_0x2e1b8e,_0x1909c4,_0x440302)=>{var _0x54f249=_0x317cc4;for(var _0x3dfd77=_0x440302>0x1?void 0x0:_0x440302?Ee(_0x2e1b8e,_0x1909c4):_0x2e1b8e,_0x411a7a=_0x68cb5c[_0x54f249(0x21d)]-0x1,_0x493dff;_0x411a7a>=0x0;_0x411a7a--)(_0x493dff=_0x68cb5c[_0x411a7a])&&(_0x3dfd77=_0x493dff(_0x3dfd77)||_0x3dfd77);return _0x3dfd77;},Ne=(_0x439b52,_0x5dd71f)=>(_0x45d733,_0x51427e)=>_0x5dd71f(_0x45d733,_0x51427e,_0x439b52);let m=class extends _0x28b745{constructor(_0x17ab6f){var _0x3e693a=_0x317cc4;super(),this[_0x3e693a(0x232)]=_0x17ab6f,this[_0x3e693a(0x28b)]();}['_init'](){var _0x4fe881=_0x317cc4;[_0x127e50['id'],_0x5f295['id'],_0x34abf8['id']][_0x4fe881(0x2a0)](_0x30dfff=>{var _0x4a8588=_0x4fe881;this[_0x4a8588(0x27c)](this[_0x4a8588(0x232)][_0x4a8588(0x253)](_0x30dfff));});}};m=Ce([Ne(0x0,_0x3973f8(L))],m);var c=function(){var _0x1890e3=_0x317cc4;return c=Object[_0x1890e3(0x22b)]||function(_0x1795d7){var _0x515cdb=_0x1890e3;for(var _0x461435,_0x927aaf=0x1,_0x1fc6d0=arguments[_0x515cdb(0x21d)];_0x927aaf<_0x1fc6d0;_0x927aaf++){_0x461435=arguments[_0x927aaf];for(var _0x2df735 in _0x461435)Object['prototype'][_0x515cdb(0x289)]['call'](_0x461435,_0x2df735)&&(_0x1795d7[_0x2df735]=_0x461435[_0x2df735]);}return _0x1795d7;},c[_0x1890e3(0x283)](this,arguments);},we=function(_0x59ab0d,_0x28711b){var _0x2597f7=_0x317cc4,_0x5b9470={};for(var _0xfe8e5f in _0x59ab0d)Object['prototype'][_0x2597f7(0x289)][_0x2597f7(0x23b)](_0x59ab0d,_0xfe8e5f)&&_0x28711b['indexOf'](_0xfe8e5f)<0x0&&(_0x5b9470[_0xfe8e5f]=_0x59ab0d[_0xfe8e5f]);if(_0x59ab0d!=null&&typeof Object[_0x2597f7(0x26b)]=='function'){for(var _0x47165a=0x0,_0xfe8e5f=Object['getOwnPropertySymbols'](_0x59ab0d);_0x47165a<_0xfe8e5f[_0x2597f7(0x21d)];_0x47165a++)_0x28711b[_0x2597f7(0x27b)](_0xfe8e5f[_0x47165a])<0x0&&Object[_0x2597f7(0x211)][_0x2597f7(0x237)][_0x2597f7(0x23b)](_0x59ab0d,_0xfe8e5f[_0x47165a])&&(_0x5b9470[_0xfe8e5f[_0x47165a]]=_0x59ab0d[_0xfe8e5f[_0x47165a]]);}return _0x5b9470;},W=_0x10f6cc(function(_0x41fb54,_0x291d63){var _0x22b872=_0x317cc4,_0xab3917=_0x41fb54[_0x22b872(0x234)],_0x342f82=_0x41fb54['id'],_0x2c3dca=_0x41fb54[_0x22b872(0x29a)],_0x220c64=_0x41fb54[_0x22b872(0x27e)],_0x3df331=we(_0x41fb54,[_0x22b872(0x234),'id','className',_0x22b872(0x27e)]),_0x5bf2b4='univerjs-icon\x20univerjs-icon-'[_0x22b872(0x290)](_0x342f82,'\x20')[_0x22b872(0x290)](_0x2c3dca||'')[_0x22b872(0x266)](),_0x2d4b15=_0xa2b4b4('_'[_0x22b872(0x290)](Le()));return Y(_0xab3917,''[_0x22b872(0x290)](_0x342f82),{'defIds':_0xab3917['defIds'],'idSuffix':_0x2d4b15[_0x22b872(0x2a7)]},c({'ref':_0x291d63,'className':_0x5bf2b4},_0x3df331),_0x220c64);});function Y(_0x457f6e,_0x57644a,_0x74a3cf,_0xa14b6,_0x595f46){var _0x55d5f5=_0x317cc4;return _0x1cfd2c(_0x457f6e[_0x55d5f5(0x20a)],c(c({'key':_0x57644a},De(_0x457f6e,_0x74a3cf,_0x595f46)),_0xa14b6),(xe(_0x457f6e,_0x74a3cf)[_0x55d5f5(0x20f)]||[])[_0x55d5f5(0x243)](function(_0x4f64fc,_0x4c4b56){var _0xf288d7=_0x55d5f5;return Y(_0x4f64fc,''[_0xf288d7(0x290)](_0x57644a,'-')['concat'](_0x457f6e[_0xf288d7(0x20a)],'-')[_0xf288d7(0x290)](_0x4c4b56),_0x74a3cf,void 0x0,_0x595f46);}));}function De(_0x13c203,_0x345e01,_0x3e0965){var _0xcf1fd9=_0x317cc4,_0x244685=c({},_0x13c203[_0xcf1fd9(0x208)]);_0x3e0965!=null&&_0x3e0965[_0xcf1fd9(0x229)]&&_0x244685['fill']===_0xcf1fd9(0x229)&&(_0x244685['fill']=_0x3e0965['colorChannel1']),_0x13c203[_0xcf1fd9(0x20a)]===_0xcf1fd9(0x1f5)&&_0x244685['id']&&(_0x244685['id']=_0x244685['id']+_0x345e01[_0xcf1fd9(0x275)]),Object[_0xcf1fd9(0x2a5)](_0x244685)[_0xcf1fd9(0x2a0)](function(_0x37f37b){var _0x5905d4=_0xcf1fd9,_0x92d969=_0x37f37b[0x0],_0x14c884=_0x37f37b[0x1];_0x92d969===_0x5905d4(0x1f5)&&typeof _0x14c884==_0x5905d4(0x23e)&&(_0x244685[_0x92d969]=_0x14c884[_0x5905d4(0x288)](/url\(#(.*)\)/,_0x5905d4(0x201)['concat'](_0x345e01['idSuffix'],')')));});var _0x599969=_0x345e01[_0xcf1fd9(0x22a)];return!_0x599969||_0x599969[_0xcf1fd9(0x21d)]===0x0||(_0x13c203[_0xcf1fd9(0x20a)]===_0xcf1fd9(0x23d)&&_0x244685[_0xcf1fd9(0x235)]&&(_0x244685['xlink:href']=_0x244685['xlink:href']+_0x345e01[_0xcf1fd9(0x275)]),Object[_0xcf1fd9(0x2a5)](_0x244685)[_0xcf1fd9(0x2a0)](function(_0x97fc36){var _0x4ece42=_0xcf1fd9,_0x324bd6=_0x97fc36[0x0],_0x25992a=_0x97fc36[0x1];typeof _0x25992a==_0x4ece42(0x23e)&&(_0x244685[_0x324bd6]=_0x25992a[_0x4ece42(0x288)](/url\(#(.*)\)/,_0x4ece42(0x201)['concat'](_0x345e01['idSuffix'],')')));})),_0x244685;}function xe(_0x254ca1,_0x2916d5){var _0xe1863a=_0x317cc4,_0x30178c,_0x31ce65=_0x2916d5['defIds'];return!_0x31ce65||_0x31ce65[_0xe1863a(0x21d)]===0x0?_0x254ca1:_0x254ca1[_0xe1863a(0x20a)]===_0xe1863a(0x292)&&(!((_0x30178c=_0x254ca1['children'])===null||_0x30178c===void 0x0)&&_0x30178c[_0xe1863a(0x21d)])?c(c({},_0x254ca1),{'children':_0x254ca1[_0xe1863a(0x20f)][_0xe1863a(0x243)](function(_0x5ecb20){var _0x2fe6db=_0xe1863a;return typeof _0x5ecb20['attrs']['id']=='string'&&_0x31ce65&&_0x31ce65[_0x2fe6db(0x27b)](_0x5ecb20['attrs']['id'])>-0x1?c(c({},_0x5ecb20),{'attrs':c(c({},_0x5ecb20[_0x2fe6db(0x208)]),{'id':_0x5ecb20[_0x2fe6db(0x208)]['id']+_0x2916d5[_0x2fe6db(0x275)]})}):_0x5ecb20;})}):_0x254ca1;}function Le(){var _0x12aa15=_0x317cc4;return Math[_0x12aa15(0x200)]()[_0x12aa15(0x214)](0x24)['substring'](0x2,0x8);}W[_0x317cc4(0x28a)]=_0x317cc4(0x299);var ye={'tag':_0x317cc4(0x2a4),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x317cc4(0x295),'height':_0x317cc4(0x295)},'children':[{'tag':'path','attrs':{'fill':_0x317cc4(0x287),'d':_0x317cc4(0x21a)}},{'tag':_0x317cc4(0x281),'attrs':{'fill':_0x317cc4(0x287),'d':_0x317cc4(0x202),'fillRule':_0x317cc4(0x265),'clipRule':_0x317cc4(0x265)}}]},B=_0x10f6cc(function(_0x38c520,_0x5d0e65){var _0x50000b=_0x317cc4;return _0x1cfd2c(W,Object[_0x50000b(0x22b)]({},_0x38c520,{'id':_0x50000b(0x252),'ref':_0x5d0e65,'icon':ye}));});B['displayName']=_0x317cc4(0x291);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x486090,_0x1b1176,_0x407818,_0x36d660)=>{for(var _0x3bf0b0=_0x36d660>0x1?void 0x0:_0x36d660?Re(_0x1b1176,_0x407818):_0x1b1176,_0x14b27b=_0x486090['length']-0x1,_0x50fe74;_0x14b27b>=0x0;_0x14b27b--)(_0x50fe74=_0x486090[_0x14b27b])&&(_0x3bf0b0=_0x50fe74(_0x3bf0b0)||_0x3bf0b0);return _0x3bf0b0;},f=(_0x4ea832,_0x1ee1e6)=>(_0x3125a1,_0x4a7d3a)=>_0x1ee1e6(_0x3125a1,_0x4a7d3a,_0x4ea832);let I=class extends _0x371e9b{constructor(_0x4bc49d,_0x310e0e,_0x24ceb6){var _0x2386b5=_0x317cc4;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x4bc49d,this[_0x2386b5(0x218)]=_0x310e0e,this[_0x2386b5(0x212)]=_0x24ceb6,this['_init']());}async['getLiveShareCoordinator'](_0x511194){var _0x13fa47=_0x317cc4;return this[_0x13fa47(0x241)]['has'](_0x511194)||await this[_0x13fa47(0x227)](_0x511194),this[_0x13fa47(0x241)]['get'](_0x511194);}[_0x317cc4(0x28b)](){var _0x4ca48c=_0x317cc4;this[_0x4ca48c(0x23a)][_0x4ca48c(0x279)](_0x5ada5c[_0x4ca48c(0x226)])['pipe'](_0x2284f5(this[_0x4ca48c(0x22f)]))[_0x4ca48c(0x23c)](async _0x15f34a=>{var _0xb35db2=_0x4ca48c;const _0x3d74ca=_0x15f34a['getUnitId']();this['_entities'][_0xb35db2(0x270)](_0x3d74ca)||this[_0xb35db2(0x227)](_0x3d74ca);}),this['_univerInstanceService'][_0x4ca48c(0x203)](_0x5ada5c[_0x4ca48c(0x226)])['pipe'](_0x2284f5(this[_0x4ca48c(0x22f)]))['subscribe'](_0x290668=>{var _0x2134bb=_0x4ca48c;const _0x16f4e4=_0x290668[_0x2134bb(0x26e)](),_0x5982a6=this['_entities'][_0x2134bb(0x249)](_0x16f4e4);_0x5982a6==null||_0x5982a6['dispose']();});}async[_0x317cc4(0x227)](_0x3baa74){var _0x3a9deb=_0x317cc4;const _0x2fe467=await this[_0x3a9deb(0x212)][_0x3a9deb(0x220)](_0x3baa74),_0x202e0c=this['_injector'][_0x3a9deb(0x2a3)](w,_0x3baa74,_0x2fe467);return _0x202e0c[_0x3a9deb(0x260)](),this[_0x3a9deb(0x241)][_0x3a9deb(0x254)](_0x3baa74,_0x202e0c),_0x202e0c;}};I=Z([f(0x0,_0x4d6e57),f(0x1,_0x3973f8(_0x44f59d)),f(0x2,_0x3973f8(_0xf227ba))],I);var h=(_0x4b2fe4=>(_0x4b2fe4['OFFLINE']='offline',_0x4b2fe4['IDLE']=_0x317cc4(0x231),_0x4b2fe4[_0x317cc4(0x26f)]=_0x317cc4(0x297),_0x4b2fe4[_0x317cc4(0x2a6)]=_0x317cc4(0x1fa),_0x4b2fe4[_0x317cc4(0x278)]=_0x317cc4(0x264),_0x4b2fe4))(h||{});const Pe=_0x317cc4(0x246),Ae=0xc8;let w=class extends _0x371e9b{constructor(_0x1e49c2,_0x1a22f2,_0x2c6a87,_0x4a48d1,_0x55bd8f){var _0x1674c0=_0x317cc4;super(),d(this,'_status$',new _0x290e70(_0x1674c0(0x231))),d(this,'status$',this[_0x1674c0(0x239)]['asObservable']()),d(this,_0x1674c0(0x28b),!0x1),d(this,_0x1674c0(0x25f),null),d(this,_0x1674c0(0x25c),null),(this['_unitID']=_0x1e49c2,this['_collabSession']=_0x1a22f2,this['_configService']=_0x2c6a87,this[_0x1674c0(0x232)]=_0x4a48d1,this[_0x1674c0(0x244)]=_0x55bd8f);}get[_0x317cc4(0x206)](){var _0x1b5e0c=_0x317cc4;return this[_0x1b5e0c(0x239)][_0x1b5e0c(0x259)]();}['dispose'](){var _0x1105c9=_0x317cc4,_0x32d36f;(_0x32d36f=this[_0x1105c9(0x25f)])==null||_0x32d36f['dispose'](),this[_0x1105c9(0x239)][_0x1105c9(0x25b)](_0x1105c9(0x231)),this['_status$'][_0x1105c9(0x24d)]();}['init'](){var _0x38f51a=_0x317cc4;this[_0x38f51a(0x28b)]||(this['_init']=!0x0,this[_0x38f51a(0x245)][_0x38f51a(0x277)][_0x38f51a(0x1ff)](_0x2284f5(this['dispose$']))[_0x38f51a(0x23c)](_0x199132=>{var _0x529f0d=_0x38f51a;switch(_0x199132){case _0x488b82[_0x529f0d(0x29e)]:this[_0x529f0d(0x256)]();break;case _0x488b82['ONLINE']:this[_0x529f0d(0x21c)]();break;}}),this['_collabSession'][_0x38f51a(0x28f)][_0x38f51a(0x1ff)](_0x2284f5(this['dispose$']))[_0x38f51a(0x23c)](_0x2bd11c=>{var _0x1d6a66=_0x38f51a;const {eventID:_0x5aac88}=_0x2bd11c;switch(_0x5aac88){case _0x2f29ed[_0x1d6a66(0x1f8)]:this['_handleNewHost'](_0x2bd11c);break;case _0x2f29ed[_0x1d6a66(0x221)]:this['_handleOperation'](_0x2bd11c);break;case _0x2f29ed[_0x1d6a66(0x1f6)]:this[_0x1d6a66(0x267)]();break;case _0x2f29ed[_0x1d6a66(0x22e)]:this[_0x1d6a66(0x26d)](_0x2bd11c);break;}}));}[_0x317cc4(0x1fb)](){var _0x79452b=_0x317cc4;this[_0x79452b(0x245)][_0x79452b(0x27f)]({'eventID':_0x2f29ed[_0x79452b(0x215)],'data':{'unitID':this[_0x79452b(0x274)],'userID':this[_0x79452b(0x245)][_0x79452b(0x210)]()}},this[_0x79452b(0x274)]);}['stopPresenting'](){var _0xb697d8=_0x317cc4;this[_0xb697d8(0x206)]===_0xb697d8(0x264)&&(this[_0xb697d8(0x239)][_0xb697d8(0x25b)](_0xb697d8(0x231)),this[_0xb697d8(0x245)][_0xb697d8(0x27f)]({'eventID':_0x2f29ed[_0xb697d8(0x1f6)],'data':{'unitID':this[_0xb697d8(0x274)]}},this['_unitID']));}[_0x317cc4(0x27a)](){var _0x2bd8af=_0x317cc4;this[_0x2bd8af(0x206)]===_0x2bd8af(0x1fa)&&(this[_0x2bd8af(0x239)][_0x2bd8af(0x25b)]('following'),this[_0x2bd8af(0x1f3)]());}[_0x317cc4(0x223)](){var _0x194c5c=_0x317cc4;this[_0x194c5c(0x206)]==='following'&&this[_0x194c5c(0x298)]();}[_0x317cc4(0x27d)](_0x4dbc46){var _0x3271a6=_0x317cc4;const {presenter:_0x1f614c}=_0x4dbc46[_0x3271a6(0x248)],_0x45375d=this['_collabSession']['getMemberID']();this[_0x3271a6(0x25c)]=_0x1f614c,_0x1f614c===_0x45375d?(this[_0x3271a6(0x298)](),this[_0x3271a6(0x20d)]()):this[_0x3271a6(0x206)]!=='not-following'&&(this[_0x3271a6(0x21e)](),this[_0x3271a6(0x1f3)]());}[_0x317cc4(0x2a1)](){var _0x453e3f=_0x317cc4;const _0x3e5e75={'eventID':_0x2f29ed['LIVESHARE_FETCH_OPERATIONS']};this[_0x453e3f(0x245)][_0x453e3f(0x27f)](_0x3e5e75,this[_0x453e3f(0x274)]);}['_handleTerminate'](){var _0x1c9174=_0x317cc4;this[_0x1c9174(0x25c)]=null,this[_0x1c9174(0x206)]!=='presenting'&&this[_0x1c9174(0x25d)]();}[_0x317cc4(0x26d)](_0x1d3829){var _0x3e838d=_0x317cc4;if(this[_0x3e838d(0x206)]===_0x3e838d(0x297)&&this['_presenter']===_0x1d3829[_0x3e838d(0x248)][_0x3e838d(0x1fc)]){const _0x54a95f=_0x13f9cc(_0x1d3829[_0x3e838d(0x248)])[_0x3e838d(0x22c)]['reverse']()[_0x3e838d(0x216)](_0x3fb685=>_0x3fb685['id']===_0x15acd4['id']);if(_0x54a95f){const _0x3ffaf3=_0x54a95f['params'][_0x3e838d(0x280)],_0x3861a1=_0x54a95f[_0x3e838d(0x296)]['sheet']['id'];setTimeout(()=>{var _0x2f50c0=_0x3e838d;this[_0x2f50c0(0x244)][_0x2f50c0(0x24e)](_0x34abf8['id'],{'unitId':_0x3ffaf3,'subUnitId':_0x3861a1},{'fromCollab':!0x0});});}}}[_0x317cc4(0x20d)](){var _0x440869=_0x317cc4;this[_0x440869(0x239)][_0x440869(0x25b)]('presenting');const _0x1e16ab=new Map(),_0x1d7efe=this['_commandDisposable']=new _0x5d76a4();_0x1d7efe[_0x440869(0x24a)](_0x1750b3(()=>{var _0x44cc42=_0x440869;_0x1e16ab[_0x44cc42(0x2a0)](_0x476daf=>_0x476daf[_0x44cc42(0x24d)]()),_0x1e16ab[_0x44cc42(0x2a2)]();})),_0x1d7efe['add'](this[_0x440869(0x244)]['onCommandExecuted'](_0x3a6da4=>{var _0x1d24ef=_0x440869,_0x209416;if(_0x3a6da4[_0x1d24ef(0x20b)]!==_0x1cd9a0[_0x1d24ef(0x1f7)]||!this[_0x1d24ef(0x232)]['shouldShareOperation'](_0x3a6da4['id']))return;const {id:_0x24424c}=_0x3a6da4;let _0x7dac48;_0x1e16ab[_0x1d24ef(0x270)](_0x24424c)?_0x7dac48=_0x1e16ab[_0x1d24ef(0x249)](_0x24424c):(_0x7dac48=new _0x2d0f0f(),_0x1e16ab['set'](_0x24424c,_0x7dac48),_0x7dac48[_0x1d24ef(0x1ff)](_0x16037d((_0x209416=this[_0x1d24ef(0x28c)][_0x1d24ef(0x242)](Pe))!=null?_0x209416:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x366b6b=>{var _0x51b633=_0x1d24ef;this[_0x51b633(0x245)][_0x51b633(0x27f)]({'eventID':_0x2f29ed[_0x51b633(0x221)],'data':{'unitID':this[_0x51b633(0x274)],'operations':{[_0x366b6b['id']]:{'id':_0x366b6b['id'],'params':JSON[_0x51b633(0x28e)](_0x366b6b[_0x51b633(0x296)])}}}},this['_unitID']);})),_0x7dac48[_0x1d24ef(0x25b)](_0x3a6da4);})),this[_0x440869(0x232)][_0x440869(0x1fe)](this[_0x440869(0x274)])[_0x440869(0x2a0)](_0x5d180a=>this[_0x440869(0x245)][_0x440869(0x27f)]({'eventID':_0x2f29ed[_0x440869(0x221)],'data':{'unitID':this['_unitID'],'operations':{[_0x5d180a['id']]:{'id':_0x5d180a['id'],'params':JSON[_0x440869(0x28e)](_0x5d180a[_0x440869(0x296)])}}}},this[_0x440869(0x274)]));}['_stopPresenting'](){var _0x5e133c=_0x317cc4,_0x578793;this[_0x5e133c(0x239)][_0x5e133c(0x25b)](_0x5e133c(0x231)),(_0x578793=this[_0x5e133c(0x25f)])==null||_0x578793[_0x5e133c(0x262)](),this[_0x5e133c(0x25f)]=null;}[_0x317cc4(0x1f3)](){var _0x3f40fa=_0x317cc4,_0x2c9f63;(_0x2c9f63=this[_0x3f40fa(0x25f)])==null||_0x2c9f63['dispose'](),this['_status$'][_0x3f40fa(0x25b)](_0x3f40fa(0x297));}[_0x317cc4(0x25d)](){var _0x243554=_0x317cc4,_0x4f25a7;this[_0x243554(0x239)]['next'](_0x243554(0x231)),(_0x4f25a7=this[_0x243554(0x25f)])==null||_0x4f25a7[_0x243554(0x262)](),this[_0x243554(0x25f)]=null;}[_0x317cc4(0x298)](){var _0x200844=_0x317cc4,_0x1794db;this[_0x200844(0x239)]['next'](_0x200844(0x1fa)),(_0x1794db=this['_commandDisposable'])==null||_0x1794db['dispose']();}[_0x317cc4(0x219)](_0x462795){var _0x356dea=_0x317cc4;if([_0x356dea(0x264),_0x356dea(0x1fa),_0x356dea(0x29d)][_0x356dea(0x26c)](this['_status'])||!_0x462795[_0x356dea(0x248)][_0x356dea(0x238)]||_0x462795[_0x356dea(0x248)]['presenter']===this['_collabSession'][_0x356dea(0x210)]())return;this[_0x356dea(0x206)]==='idle'&&this[_0x356dea(0x1f3)]();const _0x3712c9=_0x462795['data']['operations'];Object[_0x356dea(0x29b)](_0x3712c9)[_0x356dea(0x2a0)](_0x2fab1f=>{var _0x355a5f=_0x356dea;this[_0x355a5f(0x244)]['executeCommand'](_0x2fab1f['id'],_0x2fab1f[_0x355a5f(0x296)]?JSON[_0x355a5f(0x285)](_0x2fab1f[_0x355a5f(0x296)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x556308=_0x317cc4,_0x174270;this['_status$']['next'](_0x556308(0x29d)),(_0x174270=this['_commandDisposable'])==null||_0x174270[_0x556308(0x262)]();}[_0x317cc4(0x21c)](){var _0x34cd18=_0x317cc4;this[_0x34cd18(0x239)]['next'](_0x34cd18(0x231)),this[_0x34cd18(0x2a1)]();}};w=Z([f(0x2,_0x58ab73),f(0x3,_0x3973f8(L)),f(0x4,_0x358665)],w);function Te(){var _0x229741=_0x317cc4;const _0x2da1cc=_0x13cf3c(I),_0x120597=_0x13cf3c(_0x4d6e57),_0x116e02=_0x3d804b(()=>_0x120597[_0x229741(0x29f)](_0x5ada5c[_0x229741(0x226)]),void 0x0,!0x1,[]),[_0x5a6a6f,_0x5fa7a8]=_0x1fab71(null),[_0x283ebc,_0x29aa7a]=_0x1fab71(h[_0x229741(0x225)]),_0xd54d2e=_0xa2b4b4(null);return _0x28befb(()=>(_0x116e02&&_0x2da1cc['getLiveShareCoordinator'](_0x116e02[_0x229741(0x26e)]())[_0x229741(0x263)](_0x1bfb58=>{var _0x16a118=_0x229741;_0x5fa7a8(_0x1bfb58),_0xd54d2e[_0x16a118(0x2a7)]=_0x1bfb58[_0x16a118(0x21f)][_0x16a118(0x23c)](_0x133c13=>{_0x29aa7a(_0x133c13);});}),()=>{var _0x522014=_0x229741,_0x3a4593;(_0x3a4593=_0xd54d2e[_0x522014(0x2a7)])==null||_0x3a4593[_0x522014(0x20e)](),_0xd54d2e['current']=null;}),[_0x116e02,_0x2da1cc]),_0x5a6a6f?_0x5e0980(_0xd3e1d7,{'align':_0x229741(0x1f4),'disabled':_0x283ebc===h[_0x229741(0x29e)],'className':_0x229741(0x207),'overlay':_0x5e0980($e,{'status':_0x283ebc,'coordinator':_0x5a6a6f}),'children':_0x5e0980(_0x229741(0x1f9),{'className':_0x204084(_0x229741(0x286),{'univer-cursor-not-allowed':_0x283ebc===h[_0x229741(0x29e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x283ebc!==h[_0x229741(0x29e)]}),'type':_0x229741(0x1f9),'children':_0x5e0980(B,{'className':_0x229741(0x228)})})}):null;}function $e(_0x92ce41){var _0x5bde97=_0x317cc4;const {status:_0x2c27f9,coordinator:_0x32fac7}=_0x92ce41;switch(_0x2c27f9){case h[_0x5bde97(0x225)]:return _0x5e0980(Fe,{'coordinator':_0x32fac7});case h['FOLLOWING']:return _0x5e0980(He,{'coordinator':_0x32fac7});case h['NOT_FOLLOWING']:return _0x5e0980(je,{'coordinator':_0x32fac7});case h[_0x5bde97(0x29e)]:return _0x5e0980(Ve,{});case h[_0x5bde97(0x278)]:return _0x5e0980(Ue,{'coordinator':_0x32fac7});default:return null;}}function Fe(_0x5c6cf6){var _0x42fb34=_0x317cc4;const {coordinator:_0x287c55}=_0x5c6cf6;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x42fb34(0x255),{'className':_0x42fb34(0x222),'children':_0x42fb34(0x205)}),_0x5e0980(_0x1e8eb3,{'onClick':()=>_0x287c55['tryStartPresenting'](),'children':'Start'})]});}function He(_0xf55d98){var _0xacef20=_0x317cc4;const {coordinator:_0x29d1c3}=_0xf55d98;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980('div',{'className':_0xacef20(0x222),'children':_0xacef20(0x209)}),_0x5e0980(_0x1e8eb3,{'onClick':()=>_0x29d1c3['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x305996){var _0x334509=_0x317cc4;const {coordinator:_0x1ab22e}=_0x305996;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x334509(0x255),{'className':_0x334509(0x222),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x5e0980(_0x1e8eb3,{'variant':_0x334509(0x276),'onClick':()=>_0x1ab22e['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x40fa85){var _0x595a72=_0x317cc4;const {coordinator:_0x3bdb62}=_0x40fa85;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x595a72(0x255),{'className':_0x595a72(0x222),'children':_0x595a72(0x251)}),_0x5e0980(_0x1e8eb3,{'variant':_0x595a72(0x240),'onClick':()=>_0x3bdb62[_0x595a72(0x224)](),'children':_0x595a72(0x268)})]});}function _0x121d(_0x3ea700,_0x21dfc0){var _0x435208=_0x4352();return _0x121d=function(_0x121d69,_0x121d46){_0x121d69=_0x121d69-0x1f3;var _0x23ec5c=_0x435208[_0x121d69];return _0x23ec5c;},_0x121d(_0x3ea700,_0x21dfc0);}function Ve(){var _0x702579=_0x317cc4;return _0x5e0980(_0x4fb342,{'children':_0x702579(0x25a)});}var Me=Object[_0x317cc4(0x29c)],ke=(_0x4cc53e,_0x178e97,_0x4569f7,_0x149eb6)=>{var _0x449a93=_0x317cc4;for(var _0x5357e1=_0x149eb6>0x1?void 0x0:_0x149eb6?Me(_0x178e97,_0x4569f7):_0x178e97,_0x203dbf=_0x4cc53e[_0x449a93(0x21d)]-0x1,_0x18a9e1;_0x203dbf>=0x0;_0x203dbf--)(_0x18a9e1=_0x4cc53e[_0x203dbf])&&(_0x5357e1=_0x18a9e1(_0x5357e1)||_0x5357e1);return _0x5357e1;},$=(_0x203eee,_0x225775)=>(_0x466659,_0x549bea)=>_0x225775(_0x466659,_0x549bea,_0x203eee);let b=class extends _0x28b745{constructor(_0x218bbd,_0x3ca833){var _0x490b13=_0x317cc4;super(),this['_injector']=_0x218bbd,this[_0x490b13(0x24f)]=_0x3ca833,this[_0x490b13(0x217)]();}['_mountLiveShare'](){var _0x1c0c48=_0x317cc4;this[_0x1c0c48(0x27c)](this['_uiPartsService'][_0x1c0c48(0x284)](_0x189589[_0x1c0c48(0x24c)],()=>_0x222fb3(Te,this[_0x1c0c48(0x218)])));}};b=ke([$(0x0,_0x3973f8(_0x44f59d)),$(0x1,_0x4a839a)],b);var Ge=Object[_0x317cc4(0x28d)],We=Object[_0x317cc4(0x29c)],Ye=(_0x6d7a45,_0x5dddb7,_0x297d92)=>_0x5dddb7 in _0x6d7a45?Ge(_0x6d7a45,_0x5dddb7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x297d92}):_0x6d7a45[_0x5dddb7]=_0x297d92,Be=(_0x2a076e,_0x39caf3,_0x3b92db,_0x52a548)=>{for(var _0x58079e=_0x52a548>0x1?void 0x0:_0x52a548?We(_0x39caf3,_0x3b92db):_0x39caf3,_0x3c84be=_0x2a076e['length']-0x1,_0x262ee8;_0x3c84be>=0x0;_0x3c84be--)(_0x262ee8=_0x2a076e[_0x3c84be])&&(_0x58079e=_0x262ee8(_0x58079e)||_0x58079e);return _0x58079e;},F=(_0x9a5a21,_0x45c024)=>(_0x4f93c8,_0x407735)=>_0x45c024(_0x4f93c8,_0x407735,_0x9a5a21),J=(_0x4d41f4,_0x899a54,_0x460cb3)=>Ye(_0x4d41f4,typeof _0x899a54!=_0x317cc4(0x230)?_0x899a54+'':_0x899a54,_0x460cb3);const Ze=_0x317cc4(0x273);let O=class extends _0x5cb41f{constructor(_0x234ab1=T,_0x443547,_0x330d69){var _0x255c06=_0x317cc4;super(),this[_0x255c06(0x247)]=_0x234ab1,this[_0x255c06(0x218)]=_0x443547,this['_configService']=_0x330d69;const {..._0x26b14a}=_0x43e9f6({},T,this[_0x255c06(0x247)]);this[_0x255c06(0x28c)]['setConfig'](Oe,_0x26b14a);}['onStarting'](){var _0x592c44=_0x317cc4;_0x10add6(this['_injector'],_0x2908f4([[L],[I],[m],[b]],this[_0x592c44(0x247)][_0x592c44(0x294)])),_0x21ed85(this[_0x592c44(0x218)],[[m]]);}[_0x317cc4(0x269)](){_0x21ed85(this['_injector'],[[b]]);}};J(O,_0x317cc4(0x20b),_0x5ada5c[_0x317cc4(0x20c)]),J(O,_0x317cc4(0x26a),Ze),O=Be([_0x17a14e(_0x7a3857),F(0x1,_0x3973f8(_0x44f59d)),F(0x2,_0x58ab73)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4b3d(_0x207e4c,_0x2f8751){var _0x947700=_0x9477();return _0x4b3d=function(_0x4b3d61,_0x39827f){_0x4b3d61=_0x4b3d61-0x9f;var _0xa25ec2=_0x947700[_0x4b3d61];return _0xa25ec2;},_0x4b3d(_0x207e4c,_0x2f8751);}function _0x9477(){var _0x1f24f5=['BuiltInUIPart','@univerjs-pro/collaboration','_startLiveShareCoordinator','694062rCwfPf','indexOf','_configService','following','2124342fVzQyL','_presenter','text','unitId','_handleTerminate','You\x27re\x20not\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','@univerjs/sheets-ui','displayName','getUnitId','10736495XmToAX','LIVESHARE_TERMINATE','none','not-following','connectInjector','_univerInstanceService','symbol','ONLINE','_sharedOperations','jsx','@univerjs/design','Stop\x20presenting','NEW_CHANGESETS','replace','defineProperty','10580096sCtkJy','attrs','pipe','_handleOperation','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','Start\x20following','795464ancgBq','Plugin','IDLE','next','LIVESHARE_FETCH_OPERATIONS','CollaborationEvent','button','_unitID','_handleOffline','_startFollowing','_stopPresenting','live-share-single','forEach','UniverProCollaborationClient','has','Button','sheet','apply','idSuffix','_status','url(#$1','className','startFollowing','_commandDisposable','SetScrollOperation','getInitialStates','onCommandExecuted','@univerjs/ui','values','DisposableCollection','clsx','div','OFFLINE','disposeWithMe','_mountLiveShare','CollaborationSessionService','LIVESHARE_OPERATION','forwardRef','current','getOwnPropertyDescriptor','colorChannel1','shouldShareOperation','1em','You\x27re\x20following\x20the\x20presenter','fill','jsxs','takeUntil','registerComponent','LiveShareStatus','type','from','SetZoomRatioOperation','@univerjs/core','random','children','_status$','substring','useRef','You\x27re\x20presenting\x20the\x20document','react','includes','offline','Injector','PRESENTING','getLiveShareCoordinator','@univerjs-pro/collaboration-client','useObservable','defs','presenting','requireSession','LiveShareService','mutations','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_handleNewChangeSets','LIVESHARE_NEW_HOST','xlink:href','RxDisposable','map','memberID','You\x27are\x20offline.','useDependency','use','trim','dispose$','DesktopLiveShareController','_reporters','currentColor','_entities','UniverIcon','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','HEADER_MENU','react/jsx-runtime','string','_init','add','toString','reverse','send','OPERATION','5nDuesv','_collabSession','tryStartPresenting','toStringTag','Dropdown','LiveShare','53294lodbxL','Start','init','registerDependencies','rxjs','createInstance','default','_liveShareService','parseProtocolChangeset','getMemberID','call','useEffect','then','@univerjs/sheets','univer-w-full\x20univer-mb-3\x20univer-text-sm','SessionStatus','univerjs-icon\x20univerjs-icon-','operators','concat','_handleOnline','UniverSheetsUi','stopFollowing','object','idle','SetWorksheetActiveOperation','_injector','UNIVER_SHEET','assign','length','evenodd','entries','event$','UniverLiveSharePlugin','5662492JSMftS','unsubscribe','onStarting','_config','mergeOverrideWithDependencies','UniverCollaborationClientPlugin','path','UNIVER_LIVE_SHARE_PLUGIN','84FGYflQ','_fetchOperations','hasOwnProperty','Inject','UniverInstanceType','prototype','set','touchDependencies','end','NOT_FOLLOWING','data','_startPresenting','_uiPartsService','getTypeOfUnitAdded$','delete','90VSOsVI','_stopFollowing','parse','clear','function','extend','UniverCore','subscribe','toDisposable','createElement','_collabSessionService','defIds','get','sessionStatus$','stringify','LiveShareSingle','useState','asObservable','dispose','_handleNewHost','React','UniverDesign','Stop\x20following','Fragment','FOLLOWING','LiveShareController','IUniverInstanceService','merge','tag','Disposable','Present\x20this\x20document','propertyIsEnumerable','icon','Module','presenter','registerSharedOperation','complete','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','getValue','IUIPartsService','LiveShareCoordinator','live-share.config','mask','setConfig','params','getOwnPropertySymbols','_commandService','IConfigService'];_0x9477=function(){return _0x1f24f5;};return _0x9477();}(function(_0x300f04,_0x5352bc){var _0x188c18=_0x4b3d,_0x21a0f7=_0x300f04();while(!![]){try{var _0x46925b=parseInt(_0x188c18(0x16a))/0x1+-parseInt(_0x188c18(0xdc))/0x2*(-parseInt(_0x188c18(0x105))/0x3)+-parseInt(_0x188c18(0xfd))/0x4*(-parseInt(_0x188c18(0xd6))/0x5)+-parseInt(_0x188c18(0x147))/0x6+parseInt(_0x188c18(0x155))/0x7+-parseInt(_0x188c18(0x164))/0x8+-parseInt(_0x188c18(0x14b))/0x9*(parseInt(_0x188c18(0x114))/0xa);if(_0x46925b===_0x5352bc)break;else _0x21a0f7['push'](_0x21a0f7['shift']());}catch(_0x38f89b){_0x21a0f7['push'](_0x21a0f7['shift']());}}}(_0x9477,0xe2ac9),function(_0x3e8ce5,_0xc8e03){var _0x4573b5=_0x4b3d;typeof exports==_0x4573b5(0xf2)&&typeof module<'u'?_0xc8e03(exports,require(_0x4573b5(0xb4)),require(_0x4573b5(0xa7)),require('@univerjs/sheets'),require(_0x4573b5(0x152)),require(_0x4573b5(0x185)),require(_0x4573b5(0xce)),require(_0x4573b5(0x15f)),require(_0x4573b5(0xae)),require(_0x4573b5(0x145)),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define['amd']?define(['exports','@univerjs-pro/collaboration-client',_0x4573b5(0xa7),_0x4573b5(0xe9),_0x4573b5(0x152),_0x4573b5(0x185),'react/jsx-runtime',_0x4573b5(0x15f),_0x4573b5(0xae),'@univerjs-pro/collaboration',_0x4573b5(0xe0),'rxjs/operators'],_0xc8e03):(_0x3e8ce5=typeof globalThis<'u'?globalThis:_0x3e8ce5||self,_0xc8e03(_0x3e8ce5['UniverProLiveShare']={},_0x3e8ce5[_0x4573b5(0x177)],_0x3e8ce5[_0x4573b5(0x11a)],_0x3e8ce5['UniverSheets'],_0x3e8ce5[_0x4573b5(0xf0)],_0x3e8ce5['UniverUi'],_0x3e8ce5[_0x4573b5(0x128)],_0x3e8ce5[_0x4573b5(0x129)],_0x3e8ce5[_0x4573b5(0x128)],_0x3e8ce5['UniverProCollaboration'],_0x3e8ce5['rxjs'],_0x3e8ce5[_0x4573b5(0xe0)][_0x4573b5(0xed)]));}(this,function(_0x2ae9b9,_0x4803b3,_0x2b474e,_0x285408,_0x2423f0,_0x29bae6,_0x5ed8ab,_0x449b7f,_0x19c262,_0x1217f8,_0x3538d5,_0x46520d){'use strict';var _0x450e7f=_0x4b3d;var _0xbc0f2e=Object[_0x450e7f(0x163)],_0x5030d0=(_0x419a06,_0x1df04e,_0x2bd897)=>_0x1df04e in _0x419a06?_0xbc0f2e(_0x419a06,_0x1df04e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bd897}):_0x419a06[_0x1df04e]=_0x2bd897,_0x2f1d3f=(_0x150ac2,_0x3f6a53,_0x1a2550)=>_0x5030d0(_0x150ac2,typeof _0x3f6a53!=_0x450e7f(0x15b)?_0x3f6a53+'':_0x3f6a53,_0x1a2550);const _0x27a9a8=_0x450e7f(0x13d),_0x5152d0={};class _0x187d0d extends _0x2b474e[_0x450e7f(0x131)]{constructor(){var _0x331449=_0x450e7f;super(...arguments),_0x2f1d3f(this,_0x331449(0x15d),new Set()),_0x2f1d3f(this,_0x331449(0xc8),new Set());}[_0x450e7f(0x137)](_0x51079c){var _0x3617c4=_0x450e7f;return this['_sharedOperations'][_0x3617c4(0xd1)](_0x51079c),_0x2b474e['toDisposable'](()=>this[_0x3617c4(0x15d)][_0x3617c4(0x113)](_0x51079c));}['registerInitialStateReporter'](_0xaa3c67){var _0x2d3af8=_0x450e7f;return this['_reporters']['add'](_0xaa3c67),_0x2b474e[_0x2d3af8(0x11c)](()=>this[_0x2d3af8(0xc8)][_0x2d3af8(0x113)](_0xaa3c67));}[_0x450e7f(0x193)](_0x57227e){var _0x517595=_0x450e7f;return this[_0x517595(0x15d)]['has'](_0x57227e);}[_0x450e7f(0x183)](_0x549d3b){var _0x30d58f=_0x450e7f;return Array[_0x30d58f(0xa5)](this[_0x30d58f(0xc8)])[_0x30d58f(0xc0)](_0x2ca742=>_0x2ca742(_0x549d3b));}}var _0x2d25c0=Object[_0x450e7f(0x191)],_0x3569bf=(_0x149640,_0x4d8cae,_0x2c613b,_0x32e8c5)=>{for(var _0x2e35c0=_0x32e8c5>0x1?void 0x0:_0x32e8c5?_0x2d25c0(_0x4d8cae,_0x2c613b):_0x4d8cae,_0x52a05e=_0x149640['length']-0x1,_0xb6e40b;_0x52a05e>=0x0;_0x52a05e--)(_0xb6e40b=_0x149640[_0x52a05e])&&(_0x2e35c0=_0xb6e40b(_0x2e35c0)||_0x2e35c0);return _0x2e35c0;},_0x39b313=(_0x218d0e,_0x4e7f9e)=>(_0x2d4479,_0x320fc2)=>_0x4e7f9e(_0x2d4479,_0x320fc2,_0x218d0e);let _0x8375be=class extends _0x2b474e[_0x450e7f(0x131)]{constructor(_0x44ef8c){var _0x44de9f=_0x450e7f;super(),this[_0x44de9f(0xe3)]=_0x44ef8c,this[_0x44de9f(0xd0)]();}[_0x450e7f(0xd0)](){var _0x37d097=_0x450e7f;[_0x2423f0[_0x37d097(0xa6)]['id'],_0x2423f0[_0x37d097(0x182)]['id'],_0x285408[_0x37d097(0xf4)]['id']][_0x37d097(0x176)](_0x21fea6=>{var _0x168dbc=_0x37d097;this[_0x168dbc(0x18b)](this[_0x168dbc(0xe3)]['registerSharedOperation'](_0x21fea6));});}};_0x8375be=_0x3569bf([_0x39b313(0x0,_0x2b474e[_0x450e7f(0x108)](_0x187d0d))],_0x8375be);var _0x5ab71f=function(){var _0x2cf2f5=_0x450e7f;return _0x5ab71f=Object[_0x2cf2f5(0xf7)]||function(_0x3a3cb0){var _0x2a527d=_0x2cf2f5;for(var _0x503849,_0x5aa1d7=0x1,_0x1b224f=arguments[_0x2a527d(0xf8)];_0x5aa1d7<_0x1b224f;_0x5aa1d7++){_0x503849=arguments[_0x5aa1d7];for(var _0x40db21 in _0x503849)Object['prototype'][_0x2a527d(0x107)]['call'](_0x503849,_0x40db21)&&(_0x3a3cb0[_0x40db21]=_0x503849[_0x40db21]);}return _0x3a3cb0;},_0x5ab71f[_0x2cf2f5(0x17b)](this,arguments);},_0x5cbf8e=function(_0x335876,_0x26775e){var _0x1fd1db=_0x450e7f,_0x31a6c0={};for(var _0x4ef873 in _0x335876)Object['prototype'][_0x1fd1db(0x107)][_0x1fd1db(0xe6)](_0x335876,_0x4ef873)&&_0x26775e[_0x1fd1db(0x148)](_0x4ef873)<0x0&&(_0x31a6c0[_0x4ef873]=_0x335876[_0x4ef873]);if(_0x335876!=null&&typeof Object[_0x1fd1db(0x141)]==_0x1fd1db(0x118)){for(var _0x3bade3=0x0,_0x4ef873=Object['getOwnPropertySymbols'](_0x335876);_0x3bade3<_0x4ef873[_0x1fd1db(0xf8)];_0x3bade3++)_0x26775e[_0x1fd1db(0x148)](_0x4ef873[_0x3bade3])<0x0&&Object[_0x1fd1db(0x10a)][_0x1fd1db(0x133)][_0x1fd1db(0xe6)](_0x335876,_0x4ef873[_0x3bade3])&&(_0x31a6c0[_0x4ef873[_0x3bade3]]=_0x335876[_0x4ef873[_0x3bade3]]);}return _0x31a6c0;},_0x5ad3db=_0x19c262[_0x450e7f(0x18f)](function(_0x5e5b39,_0x2ac208){var _0x5a421f=_0x450e7f,_0xf0647a=_0x5e5b39[_0x5a421f(0x134)],_0x40d326=_0x5e5b39['id'],_0x1ed54c=_0x5e5b39['className'],_0x2f697f=_0x5e5b39['extend'],_0x4ce6cf=_0x5cbf8e(_0x5e5b39,[_0x5a421f(0x134),'id',_0x5a421f(0x17f),_0x5a421f(0x119)]),_0x52fe11=_0x5a421f(0xec)['concat'](_0x40d326,'\x20')[_0x5a421f(0xee)](_0x1ed54c||'')[_0x5a421f(0xc5)](),_0x7103e9=_0x19c262[_0x5a421f(0xac)]('_'[_0x5a421f(0xee)](_0x28e09b()));return _0xfe1fa8(_0xf0647a,''['concat'](_0x40d326),{'defIds':_0xf0647a[_0x5a421f(0x11f)],'idSuffix':_0x7103e9[_0x5a421f(0x190)]},_0x5ab71f({'ref':_0x2ac208,'className':_0x52fe11},_0x4ce6cf),_0x2f697f);});function _0xfe1fa8(_0x2b6682,_0x1b4c77,_0x3569c6,_0x400205,_0x3104ff){var _0x4d11c7=_0x450e7f;return _0x19c262[_0x4d11c7(0x11d)](_0x2b6682[_0x4d11c7(0x130)],_0x5ab71f(_0x5ab71f({'key':_0x1b4c77},_0xf1a62a(_0x2b6682,_0x3569c6,_0x3104ff)),_0x400205),(_0x58e61a(_0x2b6682,_0x3569c6)[_0x4d11c7(0xa9)]||[])[_0x4d11c7(0xc0)](function(_0x51208f,_0x20f499){var _0x36263a=_0x4d11c7;return _0xfe1fa8(_0x51208f,''[_0x36263a(0xee)](_0x1b4c77,'-')['concat'](_0x2b6682['tag'],'-')['concat'](_0x20f499),_0x3569c6,void 0x0,_0x3104ff);}));}function _0xf1a62a(_0x598e95,_0x6b9569,_0x39ab8f){var _0x288a1f=_0x450e7f,_0x18f1fc=_0x5ab71f({},_0x598e95[_0x288a1f(0x165)]);_0x39ab8f!=null&&_0x39ab8f[_0x288a1f(0x192)]&&_0x18f1fc['fill']===_0x288a1f(0x192)&&(_0x18f1fc[_0x288a1f(0x9f)]=_0x39ab8f[_0x288a1f(0x192)]),_0x598e95[_0x288a1f(0x130)]===_0x288a1f(0x13e)&&_0x18f1fc['id']&&(_0x18f1fc['id']=_0x18f1fc['id']+_0x6b9569['idSuffix']),Object['entries'](_0x18f1fc)['forEach'](function(_0x5e5a29){var _0xcbb3f4=_0x288a1f,_0x38ea9c=_0x5e5a29[0x0],_0x505bf3=_0x5e5a29[0x1];_0x38ea9c===_0xcbb3f4(0x13e)&&typeof _0x505bf3==_0xcbb3f4(0xcf)&&(_0x18f1fc[_0x38ea9c]=_0x505bf3[_0xcbb3f4(0x162)](/url\(#(.*)\)/,_0xcbb3f4(0x17e)[_0xcbb3f4(0xee)](_0x6b9569[_0xcbb3f4(0x17c)],')')));});var _0x11c748=_0x6b9569['defIds'];return!_0x11c748||_0x11c748[_0x288a1f(0xf8)]===0x0||(_0x598e95['tag']===_0x288a1f(0xc4)&&_0x18f1fc[_0x288a1f(0xbe)]&&(_0x18f1fc[_0x288a1f(0xbe)]=_0x18f1fc['xlink:href']+_0x6b9569['idSuffix']),Object[_0x288a1f(0xfa)](_0x18f1fc)[_0x288a1f(0x176)](function(_0x6f4f94){var _0x39bffa=_0x288a1f,_0x37f42a=_0x6f4f94[0x0],_0x21d0b7=_0x6f4f94[0x1];typeof _0x21d0b7=='string'&&(_0x18f1fc[_0x37f42a]=_0x21d0b7[_0x39bffa(0x162)](/url\(#(.*)\)/,'url(#$1'[_0x39bffa(0xee)](_0x6b9569[_0x39bffa(0x17c)],')')));})),_0x18f1fc;}function _0x58e61a(_0x1b8769,_0x5916e2){var _0x1649e3=_0x450e7f,_0x3bd955,_0x634e9b=_0x5916e2[_0x1649e3(0x11f)];return!_0x634e9b||_0x634e9b[_0x1649e3(0xf8)]===0x0?_0x1b8769:_0x1b8769[_0x1649e3(0x130)]===_0x1649e3(0xb6)&&(!((_0x3bd955=_0x1b8769[_0x1649e3(0xa9)])===null||_0x3bd955===void 0x0)&&_0x3bd955[_0x1649e3(0xf8)])?_0x5ab71f(_0x5ab71f({},_0x1b8769),{'children':_0x1b8769['children'][_0x1649e3(0xc0)](function(_0x496367){var _0x566316=_0x1649e3;return typeof _0x496367[_0x566316(0x165)]['id']==_0x566316(0xcf)&&_0x634e9b&&_0x634e9b[_0x566316(0x148)](_0x496367['attrs']['id'])>-0x1?_0x5ab71f(_0x5ab71f({},_0x496367),{'attrs':_0x5ab71f(_0x5ab71f({},_0x496367[_0x566316(0x165)]),{'id':_0x496367[_0x566316(0x165)]['id']+_0x5916e2['idSuffix']})}):_0x496367;})}):_0x1b8769;}function _0x28e09b(){var _0x2b5933=_0x450e7f;return Math[_0x2b5933(0xa8)]()[_0x2b5933(0xd2)](0x24)[_0x2b5933(0xab)](0x2,0x8);}_0x5ad3db[_0x450e7f(0x153)]=_0x450e7f(0xcb);var _0x295281={'tag':'svg','attrs':{'fill':_0x450e7f(0x157),'viewBox':'0\x200\x2016\x2016','width':_0x450e7f(0x194),'height':_0x450e7f(0x194)},'children':[{'tag':_0x450e7f(0x103),'attrs':{'fill':_0x450e7f(0xc9),'d':_0x450e7f(0x168)}},{'tag':_0x450e7f(0x103),'attrs':{'fill':_0x450e7f(0xc9),'d':_0x450e7f(0x139),'fillRule':'evenodd','clipRule':_0x450e7f(0xf9)}}]},_0x34a692=_0x19c262[_0x450e7f(0x18f)](function(_0x46f50c,_0x1c6c2e){var _0x3fbefc=_0x450e7f;return _0x19c262[_0x3fbefc(0x11d)](_0x5ad3db,Object[_0x3fbefc(0xf7)]({},_0x46f50c,{'id':_0x3fbefc(0x175),'ref':_0x1c6c2e,'icon':_0x295281}));});_0x34a692[_0x450e7f(0x153)]=_0x450e7f(0x123);var _0xcd29b1=Object['getOwnPropertyDescriptor'],_0x57028e=(_0x21d8bf,_0x56b872,_0x50b974,_0x3f4d76)=>{for(var _0x1b999c=_0x3f4d76>0x1?void 0x0:_0x3f4d76?_0xcd29b1(_0x56b872,_0x50b974):_0x56b872,_0x11c668=_0x21d8bf['length']-0x1,_0x4ee7e1;_0x11c668>=0x0;_0x11c668--)(_0x4ee7e1=_0x21d8bf[_0x11c668])&&(_0x1b999c=_0x4ee7e1(_0x1b999c)||_0x1b999c);return _0x1b999c;},_0x5a2b3c=(_0x1e887d,_0x30bf87)=>(_0x36e5ac,_0x35a3d3)=>_0x30bf87(_0x36e5ac,_0x35a3d3,_0x1e887d);_0x2ae9b9[_0x450e7f(0x12d)]=class extends _0x2b474e[_0x450e7f(0xbf)]{constructor(_0x5ec05b,_0x1ac046,_0xe345dc){var _0x30985d=_0x450e7f;super(),_0x2f1d3f(this,_0x30985d(0xca),new Map()),(this['_univerInstanceService']=_0x5ec05b,this[_0x30985d(0xf5)]=_0x1ac046,this[_0x30985d(0x11e)]=_0xe345dc,this[_0x30985d(0xd0)]());}async['getLiveShareCoordinator'](_0x38278c){var _0x1609a3=_0x450e7f;return this['_entities']['has'](_0x38278c)||await this[_0x1609a3(0x146)](_0x38278c),this['_entities'][_0x1609a3(0x120)](_0x38278c);}['_init'](){var _0x473ec7=_0x450e7f;this[_0x473ec7(0x15a)][_0x473ec7(0x112)](_0x2b474e['UniverInstanceType'][_0x473ec7(0xf6)])[_0x473ec7(0x166)](_0x46520d['takeUntil'](this['dispose$']))[_0x473ec7(0x11b)](async _0x3b1185=>{var _0x548020=_0x473ec7;const _0x46fc93=_0x3b1185[_0x548020(0x154)]();this[_0x548020(0xca)][_0x548020(0x178)](_0x46fc93)||this[_0x548020(0x146)](_0x46fc93);}),this[_0x473ec7(0x15a)]['getTypeOfUnitDisposed$'](_0x2b474e[_0x473ec7(0x109)][_0x473ec7(0xf6)])[_0x473ec7(0x166)](_0x46520d['takeUntil'](this['dispose$']))['subscribe'](_0x2a1aac=>{var _0x28ffbd=_0x473ec7;const _0x42a374=_0x2a1aac['getUnitId'](),_0x1db863=this['_entities'][_0x28ffbd(0x120)](_0x42a374);_0x1db863==null||_0x1db863[_0x28ffbd(0x126)]();});}async['_startLiveShareCoordinator'](_0x2a36af){var _0x3d2486=_0x450e7f;const _0x410f17=await this[_0x3d2486(0x11e)][_0x3d2486(0xb8)](_0x2a36af),_0x54b293=this[_0x3d2486(0xf5)][_0x3d2486(0xe1)](_0x2ae9b9[_0x3d2486(0x13c)],_0x2a36af,_0x410f17);return _0x54b293[_0x3d2486(0xde)](),this['_entities'][_0x3d2486(0x10b)](_0x2a36af,_0x54b293),_0x54b293;}},_0x2ae9b9['LiveShareController']=_0x57028e([_0x5a2b3c(0x0,_0x2b474e[_0x450e7f(0x12e)]),_0x5a2b3c(0x1,_0x2b474e[_0x450e7f(0x108)](_0x2b474e[_0x450e7f(0xb1)])),_0x5a2b3c(0x2,_0x2b474e[_0x450e7f(0x108)](_0x4803b3[_0x450e7f(0x18d)]))],_0x2ae9b9[_0x450e7f(0x12d)]);var _0x4c1ccf=(_0x2b7c37=>(_0x2b7c37[_0x450e7f(0x18a)]=_0x450e7f(0xb0),_0x2b7c37[_0x450e7f(0x16c)]=_0x450e7f(0xf3),_0x2b7c37['FOLLOWING']=_0x450e7f(0x14a),_0x2b7c37[_0x450e7f(0x10e)]=_0x450e7f(0x158),_0x2b7c37[_0x450e7f(0xb2)]=_0x450e7f(0xb7),_0x2b7c37))(_0x4c1ccf||{});const _0x53108e='SAME_OPERATION_SHARE_INTERVAL',_0x2d12cd=0xc8;_0x2ae9b9[_0x450e7f(0x13c)]=class extends _0x2b474e[_0x450e7f(0xbf)]{constructor(_0x5a433b,_0x84b14f,_0x1c0831,_0x548d4d,_0x18513c){var _0xb1690b=_0x450e7f;super(),_0x2f1d3f(this,_0xb1690b(0xaa),new _0x3538d5['BehaviorSubject'](_0xb1690b(0xf3))),_0x2f1d3f(this,'status$',this[_0xb1690b(0xaa)][_0xb1690b(0x125)]()),_0x2f1d3f(this,_0xb1690b(0xd0),!0x1),_0x2f1d3f(this,_0xb1690b(0x181),null),_0x2f1d3f(this,_0xb1690b(0x14c),null),(this[_0xb1690b(0x171)]=_0x5a433b,this[_0xb1690b(0xd7)]=_0x84b14f,this[_0xb1690b(0x149)]=_0x1c0831,this['_liveShareService']=_0x548d4d,this[_0xb1690b(0x142)]=_0x18513c);}get[_0x450e7f(0x17d)](){var _0x25a494=_0x450e7f;return this[_0x25a494(0xaa)][_0x25a494(0x13a)]();}[_0x450e7f(0x126)](){var _0xdf8322=_0x450e7f,_0xe2d57;(_0xe2d57=this['_commandDisposable'])==null||_0xe2d57[_0xdf8322(0x126)](),this['_status$'][_0xdf8322(0x16d)]('idle'),this[_0xdf8322(0xaa)][_0xdf8322(0x138)]();}['init'](){var _0x4a8470=_0x450e7f;this['_init']||(this[_0x4a8470(0xd0)]=!0x0,this[_0x4a8470(0xd7)][_0x4a8470(0x121)][_0x4a8470(0x166)](_0x46520d[_0x4a8470(0xa1)](this[_0x4a8470(0xc6)]))['subscribe'](_0x2b3bf8=>{var _0x166677=_0x4a8470;switch(_0x2b3bf8){case _0x4803b3['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case _0x4803b3[_0x166677(0xeb)][_0x166677(0x15c)]:this[_0x166677(0xef)]();break;}}),this[_0x4a8470(0xd7)][_0x4a8470(0xfb)][_0x4a8470(0x166)](_0x46520d[_0x4a8470(0xa1)](this[_0x4a8470(0xc6)]))['subscribe'](_0x20bdf4=>{var _0xd9dfd1=_0x4a8470;const {eventID:_0x1f8759}=_0x20bdf4;switch(_0x1f8759){case _0x1217f8['CollaborationEvent'][_0xd9dfd1(0xbd)]:this[_0xd9dfd1(0x127)](_0x20bdf4);break;case _0x1217f8[_0xd9dfd1(0x16f)][_0xd9dfd1(0x18e)]:this[_0xd9dfd1(0x167)](_0x20bdf4);break;case _0x1217f8[_0xd9dfd1(0x16f)][_0xd9dfd1(0x156)]:this['_handleTerminate']();break;case _0x1217f8[_0xd9dfd1(0x16f)][_0xd9dfd1(0x161)]:this[_0xd9dfd1(0xbc)](_0x20bdf4);break;}}));}['tryStartPresenting'](){var _0xcba22a=_0x450e7f;this[_0xcba22a(0xd7)][_0xcba22a(0xd4)]({'eventID':_0x1217f8[_0xcba22a(0x16f)][_0xcba22a(0x151)],'data':{'unitID':this[_0xcba22a(0x171)],'userID':this['_collabSession'][_0xcba22a(0xe5)]()}},this[_0xcba22a(0x171)]);}['stopPresenting'](){var _0x2175b4=_0x450e7f;this[_0x2175b4(0x17d)]==='presenting'&&(this[_0x2175b4(0xaa)][_0x2175b4(0x16d)](_0x2175b4(0xf3)),this[_0x2175b4(0xd7)][_0x2175b4(0xd4)]({'eventID':_0x1217f8['CollaborationEvent'][_0x2175b4(0x156)],'data':{'unitID':this[_0x2175b4(0x171)]}},this[_0x2175b4(0x171)]));}[_0x450e7f(0x180)](){var _0x14bd58=_0x450e7f;this['_status']==='not-following'&&(this[_0x14bd58(0xaa)][_0x14bd58(0x16d)](_0x14bd58(0x14a)),this[_0x14bd58(0x173)]());}[_0x450e7f(0xf1)](){var _0x1cb848=_0x450e7f;this[_0x1cb848(0x17d)]===_0x1cb848(0x14a)&&this[_0x1cb848(0x115)]();}['_handleNewHost'](_0x646e25){var _0x583c5c=_0x450e7f;const {presenter:_0x2d971b}=_0x646e25[_0x583c5c(0x10f)],_0x1f0f46=this[_0x583c5c(0xd7)][_0x583c5c(0xe5)]();this[_0x583c5c(0x14c)]=_0x2d971b,_0x2d971b===_0x1f0f46?(this[_0x583c5c(0x115)](),this['_startPresenting']()):this[_0x583c5c(0x17d)]!==_0x583c5c(0x158)&&(this['_stopPresenting'](),this[_0x583c5c(0x173)]());}[_0x450e7f(0x106)](){var _0x1825a7=_0x450e7f;const _0x364c1e={'eventID':_0x1217f8['CollaborationEvent'][_0x1825a7(0x16e)]};this['_collabSession'][_0x1825a7(0xd4)](_0x364c1e,this['_unitID']);}[_0x450e7f(0x14f)](){var _0x46d6e2=_0x450e7f;this[_0x46d6e2(0x14c)]=null,this[_0x46d6e2(0x17d)]!==_0x46d6e2(0xb7)&&this['_beIdle']();}[_0x450e7f(0xbc)](_0x207a52){var _0x420f41=_0x450e7f;if(this[_0x420f41(0x17d)]==='following'&&this[_0x420f41(0x14c)]===_0x207a52['data'][_0x420f41(0xc1)]){const _0x49f6b1=_0x1217f8[_0x420f41(0xe4)](_0x207a52[_0x420f41(0x10f)])[_0x420f41(0xba)][_0x420f41(0xd3)]()['find'](_0x184a2=>_0x184a2['id']===_0x285408['InsertSheetMutation']['id']);if(_0x49f6b1){const _0x31c881=_0x49f6b1[_0x420f41(0x140)][_0x420f41(0x14e)],_0x1d24b0=_0x49f6b1[_0x420f41(0x140)][_0x420f41(0x17a)]['id'];setTimeout(()=>{var _0x91498e=_0x420f41;this[_0x91498e(0x142)]['executeCommand'](_0x285408[_0x91498e(0xf4)]['id'],{'unitId':_0x31c881,'subUnitId':_0x1d24b0},{'fromCollab':!0x0});});}}}[_0x450e7f(0x110)](){var _0x545ef5=_0x450e7f;this[_0x545ef5(0xaa)][_0x545ef5(0x16d)](_0x545ef5(0xb7));const _0x1bb7e0=new Map(),_0x4dac13=this[_0x545ef5(0x181)]=new _0x2b474e[(_0x545ef5(0x187))]();_0x4dac13['add'](_0x2b474e[_0x545ef5(0x11c)](()=>{var _0x1f102e=_0x545ef5;_0x1bb7e0[_0x1f102e(0x176)](_0x56e5b6=>_0x56e5b6[_0x1f102e(0x138)]()),_0x1bb7e0[_0x1f102e(0x117)]();})),_0x4dac13['add'](this['_commandService'][_0x545ef5(0x184)](_0x4d2f44=>{var _0x180f40=_0x545ef5,_0x4754d8;if(_0x4d2f44[_0x180f40(0xa4)]!==_0x2b474e['CommandType'][_0x180f40(0xd5)]||!this[_0x180f40(0xe3)][_0x180f40(0x193)](_0x4d2f44['id']))return;const {id:_0x14a8d0}=_0x4d2f44;let _0x37bd49;_0x1bb7e0[_0x180f40(0x178)](_0x14a8d0)?_0x37bd49=_0x1bb7e0[_0x180f40(0x120)](_0x14a8d0):(_0x37bd49=new _0x3538d5['Subject'](),_0x1bb7e0[_0x180f40(0x10b)](_0x14a8d0,_0x37bd49),_0x37bd49['pipe'](_0x46520d['throttleTime']((_0x4754d8=this[_0x180f40(0x149)]['getConfig'](_0x53108e))!=null?_0x4754d8:_0x2d12cd,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x180f40(0x11b)](_0x589c06=>{var _0x5bf7e1=_0x180f40;this[_0x5bf7e1(0xd7)]['send']({'eventID':_0x1217f8[_0x5bf7e1(0x16f)][_0x5bf7e1(0x18e)],'data':{'unitID':this[_0x5bf7e1(0x171)],'operations':{[_0x589c06['id']]:{'id':_0x589c06['id'],'params':JSON[_0x5bf7e1(0x122)](_0x589c06['params'])}}}},this[_0x5bf7e1(0x171)]);})),_0x37bd49['next'](_0x4d2f44);})),this[_0x545ef5(0xe3)][_0x545ef5(0x183)](this['_unitID'])['forEach'](_0x44873f=>this[_0x545ef5(0xd7)][_0x545ef5(0xd4)]({'eventID':_0x1217f8[_0x545ef5(0x16f)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x44873f['id']]:{'id':_0x44873f['id'],'params':JSON[_0x545ef5(0x122)](_0x44873f[_0x545ef5(0x140)])}}}},this[_0x545ef5(0x171)]));}[_0x450e7f(0x174)](){var _0x3e8d93=_0x450e7f,_0x39efad;this[_0x3e8d93(0xaa)][_0x3e8d93(0x16d)]('idle'),(_0x39efad=this[_0x3e8d93(0x181)])==null||_0x39efad[_0x3e8d93(0x126)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0xc7ca0b=_0x450e7f,_0x4fff19;(_0x4fff19=this['_commandDisposable'])==null||_0x4fff19[_0xc7ca0b(0x126)](),this[_0xc7ca0b(0xaa)][_0xc7ca0b(0x16d)]('following');}['_beIdle'](){var _0x781dfa=_0x450e7f,_0x491906;this['_status$'][_0x781dfa(0x16d)](_0x781dfa(0xf3)),(_0x491906=this[_0x781dfa(0x181)])==null||_0x491906[_0x781dfa(0x126)](),this[_0x781dfa(0x181)]=null;}[_0x450e7f(0x115)](){var _0x35069b=_0x450e7f,_0x2ee7b2;this[_0x35069b(0xaa)][_0x35069b(0x16d)](_0x35069b(0x158)),(_0x2ee7b2=this[_0x35069b(0x181)])==null||_0x2ee7b2[_0x35069b(0x126)]();}[_0x450e7f(0x167)](_0x4b948c){var _0x444a08=_0x450e7f;if([_0x444a08(0xb7),_0x444a08(0x158),_0x444a08(0xb0)][_0x444a08(0xaf)](this[_0x444a08(0x17d)])||!_0x4b948c['data'][_0x444a08(0x136)]||_0x4b948c['data'][_0x444a08(0x136)]===this[_0x444a08(0xd7)][_0x444a08(0xe5)]())return;this[_0x444a08(0x17d)]===_0x444a08(0xf3)&&this[_0x444a08(0x173)]();const _0x16ce21=_0x4b948c['data']['operations'];Object[_0x444a08(0x186)](_0x16ce21)[_0x444a08(0x176)](_0x2e87c4=>{var _0x1f3aa4=_0x444a08;this[_0x1f3aa4(0x142)]['executeCommand'](_0x2e87c4['id'],_0x2e87c4[_0x1f3aa4(0x140)]?JSON[_0x1f3aa4(0x116)](_0x2e87c4['params']):null,{'fromCollab':!0x0});});}[_0x450e7f(0x172)](){var _0x1c2506=_0x450e7f,_0x215e93;this[_0x1c2506(0xaa)][_0x1c2506(0x16d)](_0x1c2506(0xb0)),(_0x215e93=this[_0x1c2506(0x181)])==null||_0x215e93[_0x1c2506(0x126)]();}[_0x450e7f(0xef)](){var _0x514512=_0x450e7f;this[_0x514512(0xaa)][_0x514512(0x16d)](_0x514512(0xf3)),this[_0x514512(0x106)]();}},_0x2ae9b9[_0x450e7f(0x13c)]=_0x57028e([_0x5a2b3c(0x2,_0x2b474e['IConfigService']),_0x5a2b3c(0x3,_0x2b474e['Inject'](_0x187d0d)),_0x5a2b3c(0x4,_0x2b474e['ICommandService'])],_0x2ae9b9[_0x450e7f(0x13c)]);function _0x44e069(){var _0x46e100=_0x450e7f;const _0x297d98=_0x29bae6[_0x46e100(0xc3)](_0x2ae9b9['LiveShareController']),_0x15bfb3=_0x29bae6['useDependency'](_0x2b474e[_0x46e100(0x12e)]),_0x6ed1f7=_0x29bae6[_0x46e100(0xb5)](()=>_0x15bfb3['getCurrentTypeOfUnit$'](_0x2b474e[_0x46e100(0x109)][_0x46e100(0xf6)]),void 0x0,!0x1,[]),[_0xfd3e92,_0x82de6f]=_0x19c262[_0x46e100(0x124)](null),[_0x4130dc,_0x3907c5]=_0x19c262[_0x46e100(0x124)](_0x4c1ccf[_0x46e100(0x16c)]),_0xfbdf8c=_0x19c262[_0x46e100(0xac)](null);return _0x19c262[_0x46e100(0xe7)](()=>(_0x6ed1f7&&_0x297d98[_0x46e100(0xb3)](_0x6ed1f7['getUnitId']())[_0x46e100(0xe8)](_0x2c1f0a=>{var _0x469814=_0x46e100;_0x82de6f(_0x2c1f0a),_0xfbdf8c[_0x469814(0x190)]=_0x2c1f0a['status$'][_0x469814(0x11b)](_0x19299=>{_0x3907c5(_0x19299);});}),()=>{var _0xacecb4=_0x46e100,_0x395575;(_0x395575=_0xfbdf8c[_0xacecb4(0x190)])==null||_0x395575[_0xacecb4(0xfe)](),_0xfbdf8c[_0xacecb4(0x190)]=null;}),[_0x6ed1f7,_0x297d98]),_0xfd3e92?_0x5ed8ab[_0x46e100(0x15e)](_0x449b7f[_0x46e100(0xda)],{'align':_0x46e100(0x10d),'disabled':_0x4130dc===_0x4c1ccf[_0x46e100(0x18a)],'className':_0x46e100(0xcc),'overlay':_0x5ed8ab[_0x46e100(0x15e)](_0x13e213,{'status':_0x4130dc,'coordinator':_0xfd3e92}),'children':_0x5ed8ab[_0x46e100(0x15e)](_0x46e100(0x170),{'className':_0x449b7f[_0x46e100(0x188)](_0x46e100(0xbb),{'univer-cursor-not-allowed':_0x4130dc===_0x4c1ccf['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4130dc!==_0x4c1ccf[_0x46e100(0x18a)]}),'type':_0x46e100(0x170),'children':_0x5ed8ab[_0x46e100(0x15e)](_0x34a692,{'className':'univer-size-4'})})}):null;}function _0x13e213(_0x8f24b5){var _0x5a3727=_0x450e7f;const {status:_0x400e66,coordinator:_0x4ad583}=_0x8f24b5;switch(_0x400e66){case _0x4c1ccf[_0x5a3727(0x16c)]:return _0x5ed8ab[_0x5a3727(0x15e)](_0x71451f,{'coordinator':_0x4ad583});case _0x4c1ccf[_0x5a3727(0x12c)]:return _0x5ed8ab['jsx'](_0x2a5fc6,{'coordinator':_0x4ad583});case _0x4c1ccf['NOT_FOLLOWING']:return _0x5ed8ab[_0x5a3727(0x15e)](_0x33f422,{'coordinator':_0x4ad583});case _0x4c1ccf[_0x5a3727(0x18a)]:return _0x5ed8ab['jsx'](_0x360507,{});case _0x4c1ccf['PRESENTING']:return _0x5ed8ab['jsx'](_0x103003,{'coordinator':_0x4ad583});default:return null;}}function _0x71451f(_0x35470e){var _0x1adf61=_0x450e7f;const {coordinator:_0xad3020}=_0x35470e;return _0x5ed8ab['jsxs'](_0x5ed8ab[_0x1adf61(0x12b)],{'children':[_0x5ed8ab[_0x1adf61(0x15e)](_0x1adf61(0x189),{'className':_0x1adf61(0xea),'children':_0x1adf61(0x132)}),_0x5ed8ab['jsx'](_0x449b7f[_0x1adf61(0x179)],{'onClick':()=>_0xad3020[_0x1adf61(0xd8)](),'children':_0x1adf61(0xdd)})]});}function _0x2a5fc6(_0x3ae576){var _0x16f713=_0x450e7f;const {coordinator:_0x17ce6f}=_0x3ae576;return _0x5ed8ab[_0x16f713(0xa0)](_0x5ed8ab[_0x16f713(0x12b)],{'children':[_0x5ed8ab[_0x16f713(0x15e)](_0x16f713(0x189),{'className':_0x16f713(0xea),'children':_0x16f713(0x195)}),_0x5ed8ab[_0x16f713(0x15e)](_0x449b7f[_0x16f713(0x179)],{'onClick':()=>_0x17ce6f[_0x16f713(0xf1)](),'children':_0x16f713(0x12a)})]});}function _0x33f422(_0x3ca8e5){var _0x4bd3c2=_0x450e7f;const {coordinator:_0x592aca}=_0x3ca8e5;return _0x5ed8ab[_0x4bd3c2(0xa0)](_0x5ed8ab[_0x4bd3c2(0x12b)],{'children':[_0x5ed8ab['jsx'](_0x4bd3c2(0x189),{'className':_0x4bd3c2(0xea),'children':_0x4bd3c2(0x150)}),_0x5ed8ab[_0x4bd3c2(0x15e)](_0x449b7f[_0x4bd3c2(0x179)],{'variant':_0x4bd3c2(0x14d),'onClick':()=>_0x592aca[_0x4bd3c2(0x180)](),'children':_0x4bd3c2(0x169)})]});}function _0x103003(_0xa73907){var _0x41e2d4=_0x450e7f;const {coordinator:_0x4f3843}=_0xa73907;return _0x5ed8ab[_0x41e2d4(0xa0)](_0x5ed8ab[_0x41e2d4(0x12b)],{'children':[_0x5ed8ab['jsx'](_0x41e2d4(0x189),{'className':_0x41e2d4(0xea),'children':_0x41e2d4(0xad)}),_0x5ed8ab[_0x41e2d4(0x15e)](_0x449b7f[_0x41e2d4(0x179)],{'variant':_0x41e2d4(0xe2),'onClick':()=>_0x4f3843['stopPresenting'](),'children':_0x41e2d4(0x160)})]});}function _0x360507(){var _0x32c106=_0x450e7f;return _0x5ed8ab['jsx'](_0x5ed8ab[_0x32c106(0x12b)],{'children':_0x32c106(0xc2)});}var _0x192d5a=Object[_0x450e7f(0x191)],_0xcab7d9=(_0x129da8,_0x1666be,_0x37e49d,_0xe7728d)=>{var _0x545c00=_0x450e7f;for(var _0x1d444e=_0xe7728d>0x1?void 0x0:_0xe7728d?_0x192d5a(_0x1666be,_0x37e49d):_0x1666be,_0x47eed6=_0x129da8[_0x545c00(0xf8)]-0x1,_0x3bc2fa;_0x47eed6>=0x0;_0x47eed6--)(_0x3bc2fa=_0x129da8[_0x47eed6])&&(_0x1d444e=_0x3bc2fa(_0x1d444e)||_0x1d444e);return _0x1d444e;},_0x38ccc4=(_0x185960,_0x19eb32)=>(_0x45a578,_0x1325b9)=>_0x19eb32(_0x45a578,_0x1325b9,_0x185960);_0x2ae9b9['DesktopLiveShareController']=class extends _0x2b474e[_0x450e7f(0x131)]{constructor(_0x510547,_0x19d7fe){var _0xe48a11=_0x450e7f;super(),this['_injector']=_0x510547,this[_0xe48a11(0x111)]=_0x19d7fe,this[_0xe48a11(0x18c)]();}[_0x450e7f(0x18c)](){var _0x37e00d=_0x450e7f;this[_0x37e00d(0x18b)](this['_uiPartsService'][_0x37e00d(0xa2)](_0x29bae6[_0x37e00d(0x144)][_0x37e00d(0xcd)],()=>_0x29bae6[_0x37e00d(0x159)](_0x44e069,this[_0x37e00d(0xf5)])));}},_0x2ae9b9[_0x450e7f(0xc7)]=_0xcab7d9([_0x38ccc4(0x0,_0x2b474e[_0x450e7f(0x108)](_0x2b474e[_0x450e7f(0xb1)])),_0x38ccc4(0x1,_0x29bae6[_0x450e7f(0x13b)])],_0x2ae9b9['DesktopLiveShareController']);var _0x101e53=Object[_0x450e7f(0x163)],_0x4265a8=Object[_0x450e7f(0x191)],_0x14de8b=(_0x2b6bd2,_0x3bd292,_0x327b53)=>_0x3bd292 in _0x2b6bd2?_0x101e53(_0x2b6bd2,_0x3bd292,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x327b53}):_0x2b6bd2[_0x3bd292]=_0x327b53,_0xe653d4=(_0x1576aa,_0x7fcffa,_0x596565,_0x114869)=>{var _0x80369b=_0x450e7f;for(var _0x2bc716=_0x114869>0x1?void 0x0:_0x114869?_0x4265a8(_0x7fcffa,_0x596565):_0x7fcffa,_0x5eea43=_0x1576aa[_0x80369b(0xf8)]-0x1,_0x2767d2;_0x5eea43>=0x0;_0x5eea43--)(_0x2767d2=_0x1576aa[_0x5eea43])&&(_0x2bc716=_0x2767d2(_0x2bc716)||_0x2bc716);return _0x2bc716;},_0x5f1a60=(_0x28f1e8,_0x2c80d5)=>(_0x22b764,_0x2e7b1e)=>_0x2c80d5(_0x22b764,_0x2e7b1e,_0x28f1e8),_0x3c8614=(_0x4dc510,_0x518946,_0x24fefb)=>_0x14de8b(_0x4dc510,typeof _0x518946!=_0x450e7f(0x15b)?_0x518946+'':_0x518946,_0x24fefb);const _0xbb4d77=_0x450e7f(0x104);_0x2ae9b9[_0x450e7f(0xfc)]=class extends _0x2b474e[_0x450e7f(0x16b)]{constructor(_0x5c7bef=_0x5152d0,_0x299436,_0xf8747){var _0x3873b9=_0x450e7f;super(),this[_0x3873b9(0x100)]=_0x5c7bef,this[_0x3873b9(0xf5)]=_0x299436,this[_0x3873b9(0x149)]=_0xf8747;const {..._0x1c157c}=_0x2b474e[_0x3873b9(0x12f)]({},_0x5152d0,this['_config']);this[_0x3873b9(0x149)][_0x3873b9(0x13f)](_0x27a9a8,_0x1c157c);}[_0x450e7f(0xff)](){var _0x5a3239=_0x450e7f;_0x2b474e[_0x5a3239(0xdf)](this['_injector'],_0x2b474e[_0x5a3239(0x101)]([[_0x187d0d],[_0x2ae9b9['LiveShareController']],[_0x8375be],[_0x2ae9b9[_0x5a3239(0xc7)]]],this[_0x5a3239(0x100)]['override'])),_0x2b474e[_0x5a3239(0x10c)](this[_0x5a3239(0xf5)],[[_0x8375be]]);}['onRendered'](){var _0x7958f0=_0x450e7f;_0x2b474e[_0x7958f0(0x10c)](this[_0x7958f0(0xf5)],[[_0x2ae9b9[_0x7958f0(0xc7)]]]);}},_0x3c8614(_0x2ae9b9['UniverLiveSharePlugin'],'type',_0x2b474e['UniverInstanceType']['UNIVER_UNKNOWN']),_0x3c8614(_0x2ae9b9[_0x450e7f(0xfc)],'pluginName',_0xbb4d77),_0x2ae9b9['UniverLiveSharePlugin']=_0xe653d4([_0x2b474e['DependentOn'](_0x4803b3[_0x450e7f(0x102)]),_0x5f1a60(0x1,_0x2b474e[_0x450e7f(0x108)](_0x2b474e[_0x450e7f(0xb1)])),_0x5f1a60(0x2,_0x2b474e[_0x450e7f(0x143)])],_0x2ae9b9[_0x450e7f(0xfc)]),_0x2ae9b9[_0x450e7f(0xdb)]=_0x44e069,_0x2ae9b9[_0x450e7f(0xb9)]=_0x187d0d,_0x2ae9b9[_0x450e7f(0xa3)]=_0x4c1ccf,Object[_0x450e7f(0x163)](_0x2ae9b9,Symbol[_0x450e7f(0xd9)],{'value':_0x450e7f(0x135)});}));
1
+ function _0x545f(_0x42516d,_0x5415f3){var _0x575241=_0x5752();return _0x545f=function(_0x545ff5,_0x131813){_0x545ff5=_0x545ff5-0x115;var _0x20ccdf=_0x575241[_0x545ff5];return _0x20ccdf;},_0x545f(_0x42516d,_0x5415f3);}(function(_0x308c09,_0x1ff32f){var _0x477003=_0x545f,_0x1b695b=_0x308c09();while(!![]){try{var _0x81c546=-parseInt(_0x477003(0x1ac))/0x1*(-parseInt(_0x477003(0x1c7))/0x2)+parseInt(_0x477003(0x176))/0x3*(parseInt(_0x477003(0x204))/0x4)+-parseInt(_0x477003(0x157))/0x5*(-parseInt(_0x477003(0x1c4))/0x6)+parseInt(_0x477003(0x1fe))/0x7*(parseInt(_0x477003(0x139))/0x8)+parseInt(_0x477003(0x1a8))/0x9*(parseInt(_0x477003(0x175))/0xa)+-parseInt(_0x477003(0x156))/0xb+-parseInt(_0x477003(0x17d))/0xc*(parseInt(_0x477003(0x192))/0xd);if(_0x81c546===_0x1ff32f)break;else _0x1b695b['push'](_0x1b695b['shift']());}catch(_0x48db75){_0x1b695b['push'](_0x1b695b['shift']());}}}(_0x5752,0x7a492),function(_0xc6fcc9,_0x17172c){var _0x34bf3f=_0x545f;typeof exports==_0x34bf3f(0x14d)&&typeof module<'u'?_0x17172c(exports,require(_0x34bf3f(0x13e)),require('@univerjs/core'),require(_0x34bf3f(0x1a7)),require('@univerjs/sheets-ui'),require(_0x34bf3f(0x152)),require(_0x34bf3f(0x17b)),require('@univerjs/design'),require(_0x34bf3f(0x1cd)),require(_0x34bf3f(0x11f)),require(_0x34bf3f(0x13b)),require(_0x34bf3f(0x191))):typeof define==_0x34bf3f(0x1b7)&&define[_0x34bf3f(0x1de)]?define([_0x34bf3f(0x162),_0x34bf3f(0x13e),_0x34bf3f(0x1b4),_0x34bf3f(0x1a7),_0x34bf3f(0x1c9),_0x34bf3f(0x152),_0x34bf3f(0x17b),_0x34bf3f(0x117),'react',_0x34bf3f(0x11f),'rxjs',_0x34bf3f(0x191)],_0x17172c):(_0xc6fcc9=typeof globalThis<'u'?globalThis:_0xc6fcc9||self,_0x17172c(_0xc6fcc9[_0x34bf3f(0x14e)]={},_0xc6fcc9[_0x34bf3f(0x1b5)],_0xc6fcc9[_0x34bf3f(0x127)],_0xc6fcc9[_0x34bf3f(0x207)],_0xc6fcc9[_0x34bf3f(0x18a)],_0xc6fcc9['UniverUi'],_0xc6fcc9[_0x34bf3f(0x154)],_0xc6fcc9['UniverDesign'],_0xc6fcc9[_0x34bf3f(0x154)],_0xc6fcc9[_0x34bf3f(0x174)],_0xc6fcc9[_0x34bf3f(0x13b)],_0xc6fcc9['rxjs'][_0x34bf3f(0x1f0)]));}(this,function(_0x2e0303,_0x21fb35,_0x42d3cb,_0x3ba85f,_0x1670e9,_0x5a3d51,_0x3d0e35,_0x494086,_0x1a6b8c,_0x50232c,_0x18e5fa,_0x59f70e){'use strict';var _0x38ea04=_0x545f;var _0x4530b6=Object[_0x38ea04(0x11b)],_0x1faee4=(_0x5315c4,_0xd5b28a,_0x568a5b)=>_0xd5b28a in _0x5315c4?_0x4530b6(_0x5315c4,_0xd5b28a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x568a5b}):_0x5315c4[_0xd5b28a]=_0x568a5b,_0x183ce4=(_0x51711b,_0x1655a8,_0xcb3855)=>_0x1faee4(_0x51711b,typeof _0x1655a8!=_0x38ea04(0x128)?_0x1655a8+'':_0x1655a8,_0xcb3855);const _0x4cb5d5=_0x38ea04(0x1d8),_0x1e85bb={};class _0x4f7ebf extends _0x42d3cb['Disposable']{constructor(){var _0x5ccf90=_0x38ea04;super(...arguments),_0x183ce4(this,_0x5ccf90(0x1e0),new Set()),_0x183ce4(this,_0x5ccf90(0x182),new Set());}[_0x38ea04(0x1d2)](_0x1ea625){var _0x490c47=_0x38ea04;return this[_0x490c47(0x1e0)][_0x490c47(0x1af)](_0x1ea625),_0x42d3cb['toDisposable'](()=>this[_0x490c47(0x1e0)][_0x490c47(0x124)](_0x1ea625));}[_0x38ea04(0x198)](_0x4ea962){var _0x26b3a3=_0x38ea04;return this['_reporters'][_0x26b3a3(0x1af)](_0x4ea962),_0x42d3cb[_0x26b3a3(0x171)](()=>this[_0x26b3a3(0x182)][_0x26b3a3(0x124)](_0x4ea962));}[_0x38ea04(0x1fd)](_0x55b707){var _0x491e55=_0x38ea04;return this[_0x491e55(0x1e0)]['has'](_0x55b707);}[_0x38ea04(0x129)](_0x421607){var _0x412778=_0x38ea04;return Array[_0x412778(0x19a)](this[_0x412778(0x182)])['map'](_0x42dbb5=>_0x42dbb5(_0x421607));}}var _0x2f64d8=Object[_0x38ea04(0x1d6)],_0x246e44=(_0x467a8a,_0x2d30e7,_0x6f17a5,_0x207374)=>{for(var _0x8c681f=_0x207374>0x1?void 0x0:_0x207374?_0x2f64d8(_0x2d30e7,_0x6f17a5):_0x2d30e7,_0x55a3af=_0x467a8a['length']-0x1,_0x1ca937;_0x55a3af>=0x0;_0x55a3af--)(_0x1ca937=_0x467a8a[_0x55a3af])&&(_0x8c681f=_0x1ca937(_0x8c681f)||_0x8c681f);return _0x8c681f;},_0x24b89b=(_0x359a6a,_0x42f6ac)=>(_0x493051,_0x87883c)=>_0x42f6ac(_0x493051,_0x87883c,_0x359a6a);let _0xb8f5d0=class extends _0x42d3cb['Disposable']{constructor(_0x3dad08){var _0x490d72=_0x38ea04;super(),this[_0x490d72(0x1ad)]=_0x3dad08,this['_init']();}[_0x38ea04(0x1cf)](){var _0x34343d=_0x38ea04;[_0x1670e9[_0x34343d(0x1d4)]['id'],_0x1670e9[_0x34343d(0x120)]['id'],_0x3ba85f[_0x34343d(0x1a0)]['id']][_0x34343d(0x1d7)](_0x29de30=>{var _0x385311=_0x34343d;this['disposeWithMe'](this[_0x385311(0x1ad)][_0x385311(0x1d2)](_0x29de30));});}};_0xb8f5d0=_0x246e44([_0x24b89b(0x0,_0x42d3cb['Inject'](_0x4f7ebf))],_0xb8f5d0);var _0x53812d=function(){var _0x530087=_0x38ea04;return _0x53812d=Object[_0x530087(0x143)]||function(_0xf38ddf){var _0x278f6f=_0x530087;for(var _0x1229f9,_0x59e5e6=0x1,_0x1f9cb5=arguments[_0x278f6f(0x161)];_0x59e5e6<_0x1f9cb5;_0x59e5e6++){_0x1229f9=arguments[_0x59e5e6];for(var _0x5dda1a in _0x1229f9)Object['prototype'][_0x278f6f(0x16b)][_0x278f6f(0x11e)](_0x1229f9,_0x5dda1a)&&(_0xf38ddf[_0x5dda1a]=_0x1229f9[_0x5dda1a]);}return _0xf38ddf;},_0x53812d[_0x530087(0x173)](this,arguments);},_0x362b8a=function(_0x112530,_0x3eee16){var _0x4ffd12=_0x38ea04,_0x137ea9={};for(var _0xa424a6 in _0x112530)Object['prototype']['hasOwnProperty'][_0x4ffd12(0x11e)](_0x112530,_0xa424a6)&&_0x3eee16[_0x4ffd12(0x17a)](_0xa424a6)<0x0&&(_0x137ea9[_0xa424a6]=_0x112530[_0xa424a6]);if(_0x112530!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x2d8bc8=0x0,_0xa424a6=Object[_0x4ffd12(0x1bc)](_0x112530);_0x2d8bc8<_0xa424a6[_0x4ffd12(0x161)];_0x2d8bc8++)_0x3eee16[_0x4ffd12(0x17a)](_0xa424a6[_0x2d8bc8])<0x0&&Object[_0x4ffd12(0x119)][_0x4ffd12(0x1b1)][_0x4ffd12(0x11e)](_0x112530,_0xa424a6[_0x2d8bc8])&&(_0x137ea9[_0xa424a6[_0x2d8bc8]]=_0x112530[_0xa424a6[_0x2d8bc8]]);}return _0x137ea9;},_0x25a05c=_0x1a6b8c[_0x38ea04(0x20c)](function(_0x3a1edd,_0x190b1a){var _0x44a00d=_0x38ea04,_0x1c2535=_0x3a1edd[_0x44a00d(0x1a2)],_0x1d0485=_0x3a1edd['id'],_0x573f43=_0x3a1edd[_0x44a00d(0x195)],_0x5eac33=_0x3a1edd[_0x44a00d(0x1a3)],_0x4a7eca=_0x362b8a(_0x3a1edd,[_0x44a00d(0x1a2),'id',_0x44a00d(0x195),'extend']),_0x119830=_0x44a00d(0x17c)[_0x44a00d(0x208)](_0x1d0485,'\x20')[_0x44a00d(0x208)](_0x573f43||'')[_0x44a00d(0x1a1)](),_0x251a93=_0x1a6b8c[_0x44a00d(0x1eb)]('_'[_0x44a00d(0x208)](_0x2f7e4e()));return _0x4968ab(_0x1c2535,''['concat'](_0x1d0485),{'defIds':_0x1c2535[_0x44a00d(0x190)],'idSuffix':_0x251a93['current']},_0x53812d({'ref':_0x190b1a,'className':_0x119830},_0x4a7eca),_0x5eac33);});function _0x4968ab(_0x48d757,_0x2b6955,_0x519873,_0x13f8dc,_0x456b6a){var _0x5f1f46=_0x38ea04;return _0x1a6b8c['createElement'](_0x48d757[_0x5f1f46(0x12b)],_0x53812d(_0x53812d({'key':_0x2b6955},_0x431793(_0x48d757,_0x519873,_0x456b6a)),_0x13f8dc),(_0x72541f(_0x48d757,_0x519873)[_0x5f1f46(0x1c2)]||[])[_0x5f1f46(0x193)](function(_0x54c87b,_0x24a4da){var _0x46e90a=_0x5f1f46;return _0x4968ab(_0x54c87b,''[_0x46e90a(0x208)](_0x2b6955,'-')['concat'](_0x48d757['tag'],'-')[_0x46e90a(0x208)](_0x24a4da),_0x519873,void 0x0,_0x456b6a);}));}function _0x431793(_0x9cdbf5,_0x2ec418,_0x16ef1b){var _0x55d856=_0x38ea04,_0xf7687a=_0x53812d({},_0x9cdbf5[_0x55d856(0x203)]);_0x16ef1b!=null&&_0x16ef1b['colorChannel1']&&_0xf7687a[_0x55d856(0x1c0)]===_0x55d856(0x1ab)&&(_0xf7687a[_0x55d856(0x1c0)]=_0x16ef1b[_0x55d856(0x1ab)]),_0x9cdbf5['tag']===_0x55d856(0x145)&&_0xf7687a['id']&&(_0xf7687a['id']=_0xf7687a['id']+_0x2ec418[_0x55d856(0x13a)]),Object['entries'](_0xf7687a)[_0x55d856(0x1d7)](function(_0x3f67e6){var _0x23dac7=_0x55d856,_0x5c6fef=_0x3f67e6[0x0],_0x407142=_0x3f67e6[0x1];_0x5c6fef==='mask'&&typeof _0x407142=='string'&&(_0xf7687a[_0x5c6fef]=_0x407142[_0x23dac7(0x20b)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2ec418['idSuffix'],')')));});var _0x52cdc5=_0x2ec418[_0x55d856(0x190)];return!_0x52cdc5||_0x52cdc5[_0x55d856(0x161)]===0x0||(_0x9cdbf5[_0x55d856(0x12b)]===_0x55d856(0x1e8)&&_0xf7687a[_0x55d856(0x169)]&&(_0xf7687a[_0x55d856(0x169)]=_0xf7687a[_0x55d856(0x169)]+_0x2ec418[_0x55d856(0x13a)]),Object['entries'](_0xf7687a)[_0x55d856(0x1d7)](function(_0x1ba988){var _0x3ac8ae=_0x55d856,_0x1e45c1=_0x1ba988[0x0],_0x3cf345=_0x1ba988[0x1];typeof _0x3cf345==_0x3ac8ae(0x126)&&(_0xf7687a[_0x1e45c1]=_0x3cf345[_0x3ac8ae(0x20b)](/url\(#(.*)\)/,'url(#$1'[_0x3ac8ae(0x208)](_0x2ec418['idSuffix'],')')));})),_0xf7687a;}function _0x72541f(_0x44e3bf,_0x57487c){var _0x106569=_0x38ea04,_0x3ff985,_0x14fbc1=_0x57487c['defIds'];return!_0x14fbc1||_0x14fbc1[_0x106569(0x161)]===0x0?_0x44e3bf:_0x44e3bf[_0x106569(0x12b)]==='defs'&&(!((_0x3ff985=_0x44e3bf[_0x106569(0x1c2)])===null||_0x3ff985===void 0x0)&&_0x3ff985[_0x106569(0x161)])?_0x53812d(_0x53812d({},_0x44e3bf),{'children':_0x44e3bf[_0x106569(0x1c2)][_0x106569(0x193)](function(_0x556260){var _0x1a87b8=_0x106569;return typeof _0x556260[_0x1a87b8(0x203)]['id']==_0x1a87b8(0x126)&&_0x14fbc1&&_0x14fbc1[_0x1a87b8(0x17a)](_0x556260[_0x1a87b8(0x203)]['id'])>-0x1?_0x53812d(_0x53812d({},_0x556260),{'attrs':_0x53812d(_0x53812d({},_0x556260[_0x1a87b8(0x203)]),{'id':_0x556260['attrs']['id']+_0x57487c[_0x1a87b8(0x13a)]})}):_0x556260;})}):_0x44e3bf;}function _0x2f7e4e(){var _0x39e3f1=_0x38ea04;return Math['random']()['toString'](0x24)[_0x39e3f1(0x1f8)](0x2,0x8);}_0x25a05c[_0x38ea04(0x194)]=_0x38ea04(0x18f);var _0x4367e0={'tag':_0x38ea04(0x1f3),'attrs':{'fill':_0x38ea04(0x1ba),'viewBox':_0x38ea04(0x15b),'width':_0x38ea04(0x166),'height':_0x38ea04(0x166)},'children':[{'tag':'path','attrs':{'fill':_0x38ea04(0x1ec),'d':_0x38ea04(0x19d)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x38ea04(0x151),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x2ce6b9=_0x1a6b8c[_0x38ea04(0x20c)](function(_0x52ed37,_0x103b9a){var _0xc62722=_0x38ea04;return _0x1a6b8c['createElement'](_0x25a05c,Object[_0xc62722(0x143)]({},_0x52ed37,{'id':_0xc62722(0x1ee),'ref':_0x103b9a,'icon':_0x4367e0}));});_0x2ce6b9[_0x38ea04(0x194)]='LiveShareSingle';var _0x1099ca=Object['getOwnPropertyDescriptor'],_0x22ef8a=(_0x383b06,_0x3d3228,_0x2e16cb,_0xad2882)=>{var _0x4841b6=_0x38ea04;for(var _0x269533=_0xad2882>0x1?void 0x0:_0xad2882?_0x1099ca(_0x3d3228,_0x2e16cb):_0x3d3228,_0x5784ba=_0x383b06[_0x4841b6(0x161)]-0x1,_0xfc7ab7;_0x5784ba>=0x0;_0x5784ba--)(_0xfc7ab7=_0x383b06[_0x5784ba])&&(_0x269533=_0xfc7ab7(_0x269533)||_0x269533);return _0x269533;},_0x424375=(_0x598d97,_0x4d85ea)=>(_0x58f11b,_0x2c15bf)=>_0x4d85ea(_0x58f11b,_0x2c15bf,_0x598d97);_0x2e0303[_0x38ea04(0x1a6)]=class extends _0x42d3cb[_0x38ea04(0x1ef)]{constructor(_0x58c211,_0x2cf26c,_0x181242){var _0x351a99=_0x38ea04;super(),_0x183ce4(this,'_entities',new Map()),(this[_0x351a99(0x1b2)]=_0x58c211,this[_0x351a99(0x1c8)]=_0x2cf26c,this[_0x351a99(0x148)]=_0x181242,this[_0x351a99(0x1cf)]());}async[_0x38ea04(0x205)](_0x23572a){var _0x122f03=_0x38ea04;return this['_entities'][_0x122f03(0x140)](_0x23572a)||await this['_startLiveShareCoordinator'](_0x23572a),this[_0x122f03(0x14f)]['get'](_0x23572a);}[_0x38ea04(0x1cf)](){var _0x1686c9=_0x38ea04;this[_0x1686c9(0x1b2)][_0x1686c9(0x155)](_0x42d3cb['UniverInstanceType'][_0x1686c9(0x12c)])[_0x1686c9(0x186)](_0x59f70e[_0x1686c9(0x16f)](this['dispose$']))['subscribe'](async _0x17042c=>{var _0x142825=_0x1686c9;const _0x7559cf=_0x17042c[_0x142825(0x1b6)]();this[_0x142825(0x14f)][_0x142825(0x140)](_0x7559cf)||this['_startLiveShareCoordinator'](_0x7559cf);}),this['_univerInstanceService'][_0x1686c9(0x13f)](_0x42d3cb['UniverInstanceType'][_0x1686c9(0x12c)])[_0x1686c9(0x186)](_0x59f70e[_0x1686c9(0x16f)](this[_0x1686c9(0x11d)]))[_0x1686c9(0x206)](_0x236b60=>{var _0x284e49=_0x1686c9;const _0x5c208f=_0x236b60[_0x284e49(0x1b6)](),_0x29cc9b=this['_entities'][_0x284e49(0x1d5)](_0x5c208f);_0x29cc9b==null||_0x29cc9b['dispose']();});}async['_startLiveShareCoordinator'](_0x2088a6){var _0x48002f=_0x38ea04;const _0x4b5ac4=await this[_0x48002f(0x148)]['requireSession'](_0x2088a6),_0xd42e96=this[_0x48002f(0x1c8)][_0x48002f(0x1f4)](_0x2e0303[_0x48002f(0x16e)],_0x2088a6,_0x4b5ac4);return _0xd42e96[_0x48002f(0x1f7)](),this[_0x48002f(0x14f)][_0x48002f(0x153)](_0x2088a6,_0xd42e96),_0xd42e96;}},_0x2e0303[_0x38ea04(0x1a6)]=_0x22ef8a([_0x424375(0x0,_0x42d3cb[_0x38ea04(0x1bb)]),_0x424375(0x1,_0x42d3cb['Inject'](_0x42d3cb['Injector'])),_0x424375(0x2,_0x42d3cb[_0x38ea04(0x170)](_0x21fb35[_0x38ea04(0x1fb)]))],_0x2e0303[_0x38ea04(0x1a6)]);var _0x4d4d44=(_0x542a38=>(_0x542a38[_0x38ea04(0x1e5)]='offline',_0x542a38[_0x38ea04(0x1d1)]='idle',_0x542a38[_0x38ea04(0x116)]='following',_0x542a38[_0x38ea04(0x202)]=_0x38ea04(0x1da),_0x542a38['PRESENTING']=_0x38ea04(0x165),_0x542a38))(_0x4d4d44||{});const _0x34d5de='SAME_OPERATION_SHARE_INTERVAL',_0x55f21c=0xc8;_0x2e0303[_0x38ea04(0x16e)]=class extends _0x42d3cb[_0x38ea04(0x1ef)]{constructor(_0x44c888,_0x32f55a,_0x4cffac,_0x3e8c88,_0x295b30){var _0x27bc3d=_0x38ea04;super(),_0x183ce4(this,_0x27bc3d(0x1fc),new _0x18e5fa[(_0x27bc3d(0x14c))](_0x27bc3d(0x1bf))),_0x183ce4(this,'status$',this[_0x27bc3d(0x1fc)][_0x27bc3d(0x1f1)]()),_0x183ce4(this,_0x27bc3d(0x1cf),!0x1),_0x183ce4(this,'_commandDisposable',null),_0x183ce4(this,_0x27bc3d(0x189),null),(this[_0x27bc3d(0x12f)]=_0x44c888,this[_0x27bc3d(0x12e)]=_0x32f55a,this['_configService']=_0x4cffac,this['_liveShareService']=_0x3e8c88,this[_0x27bc3d(0x1b3)]=_0x295b30);}get[_0x38ea04(0x141)](){var _0x2dea38=_0x38ea04;return this['_status$'][_0x2dea38(0x1ed)]();}[_0x38ea04(0x197)](){var _0x1a3a04=_0x38ea04,_0x56b79a;(_0x56b79a=this[_0x1a3a04(0x1b8)])==null||_0x56b79a[_0x1a3a04(0x197)](),this[_0x1a3a04(0x1fc)][_0x1a3a04(0x11c)](_0x1a3a04(0x1bf)),this[_0x1a3a04(0x1fc)]['complete']();}[_0x38ea04(0x1f7)](){var _0x5ccb2c=_0x38ea04;this[_0x5ccb2c(0x1cf)]||(this[_0x5ccb2c(0x1cf)]=!0x0,this[_0x5ccb2c(0x12e)][_0x5ccb2c(0x1f9)][_0x5ccb2c(0x186)](_0x59f70e['takeUntil'](this[_0x5ccb2c(0x11d)]))[_0x5ccb2c(0x206)](_0x1ca1a1=>{var _0x3ad85a=_0x5ccb2c;switch(_0x1ca1a1){case _0x21fb35[_0x3ad85a(0x159)][_0x3ad85a(0x1e5)]:this['_handleOffline']();break;case _0x21fb35['SessionStatus'][_0x3ad85a(0x1cc)]:this[_0x3ad85a(0x160)]();break;}}),this[_0x5ccb2c(0x12e)][_0x5ccb2c(0x16d)][_0x5ccb2c(0x186)](_0x59f70e['takeUntil'](this[_0x5ccb2c(0x11d)]))['subscribe'](_0x2103c8=>{var _0x445a1c=_0x5ccb2c;const {eventID:_0x147a53}=_0x2103c8;switch(_0x147a53){case _0x50232c[_0x445a1c(0x123)][_0x445a1c(0x1c3)]:this[_0x445a1c(0x20d)](_0x2103c8);break;case _0x50232c[_0x445a1c(0x123)][_0x445a1c(0x132)]:this[_0x445a1c(0x18b)](_0x2103c8);break;case _0x50232c[_0x445a1c(0x123)][_0x445a1c(0x135)]:this[_0x445a1c(0x196)]();break;case _0x50232c[_0x445a1c(0x123)][_0x445a1c(0x17f)]:this[_0x445a1c(0x200)](_0x2103c8);break;}}));}[_0x38ea04(0x19e)](){var _0x4d804d=_0x38ea04;this[_0x4d804d(0x12e)]['send']({'eventID':_0x50232c[_0x4d804d(0x123)][_0x4d804d(0x1b0)],'data':{'unitID':this[_0x4d804d(0x12f)],'userID':this[_0x4d804d(0x12e)]['getMemberID']()}},this[_0x4d804d(0x12f)]);}[_0x38ea04(0x1aa)](){var _0x5b8ea7=_0x38ea04;this['_status']==='presenting'&&(this[_0x5b8ea7(0x1fc)]['next'](_0x5b8ea7(0x1bf)),this[_0x5b8ea7(0x12e)][_0x5b8ea7(0x1e3)]({'eventID':_0x50232c[_0x5b8ea7(0x123)][_0x5b8ea7(0x135)],'data':{'unitID':this[_0x5b8ea7(0x12f)]}},this['_unitID']));}[_0x38ea04(0x11a)](){var _0x5e4ce9=_0x38ea04;this[_0x5e4ce9(0x141)]==='not-following'&&(this[_0x5e4ce9(0x1fc)][_0x5e4ce9(0x11c)](_0x5e4ce9(0x1ce)),this[_0x5e4ce9(0x199)]());}[_0x38ea04(0x188)](){var _0x547e86=_0x38ea04;this['_status']===_0x547e86(0x1ce)&&this[_0x547e86(0x187)]();}[_0x38ea04(0x20d)](_0x496b8d){var _0x3d20ef=_0x38ea04;const {presenter:_0x38b017}=_0x496b8d['data'],_0xbd78f5=this[_0x3d20ef(0x12e)][_0x3d20ef(0x1bd)]();this[_0x3d20ef(0x189)]=_0x38b017,_0x38b017===_0xbd78f5?(this[_0x3d20ef(0x187)](),this[_0x3d20ef(0x201)]()):this[_0x3d20ef(0x141)]!==_0x3d20ef(0x1da)&&(this[_0x3d20ef(0x136)](),this['_startFollowing']());}[_0x38ea04(0x20e)](){var _0x4c499e=_0x38ea04;const _0x5b562b={'eventID':_0x50232c[_0x4c499e(0x123)][_0x4c499e(0x1e9)]};this[_0x4c499e(0x12e)][_0x4c499e(0x1e3)](_0x5b562b,this[_0x4c499e(0x12f)]);}['_handleTerminate'](){var _0x35f472=_0x38ea04;this[_0x35f472(0x189)]=null,this[_0x35f472(0x141)]!==_0x35f472(0x165)&&this[_0x35f472(0x18e)]();}[_0x38ea04(0x200)](_0x5289f2){var _0x95ede9=_0x38ea04;if(this['_status']==='following'&&this['_presenter']===_0x5289f2[_0x95ede9(0x19c)]['memberID']){const _0x158622=_0x50232c['parseProtocolChangeset'](_0x5289f2['data'])[_0x95ede9(0x1e1)][_0x95ede9(0x209)]()[_0x95ede9(0x172)](_0x4b79fe=>_0x4b79fe['id']===_0x3ba85f[_0x95ede9(0x150)]['id']);if(_0x158622){const _0xb02d9=_0x158622[_0x95ede9(0x16c)][_0x95ede9(0x14a)],_0x3718ca=_0x158622[_0x95ede9(0x16c)][_0x95ede9(0x1a5)]['id'];setTimeout(()=>{var _0x587a78=_0x95ede9;this[_0x587a78(0x1b3)][_0x587a78(0x1be)](_0x3ba85f[_0x587a78(0x1a0)]['id'],{'unitId':_0xb02d9,'subUnitId':_0x3718ca},{'fromCollab':!0x0});});}}}[_0x38ea04(0x201)](){var _0x2788c7=_0x38ea04;this[_0x2788c7(0x1fc)][_0x2788c7(0x11c)](_0x2788c7(0x165));const _0x141357=new Map(),_0x2d27e4=this[_0x2788c7(0x1b8)]=new _0x42d3cb[(_0x2788c7(0x1ae))]();_0x2d27e4[_0x2788c7(0x1af)](_0x42d3cb[_0x2788c7(0x171)](()=>{var _0x27fe70=_0x2788c7;_0x141357[_0x27fe70(0x1d7)](_0x74600=>_0x74600[_0x27fe70(0x17e)]()),_0x141357['clear']();})),_0x2d27e4[_0x2788c7(0x1af)](this[_0x2788c7(0x1b3)][_0x2788c7(0x138)](_0x4a3577=>{var _0x3e039c=_0x2788c7,_0x12452a;if(_0x4a3577['type']!==_0x42d3cb[_0x3e039c(0x146)][_0x3e039c(0x121)]||!this[_0x3e039c(0x1ad)][_0x3e039c(0x1fd)](_0x4a3577['id']))return;const {id:_0x26005f}=_0x4a3577;let _0x3e7d75;_0x141357[_0x3e039c(0x140)](_0x26005f)?_0x3e7d75=_0x141357['get'](_0x26005f):(_0x3e7d75=new _0x18e5fa[(_0x3e039c(0x178))](),_0x141357['set'](_0x26005f,_0x3e7d75),_0x3e7d75[_0x3e039c(0x186)](_0x59f70e['throttleTime']((_0x12452a=this['_configService']['getConfig'](_0x34d5de))!=null?_0x12452a:_0x55f21c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3e039c(0x206)](_0x54c367=>{var _0x304e4d=_0x3e039c;this[_0x304e4d(0x12e)][_0x304e4d(0x1e3)]({'eventID':_0x50232c[_0x304e4d(0x123)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x304e4d(0x12f)],'operations':{[_0x54c367['id']]:{'id':_0x54c367['id'],'params':JSON[_0x304e4d(0x180)](_0x54c367[_0x304e4d(0x16c)])}}}},this[_0x304e4d(0x12f)]);})),_0x3e7d75[_0x3e039c(0x11c)](_0x4a3577);})),this[_0x2788c7(0x1ad)]['getInitialStates'](this[_0x2788c7(0x12f)])[_0x2788c7(0x1d7)](_0x5f43cb=>this[_0x2788c7(0x12e)][_0x2788c7(0x1e3)]({'eventID':_0x50232c['CollaborationEvent'][_0x2788c7(0x132)],'data':{'unitID':this[_0x2788c7(0x12f)],'operations':{[_0x5f43cb['id']]:{'id':_0x5f43cb['id'],'params':JSON['stringify'](_0x5f43cb[_0x2788c7(0x16c)])}}}},this[_0x2788c7(0x12f)]));}['_stopPresenting'](){var _0x5c83fe=_0x38ea04,_0x32394d;this[_0x5c83fe(0x1fc)][_0x5c83fe(0x11c)](_0x5c83fe(0x1bf)),(_0x32394d=this[_0x5c83fe(0x1b8)])==null||_0x32394d[_0x5c83fe(0x197)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x14163b=_0x38ea04,_0x54ea9d;(_0x54ea9d=this[_0x14163b(0x1b8)])==null||_0x54ea9d[_0x14163b(0x197)](),this[_0x14163b(0x1fc)][_0x14163b(0x11c)](_0x14163b(0x1ce));}[_0x38ea04(0x18e)](){var _0x3ae579=_0x38ea04,_0x5a274e;this['_status$']['next']('idle'),(_0x5a274e=this['_commandDisposable'])==null||_0x5a274e[_0x3ae579(0x197)](),this[_0x3ae579(0x1b8)]=null;}['_stopFollowing'](){var _0x2fbddf=_0x38ea04,_0x1facca;this[_0x2fbddf(0x1fc)]['next'](_0x2fbddf(0x1da)),(_0x1facca=this['_commandDisposable'])==null||_0x1facca[_0x2fbddf(0x197)]();}['_handleOperation'](_0x49fc7c){var _0x3029ec=_0x38ea04;if(['presenting',_0x3029ec(0x1da),_0x3029ec(0x1d0)][_0x3029ec(0x12d)](this[_0x3029ec(0x141)])||!_0x49fc7c['data'][_0x3029ec(0x18c)]||_0x49fc7c[_0x3029ec(0x19c)][_0x3029ec(0x18c)]===this[_0x3029ec(0x12e)][_0x3029ec(0x1bd)]())return;this[_0x3029ec(0x141)]===_0x3029ec(0x1bf)&&this['_startFollowing']();const _0x12c896=_0x49fc7c[_0x3029ec(0x19c)][_0x3029ec(0x130)];Object[_0x3029ec(0x1d9)](_0x12c896)[_0x3029ec(0x1d7)](_0x51ebe4=>{var _0x3fb6ad=_0x3029ec;this[_0x3fb6ad(0x1b3)]['executeCommand'](_0x51ebe4['id'],_0x51ebe4[_0x3fb6ad(0x16c)]?JSON[_0x3fb6ad(0x18d)](_0x51ebe4[_0x3fb6ad(0x16c)]):null,{'fromCollab':!0x0});});}[_0x38ea04(0x1fa)](){var _0x3f1172=_0x38ea04,_0x2f323f;this[_0x3f1172(0x1fc)][_0x3f1172(0x11c)](_0x3f1172(0x1d0)),(_0x2f323f=this[_0x3f1172(0x1b8)])==null||_0x2f323f['dispose']();}[_0x38ea04(0x160)](){var _0x4e5b00=_0x38ea04;this['_status$'][_0x4e5b00(0x11c)](_0x4e5b00(0x1bf)),this[_0x4e5b00(0x20e)]();}},_0x2e0303[_0x38ea04(0x16e)]=_0x22ef8a([_0x424375(0x2,_0x42d3cb[_0x38ea04(0x15a)]),_0x424375(0x3,_0x42d3cb['Inject'](_0x4f7ebf)),_0x424375(0x4,_0x42d3cb[_0x38ea04(0x118)])],_0x2e0303[_0x38ea04(0x16e)]);function _0xba3f59(){var _0x22d833=_0x38ea04;const _0x32ed40=_0x5a3d51['useDependency'](_0x2e0303[_0x22d833(0x1a6)]),_0x4c9589=_0x5a3d51['useDependency'](_0x42d3cb[_0x22d833(0x1bb)]),_0x519d84=_0x5a3d51[_0x22d833(0x1dd)](()=>_0x4c9589[_0x22d833(0x15e)](_0x42d3cb[_0x22d833(0x167)][_0x22d833(0x12c)]),void 0x0,!0x1,[]),[_0x4f1319,_0x43da37]=_0x1a6b8c[_0x22d833(0x125)](null),[_0xc3b6a1,_0x2ac05b]=_0x1a6b8c[_0x22d833(0x125)](_0x4d4d44[_0x22d833(0x1d1)]),_0xccaa9f=_0x1a6b8c[_0x22d833(0x1eb)](null);return _0x1a6b8c['useEffect'](()=>(_0x519d84&&_0x32ed40[_0x22d833(0x205)](_0x519d84['getUnitId']())[_0x22d833(0x15d)](_0x20cafb=>{var _0x4f5520=_0x22d833;_0x43da37(_0x20cafb),_0xccaa9f[_0x4f5520(0x13d)]=_0x20cafb[_0x4f5520(0x134)][_0x4f5520(0x206)](_0x310f5b=>{_0x2ac05b(_0x310f5b);});}),()=>{var _0x48e689=_0x22d833,_0x228ecc;(_0x228ecc=_0xccaa9f[_0x48e689(0x13d)])==null||_0x228ecc[_0x48e689(0x1c6)](),_0xccaa9f[_0x48e689(0x13d)]=null;}),[_0x519d84,_0x32ed40]),_0x4f1319?_0x3d0e35[_0x22d833(0x1e6)](_0x494086['Dropdown'],{'align':_0x22d833(0x177),'disabled':_0xc3b6a1===_0x4d4d44[_0x22d833(0x1e5)],'className':_0x22d833(0x133),'overlay':_0x3d0e35['jsx'](_0x51afed,{'status':_0xc3b6a1,'coordinator':_0x4f1319}),'children':_0x3d0e35[_0x22d833(0x1e6)](_0x22d833(0x1a9),{'className':_0x494086[_0x22d833(0x20a)](_0x22d833(0x185),{'univer-cursor-not-allowed':_0xc3b6a1===_0x4d4d44[_0x22d833(0x1e5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xc3b6a1!==_0x4d4d44['OFFLINE']}),'type':_0x22d833(0x1a9),'children':_0x3d0e35[_0x22d833(0x1e6)](_0x2ce6b9,{'className':_0x22d833(0x168)})})}):null;}function _0x51afed(_0x7f3c51){var _0x3e12bd=_0x38ea04;const {status:_0x3a3651,coordinator:_0x57546d}=_0x7f3c51;switch(_0x3a3651){case _0x4d4d44['IDLE']:return _0x3d0e35[_0x3e12bd(0x1e6)](_0x50cba2,{'coordinator':_0x57546d});case _0x4d4d44[_0x3e12bd(0x116)]:return _0x3d0e35[_0x3e12bd(0x1e6)](_0x29bf63,{'coordinator':_0x57546d});case _0x4d4d44[_0x3e12bd(0x202)]:return _0x3d0e35[_0x3e12bd(0x1e6)](_0x1fa55d,{'coordinator':_0x57546d});case _0x4d4d44[_0x3e12bd(0x1e5)]:return _0x3d0e35[_0x3e12bd(0x1e6)](_0x3c4a9d,{});case _0x4d4d44[_0x3e12bd(0x1ea)]:return _0x3d0e35['jsx'](_0x20486f,{'coordinator':_0x57546d});default:return null;}}function _0x50cba2(_0x5c751b){var _0x5b8515=_0x38ea04;const {coordinator:_0x34450d}=_0x5c751b;return _0x3d0e35['jsxs'](_0x3d0e35[_0x5b8515(0x16a)],{'children':[_0x3d0e35[_0x5b8515(0x1e6)](_0x5b8515(0x1f6),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5b8515(0x1db)}),_0x3d0e35[_0x5b8515(0x1e6)](_0x494086[_0x5b8515(0x1f5)],{'onClick':()=>_0x34450d[_0x5b8515(0x19e)](),'children':_0x5b8515(0x147)})]});}function _0x29bf63(_0x334fd){var _0x324c17=_0x38ea04;const {coordinator:_0x17edfa}=_0x334fd;return _0x3d0e35[_0x324c17(0x1f2)](_0x3d0e35[_0x324c17(0x16a)],{'children':[_0x3d0e35[_0x324c17(0x1e6)]('div',{'className':_0x324c17(0x131),'children':_0x324c17(0x1ff)}),_0x3d0e35['jsx'](_0x494086[_0x324c17(0x1f5)],{'onClick':()=>_0x17edfa['stopFollowing'](),'children':_0x324c17(0x149)})]});}function _0x1fa55d(_0x547b6f){var _0x141673=_0x38ea04;const {coordinator:_0x16c0dc}=_0x547b6f;return _0x3d0e35[_0x141673(0x1f2)](_0x3d0e35['Fragment'],{'children':[_0x3d0e35[_0x141673(0x1e6)](_0x141673(0x1f6),{'className':_0x141673(0x131),'children':_0x141673(0x122)}),_0x3d0e35[_0x141673(0x1e6)](_0x494086[_0x141673(0x1f5)],{'variant':_0x141673(0x1e7),'onClick':()=>_0x16c0dc[_0x141673(0x11a)](),'children':'Start\x20following'})]});}function _0x20486f(_0x129347){var _0x15141d=_0x38ea04;const {coordinator:_0x2bdf65}=_0x129347;return _0x3d0e35[_0x15141d(0x1f2)](_0x3d0e35[_0x15141d(0x16a)],{'children':[_0x3d0e35['jsx'](_0x15141d(0x1f6),{'className':_0x15141d(0x131),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x3d0e35[_0x15141d(0x1e6)](_0x494086['Button'],{'variant':_0x15141d(0x183),'onClick':()=>_0x2bdf65['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x3c4a9d(){var _0x4c1315=_0x38ea04;return _0x3d0e35['jsx'](_0x3d0e35[_0x4c1315(0x16a)],{'children':'You\x27are\x20offline.'});}var _0x17fa93=Object[_0x38ea04(0x1d6)],_0x4b6636=(_0x49fc7a,_0x357695,_0x301d4a,_0x51187c)=>{var _0x1c8e3a=_0x38ea04;for(var _0x4c9360=_0x51187c>0x1?void 0x0:_0x51187c?_0x17fa93(_0x357695,_0x301d4a):_0x357695,_0x35217e=_0x49fc7a[_0x1c8e3a(0x161)]-0x1,_0x25d696;_0x35217e>=0x0;_0x35217e--)(_0x25d696=_0x49fc7a[_0x35217e])&&(_0x4c9360=_0x25d696(_0x4c9360)||_0x4c9360);return _0x4c9360;},_0x46ab77=(_0x157c23,_0x43399e)=>(_0x14f459,_0x15fd55)=>_0x43399e(_0x14f459,_0x15fd55,_0x157c23);_0x2e0303[_0x38ea04(0x179)]=class extends _0x42d3cb[_0x38ea04(0x1dc)]{constructor(_0x5782eb,_0x25e7fc){var _0x13a9e8=_0x38ea04;super(),this[_0x13a9e8(0x1c8)]=_0x5782eb,this[_0x13a9e8(0x163)]=_0x25e7fc,this[_0x13a9e8(0x142)]();}['_mountLiveShare'](){var _0x58b03b=_0x38ea04;this['disposeWithMe'](this[_0x58b03b(0x163)][_0x58b03b(0x184)](_0x5a3d51[_0x58b03b(0x1c5)][_0x58b03b(0x15c)],()=>_0x5a3d51[_0x58b03b(0x14b)](_0xba3f59,this[_0x58b03b(0x1c8)])));}},_0x2e0303[_0x38ea04(0x179)]=_0x4b6636([_0x46ab77(0x0,_0x42d3cb[_0x38ea04(0x170)](_0x42d3cb['Injector'])),_0x46ab77(0x1,_0x5a3d51['IUIPartsService'])],_0x2e0303[_0x38ea04(0x179)]);var _0x1debd9=Object[_0x38ea04(0x11b)],_0x5ce3df=Object[_0x38ea04(0x1d6)],_0x2afa49=(_0x32901c,_0x574d51,_0x25bbbb)=>_0x574d51 in _0x32901c?_0x1debd9(_0x32901c,_0x574d51,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25bbbb}):_0x32901c[_0x574d51]=_0x25bbbb,_0x1cf70c=(_0x2af4f4,_0x4f2dda,_0x199d7e,_0x4909f3)=>{var _0x31dc4c=_0x38ea04;for(var _0x32750a=_0x4909f3>0x1?void 0x0:_0x4909f3?_0x5ce3df(_0x4f2dda,_0x199d7e):_0x4f2dda,_0x27f2f8=_0x2af4f4[_0x31dc4c(0x161)]-0x1,_0xbd7132;_0x27f2f8>=0x0;_0x27f2f8--)(_0xbd7132=_0x2af4f4[_0x27f2f8])&&(_0x32750a=_0xbd7132(_0x32750a)||_0x32750a);return _0x32750a;},_0x18914c=(_0x5a1397,_0x12f2fc)=>(_0x3039a,_0x7deb43)=>_0x12f2fc(_0x3039a,_0x7deb43,_0x5a1397),_0x354ff2=(_0x4bdb4f,_0x579175,_0x39d90c)=>_0x2afa49(_0x4bdb4f,typeof _0x579175!=_0x38ea04(0x128)?_0x579175+'':_0x579175,_0x39d90c);const _0x2ef22a=_0x38ea04(0x1d3);_0x2e0303[_0x38ea04(0x1df)]=class extends _0x42d3cb[_0x38ea04(0x164)]{constructor(_0x5e6c76=_0x1e85bb,_0x287d60,_0x363a1a){var _0x2c93ce=_0x38ea04;super(),this[_0x2c93ce(0x158)]=_0x5e6c76,this[_0x2c93ce(0x1c8)]=_0x287d60,this[_0x2c93ce(0x1ca)]=_0x363a1a;const {..._0x22fe98}=_0x42d3cb[_0x2c93ce(0x144)]({},_0x1e85bb,this['_config']);this[_0x2c93ce(0x1ca)]['setConfig'](_0x4cb5d5,_0x22fe98);}['onStarting'](){var _0x2d6b27=_0x38ea04;_0x42d3cb[_0x2d6b27(0x115)](this['_injector'],_0x42d3cb[_0x2d6b27(0x1a4)]([[_0x4f7ebf],[_0x2e0303[_0x2d6b27(0x1a6)]],[_0xb8f5d0],[_0x2e0303[_0x2d6b27(0x179)]]],this['_config'][_0x2d6b27(0x15f)])),_0x42d3cb[_0x2d6b27(0x1e4)](this[_0x2d6b27(0x1c8)],[[_0xb8f5d0]]);}[_0x38ea04(0x19b)](){var _0x5696da=_0x38ea04;_0x42d3cb[_0x5696da(0x1e4)](this[_0x5696da(0x1c8)],[[_0x2e0303['DesktopLiveShareController']]]);}},_0x354ff2(_0x2e0303[_0x38ea04(0x1df)],_0x38ea04(0x12a),_0x42d3cb[_0x38ea04(0x167)][_0x38ea04(0x181)]),_0x354ff2(_0x2e0303['UniverLiveSharePlugin'],_0x38ea04(0x1e2),_0x2ef22a),_0x2e0303[_0x38ea04(0x1df)]=_0x1cf70c([_0x42d3cb[_0x38ea04(0x1cb)](_0x21fb35['UniverCollaborationClientPlugin']),_0x18914c(0x1,_0x42d3cb[_0x38ea04(0x170)](_0x42d3cb[_0x38ea04(0x13c)])),_0x18914c(0x2,_0x42d3cb[_0x38ea04(0x15a)])],_0x2e0303[_0x38ea04(0x1df)]),_0x2e0303['LiveShare']=_0xba3f59,_0x2e0303[_0x38ea04(0x1c1)]=_0x4f7ebf,_0x2e0303[_0x38ea04(0x1b9)]=_0x4d4d44,Object['defineProperty'](_0x2e0303,Symbol[_0x38ea04(0x19f)],{'value':_0x38ea04(0x137)});}));function _0x5752(){var _0x2e9f23=['10944fTfqSS','button','stopPresenting','colorChannel1','19477PBaBxZ','_liveShareService','DisposableCollection','add','LIVESHARE_REQUEST_HOST','propertyIsEnumerable','_univerInstanceService','_commandService','@univerjs/core','UniverProCollaborationClient','getUnitId','function','_commandDisposable','LiveShareStatus','none','IUniverInstanceService','getOwnPropertySymbols','getMemberID','executeCommand','idle','fill','LiveShareService','children','LIVESHARE_NEW_HOST','2463954YrbDhw','BuiltInUIPart','unsubscribe','58tsbGPo','_injector','@univerjs/sheets-ui','_configService','DependentOn','ONLINE','react','following','_init','offline','IDLE','registerSharedOperation','UNIVER_LIVE_SHARE_PLUGIN','SetZoomRatioOperation','get','getOwnPropertyDescriptor','forEach','live-share.config','values','not-following','Present\x20this\x20document','Disposable','useObservable','amd','UniverLiveSharePlugin','_sharedOperations','mutations','pluginName','send','touchDependencies','OFFLINE','jsx','text','use','LIVESHARE_FETCH_OPERATIONS','PRESENTING','useRef','currentColor','getValue','live-share-single','RxDisposable','operators','asObservable','jsxs','svg','createInstance','Button','div','init','substring','sessionStatus$','_handleOffline','CollaborationSessionService','_status$','shouldShareOperation','7TXXXEC','You\x27re\x20following\x20the\x20presenter','_handleNewChangeSets','_startPresenting','NOT_FOLLOWING','attrs','55128cNChpb','getLiveShareCoordinator','subscribe','UniverSheets','concat','reverse','clsx','replace','forwardRef','_handleNewHost','_fetchOperations','registerDependencies','FOLLOWING','@univerjs/design','ICommandService','prototype','startFollowing','defineProperty','next','dispose$','call','@univerjs-pro/collaboration','SetScrollOperation','OPERATION','You\x27re\x20not\x20following\x20the\x20presenter','CollaborationEvent','delete','useState','string','UniverCore','symbol','getInitialStates','type','tag','UNIVER_SHEET','includes','_collabSession','_unitID','operations','univer-w-full\x20univer-mb-3\x20univer-text-sm','LIVESHARE_OPERATION','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','status$','LIVESHARE_TERMINATE','_stopPresenting','Module','onCommandExecuted','2392248WtQjxg','idSuffix','rxjs','Injector','current','@univerjs-pro/collaboration-client','getTypeOfUnitDisposed$','has','_status','_mountLiveShare','assign','merge','mask','CommandType','Start','_collabSessionService','Stop\x20following','unitId','connectInjector','BehaviorSubject','object','UniverProLiveShare','_entities','InsertSheetMutation','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','@univerjs/ui','set','React','getTypeOfUnitAdded$','9108341TVEGRi','10hSxLgD','_config','SessionStatus','IConfigService','0\x200\x2016\x2016','HEADER_MENU','then','getCurrentTypeOfUnit$','override','_handleOnline','length','exports','_uiPartsService','Plugin','presenting','1em','UniverInstanceType','univer-size-4','xlink:href','Fragment','hasOwnProperty','params','event$','LiveShareCoordinator','takeUntil','Inject','toDisposable','find','apply','UniverProCollaboration','1450dZMpaN','159DIQhCM','end','Subject','DesktopLiveShareController','indexOf','react/jsx-runtime','univerjs-icon\x20univerjs-icon-','12sgTsnk','complete','NEW_CHANGESETS','stringify','UNIVER_UNKNOWN','_reporters','default','registerComponent','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','pipe','_stopFollowing','stopFollowing','_presenter','UniverSheetsUi','_handleOperation','presenter','parse','_beIdle','UniverIcon','defIds','rxjs/operators','16419455VVbEdu','map','displayName','className','_handleTerminate','dispose','registerInitialStateReporter','_startFollowing','from','onRendered','data','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','tryStartPresenting','toStringTag','SetWorksheetActiveOperation','trim','icon','extend','mergeOverrideWithDependencies','sheet','LiveShareController','@univerjs/sheets'];_0x5752=function(){return _0x2e9f23;};return _0x5752();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.7.0-nightly.202505201607",
3
+ "version": "0.7.0-nightly.202505211607",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,13 +47,13 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.3.24",
50
- "@univerjs-pro/collaboration": "0.7.0-nightly.202505201607",
51
- "@univerjs-pro/collaboration-client": "0.7.0-nightly.202505201607",
52
- "@univerjs/core": "0.7.0-nightly.202505201607",
53
- "@univerjs/sheets": "0.7.0-nightly.202505201607",
54
- "@univerjs/sheets-ui": "0.7.0-nightly.202505201607",
55
- "@univerjs/ui": "0.7.0-nightly.202505201607",
56
- "@univerjs/design": "0.7.0-nightly.202505201607"
50
+ "@univerjs-pro/collaboration": "0.7.0-nightly.202505211607",
51
+ "@univerjs/core": "0.7.0-nightly.202505211607",
52
+ "@univerjs-pro/collaboration-client": "0.7.0-nightly.202505211607",
53
+ "@univerjs/design": "0.7.0-nightly.202505211607",
54
+ "@univerjs/sheets": "0.7.0-nightly.202505211607",
55
+ "@univerjs/sheets-ui": "0.7.0-nightly.202505211607",
56
+ "@univerjs/ui": "0.7.0-nightly.202505211607"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.3",