@univerjs-pro/live-share 0.10.10-experimental.20251010-3f807c5 → 0.10.10-experimental.20251016-33b0941

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 _0x58510e=_0x31de;(function(_0x5a9fd0,_0x4bef4c){var _0x116eee=_0x31de,_0x5bf384=_0x5a9fd0();while(!![]){try{var _0x58821d=-parseInt(_0x116eee(0x155))/0x1+-parseInt(_0x116eee(0x19f))/0x2+-parseInt(_0x116eee(0x152))/0x3*(parseInt(_0x116eee(0x171))/0x4)+-parseInt(_0x116eee(0x120))/0x5+parseInt(_0x116eee(0x16a))/0x6+-parseInt(_0x116eee(0x12c))/0x7+-parseInt(_0x116eee(0x1b1))/0x8*(-parseInt(_0x116eee(0x187))/0x9);if(_0x58821d===_0x4bef4c)break;else _0x5bf384['push'](_0x5bf384['shift']());}catch(_0x20b0be){_0x5bf384['push'](_0x5bf384['shift']());}}}(_0x2097,0xbe11c));var U=Object[_0x58510e(0x12d)],F=(_0x5826a0,_0x170bfe,_0xc5c999)=>_0x170bfe in _0x5826a0?U(_0x5826a0,_0x170bfe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc5c999}):_0x5826a0[_0x170bfe]=_0xc5c999,v=(_0x972eda,_0x5e289b,_0x21abc7)=>F(_0x972eda,typeof _0x5e289b!='symbol'?_0x5e289b+'':_0x5e289b,_0x21abc7);Object[_0x58510e(0x12d)](exports,Symbol['toStringTag'],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function _0x2097(){var _0x4f9f25=['Stop\x20presenting','_stopPresenting','_status','_handleOnline','PRESENTING','OPERATION','send','jsxs','delete','Disposable','LiveShare','UNIVER_SHEET','UniverLiveSharePlugin','replace','forwardRef','useObservable','getInitialStates','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','SAME_OPERATION_SHARE_INTERVAL','OFFLINE','UniverInstanceType','dispose','Start\x20following','Plugin','_handleNewChangeSets','_fetchOperations','pluginName','useRef','3yltJIJ','LIVESHARE_NEW_HOST','function','1362382mFCtsn','entries','end','div','HEADER_MENU','0\x200\x2017\x2017','following','_injector','sheet','disposeWithMe','attrs','init','_commandService','getOwnPropertyDescriptor','_reporters','type','jsx','getCurrentTypeOfUnit$','touchDependencies','reverse','You\x27are\x20offline.','6840420hWwmHX','not-following','CollaborationEvent','useDependency','1em','_handleTerminate','UNIVER_LIVE_SHARE_PLUGIN','5745876OLGNRR','http://www.w3.org/2000/svg','_beIdle','mask','InsertSheetMutation','_configService','_unitID','executeCommand','sessionStatus$','ICommandService','currentColor','DependentOn','idle','LiveShareController','map','DesktopLiveShareController','univer-mb-3\x20univer-w-full\x20univer-text-sm','_init','_handleNewHost','stopPresenting','_handleOffline','tag','63wcDjFU','unitId','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','defs','xlink:href','_config','subscribe','params','displayName','concat','useEffect','defIds','_entities','_liveShareService','Fragment','assign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','connectInjector','_startLiveShareCoordinator','hasOwnProperty','IUniverInstanceService','You\x27re\x20not\x20following\x20the\x20presenter','SessionStatus','1897630tDowGU','toDisposable','Injector','IUIPartsService','LiveShareCoordinator','presenter','SetZoomRatioOperation','Button','univerjs-icon\x20univerjs-icon-','_startFollowing','className','colorChannel1','Subject','svg','_sharedOperations','getConfig','data','string','4659696eKlbji','_status$','ONLINE','startFollowing','_univerInstanceService','_collabSession','useState','length','_presenter','getMemberID','univer-size-4','takeUntil','IDLE','BehaviorSubject','RxDisposable','_startPresenting','indexOf','prototype','FOLLOWING','getLiveShareCoordinator','values','call','use','add','pipe','live-share.config','next','from','stringify','IConfigService','registerDependencies','icon','NEW_CHANGESETS','_handleOperation','registerSharedOperation','evenodd','children','LiveShareIcon','url(#$1','getValue','dispose$','event$','offline','LIVESHARE_REQUEST_HOST','status$','_stopFollowing','registerComponent','DisposableCollection','throttleTime','stopFollowing','includes','asObservable','UNIVER_UNKNOWN','LiveShareStatus','has','requireSession','find','presenting','text','LIVESHARE_FETCH_OPERATIONS','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','getUnitId','_uiPartsService','toString','2810150QPnTNK','idSuffix','LIVESHARE_TERMINATE','registerInitialStateReporter','forEach','SetWorksheetActiveOperation','Inject','trim','NOT_FOLLOWING','setConfig','current','override','903588aJvMoz','defineProperty','tryStartPresenting','Present\x20this\x20document','extend','none','onRendered','merge','mergeOverrideWithDependencies','button'];_0x2097=function(){return _0x4f9f25;};return _0x2097();}var u=function(){var _0x586190=_0x58510e;return u=Object[_0x586190(0x196)]||function(_0x5ab37a){var _0x3811bd=_0x586190;for(var _0x4d9345,_0x4244c8=0x1,_0xdd53b6=arguments[_0x3811bd(0x1b8)];_0x4244c8<_0xdd53b6;_0x4244c8++){_0x4d9345=arguments[_0x4244c8];for(var _0x3ba631 in _0x4d9345)Object[_0x3811bd(0x1c2)][_0x3811bd(0x19b)]['call'](_0x4d9345,_0x3ba631)&&(_0x5ab37a[_0x3ba631]=_0x4d9345[_0x3ba631]);}return _0x5ab37a;},u['apply'](this,arguments);},$=function(_0x5289ae,_0x234d48){var _0xd026a1=_0x58510e,_0x5839ef={};for(var _0x3d4395 in _0x5289ae)Object['prototype'][_0xd026a1(0x19b)][_0xd026a1(0x1c6)](_0x5289ae,_0x3d4395)&&_0x234d48[_0xd026a1(0x1c1)](_0x3d4395)<0x0&&(_0x5839ef[_0x3d4395]=_0x5289ae[_0x3d4395]);if(_0x5289ae!=null&&typeof Object['getOwnPropertySymbols']==_0xd026a1(0x154)){for(var _0x5678a6=0x0,_0x3d4395=Object['getOwnPropertySymbols'](_0x5289ae);_0x5678a6<_0x3d4395[_0xd026a1(0x1b8)];_0x5678a6++)_0x234d48[_0xd026a1(0x1c1)](_0x3d4395[_0x5678a6])<0x0&&Object[_0xd026a1(0x1c2)]['propertyIsEnumerable'][_0xd026a1(0x1c6)](_0x5289ae,_0x3d4395[_0x5678a6])&&(_0x5839ef[_0x3d4395[_0x5678a6]]=_0x5289ae[_0x3d4395[_0x5678a6]]);}return _0x5839ef;},j=f[_0x58510e(0x144)](function(_0x1de2e1,_0x4bc73b){var _0x3cece5=_0x58510e,_0x2bd21e=_0x1de2e1[_0x3cece5(0x1d0)],_0x27016e=_0x1de2e1['id'],_0x2dcfbd=_0x1de2e1[_0x3cece5(0x1a9)],_0x5ef1d3=_0x1de2e1['extend'],_0x15e5f7=$(_0x1de2e1,[_0x3cece5(0x1d0),'id',_0x3cece5(0x1a9),_0x3cece5(0x130)]),_0x40f8dd=_0x3cece5(0x1a7)['concat'](_0x27016e,'\x20')[_0x3cece5(0x190)](_0x2dcfbd||'')[_0x3cece5(0x127)](),_0x5a22dd=f[_0x3cece5(0x151)]('_'[_0x3cece5(0x190)](k()));return y(_0x2bd21e,''[_0x3cece5(0x190)](_0x27016e),{'defIds':_0x2bd21e[_0x3cece5(0x192)],'idSuffix':_0x5a22dd[_0x3cece5(0x12a)]},u({'ref':_0x4bc73b,'className':_0x40f8dd},_0x15e5f7),_0x5ef1d3);});function y(_0x58dbcb,_0xc73a7e,_0x53f75d,_0x3eb29a,_0x1a35df){var _0x5d3c4d=_0x58510e;return f['createElement'](_0x58dbcb[_0x5d3c4d(0x186)],u(u({'key':_0xc73a7e},H(_0x58dbcb,_0x53f75d,_0x1a35df)),_0x3eb29a),(V(_0x58dbcb,_0x53f75d)[_0x5d3c4d(0x1d5)]||[])['map'](function(_0x19f4aa,_0x3d69f7){var _0x37ecaf=_0x5d3c4d;return y(_0x19f4aa,''['concat'](_0xc73a7e,'-')['concat'](_0x58dbcb[_0x37ecaf(0x186)],'-')[_0x37ecaf(0x190)](_0x3d69f7),_0x53f75d,void 0x0,_0x1a35df);}));}function H(_0x35174d,_0x4fee31,_0x246f8a){var _0x444d49=_0x58510e,_0x12f677=u({},_0x35174d[_0x444d49(0x15f)]);_0x246f8a!=null&&_0x246f8a[_0x444d49(0x1aa)]&&_0x12f677['fill']===_0x444d49(0x1aa)&&(_0x12f677['fill']=_0x246f8a['colorChannel1']),_0x35174d[_0x444d49(0x186)]===_0x444d49(0x174)&&_0x12f677['id']&&(_0x12f677['id']=_0x12f677['id']+_0x4fee31[_0x444d49(0x121)]),Object[_0x444d49(0x156)](_0x12f677)[_0x444d49(0x124)](function(_0x9a4aea){var _0x1aa33a=_0x444d49,_0x250ba6=_0x9a4aea[0x0],_0x479d2d=_0x9a4aea[0x1];_0x250ba6===_0x1aa33a(0x174)&&typeof _0x479d2d==_0x1aa33a(0x1b0)&&(_0x12f677[_0x250ba6]=_0x479d2d['replace'](/url\(#(.*)\)/,_0x1aa33a(0x1d7)[_0x1aa33a(0x190)](_0x4fee31[_0x1aa33a(0x121)],')')));});var _0x27e460=_0x4fee31[_0x444d49(0x192)];return!_0x27e460||_0x27e460[_0x444d49(0x1b8)]===0x0||(_0x35174d[_0x444d49(0x186)]===_0x444d49(0x1c7)&&_0x12f677[_0x444d49(0x18b)]&&(_0x12f677['xlink:href']=_0x12f677[_0x444d49(0x18b)]+_0x4fee31[_0x444d49(0x121)]),Object[_0x444d49(0x156)](_0x12f677)['forEach'](function(_0x2bcc7c){var _0x36401f=_0x444d49,_0x352461=_0x2bcc7c[0x0],_0x1ca7c7=_0x2bcc7c[0x1];typeof _0x1ca7c7==_0x36401f(0x1b0)&&(_0x12f677[_0x352461]=_0x1ca7c7[_0x36401f(0x143)](/url\(#(.*)\)/,_0x36401f(0x1d7)[_0x36401f(0x190)](_0x4fee31[_0x36401f(0x121)],')')));})),_0x12f677;}function V(_0x1cec05,_0x495402){var _0x15d402=_0x58510e,_0xa5e706,_0xc0cbba=_0x495402['defIds'];return!_0xc0cbba||_0xc0cbba[_0x15d402(0x1b8)]===0x0?_0x1cec05:_0x1cec05[_0x15d402(0x186)]===_0x15d402(0x18a)&&(!((_0xa5e706=_0x1cec05[_0x15d402(0x1d5)])===null||_0xa5e706===void 0x0)&&_0xa5e706[_0x15d402(0x1b8)])?u(u({},_0x1cec05),{'children':_0x1cec05['children'][_0x15d402(0x17f)](function(_0x34f427){var _0x2328e0=_0x15d402;return typeof _0x34f427[_0x2328e0(0x15f)]['id']==_0x2328e0(0x1b0)&&_0xc0cbba&&_0xc0cbba['includes'](_0x34f427[_0x2328e0(0x15f)]['id'])?u(u({},_0x34f427),{'attrs':u(u({},_0x34f427[_0x2328e0(0x15f)]),{'id':_0x34f427[_0x2328e0(0x15f)]['id']+_0x495402[_0x2328e0(0x121)]})}):_0x34f427;})}):_0x1cec05;}function k(){var _0x26d0ba=_0x58510e;return Math['random']()[_0x26d0ba(0x11f)](0x24)['substring'](0x2,0x8);}j['displayName']='UniverIcon';var M={'tag':_0x58510e(0x1ac),'attrs':{'xmlns':_0x58510e(0x172),'fill':_0x58510e(0x131),'viewBox':_0x58510e(0x15a),'width':_0x58510e(0x16e),'height':_0x58510e(0x16e)},'children':[{'tag':'path','attrs':{'fill':_0x58510e(0x17b),'d':_0x58510e(0x11c)}},{'tag':'path','attrs':{'fill':_0x58510e(0x17b),'d':_0x58510e(0x189),'fillRule':_0x58510e(0x1d4),'clipRule':_0x58510e(0x1d4)}}]},P=f['forwardRef'](function(_0x2b0310,_0x4ccab3){var _0x2a8104=_0x58510e;return f['createElement'](j,Object[_0x2a8104(0x196)]({},_0x2b0310,{'id':'live-share-icon','ref':_0x4ccab3,'icon':M}));});P[_0x58510e(0x18f)]=_0x58510e(0x1d6);class O extends o['Disposable']{constructor(){var _0x4b282d=_0x58510e;super(...arguments),v(this,_0x4b282d(0x1ad),new Set()),v(this,'_reporters',new Set());}[_0x58510e(0x1d3)](_0x2f7a38){var _0x175cf9=_0x58510e;return this[_0x175cf9(0x1ad)][_0x175cf9(0x1c8)](_0x2f7a38),o['toDisposable'](()=>this['_sharedOperations'][_0x175cf9(0x13e)](_0x2f7a38));}[_0x58510e(0x123)](_0x534854){var _0x478b61=_0x58510e;return this[_0x478b61(0x163)][_0x478b61(0x1c8)](_0x534854),o['toDisposable'](()=>this[_0x478b61(0x163)][_0x478b61(0x13e)](_0x534854));}['shouldShareOperation'](_0x392a3d){var _0x25d3f2=_0x58510e;return this[_0x25d3f2(0x1ad)]['has'](_0x392a3d);}[_0x58510e(0x146)](_0x592b50){var _0x556e62=_0x58510e;return Array[_0x556e62(0x1cc)](this[_0x556e62(0x163)])['map'](_0x2dc3e7=>_0x2dc3e7(_0x592b50));}}var q=Object['getOwnPropertyDescriptor'],R=(_0x38f0c9,_0x54289d,_0x19b9b7,_0x5e0221)=>{var _0x4b9e25=_0x58510e;for(var _0x13d733=_0x5e0221>0x1?void 0x0:_0x5e0221?q(_0x54289d,_0x19b9b7):_0x54289d,_0x197aaa=_0x38f0c9[_0x4b9e25(0x1b8)]-0x1,_0x2d1380;_0x197aaa>=0x0;_0x197aaa--)(_0x2d1380=_0x38f0c9[_0x197aaa])&&(_0x13d733=_0x2d1380(_0x13d733)||_0x13d733);return _0x13d733;},S=(_0x40ac08,_0x5ad646)=>(_0xf8a84c,_0x3e436a)=>_0x5ad646(_0xf8a84c,_0x3e436a,_0x40ac08);function _0x31de(_0x40de0b,_0xbd15b7){var _0x209784=_0x2097();return _0x31de=function(_0x31de76,_0x9d2ce4){_0x31de76=_0x31de76-0x115;var _0x1b89d7=_0x209784[_0x31de76];return _0x1b89d7;},_0x31de(_0x40de0b,_0xbd15b7);}exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x38c9e9,_0x11e419,_0x309327){var _0x2eaa14=_0x58510e;super(),v(this,'_entities',new Map()),(this[_0x2eaa14(0x1b5)]=_0x38c9e9,this[_0x2eaa14(0x15c)]=_0x11e419,this['_collabSessionService']=_0x309327,this[_0x2eaa14(0x182)]());}async['getLiveShareCoordinator'](_0x235cf5){var _0x2fcccf=_0x58510e;return this[_0x2fcccf(0x193)][_0x2fcccf(0x116)](_0x235cf5)||await this[_0x2fcccf(0x19a)](_0x235cf5),this[_0x2fcccf(0x193)]['get'](_0x235cf5);}['_init'](){var _0x4062d9=_0x58510e;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x4062d9(0x14a)][_0x4062d9(0x141)])['pipe'](b[_0x4062d9(0x1bc)](this['dispose$']))['subscribe'](async _0x91b11c=>{var _0x10b9b8=_0x4062d9;const _0x59d999=_0x91b11c['getUnitId']();this['_entities'][_0x10b9b8(0x116)](_0x59d999)||this[_0x10b9b8(0x19a)](_0x59d999);}),this[_0x4062d9(0x1b5)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x4062d9(0x141)])['pipe'](b['takeUntil'](this[_0x4062d9(0x1d9)]))['subscribe'](_0x4d761a=>{var _0x2a28ec=_0x4062d9;const _0x2a8512=_0x4d761a['getUnitId'](),_0x41a0dc=this[_0x2a28ec(0x193)]['get'](_0x2a8512);_0x41a0dc==null||_0x41a0dc[_0x2a28ec(0x14b)]();});}async[_0x58510e(0x19a)](_0xab81ac){var _0x5a41b2=_0x58510e;const _0x27da5f=await this['_collabSessionService'][_0x5a41b2(0x117)](_0xab81ac),_0x214fa9=this[_0x5a41b2(0x15c)]['createInstance'](exports[_0x5a41b2(0x1a3)],_0xab81ac,_0x27da5f);return _0x214fa9['init'](),this[_0x5a41b2(0x193)]['set'](_0xab81ac,_0x214fa9),_0x214fa9;}},exports['LiveShareController']=R([S(0x0,o['IUniverInstanceService']),S(0x1,o['Inject'](o[_0x58510e(0x1a1)])),S(0x2,o[_0x58510e(0x126)](m['CollaborationSessionService']))],exports['LiveShareController']);var h=(_0xa1180a=>(_0xa1180a[_0x58510e(0x149)]='offline',_0xa1180a[_0x58510e(0x1bd)]=_0x58510e(0x17d),_0xa1180a[_0x58510e(0x1c3)]=_0x58510e(0x15b),_0xa1180a[_0x58510e(0x128)]=_0x58510e(0x16b),_0xa1180a['PRESENTING']=_0x58510e(0x119),_0xa1180a))(h||{});const W=_0x58510e(0x148),G=0xc8;exports[_0x58510e(0x1a3)]=class extends o[_0x58510e(0x1bf)]{constructor(_0x4d72cf,_0x4bc174,_0x37a8ef,_0x3f9f58,_0xe89f2a){var _0x1381fb=_0x58510e;super(),v(this,_0x1381fb(0x1b2),new w[(_0x1381fb(0x1be))](_0x1381fb(0x17d))),v(this,_0x1381fb(0x1dd),this[_0x1381fb(0x1b2)][_0x1381fb(0x1e4)]()),v(this,_0x1381fb(0x182),!0x1),v(this,_0x1381fb(0x198),null),v(this,_0x1381fb(0x1b9),null),(this[_0x1381fb(0x177)]=_0x4d72cf,this[_0x1381fb(0x1b6)]=_0x4bc174,this[_0x1381fb(0x176)]=_0x37a8ef,this[_0x1381fb(0x194)]=_0x3f9f58,this['_commandService']=_0xe89f2a);}get[_0x58510e(0x138)](){var _0x3351dc=_0x58510e;return this[_0x3351dc(0x1b2)][_0x3351dc(0x1d8)]();}[_0x58510e(0x14b)](){var _0x212a76=_0x58510e,_0xce2cdb;(_0xce2cdb=this[_0x212a76(0x198)])==null||_0xce2cdb[_0x212a76(0x14b)](),this[_0x212a76(0x1b2)]['next'](_0x212a76(0x17d)),this[_0x212a76(0x1b2)]['complete']();}[_0x58510e(0x160)](){var _0x105836=_0x58510e;this[_0x105836(0x182)]||(this['_init']=!0x0,this[_0x105836(0x1b6)][_0x105836(0x179)][_0x105836(0x1c9)](b[_0x105836(0x1bc)](this['dispose$']))[_0x105836(0x18d)](_0x1f8f25=>{var _0x568e26=_0x105836;switch(_0x1f8f25){case m[_0x568e26(0x19e)][_0x568e26(0x149)]:this['_handleOffline']();break;case m[_0x568e26(0x19e)][_0x568e26(0x1b3)]:this['_handleOnline']();break;}}),this[_0x105836(0x1b6)][_0x105836(0x1da)][_0x105836(0x1c9)](b[_0x105836(0x1bc)](this['dispose$']))[_0x105836(0x18d)](_0x2e2b79=>{var _0x48ed85=_0x105836;const {eventID:_0x30c83}=_0x2e2b79;switch(_0x30c83){case _[_0x48ed85(0x16c)][_0x48ed85(0x153)]:this[_0x48ed85(0x183)](_0x2e2b79);break;case _['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x48ed85(0x1d2)](_0x2e2b79);break;case _[_0x48ed85(0x16c)][_0x48ed85(0x122)]:this[_0x48ed85(0x16f)]();break;case _[_0x48ed85(0x16c)][_0x48ed85(0x1d1)]:this[_0x48ed85(0x14e)](_0x2e2b79);break;}}));}['tryStartPresenting'](){var _0x1a8dbd=_0x58510e;this[_0x1a8dbd(0x1b6)]['send']({'eventID':_[_0x1a8dbd(0x16c)][_0x1a8dbd(0x1dc)],'data':{'unitID':this[_0x1a8dbd(0x177)],'userID':this[_0x1a8dbd(0x1b6)][_0x1a8dbd(0x1ba)]()}},this[_0x1a8dbd(0x177)]);}[_0x58510e(0x184)](){var _0x33e8f6=_0x58510e;this[_0x33e8f6(0x138)]===_0x33e8f6(0x119)&&(this[_0x33e8f6(0x1b2)]['next'](_0x33e8f6(0x17d)),this[_0x33e8f6(0x1b6)]['send']({'eventID':_[_0x33e8f6(0x16c)][_0x33e8f6(0x122)],'data':{'unitID':this[_0x33e8f6(0x177)]}},this['_unitID']));}['startFollowing'](){var _0x207703=_0x58510e;this[_0x207703(0x138)]===_0x207703(0x16b)&&(this[_0x207703(0x1b2)][_0x207703(0x1cb)]('following'),this['_startFollowing']());}[_0x58510e(0x1e2)](){var _0x4417d6=_0x58510e;this[_0x4417d6(0x138)]===_0x4417d6(0x15b)&&this['_stopFollowing']();}[_0x58510e(0x183)](_0x31f93a){var _0x38e970=_0x58510e;const {presenter:_0x5490a0}=_0x31f93a[_0x38e970(0x1af)],_0x53ab4c=this[_0x38e970(0x1b6)]['getMemberID']();this['_presenter']=_0x5490a0,_0x5490a0===_0x53ab4c?(this[_0x38e970(0x1de)](),this[_0x38e970(0x1c0)]()):this[_0x38e970(0x138)]!==_0x38e970(0x16b)&&(this[_0x38e970(0x137)](),this[_0x38e970(0x1a8)]());}['_fetchOperations'](){var _0x292175=_0x58510e;const _0x29a301={'eventID':_[_0x292175(0x16c)][_0x292175(0x11b)]};this[_0x292175(0x1b6)][_0x292175(0x13c)](_0x29a301,this[_0x292175(0x177)]);}['_handleTerminate'](){var _0x5c62a2=_0x58510e;this[_0x5c62a2(0x1b9)]=null,this['_status']!==_0x5c62a2(0x119)&&this[_0x5c62a2(0x173)]();}['_handleNewChangeSets'](_0x3d13b5){var _0x3d9d0d=_0x58510e;if(this[_0x3d9d0d(0x138)]===_0x3d9d0d(0x15b)&&this['_presenter']===_0x3d13b5[_0x3d9d0d(0x1af)]['memberID']){const _0x5709b6=_['parseProtocolChangeset'](_0x3d13b5[_0x3d9d0d(0x1af)])['mutations'][_0x3d9d0d(0x168)]()[_0x3d9d0d(0x118)](_0x1a40d4=>_0x1a40d4['id']===C[_0x3d9d0d(0x175)]['id']);if(_0x5709b6){const _0xa3c8ca=_0x5709b6[_0x3d9d0d(0x18e)][_0x3d9d0d(0x188)],_0x56d43e=_0x5709b6[_0x3d9d0d(0x18e)][_0x3d9d0d(0x15d)]['id'];setTimeout(()=>{var _0x6a9ee0=_0x3d9d0d;this[_0x6a9ee0(0x161)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0xa3c8ca,'subUnitId':_0x56d43e},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1bd8fe=_0x58510e;this[_0x1bd8fe(0x1b2)][_0x1bd8fe(0x1cb)](_0x1bd8fe(0x119));const _0x199d54=new Map(),_0x5c48e3=this[_0x1bd8fe(0x198)]=new o[(_0x1bd8fe(0x1e0))]();_0x5c48e3[_0x1bd8fe(0x1c8)](o[_0x1bd8fe(0x1a0)](()=>{var _0x138d16=_0x1bd8fe;_0x199d54[_0x138d16(0x124)](_0x47bd7a=>_0x47bd7a['complete']()),_0x199d54['clear']();})),_0x5c48e3[_0x1bd8fe(0x1c8)](this[_0x1bd8fe(0x161)]['onCommandExecuted'](_0x57563e=>{var _0x411dda=_0x1bd8fe,_0x6ae07f;if(_0x57563e[_0x411dda(0x164)]!==o['CommandType'][_0x411dda(0x13b)]||!this[_0x411dda(0x194)]['shouldShareOperation'](_0x57563e['id']))return;const {id:_0x35bfeb}=_0x57563e;let _0x9606a7;_0x199d54[_0x411dda(0x116)](_0x35bfeb)?_0x9606a7=_0x199d54['get'](_0x35bfeb):(_0x9606a7=new w[(_0x411dda(0x1ab))](),_0x199d54['set'](_0x35bfeb,_0x9606a7),_0x9606a7[_0x411dda(0x1c9)](b[_0x411dda(0x1e1)]((_0x6ae07f=this['_configService'][_0x411dda(0x1ae)](W))!=null?_0x6ae07f:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x411dda(0x18d)](_0x5bfa72=>{var _0x1e4e91=_0x411dda;this[_0x1e4e91(0x1b6)][_0x1e4e91(0x13c)]({'eventID':_[_0x1e4e91(0x16c)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1e4e91(0x177)],'operations':{[_0x5bfa72['id']]:{'id':_0x5bfa72['id'],'params':JSON[_0x1e4e91(0x1cd)](_0x5bfa72[_0x1e4e91(0x18e)])}}}},this['_unitID']);})),_0x9606a7[_0x411dda(0x1cb)](_0x57563e);})),this[_0x1bd8fe(0x194)][_0x1bd8fe(0x146)](this[_0x1bd8fe(0x177)])[_0x1bd8fe(0x124)](_0x3f7428=>this[_0x1bd8fe(0x1b6)][_0x1bd8fe(0x13c)]({'eventID':_[_0x1bd8fe(0x16c)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1bd8fe(0x177)],'operations':{[_0x3f7428['id']]:{'id':_0x3f7428['id'],'params':JSON['stringify'](_0x3f7428[_0x1bd8fe(0x18e)])}}}},this[_0x1bd8fe(0x177)]));}[_0x58510e(0x137)](){var _0xa7f623=_0x58510e,_0x19b1ef;this[_0xa7f623(0x1b2)][_0xa7f623(0x1cb)](_0xa7f623(0x17d)),(_0x19b1ef=this[_0xa7f623(0x198)])==null||_0x19b1ef[_0xa7f623(0x14b)](),this[_0xa7f623(0x198)]=null;}['_startFollowing'](){var _0x56d53f=_0x58510e,_0x2967c9;(_0x2967c9=this[_0x56d53f(0x198)])==null||_0x2967c9[_0x56d53f(0x14b)](),this['_status$'][_0x56d53f(0x1cb)](_0x56d53f(0x15b));}[_0x58510e(0x173)](){var _0x2afb7c=_0x58510e,_0x4fe353;this[_0x2afb7c(0x1b2)][_0x2afb7c(0x1cb)]('idle'),(_0x4fe353=this['_commandDisposable'])==null||_0x4fe353[_0x2afb7c(0x14b)](),this[_0x2afb7c(0x198)]=null;}[_0x58510e(0x1de)](){var _0x2e9040=_0x58510e,_0x39de81;this[_0x2e9040(0x1b2)][_0x2e9040(0x1cb)](_0x2e9040(0x16b)),(_0x39de81=this['_commandDisposable'])==null||_0x39de81['dispose']();}[_0x58510e(0x1d2)](_0x14bfca){var _0x226a05=_0x58510e;if([_0x226a05(0x119),'not-following',_0x226a05(0x1db)][_0x226a05(0x1e3)](this[_0x226a05(0x138)])||!_0x14bfca[_0x226a05(0x1af)][_0x226a05(0x1a4)]||_0x14bfca['data'][_0x226a05(0x1a4)]===this[_0x226a05(0x1b6)]['getMemberID']())return;this[_0x226a05(0x138)]===_0x226a05(0x17d)&&this[_0x226a05(0x1a8)]();const _0x56a838=_0x14bfca[_0x226a05(0x1af)]['operations'];Object[_0x226a05(0x1c5)](_0x56a838)['forEach'](_0xb891d2=>{var _0x2bffc6=_0x226a05;this[_0x2bffc6(0x161)][_0x2bffc6(0x178)](_0xb891d2['id'],_0xb891d2['params']?JSON['parse'](_0xb891d2[_0x2bffc6(0x18e)]):null,{'fromCollab':!0x0});});}[_0x58510e(0x185)](){var _0xdfa476=_0x58510e,_0x6a7c7d;this[_0xdfa476(0x1b2)][_0xdfa476(0x1cb)](_0xdfa476(0x1db)),(_0x6a7c7d=this[_0xdfa476(0x198)])==null||_0x6a7c7d[_0xdfa476(0x14b)]();}[_0x58510e(0x139)](){var _0x142264=_0x58510e;this['_status$'][_0x142264(0x1cb)](_0x142264(0x17d)),this[_0x142264(0x14f)]();}},exports[_0x58510e(0x1a3)]=R([S(0x2,o[_0x58510e(0x1ce)]),S(0x3,o[_0x58510e(0x126)](O)),S(0x4,o[_0x58510e(0x17a)])],exports['LiveShareCoordinator']);function A(){var _0x5722ab=_0x58510e;const _0x4789ab=p[_0x5722ab(0x16d)](exports[_0x5722ab(0x17e)]),_0x1d2d97=p[_0x5722ab(0x16d)](o[_0x5722ab(0x19c)]),_0x538b14=p[_0x5722ab(0x145)](()=>_0x1d2d97[_0x5722ab(0x166)](o[_0x5722ab(0x14a)][_0x5722ab(0x141)]),void 0x0,!0x1,[]),[_0x4820ff,_0xa6880d]=f[_0x5722ab(0x1b7)](null),[_0x57c909,_0xe26a1e]=f['useState'](h['IDLE']),_0x39081d=f[_0x5722ab(0x151)](null);return f[_0x5722ab(0x191)](()=>(_0x538b14&&_0x4789ab[_0x5722ab(0x1c4)](_0x538b14[_0x5722ab(0x11d)]())['then'](_0x5513b4=>{var _0x1cfc75=_0x5722ab;_0xa6880d(_0x5513b4),_0x39081d[_0x1cfc75(0x12a)]=_0x5513b4[_0x1cfc75(0x1dd)]['subscribe'](_0x451e64=>{_0xe26a1e(_0x451e64);});}),()=>{var _0x536036=_0x5722ab,_0x570f3f;(_0x570f3f=_0x39081d[_0x536036(0x12a)])==null||_0x570f3f['unsubscribe'](),_0x39081d[_0x536036(0x12a)]=null;}),[_0x538b14,_0x4789ab]),_0x4820ff?l[_0x5722ab(0x165)](g['Dropdown'],{'align':_0x5722ab(0x157),'disabled':_0x57c909===h[_0x5722ab(0x149)],'className':_0x5722ab(0x147),'overlay':l[_0x5722ab(0x165)](B,{'status':_0x57c909,'coordinator':_0x4820ff}),'children':l[_0x5722ab(0x165)]('button',{'className':g['clsx'](_0x5722ab(0x197),{'univer-cursor-not-allowed':_0x57c909===h[_0x5722ab(0x149)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x57c909!==h[_0x5722ab(0x149)]}),'type':_0x5722ab(0x135),'children':l[_0x5722ab(0x165)](P,{'className':_0x5722ab(0x1bb)})})}):null;}function B(_0x5a7bcb){var _0x169f6e=_0x58510e;const {status:_0x5858bc,coordinator:_0x3e3bbb}=_0x5a7bcb;switch(_0x5858bc){case h[_0x169f6e(0x1bd)]:return l[_0x169f6e(0x165)](Y,{'coordinator':_0x3e3bbb});case h[_0x169f6e(0x1c3)]:return l[_0x169f6e(0x165)](Z,{'coordinator':_0x3e3bbb});case h[_0x169f6e(0x128)]:return l[_0x169f6e(0x165)](J,{'coordinator':_0x3e3bbb});case h['OFFLINE']:return l[_0x169f6e(0x165)](z,{});case h[_0x169f6e(0x13a)]:return l['jsx'](K,{'coordinator':_0x3e3bbb});default:return null;}}function Y(_0x1e3c3d){var _0x4e76a5=_0x58510e;const {coordinator:_0xf2daa1}=_0x1e3c3d;return l[_0x4e76a5(0x13d)](l[_0x4e76a5(0x195)],{'children':[l[_0x4e76a5(0x165)](_0x4e76a5(0x158),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4e76a5(0x12f)}),l[_0x4e76a5(0x165)](g[_0x4e76a5(0x1a6)],{'onClick':()=>_0xf2daa1[_0x4e76a5(0x12e)](),'children':'Start'})]});}function Z(_0x1e0d15){var _0x34649d=_0x58510e;const {coordinator:_0x41c45e}=_0x1e0d15;return l[_0x34649d(0x13d)](l['Fragment'],{'children':[l['jsx'](_0x34649d(0x158),{'className':_0x34649d(0x181),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x34649d(0x165)](g[_0x34649d(0x1a6)],{'onClick':()=>_0x41c45e[_0x34649d(0x1e2)](),'children':'Stop\x20following'})]});}function J(_0x3a55ee){var _0x574acf=_0x58510e;const {coordinator:_0x5d4ef6}=_0x3a55ee;return l[_0x574acf(0x13d)](l['Fragment'],{'children':[l[_0x574acf(0x165)]('div',{'className':_0x574acf(0x181),'children':_0x574acf(0x19d)}),l['jsx'](g[_0x574acf(0x1a6)],{'variant':_0x574acf(0x11a),'onClick':()=>_0x5d4ef6[_0x574acf(0x1b4)](),'children':_0x574acf(0x14c)})]});}function K(_0x1b2825){var _0x5a1bf6=_0x58510e;const {coordinator:_0x3d6730}=_0x1b2825;return l[_0x5a1bf6(0x13d)](l[_0x5a1bf6(0x195)],{'children':[l[_0x5a1bf6(0x165)](_0x5a1bf6(0x158),{'className':_0x5a1bf6(0x181),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x5a1bf6(0x165)](g['Button'],{'variant':'default','onClick':()=>_0x3d6730['stopPresenting'](),'children':_0x5a1bf6(0x136)})]});}function z(){var _0x86a5e5=_0x58510e;return l[_0x86a5e5(0x165)](l[_0x86a5e5(0x195)],{'children':_0x86a5e5(0x169)});}var Q=Object[_0x58510e(0x162)],X=(_0x202028,_0x51e1d3,_0x18d54f,_0x45f55e)=>{var _0x262e7d=_0x58510e;for(var _0x24cb72=_0x45f55e>0x1?void 0x0:_0x45f55e?Q(_0x51e1d3,_0x18d54f):_0x51e1d3,_0x580360=_0x202028[_0x262e7d(0x1b8)]-0x1,_0x4d3abc;_0x580360>=0x0;_0x580360--)(_0x4d3abc=_0x202028[_0x580360])&&(_0x24cb72=_0x4d3abc(_0x24cb72)||_0x24cb72);return _0x24cb72;},x=(_0x1915ad,_0x570e78)=>(_0x360841,_0x41a887)=>_0x570e78(_0x360841,_0x41a887,_0x1915ad);exports[_0x58510e(0x180)]=class extends o[_0x58510e(0x13f)]{constructor(_0x4c5411,_0x1d6555){var _0x5bee7c=_0x58510e;super(),this['_injector']=_0x4c5411,this[_0x5bee7c(0x11e)]=_0x1d6555,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x59e65a=_0x58510e;this[_0x59e65a(0x15e)](this['_uiPartsService'][_0x59e65a(0x1df)](p['BuiltInUIPart'][_0x59e65a(0x159)],()=>p[_0x59e65a(0x199)](A,this[_0x59e65a(0x15c)])));}},exports[_0x58510e(0x180)]=X([x(0x0,o[_0x58510e(0x126)](o[_0x58510e(0x1a1)])),x(0x1,p[_0x58510e(0x1a2)])],exports[_0x58510e(0x180)]);const ee=_0x58510e(0x1ca),L={};var te=Object[_0x58510e(0x162)],ie=(_0x14a59a,_0x1c5e88,_0x5cc70e,_0x211e12)=>{for(var _0x214c82=_0x211e12>0x1?void 0x0:_0x211e12?te(_0x1c5e88,_0x5cc70e):_0x1c5e88,_0x55ff43=_0x14a59a['length']-0x1,_0x3c6409;_0x55ff43>=0x0;_0x55ff43--)(_0x3c6409=_0x14a59a[_0x55ff43])&&(_0x214c82=_0x3c6409(_0x214c82)||_0x214c82);return _0x214c82;},ne=(_0x533af7,_0x3ce48c)=>(_0x30b145,_0x281603)=>_0x3ce48c(_0x30b145,_0x281603,_0x533af7);let E=class extends o['Disposable']{constructor(_0x54a7ca){var _0x2cebad=_0x58510e;super(),this[_0x2cebad(0x194)]=_0x54a7ca,this[_0x2cebad(0x182)]();}[_0x58510e(0x182)](){var _0x474319=_0x58510e;[D[_0x474319(0x1a5)]['id'],D['SetScrollOperation']['id'],C[_0x474319(0x125)]['id']]['forEach'](_0x200b57=>{var _0x415eaf=_0x474319;this['disposeWithMe'](this[_0x415eaf(0x194)][_0x415eaf(0x1d3)](_0x200b57));});}};E=ie([ne(0x0,o[_0x58510e(0x126)](O))],E);var re=Object[_0x58510e(0x12d)],se=Object[_0x58510e(0x162)],oe=(_0x5601da,_0x58c8a5,_0x511737)=>_0x58c8a5 in _0x5601da?re(_0x5601da,_0x58c8a5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x511737}):_0x5601da[_0x58c8a5]=_0x511737,ae=(_0x1f5a69,_0x3ac679,_0x4d57d0,_0x292a8a)=>{for(var _0x19b5ec=_0x292a8a>0x1?void 0x0:_0x292a8a?se(_0x3ac679,_0x4d57d0):_0x3ac679,_0xade5f4=_0x1f5a69['length']-0x1,_0x1fd21f;_0xade5f4>=0x0;_0xade5f4--)(_0x1fd21f=_0x1f5a69[_0xade5f4])&&(_0x19b5ec=_0x1fd21f(_0x19b5ec)||_0x19b5ec);return _0x19b5ec;},N=(_0x276748,_0x4e1570)=>(_0x1b2c58,_0x4d1dfe)=>_0x4e1570(_0x1b2c58,_0x4d1dfe,_0x276748),T=(_0x3ead64,_0x1507cb,_0x279d32)=>oe(_0x3ead64,typeof _0x1507cb!='symbol'?_0x1507cb+'':_0x1507cb,_0x279d32);const le=_0x58510e(0x170);exports[_0x58510e(0x142)]=class extends o[_0x58510e(0x14d)]{constructor(_0x19b724=L,_0x3bd66b,_0x5893fd){var _0x4f13ff=_0x58510e;super(),this[_0x4f13ff(0x18c)]=_0x19b724,this[_0x4f13ff(0x15c)]=_0x3bd66b,this[_0x4f13ff(0x176)]=_0x5893fd;const {..._0x217109}=o[_0x4f13ff(0x133)]({},L,this[_0x4f13ff(0x18c)]);this['_configService'][_0x4f13ff(0x129)](ee,_0x217109);}['onStarting'](){var _0x27df14=_0x58510e;o[_0x27df14(0x1cf)](this[_0x27df14(0x15c)],o[_0x27df14(0x134)]([[O],[exports[_0x27df14(0x17e)]],[E],[exports[_0x27df14(0x180)]]],this[_0x27df14(0x18c)][_0x27df14(0x12b)])),o[_0x27df14(0x167)](this[_0x27df14(0x15c)],[[E]]);}[_0x58510e(0x132)](){var _0x2b5872=_0x58510e;o[_0x2b5872(0x167)](this[_0x2b5872(0x15c)],[[exports[_0x2b5872(0x180)]]]);}},T(exports[_0x58510e(0x142)],_0x58510e(0x164),o['UniverInstanceType'][_0x58510e(0x1e5)]),T(exports[_0x58510e(0x142)],_0x58510e(0x150),le),exports[_0x58510e(0x142)]=ae([o[_0x58510e(0x17c)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x58510e(0x126)](o['Injector'])),N(0x2,o[_0x58510e(0x1ce)])],exports[_0x58510e(0x142)]),exports[_0x58510e(0x140)]=A,exports['LiveShareService']=O,exports[_0x58510e(0x115)]=h;
1
+ 'use strict';var _0xc804c=_0x19cc;(function(_0x468112,_0x1d301f){var _0x4dfe46=_0x19cc,_0x2cc62a=_0x468112();while(!![]){try{var _0x229cf0=-parseInt(_0x4dfe46(0xc1))/0x1*(-parseInt(_0x4dfe46(0xcf))/0x2)+-parseInt(_0x4dfe46(0x150))/0x3*(-parseInt(_0x4dfe46(0xe7))/0x4)+parseInt(_0x4dfe46(0x171))/0x5*(-parseInt(_0x4dfe46(0x108))/0x6)+-parseInt(_0x4dfe46(0x15c))/0x7*(-parseInt(_0x4dfe46(0xd6))/0x8)+-parseInt(_0x4dfe46(0xbd))/0x9*(parseInt(_0x4dfe46(0xdf))/0xa)+parseInt(_0x4dfe46(0x128))/0xb+-parseInt(_0x4dfe46(0xff))/0xc*(parseInt(_0x4dfe46(0xc0))/0xd);if(_0x229cf0===_0x1d301f)break;else _0x2cc62a['push'](_0x2cc62a['shift']());}catch(_0x45d52c){_0x2cc62a['push'](_0x2cc62a['shift']());}}}(_0x5c60,0xb61d7));var U=Object['defineProperty'],F=(_0x2e8ff0,_0x1e15b4,_0x1e71a0)=>_0x1e15b4 in _0x2e8ff0?U(_0x2e8ff0,_0x1e15b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e71a0}):_0x2e8ff0[_0x1e15b4]=_0x1e71a0,v=(_0x41c3cb,_0x3ab9b9,_0x1e90c9)=>F(_0x41c3cb,typeof _0x3ab9b9!='symbol'?_0x3ab9b9+'':_0x3ab9b9,_0x1e90c9);Object[_0xc804c(0x11c)](exports,Symbol[_0xc804c(0xb7)],{'value':_0xc804c(0x126)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x30db74=_0xc804c;return u=Object['assign']||function(_0x4a4037){var _0x31c306=_0x19cc;for(var _0x3d3a25,_0x1f9e07=0x1,_0x2e5a88=arguments[_0x31c306(0x133)];_0x1f9e07<_0x2e5a88;_0x1f9e07++){_0x3d3a25=arguments[_0x1f9e07];for(var _0x26c953 in _0x3d3a25)Object[_0x31c306(0xd5)][_0x31c306(0x14e)][_0x31c306(0xd1)](_0x3d3a25,_0x26c953)&&(_0x4a4037[_0x26c953]=_0x3d3a25[_0x26c953]);}return _0x4a4037;},u[_0x30db74(0x112)](this,arguments);},$=function(_0x39215c,_0x2dde7e){var _0x47db16=_0xc804c,_0x3a6648={};for(var _0x2fc9b2 in _0x39215c)Object[_0x47db16(0xd5)][_0x47db16(0x14e)]['call'](_0x39215c,_0x2fc9b2)&&_0x2dde7e[_0x47db16(0xce)](_0x2fc9b2)<0x0&&(_0x3a6648[_0x2fc9b2]=_0x39215c[_0x2fc9b2]);if(_0x39215c!=null&&typeof Object[_0x47db16(0xda)]=='function'){for(var _0x23158d=0x0,_0x2fc9b2=Object[_0x47db16(0xda)](_0x39215c);_0x23158d<_0x2fc9b2[_0x47db16(0x133)];_0x23158d++)_0x2dde7e[_0x47db16(0xce)](_0x2fc9b2[_0x23158d])<0x0&&Object[_0x47db16(0xd5)][_0x47db16(0xc8)][_0x47db16(0xd1)](_0x39215c,_0x2fc9b2[_0x23158d])&&(_0x3a6648[_0x2fc9b2[_0x23158d]]=_0x39215c[_0x2fc9b2[_0x23158d]]);}return _0x3a6648;},j=f[_0xc804c(0x175)](function(_0x100fdd,_0x144888){var _0x55bcfe=_0xc804c,_0x221239=_0x100fdd['icon'],_0x425a92=_0x100fdd['id'],_0x3b8855=_0x100fdd[_0x55bcfe(0x16d)],_0x3e2312=_0x100fdd[_0x55bcfe(0x11b)],_0x571f2c=$(_0x100fdd,[_0x55bcfe(0x138),'id','className',_0x55bcfe(0x11b)]),_0xef58b2='univerjs-icon\x20univerjs-icon-'[_0x55bcfe(0x100)](_0x425a92,'\x20')[_0x55bcfe(0x100)](_0x3b8855||'')['trim'](),_0x583c82=f['useRef']('_'[_0x55bcfe(0x100)](k()));return y(_0x221239,''['concat'](_0x425a92),{'defIds':_0x221239[_0x55bcfe(0x184)],'idSuffix':_0x583c82['current']},u({'ref':_0x144888,'className':_0xef58b2},_0x571f2c),_0x3e2312);});function y(_0xce5dc6,_0x1eabe9,_0x57d04d,_0x5650ac,_0x55d3b6){var _0x7d3182=_0xc804c;return f[_0x7d3182(0xee)](_0xce5dc6[_0x7d3182(0x10e)],u(u({'key':_0x1eabe9},H(_0xce5dc6,_0x57d04d,_0x55d3b6)),_0x5650ac),(V(_0xce5dc6,_0x57d04d)[_0x7d3182(0x14f)]||[])[_0x7d3182(0xbe)](function(_0x31810c,_0x367cdb){var _0x3d20f4=_0x7d3182;return y(_0x31810c,''[_0x3d20f4(0x100)](_0x1eabe9,'-')[_0x3d20f4(0x100)](_0xce5dc6[_0x3d20f4(0x10e)],'-')[_0x3d20f4(0x100)](_0x367cdb),_0x57d04d,void 0x0,_0x55d3b6);}));}function _0x5c60(){var _0x3c2341=['prototype','5608mMIhLu','Inject','IUniverInstanceService','Stop\x20presenting','getOwnPropertySymbols','_status$','_commandService','Disposable','has','2435390RJGfUY','FOLLOWING','createInstance','idSuffix','UNIVER_UNKNOWN','startFollowing','current','dispose','852kjdaqV','_handleNewChangeSets','replace','_collabSession','send','string','sheet','createElement','HEADER_MENU','_handleOperation','_uiPartsService','SetScrollOperation','getConfig','onRendered','memberID','_commandDisposable','_injector','OFFLINE','getValue','following','_unitID','CommandType','forEach','presenting','380004qcMQHg','concat','LiveShareController','_handleTerminate','connectInjector','colorChannel1','_handleNewHost','unsubscribe','executeCommand','1269228RPexES','xlink:href','currentColor','set','_config','params','tag','delete','reverse','NEW_CHANGESETS','apply','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','InsertSheetMutation','not-following','BehaviorSubject','jsxs','_startPresenting','_fetchOperations','useEffect','extend','defineProperty','mutations','idle','find','complete','getLiveShareCoordinator','CollaborationEvent','IDLE','mask','_init','Module','type','11256575KanSdw','NOT_FOLLOWING','unitId','dispose$','live-share-icon','_univerInstanceService','mergeOverrideWithDependencies','fill','SetZoomRatioOperation','LIVESHARE_NEW_HOST','IUIPartsService','length','then','LIVESHARE_OPERATION','throttleTime','_startFollowing','icon','UniverLiveSharePlugin','UNIVER_LIVE_SHARE_PLUGIN','parseProtocolChangeset','http://www.w3.org/2000/svg','_configService','entries','registerSharedOperation','parse','UniverIcon','_collabSessionService','getMemberID','getCurrentTypeOfUnit$','disposeWithMe','univer-mb-3\x20univer-w-full\x20univer-text-sm','_beIdle','DesktopLiveShareController','getTypeOfUnitDisposed$','shouldShareOperation','OPERATION','div','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','hasOwnProperty','children','16953VQqKWQ','LIVESHARE_REQUEST_HOST','clear','subscribe','LIVESHARE_FETCH_OPERATIONS','LiveShareStatus','onStarting','use','from','useDependency','presenter','SAME_OPERATION_SHARE_INTERVAL','9268iNkFUs','_startLiveShareCoordinator','tryStartPresenting','Fragment','DependentOn','You\x27are\x20offline.','_sharedOperations','live-share.config','ICommandService','LiveShareService','default','Stop\x20following','touchDependencies','_stopPresenting','LIVESHARE_TERMINATE','_handleOnline','button','className','UniverCollaborationClientPlugin','add','symbol','15kwKvMT','pipe','getInitialStates','You\x27re\x20following\x20the\x20presenter','forwardRef','status$','_entities','stopPresenting','LiveShareIcon','sessionStatus$','Start','UNIVER_SHEET','random','svg','url(#$1','jsx','next','clsx','get','defIds','Present\x20this\x20document','_status','_presenter','_reporters','substring','Button','none','event$','values','UniverInstanceType','getOwnPropertyDescriptor','getTypeOfUnitAdded$','RxDisposable','end','IConfigService','takeUntil','attrs','setConfig','toStringTag','getUnitId','init','registerDependencies','data','Injector','18CRGuBT','map','SessionStatus','871vvcbKc','208553WcMHCg','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','offline','stopFollowing','evenodd','displayName','DisposableCollection','propertyIsEnumerable','defs','Subject','includes','0\x200\x2017\x2017','_stopFollowing','indexOf','8RnVcdb','1em','call','_liveShareService','registerInitialStateReporter','LiveShareCoordinator'];_0x5c60=function(){return _0x3c2341;};return _0x5c60();}function H(_0x3fcb2d,_0x722b09,_0x2d54ba){var _0x5216c7=_0xc804c,_0x17c4ab=u({},_0x3fcb2d['attrs']);_0x2d54ba!=null&&_0x2d54ba[_0x5216c7(0x104)]&&_0x17c4ab[_0x5216c7(0x12f)]==='colorChannel1'&&(_0x17c4ab[_0x5216c7(0x12f)]=_0x2d54ba[_0x5216c7(0x104)]),_0x3fcb2d['tag']===_0x5216c7(0x124)&&_0x17c4ab['id']&&(_0x17c4ab['id']=_0x17c4ab['id']+_0x722b09['idSuffix']),Object[_0x5216c7(0x13e)](_0x17c4ab)[_0x5216c7(0xfd)](function(_0x113732){var _0x28a4bc=_0x5216c7,_0x253f19=_0x113732[0x0],_0x3aa163=_0x113732[0x1];_0x253f19===_0x28a4bc(0x124)&&typeof _0x3aa163==_0x28a4bc(0xec)&&(_0x17c4ab[_0x253f19]=_0x3aa163[_0x28a4bc(0xe9)](/url\(#(.*)\)/,_0x28a4bc(0x17f)[_0x28a4bc(0x100)](_0x722b09[_0x28a4bc(0xe2)],')')));});var _0x42e7dc=_0x722b09[_0x5216c7(0x184)];return!_0x42e7dc||_0x42e7dc[_0x5216c7(0x133)]===0x0||(_0x3fcb2d[_0x5216c7(0x10e)]===_0x5216c7(0x157)&&_0x17c4ab[_0x5216c7(0x109)]&&(_0x17c4ab[_0x5216c7(0x109)]=_0x17c4ab[_0x5216c7(0x109)]+_0x722b09[_0x5216c7(0xe2)]),Object['entries'](_0x17c4ab)[_0x5216c7(0xfd)](function(_0x3ef88f){var _0x2422ac=_0x5216c7,_0x1a17da=_0x3ef88f[0x0],_0x48797d=_0x3ef88f[0x1];typeof _0x48797d==_0x2422ac(0xec)&&(_0x17c4ab[_0x1a17da]=_0x48797d[_0x2422ac(0xe9)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x722b09[_0x2422ac(0xe2)],')')));})),_0x17c4ab;}function V(_0x10b3ab,_0x546ca0){var _0x33ed4b=_0xc804c,_0x46bc90,_0x267de5=_0x546ca0['defIds'];return!_0x267de5||_0x267de5[_0x33ed4b(0x133)]===0x0?_0x10b3ab:_0x10b3ab[_0x33ed4b(0x10e)]===_0x33ed4b(0xc9)&&(!((_0x46bc90=_0x10b3ab[_0x33ed4b(0x14f)])===null||_0x46bc90===void 0x0)&&_0x46bc90['length'])?u(u({},_0x10b3ab),{'children':_0x10b3ab[_0x33ed4b(0x14f)]['map'](function(_0x378ff5){var _0x268919=_0x33ed4b;return typeof _0x378ff5[_0x268919(0xb5)]['id']==_0x268919(0xec)&&_0x267de5&&_0x267de5[_0x268919(0xcb)](_0x378ff5[_0x268919(0xb5)]['id'])?u(u({},_0x378ff5),{'attrs':u(u({},_0x378ff5[_0x268919(0xb5)]),{'id':_0x378ff5['attrs']['id']+_0x546ca0[_0x268919(0xe2)]})}):_0x378ff5;})}):_0x10b3ab;}function k(){var _0xb74595=_0xc804c;return Math[_0xb74595(0x17d)]()['toString'](0x24)[_0xb74595(0x189)](0x2,0x8);}j['displayName']=_0xc804c(0x141);var M={'tag':_0xc804c(0x17e),'attrs':{'xmlns':_0xc804c(0x13c),'fill':_0xc804c(0x18b),'viewBox':_0xc804c(0xcc),'width':_0xc804c(0xd0),'height':_0xc804c(0xd0)},'children':[{'tag':'path','attrs':{'fill':_0xc804c(0x10a),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0xc804c(0x10a),'d':_0xc804c(0x14d),'fillRule':_0xc804c(0xc5),'clipRule':'evenodd'}}]},P=f[_0xc804c(0x175)](function(_0x468081,_0x47cbbb){var _0x149d03=_0xc804c;return f[_0x149d03(0xee)](j,Object['assign']({},_0x468081,{'id':_0x149d03(0x12c),'ref':_0x47cbbb,'icon':M}));});P[_0xc804c(0xc6)]=_0xc804c(0x179);class O extends o[_0xc804c(0xdd)]{constructor(){var _0x39f8a5=_0xc804c;super(...arguments),v(this,_0x39f8a5(0x162),new Set()),v(this,_0x39f8a5(0x188),new Set());}[_0xc804c(0x13f)](_0x479f1c){var _0x31a0a2=_0xc804c;return this['_sharedOperations'][_0x31a0a2(0x16f)](_0x479f1c),o['toDisposable'](()=>this[_0x31a0a2(0x162)][_0x31a0a2(0x10f)](_0x479f1c));}[_0xc804c(0xd3)](_0x197dd3){var _0xf208ee=_0xc804c;return this[_0xf208ee(0x188)]['add'](_0x197dd3),o['toDisposable'](()=>this[_0xf208ee(0x188)][_0xf208ee(0x10f)](_0x197dd3));}[_0xc804c(0x14a)](_0x2d3723){var _0x4f4e0d=_0xc804c;return this['_sharedOperations'][_0x4f4e0d(0xde)](_0x2d3723);}[_0xc804c(0x173)](_0x5600fd){var _0x40d54f=_0xc804c;return Array[_0x40d54f(0x158)](this[_0x40d54f(0x188)])['map'](_0x49a47f=>_0x49a47f(_0x5600fd));}}var q=Object[_0xc804c(0xaf)],R=(_0x818764,_0x3bf542,_0x6784cf,_0x4ae02f)=>{for(var _0x15d65a=_0x4ae02f>0x1?void 0x0:_0x4ae02f?q(_0x3bf542,_0x6784cf):_0x3bf542,_0x54589a=_0x818764['length']-0x1,_0x43cd9f;_0x54589a>=0x0;_0x54589a--)(_0x43cd9f=_0x818764[_0x54589a])&&(_0x15d65a=_0x43cd9f(_0x15d65a)||_0x15d65a);return _0x15d65a;},S=(_0x2b9b43,_0x3085ab)=>(_0x41f692,_0x379c58)=>_0x3085ab(_0x41f692,_0x379c58,_0x2b9b43);exports['LiveShareController']=class extends o[_0xc804c(0xb1)]{constructor(_0x281dd1,_0x5c9c65,_0x42e18){var _0x31e64c=_0xc804c;super(),v(this,_0x31e64c(0x177),new Map()),(this['_univerInstanceService']=_0x281dd1,this['_injector']=_0x5c9c65,this[_0x31e64c(0x142)]=_0x42e18,this[_0x31e64c(0x125)]());}async[_0xc804c(0x121)](_0x11d82b){var _0x22f13f=_0xc804c;return this[_0x22f13f(0x177)][_0x22f13f(0xde)](_0x11d82b)||await this[_0x22f13f(0x15d)](_0x11d82b),this[_0x22f13f(0x177)][_0x22f13f(0x183)](_0x11d82b);}[_0xc804c(0x125)](){var _0x251567=_0xc804c;this[_0x251567(0x12d)][_0x251567(0xb0)](o['UniverInstanceType'][_0x251567(0x17c)])[_0x251567(0x172)](b[_0x251567(0xb4)](this[_0x251567(0x12b)]))[_0x251567(0x153)](async _0x18cfcc=>{var _0x56f08d=_0x251567;const _0x52c07a=_0x18cfcc[_0x56f08d(0xb8)]();this[_0x56f08d(0x177)][_0x56f08d(0xde)](_0x52c07a)||this['_startLiveShareCoordinator'](_0x52c07a);}),this[_0x251567(0x12d)][_0x251567(0x149)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x251567(0x172)](b[_0x251567(0xb4)](this[_0x251567(0x12b)]))[_0x251567(0x153)](_0x431bdc=>{var _0x4db725=_0x251567;const _0x1b80a7=_0x431bdc[_0x4db725(0xb8)](),_0x14f566=this['_entities']['get'](_0x1b80a7);_0x14f566==null||_0x14f566[_0x4db725(0xe6)]();});}async[_0xc804c(0x15d)](_0x61933){var _0xb535f2=_0xc804c;const _0xbf3925=await this[_0xb535f2(0x142)]['requireSession'](_0x61933),_0x40a72a=this[_0xb535f2(0xf7)][_0xb535f2(0xe1)](exports['LiveShareCoordinator'],_0x61933,_0xbf3925);return _0x40a72a[_0xb535f2(0xb9)](),this['_entities'][_0xb535f2(0x10b)](_0x61933,_0x40a72a),_0x40a72a;}},exports[_0xc804c(0x101)]=R([S(0x0,o[_0xc804c(0xd8)]),S(0x1,o[_0xc804c(0xd7)](o['Injector'])),S(0x2,o[_0xc804c(0xd7)](m['CollaborationSessionService']))],exports[_0xc804c(0x101)]);var h=(_0x2c4a95=>(_0x2c4a95[_0xc804c(0xf8)]='offline',_0x2c4a95[_0xc804c(0x123)]='idle',_0x2c4a95[_0xc804c(0xe0)]='following',_0x2c4a95[_0xc804c(0x129)]='not-following',_0x2c4a95['PRESENTING']='presenting',_0x2c4a95))(h||{});const W=_0xc804c(0x15b),G=0xc8;exports['LiveShareCoordinator']=class extends o[_0xc804c(0xb1)]{constructor(_0xd80d6b,_0x20e749,_0x45e199,_0x579863,_0x1d513c){var _0x40e078=_0xc804c;super(),v(this,'_status$',new w[(_0x40e078(0x116))]('idle')),v(this,_0x40e078(0x176),this[_0x40e078(0xdb)]['asObservable']()),v(this,_0x40e078(0x125),!0x1),v(this,_0x40e078(0xf6),null),v(this,'_presenter',null),(this[_0x40e078(0xfb)]=_0xd80d6b,this[_0x40e078(0xea)]=_0x20e749,this[_0x40e078(0x13d)]=_0x45e199,this[_0x40e078(0xd2)]=_0x579863,this['_commandService']=_0x1d513c);}get[_0xc804c(0x186)](){var _0x55e2e1=_0xc804c;return this[_0x55e2e1(0xdb)][_0x55e2e1(0xf9)]();}['dispose'](){var _0x35188f=_0xc804c,_0x26db80;(_0x26db80=this[_0x35188f(0xf6)])==null||_0x26db80['dispose'](),this[_0x35188f(0xdb)][_0x35188f(0x181)](_0x35188f(0x11e)),this[_0x35188f(0xdb)][_0x35188f(0x120)]();}['init'](){var _0x30d66b=_0xc804c;this[_0x30d66b(0x125)]||(this[_0x30d66b(0x125)]=!0x0,this['_collabSession'][_0x30d66b(0x17a)][_0x30d66b(0x172)](b['takeUntil'](this[_0x30d66b(0x12b)]))['subscribe'](_0x1e690d=>{var _0x2c8449=_0x30d66b;switch(_0x1e690d){case m[_0x2c8449(0xbf)][_0x2c8449(0xf8)]:this['_handleOffline']();break;case m[_0x2c8449(0xbf)]['ONLINE']:this[_0x2c8449(0x16b)]();break;}}),this['_collabSession'][_0x30d66b(0x18c)]['pipe'](b[_0x30d66b(0xb4)](this['dispose$']))[_0x30d66b(0x153)](_0x249775=>{var _0x23b28e=_0x30d66b;const {eventID:_0x17339e}=_0x249775;switch(_0x17339e){case _[_0x23b28e(0x122)][_0x23b28e(0x131)]:this['_handleNewHost'](_0x249775);break;case _['CollaborationEvent'][_0x23b28e(0x135)]:this[_0x23b28e(0xf0)](_0x249775);break;case _[_0x23b28e(0x122)][_0x23b28e(0x16a)]:this[_0x23b28e(0x102)]();break;case _[_0x23b28e(0x122)][_0x23b28e(0x111)]:this[_0x23b28e(0xe8)](_0x249775);break;}}));}[_0xc804c(0x15e)](){var _0x589fd8=_0xc804c;this[_0x589fd8(0xea)]['send']({'eventID':_[_0x589fd8(0x122)][_0x589fd8(0x151)],'data':{'unitID':this[_0x589fd8(0xfb)],'userID':this[_0x589fd8(0xea)][_0x589fd8(0x143)]()}},this[_0x589fd8(0xfb)]);}[_0xc804c(0x178)](){var _0x3b3fb1=_0xc804c;this['_status']===_0x3b3fb1(0xfe)&&(this[_0x3b3fb1(0xdb)][_0x3b3fb1(0x181)](_0x3b3fb1(0x11e)),this[_0x3b3fb1(0xea)][_0x3b3fb1(0xeb)]({'eventID':_[_0x3b3fb1(0x122)][_0x3b3fb1(0x16a)],'data':{'unitID':this[_0x3b3fb1(0xfb)]}},this[_0x3b3fb1(0xfb)]));}[_0xc804c(0xe4)](){var _0x40552a=_0xc804c;this[_0x40552a(0x186)]===_0x40552a(0x115)&&(this[_0x40552a(0xdb)][_0x40552a(0x181)]('following'),this[_0x40552a(0x137)]());}[_0xc804c(0xc4)](){var _0x3ff48f=_0xc804c;this[_0x3ff48f(0x186)]===_0x3ff48f(0xfa)&&this[_0x3ff48f(0xcd)]();}[_0xc804c(0x105)](_0x2640b9){var _0x4c26a0=_0xc804c;const {presenter:_0x1fa323}=_0x2640b9[_0x4c26a0(0xbb)],_0x5ce40f=this[_0x4c26a0(0xea)][_0x4c26a0(0x143)]();this['_presenter']=_0x1fa323,_0x1fa323===_0x5ce40f?(this[_0x4c26a0(0xcd)](),this[_0x4c26a0(0x118)]()):this[_0x4c26a0(0x186)]!==_0x4c26a0(0x115)&&(this[_0x4c26a0(0x169)](),this['_startFollowing']());}[_0xc804c(0x119)](){var _0x4a28ad=_0xc804c;const _0xfbd905={'eventID':_[_0x4a28ad(0x122)][_0x4a28ad(0x154)]};this[_0x4a28ad(0xea)][_0x4a28ad(0xeb)](_0xfbd905,this[_0x4a28ad(0xfb)]);}[_0xc804c(0x102)](){var _0x31459a=_0xc804c;this[_0x31459a(0x187)]=null,this[_0x31459a(0x186)]!==_0x31459a(0xfe)&&this[_0x31459a(0x147)]();}['_handleNewChangeSets'](_0xfd1053){var _0x1753ac=_0xc804c;if(this[_0x1753ac(0x186)]==='following'&&this[_0x1753ac(0x187)]===_0xfd1053[_0x1753ac(0xbb)][_0x1753ac(0xf5)]){const _0x2f7b69=_[_0x1753ac(0x13b)](_0xfd1053[_0x1753ac(0xbb)])[_0x1753ac(0x11d)][_0x1753ac(0x110)]()[_0x1753ac(0x11f)](_0xccc62a=>_0xccc62a['id']===C[_0x1753ac(0x114)]['id']);if(_0x2f7b69){const _0x4049de=_0x2f7b69[_0x1753ac(0x10d)][_0x1753ac(0x12a)],_0x1dd765=_0x2f7b69[_0x1753ac(0x10d)][_0x1753ac(0xed)]['id'];setTimeout(()=>{var _0xf34af8=_0x1753ac;this[_0xf34af8(0xdc)][_0xf34af8(0x107)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x4049de,'subUnitId':_0x1dd765},{'fromCollab':!0x0});});}}}[_0xc804c(0x118)](){var _0x2c8df7=_0xc804c;this[_0x2c8df7(0xdb)]['next'](_0x2c8df7(0xfe));const _0x276f=new Map(),_0x2e2994=this['_commandDisposable']=new o[(_0x2c8df7(0xc7))]();_0x2e2994[_0x2c8df7(0x16f)](o['toDisposable'](()=>{var _0x7ded88=_0x2c8df7;_0x276f[_0x7ded88(0xfd)](_0x58c024=>_0x58c024[_0x7ded88(0x120)]()),_0x276f[_0x7ded88(0x152)]();})),_0x2e2994[_0x2c8df7(0x16f)](this[_0x2c8df7(0xdc)]['onCommandExecuted'](_0xda4c4a=>{var _0xf4a689=_0x2c8df7,_0x593097;if(_0xda4c4a['type']!==o[_0xf4a689(0xfc)][_0xf4a689(0x14b)]||!this[_0xf4a689(0xd2)][_0xf4a689(0x14a)](_0xda4c4a['id']))return;const {id:_0x46769b}=_0xda4c4a;let _0x545b21;_0x276f['has'](_0x46769b)?_0x545b21=_0x276f[_0xf4a689(0x183)](_0x46769b):(_0x545b21=new w[(_0xf4a689(0xca))](),_0x276f[_0xf4a689(0x10b)](_0x46769b,_0x545b21),_0x545b21[_0xf4a689(0x172)](b[_0xf4a689(0x136)]((_0x593097=this[_0xf4a689(0x13d)][_0xf4a689(0xf3)](W))!=null?_0x593097:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xf4a689(0x153)](_0x1279c9=>{var _0x28d41d=_0xf4a689;this[_0x28d41d(0xea)][_0x28d41d(0xeb)]({'eventID':_['CollaborationEvent'][_0x28d41d(0x135)],'data':{'unitID':this[_0x28d41d(0xfb)],'operations':{[_0x1279c9['id']]:{'id':_0x1279c9['id'],'params':JSON['stringify'](_0x1279c9[_0x28d41d(0x10d)])}}}},this[_0x28d41d(0xfb)]);})),_0x545b21[_0xf4a689(0x181)](_0xda4c4a);})),this['_liveShareService'][_0x2c8df7(0x173)](this[_0x2c8df7(0xfb)])[_0x2c8df7(0xfd)](_0x13c2a5=>this[_0x2c8df7(0xea)][_0x2c8df7(0xeb)]({'eventID':_[_0x2c8df7(0x122)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2c8df7(0xfb)],'operations':{[_0x13c2a5['id']]:{'id':_0x13c2a5['id'],'params':JSON['stringify'](_0x13c2a5[_0x2c8df7(0x10d)])}}}},this[_0x2c8df7(0xfb)]));}[_0xc804c(0x169)](){var _0x53fee2=_0xc804c,_0x109b81;this[_0x53fee2(0xdb)][_0x53fee2(0x181)](_0x53fee2(0x11e)),(_0x109b81=this['_commandDisposable'])==null||_0x109b81[_0x53fee2(0xe6)](),this[_0x53fee2(0xf6)]=null;}[_0xc804c(0x137)](){var _0x32e9c6=_0xc804c,_0x93b370;(_0x93b370=this[_0x32e9c6(0xf6)])==null||_0x93b370[_0x32e9c6(0xe6)](),this['_status$'][_0x32e9c6(0x181)]('following');}['_beIdle'](){var _0x36ac72=_0xc804c,_0x192e76;this[_0x36ac72(0xdb)][_0x36ac72(0x181)]('idle'),(_0x192e76=this[_0x36ac72(0xf6)])==null||_0x192e76[_0x36ac72(0xe6)](),this[_0x36ac72(0xf6)]=null;}['_stopFollowing'](){var _0x191109=_0xc804c,_0x108d53;this[_0x191109(0xdb)][_0x191109(0x181)](_0x191109(0x115)),(_0x108d53=this[_0x191109(0xf6)])==null||_0x108d53[_0x191109(0xe6)]();}[_0xc804c(0xf0)](_0x512f03){var _0x418ad7=_0xc804c;if([_0x418ad7(0xfe),_0x418ad7(0x115),_0x418ad7(0xc3)]['includes'](this[_0x418ad7(0x186)])||!_0x512f03[_0x418ad7(0xbb)]['presenter']||_0x512f03[_0x418ad7(0xbb)][_0x418ad7(0x15a)]===this[_0x418ad7(0xea)][_0x418ad7(0x143)]())return;this['_status']===_0x418ad7(0x11e)&&this[_0x418ad7(0x137)]();const _0x27b613=_0x512f03[_0x418ad7(0xbb)]['operations'];Object[_0x418ad7(0x18d)](_0x27b613)[_0x418ad7(0xfd)](_0x221cf4=>{var _0x1af803=_0x418ad7;this[_0x1af803(0xdc)][_0x1af803(0x107)](_0x221cf4['id'],_0x221cf4[_0x1af803(0x10d)]?JSON[_0x1af803(0x140)](_0x221cf4[_0x1af803(0x10d)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1c5f2b=_0xc804c,_0x572ff7;this[_0x1c5f2b(0xdb)][_0x1c5f2b(0x181)]('offline'),(_0x572ff7=this['_commandDisposable'])==null||_0x572ff7[_0x1c5f2b(0xe6)]();}['_handleOnline'](){var _0x503fa8=_0xc804c;this[_0x503fa8(0xdb)]['next'](_0x503fa8(0x11e)),this['_fetchOperations']();}},exports[_0xc804c(0xd4)]=R([S(0x2,o[_0xc804c(0xb3)]),S(0x3,o['Inject'](O)),S(0x4,o[_0xc804c(0x164)])],exports[_0xc804c(0xd4)]);function A(){var _0x5590ea=_0xc804c;const _0x5cc0b1=p[_0x5590ea(0x159)](exports[_0x5590ea(0x101)]),_0x33bc80=p[_0x5590ea(0x159)](o[_0x5590ea(0xd8)]),_0x49e494=p['useObservable'](()=>_0x33bc80[_0x5590ea(0x144)](o[_0x5590ea(0xae)][_0x5590ea(0x17c)]),void 0x0,!0x1,[]),[_0x45e5e2,_0x270996]=f['useState'](null),[_0x1b2c02,_0xd18641]=f['useState'](h['IDLE']),_0x3deac5=f['useRef'](null);return f[_0x5590ea(0x11a)](()=>(_0x49e494&&_0x5cc0b1['getLiveShareCoordinator'](_0x49e494[_0x5590ea(0xb8)]())[_0x5590ea(0x134)](_0x3af0f2=>{var _0x42eb98=_0x5590ea;_0x270996(_0x3af0f2),_0x3deac5[_0x42eb98(0xe5)]=_0x3af0f2['status$'][_0x42eb98(0x153)](_0x20de5b=>{_0xd18641(_0x20de5b);});}),()=>{var _0x785df1=_0x5590ea,_0x1fdf4c;(_0x1fdf4c=_0x3deac5[_0x785df1(0xe5)])==null||_0x1fdf4c[_0x785df1(0x106)](),_0x3deac5['current']=null;}),[_0x49e494,_0x5cc0b1]),_0x45e5e2?l[_0x5590ea(0x180)](g['Dropdown'],{'align':_0x5590ea(0xb2),'disabled':_0x1b2c02===h['OFFLINE'],'className':_0x5590ea(0x113),'overlay':l[_0x5590ea(0x180)](B,{'status':_0x1b2c02,'coordinator':_0x45e5e2}),'children':l[_0x5590ea(0x180)](_0x5590ea(0x16c),{'className':g[_0x5590ea(0x182)](_0x5590ea(0xc2),{'univer-cursor-not-allowed':_0x1b2c02===h[_0x5590ea(0xf8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1b2c02!==h[_0x5590ea(0xf8)]}),'type':_0x5590ea(0x16c),'children':l['jsx'](P,{'className':'univer-size-4'})})}):null;}function B(_0x41c0c9){var _0x594333=_0xc804c;const {status:_0x6d3e5,coordinator:_0x3a51ad}=_0x41c0c9;switch(_0x6d3e5){case h['IDLE']:return l[_0x594333(0x180)](Y,{'coordinator':_0x3a51ad});case h['FOLLOWING']:return l[_0x594333(0x180)](Z,{'coordinator':_0x3a51ad});case h['NOT_FOLLOWING']:return l[_0x594333(0x180)](J,{'coordinator':_0x3a51ad});case h[_0x594333(0xf8)]:return l[_0x594333(0x180)](z,{});case h['PRESENTING']:return l[_0x594333(0x180)](K,{'coordinator':_0x3a51ad});default:return null;}}function Y(_0x17bb01){var _0x2789f2=_0xc804c;const {coordinator:_0x4ddf85}=_0x17bb01;return l[_0x2789f2(0x117)](l[_0x2789f2(0x15f)],{'children':[l[_0x2789f2(0x180)](_0x2789f2(0x14c),{'className':_0x2789f2(0x146),'children':_0x2789f2(0x185)}),l[_0x2789f2(0x180)](g[_0x2789f2(0x18a)],{'onClick':()=>_0x4ddf85[_0x2789f2(0x15e)](),'children':_0x2789f2(0x17b)})]});}function Z(_0x598992){var _0x24caa0=_0xc804c;const {coordinator:_0x441075}=_0x598992;return l[_0x24caa0(0x117)](l[_0x24caa0(0x15f)],{'children':[l[_0x24caa0(0x180)](_0x24caa0(0x14c),{'className':_0x24caa0(0x146),'children':_0x24caa0(0x174)}),l[_0x24caa0(0x180)](g[_0x24caa0(0x18a)],{'onClick':()=>_0x441075[_0x24caa0(0xc4)](),'children':_0x24caa0(0x167)})]});}function J(_0x1c7dbb){var _0x1190a0=_0xc804c;const {coordinator:_0x551c58}=_0x1c7dbb;return l[_0x1190a0(0x117)](l['Fragment'],{'children':[l['jsx'](_0x1190a0(0x14c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x1190a0(0x180)](g[_0x1190a0(0x18a)],{'variant':'text','onClick':()=>_0x551c58[_0x1190a0(0xe4)](),'children':'Start\x20following'})]});}function K(_0x3dc717){var _0x5466a9=_0xc804c;const {coordinator:_0x41f1fd}=_0x3dc717;return l[_0x5466a9(0x117)](l[_0x5466a9(0x15f)],{'children':[l['jsx'](_0x5466a9(0x14c),{'className':_0x5466a9(0x146),'children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](g[_0x5466a9(0x18a)],{'variant':_0x5466a9(0x166),'onClick':()=>_0x41f1fd[_0x5466a9(0x178)](),'children':_0x5466a9(0xd9)})]});}function z(){var _0x31e44d=_0xc804c;return l[_0x31e44d(0x180)](l[_0x31e44d(0x15f)],{'children':_0x31e44d(0x161)});}var Q=Object[_0xc804c(0xaf)],X=(_0x411895,_0x152ce6,_0x4908ad,_0x392443)=>{var _0x7b2bd5=_0xc804c;for(var _0x4647b6=_0x392443>0x1?void 0x0:_0x392443?Q(_0x152ce6,_0x4908ad):_0x152ce6,_0x287bd3=_0x411895[_0x7b2bd5(0x133)]-0x1,_0x1887fa;_0x287bd3>=0x0;_0x287bd3--)(_0x1887fa=_0x411895[_0x287bd3])&&(_0x4647b6=_0x1887fa(_0x4647b6)||_0x4647b6);return _0x4647b6;},x=(_0x389a2f,_0x416826)=>(_0x180bbc,_0x3dc27b)=>_0x416826(_0x180bbc,_0x3dc27b,_0x389a2f);function _0x19cc(_0x44035d,_0x436ec8){var _0x5c6045=_0x5c60();return _0x19cc=function(_0x19cccd,_0x5c300a){_0x19cccd=_0x19cccd-0xae;var _0xb1ec5=_0x5c6045[_0x19cccd];return _0xb1ec5;},_0x19cc(_0x44035d,_0x436ec8);}exports[_0xc804c(0x148)]=class extends o['Disposable']{constructor(_0x305f6a,_0x1ac8ee){var _0x284741=_0xc804c;super(),this[_0x284741(0xf7)]=_0x305f6a,this['_uiPartsService']=_0x1ac8ee,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x1bd4f4=_0xc804c;this[_0x1bd4f4(0x145)](this[_0x1bd4f4(0xf1)]['registerComponent'](p['BuiltInUIPart'][_0x1bd4f4(0xef)],()=>p[_0x1bd4f4(0x103)](A,this['_injector'])));}},exports[_0xc804c(0x148)]=X([x(0x0,o['Inject'](o[_0xc804c(0xbc)])),x(0x1,p[_0xc804c(0x132)])],exports[_0xc804c(0x148)]);const ee=_0xc804c(0x163),L={};var te=Object[_0xc804c(0xaf)],ie=(_0x46b9de,_0x142de1,_0x1e1c5a,_0x3c7b32)=>{var _0x4ac7c2=_0xc804c;for(var _0xdc9faf=_0x3c7b32>0x1?void 0x0:_0x3c7b32?te(_0x142de1,_0x1e1c5a):_0x142de1,_0x582453=_0x46b9de[_0x4ac7c2(0x133)]-0x1,_0x3266fa;_0x582453>=0x0;_0x582453--)(_0x3266fa=_0x46b9de[_0x582453])&&(_0xdc9faf=_0x3266fa(_0xdc9faf)||_0xdc9faf);return _0xdc9faf;},ne=(_0x5cfc4f,_0x3f9bf0)=>(_0x38fcd6,_0x8715d5)=>_0x3f9bf0(_0x38fcd6,_0x8715d5,_0x5cfc4f);let E=class extends o[_0xc804c(0xdd)]{constructor(_0x24183){var _0x26af24=_0xc804c;super(),this[_0x26af24(0xd2)]=_0x24183,this[_0x26af24(0x125)]();}[_0xc804c(0x125)](){var _0x431c77=_0xc804c;[D[_0x431c77(0x130)]['id'],D[_0x431c77(0xf2)]['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x24119d=>{var _0x49c4a0=_0x431c77;this[_0x49c4a0(0x145)](this[_0x49c4a0(0xd2)][_0x49c4a0(0x13f)](_0x24119d));});}};E=ie([ne(0x0,o[_0xc804c(0xd7)](O))],E);var re=Object[_0xc804c(0x11c)],se=Object['getOwnPropertyDescriptor'],oe=(_0x342307,_0x1c7c95,_0x2c364f)=>_0x1c7c95 in _0x342307?re(_0x342307,_0x1c7c95,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c364f}):_0x342307[_0x1c7c95]=_0x2c364f,ae=(_0x53ce8b,_0x4479dc,_0x1c8c8e,_0x3ebbab)=>{var _0x35558a=_0xc804c;for(var _0x13f587=_0x3ebbab>0x1?void 0x0:_0x3ebbab?se(_0x4479dc,_0x1c8c8e):_0x4479dc,_0x4463a9=_0x53ce8b[_0x35558a(0x133)]-0x1,_0x383d54;_0x4463a9>=0x0;_0x4463a9--)(_0x383d54=_0x53ce8b[_0x4463a9])&&(_0x13f587=_0x383d54(_0x13f587)||_0x13f587);return _0x13f587;},N=(_0x123cfa,_0x11734d)=>(_0x4d8ccd,_0x314307)=>_0x11734d(_0x4d8ccd,_0x314307,_0x123cfa),T=(_0x63546d,_0x4da3bc,_0x5bdbf9)=>oe(_0x63546d,typeof _0x4da3bc!=_0xc804c(0x170)?_0x4da3bc+'':_0x4da3bc,_0x5bdbf9);const le=_0xc804c(0x13a);exports[_0xc804c(0x139)]=class extends o['Plugin']{constructor(_0x1ca74c=L,_0x47cb91,_0x31054b){var _0x568a47=_0xc804c;super(),this[_0x568a47(0x10c)]=_0x1ca74c,this[_0x568a47(0xf7)]=_0x47cb91,this[_0x568a47(0x13d)]=_0x31054b;const {..._0x298bc3}=o['merge']({},L,this['_config']);this[_0x568a47(0x13d)][_0x568a47(0xb6)](ee,_0x298bc3);}[_0xc804c(0x156)](){var _0x3a67c4=_0xc804c;o[_0x3a67c4(0xba)](this['_injector'],o[_0x3a67c4(0x12e)]([[O],[exports[_0x3a67c4(0x101)]],[E],[exports[_0x3a67c4(0x148)]]],this[_0x3a67c4(0x10c)]['override'])),o['touchDependencies'](this['_injector'],[[E]]);}[_0xc804c(0xf4)](){var _0xcc5bf9=_0xc804c;o[_0xcc5bf9(0x168)](this[_0xcc5bf9(0xf7)],[[exports[_0xcc5bf9(0x148)]]]);}},T(exports[_0xc804c(0x139)],_0xc804c(0x127),o[_0xc804c(0xae)][_0xc804c(0xe3)]),T(exports[_0xc804c(0x139)],'pluginName',le),exports[_0xc804c(0x139)]=ae([o[_0xc804c(0x160)](m[_0xc804c(0x16e)]),N(0x1,o['Inject'](o[_0xc804c(0xbc)])),N(0x2,o[_0xc804c(0xb3)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=A,exports[_0xc804c(0x165)]=O,exports[_0xc804c(0x155)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x20ffcd=_0x2eb9;(function(_0x2b75fc,_0x27b805){var _0x3d8cbe=_0x2eb9,_0x51e224=_0x2b75fc();while(!![]){try{var _0x3de8ba=parseInt(_0x3d8cbe(0xc1))/0x1*(parseInt(_0x3d8cbe(0xb3))/0x2)+-parseInt(_0x3d8cbe(0x124))/0x3*(-parseInt(_0x3d8cbe(0x131))/0x4)+-parseInt(_0x3d8cbe(0x91))/0x5+parseInt(_0x3d8cbe(0xf0))/0x6+-parseInt(_0x3d8cbe(0xc3))/0x7*(-parseInt(_0x3d8cbe(0xef))/0x8)+parseInt(_0x3d8cbe(0xd8))/0x9*(parseInt(_0x3d8cbe(0x116))/0xa)+-parseInt(_0x3d8cbe(0xa6))/0xb*(parseInt(_0x3d8cbe(0x12e))/0xc);if(_0x3de8ba===_0x27b805)break;else _0x51e224['push'](_0x51e224['shift']());}catch(_0x251c97){_0x51e224['push'](_0x51e224['shift']());}}}(_0x9300,0x4beb2));var q=Object[_0x20ffcd(0x121)],z=(_0x36d883,_0x37b2e7,_0x1d3ce6)=>_0x37b2e7 in _0x36d883?q(_0x36d883,_0x37b2e7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d3ce6}):_0x36d883[_0x37b2e7]=_0x1d3ce6,d=(_0x2a1788,_0x4628c7,_0x1b4fc7)=>z(_0x2a1788,typeof _0x4628c7!=_0x20ffcd(0x12f)?_0x4628c7+'':_0x4628c7,_0x1b4fc7);import{Disposable as _0x539b1d,toDisposable as _0x6f4b16,IUniverInstanceService as _0x43cc96,Inject as _0x42b534,Injector as _0x59a932,IConfigService as _0x54be48,ICommandService as _0x53f3c0,RxDisposable as _0x483a0a,UniverInstanceType as _0x38c32e,DisposableCollection as _0x1c0ac7,CommandType as _0x406405,DependentOn as _0x50aa05,Plugin as _0x574128,merge as _0x78447b,registerDependencies as _0x3e2832,mergeOverrideWithDependencies as _0x360b36,touchDependencies as _0x5b4f9e}from'@univerjs/core';import{useDependency as _0x26c555,useObservable as _0x45febd,IUIPartsService as _0x4f299e,BuiltInUIPart as _0x1b50ea,connectInjector as _0x5bf79f}from'@univerjs/ui';function _0x9300(){var _0x23791d=['http://www.w3.org/2000/svg','type','current','_presenter','event$','next','createInstance','_injector','97176KcQeIh','3568134HIkJGi','_beIdle','idSuffix','PRESENTING','params','children','onCommandExecuted','length','send','LIVESHARE_OPERATION','init','className','getInitialStates','onRendered','entries','_status','fill','defIds','status$','values','_status$','_sharedOperations','unitId','subscribe','_collabSessionService','_startFollowing','_handleOnline','Stop\x20following','string','hasOwnProperty','has','icon','_handleOperation','operations','ONLINE','includes','live-share-icon','_univerInstanceService','131320zMqAaY','UNIVER_SHEET','onStarting','registerSharedOperation','_reporters','sheet','reverse','text','getMemberID','_uiPartsService','startFollowing','defineProperty','path','_startPresenting','474795KuCpja','propertyIsEnumerable','extend','UNIVER_UNKNOWN','indexOf','presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','map','setConfig','_handleOffline','24jqwAfF','symbol','Start','12wFKvpI','_entities','FOLLOWING','univerjs-icon\x20univerjs-icon-','stopFollowing','LIVESHARE_FETCH_OPERATIONS','from','data','_fetchOperations','override','getValue','_config','tryStartPresenting','toString','unsubscribe','_liveShareService','_handleNewChangeSets','You\x27re\x20presenting\x20the\x20document','concat','currentColor','dispose','1422970oPwGrh','_commandService','offline','none','You\x27are\x20offline.','idle','UniverIcon','_unitID','add','You\x27re\x20not\x20following\x20the\x20presenter','following','getCurrentTypeOfUnit$','_commandDisposable','getOwnPropertySymbols','apply','getTypeOfUnitAdded$','shouldShareOperation','requireSession','disposeWithMe','live-share.config','evenodd','6671423BhVXNS','presenting','registerInitialStateReporter','LIVESHARE_REQUEST_HOST','getUnitId','_configService','LIVESHARE_TERMINATE','You\x27re\x20following\x20the\x20presenter','defs','getTypeOfUnitDisposed$','forEach','NOT_FOLLOWING','assign','2ZxhInW','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','Present\x20this\x20document','call','dispose$','set','NEW_CHANGESETS','_mountLiveShare','executeCommand','div','memberID','delete','_stopPresenting','not-following','203605TvScnc','stopPresenting','301MPArvr','getConfig','prototype','getOwnPropertyDescriptor','colorChannel1','_startLiveShareCoordinator','mutations','_handleTerminate','find','IDLE','_init','displayName','_stopFollowing','mask','LiveShareIcon','svg','default','xlink:href','registerComponent','SAME_OPERATION_SHARE_INTERVAL','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','9XvnfAd','clear','attrs','use','pipe','OFFLINE','url(#$1','stringify','button','tag','getLiveShareCoordinator','_collabSession','_handleNewHost','replace','get'];_0x9300=function(){return _0x23791d;};return _0x9300();}import{jsx as _0x157b9a,jsxs as _0x473891,Fragment as _0x55b1a3}from'react/jsx-runtime';import{Dropdown as _0xb7599b,clsx as _0x400561,Button as _0x28c9ca}from'@univerjs/design';import{forwardRef as _0x7a472b,useRef as _0x4928e4,createElement as _0x23f67a,useState as _0x3d360d,useEffect as _0x752798}from'react';import{CollaborationEvent as _0x2abc7e,parseProtocolChangeset as _0x5d4330}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4f9f70,SessionStatus as _0x1cf2a1,UniverCollaborationClientPlugin as _0x2f65a8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3240f5,SetWorksheetActiveOperation as _0x208319}from'@univerjs/sheets';import{BehaviorSubject as _0x1e4a81,Subject as _0x396bc7}from'rxjs';import{takeUntil as _0x5b2945,throttleTime as _0x5c2331}from'rxjs/operators';import{SetZoomRatioOperation as _0x5deda2,SetScrollOperation as _0x5abaaa}from'@univerjs/sheets-ui';var c=function(){var _0xf16334=_0x20ffcd;return c=Object[_0xf16334(0xb2)]||function(_0x5eb54e){var _0x33d02a=_0xf16334;for(var _0x3a9f7b,_0x4af609=0x1,_0x9e4e20=arguments[_0x33d02a(0xf7)];_0x4af609<_0x9e4e20;_0x4af609++){_0x3a9f7b=arguments[_0x4af609];for(var _0x24a116 in _0x3a9f7b)Object[_0x33d02a(0xc5)]['hasOwnProperty'][_0x33d02a(0xb6)](_0x3a9f7b,_0x24a116)&&(_0x5eb54e[_0x24a116]=_0x3a9f7b[_0x24a116]);}return _0x5eb54e;},c[_0xf16334(0x9f)](this,arguments);},Oe=function(_0x3942af,_0x4422c1){var _0xe8340f=_0x20ffcd,_0x4d91ae={};for(var _0x481cf8 in _0x3942af)Object['prototype'][_0xe8340f(0x10d)]['call'](_0x3942af,_0x481cf8)&&_0x4422c1[_0xe8340f(0x128)](_0x481cf8)<0x0&&(_0x4d91ae[_0x481cf8]=_0x3942af[_0x481cf8]);if(_0x3942af!=null&&typeof Object[_0xe8340f(0x9e)]=='function'){for(var _0x36f605=0x0,_0x481cf8=Object['getOwnPropertySymbols'](_0x3942af);_0x36f605<_0x481cf8['length'];_0x36f605++)_0x4422c1['indexOf'](_0x481cf8[_0x36f605])<0x0&&Object[_0xe8340f(0xc5)][_0xe8340f(0x125)][_0xe8340f(0xb6)](_0x3942af,_0x481cf8[_0x36f605])&&(_0x4d91ae[_0x481cf8[_0x36f605]]=_0x3942af[_0x481cf8[_0x36f605]]);}return _0x4d91ae;},W=_0x7a472b(function(_0x20cb53,_0x8e1fe0){var _0x10ac0b=_0x20ffcd,_0x1b2cce=_0x20cb53['icon'],_0x9d6e3e=_0x20cb53['id'],_0x473ed6=_0x20cb53[_0x10ac0b(0xfb)],_0x290904=_0x20cb53[_0x10ac0b(0x126)],_0x4fa4f4=Oe(_0x20cb53,[_0x10ac0b(0x10f),'id',_0x10ac0b(0xfb),'extend']),_0x260855=_0x10ac0b(0x134)[_0x10ac0b(0x8e)](_0x9d6e3e,'\x20')[_0x10ac0b(0x8e)](_0x473ed6||'')['trim'](),_0x418b50=_0x4928e4('_'[_0x10ac0b(0x8e)](Ne()));return Y(_0x1b2cce,''[_0x10ac0b(0x8e)](_0x9d6e3e),{'defIds':_0x1b2cce[_0x10ac0b(0x101)],'idSuffix':_0x418b50['current']},c({'ref':_0x8e1fe0,'className':_0x260855},_0x4fa4f4),_0x290904);});function Y(_0x4332a8,_0x53ab35,_0xacdba,_0x1444da,_0x19d1da){var _0x54b9c9=_0x20ffcd;return _0x23f67a(_0x4332a8[_0x54b9c9(0xe1)],c(c({'key':_0x53ab35},Ee(_0x4332a8,_0xacdba,_0x19d1da)),_0x1444da),(we(_0x4332a8,_0xacdba)[_0x54b9c9(0xf5)]||[])[_0x54b9c9(0x12b)](function(_0x176e99,_0x210eb2){var _0x1c88de=_0x54b9c9;return Y(_0x176e99,''['concat'](_0x53ab35,'-')['concat'](_0x4332a8['tag'],'-')[_0x1c88de(0x8e)](_0x210eb2),_0xacdba,void 0x0,_0x19d1da);}));}function Ee(_0x8203fc,_0x232873,_0x146f8e){var _0x320c35=_0x20ffcd,_0x132089=c({},_0x8203fc['attrs']);_0x146f8e!=null&&_0x146f8e['colorChannel1']&&_0x132089[_0x320c35(0x100)]===_0x320c35(0xc7)&&(_0x132089[_0x320c35(0x100)]=_0x146f8e[_0x320c35(0xc7)]),_0x8203fc[_0x320c35(0xe1)]==='mask'&&_0x132089['id']&&(_0x132089['id']=_0x132089['id']+_0x232873[_0x320c35(0xf2)]),Object['entries'](_0x132089)[_0x320c35(0xb0)](function(_0x4bd1a8){var _0x4ca582=_0x320c35,_0x1ef676=_0x4bd1a8[0x0],_0x2068e0=_0x4bd1a8[0x1];_0x1ef676===_0x4ca582(0xd0)&&typeof _0x2068e0==_0x4ca582(0x10c)&&(_0x132089[_0x1ef676]=_0x2068e0[_0x4ca582(0xe5)](/url\(#(.*)\)/,_0x4ca582(0xde)['concat'](_0x232873[_0x4ca582(0xf2)],')')));});var _0x4f0b36=_0x232873[_0x320c35(0x101)];return!_0x4f0b36||_0x4f0b36[_0x320c35(0xf7)]===0x0||(_0x8203fc[_0x320c35(0xe1)]===_0x320c35(0xdb)&&_0x132089[_0x320c35(0xd4)]&&(_0x132089[_0x320c35(0xd4)]=_0x132089[_0x320c35(0xd4)]+_0x232873[_0x320c35(0xf2)]),Object[_0x320c35(0xfe)](_0x132089)['forEach'](function(_0x2a0c26){var _0x3f65b4=_0x320c35,_0x4983e2=_0x2a0c26[0x0],_0x39ddfc=_0x2a0c26[0x1];typeof _0x39ddfc=='string'&&(_0x132089[_0x4983e2]=_0x39ddfc[_0x3f65b4(0xe5)](/url\(#(.*)\)/,_0x3f65b4(0xde)[_0x3f65b4(0x8e)](_0x232873['idSuffix'],')')));})),_0x132089;}function we(_0x1b0d58,_0x1002f7){var _0x43d901=_0x20ffcd,_0x123073,_0x2e0fae=_0x1002f7[_0x43d901(0x101)];return!_0x2e0fae||_0x2e0fae[_0x43d901(0xf7)]===0x0?_0x1b0d58:_0x1b0d58[_0x43d901(0xe1)]===_0x43d901(0xae)&&(!((_0x123073=_0x1b0d58[_0x43d901(0xf5)])===null||_0x123073===void 0x0)&&_0x123073[_0x43d901(0xf7)])?c(c({},_0x1b0d58),{'children':_0x1b0d58[_0x43d901(0xf5)][_0x43d901(0x12b)](function(_0x32f4b3){var _0x1df102=_0x43d901;return typeof _0x32f4b3['attrs']['id']==_0x1df102(0x10c)&&_0x2e0fae&&_0x2e0fae[_0x1df102(0x113)](_0x32f4b3['attrs']['id'])?c(c({},_0x32f4b3),{'attrs':c(c({},_0x32f4b3[_0x1df102(0xda)]),{'id':_0x32f4b3[_0x1df102(0xda)]['id']+_0x1002f7['idSuffix']})}):_0x32f4b3;})}):_0x1b0d58;}function Ne(){var _0x474e05=_0x20ffcd;return Math['random']()[_0x474e05(0x89)](0x24)['substring'](0x2,0x8);}W[_0x20ffcd(0xce)]=_0x20ffcd(0x97);var Ce={'tag':_0x20ffcd(0xd2),'attrs':{'xmlns':_0x20ffcd(0xe7),'fill':_0x20ffcd(0x94),'viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0x20ffcd(0x122),'attrs':{'fill':_0x20ffcd(0x8f),'d':_0x20ffcd(0xb4)}},{'tag':'path','attrs':{'fill':_0x20ffcd(0x8f),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x20ffcd(0xa5),'clipRule':_0x20ffcd(0xa5)}}]},B=_0x7a472b(function(_0x434678,_0x1f52f2){var _0x302b39=_0x20ffcd;return _0x23f67a(W,Object['assign']({},_0x434678,{'id':_0x302b39(0x114),'ref':_0x1f52f2,'icon':Ce}));});function _0x2eb9(_0x5dfbc0,_0x4ef128){var _0x9300a0=_0x9300();return _0x2eb9=function(_0x2eb90b,_0x2124eb){_0x2eb90b=_0x2eb90b-0x85;var _0x1c9c27=_0x9300a0[_0x2eb90b];return _0x1c9c27;},_0x2eb9(_0x5dfbc0,_0x4ef128);}B[_0x20ffcd(0xce)]=_0x20ffcd(0xd1);class L extends _0x539b1d{constructor(){var _0x35854c=_0x20ffcd;super(...arguments),d(this,_0x35854c(0x105),new Set()),d(this,_0x35854c(0x11a),new Set());}[_0x20ffcd(0x119)](_0x398132){var _0x448957=_0x20ffcd;return this[_0x448957(0x105)][_0x448957(0x99)](_0x398132),_0x6f4b16(()=>this[_0x448957(0x105)][_0x448957(0xbe)](_0x398132));}[_0x20ffcd(0xa8)](_0x5c8e56){var _0x39a15a=_0x20ffcd;return this[_0x39a15a(0x11a)][_0x39a15a(0x99)](_0x5c8e56),_0x6f4b16(()=>this[_0x39a15a(0x11a)]['delete'](_0x5c8e56));}[_0x20ffcd(0xa1)](_0xcd336b){var _0x4c4bbb=_0x20ffcd;return this['_sharedOperations'][_0x4c4bbb(0x10e)](_0xcd336b);}[_0x20ffcd(0xfc)](_0x3f02a8){var _0x31e215=_0x20ffcd;return Array[_0x31e215(0x137)](this[_0x31e215(0x11a)])[_0x31e215(0x12b)](_0x38ff09=>_0x38ff09(_0x3f02a8));}}var De=Object[_0x20ffcd(0xc6)],Z=(_0x2867b1,_0x11cd36,_0x2a2236,_0x45b7b0)=>{var _0x192486=_0x20ffcd;for(var _0x140dc1=_0x45b7b0>0x1?void 0x0:_0x45b7b0?De(_0x11cd36,_0x2a2236):_0x11cd36,_0x39601a=_0x2867b1[_0x192486(0xf7)]-0x1,_0x5975a7;_0x39601a>=0x0;_0x39601a--)(_0x5975a7=_0x2867b1[_0x39601a])&&(_0x140dc1=_0x5975a7(_0x140dc1)||_0x140dc1);return _0x140dc1;},f=(_0x309e57,_0x795664)=>(_0xe5c25a,_0x49b8d3)=>_0x795664(_0xe5c25a,_0x49b8d3,_0x309e57);let m=class extends _0x483a0a{constructor(_0x49be32,_0x1f22e6,_0x5d3ae9){var _0x45eb05=_0x20ffcd;super(),d(this,_0x45eb05(0x132),new Map()),(this[_0x45eb05(0x115)]=_0x49be32,this['_injector']=_0x1f22e6,this['_collabSessionService']=_0x5d3ae9,this[_0x45eb05(0xcd)]());}async[_0x20ffcd(0xe2)](_0x4fc6eb){var _0x493172=_0x20ffcd;return this[_0x493172(0x132)]['has'](_0x4fc6eb)||await this['_startLiveShareCoordinator'](_0x4fc6eb),this[_0x493172(0x132)]['get'](_0x4fc6eb);}[_0x20ffcd(0xcd)](){var _0x21acef=_0x20ffcd;this[_0x21acef(0x115)][_0x21acef(0xa0)](_0x38c32e[_0x21acef(0x117)])['pipe'](_0x5b2945(this[_0x21acef(0xb7)]))[_0x21acef(0x107)](async _0x4f9ae6=>{var _0x589536=_0x21acef;const _0x40b3fe=_0x4f9ae6[_0x589536(0xaa)]();this[_0x589536(0x132)][_0x589536(0x10e)](_0x40b3fe)||this[_0x589536(0xc8)](_0x40b3fe);}),this[_0x21acef(0x115)][_0x21acef(0xaf)](_0x38c32e[_0x21acef(0x117)])['pipe'](_0x5b2945(this[_0x21acef(0xb7)]))[_0x21acef(0x107)](_0x527482=>{var _0x1618de=_0x21acef;const _0x5b5dd1=_0x527482[_0x1618de(0xaa)](),_0xc9b338=this[_0x1618de(0x132)][_0x1618de(0xe6)](_0x5b5dd1);_0xc9b338==null||_0xc9b338[_0x1618de(0x90)]();});}async[_0x20ffcd(0xc8)](_0x5e6fa6){var _0x27b1a0=_0x20ffcd;const _0x1d6e57=await this[_0x27b1a0(0x108)][_0x27b1a0(0xa2)](_0x5e6fa6),_0x3823e4=this[_0x27b1a0(0xee)][_0x27b1a0(0xed)](C,_0x5e6fa6,_0x1d6e57);return _0x3823e4[_0x27b1a0(0xfa)](),this[_0x27b1a0(0x132)][_0x27b1a0(0xb8)](_0x5e6fa6,_0x3823e4),_0x3823e4;}};m=Z([f(0x0,_0x43cc96),f(0x1,_0x42b534(_0x59a932)),f(0x2,_0x42b534(_0x4f9f70))],m);var h=(_0x3dcbf5=>(_0x3dcbf5['OFFLINE']=_0x20ffcd(0x93),_0x3dcbf5[_0x20ffcd(0xcc)]=_0x20ffcd(0x96),_0x3dcbf5['FOLLOWING']=_0x20ffcd(0x9b),_0x3dcbf5['NOT_FOLLOWING']='not-following',_0x3dcbf5[_0x20ffcd(0xf3)]=_0x20ffcd(0xa7),_0x3dcbf5))(h||{});const xe=_0x20ffcd(0xd6),Le=0xc8;let C=class extends _0x483a0a{constructor(_0x309cbc,_0x4cabe9,_0x8e41c7,_0x4c01f4,_0x160d03){var _0x33d594=_0x20ffcd;super(),d(this,'_status$',new _0x1e4a81(_0x33d594(0x96))),d(this,_0x33d594(0x102),this['_status$']['asObservable']()),d(this,'_init',!0x1),d(this,_0x33d594(0x9d),null),d(this,_0x33d594(0xea),null),(this[_0x33d594(0x98)]=_0x309cbc,this[_0x33d594(0xe3)]=_0x4cabe9,this['_configService']=_0x8e41c7,this[_0x33d594(0x8b)]=_0x4c01f4,this[_0x33d594(0x92)]=_0x160d03);}get['_status'](){var _0xed1284=_0x20ffcd;return this[_0xed1284(0x104)][_0xed1284(0x86)]();}[_0x20ffcd(0x90)](){var _0xfeab79=_0x20ffcd,_0xe95d63;(_0xe95d63=this[_0xfeab79(0x9d)])==null||_0xe95d63[_0xfeab79(0x90)](),this[_0xfeab79(0x104)][_0xfeab79(0xec)](_0xfeab79(0x96)),this['_status$']['complete']();}['init'](){var _0x164c56=_0x20ffcd;this['_init']||(this['_init']=!0x0,this[_0x164c56(0xe3)]['sessionStatus$'][_0x164c56(0xdc)](_0x5b2945(this[_0x164c56(0xb7)]))[_0x164c56(0x107)](_0x4f2f8e=>{var _0x5ebdc3=_0x164c56;switch(_0x4f2f8e){case _0x1cf2a1['OFFLINE']:this[_0x5ebdc3(0x12d)]();break;case _0x1cf2a1[_0x5ebdc3(0x112)]:this[_0x5ebdc3(0x10a)]();break;}}),this[_0x164c56(0xe3)][_0x164c56(0xeb)][_0x164c56(0xdc)](_0x5b2945(this[_0x164c56(0xb7)]))[_0x164c56(0x107)](_0x582462=>{var _0x3aa487=_0x164c56;const {eventID:_0x57758a}=_0x582462;switch(_0x57758a){case _0x2abc7e['LIVESHARE_NEW_HOST']:this[_0x3aa487(0xe4)](_0x582462);break;case _0x2abc7e[_0x3aa487(0xf9)]:this['_handleOperation'](_0x582462);break;case _0x2abc7e[_0x3aa487(0xac)]:this[_0x3aa487(0xca)]();break;case _0x2abc7e[_0x3aa487(0xb9)]:this[_0x3aa487(0x8c)](_0x582462);break;}}));}[_0x20ffcd(0x88)](){var _0x4260bf=_0x20ffcd;this[_0x4260bf(0xe3)][_0x4260bf(0xf8)]({'eventID':_0x2abc7e[_0x4260bf(0xa9)],'data':{'unitID':this[_0x4260bf(0x98)],'userID':this['_collabSession'][_0x4260bf(0x11e)]()}},this['_unitID']);}[_0x20ffcd(0xc2)](){var _0x29cc31=_0x20ffcd;this[_0x29cc31(0xff)]==='presenting'&&(this[_0x29cc31(0x104)][_0x29cc31(0xec)]('idle'),this[_0x29cc31(0xe3)][_0x29cc31(0xf8)]({'eventID':_0x2abc7e[_0x29cc31(0xac)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x20ffcd(0x120)](){var _0x36dbf3=_0x20ffcd;this[_0x36dbf3(0xff)]===_0x36dbf3(0xc0)&&(this[_0x36dbf3(0x104)][_0x36dbf3(0xec)](_0x36dbf3(0x9b)),this[_0x36dbf3(0x109)]());}[_0x20ffcd(0x135)](){var _0x22cd64=_0x20ffcd;this[_0x22cd64(0xff)]===_0x22cd64(0x9b)&&this[_0x22cd64(0xcf)]();}[_0x20ffcd(0xe4)](_0x197f32){var _0x39a9b5=_0x20ffcd;const {presenter:_0x1c969e}=_0x197f32[_0x39a9b5(0x138)],_0x8702b3=this[_0x39a9b5(0xe3)][_0x39a9b5(0x11e)]();this[_0x39a9b5(0xea)]=_0x1c969e,_0x1c969e===_0x8702b3?(this[_0x39a9b5(0xcf)](),this[_0x39a9b5(0x123)]()):this[_0x39a9b5(0xff)]!==_0x39a9b5(0xc0)&&(this[_0x39a9b5(0xbf)](),this['_startFollowing']());}[_0x20ffcd(0x139)](){var _0x2b7ab1=_0x20ffcd;const _0x4aad35={'eventID':_0x2abc7e[_0x2b7ab1(0x136)]};this[_0x2b7ab1(0xe3)][_0x2b7ab1(0xf8)](_0x4aad35,this['_unitID']);}['_handleTerminate'](){var _0x338ba1=_0x20ffcd;this[_0x338ba1(0xea)]=null,this[_0x338ba1(0xff)]!=='presenting'&&this[_0x338ba1(0xf1)]();}[_0x20ffcd(0x8c)](_0x1e407d){var _0x15de91=_0x20ffcd;if(this[_0x15de91(0xff)]===_0x15de91(0x9b)&&this['_presenter']===_0x1e407d[_0x15de91(0x138)][_0x15de91(0xbd)]){const _0xb04db0=_0x5d4330(_0x1e407d[_0x15de91(0x138)])[_0x15de91(0xc9)][_0x15de91(0x11c)]()[_0x15de91(0xcb)](_0x1fc8b9=>_0x1fc8b9['id']===_0x3240f5['id']);if(_0xb04db0){const _0x2d5386=_0xb04db0[_0x15de91(0xf4)][_0x15de91(0x106)],_0x2e3c61=_0xb04db0[_0x15de91(0xf4)][_0x15de91(0x11b)]['id'];setTimeout(()=>{var _0x1ecf1b=_0x15de91;this[_0x1ecf1b(0x92)][_0x1ecf1b(0xbb)](_0x208319['id'],{'unitId':_0x2d5386,'subUnitId':_0x2e3c61},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xc76bac=_0x20ffcd;this[_0xc76bac(0x104)]['next'](_0xc76bac(0xa7));const _0xd3dee4=new Map(),_0x529bd5=this[_0xc76bac(0x9d)]=new _0x1c0ac7();_0x529bd5[_0xc76bac(0x99)](_0x6f4b16(()=>{var _0xc4795=_0xc76bac;_0xd3dee4[_0xc4795(0xb0)](_0x26eca9=>_0x26eca9['complete']()),_0xd3dee4[_0xc4795(0xd9)]();})),_0x529bd5[_0xc76bac(0x99)](this[_0xc76bac(0x92)][_0xc76bac(0xf6)](_0xb0c0a3=>{var _0x3f4e5c=_0xc76bac,_0x23b1a6;if(_0xb0c0a3[_0x3f4e5c(0xe8)]!==_0x406405['OPERATION']||!this[_0x3f4e5c(0x8b)][_0x3f4e5c(0xa1)](_0xb0c0a3['id']))return;const {id:_0x1b43d1}=_0xb0c0a3;let _0x4d2385;_0xd3dee4['has'](_0x1b43d1)?_0x4d2385=_0xd3dee4[_0x3f4e5c(0xe6)](_0x1b43d1):(_0x4d2385=new _0x396bc7(),_0xd3dee4[_0x3f4e5c(0xb8)](_0x1b43d1,_0x4d2385),_0x4d2385[_0x3f4e5c(0xdc)](_0x5c2331((_0x23b1a6=this[_0x3f4e5c(0xab)][_0x3f4e5c(0xc4)](xe))!=null?_0x23b1a6:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3f4e5c(0x107)](_0x4d89d3=>{var _0x1a35b2=_0x3f4e5c;this[_0x1a35b2(0xe3)]['send']({'eventID':_0x2abc7e[_0x1a35b2(0xf9)],'data':{'unitID':this['_unitID'],'operations':{[_0x4d89d3['id']]:{'id':_0x4d89d3['id'],'params':JSON[_0x1a35b2(0xdf)](_0x4d89d3[_0x1a35b2(0xf4)])}}}},this[_0x1a35b2(0x98)]);})),_0x4d2385[_0x3f4e5c(0xec)](_0xb0c0a3);})),this['_liveShareService'][_0xc76bac(0xfc)](this[_0xc76bac(0x98)])[_0xc76bac(0xb0)](_0x128ef1=>this[_0xc76bac(0xe3)]['send']({'eventID':_0x2abc7e[_0xc76bac(0xf9)],'data':{'unitID':this['_unitID'],'operations':{[_0x128ef1['id']]:{'id':_0x128ef1['id'],'params':JSON['stringify'](_0x128ef1[_0xc76bac(0xf4)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x5ae72b=_0x20ffcd,_0x6ce1c7;this['_status$'][_0x5ae72b(0xec)](_0x5ae72b(0x96)),(_0x6ce1c7=this['_commandDisposable'])==null||_0x6ce1c7[_0x5ae72b(0x90)](),this[_0x5ae72b(0x9d)]=null;}['_startFollowing'](){var _0x5dbe43=_0x20ffcd,_0x501234;(_0x501234=this[_0x5dbe43(0x9d)])==null||_0x501234[_0x5dbe43(0x90)](),this[_0x5dbe43(0x104)][_0x5dbe43(0xec)](_0x5dbe43(0x9b));}[_0x20ffcd(0xf1)](){var _0x50f650=_0x20ffcd,_0xd6ff21;this['_status$'][_0x50f650(0xec)](_0x50f650(0x96)),(_0xd6ff21=this[_0x50f650(0x9d)])==null||_0xd6ff21['dispose'](),this[_0x50f650(0x9d)]=null;}[_0x20ffcd(0xcf)](){var _0xa90780=_0x20ffcd,_0x16663b;this['_status$'][_0xa90780(0xec)](_0xa90780(0xc0)),(_0x16663b=this[_0xa90780(0x9d)])==null||_0x16663b[_0xa90780(0x90)]();}[_0x20ffcd(0x110)](_0x2e7910){var _0x2eb80d=_0x20ffcd;if(['presenting',_0x2eb80d(0xc0),'offline'][_0x2eb80d(0x113)](this[_0x2eb80d(0xff)])||!_0x2e7910['data'][_0x2eb80d(0x129)]||_0x2e7910[_0x2eb80d(0x138)]['presenter']===this[_0x2eb80d(0xe3)]['getMemberID']())return;this[_0x2eb80d(0xff)]===_0x2eb80d(0x96)&&this[_0x2eb80d(0x109)]();const _0x260277=_0x2e7910['data'][_0x2eb80d(0x111)];Object[_0x2eb80d(0x103)](_0x260277)[_0x2eb80d(0xb0)](_0x3ac204=>{var _0x25c849=_0x2eb80d;this['_commandService']['executeCommand'](_0x3ac204['id'],_0x3ac204[_0x25c849(0xf4)]?JSON['parse'](_0x3ac204['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1754a8=_0x20ffcd,_0x1a8c5a;this[_0x1754a8(0x104)][_0x1754a8(0xec)](_0x1754a8(0x93)),(_0x1a8c5a=this[_0x1754a8(0x9d)])==null||_0x1a8c5a['dispose']();}[_0x20ffcd(0x10a)](){var _0x1dd754=_0x20ffcd;this[_0x1dd754(0x104)]['next'](_0x1dd754(0x96)),this['_fetchOperations']();}};C=Z([f(0x2,_0x54be48),f(0x3,_0x42b534(L)),f(0x4,_0x53f3c0)],C);function ye(){var _0x2885bf=_0x20ffcd;const _0x52abed=_0x26c555(m),_0x1eee02=_0x26c555(_0x43cc96),_0x1e7bdd=_0x45febd(()=>_0x1eee02[_0x2885bf(0x9c)](_0x38c32e['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xb49b80,_0x3998c2]=_0x3d360d(null),[_0x552f57,_0x85b75a]=_0x3d360d(h[_0x2885bf(0xcc)]),_0x4a8976=_0x4928e4(null);return _0x752798(()=>(_0x1e7bdd&&_0x52abed[_0x2885bf(0xe2)](_0x1e7bdd[_0x2885bf(0xaa)]())['then'](_0x188a24=>{_0x3998c2(_0x188a24),_0x4a8976['current']=_0x188a24['status$']['subscribe'](_0x3a23f4=>{_0x85b75a(_0x3a23f4);});}),()=>{var _0x178ad4=_0x2885bf,_0x50dfb9;(_0x50dfb9=_0x4a8976['current'])==null||_0x50dfb9[_0x178ad4(0x8a)](),_0x4a8976[_0x178ad4(0xe9)]=null;}),[_0x1e7bdd,_0x52abed]),_0xb49b80?_0x157b9a(_0xb7599b,{'align':'end','disabled':_0x552f57===h[_0x2885bf(0xdd)],'className':_0x2885bf(0xd7),'overlay':_0x157b9a(Re,{'status':_0x552f57,'coordinator':_0xb49b80}),'children':_0x157b9a(_0x2885bf(0xe0),{'className':_0x400561('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x552f57===h[_0x2885bf(0xdd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x552f57!==h['OFFLINE']}),'type':'button','children':_0x157b9a(B,{'className':'univer-size-4'})})}):null;}function Re(_0x1068e6){var _0x18633d=_0x20ffcd;const {status:_0x3a9292,coordinator:_0xc82d20}=_0x1068e6;switch(_0x3a9292){case h[_0x18633d(0xcc)]:return _0x157b9a(Pe,{'coordinator':_0xc82d20});case h[_0x18633d(0x133)]:return _0x157b9a(Ae,{'coordinator':_0xc82d20});case h[_0x18633d(0xb1)]:return _0x157b9a(Te,{'coordinator':_0xc82d20});case h[_0x18633d(0xdd)]:return _0x157b9a(Fe,{});case h[_0x18633d(0xf3)]:return _0x157b9a($e,{'coordinator':_0xc82d20});default:return null;}}function Pe(_0x24d3d8){var _0x1e31b7=_0x20ffcd;const {coordinator:_0x557f16}=_0x24d3d8;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x1e31b7(0xbc),{'className':_0x1e31b7(0x12a),'children':_0x1e31b7(0xb5)}),_0x157b9a(_0x28c9ca,{'onClick':()=>_0x557f16[_0x1e31b7(0x88)](),'children':_0x1e31b7(0x130)})]});}function Ae(_0x3359cd){var _0x87f096=_0x20ffcd;const {coordinator:_0x514ce6}=_0x3359cd;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x87f096(0xbc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x87f096(0xad)}),_0x157b9a(_0x28c9ca,{'onClick':()=>_0x514ce6[_0x87f096(0x135)](),'children':_0x87f096(0x10b)})]});}function Te(_0x282133){var _0x3563bf=_0x20ffcd;const {coordinator:_0x2f9c0f}=_0x282133;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x3563bf(0xbc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3563bf(0x9a)}),_0x157b9a(_0x28c9ca,{'variant':_0x3563bf(0x11d),'onClick':()=>_0x2f9c0f['startFollowing'](),'children':'Start\x20following'})]});}function $e(_0x3d8f5b){var _0x237ffe=_0x20ffcd;const {coordinator:_0x5e3865}=_0x3d8f5b;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x237ffe(0xbc),{'className':_0x237ffe(0x12a),'children':_0x237ffe(0x8d)}),_0x157b9a(_0x28c9ca,{'variant':_0x237ffe(0xd3),'onClick':()=>_0x5e3865[_0x237ffe(0xc2)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x5172e2=_0x20ffcd;return _0x157b9a(_0x55b1a3,{'children':_0x5172e2(0x95)});}var He=Object[_0x20ffcd(0xc6)],je=(_0x2591b1,_0x395329,_0x5b527a,_0x4a2a75)=>{var _0x705bae=_0x20ffcd;for(var _0x29f307=_0x4a2a75>0x1?void 0x0:_0x4a2a75?He(_0x395329,_0x5b527a):_0x395329,_0x2ce23b=_0x2591b1[_0x705bae(0xf7)]-0x1,_0x3381a6;_0x2ce23b>=0x0;_0x2ce23b--)(_0x3381a6=_0x2591b1[_0x2ce23b])&&(_0x29f307=_0x3381a6(_0x29f307)||_0x29f307);return _0x29f307;},T=(_0x1bd158,_0x4869a7)=>(_0x4f7c8f,_0x4224c2)=>_0x4869a7(_0x4f7c8f,_0x4224c2,_0x1bd158);let I=class extends _0x539b1d{constructor(_0x1b71fa,_0x4b1cd2){var _0x114ab5=_0x20ffcd;super(),this[_0x114ab5(0xee)]=_0x1b71fa,this['_uiPartsService']=_0x4b1cd2,this[_0x114ab5(0xba)]();}[_0x20ffcd(0xba)](){var _0x4da0f4=_0x20ffcd;this[_0x4da0f4(0xa3)](this[_0x4da0f4(0x11f)][_0x4da0f4(0xd5)](_0x1b50ea['HEADER_MENU'],()=>_0x5bf79f(ye,this[_0x4da0f4(0xee)])));}};I=je([T(0x0,_0x42b534(_0x59a932)),T(0x1,_0x4f299e)],I);const Ue=_0x20ffcd(0xa4),$={};var Ve=Object[_0x20ffcd(0xc6)],Me=(_0x518de8,_0x176f5e,_0x9a33e8,_0x2e4233)=>{var _0x4c149b=_0x20ffcd;for(var _0x18043=_0x2e4233>0x1?void 0x0:_0x2e4233?Ve(_0x176f5e,_0x9a33e8):_0x176f5e,_0x686b38=_0x518de8[_0x4c149b(0xf7)]-0x1,_0x9ac174;_0x686b38>=0x0;_0x686b38--)(_0x9ac174=_0x518de8[_0x686b38])&&(_0x18043=_0x9ac174(_0x18043)||_0x18043);return _0x18043;},ke=(_0x65203f,_0x380946)=>(_0x5a2139,_0x4a9346)=>_0x380946(_0x5a2139,_0x4a9346,_0x65203f);let b=class extends _0x539b1d{constructor(_0x56f409){var _0x3514e9=_0x20ffcd;super(),this['_liveShareService']=_0x56f409,this[_0x3514e9(0xcd)]();}[_0x20ffcd(0xcd)](){var _0x117401=_0x20ffcd;[_0x5deda2['id'],_0x5abaaa['id'],_0x208319['id']][_0x117401(0xb0)](_0x2cfc1c=>{var _0x3f2511=_0x117401;this[_0x3f2511(0xa3)](this['_liveShareService'][_0x3f2511(0x119)](_0x2cfc1c));});}};b=Me([ke(0x0,_0x42b534(L))],b);var Ge=Object[_0x20ffcd(0x121)],We=Object[_0x20ffcd(0xc6)],Ye=(_0x145a97,_0x3782a8,_0x3dd16e)=>_0x3782a8 in _0x145a97?Ge(_0x145a97,_0x3782a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dd16e}):_0x145a97[_0x3782a8]=_0x3dd16e,Be=(_0x85c55e,_0x430f0f,_0x58ffe3,_0x4f5d8e)=>{var _0x36bee9=_0x20ffcd;for(var _0x1c6c40=_0x4f5d8e>0x1?void 0x0:_0x4f5d8e?We(_0x430f0f,_0x58ffe3):_0x430f0f,_0x1fd99e=_0x85c55e[_0x36bee9(0xf7)]-0x1,_0x524603;_0x1fd99e>=0x0;_0x1fd99e--)(_0x524603=_0x85c55e[_0x1fd99e])&&(_0x1c6c40=_0x524603(_0x1c6c40)||_0x1c6c40);return _0x1c6c40;},F=(_0x3e04e3,_0x2ab29d)=>(_0x503331,_0x34cd77)=>_0x2ab29d(_0x503331,_0x34cd77,_0x3e04e3),J=(_0x5c5914,_0x234b6c,_0x53e3bd)=>Ye(_0x5c5914,typeof _0x234b6c!=_0x20ffcd(0x12f)?_0x234b6c+'':_0x234b6c,_0x53e3bd);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x574128{constructor(_0x2b7eee=$,_0x56e332,_0x5da0a3){var _0x4bce4d=_0x20ffcd;super(),this[_0x4bce4d(0x87)]=_0x2b7eee,this[_0x4bce4d(0xee)]=_0x56e332,this[_0x4bce4d(0xab)]=_0x5da0a3;const {..._0x52a454}=_0x78447b({},$,this['_config']);this['_configService'][_0x4bce4d(0x12c)](Ue,_0x52a454);}[_0x20ffcd(0x118)](){var _0x541d34=_0x20ffcd;_0x3e2832(this[_0x541d34(0xee)],_0x360b36([[L],[m],[b],[I]],this[_0x541d34(0x87)][_0x541d34(0x85)])),_0x5b4f9e(this['_injector'],[[b]]);}[_0x20ffcd(0xfd)](){var _0x361f59=_0x20ffcd;_0x5b4f9e(this[_0x361f59(0xee)],[[I]]);}};J(O,'type',_0x38c32e[_0x20ffcd(0x127)]),J(O,'pluginName',Ze),O=Be([_0x50aa05(_0x2f65a8),F(0x1,_0x42b534(_0x59a932)),F(0x2,_0x54be48)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x5c1af0=_0x260a;(function(_0x956b52,_0x43402e){var _0x1df03c=_0x260a,_0x3cfa0f=_0x956b52();while(!![]){try{var _0x3a76f5=-parseInt(_0x1df03c(0x1b1))/0x1*(-parseInt(_0x1df03c(0x213))/0x2)+parseInt(_0x1df03c(0x23f))/0x3+-parseInt(_0x1df03c(0x1a2))/0x4*(parseInt(_0x1df03c(0x1d4))/0x5)+-parseInt(_0x1df03c(0x205))/0x6*(-parseInt(_0x1df03c(0x242))/0x7)+parseInt(_0x1df03c(0x1c4))/0x8*(parseInt(_0x1df03c(0x1dd))/0x9)+parseInt(_0x1df03c(0x1ce))/0xa+-parseInt(_0x1df03c(0x22c))/0xb*(parseInt(_0x1df03c(0x1cc))/0xc);if(_0x3a76f5===_0x43402e)break;else _0x3cfa0f['push'](_0x3cfa0f['shift']());}catch(_0x269bab){_0x3cfa0f['push'](_0x3cfa0f['shift']());}}}(_0x3790,0xa2b98));function _0x3790(){var _0x59d413=['assign','defIds','8zmAPJt','_stopPresenting','live-share-icon','call','_collabSession','pipe','_configService','defineProperty','_fetchOperations','concat','You\x27re\x20presenting\x20the\x20document','string','currentColor','offline','stringify','1467rSZLGq','_status','prototype','extend','data','OPERATION','default','HEADER_MENU','getValue','_startLiveShareCoordinator','set','getMemberID','get','unsubscribe','xlink:href','LIVESHARE_NEW_HOST','live-share.config','_commandDisposable','apply','8CwdyEb','_handleOffline','reverse','values','_beIdle','_config','dispose$','presenting','500604jbGfGv','_presenter','1225780Ormulx','init','univerjs-icon\x20univerjs-icon-','evenodd','http://www.w3.org/2000/svg','random','1656065HaSToQ','complete','_entities','forEach','send','FOLLOWING','toString','_unitID','pluginName','8995014OgARIJ','Stop\x20following','params','getConfig','stopPresenting','_handleOperation','fill','Present\x20this\x20document','map','startFollowing','operations','_liveShareService','LIVESHARE_OPERATION','memberID','_handleNewHost','_uiPartsService','_collabSessionService','parse','_status$','div','LIVESHARE_REQUEST_HOST','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','sessionStatus$','svg','IDLE','1em','entries','status$','UNIVER_LIVE_SHARE_PLUGIN','idSuffix','createInstance','shouldShareOperation','_univerInstanceService','_handleOnline','className','NOT_FOLLOWING','asObservable','none','You\x27re\x20not\x20following\x20the\x20presenter','dispose','1999254mlAPsI','type','defs','button','_init','getOwnPropertyDescriptor','_reporters','children','add','next','_mountLiveShare','setConfig','attrs','current','1556JgAaTM','not-following','colorChannel1','delete','trim','UniverIcon','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','hasOwnProperty','Start','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_sharedOperations','univer-size-4','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startFollowing','onStarting','idle','_handleTerminate','onCommandExecuted','displayName','sheet','NEW_CHANGESETS','url(#$1','subscribe','_commandService','getInitialStates','638HBoXSP','tryStartPresenting','PRESENTING','presenter','tag','has','icon','symbol','length','indexOf','includes','following','getUnitId','_injector','UNIVER_SHEET','getLiveShareCoordinator','stopFollowing','_startPresenting','replace','457038NBdXwm','substring','ONLINE','28XxeFsY','getOwnPropertySymbols','getTypeOfUnitAdded$','onRendered','executeCommand','disposeWithMe','use','OFFLINE','registerSharedOperation'];_0x3790=function(){return _0x59d413;};return _0x3790();}var q=Object[_0x5c1af0(0x1a9)],z=(_0x22617d,_0xda0257,_0xfd4c4e)=>_0xda0257 in _0x22617d?q(_0x22617d,_0xda0257,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xfd4c4e}):_0x22617d[_0xda0257]=_0xfd4c4e,d=(_0x5abeff,_0x44632c,_0x588471)=>z(_0x5abeff,typeof _0x44632c!=_0x5c1af0(0x233)?_0x44632c+'':_0x44632c,_0x588471);import{Disposable as _0x291a5b,toDisposable as _0x2812a4,IUniverInstanceService as _0x241362,Inject as _0x1e3a85,Injector as _0x879ceb,IConfigService as _0x1f2a68,ICommandService as _0x1fff86,RxDisposable as _0x54e5e8,UniverInstanceType as _0x382149,DisposableCollection as _0x333aae,CommandType as _0x293a8b,DependentOn as _0xd5a04a,Plugin as _0x4583b3,merge as _0x65e747,registerDependencies as _0x5cba6b,mergeOverrideWithDependencies as _0x1c65bf,touchDependencies as _0x2d3728}from'@univerjs/core';import{useDependency as _0x59239b,useObservable as _0x46f6ef,IUIPartsService as _0x547a7b,BuiltInUIPart as _0x384117,connectInjector as _0x58ec82}from'@univerjs/ui';import{jsx as _0x454c16,jsxs as _0x284b02,Fragment as _0x555249}from'react/jsx-runtime';import{Dropdown as _0x1dfcb2,clsx as _0x540767,Button as _0x59e674}from'@univerjs/design';import{forwardRef as _0x2a75a2,useRef as _0x17bf69,createElement as _0x1b3643,useState as _0x4806c5,useEffect as _0x3af20b}from'react';import{CollaborationEvent as _0x47e693,parseProtocolChangeset as _0x2135e9}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2d2bad,SessionStatus as _0x193da0,UniverCollaborationClientPlugin as _0x3b5e68}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3de08b,SetWorksheetActiveOperation as _0x12315d}from'@univerjs/sheets';import{BehaviorSubject as _0x2292ef,Subject as _0x2fa92c}from'rxjs';import{takeUntil as _0x57444b,throttleTime as _0x4e2264}from'rxjs/operators';import{SetZoomRatioOperation as _0x310893,SetScrollOperation as _0x43006c}from'@univerjs/sheets-ui';var c=function(){var _0x47f5bd=_0x5c1af0;return c=Object['assign']||function(_0x52710b){var _0x29abd4=_0x260a;for(var _0xda134a,_0x430c38=0x1,_0x1e8cd7=arguments['length'];_0x430c38<_0x1e8cd7;_0x430c38++){_0xda134a=arguments[_0x430c38];for(var _0x56581c in _0xda134a)Object[_0x29abd4(0x1b3)]['hasOwnProperty'][_0x29abd4(0x1a5)](_0xda134a,_0x56581c)&&(_0x52710b[_0x56581c]=_0xda134a[_0x56581c]);}return _0x52710b;},c[_0x47f5bd(0x1c3)](this,arguments);},Oe=function(_0x5c4522,_0x2e6dcb){var _0x53b265=_0x5c1af0,_0x529a06={};for(var _0x18bac2 in _0x5c4522)Object[_0x53b265(0x1b3)][_0x53b265(0x21a)]['call'](_0x5c4522,_0x18bac2)&&_0x2e6dcb[_0x53b265(0x235)](_0x18bac2)<0x0&&(_0x529a06[_0x18bac2]=_0x5c4522[_0x18bac2]);if(_0x5c4522!=null&&typeof Object[_0x53b265(0x243)]=='function'){for(var _0x1d4f71=0x0,_0x18bac2=Object[_0x53b265(0x243)](_0x5c4522);_0x1d4f71<_0x18bac2[_0x53b265(0x234)];_0x1d4f71++)_0x2e6dcb[_0x53b265(0x235)](_0x18bac2[_0x1d4f71])<0x0&&Object[_0x53b265(0x1b3)]['propertyIsEnumerable'][_0x53b265(0x1a5)](_0x5c4522,_0x18bac2[_0x1d4f71])&&(_0x529a06[_0x18bac2[_0x1d4f71]]=_0x5c4522[_0x18bac2[_0x1d4f71]]);}return _0x529a06;},W=_0x2a75a2(function(_0x3cc6a6,_0x316bc4){var _0x2d5aa9=_0x5c1af0,_0x3b5bc5=_0x3cc6a6[_0x2d5aa9(0x232)],_0x423181=_0x3cc6a6['id'],_0x13aedb=_0x3cc6a6[_0x2d5aa9(0x1ff)],_0x49138e=_0x3cc6a6[_0x2d5aa9(0x1b4)],_0x26f528=Oe(_0x3cc6a6,[_0x2d5aa9(0x232),'id',_0x2d5aa9(0x1ff),_0x2d5aa9(0x1b4)]),_0x5c94bf=_0x2d5aa9(0x1d0)[_0x2d5aa9(0x1ab)](_0x423181,'\x20')[_0x2d5aa9(0x1ab)](_0x13aedb||'')[_0x2d5aa9(0x217)](),_0x3e0ec9=_0x17bf69('_'[_0x2d5aa9(0x1ab)](Ne()));return Y(_0x3b5bc5,''[_0x2d5aa9(0x1ab)](_0x423181),{'defIds':_0x3b5bc5[_0x2d5aa9(0x1a1)],'idSuffix':_0x3e0ec9[_0x2d5aa9(0x212)]},c({'ref':_0x316bc4,'className':_0x5c94bf},_0x26f528),_0x49138e);});function Y(_0x31d969,_0x374bec,_0x285f25,_0x36534c,_0x4899a5){var _0x22c35e=_0x5c1af0;return _0x1b3643(_0x31d969[_0x22c35e(0x230)],c(c({'key':_0x374bec},Ee(_0x31d969,_0x285f25,_0x4899a5)),_0x36534c),(we(_0x31d969,_0x285f25)[_0x22c35e(0x20c)]||[])[_0x22c35e(0x1e5)](function(_0x2ec15b,_0x392181){var _0x26a155=_0x22c35e;return Y(_0x2ec15b,''[_0x26a155(0x1ab)](_0x374bec,'-')[_0x26a155(0x1ab)](_0x31d969[_0x26a155(0x230)],'-')[_0x26a155(0x1ab)](_0x392181),_0x285f25,void 0x0,_0x4899a5);}));}function Ee(_0x1f943b,_0x769b46,_0x3162de){var _0x2e819e=_0x5c1af0,_0x47fa1e=c({},_0x1f943b[_0x2e819e(0x211)]);_0x3162de!=null&&_0x3162de[_0x2e819e(0x215)]&&_0x47fa1e[_0x2e819e(0x1e3)]==='colorChannel1'&&(_0x47fa1e[_0x2e819e(0x1e3)]=_0x3162de[_0x2e819e(0x215)]),_0x1f943b[_0x2e819e(0x230)]==='mask'&&_0x47fa1e['id']&&(_0x47fa1e['id']=_0x47fa1e['id']+_0x769b46[_0x2e819e(0x1fa)]),Object[_0x2e819e(0x1f7)](_0x47fa1e)[_0x2e819e(0x1d7)](function(_0x3ea738){var _0x5729b5=_0x2e819e,_0x50739a=_0x3ea738[0x0],_0x216d02=_0x3ea738[0x1];_0x50739a==='mask'&&typeof _0x216d02==_0x5729b5(0x1ad)&&(_0x47fa1e[_0x50739a]=_0x216d02[_0x5729b5(0x23e)](/url\(#(.*)\)/,_0x5729b5(0x228)['concat'](_0x769b46['idSuffix'],')')));});var _0x4a2239=_0x769b46[_0x2e819e(0x1a1)];return!_0x4a2239||_0x4a2239['length']===0x0||(_0x1f943b[_0x2e819e(0x230)]===_0x2e819e(0x19d)&&_0x47fa1e['xlink:href']&&(_0x47fa1e[_0x2e819e(0x1bf)]=_0x47fa1e['xlink:href']+_0x769b46[_0x2e819e(0x1fa)]),Object['entries'](_0x47fa1e)[_0x2e819e(0x1d7)](function(_0x405770){var _0x402704=_0x2e819e,_0x7f1787=_0x405770[0x0],_0x26688b=_0x405770[0x1];typeof _0x26688b==_0x402704(0x1ad)&&(_0x47fa1e[_0x7f1787]=_0x26688b[_0x402704(0x23e)](/url\(#(.*)\)/,_0x402704(0x228)[_0x402704(0x1ab)](_0x769b46[_0x402704(0x1fa)],')')));})),_0x47fa1e;}function we(_0x519880,_0x5dede5){var _0x1d373a=_0x5c1af0,_0x3c8b8d,_0x2ae27a=_0x5dede5[_0x1d373a(0x1a1)];return!_0x2ae27a||_0x2ae27a['length']===0x0?_0x519880:_0x519880[_0x1d373a(0x230)]===_0x1d373a(0x207)&&(!((_0x3c8b8d=_0x519880['children'])===null||_0x3c8b8d===void 0x0)&&_0x3c8b8d[_0x1d373a(0x234)])?c(c({},_0x519880),{'children':_0x519880[_0x1d373a(0x20c)]['map'](function(_0x1d5387){var _0x2cdbe4=_0x1d373a;return typeof _0x1d5387[_0x2cdbe4(0x211)]['id']==_0x2cdbe4(0x1ad)&&_0x2ae27a&&_0x2ae27a[_0x2cdbe4(0x236)](_0x1d5387[_0x2cdbe4(0x211)]['id'])?c(c({},_0x1d5387),{'attrs':c(c({},_0x1d5387['attrs']),{'id':_0x1d5387[_0x2cdbe4(0x211)]['id']+_0x5dede5[_0x2cdbe4(0x1fa)]})}):_0x1d5387;})}):_0x519880;}function Ne(){var _0x449258=_0x5c1af0;return Math[_0x449258(0x1d3)]()[_0x449258(0x1da)](0x24)[_0x449258(0x240)](0x2,0x8);}W[_0x5c1af0(0x225)]=_0x5c1af0(0x218);var Ce={'tag':_0x5c1af0(0x1f4),'attrs':{'xmlns':_0x5c1af0(0x1d2),'fill':_0x5c1af0(0x202),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x5c1af0(0x1f6)},'children':[{'tag':'path','attrs':{'fill':_0x5c1af0(0x1ae),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x5c1af0(0x1ae),'d':_0x5c1af0(0x21c),'fillRule':_0x5c1af0(0x1d1),'clipRule':_0x5c1af0(0x1d1)}}]},B=_0x2a75a2(function(_0xd7d7e6,_0x207d60){var _0x2dea71=_0x5c1af0;return _0x1b3643(W,Object[_0x2dea71(0x1a0)]({},_0xd7d7e6,{'id':_0x2dea71(0x1a4),'ref':_0x207d60,'icon':Ce}));});B[_0x5c1af0(0x225)]='LiveShareIcon';class L extends _0x291a5b{constructor(){var _0x2a5374=_0x5c1af0;super(...arguments),d(this,_0x2a5374(0x21d),new Set()),d(this,_0x2a5374(0x20b),new Set());}[_0x5c1af0(0x19f)](_0x422e1a){var _0x2041e3=_0x5c1af0;return this['_sharedOperations'][_0x2041e3(0x20d)](_0x422e1a),_0x2812a4(()=>this['_sharedOperations'][_0x2041e3(0x216)](_0x422e1a));}['registerInitialStateReporter'](_0xe566da){var _0x20b236=_0x5c1af0;return this[_0x20b236(0x20b)][_0x20b236(0x20d)](_0xe566da),_0x2812a4(()=>this[_0x20b236(0x20b)][_0x20b236(0x216)](_0xe566da));}[_0x5c1af0(0x1fc)](_0x1120e1){var _0x5e95d4=_0x5c1af0;return this[_0x5e95d4(0x21d)][_0x5e95d4(0x231)](_0x1120e1);}[_0x5c1af0(0x22b)](_0x300212){var _0x428669=_0x5c1af0;return Array['from'](this[_0x428669(0x20b)])[_0x428669(0x1e5)](_0x188b98=>_0x188b98(_0x300212));}}var De=Object[_0x5c1af0(0x20a)],Z=(_0x3b8a05,_0x2bf667,_0x3316a1,_0x2a175c)=>{for(var _0x2350c2=_0x2a175c>0x1?void 0x0:_0x2a175c?De(_0x2bf667,_0x3316a1):_0x2bf667,_0x1a8c70=_0x3b8a05['length']-0x1,_0x5b7a86;_0x1a8c70>=0x0;_0x1a8c70--)(_0x5b7a86=_0x3b8a05[_0x1a8c70])&&(_0x2350c2=_0x5b7a86(_0x2350c2)||_0x2350c2);return _0x2350c2;},f=(_0x44f69a,_0xa9fcce)=>(_0x506ab2,_0x857bdb)=>_0xa9fcce(_0x506ab2,_0x857bdb,_0x44f69a);function _0x260a(_0x25bdac,_0x4a1c22){var _0x379013=_0x3790();return _0x260a=function(_0x260ac5,_0x4b4fe9){_0x260ac5=_0x260ac5-0x199;var _0x9ef2a6=_0x379013[_0x260ac5];return _0x9ef2a6;},_0x260a(_0x25bdac,_0x4a1c22);}let m=class extends _0x54e5e8{constructor(_0x1d0ebc,_0x4b07cf,_0x244bc0){var _0x33bece=_0x5c1af0;super(),d(this,_0x33bece(0x1d6),new Map()),(this[_0x33bece(0x1fd)]=_0x1d0ebc,this['_injector']=_0x4b07cf,this[_0x33bece(0x1ed)]=_0x244bc0,this['_init']());}async[_0x5c1af0(0x23b)](_0x447b1e){var _0x73ad27=_0x5c1af0;return this[_0x73ad27(0x1d6)]['has'](_0x447b1e)||await this[_0x73ad27(0x1ba)](_0x447b1e),this[_0x73ad27(0x1d6)][_0x73ad27(0x1bd)](_0x447b1e);}[_0x5c1af0(0x209)](){var _0x2db073=_0x5c1af0;this[_0x2db073(0x1fd)][_0x2db073(0x199)](_0x382149[_0x2db073(0x23a)])[_0x2db073(0x1a7)](_0x57444b(this[_0x2db073(0x1ca)]))[_0x2db073(0x229)](async _0x233c99=>{var _0x182c34=_0x2db073;const _0x1b70bc=_0x233c99[_0x182c34(0x238)]();this[_0x182c34(0x1d6)]['has'](_0x1b70bc)||this['_startLiveShareCoordinator'](_0x1b70bc);}),this[_0x2db073(0x1fd)]['getTypeOfUnitDisposed$'](_0x382149[_0x2db073(0x23a)])[_0x2db073(0x1a7)](_0x57444b(this[_0x2db073(0x1ca)]))[_0x2db073(0x229)](_0x5404bc=>{var _0x457ad6=_0x2db073;const _0x11955d=_0x5404bc[_0x457ad6(0x238)](),_0x5d6033=this[_0x457ad6(0x1d6)][_0x457ad6(0x1bd)](_0x11955d);_0x5d6033==null||_0x5d6033[_0x457ad6(0x204)]();});}async[_0x5c1af0(0x1ba)](_0x3dbd3f){var _0x247fb4=_0x5c1af0;const _0x32916c=await this[_0x247fb4(0x1ed)]['requireSession'](_0x3dbd3f),_0x43e81d=this['_injector'][_0x247fb4(0x1fb)](C,_0x3dbd3f,_0x32916c);return _0x43e81d[_0x247fb4(0x1cf)](),this[_0x247fb4(0x1d6)][_0x247fb4(0x1bb)](_0x3dbd3f,_0x43e81d),_0x43e81d;}};m=Z([f(0x0,_0x241362),f(0x1,_0x1e3a85(_0x879ceb)),f(0x2,_0x1e3a85(_0x2d2bad))],m);var h=(_0x486855=>(_0x486855[_0x5c1af0(0x19e)]=_0x5c1af0(0x1af),_0x486855[_0x5c1af0(0x1f5)]=_0x5c1af0(0x222),_0x486855[_0x5c1af0(0x1d9)]=_0x5c1af0(0x237),_0x486855[_0x5c1af0(0x200)]=_0x5c1af0(0x214),_0x486855[_0x5c1af0(0x22e)]=_0x5c1af0(0x1cb),_0x486855))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x54e5e8{constructor(_0x49f75f,_0x3937cc,_0x55fa75,_0x573a0e,_0x26ee4f){var _0x551d88=_0x5c1af0;super(),d(this,_0x551d88(0x1ef),new _0x2292ef('idle')),d(this,_0x551d88(0x1f8),this[_0x551d88(0x1ef)][_0x551d88(0x201)]()),d(this,_0x551d88(0x209),!0x1),d(this,_0x551d88(0x1c2),null),d(this,'_presenter',null),(this[_0x551d88(0x1db)]=_0x49f75f,this[_0x551d88(0x1a6)]=_0x3937cc,this[_0x551d88(0x1a8)]=_0x55fa75,this[_0x551d88(0x1e8)]=_0x573a0e,this[_0x551d88(0x22a)]=_0x26ee4f);}get[_0x5c1af0(0x1b2)](){var _0x5a19d2=_0x5c1af0;return this['_status$'][_0x5a19d2(0x1b9)]();}[_0x5c1af0(0x204)](){var _0x57a954=_0x5c1af0,_0x2fb883;(_0x2fb883=this[_0x57a954(0x1c2)])==null||_0x2fb883['dispose'](),this[_0x57a954(0x1ef)][_0x57a954(0x20e)](_0x57a954(0x222)),this[_0x57a954(0x1ef)][_0x57a954(0x1d5)]();}[_0x5c1af0(0x1cf)](){var _0x61a885=_0x5c1af0;this['_init']||(this[_0x61a885(0x209)]=!0x0,this[_0x61a885(0x1a6)][_0x61a885(0x1f3)][_0x61a885(0x1a7)](_0x57444b(this[_0x61a885(0x1ca)]))[_0x61a885(0x229)](_0x4a85f2=>{var _0x206336=_0x61a885;switch(_0x4a85f2){case _0x193da0['OFFLINE']:this[_0x206336(0x1c5)]();break;case _0x193da0[_0x206336(0x241)]:this['_handleOnline']();break;}}),this['_collabSession']['event$'][_0x61a885(0x1a7)](_0x57444b(this[_0x61a885(0x1ca)]))[_0x61a885(0x229)](_0x2fb90a=>{var _0x5af06f=_0x61a885;const {eventID:_0xa50758}=_0x2fb90a;switch(_0xa50758){case _0x47e693[_0x5af06f(0x1c0)]:this[_0x5af06f(0x1eb)](_0x2fb90a);break;case _0x47e693[_0x5af06f(0x1e9)]:this[_0x5af06f(0x1e2)](_0x2fb90a);break;case _0x47e693['LIVESHARE_TERMINATE']:this[_0x5af06f(0x223)]();break;case _0x47e693[_0x5af06f(0x227)]:this['_handleNewChangeSets'](_0x2fb90a);break;}}));}[_0x5c1af0(0x22d)](){var _0xde2eee=_0x5c1af0;this[_0xde2eee(0x1a6)][_0xde2eee(0x1d8)]({'eventID':_0x47e693[_0xde2eee(0x1f1)],'data':{'unitID':this[_0xde2eee(0x1db)],'userID':this['_collabSession'][_0xde2eee(0x1bc)]()}},this[_0xde2eee(0x1db)]);}[_0x5c1af0(0x1e1)](){var _0x579d45=_0x5c1af0;this['_status']==='presenting'&&(this[_0x579d45(0x1ef)]['next']('idle'),this[_0x579d45(0x1a6)][_0x579d45(0x1d8)]({'eventID':_0x47e693['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x579d45(0x1db)]}},this[_0x579d45(0x1db)]));}[_0x5c1af0(0x1e6)](){var _0x2ded90=_0x5c1af0;this[_0x2ded90(0x1b2)]===_0x2ded90(0x214)&&(this['_status$'][_0x2ded90(0x20e)](_0x2ded90(0x237)),this[_0x2ded90(0x220)]());}[_0x5c1af0(0x23c)](){var _0x412498=_0x5c1af0;this[_0x412498(0x1b2)]===_0x412498(0x237)&&this['_stopFollowing']();}[_0x5c1af0(0x1eb)](_0x6d8206){var _0x2e12ed=_0x5c1af0;const {presenter:_0x56de28}=_0x6d8206['data'],_0x18ba30=this[_0x2e12ed(0x1a6)]['getMemberID']();this[_0x2e12ed(0x1cd)]=_0x56de28,_0x56de28===_0x18ba30?(this['_stopFollowing'](),this[_0x2e12ed(0x23d)]()):this[_0x2e12ed(0x1b2)]!==_0x2e12ed(0x214)&&(this[_0x2e12ed(0x1a3)](),this[_0x2e12ed(0x220)]());}[_0x5c1af0(0x1aa)](){var _0x3f6c79=_0x5c1af0;const _0x4e26c2={'eventID':_0x47e693['LIVESHARE_FETCH_OPERATIONS']};this[_0x3f6c79(0x1a6)][_0x3f6c79(0x1d8)](_0x4e26c2,this[_0x3f6c79(0x1db)]);}[_0x5c1af0(0x223)](){var _0x2c2368=_0x5c1af0;this[_0x2c2368(0x1cd)]=null,this[_0x2c2368(0x1b2)]!==_0x2c2368(0x1cb)&&this[_0x2c2368(0x1c8)]();}['_handleNewChangeSets'](_0x2fbaec){var _0x42b662=_0x5c1af0;if(this['_status']===_0x42b662(0x237)&&this[_0x42b662(0x1cd)]===_0x2fbaec['data'][_0x42b662(0x1ea)]){const _0x50306e=_0x2135e9(_0x2fbaec[_0x42b662(0x1b5)])['mutations'][_0x42b662(0x1c6)]()['find'](_0x5024a3=>_0x5024a3['id']===_0x3de08b['id']);if(_0x50306e){const _0x24230f=_0x50306e[_0x42b662(0x1df)]['unitId'],_0x3c527b=_0x50306e['params'][_0x42b662(0x226)]['id'];setTimeout(()=>{var _0x31993c=_0x42b662;this[_0x31993c(0x22a)][_0x31993c(0x19b)](_0x12315d['id'],{'unitId':_0x24230f,'subUnitId':_0x3c527b},{'fromCollab':!0x0});});}}}[_0x5c1af0(0x23d)](){var _0x4321bb=_0x5c1af0;this[_0x4321bb(0x1ef)]['next'](_0x4321bb(0x1cb));const _0x43df78=new Map(),_0x15e671=this[_0x4321bb(0x1c2)]=new _0x333aae();_0x15e671[_0x4321bb(0x20d)](_0x2812a4(()=>{var _0x4b136e=_0x4321bb;_0x43df78[_0x4b136e(0x1d7)](_0x5910ae=>_0x5910ae[_0x4b136e(0x1d5)]()),_0x43df78['clear']();})),_0x15e671[_0x4321bb(0x20d)](this[_0x4321bb(0x22a)][_0x4321bb(0x224)](_0x31d061=>{var _0x4de431=_0x4321bb,_0x1c47be;if(_0x31d061[_0x4de431(0x206)]!==_0x293a8b[_0x4de431(0x1b6)]||!this[_0x4de431(0x1e8)][_0x4de431(0x1fc)](_0x31d061['id']))return;const {id:_0x282d6e}=_0x31d061;let _0x2318bd;_0x43df78[_0x4de431(0x231)](_0x282d6e)?_0x2318bd=_0x43df78[_0x4de431(0x1bd)](_0x282d6e):(_0x2318bd=new _0x2fa92c(),_0x43df78['set'](_0x282d6e,_0x2318bd),_0x2318bd[_0x4de431(0x1a7)](_0x4e2264((_0x1c47be=this[_0x4de431(0x1a8)][_0x4de431(0x1e0)](xe))!=null?_0x1c47be:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4de431(0x229)](_0x56d0df=>{var _0x8a9f88=_0x4de431;this[_0x8a9f88(0x1a6)][_0x8a9f88(0x1d8)]({'eventID':_0x47e693[_0x8a9f88(0x1e9)],'data':{'unitID':this[_0x8a9f88(0x1db)],'operations':{[_0x56d0df['id']]:{'id':_0x56d0df['id'],'params':JSON[_0x8a9f88(0x1b0)](_0x56d0df[_0x8a9f88(0x1df)])}}}},this[_0x8a9f88(0x1db)]);})),_0x2318bd['next'](_0x31d061);})),this[_0x4321bb(0x1e8)][_0x4321bb(0x22b)](this['_unitID'])['forEach'](_0x12a39f=>this[_0x4321bb(0x1a6)][_0x4321bb(0x1d8)]({'eventID':_0x47e693[_0x4321bb(0x1e9)],'data':{'unitID':this[_0x4321bb(0x1db)],'operations':{[_0x12a39f['id']]:{'id':_0x12a39f['id'],'params':JSON[_0x4321bb(0x1b0)](_0x12a39f[_0x4321bb(0x1df)])}}}},this[_0x4321bb(0x1db)]));}['_stopPresenting'](){var _0xd6833e=_0x5c1af0,_0x5890ca;this[_0xd6833e(0x1ef)][_0xd6833e(0x20e)]('idle'),(_0x5890ca=this[_0xd6833e(0x1c2)])==null||_0x5890ca[_0xd6833e(0x204)](),this[_0xd6833e(0x1c2)]=null;}[_0x5c1af0(0x220)](){var _0x576e3e=_0x5c1af0,_0x418c59;(_0x418c59=this[_0x576e3e(0x1c2)])==null||_0x418c59[_0x576e3e(0x204)](),this['_status$'][_0x576e3e(0x20e)](_0x576e3e(0x237));}[_0x5c1af0(0x1c8)](){var _0x26baea=_0x5c1af0,_0x35c3de;this[_0x26baea(0x1ef)][_0x26baea(0x20e)](_0x26baea(0x222)),(_0x35c3de=this[_0x26baea(0x1c2)])==null||_0x35c3de['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x23751d=_0x5c1af0,_0x58e17d;this[_0x23751d(0x1ef)]['next'](_0x23751d(0x214)),(_0x58e17d=this[_0x23751d(0x1c2)])==null||_0x58e17d['dispose']();}[_0x5c1af0(0x1e2)](_0x149b59){var _0x45bf47=_0x5c1af0;if([_0x45bf47(0x1cb),_0x45bf47(0x214),_0x45bf47(0x1af)][_0x45bf47(0x236)](this['_status'])||!_0x149b59['data'][_0x45bf47(0x22f)]||_0x149b59[_0x45bf47(0x1b5)]['presenter']===this[_0x45bf47(0x1a6)][_0x45bf47(0x1bc)]())return;this['_status']===_0x45bf47(0x222)&&this[_0x45bf47(0x220)]();const _0x5b6621=_0x149b59[_0x45bf47(0x1b5)][_0x45bf47(0x1e7)];Object[_0x45bf47(0x1c7)](_0x5b6621)[_0x45bf47(0x1d7)](_0x3590c5=>{var _0x4b7087=_0x45bf47;this[_0x4b7087(0x22a)]['executeCommand'](_0x3590c5['id'],_0x3590c5[_0x4b7087(0x1df)]?JSON[_0x4b7087(0x1ee)](_0x3590c5[_0x4b7087(0x1df)]):null,{'fromCollab':!0x0});});}[_0x5c1af0(0x1c5)](){var _0x100271=_0x5c1af0,_0x531048;this[_0x100271(0x1ef)]['next'](_0x100271(0x1af)),(_0x531048=this[_0x100271(0x1c2)])==null||_0x531048['dispose']();}[_0x5c1af0(0x1fe)](){var _0x45ccaa=_0x5c1af0;this['_status$']['next'](_0x45ccaa(0x222)),this['_fetchOperations']();}};C=Z([f(0x2,_0x1f2a68),f(0x3,_0x1e3a85(L)),f(0x4,_0x1fff86)],C);function ye(){var _0x11ad5a=_0x5c1af0;const _0x404a38=_0x59239b(m),_0x3e2090=_0x59239b(_0x241362),_0x136a06=_0x46f6ef(()=>_0x3e2090['getCurrentTypeOfUnit$'](_0x382149[_0x11ad5a(0x23a)]),void 0x0,!0x1,[]),[_0x49924c,_0x2171ca]=_0x4806c5(null),[_0x138be6,_0x121d0b]=_0x4806c5(h['IDLE']),_0x4e6c60=_0x17bf69(null);return _0x3af20b(()=>(_0x136a06&&_0x404a38[_0x11ad5a(0x23b)](_0x136a06[_0x11ad5a(0x238)]())['then'](_0x4def81=>{var _0x509974=_0x11ad5a;_0x2171ca(_0x4def81),_0x4e6c60[_0x509974(0x212)]=_0x4def81[_0x509974(0x1f8)][_0x509974(0x229)](_0x28b35a=>{_0x121d0b(_0x28b35a);});}),()=>{var _0xdde68b=_0x11ad5a,_0x4d26e0;(_0x4d26e0=_0x4e6c60[_0xdde68b(0x212)])==null||_0x4d26e0[_0xdde68b(0x1be)](),_0x4e6c60['current']=null;}),[_0x136a06,_0x404a38]),_0x49924c?_0x454c16(_0x1dfcb2,{'align':'end','disabled':_0x138be6===h[_0x11ad5a(0x19e)],'className':_0x11ad5a(0x1f2),'overlay':_0x454c16(Re,{'status':_0x138be6,'coordinator':_0x49924c}),'children':_0x454c16('button',{'className':_0x540767(_0x11ad5a(0x219),{'univer-cursor-not-allowed':_0x138be6===h[_0x11ad5a(0x19e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x138be6!==h[_0x11ad5a(0x19e)]}),'type':_0x11ad5a(0x208),'children':_0x454c16(B,{'className':_0x11ad5a(0x21e)})})}):null;}function Re(_0x1cf24e){var _0x4671db=_0x5c1af0;const {status:_0x274d5d,coordinator:_0x5c86e}=_0x1cf24e;switch(_0x274d5d){case h[_0x4671db(0x1f5)]:return _0x454c16(Pe,{'coordinator':_0x5c86e});case h[_0x4671db(0x1d9)]:return _0x454c16(Ae,{'coordinator':_0x5c86e});case h[_0x4671db(0x200)]:return _0x454c16(Te,{'coordinator':_0x5c86e});case h[_0x4671db(0x19e)]:return _0x454c16(Fe,{});case h['PRESENTING']:return _0x454c16($e,{'coordinator':_0x5c86e});default:return null;}}function Pe(_0x1197bb){var _0x5608f8=_0x5c1af0;const {coordinator:_0x3dc496}=_0x1197bb;return _0x284b02(_0x555249,{'children':[_0x454c16(_0x5608f8(0x1f0),{'className':_0x5608f8(0x21f),'children':_0x5608f8(0x1e4)}),_0x454c16(_0x59e674,{'onClick':()=>_0x3dc496[_0x5608f8(0x22d)](),'children':_0x5608f8(0x21b)})]});}function Ae(_0x453045){var _0x760dfd=_0x5c1af0;const {coordinator:_0x12e292}=_0x453045;return _0x284b02(_0x555249,{'children':[_0x454c16(_0x760dfd(0x1f0),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x454c16(_0x59e674,{'onClick':()=>_0x12e292[_0x760dfd(0x23c)](),'children':_0x760dfd(0x1de)})]});}function Te(_0x9bbeee){var _0x4a9c5a=_0x5c1af0;const {coordinator:_0x51b8e6}=_0x9bbeee;return _0x284b02(_0x555249,{'children':[_0x454c16(_0x4a9c5a(0x1f0),{'className':_0x4a9c5a(0x21f),'children':_0x4a9c5a(0x203)}),_0x454c16(_0x59e674,{'variant':'text','onClick':()=>_0x51b8e6[_0x4a9c5a(0x1e6)](),'children':'Start\x20following'})]});}function $e(_0x38e782){var _0x479f93=_0x5c1af0;const {coordinator:_0x36e11e}=_0x38e782;return _0x284b02(_0x555249,{'children':[_0x454c16(_0x479f93(0x1f0),{'className':_0x479f93(0x21f),'children':_0x479f93(0x1ac)}),_0x454c16(_0x59e674,{'variant':_0x479f93(0x1b7),'onClick':()=>_0x36e11e[_0x479f93(0x1e1)](),'children':'Stop\x20presenting'})]});}function Fe(){return _0x454c16(_0x555249,{'children':'You\x27are\x20offline.'});}var He=Object['getOwnPropertyDescriptor'],je=(_0x4eebf5,_0xfdc8d5,_0x4ea978,_0x4fbd82)=>{var _0x118478=_0x5c1af0;for(var _0x53087d=_0x4fbd82>0x1?void 0x0:_0x4fbd82?He(_0xfdc8d5,_0x4ea978):_0xfdc8d5,_0x2bef20=_0x4eebf5[_0x118478(0x234)]-0x1,_0x13f1bf;_0x2bef20>=0x0;_0x2bef20--)(_0x13f1bf=_0x4eebf5[_0x2bef20])&&(_0x53087d=_0x13f1bf(_0x53087d)||_0x53087d);return _0x53087d;},T=(_0x300955,_0x49829d)=>(_0x2f64ab,_0x577851)=>_0x49829d(_0x2f64ab,_0x577851,_0x300955);let I=class extends _0x291a5b{constructor(_0x2a00b0,_0x36b413){var _0x53b34b=_0x5c1af0;super(),this[_0x53b34b(0x239)]=_0x2a00b0,this['_uiPartsService']=_0x36b413,this[_0x53b34b(0x20f)]();}[_0x5c1af0(0x20f)](){var _0x2ab27d=_0x5c1af0;this[_0x2ab27d(0x19c)](this[_0x2ab27d(0x1ec)]['registerComponent'](_0x384117[_0x2ab27d(0x1b8)],()=>_0x58ec82(ye,this['_injector'])));}};I=je([T(0x0,_0x1e3a85(_0x879ceb)),T(0x1,_0x547a7b)],I);const Ue=_0x5c1af0(0x1c1),$={};var Ve=Object[_0x5c1af0(0x20a)],Me=(_0x3e119d,_0x2f39d7,_0x223ca8,_0x2c3e0a)=>{for(var _0xf7729b=_0x2c3e0a>0x1?void 0x0:_0x2c3e0a?Ve(_0x2f39d7,_0x223ca8):_0x2f39d7,_0x3a24d6=_0x3e119d['length']-0x1,_0x3a986a;_0x3a24d6>=0x0;_0x3a24d6--)(_0x3a986a=_0x3e119d[_0x3a24d6])&&(_0xf7729b=_0x3a986a(_0xf7729b)||_0xf7729b);return _0xf7729b;},ke=(_0xb66a94,_0x5a49c8)=>(_0x1506de,_0x5a9eb9)=>_0x5a49c8(_0x1506de,_0x5a9eb9,_0xb66a94);let b=class extends _0x291a5b{constructor(_0x51f96e){var _0x2c368a=_0x5c1af0;super(),this[_0x2c368a(0x1e8)]=_0x51f96e,this['_init']();}['_init'](){var _0x582ed5=_0x5c1af0;[_0x310893['id'],_0x43006c['id'],_0x12315d['id']][_0x582ed5(0x1d7)](_0x20850d=>{var _0x3d2bfd=_0x582ed5;this[_0x3d2bfd(0x19c)](this[_0x3d2bfd(0x1e8)]['registerSharedOperation'](_0x20850d));});}};b=Me([ke(0x0,_0x1e3a85(L))],b);var Ge=Object[_0x5c1af0(0x1a9)],We=Object[_0x5c1af0(0x20a)],Ye=(_0x294aaf,_0x3e6fe0,_0x24ed8a)=>_0x3e6fe0 in _0x294aaf?Ge(_0x294aaf,_0x3e6fe0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24ed8a}):_0x294aaf[_0x3e6fe0]=_0x24ed8a,Be=(_0x1e005d,_0x677e16,_0xd3dd11,_0x340237)=>{var _0x3666e5=_0x5c1af0;for(var _0x28e8a8=_0x340237>0x1?void 0x0:_0x340237?We(_0x677e16,_0xd3dd11):_0x677e16,_0x263e43=_0x1e005d[_0x3666e5(0x234)]-0x1,_0x4ca19f;_0x263e43>=0x0;_0x263e43--)(_0x4ca19f=_0x1e005d[_0x263e43])&&(_0x28e8a8=_0x4ca19f(_0x28e8a8)||_0x28e8a8);return _0x28e8a8;},F=(_0x1183d7,_0xa85738)=>(_0x573737,_0x3f4d3d)=>_0xa85738(_0x573737,_0x3f4d3d,_0x1183d7),J=(_0x2e71c8,_0x209785,_0x33ba03)=>Ye(_0x2e71c8,typeof _0x209785!=_0x5c1af0(0x233)?_0x209785+'':_0x209785,_0x33ba03);const Ze=_0x5c1af0(0x1f9);let O=class extends _0x4583b3{constructor(_0x1fe09f=$,_0x5a148,_0x5ba94d){var _0x3d8285=_0x5c1af0;super(),this[_0x3d8285(0x1c9)]=_0x1fe09f,this[_0x3d8285(0x239)]=_0x5a148,this[_0x3d8285(0x1a8)]=_0x5ba94d;const {..._0x3eb587}=_0x65e747({},$,this[_0x3d8285(0x1c9)]);this[_0x3d8285(0x1a8)][_0x3d8285(0x210)](Ue,_0x3eb587);}[_0x5c1af0(0x221)](){var _0x1f7381=_0x5c1af0;_0x5cba6b(this[_0x1f7381(0x239)],_0x1c65bf([[L],[m],[b],[I]],this[_0x1f7381(0x1c9)]['override'])),_0x2d3728(this[_0x1f7381(0x239)],[[b]]);}[_0x5c1af0(0x19a)](){var _0x28fa4d=_0x5c1af0;_0x2d3728(this[_0x28fa4d(0x239)],[[I]]);}};J(O,_0x5c1af0(0x206),_0x382149['UNIVER_UNKNOWN']),J(O,_0x5c1af0(0x1dc),Ze),O=Be([_0xd5a04a(_0x3b5e68),F(0x1,_0x1e3a85(_0x879ceb)),F(0x2,_0x1f2a68)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x20ffcd=_0x2eb9;(function(_0x2b75fc,_0x27b805){var _0x3d8cbe=_0x2eb9,_0x51e224=_0x2b75fc();while(!![]){try{var _0x3de8ba=parseInt(_0x3d8cbe(0xc1))/0x1*(parseInt(_0x3d8cbe(0xb3))/0x2)+-parseInt(_0x3d8cbe(0x124))/0x3*(-parseInt(_0x3d8cbe(0x131))/0x4)+-parseInt(_0x3d8cbe(0x91))/0x5+parseInt(_0x3d8cbe(0xf0))/0x6+-parseInt(_0x3d8cbe(0xc3))/0x7*(-parseInt(_0x3d8cbe(0xef))/0x8)+parseInt(_0x3d8cbe(0xd8))/0x9*(parseInt(_0x3d8cbe(0x116))/0xa)+-parseInt(_0x3d8cbe(0xa6))/0xb*(parseInt(_0x3d8cbe(0x12e))/0xc);if(_0x3de8ba===_0x27b805)break;else _0x51e224['push'](_0x51e224['shift']());}catch(_0x251c97){_0x51e224['push'](_0x51e224['shift']());}}}(_0x9300,0x4beb2));var q=Object[_0x20ffcd(0x121)],z=(_0x36d883,_0x37b2e7,_0x1d3ce6)=>_0x37b2e7 in _0x36d883?q(_0x36d883,_0x37b2e7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d3ce6}):_0x36d883[_0x37b2e7]=_0x1d3ce6,d=(_0x2a1788,_0x4628c7,_0x1b4fc7)=>z(_0x2a1788,typeof _0x4628c7!=_0x20ffcd(0x12f)?_0x4628c7+'':_0x4628c7,_0x1b4fc7);import{Disposable as _0x539b1d,toDisposable as _0x6f4b16,IUniverInstanceService as _0x43cc96,Inject as _0x42b534,Injector as _0x59a932,IConfigService as _0x54be48,ICommandService as _0x53f3c0,RxDisposable as _0x483a0a,UniverInstanceType as _0x38c32e,DisposableCollection as _0x1c0ac7,CommandType as _0x406405,DependentOn as _0x50aa05,Plugin as _0x574128,merge as _0x78447b,registerDependencies as _0x3e2832,mergeOverrideWithDependencies as _0x360b36,touchDependencies as _0x5b4f9e}from'@univerjs/core';import{useDependency as _0x26c555,useObservable as _0x45febd,IUIPartsService as _0x4f299e,BuiltInUIPart as _0x1b50ea,connectInjector as _0x5bf79f}from'@univerjs/ui';function _0x9300(){var _0x23791d=['http://www.w3.org/2000/svg','type','current','_presenter','event$','next','createInstance','_injector','97176KcQeIh','3568134HIkJGi','_beIdle','idSuffix','PRESENTING','params','children','onCommandExecuted','length','send','LIVESHARE_OPERATION','init','className','getInitialStates','onRendered','entries','_status','fill','defIds','status$','values','_status$','_sharedOperations','unitId','subscribe','_collabSessionService','_startFollowing','_handleOnline','Stop\x20following','string','hasOwnProperty','has','icon','_handleOperation','operations','ONLINE','includes','live-share-icon','_univerInstanceService','131320zMqAaY','UNIVER_SHEET','onStarting','registerSharedOperation','_reporters','sheet','reverse','text','getMemberID','_uiPartsService','startFollowing','defineProperty','path','_startPresenting','474795KuCpja','propertyIsEnumerable','extend','UNIVER_UNKNOWN','indexOf','presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','map','setConfig','_handleOffline','24jqwAfF','symbol','Start','12wFKvpI','_entities','FOLLOWING','univerjs-icon\x20univerjs-icon-','stopFollowing','LIVESHARE_FETCH_OPERATIONS','from','data','_fetchOperations','override','getValue','_config','tryStartPresenting','toString','unsubscribe','_liveShareService','_handleNewChangeSets','You\x27re\x20presenting\x20the\x20document','concat','currentColor','dispose','1422970oPwGrh','_commandService','offline','none','You\x27are\x20offline.','idle','UniverIcon','_unitID','add','You\x27re\x20not\x20following\x20the\x20presenter','following','getCurrentTypeOfUnit$','_commandDisposable','getOwnPropertySymbols','apply','getTypeOfUnitAdded$','shouldShareOperation','requireSession','disposeWithMe','live-share.config','evenodd','6671423BhVXNS','presenting','registerInitialStateReporter','LIVESHARE_REQUEST_HOST','getUnitId','_configService','LIVESHARE_TERMINATE','You\x27re\x20following\x20the\x20presenter','defs','getTypeOfUnitDisposed$','forEach','NOT_FOLLOWING','assign','2ZxhInW','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','Present\x20this\x20document','call','dispose$','set','NEW_CHANGESETS','_mountLiveShare','executeCommand','div','memberID','delete','_stopPresenting','not-following','203605TvScnc','stopPresenting','301MPArvr','getConfig','prototype','getOwnPropertyDescriptor','colorChannel1','_startLiveShareCoordinator','mutations','_handleTerminate','find','IDLE','_init','displayName','_stopFollowing','mask','LiveShareIcon','svg','default','xlink:href','registerComponent','SAME_OPERATION_SHARE_INTERVAL','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','9XvnfAd','clear','attrs','use','pipe','OFFLINE','url(#$1','stringify','button','tag','getLiveShareCoordinator','_collabSession','_handleNewHost','replace','get'];_0x9300=function(){return _0x23791d;};return _0x9300();}import{jsx as _0x157b9a,jsxs as _0x473891,Fragment as _0x55b1a3}from'react/jsx-runtime';import{Dropdown as _0xb7599b,clsx as _0x400561,Button as _0x28c9ca}from'@univerjs/design';import{forwardRef as _0x7a472b,useRef as _0x4928e4,createElement as _0x23f67a,useState as _0x3d360d,useEffect as _0x752798}from'react';import{CollaborationEvent as _0x2abc7e,parseProtocolChangeset as _0x5d4330}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4f9f70,SessionStatus as _0x1cf2a1,UniverCollaborationClientPlugin as _0x2f65a8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3240f5,SetWorksheetActiveOperation as _0x208319}from'@univerjs/sheets';import{BehaviorSubject as _0x1e4a81,Subject as _0x396bc7}from'rxjs';import{takeUntil as _0x5b2945,throttleTime as _0x5c2331}from'rxjs/operators';import{SetZoomRatioOperation as _0x5deda2,SetScrollOperation as _0x5abaaa}from'@univerjs/sheets-ui';var c=function(){var _0xf16334=_0x20ffcd;return c=Object[_0xf16334(0xb2)]||function(_0x5eb54e){var _0x33d02a=_0xf16334;for(var _0x3a9f7b,_0x4af609=0x1,_0x9e4e20=arguments[_0x33d02a(0xf7)];_0x4af609<_0x9e4e20;_0x4af609++){_0x3a9f7b=arguments[_0x4af609];for(var _0x24a116 in _0x3a9f7b)Object[_0x33d02a(0xc5)]['hasOwnProperty'][_0x33d02a(0xb6)](_0x3a9f7b,_0x24a116)&&(_0x5eb54e[_0x24a116]=_0x3a9f7b[_0x24a116]);}return _0x5eb54e;},c[_0xf16334(0x9f)](this,arguments);},Oe=function(_0x3942af,_0x4422c1){var _0xe8340f=_0x20ffcd,_0x4d91ae={};for(var _0x481cf8 in _0x3942af)Object['prototype'][_0xe8340f(0x10d)]['call'](_0x3942af,_0x481cf8)&&_0x4422c1[_0xe8340f(0x128)](_0x481cf8)<0x0&&(_0x4d91ae[_0x481cf8]=_0x3942af[_0x481cf8]);if(_0x3942af!=null&&typeof Object[_0xe8340f(0x9e)]=='function'){for(var _0x36f605=0x0,_0x481cf8=Object['getOwnPropertySymbols'](_0x3942af);_0x36f605<_0x481cf8['length'];_0x36f605++)_0x4422c1['indexOf'](_0x481cf8[_0x36f605])<0x0&&Object[_0xe8340f(0xc5)][_0xe8340f(0x125)][_0xe8340f(0xb6)](_0x3942af,_0x481cf8[_0x36f605])&&(_0x4d91ae[_0x481cf8[_0x36f605]]=_0x3942af[_0x481cf8[_0x36f605]]);}return _0x4d91ae;},W=_0x7a472b(function(_0x20cb53,_0x8e1fe0){var _0x10ac0b=_0x20ffcd,_0x1b2cce=_0x20cb53['icon'],_0x9d6e3e=_0x20cb53['id'],_0x473ed6=_0x20cb53[_0x10ac0b(0xfb)],_0x290904=_0x20cb53[_0x10ac0b(0x126)],_0x4fa4f4=Oe(_0x20cb53,[_0x10ac0b(0x10f),'id',_0x10ac0b(0xfb),'extend']),_0x260855=_0x10ac0b(0x134)[_0x10ac0b(0x8e)](_0x9d6e3e,'\x20')[_0x10ac0b(0x8e)](_0x473ed6||'')['trim'](),_0x418b50=_0x4928e4('_'[_0x10ac0b(0x8e)](Ne()));return Y(_0x1b2cce,''[_0x10ac0b(0x8e)](_0x9d6e3e),{'defIds':_0x1b2cce[_0x10ac0b(0x101)],'idSuffix':_0x418b50['current']},c({'ref':_0x8e1fe0,'className':_0x260855},_0x4fa4f4),_0x290904);});function Y(_0x4332a8,_0x53ab35,_0xacdba,_0x1444da,_0x19d1da){var _0x54b9c9=_0x20ffcd;return _0x23f67a(_0x4332a8[_0x54b9c9(0xe1)],c(c({'key':_0x53ab35},Ee(_0x4332a8,_0xacdba,_0x19d1da)),_0x1444da),(we(_0x4332a8,_0xacdba)[_0x54b9c9(0xf5)]||[])[_0x54b9c9(0x12b)](function(_0x176e99,_0x210eb2){var _0x1c88de=_0x54b9c9;return Y(_0x176e99,''['concat'](_0x53ab35,'-')['concat'](_0x4332a8['tag'],'-')[_0x1c88de(0x8e)](_0x210eb2),_0xacdba,void 0x0,_0x19d1da);}));}function Ee(_0x8203fc,_0x232873,_0x146f8e){var _0x320c35=_0x20ffcd,_0x132089=c({},_0x8203fc['attrs']);_0x146f8e!=null&&_0x146f8e['colorChannel1']&&_0x132089[_0x320c35(0x100)]===_0x320c35(0xc7)&&(_0x132089[_0x320c35(0x100)]=_0x146f8e[_0x320c35(0xc7)]),_0x8203fc[_0x320c35(0xe1)]==='mask'&&_0x132089['id']&&(_0x132089['id']=_0x132089['id']+_0x232873[_0x320c35(0xf2)]),Object['entries'](_0x132089)[_0x320c35(0xb0)](function(_0x4bd1a8){var _0x4ca582=_0x320c35,_0x1ef676=_0x4bd1a8[0x0],_0x2068e0=_0x4bd1a8[0x1];_0x1ef676===_0x4ca582(0xd0)&&typeof _0x2068e0==_0x4ca582(0x10c)&&(_0x132089[_0x1ef676]=_0x2068e0[_0x4ca582(0xe5)](/url\(#(.*)\)/,_0x4ca582(0xde)['concat'](_0x232873[_0x4ca582(0xf2)],')')));});var _0x4f0b36=_0x232873[_0x320c35(0x101)];return!_0x4f0b36||_0x4f0b36[_0x320c35(0xf7)]===0x0||(_0x8203fc[_0x320c35(0xe1)]===_0x320c35(0xdb)&&_0x132089[_0x320c35(0xd4)]&&(_0x132089[_0x320c35(0xd4)]=_0x132089[_0x320c35(0xd4)]+_0x232873[_0x320c35(0xf2)]),Object[_0x320c35(0xfe)](_0x132089)['forEach'](function(_0x2a0c26){var _0x3f65b4=_0x320c35,_0x4983e2=_0x2a0c26[0x0],_0x39ddfc=_0x2a0c26[0x1];typeof _0x39ddfc=='string'&&(_0x132089[_0x4983e2]=_0x39ddfc[_0x3f65b4(0xe5)](/url\(#(.*)\)/,_0x3f65b4(0xde)[_0x3f65b4(0x8e)](_0x232873['idSuffix'],')')));})),_0x132089;}function we(_0x1b0d58,_0x1002f7){var _0x43d901=_0x20ffcd,_0x123073,_0x2e0fae=_0x1002f7[_0x43d901(0x101)];return!_0x2e0fae||_0x2e0fae[_0x43d901(0xf7)]===0x0?_0x1b0d58:_0x1b0d58[_0x43d901(0xe1)]===_0x43d901(0xae)&&(!((_0x123073=_0x1b0d58[_0x43d901(0xf5)])===null||_0x123073===void 0x0)&&_0x123073[_0x43d901(0xf7)])?c(c({},_0x1b0d58),{'children':_0x1b0d58[_0x43d901(0xf5)][_0x43d901(0x12b)](function(_0x32f4b3){var _0x1df102=_0x43d901;return typeof _0x32f4b3['attrs']['id']==_0x1df102(0x10c)&&_0x2e0fae&&_0x2e0fae[_0x1df102(0x113)](_0x32f4b3['attrs']['id'])?c(c({},_0x32f4b3),{'attrs':c(c({},_0x32f4b3[_0x1df102(0xda)]),{'id':_0x32f4b3[_0x1df102(0xda)]['id']+_0x1002f7['idSuffix']})}):_0x32f4b3;})}):_0x1b0d58;}function Ne(){var _0x474e05=_0x20ffcd;return Math['random']()[_0x474e05(0x89)](0x24)['substring'](0x2,0x8);}W[_0x20ffcd(0xce)]=_0x20ffcd(0x97);var Ce={'tag':_0x20ffcd(0xd2),'attrs':{'xmlns':_0x20ffcd(0xe7),'fill':_0x20ffcd(0x94),'viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0x20ffcd(0x122),'attrs':{'fill':_0x20ffcd(0x8f),'d':_0x20ffcd(0xb4)}},{'tag':'path','attrs':{'fill':_0x20ffcd(0x8f),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x20ffcd(0xa5),'clipRule':_0x20ffcd(0xa5)}}]},B=_0x7a472b(function(_0x434678,_0x1f52f2){var _0x302b39=_0x20ffcd;return _0x23f67a(W,Object['assign']({},_0x434678,{'id':_0x302b39(0x114),'ref':_0x1f52f2,'icon':Ce}));});function _0x2eb9(_0x5dfbc0,_0x4ef128){var _0x9300a0=_0x9300();return _0x2eb9=function(_0x2eb90b,_0x2124eb){_0x2eb90b=_0x2eb90b-0x85;var _0x1c9c27=_0x9300a0[_0x2eb90b];return _0x1c9c27;},_0x2eb9(_0x5dfbc0,_0x4ef128);}B[_0x20ffcd(0xce)]=_0x20ffcd(0xd1);class L extends _0x539b1d{constructor(){var _0x35854c=_0x20ffcd;super(...arguments),d(this,_0x35854c(0x105),new Set()),d(this,_0x35854c(0x11a),new Set());}[_0x20ffcd(0x119)](_0x398132){var _0x448957=_0x20ffcd;return this[_0x448957(0x105)][_0x448957(0x99)](_0x398132),_0x6f4b16(()=>this[_0x448957(0x105)][_0x448957(0xbe)](_0x398132));}[_0x20ffcd(0xa8)](_0x5c8e56){var _0x39a15a=_0x20ffcd;return this[_0x39a15a(0x11a)][_0x39a15a(0x99)](_0x5c8e56),_0x6f4b16(()=>this[_0x39a15a(0x11a)]['delete'](_0x5c8e56));}[_0x20ffcd(0xa1)](_0xcd336b){var _0x4c4bbb=_0x20ffcd;return this['_sharedOperations'][_0x4c4bbb(0x10e)](_0xcd336b);}[_0x20ffcd(0xfc)](_0x3f02a8){var _0x31e215=_0x20ffcd;return Array[_0x31e215(0x137)](this[_0x31e215(0x11a)])[_0x31e215(0x12b)](_0x38ff09=>_0x38ff09(_0x3f02a8));}}var De=Object[_0x20ffcd(0xc6)],Z=(_0x2867b1,_0x11cd36,_0x2a2236,_0x45b7b0)=>{var _0x192486=_0x20ffcd;for(var _0x140dc1=_0x45b7b0>0x1?void 0x0:_0x45b7b0?De(_0x11cd36,_0x2a2236):_0x11cd36,_0x39601a=_0x2867b1[_0x192486(0xf7)]-0x1,_0x5975a7;_0x39601a>=0x0;_0x39601a--)(_0x5975a7=_0x2867b1[_0x39601a])&&(_0x140dc1=_0x5975a7(_0x140dc1)||_0x140dc1);return _0x140dc1;},f=(_0x309e57,_0x795664)=>(_0xe5c25a,_0x49b8d3)=>_0x795664(_0xe5c25a,_0x49b8d3,_0x309e57);let m=class extends _0x483a0a{constructor(_0x49be32,_0x1f22e6,_0x5d3ae9){var _0x45eb05=_0x20ffcd;super(),d(this,_0x45eb05(0x132),new Map()),(this[_0x45eb05(0x115)]=_0x49be32,this['_injector']=_0x1f22e6,this['_collabSessionService']=_0x5d3ae9,this[_0x45eb05(0xcd)]());}async[_0x20ffcd(0xe2)](_0x4fc6eb){var _0x493172=_0x20ffcd;return this[_0x493172(0x132)]['has'](_0x4fc6eb)||await this['_startLiveShareCoordinator'](_0x4fc6eb),this[_0x493172(0x132)]['get'](_0x4fc6eb);}[_0x20ffcd(0xcd)](){var _0x21acef=_0x20ffcd;this[_0x21acef(0x115)][_0x21acef(0xa0)](_0x38c32e[_0x21acef(0x117)])['pipe'](_0x5b2945(this[_0x21acef(0xb7)]))[_0x21acef(0x107)](async _0x4f9ae6=>{var _0x589536=_0x21acef;const _0x40b3fe=_0x4f9ae6[_0x589536(0xaa)]();this[_0x589536(0x132)][_0x589536(0x10e)](_0x40b3fe)||this[_0x589536(0xc8)](_0x40b3fe);}),this[_0x21acef(0x115)][_0x21acef(0xaf)](_0x38c32e[_0x21acef(0x117)])['pipe'](_0x5b2945(this[_0x21acef(0xb7)]))[_0x21acef(0x107)](_0x527482=>{var _0x1618de=_0x21acef;const _0x5b5dd1=_0x527482[_0x1618de(0xaa)](),_0xc9b338=this[_0x1618de(0x132)][_0x1618de(0xe6)](_0x5b5dd1);_0xc9b338==null||_0xc9b338[_0x1618de(0x90)]();});}async[_0x20ffcd(0xc8)](_0x5e6fa6){var _0x27b1a0=_0x20ffcd;const _0x1d6e57=await this[_0x27b1a0(0x108)][_0x27b1a0(0xa2)](_0x5e6fa6),_0x3823e4=this[_0x27b1a0(0xee)][_0x27b1a0(0xed)](C,_0x5e6fa6,_0x1d6e57);return _0x3823e4[_0x27b1a0(0xfa)](),this[_0x27b1a0(0x132)][_0x27b1a0(0xb8)](_0x5e6fa6,_0x3823e4),_0x3823e4;}};m=Z([f(0x0,_0x43cc96),f(0x1,_0x42b534(_0x59a932)),f(0x2,_0x42b534(_0x4f9f70))],m);var h=(_0x3dcbf5=>(_0x3dcbf5['OFFLINE']=_0x20ffcd(0x93),_0x3dcbf5[_0x20ffcd(0xcc)]=_0x20ffcd(0x96),_0x3dcbf5['FOLLOWING']=_0x20ffcd(0x9b),_0x3dcbf5['NOT_FOLLOWING']='not-following',_0x3dcbf5[_0x20ffcd(0xf3)]=_0x20ffcd(0xa7),_0x3dcbf5))(h||{});const xe=_0x20ffcd(0xd6),Le=0xc8;let C=class extends _0x483a0a{constructor(_0x309cbc,_0x4cabe9,_0x8e41c7,_0x4c01f4,_0x160d03){var _0x33d594=_0x20ffcd;super(),d(this,'_status$',new _0x1e4a81(_0x33d594(0x96))),d(this,_0x33d594(0x102),this['_status$']['asObservable']()),d(this,'_init',!0x1),d(this,_0x33d594(0x9d),null),d(this,_0x33d594(0xea),null),(this[_0x33d594(0x98)]=_0x309cbc,this[_0x33d594(0xe3)]=_0x4cabe9,this['_configService']=_0x8e41c7,this[_0x33d594(0x8b)]=_0x4c01f4,this[_0x33d594(0x92)]=_0x160d03);}get['_status'](){var _0xed1284=_0x20ffcd;return this[_0xed1284(0x104)][_0xed1284(0x86)]();}[_0x20ffcd(0x90)](){var _0xfeab79=_0x20ffcd,_0xe95d63;(_0xe95d63=this[_0xfeab79(0x9d)])==null||_0xe95d63[_0xfeab79(0x90)](),this[_0xfeab79(0x104)][_0xfeab79(0xec)](_0xfeab79(0x96)),this['_status$']['complete']();}['init'](){var _0x164c56=_0x20ffcd;this['_init']||(this['_init']=!0x0,this[_0x164c56(0xe3)]['sessionStatus$'][_0x164c56(0xdc)](_0x5b2945(this[_0x164c56(0xb7)]))[_0x164c56(0x107)](_0x4f2f8e=>{var _0x5ebdc3=_0x164c56;switch(_0x4f2f8e){case _0x1cf2a1['OFFLINE']:this[_0x5ebdc3(0x12d)]();break;case _0x1cf2a1[_0x5ebdc3(0x112)]:this[_0x5ebdc3(0x10a)]();break;}}),this[_0x164c56(0xe3)][_0x164c56(0xeb)][_0x164c56(0xdc)](_0x5b2945(this[_0x164c56(0xb7)]))[_0x164c56(0x107)](_0x582462=>{var _0x3aa487=_0x164c56;const {eventID:_0x57758a}=_0x582462;switch(_0x57758a){case _0x2abc7e['LIVESHARE_NEW_HOST']:this[_0x3aa487(0xe4)](_0x582462);break;case _0x2abc7e[_0x3aa487(0xf9)]:this['_handleOperation'](_0x582462);break;case _0x2abc7e[_0x3aa487(0xac)]:this[_0x3aa487(0xca)]();break;case _0x2abc7e[_0x3aa487(0xb9)]:this[_0x3aa487(0x8c)](_0x582462);break;}}));}[_0x20ffcd(0x88)](){var _0x4260bf=_0x20ffcd;this[_0x4260bf(0xe3)][_0x4260bf(0xf8)]({'eventID':_0x2abc7e[_0x4260bf(0xa9)],'data':{'unitID':this[_0x4260bf(0x98)],'userID':this['_collabSession'][_0x4260bf(0x11e)]()}},this['_unitID']);}[_0x20ffcd(0xc2)](){var _0x29cc31=_0x20ffcd;this[_0x29cc31(0xff)]==='presenting'&&(this[_0x29cc31(0x104)][_0x29cc31(0xec)]('idle'),this[_0x29cc31(0xe3)][_0x29cc31(0xf8)]({'eventID':_0x2abc7e[_0x29cc31(0xac)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x20ffcd(0x120)](){var _0x36dbf3=_0x20ffcd;this[_0x36dbf3(0xff)]===_0x36dbf3(0xc0)&&(this[_0x36dbf3(0x104)][_0x36dbf3(0xec)](_0x36dbf3(0x9b)),this[_0x36dbf3(0x109)]());}[_0x20ffcd(0x135)](){var _0x22cd64=_0x20ffcd;this[_0x22cd64(0xff)]===_0x22cd64(0x9b)&&this[_0x22cd64(0xcf)]();}[_0x20ffcd(0xe4)](_0x197f32){var _0x39a9b5=_0x20ffcd;const {presenter:_0x1c969e}=_0x197f32[_0x39a9b5(0x138)],_0x8702b3=this[_0x39a9b5(0xe3)][_0x39a9b5(0x11e)]();this[_0x39a9b5(0xea)]=_0x1c969e,_0x1c969e===_0x8702b3?(this[_0x39a9b5(0xcf)](),this[_0x39a9b5(0x123)]()):this[_0x39a9b5(0xff)]!==_0x39a9b5(0xc0)&&(this[_0x39a9b5(0xbf)](),this['_startFollowing']());}[_0x20ffcd(0x139)](){var _0x2b7ab1=_0x20ffcd;const _0x4aad35={'eventID':_0x2abc7e[_0x2b7ab1(0x136)]};this[_0x2b7ab1(0xe3)][_0x2b7ab1(0xf8)](_0x4aad35,this['_unitID']);}['_handleTerminate'](){var _0x338ba1=_0x20ffcd;this[_0x338ba1(0xea)]=null,this[_0x338ba1(0xff)]!=='presenting'&&this[_0x338ba1(0xf1)]();}[_0x20ffcd(0x8c)](_0x1e407d){var _0x15de91=_0x20ffcd;if(this[_0x15de91(0xff)]===_0x15de91(0x9b)&&this['_presenter']===_0x1e407d[_0x15de91(0x138)][_0x15de91(0xbd)]){const _0xb04db0=_0x5d4330(_0x1e407d[_0x15de91(0x138)])[_0x15de91(0xc9)][_0x15de91(0x11c)]()[_0x15de91(0xcb)](_0x1fc8b9=>_0x1fc8b9['id']===_0x3240f5['id']);if(_0xb04db0){const _0x2d5386=_0xb04db0[_0x15de91(0xf4)][_0x15de91(0x106)],_0x2e3c61=_0xb04db0[_0x15de91(0xf4)][_0x15de91(0x11b)]['id'];setTimeout(()=>{var _0x1ecf1b=_0x15de91;this[_0x1ecf1b(0x92)][_0x1ecf1b(0xbb)](_0x208319['id'],{'unitId':_0x2d5386,'subUnitId':_0x2e3c61},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xc76bac=_0x20ffcd;this[_0xc76bac(0x104)]['next'](_0xc76bac(0xa7));const _0xd3dee4=new Map(),_0x529bd5=this[_0xc76bac(0x9d)]=new _0x1c0ac7();_0x529bd5[_0xc76bac(0x99)](_0x6f4b16(()=>{var _0xc4795=_0xc76bac;_0xd3dee4[_0xc4795(0xb0)](_0x26eca9=>_0x26eca9['complete']()),_0xd3dee4[_0xc4795(0xd9)]();})),_0x529bd5[_0xc76bac(0x99)](this[_0xc76bac(0x92)][_0xc76bac(0xf6)](_0xb0c0a3=>{var _0x3f4e5c=_0xc76bac,_0x23b1a6;if(_0xb0c0a3[_0x3f4e5c(0xe8)]!==_0x406405['OPERATION']||!this[_0x3f4e5c(0x8b)][_0x3f4e5c(0xa1)](_0xb0c0a3['id']))return;const {id:_0x1b43d1}=_0xb0c0a3;let _0x4d2385;_0xd3dee4['has'](_0x1b43d1)?_0x4d2385=_0xd3dee4[_0x3f4e5c(0xe6)](_0x1b43d1):(_0x4d2385=new _0x396bc7(),_0xd3dee4[_0x3f4e5c(0xb8)](_0x1b43d1,_0x4d2385),_0x4d2385[_0x3f4e5c(0xdc)](_0x5c2331((_0x23b1a6=this[_0x3f4e5c(0xab)][_0x3f4e5c(0xc4)](xe))!=null?_0x23b1a6:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3f4e5c(0x107)](_0x4d89d3=>{var _0x1a35b2=_0x3f4e5c;this[_0x1a35b2(0xe3)]['send']({'eventID':_0x2abc7e[_0x1a35b2(0xf9)],'data':{'unitID':this['_unitID'],'operations':{[_0x4d89d3['id']]:{'id':_0x4d89d3['id'],'params':JSON[_0x1a35b2(0xdf)](_0x4d89d3[_0x1a35b2(0xf4)])}}}},this[_0x1a35b2(0x98)]);})),_0x4d2385[_0x3f4e5c(0xec)](_0xb0c0a3);})),this['_liveShareService'][_0xc76bac(0xfc)](this[_0xc76bac(0x98)])[_0xc76bac(0xb0)](_0x128ef1=>this[_0xc76bac(0xe3)]['send']({'eventID':_0x2abc7e[_0xc76bac(0xf9)],'data':{'unitID':this['_unitID'],'operations':{[_0x128ef1['id']]:{'id':_0x128ef1['id'],'params':JSON['stringify'](_0x128ef1[_0xc76bac(0xf4)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x5ae72b=_0x20ffcd,_0x6ce1c7;this['_status$'][_0x5ae72b(0xec)](_0x5ae72b(0x96)),(_0x6ce1c7=this['_commandDisposable'])==null||_0x6ce1c7[_0x5ae72b(0x90)](),this[_0x5ae72b(0x9d)]=null;}['_startFollowing'](){var _0x5dbe43=_0x20ffcd,_0x501234;(_0x501234=this[_0x5dbe43(0x9d)])==null||_0x501234[_0x5dbe43(0x90)](),this[_0x5dbe43(0x104)][_0x5dbe43(0xec)](_0x5dbe43(0x9b));}[_0x20ffcd(0xf1)](){var _0x50f650=_0x20ffcd,_0xd6ff21;this['_status$'][_0x50f650(0xec)](_0x50f650(0x96)),(_0xd6ff21=this[_0x50f650(0x9d)])==null||_0xd6ff21['dispose'](),this[_0x50f650(0x9d)]=null;}[_0x20ffcd(0xcf)](){var _0xa90780=_0x20ffcd,_0x16663b;this['_status$'][_0xa90780(0xec)](_0xa90780(0xc0)),(_0x16663b=this[_0xa90780(0x9d)])==null||_0x16663b[_0xa90780(0x90)]();}[_0x20ffcd(0x110)](_0x2e7910){var _0x2eb80d=_0x20ffcd;if(['presenting',_0x2eb80d(0xc0),'offline'][_0x2eb80d(0x113)](this[_0x2eb80d(0xff)])||!_0x2e7910['data'][_0x2eb80d(0x129)]||_0x2e7910[_0x2eb80d(0x138)]['presenter']===this[_0x2eb80d(0xe3)]['getMemberID']())return;this[_0x2eb80d(0xff)]===_0x2eb80d(0x96)&&this[_0x2eb80d(0x109)]();const _0x260277=_0x2e7910['data'][_0x2eb80d(0x111)];Object[_0x2eb80d(0x103)](_0x260277)[_0x2eb80d(0xb0)](_0x3ac204=>{var _0x25c849=_0x2eb80d;this['_commandService']['executeCommand'](_0x3ac204['id'],_0x3ac204[_0x25c849(0xf4)]?JSON['parse'](_0x3ac204['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1754a8=_0x20ffcd,_0x1a8c5a;this[_0x1754a8(0x104)][_0x1754a8(0xec)](_0x1754a8(0x93)),(_0x1a8c5a=this[_0x1754a8(0x9d)])==null||_0x1a8c5a['dispose']();}[_0x20ffcd(0x10a)](){var _0x1dd754=_0x20ffcd;this[_0x1dd754(0x104)]['next'](_0x1dd754(0x96)),this['_fetchOperations']();}};C=Z([f(0x2,_0x54be48),f(0x3,_0x42b534(L)),f(0x4,_0x53f3c0)],C);function ye(){var _0x2885bf=_0x20ffcd;const _0x52abed=_0x26c555(m),_0x1eee02=_0x26c555(_0x43cc96),_0x1e7bdd=_0x45febd(()=>_0x1eee02[_0x2885bf(0x9c)](_0x38c32e['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xb49b80,_0x3998c2]=_0x3d360d(null),[_0x552f57,_0x85b75a]=_0x3d360d(h[_0x2885bf(0xcc)]),_0x4a8976=_0x4928e4(null);return _0x752798(()=>(_0x1e7bdd&&_0x52abed[_0x2885bf(0xe2)](_0x1e7bdd[_0x2885bf(0xaa)]())['then'](_0x188a24=>{_0x3998c2(_0x188a24),_0x4a8976['current']=_0x188a24['status$']['subscribe'](_0x3a23f4=>{_0x85b75a(_0x3a23f4);});}),()=>{var _0x178ad4=_0x2885bf,_0x50dfb9;(_0x50dfb9=_0x4a8976['current'])==null||_0x50dfb9[_0x178ad4(0x8a)](),_0x4a8976[_0x178ad4(0xe9)]=null;}),[_0x1e7bdd,_0x52abed]),_0xb49b80?_0x157b9a(_0xb7599b,{'align':'end','disabled':_0x552f57===h[_0x2885bf(0xdd)],'className':_0x2885bf(0xd7),'overlay':_0x157b9a(Re,{'status':_0x552f57,'coordinator':_0xb49b80}),'children':_0x157b9a(_0x2885bf(0xe0),{'className':_0x400561('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x552f57===h[_0x2885bf(0xdd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x552f57!==h['OFFLINE']}),'type':'button','children':_0x157b9a(B,{'className':'univer-size-4'})})}):null;}function Re(_0x1068e6){var _0x18633d=_0x20ffcd;const {status:_0x3a9292,coordinator:_0xc82d20}=_0x1068e6;switch(_0x3a9292){case h[_0x18633d(0xcc)]:return _0x157b9a(Pe,{'coordinator':_0xc82d20});case h[_0x18633d(0x133)]:return _0x157b9a(Ae,{'coordinator':_0xc82d20});case h[_0x18633d(0xb1)]:return _0x157b9a(Te,{'coordinator':_0xc82d20});case h[_0x18633d(0xdd)]:return _0x157b9a(Fe,{});case h[_0x18633d(0xf3)]:return _0x157b9a($e,{'coordinator':_0xc82d20});default:return null;}}function Pe(_0x24d3d8){var _0x1e31b7=_0x20ffcd;const {coordinator:_0x557f16}=_0x24d3d8;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x1e31b7(0xbc),{'className':_0x1e31b7(0x12a),'children':_0x1e31b7(0xb5)}),_0x157b9a(_0x28c9ca,{'onClick':()=>_0x557f16[_0x1e31b7(0x88)](),'children':_0x1e31b7(0x130)})]});}function Ae(_0x3359cd){var _0x87f096=_0x20ffcd;const {coordinator:_0x514ce6}=_0x3359cd;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x87f096(0xbc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x87f096(0xad)}),_0x157b9a(_0x28c9ca,{'onClick':()=>_0x514ce6[_0x87f096(0x135)](),'children':_0x87f096(0x10b)})]});}function Te(_0x282133){var _0x3563bf=_0x20ffcd;const {coordinator:_0x2f9c0f}=_0x282133;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x3563bf(0xbc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3563bf(0x9a)}),_0x157b9a(_0x28c9ca,{'variant':_0x3563bf(0x11d),'onClick':()=>_0x2f9c0f['startFollowing'](),'children':'Start\x20following'})]});}function $e(_0x3d8f5b){var _0x237ffe=_0x20ffcd;const {coordinator:_0x5e3865}=_0x3d8f5b;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x237ffe(0xbc),{'className':_0x237ffe(0x12a),'children':_0x237ffe(0x8d)}),_0x157b9a(_0x28c9ca,{'variant':_0x237ffe(0xd3),'onClick':()=>_0x5e3865[_0x237ffe(0xc2)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x5172e2=_0x20ffcd;return _0x157b9a(_0x55b1a3,{'children':_0x5172e2(0x95)});}var He=Object[_0x20ffcd(0xc6)],je=(_0x2591b1,_0x395329,_0x5b527a,_0x4a2a75)=>{var _0x705bae=_0x20ffcd;for(var _0x29f307=_0x4a2a75>0x1?void 0x0:_0x4a2a75?He(_0x395329,_0x5b527a):_0x395329,_0x2ce23b=_0x2591b1[_0x705bae(0xf7)]-0x1,_0x3381a6;_0x2ce23b>=0x0;_0x2ce23b--)(_0x3381a6=_0x2591b1[_0x2ce23b])&&(_0x29f307=_0x3381a6(_0x29f307)||_0x29f307);return _0x29f307;},T=(_0x1bd158,_0x4869a7)=>(_0x4f7c8f,_0x4224c2)=>_0x4869a7(_0x4f7c8f,_0x4224c2,_0x1bd158);let I=class extends _0x539b1d{constructor(_0x1b71fa,_0x4b1cd2){var _0x114ab5=_0x20ffcd;super(),this[_0x114ab5(0xee)]=_0x1b71fa,this['_uiPartsService']=_0x4b1cd2,this[_0x114ab5(0xba)]();}[_0x20ffcd(0xba)](){var _0x4da0f4=_0x20ffcd;this[_0x4da0f4(0xa3)](this[_0x4da0f4(0x11f)][_0x4da0f4(0xd5)](_0x1b50ea['HEADER_MENU'],()=>_0x5bf79f(ye,this[_0x4da0f4(0xee)])));}};I=je([T(0x0,_0x42b534(_0x59a932)),T(0x1,_0x4f299e)],I);const Ue=_0x20ffcd(0xa4),$={};var Ve=Object[_0x20ffcd(0xc6)],Me=(_0x518de8,_0x176f5e,_0x9a33e8,_0x2e4233)=>{var _0x4c149b=_0x20ffcd;for(var _0x18043=_0x2e4233>0x1?void 0x0:_0x2e4233?Ve(_0x176f5e,_0x9a33e8):_0x176f5e,_0x686b38=_0x518de8[_0x4c149b(0xf7)]-0x1,_0x9ac174;_0x686b38>=0x0;_0x686b38--)(_0x9ac174=_0x518de8[_0x686b38])&&(_0x18043=_0x9ac174(_0x18043)||_0x18043);return _0x18043;},ke=(_0x65203f,_0x380946)=>(_0x5a2139,_0x4a9346)=>_0x380946(_0x5a2139,_0x4a9346,_0x65203f);let b=class extends _0x539b1d{constructor(_0x56f409){var _0x3514e9=_0x20ffcd;super(),this['_liveShareService']=_0x56f409,this[_0x3514e9(0xcd)]();}[_0x20ffcd(0xcd)](){var _0x117401=_0x20ffcd;[_0x5deda2['id'],_0x5abaaa['id'],_0x208319['id']][_0x117401(0xb0)](_0x2cfc1c=>{var _0x3f2511=_0x117401;this[_0x3f2511(0xa3)](this['_liveShareService'][_0x3f2511(0x119)](_0x2cfc1c));});}};b=Me([ke(0x0,_0x42b534(L))],b);var Ge=Object[_0x20ffcd(0x121)],We=Object[_0x20ffcd(0xc6)],Ye=(_0x145a97,_0x3782a8,_0x3dd16e)=>_0x3782a8 in _0x145a97?Ge(_0x145a97,_0x3782a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dd16e}):_0x145a97[_0x3782a8]=_0x3dd16e,Be=(_0x85c55e,_0x430f0f,_0x58ffe3,_0x4f5d8e)=>{var _0x36bee9=_0x20ffcd;for(var _0x1c6c40=_0x4f5d8e>0x1?void 0x0:_0x4f5d8e?We(_0x430f0f,_0x58ffe3):_0x430f0f,_0x1fd99e=_0x85c55e[_0x36bee9(0xf7)]-0x1,_0x524603;_0x1fd99e>=0x0;_0x1fd99e--)(_0x524603=_0x85c55e[_0x1fd99e])&&(_0x1c6c40=_0x524603(_0x1c6c40)||_0x1c6c40);return _0x1c6c40;},F=(_0x3e04e3,_0x2ab29d)=>(_0x503331,_0x34cd77)=>_0x2ab29d(_0x503331,_0x34cd77,_0x3e04e3),J=(_0x5c5914,_0x234b6c,_0x53e3bd)=>Ye(_0x5c5914,typeof _0x234b6c!=_0x20ffcd(0x12f)?_0x234b6c+'':_0x234b6c,_0x53e3bd);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x574128{constructor(_0x2b7eee=$,_0x56e332,_0x5da0a3){var _0x4bce4d=_0x20ffcd;super(),this[_0x4bce4d(0x87)]=_0x2b7eee,this[_0x4bce4d(0xee)]=_0x56e332,this[_0x4bce4d(0xab)]=_0x5da0a3;const {..._0x52a454}=_0x78447b({},$,this['_config']);this['_configService'][_0x4bce4d(0x12c)](Ue,_0x52a454);}[_0x20ffcd(0x118)](){var _0x541d34=_0x20ffcd;_0x3e2832(this[_0x541d34(0xee)],_0x360b36([[L],[m],[b],[I]],this[_0x541d34(0x87)][_0x541d34(0x85)])),_0x5b4f9e(this['_injector'],[[b]]);}[_0x20ffcd(0xfd)](){var _0x361f59=_0x20ffcd;_0x5b4f9e(this[_0x361f59(0xee)],[[I]]);}};J(O,'type',_0x38c32e[_0x20ffcd(0x127)]),J(O,'pluginName',Ze),O=Be([_0x50aa05(_0x2f65a8),F(0x1,_0x42b534(_0x59a932)),F(0x2,_0x54be48)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x5c1af0=_0x260a;(function(_0x956b52,_0x43402e){var _0x1df03c=_0x260a,_0x3cfa0f=_0x956b52();while(!![]){try{var _0x3a76f5=-parseInt(_0x1df03c(0x1b1))/0x1*(-parseInt(_0x1df03c(0x213))/0x2)+parseInt(_0x1df03c(0x23f))/0x3+-parseInt(_0x1df03c(0x1a2))/0x4*(parseInt(_0x1df03c(0x1d4))/0x5)+-parseInt(_0x1df03c(0x205))/0x6*(-parseInt(_0x1df03c(0x242))/0x7)+parseInt(_0x1df03c(0x1c4))/0x8*(parseInt(_0x1df03c(0x1dd))/0x9)+parseInt(_0x1df03c(0x1ce))/0xa+-parseInt(_0x1df03c(0x22c))/0xb*(parseInt(_0x1df03c(0x1cc))/0xc);if(_0x3a76f5===_0x43402e)break;else _0x3cfa0f['push'](_0x3cfa0f['shift']());}catch(_0x269bab){_0x3cfa0f['push'](_0x3cfa0f['shift']());}}}(_0x3790,0xa2b98));function _0x3790(){var _0x59d413=['assign','defIds','8zmAPJt','_stopPresenting','live-share-icon','call','_collabSession','pipe','_configService','defineProperty','_fetchOperations','concat','You\x27re\x20presenting\x20the\x20document','string','currentColor','offline','stringify','1467rSZLGq','_status','prototype','extend','data','OPERATION','default','HEADER_MENU','getValue','_startLiveShareCoordinator','set','getMemberID','get','unsubscribe','xlink:href','LIVESHARE_NEW_HOST','live-share.config','_commandDisposable','apply','8CwdyEb','_handleOffline','reverse','values','_beIdle','_config','dispose$','presenting','500604jbGfGv','_presenter','1225780Ormulx','init','univerjs-icon\x20univerjs-icon-','evenodd','http://www.w3.org/2000/svg','random','1656065HaSToQ','complete','_entities','forEach','send','FOLLOWING','toString','_unitID','pluginName','8995014OgARIJ','Stop\x20following','params','getConfig','stopPresenting','_handleOperation','fill','Present\x20this\x20document','map','startFollowing','operations','_liveShareService','LIVESHARE_OPERATION','memberID','_handleNewHost','_uiPartsService','_collabSessionService','parse','_status$','div','LIVESHARE_REQUEST_HOST','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','sessionStatus$','svg','IDLE','1em','entries','status$','UNIVER_LIVE_SHARE_PLUGIN','idSuffix','createInstance','shouldShareOperation','_univerInstanceService','_handleOnline','className','NOT_FOLLOWING','asObservable','none','You\x27re\x20not\x20following\x20the\x20presenter','dispose','1999254mlAPsI','type','defs','button','_init','getOwnPropertyDescriptor','_reporters','children','add','next','_mountLiveShare','setConfig','attrs','current','1556JgAaTM','not-following','colorChannel1','delete','trim','UniverIcon','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','hasOwnProperty','Start','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_sharedOperations','univer-size-4','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startFollowing','onStarting','idle','_handleTerminate','onCommandExecuted','displayName','sheet','NEW_CHANGESETS','url(#$1','subscribe','_commandService','getInitialStates','638HBoXSP','tryStartPresenting','PRESENTING','presenter','tag','has','icon','symbol','length','indexOf','includes','following','getUnitId','_injector','UNIVER_SHEET','getLiveShareCoordinator','stopFollowing','_startPresenting','replace','457038NBdXwm','substring','ONLINE','28XxeFsY','getOwnPropertySymbols','getTypeOfUnitAdded$','onRendered','executeCommand','disposeWithMe','use','OFFLINE','registerSharedOperation'];_0x3790=function(){return _0x59d413;};return _0x3790();}var q=Object[_0x5c1af0(0x1a9)],z=(_0x22617d,_0xda0257,_0xfd4c4e)=>_0xda0257 in _0x22617d?q(_0x22617d,_0xda0257,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xfd4c4e}):_0x22617d[_0xda0257]=_0xfd4c4e,d=(_0x5abeff,_0x44632c,_0x588471)=>z(_0x5abeff,typeof _0x44632c!=_0x5c1af0(0x233)?_0x44632c+'':_0x44632c,_0x588471);import{Disposable as _0x291a5b,toDisposable as _0x2812a4,IUniverInstanceService as _0x241362,Inject as _0x1e3a85,Injector as _0x879ceb,IConfigService as _0x1f2a68,ICommandService as _0x1fff86,RxDisposable as _0x54e5e8,UniverInstanceType as _0x382149,DisposableCollection as _0x333aae,CommandType as _0x293a8b,DependentOn as _0xd5a04a,Plugin as _0x4583b3,merge as _0x65e747,registerDependencies as _0x5cba6b,mergeOverrideWithDependencies as _0x1c65bf,touchDependencies as _0x2d3728}from'@univerjs/core';import{useDependency as _0x59239b,useObservable as _0x46f6ef,IUIPartsService as _0x547a7b,BuiltInUIPart as _0x384117,connectInjector as _0x58ec82}from'@univerjs/ui';import{jsx as _0x454c16,jsxs as _0x284b02,Fragment as _0x555249}from'react/jsx-runtime';import{Dropdown as _0x1dfcb2,clsx as _0x540767,Button as _0x59e674}from'@univerjs/design';import{forwardRef as _0x2a75a2,useRef as _0x17bf69,createElement as _0x1b3643,useState as _0x4806c5,useEffect as _0x3af20b}from'react';import{CollaborationEvent as _0x47e693,parseProtocolChangeset as _0x2135e9}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2d2bad,SessionStatus as _0x193da0,UniverCollaborationClientPlugin as _0x3b5e68}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3de08b,SetWorksheetActiveOperation as _0x12315d}from'@univerjs/sheets';import{BehaviorSubject as _0x2292ef,Subject as _0x2fa92c}from'rxjs';import{takeUntil as _0x57444b,throttleTime as _0x4e2264}from'rxjs/operators';import{SetZoomRatioOperation as _0x310893,SetScrollOperation as _0x43006c}from'@univerjs/sheets-ui';var c=function(){var _0x47f5bd=_0x5c1af0;return c=Object['assign']||function(_0x52710b){var _0x29abd4=_0x260a;for(var _0xda134a,_0x430c38=0x1,_0x1e8cd7=arguments['length'];_0x430c38<_0x1e8cd7;_0x430c38++){_0xda134a=arguments[_0x430c38];for(var _0x56581c in _0xda134a)Object[_0x29abd4(0x1b3)]['hasOwnProperty'][_0x29abd4(0x1a5)](_0xda134a,_0x56581c)&&(_0x52710b[_0x56581c]=_0xda134a[_0x56581c]);}return _0x52710b;},c[_0x47f5bd(0x1c3)](this,arguments);},Oe=function(_0x5c4522,_0x2e6dcb){var _0x53b265=_0x5c1af0,_0x529a06={};for(var _0x18bac2 in _0x5c4522)Object[_0x53b265(0x1b3)][_0x53b265(0x21a)]['call'](_0x5c4522,_0x18bac2)&&_0x2e6dcb[_0x53b265(0x235)](_0x18bac2)<0x0&&(_0x529a06[_0x18bac2]=_0x5c4522[_0x18bac2]);if(_0x5c4522!=null&&typeof Object[_0x53b265(0x243)]=='function'){for(var _0x1d4f71=0x0,_0x18bac2=Object[_0x53b265(0x243)](_0x5c4522);_0x1d4f71<_0x18bac2[_0x53b265(0x234)];_0x1d4f71++)_0x2e6dcb[_0x53b265(0x235)](_0x18bac2[_0x1d4f71])<0x0&&Object[_0x53b265(0x1b3)]['propertyIsEnumerable'][_0x53b265(0x1a5)](_0x5c4522,_0x18bac2[_0x1d4f71])&&(_0x529a06[_0x18bac2[_0x1d4f71]]=_0x5c4522[_0x18bac2[_0x1d4f71]]);}return _0x529a06;},W=_0x2a75a2(function(_0x3cc6a6,_0x316bc4){var _0x2d5aa9=_0x5c1af0,_0x3b5bc5=_0x3cc6a6[_0x2d5aa9(0x232)],_0x423181=_0x3cc6a6['id'],_0x13aedb=_0x3cc6a6[_0x2d5aa9(0x1ff)],_0x49138e=_0x3cc6a6[_0x2d5aa9(0x1b4)],_0x26f528=Oe(_0x3cc6a6,[_0x2d5aa9(0x232),'id',_0x2d5aa9(0x1ff),_0x2d5aa9(0x1b4)]),_0x5c94bf=_0x2d5aa9(0x1d0)[_0x2d5aa9(0x1ab)](_0x423181,'\x20')[_0x2d5aa9(0x1ab)](_0x13aedb||'')[_0x2d5aa9(0x217)](),_0x3e0ec9=_0x17bf69('_'[_0x2d5aa9(0x1ab)](Ne()));return Y(_0x3b5bc5,''[_0x2d5aa9(0x1ab)](_0x423181),{'defIds':_0x3b5bc5[_0x2d5aa9(0x1a1)],'idSuffix':_0x3e0ec9[_0x2d5aa9(0x212)]},c({'ref':_0x316bc4,'className':_0x5c94bf},_0x26f528),_0x49138e);});function Y(_0x31d969,_0x374bec,_0x285f25,_0x36534c,_0x4899a5){var _0x22c35e=_0x5c1af0;return _0x1b3643(_0x31d969[_0x22c35e(0x230)],c(c({'key':_0x374bec},Ee(_0x31d969,_0x285f25,_0x4899a5)),_0x36534c),(we(_0x31d969,_0x285f25)[_0x22c35e(0x20c)]||[])[_0x22c35e(0x1e5)](function(_0x2ec15b,_0x392181){var _0x26a155=_0x22c35e;return Y(_0x2ec15b,''[_0x26a155(0x1ab)](_0x374bec,'-')[_0x26a155(0x1ab)](_0x31d969[_0x26a155(0x230)],'-')[_0x26a155(0x1ab)](_0x392181),_0x285f25,void 0x0,_0x4899a5);}));}function Ee(_0x1f943b,_0x769b46,_0x3162de){var _0x2e819e=_0x5c1af0,_0x47fa1e=c({},_0x1f943b[_0x2e819e(0x211)]);_0x3162de!=null&&_0x3162de[_0x2e819e(0x215)]&&_0x47fa1e[_0x2e819e(0x1e3)]==='colorChannel1'&&(_0x47fa1e[_0x2e819e(0x1e3)]=_0x3162de[_0x2e819e(0x215)]),_0x1f943b[_0x2e819e(0x230)]==='mask'&&_0x47fa1e['id']&&(_0x47fa1e['id']=_0x47fa1e['id']+_0x769b46[_0x2e819e(0x1fa)]),Object[_0x2e819e(0x1f7)](_0x47fa1e)[_0x2e819e(0x1d7)](function(_0x3ea738){var _0x5729b5=_0x2e819e,_0x50739a=_0x3ea738[0x0],_0x216d02=_0x3ea738[0x1];_0x50739a==='mask'&&typeof _0x216d02==_0x5729b5(0x1ad)&&(_0x47fa1e[_0x50739a]=_0x216d02[_0x5729b5(0x23e)](/url\(#(.*)\)/,_0x5729b5(0x228)['concat'](_0x769b46['idSuffix'],')')));});var _0x4a2239=_0x769b46[_0x2e819e(0x1a1)];return!_0x4a2239||_0x4a2239['length']===0x0||(_0x1f943b[_0x2e819e(0x230)]===_0x2e819e(0x19d)&&_0x47fa1e['xlink:href']&&(_0x47fa1e[_0x2e819e(0x1bf)]=_0x47fa1e['xlink:href']+_0x769b46[_0x2e819e(0x1fa)]),Object['entries'](_0x47fa1e)[_0x2e819e(0x1d7)](function(_0x405770){var _0x402704=_0x2e819e,_0x7f1787=_0x405770[0x0],_0x26688b=_0x405770[0x1];typeof _0x26688b==_0x402704(0x1ad)&&(_0x47fa1e[_0x7f1787]=_0x26688b[_0x402704(0x23e)](/url\(#(.*)\)/,_0x402704(0x228)[_0x402704(0x1ab)](_0x769b46[_0x402704(0x1fa)],')')));})),_0x47fa1e;}function we(_0x519880,_0x5dede5){var _0x1d373a=_0x5c1af0,_0x3c8b8d,_0x2ae27a=_0x5dede5[_0x1d373a(0x1a1)];return!_0x2ae27a||_0x2ae27a['length']===0x0?_0x519880:_0x519880[_0x1d373a(0x230)]===_0x1d373a(0x207)&&(!((_0x3c8b8d=_0x519880['children'])===null||_0x3c8b8d===void 0x0)&&_0x3c8b8d[_0x1d373a(0x234)])?c(c({},_0x519880),{'children':_0x519880[_0x1d373a(0x20c)]['map'](function(_0x1d5387){var _0x2cdbe4=_0x1d373a;return typeof _0x1d5387[_0x2cdbe4(0x211)]['id']==_0x2cdbe4(0x1ad)&&_0x2ae27a&&_0x2ae27a[_0x2cdbe4(0x236)](_0x1d5387[_0x2cdbe4(0x211)]['id'])?c(c({},_0x1d5387),{'attrs':c(c({},_0x1d5387['attrs']),{'id':_0x1d5387[_0x2cdbe4(0x211)]['id']+_0x5dede5[_0x2cdbe4(0x1fa)]})}):_0x1d5387;})}):_0x519880;}function Ne(){var _0x449258=_0x5c1af0;return Math[_0x449258(0x1d3)]()[_0x449258(0x1da)](0x24)[_0x449258(0x240)](0x2,0x8);}W[_0x5c1af0(0x225)]=_0x5c1af0(0x218);var Ce={'tag':_0x5c1af0(0x1f4),'attrs':{'xmlns':_0x5c1af0(0x1d2),'fill':_0x5c1af0(0x202),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x5c1af0(0x1f6)},'children':[{'tag':'path','attrs':{'fill':_0x5c1af0(0x1ae),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x5c1af0(0x1ae),'d':_0x5c1af0(0x21c),'fillRule':_0x5c1af0(0x1d1),'clipRule':_0x5c1af0(0x1d1)}}]},B=_0x2a75a2(function(_0xd7d7e6,_0x207d60){var _0x2dea71=_0x5c1af0;return _0x1b3643(W,Object[_0x2dea71(0x1a0)]({},_0xd7d7e6,{'id':_0x2dea71(0x1a4),'ref':_0x207d60,'icon':Ce}));});B[_0x5c1af0(0x225)]='LiveShareIcon';class L extends _0x291a5b{constructor(){var _0x2a5374=_0x5c1af0;super(...arguments),d(this,_0x2a5374(0x21d),new Set()),d(this,_0x2a5374(0x20b),new Set());}[_0x5c1af0(0x19f)](_0x422e1a){var _0x2041e3=_0x5c1af0;return this['_sharedOperations'][_0x2041e3(0x20d)](_0x422e1a),_0x2812a4(()=>this['_sharedOperations'][_0x2041e3(0x216)](_0x422e1a));}['registerInitialStateReporter'](_0xe566da){var _0x20b236=_0x5c1af0;return this[_0x20b236(0x20b)][_0x20b236(0x20d)](_0xe566da),_0x2812a4(()=>this[_0x20b236(0x20b)][_0x20b236(0x216)](_0xe566da));}[_0x5c1af0(0x1fc)](_0x1120e1){var _0x5e95d4=_0x5c1af0;return this[_0x5e95d4(0x21d)][_0x5e95d4(0x231)](_0x1120e1);}[_0x5c1af0(0x22b)](_0x300212){var _0x428669=_0x5c1af0;return Array['from'](this[_0x428669(0x20b)])[_0x428669(0x1e5)](_0x188b98=>_0x188b98(_0x300212));}}var De=Object[_0x5c1af0(0x20a)],Z=(_0x3b8a05,_0x2bf667,_0x3316a1,_0x2a175c)=>{for(var _0x2350c2=_0x2a175c>0x1?void 0x0:_0x2a175c?De(_0x2bf667,_0x3316a1):_0x2bf667,_0x1a8c70=_0x3b8a05['length']-0x1,_0x5b7a86;_0x1a8c70>=0x0;_0x1a8c70--)(_0x5b7a86=_0x3b8a05[_0x1a8c70])&&(_0x2350c2=_0x5b7a86(_0x2350c2)||_0x2350c2);return _0x2350c2;},f=(_0x44f69a,_0xa9fcce)=>(_0x506ab2,_0x857bdb)=>_0xa9fcce(_0x506ab2,_0x857bdb,_0x44f69a);function _0x260a(_0x25bdac,_0x4a1c22){var _0x379013=_0x3790();return _0x260a=function(_0x260ac5,_0x4b4fe9){_0x260ac5=_0x260ac5-0x199;var _0x9ef2a6=_0x379013[_0x260ac5];return _0x9ef2a6;},_0x260a(_0x25bdac,_0x4a1c22);}let m=class extends _0x54e5e8{constructor(_0x1d0ebc,_0x4b07cf,_0x244bc0){var _0x33bece=_0x5c1af0;super(),d(this,_0x33bece(0x1d6),new Map()),(this[_0x33bece(0x1fd)]=_0x1d0ebc,this['_injector']=_0x4b07cf,this[_0x33bece(0x1ed)]=_0x244bc0,this['_init']());}async[_0x5c1af0(0x23b)](_0x447b1e){var _0x73ad27=_0x5c1af0;return this[_0x73ad27(0x1d6)]['has'](_0x447b1e)||await this[_0x73ad27(0x1ba)](_0x447b1e),this[_0x73ad27(0x1d6)][_0x73ad27(0x1bd)](_0x447b1e);}[_0x5c1af0(0x209)](){var _0x2db073=_0x5c1af0;this[_0x2db073(0x1fd)][_0x2db073(0x199)](_0x382149[_0x2db073(0x23a)])[_0x2db073(0x1a7)](_0x57444b(this[_0x2db073(0x1ca)]))[_0x2db073(0x229)](async _0x233c99=>{var _0x182c34=_0x2db073;const _0x1b70bc=_0x233c99[_0x182c34(0x238)]();this[_0x182c34(0x1d6)]['has'](_0x1b70bc)||this['_startLiveShareCoordinator'](_0x1b70bc);}),this[_0x2db073(0x1fd)]['getTypeOfUnitDisposed$'](_0x382149[_0x2db073(0x23a)])[_0x2db073(0x1a7)](_0x57444b(this[_0x2db073(0x1ca)]))[_0x2db073(0x229)](_0x5404bc=>{var _0x457ad6=_0x2db073;const _0x11955d=_0x5404bc[_0x457ad6(0x238)](),_0x5d6033=this[_0x457ad6(0x1d6)][_0x457ad6(0x1bd)](_0x11955d);_0x5d6033==null||_0x5d6033[_0x457ad6(0x204)]();});}async[_0x5c1af0(0x1ba)](_0x3dbd3f){var _0x247fb4=_0x5c1af0;const _0x32916c=await this[_0x247fb4(0x1ed)]['requireSession'](_0x3dbd3f),_0x43e81d=this['_injector'][_0x247fb4(0x1fb)](C,_0x3dbd3f,_0x32916c);return _0x43e81d[_0x247fb4(0x1cf)](),this[_0x247fb4(0x1d6)][_0x247fb4(0x1bb)](_0x3dbd3f,_0x43e81d),_0x43e81d;}};m=Z([f(0x0,_0x241362),f(0x1,_0x1e3a85(_0x879ceb)),f(0x2,_0x1e3a85(_0x2d2bad))],m);var h=(_0x486855=>(_0x486855[_0x5c1af0(0x19e)]=_0x5c1af0(0x1af),_0x486855[_0x5c1af0(0x1f5)]=_0x5c1af0(0x222),_0x486855[_0x5c1af0(0x1d9)]=_0x5c1af0(0x237),_0x486855[_0x5c1af0(0x200)]=_0x5c1af0(0x214),_0x486855[_0x5c1af0(0x22e)]=_0x5c1af0(0x1cb),_0x486855))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x54e5e8{constructor(_0x49f75f,_0x3937cc,_0x55fa75,_0x573a0e,_0x26ee4f){var _0x551d88=_0x5c1af0;super(),d(this,_0x551d88(0x1ef),new _0x2292ef('idle')),d(this,_0x551d88(0x1f8),this[_0x551d88(0x1ef)][_0x551d88(0x201)]()),d(this,_0x551d88(0x209),!0x1),d(this,_0x551d88(0x1c2),null),d(this,'_presenter',null),(this[_0x551d88(0x1db)]=_0x49f75f,this[_0x551d88(0x1a6)]=_0x3937cc,this[_0x551d88(0x1a8)]=_0x55fa75,this[_0x551d88(0x1e8)]=_0x573a0e,this[_0x551d88(0x22a)]=_0x26ee4f);}get[_0x5c1af0(0x1b2)](){var _0x5a19d2=_0x5c1af0;return this['_status$'][_0x5a19d2(0x1b9)]();}[_0x5c1af0(0x204)](){var _0x57a954=_0x5c1af0,_0x2fb883;(_0x2fb883=this[_0x57a954(0x1c2)])==null||_0x2fb883['dispose'](),this[_0x57a954(0x1ef)][_0x57a954(0x20e)](_0x57a954(0x222)),this[_0x57a954(0x1ef)][_0x57a954(0x1d5)]();}[_0x5c1af0(0x1cf)](){var _0x61a885=_0x5c1af0;this['_init']||(this[_0x61a885(0x209)]=!0x0,this[_0x61a885(0x1a6)][_0x61a885(0x1f3)][_0x61a885(0x1a7)](_0x57444b(this[_0x61a885(0x1ca)]))[_0x61a885(0x229)](_0x4a85f2=>{var _0x206336=_0x61a885;switch(_0x4a85f2){case _0x193da0['OFFLINE']:this[_0x206336(0x1c5)]();break;case _0x193da0[_0x206336(0x241)]:this['_handleOnline']();break;}}),this['_collabSession']['event$'][_0x61a885(0x1a7)](_0x57444b(this[_0x61a885(0x1ca)]))[_0x61a885(0x229)](_0x2fb90a=>{var _0x5af06f=_0x61a885;const {eventID:_0xa50758}=_0x2fb90a;switch(_0xa50758){case _0x47e693[_0x5af06f(0x1c0)]:this[_0x5af06f(0x1eb)](_0x2fb90a);break;case _0x47e693[_0x5af06f(0x1e9)]:this[_0x5af06f(0x1e2)](_0x2fb90a);break;case _0x47e693['LIVESHARE_TERMINATE']:this[_0x5af06f(0x223)]();break;case _0x47e693[_0x5af06f(0x227)]:this['_handleNewChangeSets'](_0x2fb90a);break;}}));}[_0x5c1af0(0x22d)](){var _0xde2eee=_0x5c1af0;this[_0xde2eee(0x1a6)][_0xde2eee(0x1d8)]({'eventID':_0x47e693[_0xde2eee(0x1f1)],'data':{'unitID':this[_0xde2eee(0x1db)],'userID':this['_collabSession'][_0xde2eee(0x1bc)]()}},this[_0xde2eee(0x1db)]);}[_0x5c1af0(0x1e1)](){var _0x579d45=_0x5c1af0;this['_status']==='presenting'&&(this[_0x579d45(0x1ef)]['next']('idle'),this[_0x579d45(0x1a6)][_0x579d45(0x1d8)]({'eventID':_0x47e693['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x579d45(0x1db)]}},this[_0x579d45(0x1db)]));}[_0x5c1af0(0x1e6)](){var _0x2ded90=_0x5c1af0;this[_0x2ded90(0x1b2)]===_0x2ded90(0x214)&&(this['_status$'][_0x2ded90(0x20e)](_0x2ded90(0x237)),this[_0x2ded90(0x220)]());}[_0x5c1af0(0x23c)](){var _0x412498=_0x5c1af0;this[_0x412498(0x1b2)]===_0x412498(0x237)&&this['_stopFollowing']();}[_0x5c1af0(0x1eb)](_0x6d8206){var _0x2e12ed=_0x5c1af0;const {presenter:_0x56de28}=_0x6d8206['data'],_0x18ba30=this[_0x2e12ed(0x1a6)]['getMemberID']();this[_0x2e12ed(0x1cd)]=_0x56de28,_0x56de28===_0x18ba30?(this['_stopFollowing'](),this[_0x2e12ed(0x23d)]()):this[_0x2e12ed(0x1b2)]!==_0x2e12ed(0x214)&&(this[_0x2e12ed(0x1a3)](),this[_0x2e12ed(0x220)]());}[_0x5c1af0(0x1aa)](){var _0x3f6c79=_0x5c1af0;const _0x4e26c2={'eventID':_0x47e693['LIVESHARE_FETCH_OPERATIONS']};this[_0x3f6c79(0x1a6)][_0x3f6c79(0x1d8)](_0x4e26c2,this[_0x3f6c79(0x1db)]);}[_0x5c1af0(0x223)](){var _0x2c2368=_0x5c1af0;this[_0x2c2368(0x1cd)]=null,this[_0x2c2368(0x1b2)]!==_0x2c2368(0x1cb)&&this[_0x2c2368(0x1c8)]();}['_handleNewChangeSets'](_0x2fbaec){var _0x42b662=_0x5c1af0;if(this['_status']===_0x42b662(0x237)&&this[_0x42b662(0x1cd)]===_0x2fbaec['data'][_0x42b662(0x1ea)]){const _0x50306e=_0x2135e9(_0x2fbaec[_0x42b662(0x1b5)])['mutations'][_0x42b662(0x1c6)]()['find'](_0x5024a3=>_0x5024a3['id']===_0x3de08b['id']);if(_0x50306e){const _0x24230f=_0x50306e[_0x42b662(0x1df)]['unitId'],_0x3c527b=_0x50306e['params'][_0x42b662(0x226)]['id'];setTimeout(()=>{var _0x31993c=_0x42b662;this[_0x31993c(0x22a)][_0x31993c(0x19b)](_0x12315d['id'],{'unitId':_0x24230f,'subUnitId':_0x3c527b},{'fromCollab':!0x0});});}}}[_0x5c1af0(0x23d)](){var _0x4321bb=_0x5c1af0;this[_0x4321bb(0x1ef)]['next'](_0x4321bb(0x1cb));const _0x43df78=new Map(),_0x15e671=this[_0x4321bb(0x1c2)]=new _0x333aae();_0x15e671[_0x4321bb(0x20d)](_0x2812a4(()=>{var _0x4b136e=_0x4321bb;_0x43df78[_0x4b136e(0x1d7)](_0x5910ae=>_0x5910ae[_0x4b136e(0x1d5)]()),_0x43df78['clear']();})),_0x15e671[_0x4321bb(0x20d)](this[_0x4321bb(0x22a)][_0x4321bb(0x224)](_0x31d061=>{var _0x4de431=_0x4321bb,_0x1c47be;if(_0x31d061[_0x4de431(0x206)]!==_0x293a8b[_0x4de431(0x1b6)]||!this[_0x4de431(0x1e8)][_0x4de431(0x1fc)](_0x31d061['id']))return;const {id:_0x282d6e}=_0x31d061;let _0x2318bd;_0x43df78[_0x4de431(0x231)](_0x282d6e)?_0x2318bd=_0x43df78[_0x4de431(0x1bd)](_0x282d6e):(_0x2318bd=new _0x2fa92c(),_0x43df78['set'](_0x282d6e,_0x2318bd),_0x2318bd[_0x4de431(0x1a7)](_0x4e2264((_0x1c47be=this[_0x4de431(0x1a8)][_0x4de431(0x1e0)](xe))!=null?_0x1c47be:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4de431(0x229)](_0x56d0df=>{var _0x8a9f88=_0x4de431;this[_0x8a9f88(0x1a6)][_0x8a9f88(0x1d8)]({'eventID':_0x47e693[_0x8a9f88(0x1e9)],'data':{'unitID':this[_0x8a9f88(0x1db)],'operations':{[_0x56d0df['id']]:{'id':_0x56d0df['id'],'params':JSON[_0x8a9f88(0x1b0)](_0x56d0df[_0x8a9f88(0x1df)])}}}},this[_0x8a9f88(0x1db)]);})),_0x2318bd['next'](_0x31d061);})),this[_0x4321bb(0x1e8)][_0x4321bb(0x22b)](this['_unitID'])['forEach'](_0x12a39f=>this[_0x4321bb(0x1a6)][_0x4321bb(0x1d8)]({'eventID':_0x47e693[_0x4321bb(0x1e9)],'data':{'unitID':this[_0x4321bb(0x1db)],'operations':{[_0x12a39f['id']]:{'id':_0x12a39f['id'],'params':JSON[_0x4321bb(0x1b0)](_0x12a39f[_0x4321bb(0x1df)])}}}},this[_0x4321bb(0x1db)]));}['_stopPresenting'](){var _0xd6833e=_0x5c1af0,_0x5890ca;this[_0xd6833e(0x1ef)][_0xd6833e(0x20e)]('idle'),(_0x5890ca=this[_0xd6833e(0x1c2)])==null||_0x5890ca[_0xd6833e(0x204)](),this[_0xd6833e(0x1c2)]=null;}[_0x5c1af0(0x220)](){var _0x576e3e=_0x5c1af0,_0x418c59;(_0x418c59=this[_0x576e3e(0x1c2)])==null||_0x418c59[_0x576e3e(0x204)](),this['_status$'][_0x576e3e(0x20e)](_0x576e3e(0x237));}[_0x5c1af0(0x1c8)](){var _0x26baea=_0x5c1af0,_0x35c3de;this[_0x26baea(0x1ef)][_0x26baea(0x20e)](_0x26baea(0x222)),(_0x35c3de=this[_0x26baea(0x1c2)])==null||_0x35c3de['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x23751d=_0x5c1af0,_0x58e17d;this[_0x23751d(0x1ef)]['next'](_0x23751d(0x214)),(_0x58e17d=this[_0x23751d(0x1c2)])==null||_0x58e17d['dispose']();}[_0x5c1af0(0x1e2)](_0x149b59){var _0x45bf47=_0x5c1af0;if([_0x45bf47(0x1cb),_0x45bf47(0x214),_0x45bf47(0x1af)][_0x45bf47(0x236)](this['_status'])||!_0x149b59['data'][_0x45bf47(0x22f)]||_0x149b59[_0x45bf47(0x1b5)]['presenter']===this[_0x45bf47(0x1a6)][_0x45bf47(0x1bc)]())return;this['_status']===_0x45bf47(0x222)&&this[_0x45bf47(0x220)]();const _0x5b6621=_0x149b59[_0x45bf47(0x1b5)][_0x45bf47(0x1e7)];Object[_0x45bf47(0x1c7)](_0x5b6621)[_0x45bf47(0x1d7)](_0x3590c5=>{var _0x4b7087=_0x45bf47;this[_0x4b7087(0x22a)]['executeCommand'](_0x3590c5['id'],_0x3590c5[_0x4b7087(0x1df)]?JSON[_0x4b7087(0x1ee)](_0x3590c5[_0x4b7087(0x1df)]):null,{'fromCollab':!0x0});});}[_0x5c1af0(0x1c5)](){var _0x100271=_0x5c1af0,_0x531048;this[_0x100271(0x1ef)]['next'](_0x100271(0x1af)),(_0x531048=this[_0x100271(0x1c2)])==null||_0x531048['dispose']();}[_0x5c1af0(0x1fe)](){var _0x45ccaa=_0x5c1af0;this['_status$']['next'](_0x45ccaa(0x222)),this['_fetchOperations']();}};C=Z([f(0x2,_0x1f2a68),f(0x3,_0x1e3a85(L)),f(0x4,_0x1fff86)],C);function ye(){var _0x11ad5a=_0x5c1af0;const _0x404a38=_0x59239b(m),_0x3e2090=_0x59239b(_0x241362),_0x136a06=_0x46f6ef(()=>_0x3e2090['getCurrentTypeOfUnit$'](_0x382149[_0x11ad5a(0x23a)]),void 0x0,!0x1,[]),[_0x49924c,_0x2171ca]=_0x4806c5(null),[_0x138be6,_0x121d0b]=_0x4806c5(h['IDLE']),_0x4e6c60=_0x17bf69(null);return _0x3af20b(()=>(_0x136a06&&_0x404a38[_0x11ad5a(0x23b)](_0x136a06[_0x11ad5a(0x238)]())['then'](_0x4def81=>{var _0x509974=_0x11ad5a;_0x2171ca(_0x4def81),_0x4e6c60[_0x509974(0x212)]=_0x4def81[_0x509974(0x1f8)][_0x509974(0x229)](_0x28b35a=>{_0x121d0b(_0x28b35a);});}),()=>{var _0xdde68b=_0x11ad5a,_0x4d26e0;(_0x4d26e0=_0x4e6c60[_0xdde68b(0x212)])==null||_0x4d26e0[_0xdde68b(0x1be)](),_0x4e6c60['current']=null;}),[_0x136a06,_0x404a38]),_0x49924c?_0x454c16(_0x1dfcb2,{'align':'end','disabled':_0x138be6===h[_0x11ad5a(0x19e)],'className':_0x11ad5a(0x1f2),'overlay':_0x454c16(Re,{'status':_0x138be6,'coordinator':_0x49924c}),'children':_0x454c16('button',{'className':_0x540767(_0x11ad5a(0x219),{'univer-cursor-not-allowed':_0x138be6===h[_0x11ad5a(0x19e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x138be6!==h[_0x11ad5a(0x19e)]}),'type':_0x11ad5a(0x208),'children':_0x454c16(B,{'className':_0x11ad5a(0x21e)})})}):null;}function Re(_0x1cf24e){var _0x4671db=_0x5c1af0;const {status:_0x274d5d,coordinator:_0x5c86e}=_0x1cf24e;switch(_0x274d5d){case h[_0x4671db(0x1f5)]:return _0x454c16(Pe,{'coordinator':_0x5c86e});case h[_0x4671db(0x1d9)]:return _0x454c16(Ae,{'coordinator':_0x5c86e});case h[_0x4671db(0x200)]:return _0x454c16(Te,{'coordinator':_0x5c86e});case h[_0x4671db(0x19e)]:return _0x454c16(Fe,{});case h['PRESENTING']:return _0x454c16($e,{'coordinator':_0x5c86e});default:return null;}}function Pe(_0x1197bb){var _0x5608f8=_0x5c1af0;const {coordinator:_0x3dc496}=_0x1197bb;return _0x284b02(_0x555249,{'children':[_0x454c16(_0x5608f8(0x1f0),{'className':_0x5608f8(0x21f),'children':_0x5608f8(0x1e4)}),_0x454c16(_0x59e674,{'onClick':()=>_0x3dc496[_0x5608f8(0x22d)](),'children':_0x5608f8(0x21b)})]});}function Ae(_0x453045){var _0x760dfd=_0x5c1af0;const {coordinator:_0x12e292}=_0x453045;return _0x284b02(_0x555249,{'children':[_0x454c16(_0x760dfd(0x1f0),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x454c16(_0x59e674,{'onClick':()=>_0x12e292[_0x760dfd(0x23c)](),'children':_0x760dfd(0x1de)})]});}function Te(_0x9bbeee){var _0x4a9c5a=_0x5c1af0;const {coordinator:_0x51b8e6}=_0x9bbeee;return _0x284b02(_0x555249,{'children':[_0x454c16(_0x4a9c5a(0x1f0),{'className':_0x4a9c5a(0x21f),'children':_0x4a9c5a(0x203)}),_0x454c16(_0x59e674,{'variant':'text','onClick':()=>_0x51b8e6[_0x4a9c5a(0x1e6)](),'children':'Start\x20following'})]});}function $e(_0x38e782){var _0x479f93=_0x5c1af0;const {coordinator:_0x36e11e}=_0x38e782;return _0x284b02(_0x555249,{'children':[_0x454c16(_0x479f93(0x1f0),{'className':_0x479f93(0x21f),'children':_0x479f93(0x1ac)}),_0x454c16(_0x59e674,{'variant':_0x479f93(0x1b7),'onClick':()=>_0x36e11e[_0x479f93(0x1e1)](),'children':'Stop\x20presenting'})]});}function Fe(){return _0x454c16(_0x555249,{'children':'You\x27are\x20offline.'});}var He=Object['getOwnPropertyDescriptor'],je=(_0x4eebf5,_0xfdc8d5,_0x4ea978,_0x4fbd82)=>{var _0x118478=_0x5c1af0;for(var _0x53087d=_0x4fbd82>0x1?void 0x0:_0x4fbd82?He(_0xfdc8d5,_0x4ea978):_0xfdc8d5,_0x2bef20=_0x4eebf5[_0x118478(0x234)]-0x1,_0x13f1bf;_0x2bef20>=0x0;_0x2bef20--)(_0x13f1bf=_0x4eebf5[_0x2bef20])&&(_0x53087d=_0x13f1bf(_0x53087d)||_0x53087d);return _0x53087d;},T=(_0x300955,_0x49829d)=>(_0x2f64ab,_0x577851)=>_0x49829d(_0x2f64ab,_0x577851,_0x300955);let I=class extends _0x291a5b{constructor(_0x2a00b0,_0x36b413){var _0x53b34b=_0x5c1af0;super(),this[_0x53b34b(0x239)]=_0x2a00b0,this['_uiPartsService']=_0x36b413,this[_0x53b34b(0x20f)]();}[_0x5c1af0(0x20f)](){var _0x2ab27d=_0x5c1af0;this[_0x2ab27d(0x19c)](this[_0x2ab27d(0x1ec)]['registerComponent'](_0x384117[_0x2ab27d(0x1b8)],()=>_0x58ec82(ye,this['_injector'])));}};I=je([T(0x0,_0x1e3a85(_0x879ceb)),T(0x1,_0x547a7b)],I);const Ue=_0x5c1af0(0x1c1),$={};var Ve=Object[_0x5c1af0(0x20a)],Me=(_0x3e119d,_0x2f39d7,_0x223ca8,_0x2c3e0a)=>{for(var _0xf7729b=_0x2c3e0a>0x1?void 0x0:_0x2c3e0a?Ve(_0x2f39d7,_0x223ca8):_0x2f39d7,_0x3a24d6=_0x3e119d['length']-0x1,_0x3a986a;_0x3a24d6>=0x0;_0x3a24d6--)(_0x3a986a=_0x3e119d[_0x3a24d6])&&(_0xf7729b=_0x3a986a(_0xf7729b)||_0xf7729b);return _0xf7729b;},ke=(_0xb66a94,_0x5a49c8)=>(_0x1506de,_0x5a9eb9)=>_0x5a49c8(_0x1506de,_0x5a9eb9,_0xb66a94);let b=class extends _0x291a5b{constructor(_0x51f96e){var _0x2c368a=_0x5c1af0;super(),this[_0x2c368a(0x1e8)]=_0x51f96e,this['_init']();}['_init'](){var _0x582ed5=_0x5c1af0;[_0x310893['id'],_0x43006c['id'],_0x12315d['id']][_0x582ed5(0x1d7)](_0x20850d=>{var _0x3d2bfd=_0x582ed5;this[_0x3d2bfd(0x19c)](this[_0x3d2bfd(0x1e8)]['registerSharedOperation'](_0x20850d));});}};b=Me([ke(0x0,_0x1e3a85(L))],b);var Ge=Object[_0x5c1af0(0x1a9)],We=Object[_0x5c1af0(0x20a)],Ye=(_0x294aaf,_0x3e6fe0,_0x24ed8a)=>_0x3e6fe0 in _0x294aaf?Ge(_0x294aaf,_0x3e6fe0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24ed8a}):_0x294aaf[_0x3e6fe0]=_0x24ed8a,Be=(_0x1e005d,_0x677e16,_0xd3dd11,_0x340237)=>{var _0x3666e5=_0x5c1af0;for(var _0x28e8a8=_0x340237>0x1?void 0x0:_0x340237?We(_0x677e16,_0xd3dd11):_0x677e16,_0x263e43=_0x1e005d[_0x3666e5(0x234)]-0x1,_0x4ca19f;_0x263e43>=0x0;_0x263e43--)(_0x4ca19f=_0x1e005d[_0x263e43])&&(_0x28e8a8=_0x4ca19f(_0x28e8a8)||_0x28e8a8);return _0x28e8a8;},F=(_0x1183d7,_0xa85738)=>(_0x573737,_0x3f4d3d)=>_0xa85738(_0x573737,_0x3f4d3d,_0x1183d7),J=(_0x2e71c8,_0x209785,_0x33ba03)=>Ye(_0x2e71c8,typeof _0x209785!=_0x5c1af0(0x233)?_0x209785+'':_0x209785,_0x33ba03);const Ze=_0x5c1af0(0x1f9);let O=class extends _0x4583b3{constructor(_0x1fe09f=$,_0x5a148,_0x5ba94d){var _0x3d8285=_0x5c1af0;super(),this[_0x3d8285(0x1c9)]=_0x1fe09f,this[_0x3d8285(0x239)]=_0x5a148,this[_0x3d8285(0x1a8)]=_0x5ba94d;const {..._0x3eb587}=_0x65e747({},$,this[_0x3d8285(0x1c9)]);this[_0x3d8285(0x1a8)][_0x3d8285(0x210)](Ue,_0x3eb587);}[_0x5c1af0(0x221)](){var _0x1f7381=_0x5c1af0;_0x5cba6b(this[_0x1f7381(0x239)],_0x1c65bf([[L],[m],[b],[I]],this[_0x1f7381(0x1c9)]['override'])),_0x2d3728(this[_0x1f7381(0x239)],[[b]]);}[_0x5c1af0(0x19a)](){var _0x28fa4d=_0x5c1af0;_0x2d3728(this[_0x28fa4d(0x239)],[[I]]);}};J(O,_0x5c1af0(0x206),_0x382149['UNIVER_UNKNOWN']),J(O,_0x5c1af0(0x1dc),Ze),O=Be([_0xd5a04a(_0x3b5e68),F(0x1,_0x1e3a85(_0x879ceb)),F(0x2,_0x1f2a68)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x38bd(){var _0x5a0406=['propertyIsEnumerable','idSuffix','DesktopLiveShareController','InsertSheetMutation','UniverUi','Inject','ONLINE','toStringTag','params','HEADER_MENU','1em','2503627PJoEXv','univerjs-icon\x20univerjs-icon-','DisposableCollection','following','send','useObservable','_startFollowing','LIVESHARE_NEW_HOST','defineProperty','LiveShareIcon','You\x27re\x20following\x20the\x20presenter','useRef','presenter','IUniverInstanceService','evenodd','currentColor','default','toDisposable','offline','IDLE','data','LIVESHARE_TERMINATE','concat','colorChannel1','createElement','complete','dispose','50841624jesVaJ','PRESENTING','@univerjs/sheets','setConfig','http://www.w3.org/2000/svg','getOwnPropertyDescriptor','LiveShareStatus','LiveShare','indexOf','react/jsx-runtime','_unitID','current','substring','You\x27re\x20presenting\x20the\x20document','DependentOn','useEffect','UniverProCollaborationClient','Plugin','function','xlink:href','event$','IUIPartsService','BuiltInUIPart','tag','add','mask','registerSharedOperation','_configService','LiveShareService','_liveShareService','React','from','find','assign','OFFLINE','clsx','_collabSessionService','SetZoomRatioOperation','2rCuiqS','throttleTime','_collabSession','icon','_startPresenting','@univerjs/core','_sharedOperations','_status$','_fetchOperations','symbol','pluginName','subscribe','operators','type','9zODHkG','stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverProLiveShare','getTypeOfUnitDisposed$','div','attrs','extend','not-following','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getOwnPropertySymbols','UniverLiveSharePlugin','pipe','LiveShareController','LiveShareCoordinator','Fragment','Subject','reverse','dispose$','stopPresenting','11bmnsod','Module','RxDisposable','_handleOnline','4ZJkEaV','idle','jsxs','connectInjector','has','Disposable','delete','_stopFollowing','_handleTerminate','requireSession','Start\x20following','@univerjs/ui','0\x200\x2017\x2017','stringify','_commandDisposable','_univerInstanceService','BehaviorSubject','forEach','UniverSheetsUi','250156TQSvgT','3852265pOyzmc','react','none','displayName','includes','_injector','_reporters','_mountLiveShare','startFollowing','UniverProCollaboration','ICommandService','toString','onCommandExecuted','_presenter','text','forwardRef','_beIdle','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','NOT_FOLLOWING','UNIVER_SHEET','asObservable','LIVESHARE_OPERATION','prototype','IConfigService','svg','amd','takeUntil','_config','path','rxjs','getConfig','getMemberID','next','createInstance','CommandType','registerInitialStateReporter','UNIVER_LIVE_SHARE_PLUGIN','trim','Button','then','CollaborationEvent','map','call','clear','entries','SessionStatus','merge','getTypeOfUnitAdded$','UniverInstanceType','string','3336730JMyZBn','@univerjs-pro/collaboration-client','hasOwnProperty','sheet','UniverIcon','7605336CjHLNy','useState','get','replace','object','status$','init','values','className','unitId','UniverSheets','live-share.config','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','rxjs/operators','You\x27re\x20not\x20following\x20the\x20presenter','jsx','6VzYWVz','@univerjs-pro/collaboration','getUnitId','OPERATION','LIVESHARE_REQUEST_HOST','_uiPartsService','exports','presenting','CollaborationSessionService','onRendered','UNIVER_UNKNOWN','live-share-icon','univer-size-4','_commandService','length','1774959YzPevq','parseProtocolChangeset','_stopPresenting','use','Present\x20this\x20document','apply','registerDependencies','Dropdown','_entities','url(#$1','set','useDependency','unsubscribe','Injector','_handleOffline','_status','defIds','getLiveShareCoordinator','FOLLOWING','_startLiveShareCoordinator','_handleNewChangeSets','tryStartPresenting','UniverCollaborationClientPlugin','_init','executeCommand','touchDependencies','disposeWithMe','children','_handleNewHost','SAME_OPERATION_SHARE_INTERVAL','UniverCore','SetScrollOperation'];_0x38bd=function(){return _0x5a0406;};return _0x38bd();}function _0x22a5(_0x28931e,_0x2a0cbd){var _0x38bd75=_0x38bd();return _0x22a5=function(_0x22a5e3,_0xb311d1){_0x22a5e3=_0x22a5e3-0xae;var _0x4d3ca9=_0x38bd75[_0x22a5e3];return _0x4d3ca9;},_0x22a5(_0x28931e,_0x2a0cbd);}(function(_0x520ed2,_0x125279){var _0x53cce2=_0x22a5,_0x96b417=_0x520ed2();while(!![]){try{var _0x56d97c=-parseInt(_0x53cce2(0x128))/0x1*(parseInt(_0x53cce2(0xef))/0x2)+-parseInt(_0x53cce2(0x180))/0x3*(parseInt(_0x53cce2(0x115))/0x4)+-parseInt(_0x53cce2(0x129))/0x5+parseInt(_0x53cce2(0x171))/0x6*(-parseInt(_0x53cce2(0xae))/0x7)+parseInt(_0x53cce2(0x160))/0x8*(-parseInt(_0x53cce2(0xfd))/0x9)+-parseInt(_0x53cce2(0x15b))/0xa*(parseInt(_0x53cce2(0x111))/0xb)+parseInt(_0x53cce2(0xc9))/0xc;if(_0x56d97c===_0x125279)break;else _0x96b417['push'](_0x96b417['shift']());}catch(_0x38a9a6){_0x96b417['push'](_0x96b417['shift']());}}}(_0x38bd,0xefe0b),function(_0x1694ae,_0x32b1b7){var _0xf0016b=_0x22a5;typeof exports==_0xf0016b(0x164)&&typeof module<'u'?_0x32b1b7(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0xf0016b(0xdb)&&define[_0xf0016b(0x142)]?define([_0xf0016b(0x177),_0xf0016b(0xf4),_0xf0016b(0x120),_0xf0016b(0xd2),'@univerjs/design',_0xf0016b(0x12a),_0xf0016b(0x172),_0xf0016b(0x15c),_0xf0016b(0xcb),_0xf0016b(0x146),_0xf0016b(0x16e),'@univerjs/sheets-ui'],_0x32b1b7):(_0x1694ae=typeof globalThis<'u'?globalThis:_0x1694ae||self,_0x32b1b7(_0x1694ae[_0xf0016b(0x100)]={},_0x1694ae[_0xf0016b(0x19e)],_0x1694ae[_0xf0016b(0x1a4)],_0x1694ae[_0xf0016b(0xe7)],_0x1694ae['UniverDesign'],_0x1694ae[_0xf0016b(0xe7)],_0x1694ae[_0xf0016b(0x132)],_0x1694ae[_0xf0016b(0xd9)],_0x1694ae[_0xf0016b(0x16a)],_0x1694ae[_0xf0016b(0x146)],_0x1694ae['rxjs'][_0xf0016b(0xfb)],_0x1694ae[_0xf0016b(0x127)]));}(this,function(_0x54bd70,_0x1f64cb,_0x39844e,_0x3ee384,_0x4f877f,_0x37b786,_0x366e80,_0x1a1baf,_0x41a359,_0x2d8f26,_0x3c0e89,_0x2dd262){'use strict';var _0x17e565=_0x22a5;var _0x44f874=Object[_0x17e565(0xb6)],_0x402d7a=(_0x22aa2d,_0x4b4b58,_0x3ff81e)=>_0x4b4b58 in _0x22aa2d?_0x44f874(_0x22aa2d,_0x4b4b58,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ff81e}):_0x22aa2d[_0x4b4b58]=_0x3ff81e,_0x6f703=(_0x5ed2cf,_0x582c3e,_0x3dbd21)=>_0x402d7a(_0x5ed2cf,typeof _0x582c3e!=_0x17e565(0xf8)?_0x582c3e+'':_0x582c3e,_0x3dbd21),_0x3035d5=function(){var _0x51b58c=_0x17e565;return _0x3035d5=Object[_0x51b58c(0xea)]||function(_0x4eb47a){var _0x4e8bd7=_0x51b58c;for(var _0x58da32,_0x681248=0x1,_0x430179=arguments[_0x4e8bd7(0x17f)];_0x681248<_0x430179;_0x681248++){_0x58da32=arguments[_0x681248];for(var _0x45f61a in _0x58da32)Object[_0x4e8bd7(0x13f)][_0x4e8bd7(0x15d)]['call'](_0x58da32,_0x45f61a)&&(_0x4eb47a[_0x45f61a]=_0x58da32[_0x45f61a]);}return _0x4eb47a;},_0x3035d5[_0x51b58c(0x185)](this,arguments);},_0x1105fa=function(_0x34c31,_0x2a85bd){var _0x25db34=_0x17e565,_0x294fa4={};for(var _0x5734a1 in _0x34c31)Object[_0x25db34(0x13f)]['hasOwnProperty'][_0x25db34(0x153)](_0x34c31,_0x5734a1)&&_0x2a85bd[_0x25db34(0xd1)](_0x5734a1)<0x0&&(_0x294fa4[_0x5734a1]=_0x34c31[_0x5734a1]);if(_0x34c31!=null&&typeof Object[_0x25db34(0x107)]==_0x25db34(0xdb)){for(var _0x25190b=0x0,_0x5734a1=Object['getOwnPropertySymbols'](_0x34c31);_0x25190b<_0x5734a1[_0x25db34(0x17f)];_0x25190b++)_0x2a85bd[_0x25db34(0xd1)](_0x5734a1[_0x25190b])<0x0&&Object[_0x25db34(0x13f)][_0x25db34(0x1a0)]['call'](_0x34c31,_0x5734a1[_0x25190b])&&(_0x294fa4[_0x5734a1[_0x25190b]]=_0x34c31[_0x5734a1[_0x25190b]]);}return _0x294fa4;},_0x42d6ee=_0x37b786[_0x17e565(0x138)](function(_0x3ab380,_0x3930ad){var _0x4ca214=_0x17e565,_0x112440=_0x3ab380[_0x4ca214(0xf2)],_0x30e5b1=_0x3ab380['id'],_0x3ebbf9=_0x3ab380['className'],_0x40f37e=_0x3ab380['extend'],_0x595dcb=_0x1105fa(_0x3ab380,[_0x4ca214(0xf2),'id',_0x4ca214(0x168),_0x4ca214(0x104)]),_0x183f4f=_0x4ca214(0xaf)[_0x4ca214(0xc4)](_0x30e5b1,'\x20')[_0x4ca214(0xc4)](_0x3ebbf9||'')[_0x4ca214(0x14e)](),_0x50b853=_0x37b786[_0x4ca214(0xb9)]('_'['concat'](_0x4c0f1c()));return _0x4dfa99(_0x112440,''[_0x4ca214(0xc4)](_0x30e5b1),{'defIds':_0x112440[_0x4ca214(0x190)],'idSuffix':_0x50b853[_0x4ca214(0xd4)]},_0x3035d5({'ref':_0x3930ad,'className':_0x183f4f},_0x595dcb),_0x40f37e);});function _0x4dfa99(_0x594828,_0x167db7,_0xe6661c,_0xee63b1,_0x5305bf){var _0x17c14e=_0x17e565;return _0x37b786[_0x17c14e(0xc6)](_0x594828[_0x17c14e(0xe0)],_0x3035d5(_0x3035d5({'key':_0x167db7},_0x48fd2c(_0x594828,_0xe6661c,_0x5305bf)),_0xee63b1),(_0x23f81e(_0x594828,_0xe6661c)[_0x17c14e(0x19b)]||[])['map'](function(_0x40641e,_0x244b9a){var _0x41a27d=_0x17c14e;return _0x4dfa99(_0x40641e,''['concat'](_0x167db7,'-')[_0x41a27d(0xc4)](_0x594828[_0x41a27d(0xe0)],'-')[_0x41a27d(0xc4)](_0x244b9a),_0xe6661c,void 0x0,_0x5305bf);}));}function _0x48fd2c(_0x1bb208,_0xf2646c,_0xb2158b){var _0x3b9833=_0x17e565,_0x24ba87=_0x3035d5({},_0x1bb208[_0x3b9833(0x103)]);_0xb2158b!=null&&_0xb2158b['colorChannel1']&&_0x24ba87['fill']===_0x3b9833(0xc5)&&(_0x24ba87['fill']=_0xb2158b[_0x3b9833(0xc5)]),_0x1bb208[_0x3b9833(0xe0)]===_0x3b9833(0xe2)&&_0x24ba87['id']&&(_0x24ba87['id']=_0x24ba87['id']+_0xf2646c['idSuffix']),Object[_0x3b9833(0x155)](_0x24ba87)[_0x3b9833(0x126)](function(_0x36bc1d){var _0x3cf458=_0x3b9833,_0x17d095=_0x36bc1d[0x0],_0x1032a2=_0x36bc1d[0x1];_0x17d095===_0x3cf458(0xe2)&&typeof _0x1032a2==_0x3cf458(0x15a)&&(_0x24ba87[_0x17d095]=_0x1032a2[_0x3cf458(0x163)](/url\(#(.*)\)/,_0x3cf458(0x189)[_0x3cf458(0xc4)](_0xf2646c[_0x3cf458(0x1a1)],')')));});var _0x465379=_0xf2646c['defIds'];return!_0x465379||_0x465379[_0x3b9833(0x17f)]===0x0||(_0x1bb208[_0x3b9833(0xe0)]===_0x3b9833(0x183)&&_0x24ba87[_0x3b9833(0xdc)]&&(_0x24ba87[_0x3b9833(0xdc)]=_0x24ba87[_0x3b9833(0xdc)]+_0xf2646c[_0x3b9833(0x1a1)]),Object[_0x3b9833(0x155)](_0x24ba87)['forEach'](function(_0x2e8dd9){var _0x54cbe4=_0x3b9833,_0x38a85b=_0x2e8dd9[0x0],_0x22c24c=_0x2e8dd9[0x1];typeof _0x22c24c==_0x54cbe4(0x15a)&&(_0x24ba87[_0x38a85b]=_0x22c24c['replace'](/url\(#(.*)\)/,_0x54cbe4(0x189)[_0x54cbe4(0xc4)](_0xf2646c[_0x54cbe4(0x1a1)],')')));})),_0x24ba87;}function _0x23f81e(_0x4cfce4,_0x12e090){var _0x4f5827=_0x17e565,_0x2652c0,_0x3622f5=_0x12e090['defIds'];return!_0x3622f5||_0x3622f5[_0x4f5827(0x17f)]===0x0?_0x4cfce4:_0x4cfce4['tag']==='defs'&&(!((_0x2652c0=_0x4cfce4[_0x4f5827(0x19b)])===null||_0x2652c0===void 0x0)&&_0x2652c0[_0x4f5827(0x17f)])?_0x3035d5(_0x3035d5({},_0x4cfce4),{'children':_0x4cfce4['children']['map'](function(_0x316229){var _0x429b57=_0x4f5827;return typeof _0x316229['attrs']['id']=='string'&&_0x3622f5&&_0x3622f5[_0x429b57(0x12d)](_0x316229[_0x429b57(0x103)]['id'])?_0x3035d5(_0x3035d5({},_0x316229),{'attrs':_0x3035d5(_0x3035d5({},_0x316229[_0x429b57(0x103)]),{'id':_0x316229[_0x429b57(0x103)]['id']+_0x12e090['idSuffix']})}):_0x316229;})}):_0x4cfce4;}function _0x4c0f1c(){var _0x46a876=_0x17e565;return Math['random']()[_0x46a876(0x134)](0x24)[_0x46a876(0xd5)](0x2,0x8);}_0x42d6ee[_0x17e565(0x12c)]=_0x17e565(0x15f);var _0x3131b0={'tag':_0x17e565(0x141),'attrs':{'xmlns':_0x17e565(0xcd),'fill':_0x17e565(0x12b),'viewBox':_0x17e565(0x121),'width':_0x17e565(0x1aa),'height':'1em'},'children':[{'tag':_0x17e565(0x145),'attrs':{'fill':_0x17e565(0xbd),'d':_0x17e565(0x16c)}},{'tag':_0x17e565(0x145),'attrs':{'fill':_0x17e565(0xbd),'d':_0x17e565(0x13a),'fillRule':_0x17e565(0xbc),'clipRule':_0x17e565(0xbc)}}]},_0x23fda8=_0x37b786[_0x17e565(0x138)](function(_0x47ffa8,_0x4ce370){var _0x3291c6=_0x17e565;return _0x37b786['createElement'](_0x42d6ee,Object[_0x3291c6(0xea)]({},_0x47ffa8,{'id':_0x3291c6(0x17c),'ref':_0x4ce370,'icon':_0x3131b0}));});_0x23fda8[_0x17e565(0x12c)]=_0x17e565(0xb7);class _0x30f6fa extends _0x1f64cb[_0x17e565(0x11a)]{constructor(){var _0x21d281=_0x17e565;super(...arguments),_0x6f703(this,_0x21d281(0xf5),new Set()),_0x6f703(this,_0x21d281(0x12f),new Set());}[_0x17e565(0xe3)](_0x3a1feb){var _0x50fa86=_0x17e565;return this['_sharedOperations']['add'](_0x3a1feb),_0x1f64cb[_0x50fa86(0xbf)](()=>this[_0x50fa86(0xf5)][_0x50fa86(0x11b)](_0x3a1feb));}[_0x17e565(0x14c)](_0x492acb){var _0x31d523=_0x17e565;return this[_0x31d523(0x12f)][_0x31d523(0xe1)](_0x492acb),_0x1f64cb['toDisposable'](()=>this['_reporters']['delete'](_0x492acb));}['shouldShareOperation'](_0x3e046f){return this['_sharedOperations']['has'](_0x3e046f);}['getInitialStates'](_0x124606){var _0x794bbe=_0x17e565;return Array[_0x794bbe(0xe8)](this['_reporters'])[_0x794bbe(0x152)](_0x2780ee=>_0x2780ee(_0x124606));}}var _0x5831e2=Object['getOwnPropertyDescriptor'],_0x1bd40c=(_0x12884c,_0x2d6c4b,_0x37e949,_0xe48d65)=>{var _0x2b6f2f=_0x17e565;for(var _0x9590b1=_0xe48d65>0x1?void 0x0:_0xe48d65?_0x5831e2(_0x2d6c4b,_0x37e949):_0x2d6c4b,_0x2d2582=_0x12884c[_0x2b6f2f(0x17f)]-0x1,_0x2ee7c5;_0x2d2582>=0x0;_0x2d2582--)(_0x2ee7c5=_0x12884c[_0x2d2582])&&(_0x9590b1=_0x2ee7c5(_0x9590b1)||_0x9590b1);return _0x9590b1;},_0x4da1e7=(_0x374a37,_0x5ed58e)=>(_0x545aea,_0x4ecaa2)=>_0x5ed58e(_0x545aea,_0x4ecaa2,_0x374a37);_0x54bd70[_0x17e565(0x10a)]=class extends _0x1f64cb[_0x17e565(0x113)]{constructor(_0x4588ae,_0xb96ac1,_0xab080c){var _0x5b024a=_0x17e565;super(),_0x6f703(this,_0x5b024a(0x188),new Map()),(this[_0x5b024a(0x124)]=_0x4588ae,this['_injector']=_0xb96ac1,this['_collabSessionService']=_0xab080c,this[_0x5b024a(0x197)]());}async['getLiveShareCoordinator'](_0x47a63e){var _0xf0c979=_0x17e565;return this['_entities'][_0xf0c979(0x119)](_0x47a63e)||await this[_0xf0c979(0x193)](_0x47a63e),this[_0xf0c979(0x188)]['get'](_0x47a63e);}[_0x17e565(0x197)](){var _0x46c925=_0x17e565;this['_univerInstanceService'][_0x46c925(0x158)](_0x1f64cb['UniverInstanceType'][_0x46c925(0x13c)])[_0x46c925(0x109)](_0x3c0e89['takeUntil'](this[_0x46c925(0x10f)]))[_0x46c925(0xfa)](async _0x93cee0=>{var _0x5afd8e=_0x46c925;const _0x5c1b53=_0x93cee0['getUnitId']();this['_entities'][_0x5afd8e(0x119)](_0x5c1b53)||this[_0x5afd8e(0x193)](_0x5c1b53);}),this['_univerInstanceService'][_0x46c925(0x101)](_0x1f64cb[_0x46c925(0x159)][_0x46c925(0x13c)])[_0x46c925(0x109)](_0x3c0e89[_0x46c925(0x143)](this['dispose$']))[_0x46c925(0xfa)](_0x353993=>{var _0x134d99=_0x46c925;const _0x5a36e9=_0x353993['getUnitId'](),_0x3cda37=this[_0x134d99(0x188)]['get'](_0x5a36e9);_0x3cda37==null||_0x3cda37[_0x134d99(0xc8)]();});}async[_0x17e565(0x193)](_0x1a31fc){var _0x1e1efb=_0x17e565;const _0x7977c6=await this[_0x1e1efb(0xed)][_0x1e1efb(0x11e)](_0x1a31fc),_0x266f0e=this[_0x1e1efb(0x12e)][_0x1e1efb(0x14a)](_0x54bd70[_0x1e1efb(0x10b)],_0x1a31fc,_0x7977c6);return _0x266f0e[_0x1e1efb(0x166)](),this[_0x1e1efb(0x188)][_0x1e1efb(0x18a)](_0x1a31fc,_0x266f0e),_0x266f0e;}},_0x54bd70[_0x17e565(0x10a)]=_0x1bd40c([_0x4da1e7(0x0,_0x1f64cb[_0x17e565(0xbb)]),_0x4da1e7(0x1,_0x1f64cb[_0x17e565(0x1a5)](_0x1f64cb['Injector'])),_0x4da1e7(0x2,_0x1f64cb['Inject'](_0x1a1baf[_0x17e565(0x179)]))],_0x54bd70[_0x17e565(0x10a)]);var _0x35134b=(_0x4ecefa=>(_0x4ecefa[_0x17e565(0xeb)]='offline',_0x4ecefa[_0x17e565(0xc1)]=_0x17e565(0x116),_0x4ecefa[_0x17e565(0x192)]=_0x17e565(0xb1),_0x4ecefa[_0x17e565(0x13b)]='not-following',_0x4ecefa[_0x17e565(0xca)]=_0x17e565(0x178),_0x4ecefa))(_0x35134b||{});const _0x1d76ab=_0x17e565(0x19d),_0xe6a8e6=0xc8;_0x54bd70[_0x17e565(0x10b)]=class extends _0x1f64cb[_0x17e565(0x113)]{constructor(_0x179177,_0x46be3,_0x5b63f7,_0xc13b2,_0x28e935){var _0x6fc45e=_0x17e565;super(),_0x6f703(this,_0x6fc45e(0xf6),new _0x2d8f26[(_0x6fc45e(0x125))](_0x6fc45e(0x116))),_0x6f703(this,_0x6fc45e(0x165),this[_0x6fc45e(0xf6)][_0x6fc45e(0x13d)]()),_0x6f703(this,_0x6fc45e(0x197),!0x1),_0x6f703(this,_0x6fc45e(0x123),null),_0x6f703(this,_0x6fc45e(0x136),null),(this[_0x6fc45e(0xd3)]=_0x179177,this['_collabSession']=_0x46be3,this[_0x6fc45e(0xe4)]=_0x5b63f7,this[_0x6fc45e(0xe6)]=_0xc13b2,this[_0x6fc45e(0x17e)]=_0x28e935);}get[_0x17e565(0x18f)](){return this['_status$']['getValue']();}[_0x17e565(0xc8)](){var _0x2804da=_0x17e565,_0xc96a;(_0xc96a=this[_0x2804da(0x123)])==null||_0xc96a[_0x2804da(0xc8)](),this[_0x2804da(0xf6)][_0x2804da(0x149)](_0x2804da(0x116)),this['_status$'][_0x2804da(0xc7)]();}['init'](){var _0xb44cda=_0x17e565;this[_0xb44cda(0x197)]||(this['_init']=!0x0,this[_0xb44cda(0xf1)]['sessionStatus$'][_0xb44cda(0x109)](_0x3c0e89[_0xb44cda(0x143)](this['dispose$']))[_0xb44cda(0xfa)](_0xf77b01=>{var _0xb7e79c=_0xb44cda;switch(_0xf77b01){case _0x1a1baf[_0xb7e79c(0x156)]['OFFLINE']:this[_0xb7e79c(0x18e)]();break;case _0x1a1baf[_0xb7e79c(0x156)][_0xb7e79c(0x1a6)]:this[_0xb7e79c(0x114)]();break;}}),this[_0xb44cda(0xf1)][_0xb44cda(0xdd)][_0xb44cda(0x109)](_0x3c0e89['takeUntil'](this[_0xb44cda(0x10f)]))[_0xb44cda(0xfa)](_0x4cb3b0=>{var _0x1765e2=_0xb44cda;const {eventID:_0x29e4aa}=_0x4cb3b0;switch(_0x29e4aa){case _0x366e80[_0x1765e2(0x151)][_0x1765e2(0xb5)]:this[_0x1765e2(0x19c)](_0x4cb3b0);break;case _0x366e80[_0x1765e2(0x151)][_0x1765e2(0x13e)]:this['_handleOperation'](_0x4cb3b0);break;case _0x366e80['CollaborationEvent']['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x366e80[_0x1765e2(0x151)]['NEW_CHANGESETS']:this[_0x1765e2(0x194)](_0x4cb3b0);break;}}));}['tryStartPresenting'](){var _0x4566f8=_0x17e565;this[_0x4566f8(0xf1)][_0x4566f8(0xb2)]({'eventID':_0x366e80[_0x4566f8(0x151)][_0x4566f8(0x175)],'data':{'unitID':this[_0x4566f8(0xd3)],'userID':this[_0x4566f8(0xf1)]['getMemberID']()}},this[_0x4566f8(0xd3)]);}[_0x17e565(0x110)](){var _0x5de397=_0x17e565;this['_status']===_0x5de397(0x178)&&(this[_0x5de397(0xf6)][_0x5de397(0x149)](_0x5de397(0x116)),this[_0x5de397(0xf1)][_0x5de397(0xb2)]({'eventID':_0x366e80[_0x5de397(0x151)][_0x5de397(0xc3)],'data':{'unitID':this[_0x5de397(0xd3)]}},this[_0x5de397(0xd3)]));}[_0x17e565(0x131)](){var _0x5ae601=_0x17e565;this[_0x5ae601(0x18f)]==='not-following'&&(this[_0x5ae601(0xf6)][_0x5ae601(0x149)]('following'),this['_startFollowing']());}[_0x17e565(0xfe)](){var _0x6a17fd=_0x17e565;this[_0x6a17fd(0x18f)]==='following'&&this[_0x6a17fd(0x11c)]();}[_0x17e565(0x19c)](_0x3f74e4){var _0x43b5c7=_0x17e565;const {presenter:_0x5b2239}=_0x3f74e4[_0x43b5c7(0xc2)],_0x2ea41b=this[_0x43b5c7(0xf1)][_0x43b5c7(0x148)]();this[_0x43b5c7(0x136)]=_0x5b2239,_0x5b2239===_0x2ea41b?(this[_0x43b5c7(0x11c)](),this[_0x43b5c7(0xf3)]()):this[_0x43b5c7(0x18f)]!==_0x43b5c7(0x105)&&(this[_0x43b5c7(0x182)](),this[_0x43b5c7(0xb4)]());}[_0x17e565(0xf7)](){var _0x48e1d8=_0x17e565;const _0xe0a8c4={'eventID':_0x366e80[_0x48e1d8(0x151)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x48e1d8(0xb2)](_0xe0a8c4,this['_unitID']);}[_0x17e565(0x11d)](){var _0x19fd2f=_0x17e565;this[_0x19fd2f(0x136)]=null,this[_0x19fd2f(0x18f)]!==_0x19fd2f(0x178)&&this[_0x19fd2f(0x139)]();}[_0x17e565(0x194)](_0x2a894b){var _0x101f6b=_0x17e565;if(this['_status']==='following'&&this[_0x101f6b(0x136)]===_0x2a894b[_0x101f6b(0xc2)]['memberID']){const _0x25ae23=_0x366e80[_0x101f6b(0x181)](_0x2a894b['data'])['mutations'][_0x101f6b(0x10e)]()[_0x101f6b(0xe9)](_0x6dd0=>_0x6dd0['id']===_0x41a359[_0x101f6b(0x1a3)]['id']);if(_0x25ae23){const _0x121e7f=_0x25ae23[_0x101f6b(0x1a8)][_0x101f6b(0x169)],_0x4be7b0=_0x25ae23['params'][_0x101f6b(0x15e)]['id'];setTimeout(()=>{var _0x2a6bf2=_0x101f6b;this[_0x2a6bf2(0x17e)][_0x2a6bf2(0x198)](_0x41a359['SetWorksheetActiveOperation']['id'],{'unitId':_0x121e7f,'subUnitId':_0x4be7b0},{'fromCollab':!0x0});});}}}[_0x17e565(0xf3)](){var _0x32d163=_0x17e565;this[_0x32d163(0xf6)][_0x32d163(0x149)](_0x32d163(0x178));const _0x56dc55=new Map(),_0x4dc550=this[_0x32d163(0x123)]=new _0x1f64cb[(_0x32d163(0xb0))]();_0x4dc550[_0x32d163(0xe1)](_0x1f64cb[_0x32d163(0xbf)](()=>{var _0x5dfb43=_0x32d163;_0x56dc55[_0x5dfb43(0x126)](_0x57c172=>_0x57c172['complete']()),_0x56dc55[_0x5dfb43(0x154)]();})),_0x4dc550[_0x32d163(0xe1)](this['_commandService'][_0x32d163(0x135)](_0x3294ea=>{var _0x534ed6=_0x32d163,_0x5baf5d;if(_0x3294ea[_0x534ed6(0xfc)]!==_0x1f64cb[_0x534ed6(0x14b)][_0x534ed6(0x174)]||!this[_0x534ed6(0xe6)]['shouldShareOperation'](_0x3294ea['id']))return;const {id:_0x3e5f16}=_0x3294ea;let _0x489277;_0x56dc55[_0x534ed6(0x119)](_0x3e5f16)?_0x489277=_0x56dc55[_0x534ed6(0x162)](_0x3e5f16):(_0x489277=new _0x2d8f26[(_0x534ed6(0x10d))](),_0x56dc55[_0x534ed6(0x18a)](_0x3e5f16,_0x489277),_0x489277[_0x534ed6(0x109)](_0x3c0e89[_0x534ed6(0xf0)]((_0x5baf5d=this[_0x534ed6(0xe4)][_0x534ed6(0x147)](_0x1d76ab))!=null?_0x5baf5d:_0xe6a8e6,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2a9e65=>{var _0x20abe0=_0x534ed6;this[_0x20abe0(0xf1)]['send']({'eventID':_0x366e80[_0x20abe0(0x151)][_0x20abe0(0x13e)],'data':{'unitID':this[_0x20abe0(0xd3)],'operations':{[_0x2a9e65['id']]:{'id':_0x2a9e65['id'],'params':JSON['stringify'](_0x2a9e65['params'])}}}},this[_0x20abe0(0xd3)]);})),_0x489277[_0x534ed6(0x149)](_0x3294ea);})),this[_0x32d163(0xe6)]['getInitialStates'](this[_0x32d163(0xd3)])[_0x32d163(0x126)](_0x180431=>this[_0x32d163(0xf1)][_0x32d163(0xb2)]({'eventID':_0x366e80[_0x32d163(0x151)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x32d163(0xd3)],'operations':{[_0x180431['id']]:{'id':_0x180431['id'],'params':JSON[_0x32d163(0x122)](_0x180431['params'])}}}},this['_unitID']));}['_stopPresenting'](){var _0x1c4916=_0x17e565,_0x3c2131;this[_0x1c4916(0xf6)][_0x1c4916(0x149)](_0x1c4916(0x116)),(_0x3c2131=this[_0x1c4916(0x123)])==null||_0x3c2131[_0x1c4916(0xc8)](),this[_0x1c4916(0x123)]=null;}[_0x17e565(0xb4)](){var _0x1c286d=_0x17e565,_0x1bc468;(_0x1bc468=this[_0x1c286d(0x123)])==null||_0x1bc468[_0x1c286d(0xc8)](),this[_0x1c286d(0xf6)][_0x1c286d(0x149)](_0x1c286d(0xb1));}[_0x17e565(0x139)](){var _0x15f9b3=_0x17e565,_0x4fc1da;this[_0x15f9b3(0xf6)][_0x15f9b3(0x149)](_0x15f9b3(0x116)),(_0x4fc1da=this[_0x15f9b3(0x123)])==null||_0x4fc1da[_0x15f9b3(0xc8)](),this['_commandDisposable']=null;}[_0x17e565(0x11c)](){var _0x3ebc24=_0x17e565,_0x44e163;this[_0x3ebc24(0xf6)][_0x3ebc24(0x149)](_0x3ebc24(0x105)),(_0x44e163=this[_0x3ebc24(0x123)])==null||_0x44e163['dispose']();}['_handleOperation'](_0x30809b){var _0x19e22c=_0x17e565;if([_0x19e22c(0x178),_0x19e22c(0x105),_0x19e22c(0xc0)]['includes'](this[_0x19e22c(0x18f)])||!_0x30809b[_0x19e22c(0xc2)]['presenter']||_0x30809b[_0x19e22c(0xc2)][_0x19e22c(0xba)]===this[_0x19e22c(0xf1)][_0x19e22c(0x148)]())return;this[_0x19e22c(0x18f)]===_0x19e22c(0x116)&&this['_startFollowing']();const _0x3e949c=_0x30809b[_0x19e22c(0xc2)]['operations'];Object[_0x19e22c(0x167)](_0x3e949c)[_0x19e22c(0x126)](_0x3fc860=>{var _0x574914=_0x19e22c;this[_0x574914(0x17e)]['executeCommand'](_0x3fc860['id'],_0x3fc860['params']?JSON['parse'](_0x3fc860['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3a34ab=_0x17e565,_0xcd8de8;this[_0x3a34ab(0xf6)][_0x3a34ab(0x149)](_0x3a34ab(0xc0)),(_0xcd8de8=this[_0x3a34ab(0x123)])==null||_0xcd8de8[_0x3a34ab(0xc8)]();}['_handleOnline'](){var _0x44d5cd=_0x17e565;this[_0x44d5cd(0xf6)][_0x44d5cd(0x149)]('idle'),this['_fetchOperations']();}},_0x54bd70[_0x17e565(0x10b)]=_0x1bd40c([_0x4da1e7(0x2,_0x1f64cb[_0x17e565(0x140)]),_0x4da1e7(0x3,_0x1f64cb[_0x17e565(0x1a5)](_0x30f6fa)),_0x4da1e7(0x4,_0x1f64cb[_0x17e565(0x133)])],_0x54bd70[_0x17e565(0x10b)]);function _0x4c67b5(){var _0x1ef129=_0x17e565;const _0x1d08f0=_0x39844e[_0x1ef129(0x18b)](_0x54bd70[_0x1ef129(0x10a)]),_0x6585ee=_0x39844e[_0x1ef129(0x18b)](_0x1f64cb[_0x1ef129(0xbb)]),_0xc2dea=_0x39844e[_0x1ef129(0xb3)](()=>_0x6585ee['getCurrentTypeOfUnit$'](_0x1f64cb['UniverInstanceType'][_0x1ef129(0x13c)]),void 0x0,!0x1,[]),[_0x18b798,_0x252880]=_0x37b786[_0x1ef129(0x161)](null),[_0x182f42,_0x3c3346]=_0x37b786[_0x1ef129(0x161)](_0x35134b[_0x1ef129(0xc1)]),_0x354e82=_0x37b786[_0x1ef129(0xb9)](null);return _0x37b786[_0x1ef129(0xd8)](()=>(_0xc2dea&&_0x1d08f0[_0x1ef129(0x191)](_0xc2dea[_0x1ef129(0x173)]())[_0x1ef129(0x150)](_0x5b99a2=>{var _0x3300ff=_0x1ef129;_0x252880(_0x5b99a2),_0x354e82[_0x3300ff(0xd4)]=_0x5b99a2[_0x3300ff(0x165)][_0x3300ff(0xfa)](_0x26f7dc=>{_0x3c3346(_0x26f7dc);});}),()=>{var _0x16ec0e=_0x1ef129,_0x20a17b;(_0x20a17b=_0x354e82[_0x16ec0e(0xd4)])==null||_0x20a17b[_0x16ec0e(0x18c)](),_0x354e82['current']=null;}),[_0xc2dea,_0x1d08f0]),_0x18b798?_0x3ee384[_0x1ef129(0x170)](_0x4f877f[_0x1ef129(0x187)],{'align':'end','disabled':_0x182f42===_0x35134b['OFFLINE'],'className':_0x1ef129(0x16d),'overlay':_0x3ee384[_0x1ef129(0x170)](_0x36cac4,{'status':_0x182f42,'coordinator':_0x18b798}),'children':_0x3ee384[_0x1ef129(0x170)]('button',{'className':_0x4f877f[_0x1ef129(0xec)](_0x1ef129(0x106),{'univer-cursor-not-allowed':_0x182f42===_0x35134b[_0x1ef129(0xeb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x182f42!==_0x35134b['OFFLINE']}),'type':'button','children':_0x3ee384['jsx'](_0x23fda8,{'className':_0x1ef129(0x17d)})})}):null;}function _0x36cac4(_0x3e5463){var _0x21c919=_0x17e565;const {status:_0x2dff97,coordinator:_0x836b1b}=_0x3e5463;switch(_0x2dff97){case _0x35134b[_0x21c919(0xc1)]:return _0x3ee384[_0x21c919(0x170)](_0x5b31e3,{'coordinator':_0x836b1b});case _0x35134b[_0x21c919(0x192)]:return _0x3ee384['jsx'](_0xba6fd4,{'coordinator':_0x836b1b});case _0x35134b['NOT_FOLLOWING']:return _0x3ee384[_0x21c919(0x170)](_0x32db31,{'coordinator':_0x836b1b});case _0x35134b['OFFLINE']:return _0x3ee384[_0x21c919(0x170)](_0x8fec72,{});case _0x35134b[_0x21c919(0xca)]:return _0x3ee384[_0x21c919(0x170)](_0x383ce6,{'coordinator':_0x836b1b});default:return null;}}function _0x5b31e3(_0x643f97){var _0xcffbbd=_0x17e565;const {coordinator:_0x30a3a2}=_0x643f97;return _0x3ee384['jsxs'](_0x3ee384[_0xcffbbd(0x10c)],{'children':[_0x3ee384['jsx'](_0xcffbbd(0x102),{'className':_0xcffbbd(0xff),'children':_0xcffbbd(0x184)}),_0x3ee384['jsx'](_0x4f877f[_0xcffbbd(0x14f)],{'onClick':()=>_0x30a3a2[_0xcffbbd(0x195)](),'children':'Start'})]});}function _0xba6fd4(_0x4f4150){var _0x41d2a1=_0x17e565;const {coordinator:_0x4df229}=_0x4f4150;return _0x3ee384[_0x41d2a1(0x117)](_0x3ee384[_0x41d2a1(0x10c)],{'children':[_0x3ee384[_0x41d2a1(0x170)](_0x41d2a1(0x102),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x41d2a1(0xb8)}),_0x3ee384[_0x41d2a1(0x170)](_0x4f877f['Button'],{'onClick':()=>_0x4df229[_0x41d2a1(0xfe)](),'children':'Stop\x20following'})]});}function _0x32db31(_0x4ce293){var _0x5dbe89=_0x17e565;const {coordinator:_0x35bf91}=_0x4ce293;return _0x3ee384[_0x5dbe89(0x117)](_0x3ee384[_0x5dbe89(0x10c)],{'children':[_0x3ee384[_0x5dbe89(0x170)](_0x5dbe89(0x102),{'className':_0x5dbe89(0xff),'children':_0x5dbe89(0x16f)}),_0x3ee384[_0x5dbe89(0x170)](_0x4f877f[_0x5dbe89(0x14f)],{'variant':_0x5dbe89(0x137),'onClick':()=>_0x35bf91[_0x5dbe89(0x131)](),'children':_0x5dbe89(0x11f)})]});}function _0x383ce6(_0x294d04){var _0x2ef71a=_0x17e565;const {coordinator:_0x3dcd2a}=_0x294d04;return _0x3ee384['jsxs'](_0x3ee384[_0x2ef71a(0x10c)],{'children':[_0x3ee384['jsx'](_0x2ef71a(0x102),{'className':_0x2ef71a(0xff),'children':_0x2ef71a(0xd6)}),_0x3ee384['jsx'](_0x4f877f[_0x2ef71a(0x14f)],{'variant':_0x2ef71a(0xbe),'onClick':()=>_0x3dcd2a[_0x2ef71a(0x110)](),'children':'Stop\x20presenting'})]});}function _0x8fec72(){var _0x321ccd=_0x17e565;return _0x3ee384[_0x321ccd(0x170)](_0x3ee384[_0x321ccd(0x10c)],{'children':'You\x27are\x20offline.'});}var _0x529344=Object[_0x17e565(0xce)],_0x45fb7f=(_0x30f6ba,_0x562f8c,_0x4618ce,_0x4447d8)=>{var _0x4bf15a=_0x17e565;for(var _0x605cae=_0x4447d8>0x1?void 0x0:_0x4447d8?_0x529344(_0x562f8c,_0x4618ce):_0x562f8c,_0x503efa=_0x30f6ba[_0x4bf15a(0x17f)]-0x1,_0x475ac5;_0x503efa>=0x0;_0x503efa--)(_0x475ac5=_0x30f6ba[_0x503efa])&&(_0x605cae=_0x475ac5(_0x605cae)||_0x605cae);return _0x605cae;},_0x2967cc=(_0x5a0865,_0x4a5b85)=>(_0xd82d57,_0x35e6f2)=>_0x4a5b85(_0xd82d57,_0x35e6f2,_0x5a0865);_0x54bd70[_0x17e565(0x1a2)]=class extends _0x1f64cb['Disposable']{constructor(_0x403934,_0x7869d3){var _0x75d70a=_0x17e565;super(),this[_0x75d70a(0x12e)]=_0x403934,this[_0x75d70a(0x176)]=_0x7869d3,this[_0x75d70a(0x130)]();}[_0x17e565(0x130)](){var _0xe80276=_0x17e565;this[_0xe80276(0x19a)](this[_0xe80276(0x176)]['registerComponent'](_0x39844e[_0xe80276(0xdf)][_0xe80276(0x1a9)],()=>_0x39844e[_0xe80276(0x118)](_0x4c67b5,this[_0xe80276(0x12e)])));}},_0x54bd70[_0x17e565(0x1a2)]=_0x45fb7f([_0x2967cc(0x0,_0x1f64cb[_0x17e565(0x1a5)](_0x1f64cb['Injector'])),_0x2967cc(0x1,_0x39844e[_0x17e565(0xde)])],_0x54bd70[_0x17e565(0x1a2)]);const _0x27cc42=_0x17e565(0x16b),_0x944190={};var _0x431728=Object[_0x17e565(0xce)],_0x34e1ef=(_0x27eea6,_0x5dcf6c,_0x113c38,_0x4e2fed)=>{var _0x22d5ec=_0x17e565;for(var _0x2c13bb=_0x4e2fed>0x1?void 0x0:_0x4e2fed?_0x431728(_0x5dcf6c,_0x113c38):_0x5dcf6c,_0x456ab4=_0x27eea6[_0x22d5ec(0x17f)]-0x1,_0x3e4c55;_0x456ab4>=0x0;_0x456ab4--)(_0x3e4c55=_0x27eea6[_0x456ab4])&&(_0x2c13bb=_0x3e4c55(_0x2c13bb)||_0x2c13bb);return _0x2c13bb;},_0x11868b=(_0x3d1a93,_0x352d26)=>(_0x2130bb,_0x5bfab0)=>_0x352d26(_0x2130bb,_0x5bfab0,_0x3d1a93);let _0x45868b=class extends _0x1f64cb[_0x17e565(0x11a)]{constructor(_0x1d022d){var _0x55eede=_0x17e565;super(),this[_0x55eede(0xe6)]=_0x1d022d,this['_init']();}[_0x17e565(0x197)](){var _0x25b16e=_0x17e565;[_0x2dd262[_0x25b16e(0xee)]['id'],_0x2dd262[_0x25b16e(0x19f)]['id'],_0x41a359['SetWorksheetActiveOperation']['id']][_0x25b16e(0x126)](_0x1a643c=>{var _0x24b531=_0x25b16e;this['disposeWithMe'](this[_0x24b531(0xe6)][_0x24b531(0xe3)](_0x1a643c));});}};_0x45868b=_0x34e1ef([_0x11868b(0x0,_0x1f64cb[_0x17e565(0x1a5)](_0x30f6fa))],_0x45868b);var _0x2da088=Object[_0x17e565(0xb6)],_0x25bac6=Object[_0x17e565(0xce)],_0x4db123=(_0x3db96f,_0x396236,_0x162ad9)=>_0x396236 in _0x3db96f?_0x2da088(_0x3db96f,_0x396236,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x162ad9}):_0x3db96f[_0x396236]=_0x162ad9,_0x4e40c6=(_0x9a4894,_0x2cd40e,_0x385c2d,_0x55bf24)=>{var _0x55782b=_0x17e565;for(var _0xa5471e=_0x55bf24>0x1?void 0x0:_0x55bf24?_0x25bac6(_0x2cd40e,_0x385c2d):_0x2cd40e,_0x44ebea=_0x9a4894[_0x55782b(0x17f)]-0x1,_0x41ef77;_0x44ebea>=0x0;_0x44ebea--)(_0x41ef77=_0x9a4894[_0x44ebea])&&(_0xa5471e=_0x41ef77(_0xa5471e)||_0xa5471e);return _0xa5471e;},_0x18f0bc=(_0x9f5c5f,_0x382a59)=>(_0x10b7f1,_0x4069b6)=>_0x382a59(_0x10b7f1,_0x4069b6,_0x9f5c5f),_0x516a8d=(_0x53ea37,_0x1070b8,_0x42a369)=>_0x4db123(_0x53ea37,typeof _0x1070b8!='symbol'?_0x1070b8+'':_0x1070b8,_0x42a369);const _0x544896=_0x17e565(0x14d);_0x54bd70['UniverLiveSharePlugin']=class extends _0x1f64cb[_0x17e565(0xda)]{constructor(_0x21e20e=_0x944190,_0x437712,_0x41e206){var _0x152d7f=_0x17e565;super(),this[_0x152d7f(0x144)]=_0x21e20e,this['_injector']=_0x437712,this['_configService']=_0x41e206;const {..._0x3aadfa}=_0x1f64cb[_0x152d7f(0x157)]({},_0x944190,this[_0x152d7f(0x144)]);this[_0x152d7f(0xe4)][_0x152d7f(0xcc)](_0x27cc42,_0x3aadfa);}['onStarting'](){var _0x20d3e9=_0x17e565;_0x1f64cb[_0x20d3e9(0x186)](this[_0x20d3e9(0x12e)],_0x1f64cb['mergeOverrideWithDependencies']([[_0x30f6fa],[_0x54bd70['LiveShareController']],[_0x45868b],[_0x54bd70['DesktopLiveShareController']]],this[_0x20d3e9(0x144)]['override'])),_0x1f64cb[_0x20d3e9(0x199)](this[_0x20d3e9(0x12e)],[[_0x45868b]]);}[_0x17e565(0x17a)](){var _0x4a302a=_0x17e565;_0x1f64cb[_0x4a302a(0x199)](this[_0x4a302a(0x12e)],[[_0x54bd70[_0x4a302a(0x1a2)]]]);}},_0x516a8d(_0x54bd70[_0x17e565(0x108)],'type',_0x1f64cb['UniverInstanceType'][_0x17e565(0x17b)]),_0x516a8d(_0x54bd70[_0x17e565(0x108)],_0x17e565(0xf9),_0x544896),_0x54bd70['UniverLiveSharePlugin']=_0x4e40c6([_0x1f64cb[_0x17e565(0xd7)](_0x1a1baf[_0x17e565(0x196)]),_0x18f0bc(0x1,_0x1f64cb[_0x17e565(0x1a5)](_0x1f64cb[_0x17e565(0x18d)])),_0x18f0bc(0x2,_0x1f64cb[_0x17e565(0x140)])],_0x54bd70['UniverLiveSharePlugin']),_0x54bd70[_0x17e565(0xd0)]=_0x4c67b5,_0x54bd70[_0x17e565(0xe5)]=_0x30f6fa,_0x54bd70[_0x17e565(0xcf)]=_0x35134b,Object['defineProperty'](_0x54bd70,Symbol[_0x17e565(0x1a7)],{'value':_0x17e565(0x112)});}));
1
+ function _0x4303(_0x5c0156,_0x1a07d9){var _0x89e1ba=_0x89e1();return _0x4303=function(_0x430369,_0x4938db){_0x430369=_0x430369-0xb8;var _0x3ab897=_0x89e1ba[_0x430369];return _0x3ab897;},_0x4303(_0x5c0156,_0x1a07d9);}function _0x89e1(){var _0x4c5cde=['You\x27are\x20offline.','indexOf','use','button','_commandService','offline','object','live-share-icon','useState','UniverLiveSharePlugin','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_uiPartsService','jsx','react','IConfigService','rxjs','getTypeOfUnitDisposed$','subscribe','tag','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','from','none','xlink:href','7815388eEAYHa','Disposable','touchDependencies','NEW_CHANGESETS','className','symbol','Module','includes','dispose','react/jsx-runtime','defs','Button','@univerjs/ui','registerInitialStateReporter','_univerInstanceService','stringify','_configService','div','LiveShareCoordinator','12XTborP','onCommandExecuted','following','7785504jKKnHK','_handleTerminate','DisposableCollection','override','1199792HEFhwY','throttleTime','send','_reporters','You\x27re\x20presenting\x20the\x20document','propertyIsEnumerable','substring','You\x27re\x20not\x20following\x20the\x20presenter','forEach','extend','_sharedOperations','status$','SetWorksheetActiveOperation','idle','shouldShareOperation','@univerjs-pro/collaboration-client','assign','values','1111456cVnxpe','map','IDLE','disposeWithMe','RxDisposable','_status','type','UNIVER_SHEET','@univerjs/sheets','UniverUi','presenting','NOT_FOLLOWING','SessionStatus','Injector','_handleNewChangeSets','toDisposable','Start','useRef','clear','551935uppxaK','memberID','startFollowing','_beIdle','_handleNewHost','React','random','params','useDependency','_injector','LiveShareStatus','You\x27re\x20following\x20the\x20presenter','dispose$','Plugin','getOwnPropertySymbols','mask','init','IUIPartsService','tryStartPresenting','DesktopLiveShareController','univerjs-icon\x20univerjs-icon-','toString','parseProtocolChangeset','operations','SetScrollOperation','OFFLINE','@univerjs-pro/collaboration','clsx','getUnitId','executeCommand','LIVESHARE_NEW_HOST','delete','defIds','10802720jGBnZb','Stop\x20presenting','Dropdown','getMemberID','_init','UniverProCollaborationClient','getCurrentTypeOfUnit$','InsertSheetMutation','univer-mb-3\x20univer-w-full\x20univer-text-sm','path','_startPresenting','useObservable','getOwnPropertyDescriptor','LIVESHARE_TERMINATE','asObservable','_collabSession','onRendered','prototype','http://www.w3.org/2000/svg','getInitialStates','univer-size-4','length','BehaviorSubject','_unitID','takeUntil','idSuffix','_handleOperation','add','_mountLiveShare','UNIVER_LIVE_SHARE_PLUGIN','Fragment','UniverProCollaboration','_config','_collabSessionService','UniverInstanceType','PRESENTING','hasOwnProperty','call','@univerjs/sheets-ui','reverse','evenodd','LiveShareIcon','presenter','mergeOverrideWithDependencies','replace','HEADER_MENU','text','data','displayName','UniverProLiveShare','Present\x20this\x20document','LIVESHARE_OPERATION','children','apply','fill','jsxs','_stopPresenting','url(#$1','_handleOffline','string','currentColor','trim','live-share.config','end','_stopFollowing','_startFollowing','colorChannel1','_liveShareService','SAME_OPERATION_SHARE_INTERVAL','CollaborationEvent','next','has','_presenter','setConfig','amd','_entities','createInstance','stopFollowing','LiveShare','get','_status$','_commandDisposable','Stop\x20following','forwardRef','svg','FOLLOWING','LIVESHARE_REQUEST_HOST','IUniverInstanceService','function','pluginName','createElement','unsubscribe','connectInjector','current','_handleOnline','event$','getValue','Subject','getLiveShareCoordinator','concat','1em','UniverCollaborationClientPlugin','attrs','set','sessionStatus$','mutations','183633SPyjWY','Inject','CollaborationSessionService','UniverCore','not-following','entries','_startLiveShareCoordinator','0\x200\x2017\x2017','60XTjjiy','pipe','LiveShareController'];_0x89e1=function(){return _0x4c5cde;};return _0x89e1();}(function(_0x2f3a91,_0x5816ab){var _0x438946=_0x4303,_0x29f7a6=_0x2f3a91();while(!![]){try{var _0x471e6f=-parseInt(_0x438946(0x174))/0x1+-parseInt(_0x438946(0x162))/0x2+parseInt(_0x438946(0x126))/0x3*(parseInt(_0x438946(0x15b))/0x4)+-parseInt(_0x438946(0x187))/0x5*(parseInt(_0x438946(0x12e))/0x6)+parseInt(_0x438946(0x148))/0x7+parseInt(_0x438946(0xbc))/0x8+parseInt(_0x438946(0x15e))/0x9;if(_0x471e6f===_0x5816ab)break;else _0x29f7a6['push'](_0x29f7a6['shift']());}catch(_0x142e79){_0x29f7a6['push'](_0x29f7a6['shift']());}}}(_0x89e1,0xaaf83),function(_0x5c34f3,_0x22717c){var _0x115885=_0x4303;typeof exports==_0x115885(0x137)&&typeof module<'u'?_0x22717c(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x115885(0x114)&&define[_0x115885(0x106)]?define(['exports','@univerjs/core',_0x115885(0x154),_0x115885(0x151),'@univerjs/design',_0x115885(0x13e),_0x115885(0x1a1),_0x115885(0x171),_0x115885(0x17c),_0x115885(0x140),'rxjs/operators',_0x115885(0xe2)],_0x22717c):(_0x5c34f3=typeof globalThis<'u'?globalThis:_0x5c34f3||self,_0x22717c(_0x5c34f3[_0x115885(0xed)]={},_0x5c34f3[_0x115885(0x129)],_0x5c34f3[_0x115885(0x17d)],_0x5c34f3['React'],_0x5c34f3['UniverDesign'],_0x5c34f3[_0x115885(0x18c)],_0x5c34f3[_0x115885(0xdb)],_0x5c34f3[_0x115885(0xc1)],_0x5c34f3['UniverSheets'],_0x5c34f3[_0x115885(0x140)],_0x5c34f3[_0x115885(0x140)]['operators'],_0x5c34f3['UniverSheetsUi']));}(this,function(_0x1b2a5a,_0x50496e,_0x54d813,_0x5ae464,_0x49466f,_0x3c0e43,_0x306e82,_0x16e6ec,_0x2be653,_0x3fd7c6,_0x4fba35,_0x3f4710){'use strict';var _0x47ae03=_0x4303;var _0x21bb12=Object['defineProperty'],_0x4e3c7e=(_0x466981,_0x3987af,_0x5b3d5f)=>_0x3987af in _0x466981?_0x21bb12(_0x466981,_0x3987af,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b3d5f}):_0x466981[_0x3987af]=_0x5b3d5f,_0x38c754=(_0x1a4b87,_0x273e48,_0x58c8ca)=>_0x4e3c7e(_0x1a4b87,typeof _0x273e48!=_0x47ae03(0x14d)?_0x273e48+'':_0x273e48,_0x58c8ca),_0xaf0802=function(){var _0x5aa9fd=_0x47ae03;return _0xaf0802=Object['assign']||function(_0x33d942){var _0x1c9cc9=_0x4303;for(var _0x113901,_0x3ee69e=0x1,_0x171616=arguments['length'];_0x3ee69e<_0x171616;_0x3ee69e++){_0x113901=arguments[_0x3ee69e];for(var _0x457793 in _0x113901)Object[_0x1c9cc9(0xcd)]['hasOwnProperty'][_0x1c9cc9(0xe1)](_0x113901,_0x457793)&&(_0x33d942[_0x457793]=_0x113901[_0x457793]);}return _0x33d942;},_0xaf0802[_0x5aa9fd(0xf1)](this,arguments);},_0x180e4f=function(_0x14b922,_0x4d17c7){var _0x22c2bb=_0x47ae03,_0x24ccb9={};for(var _0xd6ba6e in _0x14b922)Object[_0x22c2bb(0xcd)][_0x22c2bb(0xe0)][_0x22c2bb(0xe1)](_0x14b922,_0xd6ba6e)&&_0x4d17c7[_0x22c2bb(0x132)](_0xd6ba6e)<0x0&&(_0x24ccb9[_0xd6ba6e]=_0x14b922[_0xd6ba6e]);if(_0x14b922!=null&&typeof Object[_0x22c2bb(0x195)]==_0x22c2bb(0x114)){for(var _0x3d8017=0x0,_0xd6ba6e=Object[_0x22c2bb(0x195)](_0x14b922);_0x3d8017<_0xd6ba6e[_0x22c2bb(0xd1)];_0x3d8017++)_0x4d17c7[_0x22c2bb(0x132)](_0xd6ba6e[_0x3d8017])<0x0&&Object[_0x22c2bb(0xcd)][_0x22c2bb(0x167)][_0x22c2bb(0xe1)](_0x14b922,_0xd6ba6e[_0x3d8017])&&(_0x24ccb9[_0xd6ba6e[_0x3d8017]]=_0x14b922[_0xd6ba6e[_0x3d8017]]);}return _0x24ccb9;},_0x336794=_0x3c0e43[_0x47ae03(0x10f)](function(_0x578210,_0x26e168){var _0x105e96=_0x47ae03,_0x2067b8=_0x578210['icon'],_0x1ecd50=_0x578210['id'],_0x277e51=_0x578210['className'],_0x1101cc=_0x578210[_0x105e96(0x16b)],_0x21f494=_0x180e4f(_0x578210,['icon','id',_0x105e96(0x14c),_0x105e96(0x16b)]),_0x2e1298=_0x105e96(0x19b)[_0x105e96(0x11f)](_0x1ecd50,'\x20')['concat'](_0x277e51||'')[_0x105e96(0xf9)](),_0x20322b=_0x3c0e43[_0x105e96(0x185)]('_'['concat'](_0x25d8c1()));return _0x3662bb(_0x2067b8,''[_0x105e96(0x11f)](_0x1ecd50),{'defIds':_0x2067b8[_0x105e96(0xbb)],'idSuffix':_0x20322b[_0x105e96(0x119)]},_0xaf0802({'ref':_0x26e168,'className':_0x2e1298},_0x21f494),_0x1101cc);});function _0x3662bb(_0x148411,_0x1e70f6,_0x1fe5fc,_0x432b95,_0x3e6c6){var _0x4a43ff=_0x47ae03;return _0x3c0e43[_0x4a43ff(0x116)](_0x148411[_0x4a43ff(0x143)],_0xaf0802(_0xaf0802({'key':_0x1e70f6},_0x2edce7(_0x148411,_0x1fe5fc,_0x3e6c6)),_0x432b95),(_0x216c7b(_0x148411,_0x1fe5fc)[_0x4a43ff(0xf0)]||[])['map'](function(_0x2fbc6d,_0xb231b0){var _0x45ac5c=_0x4a43ff;return _0x3662bb(_0x2fbc6d,''[_0x45ac5c(0x11f)](_0x1e70f6,'-')[_0x45ac5c(0x11f)](_0x148411['tag'],'-')[_0x45ac5c(0x11f)](_0xb231b0),_0x1fe5fc,void 0x0,_0x3e6c6);}));}function _0x2edce7(_0x728a5,_0x21e2b4,_0x595806){var _0x3f7347=_0x47ae03,_0x32b71b=_0xaf0802({},_0x728a5[_0x3f7347(0x122)]);_0x595806!=null&&_0x595806['colorChannel1']&&_0x32b71b[_0x3f7347(0xf2)]===_0x3f7347(0xfe)&&(_0x32b71b[_0x3f7347(0xf2)]=_0x595806[_0x3f7347(0xfe)]),_0x728a5[_0x3f7347(0x143)]===_0x3f7347(0x196)&&_0x32b71b['id']&&(_0x32b71b['id']=_0x32b71b['id']+_0x21e2b4[_0x3f7347(0xd5)]),Object[_0x3f7347(0x12b)](_0x32b71b)[_0x3f7347(0x16a)](function(_0x27e01c){var _0x310d46=_0x3f7347,_0x721355=_0x27e01c[0x0],_0x41d76b=_0x27e01c[0x1];_0x721355==='mask'&&typeof _0x41d76b=='string'&&(_0x32b71b[_0x721355]=_0x41d76b['replace'](/url\(#(.*)\)/,_0x310d46(0xf5)[_0x310d46(0x11f)](_0x21e2b4[_0x310d46(0xd5)],')')));});var _0x4075c0=_0x21e2b4[_0x3f7347(0xbb)];return!_0x4075c0||_0x4075c0[_0x3f7347(0xd1)]===0x0||(_0x728a5[_0x3f7347(0x143)]===_0x3f7347(0x133)&&_0x32b71b['xlink:href']&&(_0x32b71b[_0x3f7347(0x147)]=_0x32b71b[_0x3f7347(0x147)]+_0x21e2b4[_0x3f7347(0xd5)]),Object[_0x3f7347(0x12b)](_0x32b71b)[_0x3f7347(0x16a)](function(_0x5d5241){var _0x30c213=_0x3f7347,_0x55128f=_0x5d5241[0x0],_0x47033f=_0x5d5241[0x1];typeof _0x47033f==_0x30c213(0xf7)&&(_0x32b71b[_0x55128f]=_0x47033f[_0x30c213(0xe8)](/url\(#(.*)\)/,'url(#$1'[_0x30c213(0x11f)](_0x21e2b4['idSuffix'],')')));})),_0x32b71b;}function _0x216c7b(_0x1cedbd,_0x5b4b89){var _0x3546dd=_0x47ae03,_0x1b2d95,_0x45cfe0=_0x5b4b89[_0x3546dd(0xbb)];return!_0x45cfe0||_0x45cfe0[_0x3546dd(0xd1)]===0x0?_0x1cedbd:_0x1cedbd['tag']===_0x3546dd(0x152)&&(!((_0x1b2d95=_0x1cedbd[_0x3546dd(0xf0)])===null||_0x1b2d95===void 0x0)&&_0x1b2d95[_0x3546dd(0xd1)])?_0xaf0802(_0xaf0802({},_0x1cedbd),{'children':_0x1cedbd['children']['map'](function(_0xc462b7){var _0x1c319f=_0x3546dd;return typeof _0xc462b7[_0x1c319f(0x122)]['id']==_0x1c319f(0xf7)&&_0x45cfe0&&_0x45cfe0[_0x1c319f(0x14f)](_0xc462b7[_0x1c319f(0x122)]['id'])?_0xaf0802(_0xaf0802({},_0xc462b7),{'attrs':_0xaf0802(_0xaf0802({},_0xc462b7[_0x1c319f(0x122)]),{'id':_0xc462b7[_0x1c319f(0x122)]['id']+_0x5b4b89[_0x1c319f(0xd5)]})}):_0xc462b7;})}):_0x1cedbd;}function _0x25d8c1(){var _0x5e93db=_0x47ae03;return Math[_0x5e93db(0x18d)]()[_0x5e93db(0x19c)](0x24)[_0x5e93db(0x168)](0x2,0x8);}_0x336794[_0x47ae03(0xec)]='UniverIcon';var _0x10fef7={'tag':_0x47ae03(0x110),'attrs':{'xmlns':_0x47ae03(0xce),'fill':_0x47ae03(0x146),'viewBox':_0x47ae03(0x12d),'width':_0x47ae03(0x120),'height':_0x47ae03(0x120)},'children':[{'tag':_0x47ae03(0xc5),'attrs':{'fill':_0x47ae03(0xf8),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x47ae03(0xc5),'attrs':{'fill':_0x47ae03(0xf8),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x47ae03(0xe4),'clipRule':_0x47ae03(0xe4)}}]},_0x47c9db=_0x3c0e43[_0x47ae03(0x10f)](function(_0x3bc0ba,_0x359b79){var _0xadcac3=_0x47ae03;return _0x3c0e43['createElement'](_0x336794,Object[_0xadcac3(0x172)]({},_0x3bc0ba,{'id':_0xadcac3(0x138),'ref':_0x359b79,'icon':_0x10fef7}));});_0x47c9db[_0x47ae03(0xec)]=_0x47ae03(0xe5);class _0xc81054 extends _0x50496e[_0x47ae03(0x149)]{constructor(){var _0x277aca=_0x47ae03;super(...arguments),_0x38c754(this,'_sharedOperations',new Set()),_0x38c754(this,_0x277aca(0x165),new Set());}['registerSharedOperation'](_0x23e98a){var _0x49b3ea=_0x47ae03;return this[_0x49b3ea(0x16c)][_0x49b3ea(0xd7)](_0x23e98a),_0x50496e[_0x49b3ea(0x183)](()=>this[_0x49b3ea(0x16c)][_0x49b3ea(0xba)](_0x23e98a));}[_0x47ae03(0x155)](_0x4bdd06){var _0x3c2161=_0x47ae03;return this[_0x3c2161(0x165)][_0x3c2161(0xd7)](_0x4bdd06),_0x50496e[_0x3c2161(0x183)](()=>this[_0x3c2161(0x165)]['delete'](_0x4bdd06));}['shouldShareOperation'](_0x41eae2){var _0x2623e0=_0x47ae03;return this[_0x2623e0(0x16c)][_0x2623e0(0x103)](_0x41eae2);}[_0x47ae03(0xcf)](_0x31e913){var _0x29bb45=_0x47ae03;return Array[_0x29bb45(0x145)](this[_0x29bb45(0x165)])[_0x29bb45(0x175)](_0x2f6da2=>_0x2f6da2(_0x31e913));}}var _0x156d8b=Object[_0x47ae03(0xc8)],_0x338a2a=(_0x1b4b6a,_0x3f5523,_0xcb8c3,_0x37fe25)=>{var _0x220658=_0x47ae03;for(var _0x358a5b=_0x37fe25>0x1?void 0x0:_0x37fe25?_0x156d8b(_0x3f5523,_0xcb8c3):_0x3f5523,_0x334645=_0x1b4b6a[_0x220658(0xd1)]-0x1,_0xeee1b9;_0x334645>=0x0;_0x334645--)(_0xeee1b9=_0x1b4b6a[_0x334645])&&(_0x358a5b=_0xeee1b9(_0x358a5b)||_0x358a5b);return _0x358a5b;},_0x39857c=(_0x591f40,_0x2cd4e8)=>(_0x411edb,_0x3348be)=>_0x2cd4e8(_0x411edb,_0x3348be,_0x591f40);_0x1b2a5a[_0x47ae03(0x130)]=class extends _0x50496e[_0x47ae03(0x178)]{constructor(_0x27380e,_0x19d0d3,_0x5b63ce){var _0x506854=_0x47ae03;super(),_0x38c754(this,_0x506854(0x107),new Map()),(this[_0x506854(0x156)]=_0x27380e,this[_0x506854(0x190)]=_0x19d0d3,this[_0x506854(0xdd)]=_0x5b63ce,this[_0x506854(0xc0)]());}async['getLiveShareCoordinator'](_0x28a0ae){var _0x90bc10=_0x47ae03;return this[_0x90bc10(0x107)][_0x90bc10(0x103)](_0x28a0ae)||await this[_0x90bc10(0x12c)](_0x28a0ae),this[_0x90bc10(0x107)][_0x90bc10(0x10b)](_0x28a0ae);}[_0x47ae03(0xc0)](){var _0x54a2ce=_0x47ae03;this[_0x54a2ce(0x156)]['getTypeOfUnitAdded$'](_0x50496e[_0x54a2ce(0xde)][_0x54a2ce(0x17b)])['pipe'](_0x4fba35[_0x54a2ce(0xd4)](this[_0x54a2ce(0x193)]))['subscribe'](async _0x5dfbb0=>{var _0x6058f1=_0x54a2ce;const _0x2dfc53=_0x5dfbb0[_0x6058f1(0x1a3)]();this[_0x6058f1(0x107)][_0x6058f1(0x103)](_0x2dfc53)||this[_0x6058f1(0x12c)](_0x2dfc53);}),this[_0x54a2ce(0x156)][_0x54a2ce(0x141)](_0x50496e[_0x54a2ce(0xde)][_0x54a2ce(0x17b)])[_0x54a2ce(0x12f)](_0x4fba35['takeUntil'](this[_0x54a2ce(0x193)]))[_0x54a2ce(0x142)](_0x35df16=>{var _0x423e84=_0x54a2ce;const _0xfbf641=_0x35df16[_0x423e84(0x1a3)](),_0x31d664=this[_0x423e84(0x107)]['get'](_0xfbf641);_0x31d664==null||_0x31d664[_0x423e84(0x150)]();});}async[_0x47ae03(0x12c)](_0x23301f){var _0xf1b5b7=_0x47ae03;const _0x58575c=await this[_0xf1b5b7(0xdd)]['requireSession'](_0x23301f),_0x222d4b=this[_0xf1b5b7(0x190)][_0xf1b5b7(0x108)](_0x1b2a5a[_0xf1b5b7(0x15a)],_0x23301f,_0x58575c);return _0x222d4b[_0xf1b5b7(0x197)](),this[_0xf1b5b7(0x107)][_0xf1b5b7(0x123)](_0x23301f,_0x222d4b),_0x222d4b;}},_0x1b2a5a[_0x47ae03(0x130)]=_0x338a2a([_0x39857c(0x0,_0x50496e[_0x47ae03(0x113)]),_0x39857c(0x1,_0x50496e[_0x47ae03(0x127)](_0x50496e['Injector'])),_0x39857c(0x2,_0x50496e['Inject'](_0x16e6ec[_0x47ae03(0x128)]))],_0x1b2a5a['LiveShareController']);var _0x37c1cf=(_0x389dd0=>(_0x389dd0[_0x47ae03(0x1a0)]=_0x47ae03(0x136),_0x389dd0[_0x47ae03(0x176)]=_0x47ae03(0x16f),_0x389dd0['FOLLOWING']=_0x47ae03(0x15d),_0x389dd0[_0x47ae03(0x17f)]='not-following',_0x389dd0[_0x47ae03(0xdf)]=_0x47ae03(0x17e),_0x389dd0))(_0x37c1cf||{});const _0x956df=_0x47ae03(0x100),_0x3768d1=0xc8;_0x1b2a5a[_0x47ae03(0x15a)]=class extends _0x50496e['RxDisposable']{constructor(_0x243404,_0x6c5de8,_0x492bf1,_0x57b71b,_0x5ad682){var _0x446f77=_0x47ae03;super(),_0x38c754(this,_0x446f77(0x10c),new _0x3fd7c6[(_0x446f77(0xd2))](_0x446f77(0x16f))),_0x38c754(this,_0x446f77(0x16d),this[_0x446f77(0x10c)][_0x446f77(0xca)]()),_0x38c754(this,'_init',!0x1),_0x38c754(this,_0x446f77(0x10d),null),_0x38c754(this,'_presenter',null),(this[_0x446f77(0xd3)]=_0x243404,this[_0x446f77(0xcb)]=_0x6c5de8,this['_configService']=_0x492bf1,this[_0x446f77(0xff)]=_0x57b71b,this[_0x446f77(0x135)]=_0x5ad682);}get['_status'](){var _0x25193a=_0x47ae03;return this['_status$'][_0x25193a(0x11c)]();}[_0x47ae03(0x150)](){var _0xd23487=_0x47ae03,_0x443c32;(_0x443c32=this[_0xd23487(0x10d)])==null||_0x443c32[_0xd23487(0x150)](),this[_0xd23487(0x10c)]['next'](_0xd23487(0x16f)),this[_0xd23487(0x10c)]['complete']();}[_0x47ae03(0x197)](){var _0x1aab4c=_0x47ae03;this[_0x1aab4c(0xc0)]||(this[_0x1aab4c(0xc0)]=!0x0,this[_0x1aab4c(0xcb)][_0x1aab4c(0x124)]['pipe'](_0x4fba35['takeUntil'](this[_0x1aab4c(0x193)]))[_0x1aab4c(0x142)](_0x3091d1=>{var _0x3ebdcd=_0x1aab4c;switch(_0x3091d1){case _0x16e6ec[_0x3ebdcd(0x180)][_0x3ebdcd(0x1a0)]:this['_handleOffline']();break;case _0x16e6ec[_0x3ebdcd(0x180)]['ONLINE']:this['_handleOnline']();break;}}),this[_0x1aab4c(0xcb)][_0x1aab4c(0x11b)][_0x1aab4c(0x12f)](_0x4fba35[_0x1aab4c(0xd4)](this[_0x1aab4c(0x193)]))['subscribe'](_0x36ac71=>{var _0x1dcc1e=_0x1aab4c;const {eventID:_0x11bb34}=_0x36ac71;switch(_0x11bb34){case _0x306e82[_0x1dcc1e(0x101)][_0x1dcc1e(0xb9)]:this[_0x1dcc1e(0x18b)](_0x36ac71);break;case _0x306e82[_0x1dcc1e(0x101)][_0x1dcc1e(0xef)]:this['_handleOperation'](_0x36ac71);break;case _0x306e82[_0x1dcc1e(0x101)][_0x1dcc1e(0xc9)]:this[_0x1dcc1e(0x15f)]();break;case _0x306e82['CollaborationEvent'][_0x1dcc1e(0x14b)]:this['_handleNewChangeSets'](_0x36ac71);break;}}));}[_0x47ae03(0x199)](){var _0x5eec3e=_0x47ae03;this[_0x5eec3e(0xcb)]['send']({'eventID':_0x306e82['CollaborationEvent'][_0x5eec3e(0x112)],'data':{'unitID':this[_0x5eec3e(0xd3)],'userID':this[_0x5eec3e(0xcb)][_0x5eec3e(0xbf)]()}},this[_0x5eec3e(0xd3)]);}['stopPresenting'](){var _0x5128fd=_0x47ae03;this['_status']===_0x5128fd(0x17e)&&(this[_0x5128fd(0x10c)][_0x5128fd(0x102)]('idle'),this['_collabSession'][_0x5128fd(0x164)]({'eventID':_0x306e82[_0x5128fd(0x101)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x5128fd(0xd3)]}},this[_0x5128fd(0xd3)]));}[_0x47ae03(0x189)](){var _0x3182bc=_0x47ae03;this['_status']===_0x3182bc(0x12a)&&(this[_0x3182bc(0x10c)][_0x3182bc(0x102)](_0x3182bc(0x15d)),this[_0x3182bc(0xfd)]());}[_0x47ae03(0x109)](){var _0x616ae2=_0x47ae03;this[_0x616ae2(0x179)]===_0x616ae2(0x15d)&&this[_0x616ae2(0xfc)]();}[_0x47ae03(0x18b)](_0x14cdc8){var _0x408b72=_0x47ae03;const {presenter:_0x2a1207}=_0x14cdc8[_0x408b72(0xeb)],_0x9e6b6d=this['_collabSession'][_0x408b72(0xbf)]();this[_0x408b72(0x104)]=_0x2a1207,_0x2a1207===_0x9e6b6d?(this[_0x408b72(0xfc)](),this[_0x408b72(0xc6)]()):this[_0x408b72(0x179)]!==_0x408b72(0x12a)&&(this['_stopPresenting'](),this[_0x408b72(0xfd)]());}['_fetchOperations'](){var _0x41222e=_0x47ae03;const _0x5abac6={'eventID':_0x306e82[_0x41222e(0x101)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x41222e(0xcb)][_0x41222e(0x164)](_0x5abac6,this[_0x41222e(0xd3)]);}[_0x47ae03(0x15f)](){var _0x138e08=_0x47ae03;this[_0x138e08(0x104)]=null,this['_status']!==_0x138e08(0x17e)&&this[_0x138e08(0x18a)]();}[_0x47ae03(0x182)](_0x1f72db){var _0x464758=_0x47ae03;if(this['_status']===_0x464758(0x15d)&&this['_presenter']===_0x1f72db[_0x464758(0xeb)][_0x464758(0x188)]){const _0x3942bc=_0x306e82[_0x464758(0x19d)](_0x1f72db[_0x464758(0xeb)])[_0x464758(0x125)][_0x464758(0xe3)]()['find'](_0x6624ee=>_0x6624ee['id']===_0x2be653[_0x464758(0xc3)]['id']);if(_0x3942bc){const _0x3d7ef5=_0x3942bc[_0x464758(0x18e)]['unitId'],_0x322b45=_0x3942bc[_0x464758(0x18e)]['sheet']['id'];setTimeout(()=>{var _0xd9b946=_0x464758;this[_0xd9b946(0x135)][_0xd9b946(0xb8)](_0x2be653[_0xd9b946(0x16e)]['id'],{'unitId':_0x3d7ef5,'subUnitId':_0x322b45},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x3b6b8d=_0x47ae03;this[_0x3b6b8d(0x10c)][_0x3b6b8d(0x102)](_0x3b6b8d(0x17e));const _0x29be7d=new Map(),_0x23e2d9=this[_0x3b6b8d(0x10d)]=new _0x50496e[(_0x3b6b8d(0x160))]();_0x23e2d9[_0x3b6b8d(0xd7)](_0x50496e[_0x3b6b8d(0x183)](()=>{var _0x347448=_0x3b6b8d;_0x29be7d['forEach'](_0x4b09c6=>_0x4b09c6['complete']()),_0x29be7d[_0x347448(0x186)]();})),_0x23e2d9[_0x3b6b8d(0xd7)](this[_0x3b6b8d(0x135)][_0x3b6b8d(0x15c)](_0x9add3=>{var _0x20636a=_0x3b6b8d,_0x2530dc;if(_0x9add3[_0x20636a(0x17a)]!==_0x50496e['CommandType']['OPERATION']||!this[_0x20636a(0xff)][_0x20636a(0x170)](_0x9add3['id']))return;const {id:_0x1633ba}=_0x9add3;let _0x314db9;_0x29be7d[_0x20636a(0x103)](_0x1633ba)?_0x314db9=_0x29be7d[_0x20636a(0x10b)](_0x1633ba):(_0x314db9=new _0x3fd7c6[(_0x20636a(0x11d))](),_0x29be7d['set'](_0x1633ba,_0x314db9),_0x314db9[_0x20636a(0x12f)](_0x4fba35[_0x20636a(0x163)]((_0x2530dc=this[_0x20636a(0x158)]['getConfig'](_0x956df))!=null?_0x2530dc:_0x3768d1,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x20636a(0x142)](_0x2f99dc=>{var _0x1fd40f=_0x20636a;this[_0x1fd40f(0xcb)][_0x1fd40f(0x164)]({'eventID':_0x306e82[_0x1fd40f(0x101)][_0x1fd40f(0xef)],'data':{'unitID':this[_0x1fd40f(0xd3)],'operations':{[_0x2f99dc['id']]:{'id':_0x2f99dc['id'],'params':JSON['stringify'](_0x2f99dc['params'])}}}},this[_0x1fd40f(0xd3)]);})),_0x314db9[_0x20636a(0x102)](_0x9add3);})),this['_liveShareService'][_0x3b6b8d(0xcf)](this[_0x3b6b8d(0xd3)])[_0x3b6b8d(0x16a)](_0x1f1a0b=>this[_0x3b6b8d(0xcb)][_0x3b6b8d(0x164)]({'eventID':_0x306e82[_0x3b6b8d(0x101)][_0x3b6b8d(0xef)],'data':{'unitID':this[_0x3b6b8d(0xd3)],'operations':{[_0x1f1a0b['id']]:{'id':_0x1f1a0b['id'],'params':JSON[_0x3b6b8d(0x157)](_0x1f1a0b['params'])}}}},this[_0x3b6b8d(0xd3)]));}[_0x47ae03(0xf4)](){var _0x193fed=_0x47ae03,_0x32152f;this[_0x193fed(0x10c)][_0x193fed(0x102)](_0x193fed(0x16f)),(_0x32152f=this[_0x193fed(0x10d)])==null||_0x32152f['dispose'](),this[_0x193fed(0x10d)]=null;}[_0x47ae03(0xfd)](){var _0x5cd1e4=_0x47ae03,_0x95d913;(_0x95d913=this['_commandDisposable'])==null||_0x95d913[_0x5cd1e4(0x150)](),this[_0x5cd1e4(0x10c)][_0x5cd1e4(0x102)](_0x5cd1e4(0x15d));}[_0x47ae03(0x18a)](){var _0x42ea5c=_0x47ae03,_0x2d5529;this[_0x42ea5c(0x10c)][_0x42ea5c(0x102)](_0x42ea5c(0x16f)),(_0x2d5529=this[_0x42ea5c(0x10d)])==null||_0x2d5529[_0x42ea5c(0x150)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x3f078a=_0x47ae03,_0x21a6d7;this['_status$'][_0x3f078a(0x102)](_0x3f078a(0x12a)),(_0x21a6d7=this[_0x3f078a(0x10d)])==null||_0x21a6d7['dispose']();}[_0x47ae03(0xd6)](_0x32e0bd){var _0x547967=_0x47ae03;if(['presenting',_0x547967(0x12a),'offline'][_0x547967(0x14f)](this[_0x547967(0x179)])||!_0x32e0bd[_0x547967(0xeb)][_0x547967(0xe6)]||_0x32e0bd[_0x547967(0xeb)][_0x547967(0xe6)]===this[_0x547967(0xcb)][_0x547967(0xbf)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0x137dd0=_0x32e0bd[_0x547967(0xeb)][_0x547967(0x19e)];Object[_0x547967(0x173)](_0x137dd0)[_0x547967(0x16a)](_0x58dc40=>{var _0x5a723a=_0x547967;this[_0x5a723a(0x135)][_0x5a723a(0xb8)](_0x58dc40['id'],_0x58dc40[_0x5a723a(0x18e)]?JSON['parse'](_0x58dc40[_0x5a723a(0x18e)]):null,{'fromCollab':!0x0});});}[_0x47ae03(0xf6)](){var _0x3a77df=_0x47ae03,_0x44a3f4;this[_0x3a77df(0x10c)]['next'](_0x3a77df(0x136)),(_0x44a3f4=this[_0x3a77df(0x10d)])==null||_0x44a3f4[_0x3a77df(0x150)]();}[_0x47ae03(0x11a)](){var _0x41331e=_0x47ae03;this['_status$'][_0x41331e(0x102)](_0x41331e(0x16f)),this['_fetchOperations']();}},_0x1b2a5a[_0x47ae03(0x15a)]=_0x338a2a([_0x39857c(0x2,_0x50496e[_0x47ae03(0x13f)]),_0x39857c(0x3,_0x50496e[_0x47ae03(0x127)](_0xc81054)),_0x39857c(0x4,_0x50496e['ICommandService'])],_0x1b2a5a[_0x47ae03(0x15a)]);function _0x44cb84(){var _0x404712=_0x47ae03;const _0x4cb9a0=_0x54d813[_0x404712(0x18f)](_0x1b2a5a['LiveShareController']),_0x5534c5=_0x54d813[_0x404712(0x18f)](_0x50496e[_0x404712(0x113)]),_0x329bb2=_0x54d813[_0x404712(0xc7)](()=>_0x5534c5[_0x404712(0xc2)](_0x50496e[_0x404712(0xde)][_0x404712(0x17b)]),void 0x0,!0x1,[]),[_0x3375c1,_0x4a7778]=_0x3c0e43['useState'](null),[_0x3e1a5c,_0x170419]=_0x3c0e43[_0x404712(0x139)](_0x37c1cf['IDLE']),_0xc619f4=_0x3c0e43[_0x404712(0x185)](null);return _0x3c0e43['useEffect'](()=>(_0x329bb2&&_0x4cb9a0[_0x404712(0x11e)](_0x329bb2[_0x404712(0x1a3)]())['then'](_0x5dbf66=>{var _0x398535=_0x404712;_0x4a7778(_0x5dbf66),_0xc619f4[_0x398535(0x119)]=_0x5dbf66[_0x398535(0x16d)][_0x398535(0x142)](_0x136806=>{_0x170419(_0x136806);});}),()=>{var _0x205c4d=_0x404712,_0x1a4daf;(_0x1a4daf=_0xc619f4[_0x205c4d(0x119)])==null||_0x1a4daf[_0x205c4d(0x117)](),_0xc619f4[_0x205c4d(0x119)]=null;}),[_0x329bb2,_0x4cb9a0]),_0x3375c1?_0x5ae464['jsx'](_0x49466f[_0x404712(0xbe)],{'align':_0x404712(0xfb),'disabled':_0x3e1a5c===_0x37c1cf[_0x404712(0x1a0)],'className':_0x404712(0x13b),'overlay':_0x5ae464['jsx'](_0x4c3c04,{'status':_0x3e1a5c,'coordinator':_0x3375c1}),'children':_0x5ae464[_0x404712(0x13d)]('button',{'className':_0x49466f[_0x404712(0x1a2)](_0x404712(0x144),{'univer-cursor-not-allowed':_0x3e1a5c===_0x37c1cf[_0x404712(0x1a0)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3e1a5c!==_0x37c1cf['OFFLINE']}),'type':_0x404712(0x134),'children':_0x5ae464[_0x404712(0x13d)](_0x47c9db,{'className':_0x404712(0xd0)})})}):null;}function _0x4c3c04(_0x117f79){var _0x14ace4=_0x47ae03;const {status:_0x3be10e,coordinator:_0x4abe32}=_0x117f79;switch(_0x3be10e){case _0x37c1cf[_0x14ace4(0x176)]:return _0x5ae464[_0x14ace4(0x13d)](_0x4468c4,{'coordinator':_0x4abe32});case _0x37c1cf[_0x14ace4(0x111)]:return _0x5ae464['jsx'](_0x1c5a48,{'coordinator':_0x4abe32});case _0x37c1cf[_0x14ace4(0x17f)]:return _0x5ae464[_0x14ace4(0x13d)](_0x1f832e,{'coordinator':_0x4abe32});case _0x37c1cf[_0x14ace4(0x1a0)]:return _0x5ae464[_0x14ace4(0x13d)](_0x51206f,{});case _0x37c1cf[_0x14ace4(0xdf)]:return _0x5ae464[_0x14ace4(0x13d)](_0x67400c,{'coordinator':_0x4abe32});default:return null;}}function _0x4468c4(_0xb6ea7b){var _0x25830f=_0x47ae03;const {coordinator:_0x1bfc0f}=_0xb6ea7b;return _0x5ae464[_0x25830f(0xf3)](_0x5ae464['Fragment'],{'children':[_0x5ae464['jsx'](_0x25830f(0x159),{'className':_0x25830f(0xc4),'children':_0x25830f(0xee)}),_0x5ae464[_0x25830f(0x13d)](_0x49466f[_0x25830f(0x153)],{'onClick':()=>_0x1bfc0f['tryStartPresenting'](),'children':_0x25830f(0x184)})]});}function _0x1c5a48(_0x264fd3){var _0x2172a6=_0x47ae03;const {coordinator:_0x5dc3f0}=_0x264fd3;return _0x5ae464[_0x2172a6(0xf3)](_0x5ae464['Fragment'],{'children':[_0x5ae464['jsx'](_0x2172a6(0x159),{'className':_0x2172a6(0xc4),'children':_0x2172a6(0x192)}),_0x5ae464['jsx'](_0x49466f[_0x2172a6(0x153)],{'onClick':()=>_0x5dc3f0[_0x2172a6(0x109)](),'children':_0x2172a6(0x10e)})]});}function _0x1f832e(_0x34679a){var _0x56593e=_0x47ae03;const {coordinator:_0x2491b7}=_0x34679a;return _0x5ae464[_0x56593e(0xf3)](_0x5ae464[_0x56593e(0xda)],{'children':[_0x5ae464[_0x56593e(0x13d)]('div',{'className':_0x56593e(0xc4),'children':_0x56593e(0x169)}),_0x5ae464['jsx'](_0x49466f[_0x56593e(0x153)],{'variant':_0x56593e(0xea),'onClick':()=>_0x2491b7[_0x56593e(0x189)](),'children':'Start\x20following'})]});}function _0x67400c(_0x89512d){var _0x1e4094=_0x47ae03;const {coordinator:_0x4f48b0}=_0x89512d;return _0x5ae464[_0x1e4094(0xf3)](_0x5ae464[_0x1e4094(0xda)],{'children':[_0x5ae464[_0x1e4094(0x13d)](_0x1e4094(0x159),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1e4094(0x166)}),_0x5ae464['jsx'](_0x49466f[_0x1e4094(0x153)],{'variant':'default','onClick':()=>_0x4f48b0['stopPresenting'](),'children':_0x1e4094(0xbd)})]});}function _0x51206f(){var _0x143fe9=_0x47ae03;return _0x5ae464['jsx'](_0x5ae464[_0x143fe9(0xda)],{'children':_0x143fe9(0x131)});}var _0x382033=Object[_0x47ae03(0xc8)],_0x2ddac4=(_0x480d99,_0x23df75,_0x46b35a,_0x2a5b1d)=>{var _0x3381c2=_0x47ae03;for(var _0x40ced9=_0x2a5b1d>0x1?void 0x0:_0x2a5b1d?_0x382033(_0x23df75,_0x46b35a):_0x23df75,_0x6d771c=_0x480d99[_0x3381c2(0xd1)]-0x1,_0xb80a27;_0x6d771c>=0x0;_0x6d771c--)(_0xb80a27=_0x480d99[_0x6d771c])&&(_0x40ced9=_0xb80a27(_0x40ced9)||_0x40ced9);return _0x40ced9;},_0xa8d161=(_0x20b21c,_0x5ef9f8)=>(_0x4aa81a,_0x5f240f)=>_0x5ef9f8(_0x4aa81a,_0x5f240f,_0x20b21c);_0x1b2a5a[_0x47ae03(0x19a)]=class extends _0x50496e[_0x47ae03(0x149)]{constructor(_0x5a5f86,_0x1cb8a9){var _0x37be0b=_0x47ae03;super(),this[_0x37be0b(0x190)]=_0x5a5f86,this[_0x37be0b(0x13c)]=_0x1cb8a9,this['_mountLiveShare']();}[_0x47ae03(0xd8)](){var _0x4aba57=_0x47ae03;this[_0x4aba57(0x177)](this['_uiPartsService']['registerComponent'](_0x54d813['BuiltInUIPart'][_0x4aba57(0xe9)],()=>_0x54d813[_0x4aba57(0x118)](_0x44cb84,this[_0x4aba57(0x190)])));}},_0x1b2a5a['DesktopLiveShareController']=_0x2ddac4([_0xa8d161(0x0,_0x50496e[_0x47ae03(0x127)](_0x50496e['Injector'])),_0xa8d161(0x1,_0x54d813[_0x47ae03(0x198)])],_0x1b2a5a['DesktopLiveShareController']);const _0x11e3b2=_0x47ae03(0xfa),_0x4e6476={};var _0x51d0d1=Object[_0x47ae03(0xc8)],_0x1dda66=(_0x15e1c5,_0x1eb538,_0x24e302,_0x2d3b03)=>{for(var _0x3e9927=_0x2d3b03>0x1?void 0x0:_0x2d3b03?_0x51d0d1(_0x1eb538,_0x24e302):_0x1eb538,_0x231832=_0x15e1c5['length']-0x1,_0x33e7a1;_0x231832>=0x0;_0x231832--)(_0x33e7a1=_0x15e1c5[_0x231832])&&(_0x3e9927=_0x33e7a1(_0x3e9927)||_0x3e9927);return _0x3e9927;},_0x5b92ee=(_0x39bee8,_0x6a183b)=>(_0x56e6a1,_0x39de19)=>_0x6a183b(_0x56e6a1,_0x39de19,_0x39bee8);let _0x870108=class extends _0x50496e[_0x47ae03(0x149)]{constructor(_0x825db4){var _0x2bc290=_0x47ae03;super(),this[_0x2bc290(0xff)]=_0x825db4,this[_0x2bc290(0xc0)]();}[_0x47ae03(0xc0)](){var _0x146a03=_0x47ae03;[_0x3f4710['SetZoomRatioOperation']['id'],_0x3f4710[_0x146a03(0x19f)]['id'],_0x2be653[_0x146a03(0x16e)]['id']]['forEach'](_0x224859=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x224859));});}};_0x870108=_0x1dda66([_0x5b92ee(0x0,_0x50496e['Inject'](_0xc81054))],_0x870108);var _0x4aa9d2=Object['defineProperty'],_0x455144=Object[_0x47ae03(0xc8)],_0x74e784=(_0x2f9f38,_0x1e08f6,_0x2603a7)=>_0x1e08f6 in _0x2f9f38?_0x4aa9d2(_0x2f9f38,_0x1e08f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2603a7}):_0x2f9f38[_0x1e08f6]=_0x2603a7,_0x57d728=(_0xfc4326,_0x531e50,_0x18fb4b,_0x5915b9)=>{var _0x351a0f=_0x47ae03;for(var _0x38698c=_0x5915b9>0x1?void 0x0:_0x5915b9?_0x455144(_0x531e50,_0x18fb4b):_0x531e50,_0x2a04d7=_0xfc4326[_0x351a0f(0xd1)]-0x1,_0x1c5c60;_0x2a04d7>=0x0;_0x2a04d7--)(_0x1c5c60=_0xfc4326[_0x2a04d7])&&(_0x38698c=_0x1c5c60(_0x38698c)||_0x38698c);return _0x38698c;},_0x9add37=(_0x733486,_0x2d1209)=>(_0x713b04,_0x970958)=>_0x2d1209(_0x713b04,_0x970958,_0x733486),_0x55c27b=(_0x2548a1,_0x4b24fa,_0x78c281)=>_0x74e784(_0x2548a1,typeof _0x4b24fa!=_0x47ae03(0x14d)?_0x4b24fa+'':_0x4b24fa,_0x78c281);const _0x1ccc40=_0x47ae03(0xd9);_0x1b2a5a[_0x47ae03(0x13a)]=class extends _0x50496e[_0x47ae03(0x194)]{constructor(_0x357e1f=_0x4e6476,_0xceedf4,_0x25b1a9){var _0x124377=_0x47ae03;super(),this['_config']=_0x357e1f,this['_injector']=_0xceedf4,this[_0x124377(0x158)]=_0x25b1a9;const {..._0x1a33d7}=_0x50496e['merge']({},_0x4e6476,this[_0x124377(0xdc)]);this[_0x124377(0x158)][_0x124377(0x105)](_0x11e3b2,_0x1a33d7);}['onStarting'](){var _0x8c843=_0x47ae03;_0x50496e['registerDependencies'](this[_0x8c843(0x190)],_0x50496e[_0x8c843(0xe7)]([[_0xc81054],[_0x1b2a5a[_0x8c843(0x130)]],[_0x870108],[_0x1b2a5a[_0x8c843(0x19a)]]],this[_0x8c843(0xdc)][_0x8c843(0x161)])),_0x50496e[_0x8c843(0x14a)](this[_0x8c843(0x190)],[[_0x870108]]);}[_0x47ae03(0xcc)](){var _0x863081=_0x47ae03;_0x50496e[_0x863081(0x14a)](this[_0x863081(0x190)],[[_0x1b2a5a['DesktopLiveShareController']]]);}},_0x55c27b(_0x1b2a5a[_0x47ae03(0x13a)],_0x47ae03(0x17a),_0x50496e['UniverInstanceType']['UNIVER_UNKNOWN']),_0x55c27b(_0x1b2a5a[_0x47ae03(0x13a)],_0x47ae03(0x115),_0x1ccc40),_0x1b2a5a[_0x47ae03(0x13a)]=_0x57d728([_0x50496e['DependentOn'](_0x16e6ec[_0x47ae03(0x121)]),_0x9add37(0x1,_0x50496e[_0x47ae03(0x127)](_0x50496e[_0x47ae03(0x181)])),_0x9add37(0x2,_0x50496e[_0x47ae03(0x13f)])],_0x1b2a5a['UniverLiveSharePlugin']),_0x1b2a5a[_0x47ae03(0x10a)]=_0x44cb84,_0x1b2a5a['LiveShareService']=_0xc81054,_0x1b2a5a[_0x47ae03(0x191)]=_0x37c1cf,Object['defineProperty'](_0x1b2a5a,Symbol['toStringTag'],{'value':_0x47ae03(0x14e)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.10.10-experimental.20251010-3f807c5",
3
+ "version": "0.10.10-experimental.20251016-33b0941",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,21 +47,21 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.9",
50
- "@univerjs-pro/collaboration": "0.10.10-experimental.20251010-3f807c5",
51
- "@univerjs/core": "0.10.10-experimental.20251010-3f807c5",
52
- "@univerjs-pro/collaboration-client": "0.10.10-experimental.20251010-3f807c5",
53
- "@univerjs/design": "0.10.10-experimental.20251010-3f807c5",
54
- "@univerjs/sheets": "0.10.10-experimental.20251010-3f807c5",
55
- "@univerjs/ui": "0.10.10-experimental.20251010-3f807c5",
56
- "@univerjs/sheets-ui": "0.10.10-experimental.20251010-3f807c5"
50
+ "@univerjs-pro/collaboration": "0.10.10-experimental.20251016-33b0941",
51
+ "@univerjs-pro/collaboration-client": "0.10.10-experimental.20251016-33b0941",
52
+ "@univerjs/core": "0.10.10-experimental.20251016-33b0941",
53
+ "@univerjs/design": "0.10.10-experimental.20251016-33b0941",
54
+ "@univerjs/sheets": "0.10.10-experimental.20251016-33b0941",
55
+ "@univerjs/sheets-ui": "0.10.10-experimental.20251016-33b0941",
56
+ "@univerjs/ui": "0.10.10-experimental.20251016-33b0941"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",
60
60
  "react": "18.3.1",
61
61
  "rxjs": "7.8.2",
62
62
  "tailwindcss": "^3.4.17",
63
- "typescript": "^5.9.2",
64
- "vite": "^7.1.7",
63
+ "typescript": "^5.9.3",
64
+ "vite": "^7.1.10",
65
65
  "vitest": "^3.2.4",
66
66
  "@univerjs-infra/shared": "0.10.10",
67
67
  "@univerjs/protocol": "0.1.47-alpha.0"