@univerjs-pro/live-share 0.9.1 → 0.9.2

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 _0x4767bd=_0xcd43;(function(_0x1b56a0,_0x48aa89){var _0x377734=_0xcd43,_0x42d63f=_0x1b56a0();while(!![]){try{var _0x35b01c=-parseInt(_0x377734(0x141))/0x1+parseInt(_0x377734(0x1c8))/0x2*(-parseInt(_0x377734(0x1a5))/0x3)+parseInt(_0x377734(0x1c4))/0x4+-parseInt(_0x377734(0x136))/0x5*(parseInt(_0x377734(0x126))/0x6)+parseInt(_0x377734(0x169))/0x7*(-parseInt(_0x377734(0x109))/0x8)+parseInt(_0x377734(0x14a))/0x9+parseInt(_0x377734(0x145))/0xa*(parseInt(_0x377734(0xfa))/0xb);if(_0x35b01c===_0x48aa89)break;else _0x42d63f['push'](_0x42d63f['shift']());}catch(_0x1944f0){_0x42d63f['push'](_0x42d63f['shift']());}}}(_0x333b,0x3eb03));var U=Object[_0x4767bd(0xf1)],F=(_0x9eddae,_0x134d56,_0x5e8d10)=>_0x134d56 in _0x9eddae?U(_0x9eddae,_0x134d56,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e8d10}):_0x9eddae[_0x134d56]=_0x5e8d10,v=(_0x548f48,_0x8a445e,_0x2280c4)=>F(_0x548f48,typeof _0x8a445e!=_0x4767bd(0x116)?_0x8a445e+'':_0x8a445e,_0x2280c4);Object[_0x4767bd(0xf1)](exports,Symbol[_0x4767bd(0x14b)],{'value':'Module'});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x4767bd(0x1c0),x={};class O extends o[_0x4767bd(0x14f)]{constructor(){var _0x45d9b0=_0x4767bd;super(...arguments),v(this,_0x45d9b0(0xef),new Set()),v(this,'_reporters',new Set());}[_0x4767bd(0x10d)](_0x561fd4){var _0x2d2edc=_0x4767bd;return this[_0x2d2edc(0xef)][_0x2d2edc(0x180)](_0x561fd4),o[_0x2d2edc(0x190)](()=>this['_sharedOperations'][_0x2d2edc(0x1c3)](_0x561fd4));}[_0x4767bd(0x14e)](_0x39608e){var _0x4e2c47=_0x4767bd;return this[_0x4e2c47(0x1cb)][_0x4e2c47(0x180)](_0x39608e),o[_0x4e2c47(0x190)](()=>this[_0x4e2c47(0x1cb)][_0x4e2c47(0x1c3)](_0x39608e));}[_0x4767bd(0x1c2)](_0x2f4cb3){var _0x4f732d=_0x4767bd;return this[_0x4f732d(0xef)]['has'](_0x2f4cb3);}[_0x4767bd(0x16f)](_0x187e00){var _0x2c9733=_0x4767bd;return Array[_0x2c9733(0x1a4)](this['_reporters'])[_0x2c9733(0x149)](_0xfc0700=>_0xfc0700(_0x187e00));}}var H=Object[_0x4767bd(0x16b)],V=(_0x2b3ac9,_0x5767df,_0x1833fb,_0x883915)=>{var _0x52807f=_0x4767bd;for(var _0x40a965=_0x883915>0x1?void 0x0:_0x883915?H(_0x5767df,_0x1833fb):_0x5767df,_0x3b1a7a=_0x2b3ac9[_0x52807f(0x11a)]-0x1,_0x29b013;_0x3b1a7a>=0x0;_0x3b1a7a--)(_0x29b013=_0x2b3ac9[_0x3b1a7a])&&(_0x40a965=_0x29b013(_0x40a965)||_0x40a965);return _0x40a965;},k=(_0x2707ba,_0x2389c4)=>(_0x393ea6,_0x1a1705)=>_0x2389c4(_0x393ea6,_0x1a1705,_0x2707ba);let E=class extends o[_0x4767bd(0x14f)]{constructor(_0x4ab0b0){var _0x255841=_0x4767bd;super(),this[_0x255841(0x143)]=_0x4ab0b0,this[_0x255841(0x117)]();}[_0x4767bd(0x117)](){var _0x55c250=_0x4767bd;[w[_0x55c250(0x112)]['id'],w['SetScrollOperation']['id'],C[_0x55c250(0x1c7)]['id']][_0x55c250(0x189)](_0x5b6cd8=>{var _0x1e541b=_0x55c250;this[_0x1e541b(0x114)](this[_0x1e541b(0x143)][_0x1e541b(0x10d)](_0x5b6cd8));});}};E=V([k(0x0,o[_0x4767bd(0x1cc)](O))],E);var u=function(){var _0x1c0d1e=_0x4767bd;return u=Object['assign']||function(_0x86c29f){var _0x563254=_0xcd43;for(var _0x2c7b76,_0x5be86b=0x1,_0x4b5578=arguments[_0x563254(0x11a)];_0x5be86b<_0x4b5578;_0x5be86b++){_0x2c7b76=arguments[_0x5be86b];for(var _0x475bf5 in _0x2c7b76)Object['prototype'][_0x563254(0x115)][_0x563254(0x155)](_0x2c7b76,_0x475bf5)&&(_0x86c29f[_0x475bf5]=_0x2c7b76[_0x475bf5]);}return _0x86c29f;},u[_0x1c0d1e(0x118)](this,arguments);},M=function(_0x43c3f2,_0x341158){var _0x521aa4=_0x4767bd,_0x2c49de={};for(var _0x4efbcb in _0x43c3f2)Object['prototype'][_0x521aa4(0x115)][_0x521aa4(0x155)](_0x43c3f2,_0x4efbcb)&&_0x341158[_0x521aa4(0x151)](_0x4efbcb)<0x0&&(_0x2c49de[_0x4efbcb]=_0x43c3f2[_0x4efbcb]);if(_0x43c3f2!=null&&typeof Object[_0x521aa4(0x12b)]=='function'){for(var _0x4ea588=0x0,_0x4efbcb=Object['getOwnPropertySymbols'](_0x43c3f2);_0x4ea588<_0x4efbcb[_0x521aa4(0x11a)];_0x4ea588++)_0x341158['indexOf'](_0x4efbcb[_0x4ea588])<0x0&&Object[_0x521aa4(0x12a)][_0x521aa4(0x103)][_0x521aa4(0x155)](_0x43c3f2,_0x4efbcb[_0x4ea588])&&(_0x2c49de[_0x4efbcb[_0x4ea588]]=_0x43c3f2[_0x4efbcb[_0x4ea588]]);}return _0x2c49de;},j=f[_0x4767bd(0x181)](function(_0x4785ce,_0x2bf2a5){var _0x924221=_0x4767bd,_0x1dbd69=_0x4785ce['icon'],_0x3c3c35=_0x4785ce['id'],_0x317e73=_0x4785ce[_0x924221(0x108)],_0x531c87=_0x4785ce[_0x924221(0x192)],_0xc869c6=M(_0x4785ce,[_0x924221(0x142),'id',_0x924221(0x108),_0x924221(0x192)]),_0x50bb61=_0x924221(0x17d)[_0x924221(0x172)](_0x3c3c35,'\x20')[_0x924221(0x172)](_0x317e73||'')[_0x924221(0xf4)](),_0x5b36d4=f[_0x924221(0x14d)]('_'[_0x924221(0x172)](G()));return y(_0x1dbd69,''[_0x924221(0x172)](_0x3c3c35),{'defIds':_0x1dbd69[_0x924221(0x178)],'idSuffix':_0x5b36d4[_0x924221(0x111)]},u({'ref':_0x2bf2a5,'className':_0x50bb61},_0xc869c6),_0x531c87);});function y(_0x3ffdbb,_0x2d2aa0,_0x54dcbf,_0x415266,_0x5c5078){var _0x9f8faa=_0x4767bd;return f[_0x9f8faa(0x182)](_0x3ffdbb[_0x9f8faa(0x1bd)],u(u({'key':_0x2d2aa0},q(_0x3ffdbb,_0x54dcbf,_0x5c5078)),_0x415266),(W(_0x3ffdbb,_0x54dcbf)[_0x9f8faa(0x152)]||[])[_0x9f8faa(0x149)](function(_0x563955,_0x8a00f8){var _0xc5bcf9=_0x9f8faa;return y(_0x563955,''[_0xc5bcf9(0x172)](_0x2d2aa0,'-')[_0xc5bcf9(0x172)](_0x3ffdbb[_0xc5bcf9(0x1bd)],'-')['concat'](_0x8a00f8),_0x54dcbf,void 0x0,_0x5c5078);}));}function q(_0xff0d49,_0x118cb6,_0x2d994b){var _0x209c3c=_0x4767bd,_0x15f5ca=u({},_0xff0d49[_0x209c3c(0x18e)]);_0x2d994b!=null&&_0x2d994b[_0x209c3c(0x12d)]&&_0x15f5ca[_0x209c3c(0x10e)]==='colorChannel1'&&(_0x15f5ca[_0x209c3c(0x10e)]=_0x2d994b[_0x209c3c(0x12d)]),_0xff0d49[_0x209c3c(0x1bd)]==='mask'&&_0x15f5ca['id']&&(_0x15f5ca['id']=_0x15f5ca['id']+_0x118cb6[_0x209c3c(0x1a7)]),Object[_0x209c3c(0x188)](_0x15f5ca)['forEach'](function(_0x441dac){var _0x25e2cf=_0x209c3c,_0x240fe5=_0x441dac[0x0],_0x4d207a=_0x441dac[0x1];_0x240fe5===_0x25e2cf(0x12e)&&typeof _0x4d207a=='string'&&(_0x15f5ca[_0x240fe5]=_0x4d207a[_0x25e2cf(0xf0)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x118cb6[_0x25e2cf(0x1a7)],')')));});var _0x724b7e=_0x118cb6[_0x209c3c(0x178)];return!_0x724b7e||_0x724b7e[_0x209c3c(0x11a)]===0x0||(_0xff0d49[_0x209c3c(0x1bd)]===_0x209c3c(0x15e)&&_0x15f5ca[_0x209c3c(0x1b5)]&&(_0x15f5ca[_0x209c3c(0x1b5)]=_0x15f5ca[_0x209c3c(0x1b5)]+_0x118cb6['idSuffix']),Object[_0x209c3c(0x188)](_0x15f5ca)[_0x209c3c(0x189)](function(_0x4f89ba){var _0x49f247=_0x209c3c,_0x1f7af0=_0x4f89ba[0x0],_0x22ad06=_0x4f89ba[0x1];typeof _0x22ad06==_0x49f247(0xf2)&&(_0x15f5ca[_0x1f7af0]=_0x22ad06[_0x49f247(0xf0)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x118cb6[_0x49f247(0x1a7)],')')));})),_0x15f5ca;}function W(_0x3abfbb,_0x4ab58f){var _0x2086bd=_0x4767bd,_0x1ba5f1,_0x413720=_0x4ab58f['defIds'];return!_0x413720||_0x413720[_0x2086bd(0x11a)]===0x0?_0x3abfbb:_0x3abfbb[_0x2086bd(0x1bd)]===_0x2086bd(0x1b8)&&(!((_0x1ba5f1=_0x3abfbb[_0x2086bd(0x152)])===null||_0x1ba5f1===void 0x0)&&_0x1ba5f1['length'])?u(u({},_0x3abfbb),{'children':_0x3abfbb[_0x2086bd(0x152)][_0x2086bd(0x149)](function(_0x527a03){var _0x179421=_0x2086bd;return typeof _0x527a03[_0x179421(0x18e)]['id']==_0x179421(0xf2)&&_0x413720&&_0x413720[_0x179421(0x1c6)](_0x527a03[_0x179421(0x18e)]['id'])?u(u({},_0x527a03),{'attrs':u(u({},_0x527a03['attrs']),{'id':_0x527a03['attrs']['id']+_0x4ab58f[_0x179421(0x1a7)]})}):_0x527a03;})}):_0x3abfbb;}function G(){var _0x128c26=_0x4767bd;return Math[_0x128c26(0x179)]()['toString'](0x24)['substring'](0x2,0x8);}j[_0x4767bd(0x1a6)]=_0x4767bd(0x1b4);var B={'tag':_0x4767bd(0x10b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4767bd(0x187),'viewBox':_0x4767bd(0x170),'width':_0x4767bd(0x1b3),'height':_0x4767bd(0x1b3)},'children':[{'tag':'path','attrs':{'fill':_0x4767bd(0x1aa),'d':_0x4767bd(0x167)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x4767bd(0xfe),'fillRule':_0x4767bd(0x17c),'clipRule':_0x4767bd(0x17c)}}]},P=f['forwardRef'](function(_0xaede9,_0x372bd8){var _0x40ae07=_0x4767bd;return f['createElement'](j,Object[_0x40ae07(0x15d)]({},_0xaede9,{'id':_0x40ae07(0x106),'ref':_0x372bd8,'icon':B}));});P[_0x4767bd(0x1a6)]='LiveShareIcon';var Y=Object[_0x4767bd(0x16b)],R=(_0x5c4a7a,_0x41ffc6,_0x1933c4,_0x36e79a)=>{for(var _0x47523e=_0x36e79a>0x1?void 0x0:_0x36e79a?Y(_0x41ffc6,_0x1933c4):_0x41ffc6,_0x12ff97=_0x5c4a7a['length']-0x1,_0x3e4b44;_0x12ff97>=0x0;_0x12ff97--)(_0x3e4b44=_0x5c4a7a[_0x12ff97])&&(_0x47523e=_0x3e4b44(_0x47523e)||_0x47523e);return _0x47523e;},S=(_0x434dd1,_0x589263)=>(_0x37ad57,_0x316a8f)=>_0x589263(_0x37ad57,_0x316a8f,_0x434dd1);exports[_0x4767bd(0x164)]=class extends o[_0x4767bd(0x173)]{constructor(_0x56e3f6,_0x1677ee,_0x40875a){var _0x3541cc=_0x4767bd;super(),v(this,_0x3541cc(0x175),new Map()),(this['_univerInstanceService']=_0x56e3f6,this[_0x3541cc(0x177)]=_0x1677ee,this['_collabSessionService']=_0x40875a,this['_init']());}async[_0x4767bd(0x191)](_0x5f0fb0){var _0x22182f=_0x4767bd;return this[_0x22182f(0x175)][_0x22182f(0xfc)](_0x5f0fb0)||await this[_0x22182f(0x156)](_0x5f0fb0),this[_0x22182f(0x175)]['get'](_0x5f0fb0);}[_0x4767bd(0x117)](){var _0x338662=_0x4767bd;this[_0x338662(0x130)][_0x338662(0x18b)](o[_0x338662(0x199)]['UNIVER_SHEET'])['pipe'](b['takeUntil'](this[_0x338662(0x19b)]))[_0x338662(0x13b)](async _0x55ab07=>{var _0x16d013=_0x338662;const _0x4272b5=_0x55ab07['getUnitId']();this[_0x16d013(0x175)]['has'](_0x4272b5)||this['_startLiveShareCoordinator'](_0x4272b5);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o[_0x338662(0x199)]['UNIVER_SHEET'])[_0x338662(0x134)](b[_0x338662(0x119)](this['dispose$']))['subscribe'](_0x278112=>{var _0x549005=_0x338662;const _0x376565=_0x278112['getUnitId'](),_0x12a763=this[_0x549005(0x175)][_0x549005(0x17f)](_0x376565);_0x12a763==null||_0x12a763[_0x549005(0x1ae)]();});}async['_startLiveShareCoordinator'](_0x2c02d0){var _0x1f88cd=_0x4767bd;const _0x58033e=await this[_0x1f88cd(0x1a2)]['requireSession'](_0x2c02d0),_0x28715a=this[_0x1f88cd(0x177)][_0x1f88cd(0x17b)](exports[_0x1f88cd(0x110)],_0x2c02d0,_0x58033e);return _0x28715a[_0x1f88cd(0x13f)](),this['_entities'][_0x1f88cd(0xf3)](_0x2c02d0,_0x28715a),_0x28715a;}},exports['LiveShareController']=R([S(0x0,o[_0x4767bd(0x131)]),S(0x1,o[_0x4767bd(0x1cc)](o[_0x4767bd(0x15c)])),S(0x2,o[_0x4767bd(0x1cc)](m[_0x4767bd(0x1d1)]))],exports[_0x4767bd(0x164)]);var h=(_0x39b700=>(_0x39b700[_0x4767bd(0x158)]='offline',_0x39b700[_0x4767bd(0x107)]='idle',_0x39b700[_0x4767bd(0x183)]='following',_0x39b700['NOT_FOLLOWING']=_0x4767bd(0x14c),_0x39b700[_0x4767bd(0x18f)]=_0x4767bd(0x17e),_0x39b700))(h||{});function _0xcd43(_0x4afa57,_0x5e9753){var _0x333b00=_0x333b();return _0xcd43=function(_0xcd4380,_0xfd1f54){_0xcd4380=_0xcd4380-0xef;var _0x39d162=_0x333b00[_0xcd4380];return _0x39d162;},_0xcd43(_0x4afa57,_0x5e9753);}const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;function _0x333b(){var _0x3dff7a=['You\x27re\x20following\x20the\x20presenter','defs','memberID','LIVESHARE_OPERATION','mutations','asObservable','tag','merge','univer-mb-3\x20univer-w-full\x20univer-text-sm','live-share.config','useState','shouldShareOperation','delete','376432XEAsKT','NOT_FOLLOWING','includes','SetWorksheetActiveOperation','8CwBmMR','OPERATION','_presenter','_reporters','Inject','stringify','setConfig','Present\x20this\x20document','_uiPartsService','CollaborationSessionService','_sharedOperations','replace','defineProperty','string','set','trim','BuiltInUIPart','_startPresenting','onCommandExecuted','params','_startFollowing','6743FkNhVT','touchDependencies','has','ICommandService','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','next','_handleOffline','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UniverCollaborationClientPlugin','propertyIsEnumerable','executeCommand','_config','live-share-icon','IDLE','className','8SfQRVq','Subject','svg','LIVESHARE_REQUEST_HOST','registerSharedOperation','fill','unsubscribe','LiveShareCoordinator','current','SetZoomRatioOperation','text','disposeWithMe','hasOwnProperty','symbol','_init','apply','takeUntil','length','following','then','IConfigService','values','jsx','Start\x20following','send','div','UniverLiveSharePlugin','clsx','getUnitId','2500338drKWph','unitId','_handleOperation','You\x27re\x20presenting\x20the\x20document','prototype','getOwnPropertySymbols','registerComponent','colorChannel1','mask','_fetchOperations','_univerInstanceService','IUniverInstanceService','button','BehaviorSubject','pipe','LIVESHARE_NEW_HOST','5iHlZbu','throttleTime','mergeOverrideWithDependencies','operations','_collabSession','subscribe','IUIPartsService','_stopPresenting','Plugin','init','_status','385638jwYuSv','icon','_liveShareService','parse','21480VGmgte','_handleNewChangeSets','status$','offline','map','89793fnQuUU','toStringTag','not-following','useRef','registerInitialStateReporter','Disposable','CommandType','indexOf','children','ONLINE','parseProtocolChangeset','call','_startLiveShareCoordinator','You\x27are\x20offline.','OFFLINE','_handleNewHost','idle','pluginName','Injector','assign','use','type','onRendered','InsertSheetMutation','complete','_unitID','LiveShareController','override','Button','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','_configService','1052639cDPFDe','NEW_CHANGESETS','getOwnPropertyDescriptor','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','end','getMemberID','getInitialStates','0\x200\x2017\x2017','stopPresenting','concat','RxDisposable','_beIdle','_entities','_handleOnline','_injector','defIds','random','data','createInstance','evenodd','univerjs-icon\x20univerjs-icon-','presenting','get','add','forwardRef','createElement','FOLLOWING','registerDependencies','LIVESHARE_FETCH_OPERATIONS','presenter','none','entries','forEach','getValue','getTypeOfUnitAdded$','LIVESHARE_TERMINATE','_commandService','attrs','PRESENTING','toDisposable','getLiveShareCoordinator','extend','useDependency','stopFollowing','_handleTerminate','DesktopLiveShareController','UNIVER_UNKNOWN','useObservable','UniverInstanceType','DisposableCollection','dispose$','sheet','UNIVER_SHEET','_commandDisposable','default','startFollowing','Stop\x20presenting','_collabSessionService','getConfig','from','158475vnTOYx','displayName','idSuffix','univer-size-4','_stopFollowing','currentColor','find','onStarting','_status$','dispose','_mountLiveShare','CollaborationEvent','tryStartPresenting','Fragment','1em','UniverIcon','xlink:href','jsxs'];_0x333b=function(){return _0x3dff7a;};return _0x333b();}exports[_0x4767bd(0x110)]=class extends o[_0x4767bd(0x173)]{constructor(_0x43d81f,_0x44c8c8,_0x33da22,_0x4adf5d,_0xe947a4){var _0xcce505=_0x4767bd;super(),v(this,_0xcce505(0x1ad),new D[(_0xcce505(0x133))](_0xcce505(0x15a))),v(this,_0xcce505(0x147),this['_status$'][_0xcce505(0x1bc)]()),v(this,'_init',!0x1),v(this,_0xcce505(0x19e),null),v(this,'_presenter',null),(this[_0xcce505(0x163)]=_0x43d81f,this[_0xcce505(0x13a)]=_0x44c8c8,this[_0xcce505(0x168)]=_0x33da22,this['_liveShareService']=_0x4adf5d,this[_0xcce505(0x18d)]=_0xe947a4);}get['_status'](){var _0x50ee14=_0x4767bd;return this[_0x50ee14(0x1ad)][_0x50ee14(0x18a)]();}[_0x4767bd(0x1ae)](){var _0x20c9ca=_0x4767bd,_0x53629e;(_0x53629e=this[_0x20c9ca(0x19e)])==null||_0x53629e[_0x20c9ca(0x1ae)](),this['_status$'][_0x20c9ca(0xff)](_0x20c9ca(0x15a)),this[_0x20c9ca(0x1ad)]['complete']();}[_0x4767bd(0x13f)](){var _0x3388da=_0x4767bd;this[_0x3388da(0x117)]||(this[_0x3388da(0x117)]=!0x0,this['_collabSession']['sessionStatus$'][_0x3388da(0x134)](b['takeUntil'](this['dispose$']))[_0x3388da(0x13b)](_0x49e7b5=>{var _0x3965a1=_0x3388da;switch(_0x49e7b5){case m['SessionStatus'][_0x3965a1(0x158)]:this[_0x3965a1(0x100)]();break;case m['SessionStatus'][_0x3965a1(0x153)]:this['_handleOnline']();break;}}),this[_0x3388da(0x13a)]['event$'][_0x3388da(0x134)](b[_0x3388da(0x119)](this[_0x3388da(0x19b)]))[_0x3388da(0x13b)](_0x48c9b3=>{var _0x1a20b7=_0x3388da;const {eventID:_0x3942d2}=_0x48c9b3;switch(_0x3942d2){case _[_0x1a20b7(0x1b0)][_0x1a20b7(0x135)]:this[_0x1a20b7(0x159)](_0x48c9b3);break;case _[_0x1a20b7(0x1b0)]['LIVESHARE_OPERATION']:this[_0x1a20b7(0x128)](_0x48c9b3);break;case _['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x1a20b7(0x195)]();break;case _[_0x1a20b7(0x1b0)][_0x1a20b7(0x16a)]:this[_0x1a20b7(0x146)](_0x48c9b3);break;}}));}[_0x4767bd(0x1b1)](){var _0x1ccac1=_0x4767bd;this['_collabSession'][_0x1ccac1(0x121)]({'eventID':_[_0x1ccac1(0x1b0)][_0x1ccac1(0x10c)],'data':{'unitID':this[_0x1ccac1(0x163)],'userID':this['_collabSession'][_0x1ccac1(0x16e)]()}},this[_0x1ccac1(0x163)]);}[_0x4767bd(0x171)](){var _0x23398c=_0x4767bd;this[_0x23398c(0x140)]===_0x23398c(0x17e)&&(this['_status$'][_0x23398c(0xff)](_0x23398c(0x15a)),this[_0x23398c(0x13a)][_0x23398c(0x121)]({'eventID':_['CollaborationEvent'][_0x23398c(0x18c)],'data':{'unitID':this['_unitID']}},this[_0x23398c(0x163)]));}[_0x4767bd(0x1a0)](){var _0x352111=_0x4767bd;this['_status']==='not-following'&&(this['_status$'][_0x352111(0xff)](_0x352111(0x11b)),this[_0x352111(0xf9)]());}[_0x4767bd(0x194)](){var _0x585245=_0x4767bd;this[_0x585245(0x140)]==='following'&&this[_0x585245(0x1a9)]();}['_handleNewHost'](_0x3c5f53){var _0x76652=_0x4767bd;const {presenter:_0x307383}=_0x3c5f53[_0x76652(0x17a)],_0x389f15=this['_collabSession'][_0x76652(0x16e)]();this['_presenter']=_0x307383,_0x307383===_0x389f15?(this[_0x76652(0x1a9)](),this[_0x76652(0xf6)]()):this[_0x76652(0x140)]!==_0x76652(0x14c)&&(this[_0x76652(0x13d)](),this[_0x76652(0xf9)]());}[_0x4767bd(0x12f)](){var _0x12d35c=_0x4767bd;const _0x452689={'eventID':_[_0x12d35c(0x1b0)][_0x12d35c(0x185)]};this[_0x12d35c(0x13a)][_0x12d35c(0x121)](_0x452689,this[_0x12d35c(0x163)]);}['_handleTerminate'](){var _0x54a401=_0x4767bd;this[_0x54a401(0x1ca)]=null,this[_0x54a401(0x140)]!==_0x54a401(0x17e)&&this[_0x54a401(0x174)]();}['_handleNewChangeSets'](_0x3cf312){var _0x1172cd=_0x4767bd;if(this[_0x1172cd(0x140)]===_0x1172cd(0x11b)&&this['_presenter']===_0x3cf312[_0x1172cd(0x17a)][_0x1172cd(0x1b9)]){const _0x1adab8=_[_0x1172cd(0x154)](_0x3cf312[_0x1172cd(0x17a)])[_0x1172cd(0x1bb)]['reverse']()[_0x1172cd(0x1ab)](_0x4c47df=>_0x4c47df['id']===C[_0x1172cd(0x161)]['id']);if(_0x1adab8){const _0x1434f=_0x1adab8[_0x1172cd(0xf8)][_0x1172cd(0x127)],_0x27d011=_0x1adab8[_0x1172cd(0xf8)][_0x1172cd(0x19c)]['id'];setTimeout(()=>{var _0x58e3b1=_0x1172cd;this['_commandService'][_0x58e3b1(0x104)](C[_0x58e3b1(0x1c7)]['id'],{'unitId':_0x1434f,'subUnitId':_0x27d011},{'fromCollab':!0x0});});}}}[_0x4767bd(0xf6)](){var _0x40248e=_0x4767bd;this['_status$'][_0x40248e(0xff)](_0x40248e(0x17e));const _0x472dc0=new Map(),_0x2fd6f1=this[_0x40248e(0x19e)]=new o[(_0x40248e(0x19a))]();_0x2fd6f1['add'](o[_0x40248e(0x190)](()=>{var _0x4f72b8=_0x40248e;_0x472dc0[_0x4f72b8(0x189)](_0xa86b44=>_0xa86b44[_0x4f72b8(0x162)]()),_0x472dc0['clear']();})),_0x2fd6f1[_0x40248e(0x180)](this[_0x40248e(0x18d)][_0x40248e(0xf7)](_0x15c21d=>{var _0x1ff0cd=_0x40248e,_0x3eac3a;if(_0x15c21d['type']!==o[_0x1ff0cd(0x150)][_0x1ff0cd(0x1c9)]||!this[_0x1ff0cd(0x143)][_0x1ff0cd(0x1c2)](_0x15c21d['id']))return;const {id:_0x3ac00f}=_0x15c21d;let _0x140d8d;_0x472dc0[_0x1ff0cd(0xfc)](_0x3ac00f)?_0x140d8d=_0x472dc0['get'](_0x3ac00f):(_0x140d8d=new D[(_0x1ff0cd(0x10a))](),_0x472dc0[_0x1ff0cd(0xf3)](_0x3ac00f,_0x140d8d),_0x140d8d[_0x1ff0cd(0x134)](b[_0x1ff0cd(0x137)]((_0x3eac3a=this[_0x1ff0cd(0x168)][_0x1ff0cd(0x1a3)](Z))!=null?_0x3eac3a:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1ff0cd(0x13b)](_0x390b35=>{var _0x575194=_0x1ff0cd;this[_0x575194(0x13a)]['send']({'eventID':_[_0x575194(0x1b0)][_0x575194(0x1ba)],'data':{'unitID':this[_0x575194(0x163)],'operations':{[_0x390b35['id']]:{'id':_0x390b35['id'],'params':JSON[_0x575194(0x1cd)](_0x390b35[_0x575194(0xf8)])}}}},this[_0x575194(0x163)]);})),_0x140d8d[_0x1ff0cd(0xff)](_0x15c21d);})),this[_0x40248e(0x143)][_0x40248e(0x16f)](this[_0x40248e(0x163)])[_0x40248e(0x189)](_0x37734d=>this['_collabSession'][_0x40248e(0x121)]({'eventID':_[_0x40248e(0x1b0)][_0x40248e(0x1ba)],'data':{'unitID':this[_0x40248e(0x163)],'operations':{[_0x37734d['id']]:{'id':_0x37734d['id'],'params':JSON['stringify'](_0x37734d[_0x40248e(0xf8)])}}}},this[_0x40248e(0x163)]));}[_0x4767bd(0x13d)](){var _0x3e690c=_0x4767bd,_0x48362a;this[_0x3e690c(0x1ad)][_0x3e690c(0xff)](_0x3e690c(0x15a)),(_0x48362a=this[_0x3e690c(0x19e)])==null||_0x48362a[_0x3e690c(0x1ae)](),this[_0x3e690c(0x19e)]=null;}[_0x4767bd(0xf9)](){var _0x440af5=_0x4767bd,_0x1f2a11;(_0x1f2a11=this[_0x440af5(0x19e)])==null||_0x1f2a11[_0x440af5(0x1ae)](),this['_status$'][_0x440af5(0xff)]('following');}[_0x4767bd(0x174)](){var _0x3fa80e=_0x4767bd,_0x23554c;this[_0x3fa80e(0x1ad)][_0x3fa80e(0xff)](_0x3fa80e(0x15a)),(_0x23554c=this['_commandDisposable'])==null||_0x23554c[_0x3fa80e(0x1ae)](),this[_0x3fa80e(0x19e)]=null;}['_stopFollowing'](){var _0x35bd4f=_0x4767bd,_0x1d6928;this[_0x35bd4f(0x1ad)][_0x35bd4f(0xff)]('not-following'),(_0x1d6928=this[_0x35bd4f(0x19e)])==null||_0x1d6928[_0x35bd4f(0x1ae)]();}[_0x4767bd(0x128)](_0x522c84){var _0x4c6527=_0x4767bd;if([_0x4c6527(0x17e),_0x4c6527(0x14c),_0x4c6527(0x148)][_0x4c6527(0x1c6)](this[_0x4c6527(0x140)])||!_0x522c84[_0x4c6527(0x17a)]['presenter']||_0x522c84[_0x4c6527(0x17a)][_0x4c6527(0x186)]===this[_0x4c6527(0x13a)][_0x4c6527(0x16e)]())return;this[_0x4c6527(0x140)]===_0x4c6527(0x15a)&&this[_0x4c6527(0xf9)]();const _0x3e604e=_0x522c84[_0x4c6527(0x17a)][_0x4c6527(0x139)];Object[_0x4c6527(0x11e)](_0x3e604e)[_0x4c6527(0x189)](_0x4bd04f=>{var _0x2e324e=_0x4c6527;this[_0x2e324e(0x18d)]['executeCommand'](_0x4bd04f['id'],_0x4bd04f[_0x2e324e(0xf8)]?JSON[_0x2e324e(0x144)](_0x4bd04f[_0x2e324e(0xf8)]):null,{'fromCollab':!0x0});});}[_0x4767bd(0x100)](){var _0x124c95=_0x4767bd,_0x2dce3d;this[_0x124c95(0x1ad)][_0x124c95(0xff)](_0x124c95(0x148)),(_0x2dce3d=this['_commandDisposable'])==null||_0x2dce3d['dispose']();}[_0x4767bd(0x176)](){var _0x2e4d15=_0x4767bd;this[_0x2e4d15(0x1ad)][_0x2e4d15(0xff)](_0x2e4d15(0x15a)),this['_fetchOperations']();}},exports[_0x4767bd(0x110)]=R([S(0x2,o[_0x4767bd(0x11d)]),S(0x3,o['Inject'](O)),S(0x4,o[_0x4767bd(0xfd)])],exports['LiveShareCoordinator']);function A(){var _0x1a5224=_0x4767bd;const _0x1ab2c5=p['useDependency'](exports[_0x1a5224(0x164)]),_0x40bec5=p[_0x1a5224(0x193)](o[_0x1a5224(0x131)]),_0x1d0648=p[_0x1a5224(0x198)](()=>_0x40bec5['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x1a5224(0x19d)]),void 0x0,!0x1,[]),[_0x2deb33,_0x24b8e6]=f[_0x1a5224(0x1c1)](null),[_0x5d8951,_0x284219]=f[_0x1a5224(0x1c1)](h[_0x1a5224(0x107)]),_0x1d2df4=f[_0x1a5224(0x14d)](null);return f['useEffect'](()=>(_0x1d0648&&_0x1ab2c5[_0x1a5224(0x191)](_0x1d0648[_0x1a5224(0x125)]())[_0x1a5224(0x11c)](_0x46aad2=>{var _0x1e479e=_0x1a5224;_0x24b8e6(_0x46aad2),_0x1d2df4['current']=_0x46aad2[_0x1e479e(0x147)][_0x1e479e(0x13b)](_0x312b60=>{_0x284219(_0x312b60);});}),()=>{var _0x238942=_0x1a5224,_0x8b1466;(_0x8b1466=_0x1d2df4[_0x238942(0x111)])==null||_0x8b1466[_0x238942(0x10f)](),_0x1d2df4[_0x238942(0x111)]=null;}),[_0x1d0648,_0x1ab2c5]),_0x2deb33?l[_0x1a5224(0x11f)](g['Dropdown'],{'align':_0x1a5224(0x16d),'disabled':_0x5d8951===h[_0x1a5224(0x158)],'className':_0x1a5224(0x16c),'overlay':l[_0x1a5224(0x11f)](K,{'status':_0x5d8951,'coordinator':_0x2deb33}),'children':l[_0x1a5224(0x11f)]('button',{'className':g[_0x1a5224(0x124)](_0x1a5224(0x101),{'univer-cursor-not-allowed':_0x5d8951===h[_0x1a5224(0x158)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5d8951!==h[_0x1a5224(0x158)]}),'type':_0x1a5224(0x132),'children':l[_0x1a5224(0x11f)](P,{'className':_0x1a5224(0x1a8)})})}):null;}function K(_0x44b845){var _0x4c7884=_0x4767bd;const {status:_0x33cb69,coordinator:_0x481f40}=_0x44b845;switch(_0x33cb69){case h[_0x4c7884(0x107)]:return l['jsx'](z,{'coordinator':_0x481f40});case h[_0x4c7884(0x183)]:return l[_0x4c7884(0x11f)](Q,{'coordinator':_0x481f40});case h[_0x4c7884(0x1c5)]:return l[_0x4c7884(0x11f)](X,{'coordinator':_0x481f40});case h['OFFLINE']:return l[_0x4c7884(0x11f)](te,{});case h[_0x4c7884(0x18f)]:return l[_0x4c7884(0x11f)](ee,{'coordinator':_0x481f40});default:return null;}}function z(_0x2adb87){var _0x4519fb=_0x4767bd;const {coordinator:_0x4c4bc1}=_0x2adb87;return l[_0x4519fb(0x1b6)](l['Fragment'],{'children':[l[_0x4519fb(0x11f)](_0x4519fb(0x122),{'className':_0x4519fb(0x1bf),'children':_0x4519fb(0x1cf)}),l[_0x4519fb(0x11f)](g[_0x4519fb(0x166)],{'onClick':()=>_0x4c4bc1['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x21d976){var _0x255240=_0x4767bd;const {coordinator:_0x468a09}=_0x21d976;return l[_0x255240(0x1b6)](l['Fragment'],{'children':[l[_0x255240(0x11f)]('div',{'className':_0x255240(0x1bf),'children':_0x255240(0x1b7)}),l[_0x255240(0x11f)](g['Button'],{'onClick':()=>_0x468a09[_0x255240(0x194)](),'children':'Stop\x20following'})]});}function X(_0x431a23){var _0x5b3e9a=_0x4767bd;const {coordinator:_0x1f29cc}=_0x431a23;return l[_0x5b3e9a(0x1b6)](l['Fragment'],{'children':[l['jsx'](_0x5b3e9a(0x122),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x5b3e9a(0x11f)](g['Button'],{'variant':_0x5b3e9a(0x113),'onClick':()=>_0x1f29cc[_0x5b3e9a(0x1a0)](),'children':_0x5b3e9a(0x120)})]});}function ee(_0x393e8e){var _0x33b785=_0x4767bd;const {coordinator:_0xff063d}=_0x393e8e;return l[_0x33b785(0x1b6)](l[_0x33b785(0x1b2)],{'children':[l[_0x33b785(0x11f)](_0x33b785(0x122),{'className':_0x33b785(0x1bf),'children':_0x33b785(0x129)}),l[_0x33b785(0x11f)](g[_0x33b785(0x166)],{'variant':_0x33b785(0x19f),'onClick':()=>_0xff063d['stopPresenting'](),'children':_0x33b785(0x1a1)})]});}function te(){var _0x545671=_0x4767bd;return l[_0x545671(0x11f)](l[_0x545671(0x1b2)],{'children':_0x545671(0x157)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x8fcd45,_0x21ba50,_0x4da713,_0xf02ae9)=>{var _0x1978b0=_0x4767bd;for(var _0x4c16e1=_0xf02ae9>0x1?void 0x0:_0xf02ae9?ie(_0x21ba50,_0x4da713):_0x21ba50,_0x4bd8a9=_0x8fcd45[_0x1978b0(0x11a)]-0x1,_0x15f765;_0x4bd8a9>=0x0;_0x4bd8a9--)(_0x15f765=_0x8fcd45[_0x4bd8a9])&&(_0x4c16e1=_0x15f765(_0x4c16e1)||_0x4c16e1);return _0x4c16e1;},L=(_0x368fd2,_0x377c12)=>(_0x160e44,_0x239d9e)=>_0x377c12(_0x160e44,_0x239d9e,_0x368fd2);exports[_0x4767bd(0x196)]=class extends o[_0x4767bd(0x14f)]{constructor(_0xf5819f,_0xf12316){var _0x2466a5=_0x4767bd;super(),this[_0x2466a5(0x177)]=_0xf5819f,this[_0x2466a5(0x1d0)]=_0xf12316,this[_0x2466a5(0x1af)]();}[_0x4767bd(0x1af)](){var _0x4cd2f4=_0x4767bd;this[_0x4cd2f4(0x114)](this[_0x4cd2f4(0x1d0)][_0x4cd2f4(0x12c)](p[_0x4cd2f4(0xf5)]['HEADER_MENU'],()=>p['connectInjector'](A,this[_0x4cd2f4(0x177)])));}},exports[_0x4767bd(0x196)]=ne([L(0x0,o[_0x4767bd(0x1cc)](o[_0x4767bd(0x15c)])),L(0x1,p[_0x4767bd(0x13c)])],exports[_0x4767bd(0x196)]);var re=Object[_0x4767bd(0xf1)],se=Object['getOwnPropertyDescriptor'],oe=(_0x4ad84a,_0x33c183,_0x2285e8)=>_0x33c183 in _0x4ad84a?re(_0x4ad84a,_0x33c183,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2285e8}):_0x4ad84a[_0x33c183]=_0x2285e8,ae=(_0x237cba,_0x4e707,_0x1dd848,_0x388e73)=>{var _0x4263fd=_0x4767bd;for(var _0x24b0dc=_0x388e73>0x1?void 0x0:_0x388e73?se(_0x4e707,_0x1dd848):_0x4e707,_0x541010=_0x237cba[_0x4263fd(0x11a)]-0x1,_0x7d0b3d;_0x541010>=0x0;_0x541010--)(_0x7d0b3d=_0x237cba[_0x541010])&&(_0x24b0dc=_0x7d0b3d(_0x24b0dc)||_0x24b0dc);return _0x24b0dc;},N=(_0x52b8f4,_0xd493b1)=>(_0x1c064f,_0x4d02e5)=>_0xd493b1(_0x1c064f,_0x4d02e5,_0x52b8f4),T=(_0x81ccb9,_0x2ab8b3,_0x575bb3)=>oe(_0x81ccb9,typeof _0x2ab8b3!=_0x4767bd(0x116)?_0x2ab8b3+'':_0x2ab8b3,_0x575bb3);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x4767bd(0x123)]=class extends o[_0x4767bd(0x13e)]{constructor(_0xda200f=x,_0x9430d2,_0x3d41f2){var _0x29eb55=_0x4767bd;super(),this[_0x29eb55(0x105)]=_0xda200f,this[_0x29eb55(0x177)]=_0x9430d2,this[_0x29eb55(0x168)]=_0x3d41f2;const {..._0x46e0f3}=o[_0x29eb55(0x1be)]({},x,this['_config']);this[_0x29eb55(0x168)][_0x29eb55(0x1ce)]($,_0x46e0f3);}[_0x4767bd(0x1ac)](){var _0x1f5a9e=_0x4767bd;o[_0x1f5a9e(0x184)](this['_injector'],o[_0x1f5a9e(0x138)]([[O],[exports[_0x1f5a9e(0x164)]],[E],[exports['DesktopLiveShareController']]],this['_config'][_0x1f5a9e(0x165)])),o[_0x1f5a9e(0xfb)](this['_injector'],[[E]]);}[_0x4767bd(0x160)](){var _0x1c9d68=_0x4767bd;o[_0x1c9d68(0xfb)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x4767bd(0x123)],_0x4767bd(0x15f),o[_0x4767bd(0x199)][_0x4767bd(0x197)]),T(exports[_0x4767bd(0x123)],_0x4767bd(0x15b),le),exports[_0x4767bd(0x123)]=ae([o['DependentOn'](m[_0x4767bd(0x102)]),N(0x1,o['Inject'](o['Injector'])),N(0x2,o['IConfigService'])],exports[_0x4767bd(0x123)]),exports['LiveShare']=A,exports['LiveShareService']=O,exports['LiveShareStatus']=h;
1
+ 'use strict';var _0x285575=_0xdbb3;(function(_0x4caccd,_0x578dd1){var _0x47afb6=_0xdbb3,_0x96ee35=_0x4caccd();while(!![]){try{var _0x458ae8=parseInt(_0x47afb6(0x105))/0x1*(parseInt(_0x47afb6(0x125))/0x2)+parseInt(_0x47afb6(0x132))/0x3+-parseInt(_0x47afb6(0x14b))/0x4*(parseInt(_0x47afb6(0x152))/0x5)+parseInt(_0x47afb6(0x12a))/0x6+-parseInt(_0x47afb6(0x151))/0x7+parseInt(_0x47afb6(0x164))/0x8*(-parseInt(_0x47afb6(0x158))/0x9)+parseInt(_0x47afb6(0xc9))/0xa*(-parseInt(_0x47afb6(0x11c))/0xb);if(_0x458ae8===_0x578dd1)break;else _0x96ee35['push'](_0x96ee35['shift']());}catch(_0x133c53){_0x96ee35['push'](_0x96ee35['shift']());}}}(_0x5548,0xd7ded));function _0xdbb3(_0x3ce615,_0x7cd5bd){var _0x5548e6=_0x5548();return _0xdbb3=function(_0xdbb3d,_0x55fd26){_0xdbb3d=_0xdbb3d-0xa0;var _0x4ba38d=_0x5548e6[_0xdbb3d];return _0x4ba38d;},_0xdbb3(_0x3ce615,_0x7cd5bd);}var U=Object['defineProperty'],F=(_0x440523,_0x208840,_0x4280e9)=>_0x208840 in _0x440523?U(_0x440523,_0x208840,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4280e9}):_0x440523[_0x208840]=_0x4280e9,v=(_0x8c492b,_0x4d32a0,_0x22d029)=>F(_0x8c492b,typeof _0x4d32a0!='symbol'?_0x4d32a0+'':_0x4d32a0,_0x22d029);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x285575(0xf2)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$='live-share.config',x={};class O extends o[_0x285575(0xb2)]{constructor(){var _0x31d1ef=_0x285575;super(...arguments),v(this,_0x31d1ef(0xbb),new Set()),v(this,'_reporters',new Set());}[_0x285575(0xf8)](_0x568efb){var _0x5d5f4b=_0x285575;return this[_0x5d5f4b(0xbb)]['add'](_0x568efb),o['toDisposable'](()=>this[_0x5d5f4b(0xbb)][_0x5d5f4b(0xa7)](_0x568efb));}['registerInitialStateReporter'](_0x37e2d5){var _0x51b5cb=_0x285575;return this[_0x51b5cb(0x15f)][_0x51b5cb(0x123)](_0x37e2d5),o[_0x51b5cb(0x13f)](()=>this[_0x51b5cb(0x15f)][_0x51b5cb(0xa7)](_0x37e2d5));}[_0x285575(0x14d)](_0x545c3c){var _0x3efcdb=_0x285575;return this['_sharedOperations'][_0x3efcdb(0x146)](_0x545c3c);}[_0x285575(0xd6)](_0x300290){var _0x3225d1=_0x285575;return Array['from'](this['_reporters'])[_0x3225d1(0xe2)](_0x33251e=>_0x33251e(_0x300290));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x58ef76,_0x1c81f9,_0x15675e,_0x328516)=>{var _0x224f9d=_0x285575;for(var _0x36e1d1=_0x328516>0x1?void 0x0:_0x328516?H(_0x1c81f9,_0x15675e):_0x1c81f9,_0xa1f05a=_0x58ef76[_0x224f9d(0x16a)]-0x1,_0x22a8bc;_0xa1f05a>=0x0;_0xa1f05a--)(_0x22a8bc=_0x58ef76[_0xa1f05a])&&(_0x36e1d1=_0x22a8bc(_0x36e1d1)||_0x36e1d1);return _0x36e1d1;},k=(_0x445e87,_0x3224c9)=>(_0x295abc,_0x2e65b4)=>_0x3224c9(_0x295abc,_0x2e65b4,_0x445e87);let E=class extends o[_0x285575(0xb2)]{constructor(_0x50a092){var _0x46f18b=_0x285575;super(),this[_0x46f18b(0xfc)]=_0x50a092,this[_0x46f18b(0xdf)]();}[_0x285575(0xdf)](){var _0x2fc74f=_0x285575;[w['SetZoomRatioOperation']['id'],w[_0x2fc74f(0x100)]['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x344291=>{var _0x5141e0=_0x2fc74f;this['disposeWithMe'](this[_0x5141e0(0xfc)][_0x5141e0(0xf8)](_0x344291));});}};E=V([k(0x0,o[_0x285575(0xd9)](O))],E);var u=function(){var _0x480bf3=_0x285575;return u=Object[_0x480bf3(0xdd)]||function(_0x1d893a){var _0x6dbf0=_0x480bf3;for(var _0xbb271a,_0xbf6834=0x1,_0x215a26=arguments[_0x6dbf0(0x16a)];_0xbf6834<_0x215a26;_0xbf6834++){_0xbb271a=arguments[_0xbf6834];for(var _0xd212b1 in _0xbb271a)Object[_0x6dbf0(0xd4)][_0x6dbf0(0xef)][_0x6dbf0(0x165)](_0xbb271a,_0xd212b1)&&(_0x1d893a[_0xd212b1]=_0xbb271a[_0xd212b1]);}return _0x1d893a;},u[_0x480bf3(0xe0)](this,arguments);},M=function(_0x53083a,_0x4f4e75){var _0x54d71a=_0x285575,_0x365c24={};for(var _0x31c47b in _0x53083a)Object[_0x54d71a(0xd4)][_0x54d71a(0xef)][_0x54d71a(0x165)](_0x53083a,_0x31c47b)&&_0x4f4e75[_0x54d71a(0xad)](_0x31c47b)<0x0&&(_0x365c24[_0x31c47b]=_0x53083a[_0x31c47b]);if(_0x53083a!=null&&typeof Object[_0x54d71a(0xf4)]==_0x54d71a(0xe5)){for(var _0x14f649=0x0,_0x31c47b=Object[_0x54d71a(0xf4)](_0x53083a);_0x14f649<_0x31c47b[_0x54d71a(0x16a)];_0x14f649++)_0x4f4e75[_0x54d71a(0xad)](_0x31c47b[_0x14f649])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x54d71a(0x165)](_0x53083a,_0x31c47b[_0x14f649])&&(_0x365c24[_0x31c47b[_0x14f649]]=_0x53083a[_0x31c47b[_0x14f649]]);}return _0x365c24;},j=f[_0x285575(0xae)](function(_0xfb000d,_0x6684bb){var _0x40e826=_0x285575,_0x10bf9d=_0xfb000d['icon'],_0x468ade=_0xfb000d['id'],_0x26cc43=_0xfb000d[_0x40e826(0x162)],_0x508d2c=_0xfb000d['extend'],_0x15de0f=M(_0xfb000d,['icon','id',_0x40e826(0x162),'extend']),_0x198eed=_0x40e826(0xbd)[_0x40e826(0x110)](_0x468ade,'\x20')[_0x40e826(0x110)](_0x26cc43||'')[_0x40e826(0x160)](),_0x3f2704=f['useRef']('_'[_0x40e826(0x110)](G()));return y(_0x10bf9d,''['concat'](_0x468ade),{'defIds':_0x10bf9d['defIds'],'idSuffix':_0x3f2704['current']},u({'ref':_0x6684bb,'className':_0x198eed},_0x15de0f),_0x508d2c);});function y(_0x430b4e,_0xdd6bd7,_0x15c9e1,_0x59dea8,_0xe4b2f9){var _0x9a1496=_0x285575;return f[_0x9a1496(0x14a)](_0x430b4e[_0x9a1496(0x136)],u(u({'key':_0xdd6bd7},q(_0x430b4e,_0x15c9e1,_0xe4b2f9)),_0x59dea8),(W(_0x430b4e,_0x15c9e1)['children']||[])['map'](function(_0x3052f4,_0xb040bf){var _0xff1f5d=_0x9a1496;return y(_0x3052f4,''['concat'](_0xdd6bd7,'-')['concat'](_0x430b4e[_0xff1f5d(0x136)],'-')[_0xff1f5d(0x110)](_0xb040bf),_0x15c9e1,void 0x0,_0xe4b2f9);}));}function q(_0x42fc75,_0x225150,_0x43fb6f){var _0x41a5f0=_0x285575,_0xf2f85e=u({},_0x42fc75[_0x41a5f0(0x126)]);_0x43fb6f!=null&&_0x43fb6f[_0x41a5f0(0xb7)]&&_0xf2f85e[_0x41a5f0(0x11d)]===_0x41a5f0(0xb7)&&(_0xf2f85e[_0x41a5f0(0x11d)]=_0x43fb6f[_0x41a5f0(0xb7)]),_0x42fc75[_0x41a5f0(0x136)]===_0x41a5f0(0x128)&&_0xf2f85e['id']&&(_0xf2f85e['id']=_0xf2f85e['id']+_0x225150['idSuffix']),Object[_0x41a5f0(0x127)](_0xf2f85e)[_0x41a5f0(0xab)](function(_0x47fdec){var _0x3acf68=_0x41a5f0,_0x5402f3=_0x47fdec[0x0],_0x1e392d=_0x47fdec[0x1];_0x5402f3===_0x3acf68(0x128)&&typeof _0x1e392d==_0x3acf68(0xa0)&&(_0xf2f85e[_0x5402f3]=_0x1e392d[_0x3acf68(0xc5)](/url\(#(.*)\)/,_0x3acf68(0x12d)['concat'](_0x225150[_0x3acf68(0xc0)],')')));});var _0x3c9401=_0x225150['defIds'];return!_0x3c9401||_0x3c9401[_0x41a5f0(0x16a)]===0x0||(_0x42fc75[_0x41a5f0(0x136)]==='use'&&_0xf2f85e[_0x41a5f0(0xe6)]&&(_0xf2f85e['xlink:href']=_0xf2f85e[_0x41a5f0(0xe6)]+_0x225150[_0x41a5f0(0xc0)]),Object[_0x41a5f0(0x127)](_0xf2f85e)[_0x41a5f0(0xab)](function(_0x34e90e){var _0x239f3e=_0x41a5f0,_0x1b2dde=_0x34e90e[0x0],_0x5e7930=_0x34e90e[0x1];typeof _0x5e7930==_0x239f3e(0xa0)&&(_0xf2f85e[_0x1b2dde]=_0x5e7930[_0x239f3e(0xc5)](/url\(#(.*)\)/,'url(#$1'[_0x239f3e(0x110)](_0x225150['idSuffix'],')')));})),_0xf2f85e;}function W(_0x5991d9,_0x55f4c5){var _0x24e23f=_0x285575,_0x484e7d,_0x5089f5=_0x55f4c5[_0x24e23f(0x129)];return!_0x5089f5||_0x5089f5[_0x24e23f(0x16a)]===0x0?_0x5991d9:_0x5991d9['tag']===_0x24e23f(0x16d)&&(!((_0x484e7d=_0x5991d9[_0x24e23f(0xac)])===null||_0x484e7d===void 0x0)&&_0x484e7d['length'])?u(u({},_0x5991d9),{'children':_0x5991d9['children'][_0x24e23f(0xe2)](function(_0x1da978){var _0x381409=_0x24e23f;return typeof _0x1da978['attrs']['id']==_0x381409(0xa0)&&_0x5089f5&&_0x5089f5['includes'](_0x1da978['attrs']['id'])?u(u({},_0x1da978),{'attrs':u(u({},_0x1da978[_0x381409(0x126)]),{'id':_0x1da978[_0x381409(0x126)]['id']+_0x55f4c5[_0x381409(0xc0)]})}):_0x1da978;})}):_0x5991d9;}function G(){var _0x4ef2be=_0x285575;return Math[_0x4ef2be(0x11f)]()['toString'](0x24)['substring'](0x2,0x8);}j[_0x285575(0x144)]='UniverIcon';var B={'tag':_0x285575(0x13b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x285575(0x120),'viewBox':_0x285575(0xfd),'width':_0x285575(0x145),'height':_0x285575(0x145)},'children':[{'tag':'path','attrs':{'fill':_0x285575(0x13a),'d':_0x285575(0x15c)}},{'tag':_0x285575(0x163),'attrs':{'fill':_0x285575(0x13a),'d':_0x285575(0xf7),'fillRule':_0x285575(0x135),'clipRule':_0x285575(0x135)}}]},P=f[_0x285575(0xae)](function(_0x4ee58a,_0x374636){var _0x2e5cb0=_0x285575;return f['createElement'](j,Object[_0x2e5cb0(0xdd)]({},_0x4ee58a,{'id':_0x2e5cb0(0x15b),'ref':_0x374636,'icon':B}));});P[_0x285575(0x144)]=_0x285575(0x138);var Y=Object[_0x285575(0x117)],R=(_0xba77fb,_0xb151a9,_0x2f53fa,_0x49a305)=>{var _0x3edc6e=_0x285575;for(var _0x114897=_0x49a305>0x1?void 0x0:_0x49a305?Y(_0xb151a9,_0x2f53fa):_0xb151a9,_0x4b2477=_0xba77fb[_0x3edc6e(0x16a)]-0x1,_0x498a36;_0x4b2477>=0x0;_0x4b2477--)(_0x498a36=_0xba77fb[_0x4b2477])&&(_0x114897=_0x498a36(_0x114897)||_0x114897);return _0x114897;},S=(_0xc6f91,_0x11fb10)=>(_0x50964c,_0x32c630)=>_0x11fb10(_0x50964c,_0x32c630,_0xc6f91);exports['LiveShareController']=class extends o[_0x285575(0xa3)]{constructor(_0x189b86,_0x1bebee,_0x30fe25){var _0x33af5c=_0x285575;super(),v(this,_0x33af5c(0x168),new Map()),(this[_0x33af5c(0x16e)]=_0x189b86,this[_0x33af5c(0xc4)]=_0x1bebee,this['_collabSessionService']=_0x30fe25,this[_0x33af5c(0xdf)]());}async[_0x285575(0x170)](_0x2fab1d){var _0x5592a4=_0x285575;return this[_0x5592a4(0x168)]['has'](_0x2fab1d)||await this['_startLiveShareCoordinator'](_0x2fab1d),this[_0x5592a4(0x168)][_0x5592a4(0x119)](_0x2fab1d);}[_0x285575(0xdf)](){var _0x1ff0aa=_0x285575;this[_0x1ff0aa(0x16e)]['getTypeOfUnitAdded$'](o[_0x1ff0aa(0x102)][_0x1ff0aa(0x107)])['pipe'](b[_0x1ff0aa(0x155)](this[_0x1ff0aa(0xcd)]))['subscribe'](async _0x1f0ec6=>{var _0x87f805=_0x1ff0aa;const _0x9a0398=_0x1f0ec6[_0x87f805(0x134)]();this[_0x87f805(0x168)][_0x87f805(0x146)](_0x9a0398)||this[_0x87f805(0x154)](_0x9a0398);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o[_0x1ff0aa(0x102)]['UNIVER_SHEET'])[_0x1ff0aa(0xa5)](b['takeUntil'](this[_0x1ff0aa(0xcd)]))[_0x1ff0aa(0x141)](_0x2122f9=>{var _0x418472=_0x1ff0aa;const _0x551eb7=_0x2122f9[_0x418472(0x134)](),_0x242a2e=this[_0x418472(0x168)][_0x418472(0x119)](_0x551eb7);_0x242a2e==null||_0x242a2e[_0x418472(0x12b)]();});}async['_startLiveShareCoordinator'](_0x1d2222){var _0x140e0b=_0x285575;const _0x24af5e=await this[_0x140e0b(0x161)][_0x140e0b(0x133)](_0x1d2222),_0x1db3f5=this[_0x140e0b(0xc4)]['createInstance'](exports[_0x140e0b(0x112)],_0x1d2222,_0x24af5e);return _0x1db3f5[_0x140e0b(0x16c)](),this[_0x140e0b(0x168)][_0x140e0b(0xf1)](_0x1d2222,_0x1db3f5),_0x1db3f5;}},exports[_0x285575(0x130)]=R([S(0x0,o[_0x285575(0xdb)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o['Inject'](m[_0x285575(0x13e)]))],exports[_0x285575(0x130)]);var h=(_0x5ab150=>(_0x5ab150[_0x285575(0xaf)]='offline',_0x5ab150['IDLE']=_0x285575(0xec),_0x5ab150[_0x285575(0xfb)]='following',_0x5ab150['NOT_FOLLOWING']=_0x285575(0x15d),_0x5ab150[_0x285575(0x109)]=_0x285575(0x10c),_0x5ab150))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x8c4d3f,_0x31da0e,_0x44db1b,_0x1c43cd,_0x26fc44){var _0x1ab4a3=_0x285575;super(),v(this,'_status$',new D[(_0x1ab4a3(0x122))](_0x1ab4a3(0xec))),v(this,_0x1ab4a3(0x139),this[_0x1ab4a3(0xbf)][_0x1ab4a3(0xff)]()),v(this,_0x1ab4a3(0xdf),!0x1),v(this,'_commandDisposable',null),v(this,'_presenter',null),(this[_0x1ab4a3(0x116)]=_0x8c4d3f,this[_0x1ab4a3(0x131)]=_0x31da0e,this[_0x1ab4a3(0xa6)]=_0x44db1b,this[_0x1ab4a3(0xfc)]=_0x1c43cd,this[_0x1ab4a3(0x10a)]=_0x26fc44);}get['_status'](){var _0xbc4fe2=_0x285575;return this[_0xbc4fe2(0xbf)]['getValue']();}[_0x285575(0x12b)](){var _0x173c52=_0x285575,_0x35f2b1;(_0x35f2b1=this[_0x173c52(0x166)])==null||_0x35f2b1[_0x173c52(0x12b)](),this[_0x173c52(0xbf)][_0x173c52(0x171)]('idle'),this['_status$'][_0x173c52(0x14c)]();}[_0x285575(0x16c)](){var _0x5894d3=_0x285575;this[_0x5894d3(0xdf)]||(this[_0x5894d3(0xdf)]=!0x0,this[_0x5894d3(0x131)][_0x5894d3(0x137)]['pipe'](b[_0x5894d3(0x155)](this['dispose$']))[_0x5894d3(0x141)](_0x376215=>{var _0x53d369=_0x5894d3;switch(_0x376215){case m['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case m['SessionStatus'][_0x53d369(0x149)]:this[_0x53d369(0x111)]();break;}}),this[_0x5894d3(0x131)]['event$'][_0x5894d3(0xa5)](b[_0x5894d3(0x155)](this[_0x5894d3(0xcd)]))[_0x5894d3(0x141)](_0x571b15=>{var _0x3056cd=_0x5894d3;const {eventID:_0x32326c}=_0x571b15;switch(_0x32326c){case _[_0x3056cd(0x147)][_0x3056cd(0x108)]:this[_0x3056cd(0xa1)](_0x571b15);break;case _['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x3056cd(0x14e)](_0x571b15);break;case _['CollaborationEvent'][_0x3056cd(0x148)]:this[_0x3056cd(0x118)]();break;case _[_0x3056cd(0x147)]['NEW_CHANGESETS']:this[_0x3056cd(0xd7)](_0x571b15);break;}}));}['tryStartPresenting'](){var _0x3431cd=_0x285575;this[_0x3431cd(0x131)][_0x3431cd(0x106)]({'eventID':_[_0x3431cd(0x147)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3431cd(0x116)],'userID':this[_0x3431cd(0x131)][_0x3431cd(0xda)]()}},this['_unitID']);}[_0x285575(0x14f)](){var _0x13ef61=_0x285575;this['_status']==='presenting'&&(this[_0x13ef61(0xbf)][_0x13ef61(0x171)](_0x13ef61(0xec)),this[_0x13ef61(0x131)][_0x13ef61(0x106)]({'eventID':_[_0x13ef61(0x147)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x285575(0xbc)](){var _0x5ac684=_0x285575;this[_0x5ac684(0xb4)]==='not-following'&&(this['_status$'][_0x5ac684(0x171)]('following'),this['_startFollowing']());}['stopFollowing'](){var _0x32175f=_0x285575;this['_status']===_0x32175f(0x140)&&this[_0x32175f(0xc3)]();}['_handleNewHost'](_0x186bf0){var _0x39cd23=_0x285575;const {presenter:_0x297a04}=_0x186bf0[_0x39cd23(0x10d)],_0x1de72b=this[_0x39cd23(0x131)]['getMemberID']();this[_0x39cd23(0x10f)]=_0x297a04,_0x297a04===_0x1de72b?(this[_0x39cd23(0xc3)](),this[_0x39cd23(0xa8)]()):this[_0x39cd23(0xb4)]!=='not-following'&&(this[_0x39cd23(0xb6)](),this[_0x39cd23(0x16b)]());}[_0x285575(0xa4)](){var _0x5d6344=_0x285575;const _0x4b0ecb={'eventID':_[_0x5d6344(0x147)][_0x5d6344(0xa9)]};this[_0x5d6344(0x131)][_0x5d6344(0x106)](_0x4b0ecb,this[_0x5d6344(0x116)]);}['_handleTerminate'](){var _0x43b6da=_0x285575;this[_0x43b6da(0x10f)]=null,this['_status']!==_0x43b6da(0x10c)&&this[_0x43b6da(0x11a)]();}[_0x285575(0xd7)](_0xc9da95){var _0x14a98b=_0x285575;if(this['_status']===_0x14a98b(0x140)&&this[_0x14a98b(0x10f)]===_0xc9da95[_0x14a98b(0x10d)][_0x14a98b(0xeb)]){const _0x56d761=_['parseProtocolChangeset'](_0xc9da95[_0x14a98b(0x10d)])['mutations']['reverse']()['find'](_0x583f9f=>_0x583f9f['id']===C[_0x14a98b(0xba)]['id']);if(_0x56d761){const _0x1f21b1=_0x56d761['params'][_0x14a98b(0xce)],_0x274725=_0x56d761[_0x14a98b(0xb9)]['sheet']['id'];setTimeout(()=>{var _0x3d2860=_0x14a98b;this[_0x3d2860(0x10a)][_0x3d2860(0x114)](C[_0x3d2860(0x13d)]['id'],{'unitId':_0x1f21b1,'subUnitId':_0x274725},{'fromCollab':!0x0});});}}}[_0x285575(0xa8)](){var _0x241470=_0x285575;this[_0x241470(0xbf)][_0x241470(0x171)](_0x241470(0x10c));const _0x3b5795=new Map(),_0x221f5e=this[_0x241470(0x166)]=new o['DisposableCollection']();_0x221f5e[_0x241470(0x123)](o[_0x241470(0x13f)](()=>{var _0x592602=_0x241470;_0x3b5795[_0x592602(0xab)](_0x37bfdc=>_0x37bfdc[_0x592602(0x14c)]()),_0x3b5795[_0x592602(0xc2)]();})),_0x221f5e[_0x241470(0x123)](this['_commandService'][_0x241470(0xde)](_0x5617d6=>{var _0x4632cf=_0x241470,_0x51b960;if(_0x5617d6[_0x4632cf(0x11b)]!==o[_0x4632cf(0xf6)][_0x4632cf(0xee)]||!this[_0x4632cf(0xfc)]['shouldShareOperation'](_0x5617d6['id']))return;const {id:_0x2d4e13}=_0x5617d6;let _0x162f3e;_0x3b5795[_0x4632cf(0x146)](_0x2d4e13)?_0x162f3e=_0x3b5795['get'](_0x2d4e13):(_0x162f3e=new D[(_0x4632cf(0xd8))](),_0x3b5795[_0x4632cf(0xf1)](_0x2d4e13,_0x162f3e),_0x162f3e[_0x4632cf(0xa5)](b['throttleTime']((_0x51b960=this[_0x4632cf(0xa6)]['getConfig'](Z))!=null?_0x51b960:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4632cf(0x141)](_0x38175a=>{var _0x4ebc1b=_0x4632cf;this[_0x4ebc1b(0x131)][_0x4ebc1b(0x106)]({'eventID':_[_0x4ebc1b(0x147)][_0x4ebc1b(0x10b)],'data':{'unitID':this[_0x4ebc1b(0x116)],'operations':{[_0x38175a['id']]:{'id':_0x38175a['id'],'params':JSON[_0x4ebc1b(0x101)](_0x38175a[_0x4ebc1b(0xb9)])}}}},this[_0x4ebc1b(0x116)]);})),_0x162f3e[_0x4632cf(0x171)](_0x5617d6);})),this[_0x241470(0xfc)][_0x241470(0xd6)](this['_unitID'])[_0x241470(0xab)](_0x1e382c=>this['_collabSession'][_0x241470(0x106)]({'eventID':_[_0x241470(0x147)][_0x241470(0x10b)],'data':{'unitID':this[_0x241470(0x116)],'operations':{[_0x1e382c['id']]:{'id':_0x1e382c['id'],'params':JSON['stringify'](_0x1e382c[_0x241470(0xb9)])}}}},this[_0x241470(0x116)]));}[_0x285575(0xb6)](){var _0x38ca71=_0x285575,_0x8af61b;this[_0x38ca71(0xbf)][_0x38ca71(0x171)](_0x38ca71(0xec)),(_0x8af61b=this[_0x38ca71(0x166)])==null||_0x8af61b[_0x38ca71(0x12b)](),this[_0x38ca71(0x166)]=null;}[_0x285575(0x16b)](){var _0x178662=_0x285575,_0x113fa9;(_0x113fa9=this[_0x178662(0x166)])==null||_0x113fa9['dispose'](),this[_0x178662(0xbf)]['next'](_0x178662(0x140));}[_0x285575(0x11a)](){var _0x2b98b1=_0x285575,_0x40ae0b;this['_status$']['next'](_0x2b98b1(0xec)),(_0x40ae0b=this[_0x2b98b1(0x166)])==null||_0x40ae0b[_0x2b98b1(0x12b)](),this[_0x2b98b1(0x166)]=null;}[_0x285575(0xc3)](){var _0x58c544=_0x285575,_0x59d90e;this[_0x58c544(0xbf)]['next'](_0x58c544(0x15d)),(_0x59d90e=this[_0x58c544(0x166)])==null||_0x59d90e[_0x58c544(0x12b)]();}[_0x285575(0x14e)](_0x53fab8){var _0x28f44d=_0x285575;if([_0x28f44d(0x10c),'not-following',_0x28f44d(0xcf)][_0x28f44d(0x16f)](this[_0x28f44d(0xb4)])||!_0x53fab8[_0x28f44d(0x10d)]['presenter']||_0x53fab8[_0x28f44d(0x10d)]['presenter']===this[_0x28f44d(0x131)]['getMemberID']())return;this['_status']===_0x28f44d(0xec)&&this[_0x28f44d(0x16b)]();const _0x152e97=_0x53fab8[_0x28f44d(0x10d)][_0x28f44d(0xb3)];Object[_0x28f44d(0xe7)](_0x152e97)[_0x28f44d(0xab)](_0x4c5af4=>{var _0x115edb=_0x28f44d;this[_0x115edb(0x10a)][_0x115edb(0x114)](_0x4c5af4['id'],_0x4c5af4['params']?JSON[_0x115edb(0xd2)](_0x4c5af4[_0x115edb(0xb9)]):null,{'fromCollab':!0x0});});}[_0x285575(0x12e)](){var _0x583e75=_0x285575,_0x1fd84a;this[_0x583e75(0xbf)][_0x583e75(0x171)](_0x583e75(0xcf)),(_0x1fd84a=this[_0x583e75(0x166)])==null||_0x1fd84a[_0x583e75(0x12b)]();}['_handleOnline'](){var _0x40e7ea=_0x285575;this[_0x40e7ea(0xbf)][_0x40e7ea(0x171)](_0x40e7ea(0xec)),this[_0x40e7ea(0xa4)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x285575(0xf9)]),S(0x3,o[_0x285575(0xd9)](O)),S(0x4,o[_0x285575(0xd3)])],exports[_0x285575(0x112)]);function A(){var _0x5ae144=_0x285575;const _0x560dc0=p['useDependency'](exports[_0x5ae144(0x130)]),_0x481893=p['useDependency'](o['IUniverInstanceService']),_0x431395=p['useObservable'](()=>_0x481893[_0x5ae144(0xbe)](o['UniverInstanceType'][_0x5ae144(0x107)]),void 0x0,!0x1,[]),[_0x4a1245,_0x1eb91d]=f[_0x5ae144(0x121)](null),[_0xa2bf1b,_0x53baaf]=f[_0x5ae144(0x121)](h[_0x5ae144(0x12f)]),_0x247e59=f[_0x5ae144(0xed)](null);return f[_0x5ae144(0x150)](()=>(_0x431395&&_0x560dc0[_0x5ae144(0x170)](_0x431395[_0x5ae144(0x134)]())['then'](_0x3d130e=>{var _0x3ee640=_0x5ae144;_0x1eb91d(_0x3d130e),_0x247e59[_0x3ee640(0x167)]=_0x3d130e[_0x3ee640(0x139)]['subscribe'](_0x389b7a=>{_0x53baaf(_0x389b7a);});}),()=>{var _0x248c56=_0x5ae144,_0x2b5887;(_0x2b5887=_0x247e59[_0x248c56(0x167)])==null||_0x2b5887['unsubscribe'](),_0x247e59[_0x248c56(0x167)]=null;}),[_0x431395,_0x560dc0]),_0x4a1245?l[_0x5ae144(0x104)](g[_0x5ae144(0xf3)],{'align':'end','disabled':_0xa2bf1b===h[_0x5ae144(0xaf)],'className':_0x5ae144(0x15a),'overlay':l[_0x5ae144(0x104)](K,{'status':_0xa2bf1b,'coordinator':_0x4a1245}),'children':l[_0x5ae144(0x104)](_0x5ae144(0xcc),{'className':g[_0x5ae144(0xa2)](_0x5ae144(0xb5),{'univer-cursor-not-allowed':_0xa2bf1b===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xa2bf1b!==h[_0x5ae144(0xaf)]}),'type':_0x5ae144(0xcc),'children':l[_0x5ae144(0x104)](P,{'className':_0x5ae144(0x124)})})}):null;}function K(_0x3e43a1){var _0x2f862c=_0x285575;const {status:_0xb7076f,coordinator:_0x5592c4}=_0x3e43a1;switch(_0xb7076f){case h['IDLE']:return l[_0x2f862c(0x104)](z,{'coordinator':_0x5592c4});case h[_0x2f862c(0xfb)]:return l[_0x2f862c(0x104)](Q,{'coordinator':_0x5592c4});case h['NOT_FOLLOWING']:return l[_0x2f862c(0x104)](X,{'coordinator':_0x5592c4});case h[_0x2f862c(0xaf)]:return l[_0x2f862c(0x104)](te,{});case h[_0x2f862c(0x109)]:return l[_0x2f862c(0x104)](ee,{'coordinator':_0x5592c4});default:return null;}}function z(_0x1814da){var _0x4de906=_0x285575;const {coordinator:_0x147b2d}=_0x1814da;return l['jsxs'](l[_0x4de906(0xfe)],{'children':[l[_0x4de906(0x104)]('div',{'className':_0x4de906(0xb1),'children':_0x4de906(0xd5)}),l['jsx'](g[_0x4de906(0xc8)],{'onClick':()=>_0x147b2d[_0x4de906(0x142)](),'children':'Start'})]});}function Q(_0x5ad599){var _0x4b4947=_0x285575;const {coordinator:_0x5238e8}=_0x5ad599;return l[_0x4b4947(0x159)](l[_0x4b4947(0xfe)],{'children':[l['jsx'](_0x4b4947(0x157),{'className':_0x4b4947(0xb1),'children':_0x4b4947(0xca)}),l[_0x4b4947(0x104)](g[_0x4b4947(0xc8)],{'onClick':()=>_0x5238e8[_0x4b4947(0x156)](),'children':_0x4b4947(0x143)})]});}function X(_0x32255a){var _0x5396c8=_0x285575;const {coordinator:_0x2b3453}=_0x32255a;return l[_0x5396c8(0x159)](l['Fragment'],{'children':[l[_0x5396c8(0x104)](_0x5396c8(0x157),{'className':_0x5396c8(0xb1),'children':_0x5396c8(0xe4)}),l[_0x5396c8(0x104)](g[_0x5396c8(0xc8)],{'variant':'text','onClick':()=>_0x2b3453['startFollowing'](),'children':'Start\x20following'})]});}function ee(_0x460fae){var _0x2de72a=_0x285575;const {coordinator:_0x37ef2b}=_0x460fae;return l[_0x2de72a(0x159)](l[_0x2de72a(0xfe)],{'children':[l[_0x2de72a(0x104)](_0x2de72a(0x157),{'className':_0x2de72a(0xb1),'children':_0x2de72a(0xd1)}),l[_0x2de72a(0x104)](g[_0x2de72a(0xc8)],{'variant':_0x2de72a(0xd0),'onClick':()=>_0x37ef2b['stopPresenting'](),'children':_0x2de72a(0xc1)})]});}function te(){var _0x355d29=_0x285575;return l[_0x355d29(0x104)](l[_0x355d29(0xfe)],{'children':_0x355d29(0x115)});}var ie=Object[_0x285575(0x117)],ne=(_0x60871,_0x4aa62e,_0x4e45d8,_0x6339b0)=>{var _0x36c0fa=_0x285575;for(var _0x22a696=_0x6339b0>0x1?void 0x0:_0x6339b0?ie(_0x4aa62e,_0x4e45d8):_0x4aa62e,_0x5f345d=_0x60871[_0x36c0fa(0x16a)]-0x1,_0x255438;_0x5f345d>=0x0;_0x5f345d--)(_0x255438=_0x60871[_0x5f345d])&&(_0x22a696=_0x255438(_0x22a696)||_0x22a696);return _0x22a696;},L=(_0x2c1d21,_0x2b89c3)=>(_0x55ed52,_0x5eb09f)=>_0x2b89c3(_0x55ed52,_0x5eb09f,_0x2c1d21);function _0x5548(){var _0x2a2bdd=['PRESENTING','_commandService','LIVESHARE_OPERATION','presenting','data','symbol','_presenter','concat','_handleOnline','LiveShareCoordinator','DesktopLiveShareController','executeCommand','You\x27are\x20offline.','_unitID','getOwnPropertyDescriptor','_handleTerminate','get','_beIdle','type','5126176UZsRoQ','fill','LiveShareStatus','random','none','useState','BehaviorSubject','add','univer-size-4','72EhDpDp','attrs','entries','mask','defIds','8515254sZVZSg','dispose','UniverLiveSharePlugin','url(#$1','_handleOffline','IDLE','LiveShareController','_collabSession','3774717vxroeI','requireSession','getUnitId','evenodd','tag','sessionStatus$','LiveShareIcon','status$','currentColor','svg','_config','SetWorksheetActiveOperation','CollaborationSessionService','toDisposable','following','subscribe','tryStartPresenting','Stop\x20following','displayName','1em','has','CollaborationEvent','LIVESHARE_TERMINATE','ONLINE','createElement','8nrJcWX','complete','shouldShareOperation','_handleOperation','stopPresenting','useEffect','1992053pKYJyI','3216350IXrrxy','touchDependencies','_startLiveShareCoordinator','takeUntil','stopFollowing','div','243504DDFSBx','jsxs','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','live-share-icon','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','not-following','LiveShare','_reporters','trim','_collabSessionService','className','path','392kIclgP','call','_commandDisposable','current','_entities','override','length','_startFollowing','init','defs','_univerInstanceService','includes','getLiveShareCoordinator','next','string','_handleNewHost','clsx','RxDisposable','_fetchOperations','pipe','_configService','delete','_startPresenting','LIVESHARE_FETCH_OPERATIONS','merge','forEach','children','indexOf','forwardRef','OFFLINE','HEADER_MENU','univer-mb-3\x20univer-w-full\x20univer-text-sm','Disposable','operations','_status','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_stopPresenting','colorChannel1','LiveShareService','params','InsertSheetMutation','_sharedOperations','startFollowing','univerjs-icon\x20univerjs-icon-','getCurrentTypeOfUnit$','_status$','idSuffix','Stop\x20presenting','clear','_stopFollowing','_injector','replace','registerComponent','defineProperty','Button','10TPBvIg','You\x27re\x20following\x20the\x20presenter','IUIPartsService','button','dispose$','unitId','offline','default','You\x27re\x20presenting\x20the\x20document','parse','ICommandService','prototype','Present\x20this\x20document','getInitialStates','_handleNewChangeSets','Subject','Inject','getMemberID','IUniverInstanceService','connectInjector','assign','onCommandExecuted','_init','apply','_uiPartsService','map','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20not\x20following\x20the\x20presenter','function','xlink:href','values','BuiltInUIPart','_mountLiveShare','Injector','memberID','idle','useRef','OPERATION','hasOwnProperty','registerDependencies','set','Module','Dropdown','getOwnPropertySymbols','pluginName','CommandType','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','registerSharedOperation','IConfigService','DependentOn','FOLLOWING','_liveShareService','0\x200\x2017\x2017','Fragment','asObservable','SetScrollOperation','stringify','UniverInstanceType','mergeOverrideWithDependencies','jsx','43601knSElE','send','UNIVER_SHEET','LIVESHARE_NEW_HOST'];_0x5548=function(){return _0x2a2bdd;};return _0x5548();}exports[_0x285575(0x113)]=class extends o[_0x285575(0xb2)]{constructor(_0x3fa9fb,_0x25b627){var _0x5d6dfe=_0x285575;super(),this[_0x5d6dfe(0xc4)]=_0x3fa9fb,this[_0x5d6dfe(0xe1)]=_0x25b627,this[_0x5d6dfe(0xe9)]();}[_0x285575(0xe9)](){var _0x3d8d16=_0x285575;this['disposeWithMe'](this[_0x3d8d16(0xe1)][_0x3d8d16(0xc6)](p[_0x3d8d16(0xe8)][_0x3d8d16(0xb0)],()=>p[_0x3d8d16(0xdc)](A,this['_injector'])));}},exports[_0x285575(0x113)]=ne([L(0x0,o[_0x285575(0xd9)](o[_0x285575(0xea)])),L(0x1,p[_0x285575(0xcb)])],exports['DesktopLiveShareController']);var re=Object[_0x285575(0xc7)],se=Object['getOwnPropertyDescriptor'],oe=(_0x11ea8d,_0x5a2625,_0x444591)=>_0x5a2625 in _0x11ea8d?re(_0x11ea8d,_0x5a2625,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x444591}):_0x11ea8d[_0x5a2625]=_0x444591,ae=(_0x41b145,_0x534bc9,_0x3c4db2,_0x9f06bd)=>{for(var _0x1bc90a=_0x9f06bd>0x1?void 0x0:_0x9f06bd?se(_0x534bc9,_0x3c4db2):_0x534bc9,_0xffbd07=_0x41b145['length']-0x1,_0x23a85b;_0xffbd07>=0x0;_0xffbd07--)(_0x23a85b=_0x41b145[_0xffbd07])&&(_0x1bc90a=_0x23a85b(_0x1bc90a)||_0x1bc90a);return _0x1bc90a;},N=(_0x3ad87f,_0x4bd76b)=>(_0x3f4f79,_0x3c7574)=>_0x4bd76b(_0x3f4f79,_0x3c7574,_0x3ad87f),T=(_0x60ae63,_0x50abff,_0x884d60)=>oe(_0x60ae63,typeof _0x50abff!=_0x285575(0x10e)?_0x50abff+'':_0x50abff,_0x884d60);const le=_0x285575(0xe3);exports[_0x285575(0x12c)]=class extends o['Plugin']{constructor(_0x49953b=x,_0x12a5cc,_0x4d1f2f){var _0x156766=_0x285575;super(),this['_config']=_0x49953b,this[_0x156766(0xc4)]=_0x12a5cc,this[_0x156766(0xa6)]=_0x4d1f2f;const {..._0x54692c}=o[_0x156766(0xaa)]({},x,this[_0x156766(0x13c)]);this[_0x156766(0xa6)]['setConfig']($,_0x54692c);}['onStarting'](){var _0x910de4=_0x285575;o[_0x910de4(0xf0)](this['_injector'],o[_0x910de4(0x103)]([[O],[exports['LiveShareController']],[E],[exports[_0x910de4(0x113)]]],this[_0x910de4(0x13c)][_0x910de4(0x169)])),o[_0x910de4(0x153)](this[_0x910de4(0xc4)],[[E]]);}['onRendered'](){var _0x1a27fa=_0x285575;o[_0x1a27fa(0x153)](this[_0x1a27fa(0xc4)],[[exports[_0x1a27fa(0x113)]]]);}},T(exports[_0x285575(0x12c)],_0x285575(0x11b),o[_0x285575(0x102)]['UNIVER_UNKNOWN']),T(exports['UniverLiveSharePlugin'],_0x285575(0xf5),le),exports[_0x285575(0x12c)]=ae([o[_0x285575(0xfa)](m['UniverCollaborationClientPlugin']),N(0x1,o['Inject'](o['Injector'])),N(0x2,o[_0x285575(0xf9)])],exports[_0x285575(0x12c)]),exports[_0x285575(0x15e)]=A,exports[_0x285575(0xb8)]=O,exports[_0x285575(0x11e)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x374f0d=_0x777f;(function(_0x5618cb,_0x5bf0bd){var _0x427a17=_0x777f,_0x2cfe68=_0x5618cb();while(!![]){try{var _0x49e084=-parseInt(_0x427a17(0x12c))/0x1*(-parseInt(_0x427a17(0xcf))/0x2)+-parseInt(_0x427a17(0x165))/0x3+parseInt(_0x427a17(0x13f))/0x4+parseInt(_0x427a17(0x113))/0x5*(parseInt(_0x427a17(0xc2))/0x6)+parseInt(_0x427a17(0xc3))/0x7*(parseInt(_0x427a17(0xcd))/0x8)+-parseInt(_0x427a17(0xee))/0x9*(-parseInt(_0x427a17(0xfe))/0xa)+-parseInt(_0x427a17(0x104))/0xb;if(_0x49e084===_0x5bf0bd)break;else _0x2cfe68['push'](_0x2cfe68['shift']());}catch(_0x5493ee){_0x2cfe68['push'](_0x2cfe68['shift']());}}}(_0x5f2a,0xbdc4e));var q=Object['defineProperty'],z=(_0xea560d,_0x25118f,_0x3a50bd)=>_0x25118f in _0xea560d?q(_0xea560d,_0x25118f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a50bd}):_0xea560d[_0x25118f]=_0x3a50bd,d=(_0x463421,_0x1996d9,_0x55e458)=>z(_0x463421,typeof _0x1996d9!='symbol'?_0x1996d9+'':_0x1996d9,_0x55e458);import{CollaborationSessionService as _0x52f07c,SessionStatus as _0x2830e1,UniverCollaborationClientPlugin as _0xadeaf6}from'@univerjs-pro/collaboration-client';import{Disposable as _0x23bae8,toDisposable as _0x123a30,Inject as _0x314c14,IUniverInstanceService as _0x50d8c5,Injector as _0x1bfa83,IConfigService as _0x1c9c8e,ICommandService as _0x11b5db,RxDisposable as _0x131b2c,UniverInstanceType as _0x571d0a,DisposableCollection as _0x179014,CommandType as _0x3475ca,DependentOn as _0x39f7a7,Plugin as _0x552d9d,merge as _0x13d80c,registerDependencies as _0x1c17e9,mergeOverrideWithDependencies as _0x100a43,touchDependencies as _0x870d19}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x2e879b,InsertSheetMutation as _0x7f5e33}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5e038b,SetScrollOperation as _0x5df0f0}from'@univerjs/sheets-ui';import{useDependency as _0x3cb200,useObservable as _0x26a8d4,IUIPartsService as _0x2aa461,BuiltInUIPart as _0x5bfd17,connectInjector as _0x14037c}from'@univerjs/ui';import{jsx as _0x5cd53e,jsxs as _0x5cf0f1,Fragment as _0x5e9c70}from'react/jsx-runtime';import{Dropdown as _0x9196d1,clsx as _0x1101ed,Button as _0xd1b51f}from'@univerjs/design';import{forwardRef as _0x509778,useRef as _0x2e65b7,createElement as _0x8e75da,useState as _0x11d288,useEffect as _0x241cbb}from'react';import{CollaborationEvent as _0x283e71,parseProtocolChangeset as _0x64dfb3}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3f8b82,Subject as _0x3e95be}from'rxjs';import{takeUntil as _0x1d68b7,throttleTime as _0x33739f}from'rxjs/operators';const Oe=_0x374f0d(0xd7),T={};class L extends _0x23bae8{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x374f0d(0x16d)](_0x3119f5){var _0x3982f4=_0x374f0d;return this[_0x3982f4(0x129)]['add'](_0x3119f5),_0x123a30(()=>this[_0x3982f4(0x129)][_0x3982f4(0x15a)](_0x3119f5));}[_0x374f0d(0x132)](_0x2ad29f){var _0x285ac4=_0x374f0d;return this[_0x285ac4(0xd3)][_0x285ac4(0x140)](_0x2ad29f),_0x123a30(()=>this[_0x285ac4(0xd3)]['delete'](_0x2ad29f));}['shouldShareOperation'](_0x346d30){var _0x5b3e53=_0x374f0d;return this[_0x5b3e53(0x129)]['has'](_0x346d30);}[_0x374f0d(0xe6)](_0x252c32){var _0x2048cf=_0x374f0d;return Array[_0x2048cf(0xd9)](this[_0x2048cf(0xd3)])[_0x2048cf(0x10f)](_0x2c6efe=>_0x2c6efe(_0x252c32));}}var Ee=Object[_0x374f0d(0xf0)],we=(_0x227caa,_0x23138c,_0x1ebf2b,_0x48e980)=>{var _0x1519e6=_0x374f0d;for(var _0x5d3baf=_0x48e980>0x1?void 0x0:_0x48e980?Ee(_0x23138c,_0x1ebf2b):_0x23138c,_0x30a7ab=_0x227caa[_0x1519e6(0xcc)]-0x1,_0x15b2c3;_0x30a7ab>=0x0;_0x30a7ab--)(_0x15b2c3=_0x227caa[_0x30a7ab])&&(_0x5d3baf=_0x15b2c3(_0x5d3baf)||_0x5d3baf);return _0x5d3baf;},Ne=(_0x116329,_0x36b362)=>(_0xfe99d7,_0x41d532)=>_0x36b362(_0xfe99d7,_0x41d532,_0x116329);let m=class extends _0x23bae8{constructor(_0x39b9ed){var _0x35c21f=_0x374f0d;super(),this[_0x35c21f(0x14a)]=_0x39b9ed,this[_0x35c21f(0xe1)]();}[_0x374f0d(0xe1)](){var _0x2b7dac=_0x374f0d;[_0x5e038b['id'],_0x5df0f0['id'],_0x2e879b['id']][_0x2b7dac(0x155)](_0x1a41b4=>{var _0x5ddb88=_0x2b7dac;this[_0x5ddb88(0xda)](this[_0x5ddb88(0x14a)][_0x5ddb88(0x16d)](_0x1a41b4));});}};m=we([Ne(0x0,_0x314c14(L))],m);var c=function(){var _0x1fdc83=_0x374f0d;return c=Object['assign']||function(_0x3560ea){var _0x3c0683=_0x777f;for(var _0x5dd13e,_0x38d331=0x1,_0x5d7f46=arguments['length'];_0x38d331<_0x5d7f46;_0x38d331++){_0x5dd13e=arguments[_0x38d331];for(var _0x507956 in _0x5dd13e)Object[_0x3c0683(0x12d)]['hasOwnProperty'][_0x3c0683(0xd5)](_0x5dd13e,_0x507956)&&(_0x3560ea[_0x507956]=_0x5dd13e[_0x507956]);}return _0x3560ea;},c[_0x1fdc83(0xce)](this,arguments);},Ce=function(_0x35ef30,_0xa52db9){var _0xf0f1f7=_0x374f0d,_0x28517c={};for(var _0x535089 in _0x35ef30)Object[_0xf0f1f7(0x12d)][_0xf0f1f7(0x16a)][_0xf0f1f7(0xd5)](_0x35ef30,_0x535089)&&_0xa52db9['indexOf'](_0x535089)<0x0&&(_0x28517c[_0x535089]=_0x35ef30[_0x535089]);if(_0x35ef30!=null&&typeof Object[_0xf0f1f7(0x16f)]==_0xf0f1f7(0xfd)){for(var _0xb52376=0x0,_0x535089=Object[_0xf0f1f7(0x16f)](_0x35ef30);_0xb52376<_0x535089[_0xf0f1f7(0xcc)];_0xb52376++)_0xa52db9[_0xf0f1f7(0x141)](_0x535089[_0xb52376])<0x0&&Object[_0xf0f1f7(0x12d)][_0xf0f1f7(0xc4)][_0xf0f1f7(0xd5)](_0x35ef30,_0x535089[_0xb52376])&&(_0x28517c[_0x535089[_0xb52376]]=_0x35ef30[_0x535089[_0xb52376]]);}return _0x28517c;},W=_0x509778(function(_0x1e72e7,_0x17fa72){var _0x1bb41b=_0x374f0d,_0x5e1ac3=_0x1e72e7['icon'],_0x2f17cf=_0x1e72e7['id'],_0x148cc2=_0x1e72e7[_0x1bb41b(0x10b)],_0x3df4dc=_0x1e72e7[_0x1bb41b(0x11b)],_0x3309a1=Ce(_0x1e72e7,['icon','id',_0x1bb41b(0x10b),_0x1bb41b(0x11b)]),_0x47527e=_0x1bb41b(0x15b)[_0x1bb41b(0x133)](_0x2f17cf,'\x20')[_0x1bb41b(0x133)](_0x148cc2||'')[_0x1bb41b(0x12e)](),_0x336a64=_0x2e65b7('_'[_0x1bb41b(0x133)](Le()));return Y(_0x5e1ac3,''[_0x1bb41b(0x133)](_0x2f17cf),{'defIds':_0x5e1ac3['defIds'],'idSuffix':_0x336a64[_0x1bb41b(0x15c)]},c({'ref':_0x17fa72,'className':_0x47527e},_0x3309a1),_0x3df4dc);});function Y(_0x47e20a,_0x462a24,_0xf6447e,_0x19c687,_0x38d9a4){var _0x19cae7=_0x374f0d;return _0x8e75da(_0x47e20a[_0x19cae7(0xf6)],c(c({'key':_0x462a24},De(_0x47e20a,_0xf6447e,_0x38d9a4)),_0x19c687),(xe(_0x47e20a,_0xf6447e)[_0x19cae7(0x128)]||[])[_0x19cae7(0x10f)](function(_0x3a896c,_0x1cd11a){var _0x41c05f=_0x19cae7;return Y(_0x3a896c,''[_0x41c05f(0x133)](_0x462a24,'-')['concat'](_0x47e20a[_0x41c05f(0xf6)],'-')[_0x41c05f(0x133)](_0x1cd11a),_0xf6447e,void 0x0,_0x38d9a4);}));}function De(_0x38e45c,_0x36d365,_0xa0ca93){var _0x172963=_0x374f0d,_0x209214=c({},_0x38e45c[_0x172963(0x121)]);_0xa0ca93!=null&&_0xa0ca93[_0x172963(0x13d)]&&_0x209214[_0x172963(0x14e)]===_0x172963(0x13d)&&(_0x209214[_0x172963(0x14e)]=_0xa0ca93[_0x172963(0x13d)]),_0x38e45c['tag']===_0x172963(0xeb)&&_0x209214['id']&&(_0x209214['id']=_0x209214['id']+_0x36d365[_0x172963(0x11f)]),Object[_0x172963(0xd4)](_0x209214)[_0x172963(0x155)](function(_0x324cd6){var _0x383c6c=_0x172963,_0x57dae8=_0x324cd6[0x0],_0xccc522=_0x324cd6[0x1];_0x57dae8===_0x383c6c(0xeb)&&typeof _0xccc522==_0x383c6c(0xbf)&&(_0x209214[_0x57dae8]=_0xccc522[_0x383c6c(0xef)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x36d365['idSuffix'],')')));});var _0x481445=_0x36d365['defIds'];return!_0x481445||_0x481445['length']===0x0||(_0x38e45c[_0x172963(0xf6)]===_0x172963(0x158)&&_0x209214['xlink:href']&&(_0x209214['xlink:href']=_0x209214[_0x172963(0x143)]+_0x36d365[_0x172963(0x11f)]),Object[_0x172963(0xd4)](_0x209214)['forEach'](function(_0x2d3c87){var _0x3f8dc5=_0x172963,_0x24ad34=_0x2d3c87[0x0],_0x7977ab=_0x2d3c87[0x1];typeof _0x7977ab==_0x3f8dc5(0xbf)&&(_0x209214[_0x24ad34]=_0x7977ab[_0x3f8dc5(0xef)](/url\(#(.*)\)/,_0x3f8dc5(0x11c)[_0x3f8dc5(0x133)](_0x36d365['idSuffix'],')')));})),_0x209214;}function xe(_0x12e8b2,_0x1d076d){var _0x41cdaa=_0x374f0d,_0x4f2e5d,_0x21bb2b=_0x1d076d[_0x41cdaa(0xc5)];return!_0x21bb2b||_0x21bb2b[_0x41cdaa(0xcc)]===0x0?_0x12e8b2:_0x12e8b2['tag']==='defs'&&(!((_0x4f2e5d=_0x12e8b2[_0x41cdaa(0x128)])===null||_0x4f2e5d===void 0x0)&&_0x4f2e5d[_0x41cdaa(0xcc)])?c(c({},_0x12e8b2),{'children':_0x12e8b2[_0x41cdaa(0x128)][_0x41cdaa(0x10f)](function(_0x2eadf0){var _0x1e5868=_0x41cdaa;return typeof _0x2eadf0[_0x1e5868(0x121)]['id']==_0x1e5868(0xbf)&&_0x21bb2b&&_0x21bb2b[_0x1e5868(0xcb)](_0x2eadf0[_0x1e5868(0x121)]['id'])?c(c({},_0x2eadf0),{'attrs':c(c({},_0x2eadf0[_0x1e5868(0x121)]),{'id':_0x2eadf0[_0x1e5868(0x121)]['id']+_0x1d076d[_0x1e5868(0x11f)]})}):_0x2eadf0;})}):_0x12e8b2;}function _0x5f2a(){var _0x2244ce=['use','HEADER_MENU','delete','univerjs-icon\x20univerjs-icon-','current','_collabSessionService','_handleOperation','mutations','_collabSession','1em','presenter','_commandService','PRESENTING','1810164OFfWVn','_config','setConfig','memberID','_handleOnline','hasOwnProperty','subscribe','path','registerSharedOperation','_handleNewHost','getOwnPropertySymbols','getTypeOfUnitDisposed$','sheet','LIVESHARE_OPERATION','_fetchOperations','presenting','string','FOLLOWING','dispose$','43800IcjPzh','68817jreaps','propertyIsEnumerable','defIds','_handleTerminate','LIVESHARE_FETCH_OPERATIONS','reverse','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20presenting\x20the\x20document','includes','length','1096BnUhjI','apply','36tGgjDt','registerComponent','random','getMemberID','_reporters','entries','call','type','live-share.config','startFollowing','from','disposeWithMe','UNIVER_SHEET','_beIdle','Start\x20following','_startLiveShareCoordinator','getTypeOfUnitAdded$','getConfig','_init','_stopPresenting','_handleOffline','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','svg','getInitialStates','_stopFollowing','executeCommand','send','getUnitId','mask','_startPresenting','params','87966oIXkgc','replace','getOwnPropertyDescriptor','displayName','currentColor','_uiPartsService','SAME_OPERATION_SHARE_INTERVAL','tryStartPresenting','tag','find','_status','IDLE','complete','_univerInstanceService','LIVESHARE_TERMINATE','function','730eBUOgj','init','idle','pipe','univer-size-4','onRendered','38075224HvEvvY','_startFollowing','dispose','next','substring','You\x27re\x20following\x20the\x20presenter','pluginName','className','get','has','values','map','unsubscribe','data','shouldShareOperation','685SoTHTb','default','_injector','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','Start','_presenter','sessionStatus$','_mountLiveShare','extend','url(#$1','operations','not-following','idSuffix','live-share-icon','attrs','UNIVER_UNKNOWN','UNIVER_LIVE_SHARE_PLUGIN','requireSession','symbol','http://www.w3.org/2000/svg','parse','children','_sharedOperations','end','Stop\x20presenting','76723mXwytj','prototype','trim','evenodd','override','stopPresenting','registerInitialStateReporter','concat','div','createInstance','ONLINE','button','offline','assign','OFFLINE','_status$','text','colorChannel1','set','1602412MohkXX','add','indexOf','You\x27are\x20offline.','xlink:href','NEW_CHANGESETS','then','onCommandExecuted','_handleNewChangeSets','_entities','none','_liveShareService','getValue','LiveShareIcon','asObservable','fill','following','NOT_FOLLOWING','onStarting','_configService','getLiveShareCoordinator','status$','forEach','_unitID','_commandDisposable'];_0x5f2a=function(){return _0x2244ce;};return _0x5f2a();}function Le(){var _0x2f6e86=_0x374f0d;return Math[_0x2f6e86(0xd1)]()['toString'](0x24)[_0x2f6e86(0x108)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x374f0d(0xe5),'attrs':{'xmlns':_0x374f0d(0x126),'fill':_0x374f0d(0x149),'viewBox':'0\x200\x2017\x2017','width':_0x374f0d(0x161),'height':_0x374f0d(0x161)},'children':[{'tag':_0x374f0d(0x16c),'attrs':{'fill':_0x374f0d(0xf2),'d':_0x374f0d(0xe4)}},{'tag':_0x374f0d(0x16c),'attrs':{'fill':_0x374f0d(0xf2),'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':_0x374f0d(0x12f),'clipRule':_0x374f0d(0x12f)}}]},B=_0x509778(function(_0x3bd364,_0x4a4241){var _0x2557d7=_0x374f0d;return _0x8e75da(W,Object[_0x2557d7(0x139)]({},_0x3bd364,{'id':_0x2557d7(0x120),'ref':_0x4a4241,'icon':ye}));});B[_0x374f0d(0xf1)]=_0x374f0d(0x14c);var Re=Object[_0x374f0d(0xf0)],Z=(_0x215004,_0xa85c72,_0x2ba6af,_0x3caa6d)=>{for(var _0x5787ac=_0x3caa6d>0x1?void 0x0:_0x3caa6d?Re(_0xa85c72,_0x2ba6af):_0xa85c72,_0x28c567=_0x215004['length']-0x1,_0x2fca5a;_0x28c567>=0x0;_0x28c567--)(_0x2fca5a=_0x215004[_0x28c567])&&(_0x5787ac=_0x2fca5a(_0x5787ac)||_0x5787ac);return _0x5787ac;},f=(_0x5732a4,_0xa9b3f4)=>(_0x18988d,_0x4f2b9c)=>_0xa9b3f4(_0x18988d,_0x4f2b9c,_0x5732a4);let I=class extends _0x131b2c{constructor(_0x5cb6de,_0x201a7f,_0x7616c9){var _0xe3eef7=_0x374f0d;super(),d(this,_0xe3eef7(0x148),new Map()),(this[_0xe3eef7(0xfb)]=_0x5cb6de,this[_0xe3eef7(0x115)]=_0x201a7f,this[_0xe3eef7(0x15d)]=_0x7616c9,this['_init']());}async[_0x374f0d(0x153)](_0x3cbb19){var _0x4ef244=_0x374f0d;return this[_0x4ef244(0x148)][_0x4ef244(0x10d)](_0x3cbb19)||await this[_0x4ef244(0xde)](_0x3cbb19),this[_0x4ef244(0x148)][_0x4ef244(0x10c)](_0x3cbb19);}[_0x374f0d(0xe1)](){var _0x5ced3d=_0x374f0d;this['_univerInstanceService'][_0x5ced3d(0xdf)](_0x571d0a[_0x5ced3d(0xdb)])[_0x5ced3d(0x101)](_0x1d68b7(this[_0x5ced3d(0xc1)]))[_0x5ced3d(0x16b)](async _0x4f767d=>{var _0x8d97ab=_0x5ced3d;const _0xfaf7cb=_0x4f767d[_0x8d97ab(0xea)]();this[_0x8d97ab(0x148)][_0x8d97ab(0x10d)](_0xfaf7cb)||this[_0x8d97ab(0xde)](_0xfaf7cb);}),this[_0x5ced3d(0xfb)][_0x5ced3d(0x170)](_0x571d0a[_0x5ced3d(0xdb)])['pipe'](_0x1d68b7(this['dispose$']))[_0x5ced3d(0x16b)](_0x9bbee9=>{var _0x3784a3=_0x5ced3d;const _0x27f99c=_0x9bbee9[_0x3784a3(0xea)](),_0x46d048=this['_entities'][_0x3784a3(0x10c)](_0x27f99c);_0x46d048==null||_0x46d048['dispose']();});}async['_startLiveShareCoordinator'](_0x40d0f7){var _0x41fbf5=_0x374f0d;const _0x41a895=await this[_0x41fbf5(0x15d)][_0x41fbf5(0x124)](_0x40d0f7),_0x20038f=this[_0x41fbf5(0x115)][_0x41fbf5(0x135)](C,_0x40d0f7,_0x41a895);return _0x20038f['init'](),this[_0x41fbf5(0x148)][_0x41fbf5(0x13e)](_0x40d0f7,_0x20038f),_0x20038f;}};I=Z([f(0x0,_0x50d8c5),f(0x1,_0x314c14(_0x1bfa83)),f(0x2,_0x314c14(_0x52f07c))],I);var h=(_0x38f1d9=>(_0x38f1d9[_0x374f0d(0x13a)]=_0x374f0d(0x138),_0x38f1d9['IDLE']=_0x374f0d(0x100),_0x38f1d9[_0x374f0d(0xc0)]=_0x374f0d(0x14f),_0x38f1d9[_0x374f0d(0x150)]=_0x374f0d(0x11e),_0x38f1d9[_0x374f0d(0x164)]=_0x374f0d(0x174),_0x38f1d9))(h||{});const Pe=_0x374f0d(0xf4),Ae=0xc8;let C=class extends _0x131b2c{constructor(_0x134119,_0x1aa480,_0x1484a2,_0x42df84,_0xc77182){var _0x57c5c1=_0x374f0d;super(),d(this,_0x57c5c1(0x13b),new _0x3f8b82('idle')),d(this,'status$',this[_0x57c5c1(0x13b)][_0x57c5c1(0x14d)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x57c5c1(0x118),null),(this[_0x57c5c1(0x156)]=_0x134119,this['_collabSession']=_0x1aa480,this['_configService']=_0x1484a2,this[_0x57c5c1(0x14a)]=_0x42df84,this[_0x57c5c1(0x163)]=_0xc77182);}get['_status'](){var _0xc9c2a2=_0x374f0d;return this['_status$'][_0xc9c2a2(0x14b)]();}[_0x374f0d(0x106)](){var _0xb73b20=_0x374f0d,_0x34d501;(_0x34d501=this[_0xb73b20(0x157)])==null||_0x34d501[_0xb73b20(0x106)](),this[_0xb73b20(0x13b)][_0xb73b20(0x107)]('idle'),this[_0xb73b20(0x13b)][_0xb73b20(0xfa)]();}[_0x374f0d(0xff)](){var _0xc589aa=_0x374f0d;this['_init']||(this[_0xc589aa(0xe1)]=!0x0,this[_0xc589aa(0x160)][_0xc589aa(0x119)][_0xc589aa(0x101)](_0x1d68b7(this[_0xc589aa(0xc1)]))[_0xc589aa(0x16b)](_0x30fa7c=>{var _0x4ade0b=_0xc589aa;switch(_0x30fa7c){case _0x2830e1[_0x4ade0b(0x13a)]:this[_0x4ade0b(0xe3)]();break;case _0x2830e1[_0x4ade0b(0x136)]:this['_handleOnline']();break;}}),this[_0xc589aa(0x160)]['event$'][_0xc589aa(0x101)](_0x1d68b7(this[_0xc589aa(0xc1)]))[_0xc589aa(0x16b)](_0x4866bb=>{var _0x4fba71=_0xc589aa;const {eventID:_0x3d6aea}=_0x4866bb;switch(_0x3d6aea){case _0x283e71['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4866bb);break;case _0x283e71[_0x4fba71(0x172)]:this['_handleOperation'](_0x4866bb);break;case _0x283e71[_0x4fba71(0xfc)]:this[_0x4fba71(0xc6)]();break;case _0x283e71[_0x4fba71(0x144)]:this['_handleNewChangeSets'](_0x4866bb);break;}}));}[_0x374f0d(0xf5)](){var _0xa43ae9=_0x374f0d;this[_0xa43ae9(0x160)]['send']({'eventID':_0x283e71['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0xa43ae9(0x160)][_0xa43ae9(0xd2)]()}},this[_0xa43ae9(0x156)]);}[_0x374f0d(0x131)](){var _0x5c6bc3=_0x374f0d;this[_0x5c6bc3(0xf8)]===_0x5c6bc3(0x174)&&(this[_0x5c6bc3(0x13b)][_0x5c6bc3(0x107)](_0x5c6bc3(0x100)),this[_0x5c6bc3(0x160)]['send']({'eventID':_0x283e71['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x5c6bc3(0x156)]}},this[_0x5c6bc3(0x156)]));}[_0x374f0d(0xd8)](){var _0x49f932=_0x374f0d;this[_0x49f932(0xf8)]===_0x49f932(0x11e)&&(this['_status$']['next'](_0x49f932(0x14f)),this['_startFollowing']());}['stopFollowing'](){var _0x44ff45=_0x374f0d;this[_0x44ff45(0xf8)]===_0x44ff45(0x14f)&&this[_0x44ff45(0xe7)]();}[_0x374f0d(0x16e)](_0x4ef510){var _0x1c6522=_0x374f0d;const {presenter:_0x1ca452}=_0x4ef510[_0x1c6522(0x111)],_0x207893=this[_0x1c6522(0x160)][_0x1c6522(0xd2)]();this['_presenter']=_0x1ca452,_0x1ca452===_0x207893?(this[_0x1c6522(0xe7)](),this['_startPresenting']()):this[_0x1c6522(0xf8)]!==_0x1c6522(0x11e)&&(this[_0x1c6522(0xe2)](),this['_startFollowing']());}[_0x374f0d(0x173)](){var _0x249cfc=_0x374f0d;const _0x2f58cc={'eventID':_0x283e71[_0x249cfc(0xc7)]};this[_0x249cfc(0x160)][_0x249cfc(0xe9)](_0x2f58cc,this['_unitID']);}[_0x374f0d(0xc6)](){var _0x412117=_0x374f0d;this[_0x412117(0x118)]=null,this['_status']!=='presenting'&&this[_0x412117(0xdc)]();}[_0x374f0d(0x147)](_0x5ab3a0){var _0x55af09=_0x374f0d;if(this[_0x55af09(0xf8)]===_0x55af09(0x14f)&&this[_0x55af09(0x118)]===_0x5ab3a0[_0x55af09(0x111)][_0x55af09(0x168)]){const _0x5f5100=_0x64dfb3(_0x5ab3a0[_0x55af09(0x111)])[_0x55af09(0x15f)][_0x55af09(0xc8)]()[_0x55af09(0xf7)](_0x5a6894=>_0x5a6894['id']===_0x7f5e33['id']);if(_0x5f5100){const _0x2df160=_0x5f5100[_0x55af09(0xed)]['unitId'],_0xd8c353=_0x5f5100[_0x55af09(0xed)][_0x55af09(0x171)]['id'];setTimeout(()=>{var _0x3793ca=_0x55af09;this[_0x3793ca(0x163)][_0x3793ca(0xe8)](_0x2e879b['id'],{'unitId':_0x2df160,'subUnitId':_0xd8c353},{'fromCollab':!0x0});});}}}[_0x374f0d(0xec)](){var _0x5a169a=_0x374f0d;this[_0x5a169a(0x13b)][_0x5a169a(0x107)](_0x5a169a(0x174));const _0x299d87=new Map(),_0x1b5fcd=this[_0x5a169a(0x157)]=new _0x179014();_0x1b5fcd[_0x5a169a(0x140)](_0x123a30(()=>{var _0x2e60d5=_0x5a169a;_0x299d87['forEach'](_0x35b206=>_0x35b206[_0x2e60d5(0xfa)]()),_0x299d87['clear']();})),_0x1b5fcd[_0x5a169a(0x140)](this[_0x5a169a(0x163)][_0x5a169a(0x146)](_0x322537=>{var _0x7f0f62=_0x5a169a,_0x189035;if(_0x322537['type']!==_0x3475ca['OPERATION']||!this[_0x7f0f62(0x14a)][_0x7f0f62(0x112)](_0x322537['id']))return;const {id:_0xeb6a37}=_0x322537;let _0xcbcad0;_0x299d87[_0x7f0f62(0x10d)](_0xeb6a37)?_0xcbcad0=_0x299d87[_0x7f0f62(0x10c)](_0xeb6a37):(_0xcbcad0=new _0x3e95be(),_0x299d87[_0x7f0f62(0x13e)](_0xeb6a37,_0xcbcad0),_0xcbcad0[_0x7f0f62(0x101)](_0x33739f((_0x189035=this[_0x7f0f62(0x152)][_0x7f0f62(0xe0)](Pe))!=null?_0x189035:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x7f0f62(0x16b)](_0x2016cf=>{var _0x5f13cf=_0x7f0f62;this['_collabSession'][_0x5f13cf(0xe9)]({'eventID':_0x283e71[_0x5f13cf(0x172)],'data':{'unitID':this['_unitID'],'operations':{[_0x2016cf['id']]:{'id':_0x2016cf['id'],'params':JSON['stringify'](_0x2016cf[_0x5f13cf(0xed)])}}}},this[_0x5f13cf(0x156)]);})),_0xcbcad0[_0x7f0f62(0x107)](_0x322537);})),this['_liveShareService'][_0x5a169a(0xe6)](this[_0x5a169a(0x156)])['forEach'](_0x513479=>this['_collabSession']['send']({'eventID':_0x283e71[_0x5a169a(0x172)],'data':{'unitID':this['_unitID'],'operations':{[_0x513479['id']]:{'id':_0x513479['id'],'params':JSON['stringify'](_0x513479['params'])}}}},this[_0x5a169a(0x156)]));}[_0x374f0d(0xe2)](){var _0x15f0bf=_0x374f0d,_0x8e8388;this['_status$'][_0x15f0bf(0x107)]('idle'),(_0x8e8388=this['_commandDisposable'])==null||_0x8e8388[_0x15f0bf(0x106)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x57f098=_0x374f0d,_0x3465c6;(_0x3465c6=this[_0x57f098(0x157)])==null||_0x3465c6[_0x57f098(0x106)](),this[_0x57f098(0x13b)][_0x57f098(0x107)](_0x57f098(0x14f));}[_0x374f0d(0xdc)](){var _0x3a7b05=_0x374f0d,_0x3c56fc;this[_0x3a7b05(0x13b)][_0x3a7b05(0x107)](_0x3a7b05(0x100)),(_0x3c56fc=this[_0x3a7b05(0x157)])==null||_0x3c56fc[_0x3a7b05(0x106)](),this['_commandDisposable']=null;}[_0x374f0d(0xe7)](){var _0x1a7611=_0x374f0d,_0x333681;this[_0x1a7611(0x13b)]['next'](_0x1a7611(0x11e)),(_0x333681=this[_0x1a7611(0x157)])==null||_0x333681[_0x1a7611(0x106)]();}[_0x374f0d(0x15e)](_0x5337e2){var _0x312022=_0x374f0d;if([_0x312022(0x174),'not-following',_0x312022(0x138)][_0x312022(0xcb)](this[_0x312022(0xf8)])||!_0x5337e2['data'][_0x312022(0x162)]||_0x5337e2[_0x312022(0x111)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x312022(0xf8)]===_0x312022(0x100)&&this[_0x312022(0x105)]();const _0x6bf141=_0x5337e2[_0x312022(0x111)][_0x312022(0x11d)];Object[_0x312022(0x10e)](_0x6bf141)['forEach'](_0x4a4193=>{var _0x211da6=_0x312022;this[_0x211da6(0x163)][_0x211da6(0xe8)](_0x4a4193['id'],_0x4a4193[_0x211da6(0xed)]?JSON[_0x211da6(0x127)](_0x4a4193[_0x211da6(0xed)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x2aa358=_0x374f0d,_0x157939;this[_0x2aa358(0x13b)][_0x2aa358(0x107)]('offline'),(_0x157939=this[_0x2aa358(0x157)])==null||_0x157939[_0x2aa358(0x106)]();}[_0x374f0d(0x169)](){var _0x81e63c=_0x374f0d;this['_status$'][_0x81e63c(0x107)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x1c9c8e),f(0x3,_0x314c14(L)),f(0x4,_0x11b5db)],C);function Te(){var _0x48c088=_0x374f0d;const _0x316703=_0x3cb200(I),_0x2945c4=_0x3cb200(_0x50d8c5),_0x720056=_0x26a8d4(()=>_0x2945c4['getCurrentTypeOfUnit$'](_0x571d0a['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5b05a7,_0x50930c]=_0x11d288(null),[_0x59d2fa,_0x5c874a]=_0x11d288(h[_0x48c088(0xf9)]),_0x2dbcd2=_0x2e65b7(null);return _0x241cbb(()=>(_0x720056&&_0x316703[_0x48c088(0x153)](_0x720056[_0x48c088(0xea)]())[_0x48c088(0x145)](_0x29a318=>{var _0x24ead3=_0x48c088;_0x50930c(_0x29a318),_0x2dbcd2[_0x24ead3(0x15c)]=_0x29a318[_0x24ead3(0x154)]['subscribe'](_0x3633aa=>{_0x5c874a(_0x3633aa);});}),()=>{var _0x2ab678=_0x48c088,_0x21f09b;(_0x21f09b=_0x2dbcd2[_0x2ab678(0x15c)])==null||_0x21f09b[_0x2ab678(0x110)](),_0x2dbcd2[_0x2ab678(0x15c)]=null;}),[_0x720056,_0x316703]),_0x5b05a7?_0x5cd53e(_0x9196d1,{'align':_0x48c088(0x12a),'disabled':_0x59d2fa===h[_0x48c088(0x13a)],'className':_0x48c088(0x116),'overlay':_0x5cd53e($e,{'status':_0x59d2fa,'coordinator':_0x5b05a7}),'children':_0x5cd53e(_0x48c088(0x137),{'className':_0x1101ed('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x59d2fa===h[_0x48c088(0x13a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x59d2fa!==h[_0x48c088(0x13a)]}),'type':_0x48c088(0x137),'children':_0x5cd53e(B,{'className':_0x48c088(0x102)})})}):null;}function $e(_0x4717cb){var _0x5594c1=_0x374f0d;const {status:_0x35466b,coordinator:_0x399948}=_0x4717cb;switch(_0x35466b){case h['IDLE']:return _0x5cd53e(Fe,{'coordinator':_0x399948});case h['FOLLOWING']:return _0x5cd53e(He,{'coordinator':_0x399948});case h[_0x5594c1(0x150)]:return _0x5cd53e(je,{'coordinator':_0x399948});case h[_0x5594c1(0x13a)]:return _0x5cd53e(Ve,{});case h[_0x5594c1(0x164)]:return _0x5cd53e(Ue,{'coordinator':_0x399948});default:return null;}}function _0x777f(_0x20208f,_0x2ade18){var _0x5f2a06=_0x5f2a();return _0x777f=function(_0x777ffb,_0x2e8e9c){_0x777ffb=_0x777ffb-0xbf;var _0x44709c=_0x5f2a06[_0x777ffb];return _0x44709c;},_0x777f(_0x20208f,_0x2ade18);}function Fe(_0x335380){var _0x103223=_0x374f0d;const {coordinator:_0x434c6a}=_0x335380;return _0x5cf0f1(_0x5e9c70,{'children':[_0x5cd53e('div',{'className':_0x103223(0xc9),'children':'Present\x20this\x20document'}),_0x5cd53e(_0xd1b51f,{'onClick':()=>_0x434c6a[_0x103223(0xf5)](),'children':_0x103223(0x117)})]});}function He(_0x214b8a){var _0x360208=_0x374f0d;const {coordinator:_0x4f7c70}=_0x214b8a;return _0x5cf0f1(_0x5e9c70,{'children':[_0x5cd53e(_0x360208(0x134),{'className':_0x360208(0xc9),'children':_0x360208(0x109)}),_0x5cd53e(_0xd1b51f,{'onClick':()=>_0x4f7c70['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x5aa383){var _0x278149=_0x374f0d;const {coordinator:_0x335a5a}=_0x5aa383;return _0x5cf0f1(_0x5e9c70,{'children':[_0x5cd53e(_0x278149(0x134),{'className':_0x278149(0xc9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x5cd53e(_0xd1b51f,{'variant':_0x278149(0x13c),'onClick':()=>_0x335a5a['startFollowing'](),'children':_0x278149(0xdd)})]});}function Ue(_0x815a38){var _0x39c68b=_0x374f0d;const {coordinator:_0x110106}=_0x815a38;return _0x5cf0f1(_0x5e9c70,{'children':[_0x5cd53e(_0x39c68b(0x134),{'className':_0x39c68b(0xc9),'children':_0x39c68b(0xca)}),_0x5cd53e(_0xd1b51f,{'variant':_0x39c68b(0x114),'onClick':()=>_0x110106[_0x39c68b(0x131)](),'children':_0x39c68b(0x12b)})]});}function Ve(){var _0x42cfbb=_0x374f0d;return _0x5cd53e(_0x5e9c70,{'children':_0x42cfbb(0x142)});}var Me=Object[_0x374f0d(0xf0)],ke=(_0x33e56f,_0x222d65,_0xe41e6e,_0x10597c)=>{var _0x1c955f=_0x374f0d;for(var _0x7910ea=_0x10597c>0x1?void 0x0:_0x10597c?Me(_0x222d65,_0xe41e6e):_0x222d65,_0x4b0fc7=_0x33e56f[_0x1c955f(0xcc)]-0x1,_0x45da42;_0x4b0fc7>=0x0;_0x4b0fc7--)(_0x45da42=_0x33e56f[_0x4b0fc7])&&(_0x7910ea=_0x45da42(_0x7910ea)||_0x7910ea);return _0x7910ea;},$=(_0x3811a8,_0x18ba00)=>(_0x3344e8,_0x33157d)=>_0x18ba00(_0x3344e8,_0x33157d,_0x3811a8);let b=class extends _0x23bae8{constructor(_0x5a4ce6,_0x1dd462){var _0x1d1ffd=_0x374f0d;super(),this[_0x1d1ffd(0x115)]=_0x5a4ce6,this[_0x1d1ffd(0xf3)]=_0x1dd462,this[_0x1d1ffd(0x11a)]();}[_0x374f0d(0x11a)](){var _0x1f854e=_0x374f0d;this[_0x1f854e(0xda)](this[_0x1f854e(0xf3)][_0x1f854e(0xd0)](_0x5bfd17[_0x1f854e(0x159)],()=>_0x14037c(Te,this['_injector'])));}};b=ke([$(0x0,_0x314c14(_0x1bfa83)),$(0x1,_0x2aa461)],b);var Ge=Object['defineProperty'],We=Object[_0x374f0d(0xf0)],Ye=(_0x4b9cb2,_0x506183,_0x55b029)=>_0x506183 in _0x4b9cb2?Ge(_0x4b9cb2,_0x506183,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55b029}):_0x4b9cb2[_0x506183]=_0x55b029,Be=(_0x5c308a,_0x115be3,_0x3a3dab,_0x9f2cd5)=>{for(var _0x3888c6=_0x9f2cd5>0x1?void 0x0:_0x9f2cd5?We(_0x115be3,_0x3a3dab):_0x115be3,_0x565d1c=_0x5c308a['length']-0x1,_0x5e304d;_0x565d1c>=0x0;_0x565d1c--)(_0x5e304d=_0x5c308a[_0x565d1c])&&(_0x3888c6=_0x5e304d(_0x3888c6)||_0x3888c6);return _0x3888c6;},F=(_0x231252,_0x2dbcc5)=>(_0x2131ce,_0x43bd95)=>_0x2dbcc5(_0x2131ce,_0x43bd95,_0x231252),J=(_0x12d761,_0x4d6049,_0x24478f)=>Ye(_0x12d761,typeof _0x4d6049!=_0x374f0d(0x125)?_0x4d6049+'':_0x4d6049,_0x24478f);const Ze=_0x374f0d(0x123);let O=class extends _0x552d9d{constructor(_0xbbbb8f=T,_0x484507,_0x4e6975){var _0x504f88=_0x374f0d;super(),this[_0x504f88(0x166)]=_0xbbbb8f,this[_0x504f88(0x115)]=_0x484507,this[_0x504f88(0x152)]=_0x4e6975;const {..._0x6ad17e}=_0x13d80c({},T,this[_0x504f88(0x166)]);this[_0x504f88(0x152)][_0x504f88(0x167)](Oe,_0x6ad17e);}[_0x374f0d(0x151)](){var _0x2d024e=_0x374f0d;_0x1c17e9(this[_0x2d024e(0x115)],_0x100a43([[L],[I],[m],[b]],this[_0x2d024e(0x166)][_0x2d024e(0x130)])),_0x870d19(this[_0x2d024e(0x115)],[[m]]);}[_0x374f0d(0x103)](){_0x870d19(this['_injector'],[[b]]);}};J(O,_0x374f0d(0xd6),_0x571d0a[_0x374f0d(0x122)]),J(O,_0x374f0d(0x10a),Ze),O=Be([_0x39f7a7(_0xadeaf6),F(0x1,_0x314c14(_0x1bfa83)),F(0x2,_0x1c9c8e)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x1dc1a5=_0x9a5a;(function(_0x226a0a,_0x2618f8){var _0x868505=_0x9a5a,_0x2b7b45=_0x226a0a();while(!![]){try{var _0x3e53a3=parseInt(_0x868505(0x1fc))/0x1*(parseInt(_0x868505(0x288))/0x2)+parseInt(_0x868505(0x21a))/0x3*(parseInt(_0x868505(0x20e))/0x4)+parseInt(_0x868505(0x242))/0x5+parseInt(_0x868505(0x25b))/0x6*(-parseInt(_0x868505(0x251))/0x7)+-parseInt(_0x868505(0x1e5))/0x8*(-parseInt(_0x868505(0x27d))/0x9)+parseInt(_0x868505(0x1ef))/0xa*(parseInt(_0x868505(0x249))/0xb)+-parseInt(_0x868505(0x25f))/0xc;if(_0x3e53a3===_0x2618f8)break;else _0x2b7b45['push'](_0x2b7b45['shift']());}catch(_0x1bcc62){_0x2b7b45['push'](_0x2b7b45['shift']());}}}(_0x2d1b,0x6fe2f));var q=Object[_0x1dc1a5(0x1f7)],z=(_0x40f785,_0x44a743,_0x408fe)=>_0x44a743 in _0x40f785?q(_0x40f785,_0x44a743,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x408fe}):_0x40f785[_0x44a743]=_0x408fe,d=(_0x51ecf2,_0x3d67cc,_0x30ef63)=>z(_0x51ecf2,typeof _0x3d67cc!='symbol'?_0x3d67cc+'':_0x3d67cc,_0x30ef63);import{CollaborationSessionService as _0x59712a,SessionStatus as _0x5cb7e1,UniverCollaborationClientPlugin as _0x37ee2a}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3cc522,toDisposable as _0x461eb5,Inject as _0x11836f,IUniverInstanceService as _0x226a9,Injector as _0x152c82,IConfigService as _0xc56c8e,ICommandService as _0x5744d9,RxDisposable as _0x11d7a9,UniverInstanceType as _0xf3e818,DisposableCollection as _0x41998f,CommandType as _0x2938bd,DependentOn as _0x584176,Plugin as _0x24b3db,merge as _0xe275a6,registerDependencies as _0x5dc9fe,mergeOverrideWithDependencies as _0x4e2a80,touchDependencies as _0x1369ca}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x270420,InsertSheetMutation as _0x277ee5}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x573e5f,SetScrollOperation as _0x57ebf2}from'@univerjs/sheets-ui';import{useDependency as _0x3057c1,useObservable as _0x4ac25f,IUIPartsService as _0x472415,BuiltInUIPart as _0x90734a,connectInjector as _0xdd594f}from'@univerjs/ui';import{jsx as _0x27cd08,jsxs as _0x27a89c,Fragment as _0x1b8ec2}from'react/jsx-runtime';import{Dropdown as _0x10ef05,clsx as _0x4e6eb8,Button as _0x1ecb1d}from'@univerjs/design';import{forwardRef as _0x48d152,useRef as _0x1e681e,createElement as _0x1a1785,useState as _0x1d678d,useEffect as _0x30112b}from'react';import{CollaborationEvent as _0x13d362,parseProtocolChangeset as _0x5994b4}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2435f7,Subject as _0x5cd0ad}from'rxjs';import{takeUntil as _0x1f583a,throttleTime as _0x2f05e3}from'rxjs/operators';const Oe=_0x1dc1a5(0x1e4),T={};class L extends _0x3cc522{constructor(){var _0x7e7579=_0x1dc1a5;super(...arguments),d(this,_0x7e7579(0x237),new Set()),d(this,_0x7e7579(0x28c),new Set());}[_0x1dc1a5(0x27e)](_0x243508){var _0x527821=_0x1dc1a5;return this[_0x527821(0x237)]['add'](_0x243508),_0x461eb5(()=>this[_0x527821(0x237)][_0x527821(0x290)](_0x243508));}['registerInitialStateReporter'](_0x3365dc){var _0x12b108=_0x1dc1a5;return this[_0x12b108(0x28c)][_0x12b108(0x26c)](_0x3365dc),_0x461eb5(()=>this[_0x12b108(0x28c)][_0x12b108(0x290)](_0x3365dc));}[_0x1dc1a5(0x281)](_0x10a7c4){var _0x1fc4d6=_0x1dc1a5;return this['_sharedOperations'][_0x1fc4d6(0x1f5)](_0x10a7c4);}[_0x1dc1a5(0x200)](_0x103cb3){var _0x1d0687=_0x1dc1a5;return Array[_0x1d0687(0x230)](this['_reporters'])[_0x1d0687(0x1e2)](_0xa5bd6c=>_0xa5bd6c(_0x103cb3));}}var Ee=Object[_0x1dc1a5(0x28e)],we=(_0x23b85c,_0xa8d3c0,_0xf79fbd,_0x3e749e)=>{var _0x4d8e14=_0x1dc1a5;for(var _0x43d2b9=_0x3e749e>0x1?void 0x0:_0x3e749e?Ee(_0xa8d3c0,_0xf79fbd):_0xa8d3c0,_0xd2a77b=_0x23b85c[_0x4d8e14(0x208)]-0x1,_0x59c018;_0xd2a77b>=0x0;_0xd2a77b--)(_0x59c018=_0x23b85c[_0xd2a77b])&&(_0x43d2b9=_0x59c018(_0x43d2b9)||_0x43d2b9);return _0x43d2b9;},Ne=(_0x11608,_0x44a9aa)=>(_0x236e32,_0x4c3ba1)=>_0x44a9aa(_0x236e32,_0x4c3ba1,_0x11608);let m=class extends _0x3cc522{constructor(_0x18b0b3){var _0xc7508d=_0x1dc1a5;super(),this[_0xc7508d(0x209)]=_0x18b0b3,this[_0xc7508d(0x22f)]();}['_init'](){var _0x38432f=_0x1dc1a5;[_0x573e5f['id'],_0x57ebf2['id'],_0x270420['id']][_0x38432f(0x246)](_0x17617d=>{var _0x25f2dc=_0x38432f;this[_0x25f2dc(0x282)](this[_0x25f2dc(0x209)][_0x25f2dc(0x27e)](_0x17617d));});}};m=we([Ne(0x0,_0x11836f(L))],m);var c=function(){var _0xf20f82=_0x1dc1a5;return c=Object['assign']||function(_0x382a41){for(var _0x524c12,_0x18d876=0x1,_0x5762f3=arguments['length'];_0x18d876<_0x5762f3;_0x18d876++){_0x524c12=arguments[_0x18d876];for(var _0x20bb94 in _0x524c12)Object['prototype']['hasOwnProperty']['call'](_0x524c12,_0x20bb94)&&(_0x382a41[_0x20bb94]=_0x524c12[_0x20bb94]);}return _0x382a41;},c[_0xf20f82(0x275)](this,arguments);},Ce=function(_0x154f64,_0x56327d){var _0x1a16c6=_0x1dc1a5,_0x5c347f={};for(var _0x148b91 in _0x154f64)Object['prototype'][_0x1a16c6(0x24f)]['call'](_0x154f64,_0x148b91)&&_0x56327d[_0x1a16c6(0x234)](_0x148b91)<0x0&&(_0x5c347f[_0x148b91]=_0x154f64[_0x148b91]);if(_0x154f64!=null&&typeof Object[_0x1a16c6(0x1ee)]==_0x1a16c6(0x219)){for(var _0x3373a1=0x0,_0x148b91=Object['getOwnPropertySymbols'](_0x154f64);_0x3373a1<_0x148b91[_0x1a16c6(0x208)];_0x3373a1++)_0x56327d[_0x1a16c6(0x234)](_0x148b91[_0x3373a1])<0x0&&Object[_0x1a16c6(0x1de)][_0x1a16c6(0x20c)][_0x1a16c6(0x240)](_0x154f64,_0x148b91[_0x3373a1])&&(_0x5c347f[_0x148b91[_0x3373a1]]=_0x154f64[_0x148b91[_0x3373a1]]);}return _0x5c347f;},W=_0x48d152(function(_0x349753,_0x4ea887){var _0x2103c2=_0x1dc1a5,_0x279c70=_0x349753[_0x2103c2(0x26b)],_0x33e8ae=_0x349753['id'],_0x56d1ce=_0x349753[_0x2103c2(0x22c)],_0x359807=_0x349753['extend'],_0x1fced0=Ce(_0x349753,['icon','id',_0x2103c2(0x22c),_0x2103c2(0x1f1)]),_0x53b044=_0x2103c2(0x280)[_0x2103c2(0x226)](_0x33e8ae,'\x20')[_0x2103c2(0x226)](_0x56d1ce||'')['trim'](),_0xb9f352=_0x1e681e('_'[_0x2103c2(0x226)](Le()));return Y(_0x279c70,''['concat'](_0x33e8ae),{'defIds':_0x279c70[_0x2103c2(0x1eb)],'idSuffix':_0xb9f352[_0x2103c2(0x22e)]},c({'ref':_0x4ea887,'className':_0x53b044},_0x1fced0),_0x359807);});function Y(_0x53375b,_0x2af4f1,_0x48338c,_0x2f6694,_0x59cfe6){var _0x5b3063=_0x1dc1a5;return _0x1a1785(_0x53375b[_0x5b3063(0x22b)],c(c({'key':_0x2af4f1},De(_0x53375b,_0x48338c,_0x59cfe6)),_0x2f6694),(xe(_0x53375b,_0x48338c)[_0x5b3063(0x264)]||[])[_0x5b3063(0x1e2)](function(_0x4ed47b,_0x355a3e){var _0x2566d4=_0x5b3063;return Y(_0x4ed47b,''['concat'](_0x2af4f1,'-')[_0x2566d4(0x226)](_0x53375b[_0x2566d4(0x22b)],'-')[_0x2566d4(0x226)](_0x355a3e),_0x48338c,void 0x0,_0x59cfe6);}));}function De(_0x34dd98,_0x74f2f,_0x404b37){var _0x2e66c8=_0x1dc1a5,_0x1dac2f=c({},_0x34dd98[_0x2e66c8(0x236)]);_0x404b37!=null&&_0x404b37['colorChannel1']&&_0x1dac2f[_0x2e66c8(0x252)]===_0x2e66c8(0x254)&&(_0x1dac2f['fill']=_0x404b37[_0x2e66c8(0x254)]),_0x34dd98[_0x2e66c8(0x22b)]===_0x2e66c8(0x21e)&&_0x1dac2f['id']&&(_0x1dac2f['id']=_0x1dac2f['id']+_0x74f2f['idSuffix']),Object[_0x2e66c8(0x1f3)](_0x1dac2f)[_0x2e66c8(0x246)](function(_0x2c4903){var _0x27d017=_0x2e66c8,_0x5208c7=_0x2c4903[0x0],_0x23414a=_0x2c4903[0x1];_0x5208c7==='mask'&&typeof _0x23414a==_0x27d017(0x1fa)&&(_0x1dac2f[_0x5208c7]=_0x23414a[_0x27d017(0x25c)](/url\(#(.*)\)/,_0x27d017(0x253)[_0x27d017(0x226)](_0x74f2f['idSuffix'],')')));});var _0x3fb1ed=_0x74f2f[_0x2e66c8(0x1eb)];return!_0x3fb1ed||_0x3fb1ed[_0x2e66c8(0x208)]===0x0||(_0x34dd98[_0x2e66c8(0x22b)]===_0x2e66c8(0x1f8)&&_0x1dac2f[_0x2e66c8(0x1df)]&&(_0x1dac2f[_0x2e66c8(0x1df)]=_0x1dac2f[_0x2e66c8(0x1df)]+_0x74f2f['idSuffix']),Object[_0x2e66c8(0x1f3)](_0x1dac2f)[_0x2e66c8(0x246)](function(_0x468617){var _0x142b12=_0x2e66c8,_0x5f3117=_0x468617[0x0],_0x3aeae6=_0x468617[0x1];typeof _0x3aeae6==_0x142b12(0x1fa)&&(_0x1dac2f[_0x5f3117]=_0x3aeae6['replace'](/url\(#(.*)\)/,_0x142b12(0x253)[_0x142b12(0x226)](_0x74f2f[_0x142b12(0x1dd)],')')));})),_0x1dac2f;}function xe(_0x57d13a,_0x5aa357){var _0x593adf=_0x1dc1a5,_0x4a2ccf,_0x5d2037=_0x5aa357[_0x593adf(0x1eb)];return!_0x5d2037||_0x5d2037[_0x593adf(0x208)]===0x0?_0x57d13a:_0x57d13a[_0x593adf(0x22b)]==='defs'&&(!((_0x4a2ccf=_0x57d13a[_0x593adf(0x264)])===null||_0x4a2ccf===void 0x0)&&_0x4a2ccf[_0x593adf(0x208)])?c(c({},_0x57d13a),{'children':_0x57d13a['children']['map'](function(_0x6f8eb3){var _0x3ec1d4=_0x593adf;return typeof _0x6f8eb3['attrs']['id']==_0x3ec1d4(0x1fa)&&_0x5d2037&&_0x5d2037[_0x3ec1d4(0x289)](_0x6f8eb3[_0x3ec1d4(0x236)]['id'])?c(c({},_0x6f8eb3),{'attrs':c(c({},_0x6f8eb3[_0x3ec1d4(0x236)]),{'id':_0x6f8eb3[_0x3ec1d4(0x236)]['id']+_0x5aa357['idSuffix']})}):_0x6f8eb3;})}):_0x57d13a;}function _0x2d1b(){var _0x4be47a=['univerjs-icon\x20univerjs-icon-','shouldShareOperation','disposeWithMe','next','pluginName','NEW_CHANGESETS','_mountLiveShare','event$','1858Bqmvna','includes','complete','_handleTerminate','_reporters','requireSession','getOwnPropertyDescriptor','SAME_OPERATION_SHARE_INTERVAL','delete','You\x27re\x20following\x20the\x20presenter','idSuffix','prototype','xlink:href','displayName','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','memberID','live-share.config','1432mpAaFl','idle','_status','1em','getLiveShareCoordinator','setConfig','defIds','operations','PRESENTING','getOwnPropertySymbols','3830tAykTV','Start','extend','_collabSessionService','entries','following','has','type','defineProperty','use','IDLE','string','dispose','811CIuuDo','send','0\x200\x2017\x2017','set','getInitialStates','onStarting','_config','_fetchOperations','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','text','_commandDisposable','sessionStatus$','length','_liveShareService','UNIVER_SHEET','clear','propertyIsEnumerable','LIVESHARE_REQUEST_HOST','129872GQRnDj','getValue','_collabSession','You\x27re\x20not\x20following\x20the\x20presenter','svg','_stopFollowing','subscribe','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','path','_uiPartsService','_handleOffline','function','39PIhVLu','UNIVER_LIVE_SHARE_PLUGIN','univer-size-4','get','mask','stopPresenting','not-following','stringify','NOT_FOLLOWING','unsubscribe','offline','params','concat','onRendered','evenodd','values','currentColor','tag','className','http://www.w3.org/2000/svg','current','_init','from','_handleOperation','tryStartPresenting','sheet','indexOf','div','attrs','_sharedOperations','LIVESHARE_OPERATION','button','presenting','override','_beIdle','_handleNewChangeSets','assign','substring','call','_handleOnline','581635vZdiMz','ONLINE','univer-mb-3\x20univer-w-full\x20univer-text-sm','OPERATION','forEach','Stop\x20following','_stopPresenting','16302zuteif','find','_startPresenting','_startLiveShareCoordinator','createInstance','unitId','hasOwnProperty','_injector','5761dDgGpC','fill','url(#$1','colorChannel1','getTypeOfUnitAdded$','_entities','FOLLOWING','data','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','_handleNewHost','2694OiSNCF','replace','_configService','LIVESHARE_TERMINATE','15567096PcswXb','_startFollowing','_unitID','_presenter','dispose$','children','LIVESHARE_FETCH_OPERATIONS','random','registerComponent','mutations','OFFLINE','HEADER_MENU','icon','add','Present\x20this\x20document','pipe','executeCommand','LiveShareIcon','getUnitId','_commandService','symbol','_univerInstanceService','apply','getTypeOfUnitDisposed$','stopFollowing','startFollowing','init','status$','live-share-icon','_status$','13356DNEPzh','registerSharedOperation','getMemberID'];_0x2d1b=function(){return _0x4be47a;};return _0x2d1b();}function Le(){var _0x21bcdc=_0x1dc1a5;return Math[_0x21bcdc(0x266)]()['toString'](0x24)[_0x21bcdc(0x23f)](0x2,0x8);}W[_0x1dc1a5(0x1e0)]='UniverIcon';var ye={'tag':_0x1dc1a5(0x212),'attrs':{'xmlns':_0x1dc1a5(0x22d),'fill':'none','viewBox':_0x1dc1a5(0x1fe),'width':_0x1dc1a5(0x1e8),'height':_0x1dc1a5(0x1e8)},'children':[{'tag':_0x1dc1a5(0x216),'attrs':{'fill':'currentColor','d':_0x1dc1a5(0x259)}},{'tag':_0x1dc1a5(0x216),'attrs':{'fill':_0x1dc1a5(0x22a),'d':_0x1dc1a5(0x204),'fillRule':'evenodd','clipRule':_0x1dc1a5(0x228)}}]},B=_0x48d152(function(_0xd3bc53,_0x129ca6){var _0x391702=_0x1dc1a5;return _0x1a1785(W,Object[_0x391702(0x23e)]({},_0xd3bc53,{'id':_0x391702(0x27b),'ref':_0x129ca6,'icon':ye}));});B[_0x1dc1a5(0x1e0)]=_0x1dc1a5(0x270);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x4d78b0,_0x566ccb,_0x5b3e10,_0x1d0e66)=>{var _0x64c602=_0x1dc1a5;for(var _0x260934=_0x1d0e66>0x1?void 0x0:_0x1d0e66?Re(_0x566ccb,_0x5b3e10):_0x566ccb,_0xbafe8b=_0x4d78b0[_0x64c602(0x208)]-0x1,_0x45658b;_0xbafe8b>=0x0;_0xbafe8b--)(_0x45658b=_0x4d78b0[_0xbafe8b])&&(_0x260934=_0x45658b(_0x260934)||_0x260934);return _0x260934;},f=(_0x53bd30,_0x5a5140)=>(_0x358ecc,_0x55e6e1)=>_0x5a5140(_0x358ecc,_0x55e6e1,_0x53bd30);let I=class extends _0x11d7a9{constructor(_0x36d8bf,_0x249925,_0x5e4231){var _0x5da9e8=_0x1dc1a5;super(),d(this,_0x5da9e8(0x256),new Map()),(this['_univerInstanceService']=_0x36d8bf,this[_0x5da9e8(0x250)]=_0x249925,this['_collabSessionService']=_0x5e4231,this['_init']());}async[_0x1dc1a5(0x1e9)](_0x5937ac){var _0x5c2ef3=_0x1dc1a5;return this['_entities'][_0x5c2ef3(0x1f5)](_0x5937ac)||await this[_0x5c2ef3(0x24c)](_0x5937ac),this[_0x5c2ef3(0x256)][_0x5c2ef3(0x21d)](_0x5937ac);}[_0x1dc1a5(0x22f)](){var _0x4ccc5b=_0x1dc1a5;this['_univerInstanceService'][_0x4ccc5b(0x255)](_0xf3e818[_0x4ccc5b(0x20a)])['pipe'](_0x1f583a(this[_0x4ccc5b(0x263)]))[_0x4ccc5b(0x214)](async _0x364371=>{var _0x4a50e9=_0x4ccc5b;const _0x5aac7b=_0x364371['getUnitId']();this[_0x4a50e9(0x256)][_0x4a50e9(0x1f5)](_0x5aac7b)||this[_0x4a50e9(0x24c)](_0x5aac7b);}),this[_0x4ccc5b(0x274)][_0x4ccc5b(0x276)](_0xf3e818[_0x4ccc5b(0x20a)])[_0x4ccc5b(0x26e)](_0x1f583a(this['dispose$']))[_0x4ccc5b(0x214)](_0x42893f=>{var _0x7c2bcb=_0x4ccc5b;const _0x2a99fc=_0x42893f[_0x7c2bcb(0x271)](),_0x8edf28=this[_0x7c2bcb(0x256)][_0x7c2bcb(0x21d)](_0x2a99fc);_0x8edf28==null||_0x8edf28[_0x7c2bcb(0x1fb)]();});}async[_0x1dc1a5(0x24c)](_0x51811d){var _0x7527a2=_0x1dc1a5;const _0x16f683=await this[_0x7527a2(0x1f2)][_0x7527a2(0x28d)](_0x51811d),_0x294384=this['_injector'][_0x7527a2(0x24d)](C,_0x51811d,_0x16f683);return _0x294384['init'](),this[_0x7527a2(0x256)][_0x7527a2(0x1ff)](_0x51811d,_0x294384),_0x294384;}};I=Z([f(0x0,_0x226a9),f(0x1,_0x11836f(_0x152c82)),f(0x2,_0x11836f(_0x59712a))],I);var h=(_0x44dfc3=>(_0x44dfc3['OFFLINE']=_0x1dc1a5(0x224),_0x44dfc3[_0x1dc1a5(0x1f9)]=_0x1dc1a5(0x1e6),_0x44dfc3['FOLLOWING']=_0x1dc1a5(0x1f4),_0x44dfc3[_0x1dc1a5(0x222)]='not-following',_0x44dfc3[_0x1dc1a5(0x1ed)]=_0x1dc1a5(0x23a),_0x44dfc3))(h||{});const Pe=_0x1dc1a5(0x28f),Ae=0xc8;let C=class extends _0x11d7a9{constructor(_0x43949c,_0x1304ef,_0x4391b9,_0x59b486,_0x5ee9f2){var _0xf9101c=_0x1dc1a5;super(),d(this,_0xf9101c(0x27c),new _0x2435f7(_0xf9101c(0x1e6))),d(this,_0xf9101c(0x27a),this[_0xf9101c(0x27c)]['asObservable']()),d(this,_0xf9101c(0x22f),!0x1),d(this,_0xf9101c(0x206),null),d(this,_0xf9101c(0x262),null),(this[_0xf9101c(0x261)]=_0x43949c,this[_0xf9101c(0x210)]=_0x1304ef,this[_0xf9101c(0x25d)]=_0x4391b9,this['_liveShareService']=_0x59b486,this[_0xf9101c(0x272)]=_0x5ee9f2);}get[_0x1dc1a5(0x1e7)](){var _0x23df23=_0x1dc1a5;return this[_0x23df23(0x27c)][_0x23df23(0x20f)]();}[_0x1dc1a5(0x1fb)](){var _0x297721=_0x1dc1a5,_0x41acd1;(_0x41acd1=this[_0x297721(0x206)])==null||_0x41acd1[_0x297721(0x1fb)](),this[_0x297721(0x27c)][_0x297721(0x283)](_0x297721(0x1e6)),this['_status$']['complete']();}[_0x1dc1a5(0x279)](){var _0x2c11d2=_0x1dc1a5;this['_init']||(this[_0x2c11d2(0x22f)]=!0x0,this[_0x2c11d2(0x210)][_0x2c11d2(0x207)][_0x2c11d2(0x26e)](_0x1f583a(this[_0x2c11d2(0x263)]))[_0x2c11d2(0x214)](_0x102abd=>{var _0x2b19b8=_0x2c11d2;switch(_0x102abd){case _0x5cb7e1[_0x2b19b8(0x269)]:this[_0x2b19b8(0x218)]();break;case _0x5cb7e1[_0x2b19b8(0x243)]:this[_0x2b19b8(0x241)]();break;}}),this[_0x2c11d2(0x210)][_0x2c11d2(0x287)][_0x2c11d2(0x26e)](_0x1f583a(this['dispose$']))['subscribe'](_0x4547ff=>{var _0x45c8e2=_0x2c11d2;const {eventID:_0xe78d90}=_0x4547ff;switch(_0xe78d90){case _0x13d362['LIVESHARE_NEW_HOST']:this[_0x45c8e2(0x25a)](_0x4547ff);break;case _0x13d362[_0x45c8e2(0x238)]:this[_0x45c8e2(0x231)](_0x4547ff);break;case _0x13d362[_0x45c8e2(0x25e)]:this['_handleTerminate']();break;case _0x13d362[_0x45c8e2(0x285)]:this[_0x45c8e2(0x23d)](_0x4547ff);break;}}));}[_0x1dc1a5(0x232)](){var _0x2cee79=_0x1dc1a5;this[_0x2cee79(0x210)][_0x2cee79(0x1fd)]({'eventID':_0x13d362[_0x2cee79(0x20d)],'data':{'unitID':this[_0x2cee79(0x261)],'userID':this[_0x2cee79(0x210)][_0x2cee79(0x27f)]()}},this[_0x2cee79(0x261)]);}[_0x1dc1a5(0x21f)](){var _0x556b99=_0x1dc1a5;this['_status']===_0x556b99(0x23a)&&(this['_status$'][_0x556b99(0x283)](_0x556b99(0x1e6)),this['_collabSession']['send']({'eventID':_0x13d362[_0x556b99(0x25e)],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){var _0x12637a=_0x1dc1a5;this['_status']===_0x12637a(0x220)&&(this['_status$'][_0x12637a(0x283)](_0x12637a(0x1f4)),this[_0x12637a(0x260)]());}[_0x1dc1a5(0x277)](){var _0xb7f591=_0x1dc1a5;this[_0xb7f591(0x1e7)]===_0xb7f591(0x1f4)&&this['_stopFollowing']();}[_0x1dc1a5(0x25a)](_0x511865){var _0x4dabc0=_0x1dc1a5;const {presenter:_0x1ed843}=_0x511865[_0x4dabc0(0x258)],_0x1fd176=this[_0x4dabc0(0x210)][_0x4dabc0(0x27f)]();this[_0x4dabc0(0x262)]=_0x1ed843,_0x1ed843===_0x1fd176?(this[_0x4dabc0(0x213)](),this[_0x4dabc0(0x24b)]()):this[_0x4dabc0(0x1e7)]!==_0x4dabc0(0x220)&&(this[_0x4dabc0(0x248)](),this['_startFollowing']());}[_0x1dc1a5(0x203)](){var _0x42d417=_0x1dc1a5;const _0x30f94f={'eventID':_0x13d362[_0x42d417(0x265)]};this[_0x42d417(0x210)][_0x42d417(0x1fd)](_0x30f94f,this[_0x42d417(0x261)]);}[_0x1dc1a5(0x28b)](){var _0x13d04c=_0x1dc1a5;this[_0x13d04c(0x262)]=null,this['_status']!=='presenting'&&this[_0x13d04c(0x23c)]();}[_0x1dc1a5(0x23d)](_0x548e45){var _0x1500d0=_0x1dc1a5;if(this[_0x1500d0(0x1e7)]===_0x1500d0(0x1f4)&&this[_0x1500d0(0x262)]===_0x548e45[_0x1500d0(0x258)][_0x1500d0(0x1e3)]){const _0x3d4d3e=_0x5994b4(_0x548e45[_0x1500d0(0x258)])[_0x1500d0(0x268)]['reverse']()[_0x1500d0(0x24a)](_0x5f2051=>_0x5f2051['id']===_0x277ee5['id']);if(_0x3d4d3e){const _0x2b5839=_0x3d4d3e[_0x1500d0(0x225)][_0x1500d0(0x24e)],_0x3158cd=_0x3d4d3e[_0x1500d0(0x225)][_0x1500d0(0x233)]['id'];setTimeout(()=>{var _0x9b4c99=_0x1500d0;this[_0x9b4c99(0x272)]['executeCommand'](_0x270420['id'],{'unitId':_0x2b5839,'subUnitId':_0x3158cd},{'fromCollab':!0x0});});}}}[_0x1dc1a5(0x24b)](){var _0xda1a23=_0x1dc1a5;this['_status$'][_0xda1a23(0x283)]('presenting');const _0x1cb51a=new Map(),_0x42a9d4=this[_0xda1a23(0x206)]=new _0x41998f();_0x42a9d4[_0xda1a23(0x26c)](_0x461eb5(()=>{var _0x2a6adf=_0xda1a23;_0x1cb51a[_0x2a6adf(0x246)](_0x4adf32=>_0x4adf32[_0x2a6adf(0x28a)]()),_0x1cb51a[_0x2a6adf(0x20b)]();})),_0x42a9d4[_0xda1a23(0x26c)](this['_commandService']['onCommandExecuted'](_0x45eee9=>{var _0x15c325=_0xda1a23,_0x8a6bb1;if(_0x45eee9['type']!==_0x2938bd[_0x15c325(0x245)]||!this[_0x15c325(0x209)][_0x15c325(0x281)](_0x45eee9['id']))return;const {id:_0x5945af}=_0x45eee9;let _0x2ee6cf;_0x1cb51a[_0x15c325(0x1f5)](_0x5945af)?_0x2ee6cf=_0x1cb51a[_0x15c325(0x21d)](_0x5945af):(_0x2ee6cf=new _0x5cd0ad(),_0x1cb51a[_0x15c325(0x1ff)](_0x5945af,_0x2ee6cf),_0x2ee6cf[_0x15c325(0x26e)](_0x2f05e3((_0x8a6bb1=this[_0x15c325(0x25d)]['getConfig'](Pe))!=null?_0x8a6bb1:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x15c325(0x214)](_0x18a91a=>{var _0x4c40ee=_0x15c325;this[_0x4c40ee(0x210)][_0x4c40ee(0x1fd)]({'eventID':_0x13d362['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4c40ee(0x261)],'operations':{[_0x18a91a['id']]:{'id':_0x18a91a['id'],'params':JSON[_0x4c40ee(0x221)](_0x18a91a[_0x4c40ee(0x225)])}}}},this['_unitID']);})),_0x2ee6cf[_0x15c325(0x283)](_0x45eee9);})),this[_0xda1a23(0x209)][_0xda1a23(0x200)](this[_0xda1a23(0x261)])[_0xda1a23(0x246)](_0x1ee8f0=>this[_0xda1a23(0x210)][_0xda1a23(0x1fd)]({'eventID':_0x13d362['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xda1a23(0x261)],'operations':{[_0x1ee8f0['id']]:{'id':_0x1ee8f0['id'],'params':JSON[_0xda1a23(0x221)](_0x1ee8f0[_0xda1a23(0x225)])}}}},this[_0xda1a23(0x261)]));}[_0x1dc1a5(0x248)](){var _0x2f101c=_0x1dc1a5,_0x2dd4f0;this[_0x2f101c(0x27c)][_0x2f101c(0x283)]('idle'),(_0x2dd4f0=this[_0x2f101c(0x206)])==null||_0x2dd4f0[_0x2f101c(0x1fb)](),this['_commandDisposable']=null;}[_0x1dc1a5(0x260)](){var _0x57e0c0=_0x1dc1a5,_0x818fda;(_0x818fda=this[_0x57e0c0(0x206)])==null||_0x818fda[_0x57e0c0(0x1fb)](),this['_status$'][_0x57e0c0(0x283)]('following');}[_0x1dc1a5(0x23c)](){var _0x264ad6=_0x1dc1a5,_0x270446;this[_0x264ad6(0x27c)]['next'](_0x264ad6(0x1e6)),(_0x270446=this[_0x264ad6(0x206)])==null||_0x270446[_0x264ad6(0x1fb)](),this[_0x264ad6(0x206)]=null;}[_0x1dc1a5(0x213)](){var _0x53295a=_0x1dc1a5,_0x296f09;this['_status$'][_0x53295a(0x283)](_0x53295a(0x220)),(_0x296f09=this[_0x53295a(0x206)])==null||_0x296f09[_0x53295a(0x1fb)]();}[_0x1dc1a5(0x231)](_0x58dc90){var _0x554f7b=_0x1dc1a5;if([_0x554f7b(0x23a),_0x554f7b(0x220),_0x554f7b(0x224)][_0x554f7b(0x289)](this[_0x554f7b(0x1e7)])||!_0x58dc90[_0x554f7b(0x258)]['presenter']||_0x58dc90[_0x554f7b(0x258)]['presenter']===this[_0x554f7b(0x210)][_0x554f7b(0x27f)]())return;this['_status']==='idle'&&this[_0x554f7b(0x260)]();const _0x363df3=_0x58dc90[_0x554f7b(0x258)][_0x554f7b(0x1ec)];Object[_0x554f7b(0x229)](_0x363df3)[_0x554f7b(0x246)](_0x4ba255=>{var _0x3dca81=_0x554f7b;this['_commandService'][_0x3dca81(0x26f)](_0x4ba255['id'],_0x4ba255[_0x3dca81(0x225)]?JSON['parse'](_0x4ba255['params']):null,{'fromCollab':!0x0});});}[_0x1dc1a5(0x218)](){var _0x46acff=_0x1dc1a5,_0x31f2b1;this['_status$'][_0x46acff(0x283)]('offline'),(_0x31f2b1=this[_0x46acff(0x206)])==null||_0x31f2b1['dispose']();}[_0x1dc1a5(0x241)](){var _0x783176=_0x1dc1a5;this[_0x783176(0x27c)]['next'](_0x783176(0x1e6)),this[_0x783176(0x203)]();}};C=Z([f(0x2,_0xc56c8e),f(0x3,_0x11836f(L)),f(0x4,_0x5744d9)],C);function Te(){var _0x5bd601=_0x1dc1a5;const _0x1ba137=_0x3057c1(I),_0x546857=_0x3057c1(_0x226a9),_0xe6e66=_0x4ac25f(()=>_0x546857['getCurrentTypeOfUnit$'](_0xf3e818['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x14565d,_0x4df942]=_0x1d678d(null),[_0x1d04e7,_0x54ecd5]=_0x1d678d(h['IDLE']),_0x2c669f=_0x1e681e(null);return _0x30112b(()=>(_0xe6e66&&_0x1ba137[_0x5bd601(0x1e9)](_0xe6e66[_0x5bd601(0x271)]())['then'](_0x2e8864=>{var _0x591b17=_0x5bd601;_0x4df942(_0x2e8864),_0x2c669f[_0x591b17(0x22e)]=_0x2e8864[_0x591b17(0x27a)]['subscribe'](_0x49db83=>{_0x54ecd5(_0x49db83);});}),()=>{var _0x4590de=_0x5bd601,_0x257143;(_0x257143=_0x2c669f[_0x4590de(0x22e)])==null||_0x257143[_0x4590de(0x223)](),_0x2c669f[_0x4590de(0x22e)]=null;}),[_0xe6e66,_0x1ba137]),_0x14565d?_0x27cd08(_0x10ef05,{'align':'end','disabled':_0x1d04e7===h[_0x5bd601(0x269)],'className':_0x5bd601(0x215),'overlay':_0x27cd08($e,{'status':_0x1d04e7,'coordinator':_0x14565d}),'children':_0x27cd08(_0x5bd601(0x239),{'className':_0x4e6eb8(_0x5bd601(0x1e1),{'univer-cursor-not-allowed':_0x1d04e7===h[_0x5bd601(0x269)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d04e7!==h[_0x5bd601(0x269)]}),'type':_0x5bd601(0x239),'children':_0x27cd08(B,{'className':_0x5bd601(0x21c)})})}):null;}function $e(_0x81be61){var _0x323e16=_0x1dc1a5;const {status:_0x2fd48e,coordinator:_0x10994b}=_0x81be61;switch(_0x2fd48e){case h[_0x323e16(0x1f9)]:return _0x27cd08(Fe,{'coordinator':_0x10994b});case h[_0x323e16(0x257)]:return _0x27cd08(He,{'coordinator':_0x10994b});case h[_0x323e16(0x222)]:return _0x27cd08(je,{'coordinator':_0x10994b});case h[_0x323e16(0x269)]:return _0x27cd08(Ve,{});case h['PRESENTING']:return _0x27cd08(Ue,{'coordinator':_0x10994b});default:return null;}}function Fe(_0x4ceb91){var _0x3de3bb=_0x1dc1a5;const {coordinator:_0x4c6c4a}=_0x4ceb91;return _0x27a89c(_0x1b8ec2,{'children':[_0x27cd08(_0x3de3bb(0x235),{'className':_0x3de3bb(0x244),'children':_0x3de3bb(0x26d)}),_0x27cd08(_0x1ecb1d,{'onClick':()=>_0x4c6c4a[_0x3de3bb(0x232)](),'children':_0x3de3bb(0x1f0)})]});}function He(_0x4d973b){var _0xbb5e41=_0x1dc1a5;const {coordinator:_0x15c2d9}=_0x4d973b;return _0x27a89c(_0x1b8ec2,{'children':[_0x27cd08(_0xbb5e41(0x235),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xbb5e41(0x1dc)}),_0x27cd08(_0x1ecb1d,{'onClick':()=>_0x15c2d9['stopFollowing'](),'children':_0xbb5e41(0x247)})]});}function je(_0xe328e6){var _0x259839=_0x1dc1a5;const {coordinator:_0x43b13d}=_0xe328e6;return _0x27a89c(_0x1b8ec2,{'children':[_0x27cd08(_0x259839(0x235),{'className':_0x259839(0x244),'children':_0x259839(0x211)}),_0x27cd08(_0x1ecb1d,{'variant':_0x259839(0x205),'onClick':()=>_0x43b13d[_0x259839(0x278)](),'children':'Start\x20following'})]});}function Ue(_0x58fb52){var _0x26c039=_0x1dc1a5;const {coordinator:_0x116d2e}=_0x58fb52;return _0x27a89c(_0x1b8ec2,{'children':[_0x27cd08(_0x26c039(0x235),{'className':_0x26c039(0x244),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x27cd08(_0x1ecb1d,{'variant':'default','onClick':()=>_0x116d2e[_0x26c039(0x21f)](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x27cd08(_0x1b8ec2,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0xbf3b1a,_0x53250a,_0x237309,_0x2af3f6)=>{var _0xc7381f=_0x1dc1a5;for(var _0x165fb1=_0x2af3f6>0x1?void 0x0:_0x2af3f6?Me(_0x53250a,_0x237309):_0x53250a,_0x11aafc=_0xbf3b1a[_0xc7381f(0x208)]-0x1,_0x40275f;_0x11aafc>=0x0;_0x11aafc--)(_0x40275f=_0xbf3b1a[_0x11aafc])&&(_0x165fb1=_0x40275f(_0x165fb1)||_0x165fb1);return _0x165fb1;},$=(_0x6353cd,_0x1c8ca9)=>(_0x3f568a,_0x1ade42)=>_0x1c8ca9(_0x3f568a,_0x1ade42,_0x6353cd);let b=class extends _0x3cc522{constructor(_0x49fa0a,_0x27d195){var _0x35f697=_0x1dc1a5;super(),this[_0x35f697(0x250)]=_0x49fa0a,this[_0x35f697(0x217)]=_0x27d195,this[_0x35f697(0x286)]();}['_mountLiveShare'](){var _0x538cec=_0x1dc1a5;this[_0x538cec(0x282)](this[_0x538cec(0x217)][_0x538cec(0x267)](_0x90734a[_0x538cec(0x26a)],()=>_0xdd594f(Te,this[_0x538cec(0x250)])));}};b=ke([$(0x0,_0x11836f(_0x152c82)),$(0x1,_0x472415)],b);function _0x9a5a(_0x417cd0,_0x5be246){var _0x2d1be7=_0x2d1b();return _0x9a5a=function(_0x9a5a44,_0x255086){_0x9a5a44=_0x9a5a44-0x1dc;var _0x536074=_0x2d1be7[_0x9a5a44];return _0x536074;},_0x9a5a(_0x417cd0,_0x5be246);}var Ge=Object[_0x1dc1a5(0x1f7)],We=Object[_0x1dc1a5(0x28e)],Ye=(_0x54685d,_0x1c84ff,_0x35efcd)=>_0x1c84ff in _0x54685d?Ge(_0x54685d,_0x1c84ff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35efcd}):_0x54685d[_0x1c84ff]=_0x35efcd,Be=(_0x30fece,_0xe54ba2,_0x520247,_0x2dbfff)=>{var _0x59e07b=_0x1dc1a5;for(var _0x40f40c=_0x2dbfff>0x1?void 0x0:_0x2dbfff?We(_0xe54ba2,_0x520247):_0xe54ba2,_0x2b0977=_0x30fece[_0x59e07b(0x208)]-0x1,_0x2cb4a7;_0x2b0977>=0x0;_0x2b0977--)(_0x2cb4a7=_0x30fece[_0x2b0977])&&(_0x40f40c=_0x2cb4a7(_0x40f40c)||_0x40f40c);return _0x40f40c;},F=(_0x35cd9e,_0x443b1b)=>(_0x462fa5,_0x40bf02)=>_0x443b1b(_0x462fa5,_0x40bf02,_0x35cd9e),J=(_0x1990ba,_0x38b124,_0x2c17ee)=>Ye(_0x1990ba,typeof _0x38b124!=_0x1dc1a5(0x273)?_0x38b124+'':_0x38b124,_0x2c17ee);const Ze=_0x1dc1a5(0x21b);let O=class extends _0x24b3db{constructor(_0x292110=T,_0x272aba,_0x5ea17c){var _0x50295a=_0x1dc1a5;super(),this[_0x50295a(0x202)]=_0x292110,this[_0x50295a(0x250)]=_0x272aba,this[_0x50295a(0x25d)]=_0x5ea17c;const {..._0xb9c6ab}=_0xe275a6({},T,this[_0x50295a(0x202)]);this[_0x50295a(0x25d)][_0x50295a(0x1ea)](Oe,_0xb9c6ab);}[_0x1dc1a5(0x201)](){var _0x10578c=_0x1dc1a5;_0x5dc9fe(this[_0x10578c(0x250)],_0x4e2a80([[L],[I],[m],[b]],this['_config'][_0x10578c(0x23b)])),_0x1369ca(this['_injector'],[[m]]);}[_0x1dc1a5(0x227)](){var _0x1c0858=_0x1dc1a5;_0x1369ca(this[_0x1c0858(0x250)],[[b]]);}};J(O,_0x1dc1a5(0x1f6),_0xf3e818['UNIVER_UNKNOWN']),J(O,_0x1dc1a5(0x284),Ze),O=Be([_0x584176(_0x37ee2a),F(0x1,_0x11836f(_0x152c82)),F(0x2,_0xc56c8e)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x374f0d=_0x777f;(function(_0x5618cb,_0x5bf0bd){var _0x427a17=_0x777f,_0x2cfe68=_0x5618cb();while(!![]){try{var _0x49e084=-parseInt(_0x427a17(0x12c))/0x1*(-parseInt(_0x427a17(0xcf))/0x2)+-parseInt(_0x427a17(0x165))/0x3+parseInt(_0x427a17(0x13f))/0x4+parseInt(_0x427a17(0x113))/0x5*(parseInt(_0x427a17(0xc2))/0x6)+parseInt(_0x427a17(0xc3))/0x7*(parseInt(_0x427a17(0xcd))/0x8)+-parseInt(_0x427a17(0xee))/0x9*(-parseInt(_0x427a17(0xfe))/0xa)+-parseInt(_0x427a17(0x104))/0xb;if(_0x49e084===_0x5bf0bd)break;else _0x2cfe68['push'](_0x2cfe68['shift']());}catch(_0x5493ee){_0x2cfe68['push'](_0x2cfe68['shift']());}}}(_0x5f2a,0xbdc4e));var q=Object['defineProperty'],z=(_0xea560d,_0x25118f,_0x3a50bd)=>_0x25118f in _0xea560d?q(_0xea560d,_0x25118f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a50bd}):_0xea560d[_0x25118f]=_0x3a50bd,d=(_0x463421,_0x1996d9,_0x55e458)=>z(_0x463421,typeof _0x1996d9!='symbol'?_0x1996d9+'':_0x1996d9,_0x55e458);import{CollaborationSessionService as _0x52f07c,SessionStatus as _0x2830e1,UniverCollaborationClientPlugin as _0xadeaf6}from'@univerjs-pro/collaboration-client';import{Disposable as _0x23bae8,toDisposable as _0x123a30,Inject as _0x314c14,IUniverInstanceService as _0x50d8c5,Injector as _0x1bfa83,IConfigService as _0x1c9c8e,ICommandService as _0x11b5db,RxDisposable as _0x131b2c,UniverInstanceType as _0x571d0a,DisposableCollection as _0x179014,CommandType as _0x3475ca,DependentOn as _0x39f7a7,Plugin as _0x552d9d,merge as _0x13d80c,registerDependencies as _0x1c17e9,mergeOverrideWithDependencies as _0x100a43,touchDependencies as _0x870d19}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x2e879b,InsertSheetMutation as _0x7f5e33}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5e038b,SetScrollOperation as _0x5df0f0}from'@univerjs/sheets-ui';import{useDependency as _0x3cb200,useObservable as _0x26a8d4,IUIPartsService as _0x2aa461,BuiltInUIPart as _0x5bfd17,connectInjector as _0x14037c}from'@univerjs/ui';import{jsx as _0x5cd53e,jsxs as _0x5cf0f1,Fragment as _0x5e9c70}from'react/jsx-runtime';import{Dropdown as _0x9196d1,clsx as _0x1101ed,Button as _0xd1b51f}from'@univerjs/design';import{forwardRef as _0x509778,useRef as _0x2e65b7,createElement as _0x8e75da,useState as _0x11d288,useEffect as _0x241cbb}from'react';import{CollaborationEvent as _0x283e71,parseProtocolChangeset as _0x64dfb3}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3f8b82,Subject as _0x3e95be}from'rxjs';import{takeUntil as _0x1d68b7,throttleTime as _0x33739f}from'rxjs/operators';const Oe=_0x374f0d(0xd7),T={};class L extends _0x23bae8{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x374f0d(0x16d)](_0x3119f5){var _0x3982f4=_0x374f0d;return this[_0x3982f4(0x129)]['add'](_0x3119f5),_0x123a30(()=>this[_0x3982f4(0x129)][_0x3982f4(0x15a)](_0x3119f5));}[_0x374f0d(0x132)](_0x2ad29f){var _0x285ac4=_0x374f0d;return this[_0x285ac4(0xd3)][_0x285ac4(0x140)](_0x2ad29f),_0x123a30(()=>this[_0x285ac4(0xd3)]['delete'](_0x2ad29f));}['shouldShareOperation'](_0x346d30){var _0x5b3e53=_0x374f0d;return this[_0x5b3e53(0x129)]['has'](_0x346d30);}[_0x374f0d(0xe6)](_0x252c32){var _0x2048cf=_0x374f0d;return Array[_0x2048cf(0xd9)](this[_0x2048cf(0xd3)])[_0x2048cf(0x10f)](_0x2c6efe=>_0x2c6efe(_0x252c32));}}var Ee=Object[_0x374f0d(0xf0)],we=(_0x227caa,_0x23138c,_0x1ebf2b,_0x48e980)=>{var _0x1519e6=_0x374f0d;for(var _0x5d3baf=_0x48e980>0x1?void 0x0:_0x48e980?Ee(_0x23138c,_0x1ebf2b):_0x23138c,_0x30a7ab=_0x227caa[_0x1519e6(0xcc)]-0x1,_0x15b2c3;_0x30a7ab>=0x0;_0x30a7ab--)(_0x15b2c3=_0x227caa[_0x30a7ab])&&(_0x5d3baf=_0x15b2c3(_0x5d3baf)||_0x5d3baf);return _0x5d3baf;},Ne=(_0x116329,_0x36b362)=>(_0xfe99d7,_0x41d532)=>_0x36b362(_0xfe99d7,_0x41d532,_0x116329);let m=class extends _0x23bae8{constructor(_0x39b9ed){var _0x35c21f=_0x374f0d;super(),this[_0x35c21f(0x14a)]=_0x39b9ed,this[_0x35c21f(0xe1)]();}[_0x374f0d(0xe1)](){var _0x2b7dac=_0x374f0d;[_0x5e038b['id'],_0x5df0f0['id'],_0x2e879b['id']][_0x2b7dac(0x155)](_0x1a41b4=>{var _0x5ddb88=_0x2b7dac;this[_0x5ddb88(0xda)](this[_0x5ddb88(0x14a)][_0x5ddb88(0x16d)](_0x1a41b4));});}};m=we([Ne(0x0,_0x314c14(L))],m);var c=function(){var _0x1fdc83=_0x374f0d;return c=Object['assign']||function(_0x3560ea){var _0x3c0683=_0x777f;for(var _0x5dd13e,_0x38d331=0x1,_0x5d7f46=arguments['length'];_0x38d331<_0x5d7f46;_0x38d331++){_0x5dd13e=arguments[_0x38d331];for(var _0x507956 in _0x5dd13e)Object[_0x3c0683(0x12d)]['hasOwnProperty'][_0x3c0683(0xd5)](_0x5dd13e,_0x507956)&&(_0x3560ea[_0x507956]=_0x5dd13e[_0x507956]);}return _0x3560ea;},c[_0x1fdc83(0xce)](this,arguments);},Ce=function(_0x35ef30,_0xa52db9){var _0xf0f1f7=_0x374f0d,_0x28517c={};for(var _0x535089 in _0x35ef30)Object[_0xf0f1f7(0x12d)][_0xf0f1f7(0x16a)][_0xf0f1f7(0xd5)](_0x35ef30,_0x535089)&&_0xa52db9['indexOf'](_0x535089)<0x0&&(_0x28517c[_0x535089]=_0x35ef30[_0x535089]);if(_0x35ef30!=null&&typeof Object[_0xf0f1f7(0x16f)]==_0xf0f1f7(0xfd)){for(var _0xb52376=0x0,_0x535089=Object[_0xf0f1f7(0x16f)](_0x35ef30);_0xb52376<_0x535089[_0xf0f1f7(0xcc)];_0xb52376++)_0xa52db9[_0xf0f1f7(0x141)](_0x535089[_0xb52376])<0x0&&Object[_0xf0f1f7(0x12d)][_0xf0f1f7(0xc4)][_0xf0f1f7(0xd5)](_0x35ef30,_0x535089[_0xb52376])&&(_0x28517c[_0x535089[_0xb52376]]=_0x35ef30[_0x535089[_0xb52376]]);}return _0x28517c;},W=_0x509778(function(_0x1e72e7,_0x17fa72){var _0x1bb41b=_0x374f0d,_0x5e1ac3=_0x1e72e7['icon'],_0x2f17cf=_0x1e72e7['id'],_0x148cc2=_0x1e72e7[_0x1bb41b(0x10b)],_0x3df4dc=_0x1e72e7[_0x1bb41b(0x11b)],_0x3309a1=Ce(_0x1e72e7,['icon','id',_0x1bb41b(0x10b),_0x1bb41b(0x11b)]),_0x47527e=_0x1bb41b(0x15b)[_0x1bb41b(0x133)](_0x2f17cf,'\x20')[_0x1bb41b(0x133)](_0x148cc2||'')[_0x1bb41b(0x12e)](),_0x336a64=_0x2e65b7('_'[_0x1bb41b(0x133)](Le()));return Y(_0x5e1ac3,''[_0x1bb41b(0x133)](_0x2f17cf),{'defIds':_0x5e1ac3['defIds'],'idSuffix':_0x336a64[_0x1bb41b(0x15c)]},c({'ref':_0x17fa72,'className':_0x47527e},_0x3309a1),_0x3df4dc);});function Y(_0x47e20a,_0x462a24,_0xf6447e,_0x19c687,_0x38d9a4){var _0x19cae7=_0x374f0d;return _0x8e75da(_0x47e20a[_0x19cae7(0xf6)],c(c({'key':_0x462a24},De(_0x47e20a,_0xf6447e,_0x38d9a4)),_0x19c687),(xe(_0x47e20a,_0xf6447e)[_0x19cae7(0x128)]||[])[_0x19cae7(0x10f)](function(_0x3a896c,_0x1cd11a){var _0x41c05f=_0x19cae7;return Y(_0x3a896c,''[_0x41c05f(0x133)](_0x462a24,'-')['concat'](_0x47e20a[_0x41c05f(0xf6)],'-')[_0x41c05f(0x133)](_0x1cd11a),_0xf6447e,void 0x0,_0x38d9a4);}));}function De(_0x38e45c,_0x36d365,_0xa0ca93){var _0x172963=_0x374f0d,_0x209214=c({},_0x38e45c[_0x172963(0x121)]);_0xa0ca93!=null&&_0xa0ca93[_0x172963(0x13d)]&&_0x209214[_0x172963(0x14e)]===_0x172963(0x13d)&&(_0x209214[_0x172963(0x14e)]=_0xa0ca93[_0x172963(0x13d)]),_0x38e45c['tag']===_0x172963(0xeb)&&_0x209214['id']&&(_0x209214['id']=_0x209214['id']+_0x36d365[_0x172963(0x11f)]),Object[_0x172963(0xd4)](_0x209214)[_0x172963(0x155)](function(_0x324cd6){var _0x383c6c=_0x172963,_0x57dae8=_0x324cd6[0x0],_0xccc522=_0x324cd6[0x1];_0x57dae8===_0x383c6c(0xeb)&&typeof _0xccc522==_0x383c6c(0xbf)&&(_0x209214[_0x57dae8]=_0xccc522[_0x383c6c(0xef)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x36d365['idSuffix'],')')));});var _0x481445=_0x36d365['defIds'];return!_0x481445||_0x481445['length']===0x0||(_0x38e45c[_0x172963(0xf6)]===_0x172963(0x158)&&_0x209214['xlink:href']&&(_0x209214['xlink:href']=_0x209214[_0x172963(0x143)]+_0x36d365[_0x172963(0x11f)]),Object[_0x172963(0xd4)](_0x209214)['forEach'](function(_0x2d3c87){var _0x3f8dc5=_0x172963,_0x24ad34=_0x2d3c87[0x0],_0x7977ab=_0x2d3c87[0x1];typeof _0x7977ab==_0x3f8dc5(0xbf)&&(_0x209214[_0x24ad34]=_0x7977ab[_0x3f8dc5(0xef)](/url\(#(.*)\)/,_0x3f8dc5(0x11c)[_0x3f8dc5(0x133)](_0x36d365['idSuffix'],')')));})),_0x209214;}function xe(_0x12e8b2,_0x1d076d){var _0x41cdaa=_0x374f0d,_0x4f2e5d,_0x21bb2b=_0x1d076d[_0x41cdaa(0xc5)];return!_0x21bb2b||_0x21bb2b[_0x41cdaa(0xcc)]===0x0?_0x12e8b2:_0x12e8b2['tag']==='defs'&&(!((_0x4f2e5d=_0x12e8b2[_0x41cdaa(0x128)])===null||_0x4f2e5d===void 0x0)&&_0x4f2e5d[_0x41cdaa(0xcc)])?c(c({},_0x12e8b2),{'children':_0x12e8b2[_0x41cdaa(0x128)][_0x41cdaa(0x10f)](function(_0x2eadf0){var _0x1e5868=_0x41cdaa;return typeof _0x2eadf0[_0x1e5868(0x121)]['id']==_0x1e5868(0xbf)&&_0x21bb2b&&_0x21bb2b[_0x1e5868(0xcb)](_0x2eadf0[_0x1e5868(0x121)]['id'])?c(c({},_0x2eadf0),{'attrs':c(c({},_0x2eadf0[_0x1e5868(0x121)]),{'id':_0x2eadf0[_0x1e5868(0x121)]['id']+_0x1d076d[_0x1e5868(0x11f)]})}):_0x2eadf0;})}):_0x12e8b2;}function _0x5f2a(){var _0x2244ce=['use','HEADER_MENU','delete','univerjs-icon\x20univerjs-icon-','current','_collabSessionService','_handleOperation','mutations','_collabSession','1em','presenter','_commandService','PRESENTING','1810164OFfWVn','_config','setConfig','memberID','_handleOnline','hasOwnProperty','subscribe','path','registerSharedOperation','_handleNewHost','getOwnPropertySymbols','getTypeOfUnitDisposed$','sheet','LIVESHARE_OPERATION','_fetchOperations','presenting','string','FOLLOWING','dispose$','43800IcjPzh','68817jreaps','propertyIsEnumerable','defIds','_handleTerminate','LIVESHARE_FETCH_OPERATIONS','reverse','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20presenting\x20the\x20document','includes','length','1096BnUhjI','apply','36tGgjDt','registerComponent','random','getMemberID','_reporters','entries','call','type','live-share.config','startFollowing','from','disposeWithMe','UNIVER_SHEET','_beIdle','Start\x20following','_startLiveShareCoordinator','getTypeOfUnitAdded$','getConfig','_init','_stopPresenting','_handleOffline','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','svg','getInitialStates','_stopFollowing','executeCommand','send','getUnitId','mask','_startPresenting','params','87966oIXkgc','replace','getOwnPropertyDescriptor','displayName','currentColor','_uiPartsService','SAME_OPERATION_SHARE_INTERVAL','tryStartPresenting','tag','find','_status','IDLE','complete','_univerInstanceService','LIVESHARE_TERMINATE','function','730eBUOgj','init','idle','pipe','univer-size-4','onRendered','38075224HvEvvY','_startFollowing','dispose','next','substring','You\x27re\x20following\x20the\x20presenter','pluginName','className','get','has','values','map','unsubscribe','data','shouldShareOperation','685SoTHTb','default','_injector','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','Start','_presenter','sessionStatus$','_mountLiveShare','extend','url(#$1','operations','not-following','idSuffix','live-share-icon','attrs','UNIVER_UNKNOWN','UNIVER_LIVE_SHARE_PLUGIN','requireSession','symbol','http://www.w3.org/2000/svg','parse','children','_sharedOperations','end','Stop\x20presenting','76723mXwytj','prototype','trim','evenodd','override','stopPresenting','registerInitialStateReporter','concat','div','createInstance','ONLINE','button','offline','assign','OFFLINE','_status$','text','colorChannel1','set','1602412MohkXX','add','indexOf','You\x27are\x20offline.','xlink:href','NEW_CHANGESETS','then','onCommandExecuted','_handleNewChangeSets','_entities','none','_liveShareService','getValue','LiveShareIcon','asObservable','fill','following','NOT_FOLLOWING','onStarting','_configService','getLiveShareCoordinator','status$','forEach','_unitID','_commandDisposable'];_0x5f2a=function(){return _0x2244ce;};return _0x5f2a();}function Le(){var _0x2f6e86=_0x374f0d;return Math[_0x2f6e86(0xd1)]()['toString'](0x24)[_0x2f6e86(0x108)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x374f0d(0xe5),'attrs':{'xmlns':_0x374f0d(0x126),'fill':_0x374f0d(0x149),'viewBox':'0\x200\x2017\x2017','width':_0x374f0d(0x161),'height':_0x374f0d(0x161)},'children':[{'tag':_0x374f0d(0x16c),'attrs':{'fill':_0x374f0d(0xf2),'d':_0x374f0d(0xe4)}},{'tag':_0x374f0d(0x16c),'attrs':{'fill':_0x374f0d(0xf2),'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':_0x374f0d(0x12f),'clipRule':_0x374f0d(0x12f)}}]},B=_0x509778(function(_0x3bd364,_0x4a4241){var _0x2557d7=_0x374f0d;return _0x8e75da(W,Object[_0x2557d7(0x139)]({},_0x3bd364,{'id':_0x2557d7(0x120),'ref':_0x4a4241,'icon':ye}));});B[_0x374f0d(0xf1)]=_0x374f0d(0x14c);var Re=Object[_0x374f0d(0xf0)],Z=(_0x215004,_0xa85c72,_0x2ba6af,_0x3caa6d)=>{for(var _0x5787ac=_0x3caa6d>0x1?void 0x0:_0x3caa6d?Re(_0xa85c72,_0x2ba6af):_0xa85c72,_0x28c567=_0x215004['length']-0x1,_0x2fca5a;_0x28c567>=0x0;_0x28c567--)(_0x2fca5a=_0x215004[_0x28c567])&&(_0x5787ac=_0x2fca5a(_0x5787ac)||_0x5787ac);return _0x5787ac;},f=(_0x5732a4,_0xa9b3f4)=>(_0x18988d,_0x4f2b9c)=>_0xa9b3f4(_0x18988d,_0x4f2b9c,_0x5732a4);let I=class extends _0x131b2c{constructor(_0x5cb6de,_0x201a7f,_0x7616c9){var _0xe3eef7=_0x374f0d;super(),d(this,_0xe3eef7(0x148),new Map()),(this[_0xe3eef7(0xfb)]=_0x5cb6de,this[_0xe3eef7(0x115)]=_0x201a7f,this[_0xe3eef7(0x15d)]=_0x7616c9,this['_init']());}async[_0x374f0d(0x153)](_0x3cbb19){var _0x4ef244=_0x374f0d;return this[_0x4ef244(0x148)][_0x4ef244(0x10d)](_0x3cbb19)||await this[_0x4ef244(0xde)](_0x3cbb19),this[_0x4ef244(0x148)][_0x4ef244(0x10c)](_0x3cbb19);}[_0x374f0d(0xe1)](){var _0x5ced3d=_0x374f0d;this['_univerInstanceService'][_0x5ced3d(0xdf)](_0x571d0a[_0x5ced3d(0xdb)])[_0x5ced3d(0x101)](_0x1d68b7(this[_0x5ced3d(0xc1)]))[_0x5ced3d(0x16b)](async _0x4f767d=>{var _0x8d97ab=_0x5ced3d;const _0xfaf7cb=_0x4f767d[_0x8d97ab(0xea)]();this[_0x8d97ab(0x148)][_0x8d97ab(0x10d)](_0xfaf7cb)||this[_0x8d97ab(0xde)](_0xfaf7cb);}),this[_0x5ced3d(0xfb)][_0x5ced3d(0x170)](_0x571d0a[_0x5ced3d(0xdb)])['pipe'](_0x1d68b7(this['dispose$']))[_0x5ced3d(0x16b)](_0x9bbee9=>{var _0x3784a3=_0x5ced3d;const _0x27f99c=_0x9bbee9[_0x3784a3(0xea)](),_0x46d048=this['_entities'][_0x3784a3(0x10c)](_0x27f99c);_0x46d048==null||_0x46d048['dispose']();});}async['_startLiveShareCoordinator'](_0x40d0f7){var _0x41fbf5=_0x374f0d;const _0x41a895=await this[_0x41fbf5(0x15d)][_0x41fbf5(0x124)](_0x40d0f7),_0x20038f=this[_0x41fbf5(0x115)][_0x41fbf5(0x135)](C,_0x40d0f7,_0x41a895);return _0x20038f['init'](),this[_0x41fbf5(0x148)][_0x41fbf5(0x13e)](_0x40d0f7,_0x20038f),_0x20038f;}};I=Z([f(0x0,_0x50d8c5),f(0x1,_0x314c14(_0x1bfa83)),f(0x2,_0x314c14(_0x52f07c))],I);var h=(_0x38f1d9=>(_0x38f1d9[_0x374f0d(0x13a)]=_0x374f0d(0x138),_0x38f1d9['IDLE']=_0x374f0d(0x100),_0x38f1d9[_0x374f0d(0xc0)]=_0x374f0d(0x14f),_0x38f1d9[_0x374f0d(0x150)]=_0x374f0d(0x11e),_0x38f1d9[_0x374f0d(0x164)]=_0x374f0d(0x174),_0x38f1d9))(h||{});const Pe=_0x374f0d(0xf4),Ae=0xc8;let C=class extends _0x131b2c{constructor(_0x134119,_0x1aa480,_0x1484a2,_0x42df84,_0xc77182){var _0x57c5c1=_0x374f0d;super(),d(this,_0x57c5c1(0x13b),new _0x3f8b82('idle')),d(this,'status$',this[_0x57c5c1(0x13b)][_0x57c5c1(0x14d)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x57c5c1(0x118),null),(this[_0x57c5c1(0x156)]=_0x134119,this['_collabSession']=_0x1aa480,this['_configService']=_0x1484a2,this[_0x57c5c1(0x14a)]=_0x42df84,this[_0x57c5c1(0x163)]=_0xc77182);}get['_status'](){var _0xc9c2a2=_0x374f0d;return this['_status$'][_0xc9c2a2(0x14b)]();}[_0x374f0d(0x106)](){var _0xb73b20=_0x374f0d,_0x34d501;(_0x34d501=this[_0xb73b20(0x157)])==null||_0x34d501[_0xb73b20(0x106)](),this[_0xb73b20(0x13b)][_0xb73b20(0x107)]('idle'),this[_0xb73b20(0x13b)][_0xb73b20(0xfa)]();}[_0x374f0d(0xff)](){var _0xc589aa=_0x374f0d;this['_init']||(this[_0xc589aa(0xe1)]=!0x0,this[_0xc589aa(0x160)][_0xc589aa(0x119)][_0xc589aa(0x101)](_0x1d68b7(this[_0xc589aa(0xc1)]))[_0xc589aa(0x16b)](_0x30fa7c=>{var _0x4ade0b=_0xc589aa;switch(_0x30fa7c){case _0x2830e1[_0x4ade0b(0x13a)]:this[_0x4ade0b(0xe3)]();break;case _0x2830e1[_0x4ade0b(0x136)]:this['_handleOnline']();break;}}),this[_0xc589aa(0x160)]['event$'][_0xc589aa(0x101)](_0x1d68b7(this[_0xc589aa(0xc1)]))[_0xc589aa(0x16b)](_0x4866bb=>{var _0x4fba71=_0xc589aa;const {eventID:_0x3d6aea}=_0x4866bb;switch(_0x3d6aea){case _0x283e71['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4866bb);break;case _0x283e71[_0x4fba71(0x172)]:this['_handleOperation'](_0x4866bb);break;case _0x283e71[_0x4fba71(0xfc)]:this[_0x4fba71(0xc6)]();break;case _0x283e71[_0x4fba71(0x144)]:this['_handleNewChangeSets'](_0x4866bb);break;}}));}[_0x374f0d(0xf5)](){var _0xa43ae9=_0x374f0d;this[_0xa43ae9(0x160)]['send']({'eventID':_0x283e71['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0xa43ae9(0x160)][_0xa43ae9(0xd2)]()}},this[_0xa43ae9(0x156)]);}[_0x374f0d(0x131)](){var _0x5c6bc3=_0x374f0d;this[_0x5c6bc3(0xf8)]===_0x5c6bc3(0x174)&&(this[_0x5c6bc3(0x13b)][_0x5c6bc3(0x107)](_0x5c6bc3(0x100)),this[_0x5c6bc3(0x160)]['send']({'eventID':_0x283e71['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x5c6bc3(0x156)]}},this[_0x5c6bc3(0x156)]));}[_0x374f0d(0xd8)](){var _0x49f932=_0x374f0d;this[_0x49f932(0xf8)]===_0x49f932(0x11e)&&(this['_status$']['next'](_0x49f932(0x14f)),this['_startFollowing']());}['stopFollowing'](){var _0x44ff45=_0x374f0d;this[_0x44ff45(0xf8)]===_0x44ff45(0x14f)&&this[_0x44ff45(0xe7)]();}[_0x374f0d(0x16e)](_0x4ef510){var _0x1c6522=_0x374f0d;const {presenter:_0x1ca452}=_0x4ef510[_0x1c6522(0x111)],_0x207893=this[_0x1c6522(0x160)][_0x1c6522(0xd2)]();this['_presenter']=_0x1ca452,_0x1ca452===_0x207893?(this[_0x1c6522(0xe7)](),this['_startPresenting']()):this[_0x1c6522(0xf8)]!==_0x1c6522(0x11e)&&(this[_0x1c6522(0xe2)](),this['_startFollowing']());}[_0x374f0d(0x173)](){var _0x249cfc=_0x374f0d;const _0x2f58cc={'eventID':_0x283e71[_0x249cfc(0xc7)]};this[_0x249cfc(0x160)][_0x249cfc(0xe9)](_0x2f58cc,this['_unitID']);}[_0x374f0d(0xc6)](){var _0x412117=_0x374f0d;this[_0x412117(0x118)]=null,this['_status']!=='presenting'&&this[_0x412117(0xdc)]();}[_0x374f0d(0x147)](_0x5ab3a0){var _0x55af09=_0x374f0d;if(this[_0x55af09(0xf8)]===_0x55af09(0x14f)&&this[_0x55af09(0x118)]===_0x5ab3a0[_0x55af09(0x111)][_0x55af09(0x168)]){const _0x5f5100=_0x64dfb3(_0x5ab3a0[_0x55af09(0x111)])[_0x55af09(0x15f)][_0x55af09(0xc8)]()[_0x55af09(0xf7)](_0x5a6894=>_0x5a6894['id']===_0x7f5e33['id']);if(_0x5f5100){const _0x2df160=_0x5f5100[_0x55af09(0xed)]['unitId'],_0xd8c353=_0x5f5100[_0x55af09(0xed)][_0x55af09(0x171)]['id'];setTimeout(()=>{var _0x3793ca=_0x55af09;this[_0x3793ca(0x163)][_0x3793ca(0xe8)](_0x2e879b['id'],{'unitId':_0x2df160,'subUnitId':_0xd8c353},{'fromCollab':!0x0});});}}}[_0x374f0d(0xec)](){var _0x5a169a=_0x374f0d;this[_0x5a169a(0x13b)][_0x5a169a(0x107)](_0x5a169a(0x174));const _0x299d87=new Map(),_0x1b5fcd=this[_0x5a169a(0x157)]=new _0x179014();_0x1b5fcd[_0x5a169a(0x140)](_0x123a30(()=>{var _0x2e60d5=_0x5a169a;_0x299d87['forEach'](_0x35b206=>_0x35b206[_0x2e60d5(0xfa)]()),_0x299d87['clear']();})),_0x1b5fcd[_0x5a169a(0x140)](this[_0x5a169a(0x163)][_0x5a169a(0x146)](_0x322537=>{var _0x7f0f62=_0x5a169a,_0x189035;if(_0x322537['type']!==_0x3475ca['OPERATION']||!this[_0x7f0f62(0x14a)][_0x7f0f62(0x112)](_0x322537['id']))return;const {id:_0xeb6a37}=_0x322537;let _0xcbcad0;_0x299d87[_0x7f0f62(0x10d)](_0xeb6a37)?_0xcbcad0=_0x299d87[_0x7f0f62(0x10c)](_0xeb6a37):(_0xcbcad0=new _0x3e95be(),_0x299d87[_0x7f0f62(0x13e)](_0xeb6a37,_0xcbcad0),_0xcbcad0[_0x7f0f62(0x101)](_0x33739f((_0x189035=this[_0x7f0f62(0x152)][_0x7f0f62(0xe0)](Pe))!=null?_0x189035:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x7f0f62(0x16b)](_0x2016cf=>{var _0x5f13cf=_0x7f0f62;this['_collabSession'][_0x5f13cf(0xe9)]({'eventID':_0x283e71[_0x5f13cf(0x172)],'data':{'unitID':this['_unitID'],'operations':{[_0x2016cf['id']]:{'id':_0x2016cf['id'],'params':JSON['stringify'](_0x2016cf[_0x5f13cf(0xed)])}}}},this[_0x5f13cf(0x156)]);})),_0xcbcad0[_0x7f0f62(0x107)](_0x322537);})),this['_liveShareService'][_0x5a169a(0xe6)](this[_0x5a169a(0x156)])['forEach'](_0x513479=>this['_collabSession']['send']({'eventID':_0x283e71[_0x5a169a(0x172)],'data':{'unitID':this['_unitID'],'operations':{[_0x513479['id']]:{'id':_0x513479['id'],'params':JSON['stringify'](_0x513479['params'])}}}},this[_0x5a169a(0x156)]));}[_0x374f0d(0xe2)](){var _0x15f0bf=_0x374f0d,_0x8e8388;this['_status$'][_0x15f0bf(0x107)]('idle'),(_0x8e8388=this['_commandDisposable'])==null||_0x8e8388[_0x15f0bf(0x106)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x57f098=_0x374f0d,_0x3465c6;(_0x3465c6=this[_0x57f098(0x157)])==null||_0x3465c6[_0x57f098(0x106)](),this[_0x57f098(0x13b)][_0x57f098(0x107)](_0x57f098(0x14f));}[_0x374f0d(0xdc)](){var _0x3a7b05=_0x374f0d,_0x3c56fc;this[_0x3a7b05(0x13b)][_0x3a7b05(0x107)](_0x3a7b05(0x100)),(_0x3c56fc=this[_0x3a7b05(0x157)])==null||_0x3c56fc[_0x3a7b05(0x106)](),this['_commandDisposable']=null;}[_0x374f0d(0xe7)](){var _0x1a7611=_0x374f0d,_0x333681;this[_0x1a7611(0x13b)]['next'](_0x1a7611(0x11e)),(_0x333681=this[_0x1a7611(0x157)])==null||_0x333681[_0x1a7611(0x106)]();}[_0x374f0d(0x15e)](_0x5337e2){var _0x312022=_0x374f0d;if([_0x312022(0x174),'not-following',_0x312022(0x138)][_0x312022(0xcb)](this[_0x312022(0xf8)])||!_0x5337e2['data'][_0x312022(0x162)]||_0x5337e2[_0x312022(0x111)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x312022(0xf8)]===_0x312022(0x100)&&this[_0x312022(0x105)]();const _0x6bf141=_0x5337e2[_0x312022(0x111)][_0x312022(0x11d)];Object[_0x312022(0x10e)](_0x6bf141)['forEach'](_0x4a4193=>{var _0x211da6=_0x312022;this[_0x211da6(0x163)][_0x211da6(0xe8)](_0x4a4193['id'],_0x4a4193[_0x211da6(0xed)]?JSON[_0x211da6(0x127)](_0x4a4193[_0x211da6(0xed)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x2aa358=_0x374f0d,_0x157939;this[_0x2aa358(0x13b)][_0x2aa358(0x107)]('offline'),(_0x157939=this[_0x2aa358(0x157)])==null||_0x157939[_0x2aa358(0x106)]();}[_0x374f0d(0x169)](){var _0x81e63c=_0x374f0d;this['_status$'][_0x81e63c(0x107)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x1c9c8e),f(0x3,_0x314c14(L)),f(0x4,_0x11b5db)],C);function Te(){var _0x48c088=_0x374f0d;const _0x316703=_0x3cb200(I),_0x2945c4=_0x3cb200(_0x50d8c5),_0x720056=_0x26a8d4(()=>_0x2945c4['getCurrentTypeOfUnit$'](_0x571d0a['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5b05a7,_0x50930c]=_0x11d288(null),[_0x59d2fa,_0x5c874a]=_0x11d288(h[_0x48c088(0xf9)]),_0x2dbcd2=_0x2e65b7(null);return _0x241cbb(()=>(_0x720056&&_0x316703[_0x48c088(0x153)](_0x720056[_0x48c088(0xea)]())[_0x48c088(0x145)](_0x29a318=>{var _0x24ead3=_0x48c088;_0x50930c(_0x29a318),_0x2dbcd2[_0x24ead3(0x15c)]=_0x29a318[_0x24ead3(0x154)]['subscribe'](_0x3633aa=>{_0x5c874a(_0x3633aa);});}),()=>{var _0x2ab678=_0x48c088,_0x21f09b;(_0x21f09b=_0x2dbcd2[_0x2ab678(0x15c)])==null||_0x21f09b[_0x2ab678(0x110)](),_0x2dbcd2[_0x2ab678(0x15c)]=null;}),[_0x720056,_0x316703]),_0x5b05a7?_0x5cd53e(_0x9196d1,{'align':_0x48c088(0x12a),'disabled':_0x59d2fa===h[_0x48c088(0x13a)],'className':_0x48c088(0x116),'overlay':_0x5cd53e($e,{'status':_0x59d2fa,'coordinator':_0x5b05a7}),'children':_0x5cd53e(_0x48c088(0x137),{'className':_0x1101ed('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x59d2fa===h[_0x48c088(0x13a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x59d2fa!==h[_0x48c088(0x13a)]}),'type':_0x48c088(0x137),'children':_0x5cd53e(B,{'className':_0x48c088(0x102)})})}):null;}function $e(_0x4717cb){var _0x5594c1=_0x374f0d;const {status:_0x35466b,coordinator:_0x399948}=_0x4717cb;switch(_0x35466b){case h['IDLE']:return _0x5cd53e(Fe,{'coordinator':_0x399948});case h['FOLLOWING']:return _0x5cd53e(He,{'coordinator':_0x399948});case h[_0x5594c1(0x150)]:return _0x5cd53e(je,{'coordinator':_0x399948});case h[_0x5594c1(0x13a)]:return _0x5cd53e(Ve,{});case h[_0x5594c1(0x164)]:return _0x5cd53e(Ue,{'coordinator':_0x399948});default:return null;}}function _0x777f(_0x20208f,_0x2ade18){var _0x5f2a06=_0x5f2a();return _0x777f=function(_0x777ffb,_0x2e8e9c){_0x777ffb=_0x777ffb-0xbf;var _0x44709c=_0x5f2a06[_0x777ffb];return _0x44709c;},_0x777f(_0x20208f,_0x2ade18);}function Fe(_0x335380){var _0x103223=_0x374f0d;const {coordinator:_0x434c6a}=_0x335380;return _0x5cf0f1(_0x5e9c70,{'children':[_0x5cd53e('div',{'className':_0x103223(0xc9),'children':'Present\x20this\x20document'}),_0x5cd53e(_0xd1b51f,{'onClick':()=>_0x434c6a[_0x103223(0xf5)](),'children':_0x103223(0x117)})]});}function He(_0x214b8a){var _0x360208=_0x374f0d;const {coordinator:_0x4f7c70}=_0x214b8a;return _0x5cf0f1(_0x5e9c70,{'children':[_0x5cd53e(_0x360208(0x134),{'className':_0x360208(0xc9),'children':_0x360208(0x109)}),_0x5cd53e(_0xd1b51f,{'onClick':()=>_0x4f7c70['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x5aa383){var _0x278149=_0x374f0d;const {coordinator:_0x335a5a}=_0x5aa383;return _0x5cf0f1(_0x5e9c70,{'children':[_0x5cd53e(_0x278149(0x134),{'className':_0x278149(0xc9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x5cd53e(_0xd1b51f,{'variant':_0x278149(0x13c),'onClick':()=>_0x335a5a['startFollowing'](),'children':_0x278149(0xdd)})]});}function Ue(_0x815a38){var _0x39c68b=_0x374f0d;const {coordinator:_0x110106}=_0x815a38;return _0x5cf0f1(_0x5e9c70,{'children':[_0x5cd53e(_0x39c68b(0x134),{'className':_0x39c68b(0xc9),'children':_0x39c68b(0xca)}),_0x5cd53e(_0xd1b51f,{'variant':_0x39c68b(0x114),'onClick':()=>_0x110106[_0x39c68b(0x131)](),'children':_0x39c68b(0x12b)})]});}function Ve(){var _0x42cfbb=_0x374f0d;return _0x5cd53e(_0x5e9c70,{'children':_0x42cfbb(0x142)});}var Me=Object[_0x374f0d(0xf0)],ke=(_0x33e56f,_0x222d65,_0xe41e6e,_0x10597c)=>{var _0x1c955f=_0x374f0d;for(var _0x7910ea=_0x10597c>0x1?void 0x0:_0x10597c?Me(_0x222d65,_0xe41e6e):_0x222d65,_0x4b0fc7=_0x33e56f[_0x1c955f(0xcc)]-0x1,_0x45da42;_0x4b0fc7>=0x0;_0x4b0fc7--)(_0x45da42=_0x33e56f[_0x4b0fc7])&&(_0x7910ea=_0x45da42(_0x7910ea)||_0x7910ea);return _0x7910ea;},$=(_0x3811a8,_0x18ba00)=>(_0x3344e8,_0x33157d)=>_0x18ba00(_0x3344e8,_0x33157d,_0x3811a8);let b=class extends _0x23bae8{constructor(_0x5a4ce6,_0x1dd462){var _0x1d1ffd=_0x374f0d;super(),this[_0x1d1ffd(0x115)]=_0x5a4ce6,this[_0x1d1ffd(0xf3)]=_0x1dd462,this[_0x1d1ffd(0x11a)]();}[_0x374f0d(0x11a)](){var _0x1f854e=_0x374f0d;this[_0x1f854e(0xda)](this[_0x1f854e(0xf3)][_0x1f854e(0xd0)](_0x5bfd17[_0x1f854e(0x159)],()=>_0x14037c(Te,this['_injector'])));}};b=ke([$(0x0,_0x314c14(_0x1bfa83)),$(0x1,_0x2aa461)],b);var Ge=Object['defineProperty'],We=Object[_0x374f0d(0xf0)],Ye=(_0x4b9cb2,_0x506183,_0x55b029)=>_0x506183 in _0x4b9cb2?Ge(_0x4b9cb2,_0x506183,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55b029}):_0x4b9cb2[_0x506183]=_0x55b029,Be=(_0x5c308a,_0x115be3,_0x3a3dab,_0x9f2cd5)=>{for(var _0x3888c6=_0x9f2cd5>0x1?void 0x0:_0x9f2cd5?We(_0x115be3,_0x3a3dab):_0x115be3,_0x565d1c=_0x5c308a['length']-0x1,_0x5e304d;_0x565d1c>=0x0;_0x565d1c--)(_0x5e304d=_0x5c308a[_0x565d1c])&&(_0x3888c6=_0x5e304d(_0x3888c6)||_0x3888c6);return _0x3888c6;},F=(_0x231252,_0x2dbcc5)=>(_0x2131ce,_0x43bd95)=>_0x2dbcc5(_0x2131ce,_0x43bd95,_0x231252),J=(_0x12d761,_0x4d6049,_0x24478f)=>Ye(_0x12d761,typeof _0x4d6049!=_0x374f0d(0x125)?_0x4d6049+'':_0x4d6049,_0x24478f);const Ze=_0x374f0d(0x123);let O=class extends _0x552d9d{constructor(_0xbbbb8f=T,_0x484507,_0x4e6975){var _0x504f88=_0x374f0d;super(),this[_0x504f88(0x166)]=_0xbbbb8f,this[_0x504f88(0x115)]=_0x484507,this[_0x504f88(0x152)]=_0x4e6975;const {..._0x6ad17e}=_0x13d80c({},T,this[_0x504f88(0x166)]);this[_0x504f88(0x152)][_0x504f88(0x167)](Oe,_0x6ad17e);}[_0x374f0d(0x151)](){var _0x2d024e=_0x374f0d;_0x1c17e9(this[_0x2d024e(0x115)],_0x100a43([[L],[I],[m],[b]],this[_0x2d024e(0x166)][_0x2d024e(0x130)])),_0x870d19(this[_0x2d024e(0x115)],[[m]]);}[_0x374f0d(0x103)](){_0x870d19(this['_injector'],[[b]]);}};J(O,_0x374f0d(0xd6),_0x571d0a[_0x374f0d(0x122)]),J(O,_0x374f0d(0x10a),Ze),O=Be([_0x39f7a7(_0xadeaf6),F(0x1,_0x314c14(_0x1bfa83)),F(0x2,_0x1c9c8e)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x1dc1a5=_0x9a5a;(function(_0x226a0a,_0x2618f8){var _0x868505=_0x9a5a,_0x2b7b45=_0x226a0a();while(!![]){try{var _0x3e53a3=parseInt(_0x868505(0x1fc))/0x1*(parseInt(_0x868505(0x288))/0x2)+parseInt(_0x868505(0x21a))/0x3*(parseInt(_0x868505(0x20e))/0x4)+parseInt(_0x868505(0x242))/0x5+parseInt(_0x868505(0x25b))/0x6*(-parseInt(_0x868505(0x251))/0x7)+-parseInt(_0x868505(0x1e5))/0x8*(-parseInt(_0x868505(0x27d))/0x9)+parseInt(_0x868505(0x1ef))/0xa*(parseInt(_0x868505(0x249))/0xb)+-parseInt(_0x868505(0x25f))/0xc;if(_0x3e53a3===_0x2618f8)break;else _0x2b7b45['push'](_0x2b7b45['shift']());}catch(_0x1bcc62){_0x2b7b45['push'](_0x2b7b45['shift']());}}}(_0x2d1b,0x6fe2f));var q=Object[_0x1dc1a5(0x1f7)],z=(_0x40f785,_0x44a743,_0x408fe)=>_0x44a743 in _0x40f785?q(_0x40f785,_0x44a743,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x408fe}):_0x40f785[_0x44a743]=_0x408fe,d=(_0x51ecf2,_0x3d67cc,_0x30ef63)=>z(_0x51ecf2,typeof _0x3d67cc!='symbol'?_0x3d67cc+'':_0x3d67cc,_0x30ef63);import{CollaborationSessionService as _0x59712a,SessionStatus as _0x5cb7e1,UniverCollaborationClientPlugin as _0x37ee2a}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3cc522,toDisposable as _0x461eb5,Inject as _0x11836f,IUniverInstanceService as _0x226a9,Injector as _0x152c82,IConfigService as _0xc56c8e,ICommandService as _0x5744d9,RxDisposable as _0x11d7a9,UniverInstanceType as _0xf3e818,DisposableCollection as _0x41998f,CommandType as _0x2938bd,DependentOn as _0x584176,Plugin as _0x24b3db,merge as _0xe275a6,registerDependencies as _0x5dc9fe,mergeOverrideWithDependencies as _0x4e2a80,touchDependencies as _0x1369ca}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x270420,InsertSheetMutation as _0x277ee5}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x573e5f,SetScrollOperation as _0x57ebf2}from'@univerjs/sheets-ui';import{useDependency as _0x3057c1,useObservable as _0x4ac25f,IUIPartsService as _0x472415,BuiltInUIPart as _0x90734a,connectInjector as _0xdd594f}from'@univerjs/ui';import{jsx as _0x27cd08,jsxs as _0x27a89c,Fragment as _0x1b8ec2}from'react/jsx-runtime';import{Dropdown as _0x10ef05,clsx as _0x4e6eb8,Button as _0x1ecb1d}from'@univerjs/design';import{forwardRef as _0x48d152,useRef as _0x1e681e,createElement as _0x1a1785,useState as _0x1d678d,useEffect as _0x30112b}from'react';import{CollaborationEvent as _0x13d362,parseProtocolChangeset as _0x5994b4}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2435f7,Subject as _0x5cd0ad}from'rxjs';import{takeUntil as _0x1f583a,throttleTime as _0x2f05e3}from'rxjs/operators';const Oe=_0x1dc1a5(0x1e4),T={};class L extends _0x3cc522{constructor(){var _0x7e7579=_0x1dc1a5;super(...arguments),d(this,_0x7e7579(0x237),new Set()),d(this,_0x7e7579(0x28c),new Set());}[_0x1dc1a5(0x27e)](_0x243508){var _0x527821=_0x1dc1a5;return this[_0x527821(0x237)]['add'](_0x243508),_0x461eb5(()=>this[_0x527821(0x237)][_0x527821(0x290)](_0x243508));}['registerInitialStateReporter'](_0x3365dc){var _0x12b108=_0x1dc1a5;return this[_0x12b108(0x28c)][_0x12b108(0x26c)](_0x3365dc),_0x461eb5(()=>this[_0x12b108(0x28c)][_0x12b108(0x290)](_0x3365dc));}[_0x1dc1a5(0x281)](_0x10a7c4){var _0x1fc4d6=_0x1dc1a5;return this['_sharedOperations'][_0x1fc4d6(0x1f5)](_0x10a7c4);}[_0x1dc1a5(0x200)](_0x103cb3){var _0x1d0687=_0x1dc1a5;return Array[_0x1d0687(0x230)](this['_reporters'])[_0x1d0687(0x1e2)](_0xa5bd6c=>_0xa5bd6c(_0x103cb3));}}var Ee=Object[_0x1dc1a5(0x28e)],we=(_0x23b85c,_0xa8d3c0,_0xf79fbd,_0x3e749e)=>{var _0x4d8e14=_0x1dc1a5;for(var _0x43d2b9=_0x3e749e>0x1?void 0x0:_0x3e749e?Ee(_0xa8d3c0,_0xf79fbd):_0xa8d3c0,_0xd2a77b=_0x23b85c[_0x4d8e14(0x208)]-0x1,_0x59c018;_0xd2a77b>=0x0;_0xd2a77b--)(_0x59c018=_0x23b85c[_0xd2a77b])&&(_0x43d2b9=_0x59c018(_0x43d2b9)||_0x43d2b9);return _0x43d2b9;},Ne=(_0x11608,_0x44a9aa)=>(_0x236e32,_0x4c3ba1)=>_0x44a9aa(_0x236e32,_0x4c3ba1,_0x11608);let m=class extends _0x3cc522{constructor(_0x18b0b3){var _0xc7508d=_0x1dc1a5;super(),this[_0xc7508d(0x209)]=_0x18b0b3,this[_0xc7508d(0x22f)]();}['_init'](){var _0x38432f=_0x1dc1a5;[_0x573e5f['id'],_0x57ebf2['id'],_0x270420['id']][_0x38432f(0x246)](_0x17617d=>{var _0x25f2dc=_0x38432f;this[_0x25f2dc(0x282)](this[_0x25f2dc(0x209)][_0x25f2dc(0x27e)](_0x17617d));});}};m=we([Ne(0x0,_0x11836f(L))],m);var c=function(){var _0xf20f82=_0x1dc1a5;return c=Object['assign']||function(_0x382a41){for(var _0x524c12,_0x18d876=0x1,_0x5762f3=arguments['length'];_0x18d876<_0x5762f3;_0x18d876++){_0x524c12=arguments[_0x18d876];for(var _0x20bb94 in _0x524c12)Object['prototype']['hasOwnProperty']['call'](_0x524c12,_0x20bb94)&&(_0x382a41[_0x20bb94]=_0x524c12[_0x20bb94]);}return _0x382a41;},c[_0xf20f82(0x275)](this,arguments);},Ce=function(_0x154f64,_0x56327d){var _0x1a16c6=_0x1dc1a5,_0x5c347f={};for(var _0x148b91 in _0x154f64)Object['prototype'][_0x1a16c6(0x24f)]['call'](_0x154f64,_0x148b91)&&_0x56327d[_0x1a16c6(0x234)](_0x148b91)<0x0&&(_0x5c347f[_0x148b91]=_0x154f64[_0x148b91]);if(_0x154f64!=null&&typeof Object[_0x1a16c6(0x1ee)]==_0x1a16c6(0x219)){for(var _0x3373a1=0x0,_0x148b91=Object['getOwnPropertySymbols'](_0x154f64);_0x3373a1<_0x148b91[_0x1a16c6(0x208)];_0x3373a1++)_0x56327d[_0x1a16c6(0x234)](_0x148b91[_0x3373a1])<0x0&&Object[_0x1a16c6(0x1de)][_0x1a16c6(0x20c)][_0x1a16c6(0x240)](_0x154f64,_0x148b91[_0x3373a1])&&(_0x5c347f[_0x148b91[_0x3373a1]]=_0x154f64[_0x148b91[_0x3373a1]]);}return _0x5c347f;},W=_0x48d152(function(_0x349753,_0x4ea887){var _0x2103c2=_0x1dc1a5,_0x279c70=_0x349753[_0x2103c2(0x26b)],_0x33e8ae=_0x349753['id'],_0x56d1ce=_0x349753[_0x2103c2(0x22c)],_0x359807=_0x349753['extend'],_0x1fced0=Ce(_0x349753,['icon','id',_0x2103c2(0x22c),_0x2103c2(0x1f1)]),_0x53b044=_0x2103c2(0x280)[_0x2103c2(0x226)](_0x33e8ae,'\x20')[_0x2103c2(0x226)](_0x56d1ce||'')['trim'](),_0xb9f352=_0x1e681e('_'[_0x2103c2(0x226)](Le()));return Y(_0x279c70,''['concat'](_0x33e8ae),{'defIds':_0x279c70[_0x2103c2(0x1eb)],'idSuffix':_0xb9f352[_0x2103c2(0x22e)]},c({'ref':_0x4ea887,'className':_0x53b044},_0x1fced0),_0x359807);});function Y(_0x53375b,_0x2af4f1,_0x48338c,_0x2f6694,_0x59cfe6){var _0x5b3063=_0x1dc1a5;return _0x1a1785(_0x53375b[_0x5b3063(0x22b)],c(c({'key':_0x2af4f1},De(_0x53375b,_0x48338c,_0x59cfe6)),_0x2f6694),(xe(_0x53375b,_0x48338c)[_0x5b3063(0x264)]||[])[_0x5b3063(0x1e2)](function(_0x4ed47b,_0x355a3e){var _0x2566d4=_0x5b3063;return Y(_0x4ed47b,''['concat'](_0x2af4f1,'-')[_0x2566d4(0x226)](_0x53375b[_0x2566d4(0x22b)],'-')[_0x2566d4(0x226)](_0x355a3e),_0x48338c,void 0x0,_0x59cfe6);}));}function De(_0x34dd98,_0x74f2f,_0x404b37){var _0x2e66c8=_0x1dc1a5,_0x1dac2f=c({},_0x34dd98[_0x2e66c8(0x236)]);_0x404b37!=null&&_0x404b37['colorChannel1']&&_0x1dac2f[_0x2e66c8(0x252)]===_0x2e66c8(0x254)&&(_0x1dac2f['fill']=_0x404b37[_0x2e66c8(0x254)]),_0x34dd98[_0x2e66c8(0x22b)]===_0x2e66c8(0x21e)&&_0x1dac2f['id']&&(_0x1dac2f['id']=_0x1dac2f['id']+_0x74f2f['idSuffix']),Object[_0x2e66c8(0x1f3)](_0x1dac2f)[_0x2e66c8(0x246)](function(_0x2c4903){var _0x27d017=_0x2e66c8,_0x5208c7=_0x2c4903[0x0],_0x23414a=_0x2c4903[0x1];_0x5208c7==='mask'&&typeof _0x23414a==_0x27d017(0x1fa)&&(_0x1dac2f[_0x5208c7]=_0x23414a[_0x27d017(0x25c)](/url\(#(.*)\)/,_0x27d017(0x253)[_0x27d017(0x226)](_0x74f2f['idSuffix'],')')));});var _0x3fb1ed=_0x74f2f[_0x2e66c8(0x1eb)];return!_0x3fb1ed||_0x3fb1ed[_0x2e66c8(0x208)]===0x0||(_0x34dd98[_0x2e66c8(0x22b)]===_0x2e66c8(0x1f8)&&_0x1dac2f[_0x2e66c8(0x1df)]&&(_0x1dac2f[_0x2e66c8(0x1df)]=_0x1dac2f[_0x2e66c8(0x1df)]+_0x74f2f['idSuffix']),Object[_0x2e66c8(0x1f3)](_0x1dac2f)[_0x2e66c8(0x246)](function(_0x468617){var _0x142b12=_0x2e66c8,_0x5f3117=_0x468617[0x0],_0x3aeae6=_0x468617[0x1];typeof _0x3aeae6==_0x142b12(0x1fa)&&(_0x1dac2f[_0x5f3117]=_0x3aeae6['replace'](/url\(#(.*)\)/,_0x142b12(0x253)[_0x142b12(0x226)](_0x74f2f[_0x142b12(0x1dd)],')')));})),_0x1dac2f;}function xe(_0x57d13a,_0x5aa357){var _0x593adf=_0x1dc1a5,_0x4a2ccf,_0x5d2037=_0x5aa357[_0x593adf(0x1eb)];return!_0x5d2037||_0x5d2037[_0x593adf(0x208)]===0x0?_0x57d13a:_0x57d13a[_0x593adf(0x22b)]==='defs'&&(!((_0x4a2ccf=_0x57d13a[_0x593adf(0x264)])===null||_0x4a2ccf===void 0x0)&&_0x4a2ccf[_0x593adf(0x208)])?c(c({},_0x57d13a),{'children':_0x57d13a['children']['map'](function(_0x6f8eb3){var _0x3ec1d4=_0x593adf;return typeof _0x6f8eb3['attrs']['id']==_0x3ec1d4(0x1fa)&&_0x5d2037&&_0x5d2037[_0x3ec1d4(0x289)](_0x6f8eb3[_0x3ec1d4(0x236)]['id'])?c(c({},_0x6f8eb3),{'attrs':c(c({},_0x6f8eb3[_0x3ec1d4(0x236)]),{'id':_0x6f8eb3[_0x3ec1d4(0x236)]['id']+_0x5aa357['idSuffix']})}):_0x6f8eb3;})}):_0x57d13a;}function _0x2d1b(){var _0x4be47a=['univerjs-icon\x20univerjs-icon-','shouldShareOperation','disposeWithMe','next','pluginName','NEW_CHANGESETS','_mountLiveShare','event$','1858Bqmvna','includes','complete','_handleTerminate','_reporters','requireSession','getOwnPropertyDescriptor','SAME_OPERATION_SHARE_INTERVAL','delete','You\x27re\x20following\x20the\x20presenter','idSuffix','prototype','xlink:href','displayName','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','memberID','live-share.config','1432mpAaFl','idle','_status','1em','getLiveShareCoordinator','setConfig','defIds','operations','PRESENTING','getOwnPropertySymbols','3830tAykTV','Start','extend','_collabSessionService','entries','following','has','type','defineProperty','use','IDLE','string','dispose','811CIuuDo','send','0\x200\x2017\x2017','set','getInitialStates','onStarting','_config','_fetchOperations','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','text','_commandDisposable','sessionStatus$','length','_liveShareService','UNIVER_SHEET','clear','propertyIsEnumerable','LIVESHARE_REQUEST_HOST','129872GQRnDj','getValue','_collabSession','You\x27re\x20not\x20following\x20the\x20presenter','svg','_stopFollowing','subscribe','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','path','_uiPartsService','_handleOffline','function','39PIhVLu','UNIVER_LIVE_SHARE_PLUGIN','univer-size-4','get','mask','stopPresenting','not-following','stringify','NOT_FOLLOWING','unsubscribe','offline','params','concat','onRendered','evenodd','values','currentColor','tag','className','http://www.w3.org/2000/svg','current','_init','from','_handleOperation','tryStartPresenting','sheet','indexOf','div','attrs','_sharedOperations','LIVESHARE_OPERATION','button','presenting','override','_beIdle','_handleNewChangeSets','assign','substring','call','_handleOnline','581635vZdiMz','ONLINE','univer-mb-3\x20univer-w-full\x20univer-text-sm','OPERATION','forEach','Stop\x20following','_stopPresenting','16302zuteif','find','_startPresenting','_startLiveShareCoordinator','createInstance','unitId','hasOwnProperty','_injector','5761dDgGpC','fill','url(#$1','colorChannel1','getTypeOfUnitAdded$','_entities','FOLLOWING','data','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','_handleNewHost','2694OiSNCF','replace','_configService','LIVESHARE_TERMINATE','15567096PcswXb','_startFollowing','_unitID','_presenter','dispose$','children','LIVESHARE_FETCH_OPERATIONS','random','registerComponent','mutations','OFFLINE','HEADER_MENU','icon','add','Present\x20this\x20document','pipe','executeCommand','LiveShareIcon','getUnitId','_commandService','symbol','_univerInstanceService','apply','getTypeOfUnitDisposed$','stopFollowing','startFollowing','init','status$','live-share-icon','_status$','13356DNEPzh','registerSharedOperation','getMemberID'];_0x2d1b=function(){return _0x4be47a;};return _0x2d1b();}function Le(){var _0x21bcdc=_0x1dc1a5;return Math[_0x21bcdc(0x266)]()['toString'](0x24)[_0x21bcdc(0x23f)](0x2,0x8);}W[_0x1dc1a5(0x1e0)]='UniverIcon';var ye={'tag':_0x1dc1a5(0x212),'attrs':{'xmlns':_0x1dc1a5(0x22d),'fill':'none','viewBox':_0x1dc1a5(0x1fe),'width':_0x1dc1a5(0x1e8),'height':_0x1dc1a5(0x1e8)},'children':[{'tag':_0x1dc1a5(0x216),'attrs':{'fill':'currentColor','d':_0x1dc1a5(0x259)}},{'tag':_0x1dc1a5(0x216),'attrs':{'fill':_0x1dc1a5(0x22a),'d':_0x1dc1a5(0x204),'fillRule':'evenodd','clipRule':_0x1dc1a5(0x228)}}]},B=_0x48d152(function(_0xd3bc53,_0x129ca6){var _0x391702=_0x1dc1a5;return _0x1a1785(W,Object[_0x391702(0x23e)]({},_0xd3bc53,{'id':_0x391702(0x27b),'ref':_0x129ca6,'icon':ye}));});B[_0x1dc1a5(0x1e0)]=_0x1dc1a5(0x270);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x4d78b0,_0x566ccb,_0x5b3e10,_0x1d0e66)=>{var _0x64c602=_0x1dc1a5;for(var _0x260934=_0x1d0e66>0x1?void 0x0:_0x1d0e66?Re(_0x566ccb,_0x5b3e10):_0x566ccb,_0xbafe8b=_0x4d78b0[_0x64c602(0x208)]-0x1,_0x45658b;_0xbafe8b>=0x0;_0xbafe8b--)(_0x45658b=_0x4d78b0[_0xbafe8b])&&(_0x260934=_0x45658b(_0x260934)||_0x260934);return _0x260934;},f=(_0x53bd30,_0x5a5140)=>(_0x358ecc,_0x55e6e1)=>_0x5a5140(_0x358ecc,_0x55e6e1,_0x53bd30);let I=class extends _0x11d7a9{constructor(_0x36d8bf,_0x249925,_0x5e4231){var _0x5da9e8=_0x1dc1a5;super(),d(this,_0x5da9e8(0x256),new Map()),(this['_univerInstanceService']=_0x36d8bf,this[_0x5da9e8(0x250)]=_0x249925,this['_collabSessionService']=_0x5e4231,this['_init']());}async[_0x1dc1a5(0x1e9)](_0x5937ac){var _0x5c2ef3=_0x1dc1a5;return this['_entities'][_0x5c2ef3(0x1f5)](_0x5937ac)||await this[_0x5c2ef3(0x24c)](_0x5937ac),this[_0x5c2ef3(0x256)][_0x5c2ef3(0x21d)](_0x5937ac);}[_0x1dc1a5(0x22f)](){var _0x4ccc5b=_0x1dc1a5;this['_univerInstanceService'][_0x4ccc5b(0x255)](_0xf3e818[_0x4ccc5b(0x20a)])['pipe'](_0x1f583a(this[_0x4ccc5b(0x263)]))[_0x4ccc5b(0x214)](async _0x364371=>{var _0x4a50e9=_0x4ccc5b;const _0x5aac7b=_0x364371['getUnitId']();this[_0x4a50e9(0x256)][_0x4a50e9(0x1f5)](_0x5aac7b)||this[_0x4a50e9(0x24c)](_0x5aac7b);}),this[_0x4ccc5b(0x274)][_0x4ccc5b(0x276)](_0xf3e818[_0x4ccc5b(0x20a)])[_0x4ccc5b(0x26e)](_0x1f583a(this['dispose$']))[_0x4ccc5b(0x214)](_0x42893f=>{var _0x7c2bcb=_0x4ccc5b;const _0x2a99fc=_0x42893f[_0x7c2bcb(0x271)](),_0x8edf28=this[_0x7c2bcb(0x256)][_0x7c2bcb(0x21d)](_0x2a99fc);_0x8edf28==null||_0x8edf28[_0x7c2bcb(0x1fb)]();});}async[_0x1dc1a5(0x24c)](_0x51811d){var _0x7527a2=_0x1dc1a5;const _0x16f683=await this[_0x7527a2(0x1f2)][_0x7527a2(0x28d)](_0x51811d),_0x294384=this['_injector'][_0x7527a2(0x24d)](C,_0x51811d,_0x16f683);return _0x294384['init'](),this[_0x7527a2(0x256)][_0x7527a2(0x1ff)](_0x51811d,_0x294384),_0x294384;}};I=Z([f(0x0,_0x226a9),f(0x1,_0x11836f(_0x152c82)),f(0x2,_0x11836f(_0x59712a))],I);var h=(_0x44dfc3=>(_0x44dfc3['OFFLINE']=_0x1dc1a5(0x224),_0x44dfc3[_0x1dc1a5(0x1f9)]=_0x1dc1a5(0x1e6),_0x44dfc3['FOLLOWING']=_0x1dc1a5(0x1f4),_0x44dfc3[_0x1dc1a5(0x222)]='not-following',_0x44dfc3[_0x1dc1a5(0x1ed)]=_0x1dc1a5(0x23a),_0x44dfc3))(h||{});const Pe=_0x1dc1a5(0x28f),Ae=0xc8;let C=class extends _0x11d7a9{constructor(_0x43949c,_0x1304ef,_0x4391b9,_0x59b486,_0x5ee9f2){var _0xf9101c=_0x1dc1a5;super(),d(this,_0xf9101c(0x27c),new _0x2435f7(_0xf9101c(0x1e6))),d(this,_0xf9101c(0x27a),this[_0xf9101c(0x27c)]['asObservable']()),d(this,_0xf9101c(0x22f),!0x1),d(this,_0xf9101c(0x206),null),d(this,_0xf9101c(0x262),null),(this[_0xf9101c(0x261)]=_0x43949c,this[_0xf9101c(0x210)]=_0x1304ef,this[_0xf9101c(0x25d)]=_0x4391b9,this['_liveShareService']=_0x59b486,this[_0xf9101c(0x272)]=_0x5ee9f2);}get[_0x1dc1a5(0x1e7)](){var _0x23df23=_0x1dc1a5;return this[_0x23df23(0x27c)][_0x23df23(0x20f)]();}[_0x1dc1a5(0x1fb)](){var _0x297721=_0x1dc1a5,_0x41acd1;(_0x41acd1=this[_0x297721(0x206)])==null||_0x41acd1[_0x297721(0x1fb)](),this[_0x297721(0x27c)][_0x297721(0x283)](_0x297721(0x1e6)),this['_status$']['complete']();}[_0x1dc1a5(0x279)](){var _0x2c11d2=_0x1dc1a5;this['_init']||(this[_0x2c11d2(0x22f)]=!0x0,this[_0x2c11d2(0x210)][_0x2c11d2(0x207)][_0x2c11d2(0x26e)](_0x1f583a(this[_0x2c11d2(0x263)]))[_0x2c11d2(0x214)](_0x102abd=>{var _0x2b19b8=_0x2c11d2;switch(_0x102abd){case _0x5cb7e1[_0x2b19b8(0x269)]:this[_0x2b19b8(0x218)]();break;case _0x5cb7e1[_0x2b19b8(0x243)]:this[_0x2b19b8(0x241)]();break;}}),this[_0x2c11d2(0x210)][_0x2c11d2(0x287)][_0x2c11d2(0x26e)](_0x1f583a(this['dispose$']))['subscribe'](_0x4547ff=>{var _0x45c8e2=_0x2c11d2;const {eventID:_0xe78d90}=_0x4547ff;switch(_0xe78d90){case _0x13d362['LIVESHARE_NEW_HOST']:this[_0x45c8e2(0x25a)](_0x4547ff);break;case _0x13d362[_0x45c8e2(0x238)]:this[_0x45c8e2(0x231)](_0x4547ff);break;case _0x13d362[_0x45c8e2(0x25e)]:this['_handleTerminate']();break;case _0x13d362[_0x45c8e2(0x285)]:this[_0x45c8e2(0x23d)](_0x4547ff);break;}}));}[_0x1dc1a5(0x232)](){var _0x2cee79=_0x1dc1a5;this[_0x2cee79(0x210)][_0x2cee79(0x1fd)]({'eventID':_0x13d362[_0x2cee79(0x20d)],'data':{'unitID':this[_0x2cee79(0x261)],'userID':this[_0x2cee79(0x210)][_0x2cee79(0x27f)]()}},this[_0x2cee79(0x261)]);}[_0x1dc1a5(0x21f)](){var _0x556b99=_0x1dc1a5;this['_status']===_0x556b99(0x23a)&&(this['_status$'][_0x556b99(0x283)](_0x556b99(0x1e6)),this['_collabSession']['send']({'eventID':_0x13d362[_0x556b99(0x25e)],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){var _0x12637a=_0x1dc1a5;this['_status']===_0x12637a(0x220)&&(this['_status$'][_0x12637a(0x283)](_0x12637a(0x1f4)),this[_0x12637a(0x260)]());}[_0x1dc1a5(0x277)](){var _0xb7f591=_0x1dc1a5;this[_0xb7f591(0x1e7)]===_0xb7f591(0x1f4)&&this['_stopFollowing']();}[_0x1dc1a5(0x25a)](_0x511865){var _0x4dabc0=_0x1dc1a5;const {presenter:_0x1ed843}=_0x511865[_0x4dabc0(0x258)],_0x1fd176=this[_0x4dabc0(0x210)][_0x4dabc0(0x27f)]();this[_0x4dabc0(0x262)]=_0x1ed843,_0x1ed843===_0x1fd176?(this[_0x4dabc0(0x213)](),this[_0x4dabc0(0x24b)]()):this[_0x4dabc0(0x1e7)]!==_0x4dabc0(0x220)&&(this[_0x4dabc0(0x248)](),this['_startFollowing']());}[_0x1dc1a5(0x203)](){var _0x42d417=_0x1dc1a5;const _0x30f94f={'eventID':_0x13d362[_0x42d417(0x265)]};this[_0x42d417(0x210)][_0x42d417(0x1fd)](_0x30f94f,this[_0x42d417(0x261)]);}[_0x1dc1a5(0x28b)](){var _0x13d04c=_0x1dc1a5;this[_0x13d04c(0x262)]=null,this['_status']!=='presenting'&&this[_0x13d04c(0x23c)]();}[_0x1dc1a5(0x23d)](_0x548e45){var _0x1500d0=_0x1dc1a5;if(this[_0x1500d0(0x1e7)]===_0x1500d0(0x1f4)&&this[_0x1500d0(0x262)]===_0x548e45[_0x1500d0(0x258)][_0x1500d0(0x1e3)]){const _0x3d4d3e=_0x5994b4(_0x548e45[_0x1500d0(0x258)])[_0x1500d0(0x268)]['reverse']()[_0x1500d0(0x24a)](_0x5f2051=>_0x5f2051['id']===_0x277ee5['id']);if(_0x3d4d3e){const _0x2b5839=_0x3d4d3e[_0x1500d0(0x225)][_0x1500d0(0x24e)],_0x3158cd=_0x3d4d3e[_0x1500d0(0x225)][_0x1500d0(0x233)]['id'];setTimeout(()=>{var _0x9b4c99=_0x1500d0;this[_0x9b4c99(0x272)]['executeCommand'](_0x270420['id'],{'unitId':_0x2b5839,'subUnitId':_0x3158cd},{'fromCollab':!0x0});});}}}[_0x1dc1a5(0x24b)](){var _0xda1a23=_0x1dc1a5;this['_status$'][_0xda1a23(0x283)]('presenting');const _0x1cb51a=new Map(),_0x42a9d4=this[_0xda1a23(0x206)]=new _0x41998f();_0x42a9d4[_0xda1a23(0x26c)](_0x461eb5(()=>{var _0x2a6adf=_0xda1a23;_0x1cb51a[_0x2a6adf(0x246)](_0x4adf32=>_0x4adf32[_0x2a6adf(0x28a)]()),_0x1cb51a[_0x2a6adf(0x20b)]();})),_0x42a9d4[_0xda1a23(0x26c)](this['_commandService']['onCommandExecuted'](_0x45eee9=>{var _0x15c325=_0xda1a23,_0x8a6bb1;if(_0x45eee9['type']!==_0x2938bd[_0x15c325(0x245)]||!this[_0x15c325(0x209)][_0x15c325(0x281)](_0x45eee9['id']))return;const {id:_0x5945af}=_0x45eee9;let _0x2ee6cf;_0x1cb51a[_0x15c325(0x1f5)](_0x5945af)?_0x2ee6cf=_0x1cb51a[_0x15c325(0x21d)](_0x5945af):(_0x2ee6cf=new _0x5cd0ad(),_0x1cb51a[_0x15c325(0x1ff)](_0x5945af,_0x2ee6cf),_0x2ee6cf[_0x15c325(0x26e)](_0x2f05e3((_0x8a6bb1=this[_0x15c325(0x25d)]['getConfig'](Pe))!=null?_0x8a6bb1:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x15c325(0x214)](_0x18a91a=>{var _0x4c40ee=_0x15c325;this[_0x4c40ee(0x210)][_0x4c40ee(0x1fd)]({'eventID':_0x13d362['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4c40ee(0x261)],'operations':{[_0x18a91a['id']]:{'id':_0x18a91a['id'],'params':JSON[_0x4c40ee(0x221)](_0x18a91a[_0x4c40ee(0x225)])}}}},this['_unitID']);})),_0x2ee6cf[_0x15c325(0x283)](_0x45eee9);})),this[_0xda1a23(0x209)][_0xda1a23(0x200)](this[_0xda1a23(0x261)])[_0xda1a23(0x246)](_0x1ee8f0=>this[_0xda1a23(0x210)][_0xda1a23(0x1fd)]({'eventID':_0x13d362['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xda1a23(0x261)],'operations':{[_0x1ee8f0['id']]:{'id':_0x1ee8f0['id'],'params':JSON[_0xda1a23(0x221)](_0x1ee8f0[_0xda1a23(0x225)])}}}},this[_0xda1a23(0x261)]));}[_0x1dc1a5(0x248)](){var _0x2f101c=_0x1dc1a5,_0x2dd4f0;this[_0x2f101c(0x27c)][_0x2f101c(0x283)]('idle'),(_0x2dd4f0=this[_0x2f101c(0x206)])==null||_0x2dd4f0[_0x2f101c(0x1fb)](),this['_commandDisposable']=null;}[_0x1dc1a5(0x260)](){var _0x57e0c0=_0x1dc1a5,_0x818fda;(_0x818fda=this[_0x57e0c0(0x206)])==null||_0x818fda[_0x57e0c0(0x1fb)](),this['_status$'][_0x57e0c0(0x283)]('following');}[_0x1dc1a5(0x23c)](){var _0x264ad6=_0x1dc1a5,_0x270446;this[_0x264ad6(0x27c)]['next'](_0x264ad6(0x1e6)),(_0x270446=this[_0x264ad6(0x206)])==null||_0x270446[_0x264ad6(0x1fb)](),this[_0x264ad6(0x206)]=null;}[_0x1dc1a5(0x213)](){var _0x53295a=_0x1dc1a5,_0x296f09;this['_status$'][_0x53295a(0x283)](_0x53295a(0x220)),(_0x296f09=this[_0x53295a(0x206)])==null||_0x296f09[_0x53295a(0x1fb)]();}[_0x1dc1a5(0x231)](_0x58dc90){var _0x554f7b=_0x1dc1a5;if([_0x554f7b(0x23a),_0x554f7b(0x220),_0x554f7b(0x224)][_0x554f7b(0x289)](this[_0x554f7b(0x1e7)])||!_0x58dc90[_0x554f7b(0x258)]['presenter']||_0x58dc90[_0x554f7b(0x258)]['presenter']===this[_0x554f7b(0x210)][_0x554f7b(0x27f)]())return;this['_status']==='idle'&&this[_0x554f7b(0x260)]();const _0x363df3=_0x58dc90[_0x554f7b(0x258)][_0x554f7b(0x1ec)];Object[_0x554f7b(0x229)](_0x363df3)[_0x554f7b(0x246)](_0x4ba255=>{var _0x3dca81=_0x554f7b;this['_commandService'][_0x3dca81(0x26f)](_0x4ba255['id'],_0x4ba255[_0x3dca81(0x225)]?JSON['parse'](_0x4ba255['params']):null,{'fromCollab':!0x0});});}[_0x1dc1a5(0x218)](){var _0x46acff=_0x1dc1a5,_0x31f2b1;this['_status$'][_0x46acff(0x283)]('offline'),(_0x31f2b1=this[_0x46acff(0x206)])==null||_0x31f2b1['dispose']();}[_0x1dc1a5(0x241)](){var _0x783176=_0x1dc1a5;this[_0x783176(0x27c)]['next'](_0x783176(0x1e6)),this[_0x783176(0x203)]();}};C=Z([f(0x2,_0xc56c8e),f(0x3,_0x11836f(L)),f(0x4,_0x5744d9)],C);function Te(){var _0x5bd601=_0x1dc1a5;const _0x1ba137=_0x3057c1(I),_0x546857=_0x3057c1(_0x226a9),_0xe6e66=_0x4ac25f(()=>_0x546857['getCurrentTypeOfUnit$'](_0xf3e818['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x14565d,_0x4df942]=_0x1d678d(null),[_0x1d04e7,_0x54ecd5]=_0x1d678d(h['IDLE']),_0x2c669f=_0x1e681e(null);return _0x30112b(()=>(_0xe6e66&&_0x1ba137[_0x5bd601(0x1e9)](_0xe6e66[_0x5bd601(0x271)]())['then'](_0x2e8864=>{var _0x591b17=_0x5bd601;_0x4df942(_0x2e8864),_0x2c669f[_0x591b17(0x22e)]=_0x2e8864[_0x591b17(0x27a)]['subscribe'](_0x49db83=>{_0x54ecd5(_0x49db83);});}),()=>{var _0x4590de=_0x5bd601,_0x257143;(_0x257143=_0x2c669f[_0x4590de(0x22e)])==null||_0x257143[_0x4590de(0x223)](),_0x2c669f[_0x4590de(0x22e)]=null;}),[_0xe6e66,_0x1ba137]),_0x14565d?_0x27cd08(_0x10ef05,{'align':'end','disabled':_0x1d04e7===h[_0x5bd601(0x269)],'className':_0x5bd601(0x215),'overlay':_0x27cd08($e,{'status':_0x1d04e7,'coordinator':_0x14565d}),'children':_0x27cd08(_0x5bd601(0x239),{'className':_0x4e6eb8(_0x5bd601(0x1e1),{'univer-cursor-not-allowed':_0x1d04e7===h[_0x5bd601(0x269)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d04e7!==h[_0x5bd601(0x269)]}),'type':_0x5bd601(0x239),'children':_0x27cd08(B,{'className':_0x5bd601(0x21c)})})}):null;}function $e(_0x81be61){var _0x323e16=_0x1dc1a5;const {status:_0x2fd48e,coordinator:_0x10994b}=_0x81be61;switch(_0x2fd48e){case h[_0x323e16(0x1f9)]:return _0x27cd08(Fe,{'coordinator':_0x10994b});case h[_0x323e16(0x257)]:return _0x27cd08(He,{'coordinator':_0x10994b});case h[_0x323e16(0x222)]:return _0x27cd08(je,{'coordinator':_0x10994b});case h[_0x323e16(0x269)]:return _0x27cd08(Ve,{});case h['PRESENTING']:return _0x27cd08(Ue,{'coordinator':_0x10994b});default:return null;}}function Fe(_0x4ceb91){var _0x3de3bb=_0x1dc1a5;const {coordinator:_0x4c6c4a}=_0x4ceb91;return _0x27a89c(_0x1b8ec2,{'children':[_0x27cd08(_0x3de3bb(0x235),{'className':_0x3de3bb(0x244),'children':_0x3de3bb(0x26d)}),_0x27cd08(_0x1ecb1d,{'onClick':()=>_0x4c6c4a[_0x3de3bb(0x232)](),'children':_0x3de3bb(0x1f0)})]});}function He(_0x4d973b){var _0xbb5e41=_0x1dc1a5;const {coordinator:_0x15c2d9}=_0x4d973b;return _0x27a89c(_0x1b8ec2,{'children':[_0x27cd08(_0xbb5e41(0x235),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xbb5e41(0x1dc)}),_0x27cd08(_0x1ecb1d,{'onClick':()=>_0x15c2d9['stopFollowing'](),'children':_0xbb5e41(0x247)})]});}function je(_0xe328e6){var _0x259839=_0x1dc1a5;const {coordinator:_0x43b13d}=_0xe328e6;return _0x27a89c(_0x1b8ec2,{'children':[_0x27cd08(_0x259839(0x235),{'className':_0x259839(0x244),'children':_0x259839(0x211)}),_0x27cd08(_0x1ecb1d,{'variant':_0x259839(0x205),'onClick':()=>_0x43b13d[_0x259839(0x278)](),'children':'Start\x20following'})]});}function Ue(_0x58fb52){var _0x26c039=_0x1dc1a5;const {coordinator:_0x116d2e}=_0x58fb52;return _0x27a89c(_0x1b8ec2,{'children':[_0x27cd08(_0x26c039(0x235),{'className':_0x26c039(0x244),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x27cd08(_0x1ecb1d,{'variant':'default','onClick':()=>_0x116d2e[_0x26c039(0x21f)](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x27cd08(_0x1b8ec2,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0xbf3b1a,_0x53250a,_0x237309,_0x2af3f6)=>{var _0xc7381f=_0x1dc1a5;for(var _0x165fb1=_0x2af3f6>0x1?void 0x0:_0x2af3f6?Me(_0x53250a,_0x237309):_0x53250a,_0x11aafc=_0xbf3b1a[_0xc7381f(0x208)]-0x1,_0x40275f;_0x11aafc>=0x0;_0x11aafc--)(_0x40275f=_0xbf3b1a[_0x11aafc])&&(_0x165fb1=_0x40275f(_0x165fb1)||_0x165fb1);return _0x165fb1;},$=(_0x6353cd,_0x1c8ca9)=>(_0x3f568a,_0x1ade42)=>_0x1c8ca9(_0x3f568a,_0x1ade42,_0x6353cd);let b=class extends _0x3cc522{constructor(_0x49fa0a,_0x27d195){var _0x35f697=_0x1dc1a5;super(),this[_0x35f697(0x250)]=_0x49fa0a,this[_0x35f697(0x217)]=_0x27d195,this[_0x35f697(0x286)]();}['_mountLiveShare'](){var _0x538cec=_0x1dc1a5;this[_0x538cec(0x282)](this[_0x538cec(0x217)][_0x538cec(0x267)](_0x90734a[_0x538cec(0x26a)],()=>_0xdd594f(Te,this[_0x538cec(0x250)])));}};b=ke([$(0x0,_0x11836f(_0x152c82)),$(0x1,_0x472415)],b);function _0x9a5a(_0x417cd0,_0x5be246){var _0x2d1be7=_0x2d1b();return _0x9a5a=function(_0x9a5a44,_0x255086){_0x9a5a44=_0x9a5a44-0x1dc;var _0x536074=_0x2d1be7[_0x9a5a44];return _0x536074;},_0x9a5a(_0x417cd0,_0x5be246);}var Ge=Object[_0x1dc1a5(0x1f7)],We=Object[_0x1dc1a5(0x28e)],Ye=(_0x54685d,_0x1c84ff,_0x35efcd)=>_0x1c84ff in _0x54685d?Ge(_0x54685d,_0x1c84ff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35efcd}):_0x54685d[_0x1c84ff]=_0x35efcd,Be=(_0x30fece,_0xe54ba2,_0x520247,_0x2dbfff)=>{var _0x59e07b=_0x1dc1a5;for(var _0x40f40c=_0x2dbfff>0x1?void 0x0:_0x2dbfff?We(_0xe54ba2,_0x520247):_0xe54ba2,_0x2b0977=_0x30fece[_0x59e07b(0x208)]-0x1,_0x2cb4a7;_0x2b0977>=0x0;_0x2b0977--)(_0x2cb4a7=_0x30fece[_0x2b0977])&&(_0x40f40c=_0x2cb4a7(_0x40f40c)||_0x40f40c);return _0x40f40c;},F=(_0x35cd9e,_0x443b1b)=>(_0x462fa5,_0x40bf02)=>_0x443b1b(_0x462fa5,_0x40bf02,_0x35cd9e),J=(_0x1990ba,_0x38b124,_0x2c17ee)=>Ye(_0x1990ba,typeof _0x38b124!=_0x1dc1a5(0x273)?_0x38b124+'':_0x38b124,_0x2c17ee);const Ze=_0x1dc1a5(0x21b);let O=class extends _0x24b3db{constructor(_0x292110=T,_0x272aba,_0x5ea17c){var _0x50295a=_0x1dc1a5;super(),this[_0x50295a(0x202)]=_0x292110,this[_0x50295a(0x250)]=_0x272aba,this[_0x50295a(0x25d)]=_0x5ea17c;const {..._0xb9c6ab}=_0xe275a6({},T,this[_0x50295a(0x202)]);this[_0x50295a(0x25d)][_0x50295a(0x1ea)](Oe,_0xb9c6ab);}[_0x1dc1a5(0x201)](){var _0x10578c=_0x1dc1a5;_0x5dc9fe(this[_0x10578c(0x250)],_0x4e2a80([[L],[I],[m],[b]],this['_config'][_0x10578c(0x23b)])),_0x1369ca(this['_injector'],[[m]]);}[_0x1dc1a5(0x227)](){var _0x1c0858=_0x1dc1a5;_0x1369ca(this[_0x1c0858(0x250)],[[b]]);}};J(O,_0x1dc1a5(0x1f6),_0xf3e818['UNIVER_UNKNOWN']),J(O,_0x1dc1a5(0x284),Ze),O=Be([_0x584176(_0x37ee2a),F(0x1,_0x11836f(_0x152c82)),F(0x2,_0xc56c8e)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3f5e(_0x14ca53,_0x25a155){var _0x3ed618=_0x3ed6();return _0x3f5e=function(_0x3f5e18,_0x3da711){_0x3f5e18=_0x3f5e18-0x10b;var _0x28b73f=_0x3ed618[_0x3f5e18];return _0x28b73f;},_0x3f5e(_0x14ca53,_0x25a155);}function _0x3ed6(){var _0x511025=['startFollowing','_handleNewChangeSets','forEach','idSuffix','jsxs','SessionStatus','has','currentColor','onRendered','toDisposable','UniverProCollaborationClient','_entities','getLiveShareCoordinator','rxjs','_handleOffline','getConfig','pluginName','univerjs-icon\x20univerjs-icon-','length','getMemberID','_status$','UNIVER_LIVE_SHARE_PLUGIN','FOLLOWING','Present\x20this\x20document','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','21MLyzRr','univer-mb-3\x20univer-w-full\x20univer-text-sm','delete','@univerjs/ui','0\x200\x2017\x2017','evenodd','rxjs/operators','fill','operations','_startPresenting','function','registerSharedOperation','button','_status','1em','Fragment','LIVESHARE_FETCH_OPERATIONS','subscribe','CollaborationEvent','replace','453905aVanRS','_injector','div','mergeOverrideWithDependencies','symbol','defIds','SetZoomRatioOperation','_commandDisposable','call','current','624464FzyGec','UniverLiveSharePlugin','then','UNIVER_UNKNOWN','UniverIcon','UniverDesign','Subject','react','_configService','useDependency','children','_fetchOperations','115482lIVNrV','icon','touchDependencies','set','UNIVER_SHEET','dispose$','react/jsx-runtime','takeUntil','values','executeCommand','attrs','LIVESHARE_REQUEST_HOST','Disposable','next','Inject','disposeWithMe','InsertSheetMutation','IConfigService','presenter','tryStartPresenting','You\x27are\x20offline.','pipe','getOwnPropertySymbols','Stop\x20presenting','offline','_handleOnline','defineProperty','Plugin','includes','Dropdown','stopPresenting','OPERATION','mutations','Module','LiveShareCoordinator','mask','Injector','path','onCommandExecuted','sheet','@univerjs/core','@univerjs-pro/collaboration-client','following','useState','10FwbMSM','clsx','_handleNewHost','React','DependentOn','shouldShareOperation','_collabSessionService','@univerjs/design','IDLE','DisposableCollection','UniverProCollaboration','@univerjs/sheets','getTypeOfUnitAdded$','You\x27re\x20not\x20following\x20the\x20presenter','OFFLINE','1NQvqrY','url(#$1','LIVESHARE_TERMINATE','univer-size-4','prototype','forwardRef','BuiltInUIPart','toString','152832Jwivua','_startFollowing','_unitID','_uiPartsService','map','displayName','registerDependencies','_presenter','LiveShareService','getUnitId','memberID','UniverCollaborationClientPlugin','toStringTag','_liveShareService','_mountLiveShare','amd','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','SetScrollOperation','ONLINE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','data','clear','createElement','parse','You\x27re\x20following\x20the\x20presenter','18ZKdHVp','complete','_stopFollowing','LiveShareController','registerComponent','SAME_OPERATION_SHARE_INTERVAL','UniverInstanceType','send','connectInjector','init','SetWorksheetActiveOperation','apply','_commandService','541833iXUmKc','LiveShareIcon','NEW_CHANGESETS','_collabSession','substring','DesktopLiveShareController','assign','colorChannel1','get','string','RxDisposable','add','_init','getValue','stringify','extend','getOwnPropertyDescriptor','asObservable','type','11443399IvdjsS','http://www.w3.org/2000/svg','LiveShareStatus','unitId','ICommandService','createInstance','IUniverInstanceService','not-following','idle','getInitialStates','registerInitialStateReporter','use','exports','stopFollowing','_handleOperation','xlink:href','dispose','concat','none','@univerjs-pro/collaboration','params','_sharedOperations','_config','jsx','Button','CommandType','event$','UniverUi','operators','@univerjs/sheets-ui','_beIdle','1464864BdlOwi','_stopPresenting','UniverProLiveShare','from','_reporters','getCurrentTypeOfUnit$','_handleTerminate','UniverCore','onStarting','unsubscribe','className','_univerInstanceService','entries','PRESENTING','hasOwnProperty','indexOf','reverse','random','LIVESHARE_OPERATION','text','presenting','propertyIsEnumerable','tag','_startLiveShareCoordinator'];_0x3ed6=function(){return _0x511025;};return _0x3ed6();}(function(_0x1f05d,_0x494e7c){var _0x5ae228=_0x3f5e,_0x2ac343=_0x1f05d();while(!![]){try{var _0x4dfa93=parseInt(_0x5ae228(0x1ab))/0x1*(-parseInt(_0x5ae228(0x164))/0x2)+-parseInt(_0x5ae228(0x1d9))/0x3+parseInt(_0x5ae228(0x1b3))/0x4+parseInt(_0x5ae228(0x15a))/0x5+-parseInt(_0x5ae228(0x170))/0x6*(parseInt(_0x5ae228(0x146))/0x7)+parseInt(_0x5ae228(0x115))/0x8*(-parseInt(_0x5ae228(0x1cc))/0x9)+-parseInt(_0x5ae228(0x19c))/0xa*(-parseInt(_0x5ae228(0x1ec))/0xb);if(_0x4dfa93===_0x494e7c)break;else _0x2ac343['push'](_0x2ac343['shift']());}catch(_0xa621e5){_0x2ac343['push'](_0x2ac343['shift']());}}}(_0x3ed6,0x3da52),function(_0x21b7a3,_0x24e811){var _0x3ee9b7=_0x3f5e;typeof exports=='object'&&typeof module<'u'?_0x24e811(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define[_0x3ee9b7(0x1c2)]?define([_0x3ee9b7(0x1f8),_0x3ee9b7(0x199),_0x3ee9b7(0x198),_0x3ee9b7(0x1a7),_0x3ee9b7(0x113),_0x3ee9b7(0x149),_0x3ee9b7(0x176),_0x3ee9b7(0x1a3),_0x3ee9b7(0x16b),_0x3ee9b7(0x1ff),_0x3ee9b7(0x13a),_0x3ee9b7(0x14c)],_0x24e811):(_0x21b7a3=typeof globalThis<'u'?globalThis:_0x21b7a3||self,_0x24e811(_0x21b7a3[_0x3ee9b7(0x117)]={},_0x21b7a3[_0x3ee9b7(0x137)],_0x21b7a3[_0x3ee9b7(0x11c)],_0x21b7a3['UniverSheets'],_0x21b7a3['UniverSheetsUi'],_0x21b7a3[_0x3ee9b7(0x111)],_0x21b7a3['React'],_0x21b7a3[_0x3ee9b7(0x169)],_0x21b7a3[_0x3ee9b7(0x19f)],_0x21b7a3[_0x3ee9b7(0x1a6)],_0x21b7a3[_0x3ee9b7(0x13a)],_0x21b7a3[_0x3ee9b7(0x13a)][_0x3ee9b7(0x112)]));}(this,function(_0x44f3a8,_0x598f9c,_0x4ebaac,_0x5878d7,_0x2c2542,_0x3fe163,_0x188f3b,_0x28e95d,_0x4a9025,_0xd68e15,_0x48f808,_0x39907e){'use strict';var _0x521f78=_0x3f5e;var _0x55965c=Object['defineProperty'],_0x42612a=(_0x31ca77,_0x67b37c,_0x1e7709)=>_0x67b37c in _0x31ca77?_0x55965c(_0x31ca77,_0x67b37c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e7709}):_0x31ca77[_0x67b37c]=_0x1e7709,_0x4fb07b=(_0x942a88,_0x97cf47,_0x2d58ad)=>_0x42612a(_0x942a88,typeof _0x97cf47!=_0x521f78(0x15e)?_0x97cf47+'':_0x97cf47,_0x2d58ad);const _0x2f7901='live-share.config',_0x1bc865={};class _0x3c6cc2 extends _0x4ebaac[_0x521f78(0x17c)]{constructor(){var _0x2c646b=_0x521f78;super(...arguments),_0x4fb07b(this,_0x2c646b(0x10b),new Set()),_0x4fb07b(this,_0x2c646b(0x119),new Set());}[_0x521f78(0x151)](_0x2cee9c){var _0x226bf9=_0x521f78;return this[_0x226bf9(0x10b)][_0x226bf9(0x1e4)](_0x2cee9c),_0x4ebaac[_0x226bf9(0x136)](()=>this[_0x226bf9(0x10b)][_0x226bf9(0x148)](_0x2cee9c));}[_0x521f78(0x1f6)](_0x3df013){var _0x2bbfb1=_0x521f78;return this[_0x2bbfb1(0x119)][_0x2bbfb1(0x1e4)](_0x3df013),_0x4ebaac[_0x2bbfb1(0x136)](()=>this['_reporters']['delete'](_0x3df013));}[_0x521f78(0x1a1)](_0x1bd331){var _0x148e42=_0x521f78;return this[_0x148e42(0x10b)][_0x148e42(0x133)](_0x1bd331);}['getInitialStates'](_0x276ff6){var _0x47ee97=_0x521f78;return Array[_0x47ee97(0x118)](this[_0x47ee97(0x119)])[_0x47ee97(0x1b7)](_0xed1d21=>_0xed1d21(_0x276ff6));}}var _0x406118=Object['getOwnPropertyDescriptor'],_0x56e525=(_0x433c31,_0x33934c,_0x22b092,_0x34294e)=>{var _0x3184a4=_0x521f78;for(var _0x59e6f0=_0x34294e>0x1?void 0x0:_0x34294e?_0x406118(_0x33934c,_0x22b092):_0x33934c,_0x339e8f=_0x433c31[_0x3184a4(0x13f)]-0x1,_0x596df5;_0x339e8f>=0x0;_0x339e8f--)(_0x596df5=_0x433c31[_0x339e8f])&&(_0x59e6f0=_0x596df5(_0x59e6f0)||_0x59e6f0);return _0x59e6f0;},_0x2e9be9=(_0x4b4534,_0x336642)=>(_0x34dc70,_0x364262)=>_0x336642(_0x34dc70,_0x364262,_0x4b4534);let _0x44c560=class extends _0x4ebaac[_0x521f78(0x17c)]{constructor(_0x105137){var _0x5245dc=_0x521f78;super(),this[_0x5245dc(0x1c0)]=_0x105137,this[_0x5245dc(0x1e5)]();}['_init'](){var _0x5d1a67=_0x521f78;[_0x2c2542[_0x5d1a67(0x160)]['id'],_0x2c2542[_0x5d1a67(0x1c4)]['id'],_0x5878d7[_0x5d1a67(0x1d6)]['id']][_0x5d1a67(0x12f)](_0x2b596d=>{var _0xb31019=_0x5d1a67;this[_0xb31019(0x17f)](this[_0xb31019(0x1c0)][_0xb31019(0x151)](_0x2b596d));});}};_0x44c560=_0x56e525([_0x2e9be9(0x0,_0x4ebaac[_0x521f78(0x17e)](_0x3c6cc2))],_0x44c560);var _0x48729d=function(){var _0x49bea2=_0x521f78;return _0x48729d=Object['assign']||function(_0x5893d4){var _0x21fed1=_0x3f5e;for(var _0x193a05,_0xd6a252=0x1,_0x3a1082=arguments['length'];_0xd6a252<_0x3a1082;_0xd6a252++){_0x193a05=arguments[_0xd6a252];for(var _0x5513be in _0x193a05)Object[_0x21fed1(0x1af)][_0x21fed1(0x123)]['call'](_0x193a05,_0x5513be)&&(_0x5893d4[_0x5513be]=_0x193a05[_0x5513be]);}return _0x5893d4;},_0x48729d[_0x49bea2(0x1d7)](this,arguments);},_0x50460e=function(_0x212b58,_0x27b6ce){var _0x4603f2=_0x521f78,_0x28eac8={};for(var _0x18389f in _0x212b58)Object[_0x4603f2(0x1af)][_0x4603f2(0x123)][_0x4603f2(0x162)](_0x212b58,_0x18389f)&&_0x27b6ce[_0x4603f2(0x124)](_0x18389f)<0x0&&(_0x28eac8[_0x18389f]=_0x212b58[_0x18389f]);if(_0x212b58!=null&&typeof Object['getOwnPropertySymbols']==_0x4603f2(0x150)){for(var _0x72671e=0x0,_0x18389f=Object[_0x4603f2(0x186)](_0x212b58);_0x72671e<_0x18389f['length'];_0x72671e++)_0x27b6ce[_0x4603f2(0x124)](_0x18389f[_0x72671e])<0x0&&Object[_0x4603f2(0x1af)][_0x4603f2(0x12a)]['call'](_0x212b58,_0x18389f[_0x72671e])&&(_0x28eac8[_0x18389f[_0x72671e]]=_0x212b58[_0x18389f[_0x72671e]]);}return _0x28eac8;},_0x1ed935=_0x4a9025[_0x521f78(0x1b0)](function(_0x4a236e,_0x13423f){var _0x5f3044=_0x521f78,_0x5ad5a6=_0x4a236e[_0x5f3044(0x171)],_0x23acbe=_0x4a236e['id'],_0x1da5d7=_0x4a236e[_0x5f3044(0x11f)],_0x4bbba0=_0x4a236e['extend'],_0x5c804c=_0x50460e(_0x4a236e,[_0x5f3044(0x171),'id','className',_0x5f3044(0x1e8)]),_0x123d13=_0x5f3044(0x13e)[_0x5f3044(0x1fd)](_0x23acbe,'\x20')[_0x5f3044(0x1fd)](_0x1da5d7||'')['trim'](),_0x201aef=_0x4a9025['useRef']('_'[_0x5f3044(0x1fd)](_0x2d0674()));return _0x5babbc(_0x5ad5a6,''['concat'](_0x23acbe),{'defIds':_0x5ad5a6[_0x5f3044(0x15f)],'idSuffix':_0x201aef[_0x5f3044(0x163)]},_0x48729d({'ref':_0x13423f,'className':_0x123d13},_0x5c804c),_0x4bbba0);});function _0x5babbc(_0x484215,_0x49832d,_0x4fa994,_0x2bc937,_0x19b170){var _0x19b50b=_0x521f78;return _0x4a9025[_0x19b50b(0x1c9)](_0x484215['tag'],_0x48729d(_0x48729d({'key':_0x49832d},_0x5cc381(_0x484215,_0x4fa994,_0x19b170)),_0x2bc937),(_0x410235(_0x484215,_0x4fa994)[_0x19b50b(0x16e)]||[])[_0x19b50b(0x1b7)](function(_0x51c7ba,_0x3192d4){var _0x5de06a=_0x19b50b;return _0x5babbc(_0x51c7ba,''[_0x5de06a(0x1fd)](_0x49832d,'-')[_0x5de06a(0x1fd)](_0x484215[_0x5de06a(0x12b)],'-')[_0x5de06a(0x1fd)](_0x3192d4),_0x4fa994,void 0x0,_0x19b170);}));}function _0x5cc381(_0x404d1f,_0xa4c63e,_0x29c53c){var _0x5e750c=_0x521f78,_0x306181=_0x48729d({},_0x404d1f[_0x5e750c(0x17a)]);_0x29c53c!=null&&_0x29c53c[_0x5e750c(0x1e0)]&&_0x306181[_0x5e750c(0x14d)]===_0x5e750c(0x1e0)&&(_0x306181[_0x5e750c(0x14d)]=_0x29c53c[_0x5e750c(0x1e0)]),_0x404d1f['tag']===_0x5e750c(0x193)&&_0x306181['id']&&(_0x306181['id']=_0x306181['id']+_0xa4c63e[_0x5e750c(0x130)]),Object['entries'](_0x306181)['forEach'](function(_0x5d4b8a){var _0x25472f=_0x5e750c,_0x5f0850=_0x5d4b8a[0x0],_0x5c4dde=_0x5d4b8a[0x1];_0x5f0850===_0x25472f(0x193)&&typeof _0x5c4dde==_0x25472f(0x1e2)&&(_0x306181[_0x5f0850]=_0x5c4dde[_0x25472f(0x159)](/url\(#(.*)\)/,'url(#$1'[_0x25472f(0x1fd)](_0xa4c63e['idSuffix'],')')));});var _0x372a04=_0xa4c63e[_0x5e750c(0x15f)];return!_0x372a04||_0x372a04[_0x5e750c(0x13f)]===0x0||(_0x404d1f[_0x5e750c(0x12b)]===_0x5e750c(0x1f7)&&_0x306181[_0x5e750c(0x1fb)]&&(_0x306181['xlink:href']=_0x306181[_0x5e750c(0x1fb)]+_0xa4c63e[_0x5e750c(0x130)]),Object[_0x5e750c(0x121)](_0x306181)[_0x5e750c(0x12f)](function(_0x4312e9){var _0x353d47=_0x5e750c,_0x55d618=_0x4312e9[0x0],_0x836f34=_0x4312e9[0x1];typeof _0x836f34==_0x353d47(0x1e2)&&(_0x306181[_0x55d618]=_0x836f34[_0x353d47(0x159)](/url\(#(.*)\)/,_0x353d47(0x1ac)[_0x353d47(0x1fd)](_0xa4c63e['idSuffix'],')')));})),_0x306181;}function _0x410235(_0x11c03b,_0x3d753b){var _0x5c5985=_0x521f78,_0x43f511,_0x439f80=_0x3d753b['defIds'];return!_0x439f80||_0x439f80[_0x5c5985(0x13f)]===0x0?_0x11c03b:_0x11c03b[_0x5c5985(0x12b)]==='defs'&&(!((_0x43f511=_0x11c03b[_0x5c5985(0x16e)])===null||_0x43f511===void 0x0)&&_0x43f511[_0x5c5985(0x13f)])?_0x48729d(_0x48729d({},_0x11c03b),{'children':_0x11c03b['children'][_0x5c5985(0x1b7)](function(_0x124a5c){var _0x11e53a=_0x5c5985;return typeof _0x124a5c[_0x11e53a(0x17a)]['id']=='string'&&_0x439f80&&_0x439f80[_0x11e53a(0x18c)](_0x124a5c[_0x11e53a(0x17a)]['id'])?_0x48729d(_0x48729d({},_0x124a5c),{'attrs':_0x48729d(_0x48729d({},_0x124a5c[_0x11e53a(0x17a)]),{'id':_0x124a5c[_0x11e53a(0x17a)]['id']+_0x3d753b[_0x11e53a(0x130)]})}):_0x124a5c;})}):_0x11c03b;}function _0x2d0674(){var _0x19b554=_0x521f78;return Math[_0x19b554(0x126)]()[_0x19b554(0x1b2)](0x24)[_0x19b554(0x1dd)](0x2,0x8);}_0x1ed935[_0x521f78(0x1b8)]=_0x521f78(0x168);var _0x42aab3={'tag':'svg','attrs':{'xmlns':_0x521f78(0x1ed),'fill':_0x521f78(0x1fe),'viewBox':_0x521f78(0x14a),'width':_0x521f78(0x154),'height':_0x521f78(0x154)},'children':[{'tag':_0x521f78(0x195),'attrs':{'fill':_0x521f78(0x134),'d':_0x521f78(0x145)}},{'tag':_0x521f78(0x195),'attrs':{'fill':'currentColor','d':_0x521f78(0x1c3),'fillRule':_0x521f78(0x14b),'clipRule':_0x521f78(0x14b)}}]},_0x80640=_0x4a9025[_0x521f78(0x1b0)](function(_0x4f6fa5,_0x528e5e){var _0x26dbec=_0x521f78;return _0x4a9025[_0x26dbec(0x1c9)](_0x1ed935,Object[_0x26dbec(0x1df)]({},_0x4f6fa5,{'id':'live-share-icon','ref':_0x528e5e,'icon':_0x42aab3}));});_0x80640['displayName']=_0x521f78(0x1da);var _0x9c66c=Object['getOwnPropertyDescriptor'],_0x21a1a6=(_0x35c149,_0x262005,_0x46afcb,_0x1d0162)=>{var _0x32f041=_0x521f78;for(var _0xcfd0d=_0x1d0162>0x1?void 0x0:_0x1d0162?_0x9c66c(_0x262005,_0x46afcb):_0x262005,_0x2da573=_0x35c149[_0x32f041(0x13f)]-0x1,_0x48c0ab;_0x2da573>=0x0;_0x2da573--)(_0x48c0ab=_0x35c149[_0x2da573])&&(_0xcfd0d=_0x48c0ab(_0xcfd0d)||_0xcfd0d);return _0xcfd0d;},_0x41f40c=(_0x1499ad,_0x316714)=>(_0x101a5a,_0xaa4a27)=>_0x316714(_0x101a5a,_0xaa4a27,_0x1499ad);_0x44f3a8[_0x521f78(0x1cf)]=class extends _0x4ebaac[_0x521f78(0x1e3)]{constructor(_0x2cdc6c,_0x58f3d1,_0x3d3e6b){var _0x5cc7c7=_0x521f78;super(),_0x4fb07b(this,_0x5cc7c7(0x138),new Map()),(this[_0x5cc7c7(0x120)]=_0x2cdc6c,this[_0x5cc7c7(0x15b)]=_0x58f3d1,this[_0x5cc7c7(0x1a2)]=_0x3d3e6b,this['_init']());}async[_0x521f78(0x139)](_0x27d78b){var _0x58b218=_0x521f78;return this[_0x58b218(0x138)][_0x58b218(0x133)](_0x27d78b)||await this[_0x58b218(0x12c)](_0x27d78b),this['_entities'][_0x58b218(0x1e1)](_0x27d78b);}['_init'](){var _0x52515a=_0x521f78;this[_0x52515a(0x120)][_0x52515a(0x1a8)](_0x4ebaac[_0x52515a(0x1d2)][_0x52515a(0x174)])['pipe'](_0x39907e[_0x52515a(0x177)](this['dispose$']))[_0x52515a(0x157)](async _0xafc298=>{var _0x42b0c6=_0x52515a;const _0x5f1634=_0xafc298[_0x42b0c6(0x1bc)]();this[_0x42b0c6(0x138)][_0x42b0c6(0x133)](_0x5f1634)||this[_0x42b0c6(0x12c)](_0x5f1634);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4ebaac[_0x52515a(0x1d2)]['UNIVER_SHEET'])[_0x52515a(0x185)](_0x39907e[_0x52515a(0x177)](this[_0x52515a(0x175)]))[_0x52515a(0x157)](_0x59a686=>{var _0x3a679c=_0x52515a;const _0x2d2e65=_0x59a686[_0x3a679c(0x1bc)](),_0x354d92=this['_entities']['get'](_0x2d2e65);_0x354d92==null||_0x354d92[_0x3a679c(0x1fc)]();});}async['_startLiveShareCoordinator'](_0x585f5f){var _0x2630c6=_0x521f78;const _0x5ceb36=await this['_collabSessionService']['requireSession'](_0x585f5f),_0x17846f=this[_0x2630c6(0x15b)][_0x2630c6(0x1f1)](_0x44f3a8[_0x2630c6(0x192)],_0x585f5f,_0x5ceb36);return _0x17846f['init'](),this['_entities'][_0x2630c6(0x173)](_0x585f5f,_0x17846f),_0x17846f;}},_0x44f3a8[_0x521f78(0x1cf)]=_0x21a1a6([_0x41f40c(0x0,_0x4ebaac[_0x521f78(0x1f2)]),_0x41f40c(0x1,_0x4ebaac['Inject'](_0x4ebaac[_0x521f78(0x194)])),_0x41f40c(0x2,_0x4ebaac['Inject'](_0x598f9c['CollaborationSessionService']))],_0x44f3a8[_0x521f78(0x1cf)]);var _0xd09a76=(_0x526b8c=>(_0x526b8c['OFFLINE']=_0x521f78(0x188),_0x526b8c[_0x521f78(0x1a4)]=_0x521f78(0x1f4),_0x526b8c[_0x521f78(0x143)]='following',_0x526b8c['NOT_FOLLOWING']=_0x521f78(0x1f3),_0x526b8c[_0x521f78(0x122)]=_0x521f78(0x129),_0x526b8c))(_0xd09a76||{});const _0x537cfc=_0x521f78(0x1d1),_0x10aaa4=0xc8;_0x44f3a8[_0x521f78(0x192)]=class extends _0x4ebaac[_0x521f78(0x1e3)]{constructor(_0x3f9f1c,_0x3c6e85,_0x915bd8,_0x3476c4,_0x1fb5fd){var _0x3e1a9b=_0x521f78;super(),_0x4fb07b(this,_0x3e1a9b(0x141),new _0x48f808['BehaviorSubject'](_0x3e1a9b(0x1f4))),_0x4fb07b(this,'status$',this[_0x3e1a9b(0x141)][_0x3e1a9b(0x1ea)]()),_0x4fb07b(this,'_init',!0x1),_0x4fb07b(this,'_commandDisposable',null),_0x4fb07b(this,_0x3e1a9b(0x1ba),null),(this[_0x3e1a9b(0x1b5)]=_0x3f9f1c,this[_0x3e1a9b(0x1dc)]=_0x3c6e85,this['_configService']=_0x915bd8,this['_liveShareService']=_0x3476c4,this[_0x3e1a9b(0x1d8)]=_0x1fb5fd);}get[_0x521f78(0x153)](){var _0x472efb=_0x521f78;return this['_status$'][_0x472efb(0x1e6)]();}[_0x521f78(0x1fc)](){var _0x406073=_0x521f78,_0x368827;(_0x368827=this['_commandDisposable'])==null||_0x368827[_0x406073(0x1fc)](),this['_status$']['next'](_0x406073(0x1f4)),this[_0x406073(0x141)][_0x406073(0x1cd)]();}[_0x521f78(0x1d5)](){var _0x8a64e9=_0x521f78;this[_0x8a64e9(0x1e5)]||(this[_0x8a64e9(0x1e5)]=!0x0,this['_collabSession']['sessionStatus$'][_0x8a64e9(0x185)](_0x39907e[_0x8a64e9(0x177)](this['dispose$']))[_0x8a64e9(0x157)](_0x35dbdd=>{var _0x4fcd0b=_0x8a64e9;switch(_0x35dbdd){case _0x598f9c[_0x4fcd0b(0x132)][_0x4fcd0b(0x1aa)]:this['_handleOffline']();break;case _0x598f9c[_0x4fcd0b(0x132)][_0x4fcd0b(0x1c5)]:this[_0x4fcd0b(0x189)]();break;}}),this[_0x8a64e9(0x1dc)][_0x8a64e9(0x110)][_0x8a64e9(0x185)](_0x39907e[_0x8a64e9(0x177)](this[_0x8a64e9(0x175)]))[_0x8a64e9(0x157)](_0x36e89e=>{var _0x581a9f=_0x8a64e9;const {eventID:_0x276393}=_0x36e89e;switch(_0x276393){case _0xd68e15['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x581a9f(0x19e)](_0x36e89e);break;case _0xd68e15['CollaborationEvent'][_0x581a9f(0x127)]:this[_0x581a9f(0x1fa)](_0x36e89e);break;case _0xd68e15[_0x581a9f(0x158)][_0x581a9f(0x1ad)]:this[_0x581a9f(0x11b)]();break;case _0xd68e15[_0x581a9f(0x158)][_0x581a9f(0x1db)]:this[_0x581a9f(0x12e)](_0x36e89e);break;}}));}[_0x521f78(0x183)](){var _0x5b6425=_0x521f78;this[_0x5b6425(0x1dc)]['send']({'eventID':_0xd68e15[_0x5b6425(0x158)][_0x5b6425(0x17b)],'data':{'unitID':this[_0x5b6425(0x1b5)],'userID':this[_0x5b6425(0x1dc)][_0x5b6425(0x140)]()}},this[_0x5b6425(0x1b5)]);}[_0x521f78(0x18e)](){var _0x2ecec1=_0x521f78;this['_status']===_0x2ecec1(0x129)&&(this['_status$'][_0x2ecec1(0x17d)](_0x2ecec1(0x1f4)),this[_0x2ecec1(0x1dc)][_0x2ecec1(0x1d3)]({'eventID':_0xd68e15['CollaborationEvent'][_0x2ecec1(0x1ad)],'data':{'unitID':this[_0x2ecec1(0x1b5)]}},this[_0x2ecec1(0x1b5)]));}['startFollowing'](){var _0x49fb26=_0x521f78;this['_status']==='not-following'&&(this[_0x49fb26(0x141)][_0x49fb26(0x17d)](_0x49fb26(0x19a)),this['_startFollowing']());}[_0x521f78(0x1f9)](){var _0x45dfdb=_0x521f78;this[_0x45dfdb(0x153)]===_0x45dfdb(0x19a)&&this[_0x45dfdb(0x1ce)]();}['_handleNewHost'](_0x2159fe){var _0x106897=_0x521f78;const {presenter:_0xe54dcc}=_0x2159fe['data'],_0x2bfa6d=this[_0x106897(0x1dc)][_0x106897(0x140)]();this[_0x106897(0x1ba)]=_0xe54dcc,_0xe54dcc===_0x2bfa6d?(this[_0x106897(0x1ce)](),this[_0x106897(0x14f)]()):this[_0x106897(0x153)]!==_0x106897(0x1f3)&&(this[_0x106897(0x116)](),this[_0x106897(0x1b4)]());}['_fetchOperations'](){var _0x323ad4=_0x521f78;const _0x6060b4={'eventID':_0xd68e15[_0x323ad4(0x158)][_0x323ad4(0x156)]};this['_collabSession']['send'](_0x6060b4,this[_0x323ad4(0x1b5)]);}[_0x521f78(0x11b)](){var _0x26cf71=_0x521f78;this[_0x26cf71(0x1ba)]=null,this['_status']!==_0x26cf71(0x129)&&this[_0x26cf71(0x114)]();}[_0x521f78(0x12e)](_0x2f3e97){var _0x119bda=_0x521f78;if(this[_0x119bda(0x153)]===_0x119bda(0x19a)&&this[_0x119bda(0x1ba)]===_0x2f3e97['data'][_0x119bda(0x1bd)]){const _0x171868=_0xd68e15['parseProtocolChangeset'](_0x2f3e97[_0x119bda(0x1c7)])[_0x119bda(0x190)][_0x119bda(0x125)]()['find'](_0x15462f=>_0x15462f['id']===_0x5878d7[_0x119bda(0x180)]['id']);if(_0x171868){const _0x1a246a=_0x171868['params'][_0x119bda(0x1ef)],_0x5ba747=_0x171868[_0x119bda(0x200)][_0x119bda(0x197)]['id'];setTimeout(()=>{var _0x2ef5dc=_0x119bda;this[_0x2ef5dc(0x1d8)][_0x2ef5dc(0x179)](_0x5878d7[_0x2ef5dc(0x1d6)]['id'],{'unitId':_0x1a246a,'subUnitId':_0x5ba747},{'fromCollab':!0x0});});}}}[_0x521f78(0x14f)](){var _0x336ee1=_0x521f78;this['_status$']['next']('presenting');const _0x52214a=new Map(),_0x3e29fc=this['_commandDisposable']=new _0x4ebaac[(_0x336ee1(0x1a5))]();_0x3e29fc[_0x336ee1(0x1e4)](_0x4ebaac['toDisposable'](()=>{var _0x47f02a=_0x336ee1;_0x52214a[_0x47f02a(0x12f)](_0x481971=>_0x481971[_0x47f02a(0x1cd)]()),_0x52214a[_0x47f02a(0x1c8)]();})),_0x3e29fc[_0x336ee1(0x1e4)](this[_0x336ee1(0x1d8)][_0x336ee1(0x196)](_0x15852f=>{var _0x32d0ef=_0x336ee1,_0x4991b2;if(_0x15852f[_0x32d0ef(0x1eb)]!==_0x4ebaac[_0x32d0ef(0x10f)][_0x32d0ef(0x18f)]||!this[_0x32d0ef(0x1c0)][_0x32d0ef(0x1a1)](_0x15852f['id']))return;const {id:_0x4e12a2}=_0x15852f;let _0x1b459d;_0x52214a[_0x32d0ef(0x133)](_0x4e12a2)?_0x1b459d=_0x52214a[_0x32d0ef(0x1e1)](_0x4e12a2):(_0x1b459d=new _0x48f808[(_0x32d0ef(0x16a))](),_0x52214a[_0x32d0ef(0x173)](_0x4e12a2,_0x1b459d),_0x1b459d[_0x32d0ef(0x185)](_0x39907e['throttleTime']((_0x4991b2=this[_0x32d0ef(0x16c)][_0x32d0ef(0x13c)](_0x537cfc))!=null?_0x4991b2:_0x10aaa4,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x32d0ef(0x157)](_0x1b4f6c=>{var _0x30f500=_0x32d0ef;this['_collabSession'][_0x30f500(0x1d3)]({'eventID':_0xd68e15[_0x30f500(0x158)][_0x30f500(0x127)],'data':{'unitID':this[_0x30f500(0x1b5)],'operations':{[_0x1b4f6c['id']]:{'id':_0x1b4f6c['id'],'params':JSON[_0x30f500(0x1e7)](_0x1b4f6c[_0x30f500(0x200)])}}}},this[_0x30f500(0x1b5)]);})),_0x1b459d[_0x32d0ef(0x17d)](_0x15852f);})),this[_0x336ee1(0x1c0)][_0x336ee1(0x1f5)](this[_0x336ee1(0x1b5)])['forEach'](_0x23b70f=>this['_collabSession'][_0x336ee1(0x1d3)]({'eventID':_0xd68e15[_0x336ee1(0x158)][_0x336ee1(0x127)],'data':{'unitID':this['_unitID'],'operations':{[_0x23b70f['id']]:{'id':_0x23b70f['id'],'params':JSON[_0x336ee1(0x1e7)](_0x23b70f[_0x336ee1(0x200)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x2e8c4c=_0x521f78,_0x5b2311;this['_status$'][_0x2e8c4c(0x17d)](_0x2e8c4c(0x1f4)),(_0x5b2311=this['_commandDisposable'])==null||_0x5b2311[_0x2e8c4c(0x1fc)](),this[_0x2e8c4c(0x161)]=null;}['_startFollowing'](){var _0x3d0649=_0x521f78,_0x1fd193;(_0x1fd193=this['_commandDisposable'])==null||_0x1fd193[_0x3d0649(0x1fc)](),this[_0x3d0649(0x141)]['next'](_0x3d0649(0x19a));}[_0x521f78(0x114)](){var _0x33b906=_0x521f78,_0x5c3da3;this[_0x33b906(0x141)]['next'](_0x33b906(0x1f4)),(_0x5c3da3=this[_0x33b906(0x161)])==null||_0x5c3da3[_0x33b906(0x1fc)](),this['_commandDisposable']=null;}[_0x521f78(0x1ce)](){var _0x5210d8=_0x521f78,_0xbf702b;this[_0x5210d8(0x141)][_0x5210d8(0x17d)](_0x5210d8(0x1f3)),(_0xbf702b=this[_0x5210d8(0x161)])==null||_0xbf702b[_0x5210d8(0x1fc)]();}['_handleOperation'](_0x39bd67){var _0x4f22f8=_0x521f78;if([_0x4f22f8(0x129),_0x4f22f8(0x1f3),_0x4f22f8(0x188)][_0x4f22f8(0x18c)](this['_status'])||!_0x39bd67[_0x4f22f8(0x1c7)][_0x4f22f8(0x182)]||_0x39bd67['data']['presenter']===this[_0x4f22f8(0x1dc)][_0x4f22f8(0x140)]())return;this['_status']===_0x4f22f8(0x1f4)&&this['_startFollowing']();const _0x3427c3=_0x39bd67[_0x4f22f8(0x1c7)][_0x4f22f8(0x14e)];Object[_0x4f22f8(0x178)](_0x3427c3)['forEach'](_0x443b31=>{var _0x1b9f0d=_0x4f22f8;this[_0x1b9f0d(0x1d8)]['executeCommand'](_0x443b31['id'],_0x443b31[_0x1b9f0d(0x200)]?JSON[_0x1b9f0d(0x1ca)](_0x443b31[_0x1b9f0d(0x200)]):null,{'fromCollab':!0x0});});}[_0x521f78(0x13b)](){var _0x42ee91=_0x521f78,_0x27f736;this[_0x42ee91(0x141)]['next'](_0x42ee91(0x188)),(_0x27f736=this[_0x42ee91(0x161)])==null||_0x27f736['dispose']();}[_0x521f78(0x189)](){var _0x404da6=_0x521f78;this[_0x404da6(0x141)]['next'](_0x404da6(0x1f4)),this[_0x404da6(0x16f)]();}},_0x44f3a8[_0x521f78(0x192)]=_0x21a1a6([_0x41f40c(0x2,_0x4ebaac[_0x521f78(0x181)]),_0x41f40c(0x3,_0x4ebaac['Inject'](_0x3c6cc2)),_0x41f40c(0x4,_0x4ebaac[_0x521f78(0x1f0)])],_0x44f3a8[_0x521f78(0x192)]);function _0x3a7860(){var _0x31ffbf=_0x521f78;const _0x2cfd98=_0x3fe163[_0x31ffbf(0x16d)](_0x44f3a8[_0x31ffbf(0x1cf)]),_0x30e5e7=_0x3fe163[_0x31ffbf(0x16d)](_0x4ebaac[_0x31ffbf(0x1f2)]),_0x33e459=_0x3fe163['useObservable'](()=>_0x30e5e7[_0x31ffbf(0x11a)](_0x4ebaac['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1c637c,_0x21fd72]=_0x4a9025[_0x31ffbf(0x19b)](null),[_0x4720e5,_0x515f4d]=_0x4a9025[_0x31ffbf(0x19b)](_0xd09a76[_0x31ffbf(0x1a4)]),_0x476b88=_0x4a9025['useRef'](null);return _0x4a9025['useEffect'](()=>(_0x33e459&&_0x2cfd98[_0x31ffbf(0x139)](_0x33e459[_0x31ffbf(0x1bc)]())[_0x31ffbf(0x166)](_0x21b7dd=>{var _0x4d7e85=_0x31ffbf;_0x21fd72(_0x21b7dd),_0x476b88[_0x4d7e85(0x163)]=_0x21b7dd['status$'][_0x4d7e85(0x157)](_0x532e9c=>{_0x515f4d(_0x532e9c);});}),()=>{var _0x55779f=_0x31ffbf,_0x59a825;(_0x59a825=_0x476b88[_0x55779f(0x163)])==null||_0x59a825[_0x55779f(0x11e)](),_0x476b88['current']=null;}),[_0x33e459,_0x2cfd98]),_0x1c637c?_0x188f3b[_0x31ffbf(0x10d)](_0x28e95d[_0x31ffbf(0x18d)],{'align':'end','disabled':_0x4720e5===_0xd09a76[_0x31ffbf(0x1aa)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x188f3b['jsx'](_0x559690,{'status':_0x4720e5,'coordinator':_0x1c637c}),'children':_0x188f3b[_0x31ffbf(0x10d)](_0x31ffbf(0x152),{'className':_0x28e95d[_0x31ffbf(0x19d)](_0x31ffbf(0x1c6),{'univer-cursor-not-allowed':_0x4720e5===_0xd09a76[_0x31ffbf(0x1aa)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4720e5!==_0xd09a76[_0x31ffbf(0x1aa)]}),'type':_0x31ffbf(0x152),'children':_0x188f3b[_0x31ffbf(0x10d)](_0x80640,{'className':_0x31ffbf(0x1ae)})})}):null;}function _0x559690(_0x119483){var _0x10524c=_0x521f78;const {status:_0xa7dbd8,coordinator:_0x2660c5}=_0x119483;switch(_0xa7dbd8){case _0xd09a76[_0x10524c(0x1a4)]:return _0x188f3b[_0x10524c(0x10d)](_0x197174,{'coordinator':_0x2660c5});case _0xd09a76[_0x10524c(0x143)]:return _0x188f3b['jsx'](_0x5bb9ea,{'coordinator':_0x2660c5});case _0xd09a76['NOT_FOLLOWING']:return _0x188f3b[_0x10524c(0x10d)](_0x4b0a61,{'coordinator':_0x2660c5});case _0xd09a76['OFFLINE']:return _0x188f3b[_0x10524c(0x10d)](_0x5471f2,{});case _0xd09a76[_0x10524c(0x122)]:return _0x188f3b[_0x10524c(0x10d)](_0x19b0fb,{'coordinator':_0x2660c5});default:return null;}}function _0x197174(_0x3959ac){var _0x36e7c8=_0x521f78;const {coordinator:_0x423658}=_0x3959ac;return _0x188f3b[_0x36e7c8(0x131)](_0x188f3b[_0x36e7c8(0x155)],{'children':[_0x188f3b[_0x36e7c8(0x10d)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x36e7c8(0x144)}),_0x188f3b[_0x36e7c8(0x10d)](_0x28e95d[_0x36e7c8(0x10e)],{'onClick':()=>_0x423658[_0x36e7c8(0x183)](),'children':'Start'})]});}function _0x5bb9ea(_0x50ad71){var _0x10bf6f=_0x521f78;const {coordinator:_0x434331}=_0x50ad71;return _0x188f3b[_0x10bf6f(0x131)](_0x188f3b[_0x10bf6f(0x155)],{'children':[_0x188f3b[_0x10bf6f(0x10d)](_0x10bf6f(0x15c),{'className':_0x10bf6f(0x147),'children':_0x10bf6f(0x1cb)}),_0x188f3b[_0x10bf6f(0x10d)](_0x28e95d[_0x10bf6f(0x10e)],{'onClick':()=>_0x434331['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x4b0a61(_0x3b0a5c){var _0x1cbf23=_0x521f78;const {coordinator:_0x6f1ec4}=_0x3b0a5c;return _0x188f3b['jsxs'](_0x188f3b[_0x1cbf23(0x155)],{'children':[_0x188f3b[_0x1cbf23(0x10d)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1cbf23(0x1a9)}),_0x188f3b[_0x1cbf23(0x10d)](_0x28e95d[_0x1cbf23(0x10e)],{'variant':_0x1cbf23(0x128),'onClick':()=>_0x6f1ec4[_0x1cbf23(0x12d)](),'children':'Start\x20following'})]});}function _0x19b0fb(_0x16feb9){var _0x311f3d=_0x521f78;const {coordinator:_0x2a18de}=_0x16feb9;return _0x188f3b['jsxs'](_0x188f3b[_0x311f3d(0x155)],{'children':[_0x188f3b[_0x311f3d(0x10d)](_0x311f3d(0x15c),{'className':_0x311f3d(0x147),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x188f3b[_0x311f3d(0x10d)](_0x28e95d[_0x311f3d(0x10e)],{'variant':'default','onClick':()=>_0x2a18de['stopPresenting'](),'children':_0x311f3d(0x187)})]});}function _0x5471f2(){var _0x216ec7=_0x521f78;return _0x188f3b[_0x216ec7(0x10d)](_0x188f3b[_0x216ec7(0x155)],{'children':_0x216ec7(0x184)});}var _0xde8fb4=Object['getOwnPropertyDescriptor'],_0xf827fa=(_0x3844ef,_0x206596,_0xe4e97a,_0x112e0b)=>{var _0x1aed39=_0x521f78;for(var _0x219932=_0x112e0b>0x1?void 0x0:_0x112e0b?_0xde8fb4(_0x206596,_0xe4e97a):_0x206596,_0x9e9f98=_0x3844ef[_0x1aed39(0x13f)]-0x1,_0x5379e5;_0x9e9f98>=0x0;_0x9e9f98--)(_0x5379e5=_0x3844ef[_0x9e9f98])&&(_0x219932=_0x5379e5(_0x219932)||_0x219932);return _0x219932;},_0x19cb26=(_0x465fb5,_0x4be40d)=>(_0x5645dd,_0x3f3b4)=>_0x4be40d(_0x5645dd,_0x3f3b4,_0x465fb5);_0x44f3a8[_0x521f78(0x1de)]=class extends _0x4ebaac[_0x521f78(0x17c)]{constructor(_0x2b6caf,_0x56c002){var _0x4b9469=_0x521f78;super(),this[_0x4b9469(0x15b)]=_0x2b6caf,this[_0x4b9469(0x1b6)]=_0x56c002,this['_mountLiveShare']();}[_0x521f78(0x1c1)](){var _0x5e5ea0=_0x521f78;this[_0x5e5ea0(0x17f)](this[_0x5e5ea0(0x1b6)][_0x5e5ea0(0x1d0)](_0x3fe163[_0x5e5ea0(0x1b1)]['HEADER_MENU'],()=>_0x3fe163[_0x5e5ea0(0x1d4)](_0x3a7860,this[_0x5e5ea0(0x15b)])));}},_0x44f3a8[_0x521f78(0x1de)]=_0xf827fa([_0x19cb26(0x0,_0x4ebaac[_0x521f78(0x17e)](_0x4ebaac[_0x521f78(0x194)])),_0x19cb26(0x1,_0x3fe163['IUIPartsService'])],_0x44f3a8[_0x521f78(0x1de)]);var _0x40c00a=Object[_0x521f78(0x18a)],_0x53358c=Object[_0x521f78(0x1e9)],_0x38f247=(_0x7c6783,_0x2a155e,_0x2679b6)=>_0x2a155e in _0x7c6783?_0x40c00a(_0x7c6783,_0x2a155e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2679b6}):_0x7c6783[_0x2a155e]=_0x2679b6,_0x4656a1=(_0x375312,_0x419d14,_0x1bb51a,_0x4872f1)=>{var _0xd89692=_0x521f78;for(var _0x3eb78c=_0x4872f1>0x1?void 0x0:_0x4872f1?_0x53358c(_0x419d14,_0x1bb51a):_0x419d14,_0x4c388d=_0x375312[_0xd89692(0x13f)]-0x1,_0x19631d;_0x4c388d>=0x0;_0x4c388d--)(_0x19631d=_0x375312[_0x4c388d])&&(_0x3eb78c=_0x19631d(_0x3eb78c)||_0x3eb78c);return _0x3eb78c;},_0x297136=(_0x4c40d8,_0x227fed)=>(_0x3dd2fd,_0xc12793)=>_0x227fed(_0x3dd2fd,_0xc12793,_0x4c40d8),_0x569557=(_0x4fe652,_0x4ad9f4,_0x48ef74)=>_0x38f247(_0x4fe652,typeof _0x4ad9f4!='symbol'?_0x4ad9f4+'':_0x4ad9f4,_0x48ef74);const _0x44e762=_0x521f78(0x142);_0x44f3a8[_0x521f78(0x165)]=class extends _0x4ebaac[_0x521f78(0x18b)]{constructor(_0x331099=_0x1bc865,_0x2fbf80,_0x471e27){var _0xfa071c=_0x521f78;super(),this[_0xfa071c(0x10c)]=_0x331099,this[_0xfa071c(0x15b)]=_0x2fbf80,this['_configService']=_0x471e27;const {..._0x558204}=_0x4ebaac['merge']({},_0x1bc865,this['_config']);this[_0xfa071c(0x16c)]['setConfig'](_0x2f7901,_0x558204);}[_0x521f78(0x11d)](){var _0x428e13=_0x521f78;_0x4ebaac[_0x428e13(0x1b9)](this[_0x428e13(0x15b)],_0x4ebaac[_0x428e13(0x15d)]([[_0x3c6cc2],[_0x44f3a8[_0x428e13(0x1cf)]],[_0x44c560],[_0x44f3a8['DesktopLiveShareController']]],this['_config']['override'])),_0x4ebaac['touchDependencies'](this[_0x428e13(0x15b)],[[_0x44c560]]);}[_0x521f78(0x135)](){var _0x5ef36d=_0x521f78;_0x4ebaac[_0x5ef36d(0x172)](this[_0x5ef36d(0x15b)],[[_0x44f3a8['DesktopLiveShareController']]]);}},_0x569557(_0x44f3a8[_0x521f78(0x165)],'type',_0x4ebaac['UniverInstanceType'][_0x521f78(0x167)]),_0x569557(_0x44f3a8[_0x521f78(0x165)],_0x521f78(0x13d),_0x44e762),_0x44f3a8[_0x521f78(0x165)]=_0x4656a1([_0x4ebaac[_0x521f78(0x1a0)](_0x598f9c[_0x521f78(0x1be)]),_0x297136(0x1,_0x4ebaac['Inject'](_0x4ebaac['Injector'])),_0x297136(0x2,_0x4ebaac['IConfigService'])],_0x44f3a8['UniverLiveSharePlugin']),_0x44f3a8['LiveShare']=_0x3a7860,_0x44f3a8[_0x521f78(0x1bb)]=_0x3c6cc2,_0x44f3a8[_0x521f78(0x1ee)]=_0xd09a76,Object[_0x521f78(0x18a)](_0x44f3a8,Symbol[_0x521f78(0x1bf)],{'value':_0x521f78(0x191)});}));
1
+ function _0x5230(_0x3bc85d,_0xadd60){var _0x33f112=_0x33f1();return _0x5230=function(_0x5230db,_0xe9077){_0x5230db=_0x5230db-0x18d;var _0x4206ff=_0x33f112[_0x5230db];return _0x4206ff;},_0x5230(_0x3bc85d,_0xadd60);}(function(_0x45a4c9,_0x6ae00c){var _0x38c3d9=_0x5230,_0x2b172f=_0x45a4c9();while(!![]){try{var _0x12319a=-parseInt(_0x38c3d9(0x1f1))/0x1*(parseInt(_0x38c3d9(0x20e))/0x2)+parseInt(_0x38c3d9(0x20d))/0x3+parseInt(_0x38c3d9(0x19d))/0x4+parseInt(_0x38c3d9(0x24d))/0x5*(parseInt(_0x38c3d9(0x1ce))/0x6)+-parseInt(_0x38c3d9(0x21a))/0x7*(-parseInt(_0x38c3d9(0x1d6))/0x8)+-parseInt(_0x38c3d9(0x228))/0x9+-parseInt(_0x38c3d9(0x258))/0xa*(parseInt(_0x38c3d9(0x219))/0xb);if(_0x12319a===_0x6ae00c)break;else _0x2b172f['push'](_0x2b172f['shift']());}catch(_0x2238b2){_0x2b172f['push'](_0x2b172f['shift']());}}}(_0x33f1,0x9cf48),function(_0x44f0db,_0x63effa){var _0x3dfb1c=_0x5230;typeof exports==_0x3dfb1c(0x20a)&&typeof module<'u'?_0x63effa(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x3dfb1c(0x257)&&define['amd']?define([_0x3dfb1c(0x23a),_0x3dfb1c(0x208),_0x3dfb1c(0x275),_0x3dfb1c(0x1b7),_0x3dfb1c(0x25a),_0x3dfb1c(0x1d2),_0x3dfb1c(0x1d3),_0x3dfb1c(0x23c),_0x3dfb1c(0x21e),_0x3dfb1c(0x231),_0x3dfb1c(0x197),_0x3dfb1c(0x25e)],_0x63effa):(_0x44f0db=typeof globalThis<'u'?globalThis:_0x44f0db||self,_0x63effa(_0x44f0db[_0x3dfb1c(0x1c7)]={},_0x44f0db[_0x3dfb1c(0x256)],_0x44f0db[_0x3dfb1c(0x216)],_0x44f0db['UniverSheets'],_0x44f0db[_0x3dfb1c(0x1a9)],_0x44f0db[_0x3dfb1c(0x1e0)],_0x44f0db['React'],_0x44f0db[_0x3dfb1c(0x1a2)],_0x44f0db[_0x3dfb1c(0x1d0)],_0x44f0db[_0x3dfb1c(0x1ca)],_0x44f0db['rxjs'],_0x44f0db['rxjs'][_0x3dfb1c(0x268)]));}(this,function(_0x5e8362,_0x327643,_0x3f645b,_0x54ea5f,_0xfd4c40,_0x448afd,_0x580bc1,_0x56011e,_0x5d339f,_0x287f4a,_0x2b6269,_0xd286ea){'use strict';var _0x49032e=_0x5230;var _0xa8e955=Object[_0x49032e(0x1b1)],_0x17aa63=(_0x32da94,_0x4d1cdc,_0x3c5bda)=>_0x4d1cdc in _0x32da94?_0xa8e955(_0x32da94,_0x4d1cdc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c5bda}):_0x32da94[_0x4d1cdc]=_0x3c5bda,_0x5b9963=(_0xb3bdbf,_0x18d002,_0x4c08f9)=>_0x17aa63(_0xb3bdbf,typeof _0x18d002!=_0x49032e(0x202)?_0x18d002+'':_0x18d002,_0x4c08f9);const _0xe75297=_0x49032e(0x1f5),_0x155af1={};class _0x2b8e21 extends _0x3f645b[_0x49032e(0x1c6)]{constructor(){var _0x45d78e=_0x49032e;super(...arguments),_0x5b9963(this,_0x45d78e(0x214),new Set()),_0x5b9963(this,_0x45d78e(0x1e7),new Set());}[_0x49032e(0x1ed)](_0x37a0f2){var _0x203c61=_0x49032e;return this[_0x203c61(0x214)][_0x203c61(0x22b)](_0x37a0f2),_0x3f645b[_0x203c61(0x21b)](()=>this[_0x203c61(0x214)][_0x203c61(0x204)](_0x37a0f2));}[_0x49032e(0x224)](_0x4ba286){var _0x34daa7=_0x49032e;return this['_reporters'][_0x34daa7(0x22b)](_0x4ba286),_0x3f645b[_0x34daa7(0x21b)](()=>this[_0x34daa7(0x1e7)][_0x34daa7(0x204)](_0x4ba286));}[_0x49032e(0x25d)](_0x55c8e3){var _0x367615=_0x49032e;return this[_0x367615(0x214)]['has'](_0x55c8e3);}[_0x49032e(0x250)](_0x3562c7){var _0x290a1f=_0x49032e;return Array[_0x290a1f(0x24a)](this[_0x290a1f(0x1e7)])['map'](_0x39893e=>_0x39893e(_0x3562c7));}}var _0x11194d=Object[_0x49032e(0x21f)],_0x57a2ae=(_0x56fe98,_0x52481d,_0x3f3264,_0x260fe5)=>{for(var _0x4df8eb=_0x260fe5>0x1?void 0x0:_0x260fe5?_0x11194d(_0x52481d,_0x3f3264):_0x52481d,_0x47bd61=_0x56fe98['length']-0x1,_0x7289ce;_0x47bd61>=0x0;_0x47bd61--)(_0x7289ce=_0x56fe98[_0x47bd61])&&(_0x4df8eb=_0x7289ce(_0x4df8eb)||_0x4df8eb);return _0x4df8eb;},_0x1b2fbc=(_0x148fad,_0x29ab34)=>(_0x2e91e4,_0x45ebbb)=>_0x29ab34(_0x2e91e4,_0x45ebbb,_0x148fad);let _0x362e9a=class extends _0x3f645b[_0x49032e(0x1c6)]{constructor(_0x3be953){var _0x1285b1=_0x49032e;super(),this[_0x1285b1(0x1b6)]=_0x3be953,this['_init']();}[_0x49032e(0x201)](){var _0x2e3180=_0x49032e;[_0xfd4c40[_0x2e3180(0x246)]['id'],_0xfd4c40[_0x2e3180(0x1af)]['id'],_0x54ea5f['SetWorksheetActiveOperation']['id']][_0x2e3180(0x1ba)](_0x3ae637=>{var _0x2cecaf=_0x2e3180;this[_0x2cecaf(0x232)](this['_liveShareService'][_0x2cecaf(0x1ed)](_0x3ae637));});}};_0x362e9a=_0x57a2ae([_0x1b2fbc(0x0,_0x3f645b[_0x49032e(0x26e)](_0x2b8e21))],_0x362e9a);var _0x3ee45b=function(){var _0x267786=_0x49032e;return _0x3ee45b=Object[_0x267786(0x259)]||function(_0xc05d04){var _0x2fa424=_0x267786;for(var _0x1f7b82,_0x191de0=0x1,_0x4c233a=arguments[_0x2fa424(0x233)];_0x191de0<_0x4c233a;_0x191de0++){_0x1f7b82=arguments[_0x191de0];for(var _0x3e23d3 in _0x1f7b82)Object[_0x2fa424(0x1b5)][_0x2fa424(0x23f)][_0x2fa424(0x27c)](_0x1f7b82,_0x3e23d3)&&(_0xc05d04[_0x3e23d3]=_0x1f7b82[_0x3e23d3]);}return _0xc05d04;},_0x3ee45b[_0x267786(0x1c9)](this,arguments);},_0x5a021b=function(_0x354c2d,_0x31a902){var _0x1a993f=_0x49032e,_0x354ff8={};for(var _0x49bd48 in _0x354c2d)Object['prototype'][_0x1a993f(0x23f)]['call'](_0x354c2d,_0x49bd48)&&_0x31a902[_0x1a993f(0x20b)](_0x49bd48)<0x0&&(_0x354ff8[_0x49bd48]=_0x354c2d[_0x49bd48]);if(_0x354c2d!=null&&typeof Object[_0x1a993f(0x1c8)]==_0x1a993f(0x257)){for(var _0x44936e=0x0,_0x49bd48=Object[_0x1a993f(0x1c8)](_0x354c2d);_0x44936e<_0x49bd48[_0x1a993f(0x233)];_0x44936e++)_0x31a902[_0x1a993f(0x20b)](_0x49bd48[_0x44936e])<0x0&&Object[_0x1a993f(0x1b5)][_0x1a993f(0x1f6)][_0x1a993f(0x27c)](_0x354c2d,_0x49bd48[_0x44936e])&&(_0x354ff8[_0x49bd48[_0x44936e]]=_0x354c2d[_0x49bd48[_0x44936e]]);}return _0x354ff8;},_0x28be85=_0x5d339f[_0x49032e(0x190)](function(_0x33db69,_0x33c55a){var _0x6db82=_0x49032e,_0x392036=_0x33db69['icon'],_0x70ec14=_0x33db69['id'],_0x3aa03e=_0x33db69['className'],_0x54d222=_0x33db69['extend'],_0x32b2da=_0x5a021b(_0x33db69,['icon','id',_0x6db82(0x19b),_0x6db82(0x273)]),_0x5b6282=_0x6db82(0x1c5)[_0x6db82(0x272)](_0x70ec14,'\x20')[_0x6db82(0x272)](_0x3aa03e||'')[_0x6db82(0x194)](),_0x2753b1=_0x5d339f[_0x6db82(0x1e6)]('_'['concat'](_0x3b5afa()));return _0x24cbf5(_0x392036,''[_0x6db82(0x272)](_0x70ec14),{'defIds':_0x392036[_0x6db82(0x278)],'idSuffix':_0x2753b1['current']},_0x3ee45b({'ref':_0x33c55a,'className':_0x5b6282},_0x32b2da),_0x54d222);});function _0x24cbf5(_0x44e82e,_0x597d7e,_0x50f2d6,_0x5c74cc,_0x565e81){var _0x3948af=_0x49032e;return _0x5d339f['createElement'](_0x44e82e['tag'],_0x3ee45b(_0x3ee45b({'key':_0x597d7e},_0x10d4a7(_0x44e82e,_0x50f2d6,_0x565e81)),_0x5c74cc),(_0x2434f7(_0x44e82e,_0x50f2d6)[_0x3948af(0x243)]||[])[_0x3948af(0x22e)](function(_0x3a1ea3,_0x23dc46){var _0x4ca6d4=_0x3948af;return _0x24cbf5(_0x3a1ea3,''['concat'](_0x597d7e,'-')[_0x4ca6d4(0x272)](_0x44e82e['tag'],'-')['concat'](_0x23dc46),_0x50f2d6,void 0x0,_0x565e81);}));}function _0x10d4a7(_0x3ee4a2,_0x5c0528,_0x195a68){var _0x1cde8c=_0x49032e,_0xd12986=_0x3ee45b({},_0x3ee4a2[_0x1cde8c(0x236)]);_0x195a68!=null&&_0x195a68[_0x1cde8c(0x19f)]&&_0xd12986[_0x1cde8c(0x1fc)]===_0x1cde8c(0x19f)&&(_0xd12986[_0x1cde8c(0x1fc)]=_0x195a68[_0x1cde8c(0x19f)]),_0x3ee4a2['tag']==='mask'&&_0xd12986['id']&&(_0xd12986['id']=_0xd12986['id']+_0x5c0528[_0x1cde8c(0x209)]),Object['entries'](_0xd12986)['forEach'](function(_0x1c3bec){var _0x3390f3=_0x1cde8c,_0x2010a4=_0x1c3bec[0x0],_0x423870=_0x1c3bec[0x1];_0x2010a4==='mask'&&typeof _0x423870==_0x3390f3(0x221)&&(_0xd12986[_0x2010a4]=_0x423870['replace'](/url\(#(.*)\)/,_0x3390f3(0x252)['concat'](_0x5c0528[_0x3390f3(0x209)],')')));});var _0x67cf24=_0x5c0528['defIds'];return!_0x67cf24||_0x67cf24[_0x1cde8c(0x233)]===0x0||(_0x3ee4a2[_0x1cde8c(0x1ea)]===_0x1cde8c(0x1a8)&&_0xd12986[_0x1cde8c(0x23d)]&&(_0xd12986[_0x1cde8c(0x23d)]=_0xd12986[_0x1cde8c(0x23d)]+_0x5c0528[_0x1cde8c(0x209)]),Object[_0x1cde8c(0x223)](_0xd12986)[_0x1cde8c(0x1ba)](function(_0x29411d){var _0x555f1a=_0x1cde8c,_0x102482=_0x29411d[0x0],_0x23002e=_0x29411d[0x1];typeof _0x23002e==_0x555f1a(0x221)&&(_0xd12986[_0x102482]=_0x23002e['replace'](/url\(#(.*)\)/,_0x555f1a(0x252)['concat'](_0x5c0528['idSuffix'],')')));})),_0xd12986;}function _0x2434f7(_0x48a5f9,_0x32fc22){var _0x3b5413=_0x49032e,_0x3f3cf1,_0xb4fc0e=_0x32fc22['defIds'];return!_0xb4fc0e||_0xb4fc0e['length']===0x0?_0x48a5f9:_0x48a5f9[_0x3b5413(0x1ea)]==='defs'&&(!((_0x3f3cf1=_0x48a5f9[_0x3b5413(0x243)])===null||_0x3f3cf1===void 0x0)&&_0x3f3cf1[_0x3b5413(0x233)])?_0x3ee45b(_0x3ee45b({},_0x48a5f9),{'children':_0x48a5f9['children'][_0x3b5413(0x22e)](function(_0x5ee3d2){var _0xcd9e21=_0x3b5413;return typeof _0x5ee3d2[_0xcd9e21(0x236)]['id']==_0xcd9e21(0x221)&&_0xb4fc0e&&_0xb4fc0e[_0xcd9e21(0x244)](_0x5ee3d2[_0xcd9e21(0x236)]['id'])?_0x3ee45b(_0x3ee45b({},_0x5ee3d2),{'attrs':_0x3ee45b(_0x3ee45b({},_0x5ee3d2[_0xcd9e21(0x236)]),{'id':_0x5ee3d2[_0xcd9e21(0x236)]['id']+_0x32fc22[_0xcd9e21(0x209)]})}):_0x5ee3d2;})}):_0x48a5f9;}function _0x3b5afa(){var _0x24c778=_0x49032e;return Math[_0x24c778(0x281)]()[_0x24c778(0x227)](0x24)[_0x24c778(0x19c)](0x2,0x8);}_0x28be85[_0x49032e(0x18d)]=_0x49032e(0x1fb);var _0x10b543={'tag':_0x49032e(0x22c),'attrs':{'xmlns':_0x49032e(0x242),'fill':'none','viewBox':_0x49032e(0x225),'width':'1em','height':'1em'},'children':[{'tag':_0x49032e(0x20f),'attrs':{'fill':_0x49032e(0x239),'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':_0x49032e(0x20f),'attrs':{'fill':_0x49032e(0x239),'d':_0x49032e(0x220),'fillRule':_0x49032e(0x253),'clipRule':_0x49032e(0x253)}}]},_0x27f223=_0x5d339f[_0x49032e(0x190)](function(_0x18f19d,_0x287a2a){var _0x3d815d=_0x49032e;return _0x5d339f['createElement'](_0x28be85,Object[_0x3d815d(0x259)]({},_0x18f19d,{'id':_0x3d815d(0x21d),'ref':_0x287a2a,'icon':_0x10b543}));});_0x27f223['displayName']=_0x49032e(0x19e);var _0x28b0db=Object[_0x49032e(0x21f)],_0x2e3bb6=(_0x10136e,_0x4bc6a4,_0x1a46a0,_0x57e0d0)=>{var _0xdae9c8=_0x49032e;for(var _0xafc90a=_0x57e0d0>0x1?void 0x0:_0x57e0d0?_0x28b0db(_0x4bc6a4,_0x1a46a0):_0x4bc6a4,_0x92390a=_0x10136e[_0xdae9c8(0x233)]-0x1,_0x5d2e5b;_0x92390a>=0x0;_0x92390a--)(_0x5d2e5b=_0x10136e[_0x92390a])&&(_0xafc90a=_0x5d2e5b(_0xafc90a)||_0xafc90a);return _0xafc90a;},_0x3cee5f=(_0x59de9f,_0x342fe9)=>(_0x58c65d,_0x274dc6)=>_0x342fe9(_0x58c65d,_0x274dc6,_0x59de9f);_0x5e8362[_0x49032e(0x1db)]=class extends _0x3f645b['RxDisposable']{constructor(_0x16cb05,_0x11038a,_0x22228b){var _0x3850f3=_0x49032e;super(),_0x5b9963(this,'_entities',new Map()),(this[_0x3850f3(0x269)]=_0x16cb05,this[_0x3850f3(0x26b)]=_0x11038a,this[_0x3850f3(0x274)]=_0x22228b,this[_0x3850f3(0x201)]());}async[_0x49032e(0x276)](_0x561c66){var _0x538ffd=_0x49032e;return this[_0x538ffd(0x200)][_0x538ffd(0x241)](_0x561c66)||await this[_0x538ffd(0x1f4)](_0x561c66),this[_0x538ffd(0x200)][_0x538ffd(0x1e4)](_0x561c66);}[_0x49032e(0x201)](){var _0x2c67da=_0x49032e;this[_0x2c67da(0x269)][_0x2c67da(0x207)](_0x3f645b[_0x2c67da(0x1fa)]['UNIVER_SHEET'])[_0x2c67da(0x195)](_0xd286ea[_0x2c67da(0x1dc)](this[_0x2c67da(0x1d5)]))[_0x2c67da(0x1a4)](async _0x3a939d=>{var _0x2b1a45=_0x2c67da;const _0x1400f5=_0x3a939d[_0x2b1a45(0x24c)]();this[_0x2b1a45(0x200)][_0x2b1a45(0x241)](_0x1400f5)||this[_0x2b1a45(0x1f4)](_0x1400f5);}),this[_0x2c67da(0x269)]['getTypeOfUnitDisposed$'](_0x3f645b[_0x2c67da(0x1fa)][_0x2c67da(0x1cf)])[_0x2c67da(0x195)](_0xd286ea[_0x2c67da(0x1dc)](this['dispose$']))[_0x2c67da(0x1a4)](_0x581b62=>{var _0x494ea2=_0x2c67da;const _0x555708=_0x581b62['getUnitId'](),_0x2d1004=this[_0x494ea2(0x200)]['get'](_0x555708);_0x2d1004==null||_0x2d1004['dispose']();});}async[_0x49032e(0x1f4)](_0x87b5d1){var _0x25e6f9=_0x49032e;const _0x40d1cd=await this[_0x25e6f9(0x274)][_0x25e6f9(0x1df)](_0x87b5d1),_0xc17d39=this[_0x25e6f9(0x26b)][_0x25e6f9(0x1b3)](_0x5e8362['LiveShareCoordinator'],_0x87b5d1,_0x40d1cd);return _0xc17d39[_0x25e6f9(0x279)](),this[_0x25e6f9(0x200)][_0x25e6f9(0x1da)](_0x87b5d1,_0xc17d39),_0xc17d39;}},_0x5e8362[_0x49032e(0x1db)]=_0x2e3bb6([_0x3cee5f(0x0,_0x3f645b[_0x49032e(0x26f)]),_0x3cee5f(0x1,_0x3f645b[_0x49032e(0x26e)](_0x3f645b[_0x49032e(0x1ee)])),_0x3cee5f(0x2,_0x3f645b[_0x49032e(0x26e)](_0x327643[_0x49032e(0x1a0)]))],_0x5e8362[_0x49032e(0x1db)]);var _0x4a9607=(_0x544e31=>(_0x544e31[_0x49032e(0x196)]=_0x49032e(0x1ab),_0x544e31[_0x49032e(0x1f3)]=_0x49032e(0x265),_0x544e31[_0x49032e(0x264)]='following',_0x544e31[_0x49032e(0x1ae)]=_0x49032e(0x1eb),_0x544e31[_0x49032e(0x1cb)]=_0x49032e(0x205),_0x544e31))(_0x4a9607||{});const _0x1b388d=_0x49032e(0x1a7),_0x3e2bf5=0xc8;_0x5e8362[_0x49032e(0x193)]=class extends _0x3f645b['RxDisposable']{constructor(_0x353256,_0x25c0c4,_0x2c6b39,_0xc0e452,_0x50d7aa){var _0x4a073f=_0x49032e;super(),_0x5b9963(this,_0x4a073f(0x249),new _0x2b6269[(_0x4a073f(0x255))](_0x4a073f(0x265))),_0x5b9963(this,_0x4a073f(0x234),this[_0x4a073f(0x249)][_0x4a073f(0x1b0)]()),_0x5b9963(this,_0x4a073f(0x201),!0x1),_0x5b9963(this,_0x4a073f(0x213),null),_0x5b9963(this,'_presenter',null),(this['_unitID']=_0x353256,this[_0x4a073f(0x25b)]=_0x25c0c4,this[_0x4a073f(0x212)]=_0x2c6b39,this[_0x4a073f(0x1b6)]=_0xc0e452,this['_commandService']=_0x50d7aa);}get[_0x49032e(0x22d)](){var _0xfafc9f=_0x49032e;return this[_0xfafc9f(0x249)]['getValue']();}['dispose'](){var _0x51e189=_0x49032e,_0x54b891;(_0x54b891=this[_0x51e189(0x213)])==null||_0x54b891[_0x51e189(0x211)](),this['_status$']['next'](_0x51e189(0x265)),this[_0x51e189(0x249)][_0x51e189(0x1e8)]();}[_0x49032e(0x279)](){var _0x412ad5=_0x49032e;this['_init']||(this['_init']=!0x0,this[_0x412ad5(0x25b)][_0x412ad5(0x25c)][_0x412ad5(0x195)](_0xd286ea[_0x412ad5(0x1dc)](this['dispose$']))[_0x412ad5(0x1a4)](_0x44b0d0=>{var _0xce5fec=_0x412ad5;switch(_0x44b0d0){case _0x327643[_0xce5fec(0x22a)][_0xce5fec(0x196)]:this['_handleOffline']();break;case _0x327643[_0xce5fec(0x22a)][_0xce5fec(0x27f)]:this[_0xce5fec(0x260)]();break;}}),this[_0x412ad5(0x25b)][_0x412ad5(0x23e)]['pipe'](_0xd286ea[_0x412ad5(0x1dc)](this[_0x412ad5(0x1d5)]))[_0x412ad5(0x1a4)](_0x5f72d6=>{var _0x3fad6a=_0x412ad5;const {eventID:_0x1613db}=_0x5f72d6;switch(_0x1613db){case _0x287f4a[_0x3fad6a(0x1c4)][_0x3fad6a(0x247)]:this[_0x3fad6a(0x27d)](_0x5f72d6);break;case _0x287f4a[_0x3fad6a(0x1c4)][_0x3fad6a(0x1cc)]:this[_0x3fad6a(0x1bf)](_0x5f72d6);break;case _0x287f4a[_0x3fad6a(0x1c4)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x287f4a['CollaborationEvent'][_0x3fad6a(0x1dd)]:this[_0x3fad6a(0x1d1)](_0x5f72d6);break;}}));}[_0x49032e(0x235)](){var _0x32a265=_0x49032e;this[_0x32a265(0x25b)][_0x32a265(0x1a1)]({'eventID':_0x287f4a['CollaborationEvent'][_0x32a265(0x1f0)],'data':{'unitID':this[_0x32a265(0x1b2)],'userID':this[_0x32a265(0x25b)][_0x32a265(0x1bc)]()}},this[_0x32a265(0x1b2)]);}[_0x49032e(0x238)](){var _0x55f9b0=_0x49032e;this[_0x55f9b0(0x22d)]===_0x55f9b0(0x205)&&(this[_0x55f9b0(0x249)]['next'](_0x55f9b0(0x265)),this[_0x55f9b0(0x25b)][_0x55f9b0(0x1a1)]({'eventID':_0x287f4a[_0x55f9b0(0x1c4)][_0x55f9b0(0x27e)],'data':{'unitID':this[_0x55f9b0(0x1b2)]}},this['_unitID']));}[_0x49032e(0x280)](){var _0x251767=_0x49032e;this['_status']===_0x251767(0x1eb)&&(this[_0x251767(0x249)][_0x251767(0x1f9)](_0x251767(0x1ec)),this[_0x251767(0x191)]());}[_0x49032e(0x19a)](){var _0x42d653=_0x49032e;this[_0x42d653(0x22d)]===_0x42d653(0x1ec)&&this[_0x42d653(0x254)]();}[_0x49032e(0x27d)](_0x35e9c4){var _0x3956e2=_0x49032e;const {presenter:_0x2014be}=_0x35e9c4[_0x3956e2(0x261)],_0x59be3f=this[_0x3956e2(0x25b)]['getMemberID']();this[_0x3956e2(0x1fe)]=_0x2014be,_0x2014be===_0x59be3f?(this[_0x3956e2(0x254)](),this[_0x3956e2(0x1d9)]()):this[_0x3956e2(0x22d)]!==_0x3956e2(0x1eb)&&(this[_0x3956e2(0x1e9)](),this[_0x3956e2(0x191)]());}['_fetchOperations'](){var _0x27a5d9=_0x49032e;const _0x2df41e={'eventID':_0x287f4a[_0x27a5d9(0x1c4)][_0x27a5d9(0x199)]};this['_collabSession'][_0x27a5d9(0x1a1)](_0x2df41e,this[_0x27a5d9(0x1b2)]);}[_0x49032e(0x267)](){var _0x2d059c=_0x49032e;this['_presenter']=null,this[_0x2d059c(0x22d)]!==_0x2d059c(0x205)&&this[_0x2d059c(0x262)]();}['_handleNewChangeSets'](_0x2ec0c8){var _0x19881b=_0x49032e;if(this[_0x19881b(0x22d)]===_0x19881b(0x1ec)&&this[_0x19881b(0x1fe)]===_0x2ec0c8['data']['memberID']){const _0x51b8aa=_0x287f4a['parseProtocolChangeset'](_0x2ec0c8[_0x19881b(0x261)])['mutations'][_0x19881b(0x1d8)]()[_0x19881b(0x22f)](_0x95f851=>_0x95f851['id']===_0x54ea5f[_0x19881b(0x1a5)]['id']);if(_0x51b8aa){const _0x20118c=_0x51b8aa[_0x19881b(0x1d4)]['unitId'],_0x5ef344=_0x51b8aa[_0x19881b(0x1d4)][_0x19881b(0x1ff)]['id'];setTimeout(()=>{var _0x137543=_0x19881b;this[_0x137543(0x222)][_0x137543(0x1b4)](_0x54ea5f[_0x137543(0x218)]['id'],{'unitId':_0x20118c,'subUnitId':_0x5ef344},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xf34fa=_0x49032e;this[_0xf34fa(0x249)]['next']('presenting');const _0x286c06=new Map(),_0x35bb36=this['_commandDisposable']=new _0x3f645b[(_0xf34fa(0x215))]();_0x35bb36['add'](_0x3f645b[_0xf34fa(0x21b)](()=>{var _0x2b31dc=_0xf34fa;_0x286c06[_0x2b31dc(0x1ba)](_0x498030=>_0x498030[_0x2b31dc(0x1e8)]()),_0x286c06[_0x2b31dc(0x263)]();})),_0x35bb36[_0xf34fa(0x22b)](this[_0xf34fa(0x222)]['onCommandExecuted'](_0x58e0cd=>{var _0x3dffb9=_0xf34fa,_0x2d3559;if(_0x58e0cd['type']!==_0x3f645b[_0x3dffb9(0x270)][_0x3dffb9(0x18e)]||!this[_0x3dffb9(0x1b6)]['shouldShareOperation'](_0x58e0cd['id']))return;const {id:_0x3825b1}=_0x58e0cd;let _0x5b0abb;_0x286c06[_0x3dffb9(0x241)](_0x3825b1)?_0x5b0abb=_0x286c06['get'](_0x3825b1):(_0x5b0abb=new _0x2b6269[(_0x3dffb9(0x1ac))](),_0x286c06['set'](_0x3825b1,_0x5b0abb),_0x5b0abb[_0x3dffb9(0x195)](_0xd286ea[_0x3dffb9(0x27a)]((_0x2d3559=this[_0x3dffb9(0x212)][_0x3dffb9(0x271)](_0x1b388d))!=null?_0x2d3559:_0x3e2bf5,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x23aec0=>{var _0x10a223=_0x3dffb9;this[_0x10a223(0x25b)][_0x10a223(0x1a1)]({'eventID':_0x287f4a[_0x10a223(0x1c4)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x10a223(0x1b2)],'operations':{[_0x23aec0['id']]:{'id':_0x23aec0['id'],'params':JSON[_0x10a223(0x251)](_0x23aec0[_0x10a223(0x1d4)])}}}},this[_0x10a223(0x1b2)]);})),_0x5b0abb[_0x3dffb9(0x1f9)](_0x58e0cd);})),this[_0xf34fa(0x1b6)][_0xf34fa(0x250)](this['_unitID'])['forEach'](_0x3d3829=>this[_0xf34fa(0x25b)]['send']({'eventID':_0x287f4a[_0xf34fa(0x1c4)][_0xf34fa(0x1cc)],'data':{'unitID':this[_0xf34fa(0x1b2)],'operations':{[_0x3d3829['id']]:{'id':_0x3d3829['id'],'params':JSON['stringify'](_0x3d3829[_0xf34fa(0x1d4)])}}}},this['_unitID']));}[_0x49032e(0x1e9)](){var _0x28ae8d=_0x49032e,_0x33d2fa;this[_0x28ae8d(0x249)]['next'](_0x28ae8d(0x265)),(_0x33d2fa=this[_0x28ae8d(0x213)])==null||_0x33d2fa[_0x28ae8d(0x211)](),this[_0x28ae8d(0x213)]=null;}['_startFollowing'](){var _0x14b3df=_0x49032e,_0x5d3975;(_0x5d3975=this['_commandDisposable'])==null||_0x5d3975['dispose'](),this[_0x14b3df(0x249)][_0x14b3df(0x1f9)](_0x14b3df(0x1ec));}[_0x49032e(0x262)](){var _0x4263c6=_0x49032e,_0x295382;this[_0x4263c6(0x249)][_0x4263c6(0x1f9)](_0x4263c6(0x265)),(_0x295382=this[_0x4263c6(0x213)])==null||_0x295382[_0x4263c6(0x211)](),this['_commandDisposable']=null;}[_0x49032e(0x254)](){var _0x181524=_0x49032e,_0x4d2562;this[_0x181524(0x249)][_0x181524(0x1f9)](_0x181524(0x1eb)),(_0x4d2562=this[_0x181524(0x213)])==null||_0x4d2562[_0x181524(0x211)]();}['_handleOperation'](_0x4958a5){var _0x5d0826=_0x49032e;if(['presenting',_0x5d0826(0x1eb),'offline'][_0x5d0826(0x244)](this[_0x5d0826(0x22d)])||!_0x4958a5[_0x5d0826(0x261)][_0x5d0826(0x26d)]||_0x4958a5['data'][_0x5d0826(0x26d)]===this['_collabSession']['getMemberID']())return;this[_0x5d0826(0x22d)]===_0x5d0826(0x265)&&this[_0x5d0826(0x191)]();const _0x29a5c5=_0x4958a5[_0x5d0826(0x261)][_0x5d0826(0x1a6)];Object[_0x5d0826(0x1bb)](_0x29a5c5)[_0x5d0826(0x1ba)](_0x1f6e83=>{var _0x206932=_0x5d0826;this[_0x206932(0x222)][_0x206932(0x1b4)](_0x1f6e83['id'],_0x1f6e83[_0x206932(0x1d4)]?JSON[_0x206932(0x1fd)](_0x1f6e83['params']):null,{'fromCollab':!0x0});});}[_0x49032e(0x203)](){var _0x3c63f7=_0x49032e,_0x32555c;this[_0x3c63f7(0x249)]['next'](_0x3c63f7(0x1ab)),(_0x32555c=this[_0x3c63f7(0x213)])==null||_0x32555c[_0x3c63f7(0x211)]();}['_handleOnline'](){var _0x468fa2=_0x49032e;this[_0x468fa2(0x249)][_0x468fa2(0x1f9)](_0x468fa2(0x265)),this['_fetchOperations']();}},_0x5e8362['LiveShareCoordinator']=_0x2e3bb6([_0x3cee5f(0x2,_0x3f645b[_0x49032e(0x1de)]),_0x3cee5f(0x3,_0x3f645b[_0x49032e(0x26e)](_0x2b8e21)),_0x3cee5f(0x4,_0x3f645b[_0x49032e(0x210)])],_0x5e8362[_0x49032e(0x193)]);function _0x16ab26(){var _0x33d2b3=_0x49032e;const _0x4f1e1c=_0x448afd['useDependency'](_0x5e8362[_0x33d2b3(0x1db)]),_0x422566=_0x448afd['useDependency'](_0x3f645b[_0x33d2b3(0x26f)]),_0x4dc626=_0x448afd[_0x33d2b3(0x18f)](()=>_0x422566['getCurrentTypeOfUnit$'](_0x3f645b[_0x33d2b3(0x1fa)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1c3447,_0x225766]=_0x5d339f[_0x33d2b3(0x230)](null),[_0x26fa8f,_0x543584]=_0x5d339f['useState'](_0x4a9607['IDLE']),_0x3ae139=_0x5d339f[_0x33d2b3(0x1e6)](null);return _0x5d339f[_0x33d2b3(0x266)](()=>(_0x4dc626&&_0x4f1e1c[_0x33d2b3(0x276)](_0x4dc626[_0x33d2b3(0x24c)]())[_0x33d2b3(0x1e2)](_0x5f2c30=>{var _0x367657=_0x33d2b3;_0x225766(_0x5f2c30),_0x3ae139[_0x367657(0x26a)]=_0x5f2c30['status$'][_0x367657(0x1a4)](_0x11a2e7=>{_0x543584(_0x11a2e7);});}),()=>{var _0x20b3d=_0x33d2b3,_0x4fcae2;(_0x4fcae2=_0x3ae139['current'])==null||_0x4fcae2['unsubscribe'](),_0x3ae139[_0x20b3d(0x26a)]=null;}),[_0x4dc626,_0x4f1e1c]),_0x1c3447?_0x580bc1[_0x33d2b3(0x248)](_0x56011e[_0x33d2b3(0x229)],{'align':'end','disabled':_0x26fa8f===_0x4a9607[_0x33d2b3(0x196)],'className':_0x33d2b3(0x24b),'overlay':_0x580bc1[_0x33d2b3(0x248)](_0xec54c,{'status':_0x26fa8f,'coordinator':_0x1c3447}),'children':_0x580bc1[_0x33d2b3(0x248)](_0x33d2b3(0x1e5),{'className':_0x56011e[_0x33d2b3(0x25f)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x26fa8f===_0x4a9607[_0x33d2b3(0x196)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x26fa8f!==_0x4a9607[_0x33d2b3(0x196)]}),'type':_0x33d2b3(0x1e5),'children':_0x580bc1[_0x33d2b3(0x248)](_0x27f223,{'className':'univer-size-4'})})}):null;}function _0xec54c(_0x2284f6){var _0x41aba2=_0x49032e;const {status:_0x3f3f15,coordinator:_0x52c365}=_0x2284f6;switch(_0x3f3f15){case _0x4a9607['IDLE']:return _0x580bc1[_0x41aba2(0x248)](_0x5c4a05,{'coordinator':_0x52c365});case _0x4a9607[_0x41aba2(0x264)]:return _0x580bc1[_0x41aba2(0x248)](_0x416d62,{'coordinator':_0x52c365});case _0x4a9607[_0x41aba2(0x1ae)]:return _0x580bc1[_0x41aba2(0x248)](_0x54a145,{'coordinator':_0x52c365});case _0x4a9607[_0x41aba2(0x196)]:return _0x580bc1['jsx'](_0x435b56,{});case _0x4a9607[_0x41aba2(0x1cb)]:return _0x580bc1[_0x41aba2(0x248)](_0x4b5ea0,{'coordinator':_0x52c365});default:return null;}}function _0x5c4a05(_0x2343e5){var _0x58c8ed=_0x49032e;const {coordinator:_0x33fe3a}=_0x2343e5;return _0x580bc1[_0x58c8ed(0x1c3)](_0x580bc1['Fragment'],{'children':[_0x580bc1[_0x58c8ed(0x248)](_0x58c8ed(0x1c2),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x580bc1[_0x58c8ed(0x248)](_0x56011e[_0x58c8ed(0x27b)],{'onClick':()=>_0x33fe3a[_0x58c8ed(0x235)](),'children':_0x58c8ed(0x217)})]});}function _0x416d62(_0x4e98c7){var _0x10163e=_0x49032e;const {coordinator:_0x65e983}=_0x4e98c7;return _0x580bc1['jsxs'](_0x580bc1[_0x10163e(0x206)],{'children':[_0x580bc1[_0x10163e(0x248)](_0x10163e(0x1c2),{'className':_0x10163e(0x1d7),'children':_0x10163e(0x1c0)}),_0x580bc1[_0x10163e(0x248)](_0x56011e[_0x10163e(0x27b)],{'onClick':()=>_0x65e983[_0x10163e(0x19a)](),'children':_0x10163e(0x1ef)})]});}function _0x54a145(_0x42f3c0){var _0x4cc3db=_0x49032e;const {coordinator:_0x515939}=_0x42f3c0;return _0x580bc1[_0x4cc3db(0x1c3)](_0x580bc1[_0x4cc3db(0x206)],{'children':[_0x580bc1[_0x4cc3db(0x248)]('div',{'className':_0x4cc3db(0x1d7),'children':_0x4cc3db(0x24f)}),_0x580bc1[_0x4cc3db(0x248)](_0x56011e[_0x4cc3db(0x27b)],{'variant':_0x4cc3db(0x20c),'onClick':()=>_0x515939['startFollowing'](),'children':_0x4cc3db(0x21c)})]});}function _0x4b5ea0(_0x1889ba){var _0x2417ff=_0x49032e;const {coordinator:_0x54d2ab}=_0x1889ba;return _0x580bc1[_0x2417ff(0x1c3)](_0x580bc1[_0x2417ff(0x206)],{'children':[_0x580bc1[_0x2417ff(0x248)](_0x2417ff(0x1c2),{'className':_0x2417ff(0x1d7),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x580bc1[_0x2417ff(0x248)](_0x56011e[_0x2417ff(0x27b)],{'variant':_0x2417ff(0x1be),'onClick':()=>_0x54d2ab['stopPresenting'](),'children':_0x2417ff(0x1bd)})]});}function _0x435b56(){var _0x33314a=_0x49032e;return _0x580bc1[_0x33314a(0x248)](_0x580bc1[_0x33314a(0x206)],{'children':_0x33314a(0x1a3)});}var _0xe76b4d=Object[_0x49032e(0x21f)],_0x21cb6e=(_0x44c80d,_0x3e362c,_0x11c0d5,_0x42db24)=>{var _0x2503ea=_0x49032e;for(var _0x1611b1=_0x42db24>0x1?void 0x0:_0x42db24?_0xe76b4d(_0x3e362c,_0x11c0d5):_0x3e362c,_0xaeadcb=_0x44c80d[_0x2503ea(0x233)]-0x1,_0x4d71d6;_0xaeadcb>=0x0;_0xaeadcb--)(_0x4d71d6=_0x44c80d[_0xaeadcb])&&(_0x1611b1=_0x4d71d6(_0x1611b1)||_0x1611b1);return _0x1611b1;},_0x5ee2ea=(_0x5b1098,_0x22ef05)=>(_0x348ae4,_0x2d4b3e)=>_0x22ef05(_0x348ae4,_0x2d4b3e,_0x5b1098);_0x5e8362[_0x49032e(0x198)]=class extends _0x3f645b['Disposable']{constructor(_0x5674ed,_0x21f2a4){var _0x3885c9=_0x49032e;super(),this['_injector']=_0x5674ed,this[_0x3885c9(0x226)]=_0x21f2a4,this[_0x3885c9(0x192)]();}[_0x49032e(0x192)](){var _0x86880b=_0x49032e;this[_0x86880b(0x232)](this[_0x86880b(0x226)][_0x86880b(0x282)](_0x448afd[_0x86880b(0x24e)]['HEADER_MENU'],()=>_0x448afd[_0x86880b(0x26c)](_0x16ab26,this[_0x86880b(0x26b)])));}},_0x5e8362[_0x49032e(0x198)]=_0x21cb6e([_0x5ee2ea(0x0,_0x3f645b[_0x49032e(0x26e)](_0x3f645b[_0x49032e(0x1ee)])),_0x5ee2ea(0x1,_0x448afd['IUIPartsService'])],_0x5e8362[_0x49032e(0x198)]);var _0x2188e9=Object['defineProperty'],_0x59fb9f=Object[_0x49032e(0x21f)],_0x158457=(_0x27e7f7,_0x19d014,_0x4355fb)=>_0x19d014 in _0x27e7f7?_0x2188e9(_0x27e7f7,_0x19d014,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4355fb}):_0x27e7f7[_0x19d014]=_0x4355fb,_0x42fcb3=(_0x4e3863,_0x1f2da9,_0x309460,_0x2332b9)=>{var _0x34eb4f=_0x49032e;for(var _0x41812d=_0x2332b9>0x1?void 0x0:_0x2332b9?_0x59fb9f(_0x1f2da9,_0x309460):_0x1f2da9,_0x53c444=_0x4e3863[_0x34eb4f(0x233)]-0x1,_0x3c56a4;_0x53c444>=0x0;_0x53c444--)(_0x3c56a4=_0x4e3863[_0x53c444])&&(_0x41812d=_0x3c56a4(_0x41812d)||_0x41812d);return _0x41812d;},_0x271ff3=(_0x2cf002,_0x1ac541)=>(_0x4265ee,_0x1d1950)=>_0x1ac541(_0x4265ee,_0x1d1950,_0x2cf002),_0x25d61a=(_0x5813c3,_0x7c9322,_0x5bb059)=>_0x158457(_0x5813c3,typeof _0x7c9322!=_0x49032e(0x202)?_0x7c9322+'':_0x7c9322,_0x5bb059);const _0x10bc58=_0x49032e(0x1c1);_0x5e8362[_0x49032e(0x1e3)]=class extends _0x3f645b[_0x49032e(0x1b8)]{constructor(_0x263441=_0x155af1,_0x2547e9,_0x58ba06){var _0x197d84=_0x49032e;super(),this[_0x197d84(0x23b)]=_0x263441,this[_0x197d84(0x26b)]=_0x2547e9,this[_0x197d84(0x212)]=_0x58ba06;const {..._0x27ca2c}=_0x3f645b[_0x197d84(0x1f7)]({},_0x155af1,this['_config']);this[_0x197d84(0x212)][_0x197d84(0x1f2)](_0xe75297,_0x27ca2c);}[_0x49032e(0x1cd)](){var _0x28dd6a=_0x49032e;_0x3f645b['registerDependencies'](this[_0x28dd6a(0x26b)],_0x3f645b[_0x28dd6a(0x277)]([[_0x2b8e21],[_0x5e8362[_0x28dd6a(0x1db)]],[_0x362e9a],[_0x5e8362[_0x28dd6a(0x198)]]],this[_0x28dd6a(0x23b)]['override'])),_0x3f645b[_0x28dd6a(0x1f8)](this[_0x28dd6a(0x26b)],[[_0x362e9a]]);}[_0x49032e(0x245)](){var _0x4c23f1=_0x49032e;_0x3f645b[_0x4c23f1(0x1f8)](this['_injector'],[[_0x5e8362[_0x4c23f1(0x198)]]]);}},_0x25d61a(_0x5e8362['UniverLiveSharePlugin'],'type',_0x3f645b[_0x49032e(0x1fa)][_0x49032e(0x1e1)]),_0x25d61a(_0x5e8362['UniverLiveSharePlugin'],'pluginName',_0x10bc58),_0x5e8362[_0x49032e(0x1e3)]=_0x42fcb3([_0x3f645b['DependentOn'](_0x327643['UniverCollaborationClientPlugin']),_0x271ff3(0x1,_0x3f645b[_0x49032e(0x26e)](_0x3f645b[_0x49032e(0x1ee)])),_0x271ff3(0x2,_0x3f645b[_0x49032e(0x1de)])],_0x5e8362[_0x49032e(0x1e3)]),_0x5e8362[_0x49032e(0x1ad)]=_0x16ab26,_0x5e8362[_0x49032e(0x237)]=_0x2b8e21,_0x5e8362[_0x49032e(0x240)]=_0x4a9607,Object[_0x49032e(0x1b1)](_0x5e8362,Symbol[_0x49032e(0x1b9)],{'value':_0x49032e(0x1aa)});}));function _0x33f1(){var _0x50c0d6=['Inject','IUniverInstanceService','CommandType','getConfig','concat','extend','_collabSessionService','@univerjs/core','getLiveShareCoordinator','mergeOverrideWithDependencies','defIds','init','throttleTime','Button','call','_handleNewHost','LIVESHARE_TERMINATE','ONLINE','startFollowing','random','registerComponent','displayName','OPERATION','useObservable','forwardRef','_startFollowing','_mountLiveShare','LiveShareCoordinator','trim','pipe','OFFLINE','rxjs','DesktopLiveShareController','LIVESHARE_FETCH_OPERATIONS','stopFollowing','className','substring','4039836HhwXhF','LiveShareIcon','colorChannel1','CollaborationSessionService','send','UniverDesign','You\x27are\x20offline.','subscribe','InsertSheetMutation','operations','SAME_OPERATION_SHARE_INTERVAL','use','UniverSheetsUi','Module','offline','Subject','LiveShare','NOT_FOLLOWING','SetScrollOperation','asObservable','defineProperty','_unitID','createInstance','executeCommand','prototype','_liveShareService','@univerjs/sheets','Plugin','toStringTag','forEach','values','getMemberID','Stop\x20presenting','default','_handleOperation','You\x27re\x20following\x20the\x20presenter','UNIVER_LIVE_SHARE_PLUGIN','div','jsxs','CollaborationEvent','univerjs-icon\x20univerjs-icon-','Disposable','UniverProLiveShare','getOwnPropertySymbols','apply','UniverProCollaboration','PRESENTING','LIVESHARE_OPERATION','onStarting','155844RzwuAQ','UNIVER_SHEET','React','_handleNewChangeSets','@univerjs/ui','react/jsx-runtime','params','dispose$','136ycDVCc','univer-mb-3\x20univer-w-full\x20univer-text-sm','reverse','_startPresenting','set','LiveShareController','takeUntil','NEW_CHANGESETS','IConfigService','requireSession','UniverUi','UNIVER_UNKNOWN','then','UniverLiveSharePlugin','get','button','useRef','_reporters','complete','_stopPresenting','tag','not-following','following','registerSharedOperation','Injector','Stop\x20following','LIVESHARE_REQUEST_HOST','2tnOQqO','setConfig','IDLE','_startLiveShareCoordinator','live-share.config','propertyIsEnumerable','merge','touchDependencies','next','UniverInstanceType','UniverIcon','fill','parse','_presenter','sheet','_entities','_init','symbol','_handleOffline','delete','presenting','Fragment','getTypeOfUnitAdded$','@univerjs-pro/collaboration-client','idSuffix','object','indexOf','text','543930ODZaTl','1159892hLbrXL','path','ICommandService','dispose','_configService','_commandDisposable','_sharedOperations','DisposableCollection','UniverCore','Start','SetWorksheetActiveOperation','11OGiuto','263333FeLXCW','toDisposable','Start\x20following','live-share-icon','react','getOwnPropertyDescriptor','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','string','_commandService','entries','registerInitialStateReporter','0\x200\x2017\x2017','_uiPartsService','toString','1282329ShdBfe','Dropdown','SessionStatus','add','svg','_status','map','find','useState','@univerjs-pro/collaboration','disposeWithMe','length','status$','tryStartPresenting','attrs','LiveShareService','stopPresenting','currentColor','exports','_config','@univerjs/design','xlink:href','event$','hasOwnProperty','LiveShareStatus','has','http://www.w3.org/2000/svg','children','includes','onRendered','SetZoomRatioOperation','LIVESHARE_NEW_HOST','jsx','_status$','from','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','getUnitId','45aQpLTE','BuiltInUIPart','You\x27re\x20not\x20following\x20the\x20presenter','getInitialStates','stringify','url(#$1','evenodd','_stopFollowing','BehaviorSubject','UniverProCollaborationClient','function','1192970XxasRx','assign','@univerjs/sheets-ui','_collabSession','sessionStatus$','shouldShareOperation','rxjs/operators','clsx','_handleOnline','data','_beIdle','clear','FOLLOWING','idle','useEffect','_handleTerminate','operators','_univerInstanceService','current','_injector','connectInjector','presenter'];_0x33f1=function(){return _0x50c0d6;};return _0x33f1();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -46,14 +46,14 @@
46
46
  "rxjs": ">=7.0.0"
47
47
  },
48
48
  "dependencies": {
49
- "@univerjs/icons": "^0.4.4",
50
- "@univerjs-pro/collaboration-client": "0.9.1",
51
- "@univerjs/core": "0.9.1",
52
- "@univerjs/design": "0.9.1",
53
- "@univerjs/sheets": "0.9.1",
54
- "@univerjs/ui": "0.9.1",
55
- "@univerjs/sheets-ui": "0.9.1",
56
- "@univerjs-pro/collaboration": "0.9.1"
49
+ "@univerjs/icons": "^0.4.6",
50
+ "@univerjs-pro/collaboration": "0.9.2",
51
+ "@univerjs/core": "0.9.2",
52
+ "@univerjs-pro/collaboration-client": "0.9.2",
53
+ "@univerjs/design": "0.9.2",
54
+ "@univerjs/sheets": "0.9.2",
55
+ "@univerjs/sheets-ui": "0.9.2",
56
+ "@univerjs/ui": "0.9.2"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",
@@ -64,7 +64,7 @@
64
64
  "vite": "^6.3.5",
65
65
  "vitest": "^3.2.4",
66
66
  "@univerjs/protocol": "0.1.47-alpha.0",
67
- "@univerjs-infra/shared": "0.9.1"
67
+ "@univerjs-infra/shared": "0.9.2"
68
68
  },
69
69
  "scripts": {
70
70
  "test": "vitest run",